From e913e0fecaa486009cf198f3e9820104e684a198 Mon Sep 17 00:00:00 2001 From: priya_kanabar-crest Date: Fri, 2 Aug 2024 21:24:16 +0530 Subject: [PATCH 1/7] Update footer status text and css in app.vue - Changed footer status text from Stopped to Connected when notebook is not running. - Added CSS to make the Connected status text color change for better visibility. --- zt_frontend/src/App.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zt_frontend/src/App.vue b/zt_frontend/src/App.vue index e9aad4a6..8ae955cd 100644 --- a/zt_frontend/src/App.vue +++ b/zt_frontend/src/App.vue @@ -260,10 +260,10 @@ Date: Fri, 2 Aug 2024 21:51:47 +0530 Subject: [PATCH 2/7] Implement Vuetify rating component and create Python rating model - Added Vuetify rating component to the UI. - Updated various fields to incorporate the v-rating component. - Created a Python model for rating to handle backend data --- mintlify-docs/Components/Rating.mdx | 418 ++++++++++++++++++ mintlify-docs/mint.json | 1 + zero_true/__init__.py | 1 + zt_backend/models/components/rating.py | 58 +++ zt_backend/models/generate_schema.py | 2 + zt_backend/models/notebook.py | 3 + zt_frontend/src/components/CodeComponent.vue | 2 + .../src/components/ComponentWrapper.vue | 2 + .../src/components/LayoutComponent.vue | 2 + 9 files changed, 489 insertions(+) create mode 100644 mintlify-docs/Components/Rating.mdx create mode 100644 zt_backend/models/components/rating.py diff --git a/mintlify-docs/Components/Rating.mdx b/mintlify-docs/Components/Rating.mdx new file mode 100644 index 00000000..28296f30 --- /dev/null +++ b/mintlify-docs/Components/Rating.mdx @@ -0,0 +1,418 @@ + +title: 'Rating' +description: 'Learn how to use the Rating component in your applications' +icon: "star" +iconType: "solid" +--- + + + ```python +# An Example Rating: +from zero_true import Rating + +example = Rating(length=5, value=3, label="Product Rating", color="warning") + + + +Overview +pydantic model zero_true.Rating +Rating provides a star-based input mechanism that can be used to capture user feedback or ratings. +JSON Schema + +```json +{ + "title": "Rating", + "description": "A rating component that allows you to capture star-based input from a user", + "type": "object", + "properties": { + "id": { + "description": "Unique id for a component", + "title": "Id", + "type": "string" + }, + "variable_name": { + "default": "", + "description": "Optional variable name associated with a component", + "title": "Variable Name", + "type": "string" + }, + "component": { + "default": "v-rating", + "description": "Vue component name", + "title": "Component", + "type": "string" + }, + "value": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ], + "default": 0, + "description": "Current value of the rating", + "title": "Value" + }, + "length": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "default": 5, + "description": "Number of rating icons", + "title": "Length" + }, + "hover": { + "default": true, + "description": "Provides visual feedback when hovering over icons", + "title": "Hover", + "type": "boolean" + }, + "size": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "default": "default", + "description": "Size of the rating icons", + "title": "Size" + }, + "color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Color of the rating icons when active", + "title": "Color" + }, + "active_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "The applied color when the component is in an active state", + "title": "Active Color" + }, + "empty_icon": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "object" + } + ], + "default": "$ratingEmpty", + "description": "The icon displayed when empty", + "title": "Empty Icon" + }, + "full_icon": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "object" + } + ], + "default": "$ratingFull", + "description": "The icon displayed when full", + "title": "Full Icon" + }, + "half_increments": { + "default": false, + "description": "Allows for half-increment ratings", + "title": "Half Increments", + "type": "boolean" + }, + "clearable": { + "default": false, + "description": "Allows the component to be cleared", + "title": "Clearable", + "type": "boolean" + }, + "readonly": { + "default": false, + "description": "Removes all hover effects and pointer events", + "title": "Readonly", + "type": "boolean" + }, + "density": { + "default": "default", + "description": "Adjusts the vertical height used by the component", + "title": "Density", + "type": "string" + }, + "disabled": { + "default": false, + "description": "Removes the ability to click or target the component", + "title": "Disabled", + "type": "boolean" + }, + "item_aria_label": { + "default": "$vuetify.rating.ariaLabel.item", + "description": "Aria label for each item", + "title": "Item Aria Label", + "type": "string" + }, + "item_label_position": { + "default": "top", + "description": "Position of item labels", + "title": "Item Label Position", + "type": "string" + }, + "item_labels": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Array of labels to display next to each item", + "title": "Item Labels" + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Sets the component's name attribute", + "title": "Name" + }, + "ripple": { + "default": false, + "description": "Applies the v-ripple directive", + "title": "Ripple", + "type": "boolean" + }, + "tag": { + "default": "div", + "description": "Specify a custom tag used on the root element", + "title": "Tag", + "type": "string" + }, + "theme": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Specify a theme for this component and all of its children", + "title": "Theme" + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "A label for your rating component", + "title": "Label" + }, + "triggerEvent": { + "default": "update:modelValue", + "description": "Trigger event for when to run the rating", + "title": "Triggerevent", + "type": "string" + } + }, + "required": [ + "id" + ] +} +``` + +Below are the various attributes you can assign to the component. Utilizing them can allow for modifications to the pre-created object. + + + + + **field active_color:** str | None = None +Copy The applied color when the component is in an active state. + + **VALIDATED BY:** validate_color + + + + **field clearable:** bool = False + + Allows the component to be cleared. + + + + **field color:** str | None = None + + Color of the rating icons when active. + + **VALIDATED BY:** validate_color + + + + **field component:** str = 'v-rating' + + Vue component name. + + + + **field density:** str = 'default' + + Adjusts the vertical height used by the component. + + **VALIDATED BY:** validate_density + + + + **field disabled:** bool = False + + Removes the ability to click or target the component. + + + + **field empty_icon:** str | dict = '$ratingEmpty' + + The icon displayed when empty. + + + + **field full_icon:** str | dict = '$ratingFull' + + The icon displayed when full. + + + + **field half_increments:** bool = False + + Allows for half-increment ratings. + + + + **field hover:** bool = True + + Provides visual feedback when hovering over icons. + + + + **field item_aria_label:** str = '$vuetify.rating.ariaLabel.item' + + Aria label for each item. + + + + **field item_label_position:** str = 'top' + + Position of item labels. + + **VALIDATED BY:** validate_item_label_position + + + + **field item_labels:** List[str] | None = None + + Array of labels to display next to each item. + + + + **field label:** str | None = None + + A label for your rating component. + + + + **field length:** str | int = 5 + + Number of rating icons. + + + + **field name:** str | None = None + + Sets the component's name attribute. + + + + **field readonly:** bool = False + + Removes all hover effects and pointer events. + + + + **field ripple:** bool = False + + Applies the v-ripple directive. + + + + **field size:** str | int = 'default' + + Size of the rating icons. + + + + **field tag:** str = 'div' + + Specify a custom tag used on the root element. + + + + **field theme:** str | None = None + + Specify a theme for this component and all of its children. + + + + **field triggerEvent:** str = 'update:modelValue' + + Trigger event for when to run the rating. + + + + **field value:** str | float = 0 + + Current value of the rating. + + + + + + classmethod *get_value_from_global_state*(value, values) + +``` \ No newline at end of file diff --git a/mintlify-docs/mint.json b/mintlify-docs/mint.json index ddeab232..d5d36187 100644 --- a/mintlify-docs/mint.json +++ b/mintlify-docs/mint.json @@ -66,6 +66,7 @@ "Components/Text", "Components/Textinput", "Components/Slider", + "Components/Rating", "Components/Image", "Components/Card", "Components/DataFrame", diff --git a/zero_true/__init__.py b/zero_true/__init__.py index 778ab9e1..632e7190 100644 --- a/zero_true/__init__.py +++ b/zero_true/__init__.py @@ -1,5 +1,6 @@ from zt_backend.models.components.zt_component import ZTComponent from zt_backend.models.components.slider import Slider +from zt_backend.models.components.rating import Rating from zt_backend.models.components.text_input import TextInput from zt_backend.models.components.text_area_input import TextArea from zt_backend.models.components.range_slider import RangeSlider diff --git a/zt_backend/models/components/rating.py b/zt_backend/models/components/rating.py new file mode 100644 index 00000000..bdb0c9b1 --- /dev/null +++ b/zt_backend/models/components/rating.py @@ -0,0 +1,58 @@ +from pydantic import Field, field_validator, validator +from zt_backend.models.components.zt_component import ZTComponent +from zt_backend.models.components.validations import validate_color +from typing import Optional, Union, List +from zt_backend.models.state.user_state import UserContext + +class Rating(ZTComponent): + """A rating component that allows you to capture star-based input from a user""" + component: str = Field("v-rating", description="Vue component name") + value: Union[str, float] = Field(0, description="Current value of the rating") + length: Union[str, int] = Field(5, description="Number of rating icons") + hover: bool = Field(True, description="Provides visual feedback when hovering over icons") + size: Union[str, int] = Field('default', description="Size of the rating icons") + color: Optional[str] = Field(None, description="Color of the rating icons when active") + active_color: Optional[str] = Field(None, description="The applied color when the component is in an active state") + empty_icon: Union[str, dict] = Field('$ratingEmpty', description="The icon displayed when empty") + full_icon: Union[str, dict] = Field('$ratingFull', description="The icon displayed when full") + half_increments: bool = Field(False, description="Allows for half-increment ratings") + clearable: bool = Field(False, description="Allows the component to be cleared") + readonly: bool = Field(False, description="Removes all hover effects and pointer events") + density: str = Field('default', description="Adjusts the vertical height used by the component") + disabled: bool = Field(False, description="Removes the ability to click or target the component") + item_aria_label: str = Field('$vuetify.rating.ariaLabel.item', description="Aria label for each item") + item_label_position: str = Field('top', description="Position of item labels") + item_labels: Optional[List[str]] = Field(None, description="Array of labels to display next to each item") + name: Optional[str] = Field(None, description="Sets the component's name attribute") + ripple: bool = Field(False, description="Applies the v-ripple directive") + tag: str = Field('div', description="Specify a custom tag used on the root element") + theme: Optional[str] = Field(None, description="Specify a theme for this component and all of its children") + label: Optional[str] = Field(None, description='A label for your rating component') + triggerEvent: str = Field('update:modelValue', description="Trigger event for when to run the rating") + + @field_validator('color', 'active_color') + def validate_color(cls, color): + return validate_color(color) + + @field_validator('density') + def validate_density(cls, v): + if v not in ['default', 'comfortable', 'compact']: + raise ValueError("Density must be one of 'default', 'comfortable', or 'compact'") + return v + + @field_validator('item_label_position') + def validate_item_label_position(cls, v): + if v not in ['top', 'bottom']: + raise ValueError("Item label position must be either 'top' or 'bottom'") + return v + + @validator('value', always=True) + def get_value_from_global_state(cls, value, values): + id = values.get('id') + execution_state = UserContext.get_state() + try: + if execution_state and id and id in execution_state.component_values: + return execution_state.component_values[id] + except Exception as e: + pass + return value \ No newline at end of file diff --git a/zt_backend/models/generate_schema.py b/zt_backend/models/generate_schema.py index 5a7c95b5..d095c953 100644 --- a/zt_backend/models/generate_schema.py +++ b/zt_backend/models/generate_schema.py @@ -25,6 +25,7 @@ from .api.response import Response from .notebook import Notebook, NotebookResponse, Dependencies, Dependency, Comment from .components.slider import Slider +from .components.rating import Rating from .components.text_input import TextInput from .components.text_area_input import TextArea from .components.range_slider import RangeSlider @@ -84,6 +85,7 @@ def generate_schema(): generate_json(Timer, "timer") generate_json(iFrame, "iframe") generate_json(HTML, "html") + generate_json(Rating, "rating") generate_json(Comment, "comment") generate_json(AddCommentRequest, "add_comment_request") generate_json(DeleteCommentRequest, "delete_comment_request") diff --git a/zt_backend/models/notebook.py b/zt_backend/models/notebook.py index 1fc8223f..e5e0fded 100644 --- a/zt_backend/models/notebook.py +++ b/zt_backend/models/notebook.py @@ -4,6 +4,7 @@ from uuid import uuid4 from zt_backend.models.components.zt_component import ZTComponent from zt_backend.models.components.slider import Slider +from zt_backend.models.components.rating import Rating from zt_backend.models.components.text_input import TextInput from zt_backend.models.components.text_area_input import TextArea from zt_backend.models.components.range_slider import RangeSlider @@ -25,6 +26,7 @@ def deserialize_component(data: Dict[str, Any]) -> ZTComponent: component_map = { "v-slider": Slider, + "v-rating": Rating, "v-text-field": TextInput, "v-textarea": TextArea, "v-number-input": NumberInput, @@ -92,6 +94,7 @@ class Comment(BaseModel): replies: OrderedDict[str, Comment] = Field({}) resolved: bool = Field(False) + class NotebookResponse(BaseModel): notebook: Notebook dependencies: Dependencies diff --git a/zt_frontend/src/components/CodeComponent.vue b/zt_frontend/src/components/CodeComponent.vue index 715f242f..db5c8ad7 100644 --- a/zt_frontend/src/components/CodeComponent.vue +++ b/zt_frontend/src/components/CodeComponent.vue @@ -96,6 +96,7 @@ import { Prec, EditorState } from "@codemirror/state"; import { autocompletion, acceptCompletion, CompletionResult, CompletionContext } from '@codemirror/autocomplete' import { VSlider, + VRating, VTextField, VTextarea, VRangeSlider, @@ -122,6 +123,7 @@ export default { "cell": Cell, "codemirror": Codemirror, "v-slider": VSlider, + "v-rating": VRating, "v-text-field": VTextField, "v-textarea": VTextarea, "v-range-slider": VRangeSlider, diff --git a/zt_frontend/src/components/ComponentWrapper.vue b/zt_frontend/src/components/ComponentWrapper.vue index efce15c9..fdd1e3b6 100644 --- a/zt_frontend/src/components/ComponentWrapper.vue +++ b/zt_frontend/src/components/ComponentWrapper.vue @@ -41,6 +41,7 @@ import type { PropType } from "vue"; import { Components2, ZTComponent } from "@/types/notebook"; import { VSlider, + VRating, VTextField, VTextarea, VRangeSlider, @@ -58,6 +59,7 @@ import PlotlyPlot from "@/components/PlotlyComponent.vue"; export default { components: { "v-slider": VSlider, + "v-rating": VRating, "v-text-field": VTextField, "v-textarea": VTextarea, "v-range-slider": VRangeSlider, diff --git a/zt_frontend/src/components/LayoutComponent.vue b/zt_frontend/src/components/LayoutComponent.vue index 1e9ad710..25576c0d 100644 --- a/zt_frontend/src/components/LayoutComponent.vue +++ b/zt_frontend/src/components/LayoutComponent.vue @@ -46,6 +46,7 @@ import type { PropType } from "vue"; import { VSlider, + VRating, VTextField, VTextarea, VRangeSlider, @@ -66,6 +67,7 @@ export default { emits: ["runCode"], components: { "v-slider": VSlider, + "v-rating": VRating, "v-text-field": VTextField, "v-textarea": VTextarea, "v-range-slider": VRangeSlider, From 995ec17db0ff8e3792e8e2d4dfaafb1e0bbf2f3b Mon Sep 17 00:00:00 2001 From: priya_kanabar-crest Date: Fri, 2 Aug 2024 22:03:25 +0530 Subject: [PATCH 3/7] Addrunning cell indication in notebook - Updated backend to send the ID of the currently running cell in the method. - Modified app.vue to retrieve the current running cell ID. - Passed the running cell ID to relevant components to display a loader. --- zt_backend/runner/execute_code.py | 3 ++ zt_frontend/src/App.vue | 9 +++-- zt_frontend/src/components/Cell.vue | 37 +++++++++++++++++++ .../src/components/CodeCellManager.vue | 12 ++++++ zt_frontend/src/components/CodeComponent.vue | 12 +++++- zt_frontend/src/components/SQLComponent.vue | 10 +++++ 6 files changed, 79 insertions(+), 4 deletions(-) diff --git a/zt_backend/runner/execute_code.py b/zt_backend/runner/execute_code.py index b09626cf..58847b2d 100644 --- a/zt_backend/runner/execute_code.py +++ b/zt_backend/runner/execute_code.py @@ -102,6 +102,9 @@ def get_parent_vars( def execute_request(request: request.Request, state: UserState): with UserContext(state) as execution_state: logger.debug("Code execution started") + # Send Current Running Cell Id to frontend + if request.originId: + execution_state.message_queue.put_nowait({"cell_executing": request.originId}) cell_outputs = [] execution_state.component_values.update(request.components) component_globals = {"global_state": execution_state.component_values} diff --git a/zt_frontend/src/App.vue b/zt_frontend/src/App.vue index 8ae955cd..3dee3a9d 100644 --- a/zt_frontend/src/App.vue +++ b/zt_frontend/src/App.vue @@ -175,6 +175,8 @@ | null, isCodeRunning: false, + currentlyExecutingCell: null, requestQueue: [] as any[], componentChangeQueue: [] as any[], drawer: false, @@ -1181,9 +1184,9 @@ export default { &--error { color: rgba(var(--v-theme-error)); } - &--connected { - color: rgba(var(--v-theme-info)); // Added css for connected status - } + &--connected { + color: rgba(var(--v-theme-info)); // Added css for connected status + } } @include md { flex-direction: row; diff --git a/zt_frontend/src/components/Cell.vue b/zt_frontend/src/components/Cell.vue index 2039afa7..2c8d372b 100644 --- a/zt_frontend/src/components/Cell.vue +++ b/zt_frontend/src/components/Cell.vue @@ -79,6 +79,18 @@ }" >
+
+ + Running +
+ >>>>>> 4360e6e (Addrunning cell indication in notebook) const emits = defineEmits<{ (e: "delete"): void; (e: "play"): void; @@ -519,5 +546,15 @@ const saveCellName = async () => { letter-spacing: normal; } } + .actions { + display: flex; + align-items: center; + } + + .loading-wrapper { + display: flex; + align-items: center; + margin-right: 8px; /* Adjust as needed */ + } } diff --git a/zt_frontend/src/components/CodeCellManager.vue b/zt_frontend/src/components/CodeCellManager.vue index 1dd37304..2d4a07bb 100644 --- a/zt_frontend/src/components/CodeCellManager.vue +++ b/zt_frontend/src/components/CodeCellManager.vue @@ -17,6 +17,8 @@ :is="getComponent(codeCell.cellType)" :cellData="codeCell" :completions="completions[codeCell.id]" + :currentlyExecutingCell="currentlyExecutingCell" + :isCodeRunning="isCodeRunning" @runCode="runCode" @saveCell="saveCell" @componentValueChange="componentValueChange" @@ -29,6 +31,8 @@ v-else :is="getComponent(codeCell.cellType)" :cellData="codeCell" + :currentlyExecutingCell="currentlyExecutingCell" + :isCodeRunning="isCodeRunning" @runCode="runCode" @saveCell="saveCell" @componentValueChange="componentValueChange" @@ -61,6 +65,14 @@ export default { type: Object as PropType<{ [key: string]: string[] }>, required: true, }, + currentlyExecutingCell: { + type: String, + default: null + }, + isCodeRunning:{ + type: Boolean, + default: false + }, }, inheritAttrs: false, emits: ['runCode', 'deleteCell', 'saveCell', 'createCell', 'componentValueChange', 'copilotCompletion', 'updateTimers'], diff --git a/zt_frontend/src/components/CodeComponent.vue b/zt_frontend/src/components/CodeComponent.vue index db5c8ad7..740d0798 100644 --- a/zt_frontend/src/components/CodeComponent.vue +++ b/zt_frontend/src/components/CodeComponent.vue @@ -7,6 +7,8 @@ :expand-code="(cellData.expandCode as boolean)" :non-reactive="(cellData.nonReactive as boolean)" :cell-name="(cellData.cellName as string)" + :currentlyExecutingCell="currentlyExecutingCell" + :isCodeRunning="isCodeRunning" :is-dev-mode="$devMode && !isAppRoute && !isMobile" @play="runCode(false, '', '')" @delete="deleteCell" @@ -147,7 +149,15 @@ export default { completions: { type: Object as PropType, required: true - } + }, + currentlyExecutingCell: { + type: String, + default: null + }, + isCodeRunning:{ + type: Boolean, + default: false + }, }, inheritAttrs: false, emits: ['componentValueChange','runCode','deleteCell', 'createCell', 'saveCell', 'copilotCompletion', 'updateTimers'], diff --git a/zt_frontend/src/components/SQLComponent.vue b/zt_frontend/src/components/SQLComponent.vue index 5557c350..70bed602 100644 --- a/zt_frontend/src/components/SQLComponent.vue +++ b/zt_frontend/src/components/SQLComponent.vue @@ -8,6 +8,8 @@ :non-reactive="(cellData.nonReactive as boolean)" :showTable="(cellData.showTable as boolean)" :cell-name="(cellData.cellName as string)" + :currentlyExecutingCell="currentlyExecutingCell" + :isCodeRunning="isCodeRunning" :is-dev-mode="$devMode && !isAppRoute && !isMobile" @play="runCode" @delete="deleteCell" @@ -169,6 +171,14 @@ export default { type: Object as PropType, required: true, }, + currentlyExecutingCell: { + type: String, + default: null + }, + isCodeRunning:{ + type: Boolean, + default: false + }, }, setup() { From 925bd9110a7767de809cb546d65e360ba2c43799 Mon Sep 17 00:00:00 2001 From: priya_kanabar-crest Date: Wed, 21 Aug 2024 13:26:16 +0530 Subject: [PATCH 4/7] updated running indication UI to display beside title of cell, updated backend execute_code to send the running cell details properly when all cells are running, Updating basic css for indicator --- zt_backend/runner/execute_code.py | 14 +++++--- zt_frontend/src/App.vue | 2 +- zt_frontend/src/components/Cell.vue | 55 +++++++++++++++-------------- 3 files changed, 39 insertions(+), 32 deletions(-) diff --git a/zt_backend/runner/execute_code.py b/zt_backend/runner/execute_code.py index 58847b2d..7000db1a 100644 --- a/zt_backend/runner/execute_code.py +++ b/zt_backend/runner/execute_code.py @@ -102,9 +102,7 @@ def get_parent_vars( def execute_request(request: request.Request, state: UserState): with UserContext(state) as execution_state: logger.debug("Code execution started") - # Send Current Running Cell Id to frontend - if request.originId: - execution_state.message_queue.put_nowait({"cell_executing": request.originId}) + cell_outputs = [] execution_state.component_values.update(request.components) component_globals = {"global_state": execution_state.component_values} @@ -146,6 +144,11 @@ def execute_request(request: request.Request, state: UserState): execution_state.message_queue.put_nowait( {"cell_id": code_cell_id, "clear_output": True} ) + + # Only send "cell_executing" for the origin cell or when running all cells + if code_cell_id == request.originId or not request.originId: + execution_state.message_queue.put_nowait({"cell_executing": code_cell_id}) + execution_state.io_output = StringIO() execute_cell( code_cell_id, @@ -185,9 +188,10 @@ def execute_request(request: request.Request, state: UserState): execution_state.context_globals["exec_mode"] = False execution_response = response.Response(cells=cell_outputs) if code_cell_id != "initial_cell": + execution_state.message_queue.put_nowait({"cell_executing": ""}) execution_state.message_queue.put_nowait({"complete": True}) - if settings.run_mode == "dev": - globalStateUpdate(run_response=execution_response, run_request=request) + if settings.run_mode=='dev': + globalStateUpdate(run_response=execution_response,run_request=request) def execute_cell( diff --git a/zt_frontend/src/App.vue b/zt_frontend/src/App.vue index 3dee3a9d..921187a7 100644 --- a/zt_frontend/src/App.vue +++ b/zt_frontend/src/App.vue @@ -351,7 +351,7 @@ export default { startTime: 0, timerInterval: null as ReturnType | null, isCodeRunning: false, - currentlyExecutingCell: null, + currentlyExecutingCell: undefined, requestQueue: [] as any[], componentChangeQueue: [] as any[], drawer: false, diff --git a/zt_frontend/src/components/Cell.vue b/zt_frontend/src/components/Cell.vue index 2c8d372b..e30237b8 100644 --- a/zt_frontend/src/components/Cell.vue +++ b/zt_frontend/src/components/Cell.vue @@ -21,6 +21,19 @@ > {{ cellNameValue }} +
+ + Running +
>>>>>> 4360e6e (Addrunning cell indication in notebook) + type: String, + default: null, + }, + isCodeRunning: { + type: Boolean, + default: false, + }, +}); const emits = defineEmits<{ (e: "delete"): void; (e: "play"): void; @@ -554,7 +550,14 @@ const saveCellName = async () => { .loading-wrapper { display: flex; align-items: center; - margin-right: 8px; /* Adjust as needed */ + margin-right: 8px; + } + + .green-loader { + color: rgba(var(--v-theme-success)); + } + .running-text { + color: rgba(var(--v-theme-success)); } } From c5519db62406984b250a219fef851cab00a829c3 Mon Sep 17 00:00:00 2001 From: priya_kanabar-crest Date: Wed, 21 Aug 2024 15:28:41 +0530 Subject: [PATCH 5/7] Dbeugged and solved issue after merging the new due to mwthod changes --- zt_backend/runner/execute_code.py | 8 +++++++- zt_frontend/src/App.vue | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/zt_backend/runner/execute_code.py b/zt_backend/runner/execute_code.py index 7000db1a..c6f634cf 100644 --- a/zt_backend/runner/execute_code.py +++ b/zt_backend/runner/execute_code.py @@ -147,7 +147,13 @@ def execute_request(request: request.Request, state: UserState): # Only send "cell_executing" for the origin cell or when running all cells if code_cell_id == request.originId or not request.originId: - execution_state.message_queue.put_nowait({"cell_executing": code_cell_id}) + execution_state.message_queue.put_nowait({"cell_executing": code_cell_id}) + + if code_cell_id != "initial_cell": + execution_state.message_queue.put_nowait( + {"cell_id": code_cell_id, "clear_output": True} + ) + execution_state.io_output = StringIO() execute_cell( diff --git a/zt_frontend/src/App.vue b/zt_frontend/src/App.vue index 921187a7..56cdffba 100644 --- a/zt_frontend/src/App.vue +++ b/zt_frontend/src/App.vue @@ -661,7 +661,11 @@ export default { runOnMessage(event: any) { const response = JSON.parse(event.data); - if (!this.$devMode && response.refresh) { + if (response.cell_executing!=undefined) { + // Update the UI to show which cell is currently executing + this.currentlyExecutingCell = response.cell_executing; + } + else if (!this.$devMode && response.refresh) { this.notebookRefresh(); } else if (response.cell_id) { if (response.clear_output) { From 7f96b7a23e85e81f1e3e0c373e758a55c6b1c39d Mon Sep 17 00:00:00 2001 From: Carson-Shaar Date: Mon, 26 Aug 2024 17:03:51 -0400 Subject: [PATCH 6/7] fix: Rating component and running feedback --- .../{app-621ca417.js => app-6e05d9fb.js} | 2 +- .../{index-83338ca8.js => index-0bbbe38c.js} | 2 +- .../assets/index-267af001.css} | 2 +- .../{index-de12265c.js => index-fb670233.js} | 226 +++++++++--------- ...-fd1b90a2.js => webfontloader-bfd06eaa.js} | 2 +- zt_backend/dist_app/index.html | 4 +- .../{app-37f5afb6.js => app-9832ab9d.js} | 2 +- .../assets/index-267af001.css} | 2 +- .../{index-91df5eb7.js => index-d744c0bc.js} | 226 +++++++++--------- .../{index-31a83e65.js => index-f0d22521.js} | 2 +- ...-dd94185f.js => webfontloader-889c568b.js} | 2 +- zt_backend/dist_dev/index.html | 4 +- zt_backend/runner/execute_code.py | 18 +- zt_frontend/src/components/Cell.vue | 21 +- zt_frontend/src/types/rating.d.ts | 147 ++++++++++++ 15 files changed, 400 insertions(+), 262 deletions(-) rename zt_backend/dist_app/assets/{app-621ca417.js => app-6e05d9fb.js} (94%) rename zt_backend/dist_app/assets/{index-83338ca8.js => index-0bbbe38c.js} (94%) rename zt_backend/{dist_dev/assets/index-d94f5589.css => dist_app/assets/index-267af001.css} (86%) rename zt_backend/dist_app/assets/{index-de12265c.js => index-fb670233.js} (86%) rename zt_backend/dist_app/assets/{webfontloader-fd1b90a2.js => webfontloader-bfd06eaa.js} (99%) rename zt_backend/dist_dev/assets/{app-37f5afb6.js => app-9832ab9d.js} (94%) rename zt_backend/{dist_app/assets/index-d94f5589.css => dist_dev/assets/index-267af001.css} (86%) rename zt_backend/dist_dev/assets/{index-91df5eb7.js => index-d744c0bc.js} (86%) rename zt_backend/dist_dev/assets/{index-31a83e65.js => index-f0d22521.js} (94%) rename zt_backend/dist_dev/assets/{webfontloader-dd94185f.js => webfontloader-889c568b.js} (99%) create mode 100644 zt_frontend/src/types/rating.d.ts diff --git a/zt_backend/dist_app/assets/app-621ca417.js b/zt_backend/dist_app/assets/app-6e05d9fb.js similarity index 94% rename from zt_backend/dist_app/assets/app-621ca417.js rename to zt_backend/dist_app/assets/app-6e05d9fb.js index c3b5c45a..bc00dffe 100644 --- a/zt_backend/dist_app/assets/app-621ca417.js +++ b/zt_backend/dist_app/assets/app-6e05d9fb.js @@ -1 +1 @@ -import{C as n,_ as r,r as l,o as c,c as a}from"./index-de12265c.js";const u={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:n},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,C,e,m,s,i){const o=l("code-cell-manager");return c(),a(o,{notebook:e.notebook,completions:e.completions,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(u,[["render",d]]);export{_ as default}; +import{C as n,_ as r,r as l,o as c,c as a}from"./index-fb670233.js";const u={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:n},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,C,e,m,s,i){const o=l("code-cell-manager");return c(),a(o,{notebook:e.notebook,completions:e.completions,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(u,[["render",d]]);export{_ as default}; diff --git a/zt_backend/dist_app/assets/index-83338ca8.js b/zt_backend/dist_app/assets/index-0bbbe38c.js similarity index 94% rename from zt_backend/dist_app/assets/index-83338ca8.js rename to zt_backend/dist_app/assets/index-0bbbe38c.js index 7d5953d9..8a78bab5 100644 --- a/zt_backend/dist_app/assets/index-83338ca8.js +++ b/zt_backend/dist_app/assets/index-0bbbe38c.js @@ -1 +1 @@ -import{C as o,_ as r,r as l,o as c,c as a}from"./index-de12265c.js";const u={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:o},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,C,e,m,s,i){const n=l("code-cell-manager");return c(),a(n,{notebook:e.notebook,completions:e.completions,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(u,[["render",d]]);export{_ as default}; +import{C as o,_ as r,r as l,o as c,c as a}from"./index-fb670233.js";const u={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:o},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,C,e,m,s,i){const n=l("code-cell-manager");return c(),a(n,{notebook:e.notebook,completions:e.completions,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(u,[["render",d]]);export{_ as default}; diff --git a/zt_backend/dist_dev/assets/index-d94f5589.css b/zt_backend/dist_app/assets/index-267af001.css similarity index 86% rename from zt_backend/dist_dev/assets/index-d94f5589.css rename to zt_backend/dist_app/assets/index-267af001.css index f047fdb6..781fa979 100644 --- a/zt_backend/dist_dev/assets/index-d94f5589.css +++ b/zt_backend/dist_app/assets/index-267af001.css @@ -1,4 +1,4 @@ -@charset "UTF-8";.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%}.v-toolbar{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar{border-radius:0}.v-toolbar{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden;border-end-end-radius:24px}.v-toolbar--collapse .v-toolbar-title{display:none}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content{overflow:hidden}.v-toolbar__content>.v-btn:first-child{margin-inline-start:4px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:4px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:20px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline:4px auto}.v-toolbar__append{margin-inline:auto 4px}.v-toolbar-title{flex:1 1;font-size:1.25rem;min-width:0}.v-toolbar-title{font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px}.v-toolbar--density-prominent .v-toolbar-title{font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0}.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img--rounded{border-radius:4px}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;vertical-align:middle;flex-shrink:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-btn .v-btn__underlay{position:absolute}@supports selector(:focus-visible){.v-btn:after{pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--slim{padding:0 8px}.v-btn--readonly{pointer-events:none}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn--stacked.v-btn--block{min-width:100%}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__loader>.v-progress-circular{width:1.5em;height:1.5em}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn--slim .v-btn__prepend{margin-inline-start:0}.v-btn__append{grid-area:append;margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--slim .v-btn__append{margin-inline-end:0}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{pointer-events:none}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-pagination .v-btn{border-radius:4px}.v-pagination .v-btn--rounded{border-radius:50%}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(0 * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((0 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle}.v-btn-group{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn-group{border-radius:4px}.v-btn-group{background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}@media (forced-colors: active){.v-progress-linear{border:thin solid buttontext}}.v-progress-linear__background,.v-progress-linear__buffer{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;width:100%;transition-property:width,left,right;transition:inherit}@media (forced-colors: active){.v-progress-linear__buffer{background-color:highlight;opacity:.3}}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}@media (forced-colors: active){.v-progress-linear__determinate,.v-progress-linear__indeterminate{background-color:highlight}}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-progress-linear--rounded-bar .v-progress-linear__determinate{border-start-start-radius:0;border-end-start-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-alert{display:grid;flex:1 1;grid-template-areas:"prepend content append close" ". content . .";grid-template-columns:max-content auto max-content max-content;position:relative;padding:16px;overflow:hidden;--v-border-color: currentColor}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert{border-radius:4px}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{background:transparent;color:inherit}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-alert--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-outlined{border:thin solid currentColor}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-alert .v-alert__underlay{position:absolute}.v-alert--prominent{grid-template-areas:"prepend content append close" "prepend content . ."}.v-alert.v-alert--border{--v-border-opacity: .38}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:.2s opacity cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-bottom:16px;padding-top:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-bottom:12px;padding-top:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-bottom:8px;padding-top:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert__border{border-radius:inherit;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;pointer-events:none;right:0;top:0;width:100%}.v-alert__border{border-color:currentColor;border-style:solid;border-width:0}.v-alert__border--border{border-width:8px;box-shadow:none}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 1 auto;grid-area:close}.v-alert__content{align-self:center;grid-area:content;overflow:hidden}.v-alert__append,.v-alert__close{align-self:flex-start;margin-inline-start:16px}.v-alert__append{align-self:flex-start;grid-area:append}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{align-self:flex-start;display:flex;align-items:center;grid-area:prepend;margin-inline-end:16px}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-alert-title{align-items:center;align-self:center;display:flex;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;line-height:1.75rem;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden}.v-autocomplete__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-autocomplete__content{border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-surface-light))}.v-autocomplete__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single:not(.v-autocomplete--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--active input{transition:none}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar{border-radius:50%}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-avatar .v-avatar__underlay{position:absolute}.v-avatar--rounded{border-radius:4px}.v-avatar--start{margin-inline-end:8px}.v-avatar--end{margin-inline-start:8px}.v-avatar .v-img{height:100%;width:100%}.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error .v-label,.v-selection-control--disabled .v-label{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-label{align-items:center;color:inherit;display:inline-flex;font-size:1rem;letter-spacing:.009375em;min-width:0;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-label--clickable{cursor:pointer}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.v-input{display:grid;flex:1 1 auto;font-size:1rem;font-weight:400;line-height:1.5}.v-input--disabled{pointer-events:none}.v-input--density-default{--v-input-control-height: 56px;--v-input-padding-top: 16px}.v-input--density-comfortable{--v-input-control-height: 48px;--v-input-padding-top: 12px}.v-input--density-compact{--v-input-control-height: 40px;--v-input-padding-top: 8px}.v-input--vertical{grid-template-areas:"append" "control" "prepend";grid-template-rows:max-content auto max-content;grid-template-columns:min-content}.v-input--vertical .v-input__prepend{margin-block-start:16px}.v-input--vertical .v-input__append{margin-block-end:16px}.v-input--horizontal{grid-template-areas:"prepend control append" "a messages b";grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto auto}.v-input--horizontal .v-input__prepend{margin-inline-end:16px}.v-input--horizontal .v-input__append{margin-inline-start:16px}.v-input__details{align-items:flex-end;display:flex;font-size:.75rem;font-weight:400;grid-area:messages;letter-spacing:.0333333333em;line-height:normal;min-height:22px;padding-top:6px;overflow:hidden;justify-content:space-between}.v-input__details>.v-icon,.v-input__prepend>.v-icon,.v-input__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-input--disabled .v-input__details>.v-icon,.v-input--disabled .v-input__details .v-messages,.v-input--error .v-input__details>.v-icon,.v-input--error .v-input__details .v-messages,.v-input--disabled .v-input__prepend>.v-icon,.v-input--disabled .v-input__prepend .v-messages,.v-input--error .v-input__prepend>.v-icon,.v-input--error .v-input__prepend .v-messages,.v-input--disabled .v-input__append>.v-icon,.v-input--disabled .v-input__append .v-messages,.v-input--error .v-input__append>.v-icon,.v-input--error .v-input__append .v-messages{opacity:1}.v-input--disabled .v-input__details,.v-input--disabled .v-input__prepend,.v-input--disabled .v-input__append{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-input__details>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__details .v-messages,.v-input--error:not(.v-input--disabled) .v-input__prepend>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__prepend .v-messages,.v-input--error:not(.v-input--disabled) .v-input__append>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__append .v-messages{color:rgb(var(--v-theme-error))}.v-input__prepend,.v-input__append{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top)}.v-input--center-affix .v-input__prepend,.v-input--center-affix .v-input__append{align-items:center;padding-top:0}.v-input__prepend{grid-area:prepend}.v-input__append{grid-area:append}.v-input__control{display:flex;grid-area:control}.v-input--hide-spin-buttons input::-webkit-outer-spin-button,.v-input--hide-spin-buttons input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.v-input--hide-spin-buttons input[type=number]{-moz-appearance:textfield}.v-input--plain-underlined .v-input__prepend,.v-input--plain-underlined .v-input__append{align-items:flex-start}.v-input--density-default.v-input--plain-underlined .v-input__prepend,.v-input--density-default.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 4px)}.v-input--density-comfortable.v-input--plain-underlined .v-input__prepend,.v-input--density-comfortable.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 2px)}.v-input--density-compact.v-input--plain-underlined .v-input__prepend,.v-input--density-compact.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 0px)}.v-messages{flex:1 1 auto;font-size:12px;min-height:14px;min-width:1px;opacity:var(--v-medium-emphasis-opacity);position:relative}.v-messages__message{line-height:12px;word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;transition-duration:.15s}.v-chip{align-items:center;display:inline-flex;font-weight:400;max-width:100%;min-width:0;overflow:hidden;position:relative;text-decoration:none;white-space:nowrap;vertical-align:middle}.v-chip .v-icon{--v-icon-size-multiplier: .8571428571}.v-chip.v-chip--size-x-small{--v-chip-size: .625rem;--v-chip-height: 20px;font-size:.625rem;padding:0 8px}.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 14px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 20px}.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-5.6px;margin-inline-end:4px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-8px}.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-start:4px;margin-inline-end:-5.6px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-end:-8px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-x-small .v-icon--start,.v-chip.v-chip--size-x-small .v-chip__filter{margin-inline-start:-4px;margin-inline-end:4px}.v-chip.v-chip--size-x-small .v-icon--end,.v-chip.v-chip--size-x-small .v-chip__close{margin-inline-start:4px;margin-inline-end:-4px}.v-chip.v-chip--size-x-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-chip__append+.v-chip__close{margin-inline-start:8px}.v-chip.v-chip--size-small{--v-chip-size: .75rem;--v-chip-height: 26px;font-size:.75rem;padding:0 10px}.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 20px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 26px}.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-7px;margin-inline-end:5px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-10px}.v-chip.v-chip--size-small .v-avatar--end{margin-inline-start:5px;margin-inline-end:-7px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end{margin-inline-end:-10px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close{margin-inline-start:15px}.v-chip.v-chip--size-small .v-icon--start,.v-chip.v-chip--size-small .v-chip__filter{margin-inline-start:-5px;margin-inline-end:5px}.v-chip.v-chip--size-small .v-icon--end,.v-chip.v-chip--size-small .v-chip__close{margin-inline-start:5px;margin-inline-end:-5px}.v-chip.v-chip--size-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-small .v-chip__append+.v-chip__close{margin-inline-start:10px}.v-chip.v-chip--size-default{--v-chip-size: .875rem;--v-chip-height: 32px;font-size:.875rem;padding:0 12px}.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 26px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 32px}.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-8.4px;margin-inline-end:6px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-12px}.v-chip.v-chip--size-default .v-avatar--end{margin-inline-start:6px;margin-inline-end:-8.4px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end{margin-inline-end:-12px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close{margin-inline-start:18px}.v-chip.v-chip--size-default .v-icon--start,.v-chip.v-chip--size-default .v-chip__filter{margin-inline-start:-6px;margin-inline-end:6px}.v-chip.v-chip--size-default .v-icon--end,.v-chip.v-chip--size-default .v-chip__close{margin-inline-start:6px;margin-inline-end:-6px}.v-chip.v-chip--size-default .v-icon--end+.v-chip__close,.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-default .v-chip__append+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-large{--v-chip-size: 1rem;--v-chip-height: 38px;font-size:1rem;padding:0 14px}.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 32px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 38px}.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-9.8px;margin-inline-end:7px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-14px}.v-chip.v-chip--size-large .v-avatar--end{margin-inline-start:7px;margin-inline-end:-9.8px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end{margin-inline-end:-14px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close{margin-inline-start:21px}.v-chip.v-chip--size-large .v-icon--start,.v-chip.v-chip--size-large .v-chip__filter{margin-inline-start:-7px;margin-inline-end:7px}.v-chip.v-chip--size-large .v-icon--end,.v-chip.v-chip--size-large .v-chip__close{margin-inline-start:7px;margin-inline-end:-7px}.v-chip.v-chip--size-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-large .v-chip__append+.v-chip__close{margin-inline-start:14px}.v-chip.v-chip--size-x-large{--v-chip-size: 1.125rem;--v-chip-height: 44px;font-size:1.125rem;padding:0 17px}.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 38px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 44px}.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-11.9px;margin-inline-end:8.5px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-17px}.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-start:8.5px;margin-inline-end:-11.9px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-end:-17px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close{margin-inline-start:25.5px}.v-chip.v-chip--size-x-large .v-icon--start,.v-chip.v-chip--size-x-large .v-chip__filter{margin-inline-start:-8.5px;margin-inline-end:8.5px}.v-chip.v-chip--size-x-large .v-icon--end,.v-chip.v-chip--size-x-large .v-chip__close{margin-inline-start:8.5px;margin-inline-end:-8.5px}.v-chip.v-chip--size-x-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-chip__append+.v-chip__close{margin-inline-start:17px}.v-chip.v-chip--density-default{height:calc(var(--v-chip-height) + 0px)}.v-chip.v-chip--density-comfortable{height:calc(var(--v-chip-height) + -4px)}.v-chip.v-chip--density-compact{height:calc(var(--v-chip-height) + -8px)}.v-chip{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-chip:hover>.v-chip__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-chip:focus-visible>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip:focus>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-chip--active>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]>.v-chip__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-chip--active:hover>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:hover>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-chip--active:focus-visible>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip--active:focus>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-chip{border-radius:9999px}.v-chip--variant-plain,.v-chip--variant-outlined,.v-chip--variant-text,.v-chip--variant-tonal{background:transparent;color:inherit}.v-chip--variant-plain{opacity:.26}.v-chip--variant-plain:focus,.v-chip--variant-plain:hover{opacity:1}.v-chip--variant-plain .v-chip__overlay{display:none}.v-chip--variant-elevated,.v-chip--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-chip--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-outlined{border:thin solid currentColor}.v-chip--variant-text .v-chip__overlay{background:currentColor}.v-chip--variant-tonal .v-chip__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-chip .v-chip__underlay{position:absolute}.v-chip--border{border-width:thin}.v-chip--link{cursor:pointer}.v-chip--link,.v-chip--filter{-webkit-user-select:none;user-select:none}.v-chip__content{align-items:center;display:inline-flex}.v-autocomplete__selection .v-chip__content,.v-combobox__selection .v-chip__content,.v-select__selection .v-chip__content{overflow:hidden}.v-chip__filter,.v-chip__prepend,.v-chip__append,.v-chip__close{align-items:center;display:inline-flex}.v-chip__close{cursor:pointer;flex:0 1 auto;font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;user-select:none}.v-chip__close .v-icon{font-size:inherit}.v-chip__filter{transition:.15s cubic-bezier(.4,0,.2,1)}.v-chip__overlay{background-color:currentColor;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-chip__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-chip--disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}.v-chip--label{border-radius:4px}.v-chip-group{display:flex;max-width:100%;min-width:0;overflow-x:auto;padding:4px 0}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip.v-chip--selected:not(.v-chip--disabled) .v-chip__overlay{opacity:var(--v-activated-opacity)}.v-chip-group--column .v-slide-group__content{white-space:normal;flex-wrap:wrap;max-width:100%}.v-slide-group{display:flex;overflow:hidden}.v-slide-group__next,.v-slide-group__prev{align-items:center;display:flex;flex:0 1 52px;justify-content:center;min-width:52px;cursor:pointer}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none;opacity:var(--v-disabled-opacity)}.v-slide-group__content{display:flex;flex:1 0 auto;position:relative;transition:.2s all cubic-bezier(.4,0,.2,1);white-space:nowrap}.v-slide-group__content>*{white-space:initial}.v-slide-group__container{contain:content;display:flex;flex:1 1 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scrollbar-color:rgba(0,0,0,0)}.v-slide-group__container::-webkit-scrollbar{display:none}.v-slide-group--vertical{max-height:inherit}.v-slide-group--vertical,.v-slide-group--vertical .v-slide-group__container,.v-slide-group--vertical .v-slide-group__content{flex-direction:column}.v-slide-group--vertical .v-slide-group__container{overflow-x:hidden;overflow-y:auto}.v-list{overflow:auto;padding:8px 0;position:relative;outline:none}.v-list{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list--border{border-width:thin;box-shadow:none}.v-list{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list{border-radius:0}.v-list{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-list--nav{padding-inline:8px}.v-list--rounded{border-radius:4px}.v-list--subheader{padding-top:0}.v-list-img{border-radius:inherit;display:flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-list-subheader{align-items:center;background:inherit;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.375rem;padding-inline-end:16px;min-height:40px;transition:.2s min-height cubic-bezier(.4,0,.2,1)}.v-list-subheader__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-list--density-default .v-list-subheader{min-height:40px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-comfortable .v-list-subheader{min-height:36px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-compact .v-list-subheader{min-height:32px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-subheader--inset{--indent-padding: 56px}.v-list--nav .v-list-subheader{font-size:.75rem}.v-list-subheader--sticky{background:inherit;left:0;position:sticky;top:0;z-index:1}.v-list__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content 1fr auto;outline:none;max-width:100%;padding:4px 16px;position:relative;text-decoration:none}.v-list-item{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list-item--border{border-width:thin;box-shadow:none}.v-list-item:hover>.v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item:focus-visible>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item:focus>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-list-item--active>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]>.v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--active:hover>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:hover>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-list-item--active:focus-visible>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item--active:focus>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-list-item{border-radius:0}.v-list-item--variant-plain,.v-list-item--variant-outlined,.v-list-item--variant-text,.v-list-item--variant-tonal{background:transparent;color:inherit}.v-list-item--variant-plain{opacity:.62}.v-list-item--variant-plain:focus,.v-list-item--variant-plain:hover{opacity:1}.v-list-item--variant-plain .v-list-item__overlay{display:none}.v-list-item--variant-elevated,.v-list-item--variant-flat{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list-item--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-outlined{border:thin solid currentColor}.v-list-item--variant-text .v-list-item__overlay{background:currentColor}.v-list-item--variant-tonal .v-list-item__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-list-item .v-list-item__underlay{position:absolute}@supports selector(:focus-visible){.v-list-item:after{pointer-events:none;border:2px solid currentColor;border-radius:4px;opacity:0;transition:opacity .2s ease-in-out}.v-list-item:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-list-item:focus-visible:after{opacity:calc(.15 * var(--v-theme-overlay-multiplier))}}.v-list-item__prepend>.v-badge .v-icon,.v-list-item__prepend>.v-icon,.v-list-item__append>.v-badge .v-icon,.v-list-item__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-list-item--active .v-list-item__prepend>.v-badge .v-icon,.v-list-item--active .v-list-item__prepend>.v-icon,.v-list-item--active .v-list-item__append>.v-badge .v-icon,.v-list-item--active .v-list-item__append>.v-icon{opacity:1}.v-list-item--active:not(.v-list-item--link) .v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--rounded{border-radius:4px}.v-list-item--disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.v-list-item--link{cursor:pointer}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item .v-avatar,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item .v-avatar{--v-avatar-height: 24px}.v-list-item__prepend{align-items:center;align-self:center;display:flex;grid-area:prepend}.v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:0}.v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__prepend{align-self:start}.v-list-item__append{align-self:center;display:flex;align-items:center;grid-area:append}.v-list-item__append .v-list-item__spacer{order:-1;transition:.15s width cubic-bezier(.4,0,.2,1)}.v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item__append>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__append>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__append>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__append{align-self:start}.v-list-item__content{align-self:center;grid-area:content;overflow:hidden}.v-list-item-action{align-self:center;display:flex;align-items:center;flex:none;transition:inherit;transition-property:height,width}.v-list-item-action--start{margin-inline-end:8px;margin-inline-start:-8px}.v-list-item-action--end{margin-inline-start:8px;margin-inline-end:-8px}.v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-media--start{margin-inline-end:16px}.v-list-item-media--end{margin-inline-start:16px}.v-list-item--two-line .v-list-item-media{margin-top:-4px;margin-bottom:-4px}.v-list-item--three-line .v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-subtitle{-webkit-box-orient:vertical;display:-webkit-box;opacity:var(--v-list-item-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0;text-overflow:ellipsis;overflow-wrap:break-word;word-break:initial}.v-list-item--one-line .v-list-item-subtitle{-webkit-line-clamp:1}.v-list-item--two-line .v-list-item-subtitle{-webkit-line-clamp:2}.v-list-item--three-line .v-list-item-subtitle{-webkit-line-clamp:3}.v-list-item-subtitle{font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem;text-transform:none}.v-list-item--nav .v-list-item-subtitle{font-size:.75rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem}.v-list-item-title{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:normal;overflow:hidden;padding:0;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word}.v-list-item-title{font-size:1rem;font-weight:400;letter-spacing:.009375em;line-height:1.5;text-transform:none}.v-list-item--nav .v-list-item-title{font-size:.8125rem;font-weight:500;letter-spacing:normal;line-height:1rem}.v-list-item--density-default{min-height:40px}.v-list-item--density-default.v-list-item--one-line{min-height:48px;padding-top:4px;padding-bottom:4px}.v-list-item--density-default.v-list-item--two-line{min-height:64px;padding-top:12px;padding-bottom:12px}.v-list-item--density-default.v-list-item--three-line{min-height:88px;padding-top:16px;padding-bottom:16px}.v-list-item--density-default.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-default.v-list-item--three-line .v-list-item__append{padding-top:8px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-comfortable{min-height:36px}.v-list-item--density-comfortable.v-list-item--one-line{min-height:44px}.v-list-item--density-comfortable.v-list-item--two-line{min-height:60px;padding-top:8px;padding-bottom:8px}.v-list-item--density-comfortable.v-list-item--three-line{min-height:84px;padding-top:12px;padding-bottom:12px}.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__append{padding-top:6px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-compact{min-height:32px}.v-list-item--density-compact.v-list-item--one-line{min-height:40px}.v-list-item--density-compact.v-list-item--two-line{min-height:56px;padding-top:4px;padding-bottom:4px}.v-list-item--density-compact.v-list-item--three-line{min-height:80px;padding-top:8px;padding-bottom:8px}.v-list-item--density-compact.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-compact.v-list-item--three-line .v-list-item__append{padding-top:4px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--nav{padding-inline:8px}.v-list .v-list-item--nav:not(:only-child){margin-bottom:4px}.v-list-item__underlay{position:absolute}.v-list-item__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item--active.v-list-item--variant-elevated .v-list-item__overlay{--v-theme-overlay-multiplier: 0}.v-list{--indent-padding: 0px}.v-list--nav{--indent-padding: -8px}.v-list-group{--list-indent-size: 16px;--parent-padding: var(--indent-padding);--prepend-width: 40px}.v-list--slim .v-list-group{--prepend-width: 28px}.v-list-group--fluid{--list-indent-size: 0px}.v-list-group--prepend{--parent-padding: calc(var(--indent-padding) + var(--prepend-width))}.v-list-group--fluid.v-list-group--prepend{--parent-padding: var(--indent-padding)}.v-list-group__items{--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))}.v-list-group__items .v-list-item{padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:not(:focus-visible) .v-list-item__overlay{opacity:0}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:hover .v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit}.v-divider{border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:auto;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-divider__content{padding:0 16px;text-wrap:nowrap}.v-divider__wrapper--vertical .v-divider__content{padding:4px 0}.v-divider__wrapper{display:flex;align-items:center;justify-content:center}.v-divider__wrapper--vertical{flex-direction:column;height:100%}.v-divider__wrapper--vertical .v-divider{margin:0 auto}.v-menu>.v-overlay__content{display:flex;flex-direction:column}.v-menu>.v-overlay__content{border-radius:4px}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{background:rgb(var(--v-theme-surface));border-radius:inherit;overflow:auto;height:100%}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;left:0;pointer-events:none;position:fixed;top:0;bottom:0;right:0}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;bottom:0;left:0;opacity:var(--v-overlay-opacity, .32);position:fixed;right:0;top:0}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden}.v-select__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-select__content{border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-text-field input{color:inherit;opacity:0;flex:1;transition:.15s opacity cubic-bezier(.4,0,.2,1);min-width:0}.v-text-field input:focus,.v-text-field input:active{outline:none}.v-text-field input:invalid{box-shadow:none}.v-text-field .v-field{cursor:text}.v-text-field--prefixed.v-text-field .v-field__input{--v-field-padding-start: 6px}.v-text-field--suffixed.v-text-field .v-field__input{--v-field-padding-end: 0}.v-text-field .v-input__details{padding-inline:16px}.v-input--plain-underlined.v-text-field .v-input__details{padding-inline:0}.v-text-field .v-field--no-label input,.v-text-field .v-field--active input{opacity:1}.v-text-field .v-field--single-line input{transition:none}.v-text-field__prefix,.v-text-field__suffix{align-items:center;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));cursor:default;display:flex;opacity:0;transition:inherit;white-space:nowrap;min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));padding-top:calc(var(--v-field-padding-top, 4px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 6px)}.v-field--active .v-text-field__prefix,.v-field--active .v-text-field__suffix{opacity:1}.v-field--disabled .v-text-field__prefix,.v-field--disabled .v-text-field__suffix{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-text-field__prefix{padding-inline-start:var(--v-field-padding-start)}.v-text-field__suffix{padding-inline-end:var(--v-field-padding-end)}.v-counter{color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));flex:0 1 auto;font-size:12px;transition-duration:.15s}.v-field{display:grid;grid-template-areas:"prepend-inner field clear append-inner";grid-template-columns:min-content minmax(0,1fr) min-content min-content;font-size:16px;letter-spacing:.009375em;max-width:100%;border-radius:4px;contain:layout;flex:1 0;grid-area:control;position:relative;--v-theme-overlay-multiplier: 1;--v-field-padding-start: 16px;--v-field-padding-end: 16px;--v-field-padding-top: 8px;--v-field-padding-bottom: 4px;--v-field-input-padding-top: calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));--v-field-input-padding-bottom: var(--v-field-padding-bottom, 4px)}.v-field--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-field .v-chip{--v-chip-height: 24px}.v-field--prepended{padding-inline-start:12px}.v-field--appended{padding-inline-end:12px}.v-field--variant-solo,.v-field--variant-solo-filled{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo,.v-field--variant-solo-filled{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo-inverted{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted.v-field--focused{color:rgb(var(--v-theme-on-surface-variant))}.v-field--variant-filled{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-input--density-default .v-field--variant-solo,.v-input--density-default .v-field--variant-solo-inverted,.v-input--density-default .v-field--variant-solo-filled,.v-input--density-default .v-field--variant-filled{--v-input-control-height: 56px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-solo,.v-input--density-comfortable .v-field--variant-solo-inverted,.v-input--density-comfortable .v-field--variant-solo-filled,.v-input--density-comfortable .v-field--variant-filled{--v-input-control-height: 48px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-solo,.v-input--density-compact .v-field--variant-solo-inverted,.v-input--density-compact .v-field--variant-solo-filled,.v-input--density-compact .v-field--variant-filled{--v-input-control-height: 40px;--v-field-padding-bottom: 0px}.v-field--variant-outlined,.v-field--single-line,.v-field--no-label{--v-field-padding-top: 0px}.v-input--density-default .v-field--variant-outlined,.v-input--density-default .v-field--single-line,.v-input--density-default .v-field--no-label{--v-field-padding-bottom: 16px}.v-input--density-comfortable .v-field--variant-outlined,.v-input--density-comfortable .v-field--single-line,.v-input--density-comfortable .v-field--no-label{--v-field-padding-bottom: 12px}.v-input--density-compact .v-field--variant-outlined,.v-input--density-compact .v-field--single-line,.v-input--density-compact .v-field--no-label{--v-field-padding-bottom: 8px}.v-field--variant-plain,.v-field--variant-underlined{border-radius:0;padding:0}.v-field--variant-plain.v-field,.v-field--variant-underlined.v-field{--v-field-padding-start: 0px;--v-field-padding-end: 0px}.v-input--density-default .v-field--variant-plain,.v-input--density-default .v-field--variant-underlined{--v-input-control-height: 48px;--v-field-padding-top: 4px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-plain,.v-input--density-comfortable .v-field--variant-underlined{--v-input-control-height: 40px;--v-field-padding-top: 2px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-plain,.v-input--density-compact .v-field--variant-underlined{--v-input-control-height: 32px;--v-field-padding-top: 0px;--v-field-padding-bottom: 0px}.v-field--flat{box-shadow:none}.v-field--rounded{border-radius:24px}.v-field.v-field--prepended{--v-field-padding-start: 6px}.v-field.v-field--appended{--v-field-padding-end: 6px}.v-field__input{align-items:center;color:inherit;column-gap:2px;display:flex;flex-wrap:wrap;letter-spacing:.009375em;opacity:var(--v-high-emphasis-opacity);min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));min-width:0;padding-inline:var(--v-field-padding-start) var(--v-field-padding-end);padding-top:var(--v-field-input-padding-top);padding-bottom:var(--v-field-input-padding-bottom);position:relative;width:100%}.v-input--density-default .v-field__input{row-gap:8px}.v-input--density-comfortable .v-field__input{row-gap:6px}.v-input--density-compact .v-field__input{row-gap:4px}.v-field__input input{letter-spacing:inherit}.v-field__input input::placeholder,input.v-field__input::placeholder,textarea.v-field__input::placeholder{color:currentColor;opacity:var(--v-disabled-opacity)}.v-field__input:focus,.v-field__input:active{outline:none}.v-field__input:invalid{box-shadow:none}.v-field__field{flex:1 0;grid-area:field;position:relative;align-items:flex-start;display:flex}.v-field__prepend-inner{grid-area:prepend-inner;padding-inline-end:var(--v-field-padding-after)}.v-field__clearable{grid-area:clear}.v-field__append-inner{grid-area:append-inner;padding-inline-start:var(--v-field-padding-after)}.v-field__append-inner,.v-field__clearable,.v-field__prepend-inner{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top, 8px)}.v-field--center-affix .v-field__append-inner,.v-field--center-affix .v-field__clearable,.v-field--center-affix .v-field__prepend-inner{align-items:center;padding-top:0}.v-field.v-field--variant-underlined .v-field__append-inner,.v-field.v-field--variant-underlined .v-field__clearable,.v-field.v-field--variant-underlined .v-field__prepend-inner,.v-field.v-field--variant-plain .v-field__append-inner,.v-field.v-field--variant-plain .v-field__clearable,.v-field.v-field--variant-plain .v-field__prepend-inner{align-items:flex-start;padding-top:calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 4px)}.v-field--focused .v-field__prepend-inner,.v-field--focused .v-field__append-inner{opacity:1}.v-field__prepend-inner>.v-icon,.v-field__append-inner>.v-icon,.v-field__clearable>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-field--disabled .v-field__prepend-inner>.v-icon,.v-field--error .v-field__prepend-inner>.v-icon,.v-field--disabled .v-field__append-inner>.v-icon,.v-field--error .v-field__append-inner>.v-icon,.v-field--disabled .v-field__clearable>.v-icon,.v-field--error .v-field__clearable>.v-icon{opacity:1}.v-field--error:not(.v-field--disabled) .v-field__prepend-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__append-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__clearable>.v-icon{color:rgb(var(--v-theme-error))}.v-field__clearable{cursor:pointer;opacity:0;overflow:hidden;margin-inline:4px;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,width}.v-field--focused .v-field__clearable,.v-field--persistent-clear .v-field__clearable{opacity:1}@media (hover: hover){.v-field:hover .v-field__clearable{opacity:1}}@media (hover: none){.v-field__clearable{opacity:1}}.v-label.v-field-label{contain:layout paint;display:block;margin-inline-start:var(--v-field-padding-start);margin-inline-end:var(--v-field-padding-end);max-width:calc(100% - var(--v-field-padding-start) - var(--v-field-padding-end));pointer-events:none;position:absolute;top:var(--v-input-padding-top);transform-origin:left center;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform;z-index:1}.v-field--variant-underlined .v-label.v-field-label,.v-field--variant-plain .v-label.v-field-label{top:calc(var(--v-input-padding-top) + var(--v-field-padding-top))}.v-field--center-affix .v-label.v-field-label{top:50%;transform:translateY(-50%)}.v-field--active .v-label.v-field-label{visibility:hidden}.v-field--focused .v-label.v-field-label,.v-field--error .v-label.v-field-label{opacity:1}.v-field--error:not(.v-field--disabled) .v-label.v-field-label{color:rgb(var(--v-theme-error))}.v-label.v-field-label--floating{--v-field-label-scale: .75em;font-size:var(--v-field-label-scale);visibility:hidden;max-width:100%}.v-field--center-affix .v-label.v-field-label--floating{transform:none}.v-field.v-field--active .v-label.v-field-label--floating{visibility:unset}.v-input--density-default .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-filled .v-label.v-field-label--floating{top:7px}.v-input--density-comfortable .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-filled .v-label.v-field-label--floating{top:5px}.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:3px}.v-field--variant-plain .v-label.v-field-label--floating,.v-field--variant-underlined .v-label.v-field-label--floating{transform:translateY(-16px);margin:0;top:var(--v-input-padding-top)}.v-field--variant-outlined .v-label.v-field-label--floating{transform:translateY(-50%);transform-origin:center;position:static;margin:0 4px}.v-field__outline{--v-field-border-width: 1px;--v-field-border-opacity: .38;align-items:stretch;contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%}@media (hover: hover){.v-field:hover .v-field__outline{--v-field-border-opacity: var(--v-high-emphasis-opacity)}}.v-field--error:not(.v-field--disabled) .v-field__outline{color:rgb(var(--v-theme-error))}.v-field.v-field--focused .v-field__outline,.v-input.v-input--error .v-field__outline{--v-field-border-opacity: 1}.v-field--variant-outlined.v-field--focused .v-field__outline{--v-field-border-width: 2px}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{border-color:currentColor;border-style:solid;border-width:0 0 var(--v-field-border-width);opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{border-color:currentColor;border-style:solid;border-width:0 0 2px;transform:scaleX(0);transition:transform .15s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--focused.v-field--variant-filled .v-field__outline:after,.v-field--focused.v-field--variant-underlined .v-field__outline:after{transform:scaleX(1)}.v-field--variant-outlined .v-field__outline{border-radius:inherit}.v-field--variant-outlined .v-field__outline__start,.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after,.v-field--variant-outlined .v-field__outline__end{border:0 solid currentColor;opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__start{flex:0 0 12px;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-start-width:var(--v-field-border-width);border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit}.v-field--rounded.v-field--variant-outlined .v-field__outline__start,[class^=rounded-].v-field--variant-outlined .v-field__outline__start,[class*=" rounded-"].v-field--variant-outlined .v-field__outline__start{flex-basis:calc(var(--v-input-control-height) / 2 + 2px)}.v-field--reverse.v-field--variant-outlined .v-field__outline__start{border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0;border-inline-end-width:var(--v-field-border-width);border-inline-start-width:0}.v-field--variant-outlined .v-field__outline__notch{flex:none;position:relative;max-width:calc(100% - 12px)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-outlined .v-field__outline__notch:before{border-width:var(--v-field-border-width) 0 0}.v-field--variant-outlined .v-field__outline__notch:after{bottom:0;border-width:0 0 var(--v-field-border-width)}.v-field--active.v-field--variant-outlined .v-field__outline__notch:before{opacity:0}.v-field--variant-outlined .v-field__outline__end{flex:1;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-end-width:var(--v-field-border-width);border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0}.v-field--reverse.v-field--variant-outlined .v-field__outline__end{border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit;border-inline-end-width:0;border-inline-start-width:var(--v-field-border-width)}.v-field__loader{top:calc(100% - 2px);left:0;position:absolute;right:0;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden}.v-field--variant-outlined .v-field__loader{top:calc(100% - 3px);width:calc(100% - 2px);left:1px}.v-field__overlay{border-radius:inherit;pointer-events:none}.v-field__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media (hover: hover){.v-field--variant-solo-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-inverted .v-field__overlay{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-solo-inverted.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-solo-inverted:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-inverted.v-field--focused .v-field__overlay{background-color:rgb(var(--v-theme-surface-variant));opacity:1}.v-field--reverse .v-field__field,.v-field--reverse .v-field__input,.v-field--reverse .v-field__outline{flex-direction:row-reverse}.v-field--reverse .v-field__input,.v-field--reverse input{text-align:end}.v-input--disabled .v-field--variant-filled .v-field__outline:before,.v-input--disabled .v-field--variant-underlined .v-field__outline:before{border-image:repeating-linear-gradient(to right,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 0px,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 2px,transparent 2px,transparent 4px) 1 repeat}.v-field--loading .v-field__outline:after,.v-field--loading .v-field__outline:before{opacity:0}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block}.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px}.v-dialog>.v-overlay__content,.v-dialog>.v-overlay__content>form{display:flex;flex-direction:column;min-height:0}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:16px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:0}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-actions,.v-dialog>.v-overlay__content>form>.v-card>.v-card-actions{justify-content:flex-end}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0}.v-card{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card{border-radius:4px}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-card .v-card__underlay{position:absolute}.v-card--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1}.v-card--hover:before{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0}.v-card--hover:after{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--hover:hover{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend,.v-card-item__append{align-items:center;display:flex}.v-card-item__prepend{grid-area:prepend;padding-inline-end:.5rem}.v-card-item__append{grid-area:append;padding-inline-start:.5rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:1.6}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.425}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-text-opacity, 1);padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.425}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{bottom:auto;top:0;left:0;position:absolute;right:0;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-slider .v-slider__container input{cursor:default;padding:0;width:100%;display:none}.v-slider>.v-input__append,.v-slider>.v-input__prepend{padding:0}.v-slider__container{position:relative;min-height:inherit;width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}.v-input--disabled .v-slider__container{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-slider__container{color:rgb(var(--v-theme-error))}.v-slider.v-input--horizontal{align-items:center;margin-inline:8px 8px}.v-slider.v-input--horizontal>.v-input__control{min-height:32px;display:flex;align-items:center}.v-slider.v-input--vertical{justify-content:center;margin-top:12px;margin-bottom:12px}.v-slider.v-input--vertical>.v-input__control{min-height:300px}.v-slider.v-input--disabled{pointer-events:none}.v-slider--has-labels>.v-input__control{margin-bottom:4px}.v-slider__label{margin-inline-end:12px}.v-slider-thumb{touch-action:none;color:rgb(var(--v-theme-surface-variant))}.v-input--error:not(.v-input--disabled) .v-slider-thumb{color:inherit}.v-slider-thumb__label{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant))}.v-slider-thumb__label:before{color:rgba(var(--v-theme-surface-variant),.7)}.v-slider-thumb{outline:none;position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider-thumb__surface{cursor:pointer;width:var(--v-slider-thumb-size);height:var(--v-slider-thumb-size);border-radius:50%;-webkit-user-select:none;user-select:none;background-color:currentColor}@media (forced-colors: active){.v-slider-thumb__surface{background-color:highlight}}.v-slider-thumb__surface:before{transition:.3s cubic-bezier(.4,0,.2,1);content:"";color:inherit;top:0;left:0;width:100%;height:100%;border-radius:50%;background:currentColor;position:absolute;pointer-events:none;opacity:0}.v-slider-thumb__surface:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.v-slider-thumb__label-container{position:absolute;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label{display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:35px;height:25px;border-radius:4px;padding:6px;position:absolute;-webkit-user-select:none;user-select:none;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label:before{content:"";width:0;height:0;position:absolute}.v-slider-thumb__ripple{position:absolute;left:calc(var(--v-slider-thumb-size) / -2);top:calc(var(--v-slider-thumb-size) / -2);width:calc(var(--v-slider-thumb-size) * 2);height:calc(var(--v-slider-thumb-size) * 2);background:inherit}.v-slider.v-input--horizontal .v-slider-thumb{top:50%;transform:translateY(-50%);inset-inline-start:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--horizontal .v-slider-thumb__label-container{left:calc(var(--v-slider-thumb-size) / 2);top:0}.v-slider.v-input--horizontal .v-slider-thumb__label{bottom:calc(var(--v-slider-thumb-size) / 2)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-thumb__label:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;bottom:-6px}.v-slider.v-input--vertical .v-slider-thumb{top:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label-container{top:calc(var(--v-slider-thumb-size) / 2);right:0}.v-slider.v-input--vertical .v-slider-thumb__label{top:-12.5px;left:calc(var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label:before{border-right:6px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px}.v-slider-thumb--focused .v-slider-thumb__surface:before{transform:scale(2);opacity:var(--v-focus-opacity)}.v-slider-thumb--pressed{transition:none}.v-slider-thumb--pressed .v-slider-thumb__surface:before{opacity:var(--v-pressed-opacity)}@media (hover: hover){.v-slider-thumb:hover .v-slider-thumb__surface:before{transform:scale(2)}.v-slider-thumb:hover:not(.v-slider-thumb--focused) .v-slider-thumb__surface:before{opacity:var(--v-hover-opacity)}}.v-slider-track__background{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__background{background-color:highlight}}.v-slider-track__fill{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__fill{background-color:highlight}}.v-slider-track__tick{background-color:rgb(var(--v-theme-surface-variant))}.v-slider-track__tick--filled{background-color:rgb(var(--v-theme-surface-light))}.v-slider-track{border-radius:6px}@media (forced-colors: active){.v-slider-track{border:thin solid buttontext}}.v-slider-track__background,.v-slider-track__fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:inherit}.v-slider--pressed .v-slider-track__background,.v-slider--pressed .v-slider-track__fill{transition:none}.v-input--error:not(.v-input--disabled) .v-slider-track__background,.v-input--error:not(.v-input--disabled) .v-slider-track__fill{background-color:currentColor}.v-slider-track__ticks{height:100%;width:100%;position:relative}.v-slider-track__tick{position:absolute;opacity:0;transition:.2s opacity cubic-bezier(.4,0,.2,1);border-radius:2px;width:var(--v-slider-tick-size);height:var(--v-slider-tick-size);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / -2))}.v-locale--is-ltr.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--first .v-slider-track__tick-label{transform:none}.v-locale--is-rtl.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(100%)}.v-locale--is-ltr.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--last .v-slider-track__tick-label{transform:none}.v-slider-track__tick-label{position:absolute;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-slider.v-input--horizontal .v-slider-track{display:flex;align-items:center;width:100%;height:calc(var(--v-slider-track-size) + 2px);touch-action:pan-y}.v-slider.v-input--horizontal .v-slider-track__background{height:var(--v-slider-track-size)}.v-slider.v-input--horizontal .v-slider-track__fill{height:inherit}.v-slider.v-input--horizontal .v-slider-track__tick{margin-top:calc(calc(var(--v-slider-track-size) + 2px) / 2)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / -2))}.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{margin-top:calc(var(--v-slider-track-size) / 2 + 8px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-track__tick--first{margin-inline-start:calc(var(--v-slider-tick-size) + 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(0)}.v-slider.v-input--horizontal .v-slider-track__tick--last{margin-inline-start:calc(100% - var(--v-slider-tick-size) - 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(100%)}.v-slider.v-input--vertical .v-slider-track{height:100%;display:flex;justify-content:center;width:calc(var(--v-slider-track-size) + 2px);touch-action:pan-x}.v-slider.v-input--vertical .v-slider-track__background{width:var(--v-slider-track-size)}.v-slider.v-input--vertical .v-slider-track__fill{width:inherit}.v-slider.v-input--vertical .v-slider-track__ticks{height:100%}.v-slider.v-input--vertical .v-slider-track__tick{margin-inline-start:calc(calc(var(--v-slider-track-size) + 2px) / 2);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / 2))}.v-locale--is-rtl.v-slider.v-input--vertical .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--vertical .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / 2))}.v-slider.v-input--vertical .v-slider-track__tick--first{bottom:calc(0% + var(--v-slider-tick-size) + 1px)}.v-slider.v-input--vertical .v-slider-track__tick--last{bottom:calc(100% - var(--v-slider-tick-size) - 1px)}.v-slider.v-input--vertical .v-slider-track__tick .v-slider-track__tick-label{margin-inline-start:calc(var(--v-slider-track-size) / 2 + 12px);transform:translateY(-50%)}.v-slider-track__ticks--always-show .v-slider-track__tick,.v-slider--focused .v-slider-track__tick{opacity:1}.v-slider-track__background--opacity{opacity:.38}.v-combobox .v-field .v-text-field__prefix,.v-combobox .v-field .v-text-field__suffix,.v-combobox .v-field .v-field__input,.v-combobox .v-field.v-field{cursor:text}.v-combobox .v-field .v-field__input>input{flex:1 1}.v-combobox .v-field input{min-width:64px}.v-combobox .v-field:not(.v-field--focused) input{min-width:0}.v-combobox .v-field--dirty .v-combobox__selection{margin-inline-end:2px}.v-combobox .v-combobox__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-combobox__content{overflow:hidden}.v-combobox__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-combobox__content{border-radius:4px}.v-combobox__mask{background:rgb(var(--v-theme-surface-light))}.v-combobox__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-combobox__selection:first-child{margin-inline-start:0}.v-combobox--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-combobox--selecting-index .v-combobox__selection{opacity:var(--v-medium-emphasis-opacity)}.v-combobox--selecting-index .v-combobox__selection--selected{opacity:1}.v-combobox--selecting-index .v-field__input>input{caret-color:transparent}.v-combobox--single:not(.v-combobox--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--active input{transition:none}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--focused .v-combobox__selection{opacity:0}.v-combobox__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-combobox--active-menu .v-combobox__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table__th--sticky{background:rgb(var(--v-theme-surface));position:sticky!important;left:0;z-index:1}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-progress__loader{position:relative}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table__tr--mobile>.v-data-table__td--expanded-row{grid-template-columns:0;justify-content:center}.v-data-table__tr--mobile>.v-data-table__td--select-row{grid-template-columns:0;justify-content:end}.v-data-table__tr--mobile>td{align-items:center;column-gap:4px;display:grid;grid-template-columns:repeat(2,1fr);min-height:var(--v-table-row-height)}.v-data-table__tr--mobile>td:not(:last-child){border-bottom:0!important}.v-data-table__td-title{font-weight:500;text-align:left}.v-data-table__td-value{text-align:right}.v-data-table__td-sort-icon{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-data-table__td-sort-icon-active{color:rgba(var(--v-theme-on-surface))}.v-data-table-footer{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:8px 4px}.v-data-table-footer__items-per-page{align-items:center;display:flex;justify-content:center}.v-data-table-footer__items-per-page>span{padding-inline-end:8px}.v-data-table-footer__items-per-page>.v-select{width:90px}.v-data-table-footer__info{display:flex;justify-content:flex-end;min-width:116px;padding:0 16px}.v-data-table-footer__paginationz{align-items:center;display:flex;margin-inline-start:16px}.v-data-table-footer__page{padding:0 8px}.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}.v-table{font-size:.875rem;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr>td{position:relative}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{background:rgba(var(--v-border-color),var(--v-hover-opacity));pointer-events:none}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px 0 rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px 0 rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{border-radius:inherit;line-height:1.5;max-width:100%;display:flex;flex-direction:column}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>td{height:var(--v-table-row-height)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{height:var(--v-table-header-height);font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default{--v-table-header-height: 56px;--v-table-row-height: 52px}.v-table--density-comfortable{--v-table-header-height: 48px;--v-table-row-height: 44px}.v-table--density-compact{--v-table-header-height: 40px;--v-table-row-height: 36px}.v-table__wrapper{border-radius:inherit;overflow:auto;flex:1 1 auto}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:2}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.offset-1{margin-inline-start:8.3333333333%}.offset-2{margin-inline-start:16.6666666667%}.offset-3{margin-inline-start:25%}.offset-4{margin-inline-start:33.3333333333%}.offset-5{margin-inline-start:41.6666666667%}.offset-6{margin-inline-start:50%}.offset-7{margin-inline-start:58.3333333333%}.offset-8{margin-inline-start:66.6666666667%}.offset-9{margin-inline-start:75%}.offset-10{margin-inline-start:83.3333333333%}.offset-11{margin-inline-start:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.offset-sm-0{margin-inline-start:0}.offset-sm-1{margin-inline-start:8.3333333333%}.offset-sm-2{margin-inline-start:16.6666666667%}.offset-sm-3{margin-inline-start:25%}.offset-sm-4{margin-inline-start:33.3333333333%}.offset-sm-5{margin-inline-start:41.6666666667%}.offset-sm-6{margin-inline-start:50%}.offset-sm-7{margin-inline-start:58.3333333333%}.offset-sm-8{margin-inline-start:66.6666666667%}.offset-sm-9{margin-inline-start:75%}.offset-sm-10{margin-inline-start:83.3333333333%}.offset-sm-11{margin-inline-start:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.offset-md-0{margin-inline-start:0}.offset-md-1{margin-inline-start:8.3333333333%}.offset-md-2{margin-inline-start:16.6666666667%}.offset-md-3{margin-inline-start:25%}.offset-md-4{margin-inline-start:33.3333333333%}.offset-md-5{margin-inline-start:41.6666666667%}.offset-md-6{margin-inline-start:50%}.offset-md-7{margin-inline-start:58.3333333333%}.offset-md-8{margin-inline-start:66.6666666667%}.offset-md-9{margin-inline-start:75%}.offset-md-10{margin-inline-start:83.3333333333%}.offset-md-11{margin-inline-start:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.offset-lg-0{margin-inline-start:0}.offset-lg-1{margin-inline-start:8.3333333333%}.offset-lg-2{margin-inline-start:16.6666666667%}.offset-lg-3{margin-inline-start:25%}.offset-lg-4{margin-inline-start:33.3333333333%}.offset-lg-5{margin-inline-start:41.6666666667%}.offset-lg-6{margin-inline-start:50%}.offset-lg-7{margin-inline-start:58.3333333333%}.offset-lg-8{margin-inline-start:66.6666666667%}.offset-lg-9{margin-inline-start:75%}.offset-lg-10{margin-inline-start:83.3333333333%}.offset-lg-11{margin-inline-start:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.offset-xl-0{margin-inline-start:0}.offset-xl-1{margin-inline-start:8.3333333333%}.offset-xl-2{margin-inline-start:16.6666666667%}.offset-xl-3{margin-inline-start:25%}.offset-xl-4{margin-inline-start:33.3333333333%}.offset-xl-5{margin-inline-start:41.6666666667%}.offset-xl-6{margin-inline-start:50%}.offset-xl-7{margin-inline-start:58.3333333333%}.offset-xl-8{margin-inline-start:66.6666666667%}.offset-xl-9{margin-inline-start:75%}.offset-xl-10{margin-inline-start:83.3333333333%}.offset-xl-11{margin-inline-start:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.offset-xxl-0{margin-inline-start:0}.offset-xxl-1{margin-inline-start:8.3333333333%}.offset-xxl-2{margin-inline-start:16.6666666667%}.offset-xxl-3{margin-inline-start:25%}.offset-xxl-4{margin-inline-start:33.3333333333%}.offset-xxl-5{margin-inline-start:41.6666666667%}.offset-xxl-6{margin-inline-start:50%}.offset-xxl-7{margin-inline-start:58.3333333333%}.offset-xxl-8{margin-inline-start:66.6666666667%}.offset-xxl-9{margin-inline-start:75%}.offset-xxl-10{margin-inline-start:83.3333333333%}.offset-xxl-11{margin-inline-start:91.6666666667%}}.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child:not(:last-child){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child) .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-expansion-panel--active>.v-expansion-panel-title:not(.v-expansion-panel-title--static){min-height:31px}.v-expansion-panel__shadow{border-radius:inherit;z-index:-1}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel__shadow{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:31px;outline:none;padding:8px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--focusable.v-expansion-panel-title--active .v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:hover .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus-visible .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title__overlay{background-color:currentColor;border-radius:inherit;opacity:0}.v-expansion-panel-title__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel-title__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;user-select:none;margin-inline-start:auto}.v-expansion-panel-text{display:flex}.v-expansion-panel-text__wrapper{padding:8px 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--variant-accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--variant-accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--variant-popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--variant-popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--variant-inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--variant-inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-expansion-panels--flat>.v-expansion-panel:after{border-top:none}.v-expansion-panels--flat>.v-expansion-panel .v-expansion-panel__shadow{display:none}.v-expansion-panels--tile{border-radius:0}.v-expansion-panels--tile>.v-expansion-panel{border-radius:0}.v-footer{align-items:center;display:flex;flex:1 1 auto;padding:8px 16px;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom}.v-footer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-footer--border{border-width:thin;box-shadow:none}.v-footer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-footer--absolute{position:absolute}.v-footer--fixed{position:fixed}.v-footer{border-radius:0}.v-footer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-footer--rounded{border-radius:4px}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex}.v-main--scrollable{position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-navigation-drawer{-webkit-overflow-scrolling:touch;background:rgb(var(--v-theme-surface));display:flex;flex-direction:column;height:100%;max-width:100%;pointer-events:auto;transition-duration:.2s;transition-property:box-shadow,transform,visibility,width,height,left,right,top,bottom;transition-timing-function:cubic-bezier(.4,0,.2,1);position:absolute}.v-navigation-drawer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-navigation-drawer--border{border-width:thin;box-shadow:none}.v-navigation-drawer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-navigation-drawer--rounded{border-radius:4px}.v-navigation-drawer--top,.v-navigation-drawer--bottom{max-height:-webkit-fill-available;overflow-y:auto}.v-navigation-drawer--top{top:0;border-bottom-width:thin}.v-navigation-drawer--bottom{left:0;border-top-width:thin}.v-navigation-drawer--left{top:0;left:0;right:auto;border-right-width:thin}.v-navigation-drawer--right{top:0;left:auto;right:0;border-left-width:thin}.v-navigation-drawer--floating{border:none}.v-navigation-drawer--temporary.v-navigation-drawer--active{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer--sticky{height:auto;transition:box-shadow,transform,visibility,width,height,left,right}.v-navigation-drawer .v-list{overflow:hidden}.v-navigation-drawer__content{flex:0 1 auto;height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}.v-navigation-drawer__img{height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.v-navigation-drawer__img img:not(.v-img__img){height:inherit;object-fit:cover;width:inherit}.v-navigation-drawer__scrim{position:absolute;top:0;left:0;width:100%;height:100%;background:black;opacity:.2;transition:opacity .2s cubic-bezier(.4,0,.2,1);z-index:1}.v-navigation-drawer__prepend,.v-navigation-drawer__append{flex:none;overflow:hidden}.v-snackbar{justify-content:center;z-index:10000;margin:8px;margin-inline-end:calc(8px + var(--v-scrollbar-offset));padding:var(--v-layout-top) var(--v-layout-right) var(--v-layout-bottom) var(--v-layout-left)}.v-snackbar:not(.v-snackbar--center):not(.v-snackbar--top){align-items:flex-end}.v-snackbar__wrapper{align-items:center;display:flex;max-width:672px;min-height:48px;min-width:344px;overflow:hidden;padding:0}.v-snackbar__wrapper{border-radius:4px}.v-snackbar--variant-plain,.v-snackbar--variant-outlined,.v-snackbar--variant-text,.v-snackbar--variant-tonal{background:transparent;color:inherit}.v-snackbar--variant-plain{opacity:.62}.v-snackbar--variant-plain:focus,.v-snackbar--variant-plain:hover{opacity:1}.v-snackbar--variant-plain .v-snackbar__overlay{display:none}.v-snackbar--variant-elevated,.v-snackbar--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-snackbar--variant-elevated{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-outlined{border:thin solid currentColor}.v-snackbar--variant-text .v-snackbar__overlay{background:currentColor}.v-snackbar--variant-tonal .v-snackbar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-snackbar .v-snackbar__underlay{position:absolute}.v-snackbar__content{flex-grow:1;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1.425;margin-right:auto;padding:14px 16px;text-align:initial}.v-snackbar__actions{align-items:center;align-self:center;display:flex;margin-inline-end:8px}.v-snackbar__actions>.v-btn{padding:0 8px;min-width:auto}.v-snackbar__timer{width:100%;position:absolute;top:0}.v-snackbar__timer .v-progress-linear{transition:.2s linear}.v-snackbar--absolute{position:absolute;z-index:1}.v-snackbar--multi-line .v-snackbar__wrapper{min-height:68px}.v-snackbar--vertical .v-snackbar__wrapper{flex-direction:column}.v-snackbar--vertical .v-snackbar__wrapper .v-snackbar__actions{align-self:flex-end;margin-bottom:8px}.v-snackbar--center{align-items:center;justify-content:center}.v-snackbar--top{align-items:flex-start}.v-snackbar--bottom{align-items:flex-end}.v-snackbar--left,.v-snackbar--start{justify-content:flex-start}.v-snackbar--right,.v-snackbar--end{justify-content:flex-end}.v-snackbar-transition-enter-active,.v-snackbar-transition-leave-active{transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-snackbar-transition-enter-active{transition-property:opacity,transform}.v-snackbar-transition-enter-from{opacity:0;transform:scale(.8)}.v-snackbar-transition-leave-active{transition-property:opacity}.v-snackbar-transition-leave-to{opacity:0}.v-switch .v-label{padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__loader .v-progress-circular{color:rgb(var(--v-theme-surface))}.v-switch__track,.v-switch__thumb{transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb{background-color:rgb(var(--v-theme-error));color:rgb(var(--v-theme-on-error))}.v-switch__track-true{margin-inline-end:auto}.v-selection-control:not(.v-selection-control--dirty) .v-switch__track-true{opacity:0}.v-switch__track-false{margin-inline-start:auto}.v-selection-control--dirty .v-switch__track-false{opacity:0}.v-switch__track{display:inline-flex;align-items:center;font-size:.5rem;padding:0 5px;background-color:rgb(var(--v-theme-surface-variant));border-radius:9999px;height:14px;opacity:.6;min-width:36px;cursor:pointer;transition:.2s background-color cubic-bezier(.4,0,.2,1)}.v-switch--inset .v-switch__track{border-radius:9999px;font-size:.75rem;height:32px;min-width:52px}.v-switch__thumb{align-items:center;background-color:rgb(var(--v-theme-surface-bright));color:rgb(var(--v-theme-on-surface-bright));border-radius:50%;display:flex;font-size:.75rem;height:20px;justify-content:center;width:20px;pointer-events:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1),.2s color cubic-bezier(.4,0,.2,1),.2s background-color cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.v-switch:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch--inset .v-switch__thumb{height:24px;width:24px;transform:scale(.6666666667)}.v-switch--inset .v-switch__thumb--filled{transform:none}.v-switch--inset .v-selection-control--dirty .v-switch__thumb{transform:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1)}.v-switch.v-input{flex:0 1 auto}.v-switch .v-selection-control{min-height:var(--v-input-control-height)}.v-switch .v-selection-control__input{border-radius:50%;transition:.2s transform cubic-bezier(.4,0,.2,1);position:absolute}.v-locale--is-ltr.v-switch .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control__input{transform:translate(-10px)}.v-locale--is-rtl.v-switch .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control__input{transform:translate(10px)}.v-switch .v-selection-control__input .v-icon{position:absolute}.v-locale--is-ltr.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(10px)}.v-locale--is-rtl.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(-10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.v-switch.v-switch--inset .v-selection-control__wrapper{width:auto}.v-switch.v-input--vertical .v-label{min-width:max-content}.v-switch.v-input--vertical .v-selection-control__wrapper{transform:rotate(-90deg)}@media (forced-colors: active){.v-switch .v-switch__loader .v-progress-circular{color:currentColor}.v-switch .v-switch__thumb{background-color:buttontext}.v-switch .v-switch__track,.v-switch .v-switch__thumb{border:1px solid;color:buttontext}.v-switch:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track,.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{color:highlight}.v-switch.v-switch--inset .v-switch__track{border-width:2px}.v-switch.v-switch--inset:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlighttext;color:highlighttext}.v-switch.v-input--disabled .v-switch__thumb{background-color:graytext}.v-switch.v-input--disabled .v-switch__track,.v-switch.v-input--disabled .v-switch__thumb{color:graytext}.v-switch.v-switch--loading .v-switch__thumb{background-color:canvas}.v-switch.v-switch--loading.v-switch--inset .v-switch__thumb,.v-switch.v-switch--loading.v-switch--indeterminate .v-switch__thumb{border-width:0}}.v-textarea .v-field{--v-textarea-control-height: var(--v-input-control-height)}.v-textarea .v-field__field{--v-input-control-height: var(--v-textarea-control-height)}.v-textarea .v-field__input{flex:1 1 auto;outline:none;-webkit-mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px));mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px))}.v-textarea .v-field__input.v-textarea__sizer{visibility:hidden;position:absolute;top:0;left:0;height:0!important;min-height:0!important;pointer-events:none}.v-textarea--no-resize .v-field__input{resize:none}.v-textarea .v-field--no-label textarea,.v-textarea .v-field--active textarea{opacity:1}.v-textarea textarea{opacity:0;flex:1;min-width:0;transition:.15s opacity cubic-bezier(.4,0,.2,1)}.v-textarea textarea:focus,.v-textarea textarea:active{outline:none}.v-textarea textarea:invalid{box-shadow:none}.v-tooltip>.v-overlay__content{background:rgb(var(--v-theme-bluegrey));color:rgb(var(--v-theme-on-surface-variant));border-radius:4px;font-size:.875rem;line-height:1.6;display:inline-block;padding:5px 16px;text-transform:initial;width:auto;opacity:1;pointer-events:none;transition-property:opacity,transform;overflow-wrap:break-word}.v-tooltip>.v-overlay__content[class*=enter-active]{transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s}.v-tooltip>.v-overlay__content[class*=leave-active]{transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:75ms}.divider[data-v-c00c2563]{position:relative;height:24px}.divider__divider-line[data-v-c00c2563]{position:absolute;top:50%;width:100%;transform:translateY(-50%)}.divider__btn[data-v-c00c2563]{position:absolute;top:0;left:50%;transform:translate(-50%);opacity:1}.divider[data-v-c00c2563]:hover{cursor:pointer}.divider:hover .divider__divider-line[data-v-c00c2563]{background-color:#fff}.divider:hover .divider__btn[data-v-c00c2563]{color:#fff!important}.cell[data-v-c84bd489]{padding:18px;display:flex;margin-bottom:2px}.cell--dev[data-v-c84bd489]{margin-bottom:16px}.message-btn--alert[data-v-c84bd489]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjQUU5RkU4Ij48cGF0aCBkPSJNMTMuMzA1IDIyLjVMMTIgMjEuNzVMMTUgMTYuNUgxOS41QzE5Ljg5NzggMTYuNSAyMC4yNzk0IDE2LjM0MiAyMC41NjA3IDE2LjA2MDdDMjAuODQyIDE1Ljc3OTQgMjEgMTUuMzk3OCAyMSAxNVY2QzIxIDUuNjAyMTggMjAuODQyIDUuMjIwNjQgMjAuNTYwNyA0LjkzOTM0QzIwLjI3OTQgNC42NTgwNCAxOS44OTc4IDQuNSAxOS41IDQuNUg0LjVDNC4xMDIxOCA0LjUgMy43MjA2NCA0LjY1ODA0IDMuNDM5MzQgNC45MzkzNEMzLjE1ODA0IDUuMjIwNjQgMyA1LjYwMjE4IDMgNlYxNUMzIDE1LjM5NzggMy4xNTgwNCAxNS43Nzk0IDMuNDM5MzQgMTYuMDYwN0MzLjcyMDY0IDE2LjM0MiA0LjEwMjE4IDE2LjUgNC41IDE2LjVIMTEuMjVWMThINC41QzMuNzA0MzUgMTggMi45NDEyOSAxNy42ODM5IDIuMzc4NjggMTcuMTIxM0MxLjgxNjA3IDE2LjU1ODcgMS41IDE1Ljc5NTYgMS41IDE1VjZDMS41IDUuMjA0MzUgMS44MTYwNyA0LjQ0MTI5IDIuMzc4NjggMy44Nzg2OEMyLjk0MTI5IDMuMzE2MDcgMy43MDQzNSAzIDQuNSAzSDE5LjVDMjAuMjk1NiAzIDIxLjA1ODcgMy4zMTYwNyAyMS42MjEzIDMuODc4NjhDMjIuMTgzOSA0LjQ0MTI5IDIyLjUgNS4yMDQzNSAyMi41IDZWMTVDMjIuNSAxNS43OTU2IDIyLjE4MzkgMTYuNTU4NyAyMS42MjEzIDE3LjEyMTNDMjEuMDU4NyAxNy42ODM5IDIwLjI5NTYgMTggMTkuNSAxOEgxNS44N0wxMy4zMDUgMjIuNVoiIGZpbGw9IiNBRTlGRTgiLz48L3N2Zz4=);background-position:center;background-repeat:no-repeat;transition:none}.message-btn__counter[data-v-c84bd489]{margin-bottom:4px}.delete-cell[data-v-c84bd489]:hover{background-color:#6e3d41}.content[data-v-c84bd489]{flex:1;margin-left:16px;margin-right:0;width:calc(100% - 36px)}.indicator[data-v-c84bd489]{border-radius:4px}.header[data-v-c84bd489]{display:flex;justify-content:space-between;margin-bottom:16px}.code[data-v-c84bd489],.outcome[data-v-c84bd489]{padding:0}.code--dev[data-v-c84bd489],.outcome--dev[data-v-c84bd489]{border:1px solid rgba(var(--v-theme-bluegrey));border-radius:4px;padding:12px}.code[data-v-c84bd489]{margin-bottom:16px}.click-edit[data-v-c84bd489]{width:calc(100% - 135px)}.click-edit__name[data-v-c84bd489]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__show-text[data-v-c84bd489],.click-edit__edit-field-wrapper[data-v-c84bd489]{height:100%;display:flex;align-items:center}.click-edit__name[data-v-c84bd489]:hover{cursor:text;padding-left:3px;padding-right:3px;border:1px solid #294455}.click-edit__static-name[data-v-c84bd489]{cursor:text;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__edit-field[data-v-c84bd489]{margin-top:-11px}.click-edit__edit-field[data-v-c84bd489] .v-field__input{font-size:1rem;letter-spacing:normal}.app-static-name[data-v-3780137e]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-3780137e] .plot-container{overflow:auto}.markdown-content[data-v-d5250b54]{font-family:Arial,sans-serif;line-height:1.6;color:#fff}.markdown-content h1[data-v-d5250b54],h2[data-v-d5250b54],h3[data-v-d5250b54],h4[data-v-d5250b54],h5[data-v-d5250b54],h6[data-v-d5250b54]{margin-top:1.5em;margin-bottom:.5em;font-weight:700;line-height:1.3}.markdown-content p[data-v-d5250b54]{margin-top:0;margin-bottom:1em}.markdown-content ul[data-v-d5250b54],ol[data-v-d5250b54]{padding-left:20px;margin-top:.5em;margin-bottom:.5em}.markdown-content ul[data-v-d5250b54]{list-style-type:disc}.markdown-content ol[data-v-d5250b54]{list-style-type:decimal}.markdown-content li[data-v-d5250b54]{margin-bottom:.25em}.markdown-content a[data-v-d5250b54]{color:#007bff;text-decoration:none}.markdown-content a[data-v-d5250b54]:hover{text-decoration:underline}.markdown-content img[data-v-d5250b54]{max-width:100%;height:auto}.markdown-content blockquote[data-v-d5250b54]{margin:0;padding-left:1em;color:#6a737d;border-left:.25em solid #dfe2e5}.tox{box-shadow:none;box-sizing:content-box;color:#2a3746;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){background:transparent;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #000000;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:1px solid #000000;border-radius:0;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:1300}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#1e71aa66;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#207ab7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus{background-color:#1c6ca1}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#185d8c}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa50080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus{background-color:#f2d574;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc000080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus{background-color:#e9a4a4;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab4680;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .mce-codemirror{background:#fff;bottom:0;font-size:13px;left:0;position:absolute;right:0;top:0;z-index:1}.tox .mce-codemirror.tox-inline-codemirror{margin:8px;position:absolute}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#000;border-radius:0;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar,.tox .tox-bottom-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button:before{border-radius:3px;bottom:-1px;box-shadow:inset 0 0 0 1px #fff,0 0 0 2px #207ab7;content:"";left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:focus:not(:disabled):before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#114060;background-image:none;border-color:#114060;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:none;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#264560;background-image:none;border-color:#264560;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:#3d546f;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--naked:hover:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:#2b3b4e;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#fff3}@media (forced-colors: active){.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:currentColor!important}}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:#ffffff80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#ffffff80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#1a1a1a;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#333;color:#fff;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{background-color:#757d87;color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#2b3b4e;position:relative}.tox .tox-collection--toolbar .tox-collection__item--active:hover{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border:2px solid highlight}}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#4a5562;color:#fff;position:relative;z-index:1}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent "inset";content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border:2px solid highlight}}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){border:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:currentColor;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:currentColor}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#ffffff80;cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:#ffffff80}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid #1a1a1a;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:3px 0 2px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #000000}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #000000}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}@media (forced-colors: active){.tox .tox-hue-slider,.tox .tox-rgb-form .tox-rgba-preview{background-color:currentColor!important;border:1px solid highlight!important;forced-color-adjust:none}}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}@media (forced-colors: active){.tox .tox-swatches__row{forced-color-adjust:none}}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#4a5562}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:3px;width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#ffffff80;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#ffffff80}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar svg,.tox:not([dir=rtl]) .tox-user__avatar img{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg,.tox[dir=rtl] .tox-user__avatar img{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:#222f3ebf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #2a374626,0 0 40px 1px #2a374626;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 16px);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px}@media only screen and (min-width: 768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#ffffff80;display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:#207ab71a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}@media (forced-colors: active){.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid highlight;color:highlight}}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#114060;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #207ab7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#092335;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dd{padding-inline-start:2.5rem}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl{margin-bottom:16px}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dt{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:1px solid #000000;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#222f3ebf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered:before{border:1px solid #000000;border-radius:3px;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered iframe{border-radius:3px}.tox .tox-navobj-bordered-focus.tox-navobj-bordered:before{border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #000000;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#ffffff80;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area:before{border:0 solid transparent;border-radius:4px;content:"";top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}@media (forced-colors: active){.tox .tox-edit-area:before{border:0 solid highlight}}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area:before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #000000}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:none;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #000000;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:0 4px 4px -3px #00000040;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:none;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-custom-preview{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;flex:1;padding:8px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#2a374633;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}@media (forced-colors: active){.tox .tox-color-input span{border-color:currentColor;border-width:2px!important;forced-color-adjust:none}}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:3px;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}@media (forced-colors: active){.tox .tox-color-input span:before{border:none}}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#ffffff80;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#222f3e;color:#ffffffd9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}@media (forced-colors: active){.tox .tox-listbox__select-chevron svg{fill:currentColor!important}}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{background-color:#222f3e;display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#000;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:0 -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#207ab780;border-color:#207ab780}@media (forced-colors: active){.tox .tox-insert-table-picker .tox-insert-table-picker__selected{border-color:Highlight;filter:contrast(50%)}}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}@media only screen and (min-width: 768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1 / -1;grid-row:1;padding:0 4px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#4a5562;border:0;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-mbtn:focus:not(:disabled):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-mbtn:focus:not(:disabled):after{border:2px solid highlight}}.tox .tox-mbtn--active,.tox .tox-mbtn:not(:disabled).tox-mbtn--active:focus{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-left:auto;margin-right:auto;margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in;width:-moz-max-content;width:max-content}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification:focus{border-color:#207ab7;box-shadow:none}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success a:hover,.tox .tox-notification--success a:focus{color:#82b153;text-decoration:underline}.tox .tox-notification--success a:focus-visible{border-radius:1px;outline:2px solid #b5d199;outline-offset:2px}.tox .tox-notification--success a:active{color:#689041;text-decoration:underline}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error a:hover,.tox .tox-notification--error a:focus{color:#d42b2b;text-decoration:underline}.tox .tox-notification--error a:focus-visible{border-radius:1px;outline:2px solid #e68080;outline-offset:2px}.tox .tox-notification--error a:active{color:#a22;text-decoration:underline}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:#000;color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn a:hover,.tox .tox-notification--warning a:hover,.tox .tox-notification--warn a:focus,.tox .tox-notification--warning a:focus{color:#997a00;text-decoration:underline}.tox .tox-notification--warn a:focus-visible,.tox .tox-notification--warning a:focus-visible{border-radius:1px;outline:2px solid #ffcc00;outline-offset:2px}.tox .tox-notification--warn a:active,.tox .tox-notification--warning a:active{color:#665200;text-decoration:underline}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info a:hover,.tox .tox-notification--info a:focus{color:#2681ea;text-decoration:underline}.tox .tox-notification--info a:focus-visible{border-radius:1px;outline:2px solid #83b7f3;outline-offset:2px}.tox .tox-notification--info a:active{color:#1368c9;text-decoration:underline}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-notification-container-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-notification-container-dock-fadein{opacity:1;visibility:visible}.tox .tox-notification-container-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-notification-container-dock-transition.tox-notification-container-dock-fadein{transition-delay:0s}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition:before,.tox .tox-pop--transition:after{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #000000;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;opacity:1;position:absolute;width:0}@media (forced-colors: active){.tox .tox-pop:before,.tox .tox-pop:after{content:none}}.tox .tox-pop.tox-pop--inset:before,.tox .tox-pop.tox-pop--inset:after{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#000000 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #000000 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #000000 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #000000;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #000000;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#ffffff80;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid #000000;color:#fff;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between}@media only screen and (min-width: 768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width: 767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#fff;position:relative;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border:2px solid highlight}}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin:3px -5px 3px 4px;padding-bottom:0;padding-left:0;padding-right:0;position:relative}.tox .tox-statusbar__resize-handle svg{display:block;fill:#ffffff80}.tox .tox-statusbar__resize-handle:hover svg,.tox .tox-statusbar__resize-handle:focus svg{fill:#fff}.tox .tox-statusbar__resize-handle:focus-visible{background-color:transparent;border-radius:1px 1px -4px;box-shadow:0 0 0 2px transparent}.tox .tox-statusbar__resize-handle:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar__resize-handle:focus-visible:after{border:2px solid highlight}}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#222f3e99;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:3px 0 2px;outline:none;padding:0;text-transform:none;width:34px}@media (forced-colors: active){.tox .tox-tbtn:hover,.tox .tox-tbtn.tox-tbtn:hover{outline:1px dashed currentColor}.tox .tox-tbtn.tox-tbtn--active,.tox .tox-tbtn.tox-tbtn--enabled,.tox .tox-tbtn.tox-tbtn--enabled:hover,.tox .tox-tbtn.tox-tbtn--enabled:focus,.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){outline:1px solid currentColor;position:relative}}.tox .tox-tbtn svg{display:block;fill:#fff}@media (forced-colors: active){.tox .tox-tbtn svg{fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--enabled,.tox .tox-tbtn svg:focus:not(.tox-tbtn--disabled){fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--disabled,.tox .tox-tbtn svg.tox-tbtn--disabled:hover,.tox .tox-tbtn svg .tox-tbtn:disabled,.tox .tox-tbtn svg .tox-tbtn:disabled:hover{filter:contrast(0%)}}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#4a5562;border:0;box-shadow:none;position:relative;z-index:1}.tox .tox-tbtn:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn:focus:after{border:2px solid highlight}}.tox .tox-tbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:#ffffff80}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tbtn--active,.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover,.tox .tox-tbtn--enabled:focus{background:#757d87;border:0;box-shadow:none;color:#fff;position:relative}.tox .tox-tbtn--active>*,.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled:focus>*{transform:none}.tox .tox-tbtn--active svg,.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg,.tox .tox-tbtn--enabled:focus svg{fill:#fff}.tox .tox-tbtn--active.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:focus.tox-tbtn--disabled svg{fill:#ffffff80}.tox .tox-tbtn--enabled:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn--enabled:focus:after{border:2px solid highlight}}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{background:transparent;border-radius:3px;display:flex;margin:3px 0 2px;position:relative;width:auto}.tox .tox-number-input:focus{background:#4a5562}.tox .tox-number-input:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper{display:flex;pointer-events:none;position:relative;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background-color:#4a5562;z-index:1}.tox .tox-number-input .tox-input-wrapper:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border:2px solid highlight}}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;position:relative;width:60px}.tox .tox-number-input input:hover{background:#4a5562;color:#fff}.tox .tox-number-input input:focus{background-color:#4a5562}.tox .tox-number-input input:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button{color:#fff;height:34px;position:relative;text-align:center;width:24px}@media (forced-colors: active){.tox .tox-number-input button:hover,.tox .tox-number-input button:focus,.tox .tox-number-input button:active{outline:1px solid currentColor!important}}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}@media (forced-colors: active){.tox .tox-number-input button svg,.tox .tox-number-input button svg:active,.tox .tox-number-input button svg:hover{fill:currentColor!important}.tox .tox-number-input button svg:disabled{filter:contrast(0)}}.tox .tox-number-input button:focus{background:#4a5562;z-index:1}.tox .tox-number-input button:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input button:focus:after{border:2px solid highlight}}.tox .tox-number-input button:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:#ffffff80}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>button,.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper{background:#4a5562}.tox .tox-tbtn--select{margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-tbtn__select-chevron svg{fill:currentColor}}.tox .tox-tbtn--bespoke{background:transparent}.tox .tox-tbtn--bespoke:focus{background:#4a5562}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:0}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:3px 0 2px}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #4a5562 inset}.tox .tox-split-button:focus{background:#4a5562;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-split-button:focus:after{pointer-events:none;border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-split-button:focus:after{border:2px solid highlight}}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button>*:nth-child(1){border-bottom-left-radius:3px;border-top-left-radius:3px}.tox .tox-split-button>*:nth-child(2){border-bottom-right-radius:3px;border-top-right-radius:3px}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-split-button__chevron svg{fill:currentColor}}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button:focus .tox-tbtn{background-color:transparent}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:#222f3e;box-shadow:none;color:#ffffff80}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(#000000 0px 1px,transparent 1px 39px);background-position:center top 39px;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 39px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__primary,.tox .tox-toolbar-overlord>.tox-toolbar__overflow{background-position:center top 0px;background-size:calc(100% - 8px) calc(100% + -0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-toolbar-overlord,.tox .tox-anchorbar{grid-column:1 / -1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid #000000;margin-top:-1px;padding-bottom:0;padding-top:0}@media (forced-colors: active){.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{outline:1px solid currentColor}}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 16px) calc(100% - 51px);border:none;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;overscroll-behavior:none;padding:4px 0}@media (forced-colors: active){.tox.tox-tinymce-aux .tox-toolbar__overflow{border:solid}}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 8px) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #000000}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #000000}.tox .tox-tooltip{display:inline-block;max-width:15em;padding:8px;pointer-events:none;position:relative;width:-moz-max-content;width:max-content;z-index:1150}.tox .tox-tooltip__body{background-color:#2a3746;border-radius:3px;box-shadow:none;color:#fff;font-size:12px;font-style:normal;font-weight:600;overflow-wrap:break-word;padding:4px 6px;text-transform:none}@media (forced-colors: active){.tox .tox-tooltip__body{outline:outset 1px}}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #2A3746;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #2A3746;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #2A3746;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #2A3746;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:transparent;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:none;overflow:hidden;padding:0 0 0 8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled>*,.tox .tox-tree .tox-trbtn--enabled:hover>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-revisionhistory__pane{padding:0!important}.tox .tox-revisionhistory__container{display:flex;flex-direction:column;height:100%}.tox .tox-revisionhistory{background-color:#2b3b4e;border-radius:4px;border-top:1px solid #000000;display:flex;flex:1;height:100%;margin-top:8px;overflow-x:auto;overflow-y:hidden;position:relative;width:100%}.tox .tox-revisionhistory--align-right{margin-left:auto}.tox .tox-revisionhistory__iframe{flex:1}.tox .tox-revisionhistory__sidebar{border-left:1px solid #000000;height:100%;max-width:360px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__sidebar-title{border-bottom:1px solid #000000;color:#fff;font-size:20px;font-weight:400;height:60px;min-width:192px;padding:16px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions{flex-direction:column;max-height:calc(100% - 60px);min-width:192px;overflow-y:auto;padding:8px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus{height:100%;position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{box-shadow:0 0 0 0 transparent;content:"";position:absolute;border-radius:3px;bottom:1px;left:1px;right:1px;top:1px}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card{border:1px solid #000000;border-radius:3px;color:#fff;cursor:pointer;font-size:14px;margin-bottom:8px;padding:8px;text-overflow:ellipsis;text-wrap:nowrap;width:100%}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:hover{background-color:#4a5562;box-shadow:none;color:#fff}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus{position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{border-radius:3px!important;border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected{background-color:#6ea9d0;box-shadow:none;color:#fff}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__norevision{color:#ffffff80;font-size:16px;line-height:24px;padding:5px 5.5px}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column;height:100%}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0;position:relative}.tox .tox-view__label{color:#fff;font-weight:700;line-height:24px;padding:4px 16px;text-align:center;white-space:nowrap}.tox .tox-view__label--normal{font-size:16px}.tox .tox-view__label--large{font-size:20px}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;overflow-x:auto;padding:8px 8px 0}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-start,.tox .tox-view__header-end{display:flex}.tox .tox-view__pane{height:100%;padding:8px;position:relative;width:100%}.tox .tox-view__pane_panel{border:1px solid #000000;border-radius:3px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-start>*,.tox[dir=rtl] .tox-view__header .tox-view__header-end>*{margin-right:8px}.tox .tox-well{border:1px solid #000000;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #000000;border-radius:3px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:none;padding:0}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce-inline .tox-editor-container{overflow:hidden}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:none;box-shadow:none}.tox.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:transparent;box-shadow:0 4px 4px -3px #00000040;padding:0}.tox.tox.tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-pop{box-shadow:none}.tox .tox-tbtn,.tox .tox-number-input,.tox .tox-tbtn--select,.tox .tox-split-button{margin:2px 0 3px}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0px #222f3e!important}.tox .tox-menubar+.tox-toolbar-overlord{border-top:none}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #000000;margin-top:-1px}.tox.tox-tinymce-aux .tox-toolbar__overflow{border:1px solid #000000;padding:0}.tox .tox-pop .tox-pop__dialog .tox-toolbar{padding:0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #000000}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #000000}.tox .tox-toolbar__group{padding:0 4px}.tox .tox-collection__item{border-radius:0;cursor:pointer}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff}.tox .tox-statusbar__branding svg{fill:#fffc;height:1em;margin-left:.3em;width:auto}@media (forced-colors: active){.tox .tox-statusbar__branding svg{fill:currentColor}}.tox .tox-statusbar__branding a{align-items:center;display:inline-flex}.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox[dir=rtl] .tox-statusbar__branding svg{margin-left:0;margin-right:.3em}.tox .tox-statusbar__resize-handle{padding-bottom:0;padding-right:0}.tox .tox-button:before{display:none}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#0e1b23!important}.tox-tinymce{border:none!important}.app-static-name[data-v-c042122a]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-name[data-v-588566c2]{position:sticky;top:100px}.message[data-v-588566c2]{padding-top:10px}.message__timestamp[data-v-588566c2]{font-size:.75rem;color:rgba(var(--v-theme-bluegrey))}.message__content[data-v-588566c2]{font-size:14px;word-break:break-word}.comment__actions[data-v-588566c2]{position:absolute;right:0}.card[data-v-793087b5]{position:sticky;height:87.5vh;top:3.9rem}.close-btn[data-v-793087b5]{position:absolute;top:0;right:0}.content[data-v-793087b5]{position:relative;height:100%}.empty-state[data-v-793087b5]{margin-top:200px;text-align:center}.empty-state__text[data-v-793087b5]{max-width:20em;margin:0 auto;line-height:1.8rem;color:rgb(var(--v-theme-bluegrey))}.comments-wrapper[data-v-793087b5]{max-height:66vh;overflow-y:auto}.cell-container{padding-top:0}.cell-container--app{padding-bottom:0}.cm-editor{height:auto!important}.zt-app-bar[data-v-4b6b6f0a]{padding-top:6px;padding-bottom:6px}.logo-btn[data-v-4b6b6f0a] .v-icon{width:1.5em;height:1.5em}.cm-editor[data-v-4b6b6f0a]{height:auto!important}.click-edit[data-v-4b6b6f0a]{max-width:200px;width:100%}.click-edit__name[data-v-4b6b6f0a]{font-weight:400;cursor:text}.click-edit__show-text[data-v-4b6b6f0a],.click-edit__edit-field-wrapper[data-v-4b6b6f0a]{display:flex;align-items:center}.click-edit__name[data-v-4b6b6f0a]:hover{padding-left:3px;padding-right:3px;cursor:text;border:1px solid #294455}.click-edit__edit-field[data-v-4b6b6f0a]{margin-top:-11px}.click-edit__edit-field[data-v-4b6b6f0a] .v-field__input{font-size:1.5rem;letter-spacing:normal}@media (min-width: 600px){.click-edit[data-v-4b6b6f0a]{max-width:250px}}@media (min-width: 1280px){.click-edit[data-v-4b6b6f0a]{max-width:450px}}@media (min-width: 1920px){.click-edit[data-v-4b6b6f0a]{max-width:600px}}.content[data-v-4b6b6f0a]{padding-left:0!important;padding-right:0!important}.content__comments[data-v-4b6b6f0a]{width:0;transition:width .15s ease}.content__comments--show[data-v-4b6b6f0a]{width:380px}.footer[data-v-4b6b6f0a]{display:flex;justify-content:space-between;flex-direction:column;padding:4px 16px}.footer__left-container[data-v-4b6b6f0a],.footer__right-container[data-v-4b6b6f0a]{display:flex;width:100%}@media (min-width: 960px){.footer__left-container[data-v-4b6b6f0a],.footer__right-container[data-v-4b6b6f0a]{align-items:center;width:auto}}.footer__right-container[data-v-4b6b6f0a]{align-items:center;flex-direction:column;justify-content:flex-start}@media (min-width: 600px){.footer__right-container[data-v-4b6b6f0a]{flex-direction:row}}.footer__left-container[data-v-4b6b6f0a]{flex-direction:column;margin:0 0 20px}@media (min-width: 600px){.footer__left-container[data-v-4b6b6f0a]{margin:0;flex-direction:row}}.footer__queue-length-wrapper[data-v-4b6b6f0a]{display:flex;justify-content:flex-start;width:100%}@media (min-width: 600px){.footer__queue-length-wrapper[data-v-4b6b6f0a]{width:auto}}.footer .dot-divider[data-v-4b6b6f0a]{display:none;margin:0 5px}@media (min-width: 600px){.footer .dot-divider[data-v-4b6b6f0a]{display:flex;margin:0 16px}}@media (min-width: 1280px){.footer .dot-divider[data-v-4b6b6f0a]{margin:0 16px}}@media (min-width: 1920px){.footer .dot-divider[data-v-4b6b6f0a]{margin:0 24px}}.footer__status-wrapper[data-v-4b6b6f0a]{display:flex;justify-content:flex-start;width:100%;align-items:center}.footer__status-wrapper .dot-divider[data-v-4b6b6f0a]{display:none}@media (min-width: 960px){.footer__status-wrapper .dot-divider[data-v-4b6b6f0a]{display:flex}}.footer__code-version-icon[data-v-4b6b6f0a]{margin-right:0;margin-left:-5px}@media (min-width: 600px){.footer__code-version-icon[data-v-4b6b6f0a]{margin-right:12px}}.footer__queue-length-btn[data-v-4b6b6f0a]{margin:0 2px}@media (min-width: 960px){.footer__queue-length-btn[data-v-4b6b6f0a]{margin:0 8px 0 24px}}.footer__code-running-loader[data-v-4b6b6f0a]{margin-right:10px}@media (min-width: 1280px){.footer__code-running-loader[data-v-4b6b6f0a]{margin-right:10px}}.footer__queue-list[data-v-4b6b6f0a]{font-size:.625rem}.footer__queue-list-item--pending[data-v-4b6b6f0a]{color:rgba(var(--v-theme-bluegrey-darken-2))}.footer__status[data-v-4b6b6f0a]{color:rgba(var(--v-theme-success))}.footer__status--error[data-v-4b6b6f0a]{color:rgba(var(--v-theme-error))}@media (min-width: 960px){.footer[data-v-4b6b6f0a]{flex-direction:row;height:34px}}.toggle-group[data-v-4b6b6f0a]{display:flex;justify-content:center;position:absolute;left:50%;transform:translate(-50%)}@font-face{font-family:Material Design Icons;src:url(./materialdesignicons-webfont-5159a347.eot?v=7.3.67);src:url(./materialdesignicons-webfont-5159a347.eot?#iefix&v=7.3.67) format("embedded-opentype"),url(./materialdesignicons-webfont-31010194.woff2?v=7.3.67) format("woff2"),url(./materialdesignicons-webfont-28c8f97f.woff?v=7.3.67) format("woff"),url(./materialdesignicons-webfont-be825c12.ttf?v=7.3.67) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-file:before{content:"󱲧"}.mdi-account-file-outline:before{content:"󱲨"}.mdi-account-file-text:before{content:"󱲩"}.mdi-account-file-text-outline:before{content:"󱲪"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-off-outline:before{content:"󱫲"}.mdi-account-network-outline:before{content:"󰯦"}.mdi-account-off:before{content:"󰀒"}.mdi-account-off-outline:before{content:"󰯧"}.mdi-account-outline:before{content:"󰀓"}.mdi-account-plus:before{content:"󰀔"}.mdi-account-plus-outline:before{content:"󰠁"}.mdi-account-question:before{content:"󰭙"}.mdi-account-question-outline:before{content:"󰭚"}.mdi-account-reactivate:before{content:"󱔫"}.mdi-account-reactivate-outline:before{content:"󱔬"}.mdi-account-remove:before{content:"󰀕"}.mdi-account-remove-outline:before{content:"󰫭"}.mdi-account-school:before{content:"󱨠"}.mdi-account-school-outline:before{content:"󱨡"}.mdi-account-search:before{content:"󰀖"}.mdi-account-search-outline:before{content:"󰤵"}.mdi-account-settings:before{content:"󰘰"}.mdi-account-settings-outline:before{content:"󱃉"}.mdi-account-star:before{content:"󰀗"}.mdi-account-star-outline:before{content:"󰯨"}.mdi-account-supervisor:before{content:"󰪋"}.mdi-account-supervisor-circle:before{content:"󰪌"}.mdi-account-supervisor-circle-outline:before{content:"󱓬"}.mdi-account-supervisor-outline:before{content:"󱄭"}.mdi-account-switch:before{content:"󰀙"}.mdi-account-switch-outline:before{content:"󰓋"}.mdi-account-sync:before{content:"󱤛"}.mdi-account-sync-outline:before{content:"󱤜"}.mdi-account-tag:before{content:"󱰛"}.mdi-account-tag-outline:before{content:"󱰜"}.mdi-account-tie:before{content:"󰳣"}.mdi-account-tie-hat:before{content:"󱢘"}.mdi-account-tie-hat-outline:before{content:"󱢙"}.mdi-account-tie-outline:before{content:"󱃊"}.mdi-account-tie-voice:before{content:"󱌈"}.mdi-account-tie-voice-off:before{content:"󱌊"}.mdi-account-tie-voice-off-outline:before{content:"󱌋"}.mdi-account-tie-voice-outline:before{content:"󱌉"}.mdi-account-tie-woman:before{content:"󱪌"}.mdi-account-voice:before{content:"󰗋"}.mdi-account-voice-off:before{content:"󰻔"}.mdi-account-wrench:before{content:"󱢚"}.mdi-account-wrench-outline:before{content:"󱢛"}.mdi-adjust:before{content:"󰀚"}.mdi-advertisements:before{content:"󱤪"}.mdi-advertisements-off:before{content:"󱤫"}.mdi-air-conditioner:before{content:"󰀛"}.mdi-air-filter:before{content:"󰵃"}.mdi-air-horn:before{content:"󰶬"}.mdi-air-humidifier:before{content:"󱂙"}.mdi-air-humidifier-off:before{content:"󱑦"}.mdi-air-purifier:before{content:"󰵄"}.mdi-air-purifier-off:before{content:"󱭗"}.mdi-airbag:before{content:"󰯩"}.mdi-airballoon:before{content:"󰀜"}.mdi-airballoon-outline:before{content:"󱀋"}.mdi-airplane:before{content:"󰀝"}.mdi-airplane-alert:before{content:"󱡺"}.mdi-airplane-check:before{content:"󱡻"}.mdi-airplane-clock:before{content:"󱡼"}.mdi-airplane-cog:before{content:"󱡽"}.mdi-airplane-edit:before{content:"󱡾"}.mdi-airplane-landing:before{content:"󰗔"}.mdi-airplane-marker:before{content:"󱡿"}.mdi-airplane-minus:before{content:"󱢀"}.mdi-airplane-off:before{content:"󰀞"}.mdi-airplane-plus:before{content:"󱢁"}.mdi-airplane-remove:before{content:"󱢂"}.mdi-airplane-search:before{content:"󱢃"}.mdi-airplane-settings:before{content:"󱢄"}.mdi-airplane-takeoff:before{content:"󰗕"}.mdi-airport:before{content:"󰡋"}.mdi-alarm:before{content:"󰀠"}.mdi-alarm-bell:before{content:"󰞎"}.mdi-alarm-check:before{content:"󰀡"}.mdi-alarm-light:before{content:"󰞏"}.mdi-alarm-light-off:before{content:"󱜞"}.mdi-alarm-light-off-outline:before{content:"󱜟"}.mdi-alarm-light-outline:before{content:"󰯪"}.mdi-alarm-multiple:before{content:"󰀢"}.mdi-alarm-note:before{content:"󰹱"}.mdi-alarm-note-off:before{content:"󰹲"}.mdi-alarm-off:before{content:"󰀣"}.mdi-alarm-panel:before{content:"󱗄"}.mdi-alarm-panel-outline:before{content:"󱗅"}.mdi-alarm-plus:before{content:"󰀤"}.mdi-alarm-snooze:before{content:"󰚎"}.mdi-album:before{content:"󰀥"}.mdi-alert:before{content:"󰀦"}.mdi-alert-box:before{content:"󰀧"}.mdi-alert-box-outline:before{content:"󰳤"}.mdi-alert-circle:before{content:"󰀨"}.mdi-alert-circle-check:before{content:"󱇭"}.mdi-alert-circle-check-outline:before{content:"󱇮"}.mdi-alert-circle-outline:before{content:"󰗖"}.mdi-alert-decagram:before{content:"󰚽"}.mdi-alert-decagram-outline:before{content:"󰳥"}.mdi-alert-minus:before{content:"󱒻"}.mdi-alert-minus-outline:before{content:"󱒾"}.mdi-alert-octagon:before{content:"󰀩"}.mdi-alert-octagon-outline:before{content:"󰳦"}.mdi-alert-octagram:before{content:"󰝧"}.mdi-alert-octagram-outline:before{content:"󰳧"}.mdi-alert-outline:before{content:"󰀪"}.mdi-alert-plus:before{content:"󱒺"}.mdi-alert-plus-outline:before{content:"󱒽"}.mdi-alert-remove:before{content:"󱒼"}.mdi-alert-remove-outline:before{content:"󱒿"}.mdi-alert-rhombus:before{content:"󱇎"}.mdi-alert-rhombus-outline:before{content:"󱇏"}.mdi-alien:before{content:"󰢚"}.mdi-alien-outline:before{content:"󱃋"}.mdi-align-horizontal-center:before{content:"󱇃"}.mdi-align-horizontal-distribute:before{content:"󱥢"}.mdi-align-horizontal-left:before{content:"󱇂"}.mdi-align-horizontal-right:before{content:"󱇄"}.mdi-align-vertical-bottom:before{content:"󱇅"}.mdi-align-vertical-center:before{content:"󱇆"}.mdi-align-vertical-distribute:before{content:"󱥣"}.mdi-align-vertical-top:before{content:"󱇇"}.mdi-all-inclusive:before{content:"󰚾"}.mdi-all-inclusive-box:before{content:"󱢍"}.mdi-all-inclusive-box-outline:before{content:"󱢎"}.mdi-allergy:before{content:"󱉘"}.mdi-alpha:before{content:"󰀫"}.mdi-alpha-a:before{content:"󰫮"}.mdi-alpha-a-box:before{content:"󰬈"}.mdi-alpha-a-box-outline:before{content:"󰯫"}.mdi-alpha-a-circle:before{content:"󰯬"}.mdi-alpha-a-circle-outline:before{content:"󰯭"}.mdi-alpha-b:before{content:"󰫯"}.mdi-alpha-b-box:before{content:"󰬉"}.mdi-alpha-b-box-outline:before{content:"󰯮"}.mdi-alpha-b-circle:before{content:"󰯯"}.mdi-alpha-b-circle-outline:before{content:"󰯰"}.mdi-alpha-c:before{content:"󰫰"}.mdi-alpha-c-box:before{content:"󰬊"}.mdi-alpha-c-box-outline:before{content:"󰯱"}.mdi-alpha-c-circle:before{content:"󰯲"}.mdi-alpha-c-circle-outline:before{content:"󰯳"}.mdi-alpha-d:before{content:"󰫱"}.mdi-alpha-d-box:before{content:"󰬋"}.mdi-alpha-d-box-outline:before{content:"󰯴"}.mdi-alpha-d-circle:before{content:"󰯵"}.mdi-alpha-d-circle-outline:before{content:"󰯶"}.mdi-alpha-e:before{content:"󰫲"}.mdi-alpha-e-box:before{content:"󰬌"}.mdi-alpha-e-box-outline:before{content:"󰯷"}.mdi-alpha-e-circle:before{content:"󰯸"}.mdi-alpha-e-circle-outline:before{content:"󰯹"}.mdi-alpha-f:before{content:"󰫳"}.mdi-alpha-f-box:before{content:"󰬍"}.mdi-alpha-f-box-outline:before{content:"󰯺"}.mdi-alpha-f-circle:before{content:"󰯻"}.mdi-alpha-f-circle-outline:before{content:"󰯼"}.mdi-alpha-g:before{content:"󰫴"}.mdi-alpha-g-box:before{content:"󰬎"}.mdi-alpha-g-box-outline:before{content:"󰯽"}.mdi-alpha-g-circle:before{content:"󰯾"}.mdi-alpha-g-circle-outline:before{content:"󰯿"}.mdi-alpha-h:before{content:"󰫵"}.mdi-alpha-h-box:before{content:"󰬏"}.mdi-alpha-h-box-outline:before{content:"󰰀"}.mdi-alpha-h-circle:before{content:"󰰁"}.mdi-alpha-h-circle-outline:before{content:"󰰂"}.mdi-alpha-i:before{content:"󰫶"}.mdi-alpha-i-box:before{content:"󰬐"}.mdi-alpha-i-box-outline:before{content:"󰰃"}.mdi-alpha-i-circle:before{content:"󰰄"}.mdi-alpha-i-circle-outline:before{content:"󰰅"}.mdi-alpha-j:before{content:"󰫷"}.mdi-alpha-j-box:before{content:"󰬑"}.mdi-alpha-j-box-outline:before{content:"󰰆"}.mdi-alpha-j-circle:before{content:"󰰇"}.mdi-alpha-j-circle-outline:before{content:"󰰈"}.mdi-alpha-k:before{content:"󰫸"}.mdi-alpha-k-box:before{content:"󰬒"}.mdi-alpha-k-box-outline:before{content:"󰰉"}.mdi-alpha-k-circle:before{content:"󰰊"}.mdi-alpha-k-circle-outline:before{content:"󰰋"}.mdi-alpha-l:before{content:"󰫹"}.mdi-alpha-l-box:before{content:"󰬓"}.mdi-alpha-l-box-outline:before{content:"󰰌"}.mdi-alpha-l-circle:before{content:"󰰍"}.mdi-alpha-l-circle-outline:before{content:"󰰎"}.mdi-alpha-m:before{content:"󰫺"}.mdi-alpha-m-box:before{content:"󰬔"}.mdi-alpha-m-box-outline:before{content:"󰰏"}.mdi-alpha-m-circle:before{content:"󰰐"}.mdi-alpha-m-circle-outline:before{content:"󰰑"}.mdi-alpha-n:before{content:"󰫻"}.mdi-alpha-n-box:before{content:"󰬕"}.mdi-alpha-n-box-outline:before{content:"󰰒"}.mdi-alpha-n-circle:before{content:"󰰓"}.mdi-alpha-n-circle-outline:before{content:"󰰔"}.mdi-alpha-o:before{content:"󰫼"}.mdi-alpha-o-box:before{content:"󰬖"}.mdi-alpha-o-box-outline:before{content:"󰰕"}.mdi-alpha-o-circle:before{content:"󰰖"}.mdi-alpha-o-circle-outline:before{content:"󰰗"}.mdi-alpha-p:before{content:"󰫽"}.mdi-alpha-p-box:before{content:"󰬗"}.mdi-alpha-p-box-outline:before{content:"󰰘"}.mdi-alpha-p-circle:before{content:"󰰙"}.mdi-alpha-p-circle-outline:before{content:"󰰚"}.mdi-alpha-q:before{content:"󰫾"}.mdi-alpha-q-box:before{content:"󰬘"}.mdi-alpha-q-box-outline:before{content:"󰰛"}.mdi-alpha-q-circle:before{content:"󰰜"}.mdi-alpha-q-circle-outline:before{content:"󰰝"}.mdi-alpha-r:before{content:"󰫿"}.mdi-alpha-r-box:before{content:"󰬙"}.mdi-alpha-r-box-outline:before{content:"󰰞"}.mdi-alpha-r-circle:before{content:"󰰟"}.mdi-alpha-r-circle-outline:before{content:"󰰠"}.mdi-alpha-s:before{content:"󰬀"}.mdi-alpha-s-box:before{content:"󰬚"}.mdi-alpha-s-box-outline:before{content:"󰰡"}.mdi-alpha-s-circle:before{content:"󰰢"}.mdi-alpha-s-circle-outline:before{content:"󰰣"}.mdi-alpha-t:before{content:"󰬁"}.mdi-alpha-t-box:before{content:"󰬛"}.mdi-alpha-t-box-outline:before{content:"󰰤"}.mdi-alpha-t-circle:before{content:"󰰥"}.mdi-alpha-t-circle-outline:before{content:"󰰦"}.mdi-alpha-u:before{content:"󰬂"}.mdi-alpha-u-box:before{content:"󰬜"}.mdi-alpha-u-box-outline:before{content:"󰰧"}.mdi-alpha-u-circle:before{content:"󰰨"}.mdi-alpha-u-circle-outline:before{content:"󰰩"}.mdi-alpha-v:before{content:"󰬃"}.mdi-alpha-v-box:before{content:"󰬝"}.mdi-alpha-v-box-outline:before{content:"󰰪"}.mdi-alpha-v-circle:before{content:"󰰫"}.mdi-alpha-v-circle-outline:before{content:"󰰬"}.mdi-alpha-w:before{content:"󰬄"}.mdi-alpha-w-box:before{content:"󰬞"}.mdi-alpha-w-box-outline:before{content:"󰰭"}.mdi-alpha-w-circle:before{content:"󰰮"}.mdi-alpha-w-circle-outline:before{content:"󰰯"}.mdi-alpha-x:before{content:"󰬅"}.mdi-alpha-x-box:before{content:"󰬟"}.mdi-alpha-x-box-outline:before{content:"󰰰"}.mdi-alpha-x-circle:before{content:"󰰱"}.mdi-alpha-x-circle-outline:before{content:"󰰲"}.mdi-alpha-y:before{content:"󰬆"}.mdi-alpha-y-box:before{content:"󰬠"}.mdi-alpha-y-box-outline:before{content:"󰰳"}.mdi-alpha-y-circle:before{content:"󰰴"}.mdi-alpha-y-circle-outline:before{content:"󰰵"}.mdi-alpha-z:before{content:"󰬇"}.mdi-alpha-z-box:before{content:"󰬡"}.mdi-alpha-z-box-outline:before{content:"󰰶"}.mdi-alpha-z-circle:before{content:"󰰷"}.mdi-alpha-z-circle-outline:before{content:"󰰸"}.mdi-alphabet-aurebesh:before{content:"󱌬"}.mdi-alphabet-cyrillic:before{content:"󱌭"}.mdi-alphabet-greek:before{content:"󱌮"}.mdi-alphabet-latin:before{content:"󱌯"}.mdi-alphabet-piqad:before{content:"󱌰"}.mdi-alphabet-tengwar:before{content:"󱌷"}.mdi-alphabetical:before{content:"󰀬"}.mdi-alphabetical-off:before{content:"󱀌"}.mdi-alphabetical-variant:before{content:"󱀍"}.mdi-alphabetical-variant-off:before{content:"󱀎"}.mdi-altimeter:before{content:"󰗗"}.mdi-ambulance:before{content:"󰀯"}.mdi-ammunition:before{content:"󰳨"}.mdi-ampersand:before{content:"󰪍"}.mdi-amplifier:before{content:"󰀰"}.mdi-amplifier-off:before{content:"󱆵"}.mdi-anchor:before{content:"󰀱"}.mdi-android:before{content:"󰀲"}.mdi-android-studio:before{content:"󰀴"}.mdi-angle-acute:before{content:"󰤷"}.mdi-angle-obtuse:before{content:"󰤸"}.mdi-angle-right:before{content:"󰤹"}.mdi-angular:before{content:"󰚲"}.mdi-angularjs:before{content:"󰚿"}.mdi-animation:before{content:"󰗘"}.mdi-animation-outline:before{content:"󰪏"}.mdi-animation-play:before{content:"󰤺"}.mdi-animation-play-outline:before{content:"󰪐"}.mdi-ansible:before{content:"󱂚"}.mdi-antenna:before{content:"󱄙"}.mdi-anvil:before{content:"󰢛"}.mdi-apache-kafka:before{content:"󱀏"}.mdi-api:before{content:"󱂛"}.mdi-api-off:before{content:"󱉗"}.mdi-apple:before{content:"󰀵"}.mdi-apple-finder:before{content:"󰀶"}.mdi-apple-icloud:before{content:"󰀸"}.mdi-apple-ios:before{content:"󰀷"}.mdi-apple-keyboard-caps:before{content:"󰘲"}.mdi-apple-keyboard-command:before{content:"󰘳"}.mdi-apple-keyboard-control:before{content:"󰘴"}.mdi-apple-keyboard-option:before{content:"󰘵"}.mdi-apple-keyboard-shift:before{content:"󰘶"}.mdi-apple-safari:before{content:"󰀹"}.mdi-application:before{content:"󰣆"}.mdi-application-array:before{content:"󱃵"}.mdi-application-array-outline:before{content:"󱃶"}.mdi-application-braces:before{content:"󱃷"}.mdi-application-braces-outline:before{content:"󱃸"}.mdi-application-brackets:before{content:"󰲋"}.mdi-application-brackets-outline:before{content:"󰲌"}.mdi-application-cog:before{content:"󰙵"}.mdi-application-cog-outline:before{content:"󱕷"}.mdi-application-edit:before{content:"󰂮"}.mdi-application-edit-outline:before{content:"󰘙"}.mdi-application-export:before{content:"󰶭"}.mdi-application-import:before{content:"󰶮"}.mdi-application-outline:before{content:"󰘔"}.mdi-application-parentheses:before{content:"󱃹"}.mdi-application-parentheses-outline:before{content:"󱃺"}.mdi-application-settings:before{content:"󰭠"}.mdi-application-settings-outline:before{content:"󱕕"}.mdi-application-variable:before{content:"󱃻"}.mdi-application-variable-outline:before{content:"󱃼"}.mdi-approximately-equal:before{content:"󰾞"}.mdi-approximately-equal-box:before{content:"󰾟"}.mdi-apps:before{content:"󰀻"}.mdi-apps-box:before{content:"󰵆"}.mdi-arch:before{content:"󰣇"}.mdi-archive:before{content:"󰀼"}.mdi-archive-alert:before{content:"󱓽"}.mdi-archive-alert-outline:before{content:"󱓾"}.mdi-archive-arrow-down:before{content:"󱉙"}.mdi-archive-arrow-down-outline:before{content:"󱉚"}.mdi-archive-arrow-up:before{content:"󱉛"}.mdi-archive-arrow-up-outline:before{content:"󱉜"}.mdi-archive-cancel:before{content:"󱝋"}.mdi-archive-cancel-outline:before{content:"󱝌"}.mdi-archive-check:before{content:"󱝍"}.mdi-archive-check-outline:before{content:"󱝎"}.mdi-archive-clock:before{content:"󱝏"}.mdi-archive-clock-outline:before{content:"󱝐"}.mdi-archive-cog:before{content:"󱝑"}.mdi-archive-cog-outline:before{content:"󱝒"}.mdi-archive-edit:before{content:"󱝓"}.mdi-archive-edit-outline:before{content:"󱝔"}.mdi-archive-eye:before{content:"󱝕"}.mdi-archive-eye-outline:before{content:"󱝖"}.mdi-archive-lock:before{content:"󱝗"}.mdi-archive-lock-open:before{content:"󱝘"}.mdi-archive-lock-open-outline:before{content:"󱝙"}.mdi-archive-lock-outline:before{content:"󱝚"}.mdi-archive-marker:before{content:"󱝛"}.mdi-archive-marker-outline:before{content:"󱝜"}.mdi-archive-minus:before{content:"󱝝"}.mdi-archive-minus-outline:before{content:"󱝞"}.mdi-archive-music:before{content:"󱝟"}.mdi-archive-music-outline:before{content:"󱝠"}.mdi-archive-off:before{content:"󱝡"}.mdi-archive-off-outline:before{content:"󱝢"}.mdi-archive-outline:before{content:"󱈎"}.mdi-archive-plus:before{content:"󱝣"}.mdi-archive-plus-outline:before{content:"󱝤"}.mdi-archive-refresh:before{content:"󱝥"}.mdi-archive-refresh-outline:before{content:"󱝦"}.mdi-archive-remove:before{content:"󱝧"}.mdi-archive-remove-outline:before{content:"󱝨"}.mdi-archive-search:before{content:"󱝩"}.mdi-archive-search-outline:before{content:"󱝪"}.mdi-archive-settings:before{content:"󱝫"}.mdi-archive-settings-outline:before{content:"󱝬"}.mdi-archive-star:before{content:"󱝭"}.mdi-archive-star-outline:before{content:"󱝮"}.mdi-archive-sync:before{content:"󱝯"}.mdi-archive-sync-outline:before{content:"󱝰"}.mdi-arm-flex:before{content:"󰿗"}.mdi-arm-flex-outline:before{content:"󰿖"}.mdi-arrange-bring-forward:before{content:"󰀽"}.mdi-arrange-bring-to-front:before{content:"󰀾"}.mdi-arrange-send-backward:before{content:"󰀿"}.mdi-arrange-send-to-back:before{content:"󰁀"}.mdi-arrow-all:before{content:"󰁁"}.mdi-arrow-bottom-left:before{content:"󰁂"}.mdi-arrow-bottom-left-bold-box:before{content:"󱥤"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"󱥥"}.mdi-arrow-bottom-left-bold-outline:before{content:"󰦷"}.mdi-arrow-bottom-left-thick:before{content:"󰦸"}.mdi-arrow-bottom-left-thin:before{content:"󱦶"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"󱖖"}.mdi-arrow-bottom-right:before{content:"󰁃"}.mdi-arrow-bottom-right-bold-box:before{content:"󱥦"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"󱥧"}.mdi-arrow-bottom-right-bold-outline:before{content:"󰦹"}.mdi-arrow-bottom-right-thick:before{content:"󰦺"}.mdi-arrow-bottom-right-thin:before{content:"󱦷"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"󱖕"}.mdi-arrow-collapse:before{content:"󰘕"}.mdi-arrow-collapse-all:before{content:"󰁄"}.mdi-arrow-collapse-down:before{content:"󰞒"}.mdi-arrow-collapse-horizontal:before{content:"󰡌"}.mdi-arrow-collapse-left:before{content:"󰞓"}.mdi-arrow-collapse-right:before{content:"󰞔"}.mdi-arrow-collapse-up:before{content:"󰞕"}.mdi-arrow-collapse-vertical:before{content:"󰡍"}.mdi-arrow-decision:before{content:"󰦻"}.mdi-arrow-decision-auto:before{content:"󰦼"}.mdi-arrow-decision-auto-outline:before{content:"󰦽"}.mdi-arrow-decision-outline:before{content:"󰦾"}.mdi-arrow-down:before{content:"󰁅"}.mdi-arrow-down-bold:before{content:"󰜮"}.mdi-arrow-down-bold-box:before{content:"󰜯"}.mdi-arrow-down-bold-box-outline:before{content:"󰜰"}.mdi-arrow-down-bold-circle:before{content:"󰁇"}.mdi-arrow-down-bold-circle-outline:before{content:"󰁈"}.mdi-arrow-down-bold-hexagon-outline:before{content:"󰁉"}.mdi-arrow-down-bold-outline:before{content:"󰦿"}.mdi-arrow-down-box:before{content:"󰛀"}.mdi-arrow-down-circle:before{content:"󰳛"}.mdi-arrow-down-circle-outline:before{content:"󰳜"}.mdi-arrow-down-drop-circle:before{content:"󰁊"}.mdi-arrow-down-drop-circle-outline:before{content:"󰁋"}.mdi-arrow-down-left:before{content:"󱞡"}.mdi-arrow-down-left-bold:before{content:"󱞢"}.mdi-arrow-down-right:before{content:"󱞣"}.mdi-arrow-down-right-bold:before{content:"󱞤"}.mdi-arrow-down-thick:before{content:"󰁆"}.mdi-arrow-down-thin:before{content:"󱦳"}.mdi-arrow-down-thin-circle-outline:before{content:"󱖙"}.mdi-arrow-expand:before{content:"󰘖"}.mdi-arrow-expand-all:before{content:"󰁌"}.mdi-arrow-expand-down:before{content:"󰞖"}.mdi-arrow-expand-horizontal:before{content:"󰡎"}.mdi-arrow-expand-left:before{content:"󰞗"}.mdi-arrow-expand-right:before{content:"󰞘"}.mdi-arrow-expand-up:before{content:"󰞙"}.mdi-arrow-expand-vertical:before{content:"󰡏"}.mdi-arrow-horizontal-lock:before{content:"󱅛"}.mdi-arrow-left:before{content:"󰁍"}.mdi-arrow-left-bold:before{content:"󰜱"}.mdi-arrow-left-bold-box:before{content:"󰜲"}.mdi-arrow-left-bold-box-outline:before{content:"󰜳"}.mdi-arrow-left-bold-circle:before{content:"󰁏"}.mdi-arrow-left-bold-circle-outline:before{content:"󰁐"}.mdi-arrow-left-bold-hexagon-outline:before{content:"󰁑"}.mdi-arrow-left-bold-outline:before{content:"󰧀"}.mdi-arrow-left-bottom:before{content:"󱞥"}.mdi-arrow-left-bottom-bold:before{content:"󱞦"}.mdi-arrow-left-box:before{content:"󰛁"}.mdi-arrow-left-circle:before{content:"󰳝"}.mdi-arrow-left-circle-outline:before{content:"󰳞"}.mdi-arrow-left-drop-circle:before{content:"󰁒"}.mdi-arrow-left-drop-circle-outline:before{content:"󰁓"}.mdi-arrow-left-right:before{content:"󰹳"}.mdi-arrow-left-right-bold:before{content:"󰹴"}.mdi-arrow-left-right-bold-outline:before{content:"󰧁"}.mdi-arrow-left-thick:before{content:"󰁎"}.mdi-arrow-left-thin:before{content:"󱦱"}.mdi-arrow-left-thin-circle-outline:before{content:"󱖚"}.mdi-arrow-left-top:before{content:"󱞧"}.mdi-arrow-left-top-bold:before{content:"󱞨"}.mdi-arrow-oscillating:before{content:"󱲑"}.mdi-arrow-oscillating-off:before{content:"󱲒"}.mdi-arrow-projectile:before{content:"󱡀"}.mdi-arrow-projectile-multiple:before{content:"󱠿"}.mdi-arrow-right:before{content:"󰁔"}.mdi-arrow-right-bold:before{content:"󰜴"}.mdi-arrow-right-bold-box:before{content:"󰜵"}.mdi-arrow-right-bold-box-outline:before{content:"󰜶"}.mdi-arrow-right-bold-circle:before{content:"󰁖"}.mdi-arrow-right-bold-circle-outline:before{content:"󰁗"}.mdi-arrow-right-bold-hexagon-outline:before{content:"󰁘"}.mdi-arrow-right-bold-outline:before{content:"󰧂"}.mdi-arrow-right-bottom:before{content:"󱞩"}.mdi-arrow-right-bottom-bold:before{content:"󱞪"}.mdi-arrow-right-box:before{content:"󰛂"}.mdi-arrow-right-circle:before{content:"󰳟"}.mdi-arrow-right-circle-outline:before{content:"󰳠"}.mdi-arrow-right-drop-circle:before{content:"󰁙"}.mdi-arrow-right-drop-circle-outline:before{content:"󰁚"}.mdi-arrow-right-thick:before{content:"󰁕"}.mdi-arrow-right-thin:before{content:"󱦰"}.mdi-arrow-right-thin-circle-outline:before{content:"󱖘"}.mdi-arrow-right-top:before{content:"󱞫"}.mdi-arrow-right-top-bold:before{content:"󱞬"}.mdi-arrow-split-horizontal:before{content:"󰤻"}.mdi-arrow-split-vertical:before{content:"󰤼"}.mdi-arrow-top-left:before{content:"󰁛"}.mdi-arrow-top-left-bold-box:before{content:"󱥨"}.mdi-arrow-top-left-bold-box-outline:before{content:"󱥩"}.mdi-arrow-top-left-bold-outline:before{content:"󰧃"}.mdi-arrow-top-left-bottom-right:before{content:"󰹵"}.mdi-arrow-top-left-bottom-right-bold:before{content:"󰹶"}.mdi-arrow-top-left-thick:before{content:"󰧄"}.mdi-arrow-top-left-thin:before{content:"󱦵"}.mdi-arrow-top-left-thin-circle-outline:before{content:"󱖓"}.mdi-arrow-top-right:before{content:"󰁜"}.mdi-arrow-top-right-bold-box:before{content:"󱥪"}.mdi-arrow-top-right-bold-box-outline:before{content:"󱥫"}.mdi-arrow-top-right-bold-outline:before{content:"󰧅"}.mdi-arrow-top-right-bottom-left:before{content:"󰹷"}.mdi-arrow-top-right-bottom-left-bold:before{content:"󰹸"}.mdi-arrow-top-right-thick:before{content:"󰧆"}.mdi-arrow-top-right-thin:before{content:"󱦴"}.mdi-arrow-top-right-thin-circle-outline:before{content:"󱖔"}.mdi-arrow-u-down-left:before{content:"󱞭"}.mdi-arrow-u-down-left-bold:before{content:"󱞮"}.mdi-arrow-u-down-right:before{content:"󱞯"}.mdi-arrow-u-down-right-bold:before{content:"󱞰"}.mdi-arrow-u-left-bottom:before{content:"󱞱"}.mdi-arrow-u-left-bottom-bold:before{content:"󱞲"}.mdi-arrow-u-left-top:before{content:"󱞳"}.mdi-arrow-u-left-top-bold:before{content:"󱞴"}.mdi-arrow-u-right-bottom:before{content:"󱞵"}.mdi-arrow-u-right-bottom-bold:before{content:"󱞶"}.mdi-arrow-u-right-top:before{content:"󱞷"}.mdi-arrow-u-right-top-bold:before{content:"󱞸"}.mdi-arrow-u-up-left:before{content:"󱞹"}.mdi-arrow-u-up-left-bold:before{content:"󱞺"}.mdi-arrow-u-up-right:before{content:"󱞻"}.mdi-arrow-u-up-right-bold:before{content:"󱞼"}.mdi-arrow-up:before{content:"󰁝"}.mdi-arrow-up-bold:before{content:"󰜷"}.mdi-arrow-up-bold-box:before{content:"󰜸"}.mdi-arrow-up-bold-box-outline:before{content:"󰜹"}.mdi-arrow-up-bold-circle:before{content:"󰁟"}.mdi-arrow-up-bold-circle-outline:before{content:"󰁠"}.mdi-arrow-up-bold-hexagon-outline:before{content:"󰁡"}.mdi-arrow-up-bold-outline:before{content:"󰧇"}.mdi-arrow-up-box:before{content:"󰛃"}.mdi-arrow-up-circle:before{content:"󰳡"}.mdi-arrow-up-circle-outline:before{content:"󰳢"}.mdi-arrow-up-down:before{content:"󰹹"}.mdi-arrow-up-down-bold:before{content:"󰹺"}.mdi-arrow-up-down-bold-outline:before{content:"󰧈"}.mdi-arrow-up-drop-circle:before{content:"󰁢"}.mdi-arrow-up-drop-circle-outline:before{content:"󰁣"}.mdi-arrow-up-left:before{content:"󱞽"}.mdi-arrow-up-left-bold:before{content:"󱞾"}.mdi-arrow-up-right:before{content:"󱞿"}.mdi-arrow-up-right-bold:before{content:"󱟀"}.mdi-arrow-up-thick:before{content:"󰁞"}.mdi-arrow-up-thin:before{content:"󱦲"}.mdi-arrow-up-thin-circle-outline:before{content:"󱖗"}.mdi-arrow-vertical-lock:before{content:"󱅜"}.mdi-artboard:before{content:"󱮚"}.mdi-artstation:before{content:"󰭛"}.mdi-aspect-ratio:before{content:"󰨤"}.mdi-assistant:before{content:"󰁤"}.mdi-asterisk:before{content:"󰛄"}.mdi-asterisk-circle-outline:before{content:"󱨧"}.mdi-at:before{content:"󰁥"}.mdi-atlassian:before{content:"󰠄"}.mdi-atm:before{content:"󰵇"}.mdi-atom:before{content:"󰝨"}.mdi-atom-variant:before{content:"󰹻"}.mdi-attachment:before{content:"󰁦"}.mdi-attachment-check:before{content:"󱫁"}.mdi-attachment-lock:before{content:"󱧄"}.mdi-attachment-minus:before{content:"󱫂"}.mdi-attachment-off:before{content:"󱫃"}.mdi-attachment-plus:before{content:"󱫄"}.mdi-attachment-remove:before{content:"󱫅"}.mdi-atv:before{content:"󱭰"}.mdi-audio-input-rca:before{content:"󱡫"}.mdi-audio-input-stereo-minijack:before{content:"󱡬"}.mdi-audio-input-xlr:before{content:"󱡭"}.mdi-audio-video:before{content:"󰤽"}.mdi-audio-video-off:before{content:"󱆶"}.mdi-augmented-reality:before{content:"󰡐"}.mdi-aurora:before{content:"󱮹"}.mdi-auto-download:before{content:"󱍾"}.mdi-auto-fix:before{content:"󰁨"}.mdi-auto-mode:before{content:"󱰠"}.mdi-auto-upload:before{content:"󰁩"}.mdi-autorenew:before{content:"󰁪"}.mdi-autorenew-off:before{content:"󱧧"}.mdi-av-timer:before{content:"󰁫"}.mdi-awning:before{content:"󱮇"}.mdi-awning-outline:before{content:"󱮈"}.mdi-aws:before{content:"󰸏"}.mdi-axe:before{content:"󰣈"}.mdi-axe-battle:before{content:"󱡂"}.mdi-axis:before{content:"󰵈"}.mdi-axis-arrow:before{content:"󰵉"}.mdi-axis-arrow-info:before{content:"󱐎"}.mdi-axis-arrow-lock:before{content:"󰵊"}.mdi-axis-lock:before{content:"󰵋"}.mdi-axis-x-arrow:before{content:"󰵌"}.mdi-axis-x-arrow-lock:before{content:"󰵍"}.mdi-axis-x-rotate-clockwise:before{content:"󰵎"}.mdi-axis-x-rotate-counterclockwise:before{content:"󰵏"}.mdi-axis-x-y-arrow-lock:before{content:"󰵐"}.mdi-axis-y-arrow:before{content:"󰵑"}.mdi-axis-y-arrow-lock:before{content:"󰵒"}.mdi-axis-y-rotate-clockwise:before{content:"󰵓"}.mdi-axis-y-rotate-counterclockwise:before{content:"󰵔"}.mdi-axis-z-arrow:before{content:"󰵕"}.mdi-axis-z-arrow-lock:before{content:"󰵖"}.mdi-axis-z-rotate-clockwise:before{content:"󰵗"}.mdi-axis-z-rotate-counterclockwise:before{content:"󰵘"}.mdi-babel:before{content:"󰨥"}.mdi-baby:before{content:"󰁬"}.mdi-baby-bottle:before{content:"󰼹"}.mdi-baby-bottle-outline:before{content:"󰼺"}.mdi-baby-buggy:before{content:"󱏠"}.mdi-baby-buggy-off:before{content:"󱫳"}.mdi-baby-carriage:before{content:"󰚏"}.mdi-baby-carriage-off:before{content:"󰾠"}.mdi-baby-face:before{content:"󰹼"}.mdi-baby-face-outline:before{content:"󰹽"}.mdi-backburger:before{content:"󰁭"}.mdi-backspace:before{content:"󰁮"}.mdi-backspace-outline:before{content:"󰭜"}.mdi-backspace-reverse:before{content:"󰹾"}.mdi-backspace-reverse-outline:before{content:"󰹿"}.mdi-backup-restore:before{content:"󰁯"}.mdi-bacteria:before{content:"󰻕"}.mdi-bacteria-outline:before{content:"󰻖"}.mdi-badge-account:before{content:"󰶧"}.mdi-badge-account-alert:before{content:"󰶨"}.mdi-badge-account-alert-outline:before{content:"󰶩"}.mdi-badge-account-horizontal:before{content:"󰸍"}.mdi-badge-account-horizontal-outline:before{content:"󰸎"}.mdi-badge-account-outline:before{content:"󰶪"}.mdi-badminton:before{content:"󰡑"}.mdi-bag-carry-on:before{content:"󰼻"}.mdi-bag-carry-on-check:before{content:"󰵥"}.mdi-bag-carry-on-off:before{content:"󰼼"}.mdi-bag-checked:before{content:"󰼽"}.mdi-bag-personal:before{content:"󰸐"}.mdi-bag-personal-off:before{content:"󰸑"}.mdi-bag-personal-off-outline:before{content:"󰸒"}.mdi-bag-personal-outline:before{content:"󰸓"}.mdi-bag-personal-plus:before{content:"󱲤"}.mdi-bag-personal-plus-outline:before{content:"󱲥"}.mdi-bag-personal-tag:before{content:"󱬌"}.mdi-bag-personal-tag-outline:before{content:"󱬍"}.mdi-bag-suitcase:before{content:"󱖋"}.mdi-bag-suitcase-off:before{content:"󱖍"}.mdi-bag-suitcase-off-outline:before{content:"󱖎"}.mdi-bag-suitcase-outline:before{content:"󱖌"}.mdi-baguette:before{content:"󰼾"}.mdi-balcony:before{content:"󱠗"}.mdi-balloon:before{content:"󰨦"}.mdi-ballot:before{content:"󰧉"}.mdi-ballot-outline:before{content:"󰧊"}.mdi-ballot-recount:before{content:"󰰹"}.mdi-ballot-recount-outline:before{content:"󰰺"}.mdi-bandage:before{content:"󰶯"}.mdi-bank:before{content:"󰁰"}.mdi-bank-check:before{content:"󱙕"}.mdi-bank-circle:before{content:"󱰃"}.mdi-bank-circle-outline:before{content:"󱰄"}.mdi-bank-minus:before{content:"󰶰"}.mdi-bank-off:before{content:"󱙖"}.mdi-bank-off-outline:before{content:"󱙗"}.mdi-bank-outline:before{content:"󰺀"}.mdi-bank-plus:before{content:"󰶱"}.mdi-bank-remove:before{content:"󰶲"}.mdi-bank-transfer:before{content:"󰨧"}.mdi-bank-transfer-in:before{content:"󰨨"}.mdi-bank-transfer-out:before{content:"󰨩"}.mdi-barcode:before{content:"󰁱"}.mdi-barcode-off:before{content:"󱈶"}.mdi-barcode-scan:before{content:"󰁲"}.mdi-barley:before{content:"󰁳"}.mdi-barley-off:before{content:"󰭝"}.mdi-barn:before{content:"󰭞"}.mdi-barrel:before{content:"󰁴"}.mdi-barrel-outline:before{content:"󱨨"}.mdi-baseball:before{content:"󰡒"}.mdi-baseball-bat:before{content:"󰡓"}.mdi-baseball-diamond:before{content:"󱗬"}.mdi-baseball-diamond-outline:before{content:"󱗭"}.mdi-baseball-outline:before{content:"󱱚"}.mdi-bash:before{content:"󱆃"}.mdi-basket:before{content:"󰁶"}.mdi-basket-check:before{content:"󱣥"}.mdi-basket-check-outline:before{content:"󱣦"}.mdi-basket-fill:before{content:"󰁷"}.mdi-basket-minus:before{content:"󱔣"}.mdi-basket-minus-outline:before{content:"󱔤"}.mdi-basket-off:before{content:"󱔥"}.mdi-basket-off-outline:before{content:"󱔦"}.mdi-basket-outline:before{content:"󱆁"}.mdi-basket-plus:before{content:"󱔧"}.mdi-basket-plus-outline:before{content:"󱔨"}.mdi-basket-remove:before{content:"󱔩"}.mdi-basket-remove-outline:before{content:"󱔪"}.mdi-basket-unfill:before{content:"󰁸"}.mdi-basketball:before{content:"󰠆"}.mdi-basketball-hoop:before{content:"󰰻"}.mdi-basketball-hoop-outline:before{content:"󰰼"}.mdi-bat:before{content:"󰭟"}.mdi-bathtub:before{content:"󱠘"}.mdi-bathtub-outline:before{content:"󱠙"}.mdi-battery:before{content:"󰁹"}.mdi-battery-10:before{content:"󰁺"}.mdi-battery-10-bluetooth:before{content:"󰤾"}.mdi-battery-20:before{content:"󰁻"}.mdi-battery-20-bluetooth:before{content:"󰤿"}.mdi-battery-30:before{content:"󰁼"}.mdi-battery-30-bluetooth:before{content:"󰥀"}.mdi-battery-40:before{content:"󰁽"}.mdi-battery-40-bluetooth:before{content:"󰥁"}.mdi-battery-50:before{content:"󰁾"}.mdi-battery-50-bluetooth:before{content:"󰥂"}.mdi-battery-60:before{content:"󰁿"}.mdi-battery-60-bluetooth:before{content:"󰥃"}.mdi-battery-70:before{content:"󰂀"}.mdi-battery-70-bluetooth:before{content:"󰥄"}.mdi-battery-80:before{content:"󰂁"}.mdi-battery-80-bluetooth:before{content:"󰥅"}.mdi-battery-90:before{content:"󰂂"}.mdi-battery-90-bluetooth:before{content:"󰥆"}.mdi-battery-alert:before{content:"󰂃"}.mdi-battery-alert-bluetooth:before{content:"󰥇"}.mdi-battery-alert-variant:before{content:"󱃌"}.mdi-battery-alert-variant-outline:before{content:"󱃍"}.mdi-battery-arrow-down:before{content:"󱟞"}.mdi-battery-arrow-down-outline:before{content:"󱟟"}.mdi-battery-arrow-up:before{content:"󱟠"}.mdi-battery-arrow-up-outline:before{content:"󱟡"}.mdi-battery-bluetooth:before{content:"󰥈"}.mdi-battery-bluetooth-variant:before{content:"󰥉"}.mdi-battery-charging:before{content:"󰂄"}.mdi-battery-charging-10:before{content:"󰢜"}.mdi-battery-charging-100:before{content:"󰂅"}.mdi-battery-charging-20:before{content:"󰂆"}.mdi-battery-charging-30:before{content:"󰂇"}.mdi-battery-charging-40:before{content:"󰂈"}.mdi-battery-charging-50:before{content:"󰢝"}.mdi-battery-charging-60:before{content:"󰂉"}.mdi-battery-charging-70:before{content:"󰢞"}.mdi-battery-charging-80:before{content:"󰂊"}.mdi-battery-charging-90:before{content:"󰂋"}.mdi-battery-charging-high:before{content:"󱊦"}.mdi-battery-charging-low:before{content:"󱊤"}.mdi-battery-charging-medium:before{content:"󱊥"}.mdi-battery-charging-outline:before{content:"󰢟"}.mdi-battery-charging-wireless:before{content:"󰠇"}.mdi-battery-charging-wireless-10:before{content:"󰠈"}.mdi-battery-charging-wireless-20:before{content:"󰠉"}.mdi-battery-charging-wireless-30:before{content:"󰠊"}.mdi-battery-charging-wireless-40:before{content:"󰠋"}.mdi-battery-charging-wireless-50:before{content:"󰠌"}.mdi-battery-charging-wireless-60:before{content:"󰠍"}.mdi-battery-charging-wireless-70:before{content:"󰠎"}.mdi-battery-charging-wireless-80:before{content:"󰠏"}.mdi-battery-charging-wireless-90:before{content:"󰠐"}.mdi-battery-charging-wireless-alert:before{content:"󰠑"}.mdi-battery-charging-wireless-outline:before{content:"󰠒"}.mdi-battery-check:before{content:"󱟢"}.mdi-battery-check-outline:before{content:"󱟣"}.mdi-battery-clock:before{content:"󱧥"}.mdi-battery-clock-outline:before{content:"󱧦"}.mdi-battery-heart:before{content:"󱈏"}.mdi-battery-heart-outline:before{content:"󱈐"}.mdi-battery-heart-variant:before{content:"󱈑"}.mdi-battery-high:before{content:"󱊣"}.mdi-battery-lock:before{content:"󱞜"}.mdi-battery-lock-open:before{content:"󱞝"}.mdi-battery-low:before{content:"󱊡"}.mdi-battery-medium:before{content:"󱊢"}.mdi-battery-minus:before{content:"󱟤"}.mdi-battery-minus-outline:before{content:"󱟥"}.mdi-battery-minus-variant:before{content:"󰂌"}.mdi-battery-negative:before{content:"󰂍"}.mdi-battery-off:before{content:"󱉝"}.mdi-battery-off-outline:before{content:"󱉞"}.mdi-battery-outline:before{content:"󰂎"}.mdi-battery-plus:before{content:"󱟦"}.mdi-battery-plus-outline:before{content:"󱟧"}.mdi-battery-plus-variant:before{content:"󰂏"}.mdi-battery-positive:before{content:"󰂐"}.mdi-battery-remove:before{content:"󱟨"}.mdi-battery-remove-outline:before{content:"󱟩"}.mdi-battery-sync:before{content:"󱠴"}.mdi-battery-sync-outline:before{content:"󱠵"}.mdi-battery-unknown:before{content:"󰂑"}.mdi-battery-unknown-bluetooth:before{content:"󰥊"}.mdi-beach:before{content:"󰂒"}.mdi-beaker:before{content:"󰳪"}.mdi-beaker-alert:before{content:"󱈩"}.mdi-beaker-alert-outline:before{content:"󱈪"}.mdi-beaker-check:before{content:"󱈫"}.mdi-beaker-check-outline:before{content:"󱈬"}.mdi-beaker-minus:before{content:"󱈭"}.mdi-beaker-minus-outline:before{content:"󱈮"}.mdi-beaker-outline:before{content:"󰚐"}.mdi-beaker-plus:before{content:"󱈯"}.mdi-beaker-plus-outline:before{content:"󱈰"}.mdi-beaker-question:before{content:"󱈱"}.mdi-beaker-question-outline:before{content:"󱈲"}.mdi-beaker-remove:before{content:"󱈳"}.mdi-beaker-remove-outline:before{content:"󱈴"}.mdi-bed:before{content:"󰋣"}.mdi-bed-clock:before{content:"󱮔"}.mdi-bed-double:before{content:"󰿔"}.mdi-bed-double-outline:before{content:"󰿓"}.mdi-bed-empty:before{content:"󰢠"}.mdi-bed-king:before{content:"󰿒"}.mdi-bed-king-outline:before{content:"󰿑"}.mdi-bed-outline:before{content:"󰂙"}.mdi-bed-queen:before{content:"󰿐"}.mdi-bed-queen-outline:before{content:"󰿛"}.mdi-bed-single:before{content:"󱁭"}.mdi-bed-single-outline:before{content:"󱁮"}.mdi-bee:before{content:"󰾡"}.mdi-bee-flower:before{content:"󰾢"}.mdi-beehive-off-outline:before{content:"󱏭"}.mdi-beehive-outline:before{content:"󱃎"}.mdi-beekeeper:before{content:"󱓢"}.mdi-beer:before{content:"󰂘"}.mdi-beer-outline:before{content:"󱌌"}.mdi-bell:before{content:"󰂚"}.mdi-bell-alert:before{content:"󰵙"}.mdi-bell-alert-outline:before{content:"󰺁"}.mdi-bell-badge:before{content:"󱅫"}.mdi-bell-badge-outline:before{content:"󰅸"}.mdi-bell-cancel:before{content:"󱏧"}.mdi-bell-cancel-outline:before{content:"󱏨"}.mdi-bell-check:before{content:"󱇥"}.mdi-bell-check-outline:before{content:"󱇦"}.mdi-bell-circle:before{content:"󰵚"}.mdi-bell-circle-outline:before{content:"󰵛"}.mdi-bell-cog:before{content:"󱨩"}.mdi-bell-cog-outline:before{content:"󱨪"}.mdi-bell-minus:before{content:"󱏩"}.mdi-bell-minus-outline:before{content:"󱏪"}.mdi-bell-off:before{content:"󰂛"}.mdi-bell-off-outline:before{content:"󰪑"}.mdi-bell-outline:before{content:"󰂜"}.mdi-bell-plus:before{content:"󰂝"}.mdi-bell-plus-outline:before{content:"󰪒"}.mdi-bell-remove:before{content:"󱏫"}.mdi-bell-remove-outline:before{content:"󱏬"}.mdi-bell-ring:before{content:"󰂞"}.mdi-bell-ring-outline:before{content:"󰂟"}.mdi-bell-sleep:before{content:"󰂠"}.mdi-bell-sleep-outline:before{content:"󰪓"}.mdi-bench:before{content:"󱰡"}.mdi-bench-back:before{content:"󱰢"}.mdi-beta:before{content:"󰂡"}.mdi-betamax:before{content:"󰧋"}.mdi-biathlon:before{content:"󰸔"}.mdi-bicycle:before{content:"󱂜"}.mdi-bicycle-basket:before{content:"󱈵"}.mdi-bicycle-cargo:before{content:"󱢜"}.mdi-bicycle-electric:before{content:"󱖴"}.mdi-bicycle-penny-farthing:before{content:"󱗩"}.mdi-bike:before{content:"󰂣"}.mdi-bike-fast:before{content:"󱄟"}.mdi-bike-pedal:before{content:"󱰣"}.mdi-bike-pedal-clipless:before{content:"󱰤"}.mdi-bike-pedal-mountain:before{content:"󱰥"}.mdi-billboard:before{content:"󱀐"}.mdi-billiards:before{content:"󰭡"}.mdi-billiards-rack:before{content:"󰭢"}.mdi-binoculars:before{content:"󰂥"}.mdi-bio:before{content:"󰂦"}.mdi-biohazard:before{content:"󰂧"}.mdi-bird:before{content:"󱗆"}.mdi-bitbucket:before{content:"󰂨"}.mdi-bitcoin:before{content:"󰠓"}.mdi-black-mesa:before{content:"󰂩"}.mdi-blender:before{content:"󰳫"}.mdi-blender-outline:before{content:"󱠚"}.mdi-blender-software:before{content:"󰂫"}.mdi-blinds:before{content:"󰂬"}.mdi-blinds-horizontal:before{content:"󱨫"}.mdi-blinds-horizontal-closed:before{content:"󱨬"}.mdi-blinds-open:before{content:"󱀑"}.mdi-blinds-vertical:before{content:"󱨭"}.mdi-blinds-vertical-closed:before{content:"󱨮"}.mdi-block-helper:before{content:"󰂭"}.mdi-blood-bag:before{content:"󰳬"}.mdi-bluetooth:before{content:"󰂯"}.mdi-bluetooth-audio:before{content:"󰂰"}.mdi-bluetooth-connect:before{content:"󰂱"}.mdi-bluetooth-off:before{content:"󰂲"}.mdi-bluetooth-settings:before{content:"󰂳"}.mdi-bluetooth-transfer:before{content:"󰂴"}.mdi-blur:before{content:"󰂵"}.mdi-blur-linear:before{content:"󰂶"}.mdi-blur-off:before{content:"󰂷"}.mdi-blur-radial:before{content:"󰂸"}.mdi-bolt:before{content:"󰶳"}.mdi-bomb:before{content:"󰚑"}.mdi-bomb-off:before{content:"󰛅"}.mdi-bone:before{content:"󰂹"}.mdi-bone-off:before{content:"󱧠"}.mdi-book:before{content:"󰂺"}.mdi-book-account:before{content:"󱎭"}.mdi-book-account-outline:before{content:"󱎮"}.mdi-book-alert:before{content:"󱙼"}.mdi-book-alert-outline:before{content:"󱙽"}.mdi-book-alphabet:before{content:"󰘝"}.mdi-book-arrow-down:before{content:"󱙾"}.mdi-book-arrow-down-outline:before{content:"󱙿"}.mdi-book-arrow-left:before{content:"󱚀"}.mdi-book-arrow-left-outline:before{content:"󱚁"}.mdi-book-arrow-right:before{content:"󱚂"}.mdi-book-arrow-right-outline:before{content:"󱚃"}.mdi-book-arrow-up:before{content:"󱚄"}.mdi-book-arrow-up-outline:before{content:"󱚅"}.mdi-book-cancel:before{content:"󱚆"}.mdi-book-cancel-outline:before{content:"󱚇"}.mdi-book-check:before{content:"󱓳"}.mdi-book-check-outline:before{content:"󱓴"}.mdi-book-clock:before{content:"󱚈"}.mdi-book-clock-outline:before{content:"󱚉"}.mdi-book-cog:before{content:"󱚊"}.mdi-book-cog-outline:before{content:"󱚋"}.mdi-book-cross:before{content:"󰂢"}.mdi-book-edit:before{content:"󱚌"}.mdi-book-edit-outline:before{content:"󱚍"}.mdi-book-education:before{content:"󱛉"}.mdi-book-education-outline:before{content:"󱛊"}.mdi-book-heart:before{content:"󱨝"}.mdi-book-heart-outline:before{content:"󱨞"}.mdi-book-information-variant:before{content:"󱁯"}.mdi-book-lock:before{content:"󰞚"}.mdi-book-lock-open:before{content:"󰞛"}.mdi-book-lock-open-outline:before{content:"󱚎"}.mdi-book-lock-outline:before{content:"󱚏"}.mdi-book-marker:before{content:"󱚐"}.mdi-book-marker-outline:before{content:"󱚑"}.mdi-book-minus:before{content:"󰗙"}.mdi-book-minus-multiple:before{content:"󰪔"}.mdi-book-minus-multiple-outline:before{content:"󰤋"}.mdi-book-minus-outline:before{content:"󱚒"}.mdi-book-multiple:before{content:"󰂻"}.mdi-book-multiple-outline:before{content:"󰐶"}.mdi-book-music:before{content:"󰁧"}.mdi-book-music-outline:before{content:"󱚓"}.mdi-book-off:before{content:"󱚔"}.mdi-book-off-outline:before{content:"󱚕"}.mdi-book-open:before{content:"󰂽"}.mdi-book-open-blank-variant:before{content:"󰂾"}.mdi-book-open-outline:before{content:"󰭣"}.mdi-book-open-page-variant:before{content:"󰗚"}.mdi-book-open-page-variant-outline:before{content:"󱗖"}.mdi-book-open-variant:before{content:"󱓷"}.mdi-book-outline:before{content:"󰭤"}.mdi-book-play:before{content:"󰺂"}.mdi-book-play-outline:before{content:"󰺃"}.mdi-book-plus:before{content:"󰗛"}.mdi-book-plus-multiple:before{content:"󰪕"}.mdi-book-plus-multiple-outline:before{content:"󰫞"}.mdi-book-plus-outline:before{content:"󱚖"}.mdi-book-refresh:before{content:"󱚗"}.mdi-book-refresh-outline:before{content:"󱚘"}.mdi-book-remove:before{content:"󰪗"}.mdi-book-remove-multiple:before{content:"󰪖"}.mdi-book-remove-multiple-outline:before{content:"󰓊"}.mdi-book-remove-outline:before{content:"󱚙"}.mdi-book-search:before{content:"󰺄"}.mdi-book-search-outline:before{content:"󰺅"}.mdi-book-settings:before{content:"󱚚"}.mdi-book-settings-outline:before{content:"󱚛"}.mdi-book-sync:before{content:"󱚜"}.mdi-book-sync-outline:before{content:"󱛈"}.mdi-book-variant:before{content:"󰂿"}.mdi-bookmark:before{content:"󰃀"}.mdi-bookmark-box:before{content:"󱭵"}.mdi-bookmark-box-multiple:before{content:"󱥬"}.mdi-bookmark-box-multiple-outline:before{content:"󱥭"}.mdi-bookmark-box-outline:before{content:"󱭶"}.mdi-bookmark-check:before{content:"󰃁"}.mdi-bookmark-check-outline:before{content:"󱍻"}.mdi-bookmark-minus:before{content:"󰧌"}.mdi-bookmark-minus-outline:before{content:"󰧍"}.mdi-bookmark-multiple:before{content:"󰸕"}.mdi-bookmark-multiple-outline:before{content:"󰸖"}.mdi-bookmark-music:before{content:"󰃂"}.mdi-bookmark-music-outline:before{content:"󱍹"}.mdi-bookmark-off:before{content:"󰧎"}.mdi-bookmark-off-outline:before{content:"󰧏"}.mdi-bookmark-outline:before{content:"󰃃"}.mdi-bookmark-plus:before{content:"󰃅"}.mdi-bookmark-plus-outline:before{content:"󰃄"}.mdi-bookmark-remove:before{content:"󰃆"}.mdi-bookmark-remove-outline:before{content:"󱍺"}.mdi-bookshelf:before{content:"󱉟"}.mdi-boom-gate:before{content:"󰺆"}.mdi-boom-gate-alert:before{content:"󰺇"}.mdi-boom-gate-alert-outline:before{content:"󰺈"}.mdi-boom-gate-arrow-down:before{content:"󰺉"}.mdi-boom-gate-arrow-down-outline:before{content:"󰺊"}.mdi-boom-gate-arrow-up:before{content:"󰺌"}.mdi-boom-gate-arrow-up-outline:before{content:"󰺍"}.mdi-boom-gate-outline:before{content:"󰺋"}.mdi-boom-gate-up:before{content:"󱟹"}.mdi-boom-gate-up-outline:before{content:"󱟺"}.mdi-boombox:before{content:"󰗜"}.mdi-boomerang:before{content:"󱃏"}.mdi-bootstrap:before{content:"󰛆"}.mdi-border-all:before{content:"󰃇"}.mdi-border-all-variant:before{content:"󰢡"}.mdi-border-bottom:before{content:"󰃈"}.mdi-border-bottom-variant:before{content:"󰢢"}.mdi-border-color:before{content:"󰃉"}.mdi-border-horizontal:before{content:"󰃊"}.mdi-border-inside:before{content:"󰃋"}.mdi-border-left:before{content:"󰃌"}.mdi-border-left-variant:before{content:"󰢣"}.mdi-border-none:before{content:"󰃍"}.mdi-border-none-variant:before{content:"󰢤"}.mdi-border-outside:before{content:"󰃎"}.mdi-border-radius:before{content:"󱫴"}.mdi-border-right:before{content:"󰃏"}.mdi-border-right-variant:before{content:"󰢥"}.mdi-border-style:before{content:"󰃐"}.mdi-border-top:before{content:"󰃑"}.mdi-border-top-variant:before{content:"󰢦"}.mdi-border-vertical:before{content:"󰃒"}.mdi-bottle-soda:before{content:"󱁰"}.mdi-bottle-soda-classic:before{content:"󱁱"}.mdi-bottle-soda-classic-outline:before{content:"󱍣"}.mdi-bottle-soda-outline:before{content:"󱁲"}.mdi-bottle-tonic:before{content:"󱄮"}.mdi-bottle-tonic-outline:before{content:"󱄯"}.mdi-bottle-tonic-plus:before{content:"󱄰"}.mdi-bottle-tonic-plus-outline:before{content:"󱄱"}.mdi-bottle-tonic-skull:before{content:"󱄲"}.mdi-bottle-tonic-skull-outline:before{content:"󱄳"}.mdi-bottle-wine:before{content:"󰡔"}.mdi-bottle-wine-outline:before{content:"󱌐"}.mdi-bow-arrow:before{content:"󱡁"}.mdi-bow-tie:before{content:"󰙸"}.mdi-bowl:before{content:"󰊎"}.mdi-bowl-mix:before{content:"󰘗"}.mdi-bowl-mix-outline:before{content:"󰋤"}.mdi-bowl-outline:before{content:"󰊩"}.mdi-bowling:before{content:"󰃓"}.mdi-box:before{content:"󰃔"}.mdi-box-cutter:before{content:"󰃕"}.mdi-box-cutter-off:before{content:"󰭊"}.mdi-box-shadow:before{content:"󰘷"}.mdi-boxing-glove:before{content:"󰭥"}.mdi-braille:before{content:"󰧐"}.mdi-brain:before{content:"󰧑"}.mdi-bread-slice:before{content:"󰳮"}.mdi-bread-slice-outline:before{content:"󰳯"}.mdi-bridge:before{content:"󰘘"}.mdi-briefcase:before{content:"󰃖"}.mdi-briefcase-account:before{content:"󰳰"}.mdi-briefcase-account-outline:before{content:"󰳱"}.mdi-briefcase-arrow-left-right:before{content:"󱪍"}.mdi-briefcase-arrow-left-right-outline:before{content:"󱪎"}.mdi-briefcase-arrow-up-down:before{content:"󱪏"}.mdi-briefcase-arrow-up-down-outline:before{content:"󱪐"}.mdi-briefcase-check:before{content:"󰃗"}.mdi-briefcase-check-outline:before{content:"󱌞"}.mdi-briefcase-clock:before{content:"󱃐"}.mdi-briefcase-clock-outline:before{content:"󱃑"}.mdi-briefcase-download:before{content:"󰃘"}.mdi-briefcase-download-outline:before{content:"󰰽"}.mdi-briefcase-edit:before{content:"󰪘"}.mdi-briefcase-edit-outline:before{content:"󰰾"}.mdi-briefcase-eye:before{content:"󱟙"}.mdi-briefcase-eye-outline:before{content:"󱟚"}.mdi-briefcase-minus:before{content:"󰨪"}.mdi-briefcase-minus-outline:before{content:"󰰿"}.mdi-briefcase-off:before{content:"󱙘"}.mdi-briefcase-off-outline:before{content:"󱙙"}.mdi-briefcase-outline:before{content:"󰠔"}.mdi-briefcase-plus:before{content:"󰨫"}.mdi-briefcase-plus-outline:before{content:"󰱀"}.mdi-briefcase-remove:before{content:"󰨬"}.mdi-briefcase-remove-outline:before{content:"󰱁"}.mdi-briefcase-search:before{content:"󰨭"}.mdi-briefcase-search-outline:before{content:"󰱂"}.mdi-briefcase-upload:before{content:"󰃙"}.mdi-briefcase-upload-outline:before{content:"󰱃"}.mdi-briefcase-variant:before{content:"󱒔"}.mdi-briefcase-variant-off:before{content:"󱙚"}.mdi-briefcase-variant-off-outline:before{content:"󱙛"}.mdi-briefcase-variant-outline:before{content:"󱒕"}.mdi-brightness-1:before{content:"󰃚"}.mdi-brightness-2:before{content:"󰃛"}.mdi-brightness-3:before{content:"󰃜"}.mdi-brightness-4:before{content:"󰃝"}.mdi-brightness-5:before{content:"󰃞"}.mdi-brightness-6:before{content:"󰃟"}.mdi-brightness-7:before{content:"󰃠"}.mdi-brightness-auto:before{content:"󰃡"}.mdi-brightness-percent:before{content:"󰳲"}.mdi-broadcast:before{content:"󱜠"}.mdi-broadcast-off:before{content:"󱜡"}.mdi-broom:before{content:"󰃢"}.mdi-brush:before{content:"󰃣"}.mdi-brush-off:before{content:"󱝱"}.mdi-brush-outline:before{content:"󱨍"}.mdi-brush-variant:before{content:"󱠓"}.mdi-bucket:before{content:"󱐕"}.mdi-bucket-outline:before{content:"󱐖"}.mdi-buffet:before{content:"󰕸"}.mdi-bug:before{content:"󰃤"}.mdi-bug-check:before{content:"󰨮"}.mdi-bug-check-outline:before{content:"󰨯"}.mdi-bug-outline:before{content:"󰨰"}.mdi-bug-pause:before{content:"󱫵"}.mdi-bug-pause-outline:before{content:"󱫶"}.mdi-bug-play:before{content:"󱫷"}.mdi-bug-play-outline:before{content:"󱫸"}.mdi-bug-stop:before{content:"󱫹"}.mdi-bug-stop-outline:before{content:"󱫺"}.mdi-bugle:before{content:"󰶴"}.mdi-bulkhead-light:before{content:"󱨯"}.mdi-bulldozer:before{content:"󰬢"}.mdi-bullet:before{content:"󰳳"}.mdi-bulletin-board:before{content:"󰃥"}.mdi-bullhorn:before{content:"󰃦"}.mdi-bullhorn-outline:before{content:"󰬣"}.mdi-bullhorn-variant:before{content:"󱥮"}.mdi-bullhorn-variant-outline:before{content:"󱥯"}.mdi-bullseye:before{content:"󰗝"}.mdi-bullseye-arrow:before{content:"󰣉"}.mdi-bulma:before{content:"󱋧"}.mdi-bunk-bed:before{content:"󱌂"}.mdi-bunk-bed-outline:before{content:"󰂗"}.mdi-bus:before{content:"󰃧"}.mdi-bus-alert:before{content:"󰪙"}.mdi-bus-articulated-end:before{content:"󰞜"}.mdi-bus-articulated-front:before{content:"󰞝"}.mdi-bus-clock:before{content:"󰣊"}.mdi-bus-double-decker:before{content:"󰞞"}.mdi-bus-electric:before{content:"󱤝"}.mdi-bus-marker:before{content:"󱈒"}.mdi-bus-multiple:before{content:"󰼿"}.mdi-bus-school:before{content:"󰞟"}.mdi-bus-side:before{content:"󰞠"}.mdi-bus-sign:before{content:"󱳁"}.mdi-bus-stop:before{content:"󱀒"}.mdi-bus-stop-covered:before{content:"󱀓"}.mdi-bus-stop-uncovered:before{content:"󱀔"}.mdi-bus-wrench:before{content:"󱳂"}.mdi-butterfly:before{content:"󱖉"}.mdi-butterfly-outline:before{content:"󱖊"}.mdi-button-cursor:before{content:"󱭏"}.mdi-button-pointer:before{content:"󱭐"}.mdi-cabin-a-frame:before{content:"󱢌"}.mdi-cable-data:before{content:"󱎔"}.mdi-cached:before{content:"󰃨"}.mdi-cactus:before{content:"󰶵"}.mdi-cake:before{content:"󰃩"}.mdi-cake-layered:before{content:"󰃪"}.mdi-cake-variant:before{content:"󰃫"}.mdi-cake-variant-outline:before{content:"󱟰"}.mdi-calculator:before{content:"󰃬"}.mdi-calculator-variant:before{content:"󰪚"}.mdi-calculator-variant-outline:before{content:"󱖦"}.mdi-calendar:before{content:"󰃭"}.mdi-calendar-account:before{content:"󰻗"}.mdi-calendar-account-outline:before{content:"󰻘"}.mdi-calendar-alert:before{content:"󰨱"}.mdi-calendar-alert-outline:before{content:"󱭢"}.mdi-calendar-arrow-left:before{content:"󱄴"}.mdi-calendar-arrow-right:before{content:"󱄵"}.mdi-calendar-badge:before{content:"󱮝"}.mdi-calendar-badge-outline:before{content:"󱮞"}.mdi-calendar-blank:before{content:"󰃮"}.mdi-calendar-blank-multiple:before{content:"󱁳"}.mdi-calendar-blank-outline:before{content:"󰭦"}.mdi-calendar-check:before{content:"󰃯"}.mdi-calendar-check-outline:before{content:"󰱄"}.mdi-calendar-clock:before{content:"󰃰"}.mdi-calendar-clock-outline:before{content:"󱛡"}.mdi-calendar-collapse-horizontal:before{content:"󱢝"}.mdi-calendar-collapse-horizontal-outline:before{content:"󱭣"}.mdi-calendar-cursor:before{content:"󱕻"}.mdi-calendar-cursor-outline:before{content:"󱭤"}.mdi-calendar-edit:before{content:"󰢧"}.mdi-calendar-edit-outline:before{content:"󱭥"}.mdi-calendar-end:before{content:"󱙬"}.mdi-calendar-end-outline:before{content:"󱭦"}.mdi-calendar-expand-horizontal:before{content:"󱢞"}.mdi-calendar-expand-horizontal-outline:before{content:"󱭧"}.mdi-calendar-export:before{content:"󰬤"}.mdi-calendar-export-outline:before{content:"󱭨"}.mdi-calendar-filter:before{content:"󱨲"}.mdi-calendar-filter-outline:before{content:"󱨳"}.mdi-calendar-heart:before{content:"󰧒"}.mdi-calendar-heart-outline:before{content:"󱭩"}.mdi-calendar-import:before{content:"󰬥"}.mdi-calendar-import-outline:before{content:"󱭪"}.mdi-calendar-lock:before{content:"󱙁"}.mdi-calendar-lock-open:before{content:"󱭛"}.mdi-calendar-lock-open-outline:before{content:"󱭜"}.mdi-calendar-lock-outline:before{content:"󱙂"}.mdi-calendar-minus:before{content:"󰵜"}.mdi-calendar-minus-outline:before{content:"󱭫"}.mdi-calendar-month:before{content:"󰸗"}.mdi-calendar-month-outline:before{content:"󰸘"}.mdi-calendar-multiple:before{content:"󰃱"}.mdi-calendar-multiple-check:before{content:"󰃲"}.mdi-calendar-multiselect:before{content:"󰨲"}.mdi-calendar-multiselect-outline:before{content:"󱭕"}.mdi-calendar-outline:before{content:"󰭧"}.mdi-calendar-plus:before{content:"󰃳"}.mdi-calendar-plus-outline:before{content:"󱭬"}.mdi-calendar-question:before{content:"󰚒"}.mdi-calendar-question-outline:before{content:"󱭭"}.mdi-calendar-range:before{content:"󰙹"}.mdi-calendar-range-outline:before{content:"󰭨"}.mdi-calendar-refresh:before{content:"󰇡"}.mdi-calendar-refresh-outline:before{content:"󰈃"}.mdi-calendar-remove:before{content:"󰃴"}.mdi-calendar-remove-outline:before{content:"󰱅"}.mdi-calendar-search:before{content:"󰥌"}.mdi-calendar-search-outline:before{content:"󱭮"}.mdi-calendar-star:before{content:"󰧓"}.mdi-calendar-star-four-points:before{content:"󱰟"}.mdi-calendar-star-outline:before{content:"󱭓"}.mdi-calendar-start:before{content:"󱙭"}.mdi-calendar-start-outline:before{content:"󱭯"}.mdi-calendar-sync:before{content:"󰺎"}.mdi-calendar-sync-outline:before{content:"󰺏"}.mdi-calendar-text:before{content:"󰃵"}.mdi-calendar-text-outline:before{content:"󰱆"}.mdi-calendar-today:before{content:"󰃶"}.mdi-calendar-today-outline:before{content:"󱨰"}.mdi-calendar-week:before{content:"󰨳"}.mdi-calendar-week-begin:before{content:"󰨴"}.mdi-calendar-week-begin-outline:before{content:"󱨱"}.mdi-calendar-week-outline:before{content:"󱨴"}.mdi-calendar-weekend:before{content:"󰻙"}.mdi-calendar-weekend-outline:before{content:"󰻚"}.mdi-call-made:before{content:"󰃷"}.mdi-call-merge:before{content:"󰃸"}.mdi-call-missed:before{content:"󰃹"}.mdi-call-received:before{content:"󰃺"}.mdi-call-split:before{content:"󰃻"}.mdi-camcorder:before{content:"󰃼"}.mdi-camcorder-off:before{content:"󰃿"}.mdi-camera:before{content:"󰄀"}.mdi-camera-account:before{content:"󰣋"}.mdi-camera-burst:before{content:"󰚓"}.mdi-camera-control:before{content:"󰭩"}.mdi-camera-document:before{content:"󱡱"}.mdi-camera-document-off:before{content:"󱡲"}.mdi-camera-enhance:before{content:"󰄁"}.mdi-camera-enhance-outline:before{content:"󰭪"}.mdi-camera-flip:before{content:"󱗙"}.mdi-camera-flip-outline:before{content:"󱗚"}.mdi-camera-front:before{content:"󰄂"}.mdi-camera-front-variant:before{content:"󰄃"}.mdi-camera-gopro:before{content:"󰞡"}.mdi-camera-image:before{content:"󰣌"}.mdi-camera-iris:before{content:"󰄄"}.mdi-camera-lock:before{content:"󱨔"}.mdi-camera-lock-open:before{content:"󱰍"}.mdi-camera-lock-open-outline:before{content:"󱰎"}.mdi-camera-lock-outline:before{content:"󱨕"}.mdi-camera-marker:before{content:"󱦧"}.mdi-camera-marker-outline:before{content:"󱦨"}.mdi-camera-metering-center:before{content:"󰞢"}.mdi-camera-metering-matrix:before{content:"󰞣"}.mdi-camera-metering-partial:before{content:"󰞤"}.mdi-camera-metering-spot:before{content:"󰞥"}.mdi-camera-off:before{content:"󰗟"}.mdi-camera-off-outline:before{content:"󱦿"}.mdi-camera-outline:before{content:"󰵝"}.mdi-camera-party-mode:before{content:"󰄅"}.mdi-camera-plus:before{content:"󰻛"}.mdi-camera-plus-outline:before{content:"󰻜"}.mdi-camera-rear:before{content:"󰄆"}.mdi-camera-rear-variant:before{content:"󰄇"}.mdi-camera-retake:before{content:"󰸙"}.mdi-camera-retake-outline:before{content:"󰸚"}.mdi-camera-switch:before{content:"󰄈"}.mdi-camera-switch-outline:before{content:"󰡊"}.mdi-camera-timer:before{content:"󰄉"}.mdi-camera-wireless:before{content:"󰶶"}.mdi-camera-wireless-outline:before{content:"󰶷"}.mdi-campfire:before{content:"󰻝"}.mdi-cancel:before{content:"󰜺"}.mdi-candelabra:before{content:"󱟒"}.mdi-candelabra-fire:before{content:"󱟓"}.mdi-candle:before{content:"󰗢"}.mdi-candy:before{content:"󱥰"}.mdi-candy-off:before{content:"󱥱"}.mdi-candy-off-outline:before{content:"󱥲"}.mdi-candy-outline:before{content:"󱥳"}.mdi-candycane:before{content:"󰄊"}.mdi-cannabis:before{content:"󰞦"}.mdi-cannabis-off:before{content:"󱙮"}.mdi-caps-lock:before{content:"󰪛"}.mdi-car:before{content:"󰄋"}.mdi-car-2-plus:before{content:"󱀕"}.mdi-car-3-plus:before{content:"󱀖"}.mdi-car-arrow-left:before{content:"󱎲"}.mdi-car-arrow-right:before{content:"󱎳"}.mdi-car-back:before{content:"󰸛"}.mdi-car-battery:before{content:"󰄌"}.mdi-car-brake-abs:before{content:"󰱇"}.mdi-car-brake-alert:before{content:"󰱈"}.mdi-car-brake-fluid-level:before{content:"󱤉"}.mdi-car-brake-hold:before{content:"󰵞"}.mdi-car-brake-low-pressure:before{content:"󱤊"}.mdi-car-brake-parking:before{content:"󰵟"}.mdi-car-brake-retarder:before{content:"󱀗"}.mdi-car-brake-temperature:before{content:"󱤋"}.mdi-car-brake-worn-linings:before{content:"󱤌"}.mdi-car-child-seat:before{content:"󰾣"}.mdi-car-clock:before{content:"󱥴"}.mdi-car-clutch:before{content:"󱀘"}.mdi-car-cog:before{content:"󱏌"}.mdi-car-connected:before{content:"󰄍"}.mdi-car-convertible:before{content:"󰞧"}.mdi-car-coolant-level:before{content:"󱀙"}.mdi-car-cruise-control:before{content:"󰵠"}.mdi-car-defrost-front:before{content:"󰵡"}.mdi-car-defrost-rear:before{content:"󰵢"}.mdi-car-door:before{content:"󰭫"}.mdi-car-door-lock:before{content:"󱂝"}.mdi-car-door-lock-open:before{content:"󱲁"}.mdi-car-electric:before{content:"󰭬"}.mdi-car-electric-outline:before{content:"󱖵"}.mdi-car-emergency:before{content:"󱘏"}.mdi-car-esp:before{content:"󰱉"}.mdi-car-estate:before{content:"󰞨"}.mdi-car-hatchback:before{content:"󰞩"}.mdi-car-info:before{content:"󱆾"}.mdi-car-key:before{content:"󰭭"}.mdi-car-lifted-pickup:before{content:"󱔭"}.mdi-car-light-alert:before{content:"󱤍"}.mdi-car-light-dimmed:before{content:"󰱊"}.mdi-car-light-fog:before{content:"󰱋"}.mdi-car-light-high:before{content:"󰱌"}.mdi-car-limousine:before{content:"󰣍"}.mdi-car-multiple:before{content:"󰭮"}.mdi-car-off:before{content:"󰸜"}.mdi-car-outline:before{content:"󱓭"}.mdi-car-parking-lights:before{content:"󰵣"}.mdi-car-pickup:before{content:"󰞪"}.mdi-car-search:before{content:"󱮍"}.mdi-car-search-outline:before{content:"󱮎"}.mdi-car-seat:before{content:"󰾤"}.mdi-car-seat-cooler:before{content:"󰾥"}.mdi-car-seat-heater:before{content:"󰾦"}.mdi-car-select:before{content:"󱡹"}.mdi-car-settings:before{content:"󱏍"}.mdi-car-shift-pattern:before{content:"󰽀"}.mdi-car-side:before{content:"󰞫"}.mdi-car-speed-limiter:before{content:"󱤎"}.mdi-car-sports:before{content:"󰞬"}.mdi-car-tire-alert:before{content:"󰱍"}.mdi-car-traction-control:before{content:"󰵤"}.mdi-car-turbocharger:before{content:"󱀚"}.mdi-car-wash:before{content:"󰄎"}.mdi-car-windshield:before{content:"󱀛"}.mdi-car-windshield-outline:before{content:"󱀜"}.mdi-car-wireless:before{content:"󱡸"}.mdi-car-wrench:before{content:"󱠔"}.mdi-carabiner:before{content:"󱓀"}.mdi-caravan:before{content:"󰞭"}.mdi-card:before{content:"󰭯"}.mdi-card-account-details:before{content:"󰗒"}.mdi-card-account-details-outline:before{content:"󰶫"}.mdi-card-account-details-star:before{content:"󰊣"}.mdi-card-account-details-star-outline:before{content:"󰛛"}.mdi-card-account-mail:before{content:"󰆎"}.mdi-card-account-mail-outline:before{content:"󰺘"}.mdi-card-account-phone:before{content:"󰺙"}.mdi-card-account-phone-outline:before{content:"󰺚"}.mdi-card-bulleted:before{content:"󰭰"}.mdi-card-bulleted-off:before{content:"󰭱"}.mdi-card-bulleted-off-outline:before{content:"󰭲"}.mdi-card-bulleted-outline:before{content:"󰭳"}.mdi-card-bulleted-settings:before{content:"󰭴"}.mdi-card-bulleted-settings-outline:before{content:"󰭵"}.mdi-card-minus:before{content:"󱘀"}.mdi-card-minus-outline:before{content:"󱘁"}.mdi-card-multiple:before{content:"󱟱"}.mdi-card-multiple-outline:before{content:"󱟲"}.mdi-card-off:before{content:"󱘂"}.mdi-card-off-outline:before{content:"󱘃"}.mdi-card-outline:before{content:"󰭶"}.mdi-card-plus:before{content:"󱇿"}.mdi-card-plus-outline:before{content:"󱈀"}.mdi-card-remove:before{content:"󱘄"}.mdi-card-remove-outline:before{content:"󱘅"}.mdi-card-search:before{content:"󱁴"}.mdi-card-search-outline:before{content:"󱁵"}.mdi-card-text:before{content:"󰭷"}.mdi-card-text-outline:before{content:"󰭸"}.mdi-cards:before{content:"󰘸"}.mdi-cards-club:before{content:"󰣎"}.mdi-cards-club-outline:before{content:"󱢟"}.mdi-cards-diamond:before{content:"󰣏"}.mdi-cards-diamond-outline:before{content:"󱀝"}.mdi-cards-heart:before{content:"󰣐"}.mdi-cards-heart-outline:before{content:"󱢠"}.mdi-cards-outline:before{content:"󰘹"}.mdi-cards-playing:before{content:"󱢡"}.mdi-cards-playing-club:before{content:"󱢢"}.mdi-cards-playing-club-multiple:before{content:"󱢣"}.mdi-cards-playing-club-multiple-outline:before{content:"󱢤"}.mdi-cards-playing-club-outline:before{content:"󱢥"}.mdi-cards-playing-diamond:before{content:"󱢦"}.mdi-cards-playing-diamond-multiple:before{content:"󱢧"}.mdi-cards-playing-diamond-multiple-outline:before{content:"󱢨"}.mdi-cards-playing-diamond-outline:before{content:"󱢩"}.mdi-cards-playing-heart:before{content:"󱢪"}.mdi-cards-playing-heart-multiple:before{content:"󱢫"}.mdi-cards-playing-heart-multiple-outline:before{content:"󱢬"}.mdi-cards-playing-heart-outline:before{content:"󱢭"}.mdi-cards-playing-outline:before{content:"󰘺"}.mdi-cards-playing-spade:before{content:"󱢮"}.mdi-cards-playing-spade-multiple:before{content:"󱢯"}.mdi-cards-playing-spade-multiple-outline:before{content:"󱢰"}.mdi-cards-playing-spade-outline:before{content:"󱢱"}.mdi-cards-spade:before{content:"󰣑"}.mdi-cards-spade-outline:before{content:"󱢲"}.mdi-cards-variant:before{content:"󰛇"}.mdi-carrot:before{content:"󰄏"}.mdi-cart:before{content:"󰄐"}.mdi-cart-arrow-down:before{content:"󰵦"}.mdi-cart-arrow-right:before{content:"󰱎"}.mdi-cart-arrow-up:before{content:"󰵧"}.mdi-cart-check:before{content:"󱗪"}.mdi-cart-heart:before{content:"󱣠"}.mdi-cart-minus:before{content:"󰵨"}.mdi-cart-off:before{content:"󰙫"}.mdi-cart-outline:before{content:"󰄑"}.mdi-cart-percent:before{content:"󱮮"}.mdi-cart-plus:before{content:"󰄒"}.mdi-cart-remove:before{content:"󰵩"}.mdi-cart-variant:before{content:"󱗫"}.mdi-case-sensitive-alt:before{content:"󰄓"}.mdi-cash:before{content:"󰄔"}.mdi-cash-100:before{content:"󰄕"}.mdi-cash-check:before{content:"󱓮"}.mdi-cash-clock:before{content:"󱪑"}.mdi-cash-edit:before{content:"󱲫"}.mdi-cash-fast:before{content:"󱡜"}.mdi-cash-lock:before{content:"󱓪"}.mdi-cash-lock-open:before{content:"󱓫"}.mdi-cash-marker:before{content:"󰶸"}.mdi-cash-minus:before{content:"󱉠"}.mdi-cash-multiple:before{content:"󰄖"}.mdi-cash-off:before{content:"󱱹"}.mdi-cash-plus:before{content:"󱉡"}.mdi-cash-refund:before{content:"󰪜"}.mdi-cash-register:before{content:"󰳴"}.mdi-cash-remove:before{content:"󱉢"}.mdi-cash-sync:before{content:"󱪒"}.mdi-cassette:before{content:"󰧔"}.mdi-cast:before{content:"󰄘"}.mdi-cast-audio:before{content:"󱀞"}.mdi-cast-audio-variant:before{content:"󱝉"}.mdi-cast-connected:before{content:"󰄙"}.mdi-cast-education:before{content:"󰸝"}.mdi-cast-off:before{content:"󰞊"}.mdi-cast-variant:before{content:"󰀟"}.mdi-castle:before{content:"󰄚"}.mdi-cat:before{content:"󰄛"}.mdi-cctv:before{content:"󰞮"}.mdi-cctv-off:before{content:"󱡟"}.mdi-ceiling-fan:before{content:"󱞗"}.mdi-ceiling-fan-light:before{content:"󱞘"}.mdi-ceiling-light:before{content:"󰝩"}.mdi-ceiling-light-multiple:before{content:"󱣝"}.mdi-ceiling-light-multiple-outline:before{content:"󱣞"}.mdi-ceiling-light-outline:before{content:"󱟇"}.mdi-cellphone:before{content:"󰄜"}.mdi-cellphone-arrow-down:before{content:"󰧕"}.mdi-cellphone-arrow-down-variant:before{content:"󱧅"}.mdi-cellphone-basic:before{content:"󰄞"}.mdi-cellphone-charging:before{content:"󱎗"}.mdi-cellphone-check:before{content:"󱟽"}.mdi-cellphone-cog:before{content:"󰥑"}.mdi-cellphone-dock:before{content:"󰄟"}.mdi-cellphone-information:before{content:"󰽁"}.mdi-cellphone-key:before{content:"󰥎"}.mdi-cellphone-link:before{content:"󰄡"}.mdi-cellphone-link-off:before{content:"󰄢"}.mdi-cellphone-lock:before{content:"󰥏"}.mdi-cellphone-marker:before{content:"󱠺"}.mdi-cellphone-message:before{content:"󰣓"}.mdi-cellphone-message-off:before{content:"󱃒"}.mdi-cellphone-nfc:before{content:"󰺐"}.mdi-cellphone-nfc-off:before{content:"󱋘"}.mdi-cellphone-off:before{content:"󰥐"}.mdi-cellphone-play:before{content:"󱀟"}.mdi-cellphone-remove:before{content:"󰥍"}.mdi-cellphone-screenshot:before{content:"󰨵"}.mdi-cellphone-settings:before{content:"󰄣"}.mdi-cellphone-sound:before{content:"󰥒"}.mdi-cellphone-text:before{content:"󰣒"}.mdi-cellphone-wireless:before{content:"󰠕"}.mdi-centos:before{content:"󱄚"}.mdi-certificate:before{content:"󰄤"}.mdi-certificate-outline:before{content:"󱆈"}.mdi-chair-rolling:before{content:"󰽈"}.mdi-chair-school:before{content:"󰄥"}.mdi-chandelier:before{content:"󱞓"}.mdi-charity:before{content:"󰱏"}.mdi-charity-search:before{content:"󱲂"}.mdi-chart-arc:before{content:"󰄦"}.mdi-chart-areaspline:before{content:"󰄧"}.mdi-chart-areaspline-variant:before{content:"󰺑"}.mdi-chart-bar:before{content:"󰄨"}.mdi-chart-bar-stacked:before{content:"󰝪"}.mdi-chart-bell-curve:before{content:"󰱐"}.mdi-chart-bell-curve-cumulative:before{content:"󰾧"}.mdi-chart-box:before{content:"󱕍"}.mdi-chart-box-outline:before{content:"󱕎"}.mdi-chart-box-plus-outline:before{content:"󱕏"}.mdi-chart-bubble:before{content:"󰗣"}.mdi-chart-donut:before{content:"󰞯"}.mdi-chart-donut-variant:before{content:"󰞰"}.mdi-chart-gantt:before{content:"󰙬"}.mdi-chart-histogram:before{content:"󰄩"}.mdi-chart-line:before{content:"󰄪"}.mdi-chart-line-stacked:before{content:"󰝫"}.mdi-chart-line-variant:before{content:"󰞱"}.mdi-chart-multiline:before{content:"󰣔"}.mdi-chart-multiple:before{content:"󱈓"}.mdi-chart-pie:before{content:"󰄫"}.mdi-chart-pie-outline:before{content:"󱯟"}.mdi-chart-ppf:before{content:"󱎀"}.mdi-chart-sankey:before{content:"󱇟"}.mdi-chart-sankey-variant:before{content:"󱇠"}.mdi-chart-scatter-plot:before{content:"󰺒"}.mdi-chart-scatter-plot-hexbin:before{content:"󰙭"}.mdi-chart-timeline:before{content:"󰙮"}.mdi-chart-timeline-variant:before{content:"󰺓"}.mdi-chart-timeline-variant-shimmer:before{content:"󱖶"}.mdi-chart-tree:before{content:"󰺔"}.mdi-chart-waterfall:before{content:"󱤘"}.mdi-chat:before{content:"󰭹"}.mdi-chat-alert:before{content:"󰭺"}.mdi-chat-alert-outline:before{content:"󱋉"}.mdi-chat-minus:before{content:"󱐐"}.mdi-chat-minus-outline:before{content:"󱐓"}.mdi-chat-outline:before{content:"󰻞"}.mdi-chat-plus:before{content:"󱐏"}.mdi-chat-plus-outline:before{content:"󱐒"}.mdi-chat-processing:before{content:"󰭻"}.mdi-chat-processing-outline:before{content:"󱋊"}.mdi-chat-question:before{content:"󱜸"}.mdi-chat-question-outline:before{content:"󱜹"}.mdi-chat-remove:before{content:"󱐑"}.mdi-chat-remove-outline:before{content:"󱐔"}.mdi-chat-sleep:before{content:"󱋑"}.mdi-chat-sleep-outline:before{content:"󱋒"}.mdi-check:before{content:"󰄬"}.mdi-check-all:before{content:"󰄭"}.mdi-check-bold:before{content:"󰸞"}.mdi-check-circle:before{content:"󰗠"}.mdi-check-circle-outline:before{content:"󰗡"}.mdi-check-decagram:before{content:"󰞑"}.mdi-check-decagram-outline:before{content:"󱝀"}.mdi-check-network:before{content:"󰱓"}.mdi-check-network-outline:before{content:"󰱔"}.mdi-check-outline:before{content:"󰡕"}.mdi-check-underline:before{content:"󰸟"}.mdi-check-underline-circle:before{content:"󰸠"}.mdi-check-underline-circle-outline:before{content:"󰸡"}.mdi-checkbook:before{content:"󰪝"}.mdi-checkbook-arrow-left:before{content:"󱰝"}.mdi-checkbook-arrow-right:before{content:"󱰞"}.mdi-checkbox-blank:before{content:"󰄮"}.mdi-checkbox-blank-badge:before{content:"󱅶"}.mdi-checkbox-blank-badge-outline:before{content:"󰄗"}.mdi-checkbox-blank-circle:before{content:"󰄯"}.mdi-checkbox-blank-circle-outline:before{content:"󰄰"}.mdi-checkbox-blank-off:before{content:"󱋬"}.mdi-checkbox-blank-off-outline:before{content:"󱋭"}.mdi-checkbox-blank-outline:before{content:"󰄱"}.mdi-checkbox-intermediate:before{content:"󰡖"}.mdi-checkbox-intermediate-variant:before{content:"󱭔"}.mdi-checkbox-marked:before{content:"󰄲"}.mdi-checkbox-marked-circle:before{content:"󰄳"}.mdi-checkbox-marked-circle-auto-outline:before{content:"󱰦"}.mdi-checkbox-marked-circle-minus-outline:before{content:"󱰧"}.mdi-checkbox-marked-circle-outline:before{content:"󰄴"}.mdi-checkbox-marked-circle-plus-outline:before{content:"󱤧"}.mdi-checkbox-marked-outline:before{content:"󰄵"}.mdi-checkbox-multiple-blank:before{content:"󰄶"}.mdi-checkbox-multiple-blank-circle:before{content:"󰘻"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"󰘼"}.mdi-checkbox-multiple-blank-outline:before{content:"󰄷"}.mdi-checkbox-multiple-marked:before{content:"󰄸"}.mdi-checkbox-multiple-marked-circle:before{content:"󰘽"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"󰘾"}.mdi-checkbox-multiple-marked-outline:before{content:"󰄹"}.mdi-checkbox-multiple-outline:before{content:"󰱑"}.mdi-checkbox-outline:before{content:"󰱒"}.mdi-checkerboard:before{content:"󰄺"}.mdi-checkerboard-minus:before{content:"󱈂"}.mdi-checkerboard-plus:before{content:"󱈁"}.mdi-checkerboard-remove:before{content:"󱈃"}.mdi-cheese:before{content:"󱊹"}.mdi-cheese-off:before{content:"󱏮"}.mdi-chef-hat:before{content:"󰭼"}.mdi-chemical-weapon:before{content:"󰄻"}.mdi-chess-bishop:before{content:"󰡜"}.mdi-chess-king:before{content:"󰡗"}.mdi-chess-knight:before{content:"󰡘"}.mdi-chess-pawn:before{content:"󰡙"}.mdi-chess-queen:before{content:"󰡚"}.mdi-chess-rook:before{content:"󰡛"}.mdi-chevron-double-down:before{content:"󰄼"}.mdi-chevron-double-left:before{content:"󰄽"}.mdi-chevron-double-right:before{content:"󰄾"}.mdi-chevron-double-up:before{content:"󰄿"}.mdi-chevron-down:before{content:"󰅀"}.mdi-chevron-down-box:before{content:"󰧖"}.mdi-chevron-down-box-outline:before{content:"󰧗"}.mdi-chevron-down-circle:before{content:"󰬦"}.mdi-chevron-down-circle-outline:before{content:"󰬧"}.mdi-chevron-left:before{content:"󰅁"}.mdi-chevron-left-box:before{content:"󰧘"}.mdi-chevron-left-box-outline:before{content:"󰧙"}.mdi-chevron-left-circle:before{content:"󰬨"}.mdi-chevron-left-circle-outline:before{content:"󰬩"}.mdi-chevron-right:before{content:"󰅂"}.mdi-chevron-right-box:before{content:"󰧚"}.mdi-chevron-right-box-outline:before{content:"󰧛"}.mdi-chevron-right-circle:before{content:"󰬪"}.mdi-chevron-right-circle-outline:before{content:"󰬫"}.mdi-chevron-triple-down:before{content:"󰶹"}.mdi-chevron-triple-left:before{content:"󰶺"}.mdi-chevron-triple-right:before{content:"󰶻"}.mdi-chevron-triple-up:before{content:"󰶼"}.mdi-chevron-up:before{content:"󰅃"}.mdi-chevron-up-box:before{content:"󰧜"}.mdi-chevron-up-box-outline:before{content:"󰧝"}.mdi-chevron-up-circle:before{content:"󰬬"}.mdi-chevron-up-circle-outline:before{content:"󰬭"}.mdi-chili-alert:before{content:"󱟪"}.mdi-chili-alert-outline:before{content:"󱟫"}.mdi-chili-hot:before{content:"󰞲"}.mdi-chili-hot-outline:before{content:"󱟬"}.mdi-chili-medium:before{content:"󰞳"}.mdi-chili-medium-outline:before{content:"󱟭"}.mdi-chili-mild:before{content:"󰞴"}.mdi-chili-mild-outline:before{content:"󱟮"}.mdi-chili-off:before{content:"󱑧"}.mdi-chili-off-outline:before{content:"󱟯"}.mdi-chip:before{content:"󰘚"}.mdi-church:before{content:"󰅄"}.mdi-church-outline:before{content:"󱬂"}.mdi-cigar:before{content:"󱆉"}.mdi-cigar-off:before{content:"󱐛"}.mdi-circle:before{content:"󰝥"}.mdi-circle-box:before{content:"󱗜"}.mdi-circle-box-outline:before{content:"󱗝"}.mdi-circle-double:before{content:"󰺕"}.mdi-circle-edit-outline:before{content:"󰣕"}.mdi-circle-expand:before{content:"󰺖"}.mdi-circle-half:before{content:"󱎕"}.mdi-circle-half-full:before{content:"󱎖"}.mdi-circle-medium:before{content:"󰧞"}.mdi-circle-multiple:before{content:"󰬸"}.mdi-circle-multiple-outline:before{content:"󰚕"}.mdi-circle-off-outline:before{content:"󱃓"}.mdi-circle-opacity:before{content:"󱡓"}.mdi-circle-outline:before{content:"󰝦"}.mdi-circle-slice-1:before{content:"󰪞"}.mdi-circle-slice-2:before{content:"󰪟"}.mdi-circle-slice-3:before{content:"󰪠"}.mdi-circle-slice-4:before{content:"󰪡"}.mdi-circle-slice-5:before{content:"󰪢"}.mdi-circle-slice-6:before{content:"󰪣"}.mdi-circle-slice-7:before{content:"󰪤"}.mdi-circle-slice-8:before{content:"󰪥"}.mdi-circle-small:before{content:"󰧟"}.mdi-circular-saw:before{content:"󰸢"}.mdi-city:before{content:"󰅆"}.mdi-city-switch:before{content:"󱰨"}.mdi-city-variant:before{content:"󰨶"}.mdi-city-variant-outline:before{content:"󰨷"}.mdi-clipboard:before{content:"󰅇"}.mdi-clipboard-account:before{content:"󰅈"}.mdi-clipboard-account-outline:before{content:"󰱕"}.mdi-clipboard-alert:before{content:"󰅉"}.mdi-clipboard-alert-outline:before{content:"󰳷"}.mdi-clipboard-arrow-down:before{content:"󰅊"}.mdi-clipboard-arrow-down-outline:before{content:"󰱖"}.mdi-clipboard-arrow-left:before{content:"󰅋"}.mdi-clipboard-arrow-left-outline:before{content:"󰳸"}.mdi-clipboard-arrow-right:before{content:"󰳹"}.mdi-clipboard-arrow-right-outline:before{content:"󰳺"}.mdi-clipboard-arrow-up:before{content:"󰱗"}.mdi-clipboard-arrow-up-outline:before{content:"󰱘"}.mdi-clipboard-check:before{content:"󰅎"}.mdi-clipboard-check-multiple:before{content:"󱉣"}.mdi-clipboard-check-multiple-outline:before{content:"󱉤"}.mdi-clipboard-check-outline:before{content:"󰢨"}.mdi-clipboard-clock:before{content:"󱛢"}.mdi-clipboard-clock-outline:before{content:"󱛣"}.mdi-clipboard-edit:before{content:"󱓥"}.mdi-clipboard-edit-outline:before{content:"󱓦"}.mdi-clipboard-file:before{content:"󱉥"}.mdi-clipboard-file-outline:before{content:"󱉦"}.mdi-clipboard-flow:before{content:"󰛈"}.mdi-clipboard-flow-outline:before{content:"󱄗"}.mdi-clipboard-list:before{content:"󱃔"}.mdi-clipboard-list-outline:before{content:"󱃕"}.mdi-clipboard-minus:before{content:"󱘘"}.mdi-clipboard-minus-outline:before{content:"󱘙"}.mdi-clipboard-multiple:before{content:"󱉧"}.mdi-clipboard-multiple-outline:before{content:"󱉨"}.mdi-clipboard-off:before{content:"󱘚"}.mdi-clipboard-off-outline:before{content:"󱘛"}.mdi-clipboard-outline:before{content:"󰅌"}.mdi-clipboard-play:before{content:"󰱙"}.mdi-clipboard-play-multiple:before{content:"󱉩"}.mdi-clipboard-play-multiple-outline:before{content:"󱉪"}.mdi-clipboard-play-outline:before{content:"󰱚"}.mdi-clipboard-plus:before{content:"󰝑"}.mdi-clipboard-plus-outline:before{content:"󱌟"}.mdi-clipboard-pulse:before{content:"󰡝"}.mdi-clipboard-pulse-outline:before{content:"󰡞"}.mdi-clipboard-remove:before{content:"󱘜"}.mdi-clipboard-remove-outline:before{content:"󱘝"}.mdi-clipboard-search:before{content:"󱘞"}.mdi-clipboard-search-outline:before{content:"󱘟"}.mdi-clipboard-text:before{content:"󰅍"}.mdi-clipboard-text-clock:before{content:"󱣹"}.mdi-clipboard-text-clock-outline:before{content:"󱣺"}.mdi-clipboard-text-multiple:before{content:"󱉫"}.mdi-clipboard-text-multiple-outline:before{content:"󱉬"}.mdi-clipboard-text-off:before{content:"󱘠"}.mdi-clipboard-text-off-outline:before{content:"󱘡"}.mdi-clipboard-text-outline:before{content:"󰨸"}.mdi-clipboard-text-play:before{content:"󰱛"}.mdi-clipboard-text-play-outline:before{content:"󰱜"}.mdi-clipboard-text-search:before{content:"󱘢"}.mdi-clipboard-text-search-outline:before{content:"󱘣"}.mdi-clippy:before{content:"󰅏"}.mdi-clock:before{content:"󰥔"}.mdi-clock-alert:before{content:"󰥕"}.mdi-clock-alert-outline:before{content:"󰗎"}.mdi-clock-check:before{content:"󰾨"}.mdi-clock-check-outline:before{content:"󰾩"}.mdi-clock-digital:before{content:"󰺗"}.mdi-clock-edit:before{content:"󱦺"}.mdi-clock-edit-outline:before{content:"󱦻"}.mdi-clock-end:before{content:"󰅑"}.mdi-clock-fast:before{content:"󰅒"}.mdi-clock-in:before{content:"󰅓"}.mdi-clock-minus:before{content:"󱡣"}.mdi-clock-minus-outline:before{content:"󱡤"}.mdi-clock-out:before{content:"󰅔"}.mdi-clock-outline:before{content:"󰅐"}.mdi-clock-plus:before{content:"󱡡"}.mdi-clock-plus-outline:before{content:"󱡢"}.mdi-clock-remove:before{content:"󱡥"}.mdi-clock-remove-outline:before{content:"󱡦"}.mdi-clock-star-four-points:before{content:"󱰩"}.mdi-clock-star-four-points-outline:before{content:"󱰪"}.mdi-clock-start:before{content:"󰅕"}.mdi-clock-time-eight:before{content:"󱑆"}.mdi-clock-time-eight-outline:before{content:"󱑒"}.mdi-clock-time-eleven:before{content:"󱑉"}.mdi-clock-time-eleven-outline:before{content:"󱑕"}.mdi-clock-time-five:before{content:"󱑃"}.mdi-clock-time-five-outline:before{content:"󱑏"}.mdi-clock-time-four:before{content:"󱑂"}.mdi-clock-time-four-outline:before{content:"󱑎"}.mdi-clock-time-nine:before{content:"󱑇"}.mdi-clock-time-nine-outline:before{content:"󱑓"}.mdi-clock-time-one:before{content:"󱐿"}.mdi-clock-time-one-outline:before{content:"󱑋"}.mdi-clock-time-seven:before{content:"󱑅"}.mdi-clock-time-seven-outline:before{content:"󱑑"}.mdi-clock-time-six:before{content:"󱑄"}.mdi-clock-time-six-outline:before{content:"󱑐"}.mdi-clock-time-ten:before{content:"󱑈"}.mdi-clock-time-ten-outline:before{content:"󱑔"}.mdi-clock-time-three:before{content:"󱑁"}.mdi-clock-time-three-outline:before{content:"󱑍"}.mdi-clock-time-twelve:before{content:"󱑊"}.mdi-clock-time-twelve-outline:before{content:"󱑖"}.mdi-clock-time-two:before{content:"󱑀"}.mdi-clock-time-two-outline:before{content:"󱑌"}.mdi-close:before{content:"󰅖"}.mdi-close-box:before{content:"󰅗"}.mdi-close-box-multiple:before{content:"󰱝"}.mdi-close-box-multiple-outline:before{content:"󰱞"}.mdi-close-box-outline:before{content:"󰅘"}.mdi-close-circle:before{content:"󰅙"}.mdi-close-circle-multiple:before{content:"󰘪"}.mdi-close-circle-multiple-outline:before{content:"󰢃"}.mdi-close-circle-outline:before{content:"󰅚"}.mdi-close-network:before{content:"󰅛"}.mdi-close-network-outline:before{content:"󰱟"}.mdi-close-octagon:before{content:"󰅜"}.mdi-close-octagon-outline:before{content:"󰅝"}.mdi-close-outline:before{content:"󰛉"}.mdi-close-thick:before{content:"󱎘"}.mdi-closed-caption:before{content:"󰅞"}.mdi-closed-caption-outline:before{content:"󰶽"}.mdi-cloud:before{content:"󰅟"}.mdi-cloud-alert:before{content:"󰧠"}.mdi-cloud-alert-outline:before{content:"󱯠"}.mdi-cloud-arrow-down:before{content:"󱯡"}.mdi-cloud-arrow-down-outline:before{content:"󱯢"}.mdi-cloud-arrow-left:before{content:"󱯣"}.mdi-cloud-arrow-left-outline:before{content:"󱯤"}.mdi-cloud-arrow-right:before{content:"󱯥"}.mdi-cloud-arrow-right-outline:before{content:"󱯦"}.mdi-cloud-arrow-up:before{content:"󱯧"}.mdi-cloud-arrow-up-outline:before{content:"󱯨"}.mdi-cloud-braces:before{content:"󰞵"}.mdi-cloud-cancel:before{content:"󱯩"}.mdi-cloud-cancel-outline:before{content:"󱯪"}.mdi-cloud-check:before{content:"󱯫"}.mdi-cloud-check-outline:before{content:"󱯬"}.mdi-cloud-check-variant:before{content:"󰅠"}.mdi-cloud-check-variant-outline:before{content:"󱋌"}.mdi-cloud-circle:before{content:"󰅡"}.mdi-cloud-circle-outline:before{content:"󱯭"}.mdi-cloud-clock:before{content:"󱯮"}.mdi-cloud-clock-outline:before{content:"󱯯"}.mdi-cloud-cog:before{content:"󱯰"}.mdi-cloud-cog-outline:before{content:"󱯱"}.mdi-cloud-download:before{content:"󰅢"}.mdi-cloud-download-outline:before{content:"󰭽"}.mdi-cloud-key:before{content:"󱲡"}.mdi-cloud-key-outline:before{content:"󱲢"}.mdi-cloud-lock:before{content:"󱇱"}.mdi-cloud-lock-open:before{content:"󱯲"}.mdi-cloud-lock-open-outline:before{content:"󱯳"}.mdi-cloud-lock-outline:before{content:"󱇲"}.mdi-cloud-minus:before{content:"󱯴"}.mdi-cloud-minus-outline:before{content:"󱯵"}.mdi-cloud-off:before{content:"󱯶"}.mdi-cloud-off-outline:before{content:"󰅤"}.mdi-cloud-outline:before{content:"󰅣"}.mdi-cloud-percent:before{content:"󱨵"}.mdi-cloud-percent-outline:before{content:"󱨶"}.mdi-cloud-plus:before{content:"󱯷"}.mdi-cloud-plus-outline:before{content:"󱯸"}.mdi-cloud-print:before{content:"󰅥"}.mdi-cloud-print-outline:before{content:"󰅦"}.mdi-cloud-question:before{content:"󰨹"}.mdi-cloud-question-outline:before{content:"󱯹"}.mdi-cloud-refresh:before{content:"󱯺"}.mdi-cloud-refresh-outline:before{content:"󱯻"}.mdi-cloud-refresh-variant:before{content:"󰔪"}.mdi-cloud-refresh-variant-outline:before{content:"󱯼"}.mdi-cloud-remove:before{content:"󱯽"}.mdi-cloud-remove-outline:before{content:"󱯾"}.mdi-cloud-search:before{content:"󰥖"}.mdi-cloud-search-outline:before{content:"󰥗"}.mdi-cloud-sync:before{content:"󰘿"}.mdi-cloud-sync-outline:before{content:"󱋖"}.mdi-cloud-tags:before{content:"󰞶"}.mdi-cloud-upload:before{content:"󰅧"}.mdi-cloud-upload-outline:before{content:"󰭾"}.mdi-clouds:before{content:"󱮕"}.mdi-clover:before{content:"󰠖"}.mdi-clover-outline:before{content:"󱱢"}.mdi-coach-lamp:before{content:"󱀠"}.mdi-coach-lamp-variant:before{content:"󱨷"}.mdi-coat-rack:before{content:"󱂞"}.mdi-code-array:before{content:"󰅨"}.mdi-code-block-braces:before{content:"󱲃"}.mdi-code-block-brackets:before{content:"󱲄"}.mdi-code-block-parentheses:before{content:"󱲅"}.mdi-code-block-tags:before{content:"󱲆"}.mdi-code-braces:before{content:"󰅩"}.mdi-code-braces-box:before{content:"󱃖"}.mdi-code-brackets:before{content:"󰅪"}.mdi-code-equal:before{content:"󰅫"}.mdi-code-greater-than:before{content:"󰅬"}.mdi-code-greater-than-or-equal:before{content:"󰅭"}.mdi-code-json:before{content:"󰘦"}.mdi-code-less-than:before{content:"󰅮"}.mdi-code-less-than-or-equal:before{content:"󰅯"}.mdi-code-not-equal:before{content:"󰅰"}.mdi-code-not-equal-variant:before{content:"󰅱"}.mdi-code-parentheses:before{content:"󰅲"}.mdi-code-parentheses-box:before{content:"󱃗"}.mdi-code-string:before{content:"󰅳"}.mdi-code-tags:before{content:"󰅴"}.mdi-code-tags-check:before{content:"󰚔"}.mdi-codepen:before{content:"󰅵"}.mdi-coffee:before{content:"󰅶"}.mdi-coffee-maker:before{content:"󱂟"}.mdi-coffee-maker-check:before{content:"󱤱"}.mdi-coffee-maker-check-outline:before{content:"󱤲"}.mdi-coffee-maker-outline:before{content:"󱠛"}.mdi-coffee-off:before{content:"󰾪"}.mdi-coffee-off-outline:before{content:"󰾫"}.mdi-coffee-outline:before{content:"󰛊"}.mdi-coffee-to-go:before{content:"󰅷"}.mdi-coffee-to-go-outline:before{content:"󱌎"}.mdi-coffin:before{content:"󰭿"}.mdi-cog:before{content:"󰒓"}.mdi-cog-box:before{content:"󰒔"}.mdi-cog-clockwise:before{content:"󱇝"}.mdi-cog-counterclockwise:before{content:"󱇞"}.mdi-cog-off:before{content:"󱏎"}.mdi-cog-off-outline:before{content:"󱏏"}.mdi-cog-outline:before{content:"󰢻"}.mdi-cog-pause:before{content:"󱤳"}.mdi-cog-pause-outline:before{content:"󱤴"}.mdi-cog-play:before{content:"󱤵"}.mdi-cog-play-outline:before{content:"󱤶"}.mdi-cog-refresh:before{content:"󱑞"}.mdi-cog-refresh-outline:before{content:"󱑟"}.mdi-cog-stop:before{content:"󱤷"}.mdi-cog-stop-outline:before{content:"󱤸"}.mdi-cog-sync:before{content:"󱑠"}.mdi-cog-sync-outline:before{content:"󱑡"}.mdi-cog-transfer:before{content:"󱁛"}.mdi-cog-transfer-outline:before{content:"󱁜"}.mdi-cogs:before{content:"󰣖"}.mdi-collage:before{content:"󰙀"}.mdi-collapse-all:before{content:"󰪦"}.mdi-collapse-all-outline:before{content:"󰪧"}.mdi-color-helper:before{content:"󰅹"}.mdi-comma:before{content:"󰸣"}.mdi-comma-box:before{content:"󰸫"}.mdi-comma-box-outline:before{content:"󰸤"}.mdi-comma-circle:before{content:"󰸥"}.mdi-comma-circle-outline:before{content:"󰸦"}.mdi-comment:before{content:"󰅺"}.mdi-comment-account:before{content:"󰅻"}.mdi-comment-account-outline:before{content:"󰅼"}.mdi-comment-alert:before{content:"󰅽"}.mdi-comment-alert-outline:before{content:"󰅾"}.mdi-comment-arrow-left:before{content:"󰧡"}.mdi-comment-arrow-left-outline:before{content:"󰧢"}.mdi-comment-arrow-right:before{content:"󰧣"}.mdi-comment-arrow-right-outline:before{content:"󰧤"}.mdi-comment-bookmark:before{content:"󱖮"}.mdi-comment-bookmark-outline:before{content:"󱖯"}.mdi-comment-check:before{content:"󰅿"}.mdi-comment-check-outline:before{content:"󰆀"}.mdi-comment-edit:before{content:"󱆿"}.mdi-comment-edit-outline:before{content:"󱋄"}.mdi-comment-eye:before{content:"󰨺"}.mdi-comment-eye-outline:before{content:"󰨻"}.mdi-comment-flash:before{content:"󱖰"}.mdi-comment-flash-outline:before{content:"󱖱"}.mdi-comment-minus:before{content:"󱗟"}.mdi-comment-minus-outline:before{content:"󱗠"}.mdi-comment-multiple:before{content:"󰡟"}.mdi-comment-multiple-outline:before{content:"󰆁"}.mdi-comment-off:before{content:"󱗡"}.mdi-comment-off-outline:before{content:"󱗢"}.mdi-comment-outline:before{content:"󰆂"}.mdi-comment-plus:before{content:"󰧥"}.mdi-comment-plus-outline:before{content:"󰆃"}.mdi-comment-processing:before{content:"󰆄"}.mdi-comment-processing-outline:before{content:"󰆅"}.mdi-comment-question:before{content:"󰠗"}.mdi-comment-question-outline:before{content:"󰆆"}.mdi-comment-quote:before{content:"󱀡"}.mdi-comment-quote-outline:before{content:"󱀢"}.mdi-comment-remove:before{content:"󰗞"}.mdi-comment-remove-outline:before{content:"󰆇"}.mdi-comment-search:before{content:"󰨼"}.mdi-comment-search-outline:before{content:"󰨽"}.mdi-comment-text:before{content:"󰆈"}.mdi-comment-text-multiple:before{content:"󰡠"}.mdi-comment-text-multiple-outline:before{content:"󰡡"}.mdi-comment-text-outline:before{content:"󰆉"}.mdi-compare:before{content:"󰆊"}.mdi-compare-horizontal:before{content:"󱒒"}.mdi-compare-remove:before{content:"󱢳"}.mdi-compare-vertical:before{content:"󱒓"}.mdi-compass:before{content:"󰆋"}.mdi-compass-off:before{content:"󰮀"}.mdi-compass-off-outline:before{content:"󰮁"}.mdi-compass-outline:before{content:"󰆌"}.mdi-compass-rose:before{content:"󱎂"}.mdi-compost:before{content:"󱨸"}.mdi-cone:before{content:"󱥌"}.mdi-cone-off:before{content:"󱥍"}.mdi-connection:before{content:"󱘖"}.mdi-console:before{content:"󰆍"}.mdi-console-line:before{content:"󰞷"}.mdi-console-network:before{content:"󰢩"}.mdi-console-network-outline:before{content:"󰱠"}.mdi-consolidate:before{content:"󱃘"}.mdi-contactless-payment:before{content:"󰵪"}.mdi-contactless-payment-circle:before{content:"󰌡"}.mdi-contactless-payment-circle-outline:before{content:"󰐈"}.mdi-contacts:before{content:"󰛋"}.mdi-contacts-outline:before{content:"󰖸"}.mdi-contain:before{content:"󰨾"}.mdi-contain-end:before{content:"󰨿"}.mdi-contain-start:before{content:"󰩀"}.mdi-content-copy:before{content:"󰆏"}.mdi-content-cut:before{content:"󰆐"}.mdi-content-duplicate:before{content:"󰆑"}.mdi-content-paste:before{content:"󰆒"}.mdi-content-save:before{content:"󰆓"}.mdi-content-save-alert:before{content:"󰽂"}.mdi-content-save-alert-outline:before{content:"󰽃"}.mdi-content-save-all:before{content:"󰆔"}.mdi-content-save-all-outline:before{content:"󰽄"}.mdi-content-save-check:before{content:"󱣪"}.mdi-content-save-check-outline:before{content:"󱣫"}.mdi-content-save-cog:before{content:"󱑛"}.mdi-content-save-cog-outline:before{content:"󱑜"}.mdi-content-save-edit:before{content:"󰳻"}.mdi-content-save-edit-outline:before{content:"󰳼"}.mdi-content-save-minus:before{content:"󱭃"}.mdi-content-save-minus-outline:before{content:"󱭄"}.mdi-content-save-move:before{content:"󰸧"}.mdi-content-save-move-outline:before{content:"󰸨"}.mdi-content-save-off:before{content:"󱙃"}.mdi-content-save-off-outline:before{content:"󱙄"}.mdi-content-save-outline:before{content:"󰠘"}.mdi-content-save-plus:before{content:"󱭁"}.mdi-content-save-plus-outline:before{content:"󱭂"}.mdi-content-save-settings:before{content:"󰘛"}.mdi-content-save-settings-outline:before{content:"󰬮"}.mdi-contrast:before{content:"󰆕"}.mdi-contrast-box:before{content:"󰆖"}.mdi-contrast-circle:before{content:"󰆗"}.mdi-controller:before{content:"󰊴"}.mdi-controller-classic:before{content:"󰮂"}.mdi-controller-classic-outline:before{content:"󰮃"}.mdi-controller-off:before{content:"󰊵"}.mdi-cookie:before{content:"󰆘"}.mdi-cookie-alert:before{content:"󱛐"}.mdi-cookie-alert-outline:before{content:"󱛑"}.mdi-cookie-check:before{content:"󱛒"}.mdi-cookie-check-outline:before{content:"󱛓"}.mdi-cookie-clock:before{content:"󱛤"}.mdi-cookie-clock-outline:before{content:"󱛥"}.mdi-cookie-cog:before{content:"󱛔"}.mdi-cookie-cog-outline:before{content:"󱛕"}.mdi-cookie-edit:before{content:"󱛦"}.mdi-cookie-edit-outline:before{content:"󱛧"}.mdi-cookie-lock:before{content:"󱛨"}.mdi-cookie-lock-outline:before{content:"󱛩"}.mdi-cookie-minus:before{content:"󱛚"}.mdi-cookie-minus-outline:before{content:"󱛛"}.mdi-cookie-off:before{content:"󱛪"}.mdi-cookie-off-outline:before{content:"󱛫"}.mdi-cookie-outline:before{content:"󱛞"}.mdi-cookie-plus:before{content:"󱛖"}.mdi-cookie-plus-outline:before{content:"󱛗"}.mdi-cookie-refresh:before{content:"󱛬"}.mdi-cookie-refresh-outline:before{content:"󱛭"}.mdi-cookie-remove:before{content:"󱛘"}.mdi-cookie-remove-outline:before{content:"󱛙"}.mdi-cookie-settings:before{content:"󱛜"}.mdi-cookie-settings-outline:before{content:"󱛝"}.mdi-coolant-temperature:before{content:"󰏈"}.mdi-copyleft:before{content:"󱤹"}.mdi-copyright:before{content:"󰗦"}.mdi-cordova:before{content:"󰥘"}.mdi-corn:before{content:"󰞸"}.mdi-corn-off:before{content:"󱏯"}.mdi-cosine-wave:before{content:"󱑹"}.mdi-counter:before{content:"󰆙"}.mdi-countertop:before{content:"󱠜"}.mdi-countertop-outline:before{content:"󱠝"}.mdi-cow:before{content:"󰆚"}.mdi-cow-off:before{content:"󱣼"}.mdi-cpu-32-bit:before{content:"󰻟"}.mdi-cpu-64-bit:before{content:"󰻠"}.mdi-cradle:before{content:"󱦋"}.mdi-cradle-outline:before{content:"󱦑"}.mdi-crane:before{content:"󰡢"}.mdi-creation:before{content:"󰙴"}.mdi-creation-outline:before{content:"󱰫"}.mdi-creative-commons:before{content:"󰵫"}.mdi-credit-card:before{content:"󰿯"}.mdi-credit-card-check:before{content:"󱏐"}.mdi-credit-card-check-outline:before{content:"󱏑"}.mdi-credit-card-chip:before{content:"󱤏"}.mdi-credit-card-chip-outline:before{content:"󱤐"}.mdi-credit-card-clock:before{content:"󰻡"}.mdi-credit-card-clock-outline:before{content:"󰻢"}.mdi-credit-card-edit:before{content:"󱟗"}.mdi-credit-card-edit-outline:before{content:"󱟘"}.mdi-credit-card-fast:before{content:"󱤑"}.mdi-credit-card-fast-outline:before{content:"󱤒"}.mdi-credit-card-lock:before{content:"󱣧"}.mdi-credit-card-lock-outline:before{content:"󱣨"}.mdi-credit-card-marker:before{content:"󰚨"}.mdi-credit-card-marker-outline:before{content:"󰶾"}.mdi-credit-card-minus:before{content:"󰾬"}.mdi-credit-card-minus-outline:before{content:"󰾭"}.mdi-credit-card-multiple:before{content:"󰿰"}.mdi-credit-card-multiple-outline:before{content:"󰆜"}.mdi-credit-card-off:before{content:"󰿱"}.mdi-credit-card-off-outline:before{content:"󰗤"}.mdi-credit-card-outline:before{content:"󰆛"}.mdi-credit-card-plus:before{content:"󰿲"}.mdi-credit-card-plus-outline:before{content:"󰙶"}.mdi-credit-card-refresh:before{content:"󱙅"}.mdi-credit-card-refresh-outline:before{content:"󱙆"}.mdi-credit-card-refund:before{content:"󰿳"}.mdi-credit-card-refund-outline:before{content:"󰪨"}.mdi-credit-card-remove:before{content:"󰾮"}.mdi-credit-card-remove-outline:before{content:"󰾯"}.mdi-credit-card-scan:before{content:"󰿴"}.mdi-credit-card-scan-outline:before{content:"󰆝"}.mdi-credit-card-search:before{content:"󱙇"}.mdi-credit-card-search-outline:before{content:"󱙈"}.mdi-credit-card-settings:before{content:"󰿵"}.mdi-credit-card-settings-outline:before{content:"󰣗"}.mdi-credit-card-sync:before{content:"󱙉"}.mdi-credit-card-sync-outline:before{content:"󱙊"}.mdi-credit-card-wireless:before{content:"󰠂"}.mdi-credit-card-wireless-off:before{content:"󰕺"}.mdi-credit-card-wireless-off-outline:before{content:"󰕻"}.mdi-credit-card-wireless-outline:before{content:"󰵬"}.mdi-cricket:before{content:"󰵭"}.mdi-crop:before{content:"󰆞"}.mdi-crop-free:before{content:"󰆟"}.mdi-crop-landscape:before{content:"󰆠"}.mdi-crop-portrait:before{content:"󰆡"}.mdi-crop-rotate:before{content:"󰚖"}.mdi-crop-square:before{content:"󰆢"}.mdi-cross:before{content:"󰥓"}.mdi-cross-bolnisi:before{content:"󰳭"}.mdi-cross-celtic:before{content:"󰳵"}.mdi-cross-outline:before{content:"󰳶"}.mdi-crosshairs:before{content:"󰆣"}.mdi-crosshairs-gps:before{content:"󰆤"}.mdi-crosshairs-off:before{content:"󰽅"}.mdi-crosshairs-question:before{content:"󱄶"}.mdi-crowd:before{content:"󱥵"}.mdi-crown:before{content:"󰆥"}.mdi-crown-circle:before{content:"󱟜"}.mdi-crown-circle-outline:before{content:"󱟝"}.mdi-crown-outline:before{content:"󱇐"}.mdi-cryengine:before{content:"󰥙"}.mdi-crystal-ball:before{content:"󰬯"}.mdi-cube:before{content:"󰆦"}.mdi-cube-off:before{content:"󱐜"}.mdi-cube-off-outline:before{content:"󱐝"}.mdi-cube-outline:before{content:"󰆧"}.mdi-cube-scan:before{content:"󰮄"}.mdi-cube-send:before{content:"󰆨"}.mdi-cube-unfolded:before{content:"󰆩"}.mdi-cup:before{content:"󰆪"}.mdi-cup-off:before{content:"󰗥"}.mdi-cup-off-outline:before{content:"󱍽"}.mdi-cup-outline:before{content:"󱌏"}.mdi-cup-water:before{content:"󰆫"}.mdi-cupboard:before{content:"󰽆"}.mdi-cupboard-outline:before{content:"󰽇"}.mdi-cupcake:before{content:"󰥚"}.mdi-curling:before{content:"󰡣"}.mdi-currency-bdt:before{content:"󰡤"}.mdi-currency-brl:before{content:"󰮅"}.mdi-currency-btc:before{content:"󰆬"}.mdi-currency-cny:before{content:"󰞺"}.mdi-currency-eth:before{content:"󰞻"}.mdi-currency-eur:before{content:"󰆭"}.mdi-currency-eur-off:before{content:"󱌕"}.mdi-currency-fra:before{content:"󱨹"}.mdi-currency-gbp:before{content:"󰆮"}.mdi-currency-ils:before{content:"󰱡"}.mdi-currency-inr:before{content:"󰆯"}.mdi-currency-jpy:before{content:"󰞼"}.mdi-currency-krw:before{content:"󰞽"}.mdi-currency-kzt:before{content:"󰡥"}.mdi-currency-mnt:before{content:"󱔒"}.mdi-currency-ngn:before{content:"󰆰"}.mdi-currency-php:before{content:"󰧦"}.mdi-currency-rial:before{content:"󰺜"}.mdi-currency-rub:before{content:"󰆱"}.mdi-currency-rupee:before{content:"󱥶"}.mdi-currency-sign:before{content:"󰞾"}.mdi-currency-thb:before{content:"󱰅"}.mdi-currency-try:before{content:"󰆲"}.mdi-currency-twd:before{content:"󰞿"}.mdi-currency-uah:before{content:"󱮛"}.mdi-currency-usd:before{content:"󰇁"}.mdi-currency-usd-off:before{content:"󰙺"}.mdi-current-ac:before{content:"󱒀"}.mdi-current-dc:before{content:"󰥜"}.mdi-cursor-default:before{content:"󰇀"}.mdi-cursor-default-click:before{content:"󰳽"}.mdi-cursor-default-click-outline:before{content:"󰳾"}.mdi-cursor-default-gesture:before{content:"󱄧"}.mdi-cursor-default-gesture-outline:before{content:"󱄨"}.mdi-cursor-default-outline:before{content:"󰆿"}.mdi-cursor-move:before{content:"󰆾"}.mdi-cursor-pointer:before{content:"󰆽"}.mdi-cursor-text:before{content:"󰗧"}.mdi-curtains:before{content:"󱡆"}.mdi-curtains-closed:before{content:"󱡇"}.mdi-cylinder:before{content:"󱥎"}.mdi-cylinder-off:before{content:"󱥏"}.mdi-dance-ballroom:before{content:"󱗻"}.mdi-dance-pole:before{content:"󱕸"}.mdi-data-matrix:before{content:"󱔼"}.mdi-data-matrix-edit:before{content:"󱔽"}.mdi-data-matrix-minus:before{content:"󱔾"}.mdi-data-matrix-plus:before{content:"󱔿"}.mdi-data-matrix-remove:before{content:"󱕀"}.mdi-data-matrix-scan:before{content:"󱕁"}.mdi-database:before{content:"󰆼"}.mdi-database-alert:before{content:"󱘺"}.mdi-database-alert-outline:before{content:"󱘤"}.mdi-database-arrow-down:before{content:"󱘻"}.mdi-database-arrow-down-outline:before{content:"󱘥"}.mdi-database-arrow-left:before{content:"󱘼"}.mdi-database-arrow-left-outline:before{content:"󱘦"}.mdi-database-arrow-right:before{content:"󱘽"}.mdi-database-arrow-right-outline:before{content:"󱘧"}.mdi-database-arrow-up:before{content:"󱘾"}.mdi-database-arrow-up-outline:before{content:"󱘨"}.mdi-database-check:before{content:"󰪩"}.mdi-database-check-outline:before{content:"󱘩"}.mdi-database-clock:before{content:"󱘿"}.mdi-database-clock-outline:before{content:"󱘪"}.mdi-database-cog:before{content:"󱙋"}.mdi-database-cog-outline:before{content:"󱙌"}.mdi-database-edit:before{content:"󰮆"}.mdi-database-edit-outline:before{content:"󱘫"}.mdi-database-export:before{content:"󰥞"}.mdi-database-export-outline:before{content:"󱘬"}.mdi-database-eye:before{content:"󱤟"}.mdi-database-eye-off:before{content:"󱤠"}.mdi-database-eye-off-outline:before{content:"󱤡"}.mdi-database-eye-outline:before{content:"󱤢"}.mdi-database-import:before{content:"󰥝"}.mdi-database-import-outline:before{content:"󱘭"}.mdi-database-lock:before{content:"󰪪"}.mdi-database-lock-outline:before{content:"󱘮"}.mdi-database-marker:before{content:"󱋶"}.mdi-database-marker-outline:before{content:"󱘯"}.mdi-database-minus:before{content:"󰆻"}.mdi-database-minus-outline:before{content:"󱘰"}.mdi-database-off:before{content:"󱙀"}.mdi-database-off-outline:before{content:"󱘱"}.mdi-database-outline:before{content:"󱘲"}.mdi-database-plus:before{content:"󰆺"}.mdi-database-plus-outline:before{content:"󱘳"}.mdi-database-refresh:before{content:"󰗂"}.mdi-database-refresh-outline:before{content:"󱘴"}.mdi-database-remove:before{content:"󰴀"}.mdi-database-remove-outline:before{content:"󱘵"}.mdi-database-search:before{content:"󰡦"}.mdi-database-search-outline:before{content:"󱘶"}.mdi-database-settings:before{content:"󰴁"}.mdi-database-settings-outline:before{content:"󱘷"}.mdi-database-sync:before{content:"󰳿"}.mdi-database-sync-outline:before{content:"󱘸"}.mdi-death-star:before{content:"󰣘"}.mdi-death-star-variant:before{content:"󰣙"}.mdi-deathly-hallows:before{content:"󰮇"}.mdi-debian:before{content:"󰣚"}.mdi-debug-step-into:before{content:"󰆹"}.mdi-debug-step-out:before{content:"󰆸"}.mdi-debug-step-over:before{content:"󰆷"}.mdi-decagram:before{content:"󰝬"}.mdi-decagram-outline:before{content:"󰝭"}.mdi-decimal:before{content:"󱂡"}.mdi-decimal-comma:before{content:"󱂢"}.mdi-decimal-comma-decrease:before{content:"󱂣"}.mdi-decimal-comma-increase:before{content:"󱂤"}.mdi-decimal-decrease:before{content:"󰆶"}.mdi-decimal-increase:before{content:"󰆵"}.mdi-delete:before{content:"󰆴"}.mdi-delete-alert:before{content:"󱂥"}.mdi-delete-alert-outline:before{content:"󱂦"}.mdi-delete-circle:before{content:"󰚃"}.mdi-delete-circle-outline:before{content:"󰮈"}.mdi-delete-clock:before{content:"󱕖"}.mdi-delete-clock-outline:before{content:"󱕗"}.mdi-delete-empty:before{content:"󰛌"}.mdi-delete-empty-outline:before{content:"󰺝"}.mdi-delete-forever:before{content:"󰗨"}.mdi-delete-forever-outline:before{content:"󰮉"}.mdi-delete-off:before{content:"󱂧"}.mdi-delete-off-outline:before{content:"󱂨"}.mdi-delete-outline:before{content:"󰧧"}.mdi-delete-restore:before{content:"󰠙"}.mdi-delete-sweep:before{content:"󰗩"}.mdi-delete-sweep-outline:before{content:"󰱢"}.mdi-delete-variant:before{content:"󰆳"}.mdi-delta:before{content:"󰇂"}.mdi-desk:before{content:"󱈹"}.mdi-desk-lamp:before{content:"󰥟"}.mdi-desk-lamp-off:before{content:"󱬟"}.mdi-desk-lamp-on:before{content:"󱬠"}.mdi-deskphone:before{content:"󰇃"}.mdi-desktop-classic:before{content:"󰟀"}.mdi-desktop-tower:before{content:"󰇅"}.mdi-desktop-tower-monitor:before{content:"󰪫"}.mdi-details:before{content:"󰇆"}.mdi-dev-to:before{content:"󰵮"}.mdi-developer-board:before{content:"󰚗"}.mdi-deviantart:before{content:"󰇇"}.mdi-devices:before{content:"󰾰"}.mdi-dharmachakra:before{content:"󰥋"}.mdi-diabetes:before{content:"󱄦"}.mdi-dialpad:before{content:"󰘜"}.mdi-diameter:before{content:"󰱣"}.mdi-diameter-outline:before{content:"󰱤"}.mdi-diameter-variant:before{content:"󰱥"}.mdi-diamond:before{content:"󰮊"}.mdi-diamond-outline:before{content:"󰮋"}.mdi-diamond-stone:before{content:"󰇈"}.mdi-dice-1:before{content:"󰇊"}.mdi-dice-1-outline:before{content:"󱅊"}.mdi-dice-2:before{content:"󰇋"}.mdi-dice-2-outline:before{content:"󱅋"}.mdi-dice-3:before{content:"󰇌"}.mdi-dice-3-outline:before{content:"󱅌"}.mdi-dice-4:before{content:"󰇍"}.mdi-dice-4-outline:before{content:"󱅍"}.mdi-dice-5:before{content:"󰇎"}.mdi-dice-5-outline:before{content:"󱅎"}.mdi-dice-6:before{content:"󰇏"}.mdi-dice-6-outline:before{content:"󱅏"}.mdi-dice-d10:before{content:"󱅓"}.mdi-dice-d10-outline:before{content:"󰝯"}.mdi-dice-d12:before{content:"󱅔"}.mdi-dice-d12-outline:before{content:"󰡧"}.mdi-dice-d20:before{content:"󱅕"}.mdi-dice-d20-outline:before{content:"󰗪"}.mdi-dice-d4:before{content:"󱅐"}.mdi-dice-d4-outline:before{content:"󰗫"}.mdi-dice-d6:before{content:"󱅑"}.mdi-dice-d6-outline:before{content:"󰗭"}.mdi-dice-d8:before{content:"󱅒"}.mdi-dice-d8-outline:before{content:"󰗬"}.mdi-dice-multiple:before{content:"󰝮"}.mdi-dice-multiple-outline:before{content:"󱅖"}.mdi-digital-ocean:before{content:"󱈷"}.mdi-dip-switch:before{content:"󰟁"}.mdi-directions:before{content:"󰇐"}.mdi-directions-fork:before{content:"󰙁"}.mdi-disc:before{content:"󰗮"}.mdi-disc-alert:before{content:"󰇑"}.mdi-disc-player:before{content:"󰥠"}.mdi-dishwasher:before{content:"󰪬"}.mdi-dishwasher-alert:before{content:"󱆸"}.mdi-dishwasher-off:before{content:"󱆹"}.mdi-disqus:before{content:"󰇒"}.mdi-distribute-horizontal-center:before{content:"󱇉"}.mdi-distribute-horizontal-left:before{content:"󱇈"}.mdi-distribute-horizontal-right:before{content:"󱇊"}.mdi-distribute-vertical-bottom:before{content:"󱇋"}.mdi-distribute-vertical-center:before{content:"󱇌"}.mdi-distribute-vertical-top:before{content:"󱇍"}.mdi-diversify:before{content:"󱡷"}.mdi-diving:before{content:"󱥷"}.mdi-diving-flippers:before{content:"󰶿"}.mdi-diving-helmet:before{content:"󰷀"}.mdi-diving-scuba:before{content:"󱭷"}.mdi-diving-scuba-flag:before{content:"󰷂"}.mdi-diving-scuba-mask:before{content:"󰷁"}.mdi-diving-scuba-tank:before{content:"󰷃"}.mdi-diving-scuba-tank-multiple:before{content:"󰷄"}.mdi-diving-snorkel:before{content:"󰷅"}.mdi-division:before{content:"󰇔"}.mdi-division-box:before{content:"󰇕"}.mdi-dlna:before{content:"󰩁"}.mdi-dna:before{content:"󰚄"}.mdi-dns:before{content:"󰇖"}.mdi-dns-outline:before{content:"󰮌"}.mdi-dock-bottom:before{content:"󱂩"}.mdi-dock-left:before{content:"󱂪"}.mdi-dock-right:before{content:"󱂫"}.mdi-dock-top:before{content:"󱔓"}.mdi-dock-window:before{content:"󱂬"}.mdi-docker:before{content:"󰡨"}.mdi-doctor:before{content:"󰩂"}.mdi-dog:before{content:"󰩃"}.mdi-dog-service:before{content:"󰪭"}.mdi-dog-side:before{content:"󰩄"}.mdi-dog-side-off:before{content:"󱛮"}.mdi-dolby:before{content:"󰚳"}.mdi-dolly:before{content:"󰺞"}.mdi-dolphin:before{content:"󱢴"}.mdi-domain:before{content:"󰇗"}.mdi-domain-off:before{content:"󰵯"}.mdi-domain-plus:before{content:"󱂭"}.mdi-domain-remove:before{content:"󱂮"}.mdi-domain-switch:before{content:"󱰬"}.mdi-dome-light:before{content:"󱐞"}.mdi-domino-mask:before{content:"󱀣"}.mdi-donkey:before{content:"󰟂"}.mdi-door:before{content:"󰠚"}.mdi-door-closed:before{content:"󰠛"}.mdi-door-closed-cancel:before{content:"󱲓"}.mdi-door-closed-lock:before{content:"󱂯"}.mdi-door-open:before{content:"󰠜"}.mdi-door-sliding:before{content:"󱠞"}.mdi-door-sliding-lock:before{content:"󱠟"}.mdi-door-sliding-open:before{content:"󱠠"}.mdi-doorbell:before{content:"󱋦"}.mdi-doorbell-video:before{content:"󰡩"}.mdi-dot-net:before{content:"󰪮"}.mdi-dots-circle:before{content:"󱥸"}.mdi-dots-grid:before{content:"󱗼"}.mdi-dots-hexagon:before{content:"󱗿"}.mdi-dots-horizontal:before{content:"󰇘"}.mdi-dots-horizontal-circle:before{content:"󰟃"}.mdi-dots-horizontal-circle-outline:before{content:"󰮍"}.mdi-dots-square:before{content:"󱗽"}.mdi-dots-triangle:before{content:"󱗾"}.mdi-dots-vertical:before{content:"󰇙"}.mdi-dots-vertical-circle:before{content:"󰟄"}.mdi-dots-vertical-circle-outline:before{content:"󰮎"}.mdi-download:before{content:"󰇚"}.mdi-download-box:before{content:"󱑢"}.mdi-download-box-outline:before{content:"󱑣"}.mdi-download-circle:before{content:"󱑤"}.mdi-download-circle-outline:before{content:"󱑥"}.mdi-download-lock:before{content:"󱌠"}.mdi-download-lock-outline:before{content:"󱌡"}.mdi-download-multiple:before{content:"󰧩"}.mdi-download-network:before{content:"󰛴"}.mdi-download-network-outline:before{content:"󰱦"}.mdi-download-off:before{content:"󱂰"}.mdi-download-off-outline:before{content:"󱂱"}.mdi-download-outline:before{content:"󰮏"}.mdi-drag:before{content:"󰇛"}.mdi-drag-horizontal:before{content:"󰇜"}.mdi-drag-horizontal-variant:before{content:"󱋰"}.mdi-drag-variant:before{content:"󰮐"}.mdi-drag-vertical:before{content:"󰇝"}.mdi-drag-vertical-variant:before{content:"󱋱"}.mdi-drama-masks:before{content:"󰴂"}.mdi-draw:before{content:"󰽉"}.mdi-draw-pen:before{content:"󱦹"}.mdi-drawing:before{content:"󰇞"}.mdi-drawing-box:before{content:"󰇟"}.mdi-dresser:before{content:"󰽊"}.mdi-dresser-outline:before{content:"󰽋"}.mdi-drone:before{content:"󰇢"}.mdi-dropbox:before{content:"󰇣"}.mdi-drupal:before{content:"󰇤"}.mdi-duck:before{content:"󰇥"}.mdi-dumbbell:before{content:"󰇦"}.mdi-dump-truck:before{content:"󰱧"}.mdi-ear-hearing:before{content:"󰟅"}.mdi-ear-hearing-loop:before{content:"󱫮"}.mdi-ear-hearing-off:before{content:"󰩅"}.mdi-earbuds:before{content:"󱡏"}.mdi-earbuds-off:before{content:"󱡐"}.mdi-earbuds-off-outline:before{content:"󱡑"}.mdi-earbuds-outline:before{content:"󱡒"}.mdi-earth:before{content:"󰇧"}.mdi-earth-arrow-down:before{content:"󱲇"}.mdi-earth-arrow-left:before{content:"󱲈"}.mdi-earth-arrow-right:before{content:"󱌑"}.mdi-earth-arrow-up:before{content:"󱲉"}.mdi-earth-box:before{content:"󰛍"}.mdi-earth-box-minus:before{content:"󱐇"}.mdi-earth-box-off:before{content:"󰛎"}.mdi-earth-box-plus:before{content:"󱐆"}.mdi-earth-box-remove:before{content:"󱐈"}.mdi-earth-minus:before{content:"󱐄"}.mdi-earth-off:before{content:"󰇨"}.mdi-earth-plus:before{content:"󱐃"}.mdi-earth-remove:before{content:"󱐅"}.mdi-egg:before{content:"󰪯"}.mdi-egg-easter:before{content:"󰪰"}.mdi-egg-fried:before{content:"󱡊"}.mdi-egg-off:before{content:"󱏰"}.mdi-egg-off-outline:before{content:"󱏱"}.mdi-egg-outline:before{content:"󱏲"}.mdi-eiffel-tower:before{content:"󱕫"}.mdi-eight-track:before{content:"󰧪"}.mdi-eject:before{content:"󰇪"}.mdi-eject-circle:before{content:"󱬣"}.mdi-eject-circle-outline:before{content:"󱬤"}.mdi-eject-outline:before{content:"󰮑"}.mdi-electric-switch:before{content:"󰺟"}.mdi-electric-switch-closed:before{content:"󱃙"}.mdi-electron-framework:before{content:"󱀤"}.mdi-elephant:before{content:"󰟆"}.mdi-elevation-decline:before{content:"󰇫"}.mdi-elevation-rise:before{content:"󰇬"}.mdi-elevator:before{content:"󰇭"}.mdi-elevator-down:before{content:"󱋂"}.mdi-elevator-passenger:before{content:"󱎁"}.mdi-elevator-passenger-off:before{content:"󱥹"}.mdi-elevator-passenger-off-outline:before{content:"󱥺"}.mdi-elevator-passenger-outline:before{content:"󱥻"}.mdi-elevator-up:before{content:"󱋁"}.mdi-ellipse:before{content:"󰺠"}.mdi-ellipse-outline:before{content:"󰺡"}.mdi-email:before{content:"󰇮"}.mdi-email-alert:before{content:"󰛏"}.mdi-email-alert-outline:before{content:"󰵂"}.mdi-email-arrow-left:before{content:"󱃚"}.mdi-email-arrow-left-outline:before{content:"󱃛"}.mdi-email-arrow-right:before{content:"󱃜"}.mdi-email-arrow-right-outline:before{content:"󱃝"}.mdi-email-box:before{content:"󰴃"}.mdi-email-check:before{content:"󰪱"}.mdi-email-check-outline:before{content:"󰪲"}.mdi-email-edit:before{content:"󰻣"}.mdi-email-edit-outline:before{content:"󰻤"}.mdi-email-fast:before{content:"󱡯"}.mdi-email-fast-outline:before{content:"󱡰"}.mdi-email-heart-outline:before{content:"󱱛"}.mdi-email-lock:before{content:"󰇱"}.mdi-email-lock-outline:before{content:"󱭡"}.mdi-email-mark-as-unread:before{content:"󰮒"}.mdi-email-minus:before{content:"󰻥"}.mdi-email-minus-outline:before{content:"󰻦"}.mdi-email-multiple:before{content:"󰻧"}.mdi-email-multiple-outline:before{content:"󰻨"}.mdi-email-newsletter:before{content:"󰾱"}.mdi-email-off:before{content:"󱏣"}.mdi-email-off-outline:before{content:"󱏤"}.mdi-email-open:before{content:"󰇯"}.mdi-email-open-heart-outline:before{content:"󱱜"}.mdi-email-open-multiple:before{content:"󰻩"}.mdi-email-open-multiple-outline:before{content:"󰻪"}.mdi-email-open-outline:before{content:"󰗯"}.mdi-email-outline:before{content:"󰇰"}.mdi-email-plus:before{content:"󰧫"}.mdi-email-plus-outline:before{content:"󰧬"}.mdi-email-remove:before{content:"󱙡"}.mdi-email-remove-outline:before{content:"󱙢"}.mdi-email-seal:before{content:"󱥛"}.mdi-email-seal-outline:before{content:"󱥜"}.mdi-email-search:before{content:"󰥡"}.mdi-email-search-outline:before{content:"󰥢"}.mdi-email-sync:before{content:"󱋇"}.mdi-email-sync-outline:before{content:"󱋈"}.mdi-email-variant:before{content:"󰗰"}.mdi-ember:before{content:"󰬰"}.mdi-emby:before{content:"󰚴"}.mdi-emoticon:before{content:"󰱨"}.mdi-emoticon-angry:before{content:"󰱩"}.mdi-emoticon-angry-outline:before{content:"󰱪"}.mdi-emoticon-confused:before{content:"󱃞"}.mdi-emoticon-confused-outline:before{content:"󱃟"}.mdi-emoticon-cool:before{content:"󰱫"}.mdi-emoticon-cool-outline:before{content:"󰇳"}.mdi-emoticon-cry:before{content:"󰱬"}.mdi-emoticon-cry-outline:before{content:"󰱭"}.mdi-emoticon-dead:before{content:"󰱮"}.mdi-emoticon-dead-outline:before{content:"󰚛"}.mdi-emoticon-devil:before{content:"󰱯"}.mdi-emoticon-devil-outline:before{content:"󰇴"}.mdi-emoticon-excited:before{content:"󰱰"}.mdi-emoticon-excited-outline:before{content:"󰚜"}.mdi-emoticon-frown:before{content:"󰽌"}.mdi-emoticon-frown-outline:before{content:"󰽍"}.mdi-emoticon-happy:before{content:"󰱱"}.mdi-emoticon-happy-outline:before{content:"󰇵"}.mdi-emoticon-kiss:before{content:"󰱲"}.mdi-emoticon-kiss-outline:before{content:"󰱳"}.mdi-emoticon-lol:before{content:"󱈔"}.mdi-emoticon-lol-outline:before{content:"󱈕"}.mdi-emoticon-minus:before{content:"󱲲"}.mdi-emoticon-minus-outline:before{content:"󱲳"}.mdi-emoticon-neutral:before{content:"󰱴"}.mdi-emoticon-neutral-outline:before{content:"󰇶"}.mdi-emoticon-outline:before{content:"󰇲"}.mdi-emoticon-plus:before{content:"󱲴"}.mdi-emoticon-plus-outline:before{content:"󱲵"}.mdi-emoticon-poop:before{content:"󰇷"}.mdi-emoticon-poop-outline:before{content:"󰱵"}.mdi-emoticon-remove:before{content:"󱲶"}.mdi-emoticon-remove-outline:before{content:"󱲷"}.mdi-emoticon-sad:before{content:"󰱶"}.mdi-emoticon-sad-outline:before{content:"󰇸"}.mdi-emoticon-sick:before{content:"󱕼"}.mdi-emoticon-sick-outline:before{content:"󱕽"}.mdi-emoticon-tongue:before{content:"󰇹"}.mdi-emoticon-tongue-outline:before{content:"󰱷"}.mdi-emoticon-wink:before{content:"󰱸"}.mdi-emoticon-wink-outline:before{content:"󰱹"}.mdi-engine:before{content:"󰇺"}.mdi-engine-off:before{content:"󰩆"}.mdi-engine-off-outline:before{content:"󰩇"}.mdi-engine-outline:before{content:"󰇻"}.mdi-epsilon:before{content:"󱃠"}.mdi-equal:before{content:"󰇼"}.mdi-equal-box:before{content:"󰇽"}.mdi-equalizer:before{content:"󰺢"}.mdi-equalizer-outline:before{content:"󰺣"}.mdi-eraser:before{content:"󰇾"}.mdi-eraser-variant:before{content:"󰙂"}.mdi-escalator:before{content:"󰇿"}.mdi-escalator-box:before{content:"󱎙"}.mdi-escalator-down:before{content:"󱋀"}.mdi-escalator-up:before{content:"󱊿"}.mdi-eslint:before{content:"󰱺"}.mdi-et:before{content:"󰪳"}.mdi-ethereum:before{content:"󰡪"}.mdi-ethernet:before{content:"󰈀"}.mdi-ethernet-cable:before{content:"󰈁"}.mdi-ethernet-cable-off:before{content:"󰈂"}.mdi-ev-plug-ccs1:before{content:"󱔙"}.mdi-ev-plug-ccs2:before{content:"󱔚"}.mdi-ev-plug-chademo:before{content:"󱔛"}.mdi-ev-plug-tesla:before{content:"󱔜"}.mdi-ev-plug-type1:before{content:"󱔝"}.mdi-ev-plug-type2:before{content:"󱔞"}.mdi-ev-station:before{content:"󰗱"}.mdi-evernote:before{content:"󰈄"}.mdi-excavator:before{content:"󱀥"}.mdi-exclamation:before{content:"󰈅"}.mdi-exclamation-thick:before{content:"󱈸"}.mdi-exit-run:before{content:"󰩈"}.mdi-exit-to-app:before{content:"󰈆"}.mdi-expand-all:before{content:"󰪴"}.mdi-expand-all-outline:before{content:"󰪵"}.mdi-expansion-card:before{content:"󰢮"}.mdi-expansion-card-variant:before{content:"󰾲"}.mdi-exponent:before{content:"󰥣"}.mdi-exponent-box:before{content:"󰥤"}.mdi-export:before{content:"󰈇"}.mdi-export-variant:before{content:"󰮓"}.mdi-eye:before{content:"󰈈"}.mdi-eye-arrow-left:before{content:"󱣽"}.mdi-eye-arrow-left-outline:before{content:"󱣾"}.mdi-eye-arrow-right:before{content:"󱣿"}.mdi-eye-arrow-right-outline:before{content:"󱤀"}.mdi-eye-check:before{content:"󰴄"}.mdi-eye-check-outline:before{content:"󰴅"}.mdi-eye-circle:before{content:"󰮔"}.mdi-eye-circle-outline:before{content:"󰮕"}.mdi-eye-closed:before{content:"󱲣"}.mdi-eye-lock:before{content:"󱰆"}.mdi-eye-lock-open:before{content:"󱰇"}.mdi-eye-lock-open-outline:before{content:"󱰈"}.mdi-eye-lock-outline:before{content:"󱰉"}.mdi-eye-minus:before{content:"󱀦"}.mdi-eye-minus-outline:before{content:"󱀧"}.mdi-eye-off:before{content:"󰈉"}.mdi-eye-off-outline:before{content:"󰛑"}.mdi-eye-outline:before{content:"󰛐"}.mdi-eye-plus:before{content:"󰡫"}.mdi-eye-plus-outline:before{content:"󰡬"}.mdi-eye-refresh:before{content:"󱥼"}.mdi-eye-refresh-outline:before{content:"󱥽"}.mdi-eye-remove:before{content:"󱗣"}.mdi-eye-remove-outline:before{content:"󱗤"}.mdi-eye-settings:before{content:"󰡭"}.mdi-eye-settings-outline:before{content:"󰡮"}.mdi-eyedropper:before{content:"󰈊"}.mdi-eyedropper-minus:before{content:"󱏝"}.mdi-eyedropper-off:before{content:"󱏟"}.mdi-eyedropper-plus:before{content:"󱏜"}.mdi-eyedropper-remove:before{content:"󱏞"}.mdi-eyedropper-variant:before{content:"󰈋"}.mdi-face-agent:before{content:"󰵰"}.mdi-face-man:before{content:"󰙃"}.mdi-face-man-outline:before{content:"󰮖"}.mdi-face-man-profile:before{content:"󰙄"}.mdi-face-man-shimmer:before{content:"󱗌"}.mdi-face-man-shimmer-outline:before{content:"󱗍"}.mdi-face-mask:before{content:"󱖆"}.mdi-face-mask-outline:before{content:"󱖇"}.mdi-face-recognition:before{content:"󰱻"}.mdi-face-woman:before{content:"󱁷"}.mdi-face-woman-outline:before{content:"󱁸"}.mdi-face-woman-profile:before{content:"󱁶"}.mdi-face-woman-shimmer:before{content:"󱗎"}.mdi-face-woman-shimmer-outline:before{content:"󱗏"}.mdi-facebook:before{content:"󰈌"}.mdi-facebook-gaming:before{content:"󰟝"}.mdi-facebook-messenger:before{content:"󰈎"}.mdi-facebook-workplace:before{content:"󰬱"}.mdi-factory:before{content:"󰈏"}.mdi-family-tree:before{content:"󱘎"}.mdi-fan:before{content:"󰈐"}.mdi-fan-alert:before{content:"󱑬"}.mdi-fan-auto:before{content:"󱜝"}.mdi-fan-chevron-down:before{content:"󱑭"}.mdi-fan-chevron-up:before{content:"󱑮"}.mdi-fan-clock:before{content:"󱨺"}.mdi-fan-minus:before{content:"󱑰"}.mdi-fan-off:before{content:"󰠝"}.mdi-fan-plus:before{content:"󱑯"}.mdi-fan-remove:before{content:"󱑱"}.mdi-fan-speed-1:before{content:"󱑲"}.mdi-fan-speed-2:before{content:"󱑳"}.mdi-fan-speed-3:before{content:"󱑴"}.mdi-fast-forward:before{content:"󰈑"}.mdi-fast-forward-10:before{content:"󰵱"}.mdi-fast-forward-15:before{content:"󱤺"}.mdi-fast-forward-30:before{content:"󰴆"}.mdi-fast-forward-45:before{content:"󱬒"}.mdi-fast-forward-5:before{content:"󱇸"}.mdi-fast-forward-60:before{content:"󱘋"}.mdi-fast-forward-outline:before{content:"󰛒"}.mdi-faucet:before{content:"󱬩"}.mdi-faucet-variant:before{content:"󱬪"}.mdi-fax:before{content:"󰈒"}.mdi-feather:before{content:"󰛓"}.mdi-feature-search:before{content:"󰩉"}.mdi-feature-search-outline:before{content:"󰩊"}.mdi-fedora:before{content:"󰣛"}.mdi-fence:before{content:"󱞚"}.mdi-fence-electric:before{content:"󱟶"}.mdi-fencing:before{content:"󱓁"}.mdi-ferris-wheel:before{content:"󰺤"}.mdi-ferry:before{content:"󰈓"}.mdi-file:before{content:"󰈔"}.mdi-file-account:before{content:"󰜻"}.mdi-file-account-outline:before{content:"󱀨"}.mdi-file-alert:before{content:"󰩋"}.mdi-file-alert-outline:before{content:"󰩌"}.mdi-file-arrow-left-right:before{content:"󱪓"}.mdi-file-arrow-left-right-outline:before{content:"󱪔"}.mdi-file-arrow-up-down:before{content:"󱪕"}.mdi-file-arrow-up-down-outline:before{content:"󱪖"}.mdi-file-cabinet:before{content:"󰪶"}.mdi-file-cad:before{content:"󰻫"}.mdi-file-cad-box:before{content:"󰻬"}.mdi-file-cancel:before{content:"󰷆"}.mdi-file-cancel-outline:before{content:"󰷇"}.mdi-file-certificate:before{content:"󱆆"}.mdi-file-certificate-outline:before{content:"󱆇"}.mdi-file-chart:before{content:"󰈕"}.mdi-file-chart-check:before{content:"󱧆"}.mdi-file-chart-check-outline:before{content:"󱧇"}.mdi-file-chart-outline:before{content:"󱀩"}.mdi-file-check:before{content:"󰈖"}.mdi-file-check-outline:before{content:"󰸩"}.mdi-file-clock:before{content:"󱋡"}.mdi-file-clock-outline:before{content:"󱋢"}.mdi-file-cloud:before{content:"󰈗"}.mdi-file-cloud-outline:before{content:"󱀪"}.mdi-file-code:before{content:"󰈮"}.mdi-file-code-outline:before{content:"󱀫"}.mdi-file-cog:before{content:"󱁻"}.mdi-file-cog-outline:before{content:"󱁼"}.mdi-file-compare:before{content:"󰢪"}.mdi-file-delimited:before{content:"󰈘"}.mdi-file-delimited-outline:before{content:"󰺥"}.mdi-file-document:before{content:"󰈙"}.mdi-file-document-alert:before{content:"󱪗"}.mdi-file-document-alert-outline:before{content:"󱪘"}.mdi-file-document-arrow-right:before{content:"󱰏"}.mdi-file-document-arrow-right-outline:before{content:"󱰐"}.mdi-file-document-check:before{content:"󱪙"}.mdi-file-document-check-outline:before{content:"󱪚"}.mdi-file-document-edit:before{content:"󰷈"}.mdi-file-document-edit-outline:before{content:"󰷉"}.mdi-file-document-minus:before{content:"󱪛"}.mdi-file-document-minus-outline:before{content:"󱪜"}.mdi-file-document-multiple:before{content:"󱔗"}.mdi-file-document-multiple-outline:before{content:"󱔘"}.mdi-file-document-outline:before{content:"󰧮"}.mdi-file-document-plus:before{content:"󱪝"}.mdi-file-document-plus-outline:before{content:"󱪞"}.mdi-file-document-refresh:before{content:"󱱺"}.mdi-file-document-refresh-outline:before{content:"󱱻"}.mdi-file-document-remove:before{content:"󱪟"}.mdi-file-document-remove-outline:before{content:"󱪠"}.mdi-file-download:before{content:"󰥥"}.mdi-file-download-outline:before{content:"󰥦"}.mdi-file-edit:before{content:"󱇧"}.mdi-file-edit-outline:before{content:"󱇨"}.mdi-file-excel:before{content:"󰈛"}.mdi-file-excel-box:before{content:"󰈜"}.mdi-file-excel-box-outline:before{content:"󱀬"}.mdi-file-excel-outline:before{content:"󱀭"}.mdi-file-export:before{content:"󰈝"}.mdi-file-export-outline:before{content:"󱀮"}.mdi-file-eye:before{content:"󰷊"}.mdi-file-eye-outline:before{content:"󰷋"}.mdi-file-find:before{content:"󰈞"}.mdi-file-find-outline:before{content:"󰮗"}.mdi-file-gif-box:before{content:"󰵸"}.mdi-file-hidden:before{content:"󰘓"}.mdi-file-image:before{content:"󰈟"}.mdi-file-image-marker:before{content:"󱝲"}.mdi-file-image-marker-outline:before{content:"󱝳"}.mdi-file-image-minus:before{content:"󱤻"}.mdi-file-image-minus-outline:before{content:"󱤼"}.mdi-file-image-outline:before{content:"󰺰"}.mdi-file-image-plus:before{content:"󱤽"}.mdi-file-image-plus-outline:before{content:"󱤾"}.mdi-file-image-remove:before{content:"󱤿"}.mdi-file-image-remove-outline:before{content:"󱥀"}.mdi-file-import:before{content:"󰈠"}.mdi-file-import-outline:before{content:"󱀯"}.mdi-file-jpg-box:before{content:"󰈥"}.mdi-file-key:before{content:"󱆄"}.mdi-file-key-outline:before{content:"󱆅"}.mdi-file-link:before{content:"󱅷"}.mdi-file-link-outline:before{content:"󱅸"}.mdi-file-lock:before{content:"󰈡"}.mdi-file-lock-open:before{content:"󱧈"}.mdi-file-lock-open-outline:before{content:"󱧉"}.mdi-file-lock-outline:before{content:"󱀰"}.mdi-file-marker:before{content:"󱝴"}.mdi-file-marker-outline:before{content:"󱝵"}.mdi-file-minus:before{content:"󱪡"}.mdi-file-minus-outline:before{content:"󱪢"}.mdi-file-move:before{content:"󰪹"}.mdi-file-move-outline:before{content:"󱀱"}.mdi-file-multiple:before{content:"󰈢"}.mdi-file-multiple-outline:before{content:"󱀲"}.mdi-file-music:before{content:"󰈣"}.mdi-file-music-outline:before{content:"󰸪"}.mdi-file-outline:before{content:"󰈤"}.mdi-file-pdf-box:before{content:"󰈦"}.mdi-file-percent:before{content:"󰠞"}.mdi-file-percent-outline:before{content:"󱀳"}.mdi-file-phone:before{content:"󱅹"}.mdi-file-phone-outline:before{content:"󱅺"}.mdi-file-plus:before{content:"󰝒"}.mdi-file-plus-outline:before{content:"󰻭"}.mdi-file-png-box:before{content:"󰸭"}.mdi-file-powerpoint:before{content:"󰈧"}.mdi-file-powerpoint-box:before{content:"󰈨"}.mdi-file-powerpoint-box-outline:before{content:"󱀴"}.mdi-file-powerpoint-outline:before{content:"󱀵"}.mdi-file-presentation-box:before{content:"󰈩"}.mdi-file-question:before{content:"󰡯"}.mdi-file-question-outline:before{content:"󱀶"}.mdi-file-refresh:before{content:"󰤘"}.mdi-file-refresh-outline:before{content:"󰕁"}.mdi-file-remove:before{content:"󰮘"}.mdi-file-remove-outline:before{content:"󱀷"}.mdi-file-replace:before{content:"󰬲"}.mdi-file-replace-outline:before{content:"󰬳"}.mdi-file-restore:before{content:"󰙰"}.mdi-file-restore-outline:before{content:"󱀸"}.mdi-file-rotate-left:before{content:"󱨻"}.mdi-file-rotate-left-outline:before{content:"󱨼"}.mdi-file-rotate-right:before{content:"󱨽"}.mdi-file-rotate-right-outline:before{content:"󱨾"}.mdi-file-search:before{content:"󰱼"}.mdi-file-search-outline:before{content:"󰱽"}.mdi-file-send:before{content:"󰈪"}.mdi-file-send-outline:before{content:"󱀹"}.mdi-file-settings:before{content:"󱁹"}.mdi-file-settings-outline:before{content:"󱁺"}.mdi-file-sign:before{content:"󱧃"}.mdi-file-star:before{content:"󱀺"}.mdi-file-star-four-points:before{content:"󱰭"}.mdi-file-star-four-points-outline:before{content:"󱰮"}.mdi-file-star-outline:before{content:"󱀻"}.mdi-file-swap:before{content:"󰾴"}.mdi-file-swap-outline:before{content:"󰾵"}.mdi-file-sync:before{content:"󱈖"}.mdi-file-sync-outline:before{content:"󱈗"}.mdi-file-table:before{content:"󰱾"}.mdi-file-table-box:before{content:"󱃡"}.mdi-file-table-box-multiple:before{content:"󱃢"}.mdi-file-table-box-multiple-outline:before{content:"󱃣"}.mdi-file-table-box-outline:before{content:"󱃤"}.mdi-file-table-outline:before{content:"󰱿"}.mdi-file-tree:before{content:"󰙅"}.mdi-file-tree-outline:before{content:"󱏒"}.mdi-file-undo:before{content:"󰣜"}.mdi-file-undo-outline:before{content:"󱀼"}.mdi-file-upload:before{content:"󰩍"}.mdi-file-upload-outline:before{content:"󰩎"}.mdi-file-video:before{content:"󰈫"}.mdi-file-video-outline:before{content:"󰸬"}.mdi-file-word:before{content:"󰈬"}.mdi-file-word-box:before{content:"󰈭"}.mdi-file-word-box-outline:before{content:"󱀽"}.mdi-file-word-outline:before{content:"󱀾"}.mdi-file-xml-box:before{content:"󱭋"}.mdi-film:before{content:"󰈯"}.mdi-filmstrip:before{content:"󰈰"}.mdi-filmstrip-box:before{content:"󰌲"}.mdi-filmstrip-box-multiple:before{content:"󰴘"}.mdi-filmstrip-off:before{content:"󰈱"}.mdi-filter:before{content:"󰈲"}.mdi-filter-check:before{content:"󱣬"}.mdi-filter-check-outline:before{content:"󱣭"}.mdi-filter-cog:before{content:"󱪣"}.mdi-filter-cog-outline:before{content:"󱪤"}.mdi-filter-menu:before{content:"󱃥"}.mdi-filter-menu-outline:before{content:"󱃦"}.mdi-filter-minus:before{content:"󰻮"}.mdi-filter-minus-outline:before{content:"󰻯"}.mdi-filter-multiple:before{content:"󱨿"}.mdi-filter-multiple-outline:before{content:"󱩀"}.mdi-filter-off:before{content:"󱓯"}.mdi-filter-off-outline:before{content:"󱓰"}.mdi-filter-outline:before{content:"󰈳"}.mdi-filter-plus:before{content:"󰻰"}.mdi-filter-plus-outline:before{content:"󰻱"}.mdi-filter-remove:before{content:"󰈴"}.mdi-filter-remove-outline:before{content:"󰈵"}.mdi-filter-settings:before{content:"󱪥"}.mdi-filter-settings-outline:before{content:"󱪦"}.mdi-filter-variant:before{content:"󰈶"}.mdi-filter-variant-minus:before{content:"󱄒"}.mdi-filter-variant-plus:before{content:"󱄓"}.mdi-filter-variant-remove:before{content:"󱀿"}.mdi-finance:before{content:"󰠟"}.mdi-find-replace:before{content:"󰛔"}.mdi-fingerprint:before{content:"󰈷"}.mdi-fingerprint-off:before{content:"󰺱"}.mdi-fire:before{content:"󰈸"}.mdi-fire-alert:before{content:"󱗗"}.mdi-fire-circle:before{content:"󱠇"}.mdi-fire-extinguisher:before{content:"󰻲"}.mdi-fire-hydrant:before{content:"󱄷"}.mdi-fire-hydrant-alert:before{content:"󱄸"}.mdi-fire-hydrant-off:before{content:"󱄹"}.mdi-fire-off:before{content:"󱜢"}.mdi-fire-station:before{content:"󱳃"}.mdi-fire-truck:before{content:"󰢫"}.mdi-firebase:before{content:"󰥧"}.mdi-firefox:before{content:"󰈹"}.mdi-fireplace:before{content:"󰸮"}.mdi-fireplace-off:before{content:"󰸯"}.mdi-firewire:before{content:"󰖾"}.mdi-firework:before{content:"󰸰"}.mdi-firework-off:before{content:"󱜣"}.mdi-fish:before{content:"󰈺"}.mdi-fish-off:before{content:"󱏳"}.mdi-fishbowl:before{content:"󰻳"}.mdi-fishbowl-outline:before{content:"󰻴"}.mdi-fit-to-page:before{content:"󰻵"}.mdi-fit-to-page-outline:before{content:"󰻶"}.mdi-fit-to-screen:before{content:"󱣴"}.mdi-fit-to-screen-outline:before{content:"󱣵"}.mdi-flag:before{content:"󰈻"}.mdi-flag-checkered:before{content:"󰈼"}.mdi-flag-minus:before{content:"󰮙"}.mdi-flag-minus-outline:before{content:"󱂲"}.mdi-flag-off:before{content:"󱣮"}.mdi-flag-off-outline:before{content:"󱣯"}.mdi-flag-outline:before{content:"󰈽"}.mdi-flag-plus:before{content:"󰮚"}.mdi-flag-plus-outline:before{content:"󱂳"}.mdi-flag-remove:before{content:"󰮛"}.mdi-flag-remove-outline:before{content:"󱂴"}.mdi-flag-triangle:before{content:"󰈿"}.mdi-flag-variant:before{content:"󰉀"}.mdi-flag-variant-minus:before{content:"󱮴"}.mdi-flag-variant-minus-outline:before{content:"󱮵"}.mdi-flag-variant-off:before{content:"󱮰"}.mdi-flag-variant-off-outline:before{content:"󱮱"}.mdi-flag-variant-outline:before{content:"󰈾"}.mdi-flag-variant-plus:before{content:"󱮲"}.mdi-flag-variant-plus-outline:before{content:"󱮳"}.mdi-flag-variant-remove:before{content:"󱮶"}.mdi-flag-variant-remove-outline:before{content:"󱮷"}.mdi-flare:before{content:"󰵲"}.mdi-flash:before{content:"󰉁"}.mdi-flash-alert:before{content:"󰻷"}.mdi-flash-alert-outline:before{content:"󰻸"}.mdi-flash-auto:before{content:"󰉂"}.mdi-flash-off:before{content:"󰉃"}.mdi-flash-off-outline:before{content:"󱭅"}.mdi-flash-outline:before{content:"󰛕"}.mdi-flash-red-eye:before{content:"󰙻"}.mdi-flash-triangle:before{content:"󱬝"}.mdi-flash-triangle-outline:before{content:"󱬞"}.mdi-flashlight:before{content:"󰉄"}.mdi-flashlight-off:before{content:"󰉅"}.mdi-flask:before{content:"󰂓"}.mdi-flask-empty:before{content:"󰂔"}.mdi-flask-empty-minus:before{content:"󱈺"}.mdi-flask-empty-minus-outline:before{content:"󱈻"}.mdi-flask-empty-off:before{content:"󱏴"}.mdi-flask-empty-off-outline:before{content:"󱏵"}.mdi-flask-empty-outline:before{content:"󰂕"}.mdi-flask-empty-plus:before{content:"󱈼"}.mdi-flask-empty-plus-outline:before{content:"󱈽"}.mdi-flask-empty-remove:before{content:"󱈾"}.mdi-flask-empty-remove-outline:before{content:"󱈿"}.mdi-flask-minus:before{content:"󱉀"}.mdi-flask-minus-outline:before{content:"󱉁"}.mdi-flask-off:before{content:"󱏶"}.mdi-flask-off-outline:before{content:"󱏷"}.mdi-flask-outline:before{content:"󰂖"}.mdi-flask-plus:before{content:"󱉂"}.mdi-flask-plus-outline:before{content:"󱉃"}.mdi-flask-remove:before{content:"󱉄"}.mdi-flask-remove-outline:before{content:"󱉅"}.mdi-flask-round-bottom:before{content:"󱉋"}.mdi-flask-round-bottom-empty:before{content:"󱉌"}.mdi-flask-round-bottom-empty-outline:before{content:"󱉍"}.mdi-flask-round-bottom-outline:before{content:"󱉎"}.mdi-fleur-de-lis:before{content:"󱌃"}.mdi-flip-horizontal:before{content:"󱃧"}.mdi-flip-to-back:before{content:"󰉇"}.mdi-flip-to-front:before{content:"󰉈"}.mdi-flip-vertical:before{content:"󱃨"}.mdi-floor-lamp:before{content:"󰣝"}.mdi-floor-lamp-dual:before{content:"󱁀"}.mdi-floor-lamp-dual-outline:before{content:"󱟎"}.mdi-floor-lamp-outline:before{content:"󱟈"}.mdi-floor-lamp-torchiere:before{content:"󱝇"}.mdi-floor-lamp-torchiere-outline:before{content:"󱟖"}.mdi-floor-lamp-torchiere-variant:before{content:"󱁁"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"󱟏"}.mdi-floor-plan:before{content:"󰠡"}.mdi-floppy:before{content:"󰉉"}.mdi-floppy-variant:before{content:"󰧯"}.mdi-flower:before{content:"󰉊"}.mdi-flower-outline:before{content:"󰧰"}.mdi-flower-pollen:before{content:"󱢅"}.mdi-flower-pollen-outline:before{content:"󱢆"}.mdi-flower-poppy:before{content:"󰴈"}.mdi-flower-tulip:before{content:"󰧱"}.mdi-flower-tulip-outline:before{content:"󰧲"}.mdi-focus-auto:before{content:"󰽎"}.mdi-focus-field:before{content:"󰽏"}.mdi-focus-field-horizontal:before{content:"󰽐"}.mdi-focus-field-vertical:before{content:"󰽑"}.mdi-folder:before{content:"󰉋"}.mdi-folder-account:before{content:"󰉌"}.mdi-folder-account-outline:before{content:"󰮜"}.mdi-folder-alert:before{content:"󰷌"}.mdi-folder-alert-outline:before{content:"󰷍"}.mdi-folder-arrow-down:before{content:"󱧨"}.mdi-folder-arrow-down-outline:before{content:"󱧩"}.mdi-folder-arrow-left:before{content:"󱧪"}.mdi-folder-arrow-left-outline:before{content:"󱧫"}.mdi-folder-arrow-left-right:before{content:"󱧬"}.mdi-folder-arrow-left-right-outline:before{content:"󱧭"}.mdi-folder-arrow-right:before{content:"󱧮"}.mdi-folder-arrow-right-outline:before{content:"󱧯"}.mdi-folder-arrow-up:before{content:"󱧰"}.mdi-folder-arrow-up-down:before{content:"󱧱"}.mdi-folder-arrow-up-down-outline:before{content:"󱧲"}.mdi-folder-arrow-up-outline:before{content:"󱧳"}.mdi-folder-cancel:before{content:"󱧴"}.mdi-folder-cancel-outline:before{content:"󱧵"}.mdi-folder-check:before{content:"󱥾"}.mdi-folder-check-outline:before{content:"󱥿"}.mdi-folder-clock:before{content:"󰪺"}.mdi-folder-clock-outline:before{content:"󰪻"}.mdi-folder-cog:before{content:"󱁿"}.mdi-folder-cog-outline:before{content:"󱂀"}.mdi-folder-download:before{content:"󰉍"}.mdi-folder-download-outline:before{content:"󱃩"}.mdi-folder-edit:before{content:"󰣞"}.mdi-folder-edit-outline:before{content:"󰷎"}.mdi-folder-eye:before{content:"󱞊"}.mdi-folder-eye-outline:before{content:"󱞋"}.mdi-folder-file:before{content:"󱧶"}.mdi-folder-file-outline:before{content:"󱧷"}.mdi-folder-google-drive:before{content:"󰉎"}.mdi-folder-heart:before{content:"󱃪"}.mdi-folder-heart-outline:before{content:"󱃫"}.mdi-folder-hidden:before{content:"󱞞"}.mdi-folder-home:before{content:"󱂵"}.mdi-folder-home-outline:before{content:"󱂶"}.mdi-folder-image:before{content:"󰉏"}.mdi-folder-information:before{content:"󱂷"}.mdi-folder-information-outline:before{content:"󱂸"}.mdi-folder-key:before{content:"󰢬"}.mdi-folder-key-network:before{content:"󰢭"}.mdi-folder-key-network-outline:before{content:"󰲀"}.mdi-folder-key-outline:before{content:"󱃬"}.mdi-folder-lock:before{content:"󰉐"}.mdi-folder-lock-open:before{content:"󰉑"}.mdi-folder-lock-open-outline:before{content:"󱪧"}.mdi-folder-lock-outline:before{content:"󱪨"}.mdi-folder-marker:before{content:"󱉭"}.mdi-folder-marker-outline:before{content:"󱉮"}.mdi-folder-minus:before{content:"󱭉"}.mdi-folder-minus-outline:before{content:"󱭊"}.mdi-folder-move:before{content:"󰉒"}.mdi-folder-move-outline:before{content:"󱉆"}.mdi-folder-multiple:before{content:"󰉓"}.mdi-folder-multiple-image:before{content:"󰉔"}.mdi-folder-multiple-outline:before{content:"󰉕"}.mdi-folder-multiple-plus:before{content:"󱑾"}.mdi-folder-multiple-plus-outline:before{content:"󱑿"}.mdi-folder-music:before{content:"󱍙"}.mdi-folder-music-outline:before{content:"󱍚"}.mdi-folder-network:before{content:"󰡰"}.mdi-folder-network-outline:before{content:"󰲁"}.mdi-folder-off:before{content:"󱧸"}.mdi-folder-off-outline:before{content:"󱧹"}.mdi-folder-open:before{content:"󰝰"}.mdi-folder-open-outline:before{content:"󰷏"}.mdi-folder-outline:before{content:"󰉖"}.mdi-folder-play:before{content:"󱧺"}.mdi-folder-play-outline:before{content:"󱧻"}.mdi-folder-plus:before{content:"󰉗"}.mdi-folder-plus-outline:before{content:"󰮝"}.mdi-folder-pound:before{content:"󰴉"}.mdi-folder-pound-outline:before{content:"󰴊"}.mdi-folder-question:before{content:"󱧊"}.mdi-folder-question-outline:before{content:"󱧋"}.mdi-folder-refresh:before{content:"󰝉"}.mdi-folder-refresh-outline:before{content:"󰕂"}.mdi-folder-remove:before{content:"󰉘"}.mdi-folder-remove-outline:before{content:"󰮞"}.mdi-folder-search:before{content:"󰥨"}.mdi-folder-search-outline:before{content:"󰥩"}.mdi-folder-settings:before{content:"󱁽"}.mdi-folder-settings-outline:before{content:"󱁾"}.mdi-folder-star:before{content:"󰚝"}.mdi-folder-star-multiple:before{content:"󱏓"}.mdi-folder-star-multiple-outline:before{content:"󱏔"}.mdi-folder-star-outline:before{content:"󰮟"}.mdi-folder-swap:before{content:"󰾶"}.mdi-folder-swap-outline:before{content:"󰾷"}.mdi-folder-sync:before{content:"󰴋"}.mdi-folder-sync-outline:before{content:"󰴌"}.mdi-folder-table:before{content:"󱋣"}.mdi-folder-table-outline:before{content:"󱋤"}.mdi-folder-text:before{content:"󰲂"}.mdi-folder-text-outline:before{content:"󰲃"}.mdi-folder-upload:before{content:"󰉙"}.mdi-folder-upload-outline:before{content:"󱃭"}.mdi-folder-wrench:before{content:"󱧼"}.mdi-folder-wrench-outline:before{content:"󱧽"}.mdi-folder-zip:before{content:"󰛫"}.mdi-folder-zip-outline:before{content:"󰞹"}.mdi-font-awesome:before{content:"󰀺"}.mdi-food:before{content:"󰉚"}.mdi-food-apple:before{content:"󰉛"}.mdi-food-apple-outline:before{content:"󰲄"}.mdi-food-croissant:before{content:"󰟈"}.mdi-food-drumstick:before{content:"󱐟"}.mdi-food-drumstick-off:before{content:"󱑨"}.mdi-food-drumstick-off-outline:before{content:"󱑩"}.mdi-food-drumstick-outline:before{content:"󱐠"}.mdi-food-fork-drink:before{content:"󰗲"}.mdi-food-halal:before{content:"󱕲"}.mdi-food-hot-dog:before{content:"󱡋"}.mdi-food-kosher:before{content:"󱕳"}.mdi-food-off:before{content:"󰗳"}.mdi-food-off-outline:before{content:"󱤕"}.mdi-food-outline:before{content:"󱤖"}.mdi-food-steak:before{content:"󱑪"}.mdi-food-steak-off:before{content:"󱑫"}.mdi-food-takeout-box:before{content:"󱠶"}.mdi-food-takeout-box-outline:before{content:"󱠷"}.mdi-food-turkey:before{content:"󱜜"}.mdi-food-variant:before{content:"󰉜"}.mdi-food-variant-off:before{content:"󱏥"}.mdi-foot-print:before{content:"󰽒"}.mdi-football:before{content:"󰉝"}.mdi-football-australian:before{content:"󰉞"}.mdi-football-helmet:before{content:"󰉟"}.mdi-forest:before{content:"󱢗"}.mdi-forest-outline:before{content:"󱱣"}.mdi-forklift:before{content:"󰟉"}.mdi-form-dropdown:before{content:"󱐀"}.mdi-form-select:before{content:"󱐁"}.mdi-form-textarea:before{content:"󱂕"}.mdi-form-textbox:before{content:"󰘎"}.mdi-form-textbox-lock:before{content:"󱍝"}.mdi-form-textbox-password:before{content:"󰟵"}.mdi-format-align-bottom:before{content:"󰝓"}.mdi-format-align-center:before{content:"󰉠"}.mdi-format-align-justify:before{content:"󰉡"}.mdi-format-align-left:before{content:"󰉢"}.mdi-format-align-middle:before{content:"󰝔"}.mdi-format-align-right:before{content:"󰉣"}.mdi-format-align-top:before{content:"󰝕"}.mdi-format-annotation-minus:before{content:"󰪼"}.mdi-format-annotation-plus:before{content:"󰙆"}.mdi-format-bold:before{content:"󰉤"}.mdi-format-clear:before{content:"󰉥"}.mdi-format-color-fill:before{content:"󰉦"}.mdi-format-color-highlight:before{content:"󰸱"}.mdi-format-color-marker-cancel:before{content:"󱌓"}.mdi-format-color-text:before{content:"󰚞"}.mdi-format-columns:before{content:"󰣟"}.mdi-format-float-center:before{content:"󰉧"}.mdi-format-float-left:before{content:"󰉨"}.mdi-format-float-none:before{content:"󰉩"}.mdi-format-float-right:before{content:"󰉪"}.mdi-format-font:before{content:"󰛖"}.mdi-format-font-size-decrease:before{content:"󰧳"}.mdi-format-font-size-increase:before{content:"󰧴"}.mdi-format-header-1:before{content:"󰉫"}.mdi-format-header-2:before{content:"󰉬"}.mdi-format-header-3:before{content:"󰉭"}.mdi-format-header-4:before{content:"󰉮"}.mdi-format-header-5:before{content:"󰉯"}.mdi-format-header-6:before{content:"󰉰"}.mdi-format-header-decrease:before{content:"󰉱"}.mdi-format-header-equal:before{content:"󰉲"}.mdi-format-header-increase:before{content:"󰉳"}.mdi-format-header-pound:before{content:"󰉴"}.mdi-format-horizontal-align-center:before{content:"󰘞"}.mdi-format-horizontal-align-left:before{content:"󰘟"}.mdi-format-horizontal-align-right:before{content:"󰘠"}.mdi-format-indent-decrease:before{content:"󰉵"}.mdi-format-indent-increase:before{content:"󰉶"}.mdi-format-italic:before{content:"󰉷"}.mdi-format-letter-case:before{content:"󰬴"}.mdi-format-letter-case-lower:before{content:"󰬵"}.mdi-format-letter-case-upper:before{content:"󰬶"}.mdi-format-letter-ends-with:before{content:"󰾸"}.mdi-format-letter-matches:before{content:"󰾹"}.mdi-format-letter-spacing:before{content:"󱥖"}.mdi-format-letter-spacing-variant:before{content:"󱫻"}.mdi-format-letter-starts-with:before{content:"󰾺"}.mdi-format-line-height:before{content:"󱫼"}.mdi-format-line-spacing:before{content:"󰉸"}.mdi-format-line-style:before{content:"󰗈"}.mdi-format-line-weight:before{content:"󰗉"}.mdi-format-list-bulleted:before{content:"󰉹"}.mdi-format-list-bulleted-square:before{content:"󰷐"}.mdi-format-list-bulleted-triangle:before{content:"󰺲"}.mdi-format-list-bulleted-type:before{content:"󰉺"}.mdi-format-list-checkbox:before{content:"󰥪"}.mdi-format-list-checks:before{content:"󰝖"}.mdi-format-list-group:before{content:"󱡠"}.mdi-format-list-group-plus:before{content:"󱭖"}.mdi-format-list-numbered:before{content:"󰉻"}.mdi-format-list-numbered-rtl:before{content:"󰴍"}.mdi-format-list-text:before{content:"󱉯"}.mdi-format-overline:before{content:"󰺳"}.mdi-format-page-break:before{content:"󰛗"}.mdi-format-page-split:before{content:"󱤗"}.mdi-format-paint:before{content:"󰉼"}.mdi-format-paragraph:before{content:"󰉽"}.mdi-format-paragraph-spacing:before{content:"󱫽"}.mdi-format-pilcrow:before{content:"󰛘"}.mdi-format-pilcrow-arrow-left:before{content:"󰊆"}.mdi-format-pilcrow-arrow-right:before{content:"󰊅"}.mdi-format-quote-close:before{content:"󰉾"}.mdi-format-quote-close-outline:before{content:"󱆨"}.mdi-format-quote-open:before{content:"󰝗"}.mdi-format-quote-open-outline:before{content:"󱆧"}.mdi-format-rotate-90:before{content:"󰚪"}.mdi-format-section:before{content:"󰚟"}.mdi-format-size:before{content:"󰉿"}.mdi-format-strikethrough:before{content:"󰊀"}.mdi-format-strikethrough-variant:before{content:"󰊁"}.mdi-format-subscript:before{content:"󰊂"}.mdi-format-superscript:before{content:"󰊃"}.mdi-format-text:before{content:"󰊄"}.mdi-format-text-rotation-angle-down:before{content:"󰾻"}.mdi-format-text-rotation-angle-up:before{content:"󰾼"}.mdi-format-text-rotation-down:before{content:"󰵳"}.mdi-format-text-rotation-down-vertical:before{content:"󰾽"}.mdi-format-text-rotation-none:before{content:"󰵴"}.mdi-format-text-rotation-up:before{content:"󰾾"}.mdi-format-text-rotation-vertical:before{content:"󰾿"}.mdi-format-text-variant:before{content:"󰸲"}.mdi-format-text-variant-outline:before{content:"󱔏"}.mdi-format-text-wrapping-clip:before{content:"󰴎"}.mdi-format-text-wrapping-overflow:before{content:"󰴏"}.mdi-format-text-wrapping-wrap:before{content:"󰴐"}.mdi-format-textbox:before{content:"󰴑"}.mdi-format-title:before{content:"󰗴"}.mdi-format-underline:before{content:"󰊇"}.mdi-format-underline-wavy:before{content:"󱣩"}.mdi-format-vertical-align-bottom:before{content:"󰘡"}.mdi-format-vertical-align-center:before{content:"󰘢"}.mdi-format-vertical-align-top:before{content:"󰘣"}.mdi-format-wrap-inline:before{content:"󰊈"}.mdi-format-wrap-square:before{content:"󰊉"}.mdi-format-wrap-tight:before{content:"󰊊"}.mdi-format-wrap-top-bottom:before{content:"󰊋"}.mdi-forum:before{content:"󰊌"}.mdi-forum-minus:before{content:"󱪩"}.mdi-forum-minus-outline:before{content:"󱪪"}.mdi-forum-outline:before{content:"󰠢"}.mdi-forum-plus:before{content:"󱪫"}.mdi-forum-plus-outline:before{content:"󱪬"}.mdi-forum-remove:before{content:"󱪭"}.mdi-forum-remove-outline:before{content:"󱪮"}.mdi-forward:before{content:"󰊍"}.mdi-forwardburger:before{content:"󰵵"}.mdi-fountain:before{content:"󰥫"}.mdi-fountain-pen:before{content:"󰴒"}.mdi-fountain-pen-tip:before{content:"󰴓"}.mdi-fraction-one-half:before{content:"󱦒"}.mdi-freebsd:before{content:"󰣠"}.mdi-french-fries:before{content:"󱥗"}.mdi-frequently-asked-questions:before{content:"󰺴"}.mdi-fridge:before{content:"󰊐"}.mdi-fridge-alert:before{content:"󱆱"}.mdi-fridge-alert-outline:before{content:"󱆲"}.mdi-fridge-bottom:before{content:"󰊒"}.mdi-fridge-industrial:before{content:"󱗮"}.mdi-fridge-industrial-alert:before{content:"󱗯"}.mdi-fridge-industrial-alert-outline:before{content:"󱗰"}.mdi-fridge-industrial-off:before{content:"󱗱"}.mdi-fridge-industrial-off-outline:before{content:"󱗲"}.mdi-fridge-industrial-outline:before{content:"󱗳"}.mdi-fridge-off:before{content:"󱆯"}.mdi-fridge-off-outline:before{content:"󱆰"}.mdi-fridge-outline:before{content:"󰊏"}.mdi-fridge-top:before{content:"󰊑"}.mdi-fridge-variant:before{content:"󱗴"}.mdi-fridge-variant-alert:before{content:"󱗵"}.mdi-fridge-variant-alert-outline:before{content:"󱗶"}.mdi-fridge-variant-off:before{content:"󱗷"}.mdi-fridge-variant-off-outline:before{content:"󱗸"}.mdi-fridge-variant-outline:before{content:"󱗹"}.mdi-fruit-cherries:before{content:"󱁂"}.mdi-fruit-cherries-off:before{content:"󱏸"}.mdi-fruit-citrus:before{content:"󱁃"}.mdi-fruit-citrus-off:before{content:"󱏹"}.mdi-fruit-grapes:before{content:"󱁄"}.mdi-fruit-grapes-outline:before{content:"󱁅"}.mdi-fruit-pear:before{content:"󱨎"}.mdi-fruit-pineapple:before{content:"󱁆"}.mdi-fruit-watermelon:before{content:"󱁇"}.mdi-fuel:before{content:"󰟊"}.mdi-fuel-cell:before{content:"󱢵"}.mdi-fullscreen:before{content:"󰊓"}.mdi-fullscreen-exit:before{content:"󰊔"}.mdi-function:before{content:"󰊕"}.mdi-function-variant:before{content:"󰡱"}.mdi-furigana-horizontal:before{content:"󱂁"}.mdi-furigana-vertical:before{content:"󱂂"}.mdi-fuse:before{content:"󰲅"}.mdi-fuse-alert:before{content:"󱐭"}.mdi-fuse-blade:before{content:"󰲆"}.mdi-fuse-off:before{content:"󱐬"}.mdi-gamepad:before{content:"󰊖"}.mdi-gamepad-circle:before{content:"󰸳"}.mdi-gamepad-circle-down:before{content:"󰸴"}.mdi-gamepad-circle-left:before{content:"󰸵"}.mdi-gamepad-circle-outline:before{content:"󰸶"}.mdi-gamepad-circle-right:before{content:"󰸷"}.mdi-gamepad-circle-up:before{content:"󰸸"}.mdi-gamepad-down:before{content:"󰸹"}.mdi-gamepad-left:before{content:"󰸺"}.mdi-gamepad-outline:before{content:"󱤙"}.mdi-gamepad-right:before{content:"󰸻"}.mdi-gamepad-round:before{content:"󰸼"}.mdi-gamepad-round-down:before{content:"󰸽"}.mdi-gamepad-round-left:before{content:"󰸾"}.mdi-gamepad-round-outline:before{content:"󰸿"}.mdi-gamepad-round-right:before{content:"󰹀"}.mdi-gamepad-round-up:before{content:"󰹁"}.mdi-gamepad-square:before{content:"󰺵"}.mdi-gamepad-square-outline:before{content:"󰺶"}.mdi-gamepad-up:before{content:"󰹂"}.mdi-gamepad-variant:before{content:"󰊗"}.mdi-gamepad-variant-outline:before{content:"󰺷"}.mdi-gamma:before{content:"󱃮"}.mdi-gantry-crane:before{content:"󰷑"}.mdi-garage:before{content:"󰛙"}.mdi-garage-alert:before{content:"󰡲"}.mdi-garage-alert-variant:before{content:"󱋕"}.mdi-garage-lock:before{content:"󱟻"}.mdi-garage-open:before{content:"󰛚"}.mdi-garage-open-variant:before{content:"󱋔"}.mdi-garage-variant:before{content:"󱋓"}.mdi-garage-variant-lock:before{content:"󱟼"}.mdi-gas-burner:before{content:"󱨛"}.mdi-gas-cylinder:before{content:"󰙇"}.mdi-gas-station:before{content:"󰊘"}.mdi-gas-station-in-use:before{content:"󱳄"}.mdi-gas-station-in-use-outline:before{content:"󱳅"}.mdi-gas-station-off:before{content:"󱐉"}.mdi-gas-station-off-outline:before{content:"󱐊"}.mdi-gas-station-outline:before{content:"󰺸"}.mdi-gate:before{content:"󰊙"}.mdi-gate-alert:before{content:"󱟸"}.mdi-gate-and:before{content:"󰣡"}.mdi-gate-arrow-left:before{content:"󱟷"}.mdi-gate-arrow-right:before{content:"󱅩"}.mdi-gate-buffer:before{content:"󱫾"}.mdi-gate-nand:before{content:"󰣢"}.mdi-gate-nor:before{content:"󰣣"}.mdi-gate-not:before{content:"󰣤"}.mdi-gate-open:before{content:"󱅪"}.mdi-gate-or:before{content:"󰣥"}.mdi-gate-xnor:before{content:"󰣦"}.mdi-gate-xor:before{content:"󰣧"}.mdi-gatsby:before{content:"󰹃"}.mdi-gauge:before{content:"󰊚"}.mdi-gauge-empty:before{content:"󰡳"}.mdi-gauge-full:before{content:"󰡴"}.mdi-gauge-low:before{content:"󰡵"}.mdi-gavel:before{content:"󰊛"}.mdi-gender-female:before{content:"󰊜"}.mdi-gender-male:before{content:"󰊝"}.mdi-gender-male-female:before{content:"󰊞"}.mdi-gender-male-female-variant:before{content:"󱄿"}.mdi-gender-non-binary:before{content:"󱅀"}.mdi-gender-transgender:before{content:"󰊟"}.mdi-generator-mobile:before{content:"󱲊"}.mdi-generator-portable:before{content:"󱲋"}.mdi-generator-stationary:before{content:"󱲌"}.mdi-gentoo:before{content:"󰣨"}.mdi-gesture:before{content:"󰟋"}.mdi-gesture-double-tap:before{content:"󰜼"}.mdi-gesture-pinch:before{content:"󰪽"}.mdi-gesture-spread:before{content:"󰪾"}.mdi-gesture-swipe:before{content:"󰵶"}.mdi-gesture-swipe-down:before{content:"󰜽"}.mdi-gesture-swipe-horizontal:before{content:"󰪿"}.mdi-gesture-swipe-left:before{content:"󰜾"}.mdi-gesture-swipe-right:before{content:"󰜿"}.mdi-gesture-swipe-up:before{content:"󰝀"}.mdi-gesture-swipe-vertical:before{content:"󰫀"}.mdi-gesture-tap:before{content:"󰝁"}.mdi-gesture-tap-box:before{content:"󱊩"}.mdi-gesture-tap-button:before{content:"󱊨"}.mdi-gesture-tap-hold:before{content:"󰵷"}.mdi-gesture-two-double-tap:before{content:"󰝂"}.mdi-gesture-two-tap:before{content:"󰝃"}.mdi-ghost:before{content:"󰊠"}.mdi-ghost-off:before{content:"󰧵"}.mdi-ghost-off-outline:before{content:"󱙜"}.mdi-ghost-outline:before{content:"󱙝"}.mdi-gift:before{content:"󰹄"}.mdi-gift-off:before{content:"󱛯"}.mdi-gift-off-outline:before{content:"󱛰"}.mdi-gift-open:before{content:"󱛱"}.mdi-gift-open-outline:before{content:"󱛲"}.mdi-gift-outline:before{content:"󰊡"}.mdi-git:before{content:"󰊢"}.mdi-github:before{content:"󰊤"}.mdi-gitlab:before{content:"󰮠"}.mdi-glass-cocktail:before{content:"󰍖"}.mdi-glass-cocktail-off:before{content:"󱗦"}.mdi-glass-flute:before{content:"󰊥"}.mdi-glass-fragile:before{content:"󱡳"}.mdi-glass-mug:before{content:"󰊦"}.mdi-glass-mug-off:before{content:"󱗧"}.mdi-glass-mug-variant:before{content:"󱄖"}.mdi-glass-mug-variant-off:before{content:"󱗨"}.mdi-glass-pint-outline:before{content:"󱌍"}.mdi-glass-stange:before{content:"󰊧"}.mdi-glass-tulip:before{content:"󰊨"}.mdi-glass-wine:before{content:"󰡶"}.mdi-glasses:before{content:"󰊪"}.mdi-globe-light:before{content:"󰙯"}.mdi-globe-light-outline:before{content:"󱋗"}.mdi-globe-model:before{content:"󰣩"}.mdi-gmail:before{content:"󰊫"}.mdi-gnome:before{content:"󰊬"}.mdi-go-kart:before{content:"󰵹"}.mdi-go-kart-track:before{content:"󰵺"}.mdi-gog:before{content:"󰮡"}.mdi-gold:before{content:"󱉏"}.mdi-golf:before{content:"󰠣"}.mdi-golf-cart:before{content:"󱆤"}.mdi-golf-tee:before{content:"󱂃"}.mdi-gondola:before{content:"󰚆"}.mdi-goodreads:before{content:"󰵻"}.mdi-google:before{content:"󰊭"}.mdi-google-ads:before{content:"󰲇"}.mdi-google-analytics:before{content:"󰟌"}.mdi-google-assistant:before{content:"󰟍"}.mdi-google-cardboard:before{content:"󰊮"}.mdi-google-chrome:before{content:"󰊯"}.mdi-google-circles:before{content:"󰊰"}.mdi-google-circles-communities:before{content:"󰊱"}.mdi-google-circles-extended:before{content:"󰊲"}.mdi-google-circles-group:before{content:"󰊳"}.mdi-google-classroom:before{content:"󰋀"}.mdi-google-cloud:before{content:"󱇶"}.mdi-google-downasaur:before{content:"󱍢"}.mdi-google-drive:before{content:"󰊶"}.mdi-google-earth:before{content:"󰊷"}.mdi-google-fit:before{content:"󰥬"}.mdi-google-glass:before{content:"󰊸"}.mdi-google-hangouts:before{content:"󰋉"}.mdi-google-keep:before{content:"󰛜"}.mdi-google-lens:before{content:"󰧶"}.mdi-google-maps:before{content:"󰗵"}.mdi-google-my-business:before{content:"󱁈"}.mdi-google-nearby:before{content:"󰊹"}.mdi-google-play:before{content:"󰊼"}.mdi-google-plus:before{content:"󰊽"}.mdi-google-podcast:before{content:"󰺹"}.mdi-google-spreadsheet:before{content:"󰧷"}.mdi-google-street-view:before{content:"󰲈"}.mdi-google-translate:before{content:"󰊿"}.mdi-gradient-horizontal:before{content:"󱝊"}.mdi-gradient-vertical:before{content:"󰚠"}.mdi-grain:before{content:"󰵼"}.mdi-graph:before{content:"󱁉"}.mdi-graph-outline:before{content:"󱁊"}.mdi-graphql:before{content:"󰡷"}.mdi-grass:before{content:"󱔐"}.mdi-grave-stone:before{content:"󰮢"}.mdi-grease-pencil:before{content:"󰙈"}.mdi-greater-than:before{content:"󰥭"}.mdi-greater-than-or-equal:before{content:"󰥮"}.mdi-greenhouse:before{content:"󰀭"}.mdi-grid:before{content:"󰋁"}.mdi-grid-large:before{content:"󰝘"}.mdi-grid-off:before{content:"󰋂"}.mdi-grill:before{content:"󰹅"}.mdi-grill-outline:before{content:"󱆊"}.mdi-group:before{content:"󰋃"}.mdi-guitar-acoustic:before{content:"󰝱"}.mdi-guitar-electric:before{content:"󰋄"}.mdi-guitar-pick:before{content:"󰋅"}.mdi-guitar-pick-outline:before{content:"󰋆"}.mdi-guy-fawkes-mask:before{content:"󰠥"}.mdi-gymnastics:before{content:"󱩁"}.mdi-hail:before{content:"󰫁"}.mdi-hair-dryer:before{content:"󱃯"}.mdi-hair-dryer-outline:before{content:"󱃰"}.mdi-halloween:before{content:"󰮣"}.mdi-hamburger:before{content:"󰚅"}.mdi-hamburger-check:before{content:"󱝶"}.mdi-hamburger-minus:before{content:"󱝷"}.mdi-hamburger-off:before{content:"󱝸"}.mdi-hamburger-plus:before{content:"󱝹"}.mdi-hamburger-remove:before{content:"󱝺"}.mdi-hammer:before{content:"󰣪"}.mdi-hammer-screwdriver:before{content:"󱌢"}.mdi-hammer-sickle:before{content:"󱢇"}.mdi-hammer-wrench:before{content:"󱌣"}.mdi-hand-back-left:before{content:"󰹆"}.mdi-hand-back-left-off:before{content:"󱠰"}.mdi-hand-back-left-off-outline:before{content:"󱠲"}.mdi-hand-back-left-outline:before{content:"󱠬"}.mdi-hand-back-right:before{content:"󰹇"}.mdi-hand-back-right-off:before{content:"󱠱"}.mdi-hand-back-right-off-outline:before{content:"󱠳"}.mdi-hand-back-right-outline:before{content:"󱠭"}.mdi-hand-clap:before{content:"󱥋"}.mdi-hand-clap-off:before{content:"󱩂"}.mdi-hand-coin:before{content:"󱢏"}.mdi-hand-coin-outline:before{content:"󱢐"}.mdi-hand-cycle:before{content:"󱮜"}.mdi-hand-extended:before{content:"󱢶"}.mdi-hand-extended-outline:before{content:"󱢷"}.mdi-hand-front-left:before{content:"󱠫"}.mdi-hand-front-left-outline:before{content:"󱠮"}.mdi-hand-front-right:before{content:"󰩏"}.mdi-hand-front-right-outline:before{content:"󱠯"}.mdi-hand-heart:before{content:"󱃱"}.mdi-hand-heart-outline:before{content:"󱕾"}.mdi-hand-okay:before{content:"󰩐"}.mdi-hand-peace:before{content:"󰩑"}.mdi-hand-peace-variant:before{content:"󰩒"}.mdi-hand-pointing-down:before{content:"󰩓"}.mdi-hand-pointing-left:before{content:"󰩔"}.mdi-hand-pointing-right:before{content:"󰋇"}.mdi-hand-pointing-up:before{content:"󰩕"}.mdi-hand-saw:before{content:"󰹈"}.mdi-hand-wash:before{content:"󱕿"}.mdi-hand-wash-outline:before{content:"󱖀"}.mdi-hand-water:before{content:"󱎟"}.mdi-hand-wave:before{content:"󱠡"}.mdi-hand-wave-outline:before{content:"󱠢"}.mdi-handball:before{content:"󰽓"}.mdi-handcuffs:before{content:"󱄾"}.mdi-hands-pray:before{content:"󰕹"}.mdi-handshake:before{content:"󱈘"}.mdi-handshake-outline:before{content:"󱖡"}.mdi-hanger:before{content:"󰋈"}.mdi-hard-hat:before{content:"󰥯"}.mdi-harddisk:before{content:"󰋊"}.mdi-harddisk-plus:before{content:"󱁋"}.mdi-harddisk-remove:before{content:"󱁌"}.mdi-hat-fedora:before{content:"󰮤"}.mdi-hazard-lights:before{content:"󰲉"}.mdi-hdmi-port:before{content:"󱮸"}.mdi-hdr:before{content:"󰵽"}.mdi-hdr-off:before{content:"󰵾"}.mdi-head:before{content:"󱍞"}.mdi-head-alert:before{content:"󱌸"}.mdi-head-alert-outline:before{content:"󱌹"}.mdi-head-check:before{content:"󱌺"}.mdi-head-check-outline:before{content:"󱌻"}.mdi-head-cog:before{content:"󱌼"}.mdi-head-cog-outline:before{content:"󱌽"}.mdi-head-dots-horizontal:before{content:"󱌾"}.mdi-head-dots-horizontal-outline:before{content:"󱌿"}.mdi-head-flash:before{content:"󱍀"}.mdi-head-flash-outline:before{content:"󱍁"}.mdi-head-heart:before{content:"󱍂"}.mdi-head-heart-outline:before{content:"󱍃"}.mdi-head-lightbulb:before{content:"󱍄"}.mdi-head-lightbulb-outline:before{content:"󱍅"}.mdi-head-minus:before{content:"󱍆"}.mdi-head-minus-outline:before{content:"󱍇"}.mdi-head-outline:before{content:"󱍟"}.mdi-head-plus:before{content:"󱍈"}.mdi-head-plus-outline:before{content:"󱍉"}.mdi-head-question:before{content:"󱍊"}.mdi-head-question-outline:before{content:"󱍋"}.mdi-head-remove:before{content:"󱍌"}.mdi-head-remove-outline:before{content:"󱍍"}.mdi-head-snowflake:before{content:"󱍎"}.mdi-head-snowflake-outline:before{content:"󱍏"}.mdi-head-sync:before{content:"󱍐"}.mdi-head-sync-outline:before{content:"󱍑"}.mdi-headphones:before{content:"󰋋"}.mdi-headphones-bluetooth:before{content:"󰥰"}.mdi-headphones-box:before{content:"󰋌"}.mdi-headphones-off:before{content:"󰟎"}.mdi-headphones-settings:before{content:"󰋍"}.mdi-headset:before{content:"󰋎"}.mdi-headset-dock:before{content:"󰋏"}.mdi-headset-off:before{content:"󰋐"}.mdi-heart:before{content:"󰋑"}.mdi-heart-box:before{content:"󰋒"}.mdi-heart-box-outline:before{content:"󰋓"}.mdi-heart-broken:before{content:"󰋔"}.mdi-heart-broken-outline:before{content:"󰴔"}.mdi-heart-circle:before{content:"󰥱"}.mdi-heart-circle-outline:before{content:"󰥲"}.mdi-heart-cog:before{content:"󱙣"}.mdi-heart-cog-outline:before{content:"󱙤"}.mdi-heart-flash:before{content:"󰻹"}.mdi-heart-half:before{content:"󰛟"}.mdi-heart-half-full:before{content:"󰛞"}.mdi-heart-half-outline:before{content:"󰛠"}.mdi-heart-minus:before{content:"󱐯"}.mdi-heart-minus-outline:before{content:"󱐲"}.mdi-heart-multiple:before{content:"󰩖"}.mdi-heart-multiple-outline:before{content:"󰩗"}.mdi-heart-off:before{content:"󰝙"}.mdi-heart-off-outline:before{content:"󱐴"}.mdi-heart-outline:before{content:"󰋕"}.mdi-heart-plus:before{content:"󱐮"}.mdi-heart-plus-outline:before{content:"󱐱"}.mdi-heart-pulse:before{content:"󰗶"}.mdi-heart-remove:before{content:"󱐰"}.mdi-heart-remove-outline:before{content:"󱐳"}.mdi-heart-search:before{content:"󱲍"}.mdi-heart-settings:before{content:"󱙥"}.mdi-heart-settings-outline:before{content:"󱙦"}.mdi-heat-pump:before{content:"󱩃"}.mdi-heat-pump-outline:before{content:"󱩄"}.mdi-heat-wave:before{content:"󱩅"}.mdi-heating-coil:before{content:"󱪯"}.mdi-helicopter:before{content:"󰫂"}.mdi-help:before{content:"󰋖"}.mdi-help-box:before{content:"󰞋"}.mdi-help-box-multiple:before{content:"󱰊"}.mdi-help-box-multiple-outline:before{content:"󱰋"}.mdi-help-box-outline:before{content:"󱰌"}.mdi-help-circle:before{content:"󰋗"}.mdi-help-circle-outline:before{content:"󰘥"}.mdi-help-network:before{content:"󰛵"}.mdi-help-network-outline:before{content:"󰲊"}.mdi-help-rhombus:before{content:"󰮥"}.mdi-help-rhombus-outline:before{content:"󰮦"}.mdi-hexadecimal:before{content:"󱊧"}.mdi-hexagon:before{content:"󰋘"}.mdi-hexagon-multiple:before{content:"󰛡"}.mdi-hexagon-multiple-outline:before{content:"󱃲"}.mdi-hexagon-outline:before{content:"󰋙"}.mdi-hexagon-slice-1:before{content:"󰫃"}.mdi-hexagon-slice-2:before{content:"󰫄"}.mdi-hexagon-slice-3:before{content:"󰫅"}.mdi-hexagon-slice-4:before{content:"󰫆"}.mdi-hexagon-slice-5:before{content:"󰫇"}.mdi-hexagon-slice-6:before{content:"󰫈"}.mdi-hexagram:before{content:"󰫉"}.mdi-hexagram-outline:before{content:"󰫊"}.mdi-high-definition:before{content:"󰟏"}.mdi-high-definition-box:before{content:"󰡸"}.mdi-highway:before{content:"󰗷"}.mdi-hiking:before{content:"󰵿"}.mdi-history:before{content:"󰋚"}.mdi-hockey-puck:before{content:"󰡹"}.mdi-hockey-sticks:before{content:"󰡺"}.mdi-hololens:before{content:"󰋛"}.mdi-home:before{content:"󰋜"}.mdi-home-account:before{content:"󰠦"}.mdi-home-alert:before{content:"󰡻"}.mdi-home-alert-outline:before{content:"󱗐"}.mdi-home-analytics:before{content:"󰺺"}.mdi-home-assistant:before{content:"󰟐"}.mdi-home-automation:before{content:"󰟑"}.mdi-home-battery:before{content:"󱤁"}.mdi-home-battery-outline:before{content:"󱤂"}.mdi-home-circle:before{content:"󰟒"}.mdi-home-circle-outline:before{content:"󱁍"}.mdi-home-city:before{content:"󰴕"}.mdi-home-city-outline:before{content:"󰴖"}.mdi-home-clock:before{content:"󱨒"}.mdi-home-clock-outline:before{content:"󱨓"}.mdi-home-edit:before{content:"󱅙"}.mdi-home-edit-outline:before{content:"󱅚"}.mdi-home-export-outline:before{content:"󰾛"}.mdi-home-flood:before{content:"󰻺"}.mdi-home-floor-0:before{content:"󰷒"}.mdi-home-floor-1:before{content:"󰶀"}.mdi-home-floor-2:before{content:"󰶁"}.mdi-home-floor-3:before{content:"󰶂"}.mdi-home-floor-a:before{content:"󰶃"}.mdi-home-floor-b:before{content:"󰶄"}.mdi-home-floor-g:before{content:"󰶅"}.mdi-home-floor-l:before{content:"󰶆"}.mdi-home-floor-negative-1:before{content:"󰷓"}.mdi-home-group:before{content:"󰷔"}.mdi-home-group-minus:before{content:"󱧁"}.mdi-home-group-plus:before{content:"󱧀"}.mdi-home-group-remove:before{content:"󱧂"}.mdi-home-heart:before{content:"󰠧"}.mdi-home-import-outline:before{content:"󰾜"}.mdi-home-lightbulb:before{content:"󱉑"}.mdi-home-lightbulb-outline:before{content:"󱉒"}.mdi-home-lightning-bolt:before{content:"󱤃"}.mdi-home-lightning-bolt-outline:before{content:"󱤄"}.mdi-home-lock:before{content:"󰣫"}.mdi-home-lock-open:before{content:"󰣬"}.mdi-home-map-marker:before{content:"󰗸"}.mdi-home-minus:before{content:"󰥴"}.mdi-home-minus-outline:before{content:"󱏕"}.mdi-home-modern:before{content:"󰋝"}.mdi-home-off:before{content:"󱩆"}.mdi-home-off-outline:before{content:"󱩇"}.mdi-home-outline:before{content:"󰚡"}.mdi-home-percent:before{content:"󱱼"}.mdi-home-percent-outline:before{content:"󱱽"}.mdi-home-plus:before{content:"󰥵"}.mdi-home-plus-outline:before{content:"󱏖"}.mdi-home-remove:before{content:"󱉇"}.mdi-home-remove-outline:before{content:"󱏗"}.mdi-home-roof:before{content:"󱄫"}.mdi-home-search:before{content:"󱎰"}.mdi-home-search-outline:before{content:"󱎱"}.mdi-home-silo:before{content:"󱮠"}.mdi-home-silo-outline:before{content:"󱮡"}.mdi-home-sound-in:before{content:"󱰯"}.mdi-home-sound-in-outline:before{content:"󱰰"}.mdi-home-sound-out:before{content:"󱰱"}.mdi-home-sound-out-outline:before{content:"󱰲"}.mdi-home-switch:before{content:"󱞔"}.mdi-home-switch-outline:before{content:"󱞕"}.mdi-home-thermometer:before{content:"󰽔"}.mdi-home-thermometer-outline:before{content:"󰽕"}.mdi-home-variant:before{content:"󰋞"}.mdi-home-variant-outline:before{content:"󰮧"}.mdi-hook:before{content:"󰛢"}.mdi-hook-off:before{content:"󰛣"}.mdi-hoop-house:before{content:"󰹖"}.mdi-hops:before{content:"󰋟"}.mdi-horizontal-rotate-clockwise:before{content:"󱃳"}.mdi-horizontal-rotate-counterclockwise:before{content:"󱃴"}.mdi-horse:before{content:"󱖿"}.mdi-horse-human:before{content:"󱗀"}.mdi-horse-variant:before{content:"󱗁"}.mdi-horse-variant-fast:before{content:"󱡮"}.mdi-horseshoe:before{content:"󰩘"}.mdi-hospital:before{content:"󰿶"}.mdi-hospital-box:before{content:"󰋠"}.mdi-hospital-box-outline:before{content:"󰿷"}.mdi-hospital-building:before{content:"󰋡"}.mdi-hospital-marker:before{content:"󰋢"}.mdi-hot-tub:before{content:"󰠨"}.mdi-hours-12:before{content:"󱲔"}.mdi-hours-24:before{content:"󱑸"}.mdi-hub:before{content:"󱲕"}.mdi-hub-outline:before{content:"󱲖"}.mdi-hubspot:before{content:"󰴗"}.mdi-hulu:before{content:"󰠩"}.mdi-human:before{content:"󰋦"}.mdi-human-baby-changing-table:before{content:"󱎋"}.mdi-human-cane:before{content:"󱖁"}.mdi-human-capacity-decrease:before{content:"󱖛"}.mdi-human-capacity-increase:before{content:"󱖜"}.mdi-human-child:before{content:"󰋧"}.mdi-human-dolly:before{content:"󱦀"}.mdi-human-edit:before{content:"󱓨"}.mdi-human-female:before{content:"󰙉"}.mdi-human-female-boy:before{content:"󰩙"}.mdi-human-female-dance:before{content:"󱗉"}.mdi-human-female-female:before{content:"󰩚"}.mdi-human-female-female-child:before{content:"󱲎"}.mdi-human-female-girl:before{content:"󰩛"}.mdi-human-greeting:before{content:"󱟄"}.mdi-human-greeting-proximity:before{content:"󱖝"}.mdi-human-greeting-variant:before{content:"󰙊"}.mdi-human-handsdown:before{content:"󰙋"}.mdi-human-handsup:before{content:"󰙌"}.mdi-human-male:before{content:"󰙍"}.mdi-human-male-board:before{content:"󰢐"}.mdi-human-male-board-poll:before{content:"󰡆"}.mdi-human-male-boy:before{content:"󰩜"}.mdi-human-male-child:before{content:"󱎌"}.mdi-human-male-female:before{content:"󰋨"}.mdi-human-male-female-child:before{content:"󱠣"}.mdi-human-male-girl:before{content:"󰩝"}.mdi-human-male-height:before{content:"󰻻"}.mdi-human-male-height-variant:before{content:"󰻼"}.mdi-human-male-male:before{content:"󰩞"}.mdi-human-male-male-child:before{content:"󱲏"}.mdi-human-non-binary:before{content:"󱡈"}.mdi-human-pregnant:before{content:"󰗏"}.mdi-human-queue:before{content:"󱕱"}.mdi-human-scooter:before{content:"󱇩"}.mdi-human-walker:before{content:"󱭱"}.mdi-human-wheelchair:before{content:"󱎍"}.mdi-human-white-cane:before{content:"󱦁"}.mdi-humble-bundle:before{content:"󰝄"}.mdi-hvac:before{content:"󱍒"}.mdi-hvac-off:before{content:"󱖞"}.mdi-hydraulic-oil-level:before{content:"󱌤"}.mdi-hydraulic-oil-temperature:before{content:"󱌥"}.mdi-hydro-power:before{content:"󱋥"}.mdi-hydrogen-station:before{content:"󱢔"}.mdi-ice-cream:before{content:"󰠪"}.mdi-ice-cream-off:before{content:"󰹒"}.mdi-ice-pop:before{content:"󰻽"}.mdi-id-card:before{content:"󰿀"}.mdi-identifier:before{content:"󰻾"}.mdi-ideogram-cjk:before{content:"󱌱"}.mdi-ideogram-cjk-variant:before{content:"󱌲"}.mdi-image:before{content:"󰋩"}.mdi-image-album:before{content:"󰋪"}.mdi-image-area:before{content:"󰋫"}.mdi-image-area-close:before{content:"󰋬"}.mdi-image-auto-adjust:before{content:"󰿁"}.mdi-image-broken:before{content:"󰋭"}.mdi-image-broken-variant:before{content:"󰋮"}.mdi-image-check:before{content:"󱬥"}.mdi-image-check-outline:before{content:"󱬦"}.mdi-image-edit:before{content:"󱇣"}.mdi-image-edit-outline:before{content:"󱇤"}.mdi-image-filter-black-white:before{content:"󰋰"}.mdi-image-filter-center-focus:before{content:"󰋱"}.mdi-image-filter-center-focus-strong:before{content:"󰻿"}.mdi-image-filter-center-focus-strong-outline:before{content:"󰼀"}.mdi-image-filter-center-focus-weak:before{content:"󰋲"}.mdi-image-filter-drama:before{content:"󰋳"}.mdi-image-filter-drama-outline:before{content:"󱯿"}.mdi-image-filter-frames:before{content:"󰋴"}.mdi-image-filter-hdr:before{content:"󰋵"}.mdi-image-filter-hdr-outline:before{content:"󱱤"}.mdi-image-filter-none:before{content:"󰋶"}.mdi-image-filter-tilt-shift:before{content:"󰋷"}.mdi-image-filter-vintage:before{content:"󰋸"}.mdi-image-frame:before{content:"󰹉"}.mdi-image-lock:before{content:"󱪰"}.mdi-image-lock-outline:before{content:"󱪱"}.mdi-image-marker:before{content:"󱝻"}.mdi-image-marker-outline:before{content:"󱝼"}.mdi-image-minus:before{content:"󱐙"}.mdi-image-minus-outline:before{content:"󱭇"}.mdi-image-move:before{content:"󰧸"}.mdi-image-multiple:before{content:"󰋹"}.mdi-image-multiple-outline:before{content:"󰋯"}.mdi-image-off:before{content:"󰠫"}.mdi-image-off-outline:before{content:"󱇑"}.mdi-image-outline:before{content:"󰥶"}.mdi-image-plus:before{content:"󰡼"}.mdi-image-plus-outline:before{content:"󱭆"}.mdi-image-refresh:before{content:"󱧾"}.mdi-image-refresh-outline:before{content:"󱧿"}.mdi-image-remove:before{content:"󱐘"}.mdi-image-remove-outline:before{content:"󱭈"}.mdi-image-search:before{content:"󰥷"}.mdi-image-search-outline:before{content:"󰥸"}.mdi-image-size-select-actual:before{content:"󰲍"}.mdi-image-size-select-large:before{content:"󰲎"}.mdi-image-size-select-small:before{content:"󰲏"}.mdi-image-sync:before{content:"󱨀"}.mdi-image-sync-outline:before{content:"󱨁"}.mdi-image-text:before{content:"󱘍"}.mdi-import:before{content:"󰋺"}.mdi-inbox:before{content:"󰚇"}.mdi-inbox-arrow-down:before{content:"󰋻"}.mdi-inbox-arrow-down-outline:before{content:"󱉰"}.mdi-inbox-arrow-up:before{content:"󰏑"}.mdi-inbox-arrow-up-outline:before{content:"󱉱"}.mdi-inbox-full:before{content:"󱉲"}.mdi-inbox-full-outline:before{content:"󱉳"}.mdi-inbox-multiple:before{content:"󰢰"}.mdi-inbox-multiple-outline:before{content:"󰮨"}.mdi-inbox-outline:before{content:"󱉴"}.mdi-inbox-remove:before{content:"󱖟"}.mdi-inbox-remove-outline:before{content:"󱖠"}.mdi-incognito:before{content:"󰗹"}.mdi-incognito-circle:before{content:"󱐡"}.mdi-incognito-circle-off:before{content:"󱐢"}.mdi-incognito-off:before{content:"󰁵"}.mdi-induction:before{content:"󱡌"}.mdi-infinity:before{content:"󰛤"}.mdi-information:before{content:"󰋼"}.mdi-information-box:before{content:"󱱥"}.mdi-information-box-outline:before{content:"󱱦"}.mdi-information-off:before{content:"󱞌"}.mdi-information-off-outline:before{content:"󱞍"}.mdi-information-outline:before{content:"󰋽"}.mdi-information-slab-box:before{content:"󱱧"}.mdi-information-slab-box-outline:before{content:"󱱨"}.mdi-information-slab-circle:before{content:"󱱩"}.mdi-information-slab-circle-outline:before{content:"󱱪"}.mdi-information-slab-symbol:before{content:"󱱫"}.mdi-information-symbol:before{content:"󱱬"}.mdi-information-variant:before{content:"󰙎"}.mdi-information-variant-box:before{content:"󱱭"}.mdi-information-variant-box-outline:before{content:"󱱮"}.mdi-information-variant-circle:before{content:"󱱯"}.mdi-information-variant-circle-outline:before{content:"󱱰"}.mdi-instagram:before{content:"󰋾"}.mdi-instrument-triangle:before{content:"󱁎"}.mdi-integrated-circuit-chip:before{content:"󱤓"}.mdi-invert-colors:before{content:"󰌁"}.mdi-invert-colors-off:before{content:"󰹊"}.mdi-iobroker:before{content:"󱋨"}.mdi-ip:before{content:"󰩟"}.mdi-ip-network:before{content:"󰩠"}.mdi-ip-network-outline:before{content:"󰲐"}.mdi-ip-outline:before{content:"󱦂"}.mdi-ipod:before{content:"󰲑"}.mdi-iron:before{content:"󱠤"}.mdi-iron-board:before{content:"󱠸"}.mdi-iron-outline:before{content:"󱠥"}.mdi-island:before{content:"󱁏"}.mdi-island-variant:before{content:"󱳆"}.mdi-iv-bag:before{content:"󱂹"}.mdi-jabber:before{content:"󰷕"}.mdi-jeepney:before{content:"󰌂"}.mdi-jellyfish:before{content:"󰼁"}.mdi-jellyfish-outline:before{content:"󰼂"}.mdi-jira:before{content:"󰌃"}.mdi-jquery:before{content:"󰡽"}.mdi-jsfiddle:before{content:"󰌄"}.mdi-jump-rope:before{content:"󱋿"}.mdi-kabaddi:before{content:"󰶇"}.mdi-kangaroo:before{content:"󱕘"}.mdi-karate:before{content:"󰠬"}.mdi-kayaking:before{content:"󰢯"}.mdi-keg:before{content:"󰌅"}.mdi-kettle:before{content:"󰗺"}.mdi-kettle-alert:before{content:"󱌗"}.mdi-kettle-alert-outline:before{content:"󱌘"}.mdi-kettle-off:before{content:"󱌛"}.mdi-kettle-off-outline:before{content:"󱌜"}.mdi-kettle-outline:before{content:"󰽖"}.mdi-kettle-pour-over:before{content:"󱜼"}.mdi-kettle-steam:before{content:"󱌙"}.mdi-kettle-steam-outline:before{content:"󱌚"}.mdi-kettlebell:before{content:"󱌀"}.mdi-key:before{content:"󰌆"}.mdi-key-alert:before{content:"󱦃"}.mdi-key-alert-outline:before{content:"󱦄"}.mdi-key-arrow-right:before{content:"󱌒"}.mdi-key-chain:before{content:"󱕴"}.mdi-key-chain-variant:before{content:"󱕵"}.mdi-key-change:before{content:"󰌇"}.mdi-key-link:before{content:"󱆟"}.mdi-key-minus:before{content:"󰌈"}.mdi-key-outline:before{content:"󰷖"}.mdi-key-plus:before{content:"󰌉"}.mdi-key-remove:before{content:"󰌊"}.mdi-key-star:before{content:"󱆞"}.mdi-key-variant:before{content:"󰌋"}.mdi-key-wireless:before{content:"󰿂"}.mdi-keyboard:before{content:"󰌌"}.mdi-keyboard-backspace:before{content:"󰌍"}.mdi-keyboard-caps:before{content:"󰌎"}.mdi-keyboard-close:before{content:"󰌏"}.mdi-keyboard-close-outline:before{content:"󱰀"}.mdi-keyboard-esc:before{content:"󱊷"}.mdi-keyboard-f1:before{content:"󱊫"}.mdi-keyboard-f10:before{content:"󱊴"}.mdi-keyboard-f11:before{content:"󱊵"}.mdi-keyboard-f12:before{content:"󱊶"}.mdi-keyboard-f2:before{content:"󱊬"}.mdi-keyboard-f3:before{content:"󱊭"}.mdi-keyboard-f4:before{content:"󱊮"}.mdi-keyboard-f5:before{content:"󱊯"}.mdi-keyboard-f6:before{content:"󱊰"}.mdi-keyboard-f7:before{content:"󱊱"}.mdi-keyboard-f8:before{content:"󱊲"}.mdi-keyboard-f9:before{content:"󱊳"}.mdi-keyboard-off:before{content:"󰌐"}.mdi-keyboard-off-outline:before{content:"󰹋"}.mdi-keyboard-outline:before{content:"󰥻"}.mdi-keyboard-return:before{content:"󰌑"}.mdi-keyboard-settings:before{content:"󰧹"}.mdi-keyboard-settings-outline:before{content:"󰧺"}.mdi-keyboard-space:before{content:"󱁐"}.mdi-keyboard-tab:before{content:"󰌒"}.mdi-keyboard-tab-reverse:before{content:"󰌥"}.mdi-keyboard-variant:before{content:"󰌓"}.mdi-khanda:before{content:"󱃽"}.mdi-kickstarter:before{content:"󰝅"}.mdi-kite:before{content:"󱦅"}.mdi-kite-outline:before{content:"󱦆"}.mdi-kitesurfing:before{content:"󱝄"}.mdi-klingon:before{content:"󱍛"}.mdi-knife:before{content:"󰧻"}.mdi-knife-military:before{content:"󰧼"}.mdi-knob:before{content:"󱮖"}.mdi-koala:before{content:"󱜿"}.mdi-kodi:before{content:"󰌔"}.mdi-kubernetes:before{content:"󱃾"}.mdi-label:before{content:"󰌕"}.mdi-label-multiple:before{content:"󱍵"}.mdi-label-multiple-outline:before{content:"󱍶"}.mdi-label-off:before{content:"󰫋"}.mdi-label-off-outline:before{content:"󰫌"}.mdi-label-outline:before{content:"󰌖"}.mdi-label-percent:before{content:"󱋪"}.mdi-label-percent-outline:before{content:"󱋫"}.mdi-label-variant:before{content:"󰫍"}.mdi-label-variant-outline:before{content:"󰫎"}.mdi-ladder:before{content:"󱖢"}.mdi-ladybug:before{content:"󰠭"}.mdi-lambda:before{content:"󰘧"}.mdi-lamp:before{content:"󰚵"}.mdi-lamp-outline:before{content:"󱟐"}.mdi-lamps:before{content:"󱕶"}.mdi-lamps-outline:before{content:"󱟑"}.mdi-lan:before{content:"󰌗"}.mdi-lan-check:before{content:"󱊪"}.mdi-lan-connect:before{content:"󰌘"}.mdi-lan-disconnect:before{content:"󰌙"}.mdi-lan-pending:before{content:"󰌚"}.mdi-land-fields:before{content:"󱪲"}.mdi-land-plots:before{content:"󱪳"}.mdi-land-plots-circle:before{content:"󱪴"}.mdi-land-plots-circle-variant:before{content:"󱪵"}.mdi-land-plots-marker:before{content:"󱱝"}.mdi-land-rows-horizontal:before{content:"󱪶"}.mdi-land-rows-vertical:before{content:"󱪷"}.mdi-landslide:before{content:"󱩈"}.mdi-landslide-outline:before{content:"󱩉"}.mdi-language-c:before{content:"󰙱"}.mdi-language-cpp:before{content:"󰙲"}.mdi-language-csharp:before{content:"󰌛"}.mdi-language-css3:before{content:"󰌜"}.mdi-language-fortran:before{content:"󱈚"}.mdi-language-go:before{content:"󰟓"}.mdi-language-haskell:before{content:"󰲒"}.mdi-language-html5:before{content:"󰌝"}.mdi-language-java:before{content:"󰬷"}.mdi-language-javascript:before{content:"󰌞"}.mdi-language-kotlin:before{content:"󱈙"}.mdi-language-lua:before{content:"󰢱"}.mdi-language-markdown:before{content:"󰍔"}.mdi-language-markdown-outline:before{content:"󰽛"}.mdi-language-php:before{content:"󰌟"}.mdi-language-python:before{content:"󰌠"}.mdi-language-r:before{content:"󰟔"}.mdi-language-ruby:before{content:"󰴭"}.mdi-language-ruby-on-rails:before{content:"󰫏"}.mdi-language-rust:before{content:"󱘗"}.mdi-language-swift:before{content:"󰛥"}.mdi-language-typescript:before{content:"󰛦"}.mdi-language-xaml:before{content:"󰙳"}.mdi-laptop:before{content:"󰌢"}.mdi-laptop-account:before{content:"󱩊"}.mdi-laptop-off:before{content:"󰛧"}.mdi-laravel:before{content:"󰫐"}.mdi-laser-pointer:before{content:"󱒄"}.mdi-lasso:before{content:"󰼃"}.mdi-lastpass:before{content:"󰑆"}.mdi-latitude:before{content:"󰽗"}.mdi-launch:before{content:"󰌧"}.mdi-lava-lamp:before{content:"󰟕"}.mdi-layers:before{content:"󰌨"}.mdi-layers-edit:before{content:"󱢒"}.mdi-layers-minus:before{content:"󰹌"}.mdi-layers-off:before{content:"󰌩"}.mdi-layers-off-outline:before{content:"󰧽"}.mdi-layers-outline:before{content:"󰧾"}.mdi-layers-plus:before{content:"󰹍"}.mdi-layers-remove:before{content:"󰹎"}.mdi-layers-search:before{content:"󱈆"}.mdi-layers-search-outline:before{content:"󱈇"}.mdi-layers-triple:before{content:"󰽘"}.mdi-layers-triple-outline:before{content:"󰽙"}.mdi-lead-pencil:before{content:"󰙏"}.mdi-leaf:before{content:"󰌪"}.mdi-leaf-circle:before{content:"󱤅"}.mdi-leaf-circle-outline:before{content:"󱤆"}.mdi-leaf-maple:before{content:"󰲓"}.mdi-leaf-maple-off:before{content:"󱋚"}.mdi-leaf-off:before{content:"󱋙"}.mdi-leak:before{content:"󰷗"}.mdi-leak-off:before{content:"󰷘"}.mdi-lectern:before{content:"󱫰"}.mdi-led-off:before{content:"󰌫"}.mdi-led-on:before{content:"󰌬"}.mdi-led-outline:before{content:"󰌭"}.mdi-led-strip:before{content:"󰟖"}.mdi-led-strip-variant:before{content:"󱁑"}.mdi-led-strip-variant-off:before{content:"󱩋"}.mdi-led-variant-off:before{content:"󰌮"}.mdi-led-variant-on:before{content:"󰌯"}.mdi-led-variant-outline:before{content:"󰌰"}.mdi-leek:before{content:"󱅽"}.mdi-less-than:before{content:"󰥼"}.mdi-less-than-or-equal:before{content:"󰥽"}.mdi-library:before{content:"󰌱"}.mdi-library-outline:before{content:"󱨢"}.mdi-library-shelves:before{content:"󰮩"}.mdi-license:before{content:"󰿃"}.mdi-lifebuoy:before{content:"󰡾"}.mdi-light-flood-down:before{content:"󱦇"}.mdi-light-flood-up:before{content:"󱦈"}.mdi-light-recessed:before{content:"󱞛"}.mdi-light-switch:before{content:"󰥾"}.mdi-light-switch-off:before{content:"󱨤"}.mdi-lightbulb:before{content:"󰌵"}.mdi-lightbulb-alert:before{content:"󱧡"}.mdi-lightbulb-alert-outline:before{content:"󱧢"}.mdi-lightbulb-auto:before{content:"󱠀"}.mdi-lightbulb-auto-outline:before{content:"󱠁"}.mdi-lightbulb-cfl:before{content:"󱈈"}.mdi-lightbulb-cfl-off:before{content:"󱈉"}.mdi-lightbulb-cfl-spiral:before{content:"󱉵"}.mdi-lightbulb-cfl-spiral-off:before{content:"󱋃"}.mdi-lightbulb-fluorescent-tube:before{content:"󱠄"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"󱠅"}.mdi-lightbulb-group:before{content:"󱉓"}.mdi-lightbulb-group-off:before{content:"󱋍"}.mdi-lightbulb-group-off-outline:before{content:"󱋎"}.mdi-lightbulb-group-outline:before{content:"󱉔"}.mdi-lightbulb-multiple:before{content:"󱉕"}.mdi-lightbulb-multiple-off:before{content:"󱋏"}.mdi-lightbulb-multiple-off-outline:before{content:"󱋐"}.mdi-lightbulb-multiple-outline:before{content:"󱉖"}.mdi-lightbulb-night:before{content:"󱩌"}.mdi-lightbulb-night-outline:before{content:"󱩍"}.mdi-lightbulb-off:before{content:"󰹏"}.mdi-lightbulb-off-outline:before{content:"󰹐"}.mdi-lightbulb-on:before{content:"󰛨"}.mdi-lightbulb-on-10:before{content:"󱩎"}.mdi-lightbulb-on-20:before{content:"󱩏"}.mdi-lightbulb-on-30:before{content:"󱩐"}.mdi-lightbulb-on-40:before{content:"󱩑"}.mdi-lightbulb-on-50:before{content:"󱩒"}.mdi-lightbulb-on-60:before{content:"󱩓"}.mdi-lightbulb-on-70:before{content:"󱩔"}.mdi-lightbulb-on-80:before{content:"󱩕"}.mdi-lightbulb-on-90:before{content:"󱩖"}.mdi-lightbulb-on-outline:before{content:"󰛩"}.mdi-lightbulb-outline:before{content:"󰌶"}.mdi-lightbulb-question:before{content:"󱧣"}.mdi-lightbulb-question-outline:before{content:"󱧤"}.mdi-lightbulb-spot:before{content:"󱟴"}.mdi-lightbulb-spot-off:before{content:"󱟵"}.mdi-lightbulb-variant:before{content:"󱠂"}.mdi-lightbulb-variant-outline:before{content:"󱠃"}.mdi-lighthouse:before{content:"󰧿"}.mdi-lighthouse-on:before{content:"󰨀"}.mdi-lightning-bolt:before{content:"󱐋"}.mdi-lightning-bolt-circle:before{content:"󰠠"}.mdi-lightning-bolt-outline:before{content:"󱐌"}.mdi-line-scan:before{content:"󰘤"}.mdi-lingerie:before{content:"󱑶"}.mdi-link:before{content:"󰌷"}.mdi-link-box:before{content:"󰴚"}.mdi-link-box-outline:before{content:"󰴛"}.mdi-link-box-variant:before{content:"󰴜"}.mdi-link-box-variant-outline:before{content:"󰴝"}.mdi-link-circle:before{content:"󱲬"}.mdi-link-circle-outline:before{content:"󱲭"}.mdi-link-edit:before{content:"󱲮"}.mdi-link-lock:before{content:"󱂺"}.mdi-link-off:before{content:"󰌸"}.mdi-link-plus:before{content:"󰲔"}.mdi-link-variant:before{content:"󰌹"}.mdi-link-variant-minus:before{content:"󱃿"}.mdi-link-variant-off:before{content:"󰌺"}.mdi-link-variant-plus:before{content:"󱄀"}.mdi-link-variant-remove:before{content:"󱄁"}.mdi-linkedin:before{content:"󰌻"}.mdi-linux:before{content:"󰌽"}.mdi-linux-mint:before{content:"󰣭"}.mdi-lipstick:before{content:"󱎵"}.mdi-liquid-spot:before{content:"󱠦"}.mdi-liquor:before{content:"󱤞"}.mdi-list-box:before{content:"󱭻"}.mdi-list-box-outline:before{content:"󱭼"}.mdi-list-status:before{content:"󱖫"}.mdi-litecoin:before{content:"󰩡"}.mdi-loading:before{content:"󰝲"}.mdi-location-enter:before{content:"󰿄"}.mdi-location-exit:before{content:"󰿅"}.mdi-lock:before{content:"󰌾"}.mdi-lock-alert:before{content:"󰣮"}.mdi-lock-alert-outline:before{content:"󱗑"}.mdi-lock-check:before{content:"󱎚"}.mdi-lock-check-outline:before{content:"󱚨"}.mdi-lock-clock:before{content:"󰥿"}.mdi-lock-minus:before{content:"󱚩"}.mdi-lock-minus-outline:before{content:"󱚪"}.mdi-lock-off:before{content:"󱙱"}.mdi-lock-off-outline:before{content:"󱙲"}.mdi-lock-open:before{content:"󰌿"}.mdi-lock-open-alert:before{content:"󱎛"}.mdi-lock-open-alert-outline:before{content:"󱗒"}.mdi-lock-open-check:before{content:"󱎜"}.mdi-lock-open-check-outline:before{content:"󱚫"}.mdi-lock-open-minus:before{content:"󱚬"}.mdi-lock-open-minus-outline:before{content:"󱚭"}.mdi-lock-open-outline:before{content:"󰍀"}.mdi-lock-open-plus:before{content:"󱚮"}.mdi-lock-open-plus-outline:before{content:"󱚯"}.mdi-lock-open-remove:before{content:"󱚰"}.mdi-lock-open-remove-outline:before{content:"󱚱"}.mdi-lock-open-variant:before{content:"󰿆"}.mdi-lock-open-variant-outline:before{content:"󰿇"}.mdi-lock-outline:before{content:"󰍁"}.mdi-lock-pattern:before{content:"󰛪"}.mdi-lock-percent:before{content:"󱰒"}.mdi-lock-percent-open:before{content:"󱰓"}.mdi-lock-percent-open-outline:before{content:"󱰔"}.mdi-lock-percent-open-variant:before{content:"󱰕"}.mdi-lock-percent-open-variant-outline:before{content:"󱰖"}.mdi-lock-percent-outline:before{content:"󱰗"}.mdi-lock-plus:before{content:"󰗻"}.mdi-lock-plus-outline:before{content:"󱚲"}.mdi-lock-question:before{content:"󰣯"}.mdi-lock-remove:before{content:"󱚳"}.mdi-lock-remove-outline:before{content:"󱚴"}.mdi-lock-reset:before{content:"󰝳"}.mdi-lock-smart:before{content:"󰢲"}.mdi-locker:before{content:"󰟗"}.mdi-locker-multiple:before{content:"󰟘"}.mdi-login:before{content:"󰍂"}.mdi-login-variant:before{content:"󰗼"}.mdi-logout:before{content:"󰍃"}.mdi-logout-variant:before{content:"󰗽"}.mdi-longitude:before{content:"󰽚"}.mdi-looks:before{content:"󰍄"}.mdi-lotion:before{content:"󱖂"}.mdi-lotion-outline:before{content:"󱖃"}.mdi-lotion-plus:before{content:"󱖄"}.mdi-lotion-plus-outline:before{content:"󱖅"}.mdi-loupe:before{content:"󰍅"}.mdi-lumx:before{content:"󰍆"}.mdi-lungs:before{content:"󱂄"}.mdi-mace:before{content:"󱡃"}.mdi-magazine-pistol:before{content:"󰌤"}.mdi-magazine-rifle:before{content:"󰌣"}.mdi-magic-staff:before{content:"󱡄"}.mdi-magnet:before{content:"󰍇"}.mdi-magnet-on:before{content:"󰍈"}.mdi-magnify:before{content:"󰍉"}.mdi-magnify-close:before{content:"󰦀"}.mdi-magnify-expand:before{content:"󱡴"}.mdi-magnify-minus:before{content:"󰍊"}.mdi-magnify-minus-cursor:before{content:"󰩢"}.mdi-magnify-minus-outline:before{content:"󰛬"}.mdi-magnify-plus:before{content:"󰍋"}.mdi-magnify-plus-cursor:before{content:"󰩣"}.mdi-magnify-plus-outline:before{content:"󰛭"}.mdi-magnify-remove-cursor:before{content:"󱈌"}.mdi-magnify-remove-outline:before{content:"󱈍"}.mdi-magnify-scan:before{content:"󱉶"}.mdi-mail:before{content:"󰺻"}.mdi-mailbox:before{content:"󰛮"}.mdi-mailbox-open:before{content:"󰶈"}.mdi-mailbox-open-outline:before{content:"󰶉"}.mdi-mailbox-open-up:before{content:"󰶊"}.mdi-mailbox-open-up-outline:before{content:"󰶋"}.mdi-mailbox-outline:before{content:"󰶌"}.mdi-mailbox-up:before{content:"󰶍"}.mdi-mailbox-up-outline:before{content:"󰶎"}.mdi-manjaro:before{content:"󱘊"}.mdi-map:before{content:"󰍍"}.mdi-map-check:before{content:"󰺼"}.mdi-map-check-outline:before{content:"󰺽"}.mdi-map-clock:before{content:"󰴞"}.mdi-map-clock-outline:before{content:"󰴟"}.mdi-map-legend:before{content:"󰨁"}.mdi-map-marker:before{content:"󰍎"}.mdi-map-marker-account:before{content:"󱣣"}.mdi-map-marker-account-outline:before{content:"󱣤"}.mdi-map-marker-alert:before{content:"󰼅"}.mdi-map-marker-alert-outline:before{content:"󰼆"}.mdi-map-marker-check:before{content:"󰲕"}.mdi-map-marker-check-outline:before{content:"󱋻"}.mdi-map-marker-circle:before{content:"󰍏"}.mdi-map-marker-distance:before{content:"󰣰"}.mdi-map-marker-down:before{content:"󱄂"}.mdi-map-marker-left:before{content:"󱋛"}.mdi-map-marker-left-outline:before{content:"󱋝"}.mdi-map-marker-minus:before{content:"󰙐"}.mdi-map-marker-minus-outline:before{content:"󱋹"}.mdi-map-marker-multiple:before{content:"󰍐"}.mdi-map-marker-multiple-outline:before{content:"󱉷"}.mdi-map-marker-off:before{content:"󰍑"}.mdi-map-marker-off-outline:before{content:"󱋽"}.mdi-map-marker-outline:before{content:"󰟙"}.mdi-map-marker-path:before{content:"󰴠"}.mdi-map-marker-plus:before{content:"󰙑"}.mdi-map-marker-plus-outline:before{content:"󱋸"}.mdi-map-marker-question:before{content:"󰼇"}.mdi-map-marker-question-outline:before{content:"󰼈"}.mdi-map-marker-radius:before{content:"󰍒"}.mdi-map-marker-radius-outline:before{content:"󱋼"}.mdi-map-marker-remove:before{content:"󰼉"}.mdi-map-marker-remove-outline:before{content:"󱋺"}.mdi-map-marker-remove-variant:before{content:"󰼊"}.mdi-map-marker-right:before{content:"󱋜"}.mdi-map-marker-right-outline:before{content:"󱋞"}.mdi-map-marker-star:before{content:"󱘈"}.mdi-map-marker-star-outline:before{content:"󱘉"}.mdi-map-marker-up:before{content:"󱄃"}.mdi-map-minus:before{content:"󰦁"}.mdi-map-outline:before{content:"󰦂"}.mdi-map-plus:before{content:"󰦃"}.mdi-map-search:before{content:"󰦄"}.mdi-map-search-outline:before{content:"󰦅"}.mdi-mapbox:before{content:"󰮪"}.mdi-margin:before{content:"󰍓"}.mdi-marker:before{content:"󰙒"}.mdi-marker-cancel:before{content:"󰷙"}.mdi-marker-check:before{content:"󰍕"}.mdi-mastodon:before{content:"󰫑"}.mdi-material-design:before{content:"󰦆"}.mdi-material-ui:before{content:"󰍗"}.mdi-math-compass:before{content:"󰍘"}.mdi-math-cos:before{content:"󰲖"}.mdi-math-integral:before{content:"󰿈"}.mdi-math-integral-box:before{content:"󰿉"}.mdi-math-log:before{content:"󱂅"}.mdi-math-norm:before{content:"󰿊"}.mdi-math-norm-box:before{content:"󰿋"}.mdi-math-sin:before{content:"󰲗"}.mdi-math-tan:before{content:"󰲘"}.mdi-matrix:before{content:"󰘨"}.mdi-medal:before{content:"󰦇"}.mdi-medal-outline:before{content:"󱌦"}.mdi-medical-bag:before{content:"󰛯"}.mdi-medical-cotton-swab:before{content:"󱪸"}.mdi-medication:before{content:"󱬔"}.mdi-medication-outline:before{content:"󱬕"}.mdi-meditation:before{content:"󱅻"}.mdi-memory:before{content:"󰍛"}.mdi-memory-arrow-down:before{content:"󱲦"}.mdi-menorah:before{content:"󱟔"}.mdi-menorah-fire:before{content:"󱟕"}.mdi-menu:before{content:"󰍜"}.mdi-menu-close:before{content:"󱲐"}.mdi-menu-down:before{content:"󰍝"}.mdi-menu-down-outline:before{content:"󰚶"}.mdi-menu-left:before{content:"󰍞"}.mdi-menu-left-outline:before{content:"󰨂"}.mdi-menu-open:before{content:"󰮫"}.mdi-menu-right:before{content:"󰍟"}.mdi-menu-right-outline:before{content:"󰨃"}.mdi-menu-swap:before{content:"󰩤"}.mdi-menu-swap-outline:before{content:"󰩥"}.mdi-menu-up:before{content:"󰍠"}.mdi-menu-up-outline:before{content:"󰚷"}.mdi-merge:before{content:"󰽜"}.mdi-message:before{content:"󰍡"}.mdi-message-alert:before{content:"󰍢"}.mdi-message-alert-outline:before{content:"󰨄"}.mdi-message-arrow-left:before{content:"󱋲"}.mdi-message-arrow-left-outline:before{content:"󱋳"}.mdi-message-arrow-right:before{content:"󱋴"}.mdi-message-arrow-right-outline:before{content:"󱋵"}.mdi-message-badge:before{content:"󱥁"}.mdi-message-badge-outline:before{content:"󱥂"}.mdi-message-bookmark:before{content:"󱖬"}.mdi-message-bookmark-outline:before{content:"󱖭"}.mdi-message-bulleted:before{content:"󰚢"}.mdi-message-bulleted-off:before{content:"󰚣"}.mdi-message-check:before{content:"󱮊"}.mdi-message-check-outline:before{content:"󱮋"}.mdi-message-cog:before{content:"󰛱"}.mdi-message-cog-outline:before{content:"󱅲"}.mdi-message-draw:before{content:"󰍣"}.mdi-message-fast:before{content:"󱧌"}.mdi-message-fast-outline:before{content:"󱧍"}.mdi-message-flash:before{content:"󱖩"}.mdi-message-flash-outline:before{content:"󱖪"}.mdi-message-image:before{content:"󰍤"}.mdi-message-image-outline:before{content:"󱅬"}.mdi-message-lock:before{content:"󰿌"}.mdi-message-lock-outline:before{content:"󱅭"}.mdi-message-minus:before{content:"󱅮"}.mdi-message-minus-outline:before{content:"󱅯"}.mdi-message-off:before{content:"󱙍"}.mdi-message-off-outline:before{content:"󱙎"}.mdi-message-outline:before{content:"󰍥"}.mdi-message-plus:before{content:"󰙓"}.mdi-message-plus-outline:before{content:"󱂻"}.mdi-message-processing:before{content:"󰍦"}.mdi-message-processing-outline:before{content:"󱅰"}.mdi-message-question:before{content:"󱜺"}.mdi-message-question-outline:before{content:"󱜻"}.mdi-message-reply:before{content:"󰍧"}.mdi-message-reply-outline:before{content:"󱜽"}.mdi-message-reply-text:before{content:"󰍨"}.mdi-message-reply-text-outline:before{content:"󱜾"}.mdi-message-settings:before{content:"󰛰"}.mdi-message-settings-outline:before{content:"󱅱"}.mdi-message-star:before{content:"󰚚"}.mdi-message-star-outline:before{content:"󱉐"}.mdi-message-text:before{content:"󰍩"}.mdi-message-text-clock:before{content:"󱅳"}.mdi-message-text-clock-outline:before{content:"󱅴"}.mdi-message-text-fast:before{content:"󱧎"}.mdi-message-text-fast-outline:before{content:"󱧏"}.mdi-message-text-lock:before{content:"󰿍"}.mdi-message-text-lock-outline:before{content:"󱅵"}.mdi-message-text-outline:before{content:"󰍪"}.mdi-message-video:before{content:"󰍫"}.mdi-meteor:before{content:"󰘩"}.mdi-meter-electric:before{content:"󱩗"}.mdi-meter-electric-outline:before{content:"󱩘"}.mdi-meter-gas:before{content:"󱩙"}.mdi-meter-gas-outline:before{content:"󱩚"}.mdi-metronome:before{content:"󰟚"}.mdi-metronome-tick:before{content:"󰟛"}.mdi-micro-sd:before{content:"󰟜"}.mdi-microphone:before{content:"󰍬"}.mdi-microphone-message:before{content:"󰔊"}.mdi-microphone-message-off:before{content:"󰔋"}.mdi-microphone-minus:before{content:"󰢳"}.mdi-microphone-off:before{content:"󰍭"}.mdi-microphone-outline:before{content:"󰍮"}.mdi-microphone-plus:before{content:"󰢴"}.mdi-microphone-question:before{content:"󱦉"}.mdi-microphone-question-outline:before{content:"󱦊"}.mdi-microphone-settings:before{content:"󰍯"}.mdi-microphone-variant:before{content:"󰍰"}.mdi-microphone-variant-off:before{content:"󰍱"}.mdi-microscope:before{content:"󰙔"}.mdi-microsoft:before{content:"󰍲"}.mdi-microsoft-access:before{content:"󱎎"}.mdi-microsoft-azure:before{content:"󰠅"}.mdi-microsoft-azure-devops:before{content:"󰿕"}.mdi-microsoft-bing:before{content:"󰂤"}.mdi-microsoft-dynamics-365:before{content:"󰦈"}.mdi-microsoft-edge:before{content:"󰇩"}.mdi-microsoft-excel:before{content:"󱎏"}.mdi-microsoft-internet-explorer:before{content:"󰌀"}.mdi-microsoft-office:before{content:"󰏆"}.mdi-microsoft-onedrive:before{content:"󰏊"}.mdi-microsoft-onenote:before{content:"󰝇"}.mdi-microsoft-outlook:before{content:"󰴢"}.mdi-microsoft-powerpoint:before{content:"󱎐"}.mdi-microsoft-sharepoint:before{content:"󱎑"}.mdi-microsoft-teams:before{content:"󰊻"}.mdi-microsoft-visual-studio:before{content:"󰘐"}.mdi-microsoft-visual-studio-code:before{content:"󰨞"}.mdi-microsoft-windows:before{content:"󰖳"}.mdi-microsoft-windows-classic:before{content:"󰨡"}.mdi-microsoft-word:before{content:"󱎒"}.mdi-microsoft-xbox:before{content:"󰖹"}.mdi-microsoft-xbox-controller:before{content:"󰖺"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"󰝋"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"󰨢"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"󰝌"}.mdi-microsoft-xbox-controller-battery-full:before{content:"󰝍"}.mdi-microsoft-xbox-controller-battery-low:before{content:"󰝎"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"󰝏"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"󰝐"}.mdi-microsoft-xbox-controller-menu:before{content:"󰹯"}.mdi-microsoft-xbox-controller-off:before{content:"󰖻"}.mdi-microsoft-xbox-controller-view:before{content:"󰹰"}.mdi-microwave:before{content:"󰲙"}.mdi-microwave-off:before{content:"󱐣"}.mdi-middleware:before{content:"󰽝"}.mdi-middleware-outline:before{content:"󰽞"}.mdi-midi:before{content:"󰣱"}.mdi-midi-port:before{content:"󰣲"}.mdi-mine:before{content:"󰷚"}.mdi-minecraft:before{content:"󰍳"}.mdi-mini-sd:before{content:"󰨅"}.mdi-minidisc:before{content:"󰨆"}.mdi-minus:before{content:"󰍴"}.mdi-minus-box:before{content:"󰍵"}.mdi-minus-box-multiple:before{content:"󱅁"}.mdi-minus-box-multiple-outline:before{content:"󱅂"}.mdi-minus-box-outline:before{content:"󰛲"}.mdi-minus-circle:before{content:"󰍶"}.mdi-minus-circle-multiple:before{content:"󰍚"}.mdi-minus-circle-multiple-outline:before{content:"󰫓"}.mdi-minus-circle-off:before{content:"󱑙"}.mdi-minus-circle-off-outline:before{content:"󱑚"}.mdi-minus-circle-outline:before{content:"󰍷"}.mdi-minus-network:before{content:"󰍸"}.mdi-minus-network-outline:before{content:"󰲚"}.mdi-minus-thick:before{content:"󱘹"}.mdi-mirror:before{content:"󱇽"}.mdi-mirror-rectangle:before{content:"󱞟"}.mdi-mirror-variant:before{content:"󱞠"}.mdi-mixed-martial-arts:before{content:"󰶏"}.mdi-mixed-reality:before{content:"󰡿"}.mdi-molecule:before{content:"󰮬"}.mdi-molecule-co:before{content:"󱋾"}.mdi-molecule-co2:before{content:"󰟤"}.mdi-monitor:before{content:"󰍹"}.mdi-monitor-account:before{content:"󱩛"}.mdi-monitor-arrow-down:before{content:"󱧐"}.mdi-monitor-arrow-down-variant:before{content:"󱧑"}.mdi-monitor-cellphone:before{content:"󰦉"}.mdi-monitor-cellphone-star:before{content:"󰦊"}.mdi-monitor-dashboard:before{content:"󰨇"}.mdi-monitor-edit:before{content:"󱋆"}.mdi-monitor-eye:before{content:"󱎴"}.mdi-monitor-lock:before{content:"󰷛"}.mdi-monitor-multiple:before{content:"󰍺"}.mdi-monitor-off:before{content:"󰶐"}.mdi-monitor-screenshot:before{content:"󰹑"}.mdi-monitor-share:before{content:"󱒃"}.mdi-monitor-shimmer:before{content:"󱄄"}.mdi-monitor-small:before{content:"󱡶"}.mdi-monitor-speaker:before{content:"󰽟"}.mdi-monitor-speaker-off:before{content:"󰽠"}.mdi-monitor-star:before{content:"󰷜"}.mdi-monitor-vertical:before{content:"󱰳"}.mdi-moon-first-quarter:before{content:"󰽡"}.mdi-moon-full:before{content:"󰽢"}.mdi-moon-last-quarter:before{content:"󰽣"}.mdi-moon-new:before{content:"󰽤"}.mdi-moon-waning-crescent:before{content:"󰽥"}.mdi-moon-waning-gibbous:before{content:"󰽦"}.mdi-moon-waxing-crescent:before{content:"󰽧"}.mdi-moon-waxing-gibbous:before{content:"󰽨"}.mdi-moped:before{content:"󱂆"}.mdi-moped-electric:before{content:"󱖷"}.mdi-moped-electric-outline:before{content:"󱖸"}.mdi-moped-outline:before{content:"󱖹"}.mdi-more:before{content:"󰍻"}.mdi-mortar-pestle:before{content:"󱝈"}.mdi-mortar-pestle-plus:before{content:"󰏱"}.mdi-mosque:before{content:"󰵅"}.mdi-mosque-outline:before{content:"󱠧"}.mdi-mother-heart:before{content:"󱌔"}.mdi-mother-nurse:before{content:"󰴡"}.mdi-motion:before{content:"󱖲"}.mdi-motion-outline:before{content:"󱖳"}.mdi-motion-pause:before{content:"󱖐"}.mdi-motion-pause-outline:before{content:"󱖒"}.mdi-motion-play:before{content:"󱖏"}.mdi-motion-play-outline:before{content:"󱖑"}.mdi-motion-sensor:before{content:"󰶑"}.mdi-motion-sensor-off:before{content:"󱐵"}.mdi-motorbike:before{content:"󰍼"}.mdi-motorbike-electric:before{content:"󱖺"}.mdi-motorbike-off:before{content:"󱬖"}.mdi-mouse:before{content:"󰍽"}.mdi-mouse-bluetooth:before{content:"󰦋"}.mdi-mouse-move-down:before{content:"󱕐"}.mdi-mouse-move-up:before{content:"󱕑"}.mdi-mouse-move-vertical:before{content:"󱕒"}.mdi-mouse-off:before{content:"󰍾"}.mdi-mouse-variant:before{content:"󰍿"}.mdi-mouse-variant-off:before{content:"󰎀"}.mdi-move-resize:before{content:"󰙕"}.mdi-move-resize-variant:before{content:"󰙖"}.mdi-movie:before{content:"󰎁"}.mdi-movie-check:before{content:"󱛳"}.mdi-movie-check-outline:before{content:"󱛴"}.mdi-movie-cog:before{content:"󱛵"}.mdi-movie-cog-outline:before{content:"󱛶"}.mdi-movie-edit:before{content:"󱄢"}.mdi-movie-edit-outline:before{content:"󱄣"}.mdi-movie-filter:before{content:"󱄤"}.mdi-movie-filter-outline:before{content:"󱄥"}.mdi-movie-minus:before{content:"󱛷"}.mdi-movie-minus-outline:before{content:"󱛸"}.mdi-movie-off:before{content:"󱛹"}.mdi-movie-off-outline:before{content:"󱛺"}.mdi-movie-open:before{content:"󰿎"}.mdi-movie-open-check:before{content:"󱛻"}.mdi-movie-open-check-outline:before{content:"󱛼"}.mdi-movie-open-cog:before{content:"󱛽"}.mdi-movie-open-cog-outline:before{content:"󱛾"}.mdi-movie-open-edit:before{content:"󱛿"}.mdi-movie-open-edit-outline:before{content:"󱜀"}.mdi-movie-open-minus:before{content:"󱜁"}.mdi-movie-open-minus-outline:before{content:"󱜂"}.mdi-movie-open-off:before{content:"󱜃"}.mdi-movie-open-off-outline:before{content:"󱜄"}.mdi-movie-open-outline:before{content:"󰿏"}.mdi-movie-open-play:before{content:"󱜅"}.mdi-movie-open-play-outline:before{content:"󱜆"}.mdi-movie-open-plus:before{content:"󱜇"}.mdi-movie-open-plus-outline:before{content:"󱜈"}.mdi-movie-open-remove:before{content:"󱜉"}.mdi-movie-open-remove-outline:before{content:"󱜊"}.mdi-movie-open-settings:before{content:"󱜋"}.mdi-movie-open-settings-outline:before{content:"󱜌"}.mdi-movie-open-star:before{content:"󱜍"}.mdi-movie-open-star-outline:before{content:"󱜎"}.mdi-movie-outline:before{content:"󰷝"}.mdi-movie-play:before{content:"󱜏"}.mdi-movie-play-outline:before{content:"󱜐"}.mdi-movie-plus:before{content:"󱜑"}.mdi-movie-plus-outline:before{content:"󱜒"}.mdi-movie-remove:before{content:"󱜓"}.mdi-movie-remove-outline:before{content:"󱜔"}.mdi-movie-roll:before{content:"󰟞"}.mdi-movie-search:before{content:"󱇒"}.mdi-movie-search-outline:before{content:"󱇓"}.mdi-movie-settings:before{content:"󱜕"}.mdi-movie-settings-outline:before{content:"󱜖"}.mdi-movie-star:before{content:"󱜗"}.mdi-movie-star-outline:before{content:"󱜘"}.mdi-mower:before{content:"󱙯"}.mdi-mower-bag:before{content:"󱙰"}.mdi-mower-bag-on:before{content:"󱭠"}.mdi-mower-on:before{content:"󱭟"}.mdi-muffin:before{content:"󰦌"}.mdi-multicast:before{content:"󱢓"}.mdi-multimedia:before{content:"󱮗"}.mdi-multiplication:before{content:"󰎂"}.mdi-multiplication-box:before{content:"󰎃"}.mdi-mushroom:before{content:"󰟟"}.mdi-mushroom-off:before{content:"󱏺"}.mdi-mushroom-off-outline:before{content:"󱏻"}.mdi-mushroom-outline:before{content:"󰟠"}.mdi-music:before{content:"󰝚"}.mdi-music-accidental-double-flat:before{content:"󰽩"}.mdi-music-accidental-double-sharp:before{content:"󰽪"}.mdi-music-accidental-flat:before{content:"󰽫"}.mdi-music-accidental-natural:before{content:"󰽬"}.mdi-music-accidental-sharp:before{content:"󰽭"}.mdi-music-box:before{content:"󰎄"}.mdi-music-box-multiple:before{content:"󰌳"}.mdi-music-box-multiple-outline:before{content:"󰼄"}.mdi-music-box-outline:before{content:"󰎅"}.mdi-music-circle:before{content:"󰎆"}.mdi-music-circle-outline:before{content:"󰫔"}.mdi-music-clef-alto:before{content:"󰽮"}.mdi-music-clef-bass:before{content:"󰽯"}.mdi-music-clef-treble:before{content:"󰽰"}.mdi-music-note:before{content:"󰎇"}.mdi-music-note-bluetooth:before{content:"󰗾"}.mdi-music-note-bluetooth-off:before{content:"󰗿"}.mdi-music-note-eighth:before{content:"󰎈"}.mdi-music-note-eighth-dotted:before{content:"󰽱"}.mdi-music-note-half:before{content:"󰎉"}.mdi-music-note-half-dotted:before{content:"󰽲"}.mdi-music-note-minus:before{content:"󱮉"}.mdi-music-note-off:before{content:"󰎊"}.mdi-music-note-off-outline:before{content:"󰽳"}.mdi-music-note-outline:before{content:"󰽴"}.mdi-music-note-plus:before{content:"󰷞"}.mdi-music-note-quarter:before{content:"󰎋"}.mdi-music-note-quarter-dotted:before{content:"󰽵"}.mdi-music-note-sixteenth:before{content:"󰎌"}.mdi-music-note-sixteenth-dotted:before{content:"󰽶"}.mdi-music-note-whole:before{content:"󰎍"}.mdi-music-note-whole-dotted:before{content:"󰽷"}.mdi-music-off:before{content:"󰝛"}.mdi-music-rest-eighth:before{content:"󰽸"}.mdi-music-rest-half:before{content:"󰽹"}.mdi-music-rest-quarter:before{content:"󰽺"}.mdi-music-rest-sixteenth:before{content:"󰽻"}.mdi-music-rest-whole:before{content:"󰽼"}.mdi-mustache:before{content:"󱗞"}.mdi-nail:before{content:"󰷟"}.mdi-nas:before{content:"󰣳"}.mdi-nativescript:before{content:"󰢀"}.mdi-nature:before{content:"󰎎"}.mdi-nature-outline:before{content:"󱱱"}.mdi-nature-people:before{content:"󰎏"}.mdi-nature-people-outline:before{content:"󱱲"}.mdi-navigation:before{content:"󰎐"}.mdi-navigation-outline:before{content:"󱘇"}.mdi-navigation-variant:before{content:"󱣰"}.mdi-navigation-variant-outline:before{content:"󱣱"}.mdi-near-me:before{content:"󰗍"}.mdi-necklace:before{content:"󰼋"}.mdi-needle:before{content:"󰎑"}.mdi-needle-off:before{content:"󱧒"}.mdi-netflix:before{content:"󰝆"}.mdi-network:before{content:"󰛳"}.mdi-network-off:before{content:"󰲛"}.mdi-network-off-outline:before{content:"󰲜"}.mdi-network-outline:before{content:"󰲝"}.mdi-network-pos:before{content:"󱫋"}.mdi-network-strength-1:before{content:"󰣴"}.mdi-network-strength-1-alert:before{content:"󰣵"}.mdi-network-strength-2:before{content:"󰣶"}.mdi-network-strength-2-alert:before{content:"󰣷"}.mdi-network-strength-3:before{content:"󰣸"}.mdi-network-strength-3-alert:before{content:"󰣹"}.mdi-network-strength-4:before{content:"󰣺"}.mdi-network-strength-4-alert:before{content:"󰣻"}.mdi-network-strength-4-cog:before{content:"󱤚"}.mdi-network-strength-off:before{content:"󰣼"}.mdi-network-strength-off-outline:before{content:"󰣽"}.mdi-network-strength-outline:before{content:"󰣾"}.mdi-new-box:before{content:"󰎔"}.mdi-newspaper:before{content:"󰎕"}.mdi-newspaper-check:before{content:"󱥃"}.mdi-newspaper-minus:before{content:"󰼌"}.mdi-newspaper-plus:before{content:"󰼍"}.mdi-newspaper-remove:before{content:"󱥄"}.mdi-newspaper-variant:before{content:"󱀁"}.mdi-newspaper-variant-multiple:before{content:"󱀂"}.mdi-newspaper-variant-multiple-outline:before{content:"󱀃"}.mdi-newspaper-variant-outline:before{content:"󱀄"}.mdi-nfc:before{content:"󰎖"}.mdi-nfc-search-variant:before{content:"󰹓"}.mdi-nfc-tap:before{content:"󰎗"}.mdi-nfc-variant:before{content:"󰎘"}.mdi-nfc-variant-off:before{content:"󰹔"}.mdi-ninja:before{content:"󰝴"}.mdi-nintendo-game-boy:before{content:"󱎓"}.mdi-nintendo-switch:before{content:"󰟡"}.mdi-nintendo-wii:before{content:"󰖫"}.mdi-nintendo-wiiu:before{content:"󰜭"}.mdi-nix:before{content:"󱄅"}.mdi-nodejs:before{content:"󰎙"}.mdi-noodles:before{content:"󱅾"}.mdi-not-equal:before{content:"󰦍"}.mdi-not-equal-variant:before{content:"󰦎"}.mdi-note:before{content:"󰎚"}.mdi-note-alert:before{content:"󱝽"}.mdi-note-alert-outline:before{content:"󱝾"}.mdi-note-check:before{content:"󱝿"}.mdi-note-check-outline:before{content:"󱞀"}.mdi-note-edit:before{content:"󱞁"}.mdi-note-edit-outline:before{content:"󱞂"}.mdi-note-minus:before{content:"󱙏"}.mdi-note-minus-outline:before{content:"󱙐"}.mdi-note-multiple:before{content:"󰚸"}.mdi-note-multiple-outline:before{content:"󰚹"}.mdi-note-off:before{content:"󱞃"}.mdi-note-off-outline:before{content:"󱞄"}.mdi-note-outline:before{content:"󰎛"}.mdi-note-plus:before{content:"󰎜"}.mdi-note-plus-outline:before{content:"󰎝"}.mdi-note-remove:before{content:"󱙑"}.mdi-note-remove-outline:before{content:"󱙒"}.mdi-note-search:before{content:"󱙓"}.mdi-note-search-outline:before{content:"󱙔"}.mdi-note-text:before{content:"󰎞"}.mdi-note-text-outline:before{content:"󱇗"}.mdi-notebook:before{content:"󰠮"}.mdi-notebook-check:before{content:"󱓵"}.mdi-notebook-check-outline:before{content:"󱓶"}.mdi-notebook-edit:before{content:"󱓧"}.mdi-notebook-edit-outline:before{content:"󱓩"}.mdi-notebook-heart:before{content:"󱨋"}.mdi-notebook-heart-outline:before{content:"󱨌"}.mdi-notebook-minus:before{content:"󱘐"}.mdi-notebook-minus-outline:before{content:"󱘑"}.mdi-notebook-multiple:before{content:"󰹕"}.mdi-notebook-outline:before{content:"󰺿"}.mdi-notebook-plus:before{content:"󱘒"}.mdi-notebook-plus-outline:before{content:"󱘓"}.mdi-notebook-remove:before{content:"󱘔"}.mdi-notebook-remove-outline:before{content:"󱘕"}.mdi-notification-clear-all:before{content:"󰎟"}.mdi-npm:before{content:"󰛷"}.mdi-nuke:before{content:"󰚤"}.mdi-null:before{content:"󰟢"}.mdi-numeric:before{content:"󰎠"}.mdi-numeric-0:before{content:"󰬹"}.mdi-numeric-0-box:before{content:"󰎡"}.mdi-numeric-0-box-multiple:before{content:"󰼎"}.mdi-numeric-0-box-multiple-outline:before{content:"󰎢"}.mdi-numeric-0-box-outline:before{content:"󰎣"}.mdi-numeric-0-circle:before{content:"󰲞"}.mdi-numeric-0-circle-outline:before{content:"󰲟"}.mdi-numeric-1:before{content:"󰬺"}.mdi-numeric-1-box:before{content:"󰎤"}.mdi-numeric-1-box-multiple:before{content:"󰼏"}.mdi-numeric-1-box-multiple-outline:before{content:"󰎥"}.mdi-numeric-1-box-outline:before{content:"󰎦"}.mdi-numeric-1-circle:before{content:"󰲠"}.mdi-numeric-1-circle-outline:before{content:"󰲡"}.mdi-numeric-10:before{content:"󰿩"}.mdi-numeric-10-box:before{content:"󰽽"}.mdi-numeric-10-box-multiple:before{content:"󰿪"}.mdi-numeric-10-box-multiple-outline:before{content:"󰿫"}.mdi-numeric-10-box-outline:before{content:"󰽾"}.mdi-numeric-10-circle:before{content:"󰿬"}.mdi-numeric-10-circle-outline:before{content:"󰿭"}.mdi-numeric-2:before{content:"󰬻"}.mdi-numeric-2-box:before{content:"󰎧"}.mdi-numeric-2-box-multiple:before{content:"󰼐"}.mdi-numeric-2-box-multiple-outline:before{content:"󰎨"}.mdi-numeric-2-box-outline:before{content:"󰎩"}.mdi-numeric-2-circle:before{content:"󰲢"}.mdi-numeric-2-circle-outline:before{content:"󰲣"}.mdi-numeric-3:before{content:"󰬼"}.mdi-numeric-3-box:before{content:"󰎪"}.mdi-numeric-3-box-multiple:before{content:"󰼑"}.mdi-numeric-3-box-multiple-outline:before{content:"󰎫"}.mdi-numeric-3-box-outline:before{content:"󰎬"}.mdi-numeric-3-circle:before{content:"󰲤"}.mdi-numeric-3-circle-outline:before{content:"󰲥"}.mdi-numeric-4:before{content:"󰬽"}.mdi-numeric-4-box:before{content:"󰎭"}.mdi-numeric-4-box-multiple:before{content:"󰼒"}.mdi-numeric-4-box-multiple-outline:before{content:"󰎲"}.mdi-numeric-4-box-outline:before{content:"󰎮"}.mdi-numeric-4-circle:before{content:"󰲦"}.mdi-numeric-4-circle-outline:before{content:"󰲧"}.mdi-numeric-5:before{content:"󰬾"}.mdi-numeric-5-box:before{content:"󰎱"}.mdi-numeric-5-box-multiple:before{content:"󰼓"}.mdi-numeric-5-box-multiple-outline:before{content:"󰎯"}.mdi-numeric-5-box-outline:before{content:"󰎰"}.mdi-numeric-5-circle:before{content:"󰲨"}.mdi-numeric-5-circle-outline:before{content:"󰲩"}.mdi-numeric-6:before{content:"󰬿"}.mdi-numeric-6-box:before{content:"󰎳"}.mdi-numeric-6-box-multiple:before{content:"󰼔"}.mdi-numeric-6-box-multiple-outline:before{content:"󰎴"}.mdi-numeric-6-box-outline:before{content:"󰎵"}.mdi-numeric-6-circle:before{content:"󰲪"}.mdi-numeric-6-circle-outline:before{content:"󰲫"}.mdi-numeric-7:before{content:"󰭀"}.mdi-numeric-7-box:before{content:"󰎶"}.mdi-numeric-7-box-multiple:before{content:"󰼕"}.mdi-numeric-7-box-multiple-outline:before{content:"󰎷"}.mdi-numeric-7-box-outline:before{content:"󰎸"}.mdi-numeric-7-circle:before{content:"󰲬"}.mdi-numeric-7-circle-outline:before{content:"󰲭"}.mdi-numeric-8:before{content:"󰭁"}.mdi-numeric-8-box:before{content:"󰎹"}.mdi-numeric-8-box-multiple:before{content:"󰼖"}.mdi-numeric-8-box-multiple-outline:before{content:"󰎺"}.mdi-numeric-8-box-outline:before{content:"󰎻"}.mdi-numeric-8-circle:before{content:"󰲮"}.mdi-numeric-8-circle-outline:before{content:"󰲯"}.mdi-numeric-9:before{content:"󰭂"}.mdi-numeric-9-box:before{content:"󰎼"}.mdi-numeric-9-box-multiple:before{content:"󰼗"}.mdi-numeric-9-box-multiple-outline:before{content:"󰎽"}.mdi-numeric-9-box-outline:before{content:"󰎾"}.mdi-numeric-9-circle:before{content:"󰲰"}.mdi-numeric-9-circle-outline:before{content:"󰲱"}.mdi-numeric-9-plus:before{content:"󰿮"}.mdi-numeric-9-plus-box:before{content:"󰎿"}.mdi-numeric-9-plus-box-multiple:before{content:"󰼘"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"󰏀"}.mdi-numeric-9-plus-box-outline:before{content:"󰏁"}.mdi-numeric-9-plus-circle:before{content:"󰲲"}.mdi-numeric-9-plus-circle-outline:before{content:"󰲳"}.mdi-numeric-negative-1:before{content:"󱁒"}.mdi-numeric-off:before{content:"󱧓"}.mdi-numeric-positive-1:before{content:"󱗋"}.mdi-nut:before{content:"󰛸"}.mdi-nutrition:before{content:"󰏂"}.mdi-nuxt:before{content:"󱄆"}.mdi-oar:before{content:"󰙼"}.mdi-ocarina:before{content:"󰷠"}.mdi-oci:before{content:"󱋩"}.mdi-ocr:before{content:"󱄺"}.mdi-octagon:before{content:"󰏃"}.mdi-octagon-outline:before{content:"󰏄"}.mdi-octagram:before{content:"󰛹"}.mdi-octagram-edit:before{content:"󱰴"}.mdi-octagram-edit-outline:before{content:"󱰵"}.mdi-octagram-minus:before{content:"󱰶"}.mdi-octagram-minus-outline:before{content:"󱰷"}.mdi-octagram-outline:before{content:"󰝵"}.mdi-octagram-plus:before{content:"󱰸"}.mdi-octagram-plus-outline:before{content:"󱰹"}.mdi-octahedron:before{content:"󱥐"}.mdi-octahedron-off:before{content:"󱥑"}.mdi-odnoklassniki:before{content:"󰏅"}.mdi-offer:before{content:"󱈛"}.mdi-office-building:before{content:"󰦑"}.mdi-office-building-cog:before{content:"󱥉"}.mdi-office-building-cog-outline:before{content:"󱥊"}.mdi-office-building-marker:before{content:"󱔠"}.mdi-office-building-marker-outline:before{content:"󱔡"}.mdi-office-building-minus:before{content:"󱮪"}.mdi-office-building-minus-outline:before{content:"󱮫"}.mdi-office-building-outline:before{content:"󱔟"}.mdi-office-building-plus:before{content:"󱮨"}.mdi-office-building-plus-outline:before{content:"󱮩"}.mdi-office-building-remove:before{content:"󱮬"}.mdi-office-building-remove-outline:before{content:"󱮭"}.mdi-oil:before{content:"󰏇"}.mdi-oil-lamp:before{content:"󰼙"}.mdi-oil-level:before{content:"󱁓"}.mdi-oil-temperature:before{content:"󰿸"}.mdi-om:before{content:"󰥳"}.mdi-omega:before{content:"󰏉"}.mdi-one-up:before{content:"󰮭"}.mdi-onepassword:before{content:"󰢁"}.mdi-opacity:before{content:"󰗌"}.mdi-open-in-app:before{content:"󰏋"}.mdi-open-in-new:before{content:"󰏌"}.mdi-open-source-initiative:before{content:"󰮮"}.mdi-openid:before{content:"󰏍"}.mdi-opera:before{content:"󰏎"}.mdi-orbit:before{content:"󰀘"}.mdi-orbit-variant:before{content:"󱗛"}.mdi-order-alphabetical-ascending:before{content:"󰈍"}.mdi-order-alphabetical-descending:before{content:"󰴇"}.mdi-order-bool-ascending:before{content:"󰊾"}.mdi-order-bool-ascending-variant:before{content:"󰦏"}.mdi-order-bool-descending:before{content:"󱎄"}.mdi-order-bool-descending-variant:before{content:"󰦐"}.mdi-order-numeric-ascending:before{content:"󰕅"}.mdi-order-numeric-descending:before{content:"󰕆"}.mdi-origin:before{content:"󰭃"}.mdi-ornament:before{content:"󰏏"}.mdi-ornament-variant:before{content:"󰏐"}.mdi-outdoor-lamp:before{content:"󱁔"}.mdi-overscan:before{content:"󱀅"}.mdi-owl:before{content:"󰏒"}.mdi-pac-man:before{content:"󰮯"}.mdi-package:before{content:"󰏓"}.mdi-package-check:before{content:"󱭑"}.mdi-package-down:before{content:"󰏔"}.mdi-package-up:before{content:"󰏕"}.mdi-package-variant:before{content:"󰏖"}.mdi-package-variant-closed:before{content:"󰏗"}.mdi-package-variant-closed-check:before{content:"󱭒"}.mdi-package-variant-closed-minus:before{content:"󱧔"}.mdi-package-variant-closed-plus:before{content:"󱧕"}.mdi-package-variant-closed-remove:before{content:"󱧖"}.mdi-package-variant-minus:before{content:"󱧗"}.mdi-package-variant-plus:before{content:"󱧘"}.mdi-package-variant-remove:before{content:"󱧙"}.mdi-page-first:before{content:"󰘀"}.mdi-page-last:before{content:"󰘁"}.mdi-page-layout-body:before{content:"󰛺"}.mdi-page-layout-footer:before{content:"󰛻"}.mdi-page-layout-header:before{content:"󰛼"}.mdi-page-layout-header-footer:before{content:"󰽿"}.mdi-page-layout-sidebar-left:before{content:"󰛽"}.mdi-page-layout-sidebar-right:before{content:"󰛾"}.mdi-page-next:before{content:"󰮰"}.mdi-page-next-outline:before{content:"󰮱"}.mdi-page-previous:before{content:"󰮲"}.mdi-page-previous-outline:before{content:"󰮳"}.mdi-pail:before{content:"󱐗"}.mdi-pail-minus:before{content:"󱐷"}.mdi-pail-minus-outline:before{content:"󱐼"}.mdi-pail-off:before{content:"󱐹"}.mdi-pail-off-outline:before{content:"󱐾"}.mdi-pail-outline:before{content:"󱐺"}.mdi-pail-plus:before{content:"󱐶"}.mdi-pail-plus-outline:before{content:"󱐻"}.mdi-pail-remove:before{content:"󱐸"}.mdi-pail-remove-outline:before{content:"󱐽"}.mdi-palette:before{content:"󰏘"}.mdi-palette-advanced:before{content:"󰏙"}.mdi-palette-outline:before{content:"󰸌"}.mdi-palette-swatch:before{content:"󰢵"}.mdi-palette-swatch-outline:before{content:"󱍜"}.mdi-palette-swatch-variant:before{content:"󱥚"}.mdi-palm-tree:before{content:"󱁕"}.mdi-pan:before{content:"󰮴"}.mdi-pan-bottom-left:before{content:"󰮵"}.mdi-pan-bottom-right:before{content:"󰮶"}.mdi-pan-down:before{content:"󰮷"}.mdi-pan-horizontal:before{content:"󰮸"}.mdi-pan-left:before{content:"󰮹"}.mdi-pan-right:before{content:"󰮺"}.mdi-pan-top-left:before{content:"󰮻"}.mdi-pan-top-right:before{content:"󰮼"}.mdi-pan-up:before{content:"󰮽"}.mdi-pan-vertical:before{content:"󰮾"}.mdi-panda:before{content:"󰏚"}.mdi-pandora:before{content:"󰏛"}.mdi-panorama:before{content:"󰏜"}.mdi-panorama-fisheye:before{content:"󰏝"}.mdi-panorama-horizontal:before{content:"󱤨"}.mdi-panorama-horizontal-outline:before{content:"󰏞"}.mdi-panorama-outline:before{content:"󱦌"}.mdi-panorama-sphere:before{content:"󱦍"}.mdi-panorama-sphere-outline:before{content:"󱦎"}.mdi-panorama-variant:before{content:"󱦏"}.mdi-panorama-variant-outline:before{content:"󱦐"}.mdi-panorama-vertical:before{content:"󱤩"}.mdi-panorama-vertical-outline:before{content:"󰏟"}.mdi-panorama-wide-angle:before{content:"󱥟"}.mdi-panorama-wide-angle-outline:before{content:"󰏠"}.mdi-paper-cut-vertical:before{content:"󰏡"}.mdi-paper-roll:before{content:"󱅗"}.mdi-paper-roll-outline:before{content:"󱅘"}.mdi-paperclip:before{content:"󰏢"}.mdi-paperclip-check:before{content:"󱫆"}.mdi-paperclip-lock:before{content:"󱧚"}.mdi-paperclip-minus:before{content:"󱫇"}.mdi-paperclip-off:before{content:"󱫈"}.mdi-paperclip-plus:before{content:"󱫉"}.mdi-paperclip-remove:before{content:"󱫊"}.mdi-parachute:before{content:"󰲴"}.mdi-parachute-outline:before{content:"󰲵"}.mdi-paragliding:before{content:"󱝅"}.mdi-parking:before{content:"󰏣"}.mdi-party-popper:before{content:"󱁖"}.mdi-passport:before{content:"󰟣"}.mdi-passport-alert:before{content:"󱲸"}.mdi-passport-biometric:before{content:"󰷡"}.mdi-passport-cancel:before{content:"󱲹"}.mdi-passport-check:before{content:"󱲺"}.mdi-passport-minus:before{content:"󱲻"}.mdi-passport-plus:before{content:"󱲼"}.mdi-passport-remove:before{content:"󱲽"}.mdi-pasta:before{content:"󱅠"}.mdi-patio-heater:before{content:"󰾀"}.mdi-patreon:before{content:"󰢂"}.mdi-pause:before{content:"󰏤"}.mdi-pause-box:before{content:"󰂼"}.mdi-pause-box-outline:before{content:"󱭺"}.mdi-pause-circle:before{content:"󰏥"}.mdi-pause-circle-outline:before{content:"󰏦"}.mdi-pause-octagon:before{content:"󰏧"}.mdi-pause-octagon-outline:before{content:"󰏨"}.mdi-paw:before{content:"󰏩"}.mdi-paw-off:before{content:"󰙗"}.mdi-paw-off-outline:before{content:"󱙶"}.mdi-paw-outline:before{content:"󱙵"}.mdi-peace:before{content:"󰢄"}.mdi-peanut:before{content:"󰿼"}.mdi-peanut-off:before{content:"󰿽"}.mdi-peanut-off-outline:before{content:"󰿿"}.mdi-peanut-outline:before{content:"󰿾"}.mdi-pen:before{content:"󰏪"}.mdi-pen-lock:before{content:"󰷢"}.mdi-pen-minus:before{content:"󰷣"}.mdi-pen-off:before{content:"󰷤"}.mdi-pen-plus:before{content:"󰷥"}.mdi-pen-remove:before{content:"󰷦"}.mdi-pencil:before{content:"󰏫"}.mdi-pencil-box:before{content:"󰏬"}.mdi-pencil-box-multiple:before{content:"󱅄"}.mdi-pencil-box-multiple-outline:before{content:"󱅅"}.mdi-pencil-box-outline:before{content:"󰏭"}.mdi-pencil-circle:before{content:"󰛿"}.mdi-pencil-circle-outline:before{content:"󰝶"}.mdi-pencil-lock:before{content:"󰏮"}.mdi-pencil-lock-outline:before{content:"󰷧"}.mdi-pencil-minus:before{content:"󰷨"}.mdi-pencil-minus-outline:before{content:"󰷩"}.mdi-pencil-off:before{content:"󰏯"}.mdi-pencil-off-outline:before{content:"󰷪"}.mdi-pencil-outline:before{content:"󰲶"}.mdi-pencil-plus:before{content:"󰷫"}.mdi-pencil-plus-outline:before{content:"󰷬"}.mdi-pencil-remove:before{content:"󰷭"}.mdi-pencil-remove-outline:before{content:"󰷮"}.mdi-pencil-ruler:before{content:"󱍓"}.mdi-pencil-ruler-outline:before{content:"󱰑"}.mdi-penguin:before{content:"󰻀"}.mdi-pentagon:before{content:"󰜁"}.mdi-pentagon-outline:before{content:"󰜀"}.mdi-pentagram:before{content:"󱙧"}.mdi-percent:before{content:"󰏰"}.mdi-percent-box:before{content:"󱨂"}.mdi-percent-box-outline:before{content:"󱨃"}.mdi-percent-circle:before{content:"󱨄"}.mdi-percent-circle-outline:before{content:"󱨅"}.mdi-percent-outline:before{content:"󱉸"}.mdi-periodic-table:before{content:"󰢶"}.mdi-perspective-less:before{content:"󰴣"}.mdi-perspective-more:before{content:"󰴤"}.mdi-ph:before{content:"󱟅"}.mdi-phone:before{content:"󰏲"}.mdi-phone-alert:before{content:"󰼚"}.mdi-phone-alert-outline:before{content:"󱆎"}.mdi-phone-bluetooth:before{content:"󰏳"}.mdi-phone-bluetooth-outline:before{content:"󱆏"}.mdi-phone-cancel:before{content:"󱂼"}.mdi-phone-cancel-outline:before{content:"󱆐"}.mdi-phone-check:before{content:"󱆩"}.mdi-phone-check-outline:before{content:"󱆪"}.mdi-phone-classic:before{content:"󰘂"}.mdi-phone-classic-off:before{content:"󱉹"}.mdi-phone-clock:before{content:"󱧛"}.mdi-phone-dial:before{content:"󱕙"}.mdi-phone-dial-outline:before{content:"󱕚"}.mdi-phone-forward:before{content:"󰏴"}.mdi-phone-forward-outline:before{content:"󱆑"}.mdi-phone-hangup:before{content:"󰏵"}.mdi-phone-hangup-outline:before{content:"󱆒"}.mdi-phone-in-talk:before{content:"󰏶"}.mdi-phone-in-talk-outline:before{content:"󱆂"}.mdi-phone-incoming:before{content:"󰏷"}.mdi-phone-incoming-outgoing:before{content:"󱬿"}.mdi-phone-incoming-outgoing-outline:before{content:"󱭀"}.mdi-phone-incoming-outline:before{content:"󱆓"}.mdi-phone-lock:before{content:"󰏸"}.mdi-phone-lock-outline:before{content:"󱆔"}.mdi-phone-log:before{content:"󰏹"}.mdi-phone-log-outline:before{content:"󱆕"}.mdi-phone-message:before{content:"󱆖"}.mdi-phone-message-outline:before{content:"󱆗"}.mdi-phone-minus:before{content:"󰙘"}.mdi-phone-minus-outline:before{content:"󱆘"}.mdi-phone-missed:before{content:"󰏺"}.mdi-phone-missed-outline:before{content:"󱆥"}.mdi-phone-off:before{content:"󰷯"}.mdi-phone-off-outline:before{content:"󱆦"}.mdi-phone-outgoing:before{content:"󰏻"}.mdi-phone-outgoing-outline:before{content:"󱆙"}.mdi-phone-outline:before{content:"󰷰"}.mdi-phone-paused:before{content:"󰏼"}.mdi-phone-paused-outline:before{content:"󱆚"}.mdi-phone-plus:before{content:"󰙙"}.mdi-phone-plus-outline:before{content:"󱆛"}.mdi-phone-refresh:before{content:"󱦓"}.mdi-phone-refresh-outline:before{content:"󱦔"}.mdi-phone-remove:before{content:"󱔯"}.mdi-phone-remove-outline:before{content:"󱔰"}.mdi-phone-return:before{content:"󰠯"}.mdi-phone-return-outline:before{content:"󱆜"}.mdi-phone-ring:before{content:"󱆫"}.mdi-phone-ring-outline:before{content:"󱆬"}.mdi-phone-rotate-landscape:before{content:"󰢅"}.mdi-phone-rotate-portrait:before{content:"󰢆"}.mdi-phone-settings:before{content:"󰏽"}.mdi-phone-settings-outline:before{content:"󱆝"}.mdi-phone-sync:before{content:"󱦕"}.mdi-phone-sync-outline:before{content:"󱦖"}.mdi-phone-voip:before{content:"󰏾"}.mdi-pi:before{content:"󰏿"}.mdi-pi-box:before{content:"󰐀"}.mdi-pi-hole:before{content:"󰷱"}.mdi-piano:before{content:"󰙽"}.mdi-piano-off:before{content:"󰚘"}.mdi-pickaxe:before{content:"󰢷"}.mdi-picture-in-picture-bottom-right:before{content:"󰹗"}.mdi-picture-in-picture-bottom-right-outline:before{content:"󰹘"}.mdi-picture-in-picture-top-right:before{content:"󰹙"}.mdi-picture-in-picture-top-right-outline:before{content:"󰹚"}.mdi-pier:before{content:"󰢇"}.mdi-pier-crane:before{content:"󰢈"}.mdi-pig:before{content:"󰐁"}.mdi-pig-variant:before{content:"󱀆"}.mdi-pig-variant-outline:before{content:"󱙸"}.mdi-piggy-bank:before{content:"󱀇"}.mdi-piggy-bank-outline:before{content:"󱙹"}.mdi-pill:before{content:"󰐂"}.mdi-pill-multiple:before{content:"󱭌"}.mdi-pill-off:before{content:"󱩜"}.mdi-pillar:before{content:"󰜂"}.mdi-pin:before{content:"󰐃"}.mdi-pin-off:before{content:"󰐄"}.mdi-pin-off-outline:before{content:"󰤰"}.mdi-pin-outline:before{content:"󰤱"}.mdi-pine-tree:before{content:"󰐅"}.mdi-pine-tree-box:before{content:"󰐆"}.mdi-pine-tree-fire:before{content:"󱐚"}.mdi-pine-tree-variant:before{content:"󱱳"}.mdi-pine-tree-variant-outline:before{content:"󱱴"}.mdi-pinterest:before{content:"󰐇"}.mdi-pinwheel:before{content:"󰫕"}.mdi-pinwheel-outline:before{content:"󰫖"}.mdi-pipe:before{content:"󰟥"}.mdi-pipe-disconnected:before{content:"󰟦"}.mdi-pipe-leak:before{content:"󰢉"}.mdi-pipe-valve:before{content:"󱡍"}.mdi-pipe-wrench:before{content:"󱍔"}.mdi-pirate:before{content:"󰨈"}.mdi-pistol:before{content:"󰜃"}.mdi-piston:before{content:"󰢊"}.mdi-pitchfork:before{content:"󱕓"}.mdi-pizza:before{content:"󰐉"}.mdi-plane-car:before{content:"󱫿"}.mdi-plane-train:before{content:"󱬀"}.mdi-play:before{content:"󰐊"}.mdi-play-box:before{content:"󱉺"}.mdi-play-box-edit-outline:before{content:"󱰺"}.mdi-play-box-lock:before{content:"󱨖"}.mdi-play-box-lock-open:before{content:"󱨗"}.mdi-play-box-lock-open-outline:before{content:"󱨘"}.mdi-play-box-lock-outline:before{content:"󱨙"}.mdi-play-box-multiple:before{content:"󰴙"}.mdi-play-box-multiple-outline:before{content:"󱏦"}.mdi-play-box-outline:before{content:"󰐋"}.mdi-play-circle:before{content:"󰐌"}.mdi-play-circle-outline:before{content:"󰐍"}.mdi-play-network:before{content:"󰢋"}.mdi-play-network-outline:before{content:"󰲷"}.mdi-play-outline:before{content:"󰼛"}.mdi-play-pause:before{content:"󰐎"}.mdi-play-protected-content:before{content:"󰐏"}.mdi-play-speed:before{content:"󰣿"}.mdi-playlist-check:before{content:"󰗇"}.mdi-playlist-edit:before{content:"󰤀"}.mdi-playlist-minus:before{content:"󰐐"}.mdi-playlist-music:before{content:"󰲸"}.mdi-playlist-music-outline:before{content:"󰲹"}.mdi-playlist-play:before{content:"󰐑"}.mdi-playlist-plus:before{content:"󰐒"}.mdi-playlist-remove:before{content:"󰐓"}.mdi-playlist-star:before{content:"󰷲"}.mdi-plex:before{content:"󰚺"}.mdi-pliers:before{content:"󱦤"}.mdi-plus:before{content:"󰐕"}.mdi-plus-box:before{content:"󰐖"}.mdi-plus-box-multiple:before{content:"󰌴"}.mdi-plus-box-multiple-outline:before{content:"󱅃"}.mdi-plus-box-outline:before{content:"󰜄"}.mdi-plus-circle:before{content:"󰐗"}.mdi-plus-circle-multiple:before{content:"󰍌"}.mdi-plus-circle-multiple-outline:before{content:"󰐘"}.mdi-plus-circle-outline:before{content:"󰐙"}.mdi-plus-lock:before{content:"󱩝"}.mdi-plus-lock-open:before{content:"󱩞"}.mdi-plus-minus:before{content:"󰦒"}.mdi-plus-minus-box:before{content:"󰦓"}.mdi-plus-minus-variant:before{content:"󱓉"}.mdi-plus-network:before{content:"󰐚"}.mdi-plus-network-outline:before{content:"󰲺"}.mdi-plus-outline:before{content:"󰜅"}.mdi-plus-thick:before{content:"󱇬"}.mdi-pocket:before{content:"󱲾"}.mdi-podcast:before{content:"󰦔"}.mdi-podium:before{content:"󰴥"}.mdi-podium-bronze:before{content:"󰴦"}.mdi-podium-gold:before{content:"󰴧"}.mdi-podium-silver:before{content:"󰴨"}.mdi-point-of-sale:before{content:"󰶒"}.mdi-pokeball:before{content:"󰐝"}.mdi-pokemon-go:before{content:"󰨉"}.mdi-poker-chip:before{content:"󰠰"}.mdi-polaroid:before{content:"󰐞"}.mdi-police-badge:before{content:"󱅧"}.mdi-police-badge-outline:before{content:"󱅨"}.mdi-police-station:before{content:"󱠹"}.mdi-poll:before{content:"󰐟"}.mdi-polo:before{content:"󱓃"}.mdi-polymer:before{content:"󰐡"}.mdi-pool:before{content:"󰘆"}.mdi-pool-thermometer:before{content:"󱩟"}.mdi-popcorn:before{content:"󰐢"}.mdi-post:before{content:"󱀈"}.mdi-post-lamp:before{content:"󱩠"}.mdi-post-outline:before{content:"󱀉"}.mdi-postage-stamp:before{content:"󰲻"}.mdi-pot:before{content:"󰋥"}.mdi-pot-mix:before{content:"󰙛"}.mdi-pot-mix-outline:before{content:"󰙷"}.mdi-pot-outline:before{content:"󰋿"}.mdi-pot-steam:before{content:"󰙚"}.mdi-pot-steam-outline:before{content:"󰌦"}.mdi-pound:before{content:"󰐣"}.mdi-pound-box:before{content:"󰐤"}.mdi-pound-box-outline:before{content:"󱅿"}.mdi-power:before{content:"󰐥"}.mdi-power-cycle:before{content:"󰤁"}.mdi-power-off:before{content:"󰤂"}.mdi-power-on:before{content:"󰤃"}.mdi-power-plug:before{content:"󰚥"}.mdi-power-plug-battery:before{content:"󱰻"}.mdi-power-plug-battery-outline:before{content:"󱰼"}.mdi-power-plug-off:before{content:"󰚦"}.mdi-power-plug-off-outline:before{content:"󱐤"}.mdi-power-plug-outline:before{content:"󱐥"}.mdi-power-settings:before{content:"󰐦"}.mdi-power-sleep:before{content:"󰤄"}.mdi-power-socket:before{content:"󰐧"}.mdi-power-socket-au:before{content:"󰤅"}.mdi-power-socket-ch:before{content:"󰾳"}.mdi-power-socket-de:before{content:"󱄇"}.mdi-power-socket-eu:before{content:"󰟧"}.mdi-power-socket-fr:before{content:"󱄈"}.mdi-power-socket-it:before{content:"󱓿"}.mdi-power-socket-jp:before{content:"󱄉"}.mdi-power-socket-uk:before{content:"󰟨"}.mdi-power-socket-us:before{content:"󰟩"}.mdi-power-standby:before{content:"󰤆"}.mdi-powershell:before{content:"󰨊"}.mdi-prescription:before{content:"󰜆"}.mdi-presentation:before{content:"󰐨"}.mdi-presentation-play:before{content:"󰐩"}.mdi-pretzel:before{content:"󱕢"}.mdi-printer:before{content:"󰐪"}.mdi-printer-3d:before{content:"󰐫"}.mdi-printer-3d-nozzle:before{content:"󰹛"}.mdi-printer-3d-nozzle-alert:before{content:"󱇀"}.mdi-printer-3d-nozzle-alert-outline:before{content:"󱇁"}.mdi-printer-3d-nozzle-heat:before{content:"󱢸"}.mdi-printer-3d-nozzle-heat-outline:before{content:"󱢹"}.mdi-printer-3d-nozzle-off:before{content:"󱬙"}.mdi-printer-3d-nozzle-off-outline:before{content:"󱬚"}.mdi-printer-3d-nozzle-outline:before{content:"󰹜"}.mdi-printer-3d-off:before{content:"󱬎"}.mdi-printer-alert:before{content:"󰐬"}.mdi-printer-check:before{content:"󱅆"}.mdi-printer-eye:before{content:"󱑘"}.mdi-printer-off:before{content:"󰹝"}.mdi-printer-off-outline:before{content:"󱞅"}.mdi-printer-outline:before{content:"󱞆"}.mdi-printer-pos:before{content:"󱁗"}.mdi-printer-pos-alert:before{content:"󱮼"}.mdi-printer-pos-alert-outline:before{content:"󱮽"}.mdi-printer-pos-cancel:before{content:"󱮾"}.mdi-printer-pos-cancel-outline:before{content:"󱮿"}.mdi-printer-pos-check:before{content:"󱯀"}.mdi-printer-pos-check-outline:before{content:"󱯁"}.mdi-printer-pos-cog:before{content:"󱯂"}.mdi-printer-pos-cog-outline:before{content:"󱯃"}.mdi-printer-pos-edit:before{content:"󱯄"}.mdi-printer-pos-edit-outline:before{content:"󱯅"}.mdi-printer-pos-minus:before{content:"󱯆"}.mdi-printer-pos-minus-outline:before{content:"󱯇"}.mdi-printer-pos-network:before{content:"󱯈"}.mdi-printer-pos-network-outline:before{content:"󱯉"}.mdi-printer-pos-off:before{content:"󱯊"}.mdi-printer-pos-off-outline:before{content:"󱯋"}.mdi-printer-pos-outline:before{content:"󱯌"}.mdi-printer-pos-pause:before{content:"󱯍"}.mdi-printer-pos-pause-outline:before{content:"󱯎"}.mdi-printer-pos-play:before{content:"󱯏"}.mdi-printer-pos-play-outline:before{content:"󱯐"}.mdi-printer-pos-plus:before{content:"󱯑"}.mdi-printer-pos-plus-outline:before{content:"󱯒"}.mdi-printer-pos-refresh:before{content:"󱯓"}.mdi-printer-pos-refresh-outline:before{content:"󱯔"}.mdi-printer-pos-remove:before{content:"󱯕"}.mdi-printer-pos-remove-outline:before{content:"󱯖"}.mdi-printer-pos-star:before{content:"󱯗"}.mdi-printer-pos-star-outline:before{content:"󱯘"}.mdi-printer-pos-stop:before{content:"󱯙"}.mdi-printer-pos-stop-outline:before{content:"󱯚"}.mdi-printer-pos-sync:before{content:"󱯛"}.mdi-printer-pos-sync-outline:before{content:"󱯜"}.mdi-printer-pos-wrench:before{content:"󱯝"}.mdi-printer-pos-wrench-outline:before{content:"󱯞"}.mdi-printer-search:before{content:"󱑗"}.mdi-printer-settings:before{content:"󰜇"}.mdi-printer-wireless:before{content:"󰨋"}.mdi-priority-high:before{content:"󰘃"}.mdi-priority-low:before{content:"󰘄"}.mdi-professional-hexagon:before{content:"󰐭"}.mdi-progress-alert:before{content:"󰲼"}.mdi-progress-check:before{content:"󰦕"}.mdi-progress-clock:before{content:"󰦖"}.mdi-progress-close:before{content:"󱄊"}.mdi-progress-download:before{content:"󰦗"}.mdi-progress-helper:before{content:"󱮢"}.mdi-progress-pencil:before{content:"󱞇"}.mdi-progress-question:before{content:"󱔢"}.mdi-progress-star:before{content:"󱞈"}.mdi-progress-star-four-points:before{content:"󱰽"}.mdi-progress-upload:before{content:"󰦘"}.mdi-progress-wrench:before{content:"󰲽"}.mdi-projector:before{content:"󰐮"}.mdi-projector-off:before{content:"󱨣"}.mdi-projector-screen:before{content:"󰐯"}.mdi-projector-screen-off:before{content:"󱠍"}.mdi-projector-screen-off-outline:before{content:"󱠎"}.mdi-projector-screen-outline:before{content:"󱜤"}.mdi-projector-screen-variant:before{content:"󱠏"}.mdi-projector-screen-variant-off:before{content:"󱠐"}.mdi-projector-screen-variant-off-outline:before{content:"󱠑"}.mdi-projector-screen-variant-outline:before{content:"󱠒"}.mdi-propane-tank:before{content:"󱍗"}.mdi-propane-tank-outline:before{content:"󱍘"}.mdi-protocol:before{content:"󰿘"}.mdi-publish:before{content:"󰚧"}.mdi-publish-off:before{content:"󱥅"}.mdi-pulse:before{content:"󰐰"}.mdi-pump:before{content:"󱐂"}.mdi-pump-off:before{content:"󱬢"}.mdi-pumpkin:before{content:"󰮿"}.mdi-purse:before{content:"󰼜"}.mdi-purse-outline:before{content:"󰼝"}.mdi-puzzle:before{content:"󰐱"}.mdi-puzzle-check:before{content:"󱐦"}.mdi-puzzle-check-outline:before{content:"󱐧"}.mdi-puzzle-edit:before{content:"󱓓"}.mdi-puzzle-edit-outline:before{content:"󱓙"}.mdi-puzzle-heart:before{content:"󱓔"}.mdi-puzzle-heart-outline:before{content:"󱓚"}.mdi-puzzle-minus:before{content:"󱓑"}.mdi-puzzle-minus-outline:before{content:"󱓗"}.mdi-puzzle-outline:before{content:"󰩦"}.mdi-puzzle-plus:before{content:"󱓐"}.mdi-puzzle-plus-outline:before{content:"󱓖"}.mdi-puzzle-remove:before{content:"󱓒"}.mdi-puzzle-remove-outline:before{content:"󱓘"}.mdi-puzzle-star:before{content:"󱓕"}.mdi-puzzle-star-outline:before{content:"󱓛"}.mdi-pyramid:before{content:"󱥒"}.mdi-pyramid-off:before{content:"󱥓"}.mdi-qi:before{content:"󰦙"}.mdi-qqchat:before{content:"󰘅"}.mdi-qrcode:before{content:"󰐲"}.mdi-qrcode-edit:before{content:"󰢸"}.mdi-qrcode-minus:before{content:"󱆌"}.mdi-qrcode-plus:before{content:"󱆋"}.mdi-qrcode-remove:before{content:"󱆍"}.mdi-qrcode-scan:before{content:"󰐳"}.mdi-quadcopter:before{content:"󰐴"}.mdi-quality-high:before{content:"󰐵"}.mdi-quality-low:before{content:"󰨌"}.mdi-quality-medium:before{content:"󰨍"}.mdi-queue-first-in-last-out:before{content:"󱲯"}.mdi-quora:before{content:"󰴩"}.mdi-rabbit:before{content:"󰤇"}.mdi-rabbit-variant:before{content:"󱩡"}.mdi-rabbit-variant-outline:before{content:"󱩢"}.mdi-racing-helmet:before{content:"󰶓"}.mdi-racquetball:before{content:"󰶔"}.mdi-radar:before{content:"󰐷"}.mdi-radiator:before{content:"󰐸"}.mdi-radiator-disabled:before{content:"󰫗"}.mdi-radiator-off:before{content:"󰫘"}.mdi-radio:before{content:"󰐹"}.mdi-radio-am:before{content:"󰲾"}.mdi-radio-fm:before{content:"󰲿"}.mdi-radio-handheld:before{content:"󰐺"}.mdi-radio-off:before{content:"󱈜"}.mdi-radio-tower:before{content:"󰐻"}.mdi-radioactive:before{content:"󰐼"}.mdi-radioactive-circle:before{content:"󱡝"}.mdi-radioactive-circle-outline:before{content:"󱡞"}.mdi-radioactive-off:before{content:"󰻁"}.mdi-radiobox-blank:before{content:"󰐽"}.mdi-radiobox-indeterminate-variant:before{content:"󱱞"}.mdi-radiobox-marked:before{content:"󰐾"}.mdi-radiology-box:before{content:"󱓅"}.mdi-radiology-box-outline:before{content:"󱓆"}.mdi-radius:before{content:"󰳀"}.mdi-radius-outline:before{content:"󰳁"}.mdi-railroad-light:before{content:"󰼞"}.mdi-rake:before{content:"󱕄"}.mdi-raspberry-pi:before{content:"󰐿"}.mdi-raw:before{content:"󱨏"}.mdi-raw-off:before{content:"󱨐"}.mdi-ray-end:before{content:"󰑀"}.mdi-ray-end-arrow:before{content:"󰑁"}.mdi-ray-start:before{content:"󰑂"}.mdi-ray-start-arrow:before{content:"󰑃"}.mdi-ray-start-end:before{content:"󰑄"}.mdi-ray-start-vertex-end:before{content:"󱗘"}.mdi-ray-vertex:before{content:"󰑅"}.mdi-razor-double-edge:before{content:"󱦗"}.mdi-razor-single-edge:before{content:"󱦘"}.mdi-react:before{content:"󰜈"}.mdi-read:before{content:"󰑇"}.mdi-receipt:before{content:"󰠤"}.mdi-receipt-clock:before{content:"󱰾"}.mdi-receipt-clock-outline:before{content:"󱰿"}.mdi-receipt-outline:before{content:"󰓷"}.mdi-receipt-send:before{content:"󱱀"}.mdi-receipt-send-outline:before{content:"󱱁"}.mdi-receipt-text:before{content:"󰑉"}.mdi-receipt-text-arrow-left:before{content:"󱱂"}.mdi-receipt-text-arrow-left-outline:before{content:"󱱃"}.mdi-receipt-text-arrow-right:before{content:"󱱄"}.mdi-receipt-text-arrow-right-outline:before{content:"󱱅"}.mdi-receipt-text-check:before{content:"󱩣"}.mdi-receipt-text-check-outline:before{content:"󱩤"}.mdi-receipt-text-clock:before{content:"󱱆"}.mdi-receipt-text-clock-outline:before{content:"󱱇"}.mdi-receipt-text-edit:before{content:"󱱈"}.mdi-receipt-text-edit-outline:before{content:"󱱉"}.mdi-receipt-text-minus:before{content:"󱩥"}.mdi-receipt-text-minus-outline:before{content:"󱩦"}.mdi-receipt-text-outline:before{content:"󱧜"}.mdi-receipt-text-plus:before{content:"󱩧"}.mdi-receipt-text-plus-outline:before{content:"󱩨"}.mdi-receipt-text-remove:before{content:"󱩩"}.mdi-receipt-text-remove-outline:before{content:"󱩪"}.mdi-receipt-text-send:before{content:"󱱊"}.mdi-receipt-text-send-outline:before{content:"󱱋"}.mdi-record:before{content:"󰑊"}.mdi-record-circle:before{content:"󰻂"}.mdi-record-circle-outline:before{content:"󰻃"}.mdi-record-player:before{content:"󰦚"}.mdi-record-rec:before{content:"󰑋"}.mdi-rectangle:before{content:"󰹞"}.mdi-rectangle-outline:before{content:"󰹟"}.mdi-recycle:before{content:"󰑌"}.mdi-recycle-variant:before{content:"󱎝"}.mdi-reddit:before{content:"󰑍"}.mdi-redhat:before{content:"󱄛"}.mdi-redo:before{content:"󰑎"}.mdi-redo-variant:before{content:"󰑏"}.mdi-reflect-horizontal:before{content:"󰨎"}.mdi-reflect-vertical:before{content:"󰨏"}.mdi-refresh:before{content:"󰑐"}.mdi-refresh-auto:before{content:"󱣲"}.mdi-refresh-circle:before{content:"󱍷"}.mdi-regex:before{content:"󰑑"}.mdi-registered-trademark:before{content:"󰩧"}.mdi-reiterate:before{content:"󱖈"}.mdi-relation-many-to-many:before{content:"󱒖"}.mdi-relation-many-to-one:before{content:"󱒗"}.mdi-relation-many-to-one-or-many:before{content:"󱒘"}.mdi-relation-many-to-only-one:before{content:"󱒙"}.mdi-relation-many-to-zero-or-many:before{content:"󱒚"}.mdi-relation-many-to-zero-or-one:before{content:"󱒛"}.mdi-relation-one-or-many-to-many:before{content:"󱒜"}.mdi-relation-one-or-many-to-one:before{content:"󱒝"}.mdi-relation-one-or-many-to-one-or-many:before{content:"󱒞"}.mdi-relation-one-or-many-to-only-one:before{content:"󱒟"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"󱒠"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"󱒡"}.mdi-relation-one-to-many:before{content:"󱒢"}.mdi-relation-one-to-one:before{content:"󱒣"}.mdi-relation-one-to-one-or-many:before{content:"󱒤"}.mdi-relation-one-to-only-one:before{content:"󱒥"}.mdi-relation-one-to-zero-or-many:before{content:"󱒦"}.mdi-relation-one-to-zero-or-one:before{content:"󱒧"}.mdi-relation-only-one-to-many:before{content:"󱒨"}.mdi-relation-only-one-to-one:before{content:"󱒩"}.mdi-relation-only-one-to-one-or-many:before{content:"󱒪"}.mdi-relation-only-one-to-only-one:before{content:"󱒫"}.mdi-relation-only-one-to-zero-or-many:before{content:"󱒬"}.mdi-relation-only-one-to-zero-or-one:before{content:"󱒭"}.mdi-relation-zero-or-many-to-many:before{content:"󱒮"}.mdi-relation-zero-or-many-to-one:before{content:"󱒯"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"󱒰"}.mdi-relation-zero-or-many-to-only-one:before{content:"󱒱"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"󱒲"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"󱒳"}.mdi-relation-zero-or-one-to-many:before{content:"󱒴"}.mdi-relation-zero-or-one-to-one:before{content:"󱒵"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"󱒶"}.mdi-relation-zero-or-one-to-only-one:before{content:"󱒷"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"󱒸"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"󱒹"}.mdi-relative-scale:before{content:"󰑒"}.mdi-reload:before{content:"󰑓"}.mdi-reload-alert:before{content:"󱄋"}.mdi-reminder:before{content:"󰢌"}.mdi-remote:before{content:"󰑔"}.mdi-remote-desktop:before{content:"󰢹"}.mdi-remote-off:before{content:"󰻄"}.mdi-remote-tv:before{content:"󰻅"}.mdi-remote-tv-off:before{content:"󰻆"}.mdi-rename:before{content:"󱰘"}.mdi-rename-box:before{content:"󰑕"}.mdi-rename-box-outline:before{content:"󱰙"}.mdi-rename-outline:before{content:"󱰚"}.mdi-reorder-horizontal:before{content:"󰚈"}.mdi-reorder-vertical:before{content:"󰚉"}.mdi-repeat:before{content:"󰑖"}.mdi-repeat-off:before{content:"󰑗"}.mdi-repeat-once:before{content:"󰑘"}.mdi-repeat-variant:before{content:"󰕇"}.mdi-replay:before{content:"󰑙"}.mdi-reply:before{content:"󰑚"}.mdi-reply-all:before{content:"󰑛"}.mdi-reply-all-outline:before{content:"󰼟"}.mdi-reply-circle:before{content:"󱆮"}.mdi-reply-outline:before{content:"󰼠"}.mdi-reproduction:before{content:"󰑜"}.mdi-resistor:before{content:"󰭄"}.mdi-resistor-nodes:before{content:"󰭅"}.mdi-resize:before{content:"󰩨"}.mdi-resize-bottom-right:before{content:"󰑝"}.mdi-responsive:before{content:"󰑞"}.mdi-restart:before{content:"󰜉"}.mdi-restart-alert:before{content:"󱄌"}.mdi-restart-off:before{content:"󰶕"}.mdi-restore:before{content:"󰦛"}.mdi-restore-alert:before{content:"󱄍"}.mdi-rewind:before{content:"󰑟"}.mdi-rewind-10:before{content:"󰴪"}.mdi-rewind-15:before{content:"󱥆"}.mdi-rewind-30:before{content:"󰶖"}.mdi-rewind-45:before{content:"󱬓"}.mdi-rewind-5:before{content:"󱇹"}.mdi-rewind-60:before{content:"󱘌"}.mdi-rewind-outline:before{content:"󰜊"}.mdi-rhombus:before{content:"󰜋"}.mdi-rhombus-medium:before{content:"󰨐"}.mdi-rhombus-medium-outline:before{content:"󱓜"}.mdi-rhombus-outline:before{content:"󰜌"}.mdi-rhombus-split:before{content:"󰨑"}.mdi-rhombus-split-outline:before{content:"󱓝"}.mdi-ribbon:before{content:"󰑠"}.mdi-rice:before{content:"󰟪"}.mdi-rickshaw:before{content:"󱖻"}.mdi-rickshaw-electric:before{content:"󱖼"}.mdi-ring:before{content:"󰟫"}.mdi-rivet:before{content:"󰹠"}.mdi-road:before{content:"󰑡"}.mdi-road-variant:before{content:"󰑢"}.mdi-robber:before{content:"󱁘"}.mdi-robot:before{content:"󰚩"}.mdi-robot-angry:before{content:"󱚝"}.mdi-robot-angry-outline:before{content:"󱚞"}.mdi-robot-confused:before{content:"󱚟"}.mdi-robot-confused-outline:before{content:"󱚠"}.mdi-robot-dead:before{content:"󱚡"}.mdi-robot-dead-outline:before{content:"󱚢"}.mdi-robot-excited:before{content:"󱚣"}.mdi-robot-excited-outline:before{content:"󱚤"}.mdi-robot-happy:before{content:"󱜙"}.mdi-robot-happy-outline:before{content:"󱜚"}.mdi-robot-industrial:before{content:"󰭆"}.mdi-robot-industrial-outline:before{content:"󱨚"}.mdi-robot-love:before{content:"󱚥"}.mdi-robot-love-outline:before{content:"󱚦"}.mdi-robot-mower:before{content:"󱇷"}.mdi-robot-mower-outline:before{content:"󱇳"}.mdi-robot-off:before{content:"󱚧"}.mdi-robot-off-outline:before{content:"󱙻"}.mdi-robot-outline:before{content:"󱙺"}.mdi-robot-vacuum:before{content:"󰜍"}.mdi-robot-vacuum-alert:before{content:"󱭝"}.mdi-robot-vacuum-off:before{content:"󱰁"}.mdi-robot-vacuum-variant:before{content:"󰤈"}.mdi-robot-vacuum-variant-alert:before{content:"󱭞"}.mdi-robot-vacuum-variant-off:before{content:"󱰂"}.mdi-rocket:before{content:"󰑣"}.mdi-rocket-launch:before{content:"󱓞"}.mdi-rocket-launch-outline:before{content:"󱓟"}.mdi-rocket-outline:before{content:"󱎯"}.mdi-rodent:before{content:"󱌧"}.mdi-roller-shade:before{content:"󱩫"}.mdi-roller-shade-closed:before{content:"󱩬"}.mdi-roller-skate:before{content:"󰴫"}.mdi-roller-skate-off:before{content:"󰅅"}.mdi-rollerblade:before{content:"󰴬"}.mdi-rollerblade-off:before{content:"󰀮"}.mdi-rollupjs:before{content:"󰯀"}.mdi-rolodex:before{content:"󱪹"}.mdi-rolodex-outline:before{content:"󱪺"}.mdi-roman-numeral-1:before{content:"󱂈"}.mdi-roman-numeral-10:before{content:"󱂑"}.mdi-roman-numeral-2:before{content:"󱂉"}.mdi-roman-numeral-3:before{content:"󱂊"}.mdi-roman-numeral-4:before{content:"󱂋"}.mdi-roman-numeral-5:before{content:"󱂌"}.mdi-roman-numeral-6:before{content:"󱂍"}.mdi-roman-numeral-7:before{content:"󱂎"}.mdi-roman-numeral-8:before{content:"󱂏"}.mdi-roman-numeral-9:before{content:"󱂐"}.mdi-room-service:before{content:"󰢍"}.mdi-room-service-outline:before{content:"󰶗"}.mdi-rotate-360:before{content:"󱦙"}.mdi-rotate-3d:before{content:"󰻇"}.mdi-rotate-3d-variant:before{content:"󰑤"}.mdi-rotate-left:before{content:"󰑥"}.mdi-rotate-left-variant:before{content:"󰑦"}.mdi-rotate-orbit:before{content:"󰶘"}.mdi-rotate-right:before{content:"󰑧"}.mdi-rotate-right-variant:before{content:"󰑨"}.mdi-rounded-corner:before{content:"󰘇"}.mdi-router:before{content:"󱇢"}.mdi-router-network:before{content:"󱂇"}.mdi-router-network-wireless:before{content:"󱲗"}.mdi-router-wireless:before{content:"󰑩"}.mdi-router-wireless-off:before{content:"󱖣"}.mdi-router-wireless-settings:before{content:"󰩩"}.mdi-routes:before{content:"󰑪"}.mdi-routes-clock:before{content:"󱁙"}.mdi-rowing:before{content:"󰘈"}.mdi-rss:before{content:"󰑫"}.mdi-rss-box:before{content:"󰑬"}.mdi-rss-off:before{content:"󰼡"}.mdi-rug:before{content:"󱑵"}.mdi-rugby:before{content:"󰶙"}.mdi-ruler:before{content:"󰑭"}.mdi-ruler-square:before{content:"󰳂"}.mdi-ruler-square-compass:before{content:"󰺾"}.mdi-run:before{content:"󰜎"}.mdi-run-fast:before{content:"󰑮"}.mdi-rv-truck:before{content:"󱇔"}.mdi-sack:before{content:"󰴮"}.mdi-sack-outline:before{content:"󱱌"}.mdi-sack-percent:before{content:"󰴯"}.mdi-safe:before{content:"󰩪"}.mdi-safe-square:before{content:"󱉼"}.mdi-safe-square-outline:before{content:"󱉽"}.mdi-safety-goggles:before{content:"󰴰"}.mdi-sail-boat:before{content:"󰻈"}.mdi-sail-boat-sink:before{content:"󱫯"}.mdi-sale:before{content:"󰑯"}.mdi-sale-outline:before{content:"󱨆"}.mdi-salesforce:before{content:"󰢎"}.mdi-sass:before{content:"󰟬"}.mdi-satellite:before{content:"󰑰"}.mdi-satellite-uplink:before{content:"󰤉"}.mdi-satellite-variant:before{content:"󰑱"}.mdi-sausage:before{content:"󰢺"}.mdi-sausage-off:before{content:"󱞉"}.mdi-saw-blade:before{content:"󰹡"}.mdi-sawtooth-wave:before{content:"󱑺"}.mdi-saxophone:before{content:"󰘉"}.mdi-scale:before{content:"󰑲"}.mdi-scale-balance:before{content:"󰗑"}.mdi-scale-bathroom:before{content:"󰑳"}.mdi-scale-off:before{content:"󱁚"}.mdi-scale-unbalanced:before{content:"󱦸"}.mdi-scan-helper:before{content:"󱏘"}.mdi-scanner:before{content:"󰚫"}.mdi-scanner-off:before{content:"󰤊"}.mdi-scatter-plot:before{content:"󰻉"}.mdi-scatter-plot-outline:before{content:"󰻊"}.mdi-scent:before{content:"󱥘"}.mdi-scent-off:before{content:"󱥙"}.mdi-school:before{content:"󰑴"}.mdi-school-outline:before{content:"󱆀"}.mdi-scissors-cutting:before{content:"󰩫"}.mdi-scooter:before{content:"󱖽"}.mdi-scooter-electric:before{content:"󱖾"}.mdi-scoreboard:before{content:"󱉾"}.mdi-scoreboard-outline:before{content:"󱉿"}.mdi-screen-rotation:before{content:"󰑵"}.mdi-screen-rotation-lock:before{content:"󰑸"}.mdi-screw-flat-top:before{content:"󰷳"}.mdi-screw-lag:before{content:"󰷴"}.mdi-screw-machine-flat-top:before{content:"󰷵"}.mdi-screw-machine-round-top:before{content:"󰷶"}.mdi-screw-round-top:before{content:"󰷷"}.mdi-screwdriver:before{content:"󰑶"}.mdi-script:before{content:"󰯁"}.mdi-script-outline:before{content:"󰑷"}.mdi-script-text:before{content:"󰯂"}.mdi-script-text-key:before{content:"󱜥"}.mdi-script-text-key-outline:before{content:"󱜦"}.mdi-script-text-outline:before{content:"󰯃"}.mdi-script-text-play:before{content:"󱜧"}.mdi-script-text-play-outline:before{content:"󱜨"}.mdi-sd:before{content:"󰑹"}.mdi-seal:before{content:"󰑺"}.mdi-seal-variant:before{content:"󰿙"}.mdi-search-web:before{content:"󰜏"}.mdi-seat:before{content:"󰳃"}.mdi-seat-flat:before{content:"󰑻"}.mdi-seat-flat-angled:before{content:"󰑼"}.mdi-seat-individual-suite:before{content:"󰑽"}.mdi-seat-legroom-extra:before{content:"󰑾"}.mdi-seat-legroom-normal:before{content:"󰑿"}.mdi-seat-legroom-reduced:before{content:"󰒀"}.mdi-seat-outline:before{content:"󰳄"}.mdi-seat-passenger:before{content:"󱉉"}.mdi-seat-recline-extra:before{content:"󰒁"}.mdi-seat-recline-normal:before{content:"󰒂"}.mdi-seatbelt:before{content:"󰳅"}.mdi-security:before{content:"󰒃"}.mdi-security-network:before{content:"󰒄"}.mdi-seed:before{content:"󰹢"}.mdi-seed-off:before{content:"󱏽"}.mdi-seed-off-outline:before{content:"󱏾"}.mdi-seed-outline:before{content:"󰹣"}.mdi-seed-plus:before{content:"󱩭"}.mdi-seed-plus-outline:before{content:"󱩮"}.mdi-seesaw:before{content:"󱖤"}.mdi-segment:before{content:"󰻋"}.mdi-select:before{content:"󰒅"}.mdi-select-all:before{content:"󰒆"}.mdi-select-arrow-down:before{content:"󱭙"}.mdi-select-arrow-up:before{content:"󱭘"}.mdi-select-color:before{content:"󰴱"}.mdi-select-compare:before{content:"󰫙"}.mdi-select-drag:before{content:"󰩬"}.mdi-select-group:before{content:"󰾂"}.mdi-select-inverse:before{content:"󰒇"}.mdi-select-marker:before{content:"󱊀"}.mdi-select-multiple:before{content:"󱊁"}.mdi-select-multiple-marker:before{content:"󱊂"}.mdi-select-off:before{content:"󰒈"}.mdi-select-place:before{content:"󰿚"}.mdi-select-remove:before{content:"󱟁"}.mdi-select-search:before{content:"󱈄"}.mdi-selection:before{content:"󰒉"}.mdi-selection-drag:before{content:"󰩭"}.mdi-selection-ellipse:before{content:"󰴲"}.mdi-selection-ellipse-arrow-inside:before{content:"󰼢"}.mdi-selection-ellipse-remove:before{content:"󱟂"}.mdi-selection-marker:before{content:"󱊃"}.mdi-selection-multiple:before{content:"󱊅"}.mdi-selection-multiple-marker:before{content:"󱊄"}.mdi-selection-off:before{content:"󰝷"}.mdi-selection-remove:before{content:"󱟃"}.mdi-selection-search:before{content:"󱈅"}.mdi-semantic-web:before{content:"󱌖"}.mdi-send:before{content:"󰒊"}.mdi-send-check:before{content:"󱅡"}.mdi-send-check-outline:before{content:"󱅢"}.mdi-send-circle:before{content:"󰷸"}.mdi-send-circle-outline:before{content:"󰷹"}.mdi-send-clock:before{content:"󱅣"}.mdi-send-clock-outline:before{content:"󱅤"}.mdi-send-lock:before{content:"󰟭"}.mdi-send-lock-outline:before{content:"󱅦"}.mdi-send-outline:before{content:"󱅥"}.mdi-send-variant:before{content:"󱱍"}.mdi-send-variant-clock:before{content:"󱱾"}.mdi-send-variant-clock-outline:before{content:"󱱿"}.mdi-send-variant-outline:before{content:"󱱎"}.mdi-serial-port:before{content:"󰙜"}.mdi-server:before{content:"󰒋"}.mdi-server-minus:before{content:"󰒌"}.mdi-server-minus-outline:before{content:"󱲘"}.mdi-server-network:before{content:"󰒍"}.mdi-server-network-off:before{content:"󰒎"}.mdi-server-network-outline:before{content:"󱲙"}.mdi-server-off:before{content:"󰒏"}.mdi-server-outline:before{content:"󱲚"}.mdi-server-plus:before{content:"󰒐"}.mdi-server-plus-outline:before{content:"󱲛"}.mdi-server-remove:before{content:"󰒑"}.mdi-server-security:before{content:"󰒒"}.mdi-set-all:before{content:"󰝸"}.mdi-set-center:before{content:"󰝹"}.mdi-set-center-right:before{content:"󰝺"}.mdi-set-left:before{content:"󰝻"}.mdi-set-left-center:before{content:"󰝼"}.mdi-set-left-right:before{content:"󰝽"}.mdi-set-merge:before{content:"󱓠"}.mdi-set-none:before{content:"󰝾"}.mdi-set-right:before{content:"󰝿"}.mdi-set-split:before{content:"󱓡"}.mdi-set-square:before{content:"󱑝"}.mdi-set-top-box:before{content:"󰦟"}.mdi-settings-helper:before{content:"󰩮"}.mdi-shaker:before{content:"󱄎"}.mdi-shaker-outline:before{content:"󱄏"}.mdi-shape:before{content:"󰠱"}.mdi-shape-circle-plus:before{content:"󰙝"}.mdi-shape-outline:before{content:"󰠲"}.mdi-shape-oval-plus:before{content:"󱇺"}.mdi-shape-plus:before{content:"󰒕"}.mdi-shape-plus-outline:before{content:"󱱏"}.mdi-shape-polygon-plus:before{content:"󰙞"}.mdi-shape-rectangle-plus:before{content:"󰙟"}.mdi-shape-square-plus:before{content:"󰙠"}.mdi-shape-square-rounded-plus:before{content:"󱓺"}.mdi-share:before{content:"󰒖"}.mdi-share-all:before{content:"󱇴"}.mdi-share-all-outline:before{content:"󱇵"}.mdi-share-circle:before{content:"󱆭"}.mdi-share-off:before{content:"󰼣"}.mdi-share-off-outline:before{content:"󰼤"}.mdi-share-outline:before{content:"󰤲"}.mdi-share-variant:before{content:"󰒗"}.mdi-share-variant-outline:before{content:"󱔔"}.mdi-shark:before{content:"󱢺"}.mdi-shark-fin:before{content:"󱙳"}.mdi-shark-fin-outline:before{content:"󱙴"}.mdi-shark-off:before{content:"󱢻"}.mdi-sheep:before{content:"󰳆"}.mdi-shield:before{content:"󰒘"}.mdi-shield-account:before{content:"󰢏"}.mdi-shield-account-outline:before{content:"󰨒"}.mdi-shield-account-variant:before{content:"󱖧"}.mdi-shield-account-variant-outline:before{content:"󱖨"}.mdi-shield-airplane:before{content:"󰚻"}.mdi-shield-airplane-outline:before{content:"󰳇"}.mdi-shield-alert:before{content:"󰻌"}.mdi-shield-alert-outline:before{content:"󰻍"}.mdi-shield-bug:before{content:"󱏚"}.mdi-shield-bug-outline:before{content:"󱏛"}.mdi-shield-car:before{content:"󰾃"}.mdi-shield-check:before{content:"󰕥"}.mdi-shield-check-outline:before{content:"󰳈"}.mdi-shield-cross:before{content:"󰳉"}.mdi-shield-cross-outline:before{content:"󰳊"}.mdi-shield-crown:before{content:"󱢼"}.mdi-shield-crown-outline:before{content:"󱢽"}.mdi-shield-edit:before{content:"󱆠"}.mdi-shield-edit-outline:before{content:"󱆡"}.mdi-shield-half:before{content:"󱍠"}.mdi-shield-half-full:before{content:"󰞀"}.mdi-shield-home:before{content:"󰚊"}.mdi-shield-home-outline:before{content:"󰳋"}.mdi-shield-key:before{content:"󰯄"}.mdi-shield-key-outline:before{content:"󰯅"}.mdi-shield-link-variant:before{content:"󰴳"}.mdi-shield-link-variant-outline:before{content:"󰴴"}.mdi-shield-lock:before{content:"󰦝"}.mdi-shield-lock-open:before{content:"󱦚"}.mdi-shield-lock-open-outline:before{content:"󱦛"}.mdi-shield-lock-outline:before{content:"󰳌"}.mdi-shield-moon:before{content:"󱠨"}.mdi-shield-moon-outline:before{content:"󱠩"}.mdi-shield-off:before{content:"󰦞"}.mdi-shield-off-outline:before{content:"󰦜"}.mdi-shield-outline:before{content:"󰒙"}.mdi-shield-plus:before{content:"󰫚"}.mdi-shield-plus-outline:before{content:"󰫛"}.mdi-shield-refresh:before{content:"󰂪"}.mdi-shield-refresh-outline:before{content:"󰇠"}.mdi-shield-remove:before{content:"󰫜"}.mdi-shield-remove-outline:before{content:"󰫝"}.mdi-shield-search:before{content:"󰶚"}.mdi-shield-star:before{content:"󱄻"}.mdi-shield-star-outline:before{content:"󱄼"}.mdi-shield-sun:before{content:"󱁝"}.mdi-shield-sun-outline:before{content:"󱁞"}.mdi-shield-sword:before{content:"󱢾"}.mdi-shield-sword-outline:before{content:"󱢿"}.mdi-shield-sync:before{content:"󱆢"}.mdi-shield-sync-outline:before{content:"󱆣"}.mdi-shimmer:before{content:"󱕅"}.mdi-ship-wheel:before{content:"󰠳"}.mdi-shipping-pallet:before{content:"󱡎"}.mdi-shoe-ballet:before{content:"󱗊"}.mdi-shoe-cleat:before{content:"󱗇"}.mdi-shoe-formal:before{content:"󰭇"}.mdi-shoe-heel:before{content:"󰭈"}.mdi-shoe-print:before{content:"󰷺"}.mdi-shoe-sneaker:before{content:"󱗈"}.mdi-shopping:before{content:"󰒚"}.mdi-shopping-music:before{content:"󰒛"}.mdi-shopping-outline:before{content:"󱇕"}.mdi-shopping-search:before{content:"󰾄"}.mdi-shopping-search-outline:before{content:"󱩯"}.mdi-shore:before{content:"󱓹"}.mdi-shovel:before{content:"󰜐"}.mdi-shovel-off:before{content:"󰜑"}.mdi-shower:before{content:"󰦠"}.mdi-shower-head:before{content:"󰦡"}.mdi-shredder:before{content:"󰒜"}.mdi-shuffle:before{content:"󰒝"}.mdi-shuffle-disabled:before{content:"󰒞"}.mdi-shuffle-variant:before{content:"󰒟"}.mdi-shuriken:before{content:"󱍿"}.mdi-sickle:before{content:"󱣀"}.mdi-sigma:before{content:"󰒠"}.mdi-sigma-lower:before{content:"󰘫"}.mdi-sign-caution:before{content:"󰒡"}.mdi-sign-direction:before{content:"󰞁"}.mdi-sign-direction-minus:before{content:"󱀀"}.mdi-sign-direction-plus:before{content:"󰿜"}.mdi-sign-direction-remove:before{content:"󰿝"}.mdi-sign-language:before{content:"󱭍"}.mdi-sign-language-outline:before{content:"󱭎"}.mdi-sign-pole:before{content:"󱓸"}.mdi-sign-real-estate:before{content:"󱄘"}.mdi-sign-text:before{content:"󰞂"}.mdi-sign-yield:before{content:"󱮯"}.mdi-signal:before{content:"󰒢"}.mdi-signal-2g:before{content:"󰜒"}.mdi-signal-3g:before{content:"󰜓"}.mdi-signal-4g:before{content:"󰜔"}.mdi-signal-5g:before{content:"󰩯"}.mdi-signal-cellular-1:before{content:"󰢼"}.mdi-signal-cellular-2:before{content:"󰢽"}.mdi-signal-cellular-3:before{content:"󰢾"}.mdi-signal-cellular-outline:before{content:"󰢿"}.mdi-signal-distance-variant:before{content:"󰹤"}.mdi-signal-hspa:before{content:"󰜕"}.mdi-signal-hspa-plus:before{content:"󰜖"}.mdi-signal-off:before{content:"󰞃"}.mdi-signal-variant:before{content:"󰘊"}.mdi-signature:before{content:"󰷻"}.mdi-signature-freehand:before{content:"󰷼"}.mdi-signature-image:before{content:"󰷽"}.mdi-signature-text:before{content:"󰷾"}.mdi-silo:before{content:"󱮟"}.mdi-silo-outline:before{content:"󰭉"}.mdi-silverware:before{content:"󰒣"}.mdi-silverware-clean:before{content:"󰿞"}.mdi-silverware-fork:before{content:"󰒤"}.mdi-silverware-fork-knife:before{content:"󰩰"}.mdi-silverware-spoon:before{content:"󰒥"}.mdi-silverware-variant:before{content:"󰒦"}.mdi-sim:before{content:"󰒧"}.mdi-sim-alert:before{content:"󰒨"}.mdi-sim-alert-outline:before{content:"󱗓"}.mdi-sim-off:before{content:"󰒩"}.mdi-sim-off-outline:before{content:"󱗔"}.mdi-sim-outline:before{content:"󱗕"}.mdi-simple-icons:before{content:"󱌝"}.mdi-sina-weibo:before{content:"󰫟"}.mdi-sine-wave:before{content:"󰥛"}.mdi-sitemap:before{content:"󰒪"}.mdi-sitemap-outline:before{content:"󱦜"}.mdi-size-l:before{content:"󱎦"}.mdi-size-m:before{content:"󱎥"}.mdi-size-s:before{content:"󱎤"}.mdi-size-xl:before{content:"󱎧"}.mdi-size-xs:before{content:"󱎣"}.mdi-size-xxl:before{content:"󱎨"}.mdi-size-xxs:before{content:"󱎢"}.mdi-size-xxxl:before{content:"󱎩"}.mdi-skate:before{content:"󰴵"}.mdi-skate-off:before{content:"󰚙"}.mdi-skateboard:before{content:"󱓂"}.mdi-skateboarding:before{content:"󰔁"}.mdi-skew-less:before{content:"󰴶"}.mdi-skew-more:before{content:"󰴷"}.mdi-ski:before{content:"󱌄"}.mdi-ski-cross-country:before{content:"󱌅"}.mdi-ski-water:before{content:"󱌆"}.mdi-skip-backward:before{content:"󰒫"}.mdi-skip-backward-outline:before{content:"󰼥"}.mdi-skip-forward:before{content:"󰒬"}.mdi-skip-forward-outline:before{content:"󰼦"}.mdi-skip-next:before{content:"󰒭"}.mdi-skip-next-circle:before{content:"󰙡"}.mdi-skip-next-circle-outline:before{content:"󰙢"}.mdi-skip-next-outline:before{content:"󰼧"}.mdi-skip-previous:before{content:"󰒮"}.mdi-skip-previous-circle:before{content:"󰙣"}.mdi-skip-previous-circle-outline:before{content:"󰙤"}.mdi-skip-previous-outline:before{content:"󰼨"}.mdi-skull:before{content:"󰚌"}.mdi-skull-crossbones:before{content:"󰯆"}.mdi-skull-crossbones-outline:before{content:"󰯇"}.mdi-skull-outline:before{content:"󰯈"}.mdi-skull-scan:before{content:"󱓇"}.mdi-skull-scan-outline:before{content:"󱓈"}.mdi-skype:before{content:"󰒯"}.mdi-skype-business:before{content:"󰒰"}.mdi-slack:before{content:"󰒱"}.mdi-slash-forward:before{content:"󰿟"}.mdi-slash-forward-box:before{content:"󰿠"}.mdi-sledding:before{content:"󰐛"}.mdi-sleep:before{content:"󰒲"}.mdi-sleep-off:before{content:"󰒳"}.mdi-slide:before{content:"󱖥"}.mdi-slope-downhill:before{content:"󰷿"}.mdi-slope-uphill:before{content:"󰸀"}.mdi-slot-machine:before{content:"󱄔"}.mdi-slot-machine-outline:before{content:"󱄕"}.mdi-smart-card:before{content:"󱂽"}.mdi-smart-card-off:before{content:"󱣷"}.mdi-smart-card-off-outline:before{content:"󱣸"}.mdi-smart-card-outline:before{content:"󱂾"}.mdi-smart-card-reader:before{content:"󱂿"}.mdi-smart-card-reader-outline:before{content:"󱃀"}.mdi-smog:before{content:"󰩱"}.mdi-smoke:before{content:"󱞙"}.mdi-smoke-detector:before{content:"󰎒"}.mdi-smoke-detector-alert:before{content:"󱤮"}.mdi-smoke-detector-alert-outline:before{content:"󱤯"}.mdi-smoke-detector-off:before{content:"󱠉"}.mdi-smoke-detector-off-outline:before{content:"󱠊"}.mdi-smoke-detector-outline:before{content:"󱠈"}.mdi-smoke-detector-variant:before{content:"󱠋"}.mdi-smoke-detector-variant-alert:before{content:"󱤰"}.mdi-smoke-detector-variant-off:before{content:"󱠌"}.mdi-smoking:before{content:"󰒴"}.mdi-smoking-off:before{content:"󰒵"}.mdi-smoking-pipe:before{content:"󱐍"}.mdi-smoking-pipe-off:before{content:"󱐨"}.mdi-snail:before{content:"󱙷"}.mdi-snake:before{content:"󱔎"}.mdi-snapchat:before{content:"󰒶"}.mdi-snowboard:before{content:"󱌇"}.mdi-snowflake:before{content:"󰜗"}.mdi-snowflake-alert:before{content:"󰼩"}.mdi-snowflake-check:before{content:"󱩰"}.mdi-snowflake-melt:before{content:"󱋋"}.mdi-snowflake-off:before{content:"󱓣"}.mdi-snowflake-thermometer:before{content:"󱩱"}.mdi-snowflake-variant:before{content:"󰼪"}.mdi-snowman:before{content:"󰒷"}.mdi-snowmobile:before{content:"󰛝"}.mdi-snowshoeing:before{content:"󱩲"}.mdi-soccer:before{content:"󰒸"}.mdi-soccer-field:before{content:"󰠴"}.mdi-social-distance-2-meters:before{content:"󱕹"}.mdi-social-distance-6-feet:before{content:"󱕺"}.mdi-sofa:before{content:"󰒹"}.mdi-sofa-outline:before{content:"󱕭"}.mdi-sofa-single:before{content:"󱕮"}.mdi-sofa-single-outline:before{content:"󱕯"}.mdi-solar-panel:before{content:"󰶛"}.mdi-solar-panel-large:before{content:"󰶜"}.mdi-solar-power:before{content:"󰩲"}.mdi-solar-power-variant:before{content:"󱩳"}.mdi-solar-power-variant-outline:before{content:"󱩴"}.mdi-soldering-iron:before{content:"󱂒"}.mdi-solid:before{content:"󰚍"}.mdi-sony-playstation:before{content:"󰐔"}.mdi-sort:before{content:"󰒺"}.mdi-sort-alphabetical-ascending:before{content:"󰖽"}.mdi-sort-alphabetical-ascending-variant:before{content:"󱅈"}.mdi-sort-alphabetical-descending:before{content:"󰖿"}.mdi-sort-alphabetical-descending-variant:before{content:"󱅉"}.mdi-sort-alphabetical-variant:before{content:"󰒻"}.mdi-sort-ascending:before{content:"󰒼"}.mdi-sort-bool-ascending:before{content:"󱎅"}.mdi-sort-bool-ascending-variant:before{content:"󱎆"}.mdi-sort-bool-descending:before{content:"󱎇"}.mdi-sort-bool-descending-variant:before{content:"󱎈"}.mdi-sort-calendar-ascending:before{content:"󱕇"}.mdi-sort-calendar-descending:before{content:"󱕈"}.mdi-sort-clock-ascending:before{content:"󱕉"}.mdi-sort-clock-ascending-outline:before{content:"󱕊"}.mdi-sort-clock-descending:before{content:"󱕋"}.mdi-sort-clock-descending-outline:before{content:"󱕌"}.mdi-sort-descending:before{content:"󰒽"}.mdi-sort-numeric-ascending:before{content:"󱎉"}.mdi-sort-numeric-ascending-variant:before{content:"󰤍"}.mdi-sort-numeric-descending:before{content:"󱎊"}.mdi-sort-numeric-descending-variant:before{content:"󰫒"}.mdi-sort-numeric-variant:before{content:"󰒾"}.mdi-sort-reverse-variant:before{content:"󰌼"}.mdi-sort-variant:before{content:"󰒿"}.mdi-sort-variant-lock:before{content:"󰳍"}.mdi-sort-variant-lock-open:before{content:"󰳎"}.mdi-sort-variant-off:before{content:"󱪻"}.mdi-sort-variant-remove:before{content:"󱅇"}.mdi-soundbar:before{content:"󱟛"}.mdi-soundcloud:before{content:"󰓀"}.mdi-source-branch:before{content:"󰘬"}.mdi-source-branch-check:before{content:"󱓏"}.mdi-source-branch-minus:before{content:"󱓋"}.mdi-source-branch-plus:before{content:"󱓊"}.mdi-source-branch-refresh:before{content:"󱓍"}.mdi-source-branch-remove:before{content:"󱓌"}.mdi-source-branch-sync:before{content:"󱓎"}.mdi-source-commit:before{content:"󰜘"}.mdi-source-commit-end:before{content:"󰜙"}.mdi-source-commit-end-local:before{content:"󰜚"}.mdi-source-commit-local:before{content:"󰜛"}.mdi-source-commit-next-local:before{content:"󰜜"}.mdi-source-commit-start:before{content:"󰜝"}.mdi-source-commit-start-next-local:before{content:"󰜞"}.mdi-source-fork:before{content:"󰓁"}.mdi-source-merge:before{content:"󰘭"}.mdi-source-pull:before{content:"󰓂"}.mdi-source-repository:before{content:"󰳏"}.mdi-source-repository-multiple:before{content:"󰳐"}.mdi-soy-sauce:before{content:"󰟮"}.mdi-soy-sauce-off:before{content:"󱏼"}.mdi-spa:before{content:"󰳑"}.mdi-spa-outline:before{content:"󰳒"}.mdi-space-invaders:before{content:"󰯉"}.mdi-space-station:before{content:"󱎃"}.mdi-spade:before{content:"󰹥"}.mdi-speaker:before{content:"󰓃"}.mdi-speaker-bluetooth:before{content:"󰦢"}.mdi-speaker-message:before{content:"󱬑"}.mdi-speaker-multiple:before{content:"󰴸"}.mdi-speaker-off:before{content:"󰓄"}.mdi-speaker-pause:before{content:"󱭳"}.mdi-speaker-play:before{content:"󱭲"}.mdi-speaker-stop:before{content:"󱭴"}.mdi-speaker-wireless:before{content:"󰜟"}.mdi-spear:before{content:"󱡅"}.mdi-speedometer:before{content:"󰓅"}.mdi-speedometer-medium:before{content:"󰾅"}.mdi-speedometer-slow:before{content:"󰾆"}.mdi-spellcheck:before{content:"󰓆"}.mdi-sphere:before{content:"󱥔"}.mdi-sphere-off:before{content:"󱥕"}.mdi-spider:before{content:"󱇪"}.mdi-spider-outline:before{content:"󱱵"}.mdi-spider-thread:before{content:"󱇫"}.mdi-spider-web:before{content:"󰯊"}.mdi-spirit-level:before{content:"󱓱"}.mdi-spoon-sugar:before{content:"󱐩"}.mdi-spotify:before{content:"󰓇"}.mdi-spotlight:before{content:"󰓈"}.mdi-spotlight-beam:before{content:"󰓉"}.mdi-spray:before{content:"󰙥"}.mdi-spray-bottle:before{content:"󰫠"}.mdi-sprinkler:before{content:"󱁟"}.mdi-sprinkler-fire:before{content:"󱦝"}.mdi-sprinkler-variant:before{content:"󱁠"}.mdi-sprout:before{content:"󰹦"}.mdi-sprout-outline:before{content:"󰹧"}.mdi-square:before{content:"󰝤"}.mdi-square-circle:before{content:"󱔀"}.mdi-square-circle-outline:before{content:"󱱐"}.mdi-square-edit-outline:before{content:"󰤌"}.mdi-square-medium:before{content:"󰨓"}.mdi-square-medium-outline:before{content:"󰨔"}.mdi-square-off:before{content:"󱋮"}.mdi-square-off-outline:before{content:"󱋯"}.mdi-square-opacity:before{content:"󱡔"}.mdi-square-outline:before{content:"󰝣"}.mdi-square-root:before{content:"󰞄"}.mdi-square-root-box:before{content:"󰦣"}.mdi-square-rounded:before{content:"󱓻"}.mdi-square-rounded-badge:before{content:"󱨇"}.mdi-square-rounded-badge-outline:before{content:"󱨈"}.mdi-square-rounded-outline:before{content:"󱓼"}.mdi-square-small:before{content:"󰨕"}.mdi-square-wave:before{content:"󱑻"}.mdi-squeegee:before{content:"󰫡"}.mdi-ssh:before{content:"󰣀"}.mdi-stack-exchange:before{content:"󰘋"}.mdi-stack-overflow:before{content:"󰓌"}.mdi-stackpath:before{content:"󰍙"}.mdi-stadium:before{content:"󰿹"}.mdi-stadium-outline:before{content:"󱬃"}.mdi-stadium-variant:before{content:"󰜠"}.mdi-stairs:before{content:"󰓍"}.mdi-stairs-box:before{content:"󱎞"}.mdi-stairs-down:before{content:"󱊾"}.mdi-stairs-up:before{content:"󱊽"}.mdi-stamper:before{content:"󰴹"}.mdi-standard-definition:before{content:"󰟯"}.mdi-star:before{content:"󰓎"}.mdi-star-box:before{content:"󰩳"}.mdi-star-box-multiple:before{content:"󱊆"}.mdi-star-box-multiple-outline:before{content:"󱊇"}.mdi-star-box-outline:before{content:"󰩴"}.mdi-star-check:before{content:"󱕦"}.mdi-star-check-outline:before{content:"󱕪"}.mdi-star-circle:before{content:"󰓏"}.mdi-star-circle-outline:before{content:"󰦤"}.mdi-star-cog:before{content:"󱙨"}.mdi-star-cog-outline:before{content:"󱙩"}.mdi-star-crescent:before{content:"󰥹"}.mdi-star-david:before{content:"󰥺"}.mdi-star-face:before{content:"󰦥"}.mdi-star-four-points:before{content:"󰫢"}.mdi-star-four-points-box:before{content:"󱱑"}.mdi-star-four-points-box-outline:before{content:"󱱒"}.mdi-star-four-points-circle:before{content:"󱱓"}.mdi-star-four-points-circle-outline:before{content:"󱱔"}.mdi-star-four-points-outline:before{content:"󰫣"}.mdi-star-four-points-small:before{content:"󱱕"}.mdi-star-half:before{content:"󰉆"}.mdi-star-half-full:before{content:"󰓐"}.mdi-star-minus:before{content:"󱕤"}.mdi-star-minus-outline:before{content:"󱕨"}.mdi-star-off:before{content:"󰓑"}.mdi-star-off-outline:before{content:"󱕛"}.mdi-star-outline:before{content:"󰓒"}.mdi-star-plus:before{content:"󱕣"}.mdi-star-plus-outline:before{content:"󱕧"}.mdi-star-remove:before{content:"󱕥"}.mdi-star-remove-outline:before{content:"󱕩"}.mdi-star-settings:before{content:"󱙪"}.mdi-star-settings-outline:before{content:"󱙫"}.mdi-star-shooting:before{content:"󱝁"}.mdi-star-shooting-outline:before{content:"󱝂"}.mdi-star-three-points:before{content:"󰫤"}.mdi-star-three-points-outline:before{content:"󰫥"}.mdi-state-machine:before{content:"󱇯"}.mdi-steam:before{content:"󰓓"}.mdi-steering:before{content:"󰓔"}.mdi-steering-off:before{content:"󰤎"}.mdi-step-backward:before{content:"󰓕"}.mdi-step-backward-2:before{content:"󰓖"}.mdi-step-forward:before{content:"󰓗"}.mdi-step-forward-2:before{content:"󰓘"}.mdi-stethoscope:before{content:"󰓙"}.mdi-sticker:before{content:"󱍤"}.mdi-sticker-alert:before{content:"󱍥"}.mdi-sticker-alert-outline:before{content:"󱍦"}.mdi-sticker-check:before{content:"󱍧"}.mdi-sticker-check-outline:before{content:"󱍨"}.mdi-sticker-circle-outline:before{content:"󰗐"}.mdi-sticker-emoji:before{content:"󰞅"}.mdi-sticker-minus:before{content:"󱍩"}.mdi-sticker-minus-outline:before{content:"󱍪"}.mdi-sticker-outline:before{content:"󱍫"}.mdi-sticker-plus:before{content:"󱍬"}.mdi-sticker-plus-outline:before{content:"󱍭"}.mdi-sticker-remove:before{content:"󱍮"}.mdi-sticker-remove-outline:before{content:"󱍯"}.mdi-sticker-text:before{content:"󱞎"}.mdi-sticker-text-outline:before{content:"󱞏"}.mdi-stocking:before{content:"󰓚"}.mdi-stomach:before{content:"󱂓"}.mdi-stool:before{content:"󱥝"}.mdi-stool-outline:before{content:"󱥞"}.mdi-stop:before{content:"󰓛"}.mdi-stop-circle:before{content:"󰙦"}.mdi-stop-circle-outline:before{content:"󰙧"}.mdi-storage-tank:before{content:"󱩵"}.mdi-storage-tank-outline:before{content:"󱩶"}.mdi-store:before{content:"󰓜"}.mdi-store-24-hour:before{content:"󰓝"}.mdi-store-alert:before{content:"󱣁"}.mdi-store-alert-outline:before{content:"󱣂"}.mdi-store-check:before{content:"󱣃"}.mdi-store-check-outline:before{content:"󱣄"}.mdi-store-clock:before{content:"󱣅"}.mdi-store-clock-outline:before{content:"󱣆"}.mdi-store-cog:before{content:"󱣇"}.mdi-store-cog-outline:before{content:"󱣈"}.mdi-store-edit:before{content:"󱣉"}.mdi-store-edit-outline:before{content:"󱣊"}.mdi-store-marker:before{content:"󱣋"}.mdi-store-marker-outline:before{content:"󱣌"}.mdi-store-minus:before{content:"󱙞"}.mdi-store-minus-outline:before{content:"󱣍"}.mdi-store-off:before{content:"󱣎"}.mdi-store-off-outline:before{content:"󱣏"}.mdi-store-outline:before{content:"󱍡"}.mdi-store-plus:before{content:"󱙟"}.mdi-store-plus-outline:before{content:"󱣐"}.mdi-store-remove:before{content:"󱙠"}.mdi-store-remove-outline:before{content:"󱣑"}.mdi-store-search:before{content:"󱣒"}.mdi-store-search-outline:before{content:"󱣓"}.mdi-store-settings:before{content:"󱣔"}.mdi-store-settings-outline:before{content:"󱣕"}.mdi-storefront:before{content:"󰟇"}.mdi-storefront-check:before{content:"󱭽"}.mdi-storefront-check-outline:before{content:"󱭾"}.mdi-storefront-edit:before{content:"󱭿"}.mdi-storefront-edit-outline:before{content:"󱮀"}.mdi-storefront-minus:before{content:"󱮃"}.mdi-storefront-minus-outline:before{content:"󱮄"}.mdi-storefront-outline:before{content:"󱃁"}.mdi-storefront-plus:before{content:"󱮁"}.mdi-storefront-plus-outline:before{content:"󱮂"}.mdi-storefront-remove:before{content:"󱮅"}.mdi-storefront-remove-outline:before{content:"󱮆"}.mdi-stove:before{content:"󰓞"}.mdi-strategy:before{content:"󱇖"}.mdi-stretch-to-page:before{content:"󰼫"}.mdi-stretch-to-page-outline:before{content:"󰼬"}.mdi-string-lights:before{content:"󱊺"}.mdi-string-lights-off:before{content:"󱊻"}.mdi-subdirectory-arrow-left:before{content:"󰘌"}.mdi-subdirectory-arrow-right:before{content:"󰘍"}.mdi-submarine:before{content:"󱕬"}.mdi-subtitles:before{content:"󰨖"}.mdi-subtitles-outline:before{content:"󰨗"}.mdi-subway:before{content:"󰚬"}.mdi-subway-alert-variant:before{content:"󰶝"}.mdi-subway-variant:before{content:"󰓟"}.mdi-summit:before{content:"󰞆"}.mdi-sun-angle:before{content:"󱬧"}.mdi-sun-angle-outline:before{content:"󱬨"}.mdi-sun-clock:before{content:"󱩷"}.mdi-sun-clock-outline:before{content:"󱩸"}.mdi-sun-compass:before{content:"󱦥"}.mdi-sun-snowflake:before{content:"󱞖"}.mdi-sun-snowflake-variant:before{content:"󱩹"}.mdi-sun-thermometer:before{content:"󱣖"}.mdi-sun-thermometer-outline:before{content:"󱣗"}.mdi-sun-wireless:before{content:"󱟾"}.mdi-sun-wireless-outline:before{content:"󱟿"}.mdi-sunglasses:before{content:"󰓠"}.mdi-surfing:before{content:"󱝆"}.mdi-surround-sound:before{content:"󰗅"}.mdi-surround-sound-2-0:before{content:"󰟰"}.mdi-surround-sound-2-1:before{content:"󱜩"}.mdi-surround-sound-3-1:before{content:"󰟱"}.mdi-surround-sound-5-1:before{content:"󰟲"}.mdi-surround-sound-5-1-2:before{content:"󱜪"}.mdi-surround-sound-7-1:before{content:"󰟳"}.mdi-svg:before{content:"󰜡"}.mdi-swap-horizontal:before{content:"󰓡"}.mdi-swap-horizontal-bold:before{content:"󰯍"}.mdi-swap-horizontal-circle:before{content:"󰿡"}.mdi-swap-horizontal-circle-outline:before{content:"󰿢"}.mdi-swap-horizontal-variant:before{content:"󰣁"}.mdi-swap-vertical:before{content:"󰓢"}.mdi-swap-vertical-bold:before{content:"󰯎"}.mdi-swap-vertical-circle:before{content:"󰿣"}.mdi-swap-vertical-circle-outline:before{content:"󰿤"}.mdi-swap-vertical-variant:before{content:"󰣂"}.mdi-swim:before{content:"󰓣"}.mdi-switch:before{content:"󰓤"}.mdi-sword:before{content:"󰓥"}.mdi-sword-cross:before{content:"󰞇"}.mdi-syllabary-hangul:before{content:"󱌳"}.mdi-syllabary-hiragana:before{content:"󱌴"}.mdi-syllabary-katakana:before{content:"󱌵"}.mdi-syllabary-katakana-halfwidth:before{content:"󱌶"}.mdi-symbol:before{content:"󱔁"}.mdi-symfony:before{content:"󰫦"}.mdi-synagogue:before{content:"󱬄"}.mdi-synagogue-outline:before{content:"󱬅"}.mdi-sync:before{content:"󰓦"}.mdi-sync-alert:before{content:"󰓧"}.mdi-sync-circle:before{content:"󱍸"}.mdi-sync-off:before{content:"󰓨"}.mdi-tab:before{content:"󰓩"}.mdi-tab-minus:before{content:"󰭋"}.mdi-tab-plus:before{content:"󰝜"}.mdi-tab-remove:before{content:"󰭌"}.mdi-tab-search:before{content:"󱦞"}.mdi-tab-unselected:before{content:"󰓪"}.mdi-table:before{content:"󰓫"}.mdi-table-account:before{content:"󱎹"}.mdi-table-alert:before{content:"󱎺"}.mdi-table-arrow-down:before{content:"󱎻"}.mdi-table-arrow-left:before{content:"󱎼"}.mdi-table-arrow-right:before{content:"󱎽"}.mdi-table-arrow-up:before{content:"󱎾"}.mdi-table-border:before{content:"󰨘"}.mdi-table-cancel:before{content:"󱎿"}.mdi-table-chair:before{content:"󱁡"}.mdi-table-check:before{content:"󱏀"}.mdi-table-clock:before{content:"󱏁"}.mdi-table-cog:before{content:"󱏂"}.mdi-table-column:before{content:"󰠵"}.mdi-table-column-plus-after:before{content:"󰓬"}.mdi-table-column-plus-before:before{content:"󰓭"}.mdi-table-column-remove:before{content:"󰓮"}.mdi-table-column-width:before{content:"󰓯"}.mdi-table-edit:before{content:"󰓰"}.mdi-table-eye:before{content:"󱂔"}.mdi-table-eye-off:before{content:"󱏃"}.mdi-table-filter:before{content:"󱮌"}.mdi-table-furniture:before{content:"󰖼"}.mdi-table-headers-eye:before{content:"󱈝"}.mdi-table-headers-eye-off:before{content:"󱈞"}.mdi-table-heart:before{content:"󱏄"}.mdi-table-key:before{content:"󱏅"}.mdi-table-large:before{content:"󰓱"}.mdi-table-large-plus:before{content:"󰾇"}.mdi-table-large-remove:before{content:"󰾈"}.mdi-table-lock:before{content:"󱏆"}.mdi-table-merge-cells:before{content:"󰦦"}.mdi-table-minus:before{content:"󱏇"}.mdi-table-multiple:before{content:"󱏈"}.mdi-table-network:before{content:"󱏉"}.mdi-table-of-contents:before{content:"󰠶"}.mdi-table-off:before{content:"󱏊"}.mdi-table-picnic:before{content:"󱝃"}.mdi-table-pivot:before{content:"󱠼"}.mdi-table-plus:before{content:"󰩵"}.mdi-table-question:before{content:"󱬡"}.mdi-table-refresh:before{content:"󱎠"}.mdi-table-remove:before{content:"󰩶"}.mdi-table-row:before{content:"󰠷"}.mdi-table-row-height:before{content:"󰓲"}.mdi-table-row-plus-after:before{content:"󰓳"}.mdi-table-row-plus-before:before{content:"󰓴"}.mdi-table-row-remove:before{content:"󰓵"}.mdi-table-search:before{content:"󰤏"}.mdi-table-settings:before{content:"󰠸"}.mdi-table-split-cell:before{content:"󱐪"}.mdi-table-star:before{content:"󱏋"}.mdi-table-sync:before{content:"󱎡"}.mdi-table-tennis:before{content:"󰹨"}.mdi-tablet:before{content:"󰓶"}.mdi-tablet-cellphone:before{content:"󰦧"}.mdi-tablet-dashboard:before{content:"󰻎"}.mdi-taco:before{content:"󰝢"}.mdi-tag:before{content:"󰓹"}.mdi-tag-arrow-down:before{content:"󱜫"}.mdi-tag-arrow-down-outline:before{content:"󱜬"}.mdi-tag-arrow-left:before{content:"󱜭"}.mdi-tag-arrow-left-outline:before{content:"󱜮"}.mdi-tag-arrow-right:before{content:"󱜯"}.mdi-tag-arrow-right-outline:before{content:"󱜰"}.mdi-tag-arrow-up:before{content:"󱜱"}.mdi-tag-arrow-up-outline:before{content:"󱜲"}.mdi-tag-check:before{content:"󱩺"}.mdi-tag-check-outline:before{content:"󱩻"}.mdi-tag-edit:before{content:"󱲜"}.mdi-tag-edit-outline:before{content:"󱲝"}.mdi-tag-faces:before{content:"󰓺"}.mdi-tag-heart:before{content:"󰚋"}.mdi-tag-heart-outline:before{content:"󰯏"}.mdi-tag-hidden:before{content:"󱱶"}.mdi-tag-minus:before{content:"󰤐"}.mdi-tag-minus-outline:before{content:"󱈟"}.mdi-tag-multiple:before{content:"󰓻"}.mdi-tag-multiple-outline:before{content:"󱋷"}.mdi-tag-off:before{content:"󱈠"}.mdi-tag-off-outline:before{content:"󱈡"}.mdi-tag-outline:before{content:"󰓼"}.mdi-tag-plus:before{content:"󰜢"}.mdi-tag-plus-outline:before{content:"󱈢"}.mdi-tag-remove:before{content:"󰜣"}.mdi-tag-remove-outline:before{content:"󱈣"}.mdi-tag-search:before{content:"󱤇"}.mdi-tag-search-outline:before{content:"󱤈"}.mdi-tag-text:before{content:"󱈤"}.mdi-tag-text-outline:before{content:"󰓽"}.mdi-tailwind:before{content:"󱏿"}.mdi-tally-mark-1:before{content:"󱪼"}.mdi-tally-mark-2:before{content:"󱪽"}.mdi-tally-mark-3:before{content:"󱪾"}.mdi-tally-mark-4:before{content:"󱪿"}.mdi-tally-mark-5:before{content:"󱫀"}.mdi-tangram:before{content:"󰓸"}.mdi-tank:before{content:"󰴺"}.mdi-tanker-truck:before{content:"󰿥"}.mdi-tape-drive:before{content:"󱛟"}.mdi-tape-measure:before{content:"󰭍"}.mdi-target:before{content:"󰓾"}.mdi-target-account:before{content:"󰯐"}.mdi-target-variant:before{content:"󰩷"}.mdi-taxi:before{content:"󰓿"}.mdi-tea:before{content:"󰶞"}.mdi-tea-outline:before{content:"󰶟"}.mdi-teamviewer:before{content:"󰔀"}.mdi-teddy-bear:before{content:"󱣻"}.mdi-telescope:before{content:"󰭎"}.mdi-television:before{content:"󰔂"}.mdi-television-ambient-light:before{content:"󱍖"}.mdi-television-box:before{content:"󰠹"}.mdi-television-classic:before{content:"󰟴"}.mdi-television-classic-off:before{content:"󰠺"}.mdi-television-guide:before{content:"󰔃"}.mdi-television-off:before{content:"󰠻"}.mdi-television-pause:before{content:"󰾉"}.mdi-television-play:before{content:"󰻏"}.mdi-television-shimmer:before{content:"󱄐"}.mdi-television-speaker:before{content:"󱬛"}.mdi-television-speaker-off:before{content:"󱬜"}.mdi-television-stop:before{content:"󰾊"}.mdi-temperature-celsius:before{content:"󰔄"}.mdi-temperature-fahrenheit:before{content:"󰔅"}.mdi-temperature-kelvin:before{content:"󰔆"}.mdi-temple-buddhist:before{content:"󱬆"}.mdi-temple-buddhist-outline:before{content:"󱬇"}.mdi-temple-hindu:before{content:"󱬈"}.mdi-temple-hindu-outline:before{content:"󱬉"}.mdi-tennis:before{content:"󰶠"}.mdi-tennis-ball:before{content:"󰔇"}.mdi-tennis-ball-outline:before{content:"󱱟"}.mdi-tent:before{content:"󰔈"}.mdi-terraform:before{content:"󱁢"}.mdi-terrain:before{content:"󰔉"}.mdi-test-tube:before{content:"󰙨"}.mdi-test-tube-empty:before{content:"󰤑"}.mdi-test-tube-off:before{content:"󰤒"}.mdi-text:before{content:"󰦨"}.mdi-text-account:before{content:"󱕰"}.mdi-text-box:before{content:"󰈚"}.mdi-text-box-check:before{content:"󰺦"}.mdi-text-box-check-outline:before{content:"󰺧"}.mdi-text-box-edit:before{content:"󱩼"}.mdi-text-box-edit-outline:before{content:"󱩽"}.mdi-text-box-minus:before{content:"󰺨"}.mdi-text-box-minus-outline:before{content:"󰺩"}.mdi-text-box-multiple:before{content:"󰪷"}.mdi-text-box-multiple-outline:before{content:"󰪸"}.mdi-text-box-outline:before{content:"󰧭"}.mdi-text-box-plus:before{content:"󰺪"}.mdi-text-box-plus-outline:before{content:"󰺫"}.mdi-text-box-remove:before{content:"󰺬"}.mdi-text-box-remove-outline:before{content:"󰺭"}.mdi-text-box-search:before{content:"󰺮"}.mdi-text-box-search-outline:before{content:"󰺯"}.mdi-text-long:before{content:"󰦪"}.mdi-text-recognition:before{content:"󱄽"}.mdi-text-search:before{content:"󱎸"}.mdi-text-search-variant:before{content:"󱩾"}.mdi-text-shadow:before{content:"󰙩"}.mdi-text-short:before{content:"󰦩"}.mdi-texture:before{content:"󰔌"}.mdi-texture-box:before{content:"󰿦"}.mdi-theater:before{content:"󰔍"}.mdi-theme-light-dark:before{content:"󰔎"}.mdi-thermometer:before{content:"󰔏"}.mdi-thermometer-alert:before{content:"󰸁"}.mdi-thermometer-auto:before{content:"󱬏"}.mdi-thermometer-bluetooth:before{content:"󱢕"}.mdi-thermometer-check:before{content:"󱩿"}.mdi-thermometer-chevron-down:before{content:"󰸂"}.mdi-thermometer-chevron-up:before{content:"󰸃"}.mdi-thermometer-high:before{content:"󱃂"}.mdi-thermometer-lines:before{content:"󰔐"}.mdi-thermometer-low:before{content:"󱃃"}.mdi-thermometer-minus:before{content:"󰸄"}.mdi-thermometer-off:before{content:"󱔱"}.mdi-thermometer-plus:before{content:"󰸅"}.mdi-thermometer-probe:before{content:"󱬫"}.mdi-thermometer-probe-off:before{content:"󱬬"}.mdi-thermometer-water:before{content:"󱪀"}.mdi-thermostat:before{content:"󰎓"}.mdi-thermostat-auto:before{content:"󱬗"}.mdi-thermostat-box:before{content:"󰢑"}.mdi-thermostat-box-auto:before{content:"󱬘"}.mdi-thermostat-cog:before{content:"󱲀"}.mdi-thought-bubble:before{content:"󰟶"}.mdi-thought-bubble-outline:before{content:"󰟷"}.mdi-thumb-down:before{content:"󰔑"}.mdi-thumb-down-outline:before{content:"󰔒"}.mdi-thumb-up:before{content:"󰔓"}.mdi-thumb-up-outline:before{content:"󰔔"}.mdi-thumbs-up-down:before{content:"󰔕"}.mdi-thumbs-up-down-outline:before{content:"󱤔"}.mdi-ticket:before{content:"󰔖"}.mdi-ticket-account:before{content:"󰔗"}.mdi-ticket-confirmation:before{content:"󰔘"}.mdi-ticket-confirmation-outline:before{content:"󱎪"}.mdi-ticket-outline:before{content:"󰤓"}.mdi-ticket-percent:before{content:"󰜤"}.mdi-ticket-percent-outline:before{content:"󱐫"}.mdi-tie:before{content:"󰔙"}.mdi-tilde:before{content:"󰜥"}.mdi-tilde-off:before{content:"󱣳"}.mdi-timelapse:before{content:"󰔚"}.mdi-timeline:before{content:"󰯑"}.mdi-timeline-alert:before{content:"󰾕"}.mdi-timeline-alert-outline:before{content:"󰾘"}.mdi-timeline-check:before{content:"󱔲"}.mdi-timeline-check-outline:before{content:"󱔳"}.mdi-timeline-clock:before{content:"󱇻"}.mdi-timeline-clock-outline:before{content:"󱇼"}.mdi-timeline-minus:before{content:"󱔴"}.mdi-timeline-minus-outline:before{content:"󱔵"}.mdi-timeline-outline:before{content:"󰯒"}.mdi-timeline-plus:before{content:"󰾖"}.mdi-timeline-plus-outline:before{content:"󰾗"}.mdi-timeline-question:before{content:"󰾙"}.mdi-timeline-question-outline:before{content:"󰾚"}.mdi-timeline-remove:before{content:"󱔶"}.mdi-timeline-remove-outline:before{content:"󱔷"}.mdi-timeline-text:before{content:"󰯓"}.mdi-timeline-text-outline:before{content:"󰯔"}.mdi-timer:before{content:"󱎫"}.mdi-timer-10:before{content:"󰔜"}.mdi-timer-3:before{content:"󰔝"}.mdi-timer-alert:before{content:"󱫌"}.mdi-timer-alert-outline:before{content:"󱫍"}.mdi-timer-cancel:before{content:"󱫎"}.mdi-timer-cancel-outline:before{content:"󱫏"}.mdi-timer-check:before{content:"󱫐"}.mdi-timer-check-outline:before{content:"󱫑"}.mdi-timer-cog:before{content:"󱤥"}.mdi-timer-cog-outline:before{content:"󱤦"}.mdi-timer-edit:before{content:"󱫒"}.mdi-timer-edit-outline:before{content:"󱫓"}.mdi-timer-lock:before{content:"󱫔"}.mdi-timer-lock-open:before{content:"󱫕"}.mdi-timer-lock-open-outline:before{content:"󱫖"}.mdi-timer-lock-outline:before{content:"󱫗"}.mdi-timer-marker:before{content:"󱫘"}.mdi-timer-marker-outline:before{content:"󱫙"}.mdi-timer-minus:before{content:"󱫚"}.mdi-timer-minus-outline:before{content:"󱫛"}.mdi-timer-music:before{content:"󱫜"}.mdi-timer-music-outline:before{content:"󱫝"}.mdi-timer-off:before{content:"󱎬"}.mdi-timer-off-outline:before{content:"󰔞"}.mdi-timer-outline:before{content:"󰔛"}.mdi-timer-pause:before{content:"󱫞"}.mdi-timer-pause-outline:before{content:"󱫟"}.mdi-timer-play:before{content:"󱫠"}.mdi-timer-play-outline:before{content:"󱫡"}.mdi-timer-plus:before{content:"󱫢"}.mdi-timer-plus-outline:before{content:"󱫣"}.mdi-timer-refresh:before{content:"󱫤"}.mdi-timer-refresh-outline:before{content:"󱫥"}.mdi-timer-remove:before{content:"󱫦"}.mdi-timer-remove-outline:before{content:"󱫧"}.mdi-timer-sand:before{content:"󰔟"}.mdi-timer-sand-complete:before{content:"󱦟"}.mdi-timer-sand-empty:before{content:"󰚭"}.mdi-timer-sand-full:before{content:"󰞌"}.mdi-timer-sand-paused:before{content:"󱦠"}.mdi-timer-settings:before{content:"󱤣"}.mdi-timer-settings-outline:before{content:"󱤤"}.mdi-timer-star:before{content:"󱫨"}.mdi-timer-star-outline:before{content:"󱫩"}.mdi-timer-stop:before{content:"󱫪"}.mdi-timer-stop-outline:before{content:"󱫫"}.mdi-timer-sync:before{content:"󱫬"}.mdi-timer-sync-outline:before{content:"󱫭"}.mdi-timetable:before{content:"󰔠"}.mdi-tire:before{content:"󱢖"}.mdi-toaster:before{content:"󱁣"}.mdi-toaster-off:before{content:"󱆷"}.mdi-toaster-oven:before{content:"󰳓"}.mdi-toggle-switch:before{content:"󰔡"}.mdi-toggle-switch-off:before{content:"󰔢"}.mdi-toggle-switch-off-outline:before{content:"󰨙"}.mdi-toggle-switch-outline:before{content:"󰨚"}.mdi-toggle-switch-variant:before{content:"󱨥"}.mdi-toggle-switch-variant-off:before{content:"󱨦"}.mdi-toilet:before{content:"󰦫"}.mdi-toolbox:before{content:"󰦬"}.mdi-toolbox-outline:before{content:"󰦭"}.mdi-tools:before{content:"󱁤"}.mdi-tooltip:before{content:"󰔣"}.mdi-tooltip-account:before{content:"󰀌"}.mdi-tooltip-cellphone:before{content:"󱠻"}.mdi-tooltip-check:before{content:"󱕜"}.mdi-tooltip-check-outline:before{content:"󱕝"}.mdi-tooltip-edit:before{content:"󰔤"}.mdi-tooltip-edit-outline:before{content:"󱋅"}.mdi-tooltip-image:before{content:"󰔥"}.mdi-tooltip-image-outline:before{content:"󰯕"}.mdi-tooltip-minus:before{content:"󱕞"}.mdi-tooltip-minus-outline:before{content:"󱕟"}.mdi-tooltip-outline:before{content:"󰔦"}.mdi-tooltip-plus:before{content:"󰯖"}.mdi-tooltip-plus-outline:before{content:"󰔧"}.mdi-tooltip-question:before{content:"󱮺"}.mdi-tooltip-question-outline:before{content:"󱮻"}.mdi-tooltip-remove:before{content:"󱕠"}.mdi-tooltip-remove-outline:before{content:"󱕡"}.mdi-tooltip-text:before{content:"󰔨"}.mdi-tooltip-text-outline:before{content:"󰯗"}.mdi-tooth:before{content:"󰣃"}.mdi-tooth-outline:before{content:"󰔩"}.mdi-toothbrush:before{content:"󱄩"}.mdi-toothbrush-electric:before{content:"󱄬"}.mdi-toothbrush-paste:before{content:"󱄪"}.mdi-torch:before{content:"󱘆"}.mdi-tortoise:before{content:"󰴻"}.mdi-toslink:before{content:"󱊸"}.mdi-touch-text-outline:before{content:"󱱠"}.mdi-tournament:before{content:"󰦮"}.mdi-tow-truck:before{content:"󰠼"}.mdi-tower-beach:before{content:"󰚁"}.mdi-tower-fire:before{content:"󰚂"}.mdi-town-hall:before{content:"󱡵"}.mdi-toy-brick:before{content:"󱊈"}.mdi-toy-brick-marker:before{content:"󱊉"}.mdi-toy-brick-marker-outline:before{content:"󱊊"}.mdi-toy-brick-minus:before{content:"󱊋"}.mdi-toy-brick-minus-outline:before{content:"󱊌"}.mdi-toy-brick-outline:before{content:"󱊍"}.mdi-toy-brick-plus:before{content:"󱊎"}.mdi-toy-brick-plus-outline:before{content:"󱊏"}.mdi-toy-brick-remove:before{content:"󱊐"}.mdi-toy-brick-remove-outline:before{content:"󱊑"}.mdi-toy-brick-search:before{content:"󱊒"}.mdi-toy-brick-search-outline:before{content:"󱊓"}.mdi-track-light:before{content:"󰤔"}.mdi-track-light-off:before{content:"󱬁"}.mdi-trackpad:before{content:"󰟸"}.mdi-trackpad-lock:before{content:"󰤳"}.mdi-tractor:before{content:"󰢒"}.mdi-tractor-variant:before{content:"󱓄"}.mdi-trademark:before{content:"󰩸"}.mdi-traffic-cone:before{content:"󱍼"}.mdi-traffic-light:before{content:"󰔫"}.mdi-traffic-light-outline:before{content:"󱠪"}.mdi-train:before{content:"󰔬"}.mdi-train-bus:before{content:"󱳇"}.mdi-train-car:before{content:"󰯘"}.mdi-train-car-autorack:before{content:"󱬭"}.mdi-train-car-box:before{content:"󱬮"}.mdi-train-car-box-full:before{content:"󱬯"}.mdi-train-car-box-open:before{content:"󱬰"}.mdi-train-car-caboose:before{content:"󱬱"}.mdi-train-car-centerbeam:before{content:"󱬲"}.mdi-train-car-centerbeam-full:before{content:"󱬳"}.mdi-train-car-container:before{content:"󱬴"}.mdi-train-car-flatbed:before{content:"󱬵"}.mdi-train-car-flatbed-car:before{content:"󱬶"}.mdi-train-car-flatbed-tank:before{content:"󱬷"}.mdi-train-car-gondola:before{content:"󱬸"}.mdi-train-car-gondola-full:before{content:"󱬹"}.mdi-train-car-hopper:before{content:"󱬺"}.mdi-train-car-hopper-covered:before{content:"󱬻"}.mdi-train-car-hopper-full:before{content:"󱬼"}.mdi-train-car-intermodal:before{content:"󱬽"}.mdi-train-car-passenger:before{content:"󱜳"}.mdi-train-car-passenger-door:before{content:"󱜴"}.mdi-train-car-passenger-door-open:before{content:"󱜵"}.mdi-train-car-passenger-variant:before{content:"󱜶"}.mdi-train-car-tank:before{content:"󱬾"}.mdi-train-variant:before{content:"󰣄"}.mdi-tram:before{content:"󰔭"}.mdi-tram-side:before{content:"󰿧"}.mdi-transcribe:before{content:"󰔮"}.mdi-transcribe-close:before{content:"󰔯"}.mdi-transfer:before{content:"󱁥"}.mdi-transfer-down:before{content:"󰶡"}.mdi-transfer-left:before{content:"󰶢"}.mdi-transfer-right:before{content:"󰔰"}.mdi-transfer-up:before{content:"󰶣"}.mdi-transit-connection:before{content:"󰴼"}.mdi-transit-connection-horizontal:before{content:"󱕆"}.mdi-transit-connection-variant:before{content:"󰴽"}.mdi-transit-detour:before{content:"󰾋"}.mdi-transit-skip:before{content:"󱔕"}.mdi-transit-transfer:before{content:"󰚮"}.mdi-transition:before{content:"󰤕"}.mdi-transition-masked:before{content:"󰤖"}.mdi-translate:before{content:"󰗊"}.mdi-translate-off:before{content:"󰸆"}.mdi-translate-variant:before{content:"󱮙"}.mdi-transmission-tower:before{content:"󰴾"}.mdi-transmission-tower-export:before{content:"󱤬"}.mdi-transmission-tower-import:before{content:"󱤭"}.mdi-transmission-tower-off:before{content:"󱧝"}.mdi-trash-can:before{content:"󰩹"}.mdi-trash-can-outline:before{content:"󰩺"}.mdi-tray:before{content:"󱊔"}.mdi-tray-alert:before{content:"󱊕"}.mdi-tray-arrow-down:before{content:"󰄠"}.mdi-tray-arrow-up:before{content:"󰄝"}.mdi-tray-full:before{content:"󱊖"}.mdi-tray-minus:before{content:"󱊗"}.mdi-tray-plus:before{content:"󱊘"}.mdi-tray-remove:before{content:"󱊙"}.mdi-treasure-chest:before{content:"󰜦"}.mdi-treasure-chest-outline:before{content:"󱱷"}.mdi-tree:before{content:"󰔱"}.mdi-tree-outline:before{content:"󰹩"}.mdi-trello:before{content:"󰔲"}.mdi-trending-down:before{content:"󰔳"}.mdi-trending-neutral:before{content:"󰔴"}.mdi-trending-up:before{content:"󰔵"}.mdi-triangle:before{content:"󰔶"}.mdi-triangle-down:before{content:"󱱖"}.mdi-triangle-down-outline:before{content:"󱱗"}.mdi-triangle-outline:before{content:"󰔷"}.mdi-triangle-small-down:before{content:"󱨉"}.mdi-triangle-small-up:before{content:"󱨊"}.mdi-triangle-wave:before{content:"󱑼"}.mdi-triforce:before{content:"󰯙"}.mdi-trophy:before{content:"󰔸"}.mdi-trophy-award:before{content:"󰔹"}.mdi-trophy-broken:before{content:"󰶤"}.mdi-trophy-outline:before{content:"󰔺"}.mdi-trophy-variant:before{content:"󰔻"}.mdi-trophy-variant-outline:before{content:"󰔼"}.mdi-truck:before{content:"󰔽"}.mdi-truck-alert:before{content:"󱧞"}.mdi-truck-alert-outline:before{content:"󱧟"}.mdi-truck-cargo-container:before{content:"󱣘"}.mdi-truck-check:before{content:"󰳔"}.mdi-truck-check-outline:before{content:"󱊚"}.mdi-truck-delivery:before{content:"󰔾"}.mdi-truck-delivery-outline:before{content:"󱊛"}.mdi-truck-fast:before{content:"󰞈"}.mdi-truck-fast-outline:before{content:"󱊜"}.mdi-truck-flatbed:before{content:"󱢑"}.mdi-truck-minus:before{content:"󱦮"}.mdi-truck-minus-outline:before{content:"󱦽"}.mdi-truck-off-road:before{content:"󱲞"}.mdi-truck-off-road-off:before{content:"󱲟"}.mdi-truck-outline:before{content:"󱊝"}.mdi-truck-plus:before{content:"󱦭"}.mdi-truck-plus-outline:before{content:"󱦼"}.mdi-truck-remove:before{content:"󱦯"}.mdi-truck-remove-outline:before{content:"󱦾"}.mdi-truck-snowflake:before{content:"󱦦"}.mdi-truck-trailer:before{content:"󰜧"}.mdi-trumpet:before{content:"󱂖"}.mdi-tshirt-crew:before{content:"󰩻"}.mdi-tshirt-crew-outline:before{content:"󰔿"}.mdi-tshirt-v:before{content:"󰩼"}.mdi-tshirt-v-outline:before{content:"󰕀"}.mdi-tsunami:before{content:"󱪁"}.mdi-tumble-dryer:before{content:"󰤗"}.mdi-tumble-dryer-alert:before{content:"󱆺"}.mdi-tumble-dryer-off:before{content:"󱆻"}.mdi-tune:before{content:"󰘮"}.mdi-tune-variant:before{content:"󱕂"}.mdi-tune-vertical:before{content:"󰙪"}.mdi-tune-vertical-variant:before{content:"󱕃"}.mdi-tunnel:before{content:"󱠽"}.mdi-tunnel-outline:before{content:"󱠾"}.mdi-turbine:before{content:"󱪂"}.mdi-turkey:before{content:"󱜛"}.mdi-turnstile:before{content:"󰳕"}.mdi-turnstile-outline:before{content:"󰳖"}.mdi-turtle:before{content:"󰳗"}.mdi-twitch:before{content:"󰕃"}.mdi-twitter:before{content:"󰕄"}.mdi-two-factor-authentication:before{content:"󰦯"}.mdi-typewriter:before{content:"󰼭"}.mdi-ubisoft:before{content:"󰯚"}.mdi-ubuntu:before{content:"󰕈"}.mdi-ufo:before{content:"󱃄"}.mdi-ufo-outline:before{content:"󱃅"}.mdi-ultra-high-definition:before{content:"󰟹"}.mdi-umbraco:before{content:"󰕉"}.mdi-umbrella:before{content:"󰕊"}.mdi-umbrella-beach:before{content:"󱢊"}.mdi-umbrella-beach-outline:before{content:"󱢋"}.mdi-umbrella-closed:before{content:"󰦰"}.mdi-umbrella-closed-outline:before{content:"󱏢"}.mdi-umbrella-closed-variant:before{content:"󱏡"}.mdi-umbrella-outline:before{content:"󰕋"}.mdi-undo:before{content:"󰕌"}.mdi-undo-variant:before{content:"󰕍"}.mdi-unfold-less-horizontal:before{content:"󰕎"}.mdi-unfold-less-vertical:before{content:"󰝠"}.mdi-unfold-more-horizontal:before{content:"󰕏"}.mdi-unfold-more-vertical:before{content:"󰝡"}.mdi-ungroup:before{content:"󰕐"}.mdi-unicode:before{content:"󰻐"}.mdi-unicorn:before{content:"󱗂"}.mdi-unicorn-variant:before{content:"󱗃"}.mdi-unicycle:before{content:"󱗥"}.mdi-unity:before{content:"󰚯"}.mdi-unreal:before{content:"󰦱"}.mdi-update:before{content:"󰚰"}.mdi-upload:before{content:"󰕒"}.mdi-upload-lock:before{content:"󱍳"}.mdi-upload-lock-outline:before{content:"󱍴"}.mdi-upload-multiple:before{content:"󰠽"}.mdi-upload-network:before{content:"󰛶"}.mdi-upload-network-outline:before{content:"󰳘"}.mdi-upload-off:before{content:"󱃆"}.mdi-upload-off-outline:before{content:"󱃇"}.mdi-upload-outline:before{content:"󰸇"}.mdi-usb:before{content:"󰕓"}.mdi-usb-c-port:before{content:"󱲿"}.mdi-usb-flash-drive:before{content:"󱊞"}.mdi-usb-flash-drive-outline:before{content:"󱊟"}.mdi-usb-port:before{content:"󱇰"}.mdi-vacuum:before{content:"󱦡"}.mdi-vacuum-outline:before{content:"󱦢"}.mdi-valve:before{content:"󱁦"}.mdi-valve-closed:before{content:"󱁧"}.mdi-valve-open:before{content:"󱁨"}.mdi-van-passenger:before{content:"󰟺"}.mdi-van-utility:before{content:"󰟻"}.mdi-vanish:before{content:"󰟼"}.mdi-vanish-quarter:before{content:"󱕔"}.mdi-vanity-light:before{content:"󱇡"}.mdi-variable:before{content:"󰫧"}.mdi-variable-box:before{content:"󱄑"}.mdi-vector-arrange-above:before{content:"󰕔"}.mdi-vector-arrange-below:before{content:"󰕕"}.mdi-vector-bezier:before{content:"󰫨"}.mdi-vector-circle:before{content:"󰕖"}.mdi-vector-circle-variant:before{content:"󰕗"}.mdi-vector-combine:before{content:"󰕘"}.mdi-vector-curve:before{content:"󰕙"}.mdi-vector-difference:before{content:"󰕚"}.mdi-vector-difference-ab:before{content:"󰕛"}.mdi-vector-difference-ba:before{content:"󰕜"}.mdi-vector-ellipse:before{content:"󰢓"}.mdi-vector-intersection:before{content:"󰕝"}.mdi-vector-line:before{content:"󰕞"}.mdi-vector-link:before{content:"󰿨"}.mdi-vector-point:before{content:"󰇄"}.mdi-vector-point-edit:before{content:"󰧨"}.mdi-vector-point-minus:before{content:"󱭸"}.mdi-vector-point-plus:before{content:"󱭹"}.mdi-vector-point-select:before{content:"󰕟"}.mdi-vector-polygon:before{content:"󰕠"}.mdi-vector-polygon-variant:before{content:"󱡖"}.mdi-vector-polyline:before{content:"󰕡"}.mdi-vector-polyline-edit:before{content:"󱈥"}.mdi-vector-polyline-minus:before{content:"󱈦"}.mdi-vector-polyline-plus:before{content:"󱈧"}.mdi-vector-polyline-remove:before{content:"󱈨"}.mdi-vector-radius:before{content:"󰝊"}.mdi-vector-rectangle:before{content:"󰗆"}.mdi-vector-selection:before{content:"󰕢"}.mdi-vector-square:before{content:"󰀁"}.mdi-vector-square-close:before{content:"󱡗"}.mdi-vector-square-edit:before{content:"󱣙"}.mdi-vector-square-minus:before{content:"󱣚"}.mdi-vector-square-open:before{content:"󱡘"}.mdi-vector-square-plus:before{content:"󱣛"}.mdi-vector-square-remove:before{content:"󱣜"}.mdi-vector-triangle:before{content:"󰕣"}.mdi-vector-union:before{content:"󰕤"}.mdi-vhs:before{content:"󰨛"}.mdi-vibrate:before{content:"󰕦"}.mdi-vibrate-off:before{content:"󰳙"}.mdi-video:before{content:"󰕧"}.mdi-video-2d:before{content:"󱨜"}.mdi-video-3d:before{content:"󰟽"}.mdi-video-3d-off:before{content:"󱏙"}.mdi-video-3d-variant:before{content:"󰻑"}.mdi-video-4k-box:before{content:"󰠾"}.mdi-video-account:before{content:"󰤙"}.mdi-video-box:before{content:"󰃽"}.mdi-video-box-off:before{content:"󰃾"}.mdi-video-check:before{content:"󱁩"}.mdi-video-check-outline:before{content:"󱁪"}.mdi-video-high-definition:before{content:"󱔮"}.mdi-video-image:before{content:"󰤚"}.mdi-video-input-antenna:before{content:"󰠿"}.mdi-video-input-component:before{content:"󰡀"}.mdi-video-input-hdmi:before{content:"󰡁"}.mdi-video-input-scart:before{content:"󰾌"}.mdi-video-input-svideo:before{content:"󰡂"}.mdi-video-marker:before{content:"󱦩"}.mdi-video-marker-outline:before{content:"󱦪"}.mdi-video-minus:before{content:"󰦲"}.mdi-video-minus-outline:before{content:"󰊺"}.mdi-video-off:before{content:"󰕨"}.mdi-video-off-outline:before{content:"󰯛"}.mdi-video-outline:before{content:"󰯜"}.mdi-video-plus:before{content:"󰦳"}.mdi-video-plus-outline:before{content:"󰇓"}.mdi-video-stabilization:before{content:"󰤛"}.mdi-video-standard-definition:before{content:"󱲠"}.mdi-video-switch:before{content:"󰕩"}.mdi-video-switch-outline:before{content:"󰞐"}.mdi-video-vintage:before{content:"󰨜"}.mdi-video-wireless:before{content:"󰻒"}.mdi-video-wireless-outline:before{content:"󰻓"}.mdi-view-agenda:before{content:"󰕪"}.mdi-view-agenda-outline:before{content:"󱇘"}.mdi-view-array:before{content:"󰕫"}.mdi-view-array-outline:before{content:"󱒅"}.mdi-view-carousel:before{content:"󰕬"}.mdi-view-carousel-outline:before{content:"󱒆"}.mdi-view-column:before{content:"󰕭"}.mdi-view-column-outline:before{content:"󱒇"}.mdi-view-comfy:before{content:"󰹪"}.mdi-view-comfy-outline:before{content:"󱒈"}.mdi-view-compact:before{content:"󰹫"}.mdi-view-compact-outline:before{content:"󰹬"}.mdi-view-dashboard:before{content:"󰕮"}.mdi-view-dashboard-edit:before{content:"󱥇"}.mdi-view-dashboard-edit-outline:before{content:"󱥈"}.mdi-view-dashboard-outline:before{content:"󰨝"}.mdi-view-dashboard-variant:before{content:"󰡃"}.mdi-view-dashboard-variant-outline:before{content:"󱒉"}.mdi-view-day:before{content:"󰕯"}.mdi-view-day-outline:before{content:"󱒊"}.mdi-view-gallery:before{content:"󱢈"}.mdi-view-gallery-outline:before{content:"󱢉"}.mdi-view-grid:before{content:"󰕰"}.mdi-view-grid-compact:before{content:"󱱡"}.mdi-view-grid-outline:before{content:"󱇙"}.mdi-view-grid-plus:before{content:"󰾍"}.mdi-view-grid-plus-outline:before{content:"󱇚"}.mdi-view-headline:before{content:"󰕱"}.mdi-view-list:before{content:"󰕲"}.mdi-view-list-outline:before{content:"󱒋"}.mdi-view-module:before{content:"󰕳"}.mdi-view-module-outline:before{content:"󱒌"}.mdi-view-parallel:before{content:"󰜨"}.mdi-view-parallel-outline:before{content:"󱒍"}.mdi-view-quilt:before{content:"󰕴"}.mdi-view-quilt-outline:before{content:"󱒎"}.mdi-view-sequential:before{content:"󰜩"}.mdi-view-sequential-outline:before{content:"󱒏"}.mdi-view-split-horizontal:before{content:"󰯋"}.mdi-view-split-vertical:before{content:"󰯌"}.mdi-view-stream:before{content:"󰕵"}.mdi-view-stream-outline:before{content:"󱒐"}.mdi-view-week:before{content:"󰕶"}.mdi-view-week-outline:before{content:"󱒑"}.mdi-vimeo:before{content:"󰕷"}.mdi-violin:before{content:"󰘏"}.mdi-virtual-reality:before{content:"󰢔"}.mdi-virus:before{content:"󱎶"}.mdi-virus-off:before{content:"󱣡"}.mdi-virus-off-outline:before{content:"󱣢"}.mdi-virus-outline:before{content:"󱎷"}.mdi-vlc:before{content:"󰕼"}.mdi-voicemail:before{content:"󰕽"}.mdi-volcano:before{content:"󱪃"}.mdi-volcano-outline:before{content:"󱪄"}.mdi-volleyball:before{content:"󰦴"}.mdi-volume-equal:before{content:"󱬐"}.mdi-volume-high:before{content:"󰕾"}.mdi-volume-low:before{content:"󰕿"}.mdi-volume-medium:before{content:"󰖀"}.mdi-volume-minus:before{content:"󰝞"}.mdi-volume-mute:before{content:"󰝟"}.mdi-volume-off:before{content:"󰖁"}.mdi-volume-plus:before{content:"󰝝"}.mdi-volume-source:before{content:"󱄠"}.mdi-volume-variant-off:before{content:"󰸈"}.mdi-volume-vibrate:before{content:"󱄡"}.mdi-vote:before{content:"󰨟"}.mdi-vote-outline:before{content:"󰨠"}.mdi-vpn:before{content:"󰖂"}.mdi-vuejs:before{content:"󰡄"}.mdi-vuetify:before{content:"󰹭"}.mdi-walk:before{content:"󰖃"}.mdi-wall:before{content:"󰟾"}.mdi-wall-fire:before{content:"󱨑"}.mdi-wall-sconce:before{content:"󰤜"}.mdi-wall-sconce-flat:before{content:"󰤝"}.mdi-wall-sconce-flat-outline:before{content:"󱟉"}.mdi-wall-sconce-flat-variant:before{content:"󰐜"}.mdi-wall-sconce-flat-variant-outline:before{content:"󱟊"}.mdi-wall-sconce-outline:before{content:"󱟋"}.mdi-wall-sconce-round:before{content:"󰝈"}.mdi-wall-sconce-round-outline:before{content:"󱟌"}.mdi-wall-sconce-round-variant:before{content:"󰤞"}.mdi-wall-sconce-round-variant-outline:before{content:"󱟍"}.mdi-wallet:before{content:"󰖄"}.mdi-wallet-bifold:before{content:"󱱘"}.mdi-wallet-bifold-outline:before{content:"󱱙"}.mdi-wallet-giftcard:before{content:"󰖅"}.mdi-wallet-membership:before{content:"󰖆"}.mdi-wallet-outline:before{content:"󰯝"}.mdi-wallet-plus:before{content:"󰾎"}.mdi-wallet-plus-outline:before{content:"󰾏"}.mdi-wallet-travel:before{content:"󰖇"}.mdi-wallpaper:before{content:"󰸉"}.mdi-wan:before{content:"󰖈"}.mdi-wardrobe:before{content:"󰾐"}.mdi-wardrobe-outline:before{content:"󰾑"}.mdi-warehouse:before{content:"󰾁"}.mdi-washing-machine:before{content:"󰜪"}.mdi-washing-machine-alert:before{content:"󱆼"}.mdi-washing-machine-off:before{content:"󱆽"}.mdi-watch:before{content:"󰖉"}.mdi-watch-export:before{content:"󰖊"}.mdi-watch-export-variant:before{content:"󰢕"}.mdi-watch-import:before{content:"󰖋"}.mdi-watch-import-variant:before{content:"󰢖"}.mdi-watch-variant:before{content:"󰢗"}.mdi-watch-vibrate:before{content:"󰚱"}.mdi-watch-vibrate-off:before{content:"󰳚"}.mdi-water:before{content:"󰖌"}.mdi-water-alert:before{content:"󱔂"}.mdi-water-alert-outline:before{content:"󱔃"}.mdi-water-boiler:before{content:"󰾒"}.mdi-water-boiler-alert:before{content:"󱆳"}.mdi-water-boiler-auto:before{content:"󱮘"}.mdi-water-boiler-off:before{content:"󱆴"}.mdi-water-check:before{content:"󱔄"}.mdi-water-check-outline:before{content:"󱔅"}.mdi-water-circle:before{content:"󱠆"}.mdi-water-minus:before{content:"󱔆"}.mdi-water-minus-outline:before{content:"󱔇"}.mdi-water-off:before{content:"󰖍"}.mdi-water-off-outline:before{content:"󱔈"}.mdi-water-opacity:before{content:"󱡕"}.mdi-water-outline:before{content:"󰸊"}.mdi-water-percent:before{content:"󰖎"}.mdi-water-percent-alert:before{content:"󱔉"}.mdi-water-plus:before{content:"󱔊"}.mdi-water-plus-outline:before{content:"󱔋"}.mdi-water-polo:before{content:"󱊠"}.mdi-water-pump:before{content:"󰖏"}.mdi-water-pump-off:before{content:"󰾓"}.mdi-water-remove:before{content:"󱔌"}.mdi-water-remove-outline:before{content:"󱔍"}.mdi-water-sync:before{content:"󱟆"}.mdi-water-thermometer:before{content:"󱪅"}.mdi-water-thermometer-outline:before{content:"󱪆"}.mdi-water-well:before{content:"󱁫"}.mdi-water-well-outline:before{content:"󱁬"}.mdi-waterfall:before{content:"󱡉"}.mdi-watering-can:before{content:"󱒁"}.mdi-watering-can-outline:before{content:"󱒂"}.mdi-watermark:before{content:"󰘒"}.mdi-wave:before{content:"󰼮"}.mdi-wave-arrow-down:before{content:"󱲰"}.mdi-wave-arrow-up:before{content:"󱲱"}.mdi-wave-undercurrent:before{content:"󱳀"}.mdi-waveform:before{content:"󱑽"}.mdi-waves:before{content:"󰞍"}.mdi-waves-arrow-left:before{content:"󱡙"}.mdi-waves-arrow-right:before{content:"󱡚"}.mdi-waves-arrow-up:before{content:"󱡛"}.mdi-waze:before{content:"󰯞"}.mdi-weather-cloudy:before{content:"󰖐"}.mdi-weather-cloudy-alert:before{content:"󰼯"}.mdi-weather-cloudy-arrow-right:before{content:"󰹮"}.mdi-weather-cloudy-clock:before{content:"󱣶"}.mdi-weather-dust:before{content:"󱭚"}.mdi-weather-fog:before{content:"󰖑"}.mdi-weather-hail:before{content:"󰖒"}.mdi-weather-hazy:before{content:"󰼰"}.mdi-weather-hurricane:before{content:"󰢘"}.mdi-weather-hurricane-outline:before{content:"󱱸"}.mdi-weather-lightning:before{content:"󰖓"}.mdi-weather-lightning-rainy:before{content:"󰙾"}.mdi-weather-night:before{content:"󰖔"}.mdi-weather-night-partly-cloudy:before{content:"󰼱"}.mdi-weather-partly-cloudy:before{content:"󰖕"}.mdi-weather-partly-lightning:before{content:"󰼲"}.mdi-weather-partly-rainy:before{content:"󰼳"}.mdi-weather-partly-snowy:before{content:"󰼴"}.mdi-weather-partly-snowy-rainy:before{content:"󰼵"}.mdi-weather-pouring:before{content:"󰖖"}.mdi-weather-rainy:before{content:"󰖗"}.mdi-weather-snowy:before{content:"󰖘"}.mdi-weather-snowy-heavy:before{content:"󰼶"}.mdi-weather-snowy-rainy:before{content:"󰙿"}.mdi-weather-sunny:before{content:"󰖙"}.mdi-weather-sunny-alert:before{content:"󰼷"}.mdi-weather-sunny-off:before{content:"󱓤"}.mdi-weather-sunset:before{content:"󰖚"}.mdi-weather-sunset-down:before{content:"󰖛"}.mdi-weather-sunset-up:before{content:"󰖜"}.mdi-weather-tornado:before{content:"󰼸"}.mdi-weather-windy:before{content:"󰖝"}.mdi-weather-windy-variant:before{content:"󰖞"}.mdi-web:before{content:"󰖟"}.mdi-web-box:before{content:"󰾔"}.mdi-web-cancel:before{content:"󱞐"}.mdi-web-check:before{content:"󰞉"}.mdi-web-clock:before{content:"󱉊"}.mdi-web-minus:before{content:"󱂠"}.mdi-web-off:before{content:"󰪎"}.mdi-web-plus:before{content:"󰀳"}.mdi-web-refresh:before{content:"󱞑"}.mdi-web-remove:before{content:"󰕑"}.mdi-web-sync:before{content:"󱞒"}.mdi-webcam:before{content:"󰖠"}.mdi-webcam-off:before{content:"󱜷"}.mdi-webhook:before{content:"󰘯"}.mdi-webpack:before{content:"󰜫"}.mdi-webrtc:before{content:"󱉈"}.mdi-wechat:before{content:"󰘑"}.mdi-weight:before{content:"󰖡"}.mdi-weight-gram:before{content:"󰴿"}.mdi-weight-kilogram:before{content:"󰖢"}.mdi-weight-lifter:before{content:"󱅝"}.mdi-weight-pound:before{content:"󰦵"}.mdi-whatsapp:before{content:"󰖣"}.mdi-wheel-barrow:before{content:"󱓲"}.mdi-wheelchair:before{content:"󱪇"}.mdi-wheelchair-accessibility:before{content:"󰖤"}.mdi-whistle:before{content:"󰦶"}.mdi-whistle-outline:before{content:"󱊼"}.mdi-white-balance-auto:before{content:"󰖥"}.mdi-white-balance-incandescent:before{content:"󰖦"}.mdi-white-balance-iridescent:before{content:"󰖧"}.mdi-white-balance-sunny:before{content:"󰖨"}.mdi-widgets:before{content:"󰜬"}.mdi-widgets-outline:before{content:"󱍕"}.mdi-wifi:before{content:"󰖩"}.mdi-wifi-alert:before{content:"󱚵"}.mdi-wifi-arrow-down:before{content:"󱚶"}.mdi-wifi-arrow-left:before{content:"󱚷"}.mdi-wifi-arrow-left-right:before{content:"󱚸"}.mdi-wifi-arrow-right:before{content:"󱚹"}.mdi-wifi-arrow-up:before{content:"󱚺"}.mdi-wifi-arrow-up-down:before{content:"󱚻"}.mdi-wifi-cancel:before{content:"󱚼"}.mdi-wifi-check:before{content:"󱚽"}.mdi-wifi-cog:before{content:"󱚾"}.mdi-wifi-lock:before{content:"󱚿"}.mdi-wifi-lock-open:before{content:"󱛀"}.mdi-wifi-marker:before{content:"󱛁"}.mdi-wifi-minus:before{content:"󱛂"}.mdi-wifi-off:before{content:"󰖪"}.mdi-wifi-plus:before{content:"󱛃"}.mdi-wifi-refresh:before{content:"󱛄"}.mdi-wifi-remove:before{content:"󱛅"}.mdi-wifi-settings:before{content:"󱛆"}.mdi-wifi-star:before{content:"󰸋"}.mdi-wifi-strength-1:before{content:"󰤟"}.mdi-wifi-strength-1-alert:before{content:"󰤠"}.mdi-wifi-strength-1-lock:before{content:"󰤡"}.mdi-wifi-strength-1-lock-open:before{content:"󱛋"}.mdi-wifi-strength-2:before{content:"󰤢"}.mdi-wifi-strength-2-alert:before{content:"󰤣"}.mdi-wifi-strength-2-lock:before{content:"󰤤"}.mdi-wifi-strength-2-lock-open:before{content:"󱛌"}.mdi-wifi-strength-3:before{content:"󰤥"}.mdi-wifi-strength-3-alert:before{content:"󰤦"}.mdi-wifi-strength-3-lock:before{content:"󰤧"}.mdi-wifi-strength-3-lock-open:before{content:"󱛍"}.mdi-wifi-strength-4:before{content:"󰤨"}.mdi-wifi-strength-4-alert:before{content:"󰤩"}.mdi-wifi-strength-4-lock:before{content:"󰤪"}.mdi-wifi-strength-4-lock-open:before{content:"󱛎"}.mdi-wifi-strength-alert-outline:before{content:"󰤫"}.mdi-wifi-strength-lock-open-outline:before{content:"󱛏"}.mdi-wifi-strength-lock-outline:before{content:"󰤬"}.mdi-wifi-strength-off:before{content:"󰤭"}.mdi-wifi-strength-off-outline:before{content:"󰤮"}.mdi-wifi-strength-outline:before{content:"󰤯"}.mdi-wifi-sync:before{content:"󱛇"}.mdi-wikipedia:before{content:"󰖬"}.mdi-wind-power:before{content:"󱪈"}.mdi-wind-power-outline:before{content:"󱪉"}.mdi-wind-turbine:before{content:"󰶥"}.mdi-wind-turbine-alert:before{content:"󱦫"}.mdi-wind-turbine-check:before{content:"󱦬"}.mdi-window-close:before{content:"󰖭"}.mdi-window-closed:before{content:"󰖮"}.mdi-window-closed-variant:before{content:"󱇛"}.mdi-window-maximize:before{content:"󰖯"}.mdi-window-minimize:before{content:"󰖰"}.mdi-window-open:before{content:"󰖱"}.mdi-window-open-variant:before{content:"󱇜"}.mdi-window-restore:before{content:"󰖲"}.mdi-window-shutter:before{content:"󱄜"}.mdi-window-shutter-alert:before{content:"󱄝"}.mdi-window-shutter-auto:before{content:"󱮣"}.mdi-window-shutter-cog:before{content:"󱪊"}.mdi-window-shutter-open:before{content:"󱄞"}.mdi-window-shutter-settings:before{content:"󱪋"}.mdi-windsock:before{content:"󱗺"}.mdi-wiper:before{content:"󰫩"}.mdi-wiper-wash:before{content:"󰶦"}.mdi-wiper-wash-alert:before{content:"󱣟"}.mdi-wizard-hat:before{content:"󱑷"}.mdi-wordpress:before{content:"󰖴"}.mdi-wrap:before{content:"󰖶"}.mdi-wrap-disabled:before{content:"󰯟"}.mdi-wrench:before{content:"󰖷"}.mdi-wrench-check:before{content:"󱮏"}.mdi-wrench-check-outline:before{content:"󱮐"}.mdi-wrench-clock:before{content:"󱦣"}.mdi-wrench-clock-outline:before{content:"󱮓"}.mdi-wrench-cog:before{content:"󱮑"}.mdi-wrench-cog-outline:before{content:"󱮒"}.mdi-wrench-outline:before{content:"󰯠"}.mdi-xamarin:before{content:"󰡅"}.mdi-xml:before{content:"󰗀"}.mdi-xmpp:before{content:"󰟿"}.mdi-yahoo:before{content:"󰭏"}.mdi-yeast:before{content:"󰗁"}.mdi-yin-yang:before{content:"󰚀"}.mdi-yoga:before{content:"󱅼"}.mdi-youtube:before{content:"󰗃"}.mdi-youtube-gaming:before{content:"󰡈"}.mdi-youtube-studio:before{content:"󰡇"}.mdi-youtube-subscription:before{content:"󰵀"}.mdi-youtube-tv:before{content:"󰑈"}.mdi-yurt:before{content:"󱔖"}.mdi-z-wave:before{content:"󰫪"}.mdi-zend:before{content:"󰫫"}.mdi-zigbee:before{content:"󰵁"}.mdi-zip-box:before{content:"󰗄"}.mdi-zip-box-outline:before{content:"󰿺"}.mdi-zip-disk:before{content:"󰨣"}.mdi-zodiac-aquarius:before{content:"󰩽"}.mdi-zodiac-aries:before{content:"󰩾"}.mdi-zodiac-cancer:before{content:"󰩿"}.mdi-zodiac-capricorn:before{content:"󰪀"}.mdi-zodiac-gemini:before{content:"󰪁"}.mdi-zodiac-leo:before{content:"󰪂"}.mdi-zodiac-libra:before{content:"󰪃"}.mdi-zodiac-pisces:before{content:"󰪄"}.mdi-zodiac-sagittarius:before{content:"󰪅"}.mdi-zodiac-scorpio:before{content:"󰪆"}.mdi-zodiac-taurus:before{content:"󰪇"}.mdi-zodiac-virgo:before{content:"󰪈"}.mdi-blank:before{content:"";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}html,body{font-family:Pathway Extreme,sans-serif}h1,h2,h3,h4,h5,p{margin:0}ul{list-style-position:inside}.zt-menu{border:1px solid rgba(var(--v-theme-bluegrey))}.zt-menu .v-list-item__prepend{margin-right:12px}.v-container{max-width:1250px}.code-output{white-space:pre-wrap}.v-expansion-panel--active>.v-expansion-panel-title{min-height:31px}.add-cell-item:hover{background-color:rgba(var(--v-theme-bluegrey))}.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important}.bg-black{color:#fff!important}.bg-white{background-color:#fff!important}.bg-white{color:#000!important}.bg-transparent{background-color:transparent!important}.bg-transparent{color:currentColor!important}.bg-red{background-color:#f44336!important}.bg-red{color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important}.bg-red-lighten-5{color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important}.bg-red-lighten-4{color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important}.bg-red-lighten-3{color:#000!important}.bg-red-lighten-2{background-color:#e57373!important}.bg-red-lighten-2{color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important}.bg-red-lighten-1{color:#fff!important}.bg-red-darken-1{background-color:#e53935!important}.bg-red-darken-1{color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important}.bg-red-darken-2{color:#fff!important}.bg-red-darken-3{background-color:#c62828!important}.bg-red-darken-3{color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important}.bg-red-darken-4{color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important}.bg-red-accent-1{color:#000!important}.bg-red-accent-2{background-color:#ff5252!important}.bg-red-accent-2{color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important}.bg-red-accent-3{color:#fff!important}.bg-red-accent-4{background-color:#d50000!important}.bg-red-accent-4{color:#fff!important}.bg-pink{background-color:#e91e63!important}.bg-pink{color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important}.bg-pink-lighten-5{color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important}.bg-pink-lighten-4{color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important}.bg-pink-lighten-3{color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important}.bg-pink-lighten-2{color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important}.bg-pink-lighten-1{color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important}.bg-pink-darken-1{color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important}.bg-pink-darken-2{color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important}.bg-pink-darken-3{color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important}.bg-pink-darken-4{color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important}.bg-pink-accent-1{color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important}.bg-pink-accent-2{color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important}.bg-pink-accent-3{color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important}.bg-pink-accent-4{color:#fff!important}.bg-purple{background-color:#9c27b0!important}.bg-purple{color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important}.bg-purple-lighten-5{color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important}.bg-purple-lighten-4{color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important}.bg-purple-lighten-3{color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important}.bg-purple-lighten-2{color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important}.bg-purple-lighten-1{color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important}.bg-purple-darken-1{color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important}.bg-purple-darken-2{color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important}.bg-purple-darken-3{color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important}.bg-purple-darken-4{color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important}.bg-purple-accent-1{color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important}.bg-purple-accent-2{color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important}.bg-purple-accent-3{color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important}.bg-purple-accent-4{color:#fff!important}.bg-deep-purple{background-color:#673ab7!important}.bg-deep-purple{color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important}.bg-deep-purple-lighten-5{color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important}.bg-deep-purple-lighten-4{color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important}.bg-deep-purple-lighten-3{color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important}.bg-deep-purple-lighten-2{color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important}.bg-deep-purple-lighten-1{color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important}.bg-deep-purple-darken-1{color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important}.bg-deep-purple-darken-2{color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important}.bg-deep-purple-darken-3{color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important}.bg-deep-purple-darken-4{color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important}.bg-deep-purple-accent-1{color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important}.bg-deep-purple-accent-2{color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important}.bg-deep-purple-accent-3{color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important}.bg-deep-purple-accent-4{color:#fff!important}.bg-indigo{background-color:#3f51b5!important}.bg-indigo{color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important}.bg-indigo-lighten-5{color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important}.bg-indigo-lighten-4{color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important}.bg-indigo-lighten-3{color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important}.bg-indigo-lighten-2{color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important}.bg-indigo-lighten-1{color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important}.bg-indigo-darken-1{color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important}.bg-indigo-darken-2{color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important}.bg-indigo-darken-3{color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important}.bg-indigo-darken-4{color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important}.bg-indigo-accent-1{color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important}.bg-indigo-accent-2{color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important}.bg-indigo-accent-3{color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important}.bg-indigo-accent-4{color:#fff!important}.bg-blue{background-color:#2196f3!important}.bg-blue{color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important}.bg-blue-lighten-5{color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important}.bg-blue-lighten-4{color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important}.bg-blue-lighten-3{color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important}.bg-blue-lighten-2{color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important}.bg-blue-lighten-1{color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important}.bg-blue-darken-1{color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important}.bg-blue-darken-2{color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important}.bg-blue-darken-3{color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important}.bg-blue-darken-4{color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important}.bg-blue-accent-1{color:#000!important}.bg-blue-accent-2{background-color:#448aff!important}.bg-blue-accent-2{color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important}.bg-blue-accent-3{color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important}.bg-blue-accent-4{color:#fff!important}.bg-light-blue{background-color:#03a9f4!important}.bg-light-blue{color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important}.bg-light-blue-lighten-5{color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important}.bg-light-blue-lighten-4{color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important}.bg-light-blue-lighten-3{color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important}.bg-light-blue-lighten-2{color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important}.bg-light-blue-lighten-1{color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important}.bg-light-blue-darken-1{color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important}.bg-light-blue-darken-2{color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important}.bg-light-blue-darken-3{color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important}.bg-light-blue-darken-4{color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important}.bg-light-blue-accent-1{color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important}.bg-light-blue-accent-2{color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important}.bg-light-blue-accent-3{color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important}.bg-light-blue-accent-4{color:#fff!important}.bg-cyan{background-color:#00bcd4!important}.bg-cyan{color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important}.bg-cyan-lighten-5{color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important}.bg-cyan-lighten-4{color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important}.bg-cyan-lighten-3{color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important}.bg-cyan-lighten-2{color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important}.bg-cyan-lighten-1{color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important}.bg-cyan-darken-1{color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important}.bg-cyan-darken-2{color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important}.bg-cyan-darken-3{color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important}.bg-cyan-darken-4{color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important}.bg-cyan-accent-1{color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important}.bg-cyan-accent-2{color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important}.bg-cyan-accent-3{color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important}.bg-cyan-accent-4{color:#fff!important}.bg-teal{background-color:#009688!important}.bg-teal{color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important}.bg-teal-lighten-5{color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important}.bg-teal-lighten-4{color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important}.bg-teal-lighten-3{color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important}.bg-teal-lighten-2{color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important}.bg-teal-lighten-1{color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important}.bg-teal-darken-1{color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important}.bg-teal-darken-2{color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important}.bg-teal-darken-3{color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important}.bg-teal-darken-4{color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important}.bg-teal-accent-1{color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important}.bg-teal-accent-2{color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important}.bg-teal-accent-3{color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important}.bg-teal-accent-4{color:#fff!important}.bg-green{background-color:#4caf50!important}.bg-green{color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important}.bg-green-lighten-5{color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important}.bg-green-lighten-4{color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important}.bg-green-lighten-3{color:#000!important}.bg-green-lighten-2{background-color:#81c784!important}.bg-green-lighten-2{color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important}.bg-green-lighten-1{color:#fff!important}.bg-green-darken-1{background-color:#43a047!important}.bg-green-darken-1{color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important}.bg-green-darken-2{color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important}.bg-green-darken-3{color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important}.bg-green-darken-4{color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important}.bg-green-accent-1{color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important}.bg-green-accent-2{color:#000!important}.bg-green-accent-3{background-color:#00e676!important}.bg-green-accent-3{color:#000!important}.bg-green-accent-4{background-color:#00c853!important}.bg-green-accent-4{color:#000!important}.bg-light-green{background-color:#8bc34a!important}.bg-light-green{color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important}.bg-light-green-lighten-5{color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important}.bg-light-green-lighten-4{color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important}.bg-light-green-lighten-3{color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important}.bg-light-green-lighten-2{color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important}.bg-light-green-lighten-1{color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important}.bg-light-green-darken-1{color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important}.bg-light-green-darken-2{color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important}.bg-light-green-darken-3{color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important}.bg-light-green-darken-4{color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important}.bg-light-green-accent-1{color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important}.bg-light-green-accent-2{color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important}.bg-light-green-accent-3{color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important}.bg-light-green-accent-4{color:#000!important}.bg-lime{background-color:#cddc39!important}.bg-lime{color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important}.bg-lime-lighten-5{color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important}.bg-lime-lighten-4{color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important}.bg-lime-lighten-3{color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important}.bg-lime-lighten-2{color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important}.bg-lime-lighten-1{color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important}.bg-lime-darken-1{color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important}.bg-lime-darken-2{color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important}.bg-lime-darken-3{color:#fff!important}.bg-lime-darken-4{background-color:#827717!important}.bg-lime-darken-4{color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important}.bg-lime-accent-1{color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important}.bg-lime-accent-2{color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important}.bg-lime-accent-3{color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important}.bg-lime-accent-4{color:#000!important}.bg-yellow{background-color:#ffeb3b!important}.bg-yellow{color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important}.bg-yellow-lighten-5{color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important}.bg-yellow-lighten-4{color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important}.bg-yellow-lighten-3{color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important}.bg-yellow-lighten-2{color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important}.bg-yellow-lighten-1{color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important}.bg-yellow-darken-1{color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important}.bg-yellow-darken-2{color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important}.bg-yellow-darken-3{color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important}.bg-yellow-darken-4{color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important}.bg-yellow-accent-1{color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important}.bg-yellow-accent-2{color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important}.bg-yellow-accent-3{color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important}.bg-yellow-accent-4{color:#000!important}.bg-amber{background-color:#ffc107!important}.bg-amber{color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important}.bg-amber-lighten-5{color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important}.bg-amber-lighten-4{color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important}.bg-amber-lighten-3{color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important}.bg-amber-lighten-2{color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important}.bg-amber-lighten-1{color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important}.bg-amber-darken-1{color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important}.bg-amber-darken-2{color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important}.bg-amber-darken-3{color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important}.bg-amber-darken-4{color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important}.bg-amber-accent-1{color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important}.bg-amber-accent-2{color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important}.bg-amber-accent-3{color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important}.bg-amber-accent-4{color:#000!important}.bg-orange{background-color:#ff9800!important}.bg-orange{color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important}.bg-orange-lighten-5{color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important}.bg-orange-lighten-4{color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important}.bg-orange-lighten-3{color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important}.bg-orange-lighten-2{color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important}.bg-orange-lighten-1{color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important}.bg-orange-darken-1{color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important}.bg-orange-darken-2{color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important}.bg-orange-darken-3{color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important}.bg-orange-darken-4{color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important}.bg-orange-accent-1{color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important}.bg-orange-accent-2{color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important}.bg-orange-accent-3{color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important}.bg-orange-accent-4{color:#fff!important}.bg-deep-orange{background-color:#ff5722!important}.bg-deep-orange{color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important}.bg-deep-orange-lighten-5{color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important}.bg-deep-orange-lighten-4{color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important}.bg-deep-orange-lighten-3{color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important}.bg-deep-orange-lighten-2{color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important}.bg-deep-orange-lighten-1{color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important}.bg-deep-orange-darken-1{color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important}.bg-deep-orange-darken-2{color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important}.bg-deep-orange-darken-3{color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important}.bg-deep-orange-darken-4{color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important}.bg-deep-orange-accent-1{color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important}.bg-deep-orange-accent-2{color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important}.bg-deep-orange-accent-3{color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important}.bg-deep-orange-accent-4{color:#fff!important}.bg-brown{background-color:#795548!important}.bg-brown{color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important}.bg-brown-lighten-5{color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important}.bg-brown-lighten-4{color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important}.bg-brown-lighten-3{color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important}.bg-brown-lighten-2{color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important}.bg-brown-lighten-1{color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important}.bg-brown-darken-1{color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important}.bg-brown-darken-2{color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important}.bg-brown-darken-3{color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important}.bg-brown-darken-4{color:#fff!important}.bg-blue-grey{background-color:#607d8b!important}.bg-blue-grey{color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important}.bg-blue-grey-lighten-5{color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important}.bg-blue-grey-lighten-4{color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important}.bg-blue-grey-lighten-3{color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important}.bg-blue-grey-lighten-2{color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important}.bg-blue-grey-lighten-1{color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important}.bg-blue-grey-darken-1{color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important}.bg-blue-grey-darken-2{color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important}.bg-blue-grey-darken-3{color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important}.bg-blue-grey-darken-4{color:#fff!important}.bg-grey{background-color:#9e9e9e!important}.bg-grey{color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important}.bg-grey-lighten-5{color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important}.bg-grey-lighten-4{color:#000!important}.bg-grey-lighten-3{background-color:#eee!important}.bg-grey-lighten-3{color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important}.bg-grey-lighten-2{color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important}.bg-grey-lighten-1{color:#000!important}.bg-grey-darken-1{background-color:#757575!important}.bg-grey-darken-1{color:#fff!important}.bg-grey-darken-2{background-color:#616161!important}.bg-grey-darken-2{color:#fff!important}.bg-grey-darken-3{background-color:#424242!important}.bg-grey-darken-3{color:#fff!important}.bg-grey-darken-4{background-color:#212121!important}.bg-grey-darken-4{color:#fff!important}.bg-shades-black{background-color:#000!important}.bg-shades-black{color:#fff!important}.bg-shades-white{background-color:#fff!important}.bg-shades-white{color:#000!important}.bg-shades-transparent{background-color:transparent!important}.bg-shades-transparent{color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! +@charset "UTF-8";.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%}.v-toolbar{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar{border-radius:0}.v-toolbar{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden;border-end-end-radius:24px}.v-toolbar--collapse .v-toolbar-title{display:none}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content{overflow:hidden}.v-toolbar__content>.v-btn:first-child{margin-inline-start:4px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:4px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:20px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline:4px auto}.v-toolbar__append{margin-inline:auto 4px}.v-toolbar-title{flex:1 1;font-size:1.25rem;min-width:0}.v-toolbar-title{font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px}.v-toolbar--density-prominent .v-toolbar-title{font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0}.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img--rounded{border-radius:4px}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;vertical-align:middle;flex-shrink:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-btn .v-btn__underlay{position:absolute}@supports selector(:focus-visible){.v-btn:after{pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--slim{padding:0 8px}.v-btn--readonly{pointer-events:none}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn--stacked.v-btn--block{min-width:100%}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__loader>.v-progress-circular{width:1.5em;height:1.5em}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn--slim .v-btn__prepend{margin-inline-start:0}.v-btn__append{grid-area:append;margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--slim .v-btn__append{margin-inline-end:0}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{pointer-events:none}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-pagination .v-btn{border-radius:4px}.v-pagination .v-btn--rounded{border-radius:50%}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(0 * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((0 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle}.v-btn-group{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn-group{border-radius:4px}.v-btn-group{background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}@media (forced-colors: active){.v-progress-linear{border:thin solid buttontext}}.v-progress-linear__background,.v-progress-linear__buffer{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;width:100%;transition-property:width,left,right;transition:inherit}@media (forced-colors: active){.v-progress-linear__buffer{background-color:highlight;opacity:.3}}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}@media (forced-colors: active){.v-progress-linear__determinate,.v-progress-linear__indeterminate{background-color:highlight}}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-progress-linear--rounded-bar .v-progress-linear__determinate{border-start-start-radius:0;border-end-start-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-alert{display:grid;flex:1 1;grid-template-areas:"prepend content append close" ". content . .";grid-template-columns:max-content auto max-content max-content;position:relative;padding:16px;overflow:hidden;--v-border-color: currentColor}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert{border-radius:4px}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{background:transparent;color:inherit}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-alert--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-outlined{border:thin solid currentColor}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-alert .v-alert__underlay{position:absolute}.v-alert--prominent{grid-template-areas:"prepend content append close" "prepend content . ."}.v-alert.v-alert--border{--v-border-opacity: .38}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:.2s opacity cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-bottom:16px;padding-top:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-bottom:12px;padding-top:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-bottom:8px;padding-top:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert__border{border-radius:inherit;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;pointer-events:none;right:0;top:0;width:100%}.v-alert__border{border-color:currentColor;border-style:solid;border-width:0}.v-alert__border--border{border-width:8px;box-shadow:none}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 1 auto;grid-area:close}.v-alert__content{align-self:center;grid-area:content;overflow:hidden}.v-alert__append,.v-alert__close{align-self:flex-start;margin-inline-start:16px}.v-alert__append{align-self:flex-start;grid-area:append}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{align-self:flex-start;display:flex;align-items:center;grid-area:prepend;margin-inline-end:16px}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-alert-title{align-items:center;align-self:center;display:flex;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;line-height:1.75rem;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden}.v-autocomplete__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-autocomplete__content{border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-surface-light))}.v-autocomplete__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single:not(.v-autocomplete--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--active input{transition:none}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar{border-radius:50%}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-avatar .v-avatar__underlay{position:absolute}.v-avatar--rounded{border-radius:4px}.v-avatar--start{margin-inline-end:8px}.v-avatar--end{margin-inline-start:8px}.v-avatar .v-img{height:100%;width:100%}.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error .v-label,.v-selection-control--disabled .v-label{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-label{align-items:center;color:inherit;display:inline-flex;font-size:1rem;letter-spacing:.009375em;min-width:0;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-label--clickable{cursor:pointer}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.v-input{display:grid;flex:1 1 auto;font-size:1rem;font-weight:400;line-height:1.5}.v-input--disabled{pointer-events:none}.v-input--density-default{--v-input-control-height: 56px;--v-input-padding-top: 16px}.v-input--density-comfortable{--v-input-control-height: 48px;--v-input-padding-top: 12px}.v-input--density-compact{--v-input-control-height: 40px;--v-input-padding-top: 8px}.v-input--vertical{grid-template-areas:"append" "control" "prepend";grid-template-rows:max-content auto max-content;grid-template-columns:min-content}.v-input--vertical .v-input__prepend{margin-block-start:16px}.v-input--vertical .v-input__append{margin-block-end:16px}.v-input--horizontal{grid-template-areas:"prepend control append" "a messages b";grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto auto}.v-input--horizontal .v-input__prepend{margin-inline-end:16px}.v-input--horizontal .v-input__append{margin-inline-start:16px}.v-input__details{align-items:flex-end;display:flex;font-size:.75rem;font-weight:400;grid-area:messages;letter-spacing:.0333333333em;line-height:normal;min-height:22px;padding-top:6px;overflow:hidden;justify-content:space-between}.v-input__details>.v-icon,.v-input__prepend>.v-icon,.v-input__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-input--disabled .v-input__details>.v-icon,.v-input--disabled .v-input__details .v-messages,.v-input--error .v-input__details>.v-icon,.v-input--error .v-input__details .v-messages,.v-input--disabled .v-input__prepend>.v-icon,.v-input--disabled .v-input__prepend .v-messages,.v-input--error .v-input__prepend>.v-icon,.v-input--error .v-input__prepend .v-messages,.v-input--disabled .v-input__append>.v-icon,.v-input--disabled .v-input__append .v-messages,.v-input--error .v-input__append>.v-icon,.v-input--error .v-input__append .v-messages{opacity:1}.v-input--disabled .v-input__details,.v-input--disabled .v-input__prepend,.v-input--disabled .v-input__append{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-input__details>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__details .v-messages,.v-input--error:not(.v-input--disabled) .v-input__prepend>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__prepend .v-messages,.v-input--error:not(.v-input--disabled) .v-input__append>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__append .v-messages{color:rgb(var(--v-theme-error))}.v-input__prepend,.v-input__append{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top)}.v-input--center-affix .v-input__prepend,.v-input--center-affix .v-input__append{align-items:center;padding-top:0}.v-input__prepend{grid-area:prepend}.v-input__append{grid-area:append}.v-input__control{display:flex;grid-area:control}.v-input--hide-spin-buttons input::-webkit-outer-spin-button,.v-input--hide-spin-buttons input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.v-input--hide-spin-buttons input[type=number]{-moz-appearance:textfield}.v-input--plain-underlined .v-input__prepend,.v-input--plain-underlined .v-input__append{align-items:flex-start}.v-input--density-default.v-input--plain-underlined .v-input__prepend,.v-input--density-default.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 4px)}.v-input--density-comfortable.v-input--plain-underlined .v-input__prepend,.v-input--density-comfortable.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 2px)}.v-input--density-compact.v-input--plain-underlined .v-input__prepend,.v-input--density-compact.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 0px)}.v-messages{flex:1 1 auto;font-size:12px;min-height:14px;min-width:1px;opacity:var(--v-medium-emphasis-opacity);position:relative}.v-messages__message{line-height:12px;word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;transition-duration:.15s}.v-chip{align-items:center;display:inline-flex;font-weight:400;max-width:100%;min-width:0;overflow:hidden;position:relative;text-decoration:none;white-space:nowrap;vertical-align:middle}.v-chip .v-icon{--v-icon-size-multiplier: .8571428571}.v-chip.v-chip--size-x-small{--v-chip-size: .625rem;--v-chip-height: 20px;font-size:.625rem;padding:0 8px}.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 14px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 20px}.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-5.6px;margin-inline-end:4px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-8px}.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-start:4px;margin-inline-end:-5.6px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-end:-8px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-x-small .v-icon--start,.v-chip.v-chip--size-x-small .v-chip__filter{margin-inline-start:-4px;margin-inline-end:4px}.v-chip.v-chip--size-x-small .v-icon--end,.v-chip.v-chip--size-x-small .v-chip__close{margin-inline-start:4px;margin-inline-end:-4px}.v-chip.v-chip--size-x-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-chip__append+.v-chip__close{margin-inline-start:8px}.v-chip.v-chip--size-small{--v-chip-size: .75rem;--v-chip-height: 26px;font-size:.75rem;padding:0 10px}.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 20px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 26px}.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-7px;margin-inline-end:5px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-10px}.v-chip.v-chip--size-small .v-avatar--end{margin-inline-start:5px;margin-inline-end:-7px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end{margin-inline-end:-10px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close{margin-inline-start:15px}.v-chip.v-chip--size-small .v-icon--start,.v-chip.v-chip--size-small .v-chip__filter{margin-inline-start:-5px;margin-inline-end:5px}.v-chip.v-chip--size-small .v-icon--end,.v-chip.v-chip--size-small .v-chip__close{margin-inline-start:5px;margin-inline-end:-5px}.v-chip.v-chip--size-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-small .v-chip__append+.v-chip__close{margin-inline-start:10px}.v-chip.v-chip--size-default{--v-chip-size: .875rem;--v-chip-height: 32px;font-size:.875rem;padding:0 12px}.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 26px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 32px}.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-8.4px;margin-inline-end:6px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-12px}.v-chip.v-chip--size-default .v-avatar--end{margin-inline-start:6px;margin-inline-end:-8.4px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end{margin-inline-end:-12px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close{margin-inline-start:18px}.v-chip.v-chip--size-default .v-icon--start,.v-chip.v-chip--size-default .v-chip__filter{margin-inline-start:-6px;margin-inline-end:6px}.v-chip.v-chip--size-default .v-icon--end,.v-chip.v-chip--size-default .v-chip__close{margin-inline-start:6px;margin-inline-end:-6px}.v-chip.v-chip--size-default .v-icon--end+.v-chip__close,.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-default .v-chip__append+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-large{--v-chip-size: 1rem;--v-chip-height: 38px;font-size:1rem;padding:0 14px}.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 32px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 38px}.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-9.8px;margin-inline-end:7px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-14px}.v-chip.v-chip--size-large .v-avatar--end{margin-inline-start:7px;margin-inline-end:-9.8px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end{margin-inline-end:-14px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close{margin-inline-start:21px}.v-chip.v-chip--size-large .v-icon--start,.v-chip.v-chip--size-large .v-chip__filter{margin-inline-start:-7px;margin-inline-end:7px}.v-chip.v-chip--size-large .v-icon--end,.v-chip.v-chip--size-large .v-chip__close{margin-inline-start:7px;margin-inline-end:-7px}.v-chip.v-chip--size-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-large .v-chip__append+.v-chip__close{margin-inline-start:14px}.v-chip.v-chip--size-x-large{--v-chip-size: 1.125rem;--v-chip-height: 44px;font-size:1.125rem;padding:0 17px}.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 38px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 44px}.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-11.9px;margin-inline-end:8.5px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-17px}.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-start:8.5px;margin-inline-end:-11.9px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-end:-17px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close{margin-inline-start:25.5px}.v-chip.v-chip--size-x-large .v-icon--start,.v-chip.v-chip--size-x-large .v-chip__filter{margin-inline-start:-8.5px;margin-inline-end:8.5px}.v-chip.v-chip--size-x-large .v-icon--end,.v-chip.v-chip--size-x-large .v-chip__close{margin-inline-start:8.5px;margin-inline-end:-8.5px}.v-chip.v-chip--size-x-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-chip__append+.v-chip__close{margin-inline-start:17px}.v-chip.v-chip--density-default{height:calc(var(--v-chip-height) + 0px)}.v-chip.v-chip--density-comfortable{height:calc(var(--v-chip-height) + -4px)}.v-chip.v-chip--density-compact{height:calc(var(--v-chip-height) + -8px)}.v-chip{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-chip:hover>.v-chip__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-chip:focus-visible>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip:focus>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-chip--active>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]>.v-chip__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-chip--active:hover>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:hover>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-chip--active:focus-visible>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip--active:focus>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-chip{border-radius:9999px}.v-chip--variant-plain,.v-chip--variant-outlined,.v-chip--variant-text,.v-chip--variant-tonal{background:transparent;color:inherit}.v-chip--variant-plain{opacity:.26}.v-chip--variant-plain:focus,.v-chip--variant-plain:hover{opacity:1}.v-chip--variant-plain .v-chip__overlay{display:none}.v-chip--variant-elevated,.v-chip--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-chip--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-outlined{border:thin solid currentColor}.v-chip--variant-text .v-chip__overlay{background:currentColor}.v-chip--variant-tonal .v-chip__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-chip .v-chip__underlay{position:absolute}.v-chip--border{border-width:thin}.v-chip--link{cursor:pointer}.v-chip--link,.v-chip--filter{-webkit-user-select:none;user-select:none}.v-chip__content{align-items:center;display:inline-flex}.v-autocomplete__selection .v-chip__content,.v-combobox__selection .v-chip__content,.v-select__selection .v-chip__content{overflow:hidden}.v-chip__filter,.v-chip__prepend,.v-chip__append,.v-chip__close{align-items:center;display:inline-flex}.v-chip__close{cursor:pointer;flex:0 1 auto;font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;user-select:none}.v-chip__close .v-icon{font-size:inherit}.v-chip__filter{transition:.15s cubic-bezier(.4,0,.2,1)}.v-chip__overlay{background-color:currentColor;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-chip__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-chip--disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}.v-chip--label{border-radius:4px}.v-chip-group{display:flex;max-width:100%;min-width:0;overflow-x:auto;padding:4px 0}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip.v-chip--selected:not(.v-chip--disabled) .v-chip__overlay{opacity:var(--v-activated-opacity)}.v-chip-group--column .v-slide-group__content{white-space:normal;flex-wrap:wrap;max-width:100%}.v-slide-group{display:flex;overflow:hidden}.v-slide-group__next,.v-slide-group__prev{align-items:center;display:flex;flex:0 1 52px;justify-content:center;min-width:52px;cursor:pointer}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none;opacity:var(--v-disabled-opacity)}.v-slide-group__content{display:flex;flex:1 0 auto;position:relative;transition:.2s all cubic-bezier(.4,0,.2,1);white-space:nowrap}.v-slide-group__content>*{white-space:initial}.v-slide-group__container{contain:content;display:flex;flex:1 1 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scrollbar-color:rgba(0,0,0,0)}.v-slide-group__container::-webkit-scrollbar{display:none}.v-slide-group--vertical{max-height:inherit}.v-slide-group--vertical,.v-slide-group--vertical .v-slide-group__container,.v-slide-group--vertical .v-slide-group__content{flex-direction:column}.v-slide-group--vertical .v-slide-group__container{overflow-x:hidden;overflow-y:auto}.v-list{overflow:auto;padding:8px 0;position:relative;outline:none}.v-list{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list--border{border-width:thin;box-shadow:none}.v-list{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list{border-radius:0}.v-list{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-list--nav{padding-inline:8px}.v-list--rounded{border-radius:4px}.v-list--subheader{padding-top:0}.v-list-img{border-radius:inherit;display:flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-list-subheader{align-items:center;background:inherit;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.375rem;padding-inline-end:16px;min-height:40px;transition:.2s min-height cubic-bezier(.4,0,.2,1)}.v-list-subheader__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-list--density-default .v-list-subheader{min-height:40px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-comfortable .v-list-subheader{min-height:36px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-compact .v-list-subheader{min-height:32px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-subheader--inset{--indent-padding: 56px}.v-list--nav .v-list-subheader{font-size:.75rem}.v-list-subheader--sticky{background:inherit;left:0;position:sticky;top:0;z-index:1}.v-list__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content 1fr auto;outline:none;max-width:100%;padding:4px 16px;position:relative;text-decoration:none}.v-list-item{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list-item--border{border-width:thin;box-shadow:none}.v-list-item:hover>.v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item:focus-visible>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item:focus>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-list-item--active>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]>.v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--active:hover>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:hover>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-list-item--active:focus-visible>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item--active:focus>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-list-item{border-radius:0}.v-list-item--variant-plain,.v-list-item--variant-outlined,.v-list-item--variant-text,.v-list-item--variant-tonal{background:transparent;color:inherit}.v-list-item--variant-plain{opacity:.62}.v-list-item--variant-plain:focus,.v-list-item--variant-plain:hover{opacity:1}.v-list-item--variant-plain .v-list-item__overlay{display:none}.v-list-item--variant-elevated,.v-list-item--variant-flat{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list-item--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-outlined{border:thin solid currentColor}.v-list-item--variant-text .v-list-item__overlay{background:currentColor}.v-list-item--variant-tonal .v-list-item__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-list-item .v-list-item__underlay{position:absolute}@supports selector(:focus-visible){.v-list-item:after{pointer-events:none;border:2px solid currentColor;border-radius:4px;opacity:0;transition:opacity .2s ease-in-out}.v-list-item:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-list-item:focus-visible:after{opacity:calc(.15 * var(--v-theme-overlay-multiplier))}}.v-list-item__prepend>.v-badge .v-icon,.v-list-item__prepend>.v-icon,.v-list-item__append>.v-badge .v-icon,.v-list-item__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-list-item--active .v-list-item__prepend>.v-badge .v-icon,.v-list-item--active .v-list-item__prepend>.v-icon,.v-list-item--active .v-list-item__append>.v-badge .v-icon,.v-list-item--active .v-list-item__append>.v-icon{opacity:1}.v-list-item--active:not(.v-list-item--link) .v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--rounded{border-radius:4px}.v-list-item--disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.v-list-item--link{cursor:pointer}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item .v-avatar,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item .v-avatar{--v-avatar-height: 24px}.v-list-item__prepend{align-items:center;align-self:center;display:flex;grid-area:prepend}.v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:0}.v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__prepend{align-self:start}.v-list-item__append{align-self:center;display:flex;align-items:center;grid-area:append}.v-list-item__append .v-list-item__spacer{order:-1;transition:.15s width cubic-bezier(.4,0,.2,1)}.v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item__append>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__append>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__append>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__append{align-self:start}.v-list-item__content{align-self:center;grid-area:content;overflow:hidden}.v-list-item-action{align-self:center;display:flex;align-items:center;flex:none;transition:inherit;transition-property:height,width}.v-list-item-action--start{margin-inline-end:8px;margin-inline-start:-8px}.v-list-item-action--end{margin-inline-start:8px;margin-inline-end:-8px}.v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-media--start{margin-inline-end:16px}.v-list-item-media--end{margin-inline-start:16px}.v-list-item--two-line .v-list-item-media{margin-top:-4px;margin-bottom:-4px}.v-list-item--three-line .v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-subtitle{-webkit-box-orient:vertical;display:-webkit-box;opacity:var(--v-list-item-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0;text-overflow:ellipsis;overflow-wrap:break-word;word-break:initial}.v-list-item--one-line .v-list-item-subtitle{-webkit-line-clamp:1}.v-list-item--two-line .v-list-item-subtitle{-webkit-line-clamp:2}.v-list-item--three-line .v-list-item-subtitle{-webkit-line-clamp:3}.v-list-item-subtitle{font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem;text-transform:none}.v-list-item--nav .v-list-item-subtitle{font-size:.75rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem}.v-list-item-title{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:normal;overflow:hidden;padding:0;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word}.v-list-item-title{font-size:1rem;font-weight:400;letter-spacing:.009375em;line-height:1.5;text-transform:none}.v-list-item--nav .v-list-item-title{font-size:.8125rem;font-weight:500;letter-spacing:normal;line-height:1rem}.v-list-item--density-default{min-height:40px}.v-list-item--density-default.v-list-item--one-line{min-height:48px;padding-top:4px;padding-bottom:4px}.v-list-item--density-default.v-list-item--two-line{min-height:64px;padding-top:12px;padding-bottom:12px}.v-list-item--density-default.v-list-item--three-line{min-height:88px;padding-top:16px;padding-bottom:16px}.v-list-item--density-default.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-default.v-list-item--three-line .v-list-item__append{padding-top:8px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-comfortable{min-height:36px}.v-list-item--density-comfortable.v-list-item--one-line{min-height:44px}.v-list-item--density-comfortable.v-list-item--two-line{min-height:60px;padding-top:8px;padding-bottom:8px}.v-list-item--density-comfortable.v-list-item--three-line{min-height:84px;padding-top:12px;padding-bottom:12px}.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__append{padding-top:6px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-compact{min-height:32px}.v-list-item--density-compact.v-list-item--one-line{min-height:40px}.v-list-item--density-compact.v-list-item--two-line{min-height:56px;padding-top:4px;padding-bottom:4px}.v-list-item--density-compact.v-list-item--three-line{min-height:80px;padding-top:8px;padding-bottom:8px}.v-list-item--density-compact.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-compact.v-list-item--three-line .v-list-item__append{padding-top:4px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--nav{padding-inline:8px}.v-list .v-list-item--nav:not(:only-child){margin-bottom:4px}.v-list-item__underlay{position:absolute}.v-list-item__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item--active.v-list-item--variant-elevated .v-list-item__overlay{--v-theme-overlay-multiplier: 0}.v-list{--indent-padding: 0px}.v-list--nav{--indent-padding: -8px}.v-list-group{--list-indent-size: 16px;--parent-padding: var(--indent-padding);--prepend-width: 40px}.v-list--slim .v-list-group{--prepend-width: 28px}.v-list-group--fluid{--list-indent-size: 0px}.v-list-group--prepend{--parent-padding: calc(var(--indent-padding) + var(--prepend-width))}.v-list-group--fluid.v-list-group--prepend{--parent-padding: var(--indent-padding)}.v-list-group__items{--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))}.v-list-group__items .v-list-item{padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:not(:focus-visible) .v-list-item__overlay{opacity:0}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:hover .v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit}.v-divider{border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:auto;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-divider__content{padding:0 16px;text-wrap:nowrap}.v-divider__wrapper--vertical .v-divider__content{padding:4px 0}.v-divider__wrapper{display:flex;align-items:center;justify-content:center}.v-divider__wrapper--vertical{flex-direction:column;height:100%}.v-divider__wrapper--vertical .v-divider{margin:0 auto}.v-menu>.v-overlay__content{display:flex;flex-direction:column}.v-menu>.v-overlay__content{border-radius:4px}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{background:rgb(var(--v-theme-surface));border-radius:inherit;overflow:auto;height:100%}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;left:0;pointer-events:none;position:fixed;top:0;bottom:0;right:0}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;bottom:0;left:0;opacity:var(--v-overlay-opacity, .32);position:fixed;right:0;top:0}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden}.v-select__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-select__content{border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-text-field input{color:inherit;opacity:0;flex:1;transition:.15s opacity cubic-bezier(.4,0,.2,1);min-width:0}.v-text-field input:focus,.v-text-field input:active{outline:none}.v-text-field input:invalid{box-shadow:none}.v-text-field .v-field{cursor:text}.v-text-field--prefixed.v-text-field .v-field__input{--v-field-padding-start: 6px}.v-text-field--suffixed.v-text-field .v-field__input{--v-field-padding-end: 0}.v-text-field .v-input__details{padding-inline:16px}.v-input--plain-underlined.v-text-field .v-input__details{padding-inline:0}.v-text-field .v-field--no-label input,.v-text-field .v-field--active input{opacity:1}.v-text-field .v-field--single-line input{transition:none}.v-text-field__prefix,.v-text-field__suffix{align-items:center;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));cursor:default;display:flex;opacity:0;transition:inherit;white-space:nowrap;min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));padding-top:calc(var(--v-field-padding-top, 4px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 6px)}.v-field--active .v-text-field__prefix,.v-field--active .v-text-field__suffix{opacity:1}.v-field--disabled .v-text-field__prefix,.v-field--disabled .v-text-field__suffix{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-text-field__prefix{padding-inline-start:var(--v-field-padding-start)}.v-text-field__suffix{padding-inline-end:var(--v-field-padding-end)}.v-counter{color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));flex:0 1 auto;font-size:12px;transition-duration:.15s}.v-field{display:grid;grid-template-areas:"prepend-inner field clear append-inner";grid-template-columns:min-content minmax(0,1fr) min-content min-content;font-size:16px;letter-spacing:.009375em;max-width:100%;border-radius:4px;contain:layout;flex:1 0;grid-area:control;position:relative;--v-theme-overlay-multiplier: 1;--v-field-padding-start: 16px;--v-field-padding-end: 16px;--v-field-padding-top: 8px;--v-field-padding-bottom: 4px;--v-field-input-padding-top: calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));--v-field-input-padding-bottom: var(--v-field-padding-bottom, 4px)}.v-field--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-field .v-chip{--v-chip-height: 24px}.v-field--prepended{padding-inline-start:12px}.v-field--appended{padding-inline-end:12px}.v-field--variant-solo,.v-field--variant-solo-filled{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo,.v-field--variant-solo-filled{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo-inverted{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted.v-field--focused{color:rgb(var(--v-theme-on-surface-variant))}.v-field--variant-filled{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-input--density-default .v-field--variant-solo,.v-input--density-default .v-field--variant-solo-inverted,.v-input--density-default .v-field--variant-solo-filled,.v-input--density-default .v-field--variant-filled{--v-input-control-height: 56px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-solo,.v-input--density-comfortable .v-field--variant-solo-inverted,.v-input--density-comfortable .v-field--variant-solo-filled,.v-input--density-comfortable .v-field--variant-filled{--v-input-control-height: 48px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-solo,.v-input--density-compact .v-field--variant-solo-inverted,.v-input--density-compact .v-field--variant-solo-filled,.v-input--density-compact .v-field--variant-filled{--v-input-control-height: 40px;--v-field-padding-bottom: 0px}.v-field--variant-outlined,.v-field--single-line,.v-field--no-label{--v-field-padding-top: 0px}.v-input--density-default .v-field--variant-outlined,.v-input--density-default .v-field--single-line,.v-input--density-default .v-field--no-label{--v-field-padding-bottom: 16px}.v-input--density-comfortable .v-field--variant-outlined,.v-input--density-comfortable .v-field--single-line,.v-input--density-comfortable .v-field--no-label{--v-field-padding-bottom: 12px}.v-input--density-compact .v-field--variant-outlined,.v-input--density-compact .v-field--single-line,.v-input--density-compact .v-field--no-label{--v-field-padding-bottom: 8px}.v-field--variant-plain,.v-field--variant-underlined{border-radius:0;padding:0}.v-field--variant-plain.v-field,.v-field--variant-underlined.v-field{--v-field-padding-start: 0px;--v-field-padding-end: 0px}.v-input--density-default .v-field--variant-plain,.v-input--density-default .v-field--variant-underlined{--v-input-control-height: 48px;--v-field-padding-top: 4px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-plain,.v-input--density-comfortable .v-field--variant-underlined{--v-input-control-height: 40px;--v-field-padding-top: 2px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-plain,.v-input--density-compact .v-field--variant-underlined{--v-input-control-height: 32px;--v-field-padding-top: 0px;--v-field-padding-bottom: 0px}.v-field--flat{box-shadow:none}.v-field--rounded{border-radius:24px}.v-field.v-field--prepended{--v-field-padding-start: 6px}.v-field.v-field--appended{--v-field-padding-end: 6px}.v-field__input{align-items:center;color:inherit;column-gap:2px;display:flex;flex-wrap:wrap;letter-spacing:.009375em;opacity:var(--v-high-emphasis-opacity);min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));min-width:0;padding-inline:var(--v-field-padding-start) var(--v-field-padding-end);padding-top:var(--v-field-input-padding-top);padding-bottom:var(--v-field-input-padding-bottom);position:relative;width:100%}.v-input--density-default .v-field__input{row-gap:8px}.v-input--density-comfortable .v-field__input{row-gap:6px}.v-input--density-compact .v-field__input{row-gap:4px}.v-field__input input{letter-spacing:inherit}.v-field__input input::placeholder,input.v-field__input::placeholder,textarea.v-field__input::placeholder{color:currentColor;opacity:var(--v-disabled-opacity)}.v-field__input:focus,.v-field__input:active{outline:none}.v-field__input:invalid{box-shadow:none}.v-field__field{flex:1 0;grid-area:field;position:relative;align-items:flex-start;display:flex}.v-field__prepend-inner{grid-area:prepend-inner;padding-inline-end:var(--v-field-padding-after)}.v-field__clearable{grid-area:clear}.v-field__append-inner{grid-area:append-inner;padding-inline-start:var(--v-field-padding-after)}.v-field__append-inner,.v-field__clearable,.v-field__prepend-inner{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top, 8px)}.v-field--center-affix .v-field__append-inner,.v-field--center-affix .v-field__clearable,.v-field--center-affix .v-field__prepend-inner{align-items:center;padding-top:0}.v-field.v-field--variant-underlined .v-field__append-inner,.v-field.v-field--variant-underlined .v-field__clearable,.v-field.v-field--variant-underlined .v-field__prepend-inner,.v-field.v-field--variant-plain .v-field__append-inner,.v-field.v-field--variant-plain .v-field__clearable,.v-field.v-field--variant-plain .v-field__prepend-inner{align-items:flex-start;padding-top:calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 4px)}.v-field--focused .v-field__prepend-inner,.v-field--focused .v-field__append-inner{opacity:1}.v-field__prepend-inner>.v-icon,.v-field__append-inner>.v-icon,.v-field__clearable>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-field--disabled .v-field__prepend-inner>.v-icon,.v-field--error .v-field__prepend-inner>.v-icon,.v-field--disabled .v-field__append-inner>.v-icon,.v-field--error .v-field__append-inner>.v-icon,.v-field--disabled .v-field__clearable>.v-icon,.v-field--error .v-field__clearable>.v-icon{opacity:1}.v-field--error:not(.v-field--disabled) .v-field__prepend-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__append-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__clearable>.v-icon{color:rgb(var(--v-theme-error))}.v-field__clearable{cursor:pointer;opacity:0;overflow:hidden;margin-inline:4px;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,width}.v-field--focused .v-field__clearable,.v-field--persistent-clear .v-field__clearable{opacity:1}@media (hover: hover){.v-field:hover .v-field__clearable{opacity:1}}@media (hover: none){.v-field__clearable{opacity:1}}.v-label.v-field-label{contain:layout paint;display:block;margin-inline-start:var(--v-field-padding-start);margin-inline-end:var(--v-field-padding-end);max-width:calc(100% - var(--v-field-padding-start) - var(--v-field-padding-end));pointer-events:none;position:absolute;top:var(--v-input-padding-top);transform-origin:left center;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform;z-index:1}.v-field--variant-underlined .v-label.v-field-label,.v-field--variant-plain .v-label.v-field-label{top:calc(var(--v-input-padding-top) + var(--v-field-padding-top))}.v-field--center-affix .v-label.v-field-label{top:50%;transform:translateY(-50%)}.v-field--active .v-label.v-field-label{visibility:hidden}.v-field--focused .v-label.v-field-label,.v-field--error .v-label.v-field-label{opacity:1}.v-field--error:not(.v-field--disabled) .v-label.v-field-label{color:rgb(var(--v-theme-error))}.v-label.v-field-label--floating{--v-field-label-scale: .75em;font-size:var(--v-field-label-scale);visibility:hidden;max-width:100%}.v-field--center-affix .v-label.v-field-label--floating{transform:none}.v-field.v-field--active .v-label.v-field-label--floating{visibility:unset}.v-input--density-default .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-filled .v-label.v-field-label--floating{top:7px}.v-input--density-comfortable .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-filled .v-label.v-field-label--floating{top:5px}.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:3px}.v-field--variant-plain .v-label.v-field-label--floating,.v-field--variant-underlined .v-label.v-field-label--floating{transform:translateY(-16px);margin:0;top:var(--v-input-padding-top)}.v-field--variant-outlined .v-label.v-field-label--floating{transform:translateY(-50%);transform-origin:center;position:static;margin:0 4px}.v-field__outline{--v-field-border-width: 1px;--v-field-border-opacity: .38;align-items:stretch;contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%}@media (hover: hover){.v-field:hover .v-field__outline{--v-field-border-opacity: var(--v-high-emphasis-opacity)}}.v-field--error:not(.v-field--disabled) .v-field__outline{color:rgb(var(--v-theme-error))}.v-field.v-field--focused .v-field__outline,.v-input.v-input--error .v-field__outline{--v-field-border-opacity: 1}.v-field--variant-outlined.v-field--focused .v-field__outline{--v-field-border-width: 2px}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{border-color:currentColor;border-style:solid;border-width:0 0 var(--v-field-border-width);opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{border-color:currentColor;border-style:solid;border-width:0 0 2px;transform:scaleX(0);transition:transform .15s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--focused.v-field--variant-filled .v-field__outline:after,.v-field--focused.v-field--variant-underlined .v-field__outline:after{transform:scaleX(1)}.v-field--variant-outlined .v-field__outline{border-radius:inherit}.v-field--variant-outlined .v-field__outline__start,.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after,.v-field--variant-outlined .v-field__outline__end{border:0 solid currentColor;opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__start{flex:0 0 12px;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-start-width:var(--v-field-border-width);border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit}.v-field--rounded.v-field--variant-outlined .v-field__outline__start,[class^=rounded-].v-field--variant-outlined .v-field__outline__start,[class*=" rounded-"].v-field--variant-outlined .v-field__outline__start{flex-basis:calc(var(--v-input-control-height) / 2 + 2px)}.v-field--reverse.v-field--variant-outlined .v-field__outline__start{border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0;border-inline-end-width:var(--v-field-border-width);border-inline-start-width:0}.v-field--variant-outlined .v-field__outline__notch{flex:none;position:relative;max-width:calc(100% - 12px)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-outlined .v-field__outline__notch:before{border-width:var(--v-field-border-width) 0 0}.v-field--variant-outlined .v-field__outline__notch:after{bottom:0;border-width:0 0 var(--v-field-border-width)}.v-field--active.v-field--variant-outlined .v-field__outline__notch:before{opacity:0}.v-field--variant-outlined .v-field__outline__end{flex:1;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-end-width:var(--v-field-border-width);border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0}.v-field--reverse.v-field--variant-outlined .v-field__outline__end{border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit;border-inline-end-width:0;border-inline-start-width:var(--v-field-border-width)}.v-field__loader{top:calc(100% - 2px);left:0;position:absolute;right:0;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden}.v-field--variant-outlined .v-field__loader{top:calc(100% - 3px);width:calc(100% - 2px);left:1px}.v-field__overlay{border-radius:inherit;pointer-events:none}.v-field__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media (hover: hover){.v-field--variant-solo-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-inverted .v-field__overlay{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-solo-inverted.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-solo-inverted:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-inverted.v-field--focused .v-field__overlay{background-color:rgb(var(--v-theme-surface-variant));opacity:1}.v-field--reverse .v-field__field,.v-field--reverse .v-field__input,.v-field--reverse .v-field__outline{flex-direction:row-reverse}.v-field--reverse .v-field__input,.v-field--reverse input{text-align:end}.v-input--disabled .v-field--variant-filled .v-field__outline:before,.v-input--disabled .v-field--variant-underlined .v-field__outline:before{border-image:repeating-linear-gradient(to right,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 0px,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 2px,transparent 2px,transparent 4px) 1 repeat}.v-field--loading .v-field__outline:after,.v-field--loading .v-field__outline:before{opacity:0}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block}.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px}.v-dialog>.v-overlay__content,.v-dialog>.v-overlay__content>form{display:flex;flex-direction:column;min-height:0}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:16px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:0}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-actions,.v-dialog>.v-overlay__content>form>.v-card>.v-card-actions{justify-content:flex-end}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0}.v-card{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card{border-radius:4px}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-card .v-card__underlay{position:absolute}.v-card--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1}.v-card--hover:before{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0}.v-card--hover:after{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--hover:hover{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend,.v-card-item__append{align-items:center;display:flex}.v-card-item__prepend{grid-area:prepend;padding-inline-end:.5rem}.v-card-item__append{grid-area:append;padding-inline-start:.5rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:1.6}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.425}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-text-opacity, 1);padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.425}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{bottom:auto;top:0;left:0;position:absolute;right:0;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-slider .v-slider__container input{cursor:default;padding:0;width:100%;display:none}.v-slider>.v-input__append,.v-slider>.v-input__prepend{padding:0}.v-slider__container{position:relative;min-height:inherit;width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}.v-input--disabled .v-slider__container{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-slider__container{color:rgb(var(--v-theme-error))}.v-slider.v-input--horizontal{align-items:center;margin-inline:8px 8px}.v-slider.v-input--horizontal>.v-input__control{min-height:32px;display:flex;align-items:center}.v-slider.v-input--vertical{justify-content:center;margin-top:12px;margin-bottom:12px}.v-slider.v-input--vertical>.v-input__control{min-height:300px}.v-slider.v-input--disabled{pointer-events:none}.v-slider--has-labels>.v-input__control{margin-bottom:4px}.v-slider__label{margin-inline-end:12px}.v-slider-thumb{touch-action:none;color:rgb(var(--v-theme-surface-variant))}.v-input--error:not(.v-input--disabled) .v-slider-thumb{color:inherit}.v-slider-thumb__label{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant))}.v-slider-thumb__label:before{color:rgba(var(--v-theme-surface-variant),.7)}.v-slider-thumb{outline:none;position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider-thumb__surface{cursor:pointer;width:var(--v-slider-thumb-size);height:var(--v-slider-thumb-size);border-radius:50%;-webkit-user-select:none;user-select:none;background-color:currentColor}@media (forced-colors: active){.v-slider-thumb__surface{background-color:highlight}}.v-slider-thumb__surface:before{transition:.3s cubic-bezier(.4,0,.2,1);content:"";color:inherit;top:0;left:0;width:100%;height:100%;border-radius:50%;background:currentColor;position:absolute;pointer-events:none;opacity:0}.v-slider-thumb__surface:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.v-slider-thumb__label-container{position:absolute;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label{display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:35px;height:25px;border-radius:4px;padding:6px;position:absolute;-webkit-user-select:none;user-select:none;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label:before{content:"";width:0;height:0;position:absolute}.v-slider-thumb__ripple{position:absolute;left:calc(var(--v-slider-thumb-size) / -2);top:calc(var(--v-slider-thumb-size) / -2);width:calc(var(--v-slider-thumb-size) * 2);height:calc(var(--v-slider-thumb-size) * 2);background:inherit}.v-slider.v-input--horizontal .v-slider-thumb{top:50%;transform:translateY(-50%);inset-inline-start:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--horizontal .v-slider-thumb__label-container{left:calc(var(--v-slider-thumb-size) / 2);top:0}.v-slider.v-input--horizontal .v-slider-thumb__label{bottom:calc(var(--v-slider-thumb-size) / 2)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-thumb__label:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;bottom:-6px}.v-slider.v-input--vertical .v-slider-thumb{top:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label-container{top:calc(var(--v-slider-thumb-size) / 2);right:0}.v-slider.v-input--vertical .v-slider-thumb__label{top:-12.5px;left:calc(var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label:before{border-right:6px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px}.v-slider-thumb--focused .v-slider-thumb__surface:before{transform:scale(2);opacity:var(--v-focus-opacity)}.v-slider-thumb--pressed{transition:none}.v-slider-thumb--pressed .v-slider-thumb__surface:before{opacity:var(--v-pressed-opacity)}@media (hover: hover){.v-slider-thumb:hover .v-slider-thumb__surface:before{transform:scale(2)}.v-slider-thumb:hover:not(.v-slider-thumb--focused) .v-slider-thumb__surface:before{opacity:var(--v-hover-opacity)}}.v-slider-track__background{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__background{background-color:highlight}}.v-slider-track__fill{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__fill{background-color:highlight}}.v-slider-track__tick{background-color:rgb(var(--v-theme-surface-variant))}.v-slider-track__tick--filled{background-color:rgb(var(--v-theme-surface-light))}.v-slider-track{border-radius:6px}@media (forced-colors: active){.v-slider-track{border:thin solid buttontext}}.v-slider-track__background,.v-slider-track__fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:inherit}.v-slider--pressed .v-slider-track__background,.v-slider--pressed .v-slider-track__fill{transition:none}.v-input--error:not(.v-input--disabled) .v-slider-track__background,.v-input--error:not(.v-input--disabled) .v-slider-track__fill{background-color:currentColor}.v-slider-track__ticks{height:100%;width:100%;position:relative}.v-slider-track__tick{position:absolute;opacity:0;transition:.2s opacity cubic-bezier(.4,0,.2,1);border-radius:2px;width:var(--v-slider-tick-size);height:var(--v-slider-tick-size);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / -2))}.v-locale--is-ltr.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--first .v-slider-track__tick-label{transform:none}.v-locale--is-rtl.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(100%)}.v-locale--is-ltr.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--last .v-slider-track__tick-label{transform:none}.v-slider-track__tick-label{position:absolute;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-slider.v-input--horizontal .v-slider-track{display:flex;align-items:center;width:100%;height:calc(var(--v-slider-track-size) + 2px);touch-action:pan-y}.v-slider.v-input--horizontal .v-slider-track__background{height:var(--v-slider-track-size)}.v-slider.v-input--horizontal .v-slider-track__fill{height:inherit}.v-slider.v-input--horizontal .v-slider-track__tick{margin-top:calc(calc(var(--v-slider-track-size) + 2px) / 2)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / -2))}.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{margin-top:calc(var(--v-slider-track-size) / 2 + 8px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-track__tick--first{margin-inline-start:calc(var(--v-slider-tick-size) + 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(0)}.v-slider.v-input--horizontal .v-slider-track__tick--last{margin-inline-start:calc(100% - var(--v-slider-tick-size) - 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(100%)}.v-slider.v-input--vertical .v-slider-track{height:100%;display:flex;justify-content:center;width:calc(var(--v-slider-track-size) + 2px);touch-action:pan-x}.v-slider.v-input--vertical .v-slider-track__background{width:var(--v-slider-track-size)}.v-slider.v-input--vertical .v-slider-track__fill{width:inherit}.v-slider.v-input--vertical .v-slider-track__ticks{height:100%}.v-slider.v-input--vertical .v-slider-track__tick{margin-inline-start:calc(calc(var(--v-slider-track-size) + 2px) / 2);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / 2))}.v-locale--is-rtl.v-slider.v-input--vertical .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--vertical .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / 2))}.v-slider.v-input--vertical .v-slider-track__tick--first{bottom:calc(0% + var(--v-slider-tick-size) + 1px)}.v-slider.v-input--vertical .v-slider-track__tick--last{bottom:calc(100% - var(--v-slider-tick-size) - 1px)}.v-slider.v-input--vertical .v-slider-track__tick .v-slider-track__tick-label{margin-inline-start:calc(var(--v-slider-track-size) / 2 + 12px);transform:translateY(-50%)}.v-slider-track__ticks--always-show .v-slider-track__tick,.v-slider--focused .v-slider-track__tick{opacity:1}.v-slider-track__background--opacity{opacity:.38}.v-combobox .v-field .v-text-field__prefix,.v-combobox .v-field .v-text-field__suffix,.v-combobox .v-field .v-field__input,.v-combobox .v-field.v-field{cursor:text}.v-combobox .v-field .v-field__input>input{flex:1 1}.v-combobox .v-field input{min-width:64px}.v-combobox .v-field:not(.v-field--focused) input{min-width:0}.v-combobox .v-field--dirty .v-combobox__selection{margin-inline-end:2px}.v-combobox .v-combobox__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-combobox__content{overflow:hidden}.v-combobox__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-combobox__content{border-radius:4px}.v-combobox__mask{background:rgb(var(--v-theme-surface-light))}.v-combobox__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-combobox__selection:first-child{margin-inline-start:0}.v-combobox--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-combobox--selecting-index .v-combobox__selection{opacity:var(--v-medium-emphasis-opacity)}.v-combobox--selecting-index .v-combobox__selection--selected{opacity:1}.v-combobox--selecting-index .v-field__input>input{caret-color:transparent}.v-combobox--single:not(.v-combobox--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--active input{transition:none}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--focused .v-combobox__selection{opacity:0}.v-combobox__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-combobox--active-menu .v-combobox__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table__th--sticky{background:rgb(var(--v-theme-surface));position:sticky!important;left:0;z-index:1}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-progress__loader{position:relative}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table__tr--mobile>.v-data-table__td--expanded-row{grid-template-columns:0;justify-content:center}.v-data-table__tr--mobile>.v-data-table__td--select-row{grid-template-columns:0;justify-content:end}.v-data-table__tr--mobile>td{align-items:center;column-gap:4px;display:grid;grid-template-columns:repeat(2,1fr);min-height:var(--v-table-row-height)}.v-data-table__tr--mobile>td:not(:last-child){border-bottom:0!important}.v-data-table__td-title{font-weight:500;text-align:left}.v-data-table__td-value{text-align:right}.v-data-table__td-sort-icon{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-data-table__td-sort-icon-active{color:rgba(var(--v-theme-on-surface))}.v-data-table-footer{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:8px 4px}.v-data-table-footer__items-per-page{align-items:center;display:flex;justify-content:center}.v-data-table-footer__items-per-page>span{padding-inline-end:8px}.v-data-table-footer__items-per-page>.v-select{width:90px}.v-data-table-footer__info{display:flex;justify-content:flex-end;min-width:116px;padding:0 16px}.v-data-table-footer__paginationz{align-items:center;display:flex;margin-inline-start:16px}.v-data-table-footer__page{padding:0 8px}.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}.v-table{font-size:.875rem;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr>td{position:relative}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{background:rgba(var(--v-border-color),var(--v-hover-opacity));pointer-events:none}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px 0 rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px 0 rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{border-radius:inherit;line-height:1.5;max-width:100%;display:flex;flex-direction:column}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>td{height:var(--v-table-row-height)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{height:var(--v-table-header-height);font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default{--v-table-header-height: 56px;--v-table-row-height: 52px}.v-table--density-comfortable{--v-table-header-height: 48px;--v-table-row-height: 44px}.v-table--density-compact{--v-table-header-height: 40px;--v-table-row-height: 36px}.v-table__wrapper{border-radius:inherit;overflow:auto;flex:1 1 auto}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:2}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.offset-1{margin-inline-start:8.3333333333%}.offset-2{margin-inline-start:16.6666666667%}.offset-3{margin-inline-start:25%}.offset-4{margin-inline-start:33.3333333333%}.offset-5{margin-inline-start:41.6666666667%}.offset-6{margin-inline-start:50%}.offset-7{margin-inline-start:58.3333333333%}.offset-8{margin-inline-start:66.6666666667%}.offset-9{margin-inline-start:75%}.offset-10{margin-inline-start:83.3333333333%}.offset-11{margin-inline-start:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.offset-sm-0{margin-inline-start:0}.offset-sm-1{margin-inline-start:8.3333333333%}.offset-sm-2{margin-inline-start:16.6666666667%}.offset-sm-3{margin-inline-start:25%}.offset-sm-4{margin-inline-start:33.3333333333%}.offset-sm-5{margin-inline-start:41.6666666667%}.offset-sm-6{margin-inline-start:50%}.offset-sm-7{margin-inline-start:58.3333333333%}.offset-sm-8{margin-inline-start:66.6666666667%}.offset-sm-9{margin-inline-start:75%}.offset-sm-10{margin-inline-start:83.3333333333%}.offset-sm-11{margin-inline-start:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.offset-md-0{margin-inline-start:0}.offset-md-1{margin-inline-start:8.3333333333%}.offset-md-2{margin-inline-start:16.6666666667%}.offset-md-3{margin-inline-start:25%}.offset-md-4{margin-inline-start:33.3333333333%}.offset-md-5{margin-inline-start:41.6666666667%}.offset-md-6{margin-inline-start:50%}.offset-md-7{margin-inline-start:58.3333333333%}.offset-md-8{margin-inline-start:66.6666666667%}.offset-md-9{margin-inline-start:75%}.offset-md-10{margin-inline-start:83.3333333333%}.offset-md-11{margin-inline-start:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.offset-lg-0{margin-inline-start:0}.offset-lg-1{margin-inline-start:8.3333333333%}.offset-lg-2{margin-inline-start:16.6666666667%}.offset-lg-3{margin-inline-start:25%}.offset-lg-4{margin-inline-start:33.3333333333%}.offset-lg-5{margin-inline-start:41.6666666667%}.offset-lg-6{margin-inline-start:50%}.offset-lg-7{margin-inline-start:58.3333333333%}.offset-lg-8{margin-inline-start:66.6666666667%}.offset-lg-9{margin-inline-start:75%}.offset-lg-10{margin-inline-start:83.3333333333%}.offset-lg-11{margin-inline-start:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.offset-xl-0{margin-inline-start:0}.offset-xl-1{margin-inline-start:8.3333333333%}.offset-xl-2{margin-inline-start:16.6666666667%}.offset-xl-3{margin-inline-start:25%}.offset-xl-4{margin-inline-start:33.3333333333%}.offset-xl-5{margin-inline-start:41.6666666667%}.offset-xl-6{margin-inline-start:50%}.offset-xl-7{margin-inline-start:58.3333333333%}.offset-xl-8{margin-inline-start:66.6666666667%}.offset-xl-9{margin-inline-start:75%}.offset-xl-10{margin-inline-start:83.3333333333%}.offset-xl-11{margin-inline-start:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.offset-xxl-0{margin-inline-start:0}.offset-xxl-1{margin-inline-start:8.3333333333%}.offset-xxl-2{margin-inline-start:16.6666666667%}.offset-xxl-3{margin-inline-start:25%}.offset-xxl-4{margin-inline-start:33.3333333333%}.offset-xxl-5{margin-inline-start:41.6666666667%}.offset-xxl-6{margin-inline-start:50%}.offset-xxl-7{margin-inline-start:58.3333333333%}.offset-xxl-8{margin-inline-start:66.6666666667%}.offset-xxl-9{margin-inline-start:75%}.offset-xxl-10{margin-inline-start:83.3333333333%}.offset-xxl-11{margin-inline-start:91.6666666667%}}.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child:not(:last-child){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child) .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-expansion-panel--active>.v-expansion-panel-title:not(.v-expansion-panel-title--static){min-height:31px}.v-expansion-panel__shadow{border-radius:inherit;z-index:-1}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel__shadow{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:31px;outline:none;padding:8px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--focusable.v-expansion-panel-title--active .v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:hover .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus-visible .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title__overlay{background-color:currentColor;border-radius:inherit;opacity:0}.v-expansion-panel-title__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel-title__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;user-select:none;margin-inline-start:auto}.v-expansion-panel-text{display:flex}.v-expansion-panel-text__wrapper{padding:8px 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--variant-accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--variant-accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--variant-popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--variant-popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--variant-inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--variant-inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-expansion-panels--flat>.v-expansion-panel:after{border-top:none}.v-expansion-panels--flat>.v-expansion-panel .v-expansion-panel__shadow{display:none}.v-expansion-panels--tile{border-radius:0}.v-expansion-panels--tile>.v-expansion-panel{border-radius:0}.v-footer{align-items:center;display:flex;flex:1 1 auto;padding:8px 16px;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom}.v-footer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-footer--border{border-width:thin;box-shadow:none}.v-footer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-footer--absolute{position:absolute}.v-footer--fixed{position:fixed}.v-footer{border-radius:0}.v-footer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-footer--rounded{border-radius:4px}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex}.v-main--scrollable{position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-navigation-drawer{-webkit-overflow-scrolling:touch;background:rgb(var(--v-theme-surface));display:flex;flex-direction:column;height:100%;max-width:100%;pointer-events:auto;transition-duration:.2s;transition-property:box-shadow,transform,visibility,width,height,left,right,top,bottom;transition-timing-function:cubic-bezier(.4,0,.2,1);position:absolute}.v-navigation-drawer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-navigation-drawer--border{border-width:thin;box-shadow:none}.v-navigation-drawer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-navigation-drawer--rounded{border-radius:4px}.v-navigation-drawer--top,.v-navigation-drawer--bottom{max-height:-webkit-fill-available;overflow-y:auto}.v-navigation-drawer--top{top:0;border-bottom-width:thin}.v-navigation-drawer--bottom{left:0;border-top-width:thin}.v-navigation-drawer--left{top:0;left:0;right:auto;border-right-width:thin}.v-navigation-drawer--right{top:0;left:auto;right:0;border-left-width:thin}.v-navigation-drawer--floating{border:none}.v-navigation-drawer--temporary.v-navigation-drawer--active{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer--sticky{height:auto;transition:box-shadow,transform,visibility,width,height,left,right}.v-navigation-drawer .v-list{overflow:hidden}.v-navigation-drawer__content{flex:0 1 auto;height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}.v-navigation-drawer__img{height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.v-navigation-drawer__img img:not(.v-img__img){height:inherit;object-fit:cover;width:inherit}.v-navigation-drawer__scrim{position:absolute;top:0;left:0;width:100%;height:100%;background:black;opacity:.2;transition:opacity .2s cubic-bezier(.4,0,.2,1);z-index:1}.v-navigation-drawer__prepend,.v-navigation-drawer__append{flex:none;overflow:hidden}.v-rating{max-width:100%;display:inline-flex;white-space:nowrap}.v-rating--readonly{pointer-events:none}.v-rating__wrapper{align-items:center;display:inline-flex;flex-direction:column}.v-rating__wrapper--bottom{flex-direction:column-reverse}.v-rating__item{display:inline-flex;position:relative}.v-rating__item label{cursor:pointer}.v-rating__item .v-btn--variant-plain{opacity:1}.v-rating__item .v-btn{transition-property:transform}.v-rating__item .v-btn .v-icon{transition:inherit;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-rating--hover .v-rating__item:hover:not(.v-rating__item--focused) .v-btn{transform:scale(1.25)}.v-rating__item--half{overflow:hidden;position:absolute;clip-path:polygon(0 0,50% 0,50% 100%,0 100%);z-index:1}.v-rating__item--half .v-btn__overlay,.v-rating__item--half:hover .v-btn__overlay{opacity:0}.v-rating__hidden{height:0;opacity:0;position:absolute;width:0}.v-snackbar{justify-content:center;z-index:10000;margin:8px;margin-inline-end:calc(8px + var(--v-scrollbar-offset));padding:var(--v-layout-top) var(--v-layout-right) var(--v-layout-bottom) var(--v-layout-left)}.v-snackbar:not(.v-snackbar--center):not(.v-snackbar--top){align-items:flex-end}.v-snackbar__wrapper{align-items:center;display:flex;max-width:672px;min-height:48px;min-width:344px;overflow:hidden;padding:0}.v-snackbar__wrapper{border-radius:4px}.v-snackbar--variant-plain,.v-snackbar--variant-outlined,.v-snackbar--variant-text,.v-snackbar--variant-tonal{background:transparent;color:inherit}.v-snackbar--variant-plain{opacity:.62}.v-snackbar--variant-plain:focus,.v-snackbar--variant-plain:hover{opacity:1}.v-snackbar--variant-plain .v-snackbar__overlay{display:none}.v-snackbar--variant-elevated,.v-snackbar--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-snackbar--variant-elevated{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-outlined{border:thin solid currentColor}.v-snackbar--variant-text .v-snackbar__overlay{background:currentColor}.v-snackbar--variant-tonal .v-snackbar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-snackbar .v-snackbar__underlay{position:absolute}.v-snackbar__content{flex-grow:1;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1.425;margin-right:auto;padding:14px 16px;text-align:initial}.v-snackbar__actions{align-items:center;align-self:center;display:flex;margin-inline-end:8px}.v-snackbar__actions>.v-btn{padding:0 8px;min-width:auto}.v-snackbar__timer{width:100%;position:absolute;top:0}.v-snackbar__timer .v-progress-linear{transition:.2s linear}.v-snackbar--absolute{position:absolute;z-index:1}.v-snackbar--multi-line .v-snackbar__wrapper{min-height:68px}.v-snackbar--vertical .v-snackbar__wrapper{flex-direction:column}.v-snackbar--vertical .v-snackbar__wrapper .v-snackbar__actions{align-self:flex-end;margin-bottom:8px}.v-snackbar--center{align-items:center;justify-content:center}.v-snackbar--top{align-items:flex-start}.v-snackbar--bottom{align-items:flex-end}.v-snackbar--left,.v-snackbar--start{justify-content:flex-start}.v-snackbar--right,.v-snackbar--end{justify-content:flex-end}.v-snackbar-transition-enter-active,.v-snackbar-transition-leave-active{transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-snackbar-transition-enter-active{transition-property:opacity,transform}.v-snackbar-transition-enter-from{opacity:0;transform:scale(.8)}.v-snackbar-transition-leave-active{transition-property:opacity}.v-snackbar-transition-leave-to{opacity:0}.v-switch .v-label{padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__loader .v-progress-circular{color:rgb(var(--v-theme-surface))}.v-switch__track,.v-switch__thumb{transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb{background-color:rgb(var(--v-theme-error));color:rgb(var(--v-theme-on-error))}.v-switch__track-true{margin-inline-end:auto}.v-selection-control:not(.v-selection-control--dirty) .v-switch__track-true{opacity:0}.v-switch__track-false{margin-inline-start:auto}.v-selection-control--dirty .v-switch__track-false{opacity:0}.v-switch__track{display:inline-flex;align-items:center;font-size:.5rem;padding:0 5px;background-color:rgb(var(--v-theme-surface-variant));border-radius:9999px;height:14px;opacity:.6;min-width:36px;cursor:pointer;transition:.2s background-color cubic-bezier(.4,0,.2,1)}.v-switch--inset .v-switch__track{border-radius:9999px;font-size:.75rem;height:32px;min-width:52px}.v-switch__thumb{align-items:center;background-color:rgb(var(--v-theme-surface-bright));color:rgb(var(--v-theme-on-surface-bright));border-radius:50%;display:flex;font-size:.75rem;height:20px;justify-content:center;width:20px;pointer-events:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1),.2s color cubic-bezier(.4,0,.2,1),.2s background-color cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.v-switch:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch--inset .v-switch__thumb{height:24px;width:24px;transform:scale(.6666666667)}.v-switch--inset .v-switch__thumb--filled{transform:none}.v-switch--inset .v-selection-control--dirty .v-switch__thumb{transform:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1)}.v-switch.v-input{flex:0 1 auto}.v-switch .v-selection-control{min-height:var(--v-input-control-height)}.v-switch .v-selection-control__input{border-radius:50%;transition:.2s transform cubic-bezier(.4,0,.2,1);position:absolute}.v-locale--is-ltr.v-switch .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control__input{transform:translate(-10px)}.v-locale--is-rtl.v-switch .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control__input{transform:translate(10px)}.v-switch .v-selection-control__input .v-icon{position:absolute}.v-locale--is-ltr.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(10px)}.v-locale--is-rtl.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(-10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.v-switch.v-switch--inset .v-selection-control__wrapper{width:auto}.v-switch.v-input--vertical .v-label{min-width:max-content}.v-switch.v-input--vertical .v-selection-control__wrapper{transform:rotate(-90deg)}@media (forced-colors: active){.v-switch .v-switch__loader .v-progress-circular{color:currentColor}.v-switch .v-switch__thumb{background-color:buttontext}.v-switch .v-switch__track,.v-switch .v-switch__thumb{border:1px solid;color:buttontext}.v-switch:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track,.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{color:highlight}.v-switch.v-switch--inset .v-switch__track{border-width:2px}.v-switch.v-switch--inset:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlighttext;color:highlighttext}.v-switch.v-input--disabled .v-switch__thumb{background-color:graytext}.v-switch.v-input--disabled .v-switch__track,.v-switch.v-input--disabled .v-switch__thumb{color:graytext}.v-switch.v-switch--loading .v-switch__thumb{background-color:canvas}.v-switch.v-switch--loading.v-switch--inset .v-switch__thumb,.v-switch.v-switch--loading.v-switch--indeterminate .v-switch__thumb{border-width:0}}.v-textarea .v-field{--v-textarea-control-height: var(--v-input-control-height)}.v-textarea .v-field__field{--v-input-control-height: var(--v-textarea-control-height)}.v-textarea .v-field__input{flex:1 1 auto;outline:none;-webkit-mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px));mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px))}.v-textarea .v-field__input.v-textarea__sizer{visibility:hidden;position:absolute;top:0;left:0;height:0!important;min-height:0!important;pointer-events:none}.v-textarea--no-resize .v-field__input{resize:none}.v-textarea .v-field--no-label textarea,.v-textarea .v-field--active textarea{opacity:1}.v-textarea textarea{opacity:0;flex:1;min-width:0;transition:.15s opacity cubic-bezier(.4,0,.2,1)}.v-textarea textarea:focus,.v-textarea textarea:active{outline:none}.v-textarea textarea:invalid{box-shadow:none}.v-tooltip>.v-overlay__content{background:rgb(var(--v-theme-bluegrey));color:rgb(var(--v-theme-on-surface-variant));border-radius:4px;font-size:.875rem;line-height:1.6;display:inline-block;padding:5px 16px;text-transform:initial;width:auto;opacity:1;pointer-events:none;transition-property:opacity,transform;overflow-wrap:break-word}.v-tooltip>.v-overlay__content[class*=enter-active]{transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s}.v-tooltip>.v-overlay__content[class*=leave-active]{transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:75ms}.divider[data-v-c00c2563]{position:relative;height:24px}.divider__divider-line[data-v-c00c2563]{position:absolute;top:50%;width:100%;transform:translateY(-50%)}.divider__btn[data-v-c00c2563]{position:absolute;top:0;left:50%;transform:translate(-50%);opacity:1}.divider[data-v-c00c2563]:hover{cursor:pointer}.divider:hover .divider__divider-line[data-v-c00c2563]{background-color:#fff}.divider:hover .divider__btn[data-v-c00c2563]{color:#fff!important}.cell[data-v-09a4d2b3]{padding:18px;display:flex;margin-bottom:2px}.cell--dev[data-v-09a4d2b3]{margin-bottom:16px}.message-btn--alert[data-v-09a4d2b3]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjQUU5RkU4Ij48cGF0aCBkPSJNMTMuMzA1IDIyLjVMMTIgMjEuNzVMMTUgMTYuNUgxOS41QzE5Ljg5NzggMTYuNSAyMC4yNzk0IDE2LjM0MiAyMC41NjA3IDE2LjA2MDdDMjAuODQyIDE1Ljc3OTQgMjEgMTUuMzk3OCAyMSAxNVY2QzIxIDUuNjAyMTggMjAuODQyIDUuMjIwNjQgMjAuNTYwNyA0LjkzOTM0QzIwLjI3OTQgNC42NTgwNCAxOS44OTc4IDQuNSAxOS41IDQuNUg0LjVDNC4xMDIxOCA0LjUgMy43MjA2NCA0LjY1ODA0IDMuNDM5MzQgNC45MzkzNEMzLjE1ODA0IDUuMjIwNjQgMyA1LjYwMjE4IDMgNlYxNUMzIDE1LjM5NzggMy4xNTgwNCAxNS43Nzk0IDMuNDM5MzQgMTYuMDYwN0MzLjcyMDY0IDE2LjM0MiA0LjEwMjE4IDE2LjUgNC41IDE2LjVIMTEuMjVWMThINC41QzMuNzA0MzUgMTggMi45NDEyOSAxNy42ODM5IDIuMzc4NjggMTcuMTIxM0MxLjgxNjA3IDE2LjU1ODcgMS41IDE1Ljc5NTYgMS41IDE1VjZDMS41IDUuMjA0MzUgMS44MTYwNyA0LjQ0MTI5IDIuMzc4NjggMy44Nzg2OEMyLjk0MTI5IDMuMzE2MDcgMy43MDQzNSAzIDQuNSAzSDE5LjVDMjAuMjk1NiAzIDIxLjA1ODcgMy4zMTYwNyAyMS42MjEzIDMuODc4NjhDMjIuMTgzOSA0LjQ0MTI5IDIyLjUgNS4yMDQzNSAyMi41IDZWMTVDMjIuNSAxNS43OTU2IDIyLjE4MzkgMTYuNTU4NyAyMS42MjEzIDE3LjEyMTNDMjEuMDU4NyAxNy42ODM5IDIwLjI5NTYgMTggMTkuNSAxOEgxNS44N0wxMy4zMDUgMjIuNVoiIGZpbGw9IiNBRTlGRTgiLz48L3N2Zz4=);background-position:center;background-repeat:no-repeat;transition:none}.message-btn__counter[data-v-09a4d2b3]{margin-bottom:4px}.delete-cell[data-v-09a4d2b3]:hover{background-color:#6e3d41}.content[data-v-09a4d2b3]{flex:1;margin-left:16px;margin-right:0;width:calc(100% - 36px)}.indicator[data-v-09a4d2b3]{border-radius:4px}.header[data-v-09a4d2b3]{display:flex;justify-content:space-between;margin-bottom:16px}.code[data-v-09a4d2b3],.outcome[data-v-09a4d2b3]{padding:0}.code--dev[data-v-09a4d2b3],.outcome--dev[data-v-09a4d2b3]{border:1px solid rgba(var(--v-theme-bluegrey));border-radius:4px;padding:12px}.code[data-v-09a4d2b3]{margin-bottom:16px}.click-edit[data-v-09a4d2b3]{width:calc(100% - 135px)}.click-edit__name[data-v-09a4d2b3]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__show-text[data-v-09a4d2b3],.click-edit__edit-field-wrapper[data-v-09a4d2b3]{height:100%;display:flex;align-items:center}.click-edit__name[data-v-09a4d2b3]:hover{cursor:text;padding-left:3px;padding-right:3px;border:1px solid #294455}.click-edit__static-name[data-v-09a4d2b3]{cursor:text;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__edit-field[data-v-09a4d2b3]{margin-top:-11px}.click-edit__edit-field[data-v-09a4d2b3] .v-field__input{font-size:1rem;letter-spacing:normal}.click-edit .actions[data-v-09a4d2b3]{display:flex;align-items:center}.click-edit .loading-wrapper[data-v-09a4d2b3]{display:flex;align-items:center;margin-right:8px}.click-edit .green-loader[data-v-09a4d2b3]{color:rgba(var(--v-theme-success))}.app-static-name[data-v-062456ec]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-062456ec] .plot-container{overflow:auto}.markdown-content[data-v-d5250b54]{font-family:Arial,sans-serif;line-height:1.6;color:#fff}.markdown-content h1[data-v-d5250b54],h2[data-v-d5250b54],h3[data-v-d5250b54],h4[data-v-d5250b54],h5[data-v-d5250b54],h6[data-v-d5250b54]{margin-top:1.5em;margin-bottom:.5em;font-weight:700;line-height:1.3}.markdown-content p[data-v-d5250b54]{margin-top:0;margin-bottom:1em}.markdown-content ul[data-v-d5250b54],ol[data-v-d5250b54]{padding-left:20px;margin-top:.5em;margin-bottom:.5em}.markdown-content ul[data-v-d5250b54]{list-style-type:disc}.markdown-content ol[data-v-d5250b54]{list-style-type:decimal}.markdown-content li[data-v-d5250b54]{margin-bottom:.25em}.markdown-content a[data-v-d5250b54]{color:#007bff;text-decoration:none}.markdown-content a[data-v-d5250b54]:hover{text-decoration:underline}.markdown-content img[data-v-d5250b54]{max-width:100%;height:auto}.markdown-content blockquote[data-v-d5250b54]{margin:0;padding-left:1em;color:#6a737d;border-left:.25em solid #dfe2e5}.tox{box-shadow:none;box-sizing:content-box;color:#2a3746;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){background:transparent;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #000000;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:1px solid #000000;border-radius:0;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:1300}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#1e71aa66;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#207ab7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus{background-color:#1c6ca1}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#185d8c}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa50080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus{background-color:#f2d574;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc000080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus{background-color:#e9a4a4;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab4680;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .mce-codemirror{background:#fff;bottom:0;font-size:13px;left:0;position:absolute;right:0;top:0;z-index:1}.tox .mce-codemirror.tox-inline-codemirror{margin:8px;position:absolute}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#000;border-radius:0;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar,.tox .tox-bottom-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button:before{border-radius:3px;bottom:-1px;box-shadow:inset 0 0 0 1px #fff,0 0 0 2px #207ab7;content:"";left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:focus:not(:disabled):before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#114060;background-image:none;border-color:#114060;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:none;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#264560;background-image:none;border-color:#264560;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:#3d546f;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--naked:hover:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:#2b3b4e;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#fff3}@media (forced-colors: active){.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:currentColor!important}}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:#ffffff80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#ffffff80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#1a1a1a;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#333;color:#fff;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{background-color:#757d87;color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#2b3b4e;position:relative}.tox .tox-collection--toolbar .tox-collection__item--active:hover{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border:2px solid highlight}}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#4a5562;color:#fff;position:relative;z-index:1}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent "inset";content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border:2px solid highlight}}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){border:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:currentColor;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:currentColor}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#ffffff80;cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:#ffffff80}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid #1a1a1a;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:3px 0 2px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #000000}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #000000}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}@media (forced-colors: active){.tox .tox-hue-slider,.tox .tox-rgb-form .tox-rgba-preview{background-color:currentColor!important;border:1px solid highlight!important;forced-color-adjust:none}}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}@media (forced-colors: active){.tox .tox-swatches__row{forced-color-adjust:none}}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#4a5562}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:3px;width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#ffffff80;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#ffffff80}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar svg,.tox:not([dir=rtl]) .tox-user__avatar img{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg,.tox[dir=rtl] .tox-user__avatar img{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:#222f3ebf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #2a374626,0 0 40px 1px #2a374626;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 16px);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px}@media only screen and (min-width: 768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#ffffff80;display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:#207ab71a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}@media (forced-colors: active){.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid highlight;color:highlight}}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#114060;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #207ab7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#092335;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dd{padding-inline-start:2.5rem}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl{margin-bottom:16px}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dt{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:1px solid #000000;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#222f3ebf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered:before{border:1px solid #000000;border-radius:3px;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered iframe{border-radius:3px}.tox .tox-navobj-bordered-focus.tox-navobj-bordered:before{border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #000000;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#ffffff80;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area:before{border:0 solid transparent;border-radius:4px;content:"";top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}@media (forced-colors: active){.tox .tox-edit-area:before{border:0 solid highlight}}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area:before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #000000}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:none;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #000000;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:0 4px 4px -3px #00000040;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:none;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-custom-preview{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;flex:1;padding:8px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#2a374633;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}@media (forced-colors: active){.tox .tox-color-input span{border-color:currentColor;border-width:2px!important;forced-color-adjust:none}}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:3px;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}@media (forced-colors: active){.tox .tox-color-input span:before{border:none}}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#ffffff80;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#222f3e;color:#ffffffd9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}@media (forced-colors: active){.tox .tox-listbox__select-chevron svg{fill:currentColor!important}}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{background-color:#222f3e;display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#000;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:0 -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#207ab780;border-color:#207ab780}@media (forced-colors: active){.tox .tox-insert-table-picker .tox-insert-table-picker__selected{border-color:Highlight;filter:contrast(50%)}}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}@media only screen and (min-width: 768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1 / -1;grid-row:1;padding:0 4px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#4a5562;border:0;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-mbtn:focus:not(:disabled):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-mbtn:focus:not(:disabled):after{border:2px solid highlight}}.tox .tox-mbtn--active,.tox .tox-mbtn:not(:disabled).tox-mbtn--active:focus{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-left:auto;margin-right:auto;margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in;width:-moz-max-content;width:max-content}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification:focus{border-color:#207ab7;box-shadow:none}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success a:hover,.tox .tox-notification--success a:focus{color:#82b153;text-decoration:underline}.tox .tox-notification--success a:focus-visible{border-radius:1px;outline:2px solid #b5d199;outline-offset:2px}.tox .tox-notification--success a:active{color:#689041;text-decoration:underline}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error a:hover,.tox .tox-notification--error a:focus{color:#d42b2b;text-decoration:underline}.tox .tox-notification--error a:focus-visible{border-radius:1px;outline:2px solid #e68080;outline-offset:2px}.tox .tox-notification--error a:active{color:#a22;text-decoration:underline}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:#000;color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn a:hover,.tox .tox-notification--warning a:hover,.tox .tox-notification--warn a:focus,.tox .tox-notification--warning a:focus{color:#997a00;text-decoration:underline}.tox .tox-notification--warn a:focus-visible,.tox .tox-notification--warning a:focus-visible{border-radius:1px;outline:2px solid #ffcc00;outline-offset:2px}.tox .tox-notification--warn a:active,.tox .tox-notification--warning a:active{color:#665200;text-decoration:underline}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info a:hover,.tox .tox-notification--info a:focus{color:#2681ea;text-decoration:underline}.tox .tox-notification--info a:focus-visible{border-radius:1px;outline:2px solid #83b7f3;outline-offset:2px}.tox .tox-notification--info a:active{color:#1368c9;text-decoration:underline}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-notification-container-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-notification-container-dock-fadein{opacity:1;visibility:visible}.tox .tox-notification-container-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-notification-container-dock-transition.tox-notification-container-dock-fadein{transition-delay:0s}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition:before,.tox .tox-pop--transition:after{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #000000;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;opacity:1;position:absolute;width:0}@media (forced-colors: active){.tox .tox-pop:before,.tox .tox-pop:after{content:none}}.tox .tox-pop.tox-pop--inset:before,.tox .tox-pop.tox-pop--inset:after{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#000000 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #000000 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #000000 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #000000;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #000000;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#ffffff80;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid #000000;color:#fff;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between}@media only screen and (min-width: 768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width: 767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#fff;position:relative;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border:2px solid highlight}}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin:3px -5px 3px 4px;padding-bottom:0;padding-left:0;padding-right:0;position:relative}.tox .tox-statusbar__resize-handle svg{display:block;fill:#ffffff80}.tox .tox-statusbar__resize-handle:hover svg,.tox .tox-statusbar__resize-handle:focus svg{fill:#fff}.tox .tox-statusbar__resize-handle:focus-visible{background-color:transparent;border-radius:1px 1px -4px;box-shadow:0 0 0 2px transparent}.tox .tox-statusbar__resize-handle:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar__resize-handle:focus-visible:after{border:2px solid highlight}}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#222f3e99;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:3px 0 2px;outline:none;padding:0;text-transform:none;width:34px}@media (forced-colors: active){.tox .tox-tbtn:hover,.tox .tox-tbtn.tox-tbtn:hover{outline:1px dashed currentColor}.tox .tox-tbtn.tox-tbtn--active,.tox .tox-tbtn.tox-tbtn--enabled,.tox .tox-tbtn.tox-tbtn--enabled:hover,.tox .tox-tbtn.tox-tbtn--enabled:focus,.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){outline:1px solid currentColor;position:relative}}.tox .tox-tbtn svg{display:block;fill:#fff}@media (forced-colors: active){.tox .tox-tbtn svg{fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--enabled,.tox .tox-tbtn svg:focus:not(.tox-tbtn--disabled){fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--disabled,.tox .tox-tbtn svg.tox-tbtn--disabled:hover,.tox .tox-tbtn svg .tox-tbtn:disabled,.tox .tox-tbtn svg .tox-tbtn:disabled:hover{filter:contrast(0%)}}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#4a5562;border:0;box-shadow:none;position:relative;z-index:1}.tox .tox-tbtn:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn:focus:after{border:2px solid highlight}}.tox .tox-tbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:#ffffff80}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tbtn--active,.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover,.tox .tox-tbtn--enabled:focus{background:#757d87;border:0;box-shadow:none;color:#fff;position:relative}.tox .tox-tbtn--active>*,.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled:focus>*{transform:none}.tox .tox-tbtn--active svg,.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg,.tox .tox-tbtn--enabled:focus svg{fill:#fff}.tox .tox-tbtn--active.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:focus.tox-tbtn--disabled svg{fill:#ffffff80}.tox .tox-tbtn--enabled:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn--enabled:focus:after{border:2px solid highlight}}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{background:transparent;border-radius:3px;display:flex;margin:3px 0 2px;position:relative;width:auto}.tox .tox-number-input:focus{background:#4a5562}.tox .tox-number-input:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper{display:flex;pointer-events:none;position:relative;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background-color:#4a5562;z-index:1}.tox .tox-number-input .tox-input-wrapper:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border:2px solid highlight}}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;position:relative;width:60px}.tox .tox-number-input input:hover{background:#4a5562;color:#fff}.tox .tox-number-input input:focus{background-color:#4a5562}.tox .tox-number-input input:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button{color:#fff;height:34px;position:relative;text-align:center;width:24px}@media (forced-colors: active){.tox .tox-number-input button:hover,.tox .tox-number-input button:focus,.tox .tox-number-input button:active{outline:1px solid currentColor!important}}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}@media (forced-colors: active){.tox .tox-number-input button svg,.tox .tox-number-input button svg:active,.tox .tox-number-input button svg:hover{fill:currentColor!important}.tox .tox-number-input button svg:disabled{filter:contrast(0)}}.tox .tox-number-input button:focus{background:#4a5562;z-index:1}.tox .tox-number-input button:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input button:focus:after{border:2px solid highlight}}.tox .tox-number-input button:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:#ffffff80}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>button,.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper{background:#4a5562}.tox .tox-tbtn--select{margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-tbtn__select-chevron svg{fill:currentColor}}.tox .tox-tbtn--bespoke{background:transparent}.tox .tox-tbtn--bespoke:focus{background:#4a5562}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:0}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:3px 0 2px}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #4a5562 inset}.tox .tox-split-button:focus{background:#4a5562;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-split-button:focus:after{pointer-events:none;border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-split-button:focus:after{border:2px solid highlight}}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button>*:nth-child(1){border-bottom-left-radius:3px;border-top-left-radius:3px}.tox .tox-split-button>*:nth-child(2){border-bottom-right-radius:3px;border-top-right-radius:3px}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-split-button__chevron svg{fill:currentColor}}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button:focus .tox-tbtn{background-color:transparent}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:#222f3e;box-shadow:none;color:#ffffff80}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(#000000 0px 1px,transparent 1px 39px);background-position:center top 39px;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 39px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__primary,.tox .tox-toolbar-overlord>.tox-toolbar__overflow{background-position:center top 0px;background-size:calc(100% - 8px) calc(100% + -0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-toolbar-overlord,.tox .tox-anchorbar{grid-column:1 / -1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid #000000;margin-top:-1px;padding-bottom:0;padding-top:0}@media (forced-colors: active){.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{outline:1px solid currentColor}}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 16px) calc(100% - 51px);border:none;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;overscroll-behavior:none;padding:4px 0}@media (forced-colors: active){.tox.tox-tinymce-aux .tox-toolbar__overflow{border:solid}}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 8px) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #000000}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #000000}.tox .tox-tooltip{display:inline-block;max-width:15em;padding:8px;pointer-events:none;position:relative;width:-moz-max-content;width:max-content;z-index:1150}.tox .tox-tooltip__body{background-color:#2a3746;border-radius:3px;box-shadow:none;color:#fff;font-size:12px;font-style:normal;font-weight:600;overflow-wrap:break-word;padding:4px 6px;text-transform:none}@media (forced-colors: active){.tox .tox-tooltip__body{outline:outset 1px}}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #2A3746;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #2A3746;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #2A3746;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #2A3746;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:transparent;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:none;overflow:hidden;padding:0 0 0 8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled>*,.tox .tox-tree .tox-trbtn--enabled:hover>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-revisionhistory__pane{padding:0!important}.tox .tox-revisionhistory__container{display:flex;flex-direction:column;height:100%}.tox .tox-revisionhistory{background-color:#2b3b4e;border-radius:4px;border-top:1px solid #000000;display:flex;flex:1;height:100%;margin-top:8px;overflow-x:auto;overflow-y:hidden;position:relative;width:100%}.tox .tox-revisionhistory--align-right{margin-left:auto}.tox .tox-revisionhistory__iframe{flex:1}.tox .tox-revisionhistory__sidebar{border-left:1px solid #000000;height:100%;max-width:360px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__sidebar-title{border-bottom:1px solid #000000;color:#fff;font-size:20px;font-weight:400;height:60px;min-width:192px;padding:16px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions{flex-direction:column;max-height:calc(100% - 60px);min-width:192px;overflow-y:auto;padding:8px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus{height:100%;position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{box-shadow:0 0 0 0 transparent;content:"";position:absolute;border-radius:3px;bottom:1px;left:1px;right:1px;top:1px}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card{border:1px solid #000000;border-radius:3px;color:#fff;cursor:pointer;font-size:14px;margin-bottom:8px;padding:8px;text-overflow:ellipsis;text-wrap:nowrap;width:100%}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:hover{background-color:#4a5562;box-shadow:none;color:#fff}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus{position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{border-radius:3px!important;border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected{background-color:#6ea9d0;box-shadow:none;color:#fff}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__norevision{color:#ffffff80;font-size:16px;line-height:24px;padding:5px 5.5px}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column;height:100%}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0;position:relative}.tox .tox-view__label{color:#fff;font-weight:700;line-height:24px;padding:4px 16px;text-align:center;white-space:nowrap}.tox .tox-view__label--normal{font-size:16px}.tox .tox-view__label--large{font-size:20px}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;overflow-x:auto;padding:8px 8px 0}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-start,.tox .tox-view__header-end{display:flex}.tox .tox-view__pane{height:100%;padding:8px;position:relative;width:100%}.tox .tox-view__pane_panel{border:1px solid #000000;border-radius:3px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-start>*,.tox[dir=rtl] .tox-view__header .tox-view__header-end>*{margin-right:8px}.tox .tox-well{border:1px solid #000000;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #000000;border-radius:3px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:none;padding:0}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce-inline .tox-editor-container{overflow:hidden}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:none;box-shadow:none}.tox.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:transparent;box-shadow:0 4px 4px -3px #00000040;padding:0}.tox.tox.tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-pop{box-shadow:none}.tox .tox-tbtn,.tox .tox-number-input,.tox .tox-tbtn--select,.tox .tox-split-button{margin:2px 0 3px}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0px #222f3e!important}.tox .tox-menubar+.tox-toolbar-overlord{border-top:none}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #000000;margin-top:-1px}.tox.tox-tinymce-aux .tox-toolbar__overflow{border:1px solid #000000;padding:0}.tox .tox-pop .tox-pop__dialog .tox-toolbar{padding:0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #000000}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #000000}.tox .tox-toolbar__group{padding:0 4px}.tox .tox-collection__item{border-radius:0;cursor:pointer}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff}.tox .tox-statusbar__branding svg{fill:#fffc;height:1em;margin-left:.3em;width:auto}@media (forced-colors: active){.tox .tox-statusbar__branding svg{fill:currentColor}}.tox .tox-statusbar__branding a{align-items:center;display:inline-flex}.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox[dir=rtl] .tox-statusbar__branding svg{margin-left:0;margin-right:.3em}.tox .tox-statusbar__resize-handle{padding-bottom:0;padding-right:0}.tox .tox-button:before{display:none}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#0e1b23!important}.tox-tinymce{border:none!important}.app-static-name[data-v-0948e122]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-name[data-v-588566c2]{position:sticky;top:100px}.message[data-v-588566c2]{padding-top:10px}.message__timestamp[data-v-588566c2]{font-size:.75rem;color:rgba(var(--v-theme-bluegrey))}.message__content[data-v-588566c2]{font-size:14px;word-break:break-word}.comment__actions[data-v-588566c2]{position:absolute;right:0}.card[data-v-793087b5]{position:sticky;height:87.5vh;top:3.9rem}.close-btn[data-v-793087b5]{position:absolute;top:0;right:0}.content[data-v-793087b5]{position:relative;height:100%}.empty-state[data-v-793087b5]{margin-top:200px;text-align:center}.empty-state__text[data-v-793087b5]{max-width:20em;margin:0 auto;line-height:1.8rem;color:rgb(var(--v-theme-bluegrey))}.comments-wrapper[data-v-793087b5]{max-height:66vh;overflow-y:auto}.cell-container{padding-top:0}.cell-container--app{padding-bottom:0}.cm-editor{height:auto!important}.zt-app-bar[data-v-e40b79f1]{padding-top:6px;padding-bottom:6px}.logo-btn[data-v-e40b79f1] .v-icon{width:1.5em;height:1.5em}.cm-editor[data-v-e40b79f1]{height:auto!important}.click-edit[data-v-e40b79f1]{max-width:200px;width:100%}.click-edit__name[data-v-e40b79f1]{font-weight:400;cursor:text}.click-edit__show-text[data-v-e40b79f1],.click-edit__edit-field-wrapper[data-v-e40b79f1]{display:flex;align-items:center}.click-edit__name[data-v-e40b79f1]:hover{padding-left:3px;padding-right:3px;cursor:text;border:1px solid #294455}.click-edit__edit-field[data-v-e40b79f1]{margin-top:-11px}.click-edit__edit-field[data-v-e40b79f1] .v-field__input{font-size:1.5rem;letter-spacing:normal}@media (min-width: 600px){.click-edit[data-v-e40b79f1]{max-width:250px}}@media (min-width: 1280px){.click-edit[data-v-e40b79f1]{max-width:450px}}@media (min-width: 1920px){.click-edit[data-v-e40b79f1]{max-width:600px}}.content[data-v-e40b79f1]{padding-left:0!important;padding-right:0!important}.content__comments[data-v-e40b79f1]{width:0;transition:width .15s ease}.content__comments--show[data-v-e40b79f1]{width:380px}.footer[data-v-e40b79f1]{display:flex;justify-content:space-between;flex-direction:column;padding:4px 16px}.footer__left-container[data-v-e40b79f1],.footer__right-container[data-v-e40b79f1]{display:flex;width:100%}@media (min-width: 960px){.footer__left-container[data-v-e40b79f1],.footer__right-container[data-v-e40b79f1]{align-items:center;width:auto}}.footer__right-container[data-v-e40b79f1]{align-items:center;flex-direction:column;justify-content:flex-start}@media (min-width: 600px){.footer__right-container[data-v-e40b79f1]{flex-direction:row}}.footer__left-container[data-v-e40b79f1]{flex-direction:column;margin:0 0 20px}@media (min-width: 600px){.footer__left-container[data-v-e40b79f1]{margin:0;flex-direction:row}}.footer__queue-length-wrapper[data-v-e40b79f1]{display:flex;justify-content:flex-start;width:100%}@media (min-width: 600px){.footer__queue-length-wrapper[data-v-e40b79f1]{width:auto}}.footer .dot-divider[data-v-e40b79f1]{display:none;margin:0 5px}@media (min-width: 600px){.footer .dot-divider[data-v-e40b79f1]{display:flex;margin:0 16px}}@media (min-width: 1280px){.footer .dot-divider[data-v-e40b79f1]{margin:0 16px}}@media (min-width: 1920px){.footer .dot-divider[data-v-e40b79f1]{margin:0 24px}}.footer__status-wrapper[data-v-e40b79f1]{display:flex;justify-content:flex-start;width:100%;align-items:center}.footer__status-wrapper .dot-divider[data-v-e40b79f1]{display:none}@media (min-width: 960px){.footer__status-wrapper .dot-divider[data-v-e40b79f1]{display:flex}}.footer__code-version-icon[data-v-e40b79f1]{margin-right:0;margin-left:-5px}@media (min-width: 600px){.footer__code-version-icon[data-v-e40b79f1]{margin-right:12px}}.footer__queue-length-btn[data-v-e40b79f1]{margin:0 2px}@media (min-width: 960px){.footer__queue-length-btn[data-v-e40b79f1]{margin:0 8px 0 24px}}.footer__code-running-loader[data-v-e40b79f1]{margin-right:10px}@media (min-width: 1280px){.footer__code-running-loader[data-v-e40b79f1]{margin-right:10px}}.footer__queue-list[data-v-e40b79f1]{font-size:.625rem}.footer__queue-list-item--pending[data-v-e40b79f1]{color:rgba(var(--v-theme-bluegrey-darken-2))}.footer__status[data-v-e40b79f1]{color:rgba(var(--v-theme-success))}.footer__status--error[data-v-e40b79f1]{color:rgba(var(--v-theme-error))}.footer__status--connected[data-v-e40b79f1]{color:rgba(var(--v-theme-info))}@media (min-width: 960px){.footer[data-v-e40b79f1]{flex-direction:row;height:34px}}.toggle-group[data-v-e40b79f1]{display:flex;justify-content:center;position:absolute;left:50%;transform:translate(-50%)}@font-face{font-family:Material Design Icons;src:url(./materialdesignicons-webfont-5159a347.eot?v=7.3.67);src:url(./materialdesignicons-webfont-5159a347.eot?#iefix&v=7.3.67) format("embedded-opentype"),url(./materialdesignicons-webfont-31010194.woff2?v=7.3.67) format("woff2"),url(./materialdesignicons-webfont-28c8f97f.woff?v=7.3.67) format("woff"),url(./materialdesignicons-webfont-be825c12.ttf?v=7.3.67) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-file:before{content:"󱲧"}.mdi-account-file-outline:before{content:"󱲨"}.mdi-account-file-text:before{content:"󱲩"}.mdi-account-file-text-outline:before{content:"󱲪"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-off-outline:before{content:"󱫲"}.mdi-account-network-outline:before{content:"󰯦"}.mdi-account-off:before{content:"󰀒"}.mdi-account-off-outline:before{content:"󰯧"}.mdi-account-outline:before{content:"󰀓"}.mdi-account-plus:before{content:"󰀔"}.mdi-account-plus-outline:before{content:"󰠁"}.mdi-account-question:before{content:"󰭙"}.mdi-account-question-outline:before{content:"󰭚"}.mdi-account-reactivate:before{content:"󱔫"}.mdi-account-reactivate-outline:before{content:"󱔬"}.mdi-account-remove:before{content:"󰀕"}.mdi-account-remove-outline:before{content:"󰫭"}.mdi-account-school:before{content:"󱨠"}.mdi-account-school-outline:before{content:"󱨡"}.mdi-account-search:before{content:"󰀖"}.mdi-account-search-outline:before{content:"󰤵"}.mdi-account-settings:before{content:"󰘰"}.mdi-account-settings-outline:before{content:"󱃉"}.mdi-account-star:before{content:"󰀗"}.mdi-account-star-outline:before{content:"󰯨"}.mdi-account-supervisor:before{content:"󰪋"}.mdi-account-supervisor-circle:before{content:"󰪌"}.mdi-account-supervisor-circle-outline:before{content:"󱓬"}.mdi-account-supervisor-outline:before{content:"󱄭"}.mdi-account-switch:before{content:"󰀙"}.mdi-account-switch-outline:before{content:"󰓋"}.mdi-account-sync:before{content:"󱤛"}.mdi-account-sync-outline:before{content:"󱤜"}.mdi-account-tag:before{content:"󱰛"}.mdi-account-tag-outline:before{content:"󱰜"}.mdi-account-tie:before{content:"󰳣"}.mdi-account-tie-hat:before{content:"󱢘"}.mdi-account-tie-hat-outline:before{content:"󱢙"}.mdi-account-tie-outline:before{content:"󱃊"}.mdi-account-tie-voice:before{content:"󱌈"}.mdi-account-tie-voice-off:before{content:"󱌊"}.mdi-account-tie-voice-off-outline:before{content:"󱌋"}.mdi-account-tie-voice-outline:before{content:"󱌉"}.mdi-account-tie-woman:before{content:"󱪌"}.mdi-account-voice:before{content:"󰗋"}.mdi-account-voice-off:before{content:"󰻔"}.mdi-account-wrench:before{content:"󱢚"}.mdi-account-wrench-outline:before{content:"󱢛"}.mdi-adjust:before{content:"󰀚"}.mdi-advertisements:before{content:"󱤪"}.mdi-advertisements-off:before{content:"󱤫"}.mdi-air-conditioner:before{content:"󰀛"}.mdi-air-filter:before{content:"󰵃"}.mdi-air-horn:before{content:"󰶬"}.mdi-air-humidifier:before{content:"󱂙"}.mdi-air-humidifier-off:before{content:"󱑦"}.mdi-air-purifier:before{content:"󰵄"}.mdi-air-purifier-off:before{content:"󱭗"}.mdi-airbag:before{content:"󰯩"}.mdi-airballoon:before{content:"󰀜"}.mdi-airballoon-outline:before{content:"󱀋"}.mdi-airplane:before{content:"󰀝"}.mdi-airplane-alert:before{content:"󱡺"}.mdi-airplane-check:before{content:"󱡻"}.mdi-airplane-clock:before{content:"󱡼"}.mdi-airplane-cog:before{content:"󱡽"}.mdi-airplane-edit:before{content:"󱡾"}.mdi-airplane-landing:before{content:"󰗔"}.mdi-airplane-marker:before{content:"󱡿"}.mdi-airplane-minus:before{content:"󱢀"}.mdi-airplane-off:before{content:"󰀞"}.mdi-airplane-plus:before{content:"󱢁"}.mdi-airplane-remove:before{content:"󱢂"}.mdi-airplane-search:before{content:"󱢃"}.mdi-airplane-settings:before{content:"󱢄"}.mdi-airplane-takeoff:before{content:"󰗕"}.mdi-airport:before{content:"󰡋"}.mdi-alarm:before{content:"󰀠"}.mdi-alarm-bell:before{content:"󰞎"}.mdi-alarm-check:before{content:"󰀡"}.mdi-alarm-light:before{content:"󰞏"}.mdi-alarm-light-off:before{content:"󱜞"}.mdi-alarm-light-off-outline:before{content:"󱜟"}.mdi-alarm-light-outline:before{content:"󰯪"}.mdi-alarm-multiple:before{content:"󰀢"}.mdi-alarm-note:before{content:"󰹱"}.mdi-alarm-note-off:before{content:"󰹲"}.mdi-alarm-off:before{content:"󰀣"}.mdi-alarm-panel:before{content:"󱗄"}.mdi-alarm-panel-outline:before{content:"󱗅"}.mdi-alarm-plus:before{content:"󰀤"}.mdi-alarm-snooze:before{content:"󰚎"}.mdi-album:before{content:"󰀥"}.mdi-alert:before{content:"󰀦"}.mdi-alert-box:before{content:"󰀧"}.mdi-alert-box-outline:before{content:"󰳤"}.mdi-alert-circle:before{content:"󰀨"}.mdi-alert-circle-check:before{content:"󱇭"}.mdi-alert-circle-check-outline:before{content:"󱇮"}.mdi-alert-circle-outline:before{content:"󰗖"}.mdi-alert-decagram:before{content:"󰚽"}.mdi-alert-decagram-outline:before{content:"󰳥"}.mdi-alert-minus:before{content:"󱒻"}.mdi-alert-minus-outline:before{content:"󱒾"}.mdi-alert-octagon:before{content:"󰀩"}.mdi-alert-octagon-outline:before{content:"󰳦"}.mdi-alert-octagram:before{content:"󰝧"}.mdi-alert-octagram-outline:before{content:"󰳧"}.mdi-alert-outline:before{content:"󰀪"}.mdi-alert-plus:before{content:"󱒺"}.mdi-alert-plus-outline:before{content:"󱒽"}.mdi-alert-remove:before{content:"󱒼"}.mdi-alert-remove-outline:before{content:"󱒿"}.mdi-alert-rhombus:before{content:"󱇎"}.mdi-alert-rhombus-outline:before{content:"󱇏"}.mdi-alien:before{content:"󰢚"}.mdi-alien-outline:before{content:"󱃋"}.mdi-align-horizontal-center:before{content:"󱇃"}.mdi-align-horizontal-distribute:before{content:"󱥢"}.mdi-align-horizontal-left:before{content:"󱇂"}.mdi-align-horizontal-right:before{content:"󱇄"}.mdi-align-vertical-bottom:before{content:"󱇅"}.mdi-align-vertical-center:before{content:"󱇆"}.mdi-align-vertical-distribute:before{content:"󱥣"}.mdi-align-vertical-top:before{content:"󱇇"}.mdi-all-inclusive:before{content:"󰚾"}.mdi-all-inclusive-box:before{content:"󱢍"}.mdi-all-inclusive-box-outline:before{content:"󱢎"}.mdi-allergy:before{content:"󱉘"}.mdi-alpha:before{content:"󰀫"}.mdi-alpha-a:before{content:"󰫮"}.mdi-alpha-a-box:before{content:"󰬈"}.mdi-alpha-a-box-outline:before{content:"󰯫"}.mdi-alpha-a-circle:before{content:"󰯬"}.mdi-alpha-a-circle-outline:before{content:"󰯭"}.mdi-alpha-b:before{content:"󰫯"}.mdi-alpha-b-box:before{content:"󰬉"}.mdi-alpha-b-box-outline:before{content:"󰯮"}.mdi-alpha-b-circle:before{content:"󰯯"}.mdi-alpha-b-circle-outline:before{content:"󰯰"}.mdi-alpha-c:before{content:"󰫰"}.mdi-alpha-c-box:before{content:"󰬊"}.mdi-alpha-c-box-outline:before{content:"󰯱"}.mdi-alpha-c-circle:before{content:"󰯲"}.mdi-alpha-c-circle-outline:before{content:"󰯳"}.mdi-alpha-d:before{content:"󰫱"}.mdi-alpha-d-box:before{content:"󰬋"}.mdi-alpha-d-box-outline:before{content:"󰯴"}.mdi-alpha-d-circle:before{content:"󰯵"}.mdi-alpha-d-circle-outline:before{content:"󰯶"}.mdi-alpha-e:before{content:"󰫲"}.mdi-alpha-e-box:before{content:"󰬌"}.mdi-alpha-e-box-outline:before{content:"󰯷"}.mdi-alpha-e-circle:before{content:"󰯸"}.mdi-alpha-e-circle-outline:before{content:"󰯹"}.mdi-alpha-f:before{content:"󰫳"}.mdi-alpha-f-box:before{content:"󰬍"}.mdi-alpha-f-box-outline:before{content:"󰯺"}.mdi-alpha-f-circle:before{content:"󰯻"}.mdi-alpha-f-circle-outline:before{content:"󰯼"}.mdi-alpha-g:before{content:"󰫴"}.mdi-alpha-g-box:before{content:"󰬎"}.mdi-alpha-g-box-outline:before{content:"󰯽"}.mdi-alpha-g-circle:before{content:"󰯾"}.mdi-alpha-g-circle-outline:before{content:"󰯿"}.mdi-alpha-h:before{content:"󰫵"}.mdi-alpha-h-box:before{content:"󰬏"}.mdi-alpha-h-box-outline:before{content:"󰰀"}.mdi-alpha-h-circle:before{content:"󰰁"}.mdi-alpha-h-circle-outline:before{content:"󰰂"}.mdi-alpha-i:before{content:"󰫶"}.mdi-alpha-i-box:before{content:"󰬐"}.mdi-alpha-i-box-outline:before{content:"󰰃"}.mdi-alpha-i-circle:before{content:"󰰄"}.mdi-alpha-i-circle-outline:before{content:"󰰅"}.mdi-alpha-j:before{content:"󰫷"}.mdi-alpha-j-box:before{content:"󰬑"}.mdi-alpha-j-box-outline:before{content:"󰰆"}.mdi-alpha-j-circle:before{content:"󰰇"}.mdi-alpha-j-circle-outline:before{content:"󰰈"}.mdi-alpha-k:before{content:"󰫸"}.mdi-alpha-k-box:before{content:"󰬒"}.mdi-alpha-k-box-outline:before{content:"󰰉"}.mdi-alpha-k-circle:before{content:"󰰊"}.mdi-alpha-k-circle-outline:before{content:"󰰋"}.mdi-alpha-l:before{content:"󰫹"}.mdi-alpha-l-box:before{content:"󰬓"}.mdi-alpha-l-box-outline:before{content:"󰰌"}.mdi-alpha-l-circle:before{content:"󰰍"}.mdi-alpha-l-circle-outline:before{content:"󰰎"}.mdi-alpha-m:before{content:"󰫺"}.mdi-alpha-m-box:before{content:"󰬔"}.mdi-alpha-m-box-outline:before{content:"󰰏"}.mdi-alpha-m-circle:before{content:"󰰐"}.mdi-alpha-m-circle-outline:before{content:"󰰑"}.mdi-alpha-n:before{content:"󰫻"}.mdi-alpha-n-box:before{content:"󰬕"}.mdi-alpha-n-box-outline:before{content:"󰰒"}.mdi-alpha-n-circle:before{content:"󰰓"}.mdi-alpha-n-circle-outline:before{content:"󰰔"}.mdi-alpha-o:before{content:"󰫼"}.mdi-alpha-o-box:before{content:"󰬖"}.mdi-alpha-o-box-outline:before{content:"󰰕"}.mdi-alpha-o-circle:before{content:"󰰖"}.mdi-alpha-o-circle-outline:before{content:"󰰗"}.mdi-alpha-p:before{content:"󰫽"}.mdi-alpha-p-box:before{content:"󰬗"}.mdi-alpha-p-box-outline:before{content:"󰰘"}.mdi-alpha-p-circle:before{content:"󰰙"}.mdi-alpha-p-circle-outline:before{content:"󰰚"}.mdi-alpha-q:before{content:"󰫾"}.mdi-alpha-q-box:before{content:"󰬘"}.mdi-alpha-q-box-outline:before{content:"󰰛"}.mdi-alpha-q-circle:before{content:"󰰜"}.mdi-alpha-q-circle-outline:before{content:"󰰝"}.mdi-alpha-r:before{content:"󰫿"}.mdi-alpha-r-box:before{content:"󰬙"}.mdi-alpha-r-box-outline:before{content:"󰰞"}.mdi-alpha-r-circle:before{content:"󰰟"}.mdi-alpha-r-circle-outline:before{content:"󰰠"}.mdi-alpha-s:before{content:"󰬀"}.mdi-alpha-s-box:before{content:"󰬚"}.mdi-alpha-s-box-outline:before{content:"󰰡"}.mdi-alpha-s-circle:before{content:"󰰢"}.mdi-alpha-s-circle-outline:before{content:"󰰣"}.mdi-alpha-t:before{content:"󰬁"}.mdi-alpha-t-box:before{content:"󰬛"}.mdi-alpha-t-box-outline:before{content:"󰰤"}.mdi-alpha-t-circle:before{content:"󰰥"}.mdi-alpha-t-circle-outline:before{content:"󰰦"}.mdi-alpha-u:before{content:"󰬂"}.mdi-alpha-u-box:before{content:"󰬜"}.mdi-alpha-u-box-outline:before{content:"󰰧"}.mdi-alpha-u-circle:before{content:"󰰨"}.mdi-alpha-u-circle-outline:before{content:"󰰩"}.mdi-alpha-v:before{content:"󰬃"}.mdi-alpha-v-box:before{content:"󰬝"}.mdi-alpha-v-box-outline:before{content:"󰰪"}.mdi-alpha-v-circle:before{content:"󰰫"}.mdi-alpha-v-circle-outline:before{content:"󰰬"}.mdi-alpha-w:before{content:"󰬄"}.mdi-alpha-w-box:before{content:"󰬞"}.mdi-alpha-w-box-outline:before{content:"󰰭"}.mdi-alpha-w-circle:before{content:"󰰮"}.mdi-alpha-w-circle-outline:before{content:"󰰯"}.mdi-alpha-x:before{content:"󰬅"}.mdi-alpha-x-box:before{content:"󰬟"}.mdi-alpha-x-box-outline:before{content:"󰰰"}.mdi-alpha-x-circle:before{content:"󰰱"}.mdi-alpha-x-circle-outline:before{content:"󰰲"}.mdi-alpha-y:before{content:"󰬆"}.mdi-alpha-y-box:before{content:"󰬠"}.mdi-alpha-y-box-outline:before{content:"󰰳"}.mdi-alpha-y-circle:before{content:"󰰴"}.mdi-alpha-y-circle-outline:before{content:"󰰵"}.mdi-alpha-z:before{content:"󰬇"}.mdi-alpha-z-box:before{content:"󰬡"}.mdi-alpha-z-box-outline:before{content:"󰰶"}.mdi-alpha-z-circle:before{content:"󰰷"}.mdi-alpha-z-circle-outline:before{content:"󰰸"}.mdi-alphabet-aurebesh:before{content:"󱌬"}.mdi-alphabet-cyrillic:before{content:"󱌭"}.mdi-alphabet-greek:before{content:"󱌮"}.mdi-alphabet-latin:before{content:"󱌯"}.mdi-alphabet-piqad:before{content:"󱌰"}.mdi-alphabet-tengwar:before{content:"󱌷"}.mdi-alphabetical:before{content:"󰀬"}.mdi-alphabetical-off:before{content:"󱀌"}.mdi-alphabetical-variant:before{content:"󱀍"}.mdi-alphabetical-variant-off:before{content:"󱀎"}.mdi-altimeter:before{content:"󰗗"}.mdi-ambulance:before{content:"󰀯"}.mdi-ammunition:before{content:"󰳨"}.mdi-ampersand:before{content:"󰪍"}.mdi-amplifier:before{content:"󰀰"}.mdi-amplifier-off:before{content:"󱆵"}.mdi-anchor:before{content:"󰀱"}.mdi-android:before{content:"󰀲"}.mdi-android-studio:before{content:"󰀴"}.mdi-angle-acute:before{content:"󰤷"}.mdi-angle-obtuse:before{content:"󰤸"}.mdi-angle-right:before{content:"󰤹"}.mdi-angular:before{content:"󰚲"}.mdi-angularjs:before{content:"󰚿"}.mdi-animation:before{content:"󰗘"}.mdi-animation-outline:before{content:"󰪏"}.mdi-animation-play:before{content:"󰤺"}.mdi-animation-play-outline:before{content:"󰪐"}.mdi-ansible:before{content:"󱂚"}.mdi-antenna:before{content:"󱄙"}.mdi-anvil:before{content:"󰢛"}.mdi-apache-kafka:before{content:"󱀏"}.mdi-api:before{content:"󱂛"}.mdi-api-off:before{content:"󱉗"}.mdi-apple:before{content:"󰀵"}.mdi-apple-finder:before{content:"󰀶"}.mdi-apple-icloud:before{content:"󰀸"}.mdi-apple-ios:before{content:"󰀷"}.mdi-apple-keyboard-caps:before{content:"󰘲"}.mdi-apple-keyboard-command:before{content:"󰘳"}.mdi-apple-keyboard-control:before{content:"󰘴"}.mdi-apple-keyboard-option:before{content:"󰘵"}.mdi-apple-keyboard-shift:before{content:"󰘶"}.mdi-apple-safari:before{content:"󰀹"}.mdi-application:before{content:"󰣆"}.mdi-application-array:before{content:"󱃵"}.mdi-application-array-outline:before{content:"󱃶"}.mdi-application-braces:before{content:"󱃷"}.mdi-application-braces-outline:before{content:"󱃸"}.mdi-application-brackets:before{content:"󰲋"}.mdi-application-brackets-outline:before{content:"󰲌"}.mdi-application-cog:before{content:"󰙵"}.mdi-application-cog-outline:before{content:"󱕷"}.mdi-application-edit:before{content:"󰂮"}.mdi-application-edit-outline:before{content:"󰘙"}.mdi-application-export:before{content:"󰶭"}.mdi-application-import:before{content:"󰶮"}.mdi-application-outline:before{content:"󰘔"}.mdi-application-parentheses:before{content:"󱃹"}.mdi-application-parentheses-outline:before{content:"󱃺"}.mdi-application-settings:before{content:"󰭠"}.mdi-application-settings-outline:before{content:"󱕕"}.mdi-application-variable:before{content:"󱃻"}.mdi-application-variable-outline:before{content:"󱃼"}.mdi-approximately-equal:before{content:"󰾞"}.mdi-approximately-equal-box:before{content:"󰾟"}.mdi-apps:before{content:"󰀻"}.mdi-apps-box:before{content:"󰵆"}.mdi-arch:before{content:"󰣇"}.mdi-archive:before{content:"󰀼"}.mdi-archive-alert:before{content:"󱓽"}.mdi-archive-alert-outline:before{content:"󱓾"}.mdi-archive-arrow-down:before{content:"󱉙"}.mdi-archive-arrow-down-outline:before{content:"󱉚"}.mdi-archive-arrow-up:before{content:"󱉛"}.mdi-archive-arrow-up-outline:before{content:"󱉜"}.mdi-archive-cancel:before{content:"󱝋"}.mdi-archive-cancel-outline:before{content:"󱝌"}.mdi-archive-check:before{content:"󱝍"}.mdi-archive-check-outline:before{content:"󱝎"}.mdi-archive-clock:before{content:"󱝏"}.mdi-archive-clock-outline:before{content:"󱝐"}.mdi-archive-cog:before{content:"󱝑"}.mdi-archive-cog-outline:before{content:"󱝒"}.mdi-archive-edit:before{content:"󱝓"}.mdi-archive-edit-outline:before{content:"󱝔"}.mdi-archive-eye:before{content:"󱝕"}.mdi-archive-eye-outline:before{content:"󱝖"}.mdi-archive-lock:before{content:"󱝗"}.mdi-archive-lock-open:before{content:"󱝘"}.mdi-archive-lock-open-outline:before{content:"󱝙"}.mdi-archive-lock-outline:before{content:"󱝚"}.mdi-archive-marker:before{content:"󱝛"}.mdi-archive-marker-outline:before{content:"󱝜"}.mdi-archive-minus:before{content:"󱝝"}.mdi-archive-minus-outline:before{content:"󱝞"}.mdi-archive-music:before{content:"󱝟"}.mdi-archive-music-outline:before{content:"󱝠"}.mdi-archive-off:before{content:"󱝡"}.mdi-archive-off-outline:before{content:"󱝢"}.mdi-archive-outline:before{content:"󱈎"}.mdi-archive-plus:before{content:"󱝣"}.mdi-archive-plus-outline:before{content:"󱝤"}.mdi-archive-refresh:before{content:"󱝥"}.mdi-archive-refresh-outline:before{content:"󱝦"}.mdi-archive-remove:before{content:"󱝧"}.mdi-archive-remove-outline:before{content:"󱝨"}.mdi-archive-search:before{content:"󱝩"}.mdi-archive-search-outline:before{content:"󱝪"}.mdi-archive-settings:before{content:"󱝫"}.mdi-archive-settings-outline:before{content:"󱝬"}.mdi-archive-star:before{content:"󱝭"}.mdi-archive-star-outline:before{content:"󱝮"}.mdi-archive-sync:before{content:"󱝯"}.mdi-archive-sync-outline:before{content:"󱝰"}.mdi-arm-flex:before{content:"󰿗"}.mdi-arm-flex-outline:before{content:"󰿖"}.mdi-arrange-bring-forward:before{content:"󰀽"}.mdi-arrange-bring-to-front:before{content:"󰀾"}.mdi-arrange-send-backward:before{content:"󰀿"}.mdi-arrange-send-to-back:before{content:"󰁀"}.mdi-arrow-all:before{content:"󰁁"}.mdi-arrow-bottom-left:before{content:"󰁂"}.mdi-arrow-bottom-left-bold-box:before{content:"󱥤"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"󱥥"}.mdi-arrow-bottom-left-bold-outline:before{content:"󰦷"}.mdi-arrow-bottom-left-thick:before{content:"󰦸"}.mdi-arrow-bottom-left-thin:before{content:"󱦶"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"󱖖"}.mdi-arrow-bottom-right:before{content:"󰁃"}.mdi-arrow-bottom-right-bold-box:before{content:"󱥦"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"󱥧"}.mdi-arrow-bottom-right-bold-outline:before{content:"󰦹"}.mdi-arrow-bottom-right-thick:before{content:"󰦺"}.mdi-arrow-bottom-right-thin:before{content:"󱦷"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"󱖕"}.mdi-arrow-collapse:before{content:"󰘕"}.mdi-arrow-collapse-all:before{content:"󰁄"}.mdi-arrow-collapse-down:before{content:"󰞒"}.mdi-arrow-collapse-horizontal:before{content:"󰡌"}.mdi-arrow-collapse-left:before{content:"󰞓"}.mdi-arrow-collapse-right:before{content:"󰞔"}.mdi-arrow-collapse-up:before{content:"󰞕"}.mdi-arrow-collapse-vertical:before{content:"󰡍"}.mdi-arrow-decision:before{content:"󰦻"}.mdi-arrow-decision-auto:before{content:"󰦼"}.mdi-arrow-decision-auto-outline:before{content:"󰦽"}.mdi-arrow-decision-outline:before{content:"󰦾"}.mdi-arrow-down:before{content:"󰁅"}.mdi-arrow-down-bold:before{content:"󰜮"}.mdi-arrow-down-bold-box:before{content:"󰜯"}.mdi-arrow-down-bold-box-outline:before{content:"󰜰"}.mdi-arrow-down-bold-circle:before{content:"󰁇"}.mdi-arrow-down-bold-circle-outline:before{content:"󰁈"}.mdi-arrow-down-bold-hexagon-outline:before{content:"󰁉"}.mdi-arrow-down-bold-outline:before{content:"󰦿"}.mdi-arrow-down-box:before{content:"󰛀"}.mdi-arrow-down-circle:before{content:"󰳛"}.mdi-arrow-down-circle-outline:before{content:"󰳜"}.mdi-arrow-down-drop-circle:before{content:"󰁊"}.mdi-arrow-down-drop-circle-outline:before{content:"󰁋"}.mdi-arrow-down-left:before{content:"󱞡"}.mdi-arrow-down-left-bold:before{content:"󱞢"}.mdi-arrow-down-right:before{content:"󱞣"}.mdi-arrow-down-right-bold:before{content:"󱞤"}.mdi-arrow-down-thick:before{content:"󰁆"}.mdi-arrow-down-thin:before{content:"󱦳"}.mdi-arrow-down-thin-circle-outline:before{content:"󱖙"}.mdi-arrow-expand:before{content:"󰘖"}.mdi-arrow-expand-all:before{content:"󰁌"}.mdi-arrow-expand-down:before{content:"󰞖"}.mdi-arrow-expand-horizontal:before{content:"󰡎"}.mdi-arrow-expand-left:before{content:"󰞗"}.mdi-arrow-expand-right:before{content:"󰞘"}.mdi-arrow-expand-up:before{content:"󰞙"}.mdi-arrow-expand-vertical:before{content:"󰡏"}.mdi-arrow-horizontal-lock:before{content:"󱅛"}.mdi-arrow-left:before{content:"󰁍"}.mdi-arrow-left-bold:before{content:"󰜱"}.mdi-arrow-left-bold-box:before{content:"󰜲"}.mdi-arrow-left-bold-box-outline:before{content:"󰜳"}.mdi-arrow-left-bold-circle:before{content:"󰁏"}.mdi-arrow-left-bold-circle-outline:before{content:"󰁐"}.mdi-arrow-left-bold-hexagon-outline:before{content:"󰁑"}.mdi-arrow-left-bold-outline:before{content:"󰧀"}.mdi-arrow-left-bottom:before{content:"󱞥"}.mdi-arrow-left-bottom-bold:before{content:"󱞦"}.mdi-arrow-left-box:before{content:"󰛁"}.mdi-arrow-left-circle:before{content:"󰳝"}.mdi-arrow-left-circle-outline:before{content:"󰳞"}.mdi-arrow-left-drop-circle:before{content:"󰁒"}.mdi-arrow-left-drop-circle-outline:before{content:"󰁓"}.mdi-arrow-left-right:before{content:"󰹳"}.mdi-arrow-left-right-bold:before{content:"󰹴"}.mdi-arrow-left-right-bold-outline:before{content:"󰧁"}.mdi-arrow-left-thick:before{content:"󰁎"}.mdi-arrow-left-thin:before{content:"󱦱"}.mdi-arrow-left-thin-circle-outline:before{content:"󱖚"}.mdi-arrow-left-top:before{content:"󱞧"}.mdi-arrow-left-top-bold:before{content:"󱞨"}.mdi-arrow-oscillating:before{content:"󱲑"}.mdi-arrow-oscillating-off:before{content:"󱲒"}.mdi-arrow-projectile:before{content:"󱡀"}.mdi-arrow-projectile-multiple:before{content:"󱠿"}.mdi-arrow-right:before{content:"󰁔"}.mdi-arrow-right-bold:before{content:"󰜴"}.mdi-arrow-right-bold-box:before{content:"󰜵"}.mdi-arrow-right-bold-box-outline:before{content:"󰜶"}.mdi-arrow-right-bold-circle:before{content:"󰁖"}.mdi-arrow-right-bold-circle-outline:before{content:"󰁗"}.mdi-arrow-right-bold-hexagon-outline:before{content:"󰁘"}.mdi-arrow-right-bold-outline:before{content:"󰧂"}.mdi-arrow-right-bottom:before{content:"󱞩"}.mdi-arrow-right-bottom-bold:before{content:"󱞪"}.mdi-arrow-right-box:before{content:"󰛂"}.mdi-arrow-right-circle:before{content:"󰳟"}.mdi-arrow-right-circle-outline:before{content:"󰳠"}.mdi-arrow-right-drop-circle:before{content:"󰁙"}.mdi-arrow-right-drop-circle-outline:before{content:"󰁚"}.mdi-arrow-right-thick:before{content:"󰁕"}.mdi-arrow-right-thin:before{content:"󱦰"}.mdi-arrow-right-thin-circle-outline:before{content:"󱖘"}.mdi-arrow-right-top:before{content:"󱞫"}.mdi-arrow-right-top-bold:before{content:"󱞬"}.mdi-arrow-split-horizontal:before{content:"󰤻"}.mdi-arrow-split-vertical:before{content:"󰤼"}.mdi-arrow-top-left:before{content:"󰁛"}.mdi-arrow-top-left-bold-box:before{content:"󱥨"}.mdi-arrow-top-left-bold-box-outline:before{content:"󱥩"}.mdi-arrow-top-left-bold-outline:before{content:"󰧃"}.mdi-arrow-top-left-bottom-right:before{content:"󰹵"}.mdi-arrow-top-left-bottom-right-bold:before{content:"󰹶"}.mdi-arrow-top-left-thick:before{content:"󰧄"}.mdi-arrow-top-left-thin:before{content:"󱦵"}.mdi-arrow-top-left-thin-circle-outline:before{content:"󱖓"}.mdi-arrow-top-right:before{content:"󰁜"}.mdi-arrow-top-right-bold-box:before{content:"󱥪"}.mdi-arrow-top-right-bold-box-outline:before{content:"󱥫"}.mdi-arrow-top-right-bold-outline:before{content:"󰧅"}.mdi-arrow-top-right-bottom-left:before{content:"󰹷"}.mdi-arrow-top-right-bottom-left-bold:before{content:"󰹸"}.mdi-arrow-top-right-thick:before{content:"󰧆"}.mdi-arrow-top-right-thin:before{content:"󱦴"}.mdi-arrow-top-right-thin-circle-outline:before{content:"󱖔"}.mdi-arrow-u-down-left:before{content:"󱞭"}.mdi-arrow-u-down-left-bold:before{content:"󱞮"}.mdi-arrow-u-down-right:before{content:"󱞯"}.mdi-arrow-u-down-right-bold:before{content:"󱞰"}.mdi-arrow-u-left-bottom:before{content:"󱞱"}.mdi-arrow-u-left-bottom-bold:before{content:"󱞲"}.mdi-arrow-u-left-top:before{content:"󱞳"}.mdi-arrow-u-left-top-bold:before{content:"󱞴"}.mdi-arrow-u-right-bottom:before{content:"󱞵"}.mdi-arrow-u-right-bottom-bold:before{content:"󱞶"}.mdi-arrow-u-right-top:before{content:"󱞷"}.mdi-arrow-u-right-top-bold:before{content:"󱞸"}.mdi-arrow-u-up-left:before{content:"󱞹"}.mdi-arrow-u-up-left-bold:before{content:"󱞺"}.mdi-arrow-u-up-right:before{content:"󱞻"}.mdi-arrow-u-up-right-bold:before{content:"󱞼"}.mdi-arrow-up:before{content:"󰁝"}.mdi-arrow-up-bold:before{content:"󰜷"}.mdi-arrow-up-bold-box:before{content:"󰜸"}.mdi-arrow-up-bold-box-outline:before{content:"󰜹"}.mdi-arrow-up-bold-circle:before{content:"󰁟"}.mdi-arrow-up-bold-circle-outline:before{content:"󰁠"}.mdi-arrow-up-bold-hexagon-outline:before{content:"󰁡"}.mdi-arrow-up-bold-outline:before{content:"󰧇"}.mdi-arrow-up-box:before{content:"󰛃"}.mdi-arrow-up-circle:before{content:"󰳡"}.mdi-arrow-up-circle-outline:before{content:"󰳢"}.mdi-arrow-up-down:before{content:"󰹹"}.mdi-arrow-up-down-bold:before{content:"󰹺"}.mdi-arrow-up-down-bold-outline:before{content:"󰧈"}.mdi-arrow-up-drop-circle:before{content:"󰁢"}.mdi-arrow-up-drop-circle-outline:before{content:"󰁣"}.mdi-arrow-up-left:before{content:"󱞽"}.mdi-arrow-up-left-bold:before{content:"󱞾"}.mdi-arrow-up-right:before{content:"󱞿"}.mdi-arrow-up-right-bold:before{content:"󱟀"}.mdi-arrow-up-thick:before{content:"󰁞"}.mdi-arrow-up-thin:before{content:"󱦲"}.mdi-arrow-up-thin-circle-outline:before{content:"󱖗"}.mdi-arrow-vertical-lock:before{content:"󱅜"}.mdi-artboard:before{content:"󱮚"}.mdi-artstation:before{content:"󰭛"}.mdi-aspect-ratio:before{content:"󰨤"}.mdi-assistant:before{content:"󰁤"}.mdi-asterisk:before{content:"󰛄"}.mdi-asterisk-circle-outline:before{content:"󱨧"}.mdi-at:before{content:"󰁥"}.mdi-atlassian:before{content:"󰠄"}.mdi-atm:before{content:"󰵇"}.mdi-atom:before{content:"󰝨"}.mdi-atom-variant:before{content:"󰹻"}.mdi-attachment:before{content:"󰁦"}.mdi-attachment-check:before{content:"󱫁"}.mdi-attachment-lock:before{content:"󱧄"}.mdi-attachment-minus:before{content:"󱫂"}.mdi-attachment-off:before{content:"󱫃"}.mdi-attachment-plus:before{content:"󱫄"}.mdi-attachment-remove:before{content:"󱫅"}.mdi-atv:before{content:"󱭰"}.mdi-audio-input-rca:before{content:"󱡫"}.mdi-audio-input-stereo-minijack:before{content:"󱡬"}.mdi-audio-input-xlr:before{content:"󱡭"}.mdi-audio-video:before{content:"󰤽"}.mdi-audio-video-off:before{content:"󱆶"}.mdi-augmented-reality:before{content:"󰡐"}.mdi-aurora:before{content:"󱮹"}.mdi-auto-download:before{content:"󱍾"}.mdi-auto-fix:before{content:"󰁨"}.mdi-auto-mode:before{content:"󱰠"}.mdi-auto-upload:before{content:"󰁩"}.mdi-autorenew:before{content:"󰁪"}.mdi-autorenew-off:before{content:"󱧧"}.mdi-av-timer:before{content:"󰁫"}.mdi-awning:before{content:"󱮇"}.mdi-awning-outline:before{content:"󱮈"}.mdi-aws:before{content:"󰸏"}.mdi-axe:before{content:"󰣈"}.mdi-axe-battle:before{content:"󱡂"}.mdi-axis:before{content:"󰵈"}.mdi-axis-arrow:before{content:"󰵉"}.mdi-axis-arrow-info:before{content:"󱐎"}.mdi-axis-arrow-lock:before{content:"󰵊"}.mdi-axis-lock:before{content:"󰵋"}.mdi-axis-x-arrow:before{content:"󰵌"}.mdi-axis-x-arrow-lock:before{content:"󰵍"}.mdi-axis-x-rotate-clockwise:before{content:"󰵎"}.mdi-axis-x-rotate-counterclockwise:before{content:"󰵏"}.mdi-axis-x-y-arrow-lock:before{content:"󰵐"}.mdi-axis-y-arrow:before{content:"󰵑"}.mdi-axis-y-arrow-lock:before{content:"󰵒"}.mdi-axis-y-rotate-clockwise:before{content:"󰵓"}.mdi-axis-y-rotate-counterclockwise:before{content:"󰵔"}.mdi-axis-z-arrow:before{content:"󰵕"}.mdi-axis-z-arrow-lock:before{content:"󰵖"}.mdi-axis-z-rotate-clockwise:before{content:"󰵗"}.mdi-axis-z-rotate-counterclockwise:before{content:"󰵘"}.mdi-babel:before{content:"󰨥"}.mdi-baby:before{content:"󰁬"}.mdi-baby-bottle:before{content:"󰼹"}.mdi-baby-bottle-outline:before{content:"󰼺"}.mdi-baby-buggy:before{content:"󱏠"}.mdi-baby-buggy-off:before{content:"󱫳"}.mdi-baby-carriage:before{content:"󰚏"}.mdi-baby-carriage-off:before{content:"󰾠"}.mdi-baby-face:before{content:"󰹼"}.mdi-baby-face-outline:before{content:"󰹽"}.mdi-backburger:before{content:"󰁭"}.mdi-backspace:before{content:"󰁮"}.mdi-backspace-outline:before{content:"󰭜"}.mdi-backspace-reverse:before{content:"󰹾"}.mdi-backspace-reverse-outline:before{content:"󰹿"}.mdi-backup-restore:before{content:"󰁯"}.mdi-bacteria:before{content:"󰻕"}.mdi-bacteria-outline:before{content:"󰻖"}.mdi-badge-account:before{content:"󰶧"}.mdi-badge-account-alert:before{content:"󰶨"}.mdi-badge-account-alert-outline:before{content:"󰶩"}.mdi-badge-account-horizontal:before{content:"󰸍"}.mdi-badge-account-horizontal-outline:before{content:"󰸎"}.mdi-badge-account-outline:before{content:"󰶪"}.mdi-badminton:before{content:"󰡑"}.mdi-bag-carry-on:before{content:"󰼻"}.mdi-bag-carry-on-check:before{content:"󰵥"}.mdi-bag-carry-on-off:before{content:"󰼼"}.mdi-bag-checked:before{content:"󰼽"}.mdi-bag-personal:before{content:"󰸐"}.mdi-bag-personal-off:before{content:"󰸑"}.mdi-bag-personal-off-outline:before{content:"󰸒"}.mdi-bag-personal-outline:before{content:"󰸓"}.mdi-bag-personal-plus:before{content:"󱲤"}.mdi-bag-personal-plus-outline:before{content:"󱲥"}.mdi-bag-personal-tag:before{content:"󱬌"}.mdi-bag-personal-tag-outline:before{content:"󱬍"}.mdi-bag-suitcase:before{content:"󱖋"}.mdi-bag-suitcase-off:before{content:"󱖍"}.mdi-bag-suitcase-off-outline:before{content:"󱖎"}.mdi-bag-suitcase-outline:before{content:"󱖌"}.mdi-baguette:before{content:"󰼾"}.mdi-balcony:before{content:"󱠗"}.mdi-balloon:before{content:"󰨦"}.mdi-ballot:before{content:"󰧉"}.mdi-ballot-outline:before{content:"󰧊"}.mdi-ballot-recount:before{content:"󰰹"}.mdi-ballot-recount-outline:before{content:"󰰺"}.mdi-bandage:before{content:"󰶯"}.mdi-bank:before{content:"󰁰"}.mdi-bank-check:before{content:"󱙕"}.mdi-bank-circle:before{content:"󱰃"}.mdi-bank-circle-outline:before{content:"󱰄"}.mdi-bank-minus:before{content:"󰶰"}.mdi-bank-off:before{content:"󱙖"}.mdi-bank-off-outline:before{content:"󱙗"}.mdi-bank-outline:before{content:"󰺀"}.mdi-bank-plus:before{content:"󰶱"}.mdi-bank-remove:before{content:"󰶲"}.mdi-bank-transfer:before{content:"󰨧"}.mdi-bank-transfer-in:before{content:"󰨨"}.mdi-bank-transfer-out:before{content:"󰨩"}.mdi-barcode:before{content:"󰁱"}.mdi-barcode-off:before{content:"󱈶"}.mdi-barcode-scan:before{content:"󰁲"}.mdi-barley:before{content:"󰁳"}.mdi-barley-off:before{content:"󰭝"}.mdi-barn:before{content:"󰭞"}.mdi-barrel:before{content:"󰁴"}.mdi-barrel-outline:before{content:"󱨨"}.mdi-baseball:before{content:"󰡒"}.mdi-baseball-bat:before{content:"󰡓"}.mdi-baseball-diamond:before{content:"󱗬"}.mdi-baseball-diamond-outline:before{content:"󱗭"}.mdi-baseball-outline:before{content:"󱱚"}.mdi-bash:before{content:"󱆃"}.mdi-basket:before{content:"󰁶"}.mdi-basket-check:before{content:"󱣥"}.mdi-basket-check-outline:before{content:"󱣦"}.mdi-basket-fill:before{content:"󰁷"}.mdi-basket-minus:before{content:"󱔣"}.mdi-basket-minus-outline:before{content:"󱔤"}.mdi-basket-off:before{content:"󱔥"}.mdi-basket-off-outline:before{content:"󱔦"}.mdi-basket-outline:before{content:"󱆁"}.mdi-basket-plus:before{content:"󱔧"}.mdi-basket-plus-outline:before{content:"󱔨"}.mdi-basket-remove:before{content:"󱔩"}.mdi-basket-remove-outline:before{content:"󱔪"}.mdi-basket-unfill:before{content:"󰁸"}.mdi-basketball:before{content:"󰠆"}.mdi-basketball-hoop:before{content:"󰰻"}.mdi-basketball-hoop-outline:before{content:"󰰼"}.mdi-bat:before{content:"󰭟"}.mdi-bathtub:before{content:"󱠘"}.mdi-bathtub-outline:before{content:"󱠙"}.mdi-battery:before{content:"󰁹"}.mdi-battery-10:before{content:"󰁺"}.mdi-battery-10-bluetooth:before{content:"󰤾"}.mdi-battery-20:before{content:"󰁻"}.mdi-battery-20-bluetooth:before{content:"󰤿"}.mdi-battery-30:before{content:"󰁼"}.mdi-battery-30-bluetooth:before{content:"󰥀"}.mdi-battery-40:before{content:"󰁽"}.mdi-battery-40-bluetooth:before{content:"󰥁"}.mdi-battery-50:before{content:"󰁾"}.mdi-battery-50-bluetooth:before{content:"󰥂"}.mdi-battery-60:before{content:"󰁿"}.mdi-battery-60-bluetooth:before{content:"󰥃"}.mdi-battery-70:before{content:"󰂀"}.mdi-battery-70-bluetooth:before{content:"󰥄"}.mdi-battery-80:before{content:"󰂁"}.mdi-battery-80-bluetooth:before{content:"󰥅"}.mdi-battery-90:before{content:"󰂂"}.mdi-battery-90-bluetooth:before{content:"󰥆"}.mdi-battery-alert:before{content:"󰂃"}.mdi-battery-alert-bluetooth:before{content:"󰥇"}.mdi-battery-alert-variant:before{content:"󱃌"}.mdi-battery-alert-variant-outline:before{content:"󱃍"}.mdi-battery-arrow-down:before{content:"󱟞"}.mdi-battery-arrow-down-outline:before{content:"󱟟"}.mdi-battery-arrow-up:before{content:"󱟠"}.mdi-battery-arrow-up-outline:before{content:"󱟡"}.mdi-battery-bluetooth:before{content:"󰥈"}.mdi-battery-bluetooth-variant:before{content:"󰥉"}.mdi-battery-charging:before{content:"󰂄"}.mdi-battery-charging-10:before{content:"󰢜"}.mdi-battery-charging-100:before{content:"󰂅"}.mdi-battery-charging-20:before{content:"󰂆"}.mdi-battery-charging-30:before{content:"󰂇"}.mdi-battery-charging-40:before{content:"󰂈"}.mdi-battery-charging-50:before{content:"󰢝"}.mdi-battery-charging-60:before{content:"󰂉"}.mdi-battery-charging-70:before{content:"󰢞"}.mdi-battery-charging-80:before{content:"󰂊"}.mdi-battery-charging-90:before{content:"󰂋"}.mdi-battery-charging-high:before{content:"󱊦"}.mdi-battery-charging-low:before{content:"󱊤"}.mdi-battery-charging-medium:before{content:"󱊥"}.mdi-battery-charging-outline:before{content:"󰢟"}.mdi-battery-charging-wireless:before{content:"󰠇"}.mdi-battery-charging-wireless-10:before{content:"󰠈"}.mdi-battery-charging-wireless-20:before{content:"󰠉"}.mdi-battery-charging-wireless-30:before{content:"󰠊"}.mdi-battery-charging-wireless-40:before{content:"󰠋"}.mdi-battery-charging-wireless-50:before{content:"󰠌"}.mdi-battery-charging-wireless-60:before{content:"󰠍"}.mdi-battery-charging-wireless-70:before{content:"󰠎"}.mdi-battery-charging-wireless-80:before{content:"󰠏"}.mdi-battery-charging-wireless-90:before{content:"󰠐"}.mdi-battery-charging-wireless-alert:before{content:"󰠑"}.mdi-battery-charging-wireless-outline:before{content:"󰠒"}.mdi-battery-check:before{content:"󱟢"}.mdi-battery-check-outline:before{content:"󱟣"}.mdi-battery-clock:before{content:"󱧥"}.mdi-battery-clock-outline:before{content:"󱧦"}.mdi-battery-heart:before{content:"󱈏"}.mdi-battery-heart-outline:before{content:"󱈐"}.mdi-battery-heart-variant:before{content:"󱈑"}.mdi-battery-high:before{content:"󱊣"}.mdi-battery-lock:before{content:"󱞜"}.mdi-battery-lock-open:before{content:"󱞝"}.mdi-battery-low:before{content:"󱊡"}.mdi-battery-medium:before{content:"󱊢"}.mdi-battery-minus:before{content:"󱟤"}.mdi-battery-minus-outline:before{content:"󱟥"}.mdi-battery-minus-variant:before{content:"󰂌"}.mdi-battery-negative:before{content:"󰂍"}.mdi-battery-off:before{content:"󱉝"}.mdi-battery-off-outline:before{content:"󱉞"}.mdi-battery-outline:before{content:"󰂎"}.mdi-battery-plus:before{content:"󱟦"}.mdi-battery-plus-outline:before{content:"󱟧"}.mdi-battery-plus-variant:before{content:"󰂏"}.mdi-battery-positive:before{content:"󰂐"}.mdi-battery-remove:before{content:"󱟨"}.mdi-battery-remove-outline:before{content:"󱟩"}.mdi-battery-sync:before{content:"󱠴"}.mdi-battery-sync-outline:before{content:"󱠵"}.mdi-battery-unknown:before{content:"󰂑"}.mdi-battery-unknown-bluetooth:before{content:"󰥊"}.mdi-beach:before{content:"󰂒"}.mdi-beaker:before{content:"󰳪"}.mdi-beaker-alert:before{content:"󱈩"}.mdi-beaker-alert-outline:before{content:"󱈪"}.mdi-beaker-check:before{content:"󱈫"}.mdi-beaker-check-outline:before{content:"󱈬"}.mdi-beaker-minus:before{content:"󱈭"}.mdi-beaker-minus-outline:before{content:"󱈮"}.mdi-beaker-outline:before{content:"󰚐"}.mdi-beaker-plus:before{content:"󱈯"}.mdi-beaker-plus-outline:before{content:"󱈰"}.mdi-beaker-question:before{content:"󱈱"}.mdi-beaker-question-outline:before{content:"󱈲"}.mdi-beaker-remove:before{content:"󱈳"}.mdi-beaker-remove-outline:before{content:"󱈴"}.mdi-bed:before{content:"󰋣"}.mdi-bed-clock:before{content:"󱮔"}.mdi-bed-double:before{content:"󰿔"}.mdi-bed-double-outline:before{content:"󰿓"}.mdi-bed-empty:before{content:"󰢠"}.mdi-bed-king:before{content:"󰿒"}.mdi-bed-king-outline:before{content:"󰿑"}.mdi-bed-outline:before{content:"󰂙"}.mdi-bed-queen:before{content:"󰿐"}.mdi-bed-queen-outline:before{content:"󰿛"}.mdi-bed-single:before{content:"󱁭"}.mdi-bed-single-outline:before{content:"󱁮"}.mdi-bee:before{content:"󰾡"}.mdi-bee-flower:before{content:"󰾢"}.mdi-beehive-off-outline:before{content:"󱏭"}.mdi-beehive-outline:before{content:"󱃎"}.mdi-beekeeper:before{content:"󱓢"}.mdi-beer:before{content:"󰂘"}.mdi-beer-outline:before{content:"󱌌"}.mdi-bell:before{content:"󰂚"}.mdi-bell-alert:before{content:"󰵙"}.mdi-bell-alert-outline:before{content:"󰺁"}.mdi-bell-badge:before{content:"󱅫"}.mdi-bell-badge-outline:before{content:"󰅸"}.mdi-bell-cancel:before{content:"󱏧"}.mdi-bell-cancel-outline:before{content:"󱏨"}.mdi-bell-check:before{content:"󱇥"}.mdi-bell-check-outline:before{content:"󱇦"}.mdi-bell-circle:before{content:"󰵚"}.mdi-bell-circle-outline:before{content:"󰵛"}.mdi-bell-cog:before{content:"󱨩"}.mdi-bell-cog-outline:before{content:"󱨪"}.mdi-bell-minus:before{content:"󱏩"}.mdi-bell-minus-outline:before{content:"󱏪"}.mdi-bell-off:before{content:"󰂛"}.mdi-bell-off-outline:before{content:"󰪑"}.mdi-bell-outline:before{content:"󰂜"}.mdi-bell-plus:before{content:"󰂝"}.mdi-bell-plus-outline:before{content:"󰪒"}.mdi-bell-remove:before{content:"󱏫"}.mdi-bell-remove-outline:before{content:"󱏬"}.mdi-bell-ring:before{content:"󰂞"}.mdi-bell-ring-outline:before{content:"󰂟"}.mdi-bell-sleep:before{content:"󰂠"}.mdi-bell-sleep-outline:before{content:"󰪓"}.mdi-bench:before{content:"󱰡"}.mdi-bench-back:before{content:"󱰢"}.mdi-beta:before{content:"󰂡"}.mdi-betamax:before{content:"󰧋"}.mdi-biathlon:before{content:"󰸔"}.mdi-bicycle:before{content:"󱂜"}.mdi-bicycle-basket:before{content:"󱈵"}.mdi-bicycle-cargo:before{content:"󱢜"}.mdi-bicycle-electric:before{content:"󱖴"}.mdi-bicycle-penny-farthing:before{content:"󱗩"}.mdi-bike:before{content:"󰂣"}.mdi-bike-fast:before{content:"󱄟"}.mdi-bike-pedal:before{content:"󱰣"}.mdi-bike-pedal-clipless:before{content:"󱰤"}.mdi-bike-pedal-mountain:before{content:"󱰥"}.mdi-billboard:before{content:"󱀐"}.mdi-billiards:before{content:"󰭡"}.mdi-billiards-rack:before{content:"󰭢"}.mdi-binoculars:before{content:"󰂥"}.mdi-bio:before{content:"󰂦"}.mdi-biohazard:before{content:"󰂧"}.mdi-bird:before{content:"󱗆"}.mdi-bitbucket:before{content:"󰂨"}.mdi-bitcoin:before{content:"󰠓"}.mdi-black-mesa:before{content:"󰂩"}.mdi-blender:before{content:"󰳫"}.mdi-blender-outline:before{content:"󱠚"}.mdi-blender-software:before{content:"󰂫"}.mdi-blinds:before{content:"󰂬"}.mdi-blinds-horizontal:before{content:"󱨫"}.mdi-blinds-horizontal-closed:before{content:"󱨬"}.mdi-blinds-open:before{content:"󱀑"}.mdi-blinds-vertical:before{content:"󱨭"}.mdi-blinds-vertical-closed:before{content:"󱨮"}.mdi-block-helper:before{content:"󰂭"}.mdi-blood-bag:before{content:"󰳬"}.mdi-bluetooth:before{content:"󰂯"}.mdi-bluetooth-audio:before{content:"󰂰"}.mdi-bluetooth-connect:before{content:"󰂱"}.mdi-bluetooth-off:before{content:"󰂲"}.mdi-bluetooth-settings:before{content:"󰂳"}.mdi-bluetooth-transfer:before{content:"󰂴"}.mdi-blur:before{content:"󰂵"}.mdi-blur-linear:before{content:"󰂶"}.mdi-blur-off:before{content:"󰂷"}.mdi-blur-radial:before{content:"󰂸"}.mdi-bolt:before{content:"󰶳"}.mdi-bomb:before{content:"󰚑"}.mdi-bomb-off:before{content:"󰛅"}.mdi-bone:before{content:"󰂹"}.mdi-bone-off:before{content:"󱧠"}.mdi-book:before{content:"󰂺"}.mdi-book-account:before{content:"󱎭"}.mdi-book-account-outline:before{content:"󱎮"}.mdi-book-alert:before{content:"󱙼"}.mdi-book-alert-outline:before{content:"󱙽"}.mdi-book-alphabet:before{content:"󰘝"}.mdi-book-arrow-down:before{content:"󱙾"}.mdi-book-arrow-down-outline:before{content:"󱙿"}.mdi-book-arrow-left:before{content:"󱚀"}.mdi-book-arrow-left-outline:before{content:"󱚁"}.mdi-book-arrow-right:before{content:"󱚂"}.mdi-book-arrow-right-outline:before{content:"󱚃"}.mdi-book-arrow-up:before{content:"󱚄"}.mdi-book-arrow-up-outline:before{content:"󱚅"}.mdi-book-cancel:before{content:"󱚆"}.mdi-book-cancel-outline:before{content:"󱚇"}.mdi-book-check:before{content:"󱓳"}.mdi-book-check-outline:before{content:"󱓴"}.mdi-book-clock:before{content:"󱚈"}.mdi-book-clock-outline:before{content:"󱚉"}.mdi-book-cog:before{content:"󱚊"}.mdi-book-cog-outline:before{content:"󱚋"}.mdi-book-cross:before{content:"󰂢"}.mdi-book-edit:before{content:"󱚌"}.mdi-book-edit-outline:before{content:"󱚍"}.mdi-book-education:before{content:"󱛉"}.mdi-book-education-outline:before{content:"󱛊"}.mdi-book-heart:before{content:"󱨝"}.mdi-book-heart-outline:before{content:"󱨞"}.mdi-book-information-variant:before{content:"󱁯"}.mdi-book-lock:before{content:"󰞚"}.mdi-book-lock-open:before{content:"󰞛"}.mdi-book-lock-open-outline:before{content:"󱚎"}.mdi-book-lock-outline:before{content:"󱚏"}.mdi-book-marker:before{content:"󱚐"}.mdi-book-marker-outline:before{content:"󱚑"}.mdi-book-minus:before{content:"󰗙"}.mdi-book-minus-multiple:before{content:"󰪔"}.mdi-book-minus-multiple-outline:before{content:"󰤋"}.mdi-book-minus-outline:before{content:"󱚒"}.mdi-book-multiple:before{content:"󰂻"}.mdi-book-multiple-outline:before{content:"󰐶"}.mdi-book-music:before{content:"󰁧"}.mdi-book-music-outline:before{content:"󱚓"}.mdi-book-off:before{content:"󱚔"}.mdi-book-off-outline:before{content:"󱚕"}.mdi-book-open:before{content:"󰂽"}.mdi-book-open-blank-variant:before{content:"󰂾"}.mdi-book-open-outline:before{content:"󰭣"}.mdi-book-open-page-variant:before{content:"󰗚"}.mdi-book-open-page-variant-outline:before{content:"󱗖"}.mdi-book-open-variant:before{content:"󱓷"}.mdi-book-outline:before{content:"󰭤"}.mdi-book-play:before{content:"󰺂"}.mdi-book-play-outline:before{content:"󰺃"}.mdi-book-plus:before{content:"󰗛"}.mdi-book-plus-multiple:before{content:"󰪕"}.mdi-book-plus-multiple-outline:before{content:"󰫞"}.mdi-book-plus-outline:before{content:"󱚖"}.mdi-book-refresh:before{content:"󱚗"}.mdi-book-refresh-outline:before{content:"󱚘"}.mdi-book-remove:before{content:"󰪗"}.mdi-book-remove-multiple:before{content:"󰪖"}.mdi-book-remove-multiple-outline:before{content:"󰓊"}.mdi-book-remove-outline:before{content:"󱚙"}.mdi-book-search:before{content:"󰺄"}.mdi-book-search-outline:before{content:"󰺅"}.mdi-book-settings:before{content:"󱚚"}.mdi-book-settings-outline:before{content:"󱚛"}.mdi-book-sync:before{content:"󱚜"}.mdi-book-sync-outline:before{content:"󱛈"}.mdi-book-variant:before{content:"󰂿"}.mdi-bookmark:before{content:"󰃀"}.mdi-bookmark-box:before{content:"󱭵"}.mdi-bookmark-box-multiple:before{content:"󱥬"}.mdi-bookmark-box-multiple-outline:before{content:"󱥭"}.mdi-bookmark-box-outline:before{content:"󱭶"}.mdi-bookmark-check:before{content:"󰃁"}.mdi-bookmark-check-outline:before{content:"󱍻"}.mdi-bookmark-minus:before{content:"󰧌"}.mdi-bookmark-minus-outline:before{content:"󰧍"}.mdi-bookmark-multiple:before{content:"󰸕"}.mdi-bookmark-multiple-outline:before{content:"󰸖"}.mdi-bookmark-music:before{content:"󰃂"}.mdi-bookmark-music-outline:before{content:"󱍹"}.mdi-bookmark-off:before{content:"󰧎"}.mdi-bookmark-off-outline:before{content:"󰧏"}.mdi-bookmark-outline:before{content:"󰃃"}.mdi-bookmark-plus:before{content:"󰃅"}.mdi-bookmark-plus-outline:before{content:"󰃄"}.mdi-bookmark-remove:before{content:"󰃆"}.mdi-bookmark-remove-outline:before{content:"󱍺"}.mdi-bookshelf:before{content:"󱉟"}.mdi-boom-gate:before{content:"󰺆"}.mdi-boom-gate-alert:before{content:"󰺇"}.mdi-boom-gate-alert-outline:before{content:"󰺈"}.mdi-boom-gate-arrow-down:before{content:"󰺉"}.mdi-boom-gate-arrow-down-outline:before{content:"󰺊"}.mdi-boom-gate-arrow-up:before{content:"󰺌"}.mdi-boom-gate-arrow-up-outline:before{content:"󰺍"}.mdi-boom-gate-outline:before{content:"󰺋"}.mdi-boom-gate-up:before{content:"󱟹"}.mdi-boom-gate-up-outline:before{content:"󱟺"}.mdi-boombox:before{content:"󰗜"}.mdi-boomerang:before{content:"󱃏"}.mdi-bootstrap:before{content:"󰛆"}.mdi-border-all:before{content:"󰃇"}.mdi-border-all-variant:before{content:"󰢡"}.mdi-border-bottom:before{content:"󰃈"}.mdi-border-bottom-variant:before{content:"󰢢"}.mdi-border-color:before{content:"󰃉"}.mdi-border-horizontal:before{content:"󰃊"}.mdi-border-inside:before{content:"󰃋"}.mdi-border-left:before{content:"󰃌"}.mdi-border-left-variant:before{content:"󰢣"}.mdi-border-none:before{content:"󰃍"}.mdi-border-none-variant:before{content:"󰢤"}.mdi-border-outside:before{content:"󰃎"}.mdi-border-radius:before{content:"󱫴"}.mdi-border-right:before{content:"󰃏"}.mdi-border-right-variant:before{content:"󰢥"}.mdi-border-style:before{content:"󰃐"}.mdi-border-top:before{content:"󰃑"}.mdi-border-top-variant:before{content:"󰢦"}.mdi-border-vertical:before{content:"󰃒"}.mdi-bottle-soda:before{content:"󱁰"}.mdi-bottle-soda-classic:before{content:"󱁱"}.mdi-bottle-soda-classic-outline:before{content:"󱍣"}.mdi-bottle-soda-outline:before{content:"󱁲"}.mdi-bottle-tonic:before{content:"󱄮"}.mdi-bottle-tonic-outline:before{content:"󱄯"}.mdi-bottle-tonic-plus:before{content:"󱄰"}.mdi-bottle-tonic-plus-outline:before{content:"󱄱"}.mdi-bottle-tonic-skull:before{content:"󱄲"}.mdi-bottle-tonic-skull-outline:before{content:"󱄳"}.mdi-bottle-wine:before{content:"󰡔"}.mdi-bottle-wine-outline:before{content:"󱌐"}.mdi-bow-arrow:before{content:"󱡁"}.mdi-bow-tie:before{content:"󰙸"}.mdi-bowl:before{content:"󰊎"}.mdi-bowl-mix:before{content:"󰘗"}.mdi-bowl-mix-outline:before{content:"󰋤"}.mdi-bowl-outline:before{content:"󰊩"}.mdi-bowling:before{content:"󰃓"}.mdi-box:before{content:"󰃔"}.mdi-box-cutter:before{content:"󰃕"}.mdi-box-cutter-off:before{content:"󰭊"}.mdi-box-shadow:before{content:"󰘷"}.mdi-boxing-glove:before{content:"󰭥"}.mdi-braille:before{content:"󰧐"}.mdi-brain:before{content:"󰧑"}.mdi-bread-slice:before{content:"󰳮"}.mdi-bread-slice-outline:before{content:"󰳯"}.mdi-bridge:before{content:"󰘘"}.mdi-briefcase:before{content:"󰃖"}.mdi-briefcase-account:before{content:"󰳰"}.mdi-briefcase-account-outline:before{content:"󰳱"}.mdi-briefcase-arrow-left-right:before{content:"󱪍"}.mdi-briefcase-arrow-left-right-outline:before{content:"󱪎"}.mdi-briefcase-arrow-up-down:before{content:"󱪏"}.mdi-briefcase-arrow-up-down-outline:before{content:"󱪐"}.mdi-briefcase-check:before{content:"󰃗"}.mdi-briefcase-check-outline:before{content:"󱌞"}.mdi-briefcase-clock:before{content:"󱃐"}.mdi-briefcase-clock-outline:before{content:"󱃑"}.mdi-briefcase-download:before{content:"󰃘"}.mdi-briefcase-download-outline:before{content:"󰰽"}.mdi-briefcase-edit:before{content:"󰪘"}.mdi-briefcase-edit-outline:before{content:"󰰾"}.mdi-briefcase-eye:before{content:"󱟙"}.mdi-briefcase-eye-outline:before{content:"󱟚"}.mdi-briefcase-minus:before{content:"󰨪"}.mdi-briefcase-minus-outline:before{content:"󰰿"}.mdi-briefcase-off:before{content:"󱙘"}.mdi-briefcase-off-outline:before{content:"󱙙"}.mdi-briefcase-outline:before{content:"󰠔"}.mdi-briefcase-plus:before{content:"󰨫"}.mdi-briefcase-plus-outline:before{content:"󰱀"}.mdi-briefcase-remove:before{content:"󰨬"}.mdi-briefcase-remove-outline:before{content:"󰱁"}.mdi-briefcase-search:before{content:"󰨭"}.mdi-briefcase-search-outline:before{content:"󰱂"}.mdi-briefcase-upload:before{content:"󰃙"}.mdi-briefcase-upload-outline:before{content:"󰱃"}.mdi-briefcase-variant:before{content:"󱒔"}.mdi-briefcase-variant-off:before{content:"󱙚"}.mdi-briefcase-variant-off-outline:before{content:"󱙛"}.mdi-briefcase-variant-outline:before{content:"󱒕"}.mdi-brightness-1:before{content:"󰃚"}.mdi-brightness-2:before{content:"󰃛"}.mdi-brightness-3:before{content:"󰃜"}.mdi-brightness-4:before{content:"󰃝"}.mdi-brightness-5:before{content:"󰃞"}.mdi-brightness-6:before{content:"󰃟"}.mdi-brightness-7:before{content:"󰃠"}.mdi-brightness-auto:before{content:"󰃡"}.mdi-brightness-percent:before{content:"󰳲"}.mdi-broadcast:before{content:"󱜠"}.mdi-broadcast-off:before{content:"󱜡"}.mdi-broom:before{content:"󰃢"}.mdi-brush:before{content:"󰃣"}.mdi-brush-off:before{content:"󱝱"}.mdi-brush-outline:before{content:"󱨍"}.mdi-brush-variant:before{content:"󱠓"}.mdi-bucket:before{content:"󱐕"}.mdi-bucket-outline:before{content:"󱐖"}.mdi-buffet:before{content:"󰕸"}.mdi-bug:before{content:"󰃤"}.mdi-bug-check:before{content:"󰨮"}.mdi-bug-check-outline:before{content:"󰨯"}.mdi-bug-outline:before{content:"󰨰"}.mdi-bug-pause:before{content:"󱫵"}.mdi-bug-pause-outline:before{content:"󱫶"}.mdi-bug-play:before{content:"󱫷"}.mdi-bug-play-outline:before{content:"󱫸"}.mdi-bug-stop:before{content:"󱫹"}.mdi-bug-stop-outline:before{content:"󱫺"}.mdi-bugle:before{content:"󰶴"}.mdi-bulkhead-light:before{content:"󱨯"}.mdi-bulldozer:before{content:"󰬢"}.mdi-bullet:before{content:"󰳳"}.mdi-bulletin-board:before{content:"󰃥"}.mdi-bullhorn:before{content:"󰃦"}.mdi-bullhorn-outline:before{content:"󰬣"}.mdi-bullhorn-variant:before{content:"󱥮"}.mdi-bullhorn-variant-outline:before{content:"󱥯"}.mdi-bullseye:before{content:"󰗝"}.mdi-bullseye-arrow:before{content:"󰣉"}.mdi-bulma:before{content:"󱋧"}.mdi-bunk-bed:before{content:"󱌂"}.mdi-bunk-bed-outline:before{content:"󰂗"}.mdi-bus:before{content:"󰃧"}.mdi-bus-alert:before{content:"󰪙"}.mdi-bus-articulated-end:before{content:"󰞜"}.mdi-bus-articulated-front:before{content:"󰞝"}.mdi-bus-clock:before{content:"󰣊"}.mdi-bus-double-decker:before{content:"󰞞"}.mdi-bus-electric:before{content:"󱤝"}.mdi-bus-marker:before{content:"󱈒"}.mdi-bus-multiple:before{content:"󰼿"}.mdi-bus-school:before{content:"󰞟"}.mdi-bus-side:before{content:"󰞠"}.mdi-bus-sign:before{content:"󱳁"}.mdi-bus-stop:before{content:"󱀒"}.mdi-bus-stop-covered:before{content:"󱀓"}.mdi-bus-stop-uncovered:before{content:"󱀔"}.mdi-bus-wrench:before{content:"󱳂"}.mdi-butterfly:before{content:"󱖉"}.mdi-butterfly-outline:before{content:"󱖊"}.mdi-button-cursor:before{content:"󱭏"}.mdi-button-pointer:before{content:"󱭐"}.mdi-cabin-a-frame:before{content:"󱢌"}.mdi-cable-data:before{content:"󱎔"}.mdi-cached:before{content:"󰃨"}.mdi-cactus:before{content:"󰶵"}.mdi-cake:before{content:"󰃩"}.mdi-cake-layered:before{content:"󰃪"}.mdi-cake-variant:before{content:"󰃫"}.mdi-cake-variant-outline:before{content:"󱟰"}.mdi-calculator:before{content:"󰃬"}.mdi-calculator-variant:before{content:"󰪚"}.mdi-calculator-variant-outline:before{content:"󱖦"}.mdi-calendar:before{content:"󰃭"}.mdi-calendar-account:before{content:"󰻗"}.mdi-calendar-account-outline:before{content:"󰻘"}.mdi-calendar-alert:before{content:"󰨱"}.mdi-calendar-alert-outline:before{content:"󱭢"}.mdi-calendar-arrow-left:before{content:"󱄴"}.mdi-calendar-arrow-right:before{content:"󱄵"}.mdi-calendar-badge:before{content:"󱮝"}.mdi-calendar-badge-outline:before{content:"󱮞"}.mdi-calendar-blank:before{content:"󰃮"}.mdi-calendar-blank-multiple:before{content:"󱁳"}.mdi-calendar-blank-outline:before{content:"󰭦"}.mdi-calendar-check:before{content:"󰃯"}.mdi-calendar-check-outline:before{content:"󰱄"}.mdi-calendar-clock:before{content:"󰃰"}.mdi-calendar-clock-outline:before{content:"󱛡"}.mdi-calendar-collapse-horizontal:before{content:"󱢝"}.mdi-calendar-collapse-horizontal-outline:before{content:"󱭣"}.mdi-calendar-cursor:before{content:"󱕻"}.mdi-calendar-cursor-outline:before{content:"󱭤"}.mdi-calendar-edit:before{content:"󰢧"}.mdi-calendar-edit-outline:before{content:"󱭥"}.mdi-calendar-end:before{content:"󱙬"}.mdi-calendar-end-outline:before{content:"󱭦"}.mdi-calendar-expand-horizontal:before{content:"󱢞"}.mdi-calendar-expand-horizontal-outline:before{content:"󱭧"}.mdi-calendar-export:before{content:"󰬤"}.mdi-calendar-export-outline:before{content:"󱭨"}.mdi-calendar-filter:before{content:"󱨲"}.mdi-calendar-filter-outline:before{content:"󱨳"}.mdi-calendar-heart:before{content:"󰧒"}.mdi-calendar-heart-outline:before{content:"󱭩"}.mdi-calendar-import:before{content:"󰬥"}.mdi-calendar-import-outline:before{content:"󱭪"}.mdi-calendar-lock:before{content:"󱙁"}.mdi-calendar-lock-open:before{content:"󱭛"}.mdi-calendar-lock-open-outline:before{content:"󱭜"}.mdi-calendar-lock-outline:before{content:"󱙂"}.mdi-calendar-minus:before{content:"󰵜"}.mdi-calendar-minus-outline:before{content:"󱭫"}.mdi-calendar-month:before{content:"󰸗"}.mdi-calendar-month-outline:before{content:"󰸘"}.mdi-calendar-multiple:before{content:"󰃱"}.mdi-calendar-multiple-check:before{content:"󰃲"}.mdi-calendar-multiselect:before{content:"󰨲"}.mdi-calendar-multiselect-outline:before{content:"󱭕"}.mdi-calendar-outline:before{content:"󰭧"}.mdi-calendar-plus:before{content:"󰃳"}.mdi-calendar-plus-outline:before{content:"󱭬"}.mdi-calendar-question:before{content:"󰚒"}.mdi-calendar-question-outline:before{content:"󱭭"}.mdi-calendar-range:before{content:"󰙹"}.mdi-calendar-range-outline:before{content:"󰭨"}.mdi-calendar-refresh:before{content:"󰇡"}.mdi-calendar-refresh-outline:before{content:"󰈃"}.mdi-calendar-remove:before{content:"󰃴"}.mdi-calendar-remove-outline:before{content:"󰱅"}.mdi-calendar-search:before{content:"󰥌"}.mdi-calendar-search-outline:before{content:"󱭮"}.mdi-calendar-star:before{content:"󰧓"}.mdi-calendar-star-four-points:before{content:"󱰟"}.mdi-calendar-star-outline:before{content:"󱭓"}.mdi-calendar-start:before{content:"󱙭"}.mdi-calendar-start-outline:before{content:"󱭯"}.mdi-calendar-sync:before{content:"󰺎"}.mdi-calendar-sync-outline:before{content:"󰺏"}.mdi-calendar-text:before{content:"󰃵"}.mdi-calendar-text-outline:before{content:"󰱆"}.mdi-calendar-today:before{content:"󰃶"}.mdi-calendar-today-outline:before{content:"󱨰"}.mdi-calendar-week:before{content:"󰨳"}.mdi-calendar-week-begin:before{content:"󰨴"}.mdi-calendar-week-begin-outline:before{content:"󱨱"}.mdi-calendar-week-outline:before{content:"󱨴"}.mdi-calendar-weekend:before{content:"󰻙"}.mdi-calendar-weekend-outline:before{content:"󰻚"}.mdi-call-made:before{content:"󰃷"}.mdi-call-merge:before{content:"󰃸"}.mdi-call-missed:before{content:"󰃹"}.mdi-call-received:before{content:"󰃺"}.mdi-call-split:before{content:"󰃻"}.mdi-camcorder:before{content:"󰃼"}.mdi-camcorder-off:before{content:"󰃿"}.mdi-camera:before{content:"󰄀"}.mdi-camera-account:before{content:"󰣋"}.mdi-camera-burst:before{content:"󰚓"}.mdi-camera-control:before{content:"󰭩"}.mdi-camera-document:before{content:"󱡱"}.mdi-camera-document-off:before{content:"󱡲"}.mdi-camera-enhance:before{content:"󰄁"}.mdi-camera-enhance-outline:before{content:"󰭪"}.mdi-camera-flip:before{content:"󱗙"}.mdi-camera-flip-outline:before{content:"󱗚"}.mdi-camera-front:before{content:"󰄂"}.mdi-camera-front-variant:before{content:"󰄃"}.mdi-camera-gopro:before{content:"󰞡"}.mdi-camera-image:before{content:"󰣌"}.mdi-camera-iris:before{content:"󰄄"}.mdi-camera-lock:before{content:"󱨔"}.mdi-camera-lock-open:before{content:"󱰍"}.mdi-camera-lock-open-outline:before{content:"󱰎"}.mdi-camera-lock-outline:before{content:"󱨕"}.mdi-camera-marker:before{content:"󱦧"}.mdi-camera-marker-outline:before{content:"󱦨"}.mdi-camera-metering-center:before{content:"󰞢"}.mdi-camera-metering-matrix:before{content:"󰞣"}.mdi-camera-metering-partial:before{content:"󰞤"}.mdi-camera-metering-spot:before{content:"󰞥"}.mdi-camera-off:before{content:"󰗟"}.mdi-camera-off-outline:before{content:"󱦿"}.mdi-camera-outline:before{content:"󰵝"}.mdi-camera-party-mode:before{content:"󰄅"}.mdi-camera-plus:before{content:"󰻛"}.mdi-camera-plus-outline:before{content:"󰻜"}.mdi-camera-rear:before{content:"󰄆"}.mdi-camera-rear-variant:before{content:"󰄇"}.mdi-camera-retake:before{content:"󰸙"}.mdi-camera-retake-outline:before{content:"󰸚"}.mdi-camera-switch:before{content:"󰄈"}.mdi-camera-switch-outline:before{content:"󰡊"}.mdi-camera-timer:before{content:"󰄉"}.mdi-camera-wireless:before{content:"󰶶"}.mdi-camera-wireless-outline:before{content:"󰶷"}.mdi-campfire:before{content:"󰻝"}.mdi-cancel:before{content:"󰜺"}.mdi-candelabra:before{content:"󱟒"}.mdi-candelabra-fire:before{content:"󱟓"}.mdi-candle:before{content:"󰗢"}.mdi-candy:before{content:"󱥰"}.mdi-candy-off:before{content:"󱥱"}.mdi-candy-off-outline:before{content:"󱥲"}.mdi-candy-outline:before{content:"󱥳"}.mdi-candycane:before{content:"󰄊"}.mdi-cannabis:before{content:"󰞦"}.mdi-cannabis-off:before{content:"󱙮"}.mdi-caps-lock:before{content:"󰪛"}.mdi-car:before{content:"󰄋"}.mdi-car-2-plus:before{content:"󱀕"}.mdi-car-3-plus:before{content:"󱀖"}.mdi-car-arrow-left:before{content:"󱎲"}.mdi-car-arrow-right:before{content:"󱎳"}.mdi-car-back:before{content:"󰸛"}.mdi-car-battery:before{content:"󰄌"}.mdi-car-brake-abs:before{content:"󰱇"}.mdi-car-brake-alert:before{content:"󰱈"}.mdi-car-brake-fluid-level:before{content:"󱤉"}.mdi-car-brake-hold:before{content:"󰵞"}.mdi-car-brake-low-pressure:before{content:"󱤊"}.mdi-car-brake-parking:before{content:"󰵟"}.mdi-car-brake-retarder:before{content:"󱀗"}.mdi-car-brake-temperature:before{content:"󱤋"}.mdi-car-brake-worn-linings:before{content:"󱤌"}.mdi-car-child-seat:before{content:"󰾣"}.mdi-car-clock:before{content:"󱥴"}.mdi-car-clutch:before{content:"󱀘"}.mdi-car-cog:before{content:"󱏌"}.mdi-car-connected:before{content:"󰄍"}.mdi-car-convertible:before{content:"󰞧"}.mdi-car-coolant-level:before{content:"󱀙"}.mdi-car-cruise-control:before{content:"󰵠"}.mdi-car-defrost-front:before{content:"󰵡"}.mdi-car-defrost-rear:before{content:"󰵢"}.mdi-car-door:before{content:"󰭫"}.mdi-car-door-lock:before{content:"󱂝"}.mdi-car-door-lock-open:before{content:"󱲁"}.mdi-car-electric:before{content:"󰭬"}.mdi-car-electric-outline:before{content:"󱖵"}.mdi-car-emergency:before{content:"󱘏"}.mdi-car-esp:before{content:"󰱉"}.mdi-car-estate:before{content:"󰞨"}.mdi-car-hatchback:before{content:"󰞩"}.mdi-car-info:before{content:"󱆾"}.mdi-car-key:before{content:"󰭭"}.mdi-car-lifted-pickup:before{content:"󱔭"}.mdi-car-light-alert:before{content:"󱤍"}.mdi-car-light-dimmed:before{content:"󰱊"}.mdi-car-light-fog:before{content:"󰱋"}.mdi-car-light-high:before{content:"󰱌"}.mdi-car-limousine:before{content:"󰣍"}.mdi-car-multiple:before{content:"󰭮"}.mdi-car-off:before{content:"󰸜"}.mdi-car-outline:before{content:"󱓭"}.mdi-car-parking-lights:before{content:"󰵣"}.mdi-car-pickup:before{content:"󰞪"}.mdi-car-search:before{content:"󱮍"}.mdi-car-search-outline:before{content:"󱮎"}.mdi-car-seat:before{content:"󰾤"}.mdi-car-seat-cooler:before{content:"󰾥"}.mdi-car-seat-heater:before{content:"󰾦"}.mdi-car-select:before{content:"󱡹"}.mdi-car-settings:before{content:"󱏍"}.mdi-car-shift-pattern:before{content:"󰽀"}.mdi-car-side:before{content:"󰞫"}.mdi-car-speed-limiter:before{content:"󱤎"}.mdi-car-sports:before{content:"󰞬"}.mdi-car-tire-alert:before{content:"󰱍"}.mdi-car-traction-control:before{content:"󰵤"}.mdi-car-turbocharger:before{content:"󱀚"}.mdi-car-wash:before{content:"󰄎"}.mdi-car-windshield:before{content:"󱀛"}.mdi-car-windshield-outline:before{content:"󱀜"}.mdi-car-wireless:before{content:"󱡸"}.mdi-car-wrench:before{content:"󱠔"}.mdi-carabiner:before{content:"󱓀"}.mdi-caravan:before{content:"󰞭"}.mdi-card:before{content:"󰭯"}.mdi-card-account-details:before{content:"󰗒"}.mdi-card-account-details-outline:before{content:"󰶫"}.mdi-card-account-details-star:before{content:"󰊣"}.mdi-card-account-details-star-outline:before{content:"󰛛"}.mdi-card-account-mail:before{content:"󰆎"}.mdi-card-account-mail-outline:before{content:"󰺘"}.mdi-card-account-phone:before{content:"󰺙"}.mdi-card-account-phone-outline:before{content:"󰺚"}.mdi-card-bulleted:before{content:"󰭰"}.mdi-card-bulleted-off:before{content:"󰭱"}.mdi-card-bulleted-off-outline:before{content:"󰭲"}.mdi-card-bulleted-outline:before{content:"󰭳"}.mdi-card-bulleted-settings:before{content:"󰭴"}.mdi-card-bulleted-settings-outline:before{content:"󰭵"}.mdi-card-minus:before{content:"󱘀"}.mdi-card-minus-outline:before{content:"󱘁"}.mdi-card-multiple:before{content:"󱟱"}.mdi-card-multiple-outline:before{content:"󱟲"}.mdi-card-off:before{content:"󱘂"}.mdi-card-off-outline:before{content:"󱘃"}.mdi-card-outline:before{content:"󰭶"}.mdi-card-plus:before{content:"󱇿"}.mdi-card-plus-outline:before{content:"󱈀"}.mdi-card-remove:before{content:"󱘄"}.mdi-card-remove-outline:before{content:"󱘅"}.mdi-card-search:before{content:"󱁴"}.mdi-card-search-outline:before{content:"󱁵"}.mdi-card-text:before{content:"󰭷"}.mdi-card-text-outline:before{content:"󰭸"}.mdi-cards:before{content:"󰘸"}.mdi-cards-club:before{content:"󰣎"}.mdi-cards-club-outline:before{content:"󱢟"}.mdi-cards-diamond:before{content:"󰣏"}.mdi-cards-diamond-outline:before{content:"󱀝"}.mdi-cards-heart:before{content:"󰣐"}.mdi-cards-heart-outline:before{content:"󱢠"}.mdi-cards-outline:before{content:"󰘹"}.mdi-cards-playing:before{content:"󱢡"}.mdi-cards-playing-club:before{content:"󱢢"}.mdi-cards-playing-club-multiple:before{content:"󱢣"}.mdi-cards-playing-club-multiple-outline:before{content:"󱢤"}.mdi-cards-playing-club-outline:before{content:"󱢥"}.mdi-cards-playing-diamond:before{content:"󱢦"}.mdi-cards-playing-diamond-multiple:before{content:"󱢧"}.mdi-cards-playing-diamond-multiple-outline:before{content:"󱢨"}.mdi-cards-playing-diamond-outline:before{content:"󱢩"}.mdi-cards-playing-heart:before{content:"󱢪"}.mdi-cards-playing-heart-multiple:before{content:"󱢫"}.mdi-cards-playing-heart-multiple-outline:before{content:"󱢬"}.mdi-cards-playing-heart-outline:before{content:"󱢭"}.mdi-cards-playing-outline:before{content:"󰘺"}.mdi-cards-playing-spade:before{content:"󱢮"}.mdi-cards-playing-spade-multiple:before{content:"󱢯"}.mdi-cards-playing-spade-multiple-outline:before{content:"󱢰"}.mdi-cards-playing-spade-outline:before{content:"󱢱"}.mdi-cards-spade:before{content:"󰣑"}.mdi-cards-spade-outline:before{content:"󱢲"}.mdi-cards-variant:before{content:"󰛇"}.mdi-carrot:before{content:"󰄏"}.mdi-cart:before{content:"󰄐"}.mdi-cart-arrow-down:before{content:"󰵦"}.mdi-cart-arrow-right:before{content:"󰱎"}.mdi-cart-arrow-up:before{content:"󰵧"}.mdi-cart-check:before{content:"󱗪"}.mdi-cart-heart:before{content:"󱣠"}.mdi-cart-minus:before{content:"󰵨"}.mdi-cart-off:before{content:"󰙫"}.mdi-cart-outline:before{content:"󰄑"}.mdi-cart-percent:before{content:"󱮮"}.mdi-cart-plus:before{content:"󰄒"}.mdi-cart-remove:before{content:"󰵩"}.mdi-cart-variant:before{content:"󱗫"}.mdi-case-sensitive-alt:before{content:"󰄓"}.mdi-cash:before{content:"󰄔"}.mdi-cash-100:before{content:"󰄕"}.mdi-cash-check:before{content:"󱓮"}.mdi-cash-clock:before{content:"󱪑"}.mdi-cash-edit:before{content:"󱲫"}.mdi-cash-fast:before{content:"󱡜"}.mdi-cash-lock:before{content:"󱓪"}.mdi-cash-lock-open:before{content:"󱓫"}.mdi-cash-marker:before{content:"󰶸"}.mdi-cash-minus:before{content:"󱉠"}.mdi-cash-multiple:before{content:"󰄖"}.mdi-cash-off:before{content:"󱱹"}.mdi-cash-plus:before{content:"󱉡"}.mdi-cash-refund:before{content:"󰪜"}.mdi-cash-register:before{content:"󰳴"}.mdi-cash-remove:before{content:"󱉢"}.mdi-cash-sync:before{content:"󱪒"}.mdi-cassette:before{content:"󰧔"}.mdi-cast:before{content:"󰄘"}.mdi-cast-audio:before{content:"󱀞"}.mdi-cast-audio-variant:before{content:"󱝉"}.mdi-cast-connected:before{content:"󰄙"}.mdi-cast-education:before{content:"󰸝"}.mdi-cast-off:before{content:"󰞊"}.mdi-cast-variant:before{content:"󰀟"}.mdi-castle:before{content:"󰄚"}.mdi-cat:before{content:"󰄛"}.mdi-cctv:before{content:"󰞮"}.mdi-cctv-off:before{content:"󱡟"}.mdi-ceiling-fan:before{content:"󱞗"}.mdi-ceiling-fan-light:before{content:"󱞘"}.mdi-ceiling-light:before{content:"󰝩"}.mdi-ceiling-light-multiple:before{content:"󱣝"}.mdi-ceiling-light-multiple-outline:before{content:"󱣞"}.mdi-ceiling-light-outline:before{content:"󱟇"}.mdi-cellphone:before{content:"󰄜"}.mdi-cellphone-arrow-down:before{content:"󰧕"}.mdi-cellphone-arrow-down-variant:before{content:"󱧅"}.mdi-cellphone-basic:before{content:"󰄞"}.mdi-cellphone-charging:before{content:"󱎗"}.mdi-cellphone-check:before{content:"󱟽"}.mdi-cellphone-cog:before{content:"󰥑"}.mdi-cellphone-dock:before{content:"󰄟"}.mdi-cellphone-information:before{content:"󰽁"}.mdi-cellphone-key:before{content:"󰥎"}.mdi-cellphone-link:before{content:"󰄡"}.mdi-cellphone-link-off:before{content:"󰄢"}.mdi-cellphone-lock:before{content:"󰥏"}.mdi-cellphone-marker:before{content:"󱠺"}.mdi-cellphone-message:before{content:"󰣓"}.mdi-cellphone-message-off:before{content:"󱃒"}.mdi-cellphone-nfc:before{content:"󰺐"}.mdi-cellphone-nfc-off:before{content:"󱋘"}.mdi-cellphone-off:before{content:"󰥐"}.mdi-cellphone-play:before{content:"󱀟"}.mdi-cellphone-remove:before{content:"󰥍"}.mdi-cellphone-screenshot:before{content:"󰨵"}.mdi-cellphone-settings:before{content:"󰄣"}.mdi-cellphone-sound:before{content:"󰥒"}.mdi-cellphone-text:before{content:"󰣒"}.mdi-cellphone-wireless:before{content:"󰠕"}.mdi-centos:before{content:"󱄚"}.mdi-certificate:before{content:"󰄤"}.mdi-certificate-outline:before{content:"󱆈"}.mdi-chair-rolling:before{content:"󰽈"}.mdi-chair-school:before{content:"󰄥"}.mdi-chandelier:before{content:"󱞓"}.mdi-charity:before{content:"󰱏"}.mdi-charity-search:before{content:"󱲂"}.mdi-chart-arc:before{content:"󰄦"}.mdi-chart-areaspline:before{content:"󰄧"}.mdi-chart-areaspline-variant:before{content:"󰺑"}.mdi-chart-bar:before{content:"󰄨"}.mdi-chart-bar-stacked:before{content:"󰝪"}.mdi-chart-bell-curve:before{content:"󰱐"}.mdi-chart-bell-curve-cumulative:before{content:"󰾧"}.mdi-chart-box:before{content:"󱕍"}.mdi-chart-box-outline:before{content:"󱕎"}.mdi-chart-box-plus-outline:before{content:"󱕏"}.mdi-chart-bubble:before{content:"󰗣"}.mdi-chart-donut:before{content:"󰞯"}.mdi-chart-donut-variant:before{content:"󰞰"}.mdi-chart-gantt:before{content:"󰙬"}.mdi-chart-histogram:before{content:"󰄩"}.mdi-chart-line:before{content:"󰄪"}.mdi-chart-line-stacked:before{content:"󰝫"}.mdi-chart-line-variant:before{content:"󰞱"}.mdi-chart-multiline:before{content:"󰣔"}.mdi-chart-multiple:before{content:"󱈓"}.mdi-chart-pie:before{content:"󰄫"}.mdi-chart-pie-outline:before{content:"󱯟"}.mdi-chart-ppf:before{content:"󱎀"}.mdi-chart-sankey:before{content:"󱇟"}.mdi-chart-sankey-variant:before{content:"󱇠"}.mdi-chart-scatter-plot:before{content:"󰺒"}.mdi-chart-scatter-plot-hexbin:before{content:"󰙭"}.mdi-chart-timeline:before{content:"󰙮"}.mdi-chart-timeline-variant:before{content:"󰺓"}.mdi-chart-timeline-variant-shimmer:before{content:"󱖶"}.mdi-chart-tree:before{content:"󰺔"}.mdi-chart-waterfall:before{content:"󱤘"}.mdi-chat:before{content:"󰭹"}.mdi-chat-alert:before{content:"󰭺"}.mdi-chat-alert-outline:before{content:"󱋉"}.mdi-chat-minus:before{content:"󱐐"}.mdi-chat-minus-outline:before{content:"󱐓"}.mdi-chat-outline:before{content:"󰻞"}.mdi-chat-plus:before{content:"󱐏"}.mdi-chat-plus-outline:before{content:"󱐒"}.mdi-chat-processing:before{content:"󰭻"}.mdi-chat-processing-outline:before{content:"󱋊"}.mdi-chat-question:before{content:"󱜸"}.mdi-chat-question-outline:before{content:"󱜹"}.mdi-chat-remove:before{content:"󱐑"}.mdi-chat-remove-outline:before{content:"󱐔"}.mdi-chat-sleep:before{content:"󱋑"}.mdi-chat-sleep-outline:before{content:"󱋒"}.mdi-check:before{content:"󰄬"}.mdi-check-all:before{content:"󰄭"}.mdi-check-bold:before{content:"󰸞"}.mdi-check-circle:before{content:"󰗠"}.mdi-check-circle-outline:before{content:"󰗡"}.mdi-check-decagram:before{content:"󰞑"}.mdi-check-decagram-outline:before{content:"󱝀"}.mdi-check-network:before{content:"󰱓"}.mdi-check-network-outline:before{content:"󰱔"}.mdi-check-outline:before{content:"󰡕"}.mdi-check-underline:before{content:"󰸟"}.mdi-check-underline-circle:before{content:"󰸠"}.mdi-check-underline-circle-outline:before{content:"󰸡"}.mdi-checkbook:before{content:"󰪝"}.mdi-checkbook-arrow-left:before{content:"󱰝"}.mdi-checkbook-arrow-right:before{content:"󱰞"}.mdi-checkbox-blank:before{content:"󰄮"}.mdi-checkbox-blank-badge:before{content:"󱅶"}.mdi-checkbox-blank-badge-outline:before{content:"󰄗"}.mdi-checkbox-blank-circle:before{content:"󰄯"}.mdi-checkbox-blank-circle-outline:before{content:"󰄰"}.mdi-checkbox-blank-off:before{content:"󱋬"}.mdi-checkbox-blank-off-outline:before{content:"󱋭"}.mdi-checkbox-blank-outline:before{content:"󰄱"}.mdi-checkbox-intermediate:before{content:"󰡖"}.mdi-checkbox-intermediate-variant:before{content:"󱭔"}.mdi-checkbox-marked:before{content:"󰄲"}.mdi-checkbox-marked-circle:before{content:"󰄳"}.mdi-checkbox-marked-circle-auto-outline:before{content:"󱰦"}.mdi-checkbox-marked-circle-minus-outline:before{content:"󱰧"}.mdi-checkbox-marked-circle-outline:before{content:"󰄴"}.mdi-checkbox-marked-circle-plus-outline:before{content:"󱤧"}.mdi-checkbox-marked-outline:before{content:"󰄵"}.mdi-checkbox-multiple-blank:before{content:"󰄶"}.mdi-checkbox-multiple-blank-circle:before{content:"󰘻"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"󰘼"}.mdi-checkbox-multiple-blank-outline:before{content:"󰄷"}.mdi-checkbox-multiple-marked:before{content:"󰄸"}.mdi-checkbox-multiple-marked-circle:before{content:"󰘽"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"󰘾"}.mdi-checkbox-multiple-marked-outline:before{content:"󰄹"}.mdi-checkbox-multiple-outline:before{content:"󰱑"}.mdi-checkbox-outline:before{content:"󰱒"}.mdi-checkerboard:before{content:"󰄺"}.mdi-checkerboard-minus:before{content:"󱈂"}.mdi-checkerboard-plus:before{content:"󱈁"}.mdi-checkerboard-remove:before{content:"󱈃"}.mdi-cheese:before{content:"󱊹"}.mdi-cheese-off:before{content:"󱏮"}.mdi-chef-hat:before{content:"󰭼"}.mdi-chemical-weapon:before{content:"󰄻"}.mdi-chess-bishop:before{content:"󰡜"}.mdi-chess-king:before{content:"󰡗"}.mdi-chess-knight:before{content:"󰡘"}.mdi-chess-pawn:before{content:"󰡙"}.mdi-chess-queen:before{content:"󰡚"}.mdi-chess-rook:before{content:"󰡛"}.mdi-chevron-double-down:before{content:"󰄼"}.mdi-chevron-double-left:before{content:"󰄽"}.mdi-chevron-double-right:before{content:"󰄾"}.mdi-chevron-double-up:before{content:"󰄿"}.mdi-chevron-down:before{content:"󰅀"}.mdi-chevron-down-box:before{content:"󰧖"}.mdi-chevron-down-box-outline:before{content:"󰧗"}.mdi-chevron-down-circle:before{content:"󰬦"}.mdi-chevron-down-circle-outline:before{content:"󰬧"}.mdi-chevron-left:before{content:"󰅁"}.mdi-chevron-left-box:before{content:"󰧘"}.mdi-chevron-left-box-outline:before{content:"󰧙"}.mdi-chevron-left-circle:before{content:"󰬨"}.mdi-chevron-left-circle-outline:before{content:"󰬩"}.mdi-chevron-right:before{content:"󰅂"}.mdi-chevron-right-box:before{content:"󰧚"}.mdi-chevron-right-box-outline:before{content:"󰧛"}.mdi-chevron-right-circle:before{content:"󰬪"}.mdi-chevron-right-circle-outline:before{content:"󰬫"}.mdi-chevron-triple-down:before{content:"󰶹"}.mdi-chevron-triple-left:before{content:"󰶺"}.mdi-chevron-triple-right:before{content:"󰶻"}.mdi-chevron-triple-up:before{content:"󰶼"}.mdi-chevron-up:before{content:"󰅃"}.mdi-chevron-up-box:before{content:"󰧜"}.mdi-chevron-up-box-outline:before{content:"󰧝"}.mdi-chevron-up-circle:before{content:"󰬬"}.mdi-chevron-up-circle-outline:before{content:"󰬭"}.mdi-chili-alert:before{content:"󱟪"}.mdi-chili-alert-outline:before{content:"󱟫"}.mdi-chili-hot:before{content:"󰞲"}.mdi-chili-hot-outline:before{content:"󱟬"}.mdi-chili-medium:before{content:"󰞳"}.mdi-chili-medium-outline:before{content:"󱟭"}.mdi-chili-mild:before{content:"󰞴"}.mdi-chili-mild-outline:before{content:"󱟮"}.mdi-chili-off:before{content:"󱑧"}.mdi-chili-off-outline:before{content:"󱟯"}.mdi-chip:before{content:"󰘚"}.mdi-church:before{content:"󰅄"}.mdi-church-outline:before{content:"󱬂"}.mdi-cigar:before{content:"󱆉"}.mdi-cigar-off:before{content:"󱐛"}.mdi-circle:before{content:"󰝥"}.mdi-circle-box:before{content:"󱗜"}.mdi-circle-box-outline:before{content:"󱗝"}.mdi-circle-double:before{content:"󰺕"}.mdi-circle-edit-outline:before{content:"󰣕"}.mdi-circle-expand:before{content:"󰺖"}.mdi-circle-half:before{content:"󱎕"}.mdi-circle-half-full:before{content:"󱎖"}.mdi-circle-medium:before{content:"󰧞"}.mdi-circle-multiple:before{content:"󰬸"}.mdi-circle-multiple-outline:before{content:"󰚕"}.mdi-circle-off-outline:before{content:"󱃓"}.mdi-circle-opacity:before{content:"󱡓"}.mdi-circle-outline:before{content:"󰝦"}.mdi-circle-slice-1:before{content:"󰪞"}.mdi-circle-slice-2:before{content:"󰪟"}.mdi-circle-slice-3:before{content:"󰪠"}.mdi-circle-slice-4:before{content:"󰪡"}.mdi-circle-slice-5:before{content:"󰪢"}.mdi-circle-slice-6:before{content:"󰪣"}.mdi-circle-slice-7:before{content:"󰪤"}.mdi-circle-slice-8:before{content:"󰪥"}.mdi-circle-small:before{content:"󰧟"}.mdi-circular-saw:before{content:"󰸢"}.mdi-city:before{content:"󰅆"}.mdi-city-switch:before{content:"󱰨"}.mdi-city-variant:before{content:"󰨶"}.mdi-city-variant-outline:before{content:"󰨷"}.mdi-clipboard:before{content:"󰅇"}.mdi-clipboard-account:before{content:"󰅈"}.mdi-clipboard-account-outline:before{content:"󰱕"}.mdi-clipboard-alert:before{content:"󰅉"}.mdi-clipboard-alert-outline:before{content:"󰳷"}.mdi-clipboard-arrow-down:before{content:"󰅊"}.mdi-clipboard-arrow-down-outline:before{content:"󰱖"}.mdi-clipboard-arrow-left:before{content:"󰅋"}.mdi-clipboard-arrow-left-outline:before{content:"󰳸"}.mdi-clipboard-arrow-right:before{content:"󰳹"}.mdi-clipboard-arrow-right-outline:before{content:"󰳺"}.mdi-clipboard-arrow-up:before{content:"󰱗"}.mdi-clipboard-arrow-up-outline:before{content:"󰱘"}.mdi-clipboard-check:before{content:"󰅎"}.mdi-clipboard-check-multiple:before{content:"󱉣"}.mdi-clipboard-check-multiple-outline:before{content:"󱉤"}.mdi-clipboard-check-outline:before{content:"󰢨"}.mdi-clipboard-clock:before{content:"󱛢"}.mdi-clipboard-clock-outline:before{content:"󱛣"}.mdi-clipboard-edit:before{content:"󱓥"}.mdi-clipboard-edit-outline:before{content:"󱓦"}.mdi-clipboard-file:before{content:"󱉥"}.mdi-clipboard-file-outline:before{content:"󱉦"}.mdi-clipboard-flow:before{content:"󰛈"}.mdi-clipboard-flow-outline:before{content:"󱄗"}.mdi-clipboard-list:before{content:"󱃔"}.mdi-clipboard-list-outline:before{content:"󱃕"}.mdi-clipboard-minus:before{content:"󱘘"}.mdi-clipboard-minus-outline:before{content:"󱘙"}.mdi-clipboard-multiple:before{content:"󱉧"}.mdi-clipboard-multiple-outline:before{content:"󱉨"}.mdi-clipboard-off:before{content:"󱘚"}.mdi-clipboard-off-outline:before{content:"󱘛"}.mdi-clipboard-outline:before{content:"󰅌"}.mdi-clipboard-play:before{content:"󰱙"}.mdi-clipboard-play-multiple:before{content:"󱉩"}.mdi-clipboard-play-multiple-outline:before{content:"󱉪"}.mdi-clipboard-play-outline:before{content:"󰱚"}.mdi-clipboard-plus:before{content:"󰝑"}.mdi-clipboard-plus-outline:before{content:"󱌟"}.mdi-clipboard-pulse:before{content:"󰡝"}.mdi-clipboard-pulse-outline:before{content:"󰡞"}.mdi-clipboard-remove:before{content:"󱘜"}.mdi-clipboard-remove-outline:before{content:"󱘝"}.mdi-clipboard-search:before{content:"󱘞"}.mdi-clipboard-search-outline:before{content:"󱘟"}.mdi-clipboard-text:before{content:"󰅍"}.mdi-clipboard-text-clock:before{content:"󱣹"}.mdi-clipboard-text-clock-outline:before{content:"󱣺"}.mdi-clipboard-text-multiple:before{content:"󱉫"}.mdi-clipboard-text-multiple-outline:before{content:"󱉬"}.mdi-clipboard-text-off:before{content:"󱘠"}.mdi-clipboard-text-off-outline:before{content:"󱘡"}.mdi-clipboard-text-outline:before{content:"󰨸"}.mdi-clipboard-text-play:before{content:"󰱛"}.mdi-clipboard-text-play-outline:before{content:"󰱜"}.mdi-clipboard-text-search:before{content:"󱘢"}.mdi-clipboard-text-search-outline:before{content:"󱘣"}.mdi-clippy:before{content:"󰅏"}.mdi-clock:before{content:"󰥔"}.mdi-clock-alert:before{content:"󰥕"}.mdi-clock-alert-outline:before{content:"󰗎"}.mdi-clock-check:before{content:"󰾨"}.mdi-clock-check-outline:before{content:"󰾩"}.mdi-clock-digital:before{content:"󰺗"}.mdi-clock-edit:before{content:"󱦺"}.mdi-clock-edit-outline:before{content:"󱦻"}.mdi-clock-end:before{content:"󰅑"}.mdi-clock-fast:before{content:"󰅒"}.mdi-clock-in:before{content:"󰅓"}.mdi-clock-minus:before{content:"󱡣"}.mdi-clock-minus-outline:before{content:"󱡤"}.mdi-clock-out:before{content:"󰅔"}.mdi-clock-outline:before{content:"󰅐"}.mdi-clock-plus:before{content:"󱡡"}.mdi-clock-plus-outline:before{content:"󱡢"}.mdi-clock-remove:before{content:"󱡥"}.mdi-clock-remove-outline:before{content:"󱡦"}.mdi-clock-star-four-points:before{content:"󱰩"}.mdi-clock-star-four-points-outline:before{content:"󱰪"}.mdi-clock-start:before{content:"󰅕"}.mdi-clock-time-eight:before{content:"󱑆"}.mdi-clock-time-eight-outline:before{content:"󱑒"}.mdi-clock-time-eleven:before{content:"󱑉"}.mdi-clock-time-eleven-outline:before{content:"󱑕"}.mdi-clock-time-five:before{content:"󱑃"}.mdi-clock-time-five-outline:before{content:"󱑏"}.mdi-clock-time-four:before{content:"󱑂"}.mdi-clock-time-four-outline:before{content:"󱑎"}.mdi-clock-time-nine:before{content:"󱑇"}.mdi-clock-time-nine-outline:before{content:"󱑓"}.mdi-clock-time-one:before{content:"󱐿"}.mdi-clock-time-one-outline:before{content:"󱑋"}.mdi-clock-time-seven:before{content:"󱑅"}.mdi-clock-time-seven-outline:before{content:"󱑑"}.mdi-clock-time-six:before{content:"󱑄"}.mdi-clock-time-six-outline:before{content:"󱑐"}.mdi-clock-time-ten:before{content:"󱑈"}.mdi-clock-time-ten-outline:before{content:"󱑔"}.mdi-clock-time-three:before{content:"󱑁"}.mdi-clock-time-three-outline:before{content:"󱑍"}.mdi-clock-time-twelve:before{content:"󱑊"}.mdi-clock-time-twelve-outline:before{content:"󱑖"}.mdi-clock-time-two:before{content:"󱑀"}.mdi-clock-time-two-outline:before{content:"󱑌"}.mdi-close:before{content:"󰅖"}.mdi-close-box:before{content:"󰅗"}.mdi-close-box-multiple:before{content:"󰱝"}.mdi-close-box-multiple-outline:before{content:"󰱞"}.mdi-close-box-outline:before{content:"󰅘"}.mdi-close-circle:before{content:"󰅙"}.mdi-close-circle-multiple:before{content:"󰘪"}.mdi-close-circle-multiple-outline:before{content:"󰢃"}.mdi-close-circle-outline:before{content:"󰅚"}.mdi-close-network:before{content:"󰅛"}.mdi-close-network-outline:before{content:"󰱟"}.mdi-close-octagon:before{content:"󰅜"}.mdi-close-octagon-outline:before{content:"󰅝"}.mdi-close-outline:before{content:"󰛉"}.mdi-close-thick:before{content:"󱎘"}.mdi-closed-caption:before{content:"󰅞"}.mdi-closed-caption-outline:before{content:"󰶽"}.mdi-cloud:before{content:"󰅟"}.mdi-cloud-alert:before{content:"󰧠"}.mdi-cloud-alert-outline:before{content:"󱯠"}.mdi-cloud-arrow-down:before{content:"󱯡"}.mdi-cloud-arrow-down-outline:before{content:"󱯢"}.mdi-cloud-arrow-left:before{content:"󱯣"}.mdi-cloud-arrow-left-outline:before{content:"󱯤"}.mdi-cloud-arrow-right:before{content:"󱯥"}.mdi-cloud-arrow-right-outline:before{content:"󱯦"}.mdi-cloud-arrow-up:before{content:"󱯧"}.mdi-cloud-arrow-up-outline:before{content:"󱯨"}.mdi-cloud-braces:before{content:"󰞵"}.mdi-cloud-cancel:before{content:"󱯩"}.mdi-cloud-cancel-outline:before{content:"󱯪"}.mdi-cloud-check:before{content:"󱯫"}.mdi-cloud-check-outline:before{content:"󱯬"}.mdi-cloud-check-variant:before{content:"󰅠"}.mdi-cloud-check-variant-outline:before{content:"󱋌"}.mdi-cloud-circle:before{content:"󰅡"}.mdi-cloud-circle-outline:before{content:"󱯭"}.mdi-cloud-clock:before{content:"󱯮"}.mdi-cloud-clock-outline:before{content:"󱯯"}.mdi-cloud-cog:before{content:"󱯰"}.mdi-cloud-cog-outline:before{content:"󱯱"}.mdi-cloud-download:before{content:"󰅢"}.mdi-cloud-download-outline:before{content:"󰭽"}.mdi-cloud-key:before{content:"󱲡"}.mdi-cloud-key-outline:before{content:"󱲢"}.mdi-cloud-lock:before{content:"󱇱"}.mdi-cloud-lock-open:before{content:"󱯲"}.mdi-cloud-lock-open-outline:before{content:"󱯳"}.mdi-cloud-lock-outline:before{content:"󱇲"}.mdi-cloud-minus:before{content:"󱯴"}.mdi-cloud-minus-outline:before{content:"󱯵"}.mdi-cloud-off:before{content:"󱯶"}.mdi-cloud-off-outline:before{content:"󰅤"}.mdi-cloud-outline:before{content:"󰅣"}.mdi-cloud-percent:before{content:"󱨵"}.mdi-cloud-percent-outline:before{content:"󱨶"}.mdi-cloud-plus:before{content:"󱯷"}.mdi-cloud-plus-outline:before{content:"󱯸"}.mdi-cloud-print:before{content:"󰅥"}.mdi-cloud-print-outline:before{content:"󰅦"}.mdi-cloud-question:before{content:"󰨹"}.mdi-cloud-question-outline:before{content:"󱯹"}.mdi-cloud-refresh:before{content:"󱯺"}.mdi-cloud-refresh-outline:before{content:"󱯻"}.mdi-cloud-refresh-variant:before{content:"󰔪"}.mdi-cloud-refresh-variant-outline:before{content:"󱯼"}.mdi-cloud-remove:before{content:"󱯽"}.mdi-cloud-remove-outline:before{content:"󱯾"}.mdi-cloud-search:before{content:"󰥖"}.mdi-cloud-search-outline:before{content:"󰥗"}.mdi-cloud-sync:before{content:"󰘿"}.mdi-cloud-sync-outline:before{content:"󱋖"}.mdi-cloud-tags:before{content:"󰞶"}.mdi-cloud-upload:before{content:"󰅧"}.mdi-cloud-upload-outline:before{content:"󰭾"}.mdi-clouds:before{content:"󱮕"}.mdi-clover:before{content:"󰠖"}.mdi-clover-outline:before{content:"󱱢"}.mdi-coach-lamp:before{content:"󱀠"}.mdi-coach-lamp-variant:before{content:"󱨷"}.mdi-coat-rack:before{content:"󱂞"}.mdi-code-array:before{content:"󰅨"}.mdi-code-block-braces:before{content:"󱲃"}.mdi-code-block-brackets:before{content:"󱲄"}.mdi-code-block-parentheses:before{content:"󱲅"}.mdi-code-block-tags:before{content:"󱲆"}.mdi-code-braces:before{content:"󰅩"}.mdi-code-braces-box:before{content:"󱃖"}.mdi-code-brackets:before{content:"󰅪"}.mdi-code-equal:before{content:"󰅫"}.mdi-code-greater-than:before{content:"󰅬"}.mdi-code-greater-than-or-equal:before{content:"󰅭"}.mdi-code-json:before{content:"󰘦"}.mdi-code-less-than:before{content:"󰅮"}.mdi-code-less-than-or-equal:before{content:"󰅯"}.mdi-code-not-equal:before{content:"󰅰"}.mdi-code-not-equal-variant:before{content:"󰅱"}.mdi-code-parentheses:before{content:"󰅲"}.mdi-code-parentheses-box:before{content:"󱃗"}.mdi-code-string:before{content:"󰅳"}.mdi-code-tags:before{content:"󰅴"}.mdi-code-tags-check:before{content:"󰚔"}.mdi-codepen:before{content:"󰅵"}.mdi-coffee:before{content:"󰅶"}.mdi-coffee-maker:before{content:"󱂟"}.mdi-coffee-maker-check:before{content:"󱤱"}.mdi-coffee-maker-check-outline:before{content:"󱤲"}.mdi-coffee-maker-outline:before{content:"󱠛"}.mdi-coffee-off:before{content:"󰾪"}.mdi-coffee-off-outline:before{content:"󰾫"}.mdi-coffee-outline:before{content:"󰛊"}.mdi-coffee-to-go:before{content:"󰅷"}.mdi-coffee-to-go-outline:before{content:"󱌎"}.mdi-coffin:before{content:"󰭿"}.mdi-cog:before{content:"󰒓"}.mdi-cog-box:before{content:"󰒔"}.mdi-cog-clockwise:before{content:"󱇝"}.mdi-cog-counterclockwise:before{content:"󱇞"}.mdi-cog-off:before{content:"󱏎"}.mdi-cog-off-outline:before{content:"󱏏"}.mdi-cog-outline:before{content:"󰢻"}.mdi-cog-pause:before{content:"󱤳"}.mdi-cog-pause-outline:before{content:"󱤴"}.mdi-cog-play:before{content:"󱤵"}.mdi-cog-play-outline:before{content:"󱤶"}.mdi-cog-refresh:before{content:"󱑞"}.mdi-cog-refresh-outline:before{content:"󱑟"}.mdi-cog-stop:before{content:"󱤷"}.mdi-cog-stop-outline:before{content:"󱤸"}.mdi-cog-sync:before{content:"󱑠"}.mdi-cog-sync-outline:before{content:"󱑡"}.mdi-cog-transfer:before{content:"󱁛"}.mdi-cog-transfer-outline:before{content:"󱁜"}.mdi-cogs:before{content:"󰣖"}.mdi-collage:before{content:"󰙀"}.mdi-collapse-all:before{content:"󰪦"}.mdi-collapse-all-outline:before{content:"󰪧"}.mdi-color-helper:before{content:"󰅹"}.mdi-comma:before{content:"󰸣"}.mdi-comma-box:before{content:"󰸫"}.mdi-comma-box-outline:before{content:"󰸤"}.mdi-comma-circle:before{content:"󰸥"}.mdi-comma-circle-outline:before{content:"󰸦"}.mdi-comment:before{content:"󰅺"}.mdi-comment-account:before{content:"󰅻"}.mdi-comment-account-outline:before{content:"󰅼"}.mdi-comment-alert:before{content:"󰅽"}.mdi-comment-alert-outline:before{content:"󰅾"}.mdi-comment-arrow-left:before{content:"󰧡"}.mdi-comment-arrow-left-outline:before{content:"󰧢"}.mdi-comment-arrow-right:before{content:"󰧣"}.mdi-comment-arrow-right-outline:before{content:"󰧤"}.mdi-comment-bookmark:before{content:"󱖮"}.mdi-comment-bookmark-outline:before{content:"󱖯"}.mdi-comment-check:before{content:"󰅿"}.mdi-comment-check-outline:before{content:"󰆀"}.mdi-comment-edit:before{content:"󱆿"}.mdi-comment-edit-outline:before{content:"󱋄"}.mdi-comment-eye:before{content:"󰨺"}.mdi-comment-eye-outline:before{content:"󰨻"}.mdi-comment-flash:before{content:"󱖰"}.mdi-comment-flash-outline:before{content:"󱖱"}.mdi-comment-minus:before{content:"󱗟"}.mdi-comment-minus-outline:before{content:"󱗠"}.mdi-comment-multiple:before{content:"󰡟"}.mdi-comment-multiple-outline:before{content:"󰆁"}.mdi-comment-off:before{content:"󱗡"}.mdi-comment-off-outline:before{content:"󱗢"}.mdi-comment-outline:before{content:"󰆂"}.mdi-comment-plus:before{content:"󰧥"}.mdi-comment-plus-outline:before{content:"󰆃"}.mdi-comment-processing:before{content:"󰆄"}.mdi-comment-processing-outline:before{content:"󰆅"}.mdi-comment-question:before{content:"󰠗"}.mdi-comment-question-outline:before{content:"󰆆"}.mdi-comment-quote:before{content:"󱀡"}.mdi-comment-quote-outline:before{content:"󱀢"}.mdi-comment-remove:before{content:"󰗞"}.mdi-comment-remove-outline:before{content:"󰆇"}.mdi-comment-search:before{content:"󰨼"}.mdi-comment-search-outline:before{content:"󰨽"}.mdi-comment-text:before{content:"󰆈"}.mdi-comment-text-multiple:before{content:"󰡠"}.mdi-comment-text-multiple-outline:before{content:"󰡡"}.mdi-comment-text-outline:before{content:"󰆉"}.mdi-compare:before{content:"󰆊"}.mdi-compare-horizontal:before{content:"󱒒"}.mdi-compare-remove:before{content:"󱢳"}.mdi-compare-vertical:before{content:"󱒓"}.mdi-compass:before{content:"󰆋"}.mdi-compass-off:before{content:"󰮀"}.mdi-compass-off-outline:before{content:"󰮁"}.mdi-compass-outline:before{content:"󰆌"}.mdi-compass-rose:before{content:"󱎂"}.mdi-compost:before{content:"󱨸"}.mdi-cone:before{content:"󱥌"}.mdi-cone-off:before{content:"󱥍"}.mdi-connection:before{content:"󱘖"}.mdi-console:before{content:"󰆍"}.mdi-console-line:before{content:"󰞷"}.mdi-console-network:before{content:"󰢩"}.mdi-console-network-outline:before{content:"󰱠"}.mdi-consolidate:before{content:"󱃘"}.mdi-contactless-payment:before{content:"󰵪"}.mdi-contactless-payment-circle:before{content:"󰌡"}.mdi-contactless-payment-circle-outline:before{content:"󰐈"}.mdi-contacts:before{content:"󰛋"}.mdi-contacts-outline:before{content:"󰖸"}.mdi-contain:before{content:"󰨾"}.mdi-contain-end:before{content:"󰨿"}.mdi-contain-start:before{content:"󰩀"}.mdi-content-copy:before{content:"󰆏"}.mdi-content-cut:before{content:"󰆐"}.mdi-content-duplicate:before{content:"󰆑"}.mdi-content-paste:before{content:"󰆒"}.mdi-content-save:before{content:"󰆓"}.mdi-content-save-alert:before{content:"󰽂"}.mdi-content-save-alert-outline:before{content:"󰽃"}.mdi-content-save-all:before{content:"󰆔"}.mdi-content-save-all-outline:before{content:"󰽄"}.mdi-content-save-check:before{content:"󱣪"}.mdi-content-save-check-outline:before{content:"󱣫"}.mdi-content-save-cog:before{content:"󱑛"}.mdi-content-save-cog-outline:before{content:"󱑜"}.mdi-content-save-edit:before{content:"󰳻"}.mdi-content-save-edit-outline:before{content:"󰳼"}.mdi-content-save-minus:before{content:"󱭃"}.mdi-content-save-minus-outline:before{content:"󱭄"}.mdi-content-save-move:before{content:"󰸧"}.mdi-content-save-move-outline:before{content:"󰸨"}.mdi-content-save-off:before{content:"󱙃"}.mdi-content-save-off-outline:before{content:"󱙄"}.mdi-content-save-outline:before{content:"󰠘"}.mdi-content-save-plus:before{content:"󱭁"}.mdi-content-save-plus-outline:before{content:"󱭂"}.mdi-content-save-settings:before{content:"󰘛"}.mdi-content-save-settings-outline:before{content:"󰬮"}.mdi-contrast:before{content:"󰆕"}.mdi-contrast-box:before{content:"󰆖"}.mdi-contrast-circle:before{content:"󰆗"}.mdi-controller:before{content:"󰊴"}.mdi-controller-classic:before{content:"󰮂"}.mdi-controller-classic-outline:before{content:"󰮃"}.mdi-controller-off:before{content:"󰊵"}.mdi-cookie:before{content:"󰆘"}.mdi-cookie-alert:before{content:"󱛐"}.mdi-cookie-alert-outline:before{content:"󱛑"}.mdi-cookie-check:before{content:"󱛒"}.mdi-cookie-check-outline:before{content:"󱛓"}.mdi-cookie-clock:before{content:"󱛤"}.mdi-cookie-clock-outline:before{content:"󱛥"}.mdi-cookie-cog:before{content:"󱛔"}.mdi-cookie-cog-outline:before{content:"󱛕"}.mdi-cookie-edit:before{content:"󱛦"}.mdi-cookie-edit-outline:before{content:"󱛧"}.mdi-cookie-lock:before{content:"󱛨"}.mdi-cookie-lock-outline:before{content:"󱛩"}.mdi-cookie-minus:before{content:"󱛚"}.mdi-cookie-minus-outline:before{content:"󱛛"}.mdi-cookie-off:before{content:"󱛪"}.mdi-cookie-off-outline:before{content:"󱛫"}.mdi-cookie-outline:before{content:"󱛞"}.mdi-cookie-plus:before{content:"󱛖"}.mdi-cookie-plus-outline:before{content:"󱛗"}.mdi-cookie-refresh:before{content:"󱛬"}.mdi-cookie-refresh-outline:before{content:"󱛭"}.mdi-cookie-remove:before{content:"󱛘"}.mdi-cookie-remove-outline:before{content:"󱛙"}.mdi-cookie-settings:before{content:"󱛜"}.mdi-cookie-settings-outline:before{content:"󱛝"}.mdi-coolant-temperature:before{content:"󰏈"}.mdi-copyleft:before{content:"󱤹"}.mdi-copyright:before{content:"󰗦"}.mdi-cordova:before{content:"󰥘"}.mdi-corn:before{content:"󰞸"}.mdi-corn-off:before{content:"󱏯"}.mdi-cosine-wave:before{content:"󱑹"}.mdi-counter:before{content:"󰆙"}.mdi-countertop:before{content:"󱠜"}.mdi-countertop-outline:before{content:"󱠝"}.mdi-cow:before{content:"󰆚"}.mdi-cow-off:before{content:"󱣼"}.mdi-cpu-32-bit:before{content:"󰻟"}.mdi-cpu-64-bit:before{content:"󰻠"}.mdi-cradle:before{content:"󱦋"}.mdi-cradle-outline:before{content:"󱦑"}.mdi-crane:before{content:"󰡢"}.mdi-creation:before{content:"󰙴"}.mdi-creation-outline:before{content:"󱰫"}.mdi-creative-commons:before{content:"󰵫"}.mdi-credit-card:before{content:"󰿯"}.mdi-credit-card-check:before{content:"󱏐"}.mdi-credit-card-check-outline:before{content:"󱏑"}.mdi-credit-card-chip:before{content:"󱤏"}.mdi-credit-card-chip-outline:before{content:"󱤐"}.mdi-credit-card-clock:before{content:"󰻡"}.mdi-credit-card-clock-outline:before{content:"󰻢"}.mdi-credit-card-edit:before{content:"󱟗"}.mdi-credit-card-edit-outline:before{content:"󱟘"}.mdi-credit-card-fast:before{content:"󱤑"}.mdi-credit-card-fast-outline:before{content:"󱤒"}.mdi-credit-card-lock:before{content:"󱣧"}.mdi-credit-card-lock-outline:before{content:"󱣨"}.mdi-credit-card-marker:before{content:"󰚨"}.mdi-credit-card-marker-outline:before{content:"󰶾"}.mdi-credit-card-minus:before{content:"󰾬"}.mdi-credit-card-minus-outline:before{content:"󰾭"}.mdi-credit-card-multiple:before{content:"󰿰"}.mdi-credit-card-multiple-outline:before{content:"󰆜"}.mdi-credit-card-off:before{content:"󰿱"}.mdi-credit-card-off-outline:before{content:"󰗤"}.mdi-credit-card-outline:before{content:"󰆛"}.mdi-credit-card-plus:before{content:"󰿲"}.mdi-credit-card-plus-outline:before{content:"󰙶"}.mdi-credit-card-refresh:before{content:"󱙅"}.mdi-credit-card-refresh-outline:before{content:"󱙆"}.mdi-credit-card-refund:before{content:"󰿳"}.mdi-credit-card-refund-outline:before{content:"󰪨"}.mdi-credit-card-remove:before{content:"󰾮"}.mdi-credit-card-remove-outline:before{content:"󰾯"}.mdi-credit-card-scan:before{content:"󰿴"}.mdi-credit-card-scan-outline:before{content:"󰆝"}.mdi-credit-card-search:before{content:"󱙇"}.mdi-credit-card-search-outline:before{content:"󱙈"}.mdi-credit-card-settings:before{content:"󰿵"}.mdi-credit-card-settings-outline:before{content:"󰣗"}.mdi-credit-card-sync:before{content:"󱙉"}.mdi-credit-card-sync-outline:before{content:"󱙊"}.mdi-credit-card-wireless:before{content:"󰠂"}.mdi-credit-card-wireless-off:before{content:"󰕺"}.mdi-credit-card-wireless-off-outline:before{content:"󰕻"}.mdi-credit-card-wireless-outline:before{content:"󰵬"}.mdi-cricket:before{content:"󰵭"}.mdi-crop:before{content:"󰆞"}.mdi-crop-free:before{content:"󰆟"}.mdi-crop-landscape:before{content:"󰆠"}.mdi-crop-portrait:before{content:"󰆡"}.mdi-crop-rotate:before{content:"󰚖"}.mdi-crop-square:before{content:"󰆢"}.mdi-cross:before{content:"󰥓"}.mdi-cross-bolnisi:before{content:"󰳭"}.mdi-cross-celtic:before{content:"󰳵"}.mdi-cross-outline:before{content:"󰳶"}.mdi-crosshairs:before{content:"󰆣"}.mdi-crosshairs-gps:before{content:"󰆤"}.mdi-crosshairs-off:before{content:"󰽅"}.mdi-crosshairs-question:before{content:"󱄶"}.mdi-crowd:before{content:"󱥵"}.mdi-crown:before{content:"󰆥"}.mdi-crown-circle:before{content:"󱟜"}.mdi-crown-circle-outline:before{content:"󱟝"}.mdi-crown-outline:before{content:"󱇐"}.mdi-cryengine:before{content:"󰥙"}.mdi-crystal-ball:before{content:"󰬯"}.mdi-cube:before{content:"󰆦"}.mdi-cube-off:before{content:"󱐜"}.mdi-cube-off-outline:before{content:"󱐝"}.mdi-cube-outline:before{content:"󰆧"}.mdi-cube-scan:before{content:"󰮄"}.mdi-cube-send:before{content:"󰆨"}.mdi-cube-unfolded:before{content:"󰆩"}.mdi-cup:before{content:"󰆪"}.mdi-cup-off:before{content:"󰗥"}.mdi-cup-off-outline:before{content:"󱍽"}.mdi-cup-outline:before{content:"󱌏"}.mdi-cup-water:before{content:"󰆫"}.mdi-cupboard:before{content:"󰽆"}.mdi-cupboard-outline:before{content:"󰽇"}.mdi-cupcake:before{content:"󰥚"}.mdi-curling:before{content:"󰡣"}.mdi-currency-bdt:before{content:"󰡤"}.mdi-currency-brl:before{content:"󰮅"}.mdi-currency-btc:before{content:"󰆬"}.mdi-currency-cny:before{content:"󰞺"}.mdi-currency-eth:before{content:"󰞻"}.mdi-currency-eur:before{content:"󰆭"}.mdi-currency-eur-off:before{content:"󱌕"}.mdi-currency-fra:before{content:"󱨹"}.mdi-currency-gbp:before{content:"󰆮"}.mdi-currency-ils:before{content:"󰱡"}.mdi-currency-inr:before{content:"󰆯"}.mdi-currency-jpy:before{content:"󰞼"}.mdi-currency-krw:before{content:"󰞽"}.mdi-currency-kzt:before{content:"󰡥"}.mdi-currency-mnt:before{content:"󱔒"}.mdi-currency-ngn:before{content:"󰆰"}.mdi-currency-php:before{content:"󰧦"}.mdi-currency-rial:before{content:"󰺜"}.mdi-currency-rub:before{content:"󰆱"}.mdi-currency-rupee:before{content:"󱥶"}.mdi-currency-sign:before{content:"󰞾"}.mdi-currency-thb:before{content:"󱰅"}.mdi-currency-try:before{content:"󰆲"}.mdi-currency-twd:before{content:"󰞿"}.mdi-currency-uah:before{content:"󱮛"}.mdi-currency-usd:before{content:"󰇁"}.mdi-currency-usd-off:before{content:"󰙺"}.mdi-current-ac:before{content:"󱒀"}.mdi-current-dc:before{content:"󰥜"}.mdi-cursor-default:before{content:"󰇀"}.mdi-cursor-default-click:before{content:"󰳽"}.mdi-cursor-default-click-outline:before{content:"󰳾"}.mdi-cursor-default-gesture:before{content:"󱄧"}.mdi-cursor-default-gesture-outline:before{content:"󱄨"}.mdi-cursor-default-outline:before{content:"󰆿"}.mdi-cursor-move:before{content:"󰆾"}.mdi-cursor-pointer:before{content:"󰆽"}.mdi-cursor-text:before{content:"󰗧"}.mdi-curtains:before{content:"󱡆"}.mdi-curtains-closed:before{content:"󱡇"}.mdi-cylinder:before{content:"󱥎"}.mdi-cylinder-off:before{content:"󱥏"}.mdi-dance-ballroom:before{content:"󱗻"}.mdi-dance-pole:before{content:"󱕸"}.mdi-data-matrix:before{content:"󱔼"}.mdi-data-matrix-edit:before{content:"󱔽"}.mdi-data-matrix-minus:before{content:"󱔾"}.mdi-data-matrix-plus:before{content:"󱔿"}.mdi-data-matrix-remove:before{content:"󱕀"}.mdi-data-matrix-scan:before{content:"󱕁"}.mdi-database:before{content:"󰆼"}.mdi-database-alert:before{content:"󱘺"}.mdi-database-alert-outline:before{content:"󱘤"}.mdi-database-arrow-down:before{content:"󱘻"}.mdi-database-arrow-down-outline:before{content:"󱘥"}.mdi-database-arrow-left:before{content:"󱘼"}.mdi-database-arrow-left-outline:before{content:"󱘦"}.mdi-database-arrow-right:before{content:"󱘽"}.mdi-database-arrow-right-outline:before{content:"󱘧"}.mdi-database-arrow-up:before{content:"󱘾"}.mdi-database-arrow-up-outline:before{content:"󱘨"}.mdi-database-check:before{content:"󰪩"}.mdi-database-check-outline:before{content:"󱘩"}.mdi-database-clock:before{content:"󱘿"}.mdi-database-clock-outline:before{content:"󱘪"}.mdi-database-cog:before{content:"󱙋"}.mdi-database-cog-outline:before{content:"󱙌"}.mdi-database-edit:before{content:"󰮆"}.mdi-database-edit-outline:before{content:"󱘫"}.mdi-database-export:before{content:"󰥞"}.mdi-database-export-outline:before{content:"󱘬"}.mdi-database-eye:before{content:"󱤟"}.mdi-database-eye-off:before{content:"󱤠"}.mdi-database-eye-off-outline:before{content:"󱤡"}.mdi-database-eye-outline:before{content:"󱤢"}.mdi-database-import:before{content:"󰥝"}.mdi-database-import-outline:before{content:"󱘭"}.mdi-database-lock:before{content:"󰪪"}.mdi-database-lock-outline:before{content:"󱘮"}.mdi-database-marker:before{content:"󱋶"}.mdi-database-marker-outline:before{content:"󱘯"}.mdi-database-minus:before{content:"󰆻"}.mdi-database-minus-outline:before{content:"󱘰"}.mdi-database-off:before{content:"󱙀"}.mdi-database-off-outline:before{content:"󱘱"}.mdi-database-outline:before{content:"󱘲"}.mdi-database-plus:before{content:"󰆺"}.mdi-database-plus-outline:before{content:"󱘳"}.mdi-database-refresh:before{content:"󰗂"}.mdi-database-refresh-outline:before{content:"󱘴"}.mdi-database-remove:before{content:"󰴀"}.mdi-database-remove-outline:before{content:"󱘵"}.mdi-database-search:before{content:"󰡦"}.mdi-database-search-outline:before{content:"󱘶"}.mdi-database-settings:before{content:"󰴁"}.mdi-database-settings-outline:before{content:"󱘷"}.mdi-database-sync:before{content:"󰳿"}.mdi-database-sync-outline:before{content:"󱘸"}.mdi-death-star:before{content:"󰣘"}.mdi-death-star-variant:before{content:"󰣙"}.mdi-deathly-hallows:before{content:"󰮇"}.mdi-debian:before{content:"󰣚"}.mdi-debug-step-into:before{content:"󰆹"}.mdi-debug-step-out:before{content:"󰆸"}.mdi-debug-step-over:before{content:"󰆷"}.mdi-decagram:before{content:"󰝬"}.mdi-decagram-outline:before{content:"󰝭"}.mdi-decimal:before{content:"󱂡"}.mdi-decimal-comma:before{content:"󱂢"}.mdi-decimal-comma-decrease:before{content:"󱂣"}.mdi-decimal-comma-increase:before{content:"󱂤"}.mdi-decimal-decrease:before{content:"󰆶"}.mdi-decimal-increase:before{content:"󰆵"}.mdi-delete:before{content:"󰆴"}.mdi-delete-alert:before{content:"󱂥"}.mdi-delete-alert-outline:before{content:"󱂦"}.mdi-delete-circle:before{content:"󰚃"}.mdi-delete-circle-outline:before{content:"󰮈"}.mdi-delete-clock:before{content:"󱕖"}.mdi-delete-clock-outline:before{content:"󱕗"}.mdi-delete-empty:before{content:"󰛌"}.mdi-delete-empty-outline:before{content:"󰺝"}.mdi-delete-forever:before{content:"󰗨"}.mdi-delete-forever-outline:before{content:"󰮉"}.mdi-delete-off:before{content:"󱂧"}.mdi-delete-off-outline:before{content:"󱂨"}.mdi-delete-outline:before{content:"󰧧"}.mdi-delete-restore:before{content:"󰠙"}.mdi-delete-sweep:before{content:"󰗩"}.mdi-delete-sweep-outline:before{content:"󰱢"}.mdi-delete-variant:before{content:"󰆳"}.mdi-delta:before{content:"󰇂"}.mdi-desk:before{content:"󱈹"}.mdi-desk-lamp:before{content:"󰥟"}.mdi-desk-lamp-off:before{content:"󱬟"}.mdi-desk-lamp-on:before{content:"󱬠"}.mdi-deskphone:before{content:"󰇃"}.mdi-desktop-classic:before{content:"󰟀"}.mdi-desktop-tower:before{content:"󰇅"}.mdi-desktop-tower-monitor:before{content:"󰪫"}.mdi-details:before{content:"󰇆"}.mdi-dev-to:before{content:"󰵮"}.mdi-developer-board:before{content:"󰚗"}.mdi-deviantart:before{content:"󰇇"}.mdi-devices:before{content:"󰾰"}.mdi-dharmachakra:before{content:"󰥋"}.mdi-diabetes:before{content:"󱄦"}.mdi-dialpad:before{content:"󰘜"}.mdi-diameter:before{content:"󰱣"}.mdi-diameter-outline:before{content:"󰱤"}.mdi-diameter-variant:before{content:"󰱥"}.mdi-diamond:before{content:"󰮊"}.mdi-diamond-outline:before{content:"󰮋"}.mdi-diamond-stone:before{content:"󰇈"}.mdi-dice-1:before{content:"󰇊"}.mdi-dice-1-outline:before{content:"󱅊"}.mdi-dice-2:before{content:"󰇋"}.mdi-dice-2-outline:before{content:"󱅋"}.mdi-dice-3:before{content:"󰇌"}.mdi-dice-3-outline:before{content:"󱅌"}.mdi-dice-4:before{content:"󰇍"}.mdi-dice-4-outline:before{content:"󱅍"}.mdi-dice-5:before{content:"󰇎"}.mdi-dice-5-outline:before{content:"󱅎"}.mdi-dice-6:before{content:"󰇏"}.mdi-dice-6-outline:before{content:"󱅏"}.mdi-dice-d10:before{content:"󱅓"}.mdi-dice-d10-outline:before{content:"󰝯"}.mdi-dice-d12:before{content:"󱅔"}.mdi-dice-d12-outline:before{content:"󰡧"}.mdi-dice-d20:before{content:"󱅕"}.mdi-dice-d20-outline:before{content:"󰗪"}.mdi-dice-d4:before{content:"󱅐"}.mdi-dice-d4-outline:before{content:"󰗫"}.mdi-dice-d6:before{content:"󱅑"}.mdi-dice-d6-outline:before{content:"󰗭"}.mdi-dice-d8:before{content:"󱅒"}.mdi-dice-d8-outline:before{content:"󰗬"}.mdi-dice-multiple:before{content:"󰝮"}.mdi-dice-multiple-outline:before{content:"󱅖"}.mdi-digital-ocean:before{content:"󱈷"}.mdi-dip-switch:before{content:"󰟁"}.mdi-directions:before{content:"󰇐"}.mdi-directions-fork:before{content:"󰙁"}.mdi-disc:before{content:"󰗮"}.mdi-disc-alert:before{content:"󰇑"}.mdi-disc-player:before{content:"󰥠"}.mdi-dishwasher:before{content:"󰪬"}.mdi-dishwasher-alert:before{content:"󱆸"}.mdi-dishwasher-off:before{content:"󱆹"}.mdi-disqus:before{content:"󰇒"}.mdi-distribute-horizontal-center:before{content:"󱇉"}.mdi-distribute-horizontal-left:before{content:"󱇈"}.mdi-distribute-horizontal-right:before{content:"󱇊"}.mdi-distribute-vertical-bottom:before{content:"󱇋"}.mdi-distribute-vertical-center:before{content:"󱇌"}.mdi-distribute-vertical-top:before{content:"󱇍"}.mdi-diversify:before{content:"󱡷"}.mdi-diving:before{content:"󱥷"}.mdi-diving-flippers:before{content:"󰶿"}.mdi-diving-helmet:before{content:"󰷀"}.mdi-diving-scuba:before{content:"󱭷"}.mdi-diving-scuba-flag:before{content:"󰷂"}.mdi-diving-scuba-mask:before{content:"󰷁"}.mdi-diving-scuba-tank:before{content:"󰷃"}.mdi-diving-scuba-tank-multiple:before{content:"󰷄"}.mdi-diving-snorkel:before{content:"󰷅"}.mdi-division:before{content:"󰇔"}.mdi-division-box:before{content:"󰇕"}.mdi-dlna:before{content:"󰩁"}.mdi-dna:before{content:"󰚄"}.mdi-dns:before{content:"󰇖"}.mdi-dns-outline:before{content:"󰮌"}.mdi-dock-bottom:before{content:"󱂩"}.mdi-dock-left:before{content:"󱂪"}.mdi-dock-right:before{content:"󱂫"}.mdi-dock-top:before{content:"󱔓"}.mdi-dock-window:before{content:"󱂬"}.mdi-docker:before{content:"󰡨"}.mdi-doctor:before{content:"󰩂"}.mdi-dog:before{content:"󰩃"}.mdi-dog-service:before{content:"󰪭"}.mdi-dog-side:before{content:"󰩄"}.mdi-dog-side-off:before{content:"󱛮"}.mdi-dolby:before{content:"󰚳"}.mdi-dolly:before{content:"󰺞"}.mdi-dolphin:before{content:"󱢴"}.mdi-domain:before{content:"󰇗"}.mdi-domain-off:before{content:"󰵯"}.mdi-domain-plus:before{content:"󱂭"}.mdi-domain-remove:before{content:"󱂮"}.mdi-domain-switch:before{content:"󱰬"}.mdi-dome-light:before{content:"󱐞"}.mdi-domino-mask:before{content:"󱀣"}.mdi-donkey:before{content:"󰟂"}.mdi-door:before{content:"󰠚"}.mdi-door-closed:before{content:"󰠛"}.mdi-door-closed-cancel:before{content:"󱲓"}.mdi-door-closed-lock:before{content:"󱂯"}.mdi-door-open:before{content:"󰠜"}.mdi-door-sliding:before{content:"󱠞"}.mdi-door-sliding-lock:before{content:"󱠟"}.mdi-door-sliding-open:before{content:"󱠠"}.mdi-doorbell:before{content:"󱋦"}.mdi-doorbell-video:before{content:"󰡩"}.mdi-dot-net:before{content:"󰪮"}.mdi-dots-circle:before{content:"󱥸"}.mdi-dots-grid:before{content:"󱗼"}.mdi-dots-hexagon:before{content:"󱗿"}.mdi-dots-horizontal:before{content:"󰇘"}.mdi-dots-horizontal-circle:before{content:"󰟃"}.mdi-dots-horizontal-circle-outline:before{content:"󰮍"}.mdi-dots-square:before{content:"󱗽"}.mdi-dots-triangle:before{content:"󱗾"}.mdi-dots-vertical:before{content:"󰇙"}.mdi-dots-vertical-circle:before{content:"󰟄"}.mdi-dots-vertical-circle-outline:before{content:"󰮎"}.mdi-download:before{content:"󰇚"}.mdi-download-box:before{content:"󱑢"}.mdi-download-box-outline:before{content:"󱑣"}.mdi-download-circle:before{content:"󱑤"}.mdi-download-circle-outline:before{content:"󱑥"}.mdi-download-lock:before{content:"󱌠"}.mdi-download-lock-outline:before{content:"󱌡"}.mdi-download-multiple:before{content:"󰧩"}.mdi-download-network:before{content:"󰛴"}.mdi-download-network-outline:before{content:"󰱦"}.mdi-download-off:before{content:"󱂰"}.mdi-download-off-outline:before{content:"󱂱"}.mdi-download-outline:before{content:"󰮏"}.mdi-drag:before{content:"󰇛"}.mdi-drag-horizontal:before{content:"󰇜"}.mdi-drag-horizontal-variant:before{content:"󱋰"}.mdi-drag-variant:before{content:"󰮐"}.mdi-drag-vertical:before{content:"󰇝"}.mdi-drag-vertical-variant:before{content:"󱋱"}.mdi-drama-masks:before{content:"󰴂"}.mdi-draw:before{content:"󰽉"}.mdi-draw-pen:before{content:"󱦹"}.mdi-drawing:before{content:"󰇞"}.mdi-drawing-box:before{content:"󰇟"}.mdi-dresser:before{content:"󰽊"}.mdi-dresser-outline:before{content:"󰽋"}.mdi-drone:before{content:"󰇢"}.mdi-dropbox:before{content:"󰇣"}.mdi-drupal:before{content:"󰇤"}.mdi-duck:before{content:"󰇥"}.mdi-dumbbell:before{content:"󰇦"}.mdi-dump-truck:before{content:"󰱧"}.mdi-ear-hearing:before{content:"󰟅"}.mdi-ear-hearing-loop:before{content:"󱫮"}.mdi-ear-hearing-off:before{content:"󰩅"}.mdi-earbuds:before{content:"󱡏"}.mdi-earbuds-off:before{content:"󱡐"}.mdi-earbuds-off-outline:before{content:"󱡑"}.mdi-earbuds-outline:before{content:"󱡒"}.mdi-earth:before{content:"󰇧"}.mdi-earth-arrow-down:before{content:"󱲇"}.mdi-earth-arrow-left:before{content:"󱲈"}.mdi-earth-arrow-right:before{content:"󱌑"}.mdi-earth-arrow-up:before{content:"󱲉"}.mdi-earth-box:before{content:"󰛍"}.mdi-earth-box-minus:before{content:"󱐇"}.mdi-earth-box-off:before{content:"󰛎"}.mdi-earth-box-plus:before{content:"󱐆"}.mdi-earth-box-remove:before{content:"󱐈"}.mdi-earth-minus:before{content:"󱐄"}.mdi-earth-off:before{content:"󰇨"}.mdi-earth-plus:before{content:"󱐃"}.mdi-earth-remove:before{content:"󱐅"}.mdi-egg:before{content:"󰪯"}.mdi-egg-easter:before{content:"󰪰"}.mdi-egg-fried:before{content:"󱡊"}.mdi-egg-off:before{content:"󱏰"}.mdi-egg-off-outline:before{content:"󱏱"}.mdi-egg-outline:before{content:"󱏲"}.mdi-eiffel-tower:before{content:"󱕫"}.mdi-eight-track:before{content:"󰧪"}.mdi-eject:before{content:"󰇪"}.mdi-eject-circle:before{content:"󱬣"}.mdi-eject-circle-outline:before{content:"󱬤"}.mdi-eject-outline:before{content:"󰮑"}.mdi-electric-switch:before{content:"󰺟"}.mdi-electric-switch-closed:before{content:"󱃙"}.mdi-electron-framework:before{content:"󱀤"}.mdi-elephant:before{content:"󰟆"}.mdi-elevation-decline:before{content:"󰇫"}.mdi-elevation-rise:before{content:"󰇬"}.mdi-elevator:before{content:"󰇭"}.mdi-elevator-down:before{content:"󱋂"}.mdi-elevator-passenger:before{content:"󱎁"}.mdi-elevator-passenger-off:before{content:"󱥹"}.mdi-elevator-passenger-off-outline:before{content:"󱥺"}.mdi-elevator-passenger-outline:before{content:"󱥻"}.mdi-elevator-up:before{content:"󱋁"}.mdi-ellipse:before{content:"󰺠"}.mdi-ellipse-outline:before{content:"󰺡"}.mdi-email:before{content:"󰇮"}.mdi-email-alert:before{content:"󰛏"}.mdi-email-alert-outline:before{content:"󰵂"}.mdi-email-arrow-left:before{content:"󱃚"}.mdi-email-arrow-left-outline:before{content:"󱃛"}.mdi-email-arrow-right:before{content:"󱃜"}.mdi-email-arrow-right-outline:before{content:"󱃝"}.mdi-email-box:before{content:"󰴃"}.mdi-email-check:before{content:"󰪱"}.mdi-email-check-outline:before{content:"󰪲"}.mdi-email-edit:before{content:"󰻣"}.mdi-email-edit-outline:before{content:"󰻤"}.mdi-email-fast:before{content:"󱡯"}.mdi-email-fast-outline:before{content:"󱡰"}.mdi-email-heart-outline:before{content:"󱱛"}.mdi-email-lock:before{content:"󰇱"}.mdi-email-lock-outline:before{content:"󱭡"}.mdi-email-mark-as-unread:before{content:"󰮒"}.mdi-email-minus:before{content:"󰻥"}.mdi-email-minus-outline:before{content:"󰻦"}.mdi-email-multiple:before{content:"󰻧"}.mdi-email-multiple-outline:before{content:"󰻨"}.mdi-email-newsletter:before{content:"󰾱"}.mdi-email-off:before{content:"󱏣"}.mdi-email-off-outline:before{content:"󱏤"}.mdi-email-open:before{content:"󰇯"}.mdi-email-open-heart-outline:before{content:"󱱜"}.mdi-email-open-multiple:before{content:"󰻩"}.mdi-email-open-multiple-outline:before{content:"󰻪"}.mdi-email-open-outline:before{content:"󰗯"}.mdi-email-outline:before{content:"󰇰"}.mdi-email-plus:before{content:"󰧫"}.mdi-email-plus-outline:before{content:"󰧬"}.mdi-email-remove:before{content:"󱙡"}.mdi-email-remove-outline:before{content:"󱙢"}.mdi-email-seal:before{content:"󱥛"}.mdi-email-seal-outline:before{content:"󱥜"}.mdi-email-search:before{content:"󰥡"}.mdi-email-search-outline:before{content:"󰥢"}.mdi-email-sync:before{content:"󱋇"}.mdi-email-sync-outline:before{content:"󱋈"}.mdi-email-variant:before{content:"󰗰"}.mdi-ember:before{content:"󰬰"}.mdi-emby:before{content:"󰚴"}.mdi-emoticon:before{content:"󰱨"}.mdi-emoticon-angry:before{content:"󰱩"}.mdi-emoticon-angry-outline:before{content:"󰱪"}.mdi-emoticon-confused:before{content:"󱃞"}.mdi-emoticon-confused-outline:before{content:"󱃟"}.mdi-emoticon-cool:before{content:"󰱫"}.mdi-emoticon-cool-outline:before{content:"󰇳"}.mdi-emoticon-cry:before{content:"󰱬"}.mdi-emoticon-cry-outline:before{content:"󰱭"}.mdi-emoticon-dead:before{content:"󰱮"}.mdi-emoticon-dead-outline:before{content:"󰚛"}.mdi-emoticon-devil:before{content:"󰱯"}.mdi-emoticon-devil-outline:before{content:"󰇴"}.mdi-emoticon-excited:before{content:"󰱰"}.mdi-emoticon-excited-outline:before{content:"󰚜"}.mdi-emoticon-frown:before{content:"󰽌"}.mdi-emoticon-frown-outline:before{content:"󰽍"}.mdi-emoticon-happy:before{content:"󰱱"}.mdi-emoticon-happy-outline:before{content:"󰇵"}.mdi-emoticon-kiss:before{content:"󰱲"}.mdi-emoticon-kiss-outline:before{content:"󰱳"}.mdi-emoticon-lol:before{content:"󱈔"}.mdi-emoticon-lol-outline:before{content:"󱈕"}.mdi-emoticon-minus:before{content:"󱲲"}.mdi-emoticon-minus-outline:before{content:"󱲳"}.mdi-emoticon-neutral:before{content:"󰱴"}.mdi-emoticon-neutral-outline:before{content:"󰇶"}.mdi-emoticon-outline:before{content:"󰇲"}.mdi-emoticon-plus:before{content:"󱲴"}.mdi-emoticon-plus-outline:before{content:"󱲵"}.mdi-emoticon-poop:before{content:"󰇷"}.mdi-emoticon-poop-outline:before{content:"󰱵"}.mdi-emoticon-remove:before{content:"󱲶"}.mdi-emoticon-remove-outline:before{content:"󱲷"}.mdi-emoticon-sad:before{content:"󰱶"}.mdi-emoticon-sad-outline:before{content:"󰇸"}.mdi-emoticon-sick:before{content:"󱕼"}.mdi-emoticon-sick-outline:before{content:"󱕽"}.mdi-emoticon-tongue:before{content:"󰇹"}.mdi-emoticon-tongue-outline:before{content:"󰱷"}.mdi-emoticon-wink:before{content:"󰱸"}.mdi-emoticon-wink-outline:before{content:"󰱹"}.mdi-engine:before{content:"󰇺"}.mdi-engine-off:before{content:"󰩆"}.mdi-engine-off-outline:before{content:"󰩇"}.mdi-engine-outline:before{content:"󰇻"}.mdi-epsilon:before{content:"󱃠"}.mdi-equal:before{content:"󰇼"}.mdi-equal-box:before{content:"󰇽"}.mdi-equalizer:before{content:"󰺢"}.mdi-equalizer-outline:before{content:"󰺣"}.mdi-eraser:before{content:"󰇾"}.mdi-eraser-variant:before{content:"󰙂"}.mdi-escalator:before{content:"󰇿"}.mdi-escalator-box:before{content:"󱎙"}.mdi-escalator-down:before{content:"󱋀"}.mdi-escalator-up:before{content:"󱊿"}.mdi-eslint:before{content:"󰱺"}.mdi-et:before{content:"󰪳"}.mdi-ethereum:before{content:"󰡪"}.mdi-ethernet:before{content:"󰈀"}.mdi-ethernet-cable:before{content:"󰈁"}.mdi-ethernet-cable-off:before{content:"󰈂"}.mdi-ev-plug-ccs1:before{content:"󱔙"}.mdi-ev-plug-ccs2:before{content:"󱔚"}.mdi-ev-plug-chademo:before{content:"󱔛"}.mdi-ev-plug-tesla:before{content:"󱔜"}.mdi-ev-plug-type1:before{content:"󱔝"}.mdi-ev-plug-type2:before{content:"󱔞"}.mdi-ev-station:before{content:"󰗱"}.mdi-evernote:before{content:"󰈄"}.mdi-excavator:before{content:"󱀥"}.mdi-exclamation:before{content:"󰈅"}.mdi-exclamation-thick:before{content:"󱈸"}.mdi-exit-run:before{content:"󰩈"}.mdi-exit-to-app:before{content:"󰈆"}.mdi-expand-all:before{content:"󰪴"}.mdi-expand-all-outline:before{content:"󰪵"}.mdi-expansion-card:before{content:"󰢮"}.mdi-expansion-card-variant:before{content:"󰾲"}.mdi-exponent:before{content:"󰥣"}.mdi-exponent-box:before{content:"󰥤"}.mdi-export:before{content:"󰈇"}.mdi-export-variant:before{content:"󰮓"}.mdi-eye:before{content:"󰈈"}.mdi-eye-arrow-left:before{content:"󱣽"}.mdi-eye-arrow-left-outline:before{content:"󱣾"}.mdi-eye-arrow-right:before{content:"󱣿"}.mdi-eye-arrow-right-outline:before{content:"󱤀"}.mdi-eye-check:before{content:"󰴄"}.mdi-eye-check-outline:before{content:"󰴅"}.mdi-eye-circle:before{content:"󰮔"}.mdi-eye-circle-outline:before{content:"󰮕"}.mdi-eye-closed:before{content:"󱲣"}.mdi-eye-lock:before{content:"󱰆"}.mdi-eye-lock-open:before{content:"󱰇"}.mdi-eye-lock-open-outline:before{content:"󱰈"}.mdi-eye-lock-outline:before{content:"󱰉"}.mdi-eye-minus:before{content:"󱀦"}.mdi-eye-minus-outline:before{content:"󱀧"}.mdi-eye-off:before{content:"󰈉"}.mdi-eye-off-outline:before{content:"󰛑"}.mdi-eye-outline:before{content:"󰛐"}.mdi-eye-plus:before{content:"󰡫"}.mdi-eye-plus-outline:before{content:"󰡬"}.mdi-eye-refresh:before{content:"󱥼"}.mdi-eye-refresh-outline:before{content:"󱥽"}.mdi-eye-remove:before{content:"󱗣"}.mdi-eye-remove-outline:before{content:"󱗤"}.mdi-eye-settings:before{content:"󰡭"}.mdi-eye-settings-outline:before{content:"󰡮"}.mdi-eyedropper:before{content:"󰈊"}.mdi-eyedropper-minus:before{content:"󱏝"}.mdi-eyedropper-off:before{content:"󱏟"}.mdi-eyedropper-plus:before{content:"󱏜"}.mdi-eyedropper-remove:before{content:"󱏞"}.mdi-eyedropper-variant:before{content:"󰈋"}.mdi-face-agent:before{content:"󰵰"}.mdi-face-man:before{content:"󰙃"}.mdi-face-man-outline:before{content:"󰮖"}.mdi-face-man-profile:before{content:"󰙄"}.mdi-face-man-shimmer:before{content:"󱗌"}.mdi-face-man-shimmer-outline:before{content:"󱗍"}.mdi-face-mask:before{content:"󱖆"}.mdi-face-mask-outline:before{content:"󱖇"}.mdi-face-recognition:before{content:"󰱻"}.mdi-face-woman:before{content:"󱁷"}.mdi-face-woman-outline:before{content:"󱁸"}.mdi-face-woman-profile:before{content:"󱁶"}.mdi-face-woman-shimmer:before{content:"󱗎"}.mdi-face-woman-shimmer-outline:before{content:"󱗏"}.mdi-facebook:before{content:"󰈌"}.mdi-facebook-gaming:before{content:"󰟝"}.mdi-facebook-messenger:before{content:"󰈎"}.mdi-facebook-workplace:before{content:"󰬱"}.mdi-factory:before{content:"󰈏"}.mdi-family-tree:before{content:"󱘎"}.mdi-fan:before{content:"󰈐"}.mdi-fan-alert:before{content:"󱑬"}.mdi-fan-auto:before{content:"󱜝"}.mdi-fan-chevron-down:before{content:"󱑭"}.mdi-fan-chevron-up:before{content:"󱑮"}.mdi-fan-clock:before{content:"󱨺"}.mdi-fan-minus:before{content:"󱑰"}.mdi-fan-off:before{content:"󰠝"}.mdi-fan-plus:before{content:"󱑯"}.mdi-fan-remove:before{content:"󱑱"}.mdi-fan-speed-1:before{content:"󱑲"}.mdi-fan-speed-2:before{content:"󱑳"}.mdi-fan-speed-3:before{content:"󱑴"}.mdi-fast-forward:before{content:"󰈑"}.mdi-fast-forward-10:before{content:"󰵱"}.mdi-fast-forward-15:before{content:"󱤺"}.mdi-fast-forward-30:before{content:"󰴆"}.mdi-fast-forward-45:before{content:"󱬒"}.mdi-fast-forward-5:before{content:"󱇸"}.mdi-fast-forward-60:before{content:"󱘋"}.mdi-fast-forward-outline:before{content:"󰛒"}.mdi-faucet:before{content:"󱬩"}.mdi-faucet-variant:before{content:"󱬪"}.mdi-fax:before{content:"󰈒"}.mdi-feather:before{content:"󰛓"}.mdi-feature-search:before{content:"󰩉"}.mdi-feature-search-outline:before{content:"󰩊"}.mdi-fedora:before{content:"󰣛"}.mdi-fence:before{content:"󱞚"}.mdi-fence-electric:before{content:"󱟶"}.mdi-fencing:before{content:"󱓁"}.mdi-ferris-wheel:before{content:"󰺤"}.mdi-ferry:before{content:"󰈓"}.mdi-file:before{content:"󰈔"}.mdi-file-account:before{content:"󰜻"}.mdi-file-account-outline:before{content:"󱀨"}.mdi-file-alert:before{content:"󰩋"}.mdi-file-alert-outline:before{content:"󰩌"}.mdi-file-arrow-left-right:before{content:"󱪓"}.mdi-file-arrow-left-right-outline:before{content:"󱪔"}.mdi-file-arrow-up-down:before{content:"󱪕"}.mdi-file-arrow-up-down-outline:before{content:"󱪖"}.mdi-file-cabinet:before{content:"󰪶"}.mdi-file-cad:before{content:"󰻫"}.mdi-file-cad-box:before{content:"󰻬"}.mdi-file-cancel:before{content:"󰷆"}.mdi-file-cancel-outline:before{content:"󰷇"}.mdi-file-certificate:before{content:"󱆆"}.mdi-file-certificate-outline:before{content:"󱆇"}.mdi-file-chart:before{content:"󰈕"}.mdi-file-chart-check:before{content:"󱧆"}.mdi-file-chart-check-outline:before{content:"󱧇"}.mdi-file-chart-outline:before{content:"󱀩"}.mdi-file-check:before{content:"󰈖"}.mdi-file-check-outline:before{content:"󰸩"}.mdi-file-clock:before{content:"󱋡"}.mdi-file-clock-outline:before{content:"󱋢"}.mdi-file-cloud:before{content:"󰈗"}.mdi-file-cloud-outline:before{content:"󱀪"}.mdi-file-code:before{content:"󰈮"}.mdi-file-code-outline:before{content:"󱀫"}.mdi-file-cog:before{content:"󱁻"}.mdi-file-cog-outline:before{content:"󱁼"}.mdi-file-compare:before{content:"󰢪"}.mdi-file-delimited:before{content:"󰈘"}.mdi-file-delimited-outline:before{content:"󰺥"}.mdi-file-document:before{content:"󰈙"}.mdi-file-document-alert:before{content:"󱪗"}.mdi-file-document-alert-outline:before{content:"󱪘"}.mdi-file-document-arrow-right:before{content:"󱰏"}.mdi-file-document-arrow-right-outline:before{content:"󱰐"}.mdi-file-document-check:before{content:"󱪙"}.mdi-file-document-check-outline:before{content:"󱪚"}.mdi-file-document-edit:before{content:"󰷈"}.mdi-file-document-edit-outline:before{content:"󰷉"}.mdi-file-document-minus:before{content:"󱪛"}.mdi-file-document-minus-outline:before{content:"󱪜"}.mdi-file-document-multiple:before{content:"󱔗"}.mdi-file-document-multiple-outline:before{content:"󱔘"}.mdi-file-document-outline:before{content:"󰧮"}.mdi-file-document-plus:before{content:"󱪝"}.mdi-file-document-plus-outline:before{content:"󱪞"}.mdi-file-document-refresh:before{content:"󱱺"}.mdi-file-document-refresh-outline:before{content:"󱱻"}.mdi-file-document-remove:before{content:"󱪟"}.mdi-file-document-remove-outline:before{content:"󱪠"}.mdi-file-download:before{content:"󰥥"}.mdi-file-download-outline:before{content:"󰥦"}.mdi-file-edit:before{content:"󱇧"}.mdi-file-edit-outline:before{content:"󱇨"}.mdi-file-excel:before{content:"󰈛"}.mdi-file-excel-box:before{content:"󰈜"}.mdi-file-excel-box-outline:before{content:"󱀬"}.mdi-file-excel-outline:before{content:"󱀭"}.mdi-file-export:before{content:"󰈝"}.mdi-file-export-outline:before{content:"󱀮"}.mdi-file-eye:before{content:"󰷊"}.mdi-file-eye-outline:before{content:"󰷋"}.mdi-file-find:before{content:"󰈞"}.mdi-file-find-outline:before{content:"󰮗"}.mdi-file-gif-box:before{content:"󰵸"}.mdi-file-hidden:before{content:"󰘓"}.mdi-file-image:before{content:"󰈟"}.mdi-file-image-marker:before{content:"󱝲"}.mdi-file-image-marker-outline:before{content:"󱝳"}.mdi-file-image-minus:before{content:"󱤻"}.mdi-file-image-minus-outline:before{content:"󱤼"}.mdi-file-image-outline:before{content:"󰺰"}.mdi-file-image-plus:before{content:"󱤽"}.mdi-file-image-plus-outline:before{content:"󱤾"}.mdi-file-image-remove:before{content:"󱤿"}.mdi-file-image-remove-outline:before{content:"󱥀"}.mdi-file-import:before{content:"󰈠"}.mdi-file-import-outline:before{content:"󱀯"}.mdi-file-jpg-box:before{content:"󰈥"}.mdi-file-key:before{content:"󱆄"}.mdi-file-key-outline:before{content:"󱆅"}.mdi-file-link:before{content:"󱅷"}.mdi-file-link-outline:before{content:"󱅸"}.mdi-file-lock:before{content:"󰈡"}.mdi-file-lock-open:before{content:"󱧈"}.mdi-file-lock-open-outline:before{content:"󱧉"}.mdi-file-lock-outline:before{content:"󱀰"}.mdi-file-marker:before{content:"󱝴"}.mdi-file-marker-outline:before{content:"󱝵"}.mdi-file-minus:before{content:"󱪡"}.mdi-file-minus-outline:before{content:"󱪢"}.mdi-file-move:before{content:"󰪹"}.mdi-file-move-outline:before{content:"󱀱"}.mdi-file-multiple:before{content:"󰈢"}.mdi-file-multiple-outline:before{content:"󱀲"}.mdi-file-music:before{content:"󰈣"}.mdi-file-music-outline:before{content:"󰸪"}.mdi-file-outline:before{content:"󰈤"}.mdi-file-pdf-box:before{content:"󰈦"}.mdi-file-percent:before{content:"󰠞"}.mdi-file-percent-outline:before{content:"󱀳"}.mdi-file-phone:before{content:"󱅹"}.mdi-file-phone-outline:before{content:"󱅺"}.mdi-file-plus:before{content:"󰝒"}.mdi-file-plus-outline:before{content:"󰻭"}.mdi-file-png-box:before{content:"󰸭"}.mdi-file-powerpoint:before{content:"󰈧"}.mdi-file-powerpoint-box:before{content:"󰈨"}.mdi-file-powerpoint-box-outline:before{content:"󱀴"}.mdi-file-powerpoint-outline:before{content:"󱀵"}.mdi-file-presentation-box:before{content:"󰈩"}.mdi-file-question:before{content:"󰡯"}.mdi-file-question-outline:before{content:"󱀶"}.mdi-file-refresh:before{content:"󰤘"}.mdi-file-refresh-outline:before{content:"󰕁"}.mdi-file-remove:before{content:"󰮘"}.mdi-file-remove-outline:before{content:"󱀷"}.mdi-file-replace:before{content:"󰬲"}.mdi-file-replace-outline:before{content:"󰬳"}.mdi-file-restore:before{content:"󰙰"}.mdi-file-restore-outline:before{content:"󱀸"}.mdi-file-rotate-left:before{content:"󱨻"}.mdi-file-rotate-left-outline:before{content:"󱨼"}.mdi-file-rotate-right:before{content:"󱨽"}.mdi-file-rotate-right-outline:before{content:"󱨾"}.mdi-file-search:before{content:"󰱼"}.mdi-file-search-outline:before{content:"󰱽"}.mdi-file-send:before{content:"󰈪"}.mdi-file-send-outline:before{content:"󱀹"}.mdi-file-settings:before{content:"󱁹"}.mdi-file-settings-outline:before{content:"󱁺"}.mdi-file-sign:before{content:"󱧃"}.mdi-file-star:before{content:"󱀺"}.mdi-file-star-four-points:before{content:"󱰭"}.mdi-file-star-four-points-outline:before{content:"󱰮"}.mdi-file-star-outline:before{content:"󱀻"}.mdi-file-swap:before{content:"󰾴"}.mdi-file-swap-outline:before{content:"󰾵"}.mdi-file-sync:before{content:"󱈖"}.mdi-file-sync-outline:before{content:"󱈗"}.mdi-file-table:before{content:"󰱾"}.mdi-file-table-box:before{content:"󱃡"}.mdi-file-table-box-multiple:before{content:"󱃢"}.mdi-file-table-box-multiple-outline:before{content:"󱃣"}.mdi-file-table-box-outline:before{content:"󱃤"}.mdi-file-table-outline:before{content:"󰱿"}.mdi-file-tree:before{content:"󰙅"}.mdi-file-tree-outline:before{content:"󱏒"}.mdi-file-undo:before{content:"󰣜"}.mdi-file-undo-outline:before{content:"󱀼"}.mdi-file-upload:before{content:"󰩍"}.mdi-file-upload-outline:before{content:"󰩎"}.mdi-file-video:before{content:"󰈫"}.mdi-file-video-outline:before{content:"󰸬"}.mdi-file-word:before{content:"󰈬"}.mdi-file-word-box:before{content:"󰈭"}.mdi-file-word-box-outline:before{content:"󱀽"}.mdi-file-word-outline:before{content:"󱀾"}.mdi-file-xml-box:before{content:"󱭋"}.mdi-film:before{content:"󰈯"}.mdi-filmstrip:before{content:"󰈰"}.mdi-filmstrip-box:before{content:"󰌲"}.mdi-filmstrip-box-multiple:before{content:"󰴘"}.mdi-filmstrip-off:before{content:"󰈱"}.mdi-filter:before{content:"󰈲"}.mdi-filter-check:before{content:"󱣬"}.mdi-filter-check-outline:before{content:"󱣭"}.mdi-filter-cog:before{content:"󱪣"}.mdi-filter-cog-outline:before{content:"󱪤"}.mdi-filter-menu:before{content:"󱃥"}.mdi-filter-menu-outline:before{content:"󱃦"}.mdi-filter-minus:before{content:"󰻮"}.mdi-filter-minus-outline:before{content:"󰻯"}.mdi-filter-multiple:before{content:"󱨿"}.mdi-filter-multiple-outline:before{content:"󱩀"}.mdi-filter-off:before{content:"󱓯"}.mdi-filter-off-outline:before{content:"󱓰"}.mdi-filter-outline:before{content:"󰈳"}.mdi-filter-plus:before{content:"󰻰"}.mdi-filter-plus-outline:before{content:"󰻱"}.mdi-filter-remove:before{content:"󰈴"}.mdi-filter-remove-outline:before{content:"󰈵"}.mdi-filter-settings:before{content:"󱪥"}.mdi-filter-settings-outline:before{content:"󱪦"}.mdi-filter-variant:before{content:"󰈶"}.mdi-filter-variant-minus:before{content:"󱄒"}.mdi-filter-variant-plus:before{content:"󱄓"}.mdi-filter-variant-remove:before{content:"󱀿"}.mdi-finance:before{content:"󰠟"}.mdi-find-replace:before{content:"󰛔"}.mdi-fingerprint:before{content:"󰈷"}.mdi-fingerprint-off:before{content:"󰺱"}.mdi-fire:before{content:"󰈸"}.mdi-fire-alert:before{content:"󱗗"}.mdi-fire-circle:before{content:"󱠇"}.mdi-fire-extinguisher:before{content:"󰻲"}.mdi-fire-hydrant:before{content:"󱄷"}.mdi-fire-hydrant-alert:before{content:"󱄸"}.mdi-fire-hydrant-off:before{content:"󱄹"}.mdi-fire-off:before{content:"󱜢"}.mdi-fire-station:before{content:"󱳃"}.mdi-fire-truck:before{content:"󰢫"}.mdi-firebase:before{content:"󰥧"}.mdi-firefox:before{content:"󰈹"}.mdi-fireplace:before{content:"󰸮"}.mdi-fireplace-off:before{content:"󰸯"}.mdi-firewire:before{content:"󰖾"}.mdi-firework:before{content:"󰸰"}.mdi-firework-off:before{content:"󱜣"}.mdi-fish:before{content:"󰈺"}.mdi-fish-off:before{content:"󱏳"}.mdi-fishbowl:before{content:"󰻳"}.mdi-fishbowl-outline:before{content:"󰻴"}.mdi-fit-to-page:before{content:"󰻵"}.mdi-fit-to-page-outline:before{content:"󰻶"}.mdi-fit-to-screen:before{content:"󱣴"}.mdi-fit-to-screen-outline:before{content:"󱣵"}.mdi-flag:before{content:"󰈻"}.mdi-flag-checkered:before{content:"󰈼"}.mdi-flag-minus:before{content:"󰮙"}.mdi-flag-minus-outline:before{content:"󱂲"}.mdi-flag-off:before{content:"󱣮"}.mdi-flag-off-outline:before{content:"󱣯"}.mdi-flag-outline:before{content:"󰈽"}.mdi-flag-plus:before{content:"󰮚"}.mdi-flag-plus-outline:before{content:"󱂳"}.mdi-flag-remove:before{content:"󰮛"}.mdi-flag-remove-outline:before{content:"󱂴"}.mdi-flag-triangle:before{content:"󰈿"}.mdi-flag-variant:before{content:"󰉀"}.mdi-flag-variant-minus:before{content:"󱮴"}.mdi-flag-variant-minus-outline:before{content:"󱮵"}.mdi-flag-variant-off:before{content:"󱮰"}.mdi-flag-variant-off-outline:before{content:"󱮱"}.mdi-flag-variant-outline:before{content:"󰈾"}.mdi-flag-variant-plus:before{content:"󱮲"}.mdi-flag-variant-plus-outline:before{content:"󱮳"}.mdi-flag-variant-remove:before{content:"󱮶"}.mdi-flag-variant-remove-outline:before{content:"󱮷"}.mdi-flare:before{content:"󰵲"}.mdi-flash:before{content:"󰉁"}.mdi-flash-alert:before{content:"󰻷"}.mdi-flash-alert-outline:before{content:"󰻸"}.mdi-flash-auto:before{content:"󰉂"}.mdi-flash-off:before{content:"󰉃"}.mdi-flash-off-outline:before{content:"󱭅"}.mdi-flash-outline:before{content:"󰛕"}.mdi-flash-red-eye:before{content:"󰙻"}.mdi-flash-triangle:before{content:"󱬝"}.mdi-flash-triangle-outline:before{content:"󱬞"}.mdi-flashlight:before{content:"󰉄"}.mdi-flashlight-off:before{content:"󰉅"}.mdi-flask:before{content:"󰂓"}.mdi-flask-empty:before{content:"󰂔"}.mdi-flask-empty-minus:before{content:"󱈺"}.mdi-flask-empty-minus-outline:before{content:"󱈻"}.mdi-flask-empty-off:before{content:"󱏴"}.mdi-flask-empty-off-outline:before{content:"󱏵"}.mdi-flask-empty-outline:before{content:"󰂕"}.mdi-flask-empty-plus:before{content:"󱈼"}.mdi-flask-empty-plus-outline:before{content:"󱈽"}.mdi-flask-empty-remove:before{content:"󱈾"}.mdi-flask-empty-remove-outline:before{content:"󱈿"}.mdi-flask-minus:before{content:"󱉀"}.mdi-flask-minus-outline:before{content:"󱉁"}.mdi-flask-off:before{content:"󱏶"}.mdi-flask-off-outline:before{content:"󱏷"}.mdi-flask-outline:before{content:"󰂖"}.mdi-flask-plus:before{content:"󱉂"}.mdi-flask-plus-outline:before{content:"󱉃"}.mdi-flask-remove:before{content:"󱉄"}.mdi-flask-remove-outline:before{content:"󱉅"}.mdi-flask-round-bottom:before{content:"󱉋"}.mdi-flask-round-bottom-empty:before{content:"󱉌"}.mdi-flask-round-bottom-empty-outline:before{content:"󱉍"}.mdi-flask-round-bottom-outline:before{content:"󱉎"}.mdi-fleur-de-lis:before{content:"󱌃"}.mdi-flip-horizontal:before{content:"󱃧"}.mdi-flip-to-back:before{content:"󰉇"}.mdi-flip-to-front:before{content:"󰉈"}.mdi-flip-vertical:before{content:"󱃨"}.mdi-floor-lamp:before{content:"󰣝"}.mdi-floor-lamp-dual:before{content:"󱁀"}.mdi-floor-lamp-dual-outline:before{content:"󱟎"}.mdi-floor-lamp-outline:before{content:"󱟈"}.mdi-floor-lamp-torchiere:before{content:"󱝇"}.mdi-floor-lamp-torchiere-outline:before{content:"󱟖"}.mdi-floor-lamp-torchiere-variant:before{content:"󱁁"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"󱟏"}.mdi-floor-plan:before{content:"󰠡"}.mdi-floppy:before{content:"󰉉"}.mdi-floppy-variant:before{content:"󰧯"}.mdi-flower:before{content:"󰉊"}.mdi-flower-outline:before{content:"󰧰"}.mdi-flower-pollen:before{content:"󱢅"}.mdi-flower-pollen-outline:before{content:"󱢆"}.mdi-flower-poppy:before{content:"󰴈"}.mdi-flower-tulip:before{content:"󰧱"}.mdi-flower-tulip-outline:before{content:"󰧲"}.mdi-focus-auto:before{content:"󰽎"}.mdi-focus-field:before{content:"󰽏"}.mdi-focus-field-horizontal:before{content:"󰽐"}.mdi-focus-field-vertical:before{content:"󰽑"}.mdi-folder:before{content:"󰉋"}.mdi-folder-account:before{content:"󰉌"}.mdi-folder-account-outline:before{content:"󰮜"}.mdi-folder-alert:before{content:"󰷌"}.mdi-folder-alert-outline:before{content:"󰷍"}.mdi-folder-arrow-down:before{content:"󱧨"}.mdi-folder-arrow-down-outline:before{content:"󱧩"}.mdi-folder-arrow-left:before{content:"󱧪"}.mdi-folder-arrow-left-outline:before{content:"󱧫"}.mdi-folder-arrow-left-right:before{content:"󱧬"}.mdi-folder-arrow-left-right-outline:before{content:"󱧭"}.mdi-folder-arrow-right:before{content:"󱧮"}.mdi-folder-arrow-right-outline:before{content:"󱧯"}.mdi-folder-arrow-up:before{content:"󱧰"}.mdi-folder-arrow-up-down:before{content:"󱧱"}.mdi-folder-arrow-up-down-outline:before{content:"󱧲"}.mdi-folder-arrow-up-outline:before{content:"󱧳"}.mdi-folder-cancel:before{content:"󱧴"}.mdi-folder-cancel-outline:before{content:"󱧵"}.mdi-folder-check:before{content:"󱥾"}.mdi-folder-check-outline:before{content:"󱥿"}.mdi-folder-clock:before{content:"󰪺"}.mdi-folder-clock-outline:before{content:"󰪻"}.mdi-folder-cog:before{content:"󱁿"}.mdi-folder-cog-outline:before{content:"󱂀"}.mdi-folder-download:before{content:"󰉍"}.mdi-folder-download-outline:before{content:"󱃩"}.mdi-folder-edit:before{content:"󰣞"}.mdi-folder-edit-outline:before{content:"󰷎"}.mdi-folder-eye:before{content:"󱞊"}.mdi-folder-eye-outline:before{content:"󱞋"}.mdi-folder-file:before{content:"󱧶"}.mdi-folder-file-outline:before{content:"󱧷"}.mdi-folder-google-drive:before{content:"󰉎"}.mdi-folder-heart:before{content:"󱃪"}.mdi-folder-heart-outline:before{content:"󱃫"}.mdi-folder-hidden:before{content:"󱞞"}.mdi-folder-home:before{content:"󱂵"}.mdi-folder-home-outline:before{content:"󱂶"}.mdi-folder-image:before{content:"󰉏"}.mdi-folder-information:before{content:"󱂷"}.mdi-folder-information-outline:before{content:"󱂸"}.mdi-folder-key:before{content:"󰢬"}.mdi-folder-key-network:before{content:"󰢭"}.mdi-folder-key-network-outline:before{content:"󰲀"}.mdi-folder-key-outline:before{content:"󱃬"}.mdi-folder-lock:before{content:"󰉐"}.mdi-folder-lock-open:before{content:"󰉑"}.mdi-folder-lock-open-outline:before{content:"󱪧"}.mdi-folder-lock-outline:before{content:"󱪨"}.mdi-folder-marker:before{content:"󱉭"}.mdi-folder-marker-outline:before{content:"󱉮"}.mdi-folder-minus:before{content:"󱭉"}.mdi-folder-minus-outline:before{content:"󱭊"}.mdi-folder-move:before{content:"󰉒"}.mdi-folder-move-outline:before{content:"󱉆"}.mdi-folder-multiple:before{content:"󰉓"}.mdi-folder-multiple-image:before{content:"󰉔"}.mdi-folder-multiple-outline:before{content:"󰉕"}.mdi-folder-multiple-plus:before{content:"󱑾"}.mdi-folder-multiple-plus-outline:before{content:"󱑿"}.mdi-folder-music:before{content:"󱍙"}.mdi-folder-music-outline:before{content:"󱍚"}.mdi-folder-network:before{content:"󰡰"}.mdi-folder-network-outline:before{content:"󰲁"}.mdi-folder-off:before{content:"󱧸"}.mdi-folder-off-outline:before{content:"󱧹"}.mdi-folder-open:before{content:"󰝰"}.mdi-folder-open-outline:before{content:"󰷏"}.mdi-folder-outline:before{content:"󰉖"}.mdi-folder-play:before{content:"󱧺"}.mdi-folder-play-outline:before{content:"󱧻"}.mdi-folder-plus:before{content:"󰉗"}.mdi-folder-plus-outline:before{content:"󰮝"}.mdi-folder-pound:before{content:"󰴉"}.mdi-folder-pound-outline:before{content:"󰴊"}.mdi-folder-question:before{content:"󱧊"}.mdi-folder-question-outline:before{content:"󱧋"}.mdi-folder-refresh:before{content:"󰝉"}.mdi-folder-refresh-outline:before{content:"󰕂"}.mdi-folder-remove:before{content:"󰉘"}.mdi-folder-remove-outline:before{content:"󰮞"}.mdi-folder-search:before{content:"󰥨"}.mdi-folder-search-outline:before{content:"󰥩"}.mdi-folder-settings:before{content:"󱁽"}.mdi-folder-settings-outline:before{content:"󱁾"}.mdi-folder-star:before{content:"󰚝"}.mdi-folder-star-multiple:before{content:"󱏓"}.mdi-folder-star-multiple-outline:before{content:"󱏔"}.mdi-folder-star-outline:before{content:"󰮟"}.mdi-folder-swap:before{content:"󰾶"}.mdi-folder-swap-outline:before{content:"󰾷"}.mdi-folder-sync:before{content:"󰴋"}.mdi-folder-sync-outline:before{content:"󰴌"}.mdi-folder-table:before{content:"󱋣"}.mdi-folder-table-outline:before{content:"󱋤"}.mdi-folder-text:before{content:"󰲂"}.mdi-folder-text-outline:before{content:"󰲃"}.mdi-folder-upload:before{content:"󰉙"}.mdi-folder-upload-outline:before{content:"󱃭"}.mdi-folder-wrench:before{content:"󱧼"}.mdi-folder-wrench-outline:before{content:"󱧽"}.mdi-folder-zip:before{content:"󰛫"}.mdi-folder-zip-outline:before{content:"󰞹"}.mdi-font-awesome:before{content:"󰀺"}.mdi-food:before{content:"󰉚"}.mdi-food-apple:before{content:"󰉛"}.mdi-food-apple-outline:before{content:"󰲄"}.mdi-food-croissant:before{content:"󰟈"}.mdi-food-drumstick:before{content:"󱐟"}.mdi-food-drumstick-off:before{content:"󱑨"}.mdi-food-drumstick-off-outline:before{content:"󱑩"}.mdi-food-drumstick-outline:before{content:"󱐠"}.mdi-food-fork-drink:before{content:"󰗲"}.mdi-food-halal:before{content:"󱕲"}.mdi-food-hot-dog:before{content:"󱡋"}.mdi-food-kosher:before{content:"󱕳"}.mdi-food-off:before{content:"󰗳"}.mdi-food-off-outline:before{content:"󱤕"}.mdi-food-outline:before{content:"󱤖"}.mdi-food-steak:before{content:"󱑪"}.mdi-food-steak-off:before{content:"󱑫"}.mdi-food-takeout-box:before{content:"󱠶"}.mdi-food-takeout-box-outline:before{content:"󱠷"}.mdi-food-turkey:before{content:"󱜜"}.mdi-food-variant:before{content:"󰉜"}.mdi-food-variant-off:before{content:"󱏥"}.mdi-foot-print:before{content:"󰽒"}.mdi-football:before{content:"󰉝"}.mdi-football-australian:before{content:"󰉞"}.mdi-football-helmet:before{content:"󰉟"}.mdi-forest:before{content:"󱢗"}.mdi-forest-outline:before{content:"󱱣"}.mdi-forklift:before{content:"󰟉"}.mdi-form-dropdown:before{content:"󱐀"}.mdi-form-select:before{content:"󱐁"}.mdi-form-textarea:before{content:"󱂕"}.mdi-form-textbox:before{content:"󰘎"}.mdi-form-textbox-lock:before{content:"󱍝"}.mdi-form-textbox-password:before{content:"󰟵"}.mdi-format-align-bottom:before{content:"󰝓"}.mdi-format-align-center:before{content:"󰉠"}.mdi-format-align-justify:before{content:"󰉡"}.mdi-format-align-left:before{content:"󰉢"}.mdi-format-align-middle:before{content:"󰝔"}.mdi-format-align-right:before{content:"󰉣"}.mdi-format-align-top:before{content:"󰝕"}.mdi-format-annotation-minus:before{content:"󰪼"}.mdi-format-annotation-plus:before{content:"󰙆"}.mdi-format-bold:before{content:"󰉤"}.mdi-format-clear:before{content:"󰉥"}.mdi-format-color-fill:before{content:"󰉦"}.mdi-format-color-highlight:before{content:"󰸱"}.mdi-format-color-marker-cancel:before{content:"󱌓"}.mdi-format-color-text:before{content:"󰚞"}.mdi-format-columns:before{content:"󰣟"}.mdi-format-float-center:before{content:"󰉧"}.mdi-format-float-left:before{content:"󰉨"}.mdi-format-float-none:before{content:"󰉩"}.mdi-format-float-right:before{content:"󰉪"}.mdi-format-font:before{content:"󰛖"}.mdi-format-font-size-decrease:before{content:"󰧳"}.mdi-format-font-size-increase:before{content:"󰧴"}.mdi-format-header-1:before{content:"󰉫"}.mdi-format-header-2:before{content:"󰉬"}.mdi-format-header-3:before{content:"󰉭"}.mdi-format-header-4:before{content:"󰉮"}.mdi-format-header-5:before{content:"󰉯"}.mdi-format-header-6:before{content:"󰉰"}.mdi-format-header-decrease:before{content:"󰉱"}.mdi-format-header-equal:before{content:"󰉲"}.mdi-format-header-increase:before{content:"󰉳"}.mdi-format-header-pound:before{content:"󰉴"}.mdi-format-horizontal-align-center:before{content:"󰘞"}.mdi-format-horizontal-align-left:before{content:"󰘟"}.mdi-format-horizontal-align-right:before{content:"󰘠"}.mdi-format-indent-decrease:before{content:"󰉵"}.mdi-format-indent-increase:before{content:"󰉶"}.mdi-format-italic:before{content:"󰉷"}.mdi-format-letter-case:before{content:"󰬴"}.mdi-format-letter-case-lower:before{content:"󰬵"}.mdi-format-letter-case-upper:before{content:"󰬶"}.mdi-format-letter-ends-with:before{content:"󰾸"}.mdi-format-letter-matches:before{content:"󰾹"}.mdi-format-letter-spacing:before{content:"󱥖"}.mdi-format-letter-spacing-variant:before{content:"󱫻"}.mdi-format-letter-starts-with:before{content:"󰾺"}.mdi-format-line-height:before{content:"󱫼"}.mdi-format-line-spacing:before{content:"󰉸"}.mdi-format-line-style:before{content:"󰗈"}.mdi-format-line-weight:before{content:"󰗉"}.mdi-format-list-bulleted:before{content:"󰉹"}.mdi-format-list-bulleted-square:before{content:"󰷐"}.mdi-format-list-bulleted-triangle:before{content:"󰺲"}.mdi-format-list-bulleted-type:before{content:"󰉺"}.mdi-format-list-checkbox:before{content:"󰥪"}.mdi-format-list-checks:before{content:"󰝖"}.mdi-format-list-group:before{content:"󱡠"}.mdi-format-list-group-plus:before{content:"󱭖"}.mdi-format-list-numbered:before{content:"󰉻"}.mdi-format-list-numbered-rtl:before{content:"󰴍"}.mdi-format-list-text:before{content:"󱉯"}.mdi-format-overline:before{content:"󰺳"}.mdi-format-page-break:before{content:"󰛗"}.mdi-format-page-split:before{content:"󱤗"}.mdi-format-paint:before{content:"󰉼"}.mdi-format-paragraph:before{content:"󰉽"}.mdi-format-paragraph-spacing:before{content:"󱫽"}.mdi-format-pilcrow:before{content:"󰛘"}.mdi-format-pilcrow-arrow-left:before{content:"󰊆"}.mdi-format-pilcrow-arrow-right:before{content:"󰊅"}.mdi-format-quote-close:before{content:"󰉾"}.mdi-format-quote-close-outline:before{content:"󱆨"}.mdi-format-quote-open:before{content:"󰝗"}.mdi-format-quote-open-outline:before{content:"󱆧"}.mdi-format-rotate-90:before{content:"󰚪"}.mdi-format-section:before{content:"󰚟"}.mdi-format-size:before{content:"󰉿"}.mdi-format-strikethrough:before{content:"󰊀"}.mdi-format-strikethrough-variant:before{content:"󰊁"}.mdi-format-subscript:before{content:"󰊂"}.mdi-format-superscript:before{content:"󰊃"}.mdi-format-text:before{content:"󰊄"}.mdi-format-text-rotation-angle-down:before{content:"󰾻"}.mdi-format-text-rotation-angle-up:before{content:"󰾼"}.mdi-format-text-rotation-down:before{content:"󰵳"}.mdi-format-text-rotation-down-vertical:before{content:"󰾽"}.mdi-format-text-rotation-none:before{content:"󰵴"}.mdi-format-text-rotation-up:before{content:"󰾾"}.mdi-format-text-rotation-vertical:before{content:"󰾿"}.mdi-format-text-variant:before{content:"󰸲"}.mdi-format-text-variant-outline:before{content:"󱔏"}.mdi-format-text-wrapping-clip:before{content:"󰴎"}.mdi-format-text-wrapping-overflow:before{content:"󰴏"}.mdi-format-text-wrapping-wrap:before{content:"󰴐"}.mdi-format-textbox:before{content:"󰴑"}.mdi-format-title:before{content:"󰗴"}.mdi-format-underline:before{content:"󰊇"}.mdi-format-underline-wavy:before{content:"󱣩"}.mdi-format-vertical-align-bottom:before{content:"󰘡"}.mdi-format-vertical-align-center:before{content:"󰘢"}.mdi-format-vertical-align-top:before{content:"󰘣"}.mdi-format-wrap-inline:before{content:"󰊈"}.mdi-format-wrap-square:before{content:"󰊉"}.mdi-format-wrap-tight:before{content:"󰊊"}.mdi-format-wrap-top-bottom:before{content:"󰊋"}.mdi-forum:before{content:"󰊌"}.mdi-forum-minus:before{content:"󱪩"}.mdi-forum-minus-outline:before{content:"󱪪"}.mdi-forum-outline:before{content:"󰠢"}.mdi-forum-plus:before{content:"󱪫"}.mdi-forum-plus-outline:before{content:"󱪬"}.mdi-forum-remove:before{content:"󱪭"}.mdi-forum-remove-outline:before{content:"󱪮"}.mdi-forward:before{content:"󰊍"}.mdi-forwardburger:before{content:"󰵵"}.mdi-fountain:before{content:"󰥫"}.mdi-fountain-pen:before{content:"󰴒"}.mdi-fountain-pen-tip:before{content:"󰴓"}.mdi-fraction-one-half:before{content:"󱦒"}.mdi-freebsd:before{content:"󰣠"}.mdi-french-fries:before{content:"󱥗"}.mdi-frequently-asked-questions:before{content:"󰺴"}.mdi-fridge:before{content:"󰊐"}.mdi-fridge-alert:before{content:"󱆱"}.mdi-fridge-alert-outline:before{content:"󱆲"}.mdi-fridge-bottom:before{content:"󰊒"}.mdi-fridge-industrial:before{content:"󱗮"}.mdi-fridge-industrial-alert:before{content:"󱗯"}.mdi-fridge-industrial-alert-outline:before{content:"󱗰"}.mdi-fridge-industrial-off:before{content:"󱗱"}.mdi-fridge-industrial-off-outline:before{content:"󱗲"}.mdi-fridge-industrial-outline:before{content:"󱗳"}.mdi-fridge-off:before{content:"󱆯"}.mdi-fridge-off-outline:before{content:"󱆰"}.mdi-fridge-outline:before{content:"󰊏"}.mdi-fridge-top:before{content:"󰊑"}.mdi-fridge-variant:before{content:"󱗴"}.mdi-fridge-variant-alert:before{content:"󱗵"}.mdi-fridge-variant-alert-outline:before{content:"󱗶"}.mdi-fridge-variant-off:before{content:"󱗷"}.mdi-fridge-variant-off-outline:before{content:"󱗸"}.mdi-fridge-variant-outline:before{content:"󱗹"}.mdi-fruit-cherries:before{content:"󱁂"}.mdi-fruit-cherries-off:before{content:"󱏸"}.mdi-fruit-citrus:before{content:"󱁃"}.mdi-fruit-citrus-off:before{content:"󱏹"}.mdi-fruit-grapes:before{content:"󱁄"}.mdi-fruit-grapes-outline:before{content:"󱁅"}.mdi-fruit-pear:before{content:"󱨎"}.mdi-fruit-pineapple:before{content:"󱁆"}.mdi-fruit-watermelon:before{content:"󱁇"}.mdi-fuel:before{content:"󰟊"}.mdi-fuel-cell:before{content:"󱢵"}.mdi-fullscreen:before{content:"󰊓"}.mdi-fullscreen-exit:before{content:"󰊔"}.mdi-function:before{content:"󰊕"}.mdi-function-variant:before{content:"󰡱"}.mdi-furigana-horizontal:before{content:"󱂁"}.mdi-furigana-vertical:before{content:"󱂂"}.mdi-fuse:before{content:"󰲅"}.mdi-fuse-alert:before{content:"󱐭"}.mdi-fuse-blade:before{content:"󰲆"}.mdi-fuse-off:before{content:"󱐬"}.mdi-gamepad:before{content:"󰊖"}.mdi-gamepad-circle:before{content:"󰸳"}.mdi-gamepad-circle-down:before{content:"󰸴"}.mdi-gamepad-circle-left:before{content:"󰸵"}.mdi-gamepad-circle-outline:before{content:"󰸶"}.mdi-gamepad-circle-right:before{content:"󰸷"}.mdi-gamepad-circle-up:before{content:"󰸸"}.mdi-gamepad-down:before{content:"󰸹"}.mdi-gamepad-left:before{content:"󰸺"}.mdi-gamepad-outline:before{content:"󱤙"}.mdi-gamepad-right:before{content:"󰸻"}.mdi-gamepad-round:before{content:"󰸼"}.mdi-gamepad-round-down:before{content:"󰸽"}.mdi-gamepad-round-left:before{content:"󰸾"}.mdi-gamepad-round-outline:before{content:"󰸿"}.mdi-gamepad-round-right:before{content:"󰹀"}.mdi-gamepad-round-up:before{content:"󰹁"}.mdi-gamepad-square:before{content:"󰺵"}.mdi-gamepad-square-outline:before{content:"󰺶"}.mdi-gamepad-up:before{content:"󰹂"}.mdi-gamepad-variant:before{content:"󰊗"}.mdi-gamepad-variant-outline:before{content:"󰺷"}.mdi-gamma:before{content:"󱃮"}.mdi-gantry-crane:before{content:"󰷑"}.mdi-garage:before{content:"󰛙"}.mdi-garage-alert:before{content:"󰡲"}.mdi-garage-alert-variant:before{content:"󱋕"}.mdi-garage-lock:before{content:"󱟻"}.mdi-garage-open:before{content:"󰛚"}.mdi-garage-open-variant:before{content:"󱋔"}.mdi-garage-variant:before{content:"󱋓"}.mdi-garage-variant-lock:before{content:"󱟼"}.mdi-gas-burner:before{content:"󱨛"}.mdi-gas-cylinder:before{content:"󰙇"}.mdi-gas-station:before{content:"󰊘"}.mdi-gas-station-in-use:before{content:"󱳄"}.mdi-gas-station-in-use-outline:before{content:"󱳅"}.mdi-gas-station-off:before{content:"󱐉"}.mdi-gas-station-off-outline:before{content:"󱐊"}.mdi-gas-station-outline:before{content:"󰺸"}.mdi-gate:before{content:"󰊙"}.mdi-gate-alert:before{content:"󱟸"}.mdi-gate-and:before{content:"󰣡"}.mdi-gate-arrow-left:before{content:"󱟷"}.mdi-gate-arrow-right:before{content:"󱅩"}.mdi-gate-buffer:before{content:"󱫾"}.mdi-gate-nand:before{content:"󰣢"}.mdi-gate-nor:before{content:"󰣣"}.mdi-gate-not:before{content:"󰣤"}.mdi-gate-open:before{content:"󱅪"}.mdi-gate-or:before{content:"󰣥"}.mdi-gate-xnor:before{content:"󰣦"}.mdi-gate-xor:before{content:"󰣧"}.mdi-gatsby:before{content:"󰹃"}.mdi-gauge:before{content:"󰊚"}.mdi-gauge-empty:before{content:"󰡳"}.mdi-gauge-full:before{content:"󰡴"}.mdi-gauge-low:before{content:"󰡵"}.mdi-gavel:before{content:"󰊛"}.mdi-gender-female:before{content:"󰊜"}.mdi-gender-male:before{content:"󰊝"}.mdi-gender-male-female:before{content:"󰊞"}.mdi-gender-male-female-variant:before{content:"󱄿"}.mdi-gender-non-binary:before{content:"󱅀"}.mdi-gender-transgender:before{content:"󰊟"}.mdi-generator-mobile:before{content:"󱲊"}.mdi-generator-portable:before{content:"󱲋"}.mdi-generator-stationary:before{content:"󱲌"}.mdi-gentoo:before{content:"󰣨"}.mdi-gesture:before{content:"󰟋"}.mdi-gesture-double-tap:before{content:"󰜼"}.mdi-gesture-pinch:before{content:"󰪽"}.mdi-gesture-spread:before{content:"󰪾"}.mdi-gesture-swipe:before{content:"󰵶"}.mdi-gesture-swipe-down:before{content:"󰜽"}.mdi-gesture-swipe-horizontal:before{content:"󰪿"}.mdi-gesture-swipe-left:before{content:"󰜾"}.mdi-gesture-swipe-right:before{content:"󰜿"}.mdi-gesture-swipe-up:before{content:"󰝀"}.mdi-gesture-swipe-vertical:before{content:"󰫀"}.mdi-gesture-tap:before{content:"󰝁"}.mdi-gesture-tap-box:before{content:"󱊩"}.mdi-gesture-tap-button:before{content:"󱊨"}.mdi-gesture-tap-hold:before{content:"󰵷"}.mdi-gesture-two-double-tap:before{content:"󰝂"}.mdi-gesture-two-tap:before{content:"󰝃"}.mdi-ghost:before{content:"󰊠"}.mdi-ghost-off:before{content:"󰧵"}.mdi-ghost-off-outline:before{content:"󱙜"}.mdi-ghost-outline:before{content:"󱙝"}.mdi-gift:before{content:"󰹄"}.mdi-gift-off:before{content:"󱛯"}.mdi-gift-off-outline:before{content:"󱛰"}.mdi-gift-open:before{content:"󱛱"}.mdi-gift-open-outline:before{content:"󱛲"}.mdi-gift-outline:before{content:"󰊡"}.mdi-git:before{content:"󰊢"}.mdi-github:before{content:"󰊤"}.mdi-gitlab:before{content:"󰮠"}.mdi-glass-cocktail:before{content:"󰍖"}.mdi-glass-cocktail-off:before{content:"󱗦"}.mdi-glass-flute:before{content:"󰊥"}.mdi-glass-fragile:before{content:"󱡳"}.mdi-glass-mug:before{content:"󰊦"}.mdi-glass-mug-off:before{content:"󱗧"}.mdi-glass-mug-variant:before{content:"󱄖"}.mdi-glass-mug-variant-off:before{content:"󱗨"}.mdi-glass-pint-outline:before{content:"󱌍"}.mdi-glass-stange:before{content:"󰊧"}.mdi-glass-tulip:before{content:"󰊨"}.mdi-glass-wine:before{content:"󰡶"}.mdi-glasses:before{content:"󰊪"}.mdi-globe-light:before{content:"󰙯"}.mdi-globe-light-outline:before{content:"󱋗"}.mdi-globe-model:before{content:"󰣩"}.mdi-gmail:before{content:"󰊫"}.mdi-gnome:before{content:"󰊬"}.mdi-go-kart:before{content:"󰵹"}.mdi-go-kart-track:before{content:"󰵺"}.mdi-gog:before{content:"󰮡"}.mdi-gold:before{content:"󱉏"}.mdi-golf:before{content:"󰠣"}.mdi-golf-cart:before{content:"󱆤"}.mdi-golf-tee:before{content:"󱂃"}.mdi-gondola:before{content:"󰚆"}.mdi-goodreads:before{content:"󰵻"}.mdi-google:before{content:"󰊭"}.mdi-google-ads:before{content:"󰲇"}.mdi-google-analytics:before{content:"󰟌"}.mdi-google-assistant:before{content:"󰟍"}.mdi-google-cardboard:before{content:"󰊮"}.mdi-google-chrome:before{content:"󰊯"}.mdi-google-circles:before{content:"󰊰"}.mdi-google-circles-communities:before{content:"󰊱"}.mdi-google-circles-extended:before{content:"󰊲"}.mdi-google-circles-group:before{content:"󰊳"}.mdi-google-classroom:before{content:"󰋀"}.mdi-google-cloud:before{content:"󱇶"}.mdi-google-downasaur:before{content:"󱍢"}.mdi-google-drive:before{content:"󰊶"}.mdi-google-earth:before{content:"󰊷"}.mdi-google-fit:before{content:"󰥬"}.mdi-google-glass:before{content:"󰊸"}.mdi-google-hangouts:before{content:"󰋉"}.mdi-google-keep:before{content:"󰛜"}.mdi-google-lens:before{content:"󰧶"}.mdi-google-maps:before{content:"󰗵"}.mdi-google-my-business:before{content:"󱁈"}.mdi-google-nearby:before{content:"󰊹"}.mdi-google-play:before{content:"󰊼"}.mdi-google-plus:before{content:"󰊽"}.mdi-google-podcast:before{content:"󰺹"}.mdi-google-spreadsheet:before{content:"󰧷"}.mdi-google-street-view:before{content:"󰲈"}.mdi-google-translate:before{content:"󰊿"}.mdi-gradient-horizontal:before{content:"󱝊"}.mdi-gradient-vertical:before{content:"󰚠"}.mdi-grain:before{content:"󰵼"}.mdi-graph:before{content:"󱁉"}.mdi-graph-outline:before{content:"󱁊"}.mdi-graphql:before{content:"󰡷"}.mdi-grass:before{content:"󱔐"}.mdi-grave-stone:before{content:"󰮢"}.mdi-grease-pencil:before{content:"󰙈"}.mdi-greater-than:before{content:"󰥭"}.mdi-greater-than-or-equal:before{content:"󰥮"}.mdi-greenhouse:before{content:"󰀭"}.mdi-grid:before{content:"󰋁"}.mdi-grid-large:before{content:"󰝘"}.mdi-grid-off:before{content:"󰋂"}.mdi-grill:before{content:"󰹅"}.mdi-grill-outline:before{content:"󱆊"}.mdi-group:before{content:"󰋃"}.mdi-guitar-acoustic:before{content:"󰝱"}.mdi-guitar-electric:before{content:"󰋄"}.mdi-guitar-pick:before{content:"󰋅"}.mdi-guitar-pick-outline:before{content:"󰋆"}.mdi-guy-fawkes-mask:before{content:"󰠥"}.mdi-gymnastics:before{content:"󱩁"}.mdi-hail:before{content:"󰫁"}.mdi-hair-dryer:before{content:"󱃯"}.mdi-hair-dryer-outline:before{content:"󱃰"}.mdi-halloween:before{content:"󰮣"}.mdi-hamburger:before{content:"󰚅"}.mdi-hamburger-check:before{content:"󱝶"}.mdi-hamburger-minus:before{content:"󱝷"}.mdi-hamburger-off:before{content:"󱝸"}.mdi-hamburger-plus:before{content:"󱝹"}.mdi-hamburger-remove:before{content:"󱝺"}.mdi-hammer:before{content:"󰣪"}.mdi-hammer-screwdriver:before{content:"󱌢"}.mdi-hammer-sickle:before{content:"󱢇"}.mdi-hammer-wrench:before{content:"󱌣"}.mdi-hand-back-left:before{content:"󰹆"}.mdi-hand-back-left-off:before{content:"󱠰"}.mdi-hand-back-left-off-outline:before{content:"󱠲"}.mdi-hand-back-left-outline:before{content:"󱠬"}.mdi-hand-back-right:before{content:"󰹇"}.mdi-hand-back-right-off:before{content:"󱠱"}.mdi-hand-back-right-off-outline:before{content:"󱠳"}.mdi-hand-back-right-outline:before{content:"󱠭"}.mdi-hand-clap:before{content:"󱥋"}.mdi-hand-clap-off:before{content:"󱩂"}.mdi-hand-coin:before{content:"󱢏"}.mdi-hand-coin-outline:before{content:"󱢐"}.mdi-hand-cycle:before{content:"󱮜"}.mdi-hand-extended:before{content:"󱢶"}.mdi-hand-extended-outline:before{content:"󱢷"}.mdi-hand-front-left:before{content:"󱠫"}.mdi-hand-front-left-outline:before{content:"󱠮"}.mdi-hand-front-right:before{content:"󰩏"}.mdi-hand-front-right-outline:before{content:"󱠯"}.mdi-hand-heart:before{content:"󱃱"}.mdi-hand-heart-outline:before{content:"󱕾"}.mdi-hand-okay:before{content:"󰩐"}.mdi-hand-peace:before{content:"󰩑"}.mdi-hand-peace-variant:before{content:"󰩒"}.mdi-hand-pointing-down:before{content:"󰩓"}.mdi-hand-pointing-left:before{content:"󰩔"}.mdi-hand-pointing-right:before{content:"󰋇"}.mdi-hand-pointing-up:before{content:"󰩕"}.mdi-hand-saw:before{content:"󰹈"}.mdi-hand-wash:before{content:"󱕿"}.mdi-hand-wash-outline:before{content:"󱖀"}.mdi-hand-water:before{content:"󱎟"}.mdi-hand-wave:before{content:"󱠡"}.mdi-hand-wave-outline:before{content:"󱠢"}.mdi-handball:before{content:"󰽓"}.mdi-handcuffs:before{content:"󱄾"}.mdi-hands-pray:before{content:"󰕹"}.mdi-handshake:before{content:"󱈘"}.mdi-handshake-outline:before{content:"󱖡"}.mdi-hanger:before{content:"󰋈"}.mdi-hard-hat:before{content:"󰥯"}.mdi-harddisk:before{content:"󰋊"}.mdi-harddisk-plus:before{content:"󱁋"}.mdi-harddisk-remove:before{content:"󱁌"}.mdi-hat-fedora:before{content:"󰮤"}.mdi-hazard-lights:before{content:"󰲉"}.mdi-hdmi-port:before{content:"󱮸"}.mdi-hdr:before{content:"󰵽"}.mdi-hdr-off:before{content:"󰵾"}.mdi-head:before{content:"󱍞"}.mdi-head-alert:before{content:"󱌸"}.mdi-head-alert-outline:before{content:"󱌹"}.mdi-head-check:before{content:"󱌺"}.mdi-head-check-outline:before{content:"󱌻"}.mdi-head-cog:before{content:"󱌼"}.mdi-head-cog-outline:before{content:"󱌽"}.mdi-head-dots-horizontal:before{content:"󱌾"}.mdi-head-dots-horizontal-outline:before{content:"󱌿"}.mdi-head-flash:before{content:"󱍀"}.mdi-head-flash-outline:before{content:"󱍁"}.mdi-head-heart:before{content:"󱍂"}.mdi-head-heart-outline:before{content:"󱍃"}.mdi-head-lightbulb:before{content:"󱍄"}.mdi-head-lightbulb-outline:before{content:"󱍅"}.mdi-head-minus:before{content:"󱍆"}.mdi-head-minus-outline:before{content:"󱍇"}.mdi-head-outline:before{content:"󱍟"}.mdi-head-plus:before{content:"󱍈"}.mdi-head-plus-outline:before{content:"󱍉"}.mdi-head-question:before{content:"󱍊"}.mdi-head-question-outline:before{content:"󱍋"}.mdi-head-remove:before{content:"󱍌"}.mdi-head-remove-outline:before{content:"󱍍"}.mdi-head-snowflake:before{content:"󱍎"}.mdi-head-snowflake-outline:before{content:"󱍏"}.mdi-head-sync:before{content:"󱍐"}.mdi-head-sync-outline:before{content:"󱍑"}.mdi-headphones:before{content:"󰋋"}.mdi-headphones-bluetooth:before{content:"󰥰"}.mdi-headphones-box:before{content:"󰋌"}.mdi-headphones-off:before{content:"󰟎"}.mdi-headphones-settings:before{content:"󰋍"}.mdi-headset:before{content:"󰋎"}.mdi-headset-dock:before{content:"󰋏"}.mdi-headset-off:before{content:"󰋐"}.mdi-heart:before{content:"󰋑"}.mdi-heart-box:before{content:"󰋒"}.mdi-heart-box-outline:before{content:"󰋓"}.mdi-heart-broken:before{content:"󰋔"}.mdi-heart-broken-outline:before{content:"󰴔"}.mdi-heart-circle:before{content:"󰥱"}.mdi-heart-circle-outline:before{content:"󰥲"}.mdi-heart-cog:before{content:"󱙣"}.mdi-heart-cog-outline:before{content:"󱙤"}.mdi-heart-flash:before{content:"󰻹"}.mdi-heart-half:before{content:"󰛟"}.mdi-heart-half-full:before{content:"󰛞"}.mdi-heart-half-outline:before{content:"󰛠"}.mdi-heart-minus:before{content:"󱐯"}.mdi-heart-minus-outline:before{content:"󱐲"}.mdi-heart-multiple:before{content:"󰩖"}.mdi-heart-multiple-outline:before{content:"󰩗"}.mdi-heart-off:before{content:"󰝙"}.mdi-heart-off-outline:before{content:"󱐴"}.mdi-heart-outline:before{content:"󰋕"}.mdi-heart-plus:before{content:"󱐮"}.mdi-heart-plus-outline:before{content:"󱐱"}.mdi-heart-pulse:before{content:"󰗶"}.mdi-heart-remove:before{content:"󱐰"}.mdi-heart-remove-outline:before{content:"󱐳"}.mdi-heart-search:before{content:"󱲍"}.mdi-heart-settings:before{content:"󱙥"}.mdi-heart-settings-outline:before{content:"󱙦"}.mdi-heat-pump:before{content:"󱩃"}.mdi-heat-pump-outline:before{content:"󱩄"}.mdi-heat-wave:before{content:"󱩅"}.mdi-heating-coil:before{content:"󱪯"}.mdi-helicopter:before{content:"󰫂"}.mdi-help:before{content:"󰋖"}.mdi-help-box:before{content:"󰞋"}.mdi-help-box-multiple:before{content:"󱰊"}.mdi-help-box-multiple-outline:before{content:"󱰋"}.mdi-help-box-outline:before{content:"󱰌"}.mdi-help-circle:before{content:"󰋗"}.mdi-help-circle-outline:before{content:"󰘥"}.mdi-help-network:before{content:"󰛵"}.mdi-help-network-outline:before{content:"󰲊"}.mdi-help-rhombus:before{content:"󰮥"}.mdi-help-rhombus-outline:before{content:"󰮦"}.mdi-hexadecimal:before{content:"󱊧"}.mdi-hexagon:before{content:"󰋘"}.mdi-hexagon-multiple:before{content:"󰛡"}.mdi-hexagon-multiple-outline:before{content:"󱃲"}.mdi-hexagon-outline:before{content:"󰋙"}.mdi-hexagon-slice-1:before{content:"󰫃"}.mdi-hexagon-slice-2:before{content:"󰫄"}.mdi-hexagon-slice-3:before{content:"󰫅"}.mdi-hexagon-slice-4:before{content:"󰫆"}.mdi-hexagon-slice-5:before{content:"󰫇"}.mdi-hexagon-slice-6:before{content:"󰫈"}.mdi-hexagram:before{content:"󰫉"}.mdi-hexagram-outline:before{content:"󰫊"}.mdi-high-definition:before{content:"󰟏"}.mdi-high-definition-box:before{content:"󰡸"}.mdi-highway:before{content:"󰗷"}.mdi-hiking:before{content:"󰵿"}.mdi-history:before{content:"󰋚"}.mdi-hockey-puck:before{content:"󰡹"}.mdi-hockey-sticks:before{content:"󰡺"}.mdi-hololens:before{content:"󰋛"}.mdi-home:before{content:"󰋜"}.mdi-home-account:before{content:"󰠦"}.mdi-home-alert:before{content:"󰡻"}.mdi-home-alert-outline:before{content:"󱗐"}.mdi-home-analytics:before{content:"󰺺"}.mdi-home-assistant:before{content:"󰟐"}.mdi-home-automation:before{content:"󰟑"}.mdi-home-battery:before{content:"󱤁"}.mdi-home-battery-outline:before{content:"󱤂"}.mdi-home-circle:before{content:"󰟒"}.mdi-home-circle-outline:before{content:"󱁍"}.mdi-home-city:before{content:"󰴕"}.mdi-home-city-outline:before{content:"󰴖"}.mdi-home-clock:before{content:"󱨒"}.mdi-home-clock-outline:before{content:"󱨓"}.mdi-home-edit:before{content:"󱅙"}.mdi-home-edit-outline:before{content:"󱅚"}.mdi-home-export-outline:before{content:"󰾛"}.mdi-home-flood:before{content:"󰻺"}.mdi-home-floor-0:before{content:"󰷒"}.mdi-home-floor-1:before{content:"󰶀"}.mdi-home-floor-2:before{content:"󰶁"}.mdi-home-floor-3:before{content:"󰶂"}.mdi-home-floor-a:before{content:"󰶃"}.mdi-home-floor-b:before{content:"󰶄"}.mdi-home-floor-g:before{content:"󰶅"}.mdi-home-floor-l:before{content:"󰶆"}.mdi-home-floor-negative-1:before{content:"󰷓"}.mdi-home-group:before{content:"󰷔"}.mdi-home-group-minus:before{content:"󱧁"}.mdi-home-group-plus:before{content:"󱧀"}.mdi-home-group-remove:before{content:"󱧂"}.mdi-home-heart:before{content:"󰠧"}.mdi-home-import-outline:before{content:"󰾜"}.mdi-home-lightbulb:before{content:"󱉑"}.mdi-home-lightbulb-outline:before{content:"󱉒"}.mdi-home-lightning-bolt:before{content:"󱤃"}.mdi-home-lightning-bolt-outline:before{content:"󱤄"}.mdi-home-lock:before{content:"󰣫"}.mdi-home-lock-open:before{content:"󰣬"}.mdi-home-map-marker:before{content:"󰗸"}.mdi-home-minus:before{content:"󰥴"}.mdi-home-minus-outline:before{content:"󱏕"}.mdi-home-modern:before{content:"󰋝"}.mdi-home-off:before{content:"󱩆"}.mdi-home-off-outline:before{content:"󱩇"}.mdi-home-outline:before{content:"󰚡"}.mdi-home-percent:before{content:"󱱼"}.mdi-home-percent-outline:before{content:"󱱽"}.mdi-home-plus:before{content:"󰥵"}.mdi-home-plus-outline:before{content:"󱏖"}.mdi-home-remove:before{content:"󱉇"}.mdi-home-remove-outline:before{content:"󱏗"}.mdi-home-roof:before{content:"󱄫"}.mdi-home-search:before{content:"󱎰"}.mdi-home-search-outline:before{content:"󱎱"}.mdi-home-silo:before{content:"󱮠"}.mdi-home-silo-outline:before{content:"󱮡"}.mdi-home-sound-in:before{content:"󱰯"}.mdi-home-sound-in-outline:before{content:"󱰰"}.mdi-home-sound-out:before{content:"󱰱"}.mdi-home-sound-out-outline:before{content:"󱰲"}.mdi-home-switch:before{content:"󱞔"}.mdi-home-switch-outline:before{content:"󱞕"}.mdi-home-thermometer:before{content:"󰽔"}.mdi-home-thermometer-outline:before{content:"󰽕"}.mdi-home-variant:before{content:"󰋞"}.mdi-home-variant-outline:before{content:"󰮧"}.mdi-hook:before{content:"󰛢"}.mdi-hook-off:before{content:"󰛣"}.mdi-hoop-house:before{content:"󰹖"}.mdi-hops:before{content:"󰋟"}.mdi-horizontal-rotate-clockwise:before{content:"󱃳"}.mdi-horizontal-rotate-counterclockwise:before{content:"󱃴"}.mdi-horse:before{content:"󱖿"}.mdi-horse-human:before{content:"󱗀"}.mdi-horse-variant:before{content:"󱗁"}.mdi-horse-variant-fast:before{content:"󱡮"}.mdi-horseshoe:before{content:"󰩘"}.mdi-hospital:before{content:"󰿶"}.mdi-hospital-box:before{content:"󰋠"}.mdi-hospital-box-outline:before{content:"󰿷"}.mdi-hospital-building:before{content:"󰋡"}.mdi-hospital-marker:before{content:"󰋢"}.mdi-hot-tub:before{content:"󰠨"}.mdi-hours-12:before{content:"󱲔"}.mdi-hours-24:before{content:"󱑸"}.mdi-hub:before{content:"󱲕"}.mdi-hub-outline:before{content:"󱲖"}.mdi-hubspot:before{content:"󰴗"}.mdi-hulu:before{content:"󰠩"}.mdi-human:before{content:"󰋦"}.mdi-human-baby-changing-table:before{content:"󱎋"}.mdi-human-cane:before{content:"󱖁"}.mdi-human-capacity-decrease:before{content:"󱖛"}.mdi-human-capacity-increase:before{content:"󱖜"}.mdi-human-child:before{content:"󰋧"}.mdi-human-dolly:before{content:"󱦀"}.mdi-human-edit:before{content:"󱓨"}.mdi-human-female:before{content:"󰙉"}.mdi-human-female-boy:before{content:"󰩙"}.mdi-human-female-dance:before{content:"󱗉"}.mdi-human-female-female:before{content:"󰩚"}.mdi-human-female-female-child:before{content:"󱲎"}.mdi-human-female-girl:before{content:"󰩛"}.mdi-human-greeting:before{content:"󱟄"}.mdi-human-greeting-proximity:before{content:"󱖝"}.mdi-human-greeting-variant:before{content:"󰙊"}.mdi-human-handsdown:before{content:"󰙋"}.mdi-human-handsup:before{content:"󰙌"}.mdi-human-male:before{content:"󰙍"}.mdi-human-male-board:before{content:"󰢐"}.mdi-human-male-board-poll:before{content:"󰡆"}.mdi-human-male-boy:before{content:"󰩜"}.mdi-human-male-child:before{content:"󱎌"}.mdi-human-male-female:before{content:"󰋨"}.mdi-human-male-female-child:before{content:"󱠣"}.mdi-human-male-girl:before{content:"󰩝"}.mdi-human-male-height:before{content:"󰻻"}.mdi-human-male-height-variant:before{content:"󰻼"}.mdi-human-male-male:before{content:"󰩞"}.mdi-human-male-male-child:before{content:"󱲏"}.mdi-human-non-binary:before{content:"󱡈"}.mdi-human-pregnant:before{content:"󰗏"}.mdi-human-queue:before{content:"󱕱"}.mdi-human-scooter:before{content:"󱇩"}.mdi-human-walker:before{content:"󱭱"}.mdi-human-wheelchair:before{content:"󱎍"}.mdi-human-white-cane:before{content:"󱦁"}.mdi-humble-bundle:before{content:"󰝄"}.mdi-hvac:before{content:"󱍒"}.mdi-hvac-off:before{content:"󱖞"}.mdi-hydraulic-oil-level:before{content:"󱌤"}.mdi-hydraulic-oil-temperature:before{content:"󱌥"}.mdi-hydro-power:before{content:"󱋥"}.mdi-hydrogen-station:before{content:"󱢔"}.mdi-ice-cream:before{content:"󰠪"}.mdi-ice-cream-off:before{content:"󰹒"}.mdi-ice-pop:before{content:"󰻽"}.mdi-id-card:before{content:"󰿀"}.mdi-identifier:before{content:"󰻾"}.mdi-ideogram-cjk:before{content:"󱌱"}.mdi-ideogram-cjk-variant:before{content:"󱌲"}.mdi-image:before{content:"󰋩"}.mdi-image-album:before{content:"󰋪"}.mdi-image-area:before{content:"󰋫"}.mdi-image-area-close:before{content:"󰋬"}.mdi-image-auto-adjust:before{content:"󰿁"}.mdi-image-broken:before{content:"󰋭"}.mdi-image-broken-variant:before{content:"󰋮"}.mdi-image-check:before{content:"󱬥"}.mdi-image-check-outline:before{content:"󱬦"}.mdi-image-edit:before{content:"󱇣"}.mdi-image-edit-outline:before{content:"󱇤"}.mdi-image-filter-black-white:before{content:"󰋰"}.mdi-image-filter-center-focus:before{content:"󰋱"}.mdi-image-filter-center-focus-strong:before{content:"󰻿"}.mdi-image-filter-center-focus-strong-outline:before{content:"󰼀"}.mdi-image-filter-center-focus-weak:before{content:"󰋲"}.mdi-image-filter-drama:before{content:"󰋳"}.mdi-image-filter-drama-outline:before{content:"󱯿"}.mdi-image-filter-frames:before{content:"󰋴"}.mdi-image-filter-hdr:before{content:"󰋵"}.mdi-image-filter-hdr-outline:before{content:"󱱤"}.mdi-image-filter-none:before{content:"󰋶"}.mdi-image-filter-tilt-shift:before{content:"󰋷"}.mdi-image-filter-vintage:before{content:"󰋸"}.mdi-image-frame:before{content:"󰹉"}.mdi-image-lock:before{content:"󱪰"}.mdi-image-lock-outline:before{content:"󱪱"}.mdi-image-marker:before{content:"󱝻"}.mdi-image-marker-outline:before{content:"󱝼"}.mdi-image-minus:before{content:"󱐙"}.mdi-image-minus-outline:before{content:"󱭇"}.mdi-image-move:before{content:"󰧸"}.mdi-image-multiple:before{content:"󰋹"}.mdi-image-multiple-outline:before{content:"󰋯"}.mdi-image-off:before{content:"󰠫"}.mdi-image-off-outline:before{content:"󱇑"}.mdi-image-outline:before{content:"󰥶"}.mdi-image-plus:before{content:"󰡼"}.mdi-image-plus-outline:before{content:"󱭆"}.mdi-image-refresh:before{content:"󱧾"}.mdi-image-refresh-outline:before{content:"󱧿"}.mdi-image-remove:before{content:"󱐘"}.mdi-image-remove-outline:before{content:"󱭈"}.mdi-image-search:before{content:"󰥷"}.mdi-image-search-outline:before{content:"󰥸"}.mdi-image-size-select-actual:before{content:"󰲍"}.mdi-image-size-select-large:before{content:"󰲎"}.mdi-image-size-select-small:before{content:"󰲏"}.mdi-image-sync:before{content:"󱨀"}.mdi-image-sync-outline:before{content:"󱨁"}.mdi-image-text:before{content:"󱘍"}.mdi-import:before{content:"󰋺"}.mdi-inbox:before{content:"󰚇"}.mdi-inbox-arrow-down:before{content:"󰋻"}.mdi-inbox-arrow-down-outline:before{content:"󱉰"}.mdi-inbox-arrow-up:before{content:"󰏑"}.mdi-inbox-arrow-up-outline:before{content:"󱉱"}.mdi-inbox-full:before{content:"󱉲"}.mdi-inbox-full-outline:before{content:"󱉳"}.mdi-inbox-multiple:before{content:"󰢰"}.mdi-inbox-multiple-outline:before{content:"󰮨"}.mdi-inbox-outline:before{content:"󱉴"}.mdi-inbox-remove:before{content:"󱖟"}.mdi-inbox-remove-outline:before{content:"󱖠"}.mdi-incognito:before{content:"󰗹"}.mdi-incognito-circle:before{content:"󱐡"}.mdi-incognito-circle-off:before{content:"󱐢"}.mdi-incognito-off:before{content:"󰁵"}.mdi-induction:before{content:"󱡌"}.mdi-infinity:before{content:"󰛤"}.mdi-information:before{content:"󰋼"}.mdi-information-box:before{content:"󱱥"}.mdi-information-box-outline:before{content:"󱱦"}.mdi-information-off:before{content:"󱞌"}.mdi-information-off-outline:before{content:"󱞍"}.mdi-information-outline:before{content:"󰋽"}.mdi-information-slab-box:before{content:"󱱧"}.mdi-information-slab-box-outline:before{content:"󱱨"}.mdi-information-slab-circle:before{content:"󱱩"}.mdi-information-slab-circle-outline:before{content:"󱱪"}.mdi-information-slab-symbol:before{content:"󱱫"}.mdi-information-symbol:before{content:"󱱬"}.mdi-information-variant:before{content:"󰙎"}.mdi-information-variant-box:before{content:"󱱭"}.mdi-information-variant-box-outline:before{content:"󱱮"}.mdi-information-variant-circle:before{content:"󱱯"}.mdi-information-variant-circle-outline:before{content:"󱱰"}.mdi-instagram:before{content:"󰋾"}.mdi-instrument-triangle:before{content:"󱁎"}.mdi-integrated-circuit-chip:before{content:"󱤓"}.mdi-invert-colors:before{content:"󰌁"}.mdi-invert-colors-off:before{content:"󰹊"}.mdi-iobroker:before{content:"󱋨"}.mdi-ip:before{content:"󰩟"}.mdi-ip-network:before{content:"󰩠"}.mdi-ip-network-outline:before{content:"󰲐"}.mdi-ip-outline:before{content:"󱦂"}.mdi-ipod:before{content:"󰲑"}.mdi-iron:before{content:"󱠤"}.mdi-iron-board:before{content:"󱠸"}.mdi-iron-outline:before{content:"󱠥"}.mdi-island:before{content:"󱁏"}.mdi-island-variant:before{content:"󱳆"}.mdi-iv-bag:before{content:"󱂹"}.mdi-jabber:before{content:"󰷕"}.mdi-jeepney:before{content:"󰌂"}.mdi-jellyfish:before{content:"󰼁"}.mdi-jellyfish-outline:before{content:"󰼂"}.mdi-jira:before{content:"󰌃"}.mdi-jquery:before{content:"󰡽"}.mdi-jsfiddle:before{content:"󰌄"}.mdi-jump-rope:before{content:"󱋿"}.mdi-kabaddi:before{content:"󰶇"}.mdi-kangaroo:before{content:"󱕘"}.mdi-karate:before{content:"󰠬"}.mdi-kayaking:before{content:"󰢯"}.mdi-keg:before{content:"󰌅"}.mdi-kettle:before{content:"󰗺"}.mdi-kettle-alert:before{content:"󱌗"}.mdi-kettle-alert-outline:before{content:"󱌘"}.mdi-kettle-off:before{content:"󱌛"}.mdi-kettle-off-outline:before{content:"󱌜"}.mdi-kettle-outline:before{content:"󰽖"}.mdi-kettle-pour-over:before{content:"󱜼"}.mdi-kettle-steam:before{content:"󱌙"}.mdi-kettle-steam-outline:before{content:"󱌚"}.mdi-kettlebell:before{content:"󱌀"}.mdi-key:before{content:"󰌆"}.mdi-key-alert:before{content:"󱦃"}.mdi-key-alert-outline:before{content:"󱦄"}.mdi-key-arrow-right:before{content:"󱌒"}.mdi-key-chain:before{content:"󱕴"}.mdi-key-chain-variant:before{content:"󱕵"}.mdi-key-change:before{content:"󰌇"}.mdi-key-link:before{content:"󱆟"}.mdi-key-minus:before{content:"󰌈"}.mdi-key-outline:before{content:"󰷖"}.mdi-key-plus:before{content:"󰌉"}.mdi-key-remove:before{content:"󰌊"}.mdi-key-star:before{content:"󱆞"}.mdi-key-variant:before{content:"󰌋"}.mdi-key-wireless:before{content:"󰿂"}.mdi-keyboard:before{content:"󰌌"}.mdi-keyboard-backspace:before{content:"󰌍"}.mdi-keyboard-caps:before{content:"󰌎"}.mdi-keyboard-close:before{content:"󰌏"}.mdi-keyboard-close-outline:before{content:"󱰀"}.mdi-keyboard-esc:before{content:"󱊷"}.mdi-keyboard-f1:before{content:"󱊫"}.mdi-keyboard-f10:before{content:"󱊴"}.mdi-keyboard-f11:before{content:"󱊵"}.mdi-keyboard-f12:before{content:"󱊶"}.mdi-keyboard-f2:before{content:"󱊬"}.mdi-keyboard-f3:before{content:"󱊭"}.mdi-keyboard-f4:before{content:"󱊮"}.mdi-keyboard-f5:before{content:"󱊯"}.mdi-keyboard-f6:before{content:"󱊰"}.mdi-keyboard-f7:before{content:"󱊱"}.mdi-keyboard-f8:before{content:"󱊲"}.mdi-keyboard-f9:before{content:"󱊳"}.mdi-keyboard-off:before{content:"󰌐"}.mdi-keyboard-off-outline:before{content:"󰹋"}.mdi-keyboard-outline:before{content:"󰥻"}.mdi-keyboard-return:before{content:"󰌑"}.mdi-keyboard-settings:before{content:"󰧹"}.mdi-keyboard-settings-outline:before{content:"󰧺"}.mdi-keyboard-space:before{content:"󱁐"}.mdi-keyboard-tab:before{content:"󰌒"}.mdi-keyboard-tab-reverse:before{content:"󰌥"}.mdi-keyboard-variant:before{content:"󰌓"}.mdi-khanda:before{content:"󱃽"}.mdi-kickstarter:before{content:"󰝅"}.mdi-kite:before{content:"󱦅"}.mdi-kite-outline:before{content:"󱦆"}.mdi-kitesurfing:before{content:"󱝄"}.mdi-klingon:before{content:"󱍛"}.mdi-knife:before{content:"󰧻"}.mdi-knife-military:before{content:"󰧼"}.mdi-knob:before{content:"󱮖"}.mdi-koala:before{content:"󱜿"}.mdi-kodi:before{content:"󰌔"}.mdi-kubernetes:before{content:"󱃾"}.mdi-label:before{content:"󰌕"}.mdi-label-multiple:before{content:"󱍵"}.mdi-label-multiple-outline:before{content:"󱍶"}.mdi-label-off:before{content:"󰫋"}.mdi-label-off-outline:before{content:"󰫌"}.mdi-label-outline:before{content:"󰌖"}.mdi-label-percent:before{content:"󱋪"}.mdi-label-percent-outline:before{content:"󱋫"}.mdi-label-variant:before{content:"󰫍"}.mdi-label-variant-outline:before{content:"󰫎"}.mdi-ladder:before{content:"󱖢"}.mdi-ladybug:before{content:"󰠭"}.mdi-lambda:before{content:"󰘧"}.mdi-lamp:before{content:"󰚵"}.mdi-lamp-outline:before{content:"󱟐"}.mdi-lamps:before{content:"󱕶"}.mdi-lamps-outline:before{content:"󱟑"}.mdi-lan:before{content:"󰌗"}.mdi-lan-check:before{content:"󱊪"}.mdi-lan-connect:before{content:"󰌘"}.mdi-lan-disconnect:before{content:"󰌙"}.mdi-lan-pending:before{content:"󰌚"}.mdi-land-fields:before{content:"󱪲"}.mdi-land-plots:before{content:"󱪳"}.mdi-land-plots-circle:before{content:"󱪴"}.mdi-land-plots-circle-variant:before{content:"󱪵"}.mdi-land-plots-marker:before{content:"󱱝"}.mdi-land-rows-horizontal:before{content:"󱪶"}.mdi-land-rows-vertical:before{content:"󱪷"}.mdi-landslide:before{content:"󱩈"}.mdi-landslide-outline:before{content:"󱩉"}.mdi-language-c:before{content:"󰙱"}.mdi-language-cpp:before{content:"󰙲"}.mdi-language-csharp:before{content:"󰌛"}.mdi-language-css3:before{content:"󰌜"}.mdi-language-fortran:before{content:"󱈚"}.mdi-language-go:before{content:"󰟓"}.mdi-language-haskell:before{content:"󰲒"}.mdi-language-html5:before{content:"󰌝"}.mdi-language-java:before{content:"󰬷"}.mdi-language-javascript:before{content:"󰌞"}.mdi-language-kotlin:before{content:"󱈙"}.mdi-language-lua:before{content:"󰢱"}.mdi-language-markdown:before{content:"󰍔"}.mdi-language-markdown-outline:before{content:"󰽛"}.mdi-language-php:before{content:"󰌟"}.mdi-language-python:before{content:"󰌠"}.mdi-language-r:before{content:"󰟔"}.mdi-language-ruby:before{content:"󰴭"}.mdi-language-ruby-on-rails:before{content:"󰫏"}.mdi-language-rust:before{content:"󱘗"}.mdi-language-swift:before{content:"󰛥"}.mdi-language-typescript:before{content:"󰛦"}.mdi-language-xaml:before{content:"󰙳"}.mdi-laptop:before{content:"󰌢"}.mdi-laptop-account:before{content:"󱩊"}.mdi-laptop-off:before{content:"󰛧"}.mdi-laravel:before{content:"󰫐"}.mdi-laser-pointer:before{content:"󱒄"}.mdi-lasso:before{content:"󰼃"}.mdi-lastpass:before{content:"󰑆"}.mdi-latitude:before{content:"󰽗"}.mdi-launch:before{content:"󰌧"}.mdi-lava-lamp:before{content:"󰟕"}.mdi-layers:before{content:"󰌨"}.mdi-layers-edit:before{content:"󱢒"}.mdi-layers-minus:before{content:"󰹌"}.mdi-layers-off:before{content:"󰌩"}.mdi-layers-off-outline:before{content:"󰧽"}.mdi-layers-outline:before{content:"󰧾"}.mdi-layers-plus:before{content:"󰹍"}.mdi-layers-remove:before{content:"󰹎"}.mdi-layers-search:before{content:"󱈆"}.mdi-layers-search-outline:before{content:"󱈇"}.mdi-layers-triple:before{content:"󰽘"}.mdi-layers-triple-outline:before{content:"󰽙"}.mdi-lead-pencil:before{content:"󰙏"}.mdi-leaf:before{content:"󰌪"}.mdi-leaf-circle:before{content:"󱤅"}.mdi-leaf-circle-outline:before{content:"󱤆"}.mdi-leaf-maple:before{content:"󰲓"}.mdi-leaf-maple-off:before{content:"󱋚"}.mdi-leaf-off:before{content:"󱋙"}.mdi-leak:before{content:"󰷗"}.mdi-leak-off:before{content:"󰷘"}.mdi-lectern:before{content:"󱫰"}.mdi-led-off:before{content:"󰌫"}.mdi-led-on:before{content:"󰌬"}.mdi-led-outline:before{content:"󰌭"}.mdi-led-strip:before{content:"󰟖"}.mdi-led-strip-variant:before{content:"󱁑"}.mdi-led-strip-variant-off:before{content:"󱩋"}.mdi-led-variant-off:before{content:"󰌮"}.mdi-led-variant-on:before{content:"󰌯"}.mdi-led-variant-outline:before{content:"󰌰"}.mdi-leek:before{content:"󱅽"}.mdi-less-than:before{content:"󰥼"}.mdi-less-than-or-equal:before{content:"󰥽"}.mdi-library:before{content:"󰌱"}.mdi-library-outline:before{content:"󱨢"}.mdi-library-shelves:before{content:"󰮩"}.mdi-license:before{content:"󰿃"}.mdi-lifebuoy:before{content:"󰡾"}.mdi-light-flood-down:before{content:"󱦇"}.mdi-light-flood-up:before{content:"󱦈"}.mdi-light-recessed:before{content:"󱞛"}.mdi-light-switch:before{content:"󰥾"}.mdi-light-switch-off:before{content:"󱨤"}.mdi-lightbulb:before{content:"󰌵"}.mdi-lightbulb-alert:before{content:"󱧡"}.mdi-lightbulb-alert-outline:before{content:"󱧢"}.mdi-lightbulb-auto:before{content:"󱠀"}.mdi-lightbulb-auto-outline:before{content:"󱠁"}.mdi-lightbulb-cfl:before{content:"󱈈"}.mdi-lightbulb-cfl-off:before{content:"󱈉"}.mdi-lightbulb-cfl-spiral:before{content:"󱉵"}.mdi-lightbulb-cfl-spiral-off:before{content:"󱋃"}.mdi-lightbulb-fluorescent-tube:before{content:"󱠄"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"󱠅"}.mdi-lightbulb-group:before{content:"󱉓"}.mdi-lightbulb-group-off:before{content:"󱋍"}.mdi-lightbulb-group-off-outline:before{content:"󱋎"}.mdi-lightbulb-group-outline:before{content:"󱉔"}.mdi-lightbulb-multiple:before{content:"󱉕"}.mdi-lightbulb-multiple-off:before{content:"󱋏"}.mdi-lightbulb-multiple-off-outline:before{content:"󱋐"}.mdi-lightbulb-multiple-outline:before{content:"󱉖"}.mdi-lightbulb-night:before{content:"󱩌"}.mdi-lightbulb-night-outline:before{content:"󱩍"}.mdi-lightbulb-off:before{content:"󰹏"}.mdi-lightbulb-off-outline:before{content:"󰹐"}.mdi-lightbulb-on:before{content:"󰛨"}.mdi-lightbulb-on-10:before{content:"󱩎"}.mdi-lightbulb-on-20:before{content:"󱩏"}.mdi-lightbulb-on-30:before{content:"󱩐"}.mdi-lightbulb-on-40:before{content:"󱩑"}.mdi-lightbulb-on-50:before{content:"󱩒"}.mdi-lightbulb-on-60:before{content:"󱩓"}.mdi-lightbulb-on-70:before{content:"󱩔"}.mdi-lightbulb-on-80:before{content:"󱩕"}.mdi-lightbulb-on-90:before{content:"󱩖"}.mdi-lightbulb-on-outline:before{content:"󰛩"}.mdi-lightbulb-outline:before{content:"󰌶"}.mdi-lightbulb-question:before{content:"󱧣"}.mdi-lightbulb-question-outline:before{content:"󱧤"}.mdi-lightbulb-spot:before{content:"󱟴"}.mdi-lightbulb-spot-off:before{content:"󱟵"}.mdi-lightbulb-variant:before{content:"󱠂"}.mdi-lightbulb-variant-outline:before{content:"󱠃"}.mdi-lighthouse:before{content:"󰧿"}.mdi-lighthouse-on:before{content:"󰨀"}.mdi-lightning-bolt:before{content:"󱐋"}.mdi-lightning-bolt-circle:before{content:"󰠠"}.mdi-lightning-bolt-outline:before{content:"󱐌"}.mdi-line-scan:before{content:"󰘤"}.mdi-lingerie:before{content:"󱑶"}.mdi-link:before{content:"󰌷"}.mdi-link-box:before{content:"󰴚"}.mdi-link-box-outline:before{content:"󰴛"}.mdi-link-box-variant:before{content:"󰴜"}.mdi-link-box-variant-outline:before{content:"󰴝"}.mdi-link-circle:before{content:"󱲬"}.mdi-link-circle-outline:before{content:"󱲭"}.mdi-link-edit:before{content:"󱲮"}.mdi-link-lock:before{content:"󱂺"}.mdi-link-off:before{content:"󰌸"}.mdi-link-plus:before{content:"󰲔"}.mdi-link-variant:before{content:"󰌹"}.mdi-link-variant-minus:before{content:"󱃿"}.mdi-link-variant-off:before{content:"󰌺"}.mdi-link-variant-plus:before{content:"󱄀"}.mdi-link-variant-remove:before{content:"󱄁"}.mdi-linkedin:before{content:"󰌻"}.mdi-linux:before{content:"󰌽"}.mdi-linux-mint:before{content:"󰣭"}.mdi-lipstick:before{content:"󱎵"}.mdi-liquid-spot:before{content:"󱠦"}.mdi-liquor:before{content:"󱤞"}.mdi-list-box:before{content:"󱭻"}.mdi-list-box-outline:before{content:"󱭼"}.mdi-list-status:before{content:"󱖫"}.mdi-litecoin:before{content:"󰩡"}.mdi-loading:before{content:"󰝲"}.mdi-location-enter:before{content:"󰿄"}.mdi-location-exit:before{content:"󰿅"}.mdi-lock:before{content:"󰌾"}.mdi-lock-alert:before{content:"󰣮"}.mdi-lock-alert-outline:before{content:"󱗑"}.mdi-lock-check:before{content:"󱎚"}.mdi-lock-check-outline:before{content:"󱚨"}.mdi-lock-clock:before{content:"󰥿"}.mdi-lock-minus:before{content:"󱚩"}.mdi-lock-minus-outline:before{content:"󱚪"}.mdi-lock-off:before{content:"󱙱"}.mdi-lock-off-outline:before{content:"󱙲"}.mdi-lock-open:before{content:"󰌿"}.mdi-lock-open-alert:before{content:"󱎛"}.mdi-lock-open-alert-outline:before{content:"󱗒"}.mdi-lock-open-check:before{content:"󱎜"}.mdi-lock-open-check-outline:before{content:"󱚫"}.mdi-lock-open-minus:before{content:"󱚬"}.mdi-lock-open-minus-outline:before{content:"󱚭"}.mdi-lock-open-outline:before{content:"󰍀"}.mdi-lock-open-plus:before{content:"󱚮"}.mdi-lock-open-plus-outline:before{content:"󱚯"}.mdi-lock-open-remove:before{content:"󱚰"}.mdi-lock-open-remove-outline:before{content:"󱚱"}.mdi-lock-open-variant:before{content:"󰿆"}.mdi-lock-open-variant-outline:before{content:"󰿇"}.mdi-lock-outline:before{content:"󰍁"}.mdi-lock-pattern:before{content:"󰛪"}.mdi-lock-percent:before{content:"󱰒"}.mdi-lock-percent-open:before{content:"󱰓"}.mdi-lock-percent-open-outline:before{content:"󱰔"}.mdi-lock-percent-open-variant:before{content:"󱰕"}.mdi-lock-percent-open-variant-outline:before{content:"󱰖"}.mdi-lock-percent-outline:before{content:"󱰗"}.mdi-lock-plus:before{content:"󰗻"}.mdi-lock-plus-outline:before{content:"󱚲"}.mdi-lock-question:before{content:"󰣯"}.mdi-lock-remove:before{content:"󱚳"}.mdi-lock-remove-outline:before{content:"󱚴"}.mdi-lock-reset:before{content:"󰝳"}.mdi-lock-smart:before{content:"󰢲"}.mdi-locker:before{content:"󰟗"}.mdi-locker-multiple:before{content:"󰟘"}.mdi-login:before{content:"󰍂"}.mdi-login-variant:before{content:"󰗼"}.mdi-logout:before{content:"󰍃"}.mdi-logout-variant:before{content:"󰗽"}.mdi-longitude:before{content:"󰽚"}.mdi-looks:before{content:"󰍄"}.mdi-lotion:before{content:"󱖂"}.mdi-lotion-outline:before{content:"󱖃"}.mdi-lotion-plus:before{content:"󱖄"}.mdi-lotion-plus-outline:before{content:"󱖅"}.mdi-loupe:before{content:"󰍅"}.mdi-lumx:before{content:"󰍆"}.mdi-lungs:before{content:"󱂄"}.mdi-mace:before{content:"󱡃"}.mdi-magazine-pistol:before{content:"󰌤"}.mdi-magazine-rifle:before{content:"󰌣"}.mdi-magic-staff:before{content:"󱡄"}.mdi-magnet:before{content:"󰍇"}.mdi-magnet-on:before{content:"󰍈"}.mdi-magnify:before{content:"󰍉"}.mdi-magnify-close:before{content:"󰦀"}.mdi-magnify-expand:before{content:"󱡴"}.mdi-magnify-minus:before{content:"󰍊"}.mdi-magnify-minus-cursor:before{content:"󰩢"}.mdi-magnify-minus-outline:before{content:"󰛬"}.mdi-magnify-plus:before{content:"󰍋"}.mdi-magnify-plus-cursor:before{content:"󰩣"}.mdi-magnify-plus-outline:before{content:"󰛭"}.mdi-magnify-remove-cursor:before{content:"󱈌"}.mdi-magnify-remove-outline:before{content:"󱈍"}.mdi-magnify-scan:before{content:"󱉶"}.mdi-mail:before{content:"󰺻"}.mdi-mailbox:before{content:"󰛮"}.mdi-mailbox-open:before{content:"󰶈"}.mdi-mailbox-open-outline:before{content:"󰶉"}.mdi-mailbox-open-up:before{content:"󰶊"}.mdi-mailbox-open-up-outline:before{content:"󰶋"}.mdi-mailbox-outline:before{content:"󰶌"}.mdi-mailbox-up:before{content:"󰶍"}.mdi-mailbox-up-outline:before{content:"󰶎"}.mdi-manjaro:before{content:"󱘊"}.mdi-map:before{content:"󰍍"}.mdi-map-check:before{content:"󰺼"}.mdi-map-check-outline:before{content:"󰺽"}.mdi-map-clock:before{content:"󰴞"}.mdi-map-clock-outline:before{content:"󰴟"}.mdi-map-legend:before{content:"󰨁"}.mdi-map-marker:before{content:"󰍎"}.mdi-map-marker-account:before{content:"󱣣"}.mdi-map-marker-account-outline:before{content:"󱣤"}.mdi-map-marker-alert:before{content:"󰼅"}.mdi-map-marker-alert-outline:before{content:"󰼆"}.mdi-map-marker-check:before{content:"󰲕"}.mdi-map-marker-check-outline:before{content:"󱋻"}.mdi-map-marker-circle:before{content:"󰍏"}.mdi-map-marker-distance:before{content:"󰣰"}.mdi-map-marker-down:before{content:"󱄂"}.mdi-map-marker-left:before{content:"󱋛"}.mdi-map-marker-left-outline:before{content:"󱋝"}.mdi-map-marker-minus:before{content:"󰙐"}.mdi-map-marker-minus-outline:before{content:"󱋹"}.mdi-map-marker-multiple:before{content:"󰍐"}.mdi-map-marker-multiple-outline:before{content:"󱉷"}.mdi-map-marker-off:before{content:"󰍑"}.mdi-map-marker-off-outline:before{content:"󱋽"}.mdi-map-marker-outline:before{content:"󰟙"}.mdi-map-marker-path:before{content:"󰴠"}.mdi-map-marker-plus:before{content:"󰙑"}.mdi-map-marker-plus-outline:before{content:"󱋸"}.mdi-map-marker-question:before{content:"󰼇"}.mdi-map-marker-question-outline:before{content:"󰼈"}.mdi-map-marker-radius:before{content:"󰍒"}.mdi-map-marker-radius-outline:before{content:"󱋼"}.mdi-map-marker-remove:before{content:"󰼉"}.mdi-map-marker-remove-outline:before{content:"󱋺"}.mdi-map-marker-remove-variant:before{content:"󰼊"}.mdi-map-marker-right:before{content:"󱋜"}.mdi-map-marker-right-outline:before{content:"󱋞"}.mdi-map-marker-star:before{content:"󱘈"}.mdi-map-marker-star-outline:before{content:"󱘉"}.mdi-map-marker-up:before{content:"󱄃"}.mdi-map-minus:before{content:"󰦁"}.mdi-map-outline:before{content:"󰦂"}.mdi-map-plus:before{content:"󰦃"}.mdi-map-search:before{content:"󰦄"}.mdi-map-search-outline:before{content:"󰦅"}.mdi-mapbox:before{content:"󰮪"}.mdi-margin:before{content:"󰍓"}.mdi-marker:before{content:"󰙒"}.mdi-marker-cancel:before{content:"󰷙"}.mdi-marker-check:before{content:"󰍕"}.mdi-mastodon:before{content:"󰫑"}.mdi-material-design:before{content:"󰦆"}.mdi-material-ui:before{content:"󰍗"}.mdi-math-compass:before{content:"󰍘"}.mdi-math-cos:before{content:"󰲖"}.mdi-math-integral:before{content:"󰿈"}.mdi-math-integral-box:before{content:"󰿉"}.mdi-math-log:before{content:"󱂅"}.mdi-math-norm:before{content:"󰿊"}.mdi-math-norm-box:before{content:"󰿋"}.mdi-math-sin:before{content:"󰲗"}.mdi-math-tan:before{content:"󰲘"}.mdi-matrix:before{content:"󰘨"}.mdi-medal:before{content:"󰦇"}.mdi-medal-outline:before{content:"󱌦"}.mdi-medical-bag:before{content:"󰛯"}.mdi-medical-cotton-swab:before{content:"󱪸"}.mdi-medication:before{content:"󱬔"}.mdi-medication-outline:before{content:"󱬕"}.mdi-meditation:before{content:"󱅻"}.mdi-memory:before{content:"󰍛"}.mdi-memory-arrow-down:before{content:"󱲦"}.mdi-menorah:before{content:"󱟔"}.mdi-menorah-fire:before{content:"󱟕"}.mdi-menu:before{content:"󰍜"}.mdi-menu-close:before{content:"󱲐"}.mdi-menu-down:before{content:"󰍝"}.mdi-menu-down-outline:before{content:"󰚶"}.mdi-menu-left:before{content:"󰍞"}.mdi-menu-left-outline:before{content:"󰨂"}.mdi-menu-open:before{content:"󰮫"}.mdi-menu-right:before{content:"󰍟"}.mdi-menu-right-outline:before{content:"󰨃"}.mdi-menu-swap:before{content:"󰩤"}.mdi-menu-swap-outline:before{content:"󰩥"}.mdi-menu-up:before{content:"󰍠"}.mdi-menu-up-outline:before{content:"󰚷"}.mdi-merge:before{content:"󰽜"}.mdi-message:before{content:"󰍡"}.mdi-message-alert:before{content:"󰍢"}.mdi-message-alert-outline:before{content:"󰨄"}.mdi-message-arrow-left:before{content:"󱋲"}.mdi-message-arrow-left-outline:before{content:"󱋳"}.mdi-message-arrow-right:before{content:"󱋴"}.mdi-message-arrow-right-outline:before{content:"󱋵"}.mdi-message-badge:before{content:"󱥁"}.mdi-message-badge-outline:before{content:"󱥂"}.mdi-message-bookmark:before{content:"󱖬"}.mdi-message-bookmark-outline:before{content:"󱖭"}.mdi-message-bulleted:before{content:"󰚢"}.mdi-message-bulleted-off:before{content:"󰚣"}.mdi-message-check:before{content:"󱮊"}.mdi-message-check-outline:before{content:"󱮋"}.mdi-message-cog:before{content:"󰛱"}.mdi-message-cog-outline:before{content:"󱅲"}.mdi-message-draw:before{content:"󰍣"}.mdi-message-fast:before{content:"󱧌"}.mdi-message-fast-outline:before{content:"󱧍"}.mdi-message-flash:before{content:"󱖩"}.mdi-message-flash-outline:before{content:"󱖪"}.mdi-message-image:before{content:"󰍤"}.mdi-message-image-outline:before{content:"󱅬"}.mdi-message-lock:before{content:"󰿌"}.mdi-message-lock-outline:before{content:"󱅭"}.mdi-message-minus:before{content:"󱅮"}.mdi-message-minus-outline:before{content:"󱅯"}.mdi-message-off:before{content:"󱙍"}.mdi-message-off-outline:before{content:"󱙎"}.mdi-message-outline:before{content:"󰍥"}.mdi-message-plus:before{content:"󰙓"}.mdi-message-plus-outline:before{content:"󱂻"}.mdi-message-processing:before{content:"󰍦"}.mdi-message-processing-outline:before{content:"󱅰"}.mdi-message-question:before{content:"󱜺"}.mdi-message-question-outline:before{content:"󱜻"}.mdi-message-reply:before{content:"󰍧"}.mdi-message-reply-outline:before{content:"󱜽"}.mdi-message-reply-text:before{content:"󰍨"}.mdi-message-reply-text-outline:before{content:"󱜾"}.mdi-message-settings:before{content:"󰛰"}.mdi-message-settings-outline:before{content:"󱅱"}.mdi-message-star:before{content:"󰚚"}.mdi-message-star-outline:before{content:"󱉐"}.mdi-message-text:before{content:"󰍩"}.mdi-message-text-clock:before{content:"󱅳"}.mdi-message-text-clock-outline:before{content:"󱅴"}.mdi-message-text-fast:before{content:"󱧎"}.mdi-message-text-fast-outline:before{content:"󱧏"}.mdi-message-text-lock:before{content:"󰿍"}.mdi-message-text-lock-outline:before{content:"󱅵"}.mdi-message-text-outline:before{content:"󰍪"}.mdi-message-video:before{content:"󰍫"}.mdi-meteor:before{content:"󰘩"}.mdi-meter-electric:before{content:"󱩗"}.mdi-meter-electric-outline:before{content:"󱩘"}.mdi-meter-gas:before{content:"󱩙"}.mdi-meter-gas-outline:before{content:"󱩚"}.mdi-metronome:before{content:"󰟚"}.mdi-metronome-tick:before{content:"󰟛"}.mdi-micro-sd:before{content:"󰟜"}.mdi-microphone:before{content:"󰍬"}.mdi-microphone-message:before{content:"󰔊"}.mdi-microphone-message-off:before{content:"󰔋"}.mdi-microphone-minus:before{content:"󰢳"}.mdi-microphone-off:before{content:"󰍭"}.mdi-microphone-outline:before{content:"󰍮"}.mdi-microphone-plus:before{content:"󰢴"}.mdi-microphone-question:before{content:"󱦉"}.mdi-microphone-question-outline:before{content:"󱦊"}.mdi-microphone-settings:before{content:"󰍯"}.mdi-microphone-variant:before{content:"󰍰"}.mdi-microphone-variant-off:before{content:"󰍱"}.mdi-microscope:before{content:"󰙔"}.mdi-microsoft:before{content:"󰍲"}.mdi-microsoft-access:before{content:"󱎎"}.mdi-microsoft-azure:before{content:"󰠅"}.mdi-microsoft-azure-devops:before{content:"󰿕"}.mdi-microsoft-bing:before{content:"󰂤"}.mdi-microsoft-dynamics-365:before{content:"󰦈"}.mdi-microsoft-edge:before{content:"󰇩"}.mdi-microsoft-excel:before{content:"󱎏"}.mdi-microsoft-internet-explorer:before{content:"󰌀"}.mdi-microsoft-office:before{content:"󰏆"}.mdi-microsoft-onedrive:before{content:"󰏊"}.mdi-microsoft-onenote:before{content:"󰝇"}.mdi-microsoft-outlook:before{content:"󰴢"}.mdi-microsoft-powerpoint:before{content:"󱎐"}.mdi-microsoft-sharepoint:before{content:"󱎑"}.mdi-microsoft-teams:before{content:"󰊻"}.mdi-microsoft-visual-studio:before{content:"󰘐"}.mdi-microsoft-visual-studio-code:before{content:"󰨞"}.mdi-microsoft-windows:before{content:"󰖳"}.mdi-microsoft-windows-classic:before{content:"󰨡"}.mdi-microsoft-word:before{content:"󱎒"}.mdi-microsoft-xbox:before{content:"󰖹"}.mdi-microsoft-xbox-controller:before{content:"󰖺"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"󰝋"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"󰨢"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"󰝌"}.mdi-microsoft-xbox-controller-battery-full:before{content:"󰝍"}.mdi-microsoft-xbox-controller-battery-low:before{content:"󰝎"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"󰝏"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"󰝐"}.mdi-microsoft-xbox-controller-menu:before{content:"󰹯"}.mdi-microsoft-xbox-controller-off:before{content:"󰖻"}.mdi-microsoft-xbox-controller-view:before{content:"󰹰"}.mdi-microwave:before{content:"󰲙"}.mdi-microwave-off:before{content:"󱐣"}.mdi-middleware:before{content:"󰽝"}.mdi-middleware-outline:before{content:"󰽞"}.mdi-midi:before{content:"󰣱"}.mdi-midi-port:before{content:"󰣲"}.mdi-mine:before{content:"󰷚"}.mdi-minecraft:before{content:"󰍳"}.mdi-mini-sd:before{content:"󰨅"}.mdi-minidisc:before{content:"󰨆"}.mdi-minus:before{content:"󰍴"}.mdi-minus-box:before{content:"󰍵"}.mdi-minus-box-multiple:before{content:"󱅁"}.mdi-minus-box-multiple-outline:before{content:"󱅂"}.mdi-minus-box-outline:before{content:"󰛲"}.mdi-minus-circle:before{content:"󰍶"}.mdi-minus-circle-multiple:before{content:"󰍚"}.mdi-minus-circle-multiple-outline:before{content:"󰫓"}.mdi-minus-circle-off:before{content:"󱑙"}.mdi-minus-circle-off-outline:before{content:"󱑚"}.mdi-minus-circle-outline:before{content:"󰍷"}.mdi-minus-network:before{content:"󰍸"}.mdi-minus-network-outline:before{content:"󰲚"}.mdi-minus-thick:before{content:"󱘹"}.mdi-mirror:before{content:"󱇽"}.mdi-mirror-rectangle:before{content:"󱞟"}.mdi-mirror-variant:before{content:"󱞠"}.mdi-mixed-martial-arts:before{content:"󰶏"}.mdi-mixed-reality:before{content:"󰡿"}.mdi-molecule:before{content:"󰮬"}.mdi-molecule-co:before{content:"󱋾"}.mdi-molecule-co2:before{content:"󰟤"}.mdi-monitor:before{content:"󰍹"}.mdi-monitor-account:before{content:"󱩛"}.mdi-monitor-arrow-down:before{content:"󱧐"}.mdi-monitor-arrow-down-variant:before{content:"󱧑"}.mdi-monitor-cellphone:before{content:"󰦉"}.mdi-monitor-cellphone-star:before{content:"󰦊"}.mdi-monitor-dashboard:before{content:"󰨇"}.mdi-monitor-edit:before{content:"󱋆"}.mdi-monitor-eye:before{content:"󱎴"}.mdi-monitor-lock:before{content:"󰷛"}.mdi-monitor-multiple:before{content:"󰍺"}.mdi-monitor-off:before{content:"󰶐"}.mdi-monitor-screenshot:before{content:"󰹑"}.mdi-monitor-share:before{content:"󱒃"}.mdi-monitor-shimmer:before{content:"󱄄"}.mdi-monitor-small:before{content:"󱡶"}.mdi-monitor-speaker:before{content:"󰽟"}.mdi-monitor-speaker-off:before{content:"󰽠"}.mdi-monitor-star:before{content:"󰷜"}.mdi-monitor-vertical:before{content:"󱰳"}.mdi-moon-first-quarter:before{content:"󰽡"}.mdi-moon-full:before{content:"󰽢"}.mdi-moon-last-quarter:before{content:"󰽣"}.mdi-moon-new:before{content:"󰽤"}.mdi-moon-waning-crescent:before{content:"󰽥"}.mdi-moon-waning-gibbous:before{content:"󰽦"}.mdi-moon-waxing-crescent:before{content:"󰽧"}.mdi-moon-waxing-gibbous:before{content:"󰽨"}.mdi-moped:before{content:"󱂆"}.mdi-moped-electric:before{content:"󱖷"}.mdi-moped-electric-outline:before{content:"󱖸"}.mdi-moped-outline:before{content:"󱖹"}.mdi-more:before{content:"󰍻"}.mdi-mortar-pestle:before{content:"󱝈"}.mdi-mortar-pestle-plus:before{content:"󰏱"}.mdi-mosque:before{content:"󰵅"}.mdi-mosque-outline:before{content:"󱠧"}.mdi-mother-heart:before{content:"󱌔"}.mdi-mother-nurse:before{content:"󰴡"}.mdi-motion:before{content:"󱖲"}.mdi-motion-outline:before{content:"󱖳"}.mdi-motion-pause:before{content:"󱖐"}.mdi-motion-pause-outline:before{content:"󱖒"}.mdi-motion-play:before{content:"󱖏"}.mdi-motion-play-outline:before{content:"󱖑"}.mdi-motion-sensor:before{content:"󰶑"}.mdi-motion-sensor-off:before{content:"󱐵"}.mdi-motorbike:before{content:"󰍼"}.mdi-motorbike-electric:before{content:"󱖺"}.mdi-motorbike-off:before{content:"󱬖"}.mdi-mouse:before{content:"󰍽"}.mdi-mouse-bluetooth:before{content:"󰦋"}.mdi-mouse-move-down:before{content:"󱕐"}.mdi-mouse-move-up:before{content:"󱕑"}.mdi-mouse-move-vertical:before{content:"󱕒"}.mdi-mouse-off:before{content:"󰍾"}.mdi-mouse-variant:before{content:"󰍿"}.mdi-mouse-variant-off:before{content:"󰎀"}.mdi-move-resize:before{content:"󰙕"}.mdi-move-resize-variant:before{content:"󰙖"}.mdi-movie:before{content:"󰎁"}.mdi-movie-check:before{content:"󱛳"}.mdi-movie-check-outline:before{content:"󱛴"}.mdi-movie-cog:before{content:"󱛵"}.mdi-movie-cog-outline:before{content:"󱛶"}.mdi-movie-edit:before{content:"󱄢"}.mdi-movie-edit-outline:before{content:"󱄣"}.mdi-movie-filter:before{content:"󱄤"}.mdi-movie-filter-outline:before{content:"󱄥"}.mdi-movie-minus:before{content:"󱛷"}.mdi-movie-minus-outline:before{content:"󱛸"}.mdi-movie-off:before{content:"󱛹"}.mdi-movie-off-outline:before{content:"󱛺"}.mdi-movie-open:before{content:"󰿎"}.mdi-movie-open-check:before{content:"󱛻"}.mdi-movie-open-check-outline:before{content:"󱛼"}.mdi-movie-open-cog:before{content:"󱛽"}.mdi-movie-open-cog-outline:before{content:"󱛾"}.mdi-movie-open-edit:before{content:"󱛿"}.mdi-movie-open-edit-outline:before{content:"󱜀"}.mdi-movie-open-minus:before{content:"󱜁"}.mdi-movie-open-minus-outline:before{content:"󱜂"}.mdi-movie-open-off:before{content:"󱜃"}.mdi-movie-open-off-outline:before{content:"󱜄"}.mdi-movie-open-outline:before{content:"󰿏"}.mdi-movie-open-play:before{content:"󱜅"}.mdi-movie-open-play-outline:before{content:"󱜆"}.mdi-movie-open-plus:before{content:"󱜇"}.mdi-movie-open-plus-outline:before{content:"󱜈"}.mdi-movie-open-remove:before{content:"󱜉"}.mdi-movie-open-remove-outline:before{content:"󱜊"}.mdi-movie-open-settings:before{content:"󱜋"}.mdi-movie-open-settings-outline:before{content:"󱜌"}.mdi-movie-open-star:before{content:"󱜍"}.mdi-movie-open-star-outline:before{content:"󱜎"}.mdi-movie-outline:before{content:"󰷝"}.mdi-movie-play:before{content:"󱜏"}.mdi-movie-play-outline:before{content:"󱜐"}.mdi-movie-plus:before{content:"󱜑"}.mdi-movie-plus-outline:before{content:"󱜒"}.mdi-movie-remove:before{content:"󱜓"}.mdi-movie-remove-outline:before{content:"󱜔"}.mdi-movie-roll:before{content:"󰟞"}.mdi-movie-search:before{content:"󱇒"}.mdi-movie-search-outline:before{content:"󱇓"}.mdi-movie-settings:before{content:"󱜕"}.mdi-movie-settings-outline:before{content:"󱜖"}.mdi-movie-star:before{content:"󱜗"}.mdi-movie-star-outline:before{content:"󱜘"}.mdi-mower:before{content:"󱙯"}.mdi-mower-bag:before{content:"󱙰"}.mdi-mower-bag-on:before{content:"󱭠"}.mdi-mower-on:before{content:"󱭟"}.mdi-muffin:before{content:"󰦌"}.mdi-multicast:before{content:"󱢓"}.mdi-multimedia:before{content:"󱮗"}.mdi-multiplication:before{content:"󰎂"}.mdi-multiplication-box:before{content:"󰎃"}.mdi-mushroom:before{content:"󰟟"}.mdi-mushroom-off:before{content:"󱏺"}.mdi-mushroom-off-outline:before{content:"󱏻"}.mdi-mushroom-outline:before{content:"󰟠"}.mdi-music:before{content:"󰝚"}.mdi-music-accidental-double-flat:before{content:"󰽩"}.mdi-music-accidental-double-sharp:before{content:"󰽪"}.mdi-music-accidental-flat:before{content:"󰽫"}.mdi-music-accidental-natural:before{content:"󰽬"}.mdi-music-accidental-sharp:before{content:"󰽭"}.mdi-music-box:before{content:"󰎄"}.mdi-music-box-multiple:before{content:"󰌳"}.mdi-music-box-multiple-outline:before{content:"󰼄"}.mdi-music-box-outline:before{content:"󰎅"}.mdi-music-circle:before{content:"󰎆"}.mdi-music-circle-outline:before{content:"󰫔"}.mdi-music-clef-alto:before{content:"󰽮"}.mdi-music-clef-bass:before{content:"󰽯"}.mdi-music-clef-treble:before{content:"󰽰"}.mdi-music-note:before{content:"󰎇"}.mdi-music-note-bluetooth:before{content:"󰗾"}.mdi-music-note-bluetooth-off:before{content:"󰗿"}.mdi-music-note-eighth:before{content:"󰎈"}.mdi-music-note-eighth-dotted:before{content:"󰽱"}.mdi-music-note-half:before{content:"󰎉"}.mdi-music-note-half-dotted:before{content:"󰽲"}.mdi-music-note-minus:before{content:"󱮉"}.mdi-music-note-off:before{content:"󰎊"}.mdi-music-note-off-outline:before{content:"󰽳"}.mdi-music-note-outline:before{content:"󰽴"}.mdi-music-note-plus:before{content:"󰷞"}.mdi-music-note-quarter:before{content:"󰎋"}.mdi-music-note-quarter-dotted:before{content:"󰽵"}.mdi-music-note-sixteenth:before{content:"󰎌"}.mdi-music-note-sixteenth-dotted:before{content:"󰽶"}.mdi-music-note-whole:before{content:"󰎍"}.mdi-music-note-whole-dotted:before{content:"󰽷"}.mdi-music-off:before{content:"󰝛"}.mdi-music-rest-eighth:before{content:"󰽸"}.mdi-music-rest-half:before{content:"󰽹"}.mdi-music-rest-quarter:before{content:"󰽺"}.mdi-music-rest-sixteenth:before{content:"󰽻"}.mdi-music-rest-whole:before{content:"󰽼"}.mdi-mustache:before{content:"󱗞"}.mdi-nail:before{content:"󰷟"}.mdi-nas:before{content:"󰣳"}.mdi-nativescript:before{content:"󰢀"}.mdi-nature:before{content:"󰎎"}.mdi-nature-outline:before{content:"󱱱"}.mdi-nature-people:before{content:"󰎏"}.mdi-nature-people-outline:before{content:"󱱲"}.mdi-navigation:before{content:"󰎐"}.mdi-navigation-outline:before{content:"󱘇"}.mdi-navigation-variant:before{content:"󱣰"}.mdi-navigation-variant-outline:before{content:"󱣱"}.mdi-near-me:before{content:"󰗍"}.mdi-necklace:before{content:"󰼋"}.mdi-needle:before{content:"󰎑"}.mdi-needle-off:before{content:"󱧒"}.mdi-netflix:before{content:"󰝆"}.mdi-network:before{content:"󰛳"}.mdi-network-off:before{content:"󰲛"}.mdi-network-off-outline:before{content:"󰲜"}.mdi-network-outline:before{content:"󰲝"}.mdi-network-pos:before{content:"󱫋"}.mdi-network-strength-1:before{content:"󰣴"}.mdi-network-strength-1-alert:before{content:"󰣵"}.mdi-network-strength-2:before{content:"󰣶"}.mdi-network-strength-2-alert:before{content:"󰣷"}.mdi-network-strength-3:before{content:"󰣸"}.mdi-network-strength-3-alert:before{content:"󰣹"}.mdi-network-strength-4:before{content:"󰣺"}.mdi-network-strength-4-alert:before{content:"󰣻"}.mdi-network-strength-4-cog:before{content:"󱤚"}.mdi-network-strength-off:before{content:"󰣼"}.mdi-network-strength-off-outline:before{content:"󰣽"}.mdi-network-strength-outline:before{content:"󰣾"}.mdi-new-box:before{content:"󰎔"}.mdi-newspaper:before{content:"󰎕"}.mdi-newspaper-check:before{content:"󱥃"}.mdi-newspaper-minus:before{content:"󰼌"}.mdi-newspaper-plus:before{content:"󰼍"}.mdi-newspaper-remove:before{content:"󱥄"}.mdi-newspaper-variant:before{content:"󱀁"}.mdi-newspaper-variant-multiple:before{content:"󱀂"}.mdi-newspaper-variant-multiple-outline:before{content:"󱀃"}.mdi-newspaper-variant-outline:before{content:"󱀄"}.mdi-nfc:before{content:"󰎖"}.mdi-nfc-search-variant:before{content:"󰹓"}.mdi-nfc-tap:before{content:"󰎗"}.mdi-nfc-variant:before{content:"󰎘"}.mdi-nfc-variant-off:before{content:"󰹔"}.mdi-ninja:before{content:"󰝴"}.mdi-nintendo-game-boy:before{content:"󱎓"}.mdi-nintendo-switch:before{content:"󰟡"}.mdi-nintendo-wii:before{content:"󰖫"}.mdi-nintendo-wiiu:before{content:"󰜭"}.mdi-nix:before{content:"󱄅"}.mdi-nodejs:before{content:"󰎙"}.mdi-noodles:before{content:"󱅾"}.mdi-not-equal:before{content:"󰦍"}.mdi-not-equal-variant:before{content:"󰦎"}.mdi-note:before{content:"󰎚"}.mdi-note-alert:before{content:"󱝽"}.mdi-note-alert-outline:before{content:"󱝾"}.mdi-note-check:before{content:"󱝿"}.mdi-note-check-outline:before{content:"󱞀"}.mdi-note-edit:before{content:"󱞁"}.mdi-note-edit-outline:before{content:"󱞂"}.mdi-note-minus:before{content:"󱙏"}.mdi-note-minus-outline:before{content:"󱙐"}.mdi-note-multiple:before{content:"󰚸"}.mdi-note-multiple-outline:before{content:"󰚹"}.mdi-note-off:before{content:"󱞃"}.mdi-note-off-outline:before{content:"󱞄"}.mdi-note-outline:before{content:"󰎛"}.mdi-note-plus:before{content:"󰎜"}.mdi-note-plus-outline:before{content:"󰎝"}.mdi-note-remove:before{content:"󱙑"}.mdi-note-remove-outline:before{content:"󱙒"}.mdi-note-search:before{content:"󱙓"}.mdi-note-search-outline:before{content:"󱙔"}.mdi-note-text:before{content:"󰎞"}.mdi-note-text-outline:before{content:"󱇗"}.mdi-notebook:before{content:"󰠮"}.mdi-notebook-check:before{content:"󱓵"}.mdi-notebook-check-outline:before{content:"󱓶"}.mdi-notebook-edit:before{content:"󱓧"}.mdi-notebook-edit-outline:before{content:"󱓩"}.mdi-notebook-heart:before{content:"󱨋"}.mdi-notebook-heart-outline:before{content:"󱨌"}.mdi-notebook-minus:before{content:"󱘐"}.mdi-notebook-minus-outline:before{content:"󱘑"}.mdi-notebook-multiple:before{content:"󰹕"}.mdi-notebook-outline:before{content:"󰺿"}.mdi-notebook-plus:before{content:"󱘒"}.mdi-notebook-plus-outline:before{content:"󱘓"}.mdi-notebook-remove:before{content:"󱘔"}.mdi-notebook-remove-outline:before{content:"󱘕"}.mdi-notification-clear-all:before{content:"󰎟"}.mdi-npm:before{content:"󰛷"}.mdi-nuke:before{content:"󰚤"}.mdi-null:before{content:"󰟢"}.mdi-numeric:before{content:"󰎠"}.mdi-numeric-0:before{content:"󰬹"}.mdi-numeric-0-box:before{content:"󰎡"}.mdi-numeric-0-box-multiple:before{content:"󰼎"}.mdi-numeric-0-box-multiple-outline:before{content:"󰎢"}.mdi-numeric-0-box-outline:before{content:"󰎣"}.mdi-numeric-0-circle:before{content:"󰲞"}.mdi-numeric-0-circle-outline:before{content:"󰲟"}.mdi-numeric-1:before{content:"󰬺"}.mdi-numeric-1-box:before{content:"󰎤"}.mdi-numeric-1-box-multiple:before{content:"󰼏"}.mdi-numeric-1-box-multiple-outline:before{content:"󰎥"}.mdi-numeric-1-box-outline:before{content:"󰎦"}.mdi-numeric-1-circle:before{content:"󰲠"}.mdi-numeric-1-circle-outline:before{content:"󰲡"}.mdi-numeric-10:before{content:"󰿩"}.mdi-numeric-10-box:before{content:"󰽽"}.mdi-numeric-10-box-multiple:before{content:"󰿪"}.mdi-numeric-10-box-multiple-outline:before{content:"󰿫"}.mdi-numeric-10-box-outline:before{content:"󰽾"}.mdi-numeric-10-circle:before{content:"󰿬"}.mdi-numeric-10-circle-outline:before{content:"󰿭"}.mdi-numeric-2:before{content:"󰬻"}.mdi-numeric-2-box:before{content:"󰎧"}.mdi-numeric-2-box-multiple:before{content:"󰼐"}.mdi-numeric-2-box-multiple-outline:before{content:"󰎨"}.mdi-numeric-2-box-outline:before{content:"󰎩"}.mdi-numeric-2-circle:before{content:"󰲢"}.mdi-numeric-2-circle-outline:before{content:"󰲣"}.mdi-numeric-3:before{content:"󰬼"}.mdi-numeric-3-box:before{content:"󰎪"}.mdi-numeric-3-box-multiple:before{content:"󰼑"}.mdi-numeric-3-box-multiple-outline:before{content:"󰎫"}.mdi-numeric-3-box-outline:before{content:"󰎬"}.mdi-numeric-3-circle:before{content:"󰲤"}.mdi-numeric-3-circle-outline:before{content:"󰲥"}.mdi-numeric-4:before{content:"󰬽"}.mdi-numeric-4-box:before{content:"󰎭"}.mdi-numeric-4-box-multiple:before{content:"󰼒"}.mdi-numeric-4-box-multiple-outline:before{content:"󰎲"}.mdi-numeric-4-box-outline:before{content:"󰎮"}.mdi-numeric-4-circle:before{content:"󰲦"}.mdi-numeric-4-circle-outline:before{content:"󰲧"}.mdi-numeric-5:before{content:"󰬾"}.mdi-numeric-5-box:before{content:"󰎱"}.mdi-numeric-5-box-multiple:before{content:"󰼓"}.mdi-numeric-5-box-multiple-outline:before{content:"󰎯"}.mdi-numeric-5-box-outline:before{content:"󰎰"}.mdi-numeric-5-circle:before{content:"󰲨"}.mdi-numeric-5-circle-outline:before{content:"󰲩"}.mdi-numeric-6:before{content:"󰬿"}.mdi-numeric-6-box:before{content:"󰎳"}.mdi-numeric-6-box-multiple:before{content:"󰼔"}.mdi-numeric-6-box-multiple-outline:before{content:"󰎴"}.mdi-numeric-6-box-outline:before{content:"󰎵"}.mdi-numeric-6-circle:before{content:"󰲪"}.mdi-numeric-6-circle-outline:before{content:"󰲫"}.mdi-numeric-7:before{content:"󰭀"}.mdi-numeric-7-box:before{content:"󰎶"}.mdi-numeric-7-box-multiple:before{content:"󰼕"}.mdi-numeric-7-box-multiple-outline:before{content:"󰎷"}.mdi-numeric-7-box-outline:before{content:"󰎸"}.mdi-numeric-7-circle:before{content:"󰲬"}.mdi-numeric-7-circle-outline:before{content:"󰲭"}.mdi-numeric-8:before{content:"󰭁"}.mdi-numeric-8-box:before{content:"󰎹"}.mdi-numeric-8-box-multiple:before{content:"󰼖"}.mdi-numeric-8-box-multiple-outline:before{content:"󰎺"}.mdi-numeric-8-box-outline:before{content:"󰎻"}.mdi-numeric-8-circle:before{content:"󰲮"}.mdi-numeric-8-circle-outline:before{content:"󰲯"}.mdi-numeric-9:before{content:"󰭂"}.mdi-numeric-9-box:before{content:"󰎼"}.mdi-numeric-9-box-multiple:before{content:"󰼗"}.mdi-numeric-9-box-multiple-outline:before{content:"󰎽"}.mdi-numeric-9-box-outline:before{content:"󰎾"}.mdi-numeric-9-circle:before{content:"󰲰"}.mdi-numeric-9-circle-outline:before{content:"󰲱"}.mdi-numeric-9-plus:before{content:"󰿮"}.mdi-numeric-9-plus-box:before{content:"󰎿"}.mdi-numeric-9-plus-box-multiple:before{content:"󰼘"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"󰏀"}.mdi-numeric-9-plus-box-outline:before{content:"󰏁"}.mdi-numeric-9-plus-circle:before{content:"󰲲"}.mdi-numeric-9-plus-circle-outline:before{content:"󰲳"}.mdi-numeric-negative-1:before{content:"󱁒"}.mdi-numeric-off:before{content:"󱧓"}.mdi-numeric-positive-1:before{content:"󱗋"}.mdi-nut:before{content:"󰛸"}.mdi-nutrition:before{content:"󰏂"}.mdi-nuxt:before{content:"󱄆"}.mdi-oar:before{content:"󰙼"}.mdi-ocarina:before{content:"󰷠"}.mdi-oci:before{content:"󱋩"}.mdi-ocr:before{content:"󱄺"}.mdi-octagon:before{content:"󰏃"}.mdi-octagon-outline:before{content:"󰏄"}.mdi-octagram:before{content:"󰛹"}.mdi-octagram-edit:before{content:"󱰴"}.mdi-octagram-edit-outline:before{content:"󱰵"}.mdi-octagram-minus:before{content:"󱰶"}.mdi-octagram-minus-outline:before{content:"󱰷"}.mdi-octagram-outline:before{content:"󰝵"}.mdi-octagram-plus:before{content:"󱰸"}.mdi-octagram-plus-outline:before{content:"󱰹"}.mdi-octahedron:before{content:"󱥐"}.mdi-octahedron-off:before{content:"󱥑"}.mdi-odnoklassniki:before{content:"󰏅"}.mdi-offer:before{content:"󱈛"}.mdi-office-building:before{content:"󰦑"}.mdi-office-building-cog:before{content:"󱥉"}.mdi-office-building-cog-outline:before{content:"󱥊"}.mdi-office-building-marker:before{content:"󱔠"}.mdi-office-building-marker-outline:before{content:"󱔡"}.mdi-office-building-minus:before{content:"󱮪"}.mdi-office-building-minus-outline:before{content:"󱮫"}.mdi-office-building-outline:before{content:"󱔟"}.mdi-office-building-plus:before{content:"󱮨"}.mdi-office-building-plus-outline:before{content:"󱮩"}.mdi-office-building-remove:before{content:"󱮬"}.mdi-office-building-remove-outline:before{content:"󱮭"}.mdi-oil:before{content:"󰏇"}.mdi-oil-lamp:before{content:"󰼙"}.mdi-oil-level:before{content:"󱁓"}.mdi-oil-temperature:before{content:"󰿸"}.mdi-om:before{content:"󰥳"}.mdi-omega:before{content:"󰏉"}.mdi-one-up:before{content:"󰮭"}.mdi-onepassword:before{content:"󰢁"}.mdi-opacity:before{content:"󰗌"}.mdi-open-in-app:before{content:"󰏋"}.mdi-open-in-new:before{content:"󰏌"}.mdi-open-source-initiative:before{content:"󰮮"}.mdi-openid:before{content:"󰏍"}.mdi-opera:before{content:"󰏎"}.mdi-orbit:before{content:"󰀘"}.mdi-orbit-variant:before{content:"󱗛"}.mdi-order-alphabetical-ascending:before{content:"󰈍"}.mdi-order-alphabetical-descending:before{content:"󰴇"}.mdi-order-bool-ascending:before{content:"󰊾"}.mdi-order-bool-ascending-variant:before{content:"󰦏"}.mdi-order-bool-descending:before{content:"󱎄"}.mdi-order-bool-descending-variant:before{content:"󰦐"}.mdi-order-numeric-ascending:before{content:"󰕅"}.mdi-order-numeric-descending:before{content:"󰕆"}.mdi-origin:before{content:"󰭃"}.mdi-ornament:before{content:"󰏏"}.mdi-ornament-variant:before{content:"󰏐"}.mdi-outdoor-lamp:before{content:"󱁔"}.mdi-overscan:before{content:"󱀅"}.mdi-owl:before{content:"󰏒"}.mdi-pac-man:before{content:"󰮯"}.mdi-package:before{content:"󰏓"}.mdi-package-check:before{content:"󱭑"}.mdi-package-down:before{content:"󰏔"}.mdi-package-up:before{content:"󰏕"}.mdi-package-variant:before{content:"󰏖"}.mdi-package-variant-closed:before{content:"󰏗"}.mdi-package-variant-closed-check:before{content:"󱭒"}.mdi-package-variant-closed-minus:before{content:"󱧔"}.mdi-package-variant-closed-plus:before{content:"󱧕"}.mdi-package-variant-closed-remove:before{content:"󱧖"}.mdi-package-variant-minus:before{content:"󱧗"}.mdi-package-variant-plus:before{content:"󱧘"}.mdi-package-variant-remove:before{content:"󱧙"}.mdi-page-first:before{content:"󰘀"}.mdi-page-last:before{content:"󰘁"}.mdi-page-layout-body:before{content:"󰛺"}.mdi-page-layout-footer:before{content:"󰛻"}.mdi-page-layout-header:before{content:"󰛼"}.mdi-page-layout-header-footer:before{content:"󰽿"}.mdi-page-layout-sidebar-left:before{content:"󰛽"}.mdi-page-layout-sidebar-right:before{content:"󰛾"}.mdi-page-next:before{content:"󰮰"}.mdi-page-next-outline:before{content:"󰮱"}.mdi-page-previous:before{content:"󰮲"}.mdi-page-previous-outline:before{content:"󰮳"}.mdi-pail:before{content:"󱐗"}.mdi-pail-minus:before{content:"󱐷"}.mdi-pail-minus-outline:before{content:"󱐼"}.mdi-pail-off:before{content:"󱐹"}.mdi-pail-off-outline:before{content:"󱐾"}.mdi-pail-outline:before{content:"󱐺"}.mdi-pail-plus:before{content:"󱐶"}.mdi-pail-plus-outline:before{content:"󱐻"}.mdi-pail-remove:before{content:"󱐸"}.mdi-pail-remove-outline:before{content:"󱐽"}.mdi-palette:before{content:"󰏘"}.mdi-palette-advanced:before{content:"󰏙"}.mdi-palette-outline:before{content:"󰸌"}.mdi-palette-swatch:before{content:"󰢵"}.mdi-palette-swatch-outline:before{content:"󱍜"}.mdi-palette-swatch-variant:before{content:"󱥚"}.mdi-palm-tree:before{content:"󱁕"}.mdi-pan:before{content:"󰮴"}.mdi-pan-bottom-left:before{content:"󰮵"}.mdi-pan-bottom-right:before{content:"󰮶"}.mdi-pan-down:before{content:"󰮷"}.mdi-pan-horizontal:before{content:"󰮸"}.mdi-pan-left:before{content:"󰮹"}.mdi-pan-right:before{content:"󰮺"}.mdi-pan-top-left:before{content:"󰮻"}.mdi-pan-top-right:before{content:"󰮼"}.mdi-pan-up:before{content:"󰮽"}.mdi-pan-vertical:before{content:"󰮾"}.mdi-panda:before{content:"󰏚"}.mdi-pandora:before{content:"󰏛"}.mdi-panorama:before{content:"󰏜"}.mdi-panorama-fisheye:before{content:"󰏝"}.mdi-panorama-horizontal:before{content:"󱤨"}.mdi-panorama-horizontal-outline:before{content:"󰏞"}.mdi-panorama-outline:before{content:"󱦌"}.mdi-panorama-sphere:before{content:"󱦍"}.mdi-panorama-sphere-outline:before{content:"󱦎"}.mdi-panorama-variant:before{content:"󱦏"}.mdi-panorama-variant-outline:before{content:"󱦐"}.mdi-panorama-vertical:before{content:"󱤩"}.mdi-panorama-vertical-outline:before{content:"󰏟"}.mdi-panorama-wide-angle:before{content:"󱥟"}.mdi-panorama-wide-angle-outline:before{content:"󰏠"}.mdi-paper-cut-vertical:before{content:"󰏡"}.mdi-paper-roll:before{content:"󱅗"}.mdi-paper-roll-outline:before{content:"󱅘"}.mdi-paperclip:before{content:"󰏢"}.mdi-paperclip-check:before{content:"󱫆"}.mdi-paperclip-lock:before{content:"󱧚"}.mdi-paperclip-minus:before{content:"󱫇"}.mdi-paperclip-off:before{content:"󱫈"}.mdi-paperclip-plus:before{content:"󱫉"}.mdi-paperclip-remove:before{content:"󱫊"}.mdi-parachute:before{content:"󰲴"}.mdi-parachute-outline:before{content:"󰲵"}.mdi-paragliding:before{content:"󱝅"}.mdi-parking:before{content:"󰏣"}.mdi-party-popper:before{content:"󱁖"}.mdi-passport:before{content:"󰟣"}.mdi-passport-alert:before{content:"󱲸"}.mdi-passport-biometric:before{content:"󰷡"}.mdi-passport-cancel:before{content:"󱲹"}.mdi-passport-check:before{content:"󱲺"}.mdi-passport-minus:before{content:"󱲻"}.mdi-passport-plus:before{content:"󱲼"}.mdi-passport-remove:before{content:"󱲽"}.mdi-pasta:before{content:"󱅠"}.mdi-patio-heater:before{content:"󰾀"}.mdi-patreon:before{content:"󰢂"}.mdi-pause:before{content:"󰏤"}.mdi-pause-box:before{content:"󰂼"}.mdi-pause-box-outline:before{content:"󱭺"}.mdi-pause-circle:before{content:"󰏥"}.mdi-pause-circle-outline:before{content:"󰏦"}.mdi-pause-octagon:before{content:"󰏧"}.mdi-pause-octagon-outline:before{content:"󰏨"}.mdi-paw:before{content:"󰏩"}.mdi-paw-off:before{content:"󰙗"}.mdi-paw-off-outline:before{content:"󱙶"}.mdi-paw-outline:before{content:"󱙵"}.mdi-peace:before{content:"󰢄"}.mdi-peanut:before{content:"󰿼"}.mdi-peanut-off:before{content:"󰿽"}.mdi-peanut-off-outline:before{content:"󰿿"}.mdi-peanut-outline:before{content:"󰿾"}.mdi-pen:before{content:"󰏪"}.mdi-pen-lock:before{content:"󰷢"}.mdi-pen-minus:before{content:"󰷣"}.mdi-pen-off:before{content:"󰷤"}.mdi-pen-plus:before{content:"󰷥"}.mdi-pen-remove:before{content:"󰷦"}.mdi-pencil:before{content:"󰏫"}.mdi-pencil-box:before{content:"󰏬"}.mdi-pencil-box-multiple:before{content:"󱅄"}.mdi-pencil-box-multiple-outline:before{content:"󱅅"}.mdi-pencil-box-outline:before{content:"󰏭"}.mdi-pencil-circle:before{content:"󰛿"}.mdi-pencil-circle-outline:before{content:"󰝶"}.mdi-pencil-lock:before{content:"󰏮"}.mdi-pencil-lock-outline:before{content:"󰷧"}.mdi-pencil-minus:before{content:"󰷨"}.mdi-pencil-minus-outline:before{content:"󰷩"}.mdi-pencil-off:before{content:"󰏯"}.mdi-pencil-off-outline:before{content:"󰷪"}.mdi-pencil-outline:before{content:"󰲶"}.mdi-pencil-plus:before{content:"󰷫"}.mdi-pencil-plus-outline:before{content:"󰷬"}.mdi-pencil-remove:before{content:"󰷭"}.mdi-pencil-remove-outline:before{content:"󰷮"}.mdi-pencil-ruler:before{content:"󱍓"}.mdi-pencil-ruler-outline:before{content:"󱰑"}.mdi-penguin:before{content:"󰻀"}.mdi-pentagon:before{content:"󰜁"}.mdi-pentagon-outline:before{content:"󰜀"}.mdi-pentagram:before{content:"󱙧"}.mdi-percent:before{content:"󰏰"}.mdi-percent-box:before{content:"󱨂"}.mdi-percent-box-outline:before{content:"󱨃"}.mdi-percent-circle:before{content:"󱨄"}.mdi-percent-circle-outline:before{content:"󱨅"}.mdi-percent-outline:before{content:"󱉸"}.mdi-periodic-table:before{content:"󰢶"}.mdi-perspective-less:before{content:"󰴣"}.mdi-perspective-more:before{content:"󰴤"}.mdi-ph:before{content:"󱟅"}.mdi-phone:before{content:"󰏲"}.mdi-phone-alert:before{content:"󰼚"}.mdi-phone-alert-outline:before{content:"󱆎"}.mdi-phone-bluetooth:before{content:"󰏳"}.mdi-phone-bluetooth-outline:before{content:"󱆏"}.mdi-phone-cancel:before{content:"󱂼"}.mdi-phone-cancel-outline:before{content:"󱆐"}.mdi-phone-check:before{content:"󱆩"}.mdi-phone-check-outline:before{content:"󱆪"}.mdi-phone-classic:before{content:"󰘂"}.mdi-phone-classic-off:before{content:"󱉹"}.mdi-phone-clock:before{content:"󱧛"}.mdi-phone-dial:before{content:"󱕙"}.mdi-phone-dial-outline:before{content:"󱕚"}.mdi-phone-forward:before{content:"󰏴"}.mdi-phone-forward-outline:before{content:"󱆑"}.mdi-phone-hangup:before{content:"󰏵"}.mdi-phone-hangup-outline:before{content:"󱆒"}.mdi-phone-in-talk:before{content:"󰏶"}.mdi-phone-in-talk-outline:before{content:"󱆂"}.mdi-phone-incoming:before{content:"󰏷"}.mdi-phone-incoming-outgoing:before{content:"󱬿"}.mdi-phone-incoming-outgoing-outline:before{content:"󱭀"}.mdi-phone-incoming-outline:before{content:"󱆓"}.mdi-phone-lock:before{content:"󰏸"}.mdi-phone-lock-outline:before{content:"󱆔"}.mdi-phone-log:before{content:"󰏹"}.mdi-phone-log-outline:before{content:"󱆕"}.mdi-phone-message:before{content:"󱆖"}.mdi-phone-message-outline:before{content:"󱆗"}.mdi-phone-minus:before{content:"󰙘"}.mdi-phone-minus-outline:before{content:"󱆘"}.mdi-phone-missed:before{content:"󰏺"}.mdi-phone-missed-outline:before{content:"󱆥"}.mdi-phone-off:before{content:"󰷯"}.mdi-phone-off-outline:before{content:"󱆦"}.mdi-phone-outgoing:before{content:"󰏻"}.mdi-phone-outgoing-outline:before{content:"󱆙"}.mdi-phone-outline:before{content:"󰷰"}.mdi-phone-paused:before{content:"󰏼"}.mdi-phone-paused-outline:before{content:"󱆚"}.mdi-phone-plus:before{content:"󰙙"}.mdi-phone-plus-outline:before{content:"󱆛"}.mdi-phone-refresh:before{content:"󱦓"}.mdi-phone-refresh-outline:before{content:"󱦔"}.mdi-phone-remove:before{content:"󱔯"}.mdi-phone-remove-outline:before{content:"󱔰"}.mdi-phone-return:before{content:"󰠯"}.mdi-phone-return-outline:before{content:"󱆜"}.mdi-phone-ring:before{content:"󱆫"}.mdi-phone-ring-outline:before{content:"󱆬"}.mdi-phone-rotate-landscape:before{content:"󰢅"}.mdi-phone-rotate-portrait:before{content:"󰢆"}.mdi-phone-settings:before{content:"󰏽"}.mdi-phone-settings-outline:before{content:"󱆝"}.mdi-phone-sync:before{content:"󱦕"}.mdi-phone-sync-outline:before{content:"󱦖"}.mdi-phone-voip:before{content:"󰏾"}.mdi-pi:before{content:"󰏿"}.mdi-pi-box:before{content:"󰐀"}.mdi-pi-hole:before{content:"󰷱"}.mdi-piano:before{content:"󰙽"}.mdi-piano-off:before{content:"󰚘"}.mdi-pickaxe:before{content:"󰢷"}.mdi-picture-in-picture-bottom-right:before{content:"󰹗"}.mdi-picture-in-picture-bottom-right-outline:before{content:"󰹘"}.mdi-picture-in-picture-top-right:before{content:"󰹙"}.mdi-picture-in-picture-top-right-outline:before{content:"󰹚"}.mdi-pier:before{content:"󰢇"}.mdi-pier-crane:before{content:"󰢈"}.mdi-pig:before{content:"󰐁"}.mdi-pig-variant:before{content:"󱀆"}.mdi-pig-variant-outline:before{content:"󱙸"}.mdi-piggy-bank:before{content:"󱀇"}.mdi-piggy-bank-outline:before{content:"󱙹"}.mdi-pill:before{content:"󰐂"}.mdi-pill-multiple:before{content:"󱭌"}.mdi-pill-off:before{content:"󱩜"}.mdi-pillar:before{content:"󰜂"}.mdi-pin:before{content:"󰐃"}.mdi-pin-off:before{content:"󰐄"}.mdi-pin-off-outline:before{content:"󰤰"}.mdi-pin-outline:before{content:"󰤱"}.mdi-pine-tree:before{content:"󰐅"}.mdi-pine-tree-box:before{content:"󰐆"}.mdi-pine-tree-fire:before{content:"󱐚"}.mdi-pine-tree-variant:before{content:"󱱳"}.mdi-pine-tree-variant-outline:before{content:"󱱴"}.mdi-pinterest:before{content:"󰐇"}.mdi-pinwheel:before{content:"󰫕"}.mdi-pinwheel-outline:before{content:"󰫖"}.mdi-pipe:before{content:"󰟥"}.mdi-pipe-disconnected:before{content:"󰟦"}.mdi-pipe-leak:before{content:"󰢉"}.mdi-pipe-valve:before{content:"󱡍"}.mdi-pipe-wrench:before{content:"󱍔"}.mdi-pirate:before{content:"󰨈"}.mdi-pistol:before{content:"󰜃"}.mdi-piston:before{content:"󰢊"}.mdi-pitchfork:before{content:"󱕓"}.mdi-pizza:before{content:"󰐉"}.mdi-plane-car:before{content:"󱫿"}.mdi-plane-train:before{content:"󱬀"}.mdi-play:before{content:"󰐊"}.mdi-play-box:before{content:"󱉺"}.mdi-play-box-edit-outline:before{content:"󱰺"}.mdi-play-box-lock:before{content:"󱨖"}.mdi-play-box-lock-open:before{content:"󱨗"}.mdi-play-box-lock-open-outline:before{content:"󱨘"}.mdi-play-box-lock-outline:before{content:"󱨙"}.mdi-play-box-multiple:before{content:"󰴙"}.mdi-play-box-multiple-outline:before{content:"󱏦"}.mdi-play-box-outline:before{content:"󰐋"}.mdi-play-circle:before{content:"󰐌"}.mdi-play-circle-outline:before{content:"󰐍"}.mdi-play-network:before{content:"󰢋"}.mdi-play-network-outline:before{content:"󰲷"}.mdi-play-outline:before{content:"󰼛"}.mdi-play-pause:before{content:"󰐎"}.mdi-play-protected-content:before{content:"󰐏"}.mdi-play-speed:before{content:"󰣿"}.mdi-playlist-check:before{content:"󰗇"}.mdi-playlist-edit:before{content:"󰤀"}.mdi-playlist-minus:before{content:"󰐐"}.mdi-playlist-music:before{content:"󰲸"}.mdi-playlist-music-outline:before{content:"󰲹"}.mdi-playlist-play:before{content:"󰐑"}.mdi-playlist-plus:before{content:"󰐒"}.mdi-playlist-remove:before{content:"󰐓"}.mdi-playlist-star:before{content:"󰷲"}.mdi-plex:before{content:"󰚺"}.mdi-pliers:before{content:"󱦤"}.mdi-plus:before{content:"󰐕"}.mdi-plus-box:before{content:"󰐖"}.mdi-plus-box-multiple:before{content:"󰌴"}.mdi-plus-box-multiple-outline:before{content:"󱅃"}.mdi-plus-box-outline:before{content:"󰜄"}.mdi-plus-circle:before{content:"󰐗"}.mdi-plus-circle-multiple:before{content:"󰍌"}.mdi-plus-circle-multiple-outline:before{content:"󰐘"}.mdi-plus-circle-outline:before{content:"󰐙"}.mdi-plus-lock:before{content:"󱩝"}.mdi-plus-lock-open:before{content:"󱩞"}.mdi-plus-minus:before{content:"󰦒"}.mdi-plus-minus-box:before{content:"󰦓"}.mdi-plus-minus-variant:before{content:"󱓉"}.mdi-plus-network:before{content:"󰐚"}.mdi-plus-network-outline:before{content:"󰲺"}.mdi-plus-outline:before{content:"󰜅"}.mdi-plus-thick:before{content:"󱇬"}.mdi-pocket:before{content:"󱲾"}.mdi-podcast:before{content:"󰦔"}.mdi-podium:before{content:"󰴥"}.mdi-podium-bronze:before{content:"󰴦"}.mdi-podium-gold:before{content:"󰴧"}.mdi-podium-silver:before{content:"󰴨"}.mdi-point-of-sale:before{content:"󰶒"}.mdi-pokeball:before{content:"󰐝"}.mdi-pokemon-go:before{content:"󰨉"}.mdi-poker-chip:before{content:"󰠰"}.mdi-polaroid:before{content:"󰐞"}.mdi-police-badge:before{content:"󱅧"}.mdi-police-badge-outline:before{content:"󱅨"}.mdi-police-station:before{content:"󱠹"}.mdi-poll:before{content:"󰐟"}.mdi-polo:before{content:"󱓃"}.mdi-polymer:before{content:"󰐡"}.mdi-pool:before{content:"󰘆"}.mdi-pool-thermometer:before{content:"󱩟"}.mdi-popcorn:before{content:"󰐢"}.mdi-post:before{content:"󱀈"}.mdi-post-lamp:before{content:"󱩠"}.mdi-post-outline:before{content:"󱀉"}.mdi-postage-stamp:before{content:"󰲻"}.mdi-pot:before{content:"󰋥"}.mdi-pot-mix:before{content:"󰙛"}.mdi-pot-mix-outline:before{content:"󰙷"}.mdi-pot-outline:before{content:"󰋿"}.mdi-pot-steam:before{content:"󰙚"}.mdi-pot-steam-outline:before{content:"󰌦"}.mdi-pound:before{content:"󰐣"}.mdi-pound-box:before{content:"󰐤"}.mdi-pound-box-outline:before{content:"󱅿"}.mdi-power:before{content:"󰐥"}.mdi-power-cycle:before{content:"󰤁"}.mdi-power-off:before{content:"󰤂"}.mdi-power-on:before{content:"󰤃"}.mdi-power-plug:before{content:"󰚥"}.mdi-power-plug-battery:before{content:"󱰻"}.mdi-power-plug-battery-outline:before{content:"󱰼"}.mdi-power-plug-off:before{content:"󰚦"}.mdi-power-plug-off-outline:before{content:"󱐤"}.mdi-power-plug-outline:before{content:"󱐥"}.mdi-power-settings:before{content:"󰐦"}.mdi-power-sleep:before{content:"󰤄"}.mdi-power-socket:before{content:"󰐧"}.mdi-power-socket-au:before{content:"󰤅"}.mdi-power-socket-ch:before{content:"󰾳"}.mdi-power-socket-de:before{content:"󱄇"}.mdi-power-socket-eu:before{content:"󰟧"}.mdi-power-socket-fr:before{content:"󱄈"}.mdi-power-socket-it:before{content:"󱓿"}.mdi-power-socket-jp:before{content:"󱄉"}.mdi-power-socket-uk:before{content:"󰟨"}.mdi-power-socket-us:before{content:"󰟩"}.mdi-power-standby:before{content:"󰤆"}.mdi-powershell:before{content:"󰨊"}.mdi-prescription:before{content:"󰜆"}.mdi-presentation:before{content:"󰐨"}.mdi-presentation-play:before{content:"󰐩"}.mdi-pretzel:before{content:"󱕢"}.mdi-printer:before{content:"󰐪"}.mdi-printer-3d:before{content:"󰐫"}.mdi-printer-3d-nozzle:before{content:"󰹛"}.mdi-printer-3d-nozzle-alert:before{content:"󱇀"}.mdi-printer-3d-nozzle-alert-outline:before{content:"󱇁"}.mdi-printer-3d-nozzle-heat:before{content:"󱢸"}.mdi-printer-3d-nozzle-heat-outline:before{content:"󱢹"}.mdi-printer-3d-nozzle-off:before{content:"󱬙"}.mdi-printer-3d-nozzle-off-outline:before{content:"󱬚"}.mdi-printer-3d-nozzle-outline:before{content:"󰹜"}.mdi-printer-3d-off:before{content:"󱬎"}.mdi-printer-alert:before{content:"󰐬"}.mdi-printer-check:before{content:"󱅆"}.mdi-printer-eye:before{content:"󱑘"}.mdi-printer-off:before{content:"󰹝"}.mdi-printer-off-outline:before{content:"󱞅"}.mdi-printer-outline:before{content:"󱞆"}.mdi-printer-pos:before{content:"󱁗"}.mdi-printer-pos-alert:before{content:"󱮼"}.mdi-printer-pos-alert-outline:before{content:"󱮽"}.mdi-printer-pos-cancel:before{content:"󱮾"}.mdi-printer-pos-cancel-outline:before{content:"󱮿"}.mdi-printer-pos-check:before{content:"󱯀"}.mdi-printer-pos-check-outline:before{content:"󱯁"}.mdi-printer-pos-cog:before{content:"󱯂"}.mdi-printer-pos-cog-outline:before{content:"󱯃"}.mdi-printer-pos-edit:before{content:"󱯄"}.mdi-printer-pos-edit-outline:before{content:"󱯅"}.mdi-printer-pos-minus:before{content:"󱯆"}.mdi-printer-pos-minus-outline:before{content:"󱯇"}.mdi-printer-pos-network:before{content:"󱯈"}.mdi-printer-pos-network-outline:before{content:"󱯉"}.mdi-printer-pos-off:before{content:"󱯊"}.mdi-printer-pos-off-outline:before{content:"󱯋"}.mdi-printer-pos-outline:before{content:"󱯌"}.mdi-printer-pos-pause:before{content:"󱯍"}.mdi-printer-pos-pause-outline:before{content:"󱯎"}.mdi-printer-pos-play:before{content:"󱯏"}.mdi-printer-pos-play-outline:before{content:"󱯐"}.mdi-printer-pos-plus:before{content:"󱯑"}.mdi-printer-pos-plus-outline:before{content:"󱯒"}.mdi-printer-pos-refresh:before{content:"󱯓"}.mdi-printer-pos-refresh-outline:before{content:"󱯔"}.mdi-printer-pos-remove:before{content:"󱯕"}.mdi-printer-pos-remove-outline:before{content:"󱯖"}.mdi-printer-pos-star:before{content:"󱯗"}.mdi-printer-pos-star-outline:before{content:"󱯘"}.mdi-printer-pos-stop:before{content:"󱯙"}.mdi-printer-pos-stop-outline:before{content:"󱯚"}.mdi-printer-pos-sync:before{content:"󱯛"}.mdi-printer-pos-sync-outline:before{content:"󱯜"}.mdi-printer-pos-wrench:before{content:"󱯝"}.mdi-printer-pos-wrench-outline:before{content:"󱯞"}.mdi-printer-search:before{content:"󱑗"}.mdi-printer-settings:before{content:"󰜇"}.mdi-printer-wireless:before{content:"󰨋"}.mdi-priority-high:before{content:"󰘃"}.mdi-priority-low:before{content:"󰘄"}.mdi-professional-hexagon:before{content:"󰐭"}.mdi-progress-alert:before{content:"󰲼"}.mdi-progress-check:before{content:"󰦕"}.mdi-progress-clock:before{content:"󰦖"}.mdi-progress-close:before{content:"󱄊"}.mdi-progress-download:before{content:"󰦗"}.mdi-progress-helper:before{content:"󱮢"}.mdi-progress-pencil:before{content:"󱞇"}.mdi-progress-question:before{content:"󱔢"}.mdi-progress-star:before{content:"󱞈"}.mdi-progress-star-four-points:before{content:"󱰽"}.mdi-progress-upload:before{content:"󰦘"}.mdi-progress-wrench:before{content:"󰲽"}.mdi-projector:before{content:"󰐮"}.mdi-projector-off:before{content:"󱨣"}.mdi-projector-screen:before{content:"󰐯"}.mdi-projector-screen-off:before{content:"󱠍"}.mdi-projector-screen-off-outline:before{content:"󱠎"}.mdi-projector-screen-outline:before{content:"󱜤"}.mdi-projector-screen-variant:before{content:"󱠏"}.mdi-projector-screen-variant-off:before{content:"󱠐"}.mdi-projector-screen-variant-off-outline:before{content:"󱠑"}.mdi-projector-screen-variant-outline:before{content:"󱠒"}.mdi-propane-tank:before{content:"󱍗"}.mdi-propane-tank-outline:before{content:"󱍘"}.mdi-protocol:before{content:"󰿘"}.mdi-publish:before{content:"󰚧"}.mdi-publish-off:before{content:"󱥅"}.mdi-pulse:before{content:"󰐰"}.mdi-pump:before{content:"󱐂"}.mdi-pump-off:before{content:"󱬢"}.mdi-pumpkin:before{content:"󰮿"}.mdi-purse:before{content:"󰼜"}.mdi-purse-outline:before{content:"󰼝"}.mdi-puzzle:before{content:"󰐱"}.mdi-puzzle-check:before{content:"󱐦"}.mdi-puzzle-check-outline:before{content:"󱐧"}.mdi-puzzle-edit:before{content:"󱓓"}.mdi-puzzle-edit-outline:before{content:"󱓙"}.mdi-puzzle-heart:before{content:"󱓔"}.mdi-puzzle-heart-outline:before{content:"󱓚"}.mdi-puzzle-minus:before{content:"󱓑"}.mdi-puzzle-minus-outline:before{content:"󱓗"}.mdi-puzzle-outline:before{content:"󰩦"}.mdi-puzzle-plus:before{content:"󱓐"}.mdi-puzzle-plus-outline:before{content:"󱓖"}.mdi-puzzle-remove:before{content:"󱓒"}.mdi-puzzle-remove-outline:before{content:"󱓘"}.mdi-puzzle-star:before{content:"󱓕"}.mdi-puzzle-star-outline:before{content:"󱓛"}.mdi-pyramid:before{content:"󱥒"}.mdi-pyramid-off:before{content:"󱥓"}.mdi-qi:before{content:"󰦙"}.mdi-qqchat:before{content:"󰘅"}.mdi-qrcode:before{content:"󰐲"}.mdi-qrcode-edit:before{content:"󰢸"}.mdi-qrcode-minus:before{content:"󱆌"}.mdi-qrcode-plus:before{content:"󱆋"}.mdi-qrcode-remove:before{content:"󱆍"}.mdi-qrcode-scan:before{content:"󰐳"}.mdi-quadcopter:before{content:"󰐴"}.mdi-quality-high:before{content:"󰐵"}.mdi-quality-low:before{content:"󰨌"}.mdi-quality-medium:before{content:"󰨍"}.mdi-queue-first-in-last-out:before{content:"󱲯"}.mdi-quora:before{content:"󰴩"}.mdi-rabbit:before{content:"󰤇"}.mdi-rabbit-variant:before{content:"󱩡"}.mdi-rabbit-variant-outline:before{content:"󱩢"}.mdi-racing-helmet:before{content:"󰶓"}.mdi-racquetball:before{content:"󰶔"}.mdi-radar:before{content:"󰐷"}.mdi-radiator:before{content:"󰐸"}.mdi-radiator-disabled:before{content:"󰫗"}.mdi-radiator-off:before{content:"󰫘"}.mdi-radio:before{content:"󰐹"}.mdi-radio-am:before{content:"󰲾"}.mdi-radio-fm:before{content:"󰲿"}.mdi-radio-handheld:before{content:"󰐺"}.mdi-radio-off:before{content:"󱈜"}.mdi-radio-tower:before{content:"󰐻"}.mdi-radioactive:before{content:"󰐼"}.mdi-radioactive-circle:before{content:"󱡝"}.mdi-radioactive-circle-outline:before{content:"󱡞"}.mdi-radioactive-off:before{content:"󰻁"}.mdi-radiobox-blank:before{content:"󰐽"}.mdi-radiobox-indeterminate-variant:before{content:"󱱞"}.mdi-radiobox-marked:before{content:"󰐾"}.mdi-radiology-box:before{content:"󱓅"}.mdi-radiology-box-outline:before{content:"󱓆"}.mdi-radius:before{content:"󰳀"}.mdi-radius-outline:before{content:"󰳁"}.mdi-railroad-light:before{content:"󰼞"}.mdi-rake:before{content:"󱕄"}.mdi-raspberry-pi:before{content:"󰐿"}.mdi-raw:before{content:"󱨏"}.mdi-raw-off:before{content:"󱨐"}.mdi-ray-end:before{content:"󰑀"}.mdi-ray-end-arrow:before{content:"󰑁"}.mdi-ray-start:before{content:"󰑂"}.mdi-ray-start-arrow:before{content:"󰑃"}.mdi-ray-start-end:before{content:"󰑄"}.mdi-ray-start-vertex-end:before{content:"󱗘"}.mdi-ray-vertex:before{content:"󰑅"}.mdi-razor-double-edge:before{content:"󱦗"}.mdi-razor-single-edge:before{content:"󱦘"}.mdi-react:before{content:"󰜈"}.mdi-read:before{content:"󰑇"}.mdi-receipt:before{content:"󰠤"}.mdi-receipt-clock:before{content:"󱰾"}.mdi-receipt-clock-outline:before{content:"󱰿"}.mdi-receipt-outline:before{content:"󰓷"}.mdi-receipt-send:before{content:"󱱀"}.mdi-receipt-send-outline:before{content:"󱱁"}.mdi-receipt-text:before{content:"󰑉"}.mdi-receipt-text-arrow-left:before{content:"󱱂"}.mdi-receipt-text-arrow-left-outline:before{content:"󱱃"}.mdi-receipt-text-arrow-right:before{content:"󱱄"}.mdi-receipt-text-arrow-right-outline:before{content:"󱱅"}.mdi-receipt-text-check:before{content:"󱩣"}.mdi-receipt-text-check-outline:before{content:"󱩤"}.mdi-receipt-text-clock:before{content:"󱱆"}.mdi-receipt-text-clock-outline:before{content:"󱱇"}.mdi-receipt-text-edit:before{content:"󱱈"}.mdi-receipt-text-edit-outline:before{content:"󱱉"}.mdi-receipt-text-minus:before{content:"󱩥"}.mdi-receipt-text-minus-outline:before{content:"󱩦"}.mdi-receipt-text-outline:before{content:"󱧜"}.mdi-receipt-text-plus:before{content:"󱩧"}.mdi-receipt-text-plus-outline:before{content:"󱩨"}.mdi-receipt-text-remove:before{content:"󱩩"}.mdi-receipt-text-remove-outline:before{content:"󱩪"}.mdi-receipt-text-send:before{content:"󱱊"}.mdi-receipt-text-send-outline:before{content:"󱱋"}.mdi-record:before{content:"󰑊"}.mdi-record-circle:before{content:"󰻂"}.mdi-record-circle-outline:before{content:"󰻃"}.mdi-record-player:before{content:"󰦚"}.mdi-record-rec:before{content:"󰑋"}.mdi-rectangle:before{content:"󰹞"}.mdi-rectangle-outline:before{content:"󰹟"}.mdi-recycle:before{content:"󰑌"}.mdi-recycle-variant:before{content:"󱎝"}.mdi-reddit:before{content:"󰑍"}.mdi-redhat:before{content:"󱄛"}.mdi-redo:before{content:"󰑎"}.mdi-redo-variant:before{content:"󰑏"}.mdi-reflect-horizontal:before{content:"󰨎"}.mdi-reflect-vertical:before{content:"󰨏"}.mdi-refresh:before{content:"󰑐"}.mdi-refresh-auto:before{content:"󱣲"}.mdi-refresh-circle:before{content:"󱍷"}.mdi-regex:before{content:"󰑑"}.mdi-registered-trademark:before{content:"󰩧"}.mdi-reiterate:before{content:"󱖈"}.mdi-relation-many-to-many:before{content:"󱒖"}.mdi-relation-many-to-one:before{content:"󱒗"}.mdi-relation-many-to-one-or-many:before{content:"󱒘"}.mdi-relation-many-to-only-one:before{content:"󱒙"}.mdi-relation-many-to-zero-or-many:before{content:"󱒚"}.mdi-relation-many-to-zero-or-one:before{content:"󱒛"}.mdi-relation-one-or-many-to-many:before{content:"󱒜"}.mdi-relation-one-or-many-to-one:before{content:"󱒝"}.mdi-relation-one-or-many-to-one-or-many:before{content:"󱒞"}.mdi-relation-one-or-many-to-only-one:before{content:"󱒟"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"󱒠"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"󱒡"}.mdi-relation-one-to-many:before{content:"󱒢"}.mdi-relation-one-to-one:before{content:"󱒣"}.mdi-relation-one-to-one-or-many:before{content:"󱒤"}.mdi-relation-one-to-only-one:before{content:"󱒥"}.mdi-relation-one-to-zero-or-many:before{content:"󱒦"}.mdi-relation-one-to-zero-or-one:before{content:"󱒧"}.mdi-relation-only-one-to-many:before{content:"󱒨"}.mdi-relation-only-one-to-one:before{content:"󱒩"}.mdi-relation-only-one-to-one-or-many:before{content:"󱒪"}.mdi-relation-only-one-to-only-one:before{content:"󱒫"}.mdi-relation-only-one-to-zero-or-many:before{content:"󱒬"}.mdi-relation-only-one-to-zero-or-one:before{content:"󱒭"}.mdi-relation-zero-or-many-to-many:before{content:"󱒮"}.mdi-relation-zero-or-many-to-one:before{content:"󱒯"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"󱒰"}.mdi-relation-zero-or-many-to-only-one:before{content:"󱒱"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"󱒲"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"󱒳"}.mdi-relation-zero-or-one-to-many:before{content:"󱒴"}.mdi-relation-zero-or-one-to-one:before{content:"󱒵"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"󱒶"}.mdi-relation-zero-or-one-to-only-one:before{content:"󱒷"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"󱒸"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"󱒹"}.mdi-relative-scale:before{content:"󰑒"}.mdi-reload:before{content:"󰑓"}.mdi-reload-alert:before{content:"󱄋"}.mdi-reminder:before{content:"󰢌"}.mdi-remote:before{content:"󰑔"}.mdi-remote-desktop:before{content:"󰢹"}.mdi-remote-off:before{content:"󰻄"}.mdi-remote-tv:before{content:"󰻅"}.mdi-remote-tv-off:before{content:"󰻆"}.mdi-rename:before{content:"󱰘"}.mdi-rename-box:before{content:"󰑕"}.mdi-rename-box-outline:before{content:"󱰙"}.mdi-rename-outline:before{content:"󱰚"}.mdi-reorder-horizontal:before{content:"󰚈"}.mdi-reorder-vertical:before{content:"󰚉"}.mdi-repeat:before{content:"󰑖"}.mdi-repeat-off:before{content:"󰑗"}.mdi-repeat-once:before{content:"󰑘"}.mdi-repeat-variant:before{content:"󰕇"}.mdi-replay:before{content:"󰑙"}.mdi-reply:before{content:"󰑚"}.mdi-reply-all:before{content:"󰑛"}.mdi-reply-all-outline:before{content:"󰼟"}.mdi-reply-circle:before{content:"󱆮"}.mdi-reply-outline:before{content:"󰼠"}.mdi-reproduction:before{content:"󰑜"}.mdi-resistor:before{content:"󰭄"}.mdi-resistor-nodes:before{content:"󰭅"}.mdi-resize:before{content:"󰩨"}.mdi-resize-bottom-right:before{content:"󰑝"}.mdi-responsive:before{content:"󰑞"}.mdi-restart:before{content:"󰜉"}.mdi-restart-alert:before{content:"󱄌"}.mdi-restart-off:before{content:"󰶕"}.mdi-restore:before{content:"󰦛"}.mdi-restore-alert:before{content:"󱄍"}.mdi-rewind:before{content:"󰑟"}.mdi-rewind-10:before{content:"󰴪"}.mdi-rewind-15:before{content:"󱥆"}.mdi-rewind-30:before{content:"󰶖"}.mdi-rewind-45:before{content:"󱬓"}.mdi-rewind-5:before{content:"󱇹"}.mdi-rewind-60:before{content:"󱘌"}.mdi-rewind-outline:before{content:"󰜊"}.mdi-rhombus:before{content:"󰜋"}.mdi-rhombus-medium:before{content:"󰨐"}.mdi-rhombus-medium-outline:before{content:"󱓜"}.mdi-rhombus-outline:before{content:"󰜌"}.mdi-rhombus-split:before{content:"󰨑"}.mdi-rhombus-split-outline:before{content:"󱓝"}.mdi-ribbon:before{content:"󰑠"}.mdi-rice:before{content:"󰟪"}.mdi-rickshaw:before{content:"󱖻"}.mdi-rickshaw-electric:before{content:"󱖼"}.mdi-ring:before{content:"󰟫"}.mdi-rivet:before{content:"󰹠"}.mdi-road:before{content:"󰑡"}.mdi-road-variant:before{content:"󰑢"}.mdi-robber:before{content:"󱁘"}.mdi-robot:before{content:"󰚩"}.mdi-robot-angry:before{content:"󱚝"}.mdi-robot-angry-outline:before{content:"󱚞"}.mdi-robot-confused:before{content:"󱚟"}.mdi-robot-confused-outline:before{content:"󱚠"}.mdi-robot-dead:before{content:"󱚡"}.mdi-robot-dead-outline:before{content:"󱚢"}.mdi-robot-excited:before{content:"󱚣"}.mdi-robot-excited-outline:before{content:"󱚤"}.mdi-robot-happy:before{content:"󱜙"}.mdi-robot-happy-outline:before{content:"󱜚"}.mdi-robot-industrial:before{content:"󰭆"}.mdi-robot-industrial-outline:before{content:"󱨚"}.mdi-robot-love:before{content:"󱚥"}.mdi-robot-love-outline:before{content:"󱚦"}.mdi-robot-mower:before{content:"󱇷"}.mdi-robot-mower-outline:before{content:"󱇳"}.mdi-robot-off:before{content:"󱚧"}.mdi-robot-off-outline:before{content:"󱙻"}.mdi-robot-outline:before{content:"󱙺"}.mdi-robot-vacuum:before{content:"󰜍"}.mdi-robot-vacuum-alert:before{content:"󱭝"}.mdi-robot-vacuum-off:before{content:"󱰁"}.mdi-robot-vacuum-variant:before{content:"󰤈"}.mdi-robot-vacuum-variant-alert:before{content:"󱭞"}.mdi-robot-vacuum-variant-off:before{content:"󱰂"}.mdi-rocket:before{content:"󰑣"}.mdi-rocket-launch:before{content:"󱓞"}.mdi-rocket-launch-outline:before{content:"󱓟"}.mdi-rocket-outline:before{content:"󱎯"}.mdi-rodent:before{content:"󱌧"}.mdi-roller-shade:before{content:"󱩫"}.mdi-roller-shade-closed:before{content:"󱩬"}.mdi-roller-skate:before{content:"󰴫"}.mdi-roller-skate-off:before{content:"󰅅"}.mdi-rollerblade:before{content:"󰴬"}.mdi-rollerblade-off:before{content:"󰀮"}.mdi-rollupjs:before{content:"󰯀"}.mdi-rolodex:before{content:"󱪹"}.mdi-rolodex-outline:before{content:"󱪺"}.mdi-roman-numeral-1:before{content:"󱂈"}.mdi-roman-numeral-10:before{content:"󱂑"}.mdi-roman-numeral-2:before{content:"󱂉"}.mdi-roman-numeral-3:before{content:"󱂊"}.mdi-roman-numeral-4:before{content:"󱂋"}.mdi-roman-numeral-5:before{content:"󱂌"}.mdi-roman-numeral-6:before{content:"󱂍"}.mdi-roman-numeral-7:before{content:"󱂎"}.mdi-roman-numeral-8:before{content:"󱂏"}.mdi-roman-numeral-9:before{content:"󱂐"}.mdi-room-service:before{content:"󰢍"}.mdi-room-service-outline:before{content:"󰶗"}.mdi-rotate-360:before{content:"󱦙"}.mdi-rotate-3d:before{content:"󰻇"}.mdi-rotate-3d-variant:before{content:"󰑤"}.mdi-rotate-left:before{content:"󰑥"}.mdi-rotate-left-variant:before{content:"󰑦"}.mdi-rotate-orbit:before{content:"󰶘"}.mdi-rotate-right:before{content:"󰑧"}.mdi-rotate-right-variant:before{content:"󰑨"}.mdi-rounded-corner:before{content:"󰘇"}.mdi-router:before{content:"󱇢"}.mdi-router-network:before{content:"󱂇"}.mdi-router-network-wireless:before{content:"󱲗"}.mdi-router-wireless:before{content:"󰑩"}.mdi-router-wireless-off:before{content:"󱖣"}.mdi-router-wireless-settings:before{content:"󰩩"}.mdi-routes:before{content:"󰑪"}.mdi-routes-clock:before{content:"󱁙"}.mdi-rowing:before{content:"󰘈"}.mdi-rss:before{content:"󰑫"}.mdi-rss-box:before{content:"󰑬"}.mdi-rss-off:before{content:"󰼡"}.mdi-rug:before{content:"󱑵"}.mdi-rugby:before{content:"󰶙"}.mdi-ruler:before{content:"󰑭"}.mdi-ruler-square:before{content:"󰳂"}.mdi-ruler-square-compass:before{content:"󰺾"}.mdi-run:before{content:"󰜎"}.mdi-run-fast:before{content:"󰑮"}.mdi-rv-truck:before{content:"󱇔"}.mdi-sack:before{content:"󰴮"}.mdi-sack-outline:before{content:"󱱌"}.mdi-sack-percent:before{content:"󰴯"}.mdi-safe:before{content:"󰩪"}.mdi-safe-square:before{content:"󱉼"}.mdi-safe-square-outline:before{content:"󱉽"}.mdi-safety-goggles:before{content:"󰴰"}.mdi-sail-boat:before{content:"󰻈"}.mdi-sail-boat-sink:before{content:"󱫯"}.mdi-sale:before{content:"󰑯"}.mdi-sale-outline:before{content:"󱨆"}.mdi-salesforce:before{content:"󰢎"}.mdi-sass:before{content:"󰟬"}.mdi-satellite:before{content:"󰑰"}.mdi-satellite-uplink:before{content:"󰤉"}.mdi-satellite-variant:before{content:"󰑱"}.mdi-sausage:before{content:"󰢺"}.mdi-sausage-off:before{content:"󱞉"}.mdi-saw-blade:before{content:"󰹡"}.mdi-sawtooth-wave:before{content:"󱑺"}.mdi-saxophone:before{content:"󰘉"}.mdi-scale:before{content:"󰑲"}.mdi-scale-balance:before{content:"󰗑"}.mdi-scale-bathroom:before{content:"󰑳"}.mdi-scale-off:before{content:"󱁚"}.mdi-scale-unbalanced:before{content:"󱦸"}.mdi-scan-helper:before{content:"󱏘"}.mdi-scanner:before{content:"󰚫"}.mdi-scanner-off:before{content:"󰤊"}.mdi-scatter-plot:before{content:"󰻉"}.mdi-scatter-plot-outline:before{content:"󰻊"}.mdi-scent:before{content:"󱥘"}.mdi-scent-off:before{content:"󱥙"}.mdi-school:before{content:"󰑴"}.mdi-school-outline:before{content:"󱆀"}.mdi-scissors-cutting:before{content:"󰩫"}.mdi-scooter:before{content:"󱖽"}.mdi-scooter-electric:before{content:"󱖾"}.mdi-scoreboard:before{content:"󱉾"}.mdi-scoreboard-outline:before{content:"󱉿"}.mdi-screen-rotation:before{content:"󰑵"}.mdi-screen-rotation-lock:before{content:"󰑸"}.mdi-screw-flat-top:before{content:"󰷳"}.mdi-screw-lag:before{content:"󰷴"}.mdi-screw-machine-flat-top:before{content:"󰷵"}.mdi-screw-machine-round-top:before{content:"󰷶"}.mdi-screw-round-top:before{content:"󰷷"}.mdi-screwdriver:before{content:"󰑶"}.mdi-script:before{content:"󰯁"}.mdi-script-outline:before{content:"󰑷"}.mdi-script-text:before{content:"󰯂"}.mdi-script-text-key:before{content:"󱜥"}.mdi-script-text-key-outline:before{content:"󱜦"}.mdi-script-text-outline:before{content:"󰯃"}.mdi-script-text-play:before{content:"󱜧"}.mdi-script-text-play-outline:before{content:"󱜨"}.mdi-sd:before{content:"󰑹"}.mdi-seal:before{content:"󰑺"}.mdi-seal-variant:before{content:"󰿙"}.mdi-search-web:before{content:"󰜏"}.mdi-seat:before{content:"󰳃"}.mdi-seat-flat:before{content:"󰑻"}.mdi-seat-flat-angled:before{content:"󰑼"}.mdi-seat-individual-suite:before{content:"󰑽"}.mdi-seat-legroom-extra:before{content:"󰑾"}.mdi-seat-legroom-normal:before{content:"󰑿"}.mdi-seat-legroom-reduced:before{content:"󰒀"}.mdi-seat-outline:before{content:"󰳄"}.mdi-seat-passenger:before{content:"󱉉"}.mdi-seat-recline-extra:before{content:"󰒁"}.mdi-seat-recline-normal:before{content:"󰒂"}.mdi-seatbelt:before{content:"󰳅"}.mdi-security:before{content:"󰒃"}.mdi-security-network:before{content:"󰒄"}.mdi-seed:before{content:"󰹢"}.mdi-seed-off:before{content:"󱏽"}.mdi-seed-off-outline:before{content:"󱏾"}.mdi-seed-outline:before{content:"󰹣"}.mdi-seed-plus:before{content:"󱩭"}.mdi-seed-plus-outline:before{content:"󱩮"}.mdi-seesaw:before{content:"󱖤"}.mdi-segment:before{content:"󰻋"}.mdi-select:before{content:"󰒅"}.mdi-select-all:before{content:"󰒆"}.mdi-select-arrow-down:before{content:"󱭙"}.mdi-select-arrow-up:before{content:"󱭘"}.mdi-select-color:before{content:"󰴱"}.mdi-select-compare:before{content:"󰫙"}.mdi-select-drag:before{content:"󰩬"}.mdi-select-group:before{content:"󰾂"}.mdi-select-inverse:before{content:"󰒇"}.mdi-select-marker:before{content:"󱊀"}.mdi-select-multiple:before{content:"󱊁"}.mdi-select-multiple-marker:before{content:"󱊂"}.mdi-select-off:before{content:"󰒈"}.mdi-select-place:before{content:"󰿚"}.mdi-select-remove:before{content:"󱟁"}.mdi-select-search:before{content:"󱈄"}.mdi-selection:before{content:"󰒉"}.mdi-selection-drag:before{content:"󰩭"}.mdi-selection-ellipse:before{content:"󰴲"}.mdi-selection-ellipse-arrow-inside:before{content:"󰼢"}.mdi-selection-ellipse-remove:before{content:"󱟂"}.mdi-selection-marker:before{content:"󱊃"}.mdi-selection-multiple:before{content:"󱊅"}.mdi-selection-multiple-marker:before{content:"󱊄"}.mdi-selection-off:before{content:"󰝷"}.mdi-selection-remove:before{content:"󱟃"}.mdi-selection-search:before{content:"󱈅"}.mdi-semantic-web:before{content:"󱌖"}.mdi-send:before{content:"󰒊"}.mdi-send-check:before{content:"󱅡"}.mdi-send-check-outline:before{content:"󱅢"}.mdi-send-circle:before{content:"󰷸"}.mdi-send-circle-outline:before{content:"󰷹"}.mdi-send-clock:before{content:"󱅣"}.mdi-send-clock-outline:before{content:"󱅤"}.mdi-send-lock:before{content:"󰟭"}.mdi-send-lock-outline:before{content:"󱅦"}.mdi-send-outline:before{content:"󱅥"}.mdi-send-variant:before{content:"󱱍"}.mdi-send-variant-clock:before{content:"󱱾"}.mdi-send-variant-clock-outline:before{content:"󱱿"}.mdi-send-variant-outline:before{content:"󱱎"}.mdi-serial-port:before{content:"󰙜"}.mdi-server:before{content:"󰒋"}.mdi-server-minus:before{content:"󰒌"}.mdi-server-minus-outline:before{content:"󱲘"}.mdi-server-network:before{content:"󰒍"}.mdi-server-network-off:before{content:"󰒎"}.mdi-server-network-outline:before{content:"󱲙"}.mdi-server-off:before{content:"󰒏"}.mdi-server-outline:before{content:"󱲚"}.mdi-server-plus:before{content:"󰒐"}.mdi-server-plus-outline:before{content:"󱲛"}.mdi-server-remove:before{content:"󰒑"}.mdi-server-security:before{content:"󰒒"}.mdi-set-all:before{content:"󰝸"}.mdi-set-center:before{content:"󰝹"}.mdi-set-center-right:before{content:"󰝺"}.mdi-set-left:before{content:"󰝻"}.mdi-set-left-center:before{content:"󰝼"}.mdi-set-left-right:before{content:"󰝽"}.mdi-set-merge:before{content:"󱓠"}.mdi-set-none:before{content:"󰝾"}.mdi-set-right:before{content:"󰝿"}.mdi-set-split:before{content:"󱓡"}.mdi-set-square:before{content:"󱑝"}.mdi-set-top-box:before{content:"󰦟"}.mdi-settings-helper:before{content:"󰩮"}.mdi-shaker:before{content:"󱄎"}.mdi-shaker-outline:before{content:"󱄏"}.mdi-shape:before{content:"󰠱"}.mdi-shape-circle-plus:before{content:"󰙝"}.mdi-shape-outline:before{content:"󰠲"}.mdi-shape-oval-plus:before{content:"󱇺"}.mdi-shape-plus:before{content:"󰒕"}.mdi-shape-plus-outline:before{content:"󱱏"}.mdi-shape-polygon-plus:before{content:"󰙞"}.mdi-shape-rectangle-plus:before{content:"󰙟"}.mdi-shape-square-plus:before{content:"󰙠"}.mdi-shape-square-rounded-plus:before{content:"󱓺"}.mdi-share:before{content:"󰒖"}.mdi-share-all:before{content:"󱇴"}.mdi-share-all-outline:before{content:"󱇵"}.mdi-share-circle:before{content:"󱆭"}.mdi-share-off:before{content:"󰼣"}.mdi-share-off-outline:before{content:"󰼤"}.mdi-share-outline:before{content:"󰤲"}.mdi-share-variant:before{content:"󰒗"}.mdi-share-variant-outline:before{content:"󱔔"}.mdi-shark:before{content:"󱢺"}.mdi-shark-fin:before{content:"󱙳"}.mdi-shark-fin-outline:before{content:"󱙴"}.mdi-shark-off:before{content:"󱢻"}.mdi-sheep:before{content:"󰳆"}.mdi-shield:before{content:"󰒘"}.mdi-shield-account:before{content:"󰢏"}.mdi-shield-account-outline:before{content:"󰨒"}.mdi-shield-account-variant:before{content:"󱖧"}.mdi-shield-account-variant-outline:before{content:"󱖨"}.mdi-shield-airplane:before{content:"󰚻"}.mdi-shield-airplane-outline:before{content:"󰳇"}.mdi-shield-alert:before{content:"󰻌"}.mdi-shield-alert-outline:before{content:"󰻍"}.mdi-shield-bug:before{content:"󱏚"}.mdi-shield-bug-outline:before{content:"󱏛"}.mdi-shield-car:before{content:"󰾃"}.mdi-shield-check:before{content:"󰕥"}.mdi-shield-check-outline:before{content:"󰳈"}.mdi-shield-cross:before{content:"󰳉"}.mdi-shield-cross-outline:before{content:"󰳊"}.mdi-shield-crown:before{content:"󱢼"}.mdi-shield-crown-outline:before{content:"󱢽"}.mdi-shield-edit:before{content:"󱆠"}.mdi-shield-edit-outline:before{content:"󱆡"}.mdi-shield-half:before{content:"󱍠"}.mdi-shield-half-full:before{content:"󰞀"}.mdi-shield-home:before{content:"󰚊"}.mdi-shield-home-outline:before{content:"󰳋"}.mdi-shield-key:before{content:"󰯄"}.mdi-shield-key-outline:before{content:"󰯅"}.mdi-shield-link-variant:before{content:"󰴳"}.mdi-shield-link-variant-outline:before{content:"󰴴"}.mdi-shield-lock:before{content:"󰦝"}.mdi-shield-lock-open:before{content:"󱦚"}.mdi-shield-lock-open-outline:before{content:"󱦛"}.mdi-shield-lock-outline:before{content:"󰳌"}.mdi-shield-moon:before{content:"󱠨"}.mdi-shield-moon-outline:before{content:"󱠩"}.mdi-shield-off:before{content:"󰦞"}.mdi-shield-off-outline:before{content:"󰦜"}.mdi-shield-outline:before{content:"󰒙"}.mdi-shield-plus:before{content:"󰫚"}.mdi-shield-plus-outline:before{content:"󰫛"}.mdi-shield-refresh:before{content:"󰂪"}.mdi-shield-refresh-outline:before{content:"󰇠"}.mdi-shield-remove:before{content:"󰫜"}.mdi-shield-remove-outline:before{content:"󰫝"}.mdi-shield-search:before{content:"󰶚"}.mdi-shield-star:before{content:"󱄻"}.mdi-shield-star-outline:before{content:"󱄼"}.mdi-shield-sun:before{content:"󱁝"}.mdi-shield-sun-outline:before{content:"󱁞"}.mdi-shield-sword:before{content:"󱢾"}.mdi-shield-sword-outline:before{content:"󱢿"}.mdi-shield-sync:before{content:"󱆢"}.mdi-shield-sync-outline:before{content:"󱆣"}.mdi-shimmer:before{content:"󱕅"}.mdi-ship-wheel:before{content:"󰠳"}.mdi-shipping-pallet:before{content:"󱡎"}.mdi-shoe-ballet:before{content:"󱗊"}.mdi-shoe-cleat:before{content:"󱗇"}.mdi-shoe-formal:before{content:"󰭇"}.mdi-shoe-heel:before{content:"󰭈"}.mdi-shoe-print:before{content:"󰷺"}.mdi-shoe-sneaker:before{content:"󱗈"}.mdi-shopping:before{content:"󰒚"}.mdi-shopping-music:before{content:"󰒛"}.mdi-shopping-outline:before{content:"󱇕"}.mdi-shopping-search:before{content:"󰾄"}.mdi-shopping-search-outline:before{content:"󱩯"}.mdi-shore:before{content:"󱓹"}.mdi-shovel:before{content:"󰜐"}.mdi-shovel-off:before{content:"󰜑"}.mdi-shower:before{content:"󰦠"}.mdi-shower-head:before{content:"󰦡"}.mdi-shredder:before{content:"󰒜"}.mdi-shuffle:before{content:"󰒝"}.mdi-shuffle-disabled:before{content:"󰒞"}.mdi-shuffle-variant:before{content:"󰒟"}.mdi-shuriken:before{content:"󱍿"}.mdi-sickle:before{content:"󱣀"}.mdi-sigma:before{content:"󰒠"}.mdi-sigma-lower:before{content:"󰘫"}.mdi-sign-caution:before{content:"󰒡"}.mdi-sign-direction:before{content:"󰞁"}.mdi-sign-direction-minus:before{content:"󱀀"}.mdi-sign-direction-plus:before{content:"󰿜"}.mdi-sign-direction-remove:before{content:"󰿝"}.mdi-sign-language:before{content:"󱭍"}.mdi-sign-language-outline:before{content:"󱭎"}.mdi-sign-pole:before{content:"󱓸"}.mdi-sign-real-estate:before{content:"󱄘"}.mdi-sign-text:before{content:"󰞂"}.mdi-sign-yield:before{content:"󱮯"}.mdi-signal:before{content:"󰒢"}.mdi-signal-2g:before{content:"󰜒"}.mdi-signal-3g:before{content:"󰜓"}.mdi-signal-4g:before{content:"󰜔"}.mdi-signal-5g:before{content:"󰩯"}.mdi-signal-cellular-1:before{content:"󰢼"}.mdi-signal-cellular-2:before{content:"󰢽"}.mdi-signal-cellular-3:before{content:"󰢾"}.mdi-signal-cellular-outline:before{content:"󰢿"}.mdi-signal-distance-variant:before{content:"󰹤"}.mdi-signal-hspa:before{content:"󰜕"}.mdi-signal-hspa-plus:before{content:"󰜖"}.mdi-signal-off:before{content:"󰞃"}.mdi-signal-variant:before{content:"󰘊"}.mdi-signature:before{content:"󰷻"}.mdi-signature-freehand:before{content:"󰷼"}.mdi-signature-image:before{content:"󰷽"}.mdi-signature-text:before{content:"󰷾"}.mdi-silo:before{content:"󱮟"}.mdi-silo-outline:before{content:"󰭉"}.mdi-silverware:before{content:"󰒣"}.mdi-silverware-clean:before{content:"󰿞"}.mdi-silverware-fork:before{content:"󰒤"}.mdi-silverware-fork-knife:before{content:"󰩰"}.mdi-silverware-spoon:before{content:"󰒥"}.mdi-silverware-variant:before{content:"󰒦"}.mdi-sim:before{content:"󰒧"}.mdi-sim-alert:before{content:"󰒨"}.mdi-sim-alert-outline:before{content:"󱗓"}.mdi-sim-off:before{content:"󰒩"}.mdi-sim-off-outline:before{content:"󱗔"}.mdi-sim-outline:before{content:"󱗕"}.mdi-simple-icons:before{content:"󱌝"}.mdi-sina-weibo:before{content:"󰫟"}.mdi-sine-wave:before{content:"󰥛"}.mdi-sitemap:before{content:"󰒪"}.mdi-sitemap-outline:before{content:"󱦜"}.mdi-size-l:before{content:"󱎦"}.mdi-size-m:before{content:"󱎥"}.mdi-size-s:before{content:"󱎤"}.mdi-size-xl:before{content:"󱎧"}.mdi-size-xs:before{content:"󱎣"}.mdi-size-xxl:before{content:"󱎨"}.mdi-size-xxs:before{content:"󱎢"}.mdi-size-xxxl:before{content:"󱎩"}.mdi-skate:before{content:"󰴵"}.mdi-skate-off:before{content:"󰚙"}.mdi-skateboard:before{content:"󱓂"}.mdi-skateboarding:before{content:"󰔁"}.mdi-skew-less:before{content:"󰴶"}.mdi-skew-more:before{content:"󰴷"}.mdi-ski:before{content:"󱌄"}.mdi-ski-cross-country:before{content:"󱌅"}.mdi-ski-water:before{content:"󱌆"}.mdi-skip-backward:before{content:"󰒫"}.mdi-skip-backward-outline:before{content:"󰼥"}.mdi-skip-forward:before{content:"󰒬"}.mdi-skip-forward-outline:before{content:"󰼦"}.mdi-skip-next:before{content:"󰒭"}.mdi-skip-next-circle:before{content:"󰙡"}.mdi-skip-next-circle-outline:before{content:"󰙢"}.mdi-skip-next-outline:before{content:"󰼧"}.mdi-skip-previous:before{content:"󰒮"}.mdi-skip-previous-circle:before{content:"󰙣"}.mdi-skip-previous-circle-outline:before{content:"󰙤"}.mdi-skip-previous-outline:before{content:"󰼨"}.mdi-skull:before{content:"󰚌"}.mdi-skull-crossbones:before{content:"󰯆"}.mdi-skull-crossbones-outline:before{content:"󰯇"}.mdi-skull-outline:before{content:"󰯈"}.mdi-skull-scan:before{content:"󱓇"}.mdi-skull-scan-outline:before{content:"󱓈"}.mdi-skype:before{content:"󰒯"}.mdi-skype-business:before{content:"󰒰"}.mdi-slack:before{content:"󰒱"}.mdi-slash-forward:before{content:"󰿟"}.mdi-slash-forward-box:before{content:"󰿠"}.mdi-sledding:before{content:"󰐛"}.mdi-sleep:before{content:"󰒲"}.mdi-sleep-off:before{content:"󰒳"}.mdi-slide:before{content:"󱖥"}.mdi-slope-downhill:before{content:"󰷿"}.mdi-slope-uphill:before{content:"󰸀"}.mdi-slot-machine:before{content:"󱄔"}.mdi-slot-machine-outline:before{content:"󱄕"}.mdi-smart-card:before{content:"󱂽"}.mdi-smart-card-off:before{content:"󱣷"}.mdi-smart-card-off-outline:before{content:"󱣸"}.mdi-smart-card-outline:before{content:"󱂾"}.mdi-smart-card-reader:before{content:"󱂿"}.mdi-smart-card-reader-outline:before{content:"󱃀"}.mdi-smog:before{content:"󰩱"}.mdi-smoke:before{content:"󱞙"}.mdi-smoke-detector:before{content:"󰎒"}.mdi-smoke-detector-alert:before{content:"󱤮"}.mdi-smoke-detector-alert-outline:before{content:"󱤯"}.mdi-smoke-detector-off:before{content:"󱠉"}.mdi-smoke-detector-off-outline:before{content:"󱠊"}.mdi-smoke-detector-outline:before{content:"󱠈"}.mdi-smoke-detector-variant:before{content:"󱠋"}.mdi-smoke-detector-variant-alert:before{content:"󱤰"}.mdi-smoke-detector-variant-off:before{content:"󱠌"}.mdi-smoking:before{content:"󰒴"}.mdi-smoking-off:before{content:"󰒵"}.mdi-smoking-pipe:before{content:"󱐍"}.mdi-smoking-pipe-off:before{content:"󱐨"}.mdi-snail:before{content:"󱙷"}.mdi-snake:before{content:"󱔎"}.mdi-snapchat:before{content:"󰒶"}.mdi-snowboard:before{content:"󱌇"}.mdi-snowflake:before{content:"󰜗"}.mdi-snowflake-alert:before{content:"󰼩"}.mdi-snowflake-check:before{content:"󱩰"}.mdi-snowflake-melt:before{content:"󱋋"}.mdi-snowflake-off:before{content:"󱓣"}.mdi-snowflake-thermometer:before{content:"󱩱"}.mdi-snowflake-variant:before{content:"󰼪"}.mdi-snowman:before{content:"󰒷"}.mdi-snowmobile:before{content:"󰛝"}.mdi-snowshoeing:before{content:"󱩲"}.mdi-soccer:before{content:"󰒸"}.mdi-soccer-field:before{content:"󰠴"}.mdi-social-distance-2-meters:before{content:"󱕹"}.mdi-social-distance-6-feet:before{content:"󱕺"}.mdi-sofa:before{content:"󰒹"}.mdi-sofa-outline:before{content:"󱕭"}.mdi-sofa-single:before{content:"󱕮"}.mdi-sofa-single-outline:before{content:"󱕯"}.mdi-solar-panel:before{content:"󰶛"}.mdi-solar-panel-large:before{content:"󰶜"}.mdi-solar-power:before{content:"󰩲"}.mdi-solar-power-variant:before{content:"󱩳"}.mdi-solar-power-variant-outline:before{content:"󱩴"}.mdi-soldering-iron:before{content:"󱂒"}.mdi-solid:before{content:"󰚍"}.mdi-sony-playstation:before{content:"󰐔"}.mdi-sort:before{content:"󰒺"}.mdi-sort-alphabetical-ascending:before{content:"󰖽"}.mdi-sort-alphabetical-ascending-variant:before{content:"󱅈"}.mdi-sort-alphabetical-descending:before{content:"󰖿"}.mdi-sort-alphabetical-descending-variant:before{content:"󱅉"}.mdi-sort-alphabetical-variant:before{content:"󰒻"}.mdi-sort-ascending:before{content:"󰒼"}.mdi-sort-bool-ascending:before{content:"󱎅"}.mdi-sort-bool-ascending-variant:before{content:"󱎆"}.mdi-sort-bool-descending:before{content:"󱎇"}.mdi-sort-bool-descending-variant:before{content:"󱎈"}.mdi-sort-calendar-ascending:before{content:"󱕇"}.mdi-sort-calendar-descending:before{content:"󱕈"}.mdi-sort-clock-ascending:before{content:"󱕉"}.mdi-sort-clock-ascending-outline:before{content:"󱕊"}.mdi-sort-clock-descending:before{content:"󱕋"}.mdi-sort-clock-descending-outline:before{content:"󱕌"}.mdi-sort-descending:before{content:"󰒽"}.mdi-sort-numeric-ascending:before{content:"󱎉"}.mdi-sort-numeric-ascending-variant:before{content:"󰤍"}.mdi-sort-numeric-descending:before{content:"󱎊"}.mdi-sort-numeric-descending-variant:before{content:"󰫒"}.mdi-sort-numeric-variant:before{content:"󰒾"}.mdi-sort-reverse-variant:before{content:"󰌼"}.mdi-sort-variant:before{content:"󰒿"}.mdi-sort-variant-lock:before{content:"󰳍"}.mdi-sort-variant-lock-open:before{content:"󰳎"}.mdi-sort-variant-off:before{content:"󱪻"}.mdi-sort-variant-remove:before{content:"󱅇"}.mdi-soundbar:before{content:"󱟛"}.mdi-soundcloud:before{content:"󰓀"}.mdi-source-branch:before{content:"󰘬"}.mdi-source-branch-check:before{content:"󱓏"}.mdi-source-branch-minus:before{content:"󱓋"}.mdi-source-branch-plus:before{content:"󱓊"}.mdi-source-branch-refresh:before{content:"󱓍"}.mdi-source-branch-remove:before{content:"󱓌"}.mdi-source-branch-sync:before{content:"󱓎"}.mdi-source-commit:before{content:"󰜘"}.mdi-source-commit-end:before{content:"󰜙"}.mdi-source-commit-end-local:before{content:"󰜚"}.mdi-source-commit-local:before{content:"󰜛"}.mdi-source-commit-next-local:before{content:"󰜜"}.mdi-source-commit-start:before{content:"󰜝"}.mdi-source-commit-start-next-local:before{content:"󰜞"}.mdi-source-fork:before{content:"󰓁"}.mdi-source-merge:before{content:"󰘭"}.mdi-source-pull:before{content:"󰓂"}.mdi-source-repository:before{content:"󰳏"}.mdi-source-repository-multiple:before{content:"󰳐"}.mdi-soy-sauce:before{content:"󰟮"}.mdi-soy-sauce-off:before{content:"󱏼"}.mdi-spa:before{content:"󰳑"}.mdi-spa-outline:before{content:"󰳒"}.mdi-space-invaders:before{content:"󰯉"}.mdi-space-station:before{content:"󱎃"}.mdi-spade:before{content:"󰹥"}.mdi-speaker:before{content:"󰓃"}.mdi-speaker-bluetooth:before{content:"󰦢"}.mdi-speaker-message:before{content:"󱬑"}.mdi-speaker-multiple:before{content:"󰴸"}.mdi-speaker-off:before{content:"󰓄"}.mdi-speaker-pause:before{content:"󱭳"}.mdi-speaker-play:before{content:"󱭲"}.mdi-speaker-stop:before{content:"󱭴"}.mdi-speaker-wireless:before{content:"󰜟"}.mdi-spear:before{content:"󱡅"}.mdi-speedometer:before{content:"󰓅"}.mdi-speedometer-medium:before{content:"󰾅"}.mdi-speedometer-slow:before{content:"󰾆"}.mdi-spellcheck:before{content:"󰓆"}.mdi-sphere:before{content:"󱥔"}.mdi-sphere-off:before{content:"󱥕"}.mdi-spider:before{content:"󱇪"}.mdi-spider-outline:before{content:"󱱵"}.mdi-spider-thread:before{content:"󱇫"}.mdi-spider-web:before{content:"󰯊"}.mdi-spirit-level:before{content:"󱓱"}.mdi-spoon-sugar:before{content:"󱐩"}.mdi-spotify:before{content:"󰓇"}.mdi-spotlight:before{content:"󰓈"}.mdi-spotlight-beam:before{content:"󰓉"}.mdi-spray:before{content:"󰙥"}.mdi-spray-bottle:before{content:"󰫠"}.mdi-sprinkler:before{content:"󱁟"}.mdi-sprinkler-fire:before{content:"󱦝"}.mdi-sprinkler-variant:before{content:"󱁠"}.mdi-sprout:before{content:"󰹦"}.mdi-sprout-outline:before{content:"󰹧"}.mdi-square:before{content:"󰝤"}.mdi-square-circle:before{content:"󱔀"}.mdi-square-circle-outline:before{content:"󱱐"}.mdi-square-edit-outline:before{content:"󰤌"}.mdi-square-medium:before{content:"󰨓"}.mdi-square-medium-outline:before{content:"󰨔"}.mdi-square-off:before{content:"󱋮"}.mdi-square-off-outline:before{content:"󱋯"}.mdi-square-opacity:before{content:"󱡔"}.mdi-square-outline:before{content:"󰝣"}.mdi-square-root:before{content:"󰞄"}.mdi-square-root-box:before{content:"󰦣"}.mdi-square-rounded:before{content:"󱓻"}.mdi-square-rounded-badge:before{content:"󱨇"}.mdi-square-rounded-badge-outline:before{content:"󱨈"}.mdi-square-rounded-outline:before{content:"󱓼"}.mdi-square-small:before{content:"󰨕"}.mdi-square-wave:before{content:"󱑻"}.mdi-squeegee:before{content:"󰫡"}.mdi-ssh:before{content:"󰣀"}.mdi-stack-exchange:before{content:"󰘋"}.mdi-stack-overflow:before{content:"󰓌"}.mdi-stackpath:before{content:"󰍙"}.mdi-stadium:before{content:"󰿹"}.mdi-stadium-outline:before{content:"󱬃"}.mdi-stadium-variant:before{content:"󰜠"}.mdi-stairs:before{content:"󰓍"}.mdi-stairs-box:before{content:"󱎞"}.mdi-stairs-down:before{content:"󱊾"}.mdi-stairs-up:before{content:"󱊽"}.mdi-stamper:before{content:"󰴹"}.mdi-standard-definition:before{content:"󰟯"}.mdi-star:before{content:"󰓎"}.mdi-star-box:before{content:"󰩳"}.mdi-star-box-multiple:before{content:"󱊆"}.mdi-star-box-multiple-outline:before{content:"󱊇"}.mdi-star-box-outline:before{content:"󰩴"}.mdi-star-check:before{content:"󱕦"}.mdi-star-check-outline:before{content:"󱕪"}.mdi-star-circle:before{content:"󰓏"}.mdi-star-circle-outline:before{content:"󰦤"}.mdi-star-cog:before{content:"󱙨"}.mdi-star-cog-outline:before{content:"󱙩"}.mdi-star-crescent:before{content:"󰥹"}.mdi-star-david:before{content:"󰥺"}.mdi-star-face:before{content:"󰦥"}.mdi-star-four-points:before{content:"󰫢"}.mdi-star-four-points-box:before{content:"󱱑"}.mdi-star-four-points-box-outline:before{content:"󱱒"}.mdi-star-four-points-circle:before{content:"󱱓"}.mdi-star-four-points-circle-outline:before{content:"󱱔"}.mdi-star-four-points-outline:before{content:"󰫣"}.mdi-star-four-points-small:before{content:"󱱕"}.mdi-star-half:before{content:"󰉆"}.mdi-star-half-full:before{content:"󰓐"}.mdi-star-minus:before{content:"󱕤"}.mdi-star-minus-outline:before{content:"󱕨"}.mdi-star-off:before{content:"󰓑"}.mdi-star-off-outline:before{content:"󱕛"}.mdi-star-outline:before{content:"󰓒"}.mdi-star-plus:before{content:"󱕣"}.mdi-star-plus-outline:before{content:"󱕧"}.mdi-star-remove:before{content:"󱕥"}.mdi-star-remove-outline:before{content:"󱕩"}.mdi-star-settings:before{content:"󱙪"}.mdi-star-settings-outline:before{content:"󱙫"}.mdi-star-shooting:before{content:"󱝁"}.mdi-star-shooting-outline:before{content:"󱝂"}.mdi-star-three-points:before{content:"󰫤"}.mdi-star-three-points-outline:before{content:"󰫥"}.mdi-state-machine:before{content:"󱇯"}.mdi-steam:before{content:"󰓓"}.mdi-steering:before{content:"󰓔"}.mdi-steering-off:before{content:"󰤎"}.mdi-step-backward:before{content:"󰓕"}.mdi-step-backward-2:before{content:"󰓖"}.mdi-step-forward:before{content:"󰓗"}.mdi-step-forward-2:before{content:"󰓘"}.mdi-stethoscope:before{content:"󰓙"}.mdi-sticker:before{content:"󱍤"}.mdi-sticker-alert:before{content:"󱍥"}.mdi-sticker-alert-outline:before{content:"󱍦"}.mdi-sticker-check:before{content:"󱍧"}.mdi-sticker-check-outline:before{content:"󱍨"}.mdi-sticker-circle-outline:before{content:"󰗐"}.mdi-sticker-emoji:before{content:"󰞅"}.mdi-sticker-minus:before{content:"󱍩"}.mdi-sticker-minus-outline:before{content:"󱍪"}.mdi-sticker-outline:before{content:"󱍫"}.mdi-sticker-plus:before{content:"󱍬"}.mdi-sticker-plus-outline:before{content:"󱍭"}.mdi-sticker-remove:before{content:"󱍮"}.mdi-sticker-remove-outline:before{content:"󱍯"}.mdi-sticker-text:before{content:"󱞎"}.mdi-sticker-text-outline:before{content:"󱞏"}.mdi-stocking:before{content:"󰓚"}.mdi-stomach:before{content:"󱂓"}.mdi-stool:before{content:"󱥝"}.mdi-stool-outline:before{content:"󱥞"}.mdi-stop:before{content:"󰓛"}.mdi-stop-circle:before{content:"󰙦"}.mdi-stop-circle-outline:before{content:"󰙧"}.mdi-storage-tank:before{content:"󱩵"}.mdi-storage-tank-outline:before{content:"󱩶"}.mdi-store:before{content:"󰓜"}.mdi-store-24-hour:before{content:"󰓝"}.mdi-store-alert:before{content:"󱣁"}.mdi-store-alert-outline:before{content:"󱣂"}.mdi-store-check:before{content:"󱣃"}.mdi-store-check-outline:before{content:"󱣄"}.mdi-store-clock:before{content:"󱣅"}.mdi-store-clock-outline:before{content:"󱣆"}.mdi-store-cog:before{content:"󱣇"}.mdi-store-cog-outline:before{content:"󱣈"}.mdi-store-edit:before{content:"󱣉"}.mdi-store-edit-outline:before{content:"󱣊"}.mdi-store-marker:before{content:"󱣋"}.mdi-store-marker-outline:before{content:"󱣌"}.mdi-store-minus:before{content:"󱙞"}.mdi-store-minus-outline:before{content:"󱣍"}.mdi-store-off:before{content:"󱣎"}.mdi-store-off-outline:before{content:"󱣏"}.mdi-store-outline:before{content:"󱍡"}.mdi-store-plus:before{content:"󱙟"}.mdi-store-plus-outline:before{content:"󱣐"}.mdi-store-remove:before{content:"󱙠"}.mdi-store-remove-outline:before{content:"󱣑"}.mdi-store-search:before{content:"󱣒"}.mdi-store-search-outline:before{content:"󱣓"}.mdi-store-settings:before{content:"󱣔"}.mdi-store-settings-outline:before{content:"󱣕"}.mdi-storefront:before{content:"󰟇"}.mdi-storefront-check:before{content:"󱭽"}.mdi-storefront-check-outline:before{content:"󱭾"}.mdi-storefront-edit:before{content:"󱭿"}.mdi-storefront-edit-outline:before{content:"󱮀"}.mdi-storefront-minus:before{content:"󱮃"}.mdi-storefront-minus-outline:before{content:"󱮄"}.mdi-storefront-outline:before{content:"󱃁"}.mdi-storefront-plus:before{content:"󱮁"}.mdi-storefront-plus-outline:before{content:"󱮂"}.mdi-storefront-remove:before{content:"󱮅"}.mdi-storefront-remove-outline:before{content:"󱮆"}.mdi-stove:before{content:"󰓞"}.mdi-strategy:before{content:"󱇖"}.mdi-stretch-to-page:before{content:"󰼫"}.mdi-stretch-to-page-outline:before{content:"󰼬"}.mdi-string-lights:before{content:"󱊺"}.mdi-string-lights-off:before{content:"󱊻"}.mdi-subdirectory-arrow-left:before{content:"󰘌"}.mdi-subdirectory-arrow-right:before{content:"󰘍"}.mdi-submarine:before{content:"󱕬"}.mdi-subtitles:before{content:"󰨖"}.mdi-subtitles-outline:before{content:"󰨗"}.mdi-subway:before{content:"󰚬"}.mdi-subway-alert-variant:before{content:"󰶝"}.mdi-subway-variant:before{content:"󰓟"}.mdi-summit:before{content:"󰞆"}.mdi-sun-angle:before{content:"󱬧"}.mdi-sun-angle-outline:before{content:"󱬨"}.mdi-sun-clock:before{content:"󱩷"}.mdi-sun-clock-outline:before{content:"󱩸"}.mdi-sun-compass:before{content:"󱦥"}.mdi-sun-snowflake:before{content:"󱞖"}.mdi-sun-snowflake-variant:before{content:"󱩹"}.mdi-sun-thermometer:before{content:"󱣖"}.mdi-sun-thermometer-outline:before{content:"󱣗"}.mdi-sun-wireless:before{content:"󱟾"}.mdi-sun-wireless-outline:before{content:"󱟿"}.mdi-sunglasses:before{content:"󰓠"}.mdi-surfing:before{content:"󱝆"}.mdi-surround-sound:before{content:"󰗅"}.mdi-surround-sound-2-0:before{content:"󰟰"}.mdi-surround-sound-2-1:before{content:"󱜩"}.mdi-surround-sound-3-1:before{content:"󰟱"}.mdi-surround-sound-5-1:before{content:"󰟲"}.mdi-surround-sound-5-1-2:before{content:"󱜪"}.mdi-surround-sound-7-1:before{content:"󰟳"}.mdi-svg:before{content:"󰜡"}.mdi-swap-horizontal:before{content:"󰓡"}.mdi-swap-horizontal-bold:before{content:"󰯍"}.mdi-swap-horizontal-circle:before{content:"󰿡"}.mdi-swap-horizontal-circle-outline:before{content:"󰿢"}.mdi-swap-horizontal-variant:before{content:"󰣁"}.mdi-swap-vertical:before{content:"󰓢"}.mdi-swap-vertical-bold:before{content:"󰯎"}.mdi-swap-vertical-circle:before{content:"󰿣"}.mdi-swap-vertical-circle-outline:before{content:"󰿤"}.mdi-swap-vertical-variant:before{content:"󰣂"}.mdi-swim:before{content:"󰓣"}.mdi-switch:before{content:"󰓤"}.mdi-sword:before{content:"󰓥"}.mdi-sword-cross:before{content:"󰞇"}.mdi-syllabary-hangul:before{content:"󱌳"}.mdi-syllabary-hiragana:before{content:"󱌴"}.mdi-syllabary-katakana:before{content:"󱌵"}.mdi-syllabary-katakana-halfwidth:before{content:"󱌶"}.mdi-symbol:before{content:"󱔁"}.mdi-symfony:before{content:"󰫦"}.mdi-synagogue:before{content:"󱬄"}.mdi-synagogue-outline:before{content:"󱬅"}.mdi-sync:before{content:"󰓦"}.mdi-sync-alert:before{content:"󰓧"}.mdi-sync-circle:before{content:"󱍸"}.mdi-sync-off:before{content:"󰓨"}.mdi-tab:before{content:"󰓩"}.mdi-tab-minus:before{content:"󰭋"}.mdi-tab-plus:before{content:"󰝜"}.mdi-tab-remove:before{content:"󰭌"}.mdi-tab-search:before{content:"󱦞"}.mdi-tab-unselected:before{content:"󰓪"}.mdi-table:before{content:"󰓫"}.mdi-table-account:before{content:"󱎹"}.mdi-table-alert:before{content:"󱎺"}.mdi-table-arrow-down:before{content:"󱎻"}.mdi-table-arrow-left:before{content:"󱎼"}.mdi-table-arrow-right:before{content:"󱎽"}.mdi-table-arrow-up:before{content:"󱎾"}.mdi-table-border:before{content:"󰨘"}.mdi-table-cancel:before{content:"󱎿"}.mdi-table-chair:before{content:"󱁡"}.mdi-table-check:before{content:"󱏀"}.mdi-table-clock:before{content:"󱏁"}.mdi-table-cog:before{content:"󱏂"}.mdi-table-column:before{content:"󰠵"}.mdi-table-column-plus-after:before{content:"󰓬"}.mdi-table-column-plus-before:before{content:"󰓭"}.mdi-table-column-remove:before{content:"󰓮"}.mdi-table-column-width:before{content:"󰓯"}.mdi-table-edit:before{content:"󰓰"}.mdi-table-eye:before{content:"󱂔"}.mdi-table-eye-off:before{content:"󱏃"}.mdi-table-filter:before{content:"󱮌"}.mdi-table-furniture:before{content:"󰖼"}.mdi-table-headers-eye:before{content:"󱈝"}.mdi-table-headers-eye-off:before{content:"󱈞"}.mdi-table-heart:before{content:"󱏄"}.mdi-table-key:before{content:"󱏅"}.mdi-table-large:before{content:"󰓱"}.mdi-table-large-plus:before{content:"󰾇"}.mdi-table-large-remove:before{content:"󰾈"}.mdi-table-lock:before{content:"󱏆"}.mdi-table-merge-cells:before{content:"󰦦"}.mdi-table-minus:before{content:"󱏇"}.mdi-table-multiple:before{content:"󱏈"}.mdi-table-network:before{content:"󱏉"}.mdi-table-of-contents:before{content:"󰠶"}.mdi-table-off:before{content:"󱏊"}.mdi-table-picnic:before{content:"󱝃"}.mdi-table-pivot:before{content:"󱠼"}.mdi-table-plus:before{content:"󰩵"}.mdi-table-question:before{content:"󱬡"}.mdi-table-refresh:before{content:"󱎠"}.mdi-table-remove:before{content:"󰩶"}.mdi-table-row:before{content:"󰠷"}.mdi-table-row-height:before{content:"󰓲"}.mdi-table-row-plus-after:before{content:"󰓳"}.mdi-table-row-plus-before:before{content:"󰓴"}.mdi-table-row-remove:before{content:"󰓵"}.mdi-table-search:before{content:"󰤏"}.mdi-table-settings:before{content:"󰠸"}.mdi-table-split-cell:before{content:"󱐪"}.mdi-table-star:before{content:"󱏋"}.mdi-table-sync:before{content:"󱎡"}.mdi-table-tennis:before{content:"󰹨"}.mdi-tablet:before{content:"󰓶"}.mdi-tablet-cellphone:before{content:"󰦧"}.mdi-tablet-dashboard:before{content:"󰻎"}.mdi-taco:before{content:"󰝢"}.mdi-tag:before{content:"󰓹"}.mdi-tag-arrow-down:before{content:"󱜫"}.mdi-tag-arrow-down-outline:before{content:"󱜬"}.mdi-tag-arrow-left:before{content:"󱜭"}.mdi-tag-arrow-left-outline:before{content:"󱜮"}.mdi-tag-arrow-right:before{content:"󱜯"}.mdi-tag-arrow-right-outline:before{content:"󱜰"}.mdi-tag-arrow-up:before{content:"󱜱"}.mdi-tag-arrow-up-outline:before{content:"󱜲"}.mdi-tag-check:before{content:"󱩺"}.mdi-tag-check-outline:before{content:"󱩻"}.mdi-tag-edit:before{content:"󱲜"}.mdi-tag-edit-outline:before{content:"󱲝"}.mdi-tag-faces:before{content:"󰓺"}.mdi-tag-heart:before{content:"󰚋"}.mdi-tag-heart-outline:before{content:"󰯏"}.mdi-tag-hidden:before{content:"󱱶"}.mdi-tag-minus:before{content:"󰤐"}.mdi-tag-minus-outline:before{content:"󱈟"}.mdi-tag-multiple:before{content:"󰓻"}.mdi-tag-multiple-outline:before{content:"󱋷"}.mdi-tag-off:before{content:"󱈠"}.mdi-tag-off-outline:before{content:"󱈡"}.mdi-tag-outline:before{content:"󰓼"}.mdi-tag-plus:before{content:"󰜢"}.mdi-tag-plus-outline:before{content:"󱈢"}.mdi-tag-remove:before{content:"󰜣"}.mdi-tag-remove-outline:before{content:"󱈣"}.mdi-tag-search:before{content:"󱤇"}.mdi-tag-search-outline:before{content:"󱤈"}.mdi-tag-text:before{content:"󱈤"}.mdi-tag-text-outline:before{content:"󰓽"}.mdi-tailwind:before{content:"󱏿"}.mdi-tally-mark-1:before{content:"󱪼"}.mdi-tally-mark-2:before{content:"󱪽"}.mdi-tally-mark-3:before{content:"󱪾"}.mdi-tally-mark-4:before{content:"󱪿"}.mdi-tally-mark-5:before{content:"󱫀"}.mdi-tangram:before{content:"󰓸"}.mdi-tank:before{content:"󰴺"}.mdi-tanker-truck:before{content:"󰿥"}.mdi-tape-drive:before{content:"󱛟"}.mdi-tape-measure:before{content:"󰭍"}.mdi-target:before{content:"󰓾"}.mdi-target-account:before{content:"󰯐"}.mdi-target-variant:before{content:"󰩷"}.mdi-taxi:before{content:"󰓿"}.mdi-tea:before{content:"󰶞"}.mdi-tea-outline:before{content:"󰶟"}.mdi-teamviewer:before{content:"󰔀"}.mdi-teddy-bear:before{content:"󱣻"}.mdi-telescope:before{content:"󰭎"}.mdi-television:before{content:"󰔂"}.mdi-television-ambient-light:before{content:"󱍖"}.mdi-television-box:before{content:"󰠹"}.mdi-television-classic:before{content:"󰟴"}.mdi-television-classic-off:before{content:"󰠺"}.mdi-television-guide:before{content:"󰔃"}.mdi-television-off:before{content:"󰠻"}.mdi-television-pause:before{content:"󰾉"}.mdi-television-play:before{content:"󰻏"}.mdi-television-shimmer:before{content:"󱄐"}.mdi-television-speaker:before{content:"󱬛"}.mdi-television-speaker-off:before{content:"󱬜"}.mdi-television-stop:before{content:"󰾊"}.mdi-temperature-celsius:before{content:"󰔄"}.mdi-temperature-fahrenheit:before{content:"󰔅"}.mdi-temperature-kelvin:before{content:"󰔆"}.mdi-temple-buddhist:before{content:"󱬆"}.mdi-temple-buddhist-outline:before{content:"󱬇"}.mdi-temple-hindu:before{content:"󱬈"}.mdi-temple-hindu-outline:before{content:"󱬉"}.mdi-tennis:before{content:"󰶠"}.mdi-tennis-ball:before{content:"󰔇"}.mdi-tennis-ball-outline:before{content:"󱱟"}.mdi-tent:before{content:"󰔈"}.mdi-terraform:before{content:"󱁢"}.mdi-terrain:before{content:"󰔉"}.mdi-test-tube:before{content:"󰙨"}.mdi-test-tube-empty:before{content:"󰤑"}.mdi-test-tube-off:before{content:"󰤒"}.mdi-text:before{content:"󰦨"}.mdi-text-account:before{content:"󱕰"}.mdi-text-box:before{content:"󰈚"}.mdi-text-box-check:before{content:"󰺦"}.mdi-text-box-check-outline:before{content:"󰺧"}.mdi-text-box-edit:before{content:"󱩼"}.mdi-text-box-edit-outline:before{content:"󱩽"}.mdi-text-box-minus:before{content:"󰺨"}.mdi-text-box-minus-outline:before{content:"󰺩"}.mdi-text-box-multiple:before{content:"󰪷"}.mdi-text-box-multiple-outline:before{content:"󰪸"}.mdi-text-box-outline:before{content:"󰧭"}.mdi-text-box-plus:before{content:"󰺪"}.mdi-text-box-plus-outline:before{content:"󰺫"}.mdi-text-box-remove:before{content:"󰺬"}.mdi-text-box-remove-outline:before{content:"󰺭"}.mdi-text-box-search:before{content:"󰺮"}.mdi-text-box-search-outline:before{content:"󰺯"}.mdi-text-long:before{content:"󰦪"}.mdi-text-recognition:before{content:"󱄽"}.mdi-text-search:before{content:"󱎸"}.mdi-text-search-variant:before{content:"󱩾"}.mdi-text-shadow:before{content:"󰙩"}.mdi-text-short:before{content:"󰦩"}.mdi-texture:before{content:"󰔌"}.mdi-texture-box:before{content:"󰿦"}.mdi-theater:before{content:"󰔍"}.mdi-theme-light-dark:before{content:"󰔎"}.mdi-thermometer:before{content:"󰔏"}.mdi-thermometer-alert:before{content:"󰸁"}.mdi-thermometer-auto:before{content:"󱬏"}.mdi-thermometer-bluetooth:before{content:"󱢕"}.mdi-thermometer-check:before{content:"󱩿"}.mdi-thermometer-chevron-down:before{content:"󰸂"}.mdi-thermometer-chevron-up:before{content:"󰸃"}.mdi-thermometer-high:before{content:"󱃂"}.mdi-thermometer-lines:before{content:"󰔐"}.mdi-thermometer-low:before{content:"󱃃"}.mdi-thermometer-minus:before{content:"󰸄"}.mdi-thermometer-off:before{content:"󱔱"}.mdi-thermometer-plus:before{content:"󰸅"}.mdi-thermometer-probe:before{content:"󱬫"}.mdi-thermometer-probe-off:before{content:"󱬬"}.mdi-thermometer-water:before{content:"󱪀"}.mdi-thermostat:before{content:"󰎓"}.mdi-thermostat-auto:before{content:"󱬗"}.mdi-thermostat-box:before{content:"󰢑"}.mdi-thermostat-box-auto:before{content:"󱬘"}.mdi-thermostat-cog:before{content:"󱲀"}.mdi-thought-bubble:before{content:"󰟶"}.mdi-thought-bubble-outline:before{content:"󰟷"}.mdi-thumb-down:before{content:"󰔑"}.mdi-thumb-down-outline:before{content:"󰔒"}.mdi-thumb-up:before{content:"󰔓"}.mdi-thumb-up-outline:before{content:"󰔔"}.mdi-thumbs-up-down:before{content:"󰔕"}.mdi-thumbs-up-down-outline:before{content:"󱤔"}.mdi-ticket:before{content:"󰔖"}.mdi-ticket-account:before{content:"󰔗"}.mdi-ticket-confirmation:before{content:"󰔘"}.mdi-ticket-confirmation-outline:before{content:"󱎪"}.mdi-ticket-outline:before{content:"󰤓"}.mdi-ticket-percent:before{content:"󰜤"}.mdi-ticket-percent-outline:before{content:"󱐫"}.mdi-tie:before{content:"󰔙"}.mdi-tilde:before{content:"󰜥"}.mdi-tilde-off:before{content:"󱣳"}.mdi-timelapse:before{content:"󰔚"}.mdi-timeline:before{content:"󰯑"}.mdi-timeline-alert:before{content:"󰾕"}.mdi-timeline-alert-outline:before{content:"󰾘"}.mdi-timeline-check:before{content:"󱔲"}.mdi-timeline-check-outline:before{content:"󱔳"}.mdi-timeline-clock:before{content:"󱇻"}.mdi-timeline-clock-outline:before{content:"󱇼"}.mdi-timeline-minus:before{content:"󱔴"}.mdi-timeline-minus-outline:before{content:"󱔵"}.mdi-timeline-outline:before{content:"󰯒"}.mdi-timeline-plus:before{content:"󰾖"}.mdi-timeline-plus-outline:before{content:"󰾗"}.mdi-timeline-question:before{content:"󰾙"}.mdi-timeline-question-outline:before{content:"󰾚"}.mdi-timeline-remove:before{content:"󱔶"}.mdi-timeline-remove-outline:before{content:"󱔷"}.mdi-timeline-text:before{content:"󰯓"}.mdi-timeline-text-outline:before{content:"󰯔"}.mdi-timer:before{content:"󱎫"}.mdi-timer-10:before{content:"󰔜"}.mdi-timer-3:before{content:"󰔝"}.mdi-timer-alert:before{content:"󱫌"}.mdi-timer-alert-outline:before{content:"󱫍"}.mdi-timer-cancel:before{content:"󱫎"}.mdi-timer-cancel-outline:before{content:"󱫏"}.mdi-timer-check:before{content:"󱫐"}.mdi-timer-check-outline:before{content:"󱫑"}.mdi-timer-cog:before{content:"󱤥"}.mdi-timer-cog-outline:before{content:"󱤦"}.mdi-timer-edit:before{content:"󱫒"}.mdi-timer-edit-outline:before{content:"󱫓"}.mdi-timer-lock:before{content:"󱫔"}.mdi-timer-lock-open:before{content:"󱫕"}.mdi-timer-lock-open-outline:before{content:"󱫖"}.mdi-timer-lock-outline:before{content:"󱫗"}.mdi-timer-marker:before{content:"󱫘"}.mdi-timer-marker-outline:before{content:"󱫙"}.mdi-timer-minus:before{content:"󱫚"}.mdi-timer-minus-outline:before{content:"󱫛"}.mdi-timer-music:before{content:"󱫜"}.mdi-timer-music-outline:before{content:"󱫝"}.mdi-timer-off:before{content:"󱎬"}.mdi-timer-off-outline:before{content:"󰔞"}.mdi-timer-outline:before{content:"󰔛"}.mdi-timer-pause:before{content:"󱫞"}.mdi-timer-pause-outline:before{content:"󱫟"}.mdi-timer-play:before{content:"󱫠"}.mdi-timer-play-outline:before{content:"󱫡"}.mdi-timer-plus:before{content:"󱫢"}.mdi-timer-plus-outline:before{content:"󱫣"}.mdi-timer-refresh:before{content:"󱫤"}.mdi-timer-refresh-outline:before{content:"󱫥"}.mdi-timer-remove:before{content:"󱫦"}.mdi-timer-remove-outline:before{content:"󱫧"}.mdi-timer-sand:before{content:"󰔟"}.mdi-timer-sand-complete:before{content:"󱦟"}.mdi-timer-sand-empty:before{content:"󰚭"}.mdi-timer-sand-full:before{content:"󰞌"}.mdi-timer-sand-paused:before{content:"󱦠"}.mdi-timer-settings:before{content:"󱤣"}.mdi-timer-settings-outline:before{content:"󱤤"}.mdi-timer-star:before{content:"󱫨"}.mdi-timer-star-outline:before{content:"󱫩"}.mdi-timer-stop:before{content:"󱫪"}.mdi-timer-stop-outline:before{content:"󱫫"}.mdi-timer-sync:before{content:"󱫬"}.mdi-timer-sync-outline:before{content:"󱫭"}.mdi-timetable:before{content:"󰔠"}.mdi-tire:before{content:"󱢖"}.mdi-toaster:before{content:"󱁣"}.mdi-toaster-off:before{content:"󱆷"}.mdi-toaster-oven:before{content:"󰳓"}.mdi-toggle-switch:before{content:"󰔡"}.mdi-toggle-switch-off:before{content:"󰔢"}.mdi-toggle-switch-off-outline:before{content:"󰨙"}.mdi-toggle-switch-outline:before{content:"󰨚"}.mdi-toggle-switch-variant:before{content:"󱨥"}.mdi-toggle-switch-variant-off:before{content:"󱨦"}.mdi-toilet:before{content:"󰦫"}.mdi-toolbox:before{content:"󰦬"}.mdi-toolbox-outline:before{content:"󰦭"}.mdi-tools:before{content:"󱁤"}.mdi-tooltip:before{content:"󰔣"}.mdi-tooltip-account:before{content:"󰀌"}.mdi-tooltip-cellphone:before{content:"󱠻"}.mdi-tooltip-check:before{content:"󱕜"}.mdi-tooltip-check-outline:before{content:"󱕝"}.mdi-tooltip-edit:before{content:"󰔤"}.mdi-tooltip-edit-outline:before{content:"󱋅"}.mdi-tooltip-image:before{content:"󰔥"}.mdi-tooltip-image-outline:before{content:"󰯕"}.mdi-tooltip-minus:before{content:"󱕞"}.mdi-tooltip-minus-outline:before{content:"󱕟"}.mdi-tooltip-outline:before{content:"󰔦"}.mdi-tooltip-plus:before{content:"󰯖"}.mdi-tooltip-plus-outline:before{content:"󰔧"}.mdi-tooltip-question:before{content:"󱮺"}.mdi-tooltip-question-outline:before{content:"󱮻"}.mdi-tooltip-remove:before{content:"󱕠"}.mdi-tooltip-remove-outline:before{content:"󱕡"}.mdi-tooltip-text:before{content:"󰔨"}.mdi-tooltip-text-outline:before{content:"󰯗"}.mdi-tooth:before{content:"󰣃"}.mdi-tooth-outline:before{content:"󰔩"}.mdi-toothbrush:before{content:"󱄩"}.mdi-toothbrush-electric:before{content:"󱄬"}.mdi-toothbrush-paste:before{content:"󱄪"}.mdi-torch:before{content:"󱘆"}.mdi-tortoise:before{content:"󰴻"}.mdi-toslink:before{content:"󱊸"}.mdi-touch-text-outline:before{content:"󱱠"}.mdi-tournament:before{content:"󰦮"}.mdi-tow-truck:before{content:"󰠼"}.mdi-tower-beach:before{content:"󰚁"}.mdi-tower-fire:before{content:"󰚂"}.mdi-town-hall:before{content:"󱡵"}.mdi-toy-brick:before{content:"󱊈"}.mdi-toy-brick-marker:before{content:"󱊉"}.mdi-toy-brick-marker-outline:before{content:"󱊊"}.mdi-toy-brick-minus:before{content:"󱊋"}.mdi-toy-brick-minus-outline:before{content:"󱊌"}.mdi-toy-brick-outline:before{content:"󱊍"}.mdi-toy-brick-plus:before{content:"󱊎"}.mdi-toy-brick-plus-outline:before{content:"󱊏"}.mdi-toy-brick-remove:before{content:"󱊐"}.mdi-toy-brick-remove-outline:before{content:"󱊑"}.mdi-toy-brick-search:before{content:"󱊒"}.mdi-toy-brick-search-outline:before{content:"󱊓"}.mdi-track-light:before{content:"󰤔"}.mdi-track-light-off:before{content:"󱬁"}.mdi-trackpad:before{content:"󰟸"}.mdi-trackpad-lock:before{content:"󰤳"}.mdi-tractor:before{content:"󰢒"}.mdi-tractor-variant:before{content:"󱓄"}.mdi-trademark:before{content:"󰩸"}.mdi-traffic-cone:before{content:"󱍼"}.mdi-traffic-light:before{content:"󰔫"}.mdi-traffic-light-outline:before{content:"󱠪"}.mdi-train:before{content:"󰔬"}.mdi-train-bus:before{content:"󱳇"}.mdi-train-car:before{content:"󰯘"}.mdi-train-car-autorack:before{content:"󱬭"}.mdi-train-car-box:before{content:"󱬮"}.mdi-train-car-box-full:before{content:"󱬯"}.mdi-train-car-box-open:before{content:"󱬰"}.mdi-train-car-caboose:before{content:"󱬱"}.mdi-train-car-centerbeam:before{content:"󱬲"}.mdi-train-car-centerbeam-full:before{content:"󱬳"}.mdi-train-car-container:before{content:"󱬴"}.mdi-train-car-flatbed:before{content:"󱬵"}.mdi-train-car-flatbed-car:before{content:"󱬶"}.mdi-train-car-flatbed-tank:before{content:"󱬷"}.mdi-train-car-gondola:before{content:"󱬸"}.mdi-train-car-gondola-full:before{content:"󱬹"}.mdi-train-car-hopper:before{content:"󱬺"}.mdi-train-car-hopper-covered:before{content:"󱬻"}.mdi-train-car-hopper-full:before{content:"󱬼"}.mdi-train-car-intermodal:before{content:"󱬽"}.mdi-train-car-passenger:before{content:"󱜳"}.mdi-train-car-passenger-door:before{content:"󱜴"}.mdi-train-car-passenger-door-open:before{content:"󱜵"}.mdi-train-car-passenger-variant:before{content:"󱜶"}.mdi-train-car-tank:before{content:"󱬾"}.mdi-train-variant:before{content:"󰣄"}.mdi-tram:before{content:"󰔭"}.mdi-tram-side:before{content:"󰿧"}.mdi-transcribe:before{content:"󰔮"}.mdi-transcribe-close:before{content:"󰔯"}.mdi-transfer:before{content:"󱁥"}.mdi-transfer-down:before{content:"󰶡"}.mdi-transfer-left:before{content:"󰶢"}.mdi-transfer-right:before{content:"󰔰"}.mdi-transfer-up:before{content:"󰶣"}.mdi-transit-connection:before{content:"󰴼"}.mdi-transit-connection-horizontal:before{content:"󱕆"}.mdi-transit-connection-variant:before{content:"󰴽"}.mdi-transit-detour:before{content:"󰾋"}.mdi-transit-skip:before{content:"󱔕"}.mdi-transit-transfer:before{content:"󰚮"}.mdi-transition:before{content:"󰤕"}.mdi-transition-masked:before{content:"󰤖"}.mdi-translate:before{content:"󰗊"}.mdi-translate-off:before{content:"󰸆"}.mdi-translate-variant:before{content:"󱮙"}.mdi-transmission-tower:before{content:"󰴾"}.mdi-transmission-tower-export:before{content:"󱤬"}.mdi-transmission-tower-import:before{content:"󱤭"}.mdi-transmission-tower-off:before{content:"󱧝"}.mdi-trash-can:before{content:"󰩹"}.mdi-trash-can-outline:before{content:"󰩺"}.mdi-tray:before{content:"󱊔"}.mdi-tray-alert:before{content:"󱊕"}.mdi-tray-arrow-down:before{content:"󰄠"}.mdi-tray-arrow-up:before{content:"󰄝"}.mdi-tray-full:before{content:"󱊖"}.mdi-tray-minus:before{content:"󱊗"}.mdi-tray-plus:before{content:"󱊘"}.mdi-tray-remove:before{content:"󱊙"}.mdi-treasure-chest:before{content:"󰜦"}.mdi-treasure-chest-outline:before{content:"󱱷"}.mdi-tree:before{content:"󰔱"}.mdi-tree-outline:before{content:"󰹩"}.mdi-trello:before{content:"󰔲"}.mdi-trending-down:before{content:"󰔳"}.mdi-trending-neutral:before{content:"󰔴"}.mdi-trending-up:before{content:"󰔵"}.mdi-triangle:before{content:"󰔶"}.mdi-triangle-down:before{content:"󱱖"}.mdi-triangle-down-outline:before{content:"󱱗"}.mdi-triangle-outline:before{content:"󰔷"}.mdi-triangle-small-down:before{content:"󱨉"}.mdi-triangle-small-up:before{content:"󱨊"}.mdi-triangle-wave:before{content:"󱑼"}.mdi-triforce:before{content:"󰯙"}.mdi-trophy:before{content:"󰔸"}.mdi-trophy-award:before{content:"󰔹"}.mdi-trophy-broken:before{content:"󰶤"}.mdi-trophy-outline:before{content:"󰔺"}.mdi-trophy-variant:before{content:"󰔻"}.mdi-trophy-variant-outline:before{content:"󰔼"}.mdi-truck:before{content:"󰔽"}.mdi-truck-alert:before{content:"󱧞"}.mdi-truck-alert-outline:before{content:"󱧟"}.mdi-truck-cargo-container:before{content:"󱣘"}.mdi-truck-check:before{content:"󰳔"}.mdi-truck-check-outline:before{content:"󱊚"}.mdi-truck-delivery:before{content:"󰔾"}.mdi-truck-delivery-outline:before{content:"󱊛"}.mdi-truck-fast:before{content:"󰞈"}.mdi-truck-fast-outline:before{content:"󱊜"}.mdi-truck-flatbed:before{content:"󱢑"}.mdi-truck-minus:before{content:"󱦮"}.mdi-truck-minus-outline:before{content:"󱦽"}.mdi-truck-off-road:before{content:"󱲞"}.mdi-truck-off-road-off:before{content:"󱲟"}.mdi-truck-outline:before{content:"󱊝"}.mdi-truck-plus:before{content:"󱦭"}.mdi-truck-plus-outline:before{content:"󱦼"}.mdi-truck-remove:before{content:"󱦯"}.mdi-truck-remove-outline:before{content:"󱦾"}.mdi-truck-snowflake:before{content:"󱦦"}.mdi-truck-trailer:before{content:"󰜧"}.mdi-trumpet:before{content:"󱂖"}.mdi-tshirt-crew:before{content:"󰩻"}.mdi-tshirt-crew-outline:before{content:"󰔿"}.mdi-tshirt-v:before{content:"󰩼"}.mdi-tshirt-v-outline:before{content:"󰕀"}.mdi-tsunami:before{content:"󱪁"}.mdi-tumble-dryer:before{content:"󰤗"}.mdi-tumble-dryer-alert:before{content:"󱆺"}.mdi-tumble-dryer-off:before{content:"󱆻"}.mdi-tune:before{content:"󰘮"}.mdi-tune-variant:before{content:"󱕂"}.mdi-tune-vertical:before{content:"󰙪"}.mdi-tune-vertical-variant:before{content:"󱕃"}.mdi-tunnel:before{content:"󱠽"}.mdi-tunnel-outline:before{content:"󱠾"}.mdi-turbine:before{content:"󱪂"}.mdi-turkey:before{content:"󱜛"}.mdi-turnstile:before{content:"󰳕"}.mdi-turnstile-outline:before{content:"󰳖"}.mdi-turtle:before{content:"󰳗"}.mdi-twitch:before{content:"󰕃"}.mdi-twitter:before{content:"󰕄"}.mdi-two-factor-authentication:before{content:"󰦯"}.mdi-typewriter:before{content:"󰼭"}.mdi-ubisoft:before{content:"󰯚"}.mdi-ubuntu:before{content:"󰕈"}.mdi-ufo:before{content:"󱃄"}.mdi-ufo-outline:before{content:"󱃅"}.mdi-ultra-high-definition:before{content:"󰟹"}.mdi-umbraco:before{content:"󰕉"}.mdi-umbrella:before{content:"󰕊"}.mdi-umbrella-beach:before{content:"󱢊"}.mdi-umbrella-beach-outline:before{content:"󱢋"}.mdi-umbrella-closed:before{content:"󰦰"}.mdi-umbrella-closed-outline:before{content:"󱏢"}.mdi-umbrella-closed-variant:before{content:"󱏡"}.mdi-umbrella-outline:before{content:"󰕋"}.mdi-undo:before{content:"󰕌"}.mdi-undo-variant:before{content:"󰕍"}.mdi-unfold-less-horizontal:before{content:"󰕎"}.mdi-unfold-less-vertical:before{content:"󰝠"}.mdi-unfold-more-horizontal:before{content:"󰕏"}.mdi-unfold-more-vertical:before{content:"󰝡"}.mdi-ungroup:before{content:"󰕐"}.mdi-unicode:before{content:"󰻐"}.mdi-unicorn:before{content:"󱗂"}.mdi-unicorn-variant:before{content:"󱗃"}.mdi-unicycle:before{content:"󱗥"}.mdi-unity:before{content:"󰚯"}.mdi-unreal:before{content:"󰦱"}.mdi-update:before{content:"󰚰"}.mdi-upload:before{content:"󰕒"}.mdi-upload-lock:before{content:"󱍳"}.mdi-upload-lock-outline:before{content:"󱍴"}.mdi-upload-multiple:before{content:"󰠽"}.mdi-upload-network:before{content:"󰛶"}.mdi-upload-network-outline:before{content:"󰳘"}.mdi-upload-off:before{content:"󱃆"}.mdi-upload-off-outline:before{content:"󱃇"}.mdi-upload-outline:before{content:"󰸇"}.mdi-usb:before{content:"󰕓"}.mdi-usb-c-port:before{content:"󱲿"}.mdi-usb-flash-drive:before{content:"󱊞"}.mdi-usb-flash-drive-outline:before{content:"󱊟"}.mdi-usb-port:before{content:"󱇰"}.mdi-vacuum:before{content:"󱦡"}.mdi-vacuum-outline:before{content:"󱦢"}.mdi-valve:before{content:"󱁦"}.mdi-valve-closed:before{content:"󱁧"}.mdi-valve-open:before{content:"󱁨"}.mdi-van-passenger:before{content:"󰟺"}.mdi-van-utility:before{content:"󰟻"}.mdi-vanish:before{content:"󰟼"}.mdi-vanish-quarter:before{content:"󱕔"}.mdi-vanity-light:before{content:"󱇡"}.mdi-variable:before{content:"󰫧"}.mdi-variable-box:before{content:"󱄑"}.mdi-vector-arrange-above:before{content:"󰕔"}.mdi-vector-arrange-below:before{content:"󰕕"}.mdi-vector-bezier:before{content:"󰫨"}.mdi-vector-circle:before{content:"󰕖"}.mdi-vector-circle-variant:before{content:"󰕗"}.mdi-vector-combine:before{content:"󰕘"}.mdi-vector-curve:before{content:"󰕙"}.mdi-vector-difference:before{content:"󰕚"}.mdi-vector-difference-ab:before{content:"󰕛"}.mdi-vector-difference-ba:before{content:"󰕜"}.mdi-vector-ellipse:before{content:"󰢓"}.mdi-vector-intersection:before{content:"󰕝"}.mdi-vector-line:before{content:"󰕞"}.mdi-vector-link:before{content:"󰿨"}.mdi-vector-point:before{content:"󰇄"}.mdi-vector-point-edit:before{content:"󰧨"}.mdi-vector-point-minus:before{content:"󱭸"}.mdi-vector-point-plus:before{content:"󱭹"}.mdi-vector-point-select:before{content:"󰕟"}.mdi-vector-polygon:before{content:"󰕠"}.mdi-vector-polygon-variant:before{content:"󱡖"}.mdi-vector-polyline:before{content:"󰕡"}.mdi-vector-polyline-edit:before{content:"󱈥"}.mdi-vector-polyline-minus:before{content:"󱈦"}.mdi-vector-polyline-plus:before{content:"󱈧"}.mdi-vector-polyline-remove:before{content:"󱈨"}.mdi-vector-radius:before{content:"󰝊"}.mdi-vector-rectangle:before{content:"󰗆"}.mdi-vector-selection:before{content:"󰕢"}.mdi-vector-square:before{content:"󰀁"}.mdi-vector-square-close:before{content:"󱡗"}.mdi-vector-square-edit:before{content:"󱣙"}.mdi-vector-square-minus:before{content:"󱣚"}.mdi-vector-square-open:before{content:"󱡘"}.mdi-vector-square-plus:before{content:"󱣛"}.mdi-vector-square-remove:before{content:"󱣜"}.mdi-vector-triangle:before{content:"󰕣"}.mdi-vector-union:before{content:"󰕤"}.mdi-vhs:before{content:"󰨛"}.mdi-vibrate:before{content:"󰕦"}.mdi-vibrate-off:before{content:"󰳙"}.mdi-video:before{content:"󰕧"}.mdi-video-2d:before{content:"󱨜"}.mdi-video-3d:before{content:"󰟽"}.mdi-video-3d-off:before{content:"󱏙"}.mdi-video-3d-variant:before{content:"󰻑"}.mdi-video-4k-box:before{content:"󰠾"}.mdi-video-account:before{content:"󰤙"}.mdi-video-box:before{content:"󰃽"}.mdi-video-box-off:before{content:"󰃾"}.mdi-video-check:before{content:"󱁩"}.mdi-video-check-outline:before{content:"󱁪"}.mdi-video-high-definition:before{content:"󱔮"}.mdi-video-image:before{content:"󰤚"}.mdi-video-input-antenna:before{content:"󰠿"}.mdi-video-input-component:before{content:"󰡀"}.mdi-video-input-hdmi:before{content:"󰡁"}.mdi-video-input-scart:before{content:"󰾌"}.mdi-video-input-svideo:before{content:"󰡂"}.mdi-video-marker:before{content:"󱦩"}.mdi-video-marker-outline:before{content:"󱦪"}.mdi-video-minus:before{content:"󰦲"}.mdi-video-minus-outline:before{content:"󰊺"}.mdi-video-off:before{content:"󰕨"}.mdi-video-off-outline:before{content:"󰯛"}.mdi-video-outline:before{content:"󰯜"}.mdi-video-plus:before{content:"󰦳"}.mdi-video-plus-outline:before{content:"󰇓"}.mdi-video-stabilization:before{content:"󰤛"}.mdi-video-standard-definition:before{content:"󱲠"}.mdi-video-switch:before{content:"󰕩"}.mdi-video-switch-outline:before{content:"󰞐"}.mdi-video-vintage:before{content:"󰨜"}.mdi-video-wireless:before{content:"󰻒"}.mdi-video-wireless-outline:before{content:"󰻓"}.mdi-view-agenda:before{content:"󰕪"}.mdi-view-agenda-outline:before{content:"󱇘"}.mdi-view-array:before{content:"󰕫"}.mdi-view-array-outline:before{content:"󱒅"}.mdi-view-carousel:before{content:"󰕬"}.mdi-view-carousel-outline:before{content:"󱒆"}.mdi-view-column:before{content:"󰕭"}.mdi-view-column-outline:before{content:"󱒇"}.mdi-view-comfy:before{content:"󰹪"}.mdi-view-comfy-outline:before{content:"󱒈"}.mdi-view-compact:before{content:"󰹫"}.mdi-view-compact-outline:before{content:"󰹬"}.mdi-view-dashboard:before{content:"󰕮"}.mdi-view-dashboard-edit:before{content:"󱥇"}.mdi-view-dashboard-edit-outline:before{content:"󱥈"}.mdi-view-dashboard-outline:before{content:"󰨝"}.mdi-view-dashboard-variant:before{content:"󰡃"}.mdi-view-dashboard-variant-outline:before{content:"󱒉"}.mdi-view-day:before{content:"󰕯"}.mdi-view-day-outline:before{content:"󱒊"}.mdi-view-gallery:before{content:"󱢈"}.mdi-view-gallery-outline:before{content:"󱢉"}.mdi-view-grid:before{content:"󰕰"}.mdi-view-grid-compact:before{content:"󱱡"}.mdi-view-grid-outline:before{content:"󱇙"}.mdi-view-grid-plus:before{content:"󰾍"}.mdi-view-grid-plus-outline:before{content:"󱇚"}.mdi-view-headline:before{content:"󰕱"}.mdi-view-list:before{content:"󰕲"}.mdi-view-list-outline:before{content:"󱒋"}.mdi-view-module:before{content:"󰕳"}.mdi-view-module-outline:before{content:"󱒌"}.mdi-view-parallel:before{content:"󰜨"}.mdi-view-parallel-outline:before{content:"󱒍"}.mdi-view-quilt:before{content:"󰕴"}.mdi-view-quilt-outline:before{content:"󱒎"}.mdi-view-sequential:before{content:"󰜩"}.mdi-view-sequential-outline:before{content:"󱒏"}.mdi-view-split-horizontal:before{content:"󰯋"}.mdi-view-split-vertical:before{content:"󰯌"}.mdi-view-stream:before{content:"󰕵"}.mdi-view-stream-outline:before{content:"󱒐"}.mdi-view-week:before{content:"󰕶"}.mdi-view-week-outline:before{content:"󱒑"}.mdi-vimeo:before{content:"󰕷"}.mdi-violin:before{content:"󰘏"}.mdi-virtual-reality:before{content:"󰢔"}.mdi-virus:before{content:"󱎶"}.mdi-virus-off:before{content:"󱣡"}.mdi-virus-off-outline:before{content:"󱣢"}.mdi-virus-outline:before{content:"󱎷"}.mdi-vlc:before{content:"󰕼"}.mdi-voicemail:before{content:"󰕽"}.mdi-volcano:before{content:"󱪃"}.mdi-volcano-outline:before{content:"󱪄"}.mdi-volleyball:before{content:"󰦴"}.mdi-volume-equal:before{content:"󱬐"}.mdi-volume-high:before{content:"󰕾"}.mdi-volume-low:before{content:"󰕿"}.mdi-volume-medium:before{content:"󰖀"}.mdi-volume-minus:before{content:"󰝞"}.mdi-volume-mute:before{content:"󰝟"}.mdi-volume-off:before{content:"󰖁"}.mdi-volume-plus:before{content:"󰝝"}.mdi-volume-source:before{content:"󱄠"}.mdi-volume-variant-off:before{content:"󰸈"}.mdi-volume-vibrate:before{content:"󱄡"}.mdi-vote:before{content:"󰨟"}.mdi-vote-outline:before{content:"󰨠"}.mdi-vpn:before{content:"󰖂"}.mdi-vuejs:before{content:"󰡄"}.mdi-vuetify:before{content:"󰹭"}.mdi-walk:before{content:"󰖃"}.mdi-wall:before{content:"󰟾"}.mdi-wall-fire:before{content:"󱨑"}.mdi-wall-sconce:before{content:"󰤜"}.mdi-wall-sconce-flat:before{content:"󰤝"}.mdi-wall-sconce-flat-outline:before{content:"󱟉"}.mdi-wall-sconce-flat-variant:before{content:"󰐜"}.mdi-wall-sconce-flat-variant-outline:before{content:"󱟊"}.mdi-wall-sconce-outline:before{content:"󱟋"}.mdi-wall-sconce-round:before{content:"󰝈"}.mdi-wall-sconce-round-outline:before{content:"󱟌"}.mdi-wall-sconce-round-variant:before{content:"󰤞"}.mdi-wall-sconce-round-variant-outline:before{content:"󱟍"}.mdi-wallet:before{content:"󰖄"}.mdi-wallet-bifold:before{content:"󱱘"}.mdi-wallet-bifold-outline:before{content:"󱱙"}.mdi-wallet-giftcard:before{content:"󰖅"}.mdi-wallet-membership:before{content:"󰖆"}.mdi-wallet-outline:before{content:"󰯝"}.mdi-wallet-plus:before{content:"󰾎"}.mdi-wallet-plus-outline:before{content:"󰾏"}.mdi-wallet-travel:before{content:"󰖇"}.mdi-wallpaper:before{content:"󰸉"}.mdi-wan:before{content:"󰖈"}.mdi-wardrobe:before{content:"󰾐"}.mdi-wardrobe-outline:before{content:"󰾑"}.mdi-warehouse:before{content:"󰾁"}.mdi-washing-machine:before{content:"󰜪"}.mdi-washing-machine-alert:before{content:"󱆼"}.mdi-washing-machine-off:before{content:"󱆽"}.mdi-watch:before{content:"󰖉"}.mdi-watch-export:before{content:"󰖊"}.mdi-watch-export-variant:before{content:"󰢕"}.mdi-watch-import:before{content:"󰖋"}.mdi-watch-import-variant:before{content:"󰢖"}.mdi-watch-variant:before{content:"󰢗"}.mdi-watch-vibrate:before{content:"󰚱"}.mdi-watch-vibrate-off:before{content:"󰳚"}.mdi-water:before{content:"󰖌"}.mdi-water-alert:before{content:"󱔂"}.mdi-water-alert-outline:before{content:"󱔃"}.mdi-water-boiler:before{content:"󰾒"}.mdi-water-boiler-alert:before{content:"󱆳"}.mdi-water-boiler-auto:before{content:"󱮘"}.mdi-water-boiler-off:before{content:"󱆴"}.mdi-water-check:before{content:"󱔄"}.mdi-water-check-outline:before{content:"󱔅"}.mdi-water-circle:before{content:"󱠆"}.mdi-water-minus:before{content:"󱔆"}.mdi-water-minus-outline:before{content:"󱔇"}.mdi-water-off:before{content:"󰖍"}.mdi-water-off-outline:before{content:"󱔈"}.mdi-water-opacity:before{content:"󱡕"}.mdi-water-outline:before{content:"󰸊"}.mdi-water-percent:before{content:"󰖎"}.mdi-water-percent-alert:before{content:"󱔉"}.mdi-water-plus:before{content:"󱔊"}.mdi-water-plus-outline:before{content:"󱔋"}.mdi-water-polo:before{content:"󱊠"}.mdi-water-pump:before{content:"󰖏"}.mdi-water-pump-off:before{content:"󰾓"}.mdi-water-remove:before{content:"󱔌"}.mdi-water-remove-outline:before{content:"󱔍"}.mdi-water-sync:before{content:"󱟆"}.mdi-water-thermometer:before{content:"󱪅"}.mdi-water-thermometer-outline:before{content:"󱪆"}.mdi-water-well:before{content:"󱁫"}.mdi-water-well-outline:before{content:"󱁬"}.mdi-waterfall:before{content:"󱡉"}.mdi-watering-can:before{content:"󱒁"}.mdi-watering-can-outline:before{content:"󱒂"}.mdi-watermark:before{content:"󰘒"}.mdi-wave:before{content:"󰼮"}.mdi-wave-arrow-down:before{content:"󱲰"}.mdi-wave-arrow-up:before{content:"󱲱"}.mdi-wave-undercurrent:before{content:"󱳀"}.mdi-waveform:before{content:"󱑽"}.mdi-waves:before{content:"󰞍"}.mdi-waves-arrow-left:before{content:"󱡙"}.mdi-waves-arrow-right:before{content:"󱡚"}.mdi-waves-arrow-up:before{content:"󱡛"}.mdi-waze:before{content:"󰯞"}.mdi-weather-cloudy:before{content:"󰖐"}.mdi-weather-cloudy-alert:before{content:"󰼯"}.mdi-weather-cloudy-arrow-right:before{content:"󰹮"}.mdi-weather-cloudy-clock:before{content:"󱣶"}.mdi-weather-dust:before{content:"󱭚"}.mdi-weather-fog:before{content:"󰖑"}.mdi-weather-hail:before{content:"󰖒"}.mdi-weather-hazy:before{content:"󰼰"}.mdi-weather-hurricane:before{content:"󰢘"}.mdi-weather-hurricane-outline:before{content:"󱱸"}.mdi-weather-lightning:before{content:"󰖓"}.mdi-weather-lightning-rainy:before{content:"󰙾"}.mdi-weather-night:before{content:"󰖔"}.mdi-weather-night-partly-cloudy:before{content:"󰼱"}.mdi-weather-partly-cloudy:before{content:"󰖕"}.mdi-weather-partly-lightning:before{content:"󰼲"}.mdi-weather-partly-rainy:before{content:"󰼳"}.mdi-weather-partly-snowy:before{content:"󰼴"}.mdi-weather-partly-snowy-rainy:before{content:"󰼵"}.mdi-weather-pouring:before{content:"󰖖"}.mdi-weather-rainy:before{content:"󰖗"}.mdi-weather-snowy:before{content:"󰖘"}.mdi-weather-snowy-heavy:before{content:"󰼶"}.mdi-weather-snowy-rainy:before{content:"󰙿"}.mdi-weather-sunny:before{content:"󰖙"}.mdi-weather-sunny-alert:before{content:"󰼷"}.mdi-weather-sunny-off:before{content:"󱓤"}.mdi-weather-sunset:before{content:"󰖚"}.mdi-weather-sunset-down:before{content:"󰖛"}.mdi-weather-sunset-up:before{content:"󰖜"}.mdi-weather-tornado:before{content:"󰼸"}.mdi-weather-windy:before{content:"󰖝"}.mdi-weather-windy-variant:before{content:"󰖞"}.mdi-web:before{content:"󰖟"}.mdi-web-box:before{content:"󰾔"}.mdi-web-cancel:before{content:"󱞐"}.mdi-web-check:before{content:"󰞉"}.mdi-web-clock:before{content:"󱉊"}.mdi-web-minus:before{content:"󱂠"}.mdi-web-off:before{content:"󰪎"}.mdi-web-plus:before{content:"󰀳"}.mdi-web-refresh:before{content:"󱞑"}.mdi-web-remove:before{content:"󰕑"}.mdi-web-sync:before{content:"󱞒"}.mdi-webcam:before{content:"󰖠"}.mdi-webcam-off:before{content:"󱜷"}.mdi-webhook:before{content:"󰘯"}.mdi-webpack:before{content:"󰜫"}.mdi-webrtc:before{content:"󱉈"}.mdi-wechat:before{content:"󰘑"}.mdi-weight:before{content:"󰖡"}.mdi-weight-gram:before{content:"󰴿"}.mdi-weight-kilogram:before{content:"󰖢"}.mdi-weight-lifter:before{content:"󱅝"}.mdi-weight-pound:before{content:"󰦵"}.mdi-whatsapp:before{content:"󰖣"}.mdi-wheel-barrow:before{content:"󱓲"}.mdi-wheelchair:before{content:"󱪇"}.mdi-wheelchair-accessibility:before{content:"󰖤"}.mdi-whistle:before{content:"󰦶"}.mdi-whistle-outline:before{content:"󱊼"}.mdi-white-balance-auto:before{content:"󰖥"}.mdi-white-balance-incandescent:before{content:"󰖦"}.mdi-white-balance-iridescent:before{content:"󰖧"}.mdi-white-balance-sunny:before{content:"󰖨"}.mdi-widgets:before{content:"󰜬"}.mdi-widgets-outline:before{content:"󱍕"}.mdi-wifi:before{content:"󰖩"}.mdi-wifi-alert:before{content:"󱚵"}.mdi-wifi-arrow-down:before{content:"󱚶"}.mdi-wifi-arrow-left:before{content:"󱚷"}.mdi-wifi-arrow-left-right:before{content:"󱚸"}.mdi-wifi-arrow-right:before{content:"󱚹"}.mdi-wifi-arrow-up:before{content:"󱚺"}.mdi-wifi-arrow-up-down:before{content:"󱚻"}.mdi-wifi-cancel:before{content:"󱚼"}.mdi-wifi-check:before{content:"󱚽"}.mdi-wifi-cog:before{content:"󱚾"}.mdi-wifi-lock:before{content:"󱚿"}.mdi-wifi-lock-open:before{content:"󱛀"}.mdi-wifi-marker:before{content:"󱛁"}.mdi-wifi-minus:before{content:"󱛂"}.mdi-wifi-off:before{content:"󰖪"}.mdi-wifi-plus:before{content:"󱛃"}.mdi-wifi-refresh:before{content:"󱛄"}.mdi-wifi-remove:before{content:"󱛅"}.mdi-wifi-settings:before{content:"󱛆"}.mdi-wifi-star:before{content:"󰸋"}.mdi-wifi-strength-1:before{content:"󰤟"}.mdi-wifi-strength-1-alert:before{content:"󰤠"}.mdi-wifi-strength-1-lock:before{content:"󰤡"}.mdi-wifi-strength-1-lock-open:before{content:"󱛋"}.mdi-wifi-strength-2:before{content:"󰤢"}.mdi-wifi-strength-2-alert:before{content:"󰤣"}.mdi-wifi-strength-2-lock:before{content:"󰤤"}.mdi-wifi-strength-2-lock-open:before{content:"󱛌"}.mdi-wifi-strength-3:before{content:"󰤥"}.mdi-wifi-strength-3-alert:before{content:"󰤦"}.mdi-wifi-strength-3-lock:before{content:"󰤧"}.mdi-wifi-strength-3-lock-open:before{content:"󱛍"}.mdi-wifi-strength-4:before{content:"󰤨"}.mdi-wifi-strength-4-alert:before{content:"󰤩"}.mdi-wifi-strength-4-lock:before{content:"󰤪"}.mdi-wifi-strength-4-lock-open:before{content:"󱛎"}.mdi-wifi-strength-alert-outline:before{content:"󰤫"}.mdi-wifi-strength-lock-open-outline:before{content:"󱛏"}.mdi-wifi-strength-lock-outline:before{content:"󰤬"}.mdi-wifi-strength-off:before{content:"󰤭"}.mdi-wifi-strength-off-outline:before{content:"󰤮"}.mdi-wifi-strength-outline:before{content:"󰤯"}.mdi-wifi-sync:before{content:"󱛇"}.mdi-wikipedia:before{content:"󰖬"}.mdi-wind-power:before{content:"󱪈"}.mdi-wind-power-outline:before{content:"󱪉"}.mdi-wind-turbine:before{content:"󰶥"}.mdi-wind-turbine-alert:before{content:"󱦫"}.mdi-wind-turbine-check:before{content:"󱦬"}.mdi-window-close:before{content:"󰖭"}.mdi-window-closed:before{content:"󰖮"}.mdi-window-closed-variant:before{content:"󱇛"}.mdi-window-maximize:before{content:"󰖯"}.mdi-window-minimize:before{content:"󰖰"}.mdi-window-open:before{content:"󰖱"}.mdi-window-open-variant:before{content:"󱇜"}.mdi-window-restore:before{content:"󰖲"}.mdi-window-shutter:before{content:"󱄜"}.mdi-window-shutter-alert:before{content:"󱄝"}.mdi-window-shutter-auto:before{content:"󱮣"}.mdi-window-shutter-cog:before{content:"󱪊"}.mdi-window-shutter-open:before{content:"󱄞"}.mdi-window-shutter-settings:before{content:"󱪋"}.mdi-windsock:before{content:"󱗺"}.mdi-wiper:before{content:"󰫩"}.mdi-wiper-wash:before{content:"󰶦"}.mdi-wiper-wash-alert:before{content:"󱣟"}.mdi-wizard-hat:before{content:"󱑷"}.mdi-wordpress:before{content:"󰖴"}.mdi-wrap:before{content:"󰖶"}.mdi-wrap-disabled:before{content:"󰯟"}.mdi-wrench:before{content:"󰖷"}.mdi-wrench-check:before{content:"󱮏"}.mdi-wrench-check-outline:before{content:"󱮐"}.mdi-wrench-clock:before{content:"󱦣"}.mdi-wrench-clock-outline:before{content:"󱮓"}.mdi-wrench-cog:before{content:"󱮑"}.mdi-wrench-cog-outline:before{content:"󱮒"}.mdi-wrench-outline:before{content:"󰯠"}.mdi-xamarin:before{content:"󰡅"}.mdi-xml:before{content:"󰗀"}.mdi-xmpp:before{content:"󰟿"}.mdi-yahoo:before{content:"󰭏"}.mdi-yeast:before{content:"󰗁"}.mdi-yin-yang:before{content:"󰚀"}.mdi-yoga:before{content:"󱅼"}.mdi-youtube:before{content:"󰗃"}.mdi-youtube-gaming:before{content:"󰡈"}.mdi-youtube-studio:before{content:"󰡇"}.mdi-youtube-subscription:before{content:"󰵀"}.mdi-youtube-tv:before{content:"󰑈"}.mdi-yurt:before{content:"󱔖"}.mdi-z-wave:before{content:"󰫪"}.mdi-zend:before{content:"󰫫"}.mdi-zigbee:before{content:"󰵁"}.mdi-zip-box:before{content:"󰗄"}.mdi-zip-box-outline:before{content:"󰿺"}.mdi-zip-disk:before{content:"󰨣"}.mdi-zodiac-aquarius:before{content:"󰩽"}.mdi-zodiac-aries:before{content:"󰩾"}.mdi-zodiac-cancer:before{content:"󰩿"}.mdi-zodiac-capricorn:before{content:"󰪀"}.mdi-zodiac-gemini:before{content:"󰪁"}.mdi-zodiac-leo:before{content:"󰪂"}.mdi-zodiac-libra:before{content:"󰪃"}.mdi-zodiac-pisces:before{content:"󰪄"}.mdi-zodiac-sagittarius:before{content:"󰪅"}.mdi-zodiac-scorpio:before{content:"󰪆"}.mdi-zodiac-taurus:before{content:"󰪇"}.mdi-zodiac-virgo:before{content:"󰪈"}.mdi-blank:before{content:"";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}html,body{font-family:Pathway Extreme,sans-serif}h1,h2,h3,h4,h5,p{margin:0}ul{list-style-position:inside}.zt-menu{border:1px solid rgba(var(--v-theme-bluegrey))}.zt-menu .v-list-item__prepend{margin-right:12px}.v-container{max-width:1250px}.code-output{white-space:pre-wrap}.v-expansion-panel--active>.v-expansion-panel-title{min-height:31px}.add-cell-item:hover{background-color:rgba(var(--v-theme-bluegrey))}.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important}.bg-black{color:#fff!important}.bg-white{background-color:#fff!important}.bg-white{color:#000!important}.bg-transparent{background-color:transparent!important}.bg-transparent{color:currentColor!important}.bg-red{background-color:#f44336!important}.bg-red{color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important}.bg-red-lighten-5{color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important}.bg-red-lighten-4{color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important}.bg-red-lighten-3{color:#000!important}.bg-red-lighten-2{background-color:#e57373!important}.bg-red-lighten-2{color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important}.bg-red-lighten-1{color:#fff!important}.bg-red-darken-1{background-color:#e53935!important}.bg-red-darken-1{color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important}.bg-red-darken-2{color:#fff!important}.bg-red-darken-3{background-color:#c62828!important}.bg-red-darken-3{color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important}.bg-red-darken-4{color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important}.bg-red-accent-1{color:#000!important}.bg-red-accent-2{background-color:#ff5252!important}.bg-red-accent-2{color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important}.bg-red-accent-3{color:#fff!important}.bg-red-accent-4{background-color:#d50000!important}.bg-red-accent-4{color:#fff!important}.bg-pink{background-color:#e91e63!important}.bg-pink{color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important}.bg-pink-lighten-5{color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important}.bg-pink-lighten-4{color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important}.bg-pink-lighten-3{color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important}.bg-pink-lighten-2{color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important}.bg-pink-lighten-1{color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important}.bg-pink-darken-1{color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important}.bg-pink-darken-2{color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important}.bg-pink-darken-3{color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important}.bg-pink-darken-4{color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important}.bg-pink-accent-1{color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important}.bg-pink-accent-2{color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important}.bg-pink-accent-3{color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important}.bg-pink-accent-4{color:#fff!important}.bg-purple{background-color:#9c27b0!important}.bg-purple{color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important}.bg-purple-lighten-5{color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important}.bg-purple-lighten-4{color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important}.bg-purple-lighten-3{color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important}.bg-purple-lighten-2{color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important}.bg-purple-lighten-1{color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important}.bg-purple-darken-1{color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important}.bg-purple-darken-2{color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important}.bg-purple-darken-3{color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important}.bg-purple-darken-4{color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important}.bg-purple-accent-1{color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important}.bg-purple-accent-2{color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important}.bg-purple-accent-3{color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important}.bg-purple-accent-4{color:#fff!important}.bg-deep-purple{background-color:#673ab7!important}.bg-deep-purple{color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important}.bg-deep-purple-lighten-5{color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important}.bg-deep-purple-lighten-4{color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important}.bg-deep-purple-lighten-3{color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important}.bg-deep-purple-lighten-2{color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important}.bg-deep-purple-lighten-1{color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important}.bg-deep-purple-darken-1{color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important}.bg-deep-purple-darken-2{color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important}.bg-deep-purple-darken-3{color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important}.bg-deep-purple-darken-4{color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important}.bg-deep-purple-accent-1{color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important}.bg-deep-purple-accent-2{color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important}.bg-deep-purple-accent-3{color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important}.bg-deep-purple-accent-4{color:#fff!important}.bg-indigo{background-color:#3f51b5!important}.bg-indigo{color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important}.bg-indigo-lighten-5{color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important}.bg-indigo-lighten-4{color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important}.bg-indigo-lighten-3{color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important}.bg-indigo-lighten-2{color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important}.bg-indigo-lighten-1{color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important}.bg-indigo-darken-1{color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important}.bg-indigo-darken-2{color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important}.bg-indigo-darken-3{color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important}.bg-indigo-darken-4{color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important}.bg-indigo-accent-1{color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important}.bg-indigo-accent-2{color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important}.bg-indigo-accent-3{color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important}.bg-indigo-accent-4{color:#fff!important}.bg-blue{background-color:#2196f3!important}.bg-blue{color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important}.bg-blue-lighten-5{color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important}.bg-blue-lighten-4{color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important}.bg-blue-lighten-3{color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important}.bg-blue-lighten-2{color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important}.bg-blue-lighten-1{color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important}.bg-blue-darken-1{color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important}.bg-blue-darken-2{color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important}.bg-blue-darken-3{color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important}.bg-blue-darken-4{color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important}.bg-blue-accent-1{color:#000!important}.bg-blue-accent-2{background-color:#448aff!important}.bg-blue-accent-2{color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important}.bg-blue-accent-3{color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important}.bg-blue-accent-4{color:#fff!important}.bg-light-blue{background-color:#03a9f4!important}.bg-light-blue{color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important}.bg-light-blue-lighten-5{color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important}.bg-light-blue-lighten-4{color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important}.bg-light-blue-lighten-3{color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important}.bg-light-blue-lighten-2{color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important}.bg-light-blue-lighten-1{color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important}.bg-light-blue-darken-1{color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important}.bg-light-blue-darken-2{color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important}.bg-light-blue-darken-3{color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important}.bg-light-blue-darken-4{color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important}.bg-light-blue-accent-1{color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important}.bg-light-blue-accent-2{color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important}.bg-light-blue-accent-3{color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important}.bg-light-blue-accent-4{color:#fff!important}.bg-cyan{background-color:#00bcd4!important}.bg-cyan{color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important}.bg-cyan-lighten-5{color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important}.bg-cyan-lighten-4{color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important}.bg-cyan-lighten-3{color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important}.bg-cyan-lighten-2{color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important}.bg-cyan-lighten-1{color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important}.bg-cyan-darken-1{color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important}.bg-cyan-darken-2{color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important}.bg-cyan-darken-3{color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important}.bg-cyan-darken-4{color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important}.bg-cyan-accent-1{color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important}.bg-cyan-accent-2{color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important}.bg-cyan-accent-3{color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important}.bg-cyan-accent-4{color:#fff!important}.bg-teal{background-color:#009688!important}.bg-teal{color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important}.bg-teal-lighten-5{color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important}.bg-teal-lighten-4{color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important}.bg-teal-lighten-3{color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important}.bg-teal-lighten-2{color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important}.bg-teal-lighten-1{color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important}.bg-teal-darken-1{color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important}.bg-teal-darken-2{color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important}.bg-teal-darken-3{color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important}.bg-teal-darken-4{color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important}.bg-teal-accent-1{color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important}.bg-teal-accent-2{color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important}.bg-teal-accent-3{color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important}.bg-teal-accent-4{color:#fff!important}.bg-green{background-color:#4caf50!important}.bg-green{color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important}.bg-green-lighten-5{color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important}.bg-green-lighten-4{color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important}.bg-green-lighten-3{color:#000!important}.bg-green-lighten-2{background-color:#81c784!important}.bg-green-lighten-2{color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important}.bg-green-lighten-1{color:#fff!important}.bg-green-darken-1{background-color:#43a047!important}.bg-green-darken-1{color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important}.bg-green-darken-2{color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important}.bg-green-darken-3{color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important}.bg-green-darken-4{color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important}.bg-green-accent-1{color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important}.bg-green-accent-2{color:#000!important}.bg-green-accent-3{background-color:#00e676!important}.bg-green-accent-3{color:#000!important}.bg-green-accent-4{background-color:#00c853!important}.bg-green-accent-4{color:#000!important}.bg-light-green{background-color:#8bc34a!important}.bg-light-green{color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important}.bg-light-green-lighten-5{color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important}.bg-light-green-lighten-4{color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important}.bg-light-green-lighten-3{color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important}.bg-light-green-lighten-2{color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important}.bg-light-green-lighten-1{color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important}.bg-light-green-darken-1{color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important}.bg-light-green-darken-2{color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important}.bg-light-green-darken-3{color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important}.bg-light-green-darken-4{color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important}.bg-light-green-accent-1{color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important}.bg-light-green-accent-2{color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important}.bg-light-green-accent-3{color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important}.bg-light-green-accent-4{color:#000!important}.bg-lime{background-color:#cddc39!important}.bg-lime{color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important}.bg-lime-lighten-5{color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important}.bg-lime-lighten-4{color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important}.bg-lime-lighten-3{color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important}.bg-lime-lighten-2{color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important}.bg-lime-lighten-1{color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important}.bg-lime-darken-1{color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important}.bg-lime-darken-2{color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important}.bg-lime-darken-3{color:#fff!important}.bg-lime-darken-4{background-color:#827717!important}.bg-lime-darken-4{color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important}.bg-lime-accent-1{color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important}.bg-lime-accent-2{color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important}.bg-lime-accent-3{color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important}.bg-lime-accent-4{color:#000!important}.bg-yellow{background-color:#ffeb3b!important}.bg-yellow{color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important}.bg-yellow-lighten-5{color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important}.bg-yellow-lighten-4{color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important}.bg-yellow-lighten-3{color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important}.bg-yellow-lighten-2{color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important}.bg-yellow-lighten-1{color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important}.bg-yellow-darken-1{color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important}.bg-yellow-darken-2{color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important}.bg-yellow-darken-3{color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important}.bg-yellow-darken-4{color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important}.bg-yellow-accent-1{color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important}.bg-yellow-accent-2{color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important}.bg-yellow-accent-3{color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important}.bg-yellow-accent-4{color:#000!important}.bg-amber{background-color:#ffc107!important}.bg-amber{color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important}.bg-amber-lighten-5{color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important}.bg-amber-lighten-4{color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important}.bg-amber-lighten-3{color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important}.bg-amber-lighten-2{color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important}.bg-amber-lighten-1{color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important}.bg-amber-darken-1{color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important}.bg-amber-darken-2{color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important}.bg-amber-darken-3{color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important}.bg-amber-darken-4{color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important}.bg-amber-accent-1{color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important}.bg-amber-accent-2{color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important}.bg-amber-accent-3{color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important}.bg-amber-accent-4{color:#000!important}.bg-orange{background-color:#ff9800!important}.bg-orange{color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important}.bg-orange-lighten-5{color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important}.bg-orange-lighten-4{color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important}.bg-orange-lighten-3{color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important}.bg-orange-lighten-2{color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important}.bg-orange-lighten-1{color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important}.bg-orange-darken-1{color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important}.bg-orange-darken-2{color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important}.bg-orange-darken-3{color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important}.bg-orange-darken-4{color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important}.bg-orange-accent-1{color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important}.bg-orange-accent-2{color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important}.bg-orange-accent-3{color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important}.bg-orange-accent-4{color:#fff!important}.bg-deep-orange{background-color:#ff5722!important}.bg-deep-orange{color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important}.bg-deep-orange-lighten-5{color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important}.bg-deep-orange-lighten-4{color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important}.bg-deep-orange-lighten-3{color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important}.bg-deep-orange-lighten-2{color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important}.bg-deep-orange-lighten-1{color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important}.bg-deep-orange-darken-1{color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important}.bg-deep-orange-darken-2{color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important}.bg-deep-orange-darken-3{color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important}.bg-deep-orange-darken-4{color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important}.bg-deep-orange-accent-1{color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important}.bg-deep-orange-accent-2{color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important}.bg-deep-orange-accent-3{color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important}.bg-deep-orange-accent-4{color:#fff!important}.bg-brown{background-color:#795548!important}.bg-brown{color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important}.bg-brown-lighten-5{color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important}.bg-brown-lighten-4{color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important}.bg-brown-lighten-3{color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important}.bg-brown-lighten-2{color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important}.bg-brown-lighten-1{color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important}.bg-brown-darken-1{color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important}.bg-brown-darken-2{color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important}.bg-brown-darken-3{color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important}.bg-brown-darken-4{color:#fff!important}.bg-blue-grey{background-color:#607d8b!important}.bg-blue-grey{color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important}.bg-blue-grey-lighten-5{color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important}.bg-blue-grey-lighten-4{color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important}.bg-blue-grey-lighten-3{color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important}.bg-blue-grey-lighten-2{color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important}.bg-blue-grey-lighten-1{color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important}.bg-blue-grey-darken-1{color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important}.bg-blue-grey-darken-2{color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important}.bg-blue-grey-darken-3{color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important}.bg-blue-grey-darken-4{color:#fff!important}.bg-grey{background-color:#9e9e9e!important}.bg-grey{color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important}.bg-grey-lighten-5{color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important}.bg-grey-lighten-4{color:#000!important}.bg-grey-lighten-3{background-color:#eee!important}.bg-grey-lighten-3{color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important}.bg-grey-lighten-2{color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important}.bg-grey-lighten-1{color:#000!important}.bg-grey-darken-1{background-color:#757575!important}.bg-grey-darken-1{color:#fff!important}.bg-grey-darken-2{background-color:#616161!important}.bg-grey-darken-2{color:#fff!important}.bg-grey-darken-3{background-color:#424242!important}.bg-grey-darken-3{color:#fff!important}.bg-grey-darken-4{background-color:#212121!important}.bg-grey-darken-4{color:#fff!important}.bg-shades-black{background-color:#000!important}.bg-shades-black{color:#fff!important}.bg-shades-white{background-color:#fff!important}.bg-shades-white{color:#000!important}.bg-shades-transparent{background-color:transparent!important}.bg-shades-transparent{color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! * ress.css • v2.0.4 * MIT License * github.com/filipelinhares/ress diff --git a/zt_backend/dist_app/assets/index-de12265c.js b/zt_backend/dist_app/assets/index-fb670233.js similarity index 86% rename from zt_backend/dist_app/assets/index-de12265c.js rename to zt_backend/dist_app/assets/index-fb670233.js index 5827d5f1..7e1f15f9 100644 --- a/zt_backend/dist_app/assets/index-de12265c.js +++ b/zt_backend/dist_app/assets/index-fb670233.js @@ -1,20 +1,20 @@ -var VOe=Object.defineProperty;var UOe=(t,e,o)=>e in t?VOe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var _c=(t,e,o)=>(UOe(t,typeof e!="symbol"?e+"":e,o),o),jOe=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)};var Woe=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)};var gQ=(t,e,o)=>(jOe(t,e,"access private method"),o);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const P of document.querySelectorAll('link[rel="modulepreload"]'))f(P);new MutationObserver(P=>{for(const d of P)if(d.type==="childList")for(const l of d.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&f(l)}).observe(document,{childList:!0,subtree:!0});function o(P){const d={};return P.integrity&&(d.integrity=P.integrity),P.referrerPolicy&&(d.referrerPolicy=P.referrerPolicy),P.crossOrigin==="use-credentials"?d.credentials="include":P.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function f(P){if(P.ep)return;P.ep=!0;const d=o(P);fetch(P.href,d)}})();function D0e(t,e){return function(){return t.apply(e,arguments)}}const{toString:QOe}=Object.prototype,{getPrototypeOf:cle}=Object,RZ=(t=>e=>{const o=QOe.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),g_=t=>(t=t.toLowerCase(),e=>RZ(e)===t),LZ=t=>e=>typeof e===t,{isArray:OM}=Array,gI=LZ("undefined");function HOe(t){return t!==null&&!gI(t)&&t.constructor!==null&&!gI(t.constructor)&&Jy(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const B0e=g_("ArrayBuffer");function ZOe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&B0e(t.buffer),e}const qOe=LZ("string"),Jy=LZ("function"),z0e=LZ("number"),IZ=t=>t!==null&&typeof t=="object",WOe=t=>t===!0||t===!1,iH=t=>{if(RZ(t)!=="object")return!1;const e=cle(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},YOe=g_("Date"),XOe=g_("File"),GOe=g_("Blob"),KOe=g_("FileList"),JOe=t=>IZ(t)&&Jy(t.pipe),e3e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Jy(t.append)&&((e=RZ(t))==="formdata"||e==="object"&&Jy(t.toString)&&t.toString()==="[object FormData]"))},t3e=g_("URLSearchParams"),n3e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function aD(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let f,P;if(typeof t!="object"&&(t=[t]),OM(t))for(f=0,P=t.length;f0;)if(P=o[f],e===P.toLowerCase())return P;return null}const N0e=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$0e=t=>!gI(t)&&t!==N0e;function uae(){const{caseless:t}=$0e(this)&&this||{},e={},o=(f,P)=>{const d=t&&F0e(e,P)||P;iH(e[d])&&iH(f)?e[d]=uae(e[d],f):iH(f)?e[d]=uae({},f):OM(f)?e[d]=f.slice():e[d]=f};for(let f=0,P=arguments.length;f(aD(e,(P,d)=>{o&&Jy(P)?t[d]=D0e(P,o):t[d]=P},{allOwnKeys:f}),t),o3e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),i3e=(t,e,o,f)=>{t.prototype=Object.create(e.prototype,f),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},a3e=(t,e,o,f)=>{let P,d,l;const n={};if(e=e||{},t==null)return e;do{for(P=Object.getOwnPropertyNames(t),d=P.length;d-- >0;)l=P[d],(!f||f(l,t,e))&&!n[l]&&(e[l]=t[l],n[l]=!0);t=o!==!1&&cle(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},s3e=(t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;const f=t.indexOf(e,o);return f!==-1&&f===o},l3e=t=>{if(!t)return null;if(OM(t))return t;let e=t.length;if(!z0e(e))return null;const o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},c3e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&cle(Uint8Array)),u3e=(t,e)=>{const f=(t&&t[Symbol.iterator]).call(t);let P;for(;(P=f.next())&&!P.done;){const d=P.value;e.call(t,d[0],d[1])}},f3e=(t,e)=>{let o;const f=[];for(;(o=t.exec(e))!==null;)f.push(o);return f},d3e=g_("HTMLFormElement"),h3e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,f,P){return f.toUpperCase()+P}),ode=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),p3e=g_("RegExp"),V0e=(t,e)=>{const o=Object.getOwnPropertyDescriptors(t),f={};aD(o,(P,d)=>{let l;(l=e(P,d,t))!==!1&&(f[d]=l||P)}),Object.defineProperties(t,f)},m3e=t=>{V0e(t,(e,o)=>{if(Jy(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const f=t[o];if(Jy(f)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},g3e=(t,e)=>{const o={},f=P=>{P.forEach(d=>{o[d]=!0})};return OM(t)?f(t):f(String(t).split(e)),o},v3e=()=>{},y3e=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Yoe="abcdefghijklmnopqrstuvwxyz",ide="0123456789",U0e={DIGIT:ide,ALPHA:Yoe,ALPHA_DIGIT:Yoe+Yoe.toUpperCase()+ide},b3e=(t=16,e=U0e.ALPHA_DIGIT)=>{let o="";const{length:f}=e;for(;t--;)o+=e[Math.random()*f|0];return o};function x3e(t){return!!(t&&Jy(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const _3e=t=>{const e=new Array(10),o=(f,P)=>{if(IZ(f)){if(e.indexOf(f)>=0)return;if(!("toJSON"in f)){e[P]=f;const d=OM(f)?[]:{};return aD(f,(l,n)=>{const c=o(l,P+1);!gI(c)&&(d[n]=c)}),e[P]=void 0,d}}return f};return o(t,0)},w3e=g_("AsyncFunction"),O3e=t=>t&&(IZ(t)||Jy(t))&&Jy(t.then)&&Jy(t.catch),ui={isArray:OM,isArrayBuffer:B0e,isBuffer:HOe,isFormData:e3e,isArrayBufferView:ZOe,isString:qOe,isNumber:z0e,isBoolean:WOe,isObject:IZ,isPlainObject:iH,isUndefined:gI,isDate:YOe,isFile:XOe,isBlob:GOe,isRegExp:p3e,isFunction:Jy,isStream:JOe,isURLSearchParams:t3e,isTypedArray:c3e,isFileList:KOe,forEach:aD,merge:uae,extend:r3e,trim:n3e,stripBOM:o3e,inherits:i3e,toFlatObject:a3e,kindOf:RZ,kindOfTest:g_,endsWith:s3e,toArray:l3e,forEachEntry:u3e,matchAll:f3e,isHTMLForm:d3e,hasOwnProperty:ode,hasOwnProp:ode,reduceDescriptors:V0e,freezeMethods:m3e,toObjectSet:g3e,toCamelCase:h3e,noop:v3e,toFiniteNumber:y3e,findKey:F0e,global:N0e,isContextDefined:$0e,ALPHABET:U0e,generateString:b3e,isSpecCompliantForm:x3e,toJSONObject:_3e,isAsyncFn:w3e,isThenable:O3e};function Ic(t,e,o,f,P){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),f&&(this.request=f),P&&(this.response=P)}ui.inherits(Ic,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ui.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const j0e=Ic.prototype,Q0e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Q0e[t]={value:t}});Object.defineProperties(Ic,Q0e);Object.defineProperty(j0e,"isAxiosError",{value:!0});Ic.from=(t,e,o,f,P,d)=>{const l=Object.create(j0e);return ui.toFlatObject(t,l,function(c){return c!==Error.prototype},n=>n!=="isAxiosError"),Ic.call(l,t.message,e,o,f,P),l.cause=t,l.name=t.name,d&&Object.assign(l,d),l};const S3e=null;function fae(t){return ui.isPlainObject(t)||ui.isArray(t)}function H0e(t){return ui.endsWith(t,"[]")?t.slice(0,-2):t}function ade(t,e,o){return t?t.concat(e).map(function(P,d){return P=H0e(P),!o&&d?"["+P+"]":P}).join(o?".":""):e}function k3e(t){return ui.isArray(t)&&!t.some(fae)}const T3e=ui.toFlatObject(ui,{},null,function(e){return/^is[A-Z]/.test(e)});function DZ(t,e,o){if(!ui.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,o=ui.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,u){return!ui.isUndefined(u[a])});const f=o.metaTokens,P=o.visitor||i,d=o.dots,l=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&ui.isSpecCompliantForm(e);if(!ui.isFunction(P))throw new TypeError("visitor must be a function");function b(p){if(p===null)return"";if(ui.isDate(p))return p.toISOString();if(!c&&ui.isBlob(p))throw new Ic("Blob is not supported. Use a Buffer instead.");return ui.isArrayBuffer(p)||ui.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function i(p,a,u){let h=p;if(p&&!u&&typeof p=="object"){if(ui.endsWith(a,"{}"))a=f?a:a.slice(0,-2),p=JSON.stringify(p);else if(ui.isArray(p)&&k3e(p)||(ui.isFileList(p)||ui.endsWith(a,"[]"))&&(h=ui.toArray(p)))return a=H0e(a),h.forEach(function(v,_){!(ui.isUndefined(v)||v===null)&&e.append(l===!0?ade([a],_,d):l===null?a:a+"[]",b(v))}),!1}return fae(p)?!0:(e.append(ade(u,a,d),b(p)),!1)}const O=[],w=Object.assign(T3e,{defaultVisitor:i,convertValue:b,isVisitable:fae});function y(p,a){if(!ui.isUndefined(p)){if(O.indexOf(p)!==-1)throw Error("Circular reference detected in "+a.join("."));O.push(p),ui.forEach(p,function(h,m){(!(ui.isUndefined(h)||h===null)&&P.call(e,h,ui.isString(m)?m.trim():m,a,w))===!0&&y(h,a?a.concat(m):[m])}),O.pop()}}if(!ui.isObject(t))throw new TypeError("data must be an object");return y(t),e}function sde(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(f){return e[f]})}function ule(t,e){this._pairs=[],t&&DZ(t,this,e)}const Z0e=ule.prototype;Z0e.append=function(e,o){this._pairs.push([e,o])};Z0e.toString=function(e){const o=e?function(f){return e.call(this,f,sde)}:sde;return this._pairs.map(function(P){return o(P[0])+"="+o(P[1])},"").join("&")};function C3e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function q0e(t,e,o){if(!e)return t;const f=o&&o.encode||C3e,P=o&&o.serialize;let d;if(P?d=P(e,o):d=ui.isURLSearchParams(e)?e.toString():new ule(e,o).toString(f),d){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+d}return t}class A3e{constructor(){this.handlers=[]}use(e,o,f){return this.handlers.push({fulfilled:e,rejected:o,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ui.forEach(this.handlers,function(f){f!==null&&e(f)})}}const lde=A3e,W0e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},M3e=typeof URLSearchParams<"u"?URLSearchParams:ule,E3e=typeof FormData<"u"?FormData:null,P3e=typeof Blob<"u"?Blob:null,R3e={isBrowser:!0,classes:{URLSearchParams:M3e,FormData:E3e,Blob:P3e},protocols:["http","https","file","blob","url","data"]},Y0e=typeof window<"u"&&typeof document<"u",L3e=(t=>Y0e&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),I3e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),D3e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Y0e,hasStandardBrowserEnv:L3e,hasStandardBrowserWebWorkerEnv:I3e},Symbol.toStringTag,{value:"Module"})),o_={...D3e,...R3e};function B3e(t,e){return DZ(t,new o_.classes.URLSearchParams,Object.assign({visitor:function(o,f,P,d){return o_.isNode&&ui.isBuffer(o)?(this.append(f,o.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},e))}function z3e(t){return ui.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function F3e(t){const e={},o=Object.keys(t);let f;const P=o.length;let d;for(f=0;f=o.length;return l=!l&&ui.isArray(P)?P.length:l,c?(ui.hasOwnProp(P,l)?P[l]=[P[l],f]:P[l]=f,!n):((!P[l]||!ui.isObject(P[l]))&&(P[l]=[]),e(o,f,P[l],d)&&ui.isArray(P[l])&&(P[l]=F3e(P[l])),!n)}if(ui.isFormData(t)&&ui.isFunction(t.entries)){const o={};return ui.forEachEntry(t,(f,P)=>{e(z3e(f),P,o,0)}),o}return null}function N3e(t,e,o){if(ui.isString(t))try{return(e||JSON.parse)(t),ui.trim(t)}catch(f){if(f.name!=="SyntaxError")throw f}return(o||JSON.stringify)(t)}const fle={transitional:W0e,adapter:["xhr","http"],transformRequest:[function(e,o){const f=o.getContentType()||"",P=f.indexOf("application/json")>-1,d=ui.isObject(e);if(d&&ui.isHTMLForm(e)&&(e=new FormData(e)),ui.isFormData(e))return P&&P?JSON.stringify(X0e(e)):e;if(ui.isArrayBuffer(e)||ui.isBuffer(e)||ui.isStream(e)||ui.isFile(e)||ui.isBlob(e))return e;if(ui.isArrayBufferView(e))return e.buffer;if(ui.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(d){if(f.indexOf("application/x-www-form-urlencoded")>-1)return B3e(e,this.formSerializer).toString();if((n=ui.isFileList(e))||f.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return DZ(n?{"files[]":e}:e,c&&new c,this.formSerializer)}}return d||P?(o.setContentType("application/json",!1),N3e(e)):e}],transformResponse:[function(e){const o=this.transitional||fle.transitional,f=o&&o.forcedJSONParsing,P=this.responseType==="json";if(e&&ui.isString(e)&&(f&&!this.responseType||P)){const l=!(o&&o.silentJSONParsing)&&P;try{return JSON.parse(e)}catch(n){if(l)throw n.name==="SyntaxError"?Ic.from(n,Ic.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:o_.classes.FormData,Blob:o_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ui.forEach(["delete","get","head","post","put","patch"],t=>{fle.headers[t]={}});const dle=fle,$3e=ui.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),V3e=t=>{const e={};let o,f,P;return t&&t.split(` -`).forEach(function(l){P=l.indexOf(":"),o=l.substring(0,P).trim().toLowerCase(),f=l.substring(P+1).trim(),!(!o||e[o]&&$3e[o])&&(o==="set-cookie"?e[o]?e[o].push(f):e[o]=[f]:e[o]=e[o]?e[o]+", "+f:f)}),e},cde=Symbol("internals");function ML(t){return t&&String(t).trim().toLowerCase()}function aH(t){return t===!1||t==null?t:ui.isArray(t)?t.map(aH):String(t)}function U3e(t){const e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let f;for(;f=o.exec(t);)e[f[1]]=f[2];return e}const j3e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xoe(t,e,o,f,P){if(ui.isFunction(f))return f.call(this,e,o);if(P&&(e=o),!!ui.isString(e)){if(ui.isString(f))return e.indexOf(f)!==-1;if(ui.isRegExp(f))return f.test(e)}}function Q3e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,f)=>o.toUpperCase()+f)}function H3e(t,e){const o=ui.toCamelCase(" "+e);["get","set","has"].forEach(f=>{Object.defineProperty(t,f+o,{value:function(P,d,l){return this[f].call(this,e,P,d,l)},configurable:!0})})}class BZ{constructor(e){e&&this.set(e)}set(e,o,f){const P=this;function d(n,c,b){const i=ML(c);if(!i)throw new Error("header name must be a non-empty string");const O=ui.findKey(P,i);(!O||P[O]===void 0||b===!0||b===void 0&&P[O]!==!1)&&(P[O||c]=aH(n))}const l=(n,c)=>ui.forEach(n,(b,i)=>d(b,i,c));return ui.isPlainObject(e)||e instanceof this.constructor?l(e,o):ui.isString(e)&&(e=e.trim())&&!j3e(e)?l(V3e(e),o):e!=null&&d(o,e,f),this}get(e,o){if(e=ML(e),e){const f=ui.findKey(this,e);if(f){const P=this[f];if(!o)return P;if(o===!0)return U3e(P);if(ui.isFunction(o))return o.call(this,P,f);if(ui.isRegExp(o))return o.exec(P);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=ML(e),e){const f=ui.findKey(this,e);return!!(f&&this[f]!==void 0&&(!o||Xoe(this,this[f],f,o)))}return!1}delete(e,o){const f=this;let P=!1;function d(l){if(l=ML(l),l){const n=ui.findKey(f,l);n&&(!o||Xoe(f,f[n],n,o))&&(delete f[n],P=!0)}}return ui.isArray(e)?e.forEach(d):d(e),P}clear(e){const o=Object.keys(this);let f=o.length,P=!1;for(;f--;){const d=o[f];(!e||Xoe(this,this[d],d,e,!0))&&(delete this[d],P=!0)}return P}normalize(e){const o=this,f={};return ui.forEach(this,(P,d)=>{const l=ui.findKey(f,d);if(l){o[l]=aH(P),delete o[d];return}const n=e?Q3e(d):String(d).trim();n!==d&&delete o[d],o[n]=aH(P),f[n]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const o=Object.create(null);return ui.forEach(this,(f,P)=>{f!=null&&f!==!1&&(o[P]=e&&ui.isArray(f)?f.join(", "):f)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const f=new this(e);return o.forEach(P=>f.set(P)),f}static accessor(e){const f=(this[cde]=this[cde]={accessors:{}}).accessors,P=this.prototype;function d(l){const n=ML(l);f[n]||(H3e(P,l),f[n]=!0)}return ui.isArray(e)?e.forEach(d):d(e),this}}BZ.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ui.reduceDescriptors(BZ.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(f){this[o]=f}}});ui.freezeMethods(BZ);const wO=BZ;function Goe(t,e){const o=this||dle,f=e||o,P=wO.from(f.headers);let d=f.data;return ui.forEach(t,function(n){d=n.call(o,d,P.normalize(),e?e.status:void 0)}),P.normalize(),d}function G0e(t){return!!(t&&t.__CANCEL__)}function sD(t,e,o){Ic.call(this,t??"canceled",Ic.ERR_CANCELED,e,o),this.name="CanceledError"}ui.inherits(sD,Ic,{__CANCEL__:!0});function Z3e(t,e,o){const f=o.config.validateStatus;!o.status||!f||f(o.status)?t(o):e(new Ic("Request failed with status code "+o.status,[Ic.ERR_BAD_REQUEST,Ic.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const q3e=o_.hasStandardBrowserEnv?{write(t,e,o,f,P,d){const l=[t+"="+encodeURIComponent(e)];ui.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),ui.isString(f)&&l.push("path="+f),ui.isString(P)&&l.push("domain="+P),d===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function W3e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Y3e(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function K0e(t,e){return t&&!W3e(e)?Y3e(t,e):e}const X3e=o_.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let f;function P(d){let l=d;return e&&(o.setAttribute("href",l),l=o.href),o.setAttribute("href",l),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return f=P(window.location.href),function(l){const n=ui.isString(l)?P(l):l;return n.protocol===f.protocol&&n.host===f.host}}():function(){return function(){return!0}}();function G3e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function K3e(t,e){t=t||10;const o=new Array(t),f=new Array(t);let P=0,d=0,l;return e=e!==void 0?e:1e3,function(c){const b=Date.now(),i=f[d];l||(l=b),o[P]=c,f[P]=b;let O=d,w=0;for(;O!==P;)w+=o[O++],O=O%t;if(P=(P+1)%t,P===d&&(d=(d+1)%t),b-l{const d=P.loaded,l=P.lengthComputable?P.total:void 0,n=d-o,c=f(n),b=d<=l;o=d;const i={loaded:d,total:l,progress:l?d/l:void 0,bytes:n,rate:c||void 0,estimated:c&&l&&b?(l-d)/c:void 0,event:P};i[e?"download":"upload"]=!0,t(i)}}const J3e=typeof XMLHttpRequest<"u",e4e=J3e&&function(t){return new Promise(function(o,f){let P=t.data;const d=wO.from(t.headers).normalize();let{responseType:l,withXSRFToken:n}=t,c;function b(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}let i;if(ui.isFormData(P)){if(o_.hasStandardBrowserEnv||o_.hasStandardBrowserWebWorkerEnv)d.setContentType(!1);else if((i=d.getContentType())!==!1){const[a,...u]=i?i.split(";").map(h=>h.trim()).filter(Boolean):[];d.setContentType([a||"multipart/form-data",...u].join("; "))}}let O=new XMLHttpRequest;if(t.auth){const a=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.set("Authorization","Basic "+btoa(a+":"+u))}const w=K0e(t.baseURL,t.url);O.open(t.method.toUpperCase(),q0e(w,t.params,t.paramsSerializer),!0),O.timeout=t.timeout;function y(){if(!O)return;const a=wO.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),h={data:!l||l==="text"||l==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:a,config:t,request:O};Z3e(function(v){o(v),b()},function(v){f(v),b()},h),O=null}if("onloadend"in O?O.onloadend=y:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(y)},O.onabort=function(){O&&(f(new Ic("Request aborted",Ic.ECONNABORTED,t,O)),O=null)},O.onerror=function(){f(new Ic("Network Error",Ic.ERR_NETWORK,t,O)),O=null},O.ontimeout=function(){let u=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const h=t.transitional||W0e;t.timeoutErrorMessage&&(u=t.timeoutErrorMessage),f(new Ic(u,h.clarifyTimeoutError?Ic.ETIMEDOUT:Ic.ECONNABORTED,t,O)),O=null},o_.hasStandardBrowserEnv&&(n&&ui.isFunction(n)&&(n=n(t)),n||n!==!1&&X3e(w))){const a=t.xsrfHeaderName&&t.xsrfCookieName&&q3e.read(t.xsrfCookieName);a&&d.set(t.xsrfHeaderName,a)}P===void 0&&d.setContentType(null),"setRequestHeader"in O&&ui.forEach(d.toJSON(),function(u,h){O.setRequestHeader(h,u)}),ui.isUndefined(t.withCredentials)||(O.withCredentials=!!t.withCredentials),l&&l!=="json"&&(O.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&O.addEventListener("progress",ude(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&O.upload&&O.upload.addEventListener("progress",ude(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=a=>{O&&(f(!a||a.type?new sD(null,t,O):a),O.abort(),O=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));const p=G3e(w);if(p&&o_.protocols.indexOf(p)===-1){f(new Ic("Unsupported protocol "+p+":",Ic.ERR_BAD_REQUEST,t));return}O.send(P||null)})},dae={http:S3e,xhr:e4e};ui.forEach(dae,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const fde=t=>`- ${t}`,t4e=t=>ui.isFunction(t)||t===null||t===!1,J0e={getAdapter:t=>{t=ui.isArray(t)?t:[t];const{length:e}=t;let o,f;const P={};for(let d=0;d`adapter ${n} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=e?d.length>1?`since : -`+d.map(fde).join(` -`):" "+fde(d[0]):"as no adapter specified";throw new Ic("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return f},adapters:dae};function Koe(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new sD(null,t)}function dde(t){return Koe(t),t.headers=wO.from(t.headers),t.data=Goe.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),J0e.getAdapter(t.adapter||dle.adapter)(t).then(function(f){return Koe(t),f.data=Goe.call(t,t.transformResponse,f),f.headers=wO.from(f.headers),f},function(f){return G0e(f)||(Koe(t),f&&f.response&&(f.response.data=Goe.call(t,t.transformResponse,f.response),f.response.headers=wO.from(f.response.headers))),Promise.reject(f)})}const hde=t=>t instanceof wO?t.toJSON():t;function nM(t,e){e=e||{};const o={};function f(b,i,O){return ui.isPlainObject(b)&&ui.isPlainObject(i)?ui.merge.call({caseless:O},b,i):ui.isPlainObject(i)?ui.merge({},i):ui.isArray(i)?i.slice():i}function P(b,i,O){if(ui.isUndefined(i)){if(!ui.isUndefined(b))return f(void 0,b,O)}else return f(b,i,O)}function d(b,i){if(!ui.isUndefined(i))return f(void 0,i)}function l(b,i){if(ui.isUndefined(i)){if(!ui.isUndefined(b))return f(void 0,b)}else return f(void 0,i)}function n(b,i,O){if(O in e)return f(b,i);if(O in t)return f(void 0,b)}const c={url:d,method:d,data:d,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(b,i)=>P(hde(b),hde(i),!0)};return ui.forEach(Object.keys(Object.assign({},t,e)),function(i){const O=c[i]||P,w=O(t[i],e[i],i);ui.isUndefined(w)&&O!==n||(o[i]=w)}),o}const e1e="1.6.2",hle={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{hle[t]=function(f){return typeof f===t||"a"+(e<1?"n ":" ")+t}});const pde={};hle.transitional=function(e,o,f){function P(d,l){return"[Axios v"+e1e+"] Transitional option '"+d+"'"+l+(f?". "+f:"")}return(d,l,n)=>{if(e===!1)throw new Ic(P(l," has been removed"+(o?" in "+o:"")),Ic.ERR_DEPRECATED);return o&&!pde[l]&&(pde[l]=!0,console.warn(P(l," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(d,l,n):!0}};function n4e(t,e,o){if(typeof t!="object")throw new Ic("options must be an object",Ic.ERR_BAD_OPTION_VALUE);const f=Object.keys(t);let P=f.length;for(;P-- >0;){const d=f[P],l=e[d];if(l){const n=t[d],c=n===void 0||l(n,d,t);if(c!==!0)throw new Ic("option "+d+" must be "+c,Ic.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new Ic("Unknown option "+d,Ic.ERR_BAD_OPTION)}}const hae={assertOptions:n4e,validators:hle},I4=hae.validators;class MH{constructor(e){this.defaults=e,this.interceptors={request:new lde,response:new lde}}request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=nM(this.defaults,o);const{transitional:f,paramsSerializer:P,headers:d}=o;f!==void 0&&hae.assertOptions(f,{silentJSONParsing:I4.transitional(I4.boolean),forcedJSONParsing:I4.transitional(I4.boolean),clarifyTimeoutError:I4.transitional(I4.boolean)},!1),P!=null&&(ui.isFunction(P)?o.paramsSerializer={serialize:P}:hae.assertOptions(P,{encode:I4.function,serialize:I4.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let l=d&&ui.merge(d.common,d[o.method]);d&&ui.forEach(["delete","get","head","post","put","patch","common"],p=>{delete d[p]}),o.headers=wO.concat(l,d);const n=[];let c=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(o)===!1||(c=c&&a.synchronous,n.unshift(a.fulfilled,a.rejected))});const b=[];this.interceptors.response.forEach(function(a){b.push(a.fulfilled,a.rejected)});let i,O=0,w;if(!c){const p=[dde.bind(this),void 0];for(p.unshift.apply(p,n),p.push.apply(p,b),w=p.length,i=Promise.resolve(o);O{if(!f._listeners)return;let d=f._listeners.length;for(;d-- >0;)f._listeners[d](P);f._listeners=null}),this.promise.then=P=>{let d;const l=new Promise(n=>{f.subscribe(n),d=n}).then(P);return l.cancel=function(){f.unsubscribe(d)},l},e(function(d,l,n){f.reason||(f.reason=new sD(d,l,n),o(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}static source(){let e;return{token:new ple(function(P){e=P}),cancel:e}}}const r4e=ple;function o4e(t){return function(o){return t.apply(null,o)}}function i4e(t){return ui.isObject(t)&&t.isAxiosError===!0}const pae={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pae).forEach(([t,e])=>{pae[e]=t});const a4e=pae;function t1e(t){const e=new sH(t),o=D0e(sH.prototype.request,e);return ui.extend(o,sH.prototype,e,{allOwnKeys:!0}),ui.extend(o,e,null,{allOwnKeys:!0}),o.create=function(P){return t1e(nM(t,P))},o}const Jh=t1e(dle);Jh.Axios=sH;Jh.CanceledError=sD;Jh.CancelToken=r4e;Jh.isCancel=G0e;Jh.VERSION=e1e;Jh.toFormData=DZ;Jh.AxiosError=Ic;Jh.Cancel=Jh.CanceledError;Jh.all=function(e){return Promise.all(e)};Jh.spread=o4e;Jh.isAxiosError=i4e;Jh.mergeConfig=nM;Jh.AxiosHeaders=wO;Jh.formToJSON=t=>X0e(ui.isHTMLForm(t)?new FormData(t):t);Jh.getAdapter=J0e.getAdapter;Jh.HttpStatusCode=a4e;Jh.default=Jh;const fu=Jh;function mle(t,e){const o=Object.create(null),f=t.split(",");for(let P=0;P!!o[P.toLowerCase()]:P=>!!o[P]}const od={},HA=[],vx=()=>{},s4e=()=>!1,l4e=/^on[^a-z]/,zZ=t=>l4e.test(t),gle=t=>t.startsWith("onUpdate:"),Nh=Object.assign,vle=(t,e)=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)},c4e=Object.prototype.hasOwnProperty,Zc=(t,e)=>c4e.call(t,e),bs=Array.isArray,ZA=t=>FZ(t)==="[object Map]",n1e=t=>FZ(t)==="[object Set]",ll=t=>typeof t=="function",hh=t=>typeof t=="string",yle=t=>typeof t=="symbol",zf=t=>t!==null&&typeof t=="object",r1e=t=>zf(t)&&ll(t.then)&&ll(t.catch),o1e=Object.prototype.toString,FZ=t=>o1e.call(t),u4e=t=>FZ(t).slice(8,-1),i1e=t=>FZ(t)==="[object Object]",ble=t=>hh(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,lH=mle(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),NZ=t=>{const e=Object.create(null);return o=>e[o]||(e[o]=t(o))},f4e=/-(\w)/g,rb=NZ(t=>t.replace(f4e,(e,o)=>o?o.toUpperCase():"")),d4e=/\B([A-Z])/g,xT=NZ(t=>t.replace(d4e,"-$1").toLowerCase()),v_=NZ(t=>t.charAt(0).toUpperCase()+t.slice(1)),eI=NZ(t=>t?`on${v_(t)}`:""),vI=(t,e)=>!Object.is(t,e),cH=(t,e)=>{for(let o=0;o{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:o})},mae=t=>{const e=parseFloat(t);return isNaN(e)?t:e},a1e=t=>{const e=hh(t)?Number(t):NaN;return isNaN(e)?t:e};let mde;const gae=()=>mde||(mde=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lD(t){if(bs(t)){const e={};for(let o=0;o{if(o){const f=o.split(p4e);f.length>1&&(e[f[0].trim()]=f[1].trim())}}),e}function zv(t){let e="";if(hh(t))e=t;else if(bs(t))for(let o=0;ohh(t)?t:t==null?"":bs(t)||zf(t)&&(t.toString===o1e||!ll(t.toString))?JSON.stringify(t,l1e,2):String(t),l1e=(t,e)=>e&&e.__v_isRef?l1e(t,e.value):ZA(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((o,[f,P])=>(o[`${f} =>`]=P,o),{})}:n1e(e)?{[`Set(${e.size})`]:[...e.values()]}:zf(e)&&!bs(e)&&!i1e(e)?String(e):e;let Ev;class c1e{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ev,!e&&Ev&&(this.index=(Ev.scopes||(Ev.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const o=Ev;try{return Ev=this,e()}finally{Ev=o}}}on(){Ev=this}off(){Ev=this.parent}stop(e){if(this._active){let o,f;for(o=0,f=this.effects.length;o{const e=new Set(t);return e.w=0,e.n=0,e},f1e=t=>(t.w&nS)>0,d1e=t=>(t.n&nS)>0,x4e=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let o=0;for(let f=0;f{(i==="length"||i>=c)&&n.push(b)})}else switch(o!==void 0&&n.push(l.get(o)),e){case"add":bs(t)?ble(o)&&n.push(l.get("length")):(n.push(l.get(cT)),ZA(t)&&n.push(l.get(yae)));break;case"delete":bs(t)||(n.push(l.get(cT)),ZA(t)&&n.push(l.get(yae)));break;case"set":ZA(t)&&n.push(l.get(cT));break}if(n.length===1)n[0]&&bae(n[0]);else{const c=[];for(const b of n)b&&c.push(...b);bae(xle(c))}}function bae(t,e){const o=bs(t)?t:[...t];for(const f of o)f.computed&&vde(f);for(const f of o)f.computed||vde(f)}function vde(t,e){(t!==gx||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function w4e(t,e){var o;return(o=PH.get(t))==null?void 0:o.get(e)}const O4e=mle("__proto__,__v_isRef,__isVue"),m1e=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(yle)),S4e=wle(),k4e=wle(!1,!0),T4e=wle(!0),yde=C4e();function C4e(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...o){const f=As(this);for(let d=0,l=this.length;d{t[e]=function(...o){SM();const f=As(this)[e].apply(this,o);return kM(),f}}),t}function A4e(t){const e=As(this);return _1(e,"has",t),e.hasOwnProperty(t)}function wle(t=!1,e=!1){return function(f,P,d){if(P==="__v_isReactive")return!t;if(P==="__v_isReadonly")return t;if(P==="__v_isShallow")return e;if(P==="__v_raw"&&d===(t?e?Q4e:x1e:e?b1e:y1e).get(f))return f;const l=bs(f);if(!t){if(l&&Zc(yde,P))return Reflect.get(yde,P,d);if(P==="hasOwnProperty")return A4e}const n=Reflect.get(f,P,d);return(yle(P)?m1e.has(P):O4e(P))||(t||_1(f,"get",P),e)?n:Dc(n)?l&&ble(P)?n:n.value:zf(n)?t?TM(n):lm(n):n}}const M4e=g1e(),E4e=g1e(!0);function g1e(t=!1){return function(o,f,P,d){let l=o[f];if(rM(l)&&Dc(l)&&!Dc(P))return!1;if(!t&&(!RH(P)&&!rM(P)&&(l=As(l),P=As(P)),!bs(o)&&Dc(l)&&!Dc(P)))return l.value=P,!0;const n=bs(o)&&ble(f)?Number(f)t,$Z=t=>Reflect.getPrototypeOf(t);function vQ(t,e,o=!1,f=!1){t=t.__v_raw;const P=As(t),d=As(e);o||(e!==d&&_1(P,"get",e),_1(P,"get",d));const{has:l}=$Z(P),n=f?Ole:o?Tle:yI;if(l.call(P,e))return n(t.get(e));if(l.call(P,d))return n(t.get(d));t!==P&&t.get(e)}function yQ(t,e=!1){const o=this.__v_raw,f=As(o),P=As(t);return e||(t!==P&&_1(f,"has",t),_1(f,"has",P)),t===P?o.has(t):o.has(t)||o.has(P)}function bQ(t,e=!1){return t=t.__v_raw,!e&&_1(As(t),"iterate",cT),Reflect.get(t,"size",t)}function bde(t){t=As(t);const e=As(this);return $Z(e).has.call(e,t)||(e.add(t),kO(e,"add",t,t)),this}function xde(t,e){e=As(e);const o=As(this),{has:f,get:P}=$Z(o);let d=f.call(o,t);d||(t=As(t),d=f.call(o,t));const l=P.call(o,t);return o.set(t,e),d?vI(e,l)&&kO(o,"set",t,e):kO(o,"add",t,e),this}function _de(t){const e=As(this),{has:o,get:f}=$Z(e);let P=o.call(e,t);P||(t=As(t),P=o.call(e,t)),f&&f.call(e,t);const d=e.delete(t);return P&&kO(e,"delete",t,void 0),d}function wde(){const t=As(this),e=t.size!==0,o=t.clear();return e&&kO(t,"clear",void 0,void 0),o}function xQ(t,e){return function(f,P){const d=this,l=d.__v_raw,n=As(l),c=e?Ole:t?Tle:yI;return!t&&_1(n,"iterate",cT),l.forEach((b,i)=>f.call(P,c(b),c(i),d))}}function _Q(t,e,o){return function(...f){const P=this.__v_raw,d=As(P),l=ZA(d),n=t==="entries"||t===Symbol.iterator&&l,c=t==="keys"&&l,b=P[t](...f),i=o?Ole:e?Tle:yI;return!e&&_1(d,"iterate",c?yae:cT),{next(){const{value:O,done:w}=b.next();return w?{value:O,done:w}:{value:n?[i(O[0]),i(O[1])]:i(O),done:w}},[Symbol.iterator](){return this}}}}function D4(t){return function(...e){return t==="delete"?!1:this}}function B4e(){const t={get(d){return vQ(this,d)},get size(){return bQ(this)},has:yQ,add:bde,set:xde,delete:_de,clear:wde,forEach:xQ(!1,!1)},e={get(d){return vQ(this,d,!1,!0)},get size(){return bQ(this)},has:yQ,add:bde,set:xde,delete:_de,clear:wde,forEach:xQ(!1,!0)},o={get(d){return vQ(this,d,!0)},get size(){return bQ(this,!0)},has(d){return yQ.call(this,d,!0)},add:D4("add"),set:D4("set"),delete:D4("delete"),clear:D4("clear"),forEach:xQ(!0,!1)},f={get(d){return vQ(this,d,!0,!0)},get size(){return bQ(this,!0)},has(d){return yQ.call(this,d,!0)},add:D4("add"),set:D4("set"),delete:D4("delete"),clear:D4("clear"),forEach:xQ(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(d=>{t[d]=_Q(d,!1,!1),o[d]=_Q(d,!0,!1),e[d]=_Q(d,!1,!0),f[d]=_Q(d,!0,!0)}),[t,o,e,f]}const[z4e,F4e,N4e,$4e]=B4e();function Sle(t,e){const o=e?t?$4e:N4e:t?F4e:z4e;return(f,P,d)=>P==="__v_isReactive"?!t:P==="__v_isReadonly"?t:P==="__v_raw"?f:Reflect.get(Zc(o,P)&&P in f?o:f,P,d)}const V4e={get:Sle(!1,!1)},U4e={get:Sle(!1,!0)},j4e={get:Sle(!0,!1)},y1e=new WeakMap,b1e=new WeakMap,x1e=new WeakMap,Q4e=new WeakMap;function H4e(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Z4e(t){return t.__v_skip||!Object.isExtensible(t)?0:H4e(u4e(t))}function lm(t){return rM(t)?t:kle(t,!1,v1e,V4e,y1e)}function _1e(t){return kle(t,!1,D4e,U4e,b1e)}function TM(t){return kle(t,!0,I4e,j4e,x1e)}function kle(t,e,o,f,P){if(!zf(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const d=P.get(t);if(d)return d;const l=Z4e(t);if(l===0)return t;const n=new Proxy(t,l===2?f:o);return P.set(t,n),n}function OO(t){return rM(t)?OO(t.__v_raw):!!(t&&t.__v_isReactive)}function rM(t){return!!(t&&t.__v_isReadonly)}function RH(t){return!!(t&&t.__v_isShallow)}function w1e(t){return OO(t)||rM(t)}function As(t){const e=t&&t.__v_raw;return e?As(e):t}function uD(t){return EH(t,"__v_skip",!0),t}const yI=t=>zf(t)?lm(t):t,Tle=t=>zf(t)?TM(t):t;function O1e(t){G4&&gx&&(t=As(t),p1e(t.dep||(t.dep=xle())))}function S1e(t,e){t=As(t);const o=t.dep;o&&bae(o)}function Dc(t){return!!(t&&t.__v_isRef===!0)}function ei(t){return k1e(t,!1)}function Ai(t){return k1e(t,!0)}function k1e(t,e){return Dc(t)?t:new q4e(t,e)}class q4e{constructor(e,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?e:As(e),this._value=o?e:yI(e)}get value(){return O1e(this),this._value}set value(e){const o=this.__v_isShallow||RH(e)||rM(e);e=o?e:As(e),vI(e,this._rawValue)&&(this._rawValue=e,this._value=o?e:yI(e),S1e(this))}}function wa(t){return Dc(t)?t.value:t}const W4e={get:(t,e,o)=>wa(Reflect.get(t,e,o)),set:(t,e,o,f)=>{const P=t[e];return Dc(P)&&!Dc(o)?(P.value=o,!0):Reflect.set(t,e,o,f)}};function T1e(t){return OO(t)?t:new Proxy(t,W4e)}function CM(t){const e=bs(t)?new Array(t.length):{};for(const o in t)e[o]=C1e(t,o);return e}class Y4e{constructor(e,o,f){this._object=e,this._key=o,this._defaultValue=f,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return w4e(As(this._object),this._key)}}class X4e{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Oi(t,e,o){return Dc(t)?t:ll(t)?new X4e(t):zf(t)&&arguments.length>1?C1e(t,e,o):ei(t)}function C1e(t,e,o){const f=t[e];return Dc(f)?f:new Y4e(t,e,o)}class G4e{constructor(e,o,f,P){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new _le(e,()=>{this._dirty||(this._dirty=!0,S1e(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!P,this.__v_isReadonly=f}get value(){const e=As(this);return O1e(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function K4e(t,e,o=!1){let f,P;const d=ll(t);return d?(f=t,P=vx):(f=t.get,P=t.set),new G4e(f,P,d||!P,o)}function K4(t,e,o,f){let P;try{P=f?t(...f):t()}catch(d){fD(d,e,o)}return P}function eb(t,e,o,f){if(ll(t)){const d=K4(t,e,o,f);return d&&r1e(d)&&d.catch(l=>{fD(l,e,o)}),d}const P=[];for(let d=0;d>>1;xI(Ng[f])e_&&Ng.splice(e,1)}function E1e(t){bs(t)?qA.push(...t):(!xO||!xO.includes(t,t.allowRecurse?Jk+1:Jk))&&qA.push(t),M1e()}function Ode(t,e=bI?e_+1:0){for(;exI(o)-xI(f)),Jk=0;Jkt.id==null?1/0:t.id,nSe=(t,e)=>{const o=xI(t)-xI(e);if(o===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return o};function R1e(t){xae=!1,bI=!0,Ng.sort(nSe);const e=vx;try{for(e_=0;e_hh(y)?y.trim():y)),O&&(P=o.map(mae))}let n,c=f[n=eI(e)]||f[n=eI(rb(e))];!c&&d&&(c=f[n=eI(xT(e))]),c&&eb(c,t,6,P);const b=f[n+"Once"];if(b){if(!t.emitted)t.emitted={};else if(t.emitted[n])return;t.emitted[n]=!0,eb(b,t,6,P)}}function L1e(t,e,o=!1){const f=e.emitsCache,P=f.get(t);if(P!==void 0)return P;const d=t.emits;let l={},n=!1;if(!ll(t)){const c=b=>{const i=L1e(b,e,!0);i&&(n=!0,Nh(l,i))};!o&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!d&&!n?(zf(t)&&f.set(t,null),null):(bs(d)?d.forEach(c=>l[c]=null):Nh(l,d),zf(t)&&f.set(t,l),l)}function VZ(t,e){return!t||!zZ(e)?!1:(e=e.slice(2).replace(/Once$/,""),Zc(t,e[0].toLowerCase()+e.slice(1))||Zc(t,xT(e))||Zc(t,e))}let cm=null,UZ=null;function LH(t){const e=cm;return cm=t,UZ=t&&t.type.__scopeId||null,e}function Mle(t){UZ=t}function Ele(){UZ=null}function Oo(t,e=cm,o){if(!e||t._n)return t;const f=(...P)=>{f._d&&Fde(-1);const d=LH(e);let l;try{l=t(...P)}finally{LH(d),f._d&&Fde(1)}return l};return f._n=!0,f._c=!0,f._d=!0,f}function Joe(t){const{type:e,vnode:o,proxy:f,withProxy:P,props:d,propsOptions:[l],slots:n,attrs:c,emit:b,render:i,renderCache:O,data:w,setupState:y,ctx:p,inheritAttrs:a}=t;let u,h;const m=LH(t);try{if(o.shapeFlag&4){const _=P||f;u=hx(i.call(_,_,O,d,y,w,p)),h=c}else{const _=e;u=hx(_.length>1?_(d,{attrs:c,slots:n,emit:b}):_(d,null)),h=e.props?c:iSe(c)}}catch(_){oI.length=0,fD(_,t,1),u=Zt(k0)}let v=u;if(h&&a!==!1){const _=Object.keys(h),{shapeFlag:S}=v;_.length&&S&7&&(l&&_.some(gle)&&(h=aSe(h,l)),v=TO(v,h))}return o.dirs&&(v=TO(v),v.dirs=v.dirs?v.dirs.concat(o.dirs):o.dirs),o.transition&&(v.transition=o.transition),u=v,LH(m),u}function oSe(t){let e;for(let o=0;o{let e;for(const o in t)(o==="class"||o==="style"||zZ(o))&&((e||(e={}))[o]=t[o]);return e},aSe=(t,e)=>{const o={};for(const f in t)(!gle(f)||!(f.slice(9)in e))&&(o[f]=t[f]);return o};function sSe(t,e,o){const{props:f,children:P,component:d}=t,{props:l,children:n,patchFlag:c}=e,b=d.emitsOptions;if(e.dirs||e.transition)return!0;if(o&&c>=0){if(c&1024)return!0;if(c&16)return f?Sde(f,l,b):!!l;if(c&8){const i=e.dynamicProps;for(let O=0;Ot.__isSuspense,cSe={name:"Suspense",__isSuspense:!0,process(t,e,o,f,P,d,l,n,c,b){t==null?fSe(e,o,f,P,d,l,n,c,b):dSe(t,e,o,f,P,l,n,c,b)},hydrate:hSe,create:Rle,normalize:pSe},uSe=cSe;function _I(t,e){const o=t.props&&t.props[e];ll(o)&&o()}function fSe(t,e,o,f,P,d,l,n,c){const{p:b,o:{createElement:i}}=c,O=i("div"),w=t.suspense=Rle(t,P,f,e,O,o,d,l,n,c);b(null,w.pendingBranch=t.ssContent,O,null,f,w,d,l),w.deps>0?(_I(t,"onPending"),_I(t,"onFallback"),b(null,t.ssFallback,e,o,f,null,d,l),WA(w,t.ssFallback)):w.resolve(!1,!0)}function dSe(t,e,o,f,P,d,l,n,{p:c,um:b,o:{createElement:i}}){const O=e.suspense=t.suspense;O.vnode=e,e.el=t.el;const w=e.ssContent,y=e.ssFallback,{activeBranch:p,pendingBranch:a,isInFallback:u,isHydrating:h}=O;if(a)O.pendingBranch=w,t_(w,a)?(c(a,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0?O.resolve():u&&(c(p,y,o,f,P,null,d,l,n),WA(O,y))):(O.pendingId++,h?(O.isHydrating=!1,O.activeBranch=a):b(a,P,O),O.deps=0,O.effects.length=0,O.hiddenContainer=i("div"),u?(c(null,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0?O.resolve():(c(p,y,o,f,P,null,d,l,n),WA(O,y))):p&&t_(w,p)?(c(p,w,o,f,P,O,d,l,n),O.resolve(!0)):(c(null,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0&&O.resolve()));else if(p&&t_(w,p))c(p,w,o,f,P,O,d,l,n),WA(O,w);else if(_I(e,"onPending"),O.pendingBranch=w,O.pendingId++,c(null,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0)O.resolve();else{const{timeout:m,pendingId:v}=O;m>0?setTimeout(()=>{O.pendingId===v&&O.fallback(y)},m):m===0&&O.fallback(y)}}function Rle(t,e,o,f,P,d,l,n,c,b,i=!1){const{p:O,m:w,um:y,n:p,o:{parentNode:a,remove:u}}=b;let h;const m=gSe(t);m&&e!=null&&e.pendingBranch&&(h=e.pendingId,e.deps++);const v=t.props?a1e(t.props.timeout):void 0,_={vnode:t,parent:e,parentComponent:o,isSVG:l,container:f,hiddenContainer:P,anchor:d,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:i,isUnmounted:!1,effects:[],resolve(S=!1,A=!1){const{vnode:x,activeBranch:R,pendingBranch:M,pendingId:T,effects:E,parentComponent:C,container:L}=_;if(_.isHydrating)_.isHydrating=!1;else if(!S){const I=R&&M.transition&&M.transition.mode==="out-in";I&&(R.transition.afterLeave=()=>{T===_.pendingId&&w(M,L,z,0)});let{anchor:z}=_;R&&(z=p(R),y(R,C,_,!0)),I||w(M,L,z,0)}WA(_,M),_.pendingBranch=null,_.isInFallback=!1;let D=_.parent,k=!1;for(;D;){if(D.pendingBranch){D.effects.push(...E),k=!0;break}D=D.parent}k||E1e(E),_.effects=[],m&&e&&e.pendingBranch&&h===e.pendingId&&(e.deps--,e.deps===0&&!A&&e.resolve()),_I(x,"onResolve")},fallback(S){if(!_.pendingBranch)return;const{vnode:A,activeBranch:x,parentComponent:R,container:M,isSVG:T}=_;_I(A,"onFallback");const E=p(x),C=()=>{_.isInFallback&&(O(null,S,M,E,R,null,T,n,c),WA(_,S))},L=S.transition&&S.transition.mode==="out-in";L&&(x.transition.afterLeave=C),_.isInFallback=!0,y(x,R,null,!0),L||C()},move(S,A,x){_.activeBranch&&w(_.activeBranch,S,A,x),_.container=S},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(S,A){const x=!!_.pendingBranch;x&&_.deps++;const R=S.vnode.el;S.asyncDep.catch(M=>{fD(M,S,0)}).then(M=>{if(S.isUnmounted||_.isUnmounted||_.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:T}=S;Cae(S,M,!1),R&&(T.el=R);const E=!R&&S.subTree.el;A(S,T,a(R||S.subTree.el),R?null:p(S.subTree),_,l,c),E&&u(E),Ple(S,T.el),x&&--_.deps===0&&_.resolve()})},unmount(S,A){_.isUnmounted=!0,_.activeBranch&&y(_.activeBranch,o,S,A),_.pendingBranch&&y(_.pendingBranch,o,S,A)}};return _}function hSe(t,e,o,f,P,d,l,n,c){const b=e.suspense=Rle(e,f,o,t.parentNode,document.createElement("div"),null,P,d,l,n,!0),i=c(t,b.pendingBranch=e.ssContent,o,b,d,l);return b.deps===0&&b.resolve(!1,!0),i}function pSe(t){const{shapeFlag:e,children:o}=t,f=e&32;t.ssContent=kde(f?o.default:o),t.ssFallback=f?kde(o.fallback):Zt(k0)}function kde(t){let e;if(ll(t)){const o=oM&&t._c;o&&(t._d=!1,Bo()),t=t(),o&&(t._d=!0,e=Yy,G1e())}return bs(t)&&(t=oSe(t)),t=hx(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(o=>o!==t)),t}function mSe(t,e){e&&e.pendingBranch?bs(t)?e.effects.push(...t):e.effects.push(t):E1e(t)}function WA(t,e){t.activeBranch=e;const{vnode:o,parentComponent:f}=t,P=o.el=e.el;f&&f.subTree===o&&(f.vnode.el=P,Ple(f,P))}function gSe(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function kp(t,e){return Lle(t,null,e)}const wQ={};function Ni(t,e,o){return Lle(t,e,o)}function Lle(t,e,{immediate:o,deep:f,flush:P,onTrack:d,onTrigger:l}=od){var n;const c=u1e()===((n=Op)==null?void 0:n.scope)?Op:null;let b,i=!1,O=!1;if(Dc(t)?(b=()=>t.value,i=RH(t)):OO(t)?(b=()=>t,f=!0):bs(t)?(O=!0,i=t.some(_=>OO(_)||RH(_)),b=()=>t.map(_=>{if(Dc(_))return _.value;if(OO(_))return oT(_);if(ll(_))return K4(_,c,2)})):ll(t)?e?b=()=>K4(t,c,2):b=()=>{if(!(c&&c.isUnmounted))return w&&w(),eb(t,c,3,[y])}:b=vx,e&&f){const _=b;b=()=>oT(_())}let w,y=_=>{w=m.onStop=()=>{K4(_,c,4)}},p;if(TI)if(y=vx,e?o&&eb(e,c,3,[b(),O?[]:void 0,y]):b(),P==="sync"){const _=a5e();p=_.__watcherHandles||(_.__watcherHandles=[])}else return vx;let a=O?new Array(t.length).fill(wQ):wQ;const u=()=>{if(m.active)if(e){const _=m.run();(f||i||(O?_.some((S,A)=>vI(S,a[A])):vI(_,a)))&&(w&&w(),eb(e,c,3,[_,a===wQ?void 0:O&&a[0]===wQ?[]:a,y]),a=_)}else m.run()};u.allowRecurse=!!e;let h;P==="sync"?h=u:P==="post"?h=()=>g1(u,c&&c.suspense):(u.pre=!0,c&&(u.id=c.uid),h=()=>Ale(u));const m=new _le(b,h);e?o?u():a=m.run():P==="post"?g1(m.run.bind(m),c&&c.suspense):m.run();const v=()=>{m.stop(),c&&c.scope&&vle(c.scope.effects,m)};return p&&p.push(v),v}function vSe(t,e,o){const f=this.proxy,P=hh(t)?t.includes(".")?I1e(f,t):()=>f[t]:t.bind(f,f);let d;ll(e)?d=e:(d=e.handler,o=e);const l=Op;aM(this);const n=Lle(P,d.bind(f),o);return l?aM(l):uT(),n}function I1e(t,e){const o=e.split(".");return()=>{let f=t;for(let P=0;P{oT(o,e)});else if(i1e(t))for(const o in t)oT(t[o],e);return t}function Tp(t,e){const o=cm;if(o===null)return t;const f=ZZ(o)||o.proxy,P=t.dirs||(t.dirs=[]);for(let d=0;d{t.isMounted=!0}),dm(()=>{t.isUnmounting=!0}),t}const Zy=[Function,Array],B1e={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Zy,onEnter:Zy,onAfterEnter:Zy,onEnterCancelled:Zy,onBeforeLeave:Zy,onLeave:Zy,onAfterLeave:Zy,onLeaveCancelled:Zy,onBeforeAppear:Zy,onAppear:Zy,onAfterAppear:Zy,onAppearCancelled:Zy},ySe={name:"BaseTransition",props:B1e,setup(t,{slots:e}){const o=Zle(),f=D1e();let P;return()=>{const d=e.default&&Ile(e.default(),!0);if(!d||!d.length)return;let l=d[0];if(d.length>1){for(const a of d)if(a.type!==k0){l=a;break}}const n=As(t),{mode:c}=n;if(f.isLeaving)return eie(l);const b=Tde(l);if(!b)return eie(l);const i=wI(b,n,f,o);OI(b,i);const O=o.subTree,w=O&&Tde(O);let y=!1;const{getTransitionKey:p}=b.type;if(p){const a=p();P===void 0?P=a:a!==P&&(P=a,y=!0)}if(w&&w.type!==k0&&(!t_(b,w)||y)){const a=wI(w,n,f,o);if(OI(w,a),c==="out-in")return f.isLeaving=!0,a.afterLeave=()=>{f.isLeaving=!1,o.update.active!==!1&&o.update()},eie(l);c==="in-out"&&b.type!==k0&&(a.delayLeave=(u,h,m)=>{const v=z1e(f,w);v[String(w.key)]=w,u._leaveCb=()=>{h(),u._leaveCb=void 0,delete i.delayedLeave},i.delayedLeave=m})}return l}}},bSe=ySe;function z1e(t,e){const{leavingVNodes:o}=t;let f=o.get(e.type);return f||(f=Object.create(null),o.set(e.type,f)),f}function wI(t,e,o,f){const{appear:P,mode:d,persisted:l=!1,onBeforeEnter:n,onEnter:c,onAfterEnter:b,onEnterCancelled:i,onBeforeLeave:O,onLeave:w,onAfterLeave:y,onLeaveCancelled:p,onBeforeAppear:a,onAppear:u,onAfterAppear:h,onAppearCancelled:m}=e,v=String(t.key),_=z1e(o,t),S=(R,M)=>{R&&eb(R,f,9,M)},A=(R,M)=>{const T=M[1];S(R,M),bs(R)?R.every(E=>E.length<=1)&&T():R.length<=1&&T()},x={mode:d,persisted:l,beforeEnter(R){let M=n;if(!o.isMounted)if(P)M=a||n;else return;R._leaveCb&&R._leaveCb(!0);const T=_[v];T&&t_(t,T)&&T.el._leaveCb&&T.el._leaveCb(),S(M,[R])},enter(R){let M=c,T=b,E=i;if(!o.isMounted)if(P)M=u||c,T=h||b,E=m||i;else return;let C=!1;const L=R._enterCb=D=>{C||(C=!0,D?S(E,[R]):S(T,[R]),x.delayedLeave&&x.delayedLeave(),R._enterCb=void 0)};M?A(M,[R,L]):L()},leave(R,M){const T=String(t.key);if(R._enterCb&&R._enterCb(!0),o.isUnmounting)return M();S(O,[R]);let E=!1;const C=R._leaveCb=L=>{E||(E=!0,M(),L?S(p,[R]):S(y,[R]),R._leaveCb=void 0,_[T]===t&&delete _[T])};_[T]=t,w?A(w,[R,C]):C()},clone(R){return wI(R,e,o,f)}};return x}function eie(t){if(jZ(t))return t=TO(t),t.children=null,t}function Tde(t){return jZ(t)?t.children?t.children[0]:void 0:t}function OI(t,e){t.shapeFlag&6&&t.component?OI(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Ile(t,e=!1,o){let f=[],P=0;for(let d=0;d1)for(let d=0;dNh({name:t.name},e,{setup:t}))():t}const tI=t=>!!t.type.__asyncLoader,jZ=t=>t.type.__isKeepAlive;function Dle(t,e){F1e(t,"a",e)}function Ble(t,e){F1e(t,"da",e)}function F1e(t,e,o=Op){const f=t.__wdc||(t.__wdc=()=>{let P=o;for(;P;){if(P.isDeactivated)return;P=P.parent}return t()});if(QZ(e,f,o),o){let P=o.parent;for(;P&&P.parent;)jZ(P.parent.vnode)&&xSe(f,e,o,P),P=P.parent}}function xSe(t,e,o,f){const P=QZ(e,t,f,!0);Nle(()=>{vle(f[e],P)},o)}function QZ(t,e,o=Op,f=!1){if(o){const P=o[t]||(o[t]=[]),d=e.__weh||(e.__weh=(...l)=>{if(o.isUnmounted)return;SM(),aM(o);const n=eb(e,o,t,l);return uT(),kM(),n});return f?P.unshift(d):P.push(d),d}}const RO=t=>(e,o=Op)=>(!TI||t==="sp")&&QZ(t,(...f)=>e(...f),o),zle=RO("bm"),ag=RO("m"),N1e=RO("bu"),Fle=RO("u"),dm=RO("bum"),Nle=RO("um"),_Se=RO("sp"),wSe=RO("rtg"),OSe=RO("rtc");function SSe(t,e=Op){QZ("ec",t,e)}const $le="components",kSe="directives";function Zd(t,e){return Vle($le,t,!0,e)||t}const $1e=Symbol.for("v-ndc");function SI(t){return hh(t)?Vle($le,t,!1)||t:t||$1e}function y_(t){return Vle(kSe,t)}function Vle(t,e,o=!0,f=!1){const P=cm||Op;if(P){const d=P.type;if(t===$le){const n=r5e(d,!1);if(n&&(n===e||n===rb(e)||n===v_(rb(e))))return d}const l=Cde(P[t]||d[t],e)||Cde(P.appContext[t],e);return!l&&f?d:l}}function Cde(t,e){return t&&(t[e]||t[rb(e)]||t[v_(rb(e))])}function ob(t,e,o,f){let P;const d=o&&o[f];if(bs(t)||hh(t)){P=new Array(t.length);for(let l=0,n=t.length;le(l,n,void 0,d&&d[n]));else{const l=Object.keys(t);P=new Array(l.length);for(let n=0,c=l.length;n{const d=f.fn(...P);return d&&(d.key=f.key),d}:f.fn)}return t}function Ade(t,e,o={},f,P){if(cm.isCE||cm.parent&&tI(cm.parent)&&cm.parent.isCE)return e!=="default"&&(o.name=e),Zt("slot",o,f&&f());let d=t[e];d&&d._c&&(d._d=!1),Bo();const l=d&&U1e(d(o)),n=la(ya,{key:o.key||l&&l.key||`_${e}`},l||(f?f():[]),l&&t._===1?64:-2);return!P&&n.scopeId&&(n.slotScopeIds=[n.scopeId+"-s"]),d&&d._c&&(d._d=!0),n}function U1e(t){return t.some(e=>iM(e)?!(e.type===k0||e.type===ya&&!U1e(e.children)):!0)?t:null}function TSe(t,e){const o={};for(const f in t)o[e&&/[A-Z]/.test(f)?`on:${f}`:eI(f)]=t[f];return o}const _ae=t=>t?eve(t)?ZZ(t)||t.proxy:_ae(t.parent):null,nI=Nh(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>_ae(t.parent),$root:t=>_ae(t.root),$emit:t=>t.emit,$options:t=>Ule(t),$forceUpdate:t=>t.f||(t.f=()=>Ale(t.update)),$nextTick:t=>t.n||(t.n=lc.bind(t.proxy)),$watch:t=>vSe.bind(t)}),tie=(t,e)=>t!==od&&!t.__isScriptSetup&&Zc(t,e),CSe={get({_:t},e){const{ctx:o,setupState:f,data:P,props:d,accessCache:l,type:n,appContext:c}=t;let b;if(e[0]!=="$"){const y=l[e];if(y!==void 0)switch(y){case 1:return f[e];case 2:return P[e];case 4:return o[e];case 3:return d[e]}else{if(tie(f,e))return l[e]=1,f[e];if(P!==od&&Zc(P,e))return l[e]=2,P[e];if((b=t.propsOptions[0])&&Zc(b,e))return l[e]=3,d[e];if(o!==od&&Zc(o,e))return l[e]=4,o[e];wae&&(l[e]=0)}}const i=nI[e];let O,w;if(i)return e==="$attrs"&&_1(t,"get",e),i(t);if((O=n.__cssModules)&&(O=O[e]))return O;if(o!==od&&Zc(o,e))return l[e]=4,o[e];if(w=c.config.globalProperties,Zc(w,e))return w[e]},set({_:t},e,o){const{data:f,setupState:P,ctx:d}=t;return tie(P,e)?(P[e]=o,!0):f!==od&&Zc(f,e)?(f[e]=o,!0):Zc(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(d[e]=o,!0)},has({_:{data:t,setupState:e,accessCache:o,ctx:f,appContext:P,propsOptions:d}},l){let n;return!!o[l]||t!==od&&Zc(t,l)||tie(e,l)||(n=d[0])&&Zc(n,l)||Zc(f,l)||Zc(nI,l)||Zc(P.config.globalProperties,l)},defineProperty(t,e,o){return o.get!=null?t._.accessCache[e]=0:Zc(o,"value")&&this.set(t,e,o.value,null),Reflect.defineProperty(t,e,o)}};function Mde(t){return bs(t)?t.reduce((e,o)=>(e[o]=null,e),{}):t}let wae=!0;function ASe(t){const e=Ule(t),o=t.proxy,f=t.ctx;wae=!1,e.beforeCreate&&Ede(e.beforeCreate,t,"bc");const{data:P,computed:d,methods:l,watch:n,provide:c,inject:b,created:i,beforeMount:O,mounted:w,beforeUpdate:y,updated:p,activated:a,deactivated:u,beforeDestroy:h,beforeUnmount:m,destroyed:v,unmounted:_,render:S,renderTracked:A,renderTriggered:x,errorCaptured:R,serverPrefetch:M,expose:T,inheritAttrs:E,components:C,directives:L,filters:D}=e;if(b&&MSe(b,f,null),l)for(const z in l){const $=l[z];ll($)&&(f[z]=$.bind(o))}if(P){const z=P.call(o,o);zf(z)&&(t.data=lm(z))}if(wae=!0,d)for(const z in d){const $=d[z],Q=ll($)?$.bind(o,o):ll($.get)?$.get.bind(o,o):vx,j=!ll($)&&ll($.set)?$.set.bind(o):vx,U=jn({get:Q,set:j});Object.defineProperty(f,z,{enumerable:!0,configurable:!0,get:()=>U.value,set:X=>U.value=X})}if(n)for(const z in n)j1e(n[z],f,o,z);if(c){const z=ll(c)?c.call(o):c;Reflect.ownKeys(z).forEach($=>{gf($,z[$])})}i&&Ede(i,t,"c");function I(z,$){bs($)?$.forEach(Q=>z(Q.bind(o))):$&&z($.bind(o))}if(I(zle,O),I(ag,w),I(N1e,y),I(Fle,p),I(Dle,a),I(Ble,u),I(SSe,R),I(OSe,A),I(wSe,x),I(dm,m),I(Nle,_),I(_Se,M),bs(T))if(T.length){const z=t.exposed||(t.exposed={});T.forEach($=>{Object.defineProperty(z,$,{get:()=>o[$],set:Q=>o[$]=Q})})}else t.exposed||(t.exposed={});S&&t.render===vx&&(t.render=S),E!=null&&(t.inheritAttrs=E),C&&(t.components=C),L&&(t.directives=L)}function MSe(t,e,o=vx){bs(t)&&(t=Oae(t));for(const f in t){const P=t[f];let d;zf(P)?"default"in P?d=vl(P.from||f,P.default,!0):d=vl(P.from||f):d=vl(P),Dc(d)?Object.defineProperty(e,f,{enumerable:!0,configurable:!0,get:()=>d.value,set:l=>d.value=l}):e[f]=d}}function Ede(t,e,o){eb(bs(t)?t.map(f=>f.bind(e.proxy)):t.bind(e.proxy),e,o)}function j1e(t,e,o,f){const P=f.includes(".")?I1e(o,f):()=>o[f];if(hh(t)){const d=e[t];ll(d)&&Ni(P,d)}else if(ll(t))Ni(P,t.bind(o));else if(zf(t))if(bs(t))t.forEach(d=>j1e(d,e,o,f));else{const d=ll(t.handler)?t.handler.bind(o):e[t.handler];ll(d)&&Ni(P,d,t)}}function Ule(t){const e=t.type,{mixins:o,extends:f}=e,{mixins:P,optionsCache:d,config:{optionMergeStrategies:l}}=t.appContext,n=d.get(e);let c;return n?c=n:!P.length&&!o&&!f?c=e:(c={},P.length&&P.forEach(b=>IH(c,b,l,!0)),IH(c,e,l)),zf(e)&&d.set(e,c),c}function IH(t,e,o,f=!1){const{mixins:P,extends:d}=e;d&&IH(t,d,o,!0),P&&P.forEach(l=>IH(t,l,o,!0));for(const l in e)if(!(f&&l==="expose")){const n=ESe[l]||o&&o[l];t[l]=n?n(t[l],e[l]):e[l]}return t}const ESe={data:Pde,props:Rde,emits:Rde,methods:qL,computed:qL,beforeCreate:O0,created:O0,beforeMount:O0,mounted:O0,beforeUpdate:O0,updated:O0,beforeDestroy:O0,beforeUnmount:O0,destroyed:O0,unmounted:O0,activated:O0,deactivated:O0,errorCaptured:O0,serverPrefetch:O0,components:qL,directives:qL,watch:RSe,provide:Pde,inject:PSe};function Pde(t,e){return e?t?function(){return Nh(ll(t)?t.call(this,this):t,ll(e)?e.call(this,this):e)}:e:t}function PSe(t,e){return qL(Oae(t),Oae(e))}function Oae(t){if(bs(t)){const e={};for(let o=0;o1)return o&&ll(e)?e.call(f&&f.proxy):e}}function DSe(){return!!(Op||cm||kI)}function BSe(t,e,o,f=!1){const P={},d={};EH(d,HZ,1),t.propsDefaults=Object.create(null),H1e(t,e,P,d);for(const l in t.propsOptions[0])l in P||(P[l]=void 0);o?t.props=f?P:_1e(P):t.type.props?t.props=P:t.props=d,t.attrs=d}function zSe(t,e,o,f){const{props:P,attrs:d,vnode:{patchFlag:l}}=t,n=As(P),[c]=t.propsOptions;let b=!1;if((f||l>0)&&!(l&16)){if(l&8){const i=t.vnode.dynamicProps;for(let O=0;O{c=!0;const[w,y]=Z1e(O,e,!0);Nh(l,w),y&&n.push(...y)};!o&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!d&&!c)return zf(t)&&f.set(t,HA),HA;if(bs(d))for(let i=0;i-1,y[1]=a<0||p-1||Zc(y,"default"))&&n.push(O)}}}const b=[l,n];return zf(t)&&f.set(t,b),b}function Lde(t){return t[0]!=="$"}function Ide(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Dde(t,e){return Ide(t)===Ide(e)}function Bde(t,e){return bs(e)?e.findIndex(o=>Dde(o,t)):ll(e)&&Dde(e,t)?0:-1}const q1e=t=>t[0]==="_"||t==="$stable",jle=t=>bs(t)?t.map(hx):[hx(t)],FSe=(t,e,o)=>{if(e._n)return e;const f=Oo((...P)=>jle(e(...P)),o);return f._c=!1,f},W1e=(t,e,o)=>{const f=t._ctx;for(const P in t){if(q1e(P))continue;const d=t[P];if(ll(d))e[P]=FSe(P,d,f);else if(d!=null){const l=jle(d);e[P]=()=>l}}},Y1e=(t,e)=>{const o=jle(e);t.slots.default=()=>o},NSe=(t,e)=>{if(t.vnode.shapeFlag&32){const o=e._;o?(t.slots=As(e),EH(e,"_",o)):W1e(e,t.slots={})}else t.slots={},e&&Y1e(t,e);EH(t.slots,HZ,1)},$Se=(t,e,o)=>{const{vnode:f,slots:P}=t;let d=!0,l=od;if(f.shapeFlag&32){const n=e._;n?o&&n===1?d=!1:(Nh(P,e),!o&&n===1&&delete P._):(d=!e.$stable,W1e(e,P)),l=e}else e&&(Y1e(t,e),l={default:1});if(d)for(const n in P)!q1e(n)&&!(n in l)&&delete P[n]};function kae(t,e,o,f,P=!1){if(bs(t)){t.forEach((w,y)=>kae(w,e&&(bs(e)?e[y]:e),o,f,P));return}if(tI(f)&&!P)return;const d=f.shapeFlag&4?ZZ(f.component)||f.component.proxy:f.el,l=P?null:d,{i:n,r:c}=t,b=e&&e.r,i=n.refs===od?n.refs={}:n.refs,O=n.setupState;if(b!=null&&b!==c&&(hh(b)?(i[b]=null,Zc(O,b)&&(O[b]=null)):Dc(b)&&(b.value=null)),ll(c))K4(c,n,12,[l,i]);else{const w=hh(c),y=Dc(c);if(w||y){const p=()=>{if(t.f){const a=w?Zc(O,c)?O[c]:i[c]:c.value;P?bs(a)&&vle(a,d):bs(a)?a.includes(d)||a.push(d):w?(i[c]=[d],Zc(O,c)&&(O[c]=i[c])):(c.value=[d],t.k&&(i[t.k]=c.value))}else w?(i[c]=l,Zc(O,c)&&(O[c]=l)):y&&(c.value=l,t.k&&(i[t.k]=l))};l?(p.id=-1,g1(p,o)):p()}}}const g1=mSe;function VSe(t){return USe(t)}function USe(t,e){const o=gae();o.__VUE__=!0;const{insert:f,remove:P,patchProp:d,createElement:l,createText:n,createComment:c,setText:b,setElementText:i,parentNode:O,nextSibling:w,setScopeId:y=vx,insertStaticContent:p}=t,a=(se,ae,ce,de=null,ve=null,ye=null,_e=!1,Se=null,Te=!!ae.dynamicChildren)=>{if(se===ae)return;se&&!t_(se,ae)&&(de=q(se),X(se,ve,ye,!0),se=null),ae.patchFlag===-2&&(Te=!1,ae.dynamicChildren=null);const{type:Pe,ref:Ie,shapeFlag:ze}=ae;switch(Pe){case dD:u(se,ae,ce,de);break;case k0:h(se,ae,ce,de);break;case nie:se==null&&m(ae,ce,de,_e);break;case ya:C(se,ae,ce,de,ve,ye,_e,Se,Te);break;default:ze&1?S(se,ae,ce,de,ve,ye,_e,Se,Te):ze&6?L(se,ae,ce,de,ve,ye,_e,Se,Te):(ze&64||ze&128)&&Pe.process(se,ae,ce,de,ve,ye,_e,Se,Te,ee)}Ie!=null&&ve&&kae(Ie,se&&se.ref,ye,ae||se,!ae)},u=(se,ae,ce,de)=>{if(se==null)f(ae.el=n(ae.children),ce,de);else{const ve=ae.el=se.el;ae.children!==se.children&&b(ve,ae.children)}},h=(se,ae,ce,de)=>{se==null?f(ae.el=c(ae.children||""),ce,de):ae.el=se.el},m=(se,ae,ce,de)=>{[se.el,se.anchor]=p(se.children,ae,ce,de,se.el,se.anchor)},v=({el:se,anchor:ae},ce,de)=>{let ve;for(;se&&se!==ae;)ve=w(se),f(se,ce,de),se=ve;f(ae,ce,de)},_=({el:se,anchor:ae})=>{let ce;for(;se&&se!==ae;)ce=w(se),P(se),se=ce;P(ae)},S=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{_e=_e||ae.type==="svg",se==null?A(ae,ce,de,ve,ye,_e,Se,Te):M(se,ae,ve,ye,_e,Se,Te)},A=(se,ae,ce,de,ve,ye,_e,Se)=>{let Te,Pe;const{type:Ie,props:ze,shapeFlag:De,transition:He,dirs:Ve}=se;if(Te=se.el=l(se.type,ye,ze&&ze.is,ze),De&8?i(Te,se.children):De&16&&R(se.children,Te,null,de,ve,ye&&Ie!=="foreignObject",_e,Se),Ve&&jk(se,null,de,"created"),x(Te,se,se.scopeId,_e,de),ze){for(const Oe in ze)Oe!=="value"&&!lH(Oe)&&d(Te,Oe,null,ze[Oe],ye,se.children,de,ve,oe);"value"in ze&&d(Te,"value",null,ze.value),(Pe=ze.onVnodeBeforeMount)&&W2(Pe,de,se)}Ve&&jk(se,null,de,"beforeMount");const $e=(!ve||ve&&!ve.pendingBranch)&&He&&!He.persisted;$e&&He.beforeEnter(Te),f(Te,ae,ce),((Pe=ze&&ze.onVnodeMounted)||$e||Ve)&&g1(()=>{Pe&&W2(Pe,de,se),$e&&He.enter(Te),Ve&&jk(se,null,de,"mounted")},ve)},x=(se,ae,ce,de,ve)=>{if(ce&&y(se,ce),de)for(let ye=0;ye{for(let Pe=Te;Pe{const Se=ae.el=se.el;let{patchFlag:Te,dynamicChildren:Pe,dirs:Ie}=ae;Te|=se.patchFlag&16;const ze=se.props||od,De=ae.props||od;let He;ce&&Qk(ce,!1),(He=De.onVnodeBeforeUpdate)&&W2(He,ce,ae,se),Ie&&jk(ae,se,ce,"beforeUpdate"),ce&&Qk(ce,!0);const Ve=ve&&ae.type!=="foreignObject";if(Pe?T(se.dynamicChildren,Pe,Se,ce,de,Ve,ye):_e||$(se,ae,Se,null,ce,de,Ve,ye,!1),Te>0){if(Te&16)E(Se,ae,ze,De,ce,de,ve);else if(Te&2&&ze.class!==De.class&&d(Se,"class",null,De.class,ve),Te&4&&d(Se,"style",ze.style,De.style,ve),Te&8){const $e=ae.dynamicProps;for(let Oe=0;Oe<$e.length;Oe++){const ke=$e[Oe],Le=ze[ke],We=De[ke];(We!==Le||ke==="value")&&d(Se,ke,Le,We,ve,se.children,ce,de,oe)}}Te&1&&se.children!==ae.children&&i(Se,ae.children)}else!_e&&Pe==null&&E(Se,ae,ze,De,ce,de,ve);((He=De.onVnodeUpdated)||Ie)&&g1(()=>{He&&W2(He,ce,ae,se),Ie&&jk(ae,se,ce,"updated")},de)},T=(se,ae,ce,de,ve,ye,_e)=>{for(let Se=0;Se{if(ce!==de){if(ce!==od)for(const Se in ce)!lH(Se)&&!(Se in de)&&d(se,Se,ce[Se],null,_e,ae.children,ve,ye,oe);for(const Se in de){if(lH(Se))continue;const Te=de[Se],Pe=ce[Se];Te!==Pe&&Se!=="value"&&d(se,Se,Pe,Te,_e,ae.children,ve,ye,oe)}"value"in de&&d(se,"value",ce.value,de.value)}},C=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{const Pe=ae.el=se?se.el:n(""),Ie=ae.anchor=se?se.anchor:n("");let{patchFlag:ze,dynamicChildren:De,slotScopeIds:He}=ae;He&&(Se=Se?Se.concat(He):He),se==null?(f(Pe,ce,de),f(Ie,ce,de),R(ae.children,ce,Ie,ve,ye,_e,Se,Te)):ze>0&&ze&64&&De&&se.dynamicChildren?(T(se.dynamicChildren,De,ce,ve,ye,_e,Se),(ae.key!=null||ve&&ae===ve.subTree)&&Qle(se,ae,!0)):$(se,ae,ce,Ie,ve,ye,_e,Se,Te)},L=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{ae.slotScopeIds=Se,se==null?ae.shapeFlag&512?ve.ctx.activate(ae,ce,de,_e,Te):D(ae,ce,de,ve,ye,_e,Te):k(se,ae,Te)},D=(se,ae,ce,de,ve,ye,_e)=>{const Se=se.component=KSe(se,de,ve);if(jZ(se)&&(Se.ctx.renderer=ee),JSe(Se),Se.asyncDep){if(ve&&ve.registerDep(Se,I),!se.el){const Te=Se.subTree=Zt(k0);h(null,Te,ae,ce)}return}I(Se,se,ae,ce,ve,ye,_e)},k=(se,ae,ce)=>{const de=ae.component=se.component;if(sSe(se,ae,ce))if(de.asyncDep&&!de.asyncResolved){z(de,ae,ce);return}else de.next=ae,tSe(de.update),de.update();else ae.el=se.el,de.vnode=ae},I=(se,ae,ce,de,ve,ye,_e)=>{const Se=()=>{if(se.isMounted){let{next:Ie,bu:ze,u:De,parent:He,vnode:Ve}=se,$e=Ie,Oe;Qk(se,!1),Ie?(Ie.el=Ve.el,z(se,Ie,_e)):Ie=Ve,ze&&cH(ze),(Oe=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&W2(Oe,He,Ie,Ve),Qk(se,!0);const ke=Joe(se),Le=se.subTree;se.subTree=ke,a(Le,ke,O(Le.el),q(Le),se,ve,ye),Ie.el=ke.el,$e===null&&Ple(se,ke.el),De&&g1(De,ve),(Oe=Ie.props&&Ie.props.onVnodeUpdated)&&g1(()=>W2(Oe,He,Ie,Ve),ve)}else{let Ie;const{el:ze,props:De}=ae,{bm:He,m:Ve,parent:$e}=se,Oe=tI(ae);if(Qk(se,!1),He&&cH(He),!Oe&&(Ie=De&&De.onVnodeBeforeMount)&&W2(Ie,$e,ae),Qk(se,!0),ze&&he){const ke=()=>{se.subTree=Joe(se),he(ze,se.subTree,se,ve,null)};Oe?ae.type.__asyncLoader().then(()=>!se.isUnmounted&&ke()):ke()}else{const ke=se.subTree=Joe(se);a(null,ke,ce,de,se,ve,ye),ae.el=ke.el}if(Ve&&g1(Ve,ve),!Oe&&(Ie=De&&De.onVnodeMounted)){const ke=ae;g1(()=>W2(Ie,$e,ke),ve)}(ae.shapeFlag&256||$e&&tI($e.vnode)&&$e.vnode.shapeFlag&256)&&se.a&&g1(se.a,ve),se.isMounted=!0,ae=ce=de=null}},Te=se.effect=new _le(Se,()=>Ale(Pe),se.scope),Pe=se.update=()=>Te.run();Pe.id=se.uid,Qk(se,!0),Pe()},z=(se,ae,ce)=>{ae.component=se;const de=se.vnode.props;se.vnode=ae,se.next=null,zSe(se,ae.props,de,ce),$Se(se,ae.children,ce),SM(),Ode(),kM()},$=(se,ae,ce,de,ve,ye,_e,Se,Te=!1)=>{const Pe=se&&se.children,Ie=se?se.shapeFlag:0,ze=ae.children,{patchFlag:De,shapeFlag:He}=ae;if(De>0){if(De&128){j(Pe,ze,ce,de,ve,ye,_e,Se,Te);return}else if(De&256){Q(Pe,ze,ce,de,ve,ye,_e,Se,Te);return}}He&8?(Ie&16&&oe(Pe,ve,ye),ze!==Pe&&i(ce,ze)):Ie&16?He&16?j(Pe,ze,ce,de,ve,ye,_e,Se,Te):oe(Pe,ve,ye,!0):(Ie&8&&i(ce,""),He&16&&R(ze,ce,de,ve,ye,_e,Se,Te))},Q=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{se=se||HA,ae=ae||HA;const Pe=se.length,Ie=ae.length,ze=Math.min(Pe,Ie);let De;for(De=0;DeIe?oe(se,ve,ye,!0,!1,ze):R(ae,ce,de,ve,ye,_e,Se,Te,ze)},j=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{let Pe=0;const Ie=ae.length;let ze=se.length-1,De=Ie-1;for(;Pe<=ze&&Pe<=De;){const He=se[Pe],Ve=ae[Pe]=Te?V4(ae[Pe]):hx(ae[Pe]);if(t_(He,Ve))a(He,Ve,ce,null,ve,ye,_e,Se,Te);else break;Pe++}for(;Pe<=ze&&Pe<=De;){const He=se[ze],Ve=ae[De]=Te?V4(ae[De]):hx(ae[De]);if(t_(He,Ve))a(He,Ve,ce,null,ve,ye,_e,Se,Te);else break;ze--,De--}if(Pe>ze){if(Pe<=De){const He=De+1,Ve=HeDe)for(;Pe<=ze;)X(se[Pe],ve,ye,!0),Pe++;else{const He=Pe,Ve=Pe,$e=new Map;for(Pe=Ve;Pe<=De;Pe++){const tt=ae[Pe]=Te?V4(ae[Pe]):hx(ae[Pe]);tt.key!=null&&$e.set(tt.key,Pe)}let Oe,ke=0;const Le=De-Ve+1;let We=!1,Ue=0;const Ze=new Array(Le);for(Pe=0;Pe=Le){X(tt,ve,ye,!0);continue}let Ee;if(tt.key!=null)Ee=$e.get(tt.key);else for(Oe=Ve;Oe<=De;Oe++)if(Ze[Oe-Ve]===0&&t_(tt,ae[Oe])){Ee=Oe;break}Ee===void 0?X(tt,ve,ye,!0):(Ze[Ee-Ve]=Pe+1,Ee>=Ue?Ue=Ee:We=!0,a(tt,ae[Ee],ce,null,ve,ye,_e,Se,Te),ke++)}const Xe=We?jSe(Ze):HA;for(Oe=Xe.length-1,Pe=Le-1;Pe>=0;Pe--){const tt=Ve+Pe,Ee=ae[tt],Ne=tt+1{const{el:ye,type:_e,transition:Se,children:Te,shapeFlag:Pe}=se;if(Pe&6){U(se.component.subTree,ae,ce,de);return}if(Pe&128){se.suspense.move(ae,ce,de);return}if(Pe&64){_e.move(se,ae,ce,ee);return}if(_e===ya){f(ye,ae,ce);for(let ze=0;zeSe.enter(ye),ve);else{const{leave:ze,delayLeave:De,afterLeave:He}=Se,Ve=()=>f(ye,ae,ce),$e=()=>{ze(ye,()=>{Ve(),He&&He()})};De?De(ye,Ve,$e):$e()}else f(ye,ae,ce)},X=(se,ae,ce,de=!1,ve=!1)=>{const{type:ye,props:_e,ref:Se,children:Te,dynamicChildren:Pe,shapeFlag:Ie,patchFlag:ze,dirs:De}=se;if(Se!=null&&kae(Se,null,ce,se,!0),Ie&256){ae.ctx.deactivate(se);return}const He=Ie&1&&De,Ve=!tI(se);let $e;if(Ve&&($e=_e&&_e.onVnodeBeforeUnmount)&&W2($e,ae,se),Ie&6)K(se.component,ce,de);else{if(Ie&128){se.suspense.unmount(ce,de);return}He&&jk(se,null,ae,"beforeUnmount"),Ie&64?se.type.remove(se,ae,ce,ve,ee,de):Pe&&(ye!==ya||ze>0&&ze&64)?oe(Pe,ae,ce,!1,!0):(ye===ya&&ze&384||!ve&&Ie&16)&&oe(Te,ae,ce),de&&te(se)}(Ve&&($e=_e&&_e.onVnodeUnmounted)||He)&&g1(()=>{$e&&W2($e,ae,se),He&&jk(se,null,ae,"unmounted")},ce)},te=se=>{const{type:ae,el:ce,anchor:de,transition:ve}=se;if(ae===ya){W(ce,de);return}if(ae===nie){_(se);return}const ye=()=>{P(ce),ve&&!ve.persisted&&ve.afterLeave&&ve.afterLeave()};if(se.shapeFlag&1&&ve&&!ve.persisted){const{leave:_e,delayLeave:Se}=ve,Te=()=>_e(ce,ye);Se?Se(se.el,ye,Te):Te()}else ye()},W=(se,ae)=>{let ce;for(;se!==ae;)ce=w(se),P(se),se=ce;P(ae)},K=(se,ae,ce)=>{const{bum:de,scope:ve,update:ye,subTree:_e,um:Se}=se;de&&cH(de),ve.stop(),ye&&(ye.active=!1,X(_e,se,ae,ce)),Se&&g1(Se,ae),g1(()=>{se.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&se.asyncDep&&!se.asyncResolved&&se.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},oe=(se,ae,ce,de=!1,ve=!1,ye=0)=>{for(let _e=ye;_ese.shapeFlag&6?q(se.component.subTree):se.shapeFlag&128?se.suspense.next():w(se.anchor||se.el),Y=(se,ae,ce)=>{se==null?ae._vnode&&X(ae._vnode,null,null,!0):a(ae._vnode||null,se,ae,null,null,null,ce),Ode(),P1e(),ae._vnode=se},ee={p:a,um:X,m:U,r:te,mt:D,mc:R,pc:$,pbc:T,n:q,o:t};let me,he;return e&&([me,he]=e(ee)),{render:Y,hydrate:me,createApp:ISe(Y,me)}}function Qk({effect:t,update:e},o){t.allowRecurse=e.allowRecurse=o}function Qle(t,e,o=!1){const f=t.children,P=e.children;if(bs(f)&&bs(P))for(let d=0;d>1,t[o[n]]0&&(e[f]=o[d-1]),o[d]=f)}}for(d=o.length,l=o[d-1];d-- >0;)o[d]=l,l=e[l];return o}const QSe=t=>t.__isTeleport,rI=t=>t&&(t.disabled||t.disabled===""),zde=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Tae=(t,e)=>{const o=t&&t.to;return hh(o)?e?e(o):null:o},HSe={__isTeleport:!0,process(t,e,o,f,P,d,l,n,c,b){const{mc:i,pc:O,pbc:w,o:{insert:y,querySelector:p,createText:a,createComment:u}}=b,h=rI(e.props);let{shapeFlag:m,children:v,dynamicChildren:_}=e;if(t==null){const S=e.el=a(""),A=e.anchor=a("");y(S,o,f),y(A,o,f);const x=e.target=Tae(e.props,p),R=e.targetAnchor=a("");x&&(y(R,x),l=l||zde(x));const M=(T,E)=>{m&16&&i(v,T,E,P,d,l,n,c)};h?M(o,A):x&&M(x,R)}else{e.el=t.el;const S=e.anchor=t.anchor,A=e.target=t.target,x=e.targetAnchor=t.targetAnchor,R=rI(t.props),M=R?o:A,T=R?S:x;if(l=l||zde(A),_?(w(t.dynamicChildren,_,M,P,d,l,n),Qle(t,e,!0)):c||O(t,e,M,T,P,d,l,n,!1),h)R||OQ(e,o,S,b,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const E=e.target=Tae(e.props,p);E&&OQ(e,E,null,b,0)}else R&&OQ(e,A,x,b,1)}X1e(e)},remove(t,e,o,f,{um:P,o:{remove:d}},l){const{shapeFlag:n,children:c,anchor:b,targetAnchor:i,target:O,props:w}=t;if(O&&d(i),(l||!rI(w))&&(d(b),n&16))for(let y=0;y0?Yy||HA:null,G1e(),oM>0&&Yy&&Yy.push(t),t}function Da(t,e,o,f,P,d){return K1e(pa(t,e,o,f,P,d,!0))}function la(t,e,o,f,P){return K1e(Zt(t,e,o,f,P,!0))}function iM(t){return t?t.__v_isVNode===!0:!1}function t_(t,e){return t.type===e.type&&t.key===e.key}const HZ="__vInternal",J1e=({key:t})=>t??null,uH=({ref:t,ref_key:e,ref_for:o})=>(typeof t=="number"&&(t=""+t),t!=null?hh(t)||Dc(t)||ll(t)?{i:cm,r:t,k:e,f:!!o}:t:null);function pa(t,e=null,o=null,f=0,P=null,d=t===ya?0:1,l=!1,n=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&J1e(e),ref:e&&uH(e),scopeId:UZ,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:f,dynamicProps:P,dynamicChildren:null,appContext:null,ctx:cm};return n?(Hle(c,o),d&128&&t.normalize(c)):o&&(c.shapeFlag|=hh(o)?8:16),oM>0&&!l&&Yy&&(c.patchFlag>0||d&6)&&c.patchFlag!==32&&Yy.push(c),c}const Zt=WSe;function WSe(t,e=null,o=null,f=0,P=null,d=!1){if((!t||t===$1e)&&(t=k0),iM(t)){const n=TO(t,e,!0);return o&&Hle(n,o),oM>0&&!d&&Yy&&(n.shapeFlag&6?Yy[Yy.indexOf(t)]=n:Yy.push(n)),n.patchFlag|=-2,n}if(o5e(t)&&(t=t.__vccOpts),e){e=YSe(e);let{class:n,style:c}=e;n&&!hh(n)&&(e.class=zv(n)),zf(c)&&(w1e(c)&&!bs(c)&&(c=Nh({},c)),e.style=lD(c))}const l=hh(t)?1:lSe(t)?128:QSe(t)?64:zf(t)?4:ll(t)?2:0;return pa(t,e,o,f,P,l,d,!0)}function YSe(t){return t?w1e(t)||HZ in t?Nh({},t):t:null}function TO(t,e,o=!1){const{props:f,ref:P,patchFlag:d,children:l}=t,n=e?Di(f||{},e):f;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:n,key:n&&J1e(n),ref:e&&e.ref?o&&P?bs(P)?P.concat(uH(e)):[P,uH(e)]:uH(e):P,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ya?d===-1?16:d|16:d,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&TO(t.ssContent),ssFallback:t.ssFallback&&TO(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Cs(t=" ",e=0){return Zt(dD,null,t,e)}function Wa(t="",e=!1){return e?(Bo(),la(k0,null,t)):Zt(k0,null,t)}function hx(t){return t==null||typeof t=="boolean"?Zt(k0):bs(t)?Zt(ya,null,t.slice()):typeof t=="object"?V4(t):Zt(dD,null,String(t))}function V4(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:TO(t)}function Hle(t,e){let o=0;const{shapeFlag:f}=t;if(e==null)e=null;else if(bs(e))o=16;else if(typeof e=="object")if(f&65){const P=e.default;P&&(P._c&&(P._d=!1),Hle(t,P()),P._c&&(P._d=!0));return}else{o=32;const P=e._;!P&&!(HZ in e)?e._ctx=cm:P===3&&cm&&(cm.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ll(e)?(e={default:e,_ctx:cm},o=32):(e=String(e),f&64?(o=16,e=[Cs(e)]):o=8);t.children=e,t.shapeFlag|=o}function Di(...t){const e={};for(let o=0;oOp||cm;let qle,AA,Nde="__VUE_INSTANCE_SETTERS__";(AA=gae()[Nde])||(AA=gae()[Nde]=[]),AA.push(t=>Op=t),qle=t=>{AA.length>1?AA.forEach(e=>e(t)):AA[0](t)};const aM=t=>{qle(t),t.scope.on()},uT=()=>{Op&&Op.scope.off(),qle(null)};function eve(t){return t.vnode.shapeFlag&4}let TI=!1;function JSe(t,e=!1){TI=e;const{props:o,children:f}=t.vnode,P=eve(t);BSe(t,o,P,e),NSe(t,f);const d=P?e5e(t,e):void 0;return TI=!1,d}function e5e(t,e){const o=t.type;t.accessCache=Object.create(null),t.proxy=uD(new Proxy(t.ctx,CSe));const{setup:f}=o;if(f){const P=t.setupContext=f.length>1?n5e(t):null;aM(t),SM();const d=K4(f,t,0,[t.props,P]);if(kM(),uT(),r1e(d)){if(d.then(uT,uT),e)return d.then(l=>{Cae(t,l,e)}).catch(l=>{fD(l,t,0)});t.asyncDep=d}else Cae(t,d,e)}else tve(t,e)}function Cae(t,e,o){ll(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:zf(e)&&(t.setupState=T1e(e)),tve(t,o)}let $de;function tve(t,e,o){const f=t.type;if(!t.render){if(!e&&$de&&!f.render){const P=f.template||Ule(t).template;if(P){const{isCustomElement:d,compilerOptions:l}=t.appContext.config,{delimiters:n,compilerOptions:c}=f,b=Nh(Nh({isCustomElement:d,delimiters:n},l),c);f.render=$de(P,b)}}t.render=f.render||vx}aM(t),SM(),ASe(t),kM(),uT()}function t5e(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,o){return _1(t,"get","$attrs"),e[o]}}))}function n5e(t){const e=o=>{t.exposed=o||{}};return{get attrs(){return t5e(t)},slots:t.slots,emit:t.emit,expose:e}}function ZZ(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(T1e(uD(t.exposed)),{get(e,o){if(o in e)return e[o];if(o in nI)return nI[o](t)},has(e,o){return o in e||o in nI}}))}function r5e(t,e=!0){return ll(t)?t.displayName||t.name:t.name||e&&t.__name}function o5e(t){return ll(t)&&"__vccOpts"in t}const jn=(t,e)=>K4e(t,e,TI);function w1(t,e,o){const f=arguments.length;return f===2?zf(e)&&!bs(e)?iM(e)?Zt(t,null,[e]):Zt(t,e):Zt(t,null,e):(f>3?o=Array.prototype.slice.call(arguments,2):f===3&&iM(o)&&(o=[o]),Zt(t,e,o))}const i5e=Symbol.for("v-scx"),a5e=()=>vl(i5e),s5e="3.3.4",l5e="http://www.w3.org/2000/svg",eT=typeof document<"u"?document:null,Vde=eT&&eT.createElement("template"),c5e={insert:(t,e,o)=>{e.insertBefore(t,o||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,o,f)=>{const P=e?eT.createElementNS(l5e,t):eT.createElement(t,o?{is:o}:void 0);return t==="select"&&f&&f.multiple!=null&&P.setAttribute("multiple",f.multiple),P},createText:t=>eT.createTextNode(t),createComment:t=>eT.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>eT.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,o,f,P,d){const l=o?o.previousSibling:e.lastChild;if(P&&(P===d||P.nextSibling))for(;e.insertBefore(P.cloneNode(!0),o),!(P===d||!(P=P.nextSibling)););else{Vde.innerHTML=f?`${t}`:t;const n=Vde.content;if(f){const c=n.firstChild;for(;c.firstChild;)n.appendChild(c.firstChild);n.removeChild(c)}e.insertBefore(n,o)}return[l?l.nextSibling:e.firstChild,o?o.previousSibling:e.lastChild]}};function u5e(t,e,o){const f=t._vtc;f&&(e=(e?[e,...f]:[...f]).join(" ")),e==null?t.removeAttribute("class"):o?t.setAttribute("class",e):t.className=e}function f5e(t,e,o){const f=t.style,P=hh(o);if(o&&!P){if(e&&!hh(e))for(const d in e)o[d]==null&&Aae(f,d,"");for(const d in o)Aae(f,d,o[d])}else{const d=f.display;P?e!==o&&(f.cssText=o):e&&t.removeAttribute("style"),"_vod"in t&&(f.display=d)}}const Ude=/\s*!important$/;function Aae(t,e,o){if(bs(o))o.forEach(f=>Aae(t,e,f));else if(o==null&&(o=""),e.startsWith("--"))t.setProperty(e,o);else{const f=d5e(t,e);Ude.test(o)?t.setProperty(xT(f),o.replace(Ude,""),"important"):t[f]=o}}const jde=["Webkit","Moz","ms"],rie={};function d5e(t,e){const o=rie[e];if(o)return o;let f=rb(e);if(f!=="filter"&&f in t)return rie[e]=f;f=v_(f);for(let P=0;Poie||(y5e.then(()=>oie=0),oie=Date.now());function x5e(t,e){const o=f=>{if(!f._vts)f._vts=Date.now();else if(f._vts<=o.attached)return;eb(_5e(f,o.value),e,5,[f])};return o.value=t,o.attached=b5e(),o}function _5e(t,e){if(bs(e)){const o=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{o.call(t),t._stopped=!0},e.map(f=>P=>!P._stopped&&f&&f(P))}else return e}const Zde=/^on[a-z]/,w5e=(t,e,o,f,P=!1,d,l,n,c)=>{e==="class"?u5e(t,f,P):e==="style"?f5e(t,o,f):zZ(e)?gle(e)||g5e(t,e,o,f,l):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):O5e(t,e,f,P))?p5e(t,e,f,d,l,n,c):(e==="true-value"?t._trueValue=f:e==="false-value"&&(t._falseValue=f),h5e(t,e,f,P))};function O5e(t,e,o,f){return f?!!(e==="innerHTML"||e==="textContent"||e in t&&Zde.test(e)&&ll(o)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Zde.test(e)&&hh(o)?!1:e in t}const B4="transition",EL="animation",h_=(t,{slots:e})=>w1(bSe,rve(t),e);h_.displayName="Transition";const nve={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},S5e=h_.props=Nh({},B1e,nve),Hk=(t,e=[])=>{bs(t)?t.forEach(o=>o(...e)):t&&t(...e)},qde=t=>t?bs(t)?t.some(e=>e.length>1):t.length>1:!1;function rve(t){const e={};for(const C in t)C in nve||(e[C]=t[C]);if(t.css===!1)return e;const{name:o="v",type:f,duration:P,enterFromClass:d=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:n=`${o}-enter-to`,appearFromClass:c=d,appearActiveClass:b=l,appearToClass:i=n,leaveFromClass:O=`${o}-leave-from`,leaveActiveClass:w=`${o}-leave-active`,leaveToClass:y=`${o}-leave-to`}=t,p=k5e(P),a=p&&p[0],u=p&&p[1],{onBeforeEnter:h,onEnter:m,onEnterCancelled:v,onLeave:_,onLeaveCancelled:S,onBeforeAppear:A=h,onAppear:x=m,onAppearCancelled:R=v}=e,M=(C,L,D)=>{N4(C,L?i:n),N4(C,L?b:l),D&&D()},T=(C,L)=>{C._isLeaving=!1,N4(C,O),N4(C,y),N4(C,w),L&&L()},E=C=>(L,D)=>{const k=C?x:m,I=()=>M(L,C,D);Hk(k,[L,I]),Wde(()=>{N4(L,C?c:d),bO(L,C?i:n),qde(k)||Yde(L,f,a,I)})};return Nh(e,{onBeforeEnter(C){Hk(h,[C]),bO(C,d),bO(C,l)},onBeforeAppear(C){Hk(A,[C]),bO(C,c),bO(C,b)},onEnter:E(!1),onAppear:E(!0),onLeave(C,L){C._isLeaving=!0;const D=()=>T(C,L);bO(C,O),ive(),bO(C,w),Wde(()=>{C._isLeaving&&(N4(C,O),bO(C,y),qde(_)||Yde(C,f,u,D))}),Hk(_,[C,D])},onEnterCancelled(C){M(C,!1),Hk(v,[C])},onAppearCancelled(C){M(C,!0),Hk(R,[C])},onLeaveCancelled(C){T(C),Hk(S,[C])}})}function k5e(t){if(t==null)return null;if(zf(t))return[iie(t.enter),iie(t.leave)];{const e=iie(t);return[e,e]}}function iie(t){return a1e(t)}function bO(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.add(o)),(t._vtc||(t._vtc=new Set)).add(e)}function N4(t,e){e.split(/\s+/).forEach(f=>f&&t.classList.remove(f));const{_vtc:o}=t;o&&(o.delete(e),o.size||(t._vtc=void 0))}function Wde(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let T5e=0;function Yde(t,e,o,f){const P=t._endId=++T5e,d=()=>{P===t._endId&&f()};if(o)return setTimeout(d,o);const{type:l,timeout:n,propCount:c}=ove(t,e);if(!l)return f();const b=l+"end";let i=0;const O=()=>{t.removeEventListener(b,w),d()},w=y=>{y.target===t&&++i>=c&&O()};setTimeout(()=>{i(o[p]||"").split(", "),P=f(`${B4}Delay`),d=f(`${B4}Duration`),l=Xde(P,d),n=f(`${EL}Delay`),c=f(`${EL}Duration`),b=Xde(n,c);let i=null,O=0,w=0;e===B4?l>0&&(i=B4,O=l,w=d.length):e===EL?b>0&&(i=EL,O=b,w=c.length):(O=Math.max(l,b),i=O>0?l>b?B4:EL:null,w=i?i===B4?d.length:c.length:0);const y=i===B4&&/\b(transform|all)(,|$)/.test(f(`${B4}Property`).toString());return{type:i,timeout:O,propCount:w,hasTransform:y}}function Xde(t,e){for(;t.lengthGde(o)+Gde(t[f])))}function Gde(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function ive(){return document.body.offsetHeight}const ave=new WeakMap,sve=new WeakMap,lve={name:"TransitionGroup",props:Nh({},S5e,{tag:String,moveClass:String}),setup(t,{slots:e}){const o=Zle(),f=D1e();let P,d;return Fle(()=>{if(!P.length)return;const l=t.moveClass||`${t.name||"v"}-move`;if(!P5e(P[0].el,o.vnode.el,l))return;P.forEach(A5e),P.forEach(M5e);const n=P.filter(E5e);ive(),n.forEach(c=>{const b=c.el,i=b.style;bO(b,l),i.transform=i.webkitTransform=i.transitionDuration="";const O=b._moveCb=w=>{w&&w.target!==b||(!w||/transform$/.test(w.propertyName))&&(b.removeEventListener("transitionend",O),b._moveCb=null,N4(b,l))};b.addEventListener("transitionend",O)})}),()=>{const l=As(t),n=rve(l);let c=l.tag||ya;P=d,d=e.default?Ile(e.default()):[];for(let b=0;bdelete t.mode;lve.props;const Wle=lve;function A5e(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function M5e(t){sve.set(t,t.el.getBoundingClientRect())}function E5e(t){const e=ave.get(t),o=sve.get(t),f=e.left-o.left,P=e.top-o.top;if(f||P){const d=t.el.style;return d.transform=d.webkitTransform=`translate(${f}px,${P}px)`,d.transitionDuration="0s",t}}function P5e(t,e,o){const f=t.cloneNode();t._vtc&&t._vtc.forEach(l=>{l.split(/\s+/).forEach(n=>n&&f.classList.remove(n))}),o.split(/\s+/).forEach(l=>l&&f.classList.add(l)),f.style.display="none";const P=e.nodeType===1?e:e.parentNode;P.appendChild(f);const{hasTransform:d}=ove(f);return P.removeChild(f),d}const Kde=t=>{const e=t.props["onUpdate:modelValue"]||!1;return bs(e)?o=>cH(e,o):e};function R5e(t){t.target.composing=!0}function Jde(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const L5e={created(t,{modifiers:{lazy:e,trim:o,number:f}},P){t._assign=Kde(P);const d=f||P.props&&P.props.type==="number";DA(t,e?"change":"input",l=>{if(l.target.composing)return;let n=t.value;o&&(n=n.trim()),d&&(n=mae(n)),t._assign(n)}),o&&DA(t,"change",()=>{t.value=t.value.trim()}),e||(DA(t,"compositionstart",R5e),DA(t,"compositionend",Jde),DA(t,"change",Jde))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:o,trim:f,number:P}},d){if(t._assign=Kde(d),t.composing||document.activeElement===t&&t.type!=="range"&&(o||f&&t.value.trim()===e||(P||t.type==="number")&&mae(t.value)===e))return;const l=e??"";t.value!==l&&(t.value=l)}},I5e=["ctrl","shift","alt","meta"],D5e={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>I5e.some(o=>t[`${o}Key`]&&!e.includes(o))},DH=(t,e)=>(o,...f)=>{for(let P=0;Po=>{if(!("key"in o))return;const f=xT(o.key);if(e.some(P=>P===f||B5e[P]===f))return t(o)},pS={beforeMount(t,{value:e},{transition:o}){t._vod=t.style.display==="none"?"":t.style.display,o&&e?o.beforeEnter(t):PL(t,e)},mounted(t,{value:e},{transition:o}){o&&e&&o.enter(t)},updated(t,{value:e,oldValue:o},{transition:f}){!e!=!o&&(f?e?(f.beforeEnter(t),PL(t,!0),f.enter(t)):f.leave(t,()=>{PL(t,!1)}):PL(t,e))},beforeUnmount(t,{value:e}){PL(t,e)}};function PL(t,e){t.style.display=e?t._vod:"none"}const z5e=Nh({patchProp:w5e},c5e);let ehe;function F5e(){return ehe||(ehe=VSe(z5e))}const N5e=(...t)=>{const e=F5e().createApp(...t),{mount:o}=e;return e.mount=f=>{const P=$5e(f);if(!P)return;const d=e._component;!ll(d)&&!d.render&&!d.template&&(d.template=P.innerHTML),P.innerHTML="";const l=o(P,!1,P instanceof SVGElement);return P instanceof Element&&(P.removeAttribute("v-cloak"),P.setAttribute("data-v-app","")),l},e};function $5e(t){return hh(t)?document.querySelector(t):t}/*! +var UOe=Object.defineProperty;var jOe=(t,e,o)=>e in t?UOe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var _c=(t,e,o)=>(jOe(t,typeof e!="symbol"?e+"":e,o),o),QOe=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)};var Woe=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)};var gQ=(t,e,o)=>(QOe(t,e,"access private method"),o);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const P of document.querySelectorAll('link[rel="modulepreload"]'))f(P);new MutationObserver(P=>{for(const d of P)if(d.type==="childList")for(const l of d.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&f(l)}).observe(document,{childList:!0,subtree:!0});function o(P){const d={};return P.integrity&&(d.integrity=P.integrity),P.referrerPolicy&&(d.referrerPolicy=P.referrerPolicy),P.crossOrigin==="use-credentials"?d.credentials="include":P.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function f(P){if(P.ep)return;P.ep=!0;const d=o(P);fetch(P.href,d)}})();function B0e(t,e){return function(){return t.apply(e,arguments)}}const{toString:HOe}=Object.prototype,{getPrototypeOf:cle}=Object,RZ=(t=>e=>{const o=HOe.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),g_=t=>(t=t.toLowerCase(),e=>RZ(e)===t),LZ=t=>e=>typeof e===t,{isArray:SM}=Array,vI=LZ("undefined");function ZOe(t){return t!==null&&!vI(t)&&t.constructor!==null&&!vI(t.constructor)&&Jy(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const z0e=g_("ArrayBuffer");function qOe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&z0e(t.buffer),e}const WOe=LZ("string"),Jy=LZ("function"),F0e=LZ("number"),IZ=t=>t!==null&&typeof t=="object",YOe=t=>t===!0||t===!1,iH=t=>{if(RZ(t)!=="object")return!1;const e=cle(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},XOe=g_("Date"),GOe=g_("File"),KOe=g_("Blob"),JOe=g_("FileList"),e3e=t=>IZ(t)&&Jy(t.pipe),t3e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Jy(t.append)&&((e=RZ(t))==="formdata"||e==="object"&&Jy(t.toString)&&t.toString()==="[object FormData]"))},n3e=g_("URLSearchParams"),r3e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sD(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let f,P;if(typeof t!="object"&&(t=[t]),SM(t))for(f=0,P=t.length;f0;)if(P=o[f],e===P.toLowerCase())return P;return null}const $0e=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),V0e=t=>!vI(t)&&t!==$0e;function uae(){const{caseless:t}=V0e(this)&&this||{},e={},o=(f,P)=>{const d=t&&N0e(e,P)||P;iH(e[d])&&iH(f)?e[d]=uae(e[d],f):iH(f)?e[d]=uae({},f):SM(f)?e[d]=f.slice():e[d]=f};for(let f=0,P=arguments.length;f(sD(e,(P,d)=>{o&&Jy(P)?t[d]=B0e(P,o):t[d]=P},{allOwnKeys:f}),t),i3e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),a3e=(t,e,o,f)=>{t.prototype=Object.create(e.prototype,f),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},s3e=(t,e,o,f)=>{let P,d,l;const n={};if(e=e||{},t==null)return e;do{for(P=Object.getOwnPropertyNames(t),d=P.length;d-- >0;)l=P[d],(!f||f(l,t,e))&&!n[l]&&(e[l]=t[l],n[l]=!0);t=o!==!1&&cle(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},l3e=(t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;const f=t.indexOf(e,o);return f!==-1&&f===o},c3e=t=>{if(!t)return null;if(SM(t))return t;let e=t.length;if(!F0e(e))return null;const o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},u3e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&cle(Uint8Array)),f3e=(t,e)=>{const f=(t&&t[Symbol.iterator]).call(t);let P;for(;(P=f.next())&&!P.done;){const d=P.value;e.call(t,d[0],d[1])}},d3e=(t,e)=>{let o;const f=[];for(;(o=t.exec(e))!==null;)f.push(o);return f},h3e=g_("HTMLFormElement"),p3e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,f,P){return f.toUpperCase()+P}),ide=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),m3e=g_("RegExp"),U0e=(t,e)=>{const o=Object.getOwnPropertyDescriptors(t),f={};sD(o,(P,d)=>{let l;(l=e(P,d,t))!==!1&&(f[d]=l||P)}),Object.defineProperties(t,f)},g3e=t=>{U0e(t,(e,o)=>{if(Jy(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const f=t[o];if(Jy(f)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},v3e=(t,e)=>{const o={},f=P=>{P.forEach(d=>{o[d]=!0})};return SM(t)?f(t):f(String(t).split(e)),o},y3e=()=>{},b3e=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Yoe="abcdefghijklmnopqrstuvwxyz",ade="0123456789",j0e={DIGIT:ade,ALPHA:Yoe,ALPHA_DIGIT:Yoe+Yoe.toUpperCase()+ade},x3e=(t=16,e=j0e.ALPHA_DIGIT)=>{let o="";const{length:f}=e;for(;t--;)o+=e[Math.random()*f|0];return o};function _3e(t){return!!(t&&Jy(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const w3e=t=>{const e=new Array(10),o=(f,P)=>{if(IZ(f)){if(e.indexOf(f)>=0)return;if(!("toJSON"in f)){e[P]=f;const d=SM(f)?[]:{};return sD(f,(l,n)=>{const c=o(l,P+1);!vI(c)&&(d[n]=c)}),e[P]=void 0,d}}return f};return o(t,0)},O3e=g_("AsyncFunction"),S3e=t=>t&&(IZ(t)||Jy(t))&&Jy(t.then)&&Jy(t.catch),ui={isArray:SM,isArrayBuffer:z0e,isBuffer:ZOe,isFormData:t3e,isArrayBufferView:qOe,isString:WOe,isNumber:F0e,isBoolean:YOe,isObject:IZ,isPlainObject:iH,isUndefined:vI,isDate:XOe,isFile:GOe,isBlob:KOe,isRegExp:m3e,isFunction:Jy,isStream:e3e,isURLSearchParams:n3e,isTypedArray:u3e,isFileList:JOe,forEach:sD,merge:uae,extend:o3e,trim:r3e,stripBOM:i3e,inherits:a3e,toFlatObject:s3e,kindOf:RZ,kindOfTest:g_,endsWith:l3e,toArray:c3e,forEachEntry:f3e,matchAll:d3e,isHTMLForm:h3e,hasOwnProperty:ide,hasOwnProp:ide,reduceDescriptors:U0e,freezeMethods:g3e,toObjectSet:v3e,toCamelCase:p3e,noop:y3e,toFiniteNumber:b3e,findKey:N0e,global:$0e,isContextDefined:V0e,ALPHABET:j0e,generateString:x3e,isSpecCompliantForm:_3e,toJSONObject:w3e,isAsyncFn:O3e,isThenable:S3e};function Ic(t,e,o,f,P){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),f&&(this.request=f),P&&(this.response=P)}ui.inherits(Ic,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ui.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Q0e=Ic.prototype,H0e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{H0e[t]={value:t}});Object.defineProperties(Ic,H0e);Object.defineProperty(Q0e,"isAxiosError",{value:!0});Ic.from=(t,e,o,f,P,d)=>{const l=Object.create(Q0e);return ui.toFlatObject(t,l,function(c){return c!==Error.prototype},n=>n!=="isAxiosError"),Ic.call(l,t.message,e,o,f,P),l.cause=t,l.name=t.name,d&&Object.assign(l,d),l};const k3e=null;function fae(t){return ui.isPlainObject(t)||ui.isArray(t)}function Z0e(t){return ui.endsWith(t,"[]")?t.slice(0,-2):t}function sde(t,e,o){return t?t.concat(e).map(function(P,d){return P=Z0e(P),!o&&d?"["+P+"]":P}).join(o?".":""):e}function T3e(t){return ui.isArray(t)&&!t.some(fae)}const C3e=ui.toFlatObject(ui,{},null,function(e){return/^is[A-Z]/.test(e)});function DZ(t,e,o){if(!ui.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,o=ui.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,u){return!ui.isUndefined(u[a])});const f=o.metaTokens,P=o.visitor||i,d=o.dots,l=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&ui.isSpecCompliantForm(e);if(!ui.isFunction(P))throw new TypeError("visitor must be a function");function b(p){if(p===null)return"";if(ui.isDate(p))return p.toISOString();if(!c&&ui.isBlob(p))throw new Ic("Blob is not supported. Use a Buffer instead.");return ui.isArrayBuffer(p)||ui.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function i(p,a,u){let h=p;if(p&&!u&&typeof p=="object"){if(ui.endsWith(a,"{}"))a=f?a:a.slice(0,-2),p=JSON.stringify(p);else if(ui.isArray(p)&&T3e(p)||(ui.isFileList(p)||ui.endsWith(a,"[]"))&&(h=ui.toArray(p)))return a=Z0e(a),h.forEach(function(v,_){!(ui.isUndefined(v)||v===null)&&e.append(l===!0?sde([a],_,d):l===null?a:a+"[]",b(v))}),!1}return fae(p)?!0:(e.append(sde(u,a,d),b(p)),!1)}const O=[],w=Object.assign(C3e,{defaultVisitor:i,convertValue:b,isVisitable:fae});function y(p,a){if(!ui.isUndefined(p)){if(O.indexOf(p)!==-1)throw Error("Circular reference detected in "+a.join("."));O.push(p),ui.forEach(p,function(h,m){(!(ui.isUndefined(h)||h===null)&&P.call(e,h,ui.isString(m)?m.trim():m,a,w))===!0&&y(h,a?a.concat(m):[m])}),O.pop()}}if(!ui.isObject(t))throw new TypeError("data must be an object");return y(t),e}function lde(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(f){return e[f]})}function ule(t,e){this._pairs=[],t&&DZ(t,this,e)}const q0e=ule.prototype;q0e.append=function(e,o){this._pairs.push([e,o])};q0e.toString=function(e){const o=e?function(f){return e.call(this,f,lde)}:lde;return this._pairs.map(function(P){return o(P[0])+"="+o(P[1])},"").join("&")};function A3e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W0e(t,e,o){if(!e)return t;const f=o&&o.encode||A3e,P=o&&o.serialize;let d;if(P?d=P(e,o):d=ui.isURLSearchParams(e)?e.toString():new ule(e,o).toString(f),d){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+d}return t}class M3e{constructor(){this.handlers=[]}use(e,o,f){return this.handlers.push({fulfilled:e,rejected:o,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ui.forEach(this.handlers,function(f){f!==null&&e(f)})}}const cde=M3e,Y0e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},E3e=typeof URLSearchParams<"u"?URLSearchParams:ule,P3e=typeof FormData<"u"?FormData:null,R3e=typeof Blob<"u"?Blob:null,L3e={isBrowser:!0,classes:{URLSearchParams:E3e,FormData:P3e,Blob:R3e},protocols:["http","https","file","blob","url","data"]},X0e=typeof window<"u"&&typeof document<"u",I3e=(t=>X0e&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),D3e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),B3e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:X0e,hasStandardBrowserEnv:I3e,hasStandardBrowserWebWorkerEnv:D3e},Symbol.toStringTag,{value:"Module"})),o_={...B3e,...L3e};function z3e(t,e){return DZ(t,new o_.classes.URLSearchParams,Object.assign({visitor:function(o,f,P,d){return o_.isNode&&ui.isBuffer(o)?(this.append(f,o.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},e))}function F3e(t){return ui.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function N3e(t){const e={},o=Object.keys(t);let f;const P=o.length;let d;for(f=0;f=o.length;return l=!l&&ui.isArray(P)?P.length:l,c?(ui.hasOwnProp(P,l)?P[l]=[P[l],f]:P[l]=f,!n):((!P[l]||!ui.isObject(P[l]))&&(P[l]=[]),e(o,f,P[l],d)&&ui.isArray(P[l])&&(P[l]=N3e(P[l])),!n)}if(ui.isFormData(t)&&ui.isFunction(t.entries)){const o={};return ui.forEachEntry(t,(f,P)=>{e(F3e(f),P,o,0)}),o}return null}function $3e(t,e,o){if(ui.isString(t))try{return(e||JSON.parse)(t),ui.trim(t)}catch(f){if(f.name!=="SyntaxError")throw f}return(o||JSON.stringify)(t)}const fle={transitional:Y0e,adapter:["xhr","http"],transformRequest:[function(e,o){const f=o.getContentType()||"",P=f.indexOf("application/json")>-1,d=ui.isObject(e);if(d&&ui.isHTMLForm(e)&&(e=new FormData(e)),ui.isFormData(e))return P&&P?JSON.stringify(G0e(e)):e;if(ui.isArrayBuffer(e)||ui.isBuffer(e)||ui.isStream(e)||ui.isFile(e)||ui.isBlob(e))return e;if(ui.isArrayBufferView(e))return e.buffer;if(ui.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(d){if(f.indexOf("application/x-www-form-urlencoded")>-1)return z3e(e,this.formSerializer).toString();if((n=ui.isFileList(e))||f.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return DZ(n?{"files[]":e}:e,c&&new c,this.formSerializer)}}return d||P?(o.setContentType("application/json",!1),$3e(e)):e}],transformResponse:[function(e){const o=this.transitional||fle.transitional,f=o&&o.forcedJSONParsing,P=this.responseType==="json";if(e&&ui.isString(e)&&(f&&!this.responseType||P)){const l=!(o&&o.silentJSONParsing)&&P;try{return JSON.parse(e)}catch(n){if(l)throw n.name==="SyntaxError"?Ic.from(n,Ic.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:o_.classes.FormData,Blob:o_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ui.forEach(["delete","get","head","post","put","patch"],t=>{fle.headers[t]={}});const dle=fle,V3e=ui.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),U3e=t=>{const e={};let o,f,P;return t&&t.split(` +`).forEach(function(l){P=l.indexOf(":"),o=l.substring(0,P).trim().toLowerCase(),f=l.substring(P+1).trim(),!(!o||e[o]&&V3e[o])&&(o==="set-cookie"?e[o]?e[o].push(f):e[o]=[f]:e[o]=e[o]?e[o]+", "+f:f)}),e},ude=Symbol("internals");function EL(t){return t&&String(t).trim().toLowerCase()}function aH(t){return t===!1||t==null?t:ui.isArray(t)?t.map(aH):String(t)}function j3e(t){const e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let f;for(;f=o.exec(t);)e[f[1]]=f[2];return e}const Q3e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xoe(t,e,o,f,P){if(ui.isFunction(f))return f.call(this,e,o);if(P&&(e=o),!!ui.isString(e)){if(ui.isString(f))return e.indexOf(f)!==-1;if(ui.isRegExp(f))return f.test(e)}}function H3e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,f)=>o.toUpperCase()+f)}function Z3e(t,e){const o=ui.toCamelCase(" "+e);["get","set","has"].forEach(f=>{Object.defineProperty(t,f+o,{value:function(P,d,l){return this[f].call(this,e,P,d,l)},configurable:!0})})}class BZ{constructor(e){e&&this.set(e)}set(e,o,f){const P=this;function d(n,c,b){const i=EL(c);if(!i)throw new Error("header name must be a non-empty string");const O=ui.findKey(P,i);(!O||P[O]===void 0||b===!0||b===void 0&&P[O]!==!1)&&(P[O||c]=aH(n))}const l=(n,c)=>ui.forEach(n,(b,i)=>d(b,i,c));return ui.isPlainObject(e)||e instanceof this.constructor?l(e,o):ui.isString(e)&&(e=e.trim())&&!Q3e(e)?l(U3e(e),o):e!=null&&d(o,e,f),this}get(e,o){if(e=EL(e),e){const f=ui.findKey(this,e);if(f){const P=this[f];if(!o)return P;if(o===!0)return j3e(P);if(ui.isFunction(o))return o.call(this,P,f);if(ui.isRegExp(o))return o.exec(P);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=EL(e),e){const f=ui.findKey(this,e);return!!(f&&this[f]!==void 0&&(!o||Xoe(this,this[f],f,o)))}return!1}delete(e,o){const f=this;let P=!1;function d(l){if(l=EL(l),l){const n=ui.findKey(f,l);n&&(!o||Xoe(f,f[n],n,o))&&(delete f[n],P=!0)}}return ui.isArray(e)?e.forEach(d):d(e),P}clear(e){const o=Object.keys(this);let f=o.length,P=!1;for(;f--;){const d=o[f];(!e||Xoe(this,this[d],d,e,!0))&&(delete this[d],P=!0)}return P}normalize(e){const o=this,f={};return ui.forEach(this,(P,d)=>{const l=ui.findKey(f,d);if(l){o[l]=aH(P),delete o[d];return}const n=e?H3e(d):String(d).trim();n!==d&&delete o[d],o[n]=aH(P),f[n]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const o=Object.create(null);return ui.forEach(this,(f,P)=>{f!=null&&f!==!1&&(o[P]=e&&ui.isArray(f)?f.join(", "):f)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const f=new this(e);return o.forEach(P=>f.set(P)),f}static accessor(e){const f=(this[ude]=this[ude]={accessors:{}}).accessors,P=this.prototype;function d(l){const n=EL(l);f[n]||(Z3e(P,l),f[n]=!0)}return ui.isArray(e)?e.forEach(d):d(e),this}}BZ.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ui.reduceDescriptors(BZ.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(f){this[o]=f}}});ui.freezeMethods(BZ);const wO=BZ;function Goe(t,e){const o=this||dle,f=e||o,P=wO.from(f.headers);let d=f.data;return ui.forEach(t,function(n){d=n.call(o,d,P.normalize(),e?e.status:void 0)}),P.normalize(),d}function K0e(t){return!!(t&&t.__CANCEL__)}function lD(t,e,o){Ic.call(this,t??"canceled",Ic.ERR_CANCELED,e,o),this.name="CanceledError"}ui.inherits(lD,Ic,{__CANCEL__:!0});function q3e(t,e,o){const f=o.config.validateStatus;!o.status||!f||f(o.status)?t(o):e(new Ic("Request failed with status code "+o.status,[Ic.ERR_BAD_REQUEST,Ic.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const W3e=o_.hasStandardBrowserEnv?{write(t,e,o,f,P,d){const l=[t+"="+encodeURIComponent(e)];ui.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),ui.isString(f)&&l.push("path="+f),ui.isString(P)&&l.push("domain="+P),d===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Y3e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function X3e(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function J0e(t,e){return t&&!Y3e(e)?X3e(t,e):e}const G3e=o_.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let f;function P(d){let l=d;return e&&(o.setAttribute("href",l),l=o.href),o.setAttribute("href",l),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return f=P(window.location.href),function(l){const n=ui.isString(l)?P(l):l;return n.protocol===f.protocol&&n.host===f.host}}():function(){return function(){return!0}}();function K3e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function J3e(t,e){t=t||10;const o=new Array(t),f=new Array(t);let P=0,d=0,l;return e=e!==void 0?e:1e3,function(c){const b=Date.now(),i=f[d];l||(l=b),o[P]=c,f[P]=b;let O=d,w=0;for(;O!==P;)w+=o[O++],O=O%t;if(P=(P+1)%t,P===d&&(d=(d+1)%t),b-l{const d=P.loaded,l=P.lengthComputable?P.total:void 0,n=d-o,c=f(n),b=d<=l;o=d;const i={loaded:d,total:l,progress:l?d/l:void 0,bytes:n,rate:c||void 0,estimated:c&&l&&b?(l-d)/c:void 0,event:P};i[e?"download":"upload"]=!0,t(i)}}const e4e=typeof XMLHttpRequest<"u",t4e=e4e&&function(t){return new Promise(function(o,f){let P=t.data;const d=wO.from(t.headers).normalize();let{responseType:l,withXSRFToken:n}=t,c;function b(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}let i;if(ui.isFormData(P)){if(o_.hasStandardBrowserEnv||o_.hasStandardBrowserWebWorkerEnv)d.setContentType(!1);else if((i=d.getContentType())!==!1){const[a,...u]=i?i.split(";").map(h=>h.trim()).filter(Boolean):[];d.setContentType([a||"multipart/form-data",...u].join("; "))}}let O=new XMLHttpRequest;if(t.auth){const a=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.set("Authorization","Basic "+btoa(a+":"+u))}const w=J0e(t.baseURL,t.url);O.open(t.method.toUpperCase(),W0e(w,t.params,t.paramsSerializer),!0),O.timeout=t.timeout;function y(){if(!O)return;const a=wO.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),h={data:!l||l==="text"||l==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:a,config:t,request:O};q3e(function(v){o(v),b()},function(v){f(v),b()},h),O=null}if("onloadend"in O?O.onloadend=y:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(y)},O.onabort=function(){O&&(f(new Ic("Request aborted",Ic.ECONNABORTED,t,O)),O=null)},O.onerror=function(){f(new Ic("Network Error",Ic.ERR_NETWORK,t,O)),O=null},O.ontimeout=function(){let u=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const h=t.transitional||Y0e;t.timeoutErrorMessage&&(u=t.timeoutErrorMessage),f(new Ic(u,h.clarifyTimeoutError?Ic.ETIMEDOUT:Ic.ECONNABORTED,t,O)),O=null},o_.hasStandardBrowserEnv&&(n&&ui.isFunction(n)&&(n=n(t)),n||n!==!1&&G3e(w))){const a=t.xsrfHeaderName&&t.xsrfCookieName&&W3e.read(t.xsrfCookieName);a&&d.set(t.xsrfHeaderName,a)}P===void 0&&d.setContentType(null),"setRequestHeader"in O&&ui.forEach(d.toJSON(),function(u,h){O.setRequestHeader(h,u)}),ui.isUndefined(t.withCredentials)||(O.withCredentials=!!t.withCredentials),l&&l!=="json"&&(O.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&O.addEventListener("progress",fde(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&O.upload&&O.upload.addEventListener("progress",fde(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=a=>{O&&(f(!a||a.type?new lD(null,t,O):a),O.abort(),O=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));const p=K3e(w);if(p&&o_.protocols.indexOf(p)===-1){f(new Ic("Unsupported protocol "+p+":",Ic.ERR_BAD_REQUEST,t));return}O.send(P||null)})},dae={http:k3e,xhr:t4e};ui.forEach(dae,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const dde=t=>`- ${t}`,n4e=t=>ui.isFunction(t)||t===null||t===!1,e1e={getAdapter:t=>{t=ui.isArray(t)?t:[t];const{length:e}=t;let o,f;const P={};for(let d=0;d`adapter ${n} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=e?d.length>1?`since : +`+d.map(dde).join(` +`):" "+dde(d[0]):"as no adapter specified";throw new Ic("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return f},adapters:dae};function Koe(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new lD(null,t)}function hde(t){return Koe(t),t.headers=wO.from(t.headers),t.data=Goe.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),e1e.getAdapter(t.adapter||dle.adapter)(t).then(function(f){return Koe(t),f.data=Goe.call(t,t.transformResponse,f),f.headers=wO.from(f.headers),f},function(f){return K0e(f)||(Koe(t),f&&f.response&&(f.response.data=Goe.call(t,t.transformResponse,f.response),f.response.headers=wO.from(f.response.headers))),Promise.reject(f)})}const pde=t=>t instanceof wO?t.toJSON():t;function rM(t,e){e=e||{};const o={};function f(b,i,O){return ui.isPlainObject(b)&&ui.isPlainObject(i)?ui.merge.call({caseless:O},b,i):ui.isPlainObject(i)?ui.merge({},i):ui.isArray(i)?i.slice():i}function P(b,i,O){if(ui.isUndefined(i)){if(!ui.isUndefined(b))return f(void 0,b,O)}else return f(b,i,O)}function d(b,i){if(!ui.isUndefined(i))return f(void 0,i)}function l(b,i){if(ui.isUndefined(i)){if(!ui.isUndefined(b))return f(void 0,b)}else return f(void 0,i)}function n(b,i,O){if(O in e)return f(b,i);if(O in t)return f(void 0,b)}const c={url:d,method:d,data:d,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(b,i)=>P(pde(b),pde(i),!0)};return ui.forEach(Object.keys(Object.assign({},t,e)),function(i){const O=c[i]||P,w=O(t[i],e[i],i);ui.isUndefined(w)&&O!==n||(o[i]=w)}),o}const t1e="1.6.2",hle={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{hle[t]=function(f){return typeof f===t||"a"+(e<1?"n ":" ")+t}});const mde={};hle.transitional=function(e,o,f){function P(d,l){return"[Axios v"+t1e+"] Transitional option '"+d+"'"+l+(f?". "+f:"")}return(d,l,n)=>{if(e===!1)throw new Ic(P(l," has been removed"+(o?" in "+o:"")),Ic.ERR_DEPRECATED);return o&&!mde[l]&&(mde[l]=!0,console.warn(P(l," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(d,l,n):!0}};function r4e(t,e,o){if(typeof t!="object")throw new Ic("options must be an object",Ic.ERR_BAD_OPTION_VALUE);const f=Object.keys(t);let P=f.length;for(;P-- >0;){const d=f[P],l=e[d];if(l){const n=t[d],c=n===void 0||l(n,d,t);if(c!==!0)throw new Ic("option "+d+" must be "+c,Ic.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new Ic("Unknown option "+d,Ic.ERR_BAD_OPTION)}}const hae={assertOptions:r4e,validators:hle},I4=hae.validators;class MH{constructor(e){this.defaults=e,this.interceptors={request:new cde,response:new cde}}request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=rM(this.defaults,o);const{transitional:f,paramsSerializer:P,headers:d}=o;f!==void 0&&hae.assertOptions(f,{silentJSONParsing:I4.transitional(I4.boolean),forcedJSONParsing:I4.transitional(I4.boolean),clarifyTimeoutError:I4.transitional(I4.boolean)},!1),P!=null&&(ui.isFunction(P)?o.paramsSerializer={serialize:P}:hae.assertOptions(P,{encode:I4.function,serialize:I4.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let l=d&&ui.merge(d.common,d[o.method]);d&&ui.forEach(["delete","get","head","post","put","patch","common"],p=>{delete d[p]}),o.headers=wO.concat(l,d);const n=[];let c=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(o)===!1||(c=c&&a.synchronous,n.unshift(a.fulfilled,a.rejected))});const b=[];this.interceptors.response.forEach(function(a){b.push(a.fulfilled,a.rejected)});let i,O=0,w;if(!c){const p=[hde.bind(this),void 0];for(p.unshift.apply(p,n),p.push.apply(p,b),w=p.length,i=Promise.resolve(o);O{if(!f._listeners)return;let d=f._listeners.length;for(;d-- >0;)f._listeners[d](P);f._listeners=null}),this.promise.then=P=>{let d;const l=new Promise(n=>{f.subscribe(n),d=n}).then(P);return l.cancel=function(){f.unsubscribe(d)},l},e(function(d,l,n){f.reason||(f.reason=new lD(d,l,n),o(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}static source(){let e;return{token:new ple(function(P){e=P}),cancel:e}}}const o4e=ple;function i4e(t){return function(o){return t.apply(null,o)}}function a4e(t){return ui.isObject(t)&&t.isAxiosError===!0}const pae={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pae).forEach(([t,e])=>{pae[e]=t});const s4e=pae;function n1e(t){const e=new sH(t),o=B0e(sH.prototype.request,e);return ui.extend(o,sH.prototype,e,{allOwnKeys:!0}),ui.extend(o,e,null,{allOwnKeys:!0}),o.create=function(P){return n1e(rM(t,P))},o}const Jh=n1e(dle);Jh.Axios=sH;Jh.CanceledError=lD;Jh.CancelToken=o4e;Jh.isCancel=K0e;Jh.VERSION=t1e;Jh.toFormData=DZ;Jh.AxiosError=Ic;Jh.Cancel=Jh.CanceledError;Jh.all=function(e){return Promise.all(e)};Jh.spread=i4e;Jh.isAxiosError=a4e;Jh.mergeConfig=rM;Jh.AxiosHeaders=wO;Jh.formToJSON=t=>G0e(ui.isHTMLForm(t)?new FormData(t):t);Jh.getAdapter=e1e.getAdapter;Jh.HttpStatusCode=s4e;Jh.default=Jh;const fu=Jh;function mle(t,e){const o=Object.create(null),f=t.split(",");for(let P=0;P!!o[P.toLowerCase()]:P=>!!o[P]}const od={},ZA=[],yx=()=>{},l4e=()=>!1,c4e=/^on[^a-z]/,zZ=t=>c4e.test(t),gle=t=>t.startsWith("onUpdate:"),Nh=Object.assign,vle=(t,e)=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)},u4e=Object.prototype.hasOwnProperty,Zc=(t,e)=>u4e.call(t,e),xs=Array.isArray,qA=t=>FZ(t)==="[object Map]",r1e=t=>FZ(t)==="[object Set]",ll=t=>typeof t=="function",hh=t=>typeof t=="string",yle=t=>typeof t=="symbol",Ff=t=>t!==null&&typeof t=="object",o1e=t=>Ff(t)&&ll(t.then)&&ll(t.catch),i1e=Object.prototype.toString,FZ=t=>i1e.call(t),f4e=t=>FZ(t).slice(8,-1),a1e=t=>FZ(t)==="[object Object]",ble=t=>hh(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,lH=mle(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),NZ=t=>{const e=Object.create(null);return o=>e[o]||(e[o]=t(o))},d4e=/-(\w)/g,rb=NZ(t=>t.replace(d4e,(e,o)=>o?o.toUpperCase():"")),h4e=/\B([A-Z])/g,xT=NZ(t=>t.replace(h4e,"-$1").toLowerCase()),v_=NZ(t=>t.charAt(0).toUpperCase()+t.slice(1)),tI=NZ(t=>t?`on${v_(t)}`:""),yI=(t,e)=>!Object.is(t,e),cH=(t,e)=>{for(let o=0;o{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:o})},mae=t=>{const e=parseFloat(t);return isNaN(e)?t:e},s1e=t=>{const e=hh(t)?Number(t):NaN;return isNaN(e)?t:e};let gde;const gae=()=>gde||(gde=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function cD(t){if(xs(t)){const e={};for(let o=0;o{if(o){const f=o.split(m4e);f.length>1&&(e[f[0].trim()]=f[1].trim())}}),e}function Nv(t){let e="";if(hh(t))e=t;else if(xs(t))for(let o=0;ohh(t)?t:t==null?"":xs(t)||Ff(t)&&(t.toString===i1e||!ll(t.toString))?JSON.stringify(t,c1e,2):String(t),c1e=(t,e)=>e&&e.__v_isRef?c1e(t,e.value):qA(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((o,[f,P])=>(o[`${f} =>`]=P,o),{})}:r1e(e)?{[`Set(${e.size})`]:[...e.values()]}:Ff(e)&&!xs(e)&&!a1e(e)?String(e):e;let Rv;class u1e{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Rv,!e&&Rv&&(this.index=(Rv.scopes||(Rv.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const o=Rv;try{return Rv=this,e()}finally{Rv=o}}}on(){Rv=this}off(){Rv=this.parent}stop(e){if(this._active){let o,f;for(o=0,f=this.effects.length;o{const e=new Set(t);return e.w=0,e.n=0,e},d1e=t=>(t.w&rS)>0,h1e=t=>(t.n&rS)>0,_4e=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let o=0;for(let f=0;f{(i==="length"||i>=c)&&n.push(b)})}else switch(o!==void 0&&n.push(l.get(o)),e){case"add":xs(t)?ble(o)&&n.push(l.get("length")):(n.push(l.get(cT)),qA(t)&&n.push(l.get(yae)));break;case"delete":xs(t)||(n.push(l.get(cT)),qA(t)&&n.push(l.get(yae)));break;case"set":qA(t)&&n.push(l.get(cT));break}if(n.length===1)n[0]&&bae(n[0]);else{const c=[];for(const b of n)b&&c.push(...b);bae(xle(c))}}function bae(t,e){const o=xs(t)?t:[...t];for(const f of o)f.computed&&yde(f);for(const f of o)f.computed||yde(f)}function yde(t,e){(t!==vx||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function O4e(t,e){var o;return(o=PH.get(t))==null?void 0:o.get(e)}const S4e=mle("__proto__,__v_isRef,__isVue"),g1e=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(yle)),k4e=wle(),T4e=wle(!1,!0),C4e=wle(!0),bde=A4e();function A4e(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...o){const f=As(this);for(let d=0,l=this.length;d{t[e]=function(...o){kM();const f=As(this)[e].apply(this,o);return TM(),f}}),t}function M4e(t){const e=As(this);return _1(e,"has",t),e.hasOwnProperty(t)}function wle(t=!1,e=!1){return function(f,P,d){if(P==="__v_isReactive")return!t;if(P==="__v_isReadonly")return t;if(P==="__v_isShallow")return e;if(P==="__v_raw"&&d===(t?e?H4e:_1e:e?x1e:b1e).get(f))return f;const l=xs(f);if(!t){if(l&&Zc(bde,P))return Reflect.get(bde,P,d);if(P==="hasOwnProperty")return M4e}const n=Reflect.get(f,P,d);return(yle(P)?g1e.has(P):S4e(P))||(t||_1(f,"get",P),e)?n:Dc(n)?l&&ble(P)?n:n.value:Ff(n)?t?CM(n):lm(n):n}}const E4e=v1e(),P4e=v1e(!0);function v1e(t=!1){return function(o,f,P,d){let l=o[f];if(oM(l)&&Dc(l)&&!Dc(P))return!1;if(!t&&(!RH(P)&&!oM(P)&&(l=As(l),P=As(P)),!xs(o)&&Dc(l)&&!Dc(P)))return l.value=P,!0;const n=xs(o)&&ble(f)?Number(f)t,$Z=t=>Reflect.getPrototypeOf(t);function vQ(t,e,o=!1,f=!1){t=t.__v_raw;const P=As(t),d=As(e);o||(e!==d&&_1(P,"get",e),_1(P,"get",d));const{has:l}=$Z(P),n=f?Ole:o?Tle:bI;if(l.call(P,e))return n(t.get(e));if(l.call(P,d))return n(t.get(d));t!==P&&t.get(e)}function yQ(t,e=!1){const o=this.__v_raw,f=As(o),P=As(t);return e||(t!==P&&_1(f,"has",t),_1(f,"has",P)),t===P?o.has(t):o.has(t)||o.has(P)}function bQ(t,e=!1){return t=t.__v_raw,!e&&_1(As(t),"iterate",cT),Reflect.get(t,"size",t)}function xde(t){t=As(t);const e=As(this);return $Z(e).has.call(e,t)||(e.add(t),kO(e,"add",t,t)),this}function _de(t,e){e=As(e);const o=As(this),{has:f,get:P}=$Z(o);let d=f.call(o,t);d||(t=As(t),d=f.call(o,t));const l=P.call(o,t);return o.set(t,e),d?yI(e,l)&&kO(o,"set",t,e):kO(o,"add",t,e),this}function wde(t){const e=As(this),{has:o,get:f}=$Z(e);let P=o.call(e,t);P||(t=As(t),P=o.call(e,t)),f&&f.call(e,t);const d=e.delete(t);return P&&kO(e,"delete",t,void 0),d}function Ode(){const t=As(this),e=t.size!==0,o=t.clear();return e&&kO(t,"clear",void 0,void 0),o}function xQ(t,e){return function(f,P){const d=this,l=d.__v_raw,n=As(l),c=e?Ole:t?Tle:bI;return!t&&_1(n,"iterate",cT),l.forEach((b,i)=>f.call(P,c(b),c(i),d))}}function _Q(t,e,o){return function(...f){const P=this.__v_raw,d=As(P),l=qA(d),n=t==="entries"||t===Symbol.iterator&&l,c=t==="keys"&&l,b=P[t](...f),i=o?Ole:e?Tle:bI;return!e&&_1(d,"iterate",c?yae:cT),{next(){const{value:O,done:w}=b.next();return w?{value:O,done:w}:{value:n?[i(O[0]),i(O[1])]:i(O),done:w}},[Symbol.iterator](){return this}}}}function D4(t){return function(...e){return t==="delete"?!1:this}}function z4e(){const t={get(d){return vQ(this,d)},get size(){return bQ(this)},has:yQ,add:xde,set:_de,delete:wde,clear:Ode,forEach:xQ(!1,!1)},e={get(d){return vQ(this,d,!1,!0)},get size(){return bQ(this)},has:yQ,add:xde,set:_de,delete:wde,clear:Ode,forEach:xQ(!1,!0)},o={get(d){return vQ(this,d,!0)},get size(){return bQ(this,!0)},has(d){return yQ.call(this,d,!0)},add:D4("add"),set:D4("set"),delete:D4("delete"),clear:D4("clear"),forEach:xQ(!0,!1)},f={get(d){return vQ(this,d,!0,!0)},get size(){return bQ(this,!0)},has(d){return yQ.call(this,d,!0)},add:D4("add"),set:D4("set"),delete:D4("delete"),clear:D4("clear"),forEach:xQ(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(d=>{t[d]=_Q(d,!1,!1),o[d]=_Q(d,!0,!1),e[d]=_Q(d,!1,!0),f[d]=_Q(d,!0,!0)}),[t,o,e,f]}const[F4e,N4e,$4e,V4e]=z4e();function Sle(t,e){const o=e?t?V4e:$4e:t?N4e:F4e;return(f,P,d)=>P==="__v_isReactive"?!t:P==="__v_isReadonly"?t:P==="__v_raw"?f:Reflect.get(Zc(o,P)&&P in f?o:f,P,d)}const U4e={get:Sle(!1,!1)},j4e={get:Sle(!1,!0)},Q4e={get:Sle(!0,!1)},b1e=new WeakMap,x1e=new WeakMap,_1e=new WeakMap,H4e=new WeakMap;function Z4e(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function q4e(t){return t.__v_skip||!Object.isExtensible(t)?0:Z4e(f4e(t))}function lm(t){return oM(t)?t:kle(t,!1,y1e,U4e,b1e)}function w1e(t){return kle(t,!1,B4e,j4e,x1e)}function CM(t){return kle(t,!0,D4e,Q4e,_1e)}function kle(t,e,o,f,P){if(!Ff(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const d=P.get(t);if(d)return d;const l=q4e(t);if(l===0)return t;const n=new Proxy(t,l===2?f:o);return P.set(t,n),n}function OO(t){return oM(t)?OO(t.__v_raw):!!(t&&t.__v_isReactive)}function oM(t){return!!(t&&t.__v_isReadonly)}function RH(t){return!!(t&&t.__v_isShallow)}function O1e(t){return OO(t)||oM(t)}function As(t){const e=t&&t.__v_raw;return e?As(e):t}function fD(t){return EH(t,"__v_skip",!0),t}const bI=t=>Ff(t)?lm(t):t,Tle=t=>Ff(t)?CM(t):t;function S1e(t){K4&&vx&&(t=As(t),m1e(t.dep||(t.dep=xle())))}function k1e(t,e){t=As(t);const o=t.dep;o&&bae(o)}function Dc(t){return!!(t&&t.__v_isRef===!0)}function ti(t){return T1e(t,!1)}function Ai(t){return T1e(t,!0)}function T1e(t,e){return Dc(t)?t:new W4e(t,e)}class W4e{constructor(e,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?e:As(e),this._value=o?e:bI(e)}get value(){return S1e(this),this._value}set value(e){const o=this.__v_isShallow||RH(e)||oM(e);e=o?e:As(e),yI(e,this._rawValue)&&(this._rawValue=e,this._value=o?e:bI(e),k1e(this))}}function wa(t){return Dc(t)?t.value:t}const Y4e={get:(t,e,o)=>wa(Reflect.get(t,e,o)),set:(t,e,o,f)=>{const P=t[e];return Dc(P)&&!Dc(o)?(P.value=o,!0):Reflect.set(t,e,o,f)}};function C1e(t){return OO(t)?t:new Proxy(t,Y4e)}function AM(t){const e=xs(t)?new Array(t.length):{};for(const o in t)e[o]=A1e(t,o);return e}class X4e{constructor(e,o,f){this._object=e,this._key=o,this._defaultValue=f,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return O4e(As(this._object),this._key)}}class G4e{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Oi(t,e,o){return Dc(t)?t:ll(t)?new G4e(t):Ff(t)&&arguments.length>1?A1e(t,e,o):ti(t)}function A1e(t,e,o){const f=t[e];return Dc(f)?f:new X4e(t,e,o)}class K4e{constructor(e,o,f,P){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new _le(e,()=>{this._dirty||(this._dirty=!0,k1e(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!P,this.__v_isReadonly=f}get value(){const e=As(this);return S1e(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function J4e(t,e,o=!1){let f,P;const d=ll(t);return d?(f=t,P=yx):(f=t.get,P=t.set),new K4e(f,P,d||!P,o)}function J4(t,e,o,f){let P;try{P=f?t(...f):t()}catch(d){dD(d,e,o)}return P}function eb(t,e,o,f){if(ll(t)){const d=J4(t,e,o,f);return d&&o1e(d)&&d.catch(l=>{dD(l,e,o)}),d}const P=[];for(let d=0;d>>1;_I($g[f])e_&&$g.splice(e,1)}function P1e(t){xs(t)?WA.push(...t):(!xO||!xO.includes(t,t.allowRecurse?eT+1:eT))&&WA.push(t),E1e()}function Sde(t,e=xI?e_+1:0){for(;e<$g.length;e++){const o=$g[e];o&&o.pre&&($g.splice(e,1),e--,o())}}function R1e(t){if(WA.length){const e=[...new Set(WA)];if(WA.length=0,xO){xO.push(...e);return}for(xO=e,xO.sort((o,f)=>_I(o)-_I(f)),eT=0;eTt.id==null?1/0:t.id,rSe=(t,e)=>{const o=_I(t)-_I(e);if(o===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return o};function L1e(t){xae=!1,xI=!0,$g.sort(rSe);const e=yx;try{for(e_=0;e_<$g.length;e_++){const o=$g[e_];o&&o.active!==!1&&J4(o,null,14)}}finally{e_=0,$g.length=0,R1e(),xI=!1,Cle=null,($g.length||WA.length)&&L1e()}}function oSe(t,e,...o){if(t.isUnmounted)return;const f=t.vnode.props||od;let P=o;const d=e.startsWith("update:"),l=d&&e.slice(7);if(l&&l in f){const i=`${l==="modelValue"?"model":l}Modifiers`,{number:O,trim:w}=f[i]||od;w&&(P=o.map(y=>hh(y)?y.trim():y)),O&&(P=o.map(mae))}let n,c=f[n=tI(e)]||f[n=tI(rb(e))];!c&&d&&(c=f[n=tI(xT(e))]),c&&eb(c,t,6,P);const b=f[n+"Once"];if(b){if(!t.emitted)t.emitted={};else if(t.emitted[n])return;t.emitted[n]=!0,eb(b,t,6,P)}}function I1e(t,e,o=!1){const f=e.emitsCache,P=f.get(t);if(P!==void 0)return P;const d=t.emits;let l={},n=!1;if(!ll(t)){const c=b=>{const i=I1e(b,e,!0);i&&(n=!0,Nh(l,i))};!o&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!d&&!n?(Ff(t)&&f.set(t,null),null):(xs(d)?d.forEach(c=>l[c]=null):Nh(l,d),Ff(t)&&f.set(t,l),l)}function VZ(t,e){return!t||!zZ(e)?!1:(e=e.slice(2).replace(/Once$/,""),Zc(t,e[0].toLowerCase()+e.slice(1))||Zc(t,xT(e))||Zc(t,e))}let cm=null,UZ=null;function LH(t){const e=cm;return cm=t,UZ=t&&t.type.__scopeId||null,e}function Mle(t){UZ=t}function Ele(){UZ=null}function Oo(t,e=cm,o){if(!e||t._n)return t;const f=(...P)=>{f._d&&Nde(-1);const d=LH(e);let l;try{l=t(...P)}finally{LH(d),f._d&&Nde(1)}return l};return f._n=!0,f._c=!0,f._d=!0,f}function Joe(t){const{type:e,vnode:o,proxy:f,withProxy:P,props:d,propsOptions:[l],slots:n,attrs:c,emit:b,render:i,renderCache:O,data:w,setupState:y,ctx:p,inheritAttrs:a}=t;let u,h;const m=LH(t);try{if(o.shapeFlag&4){const _=P||f;u=px(i.call(_,_,O,d,y,w,p)),h=c}else{const _=e;u=px(_.length>1?_(d,{attrs:c,slots:n,emit:b}):_(d,null)),h=e.props?c:aSe(c)}}catch(_){iI.length=0,dD(_,t,1),u=Ht(k0)}let v=u;if(h&&a!==!1){const _=Object.keys(h),{shapeFlag:S}=v;_.length&&S&7&&(l&&_.some(gle)&&(h=sSe(h,l)),v=TO(v,h))}return o.dirs&&(v=TO(v),v.dirs=v.dirs?v.dirs.concat(o.dirs):o.dirs),o.transition&&(v.transition=o.transition),u=v,LH(m),u}function iSe(t){let e;for(let o=0;o{let e;for(const o in t)(o==="class"||o==="style"||zZ(o))&&((e||(e={}))[o]=t[o]);return e},sSe=(t,e)=>{const o={};for(const f in t)(!gle(f)||!(f.slice(9)in e))&&(o[f]=t[f]);return o};function lSe(t,e,o){const{props:f,children:P,component:d}=t,{props:l,children:n,patchFlag:c}=e,b=d.emitsOptions;if(e.dirs||e.transition)return!0;if(o&&c>=0){if(c&1024)return!0;if(c&16)return f?kde(f,l,b):!!l;if(c&8){const i=e.dynamicProps;for(let O=0;Ot.__isSuspense,uSe={name:"Suspense",__isSuspense:!0,process(t,e,o,f,P,d,l,n,c,b){t==null?dSe(e,o,f,P,d,l,n,c,b):hSe(t,e,o,f,P,l,n,c,b)},hydrate:pSe,create:Rle,normalize:mSe},fSe=uSe;function wI(t,e){const o=t.props&&t.props[e];ll(o)&&o()}function dSe(t,e,o,f,P,d,l,n,c){const{p:b,o:{createElement:i}}=c,O=i("div"),w=t.suspense=Rle(t,P,f,e,O,o,d,l,n,c);b(null,w.pendingBranch=t.ssContent,O,null,f,w,d,l),w.deps>0?(wI(t,"onPending"),wI(t,"onFallback"),b(null,t.ssFallback,e,o,f,null,d,l),YA(w,t.ssFallback)):w.resolve(!1,!0)}function hSe(t,e,o,f,P,d,l,n,{p:c,um:b,o:{createElement:i}}){const O=e.suspense=t.suspense;O.vnode=e,e.el=t.el;const w=e.ssContent,y=e.ssFallback,{activeBranch:p,pendingBranch:a,isInFallback:u,isHydrating:h}=O;if(a)O.pendingBranch=w,t_(w,a)?(c(a,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0?O.resolve():u&&(c(p,y,o,f,P,null,d,l,n),YA(O,y))):(O.pendingId++,h?(O.isHydrating=!1,O.activeBranch=a):b(a,P,O),O.deps=0,O.effects.length=0,O.hiddenContainer=i("div"),u?(c(null,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0?O.resolve():(c(p,y,o,f,P,null,d,l,n),YA(O,y))):p&&t_(w,p)?(c(p,w,o,f,P,O,d,l,n),O.resolve(!0)):(c(null,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0&&O.resolve()));else if(p&&t_(w,p))c(p,w,o,f,P,O,d,l,n),YA(O,w);else if(wI(e,"onPending"),O.pendingBranch=w,O.pendingId++,c(null,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0)O.resolve();else{const{timeout:m,pendingId:v}=O;m>0?setTimeout(()=>{O.pendingId===v&&O.fallback(y)},m):m===0&&O.fallback(y)}}function Rle(t,e,o,f,P,d,l,n,c,b,i=!1){const{p:O,m:w,um:y,n:p,o:{parentNode:a,remove:u}}=b;let h;const m=vSe(t);m&&e!=null&&e.pendingBranch&&(h=e.pendingId,e.deps++);const v=t.props?s1e(t.props.timeout):void 0,_={vnode:t,parent:e,parentComponent:o,isSVG:l,container:f,hiddenContainer:P,anchor:d,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:i,isUnmounted:!1,effects:[],resolve(S=!1,A=!1){const{vnode:x,activeBranch:R,pendingBranch:M,pendingId:T,effects:E,parentComponent:C,container:L}=_;if(_.isHydrating)_.isHydrating=!1;else if(!S){const I=R&&M.transition&&M.transition.mode==="out-in";I&&(R.transition.afterLeave=()=>{T===_.pendingId&&w(M,L,z,0)});let{anchor:z}=_;R&&(z=p(R),y(R,C,_,!0)),I||w(M,L,z,0)}YA(_,M),_.pendingBranch=null,_.isInFallback=!1;let D=_.parent,k=!1;for(;D;){if(D.pendingBranch){D.effects.push(...E),k=!0;break}D=D.parent}k||P1e(E),_.effects=[],m&&e&&e.pendingBranch&&h===e.pendingId&&(e.deps--,e.deps===0&&!A&&e.resolve()),wI(x,"onResolve")},fallback(S){if(!_.pendingBranch)return;const{vnode:A,activeBranch:x,parentComponent:R,container:M,isSVG:T}=_;wI(A,"onFallback");const E=p(x),C=()=>{_.isInFallback&&(O(null,S,M,E,R,null,T,n,c),YA(_,S))},L=S.transition&&S.transition.mode==="out-in";L&&(x.transition.afterLeave=C),_.isInFallback=!0,y(x,R,null,!0),L||C()},move(S,A,x){_.activeBranch&&w(_.activeBranch,S,A,x),_.container=S},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(S,A){const x=!!_.pendingBranch;x&&_.deps++;const R=S.vnode.el;S.asyncDep.catch(M=>{dD(M,S,0)}).then(M=>{if(S.isUnmounted||_.isUnmounted||_.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:T}=S;Cae(S,M,!1),R&&(T.el=R);const E=!R&&S.subTree.el;A(S,T,a(R||S.subTree.el),R?null:p(S.subTree),_,l,c),E&&u(E),Ple(S,T.el),x&&--_.deps===0&&_.resolve()})},unmount(S,A){_.isUnmounted=!0,_.activeBranch&&y(_.activeBranch,o,S,A),_.pendingBranch&&y(_.pendingBranch,o,S,A)}};return _}function pSe(t,e,o,f,P,d,l,n,c){const b=e.suspense=Rle(e,f,o,t.parentNode,document.createElement("div"),null,P,d,l,n,!0),i=c(t,b.pendingBranch=e.ssContent,o,b,d,l);return b.deps===0&&b.resolve(!1,!0),i}function mSe(t){const{shapeFlag:e,children:o}=t,f=e&32;t.ssContent=Tde(f?o.default:o),t.ssFallback=f?Tde(o.fallback):Ht(k0)}function Tde(t){let e;if(ll(t)){const o=iM&&t._c;o&&(t._d=!1,Do()),t=t(),o&&(t._d=!0,e=Yy,K1e())}return xs(t)&&(t=iSe(t)),t=px(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(o=>o!==t)),t}function gSe(t,e){e&&e.pendingBranch?xs(t)?e.effects.push(...t):e.effects.push(t):P1e(t)}function YA(t,e){t.activeBranch=e;const{vnode:o,parentComponent:f}=t,P=o.el=e.el;f&&f.subTree===o&&(f.vnode.el=P,Ple(f,P))}function vSe(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function kp(t,e){return Lle(t,null,e)}const wQ={};function Ni(t,e,o){return Lle(t,e,o)}function Lle(t,e,{immediate:o,deep:f,flush:P,onTrack:d,onTrigger:l}=od){var n;const c=f1e()===((n=Op)==null?void 0:n.scope)?Op:null;let b,i=!1,O=!1;if(Dc(t)?(b=()=>t.value,i=RH(t)):OO(t)?(b=()=>t,f=!0):xs(t)?(O=!0,i=t.some(_=>OO(_)||RH(_)),b=()=>t.map(_=>{if(Dc(_))return _.value;if(OO(_))return iT(_);if(ll(_))return J4(_,c,2)})):ll(t)?e?b=()=>J4(t,c,2):b=()=>{if(!(c&&c.isUnmounted))return w&&w(),eb(t,c,3,[y])}:b=yx,e&&f){const _=b;b=()=>iT(_())}let w,y=_=>{w=m.onStop=()=>{J4(_,c,4)}},p;if(CI)if(y=yx,e?o&&eb(e,c,3,[b(),O?[]:void 0,y]):b(),P==="sync"){const _=s5e();p=_.__watcherHandles||(_.__watcherHandles=[])}else return yx;let a=O?new Array(t.length).fill(wQ):wQ;const u=()=>{if(m.active)if(e){const _=m.run();(f||i||(O?_.some((S,A)=>yI(S,a[A])):yI(_,a)))&&(w&&w(),eb(e,c,3,[_,a===wQ?void 0:O&&a[0]===wQ?[]:a,y]),a=_)}else m.run()};u.allowRecurse=!!e;let h;P==="sync"?h=u:P==="post"?h=()=>g1(u,c&&c.suspense):(u.pre=!0,c&&(u.id=c.uid),h=()=>Ale(u));const m=new _le(b,h);e?o?u():a=m.run():P==="post"?g1(m.run.bind(m),c&&c.suspense):m.run();const v=()=>{m.stop(),c&&c.scope&&vle(c.scope.effects,m)};return p&&p.push(v),v}function ySe(t,e,o){const f=this.proxy,P=hh(t)?t.includes(".")?D1e(f,t):()=>f[t]:t.bind(f,f);let d;ll(e)?d=e:(d=e.handler,o=e);const l=Op;sM(this);const n=Lle(P,d.bind(f),o);return l?sM(l):uT(),n}function D1e(t,e){const o=e.split(".");return()=>{let f=t;for(let P=0;P{iT(o,e)});else if(a1e(t))for(const o in t)iT(t[o],e);return t}function Tp(t,e){const o=cm;if(o===null)return t;const f=ZZ(o)||o.proxy,P=t.dirs||(t.dirs=[]);for(let d=0;d{t.isMounted=!0}),dm(()=>{t.isUnmounting=!0}),t}const Zy=[Function,Array],z1e={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Zy,onEnter:Zy,onAfterEnter:Zy,onEnterCancelled:Zy,onBeforeLeave:Zy,onLeave:Zy,onAfterLeave:Zy,onLeaveCancelled:Zy,onBeforeAppear:Zy,onAppear:Zy,onAfterAppear:Zy,onAppearCancelled:Zy},bSe={name:"BaseTransition",props:z1e,setup(t,{slots:e}){const o=Zle(),f=B1e();let P;return()=>{const d=e.default&&Ile(e.default(),!0);if(!d||!d.length)return;let l=d[0];if(d.length>1){for(const a of d)if(a.type!==k0){l=a;break}}const n=As(t),{mode:c}=n;if(f.isLeaving)return eie(l);const b=Cde(l);if(!b)return eie(l);const i=OI(b,n,f,o);SI(b,i);const O=o.subTree,w=O&&Cde(O);let y=!1;const{getTransitionKey:p}=b.type;if(p){const a=p();P===void 0?P=a:a!==P&&(P=a,y=!0)}if(w&&w.type!==k0&&(!t_(b,w)||y)){const a=OI(w,n,f,o);if(SI(w,a),c==="out-in")return f.isLeaving=!0,a.afterLeave=()=>{f.isLeaving=!1,o.update.active!==!1&&o.update()},eie(l);c==="in-out"&&b.type!==k0&&(a.delayLeave=(u,h,m)=>{const v=F1e(f,w);v[String(w.key)]=w,u._leaveCb=()=>{h(),u._leaveCb=void 0,delete i.delayedLeave},i.delayedLeave=m})}return l}}},xSe=bSe;function F1e(t,e){const{leavingVNodes:o}=t;let f=o.get(e.type);return f||(f=Object.create(null),o.set(e.type,f)),f}function OI(t,e,o,f){const{appear:P,mode:d,persisted:l=!1,onBeforeEnter:n,onEnter:c,onAfterEnter:b,onEnterCancelled:i,onBeforeLeave:O,onLeave:w,onAfterLeave:y,onLeaveCancelled:p,onBeforeAppear:a,onAppear:u,onAfterAppear:h,onAppearCancelled:m}=e,v=String(t.key),_=F1e(o,t),S=(R,M)=>{R&&eb(R,f,9,M)},A=(R,M)=>{const T=M[1];S(R,M),xs(R)?R.every(E=>E.length<=1)&&T():R.length<=1&&T()},x={mode:d,persisted:l,beforeEnter(R){let M=n;if(!o.isMounted)if(P)M=a||n;else return;R._leaveCb&&R._leaveCb(!0);const T=_[v];T&&t_(t,T)&&T.el._leaveCb&&T.el._leaveCb(),S(M,[R])},enter(R){let M=c,T=b,E=i;if(!o.isMounted)if(P)M=u||c,T=h||b,E=m||i;else return;let C=!1;const L=R._enterCb=D=>{C||(C=!0,D?S(E,[R]):S(T,[R]),x.delayedLeave&&x.delayedLeave(),R._enterCb=void 0)};M?A(M,[R,L]):L()},leave(R,M){const T=String(t.key);if(R._enterCb&&R._enterCb(!0),o.isUnmounting)return M();S(O,[R]);let E=!1;const C=R._leaveCb=L=>{E||(E=!0,M(),L?S(p,[R]):S(y,[R]),R._leaveCb=void 0,_[T]===t&&delete _[T])};_[T]=t,w?A(w,[R,C]):C()},clone(R){return OI(R,e,o,f)}};return x}function eie(t){if(jZ(t))return t=TO(t),t.children=null,t}function Cde(t){return jZ(t)?t.children?t.children[0]:void 0:t}function SI(t,e){t.shapeFlag&6&&t.component?SI(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Ile(t,e=!1,o){let f=[],P=0;for(let d=0;d1)for(let d=0;dNh({name:t.name},e,{setup:t}))():t}const nI=t=>!!t.type.__asyncLoader,jZ=t=>t.type.__isKeepAlive;function Dle(t,e){N1e(t,"a",e)}function Ble(t,e){N1e(t,"da",e)}function N1e(t,e,o=Op){const f=t.__wdc||(t.__wdc=()=>{let P=o;for(;P;){if(P.isDeactivated)return;P=P.parent}return t()});if(QZ(e,f,o),o){let P=o.parent;for(;P&&P.parent;)jZ(P.parent.vnode)&&_Se(f,e,o,P),P=P.parent}}function _Se(t,e,o,f){const P=QZ(e,t,f,!0);Nle(()=>{vle(f[e],P)},o)}function QZ(t,e,o=Op,f=!1){if(o){const P=o[t]||(o[t]=[]),d=e.__weh||(e.__weh=(...l)=>{if(o.isUnmounted)return;kM(),sM(o);const n=eb(e,o,t,l);return uT(),TM(),n});return f?P.unshift(d):P.push(d),d}}const RO=t=>(e,o=Op)=>(!CI||t==="sp")&&QZ(t,(...f)=>e(...f),o),zle=RO("bm"),sg=RO("m"),$1e=RO("bu"),Fle=RO("u"),dm=RO("bum"),Nle=RO("um"),wSe=RO("sp"),OSe=RO("rtg"),SSe=RO("rtc");function kSe(t,e=Op){QZ("ec",t,e)}const $le="components",TSe="directives";function Zd(t,e){return Vle($le,t,!0,e)||t}const V1e=Symbol.for("v-ndc");function kI(t){return hh(t)?Vle($le,t,!1)||t:t||V1e}function y_(t){return Vle(TSe,t)}function Vle(t,e,o=!0,f=!1){const P=cm||Op;if(P){const d=P.type;if(t===$le){const n=o5e(d,!1);if(n&&(n===e||n===rb(e)||n===v_(rb(e))))return d}const l=Ade(P[t]||d[t],e)||Ade(P.appContext[t],e);return!l&&f?d:l}}function Ade(t,e){return t&&(t[e]||t[rb(e)]||t[v_(rb(e))])}function ob(t,e,o,f){let P;const d=o&&o[f];if(xs(t)||hh(t)){P=new Array(t.length);for(let l=0,n=t.length;le(l,n,void 0,d&&d[n]));else{const l=Object.keys(t);P=new Array(l.length);for(let n=0,c=l.length;n{const d=f.fn(...P);return d&&(d.key=f.key),d}:f.fn)}return t}function Mde(t,e,o={},f,P){if(cm.isCE||cm.parent&&nI(cm.parent)&&cm.parent.isCE)return e!=="default"&&(o.name=e),Ht("slot",o,f&&f());let d=t[e];d&&d._c&&(d._d=!1),Do();const l=d&&j1e(d(o)),n=sa(ma,{key:o.key||l&&l.key||`_${e}`},l||(f?f():[]),l&&t._===1?64:-2);return!P&&n.scopeId&&(n.slotScopeIds=[n.scopeId+"-s"]),d&&d._c&&(d._d=!0),n}function j1e(t){return t.some(e=>aM(e)?!(e.type===k0||e.type===ma&&!j1e(e.children)):!0)?t:null}function CSe(t,e){const o={};for(const f in t)o[e&&/[A-Z]/.test(f)?`on:${f}`:tI(f)]=t[f];return o}const _ae=t=>t?tve(t)?ZZ(t)||t.proxy:_ae(t.parent):null,rI=Nh(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>_ae(t.parent),$root:t=>_ae(t.root),$emit:t=>t.emit,$options:t=>Ule(t),$forceUpdate:t=>t.f||(t.f=()=>Ale(t.update)),$nextTick:t=>t.n||(t.n=lc.bind(t.proxy)),$watch:t=>ySe.bind(t)}),tie=(t,e)=>t!==od&&!t.__isScriptSetup&&Zc(t,e),ASe={get({_:t},e){const{ctx:o,setupState:f,data:P,props:d,accessCache:l,type:n,appContext:c}=t;let b;if(e[0]!=="$"){const y=l[e];if(y!==void 0)switch(y){case 1:return f[e];case 2:return P[e];case 4:return o[e];case 3:return d[e]}else{if(tie(f,e))return l[e]=1,f[e];if(P!==od&&Zc(P,e))return l[e]=2,P[e];if((b=t.propsOptions[0])&&Zc(b,e))return l[e]=3,d[e];if(o!==od&&Zc(o,e))return l[e]=4,o[e];wae&&(l[e]=0)}}const i=rI[e];let O,w;if(i)return e==="$attrs"&&_1(t,"get",e),i(t);if((O=n.__cssModules)&&(O=O[e]))return O;if(o!==od&&Zc(o,e))return l[e]=4,o[e];if(w=c.config.globalProperties,Zc(w,e))return w[e]},set({_:t},e,o){const{data:f,setupState:P,ctx:d}=t;return tie(P,e)?(P[e]=o,!0):f!==od&&Zc(f,e)?(f[e]=o,!0):Zc(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(d[e]=o,!0)},has({_:{data:t,setupState:e,accessCache:o,ctx:f,appContext:P,propsOptions:d}},l){let n;return!!o[l]||t!==od&&Zc(t,l)||tie(e,l)||(n=d[0])&&Zc(n,l)||Zc(f,l)||Zc(rI,l)||Zc(P.config.globalProperties,l)},defineProperty(t,e,o){return o.get!=null?t._.accessCache[e]=0:Zc(o,"value")&&this.set(t,e,o.value,null),Reflect.defineProperty(t,e,o)}};function Ede(t){return xs(t)?t.reduce((e,o)=>(e[o]=null,e),{}):t}let wae=!0;function MSe(t){const e=Ule(t),o=t.proxy,f=t.ctx;wae=!1,e.beforeCreate&&Pde(e.beforeCreate,t,"bc");const{data:P,computed:d,methods:l,watch:n,provide:c,inject:b,created:i,beforeMount:O,mounted:w,beforeUpdate:y,updated:p,activated:a,deactivated:u,beforeDestroy:h,beforeUnmount:m,destroyed:v,unmounted:_,render:S,renderTracked:A,renderTriggered:x,errorCaptured:R,serverPrefetch:M,expose:T,inheritAttrs:E,components:C,directives:L,filters:D}=e;if(b&&ESe(b,f,null),l)for(const z in l){const $=l[z];ll($)&&(f[z]=$.bind(o))}if(P){const z=P.call(o,o);Ff(z)&&(t.data=lm(z))}if(wae=!0,d)for(const z in d){const $=d[z],Q=ll($)?$.bind(o,o):ll($.get)?$.get.bind(o,o):yx,j=!ll($)&&ll($.set)?$.set.bind(o):yx,U=Un({get:Q,set:j});Object.defineProperty(f,z,{enumerable:!0,configurable:!0,get:()=>U.value,set:X=>U.value=X})}if(n)for(const z in n)Q1e(n[z],f,o,z);if(c){const z=ll(c)?c.call(o):c;Reflect.ownKeys(z).forEach($=>{gf($,z[$])})}i&&Pde(i,t,"c");function I(z,$){xs($)?$.forEach(Q=>z(Q.bind(o))):$&&z($.bind(o))}if(I(zle,O),I(sg,w),I($1e,y),I(Fle,p),I(Dle,a),I(Ble,u),I(kSe,R),I(SSe,A),I(OSe,x),I(dm,m),I(Nle,_),I(wSe,M),xs(T))if(T.length){const z=t.exposed||(t.exposed={});T.forEach($=>{Object.defineProperty(z,$,{get:()=>o[$],set:Q=>o[$]=Q})})}else t.exposed||(t.exposed={});S&&t.render===yx&&(t.render=S),E!=null&&(t.inheritAttrs=E),C&&(t.components=C),L&&(t.directives=L)}function ESe(t,e,o=yx){xs(t)&&(t=Oae(t));for(const f in t){const P=t[f];let d;Ff(P)?"default"in P?d=yl(P.from||f,P.default,!0):d=yl(P.from||f):d=yl(P),Dc(d)?Object.defineProperty(e,f,{enumerable:!0,configurable:!0,get:()=>d.value,set:l=>d.value=l}):e[f]=d}}function Pde(t,e,o){eb(xs(t)?t.map(f=>f.bind(e.proxy)):t.bind(e.proxy),e,o)}function Q1e(t,e,o,f){const P=f.includes(".")?D1e(o,f):()=>o[f];if(hh(t)){const d=e[t];ll(d)&&Ni(P,d)}else if(ll(t))Ni(P,t.bind(o));else if(Ff(t))if(xs(t))t.forEach(d=>Q1e(d,e,o,f));else{const d=ll(t.handler)?t.handler.bind(o):e[t.handler];ll(d)&&Ni(P,d,t)}}function Ule(t){const e=t.type,{mixins:o,extends:f}=e,{mixins:P,optionsCache:d,config:{optionMergeStrategies:l}}=t.appContext,n=d.get(e);let c;return n?c=n:!P.length&&!o&&!f?c=e:(c={},P.length&&P.forEach(b=>IH(c,b,l,!0)),IH(c,e,l)),Ff(e)&&d.set(e,c),c}function IH(t,e,o,f=!1){const{mixins:P,extends:d}=e;d&&IH(t,d,o,!0),P&&P.forEach(l=>IH(t,l,o,!0));for(const l in e)if(!(f&&l==="expose")){const n=PSe[l]||o&&o[l];t[l]=n?n(t[l],e[l]):e[l]}return t}const PSe={data:Rde,props:Lde,emits:Lde,methods:WL,computed:WL,beforeCreate:O0,created:O0,beforeMount:O0,mounted:O0,beforeUpdate:O0,updated:O0,beforeDestroy:O0,beforeUnmount:O0,destroyed:O0,unmounted:O0,activated:O0,deactivated:O0,errorCaptured:O0,serverPrefetch:O0,components:WL,directives:WL,watch:LSe,provide:Rde,inject:RSe};function Rde(t,e){return e?t?function(){return Nh(ll(t)?t.call(this,this):t,ll(e)?e.call(this,this):e)}:e:t}function RSe(t,e){return WL(Oae(t),Oae(e))}function Oae(t){if(xs(t)){const e={};for(let o=0;o1)return o&&ll(e)?e.call(f&&f.proxy):e}}function BSe(){return!!(Op||cm||TI)}function zSe(t,e,o,f=!1){const P={},d={};EH(d,HZ,1),t.propsDefaults=Object.create(null),Z1e(t,e,P,d);for(const l in t.propsOptions[0])l in P||(P[l]=void 0);o?t.props=f?P:w1e(P):t.type.props?t.props=P:t.props=d,t.attrs=d}function FSe(t,e,o,f){const{props:P,attrs:d,vnode:{patchFlag:l}}=t,n=As(P),[c]=t.propsOptions;let b=!1;if((f||l>0)&&!(l&16)){if(l&8){const i=t.vnode.dynamicProps;for(let O=0;O{c=!0;const[w,y]=q1e(O,e,!0);Nh(l,w),y&&n.push(...y)};!o&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!d&&!c)return Ff(t)&&f.set(t,ZA),ZA;if(xs(d))for(let i=0;i-1,y[1]=a<0||p-1||Zc(y,"default"))&&n.push(O)}}}const b=[l,n];return Ff(t)&&f.set(t,b),b}function Ide(t){return t[0]!=="$"}function Dde(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Bde(t,e){return Dde(t)===Dde(e)}function zde(t,e){return xs(e)?e.findIndex(o=>Bde(o,t)):ll(e)&&Bde(e,t)?0:-1}const W1e=t=>t[0]==="_"||t==="$stable",jle=t=>xs(t)?t.map(px):[px(t)],NSe=(t,e,o)=>{if(e._n)return e;const f=Oo((...P)=>jle(e(...P)),o);return f._c=!1,f},Y1e=(t,e,o)=>{const f=t._ctx;for(const P in t){if(W1e(P))continue;const d=t[P];if(ll(d))e[P]=NSe(P,d,f);else if(d!=null){const l=jle(d);e[P]=()=>l}}},X1e=(t,e)=>{const o=jle(e);t.slots.default=()=>o},$Se=(t,e)=>{if(t.vnode.shapeFlag&32){const o=e._;o?(t.slots=As(e),EH(e,"_",o)):Y1e(e,t.slots={})}else t.slots={},e&&X1e(t,e);EH(t.slots,HZ,1)},VSe=(t,e,o)=>{const{vnode:f,slots:P}=t;let d=!0,l=od;if(f.shapeFlag&32){const n=e._;n?o&&n===1?d=!1:(Nh(P,e),!o&&n===1&&delete P._):(d=!e.$stable,Y1e(e,P)),l=e}else e&&(X1e(t,e),l={default:1});if(d)for(const n in P)!W1e(n)&&!(n in l)&&delete P[n]};function kae(t,e,o,f,P=!1){if(xs(t)){t.forEach((w,y)=>kae(w,e&&(xs(e)?e[y]:e),o,f,P));return}if(nI(f)&&!P)return;const d=f.shapeFlag&4?ZZ(f.component)||f.component.proxy:f.el,l=P?null:d,{i:n,r:c}=t,b=e&&e.r,i=n.refs===od?n.refs={}:n.refs,O=n.setupState;if(b!=null&&b!==c&&(hh(b)?(i[b]=null,Zc(O,b)&&(O[b]=null)):Dc(b)&&(b.value=null)),ll(c))J4(c,n,12,[l,i]);else{const w=hh(c),y=Dc(c);if(w||y){const p=()=>{if(t.f){const a=w?Zc(O,c)?O[c]:i[c]:c.value;P?xs(a)&&vle(a,d):xs(a)?a.includes(d)||a.push(d):w?(i[c]=[d],Zc(O,c)&&(O[c]=i[c])):(c.value=[d],t.k&&(i[t.k]=c.value))}else w?(i[c]=l,Zc(O,c)&&(O[c]=l)):y&&(c.value=l,t.k&&(i[t.k]=l))};l?(p.id=-1,g1(p,o)):p()}}}const g1=gSe;function USe(t){return jSe(t)}function jSe(t,e){const o=gae();o.__VUE__=!0;const{insert:f,remove:P,patchProp:d,createElement:l,createText:n,createComment:c,setText:b,setElementText:i,parentNode:O,nextSibling:w,setScopeId:y=yx,insertStaticContent:p}=t,a=(se,ae,ce,de=null,ve=null,ye=null,_e=!1,Se=null,Te=!!ae.dynamicChildren)=>{if(se===ae)return;se&&!t_(se,ae)&&(de=q(se),X(se,ve,ye,!0),se=null),ae.patchFlag===-2&&(Te=!1,ae.dynamicChildren=null);const{type:Pe,ref:Ie,shapeFlag:ze}=ae;switch(Pe){case hD:u(se,ae,ce,de);break;case k0:h(se,ae,ce,de);break;case nie:se==null&&m(ae,ce,de,_e);break;case ma:C(se,ae,ce,de,ve,ye,_e,Se,Te);break;default:ze&1?S(se,ae,ce,de,ve,ye,_e,Se,Te):ze&6?L(se,ae,ce,de,ve,ye,_e,Se,Te):(ze&64||ze&128)&&Pe.process(se,ae,ce,de,ve,ye,_e,Se,Te,ee)}Ie!=null&&ve&&kae(Ie,se&&se.ref,ye,ae||se,!ae)},u=(se,ae,ce,de)=>{if(se==null)f(ae.el=n(ae.children),ce,de);else{const ve=ae.el=se.el;ae.children!==se.children&&b(ve,ae.children)}},h=(se,ae,ce,de)=>{se==null?f(ae.el=c(ae.children||""),ce,de):ae.el=se.el},m=(se,ae,ce,de)=>{[se.el,se.anchor]=p(se.children,ae,ce,de,se.el,se.anchor)},v=({el:se,anchor:ae},ce,de)=>{let ve;for(;se&&se!==ae;)ve=w(se),f(se,ce,de),se=ve;f(ae,ce,de)},_=({el:se,anchor:ae})=>{let ce;for(;se&&se!==ae;)ce=w(se),P(se),se=ce;P(ae)},S=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{_e=_e||ae.type==="svg",se==null?A(ae,ce,de,ve,ye,_e,Se,Te):M(se,ae,ve,ye,_e,Se,Te)},A=(se,ae,ce,de,ve,ye,_e,Se)=>{let Te,Pe;const{type:Ie,props:ze,shapeFlag:De,transition:He,dirs:Ve}=se;if(Te=se.el=l(se.type,ye,ze&&ze.is,ze),De&8?i(Te,se.children):De&16&&R(se.children,Te,null,de,ve,ye&&Ie!=="foreignObject",_e,Se),Ve&&Qk(se,null,de,"created"),x(Te,se,se.scopeId,_e,de),ze){for(const Oe in ze)Oe!=="value"&&!lH(Oe)&&d(Te,Oe,null,ze[Oe],ye,se.children,de,ve,oe);"value"in ze&&d(Te,"value",null,ze.value),(Pe=ze.onVnodeBeforeMount)&&W2(Pe,de,se)}Ve&&Qk(se,null,de,"beforeMount");const $e=(!ve||ve&&!ve.pendingBranch)&&He&&!He.persisted;$e&&He.beforeEnter(Te),f(Te,ae,ce),((Pe=ze&&ze.onVnodeMounted)||$e||Ve)&&g1(()=>{Pe&&W2(Pe,de,se),$e&&He.enter(Te),Ve&&Qk(se,null,de,"mounted")},ve)},x=(se,ae,ce,de,ve)=>{if(ce&&y(se,ce),de)for(let ye=0;ye{for(let Pe=Te;Pe{const Se=ae.el=se.el;let{patchFlag:Te,dynamicChildren:Pe,dirs:Ie}=ae;Te|=se.patchFlag&16;const ze=se.props||od,De=ae.props||od;let He;ce&&Hk(ce,!1),(He=De.onVnodeBeforeUpdate)&&W2(He,ce,ae,se),Ie&&Qk(ae,se,ce,"beforeUpdate"),ce&&Hk(ce,!0);const Ve=ve&&ae.type!=="foreignObject";if(Pe?T(se.dynamicChildren,Pe,Se,ce,de,Ve,ye):_e||$(se,ae,Se,null,ce,de,Ve,ye,!1),Te>0){if(Te&16)E(Se,ae,ze,De,ce,de,ve);else if(Te&2&&ze.class!==De.class&&d(Se,"class",null,De.class,ve),Te&4&&d(Se,"style",ze.style,De.style,ve),Te&8){const $e=ae.dynamicProps;for(let Oe=0;Oe<$e.length;Oe++){const ke=$e[Oe],Le=ze[ke],We=De[ke];(We!==Le||ke==="value")&&d(Se,ke,Le,We,ve,se.children,ce,de,oe)}}Te&1&&se.children!==ae.children&&i(Se,ae.children)}else!_e&&Pe==null&&E(Se,ae,ze,De,ce,de,ve);((He=De.onVnodeUpdated)||Ie)&&g1(()=>{He&&W2(He,ce,ae,se),Ie&&Qk(ae,se,ce,"updated")},de)},T=(se,ae,ce,de,ve,ye,_e)=>{for(let Se=0;Se{if(ce!==de){if(ce!==od)for(const Se in ce)!lH(Se)&&!(Se in de)&&d(se,Se,ce[Se],null,_e,ae.children,ve,ye,oe);for(const Se in de){if(lH(Se))continue;const Te=de[Se],Pe=ce[Se];Te!==Pe&&Se!=="value"&&d(se,Se,Pe,Te,_e,ae.children,ve,ye,oe)}"value"in de&&d(se,"value",ce.value,de.value)}},C=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{const Pe=ae.el=se?se.el:n(""),Ie=ae.anchor=se?se.anchor:n("");let{patchFlag:ze,dynamicChildren:De,slotScopeIds:He}=ae;He&&(Se=Se?Se.concat(He):He),se==null?(f(Pe,ce,de),f(Ie,ce,de),R(ae.children,ce,Ie,ve,ye,_e,Se,Te)):ze>0&&ze&64&&De&&se.dynamicChildren?(T(se.dynamicChildren,De,ce,ve,ye,_e,Se),(ae.key!=null||ve&&ae===ve.subTree)&&Qle(se,ae,!0)):$(se,ae,ce,Ie,ve,ye,_e,Se,Te)},L=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{ae.slotScopeIds=Se,se==null?ae.shapeFlag&512?ve.ctx.activate(ae,ce,de,_e,Te):D(ae,ce,de,ve,ye,_e,Te):k(se,ae,Te)},D=(se,ae,ce,de,ve,ye,_e)=>{const Se=se.component=JSe(se,de,ve);if(jZ(se)&&(Se.ctx.renderer=ee),e5e(Se),Se.asyncDep){if(ve&&ve.registerDep(Se,I),!se.el){const Te=Se.subTree=Ht(k0);h(null,Te,ae,ce)}return}I(Se,se,ae,ce,ve,ye,_e)},k=(se,ae,ce)=>{const de=ae.component=se.component;if(lSe(se,ae,ce))if(de.asyncDep&&!de.asyncResolved){z(de,ae,ce);return}else de.next=ae,nSe(de.update),de.update();else ae.el=se.el,de.vnode=ae},I=(se,ae,ce,de,ve,ye,_e)=>{const Se=()=>{if(se.isMounted){let{next:Ie,bu:ze,u:De,parent:He,vnode:Ve}=se,$e=Ie,Oe;Hk(se,!1),Ie?(Ie.el=Ve.el,z(se,Ie,_e)):Ie=Ve,ze&&cH(ze),(Oe=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&W2(Oe,He,Ie,Ve),Hk(se,!0);const ke=Joe(se),Le=se.subTree;se.subTree=ke,a(Le,ke,O(Le.el),q(Le),se,ve,ye),Ie.el=ke.el,$e===null&&Ple(se,ke.el),De&&g1(De,ve),(Oe=Ie.props&&Ie.props.onVnodeUpdated)&&g1(()=>W2(Oe,He,Ie,Ve),ve)}else{let Ie;const{el:ze,props:De}=ae,{bm:He,m:Ve,parent:$e}=se,Oe=nI(ae);if(Hk(se,!1),He&&cH(He),!Oe&&(Ie=De&&De.onVnodeBeforeMount)&&W2(Ie,$e,ae),Hk(se,!0),ze&&he){const ke=()=>{se.subTree=Joe(se),he(ze,se.subTree,se,ve,null)};Oe?ae.type.__asyncLoader().then(()=>!se.isUnmounted&&ke()):ke()}else{const ke=se.subTree=Joe(se);a(null,ke,ce,de,se,ve,ye),ae.el=ke.el}if(Ve&&g1(Ve,ve),!Oe&&(Ie=De&&De.onVnodeMounted)){const ke=ae;g1(()=>W2(Ie,$e,ke),ve)}(ae.shapeFlag&256||$e&&nI($e.vnode)&&$e.vnode.shapeFlag&256)&&se.a&&g1(se.a,ve),se.isMounted=!0,ae=ce=de=null}},Te=se.effect=new _le(Se,()=>Ale(Pe),se.scope),Pe=se.update=()=>Te.run();Pe.id=se.uid,Hk(se,!0),Pe()},z=(se,ae,ce)=>{ae.component=se;const de=se.vnode.props;se.vnode=ae,se.next=null,FSe(se,ae.props,de,ce),VSe(se,ae.children,ce),kM(),Sde(),TM()},$=(se,ae,ce,de,ve,ye,_e,Se,Te=!1)=>{const Pe=se&&se.children,Ie=se?se.shapeFlag:0,ze=ae.children,{patchFlag:De,shapeFlag:He}=ae;if(De>0){if(De&128){j(Pe,ze,ce,de,ve,ye,_e,Se,Te);return}else if(De&256){Q(Pe,ze,ce,de,ve,ye,_e,Se,Te);return}}He&8?(Ie&16&&oe(Pe,ve,ye),ze!==Pe&&i(ce,ze)):Ie&16?He&16?j(Pe,ze,ce,de,ve,ye,_e,Se,Te):oe(Pe,ve,ye,!0):(Ie&8&&i(ce,""),He&16&&R(ze,ce,de,ve,ye,_e,Se,Te))},Q=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{se=se||ZA,ae=ae||ZA;const Pe=se.length,Ie=ae.length,ze=Math.min(Pe,Ie);let De;for(De=0;DeIe?oe(se,ve,ye,!0,!1,ze):R(ae,ce,de,ve,ye,_e,Se,Te,ze)},j=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{let Pe=0;const Ie=ae.length;let ze=se.length-1,De=Ie-1;for(;Pe<=ze&&Pe<=De;){const He=se[Pe],Ve=ae[Pe]=Te?V4(ae[Pe]):px(ae[Pe]);if(t_(He,Ve))a(He,Ve,ce,null,ve,ye,_e,Se,Te);else break;Pe++}for(;Pe<=ze&&Pe<=De;){const He=se[ze],Ve=ae[De]=Te?V4(ae[De]):px(ae[De]);if(t_(He,Ve))a(He,Ve,ce,null,ve,ye,_e,Se,Te);else break;ze--,De--}if(Pe>ze){if(Pe<=De){const He=De+1,Ve=HeDe)for(;Pe<=ze;)X(se[Pe],ve,ye,!0),Pe++;else{const He=Pe,Ve=Pe,$e=new Map;for(Pe=Ve;Pe<=De;Pe++){const tt=ae[Pe]=Te?V4(ae[Pe]):px(ae[Pe]);tt.key!=null&&$e.set(tt.key,Pe)}let Oe,ke=0;const Le=De-Ve+1;let We=!1,Ue=0;const Ze=new Array(Le);for(Pe=0;Pe=Le){X(tt,ve,ye,!0);continue}let Ee;if(tt.key!=null)Ee=$e.get(tt.key);else for(Oe=Ve;Oe<=De;Oe++)if(Ze[Oe-Ve]===0&&t_(tt,ae[Oe])){Ee=Oe;break}Ee===void 0?X(tt,ve,ye,!0):(Ze[Ee-Ve]=Pe+1,Ee>=Ue?Ue=Ee:We=!0,a(tt,ae[Ee],ce,null,ve,ye,_e,Se,Te),ke++)}const Xe=We?QSe(Ze):ZA;for(Oe=Xe.length-1,Pe=Le-1;Pe>=0;Pe--){const tt=Ve+Pe,Ee=ae[tt],Ne=tt+1{const{el:ye,type:_e,transition:Se,children:Te,shapeFlag:Pe}=se;if(Pe&6){U(se.component.subTree,ae,ce,de);return}if(Pe&128){se.suspense.move(ae,ce,de);return}if(Pe&64){_e.move(se,ae,ce,ee);return}if(_e===ma){f(ye,ae,ce);for(let ze=0;zeSe.enter(ye),ve);else{const{leave:ze,delayLeave:De,afterLeave:He}=Se,Ve=()=>f(ye,ae,ce),$e=()=>{ze(ye,()=>{Ve(),He&&He()})};De?De(ye,Ve,$e):$e()}else f(ye,ae,ce)},X=(se,ae,ce,de=!1,ve=!1)=>{const{type:ye,props:_e,ref:Se,children:Te,dynamicChildren:Pe,shapeFlag:Ie,patchFlag:ze,dirs:De}=se;if(Se!=null&&kae(Se,null,ce,se,!0),Ie&256){ae.ctx.deactivate(se);return}const He=Ie&1&&De,Ve=!nI(se);let $e;if(Ve&&($e=_e&&_e.onVnodeBeforeUnmount)&&W2($e,ae,se),Ie&6)K(se.component,ce,de);else{if(Ie&128){se.suspense.unmount(ce,de);return}He&&Qk(se,null,ae,"beforeUnmount"),Ie&64?se.type.remove(se,ae,ce,ve,ee,de):Pe&&(ye!==ma||ze>0&&ze&64)?oe(Pe,ae,ce,!1,!0):(ye===ma&&ze&384||!ve&&Ie&16)&&oe(Te,ae,ce),de&&te(se)}(Ve&&($e=_e&&_e.onVnodeUnmounted)||He)&&g1(()=>{$e&&W2($e,ae,se),He&&Qk(se,null,ae,"unmounted")},ce)},te=se=>{const{type:ae,el:ce,anchor:de,transition:ve}=se;if(ae===ma){W(ce,de);return}if(ae===nie){_(se);return}const ye=()=>{P(ce),ve&&!ve.persisted&&ve.afterLeave&&ve.afterLeave()};if(se.shapeFlag&1&&ve&&!ve.persisted){const{leave:_e,delayLeave:Se}=ve,Te=()=>_e(ce,ye);Se?Se(se.el,ye,Te):Te()}else ye()},W=(se,ae)=>{let ce;for(;se!==ae;)ce=w(se),P(se),se=ce;P(ae)},K=(se,ae,ce)=>{const{bum:de,scope:ve,update:ye,subTree:_e,um:Se}=se;de&&cH(de),ve.stop(),ye&&(ye.active=!1,X(_e,se,ae,ce)),Se&&g1(Se,ae),g1(()=>{se.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&se.asyncDep&&!se.asyncResolved&&se.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},oe=(se,ae,ce,de=!1,ve=!1,ye=0)=>{for(let _e=ye;_ese.shapeFlag&6?q(se.component.subTree):se.shapeFlag&128?se.suspense.next():w(se.anchor||se.el),Y=(se,ae,ce)=>{se==null?ae._vnode&&X(ae._vnode,null,null,!0):a(ae._vnode||null,se,ae,null,null,null,ce),Sde(),R1e(),ae._vnode=se},ee={p:a,um:X,m:U,r:te,mt:D,mc:R,pc:$,pbc:T,n:q,o:t};let me,he;return e&&([me,he]=e(ee)),{render:Y,hydrate:me,createApp:DSe(Y,me)}}function Hk({effect:t,update:e},o){t.allowRecurse=e.allowRecurse=o}function Qle(t,e,o=!1){const f=t.children,P=e.children;if(xs(f)&&xs(P))for(let d=0;d>1,t[o[n]]0&&(e[f]=o[d-1]),o[d]=f)}}for(d=o.length,l=o[d-1];d-- >0;)o[d]=l,l=e[l];return o}const HSe=t=>t.__isTeleport,oI=t=>t&&(t.disabled||t.disabled===""),Fde=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Tae=(t,e)=>{const o=t&&t.to;return hh(o)?e?e(o):null:o},ZSe={__isTeleport:!0,process(t,e,o,f,P,d,l,n,c,b){const{mc:i,pc:O,pbc:w,o:{insert:y,querySelector:p,createText:a,createComment:u}}=b,h=oI(e.props);let{shapeFlag:m,children:v,dynamicChildren:_}=e;if(t==null){const S=e.el=a(""),A=e.anchor=a("");y(S,o,f),y(A,o,f);const x=e.target=Tae(e.props,p),R=e.targetAnchor=a("");x&&(y(R,x),l=l||Fde(x));const M=(T,E)=>{m&16&&i(v,T,E,P,d,l,n,c)};h?M(o,A):x&&M(x,R)}else{e.el=t.el;const S=e.anchor=t.anchor,A=e.target=t.target,x=e.targetAnchor=t.targetAnchor,R=oI(t.props),M=R?o:A,T=R?S:x;if(l=l||Fde(A),_?(w(t.dynamicChildren,_,M,P,d,l,n),Qle(t,e,!0)):c||O(t,e,M,T,P,d,l,n,!1),h)R||OQ(e,o,S,b,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const E=e.target=Tae(e.props,p);E&&OQ(e,E,null,b,0)}else R&&OQ(e,A,x,b,1)}G1e(e)},remove(t,e,o,f,{um:P,o:{remove:d}},l){const{shapeFlag:n,children:c,anchor:b,targetAnchor:i,target:O,props:w}=t;if(O&&d(i),(l||!oI(w))&&(d(b),n&16))for(let y=0;y0?Yy||ZA:null,K1e(),iM>0&&Yy&&Yy.push(t),t}function Da(t,e,o,f,P,d){return J1e(ha(t,e,o,f,P,d,!0))}function sa(t,e,o,f,P){return J1e(Ht(t,e,o,f,P,!0))}function aM(t){return t?t.__v_isVNode===!0:!1}function t_(t,e){return t.type===e.type&&t.key===e.key}const HZ="__vInternal",eve=({key:t})=>t??null,uH=({ref:t,ref_key:e,ref_for:o})=>(typeof t=="number"&&(t=""+t),t!=null?hh(t)||Dc(t)||ll(t)?{i:cm,r:t,k:e,f:!!o}:t:null);function ha(t,e=null,o=null,f=0,P=null,d=t===ma?0:1,l=!1,n=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&eve(e),ref:e&&uH(e),scopeId:UZ,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:f,dynamicProps:P,dynamicChildren:null,appContext:null,ctx:cm};return n?(Hle(c,o),d&128&&t.normalize(c)):o&&(c.shapeFlag|=hh(o)?8:16),iM>0&&!l&&Yy&&(c.patchFlag>0||d&6)&&c.patchFlag!==32&&Yy.push(c),c}const Ht=YSe;function YSe(t,e=null,o=null,f=0,P=null,d=!1){if((!t||t===V1e)&&(t=k0),aM(t)){const n=TO(t,e,!0);return o&&Hle(n,o),iM>0&&!d&&Yy&&(n.shapeFlag&6?Yy[Yy.indexOf(t)]=n:Yy.push(n)),n.patchFlag|=-2,n}if(i5e(t)&&(t=t.__vccOpts),e){e=XSe(e);let{class:n,style:c}=e;n&&!hh(n)&&(e.class=Nv(n)),Ff(c)&&(O1e(c)&&!xs(c)&&(c=Nh({},c)),e.style=cD(c))}const l=hh(t)?1:cSe(t)?128:HSe(t)?64:Ff(t)?4:ll(t)?2:0;return ha(t,e,o,f,P,l,d,!0)}function XSe(t){return t?O1e(t)||HZ in t?Nh({},t):t:null}function TO(t,e,o=!1){const{props:f,ref:P,patchFlag:d,children:l}=t,n=e?Ii(f||{},e):f;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:n,key:n&&eve(n),ref:e&&e.ref?o&&P?xs(P)?P.concat(uH(e)):[P,uH(e)]:uH(e):P,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ma?d===-1?16:d|16:d,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&TO(t.ssContent),ssFallback:t.ssFallback&&TO(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Ss(t=" ",e=0){return Ht(hD,null,t,e)}function Za(t="",e=!1){return e?(Do(),sa(k0,null,t)):Ht(k0,null,t)}function px(t){return t==null||typeof t=="boolean"?Ht(k0):xs(t)?Ht(ma,null,t.slice()):typeof t=="object"?V4(t):Ht(hD,null,String(t))}function V4(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:TO(t)}function Hle(t,e){let o=0;const{shapeFlag:f}=t;if(e==null)e=null;else if(xs(e))o=16;else if(typeof e=="object")if(f&65){const P=e.default;P&&(P._c&&(P._d=!1),Hle(t,P()),P._c&&(P._d=!0));return}else{o=32;const P=e._;!P&&!(HZ in e)?e._ctx=cm:P===3&&cm&&(cm.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ll(e)?(e={default:e,_ctx:cm},o=32):(e=String(e),f&64?(o=16,e=[Ss(e)]):o=8);t.children=e,t.shapeFlag|=o}function Ii(...t){const e={};for(let o=0;oOp||cm;let qle,MA,$de="__VUE_INSTANCE_SETTERS__";(MA=gae()[$de])||(MA=gae()[$de]=[]),MA.push(t=>Op=t),qle=t=>{MA.length>1?MA.forEach(e=>e(t)):MA[0](t)};const sM=t=>{qle(t),t.scope.on()},uT=()=>{Op&&Op.scope.off(),qle(null)};function tve(t){return t.vnode.shapeFlag&4}let CI=!1;function e5e(t,e=!1){CI=e;const{props:o,children:f}=t.vnode,P=tve(t);zSe(t,o,P,e),$Se(t,f);const d=P?t5e(t,e):void 0;return CI=!1,d}function t5e(t,e){const o=t.type;t.accessCache=Object.create(null),t.proxy=fD(new Proxy(t.ctx,ASe));const{setup:f}=o;if(f){const P=t.setupContext=f.length>1?r5e(t):null;sM(t),kM();const d=J4(f,t,0,[t.props,P]);if(TM(),uT(),o1e(d)){if(d.then(uT,uT),e)return d.then(l=>{Cae(t,l,e)}).catch(l=>{dD(l,t,0)});t.asyncDep=d}else Cae(t,d,e)}else nve(t,e)}function Cae(t,e,o){ll(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ff(e)&&(t.setupState=C1e(e)),nve(t,o)}let Vde;function nve(t,e,o){const f=t.type;if(!t.render){if(!e&&Vde&&!f.render){const P=f.template||Ule(t).template;if(P){const{isCustomElement:d,compilerOptions:l}=t.appContext.config,{delimiters:n,compilerOptions:c}=f,b=Nh(Nh({isCustomElement:d,delimiters:n},l),c);f.render=Vde(P,b)}}t.render=f.render||yx}sM(t),kM(),MSe(t),TM(),uT()}function n5e(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,o){return _1(t,"get","$attrs"),e[o]}}))}function r5e(t){const e=o=>{t.exposed=o||{}};return{get attrs(){return n5e(t)},slots:t.slots,emit:t.emit,expose:e}}function ZZ(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(C1e(fD(t.exposed)),{get(e,o){if(o in e)return e[o];if(o in rI)return rI[o](t)},has(e,o){return o in e||o in rI}}))}function o5e(t,e=!0){return ll(t)?t.displayName||t.name:t.name||e&&t.__name}function i5e(t){return ll(t)&&"__vccOpts"in t}const Un=(t,e)=>J4e(t,e,CI);function w1(t,e,o){const f=arguments.length;return f===2?Ff(e)&&!xs(e)?aM(e)?Ht(t,null,[e]):Ht(t,e):Ht(t,null,e):(f>3?o=Array.prototype.slice.call(arguments,2):f===3&&aM(o)&&(o=[o]),Ht(t,e,o))}const a5e=Symbol.for("v-scx"),s5e=()=>yl(a5e),l5e="3.3.4",c5e="http://www.w3.org/2000/svg",tT=typeof document<"u"?document:null,Ude=tT&&tT.createElement("template"),u5e={insert:(t,e,o)=>{e.insertBefore(t,o||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,o,f)=>{const P=e?tT.createElementNS(c5e,t):tT.createElement(t,o?{is:o}:void 0);return t==="select"&&f&&f.multiple!=null&&P.setAttribute("multiple",f.multiple),P},createText:t=>tT.createTextNode(t),createComment:t=>tT.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>tT.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,o,f,P,d){const l=o?o.previousSibling:e.lastChild;if(P&&(P===d||P.nextSibling))for(;e.insertBefore(P.cloneNode(!0),o),!(P===d||!(P=P.nextSibling)););else{Ude.innerHTML=f?`${t}`:t;const n=Ude.content;if(f){const c=n.firstChild;for(;c.firstChild;)n.appendChild(c.firstChild);n.removeChild(c)}e.insertBefore(n,o)}return[l?l.nextSibling:e.firstChild,o?o.previousSibling:e.lastChild]}};function f5e(t,e,o){const f=t._vtc;f&&(e=(e?[e,...f]:[...f]).join(" ")),e==null?t.removeAttribute("class"):o?t.setAttribute("class",e):t.className=e}function d5e(t,e,o){const f=t.style,P=hh(o);if(o&&!P){if(e&&!hh(e))for(const d in e)o[d]==null&&Aae(f,d,"");for(const d in o)Aae(f,d,o[d])}else{const d=f.display;P?e!==o&&(f.cssText=o):e&&t.removeAttribute("style"),"_vod"in t&&(f.display=d)}}const jde=/\s*!important$/;function Aae(t,e,o){if(xs(o))o.forEach(f=>Aae(t,e,f));else if(o==null&&(o=""),e.startsWith("--"))t.setProperty(e,o);else{const f=h5e(t,e);jde.test(o)?t.setProperty(xT(f),o.replace(jde,""),"important"):t[f]=o}}const Qde=["Webkit","Moz","ms"],rie={};function h5e(t,e){const o=rie[e];if(o)return o;let f=rb(e);if(f!=="filter"&&f in t)return rie[e]=f;f=v_(f);for(let P=0;Poie||(b5e.then(()=>oie=0),oie=Date.now());function _5e(t,e){const o=f=>{if(!f._vts)f._vts=Date.now();else if(f._vts<=o.attached)return;eb(w5e(f,o.value),e,5,[f])};return o.value=t,o.attached=x5e(),o}function w5e(t,e){if(xs(e)){const o=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{o.call(t),t._stopped=!0},e.map(f=>P=>!P._stopped&&f&&f(P))}else return e}const qde=/^on[a-z]/,O5e=(t,e,o,f,P=!1,d,l,n,c)=>{e==="class"?f5e(t,f,P):e==="style"?d5e(t,o,f):zZ(e)?gle(e)||v5e(t,e,o,f,l):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):S5e(t,e,f,P))?m5e(t,e,f,d,l,n,c):(e==="true-value"?t._trueValue=f:e==="false-value"&&(t._falseValue=f),p5e(t,e,f,P))};function S5e(t,e,o,f){return f?!!(e==="innerHTML"||e==="textContent"||e in t&&qde.test(e)&&ll(o)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||qde.test(e)&&hh(o)?!1:e in t}const B4="transition",PL="animation",h_=(t,{slots:e})=>w1(xSe,ove(t),e);h_.displayName="Transition";const rve={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},k5e=h_.props=Nh({},z1e,rve),Zk=(t,e=[])=>{xs(t)?t.forEach(o=>o(...e)):t&&t(...e)},Wde=t=>t?xs(t)?t.some(e=>e.length>1):t.length>1:!1;function ove(t){const e={};for(const C in t)C in rve||(e[C]=t[C]);if(t.css===!1)return e;const{name:o="v",type:f,duration:P,enterFromClass:d=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:n=`${o}-enter-to`,appearFromClass:c=d,appearActiveClass:b=l,appearToClass:i=n,leaveFromClass:O=`${o}-leave-from`,leaveActiveClass:w=`${o}-leave-active`,leaveToClass:y=`${o}-leave-to`}=t,p=T5e(P),a=p&&p[0],u=p&&p[1],{onBeforeEnter:h,onEnter:m,onEnterCancelled:v,onLeave:_,onLeaveCancelled:S,onBeforeAppear:A=h,onAppear:x=m,onAppearCancelled:R=v}=e,M=(C,L,D)=>{N4(C,L?i:n),N4(C,L?b:l),D&&D()},T=(C,L)=>{C._isLeaving=!1,N4(C,O),N4(C,y),N4(C,w),L&&L()},E=C=>(L,D)=>{const k=C?x:m,I=()=>M(L,C,D);Zk(k,[L,I]),Yde(()=>{N4(L,C?c:d),bO(L,C?i:n),Wde(k)||Xde(L,f,a,I)})};return Nh(e,{onBeforeEnter(C){Zk(h,[C]),bO(C,d),bO(C,l)},onBeforeAppear(C){Zk(A,[C]),bO(C,c),bO(C,b)},onEnter:E(!1),onAppear:E(!0),onLeave(C,L){C._isLeaving=!0;const D=()=>T(C,L);bO(C,O),ave(),bO(C,w),Yde(()=>{C._isLeaving&&(N4(C,O),bO(C,y),Wde(_)||Xde(C,f,u,D))}),Zk(_,[C,D])},onEnterCancelled(C){M(C,!1),Zk(v,[C])},onAppearCancelled(C){M(C,!0),Zk(R,[C])},onLeaveCancelled(C){T(C),Zk(S,[C])}})}function T5e(t){if(t==null)return null;if(Ff(t))return[iie(t.enter),iie(t.leave)];{const e=iie(t);return[e,e]}}function iie(t){return s1e(t)}function bO(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.add(o)),(t._vtc||(t._vtc=new Set)).add(e)}function N4(t,e){e.split(/\s+/).forEach(f=>f&&t.classList.remove(f));const{_vtc:o}=t;o&&(o.delete(e),o.size||(t._vtc=void 0))}function Yde(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let C5e=0;function Xde(t,e,o,f){const P=t._endId=++C5e,d=()=>{P===t._endId&&f()};if(o)return setTimeout(d,o);const{type:l,timeout:n,propCount:c}=ive(t,e);if(!l)return f();const b=l+"end";let i=0;const O=()=>{t.removeEventListener(b,w),d()},w=y=>{y.target===t&&++i>=c&&O()};setTimeout(()=>{i(o[p]||"").split(", "),P=f(`${B4}Delay`),d=f(`${B4}Duration`),l=Gde(P,d),n=f(`${PL}Delay`),c=f(`${PL}Duration`),b=Gde(n,c);let i=null,O=0,w=0;e===B4?l>0&&(i=B4,O=l,w=d.length):e===PL?b>0&&(i=PL,O=b,w=c.length):(O=Math.max(l,b),i=O>0?l>b?B4:PL:null,w=i?i===B4?d.length:c.length:0);const y=i===B4&&/\b(transform|all)(,|$)/.test(f(`${B4}Property`).toString());return{type:i,timeout:O,propCount:w,hasTransform:y}}function Gde(t,e){for(;t.lengthKde(o)+Kde(t[f])))}function Kde(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function ave(){return document.body.offsetHeight}const sve=new WeakMap,lve=new WeakMap,cve={name:"TransitionGroup",props:Nh({},k5e,{tag:String,moveClass:String}),setup(t,{slots:e}){const o=Zle(),f=B1e();let P,d;return Fle(()=>{if(!P.length)return;const l=t.moveClass||`${t.name||"v"}-move`;if(!R5e(P[0].el,o.vnode.el,l))return;P.forEach(M5e),P.forEach(E5e);const n=P.filter(P5e);ave(),n.forEach(c=>{const b=c.el,i=b.style;bO(b,l),i.transform=i.webkitTransform=i.transitionDuration="";const O=b._moveCb=w=>{w&&w.target!==b||(!w||/transform$/.test(w.propertyName))&&(b.removeEventListener("transitionend",O),b._moveCb=null,N4(b,l))};b.addEventListener("transitionend",O)})}),()=>{const l=As(t),n=ove(l);let c=l.tag||ma;P=d,d=e.default?Ile(e.default()):[];for(let b=0;bdelete t.mode;cve.props;const Wle=cve;function M5e(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function E5e(t){lve.set(t,t.el.getBoundingClientRect())}function P5e(t){const e=sve.get(t),o=lve.get(t),f=e.left-o.left,P=e.top-o.top;if(f||P){const d=t.el.style;return d.transform=d.webkitTransform=`translate(${f}px,${P}px)`,d.transitionDuration="0s",t}}function R5e(t,e,o){const f=t.cloneNode();t._vtc&&t._vtc.forEach(l=>{l.split(/\s+/).forEach(n=>n&&f.classList.remove(n))}),o.split(/\s+/).forEach(l=>l&&f.classList.add(l)),f.style.display="none";const P=e.nodeType===1?e:e.parentNode;P.appendChild(f);const{hasTransform:d}=ive(f);return P.removeChild(f),d}const Jde=t=>{const e=t.props["onUpdate:modelValue"]||!1;return xs(e)?o=>cH(e,o):e};function L5e(t){t.target.composing=!0}function ehe(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const I5e={created(t,{modifiers:{lazy:e,trim:o,number:f}},P){t._assign=Jde(P);const d=f||P.props&&P.props.type==="number";BA(t,e?"change":"input",l=>{if(l.target.composing)return;let n=t.value;o&&(n=n.trim()),d&&(n=mae(n)),t._assign(n)}),o&&BA(t,"change",()=>{t.value=t.value.trim()}),e||(BA(t,"compositionstart",L5e),BA(t,"compositionend",ehe),BA(t,"change",ehe))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:o,trim:f,number:P}},d){if(t._assign=Jde(d),t.composing||document.activeElement===t&&t.type!=="range"&&(o||f&&t.value.trim()===e||(P||t.type==="number")&&mae(t.value)===e))return;const l=e??"";t.value!==l&&(t.value=l)}},D5e=["ctrl","shift","alt","meta"],B5e={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>D5e.some(o=>t[`${o}Key`]&&!e.includes(o))},DH=(t,e)=>(o,...f)=>{for(let P=0;Po=>{if(!("key"in o))return;const f=xT(o.key);if(e.some(P=>P===f||z5e[P]===f))return t(o)},mS={beforeMount(t,{value:e},{transition:o}){t._vod=t.style.display==="none"?"":t.style.display,o&&e?o.beforeEnter(t):RL(t,e)},mounted(t,{value:e},{transition:o}){o&&e&&o.enter(t)},updated(t,{value:e,oldValue:o},{transition:f}){!e!=!o&&(f?e?(f.beforeEnter(t),RL(t,!0),f.enter(t)):f.leave(t,()=>{RL(t,!1)}):RL(t,e))},beforeUnmount(t,{value:e}){RL(t,e)}};function RL(t,e){t.style.display=e?t._vod:"none"}const F5e=Nh({patchProp:O5e},u5e);let the;function N5e(){return the||(the=USe(F5e))}const $5e=(...t)=>{const e=N5e().createApp(...t),{mount:o}=e;return e.mount=f=>{const P=V5e(f);if(!P)return;const d=e._component;!ll(d)&&!d.render&&!d.template&&(d.template=P.innerHTML),P.innerHTML="";const l=o(P,!1,P instanceof SVGElement);return P instanceof Element&&(P.removeAttribute("v-cloak"),P.setAttribute("data-v-app","")),l},e};function V5e(t){return hh(t)?document.querySelector(t):t}/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const BA=typeof window<"u";function V5e(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const $u=Object.assign;function aie(t,e){const o={};for(const f in e){const P=e[f];o[f]=yx(P)?P.map(t):t(P)}return o}const iI=()=>{},yx=Array.isArray,U5e=/\/$/,j5e=t=>t.replace(U5e,"");function sie(t,e,o="/"){let f,P={},d="",l="";const n=e.indexOf("#");let c=e.indexOf("?");return n=0&&(c=-1),c>-1&&(f=e.slice(0,c),d=e.slice(c+1,n>-1?n:e.length),P=t(d)),n>-1&&(f=f||e.slice(0,n),l=e.slice(n,e.length)),f=q5e(f??e,o),{fullPath:f+(d&&"?")+d+l,path:f,query:P,hash:l}}function Q5e(t,e){const o=e.query?t(e.query):"";return e.path+(o&&"?")+o+(e.hash||"")}function the(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function H5e(t,e,o){const f=e.matched.length-1,P=o.matched.length-1;return f>-1&&f===P&&sM(e.matched[f],o.matched[P])&&uve(e.params,o.params)&&t(e.query)===t(o.query)&&e.hash===o.hash}function sM(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function uve(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const o in t)if(!Z5e(t[o],e[o]))return!1;return!0}function Z5e(t,e){return yx(t)?nhe(t,e):yx(e)?nhe(e,t):t===e}function nhe(t,e){return yx(e)?t.length===e.length&&t.every((o,f)=>o===e[f]):t.length===1&&t[0]===e}function q5e(t,e){if(t.startsWith("/"))return t;if(!t)return e;const o=e.split("/"),f=t.split("/"),P=f[f.length-1];(P===".."||P===".")&&f.push("");let d=o.length-1,l,n;for(l=0;l1&&d--;else break;return o.slice(0,d).join("/")+"/"+f.slice(l-(l===f.length?1:0)).join("/")}var CI;(function(t){t.pop="pop",t.push="push"})(CI||(CI={}));var aI;(function(t){t.back="back",t.forward="forward",t.unknown=""})(aI||(aI={}));function W5e(t){if(!t)if(BA){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),j5e(t)}const Y5e=/^[^#]+#/;function X5e(t,e){return t.replace(Y5e,"#")+e}function G5e(t,e){const o=document.documentElement.getBoundingClientRect(),f=t.getBoundingClientRect();return{behavior:e.behavior,left:f.left-o.left-(e.left||0),top:f.top-o.top-(e.top||0)}}const qZ=()=>({left:window.pageXOffset,top:window.pageYOffset});function K5e(t){let e;if("el"in t){const o=t.el,f=typeof o=="string"&&o.startsWith("#"),P=typeof o=="string"?f?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!P)return;e=G5e(P,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function rhe(t,e){return(history.state?history.state.position-e:-1)+t}const Mae=new Map;function J5e(t,e){Mae.set(t,e)}function eke(t){const e=Mae.get(t);return Mae.delete(t),e}let tke=()=>location.protocol+"//"+location.host;function fve(t,e){const{pathname:o,search:f,hash:P}=e,d=t.indexOf("#");if(d>-1){let n=P.includes(t.slice(d))?t.slice(d).length:1,c=P.slice(n);return c[0]!=="/"&&(c="/"+c),the(c,"")}return the(o,t)+f+P}function nke(t,e,o,f){let P=[],d=[],l=null;const n=({state:w})=>{const y=fve(t,location),p=o.value,a=e.value;let u=0;if(w){if(o.value=y,e.value=w,l&&l===p){l=null;return}u=a?w.position-a.position:0}else f(y);P.forEach(h=>{h(o.value,p,{delta:u,type:CI.pop,direction:u?u>0?aI.forward:aI.back:aI.unknown})})};function c(){l=o.value}function b(w){P.push(w);const y=()=>{const p=P.indexOf(w);p>-1&&P.splice(p,1)};return d.push(y),y}function i(){const{history:w}=window;w.state&&w.replaceState($u({},w.state,{scroll:qZ()}),"")}function O(){for(const w of d)w();d=[],window.removeEventListener("popstate",n),window.removeEventListener("beforeunload",i)}return window.addEventListener("popstate",n),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:c,listen:b,destroy:O}}function ohe(t,e,o,f=!1,P=!1){return{back:t,current:e,forward:o,replaced:f,position:window.history.length,scroll:P?qZ():null}}function rke(t){const{history:e,location:o}=window,f={value:fve(t,o)},P={value:e.state};P.value||d(f.value,{back:null,current:f.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function d(c,b,i){const O=t.indexOf("#"),w=O>-1?(o.host&&document.querySelector("base")?t:t.slice(O))+c:tke()+t+c;try{e[i?"replaceState":"pushState"](b,"",w),P.value=b}catch(y){console.error(y),o[i?"replace":"assign"](w)}}function l(c,b){const i=$u({},e.state,ohe(P.value.back,c,P.value.forward,!0),b,{position:P.value.position});d(c,i,!0),f.value=c}function n(c,b){const i=$u({},P.value,e.state,{forward:c,scroll:qZ()});d(i.current,i,!0);const O=$u({},ohe(f.value,c,null),{position:i.position+1},b);d(c,O,!1),f.value=c}return{location:f,state:P,push:n,replace:l}}function oke(t){t=W5e(t);const e=rke(t),o=nke(t,e.state,e.location,e.replace);function f(d,l=!0){l||o.pauseListeners(),history.go(d)}const P=$u({location:"",base:t,go:f,createHref:X5e.bind(null,t)},e,o);return Object.defineProperty(P,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(P,"state",{enumerable:!0,get:()=>e.state.value}),P}function ike(t){return typeof t=="string"||t&&typeof t=="object"}function dve(t){return typeof t=="string"||typeof t=="symbol"}const z4={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},hve=Symbol("");var ihe;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(ihe||(ihe={}));function lM(t,e){return $u(new Error,{type:t,[hve]:!0},e)}function yO(t,e){return t instanceof Error&&hve in t&&(e==null||!!(t.type&e))}const ahe="[^/]+?",ake={sensitive:!1,strict:!1,start:!0,end:!0},ske=/[.+*?^${}()[\]/\\]/g;function lke(t,e){const o=$u({},ake,e),f=[];let P=o.start?"^":"";const d=[];for(const b of t){const i=b.length?[]:[90];o.strict&&!b.length&&(P+="/");for(let O=0;Oe.length?e.length===1&&e[0]===40+40?1:-1:0}function uke(t,e){let o=0;const f=t.score,P=e.score;for(;o0&&e[e.length-1]<0}const fke={type:0,value:""},dke=/[a-zA-Z0-9_]/;function hke(t){if(!t)return[[]];if(t==="/")return[[fke]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(y){throw new Error(`ERR (${o})/"${b}": ${y}`)}let o=0,f=o;const P=[];let d;function l(){d&&P.push(d),d=[]}let n=0,c,b="",i="";function O(){b&&(o===0?d.push({type:0,value:b}):o===1||o===2||o===3?(d.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${b}) must be alone in its segment. eg: '/:ids+.`),d.push({type:1,value:b,regexp:i,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),b="")}function w(){b+=c}for(;n{l(m)}:iI}function l(i){if(dve(i)){const O=f.get(i);O&&(f.delete(i),o.splice(o.indexOf(O),1),O.children.forEach(l),O.alias.forEach(l))}else{const O=o.indexOf(i);O>-1&&(o.splice(O,1),i.record.name&&f.delete(i.record.name),i.children.forEach(l),i.alias.forEach(l))}}function n(){return o}function c(i){let O=0;for(;O=0&&(i.record.path!==o[O].record.path||!pve(i,o[O]));)O++;o.splice(O,0,i),i.record.name&&!che(i)&&f.set(i.record.name,i)}function b(i,O){let w,y={},p,a;if("name"in i&&i.name){if(w=f.get(i.name),!w)throw lM(1,{location:i});a=w.record.name,y=$u(lhe(O.params,w.keys.filter(m=>!m.optional).map(m=>m.name)),i.params&&lhe(i.params,w.keys.map(m=>m.name))),p=w.stringify(y)}else if("path"in i)p=i.path,w=o.find(m=>m.re.test(p)),w&&(y=w.parse(p),a=w.record.name);else{if(w=O.name?f.get(O.name):o.find(m=>m.re.test(O.path)),!w)throw lM(1,{location:i,currentLocation:O});a=w.record.name,y=$u({},O.params,i.params),p=w.stringify(y)}const u=[];let h=w;for(;h;)u.unshift(h.record),h=h.parent;return{name:a,path:p,params:y,matched:u,meta:yke(u)}}return t.forEach(i=>d(i)),{addRoute:d,resolve:b,removeRoute:l,getRoutes:n,getRecordMatcher:P}}function lhe(t,e){const o={};for(const f of e)f in t&&(o[f]=t[f]);return o}function gke(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:vke(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function vke(t){const e={},o=t.props||!1;if("component"in t)e.default=o;else for(const f in t.components)e[f]=typeof o=="object"?o[f]:o;return e}function che(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function yke(t){return t.reduce((e,o)=>$u(e,o.meta),{})}function uhe(t,e){const o={};for(const f in t)o[f]=f in e?e[f]:t[f];return o}function pve(t,e){return e.children.some(o=>o===t||pve(t,o))}const mve=/#/g,bke=/&/g,xke=/\//g,_ke=/=/g,wke=/\?/g,gve=/\+/g,Oke=/%5B/g,Ske=/%5D/g,vve=/%5E/g,kke=/%60/g,yve=/%7B/g,Tke=/%7C/g,bve=/%7D/g,Cke=/%20/g;function Yle(t){return encodeURI(""+t).replace(Tke,"|").replace(Oke,"[").replace(Ske,"]")}function Ake(t){return Yle(t).replace(yve,"{").replace(bve,"}").replace(vve,"^")}function Eae(t){return Yle(t).replace(gve,"%2B").replace(Cke,"+").replace(mve,"%23").replace(bke,"%26").replace(kke,"`").replace(yve,"{").replace(bve,"}").replace(vve,"^")}function Mke(t){return Eae(t).replace(_ke,"%3D")}function Eke(t){return Yle(t).replace(mve,"%23").replace(wke,"%3F")}function Pke(t){return t==null?"":Eke(t).replace(xke,"%2F")}function BH(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function Rke(t){const e={};if(t===""||t==="?")return e;const f=(t[0]==="?"?t.slice(1):t).split("&");for(let P=0;Pd&&Eae(d)):[f&&Eae(f)]).forEach(d=>{d!==void 0&&(e+=(e.length?"&":"")+o,d!=null&&(e+="="+d))})}return e}function Lke(t){const e={};for(const o in t){const f=t[o];f!==void 0&&(e[o]=yx(f)?f.map(P=>P==null?null:""+P):f==null?f:""+f)}return e}const Ike=Symbol(""),dhe=Symbol(""),Xle=Symbol(""),Gle=Symbol(""),Pae=Symbol("");function RL(){let t=[];function e(f){return t.push(f),()=>{const P=t.indexOf(f);P>-1&&t.splice(P,1)}}function o(){t=[]}return{add:e,list:()=>t.slice(),reset:o}}function U4(t,e,o,f,P){const d=f&&(f.enterCallbacks[P]=f.enterCallbacks[P]||[]);return()=>new Promise((l,n)=>{const c=O=>{O===!1?n(lM(4,{from:o,to:e})):O instanceof Error?n(O):ike(O)?n(lM(2,{from:e,to:O})):(d&&f.enterCallbacks[P]===d&&typeof O=="function"&&d.push(O),l())},b=t.call(f&&f.instances[P],e,o,c);let i=Promise.resolve(b);t.length<3&&(i=i.then(c)),i.catch(O=>n(O))})}function lie(t,e,o,f){const P=[];for(const d of t)for(const l in d.components){let n=d.components[l];if(!(e!=="beforeRouteEnter"&&!d.instances[l]))if(Dke(n)){const b=(n.__vccOpts||n)[e];b&&P.push(U4(b,o,f,d,l))}else{let c=n();P.push(()=>c.then(b=>{if(!b)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${d.path}"`));const i=V5e(b)?b.default:b;d.components[l]=i;const w=(i.__vccOpts||i)[e];return w&&U4(w,o,f,d,l)()}))}}return P}function Dke(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function hhe(t){const e=vl(Xle),o=vl(Gle),f=jn(()=>e.resolve(wa(t.to))),P=jn(()=>{const{matched:c}=f.value,{length:b}=c,i=c[b-1],O=o.matched;if(!i||!O.length)return-1;const w=O.findIndex(sM.bind(null,i));if(w>-1)return w;const y=phe(c[b-2]);return b>1&&phe(i)===y&&O[O.length-1].path!==y?O.findIndex(sM.bind(null,c[b-2])):w}),d=jn(()=>P.value>-1&&Nke(o.params,f.value.params)),l=jn(()=>P.value>-1&&P.value===o.matched.length-1&&uve(o.params,f.value.params));function n(c={}){return Fke(c)?e[wa(t.replace)?"replace":"push"](wa(t.to)).catch(iI):Promise.resolve()}return{route:f,href:jn(()=>f.value.href),isActive:d,isExactActive:l,navigate:n}}const Bke=Hg({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:hhe,setup(t,{slots:e}){const o=lm(hhe(t)),{options:f}=vl(Xle),P=jn(()=>({[mhe(t.activeClass,f.linkActiveClass,"router-link-active")]:o.isActive,[mhe(t.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const d=e.default&&e.default(o);return t.custom?d:w1("a",{"aria-current":o.isExactActive?t.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:P.value},d)}}}),zke=Bke;function Fke(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Nke(t,e){for(const o in e){const f=e[o],P=t[o];if(typeof f=="string"){if(f!==P)return!1}else if(!yx(P)||P.length!==f.length||f.some((d,l)=>d!==P[l]))return!1}return!0}function phe(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const mhe=(t,e,o)=>t??e??o,$ke=Hg({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:o}){const f=vl(Pae),P=jn(()=>t.route||f.value),d=vl(dhe,0),l=jn(()=>{let b=wa(d);const{matched:i}=P.value;let O;for(;(O=i[b])&&!O.components;)b++;return b}),n=jn(()=>P.value.matched[l.value]);gf(dhe,jn(()=>l.value+1)),gf(Ike,n),gf(Pae,P);const c=ei();return Ni(()=>[c.value,n.value,t.name],([b,i,O],[w,y,p])=>{i&&(i.instances[O]=b,y&&y!==i&&b&&b===w&&(i.leaveGuards.size||(i.leaveGuards=y.leaveGuards),i.updateGuards.size||(i.updateGuards=y.updateGuards))),b&&i&&(!y||!sM(i,y)||!w)&&(i.enterCallbacks[O]||[]).forEach(a=>a(b))},{flush:"post"}),()=>{const b=P.value,i=t.name,O=n.value,w=O&&O.components[i];if(!w)return ghe(o.default,{Component:w,route:b});const y=O.props[i],p=y?y===!0?b.params:typeof y=="function"?y(b):y:null,u=w1(w,$u({},p,e,{onVnodeUnmounted:h=>{h.component.isUnmounted&&(O.instances[i]=null)},ref:c}));return ghe(o.default,{Component:u,route:b})||u}}});function ghe(t,e){if(!t)return null;const o=t(e);return o.length===1?o[0]:o}const Vke=$ke;function Uke(t){const e=mke(t.routes,t),o=t.parseQuery||Rke,f=t.stringifyQuery||fhe,P=t.history,d=RL(),l=RL(),n=RL(),c=Ai(z4);let b=z4;BA&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const i=aie.bind(null,q=>""+q),O=aie.bind(null,Pke),w=aie.bind(null,BH);function y(q,Y){let ee,me;return dve(q)?(ee=e.getRecordMatcher(q),me=Y):me=q,e.addRoute(me,ee)}function p(q){const Y=e.getRecordMatcher(q);Y&&e.removeRoute(Y)}function a(){return e.getRoutes().map(q=>q.record)}function u(q){return!!e.getRecordMatcher(q)}function h(q,Y){if(Y=$u({},Y||c.value),typeof q=="string"){const ce=sie(o,q,Y.path),de=e.resolve({path:ce.path},Y),ve=P.createHref(ce.fullPath);return $u(ce,de,{params:w(de.params),hash:BH(ce.hash),redirectedFrom:void 0,href:ve})}let ee;if("path"in q)ee=$u({},q,{path:sie(o,q.path,Y.path).path});else{const ce=$u({},q.params);for(const de in ce)ce[de]==null&&delete ce[de];ee=$u({},q,{params:O(ce)}),Y.params=O(Y.params)}const me=e.resolve(ee,Y),he=q.hash||"";me.params=i(w(me.params));const se=Q5e(f,$u({},q,{hash:Ake(he),path:me.path})),ae=P.createHref(se);return $u({fullPath:se,hash:he,query:f===fhe?Lke(q.query):q.query||{}},me,{redirectedFrom:void 0,href:ae})}function m(q){return typeof q=="string"?sie(o,q,c.value.path):$u({},q)}function v(q,Y){if(b!==q)return lM(8,{from:Y,to:q})}function _(q){return x(q)}function S(q){return _($u(m(q),{replace:!0}))}function A(q){const Y=q.matched[q.matched.length-1];if(Y&&Y.redirect){const{redirect:ee}=Y;let me=typeof ee=="function"?ee(q):ee;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=m(me):{path:me},me.params={}),$u({query:q.query,hash:q.hash,params:"path"in me?{}:q.params},me)}}function x(q,Y){const ee=b=h(q),me=c.value,he=q.state,se=q.force,ae=q.replace===!0,ce=A(ee);if(ce)return x($u(m(ce),{state:typeof ce=="object"?$u({},he,ce.state):he,force:se,replace:ae}),Y||ee);const de=ee;de.redirectedFrom=Y;let ve;return!se&&H5e(f,me,ee)&&(ve=lM(16,{to:de,from:me}),U(me,me,!0,!1)),(ve?Promise.resolve(ve):T(de,me)).catch(ye=>yO(ye)?yO(ye,2)?ye:j(ye):$(ye,de,me)).then(ye=>{if(ye){if(yO(ye,2))return x($u({replace:ae},m(ye.to),{state:typeof ye.to=="object"?$u({},he,ye.to.state):he,force:se}),Y||de)}else ye=C(de,me,!0,ae,he);return E(de,me,ye),ye})}function R(q,Y){const ee=v(q,Y);return ee?Promise.reject(ee):Promise.resolve()}function M(q){const Y=W.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(q):q()}function T(q,Y){let ee;const[me,he,se]=jke(q,Y);ee=lie(me.reverse(),"beforeRouteLeave",q,Y);for(const ce of me)ce.leaveGuards.forEach(de=>{ee.push(U4(de,q,Y))});const ae=R.bind(null,q,Y);return ee.push(ae),oe(ee).then(()=>{ee=[];for(const ce of d.list())ee.push(U4(ce,q,Y));return ee.push(ae),oe(ee)}).then(()=>{ee=lie(he,"beforeRouteUpdate",q,Y);for(const ce of he)ce.updateGuards.forEach(de=>{ee.push(U4(de,q,Y))});return ee.push(ae),oe(ee)}).then(()=>{ee=[];for(const ce of se)if(ce.beforeEnter)if(yx(ce.beforeEnter))for(const de of ce.beforeEnter)ee.push(U4(de,q,Y));else ee.push(U4(ce.beforeEnter,q,Y));return ee.push(ae),oe(ee)}).then(()=>(q.matched.forEach(ce=>ce.enterCallbacks={}),ee=lie(se,"beforeRouteEnter",q,Y),ee.push(ae),oe(ee))).then(()=>{ee=[];for(const ce of l.list())ee.push(U4(ce,q,Y));return ee.push(ae),oe(ee)}).catch(ce=>yO(ce,8)?ce:Promise.reject(ce))}function E(q,Y,ee){n.list().forEach(me=>M(()=>me(q,Y,ee)))}function C(q,Y,ee,me,he){const se=v(q,Y);if(se)return se;const ae=Y===z4,ce=BA?history.state:{};ee&&(me||ae?P.replace(q.fullPath,$u({scroll:ae&&ce&&ce.scroll},he)):P.push(q.fullPath,he)),c.value=q,U(q,Y,ee,ae),j()}let L;function D(){L||(L=P.listen((q,Y,ee)=>{if(!K.listening)return;const me=h(q),he=A(me);if(he){x($u(he,{replace:!0}),me).catch(iI);return}b=me;const se=c.value;BA&&J5e(rhe(se.fullPath,ee.delta),qZ()),T(me,se).catch(ae=>yO(ae,12)?ae:yO(ae,2)?(x(ae.to,me).then(ce=>{yO(ce,20)&&!ee.delta&&ee.type===CI.pop&&P.go(-1,!1)}).catch(iI),Promise.reject()):(ee.delta&&P.go(-ee.delta,!1),$(ae,me,se))).then(ae=>{ae=ae||C(me,se,!1),ae&&(ee.delta&&!yO(ae,8)?P.go(-ee.delta,!1):ee.type===CI.pop&&yO(ae,20)&&P.go(-1,!1)),E(me,se,ae)}).catch(iI)}))}let k=RL(),I=RL(),z;function $(q,Y,ee){j(q);const me=I.list();return me.length?me.forEach(he=>he(q,Y,ee)):console.error(q),Promise.reject(q)}function Q(){return z&&c.value!==z4?Promise.resolve():new Promise((q,Y)=>{k.add([q,Y])})}function j(q){return z||(z=!q,D(),k.list().forEach(([Y,ee])=>q?ee(q):Y()),k.reset()),q}function U(q,Y,ee,me){const{scrollBehavior:he}=t;if(!BA||!he)return Promise.resolve();const se=!ee&&eke(rhe(q.fullPath,0))||(me||!ee)&&history.state&&history.state.scroll||null;return lc().then(()=>he(q,Y,se)).then(ae=>ae&&K5e(ae)).catch(ae=>$(ae,q,Y))}const X=q=>P.go(q);let te;const W=new Set,K={currentRoute:c,listening:!0,addRoute:y,removeRoute:p,hasRoute:u,getRoutes:a,resolve:h,options:t,push:_,replace:S,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:d.add,beforeResolve:l.add,afterEach:n.add,onError:I.add,isReady:Q,install(q){const Y=this;q.component("RouterLink",zke),q.component("RouterView",Vke),q.config.globalProperties.$router=Y,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>wa(c)}),BA&&!te&&c.value===z4&&(te=!0,_(P.location).catch(he=>{}));const ee={};for(const he in z4)Object.defineProperty(ee,he,{get:()=>c.value[he],enumerable:!0});q.provide(Xle,Y),q.provide(Gle,_1e(ee)),q.provide(Pae,c);const me=q.unmount;W.add(q),q.unmount=function(){W.delete(q),W.size<1&&(b=z4,L&&L(),L=null,c.value=z4,te=!1,z=!1),me()}}};function oe(q){return q.reduce((Y,ee)=>Y.then(()=>M(ee)),Promise.resolve())}return K}function jke(t,e){const o=[],f=[],P=[],d=Math.max(e.matched.length,t.matched.length);for(let l=0;lsM(b,n))?f.push(n):o.push(n));const c=t.matched[l];c&&(e.matched.find(b=>sM(b,c))||P.push(c))}return[o,f,P]}function _T(){return vl(Gle)}function Qke(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xve={exports:{}};(function(t,e){/*! For license information please see plotly.min.js.LICENSE.txt */(function(o,f){t.exports=f()})(self,function(){return function(){var o={79288:function(d,l,n){var c=n(3400),b={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in b){var O=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");c.addStyleRule(O,b[i])}},86712:function(d,l,n){d.exports=n(84224)},37240:function(d,l,n){d.exports=n(51132)},29744:function(d,l,n){d.exports=n(94456)},29352:function(d,l,n){d.exports=n(67244)},96144:function(d,l,n){d.exports=n(97776)},53219:function(d,l,n){d.exports=n(61712)},4624:function(d,l,n){d.exports=n(95856)},54543:function(d,l,n){d.exports=n(54272)},45e3:function(d,l,n){d.exports=n(85404)},62300:function(d,l,n){d.exports=n(26048)},6920:function(d,l,n){d.exports=n(66240)},10264:function(d,l,n){d.exports=n(40448)},32016:function(d,l,n){d.exports=n(64884)},27528:function(d,l,n){d.exports=n(15088)},75556:function(d,l,n){d.exports=n(76744)},39204:function(d,l,n){d.exports=n(94704)},73996:function(d,l,n){d.exports=n(62396)},16489:function(d,l,n){d.exports=n(32028)},5e3:function(d,l,n){d.exports=n(81932)},77280:function(d,l,n){d.exports=n(45536)},33992:function(d,l,n){d.exports=n(42600)},17600:function(d,l,n){d.exports=n(21536)},49116:function(d,l,n){d.exports=n(65664)},46808:function(d,l,n){d.exports=n(29044)},36168:function(d,l,n){d.exports=n(48928)},13792:function(d,l,n){var c=n(32016);c.register([n(37240),n(29352),n(5e3),n(33992),n(17600),n(49116),n(6920),n(67484),n(79440),n(39204),n(83096),n(36168),n(20260),n(63560),n(65832),n(46808),n(73996),n(48824),n(89904),n(25120),n(13752),n(4340),n(62300),n(29800),n(8363),n(54543),n(86636),n(42192),n(32140),n(77280),n(89296),n(56816),n(70192),n(45e3),n(27528),n(84764),n(3920),n(50248),n(4624),n(69967),n(10264),n(86152),n(53219),n(81604),n(63796),n(29744),n(89336),n(86712),n(75556),n(16489),n(97312),n(96144)]),d.exports=c},3920:function(d,l,n){d.exports=n(43480)},25120:function(d,l,n){d.exports=n(6296)},4340:function(d,l,n){d.exports=n(7404)},86152:function(d,l,n){d.exports=n(65456)},56816:function(d,l,n){d.exports=n(22020)},89296:function(d,l,n){d.exports=n(29928)},20260:function(d,l,n){d.exports=n(75792)},32140:function(d,l,n){d.exports=n(156)},84764:function(d,l,n){d.exports=n(45499)},48824:function(d,l,n){d.exports=n(3296)},69967:function(d,l,n){d.exports=n(4184)},8363:function(d,l,n){d.exports=n(36952)},86636:function(d,l,n){d.exports=n(38983)},70192:function(d,l,n){d.exports=n(11572)},81604:function(d,l,n){d.exports=n(76924)},63796:function(d,l,n){d.exports=n(62944)},89336:function(d,l,n){d.exports=n(95443)},67484:function(d,l,n){d.exports=n(34864)},97312:function(d,l,n){d.exports=n(76272)},42192:function(d,l,n){d.exports=n(97924)},29800:function(d,l,n){d.exports=n(15436)},63560:function(d,l,n){d.exports=n(5621)},89904:function(d,l,n){d.exports=n(91304)},50248:function(d,l,n){d.exports=n(41724)},65832:function(d,l,n){d.exports=n(31991)},79440:function(d,l,n){d.exports=n(22869)},13752:function(d,l,n){d.exports=n(67776)},83096:function(d,l,n){d.exports=n(95952)},72196:function(d){d.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(d,l,n){var c=n(72196),b=n(25376),i=n(33816),O=n(31780).templatedArray;n(36208),d.exports=O("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:c.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:c.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:b({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(d,l,n){var c=n(3400),b=n(54460),i=n(23816).draw;function O(y){var p=y._fullLayout;c.filterVisible(p.annotations).forEach(function(a){var u=b.getFromId(y,a.xref),h=b.getFromId(y,a.yref),m=b.getRefType(a.xref),v=b.getRefType(a.yref);a._extremes={},m==="range"&&w(a,u),v==="range"&&w(a,h)})}function w(y,p){var a,u=p._id,h=u.charAt(0),m=y[h],v=y["a"+h],_=y[h+"ref"],S=y["a"+h+"ref"],A=y["_"+h+"padplus"],x=y["_"+h+"padminus"],R={x:1,y:-1}[h]*y[h+"shift"],M=3*y.arrowsize*y.arrowwidth||0,T=M+R,E=M-R,C=3*y.startarrowsize*y.arrowwidth||0,L=C+R,D=C-R;if(S===_){var k=b.findExtremes(p,[p.r2c(m)],{ppadplus:T,ppadminus:E}),I=b.findExtremes(p,[p.r2c(v)],{ppadplus:Math.max(A,L),ppadminus:Math.max(x,D)});a={min:[k.min[0],I.min[0]],max:[k.max[0],I.max[0]]}}else L=v?L+v:L,D=v?D-v:D,a=b.findExtremes(p,[p.r2c(m)],{ppadplus:Math.max(A,T,L),ppadminus:Math.max(x,E,D)});y._extremes[u]=a}d.exports=function(y){var p=y._fullLayout;if(c.filterVisible(p.annotations).length&&y._fullData.length)return c.syncOrAsync([i,O],y)}},42300:function(d,l,n){var c=n(3400),b=n(24040),i=n(31780).arrayEditor;function O(y,p){var a,u,h,m,v,_,S,A=y._fullLayout.annotations,x=[],R=[],M=[],T=(p||[]).length;for(a=0;a0||a.explicitOff.length>0},onClick:function(y,p){var a,u,h=O(y,p),m=h.on,v=h.off.concat(h.explicitOff),_={},S=y._fullLayout.annotations;if(m.length||v.length){for(a=0;a.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Qt]}for(var tt=!1,Ee=["x","y"],Ne=0;Ne1)&&(Dt===wt?((mn=It.r2fraction(T["a"+pt]))<0||mn>1)&&(tt=!0):tt=!0),je=It._offset+It.r2p(T[pt]),Ge=.5}else{var vt=bn==="domain";pt==="x"?(ot=T[pt],je=vt?It._offset+It._length*ot:je=$.l+$.w*ot):(ot=1-T[pt],je=vt?It._offset+It._length*ot:je=$.t+$.h*ot),Ge=T.showarrow?.5:ot}if(T.showarrow){gn.head=je;var bt=T["a"+pt];if(ht=en*Xe(.5,T.xanchor)-Gt*Xe(.5,T.yanchor),Dt===wt){var lt=y.getRefType(Dt);lt==="domain"?(pt==="y"&&(bt=1-bt),gn.tail=It._offset+It._length*bt):lt==="paper"?pt==="y"?(bt=1-bt,gn.tail=$.t+$.h*bt):gn.tail=$.l+$.w*bt:gn.tail=It._offset+It.r2p(bt),nt=ht}else gn.tail=je+bt,nt=ht+bt;gn.text=gn.tail+ht;var yt=z[pt==="x"?"width":"height"];if(wt==="paper"&&(gn.head=O.constrain(gn.head,1,yt-1)),Dt==="pixel"){var zt=-Math.max(gn.tail-3,gn.text),Rt=Math.min(gn.tail+3,gn.text)-yt;zt>0?(gn.tail+=zt,gn.text+=zt):Rt>0&&(gn.tail-=Rt,gn.text-=Rt)}gn.tail+=nn,gn.head+=nn}else nt=ht=Ct*Xe(Ge,_t),gn.text=je+ht;gn.text+=nn,ht+=nn,nt+=nn,T["_"+pt+"padplus"]=Ct/2+nt,T["_"+pt+"padminus"]=Ct/2-nt,T["_"+pt+"size"]=Ct,T["_"+pt+"shift"]=ht}if(tt)he.remove();else{var it=0,at=0;if(T.align!=="left"&&(it=(Le-Oe)*(T.align==="center"?.5:1)),T.valign!=="top"&&(at=(We-ke)*(T.valign==="middle"?.5:1)),Ve)He.select("svg").attr({x:ce+it-1,y:ce+at}).call(a.setClipUrl,ve?W:null,M);else{var Lt=ce+at-$e.top,xt=ce+it-$e.left;Te.call(h.positionText,xt,Lt).call(a.setClipUrl,ve?W:null,M)}ye.select("rect").call(a.setRect,ce,ce,Le,We),de.call(a.setRect,se/2,se/2,Ue-se,Ze-se),he.call(a.setTranslate,Math.round(K.x.text-Ue/2),Math.round(K.y.text-Ze/2)),Y.attr({transform:"rotate("+oe+","+K.x.text+","+K.y.text+")"});var Ht,Xt=function(Yt,Qt){q.selectAll(".annotation-arrow-g").remove();var Pt=K.x.head,tn=K.y.head,Kt=K.x.tail+Yt,fn=K.y.tail+Qt,dn=K.x.text+Yt,vn=K.y.text+Qt,Nn=O.rotationXYMatrix(oe,dn,vn),er=O.apply2DTransform(Nn),En=O.apply2DTransform2(Nn),In=+de.attr("width"),Un=+de.attr("height"),xr=dn-.5*In,Sr=xr+In,ar=vn-.5*Un,Fn=ar+Un,ir=[[xr,ar,xr,Fn],[xr,Fn,Sr,Fn],[Sr,Fn,Sr,ar],[Sr,ar,xr,ar]].map(En);if(!ir.reduce(function(So,go){return So^!!O.segmentsIntersect(Pt,tn,Pt+1e6,tn+1e6,go[0],go[1],go[2],go[3])},!1)){ir.forEach(function(So){var go=O.segmentsIntersect(Kt,fn,Pt,tn,So[0],So[1],So[2],So[3]);go&&(Kt=go.x,fn=go.y)});var Wn=T.arrowwidth,Kn=T.arrowcolor,_r=T.arrowside,Ir=q.append("g").style({opacity:p.opacity(Kn)}).classed("annotation-arrow-g",!0),zr=Ir.append("path").attr("d","M"+Kt+","+fn+"L"+Pt+","+tn).style("stroke-width",Wn+"px").call(p.stroke,p.rgb(Kn));if(S(zr,_r,T),Q.annotationPosition&&zr.node().parentNode&&!C){var Fr=Pt,Rr=tn;if(T.standoff){var $r=Math.sqrt(Math.pow(Pt-Kt,2)+Math.pow(tn-fn,2));Fr+=T.standoff*(Kt-Pt)/$r,Rr+=T.standoff*(fn-tn)/$r}var Kr,Co,so=Ir.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Kt-Fr)+","+(fn-Rr),transform:w(Fr,Rr)}).style("stroke-width",Wn+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");v.init({element:so.node(),gd:M,prepFn:function(){var So=a.getTranslate(he);Kr=So.x,Co=So.y,L&&L.autorange&&U(L._name+".autorange",!0),D&&D.autorange&&U(D._name+".autorange",!0)},moveFn:function(So,go){var li=er(Kr,Co),Pn=li[0]+So,Yn=li[1]+go;he.call(a.setTranslate,Pn,Yn),X("x",x(L,So,"x",$,T)),X("y",x(D,go,"y",$,T)),T.axref===T.xref&&X("ax",x(L,So,"ax",$,T)),T.ayref===T.yref&&X("ay",x(D,go,"ay",$,T)),Ir.attr("transform",w(So,go)),Y.attr({transform:"rotate("+oe+","+Pn+","+Yn+")"})},doneFn:function(){b.call("_guiRelayout",M,te());var So=document.querySelector(".js-notes-box-panel");So&&So.redraw(So.selectedObj)}})}}};T.showarrow&&Xt(0,0),ee&&v.init({element:he.node(),gd:M,prepFn:function(){Ht=Y.attr("transform")},moveFn:function(Yt,Qt){var Pt="pointer";if(T.showarrow)T.axref===T.xref?X("ax",x(L,Yt,"ax",$,T)):X("ax",T.ax+Yt),T.ayref===T.yref?X("ay",x(D,Qt,"ay",$.w,T)):X("ay",T.ay+Qt),Xt(Yt,Qt);else{if(C)return;var tn,Kt;if(L)tn=x(L,Yt,"x",$,T);else{var fn=T._xsize/$.w,dn=T.x+(T._xshift-T.xshift)/$.w-fn/2;tn=v.align(dn+Yt/$.w,fn,0,1,T.xanchor)}if(D)Kt=x(D,Qt,"y",$,T);else{var vn=T._ysize/$.h,Nn=T.y-(T._yshift+T.yshift)/$.h-vn/2;Kt=v.align(Nn-Qt/$.h,vn,0,1,T.yanchor)}X("x",tn),X("y",Kt),L&&D||(Pt=v.getCursor(L?.5:tn,D?.5:Kt,T.xanchor,T.yanchor))}Y.attr({transform:w(Yt,Qt)+Ht}),m(he,Pt)},clickFn:function(Yt,Qt){T.captureevents&&M.emit("plotly_clickannotation",Pe(Qt))},doneFn:function(){m(he),b.call("_guiRelayout",M,te());var Yt=document.querySelector(".js-notes-box-panel");Yt&&Yt.redraw(Yt.selectedObj)}})}}}d.exports={draw:function(M){var T=M._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var E=0;E=0,C=u.indexOf("end")>=0,L=x.backoff*M+h.standoff,D=R.backoff*T+h.startstandoff;if(A.nodeName==="line"){m={x:+a.attr("x1"),y:+a.attr("y1")},v={x:+a.attr("x2"),y:+a.attr("y2")};var k=m.x-v.x,I=m.y-v.y;if(S=(_=Math.atan2(I,k))+Math.PI,L&&D&&L+D>Math.sqrt(k*k+I*I))return void q();if(L){if(L*L>k*k+I*I)return void q();var z=L*Math.cos(_),$=L*Math.sin(_);v.x+=z,v.y+=$,a.attr({x2:v.x,y2:v.y})}if(D){if(D*D>k*k+I*I)return void q();var Q=D*Math.cos(_),j=D*Math.sin(_);m.x-=Q,m.y-=j,a.attr({x1:m.x,y1:m.y})}}else if(A.nodeName==="path"){var U=A.getTotalLength(),X="";if(U1){h=!0;break}}h?O.fullLayout._infolayer.select(".annotation-"+O.id+'[data-index="'+a+'"]').remove():(u._pdata=b(O.glplot.cameraParams,[w.xaxis.r2l(u.x)*y[0],w.yaxis.r2l(u.y)*y[1],w.zaxis.r2l(u.z)*y[2]]),c(O.graphDiv,u,a,O.id,u._xa,u._ya))}}},56864:function(d,l,n){var c=n(24040),b=n(3400);d.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(45899)}}},layoutAttributes:n(45899),handleDefaults:n(52808),includeBasePlot:function(i,O){var w=c.subplotsRegistry.gl3d;if(w)for(var y=w.attrRegex,p=Object.keys(i),a=0;a=0)))return u;if(S===3)v[S]>1&&(v[S]=1);else if(v[S]>=1)return u}var A=Math.round(255*v[0])+", "+Math.round(255*v[1])+", "+Math.round(255*v[2]);return _?"rgba("+A+", "+v[3]+")":"rgb("+A+")"}O.tinyRGB=function(u){var h=u.toRgb();return"rgb("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+")"},O.rgb=function(u){return O.tinyRGB(c(u))},O.opacity=function(u){return u?c(u).getAlpha():0},O.addOpacity=function(u,h){var m=c(u).toRgb();return"rgba("+Math.round(m.r)+", "+Math.round(m.g)+", "+Math.round(m.b)+", "+h+")"},O.combine=function(u,h){var m=c(u).toRgb();if(m.a===1)return c(u).toRgbString();var v=c(h||p).toRgb(),_=v.a===1?v:{r:255*(1-v.a)+v.r*v.a,g:255*(1-v.a)+v.g*v.a,b:255*(1-v.a)+v.b*v.a},S={r:_.r*(1-m.a)+m.r*m.a,g:_.g*(1-m.a)+m.g*m.a,b:_.b*(1-m.a)+m.b*m.a};return c(S).toRgbString()},O.contrast=function(u,h,m){var v=c(u);return v.getAlpha()!==1&&(v=c(O.combine(u,p))),(v.isDark()?h?v.lighten(h):p:m?v.darken(m):y).toString()},O.stroke=function(u,h){var m=c(h);u.style({stroke:O.tinyRGB(m),"stroke-opacity":m.getAlpha()})},O.fill=function(u,h){var m=c(h);u.style({fill:O.tinyRGB(m),"fill-opacity":m.getAlpha()})},O.clean=function(u){if(u&&typeof u=="object"){var h,m,v,_,S=Object.keys(u);for(h=0;h0?Rt>=Ht:Rt<=Ht));it++)Rt>Yt&&Rt0?Rt>=Ht:Rt<=Ht));it++)Rt>zt[0]&&Rt1){var Gt=Math.pow(10,Math.floor(Math.log(en)/Math.LN10));It*=Gt*p.roundUp(en/Gt,[2,5,10]),(Math.abs(Oe.start)/Oe.size+1e-6)%1<2e-6&&(wt.tick0=0)}wt.dtick=It}wt.domain=te?[ht+ce/Te.h,ht+tt-ce/Te.h]:[ht+ae/Te.w,ht+tt-ae/Te.w],wt.setScale(),j.attr("transform",a(Math.round(Te.l),Math.round(Te.t)));var Ct,_t=j.select("."+D.cbtitleunshift).attr("transform",a(-Math.round(Te.l),-Math.round(Te.t))),nn=wt.ticklabelposition,gn=wt.title.font.size,bn=j.select("."+D.cbaxis),mn=0,vt=0;function bt(lt,yt){var zt={propContainer:wt,propName:U._propPrefix+"title",traceIndex:U._traceIndex,_meta:U._meta,placeholder:Se._dfltTitle.colorbar,containerGroup:j.select("."+D.cbtitle)},Rt=lt.charAt(0)==="h"?lt.substr(1):"h"+lt;j.selectAll("."+Rt+",."+Rt+"-math-group").remove(),_.draw(X,lt,u(zt,yt||{}))}return p.syncOrAsync([i.previousPromises,function(){var lt,yt;(te&&Dt||!te&&!Dt)&&(De==="top"&&(lt=ae+Te.l+Ee*de,yt=ce+Te.t+Ne*(1-ht-tt)+3+.75*gn),De==="bottom"&&(lt=ae+Te.l+Ee*de,yt=ce+Te.t+Ne*(1-ht)-3-.25*gn),De==="right"&&(yt=ce+Te.t+Ne*ve+3+.75*gn,lt=ae+Te.l+Ee*ht),bt(wt._id+"title",{attributes:{x:lt,y:yt,"text-anchor":te?"start":"middle"}}))},function(){if(!te&&!Dt||te&&Dt){var lt,yt=j.select("."+D.cbtitle),zt=yt.select("text"),Rt=[-Y/2,Y/2],it=yt.select(".h"+wt._id+"title-math-group").node(),at=15.6;if(zt.node()&&(at=parseInt(zt.node().style.fontSize,10)*E),it?(lt=m.bBox(it),vt=lt.width,(mn=lt.height)>at&&(Rt[1]-=(mn-at)/2)):zt.node()&&!zt.classed(D.jsPlaceholder)&&(lt=m.bBox(zt.node()),vt=lt.width,mn=lt.height),te){if(mn){if(mn+=5,De==="top")wt.domain[1]-=mn/Te.h,Rt[1]*=-1;else{wt.domain[0]+=mn/Te.h;var Lt=S.lineCount(zt);Rt[1]+=(1-Lt)*at}yt.attr("transform",a(Rt[0],Rt[1])),wt.setScale()}}else vt&&(De==="right"&&(wt.domain[0]+=(vt+gn/2)/Te.w),yt.attr("transform",a(Rt[0],Rt[1])),wt.setScale())}j.selectAll("."+D.cbfills+",."+D.cblines).attr("transform",te?a(0,Math.round(Te.h*(1-wt.domain[1]))):a(Math.round(Te.w*wt.domain[0]),0)),bn.attr("transform",te?a(0,Math.round(-Te.t)):a(Math.round(-Te.l),0));var xt=j.select("."+D.cbfills).selectAll("rect."+D.cbfill).attr("style","").data(Le);xt.enter().append("rect").classed(D.cbfill,!0).attr("style",""),xt.exit().remove();var Ht=He.map(wt.c2p).map(Math.round).sort(function(tn,Kt){return tn-Kt});xt.each(function(tn,Kt){var fn=[Kt===0?He[0]:(Le[Kt]+Le[Kt-1])/2,Kt===Le.length-1?He[1]:(Le[Kt]+Le[Kt+1])/2].map(wt.c2p).map(Math.round);te&&(fn[1]=p.constrain(fn[1]+(fn[1]>fn[0])?1:-1,Ht[0],Ht[1]));var dn=c.select(this).attr(te?"x":"y",je).attr(te?"y":"x",c.min(fn)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(c.max(fn)-c.min(fn),2));if(U._fillgradient)m.gradient(dn,X,U._id,te?"vertical":"horizontalreversed",U._fillgradient,"fill");else{var vn=$e(tn).replace("e-","");dn.attr("fill",b(vn).toHexString())}});var Xt=j.select("."+D.cblines).selectAll("path."+D.cbline).data(Ie.color&&Ie.width?We:[]);Xt.enter().append("path").classed(D.cbline,!0),Xt.exit().remove(),Xt.each(function(tn){var Kt=je,fn=Math.round(wt.c2p(tn))+Ie.width/2%1;c.select(this).attr("d","M"+(te?Kt+","+fn:fn+","+Kt)+(te?"h":"v")+Ue).call(m.lineGroupStyle,Ie.width,Ve(tn),Ie.dash)}),bn.selectAll("g."+wt._id+"tick,path").remove();var Yt=je+Ue+(Y||0)/2-(U.ticks==="outside"?1:0),Qt=w.calcTicks(wt),Pt=w.getTickSigns(wt)[2];return w.drawTicks(X,wt,{vals:wt.ticks==="inside"?w.clipEnds(wt,Qt):Qt,layer:bn,path:w.makeTickPath(wt,Yt,Pt),transFn:w.makeTransTickFn(wt)}),w.drawLabels(X,wt,{vals:Qt,layer:bn,transFn:w.makeTransTickLabelFn(wt),labelFns:w.makeLabelFns(wt,Yt)})},function(){if(te&&!Dt||!te&&Dt){var lt,yt,zt=wt.position||0,Rt=wt._offset+wt._length/2;if(De==="right")yt=Rt,lt=Te.l+Ee*zt+10+gn*(wt.showticklabels?1:.5);else if(lt=Rt,De==="bottom"&&(yt=Te.t+Ne*zt+10+(nn.indexOf("inside")===-1?wt.tickfont.size:0)+(wt.ticks!=="intside"&&U.ticklen||0)),De==="top"){var it=ze.text.split("
").length;yt=Te.t+Ne*zt+10-Ue-E*gn*it}bt((te?"h":"v")+wt._id+"title",{avoid:{selection:c.select(X).selectAll("g."+wt._id+"tick"),side:De,offsetTop:te?0:Te.t,offsetLeft:te?Te.l:0,maxShift:te?Se.width:Se.height},attributes:{x:lt,y:yt,"text-anchor":"middle"},transform:{rotate:te?-90:0,offset:0}})}},i.previousPromises,function(){var lt,yt=Ue+Y/2;nn.indexOf("inside")===-1&&(lt=m.bBox(bn.node()),yt+=te?lt.width:lt.height),Ct=_t.select("text");var zt=0,Rt=te&&De==="top",it=!te&&De==="right",at=0;if(Ct.node()&&!Ct.classed(D.jsPlaceholder)){var Lt,xt=_t.select(".h"+wt._id+"title-math-group").node();xt&&(te&&Dt||!te&&!Dt)?(zt=(lt=m.bBox(xt)).width,Lt=lt.height):(zt=(lt=m.bBox(_t.node())).right-Te.l-(te?je:pt),Lt=lt.bottom-Te.t-(te?pt:je),te||De!=="top"||(yt+=lt.height,at=lt.height)),it&&(Ct.attr("transform",a(zt/2+gn/2,0)),zt*=2),yt=Math.max(yt,te?zt:Lt)}var Ht=2*(te?ae:ce)+yt+ee+Y/2,Xt=0;!te&&ze.text&&se==="bottom"&&ve<=0&&(Ht+=Xt=Ht/2,at+=Xt),Se._hColorbarMoveTitle=Xt,Se._hColorbarMoveCBTitle=at;var Yt=ee+Y,Qt=(te?je:pt)-Yt/2-(te?ae:0),Pt=(te?pt:je)-(te?Xe:ce+at-Xt);j.select("."+D.cbbg).attr("x",Qt).attr("y",Pt).attr(te?"width":"height",Math.max(Ht-Xt,2)).attr(te?"height":"width",Math.max(Xe+Yt,2)).call(v.fill,me).call(v.stroke,U.bordercolor).style("stroke-width",ee);var tn=it?Math.max(zt-10,0):0;j.selectAll("."+D.cboutline).attr("x",(te?je:pt+ae)+tn).attr("y",(te?pt+ce-Xe:je)+(Rt?mn:0)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(Xe-(te?2*ce+mn:2*ae+tn),2)).call(v.stroke,U.outlinecolor).style({fill:"none","stroke-width":Y});var Kt=te?nt*Ht:0,fn=te?0:(1-ot)*Ht-at;if(Kt=_e?Te.l-Kt:-Kt,fn=ye?Te.t-fn:-fn,j.attr("transform",a(Kt,fn)),!te&&(ee||b(me).getAlpha()&&!b.equals(Se.paper_bgcolor,me))){var dn=bn.selectAll("text"),vn=dn[0].length,Nn=j.select("."+D.cbbg).node(),er=m.bBox(Nn),En=m.getTranslate(j);dn.each(function(_r,Ir){var zr=vn-1;if(Ir===0||Ir===zr){var Fr,Rr=m.bBox(this),$r=m.getTranslate(this);if(Ir===zr){var Kr=Rr.right+$r.x;(Fr=er.right+En.x+pt-ee-2+de-Kr)>0&&(Fr=0)}else if(Ir===0){var Co=Rr.left+$r.x;(Fr=er.left+En.x+pt+ee+2-Co)<0&&(Fr=0)}Fr&&(vn<3?this.setAttribute("transform","translate("+Fr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var In={},Un=C[he],xr=L[he],Sr=C[se],ar=L[se],Fn=Ht-Ue;te?(K==="pixels"?(In.y=ve,In.t=Xe*Sr,In.b=Xe*ar):(In.t=In.b=0,In.yt=ve+W*Sr,In.yb=ve-W*ar),q==="pixels"?(In.x=de,In.l=Ht*Un,In.r=Ht*xr):(In.l=Fn*Un,In.r=Fn*xr,In.xl=de-oe*Un,In.xr=de+oe*xr)):(K==="pixels"?(In.x=de,In.l=Xe*Un,In.r=Xe*xr):(In.l=In.r=0,In.xl=de+W*Un,In.xr=de-W*xr),q==="pixels"?(In.y=1-ve,In.t=Ht*Sr,In.b=Ht*ar):(In.t=Fn*Sr,In.b=Fn*ar,In.yt=ve-oe*Sr,In.yb=ve+oe*ar));var ir=U.y<.5?"b":"t",Wn=U.x<.5?"l":"r";X._fullLayout._reservedMargin[U._id]={};var Kn={r:Se.width-Qt-Kt,l:Qt+In.r,b:Se.height-Pt-fn,t:Pt+In.b};_e&&ye?i.autoMargin(X,U._id,In):_e?X._fullLayout._reservedMargin[U._id][ir]=Kn[ir]:ye||te?X._fullLayout._reservedMargin[U._id][Wn]=Kn[Wn]:X._fullLayout._reservedMargin[U._id][ir]=Kn[ir]}],X)}($,z,k);Q&&Q.then&&(k._promises||[]).push(Q),k._context.edits.colorbarPosition&&function(j,U,X){var te,W,K,oe=U.orientation==="v",q=X._fullLayout._size;y.init({element:j.node(),gd:X,prepFn:function(){te=j.attr("transform"),h(j)},moveFn:function(Y,ee){j.attr("transform",te+a(Y,ee)),W=y.align((oe?U._uFrac:U._vFrac)+Y/q.w,oe?U._thickFrac:U._lenFrac,0,1,U.xanchor),K=y.align((oe?U._vFrac:1-U._uFrac)-ee/q.h,oe?U._lenFrac:U._thickFrac,0,1,U.yanchor);var me=y.getCursor(W,K,U.xanchor,U.yanchor);h(j,me)},doneFn:function(){if(h(j),W!==void 0&&K!==void 0){var Y={};Y[U._propPrefix+"x"]=W,Y[U._propPrefix+"y"]=K,U._traceIndex!==void 0?O.call("_guiRestyle",X,Y,U._traceIndex):O.call("_guiRelayout",X,Y)}}})}($,z,k)}),I.exit().each(function(z){i.autoMargin(k,z._id)}).remove(),I.order()}}},90553:function(d,l,n){var c=n(3400);d.exports=function(b){return c.isPlainObject(b.colorbar)}},55080:function(d,l,n){d.exports={moduleType:"component",name:"colorbar",attributes:n(42996),supplyDefaults:n(64013),draw:n(37848).draw,hasColorbar:n(90553)}},49084:function(d,l,n){var c=n(42996),b=n(53756).counter,i=n(95376),O=n(88304).scales;function w(y){return"`"+y+"`"}i(O),d.exports=function(y,p){y=y||"";var a,u=(p=p||{}).cLetter||"c",h=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:y==="marker.line"),m="showScaleDflt"in p?p.showScaleDflt:u==="z",v=typeof p.colorscaleDflt=="string"?O[p.colorscaleDflt]:null,_=p.editTypeOverride||"",S=y?y+".":"";"colorAttr"in p?(a=p.colorAttr,p.colorAttr):w(S+(a={z:"z",c:"color"}[u]));var A=u+"auto",x=u+"min",R=u+"max",M=u+"mid",T={};T[x]=T[R]=void 0;var E={};E[A]=!1;var C={};return a==="color"&&(C.color={valType:"color",arrayOk:!0,editType:_||"style"},p.anim&&(C.color.anim=!0)),C[A]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},C[x]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:E},C[R]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:E},C[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},C.colorscale={valType:"colorscale",editType:"calc",dflt:v,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},h||(C.showscale={valType:"boolean",dflt:m,editType:"calc"},C.colorbar=c),p.noColorAxis||(C.coloraxis={valType:"subplotid",regex:b("coloraxis"),dflt:null,editType:"calc"}),C}},47128:function(d,l,n){var c=n(38248),b=n(3400),i=n(94288).extractOpts;d.exports=function(O,w,y){var p,a=O._fullLayout,u=y.vals,h=y.containerStr,m=h?b.nestedProperty(w,h).get():w,v=i(m),_=v.auto!==!1,S=v.min,A=v.max,x=v.mid,R=function(){return b.aggNums(Math.min,null,u)},M=function(){return b.aggNums(Math.max,null,u)};S===void 0?S=R():_&&(S=m._colorAx&&c(S)?Math.min(S,R()):R()),A===void 0?A=M():_&&(A=m._colorAx&&c(A)?Math.max(A,M()):M()),_&&x!==void 0&&(A-x>x-S?S=x-(A-x):A-x=0?a.colorscale.sequential:a.colorscale.sequentialminus,v._sync("colorscale",p))}},95504:function(d,l,n){var c=n(3400),b=n(94288).hasColorscale,i=n(94288).extractOpts;d.exports=function(O,w){function y(_,S){var A=_["_"+S];A!==void 0&&(_[S]=A)}function p(_,S){var A=S.container?c.nestedProperty(_,S.container).get():_;if(A)if(A.coloraxis)A._colorAx=w[A.coloraxis];else{var x=i(A),R=x.auto;(R||x.min===void 0)&&y(A,S.min),(R||x.max===void 0)&&y(A,S.max),x.autocolorscale&&y(A,"colorscale")}}for(var a=0;a=0;R--,M++){var T=S[R];x[M]=[1-T[0],T[1]]}return x}function v(S,A){A=A||{};for(var x=S.domain,R=S.range,M=R.length,T=new Array(M),E=0;E1.3333333333333333-y?w:y}},67416:function(d,l,n){var c=n(3400),b=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];d.exports=function(i,O,w,y){return i=w==="left"?0:w==="center"?1:w==="right"?2:c.constrain(Math.floor(3*i),0,2),O=y==="bottom"?0:y==="middle"?1:y==="top"?2:c.constrain(Math.floor(3*O),0,2),b[O][i]}},72760:function(d,l){l.selectMode=function(n){return n==="lasso"||n==="select"},l.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},l.openMode=function(n){return n==="drawline"||n==="drawopenpath"},l.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},l.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},l.selectingOrDrawing=function(n){return l.freeMode(n)||l.rectMode(n)}},86476:function(d,l,n){var c=n(29128),b=n(52264),i=n(89184),O=n(3400).removeElement,w=n(33816),y=d.exports={};y.align=n(78316),y.getCursor=n(67416);var p=n(2616);function a(){var h=document.createElement("div");h.className="dragcover";var m=h.style;return m.position="fixed",m.left=0,m.right=0,m.top=0,m.bottom=0,m.zIndex=999999999,m.background="none",document.body.appendChild(h),h}function u(h){return c(h.changedTouches?h.changedTouches[0]:h,document.body)}y.unhover=p.wrapped,y.unhoverRaw=p.raw,y.init=function(h){var m,v,_,S,A,x,R,M,T=h.gd,E=1,C=T._context.doubleClickDelay,L=h.element;T._mouseDownTime||(T._mouseDownTime=0),L.style.pointerEvents="all",L.onmousedown=k,i?(L._ontouchstart&&L.removeEventListener("touchstart",L._ontouchstart),L._ontouchstart=k,L.addEventListener("touchstart",k,{passive:!1})):L.ontouchstart=k;var D=h.clampFn||function($,Q,j){return Math.abs($)C&&(E=Math.max(E-1,1)),T._dragged)h.doneFn&&h.doneFn();else if(h.clickFn&&h.clickFn(E,x),!M){var Q;try{Q=new MouseEvent("click",$)}catch{var j=u($);(Q=document.createEvent("MouseEvents")).initMouseEvent("click",$.bubbles,$.cancelable,$.view,$.detail,$.screenX,$.screenY,j[0],j[1],$.ctrlKey,$.altKey,$.shiftKey,$.metaKey,$.button,$.relatedTarget)}R.dispatchEvent(Q)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},y.coverSlip=a},2616:function(d,l,n){var c=n(95924),b=n(91200),i=n(52200).getGraphDiv,O=n(92456),w=d.exports={};w.wrapped=function(y,p,a){(y=i(y))._fullLayout&&b.clear(y._fullLayout._uid+O.HOVERID),w.raw(y,p,a)},w.raw=function(y,p){var a=y._fullLayout,u=y._hoverdata;p||(p={}),p.target&&!y._dragged&&c.triggerHandler(y,"plotly_beforehover",p)===!1||(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),y._hoverdata=void 0,p.target&&u&&y.emit("plotly_unhover",{event:p,points:u}))}},98192:function(d,l){l.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},l.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(d,l,n){var c=n(33428),b=n(3400),i=b.numberFormat,O=n(38248),w=n(49760),y=n(24040),p=n(76308),a=n(8932),u=b.strTranslate,h=n(72736),m=n(9616),v=n(84284).LINE_SPACING,_=n(13448).DESELECTDIM,S=n(43028),A=n(7152),x=n(10624).appendArrayPointValue,R=d.exports={};function M(Ve,$e,Oe){var ke=$e.fillpattern,Le=ke&&R.getPatternAttr(ke.shape,0,"");if(Le){var We=R.getPatternAttr(ke.bgcolor,0,null),Ue=R.getPatternAttr(ke.fgcolor,0,null),Ze=ke.fgopacity,Xe=R.getPatternAttr(ke.size,0,8),tt=R.getPatternAttr(ke.solidity,0,.3),Ee=$e.uid;R.pattern(Ve,"point",Oe,Ee,Le,Xe,tt,void 0,ke.fillmode,We,Ue,Ze)}else $e.fillcolor&&Ve.call(p.fill,$e.fillcolor)}R.font=function(Ve,$e,Oe,ke){b.isPlainObject($e)&&(ke=$e.color,Oe=$e.size,$e=$e.family),$e&&Ve.style("font-family",$e),Oe+1&&Ve.style("font-size",Oe+"px"),ke&&Ve.call(p.fill,ke)},R.setPosition=function(Ve,$e,Oe){Ve.attr("x",$e).attr("y",Oe)},R.setSize=function(Ve,$e,Oe){Ve.attr("width",$e).attr("height",Oe)},R.setRect=function(Ve,$e,Oe,ke,Le){Ve.call(R.setPosition,$e,Oe).call(R.setSize,ke,Le)},R.translatePoint=function(Ve,$e,Oe,ke){var Le=Oe.c2p(Ve.x),We=ke.c2p(Ve.y);return!!(O(Le)&&O(We)&&$e.node())&&($e.node().nodeName==="text"?$e.attr("x",Le).attr("y",We):$e.attr("transform",u(Le,We)),!0)},R.translatePoints=function(Ve,$e,Oe){Ve.each(function(ke){var Le=c.select(this);R.translatePoint(ke,Le,$e,Oe)})},R.hideOutsideRangePoint=function(Ve,$e,Oe,ke,Le,We){$e.attr("display",Oe.isPtWithinRange(Ve,Le)&&ke.isPtWithinRange(Ve,We)?null:"none")},R.hideOutsideRangePoints=function(Ve,$e){if($e._hasClipOnAxisFalse){var Oe=$e.xaxis,ke=$e.yaxis;Ve.each(function(Le){var We=Le[0].trace,Ue=We.xcalendar,Ze=We.ycalendar,Xe=y.traceIs(We,"bar-like")?".bartext":".point,.textpoint";Ve.selectAll(Xe).each(function(tt){R.hideOutsideRangePoint(tt,c.select(this),Oe,ke,Ue,Ze)})})}},R.crispRound=function(Ve,$e,Oe){return $e&&O($e)?Ve._context.staticPlot?$e:$e<1?1:Math.round($e):Oe||0},R.singleLineStyle=function(Ve,$e,Oe,ke,Le){$e.style("fill","none");var We=(((Ve||[])[0]||{}).trace||{}).line||{},Ue=Oe||We.width||0,Ze=Le||We.dash||"";p.stroke($e,ke||We.color),R.dashLine($e,Ze,Ue)},R.lineGroupStyle=function(Ve,$e,Oe,ke){Ve.style("fill","none").each(function(Le){var We=(((Le||[])[0]||{}).trace||{}).line||{},Ue=$e||We.width||0,Ze=ke||We.dash||"";c.select(this).call(p.stroke,Oe||We.color).call(R.dashLine,Ze,Ue)})},R.dashLine=function(Ve,$e,Oe){Oe=+Oe||0,$e=R.dashStyle($e,Oe),Ve.style({"stroke-dasharray":$e,"stroke-width":Oe+"px"})},R.dashStyle=function(Ve,$e){$e=+$e||1;var Oe=Math.max($e,3);return Ve==="solid"?Ve="":Ve==="dot"?Ve=Oe+"px,"+Oe+"px":Ve==="dash"?Ve=3*Oe+"px,"+3*Oe+"px":Ve==="longdash"?Ve=5*Oe+"px,"+5*Oe+"px":Ve==="dashdot"?Ve=3*Oe+"px,"+Oe+"px,"+Oe+"px,"+Oe+"px":Ve==="longdashdot"&&(Ve=5*Oe+"px,"+2*Oe+"px,"+Oe+"px,"+2*Oe+"px"),Ve},R.singleFillStyle=function(Ve,$e){var Oe=c.select(Ve.node());M(Ve,((Oe.data()[0]||[])[0]||{}).trace||{},$e)},R.fillGroupStyle=function(Ve,$e){Ve.style("stroke-width",0).each(function(Oe){var ke=c.select(this);Oe[0].trace&&M(ke,Oe[0].trace,$e)})};var T=n(71984);R.symbolNames=[],R.symbolFuncs=[],R.symbolBackOffs=[],R.symbolNeedLines={},R.symbolNoDot={},R.symbolNoFill={},R.symbolList=[],Object.keys(T).forEach(function(Ve){var $e=T[Ve],Oe=$e.n;R.symbolList.push(Oe,String(Oe),Ve,Oe+100,String(Oe+100),Ve+"-open"),R.symbolNames[Oe]=Ve,R.symbolFuncs[Oe]=$e.f,R.symbolBackOffs[Oe]=$e.backoff||0,$e.needLine&&(R.symbolNeedLines[Oe]=!0),$e.noDot?R.symbolNoDot[Oe]=!0:R.symbolList.push(Oe+200,String(Oe+200),Ve+"-dot",Oe+300,String(Oe+300),Ve+"-open-dot"),$e.noFill&&(R.symbolNoFill[Oe]=!0)});var E=R.symbolNames.length;function C(Ve,$e,Oe,ke){var Le=Ve%100;return R.symbolFuncs[Le]($e,Oe,ke)+(Ve>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}R.symbolNumber=function(Ve){if(O(Ve))Ve=+Ve;else if(typeof Ve=="string"){var $e=0;Ve.indexOf("-open")>0&&($e=100,Ve=Ve.replace("-open","")),Ve.indexOf("-dot")>0&&($e+=200,Ve=Ve.replace("-dot","")),(Ve=R.symbolNames.indexOf(Ve))>=0&&(Ve+=$e)}return Ve%100>=E||Ve>=400?0:Math.floor(Math.max(Ve,0))};var L={x1:1,x2:0,y1:0,y2:0},D={x1:0,x2:0,y1:1,y2:0},k=i("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:L},horizontalreversed:{node:"linearGradient",attrs:L,reversed:!0},vertical:{node:"linearGradient",attrs:D},verticalreversed:{node:"linearGradient",attrs:D,reversed:!0}};R.gradient=function(Ve,$e,Oe,ke,Le,We){for(var Ue=Le.length,Ze=I[ke],Xe=new Array(Ue),tt=0;tt=0&&Ve.i===void 0&&(Ve.i=We.i),$e.style("opacity",ke.selectedOpacityFn?ke.selectedOpacityFn(Ve):Ve.mo===void 0?Ue.opacity:Ve.mo),ke.ms2mrc){var Xe;Xe=Ve.ms==="various"||Ue.size==="various"?3:ke.ms2mrc(Ve.ms),Ve.mrc=Xe,ke.selectedSizeFn&&(Xe=Ve.mrc=ke.selectedSizeFn(Ve));var tt=R.symbolNumber(Ve.mx||Ue.symbol)||0;Ve.om=tt%200>=100;var Ee=He(Ve,Oe),Ne=ce(Ve,Oe);$e.attr("d",C(tt,Xe,Ee,Ne))}var je,nt,ot,Ge=!1;if(Ve.so)ot=Ze.outlierwidth,nt=Ze.outliercolor,je=Ue.outliercolor;else{var ht=(Ze||{}).width;ot=(Ve.mlw+1||ht+1||(Ve.trace?(Ve.trace.marker.line||{}).width:0)+1)-1||0,nt="mlc"in Ve?Ve.mlcc=ke.lineScale(Ve.mlc):b.isArrayOrTypedArray(Ze.color)?p.defaultLine:Ze.color,b.isArrayOrTypedArray(Ue.color)&&(je=p.defaultLine,Ge=!0),je="mc"in Ve?Ve.mcc=ke.markerScale(Ve.mc):Ue.color||Ue.colors||"rgba(0,0,0,0)",ke.selectedColorFn&&(je=ke.selectedColorFn(Ve))}if(Ve.om)$e.call(p.stroke,je).style({"stroke-width":(ot||1)+"px",fill:"none"});else{$e.style("stroke-width",(Ve.isBlank?0:ot)+"px");var pt=Ue.gradient,wt=Ve.mgt;wt?Ge=!0:wt=pt&&pt.type,b.isArrayOrTypedArray(wt)&&(wt=wt[0],I[wt]||(wt=0));var Dt=Ue.pattern,It=Dt&&R.getPatternAttr(Dt.shape,Ve.i,"");if(wt&&wt!=="none"){var qt=Ve.mgc;qt?Ge=!0:qt=pt.color;var en=Oe.uid;Ge&&(en+="-"+Ve.i),R.gradient($e,Le,en,wt,[[0,qt],[1,je]],"fill")}else if(It){var Gt=!1,Ct=Dt.fgcolor;!Ct&&We&&We.color&&(Ct=We.color,Gt=!0);var _t=R.getPatternAttr(Ct,Ve.i,We&&We.color||null),nn=R.getPatternAttr(Dt.bgcolor,Ve.i,null),gn=Dt.fgopacity,bn=R.getPatternAttr(Dt.size,Ve.i,8),mn=R.getPatternAttr(Dt.solidity,Ve.i,.3);Gt=Gt||Ve.mcc||b.isArrayOrTypedArray(Dt.shape)||b.isArrayOrTypedArray(Dt.bgcolor)||b.isArrayOrTypedArray(Dt.fgcolor)||b.isArrayOrTypedArray(Dt.size)||b.isArrayOrTypedArray(Dt.solidity);var vt=Oe.uid;Gt&&(vt+="-"+Ve.i),R.pattern($e,"point",Le,vt,It,bn,mn,Ve.mcc,Dt.fillmode,nn,_t,gn)}else b.isArrayOrTypedArray(je)?p.fill($e,je[Ve.i]):p.fill($e,je);ot&&p.stroke($e,nt)}},R.makePointStyleFns=function(Ve){var $e={},Oe=Ve.marker;return $e.markerScale=R.tryColorscale(Oe,""),$e.lineScale=R.tryColorscale(Oe,"line"),y.traceIs(Ve,"symbols")&&($e.ms2mrc=S.isBubble(Ve)?A(Ve):function(){return(Oe.size||6)/2}),Ve.selectedpoints&&b.extendFlat($e,R.makeSelectedPointStyleFns(Ve)),$e},R.makeSelectedPointStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Le=Ve.marker||{},We=Oe.marker||{},Ue=ke.marker||{},Ze=Le.opacity,Xe=We.opacity,tt=Ue.opacity,Ee=Xe!==void 0,Ne=tt!==void 0;(b.isArrayOrTypedArray(Ze)||Ee||Ne)&&($e.selectedOpacityFn=function(It){var qt=It.mo===void 0?Le.opacity:It.mo;return It.selected?Ee?Xe:qt:Ne?tt:_*qt});var je=Le.color,nt=We.color,ot=Ue.color;(nt||ot)&&($e.selectedColorFn=function(It){var qt=It.mcc||je;return It.selected?nt||qt:ot||qt});var Ge=Le.size,ht=We.size,pt=Ue.size,wt=ht!==void 0,Dt=pt!==void 0;return y.traceIs(Ve,"symbols")&&(wt||Dt)&&($e.selectedSizeFn=function(It){var qt=It.mrc||Ge/2;return It.selected?wt?ht/2:qt:Dt?pt/2:qt}),$e},R.makeSelectedTextStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Le=Ve.textfont||{},We=Oe.textfont||{},Ue=ke.textfont||{},Ze=Le.color,Xe=We.color,tt=Ue.color;return $e.selectedTextColorFn=function(Ee){var Ne=Ee.tc||Ze;return Ee.selected?Xe||Ne:tt||(Xe?Ne:p.addOpacity(Ne,_))},$e},R.selectedPointStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedPointStyleFns($e),ke=$e.marker||{},Le=[];Oe.selectedOpacityFn&&Le.push(function(We,Ue){We.style("opacity",Oe.selectedOpacityFn(Ue))}),Oe.selectedColorFn&&Le.push(function(We,Ue){p.fill(We,Oe.selectedColorFn(Ue))}),Oe.selectedSizeFn&&Le.push(function(We,Ue){var Ze=Ue.mx||ke.symbol||0,Xe=Oe.selectedSizeFn(Ue);We.attr("d",C(R.symbolNumber(Ze),Xe,He(Ue,$e),ce(Ue,$e))),Ue.mrc2=Xe}),Le.length&&Ve.each(function(We){for(var Ue=c.select(this),Ze=0;Ze0?Oe:0}function X(Ve,$e,Oe){return Oe&&(Ve=Y(Ve)),$e?W(Ve[1]):te(Ve[0])}function te(Ve){var $e=c.round(Ve,2);return z=$e,$e}function W(Ve){var $e=c.round(Ve,2);return $=$e,$e}function K(Ve,$e,Oe,ke){var Le=Ve[0]-$e[0],We=Ve[1]-$e[1],Ue=Oe[0]-$e[0],Ze=Oe[1]-$e[1],Xe=Math.pow(Le*Le+We*We,.25),tt=Math.pow(Ue*Ue+Ze*Ze,.25),Ee=(tt*tt*Le-Xe*Xe*Ue)*ke,Ne=(tt*tt*We-Xe*Xe*Ze)*ke,je=3*tt*(Xe+tt),nt=3*Xe*(Xe+tt);return[[te($e[0]+(je&&Ee/je)),W($e[1]+(je&&Ne/je))],[te($e[0]-(nt&&Ee/nt)),W($e[1]-(nt&&Ne/nt))]]}R.textPointStyle=function(Ve,$e,Oe){if(Ve.size()){var ke;if($e.selectedpoints){var Le=R.makeSelectedTextStyleFns($e);ke=Le.selectedTextColorFn}var We=$e.texttemplate,Ue=Oe._fullLayout;Ve.each(function(Ze){var Xe=c.select(this),tt=We?b.extractOption(Ze,$e,"txt","texttemplate"):b.extractOption(Ze,$e,"tx","text");if(tt||tt===0){if(We){var Ee=$e._module.formatLabels,Ne=Ee?Ee(Ze,$e,Ue):{},je={};x(je,$e,Ze.i);var nt=$e._meta||{};tt=b.texttemplateString(tt,Ne,Ue._d3locale,je,Ze,nt)}var ot=Ze.tp||$e.textposition,Ge=U(Ze,$e),ht=ke?ke(Ze):Ze.tc||$e.textfont.color;Xe.call(R.font,Ze.tf||$e.textfont.family,Ge,ht).text(tt).call(h.convertToTspans,Oe).call(j,ot,Ge,Ze.mrc)}else Xe.remove()})}},R.selectedTextStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedTextStyleFns($e);Ve.each(function(ke){var Le=c.select(this),We=Oe.selectedTextColorFn(ke),Ue=ke.tp||$e.textposition,Ze=U(ke,$e);p.fill(Le,We);var Xe=y.traceIs($e,"bar-like");j(Le,Ue,Ze,ke.mrc2||ke.mrc,Xe)})}},R.smoothopen=function(Ve,$e){if(Ve.length<3)return"M"+Ve.join("L");var Oe,ke="M"+Ve[0],Le=[];for(Oe=1;Oe=Xe||It>=Ee&&It<=Xe)&&(qt<=Ne&&qt>=tt||qt>=Ne&&qt<=tt)&&(Ve=[It,qt])}return Ve}R.steps=function(Ve){var $e=oe[Ve]||q;return function(Oe){for(var ke="M"+te(Oe[0][0])+","+W(Oe[0][1]),Le=Oe.length,We=1;We=1e4&&(R.savedBBoxes={},ee=0),Oe&&(R.savedBBoxes[Oe]=nt),ee++,b.extendFlat({},nt)},R.setClipUrl=function(Ve,$e,Oe){Ve.attr("clip-path",he($e,Oe))},R.getTranslate=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(Oe,ke,Le){return[ke,Le].join(" ")}).split(" ");return{x:+$e[0]||0,y:+$e[1]||0}},R.setTranslate=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Le=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||0,Oe=Oe||0,We=We.replace(/(\btranslate\(.*?\);?)/,"").trim(),We=(We+=u($e,Oe)).trim(),Ve[Le]("transform",We),We},R.getScale=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(Oe,ke,Le){return[ke,Le].join(" ")}).split(" ");return{x:+$e[0]||1,y:+$e[1]||1}},R.setScale=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Le=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||1,Oe=Oe||1,We=We.replace(/(\bscale\(.*?\);?)/,"").trim(),We=(We+="scale("+$e+","+Oe+")").trim(),Ve[Le]("transform",We),We};var se=/\s*sc.*/;R.setPointGroupScale=function(Ve,$e,Oe){if($e=$e||1,Oe=Oe||1,Ve){var ke=$e===1&&Oe===1?"":"scale("+$e+","+Oe+")";Ve.each(function(){var Le=(this.getAttribute("transform")||"").replace(se,"");Le=(Le+=ke).trim(),this.setAttribute("transform",Le)})}};var ae=/translate\([^)]*\)\s*$/;function ce(Ve,$e){var Oe;return Ve&&(Oe=Ve.mf),Oe===void 0&&(Oe=$e.marker&&$e.marker.standoff||0),$e._geo||$e._xA?Oe:-Oe}R.setTextPointsScale=function(Ve,$e,Oe){Ve&&Ve.each(function(){var ke,Le=c.select(this),We=Le.select("text");if(We.node()){var Ue=parseFloat(We.attr("x")||0),Ze=parseFloat(We.attr("y")||0),Xe=(Le.attr("transform")||"").match(ae);ke=$e===1&&Oe===1?[]:[u(Ue,Ze),"scale("+$e+","+Oe+")",u(-Ue,-Ze)],Xe&&ke.push(Xe),Le.attr("transform",ke.join(""))}})},R.getMarkerStandoff=ce;var de,ve,ye,_e,Se,Te,Pe=Math.atan2,Ie=Math.cos,ze=Math.sin;function De(Ve,$e){var Oe=$e[0],ke=$e[1];return[Oe*Ie(Ve)-ke*ze(Ve),Oe*ze(Ve)+ke*Ie(Ve)]}function He(Ve,$e){var Oe,ke,Le=Ve.ma;Le===void 0&&((Le=$e.marker.angle)&&!b.isArrayOrTypedArray(Le)||(Le=0));var We=$e.marker.angleref;if(We==="previous"||We==="north"){if($e._geo){var Ue=$e._geo.project(Ve.lonlat);Oe=Ue[0],ke=Ue[1]}else{var Ze=$e._xA,Xe=$e._yA;if(!Ze||!Xe)return 90;Oe=Ze.c2p(Ve.x),ke=Xe.c2p(Ve.y)}if($e._geo){var tt,Ee=Ve.lonlat[0],Ne=Ve.lonlat[1],je=$e._geo.project([Ee,Ne+1e-5]),nt=$e._geo.project([Ee+1e-5,Ne]),ot=Pe(nt[1]-ke,nt[0]-Oe),Ge=Pe(je[1]-ke,je[0]-Oe);if(We==="north")tt=Le/180*Math.PI;else if(We==="previous"){var ht=Ee/180*Math.PI,pt=Ne/180*Math.PI,wt=de/180*Math.PI,Dt=ve/180*Math.PI,It=wt-ht,qt=Ie(Dt)*ze(It),en=ze(Dt)*Ie(pt)-Ie(Dt)*ze(pt)*Ie(It);tt=-Pe(qt,en)-Math.PI,de=Ee,ve=Ne}var Gt=De(ot,[Ie(tt),0]),Ct=De(Ge,[ze(tt),0]);Le=Pe(Gt[1]+Ct[1],Gt[0]+Ct[0])/Math.PI*180,We!=="previous"||Te===$e.uid&&Ve.i===Se+1||(Le=null)}if(We==="previous"&&!$e._geo)if(Te===$e.uid&&Ve.i===Se+1&&O(Oe)&&O(ke)){var _t=Oe-ye,nn=ke-_e,gn=$e.line&&$e.line.shape||"",bn=gn.slice(gn.length-1);bn==="h"&&(nn=0),bn==="v"&&(_t=0),Le+=Pe(nn,_t)/Math.PI*180+90}else Le=null}return ye=Oe,_e=ke,Se=Ve.i,Te=$e.uid,Le}R.getMarkerAngle=He},71984:function(d,l,n){var c,b,i,O,w=n(21984),y=n(33428).round,p="M0,0Z",a=Math.sqrt(2),u=Math.sqrt(3),h=Math.PI,m=Math.cos,v=Math.sin;function _(A){return A===null}function S(A,x,R){if(!(A&&A%360!=0||x))return R;if(i===A&&O===x&&c===R)return b;function M(X,te){var W=m(X),K=v(X),oe=te[0],q=te[1]+(x||0);return[oe*W-q*K,oe*K+q*W]}i=A,O=x,c=R;for(var T=A/180*h,E=0,C=0,L=w(R),D="",k=0;k0,v=w._context.staticPlot;y.each(function(_){var S,A=_[0].trace,x=A.error_x||{},R=A.error_y||{};A.ids&&(S=function(C){return C.id});var M=O.hasMarkers(A)&&A.marker.maxdisplayed>0;R.visible||x.visible||(_=[]);var T=c.select(this).selectAll("g.errorbar").data(_,S);if(T.exit().remove(),_.length){x.visible||T.selectAll("path.xerror").remove(),R.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var E=T.enter().append("g").classed("errorbar",!0);m&&E.style("opacity",0).transition().duration(a.duration).style("opacity",1),i.setClipUrl(T,p.layerClipId,w),T.each(function(C){var L=c.select(this),D=function(j,U,X){var te={x:U.c2p(j.x),y:X.c2p(j.y)};return j.yh!==void 0&&(te.yh=X.c2p(j.yh),te.ys=X.c2p(j.ys),b(te.ys)||(te.noYS=!0,te.ys=X.c2p(j.ys,!0))),j.xh!==void 0&&(te.xh=U.c2p(j.xh),te.xs=U.c2p(j.xs),b(te.xs)||(te.noXS=!0,te.xs=U.c2p(j.xs,!0))),te}(C,u,h);if(!M||C.vis){var k,I=L.select("path.yerror");if(R.visible&&b(D.x)&&b(D.yh)&&b(D.ys)){var z=R.width;k="M"+(D.x-z)+","+D.yh+"h"+2*z+"m-"+z+",0V"+D.ys,D.noYS||(k+="m-"+z+",0h"+2*z),I.size()?m&&(I=I.transition().duration(a.duration).ease(a.easing)):I=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",k)}else I.remove();var $=L.select("path.xerror");if(x.visible&&b(D.y)&&b(D.xh)&&b(D.xs)){var Q=(x.copy_ystyle?R:x).width;k="M"+D.xh+","+(D.y-Q)+"v"+2*Q+"m0,-"+Q+"H"+D.xs,D.noXS||(k+="m0,-"+Q+"v"+2*Q),$.size()?m&&($=$.transition().duration(a.duration).ease(a.easing)):$=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0),$.attr("d",k)}else $.remove()}})}})}},92036:function(d,l,n){var c=n(33428),b=n(76308);d.exports=function(i){i.each(function(O){var w=O[0].trace,y=w.error_y||{},p=w.error_x||{},a=c.select(this);a.selectAll("path.yerror").style("stroke-width",y.thickness+"px").call(b.stroke,y.color),p.copy_ystyle&&(p=y),a.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(b.stroke,p.color)})}},55756:function(d,l,n){var c=n(25376),b=n(65460).hoverlabel,i=n(92880).extendFlat;d.exports={hoverlabel:{bgcolor:i({},b.bgcolor,{arrayOk:!0}),bordercolor:i({},b.bordercolor,{arrayOk:!0}),font:c({arrayOk:!0,editType:"none"}),align:i({},b.align,{arrayOk:!0}),namelength:i({},b.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(d,l,n){var c=n(3400),b=n(24040);function i(O,w,y,p){p=p||c.identity,Array.isArray(O)&&(w[0][y]=p(O))}d.exports=function(O){var w=O.calcdata,y=O._fullLayout;function p(v){return function(_){return c.coerceHoverinfo({hoverinfo:_},{_module:v._module},y)}}for(var a=0;a=0&&u.indexLe[0]._length||bt<0||bt>We[0]._length)return v.unhoverRaw(_e,Se)}else vt="xpx"in Se?Se.xpx:Le[0]._length/2,bt="ypx"in Se?Se.ypx:We[0]._length/2;if(Se.pointerX=vt+Le[0]._offset,Se.pointerY=bt+We[0]._offset,nt="xval"in Se?A.flat(ze,Se.xval):A.p2c(Le,vt),ot="yval"in Se?A.flat(ze,Se.yval):A.p2c(We,bt),!b(nt[0])||!b(ot[0]))return O.warn("Fx.hover failed",Se,_e),v.unhoverRaw(_e,Se)}var zt=1/0;function Rt(Pn,Yn){for(ht=0;ht_t&&(nn.splice(0,_t),zt=nn[0].distance),$e&&je!==0&&nn.length===0){Ct.distance=je,Ct.index=!1;var Qr=wt._module.hoverPoints(Ct,en,Gt,"closest",{hoverLayer:De._hoverlayer});if(Qr&&(Qr=Qr.filter(function(zn){return zn.spikeDistance<=je})),Qr&&Qr.length){var Wr,bo=Qr.filter(function(zn){return zn.xa.showspikes&&zn.xa.spikesnap!=="hovered data"});if(bo.length){var Bn=bo[0];b(Bn.x0)&&b(Bn.y0)&&(Wr=at(Bn),(!bn.vLinePoint||bn.vLinePoint.spikeDistance>Wr.spikeDistance)&&(bn.vLinePoint=Wr))}var hr=Qr.filter(function(zn){return zn.ya.showspikes&&zn.ya.spikesnap!=="hovered data"});if(hr.length){var hn=hr[0];b(hn.x0)&&b(hn.y0)&&(Wr=at(hn),(!bn.hLinePoint||bn.hLinePoint.spikeDistance>Wr.spikeDistance)&&(bn.hLinePoint=Wr))}}}}}function it(Pn,Yn,br){for(var dr,Cr=null,io=1/0,Qr=0;Qr0&&Math.abs(Pn.distance)dn-1;vn--)In(nn[vn]);nn=Nn,Xt()}var Un=_e._hoverdata,xr=[],Sr=me(_e),ar=he(_e);for(Ge=0;Ge1||nn.length>1)||Ee==="closest"&&mn&&nn.length>1,so=m.combine(De.plot_bgcolor||m.background,De.paper_bgcolor),So=U(nn,{gd:_e,hovermode:Ee,rotateLabels:Co,bgColor:so,container:De._hoverlayer,outerContainer:De._paper.node(),commonLabelOpts:De.hoverlabel,hoverdistance:De.hoverdistance}),go=So.hoverLabels;if(A.isUnifiedHover(Ee)||(function(Pn,Yn,br,dr){var Cr,io,Qr,Wr,bo,Bn,hr,hn=Yn?"xa":"ya",zn=Yn?"ya":"xa",Zn=0,yr=1,gr=Pn.size(),vr=new Array(gr),nr=0,Qn=dr.minX,Hn=dr.maxX,tr=dr.minY,cr=dr.maxY,Lr=function(po){return po*br._invScaleX},Er=function(po){return po*br._invScaleY};function Vr(po){var qo=po[0],Ao=po[po.length-1];if(io=qo.pmin-qo.pos-qo.dp+qo.size,Qr=Ao.pos+Ao.dp+Ao.size-qo.pmax,io>.01){for(bo=po.length-1;bo>=0;bo--)po[bo].dp+=io;Cr=!1}if(!(Qr<.01)){if(io<-.01){for(bo=po.length-1;bo>=0;bo--)po[bo].dp-=Qr;Cr=!1}if(Cr){var oi=0;for(Wr=0;Wrqo.pmax&&oi++;for(Wr=po.length-1;Wr>=0&&!(oi<=0);Wr--)(Bn=po[Wr]).pos>qo.pmax-1&&(Bn.del=!0,oi--);for(Wr=0;Wr=0;bo--)po[bo].dp-=Qr;for(Wr=po.length-1;Wr>=0&&!(oi<=0);Wr--)(Bn=po[Wr]).pos+Bn.dp+Bn.size>qo.pmax&&(Bn.del=!0,oi--)}}}for(Pn.each(function(po){var qo=po[hn],Ao=po[zn],oi=qo._id.charAt(0)==="x",ko=qo.range;nr===0&&ko&&ko[0]>ko[1]!==oi&&(yr=-1);var ra=0,mo=oi?br.width:br.height;if(br.hovermode==="x"||br.hovermode==="y"){var Aa,Xl,Na=te(po,Yn),cs=po.anchor,wc=cs==="end"?-1:1;if(cs==="middle")Xl=(Aa=po.crossPos+(oi?Er(Na.y-po.by/2):Lr(po.bx/2+po.tx2width/2)))+(oi?Er(po.by):Lr(po.bx));else if(oi)Xl=(Aa=po.crossPos+Er(k+Na.y)-Er(po.by/2-k))+Er(po.by);else{var ma=Lr(wc*k+Na.x),Ku=ma+Lr(wc*po.bx);Aa=po.crossPos+Math.min(ma,Ku),Xl=po.crossPos+Math.max(ma,Ku)}oi?tr!==void 0&&cr!==void 0&&Math.min(Xl,cr)-Math.max(Aa,tr)>1&&(Ao.side==="left"?(ra=Ao._mainLinePosition,mo=br.width):mo=Ao._mainLinePosition):Qn!==void 0&&Hn!==void 0&&Math.min(Xl,Hn)-Math.max(Aa,Qn)>1&&(Ao.side==="top"?(ra=Ao._mainLinePosition,mo=br.height):mo=Ao._mainLinePosition)}vr[nr++]=[{datum:po,traceIndex:po.trace.index,dp:0,pos:po.pos,posref:po.posref,size:po.by*(oi?C:1)/2,pmin:ra,pmax:mo}]}),vr.sort(function(po,qo){return po[0].posref-qo[0].posref||yr*(qo[0].traceIndex-po[0].traceIndex)});!Cr&&Zn<=gr;){for(Zn++,Cr=!0,Wr=0;Wr.01&&fr.pmin===Eo.pmin&&fr.pmax===Eo.pmax){for(bo=_o.length-1;bo>=0;bo--)_o[bo].dp+=io;for(to.push.apply(to,_o),vr.splice(Wr+1,1),hr=0,bo=to.length-1;bo>=0;bo--)hr+=to[bo].dp;for(Qr=hr/to.length,bo=to.length-1;bo>=0;bo--)to[bo].dp-=Qr;Cr=!1}else Wr++}vr.forEach(Vr)}for(Wr=vr.length-1;Wr>=0;Wr--){var ao=vr[Wr];for(bo=ao.length-1;bo>=0;bo--){var co=ao[bo],Go=co.datum;Go.offset=co.dp,Go.del=co.del}}}(go,Co,De,So.commonLabelBoundingBox),W(go,Co,De._invScaleX,De._invScaleY)),Ie&&Ie.tagName){var li=S.getComponentMethod("annotations","hasClickToShow")(_e,xr);u(c.select(Ie),li?"pointer":"")}Ie&&!Pe&&function(Pn,Yn,br){if(!br||br.length!==Pn._hoverdata.length)return!0;for(var dr=br.length-1;dr>=0;dr--){var Cr=br[dr],io=Pn._hoverdata[dr];if(Cr.curveNumber!==io.curveNumber||String(Cr.pointNumber)!==String(io.pointNumber)||String(Cr.pointNumbers)!==String(io.pointNumbers))return!0}return!1}(_e,0,Un)&&(Un&&_e.emit("plotly_unhover",{event:Se,points:Un}),_e.emit("plotly_hover",{event:Se,points:_e._hoverdata,xaxes:Le,yaxes:We,xvals:nt,yvals:ot}))})(ae,ce,de,ve,ye)})},l.loneHover=function(ae,ce){var de=!0;Array.isArray(ae)||(de=!1,ae=[ae]);var ve=ce.gd,ye=me(ve),_e=he(ve),Se=U(ae.map(function(Ie){var ze=Ie._x0||Ie.x0||Ie.x||0,De=Ie._x1||Ie.x1||Ie.x||0,He=Ie._y0||Ie.y0||Ie.y||0,Ve=Ie._y1||Ie.y1||Ie.y||0,$e=Ie.eventData;if($e){var Oe=Math.min(ze,De),ke=Math.max(ze,De),Le=Math.min(He,Ve),We=Math.max(He,Ve),Ue=Ie.trace;if(S.traceIs(Ue,"gl3d")){var Ze=ve._fullLayout[Ue.scene]._scene.container,Xe=Ze.offsetLeft,tt=Ze.offsetTop;Oe+=Xe,ke+=Xe,Le+=tt,We+=tt}$e.bbox={x0:Oe+_e,x1:ke+_e,y0:Le+ye,y1:We+ye},ce.inOut_bbox&&ce.inOut_bbox.push($e.bbox)}else $e=!1;return{color:Ie.color||m.defaultLine,x0:Ie.x0||Ie.x||0,x1:Ie.x1||Ie.x||0,y0:Ie.y0||Ie.y||0,y1:Ie.y1||Ie.y||0,xLabel:Ie.xLabel,yLabel:Ie.yLabel,zLabel:Ie.zLabel,text:Ie.text,name:Ie.name,idealAlign:Ie.idealAlign,borderColor:Ie.borderColor,fontFamily:Ie.fontFamily,fontSize:Ie.fontSize,fontColor:Ie.fontColor,nameLength:Ie.nameLength,textAlign:Ie.textAlign,trace:Ie.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Ie.hovertemplate||!1,hovertemplateLabels:Ie.hovertemplateLabels||!1,eventData:$e}}),{gd:ve,hovermode:"closest",rotateLabels:!1,bgColor:ce.bgColor||m.background,container:c.select(ce.container),outerContainer:ce.outerContainer||ce.container}).hoverLabels,Te=0,Pe=0;return Se.sort(function(Ie,ze){return Ie.y0-ze.y0}).each(function(Ie,ze){var De=Ie.y0-Ie.by/2;Ie.offset=De-5([\s\S]*)<\/extra>/;function U(ae,ce){var de=ce.gd,ve=de._fullLayout,ye=ce.hovermode,_e=ce.rotateLabels,Se=ce.bgColor,Te=ce.container,Pe=ce.outerContainer,Ie=ce.commonLabelOpts||{};if(ae.length===0)return[[]];var ze=ce.fontFamily||x.HOVERFONT,De=ce.fontSize||x.HOVERFONTSIZE,He=ae[0],Ve=He.xa,$e=He.ya,Oe=ye.charAt(0),ke=Oe+"Label",Le=He[ke];if(Le===void 0&&Ve.type==="multicategory")for(var We=0;Weve.width-ar?(In=ve.width-ar,fn.attr("d","M"+(ar-k)+",0L"+ar+","+Sr+k+"v"+Sr+(2*I+xr.height)+"H-"+ar+"V"+Sr+k+"H"+(ar-2*k)+"Z")):fn.attr("d","M0,0L"+k+","+Sr+k+"H"+ar+"v"+Sr+(2*I+xr.height)+"H-"+ar+"V"+Sr+k+"H-"+k+"Z"),ht.minX=In-ar,ht.maxX=In+ar,Ve.side==="top"?(ht.minY=Un-(2*I+xr.height),ht.maxY=Un-I):(ht.minY=Un+I,ht.maxY=Un+(2*I+xr.height))}else{var Fn,ir,Wn;$e.side==="right"?(Fn="start",ir=1,Wn="",In=Ve._offset+Ve._length):(Fn="end",ir=-1,Wn="-",In=Ve._offset),Un=$e._offset+(He.y0+He.y1)/2,dn.attr("text-anchor",Fn),fn.attr("d","M0,0L"+Wn+k+","+k+"V"+(I+xr.height/2)+"h"+Wn+(2*I+xr.width)+"V-"+(I+xr.height/2)+"H"+Wn+k+"V-"+k+"Z"),ht.minY=Un-(I+xr.height/2),ht.maxY=Un+(I+xr.height/2),$e.side==="right"?(ht.minX=In+k,ht.maxX=In+k+(2*I+xr.width)):(ht.minX=In-k-(2*I+xr.width),ht.maxX=In-k);var Kn,_r=xr.height/2,Ir=Ze-xr.top-_r,zr="clip"+ve._uid+"commonlabel"+$e._id;if(In=0?bt:lt+Rt=0?lt:Qt+Rt=0?mn:vt+it=0?vt:Pt+it=0,Kt.idealAlign!=="top"&&Kr||!Co?Kr?(_r+=zr/2,Kt.anchor="start"):Kt.anchor="middle":(_r-=zr/2,Kt.anchor="end"),Kt.crossPos=_r;else{if(Kt.pos=_r,Kr=Kn+Ir/2+so<=Xe,Co=Kn-Ir/2-so>=0,Kt.idealAlign!=="left"&&Kr||!Co)if(Kr)Kn+=Ir/2,Kt.anchor="start";else{Kt.anchor="middle";var So=so/2,go=Kn+So-Xe,li=Kn-So;go>0&&(Kn-=go),li<0&&(Kn+=-li)}else Kn-=Ir/2,Kt.anchor="end";Kt.crossPos=Kn}Sr.attr("text-anchor",Kt.anchor),Fn&&ar.attr("text-anchor",Kt.anchor),fn.attr("transform",w(Kn,_r)+(_e?y(T):""))}),{hoverLabels:tn,commonLabelBoundingBox:ht}}function X(ae,ce,de,ve,ye,_e){var Se="",Te="";ae.nameOverride!==void 0&&(ae.name=ae.nameOverride),ae.name&&(ae.trace._meta&&(ae.name=O.templateString(ae.name,ae.trace._meta)),Se=Y(ae.name,ae.nameLength));var Pe=de.charAt(0),Ie=Pe==="x"?"y":"x";ae.zLabel!==void 0?(ae.xLabel!==void 0&&(Te+="x: "+ae.xLabel+"
"),ae.yLabel!==void 0&&(Te+="y: "+ae.yLabel+"
"),ae.trace.type!=="choropleth"&&ae.trace.type!=="choroplethmapbox"&&(Te+=(Te?"z: ":"")+ae.zLabel)):ce&&ae[Pe+"Label"]===ye?Te=ae[Ie+"Label"]||"":ae.xLabel===void 0?ae.yLabel!==void 0&&ae.trace.type!=="scattercarpet"&&(Te=ae.yLabel):Te=ae.yLabel===void 0?ae.xLabel:"("+ae.xLabel+", "+ae.yLabel+")",!ae.text&&ae.text!==0||Array.isArray(ae.text)||(Te+=(Te?"
":"")+ae.text),ae.extraText!==void 0&&(Te+=(Te?"
":"")+ae.extraText),_e&&Te===""&&!ae.hovertemplate&&(Se===""&&_e.remove(),Te=Se);var ze=ae.hovertemplate||!1;if(ze){var De=ae.hovertemplateLabels||ae;ae[Pe+"Label"]!==ye&&(De[Pe+"other"]=De[Pe+"Val"],De[Pe+"otherLabel"]=De[Pe+"Label"]),Te=(Te=O.hovertemplateString(ze,De,ve._d3locale,ae.eventData[0]||{},ae.trace._meta)).replace(j,function(He,Ve){return Se=Y(Ve,ae.nameLength),""})}return[Te,Se]}function te(ae,ce){var de=0,ve=ae.offset;return ce&&(ve*=-D,de=ae.offset*L),{x:de,y:ve}}function W(ae,ce,de,ve){var ye=function(Se){return Se*de},_e=function(Se){return Se*ve};ae.each(function(Se){var Te=c.select(this);if(Se.del)return Te.remove();var Pe,Ie,ze,De,He=Te.select("text.nums"),Ve=Se.anchor,$e=Ve==="end"?-1:1,Oe=(De=(ze=(Ie={start:1,end:-1,middle:0}[(Pe=Se).anchor])*(k+I))+Ie*(Pe.txwidth+I),Pe.anchor==="middle"&&(ze-=Pe.tx2width/2,De+=Pe.txwidth/2+I),{alignShift:Ie,textShiftX:ze,text2ShiftX:De}),ke=te(Se,ce),Le=ke.x,We=ke.y,Ue=Ve==="middle";Te.select("path").attr("d",Ue?"M-"+ye(Se.bx/2+Se.tx2width/2)+","+_e(We-Se.by/2)+"h"+ye(Se.bx)+"v"+_e(Se.by)+"h-"+ye(Se.bx)+"Z":"M0,0L"+ye($e*k+Le)+","+_e(k+We)+"v"+_e(Se.by/2-k)+"h"+ye($e*Se.bx)+"v-"+_e(Se.by)+"H"+ye($e*k+Le)+"V"+_e(We-k)+"Z");var Ze=Le+Oe.textShiftX,Xe=We+Se.ty0-Se.by/2+I,tt=Se.textAlign||"auto";tt!=="auto"&&(tt==="left"&&Ve!=="start"?(He.attr("text-anchor","start"),Ze=Ue?-Se.bx/2-Se.tx2width/2+I:-Se.bx-I):tt==="right"&&Ve!=="end"&&(He.attr("text-anchor","end"),Ze=Ue?Se.bx/2-Se.tx2width/2-I:Se.bx+I)),He.call(a.positionText,ye(Ze),_e(Xe)),Se.tx2width&&(Te.select("text.name").call(a.positionText,ye(Oe.text2ShiftX+Oe.alignShift*I+Le),_e(We+Se.ty0-Se.by/2+I)),Te.select("rect").call(h.setRect,ye(Oe.text2ShiftX+(Oe.alignShift-1)*Se.tx2width/2+Le),_e(We-Se.by/2-1),ye(Se.tx2width),_e(Se.by+2)))})}function K(ae,ce){var de=ae.index,ve=ae.trace||{},ye=ae.cd[0],_e=ae.cd[de]||{};function Se(He){return He||b(He)&&He===0}var Te=Array.isArray(de)?function(He,Ve){var $e=O.castOption(ye,de,He);return Se($e)?$e:O.extractOption({},ve,"",Ve)}:function(He,Ve){return O.extractOption(_e,ve,He,Ve)};function Pe(He,Ve,$e){var Oe=Te(Ve,$e);Se(Oe)&&(ae[He]=Oe)}if(Pe("hoverinfo","hi","hoverinfo"),Pe("bgcolor","hbg","hoverlabel.bgcolor"),Pe("borderColor","hbc","hoverlabel.bordercolor"),Pe("fontFamily","htf","hoverlabel.font.family"),Pe("fontSize","hts","hoverlabel.font.size"),Pe("fontColor","htc","hoverlabel.font.color"),Pe("nameLength","hnl","hoverlabel.namelength"),Pe("textAlign","hta","hoverlabel.align"),ae.posref=ce==="y"||ce==="closest"&&ve.orientation==="h"?ae.xa._offset+(ae.x0+ae.x1)/2:ae.ya._offset+(ae.y0+ae.y1)/2,ae.x0=O.constrain(ae.x0,0,ae.xa._length),ae.x1=O.constrain(ae.x1,0,ae.xa._length),ae.y0=O.constrain(ae.y0,0,ae.ya._length),ae.y1=O.constrain(ae.y1,0,ae.ya._length),ae.xLabelVal!==void 0&&(ae.xLabel="xLabel"in ae?ae.xLabel:_.hoverLabelText(ae.xa,ae.xLabelVal,ve.xhoverformat),ae.xVal=ae.xa.c2d(ae.xLabelVal)),ae.yLabelVal!==void 0&&(ae.yLabel="yLabel"in ae?ae.yLabel:_.hoverLabelText(ae.ya,ae.yLabelVal,ve.yhoverformat),ae.yVal=ae.ya.c2d(ae.yLabelVal)),ae.zLabelVal!==void 0&&ae.zLabel===void 0&&(ae.zLabel=String(ae.zLabelVal)),!(isNaN(ae.xerr)||ae.xa.type==="log"&&ae.xerr<=0)){var Ie=_.tickText(ae.xa,ae.xa.c2l(ae.xerr),"hover").text;ae.xerrneg!==void 0?ae.xLabel+=" +"+Ie+" / -"+_.tickText(ae.xa,ae.xa.c2l(ae.xerrneg),"hover").text:ae.xLabel+=" ± "+Ie,ce==="x"&&(ae.distance+=1)}if(!(isNaN(ae.yerr)||ae.ya.type==="log"&&ae.yerr<=0)){var ze=_.tickText(ae.ya,ae.ya.c2l(ae.yerr),"hover").text;ae.yerrneg!==void 0?ae.yLabel+=" +"+ze+" / -"+_.tickText(ae.ya,ae.ya.c2l(ae.yerrneg),"hover").text:ae.yLabel+=" ± "+ze,ce==="y"&&(ae.distance+=1)}var De=ae.hoverinfo||ae.trace.hoverinfo;return De&&De!=="all"&&((De=Array.isArray(De)?De:De.split("+")).indexOf("x")===-1&&(ae.xLabel=void 0),De.indexOf("y")===-1&&(ae.yLabel=void 0),De.indexOf("z")===-1&&(ae.zLabel=void 0),De.indexOf("text")===-1&&(ae.text=void 0),De.indexOf("name")===-1&&(ae.name=void 0)),ae}function oe(ae,ce,de){var ve,ye,_e=de.container,Se=de.fullLayout,Te=Se._size,Pe=de.event,Ie=!!ce.hLinePoint,ze=!!ce.vLinePoint;if(_e.selectAll(".spikeline").remove(),ze||Ie){var De=m.combine(Se.plot_bgcolor,Se.paper_bgcolor);if(Ie){var He,Ve,$e=ce.hLinePoint;ve=$e&&$e.xa,(ye=$e&&$e.ya).spikesnap==="cursor"?(He=Pe.pointerX,Ve=Pe.pointerY):(He=ve._offset+$e.x,Ve=ye._offset+$e.y);var Oe,ke,Le=i.readability($e.color,De)<1.5?m.contrast(De):$e.color,We=ye.spikemode,Ue=ye.spikethickness,Ze=ye.spikecolor||Le,Xe=_.getPxPosition(ae,ye);if(We.indexOf("toaxis")!==-1||We.indexOf("across")!==-1){if(We.indexOf("toaxis")!==-1&&(Oe=Xe,ke=He),We.indexOf("across")!==-1){var tt=ye._counterDomainMin,Ee=ye._counterDomainMax;ye.anchor==="free"&&(tt=Math.min(tt,ye.position),Ee=Math.max(Ee,ye.position)),Oe=Te.l+tt*Te.w,ke=Te.l+Ee*Te.w}_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue,stroke:Ze,"stroke-dasharray":h.dashStyle(ye.spikedash,Ue)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}We.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Xe+(ye.side!=="right"?Ue:-Ue),cy:Ve,r:Ue,fill:Ze}).classed("spikeline",!0)}if(ze){var Ne,je,nt=ce.vLinePoint;ve=nt&&nt.xa,ye=nt&&nt.ya,ve.spikesnap==="cursor"?(Ne=Pe.pointerX,je=Pe.pointerY):(Ne=ve._offset+nt.x,je=ye._offset+nt.y);var ot,Ge,ht=i.readability(nt.color,De)<1.5?m.contrast(De):nt.color,pt=ve.spikemode,wt=ve.spikethickness,Dt=ve.spikecolor||ht,It=_.getPxPosition(ae,ve);if(pt.indexOf("toaxis")!==-1||pt.indexOf("across")!==-1){if(pt.indexOf("toaxis")!==-1&&(ot=It,Ge=je),pt.indexOf("across")!==-1){var qt=ve._counterDomainMin,en=ve._counterDomainMax;ve.anchor==="free"&&(qt=Math.min(qt,ve.position),en=Math.max(en,ve.position)),ot=Te.t+(1-en)*Te.h,Ge=Te.t+(1-qt)*Te.h}_e.insert("line",":first-child").attr({x1:Ne,x2:Ne,y1:ot,y2:Ge,"stroke-width":wt,stroke:Dt,"stroke-dasharray":h.dashStyle(ve.spikedash,wt)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Ne,x2:Ne,y1:ot,y2:Ge,"stroke-width":wt+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}pt.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Ne,cy:It-(ve.side!=="top"?wt:-wt),r:wt,fill:Dt}).classed("spikeline",!0)}}}function q(ae,ce){return!ce||ce.vLinePoint!==ae._spikepoints.vLinePoint||ce.hLinePoint!==ae._spikepoints.hLinePoint}function Y(ae,ce){return a.plainText(ae||"",{len:ce,allowedTags:["br","sub","sup","b","i","em"]})}function ee(ae,ce,de){var ve=ce[ae+"a"],ye=ce[ae+"Val"],_e=ce.cd[0];if(ve.type==="category"||ve.type==="multicategory")ye=ve._categoriesMap[ye];else if(ve.type==="date"){var Se=ce.trace[ae+"periodalignment"];if(Se){var Te=ce.cd[ce.index],Pe=Te[ae+"Start"];Pe===void 0&&(Pe=Te[ae]);var Ie=Te[ae+"End"];Ie===void 0&&(Ie=Te[ae]);var ze=Ie-Pe;Se==="end"?ye+=ze:Se==="middle"&&(ye+=ze/2)}ye=ve.d2c(ye)}return _e&&_e.t&&_e.t.posLetter===ve._id&&(de.boxmode!=="group"&&de.violinmode!=="group"||(ye+=_e.t.dPos)),ye}function me(ae){return ae.offsetTop+ae.clientTop}function he(ae){return ae.offsetLeft+ae.clientLeft}function se(ae,ce){var de=ae._fullLayout,ve=ce.getBoundingClientRect(),ye=ve.left,_e=ve.top,Se=ye+ve.width,Te=_e+ve.height,Pe=O.apply3DTransform(de._invTransform)(ye,_e),Ie=O.apply3DTransform(de._invTransform)(Se,Te),ze=Pe[0],De=Pe[1],He=Ie[0],Ve=Ie[1];return{x:ze,y:De,width:He-ze,height:Ve-De,top:Math.min(De,Ve),left:Math.min(ze,He),right:Math.max(ze,He),bottom:Math.max(De,Ve)}}},16132:function(d,l,n){var c=n(3400),b=n(76308),i=n(10624).isUnifiedHover;d.exports=function(O,w,y,p){p=p||{};var a=w.legend;function u(h){p.font[h]||(p.font[h]=a?w.legend.font[h]:w.font[h])}w&&i(w.hovermode)&&(p.font||(p.font={}),u("size"),u("family"),u("color"),a?(p.bgcolor||(p.bgcolor=b.combine(w.legend.bgcolor,w.paper_bgcolor)),p.bordercolor||(p.bordercolor=w.legend.bordercolor)):p.bgcolor||(p.bgcolor=w.paper_bgcolor)),y("hoverlabel.bgcolor",p.bgcolor),y("hoverlabel.bordercolor",p.bordercolor),y("hoverlabel.namelength",p.namelength),c.coerceFont(y,"hoverlabel.font",p.font),y("hoverlabel.align",p.align)}},41008:function(d,l,n){var c=n(3400),b=n(65460);d.exports=function(i,O){function w(y,p){return O[y]!==void 0?O[y]:c.coerce(i,O,b,y,p)}return w("clickmode"),w("hovermode")}},93024:function(d,l,n){var c=n(33428),b=n(3400),i=n(86476),O=n(10624),w=n(65460),y=n(83292);d.exports={moduleType:"component",name:"fx",constants:n(92456),schema:{layout:w},attributes:n(55756),layoutAttributes:w,supplyLayoutGlobalDefaults:n(81976),supplyDefaults:n(95448),supplyLayoutDefaults:n(88336),calc:n(55056),getDistanceFunction:O.getDistanceFunction,getClosest:O.getClosest,inbox:O.inbox,quadrature:O.quadrature,appendArrayPointValue:O.appendArrayPointValue,castHoverOption:function(p,a,u){return b.castOption(p,a,"hoverlabel."+u)},castHoverinfo:function(p,a,u){return b.castOption(p,u,"hoverinfo",function(h){return b.coerceHoverinfo({hoverinfo:h},{_module:p._module},a)})},hover:y.hover,unhover:i.unhover,loneHover:y.loneHover,loneUnhover:function(p){var a=b.isD3Selection(p)?p:c.select(p);a.selectAll("g.hovertext").remove(),a.selectAll(".spikeline").remove()},click:n(62376)}},65460:function(d,l,n){var c=n(92456),b=n(25376),i=b({editType:"none"});i.family.dflt=c.HOVERFONT,i.size.dflt=c.HOVERFONTSIZE,d.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:i,grouptitlefont:b({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},88336:function(d,l,n){var c=n(3400),b=n(65460),i=n(41008),O=n(16132);d.exports=function(w,y){function p(m,v){return c.coerce(w,y,b,m,v)}i(w,y)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var a=y._has("mapbox"),u=y._has("geo"),h=y._basePlotModules.length;y.dragmode==="zoom"&&((a||u)&&h===1||a&&u&&h===2)&&(y.dragmode="pan"),O(w,y,p),c.coerceFont(p,"hoverlabel.grouptitlefont",y.hoverlabel.font)}},81976:function(d,l,n){var c=n(3400),b=n(16132),i=n(65460);d.exports=function(O,w){b(O,w,function(y,p){return c.coerce(O,w,i,y,p)})}},12704:function(d,l,n){var c=n(3400),b=n(53756).counter,i=n(86968).u,O=n(33816).idRegex,w=n(31780),y={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[b("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[O.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[O.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(h,m,v){var _=m[v+"axes"],S=Object.keys((h._splomAxes||{})[v]||{});return Array.isArray(_)?_:S.length?S:void 0}function a(h,m,v,_,S,A){var x=m(h+"gap",v),R=m("domain."+h);m(h+"side",_);for(var M=new Array(S),T=R[0],E=(R[1]-T)/(S-x),C=E*(1-x),L=0;L1){R||M||T||j("pattern")==="independent"&&(R=!0),C._hasSubplotGrid=R;var k,I,z=j("roworder")==="top to bottom",$=R?.2:.1,Q=R?.3:.1;E&&m._splomGridDflt&&(k=m._splomGridDflt.xside,I=m._splomGridDflt.yside),C._domains={x:a("x",j,$,k,D),y:a("y",j,Q,I,L,z)}}else delete m.grid}function j(U,X){return c.coerce(v,C,y,U,X)}},contentDefaults:function(h,m){var v=m.grid;if(v&&v._domains){var _,S,A,x,R,M,T,E=h.grid||{},C=m._subplots,L=v._hasSubplotGrid,D=v.rows,k=v.columns,I=v.pattern==="independent",z=v._axisMap={};if(L){var $=E.subplots||[];M=v.subplots=new Array(D);var Q=1;for(_=0;_(u==="legend"?1:0));if(Q===!1&&(m[u]=void 0),(Q!==!1||_.uirevision)&&(A("uirevision",m.uirevision),Q!==!1)){A("borderwidth");var j,U,X,te=A("orientation")==="h",W=A("yref")==="paper",K=A("xref")==="paper",oe="left";if(te?(j=0,c.getComponentMethod("rangeslider","isVisible")(h.xaxis)?W?(U=1.1,X="bottom"):(U=1,X="top"):W?(U=-.1,X="top"):(U=0,X="bottom")):(U=1,X="auto",K?j=1.02:(j=1,oe="right")),b.coerce(_,S,{x:{valType:"number",editType:"legend",min:K?-2:0,max:K?3:1,dflt:j}},"x"),b.coerce(_,S,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:U}},"y"),A("traceorder",D),p.isGrouped(m[u])&&A("tracegroupgap"),A("entrywidth"),A("entrywidthmode"),A("itemsizing"),A("itemwidth"),A("itemclick"),A("itemdoubleclick"),A("groupclick"),A("xanchor",oe),A("yanchor",X),A("valign"),b.noneOrAll(_,S,["x","y"]),A("title.text")){A("title.side",te?"left":"top");var q=b.extendFlat({},x,{size:b.bigFont(x.size)});b.coerceFont(A,"title.font",q)}}}}d.exports=function(u,h,m){var v,_=m.slice(),S=h.shapes;if(S)for(v=0;v1)}var ve=q.hiddenlabels||[];if(!(ee||q.showlegend&&me.length))return K.selectAll("."+Y).remove(),q._topdefs.select("#"+W).remove(),i.autoMargin(X,Y);var ye=b.ensureSingle(K,"g",Y,function(Ve){ee||Ve.attr("pointer-events","all")}),_e=b.ensureSingleById(q._topdefs,"clipPath",W,function(Ve){Ve.append("rect")}),Se=b.ensureSingle(ye,"rect","bg",function(Ve){Ve.attr("shape-rendering","crispEdges")});Se.call(a.stroke,oe.bordercolor).call(a.fill,oe.bgcolor).style("stroke-width",oe.borderwidth+"px");var Te,Pe=b.ensureSingle(ye,"g","scrollbox"),Ie=oe.title;oe._titleWidth=0,oe._titleHeight=0,Ie.text?((Te=b.ensureSingle(Pe,"text",Y+"titletext")).attr("text-anchor","start").call(p.font,Ie.font).text(Ie.text),$(Te,Pe,X,oe,T)):Pe.selectAll("."+Y+"titletext").remove();var ze=b.ensureSingle(ye,"rect","scrollbar",function(Ve){Ve.attr(m.scrollBarEnterAttrs).call(a.fill,m.scrollBarColor)}),De=Pe.selectAll("g.groups").data(me);De.enter().append("g").attr("class","groups"),De.exit().remove();var He=De.selectAll("g.traces").data(b.identity);He.enter().append("g").attr("class","traces"),He.exit().remove(),He.style("opacity",function(Ve){var $e=Ve[0].trace;return O.traceIs($e,"pie-like")?ve.indexOf(Ve[0].label)!==-1?.5:1:$e.visible==="legendonly"?.5:1}).each(function(){c.select(this).call(k,X,oe)}).call(R,X,oe).each(function(){ee||c.select(this).call(z,X,Y)}),b.syncOrAsync([i.previousPromises,function(){return function(Ve,$e,Oe,ke){var Le=Ve._fullLayout,We=U(ke);ke||(ke=Le[We]);var Ue=Le._size,Ze=M.isVertical(ke),Xe=M.isGrouped(ke),tt=ke.entrywidthmode==="fraction",Ee=ke.borderwidth,Ne=2*Ee,je=m.itemGap,nt=ke.itemwidth+2*je,ot=2*(Ee+je),Ge=j(ke),ht=ke.y<0||ke.y===0&&Ge==="top",pt=ke.y>1||ke.y===1&&Ge==="bottom",wt=ke.tracegroupgap,Dt={};ke._maxHeight=Math.max(ht||pt?Le.height/2:Ue.h,30);var It=0;ke._width=0,ke._height=0;var qt=function(Xt){var Yt=0,Qt=0,Pt=Xt.title.side;return Pt&&(Pt.indexOf("left")!==-1&&(Yt=Xt._titleWidth),Pt.indexOf("top")!==-1&&(Qt=Xt._titleHeight)),[Yt,Qt]}(ke);if(Ze)Oe.each(function(Xt){var Yt=Xt[0].height;p.setTranslate(this,Ee+qt[0],Ee+qt[1]+ke._height+Yt/2+je),ke._height+=Yt,ke._width=Math.max(ke._width,Xt[0].width)}),It=nt+ke._width,ke._width+=je+nt+Ne,ke._height+=ot,Xe&&($e.each(function(Xt,Yt){p.setTranslate(this,0,Yt*ke.tracegroupgap)}),ke._height+=(ke._lgroupsLength-1)*ke.tracegroupgap);else{var en=Q(ke),Gt=ke.x<0||ke.x===0&&en==="right",Ct=ke.x>1||ke.x===1&&en==="left",_t=pt||ht,nn=Le.width/2;ke._maxWidth=Math.max(Gt?_t&&en==="left"?Ue.l+Ue.w:nn:Ct?_t&&en==="right"?Ue.r+Ue.w:nn:Ue.w,2*nt);var gn=0,bn=0;Oe.each(function(Xt){var Yt=L(Xt,ke,nt);gn=Math.max(gn,Yt),bn+=Yt}),It=null;var mn=0;if(Xe){var vt=0,bt=0,lt=0;$e.each(function(){var Xt=0,Yt=0;c.select(this).selectAll("g.traces").each(function(Pt){var tn=L(Pt,ke,nt),Kt=Pt[0].height;p.setTranslate(this,qt[0],qt[1]+Ee+je+Kt/2+Yt),Yt+=Kt,Xt=Math.max(Xt,tn),Dt[Pt[0].trace.legendgroup]=Xt});var Qt=Xt+je;bt>0&&Qt+Ee+bt>ke._maxWidth?(mn=Math.max(mn,bt),bt=0,lt+=vt+wt,vt=Yt):vt=Math.max(vt,Yt),p.setTranslate(this,bt,lt),bt+=Qt}),ke._width=Math.max(mn,bt)+Ee,ke._height=lt+vt+ot}else{var yt=Oe.size(),zt=bn+Ne+(yt-1)*je=ke._maxWidth&&(mn=Math.max(mn,Lt),it=0,at+=Rt,ke._height+=Rt,Rt=0),p.setTranslate(this,qt[0]+Ee+it,qt[1]+Ee+at+Yt/2+je),Lt=it+Qt+je,it+=Pt,Rt=Math.max(Rt,Yt)}),zt?(ke._width=it+Ne,ke._height=Rt+ot):(ke._width=Math.max(mn,Lt)+Ne,ke._height+=Rt+ot)}}ke._width=Math.ceil(Math.max(ke._width+qt[0],ke._titleWidth+2*(Ee+m.titlePad))),ke._height=Math.ceil(Math.max(ke._height+qt[1],ke._titleHeight+2*(Ee+m.itemGap))),ke._effHeight=Math.min(ke._height,ke._maxHeight);var xt=Ve._context.edits,Ht=xt.legendText||xt.legendPosition;Oe.each(function(Xt){var Yt=c.select(this).select("."+We+"toggle"),Qt=Xt[0].height,Pt=Xt[0].trace.legendgroup,tn=L(Xt,ke,nt);Xe&&Pt!==""&&(tn=Dt[Pt]);var Kt=Ht?nt:It||tn;Ze||tt||(Kt+=je/2),p.setRect(Yt,0,-Qt/2,Kt,Qt)})}(X,De,He,oe)},function(){var Ve,$e,Oe,ke,Le=q._size,We=oe.borderwidth,Ue=oe.xref==="paper",Ze=oe.yref==="paper";if(Ie.text&&function(_t,nn,gn){if(nn.title.side==="top center"||nn.title.side==="top right"){var bn=nn.title.font.size*_,mn=0,vt=_t.node(),bt=p.bBox(vt).width;nn.title.side==="top center"?mn=.5*(nn._width-2*gn-2*m.titlePad-bt):nn.title.side==="top right"&&(mn=nn._width-2*gn-2*m.titlePad-bt),u.positionText(_t,gn+m.titlePad+mn,gn+bn)}}(Te,oe,We),!ee){var Xe,tt;Xe=Ue?Le.l+Le.w*oe.x-S[Q(oe)]*oe._width:q.width*oe.x-S[Q(oe)]*oe._width,tt=Ze?Le.t+Le.h*(1-oe.y)-S[j(oe)]*oe._effHeight:q.height*(1-oe.y)-S[j(oe)]*oe._effHeight;var Ee=function(_t,nn,gn,bn){var mn=_t._fullLayout,vt=mn[nn],bt=Q(vt),lt=j(vt),yt=vt.xref==="paper",zt=vt.yref==="paper";_t._fullLayout._reservedMargin[nn]={};var Rt=vt.y<.5?"b":"t",it=vt.x<.5?"l":"r",at={r:mn.width-gn,l:gn+vt._width,b:mn.height-bn,t:bn+vt._effHeight};if(yt&&zt)return i.autoMargin(_t,nn,{x:vt.x,y:vt.y,l:vt._width*S[bt],r:vt._width*A[bt],b:vt._effHeight*A[lt],t:vt._effHeight*S[lt]});yt?_t._fullLayout._reservedMargin[nn][Rt]=at[Rt]:zt||vt.orientation==="v"?_t._fullLayout._reservedMargin[nn][it]=at[it]:_t._fullLayout._reservedMargin[nn][Rt]=at[Rt]}(X,Y,Xe,tt);if(Ee)return;if(q.margin.autoexpand){var Ne=Xe,je=tt;Xe=Ue?b.constrain(Xe,0,q.width-oe._width):Ne,tt=Ze?b.constrain(tt,0,q.height-oe._effHeight):je,Xe!==Ne&&b.log("Constrain "+Y+".x to make legend fit inside graph"),tt!==je&&b.log("Constrain "+Y+".y to make legend fit inside graph")}p.setTranslate(ye,Xe,tt)}if(ze.on(".drag",null),ye.on("wheel",null),ee||oe._height<=oe._maxHeight||X._context.staticPlot){var nt=oe._effHeight;ee&&(nt=oe._height),Se.attr({width:oe._width-We,height:nt-We,x:We/2,y:We/2}),p.setTranslate(Pe,0,0),_e.select("rect").attr({width:oe._width-2*We,height:nt-2*We,x:We,y:We}),p.setClipUrl(Pe,W,X),p.setRect(ze,0,0,0,0),delete oe._scrollY}else{var ot,Ge,ht,pt=Math.max(m.scrollBarMinHeight,oe._effHeight*oe._effHeight/oe._height),wt=oe._effHeight-pt-2*m.scrollBarMargin,Dt=oe._height-oe._effHeight,It=wt/Dt,qt=Math.min(oe._scrollY||0,Dt);Se.attr({width:oe._width-2*We+m.scrollBarWidth+m.scrollBarMargin,height:oe._effHeight-We,x:We/2,y:We/2}),_e.select("rect").attr({width:oe._width-2*We+m.scrollBarWidth+m.scrollBarMargin,height:oe._effHeight-2*We,x:We,y:We+qt}),p.setClipUrl(Pe,W,X),Ct(qt,pt,It),ye.on("wheel",function(){Ct(qt=b.constrain(oe._scrollY+c.event.deltaY/wt*Dt,0,Dt),pt,It),qt!==0&&qt!==Dt&&c.event.preventDefault()});var en=c.behavior.drag().on("dragstart",function(){var _t=c.event.sourceEvent;ot=_t.type==="touchstart"?_t.changedTouches[0].clientY:_t.clientY,ht=qt}).on("drag",function(){var _t=c.event.sourceEvent;_t.buttons===2||_t.ctrlKey||(Ge=_t.type==="touchmove"?_t.changedTouches[0].clientY:_t.clientY,qt=function(nn,gn,bn){var mn=(bn-gn)/It+nn;return b.constrain(mn,0,Dt)}(ht,ot,Ge),Ct(qt,pt,It))});ze.call(en);var Gt=c.behavior.drag().on("dragstart",function(){var _t=c.event.sourceEvent;_t.type==="touchstart"&&(ot=_t.changedTouches[0].clientY,ht=qt)}).on("drag",function(){var _t=c.event.sourceEvent;_t.type==="touchmove"&&(Ge=_t.changedTouches[0].clientY,qt=function(nn,gn,bn){var mn=(gn-bn)/It+nn;return b.constrain(mn,0,Dt)}(ht,ot,Ge),Ct(qt,pt,It))});Pe.call(Gt)}function Ct(_t,nn,gn){oe._scrollY=X._fullLayout[Y]._scrollY=_t,p.setTranslate(Pe,0,-_t),p.setRect(ze,oe._width,m.scrollBarMargin+_t*gn,m.scrollBarWidth,nn),_e.select("rect").attr("y",We+_t)}X._context.edits.legendPosition&&(ye.classed("cursor-move",!0),y.init({element:ye.node(),gd:X,prepFn:function(){var _t=p.getTranslate(ye);Oe=_t.x,ke=_t.y},moveFn:function(_t,nn){var gn=Oe+_t,bn=ke+nn;p.setTranslate(ye,gn,bn),Ve=y.align(gn,oe._width,Le.l,Le.l+Le.w,oe.xanchor),$e=y.align(bn+oe._height,-oe._height,Le.t+Le.h,Le.t,oe.yanchor)},doneFn:function(){if(Ve!==void 0&&$e!==void 0){var _t={};_t[Y+".x"]=Ve,_t[Y+".y"]=$e,O.call("_guiRelayout",X,_t)}},clickFn:function(_t,nn){var gn=K.selectAll("g.traces").filter(function(){var bn=this.getBoundingClientRect();return nn.clientX>=bn.left&&nn.clientX<=bn.right&&nn.clientY>=bn.top&&nn.clientY<=bn.bottom});gn.size()>0&&D(X,ye,gn,_t,nn)}}))}],X)}}function L(X,te,W){var K=X[0],oe=K.width,q=te.entrywidthmode,Y=K.trace.legendwidth||te.entrywidth;return q==="fraction"?te._maxWidth*Y:W+(Y||oe)}function D(X,te,W,K,oe){var q=W.data()[0][0].trace,Y={event:oe,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:X.data,layout:X.layout,frames:X._transitionData._frames,config:X._context,fullData:X._fullData,fullLayout:X._fullLayout};q._group&&(Y.group=q._group),O.traceIs(q,"pie-like")&&(Y.label=W.datum()[0].label);var ee=w.triggerHandler(X,"plotly_legendclick",Y);if(K===1){if(ee===!1)return;te._clickTimeout=setTimeout(function(){X._fullLayout&&h(W,X,K)},X._context.doubleClickDelay)}else K===2&&(te._clickTimeout&&clearTimeout(te._clickTimeout),X._legendMouseDownTime=0,w.triggerHandler(X,"plotly_legenddoubleclick",Y)!==!1&&ee!==!1&&h(W,X,K))}function k(X,te,W){var K,oe,q=U(W),Y=X.data()[0][0],ee=Y.trace,me=O.traceIs(ee,"pie-like"),he=!W._inHover&&te._context.edits.legendText&&!me,se=W._maxNameLength;Y.groupTitle?(K=Y.groupTitle.text,oe=Y.groupTitle.font):(oe=W.font,W.entries?K=Y.text:(K=me?Y.label:ee.name,ee._meta&&(K=b.templateString(K,ee._meta))));var ae=b.ensureSingle(X,"text",q+"text");ae.attr("text-anchor","start").call(p.font,oe).text(he?I(K,se):K);var ce=W.itemwidth+2*m.itemGap;u.positionText(ae,ce,0),he?ae.call(u.makeEditable,{gd:te,text:K}).call($,X,te,W).on("edit",function(de){this.text(I(de,se)).call($,X,te,W);var ve=Y.trace._fullInput||{},ye={};if(O.hasTransform(ve,"groupby")){var _e=O.getTransformIndices(ve,"groupby"),Se=_e[_e.length-1],Te=b.keyedContainer(ve,"transforms["+Se+"].styles","target","value.name");Te.set(Y.trace._group,de),ye=Te.constructUpdate()}else ye.name=de;return ve._isShape?O.call("_guiRelayout",te,"shapes["+ee.index+"].name",ye.name):O.call("_guiRestyle",te,ye,ee.index)}):$(ae,X,te,W)}function I(X,te){var W=Math.max(4,te);if(X&&X.trim().length>=W/2)return X;for(var K=W-(X=X||"").length;K>0;K--)X+=" ";return X}function z(X,te,W){var K,oe=te._context.doubleClickDelay,q=1,Y=b.ensureSingle(X,"rect",W+"toggle",function(ee){te._context.staticPlot||ee.style("cursor","pointer").attr("pointer-events","all"),ee.call(a.fill,"rgba(0,0,0,0)")});te._context.staticPlot||(Y.on("mousedown",function(){(K=new Date().getTime())-te._legendMouseDownTimeoe&&(q=Math.max(q-1,1)),D(te,ee,X,q,c.event)}}))}function $(X,te,W,K,oe){K._inHover&&X.attr("data-notex",!0),u.convertToTspans(X,W,function(){(function(q,Y,ee,me){var he=q.data()[0][0];if(ee._inHover||!he||he.trace.showlegend){var se=q.select("g[class*=math-group]"),ae=se.node(),ce=U(ee);ee||(ee=Y._fullLayout[ce]);var de,ve,ye=ee.borderwidth,_e=(me===T?ee.title.font:he.groupTitle?he.groupTitle.font:ee.font).size*_;if(ae){var Se=p.bBox(ae);de=Se.height,ve=Se.width,me===T?p.setTranslate(se,ye,ye+.75*de):p.setTranslate(se,0,.25*de)}else{var Te="."+ce+(me===T?"title":"")+"text",Pe=q.select(Te),Ie=u.lineCount(Pe),ze=Pe.node();if(de=_e*Ie,ve=ze?p.bBox(ze).width:0,me===T)ee.title.side==="left"&&(ve+=2*m.itemGap),u.positionText(Pe,ye+m.titlePad,ye+_e);else{var De=2*m.itemGap+ee.itemwidth;he.groupTitle&&(De=m.itemGap,ve-=ee.itemwidth),u.positionText(Pe,De,-_e*((Ie-1)/2-.3))}}me===T?(ee._titleWidth=ve,ee._titleHeight=de):(he.lineHeight=_e,he.height=Math.max(de,16)+3,he.width=ve)}else q.remove()})(te,W,K,oe)})}function Q(X){return b.isRightAnchor(X)?"right":b.isCenterAnchor(X)?"center":"left"}function j(X){return b.isBottomAnchor(X)?"bottom":b.isMiddleAnchor(X)?"middle":"top"}function U(X){return X._id||"legend"}d.exports=function(X,te){if(te)C(X,te);else{var W=X._fullLayout,K=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var Y=c.select(this),ee=Y.attr("class").split(" ")[0];ee.match(E)&&K.indexOf(ee)===-1&&Y.remove()});for(var oe=0;oeQ&&($=Q)}I[y][0]._groupMinRank=$,I[y][0]._preGroupSort=y}var j=function(K,oe){return K.trace.legendrank-oe.trace.legendrank||K._preSort-oe._preSort};for(I.forEach(function(K,oe){K[0]._preGroupSort=oe}),I.sort(function(K,oe){return K[0]._groupMinRank-oe[0]._groupMinRank||K[0]._preGroupSort-oe[0]._preGroupSort}),y=0;yR?R:A}d.exports=function(A,x,R){var M=x._fullLayout;R||(R=M.legend);var T=R.itemsizing==="constant",E=R.itemwidth,C=(E+2*m.itemGap)/2,L=O(C,0),D=function(z,$,Q,j){var U;if(z+1)U=z;else{if(!($&&$.width>0))return 0;U=$.width}return T?j:Math.min(U,Q)};function k(z,$,Q){var j=z[0].trace,U=j.marker||{},X=U.line||{},te=U.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",W=Q?j.visible&&j.type===Q:b.traceIs(j,"bar"),K=c.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(W?[z]:[]);K.enter().append("path").classed("legend"+Q,!0).attr("d",te).attr("transform",L),K.exit().remove(),K.each(function(oe){var q=c.select(this),Y=oe[0],ee=D(Y.mlw,U.line,5,2);q.style("stroke-width",ee+"px");var me=Y.mcc;if(!R._inHover&&"mc"in Y){var he=p(U),se=he.mid;se===void 0&&(se=(he.max+he.min)/2),me=w.tryColorscale(U,"")(se)}var ae=me||Y.mc||U.color,ce=U.pattern,de=ce&&w.getPatternAttr(ce.shape,0,"");if(de){var ve=w.getPatternAttr(ce.bgcolor,0,null),ye=w.getPatternAttr(ce.fgcolor,0,null),_e=ce.fgopacity,Se=S(ce.size,8,10),Te=S(ce.solidity,.5,1),Pe="legend-"+j.uid;q.call(w.pattern,"legend",x,Pe,de,Se,Te,me,ce.fillmode,ve,ye,_e)}else q.call(y.fill,ae);ee&&y.stroke(q,Y.mlc||X.color)})}function I(z,$,Q){var j=z[0],U=j.trace,X=Q?U.visible&&U.type===Q:b.traceIs(U,Q),te=c.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(X?[z]:[]);if(te.enter().append("path").classed("legend"+Q,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),te.exit().remove(),te.size()){var W=U.marker||{},K=D(h(W.line.width,j.pts),W.line,5,2),oe="pieLike",q=i.minExtend(U,{marker:{line:{width:K}}},oe),Y=i.minExtend(j,{trace:q},oe);u(te,Y,q,x)}}A.each(function(z){var $=c.select(this),Q=i.ensureSingle($,"g","layers");Q.style("opacity",z[0].trace.opacity);var j=R.valign,U=z[0].lineHeight,X=z[0].height;if(j!=="middle"&&U&&X){var te={top:1,bottom:-1}[j]*(.5*(U-X+3));Q.attr("transform",O(0,te))}else Q.attr("transform",null);Q.selectAll("g.legendfill").data([z]).enter().append("g").classed("legendfill",!0),Q.selectAll("g.legendlines").data([z]).enter().append("g").classed("legendlines",!0);var W=Q.selectAll("g.legendsymbols").data([z]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([z]).enter().append("g").classed("legendpoints",!0)}).each(function(z){var $,Q=z[0].trace,j=[];if(Q.visible)switch(Q.type){case"histogram2d":case"heatmap":j=[["M-15,-2V4H15V-2Z"]],$=!0;break;case"choropleth":case"choroplethmapbox":j=[["M-6,-6V6H6V-6Z"]],$=!0;break;case"densitymapbox":j=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],$="radial";break;case"cone":j=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],$=!1;break;case"streamtube":j=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],$=!1;break;case"surface":j=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],$=!0;break;case"mesh3d":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!1;break;case"volume":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!0;break;case"isosurface":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],$=!1}var U=c.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(j);U.enter().append("path").classed("legend3dandfriends",!0).attr("transform",L).style("stroke-miterlimit",1),U.exit().remove(),U.each(function(X,te){var W,K=c.select(this),oe=p(Q),q=oe.colorscale,Y=oe.reversescale;if(q){if(!$){var ee=q.length;W=te===0?q[Y?ee-1:0][1]:te===1?q[Y?0:ee-1][1]:q[Math.floor((ee-1)/2)][1]}}else{var me=Q.vertexcolor||Q.facecolor||Q.color;W=i.isArrayOrTypedArray(me)?me[te]||me[0]:me}K.attr("d",X[0]),W?K.call(y.fill,W):K.call(function(he){if(he.size()){var se="legendfill-"+Q.uid;w.gradient(he,x,se,v(Y,$==="radial"),q,"fill")}})})}).each(function(z){var $=z[0].trace,Q=$.type==="waterfall";if(z[0]._distinct&&Q){var j=z[0].trace[z[0].dir].marker;return z[0].mc=j.color,z[0].mlw=j.line.width,z[0].mlc=j.line.color,k(z,this,"waterfall")}var U=[];$.visible&&Q&&(U=z[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var X=c.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(U);X.enter().append("path").classed("legendwaterfall",!0).attr("transform",L).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(te){var W=c.select(this),K=$[te[0]].marker,oe=D(void 0,K.line,5,2);W.attr("d",te[1]).style("stroke-width",oe+"px").call(y.fill,K.color),oe&&W.call(y.stroke,K.line.color)})}).each(function(z){k(z,this,"funnel")}).each(function(z){k(z,this)}).each(function(z){var $=z[0].trace,Q=c.select(this).select("g.legendpoints").selectAll("path.legendbox").data($.visible&&b.traceIs($,"box-violin")?[z]:[]);Q.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),Q.exit().remove(),Q.each(function(){var j=c.select(this);if($.boxpoints!=="all"&&$.points!=="all"||y.opacity($.fillcolor)!==0||y.opacity(($.line||{}).color)!==0){var U=D(void 0,$.line,5,2);j.style("stroke-width",U+"px").call(y.fill,$.fillcolor),U&&y.stroke(j,$.line.color)}else{var X=i.minExtend($,{marker:{size:T?12:i.constrain($.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});Q.call(w.pointStyle,X,x)}})}).each(function(z){I(z,this,"funnelarea")}).each(function(z){I(z,this,"pie")}).each(function(z){var $,Q,j=_(z),U=j.showFill,X=j.showLine,te=j.showGradientLine,W=j.showGradientFill,K=j.anyFill,oe=j.anyLine,q=z[0],Y=q.trace,ee=p(Y),me=ee.colorscale,he=ee.reversescale,se=a.hasMarkers(Y)||!K?"M5,0":oe?"M5,-2":"M5,-3",ae=c.select(this),ce=ae.select(".legendfill").selectAll("path").data(U||W?[z]:[]);if(ce.enter().append("path").classed("js-fill",!0),ce.exit().remove(),ce.attr("d",se+"h"+E+"v6h-"+E+"z").call(function(ye){if(ye.size())if(U)w.fillGroupStyle(ye,x);else{var _e="legendfill-"+Y.uid;w.gradient(ye,x,_e,v(he),me,"fill")}}),X||te){var de=D(void 0,Y.line,10,5);Q=i.minExtend(Y,{line:{width:de}}),$=[i.minExtend(q,{trace:Q})]}var ve=ae.select(".legendlines").selectAll("path").data(X||te?[$]:[]);ve.enter().append("path").classed("js-line",!0),ve.exit().remove(),ve.attr("d",se+(te?"l"+E+",0.0001":"h"+E)).call(X?w.lineGroupStyle:function(ye){if(ye.size()){var _e="legendline-"+Y.uid;w.lineGroupStyle(ye),w.gradient(ye,x,_e,v(he),me,"stroke")}})}).each(function(z){var $,Q,j=_(z),U=j.anyFill,X=j.anyLine,te=j.showLine,W=j.showMarker,K=z[0],oe=K.trace,q=!W&&!X&&!U&&a.hasText(oe);function Y(ve,ye,_e,Se){var Te=i.nestedProperty(oe,ve).get(),Pe=i.isArrayOrTypedArray(Te)&&ye?ye(Te):Te;if(T&&Pe&&Se!==void 0&&(Pe=Se),_e){if(Pe<_e[0])return _e[0];if(Pe>_e[1])return _e[1]}return Pe}function ee(ve){return K._distinct&&K.index&&ve[K.index]?ve[K.index]:ve[0]}if(W||q||te){var me={},he={};if(W){me.mc=Y("marker.color",ee),me.mx=Y("marker.symbol",ee),me.mo=Y("marker.opacity",i.mean,[.2,1]),me.mlc=Y("marker.line.color",ee),me.mlw=Y("marker.line.width",i.mean,[0,5],2),he.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var se=Y("marker.size",i.mean,[2,16],12);me.ms=se,he.marker.size=se}te&&(he.line={width:Y("line.width",ee,[0,10],5)}),q&&(me.tx="Aa",me.tp=Y("textposition",ee),me.ts=10,me.tc=Y("textfont.color",ee),me.tf=Y("textfont.family",ee)),$=[i.minExtend(K,me)],(Q=i.minExtend(oe,he)).selectedpoints=null,Q.texttemplate=null}var ae=c.select(this).select("g.legendpoints"),ce=ae.selectAll("path.scatterpts").data(W?$:[]);ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",L),ce.exit().remove(),ce.call(w.pointStyle,Q,x),W&&($[0].mrc=3);var de=ae.selectAll("g.pointtext").data(q?$:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",L),de.exit().remove(),de.selectAll("text").call(w.textPointStyle,Q,x)}).each(function(z){var $=z[0].trace,Q=c.select(this).select("g.legendpoints").selectAll("path.legendcandle").data($.visible&&$.type==="candlestick"?[z,z]:[]);Q.enter().append("path").classed("legendcandle",!0).attr("d",function(j,U){return U?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=c.select(this),te=$[U?"increasing":"decreasing"],W=D(void 0,te.line,5,2);X.style("stroke-width",W+"px").call(y.fill,te.fillcolor),W&&y.stroke(X,te.line.color)})}).each(function(z){var $=z[0].trace,Q=c.select(this).select("g.legendpoints").selectAll("path.legendohlc").data($.visible&&$.type==="ohlc"?[z,z]:[]);Q.enter().append("path").classed("legendohlc",!0).attr("d",function(j,U){return U?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=c.select(this),te=$[U?"increasing":"decreasing"],W=D(void 0,te.line,5,2);X.style("fill","none").call(w.dashLine,te.line.dash,W),W&&y.stroke(X,te.line.color)})})}},66540:function(d,l,n){n(76052),d.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(d,l,n){var c=n(24040),b=n(7316),i=n(79811),O=n(9224),w=n(4016).eraseActiveShape,y=n(3400),p=y._,a=d.exports={};function u(M,T){var E,C,L=T.currentTarget,D=L.getAttribute("data-attr"),k=L.getAttribute("data-val")||!0,I=M._fullLayout,z={},$=i.list(M,null,!0),Q=I._cartesianSpikesEnabled;if(D==="zoom"){var j,U=k==="in"?.5:2,X=(1+U)/2,te=(1-U)/2;for(C=0;C<$.length;C++)if(!(E=$[C]).fixedrange)if(j=E._name,k==="auto")z[j+".autorange"]=!0;else if(k==="reset")E._rangeInitial0===void 0&&E._rangeInitial1===void 0?z[j+".autorange"]=!0:E._rangeInitial0===void 0?(z[j+".autorange"]=E._autorangeInitial,z[j+".range"]=[null,E._rangeInitial1]):E._rangeInitial1===void 0?(z[j+".range"]=[E._rangeInitial0,null],z[j+".autorange"]=E._autorangeInitial):z[j+".range"]=[E._rangeInitial0,E._rangeInitial1],E._showSpikeInitial!==void 0&&(z[j+".showspikes"]=E._showSpikeInitial,Q!=="on"||E._showSpikeInitial||(Q="off"));else{var W=[E.r2l(E.range[0]),E.r2l(E.range[1])],K=[X*W[0]+te*W[1],X*W[1]+te*W[0]];z[j+".range[0]"]=E.l2r(K[0]),z[j+".range[1]"]=E.l2r(K[1])}}else D!=="hovermode"||k!=="x"&&k!=="y"||(k=I._isHoriz?"y":"x",L.setAttribute("data-val",k)),z[D]=k;I._cartesianSpikesEnabled=Q,c.call("_guiRelayout",M,z)}function h(M,T){for(var E=T.currentTarget,C=E.getAttribute("data-attr"),L=E.getAttribute("data-val")||!0,D=M._fullLayout._subplots.gl3d||[],k={},I=C.split("."),z=0;z1?(se=["toggleHover"],ae=["resetViews"]):z?(he=["zoomInGeo","zoomOutGeo"],se=["hoverClosestGeo"],ae=["resetGeo"]):I?(se=["hoverClosest3d"],ae=["resetCameraDefault3d","resetCameraLastSave3d"]):X?(he=["zoomInMapbox","zoomOutMapbox"],se=["toggleHover"],ae=["resetViewMapbox"]):j?se=["hoverClosestGl2d"]:$?se=["hoverClosestPie"]:K?(se=["hoverClosestCartesian","hoverCompareCartesian"],ae=["resetViewSankey"]):se=["toggleHover"],k&&(se=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(Te){for(var Pe=0;Pe0)){var x=function(M,T,E){for(var C=E.filter(function(I){return T[I].anchor===M._id}),L=0,D=0;D0?C.touches[0].clientX:0}function A(C,L,D,k){var I=O.ensureSingle(C,"rect",_.bgClassName,function(j){j.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),z=k.borderwidth%2==0?k.borderwidth:k.borderwidth-1,$=-k._offsetShift,Q=y.crispRound(L,k.borderwidth);I.attr({width:k._width+z,height:k._height+z,transform:w($,$),"stroke-width":Q}).call(p.stroke,k.bordercolor).call(p.fill,k.bgcolor)}function x(C,L,D,k){var I=L._fullLayout;O.ensureSingleById(I._topdefs,"clipPath",k._clipId,function(z){z.append("rect").attr({x:0,y:0})}).select("rect").attr({width:k._width,height:k._height})}function R(C,L,D,k){var I,z=L.calcdata,$=C.selectAll("g."+_.rangePlotClassName).data(D._subplotsWith,O.identity);$.enter().append("g").attr("class",function(Q){return _.rangePlotClassName+" "+Q}).call(y.setClipUrl,k._clipId,L),$.order(),$.exit().remove(),$.each(function(Q,j){var U=c.select(this),X=j===0,te=h.getFromId(L,Q,"y"),W=te._name,K=k[W],oe={data:[],layout:{xaxis:{type:D.type,domain:[0,1],range:k.range.slice(),calendar:D.calendar},width:k._width,height:k._height,margin:{t:0,b:0,l:0,r:0}},_context:L._context};D.rangebreaks&&(oe.layout.xaxis.rangebreaks=D.rangebreaks),oe.layout[W]={type:te.type,domain:[0,1],range:K.rangemode!=="match"?K.range.slice():te.range.slice(),calendar:te.calendar},te.rangebreaks&&(oe.layout[W].rangebreaks=te.rangebreaks),i.supplyDefaults(oe);var q=oe._fullLayout.xaxis,Y=oe._fullLayout[W];q.clearCalc(),q.setScale(),Y.clearCalc(),Y.setScale();var ee={id:Q,plotgroup:U,xaxis:q,yaxis:Y,isRangePlot:!0};X?I=ee:(ee.mainplot="xy",ee.mainplotinfo=I),u.rangePlot(L,ee,function(me,he){for(var se=[],ae=0;ae=De.max)Ie=_e[ze+1];else if(Pe=De.pmax)Ie=_e[ze+1];else if(Peze._length||Xe+ht<0)return;nt=Ze+ht,ot=Xe+ht;break;case Ve:if(Ge="col-resize",Ze+ht>ze._length)return;nt=Ze+ht,ot=Xe;break;case $e:if(Ge="col-resize",Xe+ht<0)return;nt=Ze,ot=Xe+ht;break;default:Ge="ew-resize",nt=Ue,ot=Ue+ht}if(ot=0;j--){var U=T.append("path").attr(C).style("opacity",j?.1:L).call(O.stroke,k).call(O.fill,D).call(w.dashLine,j?"solid":z,j?4+I:I);if(v(U,S,R),$){var X=y(S.layout,"selections",R);U.style({cursor:"move"});var te={element:U.node(),plotinfo:M,gd:S,editHelpers:X,isActiveSelection:!0},W=c(E,S);b(W,U,te)}else U.style("pointer-events",j?"all":"none");Q[j]=U}var K=Q[0];Q[1].node().addEventListener("click",function(){return function(oe,q){if(h(oe)){var Y=+q.node().getAttribute("data-index");if(Y>=0){if(Y===oe._fullLayout._activeSelectionIndex)return void _(oe);oe._fullLayout._activeSelectionIndex=Y,oe._fullLayout._deactivateSelection=_,u(oe)}}}(S,K)})}(S._fullLayout._selectionLayer)}function v(S,A,x){var R=x.xref+x.yref;w.setClipUrl(S,"clip"+A._fullLayout._uid+R,A)}function _(S){h(S)&&S._fullLayout._activeSelectionIndex>=0&&(i(S),delete S._fullLayout._activeSelectionIndex,u(S))}d.exports={draw:u,drawOne:m,activateLastSelection:function(S){if(h(S)){var A=S._fullLayout.selections.length-1;S._fullLayout._activeSelectionIndex=A,S._fullLayout._deactivateSelection=_,u(S)}}}},34200:function(d,l,n){var c=n(98192).u,b=n(92880).extendFlat;d.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:b({},c,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(d){d.exports=function(l,n,c){c("newselection.mode"),c("newselection.line.width")&&(c("newselection.line.color"),c("newselection.line.dash")),c("activeselection.fillcolor"),c("activeselection.opacity")}},5968:function(d,l,n){var c=n(72760).selectMode,b=n(1936).clearOutline,i=n(9856),O=i.readPaths,w=i.writePaths,y=i.fixDatesForPaths;d.exports=function(p,a){if(p.length){var u=p[0][0];if(u){var h=u.getAttribute("d"),m=a.gd,v=m._fullLayout.newselection,_=a.plotinfo,S=_.xaxis,A=_.yaxis,x=a.isActiveSelection,R=a.dragmode,M=(m.layout||{}).selections||[];if(!c(R)&&x!==void 0){var T=m._fullLayout._activeSelectionIndex;if(T-1,bn=[];if(function(yt){return yt&&Array.isArray(yt)&&yt[0].hoverOnBox!==!0}(nn)){de(Ee,Ne,Ge);var mn=function(yt,zt){var Rt,it,at=yt[0],Lt=-1,xt=[];for(it=0;it0?function(yt,zt){var Rt,it,at,Lt=[];for(at=0;at0&&Lt.push(Rt);if(Lt.length===1&&Lt[0]===zt.searchInfo&&(it=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(at=0;at1||(it+=zt.selectedpoints.length)>1))return!1;return it===1}(pt)&&(en=Te(mn))){for(ht&&ht.remove(),_t=0;_t=0})(ot)&&ot._fullLayout._deactivateShape(ot),function(qt){return qt._fullLayout._activeSelectionIndex>=0}(ot)&&ot._fullLayout._deactivateSelection(ot);var Ge=ot._fullLayout._zoomlayer,ht=m(je),pt=_(je);if(ht||pt){var wt,Dt,It=Ge.selectAll(".select-outline-"+nt.id);It&&ot._fullLayout._outlining&&(ht&&(wt=C(It,Ee)),wt&&i.call("_guiRelayout",ot,{shapes:wt}),pt&&!me(Ee)&&(Dt=L(It,Ee)),Dt&&(ot._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",ot,{selections:Dt}).then(function(){Ne&&D(ot)})),ot._fullLayout._outlining=!1)}nt.selection={},nt.selection.selectionDefs=Ee.selectionDefs=[],nt.selection.mergedPolygons=Ee.mergedPolygons=[]}function ye(Ee){return Ee._id}function _e(Ee,Ne,je,nt){if(!Ee.calcdata)return[];var ot,Ge,ht,pt=[],wt=Ne.map(ye),Dt=je.map(ye);for(ht=0;ht0?nt[0]:je;return!!Ne.selectedpoints&&Ne.selectedpoints.indexOf(ot)>-1}function Pe(Ee,Ne,je){var nt,ot;for(nt=0;nt-1&&Ne;if(!Ge&&Ne){var ir=ke(Ee,!0);if(ir.length){var Wn=ir[0].xref,Kn=ir[0].yref;if(Wn&&Kn){var _r=Ue(ir);Ze([Q(Ee,Wn,"x"),Q(Ee,Kn,"y")])(ar,_r)}}Ee._fullLayout._noEmitSelectedAtStart?Ee._fullLayout._noEmitSelectedAtStart=!1:Fn&&Xe(Ee,ar),en._reselect=!1}if(!Ge&&en._deselect){var Ir=en._deselect;(function(zr,Fr,Rr){for(var $r=0;$r=0)Gt._fullLayout._deactivateShape(Gt);else if(!Dt){var _r=Ct.clickmode;$.done(Sr).then(function(){if($.clear(Sr),Wn===2){for(Nn.remove(),at=0;at-1&&he(Kn,Gt,nt.xaxes,nt.yaxes,nt.subplot,nt,Nn),_r==="event"&&Xe(Gt,void 0);y.click(Gt,Kn,bn.id)}).catch(k.error)}},nt.doneFn=function(){Un.remove(),$.done(Sr).then(function(){$.clear(Sr),!_t&&it&&nt.selectionDefs&&(it.subtract=vn,nt.selectionDefs.push(it),nt.mergedPolygons.length=0,[].push.apply(nt.mergedPolygons,Rt)),(_t||Dt)&&ve(nt,_t),nt.doneFnCompleted&&nt.doneFnCompleted(ar),It&&Xe(Gt,xt)}).catch(k.error)}},clearOutline:R,clearSelectionsCache:ve,selectOnClick:he}},46056:function(d,l,n){var c=n(13916),b=n(25376),i=n(52904).line,O=n(98192).u,w=n(92880).extendFlat,y=n(31780).templatedArray,p=(n(36208),n(45464)),a=n(21776).ye,u=n(97728);d.exports=y("shape",{visible:w({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:w({},p.legend,{editType:"calc+arraydraw"}),legendgroup:w({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:w({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:b({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:w({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:w({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:w({},c.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:w({},c.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:w({},i.color,{editType:"arraydraw"}),width:w({},i.width,{editType:"calc+arraydraw"}),dash:w({},O,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:a({},{keys:Object.keys(u)}),font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},96084:function(d,l,n){var c=n(3400),b=n(54460),i=n(85448),O=n(65152);function w(u){return p(u.line.width,u.xsizemode,u.x0,u.x1,u.path,!1)}function y(u){return p(u.line.width,u.ysizemode,u.y0,u.y1,u.path,!0)}function p(u,h,m,v,_,S){var A=u/2,x=S;if(h==="pixel"){var R=_?O.extractPathCoords(_,S?i.paramIsY:i.paramIsX):[m,v],M=c.aggNums(Math.max,null,R),T=c.aggNums(Math.min,null,R),E=T<0?Math.abs(T)+A:A,C=M>0?M+A:A;return{ppad:A,ppadplus:x?E:C,ppadminus:x?C:E}}return{ppad:A}}function a(u,h,m,v,_){var S=u.type==="category"||u.type==="multicategory"?u.r2c:u.d2c;if(h!==void 0)return[S(h),S(m)];if(v){var A,x,R,M,T=1/0,E=-1/0,C=v.match(i.segmentRE);for(u.type==="date"&&(S=O.decodeDate(S)),A=0;AE&&(E=M)));return E>=T?[T,E]:void 0}}d.exports=function(u){var h=u._fullLayout,m=c.filterVisible(h.shapes);if(m.length&&u._fullData.length)for(var v=0;v=ye?_e-Te:Te-_e,-180/Math.PI*Math.atan2(Pe,Ie)}(E,L,C,D):0),z.call(function(ye){return ye.call(O.font,I).attr({}),i.convertToTspans(ye,h),ye});var ae=function(ye,_e,Se,Te,Pe,Ie,ze){var De,He,Ve,$e,Oe=Pe.label.textposition,ke=Pe.label.textangle,Le=Pe.label.padding,We=Pe.type,Ue=Math.PI/180*Ie,Ze=Math.sin(Ue),Xe=Math.cos(Ue),tt=Pe.label.xanchor,Ee=Pe.label.yanchor;if(We==="line"){Oe==="start"?(De=ye,He=_e):Oe==="end"?(De=Se,He=Te):(De=(ye+Se)/2,He=(_e+Te)/2),tt==="auto"&&(tt=Oe==="start"?ke==="auto"?Se>ye?"left":Seye?"right":Seye?"right":Seye?"left":Se1&&(De.length!==2||De[1][0]!=="Z")&&(K===0&&(De[0][0]="M"),k[W]=De,j(),U())}}()}}function ye(Pe,Ie){(function(ze,De){if(k.length)for(var He=0;HeHe?(Oe=ze,Ue="y0",ke=He,Ze="y1"):(Oe=He,Ue="y1",ke=ze,Ze="y0"),vt(Rt),yt(Te,_e),function(it,at,Lt){var xt=at.xref,Ht=at.yref,Xt=O.getFromId(Lt,xt),Yt=O.getFromId(Lt,Ht),Qt="";xt==="paper"||Xt.autorange||(Qt+=xt),Ht==="paper"||Yt.autorange||(Qt+=Ht),h.setClipUrl(it,Qt?"clip"+Lt._fullLayout._uid+Qt:null,Lt)}(ye,_e,ve),mn.moveFn=Ne==="move"?bt:lt,mn.altKey=Rt.altKey)},doneFn:function(){M(ve)||(_(ye),zt(Te),C(ye,ve,_e),b.call("_guiRelayout",ve,Pe.getUpdateObj()))},clickFn:function(){M(ve)||zt(Te)}};function vt(Rt){if(M(ve))Ne=null;else if(ht)Ne=Rt.target.tagName==="path"?"move":Rt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var it=mn.element.getBoundingClientRect(),at=it.right-it.left,Lt=it.bottom-it.top,xt=Rt.clientX-it.left,Ht=Rt.clientY-it.top,Xt=!pt&&at>je&&Lt>nt&&!Rt.shiftKey?v.getCursor(xt/at,1-Ht/Lt):"move";_(ye,Xt),Ne=Xt.split("-")[0]}}function bt(Rt,it){if(_e.type==="path"){var at=function(Ht){return Ht},Lt=at,xt=at;ot?wt("xanchor",_e.xanchor=nn(Ve+Rt)):(Lt=function(Ht){return nn(Ct(Ht)+Rt)},It&&It.type==="date"&&(Lt=A.encodeDate(Lt))),Ge?wt("yanchor",_e.yanchor=gn($e+it)):(xt=function(Ht){return gn(_t(Ht)+it)},en&&en.type==="date"&&(xt=A.encodeDate(xt))),wt("path",_e.path=L(Ee,Lt,xt))}else ot?wt("xanchor",_e.xanchor=nn(Ve+Rt)):(wt("x0",_e.x0=nn(Ie+Rt)),wt("x1",_e.x1=nn(De+Rt))),Ge?wt("yanchor",_e.yanchor=gn($e+it)):(wt("y0",_e.y0=gn(ze+it)),wt("y1",_e.y1=gn(He+it)));ye.attr("d",x(ve,_e)),yt(Te,_e),p(ve,Se,_e,Dt)}function lt(Rt,it){if(pt){var at=function(In){return In},Lt=at,xt=at;ot?wt("xanchor",_e.xanchor=nn(Ve+Rt)):(Lt=function(In){return nn(Ct(In)+Rt)},It&&It.type==="date"&&(Lt=A.encodeDate(Lt))),Ge?wt("yanchor",_e.yanchor=gn($e+it)):(xt=function(In){return gn(_t(In)+it)},en&&en.type==="date"&&(xt=A.encodeDate(xt))),wt("path",_e.path=L(Ee,Lt,xt))}else if(ht){if(Ne==="resize-over-start-point"){var Ht=Ie+Rt,Xt=Ge?ze-it:ze+it;wt("x0",_e.x0=ot?Ht:nn(Ht)),wt("y0",_e.y0=Ge?Xt:gn(Xt))}else if(Ne==="resize-over-end-point"){var Yt=De+Rt,Qt=Ge?He-it:He+it;wt("x1",_e.x1=ot?Yt:nn(Yt)),wt("y1",_e.y1=Ge?Qt:gn(Qt))}}else{var Pt=function(In){return Ne.indexOf(In)!==-1},tn=Pt("n"),Kt=Pt("s"),fn=Pt("w"),dn=Pt("e"),vn=tn?Oe+it:Oe,Nn=Kt?ke+it:ke,er=fn?Le+Rt:Le,En=dn?We+Rt:We;Ge&&(tn&&(vn=Oe-it),Kt&&(Nn=ke-it)),(!Ge&&Nn-vn>nt||Ge&&vn-Nn>nt)&&(wt(Ue,_e[Ue]=Ge?vn:gn(vn)),wt(Ze,_e[Ze]=Ge?Nn:gn(Nn))),En-er>je&&(wt(Xe,_e[Xe]=ot?er:nn(er)),wt(tt,_e[tt]=ot?En:nn(En)))}ye.attr("d",x(ve,_e)),yt(Te,_e),p(ve,Se,_e,Dt)}function yt(Rt,it){(ot||Ge)&&function(){var at=it.type!=="path",Lt=Rt.selectAll(".visual-cue").data([0]);Lt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var xt=Ct(ot?it.xanchor:i.midRange(at?[it.x0,it.x1]:A.extractPathCoords(it.path,S.paramIsX))),Ht=_t(Ge?it.yanchor:i.midRange(at?[it.y0,it.y1]:A.extractPathCoords(it.path,S.paramIsY)));if(xt=A.roundPositionForSharpStrokeRendering(xt,1),Ht=A.roundPositionForSharpStrokeRendering(Ht,1),ot&&Ge){var Xt="M"+(xt-1-1)+","+(Ht-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Lt.attr("d",Xt)}else if(ot){var Yt="M"+(xt-1-1)+","+(Ht-9-1)+"v18 h2 v-18 Z";Lt.attr("d",Yt)}else{var Qt="M"+(xt-9-1)+","+(Ht-1-1)+"h18 v2 h-18 Z";Lt.attr("d",Qt)}}()}function zt(Rt){Rt.selectAll(".visual-cue").remove()}v.init(mn),bn.node().onmousemove=vt}(k,ae,$,I,U,he):$.editable===!0&&ae.style("pointer-events",ee||u.opacity(K)*W<=.5?"stroke":"all");ae.node().addEventListener("click",function(){return function(ve,ye){if(T(ve)){var _e=+ye.node().getAttribute("data-index");if(_e>=0){if(_e===ve._fullLayout._activeShapeIndex)return void D(ve);ve._fullLayout._activeShapeIndex=_e,ve._fullLayout._deactivateShape=D,R(ve)}}}(k,ae)})}$._input&&$.visible===!0&&($.layer!=="below"?j(k._fullLayout._shapeUpperLayer):$.xref==="paper"||$.yref==="paper"?j(k._fullLayout._shapeLowerLayer):Q._hadPlotinfo?j((Q.mainplotinfo||Q).shapelayer):j(k._fullLayout._shapeLowerLayer))}function C(k,I,z){var $=(z.xref+z.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");h.setClipUrl(k,$?"clip"+I._fullLayout._uid+$:null,I)}function L(k,I,z){return k.replace(S.segmentRE,function($){var Q=0,j=$.charAt(0),U=S.paramIsX[j],X=S.paramIsY[j],te=S.numParams[j];return j+$.substr(1).replace(S.paramRE,function(W){return Q>=te||(U[Q]?W=I(W):X[Q]&&(W=z(W)),Q++),W})})}function D(k){T(k)&&k._fullLayout._activeShapeIndex>=0&&(a(k),delete k._fullLayout._activeShapeIndex,R(k))}d.exports={draw:R,drawOne:E,eraseActiveShape:function(k){if(T(k)){a(k);var I=k._fullLayout._activeShapeIndex,z=(k.layout||{}).shapes||[];if(I0&&Ese&&(ce="X"),ce});return Y>se&&(ae=ae.replace(/[\s,]*X.*/,""),b.log("Ignoring extra params in segment "+q)),ee+ae})}(w,p,u);if(w.xsizemode==="pixel"){var E=p(w.xanchor);h=E+w.x0,m=E+w.x1}else h=p(w.x0),m=p(w.x1);if(w.ysizemode==="pixel"){var C=u(w.yanchor);v=C-w.y0,_=C-w.y1}else v=u(w.y0),_=u(w.y1);if(S==="line")return"M"+h+","+v+"L"+m+","+_;if(S==="rect")return"M"+h+","+v+"H"+m+"V"+_+"H"+h+"Z";var L=(h+m)/2,D=(v+_)/2,k=Math.abs(L-h),I=Math.abs(D-v),z="A"+k+","+I,$=L+k+","+D;return"M"+$+z+" 0 1,1 "+L+","+(D-I)+z+" 0 0,1 "+$+"Z"}},41592:function(d,l,n){var c=n(4016);d.exports={moduleType:"component",name:"shapes",layoutAttributes:n(46056),supplyLayoutDefaults:n(43712),supplyDrawNewShapeDefaults:n(65144),includeBasePlot:n(36632)("shapes"),calcAutorange:n(96084),draw:c.draw,drawOne:c.drawOne}},97728:function(d){function l(i,O){return O?O.d2l(i):i}function n(i,O){return O?O.l2d(i):i}function c(i,O){return l(i.x1,O)-l(i.x0,O)}function b(i,O,w){return l(i.y1,w)-l(i.y0,w)}d.exports={x0:function(i){return i.x0},x1:function(i){return i.x1},y0:function(i){return i.y0},y1:function(i){return i.y1},slope:function(i,O,w){return i.type!=="line"?void 0:b(i,0,w)/c(i,O)},dx:c,dy:b,width:function(i,O){return Math.abs(c(i,O))},height:function(i,O,w){return Math.abs(b(i,0,w))},length:function(i,O,w){return i.type!=="line"?void 0:Math.sqrt(Math.pow(c(i,O),2)+Math.pow(b(i,0,w),2))},xcenter:function(i,O){return n((l(i.x1,O)+l(i.x0,O))/2,O)},ycenter:function(i,O,w){return n((l(i.y1,w)+l(i.y0,w))/2,w)}}},89861:function(d,l,n){var c=n(25376),b=n(66741),i=n(92880).extendDeepAll,O=n(67824).overrideAll,w=n(85656),y=n(31780).templatedArray,p=n(60876),a=y("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});d.exports=O(y("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:a,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(b({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:c({})},font:c({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},60876:function(d){d.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(d,l,n){var c=n(3400),b=n(51272),i=n(89861),O=n(60876).name,w=i.steps;function y(a,u,h){function m(x,R){return c.coerce(a,u,i,x,R)}for(var v=b(a,u,{name:"steps",handleItemDefaults:p}),_=0,S=0;S0&&(Y=Y.transition().duration(X.transition.duration).ease(X.transition.easing)),Y.attr("transform",y(q-.5*u.gripWidth,X._dims.currentValueTotalHeight))}}function z(U,X){var te=U._dims;return te.inputAreaStart+u.stepInset+(te.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,X))}function $(U,X){var te=U._dims;return Math.min(1,Math.max(0,(X-u.stepInset-te.inputAreaStart)/(te.inputAreaLength-2*u.stepInset-2*te.inputAreaStart)))}function Q(U,X,te){var W=te._dims,K=w.ensureSingle(U,"rect",u.railTouchRectClass,function(oe){oe.call(D,X,U,te).style("pointer-events","all")});K.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,u.tickOffset+te.ticklen+W.labelHeight)}).call(i.fill,te.bgcolor).attr("opacity",0),O.setTranslate(K,0,W.currentValueTotalHeight)}function j(U,X){var te=X._dims,W=te.inputAreaLength-2*u.railInset,K=w.ensureSingle(U,"rect",u.railRectClass);K.attr({width:W,height:u.railWidth,rx:u.railRadius,ry:u.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,X.bordercolor).call(i.fill,X.bgcolor).style("stroke-width",X.borderwidth+"px"),O.setTranslate(K,u.railInset,.5*(te.inputAreaWidth-u.railWidth)+te.currentValueTotalHeight)}d.exports=function(U){var X=U._context.staticPlot,te=U._fullLayout,W=function(me,he){for(var se=me[u.name],ae=[],ce=0;ce0?[0]:[]);function oe(me){me._commandObserver&&(me._commandObserver.remove(),delete me._commandObserver),b.autoMargin(U,S(me))}if(K.enter().append("g").classed(u.containerClassName,!0).style("cursor",X?null:"ew-resize"),K.exit().each(function(){c.select(this).selectAll("g."+u.groupClassName).each(oe)}).remove(),W.length!==0){var q=K.selectAll("g."+u.groupClassName).data(W,A);q.enter().append("g").classed(u.groupClassName,!0),q.exit().each(oe).remove();for(var Y=0;Y0||De<0){var Oe={left:[-He,0],right:[He,0],top:[0,-He],bottom:[0,He]}[C.side];ae.attr("transform",y(Oe[0],Oe[1]))}}}return Y.call(ee),K&&(j?Y.on(".opacity",null):(z=0,$=!0,Y.text(T).on("mouseover.opacity",function(){c.select(this).transition().duration(h.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){c.select(this).transition().duration(h.HIDE_PLACEHOLDER).style("opacity",0)})),Y.call(u.makeEditable,{gd:_}).on("edit",function(se){E!==void 0?O.call("_guiRestyle",_,M,se,E):O.call("_guiRelayout",_,M,se)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ee)}).on("input",function(se){this.text(se||" ").call(u.positionText,L.x,L.y)})),Y.classed("js-placeholder",$),k}}},88444:function(d,l,n){var c=n(25376),b=n(22548),i=n(92880).extendFlat,O=n(67824).overrideAll,w=n(66741),y=n(31780).templatedArray,p=y("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});d.exports=O(y("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(w({editType:"arraydraw"}),{}),font:c({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:b.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(d){d.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(d,l,n){var c=n(3400),b=n(51272),i=n(88444),O=n(73712).name,w=i.buttons;function y(a,u,h){function m(v,_){return c.coerce(a,u,i,v,_)}m("visible",b(a,u,{name:"buttons",handleItemDefaults:p}).length>0)&&(m("active"),m("direction"),m("type"),m("showactive"),m("x"),m("y"),c.noneOrAll(a,u,["x","y"]),m("xanchor"),m("yanchor"),m("pad.t"),m("pad.r"),m("pad.b"),m("pad.l"),c.coerceFont(m,"font",h.font),m("bgcolor",h.paper_bgcolor),m("bordercolor"),m("borderwidth"))}function p(a,u){function h(m,v){return c.coerce(a,u,w,m,v)}h("visible",a.method==="skip"||Array.isArray(a.args))&&(h("method"),h("args"),h("args2"),h("label"),h("execute"))}d.exports=function(a,u){b(a,u,{name:O,handleItemDefaults:y})}},14420:function(d,l,n){var c=n(33428),b=n(7316),i=n(76308),O=n(43616),w=n(3400),y=n(72736),p=n(31780).arrayEditor,a=n(84284).LINE_SPACING,u=n(73712),h=n(37400);function m(z){return z._index}function v(z,$){return+z.attr(u.menuIndexAttrName)===$._index}function _(z,$,Q,j,U,X,te,W){$.active=te,p(z.layout,u.name,$).applyUpdate("active",te),$.type==="buttons"?A(z,j,null,null,$):$.type==="dropdown"&&(U.attr(u.menuIndexAttrName,"-1"),S(z,j,U,X,$),W||A(z,j,U,X,$))}function S(z,$,Q,j,U){var X=w.ensureSingle($,"g",u.headerClassName,function(Y){Y.style("pointer-events","all")}),te=U._dims,W=U.active,K=U.buttons[W]||u.blankHeaderOpts,oe={y:U.pad.t,yPad:0,x:U.pad.l,xPad:0,index:0},q={width:te.headerWidth,height:te.headerHeight};X.call(x,U,K,z).call(k,U,oe,q),w.ensureSingle($,"text",u.headerArrowClassName,function(Y){Y.attr("text-anchor","end").call(O.font,U.font).text(u.arrowSymbol[U.direction])}).attr({x:te.headerWidth-u.arrowOffsetX+U.pad.l,y:te.headerHeight/2+u.textOffsetY+U.pad.t}),X.on("click",function(){Q.call(I,String(v(Q,U)?-1:U._index)),A(z,$,Q,j,U)}),X.on("mouseover",function(){X.call(E)}),X.on("mouseout",function(){X.call(C,U)}),O.setTranslate($,te.lx,te.ly)}function A(z,$,Q,j,U){Q||(Q=$).attr("pointer-events","all");var X=function(ae){return+ae.attr(u.menuIndexAttrName)==-1}(Q)&&U.type!=="buttons"?[]:U.buttons,te=U.type==="dropdown"?u.dropdownButtonClassName:u.buttonClassName,W=Q.selectAll("g."+te).data(w.filterVisible(X)),K=W.enter().append("g").classed(te,!0),oe=W.exit();U.type==="dropdown"?(K.attr("opacity","0").transition().attr("opacity","1"),oe.transition().attr("opacity","0").remove()):oe.remove();var q=0,Y=0,ee=U._dims,me=["up","down"].indexOf(U.direction)!==-1;U.type==="dropdown"&&(me?Y=ee.headerHeight+u.gapButtonHeader:q=ee.headerWidth+u.gapButtonHeader),U.type==="dropdown"&&U.direction==="up"&&(Y=-u.gapButtonHeader+u.gapButton-ee.openHeight),U.type==="dropdown"&&U.direction==="left"&&(q=-u.gapButtonHeader+u.gapButton-ee.openWidth);var he={x:ee.lx+q+U.pad.l,y:ee.ly+Y+U.pad.t,yPad:u.gapButton,xPad:u.gapButton,index:0},se={l:he.x+U.borderwidth,t:he.y+U.borderwidth};W.each(function(ae,ce){var de=c.select(this);de.call(x,U,ae,z).call(k,U,he),de.on("click",function(){c.event.defaultPrevented||(ae.execute&&(ae.args2&&U.active===ce?(_(z,U,0,$,Q,j,-1),b.executeAPICommand(z,ae.method,ae.args2)):(_(z,U,0,$,Q,j,ce),b.executeAPICommand(z,ae.method,ae.args))),z.emit("plotly_buttonclicked",{menu:U,button:ae,active:U.active}))}),de.on("mouseover",function(){de.call(E)}),de.on("mouseout",function(){de.call(C,U),W.call(T,U)})}),W.call(T,U),me?(se.w=Math.max(ee.openWidth,ee.headerWidth),se.h=he.y-se.t):(se.w=he.x-se.l,se.h=Math.max(ee.openHeight,ee.headerHeight)),se.direction=U.direction,j&&(W.size()?function(ae,ce,de,ve,ye,_e){var Se,Te,Pe,Ie=ye.direction,ze=Ie==="up"||Ie==="down",De=ye._dims,He=ye.active;if(ze)for(Te=0,Pe=0;Pe0?[0]:[]);if(U.enter().append("g").classed(u.containerClassName,!0).style("cursor","pointer"),U.exit().each(function(){c.select(this).selectAll("g."+u.headerGroupClassName).each(j)}).remove(),Q.length!==0){var X=U.selectAll("g."+u.headerGroupClassName).data(Q,m);X.enter().append("g").classed(u.headerGroupClassName,!0);for(var te=w.ensureSingle(U,"g",u.dropdownButtonGroupClassName,function(Y){Y.style("pointer-events","all")}),W=0;Wk,$=w.barLength+2*w.barPad,Q=w.barWidth+2*w.barPad,j=x,U=M+T;U+Q>m&&(U=m-Q);var X=this.container.selectAll("rect.scrollbar-horizontal").data(z?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(b.fill,w.barColor),z?(this.hbar=X.attr({rx:w.barRadius,ry:w.barRadius,x:j,y:U,width:$,height:Q}),this._hbarXMin=j+$/2,this._hbarTranslateMax=k-$):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var te=T>I,W=w.barWidth+2*w.barPad,K=w.barLength+2*w.barPad,oe=x+R,q=M;oe+W>h&&(oe=h-W);var Y=this.container.selectAll("rect.scrollbar-vertical").data(te?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(b.fill,w.barColor),te?(this.vbar=Y.attr({rx:w.barRadius,ry:w.barRadius,x:oe,y:q,width:W,height:K}),this._vbarYMin=q+K/2,this._vbarTranslateMax=I-K):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,me=v-.5,he=te?_+W+.5:_+.5,se=S-.5,ae=z?A+Q+.5:A+.5,ce=u._topdefs.selectAll("#"+ee).data(z||te?[0]:[]);if(ce.exit().remove(),ce.enter().append("clipPath").attr("id",ee).append("rect"),z||te?(this._clipRect=ce.select("rect").attr({x:Math.floor(me),y:Math.floor(se),width:Math.ceil(he)-Math.floor(me),height:Math.ceil(ae)-Math.floor(se)}),this.container.call(i.setClipUrl,ee,this.gd),this.bg.attr({x,y:M,width:R,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),z||te){var de=c.behavior.drag().on("dragstart",function(){c.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var ve=c.behavior.drag().on("dragstart",function(){c.event.sourceEvent.preventDefault(),c.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));z&&this.hbar.on(".drag",null).call(ve),te&&this.vbar.on(".drag",null).call(ve)}this.setTranslate(p,a)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var y=this.translateX,p=this.translateY;this.hbar&&(y-=c.event.dx),this.vbar&&(p-=c.event.dy),this.setTranslate(y,p)},w.prototype._onBoxWheel=function(){var y=this.translateX,p=this.translateY;this.hbar&&(y+=c.event.deltaY),this.vbar&&(p+=c.event.deltaY),this.setTranslate(y,p)},w.prototype._onBarDrag=function(){var y=this.translateX,p=this.translateY;if(this.hbar){var a=y+this._hbarXMin,u=a+this._hbarTranslateMax;y=(O.constrain(c.event.x,a,u)-a)/(u-a)*(this.position.w-this._box.w)}if(this.vbar){var h=p+this._vbarYMin,m=h+this._vbarTranslateMax;p=(O.constrain(c.event.y,h,m)-h)/(m-h)*(this.position.h-this._box.h)}this.setTranslate(y,p)},w.prototype.setTranslate=function(y,p){var a=this.position.w-this._box.w,u=this.position.h-this._box.h;if(y=O.constrain(y||0,0,a),p=O.constrain(p||0,0,u),this.translateX=y,this.translateY=p,this.container.call(i.setTranslate,this._box.l-this.position.l-y,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+y-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var h=y/a;this.hbar.call(i.setTranslate,y+h*this._hbarTranslateMax,p)}if(this.vbar){var m=p/u;this.vbar.call(i.setTranslate,y,p+m*this._vbarTranslateMax)}}},84284:function(d){d.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(d){d.exports={axisRefDescription:function(l,n,c){return["If set to a",l,"axis id (e.g. *"+l+"* or","*"+l+"2*), the `"+l+"` position refers to a",l,"coordinate. If set to *paper*, the `"+l+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+c+"). If set to a",l,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+l+"2 domain* refers to the domain of the second",l," axis and a",l,"position of 0.5 refers to the","point between the",n,"and the",c,"of the domain of the","second",l,"axis."].join(" ")}}},48164:function(d){d.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(d){d.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(d){d.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(d){d.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(d){d.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(d){d.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(d){d.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(d,l){l.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],l.STYLE=l.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},9616:function(d,l){l.xmlns="http://www.w3.org/2000/xmlns/",l.svg="http://www.w3.org/2000/svg",l.xlink="http://www.w3.org/1999/xlink",l.svgAttrs={xmlns:l.svg,"xmlns:xlink":l.xlink}},64884:function(d,l,n){l.version=n(25788).version,n(88324),n(79288);for(var c=n(24040),b=l.register=c.register,i=n(22448),O=Object.keys(i),w=0;w",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(d,l){l.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},l.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},l.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},l.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},l.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},l.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},11864:function(d,l,n){var c=n(20435),b=c.mod,i=c.modHalf,O=Math.PI,w=2*O;function y(h){return Math.abs(h[1]-h[0])>w-1e-14}function p(h,m){return i(m-h,w)}function a(h,m){if(y(m))return!0;var v,_;m[0](_=b(_,w))&&(_+=w);var S=b(h,w),A=S+w;return S>=v&&S<=_||A>=v&&A<=_}function u(h,m,v,_,S,A,x){S=S||0,A=A||0;var R,M,T,E,C,L=y([v,_]);function D($,Q){return[$*Math.cos(Q)+S,A-$*Math.sin(Q)]}L?(R=0,M=O,T=w):v<_?(R=v,T=_):(R=_,T=v),h=S&&h<=A);var S,A},pathArc:function(h,m,v,_,S){return u(null,h,m,v,_,S,0)},pathSector:function(h,m,v,_,S){return u(null,h,m,v,_,S,1)},pathAnnulus:function(h,m,v,_,S,A){return u(h,m,v,_,S,A,1)}}},38116:function(d,l,n){var c=n(83160).decode,b=n(63620),i=Array.isArray,O=ArrayBuffer,w=DataView;function y(m){return O.isView(m)&&!(m instanceof w)}function p(m){return i(m)||y(m)}l.isTypedArray=y,l.isArrayOrTypedArray=p,l.isArray1D=function(m){return!p(m[0])},l.ensureArray=function(m,v){return i(m)||(m=[]),m.length=v,m};var a={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};function u(m){return m.constructor===ArrayBuffer}function h(m,v,_){if(p(m)){if(p(m[0])){for(var S=_,A=0;AR.max?A.set(x):A.set(+S)}},integer:{coerceFunction:function(S,A,x,R){S%1||!c(S)||R.min!==void 0&&SR.max?A.set(x):A.set(+S)}},string:{coerceFunction:function(S,A,x,R){if(typeof S!="string"){var M=typeof S=="number";R.strict!==!0&&M?A.set(String(S)):A.set(x)}else R.noBlank&&!S?A.set(x):A.set(S)}},color:{coerceFunction:function(S,A,x){b(S).isValid()?A.set(S):A.set(x)}},colorlist:{coerceFunction:function(S,A,x){Array.isArray(S)&&S.length&&S.every(function(R){return b(R).isValid()})?A.set(S):A.set(x)}},colorscale:{coerceFunction:function(S,A,x){A.set(O.get(S,x))}},angle:{coerceFunction:function(S,A,x){S==="auto"?A.set("auto"):c(S)?A.set(u(+S,360)):A.set(x)}},subplotid:{coerceFunction:function(S,A,x,R){var M=R.regex||a(x);typeof S=="string"&&M.test(S)?A.set(S):A.set(x)},validateFunction:function(S,A){var x=A.dflt;return S===x||typeof S=="string"&&!!a(x).test(S)}},flaglist:{coerceFunction:function(S,A,x,R){if((R.extras||[]).indexOf(S)===-1)if(typeof S=="string"){for(var M=S.split("+"),T=0;T=c&&X<=b?X:a}if(typeof X!="string"&&typeof X!="number")return a;X=String(X);var q=T(te),Y=X.charAt(0);!q||Y!=="G"&&Y!=="g"||(X=X.substr(1),te="");var ee=q&&te.substr(0,7)==="chinese",me=X.match(ee?R:x);if(!me)return a;var he=me[1],se=me[3]||"1",ae=Number(me[5]||1),ce=Number(me[7]||0),de=Number(me[9]||0),ve=Number(me[11]||0);if(q){if(he.length===2)return a;var ye;he=Number(he);try{var _e=S.getComponentMethod("calendars","getCal")(te);if(ee){var Se=se.charAt(se.length-1)==="i";se=parseInt(se,10),ye=_e.newDate(he,_e.toMonthIndex(he,se,Se),ae)}else ye=_e.newDate(he,Number(se),ae)}catch{return a}return ye?(ye.toJD()-_)*u+ce*h+de*m+ve*v:a}he=he.length===2?(Number(he)+2e3-M)%100+M:Number(he),se-=1;var Te=new Date(Date.UTC(2e3,se,ae,ce,de));return Te.setUTCFullYear(he),Te.getUTCMonth()!==se||Te.getUTCDate()!==ae?a:Te.getTime()+ve*v},c=l.MIN_MS=l.dateTime2ms("-9999"),b=l.MAX_MS=l.dateTime2ms("9999-12-31 23:59:59.9999"),l.isDateTime=function(X,te){return l.dateTime2ms(X,te)!==a};var C=90*u,L=3*h,D=5*m;function k(X,te,W,K,oe){if((te||W||K||oe)&&(X+=" "+E(te,2)+":"+E(W,2),(K||oe)&&(X+=":"+E(K,2),oe))){for(var q=4;oe%10==0;)q-=1,oe/=10;X+="."+E(oe,q)}return X}l.ms2DateTime=function(X,te,W){if(typeof X!="number"||!(X>=c&&X<=b))return a;te||(te=0);var K,oe,q,Y,ee,me,he=Math.floor(10*y(X+.05,1)),se=Math.round(X-he/10);if(T(W)){var ae=Math.floor(se/u)+_,ce=Math.floor(y(X,u));try{K=S.getComponentMethod("calendars","getCal")(W).fromJD(ae).formatDate("yyyy-mm-dd")}catch{K=A("G%Y-%m-%d")(new Date(se))}if(K.charAt(0)==="-")for(;K.length<11;)K="-0"+K.substr(1);else for(;K.length<10;)K="0"+K;oe=te=c+u&&X<=b-u))return a;var te=Math.floor(10*y(X+.05,1)),W=new Date(Math.round(X-te/10));return k(i("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+te)},l.cleanDate=function(X,te,W){if(X===a)return te;if(l.isJSDate(X)||typeof X=="number"&&isFinite(X)){if(T(W))return w.error("JS Dates and milliseconds are incompatible with world calendars",X),te;if(!(X=l.ms2DateTimeLocal(+X))&&te!==void 0)return te}else if(!l.isDateTime(X,W))return w.error("unrecognized date",X),te;return X};var I=/%\d?f/g,z=/%h/g,$={1:"1",2:"1",3:"2",4:"2"};function Q(X,te,W,K){X=X.replace(I,function(q){var Y=Math.min(+q.charAt(1)||6,6);return(te/1e3%1+2).toFixed(Y).substr(2).replace(/0+$/,"")||"0"});var oe=new Date(Math.floor(te+.05));if(X=X.replace(z,function(){return $[W("%q")(oe)]}),T(K))try{X=S.getComponentMethod("calendars","worldCalFmt")(X,te,K)}catch{return"Invalid"}return W(X)(oe)}var j=[59,59.9,59.99,59.999,59.9999];l.formatDate=function(X,te,W,K,oe,q){if(oe=T(oe)&&oe,!te)if(W==="y")te=q.year;else if(W==="m")te=q.month;else{if(W!=="d")return function(Y,ee){var me=y(Y+.05,u),he=E(Math.floor(me/h),2)+":"+E(y(Math.floor(me/m),60),2);if(ee!=="M"){O(ee)||(ee=0);var se=(100+Math.min(y(Y/v,60),j[ee])).toFixed(ee).substr(1);ee>0&&(se=se.replace(/0+$/,"").replace(/[\.]$/,"")),he+=":"+se}return he}(X,W)+` + */const zA=typeof window<"u";function U5e(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const $u=Object.assign;function aie(t,e){const o={};for(const f in e){const P=e[f];o[f]=bx(P)?P.map(t):t(P)}return o}const aI=()=>{},bx=Array.isArray,j5e=/\/$/,Q5e=t=>t.replace(j5e,"");function sie(t,e,o="/"){let f,P={},d="",l="";const n=e.indexOf("#");let c=e.indexOf("?");return n=0&&(c=-1),c>-1&&(f=e.slice(0,c),d=e.slice(c+1,n>-1?n:e.length),P=t(d)),n>-1&&(f=f||e.slice(0,n),l=e.slice(n,e.length)),f=W5e(f??e,o),{fullPath:f+(d&&"?")+d+l,path:f,query:P,hash:l}}function H5e(t,e){const o=e.query?t(e.query):"";return e.path+(o&&"?")+o+(e.hash||"")}function nhe(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Z5e(t,e,o){const f=e.matched.length-1,P=o.matched.length-1;return f>-1&&f===P&&lM(e.matched[f],o.matched[P])&&fve(e.params,o.params)&&t(e.query)===t(o.query)&&e.hash===o.hash}function lM(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function fve(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const o in t)if(!q5e(t[o],e[o]))return!1;return!0}function q5e(t,e){return bx(t)?rhe(t,e):bx(e)?rhe(e,t):t===e}function rhe(t,e){return bx(e)?t.length===e.length&&t.every((o,f)=>o===e[f]):t.length===1&&t[0]===e}function W5e(t,e){if(t.startsWith("/"))return t;if(!t)return e;const o=e.split("/"),f=t.split("/"),P=f[f.length-1];(P===".."||P===".")&&f.push("");let d=o.length-1,l,n;for(l=0;l1&&d--;else break;return o.slice(0,d).join("/")+"/"+f.slice(l-(l===f.length?1:0)).join("/")}var AI;(function(t){t.pop="pop",t.push="push"})(AI||(AI={}));var sI;(function(t){t.back="back",t.forward="forward",t.unknown=""})(sI||(sI={}));function Y5e(t){if(!t)if(zA){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Q5e(t)}const X5e=/^[^#]+#/;function G5e(t,e){return t.replace(X5e,"#")+e}function K5e(t,e){const o=document.documentElement.getBoundingClientRect(),f=t.getBoundingClientRect();return{behavior:e.behavior,left:f.left-o.left-(e.left||0),top:f.top-o.top-(e.top||0)}}const qZ=()=>({left:window.pageXOffset,top:window.pageYOffset});function J5e(t){let e;if("el"in t){const o=t.el,f=typeof o=="string"&&o.startsWith("#"),P=typeof o=="string"?f?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!P)return;e=K5e(P,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function ohe(t,e){return(history.state?history.state.position-e:-1)+t}const Mae=new Map;function eke(t,e){Mae.set(t,e)}function tke(t){const e=Mae.get(t);return Mae.delete(t),e}let nke=()=>location.protocol+"//"+location.host;function dve(t,e){const{pathname:o,search:f,hash:P}=e,d=t.indexOf("#");if(d>-1){let n=P.includes(t.slice(d))?t.slice(d).length:1,c=P.slice(n);return c[0]!=="/"&&(c="/"+c),nhe(c,"")}return nhe(o,t)+f+P}function rke(t,e,o,f){let P=[],d=[],l=null;const n=({state:w})=>{const y=dve(t,location),p=o.value,a=e.value;let u=0;if(w){if(o.value=y,e.value=w,l&&l===p){l=null;return}u=a?w.position-a.position:0}else f(y);P.forEach(h=>{h(o.value,p,{delta:u,type:AI.pop,direction:u?u>0?sI.forward:sI.back:sI.unknown})})};function c(){l=o.value}function b(w){P.push(w);const y=()=>{const p=P.indexOf(w);p>-1&&P.splice(p,1)};return d.push(y),y}function i(){const{history:w}=window;w.state&&w.replaceState($u({},w.state,{scroll:qZ()}),"")}function O(){for(const w of d)w();d=[],window.removeEventListener("popstate",n),window.removeEventListener("beforeunload",i)}return window.addEventListener("popstate",n),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:c,listen:b,destroy:O}}function ihe(t,e,o,f=!1,P=!1){return{back:t,current:e,forward:o,replaced:f,position:window.history.length,scroll:P?qZ():null}}function oke(t){const{history:e,location:o}=window,f={value:dve(t,o)},P={value:e.state};P.value||d(f.value,{back:null,current:f.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function d(c,b,i){const O=t.indexOf("#"),w=O>-1?(o.host&&document.querySelector("base")?t:t.slice(O))+c:nke()+t+c;try{e[i?"replaceState":"pushState"](b,"",w),P.value=b}catch(y){console.error(y),o[i?"replace":"assign"](w)}}function l(c,b){const i=$u({},e.state,ihe(P.value.back,c,P.value.forward,!0),b,{position:P.value.position});d(c,i,!0),f.value=c}function n(c,b){const i=$u({},P.value,e.state,{forward:c,scroll:qZ()});d(i.current,i,!0);const O=$u({},ihe(f.value,c,null),{position:i.position+1},b);d(c,O,!1),f.value=c}return{location:f,state:P,push:n,replace:l}}function ike(t){t=Y5e(t);const e=oke(t),o=rke(t,e.state,e.location,e.replace);function f(d,l=!0){l||o.pauseListeners(),history.go(d)}const P=$u({location:"",base:t,go:f,createHref:G5e.bind(null,t)},e,o);return Object.defineProperty(P,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(P,"state",{enumerable:!0,get:()=>e.state.value}),P}function ake(t){return typeof t=="string"||t&&typeof t=="object"}function hve(t){return typeof t=="string"||typeof t=="symbol"}const z4={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},pve=Symbol("");var ahe;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(ahe||(ahe={}));function cM(t,e){return $u(new Error,{type:t,[pve]:!0},e)}function yO(t,e){return t instanceof Error&&pve in t&&(e==null||!!(t.type&e))}const she="[^/]+?",ske={sensitive:!1,strict:!1,start:!0,end:!0},lke=/[.+*?^${}()[\]/\\]/g;function cke(t,e){const o=$u({},ske,e),f=[];let P=o.start?"^":"";const d=[];for(const b of t){const i=b.length?[]:[90];o.strict&&!b.length&&(P+="/");for(let O=0;Oe.length?e.length===1&&e[0]===40+40?1:-1:0}function fke(t,e){let o=0;const f=t.score,P=e.score;for(;o0&&e[e.length-1]<0}const dke={type:0,value:""},hke=/[a-zA-Z0-9_]/;function pke(t){if(!t)return[[]];if(t==="/")return[[dke]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(y){throw new Error(`ERR (${o})/"${b}": ${y}`)}let o=0,f=o;const P=[];let d;function l(){d&&P.push(d),d=[]}let n=0,c,b="",i="";function O(){b&&(o===0?d.push({type:0,value:b}):o===1||o===2||o===3?(d.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${b}) must be alone in its segment. eg: '/:ids+.`),d.push({type:1,value:b,regexp:i,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),b="")}function w(){b+=c}for(;n{l(m)}:aI}function l(i){if(hve(i)){const O=f.get(i);O&&(f.delete(i),o.splice(o.indexOf(O),1),O.children.forEach(l),O.alias.forEach(l))}else{const O=o.indexOf(i);O>-1&&(o.splice(O,1),i.record.name&&f.delete(i.record.name),i.children.forEach(l),i.alias.forEach(l))}}function n(){return o}function c(i){let O=0;for(;O=0&&(i.record.path!==o[O].record.path||!mve(i,o[O]));)O++;o.splice(O,0,i),i.record.name&&!uhe(i)&&f.set(i.record.name,i)}function b(i,O){let w,y={},p,a;if("name"in i&&i.name){if(w=f.get(i.name),!w)throw cM(1,{location:i});a=w.record.name,y=$u(che(O.params,w.keys.filter(m=>!m.optional).map(m=>m.name)),i.params&&che(i.params,w.keys.map(m=>m.name))),p=w.stringify(y)}else if("path"in i)p=i.path,w=o.find(m=>m.re.test(p)),w&&(y=w.parse(p),a=w.record.name);else{if(w=O.name?f.get(O.name):o.find(m=>m.re.test(O.path)),!w)throw cM(1,{location:i,currentLocation:O});a=w.record.name,y=$u({},O.params,i.params),p=w.stringify(y)}const u=[];let h=w;for(;h;)u.unshift(h.record),h=h.parent;return{name:a,path:p,params:y,matched:u,meta:bke(u)}}return t.forEach(i=>d(i)),{addRoute:d,resolve:b,removeRoute:l,getRoutes:n,getRecordMatcher:P}}function che(t,e){const o={};for(const f of e)f in t&&(o[f]=t[f]);return o}function vke(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:yke(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function yke(t){const e={},o=t.props||!1;if("component"in t)e.default=o;else for(const f in t.components)e[f]=typeof o=="object"?o[f]:o;return e}function uhe(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function bke(t){return t.reduce((e,o)=>$u(e,o.meta),{})}function fhe(t,e){const o={};for(const f in t)o[f]=f in e?e[f]:t[f];return o}function mve(t,e){return e.children.some(o=>o===t||mve(t,o))}const gve=/#/g,xke=/&/g,_ke=/\//g,wke=/=/g,Oke=/\?/g,vve=/\+/g,Ske=/%5B/g,kke=/%5D/g,yve=/%5E/g,Tke=/%60/g,bve=/%7B/g,Cke=/%7C/g,xve=/%7D/g,Ake=/%20/g;function Yle(t){return encodeURI(""+t).replace(Cke,"|").replace(Ske,"[").replace(kke,"]")}function Mke(t){return Yle(t).replace(bve,"{").replace(xve,"}").replace(yve,"^")}function Eae(t){return Yle(t).replace(vve,"%2B").replace(Ake,"+").replace(gve,"%23").replace(xke,"%26").replace(Tke,"`").replace(bve,"{").replace(xve,"}").replace(yve,"^")}function Eke(t){return Eae(t).replace(wke,"%3D")}function Pke(t){return Yle(t).replace(gve,"%23").replace(Oke,"%3F")}function Rke(t){return t==null?"":Pke(t).replace(_ke,"%2F")}function BH(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function Lke(t){const e={};if(t===""||t==="?")return e;const f=(t[0]==="?"?t.slice(1):t).split("&");for(let P=0;Pd&&Eae(d)):[f&&Eae(f)]).forEach(d=>{d!==void 0&&(e+=(e.length?"&":"")+o,d!=null&&(e+="="+d))})}return e}function Ike(t){const e={};for(const o in t){const f=t[o];f!==void 0&&(e[o]=bx(f)?f.map(P=>P==null?null:""+P):f==null?f:""+f)}return e}const Dke=Symbol(""),hhe=Symbol(""),Xle=Symbol(""),Gle=Symbol(""),Pae=Symbol("");function LL(){let t=[];function e(f){return t.push(f),()=>{const P=t.indexOf(f);P>-1&&t.splice(P,1)}}function o(){t=[]}return{add:e,list:()=>t.slice(),reset:o}}function U4(t,e,o,f,P){const d=f&&(f.enterCallbacks[P]=f.enterCallbacks[P]||[]);return()=>new Promise((l,n)=>{const c=O=>{O===!1?n(cM(4,{from:o,to:e})):O instanceof Error?n(O):ake(O)?n(cM(2,{from:e,to:O})):(d&&f.enterCallbacks[P]===d&&typeof O=="function"&&d.push(O),l())},b=t.call(f&&f.instances[P],e,o,c);let i=Promise.resolve(b);t.length<3&&(i=i.then(c)),i.catch(O=>n(O))})}function lie(t,e,o,f){const P=[];for(const d of t)for(const l in d.components){let n=d.components[l];if(!(e!=="beforeRouteEnter"&&!d.instances[l]))if(Bke(n)){const b=(n.__vccOpts||n)[e];b&&P.push(U4(b,o,f,d,l))}else{let c=n();P.push(()=>c.then(b=>{if(!b)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${d.path}"`));const i=U5e(b)?b.default:b;d.components[l]=i;const w=(i.__vccOpts||i)[e];return w&&U4(w,o,f,d,l)()}))}}return P}function Bke(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function phe(t){const e=yl(Xle),o=yl(Gle),f=Un(()=>e.resolve(wa(t.to))),P=Un(()=>{const{matched:c}=f.value,{length:b}=c,i=c[b-1],O=o.matched;if(!i||!O.length)return-1;const w=O.findIndex(lM.bind(null,i));if(w>-1)return w;const y=mhe(c[b-2]);return b>1&&mhe(i)===y&&O[O.length-1].path!==y?O.findIndex(lM.bind(null,c[b-2])):w}),d=Un(()=>P.value>-1&&$ke(o.params,f.value.params)),l=Un(()=>P.value>-1&&P.value===o.matched.length-1&&fve(o.params,f.value.params));function n(c={}){return Nke(c)?e[wa(t.replace)?"replace":"push"](wa(t.to)).catch(aI):Promise.resolve()}return{route:f,href:Un(()=>f.value.href),isActive:d,isExactActive:l,navigate:n}}const zke=Hg({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:phe,setup(t,{slots:e}){const o=lm(phe(t)),{options:f}=yl(Xle),P=Un(()=>({[ghe(t.activeClass,f.linkActiveClass,"router-link-active")]:o.isActive,[ghe(t.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const d=e.default&&e.default(o);return t.custom?d:w1("a",{"aria-current":o.isExactActive?t.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:P.value},d)}}}),Fke=zke;function Nke(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function $ke(t,e){for(const o in e){const f=e[o],P=t[o];if(typeof f=="string"){if(f!==P)return!1}else if(!bx(P)||P.length!==f.length||f.some((d,l)=>d!==P[l]))return!1}return!0}function mhe(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const ghe=(t,e,o)=>t??e??o,Vke=Hg({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:o}){const f=yl(Pae),P=Un(()=>t.route||f.value),d=yl(hhe,0),l=Un(()=>{let b=wa(d);const{matched:i}=P.value;let O;for(;(O=i[b])&&!O.components;)b++;return b}),n=Un(()=>P.value.matched[l.value]);gf(hhe,Un(()=>l.value+1)),gf(Dke,n),gf(Pae,P);const c=ti();return Ni(()=>[c.value,n.value,t.name],([b,i,O],[w,y,p])=>{i&&(i.instances[O]=b,y&&y!==i&&b&&b===w&&(i.leaveGuards.size||(i.leaveGuards=y.leaveGuards),i.updateGuards.size||(i.updateGuards=y.updateGuards))),b&&i&&(!y||!lM(i,y)||!w)&&(i.enterCallbacks[O]||[]).forEach(a=>a(b))},{flush:"post"}),()=>{const b=P.value,i=t.name,O=n.value,w=O&&O.components[i];if(!w)return vhe(o.default,{Component:w,route:b});const y=O.props[i],p=y?y===!0?b.params:typeof y=="function"?y(b):y:null,u=w1(w,$u({},p,e,{onVnodeUnmounted:h=>{h.component.isUnmounted&&(O.instances[i]=null)},ref:c}));return vhe(o.default,{Component:u,route:b})||u}}});function vhe(t,e){if(!t)return null;const o=t(e);return o.length===1?o[0]:o}const Uke=Vke;function jke(t){const e=gke(t.routes,t),o=t.parseQuery||Lke,f=t.stringifyQuery||dhe,P=t.history,d=LL(),l=LL(),n=LL(),c=Ai(z4);let b=z4;zA&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const i=aie.bind(null,q=>""+q),O=aie.bind(null,Rke),w=aie.bind(null,BH);function y(q,Y){let ee,me;return hve(q)?(ee=e.getRecordMatcher(q),me=Y):me=q,e.addRoute(me,ee)}function p(q){const Y=e.getRecordMatcher(q);Y&&e.removeRoute(Y)}function a(){return e.getRoutes().map(q=>q.record)}function u(q){return!!e.getRecordMatcher(q)}function h(q,Y){if(Y=$u({},Y||c.value),typeof q=="string"){const ce=sie(o,q,Y.path),de=e.resolve({path:ce.path},Y),ve=P.createHref(ce.fullPath);return $u(ce,de,{params:w(de.params),hash:BH(ce.hash),redirectedFrom:void 0,href:ve})}let ee;if("path"in q)ee=$u({},q,{path:sie(o,q.path,Y.path).path});else{const ce=$u({},q.params);for(const de in ce)ce[de]==null&&delete ce[de];ee=$u({},q,{params:O(ce)}),Y.params=O(Y.params)}const me=e.resolve(ee,Y),he=q.hash||"";me.params=i(w(me.params));const se=H5e(f,$u({},q,{hash:Mke(he),path:me.path})),ae=P.createHref(se);return $u({fullPath:se,hash:he,query:f===dhe?Ike(q.query):q.query||{}},me,{redirectedFrom:void 0,href:ae})}function m(q){return typeof q=="string"?sie(o,q,c.value.path):$u({},q)}function v(q,Y){if(b!==q)return cM(8,{from:Y,to:q})}function _(q){return x(q)}function S(q){return _($u(m(q),{replace:!0}))}function A(q){const Y=q.matched[q.matched.length-1];if(Y&&Y.redirect){const{redirect:ee}=Y;let me=typeof ee=="function"?ee(q):ee;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=m(me):{path:me},me.params={}),$u({query:q.query,hash:q.hash,params:"path"in me?{}:q.params},me)}}function x(q,Y){const ee=b=h(q),me=c.value,he=q.state,se=q.force,ae=q.replace===!0,ce=A(ee);if(ce)return x($u(m(ce),{state:typeof ce=="object"?$u({},he,ce.state):he,force:se,replace:ae}),Y||ee);const de=ee;de.redirectedFrom=Y;let ve;return!se&&Z5e(f,me,ee)&&(ve=cM(16,{to:de,from:me}),U(me,me,!0,!1)),(ve?Promise.resolve(ve):T(de,me)).catch(ye=>yO(ye)?yO(ye,2)?ye:j(ye):$(ye,de,me)).then(ye=>{if(ye){if(yO(ye,2))return x($u({replace:ae},m(ye.to),{state:typeof ye.to=="object"?$u({},he,ye.to.state):he,force:se}),Y||de)}else ye=C(de,me,!0,ae,he);return E(de,me,ye),ye})}function R(q,Y){const ee=v(q,Y);return ee?Promise.reject(ee):Promise.resolve()}function M(q){const Y=W.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(q):q()}function T(q,Y){let ee;const[me,he,se]=Qke(q,Y);ee=lie(me.reverse(),"beforeRouteLeave",q,Y);for(const ce of me)ce.leaveGuards.forEach(de=>{ee.push(U4(de,q,Y))});const ae=R.bind(null,q,Y);return ee.push(ae),oe(ee).then(()=>{ee=[];for(const ce of d.list())ee.push(U4(ce,q,Y));return ee.push(ae),oe(ee)}).then(()=>{ee=lie(he,"beforeRouteUpdate",q,Y);for(const ce of he)ce.updateGuards.forEach(de=>{ee.push(U4(de,q,Y))});return ee.push(ae),oe(ee)}).then(()=>{ee=[];for(const ce of se)if(ce.beforeEnter)if(bx(ce.beforeEnter))for(const de of ce.beforeEnter)ee.push(U4(de,q,Y));else ee.push(U4(ce.beforeEnter,q,Y));return ee.push(ae),oe(ee)}).then(()=>(q.matched.forEach(ce=>ce.enterCallbacks={}),ee=lie(se,"beforeRouteEnter",q,Y),ee.push(ae),oe(ee))).then(()=>{ee=[];for(const ce of l.list())ee.push(U4(ce,q,Y));return ee.push(ae),oe(ee)}).catch(ce=>yO(ce,8)?ce:Promise.reject(ce))}function E(q,Y,ee){n.list().forEach(me=>M(()=>me(q,Y,ee)))}function C(q,Y,ee,me,he){const se=v(q,Y);if(se)return se;const ae=Y===z4,ce=zA?history.state:{};ee&&(me||ae?P.replace(q.fullPath,$u({scroll:ae&&ce&&ce.scroll},he)):P.push(q.fullPath,he)),c.value=q,U(q,Y,ee,ae),j()}let L;function D(){L||(L=P.listen((q,Y,ee)=>{if(!K.listening)return;const me=h(q),he=A(me);if(he){x($u(he,{replace:!0}),me).catch(aI);return}b=me;const se=c.value;zA&&eke(ohe(se.fullPath,ee.delta),qZ()),T(me,se).catch(ae=>yO(ae,12)?ae:yO(ae,2)?(x(ae.to,me).then(ce=>{yO(ce,20)&&!ee.delta&&ee.type===AI.pop&&P.go(-1,!1)}).catch(aI),Promise.reject()):(ee.delta&&P.go(-ee.delta,!1),$(ae,me,se))).then(ae=>{ae=ae||C(me,se,!1),ae&&(ee.delta&&!yO(ae,8)?P.go(-ee.delta,!1):ee.type===AI.pop&&yO(ae,20)&&P.go(-1,!1)),E(me,se,ae)}).catch(aI)}))}let k=LL(),I=LL(),z;function $(q,Y,ee){j(q);const me=I.list();return me.length?me.forEach(he=>he(q,Y,ee)):console.error(q),Promise.reject(q)}function Q(){return z&&c.value!==z4?Promise.resolve():new Promise((q,Y)=>{k.add([q,Y])})}function j(q){return z||(z=!q,D(),k.list().forEach(([Y,ee])=>q?ee(q):Y()),k.reset()),q}function U(q,Y,ee,me){const{scrollBehavior:he}=t;if(!zA||!he)return Promise.resolve();const se=!ee&&tke(ohe(q.fullPath,0))||(me||!ee)&&history.state&&history.state.scroll||null;return lc().then(()=>he(q,Y,se)).then(ae=>ae&&J5e(ae)).catch(ae=>$(ae,q,Y))}const X=q=>P.go(q);let te;const W=new Set,K={currentRoute:c,listening:!0,addRoute:y,removeRoute:p,hasRoute:u,getRoutes:a,resolve:h,options:t,push:_,replace:S,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:d.add,beforeResolve:l.add,afterEach:n.add,onError:I.add,isReady:Q,install(q){const Y=this;q.component("RouterLink",Fke),q.component("RouterView",Uke),q.config.globalProperties.$router=Y,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>wa(c)}),zA&&!te&&c.value===z4&&(te=!0,_(P.location).catch(he=>{}));const ee={};for(const he in z4)Object.defineProperty(ee,he,{get:()=>c.value[he],enumerable:!0});q.provide(Xle,Y),q.provide(Gle,w1e(ee)),q.provide(Pae,c);const me=q.unmount;W.add(q),q.unmount=function(){W.delete(q),W.size<1&&(b=z4,L&&L(),L=null,c.value=z4,te=!1,z=!1),me()}}};function oe(q){return q.reduce((Y,ee)=>Y.then(()=>M(ee)),Promise.resolve())}return K}function Qke(t,e){const o=[],f=[],P=[],d=Math.max(e.matched.length,t.matched.length);for(let l=0;llM(b,n))?f.push(n):o.push(n));const c=t.matched[l];c&&(e.matched.find(b=>lM(b,c))||P.push(c))}return[o,f,P]}function _T(){return yl(Gle)}function Hke(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _ve={exports:{}};(function(t,e){/*! For license information please see plotly.min.js.LICENSE.txt */(function(o,f){t.exports=f()})(self,function(){return function(){var o={79288:function(d,l,n){var c=n(3400),b={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in b){var O=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");c.addStyleRule(O,b[i])}},86712:function(d,l,n){d.exports=n(84224)},37240:function(d,l,n){d.exports=n(51132)},29744:function(d,l,n){d.exports=n(94456)},29352:function(d,l,n){d.exports=n(67244)},96144:function(d,l,n){d.exports=n(97776)},53219:function(d,l,n){d.exports=n(61712)},4624:function(d,l,n){d.exports=n(95856)},54543:function(d,l,n){d.exports=n(54272)},45e3:function(d,l,n){d.exports=n(85404)},62300:function(d,l,n){d.exports=n(26048)},6920:function(d,l,n){d.exports=n(66240)},10264:function(d,l,n){d.exports=n(40448)},32016:function(d,l,n){d.exports=n(64884)},27528:function(d,l,n){d.exports=n(15088)},75556:function(d,l,n){d.exports=n(76744)},39204:function(d,l,n){d.exports=n(94704)},73996:function(d,l,n){d.exports=n(62396)},16489:function(d,l,n){d.exports=n(32028)},5e3:function(d,l,n){d.exports=n(81932)},77280:function(d,l,n){d.exports=n(45536)},33992:function(d,l,n){d.exports=n(42600)},17600:function(d,l,n){d.exports=n(21536)},49116:function(d,l,n){d.exports=n(65664)},46808:function(d,l,n){d.exports=n(29044)},36168:function(d,l,n){d.exports=n(48928)},13792:function(d,l,n){var c=n(32016);c.register([n(37240),n(29352),n(5e3),n(33992),n(17600),n(49116),n(6920),n(67484),n(79440),n(39204),n(83096),n(36168),n(20260),n(63560),n(65832),n(46808),n(73996),n(48824),n(89904),n(25120),n(13752),n(4340),n(62300),n(29800),n(8363),n(54543),n(86636),n(42192),n(32140),n(77280),n(89296),n(56816),n(70192),n(45e3),n(27528),n(84764),n(3920),n(50248),n(4624),n(69967),n(10264),n(86152),n(53219),n(81604),n(63796),n(29744),n(89336),n(86712),n(75556),n(16489),n(97312),n(96144)]),d.exports=c},3920:function(d,l,n){d.exports=n(43480)},25120:function(d,l,n){d.exports=n(6296)},4340:function(d,l,n){d.exports=n(7404)},86152:function(d,l,n){d.exports=n(65456)},56816:function(d,l,n){d.exports=n(22020)},89296:function(d,l,n){d.exports=n(29928)},20260:function(d,l,n){d.exports=n(75792)},32140:function(d,l,n){d.exports=n(156)},84764:function(d,l,n){d.exports=n(45499)},48824:function(d,l,n){d.exports=n(3296)},69967:function(d,l,n){d.exports=n(4184)},8363:function(d,l,n){d.exports=n(36952)},86636:function(d,l,n){d.exports=n(38983)},70192:function(d,l,n){d.exports=n(11572)},81604:function(d,l,n){d.exports=n(76924)},63796:function(d,l,n){d.exports=n(62944)},89336:function(d,l,n){d.exports=n(95443)},67484:function(d,l,n){d.exports=n(34864)},97312:function(d,l,n){d.exports=n(76272)},42192:function(d,l,n){d.exports=n(97924)},29800:function(d,l,n){d.exports=n(15436)},63560:function(d,l,n){d.exports=n(5621)},89904:function(d,l,n){d.exports=n(91304)},50248:function(d,l,n){d.exports=n(41724)},65832:function(d,l,n){d.exports=n(31991)},79440:function(d,l,n){d.exports=n(22869)},13752:function(d,l,n){d.exports=n(67776)},83096:function(d,l,n){d.exports=n(95952)},72196:function(d){d.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(d,l,n){var c=n(72196),b=n(25376),i=n(33816),O=n(31780).templatedArray;n(36208),d.exports=O("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:c.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:c.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:b({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(d,l,n){var c=n(3400),b=n(54460),i=n(23816).draw;function O(y){var p=y._fullLayout;c.filterVisible(p.annotations).forEach(function(a){var u=b.getFromId(y,a.xref),h=b.getFromId(y,a.yref),m=b.getRefType(a.xref),v=b.getRefType(a.yref);a._extremes={},m==="range"&&w(a,u),v==="range"&&w(a,h)})}function w(y,p){var a,u=p._id,h=u.charAt(0),m=y[h],v=y["a"+h],_=y[h+"ref"],S=y["a"+h+"ref"],A=y["_"+h+"padplus"],x=y["_"+h+"padminus"],R={x:1,y:-1}[h]*y[h+"shift"],M=3*y.arrowsize*y.arrowwidth||0,T=M+R,E=M-R,C=3*y.startarrowsize*y.arrowwidth||0,L=C+R,D=C-R;if(S===_){var k=b.findExtremes(p,[p.r2c(m)],{ppadplus:T,ppadminus:E}),I=b.findExtremes(p,[p.r2c(v)],{ppadplus:Math.max(A,L),ppadminus:Math.max(x,D)});a={min:[k.min[0],I.min[0]],max:[k.max[0],I.max[0]]}}else L=v?L+v:L,D=v?D-v:D,a=b.findExtremes(p,[p.r2c(m)],{ppadplus:Math.max(A,T,L),ppadminus:Math.max(x,E,D)});y._extremes[u]=a}d.exports=function(y){var p=y._fullLayout;if(c.filterVisible(p.annotations).length&&y._fullData.length)return c.syncOrAsync([i,O],y)}},42300:function(d,l,n){var c=n(3400),b=n(24040),i=n(31780).arrayEditor;function O(y,p){var a,u,h,m,v,_,S,A=y._fullLayout.annotations,x=[],R=[],M=[],T=(p||[]).length;for(a=0;a0||a.explicitOff.length>0},onClick:function(y,p){var a,u,h=O(y,p),m=h.on,v=h.off.concat(h.explicitOff),_={},S=y._fullLayout.annotations;if(m.length||v.length){for(a=0;a.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Qt]}for(var tt=!1,Ee=["x","y"],Ne=0;Ne1)&&(Dt===wt?((mn=It.r2fraction(T["a"+pt]))<0||mn>1)&&(tt=!0):tt=!0),je=It._offset+It.r2p(T[pt]),Ge=.5}else{var vt=bn==="domain";pt==="x"?(ot=T[pt],je=vt?It._offset+It._length*ot:je=$.l+$.w*ot):(ot=1-T[pt],je=vt?It._offset+It._length*ot:je=$.t+$.h*ot),Ge=T.showarrow?.5:ot}if(T.showarrow){gn.head=je;var bt=T["a"+pt];if(ht=en*Xe(.5,T.xanchor)-Gt*Xe(.5,T.yanchor),Dt===wt){var lt=y.getRefType(Dt);lt==="domain"?(pt==="y"&&(bt=1-bt),gn.tail=It._offset+It._length*bt):lt==="paper"?pt==="y"?(bt=1-bt,gn.tail=$.t+$.h*bt):gn.tail=$.l+$.w*bt:gn.tail=It._offset+It.r2p(bt),nt=ht}else gn.tail=je+bt,nt=ht+bt;gn.text=gn.tail+ht;var yt=z[pt==="x"?"width":"height"];if(wt==="paper"&&(gn.head=O.constrain(gn.head,1,yt-1)),Dt==="pixel"){var zt=-Math.max(gn.tail-3,gn.text),Rt=Math.min(gn.tail+3,gn.text)-yt;zt>0?(gn.tail+=zt,gn.text+=zt):Rt>0&&(gn.tail-=Rt,gn.text-=Rt)}gn.tail+=nn,gn.head+=nn}else nt=ht=Ct*Xe(Ge,_t),gn.text=je+ht;gn.text+=nn,ht+=nn,nt+=nn,T["_"+pt+"padplus"]=Ct/2+nt,T["_"+pt+"padminus"]=Ct/2-nt,T["_"+pt+"size"]=Ct,T["_"+pt+"shift"]=ht}if(tt)he.remove();else{var it=0,at=0;if(T.align!=="left"&&(it=(Le-Oe)*(T.align==="center"?.5:1)),T.valign!=="top"&&(at=(We-ke)*(T.valign==="middle"?.5:1)),Ve)He.select("svg").attr({x:ce+it-1,y:ce+at}).call(a.setClipUrl,ve?W:null,M);else{var Lt=ce+at-$e.top,xt=ce+it-$e.left;Te.call(h.positionText,xt,Lt).call(a.setClipUrl,ve?W:null,M)}ye.select("rect").call(a.setRect,ce,ce,Le,We),de.call(a.setRect,se/2,se/2,Ue-se,Ze-se),he.call(a.setTranslate,Math.round(K.x.text-Ue/2),Math.round(K.y.text-Ze/2)),Y.attr({transform:"rotate("+oe+","+K.x.text+","+K.y.text+")"});var Zt,Xt=function(Yt,Qt){q.selectAll(".annotation-arrow-g").remove();var Pt=K.x.head,tn=K.y.head,Kt=K.x.tail+Yt,fn=K.y.tail+Qt,dn=K.x.text+Yt,vn=K.y.text+Qt,Nn=O.rotationXYMatrix(oe,dn,vn),er=O.apply2DTransform(Nn),En=O.apply2DTransform2(Nn),In=+de.attr("width"),jn=+de.attr("height"),xr=dn-.5*In,Sr=xr+In,ar=vn-.5*jn,Fn=ar+jn,ir=[[xr,ar,xr,Fn],[xr,Fn,Sr,Fn],[Sr,Fn,Sr,ar],[Sr,ar,xr,ar]].map(En);if(!ir.reduce(function(So,go){return So^!!O.segmentsIntersect(Pt,tn,Pt+1e6,tn+1e6,go[0],go[1],go[2],go[3])},!1)){ir.forEach(function(So){var go=O.segmentsIntersect(Kt,fn,Pt,tn,So[0],So[1],So[2],So[3]);go&&(Kt=go.x,fn=go.y)});var Wn=T.arrowwidth,Kn=T.arrowcolor,_r=T.arrowside,Ir=q.append("g").style({opacity:p.opacity(Kn)}).classed("annotation-arrow-g",!0),zr=Ir.append("path").attr("d","M"+Kt+","+fn+"L"+Pt+","+tn).style("stroke-width",Wn+"px").call(p.stroke,p.rgb(Kn));if(S(zr,_r,T),Q.annotationPosition&&zr.node().parentNode&&!C){var Fr=Pt,Rr=tn;if(T.standoff){var $r=Math.sqrt(Math.pow(Pt-Kt,2)+Math.pow(tn-fn,2));Fr+=T.standoff*(Kt-Pt)/$r,Rr+=T.standoff*(fn-tn)/$r}var Kr,Co,so=Ir.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Kt-Fr)+","+(fn-Rr),transform:w(Fr,Rr)}).style("stroke-width",Wn+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");v.init({element:so.node(),gd:M,prepFn:function(){var So=a.getTranslate(he);Kr=So.x,Co=So.y,L&&L.autorange&&U(L._name+".autorange",!0),D&&D.autorange&&U(D._name+".autorange",!0)},moveFn:function(So,go){var li=er(Kr,Co),Pn=li[0]+So,Yn=li[1]+go;he.call(a.setTranslate,Pn,Yn),X("x",x(L,So,"x",$,T)),X("y",x(D,go,"y",$,T)),T.axref===T.xref&&X("ax",x(L,So,"ax",$,T)),T.ayref===T.yref&&X("ay",x(D,go,"ay",$,T)),Ir.attr("transform",w(So,go)),Y.attr({transform:"rotate("+oe+","+Pn+","+Yn+")"})},doneFn:function(){b.call("_guiRelayout",M,te());var So=document.querySelector(".js-notes-box-panel");So&&So.redraw(So.selectedObj)}})}}};T.showarrow&&Xt(0,0),ee&&v.init({element:he.node(),gd:M,prepFn:function(){Zt=Y.attr("transform")},moveFn:function(Yt,Qt){var Pt="pointer";if(T.showarrow)T.axref===T.xref?X("ax",x(L,Yt,"ax",$,T)):X("ax",T.ax+Yt),T.ayref===T.yref?X("ay",x(D,Qt,"ay",$.w,T)):X("ay",T.ay+Qt),Xt(Yt,Qt);else{if(C)return;var tn,Kt;if(L)tn=x(L,Yt,"x",$,T);else{var fn=T._xsize/$.w,dn=T.x+(T._xshift-T.xshift)/$.w-fn/2;tn=v.align(dn+Yt/$.w,fn,0,1,T.xanchor)}if(D)Kt=x(D,Qt,"y",$,T);else{var vn=T._ysize/$.h,Nn=T.y-(T._yshift+T.yshift)/$.h-vn/2;Kt=v.align(Nn-Qt/$.h,vn,0,1,T.yanchor)}X("x",tn),X("y",Kt),L&&D||(Pt=v.getCursor(L?.5:tn,D?.5:Kt,T.xanchor,T.yanchor))}Y.attr({transform:w(Yt,Qt)+Zt}),m(he,Pt)},clickFn:function(Yt,Qt){T.captureevents&&M.emit("plotly_clickannotation",Pe(Qt))},doneFn:function(){m(he),b.call("_guiRelayout",M,te());var Yt=document.querySelector(".js-notes-box-panel");Yt&&Yt.redraw(Yt.selectedObj)}})}}}d.exports={draw:function(M){var T=M._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var E=0;E=0,C=u.indexOf("end")>=0,L=x.backoff*M+h.standoff,D=R.backoff*T+h.startstandoff;if(A.nodeName==="line"){m={x:+a.attr("x1"),y:+a.attr("y1")},v={x:+a.attr("x2"),y:+a.attr("y2")};var k=m.x-v.x,I=m.y-v.y;if(S=(_=Math.atan2(I,k))+Math.PI,L&&D&&L+D>Math.sqrt(k*k+I*I))return void q();if(L){if(L*L>k*k+I*I)return void q();var z=L*Math.cos(_),$=L*Math.sin(_);v.x+=z,v.y+=$,a.attr({x2:v.x,y2:v.y})}if(D){if(D*D>k*k+I*I)return void q();var Q=D*Math.cos(_),j=D*Math.sin(_);m.x-=Q,m.y-=j,a.attr({x1:m.x,y1:m.y})}}else if(A.nodeName==="path"){var U=A.getTotalLength(),X="";if(U1){h=!0;break}}h?O.fullLayout._infolayer.select(".annotation-"+O.id+'[data-index="'+a+'"]').remove():(u._pdata=b(O.glplot.cameraParams,[w.xaxis.r2l(u.x)*y[0],w.yaxis.r2l(u.y)*y[1],w.zaxis.r2l(u.z)*y[2]]),c(O.graphDiv,u,a,O.id,u._xa,u._ya))}}},56864:function(d,l,n){var c=n(24040),b=n(3400);d.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(45899)}}},layoutAttributes:n(45899),handleDefaults:n(52808),includeBasePlot:function(i,O){var w=c.subplotsRegistry.gl3d;if(w)for(var y=w.attrRegex,p=Object.keys(i),a=0;a=0)))return u;if(S===3)v[S]>1&&(v[S]=1);else if(v[S]>=1)return u}var A=Math.round(255*v[0])+", "+Math.round(255*v[1])+", "+Math.round(255*v[2]);return _?"rgba("+A+", "+v[3]+")":"rgb("+A+")"}O.tinyRGB=function(u){var h=u.toRgb();return"rgb("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+")"},O.rgb=function(u){return O.tinyRGB(c(u))},O.opacity=function(u){return u?c(u).getAlpha():0},O.addOpacity=function(u,h){var m=c(u).toRgb();return"rgba("+Math.round(m.r)+", "+Math.round(m.g)+", "+Math.round(m.b)+", "+h+")"},O.combine=function(u,h){var m=c(u).toRgb();if(m.a===1)return c(u).toRgbString();var v=c(h||p).toRgb(),_=v.a===1?v:{r:255*(1-v.a)+v.r*v.a,g:255*(1-v.a)+v.g*v.a,b:255*(1-v.a)+v.b*v.a},S={r:_.r*(1-m.a)+m.r*m.a,g:_.g*(1-m.a)+m.g*m.a,b:_.b*(1-m.a)+m.b*m.a};return c(S).toRgbString()},O.contrast=function(u,h,m){var v=c(u);return v.getAlpha()!==1&&(v=c(O.combine(u,p))),(v.isDark()?h?v.lighten(h):p:m?v.darken(m):y).toString()},O.stroke=function(u,h){var m=c(h);u.style({stroke:O.tinyRGB(m),"stroke-opacity":m.getAlpha()})},O.fill=function(u,h){var m=c(h);u.style({fill:O.tinyRGB(m),"fill-opacity":m.getAlpha()})},O.clean=function(u){if(u&&typeof u=="object"){var h,m,v,_,S=Object.keys(u);for(h=0;h0?Rt>=Zt:Rt<=Zt));it++)Rt>Yt&&Rt0?Rt>=Zt:Rt<=Zt));it++)Rt>zt[0]&&Rt1){var Gt=Math.pow(10,Math.floor(Math.log(en)/Math.LN10));It*=Gt*p.roundUp(en/Gt,[2,5,10]),(Math.abs(Oe.start)/Oe.size+1e-6)%1<2e-6&&(wt.tick0=0)}wt.dtick=It}wt.domain=te?[ht+ce/Te.h,ht+tt-ce/Te.h]:[ht+ae/Te.w,ht+tt-ae/Te.w],wt.setScale(),j.attr("transform",a(Math.round(Te.l),Math.round(Te.t)));var Ct,_t=j.select("."+D.cbtitleunshift).attr("transform",a(-Math.round(Te.l),-Math.round(Te.t))),nn=wt.ticklabelposition,gn=wt.title.font.size,bn=j.select("."+D.cbaxis),mn=0,vt=0;function bt(lt,yt){var zt={propContainer:wt,propName:U._propPrefix+"title",traceIndex:U._traceIndex,_meta:U._meta,placeholder:Se._dfltTitle.colorbar,containerGroup:j.select("."+D.cbtitle)},Rt=lt.charAt(0)==="h"?lt.substr(1):"h"+lt;j.selectAll("."+Rt+",."+Rt+"-math-group").remove(),_.draw(X,lt,u(zt,yt||{}))}return p.syncOrAsync([i.previousPromises,function(){var lt,yt;(te&&Dt||!te&&!Dt)&&(De==="top"&&(lt=ae+Te.l+Ee*de,yt=ce+Te.t+Ne*(1-ht-tt)+3+.75*gn),De==="bottom"&&(lt=ae+Te.l+Ee*de,yt=ce+Te.t+Ne*(1-ht)-3-.25*gn),De==="right"&&(yt=ce+Te.t+Ne*ve+3+.75*gn,lt=ae+Te.l+Ee*ht),bt(wt._id+"title",{attributes:{x:lt,y:yt,"text-anchor":te?"start":"middle"}}))},function(){if(!te&&!Dt||te&&Dt){var lt,yt=j.select("."+D.cbtitle),zt=yt.select("text"),Rt=[-Y/2,Y/2],it=yt.select(".h"+wt._id+"title-math-group").node(),at=15.6;if(zt.node()&&(at=parseInt(zt.node().style.fontSize,10)*E),it?(lt=m.bBox(it),vt=lt.width,(mn=lt.height)>at&&(Rt[1]-=(mn-at)/2)):zt.node()&&!zt.classed(D.jsPlaceholder)&&(lt=m.bBox(zt.node()),vt=lt.width,mn=lt.height),te){if(mn){if(mn+=5,De==="top")wt.domain[1]-=mn/Te.h,Rt[1]*=-1;else{wt.domain[0]+=mn/Te.h;var Lt=S.lineCount(zt);Rt[1]+=(1-Lt)*at}yt.attr("transform",a(Rt[0],Rt[1])),wt.setScale()}}else vt&&(De==="right"&&(wt.domain[0]+=(vt+gn/2)/Te.w),yt.attr("transform",a(Rt[0],Rt[1])),wt.setScale())}j.selectAll("."+D.cbfills+",."+D.cblines).attr("transform",te?a(0,Math.round(Te.h*(1-wt.domain[1]))):a(Math.round(Te.w*wt.domain[0]),0)),bn.attr("transform",te?a(0,Math.round(-Te.t)):a(Math.round(-Te.l),0));var xt=j.select("."+D.cbfills).selectAll("rect."+D.cbfill).attr("style","").data(Le);xt.enter().append("rect").classed(D.cbfill,!0).attr("style",""),xt.exit().remove();var Zt=He.map(wt.c2p).map(Math.round).sort(function(tn,Kt){return tn-Kt});xt.each(function(tn,Kt){var fn=[Kt===0?He[0]:(Le[Kt]+Le[Kt-1])/2,Kt===Le.length-1?He[1]:(Le[Kt]+Le[Kt+1])/2].map(wt.c2p).map(Math.round);te&&(fn[1]=p.constrain(fn[1]+(fn[1]>fn[0])?1:-1,Zt[0],Zt[1]));var dn=c.select(this).attr(te?"x":"y",je).attr(te?"y":"x",c.min(fn)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(c.max(fn)-c.min(fn),2));if(U._fillgradient)m.gradient(dn,X,U._id,te?"vertical":"horizontalreversed",U._fillgradient,"fill");else{var vn=$e(tn).replace("e-","");dn.attr("fill",b(vn).toHexString())}});var Xt=j.select("."+D.cblines).selectAll("path."+D.cbline).data(Ie.color&&Ie.width?We:[]);Xt.enter().append("path").classed(D.cbline,!0),Xt.exit().remove(),Xt.each(function(tn){var Kt=je,fn=Math.round(wt.c2p(tn))+Ie.width/2%1;c.select(this).attr("d","M"+(te?Kt+","+fn:fn+","+Kt)+(te?"h":"v")+Ue).call(m.lineGroupStyle,Ie.width,Ve(tn),Ie.dash)}),bn.selectAll("g."+wt._id+"tick,path").remove();var Yt=je+Ue+(Y||0)/2-(U.ticks==="outside"?1:0),Qt=w.calcTicks(wt),Pt=w.getTickSigns(wt)[2];return w.drawTicks(X,wt,{vals:wt.ticks==="inside"?w.clipEnds(wt,Qt):Qt,layer:bn,path:w.makeTickPath(wt,Yt,Pt),transFn:w.makeTransTickFn(wt)}),w.drawLabels(X,wt,{vals:Qt,layer:bn,transFn:w.makeTransTickLabelFn(wt),labelFns:w.makeLabelFns(wt,Yt)})},function(){if(te&&!Dt||!te&&Dt){var lt,yt,zt=wt.position||0,Rt=wt._offset+wt._length/2;if(De==="right")yt=Rt,lt=Te.l+Ee*zt+10+gn*(wt.showticklabels?1:.5);else if(lt=Rt,De==="bottom"&&(yt=Te.t+Ne*zt+10+(nn.indexOf("inside")===-1?wt.tickfont.size:0)+(wt.ticks!=="intside"&&U.ticklen||0)),De==="top"){var it=ze.text.split("
").length;yt=Te.t+Ne*zt+10-Ue-E*gn*it}bt((te?"h":"v")+wt._id+"title",{avoid:{selection:c.select(X).selectAll("g."+wt._id+"tick"),side:De,offsetTop:te?0:Te.t,offsetLeft:te?Te.l:0,maxShift:te?Se.width:Se.height},attributes:{x:lt,y:yt,"text-anchor":"middle"},transform:{rotate:te?-90:0,offset:0}})}},i.previousPromises,function(){var lt,yt=Ue+Y/2;nn.indexOf("inside")===-1&&(lt=m.bBox(bn.node()),yt+=te?lt.width:lt.height),Ct=_t.select("text");var zt=0,Rt=te&&De==="top",it=!te&&De==="right",at=0;if(Ct.node()&&!Ct.classed(D.jsPlaceholder)){var Lt,xt=_t.select(".h"+wt._id+"title-math-group").node();xt&&(te&&Dt||!te&&!Dt)?(zt=(lt=m.bBox(xt)).width,Lt=lt.height):(zt=(lt=m.bBox(_t.node())).right-Te.l-(te?je:pt),Lt=lt.bottom-Te.t-(te?pt:je),te||De!=="top"||(yt+=lt.height,at=lt.height)),it&&(Ct.attr("transform",a(zt/2+gn/2,0)),zt*=2),yt=Math.max(yt,te?zt:Lt)}var Zt=2*(te?ae:ce)+yt+ee+Y/2,Xt=0;!te&&ze.text&&se==="bottom"&&ve<=0&&(Zt+=Xt=Zt/2,at+=Xt),Se._hColorbarMoveTitle=Xt,Se._hColorbarMoveCBTitle=at;var Yt=ee+Y,Qt=(te?je:pt)-Yt/2-(te?ae:0),Pt=(te?pt:je)-(te?Xe:ce+at-Xt);j.select("."+D.cbbg).attr("x",Qt).attr("y",Pt).attr(te?"width":"height",Math.max(Zt-Xt,2)).attr(te?"height":"width",Math.max(Xe+Yt,2)).call(v.fill,me).call(v.stroke,U.bordercolor).style("stroke-width",ee);var tn=it?Math.max(zt-10,0):0;j.selectAll("."+D.cboutline).attr("x",(te?je:pt+ae)+tn).attr("y",(te?pt+ce-Xe:je)+(Rt?mn:0)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(Xe-(te?2*ce+mn:2*ae+tn),2)).call(v.stroke,U.outlinecolor).style({fill:"none","stroke-width":Y});var Kt=te?nt*Zt:0,fn=te?0:(1-ot)*Zt-at;if(Kt=_e?Te.l-Kt:-Kt,fn=ye?Te.t-fn:-fn,j.attr("transform",a(Kt,fn)),!te&&(ee||b(me).getAlpha()&&!b.equals(Se.paper_bgcolor,me))){var dn=bn.selectAll("text"),vn=dn[0].length,Nn=j.select("."+D.cbbg).node(),er=m.bBox(Nn),En=m.getTranslate(j);dn.each(function(_r,Ir){var zr=vn-1;if(Ir===0||Ir===zr){var Fr,Rr=m.bBox(this),$r=m.getTranslate(this);if(Ir===zr){var Kr=Rr.right+$r.x;(Fr=er.right+En.x+pt-ee-2+de-Kr)>0&&(Fr=0)}else if(Ir===0){var Co=Rr.left+$r.x;(Fr=er.left+En.x+pt+ee+2-Co)<0&&(Fr=0)}Fr&&(vn<3?this.setAttribute("transform","translate("+Fr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var In={},jn=C[he],xr=L[he],Sr=C[se],ar=L[se],Fn=Zt-Ue;te?(K==="pixels"?(In.y=ve,In.t=Xe*Sr,In.b=Xe*ar):(In.t=In.b=0,In.yt=ve+W*Sr,In.yb=ve-W*ar),q==="pixels"?(In.x=de,In.l=Zt*jn,In.r=Zt*xr):(In.l=Fn*jn,In.r=Fn*xr,In.xl=de-oe*jn,In.xr=de+oe*xr)):(K==="pixels"?(In.x=de,In.l=Xe*jn,In.r=Xe*xr):(In.l=In.r=0,In.xl=de+W*jn,In.xr=de-W*xr),q==="pixels"?(In.y=1-ve,In.t=Zt*Sr,In.b=Zt*ar):(In.t=Fn*Sr,In.b=Fn*ar,In.yt=ve-oe*Sr,In.yb=ve+oe*ar));var ir=U.y<.5?"b":"t",Wn=U.x<.5?"l":"r";X._fullLayout._reservedMargin[U._id]={};var Kn={r:Se.width-Qt-Kt,l:Qt+In.r,b:Se.height-Pt-fn,t:Pt+In.b};_e&&ye?i.autoMargin(X,U._id,In):_e?X._fullLayout._reservedMargin[U._id][ir]=Kn[ir]:ye||te?X._fullLayout._reservedMargin[U._id][Wn]=Kn[Wn]:X._fullLayout._reservedMargin[U._id][ir]=Kn[ir]}],X)}($,z,k);Q&&Q.then&&(k._promises||[]).push(Q),k._context.edits.colorbarPosition&&function(j,U,X){var te,W,K,oe=U.orientation==="v",q=X._fullLayout._size;y.init({element:j.node(),gd:X,prepFn:function(){te=j.attr("transform"),h(j)},moveFn:function(Y,ee){j.attr("transform",te+a(Y,ee)),W=y.align((oe?U._uFrac:U._vFrac)+Y/q.w,oe?U._thickFrac:U._lenFrac,0,1,U.xanchor),K=y.align((oe?U._vFrac:1-U._uFrac)-ee/q.h,oe?U._lenFrac:U._thickFrac,0,1,U.yanchor);var me=y.getCursor(W,K,U.xanchor,U.yanchor);h(j,me)},doneFn:function(){if(h(j),W!==void 0&&K!==void 0){var Y={};Y[U._propPrefix+"x"]=W,Y[U._propPrefix+"y"]=K,U._traceIndex!==void 0?O.call("_guiRestyle",X,Y,U._traceIndex):O.call("_guiRelayout",X,Y)}}})}($,z,k)}),I.exit().each(function(z){i.autoMargin(k,z._id)}).remove(),I.order()}}},90553:function(d,l,n){var c=n(3400);d.exports=function(b){return c.isPlainObject(b.colorbar)}},55080:function(d,l,n){d.exports={moduleType:"component",name:"colorbar",attributes:n(42996),supplyDefaults:n(64013),draw:n(37848).draw,hasColorbar:n(90553)}},49084:function(d,l,n){var c=n(42996),b=n(53756).counter,i=n(95376),O=n(88304).scales;function w(y){return"`"+y+"`"}i(O),d.exports=function(y,p){y=y||"";var a,u=(p=p||{}).cLetter||"c",h=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:y==="marker.line"),m="showScaleDflt"in p?p.showScaleDflt:u==="z",v=typeof p.colorscaleDflt=="string"?O[p.colorscaleDflt]:null,_=p.editTypeOverride||"",S=y?y+".":"";"colorAttr"in p?(a=p.colorAttr,p.colorAttr):w(S+(a={z:"z",c:"color"}[u]));var A=u+"auto",x=u+"min",R=u+"max",M=u+"mid",T={};T[x]=T[R]=void 0;var E={};E[A]=!1;var C={};return a==="color"&&(C.color={valType:"color",arrayOk:!0,editType:_||"style"},p.anim&&(C.color.anim=!0)),C[A]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},C[x]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:E},C[R]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:E},C[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},C.colorscale={valType:"colorscale",editType:"calc",dflt:v,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},h||(C.showscale={valType:"boolean",dflt:m,editType:"calc"},C.colorbar=c),p.noColorAxis||(C.coloraxis={valType:"subplotid",regex:b("coloraxis"),dflt:null,editType:"calc"}),C}},47128:function(d,l,n){var c=n(38248),b=n(3400),i=n(94288).extractOpts;d.exports=function(O,w,y){var p,a=O._fullLayout,u=y.vals,h=y.containerStr,m=h?b.nestedProperty(w,h).get():w,v=i(m),_=v.auto!==!1,S=v.min,A=v.max,x=v.mid,R=function(){return b.aggNums(Math.min,null,u)},M=function(){return b.aggNums(Math.max,null,u)};S===void 0?S=R():_&&(S=m._colorAx&&c(S)?Math.min(S,R()):R()),A===void 0?A=M():_&&(A=m._colorAx&&c(A)?Math.max(A,M()):M()),_&&x!==void 0&&(A-x>x-S?S=x-(A-x):A-x=0?a.colorscale.sequential:a.colorscale.sequentialminus,v._sync("colorscale",p))}},95504:function(d,l,n){var c=n(3400),b=n(94288).hasColorscale,i=n(94288).extractOpts;d.exports=function(O,w){function y(_,S){var A=_["_"+S];A!==void 0&&(_[S]=A)}function p(_,S){var A=S.container?c.nestedProperty(_,S.container).get():_;if(A)if(A.coloraxis)A._colorAx=w[A.coloraxis];else{var x=i(A),R=x.auto;(R||x.min===void 0)&&y(A,S.min),(R||x.max===void 0)&&y(A,S.max),x.autocolorscale&&y(A,"colorscale")}}for(var a=0;a=0;R--,M++){var T=S[R];x[M]=[1-T[0],T[1]]}return x}function v(S,A){A=A||{};for(var x=S.domain,R=S.range,M=R.length,T=new Array(M),E=0;E1.3333333333333333-y?w:y}},67416:function(d,l,n){var c=n(3400),b=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];d.exports=function(i,O,w,y){return i=w==="left"?0:w==="center"?1:w==="right"?2:c.constrain(Math.floor(3*i),0,2),O=y==="bottom"?0:y==="middle"?1:y==="top"?2:c.constrain(Math.floor(3*O),0,2),b[O][i]}},72760:function(d,l){l.selectMode=function(n){return n==="lasso"||n==="select"},l.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},l.openMode=function(n){return n==="drawline"||n==="drawopenpath"},l.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},l.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},l.selectingOrDrawing=function(n){return l.freeMode(n)||l.rectMode(n)}},86476:function(d,l,n){var c=n(29128),b=n(52264),i=n(89184),O=n(3400).removeElement,w=n(33816),y=d.exports={};y.align=n(78316),y.getCursor=n(67416);var p=n(2616);function a(){var h=document.createElement("div");h.className="dragcover";var m=h.style;return m.position="fixed",m.left=0,m.right=0,m.top=0,m.bottom=0,m.zIndex=999999999,m.background="none",document.body.appendChild(h),h}function u(h){return c(h.changedTouches?h.changedTouches[0]:h,document.body)}y.unhover=p.wrapped,y.unhoverRaw=p.raw,y.init=function(h){var m,v,_,S,A,x,R,M,T=h.gd,E=1,C=T._context.doubleClickDelay,L=h.element;T._mouseDownTime||(T._mouseDownTime=0),L.style.pointerEvents="all",L.onmousedown=k,i?(L._ontouchstart&&L.removeEventListener("touchstart",L._ontouchstart),L._ontouchstart=k,L.addEventListener("touchstart",k,{passive:!1})):L.ontouchstart=k;var D=h.clampFn||function($,Q,j){return Math.abs($)C&&(E=Math.max(E-1,1)),T._dragged)h.doneFn&&h.doneFn();else if(h.clickFn&&h.clickFn(E,x),!M){var Q;try{Q=new MouseEvent("click",$)}catch{var j=u($);(Q=document.createEvent("MouseEvents")).initMouseEvent("click",$.bubbles,$.cancelable,$.view,$.detail,$.screenX,$.screenY,j[0],j[1],$.ctrlKey,$.altKey,$.shiftKey,$.metaKey,$.button,$.relatedTarget)}R.dispatchEvent(Q)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},y.coverSlip=a},2616:function(d,l,n){var c=n(95924),b=n(91200),i=n(52200).getGraphDiv,O=n(92456),w=d.exports={};w.wrapped=function(y,p,a){(y=i(y))._fullLayout&&b.clear(y._fullLayout._uid+O.HOVERID),w.raw(y,p,a)},w.raw=function(y,p){var a=y._fullLayout,u=y._hoverdata;p||(p={}),p.target&&!y._dragged&&c.triggerHandler(y,"plotly_beforehover",p)===!1||(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),y._hoverdata=void 0,p.target&&u&&y.emit("plotly_unhover",{event:p,points:u}))}},98192:function(d,l){l.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},l.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(d,l,n){var c=n(33428),b=n(3400),i=b.numberFormat,O=n(38248),w=n(49760),y=n(24040),p=n(76308),a=n(8932),u=b.strTranslate,h=n(72736),m=n(9616),v=n(84284).LINE_SPACING,_=n(13448).DESELECTDIM,S=n(43028),A=n(7152),x=n(10624).appendArrayPointValue,R=d.exports={};function M(Ve,$e,Oe){var ke=$e.fillpattern,Le=ke&&R.getPatternAttr(ke.shape,0,"");if(Le){var We=R.getPatternAttr(ke.bgcolor,0,null),Ue=R.getPatternAttr(ke.fgcolor,0,null),Ze=ke.fgopacity,Xe=R.getPatternAttr(ke.size,0,8),tt=R.getPatternAttr(ke.solidity,0,.3),Ee=$e.uid;R.pattern(Ve,"point",Oe,Ee,Le,Xe,tt,void 0,ke.fillmode,We,Ue,Ze)}else $e.fillcolor&&Ve.call(p.fill,$e.fillcolor)}R.font=function(Ve,$e,Oe,ke){b.isPlainObject($e)&&(ke=$e.color,Oe=$e.size,$e=$e.family),$e&&Ve.style("font-family",$e),Oe+1&&Ve.style("font-size",Oe+"px"),ke&&Ve.call(p.fill,ke)},R.setPosition=function(Ve,$e,Oe){Ve.attr("x",$e).attr("y",Oe)},R.setSize=function(Ve,$e,Oe){Ve.attr("width",$e).attr("height",Oe)},R.setRect=function(Ve,$e,Oe,ke,Le){Ve.call(R.setPosition,$e,Oe).call(R.setSize,ke,Le)},R.translatePoint=function(Ve,$e,Oe,ke){var Le=Oe.c2p(Ve.x),We=ke.c2p(Ve.y);return!!(O(Le)&&O(We)&&$e.node())&&($e.node().nodeName==="text"?$e.attr("x",Le).attr("y",We):$e.attr("transform",u(Le,We)),!0)},R.translatePoints=function(Ve,$e,Oe){Ve.each(function(ke){var Le=c.select(this);R.translatePoint(ke,Le,$e,Oe)})},R.hideOutsideRangePoint=function(Ve,$e,Oe,ke,Le,We){$e.attr("display",Oe.isPtWithinRange(Ve,Le)&&ke.isPtWithinRange(Ve,We)?null:"none")},R.hideOutsideRangePoints=function(Ve,$e){if($e._hasClipOnAxisFalse){var Oe=$e.xaxis,ke=$e.yaxis;Ve.each(function(Le){var We=Le[0].trace,Ue=We.xcalendar,Ze=We.ycalendar,Xe=y.traceIs(We,"bar-like")?".bartext":".point,.textpoint";Ve.selectAll(Xe).each(function(tt){R.hideOutsideRangePoint(tt,c.select(this),Oe,ke,Ue,Ze)})})}},R.crispRound=function(Ve,$e,Oe){return $e&&O($e)?Ve._context.staticPlot?$e:$e<1?1:Math.round($e):Oe||0},R.singleLineStyle=function(Ve,$e,Oe,ke,Le){$e.style("fill","none");var We=(((Ve||[])[0]||{}).trace||{}).line||{},Ue=Oe||We.width||0,Ze=Le||We.dash||"";p.stroke($e,ke||We.color),R.dashLine($e,Ze,Ue)},R.lineGroupStyle=function(Ve,$e,Oe,ke){Ve.style("fill","none").each(function(Le){var We=(((Le||[])[0]||{}).trace||{}).line||{},Ue=$e||We.width||0,Ze=ke||We.dash||"";c.select(this).call(p.stroke,Oe||We.color).call(R.dashLine,Ze,Ue)})},R.dashLine=function(Ve,$e,Oe){Oe=+Oe||0,$e=R.dashStyle($e,Oe),Ve.style({"stroke-dasharray":$e,"stroke-width":Oe+"px"})},R.dashStyle=function(Ve,$e){$e=+$e||1;var Oe=Math.max($e,3);return Ve==="solid"?Ve="":Ve==="dot"?Ve=Oe+"px,"+Oe+"px":Ve==="dash"?Ve=3*Oe+"px,"+3*Oe+"px":Ve==="longdash"?Ve=5*Oe+"px,"+5*Oe+"px":Ve==="dashdot"?Ve=3*Oe+"px,"+Oe+"px,"+Oe+"px,"+Oe+"px":Ve==="longdashdot"&&(Ve=5*Oe+"px,"+2*Oe+"px,"+Oe+"px,"+2*Oe+"px"),Ve},R.singleFillStyle=function(Ve,$e){var Oe=c.select(Ve.node());M(Ve,((Oe.data()[0]||[])[0]||{}).trace||{},$e)},R.fillGroupStyle=function(Ve,$e){Ve.style("stroke-width",0).each(function(Oe){var ke=c.select(this);Oe[0].trace&&M(ke,Oe[0].trace,$e)})};var T=n(71984);R.symbolNames=[],R.symbolFuncs=[],R.symbolBackOffs=[],R.symbolNeedLines={},R.symbolNoDot={},R.symbolNoFill={},R.symbolList=[],Object.keys(T).forEach(function(Ve){var $e=T[Ve],Oe=$e.n;R.symbolList.push(Oe,String(Oe),Ve,Oe+100,String(Oe+100),Ve+"-open"),R.symbolNames[Oe]=Ve,R.symbolFuncs[Oe]=$e.f,R.symbolBackOffs[Oe]=$e.backoff||0,$e.needLine&&(R.symbolNeedLines[Oe]=!0),$e.noDot?R.symbolNoDot[Oe]=!0:R.symbolList.push(Oe+200,String(Oe+200),Ve+"-dot",Oe+300,String(Oe+300),Ve+"-open-dot"),$e.noFill&&(R.symbolNoFill[Oe]=!0)});var E=R.symbolNames.length;function C(Ve,$e,Oe,ke){var Le=Ve%100;return R.symbolFuncs[Le]($e,Oe,ke)+(Ve>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}R.symbolNumber=function(Ve){if(O(Ve))Ve=+Ve;else if(typeof Ve=="string"){var $e=0;Ve.indexOf("-open")>0&&($e=100,Ve=Ve.replace("-open","")),Ve.indexOf("-dot")>0&&($e+=200,Ve=Ve.replace("-dot","")),(Ve=R.symbolNames.indexOf(Ve))>=0&&(Ve+=$e)}return Ve%100>=E||Ve>=400?0:Math.floor(Math.max(Ve,0))};var L={x1:1,x2:0,y1:0,y2:0},D={x1:0,x2:0,y1:1,y2:0},k=i("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:L},horizontalreversed:{node:"linearGradient",attrs:L,reversed:!0},vertical:{node:"linearGradient",attrs:D},verticalreversed:{node:"linearGradient",attrs:D,reversed:!0}};R.gradient=function(Ve,$e,Oe,ke,Le,We){for(var Ue=Le.length,Ze=I[ke],Xe=new Array(Ue),tt=0;tt=0&&Ve.i===void 0&&(Ve.i=We.i),$e.style("opacity",ke.selectedOpacityFn?ke.selectedOpacityFn(Ve):Ve.mo===void 0?Ue.opacity:Ve.mo),ke.ms2mrc){var Xe;Xe=Ve.ms==="various"||Ue.size==="various"?3:ke.ms2mrc(Ve.ms),Ve.mrc=Xe,ke.selectedSizeFn&&(Xe=Ve.mrc=ke.selectedSizeFn(Ve));var tt=R.symbolNumber(Ve.mx||Ue.symbol)||0;Ve.om=tt%200>=100;var Ee=He(Ve,Oe),Ne=ce(Ve,Oe);$e.attr("d",C(tt,Xe,Ee,Ne))}var je,nt,ot,Ge=!1;if(Ve.so)ot=Ze.outlierwidth,nt=Ze.outliercolor,je=Ue.outliercolor;else{var ht=(Ze||{}).width;ot=(Ve.mlw+1||ht+1||(Ve.trace?(Ve.trace.marker.line||{}).width:0)+1)-1||0,nt="mlc"in Ve?Ve.mlcc=ke.lineScale(Ve.mlc):b.isArrayOrTypedArray(Ze.color)?p.defaultLine:Ze.color,b.isArrayOrTypedArray(Ue.color)&&(je=p.defaultLine,Ge=!0),je="mc"in Ve?Ve.mcc=ke.markerScale(Ve.mc):Ue.color||Ue.colors||"rgba(0,0,0,0)",ke.selectedColorFn&&(je=ke.selectedColorFn(Ve))}if(Ve.om)$e.call(p.stroke,je).style({"stroke-width":(ot||1)+"px",fill:"none"});else{$e.style("stroke-width",(Ve.isBlank?0:ot)+"px");var pt=Ue.gradient,wt=Ve.mgt;wt?Ge=!0:wt=pt&&pt.type,b.isArrayOrTypedArray(wt)&&(wt=wt[0],I[wt]||(wt=0));var Dt=Ue.pattern,It=Dt&&R.getPatternAttr(Dt.shape,Ve.i,"");if(wt&&wt!=="none"){var qt=Ve.mgc;qt?Ge=!0:qt=pt.color;var en=Oe.uid;Ge&&(en+="-"+Ve.i),R.gradient($e,Le,en,wt,[[0,qt],[1,je]],"fill")}else if(It){var Gt=!1,Ct=Dt.fgcolor;!Ct&&We&&We.color&&(Ct=We.color,Gt=!0);var _t=R.getPatternAttr(Ct,Ve.i,We&&We.color||null),nn=R.getPatternAttr(Dt.bgcolor,Ve.i,null),gn=Dt.fgopacity,bn=R.getPatternAttr(Dt.size,Ve.i,8),mn=R.getPatternAttr(Dt.solidity,Ve.i,.3);Gt=Gt||Ve.mcc||b.isArrayOrTypedArray(Dt.shape)||b.isArrayOrTypedArray(Dt.bgcolor)||b.isArrayOrTypedArray(Dt.fgcolor)||b.isArrayOrTypedArray(Dt.size)||b.isArrayOrTypedArray(Dt.solidity);var vt=Oe.uid;Gt&&(vt+="-"+Ve.i),R.pattern($e,"point",Le,vt,It,bn,mn,Ve.mcc,Dt.fillmode,nn,_t,gn)}else b.isArrayOrTypedArray(je)?p.fill($e,je[Ve.i]):p.fill($e,je);ot&&p.stroke($e,nt)}},R.makePointStyleFns=function(Ve){var $e={},Oe=Ve.marker;return $e.markerScale=R.tryColorscale(Oe,""),$e.lineScale=R.tryColorscale(Oe,"line"),y.traceIs(Ve,"symbols")&&($e.ms2mrc=S.isBubble(Ve)?A(Ve):function(){return(Oe.size||6)/2}),Ve.selectedpoints&&b.extendFlat($e,R.makeSelectedPointStyleFns(Ve)),$e},R.makeSelectedPointStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Le=Ve.marker||{},We=Oe.marker||{},Ue=ke.marker||{},Ze=Le.opacity,Xe=We.opacity,tt=Ue.opacity,Ee=Xe!==void 0,Ne=tt!==void 0;(b.isArrayOrTypedArray(Ze)||Ee||Ne)&&($e.selectedOpacityFn=function(It){var qt=It.mo===void 0?Le.opacity:It.mo;return It.selected?Ee?Xe:qt:Ne?tt:_*qt});var je=Le.color,nt=We.color,ot=Ue.color;(nt||ot)&&($e.selectedColorFn=function(It){var qt=It.mcc||je;return It.selected?nt||qt:ot||qt});var Ge=Le.size,ht=We.size,pt=Ue.size,wt=ht!==void 0,Dt=pt!==void 0;return y.traceIs(Ve,"symbols")&&(wt||Dt)&&($e.selectedSizeFn=function(It){var qt=It.mrc||Ge/2;return It.selected?wt?ht/2:qt:Dt?pt/2:qt}),$e},R.makeSelectedTextStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Le=Ve.textfont||{},We=Oe.textfont||{},Ue=ke.textfont||{},Ze=Le.color,Xe=We.color,tt=Ue.color;return $e.selectedTextColorFn=function(Ee){var Ne=Ee.tc||Ze;return Ee.selected?Xe||Ne:tt||(Xe?Ne:p.addOpacity(Ne,_))},$e},R.selectedPointStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedPointStyleFns($e),ke=$e.marker||{},Le=[];Oe.selectedOpacityFn&&Le.push(function(We,Ue){We.style("opacity",Oe.selectedOpacityFn(Ue))}),Oe.selectedColorFn&&Le.push(function(We,Ue){p.fill(We,Oe.selectedColorFn(Ue))}),Oe.selectedSizeFn&&Le.push(function(We,Ue){var Ze=Ue.mx||ke.symbol||0,Xe=Oe.selectedSizeFn(Ue);We.attr("d",C(R.symbolNumber(Ze),Xe,He(Ue,$e),ce(Ue,$e))),Ue.mrc2=Xe}),Le.length&&Ve.each(function(We){for(var Ue=c.select(this),Ze=0;Ze0?Oe:0}function X(Ve,$e,Oe){return Oe&&(Ve=Y(Ve)),$e?W(Ve[1]):te(Ve[0])}function te(Ve){var $e=c.round(Ve,2);return z=$e,$e}function W(Ve){var $e=c.round(Ve,2);return $=$e,$e}function K(Ve,$e,Oe,ke){var Le=Ve[0]-$e[0],We=Ve[1]-$e[1],Ue=Oe[0]-$e[0],Ze=Oe[1]-$e[1],Xe=Math.pow(Le*Le+We*We,.25),tt=Math.pow(Ue*Ue+Ze*Ze,.25),Ee=(tt*tt*Le-Xe*Xe*Ue)*ke,Ne=(tt*tt*We-Xe*Xe*Ze)*ke,je=3*tt*(Xe+tt),nt=3*Xe*(Xe+tt);return[[te($e[0]+(je&&Ee/je)),W($e[1]+(je&&Ne/je))],[te($e[0]-(nt&&Ee/nt)),W($e[1]-(nt&&Ne/nt))]]}R.textPointStyle=function(Ve,$e,Oe){if(Ve.size()){var ke;if($e.selectedpoints){var Le=R.makeSelectedTextStyleFns($e);ke=Le.selectedTextColorFn}var We=$e.texttemplate,Ue=Oe._fullLayout;Ve.each(function(Ze){var Xe=c.select(this),tt=We?b.extractOption(Ze,$e,"txt","texttemplate"):b.extractOption(Ze,$e,"tx","text");if(tt||tt===0){if(We){var Ee=$e._module.formatLabels,Ne=Ee?Ee(Ze,$e,Ue):{},je={};x(je,$e,Ze.i);var nt=$e._meta||{};tt=b.texttemplateString(tt,Ne,Ue._d3locale,je,Ze,nt)}var ot=Ze.tp||$e.textposition,Ge=U(Ze,$e),ht=ke?ke(Ze):Ze.tc||$e.textfont.color;Xe.call(R.font,Ze.tf||$e.textfont.family,Ge,ht).text(tt).call(h.convertToTspans,Oe).call(j,ot,Ge,Ze.mrc)}else Xe.remove()})}},R.selectedTextStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedTextStyleFns($e);Ve.each(function(ke){var Le=c.select(this),We=Oe.selectedTextColorFn(ke),Ue=ke.tp||$e.textposition,Ze=U(ke,$e);p.fill(Le,We);var Xe=y.traceIs($e,"bar-like");j(Le,Ue,Ze,ke.mrc2||ke.mrc,Xe)})}},R.smoothopen=function(Ve,$e){if(Ve.length<3)return"M"+Ve.join("L");var Oe,ke="M"+Ve[0],Le=[];for(Oe=1;Oe=Xe||It>=Ee&&It<=Xe)&&(qt<=Ne&&qt>=tt||qt>=Ne&&qt<=tt)&&(Ve=[It,qt])}return Ve}R.steps=function(Ve){var $e=oe[Ve]||q;return function(Oe){for(var ke="M"+te(Oe[0][0])+","+W(Oe[0][1]),Le=Oe.length,We=1;We=1e4&&(R.savedBBoxes={},ee=0),Oe&&(R.savedBBoxes[Oe]=nt),ee++,b.extendFlat({},nt)},R.setClipUrl=function(Ve,$e,Oe){Ve.attr("clip-path",he($e,Oe))},R.getTranslate=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(Oe,ke,Le){return[ke,Le].join(" ")}).split(" ");return{x:+$e[0]||0,y:+$e[1]||0}},R.setTranslate=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Le=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||0,Oe=Oe||0,We=We.replace(/(\btranslate\(.*?\);?)/,"").trim(),We=(We+=u($e,Oe)).trim(),Ve[Le]("transform",We),We},R.getScale=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(Oe,ke,Le){return[ke,Le].join(" ")}).split(" ");return{x:+$e[0]||1,y:+$e[1]||1}},R.setScale=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Le=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||1,Oe=Oe||1,We=We.replace(/(\bscale\(.*?\);?)/,"").trim(),We=(We+="scale("+$e+","+Oe+")").trim(),Ve[Le]("transform",We),We};var se=/\s*sc.*/;R.setPointGroupScale=function(Ve,$e,Oe){if($e=$e||1,Oe=Oe||1,Ve){var ke=$e===1&&Oe===1?"":"scale("+$e+","+Oe+")";Ve.each(function(){var Le=(this.getAttribute("transform")||"").replace(se,"");Le=(Le+=ke).trim(),this.setAttribute("transform",Le)})}};var ae=/translate\([^)]*\)\s*$/;function ce(Ve,$e){var Oe;return Ve&&(Oe=Ve.mf),Oe===void 0&&(Oe=$e.marker&&$e.marker.standoff||0),$e._geo||$e._xA?Oe:-Oe}R.setTextPointsScale=function(Ve,$e,Oe){Ve&&Ve.each(function(){var ke,Le=c.select(this),We=Le.select("text");if(We.node()){var Ue=parseFloat(We.attr("x")||0),Ze=parseFloat(We.attr("y")||0),Xe=(Le.attr("transform")||"").match(ae);ke=$e===1&&Oe===1?[]:[u(Ue,Ze),"scale("+$e+","+Oe+")",u(-Ue,-Ze)],Xe&&ke.push(Xe),Le.attr("transform",ke.join(""))}})},R.getMarkerStandoff=ce;var de,ve,ye,_e,Se,Te,Pe=Math.atan2,Ie=Math.cos,ze=Math.sin;function De(Ve,$e){var Oe=$e[0],ke=$e[1];return[Oe*Ie(Ve)-ke*ze(Ve),Oe*ze(Ve)+ke*Ie(Ve)]}function He(Ve,$e){var Oe,ke,Le=Ve.ma;Le===void 0&&((Le=$e.marker.angle)&&!b.isArrayOrTypedArray(Le)||(Le=0));var We=$e.marker.angleref;if(We==="previous"||We==="north"){if($e._geo){var Ue=$e._geo.project(Ve.lonlat);Oe=Ue[0],ke=Ue[1]}else{var Ze=$e._xA,Xe=$e._yA;if(!Ze||!Xe)return 90;Oe=Ze.c2p(Ve.x),ke=Xe.c2p(Ve.y)}if($e._geo){var tt,Ee=Ve.lonlat[0],Ne=Ve.lonlat[1],je=$e._geo.project([Ee,Ne+1e-5]),nt=$e._geo.project([Ee+1e-5,Ne]),ot=Pe(nt[1]-ke,nt[0]-Oe),Ge=Pe(je[1]-ke,je[0]-Oe);if(We==="north")tt=Le/180*Math.PI;else if(We==="previous"){var ht=Ee/180*Math.PI,pt=Ne/180*Math.PI,wt=de/180*Math.PI,Dt=ve/180*Math.PI,It=wt-ht,qt=Ie(Dt)*ze(It),en=ze(Dt)*Ie(pt)-Ie(Dt)*ze(pt)*Ie(It);tt=-Pe(qt,en)-Math.PI,de=Ee,ve=Ne}var Gt=De(ot,[Ie(tt),0]),Ct=De(Ge,[ze(tt),0]);Le=Pe(Gt[1]+Ct[1],Gt[0]+Ct[0])/Math.PI*180,We!=="previous"||Te===$e.uid&&Ve.i===Se+1||(Le=null)}if(We==="previous"&&!$e._geo)if(Te===$e.uid&&Ve.i===Se+1&&O(Oe)&&O(ke)){var _t=Oe-ye,nn=ke-_e,gn=$e.line&&$e.line.shape||"",bn=gn.slice(gn.length-1);bn==="h"&&(nn=0),bn==="v"&&(_t=0),Le+=Pe(nn,_t)/Math.PI*180+90}else Le=null}return ye=Oe,_e=ke,Se=Ve.i,Te=$e.uid,Le}R.getMarkerAngle=He},71984:function(d,l,n){var c,b,i,O,w=n(21984),y=n(33428).round,p="M0,0Z",a=Math.sqrt(2),u=Math.sqrt(3),h=Math.PI,m=Math.cos,v=Math.sin;function _(A){return A===null}function S(A,x,R){if(!(A&&A%360!=0||x))return R;if(i===A&&O===x&&c===R)return b;function M(X,te){var W=m(X),K=v(X),oe=te[0],q=te[1]+(x||0);return[oe*W-q*K,oe*K+q*W]}i=A,O=x,c=R;for(var T=A/180*h,E=0,C=0,L=w(R),D="",k=0;k0,v=w._context.staticPlot;y.each(function(_){var S,A=_[0].trace,x=A.error_x||{},R=A.error_y||{};A.ids&&(S=function(C){return C.id});var M=O.hasMarkers(A)&&A.marker.maxdisplayed>0;R.visible||x.visible||(_=[]);var T=c.select(this).selectAll("g.errorbar").data(_,S);if(T.exit().remove(),_.length){x.visible||T.selectAll("path.xerror").remove(),R.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var E=T.enter().append("g").classed("errorbar",!0);m&&E.style("opacity",0).transition().duration(a.duration).style("opacity",1),i.setClipUrl(T,p.layerClipId,w),T.each(function(C){var L=c.select(this),D=function(j,U,X){var te={x:U.c2p(j.x),y:X.c2p(j.y)};return j.yh!==void 0&&(te.yh=X.c2p(j.yh),te.ys=X.c2p(j.ys),b(te.ys)||(te.noYS=!0,te.ys=X.c2p(j.ys,!0))),j.xh!==void 0&&(te.xh=U.c2p(j.xh),te.xs=U.c2p(j.xs),b(te.xs)||(te.noXS=!0,te.xs=U.c2p(j.xs,!0))),te}(C,u,h);if(!M||C.vis){var k,I=L.select("path.yerror");if(R.visible&&b(D.x)&&b(D.yh)&&b(D.ys)){var z=R.width;k="M"+(D.x-z)+","+D.yh+"h"+2*z+"m-"+z+",0V"+D.ys,D.noYS||(k+="m-"+z+",0h"+2*z),I.size()?m&&(I=I.transition().duration(a.duration).ease(a.easing)):I=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",k)}else I.remove();var $=L.select("path.xerror");if(x.visible&&b(D.y)&&b(D.xh)&&b(D.xs)){var Q=(x.copy_ystyle?R:x).width;k="M"+D.xh+","+(D.y-Q)+"v"+2*Q+"m0,-"+Q+"H"+D.xs,D.noXS||(k+="m0,-"+Q+"v"+2*Q),$.size()?m&&($=$.transition().duration(a.duration).ease(a.easing)):$=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0),$.attr("d",k)}else $.remove()}})}})}},92036:function(d,l,n){var c=n(33428),b=n(76308);d.exports=function(i){i.each(function(O){var w=O[0].trace,y=w.error_y||{},p=w.error_x||{},a=c.select(this);a.selectAll("path.yerror").style("stroke-width",y.thickness+"px").call(b.stroke,y.color),p.copy_ystyle&&(p=y),a.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(b.stroke,p.color)})}},55756:function(d,l,n){var c=n(25376),b=n(65460).hoverlabel,i=n(92880).extendFlat;d.exports={hoverlabel:{bgcolor:i({},b.bgcolor,{arrayOk:!0}),bordercolor:i({},b.bordercolor,{arrayOk:!0}),font:c({arrayOk:!0,editType:"none"}),align:i({},b.align,{arrayOk:!0}),namelength:i({},b.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(d,l,n){var c=n(3400),b=n(24040);function i(O,w,y,p){p=p||c.identity,Array.isArray(O)&&(w[0][y]=p(O))}d.exports=function(O){var w=O.calcdata,y=O._fullLayout;function p(v){return function(_){return c.coerceHoverinfo({hoverinfo:_},{_module:v._module},y)}}for(var a=0;a=0&&u.indexLe[0]._length||bt<0||bt>We[0]._length)return v.unhoverRaw(_e,Se)}else vt="xpx"in Se?Se.xpx:Le[0]._length/2,bt="ypx"in Se?Se.ypx:We[0]._length/2;if(Se.pointerX=vt+Le[0]._offset,Se.pointerY=bt+We[0]._offset,nt="xval"in Se?A.flat(ze,Se.xval):A.p2c(Le,vt),ot="yval"in Se?A.flat(ze,Se.yval):A.p2c(We,bt),!b(nt[0])||!b(ot[0]))return O.warn("Fx.hover failed",Se,_e),v.unhoverRaw(_e,Se)}var zt=1/0;function Rt(Pn,Yn){for(ht=0;ht_t&&(nn.splice(0,_t),zt=nn[0].distance),$e&&je!==0&&nn.length===0){Ct.distance=je,Ct.index=!1;var Qr=wt._module.hoverPoints(Ct,en,Gt,"closest",{hoverLayer:De._hoverlayer});if(Qr&&(Qr=Qr.filter(function(zn){return zn.spikeDistance<=je})),Qr&&Qr.length){var Wr,bo=Qr.filter(function(zn){return zn.xa.showspikes&&zn.xa.spikesnap!=="hovered data"});if(bo.length){var Bn=bo[0];b(Bn.x0)&&b(Bn.y0)&&(Wr=at(Bn),(!bn.vLinePoint||bn.vLinePoint.spikeDistance>Wr.spikeDistance)&&(bn.vLinePoint=Wr))}var hr=Qr.filter(function(zn){return zn.ya.showspikes&&zn.ya.spikesnap!=="hovered data"});if(hr.length){var hn=hr[0];b(hn.x0)&&b(hn.y0)&&(Wr=at(hn),(!bn.hLinePoint||bn.hLinePoint.spikeDistance>Wr.spikeDistance)&&(bn.hLinePoint=Wr))}}}}}function it(Pn,Yn,br){for(var dr,Cr=null,io=1/0,Qr=0;Qr0&&Math.abs(Pn.distance)dn-1;vn--)In(nn[vn]);nn=Nn,Xt()}var jn=_e._hoverdata,xr=[],Sr=me(_e),ar=he(_e);for(Ge=0;Ge1||nn.length>1)||Ee==="closest"&&mn&&nn.length>1,so=m.combine(De.plot_bgcolor||m.background,De.paper_bgcolor),So=U(nn,{gd:_e,hovermode:Ee,rotateLabels:Co,bgColor:so,container:De._hoverlayer,outerContainer:De._paper.node(),commonLabelOpts:De.hoverlabel,hoverdistance:De.hoverdistance}),go=So.hoverLabels;if(A.isUnifiedHover(Ee)||(function(Pn,Yn,br,dr){var Cr,io,Qr,Wr,bo,Bn,hr,hn=Yn?"xa":"ya",zn=Yn?"ya":"xa",Zn=0,yr=1,gr=Pn.size(),vr=new Array(gr),nr=0,Qn=dr.minX,Hn=dr.maxX,tr=dr.minY,cr=dr.maxY,Lr=function(po){return po*br._invScaleX},Er=function(po){return po*br._invScaleY};function Vr(po){var qo=po[0],Ao=po[po.length-1];if(io=qo.pmin-qo.pos-qo.dp+qo.size,Qr=Ao.pos+Ao.dp+Ao.size-qo.pmax,io>.01){for(bo=po.length-1;bo>=0;bo--)po[bo].dp+=io;Cr=!1}if(!(Qr<.01)){if(io<-.01){for(bo=po.length-1;bo>=0;bo--)po[bo].dp-=Qr;Cr=!1}if(Cr){var oi=0;for(Wr=0;Wrqo.pmax&&oi++;for(Wr=po.length-1;Wr>=0&&!(oi<=0);Wr--)(Bn=po[Wr]).pos>qo.pmax-1&&(Bn.del=!0,oi--);for(Wr=0;Wr=0;bo--)po[bo].dp-=Qr;for(Wr=po.length-1;Wr>=0&&!(oi<=0);Wr--)(Bn=po[Wr]).pos+Bn.dp+Bn.size>qo.pmax&&(Bn.del=!0,oi--)}}}for(Pn.each(function(po){var qo=po[hn],Ao=po[zn],oi=qo._id.charAt(0)==="x",ko=qo.range;nr===0&&ko&&ko[0]>ko[1]!==oi&&(yr=-1);var ra=0,mo=oi?br.width:br.height;if(br.hovermode==="x"||br.hovermode==="y"){var Aa,Xl,Na=te(po,Yn),us=po.anchor,wc=us==="end"?-1:1;if(us==="middle")Xl=(Aa=po.crossPos+(oi?Er(Na.y-po.by/2):Lr(po.bx/2+po.tx2width/2)))+(oi?Er(po.by):Lr(po.bx));else if(oi)Xl=(Aa=po.crossPos+Er(k+Na.y)-Er(po.by/2-k))+Er(po.by);else{var ga=Lr(wc*k+Na.x),Ku=ga+Lr(wc*po.bx);Aa=po.crossPos+Math.min(ga,Ku),Xl=po.crossPos+Math.max(ga,Ku)}oi?tr!==void 0&&cr!==void 0&&Math.min(Xl,cr)-Math.max(Aa,tr)>1&&(Ao.side==="left"?(ra=Ao._mainLinePosition,mo=br.width):mo=Ao._mainLinePosition):Qn!==void 0&&Hn!==void 0&&Math.min(Xl,Hn)-Math.max(Aa,Qn)>1&&(Ao.side==="top"?(ra=Ao._mainLinePosition,mo=br.height):mo=Ao._mainLinePosition)}vr[nr++]=[{datum:po,traceIndex:po.trace.index,dp:0,pos:po.pos,posref:po.posref,size:po.by*(oi?C:1)/2,pmin:ra,pmax:mo}]}),vr.sort(function(po,qo){return po[0].posref-qo[0].posref||yr*(qo[0].traceIndex-po[0].traceIndex)});!Cr&&Zn<=gr;){for(Zn++,Cr=!0,Wr=0;Wr.01&&fr.pmin===Eo.pmin&&fr.pmax===Eo.pmax){for(bo=_o.length-1;bo>=0;bo--)_o[bo].dp+=io;for(to.push.apply(to,_o),vr.splice(Wr+1,1),hr=0,bo=to.length-1;bo>=0;bo--)hr+=to[bo].dp;for(Qr=hr/to.length,bo=to.length-1;bo>=0;bo--)to[bo].dp-=Qr;Cr=!1}else Wr++}vr.forEach(Vr)}for(Wr=vr.length-1;Wr>=0;Wr--){var ao=vr[Wr];for(bo=ao.length-1;bo>=0;bo--){var co=ao[bo],Go=co.datum;Go.offset=co.dp,Go.del=co.del}}}(go,Co,De,So.commonLabelBoundingBox),W(go,Co,De._invScaleX,De._invScaleY)),Ie&&Ie.tagName){var li=S.getComponentMethod("annotations","hasClickToShow")(_e,xr);u(c.select(Ie),li?"pointer":"")}Ie&&!Pe&&function(Pn,Yn,br){if(!br||br.length!==Pn._hoverdata.length)return!0;for(var dr=br.length-1;dr>=0;dr--){var Cr=br[dr],io=Pn._hoverdata[dr];if(Cr.curveNumber!==io.curveNumber||String(Cr.pointNumber)!==String(io.pointNumber)||String(Cr.pointNumbers)!==String(io.pointNumbers))return!0}return!1}(_e,0,jn)&&(jn&&_e.emit("plotly_unhover",{event:Se,points:jn}),_e.emit("plotly_hover",{event:Se,points:_e._hoverdata,xaxes:Le,yaxes:We,xvals:nt,yvals:ot}))})(ae,ce,de,ve,ye)})},l.loneHover=function(ae,ce){var de=!0;Array.isArray(ae)||(de=!1,ae=[ae]);var ve=ce.gd,ye=me(ve),_e=he(ve),Se=U(ae.map(function(Ie){var ze=Ie._x0||Ie.x0||Ie.x||0,De=Ie._x1||Ie.x1||Ie.x||0,He=Ie._y0||Ie.y0||Ie.y||0,Ve=Ie._y1||Ie.y1||Ie.y||0,$e=Ie.eventData;if($e){var Oe=Math.min(ze,De),ke=Math.max(ze,De),Le=Math.min(He,Ve),We=Math.max(He,Ve),Ue=Ie.trace;if(S.traceIs(Ue,"gl3d")){var Ze=ve._fullLayout[Ue.scene]._scene.container,Xe=Ze.offsetLeft,tt=Ze.offsetTop;Oe+=Xe,ke+=Xe,Le+=tt,We+=tt}$e.bbox={x0:Oe+_e,x1:ke+_e,y0:Le+ye,y1:We+ye},ce.inOut_bbox&&ce.inOut_bbox.push($e.bbox)}else $e=!1;return{color:Ie.color||m.defaultLine,x0:Ie.x0||Ie.x||0,x1:Ie.x1||Ie.x||0,y0:Ie.y0||Ie.y||0,y1:Ie.y1||Ie.y||0,xLabel:Ie.xLabel,yLabel:Ie.yLabel,zLabel:Ie.zLabel,text:Ie.text,name:Ie.name,idealAlign:Ie.idealAlign,borderColor:Ie.borderColor,fontFamily:Ie.fontFamily,fontSize:Ie.fontSize,fontColor:Ie.fontColor,nameLength:Ie.nameLength,textAlign:Ie.textAlign,trace:Ie.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Ie.hovertemplate||!1,hovertemplateLabels:Ie.hovertemplateLabels||!1,eventData:$e}}),{gd:ve,hovermode:"closest",rotateLabels:!1,bgColor:ce.bgColor||m.background,container:c.select(ce.container),outerContainer:ce.outerContainer||ce.container}).hoverLabels,Te=0,Pe=0;return Se.sort(function(Ie,ze){return Ie.y0-ze.y0}).each(function(Ie,ze){var De=Ie.y0-Ie.by/2;Ie.offset=De-5([\s\S]*)<\/extra>/;function U(ae,ce){var de=ce.gd,ve=de._fullLayout,ye=ce.hovermode,_e=ce.rotateLabels,Se=ce.bgColor,Te=ce.container,Pe=ce.outerContainer,Ie=ce.commonLabelOpts||{};if(ae.length===0)return[[]];var ze=ce.fontFamily||x.HOVERFONT,De=ce.fontSize||x.HOVERFONTSIZE,He=ae[0],Ve=He.xa,$e=He.ya,Oe=ye.charAt(0),ke=Oe+"Label",Le=He[ke];if(Le===void 0&&Ve.type==="multicategory")for(var We=0;Weve.width-ar?(In=ve.width-ar,fn.attr("d","M"+(ar-k)+",0L"+ar+","+Sr+k+"v"+Sr+(2*I+xr.height)+"H-"+ar+"V"+Sr+k+"H"+(ar-2*k)+"Z")):fn.attr("d","M0,0L"+k+","+Sr+k+"H"+ar+"v"+Sr+(2*I+xr.height)+"H-"+ar+"V"+Sr+k+"H-"+k+"Z"),ht.minX=In-ar,ht.maxX=In+ar,Ve.side==="top"?(ht.minY=jn-(2*I+xr.height),ht.maxY=jn-I):(ht.minY=jn+I,ht.maxY=jn+(2*I+xr.height))}else{var Fn,ir,Wn;$e.side==="right"?(Fn="start",ir=1,Wn="",In=Ve._offset+Ve._length):(Fn="end",ir=-1,Wn="-",In=Ve._offset),jn=$e._offset+(He.y0+He.y1)/2,dn.attr("text-anchor",Fn),fn.attr("d","M0,0L"+Wn+k+","+k+"V"+(I+xr.height/2)+"h"+Wn+(2*I+xr.width)+"V-"+(I+xr.height/2)+"H"+Wn+k+"V-"+k+"Z"),ht.minY=jn-(I+xr.height/2),ht.maxY=jn+(I+xr.height/2),$e.side==="right"?(ht.minX=In+k,ht.maxX=In+k+(2*I+xr.width)):(ht.minX=In-k-(2*I+xr.width),ht.maxX=In-k);var Kn,_r=xr.height/2,Ir=Ze-xr.top-_r,zr="clip"+ve._uid+"commonlabel"+$e._id;if(In=0?bt:lt+Rt=0?lt:Qt+Rt=0?mn:vt+it=0?vt:Pt+it=0,Kt.idealAlign!=="top"&&Kr||!Co?Kr?(_r+=zr/2,Kt.anchor="start"):Kt.anchor="middle":(_r-=zr/2,Kt.anchor="end"),Kt.crossPos=_r;else{if(Kt.pos=_r,Kr=Kn+Ir/2+so<=Xe,Co=Kn-Ir/2-so>=0,Kt.idealAlign!=="left"&&Kr||!Co)if(Kr)Kn+=Ir/2,Kt.anchor="start";else{Kt.anchor="middle";var So=so/2,go=Kn+So-Xe,li=Kn-So;go>0&&(Kn-=go),li<0&&(Kn+=-li)}else Kn-=Ir/2,Kt.anchor="end";Kt.crossPos=Kn}Sr.attr("text-anchor",Kt.anchor),Fn&&ar.attr("text-anchor",Kt.anchor),fn.attr("transform",w(Kn,_r)+(_e?y(T):""))}),{hoverLabels:tn,commonLabelBoundingBox:ht}}function X(ae,ce,de,ve,ye,_e){var Se="",Te="";ae.nameOverride!==void 0&&(ae.name=ae.nameOverride),ae.name&&(ae.trace._meta&&(ae.name=O.templateString(ae.name,ae.trace._meta)),Se=Y(ae.name,ae.nameLength));var Pe=de.charAt(0),Ie=Pe==="x"?"y":"x";ae.zLabel!==void 0?(ae.xLabel!==void 0&&(Te+="x: "+ae.xLabel+"
"),ae.yLabel!==void 0&&(Te+="y: "+ae.yLabel+"
"),ae.trace.type!=="choropleth"&&ae.trace.type!=="choroplethmapbox"&&(Te+=(Te?"z: ":"")+ae.zLabel)):ce&&ae[Pe+"Label"]===ye?Te=ae[Ie+"Label"]||"":ae.xLabel===void 0?ae.yLabel!==void 0&&ae.trace.type!=="scattercarpet"&&(Te=ae.yLabel):Te=ae.yLabel===void 0?ae.xLabel:"("+ae.xLabel+", "+ae.yLabel+")",!ae.text&&ae.text!==0||Array.isArray(ae.text)||(Te+=(Te?"
":"")+ae.text),ae.extraText!==void 0&&(Te+=(Te?"
":"")+ae.extraText),_e&&Te===""&&!ae.hovertemplate&&(Se===""&&_e.remove(),Te=Se);var ze=ae.hovertemplate||!1;if(ze){var De=ae.hovertemplateLabels||ae;ae[Pe+"Label"]!==ye&&(De[Pe+"other"]=De[Pe+"Val"],De[Pe+"otherLabel"]=De[Pe+"Label"]),Te=(Te=O.hovertemplateString(ze,De,ve._d3locale,ae.eventData[0]||{},ae.trace._meta)).replace(j,function(He,Ve){return Se=Y(Ve,ae.nameLength),""})}return[Te,Se]}function te(ae,ce){var de=0,ve=ae.offset;return ce&&(ve*=-D,de=ae.offset*L),{x:de,y:ve}}function W(ae,ce,de,ve){var ye=function(Se){return Se*de},_e=function(Se){return Se*ve};ae.each(function(Se){var Te=c.select(this);if(Se.del)return Te.remove();var Pe,Ie,ze,De,He=Te.select("text.nums"),Ve=Se.anchor,$e=Ve==="end"?-1:1,Oe=(De=(ze=(Ie={start:1,end:-1,middle:0}[(Pe=Se).anchor])*(k+I))+Ie*(Pe.txwidth+I),Pe.anchor==="middle"&&(ze-=Pe.tx2width/2,De+=Pe.txwidth/2+I),{alignShift:Ie,textShiftX:ze,text2ShiftX:De}),ke=te(Se,ce),Le=ke.x,We=ke.y,Ue=Ve==="middle";Te.select("path").attr("d",Ue?"M-"+ye(Se.bx/2+Se.tx2width/2)+","+_e(We-Se.by/2)+"h"+ye(Se.bx)+"v"+_e(Se.by)+"h-"+ye(Se.bx)+"Z":"M0,0L"+ye($e*k+Le)+","+_e(k+We)+"v"+_e(Se.by/2-k)+"h"+ye($e*Se.bx)+"v-"+_e(Se.by)+"H"+ye($e*k+Le)+"V"+_e(We-k)+"Z");var Ze=Le+Oe.textShiftX,Xe=We+Se.ty0-Se.by/2+I,tt=Se.textAlign||"auto";tt!=="auto"&&(tt==="left"&&Ve!=="start"?(He.attr("text-anchor","start"),Ze=Ue?-Se.bx/2-Se.tx2width/2+I:-Se.bx-I):tt==="right"&&Ve!=="end"&&(He.attr("text-anchor","end"),Ze=Ue?Se.bx/2-Se.tx2width/2-I:Se.bx+I)),He.call(a.positionText,ye(Ze),_e(Xe)),Se.tx2width&&(Te.select("text.name").call(a.positionText,ye(Oe.text2ShiftX+Oe.alignShift*I+Le),_e(We+Se.ty0-Se.by/2+I)),Te.select("rect").call(h.setRect,ye(Oe.text2ShiftX+(Oe.alignShift-1)*Se.tx2width/2+Le),_e(We-Se.by/2-1),ye(Se.tx2width),_e(Se.by+2)))})}function K(ae,ce){var de=ae.index,ve=ae.trace||{},ye=ae.cd[0],_e=ae.cd[de]||{};function Se(He){return He||b(He)&&He===0}var Te=Array.isArray(de)?function(He,Ve){var $e=O.castOption(ye,de,He);return Se($e)?$e:O.extractOption({},ve,"",Ve)}:function(He,Ve){return O.extractOption(_e,ve,He,Ve)};function Pe(He,Ve,$e){var Oe=Te(Ve,$e);Se(Oe)&&(ae[He]=Oe)}if(Pe("hoverinfo","hi","hoverinfo"),Pe("bgcolor","hbg","hoverlabel.bgcolor"),Pe("borderColor","hbc","hoverlabel.bordercolor"),Pe("fontFamily","htf","hoverlabel.font.family"),Pe("fontSize","hts","hoverlabel.font.size"),Pe("fontColor","htc","hoverlabel.font.color"),Pe("nameLength","hnl","hoverlabel.namelength"),Pe("textAlign","hta","hoverlabel.align"),ae.posref=ce==="y"||ce==="closest"&&ve.orientation==="h"?ae.xa._offset+(ae.x0+ae.x1)/2:ae.ya._offset+(ae.y0+ae.y1)/2,ae.x0=O.constrain(ae.x0,0,ae.xa._length),ae.x1=O.constrain(ae.x1,0,ae.xa._length),ae.y0=O.constrain(ae.y0,0,ae.ya._length),ae.y1=O.constrain(ae.y1,0,ae.ya._length),ae.xLabelVal!==void 0&&(ae.xLabel="xLabel"in ae?ae.xLabel:_.hoverLabelText(ae.xa,ae.xLabelVal,ve.xhoverformat),ae.xVal=ae.xa.c2d(ae.xLabelVal)),ae.yLabelVal!==void 0&&(ae.yLabel="yLabel"in ae?ae.yLabel:_.hoverLabelText(ae.ya,ae.yLabelVal,ve.yhoverformat),ae.yVal=ae.ya.c2d(ae.yLabelVal)),ae.zLabelVal!==void 0&&ae.zLabel===void 0&&(ae.zLabel=String(ae.zLabelVal)),!(isNaN(ae.xerr)||ae.xa.type==="log"&&ae.xerr<=0)){var Ie=_.tickText(ae.xa,ae.xa.c2l(ae.xerr),"hover").text;ae.xerrneg!==void 0?ae.xLabel+=" +"+Ie+" / -"+_.tickText(ae.xa,ae.xa.c2l(ae.xerrneg),"hover").text:ae.xLabel+=" ± "+Ie,ce==="x"&&(ae.distance+=1)}if(!(isNaN(ae.yerr)||ae.ya.type==="log"&&ae.yerr<=0)){var ze=_.tickText(ae.ya,ae.ya.c2l(ae.yerr),"hover").text;ae.yerrneg!==void 0?ae.yLabel+=" +"+ze+" / -"+_.tickText(ae.ya,ae.ya.c2l(ae.yerrneg),"hover").text:ae.yLabel+=" ± "+ze,ce==="y"&&(ae.distance+=1)}var De=ae.hoverinfo||ae.trace.hoverinfo;return De&&De!=="all"&&((De=Array.isArray(De)?De:De.split("+")).indexOf("x")===-1&&(ae.xLabel=void 0),De.indexOf("y")===-1&&(ae.yLabel=void 0),De.indexOf("z")===-1&&(ae.zLabel=void 0),De.indexOf("text")===-1&&(ae.text=void 0),De.indexOf("name")===-1&&(ae.name=void 0)),ae}function oe(ae,ce,de){var ve,ye,_e=de.container,Se=de.fullLayout,Te=Se._size,Pe=de.event,Ie=!!ce.hLinePoint,ze=!!ce.vLinePoint;if(_e.selectAll(".spikeline").remove(),ze||Ie){var De=m.combine(Se.plot_bgcolor,Se.paper_bgcolor);if(Ie){var He,Ve,$e=ce.hLinePoint;ve=$e&&$e.xa,(ye=$e&&$e.ya).spikesnap==="cursor"?(He=Pe.pointerX,Ve=Pe.pointerY):(He=ve._offset+$e.x,Ve=ye._offset+$e.y);var Oe,ke,Le=i.readability($e.color,De)<1.5?m.contrast(De):$e.color,We=ye.spikemode,Ue=ye.spikethickness,Ze=ye.spikecolor||Le,Xe=_.getPxPosition(ae,ye);if(We.indexOf("toaxis")!==-1||We.indexOf("across")!==-1){if(We.indexOf("toaxis")!==-1&&(Oe=Xe,ke=He),We.indexOf("across")!==-1){var tt=ye._counterDomainMin,Ee=ye._counterDomainMax;ye.anchor==="free"&&(tt=Math.min(tt,ye.position),Ee=Math.max(Ee,ye.position)),Oe=Te.l+tt*Te.w,ke=Te.l+Ee*Te.w}_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue,stroke:Ze,"stroke-dasharray":h.dashStyle(ye.spikedash,Ue)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}We.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Xe+(ye.side!=="right"?Ue:-Ue),cy:Ve,r:Ue,fill:Ze}).classed("spikeline",!0)}if(ze){var Ne,je,nt=ce.vLinePoint;ve=nt&&nt.xa,ye=nt&&nt.ya,ve.spikesnap==="cursor"?(Ne=Pe.pointerX,je=Pe.pointerY):(Ne=ve._offset+nt.x,je=ye._offset+nt.y);var ot,Ge,ht=i.readability(nt.color,De)<1.5?m.contrast(De):nt.color,pt=ve.spikemode,wt=ve.spikethickness,Dt=ve.spikecolor||ht,It=_.getPxPosition(ae,ve);if(pt.indexOf("toaxis")!==-1||pt.indexOf("across")!==-1){if(pt.indexOf("toaxis")!==-1&&(ot=It,Ge=je),pt.indexOf("across")!==-1){var qt=ve._counterDomainMin,en=ve._counterDomainMax;ve.anchor==="free"&&(qt=Math.min(qt,ve.position),en=Math.max(en,ve.position)),ot=Te.t+(1-en)*Te.h,Ge=Te.t+(1-qt)*Te.h}_e.insert("line",":first-child").attr({x1:Ne,x2:Ne,y1:ot,y2:Ge,"stroke-width":wt,stroke:Dt,"stroke-dasharray":h.dashStyle(ve.spikedash,wt)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Ne,x2:Ne,y1:ot,y2:Ge,"stroke-width":wt+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}pt.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Ne,cy:It-(ve.side!=="top"?wt:-wt),r:wt,fill:Dt}).classed("spikeline",!0)}}}function q(ae,ce){return!ce||ce.vLinePoint!==ae._spikepoints.vLinePoint||ce.hLinePoint!==ae._spikepoints.hLinePoint}function Y(ae,ce){return a.plainText(ae||"",{len:ce,allowedTags:["br","sub","sup","b","i","em"]})}function ee(ae,ce,de){var ve=ce[ae+"a"],ye=ce[ae+"Val"],_e=ce.cd[0];if(ve.type==="category"||ve.type==="multicategory")ye=ve._categoriesMap[ye];else if(ve.type==="date"){var Se=ce.trace[ae+"periodalignment"];if(Se){var Te=ce.cd[ce.index],Pe=Te[ae+"Start"];Pe===void 0&&(Pe=Te[ae]);var Ie=Te[ae+"End"];Ie===void 0&&(Ie=Te[ae]);var ze=Ie-Pe;Se==="end"?ye+=ze:Se==="middle"&&(ye+=ze/2)}ye=ve.d2c(ye)}return _e&&_e.t&&_e.t.posLetter===ve._id&&(de.boxmode!=="group"&&de.violinmode!=="group"||(ye+=_e.t.dPos)),ye}function me(ae){return ae.offsetTop+ae.clientTop}function he(ae){return ae.offsetLeft+ae.clientLeft}function se(ae,ce){var de=ae._fullLayout,ve=ce.getBoundingClientRect(),ye=ve.left,_e=ve.top,Se=ye+ve.width,Te=_e+ve.height,Pe=O.apply3DTransform(de._invTransform)(ye,_e),Ie=O.apply3DTransform(de._invTransform)(Se,Te),ze=Pe[0],De=Pe[1],He=Ie[0],Ve=Ie[1];return{x:ze,y:De,width:He-ze,height:Ve-De,top:Math.min(De,Ve),left:Math.min(ze,He),right:Math.max(ze,He),bottom:Math.max(De,Ve)}}},16132:function(d,l,n){var c=n(3400),b=n(76308),i=n(10624).isUnifiedHover;d.exports=function(O,w,y,p){p=p||{};var a=w.legend;function u(h){p.font[h]||(p.font[h]=a?w.legend.font[h]:w.font[h])}w&&i(w.hovermode)&&(p.font||(p.font={}),u("size"),u("family"),u("color"),a?(p.bgcolor||(p.bgcolor=b.combine(w.legend.bgcolor,w.paper_bgcolor)),p.bordercolor||(p.bordercolor=w.legend.bordercolor)):p.bgcolor||(p.bgcolor=w.paper_bgcolor)),y("hoverlabel.bgcolor",p.bgcolor),y("hoverlabel.bordercolor",p.bordercolor),y("hoverlabel.namelength",p.namelength),c.coerceFont(y,"hoverlabel.font",p.font),y("hoverlabel.align",p.align)}},41008:function(d,l,n){var c=n(3400),b=n(65460);d.exports=function(i,O){function w(y,p){return O[y]!==void 0?O[y]:c.coerce(i,O,b,y,p)}return w("clickmode"),w("hovermode")}},93024:function(d,l,n){var c=n(33428),b=n(3400),i=n(86476),O=n(10624),w=n(65460),y=n(83292);d.exports={moduleType:"component",name:"fx",constants:n(92456),schema:{layout:w},attributes:n(55756),layoutAttributes:w,supplyLayoutGlobalDefaults:n(81976),supplyDefaults:n(95448),supplyLayoutDefaults:n(88336),calc:n(55056),getDistanceFunction:O.getDistanceFunction,getClosest:O.getClosest,inbox:O.inbox,quadrature:O.quadrature,appendArrayPointValue:O.appendArrayPointValue,castHoverOption:function(p,a,u){return b.castOption(p,a,"hoverlabel."+u)},castHoverinfo:function(p,a,u){return b.castOption(p,u,"hoverinfo",function(h){return b.coerceHoverinfo({hoverinfo:h},{_module:p._module},a)})},hover:y.hover,unhover:i.unhover,loneHover:y.loneHover,loneUnhover:function(p){var a=b.isD3Selection(p)?p:c.select(p);a.selectAll("g.hovertext").remove(),a.selectAll(".spikeline").remove()},click:n(62376)}},65460:function(d,l,n){var c=n(92456),b=n(25376),i=b({editType:"none"});i.family.dflt=c.HOVERFONT,i.size.dflt=c.HOVERFONTSIZE,d.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:i,grouptitlefont:b({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},88336:function(d,l,n){var c=n(3400),b=n(65460),i=n(41008),O=n(16132);d.exports=function(w,y){function p(m,v){return c.coerce(w,y,b,m,v)}i(w,y)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var a=y._has("mapbox"),u=y._has("geo"),h=y._basePlotModules.length;y.dragmode==="zoom"&&((a||u)&&h===1||a&&u&&h===2)&&(y.dragmode="pan"),O(w,y,p),c.coerceFont(p,"hoverlabel.grouptitlefont",y.hoverlabel.font)}},81976:function(d,l,n){var c=n(3400),b=n(16132),i=n(65460);d.exports=function(O,w){b(O,w,function(y,p){return c.coerce(O,w,i,y,p)})}},12704:function(d,l,n){var c=n(3400),b=n(53756).counter,i=n(86968).u,O=n(33816).idRegex,w=n(31780),y={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[b("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[O.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[O.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(h,m,v){var _=m[v+"axes"],S=Object.keys((h._splomAxes||{})[v]||{});return Array.isArray(_)?_:S.length?S:void 0}function a(h,m,v,_,S,A){var x=m(h+"gap",v),R=m("domain."+h);m(h+"side",_);for(var M=new Array(S),T=R[0],E=(R[1]-T)/(S-x),C=E*(1-x),L=0;L1){R||M||T||j("pattern")==="independent"&&(R=!0),C._hasSubplotGrid=R;var k,I,z=j("roworder")==="top to bottom",$=R?.2:.1,Q=R?.3:.1;E&&m._splomGridDflt&&(k=m._splomGridDflt.xside,I=m._splomGridDflt.yside),C._domains={x:a("x",j,$,k,D),y:a("y",j,Q,I,L,z)}}else delete m.grid}function j(U,X){return c.coerce(v,C,y,U,X)}},contentDefaults:function(h,m){var v=m.grid;if(v&&v._domains){var _,S,A,x,R,M,T,E=h.grid||{},C=m._subplots,L=v._hasSubplotGrid,D=v.rows,k=v.columns,I=v.pattern==="independent",z=v._axisMap={};if(L){var $=E.subplots||[];M=v.subplots=new Array(D);var Q=1;for(_=0;_(u==="legend"?1:0));if(Q===!1&&(m[u]=void 0),(Q!==!1||_.uirevision)&&(A("uirevision",m.uirevision),Q!==!1)){A("borderwidth");var j,U,X,te=A("orientation")==="h",W=A("yref")==="paper",K=A("xref")==="paper",oe="left";if(te?(j=0,c.getComponentMethod("rangeslider","isVisible")(h.xaxis)?W?(U=1.1,X="bottom"):(U=1,X="top"):W?(U=-.1,X="top"):(U=0,X="bottom")):(U=1,X="auto",K?j=1.02:(j=1,oe="right")),b.coerce(_,S,{x:{valType:"number",editType:"legend",min:K?-2:0,max:K?3:1,dflt:j}},"x"),b.coerce(_,S,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:U}},"y"),A("traceorder",D),p.isGrouped(m[u])&&A("tracegroupgap"),A("entrywidth"),A("entrywidthmode"),A("itemsizing"),A("itemwidth"),A("itemclick"),A("itemdoubleclick"),A("groupclick"),A("xanchor",oe),A("yanchor",X),A("valign"),b.noneOrAll(_,S,["x","y"]),A("title.text")){A("title.side",te?"left":"top");var q=b.extendFlat({},x,{size:b.bigFont(x.size)});b.coerceFont(A,"title.font",q)}}}}d.exports=function(u,h,m){var v,_=m.slice(),S=h.shapes;if(S)for(v=0;v1)}var ve=q.hiddenlabels||[];if(!(ee||q.showlegend&&me.length))return K.selectAll("."+Y).remove(),q._topdefs.select("#"+W).remove(),i.autoMargin(X,Y);var ye=b.ensureSingle(K,"g",Y,function(Ve){ee||Ve.attr("pointer-events","all")}),_e=b.ensureSingleById(q._topdefs,"clipPath",W,function(Ve){Ve.append("rect")}),Se=b.ensureSingle(ye,"rect","bg",function(Ve){Ve.attr("shape-rendering","crispEdges")});Se.call(a.stroke,oe.bordercolor).call(a.fill,oe.bgcolor).style("stroke-width",oe.borderwidth+"px");var Te,Pe=b.ensureSingle(ye,"g","scrollbox"),Ie=oe.title;oe._titleWidth=0,oe._titleHeight=0,Ie.text?((Te=b.ensureSingle(Pe,"text",Y+"titletext")).attr("text-anchor","start").call(p.font,Ie.font).text(Ie.text),$(Te,Pe,X,oe,T)):Pe.selectAll("."+Y+"titletext").remove();var ze=b.ensureSingle(ye,"rect","scrollbar",function(Ve){Ve.attr(m.scrollBarEnterAttrs).call(a.fill,m.scrollBarColor)}),De=Pe.selectAll("g.groups").data(me);De.enter().append("g").attr("class","groups"),De.exit().remove();var He=De.selectAll("g.traces").data(b.identity);He.enter().append("g").attr("class","traces"),He.exit().remove(),He.style("opacity",function(Ve){var $e=Ve[0].trace;return O.traceIs($e,"pie-like")?ve.indexOf(Ve[0].label)!==-1?.5:1:$e.visible==="legendonly"?.5:1}).each(function(){c.select(this).call(k,X,oe)}).call(R,X,oe).each(function(){ee||c.select(this).call(z,X,Y)}),b.syncOrAsync([i.previousPromises,function(){return function(Ve,$e,Oe,ke){var Le=Ve._fullLayout,We=U(ke);ke||(ke=Le[We]);var Ue=Le._size,Ze=M.isVertical(ke),Xe=M.isGrouped(ke),tt=ke.entrywidthmode==="fraction",Ee=ke.borderwidth,Ne=2*Ee,je=m.itemGap,nt=ke.itemwidth+2*je,ot=2*(Ee+je),Ge=j(ke),ht=ke.y<0||ke.y===0&&Ge==="top",pt=ke.y>1||ke.y===1&&Ge==="bottom",wt=ke.tracegroupgap,Dt={};ke._maxHeight=Math.max(ht||pt?Le.height/2:Ue.h,30);var It=0;ke._width=0,ke._height=0;var qt=function(Xt){var Yt=0,Qt=0,Pt=Xt.title.side;return Pt&&(Pt.indexOf("left")!==-1&&(Yt=Xt._titleWidth),Pt.indexOf("top")!==-1&&(Qt=Xt._titleHeight)),[Yt,Qt]}(ke);if(Ze)Oe.each(function(Xt){var Yt=Xt[0].height;p.setTranslate(this,Ee+qt[0],Ee+qt[1]+ke._height+Yt/2+je),ke._height+=Yt,ke._width=Math.max(ke._width,Xt[0].width)}),It=nt+ke._width,ke._width+=je+nt+Ne,ke._height+=ot,Xe&&($e.each(function(Xt,Yt){p.setTranslate(this,0,Yt*ke.tracegroupgap)}),ke._height+=(ke._lgroupsLength-1)*ke.tracegroupgap);else{var en=Q(ke),Gt=ke.x<0||ke.x===0&&en==="right",Ct=ke.x>1||ke.x===1&&en==="left",_t=pt||ht,nn=Le.width/2;ke._maxWidth=Math.max(Gt?_t&&en==="left"?Ue.l+Ue.w:nn:Ct?_t&&en==="right"?Ue.r+Ue.w:nn:Ue.w,2*nt);var gn=0,bn=0;Oe.each(function(Xt){var Yt=L(Xt,ke,nt);gn=Math.max(gn,Yt),bn+=Yt}),It=null;var mn=0;if(Xe){var vt=0,bt=0,lt=0;$e.each(function(){var Xt=0,Yt=0;c.select(this).selectAll("g.traces").each(function(Pt){var tn=L(Pt,ke,nt),Kt=Pt[0].height;p.setTranslate(this,qt[0],qt[1]+Ee+je+Kt/2+Yt),Yt+=Kt,Xt=Math.max(Xt,tn),Dt[Pt[0].trace.legendgroup]=Xt});var Qt=Xt+je;bt>0&&Qt+Ee+bt>ke._maxWidth?(mn=Math.max(mn,bt),bt=0,lt+=vt+wt,vt=Yt):vt=Math.max(vt,Yt),p.setTranslate(this,bt,lt),bt+=Qt}),ke._width=Math.max(mn,bt)+Ee,ke._height=lt+vt+ot}else{var yt=Oe.size(),zt=bn+Ne+(yt-1)*je=ke._maxWidth&&(mn=Math.max(mn,Lt),it=0,at+=Rt,ke._height+=Rt,Rt=0),p.setTranslate(this,qt[0]+Ee+it,qt[1]+Ee+at+Yt/2+je),Lt=it+Qt+je,it+=Pt,Rt=Math.max(Rt,Yt)}),zt?(ke._width=it+Ne,ke._height=Rt+ot):(ke._width=Math.max(mn,Lt)+Ne,ke._height+=Rt+ot)}}ke._width=Math.ceil(Math.max(ke._width+qt[0],ke._titleWidth+2*(Ee+m.titlePad))),ke._height=Math.ceil(Math.max(ke._height+qt[1],ke._titleHeight+2*(Ee+m.itemGap))),ke._effHeight=Math.min(ke._height,ke._maxHeight);var xt=Ve._context.edits,Zt=xt.legendText||xt.legendPosition;Oe.each(function(Xt){var Yt=c.select(this).select("."+We+"toggle"),Qt=Xt[0].height,Pt=Xt[0].trace.legendgroup,tn=L(Xt,ke,nt);Xe&&Pt!==""&&(tn=Dt[Pt]);var Kt=Zt?nt:It||tn;Ze||tt||(Kt+=je/2),p.setRect(Yt,0,-Qt/2,Kt,Qt)})}(X,De,He,oe)},function(){var Ve,$e,Oe,ke,Le=q._size,We=oe.borderwidth,Ue=oe.xref==="paper",Ze=oe.yref==="paper";if(Ie.text&&function(_t,nn,gn){if(nn.title.side==="top center"||nn.title.side==="top right"){var bn=nn.title.font.size*_,mn=0,vt=_t.node(),bt=p.bBox(vt).width;nn.title.side==="top center"?mn=.5*(nn._width-2*gn-2*m.titlePad-bt):nn.title.side==="top right"&&(mn=nn._width-2*gn-2*m.titlePad-bt),u.positionText(_t,gn+m.titlePad+mn,gn+bn)}}(Te,oe,We),!ee){var Xe,tt;Xe=Ue?Le.l+Le.w*oe.x-S[Q(oe)]*oe._width:q.width*oe.x-S[Q(oe)]*oe._width,tt=Ze?Le.t+Le.h*(1-oe.y)-S[j(oe)]*oe._effHeight:q.height*(1-oe.y)-S[j(oe)]*oe._effHeight;var Ee=function(_t,nn,gn,bn){var mn=_t._fullLayout,vt=mn[nn],bt=Q(vt),lt=j(vt),yt=vt.xref==="paper",zt=vt.yref==="paper";_t._fullLayout._reservedMargin[nn]={};var Rt=vt.y<.5?"b":"t",it=vt.x<.5?"l":"r",at={r:mn.width-gn,l:gn+vt._width,b:mn.height-bn,t:bn+vt._effHeight};if(yt&&zt)return i.autoMargin(_t,nn,{x:vt.x,y:vt.y,l:vt._width*S[bt],r:vt._width*A[bt],b:vt._effHeight*A[lt],t:vt._effHeight*S[lt]});yt?_t._fullLayout._reservedMargin[nn][Rt]=at[Rt]:zt||vt.orientation==="v"?_t._fullLayout._reservedMargin[nn][it]=at[it]:_t._fullLayout._reservedMargin[nn][Rt]=at[Rt]}(X,Y,Xe,tt);if(Ee)return;if(q.margin.autoexpand){var Ne=Xe,je=tt;Xe=Ue?b.constrain(Xe,0,q.width-oe._width):Ne,tt=Ze?b.constrain(tt,0,q.height-oe._effHeight):je,Xe!==Ne&&b.log("Constrain "+Y+".x to make legend fit inside graph"),tt!==je&&b.log("Constrain "+Y+".y to make legend fit inside graph")}p.setTranslate(ye,Xe,tt)}if(ze.on(".drag",null),ye.on("wheel",null),ee||oe._height<=oe._maxHeight||X._context.staticPlot){var nt=oe._effHeight;ee&&(nt=oe._height),Se.attr({width:oe._width-We,height:nt-We,x:We/2,y:We/2}),p.setTranslate(Pe,0,0),_e.select("rect").attr({width:oe._width-2*We,height:nt-2*We,x:We,y:We}),p.setClipUrl(Pe,W,X),p.setRect(ze,0,0,0,0),delete oe._scrollY}else{var ot,Ge,ht,pt=Math.max(m.scrollBarMinHeight,oe._effHeight*oe._effHeight/oe._height),wt=oe._effHeight-pt-2*m.scrollBarMargin,Dt=oe._height-oe._effHeight,It=wt/Dt,qt=Math.min(oe._scrollY||0,Dt);Se.attr({width:oe._width-2*We+m.scrollBarWidth+m.scrollBarMargin,height:oe._effHeight-We,x:We/2,y:We/2}),_e.select("rect").attr({width:oe._width-2*We+m.scrollBarWidth+m.scrollBarMargin,height:oe._effHeight-2*We,x:We,y:We+qt}),p.setClipUrl(Pe,W,X),Ct(qt,pt,It),ye.on("wheel",function(){Ct(qt=b.constrain(oe._scrollY+c.event.deltaY/wt*Dt,0,Dt),pt,It),qt!==0&&qt!==Dt&&c.event.preventDefault()});var en=c.behavior.drag().on("dragstart",function(){var _t=c.event.sourceEvent;ot=_t.type==="touchstart"?_t.changedTouches[0].clientY:_t.clientY,ht=qt}).on("drag",function(){var _t=c.event.sourceEvent;_t.buttons===2||_t.ctrlKey||(Ge=_t.type==="touchmove"?_t.changedTouches[0].clientY:_t.clientY,qt=function(nn,gn,bn){var mn=(bn-gn)/It+nn;return b.constrain(mn,0,Dt)}(ht,ot,Ge),Ct(qt,pt,It))});ze.call(en);var Gt=c.behavior.drag().on("dragstart",function(){var _t=c.event.sourceEvent;_t.type==="touchstart"&&(ot=_t.changedTouches[0].clientY,ht=qt)}).on("drag",function(){var _t=c.event.sourceEvent;_t.type==="touchmove"&&(Ge=_t.changedTouches[0].clientY,qt=function(nn,gn,bn){var mn=(gn-bn)/It+nn;return b.constrain(mn,0,Dt)}(ht,ot,Ge),Ct(qt,pt,It))});Pe.call(Gt)}function Ct(_t,nn,gn){oe._scrollY=X._fullLayout[Y]._scrollY=_t,p.setTranslate(Pe,0,-_t),p.setRect(ze,oe._width,m.scrollBarMargin+_t*gn,m.scrollBarWidth,nn),_e.select("rect").attr("y",We+_t)}X._context.edits.legendPosition&&(ye.classed("cursor-move",!0),y.init({element:ye.node(),gd:X,prepFn:function(){var _t=p.getTranslate(ye);Oe=_t.x,ke=_t.y},moveFn:function(_t,nn){var gn=Oe+_t,bn=ke+nn;p.setTranslate(ye,gn,bn),Ve=y.align(gn,oe._width,Le.l,Le.l+Le.w,oe.xanchor),$e=y.align(bn+oe._height,-oe._height,Le.t+Le.h,Le.t,oe.yanchor)},doneFn:function(){if(Ve!==void 0&&$e!==void 0){var _t={};_t[Y+".x"]=Ve,_t[Y+".y"]=$e,O.call("_guiRelayout",X,_t)}},clickFn:function(_t,nn){var gn=K.selectAll("g.traces").filter(function(){var bn=this.getBoundingClientRect();return nn.clientX>=bn.left&&nn.clientX<=bn.right&&nn.clientY>=bn.top&&nn.clientY<=bn.bottom});gn.size()>0&&D(X,ye,gn,_t,nn)}}))}],X)}}function L(X,te,W){var K=X[0],oe=K.width,q=te.entrywidthmode,Y=K.trace.legendwidth||te.entrywidth;return q==="fraction"?te._maxWidth*Y:W+(Y||oe)}function D(X,te,W,K,oe){var q=W.data()[0][0].trace,Y={event:oe,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:X.data,layout:X.layout,frames:X._transitionData._frames,config:X._context,fullData:X._fullData,fullLayout:X._fullLayout};q._group&&(Y.group=q._group),O.traceIs(q,"pie-like")&&(Y.label=W.datum()[0].label);var ee=w.triggerHandler(X,"plotly_legendclick",Y);if(K===1){if(ee===!1)return;te._clickTimeout=setTimeout(function(){X._fullLayout&&h(W,X,K)},X._context.doubleClickDelay)}else K===2&&(te._clickTimeout&&clearTimeout(te._clickTimeout),X._legendMouseDownTime=0,w.triggerHandler(X,"plotly_legenddoubleclick",Y)!==!1&&ee!==!1&&h(W,X,K))}function k(X,te,W){var K,oe,q=U(W),Y=X.data()[0][0],ee=Y.trace,me=O.traceIs(ee,"pie-like"),he=!W._inHover&&te._context.edits.legendText&&!me,se=W._maxNameLength;Y.groupTitle?(K=Y.groupTitle.text,oe=Y.groupTitle.font):(oe=W.font,W.entries?K=Y.text:(K=me?Y.label:ee.name,ee._meta&&(K=b.templateString(K,ee._meta))));var ae=b.ensureSingle(X,"text",q+"text");ae.attr("text-anchor","start").call(p.font,oe).text(he?I(K,se):K);var ce=W.itemwidth+2*m.itemGap;u.positionText(ae,ce,0),he?ae.call(u.makeEditable,{gd:te,text:K}).call($,X,te,W).on("edit",function(de){this.text(I(de,se)).call($,X,te,W);var ve=Y.trace._fullInput||{},ye={};if(O.hasTransform(ve,"groupby")){var _e=O.getTransformIndices(ve,"groupby"),Se=_e[_e.length-1],Te=b.keyedContainer(ve,"transforms["+Se+"].styles","target","value.name");Te.set(Y.trace._group,de),ye=Te.constructUpdate()}else ye.name=de;return ve._isShape?O.call("_guiRelayout",te,"shapes["+ee.index+"].name",ye.name):O.call("_guiRestyle",te,ye,ee.index)}):$(ae,X,te,W)}function I(X,te){var W=Math.max(4,te);if(X&&X.trim().length>=W/2)return X;for(var K=W-(X=X||"").length;K>0;K--)X+=" ";return X}function z(X,te,W){var K,oe=te._context.doubleClickDelay,q=1,Y=b.ensureSingle(X,"rect",W+"toggle",function(ee){te._context.staticPlot||ee.style("cursor","pointer").attr("pointer-events","all"),ee.call(a.fill,"rgba(0,0,0,0)")});te._context.staticPlot||(Y.on("mousedown",function(){(K=new Date().getTime())-te._legendMouseDownTimeoe&&(q=Math.max(q-1,1)),D(te,ee,X,q,c.event)}}))}function $(X,te,W,K,oe){K._inHover&&X.attr("data-notex",!0),u.convertToTspans(X,W,function(){(function(q,Y,ee,me){var he=q.data()[0][0];if(ee._inHover||!he||he.trace.showlegend){var se=q.select("g[class*=math-group]"),ae=se.node(),ce=U(ee);ee||(ee=Y._fullLayout[ce]);var de,ve,ye=ee.borderwidth,_e=(me===T?ee.title.font:he.groupTitle?he.groupTitle.font:ee.font).size*_;if(ae){var Se=p.bBox(ae);de=Se.height,ve=Se.width,me===T?p.setTranslate(se,ye,ye+.75*de):p.setTranslate(se,0,.25*de)}else{var Te="."+ce+(me===T?"title":"")+"text",Pe=q.select(Te),Ie=u.lineCount(Pe),ze=Pe.node();if(de=_e*Ie,ve=ze?p.bBox(ze).width:0,me===T)ee.title.side==="left"&&(ve+=2*m.itemGap),u.positionText(Pe,ye+m.titlePad,ye+_e);else{var De=2*m.itemGap+ee.itemwidth;he.groupTitle&&(De=m.itemGap,ve-=ee.itemwidth),u.positionText(Pe,De,-_e*((Ie-1)/2-.3))}}me===T?(ee._titleWidth=ve,ee._titleHeight=de):(he.lineHeight=_e,he.height=Math.max(de,16)+3,he.width=ve)}else q.remove()})(te,W,K,oe)})}function Q(X){return b.isRightAnchor(X)?"right":b.isCenterAnchor(X)?"center":"left"}function j(X){return b.isBottomAnchor(X)?"bottom":b.isMiddleAnchor(X)?"middle":"top"}function U(X){return X._id||"legend"}d.exports=function(X,te){if(te)C(X,te);else{var W=X._fullLayout,K=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var Y=c.select(this),ee=Y.attr("class").split(" ")[0];ee.match(E)&&K.indexOf(ee)===-1&&Y.remove()});for(var oe=0;oeQ&&($=Q)}I[y][0]._groupMinRank=$,I[y][0]._preGroupSort=y}var j=function(K,oe){return K.trace.legendrank-oe.trace.legendrank||K._preSort-oe._preSort};for(I.forEach(function(K,oe){K[0]._preGroupSort=oe}),I.sort(function(K,oe){return K[0]._groupMinRank-oe[0]._groupMinRank||K[0]._preGroupSort-oe[0]._preGroupSort}),y=0;yR?R:A}d.exports=function(A,x,R){var M=x._fullLayout;R||(R=M.legend);var T=R.itemsizing==="constant",E=R.itemwidth,C=(E+2*m.itemGap)/2,L=O(C,0),D=function(z,$,Q,j){var U;if(z+1)U=z;else{if(!($&&$.width>0))return 0;U=$.width}return T?j:Math.min(U,Q)};function k(z,$,Q){var j=z[0].trace,U=j.marker||{},X=U.line||{},te=U.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",W=Q?j.visible&&j.type===Q:b.traceIs(j,"bar"),K=c.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(W?[z]:[]);K.enter().append("path").classed("legend"+Q,!0).attr("d",te).attr("transform",L),K.exit().remove(),K.each(function(oe){var q=c.select(this),Y=oe[0],ee=D(Y.mlw,U.line,5,2);q.style("stroke-width",ee+"px");var me=Y.mcc;if(!R._inHover&&"mc"in Y){var he=p(U),se=he.mid;se===void 0&&(se=(he.max+he.min)/2),me=w.tryColorscale(U,"")(se)}var ae=me||Y.mc||U.color,ce=U.pattern,de=ce&&w.getPatternAttr(ce.shape,0,"");if(de){var ve=w.getPatternAttr(ce.bgcolor,0,null),ye=w.getPatternAttr(ce.fgcolor,0,null),_e=ce.fgopacity,Se=S(ce.size,8,10),Te=S(ce.solidity,.5,1),Pe="legend-"+j.uid;q.call(w.pattern,"legend",x,Pe,de,Se,Te,me,ce.fillmode,ve,ye,_e)}else q.call(y.fill,ae);ee&&y.stroke(q,Y.mlc||X.color)})}function I(z,$,Q){var j=z[0],U=j.trace,X=Q?U.visible&&U.type===Q:b.traceIs(U,Q),te=c.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(X?[z]:[]);if(te.enter().append("path").classed("legend"+Q,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),te.exit().remove(),te.size()){var W=U.marker||{},K=D(h(W.line.width,j.pts),W.line,5,2),oe="pieLike",q=i.minExtend(U,{marker:{line:{width:K}}},oe),Y=i.minExtend(j,{trace:q},oe);u(te,Y,q,x)}}A.each(function(z){var $=c.select(this),Q=i.ensureSingle($,"g","layers");Q.style("opacity",z[0].trace.opacity);var j=R.valign,U=z[0].lineHeight,X=z[0].height;if(j!=="middle"&&U&&X){var te={top:1,bottom:-1}[j]*(.5*(U-X+3));Q.attr("transform",O(0,te))}else Q.attr("transform",null);Q.selectAll("g.legendfill").data([z]).enter().append("g").classed("legendfill",!0),Q.selectAll("g.legendlines").data([z]).enter().append("g").classed("legendlines",!0);var W=Q.selectAll("g.legendsymbols").data([z]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([z]).enter().append("g").classed("legendpoints",!0)}).each(function(z){var $,Q=z[0].trace,j=[];if(Q.visible)switch(Q.type){case"histogram2d":case"heatmap":j=[["M-15,-2V4H15V-2Z"]],$=!0;break;case"choropleth":case"choroplethmapbox":j=[["M-6,-6V6H6V-6Z"]],$=!0;break;case"densitymapbox":j=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],$="radial";break;case"cone":j=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],$=!1;break;case"streamtube":j=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],$=!1;break;case"surface":j=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],$=!0;break;case"mesh3d":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!1;break;case"volume":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!0;break;case"isosurface":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],$=!1}var U=c.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(j);U.enter().append("path").classed("legend3dandfriends",!0).attr("transform",L).style("stroke-miterlimit",1),U.exit().remove(),U.each(function(X,te){var W,K=c.select(this),oe=p(Q),q=oe.colorscale,Y=oe.reversescale;if(q){if(!$){var ee=q.length;W=te===0?q[Y?ee-1:0][1]:te===1?q[Y?0:ee-1][1]:q[Math.floor((ee-1)/2)][1]}}else{var me=Q.vertexcolor||Q.facecolor||Q.color;W=i.isArrayOrTypedArray(me)?me[te]||me[0]:me}K.attr("d",X[0]),W?K.call(y.fill,W):K.call(function(he){if(he.size()){var se="legendfill-"+Q.uid;w.gradient(he,x,se,v(Y,$==="radial"),q,"fill")}})})}).each(function(z){var $=z[0].trace,Q=$.type==="waterfall";if(z[0]._distinct&&Q){var j=z[0].trace[z[0].dir].marker;return z[0].mc=j.color,z[0].mlw=j.line.width,z[0].mlc=j.line.color,k(z,this,"waterfall")}var U=[];$.visible&&Q&&(U=z[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var X=c.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(U);X.enter().append("path").classed("legendwaterfall",!0).attr("transform",L).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(te){var W=c.select(this),K=$[te[0]].marker,oe=D(void 0,K.line,5,2);W.attr("d",te[1]).style("stroke-width",oe+"px").call(y.fill,K.color),oe&&W.call(y.stroke,K.line.color)})}).each(function(z){k(z,this,"funnel")}).each(function(z){k(z,this)}).each(function(z){var $=z[0].trace,Q=c.select(this).select("g.legendpoints").selectAll("path.legendbox").data($.visible&&b.traceIs($,"box-violin")?[z]:[]);Q.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),Q.exit().remove(),Q.each(function(){var j=c.select(this);if($.boxpoints!=="all"&&$.points!=="all"||y.opacity($.fillcolor)!==0||y.opacity(($.line||{}).color)!==0){var U=D(void 0,$.line,5,2);j.style("stroke-width",U+"px").call(y.fill,$.fillcolor),U&&y.stroke(j,$.line.color)}else{var X=i.minExtend($,{marker:{size:T?12:i.constrain($.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});Q.call(w.pointStyle,X,x)}})}).each(function(z){I(z,this,"funnelarea")}).each(function(z){I(z,this,"pie")}).each(function(z){var $,Q,j=_(z),U=j.showFill,X=j.showLine,te=j.showGradientLine,W=j.showGradientFill,K=j.anyFill,oe=j.anyLine,q=z[0],Y=q.trace,ee=p(Y),me=ee.colorscale,he=ee.reversescale,se=a.hasMarkers(Y)||!K?"M5,0":oe?"M5,-2":"M5,-3",ae=c.select(this),ce=ae.select(".legendfill").selectAll("path").data(U||W?[z]:[]);if(ce.enter().append("path").classed("js-fill",!0),ce.exit().remove(),ce.attr("d",se+"h"+E+"v6h-"+E+"z").call(function(ye){if(ye.size())if(U)w.fillGroupStyle(ye,x);else{var _e="legendfill-"+Y.uid;w.gradient(ye,x,_e,v(he),me,"fill")}}),X||te){var de=D(void 0,Y.line,10,5);Q=i.minExtend(Y,{line:{width:de}}),$=[i.minExtend(q,{trace:Q})]}var ve=ae.select(".legendlines").selectAll("path").data(X||te?[$]:[]);ve.enter().append("path").classed("js-line",!0),ve.exit().remove(),ve.attr("d",se+(te?"l"+E+",0.0001":"h"+E)).call(X?w.lineGroupStyle:function(ye){if(ye.size()){var _e="legendline-"+Y.uid;w.lineGroupStyle(ye),w.gradient(ye,x,_e,v(he),me,"stroke")}})}).each(function(z){var $,Q,j=_(z),U=j.anyFill,X=j.anyLine,te=j.showLine,W=j.showMarker,K=z[0],oe=K.trace,q=!W&&!X&&!U&&a.hasText(oe);function Y(ve,ye,_e,Se){var Te=i.nestedProperty(oe,ve).get(),Pe=i.isArrayOrTypedArray(Te)&&ye?ye(Te):Te;if(T&&Pe&&Se!==void 0&&(Pe=Se),_e){if(Pe<_e[0])return _e[0];if(Pe>_e[1])return _e[1]}return Pe}function ee(ve){return K._distinct&&K.index&&ve[K.index]?ve[K.index]:ve[0]}if(W||q||te){var me={},he={};if(W){me.mc=Y("marker.color",ee),me.mx=Y("marker.symbol",ee),me.mo=Y("marker.opacity",i.mean,[.2,1]),me.mlc=Y("marker.line.color",ee),me.mlw=Y("marker.line.width",i.mean,[0,5],2),he.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var se=Y("marker.size",i.mean,[2,16],12);me.ms=se,he.marker.size=se}te&&(he.line={width:Y("line.width",ee,[0,10],5)}),q&&(me.tx="Aa",me.tp=Y("textposition",ee),me.ts=10,me.tc=Y("textfont.color",ee),me.tf=Y("textfont.family",ee)),$=[i.minExtend(K,me)],(Q=i.minExtend(oe,he)).selectedpoints=null,Q.texttemplate=null}var ae=c.select(this).select("g.legendpoints"),ce=ae.selectAll("path.scatterpts").data(W?$:[]);ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",L),ce.exit().remove(),ce.call(w.pointStyle,Q,x),W&&($[0].mrc=3);var de=ae.selectAll("g.pointtext").data(q?$:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",L),de.exit().remove(),de.selectAll("text").call(w.textPointStyle,Q,x)}).each(function(z){var $=z[0].trace,Q=c.select(this).select("g.legendpoints").selectAll("path.legendcandle").data($.visible&&$.type==="candlestick"?[z,z]:[]);Q.enter().append("path").classed("legendcandle",!0).attr("d",function(j,U){return U?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=c.select(this),te=$[U?"increasing":"decreasing"],W=D(void 0,te.line,5,2);X.style("stroke-width",W+"px").call(y.fill,te.fillcolor),W&&y.stroke(X,te.line.color)})}).each(function(z){var $=z[0].trace,Q=c.select(this).select("g.legendpoints").selectAll("path.legendohlc").data($.visible&&$.type==="ohlc"?[z,z]:[]);Q.enter().append("path").classed("legendohlc",!0).attr("d",function(j,U){return U?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=c.select(this),te=$[U?"increasing":"decreasing"],W=D(void 0,te.line,5,2);X.style("fill","none").call(w.dashLine,te.line.dash,W),W&&y.stroke(X,te.line.color)})})}},66540:function(d,l,n){n(76052),d.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(d,l,n){var c=n(24040),b=n(7316),i=n(79811),O=n(9224),w=n(4016).eraseActiveShape,y=n(3400),p=y._,a=d.exports={};function u(M,T){var E,C,L=T.currentTarget,D=L.getAttribute("data-attr"),k=L.getAttribute("data-val")||!0,I=M._fullLayout,z={},$=i.list(M,null,!0),Q=I._cartesianSpikesEnabled;if(D==="zoom"){var j,U=k==="in"?.5:2,X=(1+U)/2,te=(1-U)/2;for(C=0;C<$.length;C++)if(!(E=$[C]).fixedrange)if(j=E._name,k==="auto")z[j+".autorange"]=!0;else if(k==="reset")E._rangeInitial0===void 0&&E._rangeInitial1===void 0?z[j+".autorange"]=!0:E._rangeInitial0===void 0?(z[j+".autorange"]=E._autorangeInitial,z[j+".range"]=[null,E._rangeInitial1]):E._rangeInitial1===void 0?(z[j+".range"]=[E._rangeInitial0,null],z[j+".autorange"]=E._autorangeInitial):z[j+".range"]=[E._rangeInitial0,E._rangeInitial1],E._showSpikeInitial!==void 0&&(z[j+".showspikes"]=E._showSpikeInitial,Q!=="on"||E._showSpikeInitial||(Q="off"));else{var W=[E.r2l(E.range[0]),E.r2l(E.range[1])],K=[X*W[0]+te*W[1],X*W[1]+te*W[0]];z[j+".range[0]"]=E.l2r(K[0]),z[j+".range[1]"]=E.l2r(K[1])}}else D!=="hovermode"||k!=="x"&&k!=="y"||(k=I._isHoriz?"y":"x",L.setAttribute("data-val",k)),z[D]=k;I._cartesianSpikesEnabled=Q,c.call("_guiRelayout",M,z)}function h(M,T){for(var E=T.currentTarget,C=E.getAttribute("data-attr"),L=E.getAttribute("data-val")||!0,D=M._fullLayout._subplots.gl3d||[],k={},I=C.split("."),z=0;z1?(se=["toggleHover"],ae=["resetViews"]):z?(he=["zoomInGeo","zoomOutGeo"],se=["hoverClosestGeo"],ae=["resetGeo"]):I?(se=["hoverClosest3d"],ae=["resetCameraDefault3d","resetCameraLastSave3d"]):X?(he=["zoomInMapbox","zoomOutMapbox"],se=["toggleHover"],ae=["resetViewMapbox"]):j?se=["hoverClosestGl2d"]:$?se=["hoverClosestPie"]:K?(se=["hoverClosestCartesian","hoverCompareCartesian"],ae=["resetViewSankey"]):se=["toggleHover"],k&&(se=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(Te){for(var Pe=0;Pe0)){var x=function(M,T,E){for(var C=E.filter(function(I){return T[I].anchor===M._id}),L=0,D=0;D0?C.touches[0].clientX:0}function A(C,L,D,k){var I=O.ensureSingle(C,"rect",_.bgClassName,function(j){j.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),z=k.borderwidth%2==0?k.borderwidth:k.borderwidth-1,$=-k._offsetShift,Q=y.crispRound(L,k.borderwidth);I.attr({width:k._width+z,height:k._height+z,transform:w($,$),"stroke-width":Q}).call(p.stroke,k.bordercolor).call(p.fill,k.bgcolor)}function x(C,L,D,k){var I=L._fullLayout;O.ensureSingleById(I._topdefs,"clipPath",k._clipId,function(z){z.append("rect").attr({x:0,y:0})}).select("rect").attr({width:k._width,height:k._height})}function R(C,L,D,k){var I,z=L.calcdata,$=C.selectAll("g."+_.rangePlotClassName).data(D._subplotsWith,O.identity);$.enter().append("g").attr("class",function(Q){return _.rangePlotClassName+" "+Q}).call(y.setClipUrl,k._clipId,L),$.order(),$.exit().remove(),$.each(function(Q,j){var U=c.select(this),X=j===0,te=h.getFromId(L,Q,"y"),W=te._name,K=k[W],oe={data:[],layout:{xaxis:{type:D.type,domain:[0,1],range:k.range.slice(),calendar:D.calendar},width:k._width,height:k._height,margin:{t:0,b:0,l:0,r:0}},_context:L._context};D.rangebreaks&&(oe.layout.xaxis.rangebreaks=D.rangebreaks),oe.layout[W]={type:te.type,domain:[0,1],range:K.rangemode!=="match"?K.range.slice():te.range.slice(),calendar:te.calendar},te.rangebreaks&&(oe.layout[W].rangebreaks=te.rangebreaks),i.supplyDefaults(oe);var q=oe._fullLayout.xaxis,Y=oe._fullLayout[W];q.clearCalc(),q.setScale(),Y.clearCalc(),Y.setScale();var ee={id:Q,plotgroup:U,xaxis:q,yaxis:Y,isRangePlot:!0};X?I=ee:(ee.mainplot="xy",ee.mainplotinfo=I),u.rangePlot(L,ee,function(me,he){for(var se=[],ae=0;ae=De.max)Ie=_e[ze+1];else if(Pe=De.pmax)Ie=_e[ze+1];else if(Peze._length||Xe+ht<0)return;nt=Ze+ht,ot=Xe+ht;break;case Ve:if(Ge="col-resize",Ze+ht>ze._length)return;nt=Ze+ht,ot=Xe;break;case $e:if(Ge="col-resize",Xe+ht<0)return;nt=Ze,ot=Xe+ht;break;default:Ge="ew-resize",nt=Ue,ot=Ue+ht}if(ot=0;j--){var U=T.append("path").attr(C).style("opacity",j?.1:L).call(O.stroke,k).call(O.fill,D).call(w.dashLine,j?"solid":z,j?4+I:I);if(v(U,S,R),$){var X=y(S.layout,"selections",R);U.style({cursor:"move"});var te={element:U.node(),plotinfo:M,gd:S,editHelpers:X,isActiveSelection:!0},W=c(E,S);b(W,U,te)}else U.style("pointer-events",j?"all":"none");Q[j]=U}var K=Q[0];Q[1].node().addEventListener("click",function(){return function(oe,q){if(h(oe)){var Y=+q.node().getAttribute("data-index");if(Y>=0){if(Y===oe._fullLayout._activeSelectionIndex)return void _(oe);oe._fullLayout._activeSelectionIndex=Y,oe._fullLayout._deactivateSelection=_,u(oe)}}}(S,K)})}(S._fullLayout._selectionLayer)}function v(S,A,x){var R=x.xref+x.yref;w.setClipUrl(S,"clip"+A._fullLayout._uid+R,A)}function _(S){h(S)&&S._fullLayout._activeSelectionIndex>=0&&(i(S),delete S._fullLayout._activeSelectionIndex,u(S))}d.exports={draw:u,drawOne:m,activateLastSelection:function(S){if(h(S)){var A=S._fullLayout.selections.length-1;S._fullLayout._activeSelectionIndex=A,S._fullLayout._deactivateSelection=_,u(S)}}}},34200:function(d,l,n){var c=n(98192).u,b=n(92880).extendFlat;d.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:b({},c,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(d){d.exports=function(l,n,c){c("newselection.mode"),c("newselection.line.width")&&(c("newselection.line.color"),c("newselection.line.dash")),c("activeselection.fillcolor"),c("activeselection.opacity")}},5968:function(d,l,n){var c=n(72760).selectMode,b=n(1936).clearOutline,i=n(9856),O=i.readPaths,w=i.writePaths,y=i.fixDatesForPaths;d.exports=function(p,a){if(p.length){var u=p[0][0];if(u){var h=u.getAttribute("d"),m=a.gd,v=m._fullLayout.newselection,_=a.plotinfo,S=_.xaxis,A=_.yaxis,x=a.isActiveSelection,R=a.dragmode,M=(m.layout||{}).selections||[];if(!c(R)&&x!==void 0){var T=m._fullLayout._activeSelectionIndex;if(T-1,bn=[];if(function(yt){return yt&&Array.isArray(yt)&&yt[0].hoverOnBox!==!0}(nn)){de(Ee,Ne,Ge);var mn=function(yt,zt){var Rt,it,at=yt[0],Lt=-1,xt=[];for(it=0;it0?function(yt,zt){var Rt,it,at,Lt=[];for(at=0;at0&&Lt.push(Rt);if(Lt.length===1&&Lt[0]===zt.searchInfo&&(it=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(at=0;at1||(it+=zt.selectedpoints.length)>1))return!1;return it===1}(pt)&&(en=Te(mn))){for(ht&&ht.remove(),_t=0;_t=0})(ot)&&ot._fullLayout._deactivateShape(ot),function(qt){return qt._fullLayout._activeSelectionIndex>=0}(ot)&&ot._fullLayout._deactivateSelection(ot);var Ge=ot._fullLayout._zoomlayer,ht=m(je),pt=_(je);if(ht||pt){var wt,Dt,It=Ge.selectAll(".select-outline-"+nt.id);It&&ot._fullLayout._outlining&&(ht&&(wt=C(It,Ee)),wt&&i.call("_guiRelayout",ot,{shapes:wt}),pt&&!me(Ee)&&(Dt=L(It,Ee)),Dt&&(ot._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",ot,{selections:Dt}).then(function(){Ne&&D(ot)})),ot._fullLayout._outlining=!1)}nt.selection={},nt.selection.selectionDefs=Ee.selectionDefs=[],nt.selection.mergedPolygons=Ee.mergedPolygons=[]}function ye(Ee){return Ee._id}function _e(Ee,Ne,je,nt){if(!Ee.calcdata)return[];var ot,Ge,ht,pt=[],wt=Ne.map(ye),Dt=je.map(ye);for(ht=0;ht0?nt[0]:je;return!!Ne.selectedpoints&&Ne.selectedpoints.indexOf(ot)>-1}function Pe(Ee,Ne,je){var nt,ot;for(nt=0;nt-1&&Ne;if(!Ge&&Ne){var ir=ke(Ee,!0);if(ir.length){var Wn=ir[0].xref,Kn=ir[0].yref;if(Wn&&Kn){var _r=Ue(ir);Ze([Q(Ee,Wn,"x"),Q(Ee,Kn,"y")])(ar,_r)}}Ee._fullLayout._noEmitSelectedAtStart?Ee._fullLayout._noEmitSelectedAtStart=!1:Fn&&Xe(Ee,ar),en._reselect=!1}if(!Ge&&en._deselect){var Ir=en._deselect;(function(zr,Fr,Rr){for(var $r=0;$r=0)Gt._fullLayout._deactivateShape(Gt);else if(!Dt){var _r=Ct.clickmode;$.done(Sr).then(function(){if($.clear(Sr),Wn===2){for(Nn.remove(),at=0;at-1&&he(Kn,Gt,nt.xaxes,nt.yaxes,nt.subplot,nt,Nn),_r==="event"&&Xe(Gt,void 0);y.click(Gt,Kn,bn.id)}).catch(k.error)}},nt.doneFn=function(){jn.remove(),$.done(Sr).then(function(){$.clear(Sr),!_t&&it&&nt.selectionDefs&&(it.subtract=vn,nt.selectionDefs.push(it),nt.mergedPolygons.length=0,[].push.apply(nt.mergedPolygons,Rt)),(_t||Dt)&&ve(nt,_t),nt.doneFnCompleted&&nt.doneFnCompleted(ar),It&&Xe(Gt,xt)}).catch(k.error)}},clearOutline:R,clearSelectionsCache:ve,selectOnClick:he}},46056:function(d,l,n){var c=n(13916),b=n(25376),i=n(52904).line,O=n(98192).u,w=n(92880).extendFlat,y=n(31780).templatedArray,p=(n(36208),n(45464)),a=n(21776).ye,u=n(97728);d.exports=y("shape",{visible:w({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:w({},p.legend,{editType:"calc+arraydraw"}),legendgroup:w({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:w({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:b({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:w({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:w({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:w({},c.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:w({},c.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:w({},i.color,{editType:"arraydraw"}),width:w({},i.width,{editType:"calc+arraydraw"}),dash:w({},O,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:a({},{keys:Object.keys(u)}),font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},96084:function(d,l,n){var c=n(3400),b=n(54460),i=n(85448),O=n(65152);function w(u){return p(u.line.width,u.xsizemode,u.x0,u.x1,u.path,!1)}function y(u){return p(u.line.width,u.ysizemode,u.y0,u.y1,u.path,!0)}function p(u,h,m,v,_,S){var A=u/2,x=S;if(h==="pixel"){var R=_?O.extractPathCoords(_,S?i.paramIsY:i.paramIsX):[m,v],M=c.aggNums(Math.max,null,R),T=c.aggNums(Math.min,null,R),E=T<0?Math.abs(T)+A:A,C=M>0?M+A:A;return{ppad:A,ppadplus:x?E:C,ppadminus:x?C:E}}return{ppad:A}}function a(u,h,m,v,_){var S=u.type==="category"||u.type==="multicategory"?u.r2c:u.d2c;if(h!==void 0)return[S(h),S(m)];if(v){var A,x,R,M,T=1/0,E=-1/0,C=v.match(i.segmentRE);for(u.type==="date"&&(S=O.decodeDate(S)),A=0;AE&&(E=M)));return E>=T?[T,E]:void 0}}d.exports=function(u){var h=u._fullLayout,m=c.filterVisible(h.shapes);if(m.length&&u._fullData.length)for(var v=0;v=ye?_e-Te:Te-_e,-180/Math.PI*Math.atan2(Pe,Ie)}(E,L,C,D):0),z.call(function(ye){return ye.call(O.font,I).attr({}),i.convertToTspans(ye,h),ye});var ae=function(ye,_e,Se,Te,Pe,Ie,ze){var De,He,Ve,$e,Oe=Pe.label.textposition,ke=Pe.label.textangle,Le=Pe.label.padding,We=Pe.type,Ue=Math.PI/180*Ie,Ze=Math.sin(Ue),Xe=Math.cos(Ue),tt=Pe.label.xanchor,Ee=Pe.label.yanchor;if(We==="line"){Oe==="start"?(De=ye,He=_e):Oe==="end"?(De=Se,He=Te):(De=(ye+Se)/2,He=(_e+Te)/2),tt==="auto"&&(tt=Oe==="start"?ke==="auto"?Se>ye?"left":Seye?"right":Seye?"right":Seye?"left":Se1&&(De.length!==2||De[1][0]!=="Z")&&(K===0&&(De[0][0]="M"),k[W]=De,j(),U())}}()}}function ye(Pe,Ie){(function(ze,De){if(k.length)for(var He=0;HeHe?(Oe=ze,Ue="y0",ke=He,Ze="y1"):(Oe=He,Ue="y1",ke=ze,Ze="y0"),vt(Rt),yt(Te,_e),function(it,at,Lt){var xt=at.xref,Zt=at.yref,Xt=O.getFromId(Lt,xt),Yt=O.getFromId(Lt,Zt),Qt="";xt==="paper"||Xt.autorange||(Qt+=xt),Zt==="paper"||Yt.autorange||(Qt+=Zt),h.setClipUrl(it,Qt?"clip"+Lt._fullLayout._uid+Qt:null,Lt)}(ye,_e,ve),mn.moveFn=Ne==="move"?bt:lt,mn.altKey=Rt.altKey)},doneFn:function(){M(ve)||(_(ye),zt(Te),C(ye,ve,_e),b.call("_guiRelayout",ve,Pe.getUpdateObj()))},clickFn:function(){M(ve)||zt(Te)}};function vt(Rt){if(M(ve))Ne=null;else if(ht)Ne=Rt.target.tagName==="path"?"move":Rt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var it=mn.element.getBoundingClientRect(),at=it.right-it.left,Lt=it.bottom-it.top,xt=Rt.clientX-it.left,Zt=Rt.clientY-it.top,Xt=!pt&&at>je&&Lt>nt&&!Rt.shiftKey?v.getCursor(xt/at,1-Zt/Lt):"move";_(ye,Xt),Ne=Xt.split("-")[0]}}function bt(Rt,it){if(_e.type==="path"){var at=function(Zt){return Zt},Lt=at,xt=at;ot?wt("xanchor",_e.xanchor=nn(Ve+Rt)):(Lt=function(Zt){return nn(Ct(Zt)+Rt)},It&&It.type==="date"&&(Lt=A.encodeDate(Lt))),Ge?wt("yanchor",_e.yanchor=gn($e+it)):(xt=function(Zt){return gn(_t(Zt)+it)},en&&en.type==="date"&&(xt=A.encodeDate(xt))),wt("path",_e.path=L(Ee,Lt,xt))}else ot?wt("xanchor",_e.xanchor=nn(Ve+Rt)):(wt("x0",_e.x0=nn(Ie+Rt)),wt("x1",_e.x1=nn(De+Rt))),Ge?wt("yanchor",_e.yanchor=gn($e+it)):(wt("y0",_e.y0=gn(ze+it)),wt("y1",_e.y1=gn(He+it)));ye.attr("d",x(ve,_e)),yt(Te,_e),p(ve,Se,_e,Dt)}function lt(Rt,it){if(pt){var at=function(In){return In},Lt=at,xt=at;ot?wt("xanchor",_e.xanchor=nn(Ve+Rt)):(Lt=function(In){return nn(Ct(In)+Rt)},It&&It.type==="date"&&(Lt=A.encodeDate(Lt))),Ge?wt("yanchor",_e.yanchor=gn($e+it)):(xt=function(In){return gn(_t(In)+it)},en&&en.type==="date"&&(xt=A.encodeDate(xt))),wt("path",_e.path=L(Ee,Lt,xt))}else if(ht){if(Ne==="resize-over-start-point"){var Zt=Ie+Rt,Xt=Ge?ze-it:ze+it;wt("x0",_e.x0=ot?Zt:nn(Zt)),wt("y0",_e.y0=Ge?Xt:gn(Xt))}else if(Ne==="resize-over-end-point"){var Yt=De+Rt,Qt=Ge?He-it:He+it;wt("x1",_e.x1=ot?Yt:nn(Yt)),wt("y1",_e.y1=Ge?Qt:gn(Qt))}}else{var Pt=function(In){return Ne.indexOf(In)!==-1},tn=Pt("n"),Kt=Pt("s"),fn=Pt("w"),dn=Pt("e"),vn=tn?Oe+it:Oe,Nn=Kt?ke+it:ke,er=fn?Le+Rt:Le,En=dn?We+Rt:We;Ge&&(tn&&(vn=Oe-it),Kt&&(Nn=ke-it)),(!Ge&&Nn-vn>nt||Ge&&vn-Nn>nt)&&(wt(Ue,_e[Ue]=Ge?vn:gn(vn)),wt(Ze,_e[Ze]=Ge?Nn:gn(Nn))),En-er>je&&(wt(Xe,_e[Xe]=ot?er:nn(er)),wt(tt,_e[tt]=ot?En:nn(En)))}ye.attr("d",x(ve,_e)),yt(Te,_e),p(ve,Se,_e,Dt)}function yt(Rt,it){(ot||Ge)&&function(){var at=it.type!=="path",Lt=Rt.selectAll(".visual-cue").data([0]);Lt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var xt=Ct(ot?it.xanchor:i.midRange(at?[it.x0,it.x1]:A.extractPathCoords(it.path,S.paramIsX))),Zt=_t(Ge?it.yanchor:i.midRange(at?[it.y0,it.y1]:A.extractPathCoords(it.path,S.paramIsY)));if(xt=A.roundPositionForSharpStrokeRendering(xt,1),Zt=A.roundPositionForSharpStrokeRendering(Zt,1),ot&&Ge){var Xt="M"+(xt-1-1)+","+(Zt-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Lt.attr("d",Xt)}else if(ot){var Yt="M"+(xt-1-1)+","+(Zt-9-1)+"v18 h2 v-18 Z";Lt.attr("d",Yt)}else{var Qt="M"+(xt-9-1)+","+(Zt-1-1)+"h18 v2 h-18 Z";Lt.attr("d",Qt)}}()}function zt(Rt){Rt.selectAll(".visual-cue").remove()}v.init(mn),bn.node().onmousemove=vt}(k,ae,$,I,U,he):$.editable===!0&&ae.style("pointer-events",ee||u.opacity(K)*W<=.5?"stroke":"all");ae.node().addEventListener("click",function(){return function(ve,ye){if(T(ve)){var _e=+ye.node().getAttribute("data-index");if(_e>=0){if(_e===ve._fullLayout._activeShapeIndex)return void D(ve);ve._fullLayout._activeShapeIndex=_e,ve._fullLayout._deactivateShape=D,R(ve)}}}(k,ae)})}$._input&&$.visible===!0&&($.layer!=="below"?j(k._fullLayout._shapeUpperLayer):$.xref==="paper"||$.yref==="paper"?j(k._fullLayout._shapeLowerLayer):Q._hadPlotinfo?j((Q.mainplotinfo||Q).shapelayer):j(k._fullLayout._shapeLowerLayer))}function C(k,I,z){var $=(z.xref+z.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");h.setClipUrl(k,$?"clip"+I._fullLayout._uid+$:null,I)}function L(k,I,z){return k.replace(S.segmentRE,function($){var Q=0,j=$.charAt(0),U=S.paramIsX[j],X=S.paramIsY[j],te=S.numParams[j];return j+$.substr(1).replace(S.paramRE,function(W){return Q>=te||(U[Q]?W=I(W):X[Q]&&(W=z(W)),Q++),W})})}function D(k){T(k)&&k._fullLayout._activeShapeIndex>=0&&(a(k),delete k._fullLayout._activeShapeIndex,R(k))}d.exports={draw:R,drawOne:E,eraseActiveShape:function(k){if(T(k)){a(k);var I=k._fullLayout._activeShapeIndex,z=(k.layout||{}).shapes||[];if(I0&&Ese&&(ce="X"),ce});return Y>se&&(ae=ae.replace(/[\s,]*X.*/,""),b.log("Ignoring extra params in segment "+q)),ee+ae})}(w,p,u);if(w.xsizemode==="pixel"){var E=p(w.xanchor);h=E+w.x0,m=E+w.x1}else h=p(w.x0),m=p(w.x1);if(w.ysizemode==="pixel"){var C=u(w.yanchor);v=C-w.y0,_=C-w.y1}else v=u(w.y0),_=u(w.y1);if(S==="line")return"M"+h+","+v+"L"+m+","+_;if(S==="rect")return"M"+h+","+v+"H"+m+"V"+_+"H"+h+"Z";var L=(h+m)/2,D=(v+_)/2,k=Math.abs(L-h),I=Math.abs(D-v),z="A"+k+","+I,$=L+k+","+D;return"M"+$+z+" 0 1,1 "+L+","+(D-I)+z+" 0 0,1 "+$+"Z"}},41592:function(d,l,n){var c=n(4016);d.exports={moduleType:"component",name:"shapes",layoutAttributes:n(46056),supplyLayoutDefaults:n(43712),supplyDrawNewShapeDefaults:n(65144),includeBasePlot:n(36632)("shapes"),calcAutorange:n(96084),draw:c.draw,drawOne:c.drawOne}},97728:function(d){function l(i,O){return O?O.d2l(i):i}function n(i,O){return O?O.l2d(i):i}function c(i,O){return l(i.x1,O)-l(i.x0,O)}function b(i,O,w){return l(i.y1,w)-l(i.y0,w)}d.exports={x0:function(i){return i.x0},x1:function(i){return i.x1},y0:function(i){return i.y0},y1:function(i){return i.y1},slope:function(i,O,w){return i.type!=="line"?void 0:b(i,0,w)/c(i,O)},dx:c,dy:b,width:function(i,O){return Math.abs(c(i,O))},height:function(i,O,w){return Math.abs(b(i,0,w))},length:function(i,O,w){return i.type!=="line"?void 0:Math.sqrt(Math.pow(c(i,O),2)+Math.pow(b(i,0,w),2))},xcenter:function(i,O){return n((l(i.x1,O)+l(i.x0,O))/2,O)},ycenter:function(i,O,w){return n((l(i.y1,w)+l(i.y0,w))/2,w)}}},89861:function(d,l,n){var c=n(25376),b=n(66741),i=n(92880).extendDeepAll,O=n(67824).overrideAll,w=n(85656),y=n(31780).templatedArray,p=n(60876),a=y("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});d.exports=O(y("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:a,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(b({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:c({})},font:c({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},60876:function(d){d.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(d,l,n){var c=n(3400),b=n(51272),i=n(89861),O=n(60876).name,w=i.steps;function y(a,u,h){function m(x,R){return c.coerce(a,u,i,x,R)}for(var v=b(a,u,{name:"steps",handleItemDefaults:p}),_=0,S=0;S0&&(Y=Y.transition().duration(X.transition.duration).ease(X.transition.easing)),Y.attr("transform",y(q-.5*u.gripWidth,X._dims.currentValueTotalHeight))}}function z(U,X){var te=U._dims;return te.inputAreaStart+u.stepInset+(te.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,X))}function $(U,X){var te=U._dims;return Math.min(1,Math.max(0,(X-u.stepInset-te.inputAreaStart)/(te.inputAreaLength-2*u.stepInset-2*te.inputAreaStart)))}function Q(U,X,te){var W=te._dims,K=w.ensureSingle(U,"rect",u.railTouchRectClass,function(oe){oe.call(D,X,U,te).style("pointer-events","all")});K.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,u.tickOffset+te.ticklen+W.labelHeight)}).call(i.fill,te.bgcolor).attr("opacity",0),O.setTranslate(K,0,W.currentValueTotalHeight)}function j(U,X){var te=X._dims,W=te.inputAreaLength-2*u.railInset,K=w.ensureSingle(U,"rect",u.railRectClass);K.attr({width:W,height:u.railWidth,rx:u.railRadius,ry:u.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,X.bordercolor).call(i.fill,X.bgcolor).style("stroke-width",X.borderwidth+"px"),O.setTranslate(K,u.railInset,.5*(te.inputAreaWidth-u.railWidth)+te.currentValueTotalHeight)}d.exports=function(U){var X=U._context.staticPlot,te=U._fullLayout,W=function(me,he){for(var se=me[u.name],ae=[],ce=0;ce0?[0]:[]);function oe(me){me._commandObserver&&(me._commandObserver.remove(),delete me._commandObserver),b.autoMargin(U,S(me))}if(K.enter().append("g").classed(u.containerClassName,!0).style("cursor",X?null:"ew-resize"),K.exit().each(function(){c.select(this).selectAll("g."+u.groupClassName).each(oe)}).remove(),W.length!==0){var q=K.selectAll("g."+u.groupClassName).data(W,A);q.enter().append("g").classed(u.groupClassName,!0),q.exit().each(oe).remove();for(var Y=0;Y0||De<0){var Oe={left:[-He,0],right:[He,0],top:[0,-He],bottom:[0,He]}[C.side];ae.attr("transform",y(Oe[0],Oe[1]))}}}return Y.call(ee),K&&(j?Y.on(".opacity",null):(z=0,$=!0,Y.text(T).on("mouseover.opacity",function(){c.select(this).transition().duration(h.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){c.select(this).transition().duration(h.HIDE_PLACEHOLDER).style("opacity",0)})),Y.call(u.makeEditable,{gd:_}).on("edit",function(se){E!==void 0?O.call("_guiRestyle",_,M,se,E):O.call("_guiRelayout",_,M,se)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ee)}).on("input",function(se){this.text(se||" ").call(u.positionText,L.x,L.y)})),Y.classed("js-placeholder",$),k}}},88444:function(d,l,n){var c=n(25376),b=n(22548),i=n(92880).extendFlat,O=n(67824).overrideAll,w=n(66741),y=n(31780).templatedArray,p=y("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});d.exports=O(y("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(w({editType:"arraydraw"}),{}),font:c({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:b.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(d){d.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(d,l,n){var c=n(3400),b=n(51272),i=n(88444),O=n(73712).name,w=i.buttons;function y(a,u,h){function m(v,_){return c.coerce(a,u,i,v,_)}m("visible",b(a,u,{name:"buttons",handleItemDefaults:p}).length>0)&&(m("active"),m("direction"),m("type"),m("showactive"),m("x"),m("y"),c.noneOrAll(a,u,["x","y"]),m("xanchor"),m("yanchor"),m("pad.t"),m("pad.r"),m("pad.b"),m("pad.l"),c.coerceFont(m,"font",h.font),m("bgcolor",h.paper_bgcolor),m("bordercolor"),m("borderwidth"))}function p(a,u){function h(m,v){return c.coerce(a,u,w,m,v)}h("visible",a.method==="skip"||Array.isArray(a.args))&&(h("method"),h("args"),h("args2"),h("label"),h("execute"))}d.exports=function(a,u){b(a,u,{name:O,handleItemDefaults:y})}},14420:function(d,l,n){var c=n(33428),b=n(7316),i=n(76308),O=n(43616),w=n(3400),y=n(72736),p=n(31780).arrayEditor,a=n(84284).LINE_SPACING,u=n(73712),h=n(37400);function m(z){return z._index}function v(z,$){return+z.attr(u.menuIndexAttrName)===$._index}function _(z,$,Q,j,U,X,te,W){$.active=te,p(z.layout,u.name,$).applyUpdate("active",te),$.type==="buttons"?A(z,j,null,null,$):$.type==="dropdown"&&(U.attr(u.menuIndexAttrName,"-1"),S(z,j,U,X,$),W||A(z,j,U,X,$))}function S(z,$,Q,j,U){var X=w.ensureSingle($,"g",u.headerClassName,function(Y){Y.style("pointer-events","all")}),te=U._dims,W=U.active,K=U.buttons[W]||u.blankHeaderOpts,oe={y:U.pad.t,yPad:0,x:U.pad.l,xPad:0,index:0},q={width:te.headerWidth,height:te.headerHeight};X.call(x,U,K,z).call(k,U,oe,q),w.ensureSingle($,"text",u.headerArrowClassName,function(Y){Y.attr("text-anchor","end").call(O.font,U.font).text(u.arrowSymbol[U.direction])}).attr({x:te.headerWidth-u.arrowOffsetX+U.pad.l,y:te.headerHeight/2+u.textOffsetY+U.pad.t}),X.on("click",function(){Q.call(I,String(v(Q,U)?-1:U._index)),A(z,$,Q,j,U)}),X.on("mouseover",function(){X.call(E)}),X.on("mouseout",function(){X.call(C,U)}),O.setTranslate($,te.lx,te.ly)}function A(z,$,Q,j,U){Q||(Q=$).attr("pointer-events","all");var X=function(ae){return+ae.attr(u.menuIndexAttrName)==-1}(Q)&&U.type!=="buttons"?[]:U.buttons,te=U.type==="dropdown"?u.dropdownButtonClassName:u.buttonClassName,W=Q.selectAll("g."+te).data(w.filterVisible(X)),K=W.enter().append("g").classed(te,!0),oe=W.exit();U.type==="dropdown"?(K.attr("opacity","0").transition().attr("opacity","1"),oe.transition().attr("opacity","0").remove()):oe.remove();var q=0,Y=0,ee=U._dims,me=["up","down"].indexOf(U.direction)!==-1;U.type==="dropdown"&&(me?Y=ee.headerHeight+u.gapButtonHeader:q=ee.headerWidth+u.gapButtonHeader),U.type==="dropdown"&&U.direction==="up"&&(Y=-u.gapButtonHeader+u.gapButton-ee.openHeight),U.type==="dropdown"&&U.direction==="left"&&(q=-u.gapButtonHeader+u.gapButton-ee.openWidth);var he={x:ee.lx+q+U.pad.l,y:ee.ly+Y+U.pad.t,yPad:u.gapButton,xPad:u.gapButton,index:0},se={l:he.x+U.borderwidth,t:he.y+U.borderwidth};W.each(function(ae,ce){var de=c.select(this);de.call(x,U,ae,z).call(k,U,he),de.on("click",function(){c.event.defaultPrevented||(ae.execute&&(ae.args2&&U.active===ce?(_(z,U,0,$,Q,j,-1),b.executeAPICommand(z,ae.method,ae.args2)):(_(z,U,0,$,Q,j,ce),b.executeAPICommand(z,ae.method,ae.args))),z.emit("plotly_buttonclicked",{menu:U,button:ae,active:U.active}))}),de.on("mouseover",function(){de.call(E)}),de.on("mouseout",function(){de.call(C,U),W.call(T,U)})}),W.call(T,U),me?(se.w=Math.max(ee.openWidth,ee.headerWidth),se.h=he.y-se.t):(se.w=he.x-se.l,se.h=Math.max(ee.openHeight,ee.headerHeight)),se.direction=U.direction,j&&(W.size()?function(ae,ce,de,ve,ye,_e){var Se,Te,Pe,Ie=ye.direction,ze=Ie==="up"||Ie==="down",De=ye._dims,He=ye.active;if(ze)for(Te=0,Pe=0;Pe0?[0]:[]);if(U.enter().append("g").classed(u.containerClassName,!0).style("cursor","pointer"),U.exit().each(function(){c.select(this).selectAll("g."+u.headerGroupClassName).each(j)}).remove(),Q.length!==0){var X=U.selectAll("g."+u.headerGroupClassName).data(Q,m);X.enter().append("g").classed(u.headerGroupClassName,!0);for(var te=w.ensureSingle(U,"g",u.dropdownButtonGroupClassName,function(Y){Y.style("pointer-events","all")}),W=0;Wk,$=w.barLength+2*w.barPad,Q=w.barWidth+2*w.barPad,j=x,U=M+T;U+Q>m&&(U=m-Q);var X=this.container.selectAll("rect.scrollbar-horizontal").data(z?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(b.fill,w.barColor),z?(this.hbar=X.attr({rx:w.barRadius,ry:w.barRadius,x:j,y:U,width:$,height:Q}),this._hbarXMin=j+$/2,this._hbarTranslateMax=k-$):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var te=T>I,W=w.barWidth+2*w.barPad,K=w.barLength+2*w.barPad,oe=x+R,q=M;oe+W>h&&(oe=h-W);var Y=this.container.selectAll("rect.scrollbar-vertical").data(te?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(b.fill,w.barColor),te?(this.vbar=Y.attr({rx:w.barRadius,ry:w.barRadius,x:oe,y:q,width:W,height:K}),this._vbarYMin=q+K/2,this._vbarTranslateMax=I-K):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,me=v-.5,he=te?_+W+.5:_+.5,se=S-.5,ae=z?A+Q+.5:A+.5,ce=u._topdefs.selectAll("#"+ee).data(z||te?[0]:[]);if(ce.exit().remove(),ce.enter().append("clipPath").attr("id",ee).append("rect"),z||te?(this._clipRect=ce.select("rect").attr({x:Math.floor(me),y:Math.floor(se),width:Math.ceil(he)-Math.floor(me),height:Math.ceil(ae)-Math.floor(se)}),this.container.call(i.setClipUrl,ee,this.gd),this.bg.attr({x,y:M,width:R,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),z||te){var de=c.behavior.drag().on("dragstart",function(){c.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var ve=c.behavior.drag().on("dragstart",function(){c.event.sourceEvent.preventDefault(),c.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));z&&this.hbar.on(".drag",null).call(ve),te&&this.vbar.on(".drag",null).call(ve)}this.setTranslate(p,a)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var y=this.translateX,p=this.translateY;this.hbar&&(y-=c.event.dx),this.vbar&&(p-=c.event.dy),this.setTranslate(y,p)},w.prototype._onBoxWheel=function(){var y=this.translateX,p=this.translateY;this.hbar&&(y+=c.event.deltaY),this.vbar&&(p+=c.event.deltaY),this.setTranslate(y,p)},w.prototype._onBarDrag=function(){var y=this.translateX,p=this.translateY;if(this.hbar){var a=y+this._hbarXMin,u=a+this._hbarTranslateMax;y=(O.constrain(c.event.x,a,u)-a)/(u-a)*(this.position.w-this._box.w)}if(this.vbar){var h=p+this._vbarYMin,m=h+this._vbarTranslateMax;p=(O.constrain(c.event.y,h,m)-h)/(m-h)*(this.position.h-this._box.h)}this.setTranslate(y,p)},w.prototype.setTranslate=function(y,p){var a=this.position.w-this._box.w,u=this.position.h-this._box.h;if(y=O.constrain(y||0,0,a),p=O.constrain(p||0,0,u),this.translateX=y,this.translateY=p,this.container.call(i.setTranslate,this._box.l-this.position.l-y,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+y-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var h=y/a;this.hbar.call(i.setTranslate,y+h*this._hbarTranslateMax,p)}if(this.vbar){var m=p/u;this.vbar.call(i.setTranslate,y,p+m*this._vbarTranslateMax)}}},84284:function(d){d.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(d){d.exports={axisRefDescription:function(l,n,c){return["If set to a",l,"axis id (e.g. *"+l+"* or","*"+l+"2*), the `"+l+"` position refers to a",l,"coordinate. If set to *paper*, the `"+l+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+c+"). If set to a",l,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+l+"2 domain* refers to the domain of the second",l," axis and a",l,"position of 0.5 refers to the","point between the",n,"and the",c,"of the domain of the","second",l,"axis."].join(" ")}}},48164:function(d){d.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(d){d.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(d){d.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(d){d.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(d){d.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(d){d.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(d){d.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(d,l){l.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],l.STYLE=l.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},9616:function(d,l){l.xmlns="http://www.w3.org/2000/xmlns/",l.svg="http://www.w3.org/2000/svg",l.xlink="http://www.w3.org/1999/xlink",l.svgAttrs={xmlns:l.svg,"xmlns:xlink":l.xlink}},64884:function(d,l,n){l.version=n(25788).version,n(88324),n(79288);for(var c=n(24040),b=l.register=c.register,i=n(22448),O=Object.keys(i),w=0;w",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(d,l){l.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},l.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},l.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},l.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},l.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},l.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},11864:function(d,l,n){var c=n(20435),b=c.mod,i=c.modHalf,O=Math.PI,w=2*O;function y(h){return Math.abs(h[1]-h[0])>w-1e-14}function p(h,m){return i(m-h,w)}function a(h,m){if(y(m))return!0;var v,_;m[0](_=b(_,w))&&(_+=w);var S=b(h,w),A=S+w;return S>=v&&S<=_||A>=v&&A<=_}function u(h,m,v,_,S,A,x){S=S||0,A=A||0;var R,M,T,E,C,L=y([v,_]);function D($,Q){return[$*Math.cos(Q)+S,A-$*Math.sin(Q)]}L?(R=0,M=O,T=w):v<_?(R=v,T=_):(R=_,T=v),h=S&&h<=A);var S,A},pathArc:function(h,m,v,_,S){return u(null,h,m,v,_,S,0)},pathSector:function(h,m,v,_,S){return u(null,h,m,v,_,S,1)},pathAnnulus:function(h,m,v,_,S,A){return u(h,m,v,_,S,A,1)}}},38116:function(d,l,n){var c=n(83160).decode,b=n(63620),i=Array.isArray,O=ArrayBuffer,w=DataView;function y(m){return O.isView(m)&&!(m instanceof w)}function p(m){return i(m)||y(m)}l.isTypedArray=y,l.isArrayOrTypedArray=p,l.isArray1D=function(m){return!p(m[0])},l.ensureArray=function(m,v){return i(m)||(m=[]),m.length=v,m};var a={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};function u(m){return m.constructor===ArrayBuffer}function h(m,v,_){if(p(m)){if(p(m[0])){for(var S=_,A=0;AR.max?A.set(x):A.set(+S)}},integer:{coerceFunction:function(S,A,x,R){S%1||!c(S)||R.min!==void 0&&SR.max?A.set(x):A.set(+S)}},string:{coerceFunction:function(S,A,x,R){if(typeof S!="string"){var M=typeof S=="number";R.strict!==!0&&M?A.set(String(S)):A.set(x)}else R.noBlank&&!S?A.set(x):A.set(S)}},color:{coerceFunction:function(S,A,x){b(S).isValid()?A.set(S):A.set(x)}},colorlist:{coerceFunction:function(S,A,x){Array.isArray(S)&&S.length&&S.every(function(R){return b(R).isValid()})?A.set(S):A.set(x)}},colorscale:{coerceFunction:function(S,A,x){A.set(O.get(S,x))}},angle:{coerceFunction:function(S,A,x){S==="auto"?A.set("auto"):c(S)?A.set(u(+S,360)):A.set(x)}},subplotid:{coerceFunction:function(S,A,x,R){var M=R.regex||a(x);typeof S=="string"&&M.test(S)?A.set(S):A.set(x)},validateFunction:function(S,A){var x=A.dflt;return S===x||typeof S=="string"&&!!a(x).test(S)}},flaglist:{coerceFunction:function(S,A,x,R){if((R.extras||[]).indexOf(S)===-1)if(typeof S=="string"){for(var M=S.split("+"),T=0;T=c&&X<=b?X:a}if(typeof X!="string"&&typeof X!="number")return a;X=String(X);var q=T(te),Y=X.charAt(0);!q||Y!=="G"&&Y!=="g"||(X=X.substr(1),te="");var ee=q&&te.substr(0,7)==="chinese",me=X.match(ee?R:x);if(!me)return a;var he=me[1],se=me[3]||"1",ae=Number(me[5]||1),ce=Number(me[7]||0),de=Number(me[9]||0),ve=Number(me[11]||0);if(q){if(he.length===2)return a;var ye;he=Number(he);try{var _e=S.getComponentMethod("calendars","getCal")(te);if(ee){var Se=se.charAt(se.length-1)==="i";se=parseInt(se,10),ye=_e.newDate(he,_e.toMonthIndex(he,se,Se),ae)}else ye=_e.newDate(he,Number(se),ae)}catch{return a}return ye?(ye.toJD()-_)*u+ce*h+de*m+ve*v:a}he=he.length===2?(Number(he)+2e3-M)%100+M:Number(he),se-=1;var Te=new Date(Date.UTC(2e3,se,ae,ce,de));return Te.setUTCFullYear(he),Te.getUTCMonth()!==se||Te.getUTCDate()!==ae?a:Te.getTime()+ve*v},c=l.MIN_MS=l.dateTime2ms("-9999"),b=l.MAX_MS=l.dateTime2ms("9999-12-31 23:59:59.9999"),l.isDateTime=function(X,te){return l.dateTime2ms(X,te)!==a};var C=90*u,L=3*h,D=5*m;function k(X,te,W,K,oe){if((te||W||K||oe)&&(X+=" "+E(te,2)+":"+E(W,2),(K||oe)&&(X+=":"+E(K,2),oe))){for(var q=4;oe%10==0;)q-=1,oe/=10;X+="."+E(oe,q)}return X}l.ms2DateTime=function(X,te,W){if(typeof X!="number"||!(X>=c&&X<=b))return a;te||(te=0);var K,oe,q,Y,ee,me,he=Math.floor(10*y(X+.05,1)),se=Math.round(X-he/10);if(T(W)){var ae=Math.floor(se/u)+_,ce=Math.floor(y(X,u));try{K=S.getComponentMethod("calendars","getCal")(W).fromJD(ae).formatDate("yyyy-mm-dd")}catch{K=A("G%Y-%m-%d")(new Date(se))}if(K.charAt(0)==="-")for(;K.length<11;)K="-0"+K.substr(1);else for(;K.length<10;)K="0"+K;oe=te=c+u&&X<=b-u))return a;var te=Math.floor(10*y(X+.05,1)),W=new Date(Math.round(X-te/10));return k(i("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+te)},l.cleanDate=function(X,te,W){if(X===a)return te;if(l.isJSDate(X)||typeof X=="number"&&isFinite(X)){if(T(W))return w.error("JS Dates and milliseconds are incompatible with world calendars",X),te;if(!(X=l.ms2DateTimeLocal(+X))&&te!==void 0)return te}else if(!l.isDateTime(X,W))return w.error("unrecognized date",X),te;return X};var I=/%\d?f/g,z=/%h/g,$={1:"1",2:"1",3:"2",4:"2"};function Q(X,te,W,K){X=X.replace(I,function(q){var Y=Math.min(+q.charAt(1)||6,6);return(te/1e3%1+2).toFixed(Y).substr(2).replace(/0+$/,"")||"0"});var oe=new Date(Math.floor(te+.05));if(X=X.replace(z,function(){return $[W("%q")(oe)]}),T(K))try{X=S.getComponentMethod("calendars","worldCalFmt")(X,te,K)}catch{return"Invalid"}return W(X)(oe)}var j=[59,59.9,59.99,59.999,59.9999];l.formatDate=function(X,te,W,K,oe,q){if(oe=T(oe)&&oe,!te)if(W==="y")te=q.year;else if(W==="m")te=q.month;else{if(W!=="d")return function(Y,ee){var me=y(Y+.05,u),he=E(Math.floor(me/h),2)+":"+E(y(Math.floor(me/m),60),2);if(ee!=="M"){O(ee)||(ee=0);var se=(100+Math.min(y(Y/v,60),j[ee])).toFixed(ee).substr(1);ee>0&&(se=se.replace(/0+$/,"").replace(/[\.]$/,"")),he+=":"+se}return he}(X,W)+` `+Q(q.dayMonthYear,X,K,oe);te=q.dayMonth+` -`+q.year}return Q(te,X,K,oe)};var U=3*u;l.incrementMonth=function(X,te,W){W=T(W)&&W;var K=y(X,u);if(X=Math.round(X-K),W)try{var oe=Math.round(X/u)+_,q=S.getComponentMethod("calendars","getCal")(W),Y=q.fromJD(oe);return te%12?q.add(Y,te,"m"):q.add(Y,te/12,"y"),(Y.toJD()-_)*u+K}catch{w.error("invalid ms "+X+" in calendar "+W)}var ee=new Date(X+U);return ee.setUTCMonth(ee.getUTCMonth()+te)+K-U},l.findExactDates=function(X,te){for(var W,K,oe=0,q=0,Y=0,ee=0,me=T(te)&&S.getComponentMethod("calendars","getCal")(te),he=0;he0&&k[I+1][0]<0)return I;return null}switch(A=C==="RUS"||C==="FJI"?function(k){var I;if(D(k)===null)I=k;else for(I=new Array(k.length),M=0;MI?z[$++]=[k[M][0]+360,k[M][1]]:M===I?(z[$++]=k[M],z[$++]=[k[M][0],-90]):z[$++]=k[M];var Q=h.tester(z);Q.pts.pop(),L.push(Q)}:function(k){L.push(h.tester(k))},T.type){case"MultiPolygon":for(x=0;xW&&(W=q,U=oe)}else U=X;return O.default(U).geometry.coordinates}(Q),z.fIn=k,z.fOut=Q,T.push(Q)}else p.log(["Location",z.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete M[I]}switch(x.type){case"FeatureCollection":var L=x.features;for(R=0;R100?(clearInterval(I),D("Unexpected error while fetching from "+C)):void k++},50)})}for(var T=0;T0&&(O.push(w),w=[])}return w.length>0&&O.push(w),O},l.makeLine=function(b){return b.length===1?{type:"LineString",coordinates:b[0]}:{type:"MultiLineString",coordinates:b}},l.makePolygon=function(b){if(b.length===1)return{type:"Polygon",coordinates:b};for(var i=new Array(b.length),O=0;O1||L<0||L>1?null:{x:p+A*L,y:a+M*L}}function y(p,a,u,h,m){var v=h*p+m*a;if(v<0)return h*h+m*m;if(v>u){var _=h-p,S=m-a;return _*_+S*S}var A=h*a-m*p;return A*A/u}l.segmentsIntersect=w,l.segmentDistance=function(p,a,u,h,m,v,_,S){if(w(p,a,u,h,m,v,_,S))return 0;var A=u-p,x=h-a,R=_-m,M=S-v,T=A*A+x*x,E=R*R+M*M,C=Math.min(y(A,x,T,m-p,v-a),y(A,x,T,_-p,S-a),y(R,M,E,p-m,a-v),y(R,M,E,u-m,h-v));return Math.sqrt(C)},l.getTextLocation=function(p,a,u,h){if(p===b&&h===i||(c={},b=p,i=h),c[u])return c[u];var m=p.getPointAtLength(O(u-h/2,a)),v=p.getPointAtLength(O(u+h/2,a)),_=Math.atan((v.y-m.y)/(v.x-m.x)),S=p.getPointAtLength(O(u,a)),A={x:(4*S.x+m.x+v.x)/6,y:(4*S.y+m.y+v.y)/6,theta:_};return c[u]=A,A},l.clearLocationCache=function(){b=null},l.getVisibleSegment=function(p,a,u){var h,m,v=a.left,_=a.right,S=a.top,A=a.bottom,x=0,R=p.getTotalLength(),M=R;function T(C){var L=p.getPointAtLength(C);C===0?h=L:C===R&&(m=L);var D=L.x_?L.x-_:0,k=L.yA?L.y-A:0;return Math.sqrt(D*D+k*k)}for(var E=T(x);E;){if((x+=E+u)>M)return;E=T(x)}for(E=T(M);E;){if(x>(M-=E+u))return;E=T(M)}return{min:x,max:M,len:M-x,total:R,isClosed:x===0&&M===R&&Math.abs(h.x-m.x)<.1&&Math.abs(h.y-m.y)<.1}},l.findPointOnPath=function(p,a,u,h){for(var m,v,_,S=(h=h||{}).pathLength||p.getTotalLength(),A=h.tolerance||.001,x=h.iterationLimit||30,R=p.getPointAtLength(0)[u]>p.getPointAtLength(S)[u]?-1:1,M=0,T=0,E=S;M0?E=m:T=m,M++}return v}},33040:function(d,l,n){var c=n(38248),b=n(49760),i=n(72160),O=n(8932),w=n(22548).defaultLine,y=n(38116).isArrayOrTypedArray,p=i(w);function a(m,v){var _=m;return _[3]*=v,_}function u(m){if(c(m))return p;var v=i(m);return v.length?v:p}function h(m){return c(m)?m:1}d.exports={formatColor:function(m,v,_){var S=m.color;S&&S._inputArray&&(S=S._inputArray);var A,x,R,M,T,E=y(S),C=y(v),L=O.extractOpts(m),D=[];if(A=L.colorscale!==void 0?O.makeColorScaleFuncFromTrace(m):u,x=E?function(I,z){return I[z]===void 0?p:i(A(I[z]))}:u,R=C?function(I,z){return I[z]===void 0?1:h(I[z])}:h,E||C)for(var k=0;k<_;k++)M=x(S,k),T=R(v,k),D[k]=a(M,T);else D=a(i(S),v);return D},parseColorScale:function(m){var v=O.extractOpts(m),_=v.colorscale;return v.reversescale&&(_=O.flipScale(v.colorscale)),_.map(function(S){var A=S[0],x=b(S[1]).toRgb();return{index:A,rgb:[x.r,x.g,x.b,x.a]}})}}},71688:function(d,l,n){var c=n(35536);function b(i){return[i]}d.exports={keyFun:function(i){return i.key},repeat:b,descend:c,wrap:b,unwrap:function(i){return i[0]}}},35536:function(d){d.exports=function(l){return l}},1396:function(d){d.exports=function(l,n){if(!n)return l;var c=1/Math.abs(n),b=c>1?(c*l+c*n)/c:l+n,i=String(b).length;if(i>16){var O=String(n).length;if(i>=String(l).length+O){var w=parseFloat(b).toPrecision(12);w.indexOf("e+")===-1&&(b=+w)}}return b}},3400:function(d,l,n){var c=n(33428),b=n(94336).E9,i=n(57624).E9,O=n(38248),w=n(39032),y=w.FP_SAFE,p=-y,a=w.BADNUM,u=d.exports={};u.adjustFormat=function(ce){return!ce||/^\d[.]\df/.test(ce)||/[.]\d%/.test(ce)?ce:ce==="0.f"?"~f":/^\d%/.test(ce)?"~%":/^\ds/.test(ce)?"~s":!/^[~,.0$]/.test(ce)&&/[&fps]/.test(ce)?"~"+ce:ce};var h={};u.warnBadFormat=function(ce){var de=String(ce);h[de]||(h[de]=1,u.warn('encountered bad format: "'+de+'"'))},u.noFormat=function(ce){return String(ce)},u.numberFormat=function(ce){var de;try{de=i(u.adjustFormat(ce))}catch{return u.warnBadFormat(ce),u.noFormat}return de},u.nestedProperty=n(22296),u.keyedContainer=n(37804),u.relativeAttr=n(23193),u.isPlainObject=n(63620),u.toLogRange=n(36896),u.relinkPrivateKeys=n(51528);var m=n(38116);u.isArrayBuffer=m.isArrayBuffer,u.isTypedArray=m.isTypedArray,u.isArrayOrTypedArray=m.isArrayOrTypedArray,u.isArray1D=m.isArray1D,u.ensureArray=m.ensureArray,u.concat=m.concat,u.maxRowLength=m.maxRowLength,u.minRowLength=m.minRowLength;var v=n(20435);u.mod=v.mod,u.modHalf=v.modHalf;var _=n(63064);u.valObjectMeta=_.valObjectMeta,u.coerce=_.coerce,u.coerce2=_.coerce2,u.coerceFont=_.coerceFont,u.coercePattern=_.coercePattern,u.coerceHoverinfo=_.coerceHoverinfo,u.coerceSelectionMarkerOpacity=_.coerceSelectionMarkerOpacity,u.validate=_.validate;var S=n(67555);u.dateTime2ms=S.dateTime2ms,u.isDateTime=S.isDateTime,u.ms2DateTime=S.ms2DateTime,u.ms2DateTimeLocal=S.ms2DateTimeLocal,u.cleanDate=S.cleanDate,u.isJSDate=S.isJSDate,u.formatDate=S.formatDate,u.incrementMonth=S.incrementMonth,u.dateTick0=S.dateTick0,u.dfltRange=S.dfltRange,u.findExactDates=S.findExactDates,u.MIN_MS=S.MIN_MS,u.MAX_MS=S.MAX_MS;var A=n(14952);u.findBin=A.findBin,u.sorterAsc=A.sorterAsc,u.sorterDes=A.sorterDes,u.distinctVals=A.distinctVals,u.roundUp=A.roundUp,u.sort=A.sort,u.findIndexOfMin=A.findIndexOfMin,u.sortObjectKeys=n(95376);var x=n(63084);u.aggNums=x.aggNums,u.len=x.len,u.mean=x.mean,u.median=x.median,u.midRange=x.midRange,u.variance=x.variance,u.stdev=x.stdev,u.interp=x.interp;var R=n(52248);u.init2dArray=R.init2dArray,u.transposeRagged=R.transposeRagged,u.dot=R.dot,u.translationMatrix=R.translationMatrix,u.rotationMatrix=R.rotationMatrix,u.rotationXYMatrix=R.rotationXYMatrix,u.apply3DTransform=R.apply3DTransform,u.apply2DTransform=R.apply2DTransform,u.apply2DTransform2=R.apply2DTransform2,u.convertCssMatrix=R.convertCssMatrix,u.inverseTransformMatrix=R.inverseTransformMatrix;var M=n(11864);u.deg2rad=M.deg2rad,u.rad2deg=M.rad2deg,u.angleDelta=M.angleDelta,u.angleDist=M.angleDist,u.isFullCircle=M.isFullCircle,u.isAngleInsideSector=M.isAngleInsideSector,u.isPtInsideSector=M.isPtInsideSector,u.pathArc=M.pathArc,u.pathSector=M.pathSector,u.pathAnnulus=M.pathAnnulus;var T=n(98308);u.isLeftAnchor=T.isLeftAnchor,u.isCenterAnchor=T.isCenterAnchor,u.isRightAnchor=T.isRightAnchor,u.isTopAnchor=T.isTopAnchor,u.isMiddleAnchor=T.isMiddleAnchor,u.isBottomAnchor=T.isBottomAnchor;var E=n(92348);u.segmentsIntersect=E.segmentsIntersect,u.segmentDistance=E.segmentDistance,u.getTextLocation=E.getTextLocation,u.clearLocationCache=E.clearLocationCache,u.getVisibleSegment=E.getVisibleSegment,u.findPointOnPath=E.findPointOnPath;var C=n(92880);u.extendFlat=C.extendFlat,u.extendDeep=C.extendDeep,u.extendDeepAll=C.extendDeepAll,u.extendDeepNoArrays=C.extendDeepNoArrays;var L=n(24248);u.log=L.log,u.warn=L.warn,u.error=L.error;var D=n(53756);u.counterRegex=D.counter;var k=n(91200);u.throttle=k.throttle,u.throttleDone=k.done,u.clearThrottle=k.clear;var I=n(52200);function z(ce){var de={};for(var ve in ce)for(var ye=ce[ve],_e=0;_ey||ce=de)&&O(ce)&&ce>=0&&ce%1==0},u.noop=n(16628),u.identity=n(35536),u.repeat=function(ce,de){for(var ve=new Array(de),ye=0;yeve?Math.max(ve,Math.min(de,ce)):Math.max(de,Math.min(ve,ce))},u.bBoxIntersect=function(ce,de,ve){return ve=ve||0,ce.left<=de.right+ve&&de.left<=ce.right+ve&&ce.top<=de.bottom+ve&&de.top<=ce.bottom+ve},u.simpleMap=function(ce,de,ve,ye,_e){for(var Se=ce.length,Te=new Array(Se),Pe=0;Pe=Math.pow(2,ve)?_e>10?(u.warn("randstr failed uniqueness"),Ie):ce(de,ve,ye,(_e||0)+1):Ie},u.OptionControl=function(ce,de){ce||(ce={}),de||(de="opt");var ve={optionList:[],_newoption:function(ye){ye[de]=ce,ve[ye.name]=ye,ve.optionList.push(ye)}};return ve["_"+de]=ce,ve},u.smooth=function(ce,de){if((de=Math.round(de)||0)<2)return ce;var ve,ye,_e,Se,Te=ce.length,Pe=2*Te,Ie=2*de-1,ze=new Array(Ie),De=new Array(Te);for(ve=0;ve=Pe&&(_e-=Pe*Math.floor(_e/Pe)),_e<0?_e=-1-_e:_e>=Te&&(_e=Pe-1-_e),Se+=ce[_e]*ze[ye];De[ve]=Se}return De},u.syncOrAsync=function(ce,de,ve){var ye;function _e(){return u.syncOrAsync(ce,de,ve)}for(;ce.length;)if((ye=(0,ce.splice(0,1)[0])(de))&&ye.then)return ye.then(_e);return ve&&ve(de)},u.stripTrailingSlash=function(ce){return ce.substr(-1)==="/"?ce.substr(0,ce.length-1):ce},u.noneOrAll=function(ce,de,ve){if(ce){var ye,_e=!1,Se=!0;for(ye=0;ye0?_e:0})},u.fillArray=function(ce,de,ve,ye){if(ye=ye||u.identity,u.isArrayOrTypedArray(ce))for(var _e=0;_e1?_e+Te[1]:"";if(Se&&(Te.length>1||Pe.length>4||ve))for(;ye.test(Pe);)Pe=Pe.replace(ye,"$1"+Se+"$2");return Pe+Ie},u.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;u.templateString=function(ce,de){var ve={};return ce.replace(u.TEMPLATE_STRING_REGEX,function(ye,_e){var Se;return W.test(_e)?Se=de[_e]:(ve[_e]=ve[_e]||u.nestedProperty(de,_e).get,Se=ve[_e]()),u.isValidTextValue(Se)?Se:""})};var K={max:10,count:0,name:"hovertemplate"};u.hovertemplateString=function(){return me.apply(K,arguments)};var oe={max:10,count:0,name:"texttemplate"};u.texttemplateString=function(){return me.apply(oe,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,Y={max:10,count:0,name:"texttemplate",parseMultDiv:!0};u.texttemplateStringForShapes=function(){return me.apply(Y,arguments)};var ee=/^[:|\|]/;function me(ce,de,ve){var ye=this,_e=arguments;de||(de={});var Se={};return ce.replace(u.TEMPLATE_STRING_REGEX,function(Te,Pe,Ie){var ze=Pe==="_xother"||Pe==="_yother",De=Pe==="_xother_"||Pe==="_yother_",He=Pe==="xother_"||Pe==="yother_",Ve=Pe==="xother"||Pe==="yother"||ze||He||De,$e=Pe;(ze||De)&&($e=$e.substring(1)),(He||De)&&($e=$e.substring(0,$e.length-1));var Oe,ke,Le,We=null,Ue=null;if(ye.parseMultDiv){var Ze=function(Ne){var je=Ne.match(q);return je?{key:je[1],op:je[2],number:Number(je[3])}:{key:Ne,op:null,number:null}}($e);$e=Ze.key,We=Ze.op,Ue=Ze.number}if(Ve){if((Oe=de[$e])===void 0)return""}else for(Le=3;Le<_e.length;Le++)if(ke=_e[Le]){if(ke.hasOwnProperty($e)){Oe=ke[$e];break}if(W.test($e)||(Oe=u.nestedProperty(ke,$e).get(),(Oe=Se[$e]||u.nestedProperty(ke,$e).get())&&(Se[$e]=Oe)),Oe!==void 0)break}if(Oe!==void 0&&(We==="*"&&(Oe*=Ue),We==="/"&&(Oe/=Ue)),Oe===void 0&&ye)return ye.count=48&&Te<=57,ze=Pe>=48&&Pe<=57;if(Ie&&(ye=10*ye+Te-48),ze&&(_e=10*_e+Pe-48),!Ie||!ze){if(ye!==_e)return ye-_e;if(Te!==Pe)return Te-Pe}}return _e-ye};var he=2e9;u.seedPseudoRandom=function(){he=2e9},u.pseudoRandom=function(){var ce=he;return he=(69069*he+1)%4294967296,Math.abs(he-ce)<429496729?u.pseudoRandom():he/4294967296},u.fillText=function(ce,de,ve){var ye=Array.isArray(ve)?function(Te){ve.push(Te)}:function(Te){ve.text=Te},_e=u.extractOption(ce,de,"htx","hovertext");if(u.isValidTextValue(_e))return ye(_e);var Se=u.extractOption(ce,de,"tx","text");return u.isValidTextValue(Se)?ye(Se):void 0},u.isValidTextValue=function(ce){return ce||ce===0},u.formatPercent=function(ce,de){de=de||0;for(var ve=(Math.round(100*ce*Math.pow(10,de))*Math.pow(.1,de)).toFixed(de)+"%",ye=0;ye1&&(ze=1):ze=0,u.strTranslate(_e-ze*(ve+Te),Se-ze*(ye+Pe))+u.strScale(ze)+(Ie?"rotate("+Ie+(de?"":" "+ve+" "+ye)+")":"")},u.setTransormAndDisplay=function(ce,de){ce.attr("transform",u.getTextTransform(de)),ce.style("display",de.scale?null:"none")},u.ensureUniformFontSize=function(ce,de){var ve=u.extendFlat({},de);return ve.size=Math.max(de.size,ce._fullLayout.uniformtext.minsize||0),ve},u.join2=function(ce,de,ve){var ye=ce.length;return ye>1?ce.slice(0,-1).join(de)+ve+ce[ye-1]:ce.join(de)},u.bigFont=function(ce){return Math.round(1.2*ce)};var se=u.getFirefoxVersion(),ae=se!==null&&se<86;u.getPositionFromD3Event=function(){return ae?[c.event.layerX,c.event.layerY]:[c.event.offsetX,c.event.offsetY]}},63620:function(d){d.exports=function(l){return window&&window.process&&window.process.versions?Object.prototype.toString.call(l)==="[object Object]":Object.prototype.toString.call(l)==="[object Object]"&&Object.getPrototypeOf(l).hasOwnProperty("hasOwnProperty")}},37804:function(d,l,n){var c=n(22296),b=/^\w*$/;d.exports=function(i,O,w,y){var p,a,u;w=w||"name",y=y||"value";var h={};O&&O.length?(u=c(i,O),a=u.get()):a=i,O=O||"";var m={};if(a)for(p=0;p2)return h[A]=2|h[A],_.set(S,null);if(v){for(p=A;p1){var w=["LOG:"];for(O=0;O1){var y=[];for(O=0;O"),"long")}},i.warn=function(){var O;if(c.logging>0){var w=["WARN:"];for(O=0;O0){var y=[];for(O=0;O"),"stick")}},i.error=function(){var O;if(c.logging>0){var w=["ERROR:"];for(O=0;O0){var y=[];for(O=0;O"),"stick")}}},30988:function(d,l,n){var c=n(33428);d.exports=function(b,i,O){var w=b.selectAll("g."+O.replace(/\s/g,".")).data(i,function(p){return p[0].trace.uid});w.exit().remove(),w.enter().append("g").attr("class",O),w.order();var y=b.classed("rangeplot")?"nodeRangePlot3":"node3";return w.each(function(p){p[0][y]=c.select(this)}),w}},52248:function(d,l,n){var c=n(36524);l.init2dArray=function(b,i){for(var O=new Array(b),w=0;wn/2?l-Math.round(l/n)*n:l}}},22296:function(d,l,n){var c=n(38248),b=n(38116).isArrayOrTypedArray;function i(h,m){return function(){var v,_,S,A,x,R=h;for(A=0;A/g),_=0;_a||M===b||Mh||x&&m(A))}:function(A,x){var R=A[0],M=A[1];if(R===b||Ra||M===b||Mh)return!1;var T,E,C,L,D,k=y.length,I=y[0][0],z=y[0][1],$=0;for(T=1;TMath.max(E,I)||M>Math.max(C,z)))if(M_||Math.abs(c(u,A))>p)return!0;return!1},i.filter=function(O,w){var y=[O[0]],p=0,a=0;function u(h){O.push(h);var m=y.length,v=p;y.splice(a+1);for(var _=v+1;_1&&u(O.pop()),{addPt:u,raw:O,filtered:y}}},5048:function(d,l,n){var c=n(16576),b=n(28624);d.exports=function(i,O,w){var y=i._fullLayout,p=!0;return y._glcanvas.each(function(a){if(a.regl)a.regl.preloadCachedCode(w);else if(!a.pick||y._has("parcoords")){try{a.regl=b({canvas:this,attributes:{antialias:!a.pick,preserveDrawingBuffer:!0},pixelRatio:i._context.plotGlPixelRatio||n.g.devicePixelRatio,extensions:O||[],cachedCode:w||{}})}catch{p=!1}a.regl||(p=!1),p&&this.addEventListener("webglcontextlost",function(u){i&&i.emit&&i.emit("plotly_webglcontextlost",{event:u,layer:a.key})},!1)}}),p||c({container:y._glcontainer.node()}),p}},34296:function(d,l,n){var c=n(38248),b=n(25928);d.exports=function(i){var O;if(typeof(O=i&&i.hasOwnProperty("userAgent")?i.userAgent:function(){var m;return typeof navigator<"u"&&(m=navigator.userAgent),m&&m.headers&&typeof m.headers["user-agent"]=="string"&&(m=m.headers["user-agent"]),m}())!="string")return!0;var w=b({ua:{headers:{"user-agent":O}},tablet:!0,featureDetect:!1});if(!w){for(var y=O.split(" "),p=1;p-1;a--){var u=y[a];if(u.substr(0,8)==="Version/"){var h=u.substr(8).split(".")[0];if(c(h)&&(h=+h),h>=13)return!0}}}return w}},52416:function(d){d.exports=function(l,n){if(n instanceof RegExp){for(var c=n.toString(),b=0;bb.queueLength&&(O.undoQueue.queue.shift(),O.undoQueue.index--))},startSequence:function(O){O.undoQueue=O.undoQueue||{index:0,queue:[],sequence:!1},O.undoQueue.sequence=!0,O.undoQueue.beginSequence=!0},stopSequence:function(O){O.undoQueue=O.undoQueue||{index:0,queue:[],sequence:!1},O.undoQueue.sequence=!1,O.undoQueue.beginSequence=!1},undo:function(O){var w,y;if(!(O.undoQueue===void 0||isNaN(O.undoQueue.index)||O.undoQueue.index<=0)){for(O.undoQueue.index--,w=O.undoQueue.queue[O.undoQueue.index],O.undoQueue.inSequence=!0,y=0;y=O.undoQueue.queue.length)){for(w=O.undoQueue.queue[O.undoQueue.index],O.undoQueue.inSequence=!0,y=0;ym}function u(h,m){return h>=m}l.findBin=function(h,m,v){if(c(m.start))return v?Math.ceil((h-m.start)/m.size-w)-1:Math.floor((h-m.start)/m.size+w);var _,S,A=0,x=m.length,R=0,M=x>1?(m[x-1]-m[0])/(x-1):1;for(S=M>=0?v?y:p:v?u:a,h+=M*w*(v?-1:1)*(M>=0?1:-1);A90&&b.log("Long binary search..."),A-1},l.sorterAsc=function(h,m){return h-m},l.sorterDes=function(h,m){return m-h},l.distinctVals=function(h){var m,v=h.slice();for(v.sort(l.sorterAsc),m=v.length-1;m>-1&&v[m]===O;m--);for(var _,S=v[m]-v[0]||1,A=S/(m||1)/1e4,x=[],R=0;R<=m;R++){var M=v[R],T=M-_;_===void 0?(x.push(M),_=M):T>A&&(S=Math.min(S,T),x.push(M),_=M)}return{vals:x,minDiff:S}},l.roundUp=function(h,m,v){for(var _,S=0,A=m.length-1,x=0,R=v?0:1,M=v?1:0,T=v?Math.ceil:Math.floor;S0&&(_=1),v&&_)return h.sort(m)}return _?h:h.reverse()},l.findIndexOfMin=function(h,m){m=m||i;for(var v,_=1/0,S=0;Sw.length)&&(y=w.length),c(O)||(O=!1),b(w[0])){for(a=new Array(y),p=0;pi.length-1)return i[i.length-1];var w=O%1;return w*i[Math.ceil(O)]+(1-w)*i[Math.floor(O)]}},43080:function(d,l,n){var c=n(72160);d.exports=function(b){return b?c(b):[0,0,0,1]}},9188:function(d,l,n){var c=n(2264),b=n(43616),i=n(3400),O=null;d.exports=function(){if(O!==null)return O;O=!1;var w=i.isIE()||i.isSafari()||i.isIOS();if(window.navigator.userAgent&&!w){var y=Array.from(c.CSS_DECLARATIONS).reverse(),p=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof p=="function")O=y.some(function(h){return p.apply(null,h)});else{var a=b.tester.append("image").attr("style",c.STYLE),u=window.getComputedStyle(a.node()).imageRendering;O=y.some(function(h){var m=h[1];return u===m||u===m.toLowerCase()}),a.remove()}}return O}},72736:function(d,l,n){var c=n(33428),b=n(3400),i=b.strTranslate,O=n(9616),w=n(84284).LINE_SPACING,y=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;l.convertToTspans=function(X,te,W){var K=X.text(),oe=!X.attr("data-notex")&&te&&te._context.typesetMath&&typeof MathJax<"u"&&K.match(y),q=c.select(X.node().parentNode);if(!q.empty()){var Y=X.attr("class")?X.attr("class").split(" ")[0]:"text";return Y+="-math",q.selectAll("svg."+Y).remove(),q.selectAll("g."+Y+"-group").remove(),X.style("display",null).attr({"data-unformatted":K,"data-math":"N"}),oe?(te&&te._promises||[]).push(new Promise(function(me){X.style("display","none");var he=parseInt(X.node().style.fontSize,10),se={fontSize:he};(function(ae,ce,de){var ve,ye,_e,Se,Te=parseInt((MathJax.version||"").split(".")[0]);if(Te===2||Te===3){var Pe=function(){var ze="math-output-"+b.randstr({},64),De=(Se=c.select("body").append("div").attr({id:ze}).style({visibility:"hidden",position:"absolute","font-size":ce.fontSize+"px"}).text(ae.replace(p,"\\lt ").replace(a,"\\gt "))).node();return Te===2?MathJax.Hub.Typeset(De):MathJax.typeset([De])},Ie=function(){var ze=Se.select(Te===2?".MathJax_SVG":".MathJax"),De=!ze.empty()&&Se.select("svg").node();if(De){var He,Ve=De.getBoundingClientRect();He=Te===2?c.select("body").select("#MathJax_SVG_glyphs"):ze.select("defs"),de(ze,He,Ve)}else b.log("There was an error in the tex syntax.",ae),de();Se.remove()};Te===2?MathJax.Hub.Queue(function(){return ye=b.extendDeepAll({},MathJax.Hub.config),_e=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:u},displayAlign:"left"})},function(){if((ve=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},Pe,Ie,function(){if(ve!=="SVG")return MathJax.Hub.setRenderer(ve)},function(){return _e!==void 0&&(MathJax.Hub.processSectionDelay=_e),MathJax.Hub.Config(ye)}):Te===3&&(ye=b.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=u,(ve=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){Pe(),Ie(),ve!=="svg"&&(MathJax.config.startup.output=ve),MathJax.config=ye}))}else b.warn("No MathJax version:",MathJax.version)})(oe[2],se,function(ae,ce,de){q.selectAll("svg."+Y).remove(),q.selectAll("g."+Y+"-group").remove();var ve=ae&&ae.select("svg");if(!ve||!ve.node())return ee(),void me();var ye=q.append("g").classed(Y+"-group",!0).attr({"pointer-events":"none","data-unformatted":K,"data-math":"Y"});ye.node().appendChild(ve.node()),ce&&ce.node()&&ve.node().insertBefore(ce.node().cloneNode(!0),ve.node().firstChild);var _e=de.width,Se=de.height;ve.attr({class:Y,height:Se,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var Te=X.node().style.fill||"black",Pe=ve.select("g");Pe.attr({fill:Te,stroke:Te});var Ie=Pe.node().getBoundingClientRect(),ze=Ie.width,De=Ie.height;(ze>_e||De>Se)&&(ve.style("overflow","hidden"),ze=(Ie=ve.node().getBoundingClientRect()).width,De=Ie.height);var He=+X.attr("x"),Ve=+X.attr("y"),$e=-(he||X.node().getBoundingClientRect().height)/4;if(Y[0]==="y")ye.attr({transform:"rotate("+[-90,He,Ve]+")"+i(-ze/2,$e-De/2)});else if(Y[0]==="l")Ve=$e-De/2;else if(Y[0]==="a"&&Y.indexOf("atitle")!==0)He=0,Ve=$e;else{var Oe=X.attr("text-anchor");He-=ze*(Oe==="middle"?.5:Oe==="end"?1:0),Ve=Ve+$e-De/2}ve.attr({x:He,y:Ve}),W&&W.call(X,ye),me(ye)})})):ee(),X}function ee(){q.empty()||(Y=X.attr("class")+"-math",q.select("svg."+Y).remove()),X.text("").style("white-space","pre");var me=function(he,se){se=se.replace(A," ");var ae,ce=!1,de=[],ve=-1;function ye(){ve++;var Ue=document.createElementNS(O.svg,"tspan");c.select(Ue).attr({class:"line",dy:ve*w+"em"}),he.appendChild(Ue),ae=Ue;var Ze=de;if(de=[{node:Ue}],Ze.length>1)for(var Xe=1;Xe doesnt match end tag <"+Ue+">. Pretending it did match.",se),ae=de[de.length-1].node}else b.log("Ignoring unexpected end tag .",se)}M.test(se)?ye():(ae=he,de=[{node:he}]);for(var Pe=se.split(x),Ie=0;Ie|>|>)/g,u=[["$","$"],["\\(","\\)"]],h={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},m={sub:"0.3em",sup:"-0.6em"},v={sub:"-0.21em",sup:"0.42em"},_="​",S=["http:","https:","mailto:","",void 0,":"],A=l.NEWLINES=/(\r\n?|\n)/g,x=/(<[^<>]*>)/,R=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;l.BR_TAG_ALL=//gi;var T=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,E=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,C=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,L=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function D(X,te){if(!X)return null;var W=X.match(te),K=W&&(W[3]||W[4]);return K&&$(K)}var k=/(^|;)\s*color:/;l.plainText=function(X,te){for(var W=(te=te||{}).len!==void 0&&te.len!==-1?te.len:1/0,K=te.allowedTags!==void 0?te.allowedTags:["br"],oe=X.split(x),q=[],Y="",ee=0,me=0;me3?q.push(he.substr(0,de-3)+"..."):q.push(he.substr(0,de));break}Y=""}}return q.join("")};var I={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},z=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function $(X){return X.replace(z,function(te,W){return(W.charAt(0)==="#"?function(K){if(!(K>1114111)){var oe=String.fromCodePoint;if(oe)return oe(K);var q=String.fromCharCode;return K<=65535?q(K):q(55232+(K>>10),K%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):I[W])||te})}function Q(X){var te=encodeURI(decodeURI(X)),W=document.createElement("a"),K=document.createElement("a");W.href=X,K.href=te;var oe=W.protocol,q=K.protocol;return S.indexOf(oe)!==-1&&S.indexOf(q)!==-1?te:""}function j(X,te,W){var K,oe,q,Y=W.horizontalAlign,ee=W.verticalAlign||"top",me=X.node().getBoundingClientRect(),he=te.node().getBoundingClientRect();return oe=ee==="bottom"?function(){return me.bottom-K.height}:ee==="middle"?function(){return me.top+(me.height-K.height)/2}:function(){return me.top},q=Y==="right"?function(){return me.right-K.width}:Y==="center"?function(){return me.left+(me.width-K.width)/2}:function(){return me.left},function(){K=this.node().getBoundingClientRect();var se=q()-he.left,ae=oe()-he.top,ce=W.gd||{};if(W.gd){ce._fullLayout._calcInverseTransform(ce);var de=b.apply3DTransform(ce._fullLayout._invTransform)(se,ae);se=de[0],ae=de[1]}return this.style({top:ae+"px",left:se+"px","z-index":1e3}),this}}l.convertEntities=$,l.sanitizeHTML=function(X){X=X.replace(A," ");for(var te=document.createElement("p"),W=te,K=[],oe=X.split(x),q=0;qw.ts+i?a():w.timer=setTimeout(function(){a(),w.timer=null},i)},l.done=function(b){var i=n[b];return i&&i.timer?new Promise(function(O){var w=i.onDone;i.onDone=function(){w&&w(),O(),i.onDone=null}}):Promise.resolve()},l.clear=function(b){if(b)c(n[b]),delete n[b];else for(var i in n)l.clear(i)}},36896:function(d,l,n){var c=n(38248);d.exports=function(b,i){if(b>0)return Math.log(b)/Math.LN10;var O=Math.log(Math.min(i[0],i[1]))/Math.LN10;return c(O)||(O=Math.log(Math.max(i[0],i[1]))/Math.LN10-6),O}},59972:function(d,l,n){var c=d.exports={},b=n(79552).locationmodeToLayer,i=n(55712).NO;c.getTopojsonName=function(O){return[O.scope.replace(/ /g,"-"),"_",O.resolution.toString(),"m"].join("")},c.getTopojsonPath=function(O,w){return O+w+".json"},c.getTopojsonFeatures=function(O,w){var y=b[O.locationmode],p=w.objects[y];return i(w,p).features}},11680:function(d){d.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(d){d.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(d,l,n){var c=n(24040);d.exports=function(b){for(var i,O,w=c.layoutArrayContainers,y=c.layoutArrayRegexes,p=b.split("[")[0],a=0;a0&&O.log("Clearing previous rejected promises from queue."),E._promises=[]},l.cleanLayout=function(E){var C,L;E||(E={}),E.xaxis1&&(E.xaxis||(E.xaxis=E.xaxis1),delete E.xaxis1),E.yaxis1&&(E.yaxis||(E.yaxis=E.yaxis1),delete E.yaxis1),E.scene1&&(E.scene||(E.scene=E.scene1),delete E.scene1);var D=(w.subplotsRegistry.cartesian||{}).attrRegex,k=(w.subplotsRegistry.polar||{}).attrRegex,I=(w.subplotsRegistry.ternary||{}).attrRegex,z=(w.subplotsRegistry.gl3d||{}).attrRegex,$=Object.keys(E);for(C=0;C<$.length;C++){var Q=$[C];if(D&&D.test(Q)){var j=E[Q];j.anchor&&j.anchor!=="free"&&(j.anchor=a(j.anchor)),j.overlaying&&(j.overlaying=a(j.overlaying)),j.type||(j.isdate?j.type="date":j.islog?j.type="log":j.isdate===!1&&j.islog===!1&&(j.type="linear")),j.autorange!=="withzero"&&j.autorange!=="tozero"||(j.autorange=!0,j.rangemode="tozero"),j.insiderange&&delete j.range,delete j.islog,delete j.isdate,delete j.categories,x(j,"domain")&&delete j.domain,j.autotick!==void 0&&(j.tickmode===void 0&&(j.tickmode=j.autotick?"auto":"linear"),delete j.autotick),v(j)}else if(k&&k.test(Q))v(E[Q].radialaxis);else if(I&&I.test(Q)){var U=E[Q];v(U.aaxis),v(U.baxis),v(U.caxis)}else if(z&&z.test(Q)){var X=E[Q],te=X.cameraposition;if(Array.isArray(te)&&te[0].length===4){var W=te[0],K=te[1],oe=te[2],q=b([],W),Y=[];for(L=0;L<3;++L)Y[L]=K[L]+oe*q[2+4*L];X.camera={eye:{x:Y[0],y:Y[1],z:Y[2]},center:{x:K[0],y:K[1],z:K[2]},up:{x:0,y:0,z:1}},delete X.cameraposition}v(X.xaxis),v(X.yaxis),v(X.zaxis)}}var ee=Array.isArray(E.annotations)?E.annotations.length:0;for(C=0;C3?(de.x=1.02,de.xanchor="left"):de.x<-2&&(de.x=-.02,de.xanchor="right"),de.y>3?(de.y=1.02,de.yanchor="bottom"):de.y<-2&&(de.y=-.02,de.yanchor="top")),v(E),E.dragmode==="rotate"&&(E.dragmode="orbit"),p.clean(E),E.template&&E.template.layout&&l.cleanLayout(E.template.layout),E},l.cleanData=function(E){for(var C=0;C0)return E.substr(0,C)}l.hasParent=function(E,C){for(var L=M(C);L;){if(L in E)return!0;L=M(L)}return!1};var T=["x","y","z"];l.clearAxisTypes=function(E,C,L){for(var D=0;D1&&i.warn("Full array edits are incompatible with other edits",_);var E=h[""][""];if(p(E))u.set(null);else{if(!Array.isArray(E))return i.warn("Unrecognized full array edit value",_,E),!0;u.set(E)}return!R&&(S(M,T),A(a),!0)}var C,L,D,k,I,z,$,Q,j=Object.keys(h).map(Number).sort(O),U=u.get(),X=U||[],te=v(T,_).get(),W=[],K=-1,oe=X.length;for(C=0;CX.length-($?0:1))i.warn("index out of range",_,D);else if(z!==void 0)I.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",_,D),p(z)?W.push(D):$?(z==="add"&&(z={}),X.splice(D,0,z),te&&te.splice(D,0,{})):i.warn("Unrecognized full object edit value",_,D,z),K===-1&&(K=D);else for(L=0;L=0;C--)X.splice(W[C],1),te&&te.splice(W[C],1);if(X.length?U||u.set(X):u.set(null),R)return!1;if(S(M,T),x!==b){var q;if(K===-1)q=j;else{for(oe=Math.max(X.length,oe),q=[],C=0;C=K);C++)q.push(D);for(C=K;C=Ue.data.length||Ee<-Ue.data.length)throw new Error(Xe+" must be valid indices for gd.data.");if(Ze.indexOf(Ee,tt+1)>-1||Ee>=0&&Ze.indexOf(-Ue.data.length+Ee)>-1||Ee<0&&Ze.indexOf(Ue.data.length+Ee)>-1)throw new Error("each index in "+Xe+" must be unique.")}}function te(Ue,Ze,Xe){if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(Ze===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(Ze)||(Ze=[Ze]),X(Ue,Ze,"currentIndices"),Xe===void 0||Array.isArray(Xe)||(Xe=[Xe]),Xe!==void 0&&X(Ue,Xe,"newIndices"),Xe!==void 0&&Ze.length!==Xe.length)throw new Error("current and new indices must be of equal length.")}function W(Ue,Ze,Xe,tt,Ee){(function(wt,Dt,It,qt){var en=O.isPlainObject(qt);if(!Array.isArray(wt.data))throw new Error("gd.data must be an array");if(!O.isPlainObject(Dt))throw new Error("update must be a key:value object");if(It===void 0)throw new Error("indices must be an integer or array of integers");for(var Gt in X(wt,It,"indices"),Dt){if(!Array.isArray(Dt[Gt])||Dt[Gt].length!==It.length)throw new Error("attribute "+Gt+" must be an array of length equal to indices array length");if(en&&(!(Gt in qt)||!Array.isArray(qt[Gt])||qt[Gt].length!==Dt[Gt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(Ue,Ze,Xe,tt);for(var Ne=function(wt,Dt,It,qt){var en,Gt,Ct,_t,nn,gn=O.isPlainObject(qt),bn=[];for(var mn in Array.isArray(It)||(It=[It]),It=U(It,wt.data.length-1),Dt)for(var vt=0;vt-1&&Xe.indexOf("grouptitlefont")===-1?nt(Xe,Xe.replace("titlefont","title.font")):Xe.indexOf("titleposition")>-1?nt(Xe,Xe.replace("titleposition","title.position")):Xe.indexOf("titleside")>-1?nt(Xe,Xe.replace("titleside","title.side")):Xe.indexOf("titleoffset")>-1&&nt(Xe,Xe.replace("titleoffset","title.offset")):nt(Xe,Xe.replace("title","title.text"));function nt(ot,Ge){Ue[Ge]=Ue[ot],delete Ue[ot]}}function se(Ue,Ze,Xe){Ue=O.getGraphDiv(Ue),C.clearPromiseQueue(Ue);var tt={};if(typeof Ze=="string")tt[Ze]=Xe;else{if(!O.isPlainObject(Ze))return O.warn("Relayout fail.",Ze,Xe),Promise.reject();tt=O.extendFlat({},Ze)}Object.keys(tt).length&&(Ue.changed=!0);var Ee=_e(Ue,tt),Ne=Ee.flags;Ne.calc&&(Ue.calcdata=void 0);var je=[h.previousPromises];Ne.layoutReplot?je.push(L.layoutReplot):Object.keys(tt).length&&(ae(Ue,Ne,Ee)||h.supplyDefaults(Ue),Ne.legend&&je.push(L.doLegend),Ne.layoutstyle&&je.push(L.layoutStyles),Ne.axrange&&ce(je,Ee.rangesAltered),Ne.ticks&&je.push(L.doTicksRelayout),Ne.modebar&&je.push(L.doModeBar),Ne.camera&&je.push(L.doCamera),Ne.colorbars&&je.push(L.doColorBars),je.push(z)),je.push(h.rehover,h.redrag,h.reselect),p.add(Ue,se,[Ue,Ee.undoit],se,[Ue,Ee.redoit]);var nt=O.syncOrAsync(je,Ue);return nt&&nt.then||(nt=Promise.resolve(Ue)),nt.then(function(){return Ue.emit("plotly_relayout",Ee.eventData),Ue})}function ae(Ue,Ze,Xe){var tt,Ee,Ne=Ue._fullLayout;if(!Ze.axrange)return!1;for(var je in Ze)if(je!=="axrange"&&Ze[je])return!1;var nt=function(Dt,It){return O.coerce(tt,Ee,_,Dt,It)},ot={};for(var Ge in Xe.rangesAltered){var ht=m.id2name(Ge);if(tt=Ue.layout[ht],Ee=Ne[ht],v(tt,Ee,nt,ot),Ee._matchGroup){for(var pt in Ee._matchGroup)if(pt!==Ge){var wt=Ne[m.id2name(pt)];wt.autorange=Ee.autorange,wt.range=Ee.range.slice(),wt._input.range=Ee.range.slice()}}}return!0}function ce(Ue,Ze){var Xe=Ze?function(tt){var Ee=[];for(var Ne in Ze){var je=m.getFromId(tt,Ne);if(Ee.push(Ne),(je.ticklabelposition||"").indexOf("inside")!==-1&&je._anchorAxis&&Ee.push(je._anchorAxis._id),je._matchGroup)for(var nt in je._matchGroup)Ze[nt]||Ee.push(nt)}return m.draw(tt,Ee,{skipTitle:!0})}:function(tt){return m.draw(tt,"redraw")};Ue.push(M,L.doAutoRangeAndConstraints,Xe,L.drawData,L.finalDraw)}var de=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,ve=/^[xyz]axis[0-9]*\.autorange$/,ye=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function _e(Ue,Ze){var Xe,tt,Ee,Ne=Ue.layout,je=Ue._fullLayout,nt=je._guiEditing,ot=Y(je._preGUI,nt),Ge=Object.keys(Ze),ht=m.list(Ue),pt=O.extendDeepAll({},Ze),wt={};for(he(Ze),Ge=Object.keys(Ze),tt=0;tt0&&typeof vt.parts[lt]!="string";)lt--;var yt=vt.parts[lt],zt=vt.parts[lt-1]+"."+yt,Rt=vt.parts.slice(0,lt).join("."),it=w(Ue.layout,Rt).get(),at=w(je,Rt).get(),Lt=vt.get();if(bt!==void 0){Gt[mn]=bt,Ct[mn]=yt==="reverse"?bt:q(Lt);var xt=u.getLayoutValObject(je,vt.parts);if(xt&&xt.impliedEdits&&bt!==null)for(var Ht in xt.impliedEdits)_t(O.relativeAttr(mn,Ht),xt.impliedEdits[Ht]);if(["width","height"].indexOf(mn)!==-1)if(bt){_t("autosize",null);var Xt=mn==="height"?"width":"height";_t(Xt,je[Xt])}else je[mn]=Ue._initialAutoSize[mn];else if(mn==="autosize")_t("width",bt?null:je.width),_t("height",bt?null:je.height);else if(zt.match(de))bn(zt),w(je,Rt+"._inputRange").set(null);else if(zt.match(ve)){bn(zt),w(je,Rt+"._inputRange").set(null);var Yt=w(je,Rt).get();Yt._inputDomain&&(Yt._input.domain=Yt._inputDomain.slice())}else zt.match(ye)&&w(je,Rt+"._inputDomain").set(null);if(yt==="type"){nn=it;var Qt=at.type==="linear"&&bt==="log",Pt=at.type==="log"&&bt==="linear";if(Qt||Pt){if(nn&&nn.range)if(at.autorange)Qt&&(nn.range=nn.range[1]>nn.range[0]?[1,2]:[2,1]);else{var tn=nn.range[0],Kt=nn.range[1];Qt?(tn<=0&&Kt<=0&&_t(Rt+".autorange",!0),tn<=0?tn=Kt/1e6:Kt<=0&&(Kt=tn/1e6),_t(Rt+".range[0]",Math.log(tn)/Math.LN10),_t(Rt+".range[1]",Math.log(Kt)/Math.LN10)):(_t(Rt+".range[0]",Math.pow(10,tn)),_t(Rt+".range[1]",Math.pow(10,Kt)))}else _t(Rt+".autorange",!0);Array.isArray(je._subplots.polar)&&je._subplots.polar.length&&je[vt.parts[0]]&&vt.parts[1]==="radialaxis"&&delete je[vt.parts[0]]._subplot.viewInitial["radialaxis.range"],a.getComponentMethod("annotations","convertCoords")(Ue,at,bt,_t),a.getComponentMethod("images","convertCoords")(Ue,at,bt,_t)}else _t(Rt+".autorange",!0),_t(Rt+".range",null);w(je,Rt+"._inputRange").set(null)}else if(yt.match(k)){var fn=w(je,mn).get(),dn=(bt||{}).type;dn&&dn!=="-"||(dn="linear"),a.getComponentMethod("annotations","convertCoords")(Ue,fn,dn,_t),a.getComponentMethod("images","convertCoords")(Ue,fn,dn,_t)}var vn=E.containerArrayMatch(mn);if(vn){Xe=vn.array,tt=vn.index;var Nn=vn.property,er=xt||{editType:"calc"};tt!==""&&Nn===""&&(E.isAddVal(bt)?Ct[mn]=null:E.isRemoveVal(bt)?Ct[mn]=(w(Ne,Xe).get()||[])[tt]:O.warn("unrecognized full object value",Ze)),D.update(en,er),wt[Xe]||(wt[Xe]={});var En=wt[Xe][tt];En||(En=wt[Xe][tt]={}),En[Nn]=bt,delete Ze[mn]}else yt==="reverse"?(it.range?it.range.reverse():(_t(Rt+".autorange",!0),it.range=[1,0]),at.autorange?en.calc=!0:en.plot=!0):(mn==="dragmode"&&(bt===!1&&Lt!==!1||bt!==!1&&Lt===!1)||je._has("scatter-like")&&je._has("regl")&&mn==="dragmode"&&(bt==="lasso"||bt==="select")&&Lt!=="lasso"&&Lt!=="select"||je._has("gl2d")?en.plot=!0:xt?D.update(en,xt):en.calc=!0,vt.set(bt))}}for(Xe in wt)E.applyContainerArrayChanges(Ue,ot(Ne,Xe),wt[Xe],en,ot)||(en.plot=!0);for(var In in gn){var Un=(nn=m.getFromId(Ue,In))&&nn._constraintGroup;if(Un)for(var xr in en.calc=!0,Un)gn[xr]||(m.getFromId(Ue,xr)._constraintShrinkable=!0)}(Se(Ue)||Ze.height||Ze.width)&&(en.plot=!0);var Sr=je.shapes;for(tt=0;tt1;)if(tt.pop(),(Xe=w(Ze,tt.join(".")+".uirevision").get())!==void 0)return Xe;return Ze.uirevision}function Ve(Ue,Ze){for(var Xe=0;Xe=Ee.length?Ee[0]:Ee[Ge]:Ee}function nt(Ge){return Array.isArray(Ne)?Ge>=Ne.length?Ne[0]:Ne[Ge]:Ne}function ot(Ge,ht){var pt=0;return function(){if(Ge&&++pt===ht)return Ge()}}return tt._frameWaitingCnt===void 0&&(tt._frameWaitingCnt=0),new Promise(function(Ge,ht){function pt(){Ue.emit("plotly_animating"),tt._lastFrameAt=-1/0,tt._timeToNext=0,tt._runningTransitions=0,tt._currentFrame=null;var mn=function(){tt._animationRaf=window.requestAnimationFrame(mn),Date.now()-tt._lastFrameAt>tt._timeToNext&&function(){tt._currentFrame&&tt._currentFrame.onComplete&&tt._currentFrame.onComplete();var vt=tt._currentFrame=tt._frameQueue.shift();if(vt){var bt=vt.name?vt.name.toString():null;Ue._fullLayout._currentFrame=bt,tt._lastFrameAt=Date.now(),tt._timeToNext=vt.frameOpts.duration,h.transition(Ue,vt.frame.data,vt.frame.layout,C.coerceTraceIndices(Ue,vt.frame.traces),vt.frameOpts,vt.transitionOpts).then(function(){vt.onComplete&&vt.onComplete()}),Ue.emit("plotly_animatingframe",{name:bt,frame:vt.frame,animation:{frame:vt.frameOpts,transition:vt.transitionOpts}})}else Ue.emit("plotly_animated"),window.cancelAnimationFrame(tt._animationRaf),tt._animationRaf=null}()};mn()}var wt,Dt,It=0;function qt(mn){return Array.isArray(Ee)?It>=Ee.length?mn.transitionOpts=Ee[It]:mn.transitionOpts=Ee[0]:mn.transitionOpts=Ee,It++,mn}var en=[],Gt=Ze==null,Ct=Array.isArray(Ze);if(Gt||Ct||!O.isPlainObject(Ze)){if(Gt||["string","number"].indexOf(typeof Ze)!==-1)for(wt=0;wt0&&gngn)&&bn.push(Dt);en=bn}}en.length>0?function(mn){if(mn.length!==0){for(var vt=0;vt=0;tt--)if(O.isPlainObject(Ze[tt])){var wt=Ze[tt].name,Dt=(ot[wt]||pt[wt]||{}).name,It=Ze[tt].name,qt=ot[Dt]||pt[Dt];Dt&&It&&typeof It=="number"&&qt&&I<5&&(I++,O.warn('addFrames: overwriting frame "'+(ot[Dt]||pt[Dt]).name+'" with a frame whose name of type "number" also equates to "'+Dt+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),I===5&&O.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),pt[wt]={name:wt},ht.push({frame:h.supplyFrameDefaults(Ze[tt]),index:Xe&&Xe[tt]!==void 0&&Xe[tt]!==null?Xe[tt]:Ge+tt})}ht.sort(function(mn,vt){return mn.index>vt.index?-1:mn.index=0;tt--){if(typeof(Ee=ht[tt].frame).name=="number"&&O.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Ee.name)for(;ot[Ee.name="frame "+Ue._transitionData._counter++];);if(ot[Ee.name]){for(Ne=0;Ne=0;Xe--)tt=Ze[Xe],Ne.push({type:"delete",index:tt}),je.unshift({type:"insert",index:tt,value:Ee[tt]});var nt=h.modifyFrames,ot=h.modifyFrames,Ge=[Ue,je],ht=[Ue,Ne];return p&&p.add(Ue,nt,Ge,ot,ht),h.modifyFrames(Ue,Ne)},l.addTraces=function Ue(Ze,Xe,tt){Ze=O.getGraphDiv(Ze);var Ee,Ne,je=[],nt=l.deleteTraces,ot=Ue,Ge=[Ze,je],ht=[Ze,Xe];for(function(pt,wt,Dt){var It,qt;if(!Array.isArray(pt.data))throw new Error("gd.data must be an array.");if(wt===void 0)throw new Error("traces must be defined.");for(Array.isArray(wt)||(wt=[wt]),It=0;It=0&&ht=0&&ht=j.length)return!1;if(k.dimensions===2){if(z++,I.length===z)return k;var U=I[z];if(!T(U))return!1;k=j[Q][U]}else k=j[Q]}else k=j}}return k}function T(k){return k===Math.round(k)&&k>=0}function E(){var k,I,z={};for(k in u(z,O),c.subplotsRegistry)if((I=c.subplotsRegistry[k]).layoutAttributes)if(Array.isArray(I.attr))for(var $=0;$=U.length)return!1;$=(z=(c.transformsRegistry[U[X].type]||{}).attributes)&&z[I[2]],j=3}else{var te=k._module;if(te||(te=(c.modules[k.type||i.type.dflt]||{})._module),!te)return!1;if(!($=(z=te.attributes)&&z[Q])){var W=te.basePlotModule;W&&W.attributes&&($=W.attributes[Q])}$||($=i[Q])}return M($,I,j)},l.getLayoutValObject=function(k,I){var z=function($,Q){var j,U,X,te,W=$._basePlotModules;if(W){var K;for(j=0;j=h&&(u._input||{})._templateitemname;v&&(m=h);var _,S=a+"["+m+"]";function A(){_={},v&&(_[S]={},_[S][i]=v)}function x(M,T){v?c.nestedProperty(_[S],M).set(T):_[S+"."+M]=T}function R(){var M=_;return A(),M}return A(),{modifyBase:function(M,T){_[M]=T},modifyItem:x,getUpdateObj:R,applyUpdate:function(M,T){M&&x(M,T);var E=R();for(var C in E)c.nestedProperty(p,C).set(E[C])}}}},39172:function(d,l,n){var c=n(33428),b=n(24040),i=n(7316),O=n(3400),w=n(72736),y=n(73696),p=n(76308),a=n(43616),u=n(81668),h=n(45460),m=n(54460),v=n(84284),_=n(71888),S=_.enforce,A=_.clean,x=n(19280).doAutoRange,R="start";function M(D,k,I){for(var z=0;z=D[1]||$[1]<=D[0])&&Q[0]k[0])return!0}return!1}function T(D){var k,I,z,$,Q,j,U=D._fullLayout,X=U._size,te=X.p,W=m.list(D,"",!0);if(U._paperdiv.style({width:D._context.responsive&&U.autosize&&!D._context._hasZeroWidth&&!D.layout.width?"100%":U.width+"px",height:D._context.responsive&&U.autosize&&!D._context._hasZeroHeight&&!D.layout.height?"100%":U.height+"px"}).selectAll(".main-svg").call(a.setSize,U.width,U.height),D._context.setBackground(D,U.paper_bgcolor),l.drawMainTitle(D),h.manage(D),!U._has("cartesian"))return i.previousPromises(D);function K(Ge,ht,pt){var wt=Ge._lw/2;return Ge._id.charAt(0)==="x"?ht?pt==="top"?ht._offset-te-wt:ht._offset+ht._length+te+wt:X.t+X.h*(1-(Ge.position||0))+wt%1:ht?pt==="right"?ht._offset+ht._length+te+wt:ht._offset-te-wt:X.l+X.w*(Ge.position||0)+wt%1}for(k=0;k.5?"t":"b",ae=q._fullLayout.margin[se],ce=0;return Y.yref==="paper"?ce=ee+Y.pad.t+Y.pad.b:Y.yref==="container"&&(ce=function(de,ve,ye,_e,Se){var Te=0;return ye==="middle"&&(Te+=Se/2),de==="t"?(ye==="top"&&(Te+=Se),Te+=_e-ve*_e):(ye==="bottom"&&(Te+=Se),Te+=ve*_e),Te}(se,me,he,q._fullLayout.height,ee)+Y.pad.t+Y.pad.b),ce>ae?ce:0}(D,I,te);if(W>0){(function(q,Y,ee,me){var he="title.automargin",se=q._fullLayout.title,ae=se.y>.5?"t":"b",ce={x:se.x,y:se.y,t:0,b:0},de={};se.yref==="paper"&&function(ve,ye,_e,Se,Te){var Pe=ye.yref==="paper"?ve._fullLayout._size.h:ve._fullLayout.height,Ie=O.isTopAnchor(ye)?Se:Se-Te,ze=_e==="b"?Pe-Ie:Ie;return!(O.isTopAnchor(ye)&&_e==="t"||O.isBottomAnchor(ye)&&_e==="b")&&zeX?L.push({code:"unused",traceType:z,templateCount:U,dataCount:X}):X>U&&L.push({code:"reused",traceType:z,templateCount:U,dataCount:X})}}else L.push({code:"data"});if(function te(W,K){for(var oe in W)if(oe.charAt(0)!=="_"){var q=W[oe],Y=_(W,oe,K);b(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&L.push({code:"missing",path:Y,templateitemname:q.templateitemname}),te(q,Y)):Array.isArray(q)&&S(q)&&te(q,Y)}}({data:k,layout:D},""),L.length)return L.map(A)}},67024:function(d,l,n){var c=n(38248),b=n(36424),i=n(7316),O=n(3400),w=n(81792),y=n(37164),p=n(63268),a=n(25788).version,u={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};d.exports=function(h,m){var v,_,S,A;function x(X){return!(X in m)||O.validate(m[X],u[X])}if(m=m||{},O.isPlainObject(h)?(v=h.data||[],_=h.layout||{},S=h.config||{},A={}):(h=O.getGraphDiv(h),v=O.extendDeep([],h.data),_=O.extendDeep({},h.layout),S=h._context,A=h._fullLayout||{}),!x("width")&&m.width!==null||!x("height")&&m.height!==null)throw new Error("Height and width should be pixel values.");if(!x("format"))throw new Error("Export format is not "+O.join2(u.format.values,", "," or ")+".");var R={};function M(X,te){return O.coerce(m,R,u,X,te)}var T=M("format"),E=M("width"),C=M("height"),L=M("scale"),D=M("setBackground"),k=M("imageDataOnly"),I=document.createElement("div");I.style.position="absolute",I.style.left="-5000px",document.body.appendChild(I);var z=O.extendFlat({},_);E?z.width=E:m.width===null&&c(A.width)&&(z.width=A.width),C?z.height=C:m.height===null&&c(A.height)&&(z.height=A.height);var $=O.extendFlat({},S,{_exportedPlot:!0,staticPlot:!0,setBackground:D}),Q=w.getRedrawFunc(I);function j(){return new Promise(function(X){setTimeout(X,w.getDelay(I._fullLayout))})}function U(){return new Promise(function(X,te){var W=y(I,T,L),K=I._fullLayout.width,oe=I._fullLayout.height;function q(){b.purge(I),document.body.removeChild(I)}if(T==="full-json"){var Y=i.graphJson(I,!1,"keepdata","object",!0,!0);return Y.version=a,Y=JSON.stringify(Y),q(),X(k?Y:w.encodeJSON(Y))}if(q(),T==="svg")return X(k?W:w.encodeSVG(W));var ee=document.createElement("canvas");ee.id=O.randstr(),p({format:T,width:K,height:oe,scale:L,canvas:ee,svg:W,promise:!0}).then(X).catch(te)})}return new Promise(function(X,te){b.newPlot(I,v,z,$).then(Q).then(j).then(U).then(function(W){X(function(K){return k?K.replace(w.IMAGE_URL_PREFIX,""):K}(W))}).catch(function(W){te(W)})})}},21480:function(d,l,n){var c=n(3400),b=n(7316),i=n(73060),O=n(20556).dfltConfig,w=c.isPlainObject,y=Array.isArray,p=c.isArrayOrTypedArray;function a(x,R,M,T,E,C){C=C||[];for(var L=Object.keys(x),D=0;D$.length&&T.push(m("unused",E,I.concat($.length)));var W,K,oe,q,Y,ee=$.length,me=Array.isArray(te);if(me&&(ee=Math.min(ee,te.length)),Q.dimensions===2)for(K=0;K$[K].length&&T.push(m("unused",E,I.concat(K,$[K].length)));var he=$[K].length;for(W=0;W<(me?Math.min(he,te[K].length):he);W++)oe=me?te[K][W]:te,q=z[K][W],Y=$[K][W],c.validate(q,oe)?Y!==q&&Y!==+q&&T.push(m("dynamic",E,I.concat(K,W),q,Y)):T.push(m("value",E,I.concat(K,W),q))}else T.push(m("array",E,I.concat(K),z[K]));else for(K=0;K1&&C.push(m("object","layout"))),b.supplyDefaults(L);for(var D=L._fullData,k=M.length,I=0;I0&&Math.round(_)===_))return{vals:u};m=_}for(var S=p.calendar,A=h==="start",x=h==="end",R=y[a+"period0"],M=i(R,S)||0,T=[],E=[],C=[],L=u.length,D=0;D$;)z=O(z,-m,S);for(;z<=$;)z=O(z,m,S);I=O(z,-m,S)}else{for(z=M+(k=Math.round(($-M)/v))*v;z>$;)z-=v;for(;z<=$;)z+=v;I=z-v}T[D]=A?I:x?z:(I+z)/2,E[D]=I,C[D]=z}return{vals:T,starts:E,ends:C}}},26720:function(d){d.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(d,l,n){var c=n(33428),b=n(38248),i=n(3400),O=n(39032).FP_SAFE,w=n(24040),y=n(43616),p=n(79811),a=p.getFromId,u=p.isLinked;function h(D,k){var I,z,$=[],Q=D._fullLayout,j=v(Q,k,0),U=v(Q,k,1),X=S(D,k),te=X.min,W=X.max;if(te.length===0||W.length===0)return i.simpleMap(k.range,k.r2l);var K=te[0].val,oe=W[0].val;for(I=1;I0&&((ce=Se-j(me)-U(he))>Te?de/ce>Pe&&(se=me,ae=he,Pe=de/ce):de/Se>Pe&&(se={val:me.val,nopad:1},ae={val:he.val,nopad:1},Pe=de/Se));if(K===oe){var Ie=K-1,ze=K+1;if(ye)if(K===0)$=[0,1];else{var De=(K>0?W:te).reduce(function(Ve,$e){return Math.max(Ve,U($e))},0),He=K/(1-Math.min(.5,De/Se));$=K>0?[0,He]:[He,0]}else $=_e?[Math.max(0,Ie),Math.max(1,ze)]:[Ie,ze]}else ye?(se.val>=0&&(se={val:0,nopad:1}),ae.val<=0&&(ae={val:0,nopad:1})):_e&&(se.val-Pe*j(se)<0&&(se={val:0,nopad:1}),ae.val<=0&&(ae={val:1,nopad:1})),Pe=(ae.val-se.val-m(k,me.val,he.val))/(Se-j(se)-U(ae)),$=[se.val-Pe*j(se),ae.val+Pe*U(ae)];return $=L($,k),k.limitRange&&k.limitRange(),Y&&$.reverse(),i.simpleMap($,k.l2r||Number)}function m(D,k,I){var z=0;if(D.rangebreaks)for(var $=D.locateBreaks(k,I),Q=0;Q<$.length;Q++){var j=$[Q];z+=j.max-j.min}return z}function v(D,k,I){var z=.05*k._length,$=k._anchorAxis||{};if((k.ticklabelposition||"").indexOf("inside")!==-1||($.ticklabelposition||"").indexOf("inside")!==-1){var Q=k.isReversed();if(!Q){var j=i.simpleMap(k.range,k.r2l);Q=j[1]0?I.ppadplus:I.ppadminus)||I.ppad||0),ve=ce((D._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),ye=ce(I.vpadplus||I.vpad),_e=ce(I.vpadminus||I.vpad);if(!se){if(W=1/0,K=-1/0,he)for(z=0;z0&&(W=$),$>K&&$-O&&(W=$),$>K&&$=Pe;z--)Te(z);return{min:oe,max:q,opts:I}},concatExtremes:S};var _=3;function S(D,k,I){var z,$,Q,j=k._id,U=D._fullData,X=D._fullLayout,te=[],W=[];function K(me,he){for(z=0;z=I&&(te.extrapad||!j)){U=!1;break}$(k,te.val)&&te.pad<=I&&(j||!te.extrapad)&&(D.splice(X,1),X--)}if(U){var W=Q&&k===0;D.push({val:k,pad:W?0:I,extrapad:!W&&j})}}function M(D){return b(D)&&Math.abs(D)=k}function C(D,k,I){return k===void 0||I===void 0||(k=D.d2l(k))=X&&(Q=X,I=X),j<=X&&(j=X,z=X)}}return I=function(te,W){var K=W.autorangeoptions;return K&&K.minallowed!==void 0&&C(W,K.minallowed,K.maxallowed)?K.minallowed:K&&K.clipmin!==void 0&&C(W,K.clipmin,K.clipmax)?Math.max(te,W.d2l(K.clipmin)):te}(I,k),z=function(te,W){var K=W.autorangeoptions;return K&&K.maxallowed!==void 0&&C(W,K.minallowed,K.maxallowed)?K.maxallowed:K&&K.clipmax!==void 0&&C(W,K.clipmin,K.clipmax)?Math.min(te,W.d2l(K.clipmax)):te}(z,k),[I,z]}},76808:function(d){d.exports=function(l,n,c){var b,i;if(c){var O=n==="reversed"||n==="min reversed"||n==="max reversed";b=c[O?1:0],i=c[O?0:1]}var w=l("autorangeoptions.minallowed",i===null?b:void 0),y=l("autorangeoptions.maxallowed",b===null?i:void 0);w===void 0&&l("autorangeoptions.clipmin"),y===void 0&&l("autorangeoptions.clipmax"),l("autorangeoptions.include")}},54460:function(d,l,n){var c=n(33428),b=n(38248),i=n(7316),O=n(24040),w=n(3400),y=w.strTranslate,p=n(72736),a=n(81668),u=n(76308),h=n(43616),m=n(94724),v=n(98728),_=n(39032),S=_.ONEMAXYEAR,A=_.ONEAVGYEAR,x=_.ONEMINYEAR,R=_.ONEMAXQUARTER,M=_.ONEAVGQUARTER,T=_.ONEMINQUARTER,E=_.ONEMAXMONTH,C=_.ONEAVGMONTH,L=_.ONEMINMONTH,D=_.ONEWEEK,k=_.ONEDAY,I=k/2,z=_.ONEHOUR,$=_.ONEMIN,Q=_.ONESEC,j=_.MINUS_SIGN,U=_.BADNUM,X={K:"zeroline"},te={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},K={K:"tick",L:"path"},oe={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Y=n(84284),ee=Y.MID_SHIFT,me=Y.CAP_SHIFT,he=Y.LINE_SPACING,se=Y.OPPOSITE_SIDE,ae=d.exports={};ae.setConvert=n(78344);var ce=n(52976),de=n(79811),ve=de.idSort,ye=de.isLinked;ae.id2name=de.id2name,ae.name2id=de.name2id,ae.cleanId=de.cleanId,ae.list=de.list,ae.listIds=de.listIds,ae.getFromId=de.getFromId,ae.getFromTrace=de.getFromTrace;var _e=n(19280);ae.getAutoRange=_e.getAutoRange,ae.findExtremes=_e.findExtremes;var Se=1e-4;function Te(it){var at=(it[1]-it[0])*Se;return[it[0]-at,it[1]+at]}ae.coerceRef=function(it,at,Lt,xt,Ht,Xt){var Yt=xt.charAt(xt.length-1),Qt=Lt._fullLayout._subplots[Yt+"axis"],Pt=xt+"ref",tn={};return Ht||(Ht=Qt[0]||(typeof Xt=="string"?Xt:Xt[0])),Xt||(Xt=Ht),Qt=Qt.concat(Qt.map(function(Kt){return Kt+" domain"})),tn[Pt]={valType:"enumerated",values:Qt.concat(Xt?typeof Xt=="string"?[Xt]:Xt:[]),dflt:Ht},w.coerce(it,at,tn,Pt)},ae.getRefType=function(it){return it===void 0?it:it==="paper"?"paper":it==="pixel"?"pixel":/( domain)$/.test(it)?"domain":"range"},ae.coercePosition=function(it,at,Lt,xt,Ht,Xt){var Yt,Qt;if(ae.getRefType(xt)!=="range")Yt=w.ensureNumber,Qt=Lt(Ht,Xt);else{var Pt=ae.getFromId(at,xt);Qt=Lt(Ht,Xt=Pt.fraction2r(Xt)),Yt=Pt.cleanPos}it[Ht]=Yt(Qt)},ae.cleanPosition=function(it,at,Lt){return(Lt==="paper"||Lt==="pixel"?w.ensureNumber:ae.getFromId(at,Lt).cleanPos)(it)},ae.redrawComponents=function(it,at){at=at||ae.listIds(it);var Lt=it._fullLayout;function xt(Ht,Xt,Yt,Qt){for(var Pt=O.getComponentMethod(Ht,Xt),tn={},Kt=0;Ktxt&&fn2e-6||((Lt-it._forceTick0)/it._minDtick%1+1.000001)%1>2e-6)&&(it._minDtick=0)):it._minDtick=0},ae.saveRangeInitial=function(it,at){for(var Lt=ae.list(it,"",!0),xt=!1,Ht=0;Ht.3*Ir||Kn(xr)||Kn(Sr))){var zr=Un.dtick/2;En+=En+zr.8){var Fn=Number(Un.substr(1));ar.exactYears>.8&&Fn%12==0?En=ae.tickIncrement(En,"M6","reverse")+1.5*k:ar.exactMonths>.8?En=ae.tickIncrement(En,"M1","reverse")+15.5*k:En-=I;var ir=ae.tickIncrement(En,Un);if(ir<=xr)return ir}return En}(er,it,Nn,Qt,Ht)),vn=er;vn<=Pt;)vn=ae.tickIncrement(vn,Nn,!1,Ht);return{start:at.c2r(er,0,Ht),end:at.c2r(vn,0,Ht),size:Nn,_dataSpan:Pt-Qt}},ae.prepMinorTicks=function(it,at,Lt){if(!at.minor.dtick){delete it.dtick;var xt,Ht=at.dtick&&b(at._tmin);if(Ht){var Xt=ae.tickIncrement(at._tmin,at.dtick,!0);xt=[at._tmin,.99*Xt+.01*at._tmin]}else{var Yt=w.simpleMap(at.range,at.r2l);xt=[Yt[0],.8*Yt[0]+.2*Yt[1]]}if(it.range=w.simpleMap(xt,at.l2r),it._isMinor=!0,ae.prepTicks(it,Lt),Ht){var Qt=b(at.dtick),Pt=b(it.dtick),tn=Qt?at.dtick:+at.dtick.substring(1),Kt=Pt?it.dtick:+it.dtick.substring(1);Qt&&Pt?De(tn,Kt)?tn===2*D&&Kt===2*k&&(it.dtick=D):tn===2*D&&Kt===3*k?it.dtick=D:tn!==D||(at._input.minor||{}).nticks?He(tn/Kt,2.5)?it.dtick=tn/2:it.dtick=tn:it.dtick=k:String(at.dtick).charAt(0)==="M"?Pt?it.dtick="M1":De(tn,Kt)?tn>=12&&Kt===2&&(it.dtick="M3"):it.dtick=at.dtick:String(it.dtick).charAt(0)==="L"?String(at.dtick).charAt(0)==="L"?De(tn,Kt)||(it.dtick=He(tn/Kt,2.5)?at.dtick/2:at.dtick):it.dtick="D1":it.dtick==="D2"&&+at.dtick>1&&(it.dtick=1)}it.range=at.range}at.minor._tick0Init===void 0&&(it.tick0=at.tick0)},ae.prepTicks=function(it,at){var Lt=w.simpleMap(it.range,it.r2l,void 0,void 0,at);if(it.tickmode==="auto"||!it.dtick){var xt,Ht=it.nticks;Ht||(it.type==="category"||it.type==="multicategory"?(xt=it.tickfont?w.bigFont(it.tickfont.size||12):15,Ht=it._length/xt):(xt=it._id.charAt(0)==="y"?40:80,Ht=w.constrain(it._length/xt,4,9)+1),it._name==="radialaxis"&&(Ht*=2)),it.minor&&it.minor.tickmode!=="array"||it.tickmode==="array"&&(Ht*=100),it._roughDTick=Math.abs(Lt[1]-Lt[0])/Ht,ae.autoTicks(it,it._roughDTick),it._minDtick>0&&it.dtick<2*it._minDtick&&(it.dtick=it._minDtick,it.tick0=it.l2r(it._forceTick0))}it.ticklabelmode==="period"&&function(Xt){var Yt;function Qt(){return!(b(Xt.dtick)||Xt.dtick.charAt(0)!=="M")}var Pt=Qt(),tn=ae.getTickFormat(Xt);if(tn){var Kt=Xt._dtickInit!==Xt.dtick;/%[fLQsSMX]/.test(tn)||(/%[HI]/.test(tn)?(Yt=z,Kt&&!Pt&&Xt.dtick=(In?0:1);Un--){var xr=!Un;Un?(it._dtickInit=it.dtick,it._tick0Init=it.tick0):(it.minor._dtickInit=it.minor.dtick,it.minor._tick0Init=it.minor.tick0);var Sr=Un?it:w.extendFlat({},it,it.minor);if(xr?ae.prepMinorTicks(Sr,it,at):ae.prepTicks(Sr,at),Sr.tickmode!=="array")if(Sr.tickmode!=="sync"){var ar=Te(Pt),Fn=ar[0],ir=ar[1],Wn=b(Sr.dtick),Kn=Ht==="log"&&!(Wn||Sr.dtick.charAt(0)==="L"),_r=ae.tickFirst(Sr,at);if(Un){if(it._tmin=_r,_r=ir:Rr<=ir;Rr=ae.tickIncrement(Rr,$r,tn,Xt)){if(Un&&Ir++,Sr.rangebreaks&&!tn){if(Rr=fn)break}if(er.length>dn||Rr===Fr)break;Fr=Rr;var Kr={value:Rr};Un?(Kn&&Rr!==(0|Rr)&&(Kr.simpleLabel=!0),Yt>1&&Ir%Yt&&(Kr.skipLabel=!0),er.push(Kr)):(Kr.minor=!0,En.push(Kr))}}else er=[],vn=Oe(it);else Un?(er=[],vn=ke(it,!xr)):(En=[],Nn=ke(it,!xr))}if(In&&!(it.minor.ticks==="inside"&&it.ticks==="outside"||it.minor.ticks==="outside"&&it.ticks==="inside")){for(var Co=er.map(function(hn){return hn.value}),so=[],So=0;So0?(vr=yr-1,nr=yr):(vr=yr,nr=yr);var Qn,Hn=hn[vr].value,tr=hn[nr].value,cr=Math.abs(tr-Hn),Lr=Zn||cr,Er=0;Lr>=x?Er=cr>=x&&cr<=S?cr:A:Zn===M&&Lr>=T?Er=cr>=T&&cr<=R?cr:M:Lr>=L?Er=cr>=L&&cr<=E?cr:C:Zn===D&&Lr>=D?Er=D:Lr>=k?Er=k:Zn===I&&Lr>=I?Er=I:Zn===z&&Lr>=z&&(Er=z),Er>=cr&&(Er=cr,Qn=!0);var Vr=gr+Er;if(zn.rangebreaks&&Er>0){for(var to=0,_o=0;_o<84;_o++){var fr=(_o+.5)/84;zn.maskBreaks(gr*(1-fr)+fr*Vr)!==U&&to++}(Er*=to/84)||(hn[yr].drop=!0),Qn&&cr>D&&(Er=cr)}(Er>0||yr===0)&&(hn[yr].periodX=gr+Er/2)}}(er,it,it._definedDelta),it.rangebreaks){var br=it._id.charAt(0)==="y",dr=1;it.tickmode==="auto"&&(dr=it.tickfont?it.tickfont.size:12);var Cr=NaN;for(Lt=er.length-1;Lt>-1;Lt--)if(er[Lt].drop)er.splice(Lt,1);else{er[Lt].value=lt(er[Lt].value,it);var io=it.c2p(er[Lt].value);(br?Cr>io-dr:Crfn||Wrfn&&(Qr.periodX=fn),Wr10||xt.substr(5)!=="01-01"?it._tickround="d":it._tickround=+at.substr(1)%12==0?"y":"m";else if(at>=k&&Ht<=10||at>=15*k)it._tickround="d";else if(at>=$&&Ht<=16||at>=z)it._tickround="M";else if(at>=Q&&Ht<=19||at>=$)it._tickround="S";else{var Xt=it.l2r(Lt+at).replace(/^-/,"").length;it._tickround=Math.max(Ht,Xt)-20,it._tickround<0&&(it._tickround=4)}}else if(b(at)||at.charAt(0)==="L"){var Yt=it.range.map(it.r2d||Number);b(at)||(at=Number(at.substr(1))),it._tickround=2-Math.floor(Math.log(at)/Math.LN10+.01);var Qt=Math.max(Math.abs(Yt[0]),Math.abs(Yt[1])),Pt=Math.floor(Math.log(Qt)/Math.LN10+.01),tn=it.minexponent===void 0?3:it.minexponent;Math.abs(Pt)>tn&&(Ge(it.exponentformat)&&!ht(Pt)?it._tickexponent=3*Math.round((Pt-1)/3):it._tickexponent=Pt)}else it._tickround=null}function nt(it,at,Lt){var xt=it.tickfont||{};return{x:at,dx:0,dy:0,text:Lt||"",fontSize:xt.size,font:xt.family,fontColor:xt.color}}ae.autoTicks=function(it,at,Lt){var xt;function Ht(fn){return Math.pow(fn,Math.floor(Math.log(at)/Math.LN10))}if(it.type==="date"){it.tick0=w.dateTick0(it.calendar,0);var Xt=2*at;if(Xt>A)at/=A,xt=Ht(10),it.dtick="M"+12*Ne(at,xt,Le);else if(Xt>C)at/=C,it.dtick="M"+Ne(at,1,We);else if(Xt>k){if(it.dtick=Ne(at,k,it._hasDayOfWeekBreaks?[1,2,7,14]:Ze),!Lt){var Yt=ae.getTickFormat(it),Qt=it.ticklabelmode==="period";Qt&&(it._rawTick0=it.tick0),/%[uVW]/.test(Yt)?it.tick0=w.dateTick0(it.calendar,2):it.tick0=w.dateTick0(it.calendar,1),Qt&&(it._dowTick0=it.tick0)}}else Xt>z?it.dtick=Ne(at,z,We):Xt>$?it.dtick=Ne(at,$,Ue):Xt>Q?it.dtick=Ne(at,Q,Ue):(xt=Ht(10),it.dtick=Ne(at,xt,Le))}else if(it.type==="log"){it.tick0=0;var Pt=w.simpleMap(it.range,it.r2l);if(it._isMinor&&(at*=1.5),at>.7)it.dtick=Math.ceil(at);else if(Math.abs(Pt[1]-Pt[0])<1){var tn=1.5*Math.abs((Pt[1]-Pt[0])/at);at=Math.abs(Math.pow(10,Pt[1])-Math.pow(10,Pt[0]))/tn,xt=Ht(10),it.dtick="L"+Ne(at,xt,Le)}else it.dtick=at>.3?"D2":"D1"}else it.type==="category"||it.type==="multicategory"?(it.tick0=0,it.dtick=Math.ceil(Math.max(at,1))):bt(it)?(it.tick0=0,xt=1,it.dtick=Ne(at,xt,Ee)):(it.tick0=0,xt=Ht(10),it.dtick=Ne(at,xt,Le));if(it.dtick===0&&(it.dtick=1),!b(it.dtick)&&typeof it.dtick!="string"){var Kt=it.dtick;throw it.dtick=1,"ax.dtick error: "+String(Kt)}},ae.tickIncrement=function(it,at,Lt,xt){var Ht=Lt?-1:1;if(b(at))return w.increment(it,Ht*at);var Xt=at.charAt(0),Yt=Ht*Number(at.substr(1));if(Xt==="M")return w.incrementMonth(it,Yt,xt);if(Xt==="L")return Math.log(Math.pow(10,it)+Yt)/Math.LN10;if(Xt==="D"){var Qt=at==="D2"?tt:Xe,Pt=it+.01*Ht,tn=w.roundUp(w.mod(Pt,1),Qt,Lt);return Math.floor(Pt)+Math.log(c.round(Math.pow(10,tn),1))/Math.LN10}throw"unrecognized dtick "+String(at)},ae.tickFirst=function(it,at){var Lt=it.r2l||Number,xt=w.simpleMap(it.range,Lt,void 0,void 0,at),Ht=xt[1] ")}else En._prevDateHead=Fn,ir+="
"+Fn;In.text=ir}(it,Xt,Lt,Qt):Pt==="log"?function(En,In,Un,xr,Sr){var ar=En.dtick,Fn=In.x,ir=En.tickformat,Wn=typeof ar=="string"&&ar.charAt(0);if(Sr==="never"&&(Sr=""),xr&&Wn!=="L"&&(ar="L3",Wn="L"),ir||Wn==="L")In.text=pt(Math.pow(10,Fn),En,Sr,xr);else if(b(ar)||Wn==="D"&&w.mod(Fn+.01,1)<.1){var Kn=Math.round(Fn),_r=Math.abs(Kn),Ir=En.exponentformat;Ir==="power"||Ge(Ir)&&ht(Kn)?(In.text=Kn===0?1:Kn===1?"10":"10"+(Kn>1?"":j)+_r+"",In.fontSize*=1.25):(Ir==="e"||Ir==="E")&&_r>2?In.text="1"+Ir+(Kn>0?"+":j)+_r:(In.text=pt(Math.pow(10,Fn),En,"","fakehover"),ar==="D1"&&En._id.charAt(0)==="y"&&(In.dy-=In.fontSize/6))}else{if(Wn!=="D")throw"unrecognized dtick "+String(ar);In.text=String(Math.round(Math.pow(10,w.mod(Fn,1)))),In.fontSize*=.75}if(En.dtick==="D1"){var zr=String(In.text).charAt(0);zr!=="0"&&zr!=="1"||(En._id.charAt(0)==="y"?In.dx-=In.fontSize/4:(In.dy+=In.fontSize/2,In.dx+=(En.range[1]>En.range[0]?1:-1)*In.fontSize*(Fn<0?.5:.25)))}}(it,Xt,0,Qt,vn):Pt==="category"?function(En,In){var Un=En._categories[Math.round(In.x)];Un===void 0&&(Un=""),In.text=String(Un)}(it,Xt):Pt==="multicategory"?function(En,In,Un){var xr=Math.round(In.x),Sr=En._categories[xr]||[],ar=Sr[1]===void 0?"":String(Sr[1]),Fn=Sr[0]===void 0?"":String(Sr[0]);Un?In.text=Fn+" - "+ar:(In.text=ar,In.text2=Fn)}(it,Xt,Lt):bt(it)?function(En,In,Un,xr,Sr){if(En.thetaunit!=="radians"||Un)In.text=pt(In.x,En,Sr,xr);else{var ar=In.x/180;if(ar===0)In.text="0";else{var Fn=function(Wn){function Kn(Fr,Rr){return Math.abs(Fr-Rr)<=1e-6}var _r=function(Fr){for(var Rr=1;!Kn(Math.round(Fr*Rr)/Rr,Fr);)Rr*=10;return Rr}(Wn),Ir=Wn*_r,zr=Math.abs(function Fr(Rr,$r){return Kn($r,0)?Rr:Fr($r,Rr%$r)}(Ir,_r));return[Math.round(Ir/zr),Math.round(_r/zr)]}(ar);if(Fn[1]>=100)In.text=pt(w.deg2rad(In.x),En,Sr,xr);else{var ir=In.x<0;Fn[1]===1?Fn[0]===1?In.text="π":In.text=Fn[0]+"π":In.text=["",Fn[0],"","⁄","",Fn[1],"","π"].join(""),ir&&(In.text=j+In.text)}}}}(it,Xt,Lt,Qt,vn):function(En,In,Un,xr,Sr){Sr==="never"?Sr="":En.showexponent==="all"&&Math.abs(In.x/En.dtick)<1e-6&&(Sr="hide"),In.text=pt(In.x,En,Sr,xr)}(it,Xt,0,Qt,vn),xt||(it.tickprefix&&!dn(it.showtickprefix)&&(Xt.text=it.tickprefix+Xt.text),it.ticksuffix&&!dn(it.showticksuffix)&&(Xt.text+=it.ticksuffix)),it.labelalias&&it.labelalias.hasOwnProperty(Xt.text)){var Nn=it.labelalias[Xt.text];typeof Nn=="string"&&(Xt.text=Nn)}if(it.tickson==="boundaries"||it.showdividers){var er=function(En){var In=it.l2p(En);return In>=0&&In<=it._length?En:null};Xt.xbnd=[er(Xt.x-.5),er(Xt.x+it.dtick-.5)]}return Xt},ae.hoverLabelText=function(it,at,Lt){Lt&&(it=w.extendFlat({},it,{hoverformat:Lt}));var xt=w.isArrayOrTypedArray(at)?at[0]:at,Ht=w.isArrayOrTypedArray(at)?at[1]:void 0;if(Ht!==void 0&&Ht!==xt)return ae.hoverLabelText(it,xt,Lt)+" - "+ae.hoverLabelText(it,Ht,Lt);var Xt=it.type==="log"&&xt<=0,Yt=ae.tickText(it,it.c2l(Xt?-xt:xt),"hover").text;return Xt?xt===0?"0":j+Yt:Yt};var ot=["f","p","n","μ","m","","k","M","G","T"];function Ge(it){return it==="SI"||it==="B"}function ht(it){return it>14||it<-15}function pt(it,at,Lt,xt){var Ht=it<0,Xt=at._tickround,Yt=Lt||at.exponentformat||"B",Qt=at._tickexponent,Pt=ae.getTickFormat(at),tn=at.separatethousands;if(xt){var Kt={exponentformat:Yt,minexponent:at.minexponent,dtick:at.showexponent==="none"?at.dtick:b(it)&&Math.abs(it)||1,range:at.showexponent==="none"?at.range.map(at.r2d):[0,it||1]};je(Kt),Xt=(Number(Kt._tickround)||0)+4,Qt=Kt._tickexponent,at.hoverformat&&(Pt=at.hoverformat)}if(Pt)return at._numFormat(Pt)(it).replace(/-/g,j);var fn,dn=Math.pow(10,-Xt)/2;if(Yt==="none"&&(Qt=0),(it=Math.abs(it))"+fn+"":Yt==="B"&&Qt===9?it+="B":Ge(Yt)&&(it+=ot[Qt/3+5])),Ht?j+it:it}function wt(it,at){if(it){var Lt=Object.keys(q).reduce(function(xt,Ht){return at.indexOf(Ht)!==-1&&q[Ht].forEach(function(Xt){xt[Xt]=1}),xt},{});Object.keys(it).forEach(function(xt){Lt[xt]||(xt.length===1?it[xt]=0:delete it[xt])})}}function Dt(it,at){for(var Lt=[],xt={},Ht=0;Ht1&&Lt=Ht.min&&it=0,In=Kt(dn,vn[1])<=0;return(Nn||En)&&(er||In)}if(it.tickformatstops&&it.tickformatstops.length>0)switch(it.type){case"date":case"linear":for(at=0;at=Yt(Ht)))){Lt=xt;break}break;case"log":for(at=0;at=0&&Ht.unshift(Ht.splice(tn,1).shift())}});var Yt={false:{left:0,right:0}};return w.syncOrAsync(Ht.map(function(Qt){return function(){if(Qt){var Pt=ae.getFromId(it,Qt);Lt||(Lt={}),Lt.axShifts=Yt,Lt.overlayingShiftedAx=Xt;var tn=ae.drawOne(it,Pt,Lt);return Pt._shiftPusher&&Rt(Pt,Pt._fullDepth||0,Yt,!0),Pt._r=Pt.range.slice(),Pt._rl=w.simpleMap(Pt._r,Pt.r2l),tn}}}))},ae.drawOne=function(it,at,Lt){var xt,Ht,Xt,Yt=(Lt=Lt||{}).axShifts||{},Qt=Lt.overlayingShiftedAx||[];at.setScale();var Pt=it._fullLayout,tn=at._id,Kt=tn.charAt(0),fn=ae.counterLetter(tn),dn=Pt._plots[at._mainSubplot];if(dn){if(at._shiftPusher=at.autoshift||Qt.indexOf(at._id)!==-1||Qt.indexOf(at.overlaying)!==-1,at._shiftPusher&at.anchor==="free"){var vn=at.linewidth/2||0;at.ticks==="inside"&&(vn+=at.ticklen),Rt(at,vn,Yt,!0),Rt(at,at.shift||0,Yt,!1)}Lt.skipTitle===!0&&at._shift!==void 0||(at._shift=function(nr,Qn){return nr.autoshift?Qn[nr.overlaying][nr.side]:nr.shift||0}(at,Yt));var Nn=dn[Kt+"axislayer"],er=at._mainLinePosition,En=er+=at._shift,In=at._mainMirrorPosition,Un=at._vals=ae.calcTicks(at),xr=[at.mirror,En,In].join("_");for(xt=0;xt0?nr.bottom-Er:0,Vr))));var to=0,_o=0;if(at._shiftPusher&&(to=Math.max(Vr,nr.height>0?cr==="l"?Er-nr.left:nr.right-Er:0),at.title.text!==Pt._dfltTitle[Kt]&&(_o=(at._titleStandoff||0)+(at._titleScoot||0),cr==="l"&&(_o+=en(at))),at._fullDepth=Math.max(to,_o)),at.automargin){Qn={x:0,y:0,r:0,l:0,t:0,b:0};var fr=[0,1],Eo=typeof at._shift=="number"?at._shift:0;if(Kt==="x"){if(cr==="b"?Qn[cr]=at._depth:(Qn[cr]=at._depth=Math.max(nr.width>0?Er-nr.top:0,Vr),fr.reverse()),nr.width>0){var ao=nr.right-(at._offset+at._length);ao>0&&(Qn.xr=1,Qn.r=ao);var co=at._offset-nr.left;co>0&&(Qn.xl=0,Qn.l=co)}}else if(cr==="l"?(at._depth=Math.max(nr.height>0?Er-nr.left:0,Vr),Qn[cr]=at._depth-Eo):(at._depth=Math.max(nr.height>0?nr.right-Er:0,Vr),Qn[cr]=at._depth+Eo,fr.reverse()),nr.height>0){var Go=nr.bottom-(at._offset+at._length);Go>0&&(Qn.yb=0,Qn.b=Go);var po=at._offset-nr.top;po>0&&(Qn.yt=1,Qn.t=po)}Qn[fn]=at.anchor==="free"?at.position:at._anchorAxis.domain[fr[0]],at.title.text!==Pt._dfltTitle[Kt]&&(Qn[cr]+=en(at)+(at.title.standoff||0)),at.mirror&&at.anchor!=="free"&&((Hn={x:0,y:0,r:0,l:0,t:0,b:0})[Lr]=at.linewidth,at.mirror&&at.mirror!==!0&&(Hn[Lr]+=Vr),at.mirror===!0||at.mirror==="ticks"?Hn[fn]=at._anchorAxis.domain[fr[1]]:at.mirror!=="all"&&at.mirror!=="allticks"||(Hn[fn]=[at._counterDomainMin,at._counterDomainMax][fr[1]]))}gr&&(tr=O.getComponentMethod("rangeslider","autoMarginOpts")(it,at)),typeof at.automargin=="string"&&(wt(Qn,at.automargin),wt(Hn,at.automargin)),i.autoMargin(it,_t(at),Qn),i.autoMargin(it,nn(at),Hn),i.autoMargin(it,gn(at),tr)}),w.syncOrAsync(Zn)}}function vr(nr){var Qn=tn+(nr||"tick");return Sr[Qn]||(Sr[Qn]=function(Hn,tr){var cr,Lr,Er,Vr;return Hn._selections[tr].size()?(cr=1/0,Lr=-1/0,Er=1/0,Vr=-1/0,Hn._selections[tr].each(function(){var to=Ct(this),_o=h.bBox(to.node().parentNode);cr=Math.min(cr,_o.top),Lr=Math.max(Lr,_o.bottom),Er=Math.min(Er,_o.left),Vr=Math.max(Vr,_o.right)})):(cr=0,Lr=0,Er=0,Vr=0),{top:cr,bottom:Lr,left:Er,right:Vr,height:Lr-cr,width:Vr-Er}}(at,Qn)),Sr[Qn]}},ae.getTickSigns=function(it,at){var Lt=it._id.charAt(0),xt={x:"top",y:"right"}[Lt],Ht=it.side===xt?1:-1,Xt=[-1,1,Ht,-Ht];return(at?(it.minor||{}).ticks:it.ticks)!=="inside"==(Lt==="x")&&(Xt=Xt.map(function(Yt){return-Yt})),it.side&&Xt.push({l:-1,t:-1,r:1,b:1}[it.side.charAt(0)]),Xt},ae.makeTransTickFn=function(it){return it._id.charAt(0)==="x"?function(at){return y(it._offset+it.l2p(at.x),0)}:function(at){return y(0,it._offset+it.l2p(at.x))}},ae.makeTransTickLabelFn=function(it){var at=function(Ht){var Xt=Ht.ticklabelposition||"",Yt=function(In){return Xt.indexOf(In)!==-1},Qt=Yt("top"),Pt=Yt("left"),tn=Yt("right"),Kt=Yt("bottom"),fn=Yt("inside"),dn=Kt||Pt||Qt||tn;if(!dn&&!fn)return[0,0];var vn=Ht.side,Nn=dn?(Ht.tickwidth||0)/2:0,er=3,En=Ht.tickfont?Ht.tickfont.size:12;return(Kt||Qt)&&(Nn+=En*me,er+=(Ht.linewidth||0)/2),(Pt||tn)&&(Nn+=(Ht.linewidth||0)/2,er+=3),fn&&vn==="top"&&(er-=En*(1-me)),(Pt||Qt)&&(Nn=-Nn),vn!=="bottom"&&vn!=="right"||(er=-er),[dn?Nn:0,fn?er:0]}(it),Lt=at[0],xt=at[1];return it._id.charAt(0)==="x"?function(Ht){return y(Lt+it._offset+it.l2p(It(Ht)),xt)}:function(Ht){return y(xt,Lt+it._offset+it.l2p(It(Ht)))}},ae.makeTickPath=function(it,at,Lt,xt){xt||(xt={});var Ht=xt.minor;if(Ht&&!it.minor)return"";var Xt=xt.len!==void 0?xt.len:Ht?it.minor.ticklen:it.ticklen,Yt=it._id.charAt(0),Qt=(it.linewidth||1)/2;return Yt==="x"?"M0,"+(at+Qt*Lt)+"v"+Xt*Lt:"M"+(at+Qt*Lt)+",0h"+Xt*Lt},ae.makeLabelFns=function(it,at,Lt){var xt=it.ticklabelposition||"",Ht=function(Ir){return xt.indexOf(Ir)!==-1},Xt=Ht("top"),Yt=Ht("left"),Qt=Ht("right"),Pt=Ht("bottom")||Yt||Xt||Qt,tn=Ht("inside"),Kt=xt==="inside"&&it.ticks==="inside"||!tn&&it.ticks==="outside"&&it.tickson!=="boundaries",fn=0,dn=0,vn=Kt?it.ticklen:0;if(tn?vn*=-1:Pt&&(vn=0),Kt&&(fn+=vn,Lt)){var Nn=w.deg2rad(Lt);fn=vn*Math.cos(Nn)+1,dn=vn*Math.sin(Nn)}it.showticklabels&&(Kt||it.showline)&&(fn+=.2*it.tickfont.size);var er,En,In,Un,xr,Sr={labelStandoff:fn+=(it.linewidth||1)/2*(tn?-1:1),labelShift:dn},ar=0,Fn=it.side,ir=it._id.charAt(0),Wn=it.tickangle;if(ir==="x")Un=(xr=!tn&&Fn==="bottom"||tn&&Fn==="top")?1:-1,tn&&(Un*=-1),er=dn*Un,En=at+fn*Un,In=xr?1:-.2,Math.abs(Wn)===90&&(tn?In+=ee:In=Wn===-90&&Fn==="bottom"?me:Wn===90&&Fn==="top"?ee:.5,ar=ee/2*(Wn/90)),Sr.xFn=function(Ir){return Ir.dx+er+ar*Ir.fontSize},Sr.yFn=function(Ir){return Ir.dy+En+Ir.fontSize*In},Sr.anchorFn=function(Ir,zr){if(Pt){if(Yt)return"end";if(Qt)return"start"}return b(zr)&&zr!==0&&zr!==180?zr*Un<0!==tn?"end":"start":"middle"},Sr.heightFn=function(Ir,zr,Fr){return zr<-60||zr>60?-.5*Fr:it.side==="top"!==tn?-Fr:0};else if(ir==="y"){if(Un=(xr=!tn&&Fn==="left"||tn&&Fn==="right")?1:-1,tn&&(Un*=-1),er=fn,En=dn*Un,In=0,tn||Math.abs(Wn)!==90||(In=Wn===-90&&Fn==="left"||Wn===90&&Fn==="right"?me:.5),tn){var Kn=b(Wn)?+Wn:0;if(Kn!==0){var _r=w.deg2rad(Kn);ar=Math.abs(Math.sin(_r))*me*Un,In=0}}Sr.xFn=function(Ir){return Ir.dx+at-(er+Ir.fontSize*In)*Un+ar*Ir.fontSize},Sr.yFn=function(Ir){return Ir.dy+En+Ir.fontSize*ee},Sr.anchorFn=function(Ir,zr){return b(zr)&&Math.abs(zr)===90?"middle":xr?"end":"start"},Sr.heightFn=function(Ir,zr,Fr){return it.side==="right"&&(zr*=-1),zr<-30?-Fr:zr<30?-.5*Fr:0}}return Sr},ae.drawTicks=function(it,at,Lt){Lt=Lt||{};var xt=at._id+"tick",Ht=[].concat(at.minor&&at.minor.ticks?Lt.vals.filter(function(Yt){return Yt.minor&&!Yt.noTick}):[]).concat(at.ticks?Lt.vals.filter(function(Yt){return!Yt.minor&&!Yt.noTick}):[]),Xt=Lt.layer.selectAll("path."+xt).data(Ht,qt);Xt.exit().remove(),Xt.enter().append("path").classed(xt,1).classed("ticks",1).classed("crisp",Lt.crisp!==!1).each(function(Yt){return u.stroke(c.select(this),Yt.minor?at.minor.tickcolor:at.tickcolor)}).style("stroke-width",function(Yt){return h.crispRound(it,Yt.minor?at.minor.tickwidth:at.tickwidth,1)+"px"}).attr("d",Lt.path).style("display",null),zt(at,[K]),Xt.attr("transform",Lt.transFn)},ae.drawGrid=function(it,at,Lt){if(Lt=Lt||{},at.tickmode!=="sync"){var xt=at._id+"grid",Ht=at.minor&&at.minor.showgrid,Xt=Ht?Lt.vals.filter(function(In){return In.minor}):[],Yt=at.showgrid?Lt.vals.filter(function(In){return!In.minor}):[],Qt=Lt.counterAxis;if(Qt&&ae.shouldShowZeroLine(it,at,Qt))for(var Pt=at.tickmode==="array",tn=0;tn=0;Nn--){var er=Nn?dn:vn;if(er){var En=er.selectAll("path."+xt).data(Nn?Yt:Xt,qt);En.exit().remove(),En.enter().append("path").classed(xt,1).classed("crisp",Lt.crisp!==!1),En.attr("transform",Lt.transFn).attr("d",Lt.path).each(function(In){return u.stroke(c.select(this),In.minor?at.minor.gridcolor:at.gridcolor||"#ddd")}).style("stroke-dasharray",function(In){return h.dashStyle(In.minor?at.minor.griddash:at.griddash,In.minor?at.minor.gridwidth:at.gridwidth)}).style("stroke-width",function(In){return(In.minor?fn:at._gw)+"px"}).style("display",null),typeof Lt.path=="function"&&En.attr("d",Lt.path)}}zt(at,[te,W])}},ae.drawZeroLine=function(it,at,Lt){Lt=Lt||Lt;var xt=at._id+"zl",Ht=ae.shouldShowZeroLine(it,at,Lt.counterAxis),Xt=Lt.layer.selectAll("path."+xt).data(Ht?[{x:0,id:at._id}]:[]);Xt.exit().remove(),Xt.enter().append("path").classed(xt,1).classed("zl",1).classed("crisp",Lt.crisp!==!1).each(function(){Lt.layer.selectAll("path").sort(function(Yt,Qt){return ve(Yt.id,Qt.id)})}),Xt.attr("transform",Lt.transFn).attr("d",Lt.path).call(u.stroke,at.zerolinecolor||u.defaultLine).style("stroke-width",h.crispRound(it,at.zerolinewidth,at._gw||1)+"px").style("display",null),zt(at,[X])},ae.drawLabels=function(it,at,Lt){Lt=Lt||{};var xt=it._fullLayout,Ht=at._id,Xt=Lt.cls||Ht+"tick",Yt=Lt.vals.filter(function(Kr){return Kr.text}),Qt=Lt.labelFns,Pt=Lt.secondary?0:at.tickangle,tn=(at._prevTickAngles||{})[Xt],Kt=Lt.layer.selectAll("g."+Xt).data(at.showticklabels?Yt:[],qt),fn=[];function dn(Kr,Co){Kr.each(function(so){var So=c.select(this),go=So.select(".text-math-group"),li=Qt.anchorFn(so,Co),Pn=Lt.transFn.call(So.node(),so)+(b(Co)&&+Co!=0?" rotate("+Co+","+Qt.xFn(so)+","+(Qt.yFn(so)-so.fontSize/2)+")":""),Yn=p.lineCount(So),br=he*so.fontSize,dr=Qt.heightFn(so,b(Co)?+Co:0,(Yn-1)*br);if(dr&&(Pn+=y(0,dr)),go.empty()){var Cr=So.select("text");Cr.attr({transform:Pn,"text-anchor":li}),Cr.style("opacity",1),at._adjustTickLabelsOverflow&&at._adjustTickLabelsOverflow()}else{var io=h.bBox(go.node()).width*{end:-.5,start:.5}[li];go.attr("transform",Pn+y(io,0))}})}Kt.enter().append("g").classed(Xt,1).append("text").attr("text-anchor","middle").each(function(Kr){var Co=c.select(this),so=it._promises.length;Co.call(p.positionText,Qt.xFn(Kr),Qt.yFn(Kr)).call(h.font,Kr.font,Kr.fontSize,Kr.fontColor).text(Kr.text).call(p.convertToTspans,it),it._promises[so]?fn.push(it._promises.pop().then(function(){dn(Co,Pt)})):dn(Co,Pt)}),zt(at,[oe]),Kt.exit().remove(),Lt.repositionOnUpdate&&Kt.each(function(Kr){c.select(this).select("text").call(p.positionText,Qt.xFn(Kr),Qt.yFn(Kr))}),at._adjustTickLabelsOverflow=function(){var Kr=at.ticklabeloverflow;if(Kr&&Kr!=="allow"){var Co=Kr.indexOf("hide")!==-1,so=at._id.charAt(0)==="x",So=0,go=so?it._fullLayout.width:it._fullLayout.height;if(Kr.indexOf("domain")!==-1){var li=w.simpleMap(at.range,at.r2l);So=at.l2p(li[0])+at._offset,go=at.l2p(li[1])+at._offset}var Pn=Math.min(So,go),Yn=Math.max(So,go),br=at.side,dr=1/0,Cr=-1/0;for(var io in Kt.each(function(bo){var Bn=c.select(this);if(Bn.select(".text-math-group").empty()){var hr=h.bBox(Bn.node()),hn=0;so?(hr.right>Yn||hr.leftYn||hr.top+(at.tickangle?0:bo.fontSize/4)at["_visibleLabelMin_"+li._id]?Wr.style("display","none"):Yn.K!=="tick"||Pn||Wr.style("display",null)})})})})},dn(Kt,tn+1?tn:Pt);var vn=null;at._selections&&(at._selections[Xt]=Kt);var Nn=[function(){return fn.length&&Promise.all(fn)}];at.automargin&&xt._redrawFromAutoMarginCount&&tn===90?(vn=tn,Nn.push(function(){dn(Kt,tn)})):Nn.push(function(){if(dn(Kt,Pt),Yt.length&&at.autotickangles&&(at.type!=="log"||String(at.dtick).charAt(0)!=="D")){vn=at.autotickangles[0];var Kr,Co=0,so=[],So=1;if(Kt.each(function(gr){Co=Math.max(Co,gr.fontSize);var vr=at.l2p(gr.x),nr=Ct(this),Qn=h.bBox(nr.node());So=Math.max(So,p.lineCount(nr)),so.push({top:0,bottom:10,height:10,left:vr-Qn.width/2,right:vr+Qn.width/2+2,width:Qn.width+2})}),at.tickson!=="boundaries"&&!at.showdividers||Lt.secondary){var go=Yt.length,li=Math.abs((Yt[go-1].x-Yt[0].x)*at._m)/(go-1),Pn=at.ticklabelposition||"",Yn=function(gr){return Pn.indexOf(gr)!==-1},br=Yn("top"),dr=Yn("left"),Cr=Yn("right"),io=Yn("bottom")||dr||br||Cr?(at.tickwidth||0)+6:0,Qr=li,Wr=1.25*Co*So,bo=Qr/Math.sqrt(Math.pow(Qr,2)+Math.pow(Wr,2)),Bn=at.autotickangles.map(function(gr){return gr*Math.PI/180}),hr=Bn.find(function(gr){return Math.abs(Math.cos(gr))<=bo});hr===void 0&&(hr=Bn.reduce(function(gr,vr){return Math.abs(Math.cos(gr))Fr*zr&&(Kn=zr,Fn[ar]=ir[ar]=_r[ar])}var Rr=Math.abs(Kn-Wn);Rr-Un>0?Un*=1+Un/(Rr-=Un):Un=0,at._id.charAt(0)!=="y"&&(Un=-Un),Fn[Sr]=En.p2d(En.d2p(ir[Sr])+xr*Un),En.autorange==="min"||En.autorange==="max reversed"?(Fn[0]=null,En._rangeInitial0=void 0,En._rangeInitial1=void 0):En.autorange!=="max"&&En.autorange!=="min reversed"||(Fn[1]=null,En._rangeInitial0=void 0,En._rangeInitial1=void 0),xt._insideTickLabelsUpdaterange[En._name+".range"]=Fn}var $r=w.syncOrAsync(Nn);return $r&&$r.then&&it._promises.push($r),$r},ae.getPxPosition=function(it,at){var Lt,xt=it._fullLayout._size,Ht=at._id.charAt(0),Xt=at.side;return at.anchor!=="free"?Lt=at._anchorAxis:Ht==="x"?Lt={_offset:xt.t+(1-(at.position||0))*xt.h,_length:0}:Ht==="y"&&(Lt={_offset:xt.l+(at.position||0)*xt.w+at._shift,_length:0}),Xt==="top"||Xt==="left"?Lt._offset:Xt==="bottom"||Xt==="right"?Lt._offset+Lt._length:void 0},ae.shouldShowZeroLine=function(it,at,Lt){var xt=w.simpleMap(at.range,at.r2l);return xt[0]*xt[1]<=0&&at.zeroline&&(at.type==="linear"||at.type==="-")&&!(at.rangebreaks&&at.maskBreaks(0)===U)&&(Gt(at,0)||!function(Ht,Xt,Yt,Qt){var Pt=Yt._mainAxis;if(Pt){var tn=Ht._fullLayout,Kt=Xt._id.charAt(0),fn=ae.counterLetter(Xt._id),dn=Xt._offset+(Math.abs(Qt[0])1)for(Qt=1;Qt2*k}(_,m))return"date";var M=v.autotypenumbers!=="strict";return function(T,E){for(var C=T.length,L=u(C),D=0,k=0,I={},z=0;z2*D}(_,M)?"category":function(T,E){for(var C=T.length,L=0;L=2){var I,z,$="";if(k.length===2){for(I=0;I<2;I++)if(z=T(k[I])){$=A;break}}var Q=D("pattern",$);if(Q===A)for(I=0;I<2;I++)(z=T(k[I]))&&(C.bounds[I]=k[I]=z-1);if(Q)for(I=0;I<2;I++)switch(z=k[I],Q){case A:if(!c(z)||(z=+z)!==Math.floor(z)||z<0||z>=7)return void(C.enabled=!1);C.bounds[I]=k[I]=z;break;case x:if(!c(z)||(z=+z)<0||z>24)return void(C.enabled=!1);C.bounds[I]=k[I]=z}if(L.autorange===!1){var j=L.range;if(j[0]j[1])return void(C.enabled=!1)}else if(k[0]>j[0]&&k[1]p?1:-1:+(O.substr(1)||1)-+(w.substr(1)||1)},l.ref2id=function(O){return!!/^[xyz]/.test(O)&&O.split(" ")[0]},l.isLinked=function(O,w){return i(w,O._axisMatchGroups)||i(w,O._axisConstraintGroups)}},22416:function(d,l,n){var c=n(38116).isTypedArraySpec;d.exports=function(b,i,O,w){if(i.type==="category"){var y,p=b.categoryarray,a=Array.isArray(p)&&p.length>0||c(p);a&&(y="array");var u,h=O("categoryorder",y);h==="array"&&(u=O("categoryarray")),a||h!=="array"||(h=i.categoryorder="trace"),h==="trace"?i._initialCategories=[]:h==="array"?i._initialCategories=u.slice():(u=function(m,v){var _,S,A,x=v.dataAttr||m._id.charAt(0),R={};if(v.axData)_=v.axData;else for(_=[],S=0;ST?E.substr(T):C.substr(M))+L:E+C+x*R:L}function S(x,R){for(var M=R._size,T=M.h/M.w,E={},C=Object.keys(x),L=0;Lp*j)||W){for(M=0;M<$.length;M++)if(L=X[E=$[M]],D=(C=te[E]).constrain,L!==U||D==="domain")if(k=L/U,D==="range")w(C,k);else{var K=C._inputDomain,oe=(C.domain[1]-C.domain[0])/(K[1]-K[0]),q=(C.r2l(C.range[1])-C.r2l(C.range[0]))/(C.r2l(C._inputRange[1])-C.r2l(C._inputRange[0]));if((k/=oe)*q<1){C.domain=C._input.domain=K.slice(),w(C,k);continue}if(q<1&&(C.range=C._input.range=C._inputRange.slice(),k*=q),C.autorange){var Y=C.r2l(C.range[0]),ee=C.r2l(C.range[1]),me=(Y+ee)/2,he=me,se=me,ae=Math.abs(ee-me),ce=me-ae*k*1.0001,de=me+ae*k*1.0001,ve=b.makePadFn(I,C,0),ye=b.makePadFn(I,C,1);A(C,k);var _e,Se,Te=Math.abs(C._m),Pe=b.concatExtremes(x,C),Ie=Pe.min,ze=Pe.max;for(Se=0;Sece&&_ese&&(se=_e);k/=(se-he)/(2*ae),he=C.l2r(he),se=C.l2r(se),C.range=C._input.range=Y=0?Math.min(_e,.9):1/(1/Math.max(_e,-.3)+3.222))}function Y(_e,Se,Te,Pe,Ie){return _e.append("path").attr("class","zoombox").style({fill:Se>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(Te,Pe)).attr("d",Ie+"Z")}function ee(_e,Se,Te){return _e.append("path").attr("class","zoombox-corners").style({fill:u.background,stroke:u.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(Se,Te)).attr("d","M0,0Z")}function me(_e,Se,Te,Pe,Ie,ze){_e.attr("d",Pe+"M"+Te.l+","+Te.t+"v"+Te.h+"h"+Te.w+"v-"+Te.h+"h-"+Te.w+"Z"),he(_e,Se,Ie,ze)}function he(_e,Se,Te,Pe){Te||(_e.transition().style("fill",Pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Se.transition().style("opacity",1).duration(200))}function se(_e){c.select(_e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ae(_e){U&&_e.data&&_e._context.showTips&&(b.notifier(b._(_e,"Double-click to zoom back out"),"long"),U=!1)}function ce(_e){var Se=Math.floor(Math.min(_e.b-_e.t,_e.r-_e.l,j)/2);return"M"+(_e.l-3.5)+","+(_e.t-.5+Se)+"h3v"+-Se+"h"+Se+"v-3h-"+(Se+3)+"ZM"+(_e.r+3.5)+","+(_e.t-.5+Se)+"h-3v"+-Se+"h"+-Se+"v-3h"+(Se+3)+"ZM"+(_e.r+3.5)+","+(_e.b+.5-Se)+"h-3v"+Se+"h"+-Se+"v3h"+(Se+3)+"ZM"+(_e.l-3.5)+","+(_e.b+.5-Se)+"h3v"+Se+"h"+Se+"v3h-"+(Se+3)+"Z"}function de(_e,Se,Te,Pe,Ie){for(var ze,De,He,Ve,$e=!1,Oe={},ke={},Le=(Ie||{}).xaHash,We=(Ie||{}).yaHash,Ue=0;Ue=0)Wn._fullLayout._deactivateShape(Wn);else{var Kn=Wn._fullLayout.clickmode;if(se(Wn),Fn!==2||_t||En(),Ct)Kn.indexOf("select")>-1&&I(ir,Wn,Le,We,Se.id,xt),Kn.indexOf("event")>-1&&m.click(Wn,ir,Se.id);else if(Fn===1&&_t){var _r=De?$e:Ve,Ir=De==="s"||He==="w"?0:1,zr=_r._name+".range["+Ir+"]",Fr=function(Kr,Co){var so,So=Kr.range[Co],go=Math.abs(So-Kr.range[1-Co]);return Kr.type==="date"?So:Kr.type==="log"?(so=Math.ceil(Math.max(0,-Math.log(go)/Math.LN10))+3,i("."+so+"g")(Math.pow(10,So))):(so=Math.floor(Math.log(Math.abs(So))/Math.LN10)-Math.floor(Math.log(go)/Math.LN10)+4,i("."+String(so)+"g")(So))}(_r,Ir),Rr="left",$r="middle";if(_r.fixedrange)return;De?($r=De==="n"?"top":"bottom",_r.side==="right"&&(Rr="right")):He==="e"&&(Rr="right"),Wn._context.showAxisRangeEntryBoxes&&c.select(bn).call(a.makeEditable,{gd:Wn,immediate:!0,background:Wn._fullLayout.paper_bgcolor,text:String(Fr),fill:_r.tickfont?_r.tickfont.color:"#444",horizontalAlign:Rr,verticalAlign:$r}).on("edit",function(Kr){var Co=_r.d2r(Kr);Co!==void 0&&y.call("_guiRelayout",Wn,zr,Co)})}}}function Yt(Fn,ir){if(_e._transitioningWithDuration)return!1;var Wn=Math.max(0,Math.min(Xe,qt*Fn+mn)),Kn=Math.max(0,Math.min(tt,en*ir+vt)),_r=Math.abs(Wn-mn),Ir=Math.abs(Kn-vt);function zr(){Rt="",bt.r=bt.l,bt.t=bt.b,at.attr("d","M0,0Z")}if(bt.l=Math.min(mn,Wn),bt.r=Math.max(mn,Wn),bt.t=Math.min(vt,Kn),bt.b=Math.max(vt,Kn),Ee.isSubplotConstrained)_r>j||Ir>j?(Rt="xy",_r/Xe>Ir/tt?(Ir=_r*tt/Xe,vt>Kn?bt.t=vt-Ir:bt.b=vt+Ir):(_r=Ir*Xe/tt,mn>Wn?bt.l=mn-_r:bt.r=mn+_r),at.attr("d",ce(bt))):zr();else if(Ne.isSubplotConstrained)if(_r>j||Ir>j){Rt="xy";var Fr=Math.min(bt.l/Xe,(tt-bt.b)/tt),Rr=Math.max(bt.r/Xe,(tt-bt.t)/tt);bt.l=Fr*Xe,bt.r=Rr*Xe,bt.b=(1-Fr)*tt,bt.t=(1-Rr)*tt,at.attr("d",ce(bt))}else zr();else!nt||Ir0){var $r;if(Ne.isSubplotConstrained||!je&&nt.length===1){for($r=0;$r1&&(Kn.maxallowed!==void 0&&Ge===(Kn.range[0]1&&(_r.maxallowed!==void 0&&ht===(_r.range[0]<_r.range[1]?"n":"s")||_r.minallowed!==void 0&&ht===(_r.range[0]<_r.range[1]?"s":"n"))&&(So=1,li=0),so||So){so||(so=1),So||(So=1);var br=Kn._offset-go/so,dr=_r._offset-li/So;Wn.clipRect.call(h.setTranslate,go,li).call(h.setScale,so,So),Wn.plot.call(h.setTranslate,br,dr).call(h.setScale,1/so,1/So),so===Wn.xScaleFactor&&So===Wn.yScaleFactor||(h.setPointGroupScale(Wn.zoomScalePts,so,So),h.setTextPointsScale(Wn.zoomScaleTxt,so,So)),h.hideOutsideRangePoints(Wn.clipOnAxisFalseTraces,Wn),Wn.xScaleFactor=so,Wn.yScaleFactor=So}}}}function xr(Fn,ir,Wn){return Fn.fixedrange?0:Ge&&Ee.xaHash[Fn._id]?ir:ht&&(Ee.isSubplotConstrained?Ee.xaHash:Ee.yaHash)[Fn._id]?Wn:0}function Sr(Fn,ir){return ir?(Fn.range=Fn._r.slice(),z(Fn,ir),ar(Fn,ir)):0}function ar(Fn,ir,Wn){return Fn._length*(1-ir)*M[Wn||Fn.constraintoward||"middle"]}return De.length*He.length!=1&&ve(bn,function(Fn){if(_e._context._scrollZoom.cartesian||_e._fullLayout._enablescrollzoom){if(Ht(),_e._transitioningWithDuration)return Fn.preventDefault(),void Fn.stopPropagation();nn(),clearTimeout(Kt);var ir=-Fn.deltaY;if(isFinite(ir)||(ir=Fn.wheelDelta/10),isFinite(ir)){var Wn,Kn=Math.exp(-Math.min(Math.max(ir,-20),20)/200),_r=dn.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Ir=(Fn.clientX-_r.left)/_r.width,zr=(_r.bottom-Fn.clientY)/_r.height;if(Ge){for(He||(Ir=.5),Wn=0;WnC[1]-.000244140625&&(O.domain=a),b.noneOrAll(i.domain,O.domain,a),O.tickmode==="sync"&&(O.tickmode="auto")}return w("layer"),O}},42568:function(d,l,n){var c=n(85024);d.exports=function(b,i,O,w,y){y||(y={});var p=y.tickSuffixDflt,a=c(b);O("tickprefix")&&O("showtickprefix",a),O("ticksuffix",p)&&O("showticksuffix",a)}},96312:function(d,l,n){var c=n(76808);d.exports=function(b,i,O,w){var y=i._template||{},p=i.type||y.type||"-";O("minallowed"),O("maxallowed");var a,u=O("range");u||w.noInsiderange||p==="log"||(!(a=O("insiderange"))||a[0]!==null&&a[1]!==null||(i.insiderange=!1,a=void 0),a&&(u=O("range",a)));var h,m=i.getAutorangeDflt(u,w),v=O("autorange",m);!u||(u[0]!==null||u[1]!==null)&&(u[0]!==null&&u[1]!==null||v!=="reversed"&&v!==!0)&&(u[0]===null||v!=="min"&&v!=="max reversed")&&(u[1]===null||v!=="max"&&v!=="min reversed")||(u=void 0,delete i.range,i.autorange=!0,h=!0),h||(v=O("autorange",m=i.getAutorangeDflt(u,w))),v&&(c(O,v,u),p!=="linear"&&p!=="-"||O("rangemode")),i.cleanRange()}},21160:function(d,l,n){var c=n(84284).FROM_BL;d.exports=function(b,i,O){O===void 0&&(O=c[b.constraintoward||"center"]);var w=[b.r2l(b.range[0]),b.r2l(b.range[1])],y=w[0]+(w[1]-w[0])*O;b.range=b._input.range=[b.l2r(y+(w[0]-y)*i),b.l2r(y+(w[1]-y)*i)],b.setScale()}},78344:function(d,l,n){var c=n(33428),b=n(94336).E9,i=n(3400),O=i.numberFormat,w=n(38248),y=i.cleanNumber,p=i.ms2DateTime,a=i.dateTime2ms,u=i.ensureNumber,h=i.isArrayOrTypedArray,m=n(39032),v=m.FP_SAFE,_=m.BADNUM,S=m.LOG_CLIP,A=m.ONEWEEK,x=m.ONEDAY,R=m.ONEHOUR,M=m.ONEMIN,T=m.ONESEC,E=n(79811),C=n(33816),L=C.HOUR_PATTERN,D=C.WEEKDAY_PATTERN;function k(z){return Math.pow(10,z)}function I(z){return z!=null}d.exports=function(z,$){$=$||{};var Q=z._id||"x",j=Q.charAt(0);function U(de,ve){if(de>0)return Math.log(de)/Math.LN10;if(de<=0&&ve&&z.range&&z.range.length===2){var ye=z.range[0],_e=z.range[1];return .5*(ye+_e-2*S*Math.abs(ye-_e))}return _}function X(de,ve,ye,_e){if((_e||{}).msUTC&&w(de))return+de;var Se=a(de,ye||z.calendar);if(Se===_){if(!w(de))return _;de=+de;var Te=Math.floor(10*i.mod(de+.05,1)),Pe=Math.round(de-Te/10);Se=a(new Date(Pe))+Te/10}return Se}function te(de,ve,ye){return p(de,ve,ye||z.calendar)}function W(de){return z._categories[Math.round(de)]}function K(de){if(I(de)){if(z._categoriesMap===void 0&&(z._categoriesMap={}),z._categoriesMap[de]!==void 0)return z._categoriesMap[de];z._categories.push(typeof de=="number"?String(de):de);var ve=z._categories.length-1;return z._categoriesMap[de]=ve,ve}return _}function oe(de){if(z._categoriesMap)return z._categoriesMap[de]}function q(de){var ve=oe(de);return ve!==void 0?ve:w(de)?+de:void 0}function Y(de){return w(de)?+de:oe(de)}function ee(de,ve,ye){return c.round(ye+ve*de,2)}function me(de,ve,ye){return(de-ye)/ve}var he=function(de){return w(de)?ee(de,z._m,z._b):_},se=function(de){return me(de,z._m,z._b)};if(z.rangebreaks){var ae=j==="y";he=function(de){if(!w(de))return _;var ve=z._rangebreaks.length;if(!ve)return ee(de,z._m,z._b);var ye=ae;z.range[0]>z.range[1]&&(ye=!ye);for(var _e=ye?-1:1,Se=_e*de,Te=0,Pe=0;Peze)){Te=Se<(Ie+ze)/2?Pe:Pe+1;break}Te=Pe+1}var De=z._B[Te]||0;return isFinite(De)?ee(de,z._m2,De):0},se=function(de){var ve=z._rangebreaks.length;if(!ve)return me(de,z._m,z._b);for(var ye=0,_e=0;_ez._rangebreaks[_e].pmax&&(ye=_e+1);return me(de,z._m2,z._B[ye])}}z.c2l=z.type==="log"?U:u,z.l2c=z.type==="log"?k:u,z.l2p=he,z.p2l=se,z.c2p=z.type==="log"?function(de,ve){return he(U(de,ve))}:he,z.p2c=z.type==="log"?function(de){return k(se(de))}:se,["linear","-"].indexOf(z.type)!==-1?(z.d2r=z.r2d=z.d2c=z.r2c=z.d2l=z.r2l=y,z.c2d=z.c2r=z.l2d=z.l2r=u,z.d2p=z.r2p=function(de){return z.l2p(y(de))},z.p2d=z.p2r=se,z.cleanPos=u):z.type==="log"?(z.d2r=z.d2l=function(de,ve){return U(y(de),ve)},z.r2d=z.r2c=function(de){return k(y(de))},z.d2c=z.r2l=y,z.c2d=z.l2r=u,z.c2r=U,z.l2d=k,z.d2p=function(de,ve){return z.l2p(z.d2r(de,ve))},z.p2d=function(de){return k(se(de))},z.r2p=function(de){return z.l2p(y(de))},z.p2r=se,z.cleanPos=u):z.type==="date"?(z.d2r=z.r2d=i.identity,z.d2c=z.r2c=z.d2l=z.r2l=X,z.c2d=z.c2r=z.l2d=z.l2r=te,z.d2p=z.r2p=function(de,ve,ye){return z.l2p(X(de,0,ye))},z.p2d=z.p2r=function(de,ve,ye){return te(se(de),ve,ye)},z.cleanPos=function(de){return i.cleanDate(de,_,z.calendar)}):z.type==="category"?(z.d2c=z.d2l=K,z.r2d=z.c2d=z.l2d=W,z.d2r=z.d2l_noadd=q,z.r2c=function(de){var ve=Y(de);return ve!==void 0?ve:z.fraction2r(.5)},z.l2r=z.c2r=u,z.r2l=Y,z.d2p=function(de){return z.l2p(z.r2c(de))},z.p2d=function(de){return W(se(de))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(de){return typeof de=="string"&&de!==""?de:u(de)}):z.type==="multicategory"&&(z.r2d=z.c2d=z.l2d=W,z.d2r=z.d2l_noadd=q,z.r2c=function(de){var ve=q(de);return ve!==void 0?ve:z.fraction2r(.5)},z.r2c_just_indices=oe,z.l2r=z.c2r=u,z.r2l=q,z.d2p=function(de){return z.l2p(z.r2c(de))},z.p2d=function(de){return W(se(de))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(de){return Array.isArray(de)||typeof de=="string"&&de!==""?de:u(de)},z.setupMultiCategory=function(de){var ve,ye,_e=z._traceIndices,Se=z._matchGroup;if(Se&&z._categories.length===0){for(var Te in Se)if(Te!==Q){var Pe=$[E.id2name(Te)];_e=_e.concat(Pe._traceIndices)}}var Ie=[[0,{}],[0,{}]],ze=[];for(ve=0;ve<_e.length;ve++){var De=de[_e[ve]];if(j in De){var He=De[j],Ve=De._length||i.minRowLength(He);if(h(He[0])&&h(He[1]))for(ye=0;yePe[1]&&(_e[Te?0:1]=ye),_e[0]===_e[1]){var Ie=z.l2r(ve),ze=z.l2r(ye);if(ve!==void 0){var De=Ie+1;ye!==void 0&&(De=Math.min(De,ze)),_e[Te?1:0]=De}if(ye!==void 0){var He=ze+1;ve!==void 0&&(He=Math.max(He,Ie)),_e[Te?0:1]=He}}}},z.cleanRange=function(de,ve){z._cleanRange(de,ve),z.limitRange(de)},z._cleanRange=function(de,ve){ve||(ve={}),de||(de="range");var ye,_e,Se=i.nestedProperty(z,de).get();if(_e=(_e=z.type==="date"?i.dfltRange(z.calendar):j==="y"?C.DFLTRANGEY:z._name==="realaxis"?[0,1]:ve.dfltRange||C.DFLTRANGEX).slice(),z.rangemode!=="tozero"&&z.rangemode!=="nonnegative"||(_e[0]=0),Se&&Se.length===2){var Te=Se[0]===null,Pe=Se[1]===null;for(z.type!=="date"||z.autorange||(Se[0]=i.cleanDate(Se[0],_,z.calendar),Se[1]=i.cleanDate(Se[1],_,z.calendar)),ye=0;ye<2;ye++)if(z.type==="date"){if(!i.isDateTime(Se[ye],z.calendar)){z[de]=_e;break}if(z.r2l(Se[0])===z.r2l(Se[1])){var Ie=i.constrain(z.r2l(Se[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);Se[0]=z.l2r(Ie-1e3),Se[1]=z.l2r(Ie+1e3);break}}else{if(!w(Se[ye])){if(Te||Pe||!w(Se[1-ye])){z[de]=_e;break}Se[ye]=Se[1-ye]*(ye?10:.1)}if(Se[ye]<-v?Se[ye]=-v:Se[ye]>v&&(Se[ye]=v),Se[0]===Se[1]){var ze=Math.max(1,Math.abs(1e-6*Se[0]));Se[0]-=ze,Se[1]+=ze}}}else i.nestedProperty(z,de).set(_e)},z.setScale=function(de){var ve=$._size;if(z.overlaying){var ye=E.getFromId({_fullLayout:$},z.overlaying);z.domain=ye.domain}var _e=de&&z._r?"_r":"range",Se=z.calendar;z.cleanRange(_e);var Te,Pe,Ie=z.r2l(z[_e][0],Se),ze=z.r2l(z[_e][1],Se),De=j==="y";if(De?(z._offset=ve.t+(1-z.domain[1])*ve.h,z._length=ve.h*(z.domain[1]-z.domain[0]),z._m=z._length/(Ie-ze),z._b=-z._m*ze):(z._offset=ve.l+z.domain[0]*ve.w,z._length=ve.w*(z.domain[1]-z.domain[0]),z._m=z._length/(ze-Ie),z._b=-z._m*Ie),z._rangebreaks=[],z._lBreaks=0,z._m2=0,z._B=[],z.rangebreaks&&(z._rangebreaks=z.locateBreaks(Math.min(Ie,ze),Math.max(Ie,ze)),z._rangebreaks.length)){for(Te=0;Teze&&(He=!He),He&&z._rangebreaks.reverse();var Ve=He?-1:1;for(z._m2=Ve*z._length/(Math.abs(ze-Ie)-z._lBreaks),z._B.push(-z._m2*(De?ze:Ie)),Te=0;Te_e&&(_e+=7,Se_e&&(_e+=24,Se=ye&&Se<_e)return _}else for(var He=Pe._cachedValues[Ie],Ve=0;Ve=ye&&de<_e)return _}}return de},z.locateBreaks=function(de,ve){var ye,_e,Se,Te,Pe=[];if(!z.rangebreaks)return Pe;var Ie=z.rangebreaks.slice().sort(function(Ze,Xe){return Ze.pattern===D&&Xe.pattern===L?-1:Xe.pattern===D&&Ze.pattern===L?1:0}),ze=function(Ze,Xe){if((Ze=i.constrain(Ze,de,ve))!==(Xe=i.constrain(Xe,de,ve))){for(var tt=!0,Ee=0;Ee=Ne.min&&(ZeNe.max&&(Ne.max=Xe),tt=!1)}tt&&Pe.push({min:Ze,max:Xe})}};for(ye=0;yea.duration?(function(){for(var L={},D=0;D rect").call(O.setTranslate,0,0).call(O.setScale,1,1),M.plot.call(O.setTranslate,T._offset,E._offset).call(O.setScale,1,1);var C=M.plot.selectAll(".scatterlayer .trace");C.selectAll(".point").call(O.setPointGroupScale,1,1),C.selectAll(".textpoint").call(O.setTextPointsScale,1,1),C.call(O.hideOutsideRangePoints,M)}function R(M,T){var E=M.plotinfo,C=E.xaxis,L=E.yaxis,D=C._length,k=L._length,I=!!M.xr1,z=!!M.yr1,$=[];if(I){var Q=i.simpleMap(M.xr0,C.r2l),j=i.simpleMap(M.xr1,C.r2l),U=Q[1]-Q[0],X=j[1]-j[0];$[0]=(Q[0]*(1-T)+T*j[0]-Q[0])/(Q[1]-Q[0])*D,$[2]=D*(1-T+T*X/U),C.range[0]=C.l2r(Q[0]*(1-T)+T*j[0]),C.range[1]=C.l2r(Q[1]*(1-T)+T*j[1])}else $[0]=0,$[2]=D;if(z){var te=i.simpleMap(M.yr0,L.r2l),W=i.simpleMap(M.yr1,L.r2l),K=te[1]-te[0],oe=W[1]-W[0];$[1]=(te[1]*(1-T)+T*W[1]-te[1])/(te[0]-te[1])*k,$[3]=k*(1-T+T*oe/K),L.range[0]=C.l2r(te[0]*(1-T)+T*W[0]),L.range[1]=L.l2r(te[1]*(1-T)+T*W[1])}else $[1]=0,$[3]=k;w.drawOne(y,C,{skipTitle:!0}),w.drawOne(y,L,{skipTitle:!0}),w.redrawComponents(y,[C._id,L._id]);var q=I?D/$[2]:1,Y=z?k/$[3]:1,ee=I?$[0]:0,me=z?$[1]:0,he=I?$[0]/$[2]*D:0,se=z?$[1]/$[3]*k:0,ae=C._offset-he,ce=L._offset-se;E.clipRect.call(O.setTranslate,ee,me).call(O.setScale,1/q,1/Y),E.plot.call(O.setTranslate,ae,ce).call(O.setScale,q,Y),O.setPointGroupScale(E.zoomScalePts,1/q,1/Y),O.setTextPointsScale(E.zoomScaleTxt,1/q,1/Y)}w.redrawComponents(y)}},14944:function(d,l,n){var c=n(24040).traceIs,b=n(52976);function i(w){return{v:"x",h:"y"}[w.orientation||"v"]}function O(w,y){var p=i(w),a=c(w,"box-violin"),u=c(w._fullInput||{},"candlestick");return a&&!u&&y===p&&w[p]===void 0&&w[p+"0"]===void 0}d.exports=function(w,y,p,a){p("autotypenumbers",a.autotypenumbersDflt),p("type",(a.splomStash||{}).type)==="-"&&(function(u,h){if(u.type==="-"){var m,v=u._id,_=v.charAt(0);v.indexOf("scene")!==-1&&(v=_);var S=function(L,D,k){for(var I=0;I0&&(z["_"+k+"axes"]||{})[D]||(z[k+"axis"]||k)===D&&(O(z,k)||(z[k]||[]).length||z[k+"0"]))return z}}(h,v,_);if(S)if(S.type!=="histogram"||_!=={v:"y",h:"x"}[S.orientation||"v"]){var A=_+"calendar",x=S[A],R={noMultiCategory:!c(S,"cartesian")||c(S,"noMultiCategory")};if(S.type==="box"&&S._hasPreCompStats&&_==={h:"x",v:"y"}[S.orientation||"v"]&&(R.noMultiCategory=!0),R.autotypenumbers=u.autotypenumbers,O(S,_)){var M=i(S),T=[];for(m=0;m0?".":"")+m;b.isPlainObject(v)?y(v,a,_,h+1):a(_,m,v)}})}l.manageCommandObserver=function(p,a,u,h){var m={},v=!0;a&&a._commandObserver&&(m=a._commandObserver),m.cache||(m.cache={}),m.lookupTable={};var _=l.hasSimpleAPICommandBindings(p,u,m.lookupTable);if(a&&a._commandObserver){if(_)return m;if(a._commandObserver.remove)return a._commandObserver.remove(),a._commandObserver=null,m}if(_){i(p,_,m.cache),m.check=function(){if(v){var x=i(p,_,m.cache);return x.changed&&h&&m.lookupTable[x.value]!==void 0&&(m.disable(),Promise.resolve(h({value:x.value,type:_.type,prop:_.prop,traces:_.traces,index:m.lookupTable[x.value]})).then(m.enable,m.enable)),x.changed}};for(var S=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],A=0;A0&&X<0&&(X+=360);var K=(X-U)/4;return{type:"Polygon",coordinates:[[[U,te],[U,W],[U+K,W],[U+2*K,W],[U+3*K,W],[X,W],[X,te],[X-K,te],[X-2*K,te],[X-3*K,te],[U,te]]]}}d.exports=function($){return new k($)},I.plot=function($,Q,j,U){var X=this;if(U)return X.update($,Q,!0);X._geoCalcData=$,X._fullLayout=Q;var te=Q[this.id],W=[],K=!1;for(var oe in E.layerNameToAdjective)if(oe!=="frame"&&te["show"+oe]){K=!0;break}for(var q=!1,Y=0;Y<$.length;Y++){var ee=$[0][0].trace;ee._geo=X,ee.locationmode&&(K=!0);var me=ee.marker;if(me){var he=me.angle,se=me.angleref;(he||se==="north"||se==="previous")&&(q=!0)}}if(this._hasMarkerAngles=q,K){var ae=L.getTopojsonName(te);X.topojson!==null&&ae===X.topojsonName||(X.topojsonName=ae,PlotlyGeoAssets.topojson[X.topojsonName]===void 0&&W.push(X.fetchTopojson()))}W=W.concat(C.fetchTraceGeoData($)),j.push(new Promise(function(ce,de){Promise.all(W).then(function(){X.topojson=PlotlyGeoAssets.topojson[X.topojsonName],X.update($,Q),ce()}).catch(de)}))},I.fetchTopojson=function(){var $=this,Q=L.getTopojsonPath($.topojsonURL,$.topojsonName);return new Promise(function(j,U){c.json(Q,function(X,te){if(X)return X.status===404?U(new Error(["plotly.js could not find topojson file at",Q+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):U(new Error(["unexpected error while fetching topojson file at",Q].join(" ")));PlotlyGeoAssets.topojson[$.topojsonName]=te,j()})})},I.update=function($,Q,j){var U=Q[this.id];this.hasChoropleth=!1;for(var X=0;X<$.length;X++){var te=$[X],W=te[0].trace;W.type==="choropleth"&&(this.hasChoropleth=!0),W.visible===!0&&W._length>0&&W._module.calcGeoJSON(te,Q)}if(!j){if(this.updateProjection($,Q))return;this.viewInitial&&this.scope===U.scope||this.saveViewInitial(U)}this.scope=U.scope,this.updateBaseLayers(Q,U),this.updateDims(Q,U),this.updateFx(Q,U),v.generalUpdatePerTraceModule(this.graphDiv,this,$,U);var K=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=K.selectAll(".point"),this.dataPoints.text=K.selectAll("text"),this.dataPaths.line=K.selectAll(".js-line");var oe=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=oe.selectAll("path"),this._render()},I.updateProjection=function($,Q){var j=this.graphDiv,U=Q[this.id],X=Q._size,te=U.domain,W=U.projection,K=U.lonaxis,oe=U.lataxis,q=K._ax,Y=oe._ax,ee=this.projection=function(ke){var Le=ke.projection,We=Le.type,Ue=E.projNames[We];Ue="geo"+p.titleCase(Ue);for(var Ze=(b[Ue]||w[Ue])(),Xe=ke._isSatellite?180*Math.acos(1/Le.distance)/Math.PI:ke._isClipped?E.lonaxisSpan[We]/2:null,tt=["center","rotate","parallels","clipExtent"],Ee=function(nt){return nt?Ze:[]},Ne=0;NeXe*Math.PI/180}return!1},Ze.getPath=function(){return i().projection(Ze)},Ze.getBounds=function(nt){return Ze.getPath().bounds(nt)},Ze.precision(E.precision),ke._isSatellite&&Ze.tilt(Le.tilt).distance(Le.distance),Xe&&Ze.clipAngle(Xe-E.clipPad),Ze}(U),me=[[X.l+X.w*te.x[0],X.t+X.h*(1-te.y[1])],[X.l+X.w*te.x[1],X.t+X.h*(1-te.y[0])]],he=U.center||{},se=W.rotation||{},ae=K.range||[],ce=oe.range||[];if(U.fitbounds){q._length=me[1][0]-me[0][0],Y._length=me[1][1]-me[0][1],q.range=S(j,q),Y.range=S(j,Y);var de=(q.range[0]+q.range[1])/2,ve=(Y.range[0]+Y.range[1])/2;if(U._isScoped)he={lon:de,lat:ve};else if(U._isClipped){he={lon:de,lat:ve},se={lon:de,lat:ve,roll:se.roll};var ye=W.type,_e=E.lonaxisSpan[ye]/2||180,Se=E.lataxisSpan[ye]/2||90;ae=[de-_e,de+_e],ce=[ve-Se,ve+Se]}else he={lon:de,lat:ve},se={lon:de,lat:se.lat,roll:se.roll}}ee.center([he.lon-se.lon,he.lat-se.lat]).rotate([-se.lon,-se.lat,se.roll]).parallels(W.parallels);var Te=z(ae,ce);ee.fitExtent(me,Te);var Pe=this.bounds=ee.getBounds(Te),Ie=this.fitScale=ee.scale(),ze=ee.translate();if(U.fitbounds){var De=ee.getBounds(z(q.range,Y.range)),He=Math.min((Pe[1][0]-Pe[0][0])/(De[1][0]-De[0][0]),(Pe[1][1]-Pe[0][1])/(De[1][1]-De[0][1]));isFinite(He)?ee.scale(He*Ie):p.warn("Something went wrong during"+this.id+"fitbounds computations.")}else ee.scale(W.scale*Ie);var Ve=this.midPt=[(Pe[0][0]+Pe[1][0])/2,(Pe[0][1]+Pe[1][1])/2];if(ee.translate([ze[0]+(Ve[0]-ze[0]),ze[1]+(Ve[1]-ze[1])]).clipExtent(Pe),U._isAlbersUsa){var $e=ee([he.lon,he.lat]),Oe=ee.translate();ee.translate([Oe[0]-($e[0]-Oe[0]),Oe[1]-($e[1]-Oe[1])])}},I.updateBaseLayers=function($,Q){var j=this,U=j.topojson,X=j.layers,te=j.basePaths;function W(ee){return ee==="lonaxis"||ee==="lataxis"}function K(ee){return!!E.lineLayers[ee]}function oe(ee){return!!E.fillLayers[ee]}var q=(this.hasChoropleth?E.layersForChoropleth:E.layers).filter(function(ee){return K(ee)||oe(ee)?Q["show"+ee]:!W(ee)||Q[ee].showgrid}),Y=j.framework.selectAll(".layer").data(q,String);Y.exit().each(function(ee){delete X[ee],delete te[ee],c.select(this).remove()}),Y.enter().append("g").attr("class",function(ee){return"layer "+ee}).each(function(ee){var me=X[ee]=c.select(this);ee==="bg"?j.bgRect=me.append("rect").style("pointer-events","all"):W(ee)?te[ee]=me.append("path").style("fill","none"):ee==="backplot"?me.append("g").classed("choroplethlayer",!0):ee==="frontplot"?me.append("g").classed("scatterlayer",!0):K(ee)?te[ee]=me.append("path").style("fill","none").style("stroke-miterlimit",2):oe(ee)&&(te[ee]=me.append("path").style("stroke","none"))}),Y.order(),Y.each(function(ee){var me=te[ee],he=E.layerNameToAdjective[ee];ee==="frame"?me.datum(E.sphereSVG):K(ee)||oe(ee)?me.datum(D(U,U.objects[ee])):W(ee)&&me.datum(function(se,ae,ce){var de,ve,ye,_e=ae[se],Se=E.scopeDefaults[ae.scope];se==="lonaxis"?(de=Se.lonaxisRange,ve=Se.lataxisRange,ye=function(Oe,ke){return[Oe,ke]}):se==="lataxis"&&(de=Se.lataxisRange,ve=Se.lonaxisRange,ye=function(Oe,ke){return[ke,Oe]});var Te={type:"linear",range:[de[0],de[1]-1e-6],tick0:_e.tick0,dtick:_e.dtick};_.setConvert(Te,ce);var Pe=_.calcTicks(Te);ae.isScoped||se!=="lonaxis"||Pe.pop();for(var Ie=Pe.length,ze=new Array(Ie),De=0;De-1&&M(c.event,U,[j.xaxis],[j.yaxis],j.id,K),W.indexOf("event")>-1&&m.click(U,c.event))})}function oe(q){return j.projection.invert([q[0]+j.xaxis._offset,q[1]+j.yaxis._offset])}},I.makeFramework=function(){var $=this,Q=$.graphDiv,j=Q._fullLayout,U="clip"+j._uid+$.id;$.clipDef=j._clips.append("clipPath").attr("id",U),$.clipRect=$.clipDef.append("rect"),$.framework=c.select($.container).append("g").attr("class","geo "+$.id).call(h.setClipUrl,U,Q),$.project=function(X){var te=$.projection(X);return te?[te[0]-$.xaxis._offset,te[1]-$.yaxis._offset]:[null,null]},$.xaxis={_id:"x",c2p:function(X){return $.project(X)[0]}},$.yaxis={_id:"y",c2p:function(X){return $.project(X)[1]}},$.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},_.setConvert($.mockAxis,j)},I.saveViewInitial=function($){var Q,j=$.center||{},U=$.projection,X=U.rotation||{};this.viewInitial={fitbounds:$.fitbounds,"projection.scale":U.scale},Q=$._isScoped?{"center.lon":j.lon,"center.lat":j.lat}:$._isClipped?{"projection.rotation.lon":X.lon,"projection.rotation.lat":X.lat}:{"center.lon":j.lon,"center.lat":j.lat,"projection.rotation.lon":X.lon},p.extendFlat(this.viewInitial,Q)},I.render=function($){this._hasMarkerAngles&&$?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},I._render=function(){var $,Q=this.projection,j=Q.getPath();function U(te){var W=Q(te.lonlat);return W?a(W[0],W[1]):null}function X(te){return Q.isLonLatOverEdges(te.lonlat)?"none":null}for($ in this.basePaths)this.basePaths[$].attr("d",j);for($ in this.dataPaths)this.dataPaths[$].attr("d",function(te){return j(te.geojson)});for($ in this.dataPoints)this.dataPoints[$].attr("display",X).attr("transform",U)}},10816:function(d,l,n){var c=n(84888).KY,b=n(3400).counterRegex,i=n(43520),O="geo",w=b(O),y={};y[O]={valType:"subplotid",dflt:O,editType:"calc"},d.exports={attr:O,name:O,idRoot:O,idRegex:w,attrRegex:w,attributes:y,layoutAttributes:n(40384),supplyLayoutDefaults:n(86920),plot:function(p){for(var a=p._fullLayout,u=p.calcdata,h=a._subplots[O],m=0;m0&&oe<0&&(oe+=360);var q,Y,ee,me=(K+oe)/2;if(!R){var he=M?A.projRotate:[me,0,0];q=h("projection.rotation.lon",he[0]),h("projection.rotation.lat",he[1]),h("projection.rotation.roll",he[2]),h("showcoastlines",!M&&D)&&(h("coastlinecolor"),h("coastlinewidth")),h("showocean",!!D&&void 0)&&h("oceancolor")}R?(Y=-96.6,ee=38.7):(Y=M?me:q,ee=(W[0]+W[1])/2),h("center.lon",Y),h("center.lat",ee),T&&(h("projection.tilt"),h("projection.distance")),E&&h("projection.parallels",A.projParallels||[0,60]),h("projection.scale"),h("showland",!!D&&void 0)&&h("landcolor"),h("showlakes",!!D&&void 0)&&h("lakecolor"),h("showrivers",!!D&&void 0)&&(h("rivercolor"),h("riverwidth")),h("showcountries",M&&S!=="usa"&&D)&&(h("countrycolor"),h("countrywidth")),(S==="usa"||S==="north america"&&_===50)&&(h("showsubunits",D),h("subunitcolor"),h("subunitwidth")),M||h("showframe",D)&&(h("framecolor"),h("framewidth")),h("bgcolor"),h("fitbounds")&&(delete u.projection.scale,M?(delete u.center.lon,delete u.center.lat):C?(delete u.center.lon,delete u.center.lat,delete u.projection.rotation.lon,delete u.projection.rotation.lat,delete u.lonaxis.range,delete u.lataxis.range):(delete u.center.lon,delete u.center.lat,delete u.projection.rotation.lon))}d.exports=function(a,u,h){b(a,u,h,{type:"geo",attributes:w,handleDefaults:p,fullData:h,partition:"y"})}},79248:function(d,l,n){var c=n(33428),b=n(3400),i=n(24040),O=Math.PI/180,w=180/Math.PI,y={cursor:"pointer"},p={cursor:"auto"};function a(M,T){return c.behavior.zoom().translate(T.translate()).scale(T.scale())}function u(M,T,E){var C=M.id,L=M.graphDiv,D=L.layout,k=D[C],I=L._fullLayout,z=I[C],$={},Q={};function j(U,X){$[C+"."+U]=b.nestedProperty(k,U).get(),i.call("_storeDirectGUIEdit",D,I._preGUI,$);var te=b.nestedProperty(z,U);te.get()!==X&&(te.set(X),b.nestedProperty(k,U).set(X),Q[C+"."+U]=X)}E(j),j("projection.scale",T.scale()/M.fitScale),j("fitbounds",!1),L.emit("plotly_relayout",Q)}function h(M,T){var E=a(0,T);function C(L){var D=T.invert(M.midPt);L("center.lon",D[0]),L("center.lat",D[1])}return E.on("zoomstart",function(){c.select(this).style(y)}).on("zoom",function(){T.scale(c.event.scale).translate(c.event.translate),M.render(!0);var L=T.invert(M.midPt);M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.center.lon":L[0],"geo.center.lat":L[1]})}).on("zoomend",function(){c.select(this).style(p),u(M,T,C)}),E}function m(M,T){var E,C,L,D,k,I,z,$,Q,j=a(0,T);function U(te){return T.invert(te)}function X(te){var W=T.rotate(),K=T.invert(M.midPt);te("projection.rotation.lon",-W[0]),te("center.lon",K[0]),te("center.lat",K[1])}return j.on("zoomstart",function(){c.select(this).style(y),E=c.mouse(this),C=T.rotate(),L=T.translate(),D=C,k=U(E)}).on("zoom",function(){if(I=c.mouse(this),function(K){var oe=U(K);if(!oe)return!0;var q=T(oe);return Math.abs(q[0]-K[0])>2||Math.abs(q[1]-K[1])>2}(E))return j.scale(T.scale()),void j.translate(T.translate());T.scale(c.event.scale),T.translate([L[0],c.event.translate[1]]),k?U(I)&&($=U(I),z=[D[0]+($[0]-k[0]),C[1],C[2]],T.rotate(z),D=z):k=U(E=I),Q=!0,M.render(!0);var te=T.rotate(),W=T.invert(M.midPt);M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.center.lon":W[0],"geo.center.lat":W[1],"geo.projection.rotation.lon":-te[0]})}).on("zoomend",function(){c.select(this).style(p),Q&&u(M,T,X)}),j}function v(M,T){var E;T.rotate(),T.scale();var C=a(0,T),L=function(z){for(var $=0,Q=arguments.length,j=[];++$Ge?(Ze=(je>0?90:-90)-ot,Ue=0):(Ze=Math.asin(je/Ge)*w-ot,Ue=Math.sqrt(Ge*Ge-je*je));var ht=180-Ze-2*ot,pt=(Math.atan2(nt,Ne)-Math.atan2(Ee,Ue))*w,wt=(Math.atan2(nt,Ne)-Math.atan2(Ee,-Ue))*w;return S(Le[0],Le[1],Ze,pt)<=S(Le[0],Le[1],ht,wt)?[Ze,pt,Le[2]]:[ht,wt,Le[2]]}(Ve,E,me);isFinite($e[0])&&isFinite($e[1])&&isFinite($e[2])||($e=me),T.rotate($e),me=$e}}else E=_(T,Y=ze);L.of(this,arguments)({type:"zoom"})}),q=L.of(this,arguments),D++||q({type:"zoomstart"})}).on("zoomend",function(){var z;c.select(this).style(p),k.call(C,"zoom",null),z=L.of(this,arguments),--D||z({type:"zoomend"}),u(M,T,I)}).on("zoom.redraw",function(){M.render(!0);var z=T.rotate();M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.projection.rotation.lon":-z[0],"geo.projection.rotation.lat":-z[1]})}),c.rebind(C,L,"on")}function _(M,T){var E=M.invert(T);return E&&isFinite(E[0])&&isFinite(E[1])&&function(C){var L=C[0]*O,D=C[1]*O,k=Math.cos(D);return[k*Math.cos(L),k*Math.sin(L),Math.sin(D)]}(E)}function S(M,T,E,C){var L=A(E-M),D=A(C-T);return Math.sqrt(L*L+D*D)}function A(M){return(M%360+540)%360-180}function x(M,T,E){var C=E*O,L=M.slice(),D=T===0?1:0,k=T===2?1:2,I=Math.cos(C),z=Math.sin(C);return L[D]=M[D]*I-M[k]*z,L[k]=M[k]*I+M[D]*z,L}function R(M,T){for(var E=0,C=0,L=M.length;CMath.abs(R)?(h.boxEnd[1]=h.boxStart[1]+Math.abs(x)*j*(R>=0?1:-1),h.boxEnd[1]M[3]&&(h.boxEnd[1]=M[3],h.boxEnd[0]=h.boxStart[0]+(M[3]-h.boxStart[1])/Math.abs(j))):(h.boxEnd[0]=h.boxStart[0]+Math.abs(R)/j*(x>=0?1:-1),h.boxEnd[0]M[2]&&(h.boxEnd[0]=M[2],h.boxEnd[1]=h.boxStart[1]+(M[2]-h.boxStart[0])*Math.abs(j)))}}else h.boxEnabled?(x=h.boxStart[0]!==h.boxEnd[0],R=h.boxStart[1]!==h.boxEnd[1],x||R?(x&&(k(0,h.boxStart[0],h.boxEnd[0]),p.xaxis.autorange=!1),R&&(k(1,h.boxStart[1],h.boxEnd[1]),p.yaxis.autorange=!1),p.relayoutCallback()):p.glplot.setDirty(),h.boxEnabled=!1,h.boxInited=!1):h.boxInited&&(h.boxInited=!1);break;case"pan":h.boxEnabled=!1,h.boxInited=!1,_?(h.panning||(h.dragStart[0]=S,h.dragStart[1]=A),Math.abs(h.dragStart[0]-S).999&&(C="turntable"):C="turntable")}else C="turntable";v("dragmode",C),v("hovermode",_.getDfltFromLayout("hovermode"))}d.exports=function(h,m,v){var _=m._basePlotModules.length>1;O(h,m,v,{type:a,attributes:y,handleDefaults:u,fullLayout:m,font:m.font,fullData:v,getDfltFromLayout:function(S){if(!_)return c.validate(h[S],y[S])?h[S]:void 0},autotypenumbersDflt:m.autotypenumbers,paper_bgcolor:m.paper_bgcolor,calendar:m.calendar})}},346:function(d,l,n){var c=n(86140),b=n(86968).u,i=n(92880).extendFlat,O=n(3400).counterRegex;function w(y,p,a){return{x:{valType:"number",dflt:y,editType:"camera"},y:{valType:"number",dflt:p,editType:"camera"},z:{valType:"number",dflt:a,editType:"camera"},editType:"camera"}}d.exports={_arrayAttrRegexps:[O("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:i(w(0,0,1),{}),center:i(w(0,0,0),{}),eye:i(w(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:b({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:c,yaxis:c,zaxis:c,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(d,l,n){var c=n(43080),b=["xaxis","yaxis","zaxis"];function i(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}i.prototype.merge=function(O){for(var w=0;w<3;++w){var y=O[b[w]];y.visible?(this.enabled[w]=y.showspikes,this.colors[w]=c(y.spikecolor),this.drawSides[w]=y.spikesides,this.lineWidth[w]=y.spikethickness):(this.enabled[w]=!1,this.drawSides[w]=!1)}},d.exports=function(O){var w=new i;return w.merge(O),w}},87152:function(d,l,n){d.exports=function(w){for(var y=w.axesOptions,p=w.glplot.axesPixels,a=w.fullSceneLayout,u=[[],[],[]],h=0;h<3;++h){var m=a[i[h]];if(m._length=(p[h].hi-p[h].lo)*p[h].pixelsPerDataUnit/w.dataScale[h],Math.abs(m._length)===1/0||isNaN(m._length))u[h]=[];else{m._input_range=m.range.slice(),m.range[0]=p[h].lo/w.dataScale[h],m.range[1]=p[h].hi/w.dataScale[h],m._m=1/(w.dataScale[h]*p[h].pixelsPerDataUnit),m.range[0]===m.range[1]&&(m.range[0]-=1,m.range[1]+=1);var v=m.tickmode;if(m.tickmode==="auto"){m.tickmode="linear";var _=m.nticks||b.constrain(m._length/40,4,9);c.autoTicks(m,Math.abs(m.range[1]-m.range[0])/_)}for(var S=c.calcTicks(m,{msUTC:!0}),A=0;A/g," "));u[h]=S,m.tickmode=v}}for(y.ticks=u,h=0;h<3;++h)for(O[h]=.5*(w.glplot.bounds[0][h]+w.glplot.bounds[1][h]),A=0;A<2;++A)y.bounds[A][h]=w.glplot.bounds[A][h];w.contourLevels=function(x){for(var R=new Array(3),M=0;M<3;++M){for(var T=x[M],E=new Array(T.length),C=0;CX.deltaY?1.1:.9090909090909091,W=z.glplot.getAspectratio();z.glplot.setAspectratio({x:te*W.x,y:te*W.y,z:te*W.z})}U(z)}},!!p&&{passive:!1}),z.glplot.canvas.addEventListener("mousemove",function(){if(z.fullSceneLayout.dragmode!==!1&&z.camera.mouseListener.buttons!==0){var X=j();z.graphDiv.emit("plotly_relayouting",X)}}),z.staticMode||z.glplot.canvas.addEventListener("webglcontextlost",function(X){$&&$.emit&&$.emit("plotly_webglcontextlost",{event:X,layer:z.id})},!1)),z.glplot.oncontextloss=function(){z.recoverContext()},z.glplot.onrender=function(){z.render()},!0},L.render=function(){var z,$=this,Q=$.graphDiv,j=$.svgContainer,U=$.container.getBoundingClientRect();Q._fullLayout._calcInverseTransform(Q);var X=Q._fullLayout._invScaleX,te=Q._fullLayout._invScaleY,W=U.width*X,K=U.height*te;j.setAttributeNS(null,"viewBox","0 0 "+W+" "+K),j.setAttributeNS(null,"width",W),j.setAttributeNS(null,"height",K),M($),$.glplot.axes.update($.axesOptions);for(var oe=Object.keys($.traces),q=null,Y=$.glplot.selection,ee=0;ee")):z.type==="isosurface"||z.type==="volume"?(de.valueLabel=m.hoverLabelText($._mockAxis,$._mockAxis.d2l(Y.traceCoordinate[3]),z.valuehoverformat),Se.push("value: "+de.valueLabel),Y.textLabel&&Se.push(Y.textLabel),se=Se.join("
")):se=Y.textLabel;var Te={x:Y.traceCoordinate[0],y:Y.traceCoordinate[1],z:Y.traceCoordinate[2],data:ae._input,fullData:ae,curveNumber:ae.index,pointNumber:ce};v.appendArrayPointValue(Te,ae,ce),z._module.eventData&&(Te=ae._module.eventData(Te,Y,ae,{},ce));var Pe={points:[Te]};if($.fullSceneLayout.hovermode){var Ie=[];v.loneHover({trace:ae,x:(.5+.5*he[0]/he[3])*W,y:(.5-.5*he[1]/he[3])*K,xLabel:de.xLabel,yLabel:de.yLabel,zLabel:de.zLabel,text:se,name:q.name,color:v.castHoverOption(ae,ce,"bgcolor")||q.color,borderColor:v.castHoverOption(ae,ce,"bordercolor"),fontFamily:v.castHoverOption(ae,ce,"font.family"),fontSize:v.castHoverOption(ae,ce,"font.size"),fontColor:v.castHoverOption(ae,ce,"font.color"),nameLength:v.castHoverOption(ae,ce,"namelength"),textAlign:v.castHoverOption(ae,ce,"align"),hovertemplate:u.castOption(ae,ce,"hovertemplate"),hovertemplateLabels:u.extendFlat({},Te,de),eventData:[Te]},{container:j,gd:Q,inOut_bbox:Ie}),Te.bbox=Ie[0]}Y.distance<5&&(Y.buttons||E)?Q.emit("plotly_click",Pe):Q.emit("plotly_hover",Pe),this.oldEventData=Pe}else v.loneUnhover(j),this.oldEventData&&Q.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;$.drawAnnotations($)},L.recoverContext=function(){var z=this;z.glplot.dispose();var $=function(){z.glplot.gl.isContextLost()?requestAnimationFrame($):z.initializeGLPlot()?z.plot.apply(z,z.plotArgs):u.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame($)};var k=["xaxis","yaxis","zaxis"];function I(z,$,Q){for(var j=z.fullSceneLayout,U=0;U<3;U++){var X=k[U],te=X.charAt(0),W=j[X],K=$[te],oe=$[te+"calendar"],q=$["_"+te+"length"];if(u.isArrayOrTypedArray(K))for(var Y,ee=0;ee<(q||K.length);ee++)if(u.isArrayOrTypedArray(K[ee]))for(var me=0;meae[1][te])ae[0][te]=-1,ae[1][te]=1;else{var He=ae[1][te]-ae[0][te];ae[0][te]-=He/32,ae[1][te]+=He/32}if(ve=[ae[0][te],ae[1][te]],ve=T(ve,K),ae[0][te]=ve[0],ae[1][te]=ve[1],K.isReversed()){var Ve=ae[0][te];ae[0][te]=ae[1][te],ae[1][te]=Ve}}else ve=K.range,ae[0][te]=K.r2l(ve[0]),ae[1][te]=K.r2l(ve[1]);ae[0][te]===ae[1][te]&&(ae[0][te]-=1,ae[1][te]+=1),ce[te]=ae[1][te]-ae[0][te],K.range=[ae[0][te],ae[1][te]],K.limitRange(),j.glplot.setBounds(te,{min:K.range[0]*me[te],max:K.range[1]*me[te]})}var $e=q.aspectmode;if($e==="cube")se=[1,1,1];else if($e==="manual"){var Oe=q.aspectratio;se=[Oe.x,Oe.y,Oe.z]}else{if($e!=="auto"&&$e!=="data")throw new Error("scene.js aspectRatio was not one of the enumerated types");var ke=[1,1,1];for(te=0;te<3;++te){var Le=de[oe=(K=q[k[te]]).type];ke[te]=Math.pow(Le.acc,1/Le.count)/me[te]}se=$e==="data"||Math.max.apply(null,ke)/Math.min.apply(null,ke)<=4?ke:[1,1,1]}q.aspectratio.x=Y.aspectratio.x=se[0],q.aspectratio.y=Y.aspectratio.y=se[1],q.aspectratio.z=Y.aspectratio.z=se[2],j.glplot.setAspectratio(q.aspectratio),j.viewInitial.aspectratio||(j.viewInitial.aspectratio={x:q.aspectratio.x,y:q.aspectratio.y,z:q.aspectratio.z}),j.viewInitial.aspectmode||(j.viewInitial.aspectmode=q.aspectmode);var We=q.domain||null,Ue=$._size||null;if(We&&Ue){var Ze=j.container.style;Ze.position="absolute",Ze.left=Ue.l+We.x[0]*Ue.w+"px",Ze.top=Ue.t+(1-We.y[1])*Ue.h+"px",Ze.width=Ue.w*(We.x[1]-We.x[0])+"px",Ze.height=Ue.h*(We.y[1]-We.y[0])+"px"}j.glplot.redraw()}},L.destroy=function(){var z=this;z.glplot&&(z.camera.mouseListener.enabled=!1,z.container.removeEventListener("wheel",z.camera.wheelListener),z.camera=null,z.glplot.dispose(),z.container.parentNode.removeChild(z.container),z.glplot=null)},L.getCamera=function(){var z,$=this;return $.camera.view.recalcMatrix($.camera.view.lastT()),{up:{x:(z=$.camera).up[0],y:z.up[1],z:z.up[2]},center:{x:z.center[0],y:z.center[1],z:z.center[2]},eye:{x:z.eye[0],y:z.eye[1],z:z.eye[2]},projection:{type:z._ortho===!0?"orthographic":"perspective"}}},L.setViewport=function(z){var $,Q=this,j=z.camera;Q.camera.lookAt.apply(this,[[($=j).eye.x,$.eye.y,$.eye.z],[$.center.x,$.center.y,$.center.z],[$.up.x,$.up.y,$.up.z]]),Q.glplot.setAspectratio(z.aspectratio),j.projection.type==="orthographic"!==Q.camera._ortho&&(Q.glplot.redraw(),Q.glplot.clearRGBA(),Q.glplot.dispose(),Q.initializeGLPlot())},L.isCameraChanged=function(z){var $=this.getCamera(),Q=u.nestedProperty(z,this.id+".camera").get();function j(W,K,oe,q){var Y=["up","center","eye"],ee=["x","y","z"];return K[Y[oe]]&&W[Y[oe]][ee[q]]===K[Y[oe]][ee[q]]}var U=!1;if(Q===void 0)U=!0;else{for(var X=0;X<3;X++)for(var te=0;te<3;te++)if(!j($,Q,X,te)){U=!0;break}(!Q.projection||$.projection&&$.projection.type!==Q.projection.type)&&(U=!0)}return U},L.isAspectChanged=function(z){var $=this.glplot.getAspectratio(),Q=u.nestedProperty(z,this.id+".aspectratio").get();return Q===void 0||Q.x!==$.x||Q.y!==$.y||Q.z!==$.z},L.saveLayout=function(z){var $,Q,j,U,X,te,W=this,K=W.fullLayout,oe=W.isCameraChanged(z),q=W.isAspectChanged(z),Y=oe||q;if(Y){var ee={};oe&&($=W.getCamera(),j=(Q=u.nestedProperty(z,W.id+".camera")).get(),ee[W.id+".camera"]=j),q&&(U=W.glplot.getAspectratio(),te=(X=u.nestedProperty(z,W.id+".aspectratio")).get(),ee[W.id+".aspectratio"]=te),a.call("_storeDirectGUIEdit",z,K._preGUI,ee),oe&&(Q.set($),u.nestedProperty(K,W.id+".camera").set($)),q&&(X.set(U),u.nestedProperty(K,W.id+".aspectratio").set(U),W.glplot.redraw())}return Y},L.updateFx=function(z,$){var Q=this,j=Q.camera;if(j)if(z==="orbit")j.mode="orbit",j.keyBindingMode="rotate";else if(z==="turntable"){j.up=[0,0,1],j.mode="turntable",j.keyBindingMode="rotate";var U=Q.graphDiv,X=U._fullLayout,te=Q.fullSceneLayout.camera,W=te.up.x,K=te.up.y,oe=te.up.z;if(oe/Math.sqrt(W*W+K*K+oe*oe)<.999){var q=Q.id+".camera.up",Y={x:0,y:0,z:1},ee={};ee[q]=Y;var me=U.layout;a.call("_storeDirectGUIEdit",me,X._preGUI,ee),te.up=Y,u.nestedProperty(me,q).set(Y)}}else j.keyBindingMode=z;Q.fullSceneLayout.hovermode=$},L.toImage=function(z){var $=this;z||(z="png"),$.staticMode&&$.container.appendChild(c),$.glplot.redraw();var Q=$.glplot.gl,j=Q.drawingBufferWidth,U=Q.drawingBufferHeight;Q.bindFramebuffer(Q.FRAMEBUFFER,null);var X=new Uint8Array(j*U*4);Q.readPixels(0,0,j,U,Q.RGBA,Q.UNSIGNED_BYTE,X),function(q,Y,ee){for(var me=0,he=ee-1;me0)for(var ce=255/ae,de=0;de<3;++de)q[se+de]=Math.min(ce*q[se+de],255)}}(X,j,U);var te=document.createElement("canvas");te.width=j,te.height=U;var W,K=te.getContext("2d",{willReadFrequently:!0}),oe=K.createImageData(j,U);switch(oe.data.set(X),K.putImageData(oe,0,0),z){case"jpeg":W=te.toDataURL("image/jpeg");break;case"webp":W=te.toDataURL("image/webp");break;default:W=te.toDataURL("image/png")}return $.staticMode&&$.container.removeChild(c),W},L.setConvert=function(){for(var z=0;z<3;z++){var $=this.fullSceneLayout[k[z]];m.setConvert($,this.fullLayout),$.setScale=u.noop}},L.make4thDimension=function(){var z=this,$=z.graphDiv._fullLayout;z._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},m.setConvert(z._mockAxis,$)},d.exports=C},52094:function(d){d.exports=function(l,n,c,b){b=b||l.length;for(var i=new Array(b),O=0;OOpenStreetMap contributors',O=['© Carto',i].join(" "),w=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),y={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:i,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:O,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:O,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},p=c(y);d.exports={requiredVersion:b,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:y,styleValuesNonMapbox:p,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+b+"."].join(` +`+q.year}return Q(te,X,K,oe)};var U=3*u;l.incrementMonth=function(X,te,W){W=T(W)&&W;var K=y(X,u);if(X=Math.round(X-K),W)try{var oe=Math.round(X/u)+_,q=S.getComponentMethod("calendars","getCal")(W),Y=q.fromJD(oe);return te%12?q.add(Y,te,"m"):q.add(Y,te/12,"y"),(Y.toJD()-_)*u+K}catch{w.error("invalid ms "+X+" in calendar "+W)}var ee=new Date(X+U);return ee.setUTCMonth(ee.getUTCMonth()+te)+K-U},l.findExactDates=function(X,te){for(var W,K,oe=0,q=0,Y=0,ee=0,me=T(te)&&S.getComponentMethod("calendars","getCal")(te),he=0;he0&&k[I+1][0]<0)return I;return null}switch(A=C==="RUS"||C==="FJI"?function(k){var I;if(D(k)===null)I=k;else for(I=new Array(k.length),M=0;MI?z[$++]=[k[M][0]+360,k[M][1]]:M===I?(z[$++]=k[M],z[$++]=[k[M][0],-90]):z[$++]=k[M];var Q=h.tester(z);Q.pts.pop(),L.push(Q)}:function(k){L.push(h.tester(k))},T.type){case"MultiPolygon":for(x=0;xW&&(W=q,U=oe)}else U=X;return O.default(U).geometry.coordinates}(Q),z.fIn=k,z.fOut=Q,T.push(Q)}else p.log(["Location",z.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete M[I]}switch(x.type){case"FeatureCollection":var L=x.features;for(R=0;R100?(clearInterval(I),D("Unexpected error while fetching from "+C)):void k++},50)})}for(var T=0;T0&&(O.push(w),w=[])}return w.length>0&&O.push(w),O},l.makeLine=function(b){return b.length===1?{type:"LineString",coordinates:b[0]}:{type:"MultiLineString",coordinates:b}},l.makePolygon=function(b){if(b.length===1)return{type:"Polygon",coordinates:b};for(var i=new Array(b.length),O=0;O1||L<0||L>1?null:{x:p+A*L,y:a+M*L}}function y(p,a,u,h,m){var v=h*p+m*a;if(v<0)return h*h+m*m;if(v>u){var _=h-p,S=m-a;return _*_+S*S}var A=h*a-m*p;return A*A/u}l.segmentsIntersect=w,l.segmentDistance=function(p,a,u,h,m,v,_,S){if(w(p,a,u,h,m,v,_,S))return 0;var A=u-p,x=h-a,R=_-m,M=S-v,T=A*A+x*x,E=R*R+M*M,C=Math.min(y(A,x,T,m-p,v-a),y(A,x,T,_-p,S-a),y(R,M,E,p-m,a-v),y(R,M,E,u-m,h-v));return Math.sqrt(C)},l.getTextLocation=function(p,a,u,h){if(p===b&&h===i||(c={},b=p,i=h),c[u])return c[u];var m=p.getPointAtLength(O(u-h/2,a)),v=p.getPointAtLength(O(u+h/2,a)),_=Math.atan((v.y-m.y)/(v.x-m.x)),S=p.getPointAtLength(O(u,a)),A={x:(4*S.x+m.x+v.x)/6,y:(4*S.y+m.y+v.y)/6,theta:_};return c[u]=A,A},l.clearLocationCache=function(){b=null},l.getVisibleSegment=function(p,a,u){var h,m,v=a.left,_=a.right,S=a.top,A=a.bottom,x=0,R=p.getTotalLength(),M=R;function T(C){var L=p.getPointAtLength(C);C===0?h=L:C===R&&(m=L);var D=L.x_?L.x-_:0,k=L.yA?L.y-A:0;return Math.sqrt(D*D+k*k)}for(var E=T(x);E;){if((x+=E+u)>M)return;E=T(x)}for(E=T(M);E;){if(x>(M-=E+u))return;E=T(M)}return{min:x,max:M,len:M-x,total:R,isClosed:x===0&&M===R&&Math.abs(h.x-m.x)<.1&&Math.abs(h.y-m.y)<.1}},l.findPointOnPath=function(p,a,u,h){for(var m,v,_,S=(h=h||{}).pathLength||p.getTotalLength(),A=h.tolerance||.001,x=h.iterationLimit||30,R=p.getPointAtLength(0)[u]>p.getPointAtLength(S)[u]?-1:1,M=0,T=0,E=S;M0?E=m:T=m,M++}return v}},33040:function(d,l,n){var c=n(38248),b=n(49760),i=n(72160),O=n(8932),w=n(22548).defaultLine,y=n(38116).isArrayOrTypedArray,p=i(w);function a(m,v){var _=m;return _[3]*=v,_}function u(m){if(c(m))return p;var v=i(m);return v.length?v:p}function h(m){return c(m)?m:1}d.exports={formatColor:function(m,v,_){var S=m.color;S&&S._inputArray&&(S=S._inputArray);var A,x,R,M,T,E=y(S),C=y(v),L=O.extractOpts(m),D=[];if(A=L.colorscale!==void 0?O.makeColorScaleFuncFromTrace(m):u,x=E?function(I,z){return I[z]===void 0?p:i(A(I[z]))}:u,R=C?function(I,z){return I[z]===void 0?1:h(I[z])}:h,E||C)for(var k=0;k<_;k++)M=x(S,k),T=R(v,k),D[k]=a(M,T);else D=a(i(S),v);return D},parseColorScale:function(m){var v=O.extractOpts(m),_=v.colorscale;return v.reversescale&&(_=O.flipScale(v.colorscale)),_.map(function(S){var A=S[0],x=b(S[1]).toRgb();return{index:A,rgb:[x.r,x.g,x.b,x.a]}})}}},71688:function(d,l,n){var c=n(35536);function b(i){return[i]}d.exports={keyFun:function(i){return i.key},repeat:b,descend:c,wrap:b,unwrap:function(i){return i[0]}}},35536:function(d){d.exports=function(l){return l}},1396:function(d){d.exports=function(l,n){if(!n)return l;var c=1/Math.abs(n),b=c>1?(c*l+c*n)/c:l+n,i=String(b).length;if(i>16){var O=String(n).length;if(i>=String(l).length+O){var w=parseFloat(b).toPrecision(12);w.indexOf("e+")===-1&&(b=+w)}}return b}},3400:function(d,l,n){var c=n(33428),b=n(94336).E9,i=n(57624).E9,O=n(38248),w=n(39032),y=w.FP_SAFE,p=-y,a=w.BADNUM,u=d.exports={};u.adjustFormat=function(ce){return!ce||/^\d[.]\df/.test(ce)||/[.]\d%/.test(ce)?ce:ce==="0.f"?"~f":/^\d%/.test(ce)?"~%":/^\ds/.test(ce)?"~s":!/^[~,.0$]/.test(ce)&&/[&fps]/.test(ce)?"~"+ce:ce};var h={};u.warnBadFormat=function(ce){var de=String(ce);h[de]||(h[de]=1,u.warn('encountered bad format: "'+de+'"'))},u.noFormat=function(ce){return String(ce)},u.numberFormat=function(ce){var de;try{de=i(u.adjustFormat(ce))}catch{return u.warnBadFormat(ce),u.noFormat}return de},u.nestedProperty=n(22296),u.keyedContainer=n(37804),u.relativeAttr=n(23193),u.isPlainObject=n(63620),u.toLogRange=n(36896),u.relinkPrivateKeys=n(51528);var m=n(38116);u.isArrayBuffer=m.isArrayBuffer,u.isTypedArray=m.isTypedArray,u.isArrayOrTypedArray=m.isArrayOrTypedArray,u.isArray1D=m.isArray1D,u.ensureArray=m.ensureArray,u.concat=m.concat,u.maxRowLength=m.maxRowLength,u.minRowLength=m.minRowLength;var v=n(20435);u.mod=v.mod,u.modHalf=v.modHalf;var _=n(63064);u.valObjectMeta=_.valObjectMeta,u.coerce=_.coerce,u.coerce2=_.coerce2,u.coerceFont=_.coerceFont,u.coercePattern=_.coercePattern,u.coerceHoverinfo=_.coerceHoverinfo,u.coerceSelectionMarkerOpacity=_.coerceSelectionMarkerOpacity,u.validate=_.validate;var S=n(67555);u.dateTime2ms=S.dateTime2ms,u.isDateTime=S.isDateTime,u.ms2DateTime=S.ms2DateTime,u.ms2DateTimeLocal=S.ms2DateTimeLocal,u.cleanDate=S.cleanDate,u.isJSDate=S.isJSDate,u.formatDate=S.formatDate,u.incrementMonth=S.incrementMonth,u.dateTick0=S.dateTick0,u.dfltRange=S.dfltRange,u.findExactDates=S.findExactDates,u.MIN_MS=S.MIN_MS,u.MAX_MS=S.MAX_MS;var A=n(14952);u.findBin=A.findBin,u.sorterAsc=A.sorterAsc,u.sorterDes=A.sorterDes,u.distinctVals=A.distinctVals,u.roundUp=A.roundUp,u.sort=A.sort,u.findIndexOfMin=A.findIndexOfMin,u.sortObjectKeys=n(95376);var x=n(63084);u.aggNums=x.aggNums,u.len=x.len,u.mean=x.mean,u.median=x.median,u.midRange=x.midRange,u.variance=x.variance,u.stdev=x.stdev,u.interp=x.interp;var R=n(52248);u.init2dArray=R.init2dArray,u.transposeRagged=R.transposeRagged,u.dot=R.dot,u.translationMatrix=R.translationMatrix,u.rotationMatrix=R.rotationMatrix,u.rotationXYMatrix=R.rotationXYMatrix,u.apply3DTransform=R.apply3DTransform,u.apply2DTransform=R.apply2DTransform,u.apply2DTransform2=R.apply2DTransform2,u.convertCssMatrix=R.convertCssMatrix,u.inverseTransformMatrix=R.inverseTransformMatrix;var M=n(11864);u.deg2rad=M.deg2rad,u.rad2deg=M.rad2deg,u.angleDelta=M.angleDelta,u.angleDist=M.angleDist,u.isFullCircle=M.isFullCircle,u.isAngleInsideSector=M.isAngleInsideSector,u.isPtInsideSector=M.isPtInsideSector,u.pathArc=M.pathArc,u.pathSector=M.pathSector,u.pathAnnulus=M.pathAnnulus;var T=n(98308);u.isLeftAnchor=T.isLeftAnchor,u.isCenterAnchor=T.isCenterAnchor,u.isRightAnchor=T.isRightAnchor,u.isTopAnchor=T.isTopAnchor,u.isMiddleAnchor=T.isMiddleAnchor,u.isBottomAnchor=T.isBottomAnchor;var E=n(92348);u.segmentsIntersect=E.segmentsIntersect,u.segmentDistance=E.segmentDistance,u.getTextLocation=E.getTextLocation,u.clearLocationCache=E.clearLocationCache,u.getVisibleSegment=E.getVisibleSegment,u.findPointOnPath=E.findPointOnPath;var C=n(92880);u.extendFlat=C.extendFlat,u.extendDeep=C.extendDeep,u.extendDeepAll=C.extendDeepAll,u.extendDeepNoArrays=C.extendDeepNoArrays;var L=n(24248);u.log=L.log,u.warn=L.warn,u.error=L.error;var D=n(53756);u.counterRegex=D.counter;var k=n(91200);u.throttle=k.throttle,u.throttleDone=k.done,u.clearThrottle=k.clear;var I=n(52200);function z(ce){var de={};for(var ve in ce)for(var ye=ce[ve],_e=0;_ey||ce=de)&&O(ce)&&ce>=0&&ce%1==0},u.noop=n(16628),u.identity=n(35536),u.repeat=function(ce,de){for(var ve=new Array(de),ye=0;yeve?Math.max(ve,Math.min(de,ce)):Math.max(de,Math.min(ve,ce))},u.bBoxIntersect=function(ce,de,ve){return ve=ve||0,ce.left<=de.right+ve&&de.left<=ce.right+ve&&ce.top<=de.bottom+ve&&de.top<=ce.bottom+ve},u.simpleMap=function(ce,de,ve,ye,_e){for(var Se=ce.length,Te=new Array(Se),Pe=0;Pe=Math.pow(2,ve)?_e>10?(u.warn("randstr failed uniqueness"),Ie):ce(de,ve,ye,(_e||0)+1):Ie},u.OptionControl=function(ce,de){ce||(ce={}),de||(de="opt");var ve={optionList:[],_newoption:function(ye){ye[de]=ce,ve[ye.name]=ye,ve.optionList.push(ye)}};return ve["_"+de]=ce,ve},u.smooth=function(ce,de){if((de=Math.round(de)||0)<2)return ce;var ve,ye,_e,Se,Te=ce.length,Pe=2*Te,Ie=2*de-1,ze=new Array(Ie),De=new Array(Te);for(ve=0;ve=Pe&&(_e-=Pe*Math.floor(_e/Pe)),_e<0?_e=-1-_e:_e>=Te&&(_e=Pe-1-_e),Se+=ce[_e]*ze[ye];De[ve]=Se}return De},u.syncOrAsync=function(ce,de,ve){var ye;function _e(){return u.syncOrAsync(ce,de,ve)}for(;ce.length;)if((ye=(0,ce.splice(0,1)[0])(de))&&ye.then)return ye.then(_e);return ve&&ve(de)},u.stripTrailingSlash=function(ce){return ce.substr(-1)==="/"?ce.substr(0,ce.length-1):ce},u.noneOrAll=function(ce,de,ve){if(ce){var ye,_e=!1,Se=!0;for(ye=0;ye0?_e:0})},u.fillArray=function(ce,de,ve,ye){if(ye=ye||u.identity,u.isArrayOrTypedArray(ce))for(var _e=0;_e1?_e+Te[1]:"";if(Se&&(Te.length>1||Pe.length>4||ve))for(;ye.test(Pe);)Pe=Pe.replace(ye,"$1"+Se+"$2");return Pe+Ie},u.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;u.templateString=function(ce,de){var ve={};return ce.replace(u.TEMPLATE_STRING_REGEX,function(ye,_e){var Se;return W.test(_e)?Se=de[_e]:(ve[_e]=ve[_e]||u.nestedProperty(de,_e).get,Se=ve[_e]()),u.isValidTextValue(Se)?Se:""})};var K={max:10,count:0,name:"hovertemplate"};u.hovertemplateString=function(){return me.apply(K,arguments)};var oe={max:10,count:0,name:"texttemplate"};u.texttemplateString=function(){return me.apply(oe,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,Y={max:10,count:0,name:"texttemplate",parseMultDiv:!0};u.texttemplateStringForShapes=function(){return me.apply(Y,arguments)};var ee=/^[:|\|]/;function me(ce,de,ve){var ye=this,_e=arguments;de||(de={});var Se={};return ce.replace(u.TEMPLATE_STRING_REGEX,function(Te,Pe,Ie){var ze=Pe==="_xother"||Pe==="_yother",De=Pe==="_xother_"||Pe==="_yother_",He=Pe==="xother_"||Pe==="yother_",Ve=Pe==="xother"||Pe==="yother"||ze||He||De,$e=Pe;(ze||De)&&($e=$e.substring(1)),(He||De)&&($e=$e.substring(0,$e.length-1));var Oe,ke,Le,We=null,Ue=null;if(ye.parseMultDiv){var Ze=function(Ne){var je=Ne.match(q);return je?{key:je[1],op:je[2],number:Number(je[3])}:{key:Ne,op:null,number:null}}($e);$e=Ze.key,We=Ze.op,Ue=Ze.number}if(Ve){if((Oe=de[$e])===void 0)return""}else for(Le=3;Le<_e.length;Le++)if(ke=_e[Le]){if(ke.hasOwnProperty($e)){Oe=ke[$e];break}if(W.test($e)||(Oe=u.nestedProperty(ke,$e).get(),(Oe=Se[$e]||u.nestedProperty(ke,$e).get())&&(Se[$e]=Oe)),Oe!==void 0)break}if(Oe!==void 0&&(We==="*"&&(Oe*=Ue),We==="/"&&(Oe/=Ue)),Oe===void 0&&ye)return ye.count=48&&Te<=57,ze=Pe>=48&&Pe<=57;if(Ie&&(ye=10*ye+Te-48),ze&&(_e=10*_e+Pe-48),!Ie||!ze){if(ye!==_e)return ye-_e;if(Te!==Pe)return Te-Pe}}return _e-ye};var he=2e9;u.seedPseudoRandom=function(){he=2e9},u.pseudoRandom=function(){var ce=he;return he=(69069*he+1)%4294967296,Math.abs(he-ce)<429496729?u.pseudoRandom():he/4294967296},u.fillText=function(ce,de,ve){var ye=Array.isArray(ve)?function(Te){ve.push(Te)}:function(Te){ve.text=Te},_e=u.extractOption(ce,de,"htx","hovertext");if(u.isValidTextValue(_e))return ye(_e);var Se=u.extractOption(ce,de,"tx","text");return u.isValidTextValue(Se)?ye(Se):void 0},u.isValidTextValue=function(ce){return ce||ce===0},u.formatPercent=function(ce,de){de=de||0;for(var ve=(Math.round(100*ce*Math.pow(10,de))*Math.pow(.1,de)).toFixed(de)+"%",ye=0;ye1&&(ze=1):ze=0,u.strTranslate(_e-ze*(ve+Te),Se-ze*(ye+Pe))+u.strScale(ze)+(Ie?"rotate("+Ie+(de?"":" "+ve+" "+ye)+")":"")},u.setTransormAndDisplay=function(ce,de){ce.attr("transform",u.getTextTransform(de)),ce.style("display",de.scale?null:"none")},u.ensureUniformFontSize=function(ce,de){var ve=u.extendFlat({},de);return ve.size=Math.max(de.size,ce._fullLayout.uniformtext.minsize||0),ve},u.join2=function(ce,de,ve){var ye=ce.length;return ye>1?ce.slice(0,-1).join(de)+ve+ce[ye-1]:ce.join(de)},u.bigFont=function(ce){return Math.round(1.2*ce)};var se=u.getFirefoxVersion(),ae=se!==null&&se<86;u.getPositionFromD3Event=function(){return ae?[c.event.layerX,c.event.layerY]:[c.event.offsetX,c.event.offsetY]}},63620:function(d){d.exports=function(l){return window&&window.process&&window.process.versions?Object.prototype.toString.call(l)==="[object Object]":Object.prototype.toString.call(l)==="[object Object]"&&Object.getPrototypeOf(l).hasOwnProperty("hasOwnProperty")}},37804:function(d,l,n){var c=n(22296),b=/^\w*$/;d.exports=function(i,O,w,y){var p,a,u;w=w||"name",y=y||"value";var h={};O&&O.length?(u=c(i,O),a=u.get()):a=i,O=O||"";var m={};if(a)for(p=0;p2)return h[A]=2|h[A],_.set(S,null);if(v){for(p=A;p1){var w=["LOG:"];for(O=0;O1){var y=[];for(O=0;O"),"long")}},i.warn=function(){var O;if(c.logging>0){var w=["WARN:"];for(O=0;O0){var y=[];for(O=0;O"),"stick")}},i.error=function(){var O;if(c.logging>0){var w=["ERROR:"];for(O=0;O0){var y=[];for(O=0;O"),"stick")}}},30988:function(d,l,n){var c=n(33428);d.exports=function(b,i,O){var w=b.selectAll("g."+O.replace(/\s/g,".")).data(i,function(p){return p[0].trace.uid});w.exit().remove(),w.enter().append("g").attr("class",O),w.order();var y=b.classed("rangeplot")?"nodeRangePlot3":"node3";return w.each(function(p){p[0][y]=c.select(this)}),w}},52248:function(d,l,n){var c=n(36524);l.init2dArray=function(b,i){for(var O=new Array(b),w=0;wn/2?l-Math.round(l/n)*n:l}}},22296:function(d,l,n){var c=n(38248),b=n(38116).isArrayOrTypedArray;function i(h,m){return function(){var v,_,S,A,x,R=h;for(A=0;A/g),_=0;_a||M===b||Mh||x&&m(A))}:function(A,x){var R=A[0],M=A[1];if(R===b||Ra||M===b||Mh)return!1;var T,E,C,L,D,k=y.length,I=y[0][0],z=y[0][1],$=0;for(T=1;TMath.max(E,I)||M>Math.max(C,z)))if(M_||Math.abs(c(u,A))>p)return!0;return!1},i.filter=function(O,w){var y=[O[0]],p=0,a=0;function u(h){O.push(h);var m=y.length,v=p;y.splice(a+1);for(var _=v+1;_1&&u(O.pop()),{addPt:u,raw:O,filtered:y}}},5048:function(d,l,n){var c=n(16576),b=n(28624);d.exports=function(i,O,w){var y=i._fullLayout,p=!0;return y._glcanvas.each(function(a){if(a.regl)a.regl.preloadCachedCode(w);else if(!a.pick||y._has("parcoords")){try{a.regl=b({canvas:this,attributes:{antialias:!a.pick,preserveDrawingBuffer:!0},pixelRatio:i._context.plotGlPixelRatio||n.g.devicePixelRatio,extensions:O||[],cachedCode:w||{}})}catch{p=!1}a.regl||(p=!1),p&&this.addEventListener("webglcontextlost",function(u){i&&i.emit&&i.emit("plotly_webglcontextlost",{event:u,layer:a.key})},!1)}}),p||c({container:y._glcontainer.node()}),p}},34296:function(d,l,n){var c=n(38248),b=n(25928);d.exports=function(i){var O;if(typeof(O=i&&i.hasOwnProperty("userAgent")?i.userAgent:function(){var m;return typeof navigator<"u"&&(m=navigator.userAgent),m&&m.headers&&typeof m.headers["user-agent"]=="string"&&(m=m.headers["user-agent"]),m}())!="string")return!0;var w=b({ua:{headers:{"user-agent":O}},tablet:!0,featureDetect:!1});if(!w){for(var y=O.split(" "),p=1;p-1;a--){var u=y[a];if(u.substr(0,8)==="Version/"){var h=u.substr(8).split(".")[0];if(c(h)&&(h=+h),h>=13)return!0}}}return w}},52416:function(d){d.exports=function(l,n){if(n instanceof RegExp){for(var c=n.toString(),b=0;bb.queueLength&&(O.undoQueue.queue.shift(),O.undoQueue.index--))},startSequence:function(O){O.undoQueue=O.undoQueue||{index:0,queue:[],sequence:!1},O.undoQueue.sequence=!0,O.undoQueue.beginSequence=!0},stopSequence:function(O){O.undoQueue=O.undoQueue||{index:0,queue:[],sequence:!1},O.undoQueue.sequence=!1,O.undoQueue.beginSequence=!1},undo:function(O){var w,y;if(!(O.undoQueue===void 0||isNaN(O.undoQueue.index)||O.undoQueue.index<=0)){for(O.undoQueue.index--,w=O.undoQueue.queue[O.undoQueue.index],O.undoQueue.inSequence=!0,y=0;y=O.undoQueue.queue.length)){for(w=O.undoQueue.queue[O.undoQueue.index],O.undoQueue.inSequence=!0,y=0;ym}function u(h,m){return h>=m}l.findBin=function(h,m,v){if(c(m.start))return v?Math.ceil((h-m.start)/m.size-w)-1:Math.floor((h-m.start)/m.size+w);var _,S,A=0,x=m.length,R=0,M=x>1?(m[x-1]-m[0])/(x-1):1;for(S=M>=0?v?y:p:v?u:a,h+=M*w*(v?-1:1)*(M>=0?1:-1);A90&&b.log("Long binary search..."),A-1},l.sorterAsc=function(h,m){return h-m},l.sorterDes=function(h,m){return m-h},l.distinctVals=function(h){var m,v=h.slice();for(v.sort(l.sorterAsc),m=v.length-1;m>-1&&v[m]===O;m--);for(var _,S=v[m]-v[0]||1,A=S/(m||1)/1e4,x=[],R=0;R<=m;R++){var M=v[R],T=M-_;_===void 0?(x.push(M),_=M):T>A&&(S=Math.min(S,T),x.push(M),_=M)}return{vals:x,minDiff:S}},l.roundUp=function(h,m,v){for(var _,S=0,A=m.length-1,x=0,R=v?0:1,M=v?1:0,T=v?Math.ceil:Math.floor;S0&&(_=1),v&&_)return h.sort(m)}return _?h:h.reverse()},l.findIndexOfMin=function(h,m){m=m||i;for(var v,_=1/0,S=0;Sw.length)&&(y=w.length),c(O)||(O=!1),b(w[0])){for(a=new Array(y),p=0;pi.length-1)return i[i.length-1];var w=O%1;return w*i[Math.ceil(O)]+(1-w)*i[Math.floor(O)]}},43080:function(d,l,n){var c=n(72160);d.exports=function(b){return b?c(b):[0,0,0,1]}},9188:function(d,l,n){var c=n(2264),b=n(43616),i=n(3400),O=null;d.exports=function(){if(O!==null)return O;O=!1;var w=i.isIE()||i.isSafari()||i.isIOS();if(window.navigator.userAgent&&!w){var y=Array.from(c.CSS_DECLARATIONS).reverse(),p=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof p=="function")O=y.some(function(h){return p.apply(null,h)});else{var a=b.tester.append("image").attr("style",c.STYLE),u=window.getComputedStyle(a.node()).imageRendering;O=y.some(function(h){var m=h[1];return u===m||u===m.toLowerCase()}),a.remove()}}return O}},72736:function(d,l,n){var c=n(33428),b=n(3400),i=b.strTranslate,O=n(9616),w=n(84284).LINE_SPACING,y=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;l.convertToTspans=function(X,te,W){var K=X.text(),oe=!X.attr("data-notex")&&te&&te._context.typesetMath&&typeof MathJax<"u"&&K.match(y),q=c.select(X.node().parentNode);if(!q.empty()){var Y=X.attr("class")?X.attr("class").split(" ")[0]:"text";return Y+="-math",q.selectAll("svg."+Y).remove(),q.selectAll("g."+Y+"-group").remove(),X.style("display",null).attr({"data-unformatted":K,"data-math":"N"}),oe?(te&&te._promises||[]).push(new Promise(function(me){X.style("display","none");var he=parseInt(X.node().style.fontSize,10),se={fontSize:he};(function(ae,ce,de){var ve,ye,_e,Se,Te=parseInt((MathJax.version||"").split(".")[0]);if(Te===2||Te===3){var Pe=function(){var ze="math-output-"+b.randstr({},64),De=(Se=c.select("body").append("div").attr({id:ze}).style({visibility:"hidden",position:"absolute","font-size":ce.fontSize+"px"}).text(ae.replace(p,"\\lt ").replace(a,"\\gt "))).node();return Te===2?MathJax.Hub.Typeset(De):MathJax.typeset([De])},Ie=function(){var ze=Se.select(Te===2?".MathJax_SVG":".MathJax"),De=!ze.empty()&&Se.select("svg").node();if(De){var He,Ve=De.getBoundingClientRect();He=Te===2?c.select("body").select("#MathJax_SVG_glyphs"):ze.select("defs"),de(ze,He,Ve)}else b.log("There was an error in the tex syntax.",ae),de();Se.remove()};Te===2?MathJax.Hub.Queue(function(){return ye=b.extendDeepAll({},MathJax.Hub.config),_e=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:u},displayAlign:"left"})},function(){if((ve=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},Pe,Ie,function(){if(ve!=="SVG")return MathJax.Hub.setRenderer(ve)},function(){return _e!==void 0&&(MathJax.Hub.processSectionDelay=_e),MathJax.Hub.Config(ye)}):Te===3&&(ye=b.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=u,(ve=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){Pe(),Ie(),ve!=="svg"&&(MathJax.config.startup.output=ve),MathJax.config=ye}))}else b.warn("No MathJax version:",MathJax.version)})(oe[2],se,function(ae,ce,de){q.selectAll("svg."+Y).remove(),q.selectAll("g."+Y+"-group").remove();var ve=ae&&ae.select("svg");if(!ve||!ve.node())return ee(),void me();var ye=q.append("g").classed(Y+"-group",!0).attr({"pointer-events":"none","data-unformatted":K,"data-math":"Y"});ye.node().appendChild(ve.node()),ce&&ce.node()&&ve.node().insertBefore(ce.node().cloneNode(!0),ve.node().firstChild);var _e=de.width,Se=de.height;ve.attr({class:Y,height:Se,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var Te=X.node().style.fill||"black",Pe=ve.select("g");Pe.attr({fill:Te,stroke:Te});var Ie=Pe.node().getBoundingClientRect(),ze=Ie.width,De=Ie.height;(ze>_e||De>Se)&&(ve.style("overflow","hidden"),ze=(Ie=ve.node().getBoundingClientRect()).width,De=Ie.height);var He=+X.attr("x"),Ve=+X.attr("y"),$e=-(he||X.node().getBoundingClientRect().height)/4;if(Y[0]==="y")ye.attr({transform:"rotate("+[-90,He,Ve]+")"+i(-ze/2,$e-De/2)});else if(Y[0]==="l")Ve=$e-De/2;else if(Y[0]==="a"&&Y.indexOf("atitle")!==0)He=0,Ve=$e;else{var Oe=X.attr("text-anchor");He-=ze*(Oe==="middle"?.5:Oe==="end"?1:0),Ve=Ve+$e-De/2}ve.attr({x:He,y:Ve}),W&&W.call(X,ye),me(ye)})})):ee(),X}function ee(){q.empty()||(Y=X.attr("class")+"-math",q.select("svg."+Y).remove()),X.text("").style("white-space","pre");var me=function(he,se){se=se.replace(A," ");var ae,ce=!1,de=[],ve=-1;function ye(){ve++;var Ue=document.createElementNS(O.svg,"tspan");c.select(Ue).attr({class:"line",dy:ve*w+"em"}),he.appendChild(Ue),ae=Ue;var Ze=de;if(de=[{node:Ue}],Ze.length>1)for(var Xe=1;Xe doesnt match end tag <"+Ue+">. Pretending it did match.",se),ae=de[de.length-1].node}else b.log("Ignoring unexpected end tag .",se)}M.test(se)?ye():(ae=he,de=[{node:he}]);for(var Pe=se.split(x),Ie=0;Ie|>|>)/g,u=[["$","$"],["\\(","\\)"]],h={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},m={sub:"0.3em",sup:"-0.6em"},v={sub:"-0.21em",sup:"0.42em"},_="​",S=["http:","https:","mailto:","",void 0,":"],A=l.NEWLINES=/(\r\n?|\n)/g,x=/(<[^<>]*>)/,R=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;l.BR_TAG_ALL=//gi;var T=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,E=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,C=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,L=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function D(X,te){if(!X)return null;var W=X.match(te),K=W&&(W[3]||W[4]);return K&&$(K)}var k=/(^|;)\s*color:/;l.plainText=function(X,te){for(var W=(te=te||{}).len!==void 0&&te.len!==-1?te.len:1/0,K=te.allowedTags!==void 0?te.allowedTags:["br"],oe=X.split(x),q=[],Y="",ee=0,me=0;me3?q.push(he.substr(0,de-3)+"..."):q.push(he.substr(0,de));break}Y=""}}return q.join("")};var I={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},z=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function $(X){return X.replace(z,function(te,W){return(W.charAt(0)==="#"?function(K){if(!(K>1114111)){var oe=String.fromCodePoint;if(oe)return oe(K);var q=String.fromCharCode;return K<=65535?q(K):q(55232+(K>>10),K%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):I[W])||te})}function Q(X){var te=encodeURI(decodeURI(X)),W=document.createElement("a"),K=document.createElement("a");W.href=X,K.href=te;var oe=W.protocol,q=K.protocol;return S.indexOf(oe)!==-1&&S.indexOf(q)!==-1?te:""}function j(X,te,W){var K,oe,q,Y=W.horizontalAlign,ee=W.verticalAlign||"top",me=X.node().getBoundingClientRect(),he=te.node().getBoundingClientRect();return oe=ee==="bottom"?function(){return me.bottom-K.height}:ee==="middle"?function(){return me.top+(me.height-K.height)/2}:function(){return me.top},q=Y==="right"?function(){return me.right-K.width}:Y==="center"?function(){return me.left+(me.width-K.width)/2}:function(){return me.left},function(){K=this.node().getBoundingClientRect();var se=q()-he.left,ae=oe()-he.top,ce=W.gd||{};if(W.gd){ce._fullLayout._calcInverseTransform(ce);var de=b.apply3DTransform(ce._fullLayout._invTransform)(se,ae);se=de[0],ae=de[1]}return this.style({top:ae+"px",left:se+"px","z-index":1e3}),this}}l.convertEntities=$,l.sanitizeHTML=function(X){X=X.replace(A," ");for(var te=document.createElement("p"),W=te,K=[],oe=X.split(x),q=0;qw.ts+i?a():w.timer=setTimeout(function(){a(),w.timer=null},i)},l.done=function(b){var i=n[b];return i&&i.timer?new Promise(function(O){var w=i.onDone;i.onDone=function(){w&&w(),O(),i.onDone=null}}):Promise.resolve()},l.clear=function(b){if(b)c(n[b]),delete n[b];else for(var i in n)l.clear(i)}},36896:function(d,l,n){var c=n(38248);d.exports=function(b,i){if(b>0)return Math.log(b)/Math.LN10;var O=Math.log(Math.min(i[0],i[1]))/Math.LN10;return c(O)||(O=Math.log(Math.max(i[0],i[1]))/Math.LN10-6),O}},59972:function(d,l,n){var c=d.exports={},b=n(79552).locationmodeToLayer,i=n(55712).NO;c.getTopojsonName=function(O){return[O.scope.replace(/ /g,"-"),"_",O.resolution.toString(),"m"].join("")},c.getTopojsonPath=function(O,w){return O+w+".json"},c.getTopojsonFeatures=function(O,w){var y=b[O.locationmode],p=w.objects[y];return i(w,p).features}},11680:function(d){d.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(d){d.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(d,l,n){var c=n(24040);d.exports=function(b){for(var i,O,w=c.layoutArrayContainers,y=c.layoutArrayRegexes,p=b.split("[")[0],a=0;a0&&O.log("Clearing previous rejected promises from queue."),E._promises=[]},l.cleanLayout=function(E){var C,L;E||(E={}),E.xaxis1&&(E.xaxis||(E.xaxis=E.xaxis1),delete E.xaxis1),E.yaxis1&&(E.yaxis||(E.yaxis=E.yaxis1),delete E.yaxis1),E.scene1&&(E.scene||(E.scene=E.scene1),delete E.scene1);var D=(w.subplotsRegistry.cartesian||{}).attrRegex,k=(w.subplotsRegistry.polar||{}).attrRegex,I=(w.subplotsRegistry.ternary||{}).attrRegex,z=(w.subplotsRegistry.gl3d||{}).attrRegex,$=Object.keys(E);for(C=0;C<$.length;C++){var Q=$[C];if(D&&D.test(Q)){var j=E[Q];j.anchor&&j.anchor!=="free"&&(j.anchor=a(j.anchor)),j.overlaying&&(j.overlaying=a(j.overlaying)),j.type||(j.isdate?j.type="date":j.islog?j.type="log":j.isdate===!1&&j.islog===!1&&(j.type="linear")),j.autorange!=="withzero"&&j.autorange!=="tozero"||(j.autorange=!0,j.rangemode="tozero"),j.insiderange&&delete j.range,delete j.islog,delete j.isdate,delete j.categories,x(j,"domain")&&delete j.domain,j.autotick!==void 0&&(j.tickmode===void 0&&(j.tickmode=j.autotick?"auto":"linear"),delete j.autotick),v(j)}else if(k&&k.test(Q))v(E[Q].radialaxis);else if(I&&I.test(Q)){var U=E[Q];v(U.aaxis),v(U.baxis),v(U.caxis)}else if(z&&z.test(Q)){var X=E[Q],te=X.cameraposition;if(Array.isArray(te)&&te[0].length===4){var W=te[0],K=te[1],oe=te[2],q=b([],W),Y=[];for(L=0;L<3;++L)Y[L]=K[L]+oe*q[2+4*L];X.camera={eye:{x:Y[0],y:Y[1],z:Y[2]},center:{x:K[0],y:K[1],z:K[2]},up:{x:0,y:0,z:1}},delete X.cameraposition}v(X.xaxis),v(X.yaxis),v(X.zaxis)}}var ee=Array.isArray(E.annotations)?E.annotations.length:0;for(C=0;C3?(de.x=1.02,de.xanchor="left"):de.x<-2&&(de.x=-.02,de.xanchor="right"),de.y>3?(de.y=1.02,de.yanchor="bottom"):de.y<-2&&(de.y=-.02,de.yanchor="top")),v(E),E.dragmode==="rotate"&&(E.dragmode="orbit"),p.clean(E),E.template&&E.template.layout&&l.cleanLayout(E.template.layout),E},l.cleanData=function(E){for(var C=0;C0)return E.substr(0,C)}l.hasParent=function(E,C){for(var L=M(C);L;){if(L in E)return!0;L=M(L)}return!1};var T=["x","y","z"];l.clearAxisTypes=function(E,C,L){for(var D=0;D1&&i.warn("Full array edits are incompatible with other edits",_);var E=h[""][""];if(p(E))u.set(null);else{if(!Array.isArray(E))return i.warn("Unrecognized full array edit value",_,E),!0;u.set(E)}return!R&&(S(M,T),A(a),!0)}var C,L,D,k,I,z,$,Q,j=Object.keys(h).map(Number).sort(O),U=u.get(),X=U||[],te=v(T,_).get(),W=[],K=-1,oe=X.length;for(C=0;CX.length-($?0:1))i.warn("index out of range",_,D);else if(z!==void 0)I.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",_,D),p(z)?W.push(D):$?(z==="add"&&(z={}),X.splice(D,0,z),te&&te.splice(D,0,{})):i.warn("Unrecognized full object edit value",_,D,z),K===-1&&(K=D);else for(L=0;L=0;C--)X.splice(W[C],1),te&&te.splice(W[C],1);if(X.length?U||u.set(X):u.set(null),R)return!1;if(S(M,T),x!==b){var q;if(K===-1)q=j;else{for(oe=Math.max(X.length,oe),q=[],C=0;C=K);C++)q.push(D);for(C=K;C=Ue.data.length||Ee<-Ue.data.length)throw new Error(Xe+" must be valid indices for gd.data.");if(Ze.indexOf(Ee,tt+1)>-1||Ee>=0&&Ze.indexOf(-Ue.data.length+Ee)>-1||Ee<0&&Ze.indexOf(Ue.data.length+Ee)>-1)throw new Error("each index in "+Xe+" must be unique.")}}function te(Ue,Ze,Xe){if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(Ze===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(Ze)||(Ze=[Ze]),X(Ue,Ze,"currentIndices"),Xe===void 0||Array.isArray(Xe)||(Xe=[Xe]),Xe!==void 0&&X(Ue,Xe,"newIndices"),Xe!==void 0&&Ze.length!==Xe.length)throw new Error("current and new indices must be of equal length.")}function W(Ue,Ze,Xe,tt,Ee){(function(wt,Dt,It,qt){var en=O.isPlainObject(qt);if(!Array.isArray(wt.data))throw new Error("gd.data must be an array");if(!O.isPlainObject(Dt))throw new Error("update must be a key:value object");if(It===void 0)throw new Error("indices must be an integer or array of integers");for(var Gt in X(wt,It,"indices"),Dt){if(!Array.isArray(Dt[Gt])||Dt[Gt].length!==It.length)throw new Error("attribute "+Gt+" must be an array of length equal to indices array length");if(en&&(!(Gt in qt)||!Array.isArray(qt[Gt])||qt[Gt].length!==Dt[Gt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(Ue,Ze,Xe,tt);for(var Ne=function(wt,Dt,It,qt){var en,Gt,Ct,_t,nn,gn=O.isPlainObject(qt),bn=[];for(var mn in Array.isArray(It)||(It=[It]),It=U(It,wt.data.length-1),Dt)for(var vt=0;vt-1&&Xe.indexOf("grouptitlefont")===-1?nt(Xe,Xe.replace("titlefont","title.font")):Xe.indexOf("titleposition")>-1?nt(Xe,Xe.replace("titleposition","title.position")):Xe.indexOf("titleside")>-1?nt(Xe,Xe.replace("titleside","title.side")):Xe.indexOf("titleoffset")>-1&&nt(Xe,Xe.replace("titleoffset","title.offset")):nt(Xe,Xe.replace("title","title.text"));function nt(ot,Ge){Ue[Ge]=Ue[ot],delete Ue[ot]}}function se(Ue,Ze,Xe){Ue=O.getGraphDiv(Ue),C.clearPromiseQueue(Ue);var tt={};if(typeof Ze=="string")tt[Ze]=Xe;else{if(!O.isPlainObject(Ze))return O.warn("Relayout fail.",Ze,Xe),Promise.reject();tt=O.extendFlat({},Ze)}Object.keys(tt).length&&(Ue.changed=!0);var Ee=_e(Ue,tt),Ne=Ee.flags;Ne.calc&&(Ue.calcdata=void 0);var je=[h.previousPromises];Ne.layoutReplot?je.push(L.layoutReplot):Object.keys(tt).length&&(ae(Ue,Ne,Ee)||h.supplyDefaults(Ue),Ne.legend&&je.push(L.doLegend),Ne.layoutstyle&&je.push(L.layoutStyles),Ne.axrange&&ce(je,Ee.rangesAltered),Ne.ticks&&je.push(L.doTicksRelayout),Ne.modebar&&je.push(L.doModeBar),Ne.camera&&je.push(L.doCamera),Ne.colorbars&&je.push(L.doColorBars),je.push(z)),je.push(h.rehover,h.redrag,h.reselect),p.add(Ue,se,[Ue,Ee.undoit],se,[Ue,Ee.redoit]);var nt=O.syncOrAsync(je,Ue);return nt&&nt.then||(nt=Promise.resolve(Ue)),nt.then(function(){return Ue.emit("plotly_relayout",Ee.eventData),Ue})}function ae(Ue,Ze,Xe){var tt,Ee,Ne=Ue._fullLayout;if(!Ze.axrange)return!1;for(var je in Ze)if(je!=="axrange"&&Ze[je])return!1;var nt=function(Dt,It){return O.coerce(tt,Ee,_,Dt,It)},ot={};for(var Ge in Xe.rangesAltered){var ht=m.id2name(Ge);if(tt=Ue.layout[ht],Ee=Ne[ht],v(tt,Ee,nt,ot),Ee._matchGroup){for(var pt in Ee._matchGroup)if(pt!==Ge){var wt=Ne[m.id2name(pt)];wt.autorange=Ee.autorange,wt.range=Ee.range.slice(),wt._input.range=Ee.range.slice()}}}return!0}function ce(Ue,Ze){var Xe=Ze?function(tt){var Ee=[];for(var Ne in Ze){var je=m.getFromId(tt,Ne);if(Ee.push(Ne),(je.ticklabelposition||"").indexOf("inside")!==-1&&je._anchorAxis&&Ee.push(je._anchorAxis._id),je._matchGroup)for(var nt in je._matchGroup)Ze[nt]||Ee.push(nt)}return m.draw(tt,Ee,{skipTitle:!0})}:function(tt){return m.draw(tt,"redraw")};Ue.push(M,L.doAutoRangeAndConstraints,Xe,L.drawData,L.finalDraw)}var de=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,ve=/^[xyz]axis[0-9]*\.autorange$/,ye=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function _e(Ue,Ze){var Xe,tt,Ee,Ne=Ue.layout,je=Ue._fullLayout,nt=je._guiEditing,ot=Y(je._preGUI,nt),Ge=Object.keys(Ze),ht=m.list(Ue),pt=O.extendDeepAll({},Ze),wt={};for(he(Ze),Ge=Object.keys(Ze),tt=0;tt0&&typeof vt.parts[lt]!="string";)lt--;var yt=vt.parts[lt],zt=vt.parts[lt-1]+"."+yt,Rt=vt.parts.slice(0,lt).join("."),it=w(Ue.layout,Rt).get(),at=w(je,Rt).get(),Lt=vt.get();if(bt!==void 0){Gt[mn]=bt,Ct[mn]=yt==="reverse"?bt:q(Lt);var xt=u.getLayoutValObject(je,vt.parts);if(xt&&xt.impliedEdits&&bt!==null)for(var Zt in xt.impliedEdits)_t(O.relativeAttr(mn,Zt),xt.impliedEdits[Zt]);if(["width","height"].indexOf(mn)!==-1)if(bt){_t("autosize",null);var Xt=mn==="height"?"width":"height";_t(Xt,je[Xt])}else je[mn]=Ue._initialAutoSize[mn];else if(mn==="autosize")_t("width",bt?null:je.width),_t("height",bt?null:je.height);else if(zt.match(de))bn(zt),w(je,Rt+"._inputRange").set(null);else if(zt.match(ve)){bn(zt),w(je,Rt+"._inputRange").set(null);var Yt=w(je,Rt).get();Yt._inputDomain&&(Yt._input.domain=Yt._inputDomain.slice())}else zt.match(ye)&&w(je,Rt+"._inputDomain").set(null);if(yt==="type"){nn=it;var Qt=at.type==="linear"&&bt==="log",Pt=at.type==="log"&&bt==="linear";if(Qt||Pt){if(nn&&nn.range)if(at.autorange)Qt&&(nn.range=nn.range[1]>nn.range[0]?[1,2]:[2,1]);else{var tn=nn.range[0],Kt=nn.range[1];Qt?(tn<=0&&Kt<=0&&_t(Rt+".autorange",!0),tn<=0?tn=Kt/1e6:Kt<=0&&(Kt=tn/1e6),_t(Rt+".range[0]",Math.log(tn)/Math.LN10),_t(Rt+".range[1]",Math.log(Kt)/Math.LN10)):(_t(Rt+".range[0]",Math.pow(10,tn)),_t(Rt+".range[1]",Math.pow(10,Kt)))}else _t(Rt+".autorange",!0);Array.isArray(je._subplots.polar)&&je._subplots.polar.length&&je[vt.parts[0]]&&vt.parts[1]==="radialaxis"&&delete je[vt.parts[0]]._subplot.viewInitial["radialaxis.range"],a.getComponentMethod("annotations","convertCoords")(Ue,at,bt,_t),a.getComponentMethod("images","convertCoords")(Ue,at,bt,_t)}else _t(Rt+".autorange",!0),_t(Rt+".range",null);w(je,Rt+"._inputRange").set(null)}else if(yt.match(k)){var fn=w(je,mn).get(),dn=(bt||{}).type;dn&&dn!=="-"||(dn="linear"),a.getComponentMethod("annotations","convertCoords")(Ue,fn,dn,_t),a.getComponentMethod("images","convertCoords")(Ue,fn,dn,_t)}var vn=E.containerArrayMatch(mn);if(vn){Xe=vn.array,tt=vn.index;var Nn=vn.property,er=xt||{editType:"calc"};tt!==""&&Nn===""&&(E.isAddVal(bt)?Ct[mn]=null:E.isRemoveVal(bt)?Ct[mn]=(w(Ne,Xe).get()||[])[tt]:O.warn("unrecognized full object value",Ze)),D.update(en,er),wt[Xe]||(wt[Xe]={});var En=wt[Xe][tt];En||(En=wt[Xe][tt]={}),En[Nn]=bt,delete Ze[mn]}else yt==="reverse"?(it.range?it.range.reverse():(_t(Rt+".autorange",!0),it.range=[1,0]),at.autorange?en.calc=!0:en.plot=!0):(mn==="dragmode"&&(bt===!1&&Lt!==!1||bt!==!1&&Lt===!1)||je._has("scatter-like")&&je._has("regl")&&mn==="dragmode"&&(bt==="lasso"||bt==="select")&&Lt!=="lasso"&&Lt!=="select"||je._has("gl2d")?en.plot=!0:xt?D.update(en,xt):en.calc=!0,vt.set(bt))}}for(Xe in wt)E.applyContainerArrayChanges(Ue,ot(Ne,Xe),wt[Xe],en,ot)||(en.plot=!0);for(var In in gn){var jn=(nn=m.getFromId(Ue,In))&&nn._constraintGroup;if(jn)for(var xr in en.calc=!0,jn)gn[xr]||(m.getFromId(Ue,xr)._constraintShrinkable=!0)}(Se(Ue)||Ze.height||Ze.width)&&(en.plot=!0);var Sr=je.shapes;for(tt=0;tt1;)if(tt.pop(),(Xe=w(Ze,tt.join(".")+".uirevision").get())!==void 0)return Xe;return Ze.uirevision}function Ve(Ue,Ze){for(var Xe=0;Xe=Ee.length?Ee[0]:Ee[Ge]:Ee}function nt(Ge){return Array.isArray(Ne)?Ge>=Ne.length?Ne[0]:Ne[Ge]:Ne}function ot(Ge,ht){var pt=0;return function(){if(Ge&&++pt===ht)return Ge()}}return tt._frameWaitingCnt===void 0&&(tt._frameWaitingCnt=0),new Promise(function(Ge,ht){function pt(){Ue.emit("plotly_animating"),tt._lastFrameAt=-1/0,tt._timeToNext=0,tt._runningTransitions=0,tt._currentFrame=null;var mn=function(){tt._animationRaf=window.requestAnimationFrame(mn),Date.now()-tt._lastFrameAt>tt._timeToNext&&function(){tt._currentFrame&&tt._currentFrame.onComplete&&tt._currentFrame.onComplete();var vt=tt._currentFrame=tt._frameQueue.shift();if(vt){var bt=vt.name?vt.name.toString():null;Ue._fullLayout._currentFrame=bt,tt._lastFrameAt=Date.now(),tt._timeToNext=vt.frameOpts.duration,h.transition(Ue,vt.frame.data,vt.frame.layout,C.coerceTraceIndices(Ue,vt.frame.traces),vt.frameOpts,vt.transitionOpts).then(function(){vt.onComplete&&vt.onComplete()}),Ue.emit("plotly_animatingframe",{name:bt,frame:vt.frame,animation:{frame:vt.frameOpts,transition:vt.transitionOpts}})}else Ue.emit("plotly_animated"),window.cancelAnimationFrame(tt._animationRaf),tt._animationRaf=null}()};mn()}var wt,Dt,It=0;function qt(mn){return Array.isArray(Ee)?It>=Ee.length?mn.transitionOpts=Ee[It]:mn.transitionOpts=Ee[0]:mn.transitionOpts=Ee,It++,mn}var en=[],Gt=Ze==null,Ct=Array.isArray(Ze);if(Gt||Ct||!O.isPlainObject(Ze)){if(Gt||["string","number"].indexOf(typeof Ze)!==-1)for(wt=0;wt0&&gngn)&&bn.push(Dt);en=bn}}en.length>0?function(mn){if(mn.length!==0){for(var vt=0;vt=0;tt--)if(O.isPlainObject(Ze[tt])){var wt=Ze[tt].name,Dt=(ot[wt]||pt[wt]||{}).name,It=Ze[tt].name,qt=ot[Dt]||pt[Dt];Dt&&It&&typeof It=="number"&&qt&&I<5&&(I++,O.warn('addFrames: overwriting frame "'+(ot[Dt]||pt[Dt]).name+'" with a frame whose name of type "number" also equates to "'+Dt+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),I===5&&O.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),pt[wt]={name:wt},ht.push({frame:h.supplyFrameDefaults(Ze[tt]),index:Xe&&Xe[tt]!==void 0&&Xe[tt]!==null?Xe[tt]:Ge+tt})}ht.sort(function(mn,vt){return mn.index>vt.index?-1:mn.index=0;tt--){if(typeof(Ee=ht[tt].frame).name=="number"&&O.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Ee.name)for(;ot[Ee.name="frame "+Ue._transitionData._counter++];);if(ot[Ee.name]){for(Ne=0;Ne=0;Xe--)tt=Ze[Xe],Ne.push({type:"delete",index:tt}),je.unshift({type:"insert",index:tt,value:Ee[tt]});var nt=h.modifyFrames,ot=h.modifyFrames,Ge=[Ue,je],ht=[Ue,Ne];return p&&p.add(Ue,nt,Ge,ot,ht),h.modifyFrames(Ue,Ne)},l.addTraces=function Ue(Ze,Xe,tt){Ze=O.getGraphDiv(Ze);var Ee,Ne,je=[],nt=l.deleteTraces,ot=Ue,Ge=[Ze,je],ht=[Ze,Xe];for(function(pt,wt,Dt){var It,qt;if(!Array.isArray(pt.data))throw new Error("gd.data must be an array.");if(wt===void 0)throw new Error("traces must be defined.");for(Array.isArray(wt)||(wt=[wt]),It=0;It=0&&ht=0&&ht=j.length)return!1;if(k.dimensions===2){if(z++,I.length===z)return k;var U=I[z];if(!T(U))return!1;k=j[Q][U]}else k=j[Q]}else k=j}}return k}function T(k){return k===Math.round(k)&&k>=0}function E(){var k,I,z={};for(k in u(z,O),c.subplotsRegistry)if((I=c.subplotsRegistry[k]).layoutAttributes)if(Array.isArray(I.attr))for(var $=0;$=U.length)return!1;$=(z=(c.transformsRegistry[U[X].type]||{}).attributes)&&z[I[2]],j=3}else{var te=k._module;if(te||(te=(c.modules[k.type||i.type.dflt]||{})._module),!te)return!1;if(!($=(z=te.attributes)&&z[Q])){var W=te.basePlotModule;W&&W.attributes&&($=W.attributes[Q])}$||($=i[Q])}return M($,I,j)},l.getLayoutValObject=function(k,I){var z=function($,Q){var j,U,X,te,W=$._basePlotModules;if(W){var K;for(j=0;j=h&&(u._input||{})._templateitemname;v&&(m=h);var _,S=a+"["+m+"]";function A(){_={},v&&(_[S]={},_[S][i]=v)}function x(M,T){v?c.nestedProperty(_[S],M).set(T):_[S+"."+M]=T}function R(){var M=_;return A(),M}return A(),{modifyBase:function(M,T){_[M]=T},modifyItem:x,getUpdateObj:R,applyUpdate:function(M,T){M&&x(M,T);var E=R();for(var C in E)c.nestedProperty(p,C).set(E[C])}}}},39172:function(d,l,n){var c=n(33428),b=n(24040),i=n(7316),O=n(3400),w=n(72736),y=n(73696),p=n(76308),a=n(43616),u=n(81668),h=n(45460),m=n(54460),v=n(84284),_=n(71888),S=_.enforce,A=_.clean,x=n(19280).doAutoRange,R="start";function M(D,k,I){for(var z=0;z=D[1]||$[1]<=D[0])&&Q[0]k[0])return!0}return!1}function T(D){var k,I,z,$,Q,j,U=D._fullLayout,X=U._size,te=X.p,W=m.list(D,"",!0);if(U._paperdiv.style({width:D._context.responsive&&U.autosize&&!D._context._hasZeroWidth&&!D.layout.width?"100%":U.width+"px",height:D._context.responsive&&U.autosize&&!D._context._hasZeroHeight&&!D.layout.height?"100%":U.height+"px"}).selectAll(".main-svg").call(a.setSize,U.width,U.height),D._context.setBackground(D,U.paper_bgcolor),l.drawMainTitle(D),h.manage(D),!U._has("cartesian"))return i.previousPromises(D);function K(Ge,ht,pt){var wt=Ge._lw/2;return Ge._id.charAt(0)==="x"?ht?pt==="top"?ht._offset-te-wt:ht._offset+ht._length+te+wt:X.t+X.h*(1-(Ge.position||0))+wt%1:ht?pt==="right"?ht._offset+ht._length+te+wt:ht._offset-te-wt:X.l+X.w*(Ge.position||0)+wt%1}for(k=0;k.5?"t":"b",ae=q._fullLayout.margin[se],ce=0;return Y.yref==="paper"?ce=ee+Y.pad.t+Y.pad.b:Y.yref==="container"&&(ce=function(de,ve,ye,_e,Se){var Te=0;return ye==="middle"&&(Te+=Se/2),de==="t"?(ye==="top"&&(Te+=Se),Te+=_e-ve*_e):(ye==="bottom"&&(Te+=Se),Te+=ve*_e),Te}(se,me,he,q._fullLayout.height,ee)+Y.pad.t+Y.pad.b),ce>ae?ce:0}(D,I,te);if(W>0){(function(q,Y,ee,me){var he="title.automargin",se=q._fullLayout.title,ae=se.y>.5?"t":"b",ce={x:se.x,y:se.y,t:0,b:0},de={};se.yref==="paper"&&function(ve,ye,_e,Se,Te){var Pe=ye.yref==="paper"?ve._fullLayout._size.h:ve._fullLayout.height,Ie=O.isTopAnchor(ye)?Se:Se-Te,ze=_e==="b"?Pe-Ie:Ie;return!(O.isTopAnchor(ye)&&_e==="t"||O.isBottomAnchor(ye)&&_e==="b")&&zeX?L.push({code:"unused",traceType:z,templateCount:U,dataCount:X}):X>U&&L.push({code:"reused",traceType:z,templateCount:U,dataCount:X})}}else L.push({code:"data"});if(function te(W,K){for(var oe in W)if(oe.charAt(0)!=="_"){var q=W[oe],Y=_(W,oe,K);b(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&L.push({code:"missing",path:Y,templateitemname:q.templateitemname}),te(q,Y)):Array.isArray(q)&&S(q)&&te(q,Y)}}({data:k,layout:D},""),L.length)return L.map(A)}},67024:function(d,l,n){var c=n(38248),b=n(36424),i=n(7316),O=n(3400),w=n(81792),y=n(37164),p=n(63268),a=n(25788).version,u={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};d.exports=function(h,m){var v,_,S,A;function x(X){return!(X in m)||O.validate(m[X],u[X])}if(m=m||{},O.isPlainObject(h)?(v=h.data||[],_=h.layout||{},S=h.config||{},A={}):(h=O.getGraphDiv(h),v=O.extendDeep([],h.data),_=O.extendDeep({},h.layout),S=h._context,A=h._fullLayout||{}),!x("width")&&m.width!==null||!x("height")&&m.height!==null)throw new Error("Height and width should be pixel values.");if(!x("format"))throw new Error("Export format is not "+O.join2(u.format.values,", "," or ")+".");var R={};function M(X,te){return O.coerce(m,R,u,X,te)}var T=M("format"),E=M("width"),C=M("height"),L=M("scale"),D=M("setBackground"),k=M("imageDataOnly"),I=document.createElement("div");I.style.position="absolute",I.style.left="-5000px",document.body.appendChild(I);var z=O.extendFlat({},_);E?z.width=E:m.width===null&&c(A.width)&&(z.width=A.width),C?z.height=C:m.height===null&&c(A.height)&&(z.height=A.height);var $=O.extendFlat({},S,{_exportedPlot:!0,staticPlot:!0,setBackground:D}),Q=w.getRedrawFunc(I);function j(){return new Promise(function(X){setTimeout(X,w.getDelay(I._fullLayout))})}function U(){return new Promise(function(X,te){var W=y(I,T,L),K=I._fullLayout.width,oe=I._fullLayout.height;function q(){b.purge(I),document.body.removeChild(I)}if(T==="full-json"){var Y=i.graphJson(I,!1,"keepdata","object",!0,!0);return Y.version=a,Y=JSON.stringify(Y),q(),X(k?Y:w.encodeJSON(Y))}if(q(),T==="svg")return X(k?W:w.encodeSVG(W));var ee=document.createElement("canvas");ee.id=O.randstr(),p({format:T,width:K,height:oe,scale:L,canvas:ee,svg:W,promise:!0}).then(X).catch(te)})}return new Promise(function(X,te){b.newPlot(I,v,z,$).then(Q).then(j).then(U).then(function(W){X(function(K){return k?K.replace(w.IMAGE_URL_PREFIX,""):K}(W))}).catch(function(W){te(W)})})}},21480:function(d,l,n){var c=n(3400),b=n(7316),i=n(73060),O=n(20556).dfltConfig,w=c.isPlainObject,y=Array.isArray,p=c.isArrayOrTypedArray;function a(x,R,M,T,E,C){C=C||[];for(var L=Object.keys(x),D=0;D$.length&&T.push(m("unused",E,I.concat($.length)));var W,K,oe,q,Y,ee=$.length,me=Array.isArray(te);if(me&&(ee=Math.min(ee,te.length)),Q.dimensions===2)for(K=0;K$[K].length&&T.push(m("unused",E,I.concat(K,$[K].length)));var he=$[K].length;for(W=0;W<(me?Math.min(he,te[K].length):he);W++)oe=me?te[K][W]:te,q=z[K][W],Y=$[K][W],c.validate(q,oe)?Y!==q&&Y!==+q&&T.push(m("dynamic",E,I.concat(K,W),q,Y)):T.push(m("value",E,I.concat(K,W),q))}else T.push(m("array",E,I.concat(K),z[K]));else for(K=0;K1&&C.push(m("object","layout"))),b.supplyDefaults(L);for(var D=L._fullData,k=M.length,I=0;I0&&Math.round(_)===_))return{vals:u};m=_}for(var S=p.calendar,A=h==="start",x=h==="end",R=y[a+"period0"],M=i(R,S)||0,T=[],E=[],C=[],L=u.length,D=0;D$;)z=O(z,-m,S);for(;z<=$;)z=O(z,m,S);I=O(z,-m,S)}else{for(z=M+(k=Math.round(($-M)/v))*v;z>$;)z-=v;for(;z<=$;)z+=v;I=z-v}T[D]=A?I:x?z:(I+z)/2,E[D]=I,C[D]=z}return{vals:T,starts:E,ends:C}}},26720:function(d){d.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(d,l,n){var c=n(33428),b=n(38248),i=n(3400),O=n(39032).FP_SAFE,w=n(24040),y=n(43616),p=n(79811),a=p.getFromId,u=p.isLinked;function h(D,k){var I,z,$=[],Q=D._fullLayout,j=v(Q,k,0),U=v(Q,k,1),X=S(D,k),te=X.min,W=X.max;if(te.length===0||W.length===0)return i.simpleMap(k.range,k.r2l);var K=te[0].val,oe=W[0].val;for(I=1;I0&&((ce=Se-j(me)-U(he))>Te?de/ce>Pe&&(se=me,ae=he,Pe=de/ce):de/Se>Pe&&(se={val:me.val,nopad:1},ae={val:he.val,nopad:1},Pe=de/Se));if(K===oe){var Ie=K-1,ze=K+1;if(ye)if(K===0)$=[0,1];else{var De=(K>0?W:te).reduce(function(Ve,$e){return Math.max(Ve,U($e))},0),He=K/(1-Math.min(.5,De/Se));$=K>0?[0,He]:[He,0]}else $=_e?[Math.max(0,Ie),Math.max(1,ze)]:[Ie,ze]}else ye?(se.val>=0&&(se={val:0,nopad:1}),ae.val<=0&&(ae={val:0,nopad:1})):_e&&(se.val-Pe*j(se)<0&&(se={val:0,nopad:1}),ae.val<=0&&(ae={val:1,nopad:1})),Pe=(ae.val-se.val-m(k,me.val,he.val))/(Se-j(se)-U(ae)),$=[se.val-Pe*j(se),ae.val+Pe*U(ae)];return $=L($,k),k.limitRange&&k.limitRange(),Y&&$.reverse(),i.simpleMap($,k.l2r||Number)}function m(D,k,I){var z=0;if(D.rangebreaks)for(var $=D.locateBreaks(k,I),Q=0;Q<$.length;Q++){var j=$[Q];z+=j.max-j.min}return z}function v(D,k,I){var z=.05*k._length,$=k._anchorAxis||{};if((k.ticklabelposition||"").indexOf("inside")!==-1||($.ticklabelposition||"").indexOf("inside")!==-1){var Q=k.isReversed();if(!Q){var j=i.simpleMap(k.range,k.r2l);Q=j[1]0?I.ppadplus:I.ppadminus)||I.ppad||0),ve=ce((D._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),ye=ce(I.vpadplus||I.vpad),_e=ce(I.vpadminus||I.vpad);if(!se){if(W=1/0,K=-1/0,he)for(z=0;z0&&(W=$),$>K&&$-O&&(W=$),$>K&&$=Pe;z--)Te(z);return{min:oe,max:q,opts:I}},concatExtremes:S};var _=3;function S(D,k,I){var z,$,Q,j=k._id,U=D._fullData,X=D._fullLayout,te=[],W=[];function K(me,he){for(z=0;z=I&&(te.extrapad||!j)){U=!1;break}$(k,te.val)&&te.pad<=I&&(j||!te.extrapad)&&(D.splice(X,1),X--)}if(U){var W=Q&&k===0;D.push({val:k,pad:W?0:I,extrapad:!W&&j})}}function M(D){return b(D)&&Math.abs(D)=k}function C(D,k,I){return k===void 0||I===void 0||(k=D.d2l(k))=X&&(Q=X,I=X),j<=X&&(j=X,z=X)}}return I=function(te,W){var K=W.autorangeoptions;return K&&K.minallowed!==void 0&&C(W,K.minallowed,K.maxallowed)?K.minallowed:K&&K.clipmin!==void 0&&C(W,K.clipmin,K.clipmax)?Math.max(te,W.d2l(K.clipmin)):te}(I,k),z=function(te,W){var K=W.autorangeoptions;return K&&K.maxallowed!==void 0&&C(W,K.minallowed,K.maxallowed)?K.maxallowed:K&&K.clipmax!==void 0&&C(W,K.clipmin,K.clipmax)?Math.min(te,W.d2l(K.clipmax)):te}(z,k),[I,z]}},76808:function(d){d.exports=function(l,n,c){var b,i;if(c){var O=n==="reversed"||n==="min reversed"||n==="max reversed";b=c[O?1:0],i=c[O?0:1]}var w=l("autorangeoptions.minallowed",i===null?b:void 0),y=l("autorangeoptions.maxallowed",b===null?i:void 0);w===void 0&&l("autorangeoptions.clipmin"),y===void 0&&l("autorangeoptions.clipmax"),l("autorangeoptions.include")}},54460:function(d,l,n){var c=n(33428),b=n(38248),i=n(7316),O=n(24040),w=n(3400),y=w.strTranslate,p=n(72736),a=n(81668),u=n(76308),h=n(43616),m=n(94724),v=n(98728),_=n(39032),S=_.ONEMAXYEAR,A=_.ONEAVGYEAR,x=_.ONEMINYEAR,R=_.ONEMAXQUARTER,M=_.ONEAVGQUARTER,T=_.ONEMINQUARTER,E=_.ONEMAXMONTH,C=_.ONEAVGMONTH,L=_.ONEMINMONTH,D=_.ONEWEEK,k=_.ONEDAY,I=k/2,z=_.ONEHOUR,$=_.ONEMIN,Q=_.ONESEC,j=_.MINUS_SIGN,U=_.BADNUM,X={K:"zeroline"},te={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},K={K:"tick",L:"path"},oe={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Y=n(84284),ee=Y.MID_SHIFT,me=Y.CAP_SHIFT,he=Y.LINE_SPACING,se=Y.OPPOSITE_SIDE,ae=d.exports={};ae.setConvert=n(78344);var ce=n(52976),de=n(79811),ve=de.idSort,ye=de.isLinked;ae.id2name=de.id2name,ae.name2id=de.name2id,ae.cleanId=de.cleanId,ae.list=de.list,ae.listIds=de.listIds,ae.getFromId=de.getFromId,ae.getFromTrace=de.getFromTrace;var _e=n(19280);ae.getAutoRange=_e.getAutoRange,ae.findExtremes=_e.findExtremes;var Se=1e-4;function Te(it){var at=(it[1]-it[0])*Se;return[it[0]-at,it[1]+at]}ae.coerceRef=function(it,at,Lt,xt,Zt,Xt){var Yt=xt.charAt(xt.length-1),Qt=Lt._fullLayout._subplots[Yt+"axis"],Pt=xt+"ref",tn={};return Zt||(Zt=Qt[0]||(typeof Xt=="string"?Xt:Xt[0])),Xt||(Xt=Zt),Qt=Qt.concat(Qt.map(function(Kt){return Kt+" domain"})),tn[Pt]={valType:"enumerated",values:Qt.concat(Xt?typeof Xt=="string"?[Xt]:Xt:[]),dflt:Zt},w.coerce(it,at,tn,Pt)},ae.getRefType=function(it){return it===void 0?it:it==="paper"?"paper":it==="pixel"?"pixel":/( domain)$/.test(it)?"domain":"range"},ae.coercePosition=function(it,at,Lt,xt,Zt,Xt){var Yt,Qt;if(ae.getRefType(xt)!=="range")Yt=w.ensureNumber,Qt=Lt(Zt,Xt);else{var Pt=ae.getFromId(at,xt);Qt=Lt(Zt,Xt=Pt.fraction2r(Xt)),Yt=Pt.cleanPos}it[Zt]=Yt(Qt)},ae.cleanPosition=function(it,at,Lt){return(Lt==="paper"||Lt==="pixel"?w.ensureNumber:ae.getFromId(at,Lt).cleanPos)(it)},ae.redrawComponents=function(it,at){at=at||ae.listIds(it);var Lt=it._fullLayout;function xt(Zt,Xt,Yt,Qt){for(var Pt=O.getComponentMethod(Zt,Xt),tn={},Kt=0;Ktxt&&fn2e-6||((Lt-it._forceTick0)/it._minDtick%1+1.000001)%1>2e-6)&&(it._minDtick=0)):it._minDtick=0},ae.saveRangeInitial=function(it,at){for(var Lt=ae.list(it,"",!0),xt=!1,Zt=0;Zt.3*Ir||Kn(xr)||Kn(Sr))){var zr=jn.dtick/2;En+=En+zr.8){var Fn=Number(jn.substr(1));ar.exactYears>.8&&Fn%12==0?En=ae.tickIncrement(En,"M6","reverse")+1.5*k:ar.exactMonths>.8?En=ae.tickIncrement(En,"M1","reverse")+15.5*k:En-=I;var ir=ae.tickIncrement(En,jn);if(ir<=xr)return ir}return En}(er,it,Nn,Qt,Zt)),vn=er;vn<=Pt;)vn=ae.tickIncrement(vn,Nn,!1,Zt);return{start:at.c2r(er,0,Zt),end:at.c2r(vn,0,Zt),size:Nn,_dataSpan:Pt-Qt}},ae.prepMinorTicks=function(it,at,Lt){if(!at.minor.dtick){delete it.dtick;var xt,Zt=at.dtick&&b(at._tmin);if(Zt){var Xt=ae.tickIncrement(at._tmin,at.dtick,!0);xt=[at._tmin,.99*Xt+.01*at._tmin]}else{var Yt=w.simpleMap(at.range,at.r2l);xt=[Yt[0],.8*Yt[0]+.2*Yt[1]]}if(it.range=w.simpleMap(xt,at.l2r),it._isMinor=!0,ae.prepTicks(it,Lt),Zt){var Qt=b(at.dtick),Pt=b(it.dtick),tn=Qt?at.dtick:+at.dtick.substring(1),Kt=Pt?it.dtick:+it.dtick.substring(1);Qt&&Pt?De(tn,Kt)?tn===2*D&&Kt===2*k&&(it.dtick=D):tn===2*D&&Kt===3*k?it.dtick=D:tn!==D||(at._input.minor||{}).nticks?He(tn/Kt,2.5)?it.dtick=tn/2:it.dtick=tn:it.dtick=k:String(at.dtick).charAt(0)==="M"?Pt?it.dtick="M1":De(tn,Kt)?tn>=12&&Kt===2&&(it.dtick="M3"):it.dtick=at.dtick:String(it.dtick).charAt(0)==="L"?String(at.dtick).charAt(0)==="L"?De(tn,Kt)||(it.dtick=He(tn/Kt,2.5)?at.dtick/2:at.dtick):it.dtick="D1":it.dtick==="D2"&&+at.dtick>1&&(it.dtick=1)}it.range=at.range}at.minor._tick0Init===void 0&&(it.tick0=at.tick0)},ae.prepTicks=function(it,at){var Lt=w.simpleMap(it.range,it.r2l,void 0,void 0,at);if(it.tickmode==="auto"||!it.dtick){var xt,Zt=it.nticks;Zt||(it.type==="category"||it.type==="multicategory"?(xt=it.tickfont?w.bigFont(it.tickfont.size||12):15,Zt=it._length/xt):(xt=it._id.charAt(0)==="y"?40:80,Zt=w.constrain(it._length/xt,4,9)+1),it._name==="radialaxis"&&(Zt*=2)),it.minor&&it.minor.tickmode!=="array"||it.tickmode==="array"&&(Zt*=100),it._roughDTick=Math.abs(Lt[1]-Lt[0])/Zt,ae.autoTicks(it,it._roughDTick),it._minDtick>0&&it.dtick<2*it._minDtick&&(it.dtick=it._minDtick,it.tick0=it.l2r(it._forceTick0))}it.ticklabelmode==="period"&&function(Xt){var Yt;function Qt(){return!(b(Xt.dtick)||Xt.dtick.charAt(0)!=="M")}var Pt=Qt(),tn=ae.getTickFormat(Xt);if(tn){var Kt=Xt._dtickInit!==Xt.dtick;/%[fLQsSMX]/.test(tn)||(/%[HI]/.test(tn)?(Yt=z,Kt&&!Pt&&Xt.dtick=(In?0:1);jn--){var xr=!jn;jn?(it._dtickInit=it.dtick,it._tick0Init=it.tick0):(it.minor._dtickInit=it.minor.dtick,it.minor._tick0Init=it.minor.tick0);var Sr=jn?it:w.extendFlat({},it,it.minor);if(xr?ae.prepMinorTicks(Sr,it,at):ae.prepTicks(Sr,at),Sr.tickmode!=="array")if(Sr.tickmode!=="sync"){var ar=Te(Pt),Fn=ar[0],ir=ar[1],Wn=b(Sr.dtick),Kn=Zt==="log"&&!(Wn||Sr.dtick.charAt(0)==="L"),_r=ae.tickFirst(Sr,at);if(jn){if(it._tmin=_r,_r=ir:Rr<=ir;Rr=ae.tickIncrement(Rr,$r,tn,Xt)){if(jn&&Ir++,Sr.rangebreaks&&!tn){if(Rr=fn)break}if(er.length>dn||Rr===Fr)break;Fr=Rr;var Kr={value:Rr};jn?(Kn&&Rr!==(0|Rr)&&(Kr.simpleLabel=!0),Yt>1&&Ir%Yt&&(Kr.skipLabel=!0),er.push(Kr)):(Kr.minor=!0,En.push(Kr))}}else er=[],vn=Oe(it);else jn?(er=[],vn=ke(it,!xr)):(En=[],Nn=ke(it,!xr))}if(In&&!(it.minor.ticks==="inside"&&it.ticks==="outside"||it.minor.ticks==="outside"&&it.ticks==="inside")){for(var Co=er.map(function(hn){return hn.value}),so=[],So=0;So0?(vr=yr-1,nr=yr):(vr=yr,nr=yr);var Qn,Hn=hn[vr].value,tr=hn[nr].value,cr=Math.abs(tr-Hn),Lr=Zn||cr,Er=0;Lr>=x?Er=cr>=x&&cr<=S?cr:A:Zn===M&&Lr>=T?Er=cr>=T&&cr<=R?cr:M:Lr>=L?Er=cr>=L&&cr<=E?cr:C:Zn===D&&Lr>=D?Er=D:Lr>=k?Er=k:Zn===I&&Lr>=I?Er=I:Zn===z&&Lr>=z&&(Er=z),Er>=cr&&(Er=cr,Qn=!0);var Vr=gr+Er;if(zn.rangebreaks&&Er>0){for(var to=0,_o=0;_o<84;_o++){var fr=(_o+.5)/84;zn.maskBreaks(gr*(1-fr)+fr*Vr)!==U&&to++}(Er*=to/84)||(hn[yr].drop=!0),Qn&&cr>D&&(Er=cr)}(Er>0||yr===0)&&(hn[yr].periodX=gr+Er/2)}}(er,it,it._definedDelta),it.rangebreaks){var br=it._id.charAt(0)==="y",dr=1;it.tickmode==="auto"&&(dr=it.tickfont?it.tickfont.size:12);var Cr=NaN;for(Lt=er.length-1;Lt>-1;Lt--)if(er[Lt].drop)er.splice(Lt,1);else{er[Lt].value=lt(er[Lt].value,it);var io=it.c2p(er[Lt].value);(br?Cr>io-dr:Crfn||Wrfn&&(Qr.periodX=fn),Wr10||xt.substr(5)!=="01-01"?it._tickround="d":it._tickround=+at.substr(1)%12==0?"y":"m";else if(at>=k&&Zt<=10||at>=15*k)it._tickround="d";else if(at>=$&&Zt<=16||at>=z)it._tickround="M";else if(at>=Q&&Zt<=19||at>=$)it._tickround="S";else{var Xt=it.l2r(Lt+at).replace(/^-/,"").length;it._tickround=Math.max(Zt,Xt)-20,it._tickround<0&&(it._tickround=4)}}else if(b(at)||at.charAt(0)==="L"){var Yt=it.range.map(it.r2d||Number);b(at)||(at=Number(at.substr(1))),it._tickround=2-Math.floor(Math.log(at)/Math.LN10+.01);var Qt=Math.max(Math.abs(Yt[0]),Math.abs(Yt[1])),Pt=Math.floor(Math.log(Qt)/Math.LN10+.01),tn=it.minexponent===void 0?3:it.minexponent;Math.abs(Pt)>tn&&(Ge(it.exponentformat)&&!ht(Pt)?it._tickexponent=3*Math.round((Pt-1)/3):it._tickexponent=Pt)}else it._tickround=null}function nt(it,at,Lt){var xt=it.tickfont||{};return{x:at,dx:0,dy:0,text:Lt||"",fontSize:xt.size,font:xt.family,fontColor:xt.color}}ae.autoTicks=function(it,at,Lt){var xt;function Zt(fn){return Math.pow(fn,Math.floor(Math.log(at)/Math.LN10))}if(it.type==="date"){it.tick0=w.dateTick0(it.calendar,0);var Xt=2*at;if(Xt>A)at/=A,xt=Zt(10),it.dtick="M"+12*Ne(at,xt,Le);else if(Xt>C)at/=C,it.dtick="M"+Ne(at,1,We);else if(Xt>k){if(it.dtick=Ne(at,k,it._hasDayOfWeekBreaks?[1,2,7,14]:Ze),!Lt){var Yt=ae.getTickFormat(it),Qt=it.ticklabelmode==="period";Qt&&(it._rawTick0=it.tick0),/%[uVW]/.test(Yt)?it.tick0=w.dateTick0(it.calendar,2):it.tick0=w.dateTick0(it.calendar,1),Qt&&(it._dowTick0=it.tick0)}}else Xt>z?it.dtick=Ne(at,z,We):Xt>$?it.dtick=Ne(at,$,Ue):Xt>Q?it.dtick=Ne(at,Q,Ue):(xt=Zt(10),it.dtick=Ne(at,xt,Le))}else if(it.type==="log"){it.tick0=0;var Pt=w.simpleMap(it.range,it.r2l);if(it._isMinor&&(at*=1.5),at>.7)it.dtick=Math.ceil(at);else if(Math.abs(Pt[1]-Pt[0])<1){var tn=1.5*Math.abs((Pt[1]-Pt[0])/at);at=Math.abs(Math.pow(10,Pt[1])-Math.pow(10,Pt[0]))/tn,xt=Zt(10),it.dtick="L"+Ne(at,xt,Le)}else it.dtick=at>.3?"D2":"D1"}else it.type==="category"||it.type==="multicategory"?(it.tick0=0,it.dtick=Math.ceil(Math.max(at,1))):bt(it)?(it.tick0=0,xt=1,it.dtick=Ne(at,xt,Ee)):(it.tick0=0,xt=Zt(10),it.dtick=Ne(at,xt,Le));if(it.dtick===0&&(it.dtick=1),!b(it.dtick)&&typeof it.dtick!="string"){var Kt=it.dtick;throw it.dtick=1,"ax.dtick error: "+String(Kt)}},ae.tickIncrement=function(it,at,Lt,xt){var Zt=Lt?-1:1;if(b(at))return w.increment(it,Zt*at);var Xt=at.charAt(0),Yt=Zt*Number(at.substr(1));if(Xt==="M")return w.incrementMonth(it,Yt,xt);if(Xt==="L")return Math.log(Math.pow(10,it)+Yt)/Math.LN10;if(Xt==="D"){var Qt=at==="D2"?tt:Xe,Pt=it+.01*Zt,tn=w.roundUp(w.mod(Pt,1),Qt,Lt);return Math.floor(Pt)+Math.log(c.round(Math.pow(10,tn),1))/Math.LN10}throw"unrecognized dtick "+String(at)},ae.tickFirst=function(it,at){var Lt=it.r2l||Number,xt=w.simpleMap(it.range,Lt,void 0,void 0,at),Zt=xt[1] ")}else En._prevDateHead=Fn,ir+="
"+Fn;In.text=ir}(it,Xt,Lt,Qt):Pt==="log"?function(En,In,jn,xr,Sr){var ar=En.dtick,Fn=In.x,ir=En.tickformat,Wn=typeof ar=="string"&&ar.charAt(0);if(Sr==="never"&&(Sr=""),xr&&Wn!=="L"&&(ar="L3",Wn="L"),ir||Wn==="L")In.text=pt(Math.pow(10,Fn),En,Sr,xr);else if(b(ar)||Wn==="D"&&w.mod(Fn+.01,1)<.1){var Kn=Math.round(Fn),_r=Math.abs(Kn),Ir=En.exponentformat;Ir==="power"||Ge(Ir)&&ht(Kn)?(In.text=Kn===0?1:Kn===1?"10":"10"+(Kn>1?"":j)+_r+"",In.fontSize*=1.25):(Ir==="e"||Ir==="E")&&_r>2?In.text="1"+Ir+(Kn>0?"+":j)+_r:(In.text=pt(Math.pow(10,Fn),En,"","fakehover"),ar==="D1"&&En._id.charAt(0)==="y"&&(In.dy-=In.fontSize/6))}else{if(Wn!=="D")throw"unrecognized dtick "+String(ar);In.text=String(Math.round(Math.pow(10,w.mod(Fn,1)))),In.fontSize*=.75}if(En.dtick==="D1"){var zr=String(In.text).charAt(0);zr!=="0"&&zr!=="1"||(En._id.charAt(0)==="y"?In.dx-=In.fontSize/4:(In.dy+=In.fontSize/2,In.dx+=(En.range[1]>En.range[0]?1:-1)*In.fontSize*(Fn<0?.5:.25)))}}(it,Xt,0,Qt,vn):Pt==="category"?function(En,In){var jn=En._categories[Math.round(In.x)];jn===void 0&&(jn=""),In.text=String(jn)}(it,Xt):Pt==="multicategory"?function(En,In,jn){var xr=Math.round(In.x),Sr=En._categories[xr]||[],ar=Sr[1]===void 0?"":String(Sr[1]),Fn=Sr[0]===void 0?"":String(Sr[0]);jn?In.text=Fn+" - "+ar:(In.text=ar,In.text2=Fn)}(it,Xt,Lt):bt(it)?function(En,In,jn,xr,Sr){if(En.thetaunit!=="radians"||jn)In.text=pt(In.x,En,Sr,xr);else{var ar=In.x/180;if(ar===0)In.text="0";else{var Fn=function(Wn){function Kn(Fr,Rr){return Math.abs(Fr-Rr)<=1e-6}var _r=function(Fr){for(var Rr=1;!Kn(Math.round(Fr*Rr)/Rr,Fr);)Rr*=10;return Rr}(Wn),Ir=Wn*_r,zr=Math.abs(function Fr(Rr,$r){return Kn($r,0)?Rr:Fr($r,Rr%$r)}(Ir,_r));return[Math.round(Ir/zr),Math.round(_r/zr)]}(ar);if(Fn[1]>=100)In.text=pt(w.deg2rad(In.x),En,Sr,xr);else{var ir=In.x<0;Fn[1]===1?Fn[0]===1?In.text="π":In.text=Fn[0]+"π":In.text=["",Fn[0],"","⁄","",Fn[1],"","π"].join(""),ir&&(In.text=j+In.text)}}}}(it,Xt,Lt,Qt,vn):function(En,In,jn,xr,Sr){Sr==="never"?Sr="":En.showexponent==="all"&&Math.abs(In.x/En.dtick)<1e-6&&(Sr="hide"),In.text=pt(In.x,En,Sr,xr)}(it,Xt,0,Qt,vn),xt||(it.tickprefix&&!dn(it.showtickprefix)&&(Xt.text=it.tickprefix+Xt.text),it.ticksuffix&&!dn(it.showticksuffix)&&(Xt.text+=it.ticksuffix)),it.labelalias&&it.labelalias.hasOwnProperty(Xt.text)){var Nn=it.labelalias[Xt.text];typeof Nn=="string"&&(Xt.text=Nn)}if(it.tickson==="boundaries"||it.showdividers){var er=function(En){var In=it.l2p(En);return In>=0&&In<=it._length?En:null};Xt.xbnd=[er(Xt.x-.5),er(Xt.x+it.dtick-.5)]}return Xt},ae.hoverLabelText=function(it,at,Lt){Lt&&(it=w.extendFlat({},it,{hoverformat:Lt}));var xt=w.isArrayOrTypedArray(at)?at[0]:at,Zt=w.isArrayOrTypedArray(at)?at[1]:void 0;if(Zt!==void 0&&Zt!==xt)return ae.hoverLabelText(it,xt,Lt)+" - "+ae.hoverLabelText(it,Zt,Lt);var Xt=it.type==="log"&&xt<=0,Yt=ae.tickText(it,it.c2l(Xt?-xt:xt),"hover").text;return Xt?xt===0?"0":j+Yt:Yt};var ot=["f","p","n","μ","m","","k","M","G","T"];function Ge(it){return it==="SI"||it==="B"}function ht(it){return it>14||it<-15}function pt(it,at,Lt,xt){var Zt=it<0,Xt=at._tickround,Yt=Lt||at.exponentformat||"B",Qt=at._tickexponent,Pt=ae.getTickFormat(at),tn=at.separatethousands;if(xt){var Kt={exponentformat:Yt,minexponent:at.minexponent,dtick:at.showexponent==="none"?at.dtick:b(it)&&Math.abs(it)||1,range:at.showexponent==="none"?at.range.map(at.r2d):[0,it||1]};je(Kt),Xt=(Number(Kt._tickround)||0)+4,Qt=Kt._tickexponent,at.hoverformat&&(Pt=at.hoverformat)}if(Pt)return at._numFormat(Pt)(it).replace(/-/g,j);var fn,dn=Math.pow(10,-Xt)/2;if(Yt==="none"&&(Qt=0),(it=Math.abs(it))"+fn+"":Yt==="B"&&Qt===9?it+="B":Ge(Yt)&&(it+=ot[Qt/3+5])),Zt?j+it:it}function wt(it,at){if(it){var Lt=Object.keys(q).reduce(function(xt,Zt){return at.indexOf(Zt)!==-1&&q[Zt].forEach(function(Xt){xt[Xt]=1}),xt},{});Object.keys(it).forEach(function(xt){Lt[xt]||(xt.length===1?it[xt]=0:delete it[xt])})}}function Dt(it,at){for(var Lt=[],xt={},Zt=0;Zt1&&Lt=Zt.min&&it=0,In=Kt(dn,vn[1])<=0;return(Nn||En)&&(er||In)}if(it.tickformatstops&&it.tickformatstops.length>0)switch(it.type){case"date":case"linear":for(at=0;at=Yt(Zt)))){Lt=xt;break}break;case"log":for(at=0;at=0&&Zt.unshift(Zt.splice(tn,1).shift())}});var Yt={false:{left:0,right:0}};return w.syncOrAsync(Zt.map(function(Qt){return function(){if(Qt){var Pt=ae.getFromId(it,Qt);Lt||(Lt={}),Lt.axShifts=Yt,Lt.overlayingShiftedAx=Xt;var tn=ae.drawOne(it,Pt,Lt);return Pt._shiftPusher&&Rt(Pt,Pt._fullDepth||0,Yt,!0),Pt._r=Pt.range.slice(),Pt._rl=w.simpleMap(Pt._r,Pt.r2l),tn}}}))},ae.drawOne=function(it,at,Lt){var xt,Zt,Xt,Yt=(Lt=Lt||{}).axShifts||{},Qt=Lt.overlayingShiftedAx||[];at.setScale();var Pt=it._fullLayout,tn=at._id,Kt=tn.charAt(0),fn=ae.counterLetter(tn),dn=Pt._plots[at._mainSubplot];if(dn){if(at._shiftPusher=at.autoshift||Qt.indexOf(at._id)!==-1||Qt.indexOf(at.overlaying)!==-1,at._shiftPusher&at.anchor==="free"){var vn=at.linewidth/2||0;at.ticks==="inside"&&(vn+=at.ticklen),Rt(at,vn,Yt,!0),Rt(at,at.shift||0,Yt,!1)}Lt.skipTitle===!0&&at._shift!==void 0||(at._shift=function(nr,Qn){return nr.autoshift?Qn[nr.overlaying][nr.side]:nr.shift||0}(at,Yt));var Nn=dn[Kt+"axislayer"],er=at._mainLinePosition,En=er+=at._shift,In=at._mainMirrorPosition,jn=at._vals=ae.calcTicks(at),xr=[at.mirror,En,In].join("_");for(xt=0;xt0?nr.bottom-Er:0,Vr))));var to=0,_o=0;if(at._shiftPusher&&(to=Math.max(Vr,nr.height>0?cr==="l"?Er-nr.left:nr.right-Er:0),at.title.text!==Pt._dfltTitle[Kt]&&(_o=(at._titleStandoff||0)+(at._titleScoot||0),cr==="l"&&(_o+=en(at))),at._fullDepth=Math.max(to,_o)),at.automargin){Qn={x:0,y:0,r:0,l:0,t:0,b:0};var fr=[0,1],Eo=typeof at._shift=="number"?at._shift:0;if(Kt==="x"){if(cr==="b"?Qn[cr]=at._depth:(Qn[cr]=at._depth=Math.max(nr.width>0?Er-nr.top:0,Vr),fr.reverse()),nr.width>0){var ao=nr.right-(at._offset+at._length);ao>0&&(Qn.xr=1,Qn.r=ao);var co=at._offset-nr.left;co>0&&(Qn.xl=0,Qn.l=co)}}else if(cr==="l"?(at._depth=Math.max(nr.height>0?Er-nr.left:0,Vr),Qn[cr]=at._depth-Eo):(at._depth=Math.max(nr.height>0?nr.right-Er:0,Vr),Qn[cr]=at._depth+Eo,fr.reverse()),nr.height>0){var Go=nr.bottom-(at._offset+at._length);Go>0&&(Qn.yb=0,Qn.b=Go);var po=at._offset-nr.top;po>0&&(Qn.yt=1,Qn.t=po)}Qn[fn]=at.anchor==="free"?at.position:at._anchorAxis.domain[fr[0]],at.title.text!==Pt._dfltTitle[Kt]&&(Qn[cr]+=en(at)+(at.title.standoff||0)),at.mirror&&at.anchor!=="free"&&((Hn={x:0,y:0,r:0,l:0,t:0,b:0})[Lr]=at.linewidth,at.mirror&&at.mirror!==!0&&(Hn[Lr]+=Vr),at.mirror===!0||at.mirror==="ticks"?Hn[fn]=at._anchorAxis.domain[fr[1]]:at.mirror!=="all"&&at.mirror!=="allticks"||(Hn[fn]=[at._counterDomainMin,at._counterDomainMax][fr[1]]))}gr&&(tr=O.getComponentMethod("rangeslider","autoMarginOpts")(it,at)),typeof at.automargin=="string"&&(wt(Qn,at.automargin),wt(Hn,at.automargin)),i.autoMargin(it,_t(at),Qn),i.autoMargin(it,nn(at),Hn),i.autoMargin(it,gn(at),tr)}),w.syncOrAsync(Zn)}}function vr(nr){var Qn=tn+(nr||"tick");return Sr[Qn]||(Sr[Qn]=function(Hn,tr){var cr,Lr,Er,Vr;return Hn._selections[tr].size()?(cr=1/0,Lr=-1/0,Er=1/0,Vr=-1/0,Hn._selections[tr].each(function(){var to=Ct(this),_o=h.bBox(to.node().parentNode);cr=Math.min(cr,_o.top),Lr=Math.max(Lr,_o.bottom),Er=Math.min(Er,_o.left),Vr=Math.max(Vr,_o.right)})):(cr=0,Lr=0,Er=0,Vr=0),{top:cr,bottom:Lr,left:Er,right:Vr,height:Lr-cr,width:Vr-Er}}(at,Qn)),Sr[Qn]}},ae.getTickSigns=function(it,at){var Lt=it._id.charAt(0),xt={x:"top",y:"right"}[Lt],Zt=it.side===xt?1:-1,Xt=[-1,1,Zt,-Zt];return(at?(it.minor||{}).ticks:it.ticks)!=="inside"==(Lt==="x")&&(Xt=Xt.map(function(Yt){return-Yt})),it.side&&Xt.push({l:-1,t:-1,r:1,b:1}[it.side.charAt(0)]),Xt},ae.makeTransTickFn=function(it){return it._id.charAt(0)==="x"?function(at){return y(it._offset+it.l2p(at.x),0)}:function(at){return y(0,it._offset+it.l2p(at.x))}},ae.makeTransTickLabelFn=function(it){var at=function(Zt){var Xt=Zt.ticklabelposition||"",Yt=function(In){return Xt.indexOf(In)!==-1},Qt=Yt("top"),Pt=Yt("left"),tn=Yt("right"),Kt=Yt("bottom"),fn=Yt("inside"),dn=Kt||Pt||Qt||tn;if(!dn&&!fn)return[0,0];var vn=Zt.side,Nn=dn?(Zt.tickwidth||0)/2:0,er=3,En=Zt.tickfont?Zt.tickfont.size:12;return(Kt||Qt)&&(Nn+=En*me,er+=(Zt.linewidth||0)/2),(Pt||tn)&&(Nn+=(Zt.linewidth||0)/2,er+=3),fn&&vn==="top"&&(er-=En*(1-me)),(Pt||Qt)&&(Nn=-Nn),vn!=="bottom"&&vn!=="right"||(er=-er),[dn?Nn:0,fn?er:0]}(it),Lt=at[0],xt=at[1];return it._id.charAt(0)==="x"?function(Zt){return y(Lt+it._offset+it.l2p(It(Zt)),xt)}:function(Zt){return y(xt,Lt+it._offset+it.l2p(It(Zt)))}},ae.makeTickPath=function(it,at,Lt,xt){xt||(xt={});var Zt=xt.minor;if(Zt&&!it.minor)return"";var Xt=xt.len!==void 0?xt.len:Zt?it.minor.ticklen:it.ticklen,Yt=it._id.charAt(0),Qt=(it.linewidth||1)/2;return Yt==="x"?"M0,"+(at+Qt*Lt)+"v"+Xt*Lt:"M"+(at+Qt*Lt)+",0h"+Xt*Lt},ae.makeLabelFns=function(it,at,Lt){var xt=it.ticklabelposition||"",Zt=function(Ir){return xt.indexOf(Ir)!==-1},Xt=Zt("top"),Yt=Zt("left"),Qt=Zt("right"),Pt=Zt("bottom")||Yt||Xt||Qt,tn=Zt("inside"),Kt=xt==="inside"&&it.ticks==="inside"||!tn&&it.ticks==="outside"&&it.tickson!=="boundaries",fn=0,dn=0,vn=Kt?it.ticklen:0;if(tn?vn*=-1:Pt&&(vn=0),Kt&&(fn+=vn,Lt)){var Nn=w.deg2rad(Lt);fn=vn*Math.cos(Nn)+1,dn=vn*Math.sin(Nn)}it.showticklabels&&(Kt||it.showline)&&(fn+=.2*it.tickfont.size);var er,En,In,jn,xr,Sr={labelStandoff:fn+=(it.linewidth||1)/2*(tn?-1:1),labelShift:dn},ar=0,Fn=it.side,ir=it._id.charAt(0),Wn=it.tickangle;if(ir==="x")jn=(xr=!tn&&Fn==="bottom"||tn&&Fn==="top")?1:-1,tn&&(jn*=-1),er=dn*jn,En=at+fn*jn,In=xr?1:-.2,Math.abs(Wn)===90&&(tn?In+=ee:In=Wn===-90&&Fn==="bottom"?me:Wn===90&&Fn==="top"?ee:.5,ar=ee/2*(Wn/90)),Sr.xFn=function(Ir){return Ir.dx+er+ar*Ir.fontSize},Sr.yFn=function(Ir){return Ir.dy+En+Ir.fontSize*In},Sr.anchorFn=function(Ir,zr){if(Pt){if(Yt)return"end";if(Qt)return"start"}return b(zr)&&zr!==0&&zr!==180?zr*jn<0!==tn?"end":"start":"middle"},Sr.heightFn=function(Ir,zr,Fr){return zr<-60||zr>60?-.5*Fr:it.side==="top"!==tn?-Fr:0};else if(ir==="y"){if(jn=(xr=!tn&&Fn==="left"||tn&&Fn==="right")?1:-1,tn&&(jn*=-1),er=fn,En=dn*jn,In=0,tn||Math.abs(Wn)!==90||(In=Wn===-90&&Fn==="left"||Wn===90&&Fn==="right"?me:.5),tn){var Kn=b(Wn)?+Wn:0;if(Kn!==0){var _r=w.deg2rad(Kn);ar=Math.abs(Math.sin(_r))*me*jn,In=0}}Sr.xFn=function(Ir){return Ir.dx+at-(er+Ir.fontSize*In)*jn+ar*Ir.fontSize},Sr.yFn=function(Ir){return Ir.dy+En+Ir.fontSize*ee},Sr.anchorFn=function(Ir,zr){return b(zr)&&Math.abs(zr)===90?"middle":xr?"end":"start"},Sr.heightFn=function(Ir,zr,Fr){return it.side==="right"&&(zr*=-1),zr<-30?-Fr:zr<30?-.5*Fr:0}}return Sr},ae.drawTicks=function(it,at,Lt){Lt=Lt||{};var xt=at._id+"tick",Zt=[].concat(at.minor&&at.minor.ticks?Lt.vals.filter(function(Yt){return Yt.minor&&!Yt.noTick}):[]).concat(at.ticks?Lt.vals.filter(function(Yt){return!Yt.minor&&!Yt.noTick}):[]),Xt=Lt.layer.selectAll("path."+xt).data(Zt,qt);Xt.exit().remove(),Xt.enter().append("path").classed(xt,1).classed("ticks",1).classed("crisp",Lt.crisp!==!1).each(function(Yt){return u.stroke(c.select(this),Yt.minor?at.minor.tickcolor:at.tickcolor)}).style("stroke-width",function(Yt){return h.crispRound(it,Yt.minor?at.minor.tickwidth:at.tickwidth,1)+"px"}).attr("d",Lt.path).style("display",null),zt(at,[K]),Xt.attr("transform",Lt.transFn)},ae.drawGrid=function(it,at,Lt){if(Lt=Lt||{},at.tickmode!=="sync"){var xt=at._id+"grid",Zt=at.minor&&at.minor.showgrid,Xt=Zt?Lt.vals.filter(function(In){return In.minor}):[],Yt=at.showgrid?Lt.vals.filter(function(In){return!In.minor}):[],Qt=Lt.counterAxis;if(Qt&&ae.shouldShowZeroLine(it,at,Qt))for(var Pt=at.tickmode==="array",tn=0;tn=0;Nn--){var er=Nn?dn:vn;if(er){var En=er.selectAll("path."+xt).data(Nn?Yt:Xt,qt);En.exit().remove(),En.enter().append("path").classed(xt,1).classed("crisp",Lt.crisp!==!1),En.attr("transform",Lt.transFn).attr("d",Lt.path).each(function(In){return u.stroke(c.select(this),In.minor?at.minor.gridcolor:at.gridcolor||"#ddd")}).style("stroke-dasharray",function(In){return h.dashStyle(In.minor?at.minor.griddash:at.griddash,In.minor?at.minor.gridwidth:at.gridwidth)}).style("stroke-width",function(In){return(In.minor?fn:at._gw)+"px"}).style("display",null),typeof Lt.path=="function"&&En.attr("d",Lt.path)}}zt(at,[te,W])}},ae.drawZeroLine=function(it,at,Lt){Lt=Lt||Lt;var xt=at._id+"zl",Zt=ae.shouldShowZeroLine(it,at,Lt.counterAxis),Xt=Lt.layer.selectAll("path."+xt).data(Zt?[{x:0,id:at._id}]:[]);Xt.exit().remove(),Xt.enter().append("path").classed(xt,1).classed("zl",1).classed("crisp",Lt.crisp!==!1).each(function(){Lt.layer.selectAll("path").sort(function(Yt,Qt){return ve(Yt.id,Qt.id)})}),Xt.attr("transform",Lt.transFn).attr("d",Lt.path).call(u.stroke,at.zerolinecolor||u.defaultLine).style("stroke-width",h.crispRound(it,at.zerolinewidth,at._gw||1)+"px").style("display",null),zt(at,[X])},ae.drawLabels=function(it,at,Lt){Lt=Lt||{};var xt=it._fullLayout,Zt=at._id,Xt=Lt.cls||Zt+"tick",Yt=Lt.vals.filter(function(Kr){return Kr.text}),Qt=Lt.labelFns,Pt=Lt.secondary?0:at.tickangle,tn=(at._prevTickAngles||{})[Xt],Kt=Lt.layer.selectAll("g."+Xt).data(at.showticklabels?Yt:[],qt),fn=[];function dn(Kr,Co){Kr.each(function(so){var So=c.select(this),go=So.select(".text-math-group"),li=Qt.anchorFn(so,Co),Pn=Lt.transFn.call(So.node(),so)+(b(Co)&&+Co!=0?" rotate("+Co+","+Qt.xFn(so)+","+(Qt.yFn(so)-so.fontSize/2)+")":""),Yn=p.lineCount(So),br=he*so.fontSize,dr=Qt.heightFn(so,b(Co)?+Co:0,(Yn-1)*br);if(dr&&(Pn+=y(0,dr)),go.empty()){var Cr=So.select("text");Cr.attr({transform:Pn,"text-anchor":li}),Cr.style("opacity",1),at._adjustTickLabelsOverflow&&at._adjustTickLabelsOverflow()}else{var io=h.bBox(go.node()).width*{end:-.5,start:.5}[li];go.attr("transform",Pn+y(io,0))}})}Kt.enter().append("g").classed(Xt,1).append("text").attr("text-anchor","middle").each(function(Kr){var Co=c.select(this),so=it._promises.length;Co.call(p.positionText,Qt.xFn(Kr),Qt.yFn(Kr)).call(h.font,Kr.font,Kr.fontSize,Kr.fontColor).text(Kr.text).call(p.convertToTspans,it),it._promises[so]?fn.push(it._promises.pop().then(function(){dn(Co,Pt)})):dn(Co,Pt)}),zt(at,[oe]),Kt.exit().remove(),Lt.repositionOnUpdate&&Kt.each(function(Kr){c.select(this).select("text").call(p.positionText,Qt.xFn(Kr),Qt.yFn(Kr))}),at._adjustTickLabelsOverflow=function(){var Kr=at.ticklabeloverflow;if(Kr&&Kr!=="allow"){var Co=Kr.indexOf("hide")!==-1,so=at._id.charAt(0)==="x",So=0,go=so?it._fullLayout.width:it._fullLayout.height;if(Kr.indexOf("domain")!==-1){var li=w.simpleMap(at.range,at.r2l);So=at.l2p(li[0])+at._offset,go=at.l2p(li[1])+at._offset}var Pn=Math.min(So,go),Yn=Math.max(So,go),br=at.side,dr=1/0,Cr=-1/0;for(var io in Kt.each(function(bo){var Bn=c.select(this);if(Bn.select(".text-math-group").empty()){var hr=h.bBox(Bn.node()),hn=0;so?(hr.right>Yn||hr.leftYn||hr.top+(at.tickangle?0:bo.fontSize/4)at["_visibleLabelMin_"+li._id]?Wr.style("display","none"):Yn.K!=="tick"||Pn||Wr.style("display",null)})})})})},dn(Kt,tn+1?tn:Pt);var vn=null;at._selections&&(at._selections[Xt]=Kt);var Nn=[function(){return fn.length&&Promise.all(fn)}];at.automargin&&xt._redrawFromAutoMarginCount&&tn===90?(vn=tn,Nn.push(function(){dn(Kt,tn)})):Nn.push(function(){if(dn(Kt,Pt),Yt.length&&at.autotickangles&&(at.type!=="log"||String(at.dtick).charAt(0)!=="D")){vn=at.autotickangles[0];var Kr,Co=0,so=[],So=1;if(Kt.each(function(gr){Co=Math.max(Co,gr.fontSize);var vr=at.l2p(gr.x),nr=Ct(this),Qn=h.bBox(nr.node());So=Math.max(So,p.lineCount(nr)),so.push({top:0,bottom:10,height:10,left:vr-Qn.width/2,right:vr+Qn.width/2+2,width:Qn.width+2})}),at.tickson!=="boundaries"&&!at.showdividers||Lt.secondary){var go=Yt.length,li=Math.abs((Yt[go-1].x-Yt[0].x)*at._m)/(go-1),Pn=at.ticklabelposition||"",Yn=function(gr){return Pn.indexOf(gr)!==-1},br=Yn("top"),dr=Yn("left"),Cr=Yn("right"),io=Yn("bottom")||dr||br||Cr?(at.tickwidth||0)+6:0,Qr=li,Wr=1.25*Co*So,bo=Qr/Math.sqrt(Math.pow(Qr,2)+Math.pow(Wr,2)),Bn=at.autotickangles.map(function(gr){return gr*Math.PI/180}),hr=Bn.find(function(gr){return Math.abs(Math.cos(gr))<=bo});hr===void 0&&(hr=Bn.reduce(function(gr,vr){return Math.abs(Math.cos(gr))Fr*zr&&(Kn=zr,Fn[ar]=ir[ar]=_r[ar])}var Rr=Math.abs(Kn-Wn);Rr-jn>0?jn*=1+jn/(Rr-=jn):jn=0,at._id.charAt(0)!=="y"&&(jn=-jn),Fn[Sr]=En.p2d(En.d2p(ir[Sr])+xr*jn),En.autorange==="min"||En.autorange==="max reversed"?(Fn[0]=null,En._rangeInitial0=void 0,En._rangeInitial1=void 0):En.autorange!=="max"&&En.autorange!=="min reversed"||(Fn[1]=null,En._rangeInitial0=void 0,En._rangeInitial1=void 0),xt._insideTickLabelsUpdaterange[En._name+".range"]=Fn}var $r=w.syncOrAsync(Nn);return $r&&$r.then&&it._promises.push($r),$r},ae.getPxPosition=function(it,at){var Lt,xt=it._fullLayout._size,Zt=at._id.charAt(0),Xt=at.side;return at.anchor!=="free"?Lt=at._anchorAxis:Zt==="x"?Lt={_offset:xt.t+(1-(at.position||0))*xt.h,_length:0}:Zt==="y"&&(Lt={_offset:xt.l+(at.position||0)*xt.w+at._shift,_length:0}),Xt==="top"||Xt==="left"?Lt._offset:Xt==="bottom"||Xt==="right"?Lt._offset+Lt._length:void 0},ae.shouldShowZeroLine=function(it,at,Lt){var xt=w.simpleMap(at.range,at.r2l);return xt[0]*xt[1]<=0&&at.zeroline&&(at.type==="linear"||at.type==="-")&&!(at.rangebreaks&&at.maskBreaks(0)===U)&&(Gt(at,0)||!function(Zt,Xt,Yt,Qt){var Pt=Yt._mainAxis;if(Pt){var tn=Zt._fullLayout,Kt=Xt._id.charAt(0),fn=ae.counterLetter(Xt._id),dn=Xt._offset+(Math.abs(Qt[0])1)for(Qt=1;Qt2*k}(_,m))return"date";var M=v.autotypenumbers!=="strict";return function(T,E){for(var C=T.length,L=u(C),D=0,k=0,I={},z=0;z2*D}(_,M)?"category":function(T,E){for(var C=T.length,L=0;L=2){var I,z,$="";if(k.length===2){for(I=0;I<2;I++)if(z=T(k[I])){$=A;break}}var Q=D("pattern",$);if(Q===A)for(I=0;I<2;I++)(z=T(k[I]))&&(C.bounds[I]=k[I]=z-1);if(Q)for(I=0;I<2;I++)switch(z=k[I],Q){case A:if(!c(z)||(z=+z)!==Math.floor(z)||z<0||z>=7)return void(C.enabled=!1);C.bounds[I]=k[I]=z;break;case x:if(!c(z)||(z=+z)<0||z>24)return void(C.enabled=!1);C.bounds[I]=k[I]=z}if(L.autorange===!1){var j=L.range;if(j[0]j[1])return void(C.enabled=!1)}else if(k[0]>j[0]&&k[1]p?1:-1:+(O.substr(1)||1)-+(w.substr(1)||1)},l.ref2id=function(O){return!!/^[xyz]/.test(O)&&O.split(" ")[0]},l.isLinked=function(O,w){return i(w,O._axisMatchGroups)||i(w,O._axisConstraintGroups)}},22416:function(d,l,n){var c=n(38116).isTypedArraySpec;d.exports=function(b,i,O,w){if(i.type==="category"){var y,p=b.categoryarray,a=Array.isArray(p)&&p.length>0||c(p);a&&(y="array");var u,h=O("categoryorder",y);h==="array"&&(u=O("categoryarray")),a||h!=="array"||(h=i.categoryorder="trace"),h==="trace"?i._initialCategories=[]:h==="array"?i._initialCategories=u.slice():(u=function(m,v){var _,S,A,x=v.dataAttr||m._id.charAt(0),R={};if(v.axData)_=v.axData;else for(_=[],S=0;ST?E.substr(T):C.substr(M))+L:E+C+x*R:L}function S(x,R){for(var M=R._size,T=M.h/M.w,E={},C=Object.keys(x),L=0;Lp*j)||W){for(M=0;M<$.length;M++)if(L=X[E=$[M]],D=(C=te[E]).constrain,L!==U||D==="domain")if(k=L/U,D==="range")w(C,k);else{var K=C._inputDomain,oe=(C.domain[1]-C.domain[0])/(K[1]-K[0]),q=(C.r2l(C.range[1])-C.r2l(C.range[0]))/(C.r2l(C._inputRange[1])-C.r2l(C._inputRange[0]));if((k/=oe)*q<1){C.domain=C._input.domain=K.slice(),w(C,k);continue}if(q<1&&(C.range=C._input.range=C._inputRange.slice(),k*=q),C.autorange){var Y=C.r2l(C.range[0]),ee=C.r2l(C.range[1]),me=(Y+ee)/2,he=me,se=me,ae=Math.abs(ee-me),ce=me-ae*k*1.0001,de=me+ae*k*1.0001,ve=b.makePadFn(I,C,0),ye=b.makePadFn(I,C,1);A(C,k);var _e,Se,Te=Math.abs(C._m),Pe=b.concatExtremes(x,C),Ie=Pe.min,ze=Pe.max;for(Se=0;Sece&&_ese&&(se=_e);k/=(se-he)/(2*ae),he=C.l2r(he),se=C.l2r(se),C.range=C._input.range=Y=0?Math.min(_e,.9):1/(1/Math.max(_e,-.3)+3.222))}function Y(_e,Se,Te,Pe,Ie){return _e.append("path").attr("class","zoombox").style({fill:Se>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(Te,Pe)).attr("d",Ie+"Z")}function ee(_e,Se,Te){return _e.append("path").attr("class","zoombox-corners").style({fill:u.background,stroke:u.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(Se,Te)).attr("d","M0,0Z")}function me(_e,Se,Te,Pe,Ie,ze){_e.attr("d",Pe+"M"+Te.l+","+Te.t+"v"+Te.h+"h"+Te.w+"v-"+Te.h+"h-"+Te.w+"Z"),he(_e,Se,Ie,ze)}function he(_e,Se,Te,Pe){Te||(_e.transition().style("fill",Pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Se.transition().style("opacity",1).duration(200))}function se(_e){c.select(_e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ae(_e){U&&_e.data&&_e._context.showTips&&(b.notifier(b._(_e,"Double-click to zoom back out"),"long"),U=!1)}function ce(_e){var Se=Math.floor(Math.min(_e.b-_e.t,_e.r-_e.l,j)/2);return"M"+(_e.l-3.5)+","+(_e.t-.5+Se)+"h3v"+-Se+"h"+Se+"v-3h-"+(Se+3)+"ZM"+(_e.r+3.5)+","+(_e.t-.5+Se)+"h-3v"+-Se+"h"+-Se+"v-3h"+(Se+3)+"ZM"+(_e.r+3.5)+","+(_e.b+.5-Se)+"h-3v"+Se+"h"+-Se+"v3h"+(Se+3)+"ZM"+(_e.l-3.5)+","+(_e.b+.5-Se)+"h3v"+Se+"h"+Se+"v3h-"+(Se+3)+"Z"}function de(_e,Se,Te,Pe,Ie){for(var ze,De,He,Ve,$e=!1,Oe={},ke={},Le=(Ie||{}).xaHash,We=(Ie||{}).yaHash,Ue=0;Ue=0)Wn._fullLayout._deactivateShape(Wn);else{var Kn=Wn._fullLayout.clickmode;if(se(Wn),Fn!==2||_t||En(),Ct)Kn.indexOf("select")>-1&&I(ir,Wn,Le,We,Se.id,xt),Kn.indexOf("event")>-1&&m.click(Wn,ir,Se.id);else if(Fn===1&&_t){var _r=De?$e:Ve,Ir=De==="s"||He==="w"?0:1,zr=_r._name+".range["+Ir+"]",Fr=function(Kr,Co){var so,So=Kr.range[Co],go=Math.abs(So-Kr.range[1-Co]);return Kr.type==="date"?So:Kr.type==="log"?(so=Math.ceil(Math.max(0,-Math.log(go)/Math.LN10))+3,i("."+so+"g")(Math.pow(10,So))):(so=Math.floor(Math.log(Math.abs(So))/Math.LN10)-Math.floor(Math.log(go)/Math.LN10)+4,i("."+String(so)+"g")(So))}(_r,Ir),Rr="left",$r="middle";if(_r.fixedrange)return;De?($r=De==="n"?"top":"bottom",_r.side==="right"&&(Rr="right")):He==="e"&&(Rr="right"),Wn._context.showAxisRangeEntryBoxes&&c.select(bn).call(a.makeEditable,{gd:Wn,immediate:!0,background:Wn._fullLayout.paper_bgcolor,text:String(Fr),fill:_r.tickfont?_r.tickfont.color:"#444",horizontalAlign:Rr,verticalAlign:$r}).on("edit",function(Kr){var Co=_r.d2r(Kr);Co!==void 0&&y.call("_guiRelayout",Wn,zr,Co)})}}}function Yt(Fn,ir){if(_e._transitioningWithDuration)return!1;var Wn=Math.max(0,Math.min(Xe,qt*Fn+mn)),Kn=Math.max(0,Math.min(tt,en*ir+vt)),_r=Math.abs(Wn-mn),Ir=Math.abs(Kn-vt);function zr(){Rt="",bt.r=bt.l,bt.t=bt.b,at.attr("d","M0,0Z")}if(bt.l=Math.min(mn,Wn),bt.r=Math.max(mn,Wn),bt.t=Math.min(vt,Kn),bt.b=Math.max(vt,Kn),Ee.isSubplotConstrained)_r>j||Ir>j?(Rt="xy",_r/Xe>Ir/tt?(Ir=_r*tt/Xe,vt>Kn?bt.t=vt-Ir:bt.b=vt+Ir):(_r=Ir*Xe/tt,mn>Wn?bt.l=mn-_r:bt.r=mn+_r),at.attr("d",ce(bt))):zr();else if(Ne.isSubplotConstrained)if(_r>j||Ir>j){Rt="xy";var Fr=Math.min(bt.l/Xe,(tt-bt.b)/tt),Rr=Math.max(bt.r/Xe,(tt-bt.t)/tt);bt.l=Fr*Xe,bt.r=Rr*Xe,bt.b=(1-Fr)*tt,bt.t=(1-Rr)*tt,at.attr("d",ce(bt))}else zr();else!nt||Ir0){var $r;if(Ne.isSubplotConstrained||!je&&nt.length===1){for($r=0;$r1&&(Kn.maxallowed!==void 0&&Ge===(Kn.range[0]1&&(_r.maxallowed!==void 0&&ht===(_r.range[0]<_r.range[1]?"n":"s")||_r.minallowed!==void 0&&ht===(_r.range[0]<_r.range[1]?"s":"n"))&&(So=1,li=0),so||So){so||(so=1),So||(So=1);var br=Kn._offset-go/so,dr=_r._offset-li/So;Wn.clipRect.call(h.setTranslate,go,li).call(h.setScale,so,So),Wn.plot.call(h.setTranslate,br,dr).call(h.setScale,1/so,1/So),so===Wn.xScaleFactor&&So===Wn.yScaleFactor||(h.setPointGroupScale(Wn.zoomScalePts,so,So),h.setTextPointsScale(Wn.zoomScaleTxt,so,So)),h.hideOutsideRangePoints(Wn.clipOnAxisFalseTraces,Wn),Wn.xScaleFactor=so,Wn.yScaleFactor=So}}}}function xr(Fn,ir,Wn){return Fn.fixedrange?0:Ge&&Ee.xaHash[Fn._id]?ir:ht&&(Ee.isSubplotConstrained?Ee.xaHash:Ee.yaHash)[Fn._id]?Wn:0}function Sr(Fn,ir){return ir?(Fn.range=Fn._r.slice(),z(Fn,ir),ar(Fn,ir)):0}function ar(Fn,ir,Wn){return Fn._length*(1-ir)*M[Wn||Fn.constraintoward||"middle"]}return De.length*He.length!=1&&ve(bn,function(Fn){if(_e._context._scrollZoom.cartesian||_e._fullLayout._enablescrollzoom){if(Zt(),_e._transitioningWithDuration)return Fn.preventDefault(),void Fn.stopPropagation();nn(),clearTimeout(Kt);var ir=-Fn.deltaY;if(isFinite(ir)||(ir=Fn.wheelDelta/10),isFinite(ir)){var Wn,Kn=Math.exp(-Math.min(Math.max(ir,-20),20)/200),_r=dn.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Ir=(Fn.clientX-_r.left)/_r.width,zr=(_r.bottom-Fn.clientY)/_r.height;if(Ge){for(He||(Ir=.5),Wn=0;WnC[1]-.000244140625&&(O.domain=a),b.noneOrAll(i.domain,O.domain,a),O.tickmode==="sync"&&(O.tickmode="auto")}return w("layer"),O}},42568:function(d,l,n){var c=n(85024);d.exports=function(b,i,O,w,y){y||(y={});var p=y.tickSuffixDflt,a=c(b);O("tickprefix")&&O("showtickprefix",a),O("ticksuffix",p)&&O("showticksuffix",a)}},96312:function(d,l,n){var c=n(76808);d.exports=function(b,i,O,w){var y=i._template||{},p=i.type||y.type||"-";O("minallowed"),O("maxallowed");var a,u=O("range");u||w.noInsiderange||p==="log"||(!(a=O("insiderange"))||a[0]!==null&&a[1]!==null||(i.insiderange=!1,a=void 0),a&&(u=O("range",a)));var h,m=i.getAutorangeDflt(u,w),v=O("autorange",m);!u||(u[0]!==null||u[1]!==null)&&(u[0]!==null&&u[1]!==null||v!=="reversed"&&v!==!0)&&(u[0]===null||v!=="min"&&v!=="max reversed")&&(u[1]===null||v!=="max"&&v!=="min reversed")||(u=void 0,delete i.range,i.autorange=!0,h=!0),h||(v=O("autorange",m=i.getAutorangeDflt(u,w))),v&&(c(O,v,u),p!=="linear"&&p!=="-"||O("rangemode")),i.cleanRange()}},21160:function(d,l,n){var c=n(84284).FROM_BL;d.exports=function(b,i,O){O===void 0&&(O=c[b.constraintoward||"center"]);var w=[b.r2l(b.range[0]),b.r2l(b.range[1])],y=w[0]+(w[1]-w[0])*O;b.range=b._input.range=[b.l2r(y+(w[0]-y)*i),b.l2r(y+(w[1]-y)*i)],b.setScale()}},78344:function(d,l,n){var c=n(33428),b=n(94336).E9,i=n(3400),O=i.numberFormat,w=n(38248),y=i.cleanNumber,p=i.ms2DateTime,a=i.dateTime2ms,u=i.ensureNumber,h=i.isArrayOrTypedArray,m=n(39032),v=m.FP_SAFE,_=m.BADNUM,S=m.LOG_CLIP,A=m.ONEWEEK,x=m.ONEDAY,R=m.ONEHOUR,M=m.ONEMIN,T=m.ONESEC,E=n(79811),C=n(33816),L=C.HOUR_PATTERN,D=C.WEEKDAY_PATTERN;function k(z){return Math.pow(10,z)}function I(z){return z!=null}d.exports=function(z,$){$=$||{};var Q=z._id||"x",j=Q.charAt(0);function U(de,ve){if(de>0)return Math.log(de)/Math.LN10;if(de<=0&&ve&&z.range&&z.range.length===2){var ye=z.range[0],_e=z.range[1];return .5*(ye+_e-2*S*Math.abs(ye-_e))}return _}function X(de,ve,ye,_e){if((_e||{}).msUTC&&w(de))return+de;var Se=a(de,ye||z.calendar);if(Se===_){if(!w(de))return _;de=+de;var Te=Math.floor(10*i.mod(de+.05,1)),Pe=Math.round(de-Te/10);Se=a(new Date(Pe))+Te/10}return Se}function te(de,ve,ye){return p(de,ve,ye||z.calendar)}function W(de){return z._categories[Math.round(de)]}function K(de){if(I(de)){if(z._categoriesMap===void 0&&(z._categoriesMap={}),z._categoriesMap[de]!==void 0)return z._categoriesMap[de];z._categories.push(typeof de=="number"?String(de):de);var ve=z._categories.length-1;return z._categoriesMap[de]=ve,ve}return _}function oe(de){if(z._categoriesMap)return z._categoriesMap[de]}function q(de){var ve=oe(de);return ve!==void 0?ve:w(de)?+de:void 0}function Y(de){return w(de)?+de:oe(de)}function ee(de,ve,ye){return c.round(ye+ve*de,2)}function me(de,ve,ye){return(de-ye)/ve}var he=function(de){return w(de)?ee(de,z._m,z._b):_},se=function(de){return me(de,z._m,z._b)};if(z.rangebreaks){var ae=j==="y";he=function(de){if(!w(de))return _;var ve=z._rangebreaks.length;if(!ve)return ee(de,z._m,z._b);var ye=ae;z.range[0]>z.range[1]&&(ye=!ye);for(var _e=ye?-1:1,Se=_e*de,Te=0,Pe=0;Peze)){Te=Se<(Ie+ze)/2?Pe:Pe+1;break}Te=Pe+1}var De=z._B[Te]||0;return isFinite(De)?ee(de,z._m2,De):0},se=function(de){var ve=z._rangebreaks.length;if(!ve)return me(de,z._m,z._b);for(var ye=0,_e=0;_ez._rangebreaks[_e].pmax&&(ye=_e+1);return me(de,z._m2,z._B[ye])}}z.c2l=z.type==="log"?U:u,z.l2c=z.type==="log"?k:u,z.l2p=he,z.p2l=se,z.c2p=z.type==="log"?function(de,ve){return he(U(de,ve))}:he,z.p2c=z.type==="log"?function(de){return k(se(de))}:se,["linear","-"].indexOf(z.type)!==-1?(z.d2r=z.r2d=z.d2c=z.r2c=z.d2l=z.r2l=y,z.c2d=z.c2r=z.l2d=z.l2r=u,z.d2p=z.r2p=function(de){return z.l2p(y(de))},z.p2d=z.p2r=se,z.cleanPos=u):z.type==="log"?(z.d2r=z.d2l=function(de,ve){return U(y(de),ve)},z.r2d=z.r2c=function(de){return k(y(de))},z.d2c=z.r2l=y,z.c2d=z.l2r=u,z.c2r=U,z.l2d=k,z.d2p=function(de,ve){return z.l2p(z.d2r(de,ve))},z.p2d=function(de){return k(se(de))},z.r2p=function(de){return z.l2p(y(de))},z.p2r=se,z.cleanPos=u):z.type==="date"?(z.d2r=z.r2d=i.identity,z.d2c=z.r2c=z.d2l=z.r2l=X,z.c2d=z.c2r=z.l2d=z.l2r=te,z.d2p=z.r2p=function(de,ve,ye){return z.l2p(X(de,0,ye))},z.p2d=z.p2r=function(de,ve,ye){return te(se(de),ve,ye)},z.cleanPos=function(de){return i.cleanDate(de,_,z.calendar)}):z.type==="category"?(z.d2c=z.d2l=K,z.r2d=z.c2d=z.l2d=W,z.d2r=z.d2l_noadd=q,z.r2c=function(de){var ve=Y(de);return ve!==void 0?ve:z.fraction2r(.5)},z.l2r=z.c2r=u,z.r2l=Y,z.d2p=function(de){return z.l2p(z.r2c(de))},z.p2d=function(de){return W(se(de))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(de){return typeof de=="string"&&de!==""?de:u(de)}):z.type==="multicategory"&&(z.r2d=z.c2d=z.l2d=W,z.d2r=z.d2l_noadd=q,z.r2c=function(de){var ve=q(de);return ve!==void 0?ve:z.fraction2r(.5)},z.r2c_just_indices=oe,z.l2r=z.c2r=u,z.r2l=q,z.d2p=function(de){return z.l2p(z.r2c(de))},z.p2d=function(de){return W(se(de))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(de){return Array.isArray(de)||typeof de=="string"&&de!==""?de:u(de)},z.setupMultiCategory=function(de){var ve,ye,_e=z._traceIndices,Se=z._matchGroup;if(Se&&z._categories.length===0){for(var Te in Se)if(Te!==Q){var Pe=$[E.id2name(Te)];_e=_e.concat(Pe._traceIndices)}}var Ie=[[0,{}],[0,{}]],ze=[];for(ve=0;ve<_e.length;ve++){var De=de[_e[ve]];if(j in De){var He=De[j],Ve=De._length||i.minRowLength(He);if(h(He[0])&&h(He[1]))for(ye=0;yePe[1]&&(_e[Te?0:1]=ye),_e[0]===_e[1]){var Ie=z.l2r(ve),ze=z.l2r(ye);if(ve!==void 0){var De=Ie+1;ye!==void 0&&(De=Math.min(De,ze)),_e[Te?1:0]=De}if(ye!==void 0){var He=ze+1;ve!==void 0&&(He=Math.max(He,Ie)),_e[Te?0:1]=He}}}},z.cleanRange=function(de,ve){z._cleanRange(de,ve),z.limitRange(de)},z._cleanRange=function(de,ve){ve||(ve={}),de||(de="range");var ye,_e,Se=i.nestedProperty(z,de).get();if(_e=(_e=z.type==="date"?i.dfltRange(z.calendar):j==="y"?C.DFLTRANGEY:z._name==="realaxis"?[0,1]:ve.dfltRange||C.DFLTRANGEX).slice(),z.rangemode!=="tozero"&&z.rangemode!=="nonnegative"||(_e[0]=0),Se&&Se.length===2){var Te=Se[0]===null,Pe=Se[1]===null;for(z.type!=="date"||z.autorange||(Se[0]=i.cleanDate(Se[0],_,z.calendar),Se[1]=i.cleanDate(Se[1],_,z.calendar)),ye=0;ye<2;ye++)if(z.type==="date"){if(!i.isDateTime(Se[ye],z.calendar)){z[de]=_e;break}if(z.r2l(Se[0])===z.r2l(Se[1])){var Ie=i.constrain(z.r2l(Se[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);Se[0]=z.l2r(Ie-1e3),Se[1]=z.l2r(Ie+1e3);break}}else{if(!w(Se[ye])){if(Te||Pe||!w(Se[1-ye])){z[de]=_e;break}Se[ye]=Se[1-ye]*(ye?10:.1)}if(Se[ye]<-v?Se[ye]=-v:Se[ye]>v&&(Se[ye]=v),Se[0]===Se[1]){var ze=Math.max(1,Math.abs(1e-6*Se[0]));Se[0]-=ze,Se[1]+=ze}}}else i.nestedProperty(z,de).set(_e)},z.setScale=function(de){var ve=$._size;if(z.overlaying){var ye=E.getFromId({_fullLayout:$},z.overlaying);z.domain=ye.domain}var _e=de&&z._r?"_r":"range",Se=z.calendar;z.cleanRange(_e);var Te,Pe,Ie=z.r2l(z[_e][0],Se),ze=z.r2l(z[_e][1],Se),De=j==="y";if(De?(z._offset=ve.t+(1-z.domain[1])*ve.h,z._length=ve.h*(z.domain[1]-z.domain[0]),z._m=z._length/(Ie-ze),z._b=-z._m*ze):(z._offset=ve.l+z.domain[0]*ve.w,z._length=ve.w*(z.domain[1]-z.domain[0]),z._m=z._length/(ze-Ie),z._b=-z._m*Ie),z._rangebreaks=[],z._lBreaks=0,z._m2=0,z._B=[],z.rangebreaks&&(z._rangebreaks=z.locateBreaks(Math.min(Ie,ze),Math.max(Ie,ze)),z._rangebreaks.length)){for(Te=0;Teze&&(He=!He),He&&z._rangebreaks.reverse();var Ve=He?-1:1;for(z._m2=Ve*z._length/(Math.abs(ze-Ie)-z._lBreaks),z._B.push(-z._m2*(De?ze:Ie)),Te=0;Te_e&&(_e+=7,Se_e&&(_e+=24,Se=ye&&Se<_e)return _}else for(var He=Pe._cachedValues[Ie],Ve=0;Ve=ye&&de<_e)return _}}return de},z.locateBreaks=function(de,ve){var ye,_e,Se,Te,Pe=[];if(!z.rangebreaks)return Pe;var Ie=z.rangebreaks.slice().sort(function(Ze,Xe){return Ze.pattern===D&&Xe.pattern===L?-1:Xe.pattern===D&&Ze.pattern===L?1:0}),ze=function(Ze,Xe){if((Ze=i.constrain(Ze,de,ve))!==(Xe=i.constrain(Xe,de,ve))){for(var tt=!0,Ee=0;Ee=Ne.min&&(ZeNe.max&&(Ne.max=Xe),tt=!1)}tt&&Pe.push({min:Ze,max:Xe})}};for(ye=0;yea.duration?(function(){for(var L={},D=0;D rect").call(O.setTranslate,0,0).call(O.setScale,1,1),M.plot.call(O.setTranslate,T._offset,E._offset).call(O.setScale,1,1);var C=M.plot.selectAll(".scatterlayer .trace");C.selectAll(".point").call(O.setPointGroupScale,1,1),C.selectAll(".textpoint").call(O.setTextPointsScale,1,1),C.call(O.hideOutsideRangePoints,M)}function R(M,T){var E=M.plotinfo,C=E.xaxis,L=E.yaxis,D=C._length,k=L._length,I=!!M.xr1,z=!!M.yr1,$=[];if(I){var Q=i.simpleMap(M.xr0,C.r2l),j=i.simpleMap(M.xr1,C.r2l),U=Q[1]-Q[0],X=j[1]-j[0];$[0]=(Q[0]*(1-T)+T*j[0]-Q[0])/(Q[1]-Q[0])*D,$[2]=D*(1-T+T*X/U),C.range[0]=C.l2r(Q[0]*(1-T)+T*j[0]),C.range[1]=C.l2r(Q[1]*(1-T)+T*j[1])}else $[0]=0,$[2]=D;if(z){var te=i.simpleMap(M.yr0,L.r2l),W=i.simpleMap(M.yr1,L.r2l),K=te[1]-te[0],oe=W[1]-W[0];$[1]=(te[1]*(1-T)+T*W[1]-te[1])/(te[0]-te[1])*k,$[3]=k*(1-T+T*oe/K),L.range[0]=C.l2r(te[0]*(1-T)+T*W[0]),L.range[1]=L.l2r(te[1]*(1-T)+T*W[1])}else $[1]=0,$[3]=k;w.drawOne(y,C,{skipTitle:!0}),w.drawOne(y,L,{skipTitle:!0}),w.redrawComponents(y,[C._id,L._id]);var q=I?D/$[2]:1,Y=z?k/$[3]:1,ee=I?$[0]:0,me=z?$[1]:0,he=I?$[0]/$[2]*D:0,se=z?$[1]/$[3]*k:0,ae=C._offset-he,ce=L._offset-se;E.clipRect.call(O.setTranslate,ee,me).call(O.setScale,1/q,1/Y),E.plot.call(O.setTranslate,ae,ce).call(O.setScale,q,Y),O.setPointGroupScale(E.zoomScalePts,1/q,1/Y),O.setTextPointsScale(E.zoomScaleTxt,1/q,1/Y)}w.redrawComponents(y)}},14944:function(d,l,n){var c=n(24040).traceIs,b=n(52976);function i(w){return{v:"x",h:"y"}[w.orientation||"v"]}function O(w,y){var p=i(w),a=c(w,"box-violin"),u=c(w._fullInput||{},"candlestick");return a&&!u&&y===p&&w[p]===void 0&&w[p+"0"]===void 0}d.exports=function(w,y,p,a){p("autotypenumbers",a.autotypenumbersDflt),p("type",(a.splomStash||{}).type)==="-"&&(function(u,h){if(u.type==="-"){var m,v=u._id,_=v.charAt(0);v.indexOf("scene")!==-1&&(v=_);var S=function(L,D,k){for(var I=0;I0&&(z["_"+k+"axes"]||{})[D]||(z[k+"axis"]||k)===D&&(O(z,k)||(z[k]||[]).length||z[k+"0"]))return z}}(h,v,_);if(S)if(S.type!=="histogram"||_!=={v:"y",h:"x"}[S.orientation||"v"]){var A=_+"calendar",x=S[A],R={noMultiCategory:!c(S,"cartesian")||c(S,"noMultiCategory")};if(S.type==="box"&&S._hasPreCompStats&&_==={h:"x",v:"y"}[S.orientation||"v"]&&(R.noMultiCategory=!0),R.autotypenumbers=u.autotypenumbers,O(S,_)){var M=i(S),T=[];for(m=0;m0?".":"")+m;b.isPlainObject(v)?y(v,a,_,h+1):a(_,m,v)}})}l.manageCommandObserver=function(p,a,u,h){var m={},v=!0;a&&a._commandObserver&&(m=a._commandObserver),m.cache||(m.cache={}),m.lookupTable={};var _=l.hasSimpleAPICommandBindings(p,u,m.lookupTable);if(a&&a._commandObserver){if(_)return m;if(a._commandObserver.remove)return a._commandObserver.remove(),a._commandObserver=null,m}if(_){i(p,_,m.cache),m.check=function(){if(v){var x=i(p,_,m.cache);return x.changed&&h&&m.lookupTable[x.value]!==void 0&&(m.disable(),Promise.resolve(h({value:x.value,type:_.type,prop:_.prop,traces:_.traces,index:m.lookupTable[x.value]})).then(m.enable,m.enable)),x.changed}};for(var S=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],A=0;A0&&X<0&&(X+=360);var K=(X-U)/4;return{type:"Polygon",coordinates:[[[U,te],[U,W],[U+K,W],[U+2*K,W],[U+3*K,W],[X,W],[X,te],[X-K,te],[X-2*K,te],[X-3*K,te],[U,te]]]}}d.exports=function($){return new k($)},I.plot=function($,Q,j,U){var X=this;if(U)return X.update($,Q,!0);X._geoCalcData=$,X._fullLayout=Q;var te=Q[this.id],W=[],K=!1;for(var oe in E.layerNameToAdjective)if(oe!=="frame"&&te["show"+oe]){K=!0;break}for(var q=!1,Y=0;Y<$.length;Y++){var ee=$[0][0].trace;ee._geo=X,ee.locationmode&&(K=!0);var me=ee.marker;if(me){var he=me.angle,se=me.angleref;(he||se==="north"||se==="previous")&&(q=!0)}}if(this._hasMarkerAngles=q,K){var ae=L.getTopojsonName(te);X.topojson!==null&&ae===X.topojsonName||(X.topojsonName=ae,PlotlyGeoAssets.topojson[X.topojsonName]===void 0&&W.push(X.fetchTopojson()))}W=W.concat(C.fetchTraceGeoData($)),j.push(new Promise(function(ce,de){Promise.all(W).then(function(){X.topojson=PlotlyGeoAssets.topojson[X.topojsonName],X.update($,Q),ce()}).catch(de)}))},I.fetchTopojson=function(){var $=this,Q=L.getTopojsonPath($.topojsonURL,$.topojsonName);return new Promise(function(j,U){c.json(Q,function(X,te){if(X)return X.status===404?U(new Error(["plotly.js could not find topojson file at",Q+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):U(new Error(["unexpected error while fetching topojson file at",Q].join(" ")));PlotlyGeoAssets.topojson[$.topojsonName]=te,j()})})},I.update=function($,Q,j){var U=Q[this.id];this.hasChoropleth=!1;for(var X=0;X<$.length;X++){var te=$[X],W=te[0].trace;W.type==="choropleth"&&(this.hasChoropleth=!0),W.visible===!0&&W._length>0&&W._module.calcGeoJSON(te,Q)}if(!j){if(this.updateProjection($,Q))return;this.viewInitial&&this.scope===U.scope||this.saveViewInitial(U)}this.scope=U.scope,this.updateBaseLayers(Q,U),this.updateDims(Q,U),this.updateFx(Q,U),v.generalUpdatePerTraceModule(this.graphDiv,this,$,U);var K=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=K.selectAll(".point"),this.dataPoints.text=K.selectAll("text"),this.dataPaths.line=K.selectAll(".js-line");var oe=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=oe.selectAll("path"),this._render()},I.updateProjection=function($,Q){var j=this.graphDiv,U=Q[this.id],X=Q._size,te=U.domain,W=U.projection,K=U.lonaxis,oe=U.lataxis,q=K._ax,Y=oe._ax,ee=this.projection=function(ke){var Le=ke.projection,We=Le.type,Ue=E.projNames[We];Ue="geo"+p.titleCase(Ue);for(var Ze=(b[Ue]||w[Ue])(),Xe=ke._isSatellite?180*Math.acos(1/Le.distance)/Math.PI:ke._isClipped?E.lonaxisSpan[We]/2:null,tt=["center","rotate","parallels","clipExtent"],Ee=function(nt){return nt?Ze:[]},Ne=0;NeXe*Math.PI/180}return!1},Ze.getPath=function(){return i().projection(Ze)},Ze.getBounds=function(nt){return Ze.getPath().bounds(nt)},Ze.precision(E.precision),ke._isSatellite&&Ze.tilt(Le.tilt).distance(Le.distance),Xe&&Ze.clipAngle(Xe-E.clipPad),Ze}(U),me=[[X.l+X.w*te.x[0],X.t+X.h*(1-te.y[1])],[X.l+X.w*te.x[1],X.t+X.h*(1-te.y[0])]],he=U.center||{},se=W.rotation||{},ae=K.range||[],ce=oe.range||[];if(U.fitbounds){q._length=me[1][0]-me[0][0],Y._length=me[1][1]-me[0][1],q.range=S(j,q),Y.range=S(j,Y);var de=(q.range[0]+q.range[1])/2,ve=(Y.range[0]+Y.range[1])/2;if(U._isScoped)he={lon:de,lat:ve};else if(U._isClipped){he={lon:de,lat:ve},se={lon:de,lat:ve,roll:se.roll};var ye=W.type,_e=E.lonaxisSpan[ye]/2||180,Se=E.lataxisSpan[ye]/2||90;ae=[de-_e,de+_e],ce=[ve-Se,ve+Se]}else he={lon:de,lat:ve},se={lon:de,lat:se.lat,roll:se.roll}}ee.center([he.lon-se.lon,he.lat-se.lat]).rotate([-se.lon,-se.lat,se.roll]).parallels(W.parallels);var Te=z(ae,ce);ee.fitExtent(me,Te);var Pe=this.bounds=ee.getBounds(Te),Ie=this.fitScale=ee.scale(),ze=ee.translate();if(U.fitbounds){var De=ee.getBounds(z(q.range,Y.range)),He=Math.min((Pe[1][0]-Pe[0][0])/(De[1][0]-De[0][0]),(Pe[1][1]-Pe[0][1])/(De[1][1]-De[0][1]));isFinite(He)?ee.scale(He*Ie):p.warn("Something went wrong during"+this.id+"fitbounds computations.")}else ee.scale(W.scale*Ie);var Ve=this.midPt=[(Pe[0][0]+Pe[1][0])/2,(Pe[0][1]+Pe[1][1])/2];if(ee.translate([ze[0]+(Ve[0]-ze[0]),ze[1]+(Ve[1]-ze[1])]).clipExtent(Pe),U._isAlbersUsa){var $e=ee([he.lon,he.lat]),Oe=ee.translate();ee.translate([Oe[0]-($e[0]-Oe[0]),Oe[1]-($e[1]-Oe[1])])}},I.updateBaseLayers=function($,Q){var j=this,U=j.topojson,X=j.layers,te=j.basePaths;function W(ee){return ee==="lonaxis"||ee==="lataxis"}function K(ee){return!!E.lineLayers[ee]}function oe(ee){return!!E.fillLayers[ee]}var q=(this.hasChoropleth?E.layersForChoropleth:E.layers).filter(function(ee){return K(ee)||oe(ee)?Q["show"+ee]:!W(ee)||Q[ee].showgrid}),Y=j.framework.selectAll(".layer").data(q,String);Y.exit().each(function(ee){delete X[ee],delete te[ee],c.select(this).remove()}),Y.enter().append("g").attr("class",function(ee){return"layer "+ee}).each(function(ee){var me=X[ee]=c.select(this);ee==="bg"?j.bgRect=me.append("rect").style("pointer-events","all"):W(ee)?te[ee]=me.append("path").style("fill","none"):ee==="backplot"?me.append("g").classed("choroplethlayer",!0):ee==="frontplot"?me.append("g").classed("scatterlayer",!0):K(ee)?te[ee]=me.append("path").style("fill","none").style("stroke-miterlimit",2):oe(ee)&&(te[ee]=me.append("path").style("stroke","none"))}),Y.order(),Y.each(function(ee){var me=te[ee],he=E.layerNameToAdjective[ee];ee==="frame"?me.datum(E.sphereSVG):K(ee)||oe(ee)?me.datum(D(U,U.objects[ee])):W(ee)&&me.datum(function(se,ae,ce){var de,ve,ye,_e=ae[se],Se=E.scopeDefaults[ae.scope];se==="lonaxis"?(de=Se.lonaxisRange,ve=Se.lataxisRange,ye=function(Oe,ke){return[Oe,ke]}):se==="lataxis"&&(de=Se.lataxisRange,ve=Se.lonaxisRange,ye=function(Oe,ke){return[ke,Oe]});var Te={type:"linear",range:[de[0],de[1]-1e-6],tick0:_e.tick0,dtick:_e.dtick};_.setConvert(Te,ce);var Pe=_.calcTicks(Te);ae.isScoped||se!=="lonaxis"||Pe.pop();for(var Ie=Pe.length,ze=new Array(Ie),De=0;De-1&&M(c.event,U,[j.xaxis],[j.yaxis],j.id,K),W.indexOf("event")>-1&&m.click(U,c.event))})}function oe(q){return j.projection.invert([q[0]+j.xaxis._offset,q[1]+j.yaxis._offset])}},I.makeFramework=function(){var $=this,Q=$.graphDiv,j=Q._fullLayout,U="clip"+j._uid+$.id;$.clipDef=j._clips.append("clipPath").attr("id",U),$.clipRect=$.clipDef.append("rect"),$.framework=c.select($.container).append("g").attr("class","geo "+$.id).call(h.setClipUrl,U,Q),$.project=function(X){var te=$.projection(X);return te?[te[0]-$.xaxis._offset,te[1]-$.yaxis._offset]:[null,null]},$.xaxis={_id:"x",c2p:function(X){return $.project(X)[0]}},$.yaxis={_id:"y",c2p:function(X){return $.project(X)[1]}},$.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},_.setConvert($.mockAxis,j)},I.saveViewInitial=function($){var Q,j=$.center||{},U=$.projection,X=U.rotation||{};this.viewInitial={fitbounds:$.fitbounds,"projection.scale":U.scale},Q=$._isScoped?{"center.lon":j.lon,"center.lat":j.lat}:$._isClipped?{"projection.rotation.lon":X.lon,"projection.rotation.lat":X.lat}:{"center.lon":j.lon,"center.lat":j.lat,"projection.rotation.lon":X.lon},p.extendFlat(this.viewInitial,Q)},I.render=function($){this._hasMarkerAngles&&$?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},I._render=function(){var $,Q=this.projection,j=Q.getPath();function U(te){var W=Q(te.lonlat);return W?a(W[0],W[1]):null}function X(te){return Q.isLonLatOverEdges(te.lonlat)?"none":null}for($ in this.basePaths)this.basePaths[$].attr("d",j);for($ in this.dataPaths)this.dataPaths[$].attr("d",function(te){return j(te.geojson)});for($ in this.dataPoints)this.dataPoints[$].attr("display",X).attr("transform",U)}},10816:function(d,l,n){var c=n(84888).KY,b=n(3400).counterRegex,i=n(43520),O="geo",w=b(O),y={};y[O]={valType:"subplotid",dflt:O,editType:"calc"},d.exports={attr:O,name:O,idRoot:O,idRegex:w,attrRegex:w,attributes:y,layoutAttributes:n(40384),supplyLayoutDefaults:n(86920),plot:function(p){for(var a=p._fullLayout,u=p.calcdata,h=a._subplots[O],m=0;m0&&oe<0&&(oe+=360);var q,Y,ee,me=(K+oe)/2;if(!R){var he=M?A.projRotate:[me,0,0];q=h("projection.rotation.lon",he[0]),h("projection.rotation.lat",he[1]),h("projection.rotation.roll",he[2]),h("showcoastlines",!M&&D)&&(h("coastlinecolor"),h("coastlinewidth")),h("showocean",!!D&&void 0)&&h("oceancolor")}R?(Y=-96.6,ee=38.7):(Y=M?me:q,ee=(W[0]+W[1])/2),h("center.lon",Y),h("center.lat",ee),T&&(h("projection.tilt"),h("projection.distance")),E&&h("projection.parallels",A.projParallels||[0,60]),h("projection.scale"),h("showland",!!D&&void 0)&&h("landcolor"),h("showlakes",!!D&&void 0)&&h("lakecolor"),h("showrivers",!!D&&void 0)&&(h("rivercolor"),h("riverwidth")),h("showcountries",M&&S!=="usa"&&D)&&(h("countrycolor"),h("countrywidth")),(S==="usa"||S==="north america"&&_===50)&&(h("showsubunits",D),h("subunitcolor"),h("subunitwidth")),M||h("showframe",D)&&(h("framecolor"),h("framewidth")),h("bgcolor"),h("fitbounds")&&(delete u.projection.scale,M?(delete u.center.lon,delete u.center.lat):C?(delete u.center.lon,delete u.center.lat,delete u.projection.rotation.lon,delete u.projection.rotation.lat,delete u.lonaxis.range,delete u.lataxis.range):(delete u.center.lon,delete u.center.lat,delete u.projection.rotation.lon))}d.exports=function(a,u,h){b(a,u,h,{type:"geo",attributes:w,handleDefaults:p,fullData:h,partition:"y"})}},79248:function(d,l,n){var c=n(33428),b=n(3400),i=n(24040),O=Math.PI/180,w=180/Math.PI,y={cursor:"pointer"},p={cursor:"auto"};function a(M,T){return c.behavior.zoom().translate(T.translate()).scale(T.scale())}function u(M,T,E){var C=M.id,L=M.graphDiv,D=L.layout,k=D[C],I=L._fullLayout,z=I[C],$={},Q={};function j(U,X){$[C+"."+U]=b.nestedProperty(k,U).get(),i.call("_storeDirectGUIEdit",D,I._preGUI,$);var te=b.nestedProperty(z,U);te.get()!==X&&(te.set(X),b.nestedProperty(k,U).set(X),Q[C+"."+U]=X)}E(j),j("projection.scale",T.scale()/M.fitScale),j("fitbounds",!1),L.emit("plotly_relayout",Q)}function h(M,T){var E=a(0,T);function C(L){var D=T.invert(M.midPt);L("center.lon",D[0]),L("center.lat",D[1])}return E.on("zoomstart",function(){c.select(this).style(y)}).on("zoom",function(){T.scale(c.event.scale).translate(c.event.translate),M.render(!0);var L=T.invert(M.midPt);M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.center.lon":L[0],"geo.center.lat":L[1]})}).on("zoomend",function(){c.select(this).style(p),u(M,T,C)}),E}function m(M,T){var E,C,L,D,k,I,z,$,Q,j=a(0,T);function U(te){return T.invert(te)}function X(te){var W=T.rotate(),K=T.invert(M.midPt);te("projection.rotation.lon",-W[0]),te("center.lon",K[0]),te("center.lat",K[1])}return j.on("zoomstart",function(){c.select(this).style(y),E=c.mouse(this),C=T.rotate(),L=T.translate(),D=C,k=U(E)}).on("zoom",function(){if(I=c.mouse(this),function(K){var oe=U(K);if(!oe)return!0;var q=T(oe);return Math.abs(q[0]-K[0])>2||Math.abs(q[1]-K[1])>2}(E))return j.scale(T.scale()),void j.translate(T.translate());T.scale(c.event.scale),T.translate([L[0],c.event.translate[1]]),k?U(I)&&($=U(I),z=[D[0]+($[0]-k[0]),C[1],C[2]],T.rotate(z),D=z):k=U(E=I),Q=!0,M.render(!0);var te=T.rotate(),W=T.invert(M.midPt);M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.center.lon":W[0],"geo.center.lat":W[1],"geo.projection.rotation.lon":-te[0]})}).on("zoomend",function(){c.select(this).style(p),Q&&u(M,T,X)}),j}function v(M,T){var E;T.rotate(),T.scale();var C=a(0,T),L=function(z){for(var $=0,Q=arguments.length,j=[];++$Ge?(Ze=(je>0?90:-90)-ot,Ue=0):(Ze=Math.asin(je/Ge)*w-ot,Ue=Math.sqrt(Ge*Ge-je*je));var ht=180-Ze-2*ot,pt=(Math.atan2(nt,Ne)-Math.atan2(Ee,Ue))*w,wt=(Math.atan2(nt,Ne)-Math.atan2(Ee,-Ue))*w;return S(Le[0],Le[1],Ze,pt)<=S(Le[0],Le[1],ht,wt)?[Ze,pt,Le[2]]:[ht,wt,Le[2]]}(Ve,E,me);isFinite($e[0])&&isFinite($e[1])&&isFinite($e[2])||($e=me),T.rotate($e),me=$e}}else E=_(T,Y=ze);L.of(this,arguments)({type:"zoom"})}),q=L.of(this,arguments),D++||q({type:"zoomstart"})}).on("zoomend",function(){var z;c.select(this).style(p),k.call(C,"zoom",null),z=L.of(this,arguments),--D||z({type:"zoomend"}),u(M,T,I)}).on("zoom.redraw",function(){M.render(!0);var z=T.rotate();M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.projection.rotation.lon":-z[0],"geo.projection.rotation.lat":-z[1]})}),c.rebind(C,L,"on")}function _(M,T){var E=M.invert(T);return E&&isFinite(E[0])&&isFinite(E[1])&&function(C){var L=C[0]*O,D=C[1]*O,k=Math.cos(D);return[k*Math.cos(L),k*Math.sin(L),Math.sin(D)]}(E)}function S(M,T,E,C){var L=A(E-M),D=A(C-T);return Math.sqrt(L*L+D*D)}function A(M){return(M%360+540)%360-180}function x(M,T,E){var C=E*O,L=M.slice(),D=T===0?1:0,k=T===2?1:2,I=Math.cos(C),z=Math.sin(C);return L[D]=M[D]*I-M[k]*z,L[k]=M[k]*I+M[D]*z,L}function R(M,T){for(var E=0,C=0,L=M.length;CMath.abs(R)?(h.boxEnd[1]=h.boxStart[1]+Math.abs(x)*j*(R>=0?1:-1),h.boxEnd[1]M[3]&&(h.boxEnd[1]=M[3],h.boxEnd[0]=h.boxStart[0]+(M[3]-h.boxStart[1])/Math.abs(j))):(h.boxEnd[0]=h.boxStart[0]+Math.abs(R)/j*(x>=0?1:-1),h.boxEnd[0]M[2]&&(h.boxEnd[0]=M[2],h.boxEnd[1]=h.boxStart[1]+(M[2]-h.boxStart[0])*Math.abs(j)))}}else h.boxEnabled?(x=h.boxStart[0]!==h.boxEnd[0],R=h.boxStart[1]!==h.boxEnd[1],x||R?(x&&(k(0,h.boxStart[0],h.boxEnd[0]),p.xaxis.autorange=!1),R&&(k(1,h.boxStart[1],h.boxEnd[1]),p.yaxis.autorange=!1),p.relayoutCallback()):p.glplot.setDirty(),h.boxEnabled=!1,h.boxInited=!1):h.boxInited&&(h.boxInited=!1);break;case"pan":h.boxEnabled=!1,h.boxInited=!1,_?(h.panning||(h.dragStart[0]=S,h.dragStart[1]=A),Math.abs(h.dragStart[0]-S).999&&(C="turntable"):C="turntable")}else C="turntable";v("dragmode",C),v("hovermode",_.getDfltFromLayout("hovermode"))}d.exports=function(h,m,v){var _=m._basePlotModules.length>1;O(h,m,v,{type:a,attributes:y,handleDefaults:u,fullLayout:m,font:m.font,fullData:v,getDfltFromLayout:function(S){if(!_)return c.validate(h[S],y[S])?h[S]:void 0},autotypenumbersDflt:m.autotypenumbers,paper_bgcolor:m.paper_bgcolor,calendar:m.calendar})}},346:function(d,l,n){var c=n(86140),b=n(86968).u,i=n(92880).extendFlat,O=n(3400).counterRegex;function w(y,p,a){return{x:{valType:"number",dflt:y,editType:"camera"},y:{valType:"number",dflt:p,editType:"camera"},z:{valType:"number",dflt:a,editType:"camera"},editType:"camera"}}d.exports={_arrayAttrRegexps:[O("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:i(w(0,0,1),{}),center:i(w(0,0,0),{}),eye:i(w(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:b({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:c,yaxis:c,zaxis:c,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(d,l,n){var c=n(43080),b=["xaxis","yaxis","zaxis"];function i(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}i.prototype.merge=function(O){for(var w=0;w<3;++w){var y=O[b[w]];y.visible?(this.enabled[w]=y.showspikes,this.colors[w]=c(y.spikecolor),this.drawSides[w]=y.spikesides,this.lineWidth[w]=y.spikethickness):(this.enabled[w]=!1,this.drawSides[w]=!1)}},d.exports=function(O){var w=new i;return w.merge(O),w}},87152:function(d,l,n){d.exports=function(w){for(var y=w.axesOptions,p=w.glplot.axesPixels,a=w.fullSceneLayout,u=[[],[],[]],h=0;h<3;++h){var m=a[i[h]];if(m._length=(p[h].hi-p[h].lo)*p[h].pixelsPerDataUnit/w.dataScale[h],Math.abs(m._length)===1/0||isNaN(m._length))u[h]=[];else{m._input_range=m.range.slice(),m.range[0]=p[h].lo/w.dataScale[h],m.range[1]=p[h].hi/w.dataScale[h],m._m=1/(w.dataScale[h]*p[h].pixelsPerDataUnit),m.range[0]===m.range[1]&&(m.range[0]-=1,m.range[1]+=1);var v=m.tickmode;if(m.tickmode==="auto"){m.tickmode="linear";var _=m.nticks||b.constrain(m._length/40,4,9);c.autoTicks(m,Math.abs(m.range[1]-m.range[0])/_)}for(var S=c.calcTicks(m,{msUTC:!0}),A=0;A/g," "));u[h]=S,m.tickmode=v}}for(y.ticks=u,h=0;h<3;++h)for(O[h]=.5*(w.glplot.bounds[0][h]+w.glplot.bounds[1][h]),A=0;A<2;++A)y.bounds[A][h]=w.glplot.bounds[A][h];w.contourLevels=function(x){for(var R=new Array(3),M=0;M<3;++M){for(var T=x[M],E=new Array(T.length),C=0;CX.deltaY?1.1:.9090909090909091,W=z.glplot.getAspectratio();z.glplot.setAspectratio({x:te*W.x,y:te*W.y,z:te*W.z})}U(z)}},!!p&&{passive:!1}),z.glplot.canvas.addEventListener("mousemove",function(){if(z.fullSceneLayout.dragmode!==!1&&z.camera.mouseListener.buttons!==0){var X=j();z.graphDiv.emit("plotly_relayouting",X)}}),z.staticMode||z.glplot.canvas.addEventListener("webglcontextlost",function(X){$&&$.emit&&$.emit("plotly_webglcontextlost",{event:X,layer:z.id})},!1)),z.glplot.oncontextloss=function(){z.recoverContext()},z.glplot.onrender=function(){z.render()},!0},L.render=function(){var z,$=this,Q=$.graphDiv,j=$.svgContainer,U=$.container.getBoundingClientRect();Q._fullLayout._calcInverseTransform(Q);var X=Q._fullLayout._invScaleX,te=Q._fullLayout._invScaleY,W=U.width*X,K=U.height*te;j.setAttributeNS(null,"viewBox","0 0 "+W+" "+K),j.setAttributeNS(null,"width",W),j.setAttributeNS(null,"height",K),M($),$.glplot.axes.update($.axesOptions);for(var oe=Object.keys($.traces),q=null,Y=$.glplot.selection,ee=0;ee")):z.type==="isosurface"||z.type==="volume"?(de.valueLabel=m.hoverLabelText($._mockAxis,$._mockAxis.d2l(Y.traceCoordinate[3]),z.valuehoverformat),Se.push("value: "+de.valueLabel),Y.textLabel&&Se.push(Y.textLabel),se=Se.join("
")):se=Y.textLabel;var Te={x:Y.traceCoordinate[0],y:Y.traceCoordinate[1],z:Y.traceCoordinate[2],data:ae._input,fullData:ae,curveNumber:ae.index,pointNumber:ce};v.appendArrayPointValue(Te,ae,ce),z._module.eventData&&(Te=ae._module.eventData(Te,Y,ae,{},ce));var Pe={points:[Te]};if($.fullSceneLayout.hovermode){var Ie=[];v.loneHover({trace:ae,x:(.5+.5*he[0]/he[3])*W,y:(.5-.5*he[1]/he[3])*K,xLabel:de.xLabel,yLabel:de.yLabel,zLabel:de.zLabel,text:se,name:q.name,color:v.castHoverOption(ae,ce,"bgcolor")||q.color,borderColor:v.castHoverOption(ae,ce,"bordercolor"),fontFamily:v.castHoverOption(ae,ce,"font.family"),fontSize:v.castHoverOption(ae,ce,"font.size"),fontColor:v.castHoverOption(ae,ce,"font.color"),nameLength:v.castHoverOption(ae,ce,"namelength"),textAlign:v.castHoverOption(ae,ce,"align"),hovertemplate:u.castOption(ae,ce,"hovertemplate"),hovertemplateLabels:u.extendFlat({},Te,de),eventData:[Te]},{container:j,gd:Q,inOut_bbox:Ie}),Te.bbox=Ie[0]}Y.distance<5&&(Y.buttons||E)?Q.emit("plotly_click",Pe):Q.emit("plotly_hover",Pe),this.oldEventData=Pe}else v.loneUnhover(j),this.oldEventData&&Q.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;$.drawAnnotations($)},L.recoverContext=function(){var z=this;z.glplot.dispose();var $=function(){z.glplot.gl.isContextLost()?requestAnimationFrame($):z.initializeGLPlot()?z.plot.apply(z,z.plotArgs):u.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame($)};var k=["xaxis","yaxis","zaxis"];function I(z,$,Q){for(var j=z.fullSceneLayout,U=0;U<3;U++){var X=k[U],te=X.charAt(0),W=j[X],K=$[te],oe=$[te+"calendar"],q=$["_"+te+"length"];if(u.isArrayOrTypedArray(K))for(var Y,ee=0;ee<(q||K.length);ee++)if(u.isArrayOrTypedArray(K[ee]))for(var me=0;meae[1][te])ae[0][te]=-1,ae[1][te]=1;else{var He=ae[1][te]-ae[0][te];ae[0][te]-=He/32,ae[1][te]+=He/32}if(ve=[ae[0][te],ae[1][te]],ve=T(ve,K),ae[0][te]=ve[0],ae[1][te]=ve[1],K.isReversed()){var Ve=ae[0][te];ae[0][te]=ae[1][te],ae[1][te]=Ve}}else ve=K.range,ae[0][te]=K.r2l(ve[0]),ae[1][te]=K.r2l(ve[1]);ae[0][te]===ae[1][te]&&(ae[0][te]-=1,ae[1][te]+=1),ce[te]=ae[1][te]-ae[0][te],K.range=[ae[0][te],ae[1][te]],K.limitRange(),j.glplot.setBounds(te,{min:K.range[0]*me[te],max:K.range[1]*me[te]})}var $e=q.aspectmode;if($e==="cube")se=[1,1,1];else if($e==="manual"){var Oe=q.aspectratio;se=[Oe.x,Oe.y,Oe.z]}else{if($e!=="auto"&&$e!=="data")throw new Error("scene.js aspectRatio was not one of the enumerated types");var ke=[1,1,1];for(te=0;te<3;++te){var Le=de[oe=(K=q[k[te]]).type];ke[te]=Math.pow(Le.acc,1/Le.count)/me[te]}se=$e==="data"||Math.max.apply(null,ke)/Math.min.apply(null,ke)<=4?ke:[1,1,1]}q.aspectratio.x=Y.aspectratio.x=se[0],q.aspectratio.y=Y.aspectratio.y=se[1],q.aspectratio.z=Y.aspectratio.z=se[2],j.glplot.setAspectratio(q.aspectratio),j.viewInitial.aspectratio||(j.viewInitial.aspectratio={x:q.aspectratio.x,y:q.aspectratio.y,z:q.aspectratio.z}),j.viewInitial.aspectmode||(j.viewInitial.aspectmode=q.aspectmode);var We=q.domain||null,Ue=$._size||null;if(We&&Ue){var Ze=j.container.style;Ze.position="absolute",Ze.left=Ue.l+We.x[0]*Ue.w+"px",Ze.top=Ue.t+(1-We.y[1])*Ue.h+"px",Ze.width=Ue.w*(We.x[1]-We.x[0])+"px",Ze.height=Ue.h*(We.y[1]-We.y[0])+"px"}j.glplot.redraw()}},L.destroy=function(){var z=this;z.glplot&&(z.camera.mouseListener.enabled=!1,z.container.removeEventListener("wheel",z.camera.wheelListener),z.camera=null,z.glplot.dispose(),z.container.parentNode.removeChild(z.container),z.glplot=null)},L.getCamera=function(){var z,$=this;return $.camera.view.recalcMatrix($.camera.view.lastT()),{up:{x:(z=$.camera).up[0],y:z.up[1],z:z.up[2]},center:{x:z.center[0],y:z.center[1],z:z.center[2]},eye:{x:z.eye[0],y:z.eye[1],z:z.eye[2]},projection:{type:z._ortho===!0?"orthographic":"perspective"}}},L.setViewport=function(z){var $,Q=this,j=z.camera;Q.camera.lookAt.apply(this,[[($=j).eye.x,$.eye.y,$.eye.z],[$.center.x,$.center.y,$.center.z],[$.up.x,$.up.y,$.up.z]]),Q.glplot.setAspectratio(z.aspectratio),j.projection.type==="orthographic"!==Q.camera._ortho&&(Q.glplot.redraw(),Q.glplot.clearRGBA(),Q.glplot.dispose(),Q.initializeGLPlot())},L.isCameraChanged=function(z){var $=this.getCamera(),Q=u.nestedProperty(z,this.id+".camera").get();function j(W,K,oe,q){var Y=["up","center","eye"],ee=["x","y","z"];return K[Y[oe]]&&W[Y[oe]][ee[q]]===K[Y[oe]][ee[q]]}var U=!1;if(Q===void 0)U=!0;else{for(var X=0;X<3;X++)for(var te=0;te<3;te++)if(!j($,Q,X,te)){U=!0;break}(!Q.projection||$.projection&&$.projection.type!==Q.projection.type)&&(U=!0)}return U},L.isAspectChanged=function(z){var $=this.glplot.getAspectratio(),Q=u.nestedProperty(z,this.id+".aspectratio").get();return Q===void 0||Q.x!==$.x||Q.y!==$.y||Q.z!==$.z},L.saveLayout=function(z){var $,Q,j,U,X,te,W=this,K=W.fullLayout,oe=W.isCameraChanged(z),q=W.isAspectChanged(z),Y=oe||q;if(Y){var ee={};oe&&($=W.getCamera(),j=(Q=u.nestedProperty(z,W.id+".camera")).get(),ee[W.id+".camera"]=j),q&&(U=W.glplot.getAspectratio(),te=(X=u.nestedProperty(z,W.id+".aspectratio")).get(),ee[W.id+".aspectratio"]=te),a.call("_storeDirectGUIEdit",z,K._preGUI,ee),oe&&(Q.set($),u.nestedProperty(K,W.id+".camera").set($)),q&&(X.set(U),u.nestedProperty(K,W.id+".aspectratio").set(U),W.glplot.redraw())}return Y},L.updateFx=function(z,$){var Q=this,j=Q.camera;if(j)if(z==="orbit")j.mode="orbit",j.keyBindingMode="rotate";else if(z==="turntable"){j.up=[0,0,1],j.mode="turntable",j.keyBindingMode="rotate";var U=Q.graphDiv,X=U._fullLayout,te=Q.fullSceneLayout.camera,W=te.up.x,K=te.up.y,oe=te.up.z;if(oe/Math.sqrt(W*W+K*K+oe*oe)<.999){var q=Q.id+".camera.up",Y={x:0,y:0,z:1},ee={};ee[q]=Y;var me=U.layout;a.call("_storeDirectGUIEdit",me,X._preGUI,ee),te.up=Y,u.nestedProperty(me,q).set(Y)}}else j.keyBindingMode=z;Q.fullSceneLayout.hovermode=$},L.toImage=function(z){var $=this;z||(z="png"),$.staticMode&&$.container.appendChild(c),$.glplot.redraw();var Q=$.glplot.gl,j=Q.drawingBufferWidth,U=Q.drawingBufferHeight;Q.bindFramebuffer(Q.FRAMEBUFFER,null);var X=new Uint8Array(j*U*4);Q.readPixels(0,0,j,U,Q.RGBA,Q.UNSIGNED_BYTE,X),function(q,Y,ee){for(var me=0,he=ee-1;me0)for(var ce=255/ae,de=0;de<3;++de)q[se+de]=Math.min(ce*q[se+de],255)}}(X,j,U);var te=document.createElement("canvas");te.width=j,te.height=U;var W,K=te.getContext("2d",{willReadFrequently:!0}),oe=K.createImageData(j,U);switch(oe.data.set(X),K.putImageData(oe,0,0),z){case"jpeg":W=te.toDataURL("image/jpeg");break;case"webp":W=te.toDataURL("image/webp");break;default:W=te.toDataURL("image/png")}return $.staticMode&&$.container.removeChild(c),W},L.setConvert=function(){for(var z=0;z<3;z++){var $=this.fullSceneLayout[k[z]];m.setConvert($,this.fullLayout),$.setScale=u.noop}},L.make4thDimension=function(){var z=this,$=z.graphDiv._fullLayout;z._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},m.setConvert(z._mockAxis,$)},d.exports=C},52094:function(d){d.exports=function(l,n,c,b){b=b||l.length;for(var i=new Array(b),O=0;OOpenStreetMap contributors',O=['© Carto',i].join(" "),w=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),y={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:i,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:O,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:O,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},p=c(y);d.exports={requiredVersion:b,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:y,styleValuesNonMapbox:p,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+b+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` `),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",p.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}},89032:function(d,l,n){var c=n(3400);d.exports=function(b,i){var O=b.split(" "),w=O[0],y=O[1],p=c.isArrayOrTypedArray(i)?c.mean(i):i,a=.5+p/100,u=1.5+p/100,h=["",""],m=[0,0];switch(w){case"top":h[0]="top",m[1]=-u;break;case"bottom":h[0]="bottom",m[1]=u}switch(y){case"left":h[1]="right",m[0]=-a;break;case"right":h[1]="left",m[0]=a}return{anchor:h[0]&&h[1]?h.join("-"):h[0]?h[0]:h[1]?h[1]:"center",offset:m}}},33688:function(d,l,n){var c=n(3480),b=n(3400),i=b.strTranslate,O=b.strScale,w=n(84888).KY,y=n(9616),p=n(33428),a=n(43616),u=n(72736),h=n(14440),m="mapbox",v=l.constants=n(47552);function _(S){return typeof S=="string"&&(v.styleValuesMapbox.indexOf(S)!==-1||S.indexOf("mapbox://")===0||S.indexOf("stamen")===0)}l.name=m,l.attr="subplot",l.idRoot=m,l.idRegex=l.attrRegex=b.counterRegex(m),l.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},l.layoutAttributes=n(5232),l.supplyLayoutDefaults=n(5976),l.plot=function(S){var A=S._fullLayout,x=S.calcdata,R=A._subplots[m];if(c.version!==v.requiredVersion)throw new Error(v.wrongVersionErrorMsg);var M=function(k,I){var z=k._fullLayout;if(k._context.mapboxAccessToken==="")return"";for(var $=[],Q=[],j=!1,U=!1,X=0;X1&&b.warn(v.multipleTokensErrorMsg),$[0]):(Q.length&&b.log(["Listed mapbox access token(s)",Q.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}(S,R);c.accessToken=M;for(var T=0;TQ/2){var j=k.split("|").join("
");z.text(j).attr("data-unformatted",j).call(u.convertToTspans,S),$=a.bBox(z.node())}z.attr("transform",i(-3,8-$.height)),I.insert("rect",".static-attribution").attr({x:-$.width-6,y:-$.height-3,width:$.width+6,height:$.height+3,fill:"rgba(255, 255, 255, 0.75)"});var U=1;$.width+6>Q&&(U=Q/($.width+6));var X=[R.l+R.w*E.x[1],R.t+R.h*(1-E.y[0])];I.attr("transform",i(X[0],X[1])+O(U))}},l.updateFx=function(S){for(var A=S._fullLayout,x=A._subplots[m],R=0;R0){for(var m=0;m0}function a(u){var h={},m={};switch(u.type){case"circle":c.extendFlat(m,{"circle-radius":u.circle.radius,"circle-color":u.color,"circle-opacity":u.opacity});break;case"line":c.extendFlat(m,{"line-width":u.line.width,"line-color":u.color,"line-opacity":u.opacity,"line-dasharray":u.line.dash});break;case"fill":c.extendFlat(m,{"fill-color":u.color,"fill-outline-color":u.fill.outlinecolor,"fill-opacity":u.opacity});break;case"symbol":var v=u.symbol,_=i(v.textposition,v.iconsize);c.extendFlat(h,{"icon-image":v.icon+"-15","icon-size":v.iconsize/10,"text-field":v.text,"text-size":v.textfont.size,"text-anchor":_.anchor,"text-offset":_.offset,"symbol-placement":v.placement}),c.extendFlat(m,{"icon-color":u.color,"text-color":v.textfont.color,"text-opacity":u.opacity});break;case"raster":c.extendFlat(m,{"raster-fade-duration":0,"raster-opacity":u.opacity})}return{layout:h,paint:m}}y.update=function(u){this.visible?this.needsNewImage(u)?this.updateImage(u):this.needsNewSource(u)?(this.removeLayer(),this.updateSource(u),this.updateLayer(u)):this.needsNewLayer(u)?this.updateLayer(u):this.updateStyle(u):(this.updateSource(u),this.updateLayer(u)),this.visible=p(u)},y.needsNewImage=function(u){return this.subplot.map.getSource(this.idSource)&&this.sourceType==="image"&&u.sourcetype==="image"&&(this.source!==u.source||JSON.stringify(this.coordinates)!==JSON.stringify(u.coordinates))},y.needsNewSource=function(u){return this.sourceType!==u.sourcetype||JSON.stringify(this.source)!==JSON.stringify(u.source)||this.layerType!==u.type},y.needsNewLayer=function(u){return this.layerType!==u.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},y.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},y.updateImage=function(u){this.subplot.map.getSource(this.idSource).updateImage({url:u.source,coordinates:u.coordinates});var h=this.findFollowingMapboxLayerId(this.lookupBelow());h!==null&&this.subplot.map.moveLayer(this.idLayer,h)},y.updateSource=function(u){var h=this.subplot.map;if(h.getSource(this.idSource)&&h.removeSource(this.idSource),this.sourceType=u.sourcetype,this.source=u.source,p(u)){var m=function(v){var _,S=v.sourcetype,A=v.source,x={type:S};return S==="geojson"?_="data":S==="vector"?_=typeof A=="string"?"url":"tiles":S==="raster"?(_="tiles",x.tileSize=256):S==="image"&&(_="url",x.coordinates=v.coordinates),x[_]=A,v.sourceattribution&&(x.attribution=b(v.sourceattribution)),x}(u);h.addSource(this.idSource,m)}},y.findFollowingMapboxLayerId=function(u){if(u==="traces")for(var h=this.subplot.getMapLayers(),m=0;m1)for(I=0;I-1&&S(X.originalEvent,z,[I.xaxis],[I.yaxis],I.id,U),te.indexOf("event")>-1&&p.click(z,X.originalEvent)}}},M.updateFx=function(D){var k=this,I=k.map,z=k.gd;if(!k.isStatic){var $,Q=D.dragmode;$=function(X,te){te.isRect?(X.range={})[k.id]=[U([te.xmin,te.ymin]),U([te.xmax,te.ymax])]:(X.lassoPoints={})[k.id]=te.map(U)};var j=k.dragOptions;k.dragOptions=b.extendDeep(j||{},{dragmode:D.dragmode,element:k.div,gd:z,plotinfo:{id:k.id,domain:D[k.id].domain,xaxis:k.xaxis,yaxis:k.yaxis,fillRangeItems:$},xaxes:[k.xaxis],yaxes:[k.yaxis],subplot:k.id}),I.off("click",k.onClickInPanHandler),h(Q)||u(Q)?(I.dragPan.disable(),I.on("zoomstart",k.clearOutline),k.dragOptions.prepFn=function(X,te,W){m(X,te,W,k.dragOptions,Q)},y.init(k.dragOptions)):(I.dragPan.enable(),I.off("zoomstart",k.clearOutline),k.div.onmousedown=null,k.div.ontouchstart=null,k.div.removeEventListener("touchstart",k.div._ontouchstart),k.onClickInPanHandler=k.onClickInPanFn(k.dragOptions),I.on("click",k.onClickInPanHandler))}function U(X){var te=k.map.unproject(X);return[te.lng,te.lat]}},M.updateFramework=function(D){var k=D[this.id].domain,I=D._size,z=this.div.style;z.width=I.w*(k.x[1]-k.x[0])+"px",z.height=I.h*(k.y[1]-k.y[0])+"px",z.left=I.l+k.x[0]*I.w+"px",z.top=I.t+(1-k.y[1])*I.h+"px",this.xaxis._offset=I.l+k.x[0]*I.w,this.xaxis._length=I.w*(k.x[1]-k.x[0]),this.yaxis._offset=I.t+(1-k.y[1])*I.h,this.yaxis._length=I.h*(k.y[1]-k.y[0])},M.updateLayers=function(D){var k,I=D[this.id].layers,z=this.layerList;if(I.length!==z.length){for(k=0;k=Y.width-20?(he["text-anchor"]="start",he.x=5):(he["text-anchor"]="end",he.x=Y._paper.attr("width")-7),ee.attr(he);var se=ee.select(".js-link-to-tool"),ae=ee.select(".js-link-spacer"),ce=ee.select(".js-sourcelinks");q._context.showSources&&q._context.showSources(q),q._context.showLink&&function(de,ve){ve.text("");var ye=ve.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(de._context.linkText+" "+String.fromCharCode(187));if(de._context.sendData)ye.on("click",function(){E.sendDataToCloud(de)});else{var _e=window.location.pathname.split("/"),Se=window.location.search;ye.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+_e[2].split(".")[0]+"/"+_e[1]+Se})}}(q,se),ae.text(se.text()&&ce.text()?" - ":"")}},E.sendDataToCloud=function(q){var Y=(window.PLOTLYENV||{}).BASE_URL||q._context.plotlyServerURL;if(Y){q.emit("plotly_beforeexport");var ee=c.select(q).append("div").attr("id","hiddenform").style("display","none"),me=ee.append("form").attr({action:Y+"/external",method:"post",target:"_blank"});return me.append("input").attr({type:"text",name:"data"}).node().value=E.graphJson(q,!1,"keepdata"),me.node().submit(),ee.remove(),q.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],k=["year","month","dayMonth","dayMonthYear"];function I(q,Y){var ee=q._context.locale;ee||(ee="en-US");var me=!1,he={};function se(_e){for(var Se=!0,Te=0;Te1&&ke.length>1){for(y.getComponentMethod("grid","sizeDefaults")(ae,se),he=0;he15&&ke.length>15&&se.shapes.length===0&&se.images.length===0,E.linkSubplots(de,se,ce,me),E.cleanPlot(de,se,ce,me);var Xe=!(!me._has||!me._has("gl2d")),tt=!(!se._has||!se._has("gl2d")),Ee=!(!me._has||!me._has("cartesian"))||Xe,Ne=!(!se._has||!se._has("cartesian"))||tt;Ee&&!Ne?me._bgLayer.remove():Ne&&!Ee&&(se._shouldCreateBgLayer=!0),me._zoomlayer&&!q._dragging&&_({_fullLayout:me}),function(Ge,ht){var pt,wt=[];ht.meta&&(pt=ht._meta={meta:ht.meta,layout:{meta:ht.meta}});for(var Dt=0;Dt0){var ve=1-2*ae;me=Math.round(ve*me),he=Math.round(ve*he)}}var ye=E.layoutAttributes.width.min,_e=E.layoutAttributes.height.min;me1,Te=!Y.height&&Math.abs(ee.height-he)>1;(Te||Se)&&(Se&&(ee.width=me),Te&&(ee.height=he)),q._initialAutoSize||(q._initialAutoSize={width:me,height:he}),E.sanitizeMargins(ee)},E.supplyLayoutModuleDefaults=function(q,Y,ee,me){var he,se,ae,ce=y.componentsRegistry,de=Y._basePlotModules,ve=y.subplotsRegistry.cartesian;for(he in ce)(ae=ce[he]).includeBasePlot&&ae.includeBasePlot(q,Y);for(var ye in de.length||de.push(ve),Y._has("cartesian")&&(y.getComponentMethod("grid","contentDefaults")(q,Y),ve.finalizeSubplots(q,Y)),Y._subplots)Y._subplots[ye].sort(u.subplotSort);for(se=0;se1&&(ee.l/=ze,ee.r/=ze)}if(Se){var De=(ee.t+ee.b)/Se;De>1&&(ee.t/=De,ee.b/=De)}var He=ee.xl!==void 0?ee.xl:ee.x,Ve=ee.xr!==void 0?ee.xr:ee.x,$e=ee.yt!==void 0?ee.yt:ee.y,Oe=ee.yb!==void 0?ee.yb:ee.y;Te[Y]={l:{val:He,size:ee.l+Ie},r:{val:Ve,size:ee.r+Ie},b:{val:Oe,size:ee.b+Ie},t:{val:$e,size:ee.t+Ie}},Pe[Y]=1}else delete Te[Y],delete Pe[Y];if(!me._replotting)return E.doAutoMargin(q)}},E.doAutoMargin=function(q){var Y=q._fullLayout,ee=Y.width,me=Y.height;Y._size||(Y._size={}),U(Y);var he=Y._size,se=Y.margin,ae={t:0,b:0,l:0,r:0},ce=u.extendFlat({},he),de=se.l,ve=se.r,ye=se.t,_e=se.b,Se=Y._pushmargin,Te=Y._pushmarginIds,Pe=Y.minreducedwidth,Ie=Y.minreducedheight;if(se.autoexpand!==!1){for(var ze in Se)Te[ze]||delete Se[ze];var De=q._fullLayout._reservedMargin;for(var He in De)for(var Ve in De[He]){var $e=De[He][Ve];ae[Ve]=Math.max(ae[Ve],$e)}for(var Oe in Se.base={l:{val:0,size:de},r:{val:1,size:ve},t:{val:1,size:ye},b:{val:0,size:_e}},ae){var ke=0;for(var Le in Se)Le!=="base"&&O(Se[Le][Oe].size)&&(ke=Se[Le][Oe].size>ke?Se[Le][Oe].size:ke);var We=Math.max(0,se[Oe]-ke);ae[Oe]=Math.max(0,ae[Oe]-We)}for(var Ue in Se){var Ze=Se[Ue].l||{},Xe=Se[Ue].b||{},tt=Ze.val,Ee=Ze.size,Ne=Xe.val,je=Xe.size,nt=ee-ae.r-ae.l,ot=me-ae.t-ae.b;for(var Ge in Se){if(O(Ee)&&Se[Ge].r){var ht=Se[Ge].r.val,pt=Se[Ge].r.size;if(ht>tt){var wt=(Ee*ht+(pt-nt)*tt)/(ht-tt),Dt=(pt*(1-tt)+(Ee-nt)*(1-ht))/(ht-tt);wt+Dt>de+ve&&(de=wt,ve=Dt)}}if(O(je)&&Se[Ge].t){var It=Se[Ge].t.val,qt=Se[Ge].t.size;if(It>Ne){var en=(je*It+(qt-ot)*Ne)/(It-Ne),Gt=(qt*(1-Ne)+(je-ot)*(1-It))/(It-Ne);en+Gt>_e+ye&&(_e=en,ye=Gt)}}}}}var Ct=u.constrain(ee-se.l-se.r,2,Pe),_t=u.constrain(me-se.t-se.b,2,Ie),nn=Math.max(0,ee-Ct),gn=Math.max(0,me-_t);if(nn){var bn=(de+ve)/nn;bn>1&&(de/=bn,ve/=bn)}if(gn){var mn=(_e+ye)/gn;mn>1&&(_e/=mn,ye/=mn)}if(he.l=Math.round(de)+ae.l,he.r=Math.round(ve)+ae.r,he.t=Math.round(ye)+ae.t,he.b=Math.round(_e)+ae.b,he.p=Math.round(se.pad),he.w=Math.round(ee)-he.l-he.r,he.h=Math.round(me)-he.t-he.b,!Y._replotting&&(E.didMarginChange(ce,he)||function(bt){if("_redrawFromAutoMarginCount"in bt._fullLayout)return!1;var lt=v.list(bt,"",!0);for(var yt in lt)if(lt[yt].autoshift||lt[yt].shift)return!0;return!1}(q))){"_redrawFromAutoMarginCount"in Y?Y._redrawFromAutoMarginCount++:Y._redrawFromAutoMarginCount=1;var vt=3*(1+Object.keys(Te).length);if(Y._redrawFromAutoMarginCount0&&(q._transitioningWithDuration=!0),q._transitionData._interruptCallbacks.push(function(){me=!0}),ee.redraw&&q._transitionData._interruptCallbacks.push(function(){return y.call("redraw",q)}),q._transitionData._interruptCallbacks.push(function(){q.emit("plotly_transitioninterrupted",[])});var ce=0,de=0;function ve(){return ce++,function(){var ye;de++,me||de!==ce||(ye=ae,q._transitionData&&(function(_e){if(_e)for(;_e.length;)_e.shift()}(q._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(ee.redraw)return y.call("redraw",q)}).then(function(){q._transitioning=!1,q._transitioningWithDuration=!1,q.emit("plotly_transitioned",[])}).then(ye)))}}ee.runFn(ve),setTimeout(ve())})}],se=u.syncOrAsync(he,q);return se&&se.then||(se=Promise.resolve()),se.then(function(){return q})}E.didMarginChange=function(q,Y){for(var ee=0;ee1)return!0}return!1},E.graphJson=function(q,Y,ee,me,he,se){(he&&Y&&!q._fullData||he&&!Y&&!q._fullLayout)&&E.supplyDefaults(q);var ae=he?q._fullData:q.data,ce=he?q._fullLayout:q.layout,de=(q._transitionData||{})._frames;function ve(Se,Te){if(typeof Se=="function")return Te?"_function_":null;if(u.isPlainObject(Se)){var Pe,Ie={};return Object.keys(Se).sort().forEach(function(Ve){if(["_","["].indexOf(Ve.charAt(0))===-1)if(typeof Se[Ve]!="function"){if(ee==="keepdata"){if(Ve.substr(Ve.length-3)==="src")return}else if(ee==="keepstream"){if(typeof(Pe=Se[Ve+"src"])=="string"&&Pe.indexOf(":")>0&&!u.isPlainObject(Se.stream))return}else if(ee!=="keepall"&&typeof(Pe=Se[Ve+"src"])=="string"&&Pe.indexOf(":")>0)return;Ie[Ve]=ve(Se[Ve],Te)}else Te&&(Ie[Ve]="_function")}),Ie}var ze=Array.isArray(Se),De=u.isTypedArray(Se);if((ze||De)&&Se.dtype&&Se.shape){var He=Se.bdata;return ve({dtype:Se.dtype,shape:Se.shape,bdata:u.isArrayBuffer(He)?w.encode(He):He},Te)}return ze?Se.map(function(Ve){return ve(Ve,Te)}):De?u.simpleMap(Se,u.identity):u.isJSDate(Se)?u.ms2DateTimeLocal(+Se):Se}var ye={data:(ae||[]).map(function(Se){var Te=ve(Se);return Y&&delete Te.fit,Te})};if(!Y&&(ye.layout=ve(ce),he)){var _e=ce._size;ye.layout.computed={margin:{b:_e.b,l:_e.l,r:_e.r,t:_e.t}}}return de&&(ye.frames=ve(de)),se&&(ye.config=ve(q._context,!0)),me==="object"?ye:JSON.stringify(ye)},E.modifyFrames=function(q,Y){var ee,me,he,se=q._transitionData._frames,ae=q._transitionData._frameHash;for(ee=0;ee=0;se--)if(Oe[se].enabled){ee._indexToPoints=Oe[se]._indexToPoints;break}me&&me.calc&&($e=me.calc(q,ee))}Array.isArray($e)&&$e[0]||($e=[{x:m,y:m}]),$e[0].t||($e[0].t={}),$e[0].trace=ee,ve[He]=$e}}for(K(ae,ce,de),he=0;he1e-10?m:0}function h(m,v,_){v=v||0,_=_||0;for(var S=m.length,A=new Array(S),x=0;x0?x:1/0}),S=c.mod(_+1,v.length);return[v[_],v[S]]},findIntersectionXY:p,findXYatLength:function(m,v,_,S){var A=-v*_,x=v*v+1,R=2*(v*A-_),M=A*A+_*_-m*m,T=Math.sqrt(R*R-4*x*M),E=(-R+T)/(2*x),C=(-R-T)/(2*x);return[[E,v*E+A+S],[C,v*C+A+S]]},clampTiny:u,pathPolygon:function(m,v,_,S,A,x){return"M"+h(a(m,v,_,S),A,x).join("L")},pathPolygonAnnulus:function(m,v,_,S,A,x,R){var M,T;m=90||Gt>90&&Ct>=450?1:nn<=0&&bn<=0?0:Math.max(nn,bn),[Gt<=180&&Ct>=180||Gt>180&&Ct>=540?-1:_t>=0&&gn>=0?0:Math.min(_t,gn),Gt<=270&&Ct>=270||Gt>270&&Ct>=630?-1:nn>=0&&bn>=0?0:Math.min(nn,bn),Ct>=360?1:_t<=0&&gn<=0?0:Math.max(_t,gn),It]}(ze),Le=ke[2]-ke[0],We=ke[3]-ke[1],Ue=Ie/Pe,Ze=Math.abs(We/Le);Ue>Ze?(De=Pe,Oe=(Ie-(He=Pe*Ze))/ve.h/2,Ve=[Se[0],Se[1]],$e=[Te[0]+Oe,Te[1]-Oe]):(He=Ie,Oe=(Pe-(De=Ie/Ze))/ve.w/2,Ve=[Se[0]+Oe,Se[1]-Oe],$e=[Te[0],Te[1]]),ce.xLength2=De,ce.yLength2=He,ce.xDomain2=Ve,ce.yDomain2=$e;var Xe,tt=ce.xOffset2=ve.l+ve.w*Ve[0],Ee=ce.yOffset2=ve.t+ve.h*(1-$e[1]),Ne=ce.radius=De/Le,je=ce.innerRadius=ce.getHole(ae)*Ne,nt=ce.cx=tt-Ne*ke[0],ot=ce.cy=Ee+Ne*ke[3],Ge=ce.cxx=nt-tt,ht=ce.cyy=ot-Ee,pt=ye.side;pt==="counterclockwise"?(Xe=pt,pt="top"):pt==="clockwise"&&(Xe=pt,pt="bottom"),ce.radialAxis=ce.mockAxis(se,ae,ye,{_id:"x",side:pt,_trueSide:Xe,domain:[je/ve.w,Ne/ve.w]}),ce.angularAxis=ce.mockAxis(se,ae,_e,{side:"right",domain:[0,Math.PI],autorange:!1}),ce.doAutoRange(se,ae),ce.updateAngularAxis(se,ae),ce.updateRadialAxis(se,ae),ce.updateRadialAxisTitle(se,ae),ce.xaxis=ce.mockCartesianAxis(se,ae,{_id:"x",domain:Ve}),ce.yaxis=ce.mockCartesianAxis(se,ae,{_id:"y",domain:$e});var wt=ce.pathSubplot();ce.clipPaths.forTraces.select("path").attr("d",wt).attr("transform",y(Ge,ht)),de.frontplot.attr("transform",y(tt,Ee)).call(a.setClipUrl,ce._hasClipOnAxisFalse?null:ce.clipIds.forTraces,ce.gd),de.bg.attr("d",wt).attr("transform",y(nt,ot)).call(p.fill,ae.bgcolor)},Y.mockAxis=function(se,ae,ce,de){var ve=O.extendFlat({},ce,de);return v(ve,ae,se),ve},Y.mockCartesianAxis=function(se,ae,ce){var de=this,ve=de.isSmith,ye=ce._id,_e=O.extendFlat({type:"linear"},ce);m(_e,se);var Se={x:[0,2],y:[1,3]};return _e.setRange=function(){var Te=de.sectorBBox,Pe=Se[ye],Ie=de.radialAxis._rl,ze=(Ie[1]-Ie[0])/(1-de.getHole(ae));_e.range=[Te[Pe[0]]*ze,Te[Pe[1]]*ze]},_e.isPtWithinRange=ye!=="x"||ve?function(){return!0}:function(Te){return de.isPtInside(Te)},_e.setRange(),_e.setScale(),_e},Y.doAutoRange=function(se,ae){var ce=this,de=ce.gd,ve=ce.radialAxis,ye=ce.getRadial(ae);_(de,ve);var _e=ve.range;if(ye.range=_e.slice(),ye._input.range=_e.slice(),ve._rl=[ve.r2l(_e[0],null,"gregorian"),ve.r2l(_e[1],null,"gregorian")],ve.minallowed!==void 0){var Se=ve.r2l(ve.minallowed);ve._rl[0]>ve._rl[1]?ve._rl[1]=Math.max(ve._rl[1],Se):ve._rl[0]=Math.max(ve._rl[0],Se)}if(ve.maxallowed!==void 0){var Te=ve.r2l(ve.maxallowed);ve._rl[0]90&&Ie<=270&&(ze.tickangle=180);var Ve=He?function(Ee){var Ne=X(ce,Q([Ee.x,0]));return y(Ne[0]-Se,Ne[1]-Te)}:function(Ee){return y(ze.l2p(Ee.x)+_e,0)},$e=He?function(Ee){return U(ce,Ee.x,-1/0,1/0)}:function(Ee){return ce.pathArc(ze.r2p(Ee.x)+_e)},Oe=ee(Pe);if(ce.radialTickLayout!==Oe&&(ve["radial-axis"].selectAll(".xtick").remove(),ce.radialTickLayout=Oe),De){ze.setScale();var ke=0,Le=He?(ze.tickvals||[]).filter(function(Ee){return Ee>=0}).map(function(Ee){return h.tickText(ze,Ee,!0,!1)}):h.calcTicks(ze),We=He?Le:h.clipEnds(ze,Le),Ue=h.getTickSigns(ze)[2];He&&((ze.ticks==="top"&&ze.side==="bottom"||ze.ticks==="bottom"&&ze.side==="top")&&(Ue=-Ue),ze.ticks==="top"&&ze.side==="top"&&(ke=-ze.ticklen),ze.ticks==="bottom"&&ze.side==="bottom"&&(ke=ze.ticklen)),h.drawTicks(de,ze,{vals:Le,layer:ve["radial-axis"],path:h.makeTickPath(ze,0,Ue),transFn:Ve,crisp:!1}),h.drawGrid(de,ze,{vals:We,layer:ve["radial-grid"],path:$e,transFn:O.noop,crisp:!1}),h.drawLabels(de,ze,{vals:Le,layer:ve["radial-axis"],transFn:Ve,labelFns:h.makeLabelFns(ze,ke)})}var Ze=ce.radialAxisAngle=ce.vangles?oe(me(K(Pe.angle),ce.vangles)):Pe.angle,Xe=y(Se,Te),tt=Xe+w(-Ze);he(ve["radial-axis"],De&&(Pe.showticklabels||Pe.ticks),{transform:tt}),he(ve["radial-grid"],De&&Pe.showgrid,{transform:He?"":Xe}),he(ve["radial-line"].select("line"),De&&Pe.showline,{x1:He?-ye:_e,y1:0,x2:ye,y2:0,transform:tt}).attr("stroke-width",Pe.linewidth).call(p.stroke,Pe.linecolor)},Y.updateRadialAxisTitle=function(se,ae,ce){if(!this.isSmith){var de=this,ve=de.gd,ye=de.radius,_e=de.cx,Se=de.cy,Te=de.getRadial(ae),Pe=de.id+"title",Ie=0;if(Te.title){var ze=a.bBox(de.layers["radial-axis"].node()).height,De=Te.title.font.size,He=Te.side;Ie=He==="top"?De:He==="counterclockwise"?-(ze+.4*De):ze+.8*De}var Ve=ce!==void 0?ce:de.radialAxisAngle,$e=K(Ve),Oe=Math.cos($e),ke=Math.sin($e),Le=_e+ye/2*Oe+Ie*ke,We=Se-ye/2*ke+Ie*Oe;de.layers["radial-axis-title"]=R.draw(ve,Pe,{propContainer:Te,propName:de.id+".radialaxis.title",placeholder:te(ve,"Click to enter radial axis title"),attributes:{x:Le,y:We,"text-anchor":"middle"},transform:{rotate:-Ve}})}},Y.updateAngularAxis=function(se,ae){var ce=this,de=ce.gd,ve=ce.layers,ye=ce.radius,_e=ce.innerRadius,Se=ce.cx,Te=ce.cy,Pe=ce.getAngular(ae),Ie=ce.angularAxis,ze=ce.isSmith;ze||(ce.fillViewInitialKey("angularaxis.rotation",Pe.rotation),Ie.setGeometry(),Ie.setScale());var De=ze?function(Ee){var Ne=X(ce,Q([0,Ee.x]));return Math.atan2(Ne[0]-Se,Ne[1]-Te)-Math.PI/2}:function(Ee){return Ie.t2g(Ee.x)};Ie.type==="linear"&&Ie.thetaunit==="radians"&&(Ie.tick0=oe(Ie.tick0),Ie.dtick=oe(Ie.dtick));var He=function(Ee){return y(Se+ye*Math.cos(Ee),Te-ye*Math.sin(Ee))},Ve=ze?function(Ee){var Ne=X(ce,Q([0,Ee.x]));return y(Ne[0],Ne[1])}:function(Ee){return He(De(Ee))},$e=ze?function(Ee){var Ne=X(ce,Q([0,Ee.x])),je=Math.atan2(Ne[0]-Se,Ne[1]-Te)-Math.PI/2;return y(Ne[0],Ne[1])+w(-oe(je))}:function(Ee){var Ne=De(Ee);return He(Ne)+w(-oe(Ne))},Oe=ze?function(Ee){return j(ce,Ee.x,0,1/0)}:function(Ee){var Ne=De(Ee),je=Math.cos(Ne),nt=Math.sin(Ne);return"M"+[Se+_e*je,Te-_e*nt]+"L"+[Se+ye*je,Te-ye*nt]},ke=h.makeLabelFns(Ie,0).labelStandoff,Le={xFn:function(Ee){var Ne=De(Ee);return Math.cos(Ne)*ke},yFn:function(Ee){var Ne=De(Ee),je=Math.sin(Ne)>0?.2:1;return-Math.sin(Ne)*(ke+Ee.fontSize*je)+Math.abs(Math.cos(Ne))*(Ee.fontSize*k)},anchorFn:function(Ee){var Ne=De(Ee),je=Math.cos(Ne);return Math.abs(je)<.1?"middle":je>0?"start":"end"},heightFn:function(Ee,Ne,je){var nt=De(Ee);return-.5*(1+Math.sin(nt))*je}},We=ee(Pe);ce.angularTickLayout!==We&&(ve["angular-axis"].selectAll("."+Ie._id+"tick").remove(),ce.angularTickLayout=We);var Ue,Ze=ze?[1/0].concat(Ie.tickvals||[]).map(function(Ee){return h.tickText(Ie,Ee,!0,!1)}):h.calcTicks(Ie);if(ze&&(Ze[0].text="∞",Ze[0].fontSize*=1.75),ae.gridshape==="linear"?(Ue=Ze.map(De),O.angleDelta(Ue[0],Ue[1])<0&&(Ue=Ue.slice().reverse())):Ue=null,ce.vangles=Ue,Ie.type==="category"&&(Ze=Ze.filter(function(Ee){return O.isAngleInsideSector(De(Ee),ce.sectorInRad)})),Ie.visible){var Xe=Ie.ticks==="inside"?-1:1,tt=(Ie.linewidth||1)/2;h.drawTicks(de,Ie,{vals:Ze,layer:ve["angular-axis"],path:"M"+Xe*tt+",0h"+Xe*Ie.ticklen,transFn:$e,crisp:!1}),h.drawGrid(de,Ie,{vals:Ze,layer:ve["angular-grid"],path:Oe,transFn:O.noop,crisp:!1}),h.drawLabels(de,Ie,{vals:Ze,layer:ve["angular-axis"],repositionOnUpdate:!0,transFn:Ve,labelFns:Le})}he(ve["angular-line"].select("path"),Pe.showline,{d:ce.pathSubplot(),transform:y(Se,Te)}).attr("stroke-width",Pe.linewidth).call(p.stroke,Pe.linecolor)},Y.updateFx=function(se,ae){this.gd._context.staticPlot||(!this.isSmith&&(this.updateAngularDrag(se),this.updateRadialDrag(se,ae,0),this.updateRadialDrag(se,ae,1)),this.updateHoverAndMainDrag(se))},Y.updateHoverAndMainDrag=function(se){var ae,ce,de=this,ve=de.isSmith,ye=de.gd,_e=de.layers,Se=se._zoomlayer,Te=I.MINZOOM,Pe=I.OFFEDGE,Ie=de.radius,ze=de.innerRadius,De=de.cx,He=de.cy,Ve=de.cxx,$e=de.cyy,Oe=de.sectorInRad,ke=de.vangles,Le=de.radialAxis,We=z.clampTiny,Ue=z.findXYatLength,Ze=z.findEnclosingVertexAngles,Xe=I.cornerHalfWidth,tt=I.cornerLen/2,Ee=S.makeDragger(_e,"path","maindrag",se.dragmode===!1?"none":"crosshair");c.select(Ee).attr("d",de.pathSubplot()).attr("transform",y(De,He)),Ee.onmousemove=function(Rt){x.hover(ye,Rt,de.id),ye._fullLayout._lasthover=Ee,ye._fullLayout._hoversubplot=de.id},Ee.onmouseout=function(Rt){ye._dragging||A.unhover(ye,Rt)};var Ne,je,nt,ot,Ge,ht,pt,wt,Dt,It={element:Ee,gd:ye,subplot:de.id,plotinfo:{id:de.id,xaxis:de.xaxis,yaxis:de.yaxis},xaxes:[de.xaxis],yaxes:[de.yaxis]};function qt(Rt,it){return Math.sqrt(Rt*Rt+it*it)}function en(Rt,it){return qt(Rt-Ve,it-$e)}function Gt(Rt,it){return Math.atan2($e-it,Rt-Ve)}function Ct(Rt,it){return[Rt*Math.cos(it),Rt*Math.sin(-it)]}function _t(Rt,it){if(Rt===0)return de.pathSector(2*Xe);var at=tt/Rt,Lt=it-at,xt=it+at,Ht=Math.max(0,Math.min(Rt,Ie)),Xt=Ht-Xe,Yt=Ht+Xe;return"M"+Ct(Xt,Lt)+"A"+[Xt,Xt]+" 0,0,0 "+Ct(Xt,xt)+"L"+Ct(Yt,xt)+"A"+[Yt,Yt]+" 0,0,1 "+Ct(Yt,Lt)+"Z"}function nn(Rt,it,at){if(Rt===0)return de.pathSector(2*Xe);var Lt,xt,Ht=Ct(Rt,it),Xt=Ct(Rt,at),Yt=We((Ht[0]+Xt[0])/2),Qt=We((Ht[1]+Xt[1])/2);if(Yt&&Qt){var Pt=Qt/Yt,tn=-1/Pt,Kt=Ue(Xe,Pt,Yt,Qt);Lt=Ue(tt,tn,Kt[0][0],Kt[0][1]),xt=Ue(tt,tn,Kt[1][0],Kt[1][1])}else{var fn,dn;Qt?(fn=tt,dn=Xe):(fn=Xe,dn=tt),Lt=[[Yt-fn,Qt-dn],[Yt+fn,Qt-dn]],xt=[[Yt-fn,Qt+dn],[Yt+fn,Qt+dn]]}return"M"+Lt.join("L")+"L"+xt.reverse().join("L")+"Z"}function gn(Rt,it){return it=Math.max(Math.min(it,Ie),ze),RtTe?(Rt-1&&Rt===1&&T(it,ye,[de.xaxis],[de.yaxis],de.id,It),at.indexOf("event")>-1&&x.click(ye,it,de.id)}It.prepFn=function(Rt,it,at){var Lt=ye._fullLayout.dragmode,xt=Ee.getBoundingClientRect();ye._fullLayout._calcInverseTransform(ye);var Ht=ye._fullLayout._invTransform;ae=ye._fullLayout._invScaleX,ce=ye._fullLayout._invScaleY;var Xt=O.apply3DTransform(Ht)(it-xt.left,at-xt.top);if(Ne=Xt[0],je=Xt[1],ke){var Yt=z.findPolygonOffset(Ie,Oe[0],Oe[1],ke);Ne+=Ve+Yt[0],je+=$e+Yt[1]}switch(Lt){case"zoom":It.clickFn=zt,ve||(It.moveFn=ke?bt:mn,It.doneFn=lt,function(){nt=null,ot=null,Ge=de.pathSubplot(),ht=!1;var Qt=ye._fullLayout[de.id];pt=b(Qt.bgcolor).getLuminance(),(wt=S.makeZoombox(Se,pt,De,He,Ge)).attr("fill-rule","evenodd"),Dt=S.makeCorners(Se,De,He),E(ye)}());break;case"select":case"lasso":M(Rt,it,at,It,Lt)}},A.init(It)},Y.updateRadialDrag=function(se,ae,ce){var de=this,ve=de.gd,ye=de.layers,_e=de.radius,Se=de.innerRadius,Te=de.cx,Pe=de.cy,Ie=de.radialAxis,ze=I.radialDragBoxSize,De=ze/2;if(Ie.visible){var He,Ve,$e,Oe=K(de.radialAxisAngle),ke=Ie._rl,Le=ke[0],We=ke[1],Ue=ke[ce],Ze=.75*(ke[1]-ke[0])/(1-de.getHole(ae))/_e;ce?(He=Te+(_e+De)*Math.cos(Oe),Ve=Pe-(_e+De)*Math.sin(Oe),$e="radialdrag"):(He=Te+(Se-De)*Math.cos(Oe),Ve=Pe-(Se-De)*Math.sin(Oe),$e="radialdrag-inner");var Xe,tt,Ee,Ne=S.makeRectDragger(ye,$e,"crosshair",-De,-De,ze,ze),je={element:Ne,gd:ve};se.dragmode===!1&&(je.dragmode=!1),he(c.select(Ne),Ie.visible&&Se<_e,{transform:y(He,Ve)}),je.prepFn=function(){Xe=null,tt=null,Ee=null,je.moveFn=nt,je.doneFn=ot,E(ve)},je.clampFn=function(pt,wt){return Math.sqrt(pt*pt+wt*wt)0==(ce?Ee>Le:Eev?function(R){return R<=0}:function(R){return R>=0};a.c2g=function(R){var M=a.c2l(R)-m;return(x(M)?M:0)+A},a.g2c=function(R){return a.l2c(R+m-A)},a.g2p=function(R){return R*S},a.c2p=function(R){return a.g2p(a.c2g(R))}}})(w,y);break;case"angularaxis":(function(a,u){var h=a.type;if(h==="linear"){var m=a.d2c,v=a.c2d;a.d2c=function(_,S){return function(A,x){return x==="degrees"?i(A):A}(m(_),S)},a.c2d=function(_,S){return v(function(A,x){return x==="degrees"?O(A):A}(_,S))}}a.makeCalcdata=function(_,S){var A,x,R=_[S],M=_._length,T=function(k){return a.d2c(k,_.thetaunit)};if(R)for(A=new Array(M),x=0;x0?1:0}function n(i){var O=i[0],w=i[1];if(!isFinite(O)||!isFinite(w))return[1,0];var y=(O+1)*(O+1)+w*w;return[(O*O+w*w-1)/y,2*w/y]}function c(i,O){var w=O[0],y=O[1];return[w*i.radius+i.cx,-y*i.radius+i.cy]}function b(i,O){return O*i.radius}d.exports={smith:n,reactanceArc:function(i,O,w,y){var p=c(i,n([w,O])),a=p[0],u=p[1],h=c(i,n([y,O])),m=h[0],v=h[1];if(O===0)return["M"+a+","+u,"L"+m+","+v].join(" ");var _=b(i,1/Math.abs(O));return["M"+a+","+u,"A"+_+","+_+" 0 0,"+(O<0?1:0)+" "+m+","+v].join(" ")},resistanceArc:function(i,O,w,y){var p=b(i,1/(O+1)),a=c(i,n([O,w])),u=a[0],h=a[1],m=c(i,n([O,y])),v=m[0],_=m[1];if(l(w)!==l(y)){var S=c(i,n([O,0]));return["M"+u+","+h,"A"+p+","+p+" 0 0,"+(00){for(var y=[],p=0;p=L&&(k.min=0,I.min=0,z.min=0,S.aaxis&&delete S.aaxis.min,S.baxis&&delete S.baxis.min,S.caxis&&delete S.caxis.min)}function _(S,A,x,R){var M=h[A._name];function T(I,z){return i.coerce(S,A,M,I,z)}T("uirevision",R.uirevision),A.type="linear";var E=T("color"),C=E!==M.color.dflt?E:x.font.color,L=A._name.charAt(0).toUpperCase(),D="Component "+L,k=T("title.text",D);A._hovertitle=k===D?k:L,i.coerceFont(T,"title.font",{family:x.font.family,size:i.bigFont(x.font.size),color:C}),T("min"),a(S,A,T,"linear"),y(S,A,T,"linear"),w(S,A,T,"linear",{noAutotickangles:!0}),p(S,A,T,{outerTicks:!0}),T("showticklabels")&&(i.coerceFont(T,"tickfont",{family:x.font.family,size:x.font.size,color:C}),T("tickangle"),T("tickformat")),u(S,A,T,{dfltColor:E,bgColor:x.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),T("hoverformat"),T("layer")}d.exports=function(S,A,x){O(S,A,x,{type:"ternary",attributes:h,handleDefaults:v,font:A.font,paper_bgcolor:A.paper_bgcolor})}},24696:function(d,l,n){var c=n(33428),b=n(49760),i=n(24040),O=n(3400),w=O.strTranslate,y=O._,p=n(76308),a=n(43616),u=n(78344),h=n(92880).extendFlat,m=n(7316),v=n(54460),_=n(86476),S=n(93024),A=n(72760),x=A.freeMode,R=A.rectMode,M=n(81668),T=n(22676).prepSelect,E=n(22676).selectOnClick,C=n(22676).clearOutline,L=n(22676).clearSelectionsCache,D=n(33816);function k(W,K){this.id=W.id,this.graphDiv=W.graphDiv,this.init(K),this.makeFramework(K),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}d.exports=k;var I=k.prototype;I.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},I.plot=function(W,K){var oe=this,q=K[oe.id],Y=K._size;oe._hasClipOnAxisFalse=!1;for(var ee=0;eez*Se?Y=(ee=Se)*z:ee=(Y=_e)/z,me=ve*Y/_e,he=ye*ee/Se,oe=K.l+K.w*ce-Y/2,q=K.t+K.h*(1-de)-ee/2,se.x0=oe,se.y0=q,se.w=Y,se.h=ee,se.sum=Te,se.xaxis={type:"linear",range:[Pe+2*ze-Te,Te-Pe-2*Ie],domain:[ce-me/2,ce+me/2],_id:"x"},u(se.xaxis,se.graphDiv._fullLayout),se.xaxis.setScale(),se.xaxis.isPtWithinRange=function(Xe){return Xe.a>=se.aaxis.range[0]&&Xe.a<=se.aaxis.range[1]&&Xe.b>=se.baxis.range[1]&&Xe.b<=se.baxis.range[0]&&Xe.c>=se.caxis.range[1]&&Xe.c<=se.caxis.range[0]},se.yaxis={type:"linear",range:[Pe,Te-Ie-ze],domain:[de-he/2,de+he/2],_id:"y"},u(se.yaxis,se.graphDiv._fullLayout),se.yaxis.setScale(),se.yaxis.isPtWithinRange=function(){return!0};var De=se.yaxis.domain[0],He=se.aaxis=h({},W.aaxis,{range:[Pe,Te-Ie-ze],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[De,De+he*z],anchor:"free",position:0,_id:"y",_length:Y});u(He,se.graphDiv._fullLayout),He.setScale();var Ve=se.baxis=h({},W.baxis,{range:[Te-Pe-ze,Ie],side:"bottom",domain:se.xaxis.domain,anchor:"free",position:0,_id:"x",_length:Y});u(Ve,se.graphDiv._fullLayout),Ve.setScale();var $e=se.caxis=h({},W.caxis,{range:[Te-Pe-Ie,ze],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[De,De+he*z],anchor:"free",position:0,_id:"y",_length:Y});u($e,se.graphDiv._fullLayout),$e.setScale();var Oe="M"+oe+","+(q+ee)+"h"+Y+"l-"+Y/2+",-"+ee+"Z";se.clipDef.select("path").attr("d",Oe),se.layers.plotbg.select("path").attr("d",Oe);var ke="M0,"+ee+"h"+Y+"l-"+Y/2+",-"+ee+"Z";se.clipDefRelative.select("path").attr("d",ke);var Le=w(oe,q);se.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Le),se.clipDefRelative.select("path").attr("transform",null);var We=w(oe-Ve._offset,q+ee);se.layers.baxis.attr("transform",We),se.layers.bgrid.attr("transform",We);var Ue=w(oe+Y/2,q)+"rotate(30)"+w(0,-He._offset);se.layers.aaxis.attr("transform",Ue),se.layers.agrid.attr("transform",Ue);var Ze=w(oe+Y/2,q)+"rotate(-30)"+w(0,-$e._offset);se.layers.caxis.attr("transform",Ze),se.layers.cgrid.attr("transform",Ze),se.drawAxes(!0),se.layers.aline.select("path").attr("d",He.showline?"M"+oe+","+(q+ee)+"l"+Y/2+",-"+ee:"M0,0").call(p.stroke,He.linecolor||"#000").style("stroke-width",(He.linewidth||0)+"px"),se.layers.bline.select("path").attr("d",Ve.showline?"M"+oe+","+(q+ee)+"h"+Y:"M0,0").call(p.stroke,Ve.linecolor||"#000").style("stroke-width",(Ve.linewidth||0)+"px"),se.layers.cline.select("path").attr("d",$e.showline?"M"+(oe+Y/2)+","+q+"l"+Y/2+","+ee:"M0,0").call(p.stroke,$e.linecolor||"#000").style("stroke-width",($e.linewidth||0)+"px"),se.graphDiv._context.staticPlot||se.initInteractions(),a.setClipUrl(se.layers.frontplot,se._hasClipOnAxisFalse?null:se.clipId,se.graphDiv)},I.drawAxes=function(W){var K=this,oe=K.graphDiv,q=K.id.substr(7)+"title",Y=K.layers,ee=K.aaxis,me=K.baxis,he=K.caxis;if(K.drawAx(ee),K.drawAx(me),K.drawAx(he),W){var se=Math.max(ee.showticklabels?ee.tickfont.size/2:0,(he.showticklabels?.75*he.tickfont.size:0)+(he.ticks==="outside"?.87*he.ticklen:0)),ae=(me.showticklabels?me.tickfont.size:0)+(me.ticks==="outside"?me.ticklen:0)+3;Y["a-title"]=M.draw(oe,"a"+q,{propContainer:ee,propName:K.id+".aaxis.title",placeholder:y(oe,"Click to enter Component A title"),attributes:{x:K.x0+K.w/2,y:K.y0-ee.title.font.size/3-se,"text-anchor":"middle"}}),Y["b-title"]=M.draw(oe,"b"+q,{propContainer:me,propName:K.id+".baxis.title",placeholder:y(oe,"Click to enter Component B title"),attributes:{x:K.x0-ae,y:K.y0+K.h+.83*me.title.font.size+ae,"text-anchor":"middle"}}),Y["c-title"]=M.draw(oe,"c"+q,{propContainer:he,propName:K.id+".caxis.title",placeholder:y(oe,"Click to enter Component C title"),attributes:{x:K.x0+K.w+ae,y:K.y0+K.h+.83*he.title.font.size+ae,"text-anchor":"middle"}})}},I.drawAx=function(W){var K,oe=this,q=oe.graphDiv,Y=W._name,ee=Y.charAt(0),me=W._id,he=oe.layers[Y],se=ee+"tickLayout",ae=(K=W).ticks+String(K.ticklen)+String(K.showticklabels);oe[se]!==ae&&(he.selectAll("."+me+"tick").remove(),oe[se]=ae),W.setScale();var ce=v.calcTicks(W),de=v.clipEnds(W,ce),ve=v.makeTransTickFn(W),ye=v.getTickSigns(W)[2],_e=O.deg2rad(30),Se=ye*(W.linewidth||1)/2,Te=ye*W.ticklen,Pe=oe.w,Ie=oe.h,ze=ee==="b"?"M0,"+Se+"l"+Math.sin(_e)*Te+","+Math.cos(_e)*Te:"M"+Se+",0l"+Math.cos(_e)*Te+","+-Math.sin(_e)*Te,De={a:"M0,0l"+Ie+",-"+Pe/2,b:"M0,0l-"+Pe/2+",-"+Ie,c:"M0,0l-"+Ie+","+Pe/2}[ee];v.drawTicks(q,W,{vals:W.ticks==="inside"?de:ce,layer:he,path:ze,transFn:ve,crisp:!1}),v.drawGrid(q,W,{vals:de,layer:oe.layers[ee+"grid"],path:De,transFn:ve,crisp:!1}),v.drawLabels(q,W,{vals:ce,layer:he,transFn:ve,labelFns:v.makeLabelFns(W,0,30)})};var $=D.MINZOOM/2+.87,Q="m-0.87,.5h"+$+"v3h-"+($+5.2)+"l"+($/2+2.6)+",-"+(.87*$+4.5)+"l2.6,1.5l-"+$/2+","+.87*$+"Z",j="m0.87,.5h-"+$+"v3h"+($+5.2)+"l-"+($/2+2.6)+",-"+(.87*$+4.5)+"l-2.6,1.5l"+$/2+","+.87*$+"Z",U="m0,1l"+$/2+","+.87*$+"l2.6,-1.5l-"+($/2+2.6)+",-"+(.87*$+4.5)+"l-"+($/2+2.6)+","+(.87*$+4.5)+"l2.6,1.5l"+$/2+",-"+.87*$+"Z",X=!0;function te(W){c.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}I.clearOutline=function(){L(this.dragOptions),C(this.dragOptions.gd)},I.initInteractions=function(){var W,K,oe,q,Y,ee,me,he,se,ae,ce,de,ve=this,ye=ve.layers.plotbg.select("path").node(),_e=ve.graphDiv,Se=_e._fullLayout._zoomlayer;function Te(ke){var Le={};return Le[ve.id+".aaxis.min"]=ke.a,Le[ve.id+".baxis.min"]=ke.b,Le[ve.id+".caxis.min"]=ke.c,Le}function Pe(ke,Le){var We=_e._fullLayout.clickmode;te(_e),ke===2&&(_e.emit("plotly_doubleclick",null),i.call("_guiRelayout",_e,Te({a:0,b:0,c:0}))),We.indexOf("select")>-1&&ke===1&&E(Le,_e,[ve.xaxis],[ve.yaxis],ve.id,ve.dragOptions),We.indexOf("event")>-1&&S.click(_e,Le,ve.id)}function Ie(ke,Le){return 1-Le/ve.h}function ze(ke,Le){return 1-(ke+(ve.h-Le)/Math.sqrt(3))/ve.w}function De(ke,Le){return(ke-(ve.h-Le)/Math.sqrt(3))/ve.w}function He(ke,Le){var We=oe+ke*W,Ue=q+Le*K,Ze=Math.max(0,Math.min(1,Ie(0,q),Ie(0,Ue))),Xe=Math.max(0,Math.min(1,ze(oe,q),ze(We,Ue))),tt=Math.max(0,Math.min(1,De(oe,q),De(We,Ue))),Ee=(Ze/2+tt)*ve.w,Ne=(1-Ze/2-Xe)*ve.w,je=(Ee+Ne)/2,nt=Ne-Ee,ot=(1-Ze)*ve.h,Ge=ot-nt/z;nt.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),de.transition().style("opacity",1).duration(200),ae=!0),_e.emit("plotly_relayouting",Te(me))}function Ve(){te(_e),me!==Y&&(i.call("_guiRelayout",_e,Te(me)),X&&_e.data&&_e._context.showTips&&(O.notifier(y(_e,"Double-click to zoom back out"),"long"),X=!1))}function $e(ke,Le){var We=ke/ve.xaxis._m,Ue=Le/ve.yaxis._m,Ze=[(me={a:Y.a-Ue,b:Y.b+(We+Ue)/2,c:Y.c-(We-Ue)/2}).a,me.b,me.c].sort(O.sorterAsc),Xe=Ze.indexOf(me.a),tt=Ze.indexOf(me.b),Ee=Ze.indexOf(me.c);Ze[0]<0&&(Ze[1]+Ze[0]/2<0?(Ze[2]+=Ze[0]+Ze[1],Ze[0]=Ze[1]=0):(Ze[2]+=Ze[0]/2,Ze[1]+=Ze[0]/2,Ze[0]=0),me={a:Ze[Xe],b:Ze[tt],c:Ze[Ee]},Le=(Y.a-me.a)*ve.yaxis._m,ke=(Y.c-me.c-Y.b+me.b)*ve.xaxis._m);var Ne=w(ve.x0+ke,ve.y0+Le);ve.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ne);var je=w(-ke,-Le);ve.clipDefRelative.select("path").attr("transform",je),ve.aaxis.range=[me.a,ve.sum-me.b-me.c],ve.baxis.range=[ve.sum-me.a-me.c,me.b],ve.caxis.range=[ve.sum-me.a-me.b,me.c],ve.drawAxes(!1),ve._hasClipOnAxisFalse&&ve.plotContainer.select(".scatterlayer").selectAll(".trace").call(a.hideOutsideRangePoints,ve),_e.emit("plotly_relayouting",Te(me))}function Oe(){i.call("_guiRelayout",_e,Te(me))}this.dragOptions={element:ye,gd:_e,plotinfo:{id:ve.id,domain:_e._fullLayout[ve.id].domain,xaxis:ve.xaxis,yaxis:ve.yaxis},subplot:ve.id,prepFn:function(ke,Le,We){ve.dragOptions.xaxes=[ve.xaxis],ve.dragOptions.yaxes=[ve.yaxis],W=_e._fullLayout._invScaleX,K=_e._fullLayout._invScaleY;var Ue=ve.dragOptions.dragmode=_e._fullLayout.dragmode;x(Ue)?ve.dragOptions.minDrag=1:ve.dragOptions.minDrag=void 0,Ue==="zoom"?(ve.dragOptions.moveFn=He,ve.dragOptions.clickFn=Pe,ve.dragOptions.doneFn=Ve,function(Ze,Xe,tt){var Ee=ye.getBoundingClientRect();oe=Xe-Ee.left,q=tt-Ee.top,_e._fullLayout._calcInverseTransform(_e);var Ne=_e._fullLayout._invTransform,je=O.apply3DTransform(Ne)(oe,q);oe=je[0],q=je[1],Y={a:ve.aaxis.range[0],b:ve.baxis.range[1],c:ve.caxis.range[1]},me=Y,ee=ve.aaxis.range[1]-Y.a,he=b(ve.graphDiv._fullLayout[ve.id].bgcolor).getLuminance(),se="M0,"+ve.h+"L"+ve.w/2+", 0L"+ve.w+","+ve.h+"Z",ae=!1,ce=Se.append("path").attr("class","zoombox").attr("transform",w(ve.x0,ve.y0)).style({fill:he>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",se),de=Se.append("path").attr("class","zoombox-corners").attr("transform",w(ve.x0,ve.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),ve.clearOutline(_e)}(0,Le,We)):Ue==="pan"?(ve.dragOptions.moveFn=$e,ve.dragOptions.clickFn=Pe,ve.dragOptions.doneFn=Oe,Y={a:ve.aaxis.range[0],b:ve.baxis.range[1],c:ve.caxis.range[1]},me=Y,ve.clearOutline(_e)):(R(Ue)||x(Ue))&&T(ke,Le,We,ve.dragOptions,Ue)}},ye.onmousemove=function(ke){S.hover(_e,ke,ve.id),_e._fullLayout._lasthover=ye,_e._fullLayout._hoversubplot=ve.id},ye.onmouseout=function(ke){_e._dragging||_.unhover(_e,ke)},_.init(this.dragOptions)}},24040:function(d,l,n){var c=n(24248),b=n(16628),i=n(52416),O=n(63620),w=n(52200).addStyleRule,y=n(92880),p=n(45464),a=n(64859),u=y.extendFlat,h=y.extendDeepAll;function m(E){var C=E.name,L=E.categories,D=E.meta;if(l.modules[C])c.log("Type "+C+" already registered");else{l.subplotsRegistry[E.basePlotModule.name]||function(X){var te=X.name;if(l.subplotsRegistry[te])c.log("Plot type "+te+" already registered.");else for(var W in A(X),l.subplotsRegistry[te]=X,l.componentsRegistry)M(W,X.name)}(E.basePlotModule);for(var k={},I=0;I-1&&(_[A[a]].title={text:""});for(a=0;a")!==-1?"":I.html($).text()});return I.remove(),z}(D)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(a,"'"),b.isIE()&&(D=(D=(D=D.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),D}},84664:function(d,l,n){var c=n(3400);d.exports=function(b,i){for(var O=0;Oz+k||!c(I))}for(var Q=0;Q=0)return _}else if(typeof _=="string"&&(_=_.trim()).slice(-1)==="%"&&c(_.slice(0,-1))&&(_=+_.slice(0,-1))>=0)return _+"%"}function v(_,S,A,x,R,M){var T=(M=M||{}).moduleHasSelected!==!1,E=M.moduleHasUnselected!==!1,C=M.moduleHasConstrain!==!1,L=M.moduleHasCliponaxis!==!1,D=M.moduleHasTextangle!==!1,k=M.moduleHasInsideanchor!==!1,I=!!M.hasPathbar,z=Array.isArray(R)||R==="auto",$=z||R==="inside",Q=z||R==="outside";if($||Q){var j=h(x,"textfont",A.font),U=b.extendFlat({},j),X=!(_.textfont&&_.textfont.color);if(X&&delete U.color,h(x,"insidetextfont",U),I){var te=b.extendFlat({},j);X&&delete te.color,h(x,"pathbar.textfont",te)}Q&&h(x,"outsidetextfont",j),T&&x("selected.textfont.color"),E&&x("unselected.textfont.color"),C&&x("constraintext"),L&&x("cliponaxis"),D&&x("textangle"),x("texttemplate")}$&&k&&x("insidetextanchor")}d.exports={supplyDefaults:function(_,S,A,x){function R(C,L){return b.coerce(_,S,u,C,L)}if(w(_,S,x,R)){y(_,S,x,R),R("xhoverformat"),R("yhoverformat"),R("orientation",S.x&&!S.y?"h":"v"),R("base"),R("offset"),R("width"),R("text"),R("hovertext"),R("hovertemplate");var M=R("textposition");v(_,0,x,R,M,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),p(_,S,R,A,x);var T=(S.marker.line||{}).color,E=O.getComponentMethod("errorbars","supplyDefaults");E(_,S,T||i.defaultLine,{axis:"y"}),E(_,S,T||i.defaultLine,{axis:"x",inherit:"y"}),b.coerceSelectionMarkerOpacity(S,R)}else S.visible=!1},crossTraceDefaults:function(_,S){var A,x;function R(E,C){return b.coerce(x._input,x,u,E,C)}for(var M=0;M<_.length;M++)if((x=_[M]).type==="bar"){A=x._input;var T=R("marker.cornerradius",S.barcornerradius);x.marker&&(x.marker.cornerradius=m(T)),S.barmode==="group"&&a(A,x,S,R)}},handleText:v,validateCornerradius:m}},52160:function(d){d.exports=function(l,n,c){return l.x="xVal"in n?n.xVal:n.x,l.y="yVal"in n?n.yVal:n.y,n.xa&&(l.xaxis=n.xa),n.ya&&(l.yaxis=n.ya),c.orientation==="h"?(l.label=l.y,l.value=l.x):(l.label=l.x,l.value=l.y),l}},60444:function(d,l,n){var c=n(38248),b=n(49760),i=n(3400).isArrayOrTypedArray;l.coerceString=function(O,w,y){if(typeof w=="string"){if(w||!O.noBlank)return w}else if((typeof w=="number"||w===!0)&&!O.strict)return String(w);return y!==void 0?y:O.dflt},l.coerceNumber=function(O,w,y){if(c(w)){w=+w;var p=O.min,a=O.max;if(!(p!==void 0&&wa))return w}return y!==void 0?y:O.dflt},l.coerceColor=function(O,w,y){return b(w).isValid()?w:y!==void 0?y:O.dflt},l.coerceEnumerated=function(O,w,y){return O.coerceNumber&&(w=+w),O.values.indexOf(w)!==-1?w:y!==void 0?y:O.dflt},l.getValue=function(O,w){var y;return i(O)?w0?Te+=Pe:x<0&&(Te-=Pe)}return Te}function he(Se){var Te=x,Pe=Se.b,Ie=me(Se);return c.inbox(Pe-Te,Ie-Te,$+(Ie-Te)/(Ie-Pe)-1)}var se=h[R+"a"],ae=h[M+"a"];C=Math.abs(se.r2c(se.range[1])-se.r2c(se.range[0]));var ce=c.getDistanceFunction(_,T,E,function(Se){return(T(Se)+E(Se))/2});if(c.getClosest(L,ce,h),h.index!==!1&&L[h.index].p!==p){U||(oe=function(Se){return Math.min(X(Se),Se.p-k.bargroupwidth/2)},q=function(Se){return Math.max(te(Se),Se.p+k.bargroupwidth/2)});var de=L[h.index],ve=D.base?de.b+de.s:de.s;h[M+"0"]=h[M+"1"]=ae.c2p(de[M],!0),h[M+"LabelVal"]=ve;var ye=k.extents[k.extents.round(de.p)];h[R+"0"]=se.c2p(I?oe(de):ye[0],!0),h[R+"1"]=se.c2p(I?q(de):ye[1],!0);var _e=de.orig_p!==void 0;return h[R+"LabelVal"]=_e?de.orig_p:de.p,h.labelLabel=y(se,h[R+"LabelVal"],D[R+"hoverformat"]),h.valueLabel=y(ae,h[M+"LabelVal"],D[M+"hoverformat"]),h.baseLabel=y(ae,de.b,D[M+"hoverformat"]),h.spikeDistance=(function(Se){var Te=x,Pe=Se.b,Ie=me(Se);return c.inbox(Pe-Te,Ie-Te,Q+(Ie-Te)/(Ie-Pe)-1)}(de)+function(Se){return Y(X(Se),te(Se),Q)}(de))/2,h[R+"Spike"]=se.c2p(de.p,!0),O(de,D,h),h.hovertemplate=D.hovertemplate,h}}function u(h,m){var v=m.mcc||h.marker.color,_=m.mlcc||h.marker.line.color,S=w(h,m);return i.opacity(v)?v:i.opacity(_)&&S?_:void 0}d.exports={hoverPoints:function(h,m,v,_,S){var A=a(h,m,v,_,S);if(A){var x=A.cd,R=x[0].trace,M=x[A.index];return A.color=u(R,M),b.getComponentMethod("errorbars","hoverInfo")(M,R,A),[A]}},hoverOnBars:a,getTraceColor:u}},51132:function(d,l,n){d.exports={attributes:n(20832),layoutAttributes:n(39324),supplyDefaults:n(31508).supplyDefaults,crossTraceDefaults:n(31508).crossTraceDefaults,supplyLayoutDefaults:n(37156),calc:n(71820),crossTraceCalc:n(96376).crossTraceCalc,colorbar:n(5528),arraysToCalcdata:n(84664),plot:n(98184).plot,style:n(60100).style,styleOnSelect:n(60100).styleOnSelect,hoverPoints:n(63400).hoverPoints,eventData:n(52160),selectPoints:n(45784),moduleType:"trace",name:"bar",basePlotModule:n(57952),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},39324:function(d){d.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}},37156:function(d,l,n){var c=n(24040),b=n(54460),i=n(3400),O=n(39324),w=n(31508).validateCornerradius;d.exports=function(y,p,a){function u(T,E){return i.coerce(y,p,O,T,E)}for(var h=!1,m=!1,v=!1,_={},S=u("barmode"),A=0;A0)-(U<0)}function D(U,X){return U0}function z(U,X,te,W,K){return!(U<0||X<0)&&(te<=U&&W<=X||te<=X&&W<=U||(K?U>=te*(X/W):X>=W*(U/te)))}function $(U){return U==="auto"?0:U}function Q(U,X){var te=Math.PI/180*X,W=Math.abs(Math.sin(te)),K=Math.abs(Math.cos(te));return{x:U.width*K+U.height*W,y:U.width*W+U.height*K}}function j(U,X,te,W,K,oe){var q=!!oe.isHorizontal,Y=!!oe.constrained,ee=oe.angle||0,me=oe.anchor,he=me==="end",se=me==="start",ae=((oe.leftToRight||0)+1)/2,ce=1-ae,de=oe.hasB,ve=oe.r,ye=oe.overhead,_e=K.width,Se=K.height,Te=Math.abs(X-U),Pe=Math.abs(W-te),Ie=Te>2*T&&Pe>2*T?T:0;Te-=2*Ie,Pe-=2*Ie;var ze=$(ee);ee!=="auto"||_e<=Te&&Se<=Pe||!(_e>Te||Se>Pe)||(_e>Pe||Se>Te)&&_eT){var $e=function(Ee,Ne,je,nt,ot,Ge,ht,pt,wt){var Dt,It,qt,en,Gt=Math.max(0,Math.abs(Ne-Ee)-2*T),Ct=Math.max(0,Math.abs(nt-je)-2*T),_t=Ge-T,nn=ht?_t-Math.sqrt(_t*_t-(_t-ht)*(_t-ht)):_t,gn=wt?2*_t:pt?_t-ht:2*nn,bn=wt?2*_t:pt?2*nn:_t-ht;return ot.y/ot.x>=Ct/(Gt-gn)?en=Ct/ot.y:ot.y/ot.x<=(Ct-bn)/Gt?en=Gt/ot.x:!wt&&pt?(Dt=ot.x*ot.x+ot.y*ot.y/4,qt=(Gt-_t)*(Gt-_t)+(Ct/2-_t)*(Ct/2-_t)-_t*_t,en=(-(It=-2*ot.x*(Gt-_t)-ot.y*(Ct/2-_t))+Math.sqrt(It*It-4*Dt*qt))/(2*Dt)):wt?(Dt=(ot.x*ot.x+ot.y*ot.y)/4,qt=(Gt/2-_t)*(Gt/2-_t)+(Ct/2-_t)*(Ct/2-_t)-_t*_t,en=(-(It=-ot.x*(Gt/2-_t)-ot.y*(Ct/2-_t))+Math.sqrt(It*It-4*Dt*qt))/(2*Dt)):(Dt=ot.x*ot.x/4+ot.y*ot.y,qt=(Gt/2-_t)*(Gt/2-_t)+(Ct-_t)*(Ct-_t)-_t*_t,en=(-(It=-ot.x*(Gt/2-_t)-2*ot.y*(Ct-_t))+Math.sqrt(It*It-4*Dt*qt))/(2*Dt)),{scale:en=Math.min(1,en),pad:pt?Math.max(0,_t-Math.sqrt(Math.max(0,_t*_t-(_t-(Ct-ot.y*en)/2)*(_t-(Ct-ot.y*en)/2)))-ht):Math.max(0,_t-Math.sqrt(Math.max(0,_t*_t-(_t-(Gt-ot.x*en)/2)*(_t-(Gt-ot.x*en)/2)))-ht)}}(U,X,te,W,Ve,ve,ye,q,de);De=$e.scale,He=$e.pad}else De=1,Y&&(De=Math.min(1,Te/Ve.x,Pe/Ve.y)),He=0;var Oe=K.left*ce+K.right*ae,ke=(K.top+K.bottom)/2,Le=(U+T)*ce+(X-T)*ae,We=(te+W)/2,Ue=0,Ze=0;if(se||he){var Xe=(q?Ve.x:Ve.y)/2;ve&&(he||de)&&(Ie+=He);var tt=q?D(U,X):D(te,W);q?se?(Le=U+tt*Ie,Ue=-tt*Xe):(Le=X-tt*Ie,Ue=tt*Xe):se?(We=te+tt*Ie,Ze=-tt*Xe):(We=W-tt*Ie,Ze=tt*Xe)}return{textX:Oe,textY:ke,targetX:Le,targetY:We,anchorX:Ue,anchorY:Ze,scale:De,rotate:ze}}d.exports={plot:function(U,X,te,W,K,oe){var q=X.xaxis,Y=X.yaxis,ee=U._fullLayout,me=U._context.staticPlot;K||(K={mode:ee.barmode,norm:ee.barmode,gap:ee.bargap,groupgap:ee.bargroupgap},m("bar",ee));var he=i.makeTraceGroups(W,te,"trace bars").each(function(se){var ae=c.select(this),ce=se[0].trace,de=se[0].t,ve=ce.type==="waterfall",ye=ce.type==="funnel",_e=ce.type==="histogram",Se=ce.type==="bar",Te=Se||ye,Pe=0;ve&&ce.connector.visible&&ce.connector.mode==="between"&&(Pe=ce.connector.line.width/2);var Ie=ce.orientation==="h",ze=I(K),De=i.ensureSingle(ae,"g","points"),He=C(ce),Ve=De.selectAll("g.point").data(i.identity,He);Ve.enter().append("g").classed("point",!0),Ve.exit().remove(),Ve.each(function(Oe,ke){var Le,We,Ue=c.select(this),Ze=function(Rt,it,at,Lt){var xt=[],Ht=[],Xt=Lt?it:at,Yt=Lt?at:it;return xt[0]=Xt.c2p(Rt.s0,!0),Ht[0]=Yt.c2p(Rt.p0,!0),xt[1]=Xt.c2p(Rt.s1,!0),Ht[1]=Yt.c2p(Rt.p1,!0),Lt?[xt,Ht]:[Ht,xt]}(Oe,q,Y,Ie),Xe=Ze[0][0],tt=Ze[0][1],Ee=Ze[1][0],Ne=Ze[1][1],je=(Ie?tt-Xe:Ne-Ee)==0;if(je&&Te&&_.getLineWidth(ce,Oe)&&(je=!1),je||(je=!(b(Xe)&&b(tt)&&b(Ee)&&b(Ne))),Oe.isBlank=je,je&&(Ie?tt=Xe:Ne=Ee),Pe&&!je&&(Ie?(Xe-=D(Xe,tt)*Pe,tt+=D(Xe,tt)*Pe):(Ee-=D(Ee,Ne)*Pe,Ne+=D(Ee,Ne)*Pe)),ce.type==="waterfall"){if(!je){var nt=ce[Oe.dir].marker;Le=nt.line.width,We=nt.color}}else Le=_.getLineWidth(ce,Oe),We=Oe.mc||ce.marker.color;function ot(Rt){var it=c.round(Le/2%1,2);return K.gap===0&&K.groupgap===0?c.round(Math.round(Rt)-it,2):Rt}var Ge=w.opacity(We)<1||Le>.01?ot:function(Rt,it,at){return at&&Rt===it?Rt:Math.abs(Rt-it)>=2?ot(Rt):Rt>it?Math.ceil(Rt):Math.floor(Rt)};U._context.staticPlot||(Xe=Ge(Xe,tt,Ie),tt=Ge(tt,Xe,Ie),Ee=Ge(Ee,Ne,!Ie),Ne=Ge(Ne,Ee,!Ie));var ht,pt=Ie?q.c2p:Y.c2p;ht=Oe.s0>0?Oe._sMax:Oe.s0<0?Oe._sMin:Oe.s1>0?Oe._sMax:Oe._sMin;var wt,Dt,It=Se||_e?function(Rt,it){if(!Rt)return 0;var at,Lt=Math.abs(Ie?Ne-Ee:tt-Xe),xt=Math.abs(Ie?tt-Xe:Ne-Ee),Ht=Ge(Math.abs(pt(ht,!0)-pt(0,!0))),Xt=Oe.hasB?Math.min(Lt/2,xt/2):Math.min(Lt/2,Ht);return at=it==="%"?Lt*(Math.min(50,Rt)/100):Rt,Ge(Math.max(Math.min(at,Xt),0))}(de.cornerradiusvalue,de.cornerradiusform):0,qt="M"+Xe+","+Ee+"V"+Ne+"H"+tt+"V"+Ee+"Z",en=0;if(It&&Oe.s){var Gt=L(Oe.s0)===0||L(Oe.s)===L(Oe.s0)?Oe.s1:Oe.s0;if((en=Ge(Oe.hasB?0:Math.abs(pt(ht,!0)-pt(Gt,!0))))0?Math.sqrt(en*(2*It-en)):0,mn=Ct>0?Math.max:Math.min;wt="M"+Xe+","+Ee+"V"+(Ne-gn*_t)+"H"+mn(tt-(It-en)*Ct,Xe)+"A "+It+","+It+" 0 0 "+nn+" "+tt+","+(Ne-It*_t-bn)+"V"+(Ee+It*_t+bn)+"A "+It+","+It+" 0 0 "+nn+" "+mn(tt-(It-en)*Ct,Xe)+","+(Ee+gn*_t)+"Z"}else if(Oe.hasB)wt="M"+(Xe+It*Ct)+","+Ee+"A "+It+","+It+" 0 0 "+nn+" "+Xe+","+(Ee+It*_t)+"V"+(Ne-It*_t)+"A "+It+","+It+" 0 0 "+nn+" "+(Xe+It*Ct)+","+Ne+"H"+(tt-It*Ct)+"A "+It+","+It+" 0 0 "+nn+" "+tt+","+(Ne-It*_t)+"V"+(Ee+It*_t)+"A "+It+","+It+" 0 0 "+nn+" "+(tt-It*Ct)+","+Ee+"Z";else{var vt=(Dt=Math.abs(Ne-Ee)+en)0?Math.sqrt(en*(2*It-en)):0,lt=_t>0?Math.max:Math.min;wt="M"+(Xe+vt*Ct)+","+Ee+"V"+lt(Ne-(It-en)*_t,Ee)+"A "+It+","+It+" 0 0 "+nn+" "+(Xe+It*Ct-bt)+","+Ne+"H"+(tt-It*Ct+bt)+"A "+It+","+It+" 0 0 "+nn+" "+(tt-vt*Ct)+","+lt(Ne-(It-en)*_t,Ee)+"V"+Ee+"Z"}}else wt=qt}else wt=qt;var yt=k(i.ensureSingle(Ue,"path"),ee,K,oe);if(yt.style("vector-effect",me?"none":"non-scaling-stroke").attr("d",isNaN((tt-Xe)*(Ne-Ee))||je&&U._context.staticPlot?"M0,0Z":wt).call(y.setClipUrl,X.layerClipId,U),!ee.uniformtext.mode&&ze){var zt=y.makePointStyleFns(ce);y.singlePointStyle(Oe,yt,ce,zt,U)}(function(Rt,it,at,Lt,xt,Ht,Xt,Yt,Qt,Pt,tn,Kt,fn){var dn,vn=it.xaxis,Nn=it.yaxis,er=Rt._fullLayout;function En(bo,Bn,hr){return i.ensureSingle(bo,"text").text(Bn).attr({class:"bartext bartext-"+dn,"text-anchor":"middle","data-notex":1}).call(y.font,hr).call(O.convertToTspans,Rt)}var In=Lt[0].trace,Un=In.orientation==="h",xr=function(bo,Bn,hr,hn,zn){var Zn,yr=Bn[0].trace;return Zn=yr.texttemplate?function(gr,vr,nr,Qn,Hn){var tr=vr[0].trace,cr=i.castOption(tr,nr,"texttemplate");if(!cr)return"";var Lr,Er,Vr,to,_o=tr.type==="histogram",fr=tr.type==="waterfall",Eo=tr.type==="funnel",ao=tr.orientation==="h";function co(ra){return a(to,to.c2l(ra),!0).text}ao?(Lr="y",Er=Hn,Vr="x",to=Qn):(Lr="x",Er=Qn,Vr="y",to=Hn);var Go,po=vr[nr],qo={};qo.label=po.p,qo.labelLabel=qo[Lr+"Label"]=(Go=po.p,a(Er,Er.c2l(Go),!0).text);var Ao=i.castOption(tr,po.i,"text");(Ao===0||Ao)&&(qo.text=Ao),qo.value=po.s,qo.valueLabel=qo[Vr+"Label"]=co(po.s);var oi={};M(oi,tr,po.i),(_o||oi.x===void 0)&&(oi.x=ao?qo.value:qo.label),(_o||oi.y===void 0)&&(oi.y=ao?qo.label:qo.value),(_o||oi.xLabel===void 0)&&(oi.xLabel=ao?qo.valueLabel:qo.labelLabel),(_o||oi.yLabel===void 0)&&(oi.yLabel=ao?qo.labelLabel:qo.valueLabel),fr&&(qo.delta=+po.rawS||po.s,qo.deltaLabel=co(qo.delta),qo.final=po.v,qo.finalLabel=co(qo.final),qo.initial=qo.final-qo.delta,qo.initialLabel=co(qo.initial)),Eo&&(qo.value=po.s,qo.valueLabel=co(qo.value),qo.percentInitial=po.begR,qo.percentInitialLabel=i.formatPercent(po.begR),qo.percentPrevious=po.difR,qo.percentPreviousLabel=i.formatPercent(po.difR),qo.percentTotal=po.sumR,qo.percenTotalLabel=i.formatPercent(po.sumR));var ko=i.castOption(tr,po.i,"customdata");return ko&&(qo.customdata=ko),i.texttemplateString(cr,qo,gr._d3locale,oi,qo,tr._meta||{})}(bo,Bn,hr,hn,zn):yr.textinfo?function(gr,vr,nr,Qn){var Hn=gr[0].trace,tr=Hn.orientation==="h",cr=Hn.type==="waterfall",Lr=Hn.type==="funnel";function Er(ko){return a(tr?nr:Qn,+ko,!0).text}var Vr,to,_o=Hn.textinfo,fr=gr[vr],Eo=_o.split("+"),ao=[],co=function(ko){return Eo.indexOf(ko)!==-1};if(co("label")&&ao.push((to=gr[vr].p,a(tr?Qn:nr,to,!0).text)),co("text")&&((Vr=i.castOption(Hn,fr.i,"text"))===0||Vr)&&ao.push(Vr),cr){var Go=+fr.rawS||fr.s,po=fr.v,qo=po-Go;co("initial")&&ao.push(Er(qo)),co("delta")&&ao.push(Er(Go)),co("final")&&ao.push(Er(po))}if(Lr){co("value")&&ao.push(Er(fr.s));var Ao=0;co("percent initial")&&Ao++,co("percent previous")&&Ao++,co("percent total")&&Ao++;var oi=Ao>1;co("percent initial")&&(Vr=i.formatPercent(fr.begR),oi&&(Vr+=" of initial"),ao.push(Vr)),co("percent previous")&&(Vr=i.formatPercent(fr.difR),oi&&(Vr+=" of previous"),ao.push(Vr)),co("percent total")&&(Vr=i.formatPercent(fr.sumR),oi&&(Vr+=" of total"),ao.push(Vr))}return ao.join("
")}(Bn,hr,hn,zn):_.getValue(yr.text,hr),_.coerceString(x,Zn)}(er,Lt,xt,vn,Nn);dn=function(bo,Bn){var hr=_.getValue(bo.textposition,Bn);return _.coerceEnumerated(R,hr)}(In,xt);var Sr=Kt.mode==="stack"||Kt.mode==="relative",ar=Lt[xt],Fn=!Sr||ar._outmost,ir=ar.hasB,Wn=Pt&&Pt-tn>T;if(xr&&dn!=="none"&&(!ar.isBlank&&Ht!==Xt&&Yt!==Qt||dn!=="auto"&&dn!=="inside")){var Kn=er.font,_r=v.getBarColor(Lt[xt],In),Ir=v.getInsideTextFont(In,xt,Kn,_r),zr=v.getOutsideTextFont(In,xt,Kn),Fr=In.insidetextanchor||"end",Rr=at.datum();Un?vn.type==="log"&&Rr.s0<=0&&(Ht=vn.range[0]0&&so>0;br=Wn?ir?z(Pn-2*Pt,Yn,Co,so,Un)||z(Pn,Yn-2*Pt,Co,so,Un):Un?z(Pn-(Pt-tn),Yn,Co,so,Un)||z(Pn,Yn-2*(Pt-tn),Co,so,Un):z(Pn,Yn-(Pt-tn),Co,so,Un)||z(Pn-2*(Pt-tn),Yn,Co,so,Un):z(Pn,Yn,Co,so,Un),dr&&br?dn="inside":(dn="outside",$r.remove(),$r=null)}else dn="inside";if(!$r){var Cr=($r=En(at,xr,So=i.ensureUniformFontSize(Rt,dn==="outside"?zr:Ir))).attr("transform");if($r.attr("transform",""),Co=(Kr=y.bBox($r.node())).width,so=Kr.height,$r.attr("transform",Cr),Co<=0||so<=0)return void $r.remove()}var io,Qr=In.textangle;io=dn==="outside"?function(bo,Bn,hr,hn,zn,Zn){var yr,gr=!!Zn.isHorizontal,vr=!!Zn.constrained,nr=Zn.angle||0,Qn=zn.width,Hn=zn.height,tr=Math.abs(Bn-bo),cr=Math.abs(hn-hr);yr=gr?cr>2*T?T:0:tr>2*T?T:0;var Lr=1;vr&&(Lr=gr?Math.min(1,cr/Hn):Math.min(1,tr/Qn));var Er=$(nr),Vr=Q(zn,Er),to=(gr?Vr.x:Vr.y)/2,_o=(zn.left+zn.right)/2,fr=(zn.top+zn.bottom)/2,Eo=(bo+Bn)/2,ao=(hr+hn)/2,co=0,Go=0,po=gr?D(Bn,bo):D(hr,hn);return gr?(Eo=Bn-po*yr,co=po*to):(ao=hn+po*yr,Go=-po*to),{textX:_o,textY:fr,targetX:Eo,targetY:ao,anchorX:co,anchorY:Go,scale:Lr,rotate:Er}}(Ht,Xt,Yt,Qt,Kr,{isHorizontal:Un,constrained:In.constraintext==="both"||In.constraintext==="outside",angle:Qr}):j(Ht,Xt,Yt,Qt,Kr,{isHorizontal:Un,constrained:In.constraintext==="both"||In.constraintext==="inside",angle:Qr,anchor:Fr,hasB:ir,r:Pt,overhead:tn}),io.fontSize=So.size,h(In.type==="histogram"?"bar":In.type,io,er),ar.transform=io;var Wr=k($r,er,Kt,fn);i.setTransormAndDisplay(Wr,io)}else at.select("text").remove()})(U,X,Ue,se,ke,Xe,tt,Ee,Ne,It,en,K,oe),X.layerClipId&&y.hideOutsideRangePoint(Oe,Ue.select("text"),q,Y,ce.xcalendar,ce.ycalendar)});var $e=ce.cliponaxis===!1;y.setClipUrl(ae,$e?null:X.layerClipId,U)});p.getComponentMethod("errorbars","plot")(U,he,X,K)},toMoveInsideBar:j}},45784:function(d){function l(n,c,b,i,O){var w=c.c2p(i?n.s0:n.p0,!0),y=c.c2p(i?n.s1:n.p1,!0),p=b.c2p(i?n.p0:n.s0,!0),a=b.c2p(i?n.p1:n.s1,!0);return O?[(w+y)/2,(p+a)/2]:i?[y,(p+a)/2]:[(w+y)/2,a]}d.exports=function(n,c){var b,i=n.cd,O=n.xaxis,w=n.yaxis,y=i[0].trace,p=y.type==="funnel",a=y.orientation==="h",u=[];if(c===!1)for(b=0;b1||D.bargap===0&&D.bargroupgap===0&&!k[0].trace.marker.line.width)&&c.select(this).attr("shape-rendering","crispEdges")}),C.selectAll("g.points").each(function(k){v(c.select(this),k[0].trace,E)}),w.getComponentMethod("errorbars","style")(C)},styleTextPoints:_,styleOnSelect:function(E,C,L){var D=C[0].trace;D.selectedpoints?function(k,I,z){i.selectedPointStyle(k.selectAll("path"),I),function($,Q,j){$.each(function(U){var X,te=c.select(this);if(U.selected){X=O.ensureUniformFontSize(j,S(te,U,Q,j));var W=Q.selected.textfont&&Q.selected.textfont.color;W&&(X.color=W),i.font(te,X)}else i.selectedTextStyle(te,Q)})}(k.selectAll("text"),I,z)}(L,D,E):(v(L,D,E),w.getComponentMethod("errorbars","style")(L))},getInsideTextFont:x,getOutsideTextFont:R,getBarColor:T,resizeText:y}},55592:function(d,l,n){var c=n(76308),b=n(94288).hasColorscale,i=n(27260),O=n(3400).coercePattern;d.exports=function(w,y,p,a,u){var h=p("marker.color",a),m=b(w,"marker");m&&i(w,y,u,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",c.defaultLine),b(w,"marker.line")&&i(w,y,u,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),O(p,"marker.pattern",h,m),p("selected.marker.color"),p("unselected.marker.color")}},82744:function(d,l,n){var c=n(33428),b=n(3400);function i(O){return"_"+O+"Text_minsize"}d.exports={recordMinTextSize:function(O,w,y){if(y.uniformtext.mode){var p=i(O),a=y.uniformtext.minsize,u=w.scale*w.fontSize;w.hide=u_.range[1]&&(E+=Math.PI),c.getClosest(h,function(D){return x(T,E,[D.rp0,D.rp1],[D.thetag0,D.thetag1],A)?R+Math.min(1,Math.abs(D.thetag1-D.thetag0)/M)-1+(D.rp1-T)/(D.rp1-D.rp0)-1:1/0},p),p.index!==!1){var C=h[p.index];p.x0=p.x1=C.ct[0],p.y0=p.y1=C.ct[1];var L=b.extendFlat({},C,{r:C.s,theta:C.p});return O(C,m,p),w(L,m,v,p),p.hovertemplate=m.hovertemplate,p.color=i(m,C),p.xLabelVal=p.yLabelVal=void 0,C.s<0&&(p.idealAlign="left"),[p]}}},94456:function(d,l,n){d.exports={moduleType:"trace",name:"barpolar",basePlotModule:n(40872),categories:["polar","bar","showLegend"],attributes:n(78100),layoutAttributes:n(9320),supplyDefaults:n(70384),supplyLayoutDefaults:n(89580),calc:n(47056).calc,crossTraceCalc:n(47056).crossTraceCalc,plot:n(42040),colorbar:n(5528),formatLabels:n(22852),style:n(60100).style,styleOnSelect:n(60100).styleOnSelect,hoverPoints:n(68896),selectPoints:n(45784),meta:{}}},9320:function(d){d.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},89580:function(d,l,n){var c=n(3400),b=n(9320);d.exports=function(i,O,w){var y,p={};function a(m,v){return c.coerce(i[y]||{},O[y],b,m,v)}for(var u=0;u0?(D=C,k=L):(D=L,k=C);var I=[w.findEnclosingVertexAngles(D,x.vangles)[0],(D+k)/2,w.findEnclosingVertexAngles(k,x.vangles)[1]];return w.pathPolygonAnnulus(T,E,D,k,I,R,M)}:function(T,E,C,L){return i.pathAnnulus(T,E,C,L,R,M)}}(p),A=p.layers.frontplot.select("g.barlayer");i.makeTraceGroups(A,a,"trace bars").each(function(){var x=c.select(this),R=i.ensureSingle(x,"g","points").selectAll("g.point").data(i.identity);R.enter().append("g").style("vector-effect",u?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),R.exit().remove(),R.each(function(M){var T,E=c.select(this),C=M.rp0=v.c2p(M.s0),L=M.rp1=v.c2p(M.s1),D=M.thetag0=_.c2g(M.p0),k=M.thetag1=_.c2g(M.p1);if(b(C)&&b(L)&&b(D)&&b(k)&&C!==L&&D!==k){var I=v.c2g(M.s1),z=(D+k)/2;M.ct=[h.c2p(I*Math.cos(z)),m.c2p(I*Math.sin(z))],T=S(C,L,D,k)}else T="M0,0Z";i.ensureSingle(E,"path").attr("d",T)}),O.setClipUrl(x,p._hasClipOnAxisFalse?p.clipIds.forTraces:null,y)})}},63188:function(d,l,n){var c=n(52904),b=n(20832),i=n(22548),O=n(29736).axisHoverFormat,w=n(21776).Ks,y=n(92880).extendFlat,p=c.marker,a=p.line;d.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:c.xperiod,yperiod:c.yperiod,xperiod0:c.xperiod0,yperiod0:c.yperiod0,xperiodalignment:c.xperiodalignment,yperiodalignment:c.yperiodalignment,xhoverformat:O("x"),yhoverformat:O("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:y({},p.symbol,{arrayOk:!1,editType:"plot"}),opacity:y({},p.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:y({},p.angle,{arrayOk:!1,editType:"calc"}),size:y({},p.size,{arrayOk:!1,editType:"calc"}),color:y({},p.color,{arrayOk:!1,editType:"style"}),line:{color:y({},a.color,{arrayOk:!1,dflt:i.defaultLine,editType:"style"}),width:y({},a.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:c.fillcolor,whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:b.offsetgroup,alignmentgroup:b.alignmentgroup,selected:{marker:c.selected.marker,editType:"style"},unselected:{marker:c.unselected.marker,editType:"style"},text:y({},c.text,{}),hovertext:y({},c.hovertext,{}),hovertemplate:w({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},62555:function(d,l,n){var c=n(38248),b=n(54460),i=n(1220),O=n(3400),w=n(39032).BADNUM,y=O._;d.exports=function(x,R){var M,T,E,C,L,D,k,I=x._fullLayout,z=b.getFromId(x,R.xaxis||"x"),$=b.getFromId(x,R.yaxis||"y"),Q=[],j=R.type==="violin"?"_numViolins":"_numBoxes";R.orientation==="h"?(E=z,C="x",L=$,D="y",k=!!R.yperiodalignment):(E=$,C="y",L=z,D="x",k=!!R.xperiodalignment);var U,X,te,W,K,oe,q=function(ot,Ge,ht,pt){var wt,Dt=Ge+"0"in ot;if(Ge in ot||Dt&&"d"+Ge in ot){var It=ht.makeCalcdata(ot,Ge);return[i(ot,ht,Ge,It).vals,It]}wt=Dt?ot[Ge+"0"]:"name"in ot&&(ht.type==="category"||c(ot.name)&&["linear","log"].indexOf(ht.type)!==-1||O.isDateTime(ot.name)&&ht.type==="date")?ot.name:pt;for(var qt=ht.type==="multicategory"?ht.r2c_just_indices(wt):ht.d2c(wt,0,ot[Ge+"calendar"]),en=ot._length,Gt=new Array(en),Ct=0;CtU.uf};if(R._hasPreCompStats){var ce=R[C],de=function(ot){return E.d2c((R[ot]||[])[M])},ve=1/0,ye=-1/0;for(M=0;M=U.q1&&U.q3>=U.med){var Se=de("lowerfence");U.lf=Se!==w&&Se<=U.q1?Se:m(U,te,W);var Te=de("upperfence");U.uf=Te!==w&&Te>=U.q3?Te:v(U,te,W);var Pe=de("mean");U.mean=Pe!==w?Pe:W?O.mean(te,W):(U.q1+U.q3)/2;var Ie=de("sd");U.sd=Pe!==w&&Ie>=0?Ie:W?O.stdev(te,W,U.mean):U.q3-U.q1,U.lo=_(U),U.uo=S(U);var ze=de("notchspan");ze=ze!==w&&ze>0?ze:A(U,W),U.ln=U.med-ze,U.un=U.med+ze;var De=U.lf,He=U.uf;R.boxpoints&&te.length&&(De=Math.min(De,te[0]),He=Math.max(He,te[W-1])),R.notched&&(De=Math.min(De,U.ln),He=Math.max(He,U.un)),U.min=De,U.max=He}else{var Ve;O.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+U.q1,"median = "+U.med,"q3 = "+U.q3].join(` -`)),Ve=U.med!==w?U.med:U.q1!==w?U.q3!==w?(U.q1+U.q3)/2:U.q1:U.q3!==w?U.q3:0,U.med=Ve,U.q1=U.q3=Ve,U.lf=U.uf=Ve,U.mean=U.sd=Ve,U.ln=U.un=Ve,U.min=U.max=Ve}ve=Math.min(ve,U.min),ye=Math.max(ye,U.max),U.pts2=X.filter(ae),Q.push(U)}}R._extremes[E._id]=b.findExtremes(E,[ve,ye],{padded:!0})}else{var $e=E.makeCalcdata(R,C),Oe=function(ot,Ge){for(var ht=ot.length,pt=new Array(ht+1),wt=0;wt=0&&We0){var Ne,je;(U={}).pos=U[D]=he[M],X=U.pts=Le[M].sort(u),W=(te=U[C]=X.map(h)).length,U.min=te[0],U.max=te[W-1],U.mean=O.mean(te,W),U.sd=O.stdev(te,W,U.mean)*R.sdmultiple,U.med=O.interp(te,.5),W%2&&(tt||Ee)?(tt?(Ne=te.slice(0,W/2),je=te.slice(W/2+1)):Ee&&(Ne=te.slice(0,W/2+1),je=te.slice(W/2)),U.q1=O.interp(Ne,.5),U.q3=O.interp(je,.5)):(U.q1=O.interp(te,.25),U.q3=O.interp(te,.75)),U.lf=m(U,te,W),U.uf=v(U,te,W),U.lo=_(U),U.uo=S(U);var nt=A(U,W);U.ln=U.med-nt,U.un=U.med+nt,Ue=Math.min(Ue,U.ln),Ze=Math.max(Ze,U.un),U.pts2=X.filter(ae),Q.push(U)}R.notched&&O.isTypedArray($e)&&($e=Array.from($e)),R._extremes[E._id]=b.findExtremes(E,R.notched?$e.concat([Ue,Ze]):$e,{padded:!0})}return function(ot,Ge){if(O.isArrayOrTypedArray(Ge.selectedpoints))for(var ht=0;ht0?(Q[0].t={num:I[j],dPos:se,posLetter:D,valLetter:C,labels:{med:y(x,"median:"),min:y(x,"min:"),q1:y(x,"q1:"),q3:y(x,"q3:"),max:y(x,"max:"),mean:R.boxmean==="sd"||R.sizemode==="sd"?y(x,"mean ± σ:").replace("σ",R.sdmultiple===1?"σ":R.sdmultiple+"σ"):y(x,"mean:"),lf:y(x,"lower fence:"),uf:y(x,"upper fence:")}},I[j]++,Q):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function a(x,R,M){for(var T in p)O.isArrayOrTypedArray(R[T])&&(Array.isArray(M)?O.isArrayOrTypedArray(R[T][M[0]])&&(x[p[T]]=R[T][M[0]][M[1]]):x[p[T]]=R[T][M])}function u(x,R){return x.v-R.v}function h(x){return x.v}function m(x,R,M){return M===0?x.q1:Math.min(x.q1,R[Math.min(O.findBin(2.5*x.q1-1.5*x.q3,R,!0)+1,M-1)])}function v(x,R,M){return M===0?x.q3:Math.max(x.q3,R[Math.max(O.findBin(2.5*x.q3-1.5*x.q1,R),0)])}function _(x){return 4*x.q1-3*x.q3}function S(x){return 4*x.q3-3*x.q1}function A(x,R){return R===0?0:1.57*(x.q3-x.q1)/Math.sqrt(R)}},96404:function(d,l,n){var c=n(54460),b=n(3400),i=n(71888).getAxisGroup,O=["v","h"];function w(y,p,a,u){var h,m,v,_=p.calcdata,S=p._fullLayout,A=u._id,x=A.charAt(0),R=[],M=0;for(h=0;h1,D=1-S[y+"gap"],k=1-S[y+"groupgap"];for(h=0;h0){var _e=X.pointpos,Se=X.jitter,Te=X.marker.size/2,Pe=0;_e+Se>=0&&((Pe=ve*(_e+Se))>j?(ye=!0,ce=Te,se=Pe):Pe>me&&(ce=Te,se=j)),Pe<=j&&(se=j);var Ie=0;_e-Se<=0&&((Ie=-ve*(_e-Se))>U?(ye=!0,de=Te,ae=Ie):Ie>he&&(de=Te,ae=U)),Ie<=U&&(ae=U)}else se=j,ae=U;var ze=new Array(v.length);for(m=0;m0?(L="v",D=I>0?Math.min($,z):Math.min(z)):I>0?(L="h",D=Math.min($)):D=0;if(D){m._length=D;var W=v("orientation",L);m._hasPreCompStats?W==="v"&&I===0?(v("x0",0),v("dx",1)):W==="h"&&k===0&&(v("y0",0),v("dy",1)):W==="v"&&I===0?v("x0"):W==="h"&&k===0&&v("y0"),b.getComponentMethod("calendars","handleTraceDefaults")(h,m,["x","y"],_)}else m.visible=!1}function u(h,m,v,_){var S=_.prefix,A=c.coerce2(h,m,p,"marker.outliercolor"),x=v("marker.line.outliercolor"),R="outliers";m._hasPreCompStats?R="all":(A||x)&&(R="suspectedoutliers");var M=v(S+"points",R);M?(v("jitter",M==="all"?.3:0),v("pointpos",M==="all"?-1.5:0),v("marker.symbol"),v("marker.opacity"),v("marker.size"),v("marker.angle"),v("marker.color",m.line.color),v("marker.line.color"),v("marker.line.width"),M==="suspectedoutliers"&&(v("marker.line.outliercolor",m.marker.color),v("marker.line.outlierwidth")),v("selected.marker.color"),v("unselected.marker.color"),v("selected.marker.size"),v("unselected.marker.size"),v("text"),v("hovertext")):delete m.marker;var T=v("hoveron");T!=="all"&&T.indexOf("points")===-1||v("hovertemplate"),c.coerceSelectionMarkerOpacity(m,v)}d.exports={supplyDefaults:function(h,m,v,_){function S(D,k){return c.coerce(h,m,p,D,k)}if(a(h,m,S,_),m.visible!==!1){O(h,m,_,S),S("xhoverformat"),S("yhoverformat");var A=m._hasPreCompStats;A&&(S("lowerfence"),S("upperfence")),S("line.color",(h.marker||{}).color||v),S("line.width"),S("fillcolor",i.addOpacity(m.line.color,.5));var x=!1;if(A){var R=S("mean"),M=S("sd");R&&R.length&&(x=!0,M&&M.length&&(x="sd"))}S("whiskerwidth");var T,E=S("sizemode");E==="quartiles"&&(T=S("boxmean",x)),S("showwhiskers",E==="quartiles"),E!=="sd"&&T!=="sd"||S("sdmultiple"),S("width"),S("quartilemethod");var C=!1;if(A){var L=S("notchspan");L&&L.length&&(C=!0)}else c.validate(h.notchwidth,p.notchwidth)&&(C=!0);S("notched",C)&&S("notchwidth"),u(h,m,S,{prefix:"box"})}},crossTraceDefaults:function(h,m){var v,_;function S(R){return c.coerce(_._input,_,p,R)}for(var A=0;AM.lo&&(te.so=!0)}return C});R.enter().append("path").classed("point",!0),R.exit().remove(),R.call(i.translatePoints,m,v)}function y(p,a,u,h){var m,v,_=a.val,S=a.pos,A=!!S.rangebreaks,x=h.bPos,R=h.bPosPxOffset||0,M=u.boxmean||(u.meanline||{}).visible;Array.isArray(h.bdPos)?(m=h.bdPos[0],v=h.bdPos[1]):(m=h.bdPos,v=h.bdPos);var T=p.selectAll("path.mean").data(u.type==="box"&&u.boxmean||u.type==="violin"&&u.box.visible&&u.meanline.visible?b.identity:[]);T.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),T.exit().remove(),T.each(function(E){var C=S.c2l(E.pos+x,!0),L=S.l2p(C-m)+R,D=S.l2p(C+v)+R,k=A?(L+D)/2:S.l2p(C)+R,I=_.c2p(E.mean,!0),z=_.c2p(E.mean-E.sd,!0),$=_.c2p(E.mean+E.sd,!0);u.orientation==="h"?c.select(this).attr("d","M"+I+","+L+"V"+D+(M==="sd"?"m0,0L"+z+","+k+"L"+I+","+L+"L"+$+","+k+"Z":"")):c.select(this).attr("d","M"+L+","+I+"H"+D+(M==="sd"?"m0,0L"+k+","+z+"L"+L+","+I+"L"+k+","+$+"Z":""))})}d.exports={plot:function(p,a,u,h){var m=p._context.staticPlot,v=a.xaxis,_=a.yaxis;b.makeTraceGroups(h,u,"trace boxes").each(function(S){var A,x,R=c.select(this),M=S[0],T=M.t,E=M.trace;T.wdPos=T.bdPos*E.whiskerwidth,E.visible!==!0||T.empty?R.remove():(E.orientation==="h"?(A=_,x=v):(A=v,x=_),O(R,{pos:A,val:x},E,T,m),w(R,{x:v,y:_},E,T),y(R,{pos:A,val:x},E,T))})},plotBoxAndWhiskers:O,plotPoints:w,plotBoxMean:y}},8264:function(d){d.exports=function(l,n){var c,b,i=l.cd,O=l.xaxis,w=l.yaxis,y=[];if(n===!1)for(c=0;c=10)return null;for(var w=1/0,y=-1/0,p=i.length,a=0;a0?Math.floor:Math.ceil,W=U>0?Math.ceil:Math.floor,K=U>0?Math.min:Math.max,oe=U>0?Math.max:Math.min,q=te(Q+X),Y=W(j-X),ee=[[v=$(Q)]];for(y=q;y*U=0;i--)O[u-i]=l[h][i],w[u-i]=n[h][i];for(y.push({x:O,y:w,bicubic:p}),i=h,O=[],w=[];i>=0;i--)O[h-i]=l[i][0],w[h-i]=n[i][0];return y.push({x:O,y:w,bicubic:a}),y}},19216:function(d,l,n){var c=n(54460),b=n(92880).extendFlat;d.exports=function(i,O,w){var y,p,a,u,h,m,v,_,S,A,x,R,M,T,E=i["_"+O],C=i[O+"axis"],L=C._gridlines=[],D=C._minorgridlines=[],k=C._boundarylines=[],I=i["_"+w],z=i[w+"axis"];C.tickmode==="array"&&(C.tickvals=E.slice());var $=i._xctrl,Q=i._yctrl,j=$[0].length,U=$.length,X=i._a.length,te=i._b.length;c.prepTicks(C),C.tickmode==="array"&&delete C.tickvals;var W=C.smoothing?3:1;function K(q){var Y,ee,me,he,se,ae,ce,de,ve,ye,_e,Se,Te=[],Pe=[],Ie={};if(O==="b")for(ee=i.b2j(q),me=Math.floor(Math.max(0,Math.min(te-2,ee))),he=ee-me,Ie.length=te,Ie.crossLength=X,Ie.xy=function(ze){return i.evalxy([],ze,ee)},Ie.dxy=function(ze,De){return i.dxydi([],ze,me,De,he)},Y=0;Y0&&(ve=i.dxydi([],Y-1,me,0,he),Te.push(se[0]+ve[0]/3),Pe.push(se[1]+ve[1]/3),ye=i.dxydi([],Y-1,me,1,he),Te.push(de[0]-ye[0]/3),Pe.push(de[1]-ye[1]/3)),Te.push(de[0]),Pe.push(de[1]),se=de;else for(Y=i.a2i(q),ae=Math.floor(Math.max(0,Math.min(X-2,Y))),ce=Y-ae,Ie.length=X,Ie.crossLength=te,Ie.xy=function(ze){return i.evalxy([],Y,ze)},Ie.dxy=function(ze,De){return i.dxydj([],ae,ze,ce,De)},ee=0;ee0&&(_e=i.dxydj([],ae,ee-1,ce,0),Te.push(se[0]+_e[0]/3),Pe.push(se[1]+_e[1]/3),Se=i.dxydj([],ae,ee-1,ce,1),Te.push(de[0]-Se[0]/3),Pe.push(de[1]-Se[1]/3)),Te.push(de[0]),Pe.push(de[1]),se=de;return Ie.axisLetter=O,Ie.axis=C,Ie.crossAxis=z,Ie.value=q,Ie.constvar=w,Ie.index=_,Ie.x=Te,Ie.y=Pe,Ie.smoothing=z.smoothing,Ie}function oe(q){var Y,ee,me,he,se,ae=[],ce=[],de={};if(de.length=E.length,de.crossLength=I.length,O==="b")for(me=Math.max(0,Math.min(te-2,q)),se=Math.min(1,Math.max(0,q-me)),de.xy=function(ve){return i.evalxy([],ve,q)},de.dxy=function(ve,ye){return i.dxydi([],ve,me,ye,se)},Y=0;YE.length-1||L.push(b(oe(p),{color:C.gridcolor,width:C.gridwidth,dash:C.griddash}));for(_=m;_E.length-1||x<0||x>E.length-1))for(R=E[a],M=E[x],y=0;yE[E.length-1]||D.push(b(K(A),{color:C.minorgridcolor,width:C.minorgridwidth,dash:C.minorgriddash}));C.startline&&k.push(b(oe(0),{color:C.startlinecolor,width:C.startlinewidth})),C.endline&&k.push(b(oe(E.length-1),{color:C.endlinecolor,width:C.endlinewidth}))}else{for(u=5e-15,m=(h=[Math.floor((E[E.length-1]-C.tick0)/C.dtick*(1+u)),Math.ceil((E[0]-C.tick0)/C.dtick/(1+u))].sort(function(q,Y){return q-Y}))[0],v=h[1],_=m;_<=v;_++)S=C.tick0+C.dtick*_,L.push(b(K(S),{color:C.gridcolor,width:C.gridwidth,dash:C.griddash}));for(_=m-1;_E[E.length-1]||D.push(b(K(A),{color:C.minorgridcolor,width:C.minorgridwidth,dash:C.minorgriddash}));C.startline&&k.push(b(K(E[0]),{color:C.startlinecolor,width:C.startlinewidth})),C.endline&&k.push(b(K(E[E.length-1]),{color:C.endlinecolor,width:C.endlinewidth}))}}},14724:function(d,l,n){var c=n(54460),b=n(92880).extendFlat;d.exports=function(i,O){var w,y,p,a=O._labels=[],u=O._gridlines;for(w=0;wi.length&&(b=b.slice(0,i.length)):b=[],w=0;w90&&(v-=180,p=-p),{angle:v,flip:p,p:l.c2p(b,n,c),offsetMultplier:a}}},164:function(d,l,n){var c=n(33428),b=n(43616),i=n(87072),O=n(53416),w=n(15584),y=n(72736),p=n(3400),a=p.strRotate,u=p.strTranslate,h=n(84284);function m(x,R,M,T,E,C,L){var D="const-"+E+"-lines",k=M.selectAll("."+D).data(C);k.enter().append("path").classed(D,!0).style("vector-effect",L?"none":"non-scaling-stroke"),k.each(function(I){var z=I,$=z.x,Q=z.y,j=i([],$,x.c2p),U=i([],Q,R.c2p),X="M"+O(j,U,z.smoothing);c.select(this).attr("d",X).style("stroke-width",z.width).style("stroke",z.color).style("stroke-dasharray",b.dashStyle(z.dash,z.width)).style("fill","none")}),k.exit().remove()}function v(x,R,M,T,E,C,L,D){var k=C.selectAll("text."+D).data(L);k.enter().append("text").classed(D,!0);var I=0,z={};return k.each(function($,Q){var j;if($.axis.tickangle==="auto")j=w(T,R,M,$.xy,$.dxy);else{var U=($.axis.tickangle+180)*Math.PI/180;j=w(T,R,M,$.xy,[Math.cos(U),Math.sin(U)])}Q||(z={angle:j.angle,flip:j.flip});var X=($.endAnchor?-1:1)*j.flip,te=c.select(this).attr({"text-anchor":X>0?"start":"end","data-notex":1}).call(b.font,$.font).text($.text).call(y.convertToTspans,x),W=b.bBox(this);te.attr("transform",u(j.p[0],j.p[1])+a(j.angle)+u($.axis.labelpadding*X,.3*W.height)),I=Math.max(I,W.width+$.axis.labelpadding)}),k.exit().remove(),z.maxExtent=I,z}d.exports=function(x,R,M,T){var E=x._context.staticPlot,C=R.xaxis,L=R.yaxis,D=x._fullLayout._clips;p.makeTraceGroups(T,M,"trace").each(function(k){var I=c.select(this),z=k[0],$=z.trace,Q=$.aaxis,j=$.baxis,U=p.ensureSingle(I,"g","minorlayer"),X=p.ensureSingle(I,"g","majorlayer"),te=p.ensureSingle(I,"g","boundarylayer"),W=p.ensureSingle(I,"g","labellayer");I.style("opacity",$.opacity),m(C,L,X,0,"a",Q._gridlines,!0),m(C,L,X,0,"b",j._gridlines,!0),m(C,L,U,0,"a",Q._minorgridlines,!0),m(C,L,U,0,"b",j._minorgridlines,!0),m(C,L,te,0,"a-boundary",Q._boundarylines,E),m(C,L,te,0,"b-boundary",j._boundarylines,E);var K=v(x,C,L,$,0,W,Q._labels,"a-label"),oe=v(x,C,L,$,0,W,j._labels,"b-label");(function(q,Y,ee,me,he,se,ae,ce){var de,ve,ye,_e,Se=p.aggNums(Math.min,null,ee.a),Te=p.aggNums(Math.max,null,ee.a),Pe=p.aggNums(Math.min,null,ee.b),Ie=p.aggNums(Math.max,null,ee.b);de=.5*(Se+Te),ve=Pe,ye=ee.ab2xy(de,ve,!0),_e=ee.dxyda_rough(de,ve),ae.angle===void 0&&p.extendFlat(ae,w(ee,he,se,ye,ee.dxydb_rough(de,ve))),A(q,Y,ee,0,ye,_e,ee.aaxis,he,se,ae,"a-title"),de=Se,ve=.5*(Pe+Ie),ye=ee.ab2xy(de,ve,!0),_e=ee.dxydb_rough(de,ve),ce.angle===void 0&&p.extendFlat(ce,w(ee,he,se,ye,ee.dxyda_rough(de,ve))),A(q,Y,ee,0,ye,_e,ee.baxis,he,se,ce,"b-title")})(x,W,$,0,C,L,K,oe),function(q,Y,ee,me,he){var se,ae,ce,de,ve=ee.select("#"+q._clipPathId);ve.size()||(ve=ee.append("clipPath").classed("carpetclip",!0));var ye=p.ensureSingle(ve,"path","carpetboundary"),_e=Y.clipsegments,Se=[];for(de=0;de<_e.length;de++)se=_e[de],ae=i([],se.x,me.c2p),ce=i([],se.y,he.c2p),Se.push(O(ae,ce,se.bicubic));var Te="M"+Se.join("L")+"Z";ve.attr("id",q._clipPathId),ye.attr("d",Te)}($,z,D,C,L)})};var _=h.LINE_SPACING,S=(1-h.MID_SHIFT)/_+1;function A(x,R,M,T,E,C,L,D,k,I,z){var $=[];L.title.text&&$.push(L.title.text);var Q=R.selectAll("text."+z).data($),j=I.maxExtent;Q.enter().append("text").classed(z,!0),Q.each(function(){var U=w(M,D,k,E,C);["start","both"].indexOf(L.showticklabels)===-1&&(j=0);var X=L.title.font.size;j+=X+L.title.offset;var te=(I.angle+(I.flip<0?180:0)-U.angle+450)%360,W=te>90&&te<270,K=c.select(this);K.text(L.title.text).call(y.convertToTspans,x),W&&(j=(-y.lineCount(K)+S)*_*X-j),K.attr("transform",u(U.p[0],U.p[1])+a(U.angle)+u(0,j)).attr("text-anchor","middle").call(b.font,L.title.font)}),Q.exit().remove()}},81e3:function(d,l,n){var c=n(24588),b=n(14952).findBin,i=n(30180),O=n(29056),w=n(26435),y=n(24464);d.exports=function(p){var a=p._a,u=p._b,h=a.length,m=u.length,v=p.aaxis,_=p.baxis,S=a[0],A=a[h-1],x=u[0],R=u[m-1],M=a[a.length-1]-a[0],T=u[u.length-1]-u[0],E=M*c.RELATIVE_CULL_TOLERANCE,C=T*c.RELATIVE_CULL_TOLERANCE;S-=E,A+=E,x-=C,R+=C,p.isVisible=function(L,D){return L>S&&Lx&&DA||DR},p.setScale=function(){var L=p._x,D=p._y,k=i(p._xctrl,p._yctrl,L,D,v.smoothing,_.smoothing);p._xctrl=k[0],p._yctrl=k[1],p.evalxy=O([p._xctrl,p._yctrl],h,m,v.smoothing,_.smoothing),p.dxydi=w([p._xctrl,p._yctrl],v.smoothing,_.smoothing),p.dxydj=y([p._xctrl,p._yctrl],v.smoothing,_.smoothing)},p.i2a=function(L){var D=Math.max(0,Math.floor(L[0]),h-2),k=L[0]-D;return(1-k)*a[D]+k*a[D+1]},p.j2b=function(L){var D=Math.max(0,Math.floor(L[1]),h-2),k=L[1]-D;return(1-k)*u[D]+k*u[D+1]},p.ij2ab=function(L){return[p.i2a(L[0]),p.j2b(L[1])]},p.a2i=function(L){var D=Math.max(0,Math.min(b(L,a),h-2)),k=a[D],I=a[D+1];return Math.max(0,Math.min(h-1,D+(L-k)/(I-k)))},p.b2j=function(L){var D=Math.max(0,Math.min(b(L,u),m-2)),k=u[D],I=u[D+1];return Math.max(0,Math.min(m-1,D+(L-k)/(I-k)))},p.ab2ij=function(L){return[p.a2i(L[0]),p.b2j(L[1])]},p.i2c=function(L,D){return p.evalxy([],L,D)},p.ab2xy=function(L,D,k){if(!k&&(La[h-1]|Du[m-1]))return[!1,!1];var I=p.a2i(L),z=p.b2j(D),$=p.evalxy([],I,z);if(k){var Q,j,U,X,te=0,W=0,K=[];La[h-1]?(Q=h-2,j=1,te=(L-a[h-1])/(a[h-1]-a[h-2])):j=I-(Q=Math.max(0,Math.min(h-2,Math.floor(I)))),Du[m-1]?(U=m-2,X=1,W=(D-u[m-1])/(u[m-1]-u[m-2])):X=z-(U=Math.max(0,Math.min(m-2,Math.floor(z)))),te&&(p.dxydi(K,Q,U,j,X),$[0]+=K[0]*te,$[1]+=K[1]*te),W&&(p.dxydj(K,Q,U,j,X),$[0]+=K[0]*W,$[1]+=K[1]*W)}return $},p.c2p=function(L,D,k){return[D.c2p(L[0]),k.c2p(L[1])]},p.p2x=function(L,D,k){return[D.p2c(L[0]),k.p2c(L[1])]},p.dadi=function(L){var D=Math.max(0,Math.min(a.length-2,L));return a[D+1]-a[D]},p.dbdj=function(L){var D=Math.max(0,Math.min(u.length-2,L));return u[D+1]-u[D]},p.dxyda=function(L,D,k,I){var z=p.dxydi(null,L,D,k,I),$=p.dadi(L,k);return[z[0]/$,z[1]/$]},p.dxydb=function(L,D,k,I){var z=p.dxydj(null,L,D,k,I),$=p.dbdj(D,I);return[z[0]/$,z[1]/$]},p.dxyda_rough=function(L,D,k){var I=M*(k||.1),z=p.ab2xy(L+I,D,!0),$=p.ab2xy(L-I,D,!0);return[.5*(z[0]-$[0])/I,.5*(z[1]-$[1])/I]},p.dxydb_rough=function(L,D,k){var I=T*(k||.1),z=p.ab2xy(L,D+I,!0),$=p.ab2xy(L,D-I,!0);return[.5*(z[0]-$[0])/I,.5*(z[1]-$[1])/I]},p.dpdx=function(L){return L._m},p.dpdy=function(L){return L._m}}},51512:function(d,l,n){var c=n(3400);d.exports=function(b,i,O){var w,y,p,a=[],u=[],h=b[0].length,m=b.length;function v(q,Y){var ee,me=0,he=0;return q>0&&(ee=b[Y][q-1])!==void 0&&(he++,me+=ee),q0&&(ee=b[Y-1][q])!==void 0&&(he++,me+=ee),Y0&&y0&&w1e-5);return c.log("Smoother converged to",I,"after",z,"iterations"),b}},86411:function(d,l,n){var c=n(3400).isArray1D;d.exports=function(b,i,O){var w=O("x"),y=w&&w.length,p=O("y"),a=p&&p.length;if(!y&&!a)return!1;if(i._cheater=!w,y&&!c(w)||a&&!c(p))i._length=null;else{var u=y?w.length:1/0;a&&(u=Math.min(u,p.length)),i.a&&i.a.length&&(u=Math.min(u,i.a.length)),i.b&&i.b.length&&(u=Math.min(u,i.b.length)),i._length=u}return!0}},83372:function(d,l,n){var c=n(21776).Ks,b=n(6096),i=n(49084),O=n(45464),w=n(22548).defaultLine,y=n(92880).extendFlat,p=b.marker.line;d.exports=y({locations:{valType:"data_array",editType:"calc"},locationmode:b.locationmode,z:{valType:"data_array",editType:"calc"},geojson:y({},b.geojson,{}),featureidkey:b.featureidkey,text:y({},b.text,{}),hovertext:y({},b.hovertext,{}),marker:{line:{color:y({},p.color,{dflt:w}),width:y({},p.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:b.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:b.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:y({},O.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:c(),showlegend:y({},O.showlegend,{dflt:!1})},i("",{cLetter:"z",editTypeOverride:"calc"}))},7924:function(d,l,n){var c=n(38248),b=n(39032).BADNUM,i=n(47128),O=n(20148),w=n(4500);function y(p){return p&&typeof p=="string"}d.exports=function(p,a){var u,h=a._length,m=new Array(h);u=a.geojson?function(x){return y(x)||c(x)}:y;for(var v=0;v")}}(O,v,p),[O]}},54272:function(d,l,n){d.exports={attributes:n(83372),supplyDefaults:n(30972),colorbar:n(96288),calc:n(7924),calcGeoJSON:n(88364).calcGeoJSON,plot:n(88364).plot,style:n(7947).style,styleOnSelect:n(7947).styleOnSelect,hoverPoints:n(69224),eventData:n(52428),selectPoints:n(17328),moduleType:"trace",name:"choropleth",basePlotModule:n(10816),categories:["geo","noOpacity","showLegend"],meta:{}}},88364:function(d,l,n){var c=n(33428),b=n(3400),i=n(27144),O=n(59972).getTopojsonFeatures,w=n(19280).findExtremes,y=n(7947).style;d.exports={calcGeoJSON:function(p,a){for(var u=p[0].trace,h=a[u.geo],m=h._subplot,v=u.locationmode,_=u._length,S=v==="geojson-id"?i.extractTraceFeature(p):O(u,m.topojson),A=[],x=[],R=0;R<_;R++){var M=p[R],T=v==="geojson-id"?M.fOut:i.locationToFeature(v,M.loc,S);if(T){M.geojson=T,M.ct=T.properties.ct,M._polygons=i.feature2polygons(T);var E=i.computeBbox(T);A.push(E[0],E[2]),x.push(E[1],E[3])}else M.geojson=null}if(h.fitbounds==="geojson"&&v==="geojson-id"){var C=i.computeBbox(i.getTraceGeojson(u));A=[C[0],C[2]],x=[C[1],C[3]]}var L={padded:!0};u._extremes.lon=w(h.lonaxis._ax,A,L),u._extremes.lat=w(h.lataxis._ax,x,L)},plot:function(p,a,u){var h=a.layers.backplot.select(".choroplethlayer");b.makeTraceGroups(h,u,"trace choropleth").each(function(m){var v=c.select(this).selectAll("path.choroplethlocation").data(b.identity);v.enter().append("path").classed("choroplethlocation",!0),v.exit().remove(),y(p,m)})}}},17328:function(d){d.exports=function(l,n){var c,b,i,O,w,y=l.cd,p=l.xaxis,a=l.yaxis,u=[];if(n===!1)for(c=0;c=0;O--){var w=i[O].id;if(typeof w=="string"&&w.indexOf("water")===0){for(var y=O+1;y=0;a--)y.removeLayer(p[a][1])},w.dispose=function(){var y=this.subplot.map;this._removeLayers(),y.removeSource(this.sourceId)},d.exports=function(y,p){var a=p[0].trace,u=new O(y,a.uid),h=u.sourceId,m=c(p),v=u.below=y.belowLookup["trace-"+a.uid];return y.map.addSource(h,{type:"geojson",data:m.geojson}),u._addLayers(m,v),p[0].trace._glTrace=u,u}},86040:function(d,l,n){var c=n(49084),b=n(29736).axisHoverFormat,i=n(21776).Ks,O=n(52948),w=n(45464),y=n(92880).extendFlat,p={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"},{keys:["norm"]}),uhoverformat:b("u",1),vhoverformat:b("v",1),whoverformat:b("w",1),xhoverformat:b("x"),yhoverformat:b("y"),zhoverformat:b("z"),showlegend:y({},w.showlegend,{dflt:!1})};y(p,c("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"})),["opacity","lightposition","lighting"].forEach(function(a){p[a]=O[a]}),p.hoverinfo=y({},w.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),p.transforms=void 0,d.exports=p},83344:function(d,l,n){var c=n(47128);d.exports=function(b,i){for(var O=i.u,w=i.v,y=i.w,p=Math.min(i.x.length,i.y.length,i.z.length,O.length,w.length,y.length),a=-1/0,u=1/0,h=0;hw.level||w.starts.length&&O===w.level)}break;case"constraint":if(b.prefixBoundary=!1,b.edgepaths.length)return;var y=b.x.length,p=b.y.length,a=-1/0,u=1/0;for(c=0;c":v>a&&(b.prefixBoundary=!0);break;case"<":(va||b.starts.length&&m===u)&&(b.prefixBoundary=!0);break;case"][":h=Math.min(v[0],v[1]),m=Math.max(v[0],v[1]),ha&&(b.prefixBoundary=!0)}}}},55296:function(d,l,n){var c=n(8932),b=n(41076),i=n(46960);d.exports={min:"zmin",max:"zmax",calc:function(O,w,y){var p=w.contours,a=w.line,u=p.size||1,h=p.coloring,m=b(w,{isColorbar:!0});if(h==="heatmap"){var v=c.extractOpts(w);y._fillgradient=v.reversescale?c.flipScale(v.colorscale):v.colorscale,y._zrange=[v.min,v.max]}else h==="fill"&&(y._fillcolor=m);y._line={color:h==="lines"?m:a.color,width:p.showlines!==!1?a.width:0,dash:a.dash},y._levels={start:p.start,end:i(p),size:u}}}},93252:function(d){d.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},95536:function(d,l,n){var c=n(38248),b=n(17428),i=n(76308),O=i.addOpacity,w=i.opacity,y=n(69104),p=n(3400).isArrayOrTypedArray,a=y.CONSTRAINT_REDUCTION,u=y.COMPARISON_OPS2;d.exports=function(h,m,v,_,S,A){var x,R,M,T=m.contours,E=v("contours.operation");T._operation=a[E],function(C,L){var D;u.indexOf(L.operation)===-1?(C("contours.value",[0,1]),p(L.value)?L.value.length>2?L.value=L.value.slice(2):L.length===0?L.value=[0,1]:L.length<2?(D=parseFloat(L.value[0]),L.value=[D,D+1]):L.value=[parseFloat(L.value[0]),parseFloat(L.value[1])]:c(L.value)&&(D=parseFloat(L.value),L.value=[D,D+1])):(C("contours.value",0),c(L.value)||(p(L.value)?L.value=parseFloat(L.value[0]):L.value=0))}(v,T),E==="="?x=T.showlines=!0:(x=v("contours.showlines"),M=v("fillcolor",O((h.line||{}).color||S,.5))),x&&(R=v("line.color",M&&w(M)?O(m.fillcolor,1):S),v("line.width",2),v("line.dash")),v("line.smoothing"),b(v,_,R,A)}},3212:function(d,l,n){var c=n(69104),b=n(38248);function i(y,p){var a,u=Array.isArray(p);function h(m){return b(m)?+m:null}return c.COMPARISON_OPS2.indexOf(y)!==-1?a=h(u?p[0]:p):c.INTERVAL_OPS.indexOf(y)!==-1?a=u?[h(p[0]),h(p[1])]:[h(p),h(p)]:c.SET_OPS.indexOf(y)!==-1&&(a=u?p.map(h):[h(p)]),a}function O(y){return function(p){p=i(y,p);var a=Math.min(p[0],p[1]),u=Math.max(p[0],p[1]);return{start:a,end:u,size:u-a}}}function w(y){return function(p){return{start:p=i(y,p),end:1/0,size:1/0}}}d.exports={"[]":O("[]"),"][":O("]["),">":w(">"),"<":w("<"),"=":w("=")}},84952:function(d){d.exports=function(l,n,c,b){var i=b("contours.start"),O=b("contours.end"),w=i===!1||O===!1,y=c("contours.size");!(w?n.autocontour=!0:c("autocontour",!1))&&y||c("ncontours")}},82172:function(d,l,n){var c=n(3400);function b(i){return c.extendFlat({},i,{edgepaths:c.extendDeep([],i.edgepaths),paths:c.extendDeep([],i.paths),starts:c.extendDeep([],i.starts)})}d.exports=function(i,O){var w,y,p,a=function(m){return m.reverse()},u=function(m){return m};switch(O){case"=":case"<":return i;case">":for(i.length!==1&&c.warn("Contour data invalid for the specified inequality operation."),y=i[0],w=0;w1e3){c.warn("Too many contours, clipping at 1000",O);break}return u}},46960:function(d){d.exports=function(l){return l.end+l.size/1e6}},88748:function(d,l,n){var c=n(3400),b=n(93252);function i(y,p,a,u){return Math.abs(y[0]-p[0])20&&ye?ve===208||ve===1114?Se=_e[0]===0?1:-1:Te=_e[1]===0?1:-1:b.BOTTOMSTART.indexOf(ve)!==-1?Te=1:b.LEFTSTART.indexOf(ve)!==-1?Se=1:b.TOPSTART.indexOf(ve)!==-1?Te=-1:Se=-1,[Se,Te]}(_,a,p),A=[w(y,p,[-S[0],-S[1]])],x=y.z.length,R=y.z[0].length,M=p.slice(),T=S.slice();for(m=0;m<1e4;m++){if(_>20?(_=b.CHOOSESADDLE[_][(S[0]||S[1])<0?0:1],y.crossings[v]=b.SADDLEREMAINDER[_]):delete y.crossings[v],!(S=b.NEWDELTA[_])){c.log("Found bad marching index:",_,p,y.level);break}A.push(w(y,p,S)),p[0]+=S[0],p[1]+=S[1],v=p.join(","),i(A[A.length-1],A[A.length-2],u,h)&&A.pop();var E=S[0]&&(p[0]<0||p[0]>R-2)||S[1]&&(p[1]<0||p[1]>x-2);if(p[0]===M[0]&&p[1]===M[1]&&S[0]===T[0]&&S[1]===T[1]||a&&E)break;_=y.crossings[v]}m===1e4&&c.log("Infinite loop in contour?");var C,L,D,k,I,z,$,Q,j,U,X,te,W,K,oe,q=i(A[0],A[A.length-1],u,h),Y=0,ee=.2*y.smoothing,me=[],he=0;for(m=1;m=he;m--)if((C=me[m])=he&&C+me[L]Q&&j--,y.edgepaths[j]=X.concat(A,U));break}de||(y.edgepaths[Q]=A.concat(U))}for(Q=0;Q=T)&&(y<=M&&(y=M),p>=T&&(p=T),u=Math.floor((p-y)/a)+1,h=0),_=0;_M&&(x.unshift(M),R.unshift(R[0])),x[x.length-1]i?0:1)+(O[0][1]>i?0:2)+(O[1][1]>i?0:4)+(O[1][0]>i?0:8);return w===5||w===10?i>(O[0][0]+O[0][1]+O[1][0]+O[1][1])/4?w===5?713:1114:w===5?104:208:w===15?0:w}d.exports=function(i){var O,w,y,p,a,u,h,m,v,_=i[0].z,S=_.length,A=_[0].length,x=S===2||A===2;for(w=0;w=0&&(L=oe,k=I):Math.abs(C[1]-L[1])<.01?Math.abs(C[1]-oe[1])<.01&&(oe[0]-C[0])*(L[0]-oe[0])>=0&&(L=oe,k=I):b.log("endpt to newendpt is not vert. or horz.",C,L,oe)}if(C=L,k>=0)break;Q+="L"+L}if(k===T.edgepaths.length){b.log("unclosed perimeter path");break}j=k,(X=U.indexOf(j)===-1)&&(j=U[0],Q+="Z")}for(j=0;jL.center?L.right-I:I-L.left)/(Q+Math.abs(Math.sin($)*k)),X=(z>L.middle?L.bottom-z:z-L.top)/(Math.abs(j)+Math.cos($)*k);if(U<1||X<1)return 1/0;var te=A.EDGECOST*(1/(U-1)+1/(X-1));te+=A.ANGLECOST*$*$;for(var W=I-Q,K=z-j,oe=I+Q,q=z+j,Y=0;Y2*A.MAXCOST)break;X&&(I/=2),z=(k=$-I/2)+1.5*I}if(U<=A.MAXCOST)return Q},l.addLabelData=function(T,E,C,L){var D=E.fontSize,k=E.width+D/3,I=Math.max(0,E.height-D/3),z=T.x,$=T.y,Q=T.theta,j=Math.sin(Q),U=Math.cos(Q),X=function(W,K){return[z+W*U-K*j,$+W*j+K*U]},te=[X(-k/2,-I/2),X(-k/2,I/2),X(k/2,I/2),X(k/2,-I/2)];C.push({text:E.text,x:z,y:$,dy:E.dy,theta:Q,level:E.level,width:k,height:I}),L.push(te)},l.drawLabels=function(T,E,C,L,D){var k=T.selectAll("text").data(E,function($){return $.text+","+$.x+","+$.y+","+$.theta});if(k.exit().remove(),k.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function($){var Q=$.x+Math.sin($.theta)*$.dy,j=$.y-Math.cos($.theta)*$.dy;c.select(this).text($.text).attr({x:Q,y:j,transform:"rotate("+180*$.theta/Math.PI+" "+Q+" "+j+")"}).call(w.convertToTspans,C)}),D){for(var I="",z=0;zy.end&&(y.start=y.end=(y.start+y.end)/2),O._input.contours||(O._input.contours={}),b.extendFlat(O._input.contours,{start:y.start,end:y.end,size:y.size}),O._input.autocontour=!0}else if(y.type!=="constraint"){var h,m=y.start,v=y.end,_=O._input.contours;m>v&&(y.start=_.start=v,v=y.end=_.end=m,m=y.start),y.size>0||(h=m===v?1:i(m,v,O.ncontours).dtick,_.size=y.size=h)}}},52440:function(d,l,n){var c=n(33428),b=n(43616),i=n(41648),O=n(41076);d.exports=function(w){var y=c.select(w).selectAll("g.contour");y.style("opacity",function(p){return p[0].trace.opacity}),y.each(function(p){var a=c.select(this),u=p[0].trace,h=u.contours,m=u.line,v=h.size||1,_=h.start,S=h.type==="constraint",A=!S&&h.coloring==="lines",x=!S&&h.coloring==="fill",R=A||x?O(u):null;a.selectAll("g.contourlevel").each(function(E){c.select(this).selectAll("path").call(b.lineGroupStyle,m.width,A?R(E.level):m.color,m.dash)});var M=h.labelfont;if(a.selectAll("g.contourlabels text").each(function(E){b.font(c.select(this),{family:M.family,size:M.size,color:M.color||(A?R(E.level):m.color)})}),S)a.selectAll("g.contourfill path").style("fill",u.fillcolor);else if(x){var T;a.selectAll("g.contourfill path").style("fill",function(E){return T===void 0&&(T=E.level),R(E.level+.5*v)}),T===void 0&&(T=_),a.selectAll("g.contourbg path").style("fill",R(T-.5*v))}}),i(w)}},97680:function(d,l,n){var c=n(27260),b=n(17428);d.exports=function(i,O,w,y,p){var a,u=w("contours.coloring"),h="";u==="fill"&&(a=w("contours.showlines")),a!==!1&&(u!=="lines"&&(h=w("line.color","#000")),w("line.width",.5),w("line.dash")),u!=="none"&&(i.showlegend!==!0&&(O.showlegend=!1),O._dfltShowLegend=!1,c(i,O,y,w,{prefix:"",cLetter:"z"})),w("line.smoothing"),b(w,y,h,p)}},37960:function(d,l,n){var c=n(83328),b=n(67104),i=n(49084),O=n(92880).extendFlat,w=b.contours;d.exports=O({carpet:{valType:"string",editType:"calc"},z:c.z,a:c.x,a0:c.x0,da:c.dx,b:c.y,b0:c.y0,db:c.dy,text:c.text,hovertext:c.hovertext,transpose:c.transpose,atype:c.xtype,btype:c.ytype,fillcolor:b.fillcolor,autocontour:b.autocontour,ncontours:b.ncontours,contours:{type:w.type,start:w.start,end:w.end,size:w.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:w.showlines,showlabels:w.showlabels,labelfont:w.labelfont,labelformat:w.labelformat,operation:w.operation,value:w.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:b.line.color,width:b.line.width,dash:b.line.dash,smoothing:b.line.smoothing,editType:"plot"},transforms:void 0},i("",{cLetter:"z",autoColorDflt:!1}))},30572:function(d,l,n){var c=n(47128),b=n(3400),i=n(2872),O=n(26136),w=n(70448),y=n(11240),p=n(35744),a=n(3252),u=n(50948),h=n(54444);d.exports=function(m,v){var _=v._carpetTrace=u(m,v);if(_&&_.visible&&_.visible!=="legendonly"){if(!v.a||!v.b){var S=m.data[_.index],A=m.data[v.index];A.a||(A.a=S.a),A.b||(A.b=S.b),a(A,v,v._defaultColor,m._fullLayout)}var x=function(R,M){var T,E,C,L,D,k,I,z=M._carpetTrace,$=z.aaxis,Q=z.baxis;$._minDtick=0,Q._minDtick=0,b.isArray1D(M.z)&&i(M,$,Q,"a","b",["z"]),T=M._a=M._a||M.a,L=M._b=M._b||M.b,T=T?$.makeCalcdata(M,"_a"):[],L=L?Q.makeCalcdata(M,"_b"):[],E=M.a0||0,C=M.da||1,D=M.b0||0,k=M.db||1,I=M._z=O(M._z||M.z,M.transpose),M._emptypoints=y(I),w(I,M._emptypoints);var j=b.maxRowLength(I),U=M.xtype==="scaled"?"":T,X=p(M,U,E,C,j,$),te=M.ytype==="scaled"?"":L,W={a:X,b:p(M,te,D,k,I.length,Q),z:I};return M.contours.type==="levels"&&M.contours.coloring!=="none"&&c(R,M,{vals:I,containerStr:"",cLetter:"z"}),[W]}(m,v);return h(v,v._z),x}}},3252:function(d,l,n){var c=n(3400),b=n(51264),i=n(37960),O=n(95536),w=n(84952),y=n(97680);d.exports=function(p,a,u,h){function m(v,_){return c.coerce(p,a,i,v,_)}if(m("carpet"),p.a&&p.b){if(!b(p,a,m,h,"a","b"))return void(a.visible=!1);m("text"),m("contours.type")==="constraint"?O(p,a,m,h,u,{hasHover:!1}):(w(p,a,m,function(v){return c.coerce2(p,a,i,v)}),y(p,a,m,h,{hasHover:!1}))}else a._defaultColor=u,a._length=null}},40448:function(d,l,n){d.exports={attributes:n(37960),supplyDefaults:n(3252),colorbar:n(55296),calc:n(30572),plot:n(94440),style:n(52440),moduleType:"trace",name:"contourcarpet",basePlotModule:n(57952),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},94440:function(d,l,n){var c=n(33428),b=n(87072),i=n(53416),O=n(43616),w=n(3400),y=n(72424),p=n(88748),a=n(23676),u=n(93252),h=n(82172),m=n(61512),v=n(56008),_=n(50948),S=n(77712);function A(M,T,E){var C=M.getPointAtLength(T),L=M.getPointAtLength(E),D=L.x-C.x,k=L.y-C.y,I=Math.sqrt(D*D+k*k);return[D/I,k/I]}function x(M){var T=Math.sqrt(M[0]*M[0]+M[1]*M[1]);return[M[0]/T,M[1]/T]}function R(M,T){var E=Math.abs(M[0]*T[0]+M[1]*T[1]);return Math.sqrt(1-E*E)/E}d.exports=function(M,T,E,C){var L=T.xaxis,D=T.yaxis;w.makeTraceGroups(C,E,"contour").each(function(k){var I=c.select(this),z=k[0],$=z.trace,Q=$._carpetTrace=_(M,$),j=M.calcdata[Q.index][0];if(Q.visible&&Q.visible!=="legendonly"){var U=z.a,X=z.b,te=$.contours,W=m(te,T,z),K=te.type==="constraint",oe=te._operation,q=K?oe==="="?"lines":"fill":te.coloring,Y=[[U[0],X[X.length-1]],[U[U.length-1],X[X.length-1]],[U[U.length-1],X[0]],[U[0],X[0]]];y(W);var ee=1e-8*(U[U.length-1]-U[0]),me=1e-8*(X[X.length-1]-X[0]);p(W,ee,me);var he,se,ae,ce,de=W;te.type==="constraint"&&(de=h(W,oe)),function(Se,Te){var Pe,Ie,ze,De,He,Ve,$e,Oe,ke;for(Pe=0;Pe=0;ce--)he=j.clipsegments[ce],se=b([],he.x,L.c2p),ae=b([],he.y,D.c2p),se.reverse(),ae.reverse(),ve.push(i(se,ae,he.bicubic));var ye="M"+ve.join("L")+"Z";(function(Se,Te,Pe,Ie,ze,De){var He,Ve,$e,Oe,ke=w.ensureSingle(Se,"g","contourbg").selectAll("path").data(De!=="fill"||ze?[]:[0]);ke.enter().append("path"),ke.exit().remove();var Le=[];for(Oe=0;Oe=0&&(wt=zt,It=qt):Math.abs(pt[1]-wt[1])=0&&(wt=zt,It=qt):w.log("endpt to newendpt is not vert. or horz.",pt,wt,zt)}if(It>=0)break;Gt+=lt(pt,wt),pt=wt}if(It===tt.edgepaths.length){w.log("unclosed perimeter path");break}ht=It,(_t=Ct.indexOf(ht)===-1)&&(ht=Ct[0],Gt+=lt(pt,wt)+"Z",pt=null)}for(ht=0;htYt&&(vt.max=Yt),vt.len=vt.max-vt.min}function Qt(Pt,tn){var Kt,fn=0,dn=.1;return(Math.abs(Pt[0]-Rt)0?+S[m]:0),v.push({type:"Feature",geometry:{type:"Point",coordinates:M},properties:T})}}var C=O.extractOpts(a),L=C.reversescale?O.flipScale(C.colorscale):C.colorscale,D=L[0][1],k=["interpolate",["linear"],["heatmap-density"],0,i.opacity(D)<1?D:i.addOpacity(D,0)];for(m=1;m=0;p--)w.removeLayer(y[p][1])},O.dispose=function(){var w=this.subplot.map;this._removeLayers(),w.removeSource(this.sourceId)},d.exports=function(w,y){var p=y[0].trace,a=new i(w,p.uid),u=a.sourceId,h=c(y),m=a.below=w.belowLookup["trace-"+p.uid];return w.map.addSource(u,{type:"geojson",data:h.geojson}),a._addLayers(h,m),a}},74248:function(d,l,n){var c=n(3400);d.exports=function(b,i){for(var O=0;O"),u.color=function(T,E){var C=T.marker,L=E.mc||C.color,D=E.mlc||C.line.color,k=E.mlw||C.line.width;return c(L)?L:c(D)&&k?D:void 0}(m,_),[u]}}},94704:function(d,l,n){d.exports={attributes:n(20088),layoutAttributes:n(7076),supplyDefaults:n(45432).supplyDefaults,crossTraceDefaults:n(45432).crossTraceDefaults,supplyLayoutDefaults:n(11631),calc:n(23096),crossTraceCalc:n(4804),plot:n(42200),style:n(44544).style,hoverPoints:n(31488),eventData:n(34580),selectPoints:n(45784),moduleType:"trace",name:"funnel",basePlotModule:n(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},7076:function(d){d.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},11631:function(d,l,n){var c=n(3400),b=n(7076);d.exports=function(i,O,w){var y=!1;function p(h,m){return c.coerce(i,O,b,h,m)}for(var a=0;a path").each(function(A){if(!A.isBlank){var x=S.marker;c.select(this).call(i.fill,A.mc||x.color).call(i.stroke,A.mlc||x.line.color).call(b.dashLine,x.line.dash,A.mlw||x.line.width).style("opacity",S.selectedpoints&&!A.selected?O:1)}}),p(_,S,a),_.selectAll(".regions").each(function(){c.select(this).selectAll("path").style("stroke-width",0).call(i.fill,S.connector.fillcolor)}),_.selectAll(".lines").each(function(){var A=S.connector.line;b.lineGroupStyle(c.select(this).selectAll("path"),A.width,A.color,A.dash)})})}}},22332:function(d,l,n){var c=n(74996),b=n(45464),i=n(86968).u,O=n(21776).Ks,w=n(21776).Gw,y=n(92880).extendFlat;d.exports={labels:c.labels,label0:c.label0,dlabel:c.dlabel,values:c.values,marker:{colors:c.marker.colors,line:{color:y({},c.marker.line.color,{dflt:null}),width:y({},c.marker.line.width,{dflt:1}),editType:"calc"},pattern:c.marker.pattern,editType:"calc"},text:c.text,hovertext:c.hovertext,scalegroup:y({},c.scalegroup,{}),textinfo:y({},c.textinfo,{flags:["label","text","value","percent"]}),texttemplate:w({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:y({},b.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:O({},{keys:["label","color","value","text","percent"]}),textposition:y({},c.textposition,{values:["inside","none"],dflt:"inside"}),textfont:c.textfont,insidetextfont:c.insidetextfont,title:{text:c.title.text,font:c.title.font,position:y({},c.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:i({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},91248:function(d,l,n){var c=n(7316);l.name="funnelarea",l.plot=function(b,i,O,w){c.plotBasePlot(l.name,b,i,O,w)},l.clean=function(b,i,O,w){c.cleanBasePlot(l.name,b,i,O,w)}},54e3:function(d,l,n){var c=n(45768);d.exports={calc:function(b,i){return c.calc(b,i)},crossTraceCalc:function(b){c.crossTraceCalc(b,{type:"funnelarea"})}}},92688:function(d,l,n){var c=n(3400),b=n(22332),i=n(86968).Q,O=n(31508).handleText,w=n(74174).handleLabelsAndValues,y=n(74174).handleMarkerDefaults;d.exports=function(p,a,u,h){function m(E,C){return c.coerce(p,a,b,E,C)}var v=m("labels"),_=m("values"),S=w(v,_),A=S.len;if(a._hasLabels=S.hasLabels,a._hasValues=S.hasValues,!a._hasLabels&&a._hasValues&&(m("label0"),m("dlabel")),A){a._length=A,y(p,a,h,m),m("scalegroup");var x,R=m("text"),M=m("texttemplate");if(M||(x=m("textinfo",Array.isArray(R)?"text+percent":"percent")),m("hovertext"),m("hovertemplate"),M||x&&x!=="none"){var T=m("textposition");O(p,a,h,m,T,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}i(a,h,m),m("title.text")&&(m("title.position"),c.coerceFont(m,"title.font",h.font)),m("aspectratio"),m("baseratio")}else a.visible=!1}},62396:function(d,l,n){d.exports={moduleType:"trace",name:"funnelarea",basePlotModule:n(91248),categories:["pie-like","funnelarea","showLegend"],attributes:n(22332),layoutAttributes:n(61280),supplyDefaults:n(92688),supplyLayoutDefaults:n(35384),calc:n(54e3).calc,crossTraceCalc:n(54e3).crossTraceCalc,plot:n(39472),style:n(62096),styleOne:n(10528),meta:{}}},61280:function(d,l,n){var c=n(85204).hiddenlabels;d.exports={hiddenlabels:c,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},35384:function(d,l,n){var c=n(3400),b=n(61280);d.exports=function(i,O){function w(y,p){return c.coerce(i,O,b,y,p)}w("hiddenlabels"),w("funnelareacolorway",O.colorway),w("extendfunnelareacolors")}},39472:function(d,l,n){var c=n(33428),b=n(43616),i=n(3400),O=i.strScale,w=i.strTranslate,y=n(72736),p=n(98184).toMoveInsideBar,a=n(82744),u=a.recordMinTextSize,h=a.clearMinTextSize,m=n(69656),v=n(37820),_=v.attachFxHandlers,S=v.determineInsideTextFont,A=v.layoutAreas,x=v.prerenderTitles,R=v.positionTitleOutside,M=v.formatSliceLabel;function T(E,C){return"l"+(C[0]-E[0])+","+(C[1]-E[1])}d.exports=function(E,C){var L=E._context.staticPlot,D=E._fullLayout;h("funnelarea",D),x(C,E),A(C,D._size),i.makeTraceGroups(D._funnelarealayer,C,"trace").each(function(k){var I=c.select(this),z=k[0],$=z.trace;(function(Q){if(Q.length){var j=Q[0],U=j.trace,X=U.aspectratio,te=U.baseratio;te>.999&&(te=.999);var W,K,oe,q=Math.pow(te,2),Y=j.vTotal,ee=Y,me=Y*q/(1-q)/Y,he=[];for(he.push($e()),K=Q.length-1;K>-1;K--)if(!(oe=Q[K]).hidden){var se=oe.v/ee;me+=se,he.push($e())}var ae=1/0,ce=-1/0;for(K=0;K-1;K--)if(!(oe=Q[K]).hidden){var He=he[De+=1][0],Ve=he[De][1];oe.TL=[-He,Ve],oe.TR=[He,Ve],oe.BL=Ie,oe.BR=ze,oe.pxmid=(Te=oe.TR,Pe=oe.BR,[.5*(Te[0]+Pe[0]),.5*(Te[1]+Pe[1])]),Ie=oe.TL,ze=oe.TR}}function $e(){var Oe,ke={x:Oe=Math.sqrt(me),y:-Oe};return[ke.x,ke.y]}})(k),I.each(function(){var Q=c.select(this).selectAll("g.slice").data(k);Q.enter().append("g").classed("slice",!0),Q.exit().remove(),Q.each(function(U,X){if(U.hidden)c.select(this).selectAll("path,g").remove();else{U.pointNumber=U.i,U.curveNumber=$.index;var te=z.cx,W=z.cy,K=c.select(this),oe=K.selectAll("path.surface").data([U]);oe.enter().append("path").classed("surface",!0).style({"pointer-events":L?"none":"all"}),K.call(_,E,k);var q="M"+(te+U.TR[0])+","+(W+U.TR[1])+T(U.TR,U.BR)+T(U.BR,U.BL)+T(U.BL,U.TL)+"Z";oe.attr("d",q),M(E,U,z);var Y=m.castOption($.textposition,U.pts),ee=K.selectAll("g.slicetext").data(U.text&&Y!=="none"?[0]:[]);ee.enter().append("g").classed("slicetext",!0),ee.exit().remove(),ee.each(function(){var me=i.ensureSingle(c.select(this),"text","",function(_e){_e.attr("data-notex",1)}),he=i.ensureUniformFontSize(E,S($,U,D.font));me.text(U.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(b.font,he).call(y.convertToTspans,E);var se,ae,ce,de=b.bBox(me.node()),ve=Math.min(U.BL[1],U.BR[1])+W,ye=Math.max(U.TL[1],U.TR[1])+W;ae=Math.max(U.TL[0],U.BL[0])+te,ce=Math.min(U.TR[0],U.BR[0])+te,(se=p(ae,ce,ve,ye,de,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"})).fontSize=he.size,u($.type,se,D),k[X].transform=se,i.setTransormAndDisplay(me,se)})}});var j=c.select(this).selectAll("g.titletext").data($.title.text?[0]:[]);j.enter().append("g").classed("titletext",!0),j.exit().remove(),j.each(function(){var U=i.ensureSingle(c.select(this),"text","",function(W){W.attr("data-notex",1)}),X=$.title.text;$._meta&&(X=i.templateString(X,$._meta)),U.text(X).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(b.font,$.title.font).call(y.convertToTspans,E);var te=R(z,D._size);U.attr("transform",w(te.x,te.y)+O(Math.min(1,te.scale))+w(te.tx,te.ty))})})})}},62096:function(d,l,n){var c=n(33428),b=n(10528),i=n(82744).resizeText;d.exports=function(O){var w=O._fullLayout._funnelarealayer.selectAll(".trace");i(O,w,"funnelarea"),w.each(function(y){var p=y[0].trace,a=c.select(this);a.style({opacity:p.opacity}),a.selectAll("path.surface").each(function(u){c.select(this).call(b,u,p,O)})})}},83328:function(d,l,n){var c=n(52904),b=n(45464),i=n(25376),O=n(29736).axisHoverFormat,w=n(21776).Ks,y=n(21776).Gw,p=n(49084),a=n(92880).extendFlat;d.exports=a({z:{valType:"data_array",editType:"calc"},x:a({},c.x,{impliedEdits:{xtype:"array"}}),x0:a({},c.x0,{impliedEdits:{xtype:"scaled"}}),dx:a({},c.dx,{impliedEdits:{xtype:"scaled"}}),y:a({},c.y,{impliedEdits:{ytype:"array"}}),y0:a({},c.y0,{impliedEdits:{ytype:"scaled"}}),dy:a({},c.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:a({},c.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:a({},c.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:a({},c.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:a({},c.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:a({},c.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:a({},c.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:O("x"),yhoverformat:O("y"),zhoverformat:O("z",1),hovertemplate:w(),texttemplate:y({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:i({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:a({},b.showlegend,{dflt:!1})},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},19512:function(d,l,n){var c=n(24040),b=n(3400),i=n(54460),O=n(1220),w=n(55480),y=n(47128),p=n(2872),a=n(26136),u=n(70448),h=n(11240),m=n(35744),v=n(39032).BADNUM;function _(S){for(var A=[],x=S.length,R=0;R1){var de=(ce[ce.length-1]-ce[0])/(ce.length-1),ve=Math.abs(de/100);for(I=0;Ive)return!1}return!0}($.rangebreaks||Q.rangebreaks)&&(k=function(ce,de,ve){for(var ye=[],_e=-1,Se=0;Se=0;p--)(a=((v[[(O=(y=_[p])[0])-1,w=y[1]]]||x)[2]+(v[[O+1,w]]||x)[2]+(v[[O,w-1]]||x)[2]+(v[[O,w+1]]||x)[2])/20)&&(u[y]=[O,w,a],_.splice(p,1),h=!0);if(!h)throw"findEmpties iterated with no new neighbors";for(y in u)v[y]=u[y],m.push(u[y])}return m.sort(function(M,T){return T[2]-M[2]})}},55512:function(d,l,n){var c=n(93024),b=n(3400),i=b.isArrayOrTypedArray,O=n(54460),w=n(8932).extractOpts;d.exports=function(y,p,a,u,h){h||(h={});var m,v,_,S,A=h.isContour,x=y.cd[0],R=x.trace,M=y.xa,T=y.ya,E=x.x,C=x.y,L=x.z,D=x.xCenter,k=x.yCenter,I=x.zmask,z=R.zhoverformat,$=E,Q=C;if(y.index!==!1){try{_=Math.round(y.index[1]),S=Math.round(y.index[0])}catch{return void b.error("Error hovering on heatmap, pointNumber must be [row,col], found:",y.index)}if(_<0||_>=L[0].length||S<0||S>L.length)return}else{if(c.inbox(p-E[0],p-E[E.length-1],0)>0||c.inbox(a-C[0],a-C[C.length-1],0)>0)return;if(A){var j;for($=[2*E[0]-E[1]],j=1;jT&&(C=Math.max(C,Math.abs(w[u][h]-M)/(E-T))))}return C}d.exports=function(w,y){var p,a=1;for(O(w,y),p=0;p.01;p++)a=O(w,y,i(a));return a>.01&&c.log("interp2d didn't converge quickly",a),w}},39096:function(d,l,n){var c=n(3400);d.exports=function(b,i){b("texttemplate");var O=c.extendFlat({},i.font,{color:"auto",size:"auto"});c.coerceFont(b,"textfont",O)}},35744:function(d,l,n){var c=n(24040),b=n(3400).isArrayOrTypedArray;d.exports=function(i,O,w,y,p,a){var u,h,m,v=[],_=c.traceIs(i,"contour"),S=c.traceIs(i,"histogram"),A=c.traceIs(i,"gl2d");if(b(O)&&O.length>1&&!S&&a.type!=="category"){var x=O.length;if(!(x<=p))return _?O.slice(0,p):O.slice(0,p+1);if(_||A)v=Array.from(O).slice(0,p);else if(p===1)v=a.type==="log"?[.5*O[0],2*O[0]]:[O[0]-.5,O[0]+.5];else if(a.type==="log"){for(v=[Math.pow(O[0],1.5)/Math.pow(O[1],.5)],m=1;m0;)U=z.c2p(ce[K]),K--;for(U0;)W=$.c2p(de[K]),K--;W=z._length||U<=0||te>=$._length||W<=0)return Y.selectAll("image").data([]).exit().remove(),void M(Y);De==="fast"?(Ve=Pe,$e=Te):(Ve=Oe,$e=ke);var Le=document.createElement("canvas");Le.width=Ve,Le.height=$e;var We,Ue,Ze=Le.getContext("2d",{willReadFrequently:!0}),Xe=m(me,{noNumericCheck:!0,returnArray:!0});De==="fast"?(We=Ie?function(Pn){return Pe-1-Pn}:y.identity,Ue=ze?function(Pn){return Te-1-Pn}:y.identity):(We=function(Pn){return y.constrain(Math.round(z.c2p(ce[Pn])-j),0,Oe)},Ue=function(Pn){return y.constrain(Math.round($.c2p(de[Pn])-te),0,ke)});var tt,Ee,Ne,je,nt=Ue(0),ot=[nt,nt],Ge=Ie?0:1,ht=ze?0:1,pt=0,wt=0,Dt=0,It=0;function qt(Pn,Yn){if(Pn!==void 0){var br=Xe(Pn);return br[0]=Math.round(br[0]),br[1]=Math.round(br[1]),br[2]=Math.round(br[2]),pt+=Yn,wt+=br[0]*Yn,Dt+=br[1]*Yn,It+=br[2]*Yn,br}return[0,0,0,0]}function en(Pn,Yn,br,dr){var Cr=Pn[br.bin0];if(Cr===void 0)return qt(void 0,1);var io,Qr=Pn[br.bin1],Wr=Yn[br.bin0],bo=Yn[br.bin1],Bn=Qr-Cr||0,hr=Wr-Cr||0;return io=Qr===void 0?bo===void 0?0:Wr===void 0?2*(bo-Cr):2*(2*bo-Wr-Cr)/3:bo===void 0?Wr===void 0?0:2*(2*Cr-Qr-Wr)/3:Wr===void 0?2*(2*bo-Qr-Cr)/3:bo+Cr-Qr-Wr,qt(Cr+br.frac*Bn+dr.frac*(hr+br.frac*io))}if(De!=="default"){var Gt,Ct=0;try{Gt=new Uint8Array(Ve*$e*4)}catch{Gt=new Array(Ve*$e*4)}if(De==="smooth"){var _t,nn,gn,bn=ve||ce,mn=ye||de,vt=new Array(bn.length),bt=new Array(mn.length),lt=new Array(Oe),yt=ve?E:T,zt=ye?E:T;for(K=0;KEn||En>$._length))for(oe=dn;oeUn||Un>z._length)){var xr=a({x:In,y:er},me,L._fullLayout);xr.x=In,xr.y=er;var Sr=ee.z[K][oe];Sr===void 0?(xr.z="",xr.zLabel=""):(xr.z=Sr,xr.zLabel=w.tickText(Pt,Sr,"hover").text);var ar=ee.text&&ee.text[K]&&ee.text[K][oe];ar!==void 0&&ar!==!1||(ar=""),xr.text=ar;var Fn=y.texttemplateString(Yt,xr,L._fullLayout._d3locale,xr,me._meta||{});if(Fn){var ir=Fn.split("
"),Wn=ir.length,Kn=0;for(q=0;q0&&(T=!0);for(var L=0;Ly){var p=y-O[b];return O[b]=y,p}}return 0},max:function(b,i,O,w){var y=w[i];if(c(y)){if(y=Number(y),!c(O[b]))return O[b]=y,y;if(O[b]p?_>O?_>1.1*b?b:_>1.1*i?i:O:_>w?w:_>y?y:p:Math.pow(10,Math.floor(Math.log(_)/Math.LN10))}function m(_,S,A,x,R,M){if(x&&_>O){var T=v(S,R,M),E=v(A,R,M),C=_===b?0:1;return T[C]!==E[C]}return Math.floor(A/_)-Math.floor(S/_)>.1}function v(_,S,A){var x=S.c2d(_,b,A).split("-");return x[0]===""&&(x.unshift(),x[0]="-"+x[0]),x}d.exports=function(_,S,A,x,R){var M,T,E=-1.1*S,C=-.1*S,L=_-C,D=A[0],k=A[1],I=Math.min(u(D+C,D+L,x,R),u(k+C,k+L,x,R)),z=Math.min(u(D+E,D+C,x,R),u(k+E,k+C,x,R));if(I>z&&zO){var $=M===b?1:6,Q=M===b?"M12":"M1";return function(j,U){var X=x.c2d(j,b,R),te=X.indexOf("-",$);te>0&&(X=X.substr(0,te));var W=x.d2c(X,0,R);if(W_.r2l(de)&&(ye=O.tickIncrement(ye,z.size,!0,T)),he.start=_.l2r(ye),ce||b.nestedProperty(v,D+".start").set(he.start)}var _e=z.end,Se=_.r2l(me.end),Te=Se!==void 0;if((z.endFound||Te)&&Se!==_.r2l(_e)){var Pe=Te?Se:b.aggNums(Math.max,null,E);he.end=_.l2r(Pe),Te||b.nestedProperty(v,D+".start").set(he.end)}var Ie="autobin"+S;return v._input[Ie]===!1&&(v._input[D]=b.extendFlat({},v[D]||{}),delete v._input[Ie],delete v[Ie]),[he,E]}d.exports={calc:function(m,v){var _,S,A,x,R=[],M=[],T=v.orientation==="h",E=O.getFromId(m,T?v.yaxis:v.xaxis),C=T?"y":"x",L={x:"y",y:"x"}[C],D=v[C+"calendar"],k=v.cumulative,I=h(m,v,E,C),z=I[0],$=I[1],Q=typeof z.size=="string",j=[],U=Q?j:z,X=[],te=[],W=[],K=0,oe=v.histnorm,q=v.histfunc,Y=oe.indexOf("density")!==-1;k.enabled&&Y&&(oe=oe.replace(/ ?density$/,""),Y=!1);var ee,me=q==="max"||q==="min"?null:0,he=y.count,se=p[oe],ae=!1,ce=function(ke){return E.r2c(ke,0,D)};for(b.isArrayOrTypedArray(v[L])&&q!=="count"&&(ee=v[L],ae=q==="avg",he=y[q]),_=ce(z.start),A=ce(z.end)+(_-O.tickIncrement(_,z.size,!1,D))/1e6;_=0&&x<_e&&(K+=he(x,_,M,ee,te),Se&&W[x].length&&ze!==$[W[x][0]]&&(Se=!1),W[x].push(_),Ie[_]=x,Te=Math.min(Te,ze-j[x]),Pe=Math.min(Pe,j[x+1]-ze))}ve.leftGap=Te,ve.rightGap=Pe,Se||(ye=function(ke,Le){return function(){var We=m._fullLayout._roundFnOpts[de];return u(We.leftGap,We.rightGap,j,E,D)(ke,Le)}}),ae&&(K=a(M,te)),se&&se(M,K,X),k.enabled&&function(ke,Le,We){var Ue,Ze,Xe;function tt(Ne){Xe=ke[Ne],ke[Ne]/=2}function Ee(Ne){Ze=ke[Ne],ke[Ne]=Xe+Ze/2,Xe+=Ze}if(We==="half")if(Le==="increasing")for(tt(0),Ue=1;Ue=0;Ue--)Ee(Ue);else if(Le==="increasing"){for(Ue=1;Ue=0;Ue--)ke[Ue]+=ke[Ue+1];We==="exclude"&&(ke.push(0),ke.shift())}}(M,k.direction,k.currentbin);var De=Math.min(R.length,M.length),He=[],Ve=0,$e=De-1;for(_=0;_=Ve;_--)if(M[_]){$e=_;break}for(_=Ve;_<=$e;_++)if(c(R[_])&&c(M[_])){var Oe={p:R[_],s:M[_],b:0};k.enabled||(Oe.pts=W[_],Se?Oe.ph0=Oe.ph1=W[_].length?$[W[_][0]]:R[_]:(v._computePh=!0,Oe.ph0=ye(j[_]),Oe.ph1=ye(j[_+1],!0))),He.push(Oe)}return He.length===1&&(He[0].width1=O.tickIncrement(He[0].p,z.size,!1,D)-He[0].p),w(He,v),b.isArrayOrTypedArray(v.selectedpoints)&&b.tagSelected(He,v,Ie),He},calcAllAutoBins:h}},73316:function(d){d.exports={eventDataKeys:["binNumber"]}},80536:function(d,l,n){var c=n(3400),b=n(79811),i=n(24040).traceIs,O=n(20011),w=n(31508).validateCornerradius,y=c.nestedProperty,p=n(71888).getAxisGroup,a=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],u=["x","y"];d.exports=function(h,m){var v,_,S,A,x,R,M,T=m._histogramBinOpts={},E=[],C={},L=[];function D(me,he){return c.coerce(v._input,v,v._module.attributes,me,he)}function k(me){return me.orientation==="v"?"x":"y"}function I(me,he,se){var ae=me.uid+"__"+se;he||(he=ae);var ce=function(_e,Se){return b.getFromTrace({_fullLayout:m},_e,Se).type}(me,se),de=me[se+"calendar"]||"",ve=T[he],ye=!0;ve&&(ce===ve.axType&&de===ve.calendar?(ye=!1,ve.traces.push(me),ve.dirs.push(se)):(he=ae,ce!==ve.axType&&c.warn(["Attempted to group the bins of trace",me.index,"set on a","type:"+ce,"axis","with bins on","type:"+ve.axType,"axis."].join(" ")),de!==ve.calendar&&c.warn(["Attempted to group the bins of trace",me.index,"set with a",de,"calendar","with bins",ve.calendar?"on a "+ve.calendar+" calendar":"w/o a set calendar"].join(" ")))),ye&&(T[he]={traces:[me],dirs:[se],axType:ce,calendar:me[se+"calendar"]||""}),me["_"+se+"bingroup"]=he}for(x=0;xj&&I.splice(j,I.length-j),Q.length>j&&Q.splice(j,Q.length-j);var U=[],X=[],te=[],W=typeof k.size=="string",K=typeof $.size=="string",oe=[],q=[],Y=W?oe:k,ee=K?q:$,me=0,he=[],se=[],ae=v.histnorm,ce=v.histfunc,de=ae.indexOf("density")!==-1,ve=ce==="max"||ce==="min"?null:0,ye=i.count,_e=O[ae],Se=!1,Te=[],Pe=[],Ie="z"in v?v.z:"marker"in v&&Array.isArray(v.marker.color)?v.marker.color:"";Ie&&ce!=="count"&&(Se=ce==="avg",ye=i[ce]);var ze=k.size,De=C(k.start),He=C(k.end)+(De-b.tickIncrement(De,ze,!1,T))/1e6;for(_=De;_=0&&A<$e&&x>=0&&x-1,flipY:X.tiling.flip.indexOf("y")>-1,orientation:X.tiling.orientation,pad:{inner:X.tiling.pad},maxDepth:X._maxDepth}).descendants(),q=1/0,Y=-1/0;oe.forEach(function(ae){var ce=ae.depth;ce>=X._maxDepth?(ae.x0=ae.x1=(ae.x0+ae.x1)/2,ae.y0=ae.y1=(ae.y0+ae.y1)/2):(q=Math.min(q,ce),Y=Math.max(Y,ce))}),A=A.data(oe,a.getPtId),X._maxVisibleLayers=isFinite(Y)?Y-q+1:0,A.enter().append("g").classed("slice",!0),I(A,m,{},[R,M],C),A.order();var ee=null;if(k&&Q){var me=a.getPtId(Q);A.each(function(ae){ee===null&&a.getPtId(ae)===me&&(ee={x0:ae.x0,x1:ae.x1,y0:ae.y0,y1:ae.y1})})}var he=function(){return ee||{x0:0,x1:R,y0:0,y1:M}},se=A;return k&&(se=se.transition().each("end",function(){var ae=c.select(this);a.setSliceCursor(ae,v,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),se.each(function(ae){ae._x0=T(ae.x0),ae._x1=T(ae.x1),ae._y0=E(ae.y0),ae._y1=E(ae.y1),ae._hoverX=T(ae.x1-X.tiling.pad),ae._hoverY=E(K?ae.y1-X.tiling.pad/2:ae.y0+X.tiling.pad/2);var ce=c.select(this),de=b.ensureSingle(ce,"path","surface",function(Se){Se.style("pointer-events",j?"none":"all")});k?de.transition().attrTween("d",function(Se){var Te=z(Se,m,he(),[R,M],{orientation:X.tiling.orientation,flipX:X.tiling.flip.indexOf("x")>-1,flipY:X.tiling.flip.indexOf("y")>-1});return function(Pe){return C(Te(Pe))}}):de.attr("d",C),ce.call(u,S,v,_,{styleOne:y,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,v,{isTransitioning:v._transitioning}),de.call(y,ae,X,v,{hovered:!1}),ae.x0===ae.x1||ae.y0===ae.y1?ae._text="":ae._text=h(ae,S,X,_,U)||"";var ve=b.ensureSingle(ce,"g","slicetext"),ye=b.ensureSingle(ve,"text","",function(Se){Se.attr("data-notex",1)}),_e=b.ensureUniformFontSize(v,a.determineTextFont(X,ae,U.font));ye.text(ae._text||" ").classed("slicetext",!0).attr("text-anchor",W?"end":te?"start":"middle").call(i.font,_e).call(O.convertToTspans,v),ae.textBB=i.bBox(ye.node()),ae.transform=L(ae,{fontSize:_e.size}),ae.transform.fontSize=_e.size,k?ye.transition().attrTween("transform",function(Se){var Te=$(Se,m,he(),[R,M]);return function(Pe){return D(Te(Pe))}}):ye.attr("transform",D(ae))}),ee}},29044:function(d,l,n){d.exports={moduleType:"trace",name:"icicle",basePlotModule:n(59564),categories:[],animatable:!0,attributes:n(97376),layoutAttributes:n(90676),supplyDefaults:n(7045),supplyLayoutDefaults:n(4304),calc:n(73876).r,crossTraceCalc:n(73876).q,plot:n(38364),style:n(47192).style,colorbar:n(5528),meta:{}}},90676:function(d){d.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},4304:function(d,l,n){var c=n(3400),b=n(90676);d.exports=function(i,O){function w(y,p){return c.coerce(i,O,b,y,p)}w("iciclecolorway",O.colorway),w("extendiciclecolors")}},25132:function(d,l,n){var c=n(74148),b=n(83024);d.exports=function(i,O,w){var y=w.flipX,p=w.flipY,a=w.orientation==="h",u=w.maxDepth,h=O[0],m=O[1];u&&(h=(i.height+1)*O[0]/Math.min(i.height+1,u),m=(i.height+1)*O[1]/Math.min(i.height+1,u));var v=c.partition().padding(w.pad.inner).size(a?[O[1],h]:[O[0],m])(i);return(a||y||p)&&b(v,O,{swapXY:a,flipX:y,flipY:p}),v}},38364:function(d,l,n){var c=n(95808),b=n(67880);d.exports=function(i,O,w,y){return c(i,O,w,y,{type:"icicle",drawDescendants:b})}},47192:function(d,l,n){var c=n(33428),b=n(76308),i=n(3400),O=n(82744).resizeText,w=n(60404);function y(p,a,u,h){var m=a.data.data,v=!a.children,_=m.i,S=i.castOption(u,_,"marker.line.color")||b.defaultLine,A=i.castOption(u,_,"marker.line.width")||0;p.call(w,a,u,h).style("stroke-width",A).call(b.stroke,S).style("opacity",v?u.leaf.opacity:null)}d.exports={style:function(p){var a=p._fullLayout._iciclelayer.selectAll(".trace");O(p,a,"icicle"),a.each(function(u){var h=c.select(this),m=u[0].trace;h.style("opacity",m.opacity),h.selectAll("path.surface").each(function(v){c.select(this).call(y,v,m,p)})})},styleOne:y}},95188:function(d,l,n){for(var c=n(45464),b=n(21776).Ks,i=n(92880).extendFlat,O=n(47797).colormodel,w=["rgb","rgba","rgba256","hsl","hsla"],y=[],p=[],a=0;a0||c.inbox(p-a.y0,p-(a.y0+a.h*u.dy),0)>0)){var v,_=Math.floor((y-a.x0)/u.dx),S=Math.floor(Math.abs(p-a.y0)/u.dy);if(u._hasZ?v=a.z[S][_]:u._hasSource&&(v=u._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(_,S,1,1).data),v){var A,x=a.hi||u.hoverinfo;if(x){var R=x.split("+");R.indexOf("all")!==-1&&(R=["color"]),R.indexOf("color")!==-1&&(A=!0)}var M,T=O.colormodel[u.colormodel],E=T.colormodel||u.colormodel,C=E.length,L=u._scaler(v),D=T.suffix,k=[];(u.hovertemplate||A)&&(k.push("["+[L[0]+D[0],L[1]+D[1],L[2]+D[2]].join(", ")),C===4&&k.push(", "+L[3]+D[3]),k.push("]"),k=k.join(""),w.extraText=E.toUpperCase()+": "+k),i(u.hovertext)&&i(u.hovertext[S])?M=u.hovertext[S][_]:i(u.text)&&i(u.text[S])&&(M=u.text[S][_]);var I=m.c2p(a.y0+(S+.5)*u.dy),z=a.x0+(_+.5)*u.dx,$=a.y0+(S+.5)*u.dy,Q="["+v.slice(0,u.colormodel.length).join(", ")+"]";return[b.extendFlat(w,{index:[S,_],x0:h.c2p(a.x0+_*u.dx),x1:h.c2p(a.x0+(_+1)*u.dx),y0:I,y1:I,color:L,xVal:z,xLabelVal:z,yVal:$,yLabelVal:$,zLabelVal:Q,text:M,hovertemplateLabels:{zLabel:Q,colorLabel:k,"color[0]Label":L[0]+D[0],"color[1]Label":L[1]+D[1],"color[2]Label":L[2]+D[2],"color[3]Label":L[3]+D[3]}})]}}}},48928:function(d,l,n){d.exports={attributes:n(95188),supplyDefaults:n(13188),calc:n(93336),plot:n(63715),style:n(28576),hoverPoints:n(24892),eventData:n(79972),moduleType:"trace",name:"image",basePlotModule:n(57952),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},63715:function(d,l,n){var c=n(33428),b=n(3400),i=b.strTranslate,O=n(9616),w=n(47797),y=n(9188),p=n(2264).STYLE;d.exports=function(a,u,h,m){var v=u.xaxis,_=u.yaxis,S=!a._context._exportedPlot&&y();b.makeTraceGroups(m,h,"im").each(function(A){var x=c.select(this),R=A[0],M=R.trace,T=(M.zsmooth==="fast"||M.zsmooth===!1&&S)&&!M._hasZ&&M._hasSource&&v.type==="linear"&&_.type==="linear";M._realImage=T;var E,C,L,D,k,I,z=R.z,$=R.x0,Q=R.y0,j=R.w,U=R.h,X=M.dx,te=M.dy;for(I=0;E===void 0&&I0;)C=v.c2p($+I*X),I--;for(I=0;D===void 0&&I0;)k=_.c2p(Q+I*te),I--;Cee[0];if(me||he){var se=E+W/2,ae=D+K/2;q+="transform:"+i(se+"px",ae+"px")+"scale("+(me?-1:1)+","+(he?-1:1)+")"+i(-se+"px",-ae+"px")+";"}}oe.attr("style",q);var ce=new Promise(function(ve){if(M._hasZ)ve();else if(M._hasSource)if(M._canvas&&M._canvas.el.width===j&&M._canvas.el.height===U&&M._canvas.source===M.source)ve();else{var ye=document.createElement("canvas");ye.width=j,ye.height=U;var _e=ye.getContext("2d",{willReadFrequently:!0});M._image=M._image||new Image;var Se=M._image;Se.onload=function(){_e.drawImage(Se,0,0),M._canvas={el:ye,source:M.source},ve()},Se.setAttribute("src",M.source)}}).then(function(){var ve,ye;if(M._hasZ)ye=de(function(Se,Te){var Pe=z[Te][Se];return b.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),ve=ye.toDataURL("image/png");else if(M._hasSource)if(T)ve=M.source;else{var _e=M._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,j,U).data;ye=de(function(Se,Te){var Pe=4*(Te*j+Se);return[_e[Pe],_e[Pe+1],_e[Pe+2],_e[Pe+3]]}),ve=ye.toDataURL("image/png")}oe.attr({"xlink:href":ve,height:K,width:W,x:E,y:D})});a._promises.push(ce)}function de(ve){var ye=document.createElement("canvas");ye.width=W,ye.height=K;var _e,Se=ye.getContext("2d",{willReadFrequently:!0}),Te=function(Le){return b.constrain(Math.round(v.c2p($+Le*X)-E),0,W)},Pe=function(Le){return b.constrain(Math.round(_.c2p(Q+Le*te)-D),0,K)},Ie=w.colormodel[M.colormodel],ze=Ie.colormodel||M.colormodel,De=Ie.fmt;for(I=0;I0}function C(z){z.each(function($){x.stroke(c.select(this),$.line.color)}).each(function($){x.fill(c.select(this),$.color)}).style("stroke-width",function($){return $.line.width})}function L(z,$,Q){var j=z._fullLayout,U=O.extendFlat({type:"linear",ticks:"outside",range:Q,showline:!0},$),X={type:"linear",_id:"x"+$._id},te={letter:"x",font:j.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function W(K,oe){return O.coerce(U,X,A,K,oe)}return _(U,X,W,te,j),S(U,X,W,te),X}function D(z,$,Q){return[Math.min($/z.width,Q/z.height),z,$+"x"+Q]}function k(z,$,Q,j){var U=document.createElementNS("http://www.w3.org/2000/svg","text"),X=c.select(U);return X.text(z).attr("x",0).attr("y",0).attr("text-anchor",Q).attr("data-unformatted",z).call(m.convertToTspans,j).call(u.font,$),u.bBox(X.node())}function I(z,$,Q,j,U,X){var te="_cache"+$;z[te]&&z[te].key===U||(z[te]={key:U,value:Q});var W=O.aggNums(X,null,[z[te].value,j],2);return z[te].value=W,W}d.exports=function(z,$,Q,j){var U,X=z._fullLayout;E(Q)&&j&&(U=j()),O.makeTraceGroups(X._indicatorlayer,$,"trace").each(function(te){var W,K,oe,q,Y,ee=te[0].trace,me=c.select(this),he=ee._hasGauge,se=ee._isAngular,ae=ee._isBullet,ce=ee.domain,de={w:X._size.w*(ce.x[1]-ce.x[0]),h:X._size.h*(ce.y[1]-ce.y[0]),l:X._size.l+X._size.w*ce.x[0],r:X._size.r+X._size.w*(1-ce.x[1]),t:X._size.t+X._size.h*(1-ce.y[1]),b:X._size.b+X._size.h*ce.y[0]},ve=de.l+de.w/2,ye=de.t+de.h/2,_e=Math.min(de.w/2,de.h),Se=h.innerRadius*_e,Te=ee.align||"center";if(K=ye,he){if(se&&(W=ve,K=ye+_e/2,oe=function(Oe){return function(ke,Le){return[Le/Math.sqrt(ke.width/2*(ke.width/2)+ke.height*ke.height),ke,Le]}(Oe,.9*Se)}),ae){var Pe=h.bulletPadding,Ie=1-h.bulletNumberDomainSize+Pe;W=de.l+(Ie+(1-Ie)*M[Te])*de.w,oe=function(Oe){return D(Oe,(h.bulletNumberDomainSize-Pe)*de.w,de.h)}}}else W=de.l+M[Te]*de.w,oe=function(Oe){return D(Oe,de.w,de.h)};(function(Oe,ke,Le,We){var Ue,Ze,Xe,tt=Le[0].trace,Ee=We.numbersX,Ne=We.numbersY,je=tt.align||"center",nt=R[je],ot=We.transitionOpts,Ge=We.onComplete,ht=O.ensureSingle(ke,"g","numbers"),pt=[];tt._hasNumber&&pt.push("number"),tt._hasDelta&&(pt.push("delta"),tt.delta.position==="left"&&pt.reverse());var wt=ht.selectAll("text").data(pt);function Dt(gn,bn,mn,vt){if(!gn.match("s")||mn>=0==vt>=0||bn(mn).slice(-1).match(T)||bn(vt).slice(-1).match(T))return bn;var bt=gn.slice().replace("s","f").replace(/\d+/,function(yt){return parseInt(yt)-1}),lt=L(Oe,{tickformat:bt});return function(yt){return Math.abs(yt)<1?v.tickText(lt,yt).text:bn(yt)}}wt.enter().append("text"),wt.attr("text-anchor",function(){return nt}).attr("class",function(gn){return gn}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),wt.exit().remove();var It,qt=tt.mode+tt.align;if(tt._hasDelta&&(It=function(){var gn=L(Oe,{tickformat:tt.delta.valueformat},tt._range);gn.setScale(),v.prepTicks(gn);var bn=function(it){return v.tickText(gn,it).text},mn=tt.delta.suffix,vt=tt.delta.prefix,bt=function(it){return tt.delta.relative?it.relativeDelta:it.delta},lt=function(it,at){return it===0||typeof it!="number"||isNaN(it)?"-":(it>0?tt.delta.increasing.symbol:tt.delta.decreasing.symbol)+vt+at(it)+mn},yt=function(it){return it.delta>=0?tt.delta.increasing.color:tt.delta.decreasing.color};tt._deltaLastValue===void 0&&(tt._deltaLastValue=bt(Le[0]));var zt=ht.select("text.delta");function Rt(){zt.text(lt(bt(Le[0]),bn)).call(x.fill,yt(Le[0])).call(m.convertToTspans,Oe)}return zt.call(u.font,tt.delta.font).call(x.fill,yt({delta:tt._deltaLastValue})),E(ot)?zt.transition().duration(ot.duration).ease(ot.easing).tween("text",function(){var it=c.select(this),at=bt(Le[0]),Lt=tt._deltaLastValue,xt=Dt(tt.delta.valueformat,bn,Lt,at),Ht=i(Lt,at);return tt._deltaLastValue=at,function(Xt){it.text(lt(Ht(Xt),xt)),it.call(x.fill,yt({delta:Ht(Xt)}))}}).each("end",function(){Rt(),Ge&&Ge()}).each("interrupt",function(){Rt(),Ge&&Ge()}):Rt(),Ze=k(lt(bt(Le[0]),bn),tt.delta.font,nt,Oe),zt}(),qt+=tt.delta.position+tt.delta.font.size+tt.delta.font.family+tt.delta.valueformat,qt+=tt.delta.increasing.symbol+tt.delta.decreasing.symbol,Xe=Ze),tt._hasNumber&&(function(){var gn=L(Oe,{tickformat:tt.number.valueformat},tt._range);gn.setScale(),v.prepTicks(gn);var bn=function(yt){return v.tickText(gn,yt).text},mn=tt.number.suffix,vt=tt.number.prefix,bt=ht.select("text.number");function lt(){var yt=typeof Le[0].y=="number"?vt+bn(Le[0].y)+mn:"-";bt.text(yt).call(u.font,tt.number.font).call(m.convertToTspans,Oe)}E(ot)?bt.transition().duration(ot.duration).ease(ot.easing).each("end",function(){lt(),Ge&&Ge()}).each("interrupt",function(){lt(),Ge&&Ge()}).attrTween("text",function(){var yt=c.select(this),zt=i(Le[0].lastY,Le[0].y);tt._lastValue=Le[0].y;var Rt=Dt(tt.number.valueformat,bn,Le[0].lastY,Le[0].y);return function(it){yt.text(vt+Rt(zt(it))+mn)}}):lt(),Ue=k(vt+bn(Le[0].y)+mn,tt.number.font,nt,Oe)}(),qt+=tt.number.font.size+tt.number.font.family+tt.number.valueformat+tt.number.suffix+tt.number.prefix,Xe=Ue),tt._hasDelta&&tt._hasNumber){var en,Gt,Ct=[(Ue.left+Ue.right)/2,(Ue.top+Ue.bottom)/2],_t=[(Ze.left+Ze.right)/2,(Ze.top+Ze.bottom)/2],nn=.75*tt.delta.font.size;tt.delta.position==="left"&&(en=I(tt,"deltaPos",0,-1*(Ue.width*M[tt.align]+Ze.width*(1-M[tt.align])+nn),qt,Math.min),Gt=Ct[1]-_t[1],Xe={width:Ue.width+Ze.width+nn,height:Math.max(Ue.height,Ze.height),left:Ze.left+en,right:Ue.right,top:Math.min(Ue.top,Ze.top+Gt),bottom:Math.max(Ue.bottom,Ze.bottom+Gt)}),tt.delta.position==="right"&&(en=I(tt,"deltaPos",0,Ue.width*(1-M[tt.align])+Ze.width*M[tt.align]+nn,qt,Math.max),Gt=Ct[1]-_t[1],Xe={width:Ue.width+Ze.width+nn,height:Math.max(Ue.height,Ze.height),left:Ue.left,right:Ze.right+en,top:Math.min(Ue.top,Ze.top+Gt),bottom:Math.max(Ue.bottom,Ze.bottom+Gt)}),tt.delta.position==="bottom"&&(en=null,Gt=Ze.height,Xe={width:Math.max(Ue.width,Ze.width),height:Ue.height+Ze.height,left:Math.min(Ue.left,Ze.left),right:Math.max(Ue.right,Ze.right),top:Ue.bottom-Ue.height,bottom:Ue.bottom+Ze.height}),tt.delta.position==="top"&&(en=null,Gt=Ue.top,Xe={width:Math.max(Ue.width,Ze.width),height:Ue.height+Ze.height,left:Math.min(Ue.left,Ze.left),right:Math.max(Ue.right,Ze.right),top:Ue.bottom-Ue.height-Ze.height,bottom:Ue.bottom}),It.attr({dx:en,dy:Gt})}(tt._hasNumber||tt._hasDelta)&&ht.attr("transform",function(){var gn=We.numbersScaler(Xe);qt+=gn[2];var bn,mn=I(tt,"numbersScale",1,gn[0],qt,Math.min);tt._scaleNumbers||(mn=1),bn=tt._isAngular?Ne-mn*Xe.bottom:Ne-mn*(Xe.top+Xe.bottom)/2,tt._numbersTop=mn*Xe.top+bn;var vt=Xe[je];je==="center"&&(vt=(Xe.left+Xe.right)/2);var bt=Ee-mn*vt;return bt=I(tt,"numbersTranslate",0,bt,qt,Math.max),y(bt,bn)+w(mn)})})(z,me,te,{numbersX:W,numbersY:K,numbersScaler:oe,transitionOpts:Q,onComplete:U}),he&&(q={range:ee.gauge.axis.range,color:ee.gauge.bgcolor,line:{color:ee.gauge.bordercolor,width:0},thickness:1},Y={range:ee.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:ee.gauge.bordercolor,width:ee.gauge.borderwidth},thickness:1});var ze=me.selectAll("g.angular").data(se?te:[]);ze.exit().remove();var De=me.selectAll("g.angularaxis").data(se?te:[]);De.exit().remove(),se&&function(Oe,ke,Le,We){var Ue,Ze,Xe,tt,Ee=Le[0].trace,Ne=We.size,je=We.radius,nt=We.innerRadius,ot=We.gaugeBg,Ge=We.gaugeOutline,ht=[Ne.l+Ne.w/2,Ne.t+Ne.h/2+je/2],pt=We.gauge,wt=We.layer,Dt=We.transitionOpts,It=We.onComplete,qt=Math.PI/2;function en(Xt){var Yt=Ee.gauge.axis.range[0],Qt=(Xt-Yt)/(Ee.gauge.axis.range[1]-Yt)*Math.PI-qt;return Qt<-qt?-qt:Qt>qt?qt:Qt}function Gt(Xt){return c.svg.arc().innerRadius((nt+je)/2-Xt/2*(je-nt)).outerRadius((nt+je)/2+Xt/2*(je-nt)).startAngle(-qt)}function Ct(Xt){Xt.attr("d",function(Yt){return Gt(Yt.thickness).startAngle(en(Yt.range[0])).endAngle(en(Yt.range[1]))()})}pt.enter().append("g").classed("angular",!0),pt.attr("transform",y(ht[0],ht[1])),wt.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),wt.selectAll("g.xangularaxistick,path,text").remove(),(Ue=L(Oe,Ee.gauge.axis)).type="linear",Ue.range=Ee.gauge.axis.range,Ue._id="xangularaxis",Ue.ticklabeloverflow="allow",Ue.setScale();var _t=function(Xt){return(Ue.range[0]-Xt.x)/(Ue.range[1]-Ue.range[0])*Math.PI+Math.PI},nn={},gn=v.makeLabelFns(Ue,0).labelStandoff;nn.xFn=function(Xt){var Yt=_t(Xt);return Math.cos(Yt)*gn},nn.yFn=function(Xt){var Yt=_t(Xt),Qt=Math.sin(Yt)>0?.2:1;return-Math.sin(Yt)*(gn+Xt.fontSize*Qt)+Math.abs(Math.cos(Yt))*(Xt.fontSize*a)},nn.anchorFn=function(Xt){var Yt=_t(Xt),Qt=Math.cos(Yt);return Math.abs(Qt)<.1?"middle":Qt>0?"start":"end"},nn.heightFn=function(Xt,Yt,Qt){var Pt=_t(Xt);return-.5*(1+Math.sin(Pt))*Qt};var bn=function(Xt){return y(ht[0]+je*Math.cos(Xt),ht[1]-je*Math.sin(Xt))};if(Xe=function(Xt){return bn(_t(Xt))},Ze=v.calcTicks(Ue),tt=v.getTickSigns(Ue)[2],Ue.visible){tt=Ue.ticks==="inside"?-1:1;var mn=(Ue.linewidth||1)/2;v.drawTicks(Oe,Ue,{vals:Ze,layer:wt,path:"M"+tt*mn+",0h"+tt*Ue.ticklen,transFn:function(Xt){var Yt=_t(Xt);return bn(Yt)+"rotate("+-p(Yt)+")"}}),v.drawLabels(Oe,Ue,{vals:Ze,layer:wt,transFn:Xe,labelFns:nn})}var vt=[ot].concat(Ee.gauge.steps),bt=pt.selectAll("g.bg-arc").data(vt);bt.enter().append("g").classed("bg-arc",!0).append("path"),bt.select("path").call(Ct).call(C),bt.exit().remove();var lt=Gt(Ee.gauge.bar.thickness),yt=pt.selectAll("g.value-arc").data([Ee.gauge.bar]);yt.enter().append("g").classed("value-arc",!0).append("path");var zt,Rt,it,at=yt.select("path");E(Dt)?(at.transition().duration(Dt.duration).ease(Dt.easing).each("end",function(){It&&It()}).each("interrupt",function(){It&&It()}).attrTween("d",(zt=lt,Rt=en(Le[0].lastY),it=en(Le[0].y),function(){var Xt=b(Rt,it);return function(Yt){return zt.endAngle(Xt(Yt))()}})),Ee._lastValue=Le[0].y):at.attr("d",typeof Le[0].y=="number"?lt.endAngle(en(Le[0].y)):"M0,0Z"),at.call(C),yt.exit().remove(),vt=[];var Lt=Ee.gauge.threshold.value;(Lt||Lt===0)&&vt.push({range:[Lt,Lt],color:Ee.gauge.threshold.color,line:{color:Ee.gauge.threshold.line.color,width:Ee.gauge.threshold.line.width},thickness:Ee.gauge.threshold.thickness});var xt=pt.selectAll("g.threshold-arc").data(vt);xt.enter().append("g").classed("threshold-arc",!0).append("path"),xt.select("path").call(Ct).call(C),xt.exit().remove();var Ht=pt.selectAll("g.gauge-outline").data([Ge]);Ht.enter().append("g").classed("gauge-outline",!0).append("path"),Ht.select("path").call(Ct).call(C),Ht.exit().remove()}(z,0,te,{radius:_e,innerRadius:Se,gauge:ze,layer:De,size:de,gaugeBg:q,gaugeOutline:Y,transitionOpts:Q,onComplete:U});var He=me.selectAll("g.bullet").data(ae?te:[]);He.exit().remove();var Ve=me.selectAll("g.bulletaxis").data(ae?te:[]);Ve.exit().remove(),ae&&function(Oe,ke,Le,We){var Ue,Ze,Xe,tt,Ee,Ne=Le[0].trace,je=We.gauge,nt=We.layer,ot=We.gaugeBg,Ge=We.gaugeOutline,ht=We.size,pt=Ne.domain,wt=We.transitionOpts,Dt=We.onComplete;je.enter().append("g").classed("bullet",!0),je.attr("transform",y(ht.l,ht.t)),nt.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),nt.selectAll("g.xbulletaxistick,path,text").remove();var It=ht.h,qt=Ne.gauge.bar.thickness*It,en=pt.x[0],Gt=pt.x[0]+(pt.x[1]-pt.x[0])*(Ne._hasNumber||Ne._hasDelta?1-h.bulletNumberDomainSize:1);function Ct(bt){bt.attr("width",function(lt){return Math.max(0,Ue.c2p(lt.range[1])-Ue.c2p(lt.range[0]))}).attr("x",function(lt){return Ue.c2p(lt.range[0])}).attr("y",function(lt){return .5*(1-lt.thickness)*It}).attr("height",function(lt){return lt.thickness*It})}(Ue=L(Oe,Ne.gauge.axis))._id="xbulletaxis",Ue.domain=[en,Gt],Ue.setScale(),Ze=v.calcTicks(Ue),Xe=v.makeTransTickFn(Ue),tt=v.getTickSigns(Ue)[2],Ee=ht.t+ht.h,Ue.visible&&(v.drawTicks(Oe,Ue,{vals:Ue.ticks==="inside"?v.clipEnds(Ue,Ze):Ze,layer:nt,path:v.makeTickPath(Ue,Ee,tt),transFn:Xe}),v.drawLabels(Oe,Ue,{vals:Ze,layer:nt,transFn:Xe,labelFns:v.makeLabelFns(Ue,Ee)}));var _t=[ot].concat(Ne.gauge.steps),nn=je.selectAll("g.bg-bullet").data(_t);nn.enter().append("g").classed("bg-bullet",!0).append("rect"),nn.select("rect").call(Ct).call(C),nn.exit().remove();var gn=je.selectAll("g.value-bullet").data([Ne.gauge.bar]);gn.enter().append("g").classed("value-bullet",!0).append("rect"),gn.select("rect").attr("height",qt).attr("y",(It-qt)/2).call(C),E(wt)?gn.select("rect").transition().duration(wt.duration).ease(wt.easing).each("end",function(){Dt&&Dt()}).each("interrupt",function(){Dt&&Dt()}).attr("width",Math.max(0,Ue.c2p(Math.min(Ne.gauge.axis.range[1],Le[0].y)))):gn.select("rect").attr("width",typeof Le[0].y=="number"?Math.max(0,Ue.c2p(Math.min(Ne.gauge.axis.range[1],Le[0].y))):0),gn.exit().remove();var bn=Le.filter(function(){return Ne.gauge.threshold.value||Ne.gauge.threshold.value===0}),mn=je.selectAll("g.threshold-bullet").data(bn);mn.enter().append("g").classed("threshold-bullet",!0).append("line"),mn.select("line").attr("x1",Ue.c2p(Ne.gauge.threshold.value)).attr("x2",Ue.c2p(Ne.gauge.threshold.value)).attr("y1",(1-Ne.gauge.threshold.thickness)/2*It).attr("y2",(1-(1-Ne.gauge.threshold.thickness)/2)*It).call(x.stroke,Ne.gauge.threshold.line.color).style("stroke-width",Ne.gauge.threshold.line.width),mn.exit().remove();var vt=je.selectAll("g.gauge-outline").data([Ge]);vt.enter().append("g").classed("gauge-outline",!0).append("rect"),vt.select("rect").call(Ct).call(C),vt.exit().remove()}(z,0,te,{gauge:He,layer:Ve,size:de,gaugeBg:q,gaugeOutline:Y,transitionOpts:Q,onComplete:U});var $e=me.selectAll("text.title").data(te);$e.exit().remove(),$e.enter().append("text").classed("title",!0),$e.attr("text-anchor",function(){return ae?R.right:R[ee.title.align]}).text(ee.title.text).call(u.font,ee.title.font).call(m.convertToTspans,z),$e.attr("transform",function(){var Oe,ke=de.l+de.w*M[ee.title.align],Le=h.titlePadding,We=u.bBox($e.node());return he?(se&&(Oe=ee.gauge.axis.visible?u.bBox(De.node()).top-Le-We.bottom:de.t+de.h/2-_e/2-We.bottom-Le),ae&&(Oe=K-(We.top+We.bottom)/2,ke=de.l-h.bulletPadding*de.w)):Oe=ee._numbersTop-Le-We.bottom,y(ke,Oe)})})}},50048:function(d,l,n){var c=n(49084),b=n(29736).axisHoverFormat,i=n(21776).Ks,O=n(52948),w=n(45464),y=n(92880).extendFlat,p=n(67824).overrideAll,a=d.exports=p(y({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}},y:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}},z:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}},caps:{x:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}},y:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}},z:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:i(),xhoverformat:b("x"),yhoverformat:b("y"),zhoverformat:b("z"),valuehoverformat:b("value",1),showlegend:y({},w.showlegend,{dflt:!1})},c("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:O.opacity,lightposition:O.lightposition,lighting:O.lighting,flatshading:O.flatshading,contour:O.contour,hoverinfo:y({},w.hoverinfo)}),"calc","nested");a.flatshading.dflt=!0,a.lighting.facenormalsepsilon.dflt=0,a.x.editType=a.y.editType=a.z.editType=a.value.editType="calc+clearAxisTypes",a.transforms=void 0},62624:function(d,l,n){var c=n(47128),b=n(3832).processGrid,i=n(3832).filter;d.exports=function(O,w){w._len=Math.min(w.x.length,w.y.length,w.z.length,w.value.length),w._x=i(w.x,w._len),w._y=i(w.y,w._len),w._z=i(w.z,w._len),w._value=i(w.value,w._len);var y=b(w);w._gridFill=y.fill,w._Xs=y.Xs,w._Ys=y.Ys,w._Zs=y.Zs,w._len=y.len;for(var p=1/0,a=-1/0,u=0;u0;S--){var A=Math.min(_[S],_[S-1]),x=Math.max(_[S],_[S-1]);if(x>A&&A-1}function ye(nt,ot){return nt===null?ot:nt}function _e(nt,ot,Ge){he();var ht,pt,wt,Dt=[ot],It=[Ge];if(T>=1)Dt=[ot],It=[Ge];else if(T>0){var qt=function(vt,bt){var lt=vt[0],yt=vt[1],zt=vt[2],Rt=function(Qt,Pt,tn){for(var Kt=[],fn=0;fn-1?Ge[Ct]:me(_t,nn,gn);Gt[Ct]=mn>-1?mn:ae(_t,nn,gn,ye(nt,bn))}ht=Gt[0],pt=Gt[1],wt=Gt[2],v._meshI.push(ht),v._meshJ.push(pt),v._meshK.push(wt),++z}}function Se(nt,ot,Ge,ht){var pt=nt[3];ptht&&(pt=ht);for(var wt=(nt[3]-pt)/(nt[3]-ot[3]+1e-9),Dt=[],It=0;It<4;It++)Dt[It]=(1-wt)*nt[It]+wt*ot[It];return Dt}function Te(nt,ot,Ge){return nt>=ot&&nt<=Ge}function Pe(nt){var ot=.001*(ee-Y);return nt>=Y-ot&&nt<=ee+ot}function Ie(nt){for(var ot=[],Ge=0;Ge<4;Ge++){var ht=nt[Ge];ot.push([v._x[ht],v._y[ht],v._z[ht],v._value[ht]])}return ot}var ze=3;function De(nt,ot,Ge,ht,pt,wt){wt||(wt=1),Ge=[-1,-1,-1];var Dt=!1,It=[Te(ot[0][3],ht,pt),Te(ot[1][3],ht,pt),Te(ot[2][3],ht,pt)];if(!It[0]&&!It[1]&&!It[2])return!1;var qt=function(Gt,Ct,_t){return Pe(Ct[0][3])&&Pe(Ct[1][3])&&Pe(Ct[2][3])?(_e(Gt,Ct,_t),!0):wtMath.abs(wt-q)?[oe,wt]:[wt,q];k=!0,Xe(ot,Dt[0],Dt[1]),k=!1}}var It=[[Math.min(Y,q),Math.max(Y,q)],[Math.min(oe,ee),Math.max(oe,ee)]];["x","y","z"].forEach(function(qt){for(var en=[],Gt=0;Gt0&&(mn.push(lt.id),qt==="x"?vt.push([lt.distRatio,0,0]):qt==="y"?vt.push([0,lt.distRatio,0]):vt.push([0,0,lt.distRatio]))}else bn=je(1,qt==="x"?U-1:qt==="y"?X-1:te-1);mn.length>0&&(en[Ct]=qt==="x"?tt(nt,mn,_t,nn,vt,en[Ct]):qt==="y"?Ee(nt,mn,_t,nn,vt,en[Ct]):Ne(nt,mn,_t,nn,vt,en[Ct]),Ct++),bn.length>0&&(en[Ct]=qt==="x"?We(nt,bn,_t,nn,en[Ct]):qt==="y"?Ue(nt,bn,_t,nn,en[Ct]):Ze(nt,bn,_t,nn,en[Ct]),Ct++)}var yt=v.caps[qt];yt.show&&yt.fill&&(de(yt.fill),en[Ct]=qt==="x"?We(nt,[0,U-1],_t,nn,en[Ct]):qt==="y"?Ue(nt,[0,X-1],_t,nn,en[Ct]):Ze(nt,[0,te-1],_t,nn,en[Ct]),Ct++)}}),z===0&&se(),v._meshX=A,v._meshY=x,v._meshZ=R,v._meshIntensity=M,v._Xs=$,v._Ys=Q,v._Zs=j}(),v}d.exports={findNearestOnAxis:p,generateIsoMeshes:m,createIsosurfaceTrace:function(v,_){var S=v.glplot.gl,A=c({gl:S}),x=new a(v,A,_.uid);return A._trace=x,x.update(_),v.glplot.add(A),x}}},70548:function(d,l,n){var c=n(3400),b=n(24040),i=n(50048),O=n(27260);function w(y,p,a,u,h){var m=h("isomin"),v=h("isomax");v!=null&&m!=null&&m>v&&(p.isomin=null,p.isomax=null);var _=h("x"),S=h("y"),A=h("z"),x=h("value");_&&_.length&&S&&S.length&&A&&A.length&&x&&x.length?(b.getComponentMethod("calendars","handleTraceDefaults")(y,p,["x","y","z"],u),h("valuehoverformat"),["x","y","z"].forEach(function(R){h(R+"hoverformat");var M="caps."+R;h(M+".show")&&h(M+".fill");var T="slices."+R;h(T+".show")&&(h(T+".fill"),h(T+".locations"))}),h("spaceframe.show")&&h("spaceframe.fill"),h("surface.show")&&(h("surface.count"),h("surface.fill"),h("surface.pattern")),h("contour.show")&&(h("contour.color"),h("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(R){h(R)}),O(y,p,u,h,{prefix:"",cLetter:"c"}),p._length=null):p.visible=!1}d.exports={supplyDefaults:function(y,p,a,u){w(y,p,0,u,function(h,m){return c.coerce(y,p,i,h,m)})},supplyIsoDefaults:w}},6296:function(d,l,n){d.exports={attributes:n(50048),supplyDefaults:n(70548).supplyDefaults,calc:n(62624),colorbar:{min:"cmin",max:"cmax"},plot:n(31460).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:n(12536),categories:["gl3d","showLegend"],meta:{}}},52948:function(d,l,n){var c=n(49084),b=n(29736).axisHoverFormat,i=n(21776).Ks,O=n(16716),w=n(45464),y=n(92880).extendFlat;d.exports=y({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"}),xhoverformat:b("x"),yhoverformat:b("y"),zhoverformat:b("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},c("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:O.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:y({},O.contours.x.show,{}),color:O.contours.x.color,width:O.contours.x.width,editType:"calc"},lightposition:{x:y({},O.lightposition.x,{dflt:1e5}),y:y({},O.lightposition.y,{dflt:1e5}),z:y({},O.lightposition.z,{dflt:0}),editType:"calc"},lighting:y({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},O.lighting),hoverinfo:y({},w.hoverinfo,{editType:"calc"}),showlegend:y({},w.showlegend,{dflt:!1})})},1876:function(d,l,n){var c=n(47128);d.exports=function(b,i){i.intensity&&c(b,i,{vals:i.intensity,containerStr:"",cLetter:"c"})}},576:function(d,l,n){var c=n(67792).gl_mesh3d,b=n(67792).delaunay_triangulate,i=n(67792).alpha_shape,O=n(67792).convex_hull,w=n(33040).parseColorScale,y=n(3400).isArrayOrTypedArray,p=n(43080),a=n(8932).extractOpts,u=n(52094);function h(x,R,M){this.scene=x,this.uid=M,this.mesh=R,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var m=h.prototype;function v(x){for(var R=[],M=x.length,T=0;T=R-.5)return!1;return!0}m.handlePick=function(x){if(x.object===this.mesh){var R=x.index=x.data.index;x.data._cellCenter?x.traceCoordinate=x.data.dataCoordinate:x.traceCoordinate=[this.data.x[R],this.data.y[R],this.data.z[R]];var M=this.data.hovertext||this.data.text;return y(M)&&M[R]!==void 0?x.textLabel=M[R]:M&&(x.textLabel=M),!0}},m.update=function(x){var R=this.scene,M=R.fullSceneLayout;this.data=x;var T,E=x.x.length,C=u(_(M.xaxis,x.x,R.dataScale[0],x.xcalendar),_(M.yaxis,x.y,R.dataScale[1],x.ycalendar),_(M.zaxis,x.z,R.dataScale[2],x.zcalendar));if(x.i&&x.j&&x.k){if(x.i.length!==x.j.length||x.j.length!==x.k.length||!A(x.i,E)||!A(x.j,E)||!A(x.k,E))return;T=u(S(x.i),S(x.j),S(x.k))}else T=x.alphahull===0?O(C):x.alphahull>0?i(x.alphahull,C):function(I,z){for(var $=["x","y","z"].indexOf(I),Q=[],j=z.length,U=0;UC):E=j>z,C=j;var U=_(z,$,Q,j);U.pos=I,U.yc=(z+j)/2,U.i=k,U.dir=E?"increasing":"decreasing",U.x=U.pos,U.y=[Q,$],L&&(U.orig_p=h[k]),M&&(U.tx=u.text[k]),T&&(U.htx=u.hovertext[k]),D.push(U)}else D.push({pos:I,empty:!0})}return u._extremes[v._id]=i.findExtremes(v,c.concat(x,A),{padded:!0}),D.length&&(D[0].t={labels:{open:b(a,"open:")+" ",high:b(a,"high:")+" ",low:b(a,"low:")+" ",close:b(a,"close:")+" "}}),D}d.exports={calc:function(a,u){var h=i.getFromId(a,u.xaxis),m=i.getFromId(a,u.yaxis),v=function(R,M,T){var E=T._minDiff;if(!E){var C,L=R._fullData,D=[];for(E=1/0,C=0;C"+M.labels[$]+c.hoverLabelText(x,Q,R.yhoverformat):((z=b.extendFlat({},E)).y0=z.y1=j,z.yLabelVal=Q,z.yLabel=M.labels[$]+c.hoverLabelText(x,Q,R.yhoverformat),z.name="",T.push(z),k[Q]=z)}return T}function h(m,v,_,S){var A=m.cd,x=m.ya,R=A[0].trace,M=A[0].t,T=a(m,v,_,S);if(!T)return[];var E=A[T.index],C=T.index=E.i,L=E.dir;function D(U){return M.labels[U]+c.hoverLabelText(x,R[U][C],R.yhoverformat)}var k=E.hi||R.hoverinfo,I=k.split("+"),z=k==="all",$=z||I.indexOf("y")!==-1,Q=z||I.indexOf("text")!==-1,j=$?[D("open"),D("high"),D("low"),D("close")+" "+p[L]]:[];return Q&&w(E,R,j),T.extraText=j.join("
"),T.y0=T.y1=x.c2p(E.yc,!0),[T]}d.exports={hoverPoints:function(m,v,_,S){return m.cd[0].trace.hoverlabel.split?u(m,v,_,S):h(m,v,_,S)},hoverSplit:u,hoverOnPoints:h}},65456:function(d,l,n){d.exports={moduleType:"trace",name:"ohlc",basePlotModule:n(57952),categories:["cartesian","svg","showLegend"],meta:{},attributes:n(20279),supplyDefaults:n(23860),calc:n(42812).calc,plot:n(36664),style:n(14008),hoverPoints:n(18720).hoverPoints,selectPoints:n(97384)}},52744:function(d,l,n){var c=n(24040),b=n(3400);d.exports=function(i,O,w,y){var p=w("x"),a=w("open"),u=w("high"),h=w("low"),m=w("close");if(w("hoverlabel.split"),c.getComponentMethod("calendars","handleTraceDefaults")(i,O,["x"],y),a&&u&&h&&m){var v=Math.min(a.length,u.length,h.length,m.length);return p&&(v=Math.min(v,b.minRowLength(p))),O._length=v,v}}},36664:function(d,l,n){var c=n(33428),b=n(3400);d.exports=function(i,O,w,y){var p=O.yaxis,a=O.xaxis,u=!!a.rangebreaks;b.makeTraceGroups(y,w,"trace ohlc").each(function(h){var m=c.select(this),v=h[0],_=v.t;if(v.trace.visible!==!0||_.empty)m.remove();else{var S=_.tickLen,A=m.selectAll("path").data(b.identity);A.enter().append("path"),A.exit().remove(),A.attr("d",function(x){if(x.empty)return"M0,0Z";var R=a.c2p(x.pos-S,!0),M=a.c2p(x.pos+S,!0),T=u?(R+M)/2:a.c2p(x.pos,!0);return"M"+R+","+p.c2p(x.o,!0)+"H"+T+"M"+T+","+p.c2p(x.h,!0)+"V"+p.c2p(x.l,!0)+"M"+M+","+p.c2p(x.c,!0)+"H"+T})}})}},97384:function(d){d.exports=function(l,n){var c,b=l.cd,i=l.xaxis,O=l.yaxis,w=[],y=b[0].t.bPos||0;if(n===!1)for(c=0;c=se.length||ae[se[ce]]!==void 0)return!1;ae[se[ce]]=!0}return!0}(he))for(me=0;me0||a(x);R&&(A="array");var M=v("categoryorder",A);M==="array"?(v("categoryarray"),v("ticktext")):(delete h.categoryarray,delete h.ticktext),R||M!=="array"||(m.categoryorder="trace")}}d.exports=function(h,m,v,_){function S(T,E){return c.coerce(h,m,y,T,E)}var A=w(h,m,{name:"dimensions",handleItemDefaults:u}),x=function(T,E,C,L,D){D("line.shape"),D("line.hovertemplate");var k=D("line.color",L.colorway[0]);if(b(T,"line")&&c.isArrayOrTypedArray(k)){if(k.length)return D("line.colorscale"),i(T,E,L,D,{prefix:"line.",cLetter:"c"}),k.length;E.line.color=C}return 1/0}(h,m,v,_,S);O(m,_,S),Array.isArray(A)&&A.length||(m.visible=!1),p(m,A,"values",x),S("hoveron"),S("hovertemplate"),S("arrangement"),S("bundlecolors"),S("sortpaths"),S("counts");var R={family:_.font.family,size:Math.round(_.font.size),color:_.font.color};c.coerceFont(S,"labelfont",R);var M={family:_.font.family,size:Math.round(_.font.size/1.2),color:_.font.color};c.coerceFont(S,"tickfont",M)}},22020:function(d,l,n){d.exports={attributes:n(72140),supplyDefaults:n(76671),calc:n(69136),plot:n(60268),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:n(91800),categories:["noOpacity"],meta:{}}},51036:function(d,l,n){var c=n(33428),b=n(67756).Gz,i=n(36424),O=n(93024),w=n(3400),y=w.strTranslate,p=n(43616),a=n(49760),u=n(72736);function h(he,se,ae,ce){var de=se._context.staticPlot,ve=he.map(oe.bind(0,se,ae)),ye=ce.selectAll("g.parcatslayer").data([null]);ye.enter().append("g").attr("class","parcatslayer").style("pointer-events",de?"none":"all");var _e=ye.selectAll("g.trace.parcats").data(ve,m),Se=_e.enter().append("g").attr("class","trace parcats");_e.attr("transform",function(Oe){return y(Oe.x,Oe.y)}),Se.append("g").attr("class","paths");var Te=_e.select("g.paths").selectAll("path.path").data(function(Oe){return Oe.paths},m);Te.attr("fill",function(Oe){return Oe.model.color});var Pe=Te.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(Oe){return Oe.model.color}).attr("fill-opacity",0);T(Pe),Te.attr("d",function(Oe){return Oe.svgD}),Pe.empty()||Te.sort(_),Te.exit().remove(),Te.on("mouseover",S).on("mouseout",A).on("click",M),Se.append("g").attr("class","dimensions");var Ie=_e.select("g.dimensions").selectAll("g.dimension").data(function(Oe){return Oe.dimensions},m);Ie.enter().append("g").attr("class","dimension"),Ie.attr("transform",function(Oe){return y(Oe.x,0)}),Ie.exit().remove();var ze=Ie.selectAll("g.category").data(function(Oe){return Oe.categories},m),De=ze.enter().append("g").attr("class","category");ze.attr("transform",function(Oe){return y(0,Oe.y)}),De.append("rect").attr("class","catrect").attr("pointer-events","none"),ze.select("rect.catrect").attr("fill","none").attr("width",function(Oe){return Oe.width}).attr("height",function(Oe){return Oe.height}),C(De);var He=ze.selectAll("rect.bandrect").data(function(Oe){return Oe.bands},m);He.each(function(){w.raiseToTop(this)}),He.attr("fill",function(Oe){return Oe.color});var Ve=He.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(Oe){return Oe.color}).attr("fill-opacity",0);He.attr("fill",function(Oe){return Oe.color}).attr("width",function(Oe){return Oe.width}).attr("height",function(Oe){return Oe.height}).attr("y",function(Oe){return Oe.y}).attr("cursor",function(Oe){return Oe.parcatsViewModel.arrangement==="fixed"?"default":Oe.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),L(Ve),He.exit().remove(),De.append("text").attr("class","catlabel").attr("pointer-events","none");var $e=se._fullLayout.paper_bgcolor;ze.select("text.catlabel").attr("text-anchor",function(Oe){return v(Oe)?"start":"end"}).attr("alignment-baseline","middle").style("text-shadow",u.makeTextShadow($e)).style("fill","rgb(0, 0, 0)").attr("x",function(Oe){return v(Oe)?Oe.width+5:-5}).attr("y",function(Oe){return Oe.height/2}).text(function(Oe){return Oe.model.categoryLabel}).each(function(Oe){p.font(c.select(this),Oe.parcatsViewModel.categorylabelfont),u.convertToTspans(c.select(this),se)}),De.append("text").attr("class","dimlabel"),ze.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(Oe){return Oe.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(Oe){return Oe.width/2}).attr("y",-5).text(function(Oe,ke){return ke===0?Oe.parcatsViewModel.model.dimensions[Oe.model.dimensionInd].dimensionLabel:null}).each(function(Oe){p.font(c.select(this),Oe.parcatsViewModel.labelfont)}),ze.selectAll("rect.bandrect").on("mouseover",$).on("mouseout",Q),ze.exit().remove(),Ie.call(c.behavior.drag().origin(function(Oe){return{x:Oe.x,y:0}}).on("dragstart",j).on("drag",U).on("dragend",X)),_e.each(function(Oe){Oe.traceSelection=c.select(this),Oe.pathSelection=c.select(this).selectAll("g.paths").selectAll("path.path"),Oe.dimensionSelection=c.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),_e.exit().remove()}function m(he){return he.key}function v(he){var se=he.parcatsViewModel.dimensions.length,ae=he.parcatsViewModel.dimensions[se-1].model.dimensionInd;return he.model.dimensionInd===ae}function _(he,se){return he.model.rawColor>se.model.rawColor?1:he.model.rawColor"),Ze=c.mouse(_e)[0];O.loneHover({trace:Se,x:He-Pe.left+Ie.left,y:Ve-Pe.top+Ie.top,text:Ue,color:he.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:$e,idealAlign:Ze1&&Ie.displayInd===Pe.dimensions.length-1?(ce=Se.left,de="left"):(ce=Se.left+Se.width,de="right");var He=Te.model.count,Ve=Te.model.categoryLabel,$e=He/Te.parcatsViewModel.model.count,Oe={countLabel:He,categoryLabel:Ve,probabilityLabel:$e.toFixed(3)},ke=[];Te.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&ke.push(["Count:",Oe.countLabel].join(" ")),Te.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&ke.push(["P("+Oe.categoryLabel+"):",Oe.probabilityLabel].join(" "));var Le=ke.join("
");return{trace:ze,x:ve*(ce-se.left),y:ye*(De-se.top),text:Le,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:de,hovertemplate:ze.hovertemplate,hovertemplateLabels:Oe,eventData:[{data:ze._input,fullData:ze,count:He,category:Ve,probability:$e}]}}function $(he){if(!he.parcatsViewModel.dragDimension&&he.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){if(c.mouse(this)[1]<-1)return;var se,ae=he.parcatsViewModel.graphDiv,ce=ae._fullLayout,de=ce._paperdiv.node().getBoundingClientRect(),ve=he.parcatsViewModel.hoveron,ye=this;ve==="color"?(function(_e){var Se=c.select(_e).datum(),Te=D(Se);E(Te),Te.each(function(){w.raiseToTop(this)}),c.select(_e.parentNode).selectAll("rect.bandrect").filter(function(Pe){return Pe.color===Se.color}).each(function(){w.raiseToTop(this),c.select(this).attr("stroke","black").attr("stroke-width",1.5)})}(ye),I(ye,"plotly_hover",c.event)):(function(_e){c.select(_e.parentNode).selectAll("rect.bandrect").each(function(Se){var Te=D(Se);E(Te),Te.each(function(){w.raiseToTop(this)})}),c.select(_e.parentNode).select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}(ye),k(ye,"plotly_hover",c.event)),he.parcatsViewModel.hoverinfoItems.indexOf("none")===-1&&(ve==="category"?se=z(ae,de,ye):ve==="color"?se=function(_e,Se,Te){_e._fullLayout._calcInverseTransform(_e);var Pe,Ie,ze=_e._fullLayout._invScaleX,De=_e._fullLayout._invScaleY,He=Te.getBoundingClientRect(),Ve=c.select(Te).datum(),$e=Ve.categoryViewModel,Oe=$e.parcatsViewModel,ke=Oe.model.dimensions[$e.model.dimensionInd],Le=Oe.trace,We=He.y+He.height/2;Oe.dimensions.length>1&&ke.displayInd===Oe.dimensions.length-1?(Pe=He.left,Ie="left"):(Pe=He.left+He.width,Ie="right");var Ue=$e.model.categoryLabel,Ze=Ve.parcatsViewModel.model.count,Xe=0;Ve.categoryViewModel.bands.forEach(function(wt){wt.color===Ve.color&&(Xe+=wt.count)});var tt=$e.model.count,Ee=0;Oe.pathSelection.each(function(wt){wt.model.color===Ve.color&&(Ee+=wt.model.count)});var Ne=Xe/Ze,je=Xe/Ee,nt=Xe/tt,ot={countLabel:Ze,categoryLabel:Ue,probabilityLabel:Ne.toFixed(3)},Ge=[];$e.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&Ge.push(["Count:",ot.countLabel].join(" ")),$e.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(Ge.push("P(color ∩ "+Ue+"): "+ot.probabilityLabel),Ge.push("P("+Ue+" | color): "+je.toFixed(3)),Ge.push("P(color | "+Ue+"): "+nt.toFixed(3)));var ht=Ge.join("
"),pt=a.mostReadable(Ve.color,["black","white"]);return{trace:Le,x:ze*(Pe-Se.left),y:De*(We-Se.top),text:ht,color:Ve.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:pt,fontSize:10,idealAlign:Ie,hovertemplate:Le.hovertemplate,hovertemplateLabels:ot,eventData:[{data:Le._input,fullData:Le,category:Ue,count:Ze,probability:Ne,categorycount:tt,colorcount:Ee,bandcolorcount:Xe}]}}(ae,de,ye):ve==="dimension"&&(se=function(_e,Se,Te){var Pe=[];return c.select(Te.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){Pe.push(z(_e,Se,this))}),Pe}(ae,de,ye)),se&&O.loneHover(se,{container:ce._hoverlayer.node(),outerContainer:ce._paper.node(),gd:ae}))}}function Q(he){var se=he.parcatsViewModel;se.dragDimension||(T(se.pathSelection),C(se.dimensionSelection.selectAll("g.category")),L(se.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),O.loneUnhover(se.graphDiv._fullLayout._hoverlayer.node()),se.pathSelection.sort(_),se.hoverinfoItems.indexOf("skip")!==-1)||(he.parcatsViewModel.hoveron==="color"?I(this,"plotly_unhover",c.event):k(this,"plotly_unhover",c.event))}function j(he){he.parcatsViewModel.arrangement!=="fixed"&&(he.dragDimensionDisplayInd=he.model.displayInd,he.initialDragDimensionDisplayInds=he.parcatsViewModel.model.dimensions.map(function(se){return se.displayInd}),he.dragHasMoved=!1,he.dragCategoryDisplayInd=null,c.select(this).selectAll("g.category").select("rect.catrect").each(function(se){var ae=c.mouse(this)[0],ce=c.mouse(this)[1];-2<=ae&&ae<=se.width+2&&-2<=ce&&ce<=se.height+2&&(he.dragCategoryDisplayInd=se.model.displayInd,he.initialDragCategoryDisplayInds=he.model.categories.map(function(de){return de.displayInd}),se.model.dragY=se.y,w.raiseToTop(this.parentNode),c.select(this.parentNode).selectAll("rect.bandrect").each(function(de){de.yPe.y+Pe.height/2&&(ve.model.displayInd=Pe.model.displayInd,Pe.model.displayInd=_e),he.dragCategoryDisplayInd=ve.model.displayInd}if(he.dragCategoryDisplayInd===null||he.parcatsViewModel.arrangement==="freeform"){de.model.dragX=c.event.x;var Ie=he.parcatsViewModel.dimensions[ae],ze=he.parcatsViewModel.dimensions[ce];Ie!==void 0&&de.model.dragXze.x&&(de.model.displayInd=ze.model.displayInd,ze.model.displayInd=he.dragDimensionDisplayInd),he.dragDimensionDisplayInd=de.model.displayInd}ee(he.parcatsViewModel),Y(he.parcatsViewModel),K(he.parcatsViewModel),W(he.parcatsViewModel)}}function X(he){if(he.parcatsViewModel.arrangement!=="fixed"&&he.dragDimensionDisplayInd!==null){c.select(this).selectAll("text").attr("font-weight","normal");var se={},ae=te(he.parcatsViewModel),ce=he.parcatsViewModel.model.dimensions.map(function(Pe){return Pe.displayInd}),de=he.initialDragDimensionDisplayInds.some(function(Pe,Ie){return Pe!==ce[Ie]});de&&ce.forEach(function(Pe,Ie){var ze=he.parcatsViewModel.model.dimensions[Ie].containerInd;se["dimensions["+ze+"].displayindex"]=Pe});var ve=!1;if(he.dragCategoryDisplayInd!==null){var ye=he.model.categories.map(function(Pe){return Pe.displayInd});if(ve=he.initialDragCategoryDisplayInds.some(function(Pe,Ie){return Pe!==ye[Ie]})){var _e=he.model.categories.slice().sort(function(Pe,Ie){return Pe.displayInd-Ie.displayInd}),Se=_e.map(function(Pe){return Pe.categoryValue}),Te=_e.map(function(Pe){return Pe.categoryLabel});se["dimensions["+he.model.containerInd+"].categoryarray"]=[Se],se["dimensions["+he.model.containerInd+"].ticktext"]=[Te],se["dimensions["+he.model.containerInd+"].categoryorder"]="array"}}he.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!he.dragHasMoved&&he.potentialClickBand&&(he.parcatsViewModel.hoveron==="color"?I(he.potentialClickBand,"plotly_click",c.event.sourceEvent):k(he.potentialClickBand,"plotly_click",c.event.sourceEvent)),he.model.dragX=null,he.dragCategoryDisplayInd!==null&&(he.parcatsViewModel.dimensions[he.dragDimensionDisplayInd].categories[he.dragCategoryDisplayInd].model.dragY=null,he.dragCategoryDisplayInd=null),he.dragDimensionDisplayInd=null,he.parcatsViewModel.dragDimension=null,he.dragHasMoved=null,he.potentialClickBand=null,ee(he.parcatsViewModel),Y(he.parcatsViewModel),c.transition().duration(300).ease("cubic-in-out").each(function(){K(he.parcatsViewModel,!0),W(he.parcatsViewModel,!0)}).each("end",function(){(de||ve)&&i.restyle(he.parcatsViewModel.graphDiv,se,[ae])})}}function te(he){for(var se,ae=he.graphDiv._fullData,ce=0;ce=0;ye--)Te+="C"+Se[ye]+","+(se[ye+1]+ce)+" "+_e[ye]+","+(se[ye]+ce)+" "+(he[ye]+ae[ye])+","+(se[ye]+ce),Te+="l-"+ae[ye]+",0 ";return Te+"Z"}function Y(he){var se=he.dimensions,ae=he.model,ce=se.map(function(ot){return ot.categories.map(function(Ge){return Ge.y})}),de=he.model.dimensions.map(function(ot){return ot.categories.map(function(Ge){return Ge.displayInd})}),ve=he.model.dimensions.map(function(ot){return ot.displayInd}),ye=he.dimensions.map(function(ot){return ot.model.dimensionInd}),_e=se.map(function(ot){return ot.x}),Se=se.map(function(ot){return ot.width}),Te=[];for(var Pe in ae.paths)ae.paths.hasOwnProperty(Pe)&&Te.push(ae.paths[Pe]);function Ie(ot){var Ge=ot.categoryInds.map(function(ht,pt){return de[pt][ht]});return ye.map(function(ht){return Ge[ht]})}Te.sort(function(ot,Ge){var ht=Ie(ot),pt=Ie(Ge);return he.sortpaths==="backward"&&(ht.reverse(),pt.reverse()),ht.push(ot.valueInds[0]),pt.push(Ge.valueInds[0]),he.bundlecolors&&(ht.unshift(ot.rawColor),pt.unshift(Ge.rawColor)),htpt?1:0});for(var ze=new Array(Te.length),De=se[0].model.count,He=se[0].categories.map(function(ot){return ot.height}).reduce(function(ot,Ge){return ot+Ge}),Ve=0;Ve0?He*(Oe.count/De):0;for(var ke,Le=new Array(ce.length),We=0;We1?(he.width-80-16)/(ce-1):0)*de;var ve,ye,_e,Se,Te,Pe=[],Ie=he.model.maxCats,ze=se.categories.length,De=se.count,He=he.height-8*(Ie-1),Ve=8*(Ie-ze)/2,$e=se.categories.map(function(Oe){return{displayInd:Oe.displayInd,categoryInd:Oe.categoryInd}});for($e.sort(function(Oe,ke){return Oe.displayInd-ke.displayInd}),Te=0;Te0?ye.count/De*He:0,_e={key:ye.valueInds[0],model:ye,width:16,height:ve,y:ye.dragY!==null?ye.dragY:Ve,bands:[],parcatsViewModel:he},Ve=Ve+ve+8,Pe.push(_e);return{key:se.dimensionInd,x:se.dragX!==null?se.dragX:ae,y:0,width:16,model:se,categories:Pe,parcatsViewModel:he,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}d.exports=function(he,se,ae,ce){h(ae,he,ce,se)}},60268:function(d,l,n){var c=n(51036);d.exports=function(b,i,O,w){var y=b._fullLayout,p=y._paper,a=y._size;c(b,p,i,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},O,w)}},82296:function(d,l,n){var c=n(49084),b=n(94724),i=n(25376),O=n(86968).u,w=n(92880).extendFlat,y=n(31780).templatedArray;d.exports={domain:O({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:i({editType:"plot"}),tickfont:i({editType:"plot"}),rangefont:i({editType:"plot"}),dimensions:y("dimension",{label:{valType:"string",editType:"plot"},tickvals:w({},b.tickvals,{editType:"plot"}),ticktext:w({},b.ticktext,{editType:"plot"}),tickformat:w({},b.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:w({editType:"calc"},c("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}},71864:function(d,l,n){var c=n(30140),b=n(33428),i=n(71688).keyFun,O=n(71688).repeat,w=n(3400).sorterAsc,y=n(3400).strTranslate,p=c.bar.snapRatio;function a(z,$){return z*(1-p)+$*p}var u=c.bar.snapClose;function h(z,$){return z*(1-u)+$*u}function m(z,$,Q,j){if(function(me,he){for(var se=0;se=he[se][0]&&me<=he[se][1])return!0;return!1}(Q,j))return Q;var U=z?-1:1,X=0,te=$.length-1;if(U<0){var W=X;X=te,te=W}for(var K=$[X],oe=K,q=X;U*q$){Y=Q;break}}if(U=oe,isNaN(U)&&(U=isNaN(q)||isNaN(Y)?isNaN(q)?Y:q:$-K[q][1]de[1]+ye||ve=.9*de[1]+.1*de[0]?"n":ve<=.9*de[0]+.1*de[1]?"s":"ns"}(me,$);he&&(X.interval=W[U],X.intervalPix=me,X.region=he)}}if(z.ordinal&&!X.region){var se=z.unitTickvals,ae=z.unitToPaddedPx.invert($);for(Q=0;Q=ce[0]&&ae<=ce[1]){X.clickableOrdinalRange=ce;break}}}return X}function E(z,$){b.event.sourceEvent.stopPropagation();var Q=$.height-b.mouse(z)[1]-2*c.verticalPadding,j=$.brush.svgBrush;j.wasDragged=!0,j._dragging=!0,j.grabbingBar?j.newExtent=[Q-j.grabPoint,Q+j.barLength-j.grabPoint].map($.unitToPaddedPx.invert):j.newExtent=[j.startExtent,$.unitToPaddedPx.invert(Q)].sort(w),$.brush.filterSpecified=!0,j.extent=j.stayingIntervals.concat([j.newExtent]),j.brushCallback($),M(z.parentNode)}function C(z,$){var Q=T($,$.height-b.mouse(z)[1]-2*c.verticalPadding),j="crosshair";Q.clickableOrdinalRange?j="pointer":Q.region&&(j=Q.region+"-resize"),b.select(document.body).style("cursor",j)}function L(z){z.on("mousemove",function($){b.event.preventDefault(),$.parent.inBrushDrag||C(this,$)}).on("mouseleave",function($){$.parent.inBrushDrag||x()}).call(b.behavior.drag().on("dragstart",function($){(function(Q,j){b.event.sourceEvent.stopPropagation();var U=j.height-b.mouse(Q)[1]-2*c.verticalPadding,X=j.unitToPaddedPx.invert(U),te=j.brush,W=T(j,U),K=W.interval,oe=te.svgBrush;if(oe.wasDragged=!1,oe.grabbingBar=W.region==="ns",oe.grabbingBar){var q=K.map(j.unitToPaddedPx);oe.grabPoint=U-q[0]-c.verticalPadding,oe.barLength=q[1]-q[0]}oe.clickableOrdinalRange=W.clickableOrdinalRange,oe.stayingIntervals=j.multiselect&&te.filterSpecified?te.filter.getConsolidated():[],K&&(oe.stayingIntervals=oe.stayingIntervals.filter(function(Y){return Y[0]!==K[0]&&Y[1]!==K[1]})),oe.startExtent=W.region?K[W.region==="s"?1:0]:X,j.parent.inBrushDrag=!0,oe.brushStartCallback()})(this,$)}).on("drag",function($){E(this,$)}).on("dragend",function($){(function(Q,j){var U=j.brush,X=U.filter,te=U.svgBrush;te._dragging||(C(Q,j),E(Q,j),j.brush.svgBrush.wasDragged=!1),te._dragging=!1,b.event.sourceEvent.stopPropagation();var W=te.grabbingBar;if(te.grabbingBar=!1,te.grabLocation=void 0,j.parent.inBrushDrag=!1,x(),!te.wasDragged)return te.wasDragged=void 0,te.clickableOrdinalRange?U.filterSpecified&&j.multiselect?te.extent.push(te.clickableOrdinalRange):(te.extent=[te.clickableOrdinalRange],U.filterSpecified=!0):W?(te.extent=te.stayingIntervals,te.extent.length===0&&k(U)):k(U),te.brushCallback(j),M(Q.parentNode),void te.brushEndCallback(U.filterSpecified?X.getConsolidated():[]);var K=function(){X.set(X.getConsolidated())};if(j.ordinal){var oe=j.unitTickvals;oe[oe.length-1]te.newExtent[0];te.extent=te.stayingIntervals.concat(q?[te.newExtent]:[]),te.extent.length||k(U),te.brushCallback(j),q?M(Q.parentNode,K):(K(),M(Q.parentNode))}else K();te.brushEndCallback(U.filterSpecified?X.getConsolidated():[])})(this,$)}))}function D(z,$){return z[0]-$[0]}function k(z){z.filterSpecified=!1,z.svgBrush.extent=[[-1/0,1/0]]}function I(z){for(var $,Q=z.slice(),j=[],U=Q.shift();U;){for($=U.slice();(U=Q.shift())&&U[0]<=$[1];)$[1]=Math.max($[1],U[1]);j.push($)}return j.length===1&&j[0][0]>j[0][1]&&(j=[]),j}d.exports={makeBrush:function(z,$,Q,j,U,X){var te,W=function(){var K,oe,q=[];return{set:function(Y){(q=Y.map(function(ee){return ee.slice().sort(w)}).sort(D)).length===1&&q[0][0]===-1/0&&q[0][1]===1/0&&(q=[[0,-1]]),K=I(q),oe=q.reduce(function(ee,me){return[Math.min(ee[0],me[0]),Math.max(ee[1],me[1])]},[1/0,-1/0])},get:function(){return q.slice()},getConsolidated:function(){return K},getBounds:function(){return oe}}}();return W.set(Q),{filter:W,filterSpecified:$,svgBrush:{extent:[],brushStartCallback:j,brushCallback:(te=U,function(K){var oe=K.brush,q=function(ee){return ee.svgBrush.extent.map(function(me){return me.slice()})}(oe),Y=q.slice();oe.filter.set(Y),te()}),brushEndCallback:X}}},ensureAxisBrush:function(z,$,Q){var j=z.selectAll("."+c.cn.axisBrush).data(O,i);j.enter().append("g").classed(c.cn.axisBrush,!0),function(U,X,te){var W=te._context.staticPlot,K=U.selectAll(".background").data(O);K.enter().append("rect").classed("background",!0).call(v).call(_).style("pointer-events",W?"none":"auto").attr("transform",y(0,c.verticalPadding)),K.call(L).attr("height",function(Y){return Y.height-c.verticalPadding});var oe=U.selectAll(".highlight-shadow").data(O);oe.enter().append("line").classed("highlight-shadow",!0).attr("x",-c.bar.width/2).attr("stroke-width",c.bar.width+c.bar.strokeWidth).attr("stroke",X).attr("opacity",c.bar.strokeOpacity).attr("stroke-linecap","butt"),oe.attr("y1",function(Y){return Y.height}).call(R);var q=U.selectAll(".highlight").data(O);q.enter().append("line").classed("highlight",!0).attr("x",-c.bar.width/2).attr("stroke-width",c.bar.width-c.bar.strokeWidth).attr("stroke",c.bar.fillColor).attr("opacity",c.bar.fillOpacity).attr("stroke-linecap","butt"),q.attr("y1",function(Y){return Y.height}).call(R)}(j,$,Q)},cleanRanges:function(z,$){if(Array.isArray(z[0])?(z=z.map(function(j){return j.sort(w)}),z=$.multiselect?I(z.sort(D)):[z[0]]):z=[z.sort(w)],$.tickvals){var Q=$.tickvals.slice().sort(w);if(!(z=z.map(function(j){var U=[m(0,Q,j[0],[]),m(1,Q,j[1],[])];if(U[1]>U[0])return U}).filter(function(j){return j})).length)return}return z.length>1?z:z[0]}}},61664:function(d,l,n){d.exports={attributes:n(82296),supplyDefaults:n(60664),calc:n(95044),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:n(19976),categories:["gl","regl","noOpacity","noHover"],meta:{}}},19976:function(d,l,n){var c=n(33428),b=n(84888)._M,i=n(24196),O=n(9616);l.name="parcoords",l.plot=function(w){var y=b(w.calcdata,"parcoords")[0];y.length&&i(w,y)},l.clean=function(w,y,p,a){var u=a._has&&a._has("parcoords"),h=y._has&&y._has("parcoords");u&&!h&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())},l.toSVG=function(w){var y=w._fullLayout._glimages,p=c.select(w).selectAll(".svg-container");p.filter(function(a,u){return u===p.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus").each(function(){var a=this,u=a.toDataURL("image/png");y.append("svg:image").attr({xmlns:O.svg,"xlink:href":u,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}),window.setTimeout(function(){c.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}},95044:function(d,l,n){var c=n(3400).isArrayOrTypedArray,b=n(8932),i=n(71688).wrap;d.exports=function(O,w){var y,p;return b.hasColorscale(w,"line")&&c(w.line.color)?(y=w.line.color,p=b.extractOpts(w.line).colorscale,b.calc(O,w,{vals:y,containerStr:"line",cLetter:"c"})):(y=function(a){for(var u=new Array(a),h=0;hu&&(c.log("parcoords traces support up to "+u+" dimensions at the moment"),R.splice(u));var M=w(v,_,{name:"dimensions",layout:A,handleItemDefaults:m}),T=function(C,L,D,k,I){var z=I("line.color",D);if(b(C,"line")&&c.isArrayOrTypedArray(z)){if(z.length)return I("line.colorscale"),i(C,L,k,I,{prefix:"line.",cLetter:"c"}),z.length;L.line.color=D}return 1/0}(v,_,S,A,x);O(_,A,x),Array.isArray(M)&&M.length||(_.visible=!1),h(_,M,"values",T);var E={family:A.font.family,size:Math.round(A.font.size/1.2),color:A.font.color};c.coerceFont(x,"labelfont",E),c.coerceFont(x,"tickfont",E),c.coerceFont(x,"rangefont",E),x("labelangle"),x("labelside"),x("unselected.line.color"),x("unselected.line.opacity")}},95724:function(d,l,n){var c=n(3400).isTypedArray;l.convertTypedArray=function(b){return c(b)?Array.prototype.slice.call(b):b},l.isOrdinal=function(b){return!!b.tickvals},l.isVisible=function(b){return b.visible||!("visible"in b)}},29928:function(d,l,n){var c=n(61664);c.plot=n(24196),d.exports=c},51352:function(d,l,n){var c=n(26444),b=c([`precision highp float; +`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}},89032:function(d,l,n){var c=n(3400);d.exports=function(b,i){var O=b.split(" "),w=O[0],y=O[1],p=c.isArrayOrTypedArray(i)?c.mean(i):i,a=.5+p/100,u=1.5+p/100,h=["",""],m=[0,0];switch(w){case"top":h[0]="top",m[1]=-u;break;case"bottom":h[0]="bottom",m[1]=u}switch(y){case"left":h[1]="right",m[0]=-a;break;case"right":h[1]="left",m[0]=a}return{anchor:h[0]&&h[1]?h.join("-"):h[0]?h[0]:h[1]?h[1]:"center",offset:m}}},33688:function(d,l,n){var c=n(3480),b=n(3400),i=b.strTranslate,O=b.strScale,w=n(84888).KY,y=n(9616),p=n(33428),a=n(43616),u=n(72736),h=n(14440),m="mapbox",v=l.constants=n(47552);function _(S){return typeof S=="string"&&(v.styleValuesMapbox.indexOf(S)!==-1||S.indexOf("mapbox://")===0||S.indexOf("stamen")===0)}l.name=m,l.attr="subplot",l.idRoot=m,l.idRegex=l.attrRegex=b.counterRegex(m),l.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},l.layoutAttributes=n(5232),l.supplyLayoutDefaults=n(5976),l.plot=function(S){var A=S._fullLayout,x=S.calcdata,R=A._subplots[m];if(c.version!==v.requiredVersion)throw new Error(v.wrongVersionErrorMsg);var M=function(k,I){var z=k._fullLayout;if(k._context.mapboxAccessToken==="")return"";for(var $=[],Q=[],j=!1,U=!1,X=0;X1&&b.warn(v.multipleTokensErrorMsg),$[0]):(Q.length&&b.log(["Listed mapbox access token(s)",Q.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}(S,R);c.accessToken=M;for(var T=0;TQ/2){var j=k.split("|").join("
");z.text(j).attr("data-unformatted",j).call(u.convertToTspans,S),$=a.bBox(z.node())}z.attr("transform",i(-3,8-$.height)),I.insert("rect",".static-attribution").attr({x:-$.width-6,y:-$.height-3,width:$.width+6,height:$.height+3,fill:"rgba(255, 255, 255, 0.75)"});var U=1;$.width+6>Q&&(U=Q/($.width+6));var X=[R.l+R.w*E.x[1],R.t+R.h*(1-E.y[0])];I.attr("transform",i(X[0],X[1])+O(U))}},l.updateFx=function(S){for(var A=S._fullLayout,x=A._subplots[m],R=0;R0){for(var m=0;m0}function a(u){var h={},m={};switch(u.type){case"circle":c.extendFlat(m,{"circle-radius":u.circle.radius,"circle-color":u.color,"circle-opacity":u.opacity});break;case"line":c.extendFlat(m,{"line-width":u.line.width,"line-color":u.color,"line-opacity":u.opacity,"line-dasharray":u.line.dash});break;case"fill":c.extendFlat(m,{"fill-color":u.color,"fill-outline-color":u.fill.outlinecolor,"fill-opacity":u.opacity});break;case"symbol":var v=u.symbol,_=i(v.textposition,v.iconsize);c.extendFlat(h,{"icon-image":v.icon+"-15","icon-size":v.iconsize/10,"text-field":v.text,"text-size":v.textfont.size,"text-anchor":_.anchor,"text-offset":_.offset,"symbol-placement":v.placement}),c.extendFlat(m,{"icon-color":u.color,"text-color":v.textfont.color,"text-opacity":u.opacity});break;case"raster":c.extendFlat(m,{"raster-fade-duration":0,"raster-opacity":u.opacity})}return{layout:h,paint:m}}y.update=function(u){this.visible?this.needsNewImage(u)?this.updateImage(u):this.needsNewSource(u)?(this.removeLayer(),this.updateSource(u),this.updateLayer(u)):this.needsNewLayer(u)?this.updateLayer(u):this.updateStyle(u):(this.updateSource(u),this.updateLayer(u)),this.visible=p(u)},y.needsNewImage=function(u){return this.subplot.map.getSource(this.idSource)&&this.sourceType==="image"&&u.sourcetype==="image"&&(this.source!==u.source||JSON.stringify(this.coordinates)!==JSON.stringify(u.coordinates))},y.needsNewSource=function(u){return this.sourceType!==u.sourcetype||JSON.stringify(this.source)!==JSON.stringify(u.source)||this.layerType!==u.type},y.needsNewLayer=function(u){return this.layerType!==u.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},y.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},y.updateImage=function(u){this.subplot.map.getSource(this.idSource).updateImage({url:u.source,coordinates:u.coordinates});var h=this.findFollowingMapboxLayerId(this.lookupBelow());h!==null&&this.subplot.map.moveLayer(this.idLayer,h)},y.updateSource=function(u){var h=this.subplot.map;if(h.getSource(this.idSource)&&h.removeSource(this.idSource),this.sourceType=u.sourcetype,this.source=u.source,p(u)){var m=function(v){var _,S=v.sourcetype,A=v.source,x={type:S};return S==="geojson"?_="data":S==="vector"?_=typeof A=="string"?"url":"tiles":S==="raster"?(_="tiles",x.tileSize=256):S==="image"&&(_="url",x.coordinates=v.coordinates),x[_]=A,v.sourceattribution&&(x.attribution=b(v.sourceattribution)),x}(u);h.addSource(this.idSource,m)}},y.findFollowingMapboxLayerId=function(u){if(u==="traces")for(var h=this.subplot.getMapLayers(),m=0;m1)for(I=0;I-1&&S(X.originalEvent,z,[I.xaxis],[I.yaxis],I.id,U),te.indexOf("event")>-1&&p.click(z,X.originalEvent)}}},M.updateFx=function(D){var k=this,I=k.map,z=k.gd;if(!k.isStatic){var $,Q=D.dragmode;$=function(X,te){te.isRect?(X.range={})[k.id]=[U([te.xmin,te.ymin]),U([te.xmax,te.ymax])]:(X.lassoPoints={})[k.id]=te.map(U)};var j=k.dragOptions;k.dragOptions=b.extendDeep(j||{},{dragmode:D.dragmode,element:k.div,gd:z,plotinfo:{id:k.id,domain:D[k.id].domain,xaxis:k.xaxis,yaxis:k.yaxis,fillRangeItems:$},xaxes:[k.xaxis],yaxes:[k.yaxis],subplot:k.id}),I.off("click",k.onClickInPanHandler),h(Q)||u(Q)?(I.dragPan.disable(),I.on("zoomstart",k.clearOutline),k.dragOptions.prepFn=function(X,te,W){m(X,te,W,k.dragOptions,Q)},y.init(k.dragOptions)):(I.dragPan.enable(),I.off("zoomstart",k.clearOutline),k.div.onmousedown=null,k.div.ontouchstart=null,k.div.removeEventListener("touchstart",k.div._ontouchstart),k.onClickInPanHandler=k.onClickInPanFn(k.dragOptions),I.on("click",k.onClickInPanHandler))}function U(X){var te=k.map.unproject(X);return[te.lng,te.lat]}},M.updateFramework=function(D){var k=D[this.id].domain,I=D._size,z=this.div.style;z.width=I.w*(k.x[1]-k.x[0])+"px",z.height=I.h*(k.y[1]-k.y[0])+"px",z.left=I.l+k.x[0]*I.w+"px",z.top=I.t+(1-k.y[1])*I.h+"px",this.xaxis._offset=I.l+k.x[0]*I.w,this.xaxis._length=I.w*(k.x[1]-k.x[0]),this.yaxis._offset=I.t+(1-k.y[1])*I.h,this.yaxis._length=I.h*(k.y[1]-k.y[0])},M.updateLayers=function(D){var k,I=D[this.id].layers,z=this.layerList;if(I.length!==z.length){for(k=0;k=Y.width-20?(he["text-anchor"]="start",he.x=5):(he["text-anchor"]="end",he.x=Y._paper.attr("width")-7),ee.attr(he);var se=ee.select(".js-link-to-tool"),ae=ee.select(".js-link-spacer"),ce=ee.select(".js-sourcelinks");q._context.showSources&&q._context.showSources(q),q._context.showLink&&function(de,ve){ve.text("");var ye=ve.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(de._context.linkText+" "+String.fromCharCode(187));if(de._context.sendData)ye.on("click",function(){E.sendDataToCloud(de)});else{var _e=window.location.pathname.split("/"),Se=window.location.search;ye.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+_e[2].split(".")[0]+"/"+_e[1]+Se})}}(q,se),ae.text(se.text()&&ce.text()?" - ":"")}},E.sendDataToCloud=function(q){var Y=(window.PLOTLYENV||{}).BASE_URL||q._context.plotlyServerURL;if(Y){q.emit("plotly_beforeexport");var ee=c.select(q).append("div").attr("id","hiddenform").style("display","none"),me=ee.append("form").attr({action:Y+"/external",method:"post",target:"_blank"});return me.append("input").attr({type:"text",name:"data"}).node().value=E.graphJson(q,!1,"keepdata"),me.node().submit(),ee.remove(),q.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],k=["year","month","dayMonth","dayMonthYear"];function I(q,Y){var ee=q._context.locale;ee||(ee="en-US");var me=!1,he={};function se(_e){for(var Se=!0,Te=0;Te1&&ke.length>1){for(y.getComponentMethod("grid","sizeDefaults")(ae,se),he=0;he15&&ke.length>15&&se.shapes.length===0&&se.images.length===0,E.linkSubplots(de,se,ce,me),E.cleanPlot(de,se,ce,me);var Xe=!(!me._has||!me._has("gl2d")),tt=!(!se._has||!se._has("gl2d")),Ee=!(!me._has||!me._has("cartesian"))||Xe,Ne=!(!se._has||!se._has("cartesian"))||tt;Ee&&!Ne?me._bgLayer.remove():Ne&&!Ee&&(se._shouldCreateBgLayer=!0),me._zoomlayer&&!q._dragging&&_({_fullLayout:me}),function(Ge,ht){var pt,wt=[];ht.meta&&(pt=ht._meta={meta:ht.meta,layout:{meta:ht.meta}});for(var Dt=0;Dt0){var ve=1-2*ae;me=Math.round(ve*me),he=Math.round(ve*he)}}var ye=E.layoutAttributes.width.min,_e=E.layoutAttributes.height.min;me1,Te=!Y.height&&Math.abs(ee.height-he)>1;(Te||Se)&&(Se&&(ee.width=me),Te&&(ee.height=he)),q._initialAutoSize||(q._initialAutoSize={width:me,height:he}),E.sanitizeMargins(ee)},E.supplyLayoutModuleDefaults=function(q,Y,ee,me){var he,se,ae,ce=y.componentsRegistry,de=Y._basePlotModules,ve=y.subplotsRegistry.cartesian;for(he in ce)(ae=ce[he]).includeBasePlot&&ae.includeBasePlot(q,Y);for(var ye in de.length||de.push(ve),Y._has("cartesian")&&(y.getComponentMethod("grid","contentDefaults")(q,Y),ve.finalizeSubplots(q,Y)),Y._subplots)Y._subplots[ye].sort(u.subplotSort);for(se=0;se1&&(ee.l/=ze,ee.r/=ze)}if(Se){var De=(ee.t+ee.b)/Se;De>1&&(ee.t/=De,ee.b/=De)}var He=ee.xl!==void 0?ee.xl:ee.x,Ve=ee.xr!==void 0?ee.xr:ee.x,$e=ee.yt!==void 0?ee.yt:ee.y,Oe=ee.yb!==void 0?ee.yb:ee.y;Te[Y]={l:{val:He,size:ee.l+Ie},r:{val:Ve,size:ee.r+Ie},b:{val:Oe,size:ee.b+Ie},t:{val:$e,size:ee.t+Ie}},Pe[Y]=1}else delete Te[Y],delete Pe[Y];if(!me._replotting)return E.doAutoMargin(q)}},E.doAutoMargin=function(q){var Y=q._fullLayout,ee=Y.width,me=Y.height;Y._size||(Y._size={}),U(Y);var he=Y._size,se=Y.margin,ae={t:0,b:0,l:0,r:0},ce=u.extendFlat({},he),de=se.l,ve=se.r,ye=se.t,_e=se.b,Se=Y._pushmargin,Te=Y._pushmarginIds,Pe=Y.minreducedwidth,Ie=Y.minreducedheight;if(se.autoexpand!==!1){for(var ze in Se)Te[ze]||delete Se[ze];var De=q._fullLayout._reservedMargin;for(var He in De)for(var Ve in De[He]){var $e=De[He][Ve];ae[Ve]=Math.max(ae[Ve],$e)}for(var Oe in Se.base={l:{val:0,size:de},r:{val:1,size:ve},t:{val:1,size:ye},b:{val:0,size:_e}},ae){var ke=0;for(var Le in Se)Le!=="base"&&O(Se[Le][Oe].size)&&(ke=Se[Le][Oe].size>ke?Se[Le][Oe].size:ke);var We=Math.max(0,se[Oe]-ke);ae[Oe]=Math.max(0,ae[Oe]-We)}for(var Ue in Se){var Ze=Se[Ue].l||{},Xe=Se[Ue].b||{},tt=Ze.val,Ee=Ze.size,Ne=Xe.val,je=Xe.size,nt=ee-ae.r-ae.l,ot=me-ae.t-ae.b;for(var Ge in Se){if(O(Ee)&&Se[Ge].r){var ht=Se[Ge].r.val,pt=Se[Ge].r.size;if(ht>tt){var wt=(Ee*ht+(pt-nt)*tt)/(ht-tt),Dt=(pt*(1-tt)+(Ee-nt)*(1-ht))/(ht-tt);wt+Dt>de+ve&&(de=wt,ve=Dt)}}if(O(je)&&Se[Ge].t){var It=Se[Ge].t.val,qt=Se[Ge].t.size;if(It>Ne){var en=(je*It+(qt-ot)*Ne)/(It-Ne),Gt=(qt*(1-Ne)+(je-ot)*(1-It))/(It-Ne);en+Gt>_e+ye&&(_e=en,ye=Gt)}}}}}var Ct=u.constrain(ee-se.l-se.r,2,Pe),_t=u.constrain(me-se.t-se.b,2,Ie),nn=Math.max(0,ee-Ct),gn=Math.max(0,me-_t);if(nn){var bn=(de+ve)/nn;bn>1&&(de/=bn,ve/=bn)}if(gn){var mn=(_e+ye)/gn;mn>1&&(_e/=mn,ye/=mn)}if(he.l=Math.round(de)+ae.l,he.r=Math.round(ve)+ae.r,he.t=Math.round(ye)+ae.t,he.b=Math.round(_e)+ae.b,he.p=Math.round(se.pad),he.w=Math.round(ee)-he.l-he.r,he.h=Math.round(me)-he.t-he.b,!Y._replotting&&(E.didMarginChange(ce,he)||function(bt){if("_redrawFromAutoMarginCount"in bt._fullLayout)return!1;var lt=v.list(bt,"",!0);for(var yt in lt)if(lt[yt].autoshift||lt[yt].shift)return!0;return!1}(q))){"_redrawFromAutoMarginCount"in Y?Y._redrawFromAutoMarginCount++:Y._redrawFromAutoMarginCount=1;var vt=3*(1+Object.keys(Te).length);if(Y._redrawFromAutoMarginCount0&&(q._transitioningWithDuration=!0),q._transitionData._interruptCallbacks.push(function(){me=!0}),ee.redraw&&q._transitionData._interruptCallbacks.push(function(){return y.call("redraw",q)}),q._transitionData._interruptCallbacks.push(function(){q.emit("plotly_transitioninterrupted",[])});var ce=0,de=0;function ve(){return ce++,function(){var ye;de++,me||de!==ce||(ye=ae,q._transitionData&&(function(_e){if(_e)for(;_e.length;)_e.shift()}(q._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(ee.redraw)return y.call("redraw",q)}).then(function(){q._transitioning=!1,q._transitioningWithDuration=!1,q.emit("plotly_transitioned",[])}).then(ye)))}}ee.runFn(ve),setTimeout(ve())})}],se=u.syncOrAsync(he,q);return se&&se.then||(se=Promise.resolve()),se.then(function(){return q})}E.didMarginChange=function(q,Y){for(var ee=0;ee1)return!0}return!1},E.graphJson=function(q,Y,ee,me,he,se){(he&&Y&&!q._fullData||he&&!Y&&!q._fullLayout)&&E.supplyDefaults(q);var ae=he?q._fullData:q.data,ce=he?q._fullLayout:q.layout,de=(q._transitionData||{})._frames;function ve(Se,Te){if(typeof Se=="function")return Te?"_function_":null;if(u.isPlainObject(Se)){var Pe,Ie={};return Object.keys(Se).sort().forEach(function(Ve){if(["_","["].indexOf(Ve.charAt(0))===-1)if(typeof Se[Ve]!="function"){if(ee==="keepdata"){if(Ve.substr(Ve.length-3)==="src")return}else if(ee==="keepstream"){if(typeof(Pe=Se[Ve+"src"])=="string"&&Pe.indexOf(":")>0&&!u.isPlainObject(Se.stream))return}else if(ee!=="keepall"&&typeof(Pe=Se[Ve+"src"])=="string"&&Pe.indexOf(":")>0)return;Ie[Ve]=ve(Se[Ve],Te)}else Te&&(Ie[Ve]="_function")}),Ie}var ze=Array.isArray(Se),De=u.isTypedArray(Se);if((ze||De)&&Se.dtype&&Se.shape){var He=Se.bdata;return ve({dtype:Se.dtype,shape:Se.shape,bdata:u.isArrayBuffer(He)?w.encode(He):He},Te)}return ze?Se.map(function(Ve){return ve(Ve,Te)}):De?u.simpleMap(Se,u.identity):u.isJSDate(Se)?u.ms2DateTimeLocal(+Se):Se}var ye={data:(ae||[]).map(function(Se){var Te=ve(Se);return Y&&delete Te.fit,Te})};if(!Y&&(ye.layout=ve(ce),he)){var _e=ce._size;ye.layout.computed={margin:{b:_e.b,l:_e.l,r:_e.r,t:_e.t}}}return de&&(ye.frames=ve(de)),se&&(ye.config=ve(q._context,!0)),me==="object"?ye:JSON.stringify(ye)},E.modifyFrames=function(q,Y){var ee,me,he,se=q._transitionData._frames,ae=q._transitionData._frameHash;for(ee=0;ee=0;se--)if(Oe[se].enabled){ee._indexToPoints=Oe[se]._indexToPoints;break}me&&me.calc&&($e=me.calc(q,ee))}Array.isArray($e)&&$e[0]||($e=[{x:m,y:m}]),$e[0].t||($e[0].t={}),$e[0].trace=ee,ve[He]=$e}}for(K(ae,ce,de),he=0;he1e-10?m:0}function h(m,v,_){v=v||0,_=_||0;for(var S=m.length,A=new Array(S),x=0;x0?x:1/0}),S=c.mod(_+1,v.length);return[v[_],v[S]]},findIntersectionXY:p,findXYatLength:function(m,v,_,S){var A=-v*_,x=v*v+1,R=2*(v*A-_),M=A*A+_*_-m*m,T=Math.sqrt(R*R-4*x*M),E=(-R+T)/(2*x),C=(-R-T)/(2*x);return[[E,v*E+A+S],[C,v*C+A+S]]},clampTiny:u,pathPolygon:function(m,v,_,S,A,x){return"M"+h(a(m,v,_,S),A,x).join("L")},pathPolygonAnnulus:function(m,v,_,S,A,x,R){var M,T;m=90||Gt>90&&Ct>=450?1:nn<=0&&bn<=0?0:Math.max(nn,bn),[Gt<=180&&Ct>=180||Gt>180&&Ct>=540?-1:_t>=0&&gn>=0?0:Math.min(_t,gn),Gt<=270&&Ct>=270||Gt>270&&Ct>=630?-1:nn>=0&&bn>=0?0:Math.min(nn,bn),Ct>=360?1:_t<=0&&gn<=0?0:Math.max(_t,gn),It]}(ze),Le=ke[2]-ke[0],We=ke[3]-ke[1],Ue=Ie/Pe,Ze=Math.abs(We/Le);Ue>Ze?(De=Pe,Oe=(Ie-(He=Pe*Ze))/ve.h/2,Ve=[Se[0],Se[1]],$e=[Te[0]+Oe,Te[1]-Oe]):(He=Ie,Oe=(Pe-(De=Ie/Ze))/ve.w/2,Ve=[Se[0]+Oe,Se[1]-Oe],$e=[Te[0],Te[1]]),ce.xLength2=De,ce.yLength2=He,ce.xDomain2=Ve,ce.yDomain2=$e;var Xe,tt=ce.xOffset2=ve.l+ve.w*Ve[0],Ee=ce.yOffset2=ve.t+ve.h*(1-$e[1]),Ne=ce.radius=De/Le,je=ce.innerRadius=ce.getHole(ae)*Ne,nt=ce.cx=tt-Ne*ke[0],ot=ce.cy=Ee+Ne*ke[3],Ge=ce.cxx=nt-tt,ht=ce.cyy=ot-Ee,pt=ye.side;pt==="counterclockwise"?(Xe=pt,pt="top"):pt==="clockwise"&&(Xe=pt,pt="bottom"),ce.radialAxis=ce.mockAxis(se,ae,ye,{_id:"x",side:pt,_trueSide:Xe,domain:[je/ve.w,Ne/ve.w]}),ce.angularAxis=ce.mockAxis(se,ae,_e,{side:"right",domain:[0,Math.PI],autorange:!1}),ce.doAutoRange(se,ae),ce.updateAngularAxis(se,ae),ce.updateRadialAxis(se,ae),ce.updateRadialAxisTitle(se,ae),ce.xaxis=ce.mockCartesianAxis(se,ae,{_id:"x",domain:Ve}),ce.yaxis=ce.mockCartesianAxis(se,ae,{_id:"y",domain:$e});var wt=ce.pathSubplot();ce.clipPaths.forTraces.select("path").attr("d",wt).attr("transform",y(Ge,ht)),de.frontplot.attr("transform",y(tt,Ee)).call(a.setClipUrl,ce._hasClipOnAxisFalse?null:ce.clipIds.forTraces,ce.gd),de.bg.attr("d",wt).attr("transform",y(nt,ot)).call(p.fill,ae.bgcolor)},Y.mockAxis=function(se,ae,ce,de){var ve=O.extendFlat({},ce,de);return v(ve,ae,se),ve},Y.mockCartesianAxis=function(se,ae,ce){var de=this,ve=de.isSmith,ye=ce._id,_e=O.extendFlat({type:"linear"},ce);m(_e,se);var Se={x:[0,2],y:[1,3]};return _e.setRange=function(){var Te=de.sectorBBox,Pe=Se[ye],Ie=de.radialAxis._rl,ze=(Ie[1]-Ie[0])/(1-de.getHole(ae));_e.range=[Te[Pe[0]]*ze,Te[Pe[1]]*ze]},_e.isPtWithinRange=ye!=="x"||ve?function(){return!0}:function(Te){return de.isPtInside(Te)},_e.setRange(),_e.setScale(),_e},Y.doAutoRange=function(se,ae){var ce=this,de=ce.gd,ve=ce.radialAxis,ye=ce.getRadial(ae);_(de,ve);var _e=ve.range;if(ye.range=_e.slice(),ye._input.range=_e.slice(),ve._rl=[ve.r2l(_e[0],null,"gregorian"),ve.r2l(_e[1],null,"gregorian")],ve.minallowed!==void 0){var Se=ve.r2l(ve.minallowed);ve._rl[0]>ve._rl[1]?ve._rl[1]=Math.max(ve._rl[1],Se):ve._rl[0]=Math.max(ve._rl[0],Se)}if(ve.maxallowed!==void 0){var Te=ve.r2l(ve.maxallowed);ve._rl[0]90&&Ie<=270&&(ze.tickangle=180);var Ve=He?function(Ee){var Ne=X(ce,Q([Ee.x,0]));return y(Ne[0]-Se,Ne[1]-Te)}:function(Ee){return y(ze.l2p(Ee.x)+_e,0)},$e=He?function(Ee){return U(ce,Ee.x,-1/0,1/0)}:function(Ee){return ce.pathArc(ze.r2p(Ee.x)+_e)},Oe=ee(Pe);if(ce.radialTickLayout!==Oe&&(ve["radial-axis"].selectAll(".xtick").remove(),ce.radialTickLayout=Oe),De){ze.setScale();var ke=0,Le=He?(ze.tickvals||[]).filter(function(Ee){return Ee>=0}).map(function(Ee){return h.tickText(ze,Ee,!0,!1)}):h.calcTicks(ze),We=He?Le:h.clipEnds(ze,Le),Ue=h.getTickSigns(ze)[2];He&&((ze.ticks==="top"&&ze.side==="bottom"||ze.ticks==="bottom"&&ze.side==="top")&&(Ue=-Ue),ze.ticks==="top"&&ze.side==="top"&&(ke=-ze.ticklen),ze.ticks==="bottom"&&ze.side==="bottom"&&(ke=ze.ticklen)),h.drawTicks(de,ze,{vals:Le,layer:ve["radial-axis"],path:h.makeTickPath(ze,0,Ue),transFn:Ve,crisp:!1}),h.drawGrid(de,ze,{vals:We,layer:ve["radial-grid"],path:$e,transFn:O.noop,crisp:!1}),h.drawLabels(de,ze,{vals:Le,layer:ve["radial-axis"],transFn:Ve,labelFns:h.makeLabelFns(ze,ke)})}var Ze=ce.radialAxisAngle=ce.vangles?oe(me(K(Pe.angle),ce.vangles)):Pe.angle,Xe=y(Se,Te),tt=Xe+w(-Ze);he(ve["radial-axis"],De&&(Pe.showticklabels||Pe.ticks),{transform:tt}),he(ve["radial-grid"],De&&Pe.showgrid,{transform:He?"":Xe}),he(ve["radial-line"].select("line"),De&&Pe.showline,{x1:He?-ye:_e,y1:0,x2:ye,y2:0,transform:tt}).attr("stroke-width",Pe.linewidth).call(p.stroke,Pe.linecolor)},Y.updateRadialAxisTitle=function(se,ae,ce){if(!this.isSmith){var de=this,ve=de.gd,ye=de.radius,_e=de.cx,Se=de.cy,Te=de.getRadial(ae),Pe=de.id+"title",Ie=0;if(Te.title){var ze=a.bBox(de.layers["radial-axis"].node()).height,De=Te.title.font.size,He=Te.side;Ie=He==="top"?De:He==="counterclockwise"?-(ze+.4*De):ze+.8*De}var Ve=ce!==void 0?ce:de.radialAxisAngle,$e=K(Ve),Oe=Math.cos($e),ke=Math.sin($e),Le=_e+ye/2*Oe+Ie*ke,We=Se-ye/2*ke+Ie*Oe;de.layers["radial-axis-title"]=R.draw(ve,Pe,{propContainer:Te,propName:de.id+".radialaxis.title",placeholder:te(ve,"Click to enter radial axis title"),attributes:{x:Le,y:We,"text-anchor":"middle"},transform:{rotate:-Ve}})}},Y.updateAngularAxis=function(se,ae){var ce=this,de=ce.gd,ve=ce.layers,ye=ce.radius,_e=ce.innerRadius,Se=ce.cx,Te=ce.cy,Pe=ce.getAngular(ae),Ie=ce.angularAxis,ze=ce.isSmith;ze||(ce.fillViewInitialKey("angularaxis.rotation",Pe.rotation),Ie.setGeometry(),Ie.setScale());var De=ze?function(Ee){var Ne=X(ce,Q([0,Ee.x]));return Math.atan2(Ne[0]-Se,Ne[1]-Te)-Math.PI/2}:function(Ee){return Ie.t2g(Ee.x)};Ie.type==="linear"&&Ie.thetaunit==="radians"&&(Ie.tick0=oe(Ie.tick0),Ie.dtick=oe(Ie.dtick));var He=function(Ee){return y(Se+ye*Math.cos(Ee),Te-ye*Math.sin(Ee))},Ve=ze?function(Ee){var Ne=X(ce,Q([0,Ee.x]));return y(Ne[0],Ne[1])}:function(Ee){return He(De(Ee))},$e=ze?function(Ee){var Ne=X(ce,Q([0,Ee.x])),je=Math.atan2(Ne[0]-Se,Ne[1]-Te)-Math.PI/2;return y(Ne[0],Ne[1])+w(-oe(je))}:function(Ee){var Ne=De(Ee);return He(Ne)+w(-oe(Ne))},Oe=ze?function(Ee){return j(ce,Ee.x,0,1/0)}:function(Ee){var Ne=De(Ee),je=Math.cos(Ne),nt=Math.sin(Ne);return"M"+[Se+_e*je,Te-_e*nt]+"L"+[Se+ye*je,Te-ye*nt]},ke=h.makeLabelFns(Ie,0).labelStandoff,Le={xFn:function(Ee){var Ne=De(Ee);return Math.cos(Ne)*ke},yFn:function(Ee){var Ne=De(Ee),je=Math.sin(Ne)>0?.2:1;return-Math.sin(Ne)*(ke+Ee.fontSize*je)+Math.abs(Math.cos(Ne))*(Ee.fontSize*k)},anchorFn:function(Ee){var Ne=De(Ee),je=Math.cos(Ne);return Math.abs(je)<.1?"middle":je>0?"start":"end"},heightFn:function(Ee,Ne,je){var nt=De(Ee);return-.5*(1+Math.sin(nt))*je}},We=ee(Pe);ce.angularTickLayout!==We&&(ve["angular-axis"].selectAll("."+Ie._id+"tick").remove(),ce.angularTickLayout=We);var Ue,Ze=ze?[1/0].concat(Ie.tickvals||[]).map(function(Ee){return h.tickText(Ie,Ee,!0,!1)}):h.calcTicks(Ie);if(ze&&(Ze[0].text="∞",Ze[0].fontSize*=1.75),ae.gridshape==="linear"?(Ue=Ze.map(De),O.angleDelta(Ue[0],Ue[1])<0&&(Ue=Ue.slice().reverse())):Ue=null,ce.vangles=Ue,Ie.type==="category"&&(Ze=Ze.filter(function(Ee){return O.isAngleInsideSector(De(Ee),ce.sectorInRad)})),Ie.visible){var Xe=Ie.ticks==="inside"?-1:1,tt=(Ie.linewidth||1)/2;h.drawTicks(de,Ie,{vals:Ze,layer:ve["angular-axis"],path:"M"+Xe*tt+",0h"+Xe*Ie.ticklen,transFn:$e,crisp:!1}),h.drawGrid(de,Ie,{vals:Ze,layer:ve["angular-grid"],path:Oe,transFn:O.noop,crisp:!1}),h.drawLabels(de,Ie,{vals:Ze,layer:ve["angular-axis"],repositionOnUpdate:!0,transFn:Ve,labelFns:Le})}he(ve["angular-line"].select("path"),Pe.showline,{d:ce.pathSubplot(),transform:y(Se,Te)}).attr("stroke-width",Pe.linewidth).call(p.stroke,Pe.linecolor)},Y.updateFx=function(se,ae){this.gd._context.staticPlot||(!this.isSmith&&(this.updateAngularDrag(se),this.updateRadialDrag(se,ae,0),this.updateRadialDrag(se,ae,1)),this.updateHoverAndMainDrag(se))},Y.updateHoverAndMainDrag=function(se){var ae,ce,de=this,ve=de.isSmith,ye=de.gd,_e=de.layers,Se=se._zoomlayer,Te=I.MINZOOM,Pe=I.OFFEDGE,Ie=de.radius,ze=de.innerRadius,De=de.cx,He=de.cy,Ve=de.cxx,$e=de.cyy,Oe=de.sectorInRad,ke=de.vangles,Le=de.radialAxis,We=z.clampTiny,Ue=z.findXYatLength,Ze=z.findEnclosingVertexAngles,Xe=I.cornerHalfWidth,tt=I.cornerLen/2,Ee=S.makeDragger(_e,"path","maindrag",se.dragmode===!1?"none":"crosshair");c.select(Ee).attr("d",de.pathSubplot()).attr("transform",y(De,He)),Ee.onmousemove=function(Rt){x.hover(ye,Rt,de.id),ye._fullLayout._lasthover=Ee,ye._fullLayout._hoversubplot=de.id},Ee.onmouseout=function(Rt){ye._dragging||A.unhover(ye,Rt)};var Ne,je,nt,ot,Ge,ht,pt,wt,Dt,It={element:Ee,gd:ye,subplot:de.id,plotinfo:{id:de.id,xaxis:de.xaxis,yaxis:de.yaxis},xaxes:[de.xaxis],yaxes:[de.yaxis]};function qt(Rt,it){return Math.sqrt(Rt*Rt+it*it)}function en(Rt,it){return qt(Rt-Ve,it-$e)}function Gt(Rt,it){return Math.atan2($e-it,Rt-Ve)}function Ct(Rt,it){return[Rt*Math.cos(it),Rt*Math.sin(-it)]}function _t(Rt,it){if(Rt===0)return de.pathSector(2*Xe);var at=tt/Rt,Lt=it-at,xt=it+at,Zt=Math.max(0,Math.min(Rt,Ie)),Xt=Zt-Xe,Yt=Zt+Xe;return"M"+Ct(Xt,Lt)+"A"+[Xt,Xt]+" 0,0,0 "+Ct(Xt,xt)+"L"+Ct(Yt,xt)+"A"+[Yt,Yt]+" 0,0,1 "+Ct(Yt,Lt)+"Z"}function nn(Rt,it,at){if(Rt===0)return de.pathSector(2*Xe);var Lt,xt,Zt=Ct(Rt,it),Xt=Ct(Rt,at),Yt=We((Zt[0]+Xt[0])/2),Qt=We((Zt[1]+Xt[1])/2);if(Yt&&Qt){var Pt=Qt/Yt,tn=-1/Pt,Kt=Ue(Xe,Pt,Yt,Qt);Lt=Ue(tt,tn,Kt[0][0],Kt[0][1]),xt=Ue(tt,tn,Kt[1][0],Kt[1][1])}else{var fn,dn;Qt?(fn=tt,dn=Xe):(fn=Xe,dn=tt),Lt=[[Yt-fn,Qt-dn],[Yt+fn,Qt-dn]],xt=[[Yt-fn,Qt+dn],[Yt+fn,Qt+dn]]}return"M"+Lt.join("L")+"L"+xt.reverse().join("L")+"Z"}function gn(Rt,it){return it=Math.max(Math.min(it,Ie),ze),RtTe?(Rt-1&&Rt===1&&T(it,ye,[de.xaxis],[de.yaxis],de.id,It),at.indexOf("event")>-1&&x.click(ye,it,de.id)}It.prepFn=function(Rt,it,at){var Lt=ye._fullLayout.dragmode,xt=Ee.getBoundingClientRect();ye._fullLayout._calcInverseTransform(ye);var Zt=ye._fullLayout._invTransform;ae=ye._fullLayout._invScaleX,ce=ye._fullLayout._invScaleY;var Xt=O.apply3DTransform(Zt)(it-xt.left,at-xt.top);if(Ne=Xt[0],je=Xt[1],ke){var Yt=z.findPolygonOffset(Ie,Oe[0],Oe[1],ke);Ne+=Ve+Yt[0],je+=$e+Yt[1]}switch(Lt){case"zoom":It.clickFn=zt,ve||(It.moveFn=ke?bt:mn,It.doneFn=lt,function(){nt=null,ot=null,Ge=de.pathSubplot(),ht=!1;var Qt=ye._fullLayout[de.id];pt=b(Qt.bgcolor).getLuminance(),(wt=S.makeZoombox(Se,pt,De,He,Ge)).attr("fill-rule","evenodd"),Dt=S.makeCorners(Se,De,He),E(ye)}());break;case"select":case"lasso":M(Rt,it,at,It,Lt)}},A.init(It)},Y.updateRadialDrag=function(se,ae,ce){var de=this,ve=de.gd,ye=de.layers,_e=de.radius,Se=de.innerRadius,Te=de.cx,Pe=de.cy,Ie=de.radialAxis,ze=I.radialDragBoxSize,De=ze/2;if(Ie.visible){var He,Ve,$e,Oe=K(de.radialAxisAngle),ke=Ie._rl,Le=ke[0],We=ke[1],Ue=ke[ce],Ze=.75*(ke[1]-ke[0])/(1-de.getHole(ae))/_e;ce?(He=Te+(_e+De)*Math.cos(Oe),Ve=Pe-(_e+De)*Math.sin(Oe),$e="radialdrag"):(He=Te+(Se-De)*Math.cos(Oe),Ve=Pe-(Se-De)*Math.sin(Oe),$e="radialdrag-inner");var Xe,tt,Ee,Ne=S.makeRectDragger(ye,$e,"crosshair",-De,-De,ze,ze),je={element:Ne,gd:ve};se.dragmode===!1&&(je.dragmode=!1),he(c.select(Ne),Ie.visible&&Se<_e,{transform:y(He,Ve)}),je.prepFn=function(){Xe=null,tt=null,Ee=null,je.moveFn=nt,je.doneFn=ot,E(ve)},je.clampFn=function(pt,wt){return Math.sqrt(pt*pt+wt*wt)0==(ce?Ee>Le:Eev?function(R){return R<=0}:function(R){return R>=0};a.c2g=function(R){var M=a.c2l(R)-m;return(x(M)?M:0)+A},a.g2c=function(R){return a.l2c(R+m-A)},a.g2p=function(R){return R*S},a.c2p=function(R){return a.g2p(a.c2g(R))}}})(w,y);break;case"angularaxis":(function(a,u){var h=a.type;if(h==="linear"){var m=a.d2c,v=a.c2d;a.d2c=function(_,S){return function(A,x){return x==="degrees"?i(A):A}(m(_),S)},a.c2d=function(_,S){return v(function(A,x){return x==="degrees"?O(A):A}(_,S))}}a.makeCalcdata=function(_,S){var A,x,R=_[S],M=_._length,T=function(k){return a.d2c(k,_.thetaunit)};if(R)for(A=new Array(M),x=0;x0?1:0}function n(i){var O=i[0],w=i[1];if(!isFinite(O)||!isFinite(w))return[1,0];var y=(O+1)*(O+1)+w*w;return[(O*O+w*w-1)/y,2*w/y]}function c(i,O){var w=O[0],y=O[1];return[w*i.radius+i.cx,-y*i.radius+i.cy]}function b(i,O){return O*i.radius}d.exports={smith:n,reactanceArc:function(i,O,w,y){var p=c(i,n([w,O])),a=p[0],u=p[1],h=c(i,n([y,O])),m=h[0],v=h[1];if(O===0)return["M"+a+","+u,"L"+m+","+v].join(" ");var _=b(i,1/Math.abs(O));return["M"+a+","+u,"A"+_+","+_+" 0 0,"+(O<0?1:0)+" "+m+","+v].join(" ")},resistanceArc:function(i,O,w,y){var p=b(i,1/(O+1)),a=c(i,n([O,w])),u=a[0],h=a[1],m=c(i,n([O,y])),v=m[0],_=m[1];if(l(w)!==l(y)){var S=c(i,n([O,0]));return["M"+u+","+h,"A"+p+","+p+" 0 0,"+(00){for(var y=[],p=0;p=L&&(k.min=0,I.min=0,z.min=0,S.aaxis&&delete S.aaxis.min,S.baxis&&delete S.baxis.min,S.caxis&&delete S.caxis.min)}function _(S,A,x,R){var M=h[A._name];function T(I,z){return i.coerce(S,A,M,I,z)}T("uirevision",R.uirevision),A.type="linear";var E=T("color"),C=E!==M.color.dflt?E:x.font.color,L=A._name.charAt(0).toUpperCase(),D="Component "+L,k=T("title.text",D);A._hovertitle=k===D?k:L,i.coerceFont(T,"title.font",{family:x.font.family,size:i.bigFont(x.font.size),color:C}),T("min"),a(S,A,T,"linear"),y(S,A,T,"linear"),w(S,A,T,"linear",{noAutotickangles:!0}),p(S,A,T,{outerTicks:!0}),T("showticklabels")&&(i.coerceFont(T,"tickfont",{family:x.font.family,size:x.font.size,color:C}),T("tickangle"),T("tickformat")),u(S,A,T,{dfltColor:E,bgColor:x.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),T("hoverformat"),T("layer")}d.exports=function(S,A,x){O(S,A,x,{type:"ternary",attributes:h,handleDefaults:v,font:A.font,paper_bgcolor:A.paper_bgcolor})}},24696:function(d,l,n){var c=n(33428),b=n(49760),i=n(24040),O=n(3400),w=O.strTranslate,y=O._,p=n(76308),a=n(43616),u=n(78344),h=n(92880).extendFlat,m=n(7316),v=n(54460),_=n(86476),S=n(93024),A=n(72760),x=A.freeMode,R=A.rectMode,M=n(81668),T=n(22676).prepSelect,E=n(22676).selectOnClick,C=n(22676).clearOutline,L=n(22676).clearSelectionsCache,D=n(33816);function k(W,K){this.id=W.id,this.graphDiv=W.graphDiv,this.init(K),this.makeFramework(K),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}d.exports=k;var I=k.prototype;I.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},I.plot=function(W,K){var oe=this,q=K[oe.id],Y=K._size;oe._hasClipOnAxisFalse=!1;for(var ee=0;eez*Se?Y=(ee=Se)*z:ee=(Y=_e)/z,me=ve*Y/_e,he=ye*ee/Se,oe=K.l+K.w*ce-Y/2,q=K.t+K.h*(1-de)-ee/2,se.x0=oe,se.y0=q,se.w=Y,se.h=ee,se.sum=Te,se.xaxis={type:"linear",range:[Pe+2*ze-Te,Te-Pe-2*Ie],domain:[ce-me/2,ce+me/2],_id:"x"},u(se.xaxis,se.graphDiv._fullLayout),se.xaxis.setScale(),se.xaxis.isPtWithinRange=function(Xe){return Xe.a>=se.aaxis.range[0]&&Xe.a<=se.aaxis.range[1]&&Xe.b>=se.baxis.range[1]&&Xe.b<=se.baxis.range[0]&&Xe.c>=se.caxis.range[1]&&Xe.c<=se.caxis.range[0]},se.yaxis={type:"linear",range:[Pe,Te-Ie-ze],domain:[de-he/2,de+he/2],_id:"y"},u(se.yaxis,se.graphDiv._fullLayout),se.yaxis.setScale(),se.yaxis.isPtWithinRange=function(){return!0};var De=se.yaxis.domain[0],He=se.aaxis=h({},W.aaxis,{range:[Pe,Te-Ie-ze],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[De,De+he*z],anchor:"free",position:0,_id:"y",_length:Y});u(He,se.graphDiv._fullLayout),He.setScale();var Ve=se.baxis=h({},W.baxis,{range:[Te-Pe-ze,Ie],side:"bottom",domain:se.xaxis.domain,anchor:"free",position:0,_id:"x",_length:Y});u(Ve,se.graphDiv._fullLayout),Ve.setScale();var $e=se.caxis=h({},W.caxis,{range:[Te-Pe-Ie,ze],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[De,De+he*z],anchor:"free",position:0,_id:"y",_length:Y});u($e,se.graphDiv._fullLayout),$e.setScale();var Oe="M"+oe+","+(q+ee)+"h"+Y+"l-"+Y/2+",-"+ee+"Z";se.clipDef.select("path").attr("d",Oe),se.layers.plotbg.select("path").attr("d",Oe);var ke="M0,"+ee+"h"+Y+"l-"+Y/2+",-"+ee+"Z";se.clipDefRelative.select("path").attr("d",ke);var Le=w(oe,q);se.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Le),se.clipDefRelative.select("path").attr("transform",null);var We=w(oe-Ve._offset,q+ee);se.layers.baxis.attr("transform",We),se.layers.bgrid.attr("transform",We);var Ue=w(oe+Y/2,q)+"rotate(30)"+w(0,-He._offset);se.layers.aaxis.attr("transform",Ue),se.layers.agrid.attr("transform",Ue);var Ze=w(oe+Y/2,q)+"rotate(-30)"+w(0,-$e._offset);se.layers.caxis.attr("transform",Ze),se.layers.cgrid.attr("transform",Ze),se.drawAxes(!0),se.layers.aline.select("path").attr("d",He.showline?"M"+oe+","+(q+ee)+"l"+Y/2+",-"+ee:"M0,0").call(p.stroke,He.linecolor||"#000").style("stroke-width",(He.linewidth||0)+"px"),se.layers.bline.select("path").attr("d",Ve.showline?"M"+oe+","+(q+ee)+"h"+Y:"M0,0").call(p.stroke,Ve.linecolor||"#000").style("stroke-width",(Ve.linewidth||0)+"px"),se.layers.cline.select("path").attr("d",$e.showline?"M"+(oe+Y/2)+","+q+"l"+Y/2+","+ee:"M0,0").call(p.stroke,$e.linecolor||"#000").style("stroke-width",($e.linewidth||0)+"px"),se.graphDiv._context.staticPlot||se.initInteractions(),a.setClipUrl(se.layers.frontplot,se._hasClipOnAxisFalse?null:se.clipId,se.graphDiv)},I.drawAxes=function(W){var K=this,oe=K.graphDiv,q=K.id.substr(7)+"title",Y=K.layers,ee=K.aaxis,me=K.baxis,he=K.caxis;if(K.drawAx(ee),K.drawAx(me),K.drawAx(he),W){var se=Math.max(ee.showticklabels?ee.tickfont.size/2:0,(he.showticklabels?.75*he.tickfont.size:0)+(he.ticks==="outside"?.87*he.ticklen:0)),ae=(me.showticklabels?me.tickfont.size:0)+(me.ticks==="outside"?me.ticklen:0)+3;Y["a-title"]=M.draw(oe,"a"+q,{propContainer:ee,propName:K.id+".aaxis.title",placeholder:y(oe,"Click to enter Component A title"),attributes:{x:K.x0+K.w/2,y:K.y0-ee.title.font.size/3-se,"text-anchor":"middle"}}),Y["b-title"]=M.draw(oe,"b"+q,{propContainer:me,propName:K.id+".baxis.title",placeholder:y(oe,"Click to enter Component B title"),attributes:{x:K.x0-ae,y:K.y0+K.h+.83*me.title.font.size+ae,"text-anchor":"middle"}}),Y["c-title"]=M.draw(oe,"c"+q,{propContainer:he,propName:K.id+".caxis.title",placeholder:y(oe,"Click to enter Component C title"),attributes:{x:K.x0+K.w+ae,y:K.y0+K.h+.83*he.title.font.size+ae,"text-anchor":"middle"}})}},I.drawAx=function(W){var K,oe=this,q=oe.graphDiv,Y=W._name,ee=Y.charAt(0),me=W._id,he=oe.layers[Y],se=ee+"tickLayout",ae=(K=W).ticks+String(K.ticklen)+String(K.showticklabels);oe[se]!==ae&&(he.selectAll("."+me+"tick").remove(),oe[se]=ae),W.setScale();var ce=v.calcTicks(W),de=v.clipEnds(W,ce),ve=v.makeTransTickFn(W),ye=v.getTickSigns(W)[2],_e=O.deg2rad(30),Se=ye*(W.linewidth||1)/2,Te=ye*W.ticklen,Pe=oe.w,Ie=oe.h,ze=ee==="b"?"M0,"+Se+"l"+Math.sin(_e)*Te+","+Math.cos(_e)*Te:"M"+Se+",0l"+Math.cos(_e)*Te+","+-Math.sin(_e)*Te,De={a:"M0,0l"+Ie+",-"+Pe/2,b:"M0,0l-"+Pe/2+",-"+Ie,c:"M0,0l-"+Ie+","+Pe/2}[ee];v.drawTicks(q,W,{vals:W.ticks==="inside"?de:ce,layer:he,path:ze,transFn:ve,crisp:!1}),v.drawGrid(q,W,{vals:de,layer:oe.layers[ee+"grid"],path:De,transFn:ve,crisp:!1}),v.drawLabels(q,W,{vals:ce,layer:he,transFn:ve,labelFns:v.makeLabelFns(W,0,30)})};var $=D.MINZOOM/2+.87,Q="m-0.87,.5h"+$+"v3h-"+($+5.2)+"l"+($/2+2.6)+",-"+(.87*$+4.5)+"l2.6,1.5l-"+$/2+","+.87*$+"Z",j="m0.87,.5h-"+$+"v3h"+($+5.2)+"l-"+($/2+2.6)+",-"+(.87*$+4.5)+"l-2.6,1.5l"+$/2+","+.87*$+"Z",U="m0,1l"+$/2+","+.87*$+"l2.6,-1.5l-"+($/2+2.6)+",-"+(.87*$+4.5)+"l-"+($/2+2.6)+","+(.87*$+4.5)+"l2.6,1.5l"+$/2+",-"+.87*$+"Z",X=!0;function te(W){c.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}I.clearOutline=function(){L(this.dragOptions),C(this.dragOptions.gd)},I.initInteractions=function(){var W,K,oe,q,Y,ee,me,he,se,ae,ce,de,ve=this,ye=ve.layers.plotbg.select("path").node(),_e=ve.graphDiv,Se=_e._fullLayout._zoomlayer;function Te(ke){var Le={};return Le[ve.id+".aaxis.min"]=ke.a,Le[ve.id+".baxis.min"]=ke.b,Le[ve.id+".caxis.min"]=ke.c,Le}function Pe(ke,Le){var We=_e._fullLayout.clickmode;te(_e),ke===2&&(_e.emit("plotly_doubleclick",null),i.call("_guiRelayout",_e,Te({a:0,b:0,c:0}))),We.indexOf("select")>-1&&ke===1&&E(Le,_e,[ve.xaxis],[ve.yaxis],ve.id,ve.dragOptions),We.indexOf("event")>-1&&S.click(_e,Le,ve.id)}function Ie(ke,Le){return 1-Le/ve.h}function ze(ke,Le){return 1-(ke+(ve.h-Le)/Math.sqrt(3))/ve.w}function De(ke,Le){return(ke-(ve.h-Le)/Math.sqrt(3))/ve.w}function He(ke,Le){var We=oe+ke*W,Ue=q+Le*K,Ze=Math.max(0,Math.min(1,Ie(0,q),Ie(0,Ue))),Xe=Math.max(0,Math.min(1,ze(oe,q),ze(We,Ue))),tt=Math.max(0,Math.min(1,De(oe,q),De(We,Ue))),Ee=(Ze/2+tt)*ve.w,Ne=(1-Ze/2-Xe)*ve.w,je=(Ee+Ne)/2,nt=Ne-Ee,ot=(1-Ze)*ve.h,Ge=ot-nt/z;nt.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),de.transition().style("opacity",1).duration(200),ae=!0),_e.emit("plotly_relayouting",Te(me))}function Ve(){te(_e),me!==Y&&(i.call("_guiRelayout",_e,Te(me)),X&&_e.data&&_e._context.showTips&&(O.notifier(y(_e,"Double-click to zoom back out"),"long"),X=!1))}function $e(ke,Le){var We=ke/ve.xaxis._m,Ue=Le/ve.yaxis._m,Ze=[(me={a:Y.a-Ue,b:Y.b+(We+Ue)/2,c:Y.c-(We-Ue)/2}).a,me.b,me.c].sort(O.sorterAsc),Xe=Ze.indexOf(me.a),tt=Ze.indexOf(me.b),Ee=Ze.indexOf(me.c);Ze[0]<0&&(Ze[1]+Ze[0]/2<0?(Ze[2]+=Ze[0]+Ze[1],Ze[0]=Ze[1]=0):(Ze[2]+=Ze[0]/2,Ze[1]+=Ze[0]/2,Ze[0]=0),me={a:Ze[Xe],b:Ze[tt],c:Ze[Ee]},Le=(Y.a-me.a)*ve.yaxis._m,ke=(Y.c-me.c-Y.b+me.b)*ve.xaxis._m);var Ne=w(ve.x0+ke,ve.y0+Le);ve.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ne);var je=w(-ke,-Le);ve.clipDefRelative.select("path").attr("transform",je),ve.aaxis.range=[me.a,ve.sum-me.b-me.c],ve.baxis.range=[ve.sum-me.a-me.c,me.b],ve.caxis.range=[ve.sum-me.a-me.b,me.c],ve.drawAxes(!1),ve._hasClipOnAxisFalse&&ve.plotContainer.select(".scatterlayer").selectAll(".trace").call(a.hideOutsideRangePoints,ve),_e.emit("plotly_relayouting",Te(me))}function Oe(){i.call("_guiRelayout",_e,Te(me))}this.dragOptions={element:ye,gd:_e,plotinfo:{id:ve.id,domain:_e._fullLayout[ve.id].domain,xaxis:ve.xaxis,yaxis:ve.yaxis},subplot:ve.id,prepFn:function(ke,Le,We){ve.dragOptions.xaxes=[ve.xaxis],ve.dragOptions.yaxes=[ve.yaxis],W=_e._fullLayout._invScaleX,K=_e._fullLayout._invScaleY;var Ue=ve.dragOptions.dragmode=_e._fullLayout.dragmode;x(Ue)?ve.dragOptions.minDrag=1:ve.dragOptions.minDrag=void 0,Ue==="zoom"?(ve.dragOptions.moveFn=He,ve.dragOptions.clickFn=Pe,ve.dragOptions.doneFn=Ve,function(Ze,Xe,tt){var Ee=ye.getBoundingClientRect();oe=Xe-Ee.left,q=tt-Ee.top,_e._fullLayout._calcInverseTransform(_e);var Ne=_e._fullLayout._invTransform,je=O.apply3DTransform(Ne)(oe,q);oe=je[0],q=je[1],Y={a:ve.aaxis.range[0],b:ve.baxis.range[1],c:ve.caxis.range[1]},me=Y,ee=ve.aaxis.range[1]-Y.a,he=b(ve.graphDiv._fullLayout[ve.id].bgcolor).getLuminance(),se="M0,"+ve.h+"L"+ve.w/2+", 0L"+ve.w+","+ve.h+"Z",ae=!1,ce=Se.append("path").attr("class","zoombox").attr("transform",w(ve.x0,ve.y0)).style({fill:he>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",se),de=Se.append("path").attr("class","zoombox-corners").attr("transform",w(ve.x0,ve.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),ve.clearOutline(_e)}(0,Le,We)):Ue==="pan"?(ve.dragOptions.moveFn=$e,ve.dragOptions.clickFn=Pe,ve.dragOptions.doneFn=Oe,Y={a:ve.aaxis.range[0],b:ve.baxis.range[1],c:ve.caxis.range[1]},me=Y,ve.clearOutline(_e)):(R(Ue)||x(Ue))&&T(ke,Le,We,ve.dragOptions,Ue)}},ye.onmousemove=function(ke){S.hover(_e,ke,ve.id),_e._fullLayout._lasthover=ye,_e._fullLayout._hoversubplot=ve.id},ye.onmouseout=function(ke){_e._dragging||_.unhover(_e,ke)},_.init(this.dragOptions)}},24040:function(d,l,n){var c=n(24248),b=n(16628),i=n(52416),O=n(63620),w=n(52200).addStyleRule,y=n(92880),p=n(45464),a=n(64859),u=y.extendFlat,h=y.extendDeepAll;function m(E){var C=E.name,L=E.categories,D=E.meta;if(l.modules[C])c.log("Type "+C+" already registered");else{l.subplotsRegistry[E.basePlotModule.name]||function(X){var te=X.name;if(l.subplotsRegistry[te])c.log("Plot type "+te+" already registered.");else for(var W in A(X),l.subplotsRegistry[te]=X,l.componentsRegistry)M(W,X.name)}(E.basePlotModule);for(var k={},I=0;I-1&&(_[A[a]].title={text:""});for(a=0;a")!==-1?"":I.html($).text()});return I.remove(),z}(D)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(a,"'"),b.isIE()&&(D=(D=(D=D.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),D}},84664:function(d,l,n){var c=n(3400);d.exports=function(b,i){for(var O=0;Oz+k||!c(I))}for(var Q=0;Q=0)return _}else if(typeof _=="string"&&(_=_.trim()).slice(-1)==="%"&&c(_.slice(0,-1))&&(_=+_.slice(0,-1))>=0)return _+"%"}function v(_,S,A,x,R,M){var T=(M=M||{}).moduleHasSelected!==!1,E=M.moduleHasUnselected!==!1,C=M.moduleHasConstrain!==!1,L=M.moduleHasCliponaxis!==!1,D=M.moduleHasTextangle!==!1,k=M.moduleHasInsideanchor!==!1,I=!!M.hasPathbar,z=Array.isArray(R)||R==="auto",$=z||R==="inside",Q=z||R==="outside";if($||Q){var j=h(x,"textfont",A.font),U=b.extendFlat({},j),X=!(_.textfont&&_.textfont.color);if(X&&delete U.color,h(x,"insidetextfont",U),I){var te=b.extendFlat({},j);X&&delete te.color,h(x,"pathbar.textfont",te)}Q&&h(x,"outsidetextfont",j),T&&x("selected.textfont.color"),E&&x("unselected.textfont.color"),C&&x("constraintext"),L&&x("cliponaxis"),D&&x("textangle"),x("texttemplate")}$&&k&&x("insidetextanchor")}d.exports={supplyDefaults:function(_,S,A,x){function R(C,L){return b.coerce(_,S,u,C,L)}if(w(_,S,x,R)){y(_,S,x,R),R("xhoverformat"),R("yhoverformat"),R("orientation",S.x&&!S.y?"h":"v"),R("base"),R("offset"),R("width"),R("text"),R("hovertext"),R("hovertemplate");var M=R("textposition");v(_,0,x,R,M,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),p(_,S,R,A,x);var T=(S.marker.line||{}).color,E=O.getComponentMethod("errorbars","supplyDefaults");E(_,S,T||i.defaultLine,{axis:"y"}),E(_,S,T||i.defaultLine,{axis:"x",inherit:"y"}),b.coerceSelectionMarkerOpacity(S,R)}else S.visible=!1},crossTraceDefaults:function(_,S){var A,x;function R(E,C){return b.coerce(x._input,x,u,E,C)}for(var M=0;M<_.length;M++)if((x=_[M]).type==="bar"){A=x._input;var T=R("marker.cornerradius",S.barcornerradius);x.marker&&(x.marker.cornerradius=m(T)),S.barmode==="group"&&a(A,x,S,R)}},handleText:v,validateCornerradius:m}},52160:function(d){d.exports=function(l,n,c){return l.x="xVal"in n?n.xVal:n.x,l.y="yVal"in n?n.yVal:n.y,n.xa&&(l.xaxis=n.xa),n.ya&&(l.yaxis=n.ya),c.orientation==="h"?(l.label=l.y,l.value=l.x):(l.label=l.x,l.value=l.y),l}},60444:function(d,l,n){var c=n(38248),b=n(49760),i=n(3400).isArrayOrTypedArray;l.coerceString=function(O,w,y){if(typeof w=="string"){if(w||!O.noBlank)return w}else if((typeof w=="number"||w===!0)&&!O.strict)return String(w);return y!==void 0?y:O.dflt},l.coerceNumber=function(O,w,y){if(c(w)){w=+w;var p=O.min,a=O.max;if(!(p!==void 0&&wa))return w}return y!==void 0?y:O.dflt},l.coerceColor=function(O,w,y){return b(w).isValid()?w:y!==void 0?y:O.dflt},l.coerceEnumerated=function(O,w,y){return O.coerceNumber&&(w=+w),O.values.indexOf(w)!==-1?w:y!==void 0?y:O.dflt},l.getValue=function(O,w){var y;return i(O)?w0?Te+=Pe:x<0&&(Te-=Pe)}return Te}function he(Se){var Te=x,Pe=Se.b,Ie=me(Se);return c.inbox(Pe-Te,Ie-Te,$+(Ie-Te)/(Ie-Pe)-1)}var se=h[R+"a"],ae=h[M+"a"];C=Math.abs(se.r2c(se.range[1])-se.r2c(se.range[0]));var ce=c.getDistanceFunction(_,T,E,function(Se){return(T(Se)+E(Se))/2});if(c.getClosest(L,ce,h),h.index!==!1&&L[h.index].p!==p){U||(oe=function(Se){return Math.min(X(Se),Se.p-k.bargroupwidth/2)},q=function(Se){return Math.max(te(Se),Se.p+k.bargroupwidth/2)});var de=L[h.index],ve=D.base?de.b+de.s:de.s;h[M+"0"]=h[M+"1"]=ae.c2p(de[M],!0),h[M+"LabelVal"]=ve;var ye=k.extents[k.extents.round(de.p)];h[R+"0"]=se.c2p(I?oe(de):ye[0],!0),h[R+"1"]=se.c2p(I?q(de):ye[1],!0);var _e=de.orig_p!==void 0;return h[R+"LabelVal"]=_e?de.orig_p:de.p,h.labelLabel=y(se,h[R+"LabelVal"],D[R+"hoverformat"]),h.valueLabel=y(ae,h[M+"LabelVal"],D[M+"hoverformat"]),h.baseLabel=y(ae,de.b,D[M+"hoverformat"]),h.spikeDistance=(function(Se){var Te=x,Pe=Se.b,Ie=me(Se);return c.inbox(Pe-Te,Ie-Te,Q+(Ie-Te)/(Ie-Pe)-1)}(de)+function(Se){return Y(X(Se),te(Se),Q)}(de))/2,h[R+"Spike"]=se.c2p(de.p,!0),O(de,D,h),h.hovertemplate=D.hovertemplate,h}}function u(h,m){var v=m.mcc||h.marker.color,_=m.mlcc||h.marker.line.color,S=w(h,m);return i.opacity(v)?v:i.opacity(_)&&S?_:void 0}d.exports={hoverPoints:function(h,m,v,_,S){var A=a(h,m,v,_,S);if(A){var x=A.cd,R=x[0].trace,M=x[A.index];return A.color=u(R,M),b.getComponentMethod("errorbars","hoverInfo")(M,R,A),[A]}},hoverOnBars:a,getTraceColor:u}},51132:function(d,l,n){d.exports={attributes:n(20832),layoutAttributes:n(39324),supplyDefaults:n(31508).supplyDefaults,crossTraceDefaults:n(31508).crossTraceDefaults,supplyLayoutDefaults:n(37156),calc:n(71820),crossTraceCalc:n(96376).crossTraceCalc,colorbar:n(5528),arraysToCalcdata:n(84664),plot:n(98184).plot,style:n(60100).style,styleOnSelect:n(60100).styleOnSelect,hoverPoints:n(63400).hoverPoints,eventData:n(52160),selectPoints:n(45784),moduleType:"trace",name:"bar",basePlotModule:n(57952),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},39324:function(d){d.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}},37156:function(d,l,n){var c=n(24040),b=n(54460),i=n(3400),O=n(39324),w=n(31508).validateCornerradius;d.exports=function(y,p,a){function u(T,E){return i.coerce(y,p,O,T,E)}for(var h=!1,m=!1,v=!1,_={},S=u("barmode"),A=0;A0)-(U<0)}function D(U,X){return U0}function z(U,X,te,W,K){return!(U<0||X<0)&&(te<=U&&W<=X||te<=X&&W<=U||(K?U>=te*(X/W):X>=W*(U/te)))}function $(U){return U==="auto"?0:U}function Q(U,X){var te=Math.PI/180*X,W=Math.abs(Math.sin(te)),K=Math.abs(Math.cos(te));return{x:U.width*K+U.height*W,y:U.width*W+U.height*K}}function j(U,X,te,W,K,oe){var q=!!oe.isHorizontal,Y=!!oe.constrained,ee=oe.angle||0,me=oe.anchor,he=me==="end",se=me==="start",ae=((oe.leftToRight||0)+1)/2,ce=1-ae,de=oe.hasB,ve=oe.r,ye=oe.overhead,_e=K.width,Se=K.height,Te=Math.abs(X-U),Pe=Math.abs(W-te),Ie=Te>2*T&&Pe>2*T?T:0;Te-=2*Ie,Pe-=2*Ie;var ze=$(ee);ee!=="auto"||_e<=Te&&Se<=Pe||!(_e>Te||Se>Pe)||(_e>Pe||Se>Te)&&_eT){var $e=function(Ee,Ne,je,nt,ot,Ge,ht,pt,wt){var Dt,It,qt,en,Gt=Math.max(0,Math.abs(Ne-Ee)-2*T),Ct=Math.max(0,Math.abs(nt-je)-2*T),_t=Ge-T,nn=ht?_t-Math.sqrt(_t*_t-(_t-ht)*(_t-ht)):_t,gn=wt?2*_t:pt?_t-ht:2*nn,bn=wt?2*_t:pt?2*nn:_t-ht;return ot.y/ot.x>=Ct/(Gt-gn)?en=Ct/ot.y:ot.y/ot.x<=(Ct-bn)/Gt?en=Gt/ot.x:!wt&&pt?(Dt=ot.x*ot.x+ot.y*ot.y/4,qt=(Gt-_t)*(Gt-_t)+(Ct/2-_t)*(Ct/2-_t)-_t*_t,en=(-(It=-2*ot.x*(Gt-_t)-ot.y*(Ct/2-_t))+Math.sqrt(It*It-4*Dt*qt))/(2*Dt)):wt?(Dt=(ot.x*ot.x+ot.y*ot.y)/4,qt=(Gt/2-_t)*(Gt/2-_t)+(Ct/2-_t)*(Ct/2-_t)-_t*_t,en=(-(It=-ot.x*(Gt/2-_t)-ot.y*(Ct/2-_t))+Math.sqrt(It*It-4*Dt*qt))/(2*Dt)):(Dt=ot.x*ot.x/4+ot.y*ot.y,qt=(Gt/2-_t)*(Gt/2-_t)+(Ct-_t)*(Ct-_t)-_t*_t,en=(-(It=-ot.x*(Gt/2-_t)-2*ot.y*(Ct-_t))+Math.sqrt(It*It-4*Dt*qt))/(2*Dt)),{scale:en=Math.min(1,en),pad:pt?Math.max(0,_t-Math.sqrt(Math.max(0,_t*_t-(_t-(Ct-ot.y*en)/2)*(_t-(Ct-ot.y*en)/2)))-ht):Math.max(0,_t-Math.sqrt(Math.max(0,_t*_t-(_t-(Gt-ot.x*en)/2)*(_t-(Gt-ot.x*en)/2)))-ht)}}(U,X,te,W,Ve,ve,ye,q,de);De=$e.scale,He=$e.pad}else De=1,Y&&(De=Math.min(1,Te/Ve.x,Pe/Ve.y)),He=0;var Oe=K.left*ce+K.right*ae,ke=(K.top+K.bottom)/2,Le=(U+T)*ce+(X-T)*ae,We=(te+W)/2,Ue=0,Ze=0;if(se||he){var Xe=(q?Ve.x:Ve.y)/2;ve&&(he||de)&&(Ie+=He);var tt=q?D(U,X):D(te,W);q?se?(Le=U+tt*Ie,Ue=-tt*Xe):(Le=X-tt*Ie,Ue=tt*Xe):se?(We=te+tt*Ie,Ze=-tt*Xe):(We=W-tt*Ie,Ze=tt*Xe)}return{textX:Oe,textY:ke,targetX:Le,targetY:We,anchorX:Ue,anchorY:Ze,scale:De,rotate:ze}}d.exports={plot:function(U,X,te,W,K,oe){var q=X.xaxis,Y=X.yaxis,ee=U._fullLayout,me=U._context.staticPlot;K||(K={mode:ee.barmode,norm:ee.barmode,gap:ee.bargap,groupgap:ee.bargroupgap},m("bar",ee));var he=i.makeTraceGroups(W,te,"trace bars").each(function(se){var ae=c.select(this),ce=se[0].trace,de=se[0].t,ve=ce.type==="waterfall",ye=ce.type==="funnel",_e=ce.type==="histogram",Se=ce.type==="bar",Te=Se||ye,Pe=0;ve&&ce.connector.visible&&ce.connector.mode==="between"&&(Pe=ce.connector.line.width/2);var Ie=ce.orientation==="h",ze=I(K),De=i.ensureSingle(ae,"g","points"),He=C(ce),Ve=De.selectAll("g.point").data(i.identity,He);Ve.enter().append("g").classed("point",!0),Ve.exit().remove(),Ve.each(function(Oe,ke){var Le,We,Ue=c.select(this),Ze=function(Rt,it,at,Lt){var xt=[],Zt=[],Xt=Lt?it:at,Yt=Lt?at:it;return xt[0]=Xt.c2p(Rt.s0,!0),Zt[0]=Yt.c2p(Rt.p0,!0),xt[1]=Xt.c2p(Rt.s1,!0),Zt[1]=Yt.c2p(Rt.p1,!0),Lt?[xt,Zt]:[Zt,xt]}(Oe,q,Y,Ie),Xe=Ze[0][0],tt=Ze[0][1],Ee=Ze[1][0],Ne=Ze[1][1],je=(Ie?tt-Xe:Ne-Ee)==0;if(je&&Te&&_.getLineWidth(ce,Oe)&&(je=!1),je||(je=!(b(Xe)&&b(tt)&&b(Ee)&&b(Ne))),Oe.isBlank=je,je&&(Ie?tt=Xe:Ne=Ee),Pe&&!je&&(Ie?(Xe-=D(Xe,tt)*Pe,tt+=D(Xe,tt)*Pe):(Ee-=D(Ee,Ne)*Pe,Ne+=D(Ee,Ne)*Pe)),ce.type==="waterfall"){if(!je){var nt=ce[Oe.dir].marker;Le=nt.line.width,We=nt.color}}else Le=_.getLineWidth(ce,Oe),We=Oe.mc||ce.marker.color;function ot(Rt){var it=c.round(Le/2%1,2);return K.gap===0&&K.groupgap===0?c.round(Math.round(Rt)-it,2):Rt}var Ge=w.opacity(We)<1||Le>.01?ot:function(Rt,it,at){return at&&Rt===it?Rt:Math.abs(Rt-it)>=2?ot(Rt):Rt>it?Math.ceil(Rt):Math.floor(Rt)};U._context.staticPlot||(Xe=Ge(Xe,tt,Ie),tt=Ge(tt,Xe,Ie),Ee=Ge(Ee,Ne,!Ie),Ne=Ge(Ne,Ee,!Ie));var ht,pt=Ie?q.c2p:Y.c2p;ht=Oe.s0>0?Oe._sMax:Oe.s0<0?Oe._sMin:Oe.s1>0?Oe._sMax:Oe._sMin;var wt,Dt,It=Se||_e?function(Rt,it){if(!Rt)return 0;var at,Lt=Math.abs(Ie?Ne-Ee:tt-Xe),xt=Math.abs(Ie?tt-Xe:Ne-Ee),Zt=Ge(Math.abs(pt(ht,!0)-pt(0,!0))),Xt=Oe.hasB?Math.min(Lt/2,xt/2):Math.min(Lt/2,Zt);return at=it==="%"?Lt*(Math.min(50,Rt)/100):Rt,Ge(Math.max(Math.min(at,Xt),0))}(de.cornerradiusvalue,de.cornerradiusform):0,qt="M"+Xe+","+Ee+"V"+Ne+"H"+tt+"V"+Ee+"Z",en=0;if(It&&Oe.s){var Gt=L(Oe.s0)===0||L(Oe.s)===L(Oe.s0)?Oe.s1:Oe.s0;if((en=Ge(Oe.hasB?0:Math.abs(pt(ht,!0)-pt(Gt,!0))))0?Math.sqrt(en*(2*It-en)):0,mn=Ct>0?Math.max:Math.min;wt="M"+Xe+","+Ee+"V"+(Ne-gn*_t)+"H"+mn(tt-(It-en)*Ct,Xe)+"A "+It+","+It+" 0 0 "+nn+" "+tt+","+(Ne-It*_t-bn)+"V"+(Ee+It*_t+bn)+"A "+It+","+It+" 0 0 "+nn+" "+mn(tt-(It-en)*Ct,Xe)+","+(Ee+gn*_t)+"Z"}else if(Oe.hasB)wt="M"+(Xe+It*Ct)+","+Ee+"A "+It+","+It+" 0 0 "+nn+" "+Xe+","+(Ee+It*_t)+"V"+(Ne-It*_t)+"A "+It+","+It+" 0 0 "+nn+" "+(Xe+It*Ct)+","+Ne+"H"+(tt-It*Ct)+"A "+It+","+It+" 0 0 "+nn+" "+tt+","+(Ne-It*_t)+"V"+(Ee+It*_t)+"A "+It+","+It+" 0 0 "+nn+" "+(tt-It*Ct)+","+Ee+"Z";else{var vt=(Dt=Math.abs(Ne-Ee)+en)0?Math.sqrt(en*(2*It-en)):0,lt=_t>0?Math.max:Math.min;wt="M"+(Xe+vt*Ct)+","+Ee+"V"+lt(Ne-(It-en)*_t,Ee)+"A "+It+","+It+" 0 0 "+nn+" "+(Xe+It*Ct-bt)+","+Ne+"H"+(tt-It*Ct+bt)+"A "+It+","+It+" 0 0 "+nn+" "+(tt-vt*Ct)+","+lt(Ne-(It-en)*_t,Ee)+"V"+Ee+"Z"}}else wt=qt}else wt=qt;var yt=k(i.ensureSingle(Ue,"path"),ee,K,oe);if(yt.style("vector-effect",me?"none":"non-scaling-stroke").attr("d",isNaN((tt-Xe)*(Ne-Ee))||je&&U._context.staticPlot?"M0,0Z":wt).call(y.setClipUrl,X.layerClipId,U),!ee.uniformtext.mode&&ze){var zt=y.makePointStyleFns(ce);y.singlePointStyle(Oe,yt,ce,zt,U)}(function(Rt,it,at,Lt,xt,Zt,Xt,Yt,Qt,Pt,tn,Kt,fn){var dn,vn=it.xaxis,Nn=it.yaxis,er=Rt._fullLayout;function En(bo,Bn,hr){return i.ensureSingle(bo,"text").text(Bn).attr({class:"bartext bartext-"+dn,"text-anchor":"middle","data-notex":1}).call(y.font,hr).call(O.convertToTspans,Rt)}var In=Lt[0].trace,jn=In.orientation==="h",xr=function(bo,Bn,hr,hn,zn){var Zn,yr=Bn[0].trace;return Zn=yr.texttemplate?function(gr,vr,nr,Qn,Hn){var tr=vr[0].trace,cr=i.castOption(tr,nr,"texttemplate");if(!cr)return"";var Lr,Er,Vr,to,_o=tr.type==="histogram",fr=tr.type==="waterfall",Eo=tr.type==="funnel",ao=tr.orientation==="h";function co(ra){return a(to,to.c2l(ra),!0).text}ao?(Lr="y",Er=Hn,Vr="x",to=Qn):(Lr="x",Er=Qn,Vr="y",to=Hn);var Go,po=vr[nr],qo={};qo.label=po.p,qo.labelLabel=qo[Lr+"Label"]=(Go=po.p,a(Er,Er.c2l(Go),!0).text);var Ao=i.castOption(tr,po.i,"text");(Ao===0||Ao)&&(qo.text=Ao),qo.value=po.s,qo.valueLabel=qo[Vr+"Label"]=co(po.s);var oi={};M(oi,tr,po.i),(_o||oi.x===void 0)&&(oi.x=ao?qo.value:qo.label),(_o||oi.y===void 0)&&(oi.y=ao?qo.label:qo.value),(_o||oi.xLabel===void 0)&&(oi.xLabel=ao?qo.valueLabel:qo.labelLabel),(_o||oi.yLabel===void 0)&&(oi.yLabel=ao?qo.labelLabel:qo.valueLabel),fr&&(qo.delta=+po.rawS||po.s,qo.deltaLabel=co(qo.delta),qo.final=po.v,qo.finalLabel=co(qo.final),qo.initial=qo.final-qo.delta,qo.initialLabel=co(qo.initial)),Eo&&(qo.value=po.s,qo.valueLabel=co(qo.value),qo.percentInitial=po.begR,qo.percentInitialLabel=i.formatPercent(po.begR),qo.percentPrevious=po.difR,qo.percentPreviousLabel=i.formatPercent(po.difR),qo.percentTotal=po.sumR,qo.percenTotalLabel=i.formatPercent(po.sumR));var ko=i.castOption(tr,po.i,"customdata");return ko&&(qo.customdata=ko),i.texttemplateString(cr,qo,gr._d3locale,oi,qo,tr._meta||{})}(bo,Bn,hr,hn,zn):yr.textinfo?function(gr,vr,nr,Qn){var Hn=gr[0].trace,tr=Hn.orientation==="h",cr=Hn.type==="waterfall",Lr=Hn.type==="funnel";function Er(ko){return a(tr?nr:Qn,+ko,!0).text}var Vr,to,_o=Hn.textinfo,fr=gr[vr],Eo=_o.split("+"),ao=[],co=function(ko){return Eo.indexOf(ko)!==-1};if(co("label")&&ao.push((to=gr[vr].p,a(tr?Qn:nr,to,!0).text)),co("text")&&((Vr=i.castOption(Hn,fr.i,"text"))===0||Vr)&&ao.push(Vr),cr){var Go=+fr.rawS||fr.s,po=fr.v,qo=po-Go;co("initial")&&ao.push(Er(qo)),co("delta")&&ao.push(Er(Go)),co("final")&&ao.push(Er(po))}if(Lr){co("value")&&ao.push(Er(fr.s));var Ao=0;co("percent initial")&&Ao++,co("percent previous")&&Ao++,co("percent total")&&Ao++;var oi=Ao>1;co("percent initial")&&(Vr=i.formatPercent(fr.begR),oi&&(Vr+=" of initial"),ao.push(Vr)),co("percent previous")&&(Vr=i.formatPercent(fr.difR),oi&&(Vr+=" of previous"),ao.push(Vr)),co("percent total")&&(Vr=i.formatPercent(fr.sumR),oi&&(Vr+=" of total"),ao.push(Vr))}return ao.join("
")}(Bn,hr,hn,zn):_.getValue(yr.text,hr),_.coerceString(x,Zn)}(er,Lt,xt,vn,Nn);dn=function(bo,Bn){var hr=_.getValue(bo.textposition,Bn);return _.coerceEnumerated(R,hr)}(In,xt);var Sr=Kt.mode==="stack"||Kt.mode==="relative",ar=Lt[xt],Fn=!Sr||ar._outmost,ir=ar.hasB,Wn=Pt&&Pt-tn>T;if(xr&&dn!=="none"&&(!ar.isBlank&&Zt!==Xt&&Yt!==Qt||dn!=="auto"&&dn!=="inside")){var Kn=er.font,_r=v.getBarColor(Lt[xt],In),Ir=v.getInsideTextFont(In,xt,Kn,_r),zr=v.getOutsideTextFont(In,xt,Kn),Fr=In.insidetextanchor||"end",Rr=at.datum();jn?vn.type==="log"&&Rr.s0<=0&&(Zt=vn.range[0]0&&so>0;br=Wn?ir?z(Pn-2*Pt,Yn,Co,so,jn)||z(Pn,Yn-2*Pt,Co,so,jn):jn?z(Pn-(Pt-tn),Yn,Co,so,jn)||z(Pn,Yn-2*(Pt-tn),Co,so,jn):z(Pn,Yn-(Pt-tn),Co,so,jn)||z(Pn-2*(Pt-tn),Yn,Co,so,jn):z(Pn,Yn,Co,so,jn),dr&&br?dn="inside":(dn="outside",$r.remove(),$r=null)}else dn="inside";if(!$r){var Cr=($r=En(at,xr,So=i.ensureUniformFontSize(Rt,dn==="outside"?zr:Ir))).attr("transform");if($r.attr("transform",""),Co=(Kr=y.bBox($r.node())).width,so=Kr.height,$r.attr("transform",Cr),Co<=0||so<=0)return void $r.remove()}var io,Qr=In.textangle;io=dn==="outside"?function(bo,Bn,hr,hn,zn,Zn){var yr,gr=!!Zn.isHorizontal,vr=!!Zn.constrained,nr=Zn.angle||0,Qn=zn.width,Hn=zn.height,tr=Math.abs(Bn-bo),cr=Math.abs(hn-hr);yr=gr?cr>2*T?T:0:tr>2*T?T:0;var Lr=1;vr&&(Lr=gr?Math.min(1,cr/Hn):Math.min(1,tr/Qn));var Er=$(nr),Vr=Q(zn,Er),to=(gr?Vr.x:Vr.y)/2,_o=(zn.left+zn.right)/2,fr=(zn.top+zn.bottom)/2,Eo=(bo+Bn)/2,ao=(hr+hn)/2,co=0,Go=0,po=gr?D(Bn,bo):D(hr,hn);return gr?(Eo=Bn-po*yr,co=po*to):(ao=hn+po*yr,Go=-po*to),{textX:_o,textY:fr,targetX:Eo,targetY:ao,anchorX:co,anchorY:Go,scale:Lr,rotate:Er}}(Zt,Xt,Yt,Qt,Kr,{isHorizontal:jn,constrained:In.constraintext==="both"||In.constraintext==="outside",angle:Qr}):j(Zt,Xt,Yt,Qt,Kr,{isHorizontal:jn,constrained:In.constraintext==="both"||In.constraintext==="inside",angle:Qr,anchor:Fr,hasB:ir,r:Pt,overhead:tn}),io.fontSize=So.size,h(In.type==="histogram"?"bar":In.type,io,er),ar.transform=io;var Wr=k($r,er,Kt,fn);i.setTransormAndDisplay(Wr,io)}else at.select("text").remove()})(U,X,Ue,se,ke,Xe,tt,Ee,Ne,It,en,K,oe),X.layerClipId&&y.hideOutsideRangePoint(Oe,Ue.select("text"),q,Y,ce.xcalendar,ce.ycalendar)});var $e=ce.cliponaxis===!1;y.setClipUrl(ae,$e?null:X.layerClipId,U)});p.getComponentMethod("errorbars","plot")(U,he,X,K)},toMoveInsideBar:j}},45784:function(d){function l(n,c,b,i,O){var w=c.c2p(i?n.s0:n.p0,!0),y=c.c2p(i?n.s1:n.p1,!0),p=b.c2p(i?n.p0:n.s0,!0),a=b.c2p(i?n.p1:n.s1,!0);return O?[(w+y)/2,(p+a)/2]:i?[y,(p+a)/2]:[(w+y)/2,a]}d.exports=function(n,c){var b,i=n.cd,O=n.xaxis,w=n.yaxis,y=i[0].trace,p=y.type==="funnel",a=y.orientation==="h",u=[];if(c===!1)for(b=0;b1||D.bargap===0&&D.bargroupgap===0&&!k[0].trace.marker.line.width)&&c.select(this).attr("shape-rendering","crispEdges")}),C.selectAll("g.points").each(function(k){v(c.select(this),k[0].trace,E)}),w.getComponentMethod("errorbars","style")(C)},styleTextPoints:_,styleOnSelect:function(E,C,L){var D=C[0].trace;D.selectedpoints?function(k,I,z){i.selectedPointStyle(k.selectAll("path"),I),function($,Q,j){$.each(function(U){var X,te=c.select(this);if(U.selected){X=O.ensureUniformFontSize(j,S(te,U,Q,j));var W=Q.selected.textfont&&Q.selected.textfont.color;W&&(X.color=W),i.font(te,X)}else i.selectedTextStyle(te,Q)})}(k.selectAll("text"),I,z)}(L,D,E):(v(L,D,E),w.getComponentMethod("errorbars","style")(L))},getInsideTextFont:x,getOutsideTextFont:R,getBarColor:T,resizeText:y}},55592:function(d,l,n){var c=n(76308),b=n(94288).hasColorscale,i=n(27260),O=n(3400).coercePattern;d.exports=function(w,y,p,a,u){var h=p("marker.color",a),m=b(w,"marker");m&&i(w,y,u,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",c.defaultLine),b(w,"marker.line")&&i(w,y,u,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),O(p,"marker.pattern",h,m),p("selected.marker.color"),p("unselected.marker.color")}},82744:function(d,l,n){var c=n(33428),b=n(3400);function i(O){return"_"+O+"Text_minsize"}d.exports={recordMinTextSize:function(O,w,y){if(y.uniformtext.mode){var p=i(O),a=y.uniformtext.minsize,u=w.scale*w.fontSize;w.hide=u_.range[1]&&(E+=Math.PI),c.getClosest(h,function(D){return x(T,E,[D.rp0,D.rp1],[D.thetag0,D.thetag1],A)?R+Math.min(1,Math.abs(D.thetag1-D.thetag0)/M)-1+(D.rp1-T)/(D.rp1-D.rp0)-1:1/0},p),p.index!==!1){var C=h[p.index];p.x0=p.x1=C.ct[0],p.y0=p.y1=C.ct[1];var L=b.extendFlat({},C,{r:C.s,theta:C.p});return O(C,m,p),w(L,m,v,p),p.hovertemplate=m.hovertemplate,p.color=i(m,C),p.xLabelVal=p.yLabelVal=void 0,C.s<0&&(p.idealAlign="left"),[p]}}},94456:function(d,l,n){d.exports={moduleType:"trace",name:"barpolar",basePlotModule:n(40872),categories:["polar","bar","showLegend"],attributes:n(78100),layoutAttributes:n(9320),supplyDefaults:n(70384),supplyLayoutDefaults:n(89580),calc:n(47056).calc,crossTraceCalc:n(47056).crossTraceCalc,plot:n(42040),colorbar:n(5528),formatLabels:n(22852),style:n(60100).style,styleOnSelect:n(60100).styleOnSelect,hoverPoints:n(68896),selectPoints:n(45784),meta:{}}},9320:function(d){d.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},89580:function(d,l,n){var c=n(3400),b=n(9320);d.exports=function(i,O,w){var y,p={};function a(m,v){return c.coerce(i[y]||{},O[y],b,m,v)}for(var u=0;u0?(D=C,k=L):(D=L,k=C);var I=[w.findEnclosingVertexAngles(D,x.vangles)[0],(D+k)/2,w.findEnclosingVertexAngles(k,x.vangles)[1]];return w.pathPolygonAnnulus(T,E,D,k,I,R,M)}:function(T,E,C,L){return i.pathAnnulus(T,E,C,L,R,M)}}(p),A=p.layers.frontplot.select("g.barlayer");i.makeTraceGroups(A,a,"trace bars").each(function(){var x=c.select(this),R=i.ensureSingle(x,"g","points").selectAll("g.point").data(i.identity);R.enter().append("g").style("vector-effect",u?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),R.exit().remove(),R.each(function(M){var T,E=c.select(this),C=M.rp0=v.c2p(M.s0),L=M.rp1=v.c2p(M.s1),D=M.thetag0=_.c2g(M.p0),k=M.thetag1=_.c2g(M.p1);if(b(C)&&b(L)&&b(D)&&b(k)&&C!==L&&D!==k){var I=v.c2g(M.s1),z=(D+k)/2;M.ct=[h.c2p(I*Math.cos(z)),m.c2p(I*Math.sin(z))],T=S(C,L,D,k)}else T="M0,0Z";i.ensureSingle(E,"path").attr("d",T)}),O.setClipUrl(x,p._hasClipOnAxisFalse?p.clipIds.forTraces:null,y)})}},63188:function(d,l,n){var c=n(52904),b=n(20832),i=n(22548),O=n(29736).axisHoverFormat,w=n(21776).Ks,y=n(92880).extendFlat,p=c.marker,a=p.line;d.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:c.xperiod,yperiod:c.yperiod,xperiod0:c.xperiod0,yperiod0:c.yperiod0,xperiodalignment:c.xperiodalignment,yperiodalignment:c.yperiodalignment,xhoverformat:O("x"),yhoverformat:O("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:y({},p.symbol,{arrayOk:!1,editType:"plot"}),opacity:y({},p.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:y({},p.angle,{arrayOk:!1,editType:"calc"}),size:y({},p.size,{arrayOk:!1,editType:"calc"}),color:y({},p.color,{arrayOk:!1,editType:"style"}),line:{color:y({},a.color,{arrayOk:!1,dflt:i.defaultLine,editType:"style"}),width:y({},a.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:c.fillcolor,whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:b.offsetgroup,alignmentgroup:b.alignmentgroup,selected:{marker:c.selected.marker,editType:"style"},unselected:{marker:c.unselected.marker,editType:"style"},text:y({},c.text,{}),hovertext:y({},c.hovertext,{}),hovertemplate:w({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},62555:function(d,l,n){var c=n(38248),b=n(54460),i=n(1220),O=n(3400),w=n(39032).BADNUM,y=O._;d.exports=function(x,R){var M,T,E,C,L,D,k,I=x._fullLayout,z=b.getFromId(x,R.xaxis||"x"),$=b.getFromId(x,R.yaxis||"y"),Q=[],j=R.type==="violin"?"_numViolins":"_numBoxes";R.orientation==="h"?(E=z,C="x",L=$,D="y",k=!!R.yperiodalignment):(E=$,C="y",L=z,D="x",k=!!R.xperiodalignment);var U,X,te,W,K,oe,q=function(ot,Ge,ht,pt){var wt,Dt=Ge+"0"in ot;if(Ge in ot||Dt&&"d"+Ge in ot){var It=ht.makeCalcdata(ot,Ge);return[i(ot,ht,Ge,It).vals,It]}wt=Dt?ot[Ge+"0"]:"name"in ot&&(ht.type==="category"||c(ot.name)&&["linear","log"].indexOf(ht.type)!==-1||O.isDateTime(ot.name)&&ht.type==="date")?ot.name:pt;for(var qt=ht.type==="multicategory"?ht.r2c_just_indices(wt):ht.d2c(wt,0,ot[Ge+"calendar"]),en=ot._length,Gt=new Array(en),Ct=0;CtU.uf};if(R._hasPreCompStats){var ce=R[C],de=function(ot){return E.d2c((R[ot]||[])[M])},ve=1/0,ye=-1/0;for(M=0;M=U.q1&&U.q3>=U.med){var Se=de("lowerfence");U.lf=Se!==w&&Se<=U.q1?Se:m(U,te,W);var Te=de("upperfence");U.uf=Te!==w&&Te>=U.q3?Te:v(U,te,W);var Pe=de("mean");U.mean=Pe!==w?Pe:W?O.mean(te,W):(U.q1+U.q3)/2;var Ie=de("sd");U.sd=Pe!==w&&Ie>=0?Ie:W?O.stdev(te,W,U.mean):U.q3-U.q1,U.lo=_(U),U.uo=S(U);var ze=de("notchspan");ze=ze!==w&&ze>0?ze:A(U,W),U.ln=U.med-ze,U.un=U.med+ze;var De=U.lf,He=U.uf;R.boxpoints&&te.length&&(De=Math.min(De,te[0]),He=Math.max(He,te[W-1])),R.notched&&(De=Math.min(De,U.ln),He=Math.max(He,U.un)),U.min=De,U.max=He}else{var Ve;O.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+U.q1,"median = "+U.med,"q3 = "+U.q3].join(` +`)),Ve=U.med!==w?U.med:U.q1!==w?U.q3!==w?(U.q1+U.q3)/2:U.q1:U.q3!==w?U.q3:0,U.med=Ve,U.q1=U.q3=Ve,U.lf=U.uf=Ve,U.mean=U.sd=Ve,U.ln=U.un=Ve,U.min=U.max=Ve}ve=Math.min(ve,U.min),ye=Math.max(ye,U.max),U.pts2=X.filter(ae),Q.push(U)}}R._extremes[E._id]=b.findExtremes(E,[ve,ye],{padded:!0})}else{var $e=E.makeCalcdata(R,C),Oe=function(ot,Ge){for(var ht=ot.length,pt=new Array(ht+1),wt=0;wt=0&&We0){var Ne,je;(U={}).pos=U[D]=he[M],X=U.pts=Le[M].sort(u),W=(te=U[C]=X.map(h)).length,U.min=te[0],U.max=te[W-1],U.mean=O.mean(te,W),U.sd=O.stdev(te,W,U.mean)*R.sdmultiple,U.med=O.interp(te,.5),W%2&&(tt||Ee)?(tt?(Ne=te.slice(0,W/2),je=te.slice(W/2+1)):Ee&&(Ne=te.slice(0,W/2+1),je=te.slice(W/2)),U.q1=O.interp(Ne,.5),U.q3=O.interp(je,.5)):(U.q1=O.interp(te,.25),U.q3=O.interp(te,.75)),U.lf=m(U,te,W),U.uf=v(U,te,W),U.lo=_(U),U.uo=S(U);var nt=A(U,W);U.ln=U.med-nt,U.un=U.med+nt,Ue=Math.min(Ue,U.ln),Ze=Math.max(Ze,U.un),U.pts2=X.filter(ae),Q.push(U)}R.notched&&O.isTypedArray($e)&&($e=Array.from($e)),R._extremes[E._id]=b.findExtremes(E,R.notched?$e.concat([Ue,Ze]):$e,{padded:!0})}return function(ot,Ge){if(O.isArrayOrTypedArray(Ge.selectedpoints))for(var ht=0;ht0?(Q[0].t={num:I[j],dPos:se,posLetter:D,valLetter:C,labels:{med:y(x,"median:"),min:y(x,"min:"),q1:y(x,"q1:"),q3:y(x,"q3:"),max:y(x,"max:"),mean:R.boxmean==="sd"||R.sizemode==="sd"?y(x,"mean ± σ:").replace("σ",R.sdmultiple===1?"σ":R.sdmultiple+"σ"):y(x,"mean:"),lf:y(x,"lower fence:"),uf:y(x,"upper fence:")}},I[j]++,Q):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function a(x,R,M){for(var T in p)O.isArrayOrTypedArray(R[T])&&(Array.isArray(M)?O.isArrayOrTypedArray(R[T][M[0]])&&(x[p[T]]=R[T][M[0]][M[1]]):x[p[T]]=R[T][M])}function u(x,R){return x.v-R.v}function h(x){return x.v}function m(x,R,M){return M===0?x.q1:Math.min(x.q1,R[Math.min(O.findBin(2.5*x.q1-1.5*x.q3,R,!0)+1,M-1)])}function v(x,R,M){return M===0?x.q3:Math.max(x.q3,R[Math.max(O.findBin(2.5*x.q3-1.5*x.q1,R),0)])}function _(x){return 4*x.q1-3*x.q3}function S(x){return 4*x.q3-3*x.q1}function A(x,R){return R===0?0:1.57*(x.q3-x.q1)/Math.sqrt(R)}},96404:function(d,l,n){var c=n(54460),b=n(3400),i=n(71888).getAxisGroup,O=["v","h"];function w(y,p,a,u){var h,m,v,_=p.calcdata,S=p._fullLayout,A=u._id,x=A.charAt(0),R=[],M=0;for(h=0;h1,D=1-S[y+"gap"],k=1-S[y+"groupgap"];for(h=0;h0){var _e=X.pointpos,Se=X.jitter,Te=X.marker.size/2,Pe=0;_e+Se>=0&&((Pe=ve*(_e+Se))>j?(ye=!0,ce=Te,se=Pe):Pe>me&&(ce=Te,se=j)),Pe<=j&&(se=j);var Ie=0;_e-Se<=0&&((Ie=-ve*(_e-Se))>U?(ye=!0,de=Te,ae=Ie):Ie>he&&(de=Te,ae=U)),Ie<=U&&(ae=U)}else se=j,ae=U;var ze=new Array(v.length);for(m=0;m0?(L="v",D=I>0?Math.min($,z):Math.min(z)):I>0?(L="h",D=Math.min($)):D=0;if(D){m._length=D;var W=v("orientation",L);m._hasPreCompStats?W==="v"&&I===0?(v("x0",0),v("dx",1)):W==="h"&&k===0&&(v("y0",0),v("dy",1)):W==="v"&&I===0?v("x0"):W==="h"&&k===0&&v("y0"),b.getComponentMethod("calendars","handleTraceDefaults")(h,m,["x","y"],_)}else m.visible=!1}function u(h,m,v,_){var S=_.prefix,A=c.coerce2(h,m,p,"marker.outliercolor"),x=v("marker.line.outliercolor"),R="outliers";m._hasPreCompStats?R="all":(A||x)&&(R="suspectedoutliers");var M=v(S+"points",R);M?(v("jitter",M==="all"?.3:0),v("pointpos",M==="all"?-1.5:0),v("marker.symbol"),v("marker.opacity"),v("marker.size"),v("marker.angle"),v("marker.color",m.line.color),v("marker.line.color"),v("marker.line.width"),M==="suspectedoutliers"&&(v("marker.line.outliercolor",m.marker.color),v("marker.line.outlierwidth")),v("selected.marker.color"),v("unselected.marker.color"),v("selected.marker.size"),v("unselected.marker.size"),v("text"),v("hovertext")):delete m.marker;var T=v("hoveron");T!=="all"&&T.indexOf("points")===-1||v("hovertemplate"),c.coerceSelectionMarkerOpacity(m,v)}d.exports={supplyDefaults:function(h,m,v,_){function S(D,k){return c.coerce(h,m,p,D,k)}if(a(h,m,S,_),m.visible!==!1){O(h,m,_,S),S("xhoverformat"),S("yhoverformat");var A=m._hasPreCompStats;A&&(S("lowerfence"),S("upperfence")),S("line.color",(h.marker||{}).color||v),S("line.width"),S("fillcolor",i.addOpacity(m.line.color,.5));var x=!1;if(A){var R=S("mean"),M=S("sd");R&&R.length&&(x=!0,M&&M.length&&(x="sd"))}S("whiskerwidth");var T,E=S("sizemode");E==="quartiles"&&(T=S("boxmean",x)),S("showwhiskers",E==="quartiles"),E!=="sd"&&T!=="sd"||S("sdmultiple"),S("width"),S("quartilemethod");var C=!1;if(A){var L=S("notchspan");L&&L.length&&(C=!0)}else c.validate(h.notchwidth,p.notchwidth)&&(C=!0);S("notched",C)&&S("notchwidth"),u(h,m,S,{prefix:"box"})}},crossTraceDefaults:function(h,m){var v,_;function S(R){return c.coerce(_._input,_,p,R)}for(var A=0;AM.lo&&(te.so=!0)}return C});R.enter().append("path").classed("point",!0),R.exit().remove(),R.call(i.translatePoints,m,v)}function y(p,a,u,h){var m,v,_=a.val,S=a.pos,A=!!S.rangebreaks,x=h.bPos,R=h.bPosPxOffset||0,M=u.boxmean||(u.meanline||{}).visible;Array.isArray(h.bdPos)?(m=h.bdPos[0],v=h.bdPos[1]):(m=h.bdPos,v=h.bdPos);var T=p.selectAll("path.mean").data(u.type==="box"&&u.boxmean||u.type==="violin"&&u.box.visible&&u.meanline.visible?b.identity:[]);T.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),T.exit().remove(),T.each(function(E){var C=S.c2l(E.pos+x,!0),L=S.l2p(C-m)+R,D=S.l2p(C+v)+R,k=A?(L+D)/2:S.l2p(C)+R,I=_.c2p(E.mean,!0),z=_.c2p(E.mean-E.sd,!0),$=_.c2p(E.mean+E.sd,!0);u.orientation==="h"?c.select(this).attr("d","M"+I+","+L+"V"+D+(M==="sd"?"m0,0L"+z+","+k+"L"+I+","+L+"L"+$+","+k+"Z":"")):c.select(this).attr("d","M"+L+","+I+"H"+D+(M==="sd"?"m0,0L"+k+","+z+"L"+L+","+I+"L"+k+","+$+"Z":""))})}d.exports={plot:function(p,a,u,h){var m=p._context.staticPlot,v=a.xaxis,_=a.yaxis;b.makeTraceGroups(h,u,"trace boxes").each(function(S){var A,x,R=c.select(this),M=S[0],T=M.t,E=M.trace;T.wdPos=T.bdPos*E.whiskerwidth,E.visible!==!0||T.empty?R.remove():(E.orientation==="h"?(A=_,x=v):(A=v,x=_),O(R,{pos:A,val:x},E,T,m),w(R,{x:v,y:_},E,T),y(R,{pos:A,val:x},E,T))})},plotBoxAndWhiskers:O,plotPoints:w,plotBoxMean:y}},8264:function(d){d.exports=function(l,n){var c,b,i=l.cd,O=l.xaxis,w=l.yaxis,y=[];if(n===!1)for(c=0;c=10)return null;for(var w=1/0,y=-1/0,p=i.length,a=0;a0?Math.floor:Math.ceil,W=U>0?Math.ceil:Math.floor,K=U>0?Math.min:Math.max,oe=U>0?Math.max:Math.min,q=te(Q+X),Y=W(j-X),ee=[[v=$(Q)]];for(y=q;y*U=0;i--)O[u-i]=l[h][i],w[u-i]=n[h][i];for(y.push({x:O,y:w,bicubic:p}),i=h,O=[],w=[];i>=0;i--)O[h-i]=l[i][0],w[h-i]=n[i][0];return y.push({x:O,y:w,bicubic:a}),y}},19216:function(d,l,n){var c=n(54460),b=n(92880).extendFlat;d.exports=function(i,O,w){var y,p,a,u,h,m,v,_,S,A,x,R,M,T,E=i["_"+O],C=i[O+"axis"],L=C._gridlines=[],D=C._minorgridlines=[],k=C._boundarylines=[],I=i["_"+w],z=i[w+"axis"];C.tickmode==="array"&&(C.tickvals=E.slice());var $=i._xctrl,Q=i._yctrl,j=$[0].length,U=$.length,X=i._a.length,te=i._b.length;c.prepTicks(C),C.tickmode==="array"&&delete C.tickvals;var W=C.smoothing?3:1;function K(q){var Y,ee,me,he,se,ae,ce,de,ve,ye,_e,Se,Te=[],Pe=[],Ie={};if(O==="b")for(ee=i.b2j(q),me=Math.floor(Math.max(0,Math.min(te-2,ee))),he=ee-me,Ie.length=te,Ie.crossLength=X,Ie.xy=function(ze){return i.evalxy([],ze,ee)},Ie.dxy=function(ze,De){return i.dxydi([],ze,me,De,he)},Y=0;Y0&&(ve=i.dxydi([],Y-1,me,0,he),Te.push(se[0]+ve[0]/3),Pe.push(se[1]+ve[1]/3),ye=i.dxydi([],Y-1,me,1,he),Te.push(de[0]-ye[0]/3),Pe.push(de[1]-ye[1]/3)),Te.push(de[0]),Pe.push(de[1]),se=de;else for(Y=i.a2i(q),ae=Math.floor(Math.max(0,Math.min(X-2,Y))),ce=Y-ae,Ie.length=X,Ie.crossLength=te,Ie.xy=function(ze){return i.evalxy([],Y,ze)},Ie.dxy=function(ze,De){return i.dxydj([],ae,ze,ce,De)},ee=0;ee0&&(_e=i.dxydj([],ae,ee-1,ce,0),Te.push(se[0]+_e[0]/3),Pe.push(se[1]+_e[1]/3),Se=i.dxydj([],ae,ee-1,ce,1),Te.push(de[0]-Se[0]/3),Pe.push(de[1]-Se[1]/3)),Te.push(de[0]),Pe.push(de[1]),se=de;return Ie.axisLetter=O,Ie.axis=C,Ie.crossAxis=z,Ie.value=q,Ie.constvar=w,Ie.index=_,Ie.x=Te,Ie.y=Pe,Ie.smoothing=z.smoothing,Ie}function oe(q){var Y,ee,me,he,se,ae=[],ce=[],de={};if(de.length=E.length,de.crossLength=I.length,O==="b")for(me=Math.max(0,Math.min(te-2,q)),se=Math.min(1,Math.max(0,q-me)),de.xy=function(ve){return i.evalxy([],ve,q)},de.dxy=function(ve,ye){return i.dxydi([],ve,me,ye,se)},Y=0;YE.length-1||L.push(b(oe(p),{color:C.gridcolor,width:C.gridwidth,dash:C.griddash}));for(_=m;_E.length-1||x<0||x>E.length-1))for(R=E[a],M=E[x],y=0;yE[E.length-1]||D.push(b(K(A),{color:C.minorgridcolor,width:C.minorgridwidth,dash:C.minorgriddash}));C.startline&&k.push(b(oe(0),{color:C.startlinecolor,width:C.startlinewidth})),C.endline&&k.push(b(oe(E.length-1),{color:C.endlinecolor,width:C.endlinewidth}))}else{for(u=5e-15,m=(h=[Math.floor((E[E.length-1]-C.tick0)/C.dtick*(1+u)),Math.ceil((E[0]-C.tick0)/C.dtick/(1+u))].sort(function(q,Y){return q-Y}))[0],v=h[1],_=m;_<=v;_++)S=C.tick0+C.dtick*_,L.push(b(K(S),{color:C.gridcolor,width:C.gridwidth,dash:C.griddash}));for(_=m-1;_E[E.length-1]||D.push(b(K(A),{color:C.minorgridcolor,width:C.minorgridwidth,dash:C.minorgriddash}));C.startline&&k.push(b(K(E[0]),{color:C.startlinecolor,width:C.startlinewidth})),C.endline&&k.push(b(K(E[E.length-1]),{color:C.endlinecolor,width:C.endlinewidth}))}}},14724:function(d,l,n){var c=n(54460),b=n(92880).extendFlat;d.exports=function(i,O){var w,y,p,a=O._labels=[],u=O._gridlines;for(w=0;wi.length&&(b=b.slice(0,i.length)):b=[],w=0;w90&&(v-=180,p=-p),{angle:v,flip:p,p:l.c2p(b,n,c),offsetMultplier:a}}},164:function(d,l,n){var c=n(33428),b=n(43616),i=n(87072),O=n(53416),w=n(15584),y=n(72736),p=n(3400),a=p.strRotate,u=p.strTranslate,h=n(84284);function m(x,R,M,T,E,C,L){var D="const-"+E+"-lines",k=M.selectAll("."+D).data(C);k.enter().append("path").classed(D,!0).style("vector-effect",L?"none":"non-scaling-stroke"),k.each(function(I){var z=I,$=z.x,Q=z.y,j=i([],$,x.c2p),U=i([],Q,R.c2p),X="M"+O(j,U,z.smoothing);c.select(this).attr("d",X).style("stroke-width",z.width).style("stroke",z.color).style("stroke-dasharray",b.dashStyle(z.dash,z.width)).style("fill","none")}),k.exit().remove()}function v(x,R,M,T,E,C,L,D){var k=C.selectAll("text."+D).data(L);k.enter().append("text").classed(D,!0);var I=0,z={};return k.each(function($,Q){var j;if($.axis.tickangle==="auto")j=w(T,R,M,$.xy,$.dxy);else{var U=($.axis.tickangle+180)*Math.PI/180;j=w(T,R,M,$.xy,[Math.cos(U),Math.sin(U)])}Q||(z={angle:j.angle,flip:j.flip});var X=($.endAnchor?-1:1)*j.flip,te=c.select(this).attr({"text-anchor":X>0?"start":"end","data-notex":1}).call(b.font,$.font).text($.text).call(y.convertToTspans,x),W=b.bBox(this);te.attr("transform",u(j.p[0],j.p[1])+a(j.angle)+u($.axis.labelpadding*X,.3*W.height)),I=Math.max(I,W.width+$.axis.labelpadding)}),k.exit().remove(),z.maxExtent=I,z}d.exports=function(x,R,M,T){var E=x._context.staticPlot,C=R.xaxis,L=R.yaxis,D=x._fullLayout._clips;p.makeTraceGroups(T,M,"trace").each(function(k){var I=c.select(this),z=k[0],$=z.trace,Q=$.aaxis,j=$.baxis,U=p.ensureSingle(I,"g","minorlayer"),X=p.ensureSingle(I,"g","majorlayer"),te=p.ensureSingle(I,"g","boundarylayer"),W=p.ensureSingle(I,"g","labellayer");I.style("opacity",$.opacity),m(C,L,X,0,"a",Q._gridlines,!0),m(C,L,X,0,"b",j._gridlines,!0),m(C,L,U,0,"a",Q._minorgridlines,!0),m(C,L,U,0,"b",j._minorgridlines,!0),m(C,L,te,0,"a-boundary",Q._boundarylines,E),m(C,L,te,0,"b-boundary",j._boundarylines,E);var K=v(x,C,L,$,0,W,Q._labels,"a-label"),oe=v(x,C,L,$,0,W,j._labels,"b-label");(function(q,Y,ee,me,he,se,ae,ce){var de,ve,ye,_e,Se=p.aggNums(Math.min,null,ee.a),Te=p.aggNums(Math.max,null,ee.a),Pe=p.aggNums(Math.min,null,ee.b),Ie=p.aggNums(Math.max,null,ee.b);de=.5*(Se+Te),ve=Pe,ye=ee.ab2xy(de,ve,!0),_e=ee.dxyda_rough(de,ve),ae.angle===void 0&&p.extendFlat(ae,w(ee,he,se,ye,ee.dxydb_rough(de,ve))),A(q,Y,ee,0,ye,_e,ee.aaxis,he,se,ae,"a-title"),de=Se,ve=.5*(Pe+Ie),ye=ee.ab2xy(de,ve,!0),_e=ee.dxydb_rough(de,ve),ce.angle===void 0&&p.extendFlat(ce,w(ee,he,se,ye,ee.dxyda_rough(de,ve))),A(q,Y,ee,0,ye,_e,ee.baxis,he,se,ce,"b-title")})(x,W,$,0,C,L,K,oe),function(q,Y,ee,me,he){var se,ae,ce,de,ve=ee.select("#"+q._clipPathId);ve.size()||(ve=ee.append("clipPath").classed("carpetclip",!0));var ye=p.ensureSingle(ve,"path","carpetboundary"),_e=Y.clipsegments,Se=[];for(de=0;de<_e.length;de++)se=_e[de],ae=i([],se.x,me.c2p),ce=i([],se.y,he.c2p),Se.push(O(ae,ce,se.bicubic));var Te="M"+Se.join("L")+"Z";ve.attr("id",q._clipPathId),ye.attr("d",Te)}($,z,D,C,L)})};var _=h.LINE_SPACING,S=(1-h.MID_SHIFT)/_+1;function A(x,R,M,T,E,C,L,D,k,I,z){var $=[];L.title.text&&$.push(L.title.text);var Q=R.selectAll("text."+z).data($),j=I.maxExtent;Q.enter().append("text").classed(z,!0),Q.each(function(){var U=w(M,D,k,E,C);["start","both"].indexOf(L.showticklabels)===-1&&(j=0);var X=L.title.font.size;j+=X+L.title.offset;var te=(I.angle+(I.flip<0?180:0)-U.angle+450)%360,W=te>90&&te<270,K=c.select(this);K.text(L.title.text).call(y.convertToTspans,x),W&&(j=(-y.lineCount(K)+S)*_*X-j),K.attr("transform",u(U.p[0],U.p[1])+a(U.angle)+u(0,j)).attr("text-anchor","middle").call(b.font,L.title.font)}),Q.exit().remove()}},81e3:function(d,l,n){var c=n(24588),b=n(14952).findBin,i=n(30180),O=n(29056),w=n(26435),y=n(24464);d.exports=function(p){var a=p._a,u=p._b,h=a.length,m=u.length,v=p.aaxis,_=p.baxis,S=a[0],A=a[h-1],x=u[0],R=u[m-1],M=a[a.length-1]-a[0],T=u[u.length-1]-u[0],E=M*c.RELATIVE_CULL_TOLERANCE,C=T*c.RELATIVE_CULL_TOLERANCE;S-=E,A+=E,x-=C,R+=C,p.isVisible=function(L,D){return L>S&&Lx&&DA||DR},p.setScale=function(){var L=p._x,D=p._y,k=i(p._xctrl,p._yctrl,L,D,v.smoothing,_.smoothing);p._xctrl=k[0],p._yctrl=k[1],p.evalxy=O([p._xctrl,p._yctrl],h,m,v.smoothing,_.smoothing),p.dxydi=w([p._xctrl,p._yctrl],v.smoothing,_.smoothing),p.dxydj=y([p._xctrl,p._yctrl],v.smoothing,_.smoothing)},p.i2a=function(L){var D=Math.max(0,Math.floor(L[0]),h-2),k=L[0]-D;return(1-k)*a[D]+k*a[D+1]},p.j2b=function(L){var D=Math.max(0,Math.floor(L[1]),h-2),k=L[1]-D;return(1-k)*u[D]+k*u[D+1]},p.ij2ab=function(L){return[p.i2a(L[0]),p.j2b(L[1])]},p.a2i=function(L){var D=Math.max(0,Math.min(b(L,a),h-2)),k=a[D],I=a[D+1];return Math.max(0,Math.min(h-1,D+(L-k)/(I-k)))},p.b2j=function(L){var D=Math.max(0,Math.min(b(L,u),m-2)),k=u[D],I=u[D+1];return Math.max(0,Math.min(m-1,D+(L-k)/(I-k)))},p.ab2ij=function(L){return[p.a2i(L[0]),p.b2j(L[1])]},p.i2c=function(L,D){return p.evalxy([],L,D)},p.ab2xy=function(L,D,k){if(!k&&(La[h-1]|Du[m-1]))return[!1,!1];var I=p.a2i(L),z=p.b2j(D),$=p.evalxy([],I,z);if(k){var Q,j,U,X,te=0,W=0,K=[];La[h-1]?(Q=h-2,j=1,te=(L-a[h-1])/(a[h-1]-a[h-2])):j=I-(Q=Math.max(0,Math.min(h-2,Math.floor(I)))),Du[m-1]?(U=m-2,X=1,W=(D-u[m-1])/(u[m-1]-u[m-2])):X=z-(U=Math.max(0,Math.min(m-2,Math.floor(z)))),te&&(p.dxydi(K,Q,U,j,X),$[0]+=K[0]*te,$[1]+=K[1]*te),W&&(p.dxydj(K,Q,U,j,X),$[0]+=K[0]*W,$[1]+=K[1]*W)}return $},p.c2p=function(L,D,k){return[D.c2p(L[0]),k.c2p(L[1])]},p.p2x=function(L,D,k){return[D.p2c(L[0]),k.p2c(L[1])]},p.dadi=function(L){var D=Math.max(0,Math.min(a.length-2,L));return a[D+1]-a[D]},p.dbdj=function(L){var D=Math.max(0,Math.min(u.length-2,L));return u[D+1]-u[D]},p.dxyda=function(L,D,k,I){var z=p.dxydi(null,L,D,k,I),$=p.dadi(L,k);return[z[0]/$,z[1]/$]},p.dxydb=function(L,D,k,I){var z=p.dxydj(null,L,D,k,I),$=p.dbdj(D,I);return[z[0]/$,z[1]/$]},p.dxyda_rough=function(L,D,k){var I=M*(k||.1),z=p.ab2xy(L+I,D,!0),$=p.ab2xy(L-I,D,!0);return[.5*(z[0]-$[0])/I,.5*(z[1]-$[1])/I]},p.dxydb_rough=function(L,D,k){var I=T*(k||.1),z=p.ab2xy(L,D+I,!0),$=p.ab2xy(L,D-I,!0);return[.5*(z[0]-$[0])/I,.5*(z[1]-$[1])/I]},p.dpdx=function(L){return L._m},p.dpdy=function(L){return L._m}}},51512:function(d,l,n){var c=n(3400);d.exports=function(b,i,O){var w,y,p,a=[],u=[],h=b[0].length,m=b.length;function v(q,Y){var ee,me=0,he=0;return q>0&&(ee=b[Y][q-1])!==void 0&&(he++,me+=ee),q0&&(ee=b[Y-1][q])!==void 0&&(he++,me+=ee),Y0&&y0&&w1e-5);return c.log("Smoother converged to",I,"after",z,"iterations"),b}},86411:function(d,l,n){var c=n(3400).isArray1D;d.exports=function(b,i,O){var w=O("x"),y=w&&w.length,p=O("y"),a=p&&p.length;if(!y&&!a)return!1;if(i._cheater=!w,y&&!c(w)||a&&!c(p))i._length=null;else{var u=y?w.length:1/0;a&&(u=Math.min(u,p.length)),i.a&&i.a.length&&(u=Math.min(u,i.a.length)),i.b&&i.b.length&&(u=Math.min(u,i.b.length)),i._length=u}return!0}},83372:function(d,l,n){var c=n(21776).Ks,b=n(6096),i=n(49084),O=n(45464),w=n(22548).defaultLine,y=n(92880).extendFlat,p=b.marker.line;d.exports=y({locations:{valType:"data_array",editType:"calc"},locationmode:b.locationmode,z:{valType:"data_array",editType:"calc"},geojson:y({},b.geojson,{}),featureidkey:b.featureidkey,text:y({},b.text,{}),hovertext:y({},b.hovertext,{}),marker:{line:{color:y({},p.color,{dflt:w}),width:y({},p.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:b.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:b.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:y({},O.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:c(),showlegend:y({},O.showlegend,{dflt:!1})},i("",{cLetter:"z",editTypeOverride:"calc"}))},7924:function(d,l,n){var c=n(38248),b=n(39032).BADNUM,i=n(47128),O=n(20148),w=n(4500);function y(p){return p&&typeof p=="string"}d.exports=function(p,a){var u,h=a._length,m=new Array(h);u=a.geojson?function(x){return y(x)||c(x)}:y;for(var v=0;v")}}(O,v,p),[O]}},54272:function(d,l,n){d.exports={attributes:n(83372),supplyDefaults:n(30972),colorbar:n(96288),calc:n(7924),calcGeoJSON:n(88364).calcGeoJSON,plot:n(88364).plot,style:n(7947).style,styleOnSelect:n(7947).styleOnSelect,hoverPoints:n(69224),eventData:n(52428),selectPoints:n(17328),moduleType:"trace",name:"choropleth",basePlotModule:n(10816),categories:["geo","noOpacity","showLegend"],meta:{}}},88364:function(d,l,n){var c=n(33428),b=n(3400),i=n(27144),O=n(59972).getTopojsonFeatures,w=n(19280).findExtremes,y=n(7947).style;d.exports={calcGeoJSON:function(p,a){for(var u=p[0].trace,h=a[u.geo],m=h._subplot,v=u.locationmode,_=u._length,S=v==="geojson-id"?i.extractTraceFeature(p):O(u,m.topojson),A=[],x=[],R=0;R<_;R++){var M=p[R],T=v==="geojson-id"?M.fOut:i.locationToFeature(v,M.loc,S);if(T){M.geojson=T,M.ct=T.properties.ct,M._polygons=i.feature2polygons(T);var E=i.computeBbox(T);A.push(E[0],E[2]),x.push(E[1],E[3])}else M.geojson=null}if(h.fitbounds==="geojson"&&v==="geojson-id"){var C=i.computeBbox(i.getTraceGeojson(u));A=[C[0],C[2]],x=[C[1],C[3]]}var L={padded:!0};u._extremes.lon=w(h.lonaxis._ax,A,L),u._extremes.lat=w(h.lataxis._ax,x,L)},plot:function(p,a,u){var h=a.layers.backplot.select(".choroplethlayer");b.makeTraceGroups(h,u,"trace choropleth").each(function(m){var v=c.select(this).selectAll("path.choroplethlocation").data(b.identity);v.enter().append("path").classed("choroplethlocation",!0),v.exit().remove(),y(p,m)})}}},17328:function(d){d.exports=function(l,n){var c,b,i,O,w,y=l.cd,p=l.xaxis,a=l.yaxis,u=[];if(n===!1)for(c=0;c=0;O--){var w=i[O].id;if(typeof w=="string"&&w.indexOf("water")===0){for(var y=O+1;y=0;a--)y.removeLayer(p[a][1])},w.dispose=function(){var y=this.subplot.map;this._removeLayers(),y.removeSource(this.sourceId)},d.exports=function(y,p){var a=p[0].trace,u=new O(y,a.uid),h=u.sourceId,m=c(p),v=u.below=y.belowLookup["trace-"+a.uid];return y.map.addSource(h,{type:"geojson",data:m.geojson}),u._addLayers(m,v),p[0].trace._glTrace=u,u}},86040:function(d,l,n){var c=n(49084),b=n(29736).axisHoverFormat,i=n(21776).Ks,O=n(52948),w=n(45464),y=n(92880).extendFlat,p={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"},{keys:["norm"]}),uhoverformat:b("u",1),vhoverformat:b("v",1),whoverformat:b("w",1),xhoverformat:b("x"),yhoverformat:b("y"),zhoverformat:b("z"),showlegend:y({},w.showlegend,{dflt:!1})};y(p,c("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"})),["opacity","lightposition","lighting"].forEach(function(a){p[a]=O[a]}),p.hoverinfo=y({},w.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),p.transforms=void 0,d.exports=p},83344:function(d,l,n){var c=n(47128);d.exports=function(b,i){for(var O=i.u,w=i.v,y=i.w,p=Math.min(i.x.length,i.y.length,i.z.length,O.length,w.length,y.length),a=-1/0,u=1/0,h=0;hw.level||w.starts.length&&O===w.level)}break;case"constraint":if(b.prefixBoundary=!1,b.edgepaths.length)return;var y=b.x.length,p=b.y.length,a=-1/0,u=1/0;for(c=0;c":v>a&&(b.prefixBoundary=!0);break;case"<":(va||b.starts.length&&m===u)&&(b.prefixBoundary=!0);break;case"][":h=Math.min(v[0],v[1]),m=Math.max(v[0],v[1]),ha&&(b.prefixBoundary=!0)}}}},55296:function(d,l,n){var c=n(8932),b=n(41076),i=n(46960);d.exports={min:"zmin",max:"zmax",calc:function(O,w,y){var p=w.contours,a=w.line,u=p.size||1,h=p.coloring,m=b(w,{isColorbar:!0});if(h==="heatmap"){var v=c.extractOpts(w);y._fillgradient=v.reversescale?c.flipScale(v.colorscale):v.colorscale,y._zrange=[v.min,v.max]}else h==="fill"&&(y._fillcolor=m);y._line={color:h==="lines"?m:a.color,width:p.showlines!==!1?a.width:0,dash:a.dash},y._levels={start:p.start,end:i(p),size:u}}}},93252:function(d){d.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},95536:function(d,l,n){var c=n(38248),b=n(17428),i=n(76308),O=i.addOpacity,w=i.opacity,y=n(69104),p=n(3400).isArrayOrTypedArray,a=y.CONSTRAINT_REDUCTION,u=y.COMPARISON_OPS2;d.exports=function(h,m,v,_,S,A){var x,R,M,T=m.contours,E=v("contours.operation");T._operation=a[E],function(C,L){var D;u.indexOf(L.operation)===-1?(C("contours.value",[0,1]),p(L.value)?L.value.length>2?L.value=L.value.slice(2):L.length===0?L.value=[0,1]:L.length<2?(D=parseFloat(L.value[0]),L.value=[D,D+1]):L.value=[parseFloat(L.value[0]),parseFloat(L.value[1])]:c(L.value)&&(D=parseFloat(L.value),L.value=[D,D+1])):(C("contours.value",0),c(L.value)||(p(L.value)?L.value=parseFloat(L.value[0]):L.value=0))}(v,T),E==="="?x=T.showlines=!0:(x=v("contours.showlines"),M=v("fillcolor",O((h.line||{}).color||S,.5))),x&&(R=v("line.color",M&&w(M)?O(m.fillcolor,1):S),v("line.width",2),v("line.dash")),v("line.smoothing"),b(v,_,R,A)}},3212:function(d,l,n){var c=n(69104),b=n(38248);function i(y,p){var a,u=Array.isArray(p);function h(m){return b(m)?+m:null}return c.COMPARISON_OPS2.indexOf(y)!==-1?a=h(u?p[0]:p):c.INTERVAL_OPS.indexOf(y)!==-1?a=u?[h(p[0]),h(p[1])]:[h(p),h(p)]:c.SET_OPS.indexOf(y)!==-1&&(a=u?p.map(h):[h(p)]),a}function O(y){return function(p){p=i(y,p);var a=Math.min(p[0],p[1]),u=Math.max(p[0],p[1]);return{start:a,end:u,size:u-a}}}function w(y){return function(p){return{start:p=i(y,p),end:1/0,size:1/0}}}d.exports={"[]":O("[]"),"][":O("]["),">":w(">"),"<":w("<"),"=":w("=")}},84952:function(d){d.exports=function(l,n,c,b){var i=b("contours.start"),O=b("contours.end"),w=i===!1||O===!1,y=c("contours.size");!(w?n.autocontour=!0:c("autocontour",!1))&&y||c("ncontours")}},82172:function(d,l,n){var c=n(3400);function b(i){return c.extendFlat({},i,{edgepaths:c.extendDeep([],i.edgepaths),paths:c.extendDeep([],i.paths),starts:c.extendDeep([],i.starts)})}d.exports=function(i,O){var w,y,p,a=function(m){return m.reverse()},u=function(m){return m};switch(O){case"=":case"<":return i;case">":for(i.length!==1&&c.warn("Contour data invalid for the specified inequality operation."),y=i[0],w=0;w1e3){c.warn("Too many contours, clipping at 1000",O);break}return u}},46960:function(d){d.exports=function(l){return l.end+l.size/1e6}},88748:function(d,l,n){var c=n(3400),b=n(93252);function i(y,p,a,u){return Math.abs(y[0]-p[0])20&&ye?ve===208||ve===1114?Se=_e[0]===0?1:-1:Te=_e[1]===0?1:-1:b.BOTTOMSTART.indexOf(ve)!==-1?Te=1:b.LEFTSTART.indexOf(ve)!==-1?Se=1:b.TOPSTART.indexOf(ve)!==-1?Te=-1:Se=-1,[Se,Te]}(_,a,p),A=[w(y,p,[-S[0],-S[1]])],x=y.z.length,R=y.z[0].length,M=p.slice(),T=S.slice();for(m=0;m<1e4;m++){if(_>20?(_=b.CHOOSESADDLE[_][(S[0]||S[1])<0?0:1],y.crossings[v]=b.SADDLEREMAINDER[_]):delete y.crossings[v],!(S=b.NEWDELTA[_])){c.log("Found bad marching index:",_,p,y.level);break}A.push(w(y,p,S)),p[0]+=S[0],p[1]+=S[1],v=p.join(","),i(A[A.length-1],A[A.length-2],u,h)&&A.pop();var E=S[0]&&(p[0]<0||p[0]>R-2)||S[1]&&(p[1]<0||p[1]>x-2);if(p[0]===M[0]&&p[1]===M[1]&&S[0]===T[0]&&S[1]===T[1]||a&&E)break;_=y.crossings[v]}m===1e4&&c.log("Infinite loop in contour?");var C,L,D,k,I,z,$,Q,j,U,X,te,W,K,oe,q=i(A[0],A[A.length-1],u,h),Y=0,ee=.2*y.smoothing,me=[],he=0;for(m=1;m=he;m--)if((C=me[m])=he&&C+me[L]Q&&j--,y.edgepaths[j]=X.concat(A,U));break}de||(y.edgepaths[Q]=A.concat(U))}for(Q=0;Q=T)&&(y<=M&&(y=M),p>=T&&(p=T),u=Math.floor((p-y)/a)+1,h=0),_=0;_M&&(x.unshift(M),R.unshift(R[0])),x[x.length-1]i?0:1)+(O[0][1]>i?0:2)+(O[1][1]>i?0:4)+(O[1][0]>i?0:8);return w===5||w===10?i>(O[0][0]+O[0][1]+O[1][0]+O[1][1])/4?w===5?713:1114:w===5?104:208:w===15?0:w}d.exports=function(i){var O,w,y,p,a,u,h,m,v,_=i[0].z,S=_.length,A=_[0].length,x=S===2||A===2;for(w=0;w=0&&(L=oe,k=I):Math.abs(C[1]-L[1])<.01?Math.abs(C[1]-oe[1])<.01&&(oe[0]-C[0])*(L[0]-oe[0])>=0&&(L=oe,k=I):b.log("endpt to newendpt is not vert. or horz.",C,L,oe)}if(C=L,k>=0)break;Q+="L"+L}if(k===T.edgepaths.length){b.log("unclosed perimeter path");break}j=k,(X=U.indexOf(j)===-1)&&(j=U[0],Q+="Z")}for(j=0;jL.center?L.right-I:I-L.left)/(Q+Math.abs(Math.sin($)*k)),X=(z>L.middle?L.bottom-z:z-L.top)/(Math.abs(j)+Math.cos($)*k);if(U<1||X<1)return 1/0;var te=A.EDGECOST*(1/(U-1)+1/(X-1));te+=A.ANGLECOST*$*$;for(var W=I-Q,K=z-j,oe=I+Q,q=z+j,Y=0;Y2*A.MAXCOST)break;X&&(I/=2),z=(k=$-I/2)+1.5*I}if(U<=A.MAXCOST)return Q},l.addLabelData=function(T,E,C,L){var D=E.fontSize,k=E.width+D/3,I=Math.max(0,E.height-D/3),z=T.x,$=T.y,Q=T.theta,j=Math.sin(Q),U=Math.cos(Q),X=function(W,K){return[z+W*U-K*j,$+W*j+K*U]},te=[X(-k/2,-I/2),X(-k/2,I/2),X(k/2,I/2),X(k/2,-I/2)];C.push({text:E.text,x:z,y:$,dy:E.dy,theta:Q,level:E.level,width:k,height:I}),L.push(te)},l.drawLabels=function(T,E,C,L,D){var k=T.selectAll("text").data(E,function($){return $.text+","+$.x+","+$.y+","+$.theta});if(k.exit().remove(),k.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function($){var Q=$.x+Math.sin($.theta)*$.dy,j=$.y-Math.cos($.theta)*$.dy;c.select(this).text($.text).attr({x:Q,y:j,transform:"rotate("+180*$.theta/Math.PI+" "+Q+" "+j+")"}).call(w.convertToTspans,C)}),D){for(var I="",z=0;zy.end&&(y.start=y.end=(y.start+y.end)/2),O._input.contours||(O._input.contours={}),b.extendFlat(O._input.contours,{start:y.start,end:y.end,size:y.size}),O._input.autocontour=!0}else if(y.type!=="constraint"){var h,m=y.start,v=y.end,_=O._input.contours;m>v&&(y.start=_.start=v,v=y.end=_.end=m,m=y.start),y.size>0||(h=m===v?1:i(m,v,O.ncontours).dtick,_.size=y.size=h)}}},52440:function(d,l,n){var c=n(33428),b=n(43616),i=n(41648),O=n(41076);d.exports=function(w){var y=c.select(w).selectAll("g.contour");y.style("opacity",function(p){return p[0].trace.opacity}),y.each(function(p){var a=c.select(this),u=p[0].trace,h=u.contours,m=u.line,v=h.size||1,_=h.start,S=h.type==="constraint",A=!S&&h.coloring==="lines",x=!S&&h.coloring==="fill",R=A||x?O(u):null;a.selectAll("g.contourlevel").each(function(E){c.select(this).selectAll("path").call(b.lineGroupStyle,m.width,A?R(E.level):m.color,m.dash)});var M=h.labelfont;if(a.selectAll("g.contourlabels text").each(function(E){b.font(c.select(this),{family:M.family,size:M.size,color:M.color||(A?R(E.level):m.color)})}),S)a.selectAll("g.contourfill path").style("fill",u.fillcolor);else if(x){var T;a.selectAll("g.contourfill path").style("fill",function(E){return T===void 0&&(T=E.level),R(E.level+.5*v)}),T===void 0&&(T=_),a.selectAll("g.contourbg path").style("fill",R(T-.5*v))}}),i(w)}},97680:function(d,l,n){var c=n(27260),b=n(17428);d.exports=function(i,O,w,y,p){var a,u=w("contours.coloring"),h="";u==="fill"&&(a=w("contours.showlines")),a!==!1&&(u!=="lines"&&(h=w("line.color","#000")),w("line.width",.5),w("line.dash")),u!=="none"&&(i.showlegend!==!0&&(O.showlegend=!1),O._dfltShowLegend=!1,c(i,O,y,w,{prefix:"",cLetter:"z"})),w("line.smoothing"),b(w,y,h,p)}},37960:function(d,l,n){var c=n(83328),b=n(67104),i=n(49084),O=n(92880).extendFlat,w=b.contours;d.exports=O({carpet:{valType:"string",editType:"calc"},z:c.z,a:c.x,a0:c.x0,da:c.dx,b:c.y,b0:c.y0,db:c.dy,text:c.text,hovertext:c.hovertext,transpose:c.transpose,atype:c.xtype,btype:c.ytype,fillcolor:b.fillcolor,autocontour:b.autocontour,ncontours:b.ncontours,contours:{type:w.type,start:w.start,end:w.end,size:w.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:w.showlines,showlabels:w.showlabels,labelfont:w.labelfont,labelformat:w.labelformat,operation:w.operation,value:w.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:b.line.color,width:b.line.width,dash:b.line.dash,smoothing:b.line.smoothing,editType:"plot"},transforms:void 0},i("",{cLetter:"z",autoColorDflt:!1}))},30572:function(d,l,n){var c=n(47128),b=n(3400),i=n(2872),O=n(26136),w=n(70448),y=n(11240),p=n(35744),a=n(3252),u=n(50948),h=n(54444);d.exports=function(m,v){var _=v._carpetTrace=u(m,v);if(_&&_.visible&&_.visible!=="legendonly"){if(!v.a||!v.b){var S=m.data[_.index],A=m.data[v.index];A.a||(A.a=S.a),A.b||(A.b=S.b),a(A,v,v._defaultColor,m._fullLayout)}var x=function(R,M){var T,E,C,L,D,k,I,z=M._carpetTrace,$=z.aaxis,Q=z.baxis;$._minDtick=0,Q._minDtick=0,b.isArray1D(M.z)&&i(M,$,Q,"a","b",["z"]),T=M._a=M._a||M.a,L=M._b=M._b||M.b,T=T?$.makeCalcdata(M,"_a"):[],L=L?Q.makeCalcdata(M,"_b"):[],E=M.a0||0,C=M.da||1,D=M.b0||0,k=M.db||1,I=M._z=O(M._z||M.z,M.transpose),M._emptypoints=y(I),w(I,M._emptypoints);var j=b.maxRowLength(I),U=M.xtype==="scaled"?"":T,X=p(M,U,E,C,j,$),te=M.ytype==="scaled"?"":L,W={a:X,b:p(M,te,D,k,I.length,Q),z:I};return M.contours.type==="levels"&&M.contours.coloring!=="none"&&c(R,M,{vals:I,containerStr:"",cLetter:"z"}),[W]}(m,v);return h(v,v._z),x}}},3252:function(d,l,n){var c=n(3400),b=n(51264),i=n(37960),O=n(95536),w=n(84952),y=n(97680);d.exports=function(p,a,u,h){function m(v,_){return c.coerce(p,a,i,v,_)}if(m("carpet"),p.a&&p.b){if(!b(p,a,m,h,"a","b"))return void(a.visible=!1);m("text"),m("contours.type")==="constraint"?O(p,a,m,h,u,{hasHover:!1}):(w(p,a,m,function(v){return c.coerce2(p,a,i,v)}),y(p,a,m,h,{hasHover:!1}))}else a._defaultColor=u,a._length=null}},40448:function(d,l,n){d.exports={attributes:n(37960),supplyDefaults:n(3252),colorbar:n(55296),calc:n(30572),plot:n(94440),style:n(52440),moduleType:"trace",name:"contourcarpet",basePlotModule:n(57952),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},94440:function(d,l,n){var c=n(33428),b=n(87072),i=n(53416),O=n(43616),w=n(3400),y=n(72424),p=n(88748),a=n(23676),u=n(93252),h=n(82172),m=n(61512),v=n(56008),_=n(50948),S=n(77712);function A(M,T,E){var C=M.getPointAtLength(T),L=M.getPointAtLength(E),D=L.x-C.x,k=L.y-C.y,I=Math.sqrt(D*D+k*k);return[D/I,k/I]}function x(M){var T=Math.sqrt(M[0]*M[0]+M[1]*M[1]);return[M[0]/T,M[1]/T]}function R(M,T){var E=Math.abs(M[0]*T[0]+M[1]*T[1]);return Math.sqrt(1-E*E)/E}d.exports=function(M,T,E,C){var L=T.xaxis,D=T.yaxis;w.makeTraceGroups(C,E,"contour").each(function(k){var I=c.select(this),z=k[0],$=z.trace,Q=$._carpetTrace=_(M,$),j=M.calcdata[Q.index][0];if(Q.visible&&Q.visible!=="legendonly"){var U=z.a,X=z.b,te=$.contours,W=m(te,T,z),K=te.type==="constraint",oe=te._operation,q=K?oe==="="?"lines":"fill":te.coloring,Y=[[U[0],X[X.length-1]],[U[U.length-1],X[X.length-1]],[U[U.length-1],X[0]],[U[0],X[0]]];y(W);var ee=1e-8*(U[U.length-1]-U[0]),me=1e-8*(X[X.length-1]-X[0]);p(W,ee,me);var he,se,ae,ce,de=W;te.type==="constraint"&&(de=h(W,oe)),function(Se,Te){var Pe,Ie,ze,De,He,Ve,$e,Oe,ke;for(Pe=0;Pe=0;ce--)he=j.clipsegments[ce],se=b([],he.x,L.c2p),ae=b([],he.y,D.c2p),se.reverse(),ae.reverse(),ve.push(i(se,ae,he.bicubic));var ye="M"+ve.join("L")+"Z";(function(Se,Te,Pe,Ie,ze,De){var He,Ve,$e,Oe,ke=w.ensureSingle(Se,"g","contourbg").selectAll("path").data(De!=="fill"||ze?[]:[0]);ke.enter().append("path"),ke.exit().remove();var Le=[];for(Oe=0;Oe=0&&(wt=zt,It=qt):Math.abs(pt[1]-wt[1])=0&&(wt=zt,It=qt):w.log("endpt to newendpt is not vert. or horz.",pt,wt,zt)}if(It>=0)break;Gt+=lt(pt,wt),pt=wt}if(It===tt.edgepaths.length){w.log("unclosed perimeter path");break}ht=It,(_t=Ct.indexOf(ht)===-1)&&(ht=Ct[0],Gt+=lt(pt,wt)+"Z",pt=null)}for(ht=0;htYt&&(vt.max=Yt),vt.len=vt.max-vt.min}function Qt(Pt,tn){var Kt,fn=0,dn=.1;return(Math.abs(Pt[0]-Rt)0?+S[m]:0),v.push({type:"Feature",geometry:{type:"Point",coordinates:M},properties:T})}}var C=O.extractOpts(a),L=C.reversescale?O.flipScale(C.colorscale):C.colorscale,D=L[0][1],k=["interpolate",["linear"],["heatmap-density"],0,i.opacity(D)<1?D:i.addOpacity(D,0)];for(m=1;m=0;p--)w.removeLayer(y[p][1])},O.dispose=function(){var w=this.subplot.map;this._removeLayers(),w.removeSource(this.sourceId)},d.exports=function(w,y){var p=y[0].trace,a=new i(w,p.uid),u=a.sourceId,h=c(y),m=a.below=w.belowLookup["trace-"+p.uid];return w.map.addSource(u,{type:"geojson",data:h.geojson}),a._addLayers(h,m),a}},74248:function(d,l,n){var c=n(3400);d.exports=function(b,i){for(var O=0;O"),u.color=function(T,E){var C=T.marker,L=E.mc||C.color,D=E.mlc||C.line.color,k=E.mlw||C.line.width;return c(L)?L:c(D)&&k?D:void 0}(m,_),[u]}}},94704:function(d,l,n){d.exports={attributes:n(20088),layoutAttributes:n(7076),supplyDefaults:n(45432).supplyDefaults,crossTraceDefaults:n(45432).crossTraceDefaults,supplyLayoutDefaults:n(11631),calc:n(23096),crossTraceCalc:n(4804),plot:n(42200),style:n(44544).style,hoverPoints:n(31488),eventData:n(34580),selectPoints:n(45784),moduleType:"trace",name:"funnel",basePlotModule:n(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},7076:function(d){d.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},11631:function(d,l,n){var c=n(3400),b=n(7076);d.exports=function(i,O,w){var y=!1;function p(h,m){return c.coerce(i,O,b,h,m)}for(var a=0;a path").each(function(A){if(!A.isBlank){var x=S.marker;c.select(this).call(i.fill,A.mc||x.color).call(i.stroke,A.mlc||x.line.color).call(b.dashLine,x.line.dash,A.mlw||x.line.width).style("opacity",S.selectedpoints&&!A.selected?O:1)}}),p(_,S,a),_.selectAll(".regions").each(function(){c.select(this).selectAll("path").style("stroke-width",0).call(i.fill,S.connector.fillcolor)}),_.selectAll(".lines").each(function(){var A=S.connector.line;b.lineGroupStyle(c.select(this).selectAll("path"),A.width,A.color,A.dash)})})}}},22332:function(d,l,n){var c=n(74996),b=n(45464),i=n(86968).u,O=n(21776).Ks,w=n(21776).Gw,y=n(92880).extendFlat;d.exports={labels:c.labels,label0:c.label0,dlabel:c.dlabel,values:c.values,marker:{colors:c.marker.colors,line:{color:y({},c.marker.line.color,{dflt:null}),width:y({},c.marker.line.width,{dflt:1}),editType:"calc"},pattern:c.marker.pattern,editType:"calc"},text:c.text,hovertext:c.hovertext,scalegroup:y({},c.scalegroup,{}),textinfo:y({},c.textinfo,{flags:["label","text","value","percent"]}),texttemplate:w({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:y({},b.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:O({},{keys:["label","color","value","text","percent"]}),textposition:y({},c.textposition,{values:["inside","none"],dflt:"inside"}),textfont:c.textfont,insidetextfont:c.insidetextfont,title:{text:c.title.text,font:c.title.font,position:y({},c.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:i({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},91248:function(d,l,n){var c=n(7316);l.name="funnelarea",l.plot=function(b,i,O,w){c.plotBasePlot(l.name,b,i,O,w)},l.clean=function(b,i,O,w){c.cleanBasePlot(l.name,b,i,O,w)}},54e3:function(d,l,n){var c=n(45768);d.exports={calc:function(b,i){return c.calc(b,i)},crossTraceCalc:function(b){c.crossTraceCalc(b,{type:"funnelarea"})}}},92688:function(d,l,n){var c=n(3400),b=n(22332),i=n(86968).Q,O=n(31508).handleText,w=n(74174).handleLabelsAndValues,y=n(74174).handleMarkerDefaults;d.exports=function(p,a,u,h){function m(E,C){return c.coerce(p,a,b,E,C)}var v=m("labels"),_=m("values"),S=w(v,_),A=S.len;if(a._hasLabels=S.hasLabels,a._hasValues=S.hasValues,!a._hasLabels&&a._hasValues&&(m("label0"),m("dlabel")),A){a._length=A,y(p,a,h,m),m("scalegroup");var x,R=m("text"),M=m("texttemplate");if(M||(x=m("textinfo",Array.isArray(R)?"text+percent":"percent")),m("hovertext"),m("hovertemplate"),M||x&&x!=="none"){var T=m("textposition");O(p,a,h,m,T,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}i(a,h,m),m("title.text")&&(m("title.position"),c.coerceFont(m,"title.font",h.font)),m("aspectratio"),m("baseratio")}else a.visible=!1}},62396:function(d,l,n){d.exports={moduleType:"trace",name:"funnelarea",basePlotModule:n(91248),categories:["pie-like","funnelarea","showLegend"],attributes:n(22332),layoutAttributes:n(61280),supplyDefaults:n(92688),supplyLayoutDefaults:n(35384),calc:n(54e3).calc,crossTraceCalc:n(54e3).crossTraceCalc,plot:n(39472),style:n(62096),styleOne:n(10528),meta:{}}},61280:function(d,l,n){var c=n(85204).hiddenlabels;d.exports={hiddenlabels:c,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},35384:function(d,l,n){var c=n(3400),b=n(61280);d.exports=function(i,O){function w(y,p){return c.coerce(i,O,b,y,p)}w("hiddenlabels"),w("funnelareacolorway",O.colorway),w("extendfunnelareacolors")}},39472:function(d,l,n){var c=n(33428),b=n(43616),i=n(3400),O=i.strScale,w=i.strTranslate,y=n(72736),p=n(98184).toMoveInsideBar,a=n(82744),u=a.recordMinTextSize,h=a.clearMinTextSize,m=n(69656),v=n(37820),_=v.attachFxHandlers,S=v.determineInsideTextFont,A=v.layoutAreas,x=v.prerenderTitles,R=v.positionTitleOutside,M=v.formatSliceLabel;function T(E,C){return"l"+(C[0]-E[0])+","+(C[1]-E[1])}d.exports=function(E,C){var L=E._context.staticPlot,D=E._fullLayout;h("funnelarea",D),x(C,E),A(C,D._size),i.makeTraceGroups(D._funnelarealayer,C,"trace").each(function(k){var I=c.select(this),z=k[0],$=z.trace;(function(Q){if(Q.length){var j=Q[0],U=j.trace,X=U.aspectratio,te=U.baseratio;te>.999&&(te=.999);var W,K,oe,q=Math.pow(te,2),Y=j.vTotal,ee=Y,me=Y*q/(1-q)/Y,he=[];for(he.push($e()),K=Q.length-1;K>-1;K--)if(!(oe=Q[K]).hidden){var se=oe.v/ee;me+=se,he.push($e())}var ae=1/0,ce=-1/0;for(K=0;K-1;K--)if(!(oe=Q[K]).hidden){var He=he[De+=1][0],Ve=he[De][1];oe.TL=[-He,Ve],oe.TR=[He,Ve],oe.BL=Ie,oe.BR=ze,oe.pxmid=(Te=oe.TR,Pe=oe.BR,[.5*(Te[0]+Pe[0]),.5*(Te[1]+Pe[1])]),Ie=oe.TL,ze=oe.TR}}function $e(){var Oe,ke={x:Oe=Math.sqrt(me),y:-Oe};return[ke.x,ke.y]}})(k),I.each(function(){var Q=c.select(this).selectAll("g.slice").data(k);Q.enter().append("g").classed("slice",!0),Q.exit().remove(),Q.each(function(U,X){if(U.hidden)c.select(this).selectAll("path,g").remove();else{U.pointNumber=U.i,U.curveNumber=$.index;var te=z.cx,W=z.cy,K=c.select(this),oe=K.selectAll("path.surface").data([U]);oe.enter().append("path").classed("surface",!0).style({"pointer-events":L?"none":"all"}),K.call(_,E,k);var q="M"+(te+U.TR[0])+","+(W+U.TR[1])+T(U.TR,U.BR)+T(U.BR,U.BL)+T(U.BL,U.TL)+"Z";oe.attr("d",q),M(E,U,z);var Y=m.castOption($.textposition,U.pts),ee=K.selectAll("g.slicetext").data(U.text&&Y!=="none"?[0]:[]);ee.enter().append("g").classed("slicetext",!0),ee.exit().remove(),ee.each(function(){var me=i.ensureSingle(c.select(this),"text","",function(_e){_e.attr("data-notex",1)}),he=i.ensureUniformFontSize(E,S($,U,D.font));me.text(U.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(b.font,he).call(y.convertToTspans,E);var se,ae,ce,de=b.bBox(me.node()),ve=Math.min(U.BL[1],U.BR[1])+W,ye=Math.max(U.TL[1],U.TR[1])+W;ae=Math.max(U.TL[0],U.BL[0])+te,ce=Math.min(U.TR[0],U.BR[0])+te,(se=p(ae,ce,ve,ye,de,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"})).fontSize=he.size,u($.type,se,D),k[X].transform=se,i.setTransormAndDisplay(me,se)})}});var j=c.select(this).selectAll("g.titletext").data($.title.text?[0]:[]);j.enter().append("g").classed("titletext",!0),j.exit().remove(),j.each(function(){var U=i.ensureSingle(c.select(this),"text","",function(W){W.attr("data-notex",1)}),X=$.title.text;$._meta&&(X=i.templateString(X,$._meta)),U.text(X).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(b.font,$.title.font).call(y.convertToTspans,E);var te=R(z,D._size);U.attr("transform",w(te.x,te.y)+O(Math.min(1,te.scale))+w(te.tx,te.ty))})})})}},62096:function(d,l,n){var c=n(33428),b=n(10528),i=n(82744).resizeText;d.exports=function(O){var w=O._fullLayout._funnelarealayer.selectAll(".trace");i(O,w,"funnelarea"),w.each(function(y){var p=y[0].trace,a=c.select(this);a.style({opacity:p.opacity}),a.selectAll("path.surface").each(function(u){c.select(this).call(b,u,p,O)})})}},83328:function(d,l,n){var c=n(52904),b=n(45464),i=n(25376),O=n(29736).axisHoverFormat,w=n(21776).Ks,y=n(21776).Gw,p=n(49084),a=n(92880).extendFlat;d.exports=a({z:{valType:"data_array",editType:"calc"},x:a({},c.x,{impliedEdits:{xtype:"array"}}),x0:a({},c.x0,{impliedEdits:{xtype:"scaled"}}),dx:a({},c.dx,{impliedEdits:{xtype:"scaled"}}),y:a({},c.y,{impliedEdits:{ytype:"array"}}),y0:a({},c.y0,{impliedEdits:{ytype:"scaled"}}),dy:a({},c.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:a({},c.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:a({},c.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:a({},c.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:a({},c.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:a({},c.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:a({},c.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:O("x"),yhoverformat:O("y"),zhoverformat:O("z",1),hovertemplate:w(),texttemplate:y({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:i({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:a({},b.showlegend,{dflt:!1})},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},19512:function(d,l,n){var c=n(24040),b=n(3400),i=n(54460),O=n(1220),w=n(55480),y=n(47128),p=n(2872),a=n(26136),u=n(70448),h=n(11240),m=n(35744),v=n(39032).BADNUM;function _(S){for(var A=[],x=S.length,R=0;R1){var de=(ce[ce.length-1]-ce[0])/(ce.length-1),ve=Math.abs(de/100);for(I=0;Ive)return!1}return!0}($.rangebreaks||Q.rangebreaks)&&(k=function(ce,de,ve){for(var ye=[],_e=-1,Se=0;Se=0;p--)(a=((v[[(O=(y=_[p])[0])-1,w=y[1]]]||x)[2]+(v[[O+1,w]]||x)[2]+(v[[O,w-1]]||x)[2]+(v[[O,w+1]]||x)[2])/20)&&(u[y]=[O,w,a],_.splice(p,1),h=!0);if(!h)throw"findEmpties iterated with no new neighbors";for(y in u)v[y]=u[y],m.push(u[y])}return m.sort(function(M,T){return T[2]-M[2]})}},55512:function(d,l,n){var c=n(93024),b=n(3400),i=b.isArrayOrTypedArray,O=n(54460),w=n(8932).extractOpts;d.exports=function(y,p,a,u,h){h||(h={});var m,v,_,S,A=h.isContour,x=y.cd[0],R=x.trace,M=y.xa,T=y.ya,E=x.x,C=x.y,L=x.z,D=x.xCenter,k=x.yCenter,I=x.zmask,z=R.zhoverformat,$=E,Q=C;if(y.index!==!1){try{_=Math.round(y.index[1]),S=Math.round(y.index[0])}catch{return void b.error("Error hovering on heatmap, pointNumber must be [row,col], found:",y.index)}if(_<0||_>=L[0].length||S<0||S>L.length)return}else{if(c.inbox(p-E[0],p-E[E.length-1],0)>0||c.inbox(a-C[0],a-C[C.length-1],0)>0)return;if(A){var j;for($=[2*E[0]-E[1]],j=1;jT&&(C=Math.max(C,Math.abs(w[u][h]-M)/(E-T))))}return C}d.exports=function(w,y){var p,a=1;for(O(w,y),p=0;p.01;p++)a=O(w,y,i(a));return a>.01&&c.log("interp2d didn't converge quickly",a),w}},39096:function(d,l,n){var c=n(3400);d.exports=function(b,i){b("texttemplate");var O=c.extendFlat({},i.font,{color:"auto",size:"auto"});c.coerceFont(b,"textfont",O)}},35744:function(d,l,n){var c=n(24040),b=n(3400).isArrayOrTypedArray;d.exports=function(i,O,w,y,p,a){var u,h,m,v=[],_=c.traceIs(i,"contour"),S=c.traceIs(i,"histogram"),A=c.traceIs(i,"gl2d");if(b(O)&&O.length>1&&!S&&a.type!=="category"){var x=O.length;if(!(x<=p))return _?O.slice(0,p):O.slice(0,p+1);if(_||A)v=Array.from(O).slice(0,p);else if(p===1)v=a.type==="log"?[.5*O[0],2*O[0]]:[O[0]-.5,O[0]+.5];else if(a.type==="log"){for(v=[Math.pow(O[0],1.5)/Math.pow(O[1],.5)],m=1;m0;)U=z.c2p(ce[K]),K--;for(U0;)W=$.c2p(de[K]),K--;W=z._length||U<=0||te>=$._length||W<=0)return Y.selectAll("image").data([]).exit().remove(),void M(Y);De==="fast"?(Ve=Pe,$e=Te):(Ve=Oe,$e=ke);var Le=document.createElement("canvas");Le.width=Ve,Le.height=$e;var We,Ue,Ze=Le.getContext("2d",{willReadFrequently:!0}),Xe=m(me,{noNumericCheck:!0,returnArray:!0});De==="fast"?(We=Ie?function(Pn){return Pe-1-Pn}:y.identity,Ue=ze?function(Pn){return Te-1-Pn}:y.identity):(We=function(Pn){return y.constrain(Math.round(z.c2p(ce[Pn])-j),0,Oe)},Ue=function(Pn){return y.constrain(Math.round($.c2p(de[Pn])-te),0,ke)});var tt,Ee,Ne,je,nt=Ue(0),ot=[nt,nt],Ge=Ie?0:1,ht=ze?0:1,pt=0,wt=0,Dt=0,It=0;function qt(Pn,Yn){if(Pn!==void 0){var br=Xe(Pn);return br[0]=Math.round(br[0]),br[1]=Math.round(br[1]),br[2]=Math.round(br[2]),pt+=Yn,wt+=br[0]*Yn,Dt+=br[1]*Yn,It+=br[2]*Yn,br}return[0,0,0,0]}function en(Pn,Yn,br,dr){var Cr=Pn[br.bin0];if(Cr===void 0)return qt(void 0,1);var io,Qr=Pn[br.bin1],Wr=Yn[br.bin0],bo=Yn[br.bin1],Bn=Qr-Cr||0,hr=Wr-Cr||0;return io=Qr===void 0?bo===void 0?0:Wr===void 0?2*(bo-Cr):2*(2*bo-Wr-Cr)/3:bo===void 0?Wr===void 0?0:2*(2*Cr-Qr-Wr)/3:Wr===void 0?2*(2*bo-Qr-Cr)/3:bo+Cr-Qr-Wr,qt(Cr+br.frac*Bn+dr.frac*(hr+br.frac*io))}if(De!=="default"){var Gt,Ct=0;try{Gt=new Uint8Array(Ve*$e*4)}catch{Gt=new Array(Ve*$e*4)}if(De==="smooth"){var _t,nn,gn,bn=ve||ce,mn=ye||de,vt=new Array(bn.length),bt=new Array(mn.length),lt=new Array(Oe),yt=ve?E:T,zt=ye?E:T;for(K=0;KEn||En>$._length))for(oe=dn;oejn||jn>z._length)){var xr=a({x:In,y:er},me,L._fullLayout);xr.x=In,xr.y=er;var Sr=ee.z[K][oe];Sr===void 0?(xr.z="",xr.zLabel=""):(xr.z=Sr,xr.zLabel=w.tickText(Pt,Sr,"hover").text);var ar=ee.text&&ee.text[K]&&ee.text[K][oe];ar!==void 0&&ar!==!1||(ar=""),xr.text=ar;var Fn=y.texttemplateString(Yt,xr,L._fullLayout._d3locale,xr,me._meta||{});if(Fn){var ir=Fn.split("
"),Wn=ir.length,Kn=0;for(q=0;q0&&(T=!0);for(var L=0;Ly){var p=y-O[b];return O[b]=y,p}}return 0},max:function(b,i,O,w){var y=w[i];if(c(y)){if(y=Number(y),!c(O[b]))return O[b]=y,y;if(O[b]p?_>O?_>1.1*b?b:_>1.1*i?i:O:_>w?w:_>y?y:p:Math.pow(10,Math.floor(Math.log(_)/Math.LN10))}function m(_,S,A,x,R,M){if(x&&_>O){var T=v(S,R,M),E=v(A,R,M),C=_===b?0:1;return T[C]!==E[C]}return Math.floor(A/_)-Math.floor(S/_)>.1}function v(_,S,A){var x=S.c2d(_,b,A).split("-");return x[0]===""&&(x.unshift(),x[0]="-"+x[0]),x}d.exports=function(_,S,A,x,R){var M,T,E=-1.1*S,C=-.1*S,L=_-C,D=A[0],k=A[1],I=Math.min(u(D+C,D+L,x,R),u(k+C,k+L,x,R)),z=Math.min(u(D+E,D+C,x,R),u(k+E,k+C,x,R));if(I>z&&zO){var $=M===b?1:6,Q=M===b?"M12":"M1";return function(j,U){var X=x.c2d(j,b,R),te=X.indexOf("-",$);te>0&&(X=X.substr(0,te));var W=x.d2c(X,0,R);if(W_.r2l(de)&&(ye=O.tickIncrement(ye,z.size,!0,T)),he.start=_.l2r(ye),ce||b.nestedProperty(v,D+".start").set(he.start)}var _e=z.end,Se=_.r2l(me.end),Te=Se!==void 0;if((z.endFound||Te)&&Se!==_.r2l(_e)){var Pe=Te?Se:b.aggNums(Math.max,null,E);he.end=_.l2r(Pe),Te||b.nestedProperty(v,D+".start").set(he.end)}var Ie="autobin"+S;return v._input[Ie]===!1&&(v._input[D]=b.extendFlat({},v[D]||{}),delete v._input[Ie],delete v[Ie]),[he,E]}d.exports={calc:function(m,v){var _,S,A,x,R=[],M=[],T=v.orientation==="h",E=O.getFromId(m,T?v.yaxis:v.xaxis),C=T?"y":"x",L={x:"y",y:"x"}[C],D=v[C+"calendar"],k=v.cumulative,I=h(m,v,E,C),z=I[0],$=I[1],Q=typeof z.size=="string",j=[],U=Q?j:z,X=[],te=[],W=[],K=0,oe=v.histnorm,q=v.histfunc,Y=oe.indexOf("density")!==-1;k.enabled&&Y&&(oe=oe.replace(/ ?density$/,""),Y=!1);var ee,me=q==="max"||q==="min"?null:0,he=y.count,se=p[oe],ae=!1,ce=function(ke){return E.r2c(ke,0,D)};for(b.isArrayOrTypedArray(v[L])&&q!=="count"&&(ee=v[L],ae=q==="avg",he=y[q]),_=ce(z.start),A=ce(z.end)+(_-O.tickIncrement(_,z.size,!1,D))/1e6;_=0&&x<_e&&(K+=he(x,_,M,ee,te),Se&&W[x].length&&ze!==$[W[x][0]]&&(Se=!1),W[x].push(_),Ie[_]=x,Te=Math.min(Te,ze-j[x]),Pe=Math.min(Pe,j[x+1]-ze))}ve.leftGap=Te,ve.rightGap=Pe,Se||(ye=function(ke,Le){return function(){var We=m._fullLayout._roundFnOpts[de];return u(We.leftGap,We.rightGap,j,E,D)(ke,Le)}}),ae&&(K=a(M,te)),se&&se(M,K,X),k.enabled&&function(ke,Le,We){var Ue,Ze,Xe;function tt(Ne){Xe=ke[Ne],ke[Ne]/=2}function Ee(Ne){Ze=ke[Ne],ke[Ne]=Xe+Ze/2,Xe+=Ze}if(We==="half")if(Le==="increasing")for(tt(0),Ue=1;Ue=0;Ue--)Ee(Ue);else if(Le==="increasing"){for(Ue=1;Ue=0;Ue--)ke[Ue]+=ke[Ue+1];We==="exclude"&&(ke.push(0),ke.shift())}}(M,k.direction,k.currentbin);var De=Math.min(R.length,M.length),He=[],Ve=0,$e=De-1;for(_=0;_=Ve;_--)if(M[_]){$e=_;break}for(_=Ve;_<=$e;_++)if(c(R[_])&&c(M[_])){var Oe={p:R[_],s:M[_],b:0};k.enabled||(Oe.pts=W[_],Se?Oe.ph0=Oe.ph1=W[_].length?$[W[_][0]]:R[_]:(v._computePh=!0,Oe.ph0=ye(j[_]),Oe.ph1=ye(j[_+1],!0))),He.push(Oe)}return He.length===1&&(He[0].width1=O.tickIncrement(He[0].p,z.size,!1,D)-He[0].p),w(He,v),b.isArrayOrTypedArray(v.selectedpoints)&&b.tagSelected(He,v,Ie),He},calcAllAutoBins:h}},73316:function(d){d.exports={eventDataKeys:["binNumber"]}},80536:function(d,l,n){var c=n(3400),b=n(79811),i=n(24040).traceIs,O=n(20011),w=n(31508).validateCornerradius,y=c.nestedProperty,p=n(71888).getAxisGroup,a=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],u=["x","y"];d.exports=function(h,m){var v,_,S,A,x,R,M,T=m._histogramBinOpts={},E=[],C={},L=[];function D(me,he){return c.coerce(v._input,v,v._module.attributes,me,he)}function k(me){return me.orientation==="v"?"x":"y"}function I(me,he,se){var ae=me.uid+"__"+se;he||(he=ae);var ce=function(_e,Se){return b.getFromTrace({_fullLayout:m},_e,Se).type}(me,se),de=me[se+"calendar"]||"",ve=T[he],ye=!0;ve&&(ce===ve.axType&&de===ve.calendar?(ye=!1,ve.traces.push(me),ve.dirs.push(se)):(he=ae,ce!==ve.axType&&c.warn(["Attempted to group the bins of trace",me.index,"set on a","type:"+ce,"axis","with bins on","type:"+ve.axType,"axis."].join(" ")),de!==ve.calendar&&c.warn(["Attempted to group the bins of trace",me.index,"set with a",de,"calendar","with bins",ve.calendar?"on a "+ve.calendar+" calendar":"w/o a set calendar"].join(" ")))),ye&&(T[he]={traces:[me],dirs:[se],axType:ce,calendar:me[se+"calendar"]||""}),me["_"+se+"bingroup"]=he}for(x=0;xj&&I.splice(j,I.length-j),Q.length>j&&Q.splice(j,Q.length-j);var U=[],X=[],te=[],W=typeof k.size=="string",K=typeof $.size=="string",oe=[],q=[],Y=W?oe:k,ee=K?q:$,me=0,he=[],se=[],ae=v.histnorm,ce=v.histfunc,de=ae.indexOf("density")!==-1,ve=ce==="max"||ce==="min"?null:0,ye=i.count,_e=O[ae],Se=!1,Te=[],Pe=[],Ie="z"in v?v.z:"marker"in v&&Array.isArray(v.marker.color)?v.marker.color:"";Ie&&ce!=="count"&&(Se=ce==="avg",ye=i[ce]);var ze=k.size,De=C(k.start),He=C(k.end)+(De-b.tickIncrement(De,ze,!1,T))/1e6;for(_=De;_=0&&A<$e&&x>=0&&x-1,flipY:X.tiling.flip.indexOf("y")>-1,orientation:X.tiling.orientation,pad:{inner:X.tiling.pad},maxDepth:X._maxDepth}).descendants(),q=1/0,Y=-1/0;oe.forEach(function(ae){var ce=ae.depth;ce>=X._maxDepth?(ae.x0=ae.x1=(ae.x0+ae.x1)/2,ae.y0=ae.y1=(ae.y0+ae.y1)/2):(q=Math.min(q,ce),Y=Math.max(Y,ce))}),A=A.data(oe,a.getPtId),X._maxVisibleLayers=isFinite(Y)?Y-q+1:0,A.enter().append("g").classed("slice",!0),I(A,m,{},[R,M],C),A.order();var ee=null;if(k&&Q){var me=a.getPtId(Q);A.each(function(ae){ee===null&&a.getPtId(ae)===me&&(ee={x0:ae.x0,x1:ae.x1,y0:ae.y0,y1:ae.y1})})}var he=function(){return ee||{x0:0,x1:R,y0:0,y1:M}},se=A;return k&&(se=se.transition().each("end",function(){var ae=c.select(this);a.setSliceCursor(ae,v,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),se.each(function(ae){ae._x0=T(ae.x0),ae._x1=T(ae.x1),ae._y0=E(ae.y0),ae._y1=E(ae.y1),ae._hoverX=T(ae.x1-X.tiling.pad),ae._hoverY=E(K?ae.y1-X.tiling.pad/2:ae.y0+X.tiling.pad/2);var ce=c.select(this),de=b.ensureSingle(ce,"path","surface",function(Se){Se.style("pointer-events",j?"none":"all")});k?de.transition().attrTween("d",function(Se){var Te=z(Se,m,he(),[R,M],{orientation:X.tiling.orientation,flipX:X.tiling.flip.indexOf("x")>-1,flipY:X.tiling.flip.indexOf("y")>-1});return function(Pe){return C(Te(Pe))}}):de.attr("d",C),ce.call(u,S,v,_,{styleOne:y,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,v,{isTransitioning:v._transitioning}),de.call(y,ae,X,v,{hovered:!1}),ae.x0===ae.x1||ae.y0===ae.y1?ae._text="":ae._text=h(ae,S,X,_,U)||"";var ve=b.ensureSingle(ce,"g","slicetext"),ye=b.ensureSingle(ve,"text","",function(Se){Se.attr("data-notex",1)}),_e=b.ensureUniformFontSize(v,a.determineTextFont(X,ae,U.font));ye.text(ae._text||" ").classed("slicetext",!0).attr("text-anchor",W?"end":te?"start":"middle").call(i.font,_e).call(O.convertToTspans,v),ae.textBB=i.bBox(ye.node()),ae.transform=L(ae,{fontSize:_e.size}),ae.transform.fontSize=_e.size,k?ye.transition().attrTween("transform",function(Se){var Te=$(Se,m,he(),[R,M]);return function(Pe){return D(Te(Pe))}}):ye.attr("transform",D(ae))}),ee}},29044:function(d,l,n){d.exports={moduleType:"trace",name:"icicle",basePlotModule:n(59564),categories:[],animatable:!0,attributes:n(97376),layoutAttributes:n(90676),supplyDefaults:n(7045),supplyLayoutDefaults:n(4304),calc:n(73876).r,crossTraceCalc:n(73876).q,plot:n(38364),style:n(47192).style,colorbar:n(5528),meta:{}}},90676:function(d){d.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},4304:function(d,l,n){var c=n(3400),b=n(90676);d.exports=function(i,O){function w(y,p){return c.coerce(i,O,b,y,p)}w("iciclecolorway",O.colorway),w("extendiciclecolors")}},25132:function(d,l,n){var c=n(74148),b=n(83024);d.exports=function(i,O,w){var y=w.flipX,p=w.flipY,a=w.orientation==="h",u=w.maxDepth,h=O[0],m=O[1];u&&(h=(i.height+1)*O[0]/Math.min(i.height+1,u),m=(i.height+1)*O[1]/Math.min(i.height+1,u));var v=c.partition().padding(w.pad.inner).size(a?[O[1],h]:[O[0],m])(i);return(a||y||p)&&b(v,O,{swapXY:a,flipX:y,flipY:p}),v}},38364:function(d,l,n){var c=n(95808),b=n(67880);d.exports=function(i,O,w,y){return c(i,O,w,y,{type:"icicle",drawDescendants:b})}},47192:function(d,l,n){var c=n(33428),b=n(76308),i=n(3400),O=n(82744).resizeText,w=n(60404);function y(p,a,u,h){var m=a.data.data,v=!a.children,_=m.i,S=i.castOption(u,_,"marker.line.color")||b.defaultLine,A=i.castOption(u,_,"marker.line.width")||0;p.call(w,a,u,h).style("stroke-width",A).call(b.stroke,S).style("opacity",v?u.leaf.opacity:null)}d.exports={style:function(p){var a=p._fullLayout._iciclelayer.selectAll(".trace");O(p,a,"icicle"),a.each(function(u){var h=c.select(this),m=u[0].trace;h.style("opacity",m.opacity),h.selectAll("path.surface").each(function(v){c.select(this).call(y,v,m,p)})})},styleOne:y}},95188:function(d,l,n){for(var c=n(45464),b=n(21776).Ks,i=n(92880).extendFlat,O=n(47797).colormodel,w=["rgb","rgba","rgba256","hsl","hsla"],y=[],p=[],a=0;a0||c.inbox(p-a.y0,p-(a.y0+a.h*u.dy),0)>0)){var v,_=Math.floor((y-a.x0)/u.dx),S=Math.floor(Math.abs(p-a.y0)/u.dy);if(u._hasZ?v=a.z[S][_]:u._hasSource&&(v=u._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(_,S,1,1).data),v){var A,x=a.hi||u.hoverinfo;if(x){var R=x.split("+");R.indexOf("all")!==-1&&(R=["color"]),R.indexOf("color")!==-1&&(A=!0)}var M,T=O.colormodel[u.colormodel],E=T.colormodel||u.colormodel,C=E.length,L=u._scaler(v),D=T.suffix,k=[];(u.hovertemplate||A)&&(k.push("["+[L[0]+D[0],L[1]+D[1],L[2]+D[2]].join(", ")),C===4&&k.push(", "+L[3]+D[3]),k.push("]"),k=k.join(""),w.extraText=E.toUpperCase()+": "+k),i(u.hovertext)&&i(u.hovertext[S])?M=u.hovertext[S][_]:i(u.text)&&i(u.text[S])&&(M=u.text[S][_]);var I=m.c2p(a.y0+(S+.5)*u.dy),z=a.x0+(_+.5)*u.dx,$=a.y0+(S+.5)*u.dy,Q="["+v.slice(0,u.colormodel.length).join(", ")+"]";return[b.extendFlat(w,{index:[S,_],x0:h.c2p(a.x0+_*u.dx),x1:h.c2p(a.x0+(_+1)*u.dx),y0:I,y1:I,color:L,xVal:z,xLabelVal:z,yVal:$,yLabelVal:$,zLabelVal:Q,text:M,hovertemplateLabels:{zLabel:Q,colorLabel:k,"color[0]Label":L[0]+D[0],"color[1]Label":L[1]+D[1],"color[2]Label":L[2]+D[2],"color[3]Label":L[3]+D[3]}})]}}}},48928:function(d,l,n){d.exports={attributes:n(95188),supplyDefaults:n(13188),calc:n(93336),plot:n(63715),style:n(28576),hoverPoints:n(24892),eventData:n(79972),moduleType:"trace",name:"image",basePlotModule:n(57952),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},63715:function(d,l,n){var c=n(33428),b=n(3400),i=b.strTranslate,O=n(9616),w=n(47797),y=n(9188),p=n(2264).STYLE;d.exports=function(a,u,h,m){var v=u.xaxis,_=u.yaxis,S=!a._context._exportedPlot&&y();b.makeTraceGroups(m,h,"im").each(function(A){var x=c.select(this),R=A[0],M=R.trace,T=(M.zsmooth==="fast"||M.zsmooth===!1&&S)&&!M._hasZ&&M._hasSource&&v.type==="linear"&&_.type==="linear";M._realImage=T;var E,C,L,D,k,I,z=R.z,$=R.x0,Q=R.y0,j=R.w,U=R.h,X=M.dx,te=M.dy;for(I=0;E===void 0&&I0;)C=v.c2p($+I*X),I--;for(I=0;D===void 0&&I0;)k=_.c2p(Q+I*te),I--;Cee[0];if(me||he){var se=E+W/2,ae=D+K/2;q+="transform:"+i(se+"px",ae+"px")+"scale("+(me?-1:1)+","+(he?-1:1)+")"+i(-se+"px",-ae+"px")+";"}}oe.attr("style",q);var ce=new Promise(function(ve){if(M._hasZ)ve();else if(M._hasSource)if(M._canvas&&M._canvas.el.width===j&&M._canvas.el.height===U&&M._canvas.source===M.source)ve();else{var ye=document.createElement("canvas");ye.width=j,ye.height=U;var _e=ye.getContext("2d",{willReadFrequently:!0});M._image=M._image||new Image;var Se=M._image;Se.onload=function(){_e.drawImage(Se,0,0),M._canvas={el:ye,source:M.source},ve()},Se.setAttribute("src",M.source)}}).then(function(){var ve,ye;if(M._hasZ)ye=de(function(Se,Te){var Pe=z[Te][Se];return b.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),ve=ye.toDataURL("image/png");else if(M._hasSource)if(T)ve=M.source;else{var _e=M._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,j,U).data;ye=de(function(Se,Te){var Pe=4*(Te*j+Se);return[_e[Pe],_e[Pe+1],_e[Pe+2],_e[Pe+3]]}),ve=ye.toDataURL("image/png")}oe.attr({"xlink:href":ve,height:K,width:W,x:E,y:D})});a._promises.push(ce)}function de(ve){var ye=document.createElement("canvas");ye.width=W,ye.height=K;var _e,Se=ye.getContext("2d",{willReadFrequently:!0}),Te=function(Le){return b.constrain(Math.round(v.c2p($+Le*X)-E),0,W)},Pe=function(Le){return b.constrain(Math.round(_.c2p(Q+Le*te)-D),0,K)},Ie=w.colormodel[M.colormodel],ze=Ie.colormodel||M.colormodel,De=Ie.fmt;for(I=0;I0}function C(z){z.each(function($){x.stroke(c.select(this),$.line.color)}).each(function($){x.fill(c.select(this),$.color)}).style("stroke-width",function($){return $.line.width})}function L(z,$,Q){var j=z._fullLayout,U=O.extendFlat({type:"linear",ticks:"outside",range:Q,showline:!0},$),X={type:"linear",_id:"x"+$._id},te={letter:"x",font:j.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function W(K,oe){return O.coerce(U,X,A,K,oe)}return _(U,X,W,te,j),S(U,X,W,te),X}function D(z,$,Q){return[Math.min($/z.width,Q/z.height),z,$+"x"+Q]}function k(z,$,Q,j){var U=document.createElementNS("http://www.w3.org/2000/svg","text"),X=c.select(U);return X.text(z).attr("x",0).attr("y",0).attr("text-anchor",Q).attr("data-unformatted",z).call(m.convertToTspans,j).call(u.font,$),u.bBox(X.node())}function I(z,$,Q,j,U,X){var te="_cache"+$;z[te]&&z[te].key===U||(z[te]={key:U,value:Q});var W=O.aggNums(X,null,[z[te].value,j],2);return z[te].value=W,W}d.exports=function(z,$,Q,j){var U,X=z._fullLayout;E(Q)&&j&&(U=j()),O.makeTraceGroups(X._indicatorlayer,$,"trace").each(function(te){var W,K,oe,q,Y,ee=te[0].trace,me=c.select(this),he=ee._hasGauge,se=ee._isAngular,ae=ee._isBullet,ce=ee.domain,de={w:X._size.w*(ce.x[1]-ce.x[0]),h:X._size.h*(ce.y[1]-ce.y[0]),l:X._size.l+X._size.w*ce.x[0],r:X._size.r+X._size.w*(1-ce.x[1]),t:X._size.t+X._size.h*(1-ce.y[1]),b:X._size.b+X._size.h*ce.y[0]},ve=de.l+de.w/2,ye=de.t+de.h/2,_e=Math.min(de.w/2,de.h),Se=h.innerRadius*_e,Te=ee.align||"center";if(K=ye,he){if(se&&(W=ve,K=ye+_e/2,oe=function(Oe){return function(ke,Le){return[Le/Math.sqrt(ke.width/2*(ke.width/2)+ke.height*ke.height),ke,Le]}(Oe,.9*Se)}),ae){var Pe=h.bulletPadding,Ie=1-h.bulletNumberDomainSize+Pe;W=de.l+(Ie+(1-Ie)*M[Te])*de.w,oe=function(Oe){return D(Oe,(h.bulletNumberDomainSize-Pe)*de.w,de.h)}}}else W=de.l+M[Te]*de.w,oe=function(Oe){return D(Oe,de.w,de.h)};(function(Oe,ke,Le,We){var Ue,Ze,Xe,tt=Le[0].trace,Ee=We.numbersX,Ne=We.numbersY,je=tt.align||"center",nt=R[je],ot=We.transitionOpts,Ge=We.onComplete,ht=O.ensureSingle(ke,"g","numbers"),pt=[];tt._hasNumber&&pt.push("number"),tt._hasDelta&&(pt.push("delta"),tt.delta.position==="left"&&pt.reverse());var wt=ht.selectAll("text").data(pt);function Dt(gn,bn,mn,vt){if(!gn.match("s")||mn>=0==vt>=0||bn(mn).slice(-1).match(T)||bn(vt).slice(-1).match(T))return bn;var bt=gn.slice().replace("s","f").replace(/\d+/,function(yt){return parseInt(yt)-1}),lt=L(Oe,{tickformat:bt});return function(yt){return Math.abs(yt)<1?v.tickText(lt,yt).text:bn(yt)}}wt.enter().append("text"),wt.attr("text-anchor",function(){return nt}).attr("class",function(gn){return gn}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),wt.exit().remove();var It,qt=tt.mode+tt.align;if(tt._hasDelta&&(It=function(){var gn=L(Oe,{tickformat:tt.delta.valueformat},tt._range);gn.setScale(),v.prepTicks(gn);var bn=function(it){return v.tickText(gn,it).text},mn=tt.delta.suffix,vt=tt.delta.prefix,bt=function(it){return tt.delta.relative?it.relativeDelta:it.delta},lt=function(it,at){return it===0||typeof it!="number"||isNaN(it)?"-":(it>0?tt.delta.increasing.symbol:tt.delta.decreasing.symbol)+vt+at(it)+mn},yt=function(it){return it.delta>=0?tt.delta.increasing.color:tt.delta.decreasing.color};tt._deltaLastValue===void 0&&(tt._deltaLastValue=bt(Le[0]));var zt=ht.select("text.delta");function Rt(){zt.text(lt(bt(Le[0]),bn)).call(x.fill,yt(Le[0])).call(m.convertToTspans,Oe)}return zt.call(u.font,tt.delta.font).call(x.fill,yt({delta:tt._deltaLastValue})),E(ot)?zt.transition().duration(ot.duration).ease(ot.easing).tween("text",function(){var it=c.select(this),at=bt(Le[0]),Lt=tt._deltaLastValue,xt=Dt(tt.delta.valueformat,bn,Lt,at),Zt=i(Lt,at);return tt._deltaLastValue=at,function(Xt){it.text(lt(Zt(Xt),xt)),it.call(x.fill,yt({delta:Zt(Xt)}))}}).each("end",function(){Rt(),Ge&&Ge()}).each("interrupt",function(){Rt(),Ge&&Ge()}):Rt(),Ze=k(lt(bt(Le[0]),bn),tt.delta.font,nt,Oe),zt}(),qt+=tt.delta.position+tt.delta.font.size+tt.delta.font.family+tt.delta.valueformat,qt+=tt.delta.increasing.symbol+tt.delta.decreasing.symbol,Xe=Ze),tt._hasNumber&&(function(){var gn=L(Oe,{tickformat:tt.number.valueformat},tt._range);gn.setScale(),v.prepTicks(gn);var bn=function(yt){return v.tickText(gn,yt).text},mn=tt.number.suffix,vt=tt.number.prefix,bt=ht.select("text.number");function lt(){var yt=typeof Le[0].y=="number"?vt+bn(Le[0].y)+mn:"-";bt.text(yt).call(u.font,tt.number.font).call(m.convertToTspans,Oe)}E(ot)?bt.transition().duration(ot.duration).ease(ot.easing).each("end",function(){lt(),Ge&&Ge()}).each("interrupt",function(){lt(),Ge&&Ge()}).attrTween("text",function(){var yt=c.select(this),zt=i(Le[0].lastY,Le[0].y);tt._lastValue=Le[0].y;var Rt=Dt(tt.number.valueformat,bn,Le[0].lastY,Le[0].y);return function(it){yt.text(vt+Rt(zt(it))+mn)}}):lt(),Ue=k(vt+bn(Le[0].y)+mn,tt.number.font,nt,Oe)}(),qt+=tt.number.font.size+tt.number.font.family+tt.number.valueformat+tt.number.suffix+tt.number.prefix,Xe=Ue),tt._hasDelta&&tt._hasNumber){var en,Gt,Ct=[(Ue.left+Ue.right)/2,(Ue.top+Ue.bottom)/2],_t=[(Ze.left+Ze.right)/2,(Ze.top+Ze.bottom)/2],nn=.75*tt.delta.font.size;tt.delta.position==="left"&&(en=I(tt,"deltaPos",0,-1*(Ue.width*M[tt.align]+Ze.width*(1-M[tt.align])+nn),qt,Math.min),Gt=Ct[1]-_t[1],Xe={width:Ue.width+Ze.width+nn,height:Math.max(Ue.height,Ze.height),left:Ze.left+en,right:Ue.right,top:Math.min(Ue.top,Ze.top+Gt),bottom:Math.max(Ue.bottom,Ze.bottom+Gt)}),tt.delta.position==="right"&&(en=I(tt,"deltaPos",0,Ue.width*(1-M[tt.align])+Ze.width*M[tt.align]+nn,qt,Math.max),Gt=Ct[1]-_t[1],Xe={width:Ue.width+Ze.width+nn,height:Math.max(Ue.height,Ze.height),left:Ue.left,right:Ze.right+en,top:Math.min(Ue.top,Ze.top+Gt),bottom:Math.max(Ue.bottom,Ze.bottom+Gt)}),tt.delta.position==="bottom"&&(en=null,Gt=Ze.height,Xe={width:Math.max(Ue.width,Ze.width),height:Ue.height+Ze.height,left:Math.min(Ue.left,Ze.left),right:Math.max(Ue.right,Ze.right),top:Ue.bottom-Ue.height,bottom:Ue.bottom+Ze.height}),tt.delta.position==="top"&&(en=null,Gt=Ue.top,Xe={width:Math.max(Ue.width,Ze.width),height:Ue.height+Ze.height,left:Math.min(Ue.left,Ze.left),right:Math.max(Ue.right,Ze.right),top:Ue.bottom-Ue.height-Ze.height,bottom:Ue.bottom}),It.attr({dx:en,dy:Gt})}(tt._hasNumber||tt._hasDelta)&&ht.attr("transform",function(){var gn=We.numbersScaler(Xe);qt+=gn[2];var bn,mn=I(tt,"numbersScale",1,gn[0],qt,Math.min);tt._scaleNumbers||(mn=1),bn=tt._isAngular?Ne-mn*Xe.bottom:Ne-mn*(Xe.top+Xe.bottom)/2,tt._numbersTop=mn*Xe.top+bn;var vt=Xe[je];je==="center"&&(vt=(Xe.left+Xe.right)/2);var bt=Ee-mn*vt;return bt=I(tt,"numbersTranslate",0,bt,qt,Math.max),y(bt,bn)+w(mn)})})(z,me,te,{numbersX:W,numbersY:K,numbersScaler:oe,transitionOpts:Q,onComplete:U}),he&&(q={range:ee.gauge.axis.range,color:ee.gauge.bgcolor,line:{color:ee.gauge.bordercolor,width:0},thickness:1},Y={range:ee.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:ee.gauge.bordercolor,width:ee.gauge.borderwidth},thickness:1});var ze=me.selectAll("g.angular").data(se?te:[]);ze.exit().remove();var De=me.selectAll("g.angularaxis").data(se?te:[]);De.exit().remove(),se&&function(Oe,ke,Le,We){var Ue,Ze,Xe,tt,Ee=Le[0].trace,Ne=We.size,je=We.radius,nt=We.innerRadius,ot=We.gaugeBg,Ge=We.gaugeOutline,ht=[Ne.l+Ne.w/2,Ne.t+Ne.h/2+je/2],pt=We.gauge,wt=We.layer,Dt=We.transitionOpts,It=We.onComplete,qt=Math.PI/2;function en(Xt){var Yt=Ee.gauge.axis.range[0],Qt=(Xt-Yt)/(Ee.gauge.axis.range[1]-Yt)*Math.PI-qt;return Qt<-qt?-qt:Qt>qt?qt:Qt}function Gt(Xt){return c.svg.arc().innerRadius((nt+je)/2-Xt/2*(je-nt)).outerRadius((nt+je)/2+Xt/2*(je-nt)).startAngle(-qt)}function Ct(Xt){Xt.attr("d",function(Yt){return Gt(Yt.thickness).startAngle(en(Yt.range[0])).endAngle(en(Yt.range[1]))()})}pt.enter().append("g").classed("angular",!0),pt.attr("transform",y(ht[0],ht[1])),wt.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),wt.selectAll("g.xangularaxistick,path,text").remove(),(Ue=L(Oe,Ee.gauge.axis)).type="linear",Ue.range=Ee.gauge.axis.range,Ue._id="xangularaxis",Ue.ticklabeloverflow="allow",Ue.setScale();var _t=function(Xt){return(Ue.range[0]-Xt.x)/(Ue.range[1]-Ue.range[0])*Math.PI+Math.PI},nn={},gn=v.makeLabelFns(Ue,0).labelStandoff;nn.xFn=function(Xt){var Yt=_t(Xt);return Math.cos(Yt)*gn},nn.yFn=function(Xt){var Yt=_t(Xt),Qt=Math.sin(Yt)>0?.2:1;return-Math.sin(Yt)*(gn+Xt.fontSize*Qt)+Math.abs(Math.cos(Yt))*(Xt.fontSize*a)},nn.anchorFn=function(Xt){var Yt=_t(Xt),Qt=Math.cos(Yt);return Math.abs(Qt)<.1?"middle":Qt>0?"start":"end"},nn.heightFn=function(Xt,Yt,Qt){var Pt=_t(Xt);return-.5*(1+Math.sin(Pt))*Qt};var bn=function(Xt){return y(ht[0]+je*Math.cos(Xt),ht[1]-je*Math.sin(Xt))};if(Xe=function(Xt){return bn(_t(Xt))},Ze=v.calcTicks(Ue),tt=v.getTickSigns(Ue)[2],Ue.visible){tt=Ue.ticks==="inside"?-1:1;var mn=(Ue.linewidth||1)/2;v.drawTicks(Oe,Ue,{vals:Ze,layer:wt,path:"M"+tt*mn+",0h"+tt*Ue.ticklen,transFn:function(Xt){var Yt=_t(Xt);return bn(Yt)+"rotate("+-p(Yt)+")"}}),v.drawLabels(Oe,Ue,{vals:Ze,layer:wt,transFn:Xe,labelFns:nn})}var vt=[ot].concat(Ee.gauge.steps),bt=pt.selectAll("g.bg-arc").data(vt);bt.enter().append("g").classed("bg-arc",!0).append("path"),bt.select("path").call(Ct).call(C),bt.exit().remove();var lt=Gt(Ee.gauge.bar.thickness),yt=pt.selectAll("g.value-arc").data([Ee.gauge.bar]);yt.enter().append("g").classed("value-arc",!0).append("path");var zt,Rt,it,at=yt.select("path");E(Dt)?(at.transition().duration(Dt.duration).ease(Dt.easing).each("end",function(){It&&It()}).each("interrupt",function(){It&&It()}).attrTween("d",(zt=lt,Rt=en(Le[0].lastY),it=en(Le[0].y),function(){var Xt=b(Rt,it);return function(Yt){return zt.endAngle(Xt(Yt))()}})),Ee._lastValue=Le[0].y):at.attr("d",typeof Le[0].y=="number"?lt.endAngle(en(Le[0].y)):"M0,0Z"),at.call(C),yt.exit().remove(),vt=[];var Lt=Ee.gauge.threshold.value;(Lt||Lt===0)&&vt.push({range:[Lt,Lt],color:Ee.gauge.threshold.color,line:{color:Ee.gauge.threshold.line.color,width:Ee.gauge.threshold.line.width},thickness:Ee.gauge.threshold.thickness});var xt=pt.selectAll("g.threshold-arc").data(vt);xt.enter().append("g").classed("threshold-arc",!0).append("path"),xt.select("path").call(Ct).call(C),xt.exit().remove();var Zt=pt.selectAll("g.gauge-outline").data([Ge]);Zt.enter().append("g").classed("gauge-outline",!0).append("path"),Zt.select("path").call(Ct).call(C),Zt.exit().remove()}(z,0,te,{radius:_e,innerRadius:Se,gauge:ze,layer:De,size:de,gaugeBg:q,gaugeOutline:Y,transitionOpts:Q,onComplete:U});var He=me.selectAll("g.bullet").data(ae?te:[]);He.exit().remove();var Ve=me.selectAll("g.bulletaxis").data(ae?te:[]);Ve.exit().remove(),ae&&function(Oe,ke,Le,We){var Ue,Ze,Xe,tt,Ee,Ne=Le[0].trace,je=We.gauge,nt=We.layer,ot=We.gaugeBg,Ge=We.gaugeOutline,ht=We.size,pt=Ne.domain,wt=We.transitionOpts,Dt=We.onComplete;je.enter().append("g").classed("bullet",!0),je.attr("transform",y(ht.l,ht.t)),nt.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),nt.selectAll("g.xbulletaxistick,path,text").remove();var It=ht.h,qt=Ne.gauge.bar.thickness*It,en=pt.x[0],Gt=pt.x[0]+(pt.x[1]-pt.x[0])*(Ne._hasNumber||Ne._hasDelta?1-h.bulletNumberDomainSize:1);function Ct(bt){bt.attr("width",function(lt){return Math.max(0,Ue.c2p(lt.range[1])-Ue.c2p(lt.range[0]))}).attr("x",function(lt){return Ue.c2p(lt.range[0])}).attr("y",function(lt){return .5*(1-lt.thickness)*It}).attr("height",function(lt){return lt.thickness*It})}(Ue=L(Oe,Ne.gauge.axis))._id="xbulletaxis",Ue.domain=[en,Gt],Ue.setScale(),Ze=v.calcTicks(Ue),Xe=v.makeTransTickFn(Ue),tt=v.getTickSigns(Ue)[2],Ee=ht.t+ht.h,Ue.visible&&(v.drawTicks(Oe,Ue,{vals:Ue.ticks==="inside"?v.clipEnds(Ue,Ze):Ze,layer:nt,path:v.makeTickPath(Ue,Ee,tt),transFn:Xe}),v.drawLabels(Oe,Ue,{vals:Ze,layer:nt,transFn:Xe,labelFns:v.makeLabelFns(Ue,Ee)}));var _t=[ot].concat(Ne.gauge.steps),nn=je.selectAll("g.bg-bullet").data(_t);nn.enter().append("g").classed("bg-bullet",!0).append("rect"),nn.select("rect").call(Ct).call(C),nn.exit().remove();var gn=je.selectAll("g.value-bullet").data([Ne.gauge.bar]);gn.enter().append("g").classed("value-bullet",!0).append("rect"),gn.select("rect").attr("height",qt).attr("y",(It-qt)/2).call(C),E(wt)?gn.select("rect").transition().duration(wt.duration).ease(wt.easing).each("end",function(){Dt&&Dt()}).each("interrupt",function(){Dt&&Dt()}).attr("width",Math.max(0,Ue.c2p(Math.min(Ne.gauge.axis.range[1],Le[0].y)))):gn.select("rect").attr("width",typeof Le[0].y=="number"?Math.max(0,Ue.c2p(Math.min(Ne.gauge.axis.range[1],Le[0].y))):0),gn.exit().remove();var bn=Le.filter(function(){return Ne.gauge.threshold.value||Ne.gauge.threshold.value===0}),mn=je.selectAll("g.threshold-bullet").data(bn);mn.enter().append("g").classed("threshold-bullet",!0).append("line"),mn.select("line").attr("x1",Ue.c2p(Ne.gauge.threshold.value)).attr("x2",Ue.c2p(Ne.gauge.threshold.value)).attr("y1",(1-Ne.gauge.threshold.thickness)/2*It).attr("y2",(1-(1-Ne.gauge.threshold.thickness)/2)*It).call(x.stroke,Ne.gauge.threshold.line.color).style("stroke-width",Ne.gauge.threshold.line.width),mn.exit().remove();var vt=je.selectAll("g.gauge-outline").data([Ge]);vt.enter().append("g").classed("gauge-outline",!0).append("rect"),vt.select("rect").call(Ct).call(C),vt.exit().remove()}(z,0,te,{gauge:He,layer:Ve,size:de,gaugeBg:q,gaugeOutline:Y,transitionOpts:Q,onComplete:U});var $e=me.selectAll("text.title").data(te);$e.exit().remove(),$e.enter().append("text").classed("title",!0),$e.attr("text-anchor",function(){return ae?R.right:R[ee.title.align]}).text(ee.title.text).call(u.font,ee.title.font).call(m.convertToTspans,z),$e.attr("transform",function(){var Oe,ke=de.l+de.w*M[ee.title.align],Le=h.titlePadding,We=u.bBox($e.node());return he?(se&&(Oe=ee.gauge.axis.visible?u.bBox(De.node()).top-Le-We.bottom:de.t+de.h/2-_e/2-We.bottom-Le),ae&&(Oe=K-(We.top+We.bottom)/2,ke=de.l-h.bulletPadding*de.w)):Oe=ee._numbersTop-Le-We.bottom,y(ke,Oe)})})}},50048:function(d,l,n){var c=n(49084),b=n(29736).axisHoverFormat,i=n(21776).Ks,O=n(52948),w=n(45464),y=n(92880).extendFlat,p=n(67824).overrideAll,a=d.exports=p(y({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}},y:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}},z:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}},caps:{x:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}},y:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}},z:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:i(),xhoverformat:b("x"),yhoverformat:b("y"),zhoverformat:b("z"),valuehoverformat:b("value",1),showlegend:y({},w.showlegend,{dflt:!1})},c("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:O.opacity,lightposition:O.lightposition,lighting:O.lighting,flatshading:O.flatshading,contour:O.contour,hoverinfo:y({},w.hoverinfo)}),"calc","nested");a.flatshading.dflt=!0,a.lighting.facenormalsepsilon.dflt=0,a.x.editType=a.y.editType=a.z.editType=a.value.editType="calc+clearAxisTypes",a.transforms=void 0},62624:function(d,l,n){var c=n(47128),b=n(3832).processGrid,i=n(3832).filter;d.exports=function(O,w){w._len=Math.min(w.x.length,w.y.length,w.z.length,w.value.length),w._x=i(w.x,w._len),w._y=i(w.y,w._len),w._z=i(w.z,w._len),w._value=i(w.value,w._len);var y=b(w);w._gridFill=y.fill,w._Xs=y.Xs,w._Ys=y.Ys,w._Zs=y.Zs,w._len=y.len;for(var p=1/0,a=-1/0,u=0;u0;S--){var A=Math.min(_[S],_[S-1]),x=Math.max(_[S],_[S-1]);if(x>A&&A-1}function ye(nt,ot){return nt===null?ot:nt}function _e(nt,ot,Ge){he();var ht,pt,wt,Dt=[ot],It=[Ge];if(T>=1)Dt=[ot],It=[Ge];else if(T>0){var qt=function(vt,bt){var lt=vt[0],yt=vt[1],zt=vt[2],Rt=function(Qt,Pt,tn){for(var Kt=[],fn=0;fn-1?Ge[Ct]:me(_t,nn,gn);Gt[Ct]=mn>-1?mn:ae(_t,nn,gn,ye(nt,bn))}ht=Gt[0],pt=Gt[1],wt=Gt[2],v._meshI.push(ht),v._meshJ.push(pt),v._meshK.push(wt),++z}}function Se(nt,ot,Ge,ht){var pt=nt[3];ptht&&(pt=ht);for(var wt=(nt[3]-pt)/(nt[3]-ot[3]+1e-9),Dt=[],It=0;It<4;It++)Dt[It]=(1-wt)*nt[It]+wt*ot[It];return Dt}function Te(nt,ot,Ge){return nt>=ot&&nt<=Ge}function Pe(nt){var ot=.001*(ee-Y);return nt>=Y-ot&&nt<=ee+ot}function Ie(nt){for(var ot=[],Ge=0;Ge<4;Ge++){var ht=nt[Ge];ot.push([v._x[ht],v._y[ht],v._z[ht],v._value[ht]])}return ot}var ze=3;function De(nt,ot,Ge,ht,pt,wt){wt||(wt=1),Ge=[-1,-1,-1];var Dt=!1,It=[Te(ot[0][3],ht,pt),Te(ot[1][3],ht,pt),Te(ot[2][3],ht,pt)];if(!It[0]&&!It[1]&&!It[2])return!1;var qt=function(Gt,Ct,_t){return Pe(Ct[0][3])&&Pe(Ct[1][3])&&Pe(Ct[2][3])?(_e(Gt,Ct,_t),!0):wtMath.abs(wt-q)?[oe,wt]:[wt,q];k=!0,Xe(ot,Dt[0],Dt[1]),k=!1}}var It=[[Math.min(Y,q),Math.max(Y,q)],[Math.min(oe,ee),Math.max(oe,ee)]];["x","y","z"].forEach(function(qt){for(var en=[],Gt=0;Gt0&&(mn.push(lt.id),qt==="x"?vt.push([lt.distRatio,0,0]):qt==="y"?vt.push([0,lt.distRatio,0]):vt.push([0,0,lt.distRatio]))}else bn=je(1,qt==="x"?U-1:qt==="y"?X-1:te-1);mn.length>0&&(en[Ct]=qt==="x"?tt(nt,mn,_t,nn,vt,en[Ct]):qt==="y"?Ee(nt,mn,_t,nn,vt,en[Ct]):Ne(nt,mn,_t,nn,vt,en[Ct]),Ct++),bn.length>0&&(en[Ct]=qt==="x"?We(nt,bn,_t,nn,en[Ct]):qt==="y"?Ue(nt,bn,_t,nn,en[Ct]):Ze(nt,bn,_t,nn,en[Ct]),Ct++)}var yt=v.caps[qt];yt.show&&yt.fill&&(de(yt.fill),en[Ct]=qt==="x"?We(nt,[0,U-1],_t,nn,en[Ct]):qt==="y"?Ue(nt,[0,X-1],_t,nn,en[Ct]):Ze(nt,[0,te-1],_t,nn,en[Ct]),Ct++)}}),z===0&&se(),v._meshX=A,v._meshY=x,v._meshZ=R,v._meshIntensity=M,v._Xs=$,v._Ys=Q,v._Zs=j}(),v}d.exports={findNearestOnAxis:p,generateIsoMeshes:m,createIsosurfaceTrace:function(v,_){var S=v.glplot.gl,A=c({gl:S}),x=new a(v,A,_.uid);return A._trace=x,x.update(_),v.glplot.add(A),x}}},70548:function(d,l,n){var c=n(3400),b=n(24040),i=n(50048),O=n(27260);function w(y,p,a,u,h){var m=h("isomin"),v=h("isomax");v!=null&&m!=null&&m>v&&(p.isomin=null,p.isomax=null);var _=h("x"),S=h("y"),A=h("z"),x=h("value");_&&_.length&&S&&S.length&&A&&A.length&&x&&x.length?(b.getComponentMethod("calendars","handleTraceDefaults")(y,p,["x","y","z"],u),h("valuehoverformat"),["x","y","z"].forEach(function(R){h(R+"hoverformat");var M="caps."+R;h(M+".show")&&h(M+".fill");var T="slices."+R;h(T+".show")&&(h(T+".fill"),h(T+".locations"))}),h("spaceframe.show")&&h("spaceframe.fill"),h("surface.show")&&(h("surface.count"),h("surface.fill"),h("surface.pattern")),h("contour.show")&&(h("contour.color"),h("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(R){h(R)}),O(y,p,u,h,{prefix:"",cLetter:"c"}),p._length=null):p.visible=!1}d.exports={supplyDefaults:function(y,p,a,u){w(y,p,0,u,function(h,m){return c.coerce(y,p,i,h,m)})},supplyIsoDefaults:w}},6296:function(d,l,n){d.exports={attributes:n(50048),supplyDefaults:n(70548).supplyDefaults,calc:n(62624),colorbar:{min:"cmin",max:"cmax"},plot:n(31460).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:n(12536),categories:["gl3d","showLegend"],meta:{}}},52948:function(d,l,n){var c=n(49084),b=n(29736).axisHoverFormat,i=n(21776).Ks,O=n(16716),w=n(45464),y=n(92880).extendFlat;d.exports=y({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"}),xhoverformat:b("x"),yhoverformat:b("y"),zhoverformat:b("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},c("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:O.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:y({},O.contours.x.show,{}),color:O.contours.x.color,width:O.contours.x.width,editType:"calc"},lightposition:{x:y({},O.lightposition.x,{dflt:1e5}),y:y({},O.lightposition.y,{dflt:1e5}),z:y({},O.lightposition.z,{dflt:0}),editType:"calc"},lighting:y({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},O.lighting),hoverinfo:y({},w.hoverinfo,{editType:"calc"}),showlegend:y({},w.showlegend,{dflt:!1})})},1876:function(d,l,n){var c=n(47128);d.exports=function(b,i){i.intensity&&c(b,i,{vals:i.intensity,containerStr:"",cLetter:"c"})}},576:function(d,l,n){var c=n(67792).gl_mesh3d,b=n(67792).delaunay_triangulate,i=n(67792).alpha_shape,O=n(67792).convex_hull,w=n(33040).parseColorScale,y=n(3400).isArrayOrTypedArray,p=n(43080),a=n(8932).extractOpts,u=n(52094);function h(x,R,M){this.scene=x,this.uid=M,this.mesh=R,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var m=h.prototype;function v(x){for(var R=[],M=x.length,T=0;T=R-.5)return!1;return!0}m.handlePick=function(x){if(x.object===this.mesh){var R=x.index=x.data.index;x.data._cellCenter?x.traceCoordinate=x.data.dataCoordinate:x.traceCoordinate=[this.data.x[R],this.data.y[R],this.data.z[R]];var M=this.data.hovertext||this.data.text;return y(M)&&M[R]!==void 0?x.textLabel=M[R]:M&&(x.textLabel=M),!0}},m.update=function(x){var R=this.scene,M=R.fullSceneLayout;this.data=x;var T,E=x.x.length,C=u(_(M.xaxis,x.x,R.dataScale[0],x.xcalendar),_(M.yaxis,x.y,R.dataScale[1],x.ycalendar),_(M.zaxis,x.z,R.dataScale[2],x.zcalendar));if(x.i&&x.j&&x.k){if(x.i.length!==x.j.length||x.j.length!==x.k.length||!A(x.i,E)||!A(x.j,E)||!A(x.k,E))return;T=u(S(x.i),S(x.j),S(x.k))}else T=x.alphahull===0?O(C):x.alphahull>0?i(x.alphahull,C):function(I,z){for(var $=["x","y","z"].indexOf(I),Q=[],j=z.length,U=0;UC):E=j>z,C=j;var U=_(z,$,Q,j);U.pos=I,U.yc=(z+j)/2,U.i=k,U.dir=E?"increasing":"decreasing",U.x=U.pos,U.y=[Q,$],L&&(U.orig_p=h[k]),M&&(U.tx=u.text[k]),T&&(U.htx=u.hovertext[k]),D.push(U)}else D.push({pos:I,empty:!0})}return u._extremes[v._id]=i.findExtremes(v,c.concat(x,A),{padded:!0}),D.length&&(D[0].t={labels:{open:b(a,"open:")+" ",high:b(a,"high:")+" ",low:b(a,"low:")+" ",close:b(a,"close:")+" "}}),D}d.exports={calc:function(a,u){var h=i.getFromId(a,u.xaxis),m=i.getFromId(a,u.yaxis),v=function(R,M,T){var E=T._minDiff;if(!E){var C,L=R._fullData,D=[];for(E=1/0,C=0;C"+M.labels[$]+c.hoverLabelText(x,Q,R.yhoverformat):((z=b.extendFlat({},E)).y0=z.y1=j,z.yLabelVal=Q,z.yLabel=M.labels[$]+c.hoverLabelText(x,Q,R.yhoverformat),z.name="",T.push(z),k[Q]=z)}return T}function h(m,v,_,S){var A=m.cd,x=m.ya,R=A[0].trace,M=A[0].t,T=a(m,v,_,S);if(!T)return[];var E=A[T.index],C=T.index=E.i,L=E.dir;function D(U){return M.labels[U]+c.hoverLabelText(x,R[U][C],R.yhoverformat)}var k=E.hi||R.hoverinfo,I=k.split("+"),z=k==="all",$=z||I.indexOf("y")!==-1,Q=z||I.indexOf("text")!==-1,j=$?[D("open"),D("high"),D("low"),D("close")+" "+p[L]]:[];return Q&&w(E,R,j),T.extraText=j.join("
"),T.y0=T.y1=x.c2p(E.yc,!0),[T]}d.exports={hoverPoints:function(m,v,_,S){return m.cd[0].trace.hoverlabel.split?u(m,v,_,S):h(m,v,_,S)},hoverSplit:u,hoverOnPoints:h}},65456:function(d,l,n){d.exports={moduleType:"trace",name:"ohlc",basePlotModule:n(57952),categories:["cartesian","svg","showLegend"],meta:{},attributes:n(20279),supplyDefaults:n(23860),calc:n(42812).calc,plot:n(36664),style:n(14008),hoverPoints:n(18720).hoverPoints,selectPoints:n(97384)}},52744:function(d,l,n){var c=n(24040),b=n(3400);d.exports=function(i,O,w,y){var p=w("x"),a=w("open"),u=w("high"),h=w("low"),m=w("close");if(w("hoverlabel.split"),c.getComponentMethod("calendars","handleTraceDefaults")(i,O,["x"],y),a&&u&&h&&m){var v=Math.min(a.length,u.length,h.length,m.length);return p&&(v=Math.min(v,b.minRowLength(p))),O._length=v,v}}},36664:function(d,l,n){var c=n(33428),b=n(3400);d.exports=function(i,O,w,y){var p=O.yaxis,a=O.xaxis,u=!!a.rangebreaks;b.makeTraceGroups(y,w,"trace ohlc").each(function(h){var m=c.select(this),v=h[0],_=v.t;if(v.trace.visible!==!0||_.empty)m.remove();else{var S=_.tickLen,A=m.selectAll("path").data(b.identity);A.enter().append("path"),A.exit().remove(),A.attr("d",function(x){if(x.empty)return"M0,0Z";var R=a.c2p(x.pos-S,!0),M=a.c2p(x.pos+S,!0),T=u?(R+M)/2:a.c2p(x.pos,!0);return"M"+R+","+p.c2p(x.o,!0)+"H"+T+"M"+T+","+p.c2p(x.h,!0)+"V"+p.c2p(x.l,!0)+"M"+M+","+p.c2p(x.c,!0)+"H"+T})}})}},97384:function(d){d.exports=function(l,n){var c,b=l.cd,i=l.xaxis,O=l.yaxis,w=[],y=b[0].t.bPos||0;if(n===!1)for(c=0;c=se.length||ae[se[ce]]!==void 0)return!1;ae[se[ce]]=!0}return!0}(he))for(me=0;me0||a(x);R&&(A="array");var M=v("categoryorder",A);M==="array"?(v("categoryarray"),v("ticktext")):(delete h.categoryarray,delete h.ticktext),R||M!=="array"||(m.categoryorder="trace")}}d.exports=function(h,m,v,_){function S(T,E){return c.coerce(h,m,y,T,E)}var A=w(h,m,{name:"dimensions",handleItemDefaults:u}),x=function(T,E,C,L,D){D("line.shape"),D("line.hovertemplate");var k=D("line.color",L.colorway[0]);if(b(T,"line")&&c.isArrayOrTypedArray(k)){if(k.length)return D("line.colorscale"),i(T,E,L,D,{prefix:"line.",cLetter:"c"}),k.length;E.line.color=C}return 1/0}(h,m,v,_,S);O(m,_,S),Array.isArray(A)&&A.length||(m.visible=!1),p(m,A,"values",x),S("hoveron"),S("hovertemplate"),S("arrangement"),S("bundlecolors"),S("sortpaths"),S("counts");var R={family:_.font.family,size:Math.round(_.font.size),color:_.font.color};c.coerceFont(S,"labelfont",R);var M={family:_.font.family,size:Math.round(_.font.size/1.2),color:_.font.color};c.coerceFont(S,"tickfont",M)}},22020:function(d,l,n){d.exports={attributes:n(72140),supplyDefaults:n(76671),calc:n(69136),plot:n(60268),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:n(91800),categories:["noOpacity"],meta:{}}},51036:function(d,l,n){var c=n(33428),b=n(67756).Gz,i=n(36424),O=n(93024),w=n(3400),y=w.strTranslate,p=n(43616),a=n(49760),u=n(72736);function h(he,se,ae,ce){var de=se._context.staticPlot,ve=he.map(oe.bind(0,se,ae)),ye=ce.selectAll("g.parcatslayer").data([null]);ye.enter().append("g").attr("class","parcatslayer").style("pointer-events",de?"none":"all");var _e=ye.selectAll("g.trace.parcats").data(ve,m),Se=_e.enter().append("g").attr("class","trace parcats");_e.attr("transform",function(Oe){return y(Oe.x,Oe.y)}),Se.append("g").attr("class","paths");var Te=_e.select("g.paths").selectAll("path.path").data(function(Oe){return Oe.paths},m);Te.attr("fill",function(Oe){return Oe.model.color});var Pe=Te.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(Oe){return Oe.model.color}).attr("fill-opacity",0);T(Pe),Te.attr("d",function(Oe){return Oe.svgD}),Pe.empty()||Te.sort(_),Te.exit().remove(),Te.on("mouseover",S).on("mouseout",A).on("click",M),Se.append("g").attr("class","dimensions");var Ie=_e.select("g.dimensions").selectAll("g.dimension").data(function(Oe){return Oe.dimensions},m);Ie.enter().append("g").attr("class","dimension"),Ie.attr("transform",function(Oe){return y(Oe.x,0)}),Ie.exit().remove();var ze=Ie.selectAll("g.category").data(function(Oe){return Oe.categories},m),De=ze.enter().append("g").attr("class","category");ze.attr("transform",function(Oe){return y(0,Oe.y)}),De.append("rect").attr("class","catrect").attr("pointer-events","none"),ze.select("rect.catrect").attr("fill","none").attr("width",function(Oe){return Oe.width}).attr("height",function(Oe){return Oe.height}),C(De);var He=ze.selectAll("rect.bandrect").data(function(Oe){return Oe.bands},m);He.each(function(){w.raiseToTop(this)}),He.attr("fill",function(Oe){return Oe.color});var Ve=He.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(Oe){return Oe.color}).attr("fill-opacity",0);He.attr("fill",function(Oe){return Oe.color}).attr("width",function(Oe){return Oe.width}).attr("height",function(Oe){return Oe.height}).attr("y",function(Oe){return Oe.y}).attr("cursor",function(Oe){return Oe.parcatsViewModel.arrangement==="fixed"?"default":Oe.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),L(Ve),He.exit().remove(),De.append("text").attr("class","catlabel").attr("pointer-events","none");var $e=se._fullLayout.paper_bgcolor;ze.select("text.catlabel").attr("text-anchor",function(Oe){return v(Oe)?"start":"end"}).attr("alignment-baseline","middle").style("text-shadow",u.makeTextShadow($e)).style("fill","rgb(0, 0, 0)").attr("x",function(Oe){return v(Oe)?Oe.width+5:-5}).attr("y",function(Oe){return Oe.height/2}).text(function(Oe){return Oe.model.categoryLabel}).each(function(Oe){p.font(c.select(this),Oe.parcatsViewModel.categorylabelfont),u.convertToTspans(c.select(this),se)}),De.append("text").attr("class","dimlabel"),ze.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(Oe){return Oe.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(Oe){return Oe.width/2}).attr("y",-5).text(function(Oe,ke){return ke===0?Oe.parcatsViewModel.model.dimensions[Oe.model.dimensionInd].dimensionLabel:null}).each(function(Oe){p.font(c.select(this),Oe.parcatsViewModel.labelfont)}),ze.selectAll("rect.bandrect").on("mouseover",$).on("mouseout",Q),ze.exit().remove(),Ie.call(c.behavior.drag().origin(function(Oe){return{x:Oe.x,y:0}}).on("dragstart",j).on("drag",U).on("dragend",X)),_e.each(function(Oe){Oe.traceSelection=c.select(this),Oe.pathSelection=c.select(this).selectAll("g.paths").selectAll("path.path"),Oe.dimensionSelection=c.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),_e.exit().remove()}function m(he){return he.key}function v(he){var se=he.parcatsViewModel.dimensions.length,ae=he.parcatsViewModel.dimensions[se-1].model.dimensionInd;return he.model.dimensionInd===ae}function _(he,se){return he.model.rawColor>se.model.rawColor?1:he.model.rawColor"),Ze=c.mouse(_e)[0];O.loneHover({trace:Se,x:He-Pe.left+Ie.left,y:Ve-Pe.top+Ie.top,text:Ue,color:he.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:$e,idealAlign:Ze1&&Ie.displayInd===Pe.dimensions.length-1?(ce=Se.left,de="left"):(ce=Se.left+Se.width,de="right");var He=Te.model.count,Ve=Te.model.categoryLabel,$e=He/Te.parcatsViewModel.model.count,Oe={countLabel:He,categoryLabel:Ve,probabilityLabel:$e.toFixed(3)},ke=[];Te.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&ke.push(["Count:",Oe.countLabel].join(" ")),Te.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&ke.push(["P("+Oe.categoryLabel+"):",Oe.probabilityLabel].join(" "));var Le=ke.join("
");return{trace:ze,x:ve*(ce-se.left),y:ye*(De-se.top),text:Le,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:de,hovertemplate:ze.hovertemplate,hovertemplateLabels:Oe,eventData:[{data:ze._input,fullData:ze,count:He,category:Ve,probability:$e}]}}function $(he){if(!he.parcatsViewModel.dragDimension&&he.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){if(c.mouse(this)[1]<-1)return;var se,ae=he.parcatsViewModel.graphDiv,ce=ae._fullLayout,de=ce._paperdiv.node().getBoundingClientRect(),ve=he.parcatsViewModel.hoveron,ye=this;ve==="color"?(function(_e){var Se=c.select(_e).datum(),Te=D(Se);E(Te),Te.each(function(){w.raiseToTop(this)}),c.select(_e.parentNode).selectAll("rect.bandrect").filter(function(Pe){return Pe.color===Se.color}).each(function(){w.raiseToTop(this),c.select(this).attr("stroke","black").attr("stroke-width",1.5)})}(ye),I(ye,"plotly_hover",c.event)):(function(_e){c.select(_e.parentNode).selectAll("rect.bandrect").each(function(Se){var Te=D(Se);E(Te),Te.each(function(){w.raiseToTop(this)})}),c.select(_e.parentNode).select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}(ye),k(ye,"plotly_hover",c.event)),he.parcatsViewModel.hoverinfoItems.indexOf("none")===-1&&(ve==="category"?se=z(ae,de,ye):ve==="color"?se=function(_e,Se,Te){_e._fullLayout._calcInverseTransform(_e);var Pe,Ie,ze=_e._fullLayout._invScaleX,De=_e._fullLayout._invScaleY,He=Te.getBoundingClientRect(),Ve=c.select(Te).datum(),$e=Ve.categoryViewModel,Oe=$e.parcatsViewModel,ke=Oe.model.dimensions[$e.model.dimensionInd],Le=Oe.trace,We=He.y+He.height/2;Oe.dimensions.length>1&&ke.displayInd===Oe.dimensions.length-1?(Pe=He.left,Ie="left"):(Pe=He.left+He.width,Ie="right");var Ue=$e.model.categoryLabel,Ze=Ve.parcatsViewModel.model.count,Xe=0;Ve.categoryViewModel.bands.forEach(function(wt){wt.color===Ve.color&&(Xe+=wt.count)});var tt=$e.model.count,Ee=0;Oe.pathSelection.each(function(wt){wt.model.color===Ve.color&&(Ee+=wt.model.count)});var Ne=Xe/Ze,je=Xe/Ee,nt=Xe/tt,ot={countLabel:Ze,categoryLabel:Ue,probabilityLabel:Ne.toFixed(3)},Ge=[];$e.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&Ge.push(["Count:",ot.countLabel].join(" ")),$e.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(Ge.push("P(color ∩ "+Ue+"): "+ot.probabilityLabel),Ge.push("P("+Ue+" | color): "+je.toFixed(3)),Ge.push("P(color | "+Ue+"): "+nt.toFixed(3)));var ht=Ge.join("
"),pt=a.mostReadable(Ve.color,["black","white"]);return{trace:Le,x:ze*(Pe-Se.left),y:De*(We-Se.top),text:ht,color:Ve.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:pt,fontSize:10,idealAlign:Ie,hovertemplate:Le.hovertemplate,hovertemplateLabels:ot,eventData:[{data:Le._input,fullData:Le,category:Ue,count:Ze,probability:Ne,categorycount:tt,colorcount:Ee,bandcolorcount:Xe}]}}(ae,de,ye):ve==="dimension"&&(se=function(_e,Se,Te){var Pe=[];return c.select(Te.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){Pe.push(z(_e,Se,this))}),Pe}(ae,de,ye)),se&&O.loneHover(se,{container:ce._hoverlayer.node(),outerContainer:ce._paper.node(),gd:ae}))}}function Q(he){var se=he.parcatsViewModel;se.dragDimension||(T(se.pathSelection),C(se.dimensionSelection.selectAll("g.category")),L(se.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),O.loneUnhover(se.graphDiv._fullLayout._hoverlayer.node()),se.pathSelection.sort(_),se.hoverinfoItems.indexOf("skip")!==-1)||(he.parcatsViewModel.hoveron==="color"?I(this,"plotly_unhover",c.event):k(this,"plotly_unhover",c.event))}function j(he){he.parcatsViewModel.arrangement!=="fixed"&&(he.dragDimensionDisplayInd=he.model.displayInd,he.initialDragDimensionDisplayInds=he.parcatsViewModel.model.dimensions.map(function(se){return se.displayInd}),he.dragHasMoved=!1,he.dragCategoryDisplayInd=null,c.select(this).selectAll("g.category").select("rect.catrect").each(function(se){var ae=c.mouse(this)[0],ce=c.mouse(this)[1];-2<=ae&&ae<=se.width+2&&-2<=ce&&ce<=se.height+2&&(he.dragCategoryDisplayInd=se.model.displayInd,he.initialDragCategoryDisplayInds=he.model.categories.map(function(de){return de.displayInd}),se.model.dragY=se.y,w.raiseToTop(this.parentNode),c.select(this.parentNode).selectAll("rect.bandrect").each(function(de){de.yPe.y+Pe.height/2&&(ve.model.displayInd=Pe.model.displayInd,Pe.model.displayInd=_e),he.dragCategoryDisplayInd=ve.model.displayInd}if(he.dragCategoryDisplayInd===null||he.parcatsViewModel.arrangement==="freeform"){de.model.dragX=c.event.x;var Ie=he.parcatsViewModel.dimensions[ae],ze=he.parcatsViewModel.dimensions[ce];Ie!==void 0&&de.model.dragXze.x&&(de.model.displayInd=ze.model.displayInd,ze.model.displayInd=he.dragDimensionDisplayInd),he.dragDimensionDisplayInd=de.model.displayInd}ee(he.parcatsViewModel),Y(he.parcatsViewModel),K(he.parcatsViewModel),W(he.parcatsViewModel)}}function X(he){if(he.parcatsViewModel.arrangement!=="fixed"&&he.dragDimensionDisplayInd!==null){c.select(this).selectAll("text").attr("font-weight","normal");var se={},ae=te(he.parcatsViewModel),ce=he.parcatsViewModel.model.dimensions.map(function(Pe){return Pe.displayInd}),de=he.initialDragDimensionDisplayInds.some(function(Pe,Ie){return Pe!==ce[Ie]});de&&ce.forEach(function(Pe,Ie){var ze=he.parcatsViewModel.model.dimensions[Ie].containerInd;se["dimensions["+ze+"].displayindex"]=Pe});var ve=!1;if(he.dragCategoryDisplayInd!==null){var ye=he.model.categories.map(function(Pe){return Pe.displayInd});if(ve=he.initialDragCategoryDisplayInds.some(function(Pe,Ie){return Pe!==ye[Ie]})){var _e=he.model.categories.slice().sort(function(Pe,Ie){return Pe.displayInd-Ie.displayInd}),Se=_e.map(function(Pe){return Pe.categoryValue}),Te=_e.map(function(Pe){return Pe.categoryLabel});se["dimensions["+he.model.containerInd+"].categoryarray"]=[Se],se["dimensions["+he.model.containerInd+"].ticktext"]=[Te],se["dimensions["+he.model.containerInd+"].categoryorder"]="array"}}he.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!he.dragHasMoved&&he.potentialClickBand&&(he.parcatsViewModel.hoveron==="color"?I(he.potentialClickBand,"plotly_click",c.event.sourceEvent):k(he.potentialClickBand,"plotly_click",c.event.sourceEvent)),he.model.dragX=null,he.dragCategoryDisplayInd!==null&&(he.parcatsViewModel.dimensions[he.dragDimensionDisplayInd].categories[he.dragCategoryDisplayInd].model.dragY=null,he.dragCategoryDisplayInd=null),he.dragDimensionDisplayInd=null,he.parcatsViewModel.dragDimension=null,he.dragHasMoved=null,he.potentialClickBand=null,ee(he.parcatsViewModel),Y(he.parcatsViewModel),c.transition().duration(300).ease("cubic-in-out").each(function(){K(he.parcatsViewModel,!0),W(he.parcatsViewModel,!0)}).each("end",function(){(de||ve)&&i.restyle(he.parcatsViewModel.graphDiv,se,[ae])})}}function te(he){for(var se,ae=he.graphDiv._fullData,ce=0;ce=0;ye--)Te+="C"+Se[ye]+","+(se[ye+1]+ce)+" "+_e[ye]+","+(se[ye]+ce)+" "+(he[ye]+ae[ye])+","+(se[ye]+ce),Te+="l-"+ae[ye]+",0 ";return Te+"Z"}function Y(he){var se=he.dimensions,ae=he.model,ce=se.map(function(ot){return ot.categories.map(function(Ge){return Ge.y})}),de=he.model.dimensions.map(function(ot){return ot.categories.map(function(Ge){return Ge.displayInd})}),ve=he.model.dimensions.map(function(ot){return ot.displayInd}),ye=he.dimensions.map(function(ot){return ot.model.dimensionInd}),_e=se.map(function(ot){return ot.x}),Se=se.map(function(ot){return ot.width}),Te=[];for(var Pe in ae.paths)ae.paths.hasOwnProperty(Pe)&&Te.push(ae.paths[Pe]);function Ie(ot){var Ge=ot.categoryInds.map(function(ht,pt){return de[pt][ht]});return ye.map(function(ht){return Ge[ht]})}Te.sort(function(ot,Ge){var ht=Ie(ot),pt=Ie(Ge);return he.sortpaths==="backward"&&(ht.reverse(),pt.reverse()),ht.push(ot.valueInds[0]),pt.push(Ge.valueInds[0]),he.bundlecolors&&(ht.unshift(ot.rawColor),pt.unshift(Ge.rawColor)),htpt?1:0});for(var ze=new Array(Te.length),De=se[0].model.count,He=se[0].categories.map(function(ot){return ot.height}).reduce(function(ot,Ge){return ot+Ge}),Ve=0;Ve0?He*(Oe.count/De):0;for(var ke,Le=new Array(ce.length),We=0;We1?(he.width-80-16)/(ce-1):0)*de;var ve,ye,_e,Se,Te,Pe=[],Ie=he.model.maxCats,ze=se.categories.length,De=se.count,He=he.height-8*(Ie-1),Ve=8*(Ie-ze)/2,$e=se.categories.map(function(Oe){return{displayInd:Oe.displayInd,categoryInd:Oe.categoryInd}});for($e.sort(function(Oe,ke){return Oe.displayInd-ke.displayInd}),Te=0;Te0?ye.count/De*He:0,_e={key:ye.valueInds[0],model:ye,width:16,height:ve,y:ye.dragY!==null?ye.dragY:Ve,bands:[],parcatsViewModel:he},Ve=Ve+ve+8,Pe.push(_e);return{key:se.dimensionInd,x:se.dragX!==null?se.dragX:ae,y:0,width:16,model:se,categories:Pe,parcatsViewModel:he,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}d.exports=function(he,se,ae,ce){h(ae,he,ce,se)}},60268:function(d,l,n){var c=n(51036);d.exports=function(b,i,O,w){var y=b._fullLayout,p=y._paper,a=y._size;c(b,p,i,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},O,w)}},82296:function(d,l,n){var c=n(49084),b=n(94724),i=n(25376),O=n(86968).u,w=n(92880).extendFlat,y=n(31780).templatedArray;d.exports={domain:O({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:i({editType:"plot"}),tickfont:i({editType:"plot"}),rangefont:i({editType:"plot"}),dimensions:y("dimension",{label:{valType:"string",editType:"plot"},tickvals:w({},b.tickvals,{editType:"plot"}),ticktext:w({},b.ticktext,{editType:"plot"}),tickformat:w({},b.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:w({editType:"calc"},c("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}},71864:function(d,l,n){var c=n(30140),b=n(33428),i=n(71688).keyFun,O=n(71688).repeat,w=n(3400).sorterAsc,y=n(3400).strTranslate,p=c.bar.snapRatio;function a(z,$){return z*(1-p)+$*p}var u=c.bar.snapClose;function h(z,$){return z*(1-u)+$*u}function m(z,$,Q,j){if(function(me,he){for(var se=0;se=he[se][0]&&me<=he[se][1])return!0;return!1}(Q,j))return Q;var U=z?-1:1,X=0,te=$.length-1;if(U<0){var W=X;X=te,te=W}for(var K=$[X],oe=K,q=X;U*q$){Y=Q;break}}if(U=oe,isNaN(U)&&(U=isNaN(q)||isNaN(Y)?isNaN(q)?Y:q:$-K[q][1]de[1]+ye||ve=.9*de[1]+.1*de[0]?"n":ve<=.9*de[0]+.1*de[1]?"s":"ns"}(me,$);he&&(X.interval=W[U],X.intervalPix=me,X.region=he)}}if(z.ordinal&&!X.region){var se=z.unitTickvals,ae=z.unitToPaddedPx.invert($);for(Q=0;Q=ce[0]&&ae<=ce[1]){X.clickableOrdinalRange=ce;break}}}return X}function E(z,$){b.event.sourceEvent.stopPropagation();var Q=$.height-b.mouse(z)[1]-2*c.verticalPadding,j=$.brush.svgBrush;j.wasDragged=!0,j._dragging=!0,j.grabbingBar?j.newExtent=[Q-j.grabPoint,Q+j.barLength-j.grabPoint].map($.unitToPaddedPx.invert):j.newExtent=[j.startExtent,$.unitToPaddedPx.invert(Q)].sort(w),$.brush.filterSpecified=!0,j.extent=j.stayingIntervals.concat([j.newExtent]),j.brushCallback($),M(z.parentNode)}function C(z,$){var Q=T($,$.height-b.mouse(z)[1]-2*c.verticalPadding),j="crosshair";Q.clickableOrdinalRange?j="pointer":Q.region&&(j=Q.region+"-resize"),b.select(document.body).style("cursor",j)}function L(z){z.on("mousemove",function($){b.event.preventDefault(),$.parent.inBrushDrag||C(this,$)}).on("mouseleave",function($){$.parent.inBrushDrag||x()}).call(b.behavior.drag().on("dragstart",function($){(function(Q,j){b.event.sourceEvent.stopPropagation();var U=j.height-b.mouse(Q)[1]-2*c.verticalPadding,X=j.unitToPaddedPx.invert(U),te=j.brush,W=T(j,U),K=W.interval,oe=te.svgBrush;if(oe.wasDragged=!1,oe.grabbingBar=W.region==="ns",oe.grabbingBar){var q=K.map(j.unitToPaddedPx);oe.grabPoint=U-q[0]-c.verticalPadding,oe.barLength=q[1]-q[0]}oe.clickableOrdinalRange=W.clickableOrdinalRange,oe.stayingIntervals=j.multiselect&&te.filterSpecified?te.filter.getConsolidated():[],K&&(oe.stayingIntervals=oe.stayingIntervals.filter(function(Y){return Y[0]!==K[0]&&Y[1]!==K[1]})),oe.startExtent=W.region?K[W.region==="s"?1:0]:X,j.parent.inBrushDrag=!0,oe.brushStartCallback()})(this,$)}).on("drag",function($){E(this,$)}).on("dragend",function($){(function(Q,j){var U=j.brush,X=U.filter,te=U.svgBrush;te._dragging||(C(Q,j),E(Q,j),j.brush.svgBrush.wasDragged=!1),te._dragging=!1,b.event.sourceEvent.stopPropagation();var W=te.grabbingBar;if(te.grabbingBar=!1,te.grabLocation=void 0,j.parent.inBrushDrag=!1,x(),!te.wasDragged)return te.wasDragged=void 0,te.clickableOrdinalRange?U.filterSpecified&&j.multiselect?te.extent.push(te.clickableOrdinalRange):(te.extent=[te.clickableOrdinalRange],U.filterSpecified=!0):W?(te.extent=te.stayingIntervals,te.extent.length===0&&k(U)):k(U),te.brushCallback(j),M(Q.parentNode),void te.brushEndCallback(U.filterSpecified?X.getConsolidated():[]);var K=function(){X.set(X.getConsolidated())};if(j.ordinal){var oe=j.unitTickvals;oe[oe.length-1]te.newExtent[0];te.extent=te.stayingIntervals.concat(q?[te.newExtent]:[]),te.extent.length||k(U),te.brushCallback(j),q?M(Q.parentNode,K):(K(),M(Q.parentNode))}else K();te.brushEndCallback(U.filterSpecified?X.getConsolidated():[])})(this,$)}))}function D(z,$){return z[0]-$[0]}function k(z){z.filterSpecified=!1,z.svgBrush.extent=[[-1/0,1/0]]}function I(z){for(var $,Q=z.slice(),j=[],U=Q.shift();U;){for($=U.slice();(U=Q.shift())&&U[0]<=$[1];)$[1]=Math.max($[1],U[1]);j.push($)}return j.length===1&&j[0][0]>j[0][1]&&(j=[]),j}d.exports={makeBrush:function(z,$,Q,j,U,X){var te,W=function(){var K,oe,q=[];return{set:function(Y){(q=Y.map(function(ee){return ee.slice().sort(w)}).sort(D)).length===1&&q[0][0]===-1/0&&q[0][1]===1/0&&(q=[[0,-1]]),K=I(q),oe=q.reduce(function(ee,me){return[Math.min(ee[0],me[0]),Math.max(ee[1],me[1])]},[1/0,-1/0])},get:function(){return q.slice()},getConsolidated:function(){return K},getBounds:function(){return oe}}}();return W.set(Q),{filter:W,filterSpecified:$,svgBrush:{extent:[],brushStartCallback:j,brushCallback:(te=U,function(K){var oe=K.brush,q=function(ee){return ee.svgBrush.extent.map(function(me){return me.slice()})}(oe),Y=q.slice();oe.filter.set(Y),te()}),brushEndCallback:X}}},ensureAxisBrush:function(z,$,Q){var j=z.selectAll("."+c.cn.axisBrush).data(O,i);j.enter().append("g").classed(c.cn.axisBrush,!0),function(U,X,te){var W=te._context.staticPlot,K=U.selectAll(".background").data(O);K.enter().append("rect").classed("background",!0).call(v).call(_).style("pointer-events",W?"none":"auto").attr("transform",y(0,c.verticalPadding)),K.call(L).attr("height",function(Y){return Y.height-c.verticalPadding});var oe=U.selectAll(".highlight-shadow").data(O);oe.enter().append("line").classed("highlight-shadow",!0).attr("x",-c.bar.width/2).attr("stroke-width",c.bar.width+c.bar.strokeWidth).attr("stroke",X).attr("opacity",c.bar.strokeOpacity).attr("stroke-linecap","butt"),oe.attr("y1",function(Y){return Y.height}).call(R);var q=U.selectAll(".highlight").data(O);q.enter().append("line").classed("highlight",!0).attr("x",-c.bar.width/2).attr("stroke-width",c.bar.width-c.bar.strokeWidth).attr("stroke",c.bar.fillColor).attr("opacity",c.bar.fillOpacity).attr("stroke-linecap","butt"),q.attr("y1",function(Y){return Y.height}).call(R)}(j,$,Q)},cleanRanges:function(z,$){if(Array.isArray(z[0])?(z=z.map(function(j){return j.sort(w)}),z=$.multiselect?I(z.sort(D)):[z[0]]):z=[z.sort(w)],$.tickvals){var Q=$.tickvals.slice().sort(w);if(!(z=z.map(function(j){var U=[m(0,Q,j[0],[]),m(1,Q,j[1],[])];if(U[1]>U[0])return U}).filter(function(j){return j})).length)return}return z.length>1?z:z[0]}}},61664:function(d,l,n){d.exports={attributes:n(82296),supplyDefaults:n(60664),calc:n(95044),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:n(19976),categories:["gl","regl","noOpacity","noHover"],meta:{}}},19976:function(d,l,n){var c=n(33428),b=n(84888)._M,i=n(24196),O=n(9616);l.name="parcoords",l.plot=function(w){var y=b(w.calcdata,"parcoords")[0];y.length&&i(w,y)},l.clean=function(w,y,p,a){var u=a._has&&a._has("parcoords"),h=y._has&&y._has("parcoords");u&&!h&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())},l.toSVG=function(w){var y=w._fullLayout._glimages,p=c.select(w).selectAll(".svg-container");p.filter(function(a,u){return u===p.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus").each(function(){var a=this,u=a.toDataURL("image/png");y.append("svg:image").attr({xmlns:O.svg,"xlink:href":u,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}),window.setTimeout(function(){c.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}},95044:function(d,l,n){var c=n(3400).isArrayOrTypedArray,b=n(8932),i=n(71688).wrap;d.exports=function(O,w){var y,p;return b.hasColorscale(w,"line")&&c(w.line.color)?(y=w.line.color,p=b.extractOpts(w.line).colorscale,b.calc(O,w,{vals:y,containerStr:"line",cLetter:"c"})):(y=function(a){for(var u=new Array(a),h=0;hu&&(c.log("parcoords traces support up to "+u+" dimensions at the moment"),R.splice(u));var M=w(v,_,{name:"dimensions",layout:A,handleItemDefaults:m}),T=function(C,L,D,k,I){var z=I("line.color",D);if(b(C,"line")&&c.isArrayOrTypedArray(z)){if(z.length)return I("line.colorscale"),i(C,L,k,I,{prefix:"line.",cLetter:"c"}),z.length;L.line.color=D}return 1/0}(v,_,S,A,x);O(_,A,x),Array.isArray(M)&&M.length||(_.visible=!1),h(_,M,"values",T);var E={family:A.font.family,size:Math.round(A.font.size/1.2),color:A.font.color};c.coerceFont(x,"labelfont",E),c.coerceFont(x,"tickfont",E),c.coerceFont(x,"rangefont",E),x("labelangle"),x("labelside"),x("unselected.line.color"),x("unselected.line.opacity")}},95724:function(d,l,n){var c=n(3400).isTypedArray;l.convertTypedArray=function(b){return c(b)?Array.prototype.slice.call(b):b},l.isOrdinal=function(b){return!!b.tickvals},l.isVisible=function(b){return b.visible||!("visible"in b)}},29928:function(d,l,n){var c=n(61664);c.plot=n(24196),d.exports=c},51352:function(d,l,n){var c=n(26444),b=c([`precision highp float; #define GLSLIFY 1 varying vec4 fragColor; @@ -150,7 +150,7 @@ void main() { `)),Se.push({type:"Feature",geometry:{type:"Point",coordinates:Pe.lonlat},properties:{symbol:ve(Te),angle:ye(Te),text:Ie}})}}return{type:"FeatureCollection",features:Se}}(T,M),b.extendFlat(W.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),Q&&(b.extendFlat(W.layout,{"icon-size":C.marker.size/10}),"angle"in C.marker&&C.marker.angle!=="auto"&&b.extendFlat(W.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),W.layout["icon-allow-overlap"]=C.marker.allowoverlap,b.extendFlat(W.paint,{"icon-opacity":C.opacity*C.marker.opacity,"icon-color":C.marker.color})),z)){var q=(C.marker||{}).size,Y=u(C.textposition,q);b.extendFlat(W.layout,{"text-size":C.textfont.size,"text-anchor":Y.anchor,"text-offset":Y.offset,"text-font":C.textfont.family.split(", ")}),b.extendFlat(W.paint,{"text-color":C.textfont.color,"text-opacity":C.opacity})}return K}},15752:function(d,l,n){var c=n(3400),b=n(43028),i=n(74428),O=n(66828),w=n(124),y=n(70840),p=n(31512),a=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extra Bold Italic","Open Sans Extra Bold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];d.exports=function(u,h,m,v){function _(L,D){return c.coerce(u,h,p,L,D)}function S(L,D){return c.coerce2(u,h,p,L,D)}var A=function(L,D,k){var I=k("lon")||[],z=k("lat")||[],$=Math.min(I.length,z.length);return D._length=$,$}(0,h,_);if(A){if(_("text"),_("texttemplate"),_("hovertext"),_("hovertemplate"),_("mode"),_("below"),b.hasMarkers(h)){i(u,h,m,v,_,{noLine:!0,noAngle:!0}),_("marker.allowoverlap"),_("marker.angle");var x=h.marker;x.symbol!=="circle"&&(c.isArrayOrTypedArray(x.size)&&(x.size=x.size[0]),c.isArrayOrTypedArray(x.color)&&(x.color=x.color[0]))}b.hasLines(h)&&(O(u,h,m,v,_,{noDash:!0}),_("connectgaps"));var R=S("cluster.maxzoom"),M=S("cluster.step"),T=S("cluster.color",h.marker&&h.marker.color||m),E=S("cluster.size"),C=S("cluster.opacity");_("cluster.enabled",R!==!1||M!==!1||T!==!1||E!==!1||C!==!1),b.hasText(h)&&w(u,h,v,_,{noSelect:!0,font:{family:a.indexOf(v.font.family)!==-1?v.font.family:"Open Sans Regular",size:v.font.size,color:v.font.color}}),_("fill"),h.fill!=="none"&&y(u,h,m,_),c.coerceSelectionMarkerOpacity(h,_)}else h.visible=!1}},37920:function(d){d.exports=function(l,n){return l.lon=n.lon,l.lat=n.lat,l}},11960:function(d,l,n){var c=n(54460);d.exports=function(b,i,O){var w={},y=O[i.subplot]._subplot.mockAxis,p=b.lonlat;return w.lonLabel=c.tickText(y,y.c2l(p[0]),!0).text,w.latLabel=c.tickText(y,y.c2l(p[1]),!0).text,w}},63312:function(d,l,n){var c=n(93024),b=n(3400),i=n(44928),O=b.fillText,w=n(39032).BADNUM,y=n(47552).traceLayerPrefix;function p(a,u,h){if(!a.hovertemplate){var m=(u.hi||a.hoverinfo).split("+"),v=m.indexOf("all")!==-1,_=m.indexOf("lon")!==-1,S=m.indexOf("lat")!==-1,A=u.lonlat,x=[];return v||_&&S?x.push("("+R(A[1])+", "+R(A[0])+")"):_?x.push(h.lon+R(A[0])):S&&x.push(h.lat+R(A[1])),(v||m.indexOf("text")!==-1)&&O(u,a,x),x.join("
")}function R(M){return M+"°"}}d.exports={hoverPoints:function(a,u,h){var m=a.cd,v=m[0].trace,_=a.xa,S=a.ya,A=a.subplot,x=[],R=y+v.uid+"-circle",M=v.cluster&&v.cluster.enabled;if(M){var T=A.map.queryRenderedFeatures(null,{layers:[R]});x=T.map(function(U){return U.id})}var E=360*(u>=0?Math.floor((u+180)/360):Math.ceil((u-180)/360)),C=u-E;if(c.getClosest(m,function(U){var X=U.lonlat;if(X[0]===w||M&&x.indexOf(U.i+1)===-1)return 1/0;var te=b.modHalf(X[0],360),W=X[1],K=A.project([te,W]),oe=K.x-_.c2p([C,W]),q=K.y-S.c2p([te,h]),Y=Math.max(3,U.mrc||0);return Math.max(Math.sqrt(oe*oe+q*q)-Y,1-3/Y)},a),a.index!==!1){var L=m[a.index],D=L.lonlat,k=[b.modHalf(D[0],360)+E,D[1]],I=_.c2p(k),z=S.c2p(k),$=L.mrc||1;a.x0=I-$,a.x1=I+$,a.y0=z-$,a.y1=z+$;var Q={};Q[v.subplot]={_subplot:A};var j=v._module.formatLabels(L,v,Q);return a.lonLabel=j.lonLabel,a.latLabel=j.latLabel,a.color=i(v,L),a.extraText=p(v,L,m[0].t.labels),a.hovertemplate=v.hovertemplate,[a]}},getExtraText:p}},11572:function(d,l,n){d.exports={attributes:n(31512),supplyDefaults:n(15752),colorbar:n(5528),formatLabels:n(11960),calc:n(25212),plot:n(9660),hoverPoints:n(63312).hoverPoints,eventData:n(37920),selectPoints:n(404),styleOnSelect:function(c,b){b&&b[0].trace._glTrace.update(b)},moduleType:"trace",name:"scattermapbox",basePlotModule:n(33688),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}},9660:function(d,l,n){var c=n(3400),b=n(59392),i=n(47552).traceLayerPrefix,O={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function w(p,a,u,h){this.type="scattermapbox",this.subplot=p,this.uid=a,this.clusterEnabled=u,this.isHidden=h,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:i+a+"-fill",line:i+a+"-line",circle:i+a+"-circle",symbol:i+a+"-symbol",cluster:i+a+"-cluster",clusterCount:i+a+"-cluster-count"},this.below=null}var y=w.prototype;y.addSource=function(p,a,u){var h={type:"geojson",data:a.geojson};u&&u.enabled&&c.extendFlat(h,{cluster:!0,clusterMaxZoom:u.maxzoom});var m=this.subplot.map.getSource(this.sourceIds[p]);m?m.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[p],h)},y.setSourceData=function(p,a){this.subplot.map.getSource(this.sourceIds[p]).setData(a.geojson)},y.addLayer=function(p,a,u){var h={type:a.type,id:this.layerIds[p],source:this.sourceIds[p],layout:a.layout,paint:a.paint};a.filter&&(h.filter=a.filter);for(var m,v=this.layerIds[p],_=this.subplot.getMapLayers(),S=0;S<_.length;S++)if(_[S].id===v){m=!0;break}m?(this.subplot.setOptions(v,"setLayoutProperty",h.layout),h.layout.visibility==="visible"&&this.subplot.setOptions(v,"setPaintProperty",h.paint)):this.subplot.addLayer(h,u)},y.update=function(p){var a=p[0].trace,u=this.subplot,h=u.map,m=b(u.gd,p),v=u.belowLookup["trace-"+this.uid],_=!(!a.cluster||!a.cluster.enabled),S=!!this.clusterEnabled,A=this;function x(C){S?function(L){for(var D=O.cluster,k=D.length-1;k>=0;k--){var I=D[k];h.removeLayer(A.layerIds[I])}L||h.removeSource(A.sourceIds.circle)}(C):function(L){for(var D=O.nonCluster,k=D.length-1;k>=0;k--){var I=D[k];h.removeLayer(A.layerIds[I]),L||h.removeSource(A.sourceIds[I])}}(C)}function R(C){_?function(L){L||A.addSource("circle",m.circle,a.cluster);for(var D=O.cluster,k=0;k=0;u--){var h=a[u];p.removeLayer(this.layerIds[h]),p.removeSource(this.sourceIds[h])}},d.exports=function(p,a){var u,h,m,v=a[0].trace,_=v.cluster&&v.cluster.enabled,S=v.visible!==!0,A=new w(p,v.uid,_,S),x=b(p.gd,a),R=A.below=p.belowLookup["trace-"+v.uid];if(_)for(A.addSource("circle",x.circle,v.cluster),u=0;u")}}d.exports={hoverPoints:function(i,O,w,y){var p=c(i,O,w,y);if(p&&p[0].index!==!1){var a=p[0];if(a.index===void 0)return p;var u=i.subplot,h=a.cd[a.index],m=a.trace;if(u.isPtInside(h))return a.xLabelVal=void 0,a.yLabelVal=void 0,b(h,m,u,a),a.hovertemplate=m.hovertemplate,p}},makeHoverPointText:b}},76924:function(d,l,n){d.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:n(40872),categories:["polar","symbols","showLegend","scatter-like"],attributes:n(8319),supplyDefaults:n(85968).supplyDefaults,colorbar:n(5528),formatLabels:n(22852),calc:n(58320),plot:n(43456),style:n(49224).style,styleOnSelect:n(49224).styleOnSelect,hoverPoints:n(8504).hoverPoints,selectPoints:n(91560),meta:{}}},43456:function(d,l,n){var c=n(96504),b=n(39032).BADNUM;d.exports=function(i,O,w){for(var y=O.layers.frontplot.select("g.scatterlayer"),p=O.xaxis,a=O.yaxis,u={xaxis:p,yaxis:a,plot:O.framework,layerClipId:O._hasClipOnAxisFalse?O.clipIds.forTraces:null},h=O.radialAxis,m=O.angularAxis,v=0;v=p&&(L.marker.cluster=M.tree),L.marker&&(L.markerSel.positions=L.markerUnsel.positions=L.marker.positions=I),L.line&&I.length>1&&y.extendFlat(L.line,w.linePositions(a,R,I)),L.text&&(y.extendFlat(L.text,{positions:I},w.textPosition(a,R,L.text,L.marker)),y.extendFlat(L.textSel,{positions:I},w.textPosition(a,R,L.text,L.markerSel)),y.extendFlat(L.textUnsel,{positions:I},w.textPosition(a,R,L.text,L.markerUnsel))),L.fill&&!_.fill2d&&(_.fill2d=!0),L.marker&&!_.scatter2d&&(_.scatter2d=!0),L.line&&!_.line2d&&(_.line2d=!0),L.text&&!_.glText&&(_.glText=!0),_.lineOptions.push(L.line),_.fillOptions.push(L.fill),_.markerOptions.push(L.marker),_.markerSelectedOptions.push(L.markerSel),_.markerUnselectedOptions.push(L.markerUnsel),_.textOptions.push(L.text),_.textSelectedOptions.push(L.textSel),_.textUnselectedOptions.push(L.textUnsel),_.selectBatch.push([]),_.unselectBatch.push([]),M.x=z,M.y=$,M.rawx=z,M.rawy=$,M.r=E,M.theta=C,M.positions=I,M._scene=_,M.index=_.count,_.count++}}),i(a,u,h)}},d.exports.reglPrecompiled={}},69496:function(d,l,n){var c=n(21776).Ks,b=n(21776).Gw,i=n(92880).extendFlat,O=n(52904),w=n(45464),y=O.line;d.exports={mode:O.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:O.text,texttemplate:b({editType:"plot"},{keys:["real","imag","text"]}),hovertext:O.hovertext,line:{color:y.color,width:y.width,dash:y.dash,backoff:y.backoff,shape:i({},y.shape,{values:["linear","spline"]}),smoothing:y.smoothing,editType:"calc"},connectgaps:O.connectgaps,marker:O.marker,cliponaxis:i({},O.cliponaxis,{dflt:!1}),textposition:O.textposition,textfont:O.textfont,fill:i({},O.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:O.fillcolor,hoverinfo:i({},w.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:O.hoveron,hovertemplate:c(),selected:O.selected,unselected:O.unselected}},47507:function(d,l,n){var c=n(38248),b=n(39032).BADNUM,i=n(90136),O=n(20148),w=n(4500),y=n(16356).calcMarkerSize;d.exports=function(p,a){for(var u=p._fullLayout,h=a.subplot,m=u[h].realaxis,v=u[h].imaginaryaxis,_=m.makeCalcdata(a,"real"),S=v.makeCalcdata(a,"imag"),A=a._length,x=new Array(A),R=0;R")}}d.exports={hoverPoints:function(i,O,w,y){var p=c(i,O,w,y);if(p&&p[0].index!==!1){var a=p[0];if(a.index===void 0)return p;var u=i.subplot,h=a.cd[a.index],m=a.trace;if(u.isPtInside(h))return a.xLabelVal=void 0,a.yLabelVal=void 0,b(h,m,u,a),a.hovertemplate=m.hovertemplate,p}},makeHoverPointText:b}},95443:function(d,l,n){d.exports={moduleType:"trace",name:"scattersmith",basePlotModule:n(47788),categories:["smith","symbols","showLegend","scatter-like"],attributes:n(69496),supplyDefaults:n(76716),colorbar:n(5528),formatLabels:n(49504),calc:n(47507),plot:n(34927),style:n(49224).style,styleOnSelect:n(49224).styleOnSelect,hoverPoints:n(25292).hoverPoints,selectPoints:n(91560),meta:{}}},34927:function(d,l,n){var c=n(96504),b=n(39032).BADNUM,i=n(36416).smith;d.exports=function(O,w,y){for(var p=w.layers.frontplot.select("g.scatterlayer"),a=w.xaxis,u=w.yaxis,h={xaxis:a,yaxis:u,plot:w.framework,layerClipId:w._hasClipOnAxisFalse?w.clipIds.forTraces:null},m=0;m"),p.hovertemplate=_.hovertemplate,y}function E(C,L){M.push(C._hovertitle+": "+L)}}},34864:function(d,l,n){d.exports={attributes:n(5896),supplyDefaults:n(84256),colorbar:n(5528),formatLabels:n(90404),calc:n(34335),plot:n(88776),style:n(49224).style,styleOnSelect:n(49224).styleOnSelect,hoverPoints:n(26596),selectPoints:n(91560),eventData:n(97476),moduleType:"trace",name:"scatterternary",basePlotModule:n(19352),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},88776:function(d,l,n){var c=n(96504);d.exports=function(b,i,O){var w=i.plotContainer;w.select(".scatterlayer").selectAll("*").remove();for(var y=i.xaxis,p=i.yaxis,a={xaxis:y,yaxis:p,plot:w,layerClipId:i._hasClipOnAxisFalse?i.clipIdRelative:null},u=i.layers.frontplot.select("g.scatterlayer"),h=0;hh?C.sizeAvg||Math.max(C.size,3):i(v,E),S=0;SI&&Q||k-1,W=!0;if(O(C)||A.selectedpoints||te){var K=A._length;if(A.selectedpoints){R.selectBatch=A.selectedpoints;var oe=A.selectedpoints,q={};for(h=0;h1&&(S=T[L-1],x=E[L-1],M=C[L-1]),p=0;pS?"-":"+")+"x")).replace("y",(A>x?"-":"+")+"y")).replace("z",(R>M?"-":"+")+"z");var W=function(){L=0,U=[],X=[],te=[]};(!L||L2?_.slice(1,S-1):S===2?[(_[0]+_[1])/2]:_}function m(_){var S=_.length;return S===1?[.5,.5]:[_[1]-_[0],_[S-1]-_[S-2]]}function v(_,S){var A=_.fullSceneLayout,x=_.dataScale,R=S._len,M={};function T(he,se){var ae=A[se],ce=x[p[se]];return i.simpleMap(he,function(de){return ae.d2l(de)*ce})}if(M.vectors=y(T(S._u,"xaxis"),T(S._v,"yaxis"),T(S._w,"zaxis"),R),!R)return{positions:[],cells:[]};var E=T(S._Xs,"xaxis"),C=T(S._Ys,"yaxis"),L=T(S._Zs,"zaxis");if(M.meshgrid=[E,C,L],M.gridFill=S._gridFill,S._slen)M.startingPositions=y(T(S._startsX,"xaxis"),T(S._startsY,"yaxis"),T(S._startsZ,"zaxis"));else{for(var D=C[0],k=h(E),I=h(L),z=new Array(k.length*I.length),$=0,Q=0;Q=0};D?(A=Math.min(L.length,I.length),x=function(_e){return X(L[_e])&&te(_e)},R=function(_e){return String(L[_e])}):(A=Math.min(k.length,I.length),x=function(_e){return X(k[_e])&&te(_e)},R=function(_e){return String(k[_e])}),$&&(A=Math.min(A,z.length));for(var W=0;W1){for(var Y=i.randstr(),ee=0;ee=0){O.i=a.i;var m=w.marker;m.pattern&&m.colors&&m.pattern.shape||(m.color=h,O.color=h),c.pointStyle(i,w,y,O)}else b.fill(i,h)}},45716:function(d,l,n){var c=n(33428),b=n(24040),i=n(10624).appendArrayPointValue,O=n(93024),w=n(3400),y=n(95924),p=n(78176),a=n(69656).formatPieValue;function u(h,m,v){for(var _=h.data.data,S={curveNumber:m.index,pointNumber:_.i,data:m._input,fullData:m},A=0;A"),name:U||me("name")?D.name:void 0,color:j("hoverlabel.bgcolor")||k.color,borderColor:j("hoverlabel.bordercolor"),fontFamily:j("hoverlabel.font.family"),fontSize:j("hoverlabel.font.size"),fontColor:j("hoverlabel.font.color"),nameLength:j("hoverlabel.namelength"),textAlign:j("hoverlabel.align"),hovertemplate:U,hovertemplateLabels:q,eventData:L};M&&(ae.x0=W-E.rInscribed*E.rpx1,ae.x1=W+E.rInscribed*E.rpx1,ae.idealAlign=E.pxmid[0]<0?"left":"right"),T&&(ae.x=W,ae.idealAlign=W<0?"left":"right");var ce=[];O.loneHover(ae,{container:C._hoverlayer.node(),outerContainer:C._paper.node(),gd:v,inOut_bbox:ce}),L[0].bbox=ce[0],x._hasHoverLabel=!0}if(T){var de=h.select("path.surface");S.styleOne(de,E,D,v,{hovered:!0})}x._hasHoverEvent=!0,v.emit("plotly_hover",{points:L||[u(E,D,S.eventDataKeys)],event:c.event})}}),h.on("mouseout",function(E){var C=v._fullLayout,L=v._fullData[x.index],D=c.select(this).datum();if(x._hasHoverEvent&&(E.originalEvent=c.event,v.emit("plotly_unhover",{points:[u(D,L,S.eventDataKeys)],event:c.event}),x._hasHoverEvent=!1),x._hasHoverLabel&&(O.loneUnhover(C._hoverlayer.node()),x._hasHoverLabel=!1),T){var k=h.select("path.surface");S.styleOne(k,D,L,v,{hovered:!1})}}),h.on("click",function(E){var C=v._fullLayout,L=v._fullData[x.index],D=M&&(p.isHierarchyRoot(E)||p.isLeaf(E)),k=p.getPtId(E),I=p.isEntry(E)?p.findEntryWithChild(R,k):p.findEntryWithLevel(R,k),z=p.getPtId(I),$={points:[u(E,L,S.eventDataKeys)],event:c.event};D||($.nextLevel=z);var Q=y.triggerHandler(v,"plotly_"+x.type+"click",$);if(Q!==!1&&C.hovermode&&(v._hoverdata=[u(E,L,S.eventDataKeys)],O.click(v,c.event)),!D&&Q!==!1&&!v._dragging&&!v._transitioning){b.call("_storeDirectGUIEdit",L,C._tracePreGUI[L.uid],{level:L.level});var j={data:[{level:z}],traces:[x.index]},U={frame:{redraw:!1,duration:S.transitionTime},transition:{duration:S.transitionTime,easing:S.transitionEasing},mode:"immediate",fromcurrent:!0};O.loneUnhover(C._hoverlayer.node()),b.call("animate",v,j,U)}})}},78176:function(d,l,n){var c=n(3400),b=n(76308),i=n(93972),O=n(69656);function w(y){return y.data.data.pid}l.findEntryWithLevel=function(y,p){var a;return p&&y.eachAfter(function(u){if(l.getPtId(u)===p)return a=u.copy()}),a||y},l.findEntryWithChild=function(y,p){var a;return y.eachAfter(function(u){for(var h=u.children||[],m=0;m0)},l.getMaxDepth=function(y){return y.maxdepth>=0?y.maxdepth:1/0},l.isHeader=function(y,p){return!(l.isLeaf(y)||y.depth===p._maxDepth-1)},l.getParent=function(y,p){return l.findEntryWithLevel(y,w(p))},l.listPath=function(y,p){var a=y.parent;if(!a)return[];var u=p?[a.data[p]]:[a];return l.listPath(a,p).concat(u)},l.getPath=function(y){return l.listPath(y,"label").join("/")+"/"},l.formatValue=O.formatPieValue,l.formatPercent=function(y,p){var a=c.formatPercent(y,0);return a==="0%"&&(a=O.formatPiePercent(y,p)),a}},5621:function(d,l,n){d.exports={moduleType:"trace",name:"sunburst",basePlotModule:n(54904),categories:[],animatable:!0,attributes:n(424),layoutAttributes:n(84920),supplyDefaults:n(25244),supplyLayoutDefaults:n(28732),calc:n(3776).calc,crossTraceCalc:n(3776).crossTraceCalc,plot:n(96488).plot,style:n(85676).style,colorbar:n(5528),meta:{}}},84920:function(d){d.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}},28732:function(d,l,n){var c=n(3400),b=n(84920);d.exports=function(i,O){function w(y,p){return c.coerce(i,O,b,y,p)}w("sunburstcolorway",O.colorway),w("extendsunburstcolors")}},96488:function(d,l,n){var c=n(33428),b=n(74148),i=n(67756).qy,O=n(43616),w=n(3400),y=n(72736),p=n(82744),a=p.recordMinTextSize,u=p.clearMinTextSize,h=n(37820),m=n(69656).getRotationAngle,v=h.computeTransform,_=h.transformInsideText,S=n(85676).styleOne,A=n(60100).resizeText,x=n(45716),R=n(27328),M=n(78176);function T(C,L,D,k){var I=C._context.staticPlot,z=C._fullLayout,$=!z.uniformtext.mode&&M.hasTransition(k),Q=c.select(D).selectAll("g.slice"),j=L[0],U=j.trace,X=j.hierarchy,te=M.findEntryWithLevel(X,U.level),W=M.getMaxDepth(U),K=z._size,oe=U.domain,q=K.w*(oe.x[1]-oe.x[0]),Y=K.h*(oe.y[1]-oe.y[0]),ee=.5*Math.min(q,Y),me=j.cx=K.l+K.w*(oe.x[1]+oe.x[0])/2,he=j.cy=K.t+K.h*(1-oe.y[0])-Y/2;if(!te)return Q.remove();var se=null,ae={};$&&Q.each(function(ke){ae[M.getPtId(ke)]={rpx0:ke.rpx0,rpx1:ke.rpx1,x0:ke.x0,x1:ke.x1,transform:ke.transform},!se&&M.isEntry(ke)&&(se=ke)});var ce=function(ke){return b.partition().size([2*Math.PI,ke.height+1])(ke)}(te).descendants(),de=te.height+1,ve=0,ye=W;j.hasMultipleRoots&&M.isHierarchyRoot(te)&&(ce=ce.slice(1),de-=1,ve=1,ye+=1),ce=ce.filter(function(ke){return ke.y1<=ye});var _e=m(U.rotation);_e&&ce.forEach(function(ke){ke.x0+=_e,ke.x1+=_e});var Se=Math.min(de,W),Te=function(ke){return(ke-ve)/Se*ee},Pe=function(ke,Le){return[ke*Math.cos(Le),-ke*Math.sin(Le)]},Ie=function(ke){return w.pathAnnulus(ke.rpx0,ke.rpx1,ke.x0,ke.x1,me,he)},ze=function(ke){return me+E(ke)[0]*(ke.transform.rCenter||0)+(ke.transform.x||0)},De=function(ke){return he+E(ke)[1]*(ke.transform.rCenter||0)+(ke.transform.y||0)};(Q=Q.data(ce,M.getPtId)).enter().append("g").classed("slice",!0),$?Q.exit().transition().each(function(){var ke=c.select(this);ke.select("path.surface").transition().attrTween("d",function(Le){var We=function(Ue){var Ze,Xe=M.getPtId(Ue),tt=ae[Xe],Ee=ae[M.getPtId(te)];if(Ee){var Ne=(Ue.x1>Ee.x1?2*Math.PI:0)+_e;Ze=Ue.rpx1He?2*Math.PI:0)+_e;ot={x0:pt,x1:pt}}else ot={rpx0:ee,rpx1:ee},w.extendFlat(ot,Oe(nt));else ot={rpx0:0,rpx1:0};else ot={x0:_e,x1:_e};return i(ot,ht)}(Ne);return function(nt){return Ie(je(nt))}}):We.attr("d",Ie),Le.call(x,te,C,L,{eventDataKeys:R.eventDataKeys,transitionTime:R.CLICK_TRANSITION_TIME,transitionEasing:R.CLICK_TRANSITION_EASING}).call(M.setSliceCursor,C,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:C._transitioning}),We.call(S,ke,U,C);var Ue=w.ensureSingle(Le,"g","slicetext"),Ze=w.ensureSingle(Ue,"text","",function(Ne){Ne.attr("data-notex",1)}),Xe=w.ensureUniformFontSize(C,M.determineTextFont(U,ke,z.font));Ze.text(l.formatSliceLabel(ke,te,U,L,z)).classed("slicetext",!0).attr("text-anchor","middle").call(O.font,Xe).call(y.convertToTspans,C);var tt=O.bBox(Ze.node());ke.transform=_(tt,ke,j),ke.transform.targetX=ze(ke),ke.transform.targetY=De(ke);var Ee=function(Ne,je){var nt=Ne.transform;return v(nt,je),nt.fontSize=Xe.size,a(U.type,nt,z),w.getTextTransform(nt)};$?Ze.transition().attrTween("transform",function(Ne){var je=function(nt){var ot,Ge=ae[M.getPtId(nt)],ht=nt.transform;if(Ge)ot=Ge;else if(ot={rpx1:nt.rpx1,transform:{textPosAngle:ht.textPosAngle,scale:0,rotate:ht.rotate,rCenter:ht.rCenter,x:ht.x,y:ht.y}},se)if(nt.parent)if(He){var pt=nt.x1>He?2*Math.PI:0;ot.x0=ot.x1=pt}else w.extendFlat(ot,Oe(nt));else ot.x0=ot.x1=_e;else ot.x0=ot.x1=_e;var wt=i(ot.transform.textPosAngle,nt.transform.textPosAngle),Dt=i(ot.rpx1,nt.rpx1),It=i(ot.x0,nt.x0),qt=i(ot.x1,nt.x1),en=i(ot.transform.scale,ht.scale),Gt=i(ot.transform.rotate,ht.rotate),Ct=ht.rCenter===0?3:ot.transform.rCenter===0?1/3:1,_t=i(ot.transform.rCenter,ht.rCenter);return function(nn){var gn=Dt(nn),bn=It(nn),mn=qt(nn),vt=function(lt){return _t(Math.pow(lt,Ct))}(nn),bt={pxmid:Pe(gn,(bn+mn)/2),rpx1:gn,transform:{textPosAngle:wt(nn),rCenter:vt,x:ht.x,y:ht.y}};return a(U.type,ht,z),{transform:{targetX:ze(bt),targetY:De(bt),scale:en(nn),rotate:Gt(nn),rCenter:vt}}}}(Ne);return function(nt){return Ee(je(nt),tt)}}):Ze.attr("transform",Ee(ke,tt))})}function E(C){return L=C.rpx1,D=C.transform.textPosAngle,[L*Math.sin(D),-L*Math.cos(D)];var L,D}l.plot=function(C,L,D,k){var I,z,$=C._fullLayout,Q=$._sunburstlayer,j=!D,U=!$.uniformtext.mode&&M.hasTransition(D);u("sunburst",$),(I=Q.selectAll("g.trace.sunburst").data(L,function(X){return X[0].trace.uid})).enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),I.order(),U?(k&&(z=k()),c.transition().duration(D.duration).ease(D.easing).each("end",function(){z&&z()}).each("interrupt",function(){z&&z()}).each(function(){Q.selectAll("g.trace").each(function(X){T(C,X,this,D)})})):(I.each(function(X){T(C,X,this,D)}),$.uniformtext.mode&&A(C,$._sunburstlayer.selectAll(".trace"),"sunburst")),j&&I.exit().remove()},l.formatSliceLabel=function(C,L,D,k,I){var z=D.texttemplate,$=D.textinfo;if(!(z||$&&$!=="none"))return"";var Q=I.separators,j=k[0],U=C.data.data,X=j.hierarchy,te=M.isHierarchyRoot(C),W=M.getParent(X,C),K=M.getValue(C);if(!z){var oe,q=$.split("+"),Y=function(ye){return q.indexOf(ye)!==-1},ee=[];if(Y("label")&&U.label&&ee.push(U.label),U.hasOwnProperty("v")&&Y("value")&&ee.push(M.formatValue(U.v,Q)),!te){Y("current path")&&ee.push(M.getPath(C.data));var me=0;Y("percent parent")&&me++,Y("percent entry")&&me++,Y("percent root")&&me++;var he=me>1;if(me){var se,ae=function(ye){oe=M.formatPercent(se,Q),he&&(oe+=" of "+ye),ee.push(oe)};Y("percent parent")&&!te&&(se=K/M.getValue(W),ae("parent")),Y("percent entry")&&(se=K/M.getValue(L),ae("entry")),Y("percent root")&&(se=K/M.getValue(X),ae("root"))}}return Y("text")&&(oe=w.castOption(D,U.i,"text"),w.isValidTextValue(oe)&&ee.push(oe)),ee.join("
")}var ce=w.castOption(D,U.i,"texttemplate");if(!ce)return"";var de={};U.label&&(de.label=U.label),U.hasOwnProperty("v")&&(de.value=U.v,de.valueLabel=M.formatValue(U.v,Q)),de.currentPath=M.getPath(C.data),te||(de.percentParent=K/M.getValue(W),de.percentParentLabel=M.formatPercent(de.percentParent,Q),de.parent=M.getPtLabel(W)),de.percentEntry=K/M.getValue(L),de.percentEntryLabel=M.formatPercent(de.percentEntry,Q),de.entry=M.getPtLabel(L),de.percentRoot=K/M.getValue(X),de.percentRootLabel=M.formatPercent(de.percentRoot,Q),de.root=M.getPtLabel(X),U.hasOwnProperty("color")&&(de.color=U.color);var ve=w.castOption(D,U.i,"text");return(w.isValidTextValue(ve)||ve==="")&&(de.text=ve),de.customdata=w.castOption(D,U.i,"customdata"),w.texttemplateString(ce,de,I._d3locale,de,D._meta||{})}},85676:function(d,l,n){var c=n(33428),b=n(76308),i=n(3400),O=n(82744).resizeText,w=n(60404);function y(p,a,u,h){var m=a.data.data,v=!a.children,_=m.i,S=i.castOption(u,_,"marker.line.color")||b.defaultLine,A=i.castOption(u,_,"marker.line.width")||0;p.call(w,a,u,h).style("stroke-width",A).call(b.stroke,S).style("opacity",v?u.leaf.opacity:null)}d.exports={style:function(p){var a=p._fullLayout._sunburstlayer.selectAll(".trace");O(p,a,"sunburst"),a.each(function(u){var h=c.select(this),m=u[0].trace;h.style("opacity",m.opacity),h.selectAll("path.surface").each(function(v){c.select(this).call(y,v,m,p)})})},styleOne:y}},16716:function(d,l,n){var c=n(76308),b=n(49084),i=n(29736).axisHoverFormat,O=n(21776).Ks,w=n(45464),y=n(92880).extendFlat,p=n(67824).overrideAll;function a(h){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:{valType:"boolean",dflt:!1},y:{valType:"boolean",dflt:!1},z:{valType:"boolean",dflt:!1}},color:{valType:"color",dflt:c.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:c.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var u=d.exports=p(y({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:O(),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},b("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:a(),y:a(),z:a()},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},_deprecated:{zauto:y({},b.zauto,{}),zmin:y({},b.zmin,{}),zmax:y({},b.zmax,{})},hoverinfo:y({},w.hoverinfo),showlegend:y({},w.showlegend,{dflt:!1})}),"calc","nested");u.x.editType=u.y.editType=u.z.editType="calc+clearAxisTypes",u.transforms=void 0},56576:function(d,l,n){var c=n(47128);d.exports=function(b,i){i.surfacecolor?c(b,i,{vals:i.surfacecolor,containerStr:"",cLetter:"c"}):c(b,i,{vals:i.z,containerStr:"",cLetter:"c"})}},79164:function(d,l,n){var c=n(67792).gl_surface3d,b=n(67792).ndarray,i=n(67792).ndarray_linear_interpolate.d2,O=n(70448),w=n(11240),y=n(3400).isArrayOrTypedArray,p=n(33040).parseColorScale,a=n(43080),u=n(8932).extractOpts;function h(D,k,I){this.scene=D,this.uid=I,this.surface=k,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var m=h.prototype;m.getXat=function(D,k,I,z){var $=y(this.data.x)?y(this.data.x[0])?this.data.x[k][D]:this.data.x[D]:D;return I===void 0?$:z.d2l($,0,I)},m.getYat=function(D,k,I,z){var $=y(this.data.y)?y(this.data.y[0])?this.data.y[k][D]:this.data.y[k]:k;return I===void 0?$:z.d2l($,0,I)},m.getZat=function(D,k,I,z){var $=this.data.z[k][D];return $===null&&this.data.connectgaps&&this.data._interpolatedZ&&($=this.data._interpolatedZ[k][D]),I===void 0?$:z.d2l($,0,I)},m.handlePick=function(D){if(D.object===this.surface){var k=(D.data.index[0]-1)/this.dataScaleX-1,I=(D.data.index[1]-1)/this.dataScaleY-1,z=Math.max(Math.min(Math.round(k),this.data.z[0].length-1),0),$=Math.max(Math.min(Math.round(I),this.data._ylength-1),0);D.index=[z,$],D.traceCoordinate=[this.getXat(z,$),this.getYat(z,$),this.getZat(z,$)],D.dataCoordinate=[this.getXat(z,$,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(z,$,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(z,$,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var Q=0;Q<3;Q++)D.dataCoordinate[Q]!=null&&(D.dataCoordinate[Q]*=this.scene.dataScale[Q]);var j=this.data.hovertext||this.data.text;return y(j)&&j[$]&&j[$][z]!==void 0?D.textLabel=j[$][z]:D.textLabel=j||"",D.data.dataCoordinate=D.dataCoordinate.slice(),this.surface.highlight(D.data),this.scene.glplot.spikes.position=D.dataCoordinate,!0}};var v=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function _(D,k){if(D0){I=v[z];break}return I}function x(D,k){if(!(D<1||k<1)){for(var I=S(D),z=S(k),$=1,Q=0;QT;)I--,I/=A(I),++I1?z:1},m.refineCoords=function(D){for(var k=this.dataScaleX,I=this.dataScaleY,z=D[0].shape[0],$=D[0].shape[1],Q=0|Math.floor(D[0].shape[0]*k+1),j=0|Math.floor(D[0].shape[1]*I+1),U=1+z+1,X=1+$+1,te=b(new Float32Array(U*X),[U,X]),W=[1/k,0,0,0,1/I,0,0,0,1],K=0;K0&&this.contourStart[D]!==null&&this.contourEnd[D]!==null&&this.contourEnd[D]>this.contourStart[D]))for($[D]=!0,k=this.contourStart[D];k$&&(this.minValues[k]=$),this.maxValues[k]<$&&(this.maxValues[k]=$));for(k=0;k<3;k++)this.objectOffset[k]=.5*(this.minValues[k]+this.maxValues[k]);for(k=0;k<3;k++)for(I=0;I",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}},55992:function(d,l,n){var c=n(23536),b=n(92880).extendFlat,i=n(38248),O=n(38116).isTypedArray,w=n(38116).isArrayOrTypedArray;function y(_){if(w(_)){for(var S=0,A=0;A<_.length;A++)S=Math.max(S,y(_[A]));return S}return _}function p(_,S){return _+S}function a(_){var S,A=_.slice(),x=1/0,R=0;for(S=0;S=S||L===_.length-1)&&(x[R]=T,T.key=C++,T.firstRowIndex=E,T.lastRowIndex=L,T={firstRowIndex:null,lastRowIndex:null,rows:[]},R+=M,E=L+1,M=0);return x}d.exports=function(_,S){var A=a(S.cells.values),x=function(K){return K.slice(S.header.values.length,K.length)},R=a(S.header.values);R.length&&!R[0].length&&(R[0]=[""],R=a(R));var M=R.concat(x(A).map(function(){return u((R[0]||[""]).length)})),T=S.domain,E=Math.floor(_._fullLayout._size.w*(T.x[1]-T.x[0])),C=Math.floor(_._fullLayout._size.h*(T.y[1]-T.y[0])),L=S.header.values.length?M[0].map(function(){return S.header.height}):[c.emptyHeaderHeight],D=A.length?A[0].map(function(){return S.cells.height}):[],k=L.reduce(p,0),I=v(D,C-k+c.uplift),z=m(v(L,k),[]),$=m(I,z),Q={},j=S._fullInput.columnorder;w(j)&&(j=Array.from(j)),j=j.concat(x(A.map(function(K,oe){return oe})));var U=M.map(function(K,oe){var q=w(S.columnwidth)?S.columnwidth[Math.min(oe,S.columnwidth.length-1)]:S.columnwidth;return i(q)?Number(q):1}),X=U.reduce(p,0);U=U.map(function(K){return K/X*E});var te=Math.max(y(S.header.line.width),y(S.cells.line.width)),W={key:S.uid+_._context.staticPlot,translateX:T.x[0]*_._fullLayout._size.w,translateY:_._fullLayout._size.h*(1-T.y[1]),size:_._fullLayout._size,width:E,maxLineWidth:te,height:C,columnOrder:j,groupHeight:C,rowBlocks:$,headerRowBlocks:z,scrollY:0,cells:b({},S.cells,{values:A}),headerCells:b({},S.header,{values:M}),gdColumns:M.map(function(K){return K[0]}),gdColumnsOriginalOrder:M.map(function(K){return K[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:M.map(function(K,oe){var q=Q[K];return Q[K]=(q||0)+1,{key:K+"__"+Q[K],label:K,specIndex:oe,xIndex:j[oe],xScale:h,x:void 0,calcdata:void 0,columnWidth:U[oe]}})};return W.columns.forEach(function(K){K.calcdata=W,K.x=h(K)}),W}},53056:function(d,l,n){var c=n(92880).extendFlat;l.splitToPanels=function(b){var i=[0,0],O=c({},b,{key:"header",type:"header",page:0,prevPages:i,currentRepaint:[null,null],dragHandle:!0,values:b.calcdata.headerCells.values[b.specIndex],rowBlocks:b.calcdata.headerRowBlocks,calcdata:c({},b.calcdata,{cells:b.calcdata.headerCells})});return[c({},b,{key:"cells1",type:"cells",page:0,prevPages:i,currentRepaint:[null,null],dragHandle:!1,values:b.calcdata.cells.values[b.specIndex],rowBlocks:b.calcdata.rowBlocks}),c({},b,{key:"cells2",type:"cells",page:1,prevPages:i,currentRepaint:[null,null],dragHandle:!1,values:b.calcdata.cells.values[b.specIndex],rowBlocks:b.calcdata.rowBlocks}),O]},l.splitToCells=function(b){var i=function(O){var w=O.rowBlocks[O.page],y=w?w.rows[0].rowIndex:0;return[y,w?y+w.rows.length:0]}(b);return(b.values||[]).slice(i[0],i[1]).map(function(O,w){return{keyWithinBlock:w+(typeof O=="string"&&O.match(/[<$&> ]/)?"_keybuster_"+Math.random():""),key:i[0]+w,column:b,calcdata:b.calcdata,page:b.page,rowBlocks:b.rowBlocks,value:O}})}},53212:function(d,l,n){var c=n(3400),b=n(60520),i=n(86968).Q;d.exports=function(O,w,y,p){function a(u,h){return c.coerce(O,w,b,u,h)}i(w,p,a),a("columnwidth"),a("header.values"),a("header.format"),a("header.align"),a("header.prefix"),a("header.suffix"),a("header.height"),a("header.line.width"),a("header.line.color"),a("header.fill.color"),c.coerceFont(a,"header.font",c.extendFlat({},p.font)),function(u,h){for(var m=u.columnorder||[],v=u.header.values.length,_=m.slice(0,v),S=_.slice().sort(function(R,M){return R-M}),A=_.map(function(R){return S.indexOf(R)}),x=A.length;x/i),Se=!ye||_e;ae.mayHaveMarkup=ye&&ve.match(/[<&>]/);var Te,Pe=typeof(Te=ve)=="string"&&Te.match(c.latexCheck);ae.latex=Pe;var Ie,ze,De=Pe?"":L(ae.calcdata.cells.prefix,ce,de)||"",He=Pe?"":L(ae.calcdata.cells.suffix,ce,de)||"",Ve=Pe?null:L(ae.calcdata.cells.format,ce,de)||null,$e=De+(Ve?O(Ve)(ae.value):ae.value)+He;if(ae.wrappingNeeded=!ae.wrapped&&!Se&&!Pe&&(Ie=C($e)),ae.cellHeightMayIncrease=_e||Pe||ae.mayHaveMarkup||(Ie===void 0?C($e):Ie),ae.needsConvertToTspans=ae.mayHaveMarkup||ae.wrappingNeeded||ae.latex,ae.wrappingNeeded){var Oe=(c.wrapSplitCharacter===" "?$e.replace(/ze&&Ie.push(De),ze+=$e}return Ie}(ae,ye,ve);_e.length===1&&(_e[0]===ae.length-1?_e.unshift(_e[0]-1):_e.push(_e[0]+1)),_e[0]%2&&_e.reverse(),me.each(function(Se,Te){Se.page=_e[Te],Se.scrollY=ye}),me.attr("transform",function(Se){var Te=K(Se.rowBlocks,Se.page)-Se.scrollY;return u(0,Te)}),ee&&(j(ee,he,me,_e,se.prevPages,se,0),j(ee,he,me,_e,se.prevPages,se,1),M(he,ee))}}function Q(ee,me,he,se){return function(ae){var ce=ae.calcdata?ae.calcdata:ae,de=me.filter(function(Se){return ce.key===Se.key}),ve=he||ce.scrollbarState.dragMultiplier,ye=ce.scrollY;ce.scrollY=se===void 0?ce.scrollY+ve*b.event.dy:se;var _e=de.selectAll("."+c.cn.yColumn).selectAll("."+c.cn.columnBlock).filter(k);return $(ee,_e,de),ce.scrollY===ye}}function j(ee,me,he,se,ae,ce,de){se[de]!==ae[de]&&(clearTimeout(ce.currentRepaint[de]),ce.currentRepaint[de]=setTimeout(function(){var ve=he.filter(function(ye,_e){return _e===de&&se[_e]!==ae[_e]});T(ee,me,ve,he),ae[de]=se[de]}))}function U(ee,me,he,se){return function(){var ae=b.select(me.parentNode);ae.each(function(ce){var de=ce.fragments;ae.selectAll("tspan.line").each(function(ze,De){de[De].width=this.getComputedTextLength()});var ve,ye,_e=de[de.length-1].width,Se=de.slice(0,-1),Te=[],Pe=0,Ie=ce.column.columnWidth-2*c.cellPad;for(ce.value="";Se.length;)Pe+(ye=(ve=Se.shift()).width+_e)>Ie&&(ce.value+=Te.join(c.wrapSpacer)+c.lineBreaker,Te=[],Pe=0),Te.push(ve.text),Pe+=ye;Pe&&(ce.value+=Te.join(c.wrapSpacer)),ce.wrapped=!0}),ae.selectAll("tspan.line").remove(),E(ae.select("."+c.cn.cellText),he,ee,se),b.select(me.parentNode.parentNode).call(W)}}function X(ee,me,he,se,ae){return function(){if(!ae.settledY){var ce=b.select(me.parentNode),de=Y(ae),ve=ae.key-de.firstRowIndex,ye=de.rows[ve].rowHeight,_e=ae.cellHeightMayIncrease?me.parentNode.getBoundingClientRect().height+2*c.cellPad:ye,Se=Math.max(_e,ye);Se-de.rows[ve].rowHeight&&(de.rows[ve].rowHeight=Se,ee.selectAll("."+c.cn.columnCell).call(W),$(null,ee.filter(k),0),M(he,se,!0)),ce.attr("transform",function(){var Te=this,Pe=Te.parentNode.getBoundingClientRect(),Ie=b.select(Te.parentNode).select("."+c.cn.cellRect).node().getBoundingClientRect(),ze=Te.transform.baseVal.consolidate(),De=Ie.top-Pe.top+(ze?ze.matrix.f:c.cellPad);return u(te(ae,b.select(Te.parentNode).select("."+c.cn.cellTextHolder).node().getBoundingClientRect().width),De)}),ae.settledY=!0}}}function te(ee,me){switch(ee.align){case"left":default:return c.cellPad;case"right":return ee.column.columnWidth-(me||0)-c.cellPad;case"center":return(ee.column.columnWidth-(me||0))/2}}function W(ee){ee.attr("transform",function(me){var he=me.rowBlocks[0].auxiliaryBlocks.reduce(function(ae,ce){return ae+oe(ce,1/0)},0),se=oe(Y(me),me.key);return u(0,se+he)}).selectAll("."+c.cn.cellRect).attr("height",function(me){return(he=Y(me),se=me.key,he.rows[se-he.firstRowIndex]).rowHeight;var he,se})}function K(ee,me){for(var he=0,se=me-1;se>=0;se--)he+=q(ee[se]);return he}function oe(ee,me){for(var he=0,se=0;se","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:a({},w.textfont,{}),editType:"calc"},text:w.text,textinfo:y.textinfo,texttemplate:b({editType:"plot"},{keys:p.eventDataKeys.concat(["label","value"])}),hovertext:w.hovertext,hoverinfo:y.hoverinfo,hovertemplate:c({},{keys:p.eventDataKeys}),textfont:w.textfont,insidetextfont:w.insidetextfont,outsidetextfont:a({},w.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:w.sort,root:y.root,domain:O({name:"treemap",trace:!0,editType:"calc"})}},79516:function(d,l,n){var c=n(7316);l.name="treemap",l.plot=function(b,i,O,w){c.plotBasePlot(l.name,b,i,O,w)},l.clean=function(b,i,O,w){c.cleanBasePlot(l.name,b,i,O,w)}},97840:function(d,l,n){var c=n(3776);l.r=function(b,i){return c.calc(b,i)},l.q=function(b){return c._runCrossTraceCalc("treemap",b)}},32984:function(d){d.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},34092:function(d,l,n){var c=n(3400),b=n(40516),i=n(76308),O=n(86968).Q,w=n(31508).handleText,y=n(78048).TEXTPAD,p=n(74174).handleMarkerDefaults,a=n(8932),u=a.hasColorscale,h=a.handleDefaults;d.exports=function(m,v,_,S){function A(D,k){return c.coerce(m,v,b,D,k)}var x=A("labels"),R=A("parents");if(x&&x.length&&R&&R.length){var M=A("values");M&&M.length?A("branchvalues"):A("count"),A("level"),A("maxdepth"),A("tiling.packing")==="squarify"&&A("tiling.squarifyratio"),A("tiling.flip"),A("tiling.pad");var T=A("text");A("texttemplate"),v.texttemplate||A("textinfo",c.isArrayOrTypedArray(T)?"text+label":"label"),A("hovertext"),A("hovertemplate");var E=A("pathbar.visible");w(m,v,S,A,"auto",{hasPathbar:E,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),A("textposition");var C=v.textposition.indexOf("bottom")!==-1;p(m,v,S,A),(v._hasColorscale=u(m,"marker","colors")||(m.marker||{}).coloraxis)?h(m,v,S,A,{prefix:"marker.",cLetter:"c"}):A("marker.depthfade",!(v.marker.colors||[]).length);var L=2*v.textfont.size;A("marker.pad.t",C?L/4:L),A("marker.pad.l",L/4),A("marker.pad.r",L/4),A("marker.pad.b",C?L:L/4),A("marker.cornerradius"),v._hovered={marker:{line:{width:2,color:i.contrast(S.paper_bgcolor)}}},E&&(A("pathbar.thickness",v.pathbar.textfont.size+2*y),A("pathbar.side"),A("pathbar.edgeshape")),A("sort"),A("root.color"),O(v,S,A),v._length=null}else v.visible=!1}},95808:function(d,l,n){var c=n(33428),b=n(78176),i=n(82744).clearMinTextSize,O=n(60100).resizeText,w=n(52960);d.exports=function(y,p,a,u,h){var m,v,_=h.type,S=h.drawDescendants,A=y._fullLayout,x=A["_"+_+"layer"],R=!a;i(_,A),(m=x.selectAll("g.trace."+_).data(p,function(M){return M[0].trace.uid})).enter().append("g").classed("trace",!0).classed(_,!0),m.order(),!A.uniformtext.mode&&b.hasTransition(a)?(u&&(v=u()),c.transition().duration(a.duration).ease(a.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).each(function(){x.selectAll("g.trace").each(function(M){w(y,M,this,a,S)})})):(m.each(function(M){w(y,M,this,a,S)}),A.uniformtext.mode&&O(y,x.selectAll(".trace"),_)),R&&m.exit().remove()}},27336:function(d,l,n){var c=n(33428),b=n(3400),i=n(43616),O=n(72736),w=n(13832),y=n(66192).styleOne,p=n(32984),a=n(78176),u=n(45716),h=!0;d.exports=function(m,v,_,S,A){var x=A.barDifY,R=A.width,M=A.height,T=A.viewX,E=A.viewY,C=A.pathSlice,L=A.toMoveInsideSlice,D=A.strTransform,k=A.hasTransition,I=A.handleSlicesExit,z=A.makeUpdateSliceInterpolator,$=A.makeUpdateTextInterpolator,Q={},j=m._context.staticPlot,U=m._fullLayout,X=v[0],te=X.trace,W=X.hierarchy,K=R/te._entryDepth,oe=a.listPath(_.data,"id"),q=w(W.copy(),[R,M],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(q=q.filter(function(ee){var me=oe.indexOf(ee.data.id);return me!==-1&&(ee.x0=K*me,ee.x1=K*(me+1),ee.y0=x,ee.y1=x+M,ee.onPathbar=!0,!0)})).reverse(),(S=S.data(q,a.getPtId)).enter().append("g").classed("pathbar",!0),I(S,h,Q,[R,M],C),S.order();var Y=S;k&&(Y=Y.transition().each("end",function(){var ee=c.select(this);a.setSliceCursor(ee,m,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),Y.each(function(ee){ee._x0=T(ee.x0),ee._x1=T(ee.x1),ee._y0=E(ee.y0),ee._y1=E(ee.y1),ee._hoverX=T(ee.x1-Math.min(R,M)/2),ee._hoverY=E(ee.y1-M/2);var me=c.select(this),he=b.ensureSingle(me,"path","surface",function(de){de.style("pointer-events",j?"none":"all")});k?he.transition().attrTween("d",function(de){var ve=z(de,h,Q,[R,M]);return function(ye){return C(ve(ye))}}):he.attr("d",C),me.call(u,_,m,v,{styleOne:y,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,m,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:m._transitioning}),he.call(y,ee,te,m,{hovered:!1}),ee._text=(a.getPtLabel(ee)||"").split("
").join(" ")||"";var se=b.ensureSingle(me,"g","slicetext"),ae=b.ensureSingle(se,"text","",function(de){de.attr("data-notex",1)}),ce=b.ensureUniformFontSize(m,a.determineTextFont(te,ee,U.font,{onPathbar:!0}));ae.text(ee._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(i.font,ce).call(O.convertToTspans,m),ee.textBB=i.bBox(ae.node()),ee.transform=L(ee,{fontSize:ce.size,onPathbar:!0}),ee.transform.fontSize=ce.size,k?ae.transition().attrTween("transform",function(de){var ve=$(de,h,Q,[R,M]);return function(ye){return D(ve(ye))}}):ae.attr("transform",D(ee))})}},76477:function(d,l,n){var c=n(33428),b=n(3400),i=n(43616),O=n(72736),w=n(13832),y=n(66192).styleOne,p=n(32984),a=n(78176),u=n(45716),h=n(96488).formatSliceLabel,m=!1;d.exports=function(v,_,S,A,x){var R=x.width,M=x.height,T=x.viewX,E=x.viewY,C=x.pathSlice,L=x.toMoveInsideSlice,D=x.strTransform,k=x.hasTransition,I=x.handleSlicesExit,z=x.makeUpdateSliceInterpolator,$=x.makeUpdateTextInterpolator,Q=x.prevEntry,j=v._context.staticPlot,U=v._fullLayout,X=_[0].trace,te=X.textposition.indexOf("left")!==-1,W=X.textposition.indexOf("right")!==-1,K=X.textposition.indexOf("bottom")!==-1,oe=!K&&!X.marker.pad.t||K&&!X.marker.pad.b,q=w(S,[R,M],{packing:X.tiling.packing,squarifyratio:X.tiling.squarifyratio,flipX:X.tiling.flip.indexOf("x")>-1,flipY:X.tiling.flip.indexOf("y")>-1,pad:{inner:X.tiling.pad,top:X.marker.pad.t,left:X.marker.pad.l,right:X.marker.pad.r,bottom:X.marker.pad.b}}).descendants(),Y=1/0,ee=-1/0;q.forEach(function(ce){var de=ce.depth;de>=X._maxDepth?(ce.x0=ce.x1=(ce.x0+ce.x1)/2,ce.y0=ce.y1=(ce.y0+ce.y1)/2):(Y=Math.min(Y,de),ee=Math.max(ee,de))}),A=A.data(q,a.getPtId),X._maxVisibleLayers=isFinite(ee)?ee-Y+1:0,A.enter().append("g").classed("slice",!0),I(A,m,{},[R,M],C),A.order();var me=null;if(k&&Q){var he=a.getPtId(Q);A.each(function(ce){me===null&&a.getPtId(ce)===he&&(me={x0:ce.x0,x1:ce.x1,y0:ce.y0,y1:ce.y1})})}var se=function(){return me||{x0:0,x1:R,y0:0,y1:M}},ae=A;return k&&(ae=ae.transition().each("end",function(){var ce=c.select(this);a.setSliceCursor(ce,v,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),ae.each(function(ce){var de=a.isHeader(ce,X);ce._x0=T(ce.x0),ce._x1=T(ce.x1),ce._y0=E(ce.y0),ce._y1=E(ce.y1),ce._hoverX=T(ce.x1-X.marker.pad.r),ce._hoverY=E(K?ce.y1-X.marker.pad.b/2:ce.y0+X.marker.pad.t/2);var ve=c.select(this),ye=b.ensureSingle(ve,"path","surface",function(Pe){Pe.style("pointer-events",j?"none":"all")});k?ye.transition().attrTween("d",function(Pe){var Ie=z(Pe,m,se(),[R,M]);return function(ze){return C(Ie(ze))}}):ye.attr("d",C),ve.call(u,S,v,_,{styleOne:y,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,v,{isTransitioning:v._transitioning}),ye.call(y,ce,X,v,{hovered:!1}),ce.x0===ce.x1||ce.y0===ce.y1?ce._text="":ce._text=de?oe?"":a.getPtLabel(ce)||"":h(ce,S,X,_,U)||"";var _e=b.ensureSingle(ve,"g","slicetext"),Se=b.ensureSingle(_e,"text","",function(Pe){Pe.attr("data-notex",1)}),Te=b.ensureUniformFontSize(v,a.determineTextFont(X,ce,U.font));Se.text(ce._text||" ").classed("slicetext",!0).attr("text-anchor",W?"end":te||de?"start":"middle").call(i.font,Te).call(O.convertToTspans,v),ce.textBB=i.bBox(Se.node()),ce.transform=L(ce,{fontSize:Te.size,isHeader:de}),ce.transform.fontSize=Te.size,k?Se.transition().attrTween("transform",function(Pe){var Ie=$(Pe,m,se(),[R,M]);return function(ze){return D(Ie(ze))}}):Se.attr("transform",D(ce))}),me}},83024:function(d){d.exports=function l(n,c,b){var i;b.swapXY&&(i=n.x0,n.x0=n.y0,n.y0=i,i=n.x1,n.x1=n.y1,n.y1=i),b.flipX&&(i=n.x0,n.x0=c[0]-n.x1,n.x1=c[0]-i),b.flipY&&(i=n.y0,n.y0=c[1]-n.y1,n.y1=c[1]-i);var O=n.children;if(O)for(var w=0;w-1?X+K:-(W+K):0,q={x0:te,x1:te,y0:oe,y1:oe+W},Y=function(je,nt,ot){var Ge=M.tiling.pad,ht=function(It){return It-Ge<=nt.x0},pt=function(It){return It+Ge>=nt.x1},wt=function(It){return It-Ge<=nt.y0},Dt=function(It){return It+Ge>=nt.y1};return je.x0===nt.x0&&je.x1===nt.x1&&je.y0===nt.y0&&je.y1===nt.y1?{x0:je.x0,x1:je.x1,y0:je.y0,y1:je.y1}:{x0:ht(je.x0-Ge)?0:pt(je.x0-Ge)?ot[0]:je.x0,x1:ht(je.x1+Ge)?0:pt(je.x1+Ge)?ot[0]:je.x1,y0:wt(je.y0-Ge)?0:Dt(je.y0-Ge)?ot[1]:je.y0,y1:wt(je.y1+Ge)?0:Dt(je.y1+Ge)?ot[1]:je.y1}},ee=null,me={},he={},se=null,ae=function(je,nt){return nt?me[h(je)]:he[h(je)]};R.hasMultipleRoots&&I&&$++,M._maxDepth=$,M._backgroundColor=x.paper_bgcolor,M._entryDepth=C.data.depth,M._atRootLevel=I;var ce=-U/2+Q.l+Q.w*(j.x[1]+j.x[0])/2,de=-X/2+Q.t+Q.h*(1-(j.y[1]+j.y[0])/2),ve=function(je){return ce+je},ye=function(je){return de+je},_e=ye(0),Se=ve(0),Te=function(je){return Se+je},Pe=function(je){return _e+je};function Ie(je,nt){return je+","+nt}var ze=Te(0),De=function(je){je.x=Math.max(ze,je.x)},He=M.pathbar.edgeshape,Ve=M[T?"tiling":"marker"].pad,$e=function(je){return M.textposition.indexOf(je)!==-1},Oe=$e("top"),ke=$e("left"),Le=$e("right"),We=$e("bottom"),Ue=function(je,nt){var ot=je.x0,Ge=je.x1,ht=je.y0,pt=je.y1,wt=je.textBB,Dt=Oe||nt.isHeader&&!We?"start":We?"end":"middle",It=$e("right"),qt=$e("left")||nt.onPathbar?-1:It?1:0;if(nt.isHeader){if((ot+=(T?Ve:Ve.l)-w)>=(Ge-=(T?Ve:Ve.r)-w)){var en=(ot+Ge)/2;ot=en,Ge=en}var Gt;We?ht<(Gt=pt-(T?Ve:Ve.b))&&Gt"?(It.x-=pt,qt.x-=pt,en.x-=pt,Gt.x-=pt):He==="/"?(en.x-=pt,Gt.x-=pt,wt.x-=pt/2,Dt.x-=pt/2):He==="\\"?(It.x-=pt,qt.x-=pt,wt.x-=pt/2,Dt.x-=pt/2):He==="<"&&(wt.x-=pt,Dt.x-=pt),De(It),De(Gt),De(wt),De(qt),De(en),De(Dt),"M"+Ie(It.x,It.y)+"L"+Ie(qt.x,qt.y)+"L"+Ie(Dt.x,Dt.y)+"L"+Ie(en.x,en.y)+"L"+Ie(Gt.x,Gt.y)+"L"+Ie(wt.x,wt.y)+"Z"},toMoveInsideSlice:Ue,makeUpdateSliceInterpolator:Xe,makeUpdateTextInterpolator:tt,handleSlicesExit:Ee,hasTransition:z,strTransform:Ne}):D.remove()}},66192:function(d,l,n){var c=n(33428),b=n(76308),i=n(3400),O=n(78176),w=n(82744).resizeText,y=n(60404);function p(a,u,h,m,v){var _,S,A=(v||{}).hovered,x=u.data.data,R=x.i,M=x.color,T=O.isHierarchyRoot(u),E=1;if(A)_=h._hovered.marker.line.color,S=h._hovered.marker.line.width;else if(T&&M===h.root.color)E=100,_="rgba(0,0,0,0)",S=0;else if(_=i.castOption(h,R,"marker.line.color")||b.defaultLine,S=i.castOption(h,R,"marker.line.width")||0,!h._hasColorscale&&!u.onPathbar){var C=h.marker.depthfade;if(C){var L,D=b.combine(b.addOpacity(h._backgroundColor,.75),M);if(C===!0){var k=O.getMaxDepth(h);L=isFinite(k)?O.isLeaf(u)?0:h._maxVisibleLayers-(u.data.depth-h._entryDepth):u.data.height+1}else L=u.data.depth-h._entryDepth,h._atRootLevel||L++;if(L>0)for(var I=0;I0){var C,L,D,k,I,z=y.xa,$=y.ya;A.orientation==="h"?(I=p,C="y",D=$,L="x",k=z):(I=a,C="x",D=z,L="y",k=$);var Q=S[y.index];if(I>=Q.span[0]&&I<=Q.span[1]){var j=b.extendFlat({},y),U=k.c2p(I,!0),X=w.getKdeValue(Q,A,I),te=w.getPositionOnKdePath(Q,A,U),W=D._offset,K=D._length;j[C+"0"]=te[0],j[C+"1"]=te[1],j[L+"0"]=j[L+"1"]=U,j[L+"Label"]=L+": "+i.hoverLabelText(k,I,A[L+"hoverformat"])+", "+S[0].t.labels.kde+" "+X.toFixed(3);for(var oe=0,q=0;q")),v.color=function($,Q){var j=$[Q.dir].marker,U=j.color,X=j.line.color,te=j.line.width;return b(U)?U:b(X)&&te?X:void 0}(S,M),[v]}function z($){return c(R,$,S[x+"hoverformat"])}}},95952:function(d,l,n){d.exports={attributes:n(65776),layoutAttributes:n(91352),supplyDefaults:n(24224).supplyDefaults,crossTraceDefaults:n(24224).crossTraceDefaults,supplyLayoutDefaults:n(59464),calc:n(73540),crossTraceCalc:n(50152),plot:n(64488),style:n(12252).style,hoverPoints:n(94196),eventData:n(53256),selectPoints:n(45784),moduleType:"trace",name:"waterfall",basePlotModule:n(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},91352:function(d){d.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},59464:function(d,l,n){var c=n(3400),b=n(91352);d.exports=function(i,O,w){var y=!1;function p(h,m){return c.coerce(i,O,b,h,m)}for(var a=0;a0&&(X+=L?"M"+j[0]+","+U[1]+"V"+U[0]:"M"+j[1]+","+U[0]+"H"+j[0]),D!=="between"&&(z.isSum||$ path").each(function(A){if(!A.isBlank){var x=S[A.dir].marker;c.select(this).call(i.fill,x.color).call(i.stroke,x.line.color).call(b.dashLine,x.line.dash,x.line.width).style("opacity",S.selectedpoints&&!A.selected?O:1)}}),p(_,S,a),_.selectAll(".lines").each(function(){var A=S.connector.line;b.lineGroupStyle(c.select(this).selectAll("path"),A.width,A.color,A.dash)})})}}},84224:function(d,l,n){var c=n(54460),b=n(3400),i=n(73060),O=n(60468).W,w=n(39032).BADNUM;l.moduleType="transform",l.name="aggregate";var y=l.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},p=y.aggregations;function a(v,_,S,A){if(A.enabled){for(var x=A.target,R=b.nestedProperty(_,x),M=R.get(),T=function(L,D){var k=L.func,I=D.d2c,z=D.c2d;switch(k){case"count":return u;case"first":return h;case"last":return m;case"sum":return function($,Q){for(var j=0,U=0;UU&&(U=K,X=W)}}return U?z(X):w};case"rms":return function($,Q){for(var j=0,U=0,X=0;X":return function(ee){return Y(ee)>oe};case">=":return function(ee){return Y(ee)>=oe};case"[]":return function(ee){var me=Y(ee);return me>=oe[0]&&me<=oe[1]};case"()":return function(ee){var me=Y(ee);return me>oe[0]&&me=oe[0]&&meoe[0]&&me<=oe[1]};case"][":return function(ee){var me=Y(ee);return me<=oe[0]||me>=oe[1]};case")(":return function(ee){var me=Y(ee);return meoe[1]};case"](":return function(ee){var me=Y(ee);return me<=oe[0]||me>oe[1]};case")[":return function(ee){var me=Y(ee);return me=oe[1]};case"{}":return function(ee){return oe.indexOf(Y(ee))!==-1};case"}{":return function(ee){return oe.indexOf(Y(ee))===-1}}}(m,i.getDataToCoordFunc(u,h,_,v),A),L={},D={},k=0;R?(T=function(Q){L[Q.astr]=c.extendDeep([],Q.get()),Q.set(new Array(S))},E=function(Q,j){var U=L[Q.astr][j];Q.get()[j]=U}):(T=function(Q){L[Q.astr]=c.extendDeep([],Q.get()),Q.set([])},E=function(Q,j){var U=L[Q.astr][j];Q.get().push(U)}),$(T);for(var I=O(h.transforms,m),z=0;z1?"%{group} (%{trace})":"%{group}");var v=y.styles,_=h.styles=[];if(v)for(u=0;uR)throw new RangeError('The value "'+Ee+'" is invalid for option "size"');var Ne=new Uint8Array(Ee);return Object.setPrototypeOf(Ne,T.prototype),Ne}function T(Ee,Ne,je){if(typeof Ee=="number"){if(typeof Ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return L(Ee)}return E(Ee,Ne,je)}function E(Ee,Ne,je){if(typeof Ee=="string")return function(Ge,ht){if(typeof ht=="string"&&ht!==""||(ht="utf8"),!T.isEncoding(ht))throw new TypeError("Unknown encoding: "+ht);var pt=0|z(Ge,ht),wt=M(pt),Dt=wt.write(Ge,ht);return Dt!==pt&&(wt=wt.slice(0,Dt)),wt}(Ee,Ne);if(ArrayBuffer.isView(Ee))return function(Ge){if(We(Ge,Uint8Array)){var ht=new Uint8Array(Ge);return k(ht.buffer,ht.byteOffset,ht.byteLength)}return D(Ge)}(Ee);if(Ee==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_(Ee));if(We(Ee,ArrayBuffer)||Ee&&We(Ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(We(Ee,SharedArrayBuffer)||Ee&&We(Ee.buffer,SharedArrayBuffer)))return k(Ee,Ne,je);if(typeof Ee=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var nt=Ee.valueOf&&Ee.valueOf();if(nt!=null&&nt!==Ee)return T.from(nt,Ne,je);var ot=function(Ge){if(T.isBuffer(Ge)){var ht=0|I(Ge.length),pt=M(ht);return pt.length===0||Ge.copy(pt,0,0,ht),pt}return Ge.length!==void 0?typeof Ge.length!="number"||Ue(Ge.length)?M(0):D(Ge):Ge.type==="Buffer"&&Array.isArray(Ge.data)?D(Ge.data):void 0}(Ee);if(ot)return ot;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ee[Symbol.toPrimitive]=="function")return T.from(Ee[Symbol.toPrimitive]("string"),Ne,je);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_(Ee))}function C(Ee){if(typeof Ee!="number")throw new TypeError('"size" argument must be of type number');if(Ee<0)throw new RangeError('The value "'+Ee+'" is invalid for option "size"')}function L(Ee){return C(Ee),M(Ee<0?0:0|I(Ee))}function D(Ee){for(var Ne=Ee.length<0?0:0|I(Ee.length),je=M(Ne),nt=0;nt=R)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+R.toString(16)+" bytes");return 0|Ee}function z(Ee,Ne){if(T.isBuffer(Ee))return Ee.length;if(ArrayBuffer.isView(Ee)||We(Ee,ArrayBuffer))return Ee.byteLength;if(typeof Ee!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+_(Ee));var je=Ee.length,nt=arguments.length>2&&arguments[2]===!0;if(!nt&&je===0)return 0;for(var ot=!1;;)switch(Ne){case"ascii":case"latin1":case"binary":return je;case"utf8":case"utf-8":return Oe(Ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*je;case"hex":return je>>>1;case"base64":return ke(Ee).length;default:if(ot)return nt?-1:Oe(Ee).length;Ne=(""+Ne).toLowerCase(),ot=!0}}function $(Ee,Ne,je){var nt=!1;if((Ne===void 0||Ne<0)&&(Ne=0),Ne>this.length||((je===void 0||je>this.length)&&(je=this.length),je<=0)||(je>>>=0)<=(Ne>>>=0))return"";for(Ee||(Ee="utf8");;)switch(Ee){case"hex":return se(this,Ne,je);case"utf8":case"utf-8":return Y(this,Ne,je);case"ascii":return me(this,Ne,je);case"latin1":case"binary":return he(this,Ne,je);case"base64":return q(this,Ne,je);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,Ne,je);default:if(nt)throw new TypeError("Unknown encoding: "+Ee);Ee=(Ee+"").toLowerCase(),nt=!0}}function Q(Ee,Ne,je){var nt=Ee[Ne];Ee[Ne]=Ee[je],Ee[je]=nt}function j(Ee,Ne,je,nt,ot){if(Ee.length===0)return-1;if(typeof je=="string"?(nt=je,je=0):je>2147483647?je=2147483647:je<-2147483648&&(je=-2147483648),Ue(je=+je)&&(je=ot?0:Ee.length-1),je<0&&(je=Ee.length+je),je>=Ee.length){if(ot)return-1;je=Ee.length-1}else if(je<0){if(!ot)return-1;je=0}if(typeof Ne=="string"&&(Ne=T.from(Ne,nt)),T.isBuffer(Ne))return Ne.length===0?-1:U(Ee,Ne,je,nt,ot);if(typeof Ne=="number")return Ne&=255,typeof Uint8Array.prototype.indexOf=="function"?ot?Uint8Array.prototype.indexOf.call(Ee,Ne,je):Uint8Array.prototype.lastIndexOf.call(Ee,Ne,je):U(Ee,[Ne],je,nt,ot);throw new TypeError("val must be string, number or Buffer")}function U(Ee,Ne,je,nt,ot){var Ge,ht=1,pt=Ee.length,wt=Ne.length;if(nt!==void 0&&((nt=String(nt).toLowerCase())==="ucs2"||nt==="ucs-2"||nt==="utf16le"||nt==="utf-16le")){if(Ee.length<2||Ne.length<2)return-1;ht=2,pt/=2,wt/=2,je/=2}function Dt(Gt,Ct){return ht===1?Gt[Ct]:Gt.readUInt16BE(Ct*ht)}if(ot){var It=-1;for(Ge=je;Gept&&(je=pt-wt),Ge=je;Ge>=0;Ge--){for(var qt=!0,en=0;enot&&(nt=ot):nt=ot;var Ge,ht=Ne.length;for(nt>ht/2&&(nt=ht/2),Ge=0;Ge>8,wt=ht%256,Dt.push(wt),Dt.push(pt);return Dt}(Ne,Ee.length-je),Ee,je,nt)}function q(Ee,Ne,je){return Ne===0&&je===Ee.length?S.fromByteArray(Ee):S.fromByteArray(Ee.slice(Ne,je))}function Y(Ee,Ne,je){je=Math.min(Ee.length,je);for(var nt=[],ot=Ne;ot239?4:Ge>223?3:Ge>191?2:1;if(ot+pt<=je){var wt=void 0,Dt=void 0,It=void 0,qt=void 0;switch(pt){case 1:Ge<128&&(ht=Ge);break;case 2:(192&(wt=Ee[ot+1]))==128&&(qt=(31&Ge)<<6|63&wt)>127&&(ht=qt);break;case 3:wt=Ee[ot+1],Dt=Ee[ot+2],(192&wt)==128&&(192&Dt)==128&&(qt=(15&Ge)<<12|(63&wt)<<6|63&Dt)>2047&&(qt<55296||qt>57343)&&(ht=qt);break;case 4:wt=Ee[ot+1],Dt=Ee[ot+2],It=Ee[ot+3],(192&wt)==128&&(192&Dt)==128&&(192&It)==128&&(qt=(15&Ge)<<18|(63&wt)<<12|(63&Dt)<<6|63&It)>65535&&qt<1114112&&(ht=qt)}}ht===null?(ht=65533,pt=1):ht>65535&&(ht-=65536,nt.push(ht>>>10&1023|55296),ht=56320|1023&ht),nt.push(ht),ot+=pt}return function(en){var Gt=en.length;if(Gt<=ee)return String.fromCharCode.apply(String,en);for(var Ct="",_t=0;_t"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}}),Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}}),T.poolSize=8192,T.from=function(Ee,Ne,je){return E(Ee,Ne,je)},Object.setPrototypeOf(T.prototype,Uint8Array.prototype),Object.setPrototypeOf(T,Uint8Array),T.alloc=function(Ee,Ne,je){return function(nt,ot,Ge){return C(nt),nt<=0?M(nt):ot!==void 0?typeof Ge=="string"?M(nt).fill(ot,Ge):M(nt).fill(ot):M(nt)}(Ee,Ne,je)},T.allocUnsafe=function(Ee){return L(Ee)},T.allocUnsafeSlow=function(Ee){return L(Ee)},T.isBuffer=function(Ee){return Ee!=null&&Ee._isBuffer===!0&&Ee!==T.prototype},T.compare=function(Ee,Ne){if(We(Ee,Uint8Array)&&(Ee=T.from(Ee,Ee.offset,Ee.byteLength)),We(Ne,Uint8Array)&&(Ne=T.from(Ne,Ne.offset,Ne.byteLength)),!T.isBuffer(Ee)||!T.isBuffer(Ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ee===Ne)return 0;for(var je=Ee.length,nt=Ne.length,ot=0,Ge=Math.min(je,nt);otnt.length?(T.isBuffer(Ge)||(Ge=T.from(Ge)),Ge.copy(nt,ot)):Uint8Array.prototype.set.call(nt,Ge,ot);else{if(!T.isBuffer(Ge))throw new TypeError('"list" argument must be an Array of Buffers');Ge.copy(nt,ot)}ot+=Ge.length}return nt},T.byteLength=z,T.prototype._isBuffer=!0,T.prototype.swap16=function(){var Ee=this.length;if(Ee%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ne=0;NeNe&&(Ee+=" ... "),""},x&&(T.prototype[x]=T.prototype.inspect),T.prototype.compare=function(Ee,Ne,je,nt,ot){if(We(Ee,Uint8Array)&&(Ee=T.from(Ee,Ee.offset,Ee.byteLength)),!T.isBuffer(Ee))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+_(Ee));if(Ne===void 0&&(Ne=0),je===void 0&&(je=Ee?Ee.length:0),nt===void 0&&(nt=0),ot===void 0&&(ot=this.length),Ne<0||je>Ee.length||nt<0||ot>this.length)throw new RangeError("out of range index");if(nt>=ot&&Ne>=je)return 0;if(nt>=ot)return-1;if(Ne>=je)return 1;if(this===Ee)return 0;for(var Ge=(ot>>>=0)-(nt>>>=0),ht=(je>>>=0)-(Ne>>>=0),pt=Math.min(Ge,ht),wt=this.slice(nt,ot),Dt=Ee.slice(Ne,je),It=0;It>>=0,isFinite(je)?(je>>>=0,nt===void 0&&(nt="utf8")):(nt=je,je=void 0)}var ot=this.length-Ne;if((je===void 0||je>ot)&&(je=ot),Ee.length>0&&(je<0||Ne<0)||Ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");nt||(nt="utf8");for(var Ge=!1;;)switch(nt){case"hex":return X(this,Ee,Ne,je);case"utf8":case"utf-8":return te(this,Ee,Ne,je);case"ascii":case"latin1":case"binary":return W(this,Ee,Ne,je);case"base64":return K(this,Ee,Ne,je);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,Ee,Ne,je);default:if(Ge)throw new TypeError("Unknown encoding: "+nt);nt=(""+nt).toLowerCase(),Ge=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;function me(Ee,Ne,je){var nt="";je=Math.min(Ee.length,je);for(var ot=Ne;otnt)&&(je=nt);for(var ot="",Ge=Ne;Geje)throw new RangeError("Trying to access beyond buffer length")}function de(Ee,Ne,je,nt,ot,Ge){if(!T.isBuffer(Ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ne>ot||NeEe.length)throw new RangeError("Index out of range")}function ve(Ee,Ne,je,nt,ot){De(Ne,nt,ot,Ee,je,7);var Ge=Number(Ne&BigInt(4294967295));Ee[je++]=Ge,Ge>>=8,Ee[je++]=Ge,Ge>>=8,Ee[je++]=Ge,Ge>>=8,Ee[je++]=Ge;var ht=Number(Ne>>BigInt(32)&BigInt(4294967295));return Ee[je++]=ht,ht>>=8,Ee[je++]=ht,ht>>=8,Ee[je++]=ht,ht>>=8,Ee[je++]=ht,je}function ye(Ee,Ne,je,nt,ot){De(Ne,nt,ot,Ee,je,7);var Ge=Number(Ne&BigInt(4294967295));Ee[je+7]=Ge,Ge>>=8,Ee[je+6]=Ge,Ge>>=8,Ee[je+5]=Ge,Ge>>=8,Ee[je+4]=Ge;var ht=Number(Ne>>BigInt(32)&BigInt(4294967295));return Ee[je+3]=ht,ht>>=8,Ee[je+2]=ht,ht>>=8,Ee[je+1]=ht,ht>>=8,Ee[je]=ht,je+8}function _e(Ee,Ne,je,nt,ot,Ge){if(je+nt>Ee.length)throw new RangeError("Index out of range");if(je<0)throw new RangeError("Index out of range")}function Se(Ee,Ne,je,nt,ot){return Ne=+Ne,je>>>=0,ot||_e(Ee,0,je,4),A.write(Ee,Ne,je,nt,23,4),je+4}function Te(Ee,Ne,je,nt,ot){return Ne=+Ne,je>>>=0,ot||_e(Ee,0,je,8),A.write(Ee,Ne,je,nt,52,8),je+8}T.prototype.slice=function(Ee,Ne){var je=this.length;(Ee=~~Ee)<0?(Ee+=je)<0&&(Ee=0):Ee>je&&(Ee=je),(Ne=Ne===void 0?je:~~Ne)<0?(Ne+=je)<0&&(Ne=0):Ne>je&&(Ne=je),Ne>>=0,Ne>>>=0,je||ce(Ee,Ne,this.length);for(var nt=this[Ee],ot=1,Ge=0;++Ge>>=0,Ne>>>=0,je||ce(Ee,Ne,this.length);for(var nt=this[Ee+--Ne],ot=1;Ne>0&&(ot*=256);)nt+=this[Ee+--Ne]*ot;return nt},T.prototype.readUint8=T.prototype.readUInt8=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,1,this.length),this[Ee]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,2,this.length),this[Ee]|this[Ee+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,2,this.length),this[Ee]<<8|this[Ee+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,4,this.length),(this[Ee]|this[Ee+1]<<8|this[Ee+2]<<16)+16777216*this[Ee+3]},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,4,this.length),16777216*this[Ee]+(this[Ee+1]<<16|this[Ee+2]<<8|this[Ee+3])},T.prototype.readBigUInt64LE=Xe(function(Ee){He(Ee>>>=0,"offset");var Ne=this[Ee],je=this[Ee+7];Ne!==void 0&&je!==void 0||Ve(Ee,this.length-8);var nt=Ne+this[++Ee]*Math.pow(2,8)+this[++Ee]*Math.pow(2,16)+this[++Ee]*Math.pow(2,24),ot=this[++Ee]+this[++Ee]*Math.pow(2,8)+this[++Ee]*Math.pow(2,16)+je*Math.pow(2,24);return BigInt(nt)+(BigInt(ot)<>>=0,"offset");var Ne=this[Ee],je=this[Ee+7];Ne!==void 0&&je!==void 0||Ve(Ee,this.length-8);var nt=Ne*Math.pow(2,24)+this[++Ee]*Math.pow(2,16)+this[++Ee]*Math.pow(2,8)+this[++Ee],ot=this[++Ee]*Math.pow(2,24)+this[++Ee]*Math.pow(2,16)+this[++Ee]*Math.pow(2,8)+je;return(BigInt(nt)<>>=0,Ne>>>=0,je||ce(Ee,Ne,this.length);for(var nt=this[Ee],ot=1,Ge=0;++Ge=(ot*=128)&&(nt-=Math.pow(2,8*Ne)),nt},T.prototype.readIntBE=function(Ee,Ne,je){Ee>>>=0,Ne>>>=0,je||ce(Ee,Ne,this.length);for(var nt=Ne,ot=1,Ge=this[Ee+--nt];nt>0&&(ot*=256);)Ge+=this[Ee+--nt]*ot;return Ge>=(ot*=128)&&(Ge-=Math.pow(2,8*Ne)),Ge},T.prototype.readInt8=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,1,this.length),128&this[Ee]?-1*(255-this[Ee]+1):this[Ee]},T.prototype.readInt16LE=function(Ee,Ne){Ee>>>=0,Ne||ce(Ee,2,this.length);var je=this[Ee]|this[Ee+1]<<8;return 32768&je?4294901760|je:je},T.prototype.readInt16BE=function(Ee,Ne){Ee>>>=0,Ne||ce(Ee,2,this.length);var je=this[Ee+1]|this[Ee]<<8;return 32768&je?4294901760|je:je},T.prototype.readInt32LE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,4,this.length),this[Ee]|this[Ee+1]<<8|this[Ee+2]<<16|this[Ee+3]<<24},T.prototype.readInt32BE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,4,this.length),this[Ee]<<24|this[Ee+1]<<16|this[Ee+2]<<8|this[Ee+3]},T.prototype.readBigInt64LE=Xe(function(Ee){He(Ee>>>=0,"offset");var Ne=this[Ee],je=this[Ee+7];Ne!==void 0&&je!==void 0||Ve(Ee,this.length-8);var nt=this[Ee+4]+this[Ee+5]*Math.pow(2,8)+this[Ee+6]*Math.pow(2,16)+(je<<24);return(BigInt(nt)<>>=0,"offset");var Ne=this[Ee],je=this[Ee+7];Ne!==void 0&&je!==void 0||Ve(Ee,this.length-8);var nt=(Ne<<24)+this[++Ee]*Math.pow(2,16)+this[++Ee]*Math.pow(2,8)+this[++Ee];return(BigInt(nt)<>>=0,Ne||ce(Ee,4,this.length),A.read(this,Ee,!0,23,4)},T.prototype.readFloatBE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,4,this.length),A.read(this,Ee,!1,23,4)},T.prototype.readDoubleLE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,8,this.length),A.read(this,Ee,!0,52,8)},T.prototype.readDoubleBE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,8,this.length),A.read(this,Ee,!1,52,8)},T.prototype.writeUintLE=T.prototype.writeUIntLE=function(Ee,Ne,je,nt){Ee=+Ee,Ne>>>=0,je>>>=0,nt||de(this,Ee,Ne,je,Math.pow(2,8*je)-1,0);var ot=1,Ge=0;for(this[Ne]=255&Ee;++Ge>>=0,je>>>=0,nt||de(this,Ee,Ne,je,Math.pow(2,8*je)-1,0);var ot=je-1,Ge=1;for(this[Ne+ot]=255&Ee;--ot>=0&&(Ge*=256);)this[Ne+ot]=Ee/Ge&255;return Ne+je},T.prototype.writeUint8=T.prototype.writeUInt8=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,1,255,0),this[Ne]=255&Ee,Ne+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,2,65535,0),this[Ne]=255&Ee,this[Ne+1]=Ee>>>8,Ne+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,2,65535,0),this[Ne]=Ee>>>8,this[Ne+1]=255&Ee,Ne+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,4,4294967295,0),this[Ne+3]=Ee>>>24,this[Ne+2]=Ee>>>16,this[Ne+1]=Ee>>>8,this[Ne]=255&Ee,Ne+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,4,4294967295,0),this[Ne]=Ee>>>24,this[Ne+1]=Ee>>>16,this[Ne+2]=Ee>>>8,this[Ne+3]=255&Ee,Ne+4},T.prototype.writeBigUInt64LE=Xe(function(Ee){return ve(this,Ee,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=Xe(function(Ee){return ye(this,Ee,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(Ee,Ne,je,nt){if(Ee=+Ee,Ne>>>=0,!nt){var ot=Math.pow(2,8*je-1);de(this,Ee,Ne,je,ot-1,-ot)}var Ge=0,ht=1,pt=0;for(this[Ne]=255&Ee;++Ge>0)-pt&255;return Ne+je},T.prototype.writeIntBE=function(Ee,Ne,je,nt){if(Ee=+Ee,Ne>>>=0,!nt){var ot=Math.pow(2,8*je-1);de(this,Ee,Ne,je,ot-1,-ot)}var Ge=je-1,ht=1,pt=0;for(this[Ne+Ge]=255&Ee;--Ge>=0&&(ht*=256);)Ee<0&&pt===0&&this[Ne+Ge+1]!==0&&(pt=1),this[Ne+Ge]=(Ee/ht>>0)-pt&255;return Ne+je},T.prototype.writeInt8=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,1,127,-128),Ee<0&&(Ee=255+Ee+1),this[Ne]=255&Ee,Ne+1},T.prototype.writeInt16LE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,2,32767,-32768),this[Ne]=255&Ee,this[Ne+1]=Ee>>>8,Ne+2},T.prototype.writeInt16BE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,2,32767,-32768),this[Ne]=Ee>>>8,this[Ne+1]=255&Ee,Ne+2},T.prototype.writeInt32LE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,4,2147483647,-2147483648),this[Ne]=255&Ee,this[Ne+1]=Ee>>>8,this[Ne+2]=Ee>>>16,this[Ne+3]=Ee>>>24,Ne+4},T.prototype.writeInt32BE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,4,2147483647,-2147483648),Ee<0&&(Ee=4294967295+Ee+1),this[Ne]=Ee>>>24,this[Ne+1]=Ee>>>16,this[Ne+2]=Ee>>>8,this[Ne+3]=255&Ee,Ne+4},T.prototype.writeBigInt64LE=Xe(function(Ee){return ve(this,Ee,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=Xe(function(Ee){return ye(this,Ee,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeFloatLE=function(Ee,Ne,je){return Se(this,Ee,Ne,!0,je)},T.prototype.writeFloatBE=function(Ee,Ne,je){return Se(this,Ee,Ne,!1,je)},T.prototype.writeDoubleLE=function(Ee,Ne,je){return Te(this,Ee,Ne,!0,je)},T.prototype.writeDoubleBE=function(Ee,Ne,je){return Te(this,Ee,Ne,!1,je)},T.prototype.copy=function(Ee,Ne,je,nt){if(!T.isBuffer(Ee))throw new TypeError("argument should be a Buffer");if(je||(je=0),nt||nt===0||(nt=this.length),Ne>=Ee.length&&(Ne=Ee.length),Ne||(Ne=0),nt>0&&nt=this.length)throw new RangeError("Index out of range");if(nt<0)throw new RangeError("sourceEnd out of bounds");nt>this.length&&(nt=this.length),Ee.length-Ne>>=0,je=je===void 0?this.length:je>>>0,Ee||(Ee=0),typeof Ee=="number")for(Ge=Ne;Ge"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var It,qt=v(ht);if(pt){var en=v(this).constructor;It=Reflect.construct(qt,arguments,en)}else It=qt.apply(this,arguments);return function(Gt,Ct){if(Ct&&(_(Ct)==="object"||typeof Ct=="function"))return Ct;if(Ct!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m(Gt)}(this,It)});function Dt(){var It;return function(qt,en){if(!(qt instanceof en))throw new TypeError("Cannot call a class as a function")}(this,Dt),It=wt.call(this),Object.defineProperty(m(It),"message",{value:Ne.apply(m(It),arguments),writable:!0,configurable:!0}),It.name="".concat(It.name," [").concat(Ee,"]"),It.stack,delete It.name,It}return ot=Dt,(Ge=[{key:"code",get:function(){return Ee},set:function(It){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:It,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Ee,"]: ").concat(this.message)}}])&&u(ot.prototype,Ge),Object.defineProperty(ot,"prototype",{writable:!1}),Dt}(je)}function ze(Ee){for(var Ne="",je=Ee.length,nt=Ee[0]==="-"?1:0;je>=nt+4;je-=3)Ne="_".concat(Ee.slice(je-3,je)).concat(Ne);return"".concat(Ee.slice(0,je)).concat(Ne)}function De(Ee,Ne,je,nt,ot,Ge){if(Ee>je||Ee3?Ne===0||Ne===BigInt(0)?">= 0".concat(pt," and < 2").concat(pt," ** ").concat(8*(Ge+1)).concat(pt):">= -(2".concat(pt," ** ").concat(8*(Ge+1)-1).concat(pt,") and < 2 ** ")+"".concat(8*(Ge+1)-1).concat(pt):">= ".concat(Ne).concat(pt," and <= ").concat(je).concat(pt),new Pe.ERR_OUT_OF_RANGE("value",ht,Ee)}(function(wt,Dt,It){He(Dt,"offset"),wt[Dt]!==void 0&&wt[Dt+It]!==void 0||Ve(Dt,wt.length-(It+1))})(nt,ot,Ge)}function He(Ee,Ne){if(typeof Ee!="number")throw new Pe.ERR_INVALID_ARG_TYPE(Ne,"number",Ee)}function Ve(Ee,Ne,je){throw Math.floor(Ee)!==Ee?(He(Ee,je),new Pe.ERR_OUT_OF_RANGE(je||"offset","an integer",Ee)):Ne<0?new Pe.ERR_BUFFER_OUT_OF_BOUNDS:new Pe.ERR_OUT_OF_RANGE(je||"offset",">= ".concat(je?1:0," and <= ").concat(Ne),Ee)}Ie("ERR_BUFFER_OUT_OF_BOUNDS",function(Ee){return Ee?"".concat(Ee," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),Ie("ERR_INVALID_ARG_TYPE",function(Ee,Ne){return'The "'.concat(Ee,'" argument must be of type number. Received type ').concat(_(Ne))},TypeError),Ie("ERR_OUT_OF_RANGE",function(Ee,Ne,je){var nt='The value of "'.concat(Ee,'" is out of range.'),ot=je;return Number.isInteger(je)&&Math.abs(je)>Math.pow(2,32)?ot=ze(String(je)):typeof je=="bigint"&&(ot=String(je),(je>Math.pow(BigInt(2),BigInt(32))||je<-Math.pow(BigInt(2),BigInt(32)))&&(ot=ze(ot)),ot+="n"),nt+" It must be ".concat(Ne,". Received ").concat(ot)},RangeError);var $e=/[^+/0-9A-Za-z-_]/g;function Oe(Ee,Ne){var je;Ne=Ne||1/0;for(var nt=Ee.length,ot=null,Ge=[],ht=0;ht55295&&je<57344){if(!ot){if(je>56319){(Ne-=3)>-1&&Ge.push(239,191,189);continue}if(ht+1===nt){(Ne-=3)>-1&&Ge.push(239,191,189);continue}ot=je;continue}if(je<56320){(Ne-=3)>-1&&Ge.push(239,191,189),ot=je;continue}je=65536+(ot-55296<<10|je-56320)}else ot&&(Ne-=3)>-1&&Ge.push(239,191,189);if(ot=null,je<128){if((Ne-=1)<0)break;Ge.push(je)}else if(je<2048){if((Ne-=2)<0)break;Ge.push(je>>6|192,63&je|128)}else if(je<65536){if((Ne-=3)<0)break;Ge.push(je>>12|224,je>>6&63|128,63&je|128)}else{if(!(je<1114112))throw new Error("Invalid code point");if((Ne-=4)<0)break;Ge.push(je>>18|240,je>>12&63|128,je>>6&63|128,63&je|128)}}return Ge}function ke(Ee){return S.toByteArray(function(Ne){if((Ne=(Ne=Ne.split("=")[0]).trim().replace($e,"")).length<2)return"";for(;Ne.length%4!=0;)Ne+="=";return Ne}(Ee))}function Le(Ee,Ne,je,nt){var ot;for(ot=0;ot=Ne.length||ot>=Ee.length);++ot)Ne[ot+je]=Ee[ot];return ot}function We(Ee,Ne){return Ee instanceof Ne||Ee!=null&&Ee.constructor!=null&&Ee.constructor.name!=null&&Ee.constructor.name===Ne.name}function Ue(Ee){return Ee!=Ee}var Ze=function(){for(var Ee="0123456789abcdef",Ne=new Array(256),je=0;je<16;++je)for(var nt=16*je,ot=0;ot<16;++ot)Ne[nt+ot]=Ee[je]+Ee[ot];return Ne}();function Xe(Ee){return typeof BigInt>"u"?tt:Ee}function tt(){throw new Error("BigInt not supported")}},2321:function(y){y.exports=h,y.exports.isMobile=h,y.exports.default=h;var p=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/CrOS/,u=/android|ipad|playbook|silk/i;function h(m){m||(m={});var v=m.ua;if(v||typeof navigator>"u"||(v=navigator.userAgent),v&&v.headers&&typeof v.headers["user-agent"]=="string"&&(v=v.headers["user-agent"]),typeof v!="string")return!1;var _=p.test(v)&&!a.test(v)||!!m.tablet&&u.test(v);return!_&&m.tablet&&m.featureDetect&&navigator&&navigator.maxTouchPoints>1&&v.indexOf("Macintosh")!==-1&&v.indexOf("Safari")!==-1&&(_=!0),_}},3910:function(y,p){p.byteLength=function(A){var x=_(A),R=x[0],M=x[1];return 3*(R+M)/4-M},p.toByteArray=function(A){var x,R,M=_(A),T=M[0],E=M[1],C=new h(function(k,I,z){return 3*(I+z)/4-z}(0,T,E)),L=0,D=E>0?T-4:T;for(R=0;R>16&255,C[L++]=x>>8&255,C[L++]=255&x;return E===2&&(x=u[A.charCodeAt(R)]<<2|u[A.charCodeAt(R+1)]>>4,C[L++]=255&x),E===1&&(x=u[A.charCodeAt(R)]<<10|u[A.charCodeAt(R+1)]<<4|u[A.charCodeAt(R+2)]>>2,C[L++]=x>>8&255,C[L++]=255&x),C},p.fromByteArray=function(A){for(var x,R=A.length,M=R%3,T=[],E=16383,C=0,L=R-M;CL?L:C+E));return M===1?(x=A[R-1],T.push(a[x>>2]+a[x<<4&63]+"==")):M===2&&(x=(A[R-2]<<8)+A[R-1],T.push(a[x>>10]+a[x>>4&63]+a[x<<2&63]+"=")),T.join("")};for(var a=[],u=[],h=typeof Uint8Array<"u"?Uint8Array:Array,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=0;v<64;++v)a[v]=m[v],u[m.charCodeAt(v)]=v;function _(A){var x=A.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=A.indexOf("=");return R===-1&&(R=x),[R,R===x?0:4-R%4]}function S(A,x,R){for(var M,T,E=[],C=x;C>18&63]+a[T>>12&63]+a[T>>6&63]+a[63&T]);return E.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},3187:function(y,p){p.read=function(a,u,h,m,v){var _,S,A=8*v-m-1,x=(1<>1,M=-7,T=h?v-1:0,E=h?-1:1,C=a[u+T];for(T+=E,_=C&(1<<-M)-1,C>>=-M,M+=A;M>0;_=256*_+a[u+T],T+=E,M-=8);for(S=_&(1<<-M)-1,_>>=-M,M+=m;M>0;S=256*S+a[u+T],T+=E,M-=8);if(_===0)_=1-R;else{if(_===x)return S?NaN:1/0*(C?-1:1);S+=Math.pow(2,m),_-=R}return(C?-1:1)*S*Math.pow(2,_-m)},p.write=function(a,u,h,m,v,_){var S,A,x,R=8*_-v-1,M=(1<>1,E=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=m?0:_-1,L=m?1:-1,D=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(A=isNaN(u)?1:0,S=M):(S=Math.floor(Math.log(u)/Math.LN2),u*(x=Math.pow(2,-S))<1&&(S--,x*=2),(u+=S+T>=1?E/x:E*Math.pow(2,1-T))*x>=2&&(S++,x/=2),S+T>=M?(A=0,S=M):S+T>=1?(A=(u*x-1)*Math.pow(2,v),S+=T):(A=u*Math.pow(2,T-1)*Math.pow(2,v),S=0));v>=8;a[h+C]=255&A,C+=L,A/=256,v-=8);for(S=S<0;a[h+C]=255&S,C+=L,S/=256,R-=8);a[h+C-L]|=128*D}},1152:function(y,p,a){y.exports=function(S){var A=(S=S||{}).eye||[0,0,1],x=S.center||[0,0,0],R=S.up||[0,1,0],M=S.distanceLimits||[0,1/0],T=S.mode||"turntable",E=u(),C=h(),L=m();return E.setDistanceLimits(M[0],M[1]),E.lookAt(0,A,x,R),C.setDistanceLimits(M[0],M[1]),C.lookAt(0,A,x,R),L.setDistanceLimits(M[0],M[1]),L.lookAt(0,A,x,R),new v({turntable:E,orbit:C,matrix:L},T)};var u=a(3440),h=a(7774),m=a(9298);function v(S,A){this._controllerNames=Object.keys(S),this._controllerList=this._controllerNames.map(function(x){return S[x]}),this._mode=A,this._active=S[A],this._active||(this._mode="turntable",this._active=S.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var _=v.prototype;_.flush=function(S){for(var A=this._controllerList,x=0;x"u"?a(5346):WeakMap,h=a(5827),m=a(2944),v=new u;y.exports=function(_){var S=v.get(_),A=S&&(S._triangleBuffer.handle||S._triangleBuffer.buffer);if(!A||!_.isBuffer(A)){var x=h(_,new Float32Array([-1,-1,-1,4,4,-1]));(S=m(_,[{buffer:x,type:_.FLOAT,size:2}]))._triangleBuffer=x,v.set(_,S)}S.bind(),_.drawArrays(_.TRIANGLES,0,3),S.unbind()}},8008:function(y,p,a){var u=a(4930);y.exports=function(h,m,v){m=typeof m=="number"?m:1,v=v||": ";var _=h.split(/\r?\n/),S=String(_.length+m-1).length;return _.map(function(A,x){var R=x+m,M=String(R).length;return u(R,S-M)+v+A}).join(` -`)}},2153:function(y,p,a){y.exports=function(m){var v=m.length;if(v===0)return[];if(v===1)return[0];for(var _=m[0].length,S=[m[0]],A=[0],x=1;x0?M=M.ushln(E):E<0&&(T=T.ushln(-E)),_(M,T)}},234:function(y,p,a){var u=a(3218);y.exports=function(h){return Array.isArray(h)&&h.length===2&&u(h[0])&&u(h[1])}},4275:function(y,p,a){var u=a(1928);y.exports=function(h){return h.cmp(new u(0))}},9958:function(y,p,a){var u=a(4275);y.exports=function(h){var m=h.length,v=h.words,_=0;if(m===1)_=v[0];else if(m===2)_=v[0]+67108864*v[1];else for(var S=0;S20?52:_+32}},3218:function(y,p,a){a(1928),y.exports=function(u){return u&&typeof u=="object"&&!!u.words}},5514:function(y,p,a){var u=a(1928),h=a(8362);y.exports=function(m){var v=h.exponent(m);return v<52?new u(m):new u(m*Math.pow(2,52-v)).ushln(v-52)}},8524:function(y,p,a){var u=a(5514),h=a(4275);y.exports=function(m,v){var _=h(m),S=h(v);if(_===0)return[u(0),u(1)];if(S===0)return[u(0),u(0)];S<0&&(m=m.neg(),v=v.neg());var A=m.gcd(v);return A.cmpn(1)?[m.div(A),v.div(A)]:[m,v]}},2813:function(y,p,a){var u=a(1928);y.exports=function(h){return new u(h)}},3962:function(y,p,a){var u=a(8524);y.exports=function(h,m){return u(h[0].mul(m[0]),h[1].mul(m[1]))}},4951:function(y,p,a){var u=a(4275);y.exports=function(h){return u(h[0])*u(h[1])}},4354:function(y,p,a){var u=a(8524);y.exports=function(h,m){return u(h[0].mul(m[1]).sub(h[1].mul(m[0])),h[1].mul(m[1]))}},7999:function(y,p,a){var u=a(9958),h=a(1112);y.exports=function(m){var v=m[0],_=m[1];if(v.cmpn(0)===0)return 0;var S=v.abs().divmod(_.abs()),A=S.div,x=u(A),R=S.mod,M=v.negative!==_.negative?-1:1;if(R.cmpn(0)===0)return M*x;if(x){var T=h(x)+4;return M*(x+(C=u(R.ushln(T).divRound(_)))*Math.pow(2,-T))}var E=_.bitLength()-R.bitLength()+53,C=u(R.ushln(E).divRound(_));return E<1023?M*C*Math.pow(2,-E):M*(C*=Math.pow(2,-1023))*Math.pow(2,1023-E)}},5070:function(y){function p(_,S,A,x,R){for(var M=R+1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)>=0?(M=T,R=T-1):x=T+1}return M}function a(_,S,A,x,R){for(var M=R+1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)>0?(M=T,R=T-1):x=T+1}return M}function u(_,S,A,x,R){for(var M=x-1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)<0?(M=T,x=T+1):R=T-1}return M}function h(_,S,A,x,R){for(var M=x-1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)<=0?(M=T,x=T+1):R=T-1}return M}function m(_,S,A,x,R){for(;x<=R;){var M=x+R>>>1,T=_[M],E=A!==void 0?A(T,S):T-S;if(E===0)return M;E<=0?x=M+1:R=M-1}return-1}function v(_,S,A,x,R,M){return typeof A=="function"?M(_,S,A,x===void 0?0:0|x,R===void 0?_.length-1:0|R):M(_,S,void 0,A===void 0?0:0|A,x===void 0?_.length-1:0|x)}y.exports={ge:function(_,S,A,x,R){return v(_,S,A,x,R,p)},gt:function(_,S,A,x,R){return v(_,S,A,x,R,a)},lt:function(_,S,A,x,R){return v(_,S,A,x,R,u)},le:function(_,S,A,x,R){return v(_,S,A,x,R,h)},eq:function(_,S,A,x,R){return v(_,S,A,x,R,m)}}},2288:function(y,p){function a(h){var m=32;return(h&=-h)&&m--,65535&h&&(m-=16),16711935&h&&(m-=8),252645135&h&&(m-=4),858993459&h&&(m-=2),1431655765&h&&(m-=1),m}p.INT_BITS=32,p.INT_MAX=2147483647,p.INT_MIN=-2147483648,p.sign=function(h){return(h>0)-(h<0)},p.abs=function(h){var m=h>>31;return(h^m)-m},p.min=function(h,m){return m^(h^m)&-(h65535)<<4,m|=v=((h>>>=m)>255)<<3,m|=v=((h>>>=v)>15)<<2,(m|=v=((h>>>=v)>3)<<1)|(h>>>=v)>>1},p.log10=function(h){return h>=1e9?9:h>=1e8?8:h>=1e7?7:h>=1e6?6:h>=1e5?5:h>=1e4?4:h>=1e3?3:h>=100?2:h>=10?1:0},p.popCount=function(h){return 16843009*((h=(858993459&(h-=h>>>1&1431655765))+(h>>>2&858993459))+(h>>>4)&252645135)>>>24},p.countTrailingZeros=a,p.nextPow2=function(h){return h+=h===0,--h,h|=h>>>1,h|=h>>>2,h|=h>>>4,1+((h|=h>>>8)|h>>>16)},p.prevPow2=function(h){return h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,(h|=h>>>16)-(h>>>1)},p.parity=function(h){return h^=h>>>16,h^=h>>>8,h^=h>>>4,27030>>>(h&=15)&1};var u=new Array(256);(function(h){for(var m=0;m<256;++m){var v=m,_=m,S=7;for(v>>>=1;v;v>>>=1)_<<=1,_|=1&v,--S;h[m]=_<>>8&255]<<16|u[h>>>16&255]<<8|u[h>>>24&255]},p.interleave2=function(h,m){return(h=1431655765&((h=858993459&((h=252645135&((h=16711935&((h&=65535)|h<<8))|h<<4))|h<<2))|h<<1))|(m=1431655765&((m=858993459&((m=252645135&((m=16711935&((m&=65535)|m<<8))|m<<4))|m<<2))|m<<1))<<1},p.deinterleave2=function(h,m){return(h=65535&((h=16711935&((h=252645135&((h=858993459&((h=h>>>m&1431655765)|h>>>1))|h>>>2))|h>>>4))|h>>>16))<<16>>16},p.interleave3=function(h,m,v){return h=1227133513&((h=3272356035&((h=251719695&((h=4278190335&((h&=1023)|h<<16))|h<<8))|h<<4))|h<<2),(h|=(m=1227133513&((m=3272356035&((m=251719695&((m=4278190335&((m&=1023)|m<<16))|m<<8))|m<<4))|m<<2))<<1)|(v=1227133513&((v=3272356035&((v=251719695&((v=4278190335&((v&=1023)|v<<16))|v<<8))|v<<4))|v<<2))<<2},p.deinterleave3=function(h,m){return(h=1023&((h=4278190335&((h=251719695&((h=3272356035&((h=h>>>m&1227133513)|h>>>2))|h>>>4))|h>>>8))|h>>>16))<<22>>22},p.nextCombination=function(h){var m=h|h-1;return m+1|(~m&-~m)-1>>>a(h)+1}},1928:function(y,p,a){(function(u,h){function m(W,K){if(!W)throw new Error(K||"Assertion failed")}function v(W,K){W.super_=K;var oe=function(){};oe.prototype=K.prototype,W.prototype=new oe,W.prototype.constructor=W}function _(W,K,oe){if(_.isBN(W))return W;this.negative=0,this.words=null,this.length=0,this.red=null,W!==null&&(K!=="le"&&K!=="be"||(oe=K,K=10),this._init(W||0,K||10,oe||"be"))}var S;typeof u=="object"?u.exports=_:h.BN=_,_.BN=_,_.wordSize=26;try{S=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:a(6601).Buffer}catch{}function A(W,K){var oe=W.charCodeAt(K);return oe>=65&&oe<=70?oe-55:oe>=97&&oe<=102?oe-87:oe-48&15}function x(W,K,oe){var q=A(W,oe);return oe-1>=K&&(q|=A(W,oe-1)<<4),q}function R(W,K,oe,q){for(var Y=0,ee=Math.min(W.length,oe),me=K;me=49?he-49+10:he>=17?he-17+10:he}return Y}_.isBN=function(W){return W instanceof _||W!==null&&typeof W=="object"&&W.constructor.wordSize===_.wordSize&&Array.isArray(W.words)},_.max=function(W,K){return W.cmp(K)>0?W:K},_.min=function(W,K){return W.cmp(K)<0?W:K},_.prototype._init=function(W,K,oe){if(typeof W=="number")return this._initNumber(W,K,oe);if(typeof W=="object")return this._initArray(W,K,oe);K==="hex"&&(K=16),m(K===(0|K)&&K>=2&&K<=36);var q=0;(W=W.toString().replace(/\s+/g,""))[0]==="-"&&(q++,this.negative=1),q=0;q-=3)ee=W[q]|W[q-1]<<8|W[q-2]<<16,this.words[Y]|=ee<>>26-me&67108863,(me+=24)>=26&&(me-=26,Y++);else if(oe==="le")for(q=0,Y=0;q>>26-me&67108863,(me+=24)>=26&&(me-=26,Y++);return this.strip()},_.prototype._parseHex=function(W,K,oe){this.length=Math.ceil((W.length-K)/6),this.words=new Array(this.length);for(var q=0;q=K;q-=2)Y=x(W,K,q)<=18?(ee-=18,me+=1,this.words[me]|=Y>>>26):ee+=8;else for(q=(W.length-K)%2==0?K+1:K;q=18?(ee-=18,me+=1,this.words[me]|=Y>>>26):ee+=8;this.strip()},_.prototype._parseBase=function(W,K,oe){this.words=[0],this.length=1;for(var q=0,Y=1;Y<=67108863;Y*=K)q++;q--,Y=Y/K|0;for(var ee=W.length-oe,me=ee%q,he=Math.min(ee,ee-me)+oe,se=0,ae=oe;ae1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},_.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},_.prototype.inspect=function(){return(this.red?""};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function C(W,K,oe){oe.negative=K.negative^W.negative;var q=W.length+K.length|0;oe.length=q,q=q-1|0;var Y=0|W.words[0],ee=0|K.words[0],me=Y*ee,he=67108863&me,se=me/67108864|0;oe.words[0]=he;for(var ae=1;ae>>26,de=67108863&se,ve=Math.min(ae,K.length-1),ye=Math.max(0,ae-W.length+1);ye<=ve;ye++){var _e=ae-ye|0;ce+=(me=(Y=0|W.words[_e])*(ee=0|K.words[ye])+de)/67108864|0,de=67108863&me}oe.words[ae]=0|de,se=0|ce}return se!==0?oe.words[ae]=0|se:oe.length--,oe.strip()}_.prototype.toString=function(W,K){var oe;if(K=0|K||1,(W=W||10)===16||W==="hex"){oe="";for(var q=0,Y=0,ee=0;ee>>24-q&16777215)!=0||ee!==this.length-1?M[6-he.length]+he+oe:he+oe,(q+=2)>=26&&(q-=26,ee--)}for(Y!==0&&(oe=Y.toString(16)+oe);oe.length%K!=0;)oe="0"+oe;return this.negative!==0&&(oe="-"+oe),oe}if(W===(0|W)&&W>=2&&W<=36){var se=T[W],ae=E[W];oe="";var ce=this.clone();for(ce.negative=0;!ce.isZero();){var de=ce.modn(ae).toString(W);oe=(ce=ce.idivn(ae)).isZero()?de+oe:M[se-de.length]+de+oe}for(this.isZero()&&(oe="0"+oe);oe.length%K!=0;)oe="0"+oe;return this.negative!==0&&(oe="-"+oe),oe}m(!1,"Base should be between 2 and 36")},_.prototype.toNumber=function(){var W=this.words[0];return this.length===2?W+=67108864*this.words[1]:this.length===3&&this.words[2]===1?W+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-W:W},_.prototype.toJSON=function(){return this.toString(16)},_.prototype.toBuffer=function(W,K){return m(S!==void 0),this.toArrayLike(S,W,K)},_.prototype.toArray=function(W,K){return this.toArrayLike(Array,W,K)},_.prototype.toArrayLike=function(W,K,oe){var q=this.byteLength(),Y=oe||Math.max(1,q);m(q<=Y,"byte array longer than desired length"),m(Y>0,"Requested array length <= 0"),this.strip();var ee,me,he=K==="le",se=new W(Y),ae=this.clone();if(he){for(me=0;!ae.isZero();me++)ee=ae.andln(255),ae.iushrn(8),se[me]=ee;for(;me=4096&&(oe+=13,K>>>=13),K>=64&&(oe+=7,K>>>=7),K>=8&&(oe+=4,K>>>=4),K>=2&&(oe+=2,K>>>=2),oe+K},_.prototype._zeroBits=function(W){if(W===0)return 26;var K=W,oe=0;return!(8191&K)&&(oe+=13,K>>>=13),!(127&K)&&(oe+=7,K>>>=7),!(15&K)&&(oe+=4,K>>>=4),!(3&K)&&(oe+=2,K>>>=2),!(1&K)&&oe++,oe},_.prototype.bitLength=function(){var W=this.words[this.length-1],K=this._countBits(W);return 26*(this.length-1)+K},_.prototype.zeroBits=function(){if(this.isZero())return 0;for(var W=0,K=0;KW.length?this.clone().ior(W):W.clone().ior(this)},_.prototype.uor=function(W){return this.length>W.length?this.clone().iuor(W):W.clone().iuor(this)},_.prototype.iuand=function(W){var K;K=this.length>W.length?W:this;for(var oe=0;oeW.length?this.clone().iand(W):W.clone().iand(this)},_.prototype.uand=function(W){return this.length>W.length?this.clone().iuand(W):W.clone().iuand(this)},_.prototype.iuxor=function(W){var K,oe;this.length>W.length?(K=this,oe=W):(K=W,oe=this);for(var q=0;qW.length?this.clone().ixor(W):W.clone().ixor(this)},_.prototype.uxor=function(W){return this.length>W.length?this.clone().iuxor(W):W.clone().iuxor(this)},_.prototype.inotn=function(W){m(typeof W=="number"&&W>=0);var K=0|Math.ceil(W/26),oe=W%26;this._expand(K),oe>0&&K--;for(var q=0;q0&&(this.words[q]=~this.words[q]&67108863>>26-oe),this.strip()},_.prototype.notn=function(W){return this.clone().inotn(W)},_.prototype.setn=function(W,K){m(typeof W=="number"&&W>=0);var oe=W/26|0,q=W%26;return this._expand(oe+1),this.words[oe]=K?this.words[oe]|1<W.length?(oe=this,q=W):(oe=W,q=this);for(var Y=0,ee=0;ee>>26;for(;Y!==0&&ee>>26;if(this.length=oe.length,Y!==0)this.words[this.length]=Y,this.length++;else if(oe!==this)for(;eeW.length?this.clone().iadd(W):W.clone().iadd(this)},_.prototype.isub=function(W){if(W.negative!==0){W.negative=0;var K=this.iadd(W);return W.negative=1,K._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(W),this.negative=1,this._normSign();var oe,q,Y=this.cmp(W);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;Y>0?(oe=this,q=W):(oe=W,q=this);for(var ee=0,me=0;me>26,this.words[me]=67108863&K;for(;ee!==0&&me>26,this.words[me]=67108863&K;if(ee===0&&me>>13,ye=0|me[1],_e=8191&ye,Se=ye>>>13,Te=0|me[2],Pe=8191&Te,Ie=Te>>>13,ze=0|me[3],De=8191&ze,He=ze>>>13,Ve=0|me[4],$e=8191&Ve,Oe=Ve>>>13,ke=0|me[5],Le=8191&ke,We=ke>>>13,Ue=0|me[6],Ze=8191&Ue,Xe=Ue>>>13,tt=0|me[7],Ee=8191&tt,Ne=tt>>>13,je=0|me[8],nt=8191&je,ot=je>>>13,Ge=0|me[9],ht=8191&Ge,pt=Ge>>>13,wt=0|he[0],Dt=8191&wt,It=wt>>>13,qt=0|he[1],en=8191&qt,Gt=qt>>>13,Ct=0|he[2],_t=8191&Ct,nn=Ct>>>13,gn=0|he[3],bn=8191&gn,mn=gn>>>13,vt=0|he[4],bt=8191&vt,lt=vt>>>13,yt=0|he[5],zt=8191&yt,Rt=yt>>>13,it=0|he[6],at=8191&it,Lt=it>>>13,xt=0|he[7],Ht=8191&xt,Xt=xt>>>13,Yt=0|he[8],Qt=8191&Yt,Pt=Yt>>>13,tn=0|he[9],Kt=8191&tn,fn=tn>>>13;oe.negative=W.negative^K.negative,oe.length=19;var dn=(ae+(q=Math.imul(de,Dt))|0)+((8191&(Y=(Y=Math.imul(de,It))+Math.imul(ve,Dt)|0))<<13)|0;ae=((ee=Math.imul(ve,It))+(Y>>>13)|0)+(dn>>>26)|0,dn&=67108863,q=Math.imul(_e,Dt),Y=(Y=Math.imul(_e,It))+Math.imul(Se,Dt)|0,ee=Math.imul(Se,It);var vn=(ae+(q=q+Math.imul(de,en)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Gt)|0)+Math.imul(ve,en)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Gt)|0)+(Y>>>13)|0)+(vn>>>26)|0,vn&=67108863,q=Math.imul(Pe,Dt),Y=(Y=Math.imul(Pe,It))+Math.imul(Ie,Dt)|0,ee=Math.imul(Ie,It),q=q+Math.imul(_e,en)|0,Y=(Y=Y+Math.imul(_e,Gt)|0)+Math.imul(Se,en)|0,ee=ee+Math.imul(Se,Gt)|0;var Nn=(ae+(q=q+Math.imul(de,_t)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,nn)|0)+Math.imul(ve,_t)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,nn)|0)+(Y>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,q=Math.imul(De,Dt),Y=(Y=Math.imul(De,It))+Math.imul(He,Dt)|0,ee=Math.imul(He,It),q=q+Math.imul(Pe,en)|0,Y=(Y=Y+Math.imul(Pe,Gt)|0)+Math.imul(Ie,en)|0,ee=ee+Math.imul(Ie,Gt)|0,q=q+Math.imul(_e,_t)|0,Y=(Y=Y+Math.imul(_e,nn)|0)+Math.imul(Se,_t)|0,ee=ee+Math.imul(Se,nn)|0;var er=(ae+(q=q+Math.imul(de,bn)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,mn)|0)+Math.imul(ve,bn)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,mn)|0)+(Y>>>13)|0)+(er>>>26)|0,er&=67108863,q=Math.imul($e,Dt),Y=(Y=Math.imul($e,It))+Math.imul(Oe,Dt)|0,ee=Math.imul(Oe,It),q=q+Math.imul(De,en)|0,Y=(Y=Y+Math.imul(De,Gt)|0)+Math.imul(He,en)|0,ee=ee+Math.imul(He,Gt)|0,q=q+Math.imul(Pe,_t)|0,Y=(Y=Y+Math.imul(Pe,nn)|0)+Math.imul(Ie,_t)|0,ee=ee+Math.imul(Ie,nn)|0,q=q+Math.imul(_e,bn)|0,Y=(Y=Y+Math.imul(_e,mn)|0)+Math.imul(Se,bn)|0,ee=ee+Math.imul(Se,mn)|0;var En=(ae+(q=q+Math.imul(de,bt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,lt)|0)+Math.imul(ve,bt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,lt)|0)+(Y>>>13)|0)+(En>>>26)|0,En&=67108863,q=Math.imul(Le,Dt),Y=(Y=Math.imul(Le,It))+Math.imul(We,Dt)|0,ee=Math.imul(We,It),q=q+Math.imul($e,en)|0,Y=(Y=Y+Math.imul($e,Gt)|0)+Math.imul(Oe,en)|0,ee=ee+Math.imul(Oe,Gt)|0,q=q+Math.imul(De,_t)|0,Y=(Y=Y+Math.imul(De,nn)|0)+Math.imul(He,_t)|0,ee=ee+Math.imul(He,nn)|0,q=q+Math.imul(Pe,bn)|0,Y=(Y=Y+Math.imul(Pe,mn)|0)+Math.imul(Ie,bn)|0,ee=ee+Math.imul(Ie,mn)|0,q=q+Math.imul(_e,bt)|0,Y=(Y=Y+Math.imul(_e,lt)|0)+Math.imul(Se,bt)|0,ee=ee+Math.imul(Se,lt)|0;var In=(ae+(q=q+Math.imul(de,zt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Rt)|0)+Math.imul(ve,zt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Rt)|0)+(Y>>>13)|0)+(In>>>26)|0,In&=67108863,q=Math.imul(Ze,Dt),Y=(Y=Math.imul(Ze,It))+Math.imul(Xe,Dt)|0,ee=Math.imul(Xe,It),q=q+Math.imul(Le,en)|0,Y=(Y=Y+Math.imul(Le,Gt)|0)+Math.imul(We,en)|0,ee=ee+Math.imul(We,Gt)|0,q=q+Math.imul($e,_t)|0,Y=(Y=Y+Math.imul($e,nn)|0)+Math.imul(Oe,_t)|0,ee=ee+Math.imul(Oe,nn)|0,q=q+Math.imul(De,bn)|0,Y=(Y=Y+Math.imul(De,mn)|0)+Math.imul(He,bn)|0,ee=ee+Math.imul(He,mn)|0,q=q+Math.imul(Pe,bt)|0,Y=(Y=Y+Math.imul(Pe,lt)|0)+Math.imul(Ie,bt)|0,ee=ee+Math.imul(Ie,lt)|0,q=q+Math.imul(_e,zt)|0,Y=(Y=Y+Math.imul(_e,Rt)|0)+Math.imul(Se,zt)|0,ee=ee+Math.imul(Se,Rt)|0;var Un=(ae+(q=q+Math.imul(de,at)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Lt)|0)+Math.imul(ve,at)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Lt)|0)+(Y>>>13)|0)+(Un>>>26)|0,Un&=67108863,q=Math.imul(Ee,Dt),Y=(Y=Math.imul(Ee,It))+Math.imul(Ne,Dt)|0,ee=Math.imul(Ne,It),q=q+Math.imul(Ze,en)|0,Y=(Y=Y+Math.imul(Ze,Gt)|0)+Math.imul(Xe,en)|0,ee=ee+Math.imul(Xe,Gt)|0,q=q+Math.imul(Le,_t)|0,Y=(Y=Y+Math.imul(Le,nn)|0)+Math.imul(We,_t)|0,ee=ee+Math.imul(We,nn)|0,q=q+Math.imul($e,bn)|0,Y=(Y=Y+Math.imul($e,mn)|0)+Math.imul(Oe,bn)|0,ee=ee+Math.imul(Oe,mn)|0,q=q+Math.imul(De,bt)|0,Y=(Y=Y+Math.imul(De,lt)|0)+Math.imul(He,bt)|0,ee=ee+Math.imul(He,lt)|0,q=q+Math.imul(Pe,zt)|0,Y=(Y=Y+Math.imul(Pe,Rt)|0)+Math.imul(Ie,zt)|0,ee=ee+Math.imul(Ie,Rt)|0,q=q+Math.imul(_e,at)|0,Y=(Y=Y+Math.imul(_e,Lt)|0)+Math.imul(Se,at)|0,ee=ee+Math.imul(Se,Lt)|0;var xr=(ae+(q=q+Math.imul(de,Ht)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Xt)|0)+Math.imul(ve,Ht)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Xt)|0)+(Y>>>13)|0)+(xr>>>26)|0,xr&=67108863,q=Math.imul(nt,Dt),Y=(Y=Math.imul(nt,It))+Math.imul(ot,Dt)|0,ee=Math.imul(ot,It),q=q+Math.imul(Ee,en)|0,Y=(Y=Y+Math.imul(Ee,Gt)|0)+Math.imul(Ne,en)|0,ee=ee+Math.imul(Ne,Gt)|0,q=q+Math.imul(Ze,_t)|0,Y=(Y=Y+Math.imul(Ze,nn)|0)+Math.imul(Xe,_t)|0,ee=ee+Math.imul(Xe,nn)|0,q=q+Math.imul(Le,bn)|0,Y=(Y=Y+Math.imul(Le,mn)|0)+Math.imul(We,bn)|0,ee=ee+Math.imul(We,mn)|0,q=q+Math.imul($e,bt)|0,Y=(Y=Y+Math.imul($e,lt)|0)+Math.imul(Oe,bt)|0,ee=ee+Math.imul(Oe,lt)|0,q=q+Math.imul(De,zt)|0,Y=(Y=Y+Math.imul(De,Rt)|0)+Math.imul(He,zt)|0,ee=ee+Math.imul(He,Rt)|0,q=q+Math.imul(Pe,at)|0,Y=(Y=Y+Math.imul(Pe,Lt)|0)+Math.imul(Ie,at)|0,ee=ee+Math.imul(Ie,Lt)|0,q=q+Math.imul(_e,Ht)|0,Y=(Y=Y+Math.imul(_e,Xt)|0)+Math.imul(Se,Ht)|0,ee=ee+Math.imul(Se,Xt)|0;var Sr=(ae+(q=q+Math.imul(de,Qt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Pt)|0)+Math.imul(ve,Qt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Pt)|0)+(Y>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,q=Math.imul(ht,Dt),Y=(Y=Math.imul(ht,It))+Math.imul(pt,Dt)|0,ee=Math.imul(pt,It),q=q+Math.imul(nt,en)|0,Y=(Y=Y+Math.imul(nt,Gt)|0)+Math.imul(ot,en)|0,ee=ee+Math.imul(ot,Gt)|0,q=q+Math.imul(Ee,_t)|0,Y=(Y=Y+Math.imul(Ee,nn)|0)+Math.imul(Ne,_t)|0,ee=ee+Math.imul(Ne,nn)|0,q=q+Math.imul(Ze,bn)|0,Y=(Y=Y+Math.imul(Ze,mn)|0)+Math.imul(Xe,bn)|0,ee=ee+Math.imul(Xe,mn)|0,q=q+Math.imul(Le,bt)|0,Y=(Y=Y+Math.imul(Le,lt)|0)+Math.imul(We,bt)|0,ee=ee+Math.imul(We,lt)|0,q=q+Math.imul($e,zt)|0,Y=(Y=Y+Math.imul($e,Rt)|0)+Math.imul(Oe,zt)|0,ee=ee+Math.imul(Oe,Rt)|0,q=q+Math.imul(De,at)|0,Y=(Y=Y+Math.imul(De,Lt)|0)+Math.imul(He,at)|0,ee=ee+Math.imul(He,Lt)|0,q=q+Math.imul(Pe,Ht)|0,Y=(Y=Y+Math.imul(Pe,Xt)|0)+Math.imul(Ie,Ht)|0,ee=ee+Math.imul(Ie,Xt)|0,q=q+Math.imul(_e,Qt)|0,Y=(Y=Y+Math.imul(_e,Pt)|0)+Math.imul(Se,Qt)|0,ee=ee+Math.imul(Se,Pt)|0;var ar=(ae+(q=q+Math.imul(de,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,fn)|0)+Math.imul(ve,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,fn)|0)+(Y>>>13)|0)+(ar>>>26)|0,ar&=67108863,q=Math.imul(ht,en),Y=(Y=Math.imul(ht,Gt))+Math.imul(pt,en)|0,ee=Math.imul(pt,Gt),q=q+Math.imul(nt,_t)|0,Y=(Y=Y+Math.imul(nt,nn)|0)+Math.imul(ot,_t)|0,ee=ee+Math.imul(ot,nn)|0,q=q+Math.imul(Ee,bn)|0,Y=(Y=Y+Math.imul(Ee,mn)|0)+Math.imul(Ne,bn)|0,ee=ee+Math.imul(Ne,mn)|0,q=q+Math.imul(Ze,bt)|0,Y=(Y=Y+Math.imul(Ze,lt)|0)+Math.imul(Xe,bt)|0,ee=ee+Math.imul(Xe,lt)|0,q=q+Math.imul(Le,zt)|0,Y=(Y=Y+Math.imul(Le,Rt)|0)+Math.imul(We,zt)|0,ee=ee+Math.imul(We,Rt)|0,q=q+Math.imul($e,at)|0,Y=(Y=Y+Math.imul($e,Lt)|0)+Math.imul(Oe,at)|0,ee=ee+Math.imul(Oe,Lt)|0,q=q+Math.imul(De,Ht)|0,Y=(Y=Y+Math.imul(De,Xt)|0)+Math.imul(He,Ht)|0,ee=ee+Math.imul(He,Xt)|0,q=q+Math.imul(Pe,Qt)|0,Y=(Y=Y+Math.imul(Pe,Pt)|0)+Math.imul(Ie,Qt)|0,ee=ee+Math.imul(Ie,Pt)|0;var Fn=(ae+(q=q+Math.imul(_e,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(_e,fn)|0)+Math.imul(Se,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Se,fn)|0)+(Y>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,q=Math.imul(ht,_t),Y=(Y=Math.imul(ht,nn))+Math.imul(pt,_t)|0,ee=Math.imul(pt,nn),q=q+Math.imul(nt,bn)|0,Y=(Y=Y+Math.imul(nt,mn)|0)+Math.imul(ot,bn)|0,ee=ee+Math.imul(ot,mn)|0,q=q+Math.imul(Ee,bt)|0,Y=(Y=Y+Math.imul(Ee,lt)|0)+Math.imul(Ne,bt)|0,ee=ee+Math.imul(Ne,lt)|0,q=q+Math.imul(Ze,zt)|0,Y=(Y=Y+Math.imul(Ze,Rt)|0)+Math.imul(Xe,zt)|0,ee=ee+Math.imul(Xe,Rt)|0,q=q+Math.imul(Le,at)|0,Y=(Y=Y+Math.imul(Le,Lt)|0)+Math.imul(We,at)|0,ee=ee+Math.imul(We,Lt)|0,q=q+Math.imul($e,Ht)|0,Y=(Y=Y+Math.imul($e,Xt)|0)+Math.imul(Oe,Ht)|0,ee=ee+Math.imul(Oe,Xt)|0,q=q+Math.imul(De,Qt)|0,Y=(Y=Y+Math.imul(De,Pt)|0)+Math.imul(He,Qt)|0,ee=ee+Math.imul(He,Pt)|0;var ir=(ae+(q=q+Math.imul(Pe,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Pe,fn)|0)+Math.imul(Ie,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Ie,fn)|0)+(Y>>>13)|0)+(ir>>>26)|0,ir&=67108863,q=Math.imul(ht,bn),Y=(Y=Math.imul(ht,mn))+Math.imul(pt,bn)|0,ee=Math.imul(pt,mn),q=q+Math.imul(nt,bt)|0,Y=(Y=Y+Math.imul(nt,lt)|0)+Math.imul(ot,bt)|0,ee=ee+Math.imul(ot,lt)|0,q=q+Math.imul(Ee,zt)|0,Y=(Y=Y+Math.imul(Ee,Rt)|0)+Math.imul(Ne,zt)|0,ee=ee+Math.imul(Ne,Rt)|0,q=q+Math.imul(Ze,at)|0,Y=(Y=Y+Math.imul(Ze,Lt)|0)+Math.imul(Xe,at)|0,ee=ee+Math.imul(Xe,Lt)|0,q=q+Math.imul(Le,Ht)|0,Y=(Y=Y+Math.imul(Le,Xt)|0)+Math.imul(We,Ht)|0,ee=ee+Math.imul(We,Xt)|0,q=q+Math.imul($e,Qt)|0,Y=(Y=Y+Math.imul($e,Pt)|0)+Math.imul(Oe,Qt)|0,ee=ee+Math.imul(Oe,Pt)|0;var Wn=(ae+(q=q+Math.imul(De,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(De,fn)|0)+Math.imul(He,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(He,fn)|0)+(Y>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,q=Math.imul(ht,bt),Y=(Y=Math.imul(ht,lt))+Math.imul(pt,bt)|0,ee=Math.imul(pt,lt),q=q+Math.imul(nt,zt)|0,Y=(Y=Y+Math.imul(nt,Rt)|0)+Math.imul(ot,zt)|0,ee=ee+Math.imul(ot,Rt)|0,q=q+Math.imul(Ee,at)|0,Y=(Y=Y+Math.imul(Ee,Lt)|0)+Math.imul(Ne,at)|0,ee=ee+Math.imul(Ne,Lt)|0,q=q+Math.imul(Ze,Ht)|0,Y=(Y=Y+Math.imul(Ze,Xt)|0)+Math.imul(Xe,Ht)|0,ee=ee+Math.imul(Xe,Xt)|0,q=q+Math.imul(Le,Qt)|0,Y=(Y=Y+Math.imul(Le,Pt)|0)+Math.imul(We,Qt)|0,ee=ee+Math.imul(We,Pt)|0;var Kn=(ae+(q=q+Math.imul($e,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul($e,fn)|0)+Math.imul(Oe,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Oe,fn)|0)+(Y>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,q=Math.imul(ht,zt),Y=(Y=Math.imul(ht,Rt))+Math.imul(pt,zt)|0,ee=Math.imul(pt,Rt),q=q+Math.imul(nt,at)|0,Y=(Y=Y+Math.imul(nt,Lt)|0)+Math.imul(ot,at)|0,ee=ee+Math.imul(ot,Lt)|0,q=q+Math.imul(Ee,Ht)|0,Y=(Y=Y+Math.imul(Ee,Xt)|0)+Math.imul(Ne,Ht)|0,ee=ee+Math.imul(Ne,Xt)|0,q=q+Math.imul(Ze,Qt)|0,Y=(Y=Y+Math.imul(Ze,Pt)|0)+Math.imul(Xe,Qt)|0,ee=ee+Math.imul(Xe,Pt)|0;var _r=(ae+(q=q+Math.imul(Le,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Le,fn)|0)+Math.imul(We,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(We,fn)|0)+(Y>>>13)|0)+(_r>>>26)|0,_r&=67108863,q=Math.imul(ht,at),Y=(Y=Math.imul(ht,Lt))+Math.imul(pt,at)|0,ee=Math.imul(pt,Lt),q=q+Math.imul(nt,Ht)|0,Y=(Y=Y+Math.imul(nt,Xt)|0)+Math.imul(ot,Ht)|0,ee=ee+Math.imul(ot,Xt)|0,q=q+Math.imul(Ee,Qt)|0,Y=(Y=Y+Math.imul(Ee,Pt)|0)+Math.imul(Ne,Qt)|0,ee=ee+Math.imul(Ne,Pt)|0;var Ir=(ae+(q=q+Math.imul(Ze,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Ze,fn)|0)+Math.imul(Xe,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Xe,fn)|0)+(Y>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,q=Math.imul(ht,Ht),Y=(Y=Math.imul(ht,Xt))+Math.imul(pt,Ht)|0,ee=Math.imul(pt,Xt),q=q+Math.imul(nt,Qt)|0,Y=(Y=Y+Math.imul(nt,Pt)|0)+Math.imul(ot,Qt)|0,ee=ee+Math.imul(ot,Pt)|0;var zr=(ae+(q=q+Math.imul(Ee,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Ee,fn)|0)+Math.imul(Ne,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Ne,fn)|0)+(Y>>>13)|0)+(zr>>>26)|0,zr&=67108863,q=Math.imul(ht,Qt),Y=(Y=Math.imul(ht,Pt))+Math.imul(pt,Qt)|0,ee=Math.imul(pt,Pt);var Fr=(ae+(q=q+Math.imul(nt,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(nt,fn)|0)+Math.imul(ot,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(ot,fn)|0)+(Y>>>13)|0)+(Fr>>>26)|0,Fr&=67108863;var Rr=(ae+(q=Math.imul(ht,Kt))|0)+((8191&(Y=(Y=Math.imul(ht,fn))+Math.imul(pt,Kt)|0))<<13)|0;return ae=((ee=Math.imul(pt,fn))+(Y>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,se[0]=dn,se[1]=vn,se[2]=Nn,se[3]=er,se[4]=En,se[5]=In,se[6]=Un,se[7]=xr,se[8]=Sr,se[9]=ar,se[10]=Fn,se[11]=ir,se[12]=Wn,se[13]=Kn,se[14]=_r,se[15]=Ir,se[16]=zr,se[17]=Fr,se[18]=Rr,ae!==0&&(se[19]=ae,oe.length++),oe};function D(W,K,oe){return new k().mulp(W,K,oe)}function k(W,K){this.x=W,this.y=K}Math.imul||(L=C),_.prototype.mulTo=function(W,K){var oe,q=this.length+W.length;return oe=this.length===10&&W.length===10?L(this,W,K):q<63?C(this,W,K):q<1024?function(Y,ee,me){me.negative=ee.negative^Y.negative,me.length=Y.length+ee.length;for(var he=0,se=0,ae=0;ae>>26)|0)>>>26,ce&=67108863}me.words[ae]=de,he=ce,ce=se}return he!==0?me.words[ae]=he:me.length--,me.strip()}(this,W,K):D(this,W,K),oe},k.prototype.makeRBT=function(W){for(var K=new Array(W),oe=_.prototype._countBits(W)-1,q=0;q>=1;return q},k.prototype.permute=function(W,K,oe,q,Y,ee){for(var me=0;me>>=1)Y++;return 1<>>=13,oe[2*ee+1]=8191&Y,Y>>>=13;for(ee=2*K;ee>=26,K+=q/67108864|0,K+=Y>>>26,this.words[oe]=67108863&Y}return K!==0&&(this.words[oe]=K,this.length++),this},_.prototype.muln=function(W){return this.clone().imuln(W)},_.prototype.sqr=function(){return this.mul(this)},_.prototype.isqr=function(){return this.imul(this.clone())},_.prototype.pow=function(W){var K=function(ee){for(var me=new Array(ee.bitLength()),he=0;he>>ae}return me}(W);if(K.length===0)return new _(1);for(var oe=this,q=0;q=0);var K,oe=W%26,q=(W-oe)/26,Y=67108863>>>26-oe<<26-oe;if(oe!==0){var ee=0;for(K=0;K>>26-oe}ee&&(this.words[K]=ee,this.length++)}if(q!==0){for(K=this.length-1;K>=0;K--)this.words[K+q]=this.words[K];for(K=0;K=0),q=K?(K-K%26)/26:0;var Y=W%26,ee=Math.min((W-Y)/26,this.length),me=67108863^67108863>>>Y<ee)for(this.length-=ee,se=0;se=0&&(ae!==0||se>=q);se--){var ce=0|this.words[se];this.words[se]=ae<<26-Y|ce>>>Y,ae=ce&me}return he&&ae!==0&&(he.words[he.length++]=ae),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},_.prototype.ishrn=function(W,K,oe){return m(this.negative===0),this.iushrn(W,K,oe)},_.prototype.shln=function(W){return this.clone().ishln(W)},_.prototype.ushln=function(W){return this.clone().iushln(W)},_.prototype.shrn=function(W){return this.clone().ishrn(W)},_.prototype.ushrn=function(W){return this.clone().iushrn(W)},_.prototype.testn=function(W){m(typeof W=="number"&&W>=0);var K=W%26,oe=(W-K)/26,q=1<=0);var K=W%26,oe=(W-K)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=oe)return this;if(K!==0&&oe++,this.length=Math.min(oe,this.length),K!==0){var q=67108863^67108863>>>K<=67108864;K++)this.words[K]-=67108864,K===this.length-1?this.words[K+1]=1:this.words[K+1]++;return this.length=Math.max(this.length,K+1),this},_.prototype.isubn=function(W){if(m(typeof W=="number"),m(W<67108864),W<0)return this.iaddn(-W);if(this.negative!==0)return this.negative=0,this.iaddn(W),this.negative=1,this;if(this.words[0]-=W,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var K=0;K>26)-(he/67108864|0),this.words[q+oe]=67108863&Y}for(;q>26,this.words[q+oe]=67108863&Y;if(me===0)return this.strip();for(m(me===-1),me=0,q=0;q>26,this.words[q]=67108863&Y;return this.negative=1,this.strip()},_.prototype._wordDiv=function(W,K){var oe=(this.length,W.length),q=this.clone(),Y=W,ee=0|Y.words[Y.length-1];(oe=26-this._countBits(ee))!=0&&(Y=Y.ushln(oe),q.iushln(oe),ee=0|Y.words[Y.length-1]);var me,he=q.length-Y.length;if(K!=="mod"){(me=new _(null)).length=he+1,me.words=new Array(me.length);for(var se=0;se=0;ce--){var de=67108864*(0|q.words[Y.length+ce])+(0|q.words[Y.length+ce-1]);for(de=Math.min(de/ee|0,67108863),q._ishlnsubmul(Y,de,ce);q.negative!==0;)de--,q.negative=0,q._ishlnsubmul(Y,1,ce),q.isZero()||(q.negative^=1);me&&(me.words[ce]=de)}return me&&me.strip(),q.strip(),K!=="div"&&oe!==0&&q.iushrn(oe),{div:me||null,mod:q}},_.prototype.divmod=function(W,K,oe){return m(!W.isZero()),this.isZero()?{div:new _(0),mod:new _(0)}:this.negative!==0&&W.negative===0?(ee=this.neg().divmod(W,K),K!=="mod"&&(q=ee.div.neg()),K!=="div"&&(Y=ee.mod.neg(),oe&&Y.negative!==0&&Y.iadd(W)),{div:q,mod:Y}):this.negative===0&&W.negative!==0?(ee=this.divmod(W.neg(),K),K!=="mod"&&(q=ee.div.neg()),{div:q,mod:ee.mod}):this.negative&W.negative?(ee=this.neg().divmod(W.neg(),K),K!=="div"&&(Y=ee.mod.neg(),oe&&Y.negative!==0&&Y.isub(W)),{div:ee.div,mod:Y}):W.length>this.length||this.cmp(W)<0?{div:new _(0),mod:this}:W.length===1?K==="div"?{div:this.divn(W.words[0]),mod:null}:K==="mod"?{div:null,mod:new _(this.modn(W.words[0]))}:{div:this.divn(W.words[0]),mod:new _(this.modn(W.words[0]))}:this._wordDiv(W,K);var q,Y,ee},_.prototype.div=function(W){return this.divmod(W,"div",!1).div},_.prototype.mod=function(W){return this.divmod(W,"mod",!1).mod},_.prototype.umod=function(W){return this.divmod(W,"mod",!0).mod},_.prototype.divRound=function(W){var K=this.divmod(W);if(K.mod.isZero())return K.div;var oe=K.div.negative!==0?K.mod.isub(W):K.mod,q=W.ushrn(1),Y=W.andln(1),ee=oe.cmp(q);return ee<0||Y===1&&ee===0?K.div:K.div.negative!==0?K.div.isubn(1):K.div.iaddn(1)},_.prototype.modn=function(W){m(W<=67108863);for(var K=67108864%W,oe=0,q=this.length-1;q>=0;q--)oe=(K*oe+(0|this.words[q]))%W;return oe},_.prototype.idivn=function(W){m(W<=67108863);for(var K=0,oe=this.length-1;oe>=0;oe--){var q=(0|this.words[oe])+67108864*K;this.words[oe]=q/W|0,K=q%W}return this.strip()},_.prototype.divn=function(W){return this.clone().idivn(W)},_.prototype.egcd=function(W){m(W.negative===0),m(!W.isZero());var K=this,oe=W.clone();K=K.negative!==0?K.umod(W):K.clone();for(var q=new _(1),Y=new _(0),ee=new _(0),me=new _(1),he=0;K.isEven()&&oe.isEven();)K.iushrn(1),oe.iushrn(1),++he;for(var se=oe.clone(),ae=K.clone();!K.isZero();){for(var ce=0,de=1;!(K.words[0]&de)&&ce<26;++ce,de<<=1);if(ce>0)for(K.iushrn(ce);ce-- >0;)(q.isOdd()||Y.isOdd())&&(q.iadd(se),Y.isub(ae)),q.iushrn(1),Y.iushrn(1);for(var ve=0,ye=1;!(oe.words[0]&ye)&&ve<26;++ve,ye<<=1);if(ve>0)for(oe.iushrn(ve);ve-- >0;)(ee.isOdd()||me.isOdd())&&(ee.iadd(se),me.isub(ae)),ee.iushrn(1),me.iushrn(1);K.cmp(oe)>=0?(K.isub(oe),q.isub(ee),Y.isub(me)):(oe.isub(K),ee.isub(q),me.isub(Y))}return{a:ee,b:me,gcd:oe.iushln(he)}},_.prototype._invmp=function(W){m(W.negative===0),m(!W.isZero());var K=this,oe=W.clone();K=K.negative!==0?K.umod(W):K.clone();for(var q,Y=new _(1),ee=new _(0),me=oe.clone();K.cmpn(1)>0&&oe.cmpn(1)>0;){for(var he=0,se=1;!(K.words[0]&se)&&he<26;++he,se<<=1);if(he>0)for(K.iushrn(he);he-- >0;)Y.isOdd()&&Y.iadd(me),Y.iushrn(1);for(var ae=0,ce=1;!(oe.words[0]&ce)&&ae<26;++ae,ce<<=1);if(ae>0)for(oe.iushrn(ae);ae-- >0;)ee.isOdd()&&ee.iadd(me),ee.iushrn(1);K.cmp(oe)>=0?(K.isub(oe),Y.isub(ee)):(oe.isub(K),ee.isub(Y))}return(q=K.cmpn(1)===0?Y:ee).cmpn(0)<0&&q.iadd(W),q},_.prototype.gcd=function(W){if(this.isZero())return W.abs();if(W.isZero())return this.abs();var K=this.clone(),oe=W.clone();K.negative=0,oe.negative=0;for(var q=0;K.isEven()&&oe.isEven();q++)K.iushrn(1),oe.iushrn(1);for(;;){for(;K.isEven();)K.iushrn(1);for(;oe.isEven();)oe.iushrn(1);var Y=K.cmp(oe);if(Y<0){var ee=K;K=oe,oe=ee}else if(Y===0||oe.cmpn(1)===0)break;K.isub(oe)}return oe.iushln(q)},_.prototype.invm=function(W){return this.egcd(W).a.umod(W)},_.prototype.isEven=function(){return(1&this.words[0])==0},_.prototype.isOdd=function(){return(1&this.words[0])==1},_.prototype.andln=function(W){return this.words[0]&W},_.prototype.bincn=function(W){m(typeof W=="number");var K=W%26,oe=(W-K)/26,q=1<>>26,me&=67108863,this.words[ee]=me}return Y!==0&&(this.words[ee]=Y,this.length++),this},_.prototype.isZero=function(){return this.length===1&&this.words[0]===0},_.prototype.cmpn=function(W){var K,oe=W<0;if(this.negative!==0&&!oe)return-1;if(this.negative===0&&oe)return 1;if(this.strip(),this.length>1)K=1;else{oe&&(W=-W),m(W<=67108863,"Number is too big");var q=0|this.words[0];K=q===W?0:qW.length)return 1;if(this.length=0;oe--){var q=0|this.words[oe],Y=0|W.words[oe];if(q!==Y){qY&&(K=1);break}}return K},_.prototype.gtn=function(W){return this.cmpn(W)===1},_.prototype.gt=function(W){return this.cmp(W)===1},_.prototype.gten=function(W){return this.cmpn(W)>=0},_.prototype.gte=function(W){return this.cmp(W)>=0},_.prototype.ltn=function(W){return this.cmpn(W)===-1},_.prototype.lt=function(W){return this.cmp(W)===-1},_.prototype.lten=function(W){return this.cmpn(W)<=0},_.prototype.lte=function(W){return this.cmp(W)<=0},_.prototype.eqn=function(W){return this.cmpn(W)===0},_.prototype.eq=function(W){return this.cmp(W)===0},_.red=function(W){return new X(W)},_.prototype.toRed=function(W){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),W.convertTo(this)._forceRed(W)},_.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},_.prototype._forceRed=function(W){return this.red=W,this},_.prototype.forceRed=function(W){return m(!this.red,"Already a number in reduction context"),this._forceRed(W)},_.prototype.redAdd=function(W){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,W)},_.prototype.redIAdd=function(W){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,W)},_.prototype.redSub=function(W){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,W)},_.prototype.redISub=function(W){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,W)},_.prototype.redShl=function(W){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,W)},_.prototype.redMul=function(W){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,W),this.red.mul(this,W)},_.prototype.redIMul=function(W){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,W),this.red.imul(this,W)},_.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},_.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},_.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},_.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},_.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},_.prototype.redPow=function(W){return m(this.red&&!W.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,W)};var I={k256:null,p224:null,p192:null,p25519:null};function z(W,K){this.name=W,this.p=new _(K,16),this.n=this.p.bitLength(),this.k=new _(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function $(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Q(){z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function j(){z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function U(){z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function X(W){if(typeof W=="string"){var K=_._prime(W);this.m=K.p,this.prime=K}else m(W.gtn(1),"modulus must be greater than 1"),this.m=W,this.prime=null}function te(W){X.call(this,W),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new _(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}z.prototype._tmp=function(){var W=new _(null);return W.words=new Array(Math.ceil(this.n/13)),W},z.prototype.ireduce=function(W){var K,oe=W;do this.split(oe,this.tmp),K=(oe=(oe=this.imulK(oe)).iadd(this.tmp)).bitLength();while(K>this.n);var q=K0?oe.isub(this.p):oe.strip!==void 0?oe.strip():oe._strip(),oe},z.prototype.split=function(W,K){W.iushrn(this.n,0,K)},z.prototype.imulK=function(W){return W.imul(this.k)},v($,z),$.prototype.split=function(W,K){for(var oe=4194303,q=Math.min(W.length,9),Y=0;Y>>22,ee=me}ee>>>=22,W.words[Y-10]=ee,ee===0&&W.length>10?W.length-=10:W.length-=9},$.prototype.imulK=function(W){W.words[W.length]=0,W.words[W.length+1]=0,W.length+=2;for(var K=0,oe=0;oe>>=26,W.words[oe]=Y,K=q}return K!==0&&(W.words[W.length++]=K),W},_._prime=function(W){if(I[W])return I[W];var K;if(W==="k256")K=new $;else if(W==="p224")K=new Q;else if(W==="p192")K=new j;else{if(W!=="p25519")throw new Error("Unknown prime "+W);K=new U}return I[W]=K,K},X.prototype._verify1=function(W){m(W.negative===0,"red works only with positives"),m(W.red,"red works only with red numbers")},X.prototype._verify2=function(W,K){m((W.negative|K.negative)==0,"red works only with positives"),m(W.red&&W.red===K.red,"red works only with red numbers")},X.prototype.imod=function(W){return this.prime?this.prime.ireduce(W)._forceRed(this):W.umod(this.m)._forceRed(this)},X.prototype.neg=function(W){return W.isZero()?W.clone():this.m.sub(W)._forceRed(this)},X.prototype.add=function(W,K){this._verify2(W,K);var oe=W.add(K);return oe.cmp(this.m)>=0&&oe.isub(this.m),oe._forceRed(this)},X.prototype.iadd=function(W,K){this._verify2(W,K);var oe=W.iadd(K);return oe.cmp(this.m)>=0&&oe.isub(this.m),oe},X.prototype.sub=function(W,K){this._verify2(W,K);var oe=W.sub(K);return oe.cmpn(0)<0&&oe.iadd(this.m),oe._forceRed(this)},X.prototype.isub=function(W,K){this._verify2(W,K);var oe=W.isub(K);return oe.cmpn(0)<0&&oe.iadd(this.m),oe},X.prototype.shl=function(W,K){return this._verify1(W),this.imod(W.ushln(K))},X.prototype.imul=function(W,K){return this._verify2(W,K),this.imod(W.imul(K))},X.prototype.mul=function(W,K){return this._verify2(W,K),this.imod(W.mul(K))},X.prototype.isqr=function(W){return this.imul(W,W.clone())},X.prototype.sqr=function(W){return this.mul(W,W)},X.prototype.sqrt=function(W){if(W.isZero())return W.clone();var K=this.m.andln(3);if(m(K%2==1),K===3){var oe=this.m.add(new _(1)).iushrn(2);return this.pow(W,oe)}for(var q=this.m.subn(1),Y=0;!q.isZero()&&q.andln(1)===0;)Y++,q.iushrn(1);m(!q.isZero());var ee=new _(1).toRed(this),me=ee.redNeg(),he=this.m.subn(1).iushrn(1),se=this.m.bitLength();for(se=new _(2*se*se).toRed(this);this.pow(se,he).cmp(me)!==0;)se.redIAdd(me);for(var ae=this.pow(se,q),ce=this.pow(W,q.addn(1).iushrn(1)),de=this.pow(W,q),ve=Y;de.cmp(ee)!==0;){for(var ye=de,_e=0;ye.cmp(ee)!==0;_e++)ye=ye.redSqr();m(_e=0;q--){for(var se=K.words[q],ae=he-1;ae>=0;ae--){var ce=se>>ae&1;Y!==oe[0]&&(Y=this.sqr(Y)),ce!==0||ee!==0?(ee<<=1,ee|=ce,(++me==4||q===0&&ae===0)&&(Y=this.mul(Y,oe[ee]),me=0,ee=0)):me=0}he=26}return Y},X.prototype.convertTo=function(W){var K=W.umod(this.m);return K===W?K.clone():K},X.prototype.convertFrom=function(W){var K=W.clone();return K.red=null,K},_.mont=function(W){return new te(W)},v(te,X),te.prototype.convertTo=function(W){return this.imod(W.ushln(this.shift))},te.prototype.convertFrom=function(W){var K=this.imod(W.mul(this.rinv));return K.red=null,K},te.prototype.imul=function(W,K){if(W.isZero()||K.isZero())return W.words[0]=0,W.length=1,W;var oe=W.imul(K),q=oe.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=oe.isub(q).iushrn(this.shift),ee=Y;return Y.cmp(this.m)>=0?ee=Y.isub(this.m):Y.cmpn(0)<0&&(ee=Y.iadd(this.m)),ee._forceRed(this)},te.prototype.mul=function(W,K){if(W.isZero()||K.isZero())return new _(0)._forceRed(this);var oe=W.mul(K),q=oe.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=oe.isub(q).iushrn(this.shift),ee=Y;return Y.cmp(this.m)>=0?ee=Y.isub(this.m):Y.cmpn(0)<0&&(ee=Y.iadd(this.m)),ee._forceRed(this)},te.prototype.invm=function(W){return this.imod(W._invmp(this.m).mul(this.r2))._forceRed(this)}})(y=a.nmd(y),this)},2692:function(y){y.exports=function(p){var a,u,h,m=p.length,v=0;for(a=0;a>>1;if(!(D<=0)){var k,I=h.mallocDouble(2*D*C),z=h.mallocInt32(C);if((C=S(R,D,I,z))>0){if(D===1&&E)m.init(C),k=m.sweepComplete(D,T,0,C,I,z,0,C,I,z);else{var $=h.mallocDouble(2*D*L),Q=h.mallocInt32(L);(L=S(M,D,$,Q))>0&&(m.init(C+L),k=D===1?m.sweepBipartite(D,T,0,C,I,z,0,L,$,Q):v(D,T,E,C,I,z,L,$,Q),h.free($),h.free(Q))}h.free(I),h.free(z)}return k}}}function x(R,M){u.push([R,M])}},7333:function(y,p){function a(u){return u?function(h,m,v,_,S,A,x,R,M,T,E){return S-_>M-R?function(C,L,D,k,I,z,$,Q,j,U,X){for(var te=2*C,W=k,K=te*k;WT-M?_?function(L,D,k,I,z,$,Q,j,U,X,te){for(var W=2*L,K=I,oe=W*I;K0;){var ve=(ce-=1)*z,ye=Q[ve],_e=Q[ve+1],Se=Q[ve+2],Te=Q[ve+3],Pe=Q[ve+4],Ie=Q[ve+5],ze=ce*$,De=j[ze],He=j[ze+1],Ve=1&Ie,$e=!!(16&Ie),Oe=Y,ke=ee,Le=he,We=se;if(Ve&&(Oe=he,ke=se,Le=Y,We=ee),!(2&Ie&&_e>=(Se=L(W,ye,_e,Se,Oe,ke,He))||4&Ie&&(_e=D(W,ye,_e,Se,Oe,ke,De))>=Se)){var Ue=Se-_e,Ze=Pe-Te;if($e){if(W*Ue*(Ue+Ze)=p0)&&!(p1>=hi)"),C=x("lo===p0"),L=x("lo>>1,C=2*v,L=E,D=x[C*E+_];M=Q?(L=$,D=Q):z>=U?(L=I,D=z):(L=j,D=U):Q>=U?(L=$,D=Q):U>=z?(L=I,D=z):(L=j,D=U);for(var X=C*(T-1),te=C*L,W=0;WS&&x[D+_]>C;--L,D-=M){for(var k=D,I=D+M,z=0;zE;++E,x+=A)if(v[x+T]===S)if(M===E)M+=1,R+=A;else{for(var C=0;A>C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"loE;++E,x+=A)if(v[x+T]C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"lo<=p0":function(a,u,h,m,v,_,S){for(var A=2*a,x=A*h,R=x,M=h,T=a+u,E=h;m>E;++E,x+=A)if(v[x+T]<=S)if(M===E)M+=1,R+=A;else{for(var C=0;A>C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"hi<=p0":function(a,u,h,m,v,_,S){for(var A=2*a,x=A*h,R=x,M=h,T=a+u,E=h;m>E;++E,x+=A)if(v[x+T]<=S)if(M===E)M+=1,R+=A;else{for(var C=0;A>C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"loC;++C,x+=A){var L=v[x+T],D=v[x+E];if(Lk;++k){var I=v[x+k];v[x+k]=v[R],v[R++]=I}var z=_[C];_[C]=_[M],_[M++]=z}}return M},"lo<=p0&&p0<=hi":function(a,u,h,m,v,_,S){for(var A=2*a,x=A*h,R=x,M=h,T=u,E=a+u,C=h;m>C;++C,x+=A){var L=v[x+T],D=v[x+E];if(L<=S&&S<=D)if(M===C)M+=1,R+=A;else{for(var k=0;A>k;++k){var I=v[x+k];v[x+k]=v[R],v[R++]=I}var z=_[C];_[C]=_[M],_[M++]=z}}return M},"!(lo>=p0)&&!(p1>=hi)":function(a,u,h,m,v,_,S,A){for(var x=2*a,R=x*h,M=R,T=h,E=u,C=a+u,L=h;m>L;++L,R+=x){var D=v[R+E],k=v[R+C];if(!(D>=S||A>=k))if(T===L)T+=1,M+=x;else{for(var I=0;x>I;++I){var z=v[R+I];v[R+I]=v[M],v[M++]=z}var $=_[L];_[L]=_[T],_[T++]=$}}return T}}},309:function(y){y.exports=function(x,R){R<=4*p?a(0,R-1,x):A(0,R-1,x)};var p=32;function a(x,R,M){for(var T=2*(x+1),E=x+1;E<=R;++E){for(var C=M[T++],L=M[T++],D=E,k=T-2;D-- >x;){var I=M[k-2],z=M[k-1];if(IM[R+1])}function S(x,R,M,T){var E=T[x*=2];return E>1,D=L-T,k=L+T,I=E,z=D,$=L,Q=k,j=C,U=x+1,X=R-1,te=0;_(I,z,M)&&(te=I,I=z,z=te),_(Q,j,M)&&(te=Q,Q=j,j=te),_(I,$,M)&&(te=I,I=$,$=te),_(z,$,M)&&(te=z,z=$,$=te),_(I,Q,M)&&(te=I,I=Q,Q=te),_($,Q,M)&&(te=$,$=Q,Q=te),_(z,j,M)&&(te=z,z=j,j=te),_(z,$,M)&&(te=z,z=$,$=te),_(Q,j,M)&&(te=Q,Q=j,j=te);for(var W=M[2*z],K=M[2*z+1],oe=M[2*Q],q=M[2*Q+1],Y=2*I,ee=2*$,me=2*j,he=2*E,se=2*L,ae=2*C,ce=0;ce<2;++ce){var de=M[Y+ce],ve=M[ee+ce],ye=M[me+ce];M[he+ce]=de,M[se+ce]=ve,M[ae+ce]=ye}h(D,x,M),h(k,R,M);for(var _e=U;_e<=X;++_e)if(S(_e,W,K,M))_e!==U&&u(_e,U,M),++U;else if(!S(_e,oe,q,M))for(;;){if(S(X,oe,q,M)){S(X,W,K,M)?(m(_e,U,X,M),++U,--X):(u(_e,X,M),--X);break}if(--X<_e)break}v(x,U-1,W,K,M),v(R,X+1,oe,q,M),U-2-x<=p?a(x,U-2,M):A(x,U-2,M),R-(X+2)<=p?a(X+2,R,M):A(X+2,R,M),X-U<=p?a(U,X,M):A(U,X,M)}},1390:function(y,p,a){y.exports={init:function(D){var k=h.nextPow2(D);S.length>>1;m(E,se);var ae=0,ce=0;for(Y=0;Y=v)C(x,R,ce--,de=de-v|0);else if(de>=0)C(S,A,ae--,de);else if(de<=-v){de=-de-v|0;for(var ve=0;ve>>1;m(E,se);var ae=0,ce=0,de=0;for(Y=0;Y>1==E[2*Y+3]>>1&&(ye=2,Y+=1),ve<0){for(var _e=-(ve>>1)-1,Se=0;Se>1)-1,ye===0?C(S,A,ae--,_e):ye===1?C(x,R,ce--,_e):ye===2&&C(M,T,de--,_e)}},scanBipartite:function(D,k,I,z,$,Q,j,U,X,te,W,K){var oe=0,q=2*D,Y=k,ee=k+D,me=1,he=1;z?he=v:me=v;for(var se=$;se>>1;m(E,ve);var ye=0;for(se=0;se=v?(Se=!z,ae-=v):(Se=!!z,ae-=1),Se)L(S,A,ye++,ae);else{var Te=K[ae],Pe=q*ae,Ie=W[Pe+k+1],ze=W[Pe+k+1+D];e:for(var De=0;De>>1;m(E,ae);var ce=0;for(ee=0;ee=v)S[ce++]=me-v;else{var ve=W[me-=1],ye=oe*me,_e=te[ye+k+1],Se=te[ye+k+1+D];e:for(var Te=0;Te=0;--Te)if(S[Te]===me){for(De=Te+1;De0;){for(var L=_.pop(),D=(T=-1,E=-1,R=A[x=_.pop()],1);D=0||(v.flip(x,L),h(m,v,_,T,x,E),h(m,v,_,x,E,T),h(m,v,_,E,L,T),h(m,v,_,L,T,E))}}},7098:function(y,p,a){var u,h=a(5070);function m(_,S,A,x,R,M,T){this.cells=_,this.neighbor=S,this.flags=x,this.constraint=A,this.active=R,this.next=M,this.boundary=T}function v(_,S){return _[0]-S[0]||_[1]-S[1]||_[2]-S[2]}y.exports=function(_,S,A){var x=function(j,U){for(var X=j.cells(),te=X.length,W=0;W0||T.length>0;){for(;M.length>0;){var k=M.pop();if(E[k]!==-R){E[k]=R,C[k];for(var I=0;I<3;++I){var z=D[3*k+I];z>=0&&E[z]===0&&(L[3*k+I]?T.push(z):(M.push(z),E[z]=R))}}}var $=T;T=M,M=$,T.length=0,R=-R}var Q=function(j,U,X){for(var te=0,W=0;W1&&h(C[Q[j-2]],C[Q[j-1]],L)>0;)T.push([Q[j-1],Q[j-2],D]),j-=1;Q.length=j,Q.push(D);var U=$.upperIds;for(j=U.length;j>1&&h(C[U[j-2]],C[U[j-1]],L)<0;)T.push([U[j-2],U[j-1],D]),j-=1;U.length=j,U.push(D)}}function x(T,E){var C;return(C=T.a[0]$[0]&&D.push(new v($,z,2,k),new v(z,$,1,k))}D.sort(_);for(var Q=D[0].a[0]-(1+Math.abs(D[0].a[0]))*Math.pow(2,-52),j=[new m([Q,1],[Q,0],-1,[],[])],U=[],X=(k=0,D.length);k=0}}(),m.removeTriangle=function(_,S,A){var x=this.stars;v(x[_],S,A),v(x[S],A,_),v(x[A],_,S)},m.addTriangle=function(_,S,A){var x=this.stars;x[_].push(S,A),x[S].push(A,_),x[A].push(_,S)},m.opposite=function(_,S){for(var A=this.stars[S],x=1,R=A.length;xz[2]?1:0)}function D(I,z,$){if(I.length!==0){if(z)for(var Q=0;Q=0;--ee){var _e=K[me=(Ve=q[ee])[0]],Se=_e[0],Te=_e[1],Pe=W[Se],Ie=W[Te];if((Pe[0]-Ie[0]||Pe[1]-Ie[1])<0){var ze=Se;Se=Te,Te=ze}_e[0]=Se;var De,He=_e[1]=Ve[1];for(Y&&(De=_e[2]);ee>0&&q[ee-1][0]===me;){var Ve,$e=(Ve=q[--ee])[1];Y?K.push([He,$e,De]):K.push([He,$e]),He=$e}Y?K.push([He,Te,De]):K.push([He,Te])}return he}(I,z,j,U,$),te=E(I,X);return D(z,te,$),!!te||j.length>0||U.length>0}},5528:function(y,p,a){y.exports=function(R,M,T,E){var C=_(M,R),L=_(E,T),D=x(C,L);if(v(D)===0)return null;var k=x(L,_(R,T)),I=h(k,D),z=A(C,I);return S(R,z)};var u=a(3962),h=a(9189),m=a(4354),v=a(4951),_=a(6695),S=a(7584),A=a(4469);function x(R,M){return m(u(R[0],M[1]),u(R[1],M[0]))}},5692:function(y){y.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],"rainbow-soft":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],"freesurface-blue":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],"freesurface-red":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],"velocity-blue":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],"velocity-green":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},9156:function(y,p,a){var u=a(5692),h=a(3578);function m(S){return[S[0]/255,S[1]/255,S[2]/255,S[3]]}function v(S){for(var A,x="#",R=0;R<3;++R)x+=("00"+(A=(A=S[R]).toString(16))).substr(A.length);return x}function _(S){return"rgba("+S.join(",")+")"}y.exports=function(S){var A,x,R,M,T,E,C,L,D,k;if(S||(S={}),L=(S.nshades||72)-1,C=S.format||"hex",(E=S.colormap)||(E="jet"),typeof E=="string"){if(E=E.toLowerCase(),!u[E])throw Error(E+" not a supported colorscale");T=u[E]}else{if(!Array.isArray(E))throw Error("unsupported colormap option",E);T=E.slice()}if(T.length>L+1)throw new Error(E+" map requires nshades to be at least size "+T.length);D=Array.isArray(S.alpha)?S.alpha.length!==2?[1,1]:S.alpha.slice():typeof S.alpha=="number"?[S.alpha,S.alpha]:[1,1],A=T.map(function(j){return Math.round(j.index*L)}),D[0]=Math.min(Math.max(D[0],0),1),D[1]=Math.min(Math.max(D[1],0),1);var I=T.map(function(j,U){var X=T[U].index,te=T[U].rgb.slice();return te.length===4&&te[3]>=0&&te[3]<=1||(te[3]=D[0]+(D[1]-D[0])*X),te}),z=[];for(k=0;k0||S(A,x,M)?-1:1:E===0?C>0||S(A,x,R)?1:-1:h(C-E)}var D=u(A,x,R);return D>0?T>0&&u(A,x,M)>0?1:-1:D<0?T>0||u(A,x,M)>0?1:-1:u(A,x,M)>0||S(A,x,R)?1:-1};var u=a(417),h=a(7538),m=a(87),v=a(2019),_=a(9662);function S(A,x,R){var M=m(A[0],-x[0]),T=m(A[1],-x[1]),E=m(R[0],-x[0]),C=m(R[1],-x[1]),L=_(v(M,E),v(T,C));return L[L.length-1]>=0}},7538:function(y){y.exports=function(p){return p<0?-1:p>0?1:0}},9209:function(y){y.exports=function(u,h){var m=u.length,v=u.length-h.length;if(v)return v;switch(m){case 0:return 0;case 1:return u[0]-h[0];case 2:return u[0]+u[1]-h[0]-h[1]||p(u[0],u[1])-p(h[0],h[1]);case 3:var _=u[0]+u[1],S=h[0]+h[1];if(v=_+u[2]-(S+h[2]))return v;var A=p(u[0],u[1]),x=p(h[0],h[1]);return p(A,u[2])-p(x,h[2])||p(A+u[2],_)-p(x+h[2],S);case 4:var R=u[0],M=u[1],T=u[2],E=u[3],C=h[0],L=h[1],D=h[2],k=h[3];return R+M+T+E-(C+L+D+k)||p(R,M,T,E)-p(C,L,D,k,C)||p(R+M,R+T,R+E,M+T,M+E,T+E)-p(C+L,C+D,C+k,L+D,L+k,D+k)||p(R+M+T,R+M+E,R+T+E,M+T+E)-p(C+L+D,C+L+k,C+D+k,L+D+k);default:for(var I=u.slice().sort(a),z=h.slice().sort(a),$=0;$p[u][0]&&(u=h);return au?[[u],[a]]:[[a]]}},8722:function(y,p,a){y.exports=function(h){var m=u(h),v=m.length;if(v<=2)return[];for(var _=new Array(v),S=m[v-1],A=0;A=R[k]&&(D+=1);C[L]=D}}return x}(u(S,!0),_)}};var u=a(2183),h=a(2153)},9680:function(y){y.exports=function(p,a,u,h,m,v){var _=m-1,S=m*m,A=_*_,x=(1+2*m)*A,R=m*A,M=S*(3-2*m),T=S*_;if(p.length){v||(v=new Array(p.length));for(var E=p.length-1;E>=0;--E)v[E]=x*p[E]+R*a[E]+M*u[E]+T*h[E];return v}return x*p+R*a+M*u+T*h},y.exports.derivative=function(p,a,u,h,m,v){var _=6*m*m-6*m,S=3*m*m-4*m+1,A=-6*m*m+6*m,x=3*m*m-2*m;if(p.length){v||(v=new Array(p.length));for(var R=p.length-1;R>=0;--R)v[R]=_*p[R]+S*a[R]+A*u[R]+x*h[R];return v}return _*p+S*a+A*u[R]+x*h}},4419:function(y,p,a){var u=a(2183),h=a(1215);function m(_,S){this.point=_,this.index=S}function v(_,S){for(var A=_.point,x=S.point,R=A.length,M=0;M=2)return!1;X[W]=K}return!0}):U.filter(function(X){for(var te=0;te<=x;++te){var W=z[X[te]];if(W<0)return!1;X[te]=W}return!0}),1&x)for(T=0;T>>31},y.exports.exponent=function(m){return(y.exports.hi(m)<<1>>>21)-1023},y.exports.fraction=function(m){var v=y.exports.lo(m),_=y.exports.hi(m),S=1048575&_;return 2146435072&_&&(S+=1048576),[v,S]},y.exports.denormalized=function(m){return!(2146435072&y.exports.hi(m))}},3094:function(y){function p(a,u,h){var m=0|a[h];if(m<=0)return[];var v,_=new Array(m);if(h===a.length-1)for(v=0;v0)return function(h,m){var v,_;for(v=new Array(h),_=0;_=R-1){k=E.length-1;var z=A-x[R-1];for(I=0;I=R-1)for(var D=E.length-1,k=(x[R-1],0);k=0;--R)if(A[--x])return!1;return!0},_.jump=function(A){var x=this.lastT(),R=this.dimension;if(!(A0;--I)M.push(m(L[I-1],D[I-1],arguments[I])),T.push(0)}},_.push=function(A){var x=this.lastT(),R=this.dimension;if(!(A1e-6?1/C:0;this._time.push(A);for(var z=R;z>0;--z){var $=m(D[z-1],k[z-1],arguments[z]);M.push($),T.push(($-M[E++])*I)}}},_.set=function(A){var x=this.dimension;if(!(A0;--L)R.push(m(E[L-1],C[L-1],arguments[L])),M.push(0)}},_.move=function(A){var x=this.lastT(),R=this.dimension;if(!(A<=x||arguments.length!==R+1)){var M=this._state,T=this._velocity,E=M.length-this.dimension,C=this.bounds,L=C[0],D=C[1],k=A-x,I=k>1e-6?1/k:0;this._time.push(A);for(var z=R;z>0;--z){var $=arguments[z];M.push(m(L[z-1],D[z-1],M[E++]+$)),T.push($*I)}}},_.idle=function(A){var x=this.lastT();if(!(A=0;--I)M.push(m(L[I],D[I],M[E]+k*T[E])),T.push(0),E+=1}}},7080:function(y){function p(E,C,L,D,k,I){this._color=E,this.key=C,this.value=L,this.left=D,this.right=k,this._count=I}function a(E){return new p(E._color,E.key,E.value,E.left,E.right,E._count)}function u(E,C){return new p(E,C.key,C.value,C.left,C.right,C._count)}function h(E){E._count=1+(E.left?E.left._count:0)+(E.right?E.right._count:0)}function m(E,C){this._compare=E,this.root=C}y.exports=function(E){return new m(E||T,null)};var v=m.prototype;function _(E,C){var L;return C.left&&(L=_(E,C.left))?L:(L=E(C.key,C.value))||(C.right?_(E,C.right):void 0)}function S(E,C,L,D){if(C(E,D.key)<=0){var k;if(D.left&&(k=S(E,C,L,D.left))||(k=L(D.key,D.value)))return k}if(D.right)return S(E,C,L,D.right)}function A(E,C,L,D,k){var I,z=L(E,k.key),$=L(C,k.key);if(z<=0&&(k.left&&(I=A(E,C,L,D,k.left))||$>0&&(I=D(k.key,k.value))))return I;if($>0&&k.right)return A(E,C,L,D,k.right)}function x(E,C){this.tree=E,this._stack=C}Object.defineProperty(v,"keys",{get:function(){var E=[];return this.forEach(function(C,L){E.push(C)}),E}}),Object.defineProperty(v,"values",{get:function(){var E=[];return this.forEach(function(C,L){E.push(L)}),E}}),Object.defineProperty(v,"length",{get:function(){return this.root?this.root._count:0}}),v.insert=function(E,C){for(var L=this._compare,D=this.root,k=[],I=[];D;){var z=L(E,D.key);k.push(D),I.push(z),D=z<=0?D.left:D.right}k.push(new p(0,E,C,null,null,1));for(var $=k.length-2;$>=0;--$)D=k[$],I[$]<=0?k[$]=new p(D._color,D.key,D.value,k[$+1],D.right,D._count+1):k[$]=new p(D._color,D.key,D.value,D.left,k[$+1],D._count+1);for($=k.length-1;$>1;--$){var Q=k[$-1];if(D=k[$],Q._color===1||D._color===1)break;var j=k[$-2];if(j.left===Q)if(Q.left===D){if(!(U=j.right)||U._color!==0){j._color=0,j.left=Q.right,Q._color=1,Q.right=j,k[$-2]=Q,k[$-1]=D,h(j),h(Q),$>=3&&((X=k[$-3]).left===j?X.left=Q:X.right=Q);break}Q._color=1,j.right=u(1,U),j._color=0,$-=1}else{if(!(U=j.right)||U._color!==0){Q.right=D.left,j._color=0,j.left=D.right,D._color=1,D.left=Q,D.right=j,k[$-2]=D,k[$-1]=Q,h(j),h(Q),h(D),$>=3&&((X=k[$-3]).left===j?X.left=D:X.right=D);break}Q._color=1,j.right=u(1,U),j._color=0,$-=1}else if(Q.right===D){if(!(U=j.left)||U._color!==0){j._color=0,j.right=Q.left,Q._color=1,Q.left=j,k[$-2]=Q,k[$-1]=D,h(j),h(Q),$>=3&&((X=k[$-3]).right===j?X.right=Q:X.left=Q);break}Q._color=1,j.left=u(1,U),j._color=0,$-=1}else{var U;if(!(U=j.left)||U._color!==0){var X;Q.left=D.right,j._color=0,j.right=D.left,D._color=1,D.right=Q,D.left=j,k[$-2]=D,k[$-1]=Q,h(j),h(Q),h(D),$>=3&&((X=k[$-3]).right===j?X.right=D:X.left=D);break}Q._color=1,j.left=u(1,U),j._color=0,$-=1}}return k[0]._color=1,new m(L,k[0])},v.forEach=function(E,C,L){if(this.root)switch(arguments.length){case 1:return _(E,this.root);case 2:return S(C,this._compare,E,this.root);case 3:return this._compare(C,L)>=0?void 0:A(C,L,this._compare,E,this.root)}},Object.defineProperty(v,"begin",{get:function(){for(var E=[],C=this.root;C;)E.push(C),C=C.left;return new x(this,E)}}),Object.defineProperty(v,"end",{get:function(){for(var E=[],C=this.root;C;)E.push(C),C=C.right;return new x(this,E)}}),v.at=function(E){if(E<0)return new x(this,[]);for(var C=this.root,L=[];;){if(L.push(C),C.left){if(E=C.right._count)break;C=C.right}return new x(this,[])},v.ge=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I<=0&&(k=D.length),L=I<=0?L.left:L.right}return D.length=k,new x(this,D)},v.gt=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I<0&&(k=D.length),L=I<0?L.left:L.right}return D.length=k,new x(this,D)},v.lt=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I>0&&(k=D.length),L=I<=0?L.left:L.right}return D.length=k,new x(this,D)},v.le=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I>=0&&(k=D.length),L=I<0?L.left:L.right}return D.length=k,new x(this,D)},v.find=function(E){for(var C=this._compare,L=this.root,D=[];L;){var k=C(E,L.key);if(D.push(L),k===0)return new x(this,D);L=k<=0?L.left:L.right}return new x(this,[])},v.remove=function(E){var C=this.find(E);return C?C.remove():this},v.get=function(E){for(var C=this._compare,L=this.root;L;){var D=C(E,L.key);if(D===0)return L.value;L=D<=0?L.left:L.right}};var R=x.prototype;function M(E,C){E.key=C.key,E.value=C.value,E.left=C.left,E.right=C.right,E._color=C._color,E._count=C._count}function T(E,C){return EC?1:0}Object.defineProperty(R,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(R,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),R.clone=function(){return new x(this.tree,this._stack.slice())},R.remove=function(){var E=this._stack;if(E.length===0)return this.tree;var C=new Array(E.length),L=E[E.length-1];C[C.length-1]=new p(L._color,L.key,L.value,L.left,L.right,L._count);for(var D=E.length-2;D>=0;--D)(L=E[D]).left===E[D+1]?C[D]=new p(L._color,L.key,L.value,C[D+1],L.right,L._count):C[D]=new p(L._color,L.key,L.value,L.left,C[D+1],L._count);if((L=C[C.length-1]).left&&L.right){var k=C.length;for(L=L.left;L.right;)C.push(L),L=L.right;var I=C[k-1];for(C.push(new p(L._color,I.key,I.value,L.left,L.right,L._count)),C[k-1].key=L.key,C[k-1].value=L.value,D=C.length-2;D>=k;--D)L=C[D],C[D]=new p(L._color,L.key,L.value,L.left,C[D+1],L._count);C[k-1].left=C[k]}if((L=C[C.length-1])._color===0){var z=C[C.length-2];for(z.left===L?z.left=null:z.right===L&&(z.right=null),C.pop(),D=0;D=0;--W){if(j=Q[W],W===0)return void(j._color=1);if((U=Q[W-1]).left===j){if((X=U.right).right&&X.right._color===0)return te=(X=U.right=a(X)).right=a(X.right),U.right=X.left,X.left=U,X.right=te,X._color=U._color,j._color=1,U._color=1,te._color=1,h(U),h(X),W>1&&((K=Q[W-2]).left===U?K.left=X:K.right=X),void(Q[W-1]=X);if(X.left&&X.left._color===0)return te=(X=U.right=a(X)).left=a(X.left),U.right=te.left,X.left=te.right,te.left=U,te.right=X,te._color=U._color,U._color=1,X._color=1,j._color=1,h(U),h(X),h(te),W>1&&((K=Q[W-2]).left===U?K.left=te:K.right=te),void(Q[W-1]=te);if(X._color===1){if(U._color===0)return U._color=1,void(U.right=u(0,X));U.right=u(0,X);continue}X=a(X),U.right=X.left,X.left=U,X._color=U._color,U._color=0,h(U),h(X),W>1&&((K=Q[W-2]).left===U?K.left=X:K.right=X),Q[W-1]=X,Q[W]=U,W+11&&((K=Q[W-2]).right===U?K.right=X:K.left=X),void(Q[W-1]=X);if(X.right&&X.right._color===0)return te=(X=U.left=a(X)).right=a(X.right),U.left=te.right,X.right=te.left,te.right=U,te.left=X,te._color=U._color,U._color=1,X._color=1,j._color=1,h(U),h(X),h(te),W>1&&((K=Q[W-2]).right===U?K.right=te:K.left=te),void(Q[W-1]=te);if(X._color===1){if(U._color===0)return U._color=1,void(U.left=u(0,X));U.left=u(0,X);continue}var K;X=a(X),U.left=X.right,X.right=U,X._color=U._color,U._color=0,h(U),h(X),W>1&&((K=Q[W-2]).right===U?K.right=X:K.left=X),Q[W-1]=X,Q[W]=U,W+10)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(R,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(R,"index",{get:function(){var E=0,C=this._stack;if(C.length===0){var L=this.tree.root;return L?L._count:0}C[C.length-1].left&&(E=C[C.length-1].left._count);for(var D=C.length-2;D>=0;--D)C[D+1]===C[D].right&&(++E,C[D].left&&(E+=C[D].left._count));return E},enumerable:!0}),R.next=function(){var E=this._stack;if(E.length!==0){var C=E[E.length-1];if(C.right)for(C=C.right;C;)E.push(C),C=C.left;else for(E.pop();E.length>0&&E[E.length-1].right===C;)C=E[E.length-1],E.pop()}},Object.defineProperty(R,"hasNext",{get:function(){var E=this._stack;if(E.length===0)return!1;if(E[E.length-1].right)return!0;for(var C=E.length-1;C>0;--C)if(E[C-1].left===E[C])return!0;return!1}}),R.update=function(E){var C=this._stack;if(C.length===0)throw new Error("Can't update empty node!");var L=new Array(C.length),D=C[C.length-1];L[L.length-1]=new p(D._color,D.key,E,D.left,D.right,D._count);for(var k=C.length-2;k>=0;--k)(D=C[k]).left===C[k+1]?L[k]=new p(D._color,D.key,D.value,L[k+1],D.right,D._count):L[k]=new p(D._color,D.key,D.value,D.left,L[k+1],D._count);return new m(this.tree._compare,L[0])},R.prev=function(){var E=this._stack;if(E.length!==0){var C=E[E.length-1];if(C.left)for(C=C.left;C;)E.push(C),C=C.right;else for(E.pop();E.length>0&&E[E.length-1].left===C;)C=E[E.length-1],E.pop()}},Object.defineProperty(R,"hasPrev",{get:function(){var E=this._stack;if(E.length===0)return!1;if(E[E.length-1].left)return!0;for(var C=E.length-1;C>0;--C)if(E[C-1].right===E[C])return!0;return!1}})},7453:function(y,p,a){y.exports=function(z,$){var Q=new x(z);return Q.update($),Q};var u=a(9557),h=a(1681),m=a(1011),v=a(2864),_=a(8468),S=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function A(z,$){return z[0]=$[0],z[1]=$[1],z[2]=$[2],z}function x(z){this.gl=z,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=m(z)}var R=x.prototype;function M(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}R.update=function(z){function $(me,he,se){if(se in z){var ae,ce=z[se],de=this[se];(me?Array.isArray(ce)&&Array.isArray(ce[0]):Array.isArray(ce))?this[se]=ae=[he(ce[0]),he(ce[1]),he(ce[2])]:this[se]=ae=[he(ce),he(ce),he(ce)];for(var ve=0;ve<3;++ve)if(ae[ve]!==de[ve])return!0}return!1}z=z||{};var Q,j=$.bind(this,!1,Number),U=$.bind(this,!1,Boolean),X=$.bind(this,!1,String),te=$.bind(this,!0,function(me){if(Array.isArray(me)){if(me.length===3)return[+me[0],+me[1],+me[2],1];if(me.length===4)return[+me[0],+me[1],+me[2],+me[3]]}return[0,0,0,1]}),W=!1,K=!1;if("bounds"in z)for(var oe=z.bounds,q=0;q<2;++q)for(var Y=0;Y<3;++Y)oe[q][Y]!==this.bounds[q][Y]&&(K=!0),this.bounds[q][Y]=oe[q][Y];if("ticks"in z)for(Q=z.ticks,W=!0,this.autoTicks=!1,q=0;q<3;++q)this.tickSpacing[q]=0;else j("tickSpacing")&&(this.autoTicks=!0,K=!0);if(this._firstInit&&("ticks"in z||"tickSpacing"in z||(this.autoTicks=!0),K=!0,W=!0,this._firstInit=!1),K&&this.autoTicks&&(Q=_.create(this.bounds,this.tickSpacing),W=!0),W){for(q=0;q<3;++q)Q[q].sort(function(me,he){return me.x-he.x});_.equal(Q,this.ticks)?W=!1:this.ticks=Q}U("tickEnable"),X("tickFont")&&(W=!0),j("tickSize"),j("tickAngle"),j("tickPad"),te("tickColor");var ee=X("labels");X("labelFont")&&(ee=!0),U("labelEnable"),j("labelSize"),j("labelPad"),te("labelColor"),U("lineEnable"),U("lineMirror"),j("lineWidth"),te("lineColor"),U("lineTickEnable"),U("lineTickMirror"),j("lineTickLength"),j("lineTickWidth"),te("lineTickColor"),U("gridEnable"),j("gridWidth"),te("gridColor"),U("zeroEnable"),te("zeroLineColor"),j("zeroLineWidth"),U("backgroundEnable"),te("backgroundColor"),this._text?this._text&&(ee||W)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=u(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&W&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=h(this.gl,this.bounds,this.ticks))};var T=[new M,new M,new M];function E(z,$,Q,j,U){for(var X=z.primalOffset,te=z.primalMinor,W=z.mirrorOffset,K=z.mirrorMinor,oe=j[$],q=0;q<3;++q)if($!==q){var Y=X,ee=W,me=te,he=K;oe&1<0?(me[q]=-1,he[q]=0):(me[q]=0,he[q]=1)}}var C=[0,0,0],L={model:S,view:S,projection:S,_ortho:!1};R.isOpaque=function(){return!0},R.isTransparent=function(){return!1},R.drawTransparent=function(z){};var D=[0,0,0],k=[0,0,0],I=[0,0,0];R.draw=function(z){z=z||L;for(var $=this.gl,Q=z.model||S,j=z.view||S,U=z.projection||S,X=this.bounds,te=z._ortho||!1,W=v(Q,j,U,X,te),K=W.cubeEdges,oe=W.axis,q=j[12],Y=j[13],ee=j[14],me=j[15],he=(te?2:1)*this.pixelRatio*(U[3]*q+U[7]*Y+U[11]*ee+U[15]*me)/$.drawingBufferHeight,se=0;se<3;++se)this.lastCubeProps.cubeEdges[se]=K[se],this.lastCubeProps.axis[se]=oe[se];var ae=T;for(se=0;se<3;++se)E(T[se],se,this.bounds,K,oe);$=this.gl;var ce,de,ve,ye=C;for(se=0;se<3;++se)this.backgroundEnable[se]?ye[se]=oe[se]:ye[se]=0;for(this._background.draw(Q,j,U,X,ye,this.backgroundColor),this._lines.bind(Q,j,U,this),se=0;se<3;++se){var _e=[0,0,0];oe[se]>0?_e[se]=X[1][se]:_e[se]=X[0][se];for(var Se=0;Se<2;++Se){var Te=(se+1+Se)%3,Pe=(se+1+(1^Se))%3;this.gridEnable[Te]&&this._lines.drawGrid(Te,Pe,this.bounds,_e,this.gridColor[Te],this.gridWidth[Te]*this.pixelRatio)}for(Se=0;Se<2;++Se)Te=(se+1+Se)%3,Pe=(se+1+(1^Se))%3,this.zeroEnable[Pe]&&Math.min(X[0][Pe],X[1][Pe])<=0&&Math.max(X[0][Pe],X[1][Pe])>=0&&this._lines.drawZero(Te,Pe,this.bounds,_e,this.zeroLineColor[Pe],this.zeroLineWidth[Pe]*this.pixelRatio)}for(se=0;se<3;++se){this.lineEnable[se]&&this._lines.drawAxisLine(se,this.bounds,ae[se].primalOffset,this.lineColor[se],this.lineWidth[se]*this.pixelRatio),this.lineMirror[se]&&this._lines.drawAxisLine(se,this.bounds,ae[se].mirrorOffset,this.lineColor[se],this.lineWidth[se]*this.pixelRatio);var Ie=A(D,ae[se].primalMinor),ze=A(k,ae[se].mirrorMinor),De=this.lineTickLength;for(Se=0;Se<3;++Se){var He=he/Q[5*Se];Ie[Se]*=De[Se]*He,ze[Se]*=De[Se]*He}this.lineTickEnable[se]&&this._lines.drawAxisTicks(se,ae[se].primalOffset,Ie,this.lineTickColor[se],this.lineTickWidth[se]*this.pixelRatio),this.lineTickMirror[se]&&this._lines.drawAxisTicks(se,ae[se].mirrorOffset,ze,this.lineTickColor[se],this.lineTickWidth[se]*this.pixelRatio)}function Ve(Ue){(ve=[0,0,0])[Ue]=1}function $e(Ue,Ze,Xe){var tt=(Ue+1)%3,Ee=(Ue+2)%3,Ne=Ze[tt],je=Ze[Ee],nt=Xe[tt],ot=Xe[Ee];Ne>0&&ot>0||Ne>0&&ot<0||Ne<0&&ot>0||Ne<0&&ot<0?Ve(tt):(je>0&&nt>0||je>0&&nt<0||je<0&&nt>0||je<0&&nt<0)&&Ve(Ee)}for(this._lines.unbind(),this._text.bind(Q,j,U,this.pixelRatio),se=0;se<3;++se){var Oe=ae[se].primalMinor,ke=ae[se].mirrorMinor,Le=A(I,ae[se].primalOffset);for(Se=0;Se<3;++Se)this.lineTickEnable[se]&&(Le[Se]+=he*Oe[Se]*Math.max(this.lineTickLength[Se],0)/Q[5*Se]);var We=[0,0,0];if(We[se]=1,this.tickEnable[se]){for(this.tickAngle[se]===-3600?(this.tickAngle[se]=0,this.tickAlign[se]="auto"):this.tickAlign[se]=-1,de=1,(ce=[this.tickAlign[se],.5,de])[0]==="auto"?ce[0]=0:ce[0]=parseInt(""+ce[0]),ve=[0,0,0],$e(se,Oe,ke),Se=0;Se<3;++Se)Le[Se]+=he*Oe[Se]*this.tickPad[Se]/Q[5*Se];this._text.drawTicks(se,this.tickSize[se],this.tickAngle[se],Le,this.tickColor[se],We,ve,ce)}if(this.labelEnable[se]){for(de=0,ve=[0,0,0],this.labels[se].length>4&&(Ve(se),de=1),(ce=[this.labelAlign[se],.5,de])[0]==="auto"?ce[0]=0:ce[0]=parseInt(""+ce[0]),Se=0;Se<3;++Se)Le[Se]+=he*Oe[Se]*this.labelPad[Se]/Q[5*Se];Le[se]+=.5*(X[0][se]+X[1][se]),this._text.drawLabel(se,this.labelSize[se],this.labelAngle[se],Le,this.labelColor[se],[0,0,0],ve,ce)}}this._text.unbind()},R.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},1011:function(y,p,a){y.exports=function(S){for(var A=[],x=[],R=0,M=0;M<3;++M)for(var T=(M+1)%3,E=(M+2)%3,C=[0,0,0],L=[0,0,0],D=-1;D<=1;D+=2){x.push(R,R+2,R+1,R+1,R+2,R+3),C[M]=D,L[M]=D;for(var k=-1;k<=1;k+=2){C[T]=k;for(var I=-1;I<=1;I+=2)C[E]=I,A.push(C[0],C[1],C[2],L[0],L[1],L[2]),R+=1}var z=T;T=E,E=z}var $=u(S,new Float32Array(A)),Q=u(S,new Uint16Array(x),S.ELEMENT_ARRAY_BUFFER),j=h(S,[{buffer:$,type:S.FLOAT,size:3,offset:0,stride:24},{buffer:$,type:S.FLOAT,size:3,offset:12,stride:24}],Q),U=m(S);return U.attributes.position.location=0,U.attributes.normal.location=1,new v(S,$,j,U)};var u=a(5827),h=a(2944),m=a(1943).bg;function v(S,A,x,R){this.gl=S,this.buffer=A,this.vao=x,this.shader=R}var _=v.prototype;_.draw=function(S,A,x,R,M,T){for(var E=!1,C=0;C<3;++C)E=E||M[C];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:S,view:A,projection:x,bounds:R,enable:M,colors:T},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},_.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},2864:function(y,p,a){y.exports=function(k,I,z,$,Q){h(_,I,k),h(_,z,_);for(var j=0,U=0;U<2;++U){x[2]=$[U][2];for(var X=0;X<2;++X){x[1]=$[X][1];for(var te=0;te<2;++te)x[0]=$[te][0],M(S[j],x,_),j+=1}}var W=-1;for(U=0;U<8;++U){for(var K=S[U][3],oe=0;oe<3;++oe)A[U][oe]=S[U][oe]/K;Q&&(A[U][2]*=-1),K<0&&(W<0||A[U][2]me&&(W|=1<me&&(W|=1<A[U][1])&&(_e=U);var Se=-1;for(U=0;U<3;++U)(Pe=_e^1<A[Te][0]&&(Te=Pe))}var Ie=C;Ie[0]=Ie[1]=Ie[2]=0,Ie[u.log2(Se^_e)]=_e&Se,Ie[u.log2(_e^Te)]=_e&Te;var ze=7^Te;ze===W||ze===ye?(ze=7^Se,Ie[u.log2(Te^ze)]=ze&Te):Ie[u.log2(Se^ze)]=ze&Se;var De=L,He=W;for(q=0;q<3;++q)De[q]=He&1<0?M=M.ushln(E):E<0&&(T=T.ushln(-E)),_(M,T)}},234:function(y,p,a){var u=a(3218);y.exports=function(h){return Array.isArray(h)&&h.length===2&&u(h[0])&&u(h[1])}},4275:function(y,p,a){var u=a(1928);y.exports=function(h){return h.cmp(new u(0))}},9958:function(y,p,a){var u=a(4275);y.exports=function(h){var m=h.length,v=h.words,_=0;if(m===1)_=v[0];else if(m===2)_=v[0]+67108864*v[1];else for(var S=0;S20?52:_+32}},3218:function(y,p,a){a(1928),y.exports=function(u){return u&&typeof u=="object"&&!!u.words}},5514:function(y,p,a){var u=a(1928),h=a(8362);y.exports=function(m){var v=h.exponent(m);return v<52?new u(m):new u(m*Math.pow(2,52-v)).ushln(v-52)}},8524:function(y,p,a){var u=a(5514),h=a(4275);y.exports=function(m,v){var _=h(m),S=h(v);if(_===0)return[u(0),u(1)];if(S===0)return[u(0),u(0)];S<0&&(m=m.neg(),v=v.neg());var A=m.gcd(v);return A.cmpn(1)?[m.div(A),v.div(A)]:[m,v]}},2813:function(y,p,a){var u=a(1928);y.exports=function(h){return new u(h)}},3962:function(y,p,a){var u=a(8524);y.exports=function(h,m){return u(h[0].mul(m[0]),h[1].mul(m[1]))}},4951:function(y,p,a){var u=a(4275);y.exports=function(h){return u(h[0])*u(h[1])}},4354:function(y,p,a){var u=a(8524);y.exports=function(h,m){return u(h[0].mul(m[1]).sub(h[1].mul(m[0])),h[1].mul(m[1]))}},7999:function(y,p,a){var u=a(9958),h=a(1112);y.exports=function(m){var v=m[0],_=m[1];if(v.cmpn(0)===0)return 0;var S=v.abs().divmod(_.abs()),A=S.div,x=u(A),R=S.mod,M=v.negative!==_.negative?-1:1;if(R.cmpn(0)===0)return M*x;if(x){var T=h(x)+4;return M*(x+(C=u(R.ushln(T).divRound(_)))*Math.pow(2,-T))}var E=_.bitLength()-R.bitLength()+53,C=u(R.ushln(E).divRound(_));return E<1023?M*C*Math.pow(2,-E):M*(C*=Math.pow(2,-1023))*Math.pow(2,1023-E)}},5070:function(y){function p(_,S,A,x,R){for(var M=R+1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)>=0?(M=T,R=T-1):x=T+1}return M}function a(_,S,A,x,R){for(var M=R+1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)>0?(M=T,R=T-1):x=T+1}return M}function u(_,S,A,x,R){for(var M=x-1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)<0?(M=T,x=T+1):R=T-1}return M}function h(_,S,A,x,R){for(var M=x-1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)<=0?(M=T,x=T+1):R=T-1}return M}function m(_,S,A,x,R){for(;x<=R;){var M=x+R>>>1,T=_[M],E=A!==void 0?A(T,S):T-S;if(E===0)return M;E<=0?x=M+1:R=M-1}return-1}function v(_,S,A,x,R,M){return typeof A=="function"?M(_,S,A,x===void 0?0:0|x,R===void 0?_.length-1:0|R):M(_,S,void 0,A===void 0?0:0|A,x===void 0?_.length-1:0|x)}y.exports={ge:function(_,S,A,x,R){return v(_,S,A,x,R,p)},gt:function(_,S,A,x,R){return v(_,S,A,x,R,a)},lt:function(_,S,A,x,R){return v(_,S,A,x,R,u)},le:function(_,S,A,x,R){return v(_,S,A,x,R,h)},eq:function(_,S,A,x,R){return v(_,S,A,x,R,m)}}},2288:function(y,p){function a(h){var m=32;return(h&=-h)&&m--,65535&h&&(m-=16),16711935&h&&(m-=8),252645135&h&&(m-=4),858993459&h&&(m-=2),1431655765&h&&(m-=1),m}p.INT_BITS=32,p.INT_MAX=2147483647,p.INT_MIN=-2147483648,p.sign=function(h){return(h>0)-(h<0)},p.abs=function(h){var m=h>>31;return(h^m)-m},p.min=function(h,m){return m^(h^m)&-(h65535)<<4,m|=v=((h>>>=m)>255)<<3,m|=v=((h>>>=v)>15)<<2,(m|=v=((h>>>=v)>3)<<1)|(h>>>=v)>>1},p.log10=function(h){return h>=1e9?9:h>=1e8?8:h>=1e7?7:h>=1e6?6:h>=1e5?5:h>=1e4?4:h>=1e3?3:h>=100?2:h>=10?1:0},p.popCount=function(h){return 16843009*((h=(858993459&(h-=h>>>1&1431655765))+(h>>>2&858993459))+(h>>>4)&252645135)>>>24},p.countTrailingZeros=a,p.nextPow2=function(h){return h+=h===0,--h,h|=h>>>1,h|=h>>>2,h|=h>>>4,1+((h|=h>>>8)|h>>>16)},p.prevPow2=function(h){return h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,(h|=h>>>16)-(h>>>1)},p.parity=function(h){return h^=h>>>16,h^=h>>>8,h^=h>>>4,27030>>>(h&=15)&1};var u=new Array(256);(function(h){for(var m=0;m<256;++m){var v=m,_=m,S=7;for(v>>>=1;v;v>>>=1)_<<=1,_|=1&v,--S;h[m]=_<>>8&255]<<16|u[h>>>16&255]<<8|u[h>>>24&255]},p.interleave2=function(h,m){return(h=1431655765&((h=858993459&((h=252645135&((h=16711935&((h&=65535)|h<<8))|h<<4))|h<<2))|h<<1))|(m=1431655765&((m=858993459&((m=252645135&((m=16711935&((m&=65535)|m<<8))|m<<4))|m<<2))|m<<1))<<1},p.deinterleave2=function(h,m){return(h=65535&((h=16711935&((h=252645135&((h=858993459&((h=h>>>m&1431655765)|h>>>1))|h>>>2))|h>>>4))|h>>>16))<<16>>16},p.interleave3=function(h,m,v){return h=1227133513&((h=3272356035&((h=251719695&((h=4278190335&((h&=1023)|h<<16))|h<<8))|h<<4))|h<<2),(h|=(m=1227133513&((m=3272356035&((m=251719695&((m=4278190335&((m&=1023)|m<<16))|m<<8))|m<<4))|m<<2))<<1)|(v=1227133513&((v=3272356035&((v=251719695&((v=4278190335&((v&=1023)|v<<16))|v<<8))|v<<4))|v<<2))<<2},p.deinterleave3=function(h,m){return(h=1023&((h=4278190335&((h=251719695&((h=3272356035&((h=h>>>m&1227133513)|h>>>2))|h>>>4))|h>>>8))|h>>>16))<<22>>22},p.nextCombination=function(h){var m=h|h-1;return m+1|(~m&-~m)-1>>>a(h)+1}},1928:function(y,p,a){(function(u,h){function m(W,K){if(!W)throw new Error(K||"Assertion failed")}function v(W,K){W.super_=K;var oe=function(){};oe.prototype=K.prototype,W.prototype=new oe,W.prototype.constructor=W}function _(W,K,oe){if(_.isBN(W))return W;this.negative=0,this.words=null,this.length=0,this.red=null,W!==null&&(K!=="le"&&K!=="be"||(oe=K,K=10),this._init(W||0,K||10,oe||"be"))}var S;typeof u=="object"?u.exports=_:h.BN=_,_.BN=_,_.wordSize=26;try{S=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:a(6601).Buffer}catch{}function A(W,K){var oe=W.charCodeAt(K);return oe>=65&&oe<=70?oe-55:oe>=97&&oe<=102?oe-87:oe-48&15}function x(W,K,oe){var q=A(W,oe);return oe-1>=K&&(q|=A(W,oe-1)<<4),q}function R(W,K,oe,q){for(var Y=0,ee=Math.min(W.length,oe),me=K;me=49?he-49+10:he>=17?he-17+10:he}return Y}_.isBN=function(W){return W instanceof _||W!==null&&typeof W=="object"&&W.constructor.wordSize===_.wordSize&&Array.isArray(W.words)},_.max=function(W,K){return W.cmp(K)>0?W:K},_.min=function(W,K){return W.cmp(K)<0?W:K},_.prototype._init=function(W,K,oe){if(typeof W=="number")return this._initNumber(W,K,oe);if(typeof W=="object")return this._initArray(W,K,oe);K==="hex"&&(K=16),m(K===(0|K)&&K>=2&&K<=36);var q=0;(W=W.toString().replace(/\s+/g,""))[0]==="-"&&(q++,this.negative=1),q=0;q-=3)ee=W[q]|W[q-1]<<8|W[q-2]<<16,this.words[Y]|=ee<>>26-me&67108863,(me+=24)>=26&&(me-=26,Y++);else if(oe==="le")for(q=0,Y=0;q>>26-me&67108863,(me+=24)>=26&&(me-=26,Y++);return this.strip()},_.prototype._parseHex=function(W,K,oe){this.length=Math.ceil((W.length-K)/6),this.words=new Array(this.length);for(var q=0;q=K;q-=2)Y=x(W,K,q)<=18?(ee-=18,me+=1,this.words[me]|=Y>>>26):ee+=8;else for(q=(W.length-K)%2==0?K+1:K;q=18?(ee-=18,me+=1,this.words[me]|=Y>>>26):ee+=8;this.strip()},_.prototype._parseBase=function(W,K,oe){this.words=[0],this.length=1;for(var q=0,Y=1;Y<=67108863;Y*=K)q++;q--,Y=Y/K|0;for(var ee=W.length-oe,me=ee%q,he=Math.min(ee,ee-me)+oe,se=0,ae=oe;ae1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},_.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},_.prototype.inspect=function(){return(this.red?""};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function C(W,K,oe){oe.negative=K.negative^W.negative;var q=W.length+K.length|0;oe.length=q,q=q-1|0;var Y=0|W.words[0],ee=0|K.words[0],me=Y*ee,he=67108863&me,se=me/67108864|0;oe.words[0]=he;for(var ae=1;ae>>26,de=67108863&se,ve=Math.min(ae,K.length-1),ye=Math.max(0,ae-W.length+1);ye<=ve;ye++){var _e=ae-ye|0;ce+=(me=(Y=0|W.words[_e])*(ee=0|K.words[ye])+de)/67108864|0,de=67108863&me}oe.words[ae]=0|de,se=0|ce}return se!==0?oe.words[ae]=0|se:oe.length--,oe.strip()}_.prototype.toString=function(W,K){var oe;if(K=0|K||1,(W=W||10)===16||W==="hex"){oe="";for(var q=0,Y=0,ee=0;ee>>24-q&16777215)!=0||ee!==this.length-1?M[6-he.length]+he+oe:he+oe,(q+=2)>=26&&(q-=26,ee--)}for(Y!==0&&(oe=Y.toString(16)+oe);oe.length%K!=0;)oe="0"+oe;return this.negative!==0&&(oe="-"+oe),oe}if(W===(0|W)&&W>=2&&W<=36){var se=T[W],ae=E[W];oe="";var ce=this.clone();for(ce.negative=0;!ce.isZero();){var de=ce.modn(ae).toString(W);oe=(ce=ce.idivn(ae)).isZero()?de+oe:M[se-de.length]+de+oe}for(this.isZero()&&(oe="0"+oe);oe.length%K!=0;)oe="0"+oe;return this.negative!==0&&(oe="-"+oe),oe}m(!1,"Base should be between 2 and 36")},_.prototype.toNumber=function(){var W=this.words[0];return this.length===2?W+=67108864*this.words[1]:this.length===3&&this.words[2]===1?W+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-W:W},_.prototype.toJSON=function(){return this.toString(16)},_.prototype.toBuffer=function(W,K){return m(S!==void 0),this.toArrayLike(S,W,K)},_.prototype.toArray=function(W,K){return this.toArrayLike(Array,W,K)},_.prototype.toArrayLike=function(W,K,oe){var q=this.byteLength(),Y=oe||Math.max(1,q);m(q<=Y,"byte array longer than desired length"),m(Y>0,"Requested array length <= 0"),this.strip();var ee,me,he=K==="le",se=new W(Y),ae=this.clone();if(he){for(me=0;!ae.isZero();me++)ee=ae.andln(255),ae.iushrn(8),se[me]=ee;for(;me=4096&&(oe+=13,K>>>=13),K>=64&&(oe+=7,K>>>=7),K>=8&&(oe+=4,K>>>=4),K>=2&&(oe+=2,K>>>=2),oe+K},_.prototype._zeroBits=function(W){if(W===0)return 26;var K=W,oe=0;return!(8191&K)&&(oe+=13,K>>>=13),!(127&K)&&(oe+=7,K>>>=7),!(15&K)&&(oe+=4,K>>>=4),!(3&K)&&(oe+=2,K>>>=2),!(1&K)&&oe++,oe},_.prototype.bitLength=function(){var W=this.words[this.length-1],K=this._countBits(W);return 26*(this.length-1)+K},_.prototype.zeroBits=function(){if(this.isZero())return 0;for(var W=0,K=0;KW.length?this.clone().ior(W):W.clone().ior(this)},_.prototype.uor=function(W){return this.length>W.length?this.clone().iuor(W):W.clone().iuor(this)},_.prototype.iuand=function(W){var K;K=this.length>W.length?W:this;for(var oe=0;oeW.length?this.clone().iand(W):W.clone().iand(this)},_.prototype.uand=function(W){return this.length>W.length?this.clone().iuand(W):W.clone().iuand(this)},_.prototype.iuxor=function(W){var K,oe;this.length>W.length?(K=this,oe=W):(K=W,oe=this);for(var q=0;qW.length?this.clone().ixor(W):W.clone().ixor(this)},_.prototype.uxor=function(W){return this.length>W.length?this.clone().iuxor(W):W.clone().iuxor(this)},_.prototype.inotn=function(W){m(typeof W=="number"&&W>=0);var K=0|Math.ceil(W/26),oe=W%26;this._expand(K),oe>0&&K--;for(var q=0;q0&&(this.words[q]=~this.words[q]&67108863>>26-oe),this.strip()},_.prototype.notn=function(W){return this.clone().inotn(W)},_.prototype.setn=function(W,K){m(typeof W=="number"&&W>=0);var oe=W/26|0,q=W%26;return this._expand(oe+1),this.words[oe]=K?this.words[oe]|1<W.length?(oe=this,q=W):(oe=W,q=this);for(var Y=0,ee=0;ee>>26;for(;Y!==0&&ee>>26;if(this.length=oe.length,Y!==0)this.words[this.length]=Y,this.length++;else if(oe!==this)for(;eeW.length?this.clone().iadd(W):W.clone().iadd(this)},_.prototype.isub=function(W){if(W.negative!==0){W.negative=0;var K=this.iadd(W);return W.negative=1,K._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(W),this.negative=1,this._normSign();var oe,q,Y=this.cmp(W);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;Y>0?(oe=this,q=W):(oe=W,q=this);for(var ee=0,me=0;me>26,this.words[me]=67108863&K;for(;ee!==0&&me>26,this.words[me]=67108863&K;if(ee===0&&me>>13,ye=0|me[1],_e=8191&ye,Se=ye>>>13,Te=0|me[2],Pe=8191&Te,Ie=Te>>>13,ze=0|me[3],De=8191&ze,He=ze>>>13,Ve=0|me[4],$e=8191&Ve,Oe=Ve>>>13,ke=0|me[5],Le=8191&ke,We=ke>>>13,Ue=0|me[6],Ze=8191&Ue,Xe=Ue>>>13,tt=0|me[7],Ee=8191&tt,Ne=tt>>>13,je=0|me[8],nt=8191&je,ot=je>>>13,Ge=0|me[9],ht=8191&Ge,pt=Ge>>>13,wt=0|he[0],Dt=8191&wt,It=wt>>>13,qt=0|he[1],en=8191&qt,Gt=qt>>>13,Ct=0|he[2],_t=8191&Ct,nn=Ct>>>13,gn=0|he[3],bn=8191&gn,mn=gn>>>13,vt=0|he[4],bt=8191&vt,lt=vt>>>13,yt=0|he[5],zt=8191&yt,Rt=yt>>>13,it=0|he[6],at=8191&it,Lt=it>>>13,xt=0|he[7],Zt=8191&xt,Xt=xt>>>13,Yt=0|he[8],Qt=8191&Yt,Pt=Yt>>>13,tn=0|he[9],Kt=8191&tn,fn=tn>>>13;oe.negative=W.negative^K.negative,oe.length=19;var dn=(ae+(q=Math.imul(de,Dt))|0)+((8191&(Y=(Y=Math.imul(de,It))+Math.imul(ve,Dt)|0))<<13)|0;ae=((ee=Math.imul(ve,It))+(Y>>>13)|0)+(dn>>>26)|0,dn&=67108863,q=Math.imul(_e,Dt),Y=(Y=Math.imul(_e,It))+Math.imul(Se,Dt)|0,ee=Math.imul(Se,It);var vn=(ae+(q=q+Math.imul(de,en)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Gt)|0)+Math.imul(ve,en)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Gt)|0)+(Y>>>13)|0)+(vn>>>26)|0,vn&=67108863,q=Math.imul(Pe,Dt),Y=(Y=Math.imul(Pe,It))+Math.imul(Ie,Dt)|0,ee=Math.imul(Ie,It),q=q+Math.imul(_e,en)|0,Y=(Y=Y+Math.imul(_e,Gt)|0)+Math.imul(Se,en)|0,ee=ee+Math.imul(Se,Gt)|0;var Nn=(ae+(q=q+Math.imul(de,_t)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,nn)|0)+Math.imul(ve,_t)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,nn)|0)+(Y>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,q=Math.imul(De,Dt),Y=(Y=Math.imul(De,It))+Math.imul(He,Dt)|0,ee=Math.imul(He,It),q=q+Math.imul(Pe,en)|0,Y=(Y=Y+Math.imul(Pe,Gt)|0)+Math.imul(Ie,en)|0,ee=ee+Math.imul(Ie,Gt)|0,q=q+Math.imul(_e,_t)|0,Y=(Y=Y+Math.imul(_e,nn)|0)+Math.imul(Se,_t)|0,ee=ee+Math.imul(Se,nn)|0;var er=(ae+(q=q+Math.imul(de,bn)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,mn)|0)+Math.imul(ve,bn)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,mn)|0)+(Y>>>13)|0)+(er>>>26)|0,er&=67108863,q=Math.imul($e,Dt),Y=(Y=Math.imul($e,It))+Math.imul(Oe,Dt)|0,ee=Math.imul(Oe,It),q=q+Math.imul(De,en)|0,Y=(Y=Y+Math.imul(De,Gt)|0)+Math.imul(He,en)|0,ee=ee+Math.imul(He,Gt)|0,q=q+Math.imul(Pe,_t)|0,Y=(Y=Y+Math.imul(Pe,nn)|0)+Math.imul(Ie,_t)|0,ee=ee+Math.imul(Ie,nn)|0,q=q+Math.imul(_e,bn)|0,Y=(Y=Y+Math.imul(_e,mn)|0)+Math.imul(Se,bn)|0,ee=ee+Math.imul(Se,mn)|0;var En=(ae+(q=q+Math.imul(de,bt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,lt)|0)+Math.imul(ve,bt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,lt)|0)+(Y>>>13)|0)+(En>>>26)|0,En&=67108863,q=Math.imul(Le,Dt),Y=(Y=Math.imul(Le,It))+Math.imul(We,Dt)|0,ee=Math.imul(We,It),q=q+Math.imul($e,en)|0,Y=(Y=Y+Math.imul($e,Gt)|0)+Math.imul(Oe,en)|0,ee=ee+Math.imul(Oe,Gt)|0,q=q+Math.imul(De,_t)|0,Y=(Y=Y+Math.imul(De,nn)|0)+Math.imul(He,_t)|0,ee=ee+Math.imul(He,nn)|0,q=q+Math.imul(Pe,bn)|0,Y=(Y=Y+Math.imul(Pe,mn)|0)+Math.imul(Ie,bn)|0,ee=ee+Math.imul(Ie,mn)|0,q=q+Math.imul(_e,bt)|0,Y=(Y=Y+Math.imul(_e,lt)|0)+Math.imul(Se,bt)|0,ee=ee+Math.imul(Se,lt)|0;var In=(ae+(q=q+Math.imul(de,zt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Rt)|0)+Math.imul(ve,zt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Rt)|0)+(Y>>>13)|0)+(In>>>26)|0,In&=67108863,q=Math.imul(Ze,Dt),Y=(Y=Math.imul(Ze,It))+Math.imul(Xe,Dt)|0,ee=Math.imul(Xe,It),q=q+Math.imul(Le,en)|0,Y=(Y=Y+Math.imul(Le,Gt)|0)+Math.imul(We,en)|0,ee=ee+Math.imul(We,Gt)|0,q=q+Math.imul($e,_t)|0,Y=(Y=Y+Math.imul($e,nn)|0)+Math.imul(Oe,_t)|0,ee=ee+Math.imul(Oe,nn)|0,q=q+Math.imul(De,bn)|0,Y=(Y=Y+Math.imul(De,mn)|0)+Math.imul(He,bn)|0,ee=ee+Math.imul(He,mn)|0,q=q+Math.imul(Pe,bt)|0,Y=(Y=Y+Math.imul(Pe,lt)|0)+Math.imul(Ie,bt)|0,ee=ee+Math.imul(Ie,lt)|0,q=q+Math.imul(_e,zt)|0,Y=(Y=Y+Math.imul(_e,Rt)|0)+Math.imul(Se,zt)|0,ee=ee+Math.imul(Se,Rt)|0;var jn=(ae+(q=q+Math.imul(de,at)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Lt)|0)+Math.imul(ve,at)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Lt)|0)+(Y>>>13)|0)+(jn>>>26)|0,jn&=67108863,q=Math.imul(Ee,Dt),Y=(Y=Math.imul(Ee,It))+Math.imul(Ne,Dt)|0,ee=Math.imul(Ne,It),q=q+Math.imul(Ze,en)|0,Y=(Y=Y+Math.imul(Ze,Gt)|0)+Math.imul(Xe,en)|0,ee=ee+Math.imul(Xe,Gt)|0,q=q+Math.imul(Le,_t)|0,Y=(Y=Y+Math.imul(Le,nn)|0)+Math.imul(We,_t)|0,ee=ee+Math.imul(We,nn)|0,q=q+Math.imul($e,bn)|0,Y=(Y=Y+Math.imul($e,mn)|0)+Math.imul(Oe,bn)|0,ee=ee+Math.imul(Oe,mn)|0,q=q+Math.imul(De,bt)|0,Y=(Y=Y+Math.imul(De,lt)|0)+Math.imul(He,bt)|0,ee=ee+Math.imul(He,lt)|0,q=q+Math.imul(Pe,zt)|0,Y=(Y=Y+Math.imul(Pe,Rt)|0)+Math.imul(Ie,zt)|0,ee=ee+Math.imul(Ie,Rt)|0,q=q+Math.imul(_e,at)|0,Y=(Y=Y+Math.imul(_e,Lt)|0)+Math.imul(Se,at)|0,ee=ee+Math.imul(Se,Lt)|0;var xr=(ae+(q=q+Math.imul(de,Zt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Xt)|0)+Math.imul(ve,Zt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Xt)|0)+(Y>>>13)|0)+(xr>>>26)|0,xr&=67108863,q=Math.imul(nt,Dt),Y=(Y=Math.imul(nt,It))+Math.imul(ot,Dt)|0,ee=Math.imul(ot,It),q=q+Math.imul(Ee,en)|0,Y=(Y=Y+Math.imul(Ee,Gt)|0)+Math.imul(Ne,en)|0,ee=ee+Math.imul(Ne,Gt)|0,q=q+Math.imul(Ze,_t)|0,Y=(Y=Y+Math.imul(Ze,nn)|0)+Math.imul(Xe,_t)|0,ee=ee+Math.imul(Xe,nn)|0,q=q+Math.imul(Le,bn)|0,Y=(Y=Y+Math.imul(Le,mn)|0)+Math.imul(We,bn)|0,ee=ee+Math.imul(We,mn)|0,q=q+Math.imul($e,bt)|0,Y=(Y=Y+Math.imul($e,lt)|0)+Math.imul(Oe,bt)|0,ee=ee+Math.imul(Oe,lt)|0,q=q+Math.imul(De,zt)|0,Y=(Y=Y+Math.imul(De,Rt)|0)+Math.imul(He,zt)|0,ee=ee+Math.imul(He,Rt)|0,q=q+Math.imul(Pe,at)|0,Y=(Y=Y+Math.imul(Pe,Lt)|0)+Math.imul(Ie,at)|0,ee=ee+Math.imul(Ie,Lt)|0,q=q+Math.imul(_e,Zt)|0,Y=(Y=Y+Math.imul(_e,Xt)|0)+Math.imul(Se,Zt)|0,ee=ee+Math.imul(Se,Xt)|0;var Sr=(ae+(q=q+Math.imul(de,Qt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Pt)|0)+Math.imul(ve,Qt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Pt)|0)+(Y>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,q=Math.imul(ht,Dt),Y=(Y=Math.imul(ht,It))+Math.imul(pt,Dt)|0,ee=Math.imul(pt,It),q=q+Math.imul(nt,en)|0,Y=(Y=Y+Math.imul(nt,Gt)|0)+Math.imul(ot,en)|0,ee=ee+Math.imul(ot,Gt)|0,q=q+Math.imul(Ee,_t)|0,Y=(Y=Y+Math.imul(Ee,nn)|0)+Math.imul(Ne,_t)|0,ee=ee+Math.imul(Ne,nn)|0,q=q+Math.imul(Ze,bn)|0,Y=(Y=Y+Math.imul(Ze,mn)|0)+Math.imul(Xe,bn)|0,ee=ee+Math.imul(Xe,mn)|0,q=q+Math.imul(Le,bt)|0,Y=(Y=Y+Math.imul(Le,lt)|0)+Math.imul(We,bt)|0,ee=ee+Math.imul(We,lt)|0,q=q+Math.imul($e,zt)|0,Y=(Y=Y+Math.imul($e,Rt)|0)+Math.imul(Oe,zt)|0,ee=ee+Math.imul(Oe,Rt)|0,q=q+Math.imul(De,at)|0,Y=(Y=Y+Math.imul(De,Lt)|0)+Math.imul(He,at)|0,ee=ee+Math.imul(He,Lt)|0,q=q+Math.imul(Pe,Zt)|0,Y=(Y=Y+Math.imul(Pe,Xt)|0)+Math.imul(Ie,Zt)|0,ee=ee+Math.imul(Ie,Xt)|0,q=q+Math.imul(_e,Qt)|0,Y=(Y=Y+Math.imul(_e,Pt)|0)+Math.imul(Se,Qt)|0,ee=ee+Math.imul(Se,Pt)|0;var ar=(ae+(q=q+Math.imul(de,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,fn)|0)+Math.imul(ve,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,fn)|0)+(Y>>>13)|0)+(ar>>>26)|0,ar&=67108863,q=Math.imul(ht,en),Y=(Y=Math.imul(ht,Gt))+Math.imul(pt,en)|0,ee=Math.imul(pt,Gt),q=q+Math.imul(nt,_t)|0,Y=(Y=Y+Math.imul(nt,nn)|0)+Math.imul(ot,_t)|0,ee=ee+Math.imul(ot,nn)|0,q=q+Math.imul(Ee,bn)|0,Y=(Y=Y+Math.imul(Ee,mn)|0)+Math.imul(Ne,bn)|0,ee=ee+Math.imul(Ne,mn)|0,q=q+Math.imul(Ze,bt)|0,Y=(Y=Y+Math.imul(Ze,lt)|0)+Math.imul(Xe,bt)|0,ee=ee+Math.imul(Xe,lt)|0,q=q+Math.imul(Le,zt)|0,Y=(Y=Y+Math.imul(Le,Rt)|0)+Math.imul(We,zt)|0,ee=ee+Math.imul(We,Rt)|0,q=q+Math.imul($e,at)|0,Y=(Y=Y+Math.imul($e,Lt)|0)+Math.imul(Oe,at)|0,ee=ee+Math.imul(Oe,Lt)|0,q=q+Math.imul(De,Zt)|0,Y=(Y=Y+Math.imul(De,Xt)|0)+Math.imul(He,Zt)|0,ee=ee+Math.imul(He,Xt)|0,q=q+Math.imul(Pe,Qt)|0,Y=(Y=Y+Math.imul(Pe,Pt)|0)+Math.imul(Ie,Qt)|0,ee=ee+Math.imul(Ie,Pt)|0;var Fn=(ae+(q=q+Math.imul(_e,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(_e,fn)|0)+Math.imul(Se,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Se,fn)|0)+(Y>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,q=Math.imul(ht,_t),Y=(Y=Math.imul(ht,nn))+Math.imul(pt,_t)|0,ee=Math.imul(pt,nn),q=q+Math.imul(nt,bn)|0,Y=(Y=Y+Math.imul(nt,mn)|0)+Math.imul(ot,bn)|0,ee=ee+Math.imul(ot,mn)|0,q=q+Math.imul(Ee,bt)|0,Y=(Y=Y+Math.imul(Ee,lt)|0)+Math.imul(Ne,bt)|0,ee=ee+Math.imul(Ne,lt)|0,q=q+Math.imul(Ze,zt)|0,Y=(Y=Y+Math.imul(Ze,Rt)|0)+Math.imul(Xe,zt)|0,ee=ee+Math.imul(Xe,Rt)|0,q=q+Math.imul(Le,at)|0,Y=(Y=Y+Math.imul(Le,Lt)|0)+Math.imul(We,at)|0,ee=ee+Math.imul(We,Lt)|0,q=q+Math.imul($e,Zt)|0,Y=(Y=Y+Math.imul($e,Xt)|0)+Math.imul(Oe,Zt)|0,ee=ee+Math.imul(Oe,Xt)|0,q=q+Math.imul(De,Qt)|0,Y=(Y=Y+Math.imul(De,Pt)|0)+Math.imul(He,Qt)|0,ee=ee+Math.imul(He,Pt)|0;var ir=(ae+(q=q+Math.imul(Pe,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Pe,fn)|0)+Math.imul(Ie,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Ie,fn)|0)+(Y>>>13)|0)+(ir>>>26)|0,ir&=67108863,q=Math.imul(ht,bn),Y=(Y=Math.imul(ht,mn))+Math.imul(pt,bn)|0,ee=Math.imul(pt,mn),q=q+Math.imul(nt,bt)|0,Y=(Y=Y+Math.imul(nt,lt)|0)+Math.imul(ot,bt)|0,ee=ee+Math.imul(ot,lt)|0,q=q+Math.imul(Ee,zt)|0,Y=(Y=Y+Math.imul(Ee,Rt)|0)+Math.imul(Ne,zt)|0,ee=ee+Math.imul(Ne,Rt)|0,q=q+Math.imul(Ze,at)|0,Y=(Y=Y+Math.imul(Ze,Lt)|0)+Math.imul(Xe,at)|0,ee=ee+Math.imul(Xe,Lt)|0,q=q+Math.imul(Le,Zt)|0,Y=(Y=Y+Math.imul(Le,Xt)|0)+Math.imul(We,Zt)|0,ee=ee+Math.imul(We,Xt)|0,q=q+Math.imul($e,Qt)|0,Y=(Y=Y+Math.imul($e,Pt)|0)+Math.imul(Oe,Qt)|0,ee=ee+Math.imul(Oe,Pt)|0;var Wn=(ae+(q=q+Math.imul(De,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(De,fn)|0)+Math.imul(He,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(He,fn)|0)+(Y>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,q=Math.imul(ht,bt),Y=(Y=Math.imul(ht,lt))+Math.imul(pt,bt)|0,ee=Math.imul(pt,lt),q=q+Math.imul(nt,zt)|0,Y=(Y=Y+Math.imul(nt,Rt)|0)+Math.imul(ot,zt)|0,ee=ee+Math.imul(ot,Rt)|0,q=q+Math.imul(Ee,at)|0,Y=(Y=Y+Math.imul(Ee,Lt)|0)+Math.imul(Ne,at)|0,ee=ee+Math.imul(Ne,Lt)|0,q=q+Math.imul(Ze,Zt)|0,Y=(Y=Y+Math.imul(Ze,Xt)|0)+Math.imul(Xe,Zt)|0,ee=ee+Math.imul(Xe,Xt)|0,q=q+Math.imul(Le,Qt)|0,Y=(Y=Y+Math.imul(Le,Pt)|0)+Math.imul(We,Qt)|0,ee=ee+Math.imul(We,Pt)|0;var Kn=(ae+(q=q+Math.imul($e,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul($e,fn)|0)+Math.imul(Oe,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Oe,fn)|0)+(Y>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,q=Math.imul(ht,zt),Y=(Y=Math.imul(ht,Rt))+Math.imul(pt,zt)|0,ee=Math.imul(pt,Rt),q=q+Math.imul(nt,at)|0,Y=(Y=Y+Math.imul(nt,Lt)|0)+Math.imul(ot,at)|0,ee=ee+Math.imul(ot,Lt)|0,q=q+Math.imul(Ee,Zt)|0,Y=(Y=Y+Math.imul(Ee,Xt)|0)+Math.imul(Ne,Zt)|0,ee=ee+Math.imul(Ne,Xt)|0,q=q+Math.imul(Ze,Qt)|0,Y=(Y=Y+Math.imul(Ze,Pt)|0)+Math.imul(Xe,Qt)|0,ee=ee+Math.imul(Xe,Pt)|0;var _r=(ae+(q=q+Math.imul(Le,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Le,fn)|0)+Math.imul(We,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(We,fn)|0)+(Y>>>13)|0)+(_r>>>26)|0,_r&=67108863,q=Math.imul(ht,at),Y=(Y=Math.imul(ht,Lt))+Math.imul(pt,at)|0,ee=Math.imul(pt,Lt),q=q+Math.imul(nt,Zt)|0,Y=(Y=Y+Math.imul(nt,Xt)|0)+Math.imul(ot,Zt)|0,ee=ee+Math.imul(ot,Xt)|0,q=q+Math.imul(Ee,Qt)|0,Y=(Y=Y+Math.imul(Ee,Pt)|0)+Math.imul(Ne,Qt)|0,ee=ee+Math.imul(Ne,Pt)|0;var Ir=(ae+(q=q+Math.imul(Ze,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Ze,fn)|0)+Math.imul(Xe,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Xe,fn)|0)+(Y>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,q=Math.imul(ht,Zt),Y=(Y=Math.imul(ht,Xt))+Math.imul(pt,Zt)|0,ee=Math.imul(pt,Xt),q=q+Math.imul(nt,Qt)|0,Y=(Y=Y+Math.imul(nt,Pt)|0)+Math.imul(ot,Qt)|0,ee=ee+Math.imul(ot,Pt)|0;var zr=(ae+(q=q+Math.imul(Ee,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Ee,fn)|0)+Math.imul(Ne,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Ne,fn)|0)+(Y>>>13)|0)+(zr>>>26)|0,zr&=67108863,q=Math.imul(ht,Qt),Y=(Y=Math.imul(ht,Pt))+Math.imul(pt,Qt)|0,ee=Math.imul(pt,Pt);var Fr=(ae+(q=q+Math.imul(nt,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(nt,fn)|0)+Math.imul(ot,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(ot,fn)|0)+(Y>>>13)|0)+(Fr>>>26)|0,Fr&=67108863;var Rr=(ae+(q=Math.imul(ht,Kt))|0)+((8191&(Y=(Y=Math.imul(ht,fn))+Math.imul(pt,Kt)|0))<<13)|0;return ae=((ee=Math.imul(pt,fn))+(Y>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,se[0]=dn,se[1]=vn,se[2]=Nn,se[3]=er,se[4]=En,se[5]=In,se[6]=jn,se[7]=xr,se[8]=Sr,se[9]=ar,se[10]=Fn,se[11]=ir,se[12]=Wn,se[13]=Kn,se[14]=_r,se[15]=Ir,se[16]=zr,se[17]=Fr,se[18]=Rr,ae!==0&&(se[19]=ae,oe.length++),oe};function D(W,K,oe){return new k().mulp(W,K,oe)}function k(W,K){this.x=W,this.y=K}Math.imul||(L=C),_.prototype.mulTo=function(W,K){var oe,q=this.length+W.length;return oe=this.length===10&&W.length===10?L(this,W,K):q<63?C(this,W,K):q<1024?function(Y,ee,me){me.negative=ee.negative^Y.negative,me.length=Y.length+ee.length;for(var he=0,se=0,ae=0;ae>>26)|0)>>>26,ce&=67108863}me.words[ae]=de,he=ce,ce=se}return he!==0?me.words[ae]=he:me.length--,me.strip()}(this,W,K):D(this,W,K),oe},k.prototype.makeRBT=function(W){for(var K=new Array(W),oe=_.prototype._countBits(W)-1,q=0;q>=1;return q},k.prototype.permute=function(W,K,oe,q,Y,ee){for(var me=0;me>>=1)Y++;return 1<>>=13,oe[2*ee+1]=8191&Y,Y>>>=13;for(ee=2*K;ee>=26,K+=q/67108864|0,K+=Y>>>26,this.words[oe]=67108863&Y}return K!==0&&(this.words[oe]=K,this.length++),this},_.prototype.muln=function(W){return this.clone().imuln(W)},_.prototype.sqr=function(){return this.mul(this)},_.prototype.isqr=function(){return this.imul(this.clone())},_.prototype.pow=function(W){var K=function(ee){for(var me=new Array(ee.bitLength()),he=0;he>>ae}return me}(W);if(K.length===0)return new _(1);for(var oe=this,q=0;q=0);var K,oe=W%26,q=(W-oe)/26,Y=67108863>>>26-oe<<26-oe;if(oe!==0){var ee=0;for(K=0;K>>26-oe}ee&&(this.words[K]=ee,this.length++)}if(q!==0){for(K=this.length-1;K>=0;K--)this.words[K+q]=this.words[K];for(K=0;K=0),q=K?(K-K%26)/26:0;var Y=W%26,ee=Math.min((W-Y)/26,this.length),me=67108863^67108863>>>Y<ee)for(this.length-=ee,se=0;se=0&&(ae!==0||se>=q);se--){var ce=0|this.words[se];this.words[se]=ae<<26-Y|ce>>>Y,ae=ce&me}return he&&ae!==0&&(he.words[he.length++]=ae),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},_.prototype.ishrn=function(W,K,oe){return m(this.negative===0),this.iushrn(W,K,oe)},_.prototype.shln=function(W){return this.clone().ishln(W)},_.prototype.ushln=function(W){return this.clone().iushln(W)},_.prototype.shrn=function(W){return this.clone().ishrn(W)},_.prototype.ushrn=function(W){return this.clone().iushrn(W)},_.prototype.testn=function(W){m(typeof W=="number"&&W>=0);var K=W%26,oe=(W-K)/26,q=1<=0);var K=W%26,oe=(W-K)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=oe)return this;if(K!==0&&oe++,this.length=Math.min(oe,this.length),K!==0){var q=67108863^67108863>>>K<=67108864;K++)this.words[K]-=67108864,K===this.length-1?this.words[K+1]=1:this.words[K+1]++;return this.length=Math.max(this.length,K+1),this},_.prototype.isubn=function(W){if(m(typeof W=="number"),m(W<67108864),W<0)return this.iaddn(-W);if(this.negative!==0)return this.negative=0,this.iaddn(W),this.negative=1,this;if(this.words[0]-=W,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var K=0;K>26)-(he/67108864|0),this.words[q+oe]=67108863&Y}for(;q>26,this.words[q+oe]=67108863&Y;if(me===0)return this.strip();for(m(me===-1),me=0,q=0;q>26,this.words[q]=67108863&Y;return this.negative=1,this.strip()},_.prototype._wordDiv=function(W,K){var oe=(this.length,W.length),q=this.clone(),Y=W,ee=0|Y.words[Y.length-1];(oe=26-this._countBits(ee))!=0&&(Y=Y.ushln(oe),q.iushln(oe),ee=0|Y.words[Y.length-1]);var me,he=q.length-Y.length;if(K!=="mod"){(me=new _(null)).length=he+1,me.words=new Array(me.length);for(var se=0;se=0;ce--){var de=67108864*(0|q.words[Y.length+ce])+(0|q.words[Y.length+ce-1]);for(de=Math.min(de/ee|0,67108863),q._ishlnsubmul(Y,de,ce);q.negative!==0;)de--,q.negative=0,q._ishlnsubmul(Y,1,ce),q.isZero()||(q.negative^=1);me&&(me.words[ce]=de)}return me&&me.strip(),q.strip(),K!=="div"&&oe!==0&&q.iushrn(oe),{div:me||null,mod:q}},_.prototype.divmod=function(W,K,oe){return m(!W.isZero()),this.isZero()?{div:new _(0),mod:new _(0)}:this.negative!==0&&W.negative===0?(ee=this.neg().divmod(W,K),K!=="mod"&&(q=ee.div.neg()),K!=="div"&&(Y=ee.mod.neg(),oe&&Y.negative!==0&&Y.iadd(W)),{div:q,mod:Y}):this.negative===0&&W.negative!==0?(ee=this.divmod(W.neg(),K),K!=="mod"&&(q=ee.div.neg()),{div:q,mod:ee.mod}):this.negative&W.negative?(ee=this.neg().divmod(W.neg(),K),K!=="div"&&(Y=ee.mod.neg(),oe&&Y.negative!==0&&Y.isub(W)),{div:ee.div,mod:Y}):W.length>this.length||this.cmp(W)<0?{div:new _(0),mod:this}:W.length===1?K==="div"?{div:this.divn(W.words[0]),mod:null}:K==="mod"?{div:null,mod:new _(this.modn(W.words[0]))}:{div:this.divn(W.words[0]),mod:new _(this.modn(W.words[0]))}:this._wordDiv(W,K);var q,Y,ee},_.prototype.div=function(W){return this.divmod(W,"div",!1).div},_.prototype.mod=function(W){return this.divmod(W,"mod",!1).mod},_.prototype.umod=function(W){return this.divmod(W,"mod",!0).mod},_.prototype.divRound=function(W){var K=this.divmod(W);if(K.mod.isZero())return K.div;var oe=K.div.negative!==0?K.mod.isub(W):K.mod,q=W.ushrn(1),Y=W.andln(1),ee=oe.cmp(q);return ee<0||Y===1&&ee===0?K.div:K.div.negative!==0?K.div.isubn(1):K.div.iaddn(1)},_.prototype.modn=function(W){m(W<=67108863);for(var K=67108864%W,oe=0,q=this.length-1;q>=0;q--)oe=(K*oe+(0|this.words[q]))%W;return oe},_.prototype.idivn=function(W){m(W<=67108863);for(var K=0,oe=this.length-1;oe>=0;oe--){var q=(0|this.words[oe])+67108864*K;this.words[oe]=q/W|0,K=q%W}return this.strip()},_.prototype.divn=function(W){return this.clone().idivn(W)},_.prototype.egcd=function(W){m(W.negative===0),m(!W.isZero());var K=this,oe=W.clone();K=K.negative!==0?K.umod(W):K.clone();for(var q=new _(1),Y=new _(0),ee=new _(0),me=new _(1),he=0;K.isEven()&&oe.isEven();)K.iushrn(1),oe.iushrn(1),++he;for(var se=oe.clone(),ae=K.clone();!K.isZero();){for(var ce=0,de=1;!(K.words[0]&de)&&ce<26;++ce,de<<=1);if(ce>0)for(K.iushrn(ce);ce-- >0;)(q.isOdd()||Y.isOdd())&&(q.iadd(se),Y.isub(ae)),q.iushrn(1),Y.iushrn(1);for(var ve=0,ye=1;!(oe.words[0]&ye)&&ve<26;++ve,ye<<=1);if(ve>0)for(oe.iushrn(ve);ve-- >0;)(ee.isOdd()||me.isOdd())&&(ee.iadd(se),me.isub(ae)),ee.iushrn(1),me.iushrn(1);K.cmp(oe)>=0?(K.isub(oe),q.isub(ee),Y.isub(me)):(oe.isub(K),ee.isub(q),me.isub(Y))}return{a:ee,b:me,gcd:oe.iushln(he)}},_.prototype._invmp=function(W){m(W.negative===0),m(!W.isZero());var K=this,oe=W.clone();K=K.negative!==0?K.umod(W):K.clone();for(var q,Y=new _(1),ee=new _(0),me=oe.clone();K.cmpn(1)>0&&oe.cmpn(1)>0;){for(var he=0,se=1;!(K.words[0]&se)&&he<26;++he,se<<=1);if(he>0)for(K.iushrn(he);he-- >0;)Y.isOdd()&&Y.iadd(me),Y.iushrn(1);for(var ae=0,ce=1;!(oe.words[0]&ce)&&ae<26;++ae,ce<<=1);if(ae>0)for(oe.iushrn(ae);ae-- >0;)ee.isOdd()&&ee.iadd(me),ee.iushrn(1);K.cmp(oe)>=0?(K.isub(oe),Y.isub(ee)):(oe.isub(K),ee.isub(Y))}return(q=K.cmpn(1)===0?Y:ee).cmpn(0)<0&&q.iadd(W),q},_.prototype.gcd=function(W){if(this.isZero())return W.abs();if(W.isZero())return this.abs();var K=this.clone(),oe=W.clone();K.negative=0,oe.negative=0;for(var q=0;K.isEven()&&oe.isEven();q++)K.iushrn(1),oe.iushrn(1);for(;;){for(;K.isEven();)K.iushrn(1);for(;oe.isEven();)oe.iushrn(1);var Y=K.cmp(oe);if(Y<0){var ee=K;K=oe,oe=ee}else if(Y===0||oe.cmpn(1)===0)break;K.isub(oe)}return oe.iushln(q)},_.prototype.invm=function(W){return this.egcd(W).a.umod(W)},_.prototype.isEven=function(){return(1&this.words[0])==0},_.prototype.isOdd=function(){return(1&this.words[0])==1},_.prototype.andln=function(W){return this.words[0]&W},_.prototype.bincn=function(W){m(typeof W=="number");var K=W%26,oe=(W-K)/26,q=1<>>26,me&=67108863,this.words[ee]=me}return Y!==0&&(this.words[ee]=Y,this.length++),this},_.prototype.isZero=function(){return this.length===1&&this.words[0]===0},_.prototype.cmpn=function(W){var K,oe=W<0;if(this.negative!==0&&!oe)return-1;if(this.negative===0&&oe)return 1;if(this.strip(),this.length>1)K=1;else{oe&&(W=-W),m(W<=67108863,"Number is too big");var q=0|this.words[0];K=q===W?0:qW.length)return 1;if(this.length=0;oe--){var q=0|this.words[oe],Y=0|W.words[oe];if(q!==Y){qY&&(K=1);break}}return K},_.prototype.gtn=function(W){return this.cmpn(W)===1},_.prototype.gt=function(W){return this.cmp(W)===1},_.prototype.gten=function(W){return this.cmpn(W)>=0},_.prototype.gte=function(W){return this.cmp(W)>=0},_.prototype.ltn=function(W){return this.cmpn(W)===-1},_.prototype.lt=function(W){return this.cmp(W)===-1},_.prototype.lten=function(W){return this.cmpn(W)<=0},_.prototype.lte=function(W){return this.cmp(W)<=0},_.prototype.eqn=function(W){return this.cmpn(W)===0},_.prototype.eq=function(W){return this.cmp(W)===0},_.red=function(W){return new X(W)},_.prototype.toRed=function(W){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),W.convertTo(this)._forceRed(W)},_.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},_.prototype._forceRed=function(W){return this.red=W,this},_.prototype.forceRed=function(W){return m(!this.red,"Already a number in reduction context"),this._forceRed(W)},_.prototype.redAdd=function(W){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,W)},_.prototype.redIAdd=function(W){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,W)},_.prototype.redSub=function(W){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,W)},_.prototype.redISub=function(W){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,W)},_.prototype.redShl=function(W){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,W)},_.prototype.redMul=function(W){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,W),this.red.mul(this,W)},_.prototype.redIMul=function(W){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,W),this.red.imul(this,W)},_.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},_.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},_.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},_.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},_.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},_.prototype.redPow=function(W){return m(this.red&&!W.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,W)};var I={k256:null,p224:null,p192:null,p25519:null};function z(W,K){this.name=W,this.p=new _(K,16),this.n=this.p.bitLength(),this.k=new _(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function $(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Q(){z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function j(){z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function U(){z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function X(W){if(typeof W=="string"){var K=_._prime(W);this.m=K.p,this.prime=K}else m(W.gtn(1),"modulus must be greater than 1"),this.m=W,this.prime=null}function te(W){X.call(this,W),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new _(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}z.prototype._tmp=function(){var W=new _(null);return W.words=new Array(Math.ceil(this.n/13)),W},z.prototype.ireduce=function(W){var K,oe=W;do this.split(oe,this.tmp),K=(oe=(oe=this.imulK(oe)).iadd(this.tmp)).bitLength();while(K>this.n);var q=K0?oe.isub(this.p):oe.strip!==void 0?oe.strip():oe._strip(),oe},z.prototype.split=function(W,K){W.iushrn(this.n,0,K)},z.prototype.imulK=function(W){return W.imul(this.k)},v($,z),$.prototype.split=function(W,K){for(var oe=4194303,q=Math.min(W.length,9),Y=0;Y>>22,ee=me}ee>>>=22,W.words[Y-10]=ee,ee===0&&W.length>10?W.length-=10:W.length-=9},$.prototype.imulK=function(W){W.words[W.length]=0,W.words[W.length+1]=0,W.length+=2;for(var K=0,oe=0;oe>>=26,W.words[oe]=Y,K=q}return K!==0&&(W.words[W.length++]=K),W},_._prime=function(W){if(I[W])return I[W];var K;if(W==="k256")K=new $;else if(W==="p224")K=new Q;else if(W==="p192")K=new j;else{if(W!=="p25519")throw new Error("Unknown prime "+W);K=new U}return I[W]=K,K},X.prototype._verify1=function(W){m(W.negative===0,"red works only with positives"),m(W.red,"red works only with red numbers")},X.prototype._verify2=function(W,K){m((W.negative|K.negative)==0,"red works only with positives"),m(W.red&&W.red===K.red,"red works only with red numbers")},X.prototype.imod=function(W){return this.prime?this.prime.ireduce(W)._forceRed(this):W.umod(this.m)._forceRed(this)},X.prototype.neg=function(W){return W.isZero()?W.clone():this.m.sub(W)._forceRed(this)},X.prototype.add=function(W,K){this._verify2(W,K);var oe=W.add(K);return oe.cmp(this.m)>=0&&oe.isub(this.m),oe._forceRed(this)},X.prototype.iadd=function(W,K){this._verify2(W,K);var oe=W.iadd(K);return oe.cmp(this.m)>=0&&oe.isub(this.m),oe},X.prototype.sub=function(W,K){this._verify2(W,K);var oe=W.sub(K);return oe.cmpn(0)<0&&oe.iadd(this.m),oe._forceRed(this)},X.prototype.isub=function(W,K){this._verify2(W,K);var oe=W.isub(K);return oe.cmpn(0)<0&&oe.iadd(this.m),oe},X.prototype.shl=function(W,K){return this._verify1(W),this.imod(W.ushln(K))},X.prototype.imul=function(W,K){return this._verify2(W,K),this.imod(W.imul(K))},X.prototype.mul=function(W,K){return this._verify2(W,K),this.imod(W.mul(K))},X.prototype.isqr=function(W){return this.imul(W,W.clone())},X.prototype.sqr=function(W){return this.mul(W,W)},X.prototype.sqrt=function(W){if(W.isZero())return W.clone();var K=this.m.andln(3);if(m(K%2==1),K===3){var oe=this.m.add(new _(1)).iushrn(2);return this.pow(W,oe)}for(var q=this.m.subn(1),Y=0;!q.isZero()&&q.andln(1)===0;)Y++,q.iushrn(1);m(!q.isZero());var ee=new _(1).toRed(this),me=ee.redNeg(),he=this.m.subn(1).iushrn(1),se=this.m.bitLength();for(se=new _(2*se*se).toRed(this);this.pow(se,he).cmp(me)!==0;)se.redIAdd(me);for(var ae=this.pow(se,q),ce=this.pow(W,q.addn(1).iushrn(1)),de=this.pow(W,q),ve=Y;de.cmp(ee)!==0;){for(var ye=de,_e=0;ye.cmp(ee)!==0;_e++)ye=ye.redSqr();m(_e=0;q--){for(var se=K.words[q],ae=he-1;ae>=0;ae--){var ce=se>>ae&1;Y!==oe[0]&&(Y=this.sqr(Y)),ce!==0||ee!==0?(ee<<=1,ee|=ce,(++me==4||q===0&&ae===0)&&(Y=this.mul(Y,oe[ee]),me=0,ee=0)):me=0}he=26}return Y},X.prototype.convertTo=function(W){var K=W.umod(this.m);return K===W?K.clone():K},X.prototype.convertFrom=function(W){var K=W.clone();return K.red=null,K},_.mont=function(W){return new te(W)},v(te,X),te.prototype.convertTo=function(W){return this.imod(W.ushln(this.shift))},te.prototype.convertFrom=function(W){var K=this.imod(W.mul(this.rinv));return K.red=null,K},te.prototype.imul=function(W,K){if(W.isZero()||K.isZero())return W.words[0]=0,W.length=1,W;var oe=W.imul(K),q=oe.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=oe.isub(q).iushrn(this.shift),ee=Y;return Y.cmp(this.m)>=0?ee=Y.isub(this.m):Y.cmpn(0)<0&&(ee=Y.iadd(this.m)),ee._forceRed(this)},te.prototype.mul=function(W,K){if(W.isZero()||K.isZero())return new _(0)._forceRed(this);var oe=W.mul(K),q=oe.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=oe.isub(q).iushrn(this.shift),ee=Y;return Y.cmp(this.m)>=0?ee=Y.isub(this.m):Y.cmpn(0)<0&&(ee=Y.iadd(this.m)),ee._forceRed(this)},te.prototype.invm=function(W){return this.imod(W._invmp(this.m).mul(this.r2))._forceRed(this)}})(y=a.nmd(y),this)},2692:function(y){y.exports=function(p){var a,u,h,m=p.length,v=0;for(a=0;a>>1;if(!(D<=0)){var k,I=h.mallocDouble(2*D*C),z=h.mallocInt32(C);if((C=S(R,D,I,z))>0){if(D===1&&E)m.init(C),k=m.sweepComplete(D,T,0,C,I,z,0,C,I,z);else{var $=h.mallocDouble(2*D*L),Q=h.mallocInt32(L);(L=S(M,D,$,Q))>0&&(m.init(C+L),k=D===1?m.sweepBipartite(D,T,0,C,I,z,0,L,$,Q):v(D,T,E,C,I,z,L,$,Q),h.free($),h.free(Q))}h.free(I),h.free(z)}return k}}}function x(R,M){u.push([R,M])}},7333:function(y,p){function a(u){return u?function(h,m,v,_,S,A,x,R,M,T,E){return S-_>M-R?function(C,L,D,k,I,z,$,Q,j,U,X){for(var te=2*C,W=k,K=te*k;WT-M?_?function(L,D,k,I,z,$,Q,j,U,X,te){for(var W=2*L,K=I,oe=W*I;K0;){var ve=(ce-=1)*z,ye=Q[ve],_e=Q[ve+1],Se=Q[ve+2],Te=Q[ve+3],Pe=Q[ve+4],Ie=Q[ve+5],ze=ce*$,De=j[ze],He=j[ze+1],Ve=1&Ie,$e=!!(16&Ie),Oe=Y,ke=ee,Le=he,We=se;if(Ve&&(Oe=he,ke=se,Le=Y,We=ee),!(2&Ie&&_e>=(Se=L(W,ye,_e,Se,Oe,ke,He))||4&Ie&&(_e=D(W,ye,_e,Se,Oe,ke,De))>=Se)){var Ue=Se-_e,Ze=Pe-Te;if($e){if(W*Ue*(Ue+Ze)=p0)&&!(p1>=hi)"),C=x("lo===p0"),L=x("lo>>1,C=2*v,L=E,D=x[C*E+_];M=Q?(L=$,D=Q):z>=U?(L=I,D=z):(L=j,D=U):Q>=U?(L=$,D=Q):U>=z?(L=I,D=z):(L=j,D=U);for(var X=C*(T-1),te=C*L,W=0;WS&&x[D+_]>C;--L,D-=M){for(var k=D,I=D+M,z=0;zE;++E,x+=A)if(v[x+T]===S)if(M===E)M+=1,R+=A;else{for(var C=0;A>C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"loE;++E,x+=A)if(v[x+T]C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"lo<=p0":function(a,u,h,m,v,_,S){for(var A=2*a,x=A*h,R=x,M=h,T=a+u,E=h;m>E;++E,x+=A)if(v[x+T]<=S)if(M===E)M+=1,R+=A;else{for(var C=0;A>C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"hi<=p0":function(a,u,h,m,v,_,S){for(var A=2*a,x=A*h,R=x,M=h,T=a+u,E=h;m>E;++E,x+=A)if(v[x+T]<=S)if(M===E)M+=1,R+=A;else{for(var C=0;A>C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"loC;++C,x+=A){var L=v[x+T],D=v[x+E];if(Lk;++k){var I=v[x+k];v[x+k]=v[R],v[R++]=I}var z=_[C];_[C]=_[M],_[M++]=z}}return M},"lo<=p0&&p0<=hi":function(a,u,h,m,v,_,S){for(var A=2*a,x=A*h,R=x,M=h,T=u,E=a+u,C=h;m>C;++C,x+=A){var L=v[x+T],D=v[x+E];if(L<=S&&S<=D)if(M===C)M+=1,R+=A;else{for(var k=0;A>k;++k){var I=v[x+k];v[x+k]=v[R],v[R++]=I}var z=_[C];_[C]=_[M],_[M++]=z}}return M},"!(lo>=p0)&&!(p1>=hi)":function(a,u,h,m,v,_,S,A){for(var x=2*a,R=x*h,M=R,T=h,E=u,C=a+u,L=h;m>L;++L,R+=x){var D=v[R+E],k=v[R+C];if(!(D>=S||A>=k))if(T===L)T+=1,M+=x;else{for(var I=0;x>I;++I){var z=v[R+I];v[R+I]=v[M],v[M++]=z}var $=_[L];_[L]=_[T],_[T++]=$}}return T}}},309:function(y){y.exports=function(x,R){R<=4*p?a(0,R-1,x):A(0,R-1,x)};var p=32;function a(x,R,M){for(var T=2*(x+1),E=x+1;E<=R;++E){for(var C=M[T++],L=M[T++],D=E,k=T-2;D-- >x;){var I=M[k-2],z=M[k-1];if(IM[R+1])}function S(x,R,M,T){var E=T[x*=2];return E>1,D=L-T,k=L+T,I=E,z=D,$=L,Q=k,j=C,U=x+1,X=R-1,te=0;_(I,z,M)&&(te=I,I=z,z=te),_(Q,j,M)&&(te=Q,Q=j,j=te),_(I,$,M)&&(te=I,I=$,$=te),_(z,$,M)&&(te=z,z=$,$=te),_(I,Q,M)&&(te=I,I=Q,Q=te),_($,Q,M)&&(te=$,$=Q,Q=te),_(z,j,M)&&(te=z,z=j,j=te),_(z,$,M)&&(te=z,z=$,$=te),_(Q,j,M)&&(te=Q,Q=j,j=te);for(var W=M[2*z],K=M[2*z+1],oe=M[2*Q],q=M[2*Q+1],Y=2*I,ee=2*$,me=2*j,he=2*E,se=2*L,ae=2*C,ce=0;ce<2;++ce){var de=M[Y+ce],ve=M[ee+ce],ye=M[me+ce];M[he+ce]=de,M[se+ce]=ve,M[ae+ce]=ye}h(D,x,M),h(k,R,M);for(var _e=U;_e<=X;++_e)if(S(_e,W,K,M))_e!==U&&u(_e,U,M),++U;else if(!S(_e,oe,q,M))for(;;){if(S(X,oe,q,M)){S(X,W,K,M)?(m(_e,U,X,M),++U,--X):(u(_e,X,M),--X);break}if(--X<_e)break}v(x,U-1,W,K,M),v(R,X+1,oe,q,M),U-2-x<=p?a(x,U-2,M):A(x,U-2,M),R-(X+2)<=p?a(X+2,R,M):A(X+2,R,M),X-U<=p?a(U,X,M):A(U,X,M)}},1390:function(y,p,a){y.exports={init:function(D){var k=h.nextPow2(D);S.length>>1;m(E,se);var ae=0,ce=0;for(Y=0;Y=v)C(x,R,ce--,de=de-v|0);else if(de>=0)C(S,A,ae--,de);else if(de<=-v){de=-de-v|0;for(var ve=0;ve>>1;m(E,se);var ae=0,ce=0,de=0;for(Y=0;Y>1==E[2*Y+3]>>1&&(ye=2,Y+=1),ve<0){for(var _e=-(ve>>1)-1,Se=0;Se>1)-1,ye===0?C(S,A,ae--,_e):ye===1?C(x,R,ce--,_e):ye===2&&C(M,T,de--,_e)}},scanBipartite:function(D,k,I,z,$,Q,j,U,X,te,W,K){var oe=0,q=2*D,Y=k,ee=k+D,me=1,he=1;z?he=v:me=v;for(var se=$;se>>1;m(E,ve);var ye=0;for(se=0;se=v?(Se=!z,ae-=v):(Se=!!z,ae-=1),Se)L(S,A,ye++,ae);else{var Te=K[ae],Pe=q*ae,Ie=W[Pe+k+1],ze=W[Pe+k+1+D];e:for(var De=0;De>>1;m(E,ae);var ce=0;for(ee=0;ee=v)S[ce++]=me-v;else{var ve=W[me-=1],ye=oe*me,_e=te[ye+k+1],Se=te[ye+k+1+D];e:for(var Te=0;Te=0;--Te)if(S[Te]===me){for(De=Te+1;De0;){for(var L=_.pop(),D=(T=-1,E=-1,R=A[x=_.pop()],1);D=0||(v.flip(x,L),h(m,v,_,T,x,E),h(m,v,_,x,E,T),h(m,v,_,E,L,T),h(m,v,_,L,T,E))}}},7098:function(y,p,a){var u,h=a(5070);function m(_,S,A,x,R,M,T){this.cells=_,this.neighbor=S,this.flags=x,this.constraint=A,this.active=R,this.next=M,this.boundary=T}function v(_,S){return _[0]-S[0]||_[1]-S[1]||_[2]-S[2]}y.exports=function(_,S,A){var x=function(j,U){for(var X=j.cells(),te=X.length,W=0;W0||T.length>0;){for(;M.length>0;){var k=M.pop();if(E[k]!==-R){E[k]=R,C[k];for(var I=0;I<3;++I){var z=D[3*k+I];z>=0&&E[z]===0&&(L[3*k+I]?T.push(z):(M.push(z),E[z]=R))}}}var $=T;T=M,M=$,T.length=0,R=-R}var Q=function(j,U,X){for(var te=0,W=0;W1&&h(C[Q[j-2]],C[Q[j-1]],L)>0;)T.push([Q[j-1],Q[j-2],D]),j-=1;Q.length=j,Q.push(D);var U=$.upperIds;for(j=U.length;j>1&&h(C[U[j-2]],C[U[j-1]],L)<0;)T.push([U[j-2],U[j-1],D]),j-=1;U.length=j,U.push(D)}}function x(T,E){var C;return(C=T.a[0]$[0]&&D.push(new v($,z,2,k),new v(z,$,1,k))}D.sort(_);for(var Q=D[0].a[0]-(1+Math.abs(D[0].a[0]))*Math.pow(2,-52),j=[new m([Q,1],[Q,0],-1,[],[])],U=[],X=(k=0,D.length);k=0}}(),m.removeTriangle=function(_,S,A){var x=this.stars;v(x[_],S,A),v(x[S],A,_),v(x[A],_,S)},m.addTriangle=function(_,S,A){var x=this.stars;x[_].push(S,A),x[S].push(A,_),x[A].push(_,S)},m.opposite=function(_,S){for(var A=this.stars[S],x=1,R=A.length;xz[2]?1:0)}function D(I,z,$){if(I.length!==0){if(z)for(var Q=0;Q=0;--ee){var _e=K[me=(Ve=q[ee])[0]],Se=_e[0],Te=_e[1],Pe=W[Se],Ie=W[Te];if((Pe[0]-Ie[0]||Pe[1]-Ie[1])<0){var ze=Se;Se=Te,Te=ze}_e[0]=Se;var De,He=_e[1]=Ve[1];for(Y&&(De=_e[2]);ee>0&&q[ee-1][0]===me;){var Ve,$e=(Ve=q[--ee])[1];Y?K.push([He,$e,De]):K.push([He,$e]),He=$e}Y?K.push([He,Te,De]):K.push([He,Te])}return he}(I,z,j,U,$),te=E(I,X);return D(z,te,$),!!te||j.length>0||U.length>0}},5528:function(y,p,a){y.exports=function(R,M,T,E){var C=_(M,R),L=_(E,T),D=x(C,L);if(v(D)===0)return null;var k=x(L,_(R,T)),I=h(k,D),z=A(C,I);return S(R,z)};var u=a(3962),h=a(9189),m=a(4354),v=a(4951),_=a(6695),S=a(7584),A=a(4469);function x(R,M){return m(u(R[0],M[1]),u(R[1],M[0]))}},5692:function(y){y.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],"rainbow-soft":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],"freesurface-blue":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],"freesurface-red":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],"velocity-blue":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],"velocity-green":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},9156:function(y,p,a){var u=a(5692),h=a(3578);function m(S){return[S[0]/255,S[1]/255,S[2]/255,S[3]]}function v(S){for(var A,x="#",R=0;R<3;++R)x+=("00"+(A=(A=S[R]).toString(16))).substr(A.length);return x}function _(S){return"rgba("+S.join(",")+")"}y.exports=function(S){var A,x,R,M,T,E,C,L,D,k;if(S||(S={}),L=(S.nshades||72)-1,C=S.format||"hex",(E=S.colormap)||(E="jet"),typeof E=="string"){if(E=E.toLowerCase(),!u[E])throw Error(E+" not a supported colorscale");T=u[E]}else{if(!Array.isArray(E))throw Error("unsupported colormap option",E);T=E.slice()}if(T.length>L+1)throw new Error(E+" map requires nshades to be at least size "+T.length);D=Array.isArray(S.alpha)?S.alpha.length!==2?[1,1]:S.alpha.slice():typeof S.alpha=="number"?[S.alpha,S.alpha]:[1,1],A=T.map(function(j){return Math.round(j.index*L)}),D[0]=Math.min(Math.max(D[0],0),1),D[1]=Math.min(Math.max(D[1],0),1);var I=T.map(function(j,U){var X=T[U].index,te=T[U].rgb.slice();return te.length===4&&te[3]>=0&&te[3]<=1||(te[3]=D[0]+(D[1]-D[0])*X),te}),z=[];for(k=0;k0||S(A,x,M)?-1:1:E===0?C>0||S(A,x,R)?1:-1:h(C-E)}var D=u(A,x,R);return D>0?T>0&&u(A,x,M)>0?1:-1:D<0?T>0||u(A,x,M)>0?1:-1:u(A,x,M)>0||S(A,x,R)?1:-1};var u=a(417),h=a(7538),m=a(87),v=a(2019),_=a(9662);function S(A,x,R){var M=m(A[0],-x[0]),T=m(A[1],-x[1]),E=m(R[0],-x[0]),C=m(R[1],-x[1]),L=_(v(M,E),v(T,C));return L[L.length-1]>=0}},7538:function(y){y.exports=function(p){return p<0?-1:p>0?1:0}},9209:function(y){y.exports=function(u,h){var m=u.length,v=u.length-h.length;if(v)return v;switch(m){case 0:return 0;case 1:return u[0]-h[0];case 2:return u[0]+u[1]-h[0]-h[1]||p(u[0],u[1])-p(h[0],h[1]);case 3:var _=u[0]+u[1],S=h[0]+h[1];if(v=_+u[2]-(S+h[2]))return v;var A=p(u[0],u[1]),x=p(h[0],h[1]);return p(A,u[2])-p(x,h[2])||p(A+u[2],_)-p(x+h[2],S);case 4:var R=u[0],M=u[1],T=u[2],E=u[3],C=h[0],L=h[1],D=h[2],k=h[3];return R+M+T+E-(C+L+D+k)||p(R,M,T,E)-p(C,L,D,k,C)||p(R+M,R+T,R+E,M+T,M+E,T+E)-p(C+L,C+D,C+k,L+D,L+k,D+k)||p(R+M+T,R+M+E,R+T+E,M+T+E)-p(C+L+D,C+L+k,C+D+k,L+D+k);default:for(var I=u.slice().sort(a),z=h.slice().sort(a),$=0;$p[u][0]&&(u=h);return au?[[u],[a]]:[[a]]}},8722:function(y,p,a){y.exports=function(h){var m=u(h),v=m.length;if(v<=2)return[];for(var _=new Array(v),S=m[v-1],A=0;A=R[k]&&(D+=1);C[L]=D}}return x}(u(S,!0),_)}};var u=a(2183),h=a(2153)},9680:function(y){y.exports=function(p,a,u,h,m,v){var _=m-1,S=m*m,A=_*_,x=(1+2*m)*A,R=m*A,M=S*(3-2*m),T=S*_;if(p.length){v||(v=new Array(p.length));for(var E=p.length-1;E>=0;--E)v[E]=x*p[E]+R*a[E]+M*u[E]+T*h[E];return v}return x*p+R*a+M*u+T*h},y.exports.derivative=function(p,a,u,h,m,v){var _=6*m*m-6*m,S=3*m*m-4*m+1,A=-6*m*m+6*m,x=3*m*m-2*m;if(p.length){v||(v=new Array(p.length));for(var R=p.length-1;R>=0;--R)v[R]=_*p[R]+S*a[R]+A*u[R]+x*h[R];return v}return _*p+S*a+A*u[R]+x*h}},4419:function(y,p,a){var u=a(2183),h=a(1215);function m(_,S){this.point=_,this.index=S}function v(_,S){for(var A=_.point,x=S.point,R=A.length,M=0;M=2)return!1;X[W]=K}return!0}):U.filter(function(X){for(var te=0;te<=x;++te){var W=z[X[te]];if(W<0)return!1;X[te]=W}return!0}),1&x)for(T=0;T>>31},y.exports.exponent=function(m){return(y.exports.hi(m)<<1>>>21)-1023},y.exports.fraction=function(m){var v=y.exports.lo(m),_=y.exports.hi(m),S=1048575&_;return 2146435072&_&&(S+=1048576),[v,S]},y.exports.denormalized=function(m){return!(2146435072&y.exports.hi(m))}},3094:function(y){function p(a,u,h){var m=0|a[h];if(m<=0)return[];var v,_=new Array(m);if(h===a.length-1)for(v=0;v0)return function(h,m){var v,_;for(v=new Array(h),_=0;_=R-1){k=E.length-1;var z=A-x[R-1];for(I=0;I=R-1)for(var D=E.length-1,k=(x[R-1],0);k=0;--R)if(A[--x])return!1;return!0},_.jump=function(A){var x=this.lastT(),R=this.dimension;if(!(A0;--I)M.push(m(L[I-1],D[I-1],arguments[I])),T.push(0)}},_.push=function(A){var x=this.lastT(),R=this.dimension;if(!(A1e-6?1/C:0;this._time.push(A);for(var z=R;z>0;--z){var $=m(D[z-1],k[z-1],arguments[z]);M.push($),T.push(($-M[E++])*I)}}},_.set=function(A){var x=this.dimension;if(!(A0;--L)R.push(m(E[L-1],C[L-1],arguments[L])),M.push(0)}},_.move=function(A){var x=this.lastT(),R=this.dimension;if(!(A<=x||arguments.length!==R+1)){var M=this._state,T=this._velocity,E=M.length-this.dimension,C=this.bounds,L=C[0],D=C[1],k=A-x,I=k>1e-6?1/k:0;this._time.push(A);for(var z=R;z>0;--z){var $=arguments[z];M.push(m(L[z-1],D[z-1],M[E++]+$)),T.push($*I)}}},_.idle=function(A){var x=this.lastT();if(!(A=0;--I)M.push(m(L[I],D[I],M[E]+k*T[E])),T.push(0),E+=1}}},7080:function(y){function p(E,C,L,D,k,I){this._color=E,this.key=C,this.value=L,this.left=D,this.right=k,this._count=I}function a(E){return new p(E._color,E.key,E.value,E.left,E.right,E._count)}function u(E,C){return new p(E,C.key,C.value,C.left,C.right,C._count)}function h(E){E._count=1+(E.left?E.left._count:0)+(E.right?E.right._count:0)}function m(E,C){this._compare=E,this.root=C}y.exports=function(E){return new m(E||T,null)};var v=m.prototype;function _(E,C){var L;return C.left&&(L=_(E,C.left))?L:(L=E(C.key,C.value))||(C.right?_(E,C.right):void 0)}function S(E,C,L,D){if(C(E,D.key)<=0){var k;if(D.left&&(k=S(E,C,L,D.left))||(k=L(D.key,D.value)))return k}if(D.right)return S(E,C,L,D.right)}function A(E,C,L,D,k){var I,z=L(E,k.key),$=L(C,k.key);if(z<=0&&(k.left&&(I=A(E,C,L,D,k.left))||$>0&&(I=D(k.key,k.value))))return I;if($>0&&k.right)return A(E,C,L,D,k.right)}function x(E,C){this.tree=E,this._stack=C}Object.defineProperty(v,"keys",{get:function(){var E=[];return this.forEach(function(C,L){E.push(C)}),E}}),Object.defineProperty(v,"values",{get:function(){var E=[];return this.forEach(function(C,L){E.push(L)}),E}}),Object.defineProperty(v,"length",{get:function(){return this.root?this.root._count:0}}),v.insert=function(E,C){for(var L=this._compare,D=this.root,k=[],I=[];D;){var z=L(E,D.key);k.push(D),I.push(z),D=z<=0?D.left:D.right}k.push(new p(0,E,C,null,null,1));for(var $=k.length-2;$>=0;--$)D=k[$],I[$]<=0?k[$]=new p(D._color,D.key,D.value,k[$+1],D.right,D._count+1):k[$]=new p(D._color,D.key,D.value,D.left,k[$+1],D._count+1);for($=k.length-1;$>1;--$){var Q=k[$-1];if(D=k[$],Q._color===1||D._color===1)break;var j=k[$-2];if(j.left===Q)if(Q.left===D){if(!(U=j.right)||U._color!==0){j._color=0,j.left=Q.right,Q._color=1,Q.right=j,k[$-2]=Q,k[$-1]=D,h(j),h(Q),$>=3&&((X=k[$-3]).left===j?X.left=Q:X.right=Q);break}Q._color=1,j.right=u(1,U),j._color=0,$-=1}else{if(!(U=j.right)||U._color!==0){Q.right=D.left,j._color=0,j.left=D.right,D._color=1,D.left=Q,D.right=j,k[$-2]=D,k[$-1]=Q,h(j),h(Q),h(D),$>=3&&((X=k[$-3]).left===j?X.left=D:X.right=D);break}Q._color=1,j.right=u(1,U),j._color=0,$-=1}else if(Q.right===D){if(!(U=j.left)||U._color!==0){j._color=0,j.right=Q.left,Q._color=1,Q.left=j,k[$-2]=Q,k[$-1]=D,h(j),h(Q),$>=3&&((X=k[$-3]).right===j?X.right=Q:X.left=Q);break}Q._color=1,j.left=u(1,U),j._color=0,$-=1}else{var U;if(!(U=j.left)||U._color!==0){var X;Q.left=D.right,j._color=0,j.right=D.left,D._color=1,D.right=Q,D.left=j,k[$-2]=D,k[$-1]=Q,h(j),h(Q),h(D),$>=3&&((X=k[$-3]).right===j?X.right=D:X.left=D);break}Q._color=1,j.left=u(1,U),j._color=0,$-=1}}return k[0]._color=1,new m(L,k[0])},v.forEach=function(E,C,L){if(this.root)switch(arguments.length){case 1:return _(E,this.root);case 2:return S(C,this._compare,E,this.root);case 3:return this._compare(C,L)>=0?void 0:A(C,L,this._compare,E,this.root)}},Object.defineProperty(v,"begin",{get:function(){for(var E=[],C=this.root;C;)E.push(C),C=C.left;return new x(this,E)}}),Object.defineProperty(v,"end",{get:function(){for(var E=[],C=this.root;C;)E.push(C),C=C.right;return new x(this,E)}}),v.at=function(E){if(E<0)return new x(this,[]);for(var C=this.root,L=[];;){if(L.push(C),C.left){if(E=C.right._count)break;C=C.right}return new x(this,[])},v.ge=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I<=0&&(k=D.length),L=I<=0?L.left:L.right}return D.length=k,new x(this,D)},v.gt=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I<0&&(k=D.length),L=I<0?L.left:L.right}return D.length=k,new x(this,D)},v.lt=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I>0&&(k=D.length),L=I<=0?L.left:L.right}return D.length=k,new x(this,D)},v.le=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I>=0&&(k=D.length),L=I<0?L.left:L.right}return D.length=k,new x(this,D)},v.find=function(E){for(var C=this._compare,L=this.root,D=[];L;){var k=C(E,L.key);if(D.push(L),k===0)return new x(this,D);L=k<=0?L.left:L.right}return new x(this,[])},v.remove=function(E){var C=this.find(E);return C?C.remove():this},v.get=function(E){for(var C=this._compare,L=this.root;L;){var D=C(E,L.key);if(D===0)return L.value;L=D<=0?L.left:L.right}};var R=x.prototype;function M(E,C){E.key=C.key,E.value=C.value,E.left=C.left,E.right=C.right,E._color=C._color,E._count=C._count}function T(E,C){return EC?1:0}Object.defineProperty(R,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(R,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),R.clone=function(){return new x(this.tree,this._stack.slice())},R.remove=function(){var E=this._stack;if(E.length===0)return this.tree;var C=new Array(E.length),L=E[E.length-1];C[C.length-1]=new p(L._color,L.key,L.value,L.left,L.right,L._count);for(var D=E.length-2;D>=0;--D)(L=E[D]).left===E[D+1]?C[D]=new p(L._color,L.key,L.value,C[D+1],L.right,L._count):C[D]=new p(L._color,L.key,L.value,L.left,C[D+1],L._count);if((L=C[C.length-1]).left&&L.right){var k=C.length;for(L=L.left;L.right;)C.push(L),L=L.right;var I=C[k-1];for(C.push(new p(L._color,I.key,I.value,L.left,L.right,L._count)),C[k-1].key=L.key,C[k-1].value=L.value,D=C.length-2;D>=k;--D)L=C[D],C[D]=new p(L._color,L.key,L.value,L.left,C[D+1],L._count);C[k-1].left=C[k]}if((L=C[C.length-1])._color===0){var z=C[C.length-2];for(z.left===L?z.left=null:z.right===L&&(z.right=null),C.pop(),D=0;D=0;--W){if(j=Q[W],W===0)return void(j._color=1);if((U=Q[W-1]).left===j){if((X=U.right).right&&X.right._color===0)return te=(X=U.right=a(X)).right=a(X.right),U.right=X.left,X.left=U,X.right=te,X._color=U._color,j._color=1,U._color=1,te._color=1,h(U),h(X),W>1&&((K=Q[W-2]).left===U?K.left=X:K.right=X),void(Q[W-1]=X);if(X.left&&X.left._color===0)return te=(X=U.right=a(X)).left=a(X.left),U.right=te.left,X.left=te.right,te.left=U,te.right=X,te._color=U._color,U._color=1,X._color=1,j._color=1,h(U),h(X),h(te),W>1&&((K=Q[W-2]).left===U?K.left=te:K.right=te),void(Q[W-1]=te);if(X._color===1){if(U._color===0)return U._color=1,void(U.right=u(0,X));U.right=u(0,X);continue}X=a(X),U.right=X.left,X.left=U,X._color=U._color,U._color=0,h(U),h(X),W>1&&((K=Q[W-2]).left===U?K.left=X:K.right=X),Q[W-1]=X,Q[W]=U,W+11&&((K=Q[W-2]).right===U?K.right=X:K.left=X),void(Q[W-1]=X);if(X.right&&X.right._color===0)return te=(X=U.left=a(X)).right=a(X.right),U.left=te.right,X.right=te.left,te.right=U,te.left=X,te._color=U._color,U._color=1,X._color=1,j._color=1,h(U),h(X),h(te),W>1&&((K=Q[W-2]).right===U?K.right=te:K.left=te),void(Q[W-1]=te);if(X._color===1){if(U._color===0)return U._color=1,void(U.left=u(0,X));U.left=u(0,X);continue}var K;X=a(X),U.left=X.right,X.right=U,X._color=U._color,U._color=0,h(U),h(X),W>1&&((K=Q[W-2]).right===U?K.right=X:K.left=X),Q[W-1]=X,Q[W]=U,W+10)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(R,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(R,"index",{get:function(){var E=0,C=this._stack;if(C.length===0){var L=this.tree.root;return L?L._count:0}C[C.length-1].left&&(E=C[C.length-1].left._count);for(var D=C.length-2;D>=0;--D)C[D+1]===C[D].right&&(++E,C[D].left&&(E+=C[D].left._count));return E},enumerable:!0}),R.next=function(){var E=this._stack;if(E.length!==0){var C=E[E.length-1];if(C.right)for(C=C.right;C;)E.push(C),C=C.left;else for(E.pop();E.length>0&&E[E.length-1].right===C;)C=E[E.length-1],E.pop()}},Object.defineProperty(R,"hasNext",{get:function(){var E=this._stack;if(E.length===0)return!1;if(E[E.length-1].right)return!0;for(var C=E.length-1;C>0;--C)if(E[C-1].left===E[C])return!0;return!1}}),R.update=function(E){var C=this._stack;if(C.length===0)throw new Error("Can't update empty node!");var L=new Array(C.length),D=C[C.length-1];L[L.length-1]=new p(D._color,D.key,E,D.left,D.right,D._count);for(var k=C.length-2;k>=0;--k)(D=C[k]).left===C[k+1]?L[k]=new p(D._color,D.key,D.value,L[k+1],D.right,D._count):L[k]=new p(D._color,D.key,D.value,D.left,L[k+1],D._count);return new m(this.tree._compare,L[0])},R.prev=function(){var E=this._stack;if(E.length!==0){var C=E[E.length-1];if(C.left)for(C=C.left;C;)E.push(C),C=C.right;else for(E.pop();E.length>0&&E[E.length-1].left===C;)C=E[E.length-1],E.pop()}},Object.defineProperty(R,"hasPrev",{get:function(){var E=this._stack;if(E.length===0)return!1;if(E[E.length-1].left)return!0;for(var C=E.length-1;C>0;--C)if(E[C-1].right===E[C])return!0;return!1}})},7453:function(y,p,a){y.exports=function(z,$){var Q=new x(z);return Q.update($),Q};var u=a(9557),h=a(1681),m=a(1011),v=a(2864),_=a(8468),S=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function A(z,$){return z[0]=$[0],z[1]=$[1],z[2]=$[2],z}function x(z){this.gl=z,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=m(z)}var R=x.prototype;function M(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}R.update=function(z){function $(me,he,se){if(se in z){var ae,ce=z[se],de=this[se];(me?Array.isArray(ce)&&Array.isArray(ce[0]):Array.isArray(ce))?this[se]=ae=[he(ce[0]),he(ce[1]),he(ce[2])]:this[se]=ae=[he(ce),he(ce),he(ce)];for(var ve=0;ve<3;++ve)if(ae[ve]!==de[ve])return!0}return!1}z=z||{};var Q,j=$.bind(this,!1,Number),U=$.bind(this,!1,Boolean),X=$.bind(this,!1,String),te=$.bind(this,!0,function(me){if(Array.isArray(me)){if(me.length===3)return[+me[0],+me[1],+me[2],1];if(me.length===4)return[+me[0],+me[1],+me[2],+me[3]]}return[0,0,0,1]}),W=!1,K=!1;if("bounds"in z)for(var oe=z.bounds,q=0;q<2;++q)for(var Y=0;Y<3;++Y)oe[q][Y]!==this.bounds[q][Y]&&(K=!0),this.bounds[q][Y]=oe[q][Y];if("ticks"in z)for(Q=z.ticks,W=!0,this.autoTicks=!1,q=0;q<3;++q)this.tickSpacing[q]=0;else j("tickSpacing")&&(this.autoTicks=!0,K=!0);if(this._firstInit&&("ticks"in z||"tickSpacing"in z||(this.autoTicks=!0),K=!0,W=!0,this._firstInit=!1),K&&this.autoTicks&&(Q=_.create(this.bounds,this.tickSpacing),W=!0),W){for(q=0;q<3;++q)Q[q].sort(function(me,he){return me.x-he.x});_.equal(Q,this.ticks)?W=!1:this.ticks=Q}U("tickEnable"),X("tickFont")&&(W=!0),j("tickSize"),j("tickAngle"),j("tickPad"),te("tickColor");var ee=X("labels");X("labelFont")&&(ee=!0),U("labelEnable"),j("labelSize"),j("labelPad"),te("labelColor"),U("lineEnable"),U("lineMirror"),j("lineWidth"),te("lineColor"),U("lineTickEnable"),U("lineTickMirror"),j("lineTickLength"),j("lineTickWidth"),te("lineTickColor"),U("gridEnable"),j("gridWidth"),te("gridColor"),U("zeroEnable"),te("zeroLineColor"),j("zeroLineWidth"),U("backgroundEnable"),te("backgroundColor"),this._text?this._text&&(ee||W)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=u(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&W&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=h(this.gl,this.bounds,this.ticks))};var T=[new M,new M,new M];function E(z,$,Q,j,U){for(var X=z.primalOffset,te=z.primalMinor,W=z.mirrorOffset,K=z.mirrorMinor,oe=j[$],q=0;q<3;++q)if($!==q){var Y=X,ee=W,me=te,he=K;oe&1<0?(me[q]=-1,he[q]=0):(me[q]=0,he[q]=1)}}var C=[0,0,0],L={model:S,view:S,projection:S,_ortho:!1};R.isOpaque=function(){return!0},R.isTransparent=function(){return!1},R.drawTransparent=function(z){};var D=[0,0,0],k=[0,0,0],I=[0,0,0];R.draw=function(z){z=z||L;for(var $=this.gl,Q=z.model||S,j=z.view||S,U=z.projection||S,X=this.bounds,te=z._ortho||!1,W=v(Q,j,U,X,te),K=W.cubeEdges,oe=W.axis,q=j[12],Y=j[13],ee=j[14],me=j[15],he=(te?2:1)*this.pixelRatio*(U[3]*q+U[7]*Y+U[11]*ee+U[15]*me)/$.drawingBufferHeight,se=0;se<3;++se)this.lastCubeProps.cubeEdges[se]=K[se],this.lastCubeProps.axis[se]=oe[se];var ae=T;for(se=0;se<3;++se)E(T[se],se,this.bounds,K,oe);$=this.gl;var ce,de,ve,ye=C;for(se=0;se<3;++se)this.backgroundEnable[se]?ye[se]=oe[se]:ye[se]=0;for(this._background.draw(Q,j,U,X,ye,this.backgroundColor),this._lines.bind(Q,j,U,this),se=0;se<3;++se){var _e=[0,0,0];oe[se]>0?_e[se]=X[1][se]:_e[se]=X[0][se];for(var Se=0;Se<2;++Se){var Te=(se+1+Se)%3,Pe=(se+1+(1^Se))%3;this.gridEnable[Te]&&this._lines.drawGrid(Te,Pe,this.bounds,_e,this.gridColor[Te],this.gridWidth[Te]*this.pixelRatio)}for(Se=0;Se<2;++Se)Te=(se+1+Se)%3,Pe=(se+1+(1^Se))%3,this.zeroEnable[Pe]&&Math.min(X[0][Pe],X[1][Pe])<=0&&Math.max(X[0][Pe],X[1][Pe])>=0&&this._lines.drawZero(Te,Pe,this.bounds,_e,this.zeroLineColor[Pe],this.zeroLineWidth[Pe]*this.pixelRatio)}for(se=0;se<3;++se){this.lineEnable[se]&&this._lines.drawAxisLine(se,this.bounds,ae[se].primalOffset,this.lineColor[se],this.lineWidth[se]*this.pixelRatio),this.lineMirror[se]&&this._lines.drawAxisLine(se,this.bounds,ae[se].mirrorOffset,this.lineColor[se],this.lineWidth[se]*this.pixelRatio);var Ie=A(D,ae[se].primalMinor),ze=A(k,ae[se].mirrorMinor),De=this.lineTickLength;for(Se=0;Se<3;++Se){var He=he/Q[5*Se];Ie[Se]*=De[Se]*He,ze[Se]*=De[Se]*He}this.lineTickEnable[se]&&this._lines.drawAxisTicks(se,ae[se].primalOffset,Ie,this.lineTickColor[se],this.lineTickWidth[se]*this.pixelRatio),this.lineTickMirror[se]&&this._lines.drawAxisTicks(se,ae[se].mirrorOffset,ze,this.lineTickColor[se],this.lineTickWidth[se]*this.pixelRatio)}function Ve(Ue){(ve=[0,0,0])[Ue]=1}function $e(Ue,Ze,Xe){var tt=(Ue+1)%3,Ee=(Ue+2)%3,Ne=Ze[tt],je=Ze[Ee],nt=Xe[tt],ot=Xe[Ee];Ne>0&&ot>0||Ne>0&&ot<0||Ne<0&&ot>0||Ne<0&&ot<0?Ve(tt):(je>0&&nt>0||je>0&&nt<0||je<0&&nt>0||je<0&&nt<0)&&Ve(Ee)}for(this._lines.unbind(),this._text.bind(Q,j,U,this.pixelRatio),se=0;se<3;++se){var Oe=ae[se].primalMinor,ke=ae[se].mirrorMinor,Le=A(I,ae[se].primalOffset);for(Se=0;Se<3;++Se)this.lineTickEnable[se]&&(Le[Se]+=he*Oe[Se]*Math.max(this.lineTickLength[Se],0)/Q[5*Se]);var We=[0,0,0];if(We[se]=1,this.tickEnable[se]){for(this.tickAngle[se]===-3600?(this.tickAngle[se]=0,this.tickAlign[se]="auto"):this.tickAlign[se]=-1,de=1,(ce=[this.tickAlign[se],.5,de])[0]==="auto"?ce[0]=0:ce[0]=parseInt(""+ce[0]),ve=[0,0,0],$e(se,Oe,ke),Se=0;Se<3;++Se)Le[Se]+=he*Oe[Se]*this.tickPad[Se]/Q[5*Se];this._text.drawTicks(se,this.tickSize[se],this.tickAngle[se],Le,this.tickColor[se],We,ve,ce)}if(this.labelEnable[se]){for(de=0,ve=[0,0,0],this.labels[se].length>4&&(Ve(se),de=1),(ce=[this.labelAlign[se],.5,de])[0]==="auto"?ce[0]=0:ce[0]=parseInt(""+ce[0]),Se=0;Se<3;++Se)Le[Se]+=he*Oe[Se]*this.labelPad[Se]/Q[5*Se];Le[se]+=.5*(X[0][se]+X[1][se]),this._text.drawLabel(se,this.labelSize[se],this.labelAngle[se],Le,this.labelColor[se],[0,0,0],ve,ce)}}this._text.unbind()},R.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},1011:function(y,p,a){y.exports=function(S){for(var A=[],x=[],R=0,M=0;M<3;++M)for(var T=(M+1)%3,E=(M+2)%3,C=[0,0,0],L=[0,0,0],D=-1;D<=1;D+=2){x.push(R,R+2,R+1,R+1,R+2,R+3),C[M]=D,L[M]=D;for(var k=-1;k<=1;k+=2){C[T]=k;for(var I=-1;I<=1;I+=2)C[E]=I,A.push(C[0],C[1],C[2],L[0],L[1],L[2]),R+=1}var z=T;T=E,E=z}var $=u(S,new Float32Array(A)),Q=u(S,new Uint16Array(x),S.ELEMENT_ARRAY_BUFFER),j=h(S,[{buffer:$,type:S.FLOAT,size:3,offset:0,stride:24},{buffer:$,type:S.FLOAT,size:3,offset:12,stride:24}],Q),U=m(S);return U.attributes.position.location=0,U.attributes.normal.location=1,new v(S,$,j,U)};var u=a(5827),h=a(2944),m=a(1943).bg;function v(S,A,x,R){this.gl=S,this.buffer=A,this.vao=x,this.shader=R}var _=v.prototype;_.draw=function(S,A,x,R,M,T){for(var E=!1,C=0;C<3;++C)E=E||M[C];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:S,view:A,projection:x,bounds:R,enable:M,colors:T},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},_.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},2864:function(y,p,a){y.exports=function(k,I,z,$,Q){h(_,I,k),h(_,z,_);for(var j=0,U=0;U<2;++U){x[2]=$[U][2];for(var X=0;X<2;++X){x[1]=$[X][1];for(var te=0;te<2;++te)x[0]=$[te][0],M(S[j],x,_),j+=1}}var W=-1;for(U=0;U<8;++U){for(var K=S[U][3],oe=0;oe<3;++oe)A[U][oe]=S[U][oe]/K;Q&&(A[U][2]*=-1),K<0&&(W<0||A[U][2]me&&(W|=1<me&&(W|=1<A[U][1])&&(_e=U);var Se=-1;for(U=0;U<3;++U)(Pe=_e^1<A[Te][0]&&(Te=Pe))}var Ie=C;Ie[0]=Ie[1]=Ie[2]=0,Ie[u.log2(Se^_e)]=_e&Se,Ie[u.log2(_e^Te)]=_e&Te;var ze=7^Te;ze===W||ze===ye?(ze=7^Se,Ie[u.log2(Te^ze)]=ze&Te):Ie[u.log2(Se^ze)]=ze&Se;var De=L,He=W;for(q=0;q<3;++q)De[q]=He&1<M)return T-1}return T},_=function(R,M,T){return RT?T:R},S=function(R){var M=1/0;R.sort(function(L,D){return L-D});for(var T=R.length,E=1;EZe-1||ot>Xe-1||Ge>tt-1)return u.create();var ht,pt,wt,Dt,It,qt,en=ke[0][Ee],Gt=ke[0][nt],Ct=ke[1][Ne],_t=ke[1][ot],nn=ke[2][je],gn=(Le-en)/(Gt-en),bn=(We-Ct)/(_t-Ct),mn=(Ue-nn)/(ke[2][Ge]-nn);switch(isFinite(gn)||(gn=.5),isFinite(bn)||(bn=.5),isFinite(mn)||(mn=.5),$e.reversedX&&(Ee=Ze-1-Ee,nt=Ze-1-nt),$e.reversedY&&(Ne=Xe-1-Ne,ot=Xe-1-ot),$e.reversedZ&&(je=tt-1-je,Ge=tt-1-Ge),$e.filled){case 5:It=je,qt=Ge,wt=Ne*tt,Dt=ot*tt,ht=Ee*tt*Xe,pt=nt*tt*Xe;break;case 4:It=je,qt=Ge,ht=Ee*tt,pt=nt*tt,wt=Ne*tt*Ze,Dt=ot*tt*Ze;break;case 3:wt=Ne,Dt=ot,It=je*Xe,qt=Ge*Xe,ht=Ee*Xe*tt,pt=nt*Xe*tt;break;case 2:wt=Ne,Dt=ot,ht=Ee*Xe,pt=nt*Xe,It=je*Xe*Ze,qt=Ge*Xe*Ze;break;case 1:ht=Ee,pt=nt,It=je*Ze,qt=Ge*Ze,wt=Ne*Ze*tt,Dt=ot*Ze*tt;break;default:ht=Ee,pt=nt,wt=Ne*Ze,Dt=ot*Ze,It=je*Ze*Xe,qt=Ge*Ze*Xe}var vt=Oe[ht+wt+It],bt=Oe[ht+wt+qt],lt=Oe[ht+Dt+It],yt=Oe[ht+Dt+qt],zt=Oe[pt+wt+It],Rt=Oe[pt+wt+qt],it=Oe[pt+Dt+It],at=Oe[pt+Dt+qt],Lt=u.create(),xt=u.create(),Ht=u.create(),Xt=u.create();u.lerp(Lt,vt,zt,gn),u.lerp(xt,bt,Rt,gn),u.lerp(Ht,lt,it,gn),u.lerp(Xt,yt,at,gn);var Yt=u.create(),Qt=u.create();u.lerp(Yt,Lt,Ht,bn),u.lerp(Qt,xt,Xt,bn);var Pt=u.create();return u.lerp(Pt,Yt,Qt,mn),Pt}(De,R,k)},z=R.getDivergence||function(De,He){var Ve=u.create(),$e=1e-4;u.add(Ve,De,[$e,0,0]);var Oe=I(Ve);u.subtract(Oe,Oe,He),u.scale(Oe,Oe,1/$e),u.add(Ve,De,[0,$e,0]);var ke=I(Ve);u.subtract(ke,ke,He),u.scale(ke,ke,1/$e),u.add(Ve,De,[0,0,$e]);var Le=I(Ve);return u.subtract(Le,Le,He),u.scale(Le,Le,1/$e),u.add(Ve,Oe,ke),u.add(Ve,Ve,Le),Ve},$=[],Q=M[0][0],j=M[0][1],U=M[0][2],X=M[1][0],te=M[1][1],W=M[1][2],K=function(De){var He=De[0],Ve=De[1],$e=De[2];return!(HeX||Vete||$eW)},oe=10*u.distance(M[0],M[1])/E,q=oe*oe,Y=1,ee=0,me=T.length;me>1&&(Y=function(De){for(var He=[],Ve=[],$e=[],Oe={},ke={},Le={},We=De.length,Ue=0;Ueee&&(ee=Se),ye.push(Se),$.push({points:ae,velocities:ce,divergences:ye});for(var Te=0;Te<100*E&&ae.lengthq&&u.scale(Pe,Pe,oe/Math.sqrt(Ie)),u.add(Pe,Pe,se),de=I(Pe),u.squaredDistance(ve,Pe)-q>-1e-4*q&&(ae.push(Pe),ve=Pe,ce.push(de),_e=z(Pe,de),Se=u.length(_e),isFinite(Se)&&Se>ee&&(ee=Se),ye.push(Se)),se=Pe}}var ze=function(De,He,Ve,$e){for(var Oe=0,ke=0;ke0)for(Lt=0;Lt<8;Lt++){var xt=(Lt+1)%8;Ct.push(gn[Lt],bn[Lt],bn[xt],bn[xt],gn[xt],gn[Lt]),nn.push(yt,lt,lt,lt,yt,yt),mn.push(vt,bt,bt,bt,vt,vt);var Ht=Ct.length;_t.push([Ht-6,Ht-5,Ht-4],[Ht-3,Ht-2,Ht-1])}var Xt=gn;gn=bn,bn=Xt;var Yt=yt;yt=lt,lt=Yt;var Qt=vt;vt=bt,bt=Qt}return{positions:Ct,cells:_t,vectors:nn,vertexIntensity:mn}}(ht,Ve,$e,Oe)}),Ze=[],Xe=[],tt=[],Ee=[];for(ke=0;keM)return T-1}return T},_=function(R,M,T){return RT?T:R},S=function(R){var M=1/0;R.sort(function(L,D){return L-D});for(var T=R.length,E=1;EZe-1||ot>Xe-1||Ge>tt-1)return u.create();var ht,pt,wt,Dt,It,qt,en=ke[0][Ee],Gt=ke[0][nt],Ct=ke[1][Ne],_t=ke[1][ot],nn=ke[2][je],gn=(Le-en)/(Gt-en),bn=(We-Ct)/(_t-Ct),mn=(Ue-nn)/(ke[2][Ge]-nn);switch(isFinite(gn)||(gn=.5),isFinite(bn)||(bn=.5),isFinite(mn)||(mn=.5),$e.reversedX&&(Ee=Ze-1-Ee,nt=Ze-1-nt),$e.reversedY&&(Ne=Xe-1-Ne,ot=Xe-1-ot),$e.reversedZ&&(je=tt-1-je,Ge=tt-1-Ge),$e.filled){case 5:It=je,qt=Ge,wt=Ne*tt,Dt=ot*tt,ht=Ee*tt*Xe,pt=nt*tt*Xe;break;case 4:It=je,qt=Ge,ht=Ee*tt,pt=nt*tt,wt=Ne*tt*Ze,Dt=ot*tt*Ze;break;case 3:wt=Ne,Dt=ot,It=je*Xe,qt=Ge*Xe,ht=Ee*Xe*tt,pt=nt*Xe*tt;break;case 2:wt=Ne,Dt=ot,ht=Ee*Xe,pt=nt*Xe,It=je*Xe*Ze,qt=Ge*Xe*Ze;break;case 1:ht=Ee,pt=nt,It=je*Ze,qt=Ge*Ze,wt=Ne*Ze*tt,Dt=ot*Ze*tt;break;default:ht=Ee,pt=nt,wt=Ne*Ze,Dt=ot*Ze,It=je*Ze*Xe,qt=Ge*Ze*Xe}var vt=Oe[ht+wt+It],bt=Oe[ht+wt+qt],lt=Oe[ht+Dt+It],yt=Oe[ht+Dt+qt],zt=Oe[pt+wt+It],Rt=Oe[pt+wt+qt],it=Oe[pt+Dt+It],at=Oe[pt+Dt+qt],Lt=u.create(),xt=u.create(),Zt=u.create(),Xt=u.create();u.lerp(Lt,vt,zt,gn),u.lerp(xt,bt,Rt,gn),u.lerp(Zt,lt,it,gn),u.lerp(Xt,yt,at,gn);var Yt=u.create(),Qt=u.create();u.lerp(Yt,Lt,Zt,bn),u.lerp(Qt,xt,Xt,bn);var Pt=u.create();return u.lerp(Pt,Yt,Qt,mn),Pt}(De,R,k)},z=R.getDivergence||function(De,He){var Ve=u.create(),$e=1e-4;u.add(Ve,De,[$e,0,0]);var Oe=I(Ve);u.subtract(Oe,Oe,He),u.scale(Oe,Oe,1/$e),u.add(Ve,De,[0,$e,0]);var ke=I(Ve);u.subtract(ke,ke,He),u.scale(ke,ke,1/$e),u.add(Ve,De,[0,0,$e]);var Le=I(Ve);return u.subtract(Le,Le,He),u.scale(Le,Le,1/$e),u.add(Ve,Oe,ke),u.add(Ve,Ve,Le),Ve},$=[],Q=M[0][0],j=M[0][1],U=M[0][2],X=M[1][0],te=M[1][1],W=M[1][2],K=function(De){var He=De[0],Ve=De[1],$e=De[2];return!(HeX||Vete||$eW)},oe=10*u.distance(M[0],M[1])/E,q=oe*oe,Y=1,ee=0,me=T.length;me>1&&(Y=function(De){for(var He=[],Ve=[],$e=[],Oe={},ke={},Le={},We=De.length,Ue=0;Ueee&&(ee=Se),ye.push(Se),$.push({points:ae,velocities:ce,divergences:ye});for(var Te=0;Te<100*E&&ae.lengthq&&u.scale(Pe,Pe,oe/Math.sqrt(Ie)),u.add(Pe,Pe,se),de=I(Pe),u.squaredDistance(ve,Pe)-q>-1e-4*q&&(ae.push(Pe),ve=Pe,ce.push(de),_e=z(Pe,de),Se=u.length(_e),isFinite(Se)&&Se>ee&&(ee=Se),ye.push(Se)),se=Pe}}var ze=function(De,He,Ve,$e){for(var Oe=0,ke=0;ke0)for(Lt=0;Lt<8;Lt++){var xt=(Lt+1)%8;Ct.push(gn[Lt],bn[Lt],bn[xt],bn[xt],gn[xt],gn[Lt]),nn.push(yt,lt,lt,lt,yt,yt),mn.push(vt,bt,bt,bt,vt,vt);var Zt=Ct.length;_t.push([Zt-6,Zt-5,Zt-4],[Zt-3,Zt-2,Zt-1])}var Xt=gn;gn=bn,bn=Xt;var Yt=yt;yt=lt,lt=Yt;var Qt=vt;vt=bt,bt=Qt}return{positions:Ct,cells:_t,vectors:nn,vertexIntensity:mn}}(ht,Ve,$e,Oe)}),Ze=[],Xe=[],tt=[],Ee=[];for(ke=0;keHe&&$e>0){var Oe=(Ve[$e][0]-He)/(Ve[$e][0]-Ve[$e-1][0]);return Ve[$e][1]*(1-Oe)+Oe*Ve[$e-1][1]}}return 1}(ze/255,Se):Ie[3];return De<1&&(Te=!0),[Ie[0],Ie[1],Ie[2],255*De]})]);return A.divseq(Pe,255),this.hasAlphaScale=Te,Pe},oe.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},oe.isOpaque=function(){return!this.isTransparent()},oe.pickSlots=1,oe.setPickBase=function(_e){this.pickId=_e};var q=[0,0,0],Y={showSurface:!1,showContour:!1,projections:[j.slice(),j.slice(),j.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ee(_e,Se){var Te,Pe,Ie,ze=Se.axes&&Se.axes.lastCubeProps.axis||q,De=Se.showSurface,He=Se.showContour;for(Te=0;Te<3;++Te)for(De=De||Se.surfaceProject[Te],Pe=0;Pe<3;++Pe)He=He||Se.contourProject[Te][Pe];for(Te=0;Te<3;++Te){var Ve=Y.projections[Te];for(Pe=0;Pe<16;++Pe)Ve[Pe]=0;for(Pe=0;Pe<4;++Pe)Ve[5*Pe]=1;Ve[5*Te]=0,Ve[12+Te]=Se.axesBounds[+(ze[Te]>0)][Te],T(Ve,_e.model,Ve);var $e=Y.clipBounds[Te];for(Ie=0;Ie<2;++Ie)for(Pe=0;Pe<3;++Pe)$e[Ie][Pe]=_e.clipBounds[Ie][Pe];$e[0][Te]=-1e8,$e[1][Te]=1e8}return Y.showSurface=De,Y.showContour=He,Y}var me={model:j,view:j,projection:j,inverseModel:j.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},he=j.slice(),se=[1,0,0,0,1,0,0,0,1];function ae(_e,Se){_e=_e||{};var Te=this.gl;Te.disable(Te.CULL_FACE),this._colorMap.bind(0);var Pe=me;Pe.model=_e.model||j,Pe.view=_e.view||j,Pe.projection=_e.projection||j,Pe.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],Pe.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],Pe.objectOffset=this.objectOffset,Pe.contourColor=this.contourColor[0],Pe.inverseModel=E(Pe.inverseModel,Pe.model);for(var Ie=0;Ie<2;++Ie)for(var ze=Pe.clipBounds[Ie],De=0;De<3;++De)ze[De]=Math.min(Math.max(this.clipBounds[Ie][De],-1e8),1e8);Pe.kambient=this.ambientLight,Pe.kdiffuse=this.diffuseLight,Pe.kspecular=this.specularLight,Pe.roughness=this.roughness,Pe.fresnel=this.fresnel,Pe.opacity=this.opacity,Pe.height=0,Pe.permutation=se,Pe.vertexColor=this.vertexColor;var He=he;for(T(He,Pe.view,Pe.model),T(He,Pe.projection,He),E(He,He),Ie=0;Ie<3;++Ie)Pe.eyePosition[Ie]=He[12+Ie]/He[15];var Ve=He[15];for(Ie=0;Ie<3;++Ie)Ve+=this.lightPosition[Ie]*He[4*Ie+3];for(Ie=0;Ie<3;++Ie){var $e=He[12+Ie];for(De=0;De<3;++De)$e+=He[4*De+Ie]*this.lightPosition[De];Pe.lightPosition[Ie]=$e/Ve}var Oe=ee(Pe,this);if(Oe.showSurface){for(this._shader.bind(),this._shader.uniforms=Pe,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Te.TRIANGLES,this._vertexCount),Ie=0;Ie<3;++Ie)this.surfaceProject[Ie]&&this.vertexCount&&(this._shader.uniforms.model=Oe.projections[Ie],this._shader.uniforms.clipBounds=Oe.clipBounds[Ie],this._vao.draw(Te.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Oe.showContour){var ke=this._contourShader;Pe.kambient=1,Pe.kdiffuse=0,Pe.kspecular=0,Pe.opacity=1,ke.bind(),ke.uniforms=Pe;var Le=this._contourVAO;for(Le.bind(),Ie=0;Ie<3;++Ie)for(ke.uniforms.permutation=X[Ie],Te.lineWidth(this.contourWidth[Ie]*this.pixelRatio),De=0;De>4)/16)/255,Ie=Math.floor(Pe),ze=Pe-Ie,De=Se[1]*(_e.value[1]+(15&_e.value[2])/16)/255,He=Math.floor(De),Ve=De-He;Ie+=1,He+=1;var $e=Te.position;$e[0]=$e[1]=$e[2]=0;for(var Oe=0;Oe<2;++Oe)for(var ke=Oe?ze:1-ze,Le=0;Le<2;++Le)for(var We=Ie+Oe,Ue=He+Le,Ze=ke*(Le?Ve:1-Ve),Xe=0;Xe<3;++Xe)$e[Xe]+=this._field[Xe].get(We,Ue)*Ze;for(var tt=this._pickResult.level,Ee=0;Ee<3;++Ee)if(tt[Ee]=C.le(this.contourLevels[Ee],$e[Ee]),tt[Ee]<0)this.contourLevels[Ee].length>0&&(tt[Ee]=0);else if(tt[Ee]Math.abs(je-$e[Ee])&&(tt[Ee]+=1)}for(Te.index[0]=ze<.5?Ie:Ie+1,Te.index[1]=Ve<.5?He:He+1,Te.uv[0]=Pe/Se[0],Te.uv[1]=De/Se[1],Xe=0;Xe<3;++Xe)Te.dataCoordinate[Xe]=this._field[Xe].get(Te.index[0],Te.index[1]);return Te},oe.padField=function(_e,Se){var Te=Se.shape.slice(),Pe=_e.shape.slice();A.assign(_e.lo(1,1).hi(Te[0],Te[1]),Se),A.assign(_e.lo(1).hi(Te[0],1),Se.hi(Te[0],1)),A.assign(_e.lo(1,Pe[1]-1).hi(Te[0],1),Se.lo(0,Te[1]-1).hi(Te[0],1)),A.assign(_e.lo(0,1).hi(1,Te[1]),Se.hi(1)),A.assign(_e.lo(Pe[0]-1,1).hi(1,Te[1]),Se.lo(Te[0]-1)),_e.set(0,0,Se.get(0,0)),_e.set(0,Pe[1]-1,Se.get(0,Te[1]-1)),_e.set(Pe[0]-1,0,Se.get(Te[0]-1,0)),_e.set(Pe[0]-1,Pe[1]-1,Se.get(Te[0]-1,Te[1]-1))},oe.update=function(_e){_e=_e||{},this.objectOffset=_e.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in _e&&(this.contourWidth=de(_e.contourWidth,Number)),"showContour"in _e&&(this.showContour=de(_e.showContour,Boolean)),"showSurface"in _e&&(this.showSurface=!!_e.showSurface),"contourTint"in _e&&(this.contourTint=de(_e.contourTint,Boolean)),"contourColor"in _e&&(this.contourColor=ye(_e.contourColor)),"contourProject"in _e&&(this.contourProject=de(_e.contourProject,function(ir){return de(ir,Boolean)})),"surfaceProject"in _e&&(this.surfaceProject=_e.surfaceProject),"dynamicColor"in _e&&(this.dynamicColor=ye(_e.dynamicColor)),"dynamicTint"in _e&&(this.dynamicTint=de(_e.dynamicTint,Number)),"dynamicWidth"in _e&&(this.dynamicWidth=de(_e.dynamicWidth,Number)),"opacity"in _e&&(this.opacity=_e.opacity),"opacityscale"in _e&&(this.opacityscale=_e.opacityscale),"colorBounds"in _e&&(this.colorBounds=_e.colorBounds),"vertexColor"in _e&&(this.vertexColor=_e.vertexColor?1:0),"colormap"in _e&&this._colorMap.setPixels(this.genColormap(_e.colormap,this.opacityscale));var Se=_e.field||_e.coords&&_e.coords[2]||null,Te=!1;if(Se||(Se=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in _e||"coords"in _e){var Pe=(Se.shape[0]+2)*(Se.shape[1]+2);Pe>this._field[2].data.length&&(_.freeFloat(this._field[2].data),this._field[2].data=_.mallocFloat(u.nextPow2(Pe))),this._field[2]=R(this._field[2].data,[Se.shape[0]+2,Se.shape[1]+2]),this.padField(this._field[2],Se),this.shape=Se.shape.slice();for(var Ie=this.shape,ze=0;ze<2;++ze)this._field[2].size>this._field[ze].data.length&&(_.freeFloat(this._field[ze].data),this._field[ze].data=_.mallocFloat(this._field[2].size)),this._field[ze]=R(this._field[ze].data,[Ie[0]+2,Ie[1]+2]);if(_e.coords){var De=_e.coords;if(!Array.isArray(De)||De.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ze=0;ze<2;++ze){var He=De[ze];for(Le=0;Le<2;++Le)if(He.shape[Le]!==Ie[Le])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ze],He)}}else if(_e.ticks){var Ve=_e.ticks;if(!Array.isArray(Ve)||Ve.length!==2)throw new Error("gl-surface: invalid ticks");for(ze=0;ze<2;++ze){var $e=Ve[ze];if((Array.isArray($e)||$e.length)&&($e=R($e)),$e.shape[0]!==Ie[ze])throw new Error("gl-surface: invalid tick length");var Oe=R($e.data,Ie);Oe.stride[ze]=$e.stride[0],Oe.stride[1^ze]=0,this.padField(this._field[ze],Oe)}}else{for(ze=0;ze<2;++ze){var ke=[0,0];ke[ze]=1,this._field[ze]=R(this._field[ze].data,[Ie[0]+2,Ie[1]+2],ke,0)}this._field[0].set(0,0,0);for(var Le=0;Le0){for(var ar=0;ar<5;++ar)it.pop();_t-=1}continue e}it.push(Xt[0],Xt[1],Pt[0],Pt[1],Xt[2]),_t+=1}}Ht.push(_t)}this._contourOffsets[at]=xt,this._contourCounts[at]=Ht}var Fn=_.mallocFloat(it.length);for(ze=0;zeU||j[1]<0||j[1]>U)throw new Error("gl-texture2d: Invalid texture size");var X=E(j,$.stride.slice()),te=0;Q==="float32"?te=z.FLOAT:Q==="float64"?(te=z.FLOAT,X=!1,Q="float32"):Q==="uint8"?te=z.UNSIGNED_BYTE:(te=z.UNSIGNED_BYTE,X=!1,Q="uint8");var W,K,oe=0;if(j.length===2)oe=z.LUMINANCE,j=[j[0],j[1],1],$=u($.data,j,[$.stride[0],$.stride[1],1],$.offset);else{if(j.length!==3)throw new Error("gl-texture2d: Invalid shape for texture");if(j[2]===1)oe=z.ALPHA;else if(j[2]===2)oe=z.LUMINANCE_ALPHA;else if(j[2]===3)oe=z.RGB;else{if(j[2]!==4)throw new Error("gl-texture2d: Invalid shape for pixel coords");oe=z.RGBA}}te!==z.FLOAT||z.getExtension("OES_texture_float")||(te=z.UNSIGNED_BYTE,X=!1);var q=$.size;if(X)W=$.offset===0&&$.data.length===q?$.data:$.data.subarray($.offset,$.offset+q);else{var Y=[j[2],j[2]*j[0],1];K=m.malloc(q,Q);var ee=u(K,j,Y,0);Q!=="float32"&&Q!=="float64"||te!==z.UNSIGNED_BYTE?h.assign(ee,$):x(ee,$),W=K.subarray(0,q)}var me=C(z);return z.texImage2D(z.TEXTURE_2D,0,oe,j[0],j[1],0,oe,te,W),X||m.free(K),new M(z,me,j[0],j[1],oe,te)}(D,k)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")};var v=null,_=null,S=null;function A(D){return typeof HTMLCanvasElement<"u"&&D instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&D instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&D instanceof HTMLVideoElement||typeof ImageData<"u"&&D instanceof ImageData}var x=function(D,k){h.muls(D,k,255)};function R(D,k,I){var z=D.gl,$=z.getParameter(z.MAX_TEXTURE_SIZE);if(k<0||k>$||I<0||I>$)throw new Error("gl-texture2d: Invalid texture size");return D._shape=[k,I],D.bind(),z.texImage2D(z.TEXTURE_2D,0,D.format,k,I,0,D.format,D.type,null),D._mipLevels=[0],D}function M(D,k,I,z,$,Q){this.gl=D,this.handle=k,this.format=$,this.type=Q,this._shape=[I,z],this._mipLevels=[0],this._magFilter=D.NEAREST,this._minFilter=D.NEAREST,this._wrapS=D.CLAMP_TO_EDGE,this._wrapT=D.CLAMP_TO_EDGE,this._anisoSamples=1;var j=this,U=[this._wrapS,this._wrapT];Object.defineProperties(U,[{get:function(){return j._wrapS},set:function(te){return j.wrapS=te}},{get:function(){return j._wrapT},set:function(te){return j.wrapT=te}}]),this._wrapVector=U;var X=[this._shape[0],this._shape[1]];Object.defineProperties(X,[{get:function(){return j._shape[0]},set:function(te){return j.width=te}},{get:function(){return j._shape[1]},set:function(te){return j.height=te}}]),this._shapeVector=X}var T=M.prototype;function E(D,k){return D.length===3?k[2]===1&&k[1]===D[0]*D[2]&&k[0]===D[2]:k[0]===1&&k[1]===D[0]}function C(D){var k=D.createTexture();return D.bindTexture(D.TEXTURE_2D,k),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_MIN_FILTER,D.NEAREST),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_MAG_FILTER,D.NEAREST),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_S,D.CLAMP_TO_EDGE),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_T,D.CLAMP_TO_EDGE),k}function L(D,k,I,z,$){var Q=D.getParameter(D.MAX_TEXTURE_SIZE);if(k<0||k>Q||I<0||I>Q)throw new Error("gl-texture2d: Invalid texture shape");if($===D.FLOAT&&!D.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var j=C(D);return D.texImage2D(D.TEXTURE_2D,0,z,k,I,0,z,$,null),new M(D,j,k,I,z,$)}Object.defineProperties(T,{minFilter:{get:function(){return this._minFilter},set:function(D){this.bind();var k=this.gl;if(this.type===k.FLOAT&&v.indexOf(D)>=0&&(k.getExtension("OES_texture_float_linear")||(D=k.NEAREST)),_.indexOf(D)<0)throw new Error("gl-texture2d: Unknown filter mode "+D);return k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,D),this._minFilter=D}},magFilter:{get:function(){return this._magFilter},set:function(D){this.bind();var k=this.gl;if(this.type===k.FLOAT&&v.indexOf(D)>=0&&(k.getExtension("OES_texture_float_linear")||(D=k.NEAREST)),_.indexOf(D)<0)throw new Error("gl-texture2d: Unknown filter mode "+D);return k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,D),this._magFilter=D}},mipSamples:{get:function(){return this._anisoSamples},set:function(D){var k=this._anisoSamples;if(this._anisoSamples=0|Math.max(D,1),k!==this._anisoSamples){var I=this.gl.getExtension("EXT_texture_filter_anisotropic");I&&this.gl.texParameterf(this.gl.TEXTURE_2D,I.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(D){if(this.bind(),S.indexOf(D)<0)throw new Error("gl-texture2d: Unknown wrap mode "+D);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,D),this._wrapS=D}},wrapT:{get:function(){return this._wrapT},set:function(D){if(this.bind(),S.indexOf(D)<0)throw new Error("gl-texture2d: Unknown wrap mode "+D);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,D),this._wrapT=D}},wrap:{get:function(){return this._wrapVector},set:function(D){if(Array.isArray(D)||(D=[D,D]),D.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var k=0;k<2;++k)if(S.indexOf(D[k])<0)throw new Error("gl-texture2d: Unknown wrap mode "+D);this._wrapS=D[0],this._wrapT=D[1];var I=this.gl;return this.bind(),I.texParameteri(I.TEXTURE_2D,I.TEXTURE_WRAP_S,this._wrapS),I.texParameteri(I.TEXTURE_2D,I.TEXTURE_WRAP_T,this._wrapT),D}},shape:{get:function(){return this._shapeVector},set:function(D){if(Array.isArray(D)){if(D.length!==2)throw new Error("gl-texture2d: Invalid texture shape")}else D=[0|D,0|D];return R(this,0|D[0],0|D[1]),[0|D[0],0|D[1]]}},width:{get:function(){return this._shape[0]},set:function(D){return R(this,D|=0,this._shape[1]),D}},height:{get:function(){return this._shape[1]},set:function(D){return D|=0,R(this,this._shape[0],D),D}}}),T.bind=function(D){var k=this.gl;return D!==void 0&&k.activeTexture(k.TEXTURE0+(0|D)),k.bindTexture(k.TEXTURE_2D,this.handle),D!==void 0?0|D:k.getParameter(k.ACTIVE_TEXTURE)-k.TEXTURE0},T.dispose=function(){this.gl.deleteTexture(this.handle)},T.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var D=Math.min(this._shape[0],this._shape[1]),k=0;D>0;++k,D>>>=1)this._mipLevels.indexOf(k)<0&&this._mipLevels.push(k)},T.setPixels=function(D,k,I,z){var $=this.gl;this.bind(),Array.isArray(k)?(z=I,I=0|k[1],k=0|k[0]):(k=k||0,I=I||0),z=z||0;var Q=A(D)?D:D.raw;if(Q)this._mipLevels.indexOf(z)<0?($.texImage2D($.TEXTURE_2D,0,this.format,this.format,this.type,Q),this._mipLevels.push(z)):$.texSubImage2D($.TEXTURE_2D,z,k,I,this.format,this.type,Q);else{if(!(D.shape&&D.stride&&D.data))throw new Error("gl-texture2d: Unsupported data type");if(D.shape.length<2||k+D.shape[1]>this._shape[1]>>>z||I+D.shape[0]>this._shape[0]>>>z||k<0||I<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");(function(j,U,X,te,W,K,oe,q){var Y=q.dtype,ee=q.shape.slice();if(ee.length<2||ee.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var me=0,he=0,se=E(ee,q.stride.slice());if(Y==="float32"?me=j.FLOAT:Y==="float64"?(me=j.FLOAT,se=!1,Y="float32"):Y==="uint8"?me=j.UNSIGNED_BYTE:(me=j.UNSIGNED_BYTE,se=!1,Y="uint8"),ee.length===2)he=j.LUMINANCE,ee=[ee[0],ee[1],1],q=u(q.data,ee,[q.stride[0],q.stride[1],1],q.offset);else{if(ee.length!==3)throw new Error("gl-texture2d: Invalid shape for texture");if(ee[2]===1)he=j.ALPHA;else if(ee[2]===2)he=j.LUMINANCE_ALPHA;else if(ee[2]===3)he=j.RGB;else{if(ee[2]!==4)throw new Error("gl-texture2d: Invalid shape for pixel coords");he=j.RGBA}ee[2]}if(he!==j.LUMINANCE&&he!==j.ALPHA||W!==j.LUMINANCE&&W!==j.ALPHA||(he=W),he!==W)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ae=q.size,ce=oe.indexOf(te)<0;if(ce&&oe.push(te),me===K&&se)q.offset===0&&q.data.length===ae?ce?j.texImage2D(j.TEXTURE_2D,te,W,ee[0],ee[1],0,W,K,q.data):j.texSubImage2D(j.TEXTURE_2D,te,U,X,ee[0],ee[1],W,K,q.data):ce?j.texImage2D(j.TEXTURE_2D,te,W,ee[0],ee[1],0,W,K,q.data.subarray(q.offset,q.offset+ae)):j.texSubImage2D(j.TEXTURE_2D,te,U,X,ee[0],ee[1],W,K,q.data.subarray(q.offset,q.offset+ae));else{var de;de=K===j.FLOAT?m.mallocFloat32(ae):m.mallocUint8(ae);var ve=u(de,ee,[ee[2],ee[2]*ee[0],1]);me===j.FLOAT&&K===j.UNSIGNED_BYTE?x(ve,q):h.assign(ve,q),ce?j.texImage2D(j.TEXTURE_2D,te,W,ee[0],ee[1],0,W,K,de.subarray(0,ae)):j.texSubImage2D(j.TEXTURE_2D,te,U,X,ee[0],ee[1],W,K,de.subarray(0,ae)),K===j.FLOAT?m.freeFloat32(de):m.freeUint8(de)}})($,k,I,z,this.format,this.type,this._mipLevels,D)}}},3056:function(y){y.exports=function(p,a,u){a?a.bind():p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,null);var h=0|p.getParameter(p.MAX_VERTEX_ATTRIBS);if(u){if(u.length>h)throw new Error("gl-vao: Too many vertex attributes");for(var m=0;m1?0:Math.acos(x)};var u=a(5415),h=a(899),m=a(9305)},8827:function(y){y.exports=function(p,a){return p[0]=Math.ceil(a[0]),p[1]=Math.ceil(a[1]),p[2]=Math.ceil(a[2]),p}},7622:function(y){y.exports=function(p){var a=new Float32Array(3);return a[0]=p[0],a[1]=p[1],a[2]=p[2],a}},8782:function(y){y.exports=function(p,a){return p[0]=a[0],p[1]=a[1],p[2]=a[2],p}},8501:function(y){y.exports=function(){var p=new Float32Array(3);return p[0]=0,p[1]=0,p[2]=0,p}},903:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[0],S=u[1],A=u[2];return p[0]=m*A-v*S,p[1]=v*_-h*A,p[2]=h*S-m*_,p}},5981:function(y,p,a){y.exports=a(8288)},8288:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2];return Math.sqrt(u*u+h*h+m*m)}},8629:function(y,p,a){y.exports=a(7979)},7979:function(y){y.exports=function(p,a,u){return p[0]=a[0]/u[0],p[1]=a[1]/u[1],p[2]=a[2]/u[2],p}},9305:function(y){y.exports=function(p,a){return p[0]*a[0]+p[1]*a[1]+p[2]*a[2]}},154:function(y){y.exports=1e-6},4932:function(y,p,a){y.exports=function(h,m){var v=h[0],_=h[1],S=h[2],A=m[0],x=m[1],R=m[2];return Math.abs(v-A)<=u*Math.max(1,Math.abs(v),Math.abs(A))&&Math.abs(_-x)<=u*Math.max(1,Math.abs(_),Math.abs(x))&&Math.abs(S-R)<=u*Math.max(1,Math.abs(S),Math.abs(R))};var u=a(154)},5777:function(y){y.exports=function(p,a){return p[0]===a[0]&&p[1]===a[1]&&p[2]===a[2]}},3306:function(y){y.exports=function(p,a){return p[0]=Math.floor(a[0]),p[1]=Math.floor(a[1]),p[2]=Math.floor(a[2]),p}},7447:function(y,p,a){y.exports=function(h,m,v,_,S,A){var x,R;for(m||(m=3),v||(v=0),R=_?Math.min(_*m+v,h.length):h.length,x=v;x0&&(v=1/Math.sqrt(v),p[0]=a[0]*v,p[1]=a[1]*v,p[2]=a[2]*v),p}},6660:function(y){y.exports=function(p,a){a=a||1;var u=2*Math.random()*Math.PI,h=2*Math.random()-1,m=Math.sqrt(1-h*h)*a;return p[0]=Math.cos(u)*m,p[1]=Math.sin(u)*m,p[2]=h*a,p}},392:function(y){y.exports=function(p,a,u,h){var m=u[1],v=u[2],_=a[1]-m,S=a[2]-v,A=Math.sin(h),x=Math.cos(h);return p[0]=a[0],p[1]=m+_*x-S*A,p[2]=v+_*A+S*x,p}},3222:function(y){y.exports=function(p,a,u,h){var m=u[0],v=u[2],_=a[0]-m,S=a[2]-v,A=Math.sin(h),x=Math.cos(h);return p[0]=m+S*A+_*x,p[1]=a[1],p[2]=v+S*x-_*A,p}},3388:function(y){y.exports=function(p,a,u,h){var m=u[0],v=u[1],_=a[0]-m,S=a[1]-v,A=Math.sin(h),x=Math.cos(h);return p[0]=m+_*x-S*A,p[1]=v+_*A+S*x,p[2]=a[2],p}},1624:function(y){y.exports=function(p,a){return p[0]=Math.round(a[0]),p[1]=Math.round(a[1]),p[2]=Math.round(a[2]),p}},5685:function(y){y.exports=function(p,a,u){return p[0]=a[0]*u,p[1]=a[1]*u,p[2]=a[2]*u,p}},6722:function(y){y.exports=function(p,a,u,h){return p[0]=a[0]+u[0]*h,p[1]=a[1]+u[1]*h,p[2]=a[2]+u[2]*h,p}},831:function(y){y.exports=function(p,a,u,h){return p[0]=a,p[1]=u,p[2]=h,p}},5294:function(y,p,a){y.exports=a(6403)},3303:function(y,p,a){y.exports=a(4337)},6403:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2];return u*u+h*h+m*m}},4337:function(y){y.exports=function(p){var a=p[0],u=p[1],h=p[2];return a*a+u*u+h*h}},8921:function(y,p,a){y.exports=a(911)},911:function(y){y.exports=function(p,a,u){return p[0]=a[0]-u[0],p[1]=a[1]-u[1],p[2]=a[2]-u[2],p}},9908:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2];return p[0]=h*u[0]+m*u[3]+v*u[6],p[1]=h*u[1]+m*u[4]+v*u[7],p[2]=h*u[2]+m*u[5]+v*u[8],p}},3255:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[3]*h+u[7]*m+u[11]*v+u[15];return _=_||1,p[0]=(u[0]*h+u[4]*m+u[8]*v+u[12])/_,p[1]=(u[1]*h+u[5]*m+u[9]*v+u[13])/_,p[2]=(u[2]*h+u[6]*m+u[10]*v+u[14])/_,p}},6568:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[0],S=u[1],A=u[2],x=u[3],R=x*h+S*v-A*m,M=x*m+A*h-_*v,T=x*v+_*m-S*h,E=-_*h-S*m-A*v;return p[0]=R*x+E*-_+M*-A-T*-S,p[1]=M*x+E*-S+T*-_-R*-A,p[2]=T*x+E*-A+R*-S-M*-_,p}},3433:function(y){y.exports=function(p,a,u){return p[0]=a[0]+u[0],p[1]=a[1]+u[1],p[2]=a[2]+u[2],p[3]=a[3]+u[3],p}},1413:function(y){y.exports=function(p){var a=new Float32Array(4);return a[0]=p[0],a[1]=p[1],a[2]=p[2],a[3]=p[3],a}},3470:function(y){y.exports=function(p,a){return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p}},5313:function(y){y.exports=function(){var p=new Float32Array(4);return p[0]=0,p[1]=0,p[2]=0,p[3]=0,p}},5446:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2],v=a[3]-p[3];return Math.sqrt(u*u+h*h+m*m+v*v)}},205:function(y){y.exports=function(p,a,u){return p[0]=a[0]/u[0],p[1]=a[1]/u[1],p[2]=a[2]/u[2],p[3]=a[3]/u[3],p}},4242:function(y){y.exports=function(p,a){return p[0]*a[0]+p[1]*a[1]+p[2]*a[2]+p[3]*a[3]}},5680:function(y){y.exports=function(p,a,u,h){var m=new Float32Array(4);return m[0]=p,m[1]=a,m[2]=u,m[3]=h,m}},4020:function(y,p,a){y.exports={create:a(5313),clone:a(1413),fromValues:a(5680),copy:a(3470),set:a(6453),add:a(3433),subtract:a(2705),multiply:a(746),divide:a(205),min:a(2170),max:a(3030),scale:a(5510),scaleAndAdd:a(4224),distance:a(5446),squaredDistance:a(1542),length:a(8177),squaredLength:a(9037),negate:a(6459),inverse:a(8057),normalize:a(381),dot:a(4242),lerp:a(8746),random:a(3770),transformMat4:a(6342),transformQuat:a(5022)}},8057:function(y){y.exports=function(p,a){return p[0]=1/a[0],p[1]=1/a[1],p[2]=1/a[2],p[3]=1/a[3],p}},8177:function(y){y.exports=function(p){var a=p[0],u=p[1],h=p[2],m=p[3];return Math.sqrt(a*a+u*u+h*h+m*m)}},8746:function(y){y.exports=function(p,a,u,h){var m=a[0],v=a[1],_=a[2],S=a[3];return p[0]=m+h*(u[0]-m),p[1]=v+h*(u[1]-v),p[2]=_+h*(u[2]-_),p[3]=S+h*(u[3]-S),p}},3030:function(y){y.exports=function(p,a,u){return p[0]=Math.max(a[0],u[0]),p[1]=Math.max(a[1],u[1]),p[2]=Math.max(a[2],u[2]),p[3]=Math.max(a[3],u[3]),p}},2170:function(y){y.exports=function(p,a,u){return p[0]=Math.min(a[0],u[0]),p[1]=Math.min(a[1],u[1]),p[2]=Math.min(a[2],u[2]),p[3]=Math.min(a[3],u[3]),p}},746:function(y){y.exports=function(p,a,u){return p[0]=a[0]*u[0],p[1]=a[1]*u[1],p[2]=a[2]*u[2],p[3]=a[3]*u[3],p}},6459:function(y){y.exports=function(p,a){return p[0]=-a[0],p[1]=-a[1],p[2]=-a[2],p[3]=-a[3],p}},381:function(y){y.exports=function(p,a){var u=a[0],h=a[1],m=a[2],v=a[3],_=u*u+h*h+m*m+v*v;return _>0&&(_=1/Math.sqrt(_),p[0]=u*_,p[1]=h*_,p[2]=m*_,p[3]=v*_),p}},3770:function(y,p,a){var u=a(381),h=a(5510);y.exports=function(m,v){return v=v||1,m[0]=Math.random(),m[1]=Math.random(),m[2]=Math.random(),m[3]=Math.random(),u(m,m),h(m,m,v),m}},5510:function(y){y.exports=function(p,a,u){return p[0]=a[0]*u,p[1]=a[1]*u,p[2]=a[2]*u,p[3]=a[3]*u,p}},4224:function(y){y.exports=function(p,a,u,h){return p[0]=a[0]+u[0]*h,p[1]=a[1]+u[1]*h,p[2]=a[2]+u[2]*h,p[3]=a[3]+u[3]*h,p}},6453:function(y){y.exports=function(p,a,u,h,m){return p[0]=a,p[1]=u,p[2]=h,p[3]=m,p}},1542:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2],v=a[3]-p[3];return u*u+h*h+m*m+v*v}},9037:function(y){y.exports=function(p){var a=p[0],u=p[1],h=p[2],m=p[3];return a*a+u*u+h*h+m*m}},2705:function(y){y.exports=function(p,a,u){return p[0]=a[0]-u[0],p[1]=a[1]-u[1],p[2]=a[2]-u[2],p[3]=a[3]-u[3],p}},6342:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=a[3];return p[0]=u[0]*h+u[4]*m+u[8]*v+u[12]*_,p[1]=u[1]*h+u[5]*m+u[9]*v+u[13]*_,p[2]=u[2]*h+u[6]*m+u[10]*v+u[14]*_,p[3]=u[3]*h+u[7]*m+u[11]*v+u[15]*_,p}},5022:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[0],S=u[1],A=u[2],x=u[3],R=x*h+S*v-A*m,M=x*m+A*h-_*v,T=x*v+_*m-S*h,E=-_*h-S*m-A*v;return p[0]=R*x+E*-_+M*-A-T*-S,p[1]=M*x+E*-S+T*-_-R*-A,p[2]=T*x+E*-A+R*-S-M*-_,p[3]=a[3],p}},9365:function(y,p,a){var u=a(8096),h=a(7896);y.exports=function(m){for(var v=Array.isArray(m)?m:u(m),_=0;_He&&$e>0){var Oe=(Ve[$e][0]-He)/(Ve[$e][0]-Ve[$e-1][0]);return Ve[$e][1]*(1-Oe)+Oe*Ve[$e-1][1]}}return 1}(ze/255,Se):Ie[3];return De<1&&(Te=!0),[Ie[0],Ie[1],Ie[2],255*De]})]);return A.divseq(Pe,255),this.hasAlphaScale=Te,Pe},oe.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},oe.isOpaque=function(){return!this.isTransparent()},oe.pickSlots=1,oe.setPickBase=function(_e){this.pickId=_e};var q=[0,0,0],Y={showSurface:!1,showContour:!1,projections:[j.slice(),j.slice(),j.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ee(_e,Se){var Te,Pe,Ie,ze=Se.axes&&Se.axes.lastCubeProps.axis||q,De=Se.showSurface,He=Se.showContour;for(Te=0;Te<3;++Te)for(De=De||Se.surfaceProject[Te],Pe=0;Pe<3;++Pe)He=He||Se.contourProject[Te][Pe];for(Te=0;Te<3;++Te){var Ve=Y.projections[Te];for(Pe=0;Pe<16;++Pe)Ve[Pe]=0;for(Pe=0;Pe<4;++Pe)Ve[5*Pe]=1;Ve[5*Te]=0,Ve[12+Te]=Se.axesBounds[+(ze[Te]>0)][Te],T(Ve,_e.model,Ve);var $e=Y.clipBounds[Te];for(Ie=0;Ie<2;++Ie)for(Pe=0;Pe<3;++Pe)$e[Ie][Pe]=_e.clipBounds[Ie][Pe];$e[0][Te]=-1e8,$e[1][Te]=1e8}return Y.showSurface=De,Y.showContour=He,Y}var me={model:j,view:j,projection:j,inverseModel:j.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},he=j.slice(),se=[1,0,0,0,1,0,0,0,1];function ae(_e,Se){_e=_e||{};var Te=this.gl;Te.disable(Te.CULL_FACE),this._colorMap.bind(0);var Pe=me;Pe.model=_e.model||j,Pe.view=_e.view||j,Pe.projection=_e.projection||j,Pe.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],Pe.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],Pe.objectOffset=this.objectOffset,Pe.contourColor=this.contourColor[0],Pe.inverseModel=E(Pe.inverseModel,Pe.model);for(var Ie=0;Ie<2;++Ie)for(var ze=Pe.clipBounds[Ie],De=0;De<3;++De)ze[De]=Math.min(Math.max(this.clipBounds[Ie][De],-1e8),1e8);Pe.kambient=this.ambientLight,Pe.kdiffuse=this.diffuseLight,Pe.kspecular=this.specularLight,Pe.roughness=this.roughness,Pe.fresnel=this.fresnel,Pe.opacity=this.opacity,Pe.height=0,Pe.permutation=se,Pe.vertexColor=this.vertexColor;var He=he;for(T(He,Pe.view,Pe.model),T(He,Pe.projection,He),E(He,He),Ie=0;Ie<3;++Ie)Pe.eyePosition[Ie]=He[12+Ie]/He[15];var Ve=He[15];for(Ie=0;Ie<3;++Ie)Ve+=this.lightPosition[Ie]*He[4*Ie+3];for(Ie=0;Ie<3;++Ie){var $e=He[12+Ie];for(De=0;De<3;++De)$e+=He[4*De+Ie]*this.lightPosition[De];Pe.lightPosition[Ie]=$e/Ve}var Oe=ee(Pe,this);if(Oe.showSurface){for(this._shader.bind(),this._shader.uniforms=Pe,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Te.TRIANGLES,this._vertexCount),Ie=0;Ie<3;++Ie)this.surfaceProject[Ie]&&this.vertexCount&&(this._shader.uniforms.model=Oe.projections[Ie],this._shader.uniforms.clipBounds=Oe.clipBounds[Ie],this._vao.draw(Te.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Oe.showContour){var ke=this._contourShader;Pe.kambient=1,Pe.kdiffuse=0,Pe.kspecular=0,Pe.opacity=1,ke.bind(),ke.uniforms=Pe;var Le=this._contourVAO;for(Le.bind(),Ie=0;Ie<3;++Ie)for(ke.uniforms.permutation=X[Ie],Te.lineWidth(this.contourWidth[Ie]*this.pixelRatio),De=0;De>4)/16)/255,Ie=Math.floor(Pe),ze=Pe-Ie,De=Se[1]*(_e.value[1]+(15&_e.value[2])/16)/255,He=Math.floor(De),Ve=De-He;Ie+=1,He+=1;var $e=Te.position;$e[0]=$e[1]=$e[2]=0;for(var Oe=0;Oe<2;++Oe)for(var ke=Oe?ze:1-ze,Le=0;Le<2;++Le)for(var We=Ie+Oe,Ue=He+Le,Ze=ke*(Le?Ve:1-Ve),Xe=0;Xe<3;++Xe)$e[Xe]+=this._field[Xe].get(We,Ue)*Ze;for(var tt=this._pickResult.level,Ee=0;Ee<3;++Ee)if(tt[Ee]=C.le(this.contourLevels[Ee],$e[Ee]),tt[Ee]<0)this.contourLevels[Ee].length>0&&(tt[Ee]=0);else if(tt[Ee]Math.abs(je-$e[Ee])&&(tt[Ee]+=1)}for(Te.index[0]=ze<.5?Ie:Ie+1,Te.index[1]=Ve<.5?He:He+1,Te.uv[0]=Pe/Se[0],Te.uv[1]=De/Se[1],Xe=0;Xe<3;++Xe)Te.dataCoordinate[Xe]=this._field[Xe].get(Te.index[0],Te.index[1]);return Te},oe.padField=function(_e,Se){var Te=Se.shape.slice(),Pe=_e.shape.slice();A.assign(_e.lo(1,1).hi(Te[0],Te[1]),Se),A.assign(_e.lo(1).hi(Te[0],1),Se.hi(Te[0],1)),A.assign(_e.lo(1,Pe[1]-1).hi(Te[0],1),Se.lo(0,Te[1]-1).hi(Te[0],1)),A.assign(_e.lo(0,1).hi(1,Te[1]),Se.hi(1)),A.assign(_e.lo(Pe[0]-1,1).hi(1,Te[1]),Se.lo(Te[0]-1)),_e.set(0,0,Se.get(0,0)),_e.set(0,Pe[1]-1,Se.get(0,Te[1]-1)),_e.set(Pe[0]-1,0,Se.get(Te[0]-1,0)),_e.set(Pe[0]-1,Pe[1]-1,Se.get(Te[0]-1,Te[1]-1))},oe.update=function(_e){_e=_e||{},this.objectOffset=_e.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in _e&&(this.contourWidth=de(_e.contourWidth,Number)),"showContour"in _e&&(this.showContour=de(_e.showContour,Boolean)),"showSurface"in _e&&(this.showSurface=!!_e.showSurface),"contourTint"in _e&&(this.contourTint=de(_e.contourTint,Boolean)),"contourColor"in _e&&(this.contourColor=ye(_e.contourColor)),"contourProject"in _e&&(this.contourProject=de(_e.contourProject,function(ir){return de(ir,Boolean)})),"surfaceProject"in _e&&(this.surfaceProject=_e.surfaceProject),"dynamicColor"in _e&&(this.dynamicColor=ye(_e.dynamicColor)),"dynamicTint"in _e&&(this.dynamicTint=de(_e.dynamicTint,Number)),"dynamicWidth"in _e&&(this.dynamicWidth=de(_e.dynamicWidth,Number)),"opacity"in _e&&(this.opacity=_e.opacity),"opacityscale"in _e&&(this.opacityscale=_e.opacityscale),"colorBounds"in _e&&(this.colorBounds=_e.colorBounds),"vertexColor"in _e&&(this.vertexColor=_e.vertexColor?1:0),"colormap"in _e&&this._colorMap.setPixels(this.genColormap(_e.colormap,this.opacityscale));var Se=_e.field||_e.coords&&_e.coords[2]||null,Te=!1;if(Se||(Se=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in _e||"coords"in _e){var Pe=(Se.shape[0]+2)*(Se.shape[1]+2);Pe>this._field[2].data.length&&(_.freeFloat(this._field[2].data),this._field[2].data=_.mallocFloat(u.nextPow2(Pe))),this._field[2]=R(this._field[2].data,[Se.shape[0]+2,Se.shape[1]+2]),this.padField(this._field[2],Se),this.shape=Se.shape.slice();for(var Ie=this.shape,ze=0;ze<2;++ze)this._field[2].size>this._field[ze].data.length&&(_.freeFloat(this._field[ze].data),this._field[ze].data=_.mallocFloat(this._field[2].size)),this._field[ze]=R(this._field[ze].data,[Ie[0]+2,Ie[1]+2]);if(_e.coords){var De=_e.coords;if(!Array.isArray(De)||De.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ze=0;ze<2;++ze){var He=De[ze];for(Le=0;Le<2;++Le)if(He.shape[Le]!==Ie[Le])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ze],He)}}else if(_e.ticks){var Ve=_e.ticks;if(!Array.isArray(Ve)||Ve.length!==2)throw new Error("gl-surface: invalid ticks");for(ze=0;ze<2;++ze){var $e=Ve[ze];if((Array.isArray($e)||$e.length)&&($e=R($e)),$e.shape[0]!==Ie[ze])throw new Error("gl-surface: invalid tick length");var Oe=R($e.data,Ie);Oe.stride[ze]=$e.stride[0],Oe.stride[1^ze]=0,this.padField(this._field[ze],Oe)}}else{for(ze=0;ze<2;++ze){var ke=[0,0];ke[ze]=1,this._field[ze]=R(this._field[ze].data,[Ie[0]+2,Ie[1]+2],ke,0)}this._field[0].set(0,0,0);for(var Le=0;Le0){for(var ar=0;ar<5;++ar)it.pop();_t-=1}continue e}it.push(Xt[0],Xt[1],Pt[0],Pt[1],Xt[2]),_t+=1}}Zt.push(_t)}this._contourOffsets[at]=xt,this._contourCounts[at]=Zt}var Fn=_.mallocFloat(it.length);for(ze=0;zeU||j[1]<0||j[1]>U)throw new Error("gl-texture2d: Invalid texture size");var X=E(j,$.stride.slice()),te=0;Q==="float32"?te=z.FLOAT:Q==="float64"?(te=z.FLOAT,X=!1,Q="float32"):Q==="uint8"?te=z.UNSIGNED_BYTE:(te=z.UNSIGNED_BYTE,X=!1,Q="uint8");var W,K,oe=0;if(j.length===2)oe=z.LUMINANCE,j=[j[0],j[1],1],$=u($.data,j,[$.stride[0],$.stride[1],1],$.offset);else{if(j.length!==3)throw new Error("gl-texture2d: Invalid shape for texture");if(j[2]===1)oe=z.ALPHA;else if(j[2]===2)oe=z.LUMINANCE_ALPHA;else if(j[2]===3)oe=z.RGB;else{if(j[2]!==4)throw new Error("gl-texture2d: Invalid shape for pixel coords");oe=z.RGBA}}te!==z.FLOAT||z.getExtension("OES_texture_float")||(te=z.UNSIGNED_BYTE,X=!1);var q=$.size;if(X)W=$.offset===0&&$.data.length===q?$.data:$.data.subarray($.offset,$.offset+q);else{var Y=[j[2],j[2]*j[0],1];K=m.malloc(q,Q);var ee=u(K,j,Y,0);Q!=="float32"&&Q!=="float64"||te!==z.UNSIGNED_BYTE?h.assign(ee,$):x(ee,$),W=K.subarray(0,q)}var me=C(z);return z.texImage2D(z.TEXTURE_2D,0,oe,j[0],j[1],0,oe,te,W),X||m.free(K),new M(z,me,j[0],j[1],oe,te)}(D,k)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")};var v=null,_=null,S=null;function A(D){return typeof HTMLCanvasElement<"u"&&D instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&D instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&D instanceof HTMLVideoElement||typeof ImageData<"u"&&D instanceof ImageData}var x=function(D,k){h.muls(D,k,255)};function R(D,k,I){var z=D.gl,$=z.getParameter(z.MAX_TEXTURE_SIZE);if(k<0||k>$||I<0||I>$)throw new Error("gl-texture2d: Invalid texture size");return D._shape=[k,I],D.bind(),z.texImage2D(z.TEXTURE_2D,0,D.format,k,I,0,D.format,D.type,null),D._mipLevels=[0],D}function M(D,k,I,z,$,Q){this.gl=D,this.handle=k,this.format=$,this.type=Q,this._shape=[I,z],this._mipLevels=[0],this._magFilter=D.NEAREST,this._minFilter=D.NEAREST,this._wrapS=D.CLAMP_TO_EDGE,this._wrapT=D.CLAMP_TO_EDGE,this._anisoSamples=1;var j=this,U=[this._wrapS,this._wrapT];Object.defineProperties(U,[{get:function(){return j._wrapS},set:function(te){return j.wrapS=te}},{get:function(){return j._wrapT},set:function(te){return j.wrapT=te}}]),this._wrapVector=U;var X=[this._shape[0],this._shape[1]];Object.defineProperties(X,[{get:function(){return j._shape[0]},set:function(te){return j.width=te}},{get:function(){return j._shape[1]},set:function(te){return j.height=te}}]),this._shapeVector=X}var T=M.prototype;function E(D,k){return D.length===3?k[2]===1&&k[1]===D[0]*D[2]&&k[0]===D[2]:k[0]===1&&k[1]===D[0]}function C(D){var k=D.createTexture();return D.bindTexture(D.TEXTURE_2D,k),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_MIN_FILTER,D.NEAREST),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_MAG_FILTER,D.NEAREST),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_S,D.CLAMP_TO_EDGE),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_T,D.CLAMP_TO_EDGE),k}function L(D,k,I,z,$){var Q=D.getParameter(D.MAX_TEXTURE_SIZE);if(k<0||k>Q||I<0||I>Q)throw new Error("gl-texture2d: Invalid texture shape");if($===D.FLOAT&&!D.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var j=C(D);return D.texImage2D(D.TEXTURE_2D,0,z,k,I,0,z,$,null),new M(D,j,k,I,z,$)}Object.defineProperties(T,{minFilter:{get:function(){return this._minFilter},set:function(D){this.bind();var k=this.gl;if(this.type===k.FLOAT&&v.indexOf(D)>=0&&(k.getExtension("OES_texture_float_linear")||(D=k.NEAREST)),_.indexOf(D)<0)throw new Error("gl-texture2d: Unknown filter mode "+D);return k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,D),this._minFilter=D}},magFilter:{get:function(){return this._magFilter},set:function(D){this.bind();var k=this.gl;if(this.type===k.FLOAT&&v.indexOf(D)>=0&&(k.getExtension("OES_texture_float_linear")||(D=k.NEAREST)),_.indexOf(D)<0)throw new Error("gl-texture2d: Unknown filter mode "+D);return k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,D),this._magFilter=D}},mipSamples:{get:function(){return this._anisoSamples},set:function(D){var k=this._anisoSamples;if(this._anisoSamples=0|Math.max(D,1),k!==this._anisoSamples){var I=this.gl.getExtension("EXT_texture_filter_anisotropic");I&&this.gl.texParameterf(this.gl.TEXTURE_2D,I.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(D){if(this.bind(),S.indexOf(D)<0)throw new Error("gl-texture2d: Unknown wrap mode "+D);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,D),this._wrapS=D}},wrapT:{get:function(){return this._wrapT},set:function(D){if(this.bind(),S.indexOf(D)<0)throw new Error("gl-texture2d: Unknown wrap mode "+D);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,D),this._wrapT=D}},wrap:{get:function(){return this._wrapVector},set:function(D){if(Array.isArray(D)||(D=[D,D]),D.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var k=0;k<2;++k)if(S.indexOf(D[k])<0)throw new Error("gl-texture2d: Unknown wrap mode "+D);this._wrapS=D[0],this._wrapT=D[1];var I=this.gl;return this.bind(),I.texParameteri(I.TEXTURE_2D,I.TEXTURE_WRAP_S,this._wrapS),I.texParameteri(I.TEXTURE_2D,I.TEXTURE_WRAP_T,this._wrapT),D}},shape:{get:function(){return this._shapeVector},set:function(D){if(Array.isArray(D)){if(D.length!==2)throw new Error("gl-texture2d: Invalid texture shape")}else D=[0|D,0|D];return R(this,0|D[0],0|D[1]),[0|D[0],0|D[1]]}},width:{get:function(){return this._shape[0]},set:function(D){return R(this,D|=0,this._shape[1]),D}},height:{get:function(){return this._shape[1]},set:function(D){return D|=0,R(this,this._shape[0],D),D}}}),T.bind=function(D){var k=this.gl;return D!==void 0&&k.activeTexture(k.TEXTURE0+(0|D)),k.bindTexture(k.TEXTURE_2D,this.handle),D!==void 0?0|D:k.getParameter(k.ACTIVE_TEXTURE)-k.TEXTURE0},T.dispose=function(){this.gl.deleteTexture(this.handle)},T.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var D=Math.min(this._shape[0],this._shape[1]),k=0;D>0;++k,D>>>=1)this._mipLevels.indexOf(k)<0&&this._mipLevels.push(k)},T.setPixels=function(D,k,I,z){var $=this.gl;this.bind(),Array.isArray(k)?(z=I,I=0|k[1],k=0|k[0]):(k=k||0,I=I||0),z=z||0;var Q=A(D)?D:D.raw;if(Q)this._mipLevels.indexOf(z)<0?($.texImage2D($.TEXTURE_2D,0,this.format,this.format,this.type,Q),this._mipLevels.push(z)):$.texSubImage2D($.TEXTURE_2D,z,k,I,this.format,this.type,Q);else{if(!(D.shape&&D.stride&&D.data))throw new Error("gl-texture2d: Unsupported data type");if(D.shape.length<2||k+D.shape[1]>this._shape[1]>>>z||I+D.shape[0]>this._shape[0]>>>z||k<0||I<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");(function(j,U,X,te,W,K,oe,q){var Y=q.dtype,ee=q.shape.slice();if(ee.length<2||ee.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var me=0,he=0,se=E(ee,q.stride.slice());if(Y==="float32"?me=j.FLOAT:Y==="float64"?(me=j.FLOAT,se=!1,Y="float32"):Y==="uint8"?me=j.UNSIGNED_BYTE:(me=j.UNSIGNED_BYTE,se=!1,Y="uint8"),ee.length===2)he=j.LUMINANCE,ee=[ee[0],ee[1],1],q=u(q.data,ee,[q.stride[0],q.stride[1],1],q.offset);else{if(ee.length!==3)throw new Error("gl-texture2d: Invalid shape for texture");if(ee[2]===1)he=j.ALPHA;else if(ee[2]===2)he=j.LUMINANCE_ALPHA;else if(ee[2]===3)he=j.RGB;else{if(ee[2]!==4)throw new Error("gl-texture2d: Invalid shape for pixel coords");he=j.RGBA}ee[2]}if(he!==j.LUMINANCE&&he!==j.ALPHA||W!==j.LUMINANCE&&W!==j.ALPHA||(he=W),he!==W)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ae=q.size,ce=oe.indexOf(te)<0;if(ce&&oe.push(te),me===K&&se)q.offset===0&&q.data.length===ae?ce?j.texImage2D(j.TEXTURE_2D,te,W,ee[0],ee[1],0,W,K,q.data):j.texSubImage2D(j.TEXTURE_2D,te,U,X,ee[0],ee[1],W,K,q.data):ce?j.texImage2D(j.TEXTURE_2D,te,W,ee[0],ee[1],0,W,K,q.data.subarray(q.offset,q.offset+ae)):j.texSubImage2D(j.TEXTURE_2D,te,U,X,ee[0],ee[1],W,K,q.data.subarray(q.offset,q.offset+ae));else{var de;de=K===j.FLOAT?m.mallocFloat32(ae):m.mallocUint8(ae);var ve=u(de,ee,[ee[2],ee[2]*ee[0],1]);me===j.FLOAT&&K===j.UNSIGNED_BYTE?x(ve,q):h.assign(ve,q),ce?j.texImage2D(j.TEXTURE_2D,te,W,ee[0],ee[1],0,W,K,de.subarray(0,ae)):j.texSubImage2D(j.TEXTURE_2D,te,U,X,ee[0],ee[1],W,K,de.subarray(0,ae)),K===j.FLOAT?m.freeFloat32(de):m.freeUint8(de)}})($,k,I,z,this.format,this.type,this._mipLevels,D)}}},3056:function(y){y.exports=function(p,a,u){a?a.bind():p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,null);var h=0|p.getParameter(p.MAX_VERTEX_ATTRIBS);if(u){if(u.length>h)throw new Error("gl-vao: Too many vertex attributes");for(var m=0;m1?0:Math.acos(x)};var u=a(5415),h=a(899),m=a(9305)},8827:function(y){y.exports=function(p,a){return p[0]=Math.ceil(a[0]),p[1]=Math.ceil(a[1]),p[2]=Math.ceil(a[2]),p}},7622:function(y){y.exports=function(p){var a=new Float32Array(3);return a[0]=p[0],a[1]=p[1],a[2]=p[2],a}},8782:function(y){y.exports=function(p,a){return p[0]=a[0],p[1]=a[1],p[2]=a[2],p}},8501:function(y){y.exports=function(){var p=new Float32Array(3);return p[0]=0,p[1]=0,p[2]=0,p}},903:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[0],S=u[1],A=u[2];return p[0]=m*A-v*S,p[1]=v*_-h*A,p[2]=h*S-m*_,p}},5981:function(y,p,a){y.exports=a(8288)},8288:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2];return Math.sqrt(u*u+h*h+m*m)}},8629:function(y,p,a){y.exports=a(7979)},7979:function(y){y.exports=function(p,a,u){return p[0]=a[0]/u[0],p[1]=a[1]/u[1],p[2]=a[2]/u[2],p}},9305:function(y){y.exports=function(p,a){return p[0]*a[0]+p[1]*a[1]+p[2]*a[2]}},154:function(y){y.exports=1e-6},4932:function(y,p,a){y.exports=function(h,m){var v=h[0],_=h[1],S=h[2],A=m[0],x=m[1],R=m[2];return Math.abs(v-A)<=u*Math.max(1,Math.abs(v),Math.abs(A))&&Math.abs(_-x)<=u*Math.max(1,Math.abs(_),Math.abs(x))&&Math.abs(S-R)<=u*Math.max(1,Math.abs(S),Math.abs(R))};var u=a(154)},5777:function(y){y.exports=function(p,a){return p[0]===a[0]&&p[1]===a[1]&&p[2]===a[2]}},3306:function(y){y.exports=function(p,a){return p[0]=Math.floor(a[0]),p[1]=Math.floor(a[1]),p[2]=Math.floor(a[2]),p}},7447:function(y,p,a){y.exports=function(h,m,v,_,S,A){var x,R;for(m||(m=3),v||(v=0),R=_?Math.min(_*m+v,h.length):h.length,x=v;x0&&(v=1/Math.sqrt(v),p[0]=a[0]*v,p[1]=a[1]*v,p[2]=a[2]*v),p}},6660:function(y){y.exports=function(p,a){a=a||1;var u=2*Math.random()*Math.PI,h=2*Math.random()-1,m=Math.sqrt(1-h*h)*a;return p[0]=Math.cos(u)*m,p[1]=Math.sin(u)*m,p[2]=h*a,p}},392:function(y){y.exports=function(p,a,u,h){var m=u[1],v=u[2],_=a[1]-m,S=a[2]-v,A=Math.sin(h),x=Math.cos(h);return p[0]=a[0],p[1]=m+_*x-S*A,p[2]=v+_*A+S*x,p}},3222:function(y){y.exports=function(p,a,u,h){var m=u[0],v=u[2],_=a[0]-m,S=a[2]-v,A=Math.sin(h),x=Math.cos(h);return p[0]=m+S*A+_*x,p[1]=a[1],p[2]=v+S*x-_*A,p}},3388:function(y){y.exports=function(p,a,u,h){var m=u[0],v=u[1],_=a[0]-m,S=a[1]-v,A=Math.sin(h),x=Math.cos(h);return p[0]=m+_*x-S*A,p[1]=v+_*A+S*x,p[2]=a[2],p}},1624:function(y){y.exports=function(p,a){return p[0]=Math.round(a[0]),p[1]=Math.round(a[1]),p[2]=Math.round(a[2]),p}},5685:function(y){y.exports=function(p,a,u){return p[0]=a[0]*u,p[1]=a[1]*u,p[2]=a[2]*u,p}},6722:function(y){y.exports=function(p,a,u,h){return p[0]=a[0]+u[0]*h,p[1]=a[1]+u[1]*h,p[2]=a[2]+u[2]*h,p}},831:function(y){y.exports=function(p,a,u,h){return p[0]=a,p[1]=u,p[2]=h,p}},5294:function(y,p,a){y.exports=a(6403)},3303:function(y,p,a){y.exports=a(4337)},6403:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2];return u*u+h*h+m*m}},4337:function(y){y.exports=function(p){var a=p[0],u=p[1],h=p[2];return a*a+u*u+h*h}},8921:function(y,p,a){y.exports=a(911)},911:function(y){y.exports=function(p,a,u){return p[0]=a[0]-u[0],p[1]=a[1]-u[1],p[2]=a[2]-u[2],p}},9908:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2];return p[0]=h*u[0]+m*u[3]+v*u[6],p[1]=h*u[1]+m*u[4]+v*u[7],p[2]=h*u[2]+m*u[5]+v*u[8],p}},3255:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[3]*h+u[7]*m+u[11]*v+u[15];return _=_||1,p[0]=(u[0]*h+u[4]*m+u[8]*v+u[12])/_,p[1]=(u[1]*h+u[5]*m+u[9]*v+u[13])/_,p[2]=(u[2]*h+u[6]*m+u[10]*v+u[14])/_,p}},6568:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[0],S=u[1],A=u[2],x=u[3],R=x*h+S*v-A*m,M=x*m+A*h-_*v,T=x*v+_*m-S*h,E=-_*h-S*m-A*v;return p[0]=R*x+E*-_+M*-A-T*-S,p[1]=M*x+E*-S+T*-_-R*-A,p[2]=T*x+E*-A+R*-S-M*-_,p}},3433:function(y){y.exports=function(p,a,u){return p[0]=a[0]+u[0],p[1]=a[1]+u[1],p[2]=a[2]+u[2],p[3]=a[3]+u[3],p}},1413:function(y){y.exports=function(p){var a=new Float32Array(4);return a[0]=p[0],a[1]=p[1],a[2]=p[2],a[3]=p[3],a}},3470:function(y){y.exports=function(p,a){return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p}},5313:function(y){y.exports=function(){var p=new Float32Array(4);return p[0]=0,p[1]=0,p[2]=0,p[3]=0,p}},5446:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2],v=a[3]-p[3];return Math.sqrt(u*u+h*h+m*m+v*v)}},205:function(y){y.exports=function(p,a,u){return p[0]=a[0]/u[0],p[1]=a[1]/u[1],p[2]=a[2]/u[2],p[3]=a[3]/u[3],p}},4242:function(y){y.exports=function(p,a){return p[0]*a[0]+p[1]*a[1]+p[2]*a[2]+p[3]*a[3]}},5680:function(y){y.exports=function(p,a,u,h){var m=new Float32Array(4);return m[0]=p,m[1]=a,m[2]=u,m[3]=h,m}},4020:function(y,p,a){y.exports={create:a(5313),clone:a(1413),fromValues:a(5680),copy:a(3470),set:a(6453),add:a(3433),subtract:a(2705),multiply:a(746),divide:a(205),min:a(2170),max:a(3030),scale:a(5510),scaleAndAdd:a(4224),distance:a(5446),squaredDistance:a(1542),length:a(8177),squaredLength:a(9037),negate:a(6459),inverse:a(8057),normalize:a(381),dot:a(4242),lerp:a(8746),random:a(3770),transformMat4:a(6342),transformQuat:a(5022)}},8057:function(y){y.exports=function(p,a){return p[0]=1/a[0],p[1]=1/a[1],p[2]=1/a[2],p[3]=1/a[3],p}},8177:function(y){y.exports=function(p){var a=p[0],u=p[1],h=p[2],m=p[3];return Math.sqrt(a*a+u*u+h*h+m*m)}},8746:function(y){y.exports=function(p,a,u,h){var m=a[0],v=a[1],_=a[2],S=a[3];return p[0]=m+h*(u[0]-m),p[1]=v+h*(u[1]-v),p[2]=_+h*(u[2]-_),p[3]=S+h*(u[3]-S),p}},3030:function(y){y.exports=function(p,a,u){return p[0]=Math.max(a[0],u[0]),p[1]=Math.max(a[1],u[1]),p[2]=Math.max(a[2],u[2]),p[3]=Math.max(a[3],u[3]),p}},2170:function(y){y.exports=function(p,a,u){return p[0]=Math.min(a[0],u[0]),p[1]=Math.min(a[1],u[1]),p[2]=Math.min(a[2],u[2]),p[3]=Math.min(a[3],u[3]),p}},746:function(y){y.exports=function(p,a,u){return p[0]=a[0]*u[0],p[1]=a[1]*u[1],p[2]=a[2]*u[2],p[3]=a[3]*u[3],p}},6459:function(y){y.exports=function(p,a){return p[0]=-a[0],p[1]=-a[1],p[2]=-a[2],p[3]=-a[3],p}},381:function(y){y.exports=function(p,a){var u=a[0],h=a[1],m=a[2],v=a[3],_=u*u+h*h+m*m+v*v;return _>0&&(_=1/Math.sqrt(_),p[0]=u*_,p[1]=h*_,p[2]=m*_,p[3]=v*_),p}},3770:function(y,p,a){var u=a(381),h=a(5510);y.exports=function(m,v){return v=v||1,m[0]=Math.random(),m[1]=Math.random(),m[2]=Math.random(),m[3]=Math.random(),u(m,m),h(m,m,v),m}},5510:function(y){y.exports=function(p,a,u){return p[0]=a[0]*u,p[1]=a[1]*u,p[2]=a[2]*u,p[3]=a[3]*u,p}},4224:function(y){y.exports=function(p,a,u,h){return p[0]=a[0]+u[0]*h,p[1]=a[1]+u[1]*h,p[2]=a[2]+u[2]*h,p[3]=a[3]+u[3]*h,p}},6453:function(y){y.exports=function(p,a,u,h,m){return p[0]=a,p[1]=u,p[2]=h,p[3]=m,p}},1542:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2],v=a[3]-p[3];return u*u+h*h+m*m+v*v}},9037:function(y){y.exports=function(p){var a=p[0],u=p[1],h=p[2],m=p[3];return a*a+u*u+h*h+m*m}},2705:function(y){y.exports=function(p,a,u){return p[0]=a[0]-u[0],p[1]=a[1]-u[1],p[2]=a[2]-u[2],p[3]=a[3]-u[3],p}},6342:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=a[3];return p[0]=u[0]*h+u[4]*m+u[8]*v+u[12]*_,p[1]=u[1]*h+u[5]*m+u[9]*v+u[13]*_,p[2]=u[2]*h+u[6]*m+u[10]*v+u[14]*_,p[3]=u[3]*h+u[7]*m+u[11]*v+u[15]*_,p}},5022:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[0],S=u[1],A=u[2],x=u[3],R=x*h+S*v-A*m,M=x*m+A*h-_*v,T=x*v+_*m-S*h,E=-_*h-S*m-A*v;return p[0]=R*x+E*-_+M*-A-T*-S,p[1]=M*x+E*-S+T*-_-R*-A,p[2]=T*x+E*-A+R*-S-M*-_,p[3]=a[3],p}},9365:function(y,p,a){var u=a(8096),h=a(7896);y.exports=function(m){for(var v=Array.isArray(m)?m:u(m),_=0;_0)continue;Ue=Le.slice(0,1).join("")}return Se(Ue),he+=Ue.length,(q=q.slice(Ue.length)).length}}function Ve(){return/[^a-fA-F0-9]/.test(U)?(Se(q.join("")),oe=S,W):(q.push(U),X=U,W+1)}function $e(){return U==="."||/[eE]/.test(U)?(q.push(U),oe=C,X=U,W+1):U==="x"&&q.length===1&&q[0]==="0"?(oe=$,q.push(U),X=U,W+1):/[^\d]/.test(U)?(Se(q.join("")),oe=S,W):(q.push(U),X=U,W+1)}function Oe(){return U==="f"&&(q.push(U),X=U,W+=1),/[eE]/.test(U)?(q.push(U),X=U,W+1):(U!=="-"&&U!=="+"||!/[eE]/.test(X))&&/[^\d]/.test(U)?(Se(q.join("")),oe=S,W):(q.push(U),X=U,W+1)}function ke(){if(/[^\d\w_]/.test(U)){var Le=q.join("");return oe=_e[Le]?k:ye[Le]?D:L,Se(q.join("")),oe=S,W}return q.push(U),X=U,W+1}};var u=a(399),h=a(9746),m=a(9525),v=a(9458),_=a(3585),S=999,A=9999,x=0,R=1,M=2,T=3,E=4,C=5,L=6,D=7,k=8,I=9,z=10,$=11,Q=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"]},3585:function(y,p,a){var u=a(9525);u=u.slice().filter(function(h){return!/^(gl\_|texture)/.test(h)}),y.exports=u.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},9525:function(y){y.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},9458:function(y,p,a){var u=a(399);y.exports=u.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},399:function(y){y.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},9746:function(y){y.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},8096:function(y,p,a){var u=a(3193);y.exports=function(h,m){var v=u(m),_=[];return(_=_.concat(v(h))).concat(v(null))}},6832:function(y){y.exports=function(p){typeof p=="string"&&(p=[p]);for(var a=[].slice.call(arguments,1),u=[],h=0;h0;)for(var k=(R=D.pop()).adjacent,I=0;I<=T;++I){var z=k[I];if(z.boundary&&!(z.lastVisited<=-E)){for(var $=z.vertices,Q=0;Q<=T;++Q){var j=$[Q];C[Q]=j<0?M:L[j]}var U=this.orient();if(U>0)return z;z.lastVisited=-E,U===0&&D.push(z)}}return null},x.walk=function(R,M){var T=this.vertices.length-1,E=this.dimension,C=this.vertices,L=this.tuple,D=M?this.interior.length*Math.random()|0:this.interior.length-1,k=this.interior[D];e:for(;!k.boundary;){for(var I=k.vertices,z=k.adjacent,$=0;$<=E;++$)L[$]=C[I[$]];for(k.lastVisited=T,$=0;$<=E;++$){var Q=z[$];if(!(Q.lastVisited>=T)){var j=L[$];L[$]=R;var U=this.orient();if(L[$]=j,U<0){k=Q;continue e}Q.boundary?Q.lastVisited=-T:Q.lastVisited=T}}return}return k},x.addPeaks=function(R,M){var T=this.vertices.length-1,E=this.dimension,C=this.vertices,L=this.tuple,D=this.interior,k=this.simplices,I=[M];M.lastVisited=T,M.vertices[M.vertices.indexOf(-1)]=T,M.boundary=!1,D.push(M);for(var z=[];I.length>0;){var $=(M=I.pop()).vertices,Q=M.adjacent,j=$.indexOf(T);if(!(j<0)){for(var U=0;U<=E;++U)if(U!==j){var X=Q[U];if(X.boundary&&!(X.lastVisited>=T)){var te=X.vertices;if(X.lastVisited!==-T){for(var W=0,K=0;K<=E;++K)te[K]<0?(W=K,L[K]=R):L[K]=C[te[K]];if(this.orient()>0){te[W]=T,X.boundary=!1,D.push(X),I.push(X),X.lastVisited=T;continue}X.lastVisited=-T}var oe=X.adjacent,q=$.slice(),Y=Q.slice(),ee=new m(q,Y,!0);k.push(ee);var me=oe.indexOf(M);if(!(me<0))for(oe[me]=ee,Y[j]=X,q[U]=-1,Y[U]=M,Q[U]=ee,ee.flip(),K=0;K<=E;++K){var he=q[K];if(!(he<0||he===T)){for(var se=new Array(E-1),ae=0,ce=0;ce<=E;++ce){var de=q[ce];de<0||ce===K||(se[ae++]=de)}z.push(new v(se,ee,K))}}}}}}for(z.sort(_),U=0;U+1=0?D[I++]=k[$]:z=1&$;if(z===(1&R)){var Q=D[0];D[0]=D[1],D[1]=Q}M.push(D)}}return M}},9014:function(y,p,a){var u=a(5070);function h(I,z,$,Q,j){this.mid=I,this.left=z,this.right=$,this.leftPoints=Q,this.rightPoints=j,this.count=(z?z.count:0)+($?$.count:0)+Q.length}y.exports=function(I){return I&&I.length!==0?new D(L(I)):new D(null)};var m=h.prototype;function v(I,z){I.mid=z.mid,I.left=z.left,I.right=z.right,I.leftPoints=z.leftPoints,I.rightPoints=z.rightPoints,I.count=z.count}function _(I,z){var $=L(z);I.mid=$.mid,I.left=$.left,I.right=$.right,I.leftPoints=$.leftPoints,I.rightPoints=$.rightPoints,I.count=$.count}function S(I,z){var $=I.intervals([]);$.push(z),_(I,$)}function A(I,z){var $=I.intervals([]),Q=$.indexOf(z);return Q<0?0:($.splice(Q,1),_(I,$),1)}function x(I,z,$){for(var Q=0;Q=0&&I[Q][1]>=z;--Q){var j=$(I[Q]);if(j)return j}}function M(I,z){for(var $=0;$>1],j=[],U=[],X=[];for($=0;$3*(z+1)?S(this,I):this.left.insert(I):this.left=L([I]);else if(I[0]>this.mid)this.right?4*(this.right.count+1)>3*(z+1)?S(this,I):this.right.insert(I):this.right=L([I]);else{var $=u.ge(this.leftPoints,I,E),Q=u.ge(this.rightPoints,I,C);this.leftPoints.splice($,0,I),this.rightPoints.splice(Q,0,I)}},m.remove=function(I){var z=this.count-this.leftPoints;if(I[1]3*(z-1)?A(this,I):(U=this.left.remove(I))===2?(this.left=null,this.count-=1,1):(U===1&&(this.count-=1),U):0;if(I[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(z-1)?A(this,I):(U=this.right.remove(I))===2?(this.right=null,this.count-=1,1):(U===1&&(this.count-=1),U):0;if(this.count===1)return this.leftPoints[0]===I?2:0;if(this.leftPoints.length===1&&this.leftPoints[0]===I){if(this.left&&this.right){for(var $=this,Q=this.left;Q.right;)$=Q,Q=Q.right;if($===this)Q.right=this.right;else{var j=this.left,U=this.right;$.count-=Q.count,$.right=Q.left,Q.left=j,Q.right=U}v(this,Q),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?v(this,this.left):v(this,this.right);return 1}for(j=u.ge(this.leftPoints,I,E);jthis.mid?this.right&&($=this.right.queryPoint(I,z))?$:R(this.rightPoints,I,z):M(this.leftPoints,z);var $},m.queryInterval=function(I,z,$){var Q;return Ithis.mid&&this.right&&(Q=this.right.queryInterval(I,z,$))?Q:zthis.mid?R(this.rightPoints,I,$):M(this.leftPoints,$)};var k=D.prototype;k.insert=function(I){this.root?this.root.insert(I):this.root=new h(I[0],null,null,[I],[I])},k.remove=function(I){if(this.root){var z=this.root.remove(I);return z===2&&(this.root=null),z!==0}return!1},k.queryPoint=function(I,z){if(this.root)return this.root.queryPoint(I,z)},k.queryInterval=function(I,z,$){if(I<=z&&this.root)return this.root.queryInterval(I,z,$)},Object.defineProperty(k,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(k,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})},9560:function(y){y.exports=function(p){for(var a=new Array(p),u=0;u13)&&a!==32&&a!==133&&a!==160&&a!==5760&&a!==6158&&(a<8192||a>8205)&&a!==8232&&a!==8233&&a!==8239&&a!==8287&&a!==8288&&a!==12288&&a!==65279)return!1;return!0}},3578:function(y){y.exports=function(p,a,u){return p*(1-u)+a*u}},7191:function(y,p,a){var u=a(4690),h=a(9823),m=a(7332),v=a(7787),_=a(7437),S=a(2142),A={length:a(4693),normalize:a(899),dot:a(9305),cross:a(903)},x=h(),R=h(),M=[0,0,0,0],T=[[0,0,0],[0,0,0],[0,0,0]],E=[0,0,0];function C(L,D,k,I,z){L[0]=D[0]*I+k[0]*z,L[1]=D[1]*I+k[1]*z,L[2]=D[2]*I+k[2]*z}y.exports=function(L,D,k,I,z,$){if(D||(D=[0,0,0]),k||(k=[0,0,0]),I||(I=[0,0,0]),z||(z=[0,0,0,1]),$||($=[0,0,0,1]),!u(x,L)||(m(R,x),R[3]=0,R[7]=0,R[11]=0,R[15]=1,Math.abs(v(R)<1e-8)))return!1;var Q,j,U,X,te,W,K,oe=x[3],q=x[7],Y=x[11],ee=x[12],me=x[13],he=x[14],se=x[15];if(oe!==0||q!==0||Y!==0){if(M[0]=oe,M[1]=q,M[2]=Y,M[3]=se,!_(R,R))return!1;S(R,R),Q=z,U=R,X=(j=M)[0],te=j[1],W=j[2],K=j[3],Q[0]=U[0]*X+U[4]*te+U[8]*W+U[12]*K,Q[1]=U[1]*X+U[5]*te+U[9]*W+U[13]*K,Q[2]=U[2]*X+U[6]*te+U[10]*W+U[14]*K,Q[3]=U[3]*X+U[7]*te+U[11]*W+U[15]*K}else z[0]=z[1]=z[2]=0,z[3]=1;if(D[0]=ee,D[1]=me,D[2]=he,function(ce,de){ce[0][0]=de[0],ce[0][1]=de[1],ce[0][2]=de[2],ce[1][0]=de[4],ce[1][1]=de[5],ce[1][2]=de[6],ce[2][0]=de[8],ce[2][1]=de[9],ce[2][2]=de[10]}(T,x),k[0]=A.length(T[0]),A.normalize(T[0],T[0]),I[0]=A.dot(T[0],T[1]),C(T[1],T[1],T[0],1,-I[0]),k[1]=A.length(T[1]),A.normalize(T[1],T[1]),I[0]/=k[1],I[1]=A.dot(T[0],T[2]),C(T[2],T[2],T[0],1,-I[1]),I[2]=A.dot(T[1],T[2]),C(T[2],T[2],T[1],1,-I[2]),k[2]=A.length(T[2]),A.normalize(T[2],T[2]),I[1]/=k[2],I[2]/=k[2],A.cross(E,T[1],T[2]),A.dot(T[0],E)<0)for(var ae=0;ae<3;ae++)k[ae]*=-1,T[ae][0]*=-1,T[ae][1]*=-1,T[ae][2]*=-1;return $[0]=.5*Math.sqrt(Math.max(1+T[0][0]-T[1][1]-T[2][2],0)),$[1]=.5*Math.sqrt(Math.max(1-T[0][0]+T[1][1]-T[2][2],0)),$[2]=.5*Math.sqrt(Math.max(1-T[0][0]-T[1][1]+T[2][2],0)),$[3]=.5*Math.sqrt(Math.max(1+T[0][0]+T[1][1]+T[2][2],0)),T[2][1]>T[1][2]&&($[0]=-$[0]),T[0][2]>T[2][0]&&($[1]=-$[1]),T[1][0]>T[0][1]&&($[2]=-$[2]),!0}},4690:function(y){y.exports=function(p,a){var u=a[15];if(u===0)return!1;for(var h=1/u,m=0;m<16;m++)p[m]=a[m]*h;return!0}},7649:function(y,p,a){var u=a(1868),h=a(1102),m=a(7191),v=a(7787),_=a(1116),S=R(),A=R(),x=R();function R(){return{translate:M(),scale:M(1),skew:M(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function M(T){return[T||0,T||0,T||0]}y.exports=function(T,E,C,L){if(v(E)===0||v(C)===0)return!1;var D=m(E,S.translate,S.scale,S.skew,S.perspective,S.quaternion),k=m(C,A.translate,A.scale,A.skew,A.perspective,A.quaternion);return!(!D||!k||(u(x.translate,S.translate,A.translate,L),u(x.skew,S.skew,A.skew,L),u(x.scale,S.scale,A.scale,L),u(x.perspective,S.perspective,A.perspective,L),_(x.quaternion,S.quaternion,A.quaternion,L),h(T,x.translate,x.scale,x.skew,x.perspective,x.quaternion),0))}},1102:function(y,p,a){var u={identity:a(9947),translate:a(998),multiply:a(104),create:a(9823),scale:a(3668),fromRotationTranslation:a(7280)},h=(u.create(),u.create());y.exports=function(m,v,_,S,A,x){return u.identity(m),u.fromRotationTranslation(m,x,v),m[3]=A[0],m[7]=A[1],m[11]=A[2],m[15]=A[3],u.identity(h),S[2]!==0&&(h[9]=S[2],u.multiply(m,m,h)),S[1]!==0&&(h[9]=0,h[8]=S[1],u.multiply(m,m,h)),S[0]!==0&&(h[8]=0,h[4]=S[0],u.multiply(m,m,h)),u.scale(m,m,_),m}},9298:function(y,p,a){var u=a(5070),h=a(7649),m=a(7437),v=a(6109),_=a(7115),S=a(5240),A=a(3012),x=a(998),R=(a(3668),a(899)),M=[0,0,0];function T(L){this._components=L.slice(),this._time=[0],this.prevMatrix=L.slice(),this.nextMatrix=L.slice(),this.computedMatrix=L.slice(),this.computedInverse=L.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}y.exports=function(L){return new T((L=L||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var E=T.prototype;E.recalcMatrix=function(L){var D=this._time,k=u.le(D,L),I=this.computedMatrix;if(!(k<0)){var z=this._components;if(k===D.length-1)for(var $=16*k,Q=0;Q<16;++Q)I[Q]=z[$++];else{var j=D[k+1]-D[k],U=($=16*k,this.prevMatrix),X=!0;for(Q=0;Q<16;++Q)U[Q]=z[$++];var te=this.nextMatrix;for(Q=0;Q<16;++Q)te[Q]=z[$++],X=X&&U[Q]===te[Q];if(j<1e-6||X)for(Q=0;Q<16;++Q)I[Q]=U[Q];else h(I,U,te,(L-D[k])/j)}var W=this.computedUp;W[0]=I[1],W[1]=I[5],W[2]=I[9],R(W,W);var K=this.computedInverse;m(K,I);var oe=this.computedEye,q=K[15];oe[0]=K[12]/q,oe[1]=K[13]/q,oe[2]=K[14]/q;var Y=this.computedCenter,ee=Math.exp(this.computedRadius[0]);for(Q=0;Q<3;++Q)Y[Q]=oe[Q]-I[2+4*Q]*ee}},E.idle=function(L){if(!(L1&&u(h[A[T-2]],h[A[T-1]],M)<=0;)T-=1,A.pop();for(A.push(R),T=x.length;T>1&&u(h[x[T-2]],h[x[T-1]],M)>=0;)T-=1,x.pop();x.push(R)}v=new Array(x.length+A.length-2);for(var E=0,C=(_=0,A.length);_0;--L)v[E++]=x[L];return v};var u=a(417)[3]},6145:function(y,p,a){y.exports=function(h,m){m||(m=h,h=window);var v=0,_=0,S=0,A={shift:!1,alt:!1,control:!1,meta:!1},x=!1;function R($){var Q=!1;return"altKey"in $&&(Q=Q||$.altKey!==A.alt,A.alt=!!$.altKey),"shiftKey"in $&&(Q=Q||$.shiftKey!==A.shift,A.shift=!!$.shiftKey),"ctrlKey"in $&&(Q=Q||$.ctrlKey!==A.control,A.control=!!$.ctrlKey),"metaKey"in $&&(Q=Q||$.metaKey!==A.meta,A.meta=!!$.metaKey),Q}function M($,Q){var j=u.x(Q),U=u.y(Q);"buttons"in Q&&($=0|Q.buttons),($!==v||j!==_||U!==S||R(Q))&&(v=0|$,_=j||0,S=U||0,m&&m(v,_,S,A))}function T($){M(0,$)}function E(){(v||_||S||A.shift||A.alt||A.meta||A.control)&&(_=S=0,v=0,A.shift=A.alt=A.control=A.meta=!1,m&&m(0,0,0,A))}function C($){R($)&&m&&m(v,_,S,A)}function L($){u.buttons($)===0?M(0,$):M(v,$)}function D($){M(v|u.buttons($),$)}function k($){M(v&~u.buttons($),$)}function I(){x||(x=!0,h.addEventListener("mousemove",L),h.addEventListener("mousedown",D),h.addEventListener("mouseup",k),h.addEventListener("mouseleave",T),h.addEventListener("mouseenter",T),h.addEventListener("mouseout",T),h.addEventListener("mouseover",T),h.addEventListener("blur",E),h.addEventListener("keyup",C),h.addEventListener("keydown",C),h.addEventListener("keypress",C),h!==window&&(window.addEventListener("blur",E),window.addEventListener("keyup",C),window.addEventListener("keydown",C),window.addEventListener("keypress",C)))}I();var z={element:h};return Object.defineProperties(z,{enabled:{get:function(){return x},set:function($){$?I():x&&(x=!1,h.removeEventListener("mousemove",L),h.removeEventListener("mousedown",D),h.removeEventListener("mouseup",k),h.removeEventListener("mouseleave",T),h.removeEventListener("mouseenter",T),h.removeEventListener("mouseout",T),h.removeEventListener("mouseover",T),h.removeEventListener("blur",E),h.removeEventListener("keyup",C),h.removeEventListener("keydown",C),h.removeEventListener("keypress",C),h!==window&&(window.removeEventListener("blur",E),window.removeEventListener("keyup",C),window.removeEventListener("keydown",C),window.removeEventListener("keypress",C)))},enumerable:!0},buttons:{get:function(){return v},enumerable:!0},x:{get:function(){return _},enumerable:!0},y:{get:function(){return S},enumerable:!0},mods:{get:function(){return A},enumerable:!0}}),z};var u=a(4110)},2565:function(y){var p={left:0,top:0};y.exports=function(a,u,h){u=u||a.currentTarget||a.srcElement,Array.isArray(h)||(h=[0,0]);var m,v=a.clientX||0,_=a.clientY||0,S=(m=u)===window||m===document||m===document.body?p:m.getBoundingClientRect();return h[0]=v-S.left,h[1]=_-S.top,h}},4110:function(y,p){function a(u){return u.target||u.srcElement||window}p.buttons=function(u){if(typeof u=="object"){if("buttons"in u)return u.buttons;if("which"in u){if((h=u.which)===2)return 4;if(h===3)return 2;if(h>0)return 1<=0)return 1< 0"),typeof m.vertex!="function"&&v("Must specify vertex creation function"),typeof m.cell!="function"&&v("Must specify cell creation function"),typeof m.phase!="function"&&v("Must specify phase function");for(var A=m.getters||[],x=new Array(S),R=0;R=0?x[R]=!0:x[R]=!1;return function(M,T,E,C,L,D){var k=[D,L].join(",");return(0,h[k])(M,T,E,u.mallocUint32,u.freeUint32)}(m.vertex,m.cell,m.phase,0,_,x)};var h={"false,0,1":function(m,v,_,S,A){return function(x,R,M,T){var E,C=0|x.shape[0],L=0|x.shape[1],D=x.data,k=0|x.offset,I=0|x.stride[0],z=0|x.stride[1],$=k,Q=0|-I,j=0,U=0|-z,X=0,te=-I-z|0,W=0,K=0|I,oe=z-I*C|0,q=0,Y=0,ee=0,me=2*C|0,he=S(me),se=S(me),ae=0,ce=0,de=-1,ve=-1,ye=0,_e=0|-C,Se=0|C,Te=0,Pe=-C-1|0,Ie=C-1|0,ze=0,De=0,He=0;for(q=0;q0){if(Y=1,he[ae++]=_(D[$],R,M,T),$+=K,C>0)for(q=1,E=D[$],ce=he[ae]=_(E,R,M,T),ye=he[ae+de],Te=he[ae+_e],ze=he[ae+Pe],ce===ye&&ce===Te&&ce===ze||(j=D[$+Q],X=D[$+U],W=D[$+te],m(q,Y,E,j,X,W,ce,ye,Te,ze,R,M,T),De=se[ae]=ee++),ae+=1,$+=K,q=2;q0)for(q=1,E=D[$],ce=he[ae]=_(E,R,M,T),ye=he[ae+de],Te=he[ae+_e],ze=he[ae+Pe],ce===ye&&ce===Te&&ce===ze||(j=D[$+Q],X=D[$+U],W=D[$+te],m(q,Y,E,j,X,W,ce,ye,Te,ze,R,M,T),De=se[ae]=ee++,ze!==Te&&v(se[ae+_e],De,X,W,Te,ze,R,M,T)),ae+=1,$+=K,q=2;q0){if(q=1,he[ae++]=_(D[$],R,M,T),$+=K,L>0)for(Y=1,E=D[$],ce=he[ae]=_(E,R,M,T),Te=he[ae+_e],ye=he[ae+de],ze=he[ae+Pe],ce===Te&&ce===ye&&ce===ze||(j=D[$+Q],X=D[$+U],W=D[$+te],m(q,Y,E,j,X,W,ce,Te,ye,ze,R,M,T),De=se[ae]=ee++),ae+=1,$+=K,Y=2;Y0)for(Y=1,E=D[$],ce=he[ae]=_(E,R,M,T),Te=he[ae+_e],ye=he[ae+de],ze=he[ae+Pe],ce===Te&&ce===ye&&ce===ze||(j=D[$+Q],X=D[$+U],W=D[$+te],m(q,Y,E,j,X,W,ce,Te,ye,ze,R,M,T),De=se[ae]=ee++,ze!==Te&&v(se[ae+_e],De,W,j,ze,Te,R,M,T)),ae+=1,$+=K,Y=2;Y2&&$[1]>2&&k(z.pick(-1,-1).lo(1,1).hi($[0]-2,$[1]-2),I.pick(-1,-1,0).lo(1,1).hi($[0]-2,$[1]-2),I.pick(-1,-1,1).lo(1,1).hi($[0]-2,$[1]-2)),$[1]>2&&(D(z.pick(0,-1).lo(1).hi($[1]-2),I.pick(0,-1,1).lo(1).hi($[1]-2)),L(I.pick(0,-1,0).lo(1).hi($[1]-2))),$[1]>2&&(D(z.pick($[0]-1,-1).lo(1).hi($[1]-2),I.pick($[0]-1,-1,1).lo(1).hi($[1]-2)),L(I.pick($[0]-1,-1,0).lo(1).hi($[1]-2))),$[0]>2&&(D(z.pick(-1,0).lo(1).hi($[0]-2),I.pick(-1,0,0).lo(1).hi($[0]-2)),L(I.pick(-1,0,1).lo(1).hi($[0]-2))),$[0]>2&&(D(z.pick(-1,$[1]-1).lo(1).hi($[0]-2),I.pick(-1,$[1]-1,0).lo(1).hi($[0]-2)),L(I.pick(-1,$[1]-1,1).lo(1).hi($[0]-2))),I.set(0,0,0,0),I.set(0,0,1,0),I.set($[0]-1,0,0,0),I.set($[0]-1,0,1,0),I.set(0,$[1]-1,0,0),I.set(0,$[1]-1,1,0),I.set($[0]-1,$[1]-1,0,0),I.set($[0]-1,$[1]-1,1,0),I}}y.exports=function(C,L,D){return Array.isArray(D)||(D=u(L.dimension,typeof D=="string"?D:"clamp")),L.size===0?C:L.dimension===0?(C.set(0),C):function(k){var I=k.join();if(j=x[I])return j;for(var z=k.length,$=[R,M],Q=1;Q<=z;++Q)$.push(T(Q));var j=E.apply(void 0,$);return x[I]=j,j}(D)(C,L)}},3581:function(y){function p(m,v){var _=Math.floor(v),S=v-_,A=0<=_&&_0;){te<64?(C=te,te=0):(C=64,te-=64);for(var W=0|_[1];W>0;){W<64?(L=W,W=0):(L=64,W-=64),x=U+te*k+W*I,T=X+te*$+W*Q;var K=0,oe=0,q=0,Y=z,ee=k-D*z,me=I-C*k,he=j,se=$-D*j,ae=Q-C*$;for(q=0;q0;){Q<64?(C=Q,Q=0):(C=64,Q-=64);for(var j=0|_[0];j>0;){j<64?(E=j,j=0):(E=64,j-=64),x=z+Q*D+j*L,T=$+Q*I+j*k;var U=0,X=0,te=D,W=L-C*D,K=I,oe=k-C*I;for(X=0;X0;){X<64?(L=X,X=0):(L=64,X-=64);for(var te=0|_[0];te>0;){te<64?(E=te,te=0):(E=64,te-=64);for(var W=0|_[1];W>0;){W<64?(C=W,W=0):(C=64,W-=64),x=j+X*I+te*D+W*k,T=U+X*Q+te*z+W*$;var K=0,oe=0,q=0,Y=I,ee=D-L*I,me=k-E*D,he=Q,se=z-L*Q,ae=$-E*z;for(q=0;qx;){X=0,te=j-E;t:for(U=0;UK)break t;te+=I,X+=z}for(X=j,te=j-E,U=0;U>1,ke=Oe-He,Le=Oe+He,We=Ve,Ue=ke,Ze=Oe,Xe=Le,tt=$e,Ee=M+1,Ne=T-1,je=!0,nt=0,ot=0,Ge=0,ht=I,pt=A(ht),wt=A(ht);me=L*We,he=L*Ue,De=C;e:for(ee=0;ee0){U=We,We=Ue,Ue=U;break e}if(Ge<0)break e;De+=$}me=L*Xe,he=L*tt,De=C;e:for(ee=0;ee0){U=Xe,Xe=tt,tt=U;break e}if(Ge<0)break e;De+=$}me=L*We,he=L*Ze,De=C;e:for(ee=0;ee0){U=We,We=Ze,Ze=U;break e}if(Ge<0)break e;De+=$}me=L*Ue,he=L*Ze,De=C;e:for(ee=0;ee0){U=Ue,Ue=Ze,Ze=U;break e}if(Ge<0)break e;De+=$}me=L*We,he=L*Xe,De=C;e:for(ee=0;ee0){U=We,We=Xe,Xe=U;break e}if(Ge<0)break e;De+=$}me=L*Ze,he=L*Xe,De=C;e:for(ee=0;ee0){U=Ze,Ze=Xe,Xe=U;break e}if(Ge<0)break e;De+=$}me=L*Ue,he=L*tt,De=C;e:for(ee=0;ee0){U=Ue,Ue=tt,tt=U;break e}if(Ge<0)break e;De+=$}me=L*Ue,he=L*Ze,De=C;e:for(ee=0;ee0){U=Ue,Ue=Ze,Ze=U;break e}if(Ge<0)break e;De+=$}me=L*Xe,he=L*tt,De=C;e:for(ee=0;ee0){U=Xe,Xe=tt,tt=U;break e}if(Ge<0)break e;De+=$}for(me=L*We,he=L*Ue,se=L*Ze,ae=L*Xe,ce=L*tt,de=L*Ve,ve=L*Oe,ye=L*$e,ze=0,De=C,ee=0;ee0)){if(Ge<0){for(me=L*K,he=L*Ee,se=L*Ne,De=C,ee=0;ee0)for(;;){for(oe=C+Ne*L,ze=0,ee=0;ee0)){for(oe=C+Ne*L,ze=0,ee=0;ee$e){e:for(;;){for(oe=C+Ee*L,ze=0,De=C,ee=0;ee1&&D?I(L,D[0],D[1]):I(L)}(S,A,M);return R(M,T)}},8729:function(y,p,a){var u=a(8139),h={};y.exports=function(m){var v=m.order,_=m.dtype,S=[v,_].join(":"),A=h[S];return A||(h[S]=A=u(v,_)),A(m),m}},5050:function(y,p,a){var u=a(4780),h=typeof Float64Array<"u";function m(x,R){return x[0]-R[0]}function v(){var x,R=this.stride,M=new Array(R.length);for(x=0;x=0&&(L+=I*(D=0|C),k-=D),new T(this.data,k,I,L)},E.step=function(C){var L=this.shape[0],D=this.stride[0],k=this.offset,I=0,z=Math.ceil;return typeof C=="number"&&((I=0|C)<0?(k+=D*(L-1),L=z(-L/I)):L=z(L/I),D*=I),new T(this.data,L,D,k)},E.transpose=function(C){C=C===void 0?0:0|C;var L=this.shape,D=this.stride;return new T(this.data,L[C],D[C],this.offset)},E.pick=function(C){var L=[],D=[],k=this.offset;return typeof C=="number"&&C>=0?k=k+this.stride[0]*C|0:(L.push(this.shape[0]),D.push(this.stride[0])),(0,R[L.length+1])(this.data,L,D,k)},function(C,L,D,k){return new T(C,L[0],D[0],k)}},2:function(x,R,M){function T(C,L,D,k,I,z){this.data=C,this.shape=[L,D],this.stride=[k,I],this.offset=0|z}var E=T.prototype;return E.dtype=x,E.dimension=2,Object.defineProperty(E,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(E,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),E.set=function(C,L,D){return x==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*L,D):this.data[this.offset+this.stride[0]*C+this.stride[1]*L]=D},E.get=function(C,L){return x==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*L):this.data[this.offset+this.stride[0]*C+this.stride[1]*L]},E.index=function(C,L){return this.offset+this.stride[0]*C+this.stride[1]*L},E.hi=function(C,L){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:0|C,typeof L!="number"||L<0?this.shape[1]:0|L,this.stride[0],this.stride[1],this.offset)},E.lo=function(C,L){var D=this.offset,k=0,I=this.shape[0],z=this.shape[1],$=this.stride[0],Q=this.stride[1];return typeof C=="number"&&C>=0&&(D+=$*(k=0|C),I-=k),typeof L=="number"&&L>=0&&(D+=Q*(k=0|L),z-=k),new T(this.data,I,z,$,Q,D)},E.step=function(C,L){var D=this.shape[0],k=this.shape[1],I=this.stride[0],z=this.stride[1],$=this.offset,Q=0,j=Math.ceil;return typeof C=="number"&&((Q=0|C)<0?($+=I*(D-1),D=j(-D/Q)):D=j(D/Q),I*=Q),typeof L=="number"&&((Q=0|L)<0?($+=z*(k-1),k=j(-k/Q)):k=j(k/Q),z*=Q),new T(this.data,D,k,I,z,$)},E.transpose=function(C,L){C=C===void 0?0:0|C,L=L===void 0?1:0|L;var D=this.shape,k=this.stride;return new T(this.data,D[C],D[L],k[C],k[L],this.offset)},E.pick=function(C,L){var D=[],k=[],I=this.offset;return typeof C=="number"&&C>=0?I=I+this.stride[0]*C|0:(D.push(this.shape[0]),k.push(this.stride[0])),typeof L=="number"&&L>=0?I=I+this.stride[1]*L|0:(D.push(this.shape[1]),k.push(this.stride[1])),(0,R[D.length+1])(this.data,D,k,I)},function(C,L,D,k){return new T(C,L[0],L[1],D[0],D[1],k)}},3:function(x,R,M){function T(C,L,D,k,I,z,$,Q){this.data=C,this.shape=[L,D,k],this.stride=[I,z,$],this.offset=0|Q}var E=T.prototype;return E.dtype=x,E.dimension=3,Object.defineProperty(E,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(E,"order",{get:function(){var C=Math.abs(this.stride[0]),L=Math.abs(this.stride[1]),D=Math.abs(this.stride[2]);return C>L?L>D?[2,1,0]:C>D?[1,2,0]:[1,0,2]:C>D?[2,0,1]:D>L?[0,1,2]:[0,2,1]}}),E.set=function(C,L,D,k){return x==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D,k):this.data[this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D]=k},E.get=function(C,L,D){return x==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D):this.data[this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D]},E.index=function(C,L,D){return this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D},E.hi=function(C,L,D){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:0|C,typeof L!="number"||L<0?this.shape[1]:0|L,typeof D!="number"||D<0?this.shape[2]:0|D,this.stride[0],this.stride[1],this.stride[2],this.offset)},E.lo=function(C,L,D){var k=this.offset,I=0,z=this.shape[0],$=this.shape[1],Q=this.shape[2],j=this.stride[0],U=this.stride[1],X=this.stride[2];return typeof C=="number"&&C>=0&&(k+=j*(I=0|C),z-=I),typeof L=="number"&&L>=0&&(k+=U*(I=0|L),$-=I),typeof D=="number"&&D>=0&&(k+=X*(I=0|D),Q-=I),new T(this.data,z,$,Q,j,U,X,k)},E.step=function(C,L,D){var k=this.shape[0],I=this.shape[1],z=this.shape[2],$=this.stride[0],Q=this.stride[1],j=this.stride[2],U=this.offset,X=0,te=Math.ceil;return typeof C=="number"&&((X=0|C)<0?(U+=$*(k-1),k=te(-k/X)):k=te(k/X),$*=X),typeof L=="number"&&((X=0|L)<0?(U+=Q*(I-1),I=te(-I/X)):I=te(I/X),Q*=X),typeof D=="number"&&((X=0|D)<0?(U+=j*(z-1),z=te(-z/X)):z=te(z/X),j*=X),new T(this.data,k,I,z,$,Q,j,U)},E.transpose=function(C,L,D){C=C===void 0?0:0|C,L=L===void 0?1:0|L,D=D===void 0?2:0|D;var k=this.shape,I=this.stride;return new T(this.data,k[C],k[L],k[D],I[C],I[L],I[D],this.offset)},E.pick=function(C,L,D){var k=[],I=[],z=this.offset;return typeof C=="number"&&C>=0?z=z+this.stride[0]*C|0:(k.push(this.shape[0]),I.push(this.stride[0])),typeof L=="number"&&L>=0?z=z+this.stride[1]*L|0:(k.push(this.shape[1]),I.push(this.stride[1])),typeof D=="number"&&D>=0?z=z+this.stride[2]*D|0:(k.push(this.shape[2]),I.push(this.stride[2])),(0,R[k.length+1])(this.data,k,I,z)},function(C,L,D,k){return new T(C,L[0],L[1],L[2],D[0],D[1],D[2],k)}},4:function(x,R,M){function T(C,L,D,k,I,z,$,Q,j,U){this.data=C,this.shape=[L,D,k,I],this.stride=[z,$,Q,j],this.offset=0|U}var E=T.prototype;return E.dtype=x,E.dimension=4,Object.defineProperty(E,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(E,"order",{get:M}),E.set=function(C,L,D,k,I){return x==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k,I):this.data[this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k]=I},E.get=function(C,L,D,k){return x==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k):this.data[this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k]},E.index=function(C,L,D,k){return this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k},E.hi=function(C,L,D,k){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:0|C,typeof L!="number"||L<0?this.shape[1]:0|L,typeof D!="number"||D<0?this.shape[2]:0|D,typeof k!="number"||k<0?this.shape[3]:0|k,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},E.lo=function(C,L,D,k){var I=this.offset,z=0,$=this.shape[0],Q=this.shape[1],j=this.shape[2],U=this.shape[3],X=this.stride[0],te=this.stride[1],W=this.stride[2],K=this.stride[3];return typeof C=="number"&&C>=0&&(I+=X*(z=0|C),$-=z),typeof L=="number"&&L>=0&&(I+=te*(z=0|L),Q-=z),typeof D=="number"&&D>=0&&(I+=W*(z=0|D),j-=z),typeof k=="number"&&k>=0&&(I+=K*(z=0|k),U-=z),new T(this.data,$,Q,j,U,X,te,W,K,I)},E.step=function(C,L,D,k){var I=this.shape[0],z=this.shape[1],$=this.shape[2],Q=this.shape[3],j=this.stride[0],U=this.stride[1],X=this.stride[2],te=this.stride[3],W=this.offset,K=0,oe=Math.ceil;return typeof C=="number"&&((K=0|C)<0?(W+=j*(I-1),I=oe(-I/K)):I=oe(I/K),j*=K),typeof L=="number"&&((K=0|L)<0?(W+=U*(z-1),z=oe(-z/K)):z=oe(z/K),U*=K),typeof D=="number"&&((K=0|D)<0?(W+=X*($-1),$=oe(-$/K)):$=oe($/K),X*=K),typeof k=="number"&&((K=0|k)<0?(W+=te*(Q-1),Q=oe(-Q/K)):Q=oe(Q/K),te*=K),new T(this.data,I,z,$,Q,j,U,X,te,W)},E.transpose=function(C,L,D,k){C=C===void 0?0:0|C,L=L===void 0?1:0|L,D=D===void 0?2:0|D,k=k===void 0?3:0|k;var I=this.shape,z=this.stride;return new T(this.data,I[C],I[L],I[D],I[k],z[C],z[L],z[D],z[k],this.offset)},E.pick=function(C,L,D,k){var I=[],z=[],$=this.offset;return typeof C=="number"&&C>=0?$=$+this.stride[0]*C|0:(I.push(this.shape[0]),z.push(this.stride[0])),typeof L=="number"&&L>=0?$=$+this.stride[1]*L|0:(I.push(this.shape[1]),z.push(this.stride[1])),typeof D=="number"&&D>=0?$=$+this.stride[2]*D|0:(I.push(this.shape[2]),z.push(this.stride[2])),typeof k=="number"&&k>=0?$=$+this.stride[3]*k|0:(I.push(this.shape[3]),z.push(this.stride[3])),(0,R[I.length+1])(this.data,I,z,$)},function(C,L,D,k){return new T(C,L[0],L[1],L[2],L[3],D[0],D[1],D[2],D[3],k)}},5:function(x,R,M){function T(C,L,D,k,I,z,$,Q,j,U,X,te){this.data=C,this.shape=[L,D,k,I,z],this.stride=[$,Q,j,U,X],this.offset=0|te}var E=T.prototype;return E.dtype=x,E.dimension=5,Object.defineProperty(E,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(E,"order",{get:M}),E.set=function(C,L,D,k,I,z){return x==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I,z):this.data[this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I]=z},E.get=function(C,L,D,k,I){return x==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I):this.data[this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I]},E.index=function(C,L,D,k,I){return this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I},E.hi=function(C,L,D,k,I){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:0|C,typeof L!="number"||L<0?this.shape[1]:0|L,typeof D!="number"||D<0?this.shape[2]:0|D,typeof k!="number"||k<0?this.shape[3]:0|k,typeof I!="number"||I<0?this.shape[4]:0|I,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},E.lo=function(C,L,D,k,I){var z=this.offset,$=0,Q=this.shape[0],j=this.shape[1],U=this.shape[2],X=this.shape[3],te=this.shape[4],W=this.stride[0],K=this.stride[1],oe=this.stride[2],q=this.stride[3],Y=this.stride[4];return typeof C=="number"&&C>=0&&(z+=W*($=0|C),Q-=$),typeof L=="number"&&L>=0&&(z+=K*($=0|L),j-=$),typeof D=="number"&&D>=0&&(z+=oe*($=0|D),U-=$),typeof k=="number"&&k>=0&&(z+=q*($=0|k),X-=$),typeof I=="number"&&I>=0&&(z+=Y*($=0|I),te-=$),new T(this.data,Q,j,U,X,te,W,K,oe,q,Y,z)},E.step=function(C,L,D,k,I){var z=this.shape[0],$=this.shape[1],Q=this.shape[2],j=this.shape[3],U=this.shape[4],X=this.stride[0],te=this.stride[1],W=this.stride[2],K=this.stride[3],oe=this.stride[4],q=this.offset,Y=0,ee=Math.ceil;return typeof C=="number"&&((Y=0|C)<0?(q+=X*(z-1),z=ee(-z/Y)):z=ee(z/Y),X*=Y),typeof L=="number"&&((Y=0|L)<0?(q+=te*($-1),$=ee(-$/Y)):$=ee($/Y),te*=Y),typeof D=="number"&&((Y=0|D)<0?(q+=W*(Q-1),Q=ee(-Q/Y)):Q=ee(Q/Y),W*=Y),typeof k=="number"&&((Y=0|k)<0?(q+=K*(j-1),j=ee(-j/Y)):j=ee(j/Y),K*=Y),typeof I=="number"&&((Y=0|I)<0?(q+=oe*(U-1),U=ee(-U/Y)):U=ee(U/Y),oe*=Y),new T(this.data,z,$,Q,j,U,X,te,W,K,oe,q)},E.transpose=function(C,L,D,k,I){C=C===void 0?0:0|C,L=L===void 0?1:0|L,D=D===void 0?2:0|D,k=k===void 0?3:0|k,I=I===void 0?4:0|I;var z=this.shape,$=this.stride;return new T(this.data,z[C],z[L],z[D],z[k],z[I],$[C],$[L],$[D],$[k],$[I],this.offset)},E.pick=function(C,L,D,k,I){var z=[],$=[],Q=this.offset;return typeof C=="number"&&C>=0?Q=Q+this.stride[0]*C|0:(z.push(this.shape[0]),$.push(this.stride[0])),typeof L=="number"&&L>=0?Q=Q+this.stride[1]*L|0:(z.push(this.shape[1]),$.push(this.stride[1])),typeof D=="number"&&D>=0?Q=Q+this.stride[2]*D|0:(z.push(this.shape[2]),$.push(this.stride[2])),typeof k=="number"&&k>=0?Q=Q+this.stride[3]*k|0:(z.push(this.shape[3]),$.push(this.stride[3])),typeof I=="number"&&I>=0?Q=Q+this.stride[4]*I|0:(z.push(this.shape[4]),$.push(this.stride[4])),(0,R[z.length+1])(this.data,z,$,Q)},function(C,L,D,k){return new T(C,L[0],L[1],L[2],L[3],L[4],D[0],D[1],D[2],D[3],D[4],k)}}};function S(x,R){var M=R===-1?"T":String(R),T=_[M];return R===-1?T(x):R===0?T(x,A[x][0]):T(x,A[x],v)}var A={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};y.exports=function(x,R,M,T){if(x===void 0)return(0,A.array[0])([]);typeof x=="number"&&(x=[x]),R===void 0&&(R=[x.length]);var E=R.length;if(M===void 0){M=new Array(E);for(var C=E-1,L=1;C>=0;--C)M[C]=L,L*=R[C]}if(T===void 0)for(T=0,C=0;C>>0;y.exports=function(v,_){if(isNaN(v)||isNaN(_))return NaN;if(v===_)return v;if(v===0)return _<0?-h:h;var S=u.hi(v),A=u.lo(v);return _>v==v>0?A===m?(S+=1,A=0):A+=1:A===0?(A=m,S-=1):A-=1,u.pack(A,S)}},115:function(y,p){p.vertexNormals=function(a,u,h){for(var m=u.length,v=new Array(m),_=h===void 0?1e-6:h,S=0;S_){var Q=v[R],j=1/Math.sqrt(k*z);for($=0;$<3;++$){var U=($+1)%3,X=($+2)%3;Q[$]+=j*(I[U]*D[X]-I[X]*D[U])}}}for(S=0;S_)for(j=1/Math.sqrt(te),$=0;$<3;++$)Q[$]*=j;else for($=0;$<3;++$)Q[$]=0}return v},p.faceNormals=function(a,u,h){for(var m=a.length,v=new Array(m),_=h===void 0?1e-6:h,S=0;S_?1/Math.sqrt(C):0,R=0;R<3;++R)E[R]*=C;v[S]=E}return v}},567:function(y){y.exports=function(p,a,u,h,m,v,_,S,A,x){var R=a+v+x;if(M>0){var M=Math.sqrt(R+1);p[0]=.5*(_-A)/M,p[1]=.5*(S-h)/M,p[2]=.5*(u-v)/M,p[3]=.5*M}else{var T=Math.max(a,v,x);M=Math.sqrt(2*T-R+1),a>=T?(p[0]=.5*M,p[1]=.5*(m+u)/M,p[2]=.5*(S+h)/M,p[3]=.5*(_-A)/M):v>=T?(p[0]=.5*(u+m)/M,p[1]=.5*M,p[2]=.5*(A+_)/M,p[3]=.5*(S-h)/M):(p[0]=.5*(h+S)/M,p[1]=.5*(_+A)/M,p[2]=.5*M,p[3]=.5*(u-m)/M)}return p}},7774:function(y,p,a){y.exports=function(T){var E=(T=T||{}).center||[0,0,0],C=T.rotation||[0,0,0,1],L=T.radius||1;E=[].slice.call(E,0,3),x(C=[].slice.call(C,0,4),C);var D=new R(C,E,Math.log(L));return D.setDistanceLimits(T.zoomMin,T.zoomMax),("eye"in T||"up"in T)&&D.lookAt(0,T.eye,T.center,T.up),D};var u=a(8444),h=a(3012),m=a(5950),v=a(7437),_=a(567);function S(T,E,C){return Math.sqrt(Math.pow(T,2)+Math.pow(E,2)+Math.pow(C,2))}function A(T,E,C,L){return Math.sqrt(Math.pow(T,2)+Math.pow(E,2)+Math.pow(C,2)+Math.pow(L,2))}function x(T,E){var C=E[0],L=E[1],D=E[2],k=E[3],I=A(C,L,D,k);I>1e-6?(T[0]=C/I,T[1]=L/I,T[2]=D/I,T[3]=k/I):(T[0]=T[1]=T[2]=0,T[3]=1)}function R(T,E,C){this.radius=u([C]),this.center=u(E),this.rotation=u(T),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var M=R.prototype;M.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},M.recalcMatrix=function(T){this.radius.curve(T),this.center.curve(T),this.rotation.curve(T);var E=this.computedRotation;x(E,E);var C=this.computedMatrix;m(C,E);var L=this.computedCenter,D=this.computedEye,k=this.computedUp,I=Math.exp(this.computedRadius[0]);D[0]=L[0]+I*C[2],D[1]=L[1]+I*C[6],D[2]=L[2]+I*C[10],k[0]=C[1],k[1]=C[5],k[2]=C[9];for(var z=0;z<3;++z){for(var $=0,Q=0;Q<3;++Q)$+=C[z+4*Q]*D[Q];C[12+z]=-$}},M.getMatrix=function(T,E){this.recalcMatrix(T);var C=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=C[L];return E}return C},M.idle=function(T){this.center.idle(T),this.radius.idle(T),this.rotation.idle(T)},M.flush=function(T){this.center.flush(T),this.radius.flush(T),this.rotation.flush(T)},M.pan=function(T,E,C,L){E=E||0,C=C||0,L=L||0,this.recalcMatrix(T);var D=this.computedMatrix,k=D[1],I=D[5],z=D[9],$=S(k,I,z);k/=$,I/=$,z/=$;var Q=D[0],j=D[4],U=D[8],X=Q*k+j*I+U*z,te=S(Q-=k*X,j-=I*X,U-=z*X);Q/=te,j/=te,U/=te,D[2],D[6],D[10];var W=Q*E+k*C,K=j*E+I*C,oe=U*E+z*C;this.center.move(T,W,K,oe);var q=Math.exp(this.computedRadius[0]);q=Math.max(1e-4,q+L),this.radius.set(T,Math.log(q))},M.rotate=function(T,E,C,L){this.recalcMatrix(T),E=E||0,C=C||0;var D=this.computedMatrix,k=D[0],I=D[4],z=D[8],$=D[1],Q=D[5],j=D[9],U=D[2],X=D[6],te=D[10],W=E*k+C*$,K=E*I+C*Q,oe=E*z+C*j,q=-(X*oe-te*K),Y=-(te*W-U*oe),ee=-(U*K-X*W),me=Math.sqrt(Math.max(0,1-Math.pow(q,2)-Math.pow(Y,2)-Math.pow(ee,2))),he=A(q,Y,ee,me);he>1e-6?(q/=he,Y/=he,ee/=he,me/=he):(q=Y=ee=0,me=1);var se=this.computedRotation,ae=se[0],ce=se[1],de=se[2],ve=se[3],ye=ae*me+ve*q+ce*ee-de*Y,_e=ce*me+ve*Y+de*q-ae*ee,Se=de*me+ve*ee+ae*Y-ce*q,Te=ve*me-ae*q-ce*Y-de*ee;if(L){q=U,Y=X,ee=te;var Pe=Math.sin(L)/S(q,Y,ee);q*=Pe,Y*=Pe,ee*=Pe,Te=Te*(me=Math.cos(E))-(ye=ye*me+Te*q+_e*ee-Se*Y)*q-(_e=_e*me+Te*Y+Se*q-ye*ee)*Y-(Se=Se*me+Te*ee+ye*Y-_e*q)*ee}var Ie=A(ye,_e,Se,Te);Ie>1e-6?(ye/=Ie,_e/=Ie,Se/=Ie,Te/=Ie):(ye=_e=Se=0,Te=1),this.rotation.set(T,ye,_e,Se,Te)},M.lookAt=function(T,E,C,L){this.recalcMatrix(T),C=C||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var D=this.computedMatrix;h(D,E,C,L);var k=this.computedRotation;_(k,D[0],D[1],D[2],D[4],D[5],D[6],D[8],D[9],D[10]),x(k,k),this.rotation.set(T,k[0],k[1],k[2],k[3]);for(var I=0,z=0;z<3;++z)I+=Math.pow(C[z]-E[z],2);this.radius.set(T,.5*Math.log(Math.max(I,1e-6))),this.center.set(T,C[0],C[1],C[2])},M.translate=function(T,E,C,L){this.center.move(T,E||0,C||0,L||0)},M.setMatrix=function(T,E){var C=this.computedRotation;_(C,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),x(C,C),this.rotation.set(T,C[0],C[1],C[2],C[3]);var L=this.computedMatrix;v(L,E);var D=L[15];if(Math.abs(D)>1e-6){var k=L[12]/D,I=L[13]/D,z=L[14]/D;this.recalcMatrix(T);var $=Math.exp(this.computedRadius[0]);this.center.set(T,k-L[2]*$,I-L[6]*$,z-L[10]*$),this.radius.idle(T)}else this.center.idle(T),this.radius.idle(T)},M.setDistance=function(T,E){E>0&&this.radius.set(T,Math.log(E))},M.setDistanceLimits=function(T,E){T=T>0?Math.log(T):-1/0,E=E>0?Math.log(E):1/0,E=Math.max(E,T),this.radius.bounds[0][0]=T,this.radius.bounds[1][0]=E},M.getDistanceLimits=function(T){var E=this.radius.bounds;return T?(T[0]=Math.exp(E[0][0]),T[1]=Math.exp(E[1][0]),T):[Math.exp(E[0][0]),Math.exp(E[1][0])]},M.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},M.fromJSON=function(T){var E=this.lastT(),C=T.center;C&&this.center.set(E,C[0],C[1],C[2]);var L=T.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var D=T.distance;D&&D>0&&this.radius.set(E,Math.log(D)),this.setDistanceLimits(T.zoomMin,T.zoomMax)}},4930:function(y,p,a){var u=a(6184);y.exports=function(h,m,v){return u(v=v!==void 0?v+"":" ",m)+h}},4405:function(y){y.exports=function(p,a){a||(a=[0,""]),p=String(p);var u=parseFloat(p,10);return a[0]=u,a[1]=p.match(/[\d.\-\+]*\s*(.*)/)[1]||"",a}},4166:function(y,p,a){y.exports=function(h,m){for(var v=0|m.length,_=h.length,S=[new Array(v),new Array(v)],A=0;A0){Q=S[X][z][0],U=X;break}j=Q[1^U];for(var te=0;te<2;++te)for(var W=S[te][z],K=0;K0&&(Q=oe,j=q,U=te)}return $||Q&&M(Q,U),j}function E(I,z){var $=S[z][I][0],Q=[I];M($,z);for(var j=$[1^z];;){for(;j!==I;)Q.push(j),j=T(Q[Q.length-2],j,!1);if(S[0][I].length+S[1][I].length===0)break;var U=Q[Q.length-1],X=I,te=Q[1],W=T(U,X,!0);if(u(m[U],m[X],m[te],m[W])<0)break;Q.push(I),j=T(U,X)}return Q}function C(I,z){return z[1]===z[z.length-1]}for(A=0;A0;){S[0][A].length;var k=E(A,L);C(0,k)?D.push.apply(D,k):(D.length>0&&R.push(D),D=k)}D.length>0&&R.push(D)}return R};var u=a(9398)},3959:function(y,p,a){y.exports=function(h,m){for(var v=u(h,m.length),_=new Array(m.length),S=new Array(m.length),A=[],x=0;x0;){_[L=A.pop()]=!1;var M=v[L];for(x=0;x0})).length,I=new Array(k),z=new Array(k);for(L=0;L0;){var _e=ve.pop(),Se=Y[_e];S(Se,function(He,Ve){return He-Ve});var Te,Pe=Se.length,Ie=ye[_e];for(Ie===0&&(Te=[ze=D[_e]]),L=0;L=0||(ye[De]=1^Ie,ve.push(De),Ie===0&&(de(ze=D[De])||(ze.reverse(),Te.push(ze))))}Ie===0&&T.push(Te)}return T};var u=a(8348),h=a(4166),m=a(211),v=a(9660),_=a(9662),S=a(1215),A=a(3959);function x(R,M){for(var T=new Array(R),E=0;E0&&X[W]===te[0]))return 1;K=U[W-1]}for(var oe=1;K;){var q=K.key,Y=u(te,q[0],q[1]);if(q[0][0]0))return 0;oe=-1,K=K.right}else if(Y>0)K=K.left;else{if(!(Y<0))return 0;oe=1,K=K.right}}return oe}}(Q.slabs,Q.coordinates);return T.length===0?j:function(U,X){return function(te){return U(te[0],te[1])?0:X(te)}}(S(T),j)};var u=a(417)[3],h=a(4385),m=a(9014),v=a(5070);function _(){return!0}function S(x){for(var R={},M=0;M=x?(X=1,I=x+2*T+C):I=T*(X=-T/x)+C):(X=0,E>=0?(te=0,I=C):-E>=M?(te=1,I=M+2*E+C):I=E*(te=-E/M)+C);else if(te<0)te=0,T>=0?(X=0,I=C):-T>=x?(X=1,I=x+2*T+C):I=T*(X=-T/x)+C;else{var W=1/U;I=(X*=W)*(x*X+R*(te*=W)+2*T)+te*(R*X+M*te+2*E)+C}else X<0?($=M+E)>(z=R+T)?(Q=$-z)>=(j=x-2*R+M)?(X=1,te=0,I=x+2*T+C):I=(X=Q/j)*(x*X+R*(te=1-X)+2*T)+te*(R*X+M*te+2*E)+C:(X=0,$<=0?(te=1,I=M+2*E+C):E>=0?(te=0,I=C):I=E*(te=-E/M)+C):te<0?($=x+T)>(z=R+E)?(Q=$-z)>=(j=x-2*R+M)?(te=1,X=0,I=M+2*E+C):I=(X=1-(te=Q/j))*(x*X+R*te+2*T)+te*(R*X+M*te+2*E)+C:(te=0,$<=0?(X=1,I=x+2*T+C):T>=0?(X=0,I=C):I=T*(X=-T/x)+C):(Q=M+E-R-T)<=0?(X=0,te=1,I=M+2*E+C):Q>=(j=x-2*R+M)?(X=1,te=0,I=x+2*T+C):I=(X=Q/j)*(x*X+R*(te=1-X)+2*T)+te*(R*X+M*te+2*E)+C;var K=1-X-te;for(A=0;A<_.length;++A)S[A]=K*h[A]+X*m[A]+te*v[A];return I<0?0:I}},1116:function(y,p,a){y.exports=a(6093)},7584:function(y,p,a){var u=a(1539);y.exports=function(h,m){for(var v=h.length,_=new Array(v),S=0;S0){var M=v[S-1];if(u(x,M)===0&&m(M)!==R){S-=1;continue}}v[S++]=x}}return v.length=S,v}},6184:function(y){var p,a="";y.exports=function(u,h){if(typeof u!="string")throw new TypeError("expected a string");if(h===1)return u;if(h===2)return u+u;var m=u.length*h;if(p!==u||p===void 0)p=u,a="";else if(a.length>=m)return a.substr(0,m);for(;m>a.length&&h>1;)1&h&&(a+=u),h>>=1,u+=u;return a=(a+=u).substr(0,m)}},8161:function(y,p,a){y.exports=a.g.performance&&a.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},402:function(y){y.exports=function(p){for(var a=p.length,u=p[p.length-1],h=a,m=a-2;m>=0;--m){var v=u;(A=(S=p[m])-((u=v+S)-v))&&(p[--h]=u,u=A)}var _=0;for(m=h;m0){if($<=0)return Q;I=z+$}else{if(!(z<0)||$>=0)return Q;I=-(z+$)}var j=33306690738754716e-32*I;return Q>=j||Q<=-j?Q:R(L,D,k)},function(L,D,k,I){var z=L[0]-I[0],$=D[0]-I[0],Q=k[0]-I[0],j=L[1]-I[1],U=D[1]-I[1],X=k[1]-I[1],te=L[2]-I[2],W=D[2]-I[2],K=k[2]-I[2],oe=$*X,q=Q*U,Y=Q*j,ee=z*X,me=z*U,he=$*j,se=te*(oe-q)+W*(Y-ee)+K*(me-he),ae=7771561172376103e-31*((Math.abs(oe)+Math.abs(q))*Math.abs(te)+(Math.abs(Y)+Math.abs(ee))*Math.abs(W)+(Math.abs(me)+Math.abs(he))*Math.abs(K));return se>ae||-se>ae?se:M(L,D,k,I)}];function E(L){var D=T[L.length];return D||(D=T[L.length]=x(L.length)),D.apply(void 0,L)}function C(L,D,k,I,z,$,Q){return function(j,U,X,te,W){switch(arguments.length){case 0:case 1:return 0;case 2:return I(j,U);case 3:return z(j,U,X);case 4:return $(j,U,X,te);case 5:return Q(j,U,X,te,W)}for(var K=new Array(arguments.length),oe=0;oe0&&A>0||S<0&&A<0)return!1;var x=u(v,h,m),R=u(_,h,m);return!(x>0&&R>0||x<0&&R<0)&&(S!==0||A!==0||x!==0||R!==0||function(M,T,E,C){for(var L=0;L<2;++L){var D=M[L],k=T[L],I=Math.min(D,k),z=Math.max(D,k),$=E[L],Q=C[L],j=Math.min($,Q);if(Math.max($,Q)=h?(m=M,(A+=1)=h?(m=M,(A+=1)>1,M=h[2*R+1];if(M===S)return R;S>1,M=h[2*R+1];if(M===S)return R;S>1,M=h[2*R+1];if(M===S)return R;S0)-(h<0)},p.abs=function(h){var m=h>>31;return(h^m)-m},p.min=function(h,m){return m^(h^m)&-(h65535)<<4,m|=v=((h>>>=m)>255)<<3,m|=v=((h>>>=v)>15)<<2,(m|=v=((h>>>=v)>3)<<1)|(h>>>=v)>>1},p.log10=function(h){return h>=1e9?9:h>=1e8?8:h>=1e7?7:h>=1e6?6:h>=1e5?5:h>=1e4?4:h>=1e3?3:h>=100?2:h>=10?1:0},p.popCount=function(h){return 16843009*((h=(858993459&(h-=h>>>1&1431655765))+(h>>>2&858993459))+(h>>>4)&252645135)>>>24},p.countTrailingZeros=a,p.nextPow2=function(h){return h+=h===0,--h,h|=h>>>1,h|=h>>>2,h|=h>>>4,1+((h|=h>>>8)|h>>>16)},p.prevPow2=function(h){return h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,(h|=h>>>16)-(h>>>1)},p.parity=function(h){return h^=h>>>16,h^=h>>>8,h^=h>>>4,27030>>>(h&=15)&1};var u=new Array(256);(function(h){for(var m=0;m<256;++m){var v=m,_=m,S=7;for(v>>>=1;v;v>>>=1)_<<=1,_|=1&v,--S;h[m]=_<>>8&255]<<16|u[h>>>16&255]<<8|u[h>>>24&255]},p.interleave2=function(h,m){return(h=1431655765&((h=858993459&((h=252645135&((h=16711935&((h&=65535)|h<<8))|h<<4))|h<<2))|h<<1))|(m=1431655765&((m=858993459&((m=252645135&((m=16711935&((m&=65535)|m<<8))|m<<4))|m<<2))|m<<1))<<1},p.deinterleave2=function(h,m){return(h=65535&((h=16711935&((h=252645135&((h=858993459&((h=h>>>m&1431655765)|h>>>1))|h>>>2))|h>>>4))|h>>>16))<<16>>16},p.interleave3=function(h,m,v){return h=1227133513&((h=3272356035&((h=251719695&((h=4278190335&((h&=1023)|h<<16))|h<<8))|h<<4))|h<<2),(h|=(m=1227133513&((m=3272356035&((m=251719695&((m=4278190335&((m&=1023)|m<<16))|m<<8))|m<<4))|m<<2))<<1)|(v=1227133513&((v=3272356035&((v=251719695&((v=4278190335&((v&=1023)|v<<16))|v<<8))|v<<4))|v<<2))<<2},p.deinterleave3=function(h,m){return(h=1023&((h=4278190335&((h=251719695&((h=3272356035&((h=h>>>m&1227133513)|h>>>2))|h>>>4))|h>>>8))|h>>>16))<<22>>22},p.nextCombination=function(h){var m=h|h-1;return m+1|(~m&-~m)-1>>>a(h)+1}},6656:function(y,p,a){var u=a(9392),h=a(9521);function m(M,T){var E=M.length,C=M.length-T.length,L=Math.min;if(C)return C;switch(E){case 0:return 0;case 1:return M[0]-T[0];case 2:return(I=M[0]+M[1]-T[0]-T[1])||L(M[0],M[1])-L(T[0],T[1]);case 3:var D=M[0]+M[1],k=T[0]+T[1];if(I=D+M[2]-(k+T[2]))return I;var I,z=L(M[0],M[1]),$=L(T[0],T[1]);return(I=L(z,M[2])-L($,T[2]))||L(z+M[2],D)-L($+T[2],k);default:var Q=M.slice(0);Q.sort();var j=T.slice(0);j.sort();for(var U=0;U>1,k=m(M[D],T);k<=0?(k===0&&(L=D),E=D+1):k>0&&(C=D-1)}return L}function x(M,T){for(var E=new Array(M.length),C=0,L=E.length;C=M.length||m(M[X],D)!==0););}return E}function R(M,T){if(T<0)return[];for(var E=[],C=(1<>>$&1&&z.push(L[$]);T.push(z)}return _(T)},p.skeleton=R,p.boundary=function(M){for(var T=[],E=0,C=M.length;E>1:(he>>1)-1}function Q(he){for(var se=z(he);;){var ae=se,ce=2*he+1,de=2*(he+1),ve=he;if(ce0;){var ae=$(he);if(!(ae>=0&&se0){var he=W[0];return I(0,oe-1),oe-=1,Q(0),he}return-1}function X(he,se){var ae=W[he];return M[ae]===se?he:(M[ae]=-1/0,j(he),U(),M[ae]=se,j((oe+=1)-1))}function te(he){if(!T[he]){T[he]=!0;var se=x[he],ae=R[he];x[ae]>=0&&(x[ae]=se),R[se]>=0&&(R[se]=ae),K[se]>=0&&X(K[se],k(se)),K[ae]>=0&&X(K[ae],k(ae))}}var W=[],K=new Array(S);for(E=0;E>1;E>=0;--E)Q(E);for(;;){var q=U();if(q<0||M[q]>_)break;te(q)}var Y=[];for(E=0;E=0&&ae>=0&&se!==ae){var ce=K[se],de=K[ae];ce!==de&&me.push([ce,de])}}),h.unique(h.normalize(me)),{positions:Y,edges:me}};var u=a(417),h=a(6656)},6638:function(y,p,a){y.exports=function(m,v){var _,S,A,x;if(v[0][0]v[1][0]))return h(v,m);_=v[1],S=v[0]}if(m[0][0]m[1][0]))return-h(m,v);A=m[1],x=m[0]}var R=u(_,S,x),M=u(_,S,A);if(R<0){if(M<=0)return R}else if(R>0){if(M>=0)return R}else if(M)return M;if(R=u(x,A,S),M=u(x,A,_),R<0){if(M<=0)return R}else if(R>0){if(M>=0)return R}else if(M)return M;return S[0]-x[0]};var u=a(417);function h(m,v){var _,S,A,x;if(v[0][0]v[1][0])){var R=Math.min(m[0][1],m[1][1]),M=Math.max(m[0][1],m[1][1]),T=Math.min(v[0][1],v[1][1]),E=Math.max(v[0][1],v[1][1]);return ME?R-E:M-E}_=v[1],S=v[0]}m[0][1]0)if(T[0]!==D[1][0])E=M,M=M.right;else{if(I=A(M.right,T))return I;M=M.left}else{if(T[0]!==D[1][0])return M;var I;if(I=A(M.right,T))return I;M=M.left}}return E}function x(M,T,E,C){this.y=M,this.index=T,this.start=E,this.closed=C}function R(M,T,E,C){this.x=M,this.segment=T,this.create=E,this.index=C}_.prototype.castUp=function(M){var T=u.le(this.coordinates,M[0]);if(T<0)return-1;this.slabs[T];var E=A(this.slabs[T],M),C=-1;if(E&&(C=E.value),this.coordinates[T]===M[0]){var L=null;if(E&&(L=E.key),T>0){var D=A(this.slabs[T-1],M);D&&(L?v(D.key,L)>0&&(L=D.key,C=D.value):(C=D.value,L=D.key))}var k=this.horizontal[T];if(k.length>0){var I=u.ge(k,M[1],S);if(I=k.length)return C;z=k[I]}}if(z.start)if(L){var $=m(L[0],L[1],[M[0],z.y]);L[0][0]>L[1][0]&&($=-$),$>0&&(C=z.index)}else C=z.index;else z.y!==M[1]&&(C=z.index)}}}return C}},4670:function(y,p,a){var u=a(9130),h=a(9662);function m(_,S){var A=h(u(_,S),[S[S.length-1]]);return A[A.length-1]}function v(_,S,A,x){var R=-S/(x-S);R<0?R=0:R>1&&(R=1);for(var M=1-R,T=_.length,E=new Array(T),C=0;C0||R>0&&C<0){var L=v(M,C,T,R);A.push(L),x.push(L.slice())}C<0?x.push(T.slice()):C>0?A.push(T.slice()):(A.push(T.slice()),x.push(T.slice())),R=C}return{positive:A,negative:x}},y.exports.positive=function(_,S){for(var A=[],x=m(_[_.length-1],S),R=_[_.length-1],M=_[0],T=0;T<_.length;++T,R=M){var E=m(M=_[T],S);(x<0&&E>0||x>0&&E<0)&&A.push(v(R,E,M,x)),E>=0&&A.push(M.slice()),x=E}return A},y.exports.negative=function(_,S){for(var A=[],x=m(_[_.length-1],S),R=_[_.length-1],M=_[0],T=0;T<_.length;++T,R=M){var E=m(M=_[T],S);(x<0&&E>0||x>0&&E<0)&&A.push(v(R,E,M,x)),E<=0&&A.push(M.slice()),x=E}return A}},8974:function(y,p,a){var u;(function(){var h={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function m(S){return function(A,x){var R,M,T,E,C,L,D,k,I,z=1,$=A.length,Q="";for(M=0;M<$;M++)if(typeof A[M]=="string")Q+=A[M];else if(typeof A[M]=="object"){if((E=A[M]).keys)for(R=x[z],T=0;T=0),E.type){case"b":R=parseInt(R,10).toString(2);break;case"c":R=String.fromCharCode(parseInt(R,10));break;case"d":case"i":R=parseInt(R,10);break;case"j":R=JSON.stringify(R,null,E.width?parseInt(E.width):0);break;case"e":R=E.precision?parseFloat(R).toExponential(E.precision):parseFloat(R).toExponential();break;case"f":R=E.precision?parseFloat(R).toFixed(E.precision):parseFloat(R);break;case"g":R=E.precision?String(Number(R.toPrecision(E.precision))):parseFloat(R);break;case"o":R=(parseInt(R,10)>>>0).toString(8);break;case"s":R=String(R),R=E.precision?R.substring(0,E.precision):R;break;case"t":R=String(!!R),R=E.precision?R.substring(0,E.precision):R;break;case"T":R=Object.prototype.toString.call(R).slice(8,-1).toLowerCase(),R=E.precision?R.substring(0,E.precision):R;break;case"u":R=parseInt(R,10)>>>0;break;case"v":R=R.valueOf(),R=E.precision?R.substring(0,E.precision):R;break;case"x":R=(parseInt(R,10)>>>0).toString(16);break;case"X":R=(parseInt(R,10)>>>0).toString(16).toUpperCase()}h.json.test(E.type)?Q+=R:(!h.number.test(E.type)||k&&!E.sign?I="":(I=k?"+":"-",R=R.toString().replace(h.sign,"")),L=E.pad_char?E.pad_char==="0"?"0":E.pad_char.charAt(1):" ",D=E.width-(I+R).length,C=E.width&&D>0?L.repeat(D):"",Q+=E.align?I+R+C:L==="0"?I+C+R:C+I+R)}return Q}(function(A){if(_[A])return _[A];for(var x,R=A,M=[],T=0;R;){if((x=h.text.exec(R))!==null)M.push(x[0]);else if((x=h.modulo.exec(R))!==null)M.push("%");else{if((x=h.placeholder.exec(R))===null)throw new SyntaxError("[sprintf] unexpected placeholder");if(x[2]){T|=1;var E=[],C=x[2],L=[];if((L=h.key.exec(C))===null)throw new SyntaxError("[sprintf] failed to parse named argument key");for(E.push(L[1]);(C=C.substring(L[0].length))!=="";)if((L=h.key_access.exec(C))!==null)E.push(L[1]);else{if((L=h.index_access.exec(C))===null)throw new SyntaxError("[sprintf] failed to parse named argument key");E.push(L[1])}x[2]=E}else T|=2;if(T===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");M.push({placeholder:x[0],param_no:x[1],keys:x[2],sign:x[3],pad_char:x[4],align:x[5],width:x[6],precision:x[7],type:x[8]})}R=R.substring(x[0].length)}return _[A]=M}(S),arguments)}function v(S,A){return m.apply(null,[S].concat(A||[]))}var _=Object.create(null);p.sprintf=m,p.vsprintf=v,typeof window<"u"&&(window.sprintf=m,window.vsprintf=v,(u=(function(){return{sprintf:m,vsprintf:v}}).call(p,a,p,y))===void 0||(y.exports=u))})()},4162:function(y,p,a){y.exports=function(_,S){if(_.dimension<=0)return{positions:[],cells:[]};if(_.dimension===1)return function(R,M){for(var T=h(R,M),E=T.length,C=new Array(E),L=new Array(E),D=0;DE|0},vertex:function(R,M,T,E,C,L,D,k,I,z,$,Q,j){var U=(D<<0)+(k<<1)+(I<<2)+(z<<3)|0;if(U!==0&&U!==15)switch(U){case 0:case 15:$.push([R-.5,M-.5]);break;case 1:$.push([R-.25-.25*(E+T-2*j)/(T-E),M-.25-.25*(C+T-2*j)/(T-C)]);break;case 2:$.push([R-.75-.25*(-E-T+2*j)/(E-T),M-.25-.25*(L+E-2*j)/(E-L)]);break;case 3:$.push([R-.5,M-.5-.5*(C+T+L+E-4*j)/(T-C+E-L)]);break;case 4:$.push([R-.25-.25*(L+C-2*j)/(C-L),M-.75-.25*(-C-T+2*j)/(C-T)]);break;case 5:$.push([R-.5-.5*(E+T+L+C-4*j)/(T-E+C-L),M-.5]);break;case 6:$.push([R-.5-.25*(-E-T+L+C)/(E-T+C-L),M-.5-.25*(-C-T+L+E)/(C-T+E-L)]);break;case 7:$.push([R-.75-.25*(L+C-2*j)/(C-L),M-.75-.25*(L+E-2*j)/(E-L)]);break;case 8:$.push([R-.75-.25*(-L-C+2*j)/(L-C),M-.75-.25*(-L-E+2*j)/(L-E)]);break;case 9:$.push([R-.5-.25*(E+T+-L-C)/(T-E+L-C),M-.5-.25*(C+T+-L-E)/(T-C+L-E)]);break;case 10:$.push([R-.5-.5*(-E-T-L-C+4*j)/(E-T+L-C),M-.5]);break;case 11:$.push([R-.25-.25*(-L-C+2*j)/(L-C),M-.75-.25*(C+T-2*j)/(T-C)]);break;case 12:$.push([R-.5,M-.5-.5*(-C-T-L-E+4*j)/(C-T+L-E)]);break;case 13:$.push([R-.75-.25*(E+T-2*j)/(T-E),M-.25-.25*(-L-E+2*j)/(L-E)]);break;case 14:$.push([R-.25-.25*(-E-T+2*j)/(E-T),M-.25-.25*(-C-T+2*j)/(C-T)])}},cell:function(R,M,T,E,C,L,D,k,I){C?k.push([R,M]):k.push([M,R])}});return function(R,M){var T=[],E=[];return x(R,T,E,M),{positions:T,cells:E}}}},v={}},6946:function(y,p,a){y.exports=function v(_,S,A){A=A||{};var x=m[_];x||(x=m[_]={" ":{data:new Float32Array(0),shape:.2}});var R=x[S];if(!R)if(S.length<=1||!/\d/.test(S))R=x[S]=function(Q){for(var j=Q.cells,U=Q.positions,X=new Float32Array(6*j.length),te=0,W=0,K=0;K0&&(C+=.02);var D=new Float32Array(E),k=0,I=-.5*C;for(L=0;LMath.max(D,k)?I[2]=1:D>Math.max(L,k)?I[0]=1:I[1]=1;for(var z=0,$=0,Q=0;Q<3;++Q)z+=C[Q]*C[Q],$+=I[Q]*C[Q];for(Q=0;Q<3;++Q)I[Q]-=$/z*C[Q];return _(I,I),I}function M(C,L,D,k,I,z,$,Q){this.center=u(D),this.up=u(k),this.right=u(I),this.radius=u([z]),this.angle=u([$,Q]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(C,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var j=0;j<16;++j)this.computedMatrix[j]=.5;this.recalcMatrix(0)}var T=M.prototype;T.setDistanceLimits=function(C,L){C=C>0?Math.log(C):-1/0,L=L>0?Math.log(L):1/0,L=Math.max(L,C),this.radius.bounds[0][0]=C,this.radius.bounds[1][0]=L},T.getDistanceLimits=function(C){var L=this.radius.bounds[0];return C?(C[0]=Math.exp(L[0][0]),C[1]=Math.exp(L[1][0]),C):[Math.exp(L[0][0]),Math.exp(L[1][0])]},T.recalcMatrix=function(C){this.center.curve(C),this.up.curve(C),this.right.curve(C),this.radius.curve(C),this.angle.curve(C);for(var L=this.computedUp,D=this.computedRight,k=0,I=0,z=0;z<3;++z)I+=L[z]*D[z],k+=L[z]*L[z];var $=Math.sqrt(k),Q=0;for(z=0;z<3;++z)D[z]-=L[z]*I/k,Q+=D[z]*D[z],L[z]/=$;var j=Math.sqrt(Q);for(z=0;z<3;++z)D[z]/=j;var U=this.computedToward;v(U,L,D),_(U,U);var X=Math.exp(this.computedRadius[0]),te=this.computedAngle[0],W=this.computedAngle[1],K=Math.cos(te),oe=Math.sin(te),q=Math.cos(W),Y=Math.sin(W),ee=this.computedCenter,me=K*q,he=oe*q,se=Y,ae=-K*Y,ce=-oe*Y,de=q,ve=this.computedEye,ye=this.computedMatrix;for(z=0;z<3;++z){var _e=me*D[z]+he*U[z]+se*L[z];ye[4*z+1]=ae*D[z]+ce*U[z]+de*L[z],ye[4*z+2]=_e,ye[4*z+3]=0}var Se=ye[1],Te=ye[5],Pe=ye[9],Ie=ye[2],ze=ye[6],De=ye[10],He=Te*De-Pe*ze,Ve=Pe*Ie-Se*De,$e=Se*ze-Te*Ie,Oe=A(He,Ve,$e);for(He/=Oe,Ve/=Oe,$e/=Oe,ye[0]=He,ye[4]=Ve,ye[8]=$e,z=0;z<3;++z)ve[z]=ee[z]+ye[2+4*z]*X;for(z=0;z<3;++z){Q=0;for(var ke=0;ke<3;++ke)Q+=ye[z+4*ke]*ve[ke];ye[12+z]=-Q}ye[15]=1},T.getMatrix=function(C,L){this.recalcMatrix(C);var D=this.computedMatrix;if(L){for(var k=0;k<16;++k)L[k]=D[k];return L}return D};var E=[0,0,0];T.rotate=function(C,L,D,k){if(this.angle.move(C,L,D),k){this.recalcMatrix(C);var I=this.computedMatrix;E[0]=I[2],E[1]=I[6],E[2]=I[10];for(var z=this.computedUp,$=this.computedRight,Q=this.computedToward,j=0;j<3;++j)I[4*j]=z[j],I[4*j+1]=$[j],I[4*j+2]=Q[j];for(m(I,I,k,E),j=0;j<3;++j)z[j]=I[4*j],$[j]=I[4*j+1];this.up.set(C,z[0],z[1],z[2]),this.right.set(C,$[0],$[1],$[2])}},T.pan=function(C,L,D,k){L=L||0,D=D||0,k=k||0,this.recalcMatrix(C);var I=this.computedMatrix,z=(Math.exp(this.computedRadius[0]),I[1]),$=I[5],Q=I[9],j=A(z,$,Q);z/=j,$/=j,Q/=j;var U=I[0],X=I[4],te=I[8],W=U*z+X*$+te*Q,K=A(U-=z*W,X-=$*W,te-=Q*W),oe=(U/=K)*L+z*D,q=(X/=K)*L+$*D,Y=(te/=K)*L+Q*D;this.center.move(C,oe,q,Y);var ee=Math.exp(this.computedRadius[0]);ee=Math.max(1e-4,ee+k),this.radius.set(C,Math.log(ee))},T.translate=function(C,L,D,k){this.center.move(C,L||0,D||0,k||0)},T.setMatrix=function(C,L,D,k){var I=1;typeof D=="number"&&(I=0|D),(I<0||I>3)&&(I=1);var z=(I+2)%3;L||(this.recalcMatrix(C),L=this.computedMatrix);var $=L[I],Q=L[I+4],j=L[I+8];if(k){var U=Math.abs($),X=Math.abs(Q),te=Math.abs(j),W=Math.max(U,X,te);U===W?($=$<0?-1:1,Q=j=0):te===W?(j=j<0?-1:1,$=Q=0):(Q=Q<0?-1:1,$=j=0)}else{var K=A($,Q,j);$/=K,Q/=K,j/=K}var oe,q,Y=L[z],ee=L[z+4],me=L[z+8],he=Y*$+ee*Q+me*j,se=A(Y-=$*he,ee-=Q*he,me-=j*he),ae=Q*(me/=se)-j*(ee/=se),ce=j*(Y/=se)-$*me,de=$*ee-Q*Y,ve=A(ae,ce,de);if(ae/=ve,ce/=ve,de/=ve,this.center.jump(C,Ze,Xe,tt),this.radius.idle(C),this.up.jump(C,$,Q,j),this.right.jump(C,Y,ee,me),I===2){var ye=L[1],_e=L[5],Se=L[9],Te=ye*Y+_e*ee+Se*me,Pe=ye*ae+_e*ce+Se*de;oe=He<0?-Math.PI/2:Math.PI/2,q=Math.atan2(Pe,Te)}else{var Ie=L[2],ze=L[6],De=L[10],He=Ie*$+ze*Q+De*j,Ve=Ie*Y+ze*ee+De*me,$e=Ie*ae+ze*ce+De*de;oe=Math.asin(x(He)),q=Math.atan2($e,Ve)}this.angle.jump(C,q,oe),this.recalcMatrix(C);var Oe=L[2],ke=L[6],Le=L[10],We=this.computedMatrix;h(We,L);var Ue=We[15],Ze=We[12]/Ue,Xe=We[13]/Ue,tt=We[14]/Ue,Ee=Math.exp(this.computedRadius[0]);this.center.jump(C,Ze-Oe*Ee,Xe-ke*Ee,tt-Le*Ee)},T.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},T.idle=function(C){this.center.idle(C),this.up.idle(C),this.right.idle(C),this.radius.idle(C),this.angle.idle(C)},T.flush=function(C){this.center.flush(C),this.up.flush(C),this.right.flush(C),this.radius.flush(C),this.angle.flush(C)},T.setDistance=function(C,L){L>0&&this.radius.set(C,Math.log(L))},T.lookAt=function(C,L,D,k){this.recalcMatrix(C),L=L||this.computedEye,D=D||this.computedCenter;var I=(k=k||this.computedUp)[0],z=k[1],$=k[2],Q=A(I,z,$);if(!(Q<1e-6)){I/=Q,z/=Q,$/=Q;var j=L[0]-D[0],U=L[1]-D[1],X=L[2]-D[2],te=A(j,U,X);if(!(te<1e-6)){j/=te,U/=te,X/=te;var W=this.computedRight,K=W[0],oe=W[1],q=W[2],Y=I*K+z*oe+$*q,ee=A(K-=Y*I,oe-=Y*z,q-=Y*$);if(!(ee<.01&&(ee=A(K=z*X-$*U,oe=$*j-I*X,q=I*U-z*j))<1e-6)){K/=ee,oe/=ee,q/=ee,this.up.set(C,I,z,$),this.right.set(C,K,oe,q),this.center.set(C,D[0],D[1],D[2]),this.radius.set(C,Math.log(te));var me=z*q-$*oe,he=$*K-I*q,se=I*oe-z*K,ae=A(me,he,se),ce=I*j+z*U+$*X,de=K*j+oe*U+q*X,ve=(me/=ae)*j+(he/=ae)*U+(se/=ae)*X,ye=Math.asin(x(ce)),_e=Math.atan2(ve,de),Se=this.angle._state,Te=Se[Se.length-1],Pe=Se[Se.length-2];Te%=2*Math.PI;var Ie=Math.abs(Te+2*Math.PI-_e),ze=Math.abs(Te-_e),De=Math.abs(Te-2*Math.PI-_e);Ie0?oe.pop():new ArrayBuffer(W)}function E(W){return new Uint8Array(T(W),0,W)}function C(W){return new Uint16Array(T(2*W),0,W)}function L(W){return new Uint32Array(T(4*W),0,W)}function D(W){return new Int8Array(T(W),0,W)}function k(W){return new Int16Array(T(2*W),0,W)}function I(W){return new Int32Array(T(4*W),0,W)}function z(W){return new Float32Array(T(4*W),0,W)}function $(W){return new Float64Array(T(8*W),0,W)}function Q(W){return v?new Uint8ClampedArray(T(W),0,W):E(W)}function j(W){return _?new BigUint64Array(T(8*W),0,W):null}function U(W){return S?new BigInt64Array(T(8*W),0,W):null}function X(W){return new DataView(T(W),0,W)}function te(W){W=u.nextPow2(W);var K=u.log2(W),oe=R[K];return oe.length>0?oe.pop():new m(W)}p.free=function(W){if(m.isBuffer(W))R[u.log2(W.length)].push(W);else{if(Object.prototype.toString.call(W)!=="[object ArrayBuffer]"&&(W=W.buffer),!W)return;var K=W.length||W.byteLength,oe=0|u.log2(K);x[oe].push(W)}},p.freeUint8=p.freeUint16=p.freeUint32=p.freeBigUint64=p.freeInt8=p.freeInt16=p.freeInt32=p.freeBigInt64=p.freeFloat32=p.freeFloat=p.freeFloat64=p.freeDouble=p.freeUint8Clamped=p.freeDataView=function(W){M(W.buffer)},p.freeArrayBuffer=M,p.freeBuffer=function(W){R[u.log2(W.length)].push(W)},p.malloc=function(W,K){if(K===void 0||K==="arraybuffer")return T(W);switch(K){case"uint8":return E(W);case"uint16":return C(W);case"uint32":return L(W);case"int8":return D(W);case"int16":return k(W);case"int32":return I(W);case"float":case"float32":return z(W);case"double":case"float64":return $(W);case"uint8_clamped":return Q(W);case"bigint64":return U(W);case"biguint64":return j(W);case"buffer":return te(W);case"data":case"dataview":return X(W);default:return null}return null},p.mallocArrayBuffer=T,p.mallocUint8=E,p.mallocUint16=C,p.mallocUint32=L,p.mallocInt8=D,p.mallocInt16=k,p.mallocInt32=I,p.mallocFloat32=p.mallocFloat=z,p.mallocFloat64=p.mallocDouble=$,p.mallocUint8Clamped=Q,p.mallocBigUint64=j,p.mallocBigInt64=U,p.mallocDataView=X,p.mallocBuffer=te,p.clearCache=function(){for(var W=0;W<32;++W)A.UINT8[W].length=0,A.UINT16[W].length=0,A.UINT32[W].length=0,A.INT8[W].length=0,A.INT16[W].length=0,A.INT32[W].length=0,A.FLOAT[W].length=0,A.DOUBLE[W].length=0,A.BIGUINT64[W].length=0,A.BIGINT64[W].length=0,A.UINT8C[W].length=0,x[W].length=0,R[W].length=0}},1731:function(y){function p(u){this.roots=new Array(u),this.ranks=new Array(u);for(var h=0;h0&&(W=te.size),te.lineSpacing&&te.lineSpacing>0&&(K=te.lineSpacing),te.styletags&&te.styletags.breaklines&&(oe.breaklines=!!te.styletags.breaklines),te.styletags&&te.styletags.bolds&&(oe.bolds=!!te.styletags.bolds),te.styletags&&te.styletags.italics&&(oe.italics=!!te.styletags.italics),te.styletags&&te.styletags.subscripts&&(oe.subscripts=!!te.styletags.subscripts),te.styletags&&te.styletags.superscripts&&(oe.superscripts=!!te.styletags.superscripts)),X.font=[te.fontStyle,te.fontVariant,te.fontWeight,W+"px",te.font].filter(function(q){return q}).join(" "),X.textAlign="start",X.textBaseline="alphabetic",X.direction="ltr",Q(function(q,Y,ee,me,he,se){ee=ee.replace(/\n/g,""),ee=se.breaklines===!0?ee.replace(/\/g,` `):ee.replace(/\/g," ");var ae="",ce=[];for(_e=0;_e-1?parseInt(nt[1+ht]):0,Dt=pt>-1?parseInt(ot[1+pt]):0;wt!==Dt&&(Ge=Ge.replace(Ue(),"?px "),Pe*=Math.pow(.75,Dt-wt),Ge=Ge.replace("?px ",Ue())),Te+=.25*De*(Dt-wt)}if(se.superscripts===!0){var It=nt.indexOf(E),qt=ot.indexOf(E),en=It>-1?parseInt(nt[1+It]):0,Gt=qt>-1?parseInt(ot[1+qt]):0;en!==Gt&&(Ge=Ge.replace(Ue(),"?px "),Pe*=Math.pow(.75,Gt-en),Ge=Ge.replace("?px ",Ue())),Te-=.25*De*(Gt-en)}if(se.bolds===!0){var Ct=nt.indexOf(x)>-1,_t=ot.indexOf(x)>-1;!Ct&&_t&&(Ge=nn?Ge.replace("italic ","italic bold "):"bold "+Ge),Ct&&!_t&&(Ge=Ge.replace("bold ",""))}if(se.italics===!0){var nn=nt.indexOf(M)>-1,gn=ot.indexOf(M)>-1;!nn&&gn&&(Ge="italic "+Ge),nn&&!gn&&(Ge=Ge.replace("italic ",""))}Y.font=Ge}for(ye=0;ye",K="",oe=W.length,q=K.length,Y=U[0]===E||U[0]===D,ee=0,me=-q;ee>-1&&(ee=X.indexOf(W,ee))!==-1&&(me=X.indexOf(K,ee+oe))!==-1&&!(me<=ee);){for(var he=ee;he=me)te[he]=null,X=X.substr(0,he)+" "+X.substr(he+1);else if(te[he]!==null){var se=te[he].indexOf(U[0]);se===-1?te[he]+=U:Y&&(te[he]=te[he].substr(0,se+1)+(1+parseInt(te[he][se+1]))+te[he].substr(se+2))}var ae=ee+oe,ce=X.substr(ae,me-ae).indexOf(W);ee=ce!==-1?ce:me+q}return te}function z(j,U){var X=u(j,128);return U?m(X.cells,X.positions,.25):{edges:X.cells,positions:X.positions}}function $(j,U,X,te){var W=z(j,te),K=function(ye,_e,Se){for(var Te=_e.textAlign||"start",Pe=_e.textBaseline||"alphabetic",Ie=[1<<30,1<<30],ze=[0,0],De=ye.length,He=0;He"u"||!ses.ok||ses.ok()){typeof ses<"u"&&(ses.weakMapPermitHostObjects=L);var p=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var u=new a,h=Object.freeze({});if(u.set(h,1),u.get(h)===1)return void(y.exports=WeakMap);p=!0}}var m=Object.getOwnPropertyNames,v=Object.defineProperty,_=Object.isExtensible,S="weakmap:",A=S+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var x=new ArrayBuffer(25),R=new Uint8Array(x);crypto.getRandomValues(R),A=S+"rand:"+Array.prototype.map.call(R,function($){return($%36).toString(36)}).join("")+"___"}if(v(Object,"getOwnPropertyNames",{value:function($){return m($).filter(D)}}),"getPropertyNames"in Object){var M=Object.getPropertyNames;v(Object,"getPropertyNames",{value:function($){return M($).filter(D)}})}(function(){var $=Object.freeze;v(Object,"freeze",{value:function(U){return k(U),$(U)}});var Q=Object.seal;v(Object,"seal",{value:function(U){return k(U),Q(U)}});var j=Object.preventExtensions;v(Object,"preventExtensions",{value:function(U){return k(U),j(U)}})})();var T=!1,E=0,C=function(){this instanceof C||z();var $=[],Q=[],j=E++;return Object.create(C.prototype,{get___:{value:I(function(U,X){var te,W=k(U);return W?j in W?W[j]:X:(te=$.indexOf(U))>=0?Q[te]:X})},has___:{value:I(function(U){var X=k(U);return X?j in X:$.indexOf(U)>=0})},set___:{value:I(function(U,X){var te,W=k(U);return W?W[j]=X:(te=$.indexOf(U))>=0?Q[te]=X:(te=$.length,Q[te]=X,$[te]=U),this})},delete___:{value:I(function(U){var X,te,W=k(U);return W?j in W&&delete W[j]:!((X=$.indexOf(U))<0||(te=$.length-1,$[X]=void 0,Q[X]=Q[te],$[X]=$[te],$.length=te,Q.length=te,0))})}})};C.prototype=Object.create(Object.prototype,{get:{value:function($,Q){return this.get___($,Q)},writable:!0,configurable:!0},has:{value:function($){return this.has___($)},writable:!0,configurable:!0},set:{value:function($,Q){return this.set___($,Q)},writable:!0,configurable:!0},delete:{value:function($){return this.delete___($)},writable:!0,configurable:!0}}),typeof a=="function"?function(){function $(){this instanceof C||z();var Q,j=new a,U=void 0,X=!1;return Q=p?function(te,W){return j.set(te,W),j.has(te)||(U||(U=new C),U.set(te,W)),this}:function(te,W){if(X)try{j.set(te,W)}catch{U||(U=new C),U.set___(te,W)}else j.set(te,W);return this},Object.create(C.prototype,{get___:{value:I(function(te,W){return U?j.has(te)?j.get(te):U.get___(te,W):j.get(te,W)})},has___:{value:I(function(te){return j.has(te)||!!U&&U.has___(te)})},set___:{value:I(Q)},delete___:{value:I(function(te){var W=!!j.delete(te);return U&&U.delete___(te)||W})},permitHostObjects___:{value:I(function(te){if(te!==L)throw new Error("bogus call to permitHostObjects___");X=!0})}})}p&&typeof Proxy<"u"&&(Proxy=void 0),$.prototype=C.prototype,y.exports=$,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),y.exports=C)}function L($){$.permitHostObjects___&&$.permitHostObjects___(L)}function D($){return!($.substr(0,8)==S&&$.substr($.length-3)==="___")}function k($){if($!==Object($))throw new TypeError("Not an object: "+$);var Q=$[A];if(Q&&Q.key===$)return Q;if(_($)){Q={key:$};try{return v($,A,{value:Q,writable:!1,enumerable:!1,configurable:!1}),Q}catch{return}}}function I($){return $.prototype=null,Object.freeze($)}function z(){T||typeof console>"u"||(T=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}})()},9222:function(y,p,a){var u=a(7178);y.exports=function(){var h={};return function(m){if((typeof m!="object"||m===null)&&typeof m!="function")throw new Error("Weakmap-shim: Key must be object");var v=m.valueOf(h);return v&&v.identity===h?v:u(m,h)}}},7178:function(y){y.exports=function(p,a){var u={identity:a},h=p.valueOf;return Object.defineProperty(p,"valueOf",{value:function(m){return m!==a?h.apply(this,arguments):u},writable:!0}),u}},4037:function(y,p,a){var u=a(9222);y.exports=function(){var h=u();return{get:function(m,v){var _=h(m);return _.hasOwnProperty("value")?_.value:v},set:function(m,v){return h(m).value=v,this},has:function(m){return"value"in h(m)},delete:function(m){return delete h(m).value}}}},6183:function(y){y.exports=function(p){var a={};return function(u,h,m){var v=u.dtype,_=u.order,S=[v,_.join()].join(),A=a[S];return A||(a[S]=A=p([v,_])),A(u.shape.slice(0),u.data,u.stride,0|u.offset,h,m)}}((function(){return function(p,a,u,h,m,v){var _=p[0],S=u[0],A=[0],x=S;h|=0;var R=0,M=S;for(R=0;R<_;++R){var T=a[h]-v,E=a[h+x]-v;T>=0!=E>=0&&m.push(A[0]+.5+.5*(T+E)/(T-E)),h+=M,++A[0]}}}).bind(void 0,{funcName:"zeroCrossings"}))},9584:function(y,p,a){y.exports=function(h,m){var v=[];return m=+m||0,u(h.hi(h.shape[0]-1),v,m),v};var u=a(6183)},6601:function(){}},O={};function w(y){var p=O[y];if(p!==void 0)return p.exports;var a=O[y]={id:y,loaded:!1,exports:{}};return i[y].call(a.exports,a,a.exports,w),a.loaded=!0,a.exports}return w.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),w.nmd=function(y){return y.paths=[],y.children||(y.children=[]),y},w(7386)}()},d.exports=c()},33576:function(d,l,n){function c(Oe,ke){for(var Le=0;Leu)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var ke=new Uint8Array(Oe);return Object.setPrototypeOf(ke,m.prototype),ke}function m(Oe,ke,Le){if(typeof Oe=="number"){if(typeof ke=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(Oe)}return v(Oe,ke,Le)}function v(Oe,ke,Le){if(typeof Oe=="string")return function(Ze,Xe){if(typeof Xe=="string"&&Xe!==""||(Xe="utf8"),!m.isEncoding(Xe))throw new TypeError("Unknown encoding: "+Xe);var tt=0|M(Ze,Xe),Ee=h(tt),Ne=Ee.write(Ze,Xe);return Ne!==tt&&(Ee=Ee.slice(0,Ne)),Ee}(Oe,ke);if(ArrayBuffer.isView(Oe))return function(Ze){if(ze(Ze,Uint8Array)){var Xe=new Uint8Array(Ze);return x(Xe.buffer,Xe.byteOffset,Xe.byteLength)}return A(Ze)}(Oe);if(Oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe));if(ze(Oe,ArrayBuffer)||Oe&&ze(Oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(Oe,SharedArrayBuffer)||Oe&&ze(Oe.buffer,SharedArrayBuffer)))return x(Oe,ke,Le);if(typeof Oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var We=Oe.valueOf&&Oe.valueOf();if(We!=null&&We!==Oe)return m.from(We,ke,Le);var Ue=function(Ze){if(m.isBuffer(Ze)){var Xe=0|R(Ze.length),tt=h(Xe);return tt.length===0||Ze.copy(tt,0,0,Xe),tt}return Ze.length!==void 0?typeof Ze.length!="number"||De(Ze.length)?h(0):A(Ze):Ze.type==="Buffer"&&Array.isArray(Ze.data)?A(Ze.data):void 0}(Oe);if(Ue)return Ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Oe[Symbol.toPrimitive]=="function")return m.from(Oe[Symbol.toPrimitive]("string"),ke,Le);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe))}function _(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function S(Oe){return _(Oe),h(Oe<0?0:0|R(Oe))}function A(Oe){for(var ke=Oe.length<0?0:0|R(Oe.length),Le=h(ke),We=0;We=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|Oe}function M(Oe,ke){if(m.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||ze(Oe,ArrayBuffer))return Oe.byteLength;if(typeof Oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+w(Oe));var Le=Oe.length,We=arguments.length>2&&arguments[2]===!0;if(!We&&Le===0)return 0;for(var Ue=!1;;)switch(ke){case"ascii":case"latin1":case"binary":return Le;case"utf8":case"utf-8":return Te(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Le;case"hex":return Le>>>1;case"base64":return Pe(Oe).length;default:if(Ue)return We?-1:Te(Oe).length;ke=(""+ke).toLowerCase(),Ue=!0}}function T(Oe,ke,Le){var We=!1;if((ke===void 0||ke<0)&&(ke=0),ke>this.length||((Le===void 0||Le>this.length)&&(Le=this.length),Le<=0)||(Le>>>=0)<=(ke>>>=0))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return W(this,ke,Le);case"utf8":case"utf-8":return j(this,ke,Le);case"ascii":return X(this,ke,Le);case"latin1":case"binary":return te(this,ke,Le);case"base64":return Q(this,ke,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,ke,Le);default:if(We)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),We=!0}}function E(Oe,ke,Le){var We=Oe[ke];Oe[ke]=Oe[Le],Oe[Le]=We}function C(Oe,ke,Le,We,Ue){if(Oe.length===0)return-1;if(typeof Le=="string"?(We=Le,Le=0):Le>2147483647?Le=2147483647:Le<-2147483648&&(Le=-2147483648),De(Le=+Le)&&(Le=Ue?0:Oe.length-1),Le<0&&(Le=Oe.length+Le),Le>=Oe.length){if(Ue)return-1;Le=Oe.length-1}else if(Le<0){if(!Ue)return-1;Le=0}if(typeof ke=="string"&&(ke=m.from(ke,We)),m.isBuffer(ke))return ke.length===0?-1:L(Oe,ke,Le,We,Ue);if(typeof ke=="number")return ke&=255,typeof Uint8Array.prototype.indexOf=="function"?Ue?Uint8Array.prototype.indexOf.call(Oe,ke,Le):Uint8Array.prototype.lastIndexOf.call(Oe,ke,Le):L(Oe,[ke],Le,We,Ue);throw new TypeError("val must be string, number or Buffer")}function L(Oe,ke,Le,We,Ue){var Ze,Xe=1,tt=Oe.length,Ee=ke.length;if(We!==void 0&&((We=String(We).toLowerCase())==="ucs2"||We==="ucs-2"||We==="utf16le"||We==="utf-16le")){if(Oe.length<2||ke.length<2)return-1;Xe=2,tt/=2,Ee/=2,Le/=2}function Ne(Ge,ht){return Xe===1?Ge[ht]:Ge.readUInt16BE(ht*Xe)}if(Ue){var je=-1;for(Ze=Le;Zett&&(Le=tt-Ee),Ze=Le;Ze>=0;Ze--){for(var nt=!0,ot=0;otUe&&(We=Ue):We=Ue;var Ze,Xe=ke.length;for(We>Xe/2&&(We=Xe/2),Ze=0;Ze>8,Ee=Xe%256,Ne.push(Ee),Ne.push(tt);return Ne}(ke,Oe.length-Le),Oe,Le,We)}function Q(Oe,ke,Le){return ke===0&&Le===Oe.length?y.fromByteArray(Oe):y.fromByteArray(Oe.slice(ke,Le))}function j(Oe,ke,Le){Le=Math.min(Oe.length,Le);for(var We=[],Ue=ke;Ue239?4:Ze>223?3:Ze>191?2:1;if(Ue+tt<=Le){var Ee=void 0,Ne=void 0,je=void 0,nt=void 0;switch(tt){case 1:Ze<128&&(Xe=Ze);break;case 2:(192&(Ee=Oe[Ue+1]))==128&&(nt=(31&Ze)<<6|63&Ee)>127&&(Xe=nt);break;case 3:Ee=Oe[Ue+1],Ne=Oe[Ue+2],(192&Ee)==128&&(192&Ne)==128&&(nt=(15&Ze)<<12|(63&Ee)<<6|63&Ne)>2047&&(nt<55296||nt>57343)&&(Xe=nt);break;case 4:Ee=Oe[Ue+1],Ne=Oe[Ue+2],je=Oe[Ue+3],(192&Ee)==128&&(192&Ne)==128&&(192&je)==128&&(nt=(15&Ze)<<18|(63&Ee)<<12|(63&Ne)<<6|63&je)>65535&&nt<1114112&&(Xe=nt)}}Xe===null?(Xe=65533,tt=1):Xe>65535&&(Xe-=65536,We.push(Xe>>>10&1023|55296),Xe=56320|1023&Xe),We.push(Xe),Ue+=tt}return function(ot){var Ge=ot.length;if(Ge<=U)return String.fromCharCode.apply(String,ot);for(var ht="",pt=0;pt"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(Oe,ke,Le){return v(Oe,ke,Le)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.alloc=function(Oe,ke,Le){return function(We,Ue,Ze){return _(We),We<=0?h(We):Ue!==void 0?typeof Ze=="string"?h(We).fill(Ue,Ze):h(We).fill(Ue):h(We)}(Oe,ke,Le)},m.allocUnsafe=function(Oe){return S(Oe)},m.allocUnsafeSlow=function(Oe){return S(Oe)},m.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==m.prototype},m.compare=function(Oe,ke){if(ze(Oe,Uint8Array)&&(Oe=m.from(Oe,Oe.offset,Oe.byteLength)),ze(ke,Uint8Array)&&(ke=m.from(ke,ke.offset,ke.byteLength)),!m.isBuffer(Oe)||!m.isBuffer(ke))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===ke)return 0;for(var Le=Oe.length,We=ke.length,Ue=0,Ze=Math.min(Le,We);UeWe.length?(m.isBuffer(Ze)||(Ze=m.from(Ze)),Ze.copy(We,Ue)):Uint8Array.prototype.set.call(We,Ze,Ue);else{if(!m.isBuffer(Ze))throw new TypeError('"list" argument must be an Array of Buffers');Ze.copy(We,Ue)}Ue+=Ze.length}return We},m.byteLength=M,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var Oe=this.length;if(Oe%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ke=0;keke&&(Oe+=" ... "),""},a&&(m.prototype[a]=m.prototype.inspect),m.prototype.compare=function(Oe,ke,Le,We,Ue){if(ze(Oe,Uint8Array)&&(Oe=m.from(Oe,Oe.offset,Oe.byteLength)),!m.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+w(Oe));if(ke===void 0&&(ke=0),Le===void 0&&(Le=Oe?Oe.length:0),We===void 0&&(We=0),Ue===void 0&&(Ue=this.length),ke<0||Le>Oe.length||We<0||Ue>this.length)throw new RangeError("out of range index");if(We>=Ue&&ke>=Le)return 0;if(We>=Ue)return-1;if(ke>=Le)return 1;if(this===Oe)return 0;for(var Ze=(Ue>>>=0)-(We>>>=0),Xe=(Le>>>=0)-(ke>>>=0),tt=Math.min(Ze,Xe),Ee=this.slice(We,Ue),Ne=Oe.slice(ke,Le),je=0;je>>=0,isFinite(Le)?(Le>>>=0,We===void 0&&(We="utf8")):(We=Le,Le=void 0)}var Ue=this.length-ke;if((Le===void 0||Le>Ue)&&(Le=Ue),Oe.length>0&&(Le<0||ke<0)||ke>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Ze=!1;;)switch(We){case"hex":return D(this,Oe,ke,Le);case"utf8":case"utf-8":return k(this,Oe,ke,Le);case"ascii":case"latin1":case"binary":return I(this,Oe,ke,Le);case"base64":return z(this,Oe,ke,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,Oe,ke,Le);default:if(Ze)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Ze=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function X(Oe,ke,Le){var We="";Le=Math.min(Oe.length,Le);for(var Ue=ke;UeWe)&&(Le=We);for(var Ue="",Ze=ke;ZeLe)throw new RangeError("Trying to access beyond buffer length")}function q(Oe,ke,Le,We,Ue,Ze){if(!m.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ke>Ue||keOe.length)throw new RangeError("Index out of range")}function Y(Oe,ke,Le,We,Ue){ve(ke,We,Ue,Oe,Le,7);var Ze=Number(ke&BigInt(4294967295));Oe[Le++]=Ze,Ze>>=8,Oe[Le++]=Ze,Ze>>=8,Oe[Le++]=Ze,Ze>>=8,Oe[Le++]=Ze;var Xe=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Le++]=Xe,Xe>>=8,Oe[Le++]=Xe,Xe>>=8,Oe[Le++]=Xe,Xe>>=8,Oe[Le++]=Xe,Le}function ee(Oe,ke,Le,We,Ue){ve(ke,We,Ue,Oe,Le,7);var Ze=Number(ke&BigInt(4294967295));Oe[Le+7]=Ze,Ze>>=8,Oe[Le+6]=Ze,Ze>>=8,Oe[Le+5]=Ze,Ze>>=8,Oe[Le+4]=Ze;var Xe=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Le+3]=Xe,Xe>>=8,Oe[Le+2]=Xe,Xe>>=8,Oe[Le+1]=Xe,Xe>>=8,Oe[Le]=Xe,Le+8}function me(Oe,ke,Le,We,Ue,Ze){if(Le+We>Oe.length)throw new RangeError("Index out of range");if(Le<0)throw new RangeError("Index out of range")}function he(Oe,ke,Le,We,Ue){return ke=+ke,Le>>>=0,Ue||me(Oe,0,Le,4),p.write(Oe,ke,Le,We,23,4),Le+4}function se(Oe,ke,Le,We,Ue){return ke=+ke,Le>>>=0,Ue||me(Oe,0,Le,8),p.write(Oe,ke,Le,We,52,8),Le+8}m.prototype.slice=function(Oe,ke){var Le=this.length;(Oe=~~Oe)<0?(Oe+=Le)<0&&(Oe=0):Oe>Le&&(Oe=Le),(ke=ke===void 0?Le:~~ke)<0?(ke+=Le)<0&&(ke=0):ke>Le&&(ke=Le),ke>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=this[Oe+--ke],Ue=1;ke>0&&(Ue*=256);)We+=this[Oe+--ke]*Ue;return We},m.prototype.readUint8=m.prototype.readUInt8=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,1,this.length),this[Oe]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+16777216*this[Oe+3]},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),16777216*this[Oe]+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},m.prototype.readBigUInt64LE=Ve(function(Oe){ye(Oe>>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=ke+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,24),Ue=this[++Oe]+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+Le*Math.pow(2,24);return BigInt(We)+(BigInt(Ue)<>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=ke*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe],Ue=this[++Oe]*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+Le;return(BigInt(We)<>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze=(Ue*=128)&&(We-=Math.pow(2,8*ke)),We},m.prototype.readIntBE=function(Oe,ke,Le){Oe>>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=ke,Ue=1,Ze=this[Oe+--We];We>0&&(Ue*=256);)Ze+=this[Oe+--We]*Ue;return Ze>=(Ue*=128)&&(Ze-=Math.pow(2,8*ke)),Ze},m.prototype.readInt8=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,1,this.length),128&this[Oe]?-1*(255-this[Oe]+1):this[Oe]},m.prototype.readInt16LE=function(Oe,ke){Oe>>>=0,ke||oe(Oe,2,this.length);var Le=this[Oe]|this[Oe+1]<<8;return 32768&Le?4294901760|Le:Le},m.prototype.readInt16BE=function(Oe,ke){Oe>>>=0,ke||oe(Oe,2,this.length);var Le=this[Oe+1]|this[Oe]<<8;return 32768&Le?4294901760|Le:Le},m.prototype.readInt32LE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},m.prototype.readInt32BE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},m.prototype.readBigInt64LE=Ve(function(Oe){ye(Oe>>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=this[Oe+4]+this[Oe+5]*Math.pow(2,8)+this[Oe+6]*Math.pow(2,16)+(Le<<24);return(BigInt(We)<>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=(ke<<24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe];return(BigInt(We)<>>=0,ke||oe(Oe,4,this.length),p.read(this,Oe,!0,23,4)},m.prototype.readFloatBE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),p.read(this,Oe,!1,23,4)},m.prototype.readDoubleLE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,8,this.length),p.read(this,Oe,!0,52,8)},m.prototype.readDoubleBE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,8,this.length),p.read(this,Oe,!1,52,8)},m.prototype.writeUintLE=m.prototype.writeUIntLE=function(Oe,ke,Le,We){Oe=+Oe,ke>>>=0,Le>>>=0,We||q(this,Oe,ke,Le,Math.pow(2,8*Le)-1,0);var Ue=1,Ze=0;for(this[ke]=255&Oe;++Ze>>=0,Le>>>=0,We||q(this,Oe,ke,Le,Math.pow(2,8*Le)-1,0);var Ue=Le-1,Ze=1;for(this[ke+Ue]=255&Oe;--Ue>=0&&(Ze*=256);)this[ke+Ue]=Oe/Ze&255;return ke+Le},m.prototype.writeUint8=m.prototype.writeUInt8=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,1,255,0),this[ke]=255&Oe,ke+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,65535,0),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,65535,0),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,4294967295,0),this[ke+3]=Oe>>>24,this[ke+2]=Oe>>>16,this[ke+1]=Oe>>>8,this[ke]=255&Oe,ke+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,4294967295,0),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},m.prototype.writeBigUInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeIntLE=function(Oe,ke,Le,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Le-1);q(this,Oe,ke,Le,Ue-1,-Ue)}var Ze=0,Xe=1,tt=0;for(this[ke]=255&Oe;++Ze>0)-tt&255;return ke+Le},m.prototype.writeIntBE=function(Oe,ke,Le,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Le-1);q(this,Oe,ke,Le,Ue-1,-Ue)}var Ze=Le-1,Xe=1,tt=0;for(this[ke+Ze]=255&Oe;--Ze>=0&&(Xe*=256);)Oe<0&&tt===0&&this[ke+Ze+1]!==0&&(tt=1),this[ke+Ze]=(Oe/Xe>>0)-tt&255;return ke+Le},m.prototype.writeInt8=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[ke]=255&Oe,ke+1},m.prototype.writeInt16LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,32767,-32768),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},m.prototype.writeInt16BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,32767,-32768),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},m.prototype.writeInt32LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,2147483647,-2147483648),this[ke]=255&Oe,this[ke+1]=Oe>>>8,this[ke+2]=Oe>>>16,this[ke+3]=Oe>>>24,ke+4},m.prototype.writeInt32BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},m.prototype.writeBigInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeFloatLE=function(Oe,ke,Le){return he(this,Oe,ke,!0,Le)},m.prototype.writeFloatBE=function(Oe,ke,Le){return he(this,Oe,ke,!1,Le)},m.prototype.writeDoubleLE=function(Oe,ke,Le){return se(this,Oe,ke,!0,Le)},m.prototype.writeDoubleBE=function(Oe,ke,Le){return se(this,Oe,ke,!1,Le)},m.prototype.copy=function(Oe,ke,Le,We){if(!m.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),We||We===0||(We=this.length),ke>=Oe.length&&(ke=Oe.length),ke||(ke=0),We>0&&We=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),Oe.length-ke>>=0,Le=Le===void 0?this.length:Le>>>0,Oe||(Oe=0),typeof Oe=="number")for(Ze=ke;Ze"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}()?Reflect.construct(Ne,je||[],b(Ee).constructor):Ne.apply(Ee,je))}(this,Ue),Object.defineProperty(i(tt),"message",{value:ke.apply(i(tt),arguments),writable:!0,configurable:!0}),tt.name="".concat(tt.name," [").concat(Oe,"]"),tt.stack,delete tt.name,tt}var Ze,Xe;return function(tt,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(Ee&&Ee.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),Object.defineProperty(tt,"prototype",{writable:!1}),Ee&&O(tt,Ee)}(Ue,We),Ze=Ue,(Xe=[{key:"code",get:function(){return Oe},set:function(tt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:tt,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Oe,"]: ").concat(this.message)}}])&&c(Ze.prototype,Xe),Object.defineProperty(Ze,"prototype",{writable:!1}),Ue}(Le)}function de(Oe){for(var ke="",Le=Oe.length,We=Oe[0]==="-"?1:0;Le>=We+4;Le-=3)ke="_".concat(Oe.slice(Le-3,Le)).concat(ke);return"".concat(Oe.slice(0,Le)).concat(ke)}function ve(Oe,ke,Le,We,Ue,Ze){if(Oe>Le||Oe3?ke===0||ke===BigInt(0)?">= 0".concat(tt," and < 2").concat(tt," ** ").concat(8*(Ze+1)).concat(tt):">= -(2".concat(tt," ** ").concat(8*(Ze+1)-1).concat(tt,") and < 2 ** ")+"".concat(8*(Ze+1)-1).concat(tt):">= ".concat(ke).concat(tt," and <= ").concat(Le).concat(tt),new ae.ERR_OUT_OF_RANGE("value",Xe,Oe)}(function(Ee,Ne,je){ye(Ne,"offset"),Ee[Ne]!==void 0&&Ee[Ne+je]!==void 0||_e(Ne,Ee.length-(je+1))})(We,Ue,Ze)}function ye(Oe,ke){if(typeof Oe!="number")throw new ae.ERR_INVALID_ARG_TYPE(ke,"number",Oe)}function _e(Oe,ke,Le){throw Math.floor(Oe)!==Oe?(ye(Oe,Le),new ae.ERR_OUT_OF_RANGE(Le||"offset","an integer",Oe)):ke<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE(Le||"offset",">= ".concat(Le?1:0," and <= ").concat(ke),Oe)}ce("ERR_BUFFER_OUT_OF_BOUNDS",function(Oe){return Oe?"".concat(Oe," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),ce("ERR_INVALID_ARG_TYPE",function(Oe,ke){return'The "'.concat(Oe,'" argument must be of type number. Received type ').concat(w(ke))},TypeError),ce("ERR_OUT_OF_RANGE",function(Oe,ke,Le){var We='The value of "'.concat(Oe,'" is out of range.'),Ue=Le;return Number.isInteger(Le)&&Math.abs(Le)>Math.pow(2,32)?Ue=de(String(Le)):typeof Le=="bigint"&&(Ue=String(Le),(Le>Math.pow(BigInt(2),BigInt(32))||Le<-Math.pow(BigInt(2),BigInt(32)))&&(Ue=de(Ue)),Ue+="n"),We+" It must be ".concat(ke,". Received ").concat(Ue)},RangeError);var Se=/[^+/0-9A-Za-z-_]/g;function Te(Oe,ke){var Le;ke=ke||1/0;for(var We=Oe.length,Ue=null,Ze=[],Xe=0;Xe55295&&Le<57344){if(!Ue){if(Le>56319){(ke-=3)>-1&&Ze.push(239,191,189);continue}if(Xe+1===We){(ke-=3)>-1&&Ze.push(239,191,189);continue}Ue=Le;continue}if(Le<56320){(ke-=3)>-1&&Ze.push(239,191,189),Ue=Le;continue}Le=65536+(Ue-55296<<10|Le-56320)}else Ue&&(ke-=3)>-1&&Ze.push(239,191,189);if(Ue=null,Le<128){if((ke-=1)<0)break;Ze.push(Le)}else if(Le<2048){if((ke-=2)<0)break;Ze.push(Le>>6|192,63&Le|128)}else if(Le<65536){if((ke-=3)<0)break;Ze.push(Le>>12|224,Le>>6&63|128,63&Le|128)}else{if(!(Le<1114112))throw new Error("Invalid code point");if((ke-=4)<0)break;Ze.push(Le>>18|240,Le>>12&63|128,Le>>6&63|128,63&Le|128)}}return Ze}function Pe(Oe){return y.toByteArray(function(ke){if((ke=(ke=ke.split("=")[0]).trim().replace(Se,"")).length<2)return"";for(;ke.length%4!=0;)ke+="=";return ke}(Oe))}function Ie(Oe,ke,Le,We){var Ue;for(Ue=0;Ue=ke.length||Ue>=Oe.length);++Ue)ke[Ue+Le]=Oe[Ue];return Ue}function ze(Oe,ke){return Oe instanceof ke||Oe!=null&&Oe.constructor!=null&&Oe.constructor.name!=null&&Oe.constructor.name===ke.name}function De(Oe){return Oe!=Oe}var He=function(){for(var Oe="0123456789abcdef",ke=new Array(256),Le=0;Le<16;++Le)for(var We=16*Le,Ue=0;Ue<16;++Ue)ke[We+Ue]=Oe[Le]+Oe[Ue];return ke}();function Ve(Oe){return typeof BigInt>"u"?$e:Oe}function $e(){throw new Error("BigInt not supported")}},25928:function(d){d.exports=b,d.exports.isMobile=b,d.exports.default=b;var l=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,c=/android|ipad|playbook|silk/i;function b(i){i||(i={});var O=i.ua;if(O||typeof navigator>"u"||(O=navigator.userAgent),O&&O.headers&&typeof O.headers["user-agent"]=="string"&&(O=O.headers["user-agent"]),typeof O!="string")return!1;var w=l.test(O)&&!n.test(O)||!!i.tablet&&c.test(O);return!w&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&O.indexOf("Macintosh")!==-1&&O.indexOf("Safari")!==-1&&(w=!0),w}},48932:function(d,l,n){n.r(l),n.d(l,{sankeyCenter:function(){return h},sankeyCircular:function(){return Q},sankeyJustify:function(){return u},sankeyLeft:function(){return p},sankeyRight:function(){return a}});var c=n(84706),b=n(34712),i=n(10132),O=n(6688),w=n.n(O);function y(Ie){return Ie.target.depth}function p(Ie){return Ie.depth}function a(Ie,ze){return ze-1-Ie.height}function u(Ie,ze){return Ie.sourceLinks.length?Ie.depth:ze-1}function h(Ie){return Ie.targetLinks.length?Ie.depth:Ie.sourceLinks.length?(0,c.SY)(Ie.sourceLinks,y)-1:0}function m(Ie){return function(){return Ie}}var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie};function _(Ie,ze){return A(Ie.source,ze.source)||Ie.index-ze.index}function S(Ie,ze){return A(Ie.target,ze.target)||Ie.index-ze.index}function A(Ie,ze){return Ie.partOfCycle===ze.partOfCycle?Ie.y0-ze.y0:Ie.circularLinkType==="top"||ze.circularLinkType==="bottom"?-1:1}function x(Ie){return Ie.value}function R(Ie){return(Ie.y0+Ie.y1)/2}function M(Ie){return R(Ie.source)}function T(Ie){return R(Ie.target)}function E(Ie){return Ie.index}function C(Ie){return Ie.nodes}function L(Ie){return Ie.links}function D(Ie,ze){var De=Ie.get(ze);if(!De)throw new Error("missing: "+ze);return De}function k(Ie,ze){return ze(Ie)}var I=25,z=10,$=.3;function Q(){var Ie,ze,De=0,He=0,Ve=1,$e=1,Oe=24,ke=E,Le=u,We=C,Ue=L,Ze=32,Xe=2,tt=null;function Ee(){var je={nodes:We.apply(null,arguments),links:Ue.apply(null,arguments)};(function(ot){ot.nodes.forEach(function(ht,pt){ht.index=pt,ht.sourceLinks=[],ht.targetLinks=[]});var Ge=(0,b.kH)(ot.nodes,ke);ot.links.forEach(function(ht,pt){ht.index=pt;var wt=ht.source,Dt=ht.target;(wt===void 0?"undefined":v(wt))!=="object"&&(wt=ht.source=D(Ge,wt)),(Dt===void 0?"undefined":v(Dt))!=="object"&&(Dt=ht.target=D(Ge,Dt)),wt.sourceLinks.push(ht),Dt.targetLinks.push(ht)})})(je),function(ot,Ge,ht){var pt=0;if(ht===null){for(var wt=[],Dt=0;Dt0?bn+I+z:bn,bottom:mn=mn>0?mn+I+z:mn,left:bt=bt>0?bt+I+z:bt,right:vt=vt>0?vt+I+z:vt}}(ot),nn=function(gn,bn){var mn=(0,c.kv)(gn.nodes,function(zt){return zt.column}),vt=Ve-De,bt=$e-He,lt=vt/(vt+bn.right+bn.left),yt=bt/(bt+bn.top+bn.bottom);return De=De*lt+bn.left,Ve=bn.right==0?Ve:Ve*lt,He=He*yt+bn.top,$e*=yt,gn.nodes.forEach(function(zt){zt.x0=De+zt.column*((Ve-De-Oe)/mn),zt.x1=zt.x0+Oe}),yt}(ot,_t);Ct*=nn,ot.links.forEach(function(gn){gn.width=gn.value*Ct}),pt.forEach(function(gn){var bn=gn.length;gn.forEach(function(mn,vt){mn.depth==pt.length-1&&bn==1||mn.depth==0&&bn==1?(mn.y0=$e/2-mn.value*Ct,mn.y1=mn.y0+mn.value*Ct):mn.partOfCycle?X(mn,en)==0?(mn.y0=$e/2+vt,mn.y1=mn.y0+mn.value*Ct):mn.circularLinkType=="top"?(mn.y0=He+vt,mn.y1=mn.y0+mn.value*Ct):(mn.y0=$e-mn.value*Ct-vt,mn.y1=mn.y0+mn.value*Ct):_t.top==0||_t.bottom==0?(mn.y0=($e-He)/bn*vt,mn.y1=mn.y0+mn.value*Ct):(mn.y0=($e-He)/2-bn/2+vt,mn.y1=mn.y0+mn.value*Ct)})})})(ht),qt();for(var wt=1,Dt=Ge;Dt>0;--Dt)It(wt*=.99,ht),qt();function It(en,Gt){var Ct=pt.length;pt.forEach(function(_t){var nn=_t.length,gn=_t[0].depth;_t.forEach(function(bn){var mn;if((bn.sourceLinks.length||bn.targetLinks.length)&&!(bn.partOfCycle&&X(bn,Gt)>0))if(gn==0&&nn==1)mn=bn.y1-bn.y0,bn.y0=$e/2-mn/2,bn.y1=$e/2+mn/2;else if(gn==Ct-1&&nn==1)mn=bn.y1-bn.y0,bn.y0=$e/2-mn/2,bn.y1=$e/2+mn/2;else{var vt=(0,c.mo)(bn.sourceLinks,T),bt=(0,c.mo)(bn.targetLinks,M),lt=((vt&&bt?(vt+bt)/2:vt||bt)-R(bn))*en;bn.y0+=lt,bn.y1+=lt}})})}function qt(){pt.forEach(function(en){var Gt,Ct,_t,nn=He,gn=en.length;for(en.sort(A),_t=0;_t0&&(Gt.y0+=Ct,Gt.y1+=Ct),nn=Gt.y1+Ie;if((Ct=nn-Ie-$e)>0)for(nn=Gt.y0-=Ct,Gt.y1-=Ct,_t=gn-2;_t>=0;--_t)(Ct=(Gt=en[_t]).y1+Ie-nn)>0&&(Gt.y0-=Ct,Gt.y1-=Ct),nn=Gt.y0})}}(je,Ze,ke),Ne(je);for(var nt=0;nt<4;nt++)ye(je,$e,ke),_e(je,0,ke),de(je,He,$e,ke),ye(je,$e,ke),_e(je,0,ke);return function(ot,Ge,ht){var pt=ot.nodes,wt=ot.links,Dt=!1,It=!1;if(wt.forEach(function(Gt){Gt.circularLinkType=="top"?Dt=!0:Gt.circularLinkType=="bottom"&&(It=!0)}),Dt==0||It==0){var qt=(0,c.SY)(pt,function(Gt){return Gt.y0}),en=(ht-Ge)/((0,c.kv)(pt,function(Gt){return Gt.y1})-qt);pt.forEach(function(Gt){var Ct=(Gt.y1-Gt.y0)*en;Gt.y0=(Gt.y0-qt)*en,Gt.y1=Gt.y0+Ct}),wt.forEach(function(Gt){Gt.y0=(Gt.y0-qt)*en,Gt.y1=(Gt.y1-qt)*en,Gt.width=Gt.width*en})}}(je,He,$e),K(je,Xe,$e,ke),je}function Ne(je){je.nodes.forEach(function(nt){nt.sourceLinks.sort(S),nt.targetLinks.sort(_)}),je.nodes.forEach(function(nt){var ot=nt.y0,Ge=ot,ht=nt.y1,pt=ht;nt.sourceLinks.forEach(function(wt){wt.circular?(wt.y0=ht-wt.width/2,ht-=wt.width):(wt.y0=ot+wt.width/2,ot+=wt.width)}),nt.targetLinks.forEach(function(wt){wt.circular?(wt.y1=pt-wt.width/2,pt-=wt.width):(wt.y1=Ge+wt.width/2,Ge+=wt.width)})})}return Ee.nodeId=function(je){return arguments.length?(ke=typeof je=="function"?je:m(je),Ee):ke},Ee.nodeAlign=function(je){return arguments.length?(Le=typeof je=="function"?je:m(je),Ee):Le},Ee.nodeWidth=function(je){return arguments.length?(Oe=+je,Ee):Oe},Ee.nodePadding=function(je){return arguments.length?(Ie=+je,Ee):Ie},Ee.nodes=function(je){return arguments.length?(We=typeof je=="function"?je:m(je),Ee):We},Ee.links=function(je){return arguments.length?(Ue=typeof je=="function"?je:m(je),Ee):Ue},Ee.size=function(je){return arguments.length?(De=He=0,Ve=+je[0],$e=+je[1],Ee):[Ve-De,$e-He]},Ee.extent=function(je){return arguments.length?(De=+je[0][0],Ve=+je[1][0],He=+je[0][1],$e=+je[1][1],Ee):[[De,He],[Ve,$e]]},Ee.iterations=function(je){return arguments.length?(Ze=+je,Ee):Ze},Ee.circularLinkGap=function(je){return arguments.length?(Xe=+je,Ee):Xe},Ee.nodePaddingRatio=function(je){return arguments.length?(ze=+je,Ee):ze},Ee.sortNodes=function(je){return arguments.length?(tt=je,Ee):tt},Ee.update=function(je){return j(je,ke),Ne(je),je.links.forEach(function(nt){nt.circular&&(nt.circularLinkType=nt.y0+nt.y1<$e?"top":"bottom",nt.source.circularLinkType=nt.circularLinkType,nt.target.circularLinkType=nt.circularLinkType)}),ye(je,$e,ke,!1),_e(je,0,ke),K(je,Xe,$e,ke),je},Ee}function j(Ie,ze){var De=0,He=0;Ie.links.forEach(function(Ve){Ve.circular&&(Ve.source.circularLinkType||Ve.target.circularLinkType?Ve.circularLinkType=Ve.source.circularLinkType?Ve.source.circularLinkType:Ve.target.circularLinkType:Ve.circularLinkType=De1||Ve>1)}function W(Ie,ze,De){return Ie.sort(oe),Ie.forEach(function(He,Ve){var $e,Oe,ke=0;if(Pe(He,De)&&te(He))He.circularPathData.verticalBuffer=ke+He.width/2;else{for(var Le=0;LeOe.source.column)){var We=Ie[Le].circularPathData.verticalBuffer+Ie[Le].width/2+ze;ke=We>ke?We:ke}He.circularPathData.verticalBuffer=ke+He.width/2}}),Ie}function K(Ie,ze,De,He){var Ve=(0,c.SY)(Ie.links,function($e){return $e.source.y0});Ie.links.forEach(function($e){$e.circular&&($e.circularPathData={})}),W(Ie.links.filter(function($e){return $e.circularLinkType=="top"}),ze,He),W(Ie.links.filter(function($e){return $e.circularLinkType=="bottom"}),ze,He),Ie.links.forEach(function($e){if($e.circular){if($e.circularPathData.arcRadius=$e.width+z,$e.circularPathData.leftNodeBuffer=5,$e.circularPathData.rightNodeBuffer=5,$e.circularPathData.sourceWidth=$e.source.x1-$e.source.x0,$e.circularPathData.sourceX=$e.source.x0+$e.circularPathData.sourceWidth,$e.circularPathData.targetX=$e.target.x0,$e.circularPathData.sourceY=$e.y0,$e.circularPathData.targetY=$e.y1,Pe($e,He)&&te($e))$e.circularPathData.leftSmallArcRadius=z+$e.width/2,$e.circularPathData.leftLargeArcRadius=z+$e.width/2,$e.circularPathData.rightSmallArcRadius=z+$e.width/2,$e.circularPathData.rightLargeArcRadius=z+$e.width/2,$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=$e.source.y1+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=$e.source.y0-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius);else{var Oe=$e.source.column,ke=$e.circularLinkType,Le=Ie.links.filter(function(Ze){return Ze.source.column==Oe&&Ze.circularLinkType==ke});$e.circularLinkType=="bottom"?Le.sort(Y):Le.sort(q);var We=0;Le.forEach(function(Ze,Xe){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.leftSmallArcRadius=z+$e.width/2+We,$e.circularPathData.leftLargeArcRadius=z+$e.width/2+Xe*ze+We),We+=Ze.width}),Oe=$e.target.column,Le=Ie.links.filter(function(Ze){return Ze.target.column==Oe&&Ze.circularLinkType==ke}),$e.circularLinkType=="bottom"?Le.sort(me):Le.sort(ee),We=0,Le.forEach(function(Ze,Xe){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.rightSmallArcRadius=z+$e.width/2+We,$e.circularPathData.rightLargeArcRadius=z+$e.width/2+Xe*ze+We),We+=Ze.width}),$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=Math.max(De,$e.source.y1,$e.target.y1)+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=Ve-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius)}$e.circularPathData.leftInnerExtent=$e.circularPathData.sourceX+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightInnerExtent=$e.circularPathData.targetX-$e.circularPathData.rightNodeBuffer,$e.circularPathData.leftFullExtent=$e.circularPathData.sourceX+$e.circularPathData.leftLargeArcRadius+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightFullExtent=$e.circularPathData.targetX-$e.circularPathData.rightLargeArcRadius-$e.circularPathData.rightNodeBuffer}if($e.circular)$e.path=function(Ze){return Ze.circularLinkType=="top"?"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 0 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY-Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 0 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 0 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY-Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 0 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY:"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 1 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY+Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 1 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 1 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY+Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 1 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY}($e);else{var Ue=(0,i.ak)().source(function(Ze){return[Ze.source.x0+(Ze.source.x1-Ze.source.x0),Ze.y0]}).target(function(Ze){return[Ze.target.x0,Ze.y1]});$e.path=Ue($e)}})}function oe(Ie,ze){return he(Ie)==he(ze)?Ie.circularLinkType=="bottom"?Y(Ie,ze):q(Ie,ze):he(ze)-he(Ie)}function q(Ie,ze){return Ie.y0-ze.y0}function Y(Ie,ze){return ze.y0-Ie.y0}function ee(Ie,ze){return Ie.y1-ze.y1}function me(Ie,ze){return ze.y1-Ie.y1}function he(Ie){return Ie.target.column-Ie.source.column}function se(Ie){return Ie.target.x0-Ie.source.x1}function ae(Ie,ze){var De=U(Ie),He=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1+He:Ie.y1-He}function ce(Ie,ze){var De=U(Ie),He=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1-He:Ie.y1+He}function de(Ie,ze,De,He){Ie.links.forEach(function(Ve){if(!Ve.circular&&Ve.target.column-Ve.source.column>1){var $e=Ve.source.column+1,Oe=Ve.target.column-1,ke=1,Le=Oe-$e+1;for(ke=1;$e<=Oe;$e++,ke++)Ie.nodes.forEach(function(We){if(We.column==$e){var Ue,Ze=ke/(Le+1),Xe=Math.pow(1-Ze,3),tt=3*Ze*Math.pow(1-Ze,2),Ee=3*Math.pow(Ze,2)*(1-Ze),Ne=Math.pow(Ze,3),je=Xe*Ve.y0+tt*Ve.y0+Ee*Ve.y1+Ne*Ve.y1,nt=je-Ve.width/2,ot=je+Ve.width/2;nt>We.y0&&ntpt.y0&&ht.y0pt.y0&&ht.y1pt.y1)&&ve(Ge,Ue,ze,De)})):(ot>We.y0&&otWe.y1)&&(Ue=ot-We.y0+10,We=ve(We,Ue,ze,De),Ie.nodes.forEach(function(Ge){k(Ge,He)!=k(We,He)&&Ge.column==We.column&&Ge.y0We.y1&&ve(Ge,Ue,ze,De)}))}})}})}function ve(Ie,ze,De,He){return Ie.y0+ze>=De&&Ie.y1+ze<=He&&(Ie.y0=Ie.y0+ze,Ie.y1=Ie.y1+ze,Ie.targetLinks.forEach(function(Ve){Ve.y1=Ve.y1+ze}),Ie.sourceLinks.forEach(function(Ve){Ve.y0=Ve.y0+ze})),Ie}function ye(Ie,ze,De,He){Ie.nodes.forEach(function(Ve){He&&Ve.y+(Ve.y1-Ve.y0)>ze&&(Ve.y=Ve.y-(Ve.y+(Ve.y1-Ve.y0)-ze));var $e=Ie.links.filter(function(Le){return k(Le.source,De)==k(Ve,De)}),Oe=$e.length;Oe>1&&$e.sort(function(Le,We){if(!Le.circular&&!We.circular){if(Le.target.column==We.target.column||!Se(Le,We))return Le.y1-We.y1;if(Le.target.column>We.target.column){var Ue=ce(We,Le);return Le.y1-Ue}if(We.target.column>Le.target.column)return ce(Le,We)-We.y1}return Le.circular&&!We.circular?Le.circularLinkType=="top"?-1:1:We.circular&&!Le.circular?We.circularLinkType=="top"?1:-1:Le.circular&&We.circular?Le.circularLinkType===We.circularLinkType&&Le.circularLinkType=="top"?Le.target.column===We.target.column?Le.target.y1-We.target.y1:We.target.column-Le.target.column:Le.circularLinkType===We.circularLinkType&&Le.circularLinkType=="bottom"?Le.target.column===We.target.column?We.target.y1-Le.target.y1:Le.target.column-We.target.column:Le.circularLinkType=="top"?-1:1:void 0});var ke=Ve.y0;$e.forEach(function(Le){Le.y0=ke+Le.width/2,ke+=Le.width}),$e.forEach(function(Le,We){if(Le.circularLinkType=="bottom"){for(var Ue=We+1,Ze=0;Ue1&&Ve.sort(function(ke,Le){if(!ke.circular&&!Le.circular){if(ke.source.column==Le.source.column||!Se(ke,Le))return ke.y0-Le.y0;if(Le.source.column0?"up":"down"}function Pe(Ie,ze){return k(Ie.source,ze)==k(Ie.target,ze)}},26800:function(d,l,n){n.r(l),n.d(l,{sankey:function(){return E},sankeyCenter:function(){return p},sankeyJustify:function(){return y},sankeyLeft:function(){return O},sankeyLinkHorizontal:function(){return k},sankeyRight:function(){return w}});var c=n(84706),b=n(34712);function i(I){return I.target.depth}function O(I){return I.depth}function w(I,z){return z-1-I.height}function y(I,z){return I.sourceLinks.length?I.depth:z-1}function p(I){return I.targetLinks.length?I.depth:I.sourceLinks.length?(0,c.SY)(I.sourceLinks,i)-1:0}function a(I){return function(){return I}}function u(I,z){return m(I.source,z.source)||I.index-z.index}function h(I,z){return m(I.target,z.target)||I.index-z.index}function m(I,z){return I.y0-z.y0}function v(I){return I.value}function _(I){return(I.y0+I.y1)/2}function S(I){return _(I.source)*I.value}function A(I){return _(I.target)*I.value}function x(I){return I.index}function R(I){return I.nodes}function M(I){return I.links}function T(I,z){var $=I.get(z);if(!$)throw new Error("missing: "+z);return $}function E(){var I=0,z=0,$=1,Q=1,j=24,U=8,X=x,te=y,W=R,K=M,oe=32;function q(){var ee={nodes:W.apply(null,arguments),links:K.apply(null,arguments)};return function(me){me.nodes.forEach(function(se,ae){se.index=ae,se.sourceLinks=[],se.targetLinks=[]});var he=(0,b.kH)(me.nodes,X);me.links.forEach(function(se,ae){se.index=ae;var ce=se.source,de=se.target;typeof ce!="object"&&(ce=se.source=T(he,ce)),typeof de!="object"&&(de=se.target=T(he,de)),ce.sourceLinks.push(se),de.targetLinks.push(se)})}(ee),function(me){me.nodes.forEach(function(he){he.value=Math.max((0,c.oh)(he.sourceLinks,v),(0,c.oh)(he.targetLinks,v))})}(ee),function(me){var he,se,ae;for(he=me.nodes,se=[],ae=0;he.length;++ae,he=se,se=[])he.forEach(function(de){de.depth=ae,de.sourceLinks.forEach(function(ve){se.indexOf(ve.target)<0&&se.push(ve.target)})});for(he=me.nodes,se=[],ae=0;he.length;++ae,he=se,se=[])he.forEach(function(de){de.height=ae,de.targetLinks.forEach(function(ve){se.indexOf(ve.source)<0&&se.push(ve.source)})});var ce=($-I-j)/(ae-1);me.nodes.forEach(function(de){de.x1=(de.x0=I+Math.max(0,Math.min(ae-1,Math.floor(te.call(null,de,ae))))*ce)+j})}(ee),function(me){var he=(0,b.UJ)().key(function(ye){return ye.x0}).sortKeys(c.XE).entries(me.nodes).map(function(ye){return ye.values});(function(){var ye=(0,c.kv)(he,function(Te){return Te.length}),_e=.6666666666666666*(Q-z)/(ye-1);U>_e&&(U=_e);var Se=(0,c.SY)(he,function(Te){return(Q-z-(Te.length-1)*U)/(0,c.oh)(Te,v)});he.forEach(function(Te){Te.forEach(function(Pe,Ie){Pe.y1=(Pe.y0=Ie)+Pe.value*Se})}),me.links.forEach(function(Te){Te.width=Te.value*Se})})(),ve();for(var se=1,ae=oe;ae>0;--ae)de(se*=.99),ve(),ce(se),ve();function ce(ye){he.forEach(function(_e){_e.forEach(function(Se){if(Se.targetLinks.length){var Te=((0,c.oh)(Se.targetLinks,S)/(0,c.oh)(Se.targetLinks,v)-_(Se))*ye;Se.y0+=Te,Se.y1+=Te}})})}function de(ye){he.slice().reverse().forEach(function(_e){_e.forEach(function(Se){if(Se.sourceLinks.length){var Te=((0,c.oh)(Se.sourceLinks,A)/(0,c.oh)(Se.sourceLinks,v)-_(Se))*ye;Se.y0+=Te,Se.y1+=Te}})})}function ve(){he.forEach(function(ye){var _e,Se,Te,Pe=z,Ie=ye.length;for(ye.sort(m),Te=0;Te0&&(_e.y0+=Se,_e.y1+=Se),Pe=_e.y1+U;if((Se=Pe-U-Q)>0)for(Pe=_e.y0-=Se,_e.y1-=Se,Te=Ie-2;Te>=0;--Te)(Se=(_e=ye[Te]).y1+U-Pe)>0&&(_e.y0-=Se,_e.y1-=Se),Pe=_e.y0})}}(ee),Y(ee),ee}function Y(ee){ee.nodes.forEach(function(me){me.sourceLinks.sort(h),me.targetLinks.sort(u)}),ee.nodes.forEach(function(me){var he=me.y0,se=he;me.sourceLinks.forEach(function(ae){ae.y0=he+ae.width/2,he+=ae.width}),me.targetLinks.forEach(function(ae){ae.y1=se+ae.width/2,se+=ae.width})})}return q.update=function(ee){return Y(ee),ee},q.nodeId=function(ee){return arguments.length?(X=typeof ee=="function"?ee:a(ee),q):X},q.nodeAlign=function(ee){return arguments.length?(te=typeof ee=="function"?ee:a(ee),q):te},q.nodeWidth=function(ee){return arguments.length?(j=+ee,q):j},q.nodePadding=function(ee){return arguments.length?(U=+ee,q):U},q.nodes=function(ee){return arguments.length?(W=typeof ee=="function"?ee:a(ee),q):W},q.links=function(ee){return arguments.length?(K=typeof ee=="function"?ee:a(ee),q):K},q.size=function(ee){return arguments.length?(I=z=0,$=+ee[0],Q=+ee[1],q):[$-I,Q-z]},q.extent=function(ee){return arguments.length?(I=+ee[0][0],$=+ee[1][0],z=+ee[0][1],Q=+ee[1][1],q):[[I,z],[$,Q]]},q.iterations=function(ee){return arguments.length?(oe=+ee,q):oe},q}var C=n(10132);function L(I){return[I.source.x1,I.y0]}function D(I){return[I.target.x0,I.y1]}function k(){return(0,C.ak)().source(L).target(D)}},33428:function(d,l,n){var c,b;(function(){var i={version:"3.8.0"},O=[].slice,w=function(V){return O.call(V)},y=self.document;function p(V){return V&&(V.ownerDocument||V.document||V).documentElement}function a(V){return V&&(V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView)}if(y)try{w(y.documentElement.childNodes)[0].nodeType}catch{w=function(ne){for(var ge=ne.length,xe=new Array(ge);ge--;)xe[ge]=ne[ge];return xe}}if(Date.now||(Date.now=function(){return+new Date}),y)try{y.createElement("DIV").style.setProperty("opacity",0,"")}catch{var u=this.Element.prototype,h=u.setAttribute,m=u.setAttributeNS,v=this.CSSStyleDeclaration.prototype,_=v.setProperty;u.setAttribute=function(ne,ge){h.call(this,ne,ge+"")},u.setAttributeNS=function(ne,ge,xe){m.call(this,ne,ge,xe+"")},v.setProperty=function(ne,ge,xe){_.call(this,ne,ge+"",xe)}}function S(V,ne){return Vne?1:V>=ne?0:NaN}function A(V){return V===null?NaN:+V}function x(V){return!isNaN(V)}function R(V){return{left:function(ne,ge,xe,Me){for(arguments.length<3&&(xe=0),arguments.length<4&&(Me=ne.length);xe>>1;V(ne[Fe],ge)<0?xe=Fe+1:Me=Fe}return xe},right:function(ne,ge,xe,Me){for(arguments.length<3&&(xe=0),arguments.length<4&&(Me=ne.length);xe>>1;V(ne[Fe],ge)>0?Me=Fe:xe=Fe+1}return xe}}}i.ascending=S,i.descending=function(V,ne){return neV?1:ne>=V?0:NaN},i.min=function(V,ne){var ge,xe,Me=-1,Fe=V.length;if(arguments.length===1){for(;++Me=xe){ge=xe;break}for(;++Mexe&&(ge=xe)}else{for(;++Me=xe){ge=xe;break}for(;++Mexe&&(ge=xe)}return ge},i.max=function(V,ne){var ge,xe,Me=-1,Fe=V.length;if(arguments.length===1){for(;++Me=xe){ge=xe;break}for(;++Mege&&(ge=xe)}else{for(;++Me=xe){ge=xe;break}for(;++Mege&&(ge=xe)}return ge},i.extent=function(V,ne){var ge,xe,Me,Fe=-1,Je=V.length;if(arguments.length===1){for(;++Fe=xe){ge=Me=xe;break}for(;++Fexe&&(ge=xe),Me=xe){ge=Me=xe;break}for(;++Fexe&&(ge=xe),Me1)return Je/(dt-1)},i.deviation=function(){var V=i.variance.apply(this,arguments);return V&&Math.sqrt(V)};var M=R(S);function T(V){return V.length}i.bisectLeft=M.left,i.bisect=i.bisectRight=M.right,i.bisector=function(V){return R(V.length===1?function(ne,ge){return S(V(ne),ge)}:V)},i.shuffle=function(V,ne,ge){(Fe=arguments.length)<3&&(ge=V.length,Fe<2&&(ne=0));for(var xe,Me,Fe=ge-ne;Fe;)Me=Math.random()*Fe--|0,xe=V[Fe+ne],V[Fe+ne]=V[Me+ne],V[Me+ne]=xe;return V},i.permute=function(V,ne){for(var ge=ne.length,xe=new Array(ge);ge--;)xe[ge]=V[ne[ge]];return xe},i.pairs=function(V){for(var ne=0,ge=V.length-1,xe=V[0],Me=new Array(ge<0?0:ge);ne=0;)for(ne=(xe=V[Me]).length;--ne>=0;)ge[--Je]=xe[ne];return ge};var E=Math.abs;function C(V,ne){for(var ge in ne)Object.defineProperty(V.prototype,ge,{value:ne[ge],enumerable:!1})}function L(){this._=Object.create(null)}i.range=function(V,ne,ge){if(arguments.length<3&&(ge=1,arguments.length<2&&(ne=V,V=0)),(ne-V)/ge==1/0)throw new Error("infinite range");var xe,Me=[],Fe=function(rt){for(var dt=1;rt*dt%1;)dt*=10;return dt}(E(ge)),Je=-1;if(V*=Fe,ne*=Fe,(ge*=Fe)<0)for(;(xe=V+ge*++Je)>ne;)Me.push(xe/Fe);else for(;(xe=V+ge*++Je)=xe.length)return ne?ne.call(ge,dt):V?dt.sort(V):dt;for(var Et,Vt,jt,Nt,cn=-1,sn=dt.length,xn=xe[mt++],pn=new L;++cn=xe.length)return rt;var mt=[],Et=Me[dt++];return rt.forEach(function(Vt,jt){mt.push({key:Vt,values:Je(jt,dt)})}),Et?mt.sort(function(Vt,jt){return Et(Vt.key,jt.key)}):mt}return ge.map=function(rt,dt){return Fe(dt,rt,0)},ge.entries=function(rt){return Je(Fe(i.map,rt,0),0)},ge.key=function(rt){return xe.push(rt),ge},ge.sortKeys=function(rt){return Me[xe.length-1]=rt,ge},ge.sortValues=function(rt){return V=rt,ge},ge.rollup=function(rt){return ne=rt,ge},ge},i.set=function(V){var ne=new te;if(V)for(var ge=0,xe=V.length;ge=0&&(xe=V.slice(ge+1),V=V.slice(0,ge)),V)return arguments.length<2?this[V].on(xe):this[V].on(xe,ne);if(arguments.length===2){if(ne==null)for(V in this)this.hasOwnProperty(V)&&this[V].on(xe,null);return this}},i.event=null,i.requote=function(V){return V.replace(ce,"\\$&")};var ce=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,de={}.__proto__?function(V,ne){V.__proto__=ne}:function(V,ne){for(var ge in ne)V[ge]=ne[ge]};function ve(V){return de(V,Te),V}var ye=function(V,ne){return ne.querySelector(V)},_e=function(V,ne){return ne.querySelectorAll(V)},Se=function(V,ne){var ge=V.matches||V[oe(V,"matchesSelector")];return Se=function(xe,Me){return ge.call(xe,Me)},Se(V,ne)};typeof Sizzle=="function"&&(ye=function(V,ne){return Sizzle(V,ne)[0]||null},_e=Sizzle,Se=Sizzle.matchesSelector),i.selection=function(){return i.select(y.documentElement)};var Te=i.selection.prototype=[];function Pe(V){return typeof V=="function"?V:function(){return ye(V,this)}}function Ie(V){return typeof V=="function"?V:function(){return _e(V,this)}}Te.select=function(V){var ne,ge,xe,Me,Fe=[];V=Pe(V);for(var Je=-1,rt=this.length;++Je=0&&(ge=V.slice(0,ne))!=="xmlns"&&(V=V.slice(ne+1)),De.hasOwnProperty(ge)?{space:De[ge],local:V}:V}},Te.attr=function(V,ne){if(arguments.length<2){if(typeof V=="string"){var ge=this.node();return(V=i.ns.qualify(V)).local?ge.getAttributeNS(V.space,V.local):ge.getAttribute(V)}for(ne in V)this.each(He(ne,V[ne]));return this}return this.each(He(V,ne))},Te.classed=function(V,ne){if(arguments.length<2){if(typeof V=="string"){var ge=this.node(),xe=(V=Oe(V)).length,Me=-1;if(ne=ge.classList){for(;++Me=0;)(ge=xe[Me])&&(Fe&&Fe!==ge.nextSibling&&Fe.parentNode.insertBefore(ge,Fe),Fe=ge);return this},Te.sort=function(V){V=Ne.apply(this,arguments);for(var ne=-1,ge=this.length;++ne0&&(V=V.slice(0,Me));var Je=ht.get(V);function rt(){var dt=this[xe];dt&&(this.removeEventListener(V,dt,dt.$),delete this[xe])}return Je&&(V=Je,Fe=wt),Me?ne?function(){var dt=Fe(ne,w(arguments));rt.call(this),this.addEventListener(V,this[xe]=dt,dt.$=ge),dt._=ne}:rt:ne?Y:function(){var dt,mt=new RegExp("^__on([^.]+)"+i.requote(V)+"$");for(var Et in this)if(dt=Et.match(mt)){var Vt=this[Et];this.removeEventListener(dt[1],Vt,Vt.$),delete this[Et]}}}i.selection.enter=nt,i.selection.enter.prototype=ot,ot.append=Te.append,ot.empty=Te.empty,ot.node=Te.node,ot.call=Te.call,ot.size=Te.size,ot.select=function(V){for(var ne,ge,xe,Me,Fe,Je=[],rt=-1,dt=this.length;++rt=xe&&(xe=Je+1);!(dt=mt[xe])&&++xe1?vt:V<-1?-vt:Math.asin(V)}function zt(V){return((V=Math.exp(V))+1/V)/2}var Rt=Math.SQRT2;i.interpolateZoom=function(V,ne){var ge,xe,Me=V[0],Fe=V[1],Je=V[2],rt=ne[0],dt=ne[1],mt=ne[2],Et=rt-Me,Vt=dt-Fe,jt=Et*Et+Vt*Vt;if(jt0&&(Hr=Hr.transition().duration(jt)),Hr.call(On.event)}function Pr(){Je&&Je.domain(Fe.range().map(function(Hr){return(Hr-mt.x)/mt.k}).map(Fe.invert)),dt&&dt.domain(rt.range().map(function(Hr){return(Hr-mt.y)/mt.k}).map(rt.invert))}function Zr(Hr){Nt++||Hr({type:"zoomstart"})}function Mo(Hr){Pr(),Hr({type:"zoom",scale:mt.k,translate:[mt.x,mt.y]})}function $o(Hr){--Nt||(Hr({type:"zoomend"}),ne=null)}function vo(){var Hr=this,Lo=Ln.of(Hr,arguments),ki=0,Io=i.select(a(Hr)).on(sn,function(){ki=1,rr(i.mouse(Hr),$i),Mo(Lo)}).on(xn,function(){Io.on(sn,null).on(xn,null),Ui(ki),$o(Lo)}),$i=An(i.mouse(Hr)),Ui=qt(Hr);au.call(Hr),Zr(Lo)}function zo(){var Hr,Lo=this,ki=Ln.of(Lo,arguments),Io={},$i=0,Ui=".zoom-"+i.event.changedTouches[0].identifier,ba="touchmove"+Ui,Pi="touchend"+Ui,fs=[],mr=i.select(Lo),ys=qt(Lo);function Pl(){var Pa=i.touches(Lo);return Hr=mt.k,Pa.forEach(function(Rs){Rs.identifier in Io&&(Io[Rs.identifier]=An(Rs))}),Pa}function Ys(){var Pa=i.event.target;i.select(Pa).on(ba,dl).on(Pi,ds),fs.push(Pa);for(var Rs=i.event.changedTouches,Ls=0,ol=Rs.length;Ls1){ec=Is[0];var Tc=Is[1],op=ec[0]-Tc[0],ip=ec[1]-Tc[1];$i=op*op+ip*ip}}function dl(){var Pa,Rs,Ls,ol,Is=i.touches(Lo);au.call(Lo);for(var Ds=0,ec=Is.length;Ds360?rt-=360:rt<0&&(rt+=360),rt<60?xe+(Me-xe)*rt/60:rt<180?Me:rt<240?xe+(Me-xe)*(240-rt)/60:xe}(Je))}return V=isNaN(V)?0:(V%=360)<0?V+360:V,ne=isNaN(ne)||ne<0?0:ne>1?1:ne,xe=2*(ge=ge<0?0:ge>1?1:ge)-(Me=ge<=.5?ge*(1+ne):ge+ne-ge*ne),new Sr(Fe(V+120),Fe(V),Fe(V-120))}function Qt(V,ne,ge){return this instanceof Qt?(this.h=+V,this.c=+ne,void(this.l=+ge)):arguments.length<2?V instanceof Qt?new Qt(V.h,V.c,V.l):function(xe,Me,Fe){return xe>0?new Qt(Math.atan2(Fe,Me)*lt,Math.sqrt(Me*Me+Fe*Fe),xe):new Qt(NaN,NaN,xe)}(V instanceof Kt?V.l:(V=Ir((V=i.rgb(V)).r,V.g,V.b)).l,V.a,V.b):new Qt(V,ne,ge)}Xt.brighter=function(V){return V=Math.pow(.7,arguments.length?V:1),new Ht(this.h,this.s,this.l/V)},Xt.darker=function(V){return V=Math.pow(.7,arguments.length?V:1),new Ht(this.h,this.s,V*this.l)},Xt.rgb=function(){return Yt(this.h,this.s,this.l)},i.hcl=Qt;var Pt=Qt.prototype=new xt;function tn(V,ne,ge){return isNaN(V)&&(V=0),isNaN(ne)&&(ne=0),new Kt(ge,Math.cos(V*=bt)*ne,Math.sin(V)*ne)}function Kt(V,ne,ge){return this instanceof Kt?(this.l=+V,this.a=+ne,void(this.b=+ge)):arguments.length<2?V instanceof Kt?new Kt(V.l,V.a,V.b):V instanceof Qt?tn(V.h,V.c,V.l):Ir((V=Sr(V)).r,V.g,V.b):new Kt(V,ne,ge)}Pt.brighter=function(V){return new Qt(this.h,this.c,Math.min(100,this.l+fn*(arguments.length?V:1)))},Pt.darker=function(V){return new Qt(this.h,this.c,Math.max(0,this.l-fn*(arguments.length?V:1)))},Pt.rgb=function(){return tn(this.h,this.c,this.l).rgb()},i.lab=Kt;var fn=18,dn=.95047,vn=1,Nn=1.08883,er=Kt.prototype=new xt;function En(V,ne,ge){var xe=(V+16)/116,Me=xe+ne/500,Fe=xe-ge/200;return new Sr(xr(3.2404542*(Me=In(Me)*dn)-1.5371385*(xe=In(xe)*vn)-.4985314*(Fe=In(Fe)*Nn)),xr(-.969266*Me+1.8760108*xe+.041556*Fe),xr(.0556434*Me-.2040259*xe+1.0572252*Fe))}function In(V){return V>.206893034?V*V*V:(V-.13793103448275862)/7.787037}function Un(V){return V>.008856?Math.pow(V,.3333333333333333):7.787037*V+.13793103448275862}function xr(V){return Math.round(255*(V<=.00304?12.92*V:1.055*Math.pow(V,.4166666666666667)-.055))}function Sr(V,ne,ge){return this instanceof Sr?(this.r=~~V,this.g=~~ne,void(this.b=~~ge)):arguments.length<2?V instanceof Sr?new Sr(V.r,V.g,V.b):Kn(""+V,Sr,Yt):new Sr(V,ne,ge)}function ar(V){return new Sr(V>>16,V>>8&255,255&V)}function Fn(V){return ar(V)+""}er.brighter=function(V){return new Kt(Math.min(100,this.l+fn*(arguments.length?V:1)),this.a,this.b)},er.darker=function(V){return new Kt(Math.max(0,this.l-fn*(arguments.length?V:1)),this.a,this.b)},er.rgb=function(){return En(this.l,this.a,this.b)},i.rgb=Sr;var ir=Sr.prototype=new xt;function Wn(V){return V<16?"0"+Math.max(0,V).toString(16):Math.min(255,V).toString(16)}function Kn(V,ne,ge){var xe,Me,Fe,Je=0,rt=0,dt=0;if(xe=/([a-z]+)\((.*)\)/.exec(V=V.toLowerCase()))switch(Me=xe[2].split(","),xe[1]){case"hsl":return ge(parseFloat(Me[0]),parseFloat(Me[1])/100,parseFloat(Me[2])/100);case"rgb":return ne(Fr(Me[0]),Fr(Me[1]),Fr(Me[2]))}return(Fe=Rr.get(V))?ne(Fe.r,Fe.g,Fe.b):(V==null||V.charAt(0)!=="#"||isNaN(Fe=parseInt(V.slice(1),16))||(V.length===4?(Je=(3840&Fe)>>4,Je|=Je>>4,rt=240&Fe,rt|=rt>>4,dt=15&Fe,dt|=dt<<4):V.length===7&&(Je=(16711680&Fe)>>16,rt=(65280&Fe)>>8,dt=255&Fe)),ne(Je,rt,dt))}function _r(V,ne,ge){var xe,Me,Fe=Math.min(V/=255,ne/=255,ge/=255),Je=Math.max(V,ne,ge),rt=Je-Fe,dt=(Je+Fe)/2;return rt?(Me=dt<.5?rt/(Je+Fe):rt/(2-Je-Fe),xe=V==Je?(ne-ge)/rt+(ne0&&dt<1?0:xe),new Ht(xe,Me,dt)}function Ir(V,ne,ge){var xe=Un((.4124564*(V=zr(V))+.3575761*(ne=zr(ne))+.1804375*(ge=zr(ge)))/dn),Me=Un((.2126729*V+.7151522*ne+.072175*ge)/vn);return Kt(116*Me-16,500*(xe-Me),200*(Me-Un((.0193339*V+.119192*ne+.9503041*ge)/Nn)))}function zr(V){return(V/=255)<=.04045?V/12.92:Math.pow((V+.055)/1.055,2.4)}function Fr(V){var ne=parseFloat(V);return V.charAt(V.length-1)==="%"?Math.round(2.55*ne):ne}ir.brighter=function(V){V=Math.pow(.7,arguments.length?V:1);var ne=this.r,ge=this.g,xe=this.b,Me=30;return ne||ge||xe?(ne&&ne=200&&Vt<300||Vt===304){try{Et=ge.call(Me,rt)}catch(jt){return void Fe.error.call(Me,jt)}Fe.load.call(Me,Et)}else Fe.error.call(Me,rt)}return self.XDomainRequest&&!("withCredentials"in rt)&&/^(http(s)?:)?\/\//.test(V)&&(rt=new XDomainRequest),"onload"in rt?rt.onload=rt.onerror=mt:rt.onreadystatechange=function(){rt.readyState>3&&mt()},rt.onprogress=function(Et){var Vt=i.event;i.event=Et;try{Fe.progress.call(Me,rt)}finally{i.event=Vt}},Me.header=function(Et,Vt){return Et=(Et+"").toLowerCase(),arguments.length<2?Je[Et]:(Vt==null?delete Je[Et]:Je[Et]=Vt+"",Me)},Me.mimeType=function(Et){return arguments.length?(ne=Et==null?null:Et+"",Me):ne},Me.responseType=function(Et){return arguments.length?(dt=Et,Me):dt},Me.response=function(Et){return ge=Et,Me},["get","post"].forEach(function(Et){Me[Et]=function(){return Me.send.apply(Me,[Et].concat(w(arguments)))}}),Me.send=function(Et,Vt,jt){if(arguments.length===2&&typeof Vt=="function"&&(jt=Vt,Vt=null),rt.open(Et,V,!0),ne==null||"accept"in Je||(Je.accept=ne+",*/*"),rt.setRequestHeader)for(var Nt in Je)rt.setRequestHeader(Nt,Je[Nt]);return ne!=null&&rt.overrideMimeType&&rt.overrideMimeType(ne),dt!=null&&(rt.responseType=dt),jt!=null&&Me.on("error",jt).on("load",function(cn){jt(null,cn)}),Fe.beforesend.call(Me,rt),rt.send(Vt??null),Me},Me.abort=function(){return rt.abort(),Me},i.rebind(Me,Fe,"on"),xe==null?Me:Me.get(function(Et){return Et.length===1?function(Vt,jt){Et(Vt==null?jt:null)}:Et}(xe))}Rr.forEach(function(V,ne){Rr.set(V,ar(ne))}),i.functor=$r,i.xhr=Kr(W),i.dsv=function(V,ne){var ge=new RegExp('["'+V+` +`;for(Se=0,Te=ye*De,Pe=me,Le="",_e=0;_e",K="",oe=W.length,q=K.length,Y=U[0]===E||U[0]===D,ee=0,me=-q;ee>-1&&(ee=X.indexOf(W,ee))!==-1&&(me=X.indexOf(K,ee+oe))!==-1&&!(me<=ee);){for(var he=ee;he=me)te[he]=null,X=X.substr(0,he)+" "+X.substr(he+1);else if(te[he]!==null){var se=te[he].indexOf(U[0]);se===-1?te[he]+=U:Y&&(te[he]=te[he].substr(0,se+1)+(1+parseInt(te[he][se+1]))+te[he].substr(se+2))}var ae=ee+oe,ce=X.substr(ae,me-ae).indexOf(W);ee=ce!==-1?ce:me+q}return te}function z(j,U){var X=u(j,128);return U?m(X.cells,X.positions,.25):{edges:X.cells,positions:X.positions}}function $(j,U,X,te){var W=z(j,te),K=function(ye,_e,Se){for(var Te=_e.textAlign||"start",Pe=_e.textBaseline||"alphabetic",Ie=[1<<30,1<<30],ze=[0,0],De=ye.length,He=0;He"u"||!ses.ok||ses.ok()){typeof ses<"u"&&(ses.weakMapPermitHostObjects=L);var p=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var u=new a,h=Object.freeze({});if(u.set(h,1),u.get(h)===1)return void(y.exports=WeakMap);p=!0}}var m=Object.getOwnPropertyNames,v=Object.defineProperty,_=Object.isExtensible,S="weakmap:",A=S+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var x=new ArrayBuffer(25),R=new Uint8Array(x);crypto.getRandomValues(R),A=S+"rand:"+Array.prototype.map.call(R,function($){return($%36).toString(36)}).join("")+"___"}if(v(Object,"getOwnPropertyNames",{value:function($){return m($).filter(D)}}),"getPropertyNames"in Object){var M=Object.getPropertyNames;v(Object,"getPropertyNames",{value:function($){return M($).filter(D)}})}(function(){var $=Object.freeze;v(Object,"freeze",{value:function(U){return k(U),$(U)}});var Q=Object.seal;v(Object,"seal",{value:function(U){return k(U),Q(U)}});var j=Object.preventExtensions;v(Object,"preventExtensions",{value:function(U){return k(U),j(U)}})})();var T=!1,E=0,C=function(){this instanceof C||z();var $=[],Q=[],j=E++;return Object.create(C.prototype,{get___:{value:I(function(U,X){var te,W=k(U);return W?j in W?W[j]:X:(te=$.indexOf(U))>=0?Q[te]:X})},has___:{value:I(function(U){var X=k(U);return X?j in X:$.indexOf(U)>=0})},set___:{value:I(function(U,X){var te,W=k(U);return W?W[j]=X:(te=$.indexOf(U))>=0?Q[te]=X:(te=$.length,Q[te]=X,$[te]=U),this})},delete___:{value:I(function(U){var X,te,W=k(U);return W?j in W&&delete W[j]:!((X=$.indexOf(U))<0||(te=$.length-1,$[X]=void 0,Q[X]=Q[te],$[X]=$[te],$.length=te,Q.length=te,0))})}})};C.prototype=Object.create(Object.prototype,{get:{value:function($,Q){return this.get___($,Q)},writable:!0,configurable:!0},has:{value:function($){return this.has___($)},writable:!0,configurable:!0},set:{value:function($,Q){return this.set___($,Q)},writable:!0,configurable:!0},delete:{value:function($){return this.delete___($)},writable:!0,configurable:!0}}),typeof a=="function"?function(){function $(){this instanceof C||z();var Q,j=new a,U=void 0,X=!1;return Q=p?function(te,W){return j.set(te,W),j.has(te)||(U||(U=new C),U.set(te,W)),this}:function(te,W){if(X)try{j.set(te,W)}catch{U||(U=new C),U.set___(te,W)}else j.set(te,W);return this},Object.create(C.prototype,{get___:{value:I(function(te,W){return U?j.has(te)?j.get(te):U.get___(te,W):j.get(te,W)})},has___:{value:I(function(te){return j.has(te)||!!U&&U.has___(te)})},set___:{value:I(Q)},delete___:{value:I(function(te){var W=!!j.delete(te);return U&&U.delete___(te)||W})},permitHostObjects___:{value:I(function(te){if(te!==L)throw new Error("bogus call to permitHostObjects___");X=!0})}})}p&&typeof Proxy<"u"&&(Proxy=void 0),$.prototype=C.prototype,y.exports=$,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),y.exports=C)}function L($){$.permitHostObjects___&&$.permitHostObjects___(L)}function D($){return!($.substr(0,8)==S&&$.substr($.length-3)==="___")}function k($){if($!==Object($))throw new TypeError("Not an object: "+$);var Q=$[A];if(Q&&Q.key===$)return Q;if(_($)){Q={key:$};try{return v($,A,{value:Q,writable:!1,enumerable:!1,configurable:!1}),Q}catch{return}}}function I($){return $.prototype=null,Object.freeze($)}function z(){T||typeof console>"u"||(T=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}})()},9222:function(y,p,a){var u=a(7178);y.exports=function(){var h={};return function(m){if((typeof m!="object"||m===null)&&typeof m!="function")throw new Error("Weakmap-shim: Key must be object");var v=m.valueOf(h);return v&&v.identity===h?v:u(m,h)}}},7178:function(y){y.exports=function(p,a){var u={identity:a},h=p.valueOf;return Object.defineProperty(p,"valueOf",{value:function(m){return m!==a?h.apply(this,arguments):u},writable:!0}),u}},4037:function(y,p,a){var u=a(9222);y.exports=function(){var h=u();return{get:function(m,v){var _=h(m);return _.hasOwnProperty("value")?_.value:v},set:function(m,v){return h(m).value=v,this},has:function(m){return"value"in h(m)},delete:function(m){return delete h(m).value}}}},6183:function(y){y.exports=function(p){var a={};return function(u,h,m){var v=u.dtype,_=u.order,S=[v,_.join()].join(),A=a[S];return A||(a[S]=A=p([v,_])),A(u.shape.slice(0),u.data,u.stride,0|u.offset,h,m)}}((function(){return function(p,a,u,h,m,v){var _=p[0],S=u[0],A=[0],x=S;h|=0;var R=0,M=S;for(R=0;R<_;++R){var T=a[h]-v,E=a[h+x]-v;T>=0!=E>=0&&m.push(A[0]+.5+.5*(T+E)/(T-E)),h+=M,++A[0]}}}).bind(void 0,{funcName:"zeroCrossings"}))},9584:function(y,p,a){y.exports=function(h,m){var v=[];return m=+m||0,u(h.hi(h.shape[0]-1),v,m),v};var u=a(6183)},6601:function(){}},O={};function w(y){var p=O[y];if(p!==void 0)return p.exports;var a=O[y]={id:y,loaded:!1,exports:{}};return i[y].call(a.exports,a,a.exports,w),a.loaded=!0,a.exports}return w.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),w.nmd=function(y){return y.paths=[],y.children||(y.children=[]),y},w(7386)}()},d.exports=c()},33576:function(d,l,n){function c(Oe,ke){for(var Le=0;Leu)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var ke=new Uint8Array(Oe);return Object.setPrototypeOf(ke,m.prototype),ke}function m(Oe,ke,Le){if(typeof Oe=="number"){if(typeof ke=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(Oe)}return v(Oe,ke,Le)}function v(Oe,ke,Le){if(typeof Oe=="string")return function(Ze,Xe){if(typeof Xe=="string"&&Xe!==""||(Xe="utf8"),!m.isEncoding(Xe))throw new TypeError("Unknown encoding: "+Xe);var tt=0|M(Ze,Xe),Ee=h(tt),Ne=Ee.write(Ze,Xe);return Ne!==tt&&(Ee=Ee.slice(0,Ne)),Ee}(Oe,ke);if(ArrayBuffer.isView(Oe))return function(Ze){if(ze(Ze,Uint8Array)){var Xe=new Uint8Array(Ze);return x(Xe.buffer,Xe.byteOffset,Xe.byteLength)}return A(Ze)}(Oe);if(Oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe));if(ze(Oe,ArrayBuffer)||Oe&&ze(Oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(Oe,SharedArrayBuffer)||Oe&&ze(Oe.buffer,SharedArrayBuffer)))return x(Oe,ke,Le);if(typeof Oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var We=Oe.valueOf&&Oe.valueOf();if(We!=null&&We!==Oe)return m.from(We,ke,Le);var Ue=function(Ze){if(m.isBuffer(Ze)){var Xe=0|R(Ze.length),tt=h(Xe);return tt.length===0||Ze.copy(tt,0,0,Xe),tt}return Ze.length!==void 0?typeof Ze.length!="number"||De(Ze.length)?h(0):A(Ze):Ze.type==="Buffer"&&Array.isArray(Ze.data)?A(Ze.data):void 0}(Oe);if(Ue)return Ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Oe[Symbol.toPrimitive]=="function")return m.from(Oe[Symbol.toPrimitive]("string"),ke,Le);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe))}function _(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function S(Oe){return _(Oe),h(Oe<0?0:0|R(Oe))}function A(Oe){for(var ke=Oe.length<0?0:0|R(Oe.length),Le=h(ke),We=0;We=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|Oe}function M(Oe,ke){if(m.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||ze(Oe,ArrayBuffer))return Oe.byteLength;if(typeof Oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+w(Oe));var Le=Oe.length,We=arguments.length>2&&arguments[2]===!0;if(!We&&Le===0)return 0;for(var Ue=!1;;)switch(ke){case"ascii":case"latin1":case"binary":return Le;case"utf8":case"utf-8":return Te(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Le;case"hex":return Le>>>1;case"base64":return Pe(Oe).length;default:if(Ue)return We?-1:Te(Oe).length;ke=(""+ke).toLowerCase(),Ue=!0}}function T(Oe,ke,Le){var We=!1;if((ke===void 0||ke<0)&&(ke=0),ke>this.length||((Le===void 0||Le>this.length)&&(Le=this.length),Le<=0)||(Le>>>=0)<=(ke>>>=0))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return W(this,ke,Le);case"utf8":case"utf-8":return j(this,ke,Le);case"ascii":return X(this,ke,Le);case"latin1":case"binary":return te(this,ke,Le);case"base64":return Q(this,ke,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,ke,Le);default:if(We)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),We=!0}}function E(Oe,ke,Le){var We=Oe[ke];Oe[ke]=Oe[Le],Oe[Le]=We}function C(Oe,ke,Le,We,Ue){if(Oe.length===0)return-1;if(typeof Le=="string"?(We=Le,Le=0):Le>2147483647?Le=2147483647:Le<-2147483648&&(Le=-2147483648),De(Le=+Le)&&(Le=Ue?0:Oe.length-1),Le<0&&(Le=Oe.length+Le),Le>=Oe.length){if(Ue)return-1;Le=Oe.length-1}else if(Le<0){if(!Ue)return-1;Le=0}if(typeof ke=="string"&&(ke=m.from(ke,We)),m.isBuffer(ke))return ke.length===0?-1:L(Oe,ke,Le,We,Ue);if(typeof ke=="number")return ke&=255,typeof Uint8Array.prototype.indexOf=="function"?Ue?Uint8Array.prototype.indexOf.call(Oe,ke,Le):Uint8Array.prototype.lastIndexOf.call(Oe,ke,Le):L(Oe,[ke],Le,We,Ue);throw new TypeError("val must be string, number or Buffer")}function L(Oe,ke,Le,We,Ue){var Ze,Xe=1,tt=Oe.length,Ee=ke.length;if(We!==void 0&&((We=String(We).toLowerCase())==="ucs2"||We==="ucs-2"||We==="utf16le"||We==="utf-16le")){if(Oe.length<2||ke.length<2)return-1;Xe=2,tt/=2,Ee/=2,Le/=2}function Ne(Ge,ht){return Xe===1?Ge[ht]:Ge.readUInt16BE(ht*Xe)}if(Ue){var je=-1;for(Ze=Le;Zett&&(Le=tt-Ee),Ze=Le;Ze>=0;Ze--){for(var nt=!0,ot=0;otUe&&(We=Ue):We=Ue;var Ze,Xe=ke.length;for(We>Xe/2&&(We=Xe/2),Ze=0;Ze>8,Ee=Xe%256,Ne.push(Ee),Ne.push(tt);return Ne}(ke,Oe.length-Le),Oe,Le,We)}function Q(Oe,ke,Le){return ke===0&&Le===Oe.length?y.fromByteArray(Oe):y.fromByteArray(Oe.slice(ke,Le))}function j(Oe,ke,Le){Le=Math.min(Oe.length,Le);for(var We=[],Ue=ke;Ue239?4:Ze>223?3:Ze>191?2:1;if(Ue+tt<=Le){var Ee=void 0,Ne=void 0,je=void 0,nt=void 0;switch(tt){case 1:Ze<128&&(Xe=Ze);break;case 2:(192&(Ee=Oe[Ue+1]))==128&&(nt=(31&Ze)<<6|63&Ee)>127&&(Xe=nt);break;case 3:Ee=Oe[Ue+1],Ne=Oe[Ue+2],(192&Ee)==128&&(192&Ne)==128&&(nt=(15&Ze)<<12|(63&Ee)<<6|63&Ne)>2047&&(nt<55296||nt>57343)&&(Xe=nt);break;case 4:Ee=Oe[Ue+1],Ne=Oe[Ue+2],je=Oe[Ue+3],(192&Ee)==128&&(192&Ne)==128&&(192&je)==128&&(nt=(15&Ze)<<18|(63&Ee)<<12|(63&Ne)<<6|63&je)>65535&&nt<1114112&&(Xe=nt)}}Xe===null?(Xe=65533,tt=1):Xe>65535&&(Xe-=65536,We.push(Xe>>>10&1023|55296),Xe=56320|1023&Xe),We.push(Xe),Ue+=tt}return function(ot){var Ge=ot.length;if(Ge<=U)return String.fromCharCode.apply(String,ot);for(var ht="",pt=0;pt"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(Oe,ke,Le){return v(Oe,ke,Le)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.alloc=function(Oe,ke,Le){return function(We,Ue,Ze){return _(We),We<=0?h(We):Ue!==void 0?typeof Ze=="string"?h(We).fill(Ue,Ze):h(We).fill(Ue):h(We)}(Oe,ke,Le)},m.allocUnsafe=function(Oe){return S(Oe)},m.allocUnsafeSlow=function(Oe){return S(Oe)},m.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==m.prototype},m.compare=function(Oe,ke){if(ze(Oe,Uint8Array)&&(Oe=m.from(Oe,Oe.offset,Oe.byteLength)),ze(ke,Uint8Array)&&(ke=m.from(ke,ke.offset,ke.byteLength)),!m.isBuffer(Oe)||!m.isBuffer(ke))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===ke)return 0;for(var Le=Oe.length,We=ke.length,Ue=0,Ze=Math.min(Le,We);UeWe.length?(m.isBuffer(Ze)||(Ze=m.from(Ze)),Ze.copy(We,Ue)):Uint8Array.prototype.set.call(We,Ze,Ue);else{if(!m.isBuffer(Ze))throw new TypeError('"list" argument must be an Array of Buffers');Ze.copy(We,Ue)}Ue+=Ze.length}return We},m.byteLength=M,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var Oe=this.length;if(Oe%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ke=0;keke&&(Oe+=" ... "),""},a&&(m.prototype[a]=m.prototype.inspect),m.prototype.compare=function(Oe,ke,Le,We,Ue){if(ze(Oe,Uint8Array)&&(Oe=m.from(Oe,Oe.offset,Oe.byteLength)),!m.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+w(Oe));if(ke===void 0&&(ke=0),Le===void 0&&(Le=Oe?Oe.length:0),We===void 0&&(We=0),Ue===void 0&&(Ue=this.length),ke<0||Le>Oe.length||We<0||Ue>this.length)throw new RangeError("out of range index");if(We>=Ue&&ke>=Le)return 0;if(We>=Ue)return-1;if(ke>=Le)return 1;if(this===Oe)return 0;for(var Ze=(Ue>>>=0)-(We>>>=0),Xe=(Le>>>=0)-(ke>>>=0),tt=Math.min(Ze,Xe),Ee=this.slice(We,Ue),Ne=Oe.slice(ke,Le),je=0;je>>=0,isFinite(Le)?(Le>>>=0,We===void 0&&(We="utf8")):(We=Le,Le=void 0)}var Ue=this.length-ke;if((Le===void 0||Le>Ue)&&(Le=Ue),Oe.length>0&&(Le<0||ke<0)||ke>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Ze=!1;;)switch(We){case"hex":return D(this,Oe,ke,Le);case"utf8":case"utf-8":return k(this,Oe,ke,Le);case"ascii":case"latin1":case"binary":return I(this,Oe,ke,Le);case"base64":return z(this,Oe,ke,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,Oe,ke,Le);default:if(Ze)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Ze=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function X(Oe,ke,Le){var We="";Le=Math.min(Oe.length,Le);for(var Ue=ke;UeWe)&&(Le=We);for(var Ue="",Ze=ke;ZeLe)throw new RangeError("Trying to access beyond buffer length")}function q(Oe,ke,Le,We,Ue,Ze){if(!m.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ke>Ue||keOe.length)throw new RangeError("Index out of range")}function Y(Oe,ke,Le,We,Ue){ve(ke,We,Ue,Oe,Le,7);var Ze=Number(ke&BigInt(4294967295));Oe[Le++]=Ze,Ze>>=8,Oe[Le++]=Ze,Ze>>=8,Oe[Le++]=Ze,Ze>>=8,Oe[Le++]=Ze;var Xe=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Le++]=Xe,Xe>>=8,Oe[Le++]=Xe,Xe>>=8,Oe[Le++]=Xe,Xe>>=8,Oe[Le++]=Xe,Le}function ee(Oe,ke,Le,We,Ue){ve(ke,We,Ue,Oe,Le,7);var Ze=Number(ke&BigInt(4294967295));Oe[Le+7]=Ze,Ze>>=8,Oe[Le+6]=Ze,Ze>>=8,Oe[Le+5]=Ze,Ze>>=8,Oe[Le+4]=Ze;var Xe=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Le+3]=Xe,Xe>>=8,Oe[Le+2]=Xe,Xe>>=8,Oe[Le+1]=Xe,Xe>>=8,Oe[Le]=Xe,Le+8}function me(Oe,ke,Le,We,Ue,Ze){if(Le+We>Oe.length)throw new RangeError("Index out of range");if(Le<0)throw new RangeError("Index out of range")}function he(Oe,ke,Le,We,Ue){return ke=+ke,Le>>>=0,Ue||me(Oe,0,Le,4),p.write(Oe,ke,Le,We,23,4),Le+4}function se(Oe,ke,Le,We,Ue){return ke=+ke,Le>>>=0,Ue||me(Oe,0,Le,8),p.write(Oe,ke,Le,We,52,8),Le+8}m.prototype.slice=function(Oe,ke){var Le=this.length;(Oe=~~Oe)<0?(Oe+=Le)<0&&(Oe=0):Oe>Le&&(Oe=Le),(ke=ke===void 0?Le:~~ke)<0?(ke+=Le)<0&&(ke=0):ke>Le&&(ke=Le),ke>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=this[Oe+--ke],Ue=1;ke>0&&(Ue*=256);)We+=this[Oe+--ke]*Ue;return We},m.prototype.readUint8=m.prototype.readUInt8=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,1,this.length),this[Oe]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+16777216*this[Oe+3]},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),16777216*this[Oe]+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},m.prototype.readBigUInt64LE=Ve(function(Oe){ye(Oe>>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=ke+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,24),Ue=this[++Oe]+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+Le*Math.pow(2,24);return BigInt(We)+(BigInt(Ue)<>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=ke*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe],Ue=this[++Oe]*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+Le;return(BigInt(We)<>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze=(Ue*=128)&&(We-=Math.pow(2,8*ke)),We},m.prototype.readIntBE=function(Oe,ke,Le){Oe>>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=ke,Ue=1,Ze=this[Oe+--We];We>0&&(Ue*=256);)Ze+=this[Oe+--We]*Ue;return Ze>=(Ue*=128)&&(Ze-=Math.pow(2,8*ke)),Ze},m.prototype.readInt8=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,1,this.length),128&this[Oe]?-1*(255-this[Oe]+1):this[Oe]},m.prototype.readInt16LE=function(Oe,ke){Oe>>>=0,ke||oe(Oe,2,this.length);var Le=this[Oe]|this[Oe+1]<<8;return 32768&Le?4294901760|Le:Le},m.prototype.readInt16BE=function(Oe,ke){Oe>>>=0,ke||oe(Oe,2,this.length);var Le=this[Oe+1]|this[Oe]<<8;return 32768&Le?4294901760|Le:Le},m.prototype.readInt32LE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},m.prototype.readInt32BE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},m.prototype.readBigInt64LE=Ve(function(Oe){ye(Oe>>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=this[Oe+4]+this[Oe+5]*Math.pow(2,8)+this[Oe+6]*Math.pow(2,16)+(Le<<24);return(BigInt(We)<>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=(ke<<24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe];return(BigInt(We)<>>=0,ke||oe(Oe,4,this.length),p.read(this,Oe,!0,23,4)},m.prototype.readFloatBE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),p.read(this,Oe,!1,23,4)},m.prototype.readDoubleLE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,8,this.length),p.read(this,Oe,!0,52,8)},m.prototype.readDoubleBE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,8,this.length),p.read(this,Oe,!1,52,8)},m.prototype.writeUintLE=m.prototype.writeUIntLE=function(Oe,ke,Le,We){Oe=+Oe,ke>>>=0,Le>>>=0,We||q(this,Oe,ke,Le,Math.pow(2,8*Le)-1,0);var Ue=1,Ze=0;for(this[ke]=255&Oe;++Ze>>=0,Le>>>=0,We||q(this,Oe,ke,Le,Math.pow(2,8*Le)-1,0);var Ue=Le-1,Ze=1;for(this[ke+Ue]=255&Oe;--Ue>=0&&(Ze*=256);)this[ke+Ue]=Oe/Ze&255;return ke+Le},m.prototype.writeUint8=m.prototype.writeUInt8=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,1,255,0),this[ke]=255&Oe,ke+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,65535,0),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,65535,0),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,4294967295,0),this[ke+3]=Oe>>>24,this[ke+2]=Oe>>>16,this[ke+1]=Oe>>>8,this[ke]=255&Oe,ke+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,4294967295,0),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},m.prototype.writeBigUInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeIntLE=function(Oe,ke,Le,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Le-1);q(this,Oe,ke,Le,Ue-1,-Ue)}var Ze=0,Xe=1,tt=0;for(this[ke]=255&Oe;++Ze>0)-tt&255;return ke+Le},m.prototype.writeIntBE=function(Oe,ke,Le,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Le-1);q(this,Oe,ke,Le,Ue-1,-Ue)}var Ze=Le-1,Xe=1,tt=0;for(this[ke+Ze]=255&Oe;--Ze>=0&&(Xe*=256);)Oe<0&&tt===0&&this[ke+Ze+1]!==0&&(tt=1),this[ke+Ze]=(Oe/Xe>>0)-tt&255;return ke+Le},m.prototype.writeInt8=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[ke]=255&Oe,ke+1},m.prototype.writeInt16LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,32767,-32768),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},m.prototype.writeInt16BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,32767,-32768),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},m.prototype.writeInt32LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,2147483647,-2147483648),this[ke]=255&Oe,this[ke+1]=Oe>>>8,this[ke+2]=Oe>>>16,this[ke+3]=Oe>>>24,ke+4},m.prototype.writeInt32BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},m.prototype.writeBigInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeFloatLE=function(Oe,ke,Le){return he(this,Oe,ke,!0,Le)},m.prototype.writeFloatBE=function(Oe,ke,Le){return he(this,Oe,ke,!1,Le)},m.prototype.writeDoubleLE=function(Oe,ke,Le){return se(this,Oe,ke,!0,Le)},m.prototype.writeDoubleBE=function(Oe,ke,Le){return se(this,Oe,ke,!1,Le)},m.prototype.copy=function(Oe,ke,Le,We){if(!m.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),We||We===0||(We=this.length),ke>=Oe.length&&(ke=Oe.length),ke||(ke=0),We>0&&We=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),Oe.length-ke>>=0,Le=Le===void 0?this.length:Le>>>0,Oe||(Oe=0),typeof Oe=="number")for(Ze=ke;Ze"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}()?Reflect.construct(Ne,je||[],b(Ee).constructor):Ne.apply(Ee,je))}(this,Ue),Object.defineProperty(i(tt),"message",{value:ke.apply(i(tt),arguments),writable:!0,configurable:!0}),tt.name="".concat(tt.name," [").concat(Oe,"]"),tt.stack,delete tt.name,tt}var Ze,Xe;return function(tt,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(Ee&&Ee.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),Object.defineProperty(tt,"prototype",{writable:!1}),Ee&&O(tt,Ee)}(Ue,We),Ze=Ue,(Xe=[{key:"code",get:function(){return Oe},set:function(tt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:tt,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Oe,"]: ").concat(this.message)}}])&&c(Ze.prototype,Xe),Object.defineProperty(Ze,"prototype",{writable:!1}),Ue}(Le)}function de(Oe){for(var ke="",Le=Oe.length,We=Oe[0]==="-"?1:0;Le>=We+4;Le-=3)ke="_".concat(Oe.slice(Le-3,Le)).concat(ke);return"".concat(Oe.slice(0,Le)).concat(ke)}function ve(Oe,ke,Le,We,Ue,Ze){if(Oe>Le||Oe3?ke===0||ke===BigInt(0)?">= 0".concat(tt," and < 2").concat(tt," ** ").concat(8*(Ze+1)).concat(tt):">= -(2".concat(tt," ** ").concat(8*(Ze+1)-1).concat(tt,") and < 2 ** ")+"".concat(8*(Ze+1)-1).concat(tt):">= ".concat(ke).concat(tt," and <= ").concat(Le).concat(tt),new ae.ERR_OUT_OF_RANGE("value",Xe,Oe)}(function(Ee,Ne,je){ye(Ne,"offset"),Ee[Ne]!==void 0&&Ee[Ne+je]!==void 0||_e(Ne,Ee.length-(je+1))})(We,Ue,Ze)}function ye(Oe,ke){if(typeof Oe!="number")throw new ae.ERR_INVALID_ARG_TYPE(ke,"number",Oe)}function _e(Oe,ke,Le){throw Math.floor(Oe)!==Oe?(ye(Oe,Le),new ae.ERR_OUT_OF_RANGE(Le||"offset","an integer",Oe)):ke<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE(Le||"offset",">= ".concat(Le?1:0," and <= ").concat(ke),Oe)}ce("ERR_BUFFER_OUT_OF_BOUNDS",function(Oe){return Oe?"".concat(Oe," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),ce("ERR_INVALID_ARG_TYPE",function(Oe,ke){return'The "'.concat(Oe,'" argument must be of type number. Received type ').concat(w(ke))},TypeError),ce("ERR_OUT_OF_RANGE",function(Oe,ke,Le){var We='The value of "'.concat(Oe,'" is out of range.'),Ue=Le;return Number.isInteger(Le)&&Math.abs(Le)>Math.pow(2,32)?Ue=de(String(Le)):typeof Le=="bigint"&&(Ue=String(Le),(Le>Math.pow(BigInt(2),BigInt(32))||Le<-Math.pow(BigInt(2),BigInt(32)))&&(Ue=de(Ue)),Ue+="n"),We+" It must be ".concat(ke,". Received ").concat(Ue)},RangeError);var Se=/[^+/0-9A-Za-z-_]/g;function Te(Oe,ke){var Le;ke=ke||1/0;for(var We=Oe.length,Ue=null,Ze=[],Xe=0;Xe55295&&Le<57344){if(!Ue){if(Le>56319){(ke-=3)>-1&&Ze.push(239,191,189);continue}if(Xe+1===We){(ke-=3)>-1&&Ze.push(239,191,189);continue}Ue=Le;continue}if(Le<56320){(ke-=3)>-1&&Ze.push(239,191,189),Ue=Le;continue}Le=65536+(Ue-55296<<10|Le-56320)}else Ue&&(ke-=3)>-1&&Ze.push(239,191,189);if(Ue=null,Le<128){if((ke-=1)<0)break;Ze.push(Le)}else if(Le<2048){if((ke-=2)<0)break;Ze.push(Le>>6|192,63&Le|128)}else if(Le<65536){if((ke-=3)<0)break;Ze.push(Le>>12|224,Le>>6&63|128,63&Le|128)}else{if(!(Le<1114112))throw new Error("Invalid code point");if((ke-=4)<0)break;Ze.push(Le>>18|240,Le>>12&63|128,Le>>6&63|128,63&Le|128)}}return Ze}function Pe(Oe){return y.toByteArray(function(ke){if((ke=(ke=ke.split("=")[0]).trim().replace(Se,"")).length<2)return"";for(;ke.length%4!=0;)ke+="=";return ke}(Oe))}function Ie(Oe,ke,Le,We){var Ue;for(Ue=0;Ue=ke.length||Ue>=Oe.length);++Ue)ke[Ue+Le]=Oe[Ue];return Ue}function ze(Oe,ke){return Oe instanceof ke||Oe!=null&&Oe.constructor!=null&&Oe.constructor.name!=null&&Oe.constructor.name===ke.name}function De(Oe){return Oe!=Oe}var He=function(){for(var Oe="0123456789abcdef",ke=new Array(256),Le=0;Le<16;++Le)for(var We=16*Le,Ue=0;Ue<16;++Ue)ke[We+Ue]=Oe[Le]+Oe[Ue];return ke}();function Ve(Oe){return typeof BigInt>"u"?$e:Oe}function $e(){throw new Error("BigInt not supported")}},25928:function(d){d.exports=b,d.exports.isMobile=b,d.exports.default=b;var l=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,c=/android|ipad|playbook|silk/i;function b(i){i||(i={});var O=i.ua;if(O||typeof navigator>"u"||(O=navigator.userAgent),O&&O.headers&&typeof O.headers["user-agent"]=="string"&&(O=O.headers["user-agent"]),typeof O!="string")return!1;var w=l.test(O)&&!n.test(O)||!!i.tablet&&c.test(O);return!w&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&O.indexOf("Macintosh")!==-1&&O.indexOf("Safari")!==-1&&(w=!0),w}},48932:function(d,l,n){n.r(l),n.d(l,{sankeyCenter:function(){return h},sankeyCircular:function(){return Q},sankeyJustify:function(){return u},sankeyLeft:function(){return p},sankeyRight:function(){return a}});var c=n(84706),b=n(34712),i=n(10132),O=n(6688),w=n.n(O);function y(Ie){return Ie.target.depth}function p(Ie){return Ie.depth}function a(Ie,ze){return ze-1-Ie.height}function u(Ie,ze){return Ie.sourceLinks.length?Ie.depth:ze-1}function h(Ie){return Ie.targetLinks.length?Ie.depth:Ie.sourceLinks.length?(0,c.SY)(Ie.sourceLinks,y)-1:0}function m(Ie){return function(){return Ie}}var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie};function _(Ie,ze){return A(Ie.source,ze.source)||Ie.index-ze.index}function S(Ie,ze){return A(Ie.target,ze.target)||Ie.index-ze.index}function A(Ie,ze){return Ie.partOfCycle===ze.partOfCycle?Ie.y0-ze.y0:Ie.circularLinkType==="top"||ze.circularLinkType==="bottom"?-1:1}function x(Ie){return Ie.value}function R(Ie){return(Ie.y0+Ie.y1)/2}function M(Ie){return R(Ie.source)}function T(Ie){return R(Ie.target)}function E(Ie){return Ie.index}function C(Ie){return Ie.nodes}function L(Ie){return Ie.links}function D(Ie,ze){var De=Ie.get(ze);if(!De)throw new Error("missing: "+ze);return De}function k(Ie,ze){return ze(Ie)}var I=25,z=10,$=.3;function Q(){var Ie,ze,De=0,He=0,Ve=1,$e=1,Oe=24,ke=E,Le=u,We=C,Ue=L,Ze=32,Xe=2,tt=null;function Ee(){var je={nodes:We.apply(null,arguments),links:Ue.apply(null,arguments)};(function(ot){ot.nodes.forEach(function(ht,pt){ht.index=pt,ht.sourceLinks=[],ht.targetLinks=[]});var Ge=(0,b.kH)(ot.nodes,ke);ot.links.forEach(function(ht,pt){ht.index=pt;var wt=ht.source,Dt=ht.target;(wt===void 0?"undefined":v(wt))!=="object"&&(wt=ht.source=D(Ge,wt)),(Dt===void 0?"undefined":v(Dt))!=="object"&&(Dt=ht.target=D(Ge,Dt)),wt.sourceLinks.push(ht),Dt.targetLinks.push(ht)})})(je),function(ot,Ge,ht){var pt=0;if(ht===null){for(var wt=[],Dt=0;Dt0?bn+I+z:bn,bottom:mn=mn>0?mn+I+z:mn,left:bt=bt>0?bt+I+z:bt,right:vt=vt>0?vt+I+z:vt}}(ot),nn=function(gn,bn){var mn=(0,c.kv)(gn.nodes,function(zt){return zt.column}),vt=Ve-De,bt=$e-He,lt=vt/(vt+bn.right+bn.left),yt=bt/(bt+bn.top+bn.bottom);return De=De*lt+bn.left,Ve=bn.right==0?Ve:Ve*lt,He=He*yt+bn.top,$e*=yt,gn.nodes.forEach(function(zt){zt.x0=De+zt.column*((Ve-De-Oe)/mn),zt.x1=zt.x0+Oe}),yt}(ot,_t);Ct*=nn,ot.links.forEach(function(gn){gn.width=gn.value*Ct}),pt.forEach(function(gn){var bn=gn.length;gn.forEach(function(mn,vt){mn.depth==pt.length-1&&bn==1||mn.depth==0&&bn==1?(mn.y0=$e/2-mn.value*Ct,mn.y1=mn.y0+mn.value*Ct):mn.partOfCycle?X(mn,en)==0?(mn.y0=$e/2+vt,mn.y1=mn.y0+mn.value*Ct):mn.circularLinkType=="top"?(mn.y0=He+vt,mn.y1=mn.y0+mn.value*Ct):(mn.y0=$e-mn.value*Ct-vt,mn.y1=mn.y0+mn.value*Ct):_t.top==0||_t.bottom==0?(mn.y0=($e-He)/bn*vt,mn.y1=mn.y0+mn.value*Ct):(mn.y0=($e-He)/2-bn/2+vt,mn.y1=mn.y0+mn.value*Ct)})})})(ht),qt();for(var wt=1,Dt=Ge;Dt>0;--Dt)It(wt*=.99,ht),qt();function It(en,Gt){var Ct=pt.length;pt.forEach(function(_t){var nn=_t.length,gn=_t[0].depth;_t.forEach(function(bn){var mn;if((bn.sourceLinks.length||bn.targetLinks.length)&&!(bn.partOfCycle&&X(bn,Gt)>0))if(gn==0&&nn==1)mn=bn.y1-bn.y0,bn.y0=$e/2-mn/2,bn.y1=$e/2+mn/2;else if(gn==Ct-1&&nn==1)mn=bn.y1-bn.y0,bn.y0=$e/2-mn/2,bn.y1=$e/2+mn/2;else{var vt=(0,c.mo)(bn.sourceLinks,T),bt=(0,c.mo)(bn.targetLinks,M),lt=((vt&&bt?(vt+bt)/2:vt||bt)-R(bn))*en;bn.y0+=lt,bn.y1+=lt}})})}function qt(){pt.forEach(function(en){var Gt,Ct,_t,nn=He,gn=en.length;for(en.sort(A),_t=0;_t0&&(Gt.y0+=Ct,Gt.y1+=Ct),nn=Gt.y1+Ie;if((Ct=nn-Ie-$e)>0)for(nn=Gt.y0-=Ct,Gt.y1-=Ct,_t=gn-2;_t>=0;--_t)(Ct=(Gt=en[_t]).y1+Ie-nn)>0&&(Gt.y0-=Ct,Gt.y1-=Ct),nn=Gt.y0})}}(je,Ze,ke),Ne(je);for(var nt=0;nt<4;nt++)ye(je,$e,ke),_e(je,0,ke),de(je,He,$e,ke),ye(je,$e,ke),_e(je,0,ke);return function(ot,Ge,ht){var pt=ot.nodes,wt=ot.links,Dt=!1,It=!1;if(wt.forEach(function(Gt){Gt.circularLinkType=="top"?Dt=!0:Gt.circularLinkType=="bottom"&&(It=!0)}),Dt==0||It==0){var qt=(0,c.SY)(pt,function(Gt){return Gt.y0}),en=(ht-Ge)/((0,c.kv)(pt,function(Gt){return Gt.y1})-qt);pt.forEach(function(Gt){var Ct=(Gt.y1-Gt.y0)*en;Gt.y0=(Gt.y0-qt)*en,Gt.y1=Gt.y0+Ct}),wt.forEach(function(Gt){Gt.y0=(Gt.y0-qt)*en,Gt.y1=(Gt.y1-qt)*en,Gt.width=Gt.width*en})}}(je,He,$e),K(je,Xe,$e,ke),je}function Ne(je){je.nodes.forEach(function(nt){nt.sourceLinks.sort(S),nt.targetLinks.sort(_)}),je.nodes.forEach(function(nt){var ot=nt.y0,Ge=ot,ht=nt.y1,pt=ht;nt.sourceLinks.forEach(function(wt){wt.circular?(wt.y0=ht-wt.width/2,ht-=wt.width):(wt.y0=ot+wt.width/2,ot+=wt.width)}),nt.targetLinks.forEach(function(wt){wt.circular?(wt.y1=pt-wt.width/2,pt-=wt.width):(wt.y1=Ge+wt.width/2,Ge+=wt.width)})})}return Ee.nodeId=function(je){return arguments.length?(ke=typeof je=="function"?je:m(je),Ee):ke},Ee.nodeAlign=function(je){return arguments.length?(Le=typeof je=="function"?je:m(je),Ee):Le},Ee.nodeWidth=function(je){return arguments.length?(Oe=+je,Ee):Oe},Ee.nodePadding=function(je){return arguments.length?(Ie=+je,Ee):Ie},Ee.nodes=function(je){return arguments.length?(We=typeof je=="function"?je:m(je),Ee):We},Ee.links=function(je){return arguments.length?(Ue=typeof je=="function"?je:m(je),Ee):Ue},Ee.size=function(je){return arguments.length?(De=He=0,Ve=+je[0],$e=+je[1],Ee):[Ve-De,$e-He]},Ee.extent=function(je){return arguments.length?(De=+je[0][0],Ve=+je[1][0],He=+je[0][1],$e=+je[1][1],Ee):[[De,He],[Ve,$e]]},Ee.iterations=function(je){return arguments.length?(Ze=+je,Ee):Ze},Ee.circularLinkGap=function(je){return arguments.length?(Xe=+je,Ee):Xe},Ee.nodePaddingRatio=function(je){return arguments.length?(ze=+je,Ee):ze},Ee.sortNodes=function(je){return arguments.length?(tt=je,Ee):tt},Ee.update=function(je){return j(je,ke),Ne(je),je.links.forEach(function(nt){nt.circular&&(nt.circularLinkType=nt.y0+nt.y1<$e?"top":"bottom",nt.source.circularLinkType=nt.circularLinkType,nt.target.circularLinkType=nt.circularLinkType)}),ye(je,$e,ke,!1),_e(je,0,ke),K(je,Xe,$e,ke),je},Ee}function j(Ie,ze){var De=0,He=0;Ie.links.forEach(function(Ve){Ve.circular&&(Ve.source.circularLinkType||Ve.target.circularLinkType?Ve.circularLinkType=Ve.source.circularLinkType?Ve.source.circularLinkType:Ve.target.circularLinkType:Ve.circularLinkType=De1||Ve>1)}function W(Ie,ze,De){return Ie.sort(oe),Ie.forEach(function(He,Ve){var $e,Oe,ke=0;if(Pe(He,De)&&te(He))He.circularPathData.verticalBuffer=ke+He.width/2;else{for(var Le=0;LeOe.source.column)){var We=Ie[Le].circularPathData.verticalBuffer+Ie[Le].width/2+ze;ke=We>ke?We:ke}He.circularPathData.verticalBuffer=ke+He.width/2}}),Ie}function K(Ie,ze,De,He){var Ve=(0,c.SY)(Ie.links,function($e){return $e.source.y0});Ie.links.forEach(function($e){$e.circular&&($e.circularPathData={})}),W(Ie.links.filter(function($e){return $e.circularLinkType=="top"}),ze,He),W(Ie.links.filter(function($e){return $e.circularLinkType=="bottom"}),ze,He),Ie.links.forEach(function($e){if($e.circular){if($e.circularPathData.arcRadius=$e.width+z,$e.circularPathData.leftNodeBuffer=5,$e.circularPathData.rightNodeBuffer=5,$e.circularPathData.sourceWidth=$e.source.x1-$e.source.x0,$e.circularPathData.sourceX=$e.source.x0+$e.circularPathData.sourceWidth,$e.circularPathData.targetX=$e.target.x0,$e.circularPathData.sourceY=$e.y0,$e.circularPathData.targetY=$e.y1,Pe($e,He)&&te($e))$e.circularPathData.leftSmallArcRadius=z+$e.width/2,$e.circularPathData.leftLargeArcRadius=z+$e.width/2,$e.circularPathData.rightSmallArcRadius=z+$e.width/2,$e.circularPathData.rightLargeArcRadius=z+$e.width/2,$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=$e.source.y1+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=$e.source.y0-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius);else{var Oe=$e.source.column,ke=$e.circularLinkType,Le=Ie.links.filter(function(Ze){return Ze.source.column==Oe&&Ze.circularLinkType==ke});$e.circularLinkType=="bottom"?Le.sort(Y):Le.sort(q);var We=0;Le.forEach(function(Ze,Xe){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.leftSmallArcRadius=z+$e.width/2+We,$e.circularPathData.leftLargeArcRadius=z+$e.width/2+Xe*ze+We),We+=Ze.width}),Oe=$e.target.column,Le=Ie.links.filter(function(Ze){return Ze.target.column==Oe&&Ze.circularLinkType==ke}),$e.circularLinkType=="bottom"?Le.sort(me):Le.sort(ee),We=0,Le.forEach(function(Ze,Xe){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.rightSmallArcRadius=z+$e.width/2+We,$e.circularPathData.rightLargeArcRadius=z+$e.width/2+Xe*ze+We),We+=Ze.width}),$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=Math.max(De,$e.source.y1,$e.target.y1)+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=Ve-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius)}$e.circularPathData.leftInnerExtent=$e.circularPathData.sourceX+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightInnerExtent=$e.circularPathData.targetX-$e.circularPathData.rightNodeBuffer,$e.circularPathData.leftFullExtent=$e.circularPathData.sourceX+$e.circularPathData.leftLargeArcRadius+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightFullExtent=$e.circularPathData.targetX-$e.circularPathData.rightLargeArcRadius-$e.circularPathData.rightNodeBuffer}if($e.circular)$e.path=function(Ze){return Ze.circularLinkType=="top"?"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 0 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY-Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 0 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 0 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY-Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 0 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY:"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 1 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY+Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 1 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 1 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY+Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 1 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY}($e);else{var Ue=(0,i.ak)().source(function(Ze){return[Ze.source.x0+(Ze.source.x1-Ze.source.x0),Ze.y0]}).target(function(Ze){return[Ze.target.x0,Ze.y1]});$e.path=Ue($e)}})}function oe(Ie,ze){return he(Ie)==he(ze)?Ie.circularLinkType=="bottom"?Y(Ie,ze):q(Ie,ze):he(ze)-he(Ie)}function q(Ie,ze){return Ie.y0-ze.y0}function Y(Ie,ze){return ze.y0-Ie.y0}function ee(Ie,ze){return Ie.y1-ze.y1}function me(Ie,ze){return ze.y1-Ie.y1}function he(Ie){return Ie.target.column-Ie.source.column}function se(Ie){return Ie.target.x0-Ie.source.x1}function ae(Ie,ze){var De=U(Ie),He=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1+He:Ie.y1-He}function ce(Ie,ze){var De=U(Ie),He=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1-He:Ie.y1+He}function de(Ie,ze,De,He){Ie.links.forEach(function(Ve){if(!Ve.circular&&Ve.target.column-Ve.source.column>1){var $e=Ve.source.column+1,Oe=Ve.target.column-1,ke=1,Le=Oe-$e+1;for(ke=1;$e<=Oe;$e++,ke++)Ie.nodes.forEach(function(We){if(We.column==$e){var Ue,Ze=ke/(Le+1),Xe=Math.pow(1-Ze,3),tt=3*Ze*Math.pow(1-Ze,2),Ee=3*Math.pow(Ze,2)*(1-Ze),Ne=Math.pow(Ze,3),je=Xe*Ve.y0+tt*Ve.y0+Ee*Ve.y1+Ne*Ve.y1,nt=je-Ve.width/2,ot=je+Ve.width/2;nt>We.y0&&ntpt.y0&&ht.y0pt.y0&&ht.y1pt.y1)&&ve(Ge,Ue,ze,De)})):(ot>We.y0&&otWe.y1)&&(Ue=ot-We.y0+10,We=ve(We,Ue,ze,De),Ie.nodes.forEach(function(Ge){k(Ge,He)!=k(We,He)&&Ge.column==We.column&&Ge.y0We.y1&&ve(Ge,Ue,ze,De)}))}})}})}function ve(Ie,ze,De,He){return Ie.y0+ze>=De&&Ie.y1+ze<=He&&(Ie.y0=Ie.y0+ze,Ie.y1=Ie.y1+ze,Ie.targetLinks.forEach(function(Ve){Ve.y1=Ve.y1+ze}),Ie.sourceLinks.forEach(function(Ve){Ve.y0=Ve.y0+ze})),Ie}function ye(Ie,ze,De,He){Ie.nodes.forEach(function(Ve){He&&Ve.y+(Ve.y1-Ve.y0)>ze&&(Ve.y=Ve.y-(Ve.y+(Ve.y1-Ve.y0)-ze));var $e=Ie.links.filter(function(Le){return k(Le.source,De)==k(Ve,De)}),Oe=$e.length;Oe>1&&$e.sort(function(Le,We){if(!Le.circular&&!We.circular){if(Le.target.column==We.target.column||!Se(Le,We))return Le.y1-We.y1;if(Le.target.column>We.target.column){var Ue=ce(We,Le);return Le.y1-Ue}if(We.target.column>Le.target.column)return ce(Le,We)-We.y1}return Le.circular&&!We.circular?Le.circularLinkType=="top"?-1:1:We.circular&&!Le.circular?We.circularLinkType=="top"?1:-1:Le.circular&&We.circular?Le.circularLinkType===We.circularLinkType&&Le.circularLinkType=="top"?Le.target.column===We.target.column?Le.target.y1-We.target.y1:We.target.column-Le.target.column:Le.circularLinkType===We.circularLinkType&&Le.circularLinkType=="bottom"?Le.target.column===We.target.column?We.target.y1-Le.target.y1:Le.target.column-We.target.column:Le.circularLinkType=="top"?-1:1:void 0});var ke=Ve.y0;$e.forEach(function(Le){Le.y0=ke+Le.width/2,ke+=Le.width}),$e.forEach(function(Le,We){if(Le.circularLinkType=="bottom"){for(var Ue=We+1,Ze=0;Ue1&&Ve.sort(function(ke,Le){if(!ke.circular&&!Le.circular){if(ke.source.column==Le.source.column||!Se(ke,Le))return ke.y0-Le.y0;if(Le.source.column0?"up":"down"}function Pe(Ie,ze){return k(Ie.source,ze)==k(Ie.target,ze)}},26800:function(d,l,n){n.r(l),n.d(l,{sankey:function(){return E},sankeyCenter:function(){return p},sankeyJustify:function(){return y},sankeyLeft:function(){return O},sankeyLinkHorizontal:function(){return k},sankeyRight:function(){return w}});var c=n(84706),b=n(34712);function i(I){return I.target.depth}function O(I){return I.depth}function w(I,z){return z-1-I.height}function y(I,z){return I.sourceLinks.length?I.depth:z-1}function p(I){return I.targetLinks.length?I.depth:I.sourceLinks.length?(0,c.SY)(I.sourceLinks,i)-1:0}function a(I){return function(){return I}}function u(I,z){return m(I.source,z.source)||I.index-z.index}function h(I,z){return m(I.target,z.target)||I.index-z.index}function m(I,z){return I.y0-z.y0}function v(I){return I.value}function _(I){return(I.y0+I.y1)/2}function S(I){return _(I.source)*I.value}function A(I){return _(I.target)*I.value}function x(I){return I.index}function R(I){return I.nodes}function M(I){return I.links}function T(I,z){var $=I.get(z);if(!$)throw new Error("missing: "+z);return $}function E(){var I=0,z=0,$=1,Q=1,j=24,U=8,X=x,te=y,W=R,K=M,oe=32;function q(){var ee={nodes:W.apply(null,arguments),links:K.apply(null,arguments)};return function(me){me.nodes.forEach(function(se,ae){se.index=ae,se.sourceLinks=[],se.targetLinks=[]});var he=(0,b.kH)(me.nodes,X);me.links.forEach(function(se,ae){se.index=ae;var ce=se.source,de=se.target;typeof ce!="object"&&(ce=se.source=T(he,ce)),typeof de!="object"&&(de=se.target=T(he,de)),ce.sourceLinks.push(se),de.targetLinks.push(se)})}(ee),function(me){me.nodes.forEach(function(he){he.value=Math.max((0,c.oh)(he.sourceLinks,v),(0,c.oh)(he.targetLinks,v))})}(ee),function(me){var he,se,ae;for(he=me.nodes,se=[],ae=0;he.length;++ae,he=se,se=[])he.forEach(function(de){de.depth=ae,de.sourceLinks.forEach(function(ve){se.indexOf(ve.target)<0&&se.push(ve.target)})});for(he=me.nodes,se=[],ae=0;he.length;++ae,he=se,se=[])he.forEach(function(de){de.height=ae,de.targetLinks.forEach(function(ve){se.indexOf(ve.source)<0&&se.push(ve.source)})});var ce=($-I-j)/(ae-1);me.nodes.forEach(function(de){de.x1=(de.x0=I+Math.max(0,Math.min(ae-1,Math.floor(te.call(null,de,ae))))*ce)+j})}(ee),function(me){var he=(0,b.UJ)().key(function(ye){return ye.x0}).sortKeys(c.XE).entries(me.nodes).map(function(ye){return ye.values});(function(){var ye=(0,c.kv)(he,function(Te){return Te.length}),_e=.6666666666666666*(Q-z)/(ye-1);U>_e&&(U=_e);var Se=(0,c.SY)(he,function(Te){return(Q-z-(Te.length-1)*U)/(0,c.oh)(Te,v)});he.forEach(function(Te){Te.forEach(function(Pe,Ie){Pe.y1=(Pe.y0=Ie)+Pe.value*Se})}),me.links.forEach(function(Te){Te.width=Te.value*Se})})(),ve();for(var se=1,ae=oe;ae>0;--ae)de(se*=.99),ve(),ce(se),ve();function ce(ye){he.forEach(function(_e){_e.forEach(function(Se){if(Se.targetLinks.length){var Te=((0,c.oh)(Se.targetLinks,S)/(0,c.oh)(Se.targetLinks,v)-_(Se))*ye;Se.y0+=Te,Se.y1+=Te}})})}function de(ye){he.slice().reverse().forEach(function(_e){_e.forEach(function(Se){if(Se.sourceLinks.length){var Te=((0,c.oh)(Se.sourceLinks,A)/(0,c.oh)(Se.sourceLinks,v)-_(Se))*ye;Se.y0+=Te,Se.y1+=Te}})})}function ve(){he.forEach(function(ye){var _e,Se,Te,Pe=z,Ie=ye.length;for(ye.sort(m),Te=0;Te0&&(_e.y0+=Se,_e.y1+=Se),Pe=_e.y1+U;if((Se=Pe-U-Q)>0)for(Pe=_e.y0-=Se,_e.y1-=Se,Te=Ie-2;Te>=0;--Te)(Se=(_e=ye[Te]).y1+U-Pe)>0&&(_e.y0-=Se,_e.y1-=Se),Pe=_e.y0})}}(ee),Y(ee),ee}function Y(ee){ee.nodes.forEach(function(me){me.sourceLinks.sort(h),me.targetLinks.sort(u)}),ee.nodes.forEach(function(me){var he=me.y0,se=he;me.sourceLinks.forEach(function(ae){ae.y0=he+ae.width/2,he+=ae.width}),me.targetLinks.forEach(function(ae){ae.y1=se+ae.width/2,se+=ae.width})})}return q.update=function(ee){return Y(ee),ee},q.nodeId=function(ee){return arguments.length?(X=typeof ee=="function"?ee:a(ee),q):X},q.nodeAlign=function(ee){return arguments.length?(te=typeof ee=="function"?ee:a(ee),q):te},q.nodeWidth=function(ee){return arguments.length?(j=+ee,q):j},q.nodePadding=function(ee){return arguments.length?(U=+ee,q):U},q.nodes=function(ee){return arguments.length?(W=typeof ee=="function"?ee:a(ee),q):W},q.links=function(ee){return arguments.length?(K=typeof ee=="function"?ee:a(ee),q):K},q.size=function(ee){return arguments.length?(I=z=0,$=+ee[0],Q=+ee[1],q):[$-I,Q-z]},q.extent=function(ee){return arguments.length?(I=+ee[0][0],$=+ee[1][0],z=+ee[0][1],Q=+ee[1][1],q):[[I,z],[$,Q]]},q.iterations=function(ee){return arguments.length?(oe=+ee,q):oe},q}var C=n(10132);function L(I){return[I.source.x1,I.y0]}function D(I){return[I.target.x0,I.y1]}function k(){return(0,C.ak)().source(L).target(D)}},33428:function(d,l,n){var c,b;(function(){var i={version:"3.8.0"},O=[].slice,w=function(V){return O.call(V)},y=self.document;function p(V){return V&&(V.ownerDocument||V.document||V).documentElement}function a(V){return V&&(V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView)}if(y)try{w(y.documentElement.childNodes)[0].nodeType}catch{w=function(ne){for(var ge=ne.length,xe=new Array(ge);ge--;)xe[ge]=ne[ge];return xe}}if(Date.now||(Date.now=function(){return+new Date}),y)try{y.createElement("DIV").style.setProperty("opacity",0,"")}catch{var u=this.Element.prototype,h=u.setAttribute,m=u.setAttributeNS,v=this.CSSStyleDeclaration.prototype,_=v.setProperty;u.setAttribute=function(ne,ge){h.call(this,ne,ge+"")},u.setAttributeNS=function(ne,ge,xe){m.call(this,ne,ge,xe+"")},v.setProperty=function(ne,ge,xe){_.call(this,ne,ge+"",xe)}}function S(V,ne){return Vne?1:V>=ne?0:NaN}function A(V){return V===null?NaN:+V}function x(V){return!isNaN(V)}function R(V){return{left:function(ne,ge,xe,Me){for(arguments.length<3&&(xe=0),arguments.length<4&&(Me=ne.length);xe>>1;V(ne[Fe],ge)<0?xe=Fe+1:Me=Fe}return xe},right:function(ne,ge,xe,Me){for(arguments.length<3&&(xe=0),arguments.length<4&&(Me=ne.length);xe>>1;V(ne[Fe],ge)>0?Me=Fe:xe=Fe+1}return xe}}}i.ascending=S,i.descending=function(V,ne){return neV?1:ne>=V?0:NaN},i.min=function(V,ne){var ge,xe,Me=-1,Fe=V.length;if(arguments.length===1){for(;++Me=xe){ge=xe;break}for(;++Mexe&&(ge=xe)}else{for(;++Me=xe){ge=xe;break}for(;++Mexe&&(ge=xe)}return ge},i.max=function(V,ne){var ge,xe,Me=-1,Fe=V.length;if(arguments.length===1){for(;++Me=xe){ge=xe;break}for(;++Mege&&(ge=xe)}else{for(;++Me=xe){ge=xe;break}for(;++Mege&&(ge=xe)}return ge},i.extent=function(V,ne){var ge,xe,Me,Fe=-1,Je=V.length;if(arguments.length===1){for(;++Fe=xe){ge=Me=xe;break}for(;++Fexe&&(ge=xe),Me=xe){ge=Me=xe;break}for(;++Fexe&&(ge=xe),Me1)return Je/(dt-1)},i.deviation=function(){var V=i.variance.apply(this,arguments);return V&&Math.sqrt(V)};var M=R(S);function T(V){return V.length}i.bisectLeft=M.left,i.bisect=i.bisectRight=M.right,i.bisector=function(V){return R(V.length===1?function(ne,ge){return S(V(ne),ge)}:V)},i.shuffle=function(V,ne,ge){(Fe=arguments.length)<3&&(ge=V.length,Fe<2&&(ne=0));for(var xe,Me,Fe=ge-ne;Fe;)Me=Math.random()*Fe--|0,xe=V[Fe+ne],V[Fe+ne]=V[Me+ne],V[Me+ne]=xe;return V},i.permute=function(V,ne){for(var ge=ne.length,xe=new Array(ge);ge--;)xe[ge]=V[ne[ge]];return xe},i.pairs=function(V){for(var ne=0,ge=V.length-1,xe=V[0],Me=new Array(ge<0?0:ge);ne=0;)for(ne=(xe=V[Me]).length;--ne>=0;)ge[--Je]=xe[ne];return ge};var E=Math.abs;function C(V,ne){for(var ge in ne)Object.defineProperty(V.prototype,ge,{value:ne[ge],enumerable:!1})}function L(){this._=Object.create(null)}i.range=function(V,ne,ge){if(arguments.length<3&&(ge=1,arguments.length<2&&(ne=V,V=0)),(ne-V)/ge==1/0)throw new Error("infinite range");var xe,Me=[],Fe=function(rt){for(var dt=1;rt*dt%1;)dt*=10;return dt}(E(ge)),Je=-1;if(V*=Fe,ne*=Fe,(ge*=Fe)<0)for(;(xe=V+ge*++Je)>ne;)Me.push(xe/Fe);else for(;(xe=V+ge*++Je)=xe.length)return ne?ne.call(ge,dt):V?dt.sort(V):dt;for(var Et,Vt,jt,Nt,cn=-1,sn=dt.length,xn=xe[mt++],pn=new L;++cn=xe.length)return rt;var mt=[],Et=Me[dt++];return rt.forEach(function(Vt,jt){mt.push({key:Vt,values:Je(jt,dt)})}),Et?mt.sort(function(Vt,jt){return Et(Vt.key,jt.key)}):mt}return ge.map=function(rt,dt){return Fe(dt,rt,0)},ge.entries=function(rt){return Je(Fe(i.map,rt,0),0)},ge.key=function(rt){return xe.push(rt),ge},ge.sortKeys=function(rt){return Me[xe.length-1]=rt,ge},ge.sortValues=function(rt){return V=rt,ge},ge.rollup=function(rt){return ne=rt,ge},ge},i.set=function(V){var ne=new te;if(V)for(var ge=0,xe=V.length;ge=0&&(xe=V.slice(ge+1),V=V.slice(0,ge)),V)return arguments.length<2?this[V].on(xe):this[V].on(xe,ne);if(arguments.length===2){if(ne==null)for(V in this)this.hasOwnProperty(V)&&this[V].on(xe,null);return this}},i.event=null,i.requote=function(V){return V.replace(ce,"\\$&")};var ce=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,de={}.__proto__?function(V,ne){V.__proto__=ne}:function(V,ne){for(var ge in ne)V[ge]=ne[ge]};function ve(V){return de(V,Te),V}var ye=function(V,ne){return ne.querySelector(V)},_e=function(V,ne){return ne.querySelectorAll(V)},Se=function(V,ne){var ge=V.matches||V[oe(V,"matchesSelector")];return Se=function(xe,Me){return ge.call(xe,Me)},Se(V,ne)};typeof Sizzle=="function"&&(ye=function(V,ne){return Sizzle(V,ne)[0]||null},_e=Sizzle,Se=Sizzle.matchesSelector),i.selection=function(){return i.select(y.documentElement)};var Te=i.selection.prototype=[];function Pe(V){return typeof V=="function"?V:function(){return ye(V,this)}}function Ie(V){return typeof V=="function"?V:function(){return _e(V,this)}}Te.select=function(V){var ne,ge,xe,Me,Fe=[];V=Pe(V);for(var Je=-1,rt=this.length;++Je=0&&(ge=V.slice(0,ne))!=="xmlns"&&(V=V.slice(ne+1)),De.hasOwnProperty(ge)?{space:De[ge],local:V}:V}},Te.attr=function(V,ne){if(arguments.length<2){if(typeof V=="string"){var ge=this.node();return(V=i.ns.qualify(V)).local?ge.getAttributeNS(V.space,V.local):ge.getAttribute(V)}for(ne in V)this.each(He(ne,V[ne]));return this}return this.each(He(V,ne))},Te.classed=function(V,ne){if(arguments.length<2){if(typeof V=="string"){var ge=this.node(),xe=(V=Oe(V)).length,Me=-1;if(ne=ge.classList){for(;++Me=0;)(ge=xe[Me])&&(Fe&&Fe!==ge.nextSibling&&Fe.parentNode.insertBefore(ge,Fe),Fe=ge);return this},Te.sort=function(V){V=Ne.apply(this,arguments);for(var ne=-1,ge=this.length;++ne0&&(V=V.slice(0,Me));var Je=ht.get(V);function rt(){var dt=this[xe];dt&&(this.removeEventListener(V,dt,dt.$),delete this[xe])}return Je&&(V=Je,Fe=wt),Me?ne?function(){var dt=Fe(ne,w(arguments));rt.call(this),this.addEventListener(V,this[xe]=dt,dt.$=ge),dt._=ne}:rt:ne?Y:function(){var dt,mt=new RegExp("^__on([^.]+)"+i.requote(V)+"$");for(var Et in this)if(dt=Et.match(mt)){var Vt=this[Et];this.removeEventListener(dt[1],Vt,Vt.$),delete this[Et]}}}i.selection.enter=nt,i.selection.enter.prototype=ot,ot.append=Te.append,ot.empty=Te.empty,ot.node=Te.node,ot.call=Te.call,ot.size=Te.size,ot.select=function(V){for(var ne,ge,xe,Me,Fe,Je=[],rt=-1,dt=this.length;++rt=xe&&(xe=Je+1);!(dt=mt[xe])&&++xe1?vt:V<-1?-vt:Math.asin(V)}function zt(V){return((V=Math.exp(V))+1/V)/2}var Rt=Math.SQRT2;i.interpolateZoom=function(V,ne){var ge,xe,Me=V[0],Fe=V[1],Je=V[2],rt=ne[0],dt=ne[1],mt=ne[2],Et=rt-Me,Vt=dt-Fe,jt=Et*Et+Vt*Vt;if(jt0&&(Hr=Hr.transition().duration(jt)),Hr.call(On.event)}function Pr(){Je&&Je.domain(Fe.range().map(function(Hr){return(Hr-mt.x)/mt.k}).map(Fe.invert)),dt&&dt.domain(rt.range().map(function(Hr){return(Hr-mt.y)/mt.k}).map(rt.invert))}function Zr(Hr){Nt++||Hr({type:"zoomstart"})}function Mo(Hr){Pr(),Hr({type:"zoom",scale:mt.k,translate:[mt.x,mt.y]})}function $o(Hr){--Nt||(Hr({type:"zoomend"}),ne=null)}function vo(){var Hr=this,Lo=Ln.of(Hr,arguments),ki=0,Io=i.select(a(Hr)).on(sn,function(){ki=1,rr(i.mouse(Hr),$i),Mo(Lo)}).on(xn,function(){Io.on(sn,null).on(xn,null),Ui(ki),$o(Lo)}),$i=An(i.mouse(Hr)),Ui=qt(Hr);au.call(Hr),Zr(Lo)}function zo(){var Hr,Lo=this,ki=Ln.of(Lo,arguments),Io={},$i=0,Ui=".zoom-"+i.event.changedTouches[0].identifier,ba="touchmove"+Ui,Pi="touchend"+Ui,ds=[],mr=i.select(Lo),bs=qt(Lo);function Pl(){var Pa=i.touches(Lo);return Hr=mt.k,Pa.forEach(function(Rs){Rs.identifier in Io&&(Io[Rs.identifier]=An(Rs))}),Pa}function Ys(){var Pa=i.event.target;i.select(Pa).on(ba,hl).on(Pi,hs),ds.push(Pa);for(var Rs=i.event.changedTouches,Ls=0,ol=Rs.length;Ls1){ec=Is[0];var Tc=Is[1],op=ec[0]-Tc[0],ip=ec[1]-Tc[1];$i=op*op+ip*ip}}function hl(){var Pa,Rs,Ls,ol,Is=i.touches(Lo);au.call(Lo);for(var Ds=0,ec=Is.length;Ds360?rt-=360:rt<0&&(rt+=360),rt<60?xe+(Me-xe)*rt/60:rt<180?Me:rt<240?xe+(Me-xe)*(240-rt)/60:xe}(Je))}return V=isNaN(V)?0:(V%=360)<0?V+360:V,ne=isNaN(ne)||ne<0?0:ne>1?1:ne,xe=2*(ge=ge<0?0:ge>1?1:ge)-(Me=ge<=.5?ge*(1+ne):ge+ne-ge*ne),new Sr(Fe(V+120),Fe(V),Fe(V-120))}function Qt(V,ne,ge){return this instanceof Qt?(this.h=+V,this.c=+ne,void(this.l=+ge)):arguments.length<2?V instanceof Qt?new Qt(V.h,V.c,V.l):function(xe,Me,Fe){return xe>0?new Qt(Math.atan2(Fe,Me)*lt,Math.sqrt(Me*Me+Fe*Fe),xe):new Qt(NaN,NaN,xe)}(V instanceof Kt?V.l:(V=Ir((V=i.rgb(V)).r,V.g,V.b)).l,V.a,V.b):new Qt(V,ne,ge)}Xt.brighter=function(V){return V=Math.pow(.7,arguments.length?V:1),new Zt(this.h,this.s,this.l/V)},Xt.darker=function(V){return V=Math.pow(.7,arguments.length?V:1),new Zt(this.h,this.s,V*this.l)},Xt.rgb=function(){return Yt(this.h,this.s,this.l)},i.hcl=Qt;var Pt=Qt.prototype=new xt;function tn(V,ne,ge){return isNaN(V)&&(V=0),isNaN(ne)&&(ne=0),new Kt(ge,Math.cos(V*=bt)*ne,Math.sin(V)*ne)}function Kt(V,ne,ge){return this instanceof Kt?(this.l=+V,this.a=+ne,void(this.b=+ge)):arguments.length<2?V instanceof Kt?new Kt(V.l,V.a,V.b):V instanceof Qt?tn(V.h,V.c,V.l):Ir((V=Sr(V)).r,V.g,V.b):new Kt(V,ne,ge)}Pt.brighter=function(V){return new Qt(this.h,this.c,Math.min(100,this.l+fn*(arguments.length?V:1)))},Pt.darker=function(V){return new Qt(this.h,this.c,Math.max(0,this.l-fn*(arguments.length?V:1)))},Pt.rgb=function(){return tn(this.h,this.c,this.l).rgb()},i.lab=Kt;var fn=18,dn=.95047,vn=1,Nn=1.08883,er=Kt.prototype=new xt;function En(V,ne,ge){var xe=(V+16)/116,Me=xe+ne/500,Fe=xe-ge/200;return new Sr(xr(3.2404542*(Me=In(Me)*dn)-1.5371385*(xe=In(xe)*vn)-.4985314*(Fe=In(Fe)*Nn)),xr(-.969266*Me+1.8760108*xe+.041556*Fe),xr(.0556434*Me-.2040259*xe+1.0572252*Fe))}function In(V){return V>.206893034?V*V*V:(V-.13793103448275862)/7.787037}function jn(V){return V>.008856?Math.pow(V,.3333333333333333):7.787037*V+.13793103448275862}function xr(V){return Math.round(255*(V<=.00304?12.92*V:1.055*Math.pow(V,.4166666666666667)-.055))}function Sr(V,ne,ge){return this instanceof Sr?(this.r=~~V,this.g=~~ne,void(this.b=~~ge)):arguments.length<2?V instanceof Sr?new Sr(V.r,V.g,V.b):Kn(""+V,Sr,Yt):new Sr(V,ne,ge)}function ar(V){return new Sr(V>>16,V>>8&255,255&V)}function Fn(V){return ar(V)+""}er.brighter=function(V){return new Kt(Math.min(100,this.l+fn*(arguments.length?V:1)),this.a,this.b)},er.darker=function(V){return new Kt(Math.max(0,this.l-fn*(arguments.length?V:1)),this.a,this.b)},er.rgb=function(){return En(this.l,this.a,this.b)},i.rgb=Sr;var ir=Sr.prototype=new xt;function Wn(V){return V<16?"0"+Math.max(0,V).toString(16):Math.min(255,V).toString(16)}function Kn(V,ne,ge){var xe,Me,Fe,Je=0,rt=0,dt=0;if(xe=/([a-z]+)\((.*)\)/.exec(V=V.toLowerCase()))switch(Me=xe[2].split(","),xe[1]){case"hsl":return ge(parseFloat(Me[0]),parseFloat(Me[1])/100,parseFloat(Me[2])/100);case"rgb":return ne(Fr(Me[0]),Fr(Me[1]),Fr(Me[2]))}return(Fe=Rr.get(V))?ne(Fe.r,Fe.g,Fe.b):(V==null||V.charAt(0)!=="#"||isNaN(Fe=parseInt(V.slice(1),16))||(V.length===4?(Je=(3840&Fe)>>4,Je|=Je>>4,rt=240&Fe,rt|=rt>>4,dt=15&Fe,dt|=dt<<4):V.length===7&&(Je=(16711680&Fe)>>16,rt=(65280&Fe)>>8,dt=255&Fe)),ne(Je,rt,dt))}function _r(V,ne,ge){var xe,Me,Fe=Math.min(V/=255,ne/=255,ge/=255),Je=Math.max(V,ne,ge),rt=Je-Fe,dt=(Je+Fe)/2;return rt?(Me=dt<.5?rt/(Je+Fe):rt/(2-Je-Fe),xe=V==Je?(ne-ge)/rt+(ne0&&dt<1?0:xe),new Zt(xe,Me,dt)}function Ir(V,ne,ge){var xe=jn((.4124564*(V=zr(V))+.3575761*(ne=zr(ne))+.1804375*(ge=zr(ge)))/dn),Me=jn((.2126729*V+.7151522*ne+.072175*ge)/vn);return Kt(116*Me-16,500*(xe-Me),200*(Me-jn((.0193339*V+.119192*ne+.9503041*ge)/Nn)))}function zr(V){return(V/=255)<=.04045?V/12.92:Math.pow((V+.055)/1.055,2.4)}function Fr(V){var ne=parseFloat(V);return V.charAt(V.length-1)==="%"?Math.round(2.55*ne):ne}ir.brighter=function(V){V=Math.pow(.7,arguments.length?V:1);var ne=this.r,ge=this.g,xe=this.b,Me=30;return ne||ge||xe?(ne&&ne=200&&Vt<300||Vt===304){try{Et=ge.call(Me,rt)}catch(jt){return void Fe.error.call(Me,jt)}Fe.load.call(Me,Et)}else Fe.error.call(Me,rt)}return self.XDomainRequest&&!("withCredentials"in rt)&&/^(http(s)?:)?\/\//.test(V)&&(rt=new XDomainRequest),"onload"in rt?rt.onload=rt.onerror=mt:rt.onreadystatechange=function(){rt.readyState>3&&mt()},rt.onprogress=function(Et){var Vt=i.event;i.event=Et;try{Fe.progress.call(Me,rt)}finally{i.event=Vt}},Me.header=function(Et,Vt){return Et=(Et+"").toLowerCase(),arguments.length<2?Je[Et]:(Vt==null?delete Je[Et]:Je[Et]=Vt+"",Me)},Me.mimeType=function(Et){return arguments.length?(ne=Et==null?null:Et+"",Me):ne},Me.responseType=function(Et){return arguments.length?(dt=Et,Me):dt},Me.response=function(Et){return ge=Et,Me},["get","post"].forEach(function(Et){Me[Et]=function(){return Me.send.apply(Me,[Et].concat(w(arguments)))}}),Me.send=function(Et,Vt,jt){if(arguments.length===2&&typeof Vt=="function"&&(jt=Vt,Vt=null),rt.open(Et,V,!0),ne==null||"accept"in Je||(Je.accept=ne+",*/*"),rt.setRequestHeader)for(var Nt in Je)rt.setRequestHeader(Nt,Je[Nt]);return ne!=null&&rt.overrideMimeType&&rt.overrideMimeType(ne),dt!=null&&(rt.responseType=dt),jt!=null&&Me.on("error",jt).on("load",function(cn){jt(null,cn)}),Fe.beforesend.call(Me,rt),rt.send(Vt??null),Me},Me.abort=function(){return rt.abort(),Me},i.rebind(Me,Fe,"on"),xe==null?Me:Me.get(function(Et){return Et.length===1?function(Vt,jt){Et(Vt==null?jt:null)}:Et}(xe))}Rr.forEach(function(V,ne){Rr.set(V,ar(ne))}),i.functor=$r,i.xhr=Kr(W),i.dsv=function(V,ne){var ge=new RegExp('["'+V+` ]`),xe=V.charCodeAt(0);function Me(mt,Et,Vt){arguments.length<3&&(Vt=Et,Et=null);var jt=Co(mt,ne,Et==null?Fe:Je(Et),Vt);return jt.row=function(Nt){return arguments.length?jt.response((Et=Nt)==null?Fe:Je(Nt)):Et},jt}function Fe(mt){return Me.parse(mt.responseText)}function Je(mt){return function(Et){return Me.parse(Et.responseText,mt)}}function rt(mt){return mt.map(dt).join(V)}function dt(mt){return ge.test(mt)?'"'+mt.replace(/\"/g,'""')+'"':mt}return Me.parse=function(mt,Et){var Vt;return Me.parseRows(mt,function(jt,Nt){if(Vt)return Vt(jt,Nt-1);var cn=function(sn){for(var xn={},pn=jt.length,Ln=0;Ln=xn)return cn;if(jt)return jt=!1,Nt;var Sn=pn;if(mt.charCodeAt(Sn)===34){for(var rr=Sn;rr++24?(isFinite(ne)&&(clearTimeout(li),li=setTimeout(br,ne)),go=0):(go=1,Pn(br))}function dr(){for(var V=Date.now(),ne=so;ne;)V>=ne.t&&ne.c(V-ne.t)&&(ne.c=null),ne=ne.n;return V}function Cr(){for(var V,ne=so,ge=1/0;ne;)ne.c?(ne.t1&&(ne=V[Fe[Je-2]],ge=V[Fe[Je-1]],xe=V[rt],(ge[0]-ne[0])*(xe[1]-ne[1])-(ge[1]-ne[1])*(xe[0]-ne[0])<=0);)--Je;Fe[Je++]=rt}return Fe.slice(0,Je)}function bo(V,ne){return V[0]-ne[0]||V[1]-ne[1]}i.timer=function(){Yn.apply(this,arguments)},i.timer.flush=function(){dr(),Cr()},i.round=function(V,ne){return ne?Math.round(V*(ne=Math.pow(10,ne)))/ne:Math.round(V)},i.geom={},i.geom.hull=function(V){var ne=io,ge=Qr;if(arguments.length)return xe(V);function xe(Me){if(Me.length<3)return[];var Fe,Je=$r(ne),rt=$r(ge),dt=Me.length,mt=[],Et=[];for(Fe=0;Fe=0;--Fe)sn.push(Me[mt[Vt[Fe]][2]]);for(Fe=+Nt;Fe_t)rt=rt.L;else{if(!((Me=Fe-_o(rt,Je))>_t)){xe>-_t?(ne=rt.P,ge=rt):Me>-_t?(ne=rt,ge=rt.N):ne=ge=rt;break}if(!rt.R){ne=rt;break}rt=rt.R}var dt=cr(V);if(gr.insert(ne,dt),ne||ge){if(ne===ge)return Go(ne),ge=cr(ne.site),gr.insert(dt,ge),dt.edge=ge.edge=Ao(ne.site,dt.site),co(ne),void co(ge);if(ge){Go(ne),Go(ge);var mt=ne.site,Et=mt.x,Vt=mt.y,jt=V.x-Et,Nt=V.y-Vt,cn=ge.site,sn=cn.x-Et,xn=cn.y-Vt,pn=2*(jt*xn-Nt*sn),Ln=jt*jt+Nt*Nt,On=sn*sn+xn*xn,An={x:(xn*Ln-Nt*On)/pn+Et,y:(jt*On-sn*Ln)/pn+Vt};oi(ge.edge,mt,cn,An),dt.edge=Ao(mt,V,null,An),ge.edge=Ao(V,cn,null,An),co(ne),co(ge)}else dt.edge=Ao(ne.site,dt.site)}}function to(V,ne){var ge=V.site,xe=ge.x,Me=ge.y,Fe=Me-ne;if(!Fe)return xe;var Je=V.P;if(!Je)return-1/0;var rt=(ge=Je.site).x,dt=ge.y,mt=dt-ne;if(!mt)return rt;var Et=rt-xe,Vt=1/Fe-1/mt,jt=Et/mt;return Vt?(-jt+Math.sqrt(jt*jt-2*Vt*(Et*Et/(-2*mt)-dt+mt/2+Me-Fe/2)))/Vt+xe:(xe+rt)/2}function _o(V,ne){var ge=V.N;if(ge)return to(ge,ne);var xe=V.site;return xe.y===ne?xe.x:1/0}function fr(V){this.site=V,this.edges=[]}function Eo(V,ne){return ne.angle-V.angle}function ao(){mo(this),this.x=this.y=this.arc=this.site=this.cy=null}function co(V){var ne=V.P,ge=V.N;if(ne&&ge){var xe=ne.site,Me=V.site,Fe=ge.site;if(xe!==Fe){var Je=Me.x,rt=Me.y,dt=xe.x-Je,mt=xe.y-rt,Et=Fe.x-Je,Vt=2*(dt*(xn=Fe.y-rt)-mt*Et);if(!(Vt>=-nn)){var jt=dt*dt+mt*mt,Nt=Et*Et+xn*xn,cn=(xn*jt-mt*Nt)/Vt,sn=(dt*Nt-Et*jt)/Vt,xn=sn+rt,pn=Hn.pop()||new ao;pn.arc=V,pn.site=Me,pn.x=cn+Je,pn.y=xn+Math.sqrt(cn*cn+sn*sn),pn.cy=xn,V.circle=pn;for(var Ln=null,On=nr._;On;)if(pn.y=rt)return;if(jt>cn){if(Fe){if(Fe.y>=mt)return}else Fe={x:xn,y:dt};ge={x:xn,y:mt}}else{if(Fe){if(Fe.y1)if(jt>cn){if(Fe){if(Fe.y>=mt)return}else Fe={x:(dt-Me)/xe,y:dt};ge={x:(mt-Me)/xe,y:mt}}else{if(Fe){if(Fe.y=rt)return}else Fe={x:Je,y:xe*Je+Me};ge={x:rt,y:xe*rt+Me}}else{if(Fe){if(Fe.x0)){if(pn/=Pr,Pr<0){if(pn0){if(pn>Dr)return;pn>rr&&(rr=pn)}if(pn=Vt-An,Pr||!(pn<0)){if(pn/=Pr,Pr<0){if(pn>Dr)return;pn>rr&&(rr=pn)}else if(Pr>0){if(pn0)){if(pn/=Zr,Zr<0){if(pn0){if(pn>Dr)return;pn>rr&&(rr=pn)}if(pn=jt-Sn,Zr||!(pn<0)){if(pn/=Zr,Zr<0){if(pn>Dr)return;pn>rr&&(rr=pn)}else if(Zr>0){if(pn0&&(xn.a={x:An+rr*Pr,y:Sn+rr*Zr}),Dr<1&&(xn.b={x:An+Dr*Pr,y:Sn+Dr*Zr}),xn}}}}}),sn=Nt.length;sn--;)(!po(dt=Nt[sn],rt)||!cn(dt)||E(dt.a.x-dt.b.x)<_t&&E(dt.a.y-dt.b.y)<_t)&&(dt.a=dt.b=null,Nt.splice(sn,1))}(ne),function(rt){for(var dt,mt,Et,Vt,jt,Nt,cn,sn,xn,pn,Ln=rt[0][0],On=rt[1][0],An=rt[0][1],Sn=rt[1][1],rr=yr,Dr=rr.length;Dr--;)if((jt=rr[Dr])&&jt.prepare())for(sn=(cn=jt.edges).length,Nt=0;Nt_t||E(Vt-mt)>_t)&&(cn.splice(Nt,0,new ko((Pr=jt.site,Zr=pn,Mo=E(Et-Ln)<_t&&Sn-Vt>_t?{x:Ln,y:E(dt-Ln)<_t?mt:Sn}:E(Vt-Sn)<_t&&On-Et>_t?{x:E(mt-Sn)<_t?dt:On,y:Sn}:E(Et-On)<_t&&Vt-An>_t?{x:On,y:E(dt-On)<_t?mt:An}:E(Vt-An)<_t&&Et-Ln>_t?{x:E(mt-An)<_t?dt:Ln,y:An}:null,$o=void 0,($o=new qo(Pr,null)).a=Zr,$o.b=Mo,Zn.push($o),$o),jt.site,null)),++sn);var Pr,Zr,Mo,$o}(ne));var Je={cells:yr,edges:Zn};return gr=nr=Zn=yr=null,Je}function wc(V,ne){return ne.y-V.y||ne.x-V.x}fr.prototype.prepare=function(){for(var V,ne=this.edges,ge=ne.length;ge--;)(V=ne[ge].edge).b&&V.a||ne.splice(ge,1);return ne.sort(Eo),ne.length},ko.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},ra.prototype={insert:function(V,ne){var ge,xe,Me;if(V){if(ne.P=V,ne.N=V.N,V.N&&(V.N.P=ne),V.N=ne,V.R){for(V=V.R;V.L;)V=V.L;V.L=ne}else V.R=ne;ge=V}else this._?(V=Na(this._),ne.P=null,ne.N=V,V.P=V.L=ne,ge=V):(ne.P=ne.N=null,this._=ne,ge=null);for(ne.L=ne.R=null,ne.U=ge,ne.C=!0,V=ne;ge&&ge.C;)ge===(xe=ge.U).L?(Me=xe.R)&&Me.C?(ge.C=Me.C=!1,xe.C=!0,V=xe):(V===ge.R&&(Aa(this,ge),ge=(V=ge).U),ge.C=!1,xe.C=!0,Xl(this,xe)):(Me=xe.L)&&Me.C?(ge.C=Me.C=!1,xe.C=!0,V=xe):(V===ge.L&&(Xl(this,ge),ge=(V=ge).U),ge.C=!1,xe.C=!0,Aa(this,xe)),ge=V.U;this._.C=!1},remove:function(V){V.N&&(V.N.P=V.P),V.P&&(V.P.N=V.N),V.N=V.P=null;var ne,ge,xe,Me=V.U,Fe=V.L,Je=V.R;if(ge=Fe?Je?Na(Je):Fe:Je,Me?Me.L===V?Me.L=ge:Me.R=ge:this._=ge,Fe&&Je?(xe=ge.C,ge.C=V.C,ge.L=Fe,Fe.U=ge,ge!==Je?(Me=ge.U,ge.U=V.U,V=ge.R,Me.L=V,ge.R=Je,Je.U=ge):(ge.U=Me,Me=ge,V=ge.R)):(xe=V.C,V=ge),V&&(V.U=Me),!xe)if(V&&V.C)V.C=!1;else{do{if(V===this._)break;if(V===Me.L){if((ne=Me.R).C&&(ne.C=!1,Me.C=!0,Aa(this,Me),ne=Me.R),ne.L&&ne.L.C||ne.R&&ne.R.C){ne.R&&ne.R.C||(ne.L.C=!1,ne.C=!0,Xl(this,ne),ne=Me.R),ne.C=Me.C,Me.C=ne.R.C=!1,Aa(this,Me),V=this._;break}}else if((ne=Me.L).C&&(ne.C=!1,Me.C=!0,Xl(this,Me),ne=Me.L),ne.L&&ne.L.C||ne.R&&ne.R.C){ne.L&&ne.L.C||(ne.R.C=!1,ne.C=!0,Aa(this,ne),ne=Me.L),ne.C=Me.C,Me.C=ne.L.C=!1,Xl(this,Me),V=this._;break}ne.C=!0,V=Me,Me=Me.U}while(!V.C);V&&(V.C=!1)}}},i.geom.voronoi=function(V){var ne=io,ge=Qr,xe=ne,Me=ge,Fe=ma;if(V)return Je(V);function Je(dt){var mt=new Array(dt.length),Et=Fe[0][0],Vt=Fe[0][1],jt=Fe[1][0],Nt=Fe[1][1];return cs(rt(dt),Fe).cells.forEach(function(cn,sn){var xn=cn.edges,pn=cn.site;(mt[sn]=xn.length?xn.map(function(Ln){var On=Ln.start();return[On.x,On.y]}):pn.x>=Et&&pn.x<=jt&&pn.y>=Vt&&pn.y<=Nt?[[Et,Nt],[jt,Nt],[jt,Vt],[Et,Vt]]:[]).point=dt[sn]}),mt}function rt(dt){return dt.map(function(mt,Et){return{x:Math.round(xe(mt,Et)/_t)*_t,y:Math.round(Me(mt,Et)/_t)*_t,i:Et}})}return Je.links=function(dt){return cs(rt(dt)).edges.filter(function(mt){return mt.l&&mt.r}).map(function(mt){return{source:dt[mt.l.i],target:dt[mt.r.i]}})},Je.triangles=function(dt){var mt=[];return cs(rt(dt)).cells.forEach(function(Et,Vt){for(var jt,Nt,cn,sn,xn=Et.site,pn=Et.edges.sort(Eo),Ln=-1,On=pn.length,An=pn[On-1].edge,Sn=An.l===xn?An.r:An.l;++LnFe&&(Me=ne.slice(Fe,Me),rt[Je]?rt[Je]+=Me:rt[++Je]=Me),(ge=ge[0])===(xe=xe[0])?rt[Je]?rt[Je]+=xe:rt[++Je]=xe:(rt[++Je]=null,dt.push({i:Je,x:Nf(ge,xe)})),Fe=gm.lastIndex;return Fepn&&(pn=Et.x),Et.y>Ln&&(Ln=Et.y),Vt.push(Et.x),jt.push(Et.y);else for(Nt=0;Ntpn&&(pn=Sn),rr>Ln&&(Ln=rr),Vt.push(Sn),jt.push(rr)}var Dr=pn-sn,Pr=Ln-xn;function Zr(vo,zo,yi,Si,Hr,Lo,ki,Io){if(!isNaN(yi)&&!isNaN(Si))if(vo.leaf){var $i=vo.x,Ui=vo.y;if($i!=null)if(E($i-yi)+E(Ui-Si)<.01)Mo(vo,zo,yi,Si,Hr,Lo,ki,Io);else{var ba=vo.point;vo.x=vo.y=vo.point=null,Mo(vo,ba,$i,Ui,Hr,Lo,ki,Io),Mo(vo,zo,yi,Si,Hr,Lo,ki,Io)}else vo.x=yi,vo.y=Si,vo.point=zo}else Mo(vo,zo,yi,Si,Hr,Lo,ki,Io)}function Mo(vo,zo,yi,Si,Hr,Lo,ki,Io){var $i=.5*(Hr+ki),Ui=.5*(Lo+Io),ba=yi>=$i,Pi=Si>=Ui,fs=Pi<<1|ba;vo.leaf=!1,ba?Hr=$i:ki=$i,Pi?Lo=Ui:Io=Ui,Zr(vo=vo.nodes[fs]||(vo.nodes[fs]={leaf:!0,nodes:[],point:null,x:null,y:null}),zo,yi,Si,Hr,Lo,ki,Io)}Dr>Pr?Ln=xn+Dr:pn=sn+Pr;var $o={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(vo){Zr($o,vo,+On(vo,++Nt),+An(vo,Nt),sn,xn,pn,Ln)}};if($o.visit=function(vo){Yd(vo,$o,sn,xn,pn,Ln)},$o.find=function(vo){return function(zo,yi,Si,Hr,Lo,ki,Io){var $i,Ui=1/0;return function ba(Pi,fs,mr,ys,Pl){if(!(fs>ki||mr>Io||ys=Is)<<1|yi>=ol,ec=Ds+4;Ds=0&&!(ge=i.interpolators[xe](V,ne)););return ge}function pc(V,ne){var ge,xe=[],Me=[],Fe=V.length,Je=ne.length,rt=Math.min(V.length,ne.length);for(ge=0;ge=1)return 1;var ne=V*V,ge=ne*V;return 4*(V<.5?ge:3*(V-ne)+ge-.75)}function Ss(V){return 1-Math.cos(V*vt)}function $f(V){return Math.pow(2,10*(V-1))}function vf(V){return 1-Math.sqrt(1-V*V)}function Ju(V){return V<.36363636363636365?7.5625*V*V:V<.7272727272727273?7.5625*(V-=.5454545454545454)*V+.75:V<.9090909090909091?7.5625*(V-=.8181818181818182)*V+.9375:7.5625*(V-=.9545454545454546)*V+.984375}function $h(V,ne){return ne-=V,function(ge){return Math.round(V+ne*ge)}}function Es(V){var ne,ge,xe,Me=[V.a,V.b],Fe=[V.c,V.d],Je=uc(Me),rt=ef(Me,Fe),dt=uc(((ne=Fe)[0]+=(xe=-rt)*(ge=Me)[0],ne[1]+=xe*ge[1],ne))||0;Me[0]*Fe[1]=0?V.slice(0,ge):V,Me=ge>=0?V.slice(ge+1):"in";return xe=yl.get(xe)||Cu,Me=sa.get(Me)||W,ne=Me(xe.apply(null,O.call(arguments,1))),function(Fe){return Fe<=0?0:Fe>=1?1:ne(Fe)}},i.interpolateHcl=function(V,ne){V=i.hcl(V),ne=i.hcl(ne);var ge=V.h,xe=V.c,Me=V.l,Fe=ne.h-ge,Je=ne.c-xe,rt=ne.l-Me;return isNaN(Je)&&(Je=0,xe=isNaN(xe)?ne.c:xe),isNaN(Fe)?(Fe=0,ge=isNaN(ge)?ne.h:ge):Fe>180?Fe-=360:Fe<-180&&(Fe+=360),function(dt){return tn(ge+Fe*dt,xe+Je*dt,Me+rt*dt)+""}},i.interpolateHsl=function(V,ne){V=i.hsl(V),ne=i.hsl(ne);var ge=V.h,xe=V.s,Me=V.l,Fe=ne.h-ge,Je=ne.s-xe,rt=ne.l-Me;return isNaN(Je)&&(Je=0,xe=isNaN(xe)?ne.s:xe),isNaN(Fe)?(Fe=0,ge=isNaN(ge)?ne.h:ge):Fe>180?Fe-=360:Fe<-180&&(Fe+=360),function(dt){return Yt(ge+Fe*dt,xe+Je*dt,Me+rt*dt)+""}},i.interpolateLab=function(V,ne){V=i.lab(V),ne=i.lab(ne);var ge=V.l,xe=V.a,Me=V.b,Fe=ne.l-ge,Je=ne.a-xe,rt=ne.b-Me;return function(dt){return En(ge+Fe*dt,xe+Je*dt,Me+rt*dt)+""}},i.interpolateRound=$h,i.transform=function(V){var ne=y.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(ge){if(ge!=null){ne.setAttribute("transform",ge);var xe=ne.transform.baseVal.consolidate()}return new Es(xe?xe.matrix:ad)})(V)},Es.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ad={a:1,b:0,c:0,d:1,e:0,f:0};function Vf(V){return V.length?V.pop()+",":""}function gc(V,ne){var ge=[],xe=[];return V=i.transform(V),ne=i.transform(ne),function(Me,Fe,Je,rt){if(Me[0]!==Fe[0]||Me[1]!==Fe[1]){var dt=Je.push("translate(",null,",",null,")");rt.push({i:dt-4,x:Nf(Me[0],Fe[0])},{i:dt-2,x:Nf(Me[1],Fe[1])})}else(Fe[0]||Fe[1])&&Je.push("translate("+Fe+")")}(V.translate,ne.translate,ge,xe),function(Me,Fe,Je,rt){Me!==Fe?(Me-Fe>180?Fe+=360:Fe-Me>180&&(Me+=360),rt.push({i:Je.push(Vf(Je)+"rotate(",null,")")-2,x:Nf(Me,Fe)})):Fe&&Je.push(Vf(Je)+"rotate("+Fe+")")}(V.rotate,ne.rotate,ge,xe),function(Me,Fe,Je,rt){Me!==Fe?rt.push({i:Je.push(Vf(Je)+"skewX(",null,")")-2,x:Nf(Me,Fe)}):Fe&&Je.push(Vf(Je)+"skewX("+Fe+")")}(V.skew,ne.skew,ge,xe),function(Me,Fe,Je,rt){if(Me[0]!==Fe[0]||Me[1]!==Fe[1]){var dt=Je.push(Vf(Je)+"scale(",null,",",null,")");rt.push({i:dt-4,x:Nf(Me[0],Fe[0])},{i:dt-2,x:Nf(Me[1],Fe[1])})}else Fe[0]===1&&Fe[1]===1||Je.push(Vf(Je)+"scale("+Fe+")")}(V.scale,ne.scale,ge,xe),V=ne=null,function(Me){for(var Fe,Je=-1,rt=xe.length;++Je0?ge=An:(V.c=null,V.t=NaN,V=null,rt.end({type:"end",alpha:ge=0})):An>0&&(rt.start({type:"start",alpha:ge=An}),V=Yn(Je.tick)),Je):ge},Je.start=function(){var An,Sn,rr,Dr=xn.length,Pr=pn.length,Zr=dt[0],Mo=dt[1];for(An=0;An=0;)ge.push(Me[xe])}function rs(V,ne){for(var ge=[V],xe=[];(V=ge.pop())!=null;)if(xe.push(V),(Fe=V.children)&&(Me=Fe.length))for(var Me,Fe,Je=-1;++Je=0;)Je.push(Et=mt[dt]),Et.parent=Fe,Et.depth=Fe.depth+1;ge&&(Fe.value=0),Fe.children=mt}else ge&&(Fe.value=+ge.call(xe,Fe,Fe.depth)||0),delete Fe.children;return rs(Me,function(Vt){var jt,Nt;V&&(jt=Vt.children)&&jt.sort(V),ge&&(Nt=Vt.parent)&&(Nt.value+=Vt.value)}),rt}return xe.sort=function(Me){return arguments.length?(V=Me,xe):V},xe.children=function(Me){return arguments.length?(ne=Me,xe):ne},xe.value=function(Me){return arguments.length?(ge=Me,xe):ge},xe.revalue=function(Me){return ge&&(gh(Me,function(Fe){Fe.children&&(Fe.value=0)}),rs(Me,function(Fe){var Je;Fe.children||(Fe.value=+ge.call(xe,Fe,Fe.depth)||0),(Je=Fe.parent)&&(Je.value+=Fe.value)})),Me},xe},i.layout.partition=function(){var V=i.layout.hierarchy(),ne=[1,1];function ge(Fe,Je,rt,dt){var mt=Fe.children;if(Fe.x=Je,Fe.y=Fe.depth*dt,Fe.dx=rt,Fe.dy=dt,mt&&(Et=mt.length)){var Et,Vt,jt,Nt=-1;for(rt=Fe.value?rt/Fe.value:0;++Ntrt&&(rt=xe),Je.push(xe)}for(ge=0;geMe&&(xe=ge,Me=ne);return xe}function rf(V){return V.reduce(Bc,0)}function Bc(V,ne){return V+ne[1]}function ym(V,ne){return Mu(V,Math.ceil(Math.log(ne.length)/Math.LN2+1))}function Mu(V,ne){for(var ge=-1,xe=+V[0],Me=(V[1]-xe)/ne,Fe=[];++ge<=ne;)Fe[ge]=Me*ge+xe;return Fe}function Hu(V){return[i.min(V),i.max(V)]}function Lp(V,ne){return V.value-ne.value}function Uh(V,ne){var ge=V._pack_next;V._pack_next=ne,ne._pack_prev=V,ne._pack_next=ge,ge._pack_prev=ne}function jh(V,ne){V._pack_next=ne,ne._pack_prev=V}function Eu(V,ne){var ge=ne.x-V.x,xe=ne.y-V.y,Me=V.r+ne.r;return .999*Me*Me>ge*ge+xe*xe}function ud(V){if((ne=V.children)&&(dt=ne.length)){var ne,ge,xe,Me,Fe,Je,rt,dt,mt=1/0,Et=-1/0,Vt=1/0,jt=-1/0;if(ne.forEach(vh),(ge=ne[0]).x=-ge.r,ge.y=0,On(ge),dt>1&&((xe=ne[1]).x=xe.r,xe.y=0,On(xe),dt>2))for(ks(ge,xe,Me=ne[2]),On(Me),Uh(ge,Me),ge._pack_prev=Me,Uh(Me,xe),xe=ge._pack_next,Fe=3;Fe0)for(Je=-1;++Je=Vt[0]&&dt<=Vt[1]&&((rt=mt[i.bisect(jt,dt,1,cn)-1]).y+=sn,rt.push(Fe[Je]));return mt}return Me.value=function(Fe){return arguments.length?(ne=Fe,Me):ne},Me.range=function(Fe){return arguments.length?(ge=$r(Fe),Me):ge},Me.bins=function(Fe){return arguments.length?(xe=typeof Fe=="number"?function(Je){return Mu(Je,Fe)}:$r(Fe),Me):xe},Me.frequency=function(Fe){return arguments.length?(V=!!Fe,Me):V},Me},i.layout.pack=function(){var V,ne=i.layout.hierarchy().sort(Lp),ge=0,xe=[1,1];function Me(Fe,Je){var rt=ne.call(this,Fe,Je),dt=rt[0],mt=xe[0],Et=xe[1],Vt=V==null?Math.sqrt:typeof V=="function"?V:function(){return V};if(dt.x=dt.y=0,rs(dt,function(Nt){Nt.r=+Vt(Nt.value)}),rs(dt,ud),ge){var jt=ge*(V?1:Math.max(2*dt.r/mt,2*dt.r/Et))/2;rs(dt,function(Nt){Nt.r+=jt}),rs(dt,ud),rs(dt,function(Nt){Nt.r-=jt})}return Oc(dt,mt/2,Et/2,V?1:1/Math.max(2*dt.r/mt,2*dt.r/Et)),rt}return Me.size=function(Fe){return arguments.length?(xe=Fe,Me):xe},Me.radius=function(Fe){return arguments.length?(V=Fe==null||typeof Fe=="function"?Fe:+Fe,Me):V},Me.padding=function(Fe){return arguments.length?(ge=+Fe,Me):ge},nf(Me,ne)},i.layout.tree=function(){var V=i.layout.hierarchy().sort(null).value(null),ne=Uf,ge=[1,1],xe=null;function Me(dt,mt){var Et=V.call(this,dt,mt),Vt=Et[0],jt=function(On){for(var An,Sn={A:null,children:[On]},rr=[Sn];(An=rr.pop())!=null;)for(var Dr,Pr=An.children,Zr=0,Mo=Pr.length;Zrcn.x&&(cn=On),On.depth>sn.depth&&(sn=On)});var xn=ne(Nt,cn)/2-Nt.x,pn=ge[0]/(cn.x+ne(cn,Nt)/2+xn),Ln=ge[1]/(sn.depth||1);gh(Vt,function(On){On.x=(On.x+xn)*pn,On.y=On.depth*Ln})}return Et}function Fe(dt){var mt=dt.children,Et=dt.parent.children,Vt=dt.i?Et[dt.i-1]:null;if(mt.length){(function(Nt){for(var cn,sn=0,xn=0,pn=Nt.children,Ln=pn.length;--Ln>=0;)(cn=pn[Ln]).z+=sn,cn.m+=sn,sn+=cn.s+(xn+=cn.c)})(dt);var jt=(mt[0].z+mt[mt.length-1].z)/2;Vt?(dt.z=Vt.z+ne(dt._,Vt._),dt.m=dt.z-jt):dt.z=jt}else Vt&&(dt.z=Vt.z+ne(dt._,Vt._));dt.parent.A=function(Nt,cn,sn){if(cn){for(var xn,pn=Nt,Ln=Nt,On=cn,An=pn.parent.children[0],Sn=pn.m,rr=Ln.m,Dr=On.m,Pr=An.m;On=Hl(On),pn=zl(pn),On&&pn;)An=zl(An),(Ln=Hl(Ln)).a=Nt,(xn=On.z+Dr-pn.z-Sn+ne(On._,pn._))>0&&(Ts($s(On,Nt,sn),Nt,xn),Sn+=xn,rr+=xn),Dr+=On.m,Sn+=pn.m,Pr+=An.m,rr+=Ln.m;On&&!Hl(Ln)&&(Ln.t=On,Ln.m+=Dr-rr),pn&&!zl(An)&&(An.t=pn,An.m+=Sn-Pr,sn=Nt)}return sn}(dt,Vt,dt.parent.A||Et[0])}function Je(dt){dt._.x=dt.z+dt.parent.m,dt.m+=dt.parent.m}function rt(dt){dt.x*=ge[0],dt.y=dt.depth*ge[1]}return Me.separation=function(dt){return arguments.length?(ne=dt,Me):ne},Me.size=function(dt){return arguments.length?(xe=(ge=dt)==null?rt:null,Me):xe?null:ge},Me.nodeSize=function(dt){return arguments.length?(xe=(ge=dt)==null?null:rt,Me):xe?ge:null},nf(Me,V)},i.layout.cluster=function(){var V=i.layout.hierarchy().sort(null).value(null),ne=Uf,ge=[1,1],xe=!1;function Me(Fe,Je){var rt,dt=V.call(this,Fe,Je),mt=dt[0],Et=0;rs(mt,function(sn){var xn=sn.children;xn&&xn.length?(sn.x=function(pn){return pn.reduce(function(Ln,On){return Ln+On.x},0)/pn.length}(xn),sn.y=function(pn){return 1+i.max(pn,function(Ln){return Ln.y})}(xn)):(sn.x=rt?Et+=ne(sn,rt):0,sn.y=0,rt=sn)});var Vt=Zu(mt),jt=yh(mt),Nt=Vt.x-ne(Vt,jt)/2,cn=jt.x+ne(jt,Vt)/2;return rs(mt,xe?function(sn){sn.x=(sn.x-mt.x)*ge[0],sn.y=(mt.y-sn.y)*ge[1]}:function(sn){sn.x=(sn.x-Nt)/(cn-Nt)*ge[0],sn.y=(1-(mt.y?sn.y/mt.y:1))*ge[1]}),dt}return Me.separation=function(Fe){return arguments.length?(ne=Fe,Me):ne},Me.size=function(Fe){return arguments.length?(xe=(ge=Fe)==null,Me):xe?null:ge},Me.nodeSize=function(Fe){return arguments.length?(xe=(ge=Fe)!=null,Me):xe?ge:null},nf(Me,V)},i.layout.treemap=function(){var V,ne=i.layout.hierarchy(),ge=Math.round,xe=[1,1],Me=null,Fe=of,Je=!1,rt="squarify",dt=.5*(1+Math.sqrt(5));function mt(sn,xn){for(var pn,Ln,On=-1,An=sn.length;++On0;)Sn.push(pn=rr[On-1]),Sn.area+=pn.area,rt!=="squarify"||(Ln=jt(Sn,Pr))<=Dr?(rr.pop(),Dr=Ln):(Sn.area-=Sn.pop().area,Nt(Sn,Pr,An,!1),Pr=Math.min(An.dx,An.dy),Sn.length=Sn.area=0,Dr=1/0);Sn.length&&(Nt(Sn,Pr,An,!0),Sn.length=Sn.area=0),xn.forEach(Et)}}function Vt(sn){var xn=sn.children;if(xn&&xn.length){var pn,Ln=Fe(sn),On=xn.slice(),An=[];for(mt(On,Ln.dx*Ln.dy/sn.value),An.area=0;pn=On.pop();)An.push(pn),An.area+=pn.area,pn.z!=null&&(Nt(An,pn.z?Ln.dx:Ln.dy,Ln,!On.length),An.length=An.area=0);xn.forEach(Vt)}}function jt(sn,xn){for(var pn,Ln=sn.area,On=0,An=1/0,Sn=-1,rr=sn.length;++SnOn&&(On=pn));return xn*=xn,(Ln*=Ln)?Math.max(xn*On*dt/Ln,Ln/(xn*An*dt)):1/0}function Nt(sn,xn,pn,Ln){var On,An=-1,Sn=sn.length,rr=pn.x,Dr=pn.y,Pr=xn?ge(sn.area/xn):0;if(xn==pn.dx){for((Ln||Pr>pn.dy)&&(Pr=pn.dy);++Anpn.dx)&&(Pr=pn.dx);++An1);return V+ne*xe*Math.sqrt(-2*Math.log(Fe)/Fe)}},logNormal:function(){var V=i.random.normal.apply(i,arguments);return function(){return Math.exp(V())}},bates:function(V){var ne=i.random.irwinHall(V);return function(){return ne()/V}},irwinHall:function(V){return function(){for(var ne=0,ge=0;ge2?np:Kd,mt=xe?Mp:sd;return Me=dt(V,ne,mt,ge),Fe=dt(ne,V,mt,Gl),rt}function rt(dt){return Me(dt)}return rt.invert=function(dt){return Fe(dt)},rt.domain=function(dt){return arguments.length?(V=dt.map(Number),Je()):V},rt.range=function(dt){return arguments.length?(ne=dt,Je()):ne},rt.rangeRound=function(dt){return rt.range(dt).interpolate($h)},rt.clamp=function(dt){return arguments.length?(xe=dt,Je()):xe},rt.interpolate=function(dt){return arguments.length?(ge=dt,Je()):ge},rt.ticks=function(dt){return Wc(V,dt)},rt.tickFormat=function(dt,mt){return d3_scale_linearTickFormat(V,dt,mt)},rt.nice=function(dt){return bl(V,dt),Je()},rt.copy=function(){return ms(V,ne,ge,xe)},Je()}function Ya(V,ne){return i.rebind(V,ne,"range","rangeRound","interpolate","clamp")}function bl(V,ne){return bh(V,Jd(fl(V,ne)[2])),bh(V,Jd(fl(V,ne)[2])),V}function fl(V,ne){ne==null&&(ne=10);var ge=Ip(V),xe=ge[1]-ge[0],Me=Math.pow(10,Math.floor(Math.log(xe/ne)/Math.LN10)),Fe=ne/xe*Me;return Fe<=.15?Me*=10:Fe<=.35?Me*=5:Fe<=.75&&(Me*=2),ge[0]=Math.ceil(ge[0]/Me)*Me,ge[1]=Math.floor(ge[1]/Me)*Me+.5*Me,ge[2]=Me,ge}function Wc(V,ne){return i.range.apply(i,fl(V,ne))}function xl(V,ne,ge,xe){function Me(rt){return(ge?Math.log(rt<0?0:rt):-Math.log(rt>0?0:-rt))/Math.log(ne)}function Fe(rt){return ge?Math.pow(ne,rt):-Math.pow(ne,-rt)}function Je(rt){return V(Me(rt))}return Je.invert=function(rt){return Fe(V.invert(rt))},Je.domain=function(rt){return arguments.length?(ge=rt[0]>=0,V.domain((xe=rt.map(Number)).map(Me)),Je):xe},Je.base=function(rt){return arguments.length?(ne=+rt,V.domain(xe.map(Me)),Je):ne},Je.nice=function(){var rt=bh(xe.map(Me),ge?Math:xi);return V.domain(rt),xe=rt.map(Fe),Je},Je.ticks=function(){var rt=Ip(xe),dt=[],mt=rt[0],Et=rt[1],Vt=Math.floor(Me(mt)),jt=Math.ceil(Me(Et)),Nt=ne%1?2:ne;if(isFinite(jt-Vt)){if(ge){for(;Vt0;cn--)dt.push(Fe(Vt)*cn);for(Vt=0;dt[Vt]Et;jt--);dt=dt.slice(Vt,jt)}return dt},Je.copy=function(){return xl(V.copy(),ne,ge,xe)},Ya(Je,V)}i.scale.linear=function(){return ms([0,1],[0,1],Gl,!1)},i.scale.log=function(){return xl(i.scale.linear().domain([0,1]),10,!0,[1,10])};var xi={floor:function(V){return-Math.ceil(-V)},ceil:function(V){return-Math.floor(-V)}};function pu(V,ne,ge){var xe=xh(ne),Me=xh(1/ne);function Fe(Je){return V(xe(Je))}return Fe.invert=function(Je){return Me(V.invert(Je))},Fe.domain=function(Je){return arguments.length?(V.domain((ge=Je.map(Number)).map(xe)),Fe):ge},Fe.ticks=function(Je){return Wc(ge,Je)},Fe.tickFormat=function(Je,rt){return d3_scale_linearTickFormat(ge,Je,rt)},Fe.nice=function(Je){return Fe.domain(bl(ge,Je))},Fe.exponent=function(Je){return arguments.length?(xe=xh(ne=Je),Me=xh(1/ne),V.domain(ge.map(xe)),Fe):ne},Fe.copy=function(){return pu(V.copy(),ne,ge)},Ya(Fe,V)}function xh(V){return function(ne){return ne<0?-Math.pow(-ne,V):Math.pow(ne,V)}}function js(V,ne){var ge,xe,Me;function Fe(rt){return xe[((ge.get(rt)||(ne.t==="range"?ge.set(rt,V.push(rt)):NaN))-1)%xe.length]}function Je(rt,dt){return i.range(V.length).map(function(mt){return rt+dt*mt})}return Fe.domain=function(rt){if(!arguments.length)return V;V=[],ge=new L;for(var dt,mt=-1,Et=rt.length;++mt0?ge[Fe-1]:V[0],Fejt?0:1;if(Et=mn)return dt(Et,cn)+(mt?dt(mt,1-cn):"")+"Z";var sn,xn,pn,Ln,On,An,Sn,rr,Dr,Pr,Zr,Mo,$o=0,vo=0,zo=[];if((Ln=(+Je.apply(this,arguments)||0)/2)&&(pn=xe===vc?Math.sqrt(mt*mt+Et*Et):+xe.apply(this,arguments),cn||(vo*=-1),Et&&(vo=yt(pn/Et*Math.sin(Ln))),mt&&($o=yt(pn/mt*Math.sin(Ln)))),Et){On=Et*Math.cos(Vt+vo),An=Et*Math.sin(Vt+vo),Sn=Et*Math.cos(jt-vo),rr=Et*Math.sin(jt-vo);var yi=Math.abs(jt-Vt-2*vo)<=gn?0:1;if(vo&&Ps(On,An,Sn,rr)===cn^yi){var Si=(Vt+jt)/2;On=Et*Math.cos(Si),An=Et*Math.sin(Si),Sn=rr=null}}else On=An=0;if(mt){Dr=mt*Math.cos(jt-$o),Pr=mt*Math.sin(jt-$o),Zr=mt*Math.cos(Vt+$o),Mo=mt*Math.sin(Vt+$o);var Hr=Math.abs(Vt-jt+2*$o)<=gn?0:1;if($o&&Ps(Dr,Pr,Zr,Mo)===1-cn^Hr){var Lo=(Vt+jt)/2;Dr=mt*Math.cos(Lo),Pr=mt*Math.sin(Lo),Zr=Mo=null}}else Dr=Pr=0;if(Nt>_t&&(sn=Math.min(Math.abs(Et-mt)/2,+ge.apply(this,arguments)))>.001){xn=mt0?0:1}function Sc(V,ne,ge,xe,Me){var Fe=V[0]-ne[0],Je=V[1]-ne[1],rt=(Me?xe:-xe)/Math.sqrt(Fe*Fe+Je*Je),dt=rt*Je,mt=-rt*Fe,Et=V[0]+dt,Vt=V[1]+mt,jt=ne[0]+dt,Nt=ne[1]+mt,cn=(Et+jt)/2,sn=(Vt+Nt)/2,xn=jt-Et,pn=Nt-Vt,Ln=xn*xn+pn*pn,On=ge-xe,An=Et*Nt-jt*Vt,Sn=(pn<0?-1:1)*Math.sqrt(Math.max(0,On*On*Ln-An*An)),rr=(An*pn-xn*Sn)/Ln,Dr=(-An*xn-pn*Sn)/Ln,Pr=(An*pn+xn*Sn)/Ln,Zr=(-An*xn+pn*Sn)/Ln,Mo=rr-cn,$o=Dr-sn,vo=Pr-cn,zo=Zr-sn;return Mo*Mo+$o*$o>vo*vo+zo*zo&&(rr=Pr,Dr=Zr),[[rr-dt,Dr-mt],[rr*ge/On,Dr*ge/On]]}function tl(){return!0}function mu(V){var ne=io,ge=Qr,xe=tl,Me=ja,Fe=Me.key,Je=.7;function rt(dt){var mt,Et=[],Vt=[],jt=-1,Nt=dt.length,cn=$r(ne),sn=$r(ge);function xn(){Et.push("M",Me(V(Vt),Je))}for(;++jt1&&Me.push("H",xe[0]),Me.join("")},"step-before":Rd,"step-after":Ld,basis:Ka,"basis-open":function(V){if(V.length<4)return ja(V);for(var ne,ge=[],xe=-1,Me=V.length,Fe=[0],Je=[0];++xe<3;)ne=V[xe],Fe.push(ne[0]),Je.push(ne[1]);for(ge.push(Xi(yu,Fe)+","+Xi(yu,Je)),--xe;++xe9&&(Fe=3*ge/Math.sqrt(Fe),rt[dt]=Fe*xe,rt[dt+1]=Fe*Me);for(dt=-1;++dt<=mt;)Fe=(ne[Math.min(mt,dt+1)][0]-ne[Math.max(0,dt-1)][0])/(6*(1+rt[dt]*rt[dt])),Je.push([Fe||0,rt[dt]*Fe||0]);return Je}(V))}});function ja(V){return V.length>1?V.join("L"):V+"Z"}function vu(V){return V.join("L")+"Z"}function Rd(V){for(var ne=0,ge=V.length,xe=V[0],Me=[xe[0],",",xe[1]];++ne1){rt=ne[1],Fe=V[dt],dt++,xe+="C"+(Me[0]+Je[0])+","+(Me[1]+Je[1])+","+(Fe[0]-rt[0])+","+(Fe[1]-rt[1])+","+Fe[0]+","+Fe[1];for(var mt=2;mtgn)+",1 "+Et}function dt(mt,Et,Vt,jt){return"Q 0,0 "+jt}return Fe.radius=function(mt){return arguments.length?(ge=$r(mt),Fe):ge},Fe.source=function(mt){return arguments.length?(V=$r(mt),Fe):V},Fe.target=function(mt){return arguments.length?(ne=$r(mt),Fe):ne},Fe.startAngle=function(mt){return arguments.length?(xe=$r(mt),Fe):xe},Fe.endAngle=function(mt){return arguments.length?(Me=$r(mt),Fe):Me},Fe},i.svg.diagonal=function(){var V=Qf,ne=fd,ge=_h;function xe(Me,Fe){var Je=V.call(this,Me,Fe),rt=ne.call(this,Me,Fe),dt=(Je.y+rt.y)/2,mt=[Je,{x:Je.x,y:dt},{x:rt.x,y:dt},rt];return"M"+(mt=mt.map(ge))[0]+"C"+mt[1]+" "+mt[2]+" "+mt[3]}return xe.source=function(Me){return arguments.length?(V=$r(Me),xe):V},xe.target=function(Me){return arguments.length?(ne=$r(Me),xe):ne},xe.projection=function(Me){return arguments.length?(ge=Me,xe):ge},xe},i.svg.diagonal.radial=function(){var V=i.svg.diagonal(),ne=_h,ge=V.projection;return V.projection=function(xe){return arguments.length?ge(function(Me){return function(){var Fe=Me.apply(this,arguments),Je=Fe[0],rt=Fe[1]-vt;return[Je*Math.cos(rt),Je*Math.sin(rt)]}}(ne=xe)):ne},V},i.svg.symbol=function(){var V=dd,ne=Gc;function ge(xe,Me){return(Dd.get(V.call(this,xe,Me))||rl)(ne.call(this,xe,Me))}return ge.type=function(xe){return arguments.length?(V=$r(xe),ge):V},ge.size=function(xe){return arguments.length?(ne=$r(xe),ge):ne},ge};var Dd=i.map({circle:rl,cross:function(V){var ne=Math.sqrt(V/5)/2;return"M"+-3*ne+","+-ne+"H"+-ne+"V"+-3*ne+"H"+ne+"V"+-ne+"H"+3*ne+"V"+ne+"H"+ne+"V"+3*ne+"H"+-ne+"V"+ne+"H"+-3*ne+"Z"},diamond:function(V){var ne=Math.sqrt(V/(2*fa)),ge=ne*fa;return"M0,"+-ne+"L"+ge+",0 0,"+ne+" "+-ge+",0Z"},square:function(V){var ne=Math.sqrt(V)/2;return"M"+-ne+","+-ne+"L"+ne+","+-ne+" "+ne+","+ne+" "+-ne+","+ne+"Z"},"triangle-down":function(V){var ne=Math.sqrt(V/Vi),ge=ne*Vi/2;return"M0,"+ge+"L"+ne+","+-ge+" "+-ne+","+-ge+"Z"},"triangle-up":function(V){var ne=Math.sqrt(V/Vi),ge=ne*Vi/2;return"M0,"+-ge+"L"+ne+","+ge+" "+-ne+","+ge+"Z"}});i.svg.symbolTypes=Dd.keys();var Vi=Math.sqrt(3),fa=Math.tan(30*bt);Te.transition=function(V){for(var ne,ge,xe=Jl||++kc,Me=El(V),Fe=[],Je=Bd||{time:Date.now(),ease:mc,delay:0,duration:250},rt=-1,dt=this.length;++rt0;)mt[--pn].call(V,xn);if(sn>=1)return Vt.event&&Vt.event.end.call(V,V.__data__,ne),--Et.count?delete Et[xe]:delete V[ge],1}Vt||(Fe=Me.time,Je=Yn(function(cn){var sn=Vt.delay;if(Je.t=sn+Fe,sn<=cn)return jt(cn-sn);Je.c=jt},0,Fe),Vt=Et[xe]={tween:new L,time:Fe,timer:Je,delay:Me.delay,duration:Me.duration,ease:Me.ease,index:ne},Me=null,++Et.count)}Qs.call=Te.call,Qs.empty=Te.empty,Qs.node=Te.node,Qs.size=Te.size,i.transition=function(V,ne){return V&&V.transition?Jl?V.transition(ne):V:i.selection().transition(V)},i.transition.prototype=Qs,Qs.select=function(V){var ne,ge,xe,Me=this.id,Fe=this.namespace,Je=[];V=Pe(V);for(var rt=-1,dt=this.length;++rtrect,.s>rect").attr("width",Fe[1]-Fe[0])}function Nt(sn){sn.select(".extent").attr("y",Je[0]),sn.selectAll(".extent,.e>rect,.w>rect").attr("height",Je[1]-Je[0])}function cn(){var sn,xn,pn=this,Ln=i.select(i.event.target),On=ge.of(pn,arguments),An=i.select(pn),Sn=Ln.datum(),rr=!/^(n|s)$/.test(Sn)&&xe,Dr=!/^(e|w)$/.test(Sn)&&Me,Pr=Ln.classed("extent"),Zr=qt(pn),Mo=i.mouse(pn),$o=i.select(a(pn)).on("keydown.brush",function(){i.event.keyCode==32&&(Pr||(sn=null,Mo[0]-=Fe[1],Mo[1]-=Je[1],Pr=2),he())}).on("keyup.brush",function(){i.event.keyCode==32&&Pr==2&&(Mo[0]+=Fe[1],Mo[1]+=Je[1],Pr=0,he())});if(i.event.changedTouches?$o.on("touchmove.brush",yi).on("touchend.brush",Hr):$o.on("mousemove.brush",yi).on("mouseup.brush",Hr),An.interrupt().selectAll("*").interrupt(),Pr)Mo[0]=Fe[0]-Mo[0],Mo[1]=Je[0]-Mo[1];else if(Sn){var vo=+/w$/.test(Sn),zo=+/^n/.test(Sn);xn=[Fe[1-vo]-Mo[0],Je[1-zo]-Mo[1]],Mo[0]=Fe[vo],Mo[1]=Je[zo]}else i.event.altKey&&(sn=Mo.slice());function yi(){var Lo=i.mouse(pn),ki=!1;xn&&(Lo[0]+=xn[0],Lo[1]+=xn[1]),Pr||(i.event.altKey?(sn||(sn=[(Fe[0]+Fe[1])/2,(Je[0]+Je[1])/2]),Mo[0]=Fe[+(Lo[0](Ae=1))return Ae;for(;feet?fe=Qe:Ae=Qe,Qe=.5*(Ae-fe)+fe}return Qe},p.prototype.solve=function(N,G){return this.sampleCurveY(this.solveCurveX(N,G))};var a=u;function u(N,G){this.x=N,this.y=G}u.prototype={clone:function(){return new u(this.x,this.y)},add:function(N){return this.clone()._add(N)},sub:function(N){return this.clone()._sub(N)},multByPoint:function(N){return this.clone()._multByPoint(N)},divByPoint:function(N){return this.clone()._divByPoint(N)},mult:function(N){return this.clone()._mult(N)},div:function(N){return this.clone()._div(N)},rotate:function(N){return this.clone()._rotate(N)},rotateAround:function(N,G){return this.clone()._rotateAround(N,G)},matMult:function(N){return this.clone()._matMult(N)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(N){return this.x===N.x&&this.y===N.y},dist:function(N){return Math.sqrt(this.distSqr(N))},distSqr:function(N){var G=N.x-this.x,fe=N.y-this.y;return G*G+fe*fe},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(N){return Math.atan2(this.y-N.y,this.x-N.x)},angleWith:function(N){return this.angleWithSep(N.x,N.y)},angleWithSep:function(N,G){return Math.atan2(this.x*G-this.y*N,this.x*N+this.y*G)},_matMult:function(N){var G=N[0]*this.x+N[1]*this.y,fe=N[2]*this.x+N[3]*this.y;return this.x=G,this.y=fe,this},_add:function(N){return this.x+=N.x,this.y+=N.y,this},_sub:function(N){return this.x-=N.x,this.y-=N.y,this},_mult:function(N){return this.x*=N,this.y*=N,this},_div:function(N){return this.x/=N,this.y/=N,this},_multByPoint:function(N){return this.x*=N.x,this.y*=N.y,this},_divByPoint:function(N){return this.x/=N.x,this.y/=N.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var N=this.y;return this.y=this.x,this.x=-N,this},_rotate:function(N){var G=Math.cos(N),fe=Math.sin(N),Ae=G*this.x-fe*this.y,Qe=fe*this.x+G*this.y;return this.x=Ae,this.y=Qe,this},_rotateAround:function(N,G){var fe=Math.cos(N),Ae=Math.sin(N),Qe=G.x+fe*(this.x-G.x)-Ae*(this.y-G.y),et=G.y+Ae*(this.x-G.x)+fe*(this.y-G.y);return this.x=Qe,this.y=et,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(N){return N instanceof u?N:Array.isArray(N)?new u(N[0],N[1]):N};var h=typeof self<"u"?self:{},m=Math.pow(2,53)-1;function v(N,G,fe,Ae){var Qe=new y(N,G,fe,Ae);return function(et){return Qe.solve(et)}}var _=v(.25,.1,.25,1);function S(N,G,fe){return Math.min(fe,Math.max(G,N))}function A(N,G,fe){var Ae=fe-G,Qe=((N-G)%Ae+Ae)%Ae+G;return Qe===G?fe:Qe}function x(N){for(var G=[],fe=arguments.length-1;fe-- >0;)G[fe]=arguments[fe+1];for(var Ae=0,Qe=G;Ae>G/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,N)}()}function E(N){return!!N&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(N)}function C(N,G){N.forEach(function(fe){G[fe]&&(G[fe]=G[fe].bind(G))})}function L(N,G){return N.indexOf(G,N.length-G.length)!==-1}function D(N,G,fe){var Ae={};for(var Qe in N)Ae[Qe]=G.call(fe||this,N[Qe],Qe,N);return Ae}function k(N,G,fe){var Ae={};for(var Qe in N)G.call(fe||this,N[Qe],Qe,N)&&(Ae[Qe]=N[Qe]);return Ae}function I(N){return Array.isArray(N)?N.map(I):typeof N=="object"&&N?D(N,I):N}var z={};function $(N){z[N]||(typeof console<"u"&&console.warn(N),z[N]=!0)}function Q(N,G,fe){return(fe.y-N.y)*(G.x-N.x)>(G.y-N.y)*(fe.x-N.x)}function j(N){for(var G=0,fe=0,Ae=N.length,Qe=Ae-1,et=void 0,ut=void 0;fe@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(Ae,Qe,et,ut){var Tt=et||ut;return G[Qe]=!Tt||Tt.toLowerCase(),""}),G["max-age"]){var fe=parseInt(G["max-age"],10);isNaN(fe)?delete G["max-age"]:G["max-age"]=fe}return G}var te=null;function W(N){if(te==null){var G=N.navigator?N.navigator.userAgent:null;te=!!N.safari||!(!G||!(/\b(iPad|iPhone|iPod)\b/.test(G)||G.match("Safari")&&!G.match("Chrome")))}return te}function K(N){try{var G=h[N];return G.setItem("_mapbox_test_",1),G.removeItem("_mapbox_test_"),!0}catch{return!1}}var oe,q,Y,ee,me=h.performance&&h.performance.now?h.performance.now.bind(h.performance):Date.now.bind(Date),he=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame,se=h.cancelAnimationFrame||h.mozCancelAnimationFrame||h.webkitCancelAnimationFrame||h.msCancelAnimationFrame,ae={now:me,frame:function(N){var G=he(N);return{cancel:function(){return se(G)}}},getImageData:function(N,G){G===void 0&&(G=0);var fe=h.document.createElement("canvas"),Ae=fe.getContext("2d");if(!Ae)throw new Error("failed to create canvas 2d context");return fe.width=N.width,fe.height=N.height,Ae.drawImage(N,0,0,N.width,N.height),Ae.getImageData(-G,-G,N.width+2*G,N.height+2*G)},resolveURL:function(N){return oe||(oe=h.document.createElement("a")),oe.href=N,oe.href},hardwareConcurrency:h.navigator&&h.navigator.hardwareConcurrency||4,get devicePixelRatio(){return h.devicePixelRatio},get prefersReducedMotion(){return!!h.matchMedia&&(q==null&&(q=h.matchMedia("(prefers-reduced-motion: reduce)")),q.matches)}},ce={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},de={supported:!1,testSupport:function(N){!ve&&ee&&(ye?_e(N):Y=N)}},ve=!1,ye=!1;function _e(N){var G=N.createTexture();N.bindTexture(N.TEXTURE_2D,G);try{if(N.texImage2D(N.TEXTURE_2D,0,N.RGBA,N.RGBA,N.UNSIGNED_BYTE,ee),N.isContextLost())return;de.supported=!0}catch{}N.deleteTexture(G),ve=!0}h.document&&((ee=h.document.createElement("img")).onload=function(){Y&&_e(Y),Y=null,ye=!0},ee.onerror=function(){ve=!0,Y=null},ee.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Se="01",Te=function(N,G){this._transformRequestFn=N,this._customAccessToken=G,this._createSkuToken()};function Pe(N){return N.indexOf("mapbox:")===0}Te.prototype._createSkuToken=function(){var N=function(){for(var G="",fe=0;fe<10;fe++)G+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Se,G].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=N.token,this._skuTokenExpiresAt=N.tokenExpiresAt},Te.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Te.prototype.transformRequest=function(N,G){return this._transformRequestFn&&this._transformRequestFn(N,G)||{url:N}},Te.prototype.normalizeStyleURL=function(N,G){if(!Pe(N))return N;var fe=He(N);return fe.path="/styles/v1"+fe.path,this._makeAPIURL(fe,this._customAccessToken||G)},Te.prototype.normalizeGlyphsURL=function(N,G){if(!Pe(N))return N;var fe=He(N);return fe.path="/fonts/v1"+fe.path,this._makeAPIURL(fe,this._customAccessToken||G)},Te.prototype.normalizeSourceURL=function(N,G){if(!Pe(N))return N;var fe=He(N);return fe.path="/v4/"+fe.authority+".json",fe.params.push("secure"),this._makeAPIURL(fe,this._customAccessToken||G)},Te.prototype.normalizeSpriteURL=function(N,G,fe,Ae){var Qe=He(N);return Pe(N)?(Qe.path="/styles/v1"+Qe.path+"/sprite"+G+fe,this._makeAPIURL(Qe,this._customAccessToken||Ae)):(Qe.path+=""+G+fe,Ve(Qe))},Te.prototype.normalizeTileURL=function(N,G){if(this._isSkuTokenExpired()&&this._createSkuToken(),N&&!Pe(N))return N;var fe=He(N),Ae=ae.devicePixelRatio>=2||G===512?"@2x":"",Qe=de.supported?".webp":"$1";fe.path=fe.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+Ae+Qe),fe.path=fe.path.replace(/^.+\/v4\//,"/"),fe.path="/v4"+fe.path;var et=this._customAccessToken||function(ut){for(var Tt=0,Bt=ut;Tt=0&&N.params.splice(Qe,1)}if(Ae.path!=="/"&&(N.path=""+Ae.path+N.path),!ce.REQUIRE_ACCESS_TOKEN)return Ve(N);if(!(G=G||ce.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+fe);if(G[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+fe);return N.params=N.params.filter(function(et){return et.indexOf("access_token")===-1}),N.params.push("access_token="+G),Ve(N)};var Ie=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function ze(N){return Ie.test(N)}var De=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function He(N){var G=N.match(De);if(!G)throw new Error("Unable to parse URL object");return{protocol:G[1],authority:G[2],path:G[3]||"/",params:G[4]?G[4].split("&"):[]}}function Ve(N){var G=N.params.length?"?"+N.params.join("&"):"";return N.protocol+"://"+N.authority+N.path+G}var $e="mapbox.eventData";function Oe(N){if(!N)return null;var G,fe=N.split(".");if(!fe||fe.length!==3)return null;try{return JSON.parse((G=fe[1],decodeURIComponent(h.atob(G).split("").map(function(Ae){return"%"+("00"+Ae.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch{return null}}var ke=function(N){this.type=N,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};ke.prototype.getStorageKey=function(N){var G,fe,Ae=Oe(ce.ACCESS_TOKEN);return G=Ae&&Ae.u?(fe=Ae.u,h.btoa(encodeURIComponent(fe).replace(/%([0-9A-F]{2})/g,function(Qe,et){return String.fromCharCode(+("0x"+et))}))):ce.ACCESS_TOKEN||"",N?$e+"."+N+":"+G:$e+":"+G},ke.prototype.fetchEventData=function(){var N=K("localStorage"),G=this.getStorageKey(),fe=this.getStorageKey("uuid");if(N)try{var Ae=h.localStorage.getItem(G);Ae&&(this.eventData=JSON.parse(Ae));var Qe=h.localStorage.getItem(fe);Qe&&(this.anonId=Qe)}catch{$("Unable to read from LocalStorage")}},ke.prototype.saveEventData=function(){var N=K("localStorage"),G=this.getStorageKey(),fe=this.getStorageKey("uuid");if(N)try{h.localStorage.setItem(fe,this.anonId),Object.keys(this.eventData).length>=1&&h.localStorage.setItem(G,JSON.stringify(this.eventData))}catch{$("Unable to write to LocalStorage")}},ke.prototype.processRequests=function(N){},ke.prototype.postEvent=function(N,G,fe,Ae){var Qe=this;if(ce.EVENTS_URL){var et=He(ce.EVENTS_URL);et.params.push("access_token="+(Ae||ce.ACCESS_TOKEN||""));var ut={event:this.type,created:new Date(N).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:w,skuId:Se,userId:this.anonId},Tt=G?x(ut,G):ut,Bt={url:Ve(et),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Tt])};this.pendingRequest=mn(Bt,function(rn){Qe.pendingRequest=null,fe(rn),Qe.saveEventData(),Qe.processRequests(Ae)})}},ke.prototype.queueRequest=function(N,G){this.queue.push(N),this.processRequests(G)};var Le,We,Ue=function(N){function G(){N.call(this,"map.load"),this.success={},this.skuToken=""}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.postMapLoadEvent=function(fe,Ae,Qe,et){this.skuToken=Qe,(ce.EVENTS_URL&&et||ce.ACCESS_TOKEN&&Array.isArray(fe)&&fe.some(function(ut){return Pe(ut)||ze(ut)}))&&this.queueRequest({id:Ae,timestamp:Date.now()},et)},G.prototype.processRequests=function(fe){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){var Qe=this.queue.shift(),et=Qe.id,ut=Qe.timestamp;et&&this.success[et]||(this.anonId||this.fetchEventData(),E(this.anonId)||(this.anonId=T()),this.postEvent(ut,{skuToken:this.skuToken},function(Tt){Tt||et&&(Ae.success[et]=!0)},fe))}},G}(ke),Ze=function(N){function G(fe){N.call(this,"appUserTurnstile"),this._customAccessToken=fe}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.postTurnstileEvent=function(fe,Ae){ce.EVENTS_URL&&ce.ACCESS_TOKEN&&Array.isArray(fe)&&fe.some(function(Qe){return Pe(Qe)||ze(Qe)})&&this.queueRequest(Date.now(),Ae)},G.prototype.processRequests=function(fe){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var Qe=Oe(ce.ACCESS_TOKEN),et=Qe?Qe.u:ce.ACCESS_TOKEN,ut=et!==this.eventData.tokenU;E(this.anonId)||(this.anonId=T(),ut=!0);var Tt=this.queue.shift();if(this.eventData.lastSuccess){var Bt=new Date(this.eventData.lastSuccess),rn=new Date(Tt),an=(Tt-this.eventData.lastSuccess)/864e5;ut=ut||an>=1||an<-1||Bt.getDate()!==rn.getDate()}else ut=!0;if(!ut)return this.processRequests();this.postEvent(Tt,{"enabled.telemetry":!1},function(_n){_n||(Ae.eventData.lastSuccess=Tt,Ae.eventData.tokenU=et)},fe)}},G}(ke),Xe=new Ze,tt=Xe.postTurnstileEvent.bind(Xe),Ee=new Ue,Ne=Ee.postMapLoadEvent.bind(Ee),je="mapbox-tiles",nt=500,ot=50,Ge=42e4;function ht(){h.caches&&!Le&&(Le=h.caches.open(je))}function pt(N,G,fe){if(ht(),Le){var Ae={status:G.status,statusText:G.statusText,headers:new h.Headers};G.headers.forEach(function(et,ut){return Ae.headers.set(ut,et)});var Qe=X(G.headers.get("Cache-Control")||"");Qe["no-store"]||(Qe["max-age"]&&Ae.headers.set("Expires",new Date(fe+1e3*Qe["max-age"]).toUTCString()),new Date(Ae.headers.get("Expires")).getTime()-feDate.now()&&!Bt["no-cache"]}(Qe);Ae.delete(fe),et&&Ae.put(fe,Qe.clone()),G(null,Qe,et)}).catch(G)}).catch(G)}var It,qt=1/0;function en(){return It==null&&(It=h.OffscreenCanvas&&new h.OffscreenCanvas(1,1).getContext("2d")&&typeof h.createImageBitmap=="function"),It}var Gt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(Gt);var Ct=function(N){function G(fe,Ae,Qe){Ae===401&&ze(Qe)&&(fe+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),N.call(this,fe),this.status=Ae,this.url=Qe,this.name=this.constructor.name,this.message=fe}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},G}(Error),_t=U()?function(){return self.worker&&self.worker.referrer}:function(){return(h.location.protocol==="blob:"?h.parent:h).location.href};function nn(N,G){var fe,Ae=new h.AbortController,Qe=new h.Request(N.url,{method:N.method||"GET",body:N.body,credentials:N.credentials,headers:N.headers,referrer:_t(),signal:Ae.signal}),et=!1,ut=!1,Tt=(fe=Qe.url).indexOf("sku=")>0&&ze(fe);N.type==="json"&&Qe.headers.set("Accept","application/json");var Bt=function(an,_n,Dn){if(!ut){if(an&&an.message!=="SecurityError"&&$(an),_n&&Dn)return rn(_n);var Cn=Date.now();h.fetch(Qe).then(function(Jn){if(Jn.ok){var lr=Tt?Jn.clone():null;return rn(Jn,lr,Cn)}return G(new Ct(Jn.statusText,Jn.status,N.url))}).catch(function(Jn){Jn.code!==20&&G(new Error(Jn.message))})}},rn=function(an,_n,Dn){(N.type==="arrayBuffer"?an.arrayBuffer():N.type==="json"?an.json():an.text()).then(function(Cn){ut||(_n&&Dn&&pt(Qe,_n,Dn),et=!0,G(null,Cn,an.headers.get("Cache-Control"),an.headers.get("Expires")))}).catch(function(Cn){ut||G(new Error(Cn.message))})};return Tt?Dt(Qe,Bt):Bt(null,null),{cancel:function(){ut=!0,et||Ae.abort()}}}var gn=function(N,G){if(fe=N.url,!(/^file:/.test(fe)||/^file:/.test(_t())&&!/^\w+:/.test(fe))){if(h.fetch&&h.Request&&h.AbortController&&h.Request.prototype.hasOwnProperty("signal"))return nn(N,G);if(U()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",N,G,void 0,!0)}var fe;return function(Ae,Qe){var et=new h.XMLHttpRequest;for(var ut in et.open(Ae.method||"GET",Ae.url,!0),Ae.type==="arrayBuffer"&&(et.responseType="arraybuffer"),Ae.headers)et.setRequestHeader(ut,Ae.headers[ut]);return Ae.type==="json"&&(et.responseType="text",et.setRequestHeader("Accept","application/json")),et.withCredentials=Ae.credentials==="include",et.onerror=function(){Qe(new Error(et.statusText))},et.onload=function(){if((et.status>=200&&et.status<300||et.status===0)&&et.response!==null){var Tt=et.response;if(Ae.type==="json")try{Tt=JSON.parse(et.response)}catch(Bt){return Qe(Bt)}Qe(null,Tt,et.getResponseHeader("Cache-Control"),et.getResponseHeader("Expires"))}else Qe(new Ct(et.statusText,et.status,Ae.url))},et.send(Ae.body),{cancel:function(){return et.abort()}}}(N,G)},bn=function(N,G){return gn(x(N,{type:"arrayBuffer"}),G)},mn=function(N,G){return gn(x(N,{method:"POST"}),G)},vt,bt,lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";vt=[],bt=0;var yt=function(N,G){if(de.supported&&(N.headers||(N.headers={}),N.headers.accept="image/webp,*/*"),bt>=ce.MAX_PARALLEL_IMAGE_REQUESTS){var fe={requestParameters:N,callback:G,cancelled:!1,cancel:function(){this.cancelled=!0}};return vt.push(fe),fe}bt++;var Ae=!1,Qe=function(){if(!Ae)for(Ae=!0,bt--;vt.length&&bt0||this._oneTimeListeners&&this._oneTimeListeners[N]&&this._oneTimeListeners[N].length>0||this._eventedParent&&this._eventedParent.listens(N)},Lt.prototype.setEventedParent=function(N,G){return this._eventedParent=N,this._eventedParentData=G,this};var xt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Ht=function(N,G,fe,Ae){this.message=(N?N+": ":"")+fe,Ae&&(this.identifier=Ae),G!=null&&G.__line__&&(this.line=G.__line__)};function Xt(N){var G=N.key,fe=N.value;return fe?[new Ht(G,fe,"constants have been deprecated as of v8")]:[]}function Yt(N){for(var G=[],fe=arguments.length-1;fe-- >0;)G[fe]=arguments[fe+1];for(var Ae=0,Qe=G;Ae":N.itemType.kind==="value"?"array":"array<"+G+">"}return N.kind}var ir=[fn,dn,vn,Nn,er,xr,En,ar(In),Sr];function Wn(N,G){if(G.kind==="error")return null;if(N.kind==="array"){if(G.kind==="array"&&(G.N===0&&G.itemType.kind==="value"||!Wn(N.itemType,G.itemType))&&(typeof N.N!="number"||N.N===G.N))return null}else{if(N.kind===G.kind)return null;if(N.kind==="value"){for(var fe=0,Ae=ir;fe255?255:Bt}function Qe(Bt){return Bt<0?0:Bt>1?1:Bt}function et(Bt){return Bt[Bt.length-1]==="%"?Ae(parseFloat(Bt)/100*255):Ae(parseInt(Bt))}function ut(Bt){return Bt[Bt.length-1]==="%"?Qe(parseFloat(Bt)/100):Qe(parseFloat(Bt))}function Tt(Bt,rn,an){return an<0?an+=1:an>1&&(an-=1),6*an<1?Bt+(rn-Bt)*an*6:2*an<1?rn:3*an<2?Bt+(rn-Bt)*(2/3-an)*6:Bt}try{G.parseCSSColor=function(Bt){var rn,an=Bt.replace(/ /g,"").toLowerCase();if(an in fe)return fe[an].slice();if(an[0]==="#")return an.length===4?(rn=parseInt(an.substr(1),16))>=0&&rn<=4095?[(3840&rn)>>4|(3840&rn)>>8,240&rn|(240&rn)>>4,15&rn|(15&rn)<<4,1]:null:an.length===7&&(rn=parseInt(an.substr(1),16))>=0&&rn<=16777215?[(16711680&rn)>>16,(65280&rn)>>8,255&rn,1]:null;var _n=an.indexOf("("),Dn=an.indexOf(")");if(_n!==-1&&Dn+1===an.length){var Cn=an.substr(0,_n),Jn=an.substr(_n+1,Dn-(_n+1)).split(","),lr=1;switch(Cn){case"rgba":if(Jn.length!==4)return null;lr=ut(Jn.pop());case"rgb":return Jn.length!==3?null:[et(Jn[0]),et(Jn[1]),et(Jn[2]),lr];case"hsla":if(Jn.length!==4)return null;lr=ut(Jn.pop());case"hsl":if(Jn.length!==3)return null;var Ar=(parseFloat(Jn[0])%360+360)%360/360,Or=ut(Jn[1]),jr=ut(Jn[2]),Jr=jr<=.5?jr*(Or+1):jr+Or-jr*Or,uo=2*jr-Jr;return[Ae(255*Tt(uo,Jr,Ar+1/3)),Ae(255*Tt(uo,Jr,Ar)),Ae(255*Tt(uo,Jr,Ar-1/3)),lr];default:return null}}return null}}catch{}}),zr=Ir.parseCSSColor,Fr=function(N,G,fe,Ae){Ae===void 0&&(Ae=1),this.r=N,this.g=G,this.b=fe,this.a=Ae};Fr.parse=function(N){if(N){if(N instanceof Fr)return N;if(typeof N=="string"){var G=zr(N);if(G)return new Fr(G[0]/255*G[3],G[1]/255*G[3],G[2]/255*G[3],G[3])}}},Fr.prototype.toString=function(){var N=this.toArray(),G=N[0],fe=N[1],Ae=N[2],Qe=N[3];return"rgba("+Math.round(G)+","+Math.round(fe)+","+Math.round(Ae)+","+Qe+")"},Fr.prototype.toArray=function(){var N=this,G=N.r,fe=N.g,Ae=N.b,Qe=N.a;return Qe===0?[0,0,0,0]:[255*G/Qe,255*fe/Qe,255*Ae/Qe,Qe]},Fr.black=new Fr(0,0,0,1),Fr.white=new Fr(1,1,1,1),Fr.transparent=new Fr(0,0,0,0),Fr.red=new Fr(1,0,0,1);var Rr=function(N,G,fe){this.sensitivity=N?G?"variant":"case":G?"accent":"base",this.locale=fe,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Rr.prototype.compare=function(N,G){return this.collator.compare(N,G)},Rr.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $r=function(N,G,fe,Ae,Qe){this.text=N,this.image=G,this.scale=fe,this.fontStack=Ae,this.textColor=Qe},Kr=function(N){this.sections=N};Kr.fromString=function(N){return new Kr([new $r(N,null,null,null,null)])},Kr.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(N){return N.text.length!==0||N.image&&N.image.name.length!==0})},Kr.factory=function(N){return N instanceof Kr?N:Kr.fromString(N)},Kr.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(N){return N.text}).join("")},Kr.prototype.serialize=function(){for(var N=["format"],G=0,fe=this.sections;G=0&&N<=255&&typeof G=="number"&&G>=0&&G<=255&&typeof fe=="number"&&fe>=0&&fe<=255?Ae===void 0||typeof Ae=="number"&&Ae>=0&&Ae<=1?null:"Invalid rgba value ["+[N,G,fe,Ae].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof Ae=="number"?[N,G,fe,Ae]:[N,G,fe]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function So(N){if(N===null||typeof N=="string"||typeof N=="boolean"||typeof N=="number"||N instanceof Fr||N instanceof Rr||N instanceof Kr||N instanceof Co)return!0;if(Array.isArray(N)){for(var G=0,fe=N;G2){var Tt=N[1];if(typeof Tt!="string"||!(Tt in br)||Tt==="object")return G.error('The item type argument of "array" must be one of string, number, boolean',1);et=br[Tt],Ae++}else et=In;if(N.length>3){if(N[2]!==null&&(typeof N[2]!="number"||N[2]<0||N[2]!==Math.floor(N[2])))return G.error('The length argument to "array" must be a positive integer literal',2);ut=N[2],Ae++}fe=ar(et,ut)}else fe=br[Qe];for(var Bt=[];Ae1)&&G.push(Ae)}}return G.concat(this.args.map(function(Qe){return Qe.serialize()}))};var Cr=function(N){this.type=xr,this.sections=N};Cr.parse=function(N,G){if(N.length<2)return G.error("Expected at least one argument.");var fe=N[1];if(!Array.isArray(fe)&&typeof fe=="object")return G.error("First argument must be an image or text section.");for(var Ae=[],Qe=!1,et=1;et<=N.length-1;++et){var ut=N[et];if(Qe&&typeof ut=="object"&&!Array.isArray(ut)){Qe=!1;var Tt=null;if(ut["font-scale"]&&!(Tt=G.parse(ut["font-scale"],1,dn)))return null;var Bt=null;if(ut["text-font"]&&!(Bt=G.parse(ut["text-font"],1,ar(vn))))return null;var rn=null;if(ut["text-color"]&&!(rn=G.parse(ut["text-color"],1,er)))return null;var an=Ae[Ae.length-1];an.scale=Tt,an.font=Bt,an.textColor=rn}else{var _n=G.parse(N[et],1,In);if(!_n)return null;var Dn=_n.type.kind;if(Dn!=="string"&&Dn!=="value"&&Dn!=="null"&&Dn!=="resolvedImage")return G.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Qe=!0,Ae.push({content:_n,scale:null,font:null,textColor:null})}}return new Cr(Ae)},Cr.prototype.evaluate=function(N){return new Kr(this.sections.map(function(G){var fe=G.content.evaluate(N);return go(fe)===Sr?new $r("",fe,null,null,null):new $r(li(fe),null,G.scale?G.scale.evaluate(N):null,G.font?G.font.evaluate(N).join(","):null,G.textColor?G.textColor.evaluate(N):null)}))},Cr.prototype.eachChild=function(N){for(var G=0,fe=this.sections;G-1),fe},io.prototype.eachChild=function(N){N(this.input)},io.prototype.outputDefined=function(){return!1},io.prototype.serialize=function(){return["image",this.input.serialize()]};var Qr={"to-boolean":Nn,"to-color":er,"to-number":dn,"to-string":vn},Wr=function(N,G){this.type=N,this.args=G};Wr.parse=function(N,G){if(N.length<2)return G.error("Expected at least one argument.");var fe=N[0];if((fe==="to-boolean"||fe==="to-string")&&N.length!==2)return G.error("Expected one argument.");for(var Ae=Qr[fe],Qe=[],et=1;et4?"Invalid rbga value "+JSON.stringify(G)+": expected an array containing either three or four numeric values.":so(G[0],G[1],G[2],G[3])))return new Fr(G[0]/255,G[1]/255,G[2]/255,G[3])}throw new Yn(fe||"Could not parse color from value '"+(typeof G=="string"?G:String(JSON.stringify(G)))+"'")}if(this.type.kind==="number"){for(var ut=null,Tt=0,Bt=this.args;Tt=G[2]||N[1]<=G[1]||N[3]>=G[3])}function gr(N,G){var fe,Ae=(180+N[0])/360,Qe=(fe=N[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+fe*Math.PI/360)))/360),et=Math.pow(2,G.z);return[Math.round(Ae*et*zn),Math.round(Qe*et*zn)]}function vr(N,G,fe){return G[1]>N[1]!=fe[1]>N[1]&&N[0]<(fe[0]-G[0])*(N[1]-G[1])/(fe[1]-G[1])+G[0]}function nr(N,G){for(var fe=!1,Ae=0,Qe=G.length;Ae0&&_n<0||an<0&&_n>0}function tr(N,G,fe){for(var Ae=0,Qe=fe;Aefe[2]){var Qe=.5*Ae,et=N[0]-fe[0]>Qe?-Ae:fe[0]-N[0]>Qe?Ae:0;et===0&&(et=N[0]-fe[2]>Qe?-Ae:fe[2]-N[0]>Qe?Ae:0),N[0]+=et}Zn(G,N)}function _o(N,G,fe,Ae){for(var Qe=Math.pow(2,Ae.z)*zn,et=[Ae.x*zn,Ae.y*zn],ut=[],Tt=0,Bt=N;Tt=0)return!1;var fe=!0;return N.eachChild(function(Ae){fe&&!Go(Ae,G)&&(fe=!1)}),fe}Eo.parse=function(N,G){if(N.length!==2)return G.error("'within' expression requires exactly one argument, but found "+(N.length-1)+" instead.");if(So(N[1])){var fe=N[1];if(fe.type==="FeatureCollection")for(var Ae=0;AeG))throw new Yn("Input is not a number.");ut=Tt-1}return 0}qo.prototype.parse=function(N,G,fe,Ae,Qe){return Qe===void 0&&(Qe={}),G?this.concat(G,fe,Ae)._parse(N,Qe):this._parse(N,Qe)},qo.prototype._parse=function(N,G){function fe(rn,an,_n){return _n==="assert"?new dr(an,[rn]):_n==="coerce"?new Wr(an,[rn]):rn}if(N!==null&&typeof N!="string"&&typeof N!="boolean"&&typeof N!="number"||(N=["literal",N]),Array.isArray(N)){if(N.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Ae=N[0];if(typeof Ae!="string")return this.error("Expression name must be a string, but found "+typeof Ae+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Qe=this.registry[Ae];if(Qe){var et=Qe.parse(N,this);if(!et)return null;if(this.expectedType){var ut=this.expectedType,Tt=et.type;if(ut.kind!=="string"&&ut.kind!=="number"&&ut.kind!=="boolean"&&ut.kind!=="object"&&ut.kind!=="array"||Tt.kind!=="value")if(ut.kind!=="color"&&ut.kind!=="formatted"&&ut.kind!=="resolvedImage"||Tt.kind!=="value"&&Tt.kind!=="string"){if(this.checkSubtype(ut,Tt))return null}else et=fe(et,ut,G.typeAnnotation||"coerce");else et=fe(et,ut,G.typeAnnotation||"assert")}if(!(et instanceof Pn)&&et.type.kind!=="resolvedImage"&&Ao(et)){var Bt=new Bn;try{et=new Pn(et.type,et.evaluate(Bt))}catch(rn){return this.error(rn.message),null}}return et}return this.error('Unknown expression "'+Ae+'". If you wanted a literal array, use ["literal", [...]].',0)}return N===void 0?this.error("'undefined' value invalid. Use null instead."):typeof N=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof N+" instead.")},qo.prototype.concat=function(N,G,fe){var Ae=typeof N=="number"?this.path.concat(N):this.path,Qe=fe?this.scope.concat(fe):this.scope;return new qo(this.registry,Ae,G||null,Qe,this.errors)},qo.prototype.error=function(N){for(var G=[],fe=arguments.length-1;fe-- >0;)G[fe]=arguments[fe+1];var Ae=""+this.key+G.map(function(Qe){return"["+Qe+"]"}).join("");this.errors.push(new tn(Ae,N))},qo.prototype.checkSubtype=function(N,G){var fe=Wn(N,G);return fe&&this.error(fe),fe};var ko=function(N,G,fe){this.type=N,this.input=G,this.labels=[],this.outputs=[];for(var Ae=0,Qe=fe;Ae=ut)return G.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Bt);var an=G.parse(Tt,rn,Qe);if(!an)return null;Qe=Qe||an.type,Ae.push([ut,an])}return new ko(Qe,fe,Ae)},ko.prototype.evaluate=function(N){var G=this.labels,fe=this.outputs;if(G.length===1)return fe[0].evaluate(N);var Ae=this.input.evaluate(N);if(Ae<=G[0])return fe[0].evaluate(N);var Qe=G.length;return Ae>=G[Qe-1]?fe[Qe-1].evaluate(N):fe[oi(G,Ae)].evaluate(N)},ko.prototype.eachChild=function(N){N(this.input);for(var G=0,fe=this.outputs;G0&&N.push(this.labels[G]),N.push(this.outputs[G].serialize());return N};var mo=Object.freeze({__proto__:null,number:ra,color:function(N,G,fe){return new Fr(ra(N.r,G.r,fe),ra(N.g,G.g,fe),ra(N.b,G.b,fe),ra(N.a,G.a,fe))},array:function(N,G,fe){return N.map(function(Ae,Qe){return ra(Ae,G[Qe],fe)})}}),Aa=.95047,Xl=1,Na=1.08883,cs=4/29,wc=6/29,ma=3*wc*wc,Ku=wc*wc*wc,qc=Math.PI/180,Yd=180/Math.PI;function Ql(N){return N>Ku?Math.pow(N,.3333333333333333):N/ma+cs}function Ed(N){return N>wc?N*N*N:ma*(N-cs)}function Nf(N){return 255*(N<=.0031308?12.92*N:1.055*Math.pow(N,.4166666666666667)-.055)}function mm(N){return(N/=255)<=.04045?N/12.92:Math.pow((N+.055)/1.055,2.4)}function Ws(N){var G=mm(N.r),fe=mm(N.g),Ae=mm(N.b),Qe=Ql((.4124564*G+.3575761*fe+.1804375*Ae)/Aa),et=Ql((.2126729*G+.7151522*fe+.072175*Ae)/Xl);return{l:116*et-16,a:500*(Qe-et),b:200*(et-Ql((.0193339*G+.119192*fe+.9503041*Ae)/Na)),alpha:N.a}}function gm(N){var G=(N.l+16)/116,fe=isNaN(N.a)?G:G+N.a/500,Ae=isNaN(N.b)?G:G-N.b/200;return G=Xl*Ed(G),fe=Aa*Ed(fe),Ae=Na*Ed(Ae),new Fr(Nf(3.2404542*fe-1.5371385*G-.4985314*Ae),Nf(-.969266*fe+1.8760108*G+.041556*Ae),Nf(.0556434*fe-.2040259*G+1.0572252*Ae),N.alpha)}function Gl(N,G,fe){var Ae=G-N;return N+fe*(Ae>180||Ae<-180?Ae-360*Math.round(Ae/360):Ae)}var pc={forward:Ws,reverse:gm,interpolate:function(N,G,fe){return{l:ra(N.l,G.l,fe),a:ra(N.a,G.a,fe),b:ra(N.b,G.b,fe),alpha:ra(N.alpha,G.alpha,fe)}}},Cu={forward:function(N){var G=Ws(N),fe=G.l,Ae=G.a,Qe=G.b,et=Math.atan2(Qe,Ae)*Yd;return{h:et<0?et+360:et,c:Math.sqrt(Ae*Ae+Qe*Qe),l:fe,alpha:N.a}},reverse:function(N){var G=N.h*qc,fe=N.c;return gm({l:N.l,a:Math.cos(G)*fe,b:Math.sin(G)*fe,alpha:N.alpha})},interpolate:function(N,G,fe){return{h:Gl(N.h,G.h,fe),c:ra(N.c,G.c,fe),l:ra(N.l,G.l,fe),alpha:ra(N.alpha,G.alpha,fe)}}},yl=Object.freeze({__proto__:null,lab:pc,hcl:Cu}),sa=function(N,G,fe,Ae,Qe){this.type=N,this.operator=G,this.interpolation=fe,this.input=Ae,this.labels=[],this.outputs=[];for(var et=0,ut=Qe;et1}))return G.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Ae={name:"cubic-bezier",controlPoints:Tt}}if(N.length-1<4)return G.error("Expected at least 4 arguments, but found only "+(N.length-1)+".");if((N.length-1)%2!=0)return G.error("Expected an even number of arguments.");if(!(Qe=G.parse(Qe,2,dn)))return null;var Bt=[],rn=null;fe==="interpolate-hcl"||fe==="interpolate-lab"?rn=er:G.expectedType&&G.expectedType.kind!=="value"&&(rn=G.expectedType);for(var an=0;an=_n)return G.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Cn);var lr=G.parse(Dn,Jn,rn);if(!lr)return null;rn=rn||lr.type,Bt.push([_n,lr])}return rn.kind==="number"||rn.kind==="color"||rn.kind==="array"&&rn.itemType.kind==="number"&&typeof rn.N=="number"?new sa(rn,fe,Ae,Qe,Bt):G.error("Type "+Fn(rn)+" is not interpolatable.")},sa.prototype.evaluate=function(N){var G=this.labels,fe=this.outputs;if(G.length===1)return fe[0].evaluate(N);var Ae=this.input.evaluate(N);if(Ae<=G[0])return fe[0].evaluate(N);var Qe=G.length;if(Ae>=G[Qe-1])return fe[Qe-1].evaluate(N);var et=oi(G,Ae),ut=G[et],Tt=G[et+1],Bt=sa.interpolationFactor(this.interpolation,Ae,ut,Tt),rn=fe[et].evaluate(N),an=fe[et+1].evaluate(N);return this.operator==="interpolate"?mo[this.type.kind.toLowerCase()](rn,an,Bt):this.operator==="interpolate-hcl"?Cu.reverse(Cu.interpolate(Cu.forward(rn),Cu.forward(an),Bt)):pc.reverse(pc.interpolate(pc.forward(rn),pc.forward(an),Bt))},sa.prototype.eachChild=function(N){N(this.input);for(var G=0,fe=this.outputs;G=fe.length)throw new Yn("Array index out of bounds: "+G+" > "+(fe.length-1)+".");if(G!==Math.floor(G))throw new Yn("Array index must be an integer, but found "+G+" instead.");return fe[G]},iu.prototype.eachChild=function(N){N(this.index),N(this.input)},iu.prototype.outputDefined=function(){return!1},iu.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var mc=function(N,G){this.type=Nn,this.needle=N,this.haystack=G};mc.parse=function(N,G){if(N.length!==3)return G.error("Expected 2 arguments, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1,In),Ae=G.parse(N[2],2,In);return fe&&Ae?Kn(fe.type,[Nn,vn,dn,fn,In])?new mc(fe,Ae):G.error("Expected first argument to be of type boolean, string, number or null, but found "+Fn(fe.type)+" instead"):null},mc.prototype.evaluate=function(N){var G=this.needle.evaluate(N),fe=this.haystack.evaluate(N);if(!fe)return!1;if(!_r(G,["boolean","string","number","null"]))throw new Yn("Expected first argument to be of type boolean, string, number or null, but found "+Fn(go(G))+" instead.");if(!_r(fe,["string","array"]))throw new Yn("Expected second argument to be of type array or string, but found "+Fn(go(fe))+" instead.");return fe.indexOf(G)>=0},mc.prototype.eachChild=function(N){N(this.needle),N(this.haystack)},mc.prototype.outputDefined=function(){return!0},mc.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ss=function(N,G,fe){this.type=dn,this.needle=N,this.haystack=G,this.fromIndex=fe};Ss.parse=function(N,G){if(N.length<=2||N.length>=5)return G.error("Expected 3 or 4 arguments, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1,In),Ae=G.parse(N[2],2,In);if(!fe||!Ae)return null;if(!Kn(fe.type,[Nn,vn,dn,fn,In]))return G.error("Expected first argument to be of type boolean, string, number or null, but found "+Fn(fe.type)+" instead");if(N.length===4){var Qe=G.parse(N[3],3,dn);return Qe?new Ss(fe,Ae,Qe):null}return new Ss(fe,Ae)},Ss.prototype.evaluate=function(N){var G=this.needle.evaluate(N),fe=this.haystack.evaluate(N);if(!_r(G,["boolean","string","number","null"]))throw new Yn("Expected first argument to be of type boolean, string, number or null, but found "+Fn(go(G))+" instead.");if(!_r(fe,["string","array"]))throw new Yn("Expected second argument to be of type array or string, but found "+Fn(go(fe))+" instead.");if(this.fromIndex){var Ae=this.fromIndex.evaluate(N);return fe.indexOf(G,Ae)}return fe.indexOf(G)},Ss.prototype.eachChild=function(N){N(this.needle),N(this.haystack),this.fromIndex&&N(this.fromIndex)},Ss.prototype.outputDefined=function(){return!1},Ss.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var N=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),N]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var $f=function(N,G,fe,Ae,Qe,et){this.inputType=N,this.type=G,this.input=fe,this.cases=Ae,this.outputs=Qe,this.otherwise=et};$f.parse=function(N,G){if(N.length<5)return G.error("Expected at least 4 arguments, but found only "+(N.length-1)+".");if(N.length%2!=1)return G.error("Expected an even number of arguments.");var fe,Ae;G.expectedType&&G.expectedType.kind!=="value"&&(Ae=G.expectedType);for(var Qe={},et=[],ut=2;utNumber.MAX_SAFE_INTEGER)return rn.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Dn=="number"&&Math.floor(Dn)!==Dn)return rn.error("Numeric branch labels must be integer values.");if(fe){if(rn.checkSubtype(fe,go(Dn)))return null}else fe=go(Dn);if(Qe[String(Dn)]!==void 0)return rn.error("Branch labels must be unique.");Qe[String(Dn)]=et.length}var Cn=G.parse(Bt,ut,Ae);if(!Cn)return null;Ae=Ae||Cn.type,et.push(Cn)}var Jn=G.parse(N[1],1,In);if(!Jn)return null;var lr=G.parse(N[N.length-1],N.length-1,Ae);return lr?Jn.type.kind!=="value"&&G.concat(1).checkSubtype(fe,Jn.type)?null:new $f(fe,Ae,Jn,Qe,et,lr):null},$f.prototype.evaluate=function(N){var G=this.input.evaluate(N);return(go(G)===this.inputType&&this.outputs[this.cases[G]]||this.otherwise).evaluate(N)},$f.prototype.eachChild=function(N){N(this.input),this.outputs.forEach(N),N(this.otherwise)},$f.prototype.outputDefined=function(){return this.outputs.every(function(N){return N.outputDefined()})&&this.otherwise.outputDefined()},$f.prototype.serialize=function(){for(var N=this,G=["match",this.input.serialize()],fe=[],Ae={},Qe=0,et=Object.keys(this.cases).sort();Qe=5)return G.error("Expected 3 or 4 arguments, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1,In),Ae=G.parse(N[2],2,dn);if(!fe||!Ae)return null;if(!Kn(fe.type,[ar(In),vn,In]))return G.error("Expected first argument to be of type array or string, but found "+Fn(fe.type)+" instead");if(N.length===4){var Qe=G.parse(N[3],3,dn);return Qe?new Ju(fe.type,fe,Ae,Qe):null}return new Ju(fe.type,fe,Ae)},Ju.prototype.evaluate=function(N){var G=this.input.evaluate(N),fe=this.beginIndex.evaluate(N);if(!_r(G,["string","array"]))throw new Yn("Expected first argument to be of type array or string, but found "+Fn(go(G))+" instead.");if(this.endIndex){var Ae=this.endIndex.evaluate(N);return G.slice(fe,Ae)}return G.slice(fe)},Ju.prototype.eachChild=function(N){N(this.input),N(this.beginIndex),this.endIndex&&N(this.endIndex)},Ju.prototype.outputDefined=function(){return!1},Ju.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var N=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),N]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var uc=ef("==",function(N,G,fe){return G===fe},Es),ad=ef("!=",function(N,G,fe){return G!==fe},function(N,G,fe,Ae){return!Es(0,G,fe,Ae)}),Vf=ef("<",function(N,G,fe){return G",function(N,G,fe){return G>fe},function(N,G,fe,Ae){return Ae.compare(G,fe)>0}),sd=ef("<=",function(N,G,fe){return G<=fe},function(N,G,fe,Ae){return Ae.compare(G,fe)<=0}),Mp=ef(">=",function(N,G,fe){return G>=fe},function(N,G,fe,Ae){return Ae.compare(G,fe)>=0}),Xd=function(N,G,fe,Ae,Qe){this.type=vn,this.number=N,this.locale=G,this.currency=fe,this.minFractionDigits=Ae,this.maxFractionDigits=Qe};Xd.parse=function(N,G){if(N.length!==3)return G.error("Expected two arguments.");var fe=G.parse(N[1],1,dn);if(!fe)return null;var Ae=N[2];if(typeof Ae!="object"||Array.isArray(Ae))return G.error("NumberFormat options argument must be an object.");var Qe=null;if(Ae.locale&&!(Qe=G.parse(Ae.locale,1,vn)))return null;var et=null;if(Ae.currency&&!(et=G.parse(Ae.currency,1,vn)))return null;var ut=null;if(Ae["min-fraction-digits"]&&!(ut=G.parse(Ae["min-fraction-digits"],1,dn)))return null;var Tt=null;return Ae["max-fraction-digits"]&&!(Tt=G.parse(Ae["max-fraction-digits"],1,dn))?null:new Xd(fe,Qe,et,ut,Tt)},Xd.prototype.evaluate=function(N){return new Intl.NumberFormat(this.locale?this.locale.evaluate(N):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(N):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(N):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(N):void 0}).format(this.number.evaluate(N))},Xd.prototype.eachChild=function(N){N(this.number),this.locale&&N(this.locale),this.currency&&N(this.currency),this.minFractionDigits&&N(this.minFractionDigits),this.maxFractionDigits&&N(this.maxFractionDigits)},Xd.prototype.outputDefined=function(){return!1},Xd.prototype.serialize=function(){var N={};return this.locale&&(N.locale=this.locale.serialize()),this.currency&&(N.currency=this.currency.serialize()),this.minFractionDigits&&(N["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(N["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),N]};var yf=function(N){this.type=dn,this.input=N};yf.parse=function(N,G){if(N.length!==2)return G.error("Expected 1 argument, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1);return fe?fe.type.kind!=="array"&&fe.type.kind!=="string"&&fe.type.kind!=="value"?G.error("Expected argument of type string or array, but found "+Fn(fe.type)+" instead."):new yf(fe):null},yf.prototype.evaluate=function(N){var G=this.input.evaluate(N);if(typeof G=="string"||Array.isArray(G))return G.length;throw new Yn("Expected value to be of type string or array, but found "+Fn(go(G))+" instead.")},yf.prototype.eachChild=function(N){N(this.input)},yf.prototype.outputDefined=function(){return!1},yf.prototype.serialize=function(){var N=["length"];return this.eachChild(function(G){N.push(G.serialize())}),N};var mh={"==":uc,"!=":ad,">":gc,"<":Vf,">=":Mp,"<=":sd,array:dr,at:iu,boolean:dr,case:vf,coalesce:hu,collator:hn,format:Cr,image:io,in:mc,"index-of":Ss,interpolate:sa,"interpolate-hcl":sa,"interpolate-lab":sa,length:yf,let:ju,literal:Pn,match:$f,number:dr,"number-format":Xd,object:dr,slice:Ju,step:ko,string:dr,"to-boolean":Wr,"to-color":Wr,"to-number":Wr,"to-string":Wr,var:po,within:Eo};function ld(N,G){var fe=G[0],Ae=G[1],Qe=G[2],et=G[3];fe=fe.evaluate(N),Ae=Ae.evaluate(N),Qe=Qe.evaluate(N);var ut=et?et.evaluate(N):1,Tt=so(fe,Ae,Qe,ut);if(Tt)throw new Yn(Tt);return new Fr(fe/255*ut,Ae/255*ut,Qe/255*ut,ut)}function Vh(N,G){return N in G}function bf(N,G){var fe=G[N];return fe===void 0?null:fe}function tf(N){return{type:N}}function Au(N){return{result:"success",value:N}}function xf(N){return{result:"error",value:N}}function cd(N){return N["property-type"]==="data-driven"||N["property-type"]==="cross-faded-data-driven"}function nf(N){return!!N.expression&&N.expression.parameters.indexOf("zoom")>-1}function gh(N){return!!N.expression&&N.expression.interpolated}function rs(N){return N instanceof Number?"number":N instanceof String?"string":N instanceof Boolean?"boolean":Array.isArray(N)?"array":N===null?"null":typeof N}function ep(N){return typeof N=="object"&&N!==null&&!Array.isArray(N)}function Ep(N){return N}function vm(N,G){var fe,Ae,Qe,et=G.type==="color",ut=N.stops&&typeof N.stops[0][0]=="object",Tt=ut||N.property!==void 0,Bt=ut||!Tt,rn=N.type||(gh(G)?"exponential":"interval");if(et&&((N=Yt({},N)).stops&&(N.stops=N.stops.map(function(ni){return[ni[0],Fr.parse(ni[1])]})),N.default?N.default=Fr.parse(N.default):N.default=Fr.parse(G.default)),N.colorSpace&&N.colorSpace!=="rgb"&&!yl[N.colorSpace])throw new Error("Unknown color space: "+N.colorSpace);if(rn==="exponential")fe=Pp;else if(rn==="interval")fe=sr;else if(rn==="categorical"){fe=M0,Ae=Object.create(null);for(var an=0,_n=N.stops;an<_n.length;an+=1){var Dn=_n[an];Ae[Dn[0]]=Dn[1]}Qe=typeof N.stops[0][0]}else{if(rn!=="identity")throw new Error('Unknown function type "'+rn+'"');fe=_f}if(ut){for(var Cn={},Jn=[],lr=0;lr=N.stops[Ae-1][0])return N.stops[Ae-1][1];var Qe=oi(N.stops.map(function(et){return et[0]}),fe);return N.stops[Qe][1]}function Pp(N,G,fe){var Ae=N.base!==void 0?N.base:1;if(rs(fe)!=="number")return Pd(N.default,G.default);var Qe=N.stops.length;if(Qe===1||fe<=N.stops[0][0])return N.stops[0][1];if(fe>=N.stops[Qe-1][0])return N.stops[Qe-1][1];var et=oi(N.stops.map(function(_n){return _n[0]}),fe),ut=function(_n,Dn,Cn,Jn){var lr=Jn-Cn,Ar=_n-Cn;return lr===0?0:Dn===1?Ar/lr:(Math.pow(Dn,Ar)-1)/(Math.pow(Dn,lr)-1)}(fe,Ae,N.stops[et][0],N.stops[et+1][0]),Tt=N.stops[et][1],Bt=N.stops[et+1][1],rn=mo[G.type]||Ep;if(N.colorSpace&&N.colorSpace!=="rgb"){var an=yl[N.colorSpace];rn=function(_n,Dn){return an.reverse(an.interpolate(an.forward(_n),an.forward(Dn),ut))}}return typeof Tt.evaluate=="function"?{evaluate:function(){for(var _n=[],Dn=arguments.length;Dn--;)_n[Dn]=arguments[Dn];var Cn=Tt.evaluate.apply(void 0,_n),Jn=Bt.evaluate.apply(void 0,_n);if(Cn!==void 0&&Jn!==void 0)return rn(Cn,Jn,ut)}}:rn(Tt,Bt,ut)}function _f(N,G,fe){return G.type==="color"?fe=Fr.parse(fe):G.type==="formatted"?fe=Kr.fromString(fe.toString()):G.type==="resolvedImage"?fe=Co.fromString(fe.toString()):rs(fe)===G.type||G.type==="enum"&&G.values[fe]||(fe=void 0),Pd(fe,N.default,G.default)}hr.register(mh,{error:[{kind:"error"},[vn],function(N,G){var fe=G[0];throw new Yn(fe.evaluate(N))}],typeof:[vn,[In],function(N,G){return Fn(go(G[0].evaluate(N)))}],"to-rgba":[ar(dn,4),[er],function(N,G){return G[0].evaluate(N).toArray()}],rgb:[er,[dn,dn,dn],ld],rgba:[er,[dn,dn,dn,dn],ld],has:{type:Nn,overloads:[[[vn],function(N,G){return Vh(G[0].evaluate(N),N.properties())}],[[vn,En],function(N,G){var fe=G[0],Ae=G[1];return Vh(fe.evaluate(N),Ae.evaluate(N))}]]},get:{type:In,overloads:[[[vn],function(N,G){return bf(G[0].evaluate(N),N.properties())}],[[vn,En],function(N,G){var fe=G[0],Ae=G[1];return bf(fe.evaluate(N),Ae.evaluate(N))}]]},"feature-state":[In,[vn],function(N,G){return bf(G[0].evaluate(N),N.featureState||{})}],properties:[En,[],function(N){return N.properties()}],"geometry-type":[vn,[],function(N){return N.geometryType()}],id:[In,[],function(N){return N.id()}],zoom:[dn,[],function(N){return N.globals.zoom}],"heatmap-density":[dn,[],function(N){return N.globals.heatmapDensity||0}],"line-progress":[dn,[],function(N){return N.globals.lineProgress||0}],accumulated:[In,[],function(N){return N.globals.accumulated===void 0?null:N.globals.accumulated}],"+":[dn,tf(dn),function(N,G){for(var fe=0,Ae=0,Qe=G;Ae":[Nn,[vn,In],function(N,G){var fe=G[0],Ae=G[1],Qe=N.properties()[fe.value],et=Ae.value;return typeof Qe==typeof et&&Qe>et}],"filter-id->":[Nn,[In],function(N,G){var fe=G[0],Ae=N.id(),Qe=fe.value;return typeof Ae==typeof Qe&&Ae>Qe}],"filter-<=":[Nn,[vn,In],function(N,G){var fe=G[0],Ae=G[1],Qe=N.properties()[fe.value],et=Ae.value;return typeof Qe==typeof et&&Qe<=et}],"filter-id-<=":[Nn,[In],function(N,G){var fe=G[0],Ae=N.id(),Qe=fe.value;return typeof Ae==typeof Qe&&Ae<=Qe}],"filter->=":[Nn,[vn,In],function(N,G){var fe=G[0],Ae=G[1],Qe=N.properties()[fe.value],et=Ae.value;return typeof Qe==typeof et&&Qe>=et}],"filter-id->=":[Nn,[In],function(N,G){var fe=G[0],Ae=N.id(),Qe=fe.value;return typeof Ae==typeof Qe&&Ae>=Qe}],"filter-has":[Nn,[In],function(N,G){return G[0].value in N.properties()}],"filter-has-id":[Nn,[],function(N){return N.id()!==null&&N.id()!==void 0}],"filter-type-in":[Nn,[ar(vn)],function(N,G){return G[0].value.indexOf(N.geometryType())>=0}],"filter-id-in":[Nn,[ar(In)],function(N,G){return G[0].value.indexOf(N.id())>=0}],"filter-in-small":[Nn,[vn,ar(In)],function(N,G){var fe=G[0];return G[1].value.indexOf(N.properties()[fe.value])>=0}],"filter-in-large":[Nn,[vn,ar(In)],function(N,G){var fe=G[0],Ae=G[1];return function(Qe,et,ut,Tt){for(;ut<=Tt;){var Bt=ut+Tt>>1;if(et[Bt]===Qe)return!0;et[Bt]>Qe?Tt=Bt-1:ut=Bt+1}return!1}(N.properties()[fe.value],Ae.value,0,Ae.value.length-1)}],all:{type:Nn,overloads:[[[Nn,Nn],function(N,G){var fe=G[0],Ae=G[1];return fe.evaluate(N)&&Ae.evaluate(N)}],[tf(Nn),function(N,G){for(var fe=0,Ae=G;fe0&&typeof N[0]=="string"&&N[0]in mh}function Gd(N,G){var fe=new qo(mh,[],G?function(Qe){var et={color:er,string:vn,number:dn,enum:vn,boolean:Nn,formatted:xr,resolvedImage:Sr};return Qe.type==="array"?ar(et[Qe.value]||In,Qe.length):et[Qe.type]}(G):void 0),Ae=fe.parse(N,void 0,void 0,void 0,G&&G.type==="string"?{typeAnnotation:"coerce"}:void 0);return Ae?Au(new wf(Ae,G)):xf(fe.errors)}wf.prototype.evaluateWithoutErrorHandling=function(N,G,fe,Ae,Qe,et){return this._evaluator.globals=N,this._evaluator.feature=G,this._evaluator.featureState=fe,this._evaluator.canonical=Ae,this._evaluator.availableImages=Qe||null,this._evaluator.formattedSection=et,this.expression.evaluate(this._evaluator)},wf.prototype.evaluate=function(N,G,fe,Ae,Qe,et){this._evaluator.globals=N,this._evaluator.feature=G||null,this._evaluator.featureState=fe||null,this._evaluator.canonical=Ae,this._evaluator.availableImages=Qe||null,this._evaluator.formattedSection=et||null;try{var ut=this.expression.evaluate(this._evaluator);if(ut==null||typeof ut=="number"&&ut!=ut)return this._defaultValue;if(this._enumValues&&!(ut in this._enumValues))throw new Yn("Expected value to be one of "+Object.keys(this._enumValues).map(function(Tt){return JSON.stringify(Tt)}).join(", ")+", but found "+JSON.stringify(ut)+" instead.");return ut}catch(Tt){return this._warningHistory[Tt.message]||(this._warningHistory[Tt.message]=!0,typeof console<"u"&&console.warn(Tt.message)),this._defaultValue}};var Fa=function(N,G){this.kind=N,this._styleExpression=G,this.isStateDependent=N!=="constant"&&!co(G.expression)};Fa.prototype.evaluateWithoutErrorHandling=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluateWithoutErrorHandling(N,G,fe,Ae,Qe,et)},Fa.prototype.evaluate=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluate(N,G,fe,Ae,Qe,et)};var Qu=function(N,G,fe,Ae){this.kind=N,this.zoomStops=fe,this._styleExpression=G,this.isStateDependent=N!=="camera"&&!co(G.expression),this.interpolationType=Ae};function rf(N,G){if((N=Gd(N,G)).result==="error")return N;var fe=N.value.expression,Ae=ao(fe);if(!Ae&&!cd(G))return xf([new tn("","data expressions not supported")]);var Qe=Go(fe,["zoom"]);if(!Qe&&!nf(G))return xf([new tn("","zoom expressions not supported")]);var et=ym(fe);if(!et&&!Qe)return xf([new tn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(et instanceof tn)return xf([et]);if(et instanceof sa&&!gh(G))return xf([new tn("",'"interpolate" expressions cannot be used with this property')]);if(!et)return Au(new Fa(Ae?"constant":"source",N.value));var ut=et instanceof sa?et.interpolation:void 0;return Au(new Qu(Ae?"camera":"composite",N.value,et.labels,ut))}Qu.prototype.evaluateWithoutErrorHandling=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluateWithoutErrorHandling(N,G,fe,Ae,Qe,et)},Qu.prototype.evaluate=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluate(N,G,fe,Ae,Qe,et)},Qu.prototype.interpolationFactor=function(N,G,fe){return this.interpolationType?sa.interpolationFactor(this.interpolationType,N,G,fe):0};var Bc=function(N,G){this._parameters=N,this._specification=G,Yt(this,vm(this._parameters,this._specification))};function ym(N){var G=null;if(N instanceof ju)G=ym(N.result);else if(N instanceof hu)for(var fe=0,Ae=N.args;feAe.maximum?[new Ht(G,fe,fe+" is greater than the maximum value "+Ae.maximum)]:[]}function Uh(N){var G,fe,Ae,Qe=N.valueSpec,et=Qt(N.value.type),ut={},Tt=et!=="categorical"&&N.value.property===void 0,Bt=!Tt,rn=rs(N.value.stops)==="array"&&rs(N.value.stops[0])==="array"&&rs(N.value.stops[0][0])==="object",an=Mu({key:N.key,value:N.value,valueSpec:N.styleSpec.function,style:N.style,styleSpec:N.styleSpec,objectElementValidators:{stops:function(Cn){if(et==="identity")return[new Ht(Cn.key,Cn.value,'identity function may not have a "stops" property')];var Jn=[],lr=Cn.value;return Jn=Jn.concat(Hu({key:Cn.key,value:lr,valueSpec:Cn.valueSpec,style:Cn.style,styleSpec:Cn.styleSpec,arrayElementValidator:_n})),rs(lr)==="array"&&lr.length===0&&Jn.push(new Ht(Cn.key,lr,"array must have at least one stop")),Jn},default:function(Cn){return ms({key:Cn.key,value:Cn.value,valueSpec:Qe,style:Cn.style,styleSpec:Cn.styleSpec})}}});return et==="identity"&&Tt&&an.push(new Ht(N.key,N.value,'missing required property "property"')),et==="identity"||N.value.stops||an.push(new Ht(N.key,N.value,'missing required property "stops"')),et==="exponential"&&N.valueSpec.expression&&!gh(N.valueSpec)&&an.push(new Ht(N.key,N.value,"exponential functions not supported")),N.styleSpec.$version>=8&&(Bt&&!cd(N.valueSpec)?an.push(new Ht(N.key,N.value,"property functions not supported")):Tt&&!nf(N.valueSpec)&&an.push(new Ht(N.key,N.value,"zoom functions not supported"))),et!=="categorical"&&!rn||N.value.property!==void 0||an.push(new Ht(N.key,N.value,'"property" property is required')),an;function _n(Cn){var Jn=[],lr=Cn.value,Ar=Cn.key;if(rs(lr)!=="array")return[new Ht(Ar,lr,"array expected, "+rs(lr)+" found")];if(lr.length!==2)return[new Ht(Ar,lr,"array length 2 expected, length "+lr.length+" found")];if(rn){if(rs(lr[0])!=="object")return[new Ht(Ar,lr,"object expected, "+rs(lr[0])+" found")];if(lr[0].zoom===void 0)return[new Ht(Ar,lr,"object stop key must have zoom")];if(lr[0].value===void 0)return[new Ht(Ar,lr,"object stop key must have value")];if(Ae&&Ae>Qt(lr[0].zoom))return[new Ht(Ar,lr[0].zoom,"stop zoom values must appear in ascending order")];Qt(lr[0].zoom)!==Ae&&(Ae=Qt(lr[0].zoom),fe=void 0,ut={}),Jn=Jn.concat(Mu({key:Ar+"[0]",value:lr[0],valueSpec:{zoom:{}},style:Cn.style,styleSpec:Cn.styleSpec,objectElementValidators:{zoom:Lp,value:Dn}}))}else Jn=Jn.concat(Dn({key:Ar+"[0]",value:lr[0],valueSpec:{},style:Cn.style,styleSpec:Cn.styleSpec},lr));return Rp(Pt(lr[1]))?Jn.concat([new Ht(Ar+"[1]",lr[1],"expressions are not allowed in function stops.")]):Jn.concat(ms({key:Ar+"[1]",value:lr[1],valueSpec:Qe,style:Cn.style,styleSpec:Cn.styleSpec}))}function Dn(Cn,Jn){var lr=rs(Cn.value),Ar=Qt(Cn.value),Or=Cn.value!==null?Cn.value:Jn;if(G){if(lr!==G)return[new Ht(Cn.key,Or,lr+" stop domain type must match previous stop domain type "+G)]}else G=lr;if(lr!=="number"&&lr!=="string"&&lr!=="boolean")return[new Ht(Cn.key,Or,"stop domain value must be a number, string, or boolean")];if(lr!=="number"&&et!=="categorical"){var jr="number expected, "+lr+" found";return cd(Qe)&&et===void 0&&(jr+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ht(Cn.key,Or,jr)]}return et!=="categorical"||lr!=="number"||isFinite(Ar)&&Math.floor(Ar)===Ar?et!=="categorical"&&lr==="number"&&fe!==void 0&&Ar=2&&N[1]!=="$id"&&N[1]!=="$type";case"in":return N.length>=3&&(typeof N[1]!="string"||Array.isArray(N[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return N.length!==3||Array.isArray(N[1])||Array.isArray(N[2]);case"any":case"all":for(var G=0,fe=N.slice(1);GG?1:0}function ks(N){if(!Array.isArray(N))return!1;if(N[0]==="within")return!0;for(var G=1;G"||fe==="<="||fe===">="?zl(N[1],N[2],fe):fe==="any"?(G=N.slice(1),["any"].concat(G.map(Uf))):fe==="all"?["all"].concat(N.slice(1).map(Uf)):fe==="none"?["all"].concat(N.slice(1).map(Uf).map($s)):fe==="in"?Hl(N[1],N.slice(2)):fe==="!in"?$s(Hl(N[1],N.slice(2))):fe==="has"?Ts(N[1]):fe==="!has"?$s(Ts(N[1])):fe!=="within"||N}function zl(N,G,fe){switch(N){case"$type":return["filter-type-"+fe,G];case"$id":return["filter-id-"+fe,G];default:return["filter-"+fe,N,G]}}function Hl(N,G){if(G.length===0)return!1;switch(N){case"$type":return["filter-type-in",["literal",G]];case"$id":return["filter-id-in",["literal",G]];default:return G.length>200&&!G.some(function(fe){return typeof fe!=typeof G[0]})?["filter-in-large",N,["literal",G.sort(Oc)]]:["filter-in-small",N,["literal",G]]}}function Ts(N){switch(N){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",N]}}function $s(N){return["!",N]}function Zu(N){return ud(Pt(N.value))?jh(Yt({},N,{expressionContext:"filter",valueSpec:{value:"boolean"}})):yh(N)}function yh(N){var G=N.value,fe=N.key;if(rs(G)!=="array")return[new Ht(fe,G,"array expected, "+rs(G)+" found")];var Ae,Qe=N.styleSpec,et=[];if(G.length<1)return[new Ht(fe,G,"filter array must have at least 1 element")];switch(et=et.concat(Eu({key:fe+"[0]",value:G[0],valueSpec:Qe.filter_operator,style:N.style,styleSpec:N.styleSpec})),Qt(G[0])){case"<":case"<=":case">":case">=":G.length>=2&&Qt(G[1])==="$type"&&et.push(new Ht(fe,G,'"$type" cannot be use with operator "'+G[0]+'"'));case"==":case"!=":G.length!==3&&et.push(new Ht(fe,G,'filter array for operator "'+G[0]+'" must have 3 elements'));case"in":case"!in":G.length>=2&&(Ae=rs(G[1]))!=="string"&&et.push(new Ht(fe+"[1]",G[1],"string expected, "+Ae+" found"));for(var ut=2;ut=an[Cn+0]&&Ae>=an[Cn+1])?(ut[Dn]=!0,et.push(rn[Dn])):ut[Dn]=!1}}},Of.prototype._forEachCell=function(N,G,fe,Ae,Qe,et,ut,Tt){for(var Bt=this._convertToCellCoord(N),rn=this._convertToCellCoord(G),an=this._convertToCellCoord(fe),_n=this._convertToCellCoord(Ae),Dn=Bt;Dn<=an;Dn++)for(var Cn=rn;Cn<=_n;Cn++){var Jn=this.d*Cn+Dn;if((!Tt||Tt(this._convertFromCellCoord(Dn),this._convertFromCellCoord(Cn),this._convertFromCellCoord(Dn+1),this._convertFromCellCoord(Cn+1)))&&Qe.call(this,N,G,fe,Ae,Jn,et,ut,Tt))return}},Of.prototype._convertFromCellCoord=function(N){return(N-this.padding)/this.scale},Of.prototype._convertToCellCoord=function(N){return Math.max(0,Math.min(this.d-1,Math.floor(N*this.scale)+this.padding))},Of.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var N=this.cells,G=af+this.cells.length+1+1,fe=0,Ae=0;Ae=0)){var _n=N[an];rn[an]=Hi[Bt].shallow.indexOf(an)>=0?_n:Yc(_n,G)}N instanceof Error&&(rn.message=N.message)}if(rn.$name)throw new Error("$name property is reserved for worker serialization logic.");return Bt!=="Object"&&(rn.$name=Bt),rn}throw new Error("can't serialize object of type "+typeof N)}function Kl(N){if(N==null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||N instanceof Boolean||N instanceof Number||N instanceof String||N instanceof Date||N instanceof RegExp||Ru(N)||vc(N)||ArrayBuffer.isView(N)||N instanceof sf)return N;if(Array.isArray(N))return N.map(Kl);if(typeof N=="object"){var G=N.$name||"Object",fe=Hi[G].klass;if(!fe)throw new Error("can't deserialize unregistered class "+G);if(fe.deserialize)return fe.deserialize(N);for(var Ae=Object.create(fe.prototype),Qe=0,et=Object.keys(N);Qe=0?Tt:Kl(Tt)}}return Ae}throw new Error("can't deserialize object of type "+typeof N)}var Fc=function(){this.first=!0};Fc.prototype.update=function(N,G){var fe=Math.floor(N);return this.first?(this.first=!1,this.lastIntegerZoom=fe,this.lastIntegerZoomTime=0,this.lastZoom=N,this.lastFloorZoom=fe,!0):(this.lastFloorZoom>fe?(this.lastIntegerZoom=fe+1,this.lastIntegerZoomTime=G):this.lastFloorZoom=128&&N<=255},Arabic:function(N){return N>=1536&&N<=1791},"Arabic Supplement":function(N){return N>=1872&&N<=1919},"Arabic Extended-A":function(N){return N>=2208&&N<=2303},"Hangul Jamo":function(N){return N>=4352&&N<=4607},"Unified Canadian Aboriginal Syllabics":function(N){return N>=5120&&N<=5759},Khmer:function(N){return N>=6016&&N<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(N){return N>=6320&&N<=6399},"General Punctuation":function(N){return N>=8192&&N<=8303},"Letterlike Symbols":function(N){return N>=8448&&N<=8527},"Number Forms":function(N){return N>=8528&&N<=8591},"Miscellaneous Technical":function(N){return N>=8960&&N<=9215},"Control Pictures":function(N){return N>=9216&&N<=9279},"Optical Character Recognition":function(N){return N>=9280&&N<=9311},"Enclosed Alphanumerics":function(N){return N>=9312&&N<=9471},"Geometric Shapes":function(N){return N>=9632&&N<=9727},"Miscellaneous Symbols":function(N){return N>=9728&&N<=9983},"Miscellaneous Symbols and Arrows":function(N){return N>=11008&&N<=11263},"CJK Radicals Supplement":function(N){return N>=11904&&N<=12031},"Kangxi Radicals":function(N){return N>=12032&&N<=12255},"Ideographic Description Characters":function(N){return N>=12272&&N<=12287},"CJK Symbols and Punctuation":function(N){return N>=12288&&N<=12351},Hiragana:function(N){return N>=12352&&N<=12447},Katakana:function(N){return N>=12448&&N<=12543},Bopomofo:function(N){return N>=12544&&N<=12591},"Hangul Compatibility Jamo":function(N){return N>=12592&&N<=12687},Kanbun:function(N){return N>=12688&&N<=12703},"Bopomofo Extended":function(N){return N>=12704&&N<=12735},"CJK Strokes":function(N){return N>=12736&&N<=12783},"Katakana Phonetic Extensions":function(N){return N>=12784&&N<=12799},"Enclosed CJK Letters and Months":function(N){return N>=12800&&N<=13055},"CJK Compatibility":function(N){return N>=13056&&N<=13311},"CJK Unified Ideographs Extension A":function(N){return N>=13312&&N<=19903},"Yijing Hexagram Symbols":function(N){return N>=19904&&N<=19967},"CJK Unified Ideographs":function(N){return N>=19968&&N<=40959},"Yi Syllables":function(N){return N>=40960&&N<=42127},"Yi Radicals":function(N){return N>=42128&&N<=42191},"Hangul Jamo Extended-A":function(N){return N>=43360&&N<=43391},"Hangul Syllables":function(N){return N>=44032&&N<=55215},"Hangul Jamo Extended-B":function(N){return N>=55216&&N<=55295},"Private Use Area":function(N){return N>=57344&&N<=63743},"CJK Compatibility Ideographs":function(N){return N>=63744&&N<=64255},"Arabic Presentation Forms-A":function(N){return N>=64336&&N<=65023},"Vertical Forms":function(N){return N>=65040&&N<=65055},"CJK Compatibility Forms":function(N){return N>=65072&&N<=65103},"Small Form Variants":function(N){return N>=65104&&N<=65135},"Arabic Presentation Forms-B":function(N){return N>=65136&&N<=65279},"Halfwidth and Fullwidth Forms":function(N){return N>=65280&&N<=65519}};function Hh(N){for(var G=0,fe=N;G=65097&&N<=65103)||si["CJK Compatibility Ideographs"](N)||si["CJK Compatibility"](N)||si["CJK Radicals Supplement"](N)||si["CJK Strokes"](N)||!(!si["CJK Symbols and Punctuation"](N)||N>=12296&&N<=12305||N>=12308&&N<=12319||N===12336)||si["CJK Unified Ideographs Extension A"](N)||si["CJK Unified Ideographs"](N)||si["Enclosed CJK Letters and Months"](N)||si["Hangul Compatibility Jamo"](N)||si["Hangul Jamo Extended-A"](N)||si["Hangul Jamo Extended-B"](N)||si["Hangul Jamo"](N)||si["Hangul Syllables"](N)||si.Hiragana(N)||si["Ideographic Description Characters"](N)||si.Kanbun(N)||si["Kangxi Radicals"](N)||si["Katakana Phonetic Extensions"](N)||si.Katakana(N)&&N!==12540||!(!si["Halfwidth and Fullwidth Forms"](N)||N===65288||N===65289||N===65293||N>=65306&&N<=65310||N===65339||N===65341||N===65343||N>=65371&&N<=65503||N===65507||N>=65512&&N<=65519)||!(!si["Small Form Variants"](N)||N>=65112&&N<=65118||N>=65123&&N<=65126)||si["Unified Canadian Aboriginal Syllabics"](N)||si["Unified Canadian Aboriginal Syllabics Extended"](N)||si["Vertical Forms"](N)||si["Yijing Hexagram Symbols"](N)||si["Yi Syllables"](N)||si["Yi Radicals"](N))))}function Sc(N){return!(Ps(N)||function(G){return!!(si["Latin-1 Supplement"](G)&&(G===167||G===169||G===174||G===177||G===188||G===189||G===190||G===215||G===247)||si["General Punctuation"](G)&&(G===8214||G===8224||G===8225||G===8240||G===8241||G===8251||G===8252||G===8258||G===8263||G===8264||G===8265||G===8273)||si["Letterlike Symbols"](G)||si["Number Forms"](G)||si["Miscellaneous Technical"](G)&&(G>=8960&&G<=8967||G>=8972&&G<=8991||G>=8996&&G<=9e3||G===9003||G>=9085&&G<=9114||G>=9150&&G<=9165||G===9167||G>=9169&&G<=9179||G>=9186&&G<=9215)||si["Control Pictures"](G)&&G!==9251||si["Optical Character Recognition"](G)||si["Enclosed Alphanumerics"](G)||si["Geometric Shapes"](G)||si["Miscellaneous Symbols"](G)&&!(G>=9754&&G<=9759)||si["Miscellaneous Symbols and Arrows"](G)&&(G>=11026&&G<=11055||G>=11088&&G<=11097||G>=11192&&G<=11243)||si["CJK Symbols and Punctuation"](G)||si.Katakana(G)||si["Private Use Area"](G)||si["CJK Compatibility Forms"](G)||si["Small Form Variants"](G)||si["Halfwidth and Fullwidth Forms"](G)||G===8734||G===8756||G===8757||G>=9984&&G<=10087||G>=10102&&G<=10131||G===65532||G===65533)}(N))}function tl(N){return si.Arabic(N)||si["Arabic Supplement"](N)||si["Arabic Extended-A"](N)||si["Arabic Presentation Forms-A"](N)||si["Arabic Presentation Forms-B"](N)}function mu(N){return N>=1424&&N<=2303||si["Arabic Presentation Forms-A"](N)||si["Arabic Presentation Forms-B"](N)}function gu(N,G){return!(!G&&mu(N)||N>=2304&&N<=3583||N>=3840&&N<=4255||si.Khmer(N))}function ja(N){for(var G=0,fe=N;G-1&&(Ka=nl),Id&&Id(N)};function jf(){yu.fire(new it("pluginStateChange",{pluginStatus:Ka,pluginURL:Xi}))}var yu=new Lt,Dp=function(){return Ka},rp=function(){if(Ka!==vu||!Xi)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ka=Rd,jf(),Xi&&bn({url:Xi},function(N){N?Xc(N):(Ka=Ld,jf())})},Lu={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ka===Ld||Lu.applyArabicShaping!=null},isLoading:function(){return Ka===Rd},setState:function(N){Ka=N.pluginStatus,Xi=N.pluginURL},isParsed:function(){return Lu.applyArabicShaping!=null&&Lu.processBidirectionalText!=null&&Lu.processStyledBidirectionalText!=null},getPluginURL:function(){return Xi}},us=function(N,G){this.zoom=N,G?(this.now=G.now,this.fadeDuration=G.fadeDuration,this.zoomHistory=G.zoomHistory,this.transition=G.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Fc,this.transition={})};us.prototype.isSupportedScript=function(N){return function(G,fe){for(var Ae=0,Qe=G;Aethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:G+(1-G)*fe}:{fromScale:.5,toScale:1,t:1-(1-fe)*G}};var Qf=function(N,G){this.property=N,this.value=G,this.expression=function(fe,Ae){if(ep(fe))return new Bc(fe,Ae);if(Rp(fe)){var Qe=rf(fe,Ae);if(Qe.result==="error")throw new Error(Qe.value.map(function(ut){return ut.key+": "+ut.message}).join(", "));return Qe.value}var et=fe;return typeof fe=="string"&&Ae.type==="color"&&(et=Fr.parse(fe)),{kind:"constant",evaluate:function(){return et}}}(G===void 0?N.specification.default:G,N.specification)};Qf.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Qf.prototype.possiblyEvaluate=function(N,G,fe){return this.property.possiblyEvaluate(this,N,G,fe)};var fd=function(N){this.property=N,this.value=new Qf(N,void 0)};fd.prototype.transitioned=function(N,G){return new _h(this.property,this.value,G,x({},N.transition,this.transition),N.now)},fd.prototype.untransitioned=function(){return new _h(this.property,this.value,null,{},0)};var Hf=function(N){this._properties=N,this._values=Object.create(N.defaultTransitionablePropertyValues)};Hf.prototype.getValue=function(N){return I(this._values[N].value.value)},Hf.prototype.setValue=function(N,G){this._values.hasOwnProperty(N)||(this._values[N]=new fd(this._values[N].property)),this._values[N].value=new Qf(this._values[N].property,G===null?void 0:I(G))},Hf.prototype.getTransition=function(N){return I(this._values[N].transition)},Hf.prototype.setTransition=function(N,G){this._values.hasOwnProperty(N)||(this._values[N]=new fd(this._values[N].property)),this._values[N].transition=I(G)||void 0},Hf.prototype.serialize=function(){for(var N={},G=0,fe=Object.keys(this._values);Gthis.end)return this.prior=null,Qe;if(this.value.isDataDriven())return this.prior=null,Qe;if(Ae=1)return 1;var Bt=Tt*Tt,rn=Bt*Tt;return 4*(Tt<.5?rn:3*(Tt-Bt)+rn-.75)}(ut))}return Qe};var Gc=function(N){this._properties=N,this._values=Object.create(N.defaultTransitioningPropertyValues)};Gc.prototype.possiblyEvaluate=function(N,G,fe){for(var Ae=new Dd(this._properties),Qe=0,et=Object.keys(this._values);Qeet.zoomHistory.lastIntegerZoom?{from:fe,to:Ae}:{from:Qe,to:Ae}},G.prototype.interpolate=function(fe){return fe},G}(fa),Zf=function(N){this.specification=N};Zf.prototype.possiblyEvaluate=function(N,G,fe,Ae){if(N.value!==void 0){if(N.expression.kind==="constant"){var Qe=N.expression.evaluate(G,null,{},fe,Ae);return this._calculate(Qe,Qe,Qe,G)}return this._calculate(N.expression.evaluate(new us(Math.floor(G.zoom-1),G)),N.expression.evaluate(new us(Math.floor(G.zoom),G)),N.expression.evaluate(new us(Math.floor(G.zoom+1),G)),G)}},Zf.prototype._calculate=function(N,G,fe,Ae){return Ae.zoom>Ae.zoomHistory.lastIntegerZoom?{from:N,to:G}:{from:fe,to:G}},Zf.prototype.interpolate=function(N){return N};var Zl=function(N){this.specification=N};Zl.prototype.possiblyEvaluate=function(N,G,fe,Ae){return!!N.expression.evaluate(G,null,{},fe,Ae)},Zl.prototype.interpolate=function(){return!1};var Jl=function(N){for(var G in this.properties=N,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],N){var fe=N[G];fe.specification.overridable&&this.overridableProperties.push(G);var Ae=this.defaultPropertyValues[G]=new Qf(fe,void 0),Qe=this.defaultTransitionablePropertyValues[G]=new fd(fe);this.defaultTransitioningPropertyValues[G]=Qe.untransitioned(),this.defaultPossiblyEvaluatedValues[G]=Ae.possiblyEvaluate({})}};pi("DataDrivenProperty",fa),pi("DataConstantProperty",Vi),pi("CrossFadedDataDrivenProperty",au),pi("CrossFadedProperty",Zf),pi("ColorRampProperty",Zl);var Bd="-transition",Qs=function(N){function G(fe,Ae){if(N.call(this),this.id=fe.id,this.type=fe.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},fe.type!=="custom"&&(this.metadata=fe.metadata,this.minzoom=fe.minzoom,this.maxzoom=fe.maxzoom,fe.type!=="background"&&(this.source=fe.source,this.sourceLayer=fe["source-layer"],this.filter=fe.filter),Ae.layout&&(this._unevaluatedLayout=new dd(Ae.layout)),Ae.paint)){for(var Qe in this._transitionablePaint=new Hf(Ae.paint),fe.paint)this.setPaintProperty(Qe,fe.paint[Qe],{validate:!1});for(var et in fe.layout)this.setLayoutProperty(et,fe.layout[et],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Dd(Ae.paint)}}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},G.prototype.getLayoutProperty=function(fe){return fe==="visibility"?this.visibility:this._unevaluatedLayout.getValue(fe)},G.prototype.setLayoutProperty=function(fe,Ae,Qe){if(Qe===void 0&&(Qe={}),Ae!=null){var et="layers."+this.id+".layout."+fe;if(this._validate(xh,et,fe,Ae,Qe))return}fe!=="visibility"?this._unevaluatedLayout.setValue(fe,Ae):this.visibility=Ae},G.prototype.getPaintProperty=function(fe){return L(fe,Bd)?this._transitionablePaint.getTransition(fe.slice(0,-11)):this._transitionablePaint.getValue(fe)},G.prototype.setPaintProperty=function(fe,Ae,Qe){if(Qe===void 0&&(Qe={}),Ae!=null){var et="layers."+this.id+".paint."+fe;if(this._validate(pu,et,fe,Ae,Qe))return!1}if(L(fe,Bd))return this._transitionablePaint.setTransition(fe.slice(0,-11),Ae||void 0),!1;var ut=this._transitionablePaint._values[fe],Tt=ut.property.specification["property-type"]==="cross-faded-data-driven",Bt=ut.value.isDataDriven(),rn=ut.value;this._transitionablePaint.setValue(fe,Ae),this._handleSpecialPaintPropertyUpdate(fe);var an=this._transitionablePaint._values[fe].value;return an.isDataDriven()||Bt||Tt||this._handleOverridablePaintPropertyUpdate(fe,rn,an)},G.prototype._handleSpecialPaintPropertyUpdate=function(fe){},G.prototype._handleOverridablePaintPropertyUpdate=function(fe,Ae,Qe){return!1},G.prototype.isHidden=function(fe){return!!(this.minzoom&&fe=this.maxzoom)||this.visibility==="none"},G.prototype.updateTransitions=function(fe){this._transitioningPaint=this._transitionablePaint.transitioned(fe,this._transitioningPaint)},G.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},G.prototype.recalculate=function(fe,Ae){fe.getCrossfadeParameters&&(this._crossfadeParameters=fe.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(fe,void 0,Ae)),this.paint=this._transitioningPaint.possiblyEvaluate(fe,void 0,Ae)},G.prototype.serialize=function(){var fe={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(fe.layout=fe.layout||{},fe.layout.visibility=this.visibility),k(fe,function(Ae,Qe){return!(Ae===void 0||Qe==="layout"&&!Object.keys(Ae).length||Qe==="paint"&&!Object.keys(Ae).length)})},G.prototype._validate=function(fe,Ae,Qe,et,ut){return ut===void 0&&(ut={}),(!ut||ut.validate!==!1)&&js(this,fe.call(xl,{key:Ae,layerType:this.type,objectKey:Qe,value:et,styleSpec:xt,style:{glyphs:!0,sprite:!0}}))},G.prototype.is3D=function(){return!1},G.prototype.isTileClipped=function(){return!1},G.prototype.hasOffscreenPass=function(){return!1},G.prototype.resize=function(){},G.prototype.isStateDependent=function(){for(var fe in this.paint._values){var Ae=this.paint.get(fe);if(Ae instanceof rl&&cd(Ae.property.specification)&&(Ae.value.kind==="source"||Ae.value.kind==="composite")&&Ae.value.isStateDependent)return!0}return!1},G}(Lt),kc={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Iu=function(N,G){this._structArray=N,this._pos1=G*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ea=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function El(N,G){G===void 0&&(G=1);var fe=0,Ae=0;return{members:N.map(function(Qe){var et,ut=(et=Qe.type,kc[et].BYTES_PER_ELEMENT),Tt=fe=_l(fe,Math.max(G,ut)),Bt=Qe.components||1;return Ae=Math.max(Ae,ut),fe+=ut*Bt,{name:Qe.name,type:Qe.type,components:Bt,offset:Tt}}),size:_l(fe,Math.max(Ae,G)),alignment:G}}function _l(N,G){return Math.ceil(N/G)*G}Ea.serialize=function(N,G){return N._trim(),G&&(N.isTransferred=!0,G.push(N.arrayBuffer)),{length:N.length,arrayBuffer:N.arrayBuffer}},Ea.deserialize=function(N){var G=Object.create(this.prototype);return G.arrayBuffer=N.arrayBuffer,G.length=N.length,G.capacity=N.arrayBuffer.byteLength/G.bytesPerElement,G._refreshViews(),G},Ea.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ea.prototype.clear=function(){this.length=0},Ea.prototype.resize=function(N){this.reserve(N),this.length=N},Ea.prototype.reserve=function(N){if(N>this.capacity){this.capacity=Math.max(N,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var G=this.uint8;this._refreshViews(),G&&this.uint8.set(G)}},Ea.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Mi=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,fe,Ae)},G.prototype.emplace=function(fe,Ae,Qe){var et=2*fe;return this.int16[et+0]=Ae,this.int16[et+1]=Qe,fe},G}(Ea);Mi.prototype.bytesPerElement=4,pi("StructArrayLayout2i4",Mi);var Sf=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et){var ut=this.length;return this.resize(ut+1),this.emplace(ut,fe,Ae,Qe,et)},G.prototype.emplace=function(fe,Ae,Qe,et,ut){var Tt=4*fe;return this.int16[Tt+0]=Ae,this.int16[Tt+1]=Qe,this.int16[Tt+2]=et,this.int16[Tt+3]=ut,fe},G}(Ea);Sf.prototype.bytesPerElement=8,pi("StructArrayLayout4i8",Sf);var Ot=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,fe,Ae,Qe,et,ut,Tt)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=6*fe;return this.int16[rn+0]=Ae,this.int16[rn+1]=Qe,this.int16[rn+2]=et,this.int16[rn+3]=ut,this.int16[rn+4]=Tt,this.int16[rn+5]=Bt,fe},G}(Ea);Ot.prototype.bytesPerElement=12,pi("StructArrayLayout2i4i12",Ot);var Mt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,fe,Ae,Qe,et,ut,Tt)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=4*fe,an=8*fe;return this.int16[rn+0]=Ae,this.int16[rn+1]=Qe,this.uint8[an+4]=et,this.uint8[an+5]=ut,this.uint8[an+6]=Tt,this.uint8[an+7]=Bt,fe},G}(Ea);Mt.prototype.bytesPerElement=8,pi("StructArrayLayout2i4ub8",Mt);var Ft=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,fe,Ae)},G.prototype.emplace=function(fe,Ae,Qe){var et=2*fe;return this.float32[et+0]=Ae,this.float32[et+1]=Qe,fe},G}(Ea);Ft.prototype.bytesPerElement=8,pi("StructArrayLayout2f8",Ft);var J=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n){var Dn=this.length;return this.resize(Dn+1),this.emplace(Dn,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn){var Cn=10*fe;return this.uint16[Cn+0]=Ae,this.uint16[Cn+1]=Qe,this.uint16[Cn+2]=et,this.uint16[Cn+3]=ut,this.uint16[Cn+4]=Tt,this.uint16[Cn+5]=Bt,this.uint16[Cn+6]=rn,this.uint16[Cn+7]=an,this.uint16[Cn+8]=_n,this.uint16[Cn+9]=Dn,fe},G}(Ea);J.prototype.bytesPerElement=20,pi("StructArrayLayout10ui20",J);var le=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn){var Jn=this.length;return this.resize(Jn+1),this.emplace(Jn,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn){var lr=12*fe;return this.int16[lr+0]=Ae,this.int16[lr+1]=Qe,this.int16[lr+2]=et,this.int16[lr+3]=ut,this.uint16[lr+4]=Tt,this.uint16[lr+5]=Bt,this.uint16[lr+6]=rn,this.uint16[lr+7]=an,this.int16[lr+8]=_n,this.int16[lr+9]=Dn,this.int16[lr+10]=Cn,this.int16[lr+11]=Jn,fe},G}(Ea);le.prototype.bytesPerElement=24,pi("StructArrayLayout4i4ui4i24",le);var ie=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=3*fe;return this.float32[ut+0]=Ae,this.float32[ut+1]=Qe,this.float32[ut+2]=et,fe},G}(Ea);ie.prototype.bytesPerElement=12,pi("StructArrayLayout3f12",ie);var V=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,fe)},G.prototype.emplace=function(fe,Ae){var Qe=1*fe;return this.uint32[Qe+0]=Ae,fe},G}(Ea);V.prototype.bytesPerElement=4,pi("StructArrayLayout1ul4",V);var ne=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an){var _n=this.length;return this.resize(_n+1),this.emplace(_n,fe,Ae,Qe,et,ut,Tt,Bt,rn,an)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n){var Dn=10*fe,Cn=5*fe;return this.int16[Dn+0]=Ae,this.int16[Dn+1]=Qe,this.int16[Dn+2]=et,this.int16[Dn+3]=ut,this.int16[Dn+4]=Tt,this.int16[Dn+5]=Bt,this.uint32[Cn+3]=rn,this.uint16[Dn+8]=an,this.uint16[Dn+9]=_n,fe},G}(Ea);ne.prototype.bytesPerElement=20,pi("StructArrayLayout6i1ul2ui20",ne);var ge=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,fe,Ae,Qe,et,ut,Tt)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=6*fe;return this.int16[rn+0]=Ae,this.int16[rn+1]=Qe,this.int16[rn+2]=et,this.int16[rn+3]=ut,this.int16[rn+4]=Tt,this.int16[rn+5]=Bt,fe},G}(Ea);ge.prototype.bytesPerElement=12,pi("StructArrayLayout2i2i2i12",ge);var xe=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut){var Tt=this.length;return this.resize(Tt+1),this.emplace(Tt,fe,Ae,Qe,et,ut)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt){var Bt=4*fe,rn=8*fe;return this.float32[Bt+0]=Ae,this.float32[Bt+1]=Qe,this.float32[Bt+2]=et,this.int16[rn+6]=ut,this.int16[rn+7]=Tt,fe},G}(Ea);xe.prototype.bytesPerElement=16,pi("StructArrayLayout2f1f2i16",xe);var Me=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et){var ut=this.length;return this.resize(ut+1),this.emplace(ut,fe,Ae,Qe,et)},G.prototype.emplace=function(fe,Ae,Qe,et,ut){var Tt=12*fe,Bt=3*fe;return this.uint8[Tt+0]=Ae,this.uint8[Tt+1]=Qe,this.float32[Bt+1]=et,this.float32[Bt+2]=ut,fe},G}(Ea);Me.prototype.bytesPerElement=12,pi("StructArrayLayout2ub2f12",Me);var Fe=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=3*fe;return this.uint16[ut+0]=Ae,this.uint16[ut+1]=Qe,this.uint16[ut+2]=et,fe},G}(Ea);Fe.prototype.bytesPerElement=6,pi("StructArrayLayout3ui6",Fe);var Je=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr){var Jr=this.length;return this.resize(Jr+1),this.emplace(Jr,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr){var uo=24*fe,ro=12*fe,Po=48*fe;return this.int16[uo+0]=Ae,this.int16[uo+1]=Qe,this.uint16[uo+2]=et,this.uint16[uo+3]=ut,this.uint32[ro+2]=Tt,this.uint32[ro+3]=Bt,this.uint32[ro+4]=rn,this.uint16[uo+10]=an,this.uint16[uo+11]=_n,this.uint16[uo+12]=Dn,this.float32[ro+7]=Cn,this.float32[ro+8]=Jn,this.uint8[Po+36]=lr,this.uint8[Po+37]=Ar,this.uint8[Po+38]=Or,this.uint32[ro+10]=jr,this.int16[uo+22]=Jr,fe},G}(Ea);Je.prototype.bytesPerElement=48,pi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Je);var rt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr,uo,ro,Po,gi,ni,Ti,vi,na,Ji,La){var ca=this.length;return this.resize(ca+1),this.emplace(ca,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr,uo,ro,Po,gi,ni,Ti,vi,na,Ji,La)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr,uo,ro,Po,gi,ni,Ti,vi,na,Ji,La,ca){var Zi=34*fe,Bs=17*fe;return this.int16[Zi+0]=Ae,this.int16[Zi+1]=Qe,this.int16[Zi+2]=et,this.int16[Zi+3]=ut,this.int16[Zi+4]=Tt,this.int16[Zi+5]=Bt,this.int16[Zi+6]=rn,this.int16[Zi+7]=an,this.uint16[Zi+8]=_n,this.uint16[Zi+9]=Dn,this.uint16[Zi+10]=Cn,this.uint16[Zi+11]=Jn,this.uint16[Zi+12]=lr,this.uint16[Zi+13]=Ar,this.uint16[Zi+14]=Or,this.uint16[Zi+15]=jr,this.uint16[Zi+16]=Jr,this.uint16[Zi+17]=uo,this.uint16[Zi+18]=ro,this.uint16[Zi+19]=Po,this.uint16[Zi+20]=gi,this.uint16[Zi+21]=ni,this.uint16[Zi+22]=Ti,this.uint32[Bs+12]=vi,this.float32[Bs+13]=na,this.float32[Bs+14]=Ji,this.float32[Bs+15]=La,this.float32[Bs+16]=ca,fe},G}(Ea);rt.prototype.bytesPerElement=68,pi("StructArrayLayout8i15ui1ul4f68",rt);var dt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,fe)},G.prototype.emplace=function(fe,Ae){var Qe=1*fe;return this.float32[Qe+0]=Ae,fe},G}(Ea);dt.prototype.bytesPerElement=4,pi("StructArrayLayout1f4",dt);var mt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=3*fe;return this.int16[ut+0]=Ae,this.int16[ut+1]=Qe,this.int16[ut+2]=et,fe},G}(Ea);mt.prototype.bytesPerElement=6,pi("StructArrayLayout3i6",mt);var Et=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=2*fe,Tt=4*fe;return this.uint32[ut+0]=Ae,this.uint16[Tt+2]=Qe,this.uint16[Tt+3]=et,fe},G}(Ea);Et.prototype.bytesPerElement=8,pi("StructArrayLayout1ul2ui8",Et);var Vt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,fe,Ae)},G.prototype.emplace=function(fe,Ae,Qe){var et=2*fe;return this.uint16[et+0]=Ae,this.uint16[et+1]=Qe,fe},G}(Ea);Vt.prototype.bytesPerElement=4,pi("StructArrayLayout2ui4",Vt);var jt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,fe)},G.prototype.emplace=function(fe,Ae){var Qe=1*fe;return this.uint16[Qe+0]=Ae,fe},G}(Ea);jt.prototype.bytesPerElement=2,pi("StructArrayLayout1ui2",jt);var Nt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et){var ut=this.length;return this.resize(ut+1),this.emplace(ut,fe,Ae,Qe,et)},G.prototype.emplace=function(fe,Ae,Qe,et,ut){var Tt=4*fe;return this.float32[Tt+0]=Ae,this.float32[Tt+1]=Qe,this.float32[Tt+2]=et,this.float32[Tt+3]=ut,fe},G}(Ea);Nt.prototype.bytesPerElement=16,pi("StructArrayLayout4f16",Nt);var cn=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return fe.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},fe.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},fe.x1.get=function(){return this._structArray.int16[this._pos2+2]},fe.y1.get=function(){return this._structArray.int16[this._pos2+3]},fe.x2.get=function(){return this._structArray.int16[this._pos2+4]},fe.y2.get=function(){return this._structArray.int16[this._pos2+5]},fe.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},fe.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},fe.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},fe.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(G.prototype,fe),G}(Iu);cn.prototype.size=20;var sn=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new cn(this,fe)},G}(ne);pi("CollisionBoxArray",sn);var xn=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return fe.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},fe.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},fe.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},fe.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},fe.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},fe.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},fe.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},fe.segment.get=function(){return this._structArray.uint16[this._pos2+10]},fe.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},fe.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},fe.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},fe.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},fe.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},fe.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},fe.placedOrientation.set=function(Ae){this._structArray.uint8[this._pos1+37]=Ae},fe.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},fe.hidden.set=function(Ae){this._structArray.uint8[this._pos1+38]=Ae},fe.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},fe.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+10]=Ae},fe.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(G.prototype,fe),G}(Iu);xn.prototype.size=48;var pn=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new xn(this,fe)},G}(Je);pi("PlacedSymbolArray",pn);var Ln=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return fe.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},fe.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},fe.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},fe.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},fe.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},fe.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},fe.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},fe.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},fe.key.get=function(){return this._structArray.uint16[this._pos2+8]},fe.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},fe.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},fe.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},fe.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},fe.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},fe.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},fe.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},fe.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},fe.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},fe.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},fe.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},fe.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},fe.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},fe.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},fe.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},fe.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+12]=Ae},fe.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},fe.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},fe.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},fe.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(G.prototype,fe),G}(Iu);Ln.prototype.size=68;var On=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new Ln(this,fe)},G}(rt);pi("SymbolInstanceArray",On);var An=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.getoffsetX=function(fe){return this.float32[1*fe+0]},G}(dt);pi("GlyphOffsetArray",An);var Sn=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.getx=function(fe){return this.int16[3*fe+0]},G.prototype.gety=function(fe){return this.int16[3*fe+1]},G.prototype.gettileUnitDistanceFromAnchor=function(fe){return this.int16[3*fe+2]},G}(mt);pi("SymbolLineVertexArray",Sn);var rr=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return fe.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},fe.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},fe.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(G.prototype,fe),G}(Iu);rr.prototype.size=8;var Dr=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new rr(this,fe)},G}(Et);pi("FeatureIndexArray",Dr);var Pr=El([{name:"a_pos",components:2,type:"Int16"}],4).members,Zr=function(N){N===void 0&&(N=[]),this.segments=N};function Mo(N,G){return 256*(N=S(Math.floor(N),0,255))+S(Math.floor(G),0,255)}Zr.prototype.prepareSegment=function(N,G,fe,Ae){var Qe=this.segments[this.segments.length-1];return N>Zr.MAX_VERTEX_ARRAY_LENGTH&&$("Max vertices per segment is "+Zr.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+N),(!Qe||Qe.vertexLength+N>Zr.MAX_VERTEX_ARRAY_LENGTH||Qe.sortKey!==Ae)&&(Qe={vertexOffset:G.length,primitiveOffset:fe.length,vertexLength:0,primitiveLength:0},Ae!==void 0&&(Qe.sortKey=Ae),this.segments.push(Qe)),Qe},Zr.prototype.get=function(){return this.segments},Zr.prototype.destroy=function(){for(var N=0,G=this.segments;N>>16)*Tt&65535)<<16)&4294967295)<<15|rn>>>17))*Bt+(((rn>>>16)*Bt&65535)<<16)&4294967295)<<13|et>>>19))+((5*(et>>>16)&65535)<<16)&4294967295))+((58964+(ut>>>16)&65535)<<16);switch(rn=0,Ae){case 3:rn^=(255&G.charCodeAt(an+2))<<16;case 2:rn^=(255&G.charCodeAt(an+1))<<8;case 1:et^=rn=(65535&(rn=(rn=(65535&(rn^=255&G.charCodeAt(an)))*Tt+(((rn>>>16)*Tt&65535)<<16)&4294967295)<<15|rn>>>17))*Bt+(((rn>>>16)*Bt&65535)<<16)&4294967295}return et^=G.length,et=2246822507*(65535&(et^=et>>>16))+((2246822507*(et>>>16)&65535)<<16)&4294967295,et=3266489909*(65535&(et^=et>>>13))+((3266489909*(et>>>16)&65535)<<16)&4294967295,(et^=et>>>16)>>>0}}),zo=O(function(N){N.exports=function(G,fe){for(var Ae,Qe=G.length,et=fe^Qe,ut=0;Qe>=4;)Ae=1540483477*(65535&(Ae=255&G.charCodeAt(ut)|(255&G.charCodeAt(++ut))<<8|(255&G.charCodeAt(++ut))<<16|(255&G.charCodeAt(++ut))<<24))+((1540483477*(Ae>>>16)&65535)<<16),et=1540483477*(65535&et)+((1540483477*(et>>>16)&65535)<<16)^(Ae=1540483477*(65535&(Ae^=Ae>>>24))+((1540483477*(Ae>>>16)&65535)<<16)),Qe-=4,++ut;switch(Qe){case 3:et^=(255&G.charCodeAt(ut+2))<<16;case 2:et^=(255&G.charCodeAt(ut+1))<<8;case 1:et=1540483477*(65535&(et^=255&G.charCodeAt(ut)))+((1540483477*(et>>>16)&65535)<<16)}return et=1540483477*(65535&(et^=et>>>13))+((1540483477*(et>>>16)&65535)<<16),(et^=et>>>15)>>>0}}),yi=vo,Si=vo,Hr=zo;yi.murmur3=Si,yi.murmur2=Hr;var Lo=function(){this.ids=[],this.positions=[],this.indexed=!1};Lo.prototype.add=function(N,G,fe,Ae){this.ids.push(Io(N)),this.positions.push(G,fe,Ae)},Lo.prototype.getPositions=function(N){for(var G=Io(N),fe=0,Ae=this.ids.length-1;fe>1;this.ids[Qe]>=G?Ae=Qe:fe=Qe+1}for(var et=[];this.ids[fe]===G;){var ut=this.positions[3*fe],Tt=this.positions[3*fe+1],Bt=this.positions[3*fe+2];et.push({index:ut,start:Tt,end:Bt}),fe++}return et},Lo.serialize=function(N,G){var fe=new Float64Array(N.ids),Ae=new Uint32Array(N.positions);return $i(fe,Ae,0,fe.length-1),G&&G.push(fe.buffer,Ae.buffer),{ids:fe,positions:Ae}},Lo.deserialize=function(N){var G=new Lo;return G.ids=N.ids,G.positions=N.positions,G.indexed=!0,G};var ki=Math.pow(2,53)-1;function Io(N){var G=+N;return!isNaN(G)&&G<=ki?G:yi(String(N))}function $i(N,G,fe,Ae){for(;fe>1],et=fe-1,ut=Ae+1;;){do et++;while(N[et]Qe);if(et>=ut)break;Ui(N,et,ut),Ui(G,3*et,3*ut),Ui(G,3*et+1,3*ut+1),Ui(G,3*et+2,3*ut+2)}ut-feut.x+1||Btut.y+1)&&$("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return fe}function tc(N,G){return{type:N.type,id:N.id,properties:N.properties,geometry:G?qf(N):[]}}function Wf(N,G,fe,Ae,Qe){N.emplaceBack(2*G+(Ae+1)/2,2*fe+(Qe+1)/2)}var Rl=function(N){this.zoom=N.zoom,this.overscaling=N.overscaling,this.layers=N.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=N.index,this.hasPattern=!1,this.layoutVertexArray=new Mi,this.indexArray=new Fe,this.segments=new Zr,this.programConfigurations=new Tc(N.layers,N.zoom),this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function lg(N,G){for(var fe=0;fe1){if(eh(N,G))return!0;for(var Ae=0;Ae1?N.distSqr(fe):N.distSqr(fe.sub(G)._mult(Qe)._add(G))}function O1(N,G){for(var fe,Ae,Qe,et=!1,ut=0;utG.y!=Qe.y>G.y&&G.x<(Qe.x-Ae.x)*(G.y-Ae.y)/(Qe.y-Ae.y)+Ae.x&&(et=!et);return et}function oc(N,G){for(var fe=!1,Ae=0,Qe=N.length-1;AeG.y!=ut.y>G.y&&G.x<(ut.x-et.x)*(G.y-et.y)/(ut.y-et.y)+et.x&&(fe=!fe)}return fe}function _m(N,G,fe){var Ae=fe[0],Qe=fe[2];if(N.xQe.x&&G.x>Qe.x||N.yQe.y&&G.y>Qe.y)return!1;var et=Q(N,G,fe[0]);return et!==Q(N,G,fe[1])||et!==Q(N,G,fe[2])||et!==Q(N,G,fe[3])}function Yg(N,G,fe){var Ae=G.paint.get(N).value;return Ae.kind==="constant"?Ae.value:fe.programConfigurations.get(G.id).getMaxValue(N)}function wm(N){return Math.sqrt(N[0]*N[0]+N[1]*N[1])}function cb(N,G,fe,Ae,Qe){if(!G[0]&&!G[1])return N;var et=a.convert(G)._mult(Qe);fe==="viewport"&&et._rotate(-Ae);for(var ut=[],Tt=0;Tt=Hs||an<0||an>=Hs)){var _n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,N.sortKey),Dn=_n.vertexLength;Wf(this.layoutVertexArray,rn,an,-1,-1),Wf(this.layoutVertexArray,rn,an,1,-1),Wf(this.layoutVertexArray,rn,an,1,1),Wf(this.layoutVertexArray,rn,an,-1,1),this.indexArray.emplaceBack(Dn,Dn+1,Dn+2),this.indexArray.emplaceBack(Dn,Dn+3,Dn+2),_n.vertexLength+=4,_n.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,N,fe,{},Ae)},pi("CircleBucket",Rl,{omit:["layers"]});var Oh=new Jl({"circle-sort-key":new fa(xt.layout_circle["circle-sort-key"])}),Ex={paint:new Jl({"circle-radius":new fa(xt.paint_circle["circle-radius"]),"circle-color":new fa(xt.paint_circle["circle-color"]),"circle-blur":new fa(xt.paint_circle["circle-blur"]),"circle-opacity":new fa(xt.paint_circle["circle-opacity"]),"circle-translate":new Vi(xt.paint_circle["circle-translate"]),"circle-translate-anchor":new Vi(xt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Vi(xt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Vi(xt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new fa(xt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new fa(xt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new fa(xt.paint_circle["circle-stroke-opacity"])}),layout:Oh},kf=typeof Float32Array<"u"?Float32Array:Array;function Hv(N){return N[0]=1,N[1]=0,N[2]=0,N[3]=0,N[4]=0,N[5]=1,N[6]=0,N[7]=0,N[8]=0,N[9]=0,N[10]=1,N[11]=0,N[12]=0,N[13]=0,N[14]=0,N[15]=1,N}function Om(N,G,fe){var Ae=G[0],Qe=G[1],et=G[2],ut=G[3],Tt=G[4],Bt=G[5],rn=G[6],an=G[7],_n=G[8],Dn=G[9],Cn=G[10],Jn=G[11],lr=G[12],Ar=G[13],Or=G[14],jr=G[15],Jr=fe[0],uo=fe[1],ro=fe[2],Po=fe[3];return N[0]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[1]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[2]=Jr*et+uo*rn+ro*Cn+Po*Or,N[3]=Jr*ut+uo*an+ro*Jn+Po*jr,Jr=fe[4],uo=fe[5],ro=fe[6],Po=fe[7],N[4]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[5]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[6]=Jr*et+uo*rn+ro*Cn+Po*Or,N[7]=Jr*ut+uo*an+ro*Jn+Po*jr,Jr=fe[8],uo=fe[9],ro=fe[10],Po=fe[11],N[8]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[9]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[10]=Jr*et+uo*rn+ro*Cn+Po*Or,N[11]=Jr*ut+uo*an+ro*Jn+Po*jr,Jr=fe[12],uo=fe[13],ro=fe[14],Po=fe[15],N[12]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[13]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[14]=Jr*et+uo*rn+ro*Cn+Po*Or,N[15]=Jr*ut+uo*an+ro*Jn+Po*jr,N}Math.hypot||(Math.hypot=function(){for(var N=arguments,G=0,fe=arguments.length;fe--;)G+=N[fe]*N[fe];return Math.sqrt(G)});var Sm=Om,ap,Bp=function(N,G,fe){return N[0]=G[0]-fe[0],N[1]=G[1]-fe[1],N[2]=G[2]-fe[2],N};function P0(N,G,fe){var Ae=G[0],Qe=G[1],et=G[2],ut=G[3];return N[0]=fe[0]*Ae+fe[4]*Qe+fe[8]*et+fe[12]*ut,N[1]=fe[1]*Ae+fe[5]*Qe+fe[9]*et+fe[13]*ut,N[2]=fe[2]*Ae+fe[6]*Qe+fe[10]*et+fe[14]*ut,N[3]=fe[3]*Ae+fe[7]*Qe+fe[11]*et+fe[15]*ut,N}ap=new kf(3),kf!=Float32Array&&(ap[0]=0,ap[1]=0,ap[2]=0),function(){var N=new kf(4);kf!=Float32Array&&(N[0]=0,N[1]=0,N[2]=0,N[3]=0)}();var cg=function(N){var G=N[0],fe=N[1];return G*G+fe*fe},Zv=(function(){var N=new kf(2);kf!=Float32Array&&(N[0]=0,N[1]=0)}(),function(N){function G(fe){N.call(this,fe,Ex)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.createBucket=function(fe){return new Rl(fe)},G.prototype.queryRadius=function(fe){var Ae=fe;return Yg("circle-radius",this,Ae)+Yg("circle-stroke-width",this,Ae)+wm(this.paint.get("circle-translate"))},G.prototype.queryIntersectsFeature=function(fe,Ae,Qe,et,ut,Tt,Bt,rn){for(var an=cb(fe,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Tt.angle,Bt),_n=this.paint.get("circle-radius").evaluate(Ae,Qe)+this.paint.get("circle-stroke-width").evaluate(Ae,Qe),Dn=this.paint.get("circle-pitch-alignment")==="map",Cn=Dn?an:function(gi,ni){return gi.map(function(Ti){return R0(Ti,ni)})}(an,rn),Jn=Dn?_n*Bt:_n,lr=0,Ar=et;lrN.width||Qe.height>N.height||fe.x>N.width-Qe.width||fe.y>N.height-Qe.height)throw new RangeError("out of range source coordinates for image copy");if(Qe.width>G.width||Qe.height>G.height||Ae.x>G.width-Qe.width||Ae.y>G.height-Qe.height)throw new RangeError("out of range destination coordinates for image copy");for(var ut=N.data,Tt=G.data,Bt=0;Bt80*fe){Ae=et=N[0],Qe=ut=N[1];for(var Jn=fe;Jn<_n;Jn+=fe)(Tt=N[Jn])et&&(et=Tt),Bt>ut&&(ut=Bt);rn=(rn=Math.max(et-Ae,ut-Qe))!==0?1/rn:0}return Kg(Dn,Cn,fe,Ae,Qe,rn),Cn}function Px(N,G,fe,Ae,Qe){var et,ut;if(Qe===hl(N,G,fe,Ae)>0)for(et=G;et=G;et-=Ae)ut=db(et,N[et],N[et+1],ut);return ut&&Cm(ut,ut.next)&&(T1(ut),ut=ut.next),ut}function zp(N,G){if(!N)return N;G||(G=N);var fe,Ae=N;do if(fe=!1,Ae.steiner||!Cm(Ae,Ae.next)&&bu(Ae.prev,Ae,Ae.next)!==0)Ae=Ae.next;else{if(T1(Ae),(Ae=G=Ae.prev)===Ae.next)break;fe=!0}while(fe||Ae!==G);return G}function Kg(N,G,fe,Ae,Qe,et,ut){if(N){!ut&&et&&function(an,_n,Dn,Cn){var Jn=an;do Jn.z===null&&(Jn.z=Jg(Jn.x,Jn.y,_n,Dn,Cn)),Jn.prevZ=Jn.prev,Jn.nextZ=Jn.next,Jn=Jn.next;while(Jn!==an);Jn.prevZ.nextZ=null,Jn.prevZ=null,function(lr){var Ar,Or,jr,Jr,uo,ro,Po,gi,ni=1;do{for(Or=lr,lr=null,uo=null,ro=0;Or;){for(ro++,jr=Or,Po=0,Ar=0;Ar0||gi>0&&jr;)Po!==0&&(gi===0||!jr||Or.z<=jr.z)?(Jr=Or,Or=Or.nextZ,Po--):(Jr=jr,jr=jr.nextZ,gi--),uo?uo.nextZ=Jr:lr=Jr,Jr.prevZ=uo,uo=Jr;Or=jr}uo.nextZ=null,ni*=2}while(ro>1)}(Jn)}(N,Ae,Qe,et);for(var Tt,Bt,rn=N;N.prev!==N.next;)if(Tt=N.prev,Bt=N.next,et?S1(N,Ae,Qe,et):M_(N))G.push(Tt.i/fe),G.push(N.i/fe),G.push(Bt.i/fe),T1(N),N=Bt.next,rn=Bt.next;else if((N=Bt)===rn){ut?ut===1?Kg(N=Tm(zp(N),G,fe),G,fe,Ae,Qe,et,2):ut===2&&zd(N,G,fe,Ae,Qe,et):Kg(zp(N),G,fe,Ae,Qe,et,1);break}}}function M_(N){var G=N.prev,fe=N,Ae=N.next;if(bu(G,fe,Ae)>=0)return!1;for(var Qe=N.next.next;Qe!==N.prev;){if(k1(G.x,G.y,fe.x,fe.y,Ae.x,Ae.y,Qe.x,Qe.y)&&bu(Qe.prev,Qe,Qe.next)>=0)return!1;Qe=Qe.next}return!0}function S1(N,G,fe,Ae){var Qe=N.prev,et=N,ut=N.next;if(bu(Qe,et,ut)>=0)return!1;for(var Tt=Qe.xet.x?Qe.x>ut.x?Qe.x:ut.x:et.x>ut.x?et.x:ut.x,an=Qe.y>et.y?Qe.y>ut.y?Qe.y:ut.y:et.y>ut.y?et.y:ut.y,_n=Jg(Tt,Bt,G,fe,Ae),Dn=Jg(rn,an,G,fe,Ae),Cn=N.prevZ,Jn=N.nextZ;Cn&&Cn.z>=_n&&Jn&&Jn.z<=Dn;){if(Cn!==N.prev&&Cn!==N.next&&k1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Cn.x,Cn.y)&&bu(Cn.prev,Cn,Cn.next)>=0||(Cn=Cn.prevZ,Jn!==N.prev&&Jn!==N.next&&k1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Jn.x,Jn.y)&&bu(Jn.prev,Jn,Jn.next)>=0))return!1;Jn=Jn.nextZ}for(;Cn&&Cn.z>=_n;){if(Cn!==N.prev&&Cn!==N.next&&k1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Cn.x,Cn.y)&&bu(Cn.prev,Cn,Cn.next)>=0)return!1;Cn=Cn.prevZ}for(;Jn&&Jn.z<=Dn;){if(Jn!==N.prev&&Jn!==N.next&&k1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Jn.x,Jn.y)&&bu(Jn.prev,Jn,Jn.next)>=0)return!1;Jn=Jn.nextZ}return!0}function Tm(N,G,fe){var Ae=N;do{var Qe=Ae.prev,et=Ae.next.next;!Cm(Qe,et)&&D0(Qe,Ae,Ae.next,et)&&Fp(Qe,et)&&Fp(et,Qe)&&(G.push(Qe.i/fe),G.push(Ae.i/fe),G.push(et.i/fe),T1(Ae),T1(Ae.next),Ae=N=et),Ae=Ae.next}while(Ae!==N);return zp(Ae)}function zd(N,G,fe,Ae,Qe,et){var ut=N;do{for(var Tt=ut.next.next;Tt!==ut.prev;){if(ut.i!==Tt.i&&zO(ut,Tt)){var Bt=qv(ut,Tt);return ut=zp(ut,ut.next),Bt=zp(Bt,Bt.next),Kg(ut,G,fe,Ae,Qe,et),void Kg(Bt,G,fe,Ae,Qe,et)}Tt=Tt.next}ut=ut.next}while(ut!==N)}function fp(N,G){return N.x-G.x}function I0(N,G){if(G=function(Ae,Qe){var et,ut=Qe,Tt=Ae.x,Bt=Ae.y,rn=-1/0;do{if(Bt<=ut.y&&Bt>=ut.next.y&&ut.next.y!==ut.y){var an=ut.x+(Bt-ut.y)*(ut.next.x-ut.x)/(ut.next.y-ut.y);if(an<=Tt&&an>rn){if(rn=an,an===Tt){if(Bt===ut.y)return ut;if(Bt===ut.next.y)return ut.next}et=ut.x=ut.x&&ut.x>=Cn&&Tt!==ut.x&&k1(Btet.x||ut.x===et.x&&E_(et,ut)))&&(et=ut,lr=_n)),ut=ut.next;while(ut!==Dn);return et}(N,G)){var fe=qv(G,N);zp(G,G.next),zp(fe,fe.next)}}function E_(N,G){return bu(N.prev,N,G.prev)<0&&bu(G.next,N,N.next)<0}function Jg(N,G,fe,Ae,Qe){return(N=1431655765&((N=858993459&((N=252645135&((N=16711935&((N=32767*(N-fe)*Qe)|N<<8))|N<<4))|N<<2))|N<<1))|(G=1431655765&((G=858993459&((G=252645135&((G=16711935&((G=32767*(G-Ae)*Qe)|G<<8))|G<<4))|G<<2))|G<<1))<<1}function P_(N){var G=N,fe=N;do(G.x=0&&(N-ut)*(Ae-Tt)-(fe-ut)*(G-Tt)>=0&&(fe-ut)*(et-Tt)-(Qe-ut)*(Ae-Tt)>=0}function zO(N,G){return N.next.i!==G.i&&N.prev.i!==G.i&&!function(fe,Ae){var Qe=fe;do{if(Qe.i!==fe.i&&Qe.next.i!==fe.i&&Qe.i!==Ae.i&&Qe.next.i!==Ae.i&&D0(Qe,Qe.next,fe,Ae))return!0;Qe=Qe.next}while(Qe!==fe);return!1}(N,G)&&(Fp(N,G)&&Fp(G,N)&&function(fe,Ae){var Qe=fe,et=!1,ut=(fe.x+Ae.x)/2,Tt=(fe.y+Ae.y)/2;do Qe.y>Tt!=Qe.next.y>Tt&&Qe.next.y!==Qe.y&&ut<(Qe.next.x-Qe.x)*(Tt-Qe.y)/(Qe.next.y-Qe.y)+Qe.x&&(et=!et),Qe=Qe.next;while(Qe!==fe);return et}(N,G)&&(bu(N.prev,N,G.prev)||bu(N,G.prev,G))||Cm(N,G)&&bu(N.prev,N,N.next)>0&&bu(G.prev,G,G.next)>0)}function bu(N,G,fe){return(G.y-N.y)*(fe.x-G.x)-(G.x-N.x)*(fe.y-G.y)}function Cm(N,G){return N.x===G.x&&N.y===G.y}function D0(N,G,fe,Ae){var Qe=Ri(bu(N,G,fe)),et=Ri(bu(N,G,Ae)),ut=Ri(bu(fe,Ae,N)),Tt=Ri(bu(fe,Ae,G));return Qe!==et&&ut!==Tt||!(Qe!==0||!Sa(N,fe,G))||!(et!==0||!Sa(N,Ae,G))||!(ut!==0||!Sa(fe,N,Ae))||!(Tt!==0||!Sa(fe,G,Ae))}function Sa(N,G,fe){return G.x<=Math.max(N.x,fe.x)&&G.x>=Math.min(N.x,fe.x)&&G.y<=Math.max(N.y,fe.y)&&G.y>=Math.min(N.y,fe.y)}function Ri(N){return N>0?1:N<0?-1:0}function Fp(N,G){return bu(N.prev,N,N.next)<0?bu(N,G,N.next)>=0&&bu(N,N.prev,G)>=0:bu(N,G,N.prev)<0||bu(N,N.next,G)<0}function qv(N,G){var fe=new Np(N.i,N.x,N.y),Ae=new Np(G.i,G.x,G.y),Qe=N.next,et=G.prev;return N.next=G,G.prev=N,fe.next=Qe,Qe.prev=fe,Ae.next=fe,fe.prev=Ae,et.next=Ae,Ae.prev=et,Ae}function db(N,G,fe,Ae){var Qe=new Np(N,G,fe);return Ae?(Qe.next=Ae.next,Qe.prev=Ae,Ae.next.prev=Qe,Ae.next=Qe):(Qe.prev=Qe,Qe.next=Qe),Qe}function T1(N){N.next.prev=N.prev,N.prev.next=N.next,N.prevZ&&(N.prevZ.nextZ=N.nextZ),N.nextZ&&(N.nextZ.prevZ=N.prevZ)}function Np(N,G,fe){this.i=N,this.x=G,this.y=fe,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function hl(N,G,fe,Ae){for(var Qe=0,et=G,ut=fe-Ae;etfe;){if(Ae-fe>600){var et=Ae-fe+1,ut=G-fe+1,Tt=Math.log(et),Bt=.5*Math.exp(2*Tt/3),rn=.5*Math.sqrt(Tt*Bt*(et-Bt)/et)*(ut-et/2<0?-1:1);Rx(N,G,Math.max(fe,Math.floor(G-ut*Bt/et+rn)),Math.min(Ae,Math.floor(G+(et-ut)*Bt/et+rn)),Qe)}var an=N[G],_n=fe,Dn=Ae;for(B0(N,fe,G),Qe(N[Ae],an)>0&&B0(N,fe,Ae);_n0;)Dn--}Qe(N[fe],an)===0?B0(N,fe,Dn):B0(N,++Dn,Ae),Dn<=G&&(fe=Dn+1),G<=Dn&&(Ae=Dn-1)}}function B0(N,G,fe){var Ae=N[G];N[G]=N[fe],N[fe]=Ae}function fo(N,G){return NG?1:0}function e0(N,G){var fe=N.length;if(fe<=1)return[N];for(var Ae,Qe,et=[],ut=0;ut1)for(var Bt=0;Bt0&&(Ae+=N[Qe-1].length,fe.holes.push(Ae))}return fe},up.default=Xf;var Fd=function(N){this.zoom=N.zoom,this.overscaling=N.overscaling,this.layers=N.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=N.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mi,this.indexArray=new Fe,this.indexArray2=new Vt,this.programConfigurations=new Tc(N.layers,N.zoom),this.segments=new Zr,this.segments2=new Zr,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};Fd.prototype.populate=function(N,G,fe){this.hasPattern=ug("fill",this.layers,G);for(var Ae=this.layers[0].layout.get("fill-sort-key"),Qe=[],et=0,ut=N;et>3}if(Qe--,Ae===1||Ae===2)et+=N.readSVarint(),ut+=N.readSVarint(),Ae===1&&(G&&Tt.push(G),G=[]),G.push(new a(et,ut));else{if(Ae!==7)throw new Error("unknown command "+Ae);G&&G.push(G[0].clone())}}return G&&Tt.push(G),Tt},Sh.prototype.bbox=function(){var N=this._pbf;N.pos=this._geometry;for(var G=N.readVarint()+N.pos,fe=1,Ae=0,Qe=0,et=0,ut=1/0,Tt=-1/0,Bt=1/0,rn=-1/0;N.pos>3}if(Ae--,fe===1||fe===2)(Qe+=N.readSVarint())Tt&&(Tt=Qe),(et+=N.readSVarint())rn&&(rn=et);else if(fe!==7)throw new Error("unknown command "+fe)}return[ut,Bt,Tt,rn]},Sh.prototype.toGeoJSON=function(N,G,fe){var Ae,Qe,et=this.extent*Math.pow(2,fe),ut=this.extent*N,Tt=this.extent*G,Bt=this.loadGeometry(),rn=Sh.types[this.type];function an(Cn){for(var Jn=0;Jn>3;Qe=ut===1?Ae.readString():ut===2?Ae.readFloat():ut===3?Ae.readDouble():ut===4?Ae.readVarint64():ut===5?Ae.readVarint():ut===6?Ae.readSVarint():ut===7?Ae.readBoolean():null}return Qe}(fe))}function hb(N,G,fe){if(N===3){var Ae=new Lx(fe,fe.readVarint()+fe.pos);Ae.length&&(G[Ae.name]=Ae)}}Yv.prototype.feature=function(N){if(N<0||N>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[N];var G=this._pbf.readVarint()+this._pbf.pos;return new Ll(this._pbf,G,this.extent,this._keys,this._values)};var Tf={VectorTile:function(N,G){this.layers=N.readFields(hb,{},G)},VectorTileFeature:Ll,VectorTileLayer:Lx},$O=Tf.VectorTileFeature.types,C1=Math.pow(2,13);function A1(N,G,fe,Ae,Qe,et,ut,Tt){N.emplaceBack(G,fe,2*Math.floor(Ae*C1)+ut,Qe*C1*2,et*C1*2,Math.round(Tt))}var pd=function(N){this.zoom=N.zoom,this.overscaling=N.overscaling,this.layers=N.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=N.index,this.hasPattern=!1,this.layoutVertexArray=new Ot,this.indexArray=new Fe,this.programConfigurations=new Tc(N.layers,N.zoom),this.segments=new Zr,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function D_(N,G){return N.x===G.x&&(N.x<0||N.x>Hs)||N.y===G.y&&(N.y<0||N.y>Hs)}pd.prototype.populate=function(N,G,fe){this.features=[],this.hasPattern=ug("fill-extrusion",this.layers,G);for(var Ae=0,Qe=N;AeHs})||Bs.every(function(Ja){return Ja.y<0})||Bs.every(function(Ja){return Ja.y>Hs})))for(var lr=0,Ar=0;Ar=1){var jr=Jn[Ar-1];if(!D_(Or,jr)){_n.vertexLength+4>Zr.MAX_VERTEX_ARRAY_LENGTH&&(_n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Jr=Or.sub(jr)._perp()._unit(),uo=jr.dist(Or);lr+uo>32768&&(lr=0),A1(this.layoutVertexArray,Or.x,Or.y,Jr.x,Jr.y,0,0,lr),A1(this.layoutVertexArray,Or.x,Or.y,Jr.x,Jr.y,0,1,lr),lr+=uo,A1(this.layoutVertexArray,jr.x,jr.y,Jr.x,Jr.y,0,0,lr),A1(this.layoutVertexArray,jr.x,jr.y,Jr.x,Jr.y,0,1,lr);var ro=_n.vertexLength;this.indexArray.emplaceBack(ro,ro+2,ro+1),this.indexArray.emplaceBack(ro+1,ro+2,ro+3),_n.vertexLength+=4,_n.primitiveLength+=2}}}}if(_n.vertexLength+Bt>Zr.MAX_VERTEX_ARRAY_LENGTH&&(_n=this.segments.prepareSegment(Bt,this.layoutVertexArray,this.indexArray)),$O[N.type]==="Polygon"){for(var Po=[],gi=[],ni=_n.vertexLength,Ti=0,vi=Tt;Ti=2&&N[Bt-1].equals(N[Bt-2]);)Bt--;for(var rn=0;rn0;if(gi&&Or>rn){var Ti=an.dist(Cn);if(Ti>2*_n){var vi=an.sub(an.sub(Cn)._mult(_n/Ti)._round());this.updateDistance(Cn,vi),this.addCurrentVertex(vi,lr,0,0,Dn),Cn=vi}}var na=Cn&&Jn,Ji=na?fe:Tt?"butt":Ae;if(na&&Ji==="round"&&(roQe&&(Ji="bevel"),Ji==="bevel"&&(ro>2&&(Ji="flipbevel"),ro100)jr=Ar.mult(-1);else{var La=ro*lr.add(Ar).mag()/lr.sub(Ar).mag();jr._perp()._mult(La*(ni?-1:1))}this.addCurrentVertex(an,jr,0,0,Dn),this.addCurrentVertex(an,jr.mult(-1),0,0,Dn)}else if(Ji==="bevel"||Ji==="fakeround"){var ca=-Math.sqrt(ro*ro-1),Zi=ni?ca:0,Bs=ni?0:ca;if(Cn&&this.addCurrentVertex(an,lr,Zi,Bs,Dn),Ji==="fakeround")for(var Ja=Math.round(180*Po/Math.PI/20),Vl=1;Vl2*_n){var Fs=an.add(Jn.sub(an)._mult(_n/aa)._round());this.updateDistance(an,Fs),this.addCurrentVertex(Fs,Ar,0,0,Dn),an=Fs}}}}},md.prototype.addCurrentVertex=function(N,G,fe,Ae,Qe,et){et===void 0&&(et=!1);var ut=G.x+G.y*fe,Tt=G.y-G.x*fe,Bt=-G.x+G.y*Ae,rn=-G.y-G.x*Ae;this.addHalfVertex(N,ut,Tt,et,!1,fe,Qe),this.addHalfVertex(N,Bt,rn,et,!0,-Ae,Qe),this.distance>pb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(N,G,fe,Ae,Qe,et))},md.prototype.addHalfVertex=function(N,G,fe,Ae,Qe,et,ut){var Tt=N.x,Bt=N.y,rn=.5*(this.lineClips?this.scaledDistance*(pb-1):this.scaledDistance);if(this.layoutVertexArray.emplaceBack((Tt<<1)+(Ae?1:0),(Bt<<1)+(Qe?1:0),Math.round(63*G)+128,Math.round(63*fe)+128,1+(et===0?0:et<0?-1:1)|(63&rn)<<2,rn>>6),this.lineClips){var an=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(an,this.lineClipsArray.length)}var _n=ut.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,_n),ut.primitiveLength++),Qe?this.e2=_n:this.e1=_n},md.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},md.prototype.updateDistance=function(N,G){this.distance+=N.dist(G),this.updateScaledDistance()},pi("LineBucket",md,{omit:["layers","patternFeatures"]});var Nl=new Jl({"line-cap":new Vi(xt.layout_line["line-cap"]),"line-join":new fa(xt.layout_line["line-join"]),"line-miter-limit":new Vi(xt.layout_line["line-miter-limit"]),"line-round-limit":new Vi(xt.layout_line["line-round-limit"]),"line-sort-key":new fa(xt.layout_line["line-sort-key"])}),fg={paint:new Jl({"line-opacity":new fa(xt.paint_line["line-opacity"]),"line-color":new fa(xt.paint_line["line-color"]),"line-translate":new Vi(xt.paint_line["line-translate"]),"line-translate-anchor":new Vi(xt.paint_line["line-translate-anchor"]),"line-width":new fa(xt.paint_line["line-width"]),"line-gap-width":new fa(xt.paint_line["line-gap-width"]),"line-offset":new fa(xt.paint_line["line-offset"]),"line-blur":new fa(xt.paint_line["line-blur"]),"line-dasharray":new Zf(xt.paint_line["line-dasharray"]),"line-pattern":new au(xt.paint_line["line-pattern"]),"line-gradient":new Zl(xt.paint_line["line-gradient"])}),layout:Nl},Dx=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.possiblyEvaluate=function(fe,Ae){return Ae=new us(Math.floor(Ae.zoom),{now:Ae.now,fadeDuration:Ae.fadeDuration,zoomHistory:Ae.zoomHistory,transition:Ae.transition}),N.prototype.possiblyEvaluate.call(this,fe,Ae)},G.prototype.evaluate=function(fe,Ae,Qe,et){return Ae=x({},Ae,{zoom:Math.floor(Ae.zoom)}),N.prototype.evaluate.call(this,fe,Ae,Qe,et)},G}(fa),UO=new Dx(fg.paint.properties["line-width"].specification);UO.useIntegerZoom=!0;var t0=function(N){function G(fe){N.call(this,fe,fg),this.gradientVersion=0}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._handleSpecialPaintPropertyUpdate=function(fe){if(fe==="line-gradient"){var Ae=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=Ae._styleExpression.expression instanceof ko,this.gradientVersion=(this.gradientVersion+1)%m}},G.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},G.prototype.recalculate=function(fe,Ae){N.prototype.recalculate.call(this,fe,Ae),this.paint._values["line-floorwidth"]=UO.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,fe)},G.prototype.createBucket=function(fe){return new md(fe)},G.prototype.queryRadius=function(fe){var Ae=fe,Qe=mb(Yg("line-width",this,Ae),Yg("line-gap-width",this,Ae)),et=Yg("line-offset",this,Ae);return Qe/2+Math.abs(et)+wm(this.paint.get("line-translate"))},G.prototype.queryIntersectsFeature=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=cb(fe,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Tt.angle,Bt),an=Bt/2*mb(this.paint.get("line-width").evaluate(Ae,Qe),this.paint.get("line-gap-width").evaluate(Ae,Qe)),_n=this.paint.get("line-offset").evaluate(Ae,Qe);return _n&&(et=function(Dn,Cn){for(var Jn=[],lr=new a(0,0),Ar=0;Ar=3){for(var Or=0;Or0?G+2*N:N}var Mm=El([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),jO=El([{name:"a_projected_pos",components:3,type:"Float32"}],4),z_=(El([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),El([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),wl=(El([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),El([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Kv=El([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function fc(N,G,fe){return N.sections.forEach(function(Ae){Ae.text=function(Qe,et,ut){var Tt=et.layout.get("text-transform").evaluate(ut,{});return Tt==="uppercase"?Qe=Qe.toLocaleUpperCase():Tt==="lowercase"&&(Qe=Qe.toLocaleLowerCase()),Lu.applyArabicShaping&&(Qe=Lu.applyArabicShaping(Qe)),Qe}(Ae.text,G,fe)}),N}El([{name:"triangle",components:3,type:"Uint16"}]),El([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),El([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),El([{type:"Float32",name:"offsetX"}]),El([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Jv={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},$l=24,M1=function(N,G,fe,Ae,Qe){var et,ut,Tt=8*Qe-Ae-1,Bt=(1<>1,an=-7,_n=fe?Qe-1:0,Dn=fe?-1:1,Cn=N[G+_n];for(_n+=Dn,et=Cn&(1<<-an)-1,Cn>>=-an,an+=Tt;an>0;et=256*et+N[G+_n],_n+=Dn,an-=8);for(ut=et&(1<<-an)-1,et>>=-an,an+=Ae;an>0;ut=256*ut+N[G+_n],_n+=Dn,an-=8);if(et===0)et=1-rn;else{if(et===Bt)return ut?NaN:1/0*(Cn?-1:1);ut+=Math.pow(2,Ae),et-=rn}return(Cn?-1:1)*ut*Math.pow(2,et-Ae)},th=function(N,G,fe,Ae,Qe,et){var ut,Tt,Bt,rn=8*et-Qe-1,an=(1<>1,Dn=Qe===23?Math.pow(2,-24)-Math.pow(2,-77):0,Cn=Ae?0:et-1,Jn=Ae?1:-1,lr=G<0||G===0&&1/G<0?1:0;for(G=Math.abs(G),isNaN(G)||G===1/0?(Tt=isNaN(G)?1:0,ut=an):(ut=Math.floor(Math.log(G)/Math.LN2),G*(Bt=Math.pow(2,-ut))<1&&(ut--,Bt*=2),(G+=ut+_n>=1?Dn/Bt:Dn*Math.pow(2,1-_n))*Bt>=2&&(ut++,Bt/=2),ut+_n>=an?(Tt=0,ut=an):ut+_n>=1?(Tt=(G*Bt-1)*Math.pow(2,Qe),ut+=_n):(Tt=G*Math.pow(2,_n-1)*Math.pow(2,Qe),ut=0));Qe>=8;N[fe+Cn]=255&Tt,Cn+=Jn,Tt/=256,Qe-=8);for(ut=ut<0;N[fe+Cn]=255&ut,Cn+=Jn,ut/=256,rn-=8);N[fe+Cn-Jn]|=128*lr},Bx=ic;function ic(N){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(N)?N:new Uint8Array(N||0),this.pos=0,this.type=0,this.length=this.buf.length}ic.Varint=0,ic.Fixed64=1,ic.Bytes=2,ic.Fixed32=5;var F_=4294967296,QO=1/F_,Du=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function su(N){return N.type===ic.Bytes?N.readVarint()+N.pos:N.pos+1}function dg(N,G,fe){return fe?4294967296*G+(N>>>0):4294967296*(G>>>0)+(N>>>0)}function n0(N,G,fe){var Ae=G<=16383?1:G<=2097151?2:G<=268435455?3:Math.floor(Math.log(G)/(7*Math.LN2));fe.realloc(Ae);for(var Qe=fe.pos-1;Qe>=N;Qe--)fe.buf[Qe+Ae]=fe.buf[Qe]}function N_(N,G){for(var fe=0;fe>>8,N[fe+2]=G>>>16,N[fe+3]=G>>>24}function gb(N,G){return(N[G]|N[G+1]<<8|N[G+2]<<16)+(N[G+3]<<24)}ic.prototype={destroy:function(){this.buf=null},readFields:function(N,G,fe){for(fe=fe||this.length;this.pos>3,et=this.pos;this.type=7&Ae,N(Qe,G,this),this.pos===et&&this.skip(Ae)}return G},readMessage:function(N,G){return this.readFields(N,G,this.readVarint()+this.pos)},readFixed32:function(){var N=zx(this.buf,this.pos);return this.pos+=4,N},readSFixed32:function(){var N=gb(this.buf,this.pos);return this.pos+=4,N},readFixed64:function(){var N=zx(this.buf,this.pos)+zx(this.buf,this.pos+4)*F_;return this.pos+=8,N},readSFixed64:function(){var N=zx(this.buf,this.pos)+gb(this.buf,this.pos+4)*F_;return this.pos+=8,N},readFloat:function(){var N=M1(this.buf,this.pos,!0,23,4);return this.pos+=4,N},readDouble:function(){var N=M1(this.buf,this.pos,!0,52,8);return this.pos+=8,N},readVarint:function(N){var G,fe,Ae=this.buf;return G=127&(fe=Ae[this.pos++]),fe<128?G:(G|=(127&(fe=Ae[this.pos++]))<<7,fe<128?G:(G|=(127&(fe=Ae[this.pos++]))<<14,fe<128?G:(G|=(127&(fe=Ae[this.pos++]))<<21,fe<128?G:function(Qe,et,ut){var Tt,Bt,rn=ut.buf;if(Tt=(112&(Bt=rn[ut.pos++]))>>4,Bt<128||(Tt|=(127&(Bt=rn[ut.pos++]))<<3,Bt<128)||(Tt|=(127&(Bt=rn[ut.pos++]))<<10,Bt<128)||(Tt|=(127&(Bt=rn[ut.pos++]))<<17,Bt<128)||(Tt|=(127&(Bt=rn[ut.pos++]))<<24,Bt<128)||(Tt|=(1&(Bt=rn[ut.pos++]))<<31,Bt<128))return dg(Qe,Tt,et);throw new Error("Expected varint not more than 10 bytes")}(G|=(15&(fe=Ae[this.pos]))<<28,N,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var N=this.readVarint();return N%2==1?(N+1)/-2:N/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var N=this.readVarint()+this.pos,G=this.pos;return this.pos=N,N-G>=12&&Du?function(fe,Ae,Qe){return Du.decode(fe.subarray(Ae,Qe))}(this.buf,G,N):function(fe,Ae,Qe){for(var et="",ut=Ae;ut239?4:an>223?3:an>191?2:1;if(ut+Dn>Qe)break;Dn===1?an<128&&(_n=an):Dn===2?(192&(Tt=fe[ut+1]))==128&&(_n=(31&an)<<6|63&Tt)<=127&&(_n=null):Dn===3?(Tt=fe[ut+1],Bt=fe[ut+2],(192&Tt)==128&&(192&Bt)==128&&((_n=(15&an)<<12|(63&Tt)<<6|63&Bt)<=2047||_n>=55296&&_n<=57343)&&(_n=null)):Dn===4&&(Tt=fe[ut+1],Bt=fe[ut+2],rn=fe[ut+3],(192&Tt)==128&&(192&Bt)==128&&(192&rn)==128&&((_n=(15&an)<<18|(63&Tt)<<12|(63&Bt)<<6|63&rn)<=65535||_n>=1114112)&&(_n=null)),_n===null?(_n=65533,Dn=1):_n>65535&&(_n-=65536,et+=String.fromCharCode(_n>>>10&1023|55296),_n=56320|1023&_n),et+=String.fromCharCode(_n),ut+=Dn}return et}(this.buf,G,N)},readBytes:function(){var N=this.readVarint()+this.pos,G=this.buf.subarray(this.pos,N);return this.pos=N,G},readPackedVarint:function(N,G){if(this.type!==ic.Bytes)return N.push(this.readVarint(G));var fe=su(this);for(N=N||[];this.pos127;);else if(G===ic.Bytes)this.pos=this.readVarint()+this.pos;else if(G===ic.Fixed32)this.pos+=4;else{if(G!==ic.Fixed64)throw new Error("Unimplemented type: "+G);this.pos+=8}},writeTag:function(N,G){this.writeVarint(N<<3|G)},realloc:function(N){for(var G=this.length||16;G268435455||N<0?function(G,fe){var Ae,Qe;if(G>=0?(Ae=G%4294967296|0,Qe=G/4294967296|0):(Qe=~(-G/4294967296),4294967295^(Ae=~(-G%4294967296))?Ae=Ae+1|0:(Ae=0,Qe=Qe+1|0)),G>=18446744073709552e3||G<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");fe.realloc(10),function(et,ut,Tt){Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos]=127&et}(Ae,0,fe),function(et,ut){var Tt=(7&et)<<4;ut.buf[ut.pos++]|=Tt|((et>>>=3)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et)))))}(Qe,fe)}(N,this):(this.realloc(4),this.buf[this.pos++]=127&N|(N>127?128:0),N<=127||(this.buf[this.pos++]=127&(N>>>=7)|(N>127?128:0),N<=127||(this.buf[this.pos++]=127&(N>>>=7)|(N>127?128:0),N<=127||(this.buf[this.pos++]=N>>>7&127))))},writeSVarint:function(N){this.writeVarint(N<0?2*-N-1:2*N)},writeBoolean:function(N){this.writeVarint(!!N)},writeString:function(N){N=String(N),this.realloc(4*N.length),this.pos++;var G=this.pos;this.pos=function(Ae,Qe,et){for(var ut,Tt,Bt=0;Bt55295&&ut<57344){if(!Tt){ut>56319||Bt+1===Qe.length?(Ae[et++]=239,Ae[et++]=191,Ae[et++]=189):Tt=ut;continue}if(ut<56320){Ae[et++]=239,Ae[et++]=191,Ae[et++]=189,Tt=ut;continue}ut=Tt-55296<<10|ut-56320|65536,Tt=null}else Tt&&(Ae[et++]=239,Ae[et++]=191,Ae[et++]=189,Tt=null);ut<128?Ae[et++]=ut:(ut<2048?Ae[et++]=ut>>6|192:(ut<65536?Ae[et++]=ut>>12|224:(Ae[et++]=ut>>18|240,Ae[et++]=ut>>12&63|128),Ae[et++]=ut>>6&63|128),Ae[et++]=63&ut|128)}return et}(this.buf,N,this.pos);var fe=this.pos-G;fe>=128&&n0(G,fe,this),this.pos=G-1,this.writeVarint(fe),this.pos+=fe},writeFloat:function(N){this.realloc(4),th(this.buf,N,this.pos,!0,23,4),this.pos+=4},writeDouble:function(N){this.realloc(8),th(this.buf,N,this.pos,!0,52,8),this.pos+=8},writeBytes:function(N){var G=N.length;this.writeVarint(G),this.realloc(G);for(var fe=0;fe=128&&n0(fe,Ae,this),this.pos=fe-1,this.writeVarint(Ae),this.pos+=Ae},writeMessage:function(N,G,fe){this.writeTag(N,ic.Bytes),this.writeRawMessage(G,fe)},writePackedVarint:function(N,G){G.length&&this.writeMessage(N,N_,G)},writePackedSVarint:function(N,G){G.length&&this.writeMessage(N,ey,G)},writePackedBoolean:function(N,G){G.length&&this.writeMessage(N,E1,G)},writePackedFloat:function(N,G){G.length&&this.writeMessage(N,hg,G)},writePackedDouble:function(N,G){G.length&&this.writeMessage(N,ty,G)},writePackedFixed32:function(N,G){G.length&&this.writeMessage(N,z0,G)},writePackedSFixed32:function(N,G){G.length&&this.writeMessage(N,pg,G)},writePackedFixed64:function(N,G){G.length&&this.writeMessage(N,P1,G)},writePackedSFixed64:function(N,G){G.length&&this.writeMessage(N,R1,G)},writeBytesField:function(N,G){this.writeTag(N,ic.Bytes),this.writeBytes(G)},writeFixed32Field:function(N,G){this.writeTag(N,ic.Fixed32),this.writeFixed32(G)},writeSFixed32Field:function(N,G){this.writeTag(N,ic.Fixed32),this.writeSFixed32(G)},writeFixed64Field:function(N,G){this.writeTag(N,ic.Fixed64),this.writeFixed64(G)},writeSFixed64Field:function(N,G){this.writeTag(N,ic.Fixed64),this.writeSFixed64(G)},writeVarintField:function(N,G){this.writeTag(N,ic.Varint),this.writeVarint(G)},writeSVarintField:function(N,G){this.writeTag(N,ic.Varint),this.writeSVarint(G)},writeStringField:function(N,G){this.writeTag(N,ic.Bytes),this.writeString(G)},writeFloatField:function(N,G){this.writeTag(N,ic.Fixed32),this.writeFloat(G)},writeDoubleField:function(N,G){this.writeTag(N,ic.Fixed64),this.writeDouble(G)},writeBooleanField:function(N,G){this.writeVarintField(N,!!G)}};var Fx=3;function $_(N,G,fe){N===1&&fe.readMessage(Nx,G)}function Nx(N,G,fe){if(N===3){var Ae=fe.readMessage(V_,{}),Qe=Ae.id,et=Ae.bitmap,ut=Ae.width,Tt=Ae.height,Bt=Ae.left,rn=Ae.top,an=Ae.advance;G.push({id:Qe,bitmap:new Fl({width:ut+2*Fx,height:Tt+2*Fx},et),metrics:{width:ut,height:Tt,left:Bt,top:rn,advance:an}})}}function V_(N,G,fe){N===1?G.id=fe.readVarint():N===2?G.bitmap=fe.readBytes():N===3?G.width=fe.readVarint():N===4?G.height=fe.readVarint():N===5?G.left=fe.readSVarint():N===6?G.top=fe.readSVarint():N===7&&(G.advance=fe.readVarint())}var vb=Fx;function L1(N){for(var G=0,fe=0,Ae=0,Qe=N;Ae=0;Dn--){var Cn=ut[Dn];if(!(_n.w>Cn.w||_n.h>Cn.h)){if(_n.x=Cn.x,_n.y=Cn.y,Bt=Math.max(Bt,_n.y+_n.h),Tt=Math.max(Tt,_n.x+_n.w),_n.w===Cn.w&&_n.h===Cn.h){var Jn=ut.pop();Dn0&&yg>Uo&&(Uo=yg)}else{var Dm=Ja[Xs.fontStack],H1=Dm&&Dm[Mc];if(H1&&H1.rect)Im=H1.rect,il=H1.metrics;else{var Wx=Bs[Xs.fontStack],Ec=Wx&&Wx[Mc];if(!Ec)continue;il=Ec.metrics}Mh=(is-Xs.scale)*$l}Hp?(Zi.verticalizable=!0,Bl.push({glyph:Mc,imageName:ah,x:xu,y:qu+Mh,vertical:Hp,scale:Xs.scale,fontStack:Xs.fontStack,sectionIndex:ac,metrics:il,rect:Im}),xu+=Bu*Xs.scale+Fs):(Bl.push({glyph:Mc,imageName:ah,x:xu,y:qu+Mh,vertical:Hp,scale:Xs.scale,fontStack:Xs.fontStack,sectionIndex:ac,metrics:il,rect:Im}),xu+=il.advance*Xs.scale+Fs)}if(Bl.length!==0){var Qc=xu-Fs;Vc=Math.max(Qc,Vc),ZO(Bl,0,Bl.length-1,Uc,Uo)}xu=0;var Hc=zs*is+Uo;Ac.lineOffset=Math.max(Uo,Vs),qu+=Hc,pl=Math.max(Hc,pl),++_u}else qu+=zs,++_u}var _s=qu-ny,Jc=bb(gs),Pc=Jc.horizontalAlign,Z1=Jc.verticalAlign;(function(uy,q1,H0,W1,Y1,X1,Zp,fy,JO){var Bm=(q1-H0)*Y1,Ob=0;Ob=X1!==Zp?-fy*W1-ny:(-W1*JO+.5)*Zp;for(var Wu=0,Yx=uy;Wu=0&&Ae>=N&&$x[this.text.charCodeAt(Ae)];Ae--)fe--;this.text=this.text.substring(N,fe),this.sectionIndex=this.sectionIndex.slice(N,fe)},cf.prototype.substring=function(N,G){var fe=new cf;return fe.text=this.text.substring(N,G),fe.sectionIndex=this.sectionIndex.slice(N,G),fe.sections=this.sections,fe},cf.prototype.toString=function(){return this.text},cf.prototype.getMaxScale=function(){var N=this;return this.sectionIndex.reduce(function(G,fe){return Math.max(G,N.sections[fe].scale)},0)},cf.prototype.addTextSection=function(N,G){this.text+=N.text,this.sections.push(I1.forText(N.scale,N.fontStack||G));for(var fe=this.sections.length-1,Ae=0;Ae=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var $x={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Nd={};function ry(N,G,fe,Ae,Qe,et){if(G.imageName){var ut=Ae[G.imageName];return ut?ut.displaySize[0]*G.scale*$l/et+Qe:0}var Tt=fe[G.fontStack],Bt=Tt&&Tt[N];return Bt?Bt.metrics.advance*G.scale+Qe:0}function HO(N,G,fe,Ae){var Qe=Math.pow(N-G,2);return Ae?N=0,an=0,_n=0;_n-fe/2;){if(--ut<0)return!1;Tt-=N[ut].dist(et),et=N[ut]}Tt+=N[ut].dist(N[ut+1]),ut++;for(var Bt=[],rn=0;TtAe;)rn-=Bt.shift().angleDelta;if(rn>Qe)return!1;ut++,Tt+=_n.dist(Dn)}return!0}function z1(N){for(var G=0,fe=0;fern){var Jn=(rn-Bt)/Cn,lr=ra(_n.x,Dn.x,Jn),Ar=ra(_n.y,Dn.y,Jn),Or=new mg(lr,Ar,Dn.angleTo(_n),an);return Or._round(),!ut||B1(N,Or,Tt,ut,G)?Or:void 0}Bt+=Cn}}function F1(N,G,fe,Ae,Qe,et,ut,Tt,Bt){var rn=iy(Ae,et,ut),an=qO(Ae,Qe),_n=an*ut,Dn=N[0].x===0||N[0].x===Bt||N[0].y===0||N[0].y===Bt;return G-_n=0&&uo=0&&ro=0&&Dn+rn<=an){var Po=new mg(uo,ro,jr,Jn);Po._round(),Ae&&!B1(N,Po,et,Ae,Qe)||Cn.push(Po)}}_n+=Or}return Tt||Cn.length||ut||(Cn=rh(N,_n/2,fe,Ae,Qe,et,ut,!0,Bt)),Cn}function H_(N,G,fe,Ae,Qe){for(var et=[],ut=0;ut=Ae&&_n.x>=Ae||(an.x>=Ae?an=new a(Ae,an.y+(_n.y-an.y)*((Ae-an.x)/(_n.x-an.x)))._round():_n.x>=Ae&&(_n=new a(Ae,an.y+(_n.y-an.y)*((Ae-an.x)/(_n.x-an.x)))._round()),an.y>=Qe&&_n.y>=Qe||(an.y>=Qe?an=new a(an.x+(_n.x-an.x)*((Qe-an.y)/(_n.y-an.y)),Qe)._round():_n.y>=Qe&&(_n=new a(an.x+(_n.x-an.x)*((Qe-an.y)/(_n.y-an.y)),Qe)._round()),Bt&&an.equals(Bt[Bt.length-1])||(Bt=[an],et.push(Bt)),Bt.push(_n)))))}return et}var nc=gd;function $0(N,G,fe,Ae){var Qe=[],et=N.image,ut=et.pixelRatio,Tt=et.paddedRect.w-2*nc,Bt=et.paddedRect.h-2*nc,rn=N.right-N.left,an=N.bottom-N.top,_n=et.stretchX||[[0,Tt]],Dn=et.stretchY||[[0,Bt]],Cn=function(zs,gs){return zs+gs[1]-gs[0]},Jn=_n.reduce(Cn,0),lr=Dn.reduce(Cn,0),Ar=Tt-Jn,Or=Bt-lr,jr=0,Jr=Jn,uo=0,ro=lr,Po=0,gi=Ar,ni=0,Ti=Or;if(et.content&&Ae){var vi=et.content;jr=vd(_n,0,vi[0]),uo=vd(Dn,0,vi[1]),Jr=vd(_n,vi[0],vi[2]),ro=vd(Dn,vi[1],vi[3]),Po=vi[0]-jr,ni=vi[1]-uo,gi=vi[2]-vi[0]-Jr,Ti=vi[3]-vi[1]-ro}var na=function(zs,gs,rc,aa){var Fs=N1(zs.stretch-jr,Jr,rn,N.left),$c=r0(zs.fixed-Po,gi,zs.stretch,Jn),xc=N1(gs.stretch-uo,ro,an,N.top),xu=r0(gs.fixed-ni,Ti,gs.stretch,lr),qu=N1(rc.stretch-jr,Jr,rn,N.left),Vc=r0(rc.fixed-Po,gi,rc.stretch,Jn),pl=N1(aa.stretch-uo,ro,an,N.top),Uc=r0(aa.fixed-ni,Ti,aa.stretch,lr),_u=new a(Fs,xc),uf=new a(qu,xc),ff=new a(qu,pl),jc=new a(Fs,pl),is=new a($c/ut,xu/ut),Vs=new a(Vc/ut,Uc/ut),Ac=G*Math.PI/180;if(Ac){var Bl=Math.sin(Ac),Uo=Math.cos(Ac),ql=[Uo,-Bl,Bl,Uo];_u._matMult(ql),uf._matMult(ql),jc._matMult(ql),ff._matMult(ql)}var Xs=zs.stretch+zs.fixed,ac=rc.stretch+rc.fixed,Mc=gs.stretch+gs.fixed,Mh=aa.stretch+aa.fixed;return{tl:_u,tr:uf,bl:jc,br:ff,tex:{x:et.paddedRect.x+nc+Xs,y:et.paddedRect.y+nc+Mc,w:ac-Xs,h:Mh-Mc},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:is,pixelOffsetBR:Vs,minFontScaleX:gi/ut/rn,minFontScaleY:Ti/ut/an,isSDF:fe}};if(Ae&&(et.stretchX||et.stretchY))for(var Ji=wS(_n,Ar,Jn),La=wS(Dn,Or,lr),ca=0;ca0&&(Cn=Math.max(10,Cn),this.circleDiameter=Cn)}else{var Jn=et.top*ut-Tt,lr=et.bottom*ut+Tt,Ar=et.left*ut-Tt,Or=et.right*ut+Tt,jr=et.collisionPadding;if(jr&&(Ar-=jr[0]*ut,Jn-=jr[1]*ut,Or+=jr[2]*ut,lr+=jr[3]*ut),rn){var Jr=new a(Ar,Jn),uo=new a(Or,Jn),ro=new a(Ar,lr),Po=new a(Or,lr),gi=rn*Math.PI/180;Jr._rotate(gi),uo._rotate(gi),ro._rotate(gi),Po._rotate(gi),Ar=Math.min(Jr.x,uo.x,ro.x,Po.x),Or=Math.max(Jr.x,uo.x,ro.x,Po.x),Jn=Math.min(Jr.y,uo.y,ro.y,Po.y),lr=Math.max(Jr.y,uo.y,ro.y,Po.y)}N.emplaceBack(G.x,G.y,Ar,Jn,Or,lr,fe,Ae,Qe)}this.boxEndIndex=N.length},oh=function(N,G){if(N===void 0&&(N=[]),G===void 0&&(G=Ch),this.data=N,this.length=this.data.length,this.compare=G,this.length>0)for(var fe=(this.length>>1)-1;fe>=0;fe--)this._down(fe)};function Ch(N,G){return NG?1:0}function Z_(N,G,fe){G===void 0&&(G=1),fe===void 0&&(fe=!1);for(var Ae=1/0,Qe=1/0,et=-1/0,ut=-1/0,Tt=N[0],Bt=0;Btet)&&(et=rn.x),(!Bt||rn.y>ut)&&(ut=rn.y)}var an=et-Ae,_n=ut-Qe,Dn=Math.min(an,_n),Cn=Dn/2,Jn=new oh([],q_);if(Dn===0)return new a(Ae,Qe);for(var lr=Ae;lrOr.d||!Or.d)&&(Or=Jr,fe&&console.log("found best %d after %d probes",Math.round(1e4*Jr.d)/1e4,jr)),Jr.max-Or.d<=G||(Cn=Jr.h/2,Jn.push(new V0(Jr.p.x-Cn,Jr.p.y-Cn,Cn,N)),Jn.push(new V0(Jr.p.x+Cn,Jr.p.y-Cn,Cn,N)),Jn.push(new V0(Jr.p.x-Cn,Jr.p.y+Cn,Cn,N)),Jn.push(new V0(Jr.p.x+Cn,Jr.p.y+Cn,Cn,N)),jr+=4)}return fe&&(console.log("num probes: "+jr),console.log("best distance: "+Or.d)),Or.p}function q_(N,G){return G.max-N.max}function V0(N,G,fe,Ae){this.p=new a(N,G),this.h=fe,this.d=function(Qe,et){for(var ut=!1,Tt=1/0,Bt=0;BtQe.y!=Jn.y>Qe.y&&Qe.x<(Jn.x-Cn.x)*(Qe.y-Cn.y)/(Jn.y-Cn.y)+Cn.x&&(ut=!ut),Tt=Math.min(Tt,Mx(Qe,Cn,Jn))}return(ut?1:-1)*Math.sqrt(Tt)}(this.p,Ae),this.max=this.d+this.h*Math.SQRT2}oh.prototype.push=function(N){this.data.push(N),this.length++,this._up(this.length-1)},oh.prototype.pop=function(){if(this.length!==0){var N=this.data[0],G=this.data.pop();return this.length--,this.length>0&&(this.data[0]=G,this._down(0)),N}},oh.prototype.peek=function(){return this.data[0]},oh.prototype._up=function(N){for(var G=this.data,fe=this.compare,Ae=G[N];N>0;){var Qe=N-1>>1,et=G[Qe];if(fe(Ae,et)>=0)break;G[N]=et,N=Qe}G[N]=Ae},oh.prototype._down=function(N){for(var G=this.data,fe=this.compare,Ae=this.length>>1,Qe=G[N];N=0)break;G[N]=ut,N=et}G[N]=Qe};var Up=7,W_=Number.POSITIVE_INFINITY;function U0(N,G){return G[1]!==W_?function(fe,Ae,Qe){var et=0,ut=0;switch(Ae=Math.abs(Ae),Qe=Math.abs(Qe),fe){case"top-right":case"top-left":case"top":ut=Qe-Up;break;case"bottom-right":case"bottom-left":case"bottom":ut=-Qe+Up}switch(fe){case"top-right":case"bottom-right":case"right":et=-Ae;break;case"top-left":case"bottom-left":case"left":et=Ae}return[et,ut]}(N,G[0],G[1]):function(fe,Ae){var Qe=0,et=0;Ae<0&&(Ae=0);var ut=Ae/Math.sqrt(2);switch(fe){case"top-right":case"top-left":et=ut-Up;break;case"bottom-right":case"bottom-left":et=-ut+Up;break;case"bottom":et=-Ae+Up;break;case"top":et=Ae-Up}switch(fe){case"top-right":case"bottom-right":Qe=-ut;break;case"top-left":case"bottom-left":Qe=ut;break;case"left":Qe=Ae;break;case"right":Qe=-Ae}return[Qe,et]}(N,G[0])}function jp(N){switch(N){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var o0=255,Ra=o0*dp;function yd(N,G,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn){var lr=function(uo,ro,Po,gi,ni,Ti,vi,na){for(var Ji=gi.layout.get("text-rotate").evaluate(Ti,{})*Math.PI/180,La=[],ca=0,Zi=ro.positionedLines;caRa&&$(N.layerIds[0]+': Value for "text-size" is >= '+o0+'. Reduce your "text-size".'):Ar.kind==="composite"&&((Or=[dp*Cn.compositeTextSizes[0].evaluate(ut,{},Jn),dp*Cn.compositeTextSizes[1].evaluate(ut,{},Jn)])[0]>Ra||Or[1]>Ra)&&$(N.layerIds[0]+': Value for "text-size" is >= '+o0+'. Reduce your "text-size".'),N.addSymbols(N.text,lr,Or,Tt,et,ut,rn,G,Bt.lineStartIndex,Bt.lineLength,Dn,Jn);for(var jr=0,Jr=an;jr=0;ut--)if(Ae.dist(et[ut])0)&&(et.value.kind!=="constant"||et.value.value.length>0),rn=Tt.value.kind!=="constant"||!!Tt.value.value||Object.keys(Tt.parameters).length>0,an=Qe.get("symbol-sort-key");if(this.features=[],Bt||rn){for(var _n=G.iconDependencies,Dn=G.glyphDependencies,Cn=G.availableImages,Jn=new us(this.zoom),lr=0,Ar=N;lr=0;for(var Ja=0,Vl=ni.sections;Ja=0;Tt--)et[Tt]={x:G[Tt].x,y:G[Tt].y,tileUnitDistanceFromAnchor:Qe},Tt>0&&(Qe+=G[Tt-1].dist(G[Tt]));for(var Bt=0;Bt0},Ol.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Ol.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Ol.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Ol.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Ol.prototype.addIndicesForPlacedSymbol=function(N,G){for(var fe=N.placedSymbolArray.get(G),Ae=fe.vertexStartIndex+4*fe.numGlyphs,Qe=fe.vertexStartIndex;Qe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(N),this.sortedAngle=N,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var fe=0,Ae=this.symbolInstanceIndexes;fe=0&&Bt.indexOf(ut)===Tt&&G.addIndicesForPlacedSymbol(G.text,ut)}),et.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,et.verticalPlacedTextSymbolIndex),et.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,et.placedIconSymbolIndex),et.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,et.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},pi("SymbolBucket",Ol,{omit:["layers","collisionBoxArray","features","compareText"]}),Ol.MAX_GLYPHS=65535,Ol.addDynamicAttributes=V1;var OS=new Jl({"symbol-placement":new Vi(xt.layout_symbol["symbol-placement"]),"symbol-spacing":new Vi(xt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Vi(xt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new fa(xt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Vi(xt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Vi(xt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Vi(xt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Vi(xt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Vi(xt.layout_symbol["icon-rotation-alignment"]),"icon-size":new fa(xt.layout_symbol["icon-size"]),"icon-text-fit":new Vi(xt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Vi(xt.layout_symbol["icon-text-fit-padding"]),"icon-image":new fa(xt.layout_symbol["icon-image"]),"icon-rotate":new fa(xt.layout_symbol["icon-rotate"]),"icon-padding":new Vi(xt.layout_symbol["icon-padding"]),"icon-keep-upright":new Vi(xt.layout_symbol["icon-keep-upright"]),"icon-offset":new fa(xt.layout_symbol["icon-offset"]),"icon-anchor":new fa(xt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Vi(xt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Vi(xt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Vi(xt.layout_symbol["text-rotation-alignment"]),"text-field":new fa(xt.layout_symbol["text-field"]),"text-font":new fa(xt.layout_symbol["text-font"]),"text-size":new fa(xt.layout_symbol["text-size"]),"text-max-width":new fa(xt.layout_symbol["text-max-width"]),"text-line-height":new Vi(xt.layout_symbol["text-line-height"]),"text-letter-spacing":new fa(xt.layout_symbol["text-letter-spacing"]),"text-justify":new fa(xt.layout_symbol["text-justify"]),"text-radial-offset":new fa(xt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Vi(xt.layout_symbol["text-variable-anchor"]),"text-anchor":new fa(xt.layout_symbol["text-anchor"]),"text-max-angle":new Vi(xt.layout_symbol["text-max-angle"]),"text-writing-mode":new Vi(xt.layout_symbol["text-writing-mode"]),"text-rotate":new fa(xt.layout_symbol["text-rotate"]),"text-padding":new Vi(xt.layout_symbol["text-padding"]),"text-keep-upright":new Vi(xt.layout_symbol["text-keep-upright"]),"text-transform":new fa(xt.layout_symbol["text-transform"]),"text-offset":new fa(xt.layout_symbol["text-offset"]),"text-allow-overlap":new Vi(xt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Vi(xt.layout_symbol["text-ignore-placement"]),"text-optional":new Vi(xt.layout_symbol["text-optional"])}),Y_={paint:new Jl({"icon-opacity":new fa(xt.paint_symbol["icon-opacity"]),"icon-color":new fa(xt.paint_symbol["icon-color"]),"icon-halo-color":new fa(xt.paint_symbol["icon-halo-color"]),"icon-halo-width":new fa(xt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new fa(xt.paint_symbol["icon-halo-blur"]),"icon-translate":new Vi(xt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Vi(xt.paint_symbol["icon-translate-anchor"]),"text-opacity":new fa(xt.paint_symbol["text-opacity"]),"text-color":new fa(xt.paint_symbol["text-color"],{runtimeType:er,getOverride:function(N){return N.textColor},hasOverride:function(N){return!!N.textColor}}),"text-halo-color":new fa(xt.paint_symbol["text-halo-color"]),"text-halo-width":new fa(xt.paint_symbol["text-halo-width"]),"text-halo-blur":new fa(xt.paint_symbol["text-halo-blur"]),"text-translate":new Vi(xt.paint_symbol["text-translate"]),"text-translate-anchor":new Vi(xt.paint_symbol["text-translate-anchor"])}),layout:OS},Pm=function(N){this.type=N.property.overrides?N.property.overrides.runtimeType:fn,this.defaultValue=N};Pm.prototype.evaluate=function(N){if(N.formattedSection){var G=this.defaultValue.property.overrides;if(G&&G.hasOverride(N.formattedSection))return G.getOverride(N.formattedSection)}return N.feature&&N.featureState?this.defaultValue.evaluate(N.feature,N.featureState):this.defaultValue.property.specification.default},Pm.prototype.eachChild=function(N){this.defaultValue.isConstant()||N(this.defaultValue.value._styleExpression.expression)},Pm.prototype.outputDefined=function(){return!1},Pm.prototype.serialize=function(){return null},pi("FormatSectionOverride",Pm,{omit:["defaultValue"]});var fi=function(N){function G(fe){N.call(this,fe,Y_)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.recalculate=function(fe,Ae){if(N.prototype.recalculate.call(this,fe,Ae),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var Qe=this.layout.get("text-writing-mode");if(Qe){for(var et=[],ut=0,Tt=Qe;ut",targetMapId:Ae,sourceMapId:et.mapId})}}},ih.prototype.receive=function(N){var G=N.data,fe=G.id;if(fe&&(!G.targetMapId||this.mapId===G.targetMapId))if(G.type===""){delete this.tasks[fe];var Ae=this.cancelCallbacks[fe];delete this.cancelCallbacks[fe],Ae&&Ae()}else U()||G.mustQueue?(this.tasks[fe]=G,this.taskQueue.push(fe),this.invoker.trigger()):this.processTask(fe,G)},ih.prototype.process=function(){if(this.taskQueue.length){var N=this.taskQueue.shift(),G=this.tasks[N];delete this.tasks[N],this.taskQueue.length&&this.invoker.trigger(),G&&this.processTask(N,G)}},ih.prototype.processTask=function(N,G){var fe=this;if(G.type===""){var Ae=this.callbacks[N];delete this.callbacks[N],Ae&&(G.error?Ae(Kl(G.error)):Ae(null,Kl(G.data)))}else{var Qe=!1,et=W(this.globalScope)?void 0:[],ut=G.hasCallback?function(an,_n){Qe=!0,delete fe.cancelCallbacks[N],fe.target.postMessage({id:N,type:"",sourceMapId:fe.mapId,error:an?Yc(an):null,data:Yc(_n,et)},et)}:function(an){Qe=!0},Tt=null,Bt=Kl(G.data);if(this.parent[G.type])Tt=this.parent[G.type](G.sourceMapId,Bt,ut);else if(this.parent.getWorkerSource){var rn=G.type.split(".");Tt=this.parent.getWorkerSource(G.sourceMapId,rn[0],Bt.source)[rn[1]](Bt,ut)}else ut(new Error("Could not find function "+G.type));!Qe&&Tt&&Tt.cancel&&(this.cancelCallbacks[N]=Tt.cancel)}},ih.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Cc=function(N,G){N&&(G?this.setSouthWest(N).setNorthEast(G):N.length===4?this.setSouthWest([N[0],N[1]]).setNorthEast([N[2],N[3]]):this.setSouthWest(N[0]).setNorthEast(N[1]))};Cc.prototype.setNorthEast=function(N){return this._ne=N instanceof yc?new yc(N.lng,N.lat):yc.convert(N),this},Cc.prototype.setSouthWest=function(N){return this._sw=N instanceof yc?new yc(N.lng,N.lat):yc.convert(N),this},Cc.prototype.extend=function(N){var G,fe,Ae=this._sw,Qe=this._ne;if(N instanceof yc)G=N,fe=N;else{if(!(N instanceof Cc)){if(Array.isArray(N)){if(N.length===4||N.every(Array.isArray)){var et=N;return this.extend(Cc.convert(et))}var ut=N;return this.extend(yc.convert(ut))}return this}if(G=N._sw,fe=N._ne,!G||!fe)return this}return Ae||Qe?(Ae.lng=Math.min(G.lng,Ae.lng),Ae.lat=Math.min(G.lat,Ae.lat),Qe.lng=Math.max(fe.lng,Qe.lng),Qe.lat=Math.max(fe.lat,Qe.lat)):(this._sw=new yc(G.lng,G.lat),this._ne=new yc(fe.lng,fe.lat)),this},Cc.prototype.getCenter=function(){return new yc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Cc.prototype.getSouthWest=function(){return this._sw},Cc.prototype.getNorthEast=function(){return this._ne},Cc.prototype.getNorthWest=function(){return new yc(this.getWest(),this.getNorth())},Cc.prototype.getSouthEast=function(){return new yc(this.getEast(),this.getSouth())},Cc.prototype.getWest=function(){return this._sw.lng},Cc.prototype.getSouth=function(){return this._sw.lat},Cc.prototype.getEast=function(){return this._ne.lng},Cc.prototype.getNorth=function(){return this._ne.lat},Cc.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Cc.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Cc.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Cc.prototype.contains=function(N){var G=yc.convert(N),fe=G.lng,Ae=G.lat,Qe=this._sw.lat<=Ae&&Ae<=this._ne.lat,et=this._sw.lng<=fe&&fe<=this._ne.lng;return this._sw.lng>this._ne.lng&&(et=this._sw.lng>=fe&&fe>=this._ne.lng),Qe&&et},Cc.convert=function(N){return!N||N instanceof Cc?N:new Cc(N)};var XO=63710088e-1,yc=function(N,G){if(isNaN(N)||isNaN(G))throw new Error("Invalid LngLat object: ("+N+", "+G+")");if(this.lng=+N,this.lat=+G,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};yc.prototype.wrap=function(){return new yc(A(this.lng,-180,180),this.lat)},yc.prototype.toArray=function(){return[this.lng,this.lat]},yc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},yc.prototype.distanceTo=function(N){var G=Math.PI/180,fe=this.lat*G,Ae=N.lat*G,Qe=Math.sin(fe)*Math.sin(Ae)+Math.cos(fe)*Math.cos(Ae)*Math.cos((N.lng-this.lng)*G);return XO*Math.acos(Math.min(Qe,1))},yc.prototype.toBounds=function(N){N===void 0&&(N=0);var G=360*N/40075017,fe=G/Math.cos(Math.PI/180*this.lat);return new Cc(new yc(this.lng-fe,this.lat-G),new yc(this.lng+fe,this.lat+G))},yc.convert=function(N){if(N instanceof yc)return N;if(Array.isArray(N)&&(N.length===2||N.length===3))return new yc(Number(N[0]),Number(N[1]));if(!Array.isArray(N)&&typeof N=="object"&&N!==null)return new yc(Number("lng"in N?N.lng:N.lon),Number(N.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var GO=2*Math.PI*XO;function Zx(N){return GO*Math.cos(N*Math.PI/180)}function _b(N){return(180+N)/360}function K_(N){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+N*Math.PI/360)))/360}function qx(N,G){return N/Zx(G)}function J_(N){var G=180-360*N;return 360/Math.PI*Math.atan(Math.exp(G*Math.PI/180))-90}var Lm=function(N,G,fe){fe===void 0&&(fe=0),this.x=+N,this.y=+G,this.z=+fe};Lm.fromLngLat=function(N,G){G===void 0&&(G=0);var fe=yc.convert(N);return new Lm(_b(fe.lng),K_(fe.lat),qx(G,fe.lat))},Lm.prototype.toLngLat=function(){return new yc(360*this.x-180,J_(this.y))},Lm.prototype.toAltitude=function(){return N=this.z,G=this.y,N*Zx(J_(G));var N,G},Lm.prototype.meterInMercatorCoordinateUnits=function(){return 1/GO*(N=J_(this.y),1/Math.cos(N*Math.PI/180));var N};var qh=function(N,G,fe){this.z=N,this.x=G,this.y=fe,this.key=j1(0,N,N,G,fe)};qh.prototype.equals=function(N){return this.z===N.z&&this.x===N.x&&this.y===N.y},qh.prototype.url=function(N,G){var fe,Ae,Qe,et,ut,Tt=(fe=this.x,Ae=this.y,Qe=this.z,et=G_(256*fe,256*(Ae=Math.pow(2,Qe)-Ae-1),Qe),ut=G_(256*(fe+1),256*(Ae+1),Qe),et[0]+","+et[1]+","+ut[0]+","+ut[1]),Bt=function(rn,an,_n){for(var Dn,Cn="",Jn=rn;Jn>0;Jn--)Cn+=(an&(Dn=1<this.canonical.z?new Kc(N,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Kc(N,this.wrap,N,this.canonical.x>>G,this.canonical.y>>G)},Kc.prototype.calculateScaledKey=function(N,G){var fe=this.canonical.z-N;return N>this.canonical.z?j1(this.wrap*+G,N,this.canonical.z,this.canonical.x,this.canonical.y):j1(this.wrap*+G,N,N,this.canonical.x>>fe,this.canonical.y>>fe)},Kc.prototype.isChildOf=function(N){if(N.wrap!==this.wrap)return!1;var G=this.canonical.z-N.canonical.z;return N.overscaledZ===0||N.overscaledZ>G&&N.canonical.y===this.canonical.y>>G},Kc.prototype.children=function(N){if(this.overscaledZ>=N)return[new Kc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var G=this.canonical.z+1,fe=2*this.canonical.x,Ae=2*this.canonical.y;return[new Kc(G,this.wrap,G,fe,Ae),new Kc(G,this.wrap,G,fe+1,Ae),new Kc(G,this.wrap,G,fe,Ae+1),new Kc(G,this.wrap,G,fe+1,Ae+1)]},Kc.prototype.isLessThan=function(N){return this.wrapN.wrap)&&(this.overscaledZN.overscaledZ)&&(this.canonical.xN.canonical.x)&&this.canonical.y=this.dim+1||G<-1||G>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(G+1)*this.stride+(N+1)},Qp.prototype._unpackMapbox=function(N,G,fe){return(256*N*256+256*G+fe)/10-1e4},Qp.prototype._unpackTerrarium=function(N,G,fe){return 256*N+G+fe/256-32768},Qp.prototype.getPixels=function(){return new Yf({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Qp.prototype.backfillBorder=function(N,G,fe){if(this.dim!==N.dim)throw new Error("dem dimension mismatch");var Ae=G*this.dim,Qe=G*this.dim+this.dim,et=fe*this.dim,ut=fe*this.dim+this.dim;switch(G){case-1:Ae=Qe-1;break;case 1:Qe=Ae+1}switch(fe){case-1:et=ut-1;break;case 1:ut=et+1}for(var Tt=-G*this.dim,Bt=-fe*this.dim,rn=et;rn=0&&an[3]>=0&&Tt.insert(ut,an[0],an[1],an[2],an[3])}},bc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Tf.VectorTile(new Bx(this.rawTileData)).layers,this.sourceLayerCoder=new ly(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},bc.prototype.query=function(N,G,fe,Ae){var Qe=this;this.loadVTLayers();for(var et=N.params||{},ut=Hs/N.tileSize/N.scale,Tt=Pu(et.filter),Bt=N.queryGeometry,rn=N.queryPadding*ut,an=ew(Bt),_n=this.grid.query(an.minX-rn,an.minY-rn,an.maxX+rn,an.maxY+rn),Dn=ew(N.cameraQueryGeometry),Cn=0,Jn=this.grid3D.query(Dn.minX-rn,Dn.minY-rn,Dn.maxX+rn,Dn.maxY+rn,function(uo,ro,Po,gi){return function(ni,Ti,vi,na,Ji){for(var La=0,ca=ni;La=Zi.x&&Ji>=Zi.y)return!0}var Bs=[new a(Ti,vi),new a(Ti,Ji),new a(na,Ji),new a(na,vi)];if(ni.length>2){for(var Ja=0,Vl=Bs;Ja=0)return!0;return!1}(et,_n)){var Dn=this.sourceLayerCoder.decode(fe),Cn=this.vtLayers[Dn].feature(Ae);if(Qe.needGeometry){var Jn=tc(Cn,!0);if(!Qe.filter(new us(this.tileID.overscaledZ),Jn,this.tileID.canonical))return}else if(!Qe.filter(new us(this.tileID.overscaledZ),Cn))return;for(var lr=this.getId(Cn,Dn),Ar=0;Ar<_n.length;Ar++){var Or=_n[Ar];if(!(et&&et.indexOf(Or)<0)){var jr=Tt[Or];if(jr){var Jr={};lr!==void 0&&rn&&(Jr=rn.getState(jr.sourceLayer||"_geojsonTileLayer",lr));var uo=x({},Bt[Or]);uo.paint=KO(uo.paint,jr.paint,Cn,Jr,ut),uo.layout=KO(uo.layout,jr.layout,Cn,Jr,ut);var ro=!an||an(Cn,jr,Jr);if(ro){var Po=new cy(Cn,this.z,this.x,this.y,lr);Po.layer=uo;var gi=N[Or];gi===void 0&&(gi=N[Or]=[]),gi.push({featureIndex:Ae,feature:Po,intersectionZ:ro})}}}}}},bc.prototype.lookupSymbolFeatures=function(N,G,fe,Ae,Qe,et,ut,Tt){var Bt={};this.loadVTLayers();for(var rn=Pu(Qe),an=0,_n=N;an<_n.length;an+=1){var Dn=_n[an];this.loadMatchingFeature(Bt,fe,Ae,Dn,rn,et,ut,Tt,G)}return Bt},bc.prototype.hasLayer=function(N){for(var G=0,fe=this.bucketLayerIDs;GAe)Qe=!1;else if(G)if(this.expirationTimeot&&(N.getActor().send("enforceCacheSizeLimit",nt),qt=0)},i.clamp=S,i.clearTileCache=function(N){var G=h.caches.delete(je);N&&G.catch(N).then(function(){return N()})},i.clipLine=H_,i.clone=function(N){var G=new kf(16);return G[0]=N[0],G[1]=N[1],G[2]=N[2],G[3]=N[3],G[4]=N[4],G[5]=N[5],G[6]=N[6],G[7]=N[7],G[8]=N[8],G[9]=N[9],G[10]=N[10],G[11]=N[11],G[12]=N[12],G[13]=N[13],G[14]=N[14],G[15]=N[15],G},i.clone$1=I,i.clone$2=function(N){var G=new kf(3);return G[0]=N[0],G[1]=N[1],G[2]=N[2],G},i.collisionCircleLayout=Kv,i.config=ce,i.create=function(){var N=new kf(16);return kf!=Float32Array&&(N[1]=0,N[2]=0,N[3]=0,N[4]=0,N[6]=0,N[7]=0,N[8]=0,N[9]=0,N[11]=0,N[12]=0,N[13]=0,N[14]=0),N[0]=1,N[5]=1,N[10]=1,N[15]=1,N},i.create$1=function(){var N=new kf(9);return kf!=Float32Array&&(N[1]=0,N[2]=0,N[3]=0,N[5]=0,N[6]=0,N[7]=0),N[0]=1,N[4]=1,N[8]=1,N},i.create$2=function(){var N=new kf(4);return kf!=Float32Array&&(N[1]=0,N[2]=0),N[0]=1,N[3]=1,N},i.createCommonjsModule=O,i.createExpression=Gd,i.createLayout=El,i.createStyleLayer=function(N){return N.type==="custom"?new kS(N):new xb[N.type](N)},i.cross=function(N,G,fe){var Ae=G[0],Qe=G[1],et=G[2],ut=fe[0],Tt=fe[1],Bt=fe[2];return N[0]=Qe*Bt-et*Tt,N[1]=et*ut-Ae*Bt,N[2]=Ae*Tt-Qe*ut,N},i.deepEqual=function N(G,fe){if(Array.isArray(G)){if(!Array.isArray(fe)||G.length!==fe.length)return!1;for(var Ae=0;Ae0&&(et=1/Math.sqrt(et)),N[0]=G[0]*et,N[1]=G[1]*et,N[2]=G[2]*et,N},i.number=ra,i.offscreenCanvasSupported=en,i.ortho=function(N,G,fe,Ae,Qe,et,ut){var Tt=1/(G-fe),Bt=1/(Ae-Qe),rn=1/(et-ut);return N[0]=-2*Tt,N[1]=0,N[2]=0,N[3]=0,N[4]=0,N[5]=-2*Bt,N[6]=0,N[7]=0,N[8]=0,N[9]=0,N[10]=2*rn,N[11]=0,N[12]=(G+fe)*Tt,N[13]=(Qe+Ae)*Bt,N[14]=(ut+et)*rn,N[15]=1,N},i.parseGlyphPBF=function(N){return new Bx(N).readFields($_,[])},i.pbf=Bx,i.performSymbolLayout=function(N,G,fe,Ae,Qe,et,ut){N.createArrays();var Tt=512*N.overscaling;N.tilePixelRatio=Hs/Tt,N.compareText={},N.iconsNeedLinear=!1;var Bt=N.layers[0].layout,rn=N.layers[0]._unevaluatedLayout._values,an={};if(N.textSizeData.kind==="composite"){var _n=N.textSizeData,Dn=_n.minZoom,Cn=_n.maxZoom;an.compositeTextSizes=[rn["text-size"].possiblyEvaluate(new us(Dn),ut),rn["text-size"].possiblyEvaluate(new us(Cn),ut)]}if(N.iconSizeData.kind==="composite"){var Jn=N.iconSizeData,lr=Jn.minZoom,Ar=Jn.maxZoom;an.compositeIconSizes=[rn["icon-size"].possiblyEvaluate(new us(lr),ut),rn["icon-size"].possiblyEvaluate(new us(Ar),ut)]}an.layoutTextSize=rn["text-size"].possiblyEvaluate(new us(N.zoom+1),ut),an.layoutIconSize=rn["icon-size"].possiblyEvaluate(new us(N.zoom+1),ut),an.textMaxSize=rn["text-size"].possiblyEvaluate(new us(18));for(var Or=Bt.get("text-line-height")*$l,jr=Bt.get("text-rotation-alignment")==="map"&&Bt.get("symbol-placement")!=="point",Jr=Bt.get("text-keep-upright"),uo=Bt.get("text-size"),ro=function(){var ni=gi[Po],Ti=Bt.get("text-font").evaluate(ni,{},ut).join(","),vi=uo.evaluate(ni,{},ut),na=an.layoutTextSize.evaluate(ni,{},ut),Ji=an.layoutIconSize.evaluate(ni,{},ut),La={horizontal:{},vertical:void 0},ca=ni.text,Zi=[0,0];if(ca){var Bs=ca.toString(),Ja=Bt.get("text-letter-spacing").evaluate(ni,{},ut)*$l,Vl=function(is){for(var Vs=0,Ac=is;Vs=Hs||hy.y<0||hy.y>=Hs||function(eu,Eh,K1,xg,Cb,nw,Ab,_g,J1,py,Gx,Mb,ev,e3,my,_d,Kx,Jx,e2,Eb,Wh,t2,Pb,zm,rw){var n2,Fm,q0,tv,nv,rv=eu.addToLineVertexArray(Eh,K1),t3=0,ow=0,iw=0,aw=0,gy=-1,W0=-1,wg={},n3=yi(""),vy=0,sw=0;if(_g._unevaluatedLayout.getValue("text-radial-offset")===void 0?(vy=(n2=_g.layout.get("text-offset").evaluate(Wh,{},zm).map(function(Nm){return Nm*$l}))[0],sw=n2[1]):(vy=_g.layout.get("text-radial-offset").evaluate(Wh,{},zm)*$l,sw=W_),eu.allowVerticalPlacement&&xg.vertical){var pp=_g.layout.get("text-rotate").evaluate(Wh,{},zm)+90,r2=xg.vertical;tv=new gg(J1,Eh,py,Gx,Mb,r2,ev,e3,my,pp),Ab&&(nv=new gg(J1,Eh,py,Gx,Mb,Ab,Kx,Jx,my,pp))}if(Cb){var yy=_g.layout.get("icon-rotate").evaluate(Wh,{}),Rb=_g.layout.get("icon-text-fit")!=="none",wd=$0(Cb,yy,Pb,Rb),Og=Ab?$0(Ab,yy,Pb,Rb):void 0;q0=new gg(J1,Eh,py,Gx,Mb,Cb,Kx,Jx,!1,yy),t3=4*wd.length;var s0=eu.iconSizeData,Lb=null;s0.kind==="source"?(Lb=[dp*_g.layout.get("icon-size").evaluate(Wh,{})])[0]>Ra&&$(eu.layerIds[0]+': Value for "icon-size" is >= '+o0+'. Reduce your "icon-size".'):s0.kind==="composite"&&((Lb=[dp*t2.compositeIconSizes[0].evaluate(Wh,{},zm),dp*t2.compositeIconSizes[1].evaluate(Wh,{},zm)])[0]>Ra||Lb[1]>Ra)&&$(eu.layerIds[0]+': Value for "icon-size" is >= '+o0+'. Reduce your "icon-size".'),eu.addSymbols(eu.icon,wd,Lb,Eb,e2,Wh,!1,Eh,rv.lineStartIndex,rv.lineLength,-1,zm),gy=eu.icon.placedSymbolArray.length-1,Og&&(ow=4*Og.length,eu.addSymbols(eu.icon,Og,Lb,Eb,e2,Wh,Kf.vertical,Eh,rv.lineStartIndex,rv.lineLength,-1,zm),W0=eu.icon.placedSymbolArray.length-1)}for(var l0 in xg.horizontal){var Y0=xg.horizontal[l0];if(!Fm){n3=yi(Y0.text);var CS=_g.layout.get("text-rotate").evaluate(Wh,{},zm);Fm=new gg(J1,Eh,py,Gx,Mb,Y0,ev,e3,my,CS)}var r3=Y0.positionedLines.length===1;if(iw+=yd(eu,Eh,Y0,nw,_g,my,Wh,_d,rv,xg.vertical?Kf.horizontal:Kf.horizontalOnly,r3?Object.keys(xg.horizontal):[l0],wg,gy,t2,zm),r3)break}xg.vertical&&(aw+=yd(eu,Eh,xg.vertical,nw,_g,my,Wh,_d,rv,Kf.vertical,["vertical"],wg,W0,t2,zm));var o3=Fm?Fm.boxStartIndex:eu.collisionBoxArray.length,o2=Fm?Fm.boxEndIndex:eu.collisionBoxArray.length,i2=tv?tv.boxStartIndex:eu.collisionBoxArray.length,AS=tv?tv.boxEndIndex:eu.collisionBoxArray.length,Ib=q0?q0.boxStartIndex:eu.collisionBoxArray.length,lw=q0?q0.boxEndIndex:eu.collisionBoxArray.length,MS=nv?nv.boxStartIndex:eu.collisionBoxArray.length,cw=nv?nv.boxEndIndex:eu.collisionBoxArray.length,qp=-1,ov=function(Nm,uw){return Nm&&Nm.circleDiameter?Math.max(Nm.circleDiameter,uw):uw};qp=ov(Fm,qp),qp=ov(tv,qp),qp=ov(q0,qp);var i3=(qp=ov(nv,qp))>-1?1:0;i3&&(qp*=rw/$l),eu.glyphOffsetArray.length>=Ol.MAX_GLYPHS&&$("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Wh.sortKey!==void 0&&eu.addToSortKeyRanges(eu.symbolInstances.length,Wh.sortKey),eu.symbolInstances.emplaceBack(Eh.x,Eh.y,wg.right>=0?wg.right:-1,wg.center>=0?wg.center:-1,wg.left>=0?wg.left:-1,wg.vertical||-1,gy,W0,n3,o3,o2,i2,AS,Ib,lw,MS,cw,py,iw,aw,t3,ow,i3,0,ev,vy,sw,qp)}(is,hy,tw,Ac,Bl,Uo,ah,is.layers[0],is.collisionBoxArray,Vs.index,Vs.sourceLayerIndex,is.index,Dm,Qc,Jc,Mc,Wx,Hc,Pc,Hp,Vs,ql,Mh,il,Xs)};if(Z1==="line")for(var W1=0,Y1=H_(Vs.geometry,0,0,Hs,Hs);W11){var Yx=_S(Wu,_s,Ac.vertical||dc,Bl,Jf,H1);Yx&&H0(Wu,Yx)}}else if(Vs.type==="Polygon")for(var G1=0,bd=e0(Vs.geometry,0);G1=xr.maxzoom||xr.visibility!=="none"&&(u(Un,this.zoom,lt),(Yt[xr.id]=xr.createBucket({index:at.bucketLayerIDs.length,layers:Un,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:fn,sourceID:this.source})).populate(dn,Qt,this.tileID.canonical),at.bucketLayerIDs.push(Un.map(function(Wn){return Wn.id})))}}}var Sr=i.mapObject(Qt.glyphDependencies,function(Wn){return Object.keys(Wn).map(Number)});Object.keys(Sr).length?yt.send("getGlyphs",{uid:this.uid,stacks:Sr},function(Wn,Kn){Lt||(Lt=Wn,xt=Kn,ir.call(Rt))}):xt={};var ar=Object.keys(Qt.iconDependencies);ar.length?yt.send("getImages",{icons:ar,source:this.source,tileID:this.tileID,type:"icons"},function(Wn,Kn){Lt||(Lt=Wn,Ht=Kn,ir.call(Rt))}):Ht={};var Fn=Object.keys(Qt.patternDependencies);function ir(){if(Lt)return zt(Lt);if(xt&&Ht&&Xt){var Wn=new p(xt),Kn=new i.ImageAtlas(Ht,Xt);for(var _r in Yt){var Ir=Yt[_r];Ir instanceof i.SymbolBucket?(u(Ir.layers,this.zoom,lt),i.performSymbolLayout(Ir,xt,Wn.positions,Ht,Kn.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Ir.hasPattern&&(Ir instanceof i.LineBucket||Ir instanceof i.FillBucket||Ir instanceof i.FillExtrusionBucket)&&(u(Ir.layers,this.zoom,lt),Ir.addFeatures(Qt,this.tileID.canonical,Kn.patternPositions))}this.status="done",zt(null,{buckets:i.values(Yt).filter(function(zr){return!zr.isEmpty()}),featureIndex:at,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Wn.image,imageAtlas:Kn,glyphMap:this.returnDependencies?xt:null,iconMap:this.returnDependencies?Ht:null,glyphPositions:this.returnDependencies?Wn.positions:null})}}Fn.length?yt.send("getImages",{icons:Fn,source:this.source,tileID:this.tileID,type:"patterns"},function(Wn,Kn){Lt||(Lt=Wn,Xt=Kn,ir.call(Rt))}):Xt={},ir.call(this)};var m=function(vt,bt,lt,yt){this.actor=vt,this.layerIndex=bt,this.availableImages=lt,this.loadVectorData=yt||h,this.loading={},this.loaded={}};m.prototype.loadTile=function(vt,bt){var lt=this,yt=vt.uid;this.loading||(this.loading={});var zt=!!(vt&&vt.request&&vt.request.collectResourceTiming)&&new i.RequestPerformance(vt.request),Rt=this.loading[yt]=new a(vt);Rt.abort=this.loadVectorData(vt,function(it,at){if(delete lt.loading[yt],it||!at)return Rt.status="done",lt.loaded[yt]=Rt,bt(it);var Lt=at.rawData,xt={};at.expires&&(xt.expires=at.expires),at.cacheControl&&(xt.cacheControl=at.cacheControl);var Ht={};if(zt){var Xt=zt.finish();Xt&&(Ht.resourceTiming=JSON.parse(JSON.stringify(Xt)))}Rt.vectorTile=at.vectorTile,Rt.parse(at.vectorTile,lt.layerIndex,lt.availableImages,lt.actor,function(Yt,Qt){if(Yt||!Qt)return bt(Yt);bt(null,i.extend({rawTileData:Lt.slice(0)},Qt,xt,Ht))}),lt.loaded=lt.loaded||{},lt.loaded[yt]=Rt})},m.prototype.reloadTile=function(vt,bt){var lt=this,yt=this.loaded,zt=vt.uid,Rt=this;if(yt&&yt[zt]){var it=yt[zt];it.showCollisionBoxes=vt.showCollisionBoxes;var at=function(Lt,xt){var Ht=it.reloadCallback;Ht&&(delete it.reloadCallback,it.parse(it.vectorTile,Rt.layerIndex,lt.availableImages,Rt.actor,Ht)),bt(Lt,xt)};it.status==="parsing"?it.reloadCallback=at:it.status==="done"&&(it.vectorTile?it.parse(it.vectorTile,this.layerIndex,this.availableImages,this.actor,at):at())}},m.prototype.abortTile=function(vt,bt){var lt=this.loading,yt=vt.uid;lt&<[yt]&<[yt].abort&&(lt[yt].abort(),delete lt[yt]),bt()},m.prototype.removeTile=function(vt,bt){var lt=this.loaded,yt=vt.uid;lt&<[yt]&&delete lt[yt],bt()};var v=i.window.ImageBitmap,_=function(){this.loaded={}};_.prototype.loadTile=function(vt,bt){var lt=vt.uid,yt=vt.encoding,zt=vt.rawImageData,Rt=v&&zt instanceof v?this.getImageData(zt):zt,it=new i.DEMData(lt,Rt,yt);this.loaded=this.loaded||{},this.loaded[lt]=it,bt(null,it)},_.prototype.getImageData=function(vt){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(vt.width,vt.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=vt.width,this.offscreenCanvas.height=vt.height,this.offscreenCanvasContext.drawImage(vt,0,0,vt.width,vt.height);var bt=this.offscreenCanvasContext.getImageData(-1,-1,vt.width+2,vt.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new i.RGBAImage({width:bt.width,height:bt.height},bt.data)},_.prototype.removeTile=function(vt){var bt=this.loaded,lt=vt.uid;bt&&bt[lt]&&delete bt[lt]};var S=function vt(bt,lt){var yt,zt=bt&&bt.type;if(zt==="FeatureCollection")for(yt=0;yt=0!=!!bt&&vt.reverse()}var R=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,M=function(vt){this._feature=vt,this.extent=i.EXTENT,this.type=vt.type,this.properties=vt.tags,"id"in vt&&!isNaN(vt.id)&&(this.id=parseInt(vt.id,10))};M.prototype.loadGeometry=function(){if(this._feature.type===1){for(var vt=[],bt=0,lt=this._feature.geometry;bt>31}function K(vt,bt){for(var lt=vt.loadGeometry(),yt=vt.type,zt=0,Rt=0,it=lt.length,at=0;at>1;Y(vt,bt,it,yt,zt,Rt%2),q(vt,bt,lt,yt,it-1,Rt+1),q(vt,bt,lt,it+1,zt,Rt+1)}}function Y(vt,bt,lt,yt,zt,Rt){for(;zt>yt;){if(zt-yt>600){var it=zt-yt+1,at=lt-yt+1,Lt=Math.log(it),xt=.5*Math.exp(2*Lt/3),Ht=.5*Math.sqrt(Lt*xt*(it-xt)/it)*(at-it/2<0?-1:1);Y(vt,bt,lt,Math.max(yt,Math.floor(lt-at*xt/it+Ht)),Math.min(zt,Math.floor(lt+(it-at)*xt/it+Ht)),Rt)}var Xt=bt[2*lt+Rt],Yt=yt,Qt=zt;for(ee(vt,bt,yt,lt),bt[2*zt+Rt]>Xt&&ee(vt,bt,yt,zt);YtXt;)Qt--}bt[2*yt+Rt]===Xt?ee(vt,bt,yt,Qt):ee(vt,bt,++Qt,zt),Qt<=lt&&(yt=Qt+1),lt<=Qt&&(zt=Qt-1)}}function ee(vt,bt,lt,yt){me(vt,lt,yt),me(bt,2*lt,2*yt),me(bt,2*lt+1,2*yt+1)}function me(vt,bt,lt){var yt=vt[bt];vt[bt]=vt[lt],vt[lt]=yt}function he(vt,bt,lt,yt){var zt=vt-lt,Rt=bt-yt;return zt*zt+Rt*Rt}k.fromVectorTileJs=I,k.fromGeojsonVt=z,k.GeoJSONWrapper=$;var se=function(vt){return vt[0]},ae=function(vt){return vt[1]},ce=function(vt,bt,lt,yt,zt){bt===void 0&&(bt=se),lt===void 0&&(lt=ae),yt===void 0&&(yt=64),zt===void 0&&(zt=Float64Array),this.nodeSize=yt,this.points=vt;for(var Rt=vt.length<65536?Uint16Array:Uint32Array,it=this.ids=new Rt(vt.length),at=this.coords=new zt(2*vt.length),Lt=0;Lt=it&&Xt<=Lt&&Yt>=at&&Yt<=xt&&Pt.push(zt[dn]);else{var vn=Math.floor((fn+Kt)/2);Xt=Rt[2*vn],Yt=Rt[2*vn+1],Xt>=it&&Xt<=Lt&&Yt>=at&&Yt<=xt&&Pt.push(zt[vn]);var Nn=(tn+1)%2;(tn===0?it<=Xt:at<=Yt)&&(Qt.push(fn),Qt.push(vn-1),Qt.push(Nn)),(tn===0?Lt>=Xt:xt>=Yt)&&(Qt.push(vn+1),Qt.push(Kt),Qt.push(Nn))}}return Pt}(this.ids,this.coords,vt,bt,lt,yt,this.nodeSize)},ce.prototype.within=function(vt,bt,lt){return function(yt,zt,Rt,it,at,Lt){for(var xt=[0,yt.length-1,0],Ht=[],Xt=at*at;xt.length;){var Yt=xt.pop(),Qt=xt.pop(),Pt=xt.pop();if(Qt-Pt<=Lt)for(var tn=Pt;tn<=Qt;tn++)he(zt[2*tn],zt[2*tn+1],Rt,it)<=Xt&&Ht.push(yt[tn]);else{var Kt=Math.floor((Pt+Qt)/2),fn=zt[2*Kt],dn=zt[2*Kt+1];he(fn,dn,Rt,it)<=Xt&&Ht.push(yt[Kt]);var vn=(Yt+1)%2;(Yt===0?Rt-at<=fn:it-at<=dn)&&(xt.push(Pt),xt.push(Kt-1),xt.push(vn)),(Yt===0?Rt+at>=fn:it+at>=dn)&&(xt.push(Kt+1),xt.push(Qt),xt.push(vn))}}return Ht}(this.ids,this.coords,vt,bt,lt,this.nodeSize)};var de={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(vt){return vt}},ve=function(vt){this.options=ze(Object.create(de),vt),this.trees=new Array(this.options.maxZoom+1)};function ye(vt,bt,lt,yt,zt){return{x:vt,y:bt,zoom:1/0,id:lt,parentId:-1,numPoints:yt,properties:zt}}function _e(vt,bt){var lt=vt.geometry.coordinates,yt=lt[0],zt=lt[1];return{x:Pe(yt),y:Ie(zt),zoom:1/0,index:bt,parentId:-1}}function Se(vt){return{type:"Feature",id:vt.id,properties:Te(vt),geometry:{type:"Point",coordinates:[(yt=vt.x,360*(yt-.5)),(bt=vt.y,lt=(180-360*bt)*Math.PI/180,360*Math.atan(Math.exp(lt))/Math.PI-90)]}};var bt,lt,yt}function Te(vt){var bt=vt.numPoints,lt=bt>=1e4?Math.round(bt/1e3)+"k":bt>=1e3?Math.round(bt/100)/10+"k":bt;return ze(ze({},vt.properties),{cluster:!0,cluster_id:vt.id,point_count:bt,point_count_abbreviated:lt})}function Pe(vt){return vt/360+.5}function Ie(vt){var bt=Math.sin(vt*Math.PI/180),lt=.5-.25*Math.log((1+bt)/(1-bt))/Math.PI;return lt<0?0:lt>1?1:lt}function ze(vt,bt){for(var lt in bt)vt[lt]=bt[lt];return vt}function De(vt){return vt.x}function He(vt){return vt.y}function Ve(vt,bt,lt,yt){for(var zt,Rt=yt,it=lt-bt>>1,at=lt-bt,Lt=vt[bt],xt=vt[bt+1],Ht=vt[lt],Xt=vt[lt+1],Yt=bt+3;YtRt)zt=Yt,Rt=Qt;else if(Qt===Rt){var Pt=Math.abs(Yt-it);Ptyt&&(zt-bt>3&&Ve(vt,bt,zt,yt),vt[zt+2]=Rt,lt-zt>3&&Ve(vt,zt,lt,yt))}function $e(vt,bt,lt,yt,zt,Rt){var it=zt-lt,at=Rt-yt;if(it!==0||at!==0){var Lt=((vt-lt)*it+(bt-yt)*at)/(it*it+at*at);Lt>1?(lt=zt,yt=Rt):Lt>0&&(lt+=it*Lt,yt+=at*Lt)}return(it=vt-lt)*it+(at=bt-yt)*at}function Oe(vt,bt,lt,yt){var zt={id:vt===void 0?null:vt,type:bt,geometry:lt,tags:yt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Rt){var it=Rt.geometry,at=Rt.type;if(at==="Point"||at==="MultiPoint"||at==="LineString")ke(Rt,it);else if(at==="Polygon"||at==="MultiLineString")for(var Lt=0;Lt0&&(it+=yt?(zt*xt-Lt*Rt)/2:Math.sqrt(Math.pow(Lt-zt,2)+Math.pow(xt-Rt,2))),zt=Lt,Rt=xt}var Ht=bt.length-3;bt[2]=1,Ve(bt,0,Ht,lt),bt[Ht+2]=1,bt.size=Math.abs(it),bt.start=0,bt.end=bt.size}function Ze(vt,bt,lt,yt){for(var zt=0;zt1?1:lt}function Ee(vt,bt,lt,yt,zt,Rt,it,at){if(yt/=bt,Rt>=(lt/=bt)&&it=yt)return null;for(var Lt=[],xt=0;xt=lt&&Pt=yt)){var tn=[];if(Yt==="Point"||Yt==="MultiPoint")Ne(Xt,tn,lt,yt,zt);else if(Yt==="LineString")je(Xt,tn,lt,yt,zt,!1,at.lineMetrics);else if(Yt==="MultiLineString")ot(Xt,tn,lt,yt,zt,!1);else if(Yt==="Polygon")ot(Xt,tn,lt,yt,zt,!0);else if(Yt==="MultiPolygon")for(var Kt=0;Kt=lt&&it<=yt&&(bt.push(vt[Rt]),bt.push(vt[Rt+1]),bt.push(vt[Rt+2]))}}function je(vt,bt,lt,yt,zt,Rt,it){for(var at,Lt,xt=nt(vt),Ht=zt===0?ht:pt,Xt=vt.start,Yt=0;Ytlt&&(Lt=Ht(xt,Qt,Pt,Kt,fn,lt),it&&(xt.start=Xt+at*Lt)):dn>yt?vn=lt&&(Lt=Ht(xt,Qt,Pt,Kt,fn,lt),Nn=!0),vn>yt&&dn<=yt&&(Lt=Ht(xt,Qt,Pt,Kt,fn,yt),Nn=!0),!Rt&&Nn&&(it&&(xt.end=Xt+at*Lt),bt.push(xt),xt=nt(vt)),it&&(Xt+=at)}var er=vt.length-3;Qt=vt[er],Pt=vt[er+1],tn=vt[er+2],(dn=zt===0?Qt:Pt)>=lt&&dn<=yt&&Ge(xt,Qt,Pt,tn),er=xt.length-3,Rt&&er>=3&&(xt[er]!==xt[0]||xt[er+1]!==xt[1])&&Ge(xt,xt[0],xt[1],xt[2]),xt.length&&bt.push(xt)}function nt(vt){var bt=[];return bt.size=vt.size,bt.start=vt.start,bt.end=vt.end,bt}function ot(vt,bt,lt,yt,zt,Rt){for(var it=0;itit.maxX&&(it.maxX=Ht),Xt>it.maxY&&(it.maxY=Xt)}return it}function Gt(vt,bt,lt,yt){var zt=bt.geometry,Rt=bt.type,it=[];if(Rt==="Point"||Rt==="MultiPoint")for(var at=0;at0&&bt.size<(zt?it:yt))lt.numPoints+=bt.length/3;else{for(var at=[],Lt=0;Ltit)&&(lt.numSimplified++,at.push(bt[Lt]),at.push(bt[Lt+1])),lt.numPoints++;zt&&function(xt,Ht){for(var Xt=0,Yt=0,Qt=xt.length,Pt=Qt-2;Yt0===Ht)for(Yt=0,Qt=xt.length;Yt24)throw new Error("maxZoom should be in the 0-24 range");if(bt.promoteId&&bt.generateId)throw new Error("promoteId and generateId cannot be used together.");var yt=function(zt,Rt){var it=[];if(zt.type==="FeatureCollection")for(var at=0;at=yt;xt--){var Ht=+Date.now();at=this._cluster(at,xt),this.trees[xt]=new ce(at,De,He,Rt,Float32Array),lt&&console.log("z%d: %d clusters in %dms",xt,at.length,+Date.now()-Ht)}return lt&&console.timeEnd("total time"),this},ve.prototype.getClusters=function(vt,bt){var lt=((vt[0]+180)%360+360)%360-180,yt=Math.max(-90,Math.min(90,vt[1])),zt=vt[2]===180?180:((vt[2]+180)%360+360)%360-180,Rt=Math.max(-90,Math.min(90,vt[3]));if(vt[2]-vt[0]>=360)lt=-180,zt=180;else if(lt>zt){var it=this.getClusters([lt,yt,180,Rt],bt),at=this.getClusters([-180,yt,zt,Rt],bt);return it.concat(at)}for(var Lt=this.trees[this._limitZoom(bt)],xt=[],Ht=0,Xt=Lt.range(Pe(lt),Ie(Rt),Pe(zt),Ie(yt));Htbt&&(Pt+=dn.numPoints||1)}if(Pt>=at){for(var vn=Ht.x*Qt,Nn=Ht.y*Qt,er=it&&Qt>1?this._map(Ht,!0):null,En=(xt<<5)+(bt+1)+this.points.length,In=0,Un=Yt;In1)for(var Fn=0,ir=Yt;Fn>5},ve.prototype._getOriginZoom=function(vt){return(vt-this.points.length)%32},ve.prototype._map=function(vt,bt){if(vt.numPoints)return bt?ze({},vt.properties):vt.properties;var lt=this.points[vt.index].properties,yt=this.options.map(lt);return bt&&yt===lt?ze({},yt):yt},_t.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},_t.prototype.splitTile=function(vt,bt,lt,yt,zt,Rt,it){for(var at=[vt,bt,lt,yt],Lt=this.options,xt=Lt.debug;at.length;){yt=at.pop(),lt=at.pop(),bt=at.pop(),vt=at.pop();var Ht=1<1&&console.time("creation"),Yt=this.tiles[Xt]=en(vt,bt,lt,yt,Lt),this.tileCoords.push({z:bt,x:lt,y:yt}),xt)){xt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",bt,lt,yt,Yt.numFeatures,Yt.numPoints,Yt.numSimplified),console.timeEnd("creation"));var Qt="z"+bt;this.stats[Qt]=(this.stats[Qt]||0)+1,this.total++}if(Yt.source=vt,zt){if(bt===Lt.maxZoom||bt===zt)continue;var Pt=1<1&&console.time("clipping");var tn,Kt,fn,dn,vn,Nn,er=.5*Lt.buffer/Lt.extent,En=.5-er,In=.5+er,Un=1+er;tn=Kt=fn=dn=null,vn=Ee(vt,Ht,lt-er,lt+In,0,Yt.minX,Yt.maxX,Lt),Nn=Ee(vt,Ht,lt+En,lt+Un,0,Yt.minX,Yt.maxX,Lt),vt=null,vn&&(tn=Ee(vn,Ht,yt-er,yt+In,1,Yt.minY,Yt.maxY,Lt),Kt=Ee(vn,Ht,yt+En,yt+Un,1,Yt.minY,Yt.maxY,Lt),vn=null),Nn&&(fn=Ee(Nn,Ht,yt-er,yt+In,1,Yt.minY,Yt.maxY,Lt),dn=Ee(Nn,Ht,yt+En,yt+Un,1,Yt.minY,Yt.maxY,Lt),Nn=null),xt>1&&console.timeEnd("clipping"),at.push(tn||[],bt+1,2*lt,2*yt),at.push(Kt||[],bt+1,2*lt,2*yt+1),at.push(fn||[],bt+1,2*lt+1,2*yt),at.push(dn||[],bt+1,2*lt+1,2*yt+1)}}},_t.prototype.getTile=function(vt,bt,lt){var yt=this.options,zt=yt.extent,Rt=yt.debug;if(vt<0||vt>24)return null;var it=1<1&&console.log("drilling down to z%d-%d-%d",vt,bt,lt);for(var Lt,xt=vt,Ht=bt,Xt=lt;!Lt&&xt>0;)xt--,Ht=Math.floor(Ht/2),Xt=Math.floor(Xt/2),Lt=this.tiles[nn(xt,Ht,Xt)];return Lt&&Lt.source?(Rt>1&&console.log("found parent tile z%d-%d-%d",xt,Ht,Xt),Rt>1&&console.time("drilling down"),this.splitTile(Lt.source,xt,Ht,Xt,vt,bt,lt),Rt>1&&console.timeEnd("drilling down"),this.tiles[at]?It(this.tiles[at],zt):null):null};var bn=function(vt){function bt(lt,yt,zt,Rt){vt.call(this,lt,yt,zt,gn),Rt&&(this.loadGeoJSON=Rt)}return vt&&(bt.__proto__=vt),bt.prototype=Object.create(vt&&vt.prototype),bt.prototype.constructor=bt,bt.prototype.loadData=function(lt,yt){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=yt,this._pendingLoadDataParams=lt,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},bt.prototype._loadData=function(){var lt=this;if(this._pendingCallback&&this._pendingLoadDataParams){var yt=this._pendingCallback,zt=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Rt=!!(zt&&zt.request&&zt.request.collectResourceTiming)&&new i.RequestPerformance(zt.request);this.loadGeoJSON(zt,function(it,at){if(it||!at)return yt(it);if(typeof at!="object")return yt(new Error("Input data given to '"+zt.source+"' is not a valid GeoJSON object."));S(at,!0);try{if(zt.filter){var Lt=i.createExpression(zt.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Lt.result==="error")throw new Error(Lt.value.map(function(Yt){return Yt.key+": "+Yt.message}).join(", "));var xt=at.features.filter(function(Yt){return Lt.value.evaluate({zoom:0},Yt)});at={type:"FeatureCollection",features:xt}}lt._geoJSONIndex=zt.cluster?new ve(function(Yt){var Qt=Yt.superclusterOptions,Pt=Yt.clusterProperties;if(!Pt||!Qt)return Qt;for(var tn={},Kt={},fn={accumulated:null,zoom:0},dn={properties:null},vn=Object.keys(Pt),Nn=0,er=vn;Nn=0?0:J.button},w.remove=function(J){J.parentNode&&J.parentNode.removeChild(J)};var A=function(J){function le(){J.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.isLoaded=function(){return this.loaded},le.prototype.setLoaded=function(ie){if(this.loaded!==ie&&(this.loaded=ie,ie)){for(var V=0,ne=this.requestors;V=0?1.2:1))}function E(J,le,ie,V,ne,ge,xe){for(var Me=0;Me65535)Je(new Error("glyphs > 65535 not supported"));else if(mt.ranges[Vt])Je(null,{stack:rt,id:dt,glyph:Et});else{var jt=mt.requests[Vt];jt||(jt=mt.requests[Vt]=[],L.loadGlyphRange(rt,Vt,ie.url,ie.requestManager,function(Nt,cn){if(cn){for(var sn in cn)ie._doesCharSupportLocalGlyph(+sn)||(mt.glyphs[+sn]=cn[+sn]);mt.ranges[Vt]=!0}for(var xn=0,pn=jt;xn1&&(Fe=J[++Me]);var rt=Math.abs(Je-Fe.left),dt=Math.abs(Je-Fe.right),mt=Math.min(rt,dt),Et=void 0,Vt=ne/ie*(V+1);if(Fe.isDash){var jt=V-Math.abs(Vt);Et=Math.sqrt(mt*mt+jt*jt)}else Et=V-Math.sqrt(mt*mt+Vt*Vt);this.data[xe+Je]=Math.max(0,Math.min(255,Et+128))}},$.prototype.addRegularDash=function(J){for(var le=J.length-1;le>=0;--le){var ie=J[le],V=J[le+1];ie.zeroLength?J.splice(le,1):V&&V.isDash===ie.isDash&&(V.left=ie.left,J.splice(le,1))}var ne=J[0],ge=J[J.length-1];ne.isDash===ge.isDash&&(ne.left=ge.left-this.width,ge.right=ne.right+this.width);for(var xe=this.width*this.nextRow,Me=0,Fe=J[Me],Je=0;Je1&&(Fe=J[++Me]);var rt=Math.abs(Je-Fe.left),dt=Math.abs(Je-Fe.right),mt=Math.min(rt,dt),Et=Fe.isDash?mt:-mt;this.data[xe+Je]=Math.max(0,Math.min(255,Et+128))}},$.prototype.addDash=function(J,le){var ie=le?7:0,V=2*ie+1;if(this.nextRow+V>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var ne=0,ge=0;ge=ie&&J.x=V&&J.y0&&(Je[new i.OverscaledTileID(ie.overscaledZ,xe,V.z,ge,V.y-1).key]={backfilled:!1},Je[new i.OverscaledTileID(ie.overscaledZ,ie.wrap,V.z,V.x,V.y-1).key]={backfilled:!1},Je[new i.OverscaledTileID(ie.overscaledZ,Fe,V.z,Me,V.y-1).key]={backfilled:!1}),V.y+10&&(ne.resourceTiming=ie._resourceTiming,ie._resourceTiming=[]),ie.fire(new i.Event("data",ne))}})},le.prototype.onAdd=function(ie){this.map=ie,this.load()},le.prototype.setData=function(ie){var V=this;return this._data=ie,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(ne){if(ne)V.fire(new i.ErrorEvent(ne));else{var ge={dataType:"source",sourceDataType:"content"};V._collectResourceTiming&&V._resourceTiming&&V._resourceTiming.length>0&&(ge.resourceTiming=V._resourceTiming,V._resourceTiming=[]),V.fire(new i.Event("data",ge))}}),this},le.prototype.getClusterExpansionZoom=function(ie,V){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:ie,source:this.id},V),this},le.prototype.getClusterChildren=function(ie,V){return this.actor.send("geojson.getClusterChildren",{clusterId:ie,source:this.id},V),this},le.prototype.getClusterLeaves=function(ie,V,ne,ge){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:ie,limit:V,offset:ne},ge),this},le.prototype._updateWorkerData=function(ie){var V=this;this._loaded=!1;var ne=i.extend({},this.workerOptions),ge=this._data;typeof ge=="string"?(ne.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ge),i.ResourceType.Source),ne.request.collectResourceTiming=this._collectResourceTiming):ne.data=JSON.stringify(ge),this.actor.send(this.type+".loadData",ne,function(xe,Me){V._removed||Me&&Me.abandoned||(V._loaded=!0,Me&&Me.resourceTiming&&Me.resourceTiming[V.id]&&(V._resourceTiming=Me.resourceTiming[V.id].slice(0)),V.actor.send(V.type+".coalesce",{source:ne.source},null),ie(xe))})},le.prototype.loaded=function(){return this._loaded},le.prototype.loadTile=function(ie,V){var ne=this,ge=ie.actor?"reloadTile":"loadTile";ie.actor=this.actor;var xe={type:this.type,uid:ie.uid,tileID:ie.tileID,zoom:ie.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};ie.request=this.actor.send(ge,xe,function(Me,Fe){return delete ie.request,ie.unloadVectorData(),ie.aborted?V(null):Me?V(Me):(ie.loadVectorData(Fe,ne.map.painter,ge==="reloadTile"),V(null))})},le.prototype.abortTile=function(ie){ie.request&&(ie.request.cancel(),delete ie.request),ie.aborted=!0},le.prototype.unloadTile=function(ie){ie.unloadVectorData(),this.actor.send("removeTile",{uid:ie.uid,type:this.type,source:this.id})},le.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},le.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},le.prototype.hasTransition=function(){return!1},le}(i.Evented),oe=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),q=function(J){function le(ie,V,ne,ge){J.call(this),this.id=ie,this.dispatcher=ne,this.coordinates=V.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ge),this.options=V}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(ie,V){var ne=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ge,xe){ne._loaded=!0,ge?ne.fire(new i.ErrorEvent(ge)):xe&&(ne.image=xe,ie&&(ne.coordinates=ie),V&&V(),ne._finishLoading())})},le.prototype.loaded=function(){return this._loaded},le.prototype.updateImage=function(ie){var V=this;return this.image&&ie.url?(this.options.url=ie.url,this.load(ie.coordinates,function(){V.texture=null}),this):this},le.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},le.prototype.onAdd=function(ie){this.map=ie,this.load()},le.prototype.setCoordinates=function(ie){var V=this;this.coordinates=ie;var ne=ie.map(i.MercatorCoordinate.fromLngLat);this.tileID=function(xe){for(var Me=1/0,Fe=1/0,Je=-1/0,rt=-1/0,dt=0,mt=xe;dtV.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+V.start(0)+" and "+V.end(0)+"-second mark."))):this.video.currentTime=ie}},le.prototype.getVideo=function(){return this.video},le.prototype.onAdd=function(ie){this.map||(this.map=ie,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},le.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var ie=this.map.painter.context,V=ie.gl;for(var ne in this.boundsBuffer||(this.boundsBuffer=ie.createVertexBuffer(this._boundsArray,oe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE),V.texSubImage2D(V.TEXTURE_2D,0,0,0,V.RGBA,V.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(ie,this.video,V.RGBA),this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE)),this.tiles){var ge=this.tiles[ne];ge.state!=="loaded"&&(ge.state="loaded",ge.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this.video&&!this.video.paused},le}(q),ee=function(J){function le(ie,V,ne,ge){J.call(this,ie,V,ne,ge),V.coordinates?Array.isArray(V.coordinates)&&V.coordinates.length===4&&!V.coordinates.some(function(xe){return!Array.isArray(xe)||xe.length!==2||xe.some(function(Me){return typeof Me!="number"})})||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'missing required property "coordinates"'))),V.animate&&typeof V.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'optional "animate" property must be a boolean value'))),V.canvas?typeof V.canvas=="string"||V.canvas instanceof i.window.HTMLCanvasElement||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'missing required property "canvas"'))),this.options=V,this.animate=V.animate===void 0||V.animate}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},le.prototype.getCanvas=function(){return this.canvas},le.prototype.onAdd=function(ie){this.map=ie,this.load(),this.canvas&&this.animate&&this.play()},le.prototype.onRemove=function(){this.pause()},le.prototype.prepare=function(){var ie=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ie=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ie=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var V=this.map.painter.context,ne=V.gl;for(var ge in this.boundsBuffer||(this.boundsBuffer=V.createVertexBuffer(this._boundsArray,oe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ie||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(V,this.canvas,ne.RGBA,{premultiply:!0}),this.tiles){var xe=this.tiles[ge];xe.state!=="loaded"&&(xe.state="loaded",xe.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this._playing},le.prototype._hasInvalidDimensions=function(){for(var ie=0,V=[this.canvas.width,this.canvas.height];iethis.max){var xe=this._getAndRemoveByKey(this.order[0]);xe&&this.onRemove(xe)}return this},ce.prototype.has=function(J){return J.wrapped().key in this.data},ce.prototype.getAndRemove=function(J){return this.has(J)?this._getAndRemoveByKey(J.wrapped().key):null},ce.prototype._getAndRemoveByKey=function(J){var le=this.data[J].shift();return le.timeout&&clearTimeout(le.timeout),this.data[J].length===0&&delete this.data[J],this.order.splice(this.order.indexOf(J),1),le.value},ce.prototype.getByKey=function(J){var le=this.data[J];return le?le[0].value:null},ce.prototype.get=function(J){return this.has(J)?this.data[J.wrapped().key][0].value:null},ce.prototype.remove=function(J,le){if(!this.has(J))return this;var ie=J.wrapped().key,V=le===void 0?0:this.data[ie].indexOf(le),ne=this.data[ie][V];return this.data[ie].splice(V,1),ne.timeout&&clearTimeout(ne.timeout),this.data[ie].length===0&&delete this.data[ie],this.onRemove(ne.value),this.order.splice(this.order.indexOf(ie),1),this},ce.prototype.setMaxSize=function(J){for(this.max=J;this.order.length>this.max;){var le=this._getAndRemoveByKey(this.order[0]);le&&this.onRemove(le)}return this},ce.prototype.filter=function(J){var le=[];for(var ie in this.data)for(var V=0,ne=this.data[ie];V1||(Math.abs(rt)>1&&(Math.abs(rt+mt)===1?rt+=mt:Math.abs(rt-mt)===1&&(rt-=mt)),Je.dem&&Fe.dem&&(Fe.dem.backfillBorder(Je.dem,rt,dt),Fe.neighboringTiles&&Fe.neighboringTiles[Et]&&(Fe.neighboringTiles[Et].backfilled=!0)))}},le.prototype.getTile=function(ie){return this.getTileByID(ie.key)},le.prototype.getTileByID=function(ie){return this._tiles[ie]},le.prototype._retainLoadedChildren=function(ie,V,ne,ge){for(var xe in this._tiles){var Me=this._tiles[xe];if(!(ge[xe]||!Me.hasData()||Me.tileID.overscaledZ<=V||Me.tileID.overscaledZ>ne)){for(var Fe=Me.tileID;Me&&Me.tileID.overscaledZ>V+1;){var Je=Me.tileID.scaledTo(Me.tileID.overscaledZ-1);(Me=this._tiles[Je.key])&&Me.hasData()&&(Fe=Je)}for(var rt=Fe;rt.overscaledZ>V;)if(ie[(rt=rt.scaledTo(rt.overscaledZ-1)).key]){ge[Fe.key]=Fe;break}}}},le.prototype.findLoadedParent=function(ie,V){if(ie.key in this._loadedParentTiles){var ne=this._loadedParentTiles[ie.key];return ne&&ne.tileID.overscaledZ>=V?ne:null}for(var ge=ie.overscaledZ-1;ge>=V;ge--){var xe=ie.scaledTo(ge),Me=this._getLoadedTile(xe);if(Me)return Me}},le.prototype._getLoadedTile=function(ie){var V=this._tiles[ie.key];return V&&V.hasData()?V:this._cache.getByKey(ie.wrapped().key)},le.prototype.updateCacheSize=function(ie){var V=(Math.ceil(ie.width/this._source.tileSize)+1)*(Math.ceil(ie.height/this._source.tileSize)+1),ne=Math.floor(5*V),ge=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ne):ne;this._cache.setMaxSize(ge)},le.prototype.handleWrapJump=function(ie){var V=(ie-(this._prevLng===void 0?ie:this._prevLng))/360,ne=Math.round(V);if(this._prevLng=ie,ne){var ge={};for(var xe in this._tiles){var Me=this._tiles[xe];Me.tileID=Me.tileID.unwrapTo(Me.tileID.wrap+ne),ge[Me.tileID.key]=Me}for(var Fe in this._tiles=ge,this._timers)clearTimeout(this._timers[Fe]),delete this._timers[Fe];for(var Je in this._tiles){var rt=this._tiles[Je];this._setTileReloadTimer(Je,rt)}}},le.prototype.update=function(ie){var V=this;if(this.transform=ie,this._sourceLoaded&&!this._paused){var ne;this.updateCacheSize(ie),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?ne=ie.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(An){return new i.OverscaledTileID(An.canonical.z,An.wrap,An.canonical.z,An.canonical.x,An.canonical.y)}):(ne=ie.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(ne=ne.filter(function(An){return V._source.hasTile(An)}))):ne=[];var ge=ie.coveringZoomLevel(this._source),xe=Math.max(ge-le.maxOverzooming,this._source.minzoom),Me=Math.max(ge+le.maxUnderzooming,this._source.minzoom),Fe=this._updateRetainedTiles(ne,ge);if(it(this._source.type)){for(var Je={},rt={},dt=0,mt=Object.keys(Fe);dtthis._source.maxzoom){var cn=jt.children(this._source.maxzoom)[0],sn=this.getTile(cn);if(sn&&sn.hasData()){ne[cn.key]=cn;continue}}else{var xn=jt.children(this._source.maxzoom);if(ne[xn[0].key]&&ne[xn[1].key]&&ne[xn[2].key]&&ne[xn[3].key])continue}for(var pn=Nt.wasRequested(),Ln=jt.overscaledZ-1;Ln>=xe;--Ln){var On=jt.scaledTo(Ln);if(ge[On.key]||(ge[On.key]=!0,!(Nt=this.getTile(On))&&pn&&(Nt=this._addTile(On)),Nt&&(ne[On.key]=On,pn=Nt.wasRequested(),Nt.hasData())))break}}}return ne},le.prototype._updateLoadedParentTileCache=function(){for(var ie in this._loadedParentTiles={},this._tiles){for(var V=[],ne=void 0,ge=this._tiles[ie].tileID;ge.overscaledZ>0;){if(ge.key in this._loadedParentTiles){ne=this._loadedParentTiles[ge.key];break}V.push(ge.key);var xe=ge.scaledTo(ge.overscaledZ-1);if(ne=this._getLoadedTile(xe))break;ge=xe}for(var Me=0,Fe=V;Me0||(V.hasData()&&V.state!=="reloading"?this._cache.add(V.tileID,V,V.getExpiryTimeout()):(V.aborted=!0,this._abortTile(V),this._unloadTile(V))))},le.prototype.clearTiles=function(){for(var ie in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(ie);this._cache.reset()},le.prototype.tilesIn=function(ie,V,ne){var ge=this,xe=[],Me=this.transform;if(!Me)return xe;for(var Fe=ne?Me.getCameraQueryGeometry(ie):ie,Je=ie.map(function(Ln){return Me.pointCoordinate(Ln)}),rt=Fe.map(function(Ln){return Me.pointCoordinate(Ln)}),dt=this.getIds(),mt=1/0,Et=1/0,Vt=-1/0,jt=-1/0,Nt=0,cn=rt;Nt=0&&Dr[1].y+rr>=0){var Pr=Je.map(function(Mo){return An.getTilePoint(Mo)}),Zr=rt.map(function(Mo){return An.getTilePoint(Mo)});xe.push({tile:On,tileID:An,queryGeometry:Pr,cameraQueryGeometry:Zr,scale:Sn})}}},pn=0;pn=i.browser.now())return!0}return!1},le.prototype.setFeatureState=function(ie,V,ne){ie=ie||"_geojsonTileLayer",this._state.updateState(ie,V,ne)},le.prototype.removeFeatureState=function(ie,V,ne){ie=ie||"_geojsonTileLayer",this._state.removeFeatureState(ie,V,ne)},le.prototype.getFeatureState=function(ie,V){return ie=ie||"_geojsonTileLayer",this._state.getState(ie,V)},le.prototype.setDependencies=function(ie,V,ne){var ge=this._tiles[ie];ge&&ge.setDependencies(V,ne)},le.prototype.reloadTilesForDependencies=function(ie,V){for(var ne in this._tiles)this._tiles[ne].hasDependency(ie,V)&&this._reloadTile(ne,"reloading");this._cache.filter(function(ge){return!ge.hasDependency(ie,V)})},le}(i.Evented);function Rt(J,le){var ie=Math.abs(2*J.wrap)-+(J.wrap<0),V=Math.abs(2*le.wrap)-+(le.wrap<0);return J.overscaledZ-le.overscaledZ||V-ie||le.canonical.y-J.canonical.y||le.canonical.x-J.canonical.x}function it(J){return J==="raster"||J==="image"||J==="video"}function at(){return new i.window.Worker(Ft.workerUrl)}zt.maxOverzooming=10,zt.maxUnderzooming=3;var Lt="mapboxgl_preloaded_worker_pool",xt=function(){this.active={}};xt.prototype.acquire=function(J){if(!this.workers)for(this.workers=[];this.workers.length0?(V-ge)/xe:0;return this.points[ne].mult(1-Me).add(this.points[le].mult(Me))};var xr=function(J,le,ie){var V=this.boxCells=[],ne=this.circleCells=[];this.xCellCount=Math.ceil(J/ie),this.yCellCount=Math.ceil(le/ie);for(var ge=0;ge=-le[0]&&ie<=le[0]&&V>=-le[1]&&V<=le[1]}function Kn(J,le,ie,V,ne,ge,xe,Me){var Fe=V?J.textSizeData:J.iconSizeData,Je=i.evaluateSizeForZoom(Fe,ie.transform.zoom),rt=[256/ie.width*2+1,256/ie.height*2+1],dt=V?J.text.dynamicLayoutVertexArray:J.icon.dynamicLayoutVertexArray;dt.clear();for(var mt=J.lineVertexArray,Et=V?J.text.placedSymbolArray:J.icon.placedSymbolArray,Vt=ie.transform.width/ie.transform.height,jt=!1,Nt=0;NtMath.abs(ie.x-le.x)*V?{useVertical:!0}:(J===i.WritingMode.vertical?le.yie.x)?{needsFlipping:!0}:null}function zr(J,le,ie,V,ne,ge,xe,Me,Fe,Je,rt,dt,mt,Et){var Vt,jt=le/24,Nt=J.lineOffsetX*jt,cn=J.lineOffsetY*jt;if(J.numGlyphs>1){var sn=J.glyphStartIndex+J.numGlyphs,xn=J.lineStartIndex,pn=J.lineStartIndex+J.lineLength,Ln=_r(jt,Me,Nt,cn,ie,rt,dt,J,Fe,ge,mt);if(!Ln)return{notEnoughRoom:!0};var On=Fn(Ln.first.point,xe).point,An=Fn(Ln.last.point,xe).point;if(V&&!ie){var Sn=Ir(J.writingMode,On,An,Et);if(Sn)return Sn}Vt=[Ln.first];for(var rr=J.glyphStartIndex+1;rr0?Mo.point:Fr(dt,Zr,Dr,1,ne),vo=Ir(J.writingMode,Dr,$o,Et);if(vo)return vo}var zo=Rr(jt*Me.getoffsetX(J.glyphStartIndex),Nt,cn,ie,rt,dt,J.segment,J.lineStartIndex,J.lineStartIndex+J.lineLength,Fe,ge,mt);if(!zo)return{notEnoughRoom:!0};Vt=[zo]}for(var yi=0,Si=Vt;yi0?1:-1,Vt=0;V&&(Et*=-1,Vt=Math.PI),Et<0&&(Vt+=Math.PI);for(var jt=Et>0?Me+xe:Me+xe+1,Nt=ne,cn=ne,sn=0,xn=0,pn=Math.abs(mt),Ln=[];sn+xn<=pn;){if((jt+=Et)=Fe)return null;if(cn=Nt,Ln.push(Nt),(Nt=dt[jt])===void 0){var On=new i.Point(Je.getx(jt),Je.gety(jt)),An=Fn(On,rt);if(An.signedDistanceFromCamera>0)Nt=dt[jt]=An.point;else{var Sn=jt-Et;Nt=Fr(sn===0?ge:new i.Point(Je.getx(Sn),Je.gety(Sn)),On,cn,pn-sn+1,rt)}}sn+=xn,xn=cn.dist(Nt)}var rr=(pn-sn)/xn,Dr=Nt.sub(cn),Pr=Dr.mult(rr)._add(cn);Pr._add(Dr._unit()._perp()._mult(ie*Et));var Zr=Vt+Math.atan2(Nt.y-cn.y,Nt.x-cn.x);return Ln.push(Pr),{point:Pr,angle:Zr,path:Ln}}xr.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},xr.prototype.insert=function(J,le,ie,V,ne){this._forEachCell(le,ie,V,ne,this._insertBoxCell,this.boxUid++),this.boxKeys.push(J),this.bboxes.push(le),this.bboxes.push(ie),this.bboxes.push(V),this.bboxes.push(ne)},xr.prototype.insertCircle=function(J,le,ie,V){this._forEachCell(le-V,ie-V,le+V,ie+V,this._insertCircleCell,this.circleUid++),this.circleKeys.push(J),this.circles.push(le),this.circles.push(ie),this.circles.push(V)},xr.prototype._insertBoxCell=function(J,le,ie,V,ne,ge){this.boxCells[ne].push(ge)},xr.prototype._insertCircleCell=function(J,le,ie,V,ne,ge){this.circleCells[ne].push(ge)},xr.prototype._query=function(J,le,ie,V,ne,ge){if(ie<0||J>this.width||V<0||le>this.height)return!ne&&[];var xe=[];if(J<=0&&le<=0&&this.width<=ie&&this.height<=V){if(ne)return!0;for(var Me=0;Me0:xe},xr.prototype._queryCircle=function(J,le,ie,V,ne){var ge=J-ie,xe=J+ie,Me=le-ie,Fe=le+ie;if(xe<0||ge>this.width||Fe<0||Me>this.height)return!V&&[];var Je=[],rt={hitTest:V,circle:{x:J,y:le,radius:ie},seenUids:{box:{},circle:{}}};return this._forEachCell(ge,Me,xe,Fe,this._queryCellCircle,Je,rt,ne),V?Je.length>0:Je},xr.prototype.query=function(J,le,ie,V,ne){return this._query(J,le,ie,V,!1,ne)},xr.prototype.hitTest=function(J,le,ie,V,ne){return this._query(J,le,ie,V,!0,ne)},xr.prototype.hitTestCircle=function(J,le,ie,V){return this._queryCircle(J,le,ie,!0,V)},xr.prototype._queryCell=function(J,le,ie,V,ne,ge,xe,Me){var Fe=xe.seenUids,Je=this.boxCells[ne];if(Je!==null)for(var rt=this.bboxes,dt=0,mt=Je;dt=rt[Vt+0]&&V>=rt[Vt+1]&&(!Me||Me(this.boxKeys[Et]))){if(xe.hitTest)return ge.push(!0),!0;ge.push({key:this.boxKeys[Et],x1:rt[Vt],y1:rt[Vt+1],x2:rt[Vt+2],y2:rt[Vt+3]})}}}var jt=this.circleCells[ne];if(jt!==null)for(var Nt=this.circles,cn=0,sn=jt;cnxe*xe+Me*Me},xr.prototype._circleAndRectCollide=function(J,le,ie,V,ne,ge,xe){var Me=(ge-V)/2,Fe=Math.abs(J-(V+Me));if(Fe>Me+ie)return!1;var Je=(xe-ne)/2,rt=Math.abs(le-(ne+Je));if(rt>Je+ie)return!1;if(Fe<=Me||rt<=Je)return!0;var dt=Fe-Me,mt=rt-Je;return dt*dt+mt*mt<=ie*ie};var $r=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Kr(J,le){for(var ie=0;ie=1;$o--)Mo.push(Pr.path[$o]);for(var vo=1;vo0){for(var Hr=Mo[0].clone(),Lo=Mo[0].clone(),ki=1;ki=Sn.x&&Lo.x<=rr.x&&Hr.y>=Sn.y&&Lo.y<=rr.y?[Mo]:Lo.xrr.x||Lo.yrr.y?[]:i.clipLine([Mo],Sn.x,Sn.y,rr.x,rr.y)}for(var Io=0,$i=Si;Io<$i.length;Io+=1){var Ui=$i[Io];Dr.reset(Ui,.25*An);var ba;ba=Dr.length<=.5*An?1:Math.ceil(Dr.paddedLength/zo)+1;for(var Pi=0;Pi=this.screenRightBoundary||Vthis.screenBottomBoundary},So.prototype.isInsideGrid=function(J,le,ie,V){return ie>=0&&J=0&&le0?(this.prevPlacement&&this.prevPlacement.variableOffsets[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID].text&&(jt=this.prevPlacement.variableOffsets[dt.crossTileID].anchor),this.variableOffsets[dt.crossTileID]={textOffset:Nt,width:ie,height:V,anchor:J,textBoxScale:ne,prevAnchor:jt},this.markUsedJustification(mt,J,dt,Et),mt.allowVerticalPlacement&&(this.markUsedOrientation(mt,Et,dt),this.placedOrientations[dt.crossTileID]=Et),{shift:cn,placedGlyphBoxes:sn}):void 0},Wr.prototype.placeLayerBucketPart=function(J,le,ie){var V=this,ne=J.parameters,ge=ne.bucket,xe=ne.layout,Me=ne.posMatrix,Fe=ne.textLabelPlaneMatrix,Je=ne.labelToScreenMatrix,rt=ne.textPixelRatio,dt=ne.holdingForFade,mt=ne.collisionBoxArray,Et=ne.partiallyEvaluatedTextSize,Vt=ne.collisionGroup,jt=xe.get("text-optional"),Nt=xe.get("icon-optional"),cn=xe.get("text-allow-overlap"),sn=xe.get("icon-allow-overlap"),xn=xe.get("text-rotation-alignment")==="map",pn=xe.get("text-pitch-alignment")==="map",Ln=xe.get("icon-text-fit")!=="none",On=xe.get("symbol-z-order")==="viewport-y",An=cn&&(sn||!ge.hasIconData()||Nt),Sn=sn&&(cn||!ge.hasTextData()||jt);!ge.collisionArrays&&mt&&ge.deserializeCollisionBoxes(mt);var rr=function(vo,zo){if(!le[vo.crossTileID])if(dt)V.placements[vo.crossTileID]=new Yn(!1,!1,!1);else{var yi,Si=!1,Hr=!1,Lo=!0,ki=null,Io={box:null,offscreen:null},$i={box:null,offscreen:null},Ui=null,ba=null,Pi=0,fs=0,mr=0;zo.textFeatureIndex?Pi=zo.textFeatureIndex:vo.useRuntimeCollisionCircles&&(Pi=vo.featureIndex),zo.verticalTextFeatureIndex&&(fs=zo.verticalTextFeatureIndex);var ys=zo.textBox;if(ys){var Pl=function(tc){var Wf=i.WritingMode.horizontal;if(ge.allowVerticalPlacement&&!tc&&V.prevPlacement){var Rl=V.prevPlacement.placedOrientations[vo.crossTileID];Rl&&(V.placedOrientations[vo.crossTileID]=Rl,Wf=Rl,V.markUsedOrientation(ge,Wf,vo))}return Wf},Ys=function(tc,Wf){if(ge.allowVerticalPlacement&&vo.numVerticalGlyphVertices>0&&zo.verticalTextBox)for(var Rl=0,lg=ge.writingModes;Rl0&&(dl=dl.filter(function(tc){return tc!==ds.anchor})).unshift(ds.anchor)}var Pa=function(tc,Wf,Rl){for(var lg=tc.x2-tc.x1,E0=tc.y2-tc.y1,xm=vo.textBoxScale,Cx=Ln&&!sn?Wf:null,eh={box:[],offscreen:!1},Ax=cn?2*dl.length:dl.length,Wg=0;Wg=dl.length,oc=V.attemptAnchorPlacement(Mx,tc,lg,E0,xm,xn,pn,rt,Me,Vt,O1,vo,ge,Rl,Cx);if(oc&&(eh=oc.placedGlyphBoxes)&&eh.box&&eh.box.length){Si=!0,ki=oc.shift;break}}return eh};Ys(function(){return Pa(ys,zo.iconBox,i.WritingMode.horizontal)},function(){var tc=zo.verticalTextBox,Wf=Io&&Io.box&&Io.box.length;return ge.allowVerticalPlacement&&!Wf&&vo.numVerticalGlyphVertices>0&&tc?Pa(tc,zo.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}}),Io&&(Si=Io.box,Lo=Io.offscreen);var Rs=Pl(Io&&Io.box);if(!Si&&V.prevPlacement){var Ls=V.prevPlacement.variableOffsets[vo.crossTileID];Ls&&(V.variableOffsets[vo.crossTileID]=Ls,V.markUsedJustification(ge,Ls.anchor,vo,Rs))}}else{var ol=function(tc,Wf){var Rl=V.collisionIndex.placeCollisionBox(tc,cn,rt,Me,Vt.predicate);return Rl&&Rl.box&&Rl.box.length&&(V.markUsedOrientation(ge,Wf,vo),V.placedOrientations[vo.crossTileID]=Wf),Rl};Ys(function(){return ol(ys,i.WritingMode.horizontal)},function(){var tc=zo.verticalTextBox;return ge.allowVerticalPlacement&&vo.numVerticalGlyphVertices>0&&tc?ol(tc,i.WritingMode.vertical):{box:null,offscreen:null}}),Pl(Io&&Io.box&&Io.box.length)}}if(Si=(yi=Io)&&yi.box&&yi.box.length>0,Lo=yi&&yi.offscreen,vo.useRuntimeCollisionCircles){var Is=ge.text.placedSymbolArray.get(vo.centerJustifiedTextSymbolIndex),Ds=i.evaluateSizeForFeature(ge.textSizeData,Et,Is),ec=xe.get("text-padding"),Tc=vo.collisionCircleDiameter;Ui=V.collisionIndex.placeCollisionCircles(cn,Is,ge.lineVertexArray,ge.glyphOffsetArray,Ds,Me,Fe,Je,ie,pn,Vt.predicate,Tc,ec),Si=cn||Ui.circles.length>0&&!Ui.collisionDetected,Lo=Lo&&Ui.offscreen}if(zo.iconFeatureIndex&&(mr=zo.iconFeatureIndex),zo.iconBox){var op=function(tc){var Wf=Ln&&ki?Qr(tc,ki.x,ki.y,xn,pn,V.transform.angle):tc;return V.collisionIndex.placeCollisionBox(Wf,sn,rt,Me,Vt.predicate)};Hr=$i&&$i.box&&$i.box.length&&zo.verticalIconBox?(ba=op(zo.verticalIconBox)).box.length>0:(ba=op(zo.iconBox)).box.length>0,Lo=Lo&&ba.offscreen}var ip=jt||vo.numHorizontalGlyphVertices===0&&vo.numVerticalGlyphVertices===0,Hs=Nt||vo.numIconVertices===0;if(ip||Hs?Hs?ip||(Hr=Hr&&Si):Si=Hr&&Si:Hr=Si=Hr&&Si,Si&&yi&&yi.box&&($i&&$i.box&&fs?V.collisionIndex.insertCollisionBox(yi.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,fs,Vt.ID):V.collisionIndex.insertCollisionBox(yi.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,Pi,Vt.ID)),Hr&&ba&&V.collisionIndex.insertCollisionBox(ba.box,xe.get("icon-ignore-placement"),ge.bucketInstanceId,mr,Vt.ID),Ui&&(Si&&V.collisionIndex.insertCollisionCircles(Ui.circles,xe.get("text-ignore-placement"),ge.bucketInstanceId,Pi,Vt.ID),ie)){var wh=ge.bucketInstanceId,hd=V.collisionCircleArrays[wh];hd===void 0&&(hd=V.collisionCircleArrays[wh]=new br);for(var qf=0;qf=0;--Pr){var Zr=Dr[Pr];rr(ge.symbolInstances.get(Zr),ge.collisionArrays[Zr])}else for(var Mo=J.symbolInstanceStart;Mo=0&&(J.text.placedSymbolArray.get(Fe).crossTileID=ne>=0&&Fe!==ne?0:ie.crossTileID)}},Wr.prototype.markUsedOrientation=function(J,le,ie){for(var V=le===i.WritingMode.horizontal||le===i.WritingMode.horizontalOnly?le:0,ne=le===i.WritingMode.vertical?le:0,ge=0,xe=[ie.leftJustifiedTextSymbolIndex,ie.centerJustifiedTextSymbolIndex,ie.rightJustifiedTextSymbolIndex];ge0||pn>0,rr=sn.numIconVertices>0,Dr=V.placedOrientations[sn.crossTileID],Pr=Dr===i.WritingMode.vertical,Zr=Dr===i.WritingMode.horizontal||Dr===i.WritingMode.horizontalOnly;if(Sn){var Mo=vr(An.text),$o=Pr?nr:Mo;Et(J.text,xn,$o);var vo=Zr?nr:Mo;Et(J.text,pn,vo);var zo=An.text.isHidden();[sn.rightJustifiedTextSymbolIndex,sn.centerJustifiedTextSymbolIndex,sn.leftJustifiedTextSymbolIndex].forEach(function(mr){mr>=0&&(J.text.placedSymbolArray.get(mr).hidden=zo||Pr?1:0)}),sn.verticalPlacedTextSymbolIndex>=0&&(J.text.placedSymbolArray.get(sn.verticalPlacedTextSymbolIndex).hidden=zo||Zr?1:0);var yi=V.variableOffsets[sn.crossTileID];yi&&V.markUsedJustification(J,yi.anchor,sn,Dr);var Si=V.placedOrientations[sn.crossTileID];Si&&(V.markUsedJustification(J,"left",sn,Si),V.markUsedOrientation(J,Si,sn))}if(rr){var Hr=vr(An.icon),Lo=!(dt&&sn.verticalPlacedIconSymbolIndex&&Pr);if(sn.placedIconSymbolIndex>=0){var ki=Lo?Hr:nr;Et(J.icon,sn.numIconVertices,ki),J.icon.placedSymbolArray.get(sn.placedIconSymbolIndex).hidden=An.icon.isHidden()}if(sn.verticalPlacedIconSymbolIndex>=0){var Io=Lo?nr:Hr;Et(J.icon,sn.numVerticalIconVertices,Io),J.icon.placedSymbolArray.get(sn.verticalPlacedIconSymbolIndex).hidden=An.icon.isHidden()}}if(J.hasIconCollisionBoxData()||J.hasTextCollisionBoxData()){var $i=J.collisionArrays[cn];if($i){var Ui=new i.Point(0,0);if($i.textBox||$i.verticalTextBox){var ba=!0;if(Fe){var Pi=V.variableOffsets[Ln];Pi?(Ui=io(Pi.anchor,Pi.width,Pi.height,Pi.textOffset,Pi.textBoxScale),Je&&Ui._rotate(rt?V.transform.angle:-V.transform.angle)):ba=!1}$i.textBox&&bo(J.textCollisionBox.collisionVertexArray,An.text.placed,!ba||Pr,Ui.x,Ui.y),$i.verticalTextBox&&bo(J.textCollisionBox.collisionVertexArray,An.text.placed,!ba||Zr,Ui.x,Ui.y)}var fs=!!(!Zr&&$i.verticalIconBox);$i.iconBox&&bo(J.iconCollisionBox.collisionVertexArray,An.icon.placed,fs,dt?Ui.x:0,dt?Ui.y:0),$i.verticalIconBox&&bo(J.iconCollisionBox.collisionVertexArray,An.icon.placed,!fs,dt?Ui.x:0,dt?Ui.y:0)}}},jt=0;jtJ},Wr.prototype.setStale=function(){this.stale=!0};var Bn=Math.pow(2,25),hr=Math.pow(2,24),hn=Math.pow(2,17),zn=Math.pow(2,16),Zn=Math.pow(2,9),yr=Math.pow(2,8),gr=Math.pow(2,1);function vr(J){if(J.opacity===0&&!J.placed)return 0;if(J.opacity===1&&J.placed)return 4294967295;var le=J.placed?1:0,ie=Math.floor(127*J.opacity);return ie*Bn+le*hr+ie*hn+le*zn+ie*Zn+le*yr+ie*gr+le}var nr=0,Qn=function(J){this._sortAcrossTiles=J.layout.get("symbol-z-order")!=="viewport-y"&&J.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Qn.prototype.continuePlacement=function(J,le,ie,V,ne){for(var ge=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var xe=le[J[this._currentPlacementIndex]],Me=this.placement.collisionIndex.transform.zoom;if(xe.type==="symbol"&&(!xe.minzoom||xe.minzoom<=Me)&&(!xe.maxzoom||xe.maxzoom>Me)){if(this._inProgressLayer||(this._inProgressLayer=new Qn(xe)),this._inProgressLayer.continuePlacement(ie[xe.source],this.placement,this._showCollisionBoxes,xe,ge))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Hn.prototype.commit=function(J){return this.placement.commit(J),this.placement};var tr=512/i.EXTENT/2,cr=function(J,le,ie){this.tileID=J,this.indexedSymbolInstances={},this.bucketInstanceId=ie;for(var V=0;VJ.overscaledZ)for(var Me in xe){var Fe=xe[Me];Fe.tileID.isChildOf(J)&&Fe.findMatches(le.symbolInstances,J,ne)}else{var Je=xe[J.scaledTo(Number(ge)).key];Je&&Je.findMatches(le.symbolInstances,J,ne)}}for(var rt=0;rt1?"@2x":"",dt=i.getJSON(ge.transformRequest(ge.normalizeSpriteURL(ne,rt,".json"),i.ResourceType.SpriteJSON),function(Vt,jt){dt=null,Je||(Je=Vt,Me=jt,Et())}),mt=i.getImage(ge.transformRequest(ge.normalizeSpriteURL(ne,rt,".png"),i.ResourceType.SpriteImage),function(Vt,jt){mt=null,Je||(Je=Vt,Fe=jt,Et())});function Et(){if(Je)xe(Je);else if(Me&&Fe){var Vt=i.browser.getImageData(Fe),jt={};for(var Nt in Me){var cn=Me[Nt],sn=cn.width,xn=cn.height,pn=cn.x,Ln=cn.y,On=cn.sdf,An=cn.pixelRatio,Sn=cn.stretchX,rr=cn.stretchY,Dr=cn.content,Pr=new i.RGBAImage({width:sn,height:xn});i.RGBAImage.copy(Vt,Pr,{x:pn,y:Ln},{x:0,y:0},{width:sn,height:xn}),jt[Nt]={data:Pr,pixelRatio:An,sdf:On,stretchX:Sn,stretchY:rr,content:Dr}}xe(null,jt)}}return{cancel:function(){dt&&(dt.cancel(),dt=null),mt&&(mt.cancel(),mt=null)}}}(ie,this.map._requestManager,function(ne,ge){if(V._spriteRequest=null,ne)V.fire(new i.ErrorEvent(ne));else if(ge)for(var xe in ge)V.imageManager.addImage(xe,ge[xe]);V.imageManager.setLoaded(!0),V._availableImages=V.imageManager.listImages(),V.dispatcher.broadcast("setImages",V._availableImages),V.fire(new i.Event("data",{dataType:"style"}))})},le.prototype._validateLayer=function(ie){var V=this.sourceCaches[ie.source];if(V){var ne=ie.sourceLayer;if(ne){var ge=V.getSource();(ge.type==="geojson"||ge.vectorLayerIds&&ge.vectorLayerIds.indexOf(ne)===-1)&&this.fire(new i.ErrorEvent(new Error('Source layer "'+ne+'" does not exist on source "'+ge.id+'" as specified by style layer "'+ie.id+'"')))}}},le.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var ie in this.sourceCaches)if(!this.sourceCaches[ie].loaded())return!1;return!!this.imageManager.isLoaded()},le.prototype._serializeLayers=function(ie){for(var V=[],ne=0,ge=ie;ne0)throw new Error("Unimplemented: "+ge.map(function(xe){return xe.command}).join(", ")+".");return ne.forEach(function(xe){xe.command!=="setTransition"&&V[xe.command].apply(V,xe.args)}),this.stylesheet=ie,!0},le.prototype.addImage=function(ie,V){if(this.getImage(ie))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ie,V),this._afterImageUpdated(ie)},le.prototype.updateImage=function(ie,V){this.imageManager.updateImage(ie,V)},le.prototype.getImage=function(ie){return this.imageManager.getImage(ie)},le.prototype.removeImage=function(ie){if(!this.getImage(ie))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ie),this._afterImageUpdated(ie)},le.prototype._afterImageUpdated=function(ie){this._availableImages=this.imageManager.listImages(),this._changedImages[ie]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},le.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},le.prototype.addSource=function(ie,V,ne){var ge=this;if(ne===void 0&&(ne={}),this._checkLoaded(),this.sourceCaches[ie]!==void 0)throw new Error("There is already a source with this ID");if(!V.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(V).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(V.type)>=0&&this._validate(i.validateStyle.source,"sources."+ie,V,null,ne))){this.map&&this.map._collectResourceTiming&&(V.collectResourceTiming=!0);var xe=this.sourceCaches[ie]=new zt(ie,V,this.dispatcher);xe.style=this,xe.setEventedParent(this,function(){return{isSourceLoaded:ge.loaded(),source:xe.serialize(),sourceId:ie}}),xe.onAdd(this.map),this._changed=!0}},le.prototype.removeSource=function(ie){if(this._checkLoaded(),this.sourceCaches[ie]===void 0)throw new Error("There is no source with this ID");for(var V in this._layers)if(this._layers[V].source===ie)return this.fire(new i.ErrorEvent(new Error('Source "'+ie+'" cannot be removed while layer "'+V+'" is using it.')));var ne=this.sourceCaches[ie];delete this.sourceCaches[ie],delete this._updatedSources[ie],ne.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ie})),ne.setEventedParent(null),ne.clearTiles(),ne.onRemove&&ne.onRemove(this.map),this._changed=!0},le.prototype.setGeoJSONSourceData=function(ie,V){this._checkLoaded(),this.sourceCaches[ie].getSource().setData(V),this._changed=!0},le.prototype.getSource=function(ie){return this.sourceCaches[ie]&&this.sourceCaches[ie].getSource()},le.prototype.addLayer=function(ie,V,ne){ne===void 0&&(ne={}),this._checkLoaded();var ge=ie.id;if(this.getLayer(ge))this.fire(new i.ErrorEvent(new Error('Layer with id "'+ge+'" already exists on this map')));else{var xe;if(ie.type==="custom"){if(to(this,i.validateCustomStyleLayer(ie)))return;xe=i.createStyleLayer(ie)}else{if(typeof ie.source=="object"&&(this.addSource(ge,ie.source),ie=i.clone$1(ie),ie=i.extend(ie,{source:ge})),this._validate(i.validateStyle.layer,"layers."+ge,ie,{arrayIndex:-1},ne))return;xe=i.createStyleLayer(ie),this._validateLayer(xe),xe.setEventedParent(this,{layer:{id:ge}}),this._serializedLayers[xe.id]=xe.serialize()}var Me=V?this._order.indexOf(V):this._order.length;if(V&&Me===-1)this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.')));else{if(this._order.splice(Me,0,ge),this._layerOrderChanged=!0,this._layers[ge]=xe,this._removedLayers[ge]&&xe.source&&xe.type!=="custom"){var Fe=this._removedLayers[ge];delete this._removedLayers[ge],Fe.type!==xe.type?this._updatedSources[xe.source]="clear":(this._updatedSources[xe.source]="reload",this.sourceCaches[xe.source].pause())}this._updateLayer(xe),xe.onAdd&&xe.onAdd(this.map)}}},le.prototype.moveLayer=function(ie,V){if(this._checkLoaded(),this._changed=!0,this._layers[ie]){if(ie!==V){var ne=this._order.indexOf(ie);this._order.splice(ne,1);var ge=V?this._order.indexOf(V):this._order.length;V&&ge===-1?this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.'))):(this._order.splice(ge,0,ie),this._layerOrderChanged=!0)}}else this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be moved.")))},le.prototype.removeLayer=function(ie){this._checkLoaded();var V=this._layers[ie];if(V){V.setEventedParent(null);var ne=this._order.indexOf(ie);this._order.splice(ne,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ie]=V,delete this._layers[ie],delete this._serializedLayers[ie],delete this._updatedLayers[ie],delete this._updatedPaintProps[ie],V.onRemove&&V.onRemove(this.map)}else this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be removed.")))},le.prototype.getLayer=function(ie){return this._layers[ie]},le.prototype.hasLayer=function(ie){return ie in this._layers},le.prototype.setLayerZoomRange=function(ie,V,ne){this._checkLoaded();var ge=this.getLayer(ie);ge?ge.minzoom===V&&ge.maxzoom===ne||(V!=null&&(ge.minzoom=V),ne!=null&&(ge.maxzoom=ne),this._updateLayer(ge)):this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot have zoom extent.")))},le.prototype.setFilter=function(ie,V,ne){ne===void 0&&(ne={}),this._checkLoaded();var ge=this.getLayer(ie);if(ge){if(!i.deepEqual(ge.filter,V))return V==null?(ge.filter=void 0,void this._updateLayer(ge)):void(this._validate(i.validateStyle.filter,"layers."+ge.id+".filter",V,null,ne)||(ge.filter=i.clone$1(V),this._updateLayer(ge)))}else this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be filtered.")))},le.prototype.getFilter=function(ie){return i.clone$1(this.getLayer(ie).filter)},le.prototype.setLayoutProperty=function(ie,V,ne,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ie);xe?i.deepEqual(xe.getLayoutProperty(V),ne)||(xe.setLayoutProperty(V,ne,ge),this._updateLayer(xe)):this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getLayoutProperty=function(ie,V){var ne=this.getLayer(ie);if(ne)return ne.getLayoutProperty(V);this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style.")))},le.prototype.setPaintProperty=function(ie,V,ne,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ie);xe?i.deepEqual(xe.getPaintProperty(V),ne)||(xe.setPaintProperty(V,ne,ge)&&this._updateLayer(xe),this._changed=!0,this._updatedPaintProps[ie]=!0):this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getPaintProperty=function(ie,V){return this.getLayer(ie).getPaintProperty(V)},le.prototype.setFeatureState=function(ie,V){this._checkLoaded();var ne=ie.source,ge=ie.sourceLayer,xe=this.sourceCaches[ne];if(xe!==void 0){var Me=xe.getSource().type;Me==="geojson"&&ge?this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Me!=="vector"||ge?(ie.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),xe.setFeatureState(ge,ie.id,V)):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ne+"' does not exist in the map's style.")))},le.prototype.removeFeatureState=function(ie,V){this._checkLoaded();var ne=ie.source,ge=this.sourceCaches[ne];if(ge!==void 0){var xe=ge.getSource().type,Me=xe==="vector"?ie.sourceLayer:void 0;xe!=="vector"||Me?V&&typeof ie.id!="string"&&typeof ie.id!="number"?this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):ge.removeFeatureState(Me,ie.id,V):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ne+"' does not exist in the map's style.")))},le.prototype.getFeatureState=function(ie){this._checkLoaded();var V=ie.source,ne=ie.sourceLayer,ge=this.sourceCaches[V];if(ge!==void 0){if(ge.getSource().type!=="vector"||ne)return ie.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ge.getFeatureState(ne,ie.id);this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+V+"' does not exist in the map's style.")))},le.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},le.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(ie){return ie.serialize()}),layers:this._serializeLayers(this._order)},function(ie){return ie!==void 0})},le.prototype._updateLayer=function(ie){this._updatedLayers[ie.id]=!0,ie.source&&!this._updatedSources[ie.source]&&this.sourceCaches[ie.source].getSource().type!=="raster"&&(this._updatedSources[ie.source]="reload",this.sourceCaches[ie.source].pause()),this._changed=!0},le.prototype._flattenAndSortRenderedFeatures=function(ie){for(var V=this,ne=function(Dr){return V._layers[Dr].type==="fill-extrusion"},ge={},xe=[],Me=this._order.length-1;Me>=0;Me--){var Fe=this._order[Me];if(ne(Fe)){ge[Fe]=Me;for(var Je=0,rt=ie;Je=0;Nt--){var cn=this._order[Nt];if(ne(cn))for(var sn=xe.length-1;sn>=0;sn--){var xn=xe[sn].feature;if(ge[xn.layer.id]24?(isFinite(ne)&&(clearTimeout(li),li=setTimeout(br,ne)),go=0):(go=1,Pn(br))}function dr(){for(var V=Date.now(),ne=so;ne;)V>=ne.t&&ne.c(V-ne.t)&&(ne.c=null),ne=ne.n;return V}function Cr(){for(var V,ne=so,ge=1/0;ne;)ne.c?(ne.t1&&(ne=V[Fe[Je-2]],ge=V[Fe[Je-1]],xe=V[rt],(ge[0]-ne[0])*(xe[1]-ne[1])-(ge[1]-ne[1])*(xe[0]-ne[0])<=0);)--Je;Fe[Je++]=rt}return Fe.slice(0,Je)}function bo(V,ne){return V[0]-ne[0]||V[1]-ne[1]}i.timer=function(){Yn.apply(this,arguments)},i.timer.flush=function(){dr(),Cr()},i.round=function(V,ne){return ne?Math.round(V*(ne=Math.pow(10,ne)))/ne:Math.round(V)},i.geom={},i.geom.hull=function(V){var ne=io,ge=Qr;if(arguments.length)return xe(V);function xe(Me){if(Me.length<3)return[];var Fe,Je=$r(ne),rt=$r(ge),dt=Me.length,mt=[],Et=[];for(Fe=0;Fe=0;--Fe)sn.push(Me[mt[Vt[Fe]][2]]);for(Fe=+Nt;Fe_t)rt=rt.L;else{if(!((Me=Fe-_o(rt,Je))>_t)){xe>-_t?(ne=rt.P,ge=rt):Me>-_t?(ne=rt,ge=rt.N):ne=ge=rt;break}if(!rt.R){ne=rt;break}rt=rt.R}var dt=cr(V);if(gr.insert(ne,dt),ne||ge){if(ne===ge)return Go(ne),ge=cr(ne.site),gr.insert(dt,ge),dt.edge=ge.edge=Ao(ne.site,dt.site),co(ne),void co(ge);if(ge){Go(ne),Go(ge);var mt=ne.site,Et=mt.x,Vt=mt.y,jt=V.x-Et,Nt=V.y-Vt,cn=ge.site,sn=cn.x-Et,xn=cn.y-Vt,pn=2*(jt*xn-Nt*sn),Ln=jt*jt+Nt*Nt,On=sn*sn+xn*xn,An={x:(xn*Ln-Nt*On)/pn+Et,y:(jt*On-sn*Ln)/pn+Vt};oi(ge.edge,mt,cn,An),dt.edge=Ao(mt,V,null,An),ge.edge=Ao(V,cn,null,An),co(ne),co(ge)}else dt.edge=Ao(ne.site,dt.site)}}function to(V,ne){var ge=V.site,xe=ge.x,Me=ge.y,Fe=Me-ne;if(!Fe)return xe;var Je=V.P;if(!Je)return-1/0;var rt=(ge=Je.site).x,dt=ge.y,mt=dt-ne;if(!mt)return rt;var Et=rt-xe,Vt=1/Fe-1/mt,jt=Et/mt;return Vt?(-jt+Math.sqrt(jt*jt-2*Vt*(Et*Et/(-2*mt)-dt+mt/2+Me-Fe/2)))/Vt+xe:(xe+rt)/2}function _o(V,ne){var ge=V.N;if(ge)return to(ge,ne);var xe=V.site;return xe.y===ne?xe.x:1/0}function fr(V){this.site=V,this.edges=[]}function Eo(V,ne){return ne.angle-V.angle}function ao(){mo(this),this.x=this.y=this.arc=this.site=this.cy=null}function co(V){var ne=V.P,ge=V.N;if(ne&&ge){var xe=ne.site,Me=V.site,Fe=ge.site;if(xe!==Fe){var Je=Me.x,rt=Me.y,dt=xe.x-Je,mt=xe.y-rt,Et=Fe.x-Je,Vt=2*(dt*(xn=Fe.y-rt)-mt*Et);if(!(Vt>=-nn)){var jt=dt*dt+mt*mt,Nt=Et*Et+xn*xn,cn=(xn*jt-mt*Nt)/Vt,sn=(dt*Nt-Et*jt)/Vt,xn=sn+rt,pn=Hn.pop()||new ao;pn.arc=V,pn.site=Me,pn.x=cn+Je,pn.y=xn+Math.sqrt(cn*cn+sn*sn),pn.cy=xn,V.circle=pn;for(var Ln=null,On=nr._;On;)if(pn.y=rt)return;if(jt>cn){if(Fe){if(Fe.y>=mt)return}else Fe={x:xn,y:dt};ge={x:xn,y:mt}}else{if(Fe){if(Fe.y1)if(jt>cn){if(Fe){if(Fe.y>=mt)return}else Fe={x:(dt-Me)/xe,y:dt};ge={x:(mt-Me)/xe,y:mt}}else{if(Fe){if(Fe.y=rt)return}else Fe={x:Je,y:xe*Je+Me};ge={x:rt,y:xe*rt+Me}}else{if(Fe){if(Fe.x0)){if(pn/=Pr,Pr<0){if(pn0){if(pn>Dr)return;pn>rr&&(rr=pn)}if(pn=Vt-An,Pr||!(pn<0)){if(pn/=Pr,Pr<0){if(pn>Dr)return;pn>rr&&(rr=pn)}else if(Pr>0){if(pn0)){if(pn/=Zr,Zr<0){if(pn0){if(pn>Dr)return;pn>rr&&(rr=pn)}if(pn=jt-Sn,Zr||!(pn<0)){if(pn/=Zr,Zr<0){if(pn>Dr)return;pn>rr&&(rr=pn)}else if(Zr>0){if(pn0&&(xn.a={x:An+rr*Pr,y:Sn+rr*Zr}),Dr<1&&(xn.b={x:An+Dr*Pr,y:Sn+Dr*Zr}),xn}}}}}),sn=Nt.length;sn--;)(!po(dt=Nt[sn],rt)||!cn(dt)||E(dt.a.x-dt.b.x)<_t&&E(dt.a.y-dt.b.y)<_t)&&(dt.a=dt.b=null,Nt.splice(sn,1))}(ne),function(rt){for(var dt,mt,Et,Vt,jt,Nt,cn,sn,xn,pn,Ln=rt[0][0],On=rt[1][0],An=rt[0][1],Sn=rt[1][1],rr=yr,Dr=rr.length;Dr--;)if((jt=rr[Dr])&&jt.prepare())for(sn=(cn=jt.edges).length,Nt=0;Nt_t||E(Vt-mt)>_t)&&(cn.splice(Nt,0,new ko((Pr=jt.site,Zr=pn,Mo=E(Et-Ln)<_t&&Sn-Vt>_t?{x:Ln,y:E(dt-Ln)<_t?mt:Sn}:E(Vt-Sn)<_t&&On-Et>_t?{x:E(mt-Sn)<_t?dt:On,y:Sn}:E(Et-On)<_t&&Vt-An>_t?{x:On,y:E(dt-On)<_t?mt:An}:E(Vt-An)<_t&&Et-Ln>_t?{x:E(mt-An)<_t?dt:Ln,y:An}:null,$o=void 0,($o=new qo(Pr,null)).a=Zr,$o.b=Mo,Zn.push($o),$o),jt.site,null)),++sn);var Pr,Zr,Mo,$o}(ne));var Je={cells:yr,edges:Zn};return gr=nr=Zn=yr=null,Je}function wc(V,ne){return ne.y-V.y||ne.x-V.x}fr.prototype.prepare=function(){for(var V,ne=this.edges,ge=ne.length;ge--;)(V=ne[ge].edge).b&&V.a||ne.splice(ge,1);return ne.sort(Eo),ne.length},ko.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},ra.prototype={insert:function(V,ne){var ge,xe,Me;if(V){if(ne.P=V,ne.N=V.N,V.N&&(V.N.P=ne),V.N=ne,V.R){for(V=V.R;V.L;)V=V.L;V.L=ne}else V.R=ne;ge=V}else this._?(V=Na(this._),ne.P=null,ne.N=V,V.P=V.L=ne,ge=V):(ne.P=ne.N=null,this._=ne,ge=null);for(ne.L=ne.R=null,ne.U=ge,ne.C=!0,V=ne;ge&&ge.C;)ge===(xe=ge.U).L?(Me=xe.R)&&Me.C?(ge.C=Me.C=!1,xe.C=!0,V=xe):(V===ge.R&&(Aa(this,ge),ge=(V=ge).U),ge.C=!1,xe.C=!0,Xl(this,xe)):(Me=xe.L)&&Me.C?(ge.C=Me.C=!1,xe.C=!0,V=xe):(V===ge.L&&(Xl(this,ge),ge=(V=ge).U),ge.C=!1,xe.C=!0,Aa(this,xe)),ge=V.U;this._.C=!1},remove:function(V){V.N&&(V.N.P=V.P),V.P&&(V.P.N=V.N),V.N=V.P=null;var ne,ge,xe,Me=V.U,Fe=V.L,Je=V.R;if(ge=Fe?Je?Na(Je):Fe:Je,Me?Me.L===V?Me.L=ge:Me.R=ge:this._=ge,Fe&&Je?(xe=ge.C,ge.C=V.C,ge.L=Fe,Fe.U=ge,ge!==Je?(Me=ge.U,ge.U=V.U,V=ge.R,Me.L=V,ge.R=Je,Je.U=ge):(ge.U=Me,Me=ge,V=ge.R)):(xe=V.C,V=ge),V&&(V.U=Me),!xe)if(V&&V.C)V.C=!1;else{do{if(V===this._)break;if(V===Me.L){if((ne=Me.R).C&&(ne.C=!1,Me.C=!0,Aa(this,Me),ne=Me.R),ne.L&&ne.L.C||ne.R&&ne.R.C){ne.R&&ne.R.C||(ne.L.C=!1,ne.C=!0,Xl(this,ne),ne=Me.R),ne.C=Me.C,Me.C=ne.R.C=!1,Aa(this,Me),V=this._;break}}else if((ne=Me.L).C&&(ne.C=!1,Me.C=!0,Xl(this,Me),ne=Me.L),ne.L&&ne.L.C||ne.R&&ne.R.C){ne.L&&ne.L.C||(ne.R.C=!1,ne.C=!0,Aa(this,ne),ne=Me.L),ne.C=Me.C,Me.C=ne.L.C=!1,Xl(this,Me),V=this._;break}ne.C=!0,V=Me,Me=Me.U}while(!V.C);V&&(V.C=!1)}}},i.geom.voronoi=function(V){var ne=io,ge=Qr,xe=ne,Me=ge,Fe=ga;if(V)return Je(V);function Je(dt){var mt=new Array(dt.length),Et=Fe[0][0],Vt=Fe[0][1],jt=Fe[1][0],Nt=Fe[1][1];return us(rt(dt),Fe).cells.forEach(function(cn,sn){var xn=cn.edges,pn=cn.site;(mt[sn]=xn.length?xn.map(function(Ln){var On=Ln.start();return[On.x,On.y]}):pn.x>=Et&&pn.x<=jt&&pn.y>=Vt&&pn.y<=Nt?[[Et,Nt],[jt,Nt],[jt,Vt],[Et,Vt]]:[]).point=dt[sn]}),mt}function rt(dt){return dt.map(function(mt,Et){return{x:Math.round(xe(mt,Et)/_t)*_t,y:Math.round(Me(mt,Et)/_t)*_t,i:Et}})}return Je.links=function(dt){return us(rt(dt)).edges.filter(function(mt){return mt.l&&mt.r}).map(function(mt){return{source:dt[mt.l.i],target:dt[mt.r.i]}})},Je.triangles=function(dt){var mt=[];return us(rt(dt)).cells.forEach(function(Et,Vt){for(var jt,Nt,cn,sn,xn=Et.site,pn=Et.edges.sort(Eo),Ln=-1,On=pn.length,An=pn[On-1].edge,Sn=An.l===xn?An.r:An.l;++LnFe&&(Me=ne.slice(Fe,Me),rt[Je]?rt[Je]+=Me:rt[++Je]=Me),(ge=ge[0])===(xe=xe[0])?rt[Je]?rt[Je]+=xe:rt[++Je]=xe:(rt[++Je]=null,dt.push({i:Je,x:Nf(ge,xe)})),Fe=gm.lastIndex;return Fepn&&(pn=Et.x),Et.y>Ln&&(Ln=Et.y),Vt.push(Et.x),jt.push(Et.y);else for(Nt=0;Ntpn&&(pn=Sn),rr>Ln&&(Ln=rr),Vt.push(Sn),jt.push(rr)}var Dr=pn-sn,Pr=Ln-xn;function Zr(vo,zo,yi,Si,Hr,Lo,ki,Io){if(!isNaN(yi)&&!isNaN(Si))if(vo.leaf){var $i=vo.x,Ui=vo.y;if($i!=null)if(E($i-yi)+E(Ui-Si)<.01)Mo(vo,zo,yi,Si,Hr,Lo,ki,Io);else{var ba=vo.point;vo.x=vo.y=vo.point=null,Mo(vo,ba,$i,Ui,Hr,Lo,ki,Io),Mo(vo,zo,yi,Si,Hr,Lo,ki,Io)}else vo.x=yi,vo.y=Si,vo.point=zo}else Mo(vo,zo,yi,Si,Hr,Lo,ki,Io)}function Mo(vo,zo,yi,Si,Hr,Lo,ki,Io){var $i=.5*(Hr+ki),Ui=.5*(Lo+Io),ba=yi>=$i,Pi=Si>=Ui,ds=Pi<<1|ba;vo.leaf=!1,ba?Hr=$i:ki=$i,Pi?Lo=Ui:Io=Ui,Zr(vo=vo.nodes[ds]||(vo.nodes[ds]={leaf:!0,nodes:[],point:null,x:null,y:null}),zo,yi,Si,Hr,Lo,ki,Io)}Dr>Pr?Ln=xn+Dr:pn=sn+Pr;var $o={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(vo){Zr($o,vo,+On(vo,++Nt),+An(vo,Nt),sn,xn,pn,Ln)}};if($o.visit=function(vo){Yd(vo,$o,sn,xn,pn,Ln)},$o.find=function(vo){return function(zo,yi,Si,Hr,Lo,ki,Io){var $i,Ui=1/0;return function ba(Pi,ds,mr,bs,Pl){if(!(ds>ki||mr>Io||bs=Is)<<1|yi>=ol,ec=Ds+4;Ds=0&&!(ge=i.interpolators[xe](V,ne)););return ge}function pc(V,ne){var ge,xe=[],Me=[],Fe=V.length,Je=ne.length,rt=Math.min(V.length,ne.length);for(ge=0;ge=1)return 1;var ne=V*V,ge=ne*V;return 4*(V<.5?ge:3*(V-ne)+ge-.75)}function ks(V){return 1-Math.cos(V*vt)}function $f(V){return Math.pow(2,10*(V-1))}function yf(V){return 1-Math.sqrt(1-V*V)}function Ju(V){return V<.36363636363636365?7.5625*V*V:V<.7272727272727273?7.5625*(V-=.5454545454545454)*V+.75:V<.9090909090909091?7.5625*(V-=.8181818181818182)*V+.9375:7.5625*(V-=.9545454545454546)*V+.984375}function $h(V,ne){return ne-=V,function(ge){return Math.round(V+ne*ge)}}function Es(V){var ne,ge,xe,Me=[V.a,V.b],Fe=[V.c,V.d],Je=uc(Me),rt=ef(Me,Fe),dt=uc(((ne=Fe)[0]+=(xe=-rt)*(ge=Me)[0],ne[1]+=xe*ge[1],ne))||0;Me[0]*Fe[1]=0?V.slice(0,ge):V,Me=ge>=0?V.slice(ge+1):"in";return xe=xl.get(xe)||Cu,Me=la.get(Me)||W,ne=Me(xe.apply(null,O.call(arguments,1))),function(Fe){return Fe<=0?0:Fe>=1?1:ne(Fe)}},i.interpolateHcl=function(V,ne){V=i.hcl(V),ne=i.hcl(ne);var ge=V.h,xe=V.c,Me=V.l,Fe=ne.h-ge,Je=ne.c-xe,rt=ne.l-Me;return isNaN(Je)&&(Je=0,xe=isNaN(xe)?ne.c:xe),isNaN(Fe)?(Fe=0,ge=isNaN(ge)?ne.h:ge):Fe>180?Fe-=360:Fe<-180&&(Fe+=360),function(dt){return tn(ge+Fe*dt,xe+Je*dt,Me+rt*dt)+""}},i.interpolateHsl=function(V,ne){V=i.hsl(V),ne=i.hsl(ne);var ge=V.h,xe=V.s,Me=V.l,Fe=ne.h-ge,Je=ne.s-xe,rt=ne.l-Me;return isNaN(Je)&&(Je=0,xe=isNaN(xe)?ne.s:xe),isNaN(Fe)?(Fe=0,ge=isNaN(ge)?ne.h:ge):Fe>180?Fe-=360:Fe<-180&&(Fe+=360),function(dt){return Yt(ge+Fe*dt,xe+Je*dt,Me+rt*dt)+""}},i.interpolateLab=function(V,ne){V=i.lab(V),ne=i.lab(ne);var ge=V.l,xe=V.a,Me=V.b,Fe=ne.l-ge,Je=ne.a-xe,rt=ne.b-Me;return function(dt){return En(ge+Fe*dt,xe+Je*dt,Me+rt*dt)+""}},i.interpolateRound=$h,i.transform=function(V){var ne=y.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(ge){if(ge!=null){ne.setAttribute("transform",ge);var xe=ne.transform.baseVal.consolidate()}return new Es(xe?xe.matrix:sd)})(V)},Es.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var sd={a:1,b:0,c:0,d:1,e:0,f:0};function Vf(V){return V.length?V.pop()+",":""}function gc(V,ne){var ge=[],xe=[];return V=i.transform(V),ne=i.transform(ne),function(Me,Fe,Je,rt){if(Me[0]!==Fe[0]||Me[1]!==Fe[1]){var dt=Je.push("translate(",null,",",null,")");rt.push({i:dt-4,x:Nf(Me[0],Fe[0])},{i:dt-2,x:Nf(Me[1],Fe[1])})}else(Fe[0]||Fe[1])&&Je.push("translate("+Fe+")")}(V.translate,ne.translate,ge,xe),function(Me,Fe,Je,rt){Me!==Fe?(Me-Fe>180?Fe+=360:Fe-Me>180&&(Me+=360),rt.push({i:Je.push(Vf(Je)+"rotate(",null,")")-2,x:Nf(Me,Fe)})):Fe&&Je.push(Vf(Je)+"rotate("+Fe+")")}(V.rotate,ne.rotate,ge,xe),function(Me,Fe,Je,rt){Me!==Fe?rt.push({i:Je.push(Vf(Je)+"skewX(",null,")")-2,x:Nf(Me,Fe)}):Fe&&Je.push(Vf(Je)+"skewX("+Fe+")")}(V.skew,ne.skew,ge,xe),function(Me,Fe,Je,rt){if(Me[0]!==Fe[0]||Me[1]!==Fe[1]){var dt=Je.push(Vf(Je)+"scale(",null,",",null,")");rt.push({i:dt-4,x:Nf(Me[0],Fe[0])},{i:dt-2,x:Nf(Me[1],Fe[1])})}else Fe[0]===1&&Fe[1]===1||Je.push(Vf(Je)+"scale("+Fe+")")}(V.scale,ne.scale,ge,xe),V=ne=null,function(Me){for(var Fe,Je=-1,rt=xe.length;++Je0?ge=An:(V.c=null,V.t=NaN,V=null,rt.end({type:"end",alpha:ge=0})):An>0&&(rt.start({type:"start",alpha:ge=An}),V=Yn(Je.tick)),Je):ge},Je.start=function(){var An,Sn,rr,Dr=xn.length,Pr=pn.length,Zr=dt[0],Mo=dt[1];for(An=0;An=0;)ge.push(Me[xe])}function rs(V,ne){for(var ge=[V],xe=[];(V=ge.pop())!=null;)if(xe.push(V),(Fe=V.children)&&(Me=Fe.length))for(var Me,Fe,Je=-1;++Je=0;)Je.push(Et=mt[dt]),Et.parent=Fe,Et.depth=Fe.depth+1;ge&&(Fe.value=0),Fe.children=mt}else ge&&(Fe.value=+ge.call(xe,Fe,Fe.depth)||0),delete Fe.children;return rs(Me,function(Vt){var jt,Nt;V&&(jt=Vt.children)&&jt.sort(V),ge&&(Nt=Vt.parent)&&(Nt.value+=Vt.value)}),rt}return xe.sort=function(Me){return arguments.length?(V=Me,xe):V},xe.children=function(Me){return arguments.length?(ne=Me,xe):ne},xe.value=function(Me){return arguments.length?(ge=Me,xe):ge},xe.revalue=function(Me){return ge&&(gh(Me,function(Fe){Fe.children&&(Fe.value=0)}),rs(Me,function(Fe){var Je;Fe.children||(Fe.value=+ge.call(xe,Fe,Fe.depth)||0),(Je=Fe.parent)&&(Je.value+=Fe.value)})),Me},xe},i.layout.partition=function(){var V=i.layout.hierarchy(),ne=[1,1];function ge(Fe,Je,rt,dt){var mt=Fe.children;if(Fe.x=Je,Fe.y=Fe.depth*dt,Fe.dx=rt,Fe.dy=dt,mt&&(Et=mt.length)){var Et,Vt,jt,Nt=-1;for(rt=Fe.value?rt/Fe.value:0;++Ntrt&&(rt=xe),Je.push(xe)}for(ge=0;geMe&&(xe=ge,Me=ne);return xe}function rf(V){return V.reduce(Bc,0)}function Bc(V,ne){return V+ne[1]}function ym(V,ne){return Mu(V,Math.ceil(Math.log(ne.length)/Math.LN2+1))}function Mu(V,ne){for(var ge=-1,xe=+V[0],Me=(V[1]-xe)/ne,Fe=[];++ge<=ne;)Fe[ge]=Me*ge+xe;return Fe}function Hu(V){return[i.min(V),i.max(V)]}function Lp(V,ne){return V.value-ne.value}function Uh(V,ne){var ge=V._pack_next;V._pack_next=ne,ne._pack_prev=V,ne._pack_next=ge,ge._pack_prev=ne}function jh(V,ne){V._pack_next=ne,ne._pack_prev=V}function Eu(V,ne){var ge=ne.x-V.x,xe=ne.y-V.y,Me=V.r+ne.r;return .999*Me*Me>ge*ge+xe*xe}function fd(V){if((ne=V.children)&&(dt=ne.length)){var ne,ge,xe,Me,Fe,Je,rt,dt,mt=1/0,Et=-1/0,Vt=1/0,jt=-1/0;if(ne.forEach(vh),(ge=ne[0]).x=-ge.r,ge.y=0,On(ge),dt>1&&((xe=ne[1]).x=xe.r,xe.y=0,On(xe),dt>2))for(Ts(ge,xe,Me=ne[2]),On(Me),Uh(ge,Me),ge._pack_prev=Me,Uh(Me,xe),xe=ge._pack_next,Fe=3;Fe0)for(Je=-1;++Je=Vt[0]&&dt<=Vt[1]&&((rt=mt[i.bisect(jt,dt,1,cn)-1]).y+=sn,rt.push(Fe[Je]));return mt}return Me.value=function(Fe){return arguments.length?(ne=Fe,Me):ne},Me.range=function(Fe){return arguments.length?(ge=$r(Fe),Me):ge},Me.bins=function(Fe){return arguments.length?(xe=typeof Fe=="number"?function(Je){return Mu(Je,Fe)}:$r(Fe),Me):xe},Me.frequency=function(Fe){return arguments.length?(V=!!Fe,Me):V},Me},i.layout.pack=function(){var V,ne=i.layout.hierarchy().sort(Lp),ge=0,xe=[1,1];function Me(Fe,Je){var rt=ne.call(this,Fe,Je),dt=rt[0],mt=xe[0],Et=xe[1],Vt=V==null?Math.sqrt:typeof V=="function"?V:function(){return V};if(dt.x=dt.y=0,rs(dt,function(Nt){Nt.r=+Vt(Nt.value)}),rs(dt,fd),ge){var jt=ge*(V?1:Math.max(2*dt.r/mt,2*dt.r/Et))/2;rs(dt,function(Nt){Nt.r+=jt}),rs(dt,fd),rs(dt,function(Nt){Nt.r-=jt})}return Oc(dt,mt/2,Et/2,V?1:1/Math.max(2*dt.r/mt,2*dt.r/Et)),rt}return Me.size=function(Fe){return arguments.length?(xe=Fe,Me):xe},Me.radius=function(Fe){return arguments.length?(V=Fe==null||typeof Fe=="function"?Fe:+Fe,Me):V},Me.padding=function(Fe){return arguments.length?(ge=+Fe,Me):ge},nf(Me,ne)},i.layout.tree=function(){var V=i.layout.hierarchy().sort(null).value(null),ne=Uf,ge=[1,1],xe=null;function Me(dt,mt){var Et=V.call(this,dt,mt),Vt=Et[0],jt=function(On){for(var An,Sn={A:null,children:[On]},rr=[Sn];(An=rr.pop())!=null;)for(var Dr,Pr=An.children,Zr=0,Mo=Pr.length;Zrcn.x&&(cn=On),On.depth>sn.depth&&(sn=On)});var xn=ne(Nt,cn)/2-Nt.x,pn=ge[0]/(cn.x+ne(cn,Nt)/2+xn),Ln=ge[1]/(sn.depth||1);gh(Vt,function(On){On.x=(On.x+xn)*pn,On.y=On.depth*Ln})}return Et}function Fe(dt){var mt=dt.children,Et=dt.parent.children,Vt=dt.i?Et[dt.i-1]:null;if(mt.length){(function(Nt){for(var cn,sn=0,xn=0,pn=Nt.children,Ln=pn.length;--Ln>=0;)(cn=pn[Ln]).z+=sn,cn.m+=sn,sn+=cn.s+(xn+=cn.c)})(dt);var jt=(mt[0].z+mt[mt.length-1].z)/2;Vt?(dt.z=Vt.z+ne(dt._,Vt._),dt.m=dt.z-jt):dt.z=jt}else Vt&&(dt.z=Vt.z+ne(dt._,Vt._));dt.parent.A=function(Nt,cn,sn){if(cn){for(var xn,pn=Nt,Ln=Nt,On=cn,An=pn.parent.children[0],Sn=pn.m,rr=Ln.m,Dr=On.m,Pr=An.m;On=Hl(On),pn=zl(pn),On&&pn;)An=zl(An),(Ln=Hl(Ln)).a=Nt,(xn=On.z+Dr-pn.z-Sn+ne(On._,pn._))>0&&(Cs($s(On,Nt,sn),Nt,xn),Sn+=xn,rr+=xn),Dr+=On.m,Sn+=pn.m,Pr+=An.m,rr+=Ln.m;On&&!Hl(Ln)&&(Ln.t=On,Ln.m+=Dr-rr),pn&&!zl(An)&&(An.t=pn,An.m+=Sn-Pr,sn=Nt)}return sn}(dt,Vt,dt.parent.A||Et[0])}function Je(dt){dt._.x=dt.z+dt.parent.m,dt.m+=dt.parent.m}function rt(dt){dt.x*=ge[0],dt.y=dt.depth*ge[1]}return Me.separation=function(dt){return arguments.length?(ne=dt,Me):ne},Me.size=function(dt){return arguments.length?(xe=(ge=dt)==null?rt:null,Me):xe?null:ge},Me.nodeSize=function(dt){return arguments.length?(xe=(ge=dt)==null?null:rt,Me):xe?ge:null},nf(Me,V)},i.layout.cluster=function(){var V=i.layout.hierarchy().sort(null).value(null),ne=Uf,ge=[1,1],xe=!1;function Me(Fe,Je){var rt,dt=V.call(this,Fe,Je),mt=dt[0],Et=0;rs(mt,function(sn){var xn=sn.children;xn&&xn.length?(sn.x=function(pn){return pn.reduce(function(Ln,On){return Ln+On.x},0)/pn.length}(xn),sn.y=function(pn){return 1+i.max(pn,function(Ln){return Ln.y})}(xn)):(sn.x=rt?Et+=ne(sn,rt):0,sn.y=0,rt=sn)});var Vt=Zu(mt),jt=yh(mt),Nt=Vt.x-ne(Vt,jt)/2,cn=jt.x+ne(jt,Vt)/2;return rs(mt,xe?function(sn){sn.x=(sn.x-mt.x)*ge[0],sn.y=(mt.y-sn.y)*ge[1]}:function(sn){sn.x=(sn.x-Nt)/(cn-Nt)*ge[0],sn.y=(1-(mt.y?sn.y/mt.y:1))*ge[1]}),dt}return Me.separation=function(Fe){return arguments.length?(ne=Fe,Me):ne},Me.size=function(Fe){return arguments.length?(xe=(ge=Fe)==null,Me):xe?null:ge},Me.nodeSize=function(Fe){return arguments.length?(xe=(ge=Fe)!=null,Me):xe?ge:null},nf(Me,V)},i.layout.treemap=function(){var V,ne=i.layout.hierarchy(),ge=Math.round,xe=[1,1],Me=null,Fe=of,Je=!1,rt="squarify",dt=.5*(1+Math.sqrt(5));function mt(sn,xn){for(var pn,Ln,On=-1,An=sn.length;++On0;)Sn.push(pn=rr[On-1]),Sn.area+=pn.area,rt!=="squarify"||(Ln=jt(Sn,Pr))<=Dr?(rr.pop(),Dr=Ln):(Sn.area-=Sn.pop().area,Nt(Sn,Pr,An,!1),Pr=Math.min(An.dx,An.dy),Sn.length=Sn.area=0,Dr=1/0);Sn.length&&(Nt(Sn,Pr,An,!0),Sn.length=Sn.area=0),xn.forEach(Et)}}function Vt(sn){var xn=sn.children;if(xn&&xn.length){var pn,Ln=Fe(sn),On=xn.slice(),An=[];for(mt(On,Ln.dx*Ln.dy/sn.value),An.area=0;pn=On.pop();)An.push(pn),An.area+=pn.area,pn.z!=null&&(Nt(An,pn.z?Ln.dx:Ln.dy,Ln,!On.length),An.length=An.area=0);xn.forEach(Vt)}}function jt(sn,xn){for(var pn,Ln=sn.area,On=0,An=1/0,Sn=-1,rr=sn.length;++SnOn&&(On=pn));return xn*=xn,(Ln*=Ln)?Math.max(xn*On*dt/Ln,Ln/(xn*An*dt)):1/0}function Nt(sn,xn,pn,Ln){var On,An=-1,Sn=sn.length,rr=pn.x,Dr=pn.y,Pr=xn?ge(sn.area/xn):0;if(xn==pn.dx){for((Ln||Pr>pn.dy)&&(Pr=pn.dy);++Anpn.dx)&&(Pr=pn.dx);++An1);return V+ne*xe*Math.sqrt(-2*Math.log(Fe)/Fe)}},logNormal:function(){var V=i.random.normal.apply(i,arguments);return function(){return Math.exp(V())}},bates:function(V){var ne=i.random.irwinHall(V);return function(){return ne()/V}},irwinHall:function(V){return function(){for(var ne=0,ge=0;ge2?np:Kd,mt=xe?Mp:ld;return Me=dt(V,ne,mt,ge),Fe=dt(ne,V,mt,Gl),rt}function rt(dt){return Me(dt)}return rt.invert=function(dt){return Fe(dt)},rt.domain=function(dt){return arguments.length?(V=dt.map(Number),Je()):V},rt.range=function(dt){return arguments.length?(ne=dt,Je()):ne},rt.rangeRound=function(dt){return rt.range(dt).interpolate($h)},rt.clamp=function(dt){return arguments.length?(xe=dt,Je()):xe},rt.interpolate=function(dt){return arguments.length?(ge=dt,Je()):ge},rt.ticks=function(dt){return Wc(V,dt)},rt.tickFormat=function(dt,mt){return d3_scale_linearTickFormat(V,dt,mt)},rt.nice=function(dt){return _l(V,dt),Je()},rt.copy=function(){return ms(V,ne,ge,xe)},Je()}function Ya(V,ne){return i.rebind(V,ne,"range","rangeRound","interpolate","clamp")}function _l(V,ne){return bh(V,Jd(dl(V,ne)[2])),bh(V,Jd(dl(V,ne)[2])),V}function dl(V,ne){ne==null&&(ne=10);var ge=Ip(V),xe=ge[1]-ge[0],Me=Math.pow(10,Math.floor(Math.log(xe/ne)/Math.LN10)),Fe=ne/xe*Me;return Fe<=.15?Me*=10:Fe<=.35?Me*=5:Fe<=.75&&(Me*=2),ge[0]=Math.ceil(ge[0]/Me)*Me,ge[1]=Math.floor(ge[1]/Me)*Me+.5*Me,ge[2]=Me,ge}function Wc(V,ne){return i.range.apply(i,dl(V,ne))}function wl(V,ne,ge,xe){function Me(rt){return(ge?Math.log(rt<0?0:rt):-Math.log(rt>0?0:-rt))/Math.log(ne)}function Fe(rt){return ge?Math.pow(ne,rt):-Math.pow(ne,-rt)}function Je(rt){return V(Me(rt))}return Je.invert=function(rt){return Fe(V.invert(rt))},Je.domain=function(rt){return arguments.length?(ge=rt[0]>=0,V.domain((xe=rt.map(Number)).map(Me)),Je):xe},Je.base=function(rt){return arguments.length?(ne=+rt,V.domain(xe.map(Me)),Je):ne},Je.nice=function(){var rt=bh(xe.map(Me),ge?Math:xi);return V.domain(rt),xe=rt.map(Fe),Je},Je.ticks=function(){var rt=Ip(xe),dt=[],mt=rt[0],Et=rt[1],Vt=Math.floor(Me(mt)),jt=Math.ceil(Me(Et)),Nt=ne%1?2:ne;if(isFinite(jt-Vt)){if(ge){for(;Vt0;cn--)dt.push(Fe(Vt)*cn);for(Vt=0;dt[Vt]Et;jt--);dt=dt.slice(Vt,jt)}return dt},Je.copy=function(){return wl(V.copy(),ne,ge,xe)},Ya(Je,V)}i.scale.linear=function(){return ms([0,1],[0,1],Gl,!1)},i.scale.log=function(){return wl(i.scale.linear().domain([0,1]),10,!0,[1,10])};var xi={floor:function(V){return-Math.ceil(-V)},ceil:function(V){return-Math.floor(-V)}};function mu(V,ne,ge){var xe=xh(ne),Me=xh(1/ne);function Fe(Je){return V(xe(Je))}return Fe.invert=function(Je){return Me(V.invert(Je))},Fe.domain=function(Je){return arguments.length?(V.domain((ge=Je.map(Number)).map(xe)),Fe):ge},Fe.ticks=function(Je){return Wc(ge,Je)},Fe.tickFormat=function(Je,rt){return d3_scale_linearTickFormat(ge,Je,rt)},Fe.nice=function(Je){return Fe.domain(_l(ge,Je))},Fe.exponent=function(Je){return arguments.length?(xe=xh(ne=Je),Me=xh(1/ne),V.domain(ge.map(xe)),Fe):ne},Fe.copy=function(){return mu(V.copy(),ne,ge)},Ya(Fe,V)}function xh(V){return function(ne){return ne<0?-Math.pow(-ne,V):Math.pow(ne,V)}}function js(V,ne){var ge,xe,Me;function Fe(rt){return xe[((ge.get(rt)||(ne.t==="range"?ge.set(rt,V.push(rt)):NaN))-1)%xe.length]}function Je(rt,dt){return i.range(V.length).map(function(mt){return rt+dt*mt})}return Fe.domain=function(rt){if(!arguments.length)return V;V=[],ge=new L;for(var dt,mt=-1,Et=rt.length;++mt0?ge[Fe-1]:V[0],Fejt?0:1;if(Et=mn)return dt(Et,cn)+(mt?dt(mt,1-cn):"")+"Z";var sn,xn,pn,Ln,On,An,Sn,rr,Dr,Pr,Zr,Mo,$o=0,vo=0,zo=[];if((Ln=(+Je.apply(this,arguments)||0)/2)&&(pn=xe===vc?Math.sqrt(mt*mt+Et*Et):+xe.apply(this,arguments),cn||(vo*=-1),Et&&(vo=yt(pn/Et*Math.sin(Ln))),mt&&($o=yt(pn/mt*Math.sin(Ln)))),Et){On=Et*Math.cos(Vt+vo),An=Et*Math.sin(Vt+vo),Sn=Et*Math.cos(jt-vo),rr=Et*Math.sin(jt-vo);var yi=Math.abs(jt-Vt-2*vo)<=gn?0:1;if(vo&&Ps(On,An,Sn,rr)===cn^yi){var Si=(Vt+jt)/2;On=Et*Math.cos(Si),An=Et*Math.sin(Si),Sn=rr=null}}else On=An=0;if(mt){Dr=mt*Math.cos(jt-$o),Pr=mt*Math.sin(jt-$o),Zr=mt*Math.cos(Vt+$o),Mo=mt*Math.sin(Vt+$o);var Hr=Math.abs(Vt-jt+2*$o)<=gn?0:1;if($o&&Ps(Dr,Pr,Zr,Mo)===1-cn^Hr){var Lo=(Vt+jt)/2;Dr=mt*Math.cos(Lo),Pr=mt*Math.sin(Lo),Zr=Mo=null}}else Dr=Pr=0;if(Nt>_t&&(sn=Math.min(Math.abs(Et-mt)/2,+ge.apply(this,arguments)))>.001){xn=mt0?0:1}function Sc(V,ne,ge,xe,Me){var Fe=V[0]-ne[0],Je=V[1]-ne[1],rt=(Me?xe:-xe)/Math.sqrt(Fe*Fe+Je*Je),dt=rt*Je,mt=-rt*Fe,Et=V[0]+dt,Vt=V[1]+mt,jt=ne[0]+dt,Nt=ne[1]+mt,cn=(Et+jt)/2,sn=(Vt+Nt)/2,xn=jt-Et,pn=Nt-Vt,Ln=xn*xn+pn*pn,On=ge-xe,An=Et*Nt-jt*Vt,Sn=(pn<0?-1:1)*Math.sqrt(Math.max(0,On*On*Ln-An*An)),rr=(An*pn-xn*Sn)/Ln,Dr=(-An*xn-pn*Sn)/Ln,Pr=(An*pn+xn*Sn)/Ln,Zr=(-An*xn+pn*Sn)/Ln,Mo=rr-cn,$o=Dr-sn,vo=Pr-cn,zo=Zr-sn;return Mo*Mo+$o*$o>vo*vo+zo*zo&&(rr=Pr,Dr=Zr),[[rr-dt,Dr-mt],[rr*ge/On,Dr*ge/On]]}function tl(){return!0}function gu(V){var ne=io,ge=Qr,xe=tl,Me=ja,Fe=Me.key,Je=.7;function rt(dt){var mt,Et=[],Vt=[],jt=-1,Nt=dt.length,cn=$r(ne),sn=$r(ge);function xn(){Et.push("M",Me(V(Vt),Je))}for(;++jt1&&Me.push("H",xe[0]),Me.join("")},"step-before":Rd,"step-after":Ld,basis:Ka,"basis-open":function(V){if(V.length<4)return ja(V);for(var ne,ge=[],xe=-1,Me=V.length,Fe=[0],Je=[0];++xe<3;)ne=V[xe],Fe.push(ne[0]),Je.push(ne[1]);for(ge.push(Xi(bu,Fe)+","+Xi(bu,Je)),--xe;++xe9&&(Fe=3*ge/Math.sqrt(Fe),rt[dt]=Fe*xe,rt[dt+1]=Fe*Me);for(dt=-1;++dt<=mt;)Fe=(ne[Math.min(mt,dt+1)][0]-ne[Math.max(0,dt-1)][0])/(6*(1+rt[dt]*rt[dt])),Je.push([Fe||0,rt[dt]*Fe||0]);return Je}(V))}});function ja(V){return V.length>1?V.join("L"):V+"Z"}function yu(V){return V.join("L")+"Z"}function Rd(V){for(var ne=0,ge=V.length,xe=V[0],Me=[xe[0],",",xe[1]];++ne1){rt=ne[1],Fe=V[dt],dt++,xe+="C"+(Me[0]+Je[0])+","+(Me[1]+Je[1])+","+(Fe[0]-rt[0])+","+(Fe[1]-rt[1])+","+Fe[0]+","+Fe[1];for(var mt=2;mtgn)+",1 "+Et}function dt(mt,Et,Vt,jt){return"Q 0,0 "+jt}return Fe.radius=function(mt){return arguments.length?(ge=$r(mt),Fe):ge},Fe.source=function(mt){return arguments.length?(V=$r(mt),Fe):V},Fe.target=function(mt){return arguments.length?(ne=$r(mt),Fe):ne},Fe.startAngle=function(mt){return arguments.length?(xe=$r(mt),Fe):xe},Fe.endAngle=function(mt){return arguments.length?(Me=$r(mt),Fe):Me},Fe},i.svg.diagonal=function(){var V=Qf,ne=dd,ge=_h;function xe(Me,Fe){var Je=V.call(this,Me,Fe),rt=ne.call(this,Me,Fe),dt=(Je.y+rt.y)/2,mt=[Je,{x:Je.x,y:dt},{x:rt.x,y:dt},rt];return"M"+(mt=mt.map(ge))[0]+"C"+mt[1]+" "+mt[2]+" "+mt[3]}return xe.source=function(Me){return arguments.length?(V=$r(Me),xe):V},xe.target=function(Me){return arguments.length?(ne=$r(Me),xe):ne},xe.projection=function(Me){return arguments.length?(ge=Me,xe):ge},xe},i.svg.diagonal.radial=function(){var V=i.svg.diagonal(),ne=_h,ge=V.projection;return V.projection=function(xe){return arguments.length?ge(function(Me){return function(){var Fe=Me.apply(this,arguments),Je=Fe[0],rt=Fe[1]-vt;return[Je*Math.cos(rt),Je*Math.sin(rt)]}}(ne=xe)):ne},V},i.svg.symbol=function(){var V=hd,ne=Gc;function ge(xe,Me){return(Dd.get(V.call(this,xe,Me))||rl)(ne.call(this,xe,Me))}return ge.type=function(xe){return arguments.length?(V=$r(xe),ge):V},ge.size=function(xe){return arguments.length?(ne=$r(xe),ge):ne},ge};var Dd=i.map({circle:rl,cross:function(V){var ne=Math.sqrt(V/5)/2;return"M"+-3*ne+","+-ne+"H"+-ne+"V"+-3*ne+"H"+ne+"V"+-ne+"H"+3*ne+"V"+ne+"H"+ne+"V"+3*ne+"H"+-ne+"V"+ne+"H"+-3*ne+"Z"},diamond:function(V){var ne=Math.sqrt(V/(2*fa)),ge=ne*fa;return"M0,"+-ne+"L"+ge+",0 0,"+ne+" "+-ge+",0Z"},square:function(V){var ne=Math.sqrt(V)/2;return"M"+-ne+","+-ne+"L"+ne+","+-ne+" "+ne+","+ne+" "+-ne+","+ne+"Z"},"triangle-down":function(V){var ne=Math.sqrt(V/Vi),ge=ne*Vi/2;return"M0,"+ge+"L"+ne+","+-ge+" "+-ne+","+-ge+"Z"},"triangle-up":function(V){var ne=Math.sqrt(V/Vi),ge=ne*Vi/2;return"M0,"+-ge+"L"+ne+","+ge+" "+-ne+","+ge+"Z"}});i.svg.symbolTypes=Dd.keys();var Vi=Math.sqrt(3),fa=Math.tan(30*bt);Te.transition=function(V){for(var ne,ge,xe=Jl||++kc,Me=El(V),Fe=[],Je=Bd||{time:Date.now(),ease:mc,delay:0,duration:250},rt=-1,dt=this.length;++rt0;)mt[--pn].call(V,xn);if(sn>=1)return Vt.event&&Vt.event.end.call(V,V.__data__,ne),--Et.count?delete Et[xe]:delete V[ge],1}Vt||(Fe=Me.time,Je=Yn(function(cn){var sn=Vt.delay;if(Je.t=sn+Fe,sn<=cn)return jt(cn-sn);Je.c=jt},0,Fe),Vt=Et[xe]={tween:new L,time:Fe,timer:Je,delay:Me.delay,duration:Me.duration,ease:Me.ease,index:ne},Me=null,++Et.count)}Qs.call=Te.call,Qs.empty=Te.empty,Qs.node=Te.node,Qs.size=Te.size,i.transition=function(V,ne){return V&&V.transition?Jl?V.transition(ne):V:i.selection().transition(V)},i.transition.prototype=Qs,Qs.select=function(V){var ne,ge,xe,Me=this.id,Fe=this.namespace,Je=[];V=Pe(V);for(var rt=-1,dt=this.length;++rtrect,.s>rect").attr("width",Fe[1]-Fe[0])}function Nt(sn){sn.select(".extent").attr("y",Je[0]),sn.selectAll(".extent,.e>rect,.w>rect").attr("height",Je[1]-Je[0])}function cn(){var sn,xn,pn=this,Ln=i.select(i.event.target),On=ge.of(pn,arguments),An=i.select(pn),Sn=Ln.datum(),rr=!/^(n|s)$/.test(Sn)&&xe,Dr=!/^(e|w)$/.test(Sn)&&Me,Pr=Ln.classed("extent"),Zr=qt(pn),Mo=i.mouse(pn),$o=i.select(a(pn)).on("keydown.brush",function(){i.event.keyCode==32&&(Pr||(sn=null,Mo[0]-=Fe[1],Mo[1]-=Je[1],Pr=2),he())}).on("keyup.brush",function(){i.event.keyCode==32&&Pr==2&&(Mo[0]+=Fe[1],Mo[1]+=Je[1],Pr=0,he())});if(i.event.changedTouches?$o.on("touchmove.brush",yi).on("touchend.brush",Hr):$o.on("mousemove.brush",yi).on("mouseup.brush",Hr),An.interrupt().selectAll("*").interrupt(),Pr)Mo[0]=Fe[0]-Mo[0],Mo[1]=Je[0]-Mo[1];else if(Sn){var vo=+/w$/.test(Sn),zo=+/^n/.test(Sn);xn=[Fe[1-vo]-Mo[0],Je[1-zo]-Mo[1]],Mo[0]=Fe[vo],Mo[1]=Je[zo]}else i.event.altKey&&(sn=Mo.slice());function yi(){var Lo=i.mouse(pn),ki=!1;xn&&(Lo[0]+=xn[0],Lo[1]+=xn[1]),Pr||(i.event.altKey?(sn||(sn=[(Fe[0]+Fe[1])/2,(Je[0]+Je[1])/2]),Mo[0]=Fe[+(Lo[0](Ae=1))return Ae;for(;feet?fe=Qe:Ae=Qe,Qe=.5*(Ae-fe)+fe}return Qe},p.prototype.solve=function(N,G){return this.sampleCurveY(this.solveCurveX(N,G))};var a=u;function u(N,G){this.x=N,this.y=G}u.prototype={clone:function(){return new u(this.x,this.y)},add:function(N){return this.clone()._add(N)},sub:function(N){return this.clone()._sub(N)},multByPoint:function(N){return this.clone()._multByPoint(N)},divByPoint:function(N){return this.clone()._divByPoint(N)},mult:function(N){return this.clone()._mult(N)},div:function(N){return this.clone()._div(N)},rotate:function(N){return this.clone()._rotate(N)},rotateAround:function(N,G){return this.clone()._rotateAround(N,G)},matMult:function(N){return this.clone()._matMult(N)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(N){return this.x===N.x&&this.y===N.y},dist:function(N){return Math.sqrt(this.distSqr(N))},distSqr:function(N){var G=N.x-this.x,fe=N.y-this.y;return G*G+fe*fe},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(N){return Math.atan2(this.y-N.y,this.x-N.x)},angleWith:function(N){return this.angleWithSep(N.x,N.y)},angleWithSep:function(N,G){return Math.atan2(this.x*G-this.y*N,this.x*N+this.y*G)},_matMult:function(N){var G=N[0]*this.x+N[1]*this.y,fe=N[2]*this.x+N[3]*this.y;return this.x=G,this.y=fe,this},_add:function(N){return this.x+=N.x,this.y+=N.y,this},_sub:function(N){return this.x-=N.x,this.y-=N.y,this},_mult:function(N){return this.x*=N,this.y*=N,this},_div:function(N){return this.x/=N,this.y/=N,this},_multByPoint:function(N){return this.x*=N.x,this.y*=N.y,this},_divByPoint:function(N){return this.x/=N.x,this.y/=N.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var N=this.y;return this.y=this.x,this.x=-N,this},_rotate:function(N){var G=Math.cos(N),fe=Math.sin(N),Ae=G*this.x-fe*this.y,Qe=fe*this.x+G*this.y;return this.x=Ae,this.y=Qe,this},_rotateAround:function(N,G){var fe=Math.cos(N),Ae=Math.sin(N),Qe=G.x+fe*(this.x-G.x)-Ae*(this.y-G.y),et=G.y+Ae*(this.x-G.x)+fe*(this.y-G.y);return this.x=Qe,this.y=et,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(N){return N instanceof u?N:Array.isArray(N)?new u(N[0],N[1]):N};var h=typeof self<"u"?self:{},m=Math.pow(2,53)-1;function v(N,G,fe,Ae){var Qe=new y(N,G,fe,Ae);return function(et){return Qe.solve(et)}}var _=v(.25,.1,.25,1);function S(N,G,fe){return Math.min(fe,Math.max(G,N))}function A(N,G,fe){var Ae=fe-G,Qe=((N-G)%Ae+Ae)%Ae+G;return Qe===G?fe:Qe}function x(N){for(var G=[],fe=arguments.length-1;fe-- >0;)G[fe]=arguments[fe+1];for(var Ae=0,Qe=G;Ae>G/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,N)}()}function E(N){return!!N&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(N)}function C(N,G){N.forEach(function(fe){G[fe]&&(G[fe]=G[fe].bind(G))})}function L(N,G){return N.indexOf(G,N.length-G.length)!==-1}function D(N,G,fe){var Ae={};for(var Qe in N)Ae[Qe]=G.call(fe||this,N[Qe],Qe,N);return Ae}function k(N,G,fe){var Ae={};for(var Qe in N)G.call(fe||this,N[Qe],Qe,N)&&(Ae[Qe]=N[Qe]);return Ae}function I(N){return Array.isArray(N)?N.map(I):typeof N=="object"&&N?D(N,I):N}var z={};function $(N){z[N]||(typeof console<"u"&&console.warn(N),z[N]=!0)}function Q(N,G,fe){return(fe.y-N.y)*(G.x-N.x)>(G.y-N.y)*(fe.x-N.x)}function j(N){for(var G=0,fe=0,Ae=N.length,Qe=Ae-1,et=void 0,ut=void 0;fe@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(Ae,Qe,et,ut){var Tt=et||ut;return G[Qe]=!Tt||Tt.toLowerCase(),""}),G["max-age"]){var fe=parseInt(G["max-age"],10);isNaN(fe)?delete G["max-age"]:G["max-age"]=fe}return G}var te=null;function W(N){if(te==null){var G=N.navigator?N.navigator.userAgent:null;te=!!N.safari||!(!G||!(/\b(iPad|iPhone|iPod)\b/.test(G)||G.match("Safari")&&!G.match("Chrome")))}return te}function K(N){try{var G=h[N];return G.setItem("_mapbox_test_",1),G.removeItem("_mapbox_test_"),!0}catch{return!1}}var oe,q,Y,ee,me=h.performance&&h.performance.now?h.performance.now.bind(h.performance):Date.now.bind(Date),he=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame,se=h.cancelAnimationFrame||h.mozCancelAnimationFrame||h.webkitCancelAnimationFrame||h.msCancelAnimationFrame,ae={now:me,frame:function(N){var G=he(N);return{cancel:function(){return se(G)}}},getImageData:function(N,G){G===void 0&&(G=0);var fe=h.document.createElement("canvas"),Ae=fe.getContext("2d");if(!Ae)throw new Error("failed to create canvas 2d context");return fe.width=N.width,fe.height=N.height,Ae.drawImage(N,0,0,N.width,N.height),Ae.getImageData(-G,-G,N.width+2*G,N.height+2*G)},resolveURL:function(N){return oe||(oe=h.document.createElement("a")),oe.href=N,oe.href},hardwareConcurrency:h.navigator&&h.navigator.hardwareConcurrency||4,get devicePixelRatio(){return h.devicePixelRatio},get prefersReducedMotion(){return!!h.matchMedia&&(q==null&&(q=h.matchMedia("(prefers-reduced-motion: reduce)")),q.matches)}},ce={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},de={supported:!1,testSupport:function(N){!ve&&ee&&(ye?_e(N):Y=N)}},ve=!1,ye=!1;function _e(N){var G=N.createTexture();N.bindTexture(N.TEXTURE_2D,G);try{if(N.texImage2D(N.TEXTURE_2D,0,N.RGBA,N.RGBA,N.UNSIGNED_BYTE,ee),N.isContextLost())return;de.supported=!0}catch{}N.deleteTexture(G),ve=!0}h.document&&((ee=h.document.createElement("img")).onload=function(){Y&&_e(Y),Y=null,ye=!0},ee.onerror=function(){ve=!0,Y=null},ee.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Se="01",Te=function(N,G){this._transformRequestFn=N,this._customAccessToken=G,this._createSkuToken()};function Pe(N){return N.indexOf("mapbox:")===0}Te.prototype._createSkuToken=function(){var N=function(){for(var G="",fe=0;fe<10;fe++)G+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Se,G].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=N.token,this._skuTokenExpiresAt=N.tokenExpiresAt},Te.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Te.prototype.transformRequest=function(N,G){return this._transformRequestFn&&this._transformRequestFn(N,G)||{url:N}},Te.prototype.normalizeStyleURL=function(N,G){if(!Pe(N))return N;var fe=He(N);return fe.path="/styles/v1"+fe.path,this._makeAPIURL(fe,this._customAccessToken||G)},Te.prototype.normalizeGlyphsURL=function(N,G){if(!Pe(N))return N;var fe=He(N);return fe.path="/fonts/v1"+fe.path,this._makeAPIURL(fe,this._customAccessToken||G)},Te.prototype.normalizeSourceURL=function(N,G){if(!Pe(N))return N;var fe=He(N);return fe.path="/v4/"+fe.authority+".json",fe.params.push("secure"),this._makeAPIURL(fe,this._customAccessToken||G)},Te.prototype.normalizeSpriteURL=function(N,G,fe,Ae){var Qe=He(N);return Pe(N)?(Qe.path="/styles/v1"+Qe.path+"/sprite"+G+fe,this._makeAPIURL(Qe,this._customAccessToken||Ae)):(Qe.path+=""+G+fe,Ve(Qe))},Te.prototype.normalizeTileURL=function(N,G){if(this._isSkuTokenExpired()&&this._createSkuToken(),N&&!Pe(N))return N;var fe=He(N),Ae=ae.devicePixelRatio>=2||G===512?"@2x":"",Qe=de.supported?".webp":"$1";fe.path=fe.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+Ae+Qe),fe.path=fe.path.replace(/^.+\/v4\//,"/"),fe.path="/v4"+fe.path;var et=this._customAccessToken||function(ut){for(var Tt=0,Bt=ut;Tt=0&&N.params.splice(Qe,1)}if(Ae.path!=="/"&&(N.path=""+Ae.path+N.path),!ce.REQUIRE_ACCESS_TOKEN)return Ve(N);if(!(G=G||ce.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+fe);if(G[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+fe);return N.params=N.params.filter(function(et){return et.indexOf("access_token")===-1}),N.params.push("access_token="+G),Ve(N)};var Ie=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function ze(N){return Ie.test(N)}var De=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function He(N){var G=N.match(De);if(!G)throw new Error("Unable to parse URL object");return{protocol:G[1],authority:G[2],path:G[3]||"/",params:G[4]?G[4].split("&"):[]}}function Ve(N){var G=N.params.length?"?"+N.params.join("&"):"";return N.protocol+"://"+N.authority+N.path+G}var $e="mapbox.eventData";function Oe(N){if(!N)return null;var G,fe=N.split(".");if(!fe||fe.length!==3)return null;try{return JSON.parse((G=fe[1],decodeURIComponent(h.atob(G).split("").map(function(Ae){return"%"+("00"+Ae.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch{return null}}var ke=function(N){this.type=N,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};ke.prototype.getStorageKey=function(N){var G,fe,Ae=Oe(ce.ACCESS_TOKEN);return G=Ae&&Ae.u?(fe=Ae.u,h.btoa(encodeURIComponent(fe).replace(/%([0-9A-F]{2})/g,function(Qe,et){return String.fromCharCode(+("0x"+et))}))):ce.ACCESS_TOKEN||"",N?$e+"."+N+":"+G:$e+":"+G},ke.prototype.fetchEventData=function(){var N=K("localStorage"),G=this.getStorageKey(),fe=this.getStorageKey("uuid");if(N)try{var Ae=h.localStorage.getItem(G);Ae&&(this.eventData=JSON.parse(Ae));var Qe=h.localStorage.getItem(fe);Qe&&(this.anonId=Qe)}catch{$("Unable to read from LocalStorage")}},ke.prototype.saveEventData=function(){var N=K("localStorage"),G=this.getStorageKey(),fe=this.getStorageKey("uuid");if(N)try{h.localStorage.setItem(fe,this.anonId),Object.keys(this.eventData).length>=1&&h.localStorage.setItem(G,JSON.stringify(this.eventData))}catch{$("Unable to write to LocalStorage")}},ke.prototype.processRequests=function(N){},ke.prototype.postEvent=function(N,G,fe,Ae){var Qe=this;if(ce.EVENTS_URL){var et=He(ce.EVENTS_URL);et.params.push("access_token="+(Ae||ce.ACCESS_TOKEN||""));var ut={event:this.type,created:new Date(N).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:w,skuId:Se,userId:this.anonId},Tt=G?x(ut,G):ut,Bt={url:Ve(et),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Tt])};this.pendingRequest=mn(Bt,function(rn){Qe.pendingRequest=null,fe(rn),Qe.saveEventData(),Qe.processRequests(Ae)})}},ke.prototype.queueRequest=function(N,G){this.queue.push(N),this.processRequests(G)};var Le,We,Ue=function(N){function G(){N.call(this,"map.load"),this.success={},this.skuToken=""}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.postMapLoadEvent=function(fe,Ae,Qe,et){this.skuToken=Qe,(ce.EVENTS_URL&&et||ce.ACCESS_TOKEN&&Array.isArray(fe)&&fe.some(function(ut){return Pe(ut)||ze(ut)}))&&this.queueRequest({id:Ae,timestamp:Date.now()},et)},G.prototype.processRequests=function(fe){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){var Qe=this.queue.shift(),et=Qe.id,ut=Qe.timestamp;et&&this.success[et]||(this.anonId||this.fetchEventData(),E(this.anonId)||(this.anonId=T()),this.postEvent(ut,{skuToken:this.skuToken},function(Tt){Tt||et&&(Ae.success[et]=!0)},fe))}},G}(ke),Ze=function(N){function G(fe){N.call(this,"appUserTurnstile"),this._customAccessToken=fe}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.postTurnstileEvent=function(fe,Ae){ce.EVENTS_URL&&ce.ACCESS_TOKEN&&Array.isArray(fe)&&fe.some(function(Qe){return Pe(Qe)||ze(Qe)})&&this.queueRequest(Date.now(),Ae)},G.prototype.processRequests=function(fe){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var Qe=Oe(ce.ACCESS_TOKEN),et=Qe?Qe.u:ce.ACCESS_TOKEN,ut=et!==this.eventData.tokenU;E(this.anonId)||(this.anonId=T(),ut=!0);var Tt=this.queue.shift();if(this.eventData.lastSuccess){var Bt=new Date(this.eventData.lastSuccess),rn=new Date(Tt),an=(Tt-this.eventData.lastSuccess)/864e5;ut=ut||an>=1||an<-1||Bt.getDate()!==rn.getDate()}else ut=!0;if(!ut)return this.processRequests();this.postEvent(Tt,{"enabled.telemetry":!1},function(_n){_n||(Ae.eventData.lastSuccess=Tt,Ae.eventData.tokenU=et)},fe)}},G}(ke),Xe=new Ze,tt=Xe.postTurnstileEvent.bind(Xe),Ee=new Ue,Ne=Ee.postMapLoadEvent.bind(Ee),je="mapbox-tiles",nt=500,ot=50,Ge=42e4;function ht(){h.caches&&!Le&&(Le=h.caches.open(je))}function pt(N,G,fe){if(ht(),Le){var Ae={status:G.status,statusText:G.statusText,headers:new h.Headers};G.headers.forEach(function(et,ut){return Ae.headers.set(ut,et)});var Qe=X(G.headers.get("Cache-Control")||"");Qe["no-store"]||(Qe["max-age"]&&Ae.headers.set("Expires",new Date(fe+1e3*Qe["max-age"]).toUTCString()),new Date(Ae.headers.get("Expires")).getTime()-feDate.now()&&!Bt["no-cache"]}(Qe);Ae.delete(fe),et&&Ae.put(fe,Qe.clone()),G(null,Qe,et)}).catch(G)}).catch(G)}var It,qt=1/0;function en(){return It==null&&(It=h.OffscreenCanvas&&new h.OffscreenCanvas(1,1).getContext("2d")&&typeof h.createImageBitmap=="function"),It}var Gt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(Gt);var Ct=function(N){function G(fe,Ae,Qe){Ae===401&&ze(Qe)&&(fe+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),N.call(this,fe),this.status=Ae,this.url=Qe,this.name=this.constructor.name,this.message=fe}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},G}(Error),_t=U()?function(){return self.worker&&self.worker.referrer}:function(){return(h.location.protocol==="blob:"?h.parent:h).location.href};function nn(N,G){var fe,Ae=new h.AbortController,Qe=new h.Request(N.url,{method:N.method||"GET",body:N.body,credentials:N.credentials,headers:N.headers,referrer:_t(),signal:Ae.signal}),et=!1,ut=!1,Tt=(fe=Qe.url).indexOf("sku=")>0&&ze(fe);N.type==="json"&&Qe.headers.set("Accept","application/json");var Bt=function(an,_n,Dn){if(!ut){if(an&&an.message!=="SecurityError"&&$(an),_n&&Dn)return rn(_n);var Cn=Date.now();h.fetch(Qe).then(function(Jn){if(Jn.ok){var lr=Tt?Jn.clone():null;return rn(Jn,lr,Cn)}return G(new Ct(Jn.statusText,Jn.status,N.url))}).catch(function(Jn){Jn.code!==20&&G(new Error(Jn.message))})}},rn=function(an,_n,Dn){(N.type==="arrayBuffer"?an.arrayBuffer():N.type==="json"?an.json():an.text()).then(function(Cn){ut||(_n&&Dn&&pt(Qe,_n,Dn),et=!0,G(null,Cn,an.headers.get("Cache-Control"),an.headers.get("Expires")))}).catch(function(Cn){ut||G(new Error(Cn.message))})};return Tt?Dt(Qe,Bt):Bt(null,null),{cancel:function(){ut=!0,et||Ae.abort()}}}var gn=function(N,G){if(fe=N.url,!(/^file:/.test(fe)||/^file:/.test(_t())&&!/^\w+:/.test(fe))){if(h.fetch&&h.Request&&h.AbortController&&h.Request.prototype.hasOwnProperty("signal"))return nn(N,G);if(U()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",N,G,void 0,!0)}var fe;return function(Ae,Qe){var et=new h.XMLHttpRequest;for(var ut in et.open(Ae.method||"GET",Ae.url,!0),Ae.type==="arrayBuffer"&&(et.responseType="arraybuffer"),Ae.headers)et.setRequestHeader(ut,Ae.headers[ut]);return Ae.type==="json"&&(et.responseType="text",et.setRequestHeader("Accept","application/json")),et.withCredentials=Ae.credentials==="include",et.onerror=function(){Qe(new Error(et.statusText))},et.onload=function(){if((et.status>=200&&et.status<300||et.status===0)&&et.response!==null){var Tt=et.response;if(Ae.type==="json")try{Tt=JSON.parse(et.response)}catch(Bt){return Qe(Bt)}Qe(null,Tt,et.getResponseHeader("Cache-Control"),et.getResponseHeader("Expires"))}else Qe(new Ct(et.statusText,et.status,Ae.url))},et.send(Ae.body),{cancel:function(){return et.abort()}}}(N,G)},bn=function(N,G){return gn(x(N,{type:"arrayBuffer"}),G)},mn=function(N,G){return gn(x(N,{method:"POST"}),G)},vt,bt,lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";vt=[],bt=0;var yt=function(N,G){if(de.supported&&(N.headers||(N.headers={}),N.headers.accept="image/webp,*/*"),bt>=ce.MAX_PARALLEL_IMAGE_REQUESTS){var fe={requestParameters:N,callback:G,cancelled:!1,cancel:function(){this.cancelled=!0}};return vt.push(fe),fe}bt++;var Ae=!1,Qe=function(){if(!Ae)for(Ae=!0,bt--;vt.length&&bt0||this._oneTimeListeners&&this._oneTimeListeners[N]&&this._oneTimeListeners[N].length>0||this._eventedParent&&this._eventedParent.listens(N)},Lt.prototype.setEventedParent=function(N,G){return this._eventedParent=N,this._eventedParentData=G,this};var xt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Zt=function(N,G,fe,Ae){this.message=(N?N+": ":"")+fe,Ae&&(this.identifier=Ae),G!=null&&G.__line__&&(this.line=G.__line__)};function Xt(N){var G=N.key,fe=N.value;return fe?[new Zt(G,fe,"constants have been deprecated as of v8")]:[]}function Yt(N){for(var G=[],fe=arguments.length-1;fe-- >0;)G[fe]=arguments[fe+1];for(var Ae=0,Qe=G;Ae":N.itemType.kind==="value"?"array":"array<"+G+">"}return N.kind}var ir=[fn,dn,vn,Nn,er,xr,En,ar(In),Sr];function Wn(N,G){if(G.kind==="error")return null;if(N.kind==="array"){if(G.kind==="array"&&(G.N===0&&G.itemType.kind==="value"||!Wn(N.itemType,G.itemType))&&(typeof N.N!="number"||N.N===G.N))return null}else{if(N.kind===G.kind)return null;if(N.kind==="value"){for(var fe=0,Ae=ir;fe255?255:Bt}function Qe(Bt){return Bt<0?0:Bt>1?1:Bt}function et(Bt){return Bt[Bt.length-1]==="%"?Ae(parseFloat(Bt)/100*255):Ae(parseInt(Bt))}function ut(Bt){return Bt[Bt.length-1]==="%"?Qe(parseFloat(Bt)/100):Qe(parseFloat(Bt))}function Tt(Bt,rn,an){return an<0?an+=1:an>1&&(an-=1),6*an<1?Bt+(rn-Bt)*an*6:2*an<1?rn:3*an<2?Bt+(rn-Bt)*(2/3-an)*6:Bt}try{G.parseCSSColor=function(Bt){var rn,an=Bt.replace(/ /g,"").toLowerCase();if(an in fe)return fe[an].slice();if(an[0]==="#")return an.length===4?(rn=parseInt(an.substr(1),16))>=0&&rn<=4095?[(3840&rn)>>4|(3840&rn)>>8,240&rn|(240&rn)>>4,15&rn|(15&rn)<<4,1]:null:an.length===7&&(rn=parseInt(an.substr(1),16))>=0&&rn<=16777215?[(16711680&rn)>>16,(65280&rn)>>8,255&rn,1]:null;var _n=an.indexOf("("),Dn=an.indexOf(")");if(_n!==-1&&Dn+1===an.length){var Cn=an.substr(0,_n),Jn=an.substr(_n+1,Dn-(_n+1)).split(","),lr=1;switch(Cn){case"rgba":if(Jn.length!==4)return null;lr=ut(Jn.pop());case"rgb":return Jn.length!==3?null:[et(Jn[0]),et(Jn[1]),et(Jn[2]),lr];case"hsla":if(Jn.length!==4)return null;lr=ut(Jn.pop());case"hsl":if(Jn.length!==3)return null;var Ar=(parseFloat(Jn[0])%360+360)%360/360,Or=ut(Jn[1]),jr=ut(Jn[2]),Jr=jr<=.5?jr*(Or+1):jr+Or-jr*Or,uo=2*jr-Jr;return[Ae(255*Tt(uo,Jr,Ar+1/3)),Ae(255*Tt(uo,Jr,Ar)),Ae(255*Tt(uo,Jr,Ar-1/3)),lr];default:return null}}return null}}catch{}}),zr=Ir.parseCSSColor,Fr=function(N,G,fe,Ae){Ae===void 0&&(Ae=1),this.r=N,this.g=G,this.b=fe,this.a=Ae};Fr.parse=function(N){if(N){if(N instanceof Fr)return N;if(typeof N=="string"){var G=zr(N);if(G)return new Fr(G[0]/255*G[3],G[1]/255*G[3],G[2]/255*G[3],G[3])}}},Fr.prototype.toString=function(){var N=this.toArray(),G=N[0],fe=N[1],Ae=N[2],Qe=N[3];return"rgba("+Math.round(G)+","+Math.round(fe)+","+Math.round(Ae)+","+Qe+")"},Fr.prototype.toArray=function(){var N=this,G=N.r,fe=N.g,Ae=N.b,Qe=N.a;return Qe===0?[0,0,0,0]:[255*G/Qe,255*fe/Qe,255*Ae/Qe,Qe]},Fr.black=new Fr(0,0,0,1),Fr.white=new Fr(1,1,1,1),Fr.transparent=new Fr(0,0,0,0),Fr.red=new Fr(1,0,0,1);var Rr=function(N,G,fe){this.sensitivity=N?G?"variant":"case":G?"accent":"base",this.locale=fe,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Rr.prototype.compare=function(N,G){return this.collator.compare(N,G)},Rr.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $r=function(N,G,fe,Ae,Qe){this.text=N,this.image=G,this.scale=fe,this.fontStack=Ae,this.textColor=Qe},Kr=function(N){this.sections=N};Kr.fromString=function(N){return new Kr([new $r(N,null,null,null,null)])},Kr.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(N){return N.text.length!==0||N.image&&N.image.name.length!==0})},Kr.factory=function(N){return N instanceof Kr?N:Kr.fromString(N)},Kr.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(N){return N.text}).join("")},Kr.prototype.serialize=function(){for(var N=["format"],G=0,fe=this.sections;G=0&&N<=255&&typeof G=="number"&&G>=0&&G<=255&&typeof fe=="number"&&fe>=0&&fe<=255?Ae===void 0||typeof Ae=="number"&&Ae>=0&&Ae<=1?null:"Invalid rgba value ["+[N,G,fe,Ae].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof Ae=="number"?[N,G,fe,Ae]:[N,G,fe]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function So(N){if(N===null||typeof N=="string"||typeof N=="boolean"||typeof N=="number"||N instanceof Fr||N instanceof Rr||N instanceof Kr||N instanceof Co)return!0;if(Array.isArray(N)){for(var G=0,fe=N;G2){var Tt=N[1];if(typeof Tt!="string"||!(Tt in br)||Tt==="object")return G.error('The item type argument of "array" must be one of string, number, boolean',1);et=br[Tt],Ae++}else et=In;if(N.length>3){if(N[2]!==null&&(typeof N[2]!="number"||N[2]<0||N[2]!==Math.floor(N[2])))return G.error('The length argument to "array" must be a positive integer literal',2);ut=N[2],Ae++}fe=ar(et,ut)}else fe=br[Qe];for(var Bt=[];Ae1)&&G.push(Ae)}}return G.concat(this.args.map(function(Qe){return Qe.serialize()}))};var Cr=function(N){this.type=xr,this.sections=N};Cr.parse=function(N,G){if(N.length<2)return G.error("Expected at least one argument.");var fe=N[1];if(!Array.isArray(fe)&&typeof fe=="object")return G.error("First argument must be an image or text section.");for(var Ae=[],Qe=!1,et=1;et<=N.length-1;++et){var ut=N[et];if(Qe&&typeof ut=="object"&&!Array.isArray(ut)){Qe=!1;var Tt=null;if(ut["font-scale"]&&!(Tt=G.parse(ut["font-scale"],1,dn)))return null;var Bt=null;if(ut["text-font"]&&!(Bt=G.parse(ut["text-font"],1,ar(vn))))return null;var rn=null;if(ut["text-color"]&&!(rn=G.parse(ut["text-color"],1,er)))return null;var an=Ae[Ae.length-1];an.scale=Tt,an.font=Bt,an.textColor=rn}else{var _n=G.parse(N[et],1,In);if(!_n)return null;var Dn=_n.type.kind;if(Dn!=="string"&&Dn!=="value"&&Dn!=="null"&&Dn!=="resolvedImage")return G.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Qe=!0,Ae.push({content:_n,scale:null,font:null,textColor:null})}}return new Cr(Ae)},Cr.prototype.evaluate=function(N){return new Kr(this.sections.map(function(G){var fe=G.content.evaluate(N);return go(fe)===Sr?new $r("",fe,null,null,null):new $r(li(fe),null,G.scale?G.scale.evaluate(N):null,G.font?G.font.evaluate(N).join(","):null,G.textColor?G.textColor.evaluate(N):null)}))},Cr.prototype.eachChild=function(N){for(var G=0,fe=this.sections;G-1),fe},io.prototype.eachChild=function(N){N(this.input)},io.prototype.outputDefined=function(){return!1},io.prototype.serialize=function(){return["image",this.input.serialize()]};var Qr={"to-boolean":Nn,"to-color":er,"to-number":dn,"to-string":vn},Wr=function(N,G){this.type=N,this.args=G};Wr.parse=function(N,G){if(N.length<2)return G.error("Expected at least one argument.");var fe=N[0];if((fe==="to-boolean"||fe==="to-string")&&N.length!==2)return G.error("Expected one argument.");for(var Ae=Qr[fe],Qe=[],et=1;et4?"Invalid rbga value "+JSON.stringify(G)+": expected an array containing either three or four numeric values.":so(G[0],G[1],G[2],G[3])))return new Fr(G[0]/255,G[1]/255,G[2]/255,G[3])}throw new Yn(fe||"Could not parse color from value '"+(typeof G=="string"?G:String(JSON.stringify(G)))+"'")}if(this.type.kind==="number"){for(var ut=null,Tt=0,Bt=this.args;Tt=G[2]||N[1]<=G[1]||N[3]>=G[3])}function gr(N,G){var fe,Ae=(180+N[0])/360,Qe=(fe=N[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+fe*Math.PI/360)))/360),et=Math.pow(2,G.z);return[Math.round(Ae*et*zn),Math.round(Qe*et*zn)]}function vr(N,G,fe){return G[1]>N[1]!=fe[1]>N[1]&&N[0]<(fe[0]-G[0])*(N[1]-G[1])/(fe[1]-G[1])+G[0]}function nr(N,G){for(var fe=!1,Ae=0,Qe=G.length;Ae0&&_n<0||an<0&&_n>0}function tr(N,G,fe){for(var Ae=0,Qe=fe;Aefe[2]){var Qe=.5*Ae,et=N[0]-fe[0]>Qe?-Ae:fe[0]-N[0]>Qe?Ae:0;et===0&&(et=N[0]-fe[2]>Qe?-Ae:fe[2]-N[0]>Qe?Ae:0),N[0]+=et}Zn(G,N)}function _o(N,G,fe,Ae){for(var Qe=Math.pow(2,Ae.z)*zn,et=[Ae.x*zn,Ae.y*zn],ut=[],Tt=0,Bt=N;Tt=0)return!1;var fe=!0;return N.eachChild(function(Ae){fe&&!Go(Ae,G)&&(fe=!1)}),fe}Eo.parse=function(N,G){if(N.length!==2)return G.error("'within' expression requires exactly one argument, but found "+(N.length-1)+" instead.");if(So(N[1])){var fe=N[1];if(fe.type==="FeatureCollection")for(var Ae=0;AeG))throw new Yn("Input is not a number.");ut=Tt-1}return 0}qo.prototype.parse=function(N,G,fe,Ae,Qe){return Qe===void 0&&(Qe={}),G?this.concat(G,fe,Ae)._parse(N,Qe):this._parse(N,Qe)},qo.prototype._parse=function(N,G){function fe(rn,an,_n){return _n==="assert"?new dr(an,[rn]):_n==="coerce"?new Wr(an,[rn]):rn}if(N!==null&&typeof N!="string"&&typeof N!="boolean"&&typeof N!="number"||(N=["literal",N]),Array.isArray(N)){if(N.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Ae=N[0];if(typeof Ae!="string")return this.error("Expression name must be a string, but found "+typeof Ae+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Qe=this.registry[Ae];if(Qe){var et=Qe.parse(N,this);if(!et)return null;if(this.expectedType){var ut=this.expectedType,Tt=et.type;if(ut.kind!=="string"&&ut.kind!=="number"&&ut.kind!=="boolean"&&ut.kind!=="object"&&ut.kind!=="array"||Tt.kind!=="value")if(ut.kind!=="color"&&ut.kind!=="formatted"&&ut.kind!=="resolvedImage"||Tt.kind!=="value"&&Tt.kind!=="string"){if(this.checkSubtype(ut,Tt))return null}else et=fe(et,ut,G.typeAnnotation||"coerce");else et=fe(et,ut,G.typeAnnotation||"assert")}if(!(et instanceof Pn)&&et.type.kind!=="resolvedImage"&&Ao(et)){var Bt=new Bn;try{et=new Pn(et.type,et.evaluate(Bt))}catch(rn){return this.error(rn.message),null}}return et}return this.error('Unknown expression "'+Ae+'". If you wanted a literal array, use ["literal", [...]].',0)}return N===void 0?this.error("'undefined' value invalid. Use null instead."):typeof N=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof N+" instead.")},qo.prototype.concat=function(N,G,fe){var Ae=typeof N=="number"?this.path.concat(N):this.path,Qe=fe?this.scope.concat(fe):this.scope;return new qo(this.registry,Ae,G||null,Qe,this.errors)},qo.prototype.error=function(N){for(var G=[],fe=arguments.length-1;fe-- >0;)G[fe]=arguments[fe+1];var Ae=""+this.key+G.map(function(Qe){return"["+Qe+"]"}).join("");this.errors.push(new tn(Ae,N))},qo.prototype.checkSubtype=function(N,G){var fe=Wn(N,G);return fe&&this.error(fe),fe};var ko=function(N,G,fe){this.type=N,this.input=G,this.labels=[],this.outputs=[];for(var Ae=0,Qe=fe;Ae=ut)return G.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Bt);var an=G.parse(Tt,rn,Qe);if(!an)return null;Qe=Qe||an.type,Ae.push([ut,an])}return new ko(Qe,fe,Ae)},ko.prototype.evaluate=function(N){var G=this.labels,fe=this.outputs;if(G.length===1)return fe[0].evaluate(N);var Ae=this.input.evaluate(N);if(Ae<=G[0])return fe[0].evaluate(N);var Qe=G.length;return Ae>=G[Qe-1]?fe[Qe-1].evaluate(N):fe[oi(G,Ae)].evaluate(N)},ko.prototype.eachChild=function(N){N(this.input);for(var G=0,fe=this.outputs;G0&&N.push(this.labels[G]),N.push(this.outputs[G].serialize());return N};var mo=Object.freeze({__proto__:null,number:ra,color:function(N,G,fe){return new Fr(ra(N.r,G.r,fe),ra(N.g,G.g,fe),ra(N.b,G.b,fe),ra(N.a,G.a,fe))},array:function(N,G,fe){return N.map(function(Ae,Qe){return ra(Ae,G[Qe],fe)})}}),Aa=.95047,Xl=1,Na=1.08883,us=4/29,wc=6/29,ga=3*wc*wc,Ku=wc*wc*wc,qc=Math.PI/180,Yd=180/Math.PI;function Ql(N){return N>Ku?Math.pow(N,.3333333333333333):N/ga+us}function Ed(N){return N>wc?N*N*N:ga*(N-us)}function Nf(N){return 255*(N<=.0031308?12.92*N:1.055*Math.pow(N,.4166666666666667)-.055)}function mm(N){return(N/=255)<=.04045?N/12.92:Math.pow((N+.055)/1.055,2.4)}function Ws(N){var G=mm(N.r),fe=mm(N.g),Ae=mm(N.b),Qe=Ql((.4124564*G+.3575761*fe+.1804375*Ae)/Aa),et=Ql((.2126729*G+.7151522*fe+.072175*Ae)/Xl);return{l:116*et-16,a:500*(Qe-et),b:200*(et-Ql((.0193339*G+.119192*fe+.9503041*Ae)/Na)),alpha:N.a}}function gm(N){var G=(N.l+16)/116,fe=isNaN(N.a)?G:G+N.a/500,Ae=isNaN(N.b)?G:G-N.b/200;return G=Xl*Ed(G),fe=Aa*Ed(fe),Ae=Na*Ed(Ae),new Fr(Nf(3.2404542*fe-1.5371385*G-.4985314*Ae),Nf(-.969266*fe+1.8760108*G+.041556*Ae),Nf(.0556434*fe-.2040259*G+1.0572252*Ae),N.alpha)}function Gl(N,G,fe){var Ae=G-N;return N+fe*(Ae>180||Ae<-180?Ae-360*Math.round(Ae/360):Ae)}var pc={forward:Ws,reverse:gm,interpolate:function(N,G,fe){return{l:ra(N.l,G.l,fe),a:ra(N.a,G.a,fe),b:ra(N.b,G.b,fe),alpha:ra(N.alpha,G.alpha,fe)}}},Cu={forward:function(N){var G=Ws(N),fe=G.l,Ae=G.a,Qe=G.b,et=Math.atan2(Qe,Ae)*Yd;return{h:et<0?et+360:et,c:Math.sqrt(Ae*Ae+Qe*Qe),l:fe,alpha:N.a}},reverse:function(N){var G=N.h*qc,fe=N.c;return gm({l:N.l,a:Math.cos(G)*fe,b:Math.sin(G)*fe,alpha:N.alpha})},interpolate:function(N,G,fe){return{h:Gl(N.h,G.h,fe),c:ra(N.c,G.c,fe),l:ra(N.l,G.l,fe),alpha:ra(N.alpha,G.alpha,fe)}}},xl=Object.freeze({__proto__:null,lab:pc,hcl:Cu}),la=function(N,G,fe,Ae,Qe){this.type=N,this.operator=G,this.interpolation=fe,this.input=Ae,this.labels=[],this.outputs=[];for(var et=0,ut=Qe;et1}))return G.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Ae={name:"cubic-bezier",controlPoints:Tt}}if(N.length-1<4)return G.error("Expected at least 4 arguments, but found only "+(N.length-1)+".");if((N.length-1)%2!=0)return G.error("Expected an even number of arguments.");if(!(Qe=G.parse(Qe,2,dn)))return null;var Bt=[],rn=null;fe==="interpolate-hcl"||fe==="interpolate-lab"?rn=er:G.expectedType&&G.expectedType.kind!=="value"&&(rn=G.expectedType);for(var an=0;an=_n)return G.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Cn);var lr=G.parse(Dn,Jn,rn);if(!lr)return null;rn=rn||lr.type,Bt.push([_n,lr])}return rn.kind==="number"||rn.kind==="color"||rn.kind==="array"&&rn.itemType.kind==="number"&&typeof rn.N=="number"?new la(rn,fe,Ae,Qe,Bt):G.error("Type "+Fn(rn)+" is not interpolatable.")},la.prototype.evaluate=function(N){var G=this.labels,fe=this.outputs;if(G.length===1)return fe[0].evaluate(N);var Ae=this.input.evaluate(N);if(Ae<=G[0])return fe[0].evaluate(N);var Qe=G.length;if(Ae>=G[Qe-1])return fe[Qe-1].evaluate(N);var et=oi(G,Ae),ut=G[et],Tt=G[et+1],Bt=la.interpolationFactor(this.interpolation,Ae,ut,Tt),rn=fe[et].evaluate(N),an=fe[et+1].evaluate(N);return this.operator==="interpolate"?mo[this.type.kind.toLowerCase()](rn,an,Bt):this.operator==="interpolate-hcl"?Cu.reverse(Cu.interpolate(Cu.forward(rn),Cu.forward(an),Bt)):pc.reverse(pc.interpolate(pc.forward(rn),pc.forward(an),Bt))},la.prototype.eachChild=function(N){N(this.input);for(var G=0,fe=this.outputs;G=fe.length)throw new Yn("Array index out of bounds: "+G+" > "+(fe.length-1)+".");if(G!==Math.floor(G))throw new Yn("Array index must be an integer, but found "+G+" instead.");return fe[G]},iu.prototype.eachChild=function(N){N(this.index),N(this.input)},iu.prototype.outputDefined=function(){return!1},iu.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var mc=function(N,G){this.type=Nn,this.needle=N,this.haystack=G};mc.parse=function(N,G){if(N.length!==3)return G.error("Expected 2 arguments, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1,In),Ae=G.parse(N[2],2,In);return fe&&Ae?Kn(fe.type,[Nn,vn,dn,fn,In])?new mc(fe,Ae):G.error("Expected first argument to be of type boolean, string, number or null, but found "+Fn(fe.type)+" instead"):null},mc.prototype.evaluate=function(N){var G=this.needle.evaluate(N),fe=this.haystack.evaluate(N);if(!fe)return!1;if(!_r(G,["boolean","string","number","null"]))throw new Yn("Expected first argument to be of type boolean, string, number or null, but found "+Fn(go(G))+" instead.");if(!_r(fe,["string","array"]))throw new Yn("Expected second argument to be of type array or string, but found "+Fn(go(fe))+" instead.");return fe.indexOf(G)>=0},mc.prototype.eachChild=function(N){N(this.needle),N(this.haystack)},mc.prototype.outputDefined=function(){return!0},mc.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var ks=function(N,G,fe){this.type=dn,this.needle=N,this.haystack=G,this.fromIndex=fe};ks.parse=function(N,G){if(N.length<=2||N.length>=5)return G.error("Expected 3 or 4 arguments, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1,In),Ae=G.parse(N[2],2,In);if(!fe||!Ae)return null;if(!Kn(fe.type,[Nn,vn,dn,fn,In]))return G.error("Expected first argument to be of type boolean, string, number or null, but found "+Fn(fe.type)+" instead");if(N.length===4){var Qe=G.parse(N[3],3,dn);return Qe?new ks(fe,Ae,Qe):null}return new ks(fe,Ae)},ks.prototype.evaluate=function(N){var G=this.needle.evaluate(N),fe=this.haystack.evaluate(N);if(!_r(G,["boolean","string","number","null"]))throw new Yn("Expected first argument to be of type boolean, string, number or null, but found "+Fn(go(G))+" instead.");if(!_r(fe,["string","array"]))throw new Yn("Expected second argument to be of type array or string, but found "+Fn(go(fe))+" instead.");if(this.fromIndex){var Ae=this.fromIndex.evaluate(N);return fe.indexOf(G,Ae)}return fe.indexOf(G)},ks.prototype.eachChild=function(N){N(this.needle),N(this.haystack),this.fromIndex&&N(this.fromIndex)},ks.prototype.outputDefined=function(){return!1},ks.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var N=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),N]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var $f=function(N,G,fe,Ae,Qe,et){this.inputType=N,this.type=G,this.input=fe,this.cases=Ae,this.outputs=Qe,this.otherwise=et};$f.parse=function(N,G){if(N.length<5)return G.error("Expected at least 4 arguments, but found only "+(N.length-1)+".");if(N.length%2!=1)return G.error("Expected an even number of arguments.");var fe,Ae;G.expectedType&&G.expectedType.kind!=="value"&&(Ae=G.expectedType);for(var Qe={},et=[],ut=2;utNumber.MAX_SAFE_INTEGER)return rn.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Dn=="number"&&Math.floor(Dn)!==Dn)return rn.error("Numeric branch labels must be integer values.");if(fe){if(rn.checkSubtype(fe,go(Dn)))return null}else fe=go(Dn);if(Qe[String(Dn)]!==void 0)return rn.error("Branch labels must be unique.");Qe[String(Dn)]=et.length}var Cn=G.parse(Bt,ut,Ae);if(!Cn)return null;Ae=Ae||Cn.type,et.push(Cn)}var Jn=G.parse(N[1],1,In);if(!Jn)return null;var lr=G.parse(N[N.length-1],N.length-1,Ae);return lr?Jn.type.kind!=="value"&&G.concat(1).checkSubtype(fe,Jn.type)?null:new $f(fe,Ae,Jn,Qe,et,lr):null},$f.prototype.evaluate=function(N){var G=this.input.evaluate(N);return(go(G)===this.inputType&&this.outputs[this.cases[G]]||this.otherwise).evaluate(N)},$f.prototype.eachChild=function(N){N(this.input),this.outputs.forEach(N),N(this.otherwise)},$f.prototype.outputDefined=function(){return this.outputs.every(function(N){return N.outputDefined()})&&this.otherwise.outputDefined()},$f.prototype.serialize=function(){for(var N=this,G=["match",this.input.serialize()],fe=[],Ae={},Qe=0,et=Object.keys(this.cases).sort();Qe=5)return G.error("Expected 3 or 4 arguments, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1,In),Ae=G.parse(N[2],2,dn);if(!fe||!Ae)return null;if(!Kn(fe.type,[ar(In),vn,In]))return G.error("Expected first argument to be of type array or string, but found "+Fn(fe.type)+" instead");if(N.length===4){var Qe=G.parse(N[3],3,dn);return Qe?new Ju(fe.type,fe,Ae,Qe):null}return new Ju(fe.type,fe,Ae)},Ju.prototype.evaluate=function(N){var G=this.input.evaluate(N),fe=this.beginIndex.evaluate(N);if(!_r(G,["string","array"]))throw new Yn("Expected first argument to be of type array or string, but found "+Fn(go(G))+" instead.");if(this.endIndex){var Ae=this.endIndex.evaluate(N);return G.slice(fe,Ae)}return G.slice(fe)},Ju.prototype.eachChild=function(N){N(this.input),N(this.beginIndex),this.endIndex&&N(this.endIndex)},Ju.prototype.outputDefined=function(){return!1},Ju.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var N=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),N]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var uc=ef("==",function(N,G,fe){return G===fe},Es),sd=ef("!=",function(N,G,fe){return G!==fe},function(N,G,fe,Ae){return!Es(0,G,fe,Ae)}),Vf=ef("<",function(N,G,fe){return G",function(N,G,fe){return G>fe},function(N,G,fe,Ae){return Ae.compare(G,fe)>0}),ld=ef("<=",function(N,G,fe){return G<=fe},function(N,G,fe,Ae){return Ae.compare(G,fe)<=0}),Mp=ef(">=",function(N,G,fe){return G>=fe},function(N,G,fe,Ae){return Ae.compare(G,fe)>=0}),Xd=function(N,G,fe,Ae,Qe){this.type=vn,this.number=N,this.locale=G,this.currency=fe,this.minFractionDigits=Ae,this.maxFractionDigits=Qe};Xd.parse=function(N,G){if(N.length!==3)return G.error("Expected two arguments.");var fe=G.parse(N[1],1,dn);if(!fe)return null;var Ae=N[2];if(typeof Ae!="object"||Array.isArray(Ae))return G.error("NumberFormat options argument must be an object.");var Qe=null;if(Ae.locale&&!(Qe=G.parse(Ae.locale,1,vn)))return null;var et=null;if(Ae.currency&&!(et=G.parse(Ae.currency,1,vn)))return null;var ut=null;if(Ae["min-fraction-digits"]&&!(ut=G.parse(Ae["min-fraction-digits"],1,dn)))return null;var Tt=null;return Ae["max-fraction-digits"]&&!(Tt=G.parse(Ae["max-fraction-digits"],1,dn))?null:new Xd(fe,Qe,et,ut,Tt)},Xd.prototype.evaluate=function(N){return new Intl.NumberFormat(this.locale?this.locale.evaluate(N):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(N):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(N):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(N):void 0}).format(this.number.evaluate(N))},Xd.prototype.eachChild=function(N){N(this.number),this.locale&&N(this.locale),this.currency&&N(this.currency),this.minFractionDigits&&N(this.minFractionDigits),this.maxFractionDigits&&N(this.maxFractionDigits)},Xd.prototype.outputDefined=function(){return!1},Xd.prototype.serialize=function(){var N={};return this.locale&&(N.locale=this.locale.serialize()),this.currency&&(N.currency=this.currency.serialize()),this.minFractionDigits&&(N["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(N["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),N]};var bf=function(N){this.type=dn,this.input=N};bf.parse=function(N,G){if(N.length!==2)return G.error("Expected 1 argument, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1);return fe?fe.type.kind!=="array"&&fe.type.kind!=="string"&&fe.type.kind!=="value"?G.error("Expected argument of type string or array, but found "+Fn(fe.type)+" instead."):new bf(fe):null},bf.prototype.evaluate=function(N){var G=this.input.evaluate(N);if(typeof G=="string"||Array.isArray(G))return G.length;throw new Yn("Expected value to be of type string or array, but found "+Fn(go(G))+" instead.")},bf.prototype.eachChild=function(N){N(this.input)},bf.prototype.outputDefined=function(){return!1},bf.prototype.serialize=function(){var N=["length"];return this.eachChild(function(G){N.push(G.serialize())}),N};var mh={"==":uc,"!=":sd,">":gc,"<":Vf,">=":Mp,"<=":ld,array:dr,at:iu,boolean:dr,case:yf,coalesce:pu,collator:hn,format:Cr,image:io,in:mc,"index-of":ks,interpolate:la,"interpolate-hcl":la,"interpolate-lab":la,length:bf,let:ju,literal:Pn,match:$f,number:dr,"number-format":Xd,object:dr,slice:Ju,step:ko,string:dr,"to-boolean":Wr,"to-color":Wr,"to-number":Wr,"to-string":Wr,var:po,within:Eo};function cd(N,G){var fe=G[0],Ae=G[1],Qe=G[2],et=G[3];fe=fe.evaluate(N),Ae=Ae.evaluate(N),Qe=Qe.evaluate(N);var ut=et?et.evaluate(N):1,Tt=so(fe,Ae,Qe,ut);if(Tt)throw new Yn(Tt);return new Fr(fe/255*ut,Ae/255*ut,Qe/255*ut,ut)}function Vh(N,G){return N in G}function xf(N,G){var fe=G[N];return fe===void 0?null:fe}function tf(N){return{type:N}}function Au(N){return{result:"success",value:N}}function _f(N){return{result:"error",value:N}}function ud(N){return N["property-type"]==="data-driven"||N["property-type"]==="cross-faded-data-driven"}function nf(N){return!!N.expression&&N.expression.parameters.indexOf("zoom")>-1}function gh(N){return!!N.expression&&N.expression.interpolated}function rs(N){return N instanceof Number?"number":N instanceof String?"string":N instanceof Boolean?"boolean":Array.isArray(N)?"array":N===null?"null":typeof N}function ep(N){return typeof N=="object"&&N!==null&&!Array.isArray(N)}function Ep(N){return N}function vm(N,G){var fe,Ae,Qe,et=G.type==="color",ut=N.stops&&typeof N.stops[0][0]=="object",Tt=ut||N.property!==void 0,Bt=ut||!Tt,rn=N.type||(gh(G)?"exponential":"interval");if(et&&((N=Yt({},N)).stops&&(N.stops=N.stops.map(function(ni){return[ni[0],Fr.parse(ni[1])]})),N.default?N.default=Fr.parse(N.default):N.default=Fr.parse(G.default)),N.colorSpace&&N.colorSpace!=="rgb"&&!xl[N.colorSpace])throw new Error("Unknown color space: "+N.colorSpace);if(rn==="exponential")fe=Pp;else if(rn==="interval")fe=sr;else if(rn==="categorical"){fe=M0,Ae=Object.create(null);for(var an=0,_n=N.stops;an<_n.length;an+=1){var Dn=_n[an];Ae[Dn[0]]=Dn[1]}Qe=typeof N.stops[0][0]}else{if(rn!=="identity")throw new Error('Unknown function type "'+rn+'"');fe=wf}if(ut){for(var Cn={},Jn=[],lr=0;lr=N.stops[Ae-1][0])return N.stops[Ae-1][1];var Qe=oi(N.stops.map(function(et){return et[0]}),fe);return N.stops[Qe][1]}function Pp(N,G,fe){var Ae=N.base!==void 0?N.base:1;if(rs(fe)!=="number")return Pd(N.default,G.default);var Qe=N.stops.length;if(Qe===1||fe<=N.stops[0][0])return N.stops[0][1];if(fe>=N.stops[Qe-1][0])return N.stops[Qe-1][1];var et=oi(N.stops.map(function(_n){return _n[0]}),fe),ut=function(_n,Dn,Cn,Jn){var lr=Jn-Cn,Ar=_n-Cn;return lr===0?0:Dn===1?Ar/lr:(Math.pow(Dn,Ar)-1)/(Math.pow(Dn,lr)-1)}(fe,Ae,N.stops[et][0],N.stops[et+1][0]),Tt=N.stops[et][1],Bt=N.stops[et+1][1],rn=mo[G.type]||Ep;if(N.colorSpace&&N.colorSpace!=="rgb"){var an=xl[N.colorSpace];rn=function(_n,Dn){return an.reverse(an.interpolate(an.forward(_n),an.forward(Dn),ut))}}return typeof Tt.evaluate=="function"?{evaluate:function(){for(var _n=[],Dn=arguments.length;Dn--;)_n[Dn]=arguments[Dn];var Cn=Tt.evaluate.apply(void 0,_n),Jn=Bt.evaluate.apply(void 0,_n);if(Cn!==void 0&&Jn!==void 0)return rn(Cn,Jn,ut)}}:rn(Tt,Bt,ut)}function wf(N,G,fe){return G.type==="color"?fe=Fr.parse(fe):G.type==="formatted"?fe=Kr.fromString(fe.toString()):G.type==="resolvedImage"?fe=Co.fromString(fe.toString()):rs(fe)===G.type||G.type==="enum"&&G.values[fe]||(fe=void 0),Pd(fe,N.default,G.default)}hr.register(mh,{error:[{kind:"error"},[vn],function(N,G){var fe=G[0];throw new Yn(fe.evaluate(N))}],typeof:[vn,[In],function(N,G){return Fn(go(G[0].evaluate(N)))}],"to-rgba":[ar(dn,4),[er],function(N,G){return G[0].evaluate(N).toArray()}],rgb:[er,[dn,dn,dn],cd],rgba:[er,[dn,dn,dn,dn],cd],has:{type:Nn,overloads:[[[vn],function(N,G){return Vh(G[0].evaluate(N),N.properties())}],[[vn,En],function(N,G){var fe=G[0],Ae=G[1];return Vh(fe.evaluate(N),Ae.evaluate(N))}]]},get:{type:In,overloads:[[[vn],function(N,G){return xf(G[0].evaluate(N),N.properties())}],[[vn,En],function(N,G){var fe=G[0],Ae=G[1];return xf(fe.evaluate(N),Ae.evaluate(N))}]]},"feature-state":[In,[vn],function(N,G){return xf(G[0].evaluate(N),N.featureState||{})}],properties:[En,[],function(N){return N.properties()}],"geometry-type":[vn,[],function(N){return N.geometryType()}],id:[In,[],function(N){return N.id()}],zoom:[dn,[],function(N){return N.globals.zoom}],"heatmap-density":[dn,[],function(N){return N.globals.heatmapDensity||0}],"line-progress":[dn,[],function(N){return N.globals.lineProgress||0}],accumulated:[In,[],function(N){return N.globals.accumulated===void 0?null:N.globals.accumulated}],"+":[dn,tf(dn),function(N,G){for(var fe=0,Ae=0,Qe=G;Ae":[Nn,[vn,In],function(N,G){var fe=G[0],Ae=G[1],Qe=N.properties()[fe.value],et=Ae.value;return typeof Qe==typeof et&&Qe>et}],"filter-id->":[Nn,[In],function(N,G){var fe=G[0],Ae=N.id(),Qe=fe.value;return typeof Ae==typeof Qe&&Ae>Qe}],"filter-<=":[Nn,[vn,In],function(N,G){var fe=G[0],Ae=G[1],Qe=N.properties()[fe.value],et=Ae.value;return typeof Qe==typeof et&&Qe<=et}],"filter-id-<=":[Nn,[In],function(N,G){var fe=G[0],Ae=N.id(),Qe=fe.value;return typeof Ae==typeof Qe&&Ae<=Qe}],"filter->=":[Nn,[vn,In],function(N,G){var fe=G[0],Ae=G[1],Qe=N.properties()[fe.value],et=Ae.value;return typeof Qe==typeof et&&Qe>=et}],"filter-id->=":[Nn,[In],function(N,G){var fe=G[0],Ae=N.id(),Qe=fe.value;return typeof Ae==typeof Qe&&Ae>=Qe}],"filter-has":[Nn,[In],function(N,G){return G[0].value in N.properties()}],"filter-has-id":[Nn,[],function(N){return N.id()!==null&&N.id()!==void 0}],"filter-type-in":[Nn,[ar(vn)],function(N,G){return G[0].value.indexOf(N.geometryType())>=0}],"filter-id-in":[Nn,[ar(In)],function(N,G){return G[0].value.indexOf(N.id())>=0}],"filter-in-small":[Nn,[vn,ar(In)],function(N,G){var fe=G[0];return G[1].value.indexOf(N.properties()[fe.value])>=0}],"filter-in-large":[Nn,[vn,ar(In)],function(N,G){var fe=G[0],Ae=G[1];return function(Qe,et,ut,Tt){for(;ut<=Tt;){var Bt=ut+Tt>>1;if(et[Bt]===Qe)return!0;et[Bt]>Qe?Tt=Bt-1:ut=Bt+1}return!1}(N.properties()[fe.value],Ae.value,0,Ae.value.length-1)}],all:{type:Nn,overloads:[[[Nn,Nn],function(N,G){var fe=G[0],Ae=G[1];return fe.evaluate(N)&&Ae.evaluate(N)}],[tf(Nn),function(N,G){for(var fe=0,Ae=G;fe0&&typeof N[0]=="string"&&N[0]in mh}function Gd(N,G){var fe=new qo(mh,[],G?function(Qe){var et={color:er,string:vn,number:dn,enum:vn,boolean:Nn,formatted:xr,resolvedImage:Sr};return Qe.type==="array"?ar(et[Qe.value]||In,Qe.length):et[Qe.type]}(G):void 0),Ae=fe.parse(N,void 0,void 0,void 0,G&&G.type==="string"?{typeAnnotation:"coerce"}:void 0);return Ae?Au(new Of(Ae,G)):_f(fe.errors)}Of.prototype.evaluateWithoutErrorHandling=function(N,G,fe,Ae,Qe,et){return this._evaluator.globals=N,this._evaluator.feature=G,this._evaluator.featureState=fe,this._evaluator.canonical=Ae,this._evaluator.availableImages=Qe||null,this._evaluator.formattedSection=et,this.expression.evaluate(this._evaluator)},Of.prototype.evaluate=function(N,G,fe,Ae,Qe,et){this._evaluator.globals=N,this._evaluator.feature=G||null,this._evaluator.featureState=fe||null,this._evaluator.canonical=Ae,this._evaluator.availableImages=Qe||null,this._evaluator.formattedSection=et||null;try{var ut=this.expression.evaluate(this._evaluator);if(ut==null||typeof ut=="number"&&ut!=ut)return this._defaultValue;if(this._enumValues&&!(ut in this._enumValues))throw new Yn("Expected value to be one of "+Object.keys(this._enumValues).map(function(Tt){return JSON.stringify(Tt)}).join(", ")+", but found "+JSON.stringify(ut)+" instead.");return ut}catch(Tt){return this._warningHistory[Tt.message]||(this._warningHistory[Tt.message]=!0,typeof console<"u"&&console.warn(Tt.message)),this._defaultValue}};var Fa=function(N,G){this.kind=N,this._styleExpression=G,this.isStateDependent=N!=="constant"&&!co(G.expression)};Fa.prototype.evaluateWithoutErrorHandling=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluateWithoutErrorHandling(N,G,fe,Ae,Qe,et)},Fa.prototype.evaluate=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluate(N,G,fe,Ae,Qe,et)};var Qu=function(N,G,fe,Ae){this.kind=N,this.zoomStops=fe,this._styleExpression=G,this.isStateDependent=N!=="camera"&&!co(G.expression),this.interpolationType=Ae};function rf(N,G){if((N=Gd(N,G)).result==="error")return N;var fe=N.value.expression,Ae=ao(fe);if(!Ae&&!ud(G))return _f([new tn("","data expressions not supported")]);var Qe=Go(fe,["zoom"]);if(!Qe&&!nf(G))return _f([new tn("","zoom expressions not supported")]);var et=ym(fe);if(!et&&!Qe)return _f([new tn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(et instanceof tn)return _f([et]);if(et instanceof la&&!gh(G))return _f([new tn("",'"interpolate" expressions cannot be used with this property')]);if(!et)return Au(new Fa(Ae?"constant":"source",N.value));var ut=et instanceof la?et.interpolation:void 0;return Au(new Qu(Ae?"camera":"composite",N.value,et.labels,ut))}Qu.prototype.evaluateWithoutErrorHandling=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluateWithoutErrorHandling(N,G,fe,Ae,Qe,et)},Qu.prototype.evaluate=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluate(N,G,fe,Ae,Qe,et)},Qu.prototype.interpolationFactor=function(N,G,fe){return this.interpolationType?la.interpolationFactor(this.interpolationType,N,G,fe):0};var Bc=function(N,G){this._parameters=N,this._specification=G,Yt(this,vm(this._parameters,this._specification))};function ym(N){var G=null;if(N instanceof ju)G=ym(N.result);else if(N instanceof pu)for(var fe=0,Ae=N.args;feAe.maximum?[new Zt(G,fe,fe+" is greater than the maximum value "+Ae.maximum)]:[]}function Uh(N){var G,fe,Ae,Qe=N.valueSpec,et=Qt(N.value.type),ut={},Tt=et!=="categorical"&&N.value.property===void 0,Bt=!Tt,rn=rs(N.value.stops)==="array"&&rs(N.value.stops[0])==="array"&&rs(N.value.stops[0][0])==="object",an=Mu({key:N.key,value:N.value,valueSpec:N.styleSpec.function,style:N.style,styleSpec:N.styleSpec,objectElementValidators:{stops:function(Cn){if(et==="identity")return[new Zt(Cn.key,Cn.value,'identity function may not have a "stops" property')];var Jn=[],lr=Cn.value;return Jn=Jn.concat(Hu({key:Cn.key,value:lr,valueSpec:Cn.valueSpec,style:Cn.style,styleSpec:Cn.styleSpec,arrayElementValidator:_n})),rs(lr)==="array"&&lr.length===0&&Jn.push(new Zt(Cn.key,lr,"array must have at least one stop")),Jn},default:function(Cn){return ms({key:Cn.key,value:Cn.value,valueSpec:Qe,style:Cn.style,styleSpec:Cn.styleSpec})}}});return et==="identity"&&Tt&&an.push(new Zt(N.key,N.value,'missing required property "property"')),et==="identity"||N.value.stops||an.push(new Zt(N.key,N.value,'missing required property "stops"')),et==="exponential"&&N.valueSpec.expression&&!gh(N.valueSpec)&&an.push(new Zt(N.key,N.value,"exponential functions not supported")),N.styleSpec.$version>=8&&(Bt&&!ud(N.valueSpec)?an.push(new Zt(N.key,N.value,"property functions not supported")):Tt&&!nf(N.valueSpec)&&an.push(new Zt(N.key,N.value,"zoom functions not supported"))),et!=="categorical"&&!rn||N.value.property!==void 0||an.push(new Zt(N.key,N.value,'"property" property is required')),an;function _n(Cn){var Jn=[],lr=Cn.value,Ar=Cn.key;if(rs(lr)!=="array")return[new Zt(Ar,lr,"array expected, "+rs(lr)+" found")];if(lr.length!==2)return[new Zt(Ar,lr,"array length 2 expected, length "+lr.length+" found")];if(rn){if(rs(lr[0])!=="object")return[new Zt(Ar,lr,"object expected, "+rs(lr[0])+" found")];if(lr[0].zoom===void 0)return[new Zt(Ar,lr,"object stop key must have zoom")];if(lr[0].value===void 0)return[new Zt(Ar,lr,"object stop key must have value")];if(Ae&&Ae>Qt(lr[0].zoom))return[new Zt(Ar,lr[0].zoom,"stop zoom values must appear in ascending order")];Qt(lr[0].zoom)!==Ae&&(Ae=Qt(lr[0].zoom),fe=void 0,ut={}),Jn=Jn.concat(Mu({key:Ar+"[0]",value:lr[0],valueSpec:{zoom:{}},style:Cn.style,styleSpec:Cn.styleSpec,objectElementValidators:{zoom:Lp,value:Dn}}))}else Jn=Jn.concat(Dn({key:Ar+"[0]",value:lr[0],valueSpec:{},style:Cn.style,styleSpec:Cn.styleSpec},lr));return Rp(Pt(lr[1]))?Jn.concat([new Zt(Ar+"[1]",lr[1],"expressions are not allowed in function stops.")]):Jn.concat(ms({key:Ar+"[1]",value:lr[1],valueSpec:Qe,style:Cn.style,styleSpec:Cn.styleSpec}))}function Dn(Cn,Jn){var lr=rs(Cn.value),Ar=Qt(Cn.value),Or=Cn.value!==null?Cn.value:Jn;if(G){if(lr!==G)return[new Zt(Cn.key,Or,lr+" stop domain type must match previous stop domain type "+G)]}else G=lr;if(lr!=="number"&&lr!=="string"&&lr!=="boolean")return[new Zt(Cn.key,Or,"stop domain value must be a number, string, or boolean")];if(lr!=="number"&&et!=="categorical"){var jr="number expected, "+lr+" found";return ud(Qe)&&et===void 0&&(jr+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Zt(Cn.key,Or,jr)]}return et!=="categorical"||lr!=="number"||isFinite(Ar)&&Math.floor(Ar)===Ar?et!=="categorical"&&lr==="number"&&fe!==void 0&&Ar=2&&N[1]!=="$id"&&N[1]!=="$type";case"in":return N.length>=3&&(typeof N[1]!="string"||Array.isArray(N[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return N.length!==3||Array.isArray(N[1])||Array.isArray(N[2]);case"any":case"all":for(var G=0,fe=N.slice(1);GG?1:0}function Ts(N){if(!Array.isArray(N))return!1;if(N[0]==="within")return!0;for(var G=1;G"||fe==="<="||fe===">="?zl(N[1],N[2],fe):fe==="any"?(G=N.slice(1),["any"].concat(G.map(Uf))):fe==="all"?["all"].concat(N.slice(1).map(Uf)):fe==="none"?["all"].concat(N.slice(1).map(Uf).map($s)):fe==="in"?Hl(N[1],N.slice(2)):fe==="!in"?$s(Hl(N[1],N.slice(2))):fe==="has"?Cs(N[1]):fe==="!has"?$s(Cs(N[1])):fe!=="within"||N}function zl(N,G,fe){switch(N){case"$type":return["filter-type-"+fe,G];case"$id":return["filter-id-"+fe,G];default:return["filter-"+fe,N,G]}}function Hl(N,G){if(G.length===0)return!1;switch(N){case"$type":return["filter-type-in",["literal",G]];case"$id":return["filter-id-in",["literal",G]];default:return G.length>200&&!G.some(function(fe){return typeof fe!=typeof G[0]})?["filter-in-large",N,["literal",G.sort(Oc)]]:["filter-in-small",N,["literal",G]]}}function Cs(N){switch(N){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",N]}}function $s(N){return["!",N]}function Zu(N){return fd(Pt(N.value))?jh(Yt({},N,{expressionContext:"filter",valueSpec:{value:"boolean"}})):yh(N)}function yh(N){var G=N.value,fe=N.key;if(rs(G)!=="array")return[new Zt(fe,G,"array expected, "+rs(G)+" found")];var Ae,Qe=N.styleSpec,et=[];if(G.length<1)return[new Zt(fe,G,"filter array must have at least 1 element")];switch(et=et.concat(Eu({key:fe+"[0]",value:G[0],valueSpec:Qe.filter_operator,style:N.style,styleSpec:N.styleSpec})),Qt(G[0])){case"<":case"<=":case">":case">=":G.length>=2&&Qt(G[1])==="$type"&&et.push(new Zt(fe,G,'"$type" cannot be use with operator "'+G[0]+'"'));case"==":case"!=":G.length!==3&&et.push(new Zt(fe,G,'filter array for operator "'+G[0]+'" must have 3 elements'));case"in":case"!in":G.length>=2&&(Ae=rs(G[1]))!=="string"&&et.push(new Zt(fe+"[1]",G[1],"string expected, "+Ae+" found"));for(var ut=2;ut=an[Cn+0]&&Ae>=an[Cn+1])?(ut[Dn]=!0,et.push(rn[Dn])):ut[Dn]=!1}}},Sf.prototype._forEachCell=function(N,G,fe,Ae,Qe,et,ut,Tt){for(var Bt=this._convertToCellCoord(N),rn=this._convertToCellCoord(G),an=this._convertToCellCoord(fe),_n=this._convertToCellCoord(Ae),Dn=Bt;Dn<=an;Dn++)for(var Cn=rn;Cn<=_n;Cn++){var Jn=this.d*Cn+Dn;if((!Tt||Tt(this._convertFromCellCoord(Dn),this._convertFromCellCoord(Cn),this._convertFromCellCoord(Dn+1),this._convertFromCellCoord(Cn+1)))&&Qe.call(this,N,G,fe,Ae,Jn,et,ut,Tt))return}},Sf.prototype._convertFromCellCoord=function(N){return(N-this.padding)/this.scale},Sf.prototype._convertToCellCoord=function(N){return Math.max(0,Math.min(this.d-1,Math.floor(N*this.scale)+this.padding))},Sf.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var N=this.cells,G=af+this.cells.length+1+1,fe=0,Ae=0;Ae=0)){var _n=N[an];rn[an]=Hi[Bt].shallow.indexOf(an)>=0?_n:Yc(_n,G)}N instanceof Error&&(rn.message=N.message)}if(rn.$name)throw new Error("$name property is reserved for worker serialization logic.");return Bt!=="Object"&&(rn.$name=Bt),rn}throw new Error("can't serialize object of type "+typeof N)}function Kl(N){if(N==null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||N instanceof Boolean||N instanceof Number||N instanceof String||N instanceof Date||N instanceof RegExp||Ru(N)||vc(N)||ArrayBuffer.isView(N)||N instanceof sf)return N;if(Array.isArray(N))return N.map(Kl);if(typeof N=="object"){var G=N.$name||"Object",fe=Hi[G].klass;if(!fe)throw new Error("can't deserialize unregistered class "+G);if(fe.deserialize)return fe.deserialize(N);for(var Ae=Object.create(fe.prototype),Qe=0,et=Object.keys(N);Qe=0?Tt:Kl(Tt)}}return Ae}throw new Error("can't deserialize object of type "+typeof N)}var Fc=function(){this.first=!0};Fc.prototype.update=function(N,G){var fe=Math.floor(N);return this.first?(this.first=!1,this.lastIntegerZoom=fe,this.lastIntegerZoomTime=0,this.lastZoom=N,this.lastFloorZoom=fe,!0):(this.lastFloorZoom>fe?(this.lastIntegerZoom=fe+1,this.lastIntegerZoomTime=G):this.lastFloorZoom=128&&N<=255},Arabic:function(N){return N>=1536&&N<=1791},"Arabic Supplement":function(N){return N>=1872&&N<=1919},"Arabic Extended-A":function(N){return N>=2208&&N<=2303},"Hangul Jamo":function(N){return N>=4352&&N<=4607},"Unified Canadian Aboriginal Syllabics":function(N){return N>=5120&&N<=5759},Khmer:function(N){return N>=6016&&N<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(N){return N>=6320&&N<=6399},"General Punctuation":function(N){return N>=8192&&N<=8303},"Letterlike Symbols":function(N){return N>=8448&&N<=8527},"Number Forms":function(N){return N>=8528&&N<=8591},"Miscellaneous Technical":function(N){return N>=8960&&N<=9215},"Control Pictures":function(N){return N>=9216&&N<=9279},"Optical Character Recognition":function(N){return N>=9280&&N<=9311},"Enclosed Alphanumerics":function(N){return N>=9312&&N<=9471},"Geometric Shapes":function(N){return N>=9632&&N<=9727},"Miscellaneous Symbols":function(N){return N>=9728&&N<=9983},"Miscellaneous Symbols and Arrows":function(N){return N>=11008&&N<=11263},"CJK Radicals Supplement":function(N){return N>=11904&&N<=12031},"Kangxi Radicals":function(N){return N>=12032&&N<=12255},"Ideographic Description Characters":function(N){return N>=12272&&N<=12287},"CJK Symbols and Punctuation":function(N){return N>=12288&&N<=12351},Hiragana:function(N){return N>=12352&&N<=12447},Katakana:function(N){return N>=12448&&N<=12543},Bopomofo:function(N){return N>=12544&&N<=12591},"Hangul Compatibility Jamo":function(N){return N>=12592&&N<=12687},Kanbun:function(N){return N>=12688&&N<=12703},"Bopomofo Extended":function(N){return N>=12704&&N<=12735},"CJK Strokes":function(N){return N>=12736&&N<=12783},"Katakana Phonetic Extensions":function(N){return N>=12784&&N<=12799},"Enclosed CJK Letters and Months":function(N){return N>=12800&&N<=13055},"CJK Compatibility":function(N){return N>=13056&&N<=13311},"CJK Unified Ideographs Extension A":function(N){return N>=13312&&N<=19903},"Yijing Hexagram Symbols":function(N){return N>=19904&&N<=19967},"CJK Unified Ideographs":function(N){return N>=19968&&N<=40959},"Yi Syllables":function(N){return N>=40960&&N<=42127},"Yi Radicals":function(N){return N>=42128&&N<=42191},"Hangul Jamo Extended-A":function(N){return N>=43360&&N<=43391},"Hangul Syllables":function(N){return N>=44032&&N<=55215},"Hangul Jamo Extended-B":function(N){return N>=55216&&N<=55295},"Private Use Area":function(N){return N>=57344&&N<=63743},"CJK Compatibility Ideographs":function(N){return N>=63744&&N<=64255},"Arabic Presentation Forms-A":function(N){return N>=64336&&N<=65023},"Vertical Forms":function(N){return N>=65040&&N<=65055},"CJK Compatibility Forms":function(N){return N>=65072&&N<=65103},"Small Form Variants":function(N){return N>=65104&&N<=65135},"Arabic Presentation Forms-B":function(N){return N>=65136&&N<=65279},"Halfwidth and Fullwidth Forms":function(N){return N>=65280&&N<=65519}};function Hh(N){for(var G=0,fe=N;G=65097&&N<=65103)||si["CJK Compatibility Ideographs"](N)||si["CJK Compatibility"](N)||si["CJK Radicals Supplement"](N)||si["CJK Strokes"](N)||!(!si["CJK Symbols and Punctuation"](N)||N>=12296&&N<=12305||N>=12308&&N<=12319||N===12336)||si["CJK Unified Ideographs Extension A"](N)||si["CJK Unified Ideographs"](N)||si["Enclosed CJK Letters and Months"](N)||si["Hangul Compatibility Jamo"](N)||si["Hangul Jamo Extended-A"](N)||si["Hangul Jamo Extended-B"](N)||si["Hangul Jamo"](N)||si["Hangul Syllables"](N)||si.Hiragana(N)||si["Ideographic Description Characters"](N)||si.Kanbun(N)||si["Kangxi Radicals"](N)||si["Katakana Phonetic Extensions"](N)||si.Katakana(N)&&N!==12540||!(!si["Halfwidth and Fullwidth Forms"](N)||N===65288||N===65289||N===65293||N>=65306&&N<=65310||N===65339||N===65341||N===65343||N>=65371&&N<=65503||N===65507||N>=65512&&N<=65519)||!(!si["Small Form Variants"](N)||N>=65112&&N<=65118||N>=65123&&N<=65126)||si["Unified Canadian Aboriginal Syllabics"](N)||si["Unified Canadian Aboriginal Syllabics Extended"](N)||si["Vertical Forms"](N)||si["Yijing Hexagram Symbols"](N)||si["Yi Syllables"](N)||si["Yi Radicals"](N))))}function Sc(N){return!(Ps(N)||function(G){return!!(si["Latin-1 Supplement"](G)&&(G===167||G===169||G===174||G===177||G===188||G===189||G===190||G===215||G===247)||si["General Punctuation"](G)&&(G===8214||G===8224||G===8225||G===8240||G===8241||G===8251||G===8252||G===8258||G===8263||G===8264||G===8265||G===8273)||si["Letterlike Symbols"](G)||si["Number Forms"](G)||si["Miscellaneous Technical"](G)&&(G>=8960&&G<=8967||G>=8972&&G<=8991||G>=8996&&G<=9e3||G===9003||G>=9085&&G<=9114||G>=9150&&G<=9165||G===9167||G>=9169&&G<=9179||G>=9186&&G<=9215)||si["Control Pictures"](G)&&G!==9251||si["Optical Character Recognition"](G)||si["Enclosed Alphanumerics"](G)||si["Geometric Shapes"](G)||si["Miscellaneous Symbols"](G)&&!(G>=9754&&G<=9759)||si["Miscellaneous Symbols and Arrows"](G)&&(G>=11026&&G<=11055||G>=11088&&G<=11097||G>=11192&&G<=11243)||si["CJK Symbols and Punctuation"](G)||si.Katakana(G)||si["Private Use Area"](G)||si["CJK Compatibility Forms"](G)||si["Small Form Variants"](G)||si["Halfwidth and Fullwidth Forms"](G)||G===8734||G===8756||G===8757||G>=9984&&G<=10087||G>=10102&&G<=10131||G===65532||G===65533)}(N))}function tl(N){return si.Arabic(N)||si["Arabic Supplement"](N)||si["Arabic Extended-A"](N)||si["Arabic Presentation Forms-A"](N)||si["Arabic Presentation Forms-B"](N)}function gu(N){return N>=1424&&N<=2303||si["Arabic Presentation Forms-A"](N)||si["Arabic Presentation Forms-B"](N)}function vu(N,G){return!(!G&&gu(N)||N>=2304&&N<=3583||N>=3840&&N<=4255||si.Khmer(N))}function ja(N){for(var G=0,fe=N;G-1&&(Ka=nl),Id&&Id(N)};function jf(){bu.fire(new it("pluginStateChange",{pluginStatus:Ka,pluginURL:Xi}))}var bu=new Lt,Dp=function(){return Ka},rp=function(){if(Ka!==yu||!Xi)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ka=Rd,jf(),Xi&&bn({url:Xi},function(N){N?Xc(N):(Ka=Ld,jf())})},Lu={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ka===Ld||Lu.applyArabicShaping!=null},isLoading:function(){return Ka===Rd},setState:function(N){Ka=N.pluginStatus,Xi=N.pluginURL},isParsed:function(){return Lu.applyArabicShaping!=null&&Lu.processBidirectionalText!=null&&Lu.processStyledBidirectionalText!=null},getPluginURL:function(){return Xi}},fs=function(N,G){this.zoom=N,G?(this.now=G.now,this.fadeDuration=G.fadeDuration,this.zoomHistory=G.zoomHistory,this.transition=G.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Fc,this.transition={})};fs.prototype.isSupportedScript=function(N){return function(G,fe){for(var Ae=0,Qe=G;Aethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:G+(1-G)*fe}:{fromScale:.5,toScale:1,t:1-(1-fe)*G}};var Qf=function(N,G){this.property=N,this.value=G,this.expression=function(fe,Ae){if(ep(fe))return new Bc(fe,Ae);if(Rp(fe)){var Qe=rf(fe,Ae);if(Qe.result==="error")throw new Error(Qe.value.map(function(ut){return ut.key+": "+ut.message}).join(", "));return Qe.value}var et=fe;return typeof fe=="string"&&Ae.type==="color"&&(et=Fr.parse(fe)),{kind:"constant",evaluate:function(){return et}}}(G===void 0?N.specification.default:G,N.specification)};Qf.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Qf.prototype.possiblyEvaluate=function(N,G,fe){return this.property.possiblyEvaluate(this,N,G,fe)};var dd=function(N){this.property=N,this.value=new Qf(N,void 0)};dd.prototype.transitioned=function(N,G){return new _h(this.property,this.value,G,x({},N.transition,this.transition),N.now)},dd.prototype.untransitioned=function(){return new _h(this.property,this.value,null,{},0)};var Hf=function(N){this._properties=N,this._values=Object.create(N.defaultTransitionablePropertyValues)};Hf.prototype.getValue=function(N){return I(this._values[N].value.value)},Hf.prototype.setValue=function(N,G){this._values.hasOwnProperty(N)||(this._values[N]=new dd(this._values[N].property)),this._values[N].value=new Qf(this._values[N].property,G===null?void 0:I(G))},Hf.prototype.getTransition=function(N){return I(this._values[N].transition)},Hf.prototype.setTransition=function(N,G){this._values.hasOwnProperty(N)||(this._values[N]=new dd(this._values[N].property)),this._values[N].transition=I(G)||void 0},Hf.prototype.serialize=function(){for(var N={},G=0,fe=Object.keys(this._values);Gthis.end)return this.prior=null,Qe;if(this.value.isDataDriven())return this.prior=null,Qe;if(Ae=1)return 1;var Bt=Tt*Tt,rn=Bt*Tt;return 4*(Tt<.5?rn:3*(Tt-Bt)+rn-.75)}(ut))}return Qe};var Gc=function(N){this._properties=N,this._values=Object.create(N.defaultTransitioningPropertyValues)};Gc.prototype.possiblyEvaluate=function(N,G,fe){for(var Ae=new Dd(this._properties),Qe=0,et=Object.keys(this._values);Qeet.zoomHistory.lastIntegerZoom?{from:fe,to:Ae}:{from:Qe,to:Ae}},G.prototype.interpolate=function(fe){return fe},G}(fa),Zf=function(N){this.specification=N};Zf.prototype.possiblyEvaluate=function(N,G,fe,Ae){if(N.value!==void 0){if(N.expression.kind==="constant"){var Qe=N.expression.evaluate(G,null,{},fe,Ae);return this._calculate(Qe,Qe,Qe,G)}return this._calculate(N.expression.evaluate(new fs(Math.floor(G.zoom-1),G)),N.expression.evaluate(new fs(Math.floor(G.zoom),G)),N.expression.evaluate(new fs(Math.floor(G.zoom+1),G)),G)}},Zf.prototype._calculate=function(N,G,fe,Ae){return Ae.zoom>Ae.zoomHistory.lastIntegerZoom?{from:N,to:G}:{from:fe,to:G}},Zf.prototype.interpolate=function(N){return N};var Zl=function(N){this.specification=N};Zl.prototype.possiblyEvaluate=function(N,G,fe,Ae){return!!N.expression.evaluate(G,null,{},fe,Ae)},Zl.prototype.interpolate=function(){return!1};var Jl=function(N){for(var G in this.properties=N,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],N){var fe=N[G];fe.specification.overridable&&this.overridableProperties.push(G);var Ae=this.defaultPropertyValues[G]=new Qf(fe,void 0),Qe=this.defaultTransitionablePropertyValues[G]=new dd(fe);this.defaultTransitioningPropertyValues[G]=Qe.untransitioned(),this.defaultPossiblyEvaluatedValues[G]=Ae.possiblyEvaluate({})}};pi("DataDrivenProperty",fa),pi("DataConstantProperty",Vi),pi("CrossFadedDataDrivenProperty",au),pi("CrossFadedProperty",Zf),pi("ColorRampProperty",Zl);var Bd="-transition",Qs=function(N){function G(fe,Ae){if(N.call(this),this.id=fe.id,this.type=fe.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},fe.type!=="custom"&&(this.metadata=fe.metadata,this.minzoom=fe.minzoom,this.maxzoom=fe.maxzoom,fe.type!=="background"&&(this.source=fe.source,this.sourceLayer=fe["source-layer"],this.filter=fe.filter),Ae.layout&&(this._unevaluatedLayout=new hd(Ae.layout)),Ae.paint)){for(var Qe in this._transitionablePaint=new Hf(Ae.paint),fe.paint)this.setPaintProperty(Qe,fe.paint[Qe],{validate:!1});for(var et in fe.layout)this.setLayoutProperty(et,fe.layout[et],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Dd(Ae.paint)}}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},G.prototype.getLayoutProperty=function(fe){return fe==="visibility"?this.visibility:this._unevaluatedLayout.getValue(fe)},G.prototype.setLayoutProperty=function(fe,Ae,Qe){if(Qe===void 0&&(Qe={}),Ae!=null){var et="layers."+this.id+".layout."+fe;if(this._validate(xh,et,fe,Ae,Qe))return}fe!=="visibility"?this._unevaluatedLayout.setValue(fe,Ae):this.visibility=Ae},G.prototype.getPaintProperty=function(fe){return L(fe,Bd)?this._transitionablePaint.getTransition(fe.slice(0,-11)):this._transitionablePaint.getValue(fe)},G.prototype.setPaintProperty=function(fe,Ae,Qe){if(Qe===void 0&&(Qe={}),Ae!=null){var et="layers."+this.id+".paint."+fe;if(this._validate(mu,et,fe,Ae,Qe))return!1}if(L(fe,Bd))return this._transitionablePaint.setTransition(fe.slice(0,-11),Ae||void 0),!1;var ut=this._transitionablePaint._values[fe],Tt=ut.property.specification["property-type"]==="cross-faded-data-driven",Bt=ut.value.isDataDriven(),rn=ut.value;this._transitionablePaint.setValue(fe,Ae),this._handleSpecialPaintPropertyUpdate(fe);var an=this._transitionablePaint._values[fe].value;return an.isDataDriven()||Bt||Tt||this._handleOverridablePaintPropertyUpdate(fe,rn,an)},G.prototype._handleSpecialPaintPropertyUpdate=function(fe){},G.prototype._handleOverridablePaintPropertyUpdate=function(fe,Ae,Qe){return!1},G.prototype.isHidden=function(fe){return!!(this.minzoom&&fe=this.maxzoom)||this.visibility==="none"},G.prototype.updateTransitions=function(fe){this._transitioningPaint=this._transitionablePaint.transitioned(fe,this._transitioningPaint)},G.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},G.prototype.recalculate=function(fe,Ae){fe.getCrossfadeParameters&&(this._crossfadeParameters=fe.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(fe,void 0,Ae)),this.paint=this._transitioningPaint.possiblyEvaluate(fe,void 0,Ae)},G.prototype.serialize=function(){var fe={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(fe.layout=fe.layout||{},fe.layout.visibility=this.visibility),k(fe,function(Ae,Qe){return!(Ae===void 0||Qe==="layout"&&!Object.keys(Ae).length||Qe==="paint"&&!Object.keys(Ae).length)})},G.prototype._validate=function(fe,Ae,Qe,et,ut){return ut===void 0&&(ut={}),(!ut||ut.validate!==!1)&&js(this,fe.call(wl,{key:Ae,layerType:this.type,objectKey:Qe,value:et,styleSpec:xt,style:{glyphs:!0,sprite:!0}}))},G.prototype.is3D=function(){return!1},G.prototype.isTileClipped=function(){return!1},G.prototype.hasOffscreenPass=function(){return!1},G.prototype.resize=function(){},G.prototype.isStateDependent=function(){for(var fe in this.paint._values){var Ae=this.paint.get(fe);if(Ae instanceof rl&&ud(Ae.property.specification)&&(Ae.value.kind==="source"||Ae.value.kind==="composite")&&Ae.value.isStateDependent)return!0}return!1},G}(Lt),kc={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Iu=function(N,G){this._structArray=N,this._pos1=G*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ea=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function El(N,G){G===void 0&&(G=1);var fe=0,Ae=0;return{members:N.map(function(Qe){var et,ut=(et=Qe.type,kc[et].BYTES_PER_ELEMENT),Tt=fe=Ol(fe,Math.max(G,ut)),Bt=Qe.components||1;return Ae=Math.max(Ae,ut),fe+=ut*Bt,{name:Qe.name,type:Qe.type,components:Bt,offset:Tt}}),size:Ol(fe,Math.max(Ae,G)),alignment:G}}function Ol(N,G){return Math.ceil(N/G)*G}Ea.serialize=function(N,G){return N._trim(),G&&(N.isTransferred=!0,G.push(N.arrayBuffer)),{length:N.length,arrayBuffer:N.arrayBuffer}},Ea.deserialize=function(N){var G=Object.create(this.prototype);return G.arrayBuffer=N.arrayBuffer,G.length=N.length,G.capacity=N.arrayBuffer.byteLength/G.bytesPerElement,G._refreshViews(),G},Ea.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ea.prototype.clear=function(){this.length=0},Ea.prototype.resize=function(N){this.reserve(N),this.length=N},Ea.prototype.reserve=function(N){if(N>this.capacity){this.capacity=Math.max(N,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var G=this.uint8;this._refreshViews(),G&&this.uint8.set(G)}},Ea.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Mi=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,fe,Ae)},G.prototype.emplace=function(fe,Ae,Qe){var et=2*fe;return this.int16[et+0]=Ae,this.int16[et+1]=Qe,fe},G}(Ea);Mi.prototype.bytesPerElement=4,pi("StructArrayLayout2i4",Mi);var kf=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et){var ut=this.length;return this.resize(ut+1),this.emplace(ut,fe,Ae,Qe,et)},G.prototype.emplace=function(fe,Ae,Qe,et,ut){var Tt=4*fe;return this.int16[Tt+0]=Ae,this.int16[Tt+1]=Qe,this.int16[Tt+2]=et,this.int16[Tt+3]=ut,fe},G}(Ea);kf.prototype.bytesPerElement=8,pi("StructArrayLayout4i8",kf);var Ot=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,fe,Ae,Qe,et,ut,Tt)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=6*fe;return this.int16[rn+0]=Ae,this.int16[rn+1]=Qe,this.int16[rn+2]=et,this.int16[rn+3]=ut,this.int16[rn+4]=Tt,this.int16[rn+5]=Bt,fe},G}(Ea);Ot.prototype.bytesPerElement=12,pi("StructArrayLayout2i4i12",Ot);var Mt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,fe,Ae,Qe,et,ut,Tt)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=4*fe,an=8*fe;return this.int16[rn+0]=Ae,this.int16[rn+1]=Qe,this.uint8[an+4]=et,this.uint8[an+5]=ut,this.uint8[an+6]=Tt,this.uint8[an+7]=Bt,fe},G}(Ea);Mt.prototype.bytesPerElement=8,pi("StructArrayLayout2i4ub8",Mt);var Ft=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,fe,Ae)},G.prototype.emplace=function(fe,Ae,Qe){var et=2*fe;return this.float32[et+0]=Ae,this.float32[et+1]=Qe,fe},G}(Ea);Ft.prototype.bytesPerElement=8,pi("StructArrayLayout2f8",Ft);var J=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n){var Dn=this.length;return this.resize(Dn+1),this.emplace(Dn,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn){var Cn=10*fe;return this.uint16[Cn+0]=Ae,this.uint16[Cn+1]=Qe,this.uint16[Cn+2]=et,this.uint16[Cn+3]=ut,this.uint16[Cn+4]=Tt,this.uint16[Cn+5]=Bt,this.uint16[Cn+6]=rn,this.uint16[Cn+7]=an,this.uint16[Cn+8]=_n,this.uint16[Cn+9]=Dn,fe},G}(Ea);J.prototype.bytesPerElement=20,pi("StructArrayLayout10ui20",J);var le=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn){var Jn=this.length;return this.resize(Jn+1),this.emplace(Jn,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn){var lr=12*fe;return this.int16[lr+0]=Ae,this.int16[lr+1]=Qe,this.int16[lr+2]=et,this.int16[lr+3]=ut,this.uint16[lr+4]=Tt,this.uint16[lr+5]=Bt,this.uint16[lr+6]=rn,this.uint16[lr+7]=an,this.int16[lr+8]=_n,this.int16[lr+9]=Dn,this.int16[lr+10]=Cn,this.int16[lr+11]=Jn,fe},G}(Ea);le.prototype.bytesPerElement=24,pi("StructArrayLayout4i4ui4i24",le);var ie=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=3*fe;return this.float32[ut+0]=Ae,this.float32[ut+1]=Qe,this.float32[ut+2]=et,fe},G}(Ea);ie.prototype.bytesPerElement=12,pi("StructArrayLayout3f12",ie);var V=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,fe)},G.prototype.emplace=function(fe,Ae){var Qe=1*fe;return this.uint32[Qe+0]=Ae,fe},G}(Ea);V.prototype.bytesPerElement=4,pi("StructArrayLayout1ul4",V);var ne=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an){var _n=this.length;return this.resize(_n+1),this.emplace(_n,fe,Ae,Qe,et,ut,Tt,Bt,rn,an)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n){var Dn=10*fe,Cn=5*fe;return this.int16[Dn+0]=Ae,this.int16[Dn+1]=Qe,this.int16[Dn+2]=et,this.int16[Dn+3]=ut,this.int16[Dn+4]=Tt,this.int16[Dn+5]=Bt,this.uint32[Cn+3]=rn,this.uint16[Dn+8]=an,this.uint16[Dn+9]=_n,fe},G}(Ea);ne.prototype.bytesPerElement=20,pi("StructArrayLayout6i1ul2ui20",ne);var ge=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,fe,Ae,Qe,et,ut,Tt)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=6*fe;return this.int16[rn+0]=Ae,this.int16[rn+1]=Qe,this.int16[rn+2]=et,this.int16[rn+3]=ut,this.int16[rn+4]=Tt,this.int16[rn+5]=Bt,fe},G}(Ea);ge.prototype.bytesPerElement=12,pi("StructArrayLayout2i2i2i12",ge);var xe=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut){var Tt=this.length;return this.resize(Tt+1),this.emplace(Tt,fe,Ae,Qe,et,ut)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt){var Bt=4*fe,rn=8*fe;return this.float32[Bt+0]=Ae,this.float32[Bt+1]=Qe,this.float32[Bt+2]=et,this.int16[rn+6]=ut,this.int16[rn+7]=Tt,fe},G}(Ea);xe.prototype.bytesPerElement=16,pi("StructArrayLayout2f1f2i16",xe);var Me=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et){var ut=this.length;return this.resize(ut+1),this.emplace(ut,fe,Ae,Qe,et)},G.prototype.emplace=function(fe,Ae,Qe,et,ut){var Tt=12*fe,Bt=3*fe;return this.uint8[Tt+0]=Ae,this.uint8[Tt+1]=Qe,this.float32[Bt+1]=et,this.float32[Bt+2]=ut,fe},G}(Ea);Me.prototype.bytesPerElement=12,pi("StructArrayLayout2ub2f12",Me);var Fe=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=3*fe;return this.uint16[ut+0]=Ae,this.uint16[ut+1]=Qe,this.uint16[ut+2]=et,fe},G}(Ea);Fe.prototype.bytesPerElement=6,pi("StructArrayLayout3ui6",Fe);var Je=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr){var Jr=this.length;return this.resize(Jr+1),this.emplace(Jr,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr){var uo=24*fe,ro=12*fe,Po=48*fe;return this.int16[uo+0]=Ae,this.int16[uo+1]=Qe,this.uint16[uo+2]=et,this.uint16[uo+3]=ut,this.uint32[ro+2]=Tt,this.uint32[ro+3]=Bt,this.uint32[ro+4]=rn,this.uint16[uo+10]=an,this.uint16[uo+11]=_n,this.uint16[uo+12]=Dn,this.float32[ro+7]=Cn,this.float32[ro+8]=Jn,this.uint8[Po+36]=lr,this.uint8[Po+37]=Ar,this.uint8[Po+38]=Or,this.uint32[ro+10]=jr,this.int16[uo+22]=Jr,fe},G}(Ea);Je.prototype.bytesPerElement=48,pi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Je);var rt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr,uo,ro,Po,gi,ni,Ti,vi,na,ea,La){var ca=this.length;return this.resize(ca+1),this.emplace(ca,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr,uo,ro,Po,gi,ni,Ti,vi,na,ea,La)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr,uo,ro,Po,gi,ni,Ti,vi,na,ea,La,ca){var Zi=34*fe,Bs=17*fe;return this.int16[Zi+0]=Ae,this.int16[Zi+1]=Qe,this.int16[Zi+2]=et,this.int16[Zi+3]=ut,this.int16[Zi+4]=Tt,this.int16[Zi+5]=Bt,this.int16[Zi+6]=rn,this.int16[Zi+7]=an,this.uint16[Zi+8]=_n,this.uint16[Zi+9]=Dn,this.uint16[Zi+10]=Cn,this.uint16[Zi+11]=Jn,this.uint16[Zi+12]=lr,this.uint16[Zi+13]=Ar,this.uint16[Zi+14]=Or,this.uint16[Zi+15]=jr,this.uint16[Zi+16]=Jr,this.uint16[Zi+17]=uo,this.uint16[Zi+18]=ro,this.uint16[Zi+19]=Po,this.uint16[Zi+20]=gi,this.uint16[Zi+21]=ni,this.uint16[Zi+22]=Ti,this.uint32[Bs+12]=vi,this.float32[Bs+13]=na,this.float32[Bs+14]=ea,this.float32[Bs+15]=La,this.float32[Bs+16]=ca,fe},G}(Ea);rt.prototype.bytesPerElement=68,pi("StructArrayLayout8i15ui1ul4f68",rt);var dt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,fe)},G.prototype.emplace=function(fe,Ae){var Qe=1*fe;return this.float32[Qe+0]=Ae,fe},G}(Ea);dt.prototype.bytesPerElement=4,pi("StructArrayLayout1f4",dt);var mt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=3*fe;return this.int16[ut+0]=Ae,this.int16[ut+1]=Qe,this.int16[ut+2]=et,fe},G}(Ea);mt.prototype.bytesPerElement=6,pi("StructArrayLayout3i6",mt);var Et=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=2*fe,Tt=4*fe;return this.uint32[ut+0]=Ae,this.uint16[Tt+2]=Qe,this.uint16[Tt+3]=et,fe},G}(Ea);Et.prototype.bytesPerElement=8,pi("StructArrayLayout1ul2ui8",Et);var Vt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,fe,Ae)},G.prototype.emplace=function(fe,Ae,Qe){var et=2*fe;return this.uint16[et+0]=Ae,this.uint16[et+1]=Qe,fe},G}(Ea);Vt.prototype.bytesPerElement=4,pi("StructArrayLayout2ui4",Vt);var jt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,fe)},G.prototype.emplace=function(fe,Ae){var Qe=1*fe;return this.uint16[Qe+0]=Ae,fe},G}(Ea);jt.prototype.bytesPerElement=2,pi("StructArrayLayout1ui2",jt);var Nt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et){var ut=this.length;return this.resize(ut+1),this.emplace(ut,fe,Ae,Qe,et)},G.prototype.emplace=function(fe,Ae,Qe,et,ut){var Tt=4*fe;return this.float32[Tt+0]=Ae,this.float32[Tt+1]=Qe,this.float32[Tt+2]=et,this.float32[Tt+3]=ut,fe},G}(Ea);Nt.prototype.bytesPerElement=16,pi("StructArrayLayout4f16",Nt);var cn=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return fe.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},fe.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},fe.x1.get=function(){return this._structArray.int16[this._pos2+2]},fe.y1.get=function(){return this._structArray.int16[this._pos2+3]},fe.x2.get=function(){return this._structArray.int16[this._pos2+4]},fe.y2.get=function(){return this._structArray.int16[this._pos2+5]},fe.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},fe.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},fe.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},fe.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(G.prototype,fe),G}(Iu);cn.prototype.size=20;var sn=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new cn(this,fe)},G}(ne);pi("CollisionBoxArray",sn);var xn=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return fe.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},fe.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},fe.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},fe.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},fe.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},fe.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},fe.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},fe.segment.get=function(){return this._structArray.uint16[this._pos2+10]},fe.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},fe.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},fe.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},fe.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},fe.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},fe.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},fe.placedOrientation.set=function(Ae){this._structArray.uint8[this._pos1+37]=Ae},fe.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},fe.hidden.set=function(Ae){this._structArray.uint8[this._pos1+38]=Ae},fe.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},fe.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+10]=Ae},fe.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(G.prototype,fe),G}(Iu);xn.prototype.size=48;var pn=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new xn(this,fe)},G}(Je);pi("PlacedSymbolArray",pn);var Ln=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return fe.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},fe.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},fe.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},fe.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},fe.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},fe.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},fe.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},fe.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},fe.key.get=function(){return this._structArray.uint16[this._pos2+8]},fe.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},fe.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},fe.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},fe.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},fe.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},fe.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},fe.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},fe.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},fe.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},fe.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},fe.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},fe.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},fe.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},fe.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},fe.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},fe.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+12]=Ae},fe.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},fe.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},fe.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},fe.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(G.prototype,fe),G}(Iu);Ln.prototype.size=68;var On=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new Ln(this,fe)},G}(rt);pi("SymbolInstanceArray",On);var An=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.getoffsetX=function(fe){return this.float32[1*fe+0]},G}(dt);pi("GlyphOffsetArray",An);var Sn=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.getx=function(fe){return this.int16[3*fe+0]},G.prototype.gety=function(fe){return this.int16[3*fe+1]},G.prototype.gettileUnitDistanceFromAnchor=function(fe){return this.int16[3*fe+2]},G}(mt);pi("SymbolLineVertexArray",Sn);var rr=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return fe.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},fe.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},fe.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(G.prototype,fe),G}(Iu);rr.prototype.size=8;var Dr=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new rr(this,fe)},G}(Et);pi("FeatureIndexArray",Dr);var Pr=El([{name:"a_pos",components:2,type:"Int16"}],4).members,Zr=function(N){N===void 0&&(N=[]),this.segments=N};function Mo(N,G){return 256*(N=S(Math.floor(N),0,255))+S(Math.floor(G),0,255)}Zr.prototype.prepareSegment=function(N,G,fe,Ae){var Qe=this.segments[this.segments.length-1];return N>Zr.MAX_VERTEX_ARRAY_LENGTH&&$("Max vertices per segment is "+Zr.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+N),(!Qe||Qe.vertexLength+N>Zr.MAX_VERTEX_ARRAY_LENGTH||Qe.sortKey!==Ae)&&(Qe={vertexOffset:G.length,primitiveOffset:fe.length,vertexLength:0,primitiveLength:0},Ae!==void 0&&(Qe.sortKey=Ae),this.segments.push(Qe)),Qe},Zr.prototype.get=function(){return this.segments},Zr.prototype.destroy=function(){for(var N=0,G=this.segments;N>>16)*Tt&65535)<<16)&4294967295)<<15|rn>>>17))*Bt+(((rn>>>16)*Bt&65535)<<16)&4294967295)<<13|et>>>19))+((5*(et>>>16)&65535)<<16)&4294967295))+((58964+(ut>>>16)&65535)<<16);switch(rn=0,Ae){case 3:rn^=(255&G.charCodeAt(an+2))<<16;case 2:rn^=(255&G.charCodeAt(an+1))<<8;case 1:et^=rn=(65535&(rn=(rn=(65535&(rn^=255&G.charCodeAt(an)))*Tt+(((rn>>>16)*Tt&65535)<<16)&4294967295)<<15|rn>>>17))*Bt+(((rn>>>16)*Bt&65535)<<16)&4294967295}return et^=G.length,et=2246822507*(65535&(et^=et>>>16))+((2246822507*(et>>>16)&65535)<<16)&4294967295,et=3266489909*(65535&(et^=et>>>13))+((3266489909*(et>>>16)&65535)<<16)&4294967295,(et^=et>>>16)>>>0}}),zo=O(function(N){N.exports=function(G,fe){for(var Ae,Qe=G.length,et=fe^Qe,ut=0;Qe>=4;)Ae=1540483477*(65535&(Ae=255&G.charCodeAt(ut)|(255&G.charCodeAt(++ut))<<8|(255&G.charCodeAt(++ut))<<16|(255&G.charCodeAt(++ut))<<24))+((1540483477*(Ae>>>16)&65535)<<16),et=1540483477*(65535&et)+((1540483477*(et>>>16)&65535)<<16)^(Ae=1540483477*(65535&(Ae^=Ae>>>24))+((1540483477*(Ae>>>16)&65535)<<16)),Qe-=4,++ut;switch(Qe){case 3:et^=(255&G.charCodeAt(ut+2))<<16;case 2:et^=(255&G.charCodeAt(ut+1))<<8;case 1:et=1540483477*(65535&(et^=255&G.charCodeAt(ut)))+((1540483477*(et>>>16)&65535)<<16)}return et=1540483477*(65535&(et^=et>>>13))+((1540483477*(et>>>16)&65535)<<16),(et^=et>>>15)>>>0}}),yi=vo,Si=vo,Hr=zo;yi.murmur3=Si,yi.murmur2=Hr;var Lo=function(){this.ids=[],this.positions=[],this.indexed=!1};Lo.prototype.add=function(N,G,fe,Ae){this.ids.push(Io(N)),this.positions.push(G,fe,Ae)},Lo.prototype.getPositions=function(N){for(var G=Io(N),fe=0,Ae=this.ids.length-1;fe>1;this.ids[Qe]>=G?Ae=Qe:fe=Qe+1}for(var et=[];this.ids[fe]===G;){var ut=this.positions[3*fe],Tt=this.positions[3*fe+1],Bt=this.positions[3*fe+2];et.push({index:ut,start:Tt,end:Bt}),fe++}return et},Lo.serialize=function(N,G){var fe=new Float64Array(N.ids),Ae=new Uint32Array(N.positions);return $i(fe,Ae,0,fe.length-1),G&&G.push(fe.buffer,Ae.buffer),{ids:fe,positions:Ae}},Lo.deserialize=function(N){var G=new Lo;return G.ids=N.ids,G.positions=N.positions,G.indexed=!0,G};var ki=Math.pow(2,53)-1;function Io(N){var G=+N;return!isNaN(G)&&G<=ki?G:yi(String(N))}function $i(N,G,fe,Ae){for(;fe>1],et=fe-1,ut=Ae+1;;){do et++;while(N[et]Qe);if(et>=ut)break;Ui(N,et,ut),Ui(G,3*et,3*ut),Ui(G,3*et+1,3*ut+1),Ui(G,3*et+2,3*ut+2)}ut-feut.x+1||Btut.y+1)&&$("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return fe}function tc(N,G){return{type:N.type,id:N.id,properties:N.properties,geometry:G?qf(N):[]}}function Wf(N,G,fe,Ae,Qe){N.emplaceBack(2*G+(Ae+1)/2,2*fe+(Qe+1)/2)}var Rl=function(N){this.zoom=N.zoom,this.overscaling=N.overscaling,this.layers=N.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=N.index,this.hasPattern=!1,this.layoutVertexArray=new Mi,this.indexArray=new Fe,this.segments=new Zr,this.programConfigurations=new Tc(N.layers,N.zoom),this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function cg(N,G){for(var fe=0;fe1){if(eh(N,G))return!0;for(var Ae=0;Ae1?N.distSqr(fe):N.distSqr(fe.sub(G)._mult(Qe)._add(G))}function k1(N,G){for(var fe,Ae,Qe,et=!1,ut=0;utG.y!=Qe.y>G.y&&G.x<(Qe.x-Ae.x)*(G.y-Ae.y)/(Qe.y-Ae.y)+Ae.x&&(et=!et);return et}function oc(N,G){for(var fe=!1,Ae=0,Qe=N.length-1;AeG.y!=ut.y>G.y&&G.x<(ut.x-et.x)*(G.y-et.y)/(ut.y-et.y)+et.x&&(fe=!fe)}return fe}function _m(N,G,fe){var Ae=fe[0],Qe=fe[2];if(N.xQe.x&&G.x>Qe.x||N.yQe.y&&G.y>Qe.y)return!1;var et=Q(N,G,fe[0]);return et!==Q(N,G,fe[1])||et!==Q(N,G,fe[2])||et!==Q(N,G,fe[3])}function Yg(N,G,fe){var Ae=G.paint.get(N).value;return Ae.kind==="constant"?Ae.value:fe.programConfigurations.get(G.id).getMaxValue(N)}function wm(N){return Math.sqrt(N[0]*N[0]+N[1]*N[1])}function ub(N,G,fe,Ae,Qe){if(!G[0]&&!G[1])return N;var et=a.convert(G)._mult(Qe);fe==="viewport"&&et._rotate(-Ae);for(var ut=[],Tt=0;Tt=Hs||an<0||an>=Hs)){var _n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,N.sortKey),Dn=_n.vertexLength;Wf(this.layoutVertexArray,rn,an,-1,-1),Wf(this.layoutVertexArray,rn,an,1,-1),Wf(this.layoutVertexArray,rn,an,1,1),Wf(this.layoutVertexArray,rn,an,-1,1),this.indexArray.emplaceBack(Dn,Dn+1,Dn+2),this.indexArray.emplaceBack(Dn,Dn+3,Dn+2),_n.vertexLength+=4,_n.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,N,fe,{},Ae)},pi("CircleBucket",Rl,{omit:["layers"]});var Oh=new Jl({"circle-sort-key":new fa(xt.layout_circle["circle-sort-key"])}),Ex={paint:new Jl({"circle-radius":new fa(xt.paint_circle["circle-radius"]),"circle-color":new fa(xt.paint_circle["circle-color"]),"circle-blur":new fa(xt.paint_circle["circle-blur"]),"circle-opacity":new fa(xt.paint_circle["circle-opacity"]),"circle-translate":new Vi(xt.paint_circle["circle-translate"]),"circle-translate-anchor":new Vi(xt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Vi(xt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Vi(xt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new fa(xt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new fa(xt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new fa(xt.paint_circle["circle-stroke-opacity"])}),layout:Oh},Tf=typeof Float32Array<"u"?Float32Array:Array;function Hv(N){return N[0]=1,N[1]=0,N[2]=0,N[3]=0,N[4]=0,N[5]=1,N[6]=0,N[7]=0,N[8]=0,N[9]=0,N[10]=1,N[11]=0,N[12]=0,N[13]=0,N[14]=0,N[15]=1,N}function Om(N,G,fe){var Ae=G[0],Qe=G[1],et=G[2],ut=G[3],Tt=G[4],Bt=G[5],rn=G[6],an=G[7],_n=G[8],Dn=G[9],Cn=G[10],Jn=G[11],lr=G[12],Ar=G[13],Or=G[14],jr=G[15],Jr=fe[0],uo=fe[1],ro=fe[2],Po=fe[3];return N[0]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[1]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[2]=Jr*et+uo*rn+ro*Cn+Po*Or,N[3]=Jr*ut+uo*an+ro*Jn+Po*jr,Jr=fe[4],uo=fe[5],ro=fe[6],Po=fe[7],N[4]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[5]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[6]=Jr*et+uo*rn+ro*Cn+Po*Or,N[7]=Jr*ut+uo*an+ro*Jn+Po*jr,Jr=fe[8],uo=fe[9],ro=fe[10],Po=fe[11],N[8]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[9]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[10]=Jr*et+uo*rn+ro*Cn+Po*Or,N[11]=Jr*ut+uo*an+ro*Jn+Po*jr,Jr=fe[12],uo=fe[13],ro=fe[14],Po=fe[15],N[12]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[13]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[14]=Jr*et+uo*rn+ro*Cn+Po*Or,N[15]=Jr*ut+uo*an+ro*Jn+Po*jr,N}Math.hypot||(Math.hypot=function(){for(var N=arguments,G=0,fe=arguments.length;fe--;)G+=N[fe]*N[fe];return Math.sqrt(G)});var Sm=Om,ap,Bp=function(N,G,fe){return N[0]=G[0]-fe[0],N[1]=G[1]-fe[1],N[2]=G[2]-fe[2],N};function P0(N,G,fe){var Ae=G[0],Qe=G[1],et=G[2],ut=G[3];return N[0]=fe[0]*Ae+fe[4]*Qe+fe[8]*et+fe[12]*ut,N[1]=fe[1]*Ae+fe[5]*Qe+fe[9]*et+fe[13]*ut,N[2]=fe[2]*Ae+fe[6]*Qe+fe[10]*et+fe[14]*ut,N[3]=fe[3]*Ae+fe[7]*Qe+fe[11]*et+fe[15]*ut,N}ap=new Tf(3),Tf!=Float32Array&&(ap[0]=0,ap[1]=0,ap[2]=0),function(){var N=new Tf(4);Tf!=Float32Array&&(N[0]=0,N[1]=0,N[2]=0,N[3]=0)}();var ug=function(N){var G=N[0],fe=N[1];return G*G+fe*fe},Zv=(function(){var N=new Tf(2);Tf!=Float32Array&&(N[0]=0,N[1]=0)}(),function(N){function G(fe){N.call(this,fe,Ex)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.createBucket=function(fe){return new Rl(fe)},G.prototype.queryRadius=function(fe){var Ae=fe;return Yg("circle-radius",this,Ae)+Yg("circle-stroke-width",this,Ae)+wm(this.paint.get("circle-translate"))},G.prototype.queryIntersectsFeature=function(fe,Ae,Qe,et,ut,Tt,Bt,rn){for(var an=ub(fe,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Tt.angle,Bt),_n=this.paint.get("circle-radius").evaluate(Ae,Qe)+this.paint.get("circle-stroke-width").evaluate(Ae,Qe),Dn=this.paint.get("circle-pitch-alignment")==="map",Cn=Dn?an:function(gi,ni){return gi.map(function(Ti){return R0(Ti,ni)})}(an,rn),Jn=Dn?_n*Bt:_n,lr=0,Ar=et;lrN.width||Qe.height>N.height||fe.x>N.width-Qe.width||fe.y>N.height-Qe.height)throw new RangeError("out of range source coordinates for image copy");if(Qe.width>G.width||Qe.height>G.height||Ae.x>G.width-Qe.width||Ae.y>G.height-Qe.height)throw new RangeError("out of range destination coordinates for image copy");for(var ut=N.data,Tt=G.data,Bt=0;Bt80*fe){Ae=et=N[0],Qe=ut=N[1];for(var Jn=fe;Jn<_n;Jn+=fe)(Tt=N[Jn])et&&(et=Tt),Bt>ut&&(ut=Bt);rn=(rn=Math.max(et-Ae,ut-Qe))!==0?1/rn:0}return Kg(Dn,Cn,fe,Ae,Qe,rn),Cn}function Px(N,G,fe,Ae,Qe){var et,ut;if(Qe===pl(N,G,fe,Ae)>0)for(et=G;et=G;et-=Ae)ut=hb(et,N[et],N[et+1],ut);return ut&&Cm(ut,ut.next)&&(A1(ut),ut=ut.next),ut}function zp(N,G){if(!N)return N;G||(G=N);var fe,Ae=N;do if(fe=!1,Ae.steiner||!Cm(Ae,Ae.next)&&xu(Ae.prev,Ae,Ae.next)!==0)Ae=Ae.next;else{if(A1(Ae),(Ae=G=Ae.prev)===Ae.next)break;fe=!0}while(fe||Ae!==G);return G}function Kg(N,G,fe,Ae,Qe,et,ut){if(N){!ut&&et&&function(an,_n,Dn,Cn){var Jn=an;do Jn.z===null&&(Jn.z=Jg(Jn.x,Jn.y,_n,Dn,Cn)),Jn.prevZ=Jn.prev,Jn.nextZ=Jn.next,Jn=Jn.next;while(Jn!==an);Jn.prevZ.nextZ=null,Jn.prevZ=null,function(lr){var Ar,Or,jr,Jr,uo,ro,Po,gi,ni=1;do{for(Or=lr,lr=null,uo=null,ro=0;Or;){for(ro++,jr=Or,Po=0,Ar=0;Ar0||gi>0&&jr;)Po!==0&&(gi===0||!jr||Or.z<=jr.z)?(Jr=Or,Or=Or.nextZ,Po--):(Jr=jr,jr=jr.nextZ,gi--),uo?uo.nextZ=Jr:lr=Jr,Jr.prevZ=uo,uo=Jr;Or=jr}uo.nextZ=null,ni*=2}while(ro>1)}(Jn)}(N,Ae,Qe,et);for(var Tt,Bt,rn=N;N.prev!==N.next;)if(Tt=N.prev,Bt=N.next,et?T1(N,Ae,Qe,et):M_(N))G.push(Tt.i/fe),G.push(N.i/fe),G.push(Bt.i/fe),A1(N),N=Bt.next,rn=Bt.next;else if((N=Bt)===rn){ut?ut===1?Kg(N=Tm(zp(N),G,fe),G,fe,Ae,Qe,et,2):ut===2&&zd(N,G,fe,Ae,Qe,et):Kg(zp(N),G,fe,Ae,Qe,et,1);break}}}function M_(N){var G=N.prev,fe=N,Ae=N.next;if(xu(G,fe,Ae)>=0)return!1;for(var Qe=N.next.next;Qe!==N.prev;){if(C1(G.x,G.y,fe.x,fe.y,Ae.x,Ae.y,Qe.x,Qe.y)&&xu(Qe.prev,Qe,Qe.next)>=0)return!1;Qe=Qe.next}return!0}function T1(N,G,fe,Ae){var Qe=N.prev,et=N,ut=N.next;if(xu(Qe,et,ut)>=0)return!1;for(var Tt=Qe.xet.x?Qe.x>ut.x?Qe.x:ut.x:et.x>ut.x?et.x:ut.x,an=Qe.y>et.y?Qe.y>ut.y?Qe.y:ut.y:et.y>ut.y?et.y:ut.y,_n=Jg(Tt,Bt,G,fe,Ae),Dn=Jg(rn,an,G,fe,Ae),Cn=N.prevZ,Jn=N.nextZ;Cn&&Cn.z>=_n&&Jn&&Jn.z<=Dn;){if(Cn!==N.prev&&Cn!==N.next&&C1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Cn.x,Cn.y)&&xu(Cn.prev,Cn,Cn.next)>=0||(Cn=Cn.prevZ,Jn!==N.prev&&Jn!==N.next&&C1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Jn.x,Jn.y)&&xu(Jn.prev,Jn,Jn.next)>=0))return!1;Jn=Jn.nextZ}for(;Cn&&Cn.z>=_n;){if(Cn!==N.prev&&Cn!==N.next&&C1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Cn.x,Cn.y)&&xu(Cn.prev,Cn,Cn.next)>=0)return!1;Cn=Cn.prevZ}for(;Jn&&Jn.z<=Dn;){if(Jn!==N.prev&&Jn!==N.next&&C1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Jn.x,Jn.y)&&xu(Jn.prev,Jn,Jn.next)>=0)return!1;Jn=Jn.nextZ}return!0}function Tm(N,G,fe){var Ae=N;do{var Qe=Ae.prev,et=Ae.next.next;!Cm(Qe,et)&&D0(Qe,Ae,Ae.next,et)&&Fp(Qe,et)&&Fp(et,Qe)&&(G.push(Qe.i/fe),G.push(Ae.i/fe),G.push(et.i/fe),A1(Ae),A1(Ae.next),Ae=N=et),Ae=Ae.next}while(Ae!==N);return zp(Ae)}function zd(N,G,fe,Ae,Qe,et){var ut=N;do{for(var Tt=ut.next.next;Tt!==ut.prev;){if(ut.i!==Tt.i&&zO(ut,Tt)){var Bt=qv(ut,Tt);return ut=zp(ut,ut.next),Bt=zp(Bt,Bt.next),Kg(ut,G,fe,Ae,Qe,et),void Kg(Bt,G,fe,Ae,Qe,et)}Tt=Tt.next}ut=ut.next}while(ut!==N)}function fp(N,G){return N.x-G.x}function I0(N,G){if(G=function(Ae,Qe){var et,ut=Qe,Tt=Ae.x,Bt=Ae.y,rn=-1/0;do{if(Bt<=ut.y&&Bt>=ut.next.y&&ut.next.y!==ut.y){var an=ut.x+(Bt-ut.y)*(ut.next.x-ut.x)/(ut.next.y-ut.y);if(an<=Tt&&an>rn){if(rn=an,an===Tt){if(Bt===ut.y)return ut;if(Bt===ut.next.y)return ut.next}et=ut.x=ut.x&&ut.x>=Cn&&Tt!==ut.x&&C1(Btet.x||ut.x===et.x&&E_(et,ut)))&&(et=ut,lr=_n)),ut=ut.next;while(ut!==Dn);return et}(N,G)){var fe=qv(G,N);zp(G,G.next),zp(fe,fe.next)}}function E_(N,G){return xu(N.prev,N,G.prev)<0&&xu(G.next,N,N.next)<0}function Jg(N,G,fe,Ae,Qe){return(N=1431655765&((N=858993459&((N=252645135&((N=16711935&((N=32767*(N-fe)*Qe)|N<<8))|N<<4))|N<<2))|N<<1))|(G=1431655765&((G=858993459&((G=252645135&((G=16711935&((G=32767*(G-Ae)*Qe)|G<<8))|G<<4))|G<<2))|G<<1))<<1}function P_(N){var G=N,fe=N;do(G.x=0&&(N-ut)*(Ae-Tt)-(fe-ut)*(G-Tt)>=0&&(fe-ut)*(et-Tt)-(Qe-ut)*(Ae-Tt)>=0}function zO(N,G){return N.next.i!==G.i&&N.prev.i!==G.i&&!function(fe,Ae){var Qe=fe;do{if(Qe.i!==fe.i&&Qe.next.i!==fe.i&&Qe.i!==Ae.i&&Qe.next.i!==Ae.i&&D0(Qe,Qe.next,fe,Ae))return!0;Qe=Qe.next}while(Qe!==fe);return!1}(N,G)&&(Fp(N,G)&&Fp(G,N)&&function(fe,Ae){var Qe=fe,et=!1,ut=(fe.x+Ae.x)/2,Tt=(fe.y+Ae.y)/2;do Qe.y>Tt!=Qe.next.y>Tt&&Qe.next.y!==Qe.y&&ut<(Qe.next.x-Qe.x)*(Tt-Qe.y)/(Qe.next.y-Qe.y)+Qe.x&&(et=!et),Qe=Qe.next;while(Qe!==fe);return et}(N,G)&&(xu(N.prev,N,G.prev)||xu(N,G.prev,G))||Cm(N,G)&&xu(N.prev,N,N.next)>0&&xu(G.prev,G,G.next)>0)}function xu(N,G,fe){return(G.y-N.y)*(fe.x-G.x)-(G.x-N.x)*(fe.y-G.y)}function Cm(N,G){return N.x===G.x&&N.y===G.y}function D0(N,G,fe,Ae){var Qe=Ri(xu(N,G,fe)),et=Ri(xu(N,G,Ae)),ut=Ri(xu(fe,Ae,N)),Tt=Ri(xu(fe,Ae,G));return Qe!==et&&ut!==Tt||!(Qe!==0||!Sa(N,fe,G))||!(et!==0||!Sa(N,Ae,G))||!(ut!==0||!Sa(fe,N,Ae))||!(Tt!==0||!Sa(fe,G,Ae))}function Sa(N,G,fe){return G.x<=Math.max(N.x,fe.x)&&G.x>=Math.min(N.x,fe.x)&&G.y<=Math.max(N.y,fe.y)&&G.y>=Math.min(N.y,fe.y)}function Ri(N){return N>0?1:N<0?-1:0}function Fp(N,G){return xu(N.prev,N,N.next)<0?xu(N,G,N.next)>=0&&xu(N,N.prev,G)>=0:xu(N,G,N.prev)<0||xu(N,N.next,G)<0}function qv(N,G){var fe=new Np(N.i,N.x,N.y),Ae=new Np(G.i,G.x,G.y),Qe=N.next,et=G.prev;return N.next=G,G.prev=N,fe.next=Qe,Qe.prev=fe,Ae.next=fe,fe.prev=Ae,et.next=Ae,Ae.prev=et,Ae}function hb(N,G,fe,Ae){var Qe=new Np(N,G,fe);return Ae?(Qe.next=Ae.next,Qe.prev=Ae,Ae.next.prev=Qe,Ae.next=Qe):(Qe.prev=Qe,Qe.next=Qe),Qe}function A1(N){N.next.prev=N.prev,N.prev.next=N.next,N.prevZ&&(N.prevZ.nextZ=N.nextZ),N.nextZ&&(N.nextZ.prevZ=N.prevZ)}function Np(N,G,fe){this.i=N,this.x=G,this.y=fe,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function pl(N,G,fe,Ae){for(var Qe=0,et=G,ut=fe-Ae;etfe;){if(Ae-fe>600){var et=Ae-fe+1,ut=G-fe+1,Tt=Math.log(et),Bt=.5*Math.exp(2*Tt/3),rn=.5*Math.sqrt(Tt*Bt*(et-Bt)/et)*(ut-et/2<0?-1:1);Rx(N,G,Math.max(fe,Math.floor(G-ut*Bt/et+rn)),Math.min(Ae,Math.floor(G+(et-ut)*Bt/et+rn)),Qe)}var an=N[G],_n=fe,Dn=Ae;for(B0(N,fe,G),Qe(N[Ae],an)>0&&B0(N,fe,Ae);_n0;)Dn--}Qe(N[fe],an)===0?B0(N,fe,Dn):B0(N,++Dn,Ae),Dn<=G&&(fe=Dn+1),G<=Dn&&(Ae=Dn-1)}}function B0(N,G,fe){var Ae=N[G];N[G]=N[fe],N[fe]=Ae}function fo(N,G){return NG?1:0}function e0(N,G){var fe=N.length;if(fe<=1)return[N];for(var Ae,Qe,et=[],ut=0;ut1)for(var Bt=0;Bt0&&(Ae+=N[Qe-1].length,fe.holes.push(Ae))}return fe},up.default=Xf;var Fd=function(N){this.zoom=N.zoom,this.overscaling=N.overscaling,this.layers=N.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=N.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mi,this.indexArray=new Fe,this.indexArray2=new Vt,this.programConfigurations=new Tc(N.layers,N.zoom),this.segments=new Zr,this.segments2=new Zr,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};Fd.prototype.populate=function(N,G,fe){this.hasPattern=fg("fill",this.layers,G);for(var Ae=this.layers[0].layout.get("fill-sort-key"),Qe=[],et=0,ut=N;et>3}if(Qe--,Ae===1||Ae===2)et+=N.readSVarint(),ut+=N.readSVarint(),Ae===1&&(G&&Tt.push(G),G=[]),G.push(new a(et,ut));else{if(Ae!==7)throw new Error("unknown command "+Ae);G&&G.push(G[0].clone())}}return G&&Tt.push(G),Tt},Sh.prototype.bbox=function(){var N=this._pbf;N.pos=this._geometry;for(var G=N.readVarint()+N.pos,fe=1,Ae=0,Qe=0,et=0,ut=1/0,Tt=-1/0,Bt=1/0,rn=-1/0;N.pos>3}if(Ae--,fe===1||fe===2)(Qe+=N.readSVarint())Tt&&(Tt=Qe),(et+=N.readSVarint())rn&&(rn=et);else if(fe!==7)throw new Error("unknown command "+fe)}return[ut,Bt,Tt,rn]},Sh.prototype.toGeoJSON=function(N,G,fe){var Ae,Qe,et=this.extent*Math.pow(2,fe),ut=this.extent*N,Tt=this.extent*G,Bt=this.loadGeometry(),rn=Sh.types[this.type];function an(Cn){for(var Jn=0;Jn>3;Qe=ut===1?Ae.readString():ut===2?Ae.readFloat():ut===3?Ae.readDouble():ut===4?Ae.readVarint64():ut===5?Ae.readVarint():ut===6?Ae.readSVarint():ut===7?Ae.readBoolean():null}return Qe}(fe))}function pb(N,G,fe){if(N===3){var Ae=new Lx(fe,fe.readVarint()+fe.pos);Ae.length&&(G[Ae.name]=Ae)}}Yv.prototype.feature=function(N){if(N<0||N>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[N];var G=this._pbf.readVarint()+this._pbf.pos;return new Ll(this._pbf,G,this.extent,this._keys,this._values)};var Cf={VectorTile:function(N,G){this.layers=N.readFields(pb,{},G)},VectorTileFeature:Ll,VectorTileLayer:Lx},$O=Cf.VectorTileFeature.types,M1=Math.pow(2,13);function E1(N,G,fe,Ae,Qe,et,ut,Tt){N.emplaceBack(G,fe,2*Math.floor(Ae*M1)+ut,Qe*M1*2,et*M1*2,Math.round(Tt))}var md=function(N){this.zoom=N.zoom,this.overscaling=N.overscaling,this.layers=N.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=N.index,this.hasPattern=!1,this.layoutVertexArray=new Ot,this.indexArray=new Fe,this.programConfigurations=new Tc(N.layers,N.zoom),this.segments=new Zr,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function D_(N,G){return N.x===G.x&&(N.x<0||N.x>Hs)||N.y===G.y&&(N.y<0||N.y>Hs)}md.prototype.populate=function(N,G,fe){this.features=[],this.hasPattern=fg("fill-extrusion",this.layers,G);for(var Ae=0,Qe=N;AeHs})||Bs.every(function(Ja){return Ja.y<0})||Bs.every(function(Ja){return Ja.y>Hs})))for(var lr=0,Ar=0;Ar=1){var jr=Jn[Ar-1];if(!D_(Or,jr)){_n.vertexLength+4>Zr.MAX_VERTEX_ARRAY_LENGTH&&(_n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Jr=Or.sub(jr)._perp()._unit(),uo=jr.dist(Or);lr+uo>32768&&(lr=0),E1(this.layoutVertexArray,Or.x,Or.y,Jr.x,Jr.y,0,0,lr),E1(this.layoutVertexArray,Or.x,Or.y,Jr.x,Jr.y,0,1,lr),lr+=uo,E1(this.layoutVertexArray,jr.x,jr.y,Jr.x,Jr.y,0,0,lr),E1(this.layoutVertexArray,jr.x,jr.y,Jr.x,Jr.y,0,1,lr);var ro=_n.vertexLength;this.indexArray.emplaceBack(ro,ro+2,ro+1),this.indexArray.emplaceBack(ro+1,ro+2,ro+3),_n.vertexLength+=4,_n.primitiveLength+=2}}}}if(_n.vertexLength+Bt>Zr.MAX_VERTEX_ARRAY_LENGTH&&(_n=this.segments.prepareSegment(Bt,this.layoutVertexArray,this.indexArray)),$O[N.type]==="Polygon"){for(var Po=[],gi=[],ni=_n.vertexLength,Ti=0,vi=Tt;Ti=2&&N[Bt-1].equals(N[Bt-2]);)Bt--;for(var rn=0;rn0;if(gi&&Or>rn){var Ti=an.dist(Cn);if(Ti>2*_n){var vi=an.sub(an.sub(Cn)._mult(_n/Ti)._round());this.updateDistance(Cn,vi),this.addCurrentVertex(vi,lr,0,0,Dn),Cn=vi}}var na=Cn&&Jn,ea=na?fe:Tt?"butt":Ae;if(na&&ea==="round"&&(roQe&&(ea="bevel"),ea==="bevel"&&(ro>2&&(ea="flipbevel"),ro100)jr=Ar.mult(-1);else{var La=ro*lr.add(Ar).mag()/lr.sub(Ar).mag();jr._perp()._mult(La*(ni?-1:1))}this.addCurrentVertex(an,jr,0,0,Dn),this.addCurrentVertex(an,jr.mult(-1),0,0,Dn)}else if(ea==="bevel"||ea==="fakeround"){var ca=-Math.sqrt(ro*ro-1),Zi=ni?ca:0,Bs=ni?0:ca;if(Cn&&this.addCurrentVertex(an,lr,Zi,Bs,Dn),ea==="fakeround")for(var Ja=Math.round(180*Po/Math.PI/20),Vl=1;Vl2*_n){var Fs=an.add(Jn.sub(an)._mult(_n/aa)._round());this.updateDistance(an,Fs),this.addCurrentVertex(Fs,Ar,0,0,Dn),an=Fs}}}}},gd.prototype.addCurrentVertex=function(N,G,fe,Ae,Qe,et){et===void 0&&(et=!1);var ut=G.x+G.y*fe,Tt=G.y-G.x*fe,Bt=-G.x+G.y*Ae,rn=-G.y-G.x*Ae;this.addHalfVertex(N,ut,Tt,et,!1,fe,Qe),this.addHalfVertex(N,Bt,rn,et,!0,-Ae,Qe),this.distance>mb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(N,G,fe,Ae,Qe,et))},gd.prototype.addHalfVertex=function(N,G,fe,Ae,Qe,et,ut){var Tt=N.x,Bt=N.y,rn=.5*(this.lineClips?this.scaledDistance*(mb-1):this.scaledDistance);if(this.layoutVertexArray.emplaceBack((Tt<<1)+(Ae?1:0),(Bt<<1)+(Qe?1:0),Math.round(63*G)+128,Math.round(63*fe)+128,1+(et===0?0:et<0?-1:1)|(63&rn)<<2,rn>>6),this.lineClips){var an=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(an,this.lineClipsArray.length)}var _n=ut.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,_n),ut.primitiveLength++),Qe?this.e2=_n:this.e1=_n},gd.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},gd.prototype.updateDistance=function(N,G){this.distance+=N.dist(G),this.updateScaledDistance()},pi("LineBucket",gd,{omit:["layers","patternFeatures"]});var Nl=new Jl({"line-cap":new Vi(xt.layout_line["line-cap"]),"line-join":new fa(xt.layout_line["line-join"]),"line-miter-limit":new Vi(xt.layout_line["line-miter-limit"]),"line-round-limit":new Vi(xt.layout_line["line-round-limit"]),"line-sort-key":new fa(xt.layout_line["line-sort-key"])}),dg={paint:new Jl({"line-opacity":new fa(xt.paint_line["line-opacity"]),"line-color":new fa(xt.paint_line["line-color"]),"line-translate":new Vi(xt.paint_line["line-translate"]),"line-translate-anchor":new Vi(xt.paint_line["line-translate-anchor"]),"line-width":new fa(xt.paint_line["line-width"]),"line-gap-width":new fa(xt.paint_line["line-gap-width"]),"line-offset":new fa(xt.paint_line["line-offset"]),"line-blur":new fa(xt.paint_line["line-blur"]),"line-dasharray":new Zf(xt.paint_line["line-dasharray"]),"line-pattern":new au(xt.paint_line["line-pattern"]),"line-gradient":new Zl(xt.paint_line["line-gradient"])}),layout:Nl},Dx=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.possiblyEvaluate=function(fe,Ae){return Ae=new fs(Math.floor(Ae.zoom),{now:Ae.now,fadeDuration:Ae.fadeDuration,zoomHistory:Ae.zoomHistory,transition:Ae.transition}),N.prototype.possiblyEvaluate.call(this,fe,Ae)},G.prototype.evaluate=function(fe,Ae,Qe,et){return Ae=x({},Ae,{zoom:Math.floor(Ae.zoom)}),N.prototype.evaluate.call(this,fe,Ae,Qe,et)},G}(fa),UO=new Dx(dg.paint.properties["line-width"].specification);UO.useIntegerZoom=!0;var t0=function(N){function G(fe){N.call(this,fe,dg),this.gradientVersion=0}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._handleSpecialPaintPropertyUpdate=function(fe){if(fe==="line-gradient"){var Ae=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=Ae._styleExpression.expression instanceof ko,this.gradientVersion=(this.gradientVersion+1)%m}},G.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},G.prototype.recalculate=function(fe,Ae){N.prototype.recalculate.call(this,fe,Ae),this.paint._values["line-floorwidth"]=UO.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,fe)},G.prototype.createBucket=function(fe){return new gd(fe)},G.prototype.queryRadius=function(fe){var Ae=fe,Qe=gb(Yg("line-width",this,Ae),Yg("line-gap-width",this,Ae)),et=Yg("line-offset",this,Ae);return Qe/2+Math.abs(et)+wm(this.paint.get("line-translate"))},G.prototype.queryIntersectsFeature=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=ub(fe,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Tt.angle,Bt),an=Bt/2*gb(this.paint.get("line-width").evaluate(Ae,Qe),this.paint.get("line-gap-width").evaluate(Ae,Qe)),_n=this.paint.get("line-offset").evaluate(Ae,Qe);return _n&&(et=function(Dn,Cn){for(var Jn=[],lr=new a(0,0),Ar=0;Ar=3){for(var Or=0;Or0?G+2*N:N}var Mm=El([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),jO=El([{name:"a_projected_pos",components:3,type:"Float32"}],4),z_=(El([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),El([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Sl=(El([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),El([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Kv=El([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function fc(N,G,fe){return N.sections.forEach(function(Ae){Ae.text=function(Qe,et,ut){var Tt=et.layout.get("text-transform").evaluate(ut,{});return Tt==="uppercase"?Qe=Qe.toLocaleUpperCase():Tt==="lowercase"&&(Qe=Qe.toLocaleLowerCase()),Lu.applyArabicShaping&&(Qe=Lu.applyArabicShaping(Qe)),Qe}(Ae.text,G,fe)}),N}El([{name:"triangle",components:3,type:"Uint16"}]),El([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),El([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),El([{type:"Float32",name:"offsetX"}]),El([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Jv={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},$l=24,P1=function(N,G,fe,Ae,Qe){var et,ut,Tt=8*Qe-Ae-1,Bt=(1<>1,an=-7,_n=fe?Qe-1:0,Dn=fe?-1:1,Cn=N[G+_n];for(_n+=Dn,et=Cn&(1<<-an)-1,Cn>>=-an,an+=Tt;an>0;et=256*et+N[G+_n],_n+=Dn,an-=8);for(ut=et&(1<<-an)-1,et>>=-an,an+=Ae;an>0;ut=256*ut+N[G+_n],_n+=Dn,an-=8);if(et===0)et=1-rn;else{if(et===Bt)return ut?NaN:1/0*(Cn?-1:1);ut+=Math.pow(2,Ae),et-=rn}return(Cn?-1:1)*ut*Math.pow(2,et-Ae)},th=function(N,G,fe,Ae,Qe,et){var ut,Tt,Bt,rn=8*et-Qe-1,an=(1<>1,Dn=Qe===23?Math.pow(2,-24)-Math.pow(2,-77):0,Cn=Ae?0:et-1,Jn=Ae?1:-1,lr=G<0||G===0&&1/G<0?1:0;for(G=Math.abs(G),isNaN(G)||G===1/0?(Tt=isNaN(G)?1:0,ut=an):(ut=Math.floor(Math.log(G)/Math.LN2),G*(Bt=Math.pow(2,-ut))<1&&(ut--,Bt*=2),(G+=ut+_n>=1?Dn/Bt:Dn*Math.pow(2,1-_n))*Bt>=2&&(ut++,Bt/=2),ut+_n>=an?(Tt=0,ut=an):ut+_n>=1?(Tt=(G*Bt-1)*Math.pow(2,Qe),ut+=_n):(Tt=G*Math.pow(2,_n-1)*Math.pow(2,Qe),ut=0));Qe>=8;N[fe+Cn]=255&Tt,Cn+=Jn,Tt/=256,Qe-=8);for(ut=ut<0;N[fe+Cn]=255&ut,Cn+=Jn,ut/=256,rn-=8);N[fe+Cn-Jn]|=128*lr},Bx=ic;function ic(N){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(N)?N:new Uint8Array(N||0),this.pos=0,this.type=0,this.length=this.buf.length}ic.Varint=0,ic.Fixed64=1,ic.Bytes=2,ic.Fixed32=5;var F_=4294967296,QO=1/F_,Du=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function su(N){return N.type===ic.Bytes?N.readVarint()+N.pos:N.pos+1}function hg(N,G,fe){return fe?4294967296*G+(N>>>0):4294967296*(G>>>0)+(N>>>0)}function n0(N,G,fe){var Ae=G<=16383?1:G<=2097151?2:G<=268435455?3:Math.floor(Math.log(G)/(7*Math.LN2));fe.realloc(Ae);for(var Qe=fe.pos-1;Qe>=N;Qe--)fe.buf[Qe+Ae]=fe.buf[Qe]}function N_(N,G){for(var fe=0;fe>>8,N[fe+2]=G>>>16,N[fe+3]=G>>>24}function vb(N,G){return(N[G]|N[G+1]<<8|N[G+2]<<16)+(N[G+3]<<24)}ic.prototype={destroy:function(){this.buf=null},readFields:function(N,G,fe){for(fe=fe||this.length;this.pos>3,et=this.pos;this.type=7&Ae,N(Qe,G,this),this.pos===et&&this.skip(Ae)}return G},readMessage:function(N,G){return this.readFields(N,G,this.readVarint()+this.pos)},readFixed32:function(){var N=zx(this.buf,this.pos);return this.pos+=4,N},readSFixed32:function(){var N=vb(this.buf,this.pos);return this.pos+=4,N},readFixed64:function(){var N=zx(this.buf,this.pos)+zx(this.buf,this.pos+4)*F_;return this.pos+=8,N},readSFixed64:function(){var N=zx(this.buf,this.pos)+vb(this.buf,this.pos+4)*F_;return this.pos+=8,N},readFloat:function(){var N=P1(this.buf,this.pos,!0,23,4);return this.pos+=4,N},readDouble:function(){var N=P1(this.buf,this.pos,!0,52,8);return this.pos+=8,N},readVarint:function(N){var G,fe,Ae=this.buf;return G=127&(fe=Ae[this.pos++]),fe<128?G:(G|=(127&(fe=Ae[this.pos++]))<<7,fe<128?G:(G|=(127&(fe=Ae[this.pos++]))<<14,fe<128?G:(G|=(127&(fe=Ae[this.pos++]))<<21,fe<128?G:function(Qe,et,ut){var Tt,Bt,rn=ut.buf;if(Tt=(112&(Bt=rn[ut.pos++]))>>4,Bt<128||(Tt|=(127&(Bt=rn[ut.pos++]))<<3,Bt<128)||(Tt|=(127&(Bt=rn[ut.pos++]))<<10,Bt<128)||(Tt|=(127&(Bt=rn[ut.pos++]))<<17,Bt<128)||(Tt|=(127&(Bt=rn[ut.pos++]))<<24,Bt<128)||(Tt|=(1&(Bt=rn[ut.pos++]))<<31,Bt<128))return hg(Qe,Tt,et);throw new Error("Expected varint not more than 10 bytes")}(G|=(15&(fe=Ae[this.pos]))<<28,N,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var N=this.readVarint();return N%2==1?(N+1)/-2:N/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var N=this.readVarint()+this.pos,G=this.pos;return this.pos=N,N-G>=12&&Du?function(fe,Ae,Qe){return Du.decode(fe.subarray(Ae,Qe))}(this.buf,G,N):function(fe,Ae,Qe){for(var et="",ut=Ae;ut239?4:an>223?3:an>191?2:1;if(ut+Dn>Qe)break;Dn===1?an<128&&(_n=an):Dn===2?(192&(Tt=fe[ut+1]))==128&&(_n=(31&an)<<6|63&Tt)<=127&&(_n=null):Dn===3?(Tt=fe[ut+1],Bt=fe[ut+2],(192&Tt)==128&&(192&Bt)==128&&((_n=(15&an)<<12|(63&Tt)<<6|63&Bt)<=2047||_n>=55296&&_n<=57343)&&(_n=null)):Dn===4&&(Tt=fe[ut+1],Bt=fe[ut+2],rn=fe[ut+3],(192&Tt)==128&&(192&Bt)==128&&(192&rn)==128&&((_n=(15&an)<<18|(63&Tt)<<12|(63&Bt)<<6|63&rn)<=65535||_n>=1114112)&&(_n=null)),_n===null?(_n=65533,Dn=1):_n>65535&&(_n-=65536,et+=String.fromCharCode(_n>>>10&1023|55296),_n=56320|1023&_n),et+=String.fromCharCode(_n),ut+=Dn}return et}(this.buf,G,N)},readBytes:function(){var N=this.readVarint()+this.pos,G=this.buf.subarray(this.pos,N);return this.pos=N,G},readPackedVarint:function(N,G){if(this.type!==ic.Bytes)return N.push(this.readVarint(G));var fe=su(this);for(N=N||[];this.pos127;);else if(G===ic.Bytes)this.pos=this.readVarint()+this.pos;else if(G===ic.Fixed32)this.pos+=4;else{if(G!==ic.Fixed64)throw new Error("Unimplemented type: "+G);this.pos+=8}},writeTag:function(N,G){this.writeVarint(N<<3|G)},realloc:function(N){for(var G=this.length||16;G268435455||N<0?function(G,fe){var Ae,Qe;if(G>=0?(Ae=G%4294967296|0,Qe=G/4294967296|0):(Qe=~(-G/4294967296),4294967295^(Ae=~(-G%4294967296))?Ae=Ae+1|0:(Ae=0,Qe=Qe+1|0)),G>=18446744073709552e3||G<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");fe.realloc(10),function(et,ut,Tt){Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos]=127&et}(Ae,0,fe),function(et,ut){var Tt=(7&et)<<4;ut.buf[ut.pos++]|=Tt|((et>>>=3)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et)))))}(Qe,fe)}(N,this):(this.realloc(4),this.buf[this.pos++]=127&N|(N>127?128:0),N<=127||(this.buf[this.pos++]=127&(N>>>=7)|(N>127?128:0),N<=127||(this.buf[this.pos++]=127&(N>>>=7)|(N>127?128:0),N<=127||(this.buf[this.pos++]=N>>>7&127))))},writeSVarint:function(N){this.writeVarint(N<0?2*-N-1:2*N)},writeBoolean:function(N){this.writeVarint(!!N)},writeString:function(N){N=String(N),this.realloc(4*N.length),this.pos++;var G=this.pos;this.pos=function(Ae,Qe,et){for(var ut,Tt,Bt=0;Bt55295&&ut<57344){if(!Tt){ut>56319||Bt+1===Qe.length?(Ae[et++]=239,Ae[et++]=191,Ae[et++]=189):Tt=ut;continue}if(ut<56320){Ae[et++]=239,Ae[et++]=191,Ae[et++]=189,Tt=ut;continue}ut=Tt-55296<<10|ut-56320|65536,Tt=null}else Tt&&(Ae[et++]=239,Ae[et++]=191,Ae[et++]=189,Tt=null);ut<128?Ae[et++]=ut:(ut<2048?Ae[et++]=ut>>6|192:(ut<65536?Ae[et++]=ut>>12|224:(Ae[et++]=ut>>18|240,Ae[et++]=ut>>12&63|128),Ae[et++]=ut>>6&63|128),Ae[et++]=63&ut|128)}return et}(this.buf,N,this.pos);var fe=this.pos-G;fe>=128&&n0(G,fe,this),this.pos=G-1,this.writeVarint(fe),this.pos+=fe},writeFloat:function(N){this.realloc(4),th(this.buf,N,this.pos,!0,23,4),this.pos+=4},writeDouble:function(N){this.realloc(8),th(this.buf,N,this.pos,!0,52,8),this.pos+=8},writeBytes:function(N){var G=N.length;this.writeVarint(G),this.realloc(G);for(var fe=0;fe=128&&n0(fe,Ae,this),this.pos=fe-1,this.writeVarint(Ae),this.pos+=Ae},writeMessage:function(N,G,fe){this.writeTag(N,ic.Bytes),this.writeRawMessage(G,fe)},writePackedVarint:function(N,G){G.length&&this.writeMessage(N,N_,G)},writePackedSVarint:function(N,G){G.length&&this.writeMessage(N,ey,G)},writePackedBoolean:function(N,G){G.length&&this.writeMessage(N,R1,G)},writePackedFloat:function(N,G){G.length&&this.writeMessage(N,pg,G)},writePackedDouble:function(N,G){G.length&&this.writeMessage(N,ty,G)},writePackedFixed32:function(N,G){G.length&&this.writeMessage(N,z0,G)},writePackedSFixed32:function(N,G){G.length&&this.writeMessage(N,mg,G)},writePackedFixed64:function(N,G){G.length&&this.writeMessage(N,L1,G)},writePackedSFixed64:function(N,G){G.length&&this.writeMessage(N,I1,G)},writeBytesField:function(N,G){this.writeTag(N,ic.Bytes),this.writeBytes(G)},writeFixed32Field:function(N,G){this.writeTag(N,ic.Fixed32),this.writeFixed32(G)},writeSFixed32Field:function(N,G){this.writeTag(N,ic.Fixed32),this.writeSFixed32(G)},writeFixed64Field:function(N,G){this.writeTag(N,ic.Fixed64),this.writeFixed64(G)},writeSFixed64Field:function(N,G){this.writeTag(N,ic.Fixed64),this.writeSFixed64(G)},writeVarintField:function(N,G){this.writeTag(N,ic.Varint),this.writeVarint(G)},writeSVarintField:function(N,G){this.writeTag(N,ic.Varint),this.writeSVarint(G)},writeStringField:function(N,G){this.writeTag(N,ic.Bytes),this.writeString(G)},writeFloatField:function(N,G){this.writeTag(N,ic.Fixed32),this.writeFloat(G)},writeDoubleField:function(N,G){this.writeTag(N,ic.Fixed64),this.writeDouble(G)},writeBooleanField:function(N,G){this.writeVarintField(N,!!G)}};var Fx=3;function $_(N,G,fe){N===1&&fe.readMessage(Nx,G)}function Nx(N,G,fe){if(N===3){var Ae=fe.readMessage(V_,{}),Qe=Ae.id,et=Ae.bitmap,ut=Ae.width,Tt=Ae.height,Bt=Ae.left,rn=Ae.top,an=Ae.advance;G.push({id:Qe,bitmap:new Fl({width:ut+2*Fx,height:Tt+2*Fx},et),metrics:{width:ut,height:Tt,left:Bt,top:rn,advance:an}})}}function V_(N,G,fe){N===1?G.id=fe.readVarint():N===2?G.bitmap=fe.readBytes():N===3?G.width=fe.readVarint():N===4?G.height=fe.readVarint():N===5?G.left=fe.readSVarint():N===6?G.top=fe.readSVarint():N===7&&(G.advance=fe.readVarint())}var yb=Fx;function D1(N){for(var G=0,fe=0,Ae=0,Qe=N;Ae=0;Dn--){var Cn=ut[Dn];if(!(_n.w>Cn.w||_n.h>Cn.h)){if(_n.x=Cn.x,_n.y=Cn.y,Bt=Math.max(Bt,_n.y+_n.h),Tt=Math.max(Tt,_n.x+_n.w),_n.w===Cn.w&&_n.h===Cn.h){var Jn=ut.pop();Dn0&&bg>Uo&&(Uo=bg)}else{var Dm=Ja[Xs.fontStack],q1=Dm&&Dm[Mc];if(q1&&q1.rect)Im=q1.rect,il=q1.metrics;else{var Wx=Bs[Xs.fontStack],Ec=Wx&&Wx[Mc];if(!Ec)continue;il=Ec.metrics}Mh=(is-Xs.scale)*$l}Hp?(Zi.verticalizable=!0,Bl.push({glyph:Mc,imageName:ah,x:_u,y:qu+Mh,vertical:Hp,scale:Xs.scale,fontStack:Xs.fontStack,sectionIndex:ac,metrics:il,rect:Im}),_u+=Bu*Xs.scale+Fs):(Bl.push({glyph:Mc,imageName:ah,x:_u,y:qu+Mh,vertical:Hp,scale:Xs.scale,fontStack:Xs.fontStack,sectionIndex:ac,metrics:il,rect:Im}),_u+=il.advance*Xs.scale+Fs)}if(Bl.length!==0){var Qc=_u-Fs;Vc=Math.max(Qc,Vc),ZO(Bl,0,Bl.length-1,Uc,Uo)}_u=0;var Hc=zs*is+Uo;Ac.lineOffset=Math.max(Uo,Vs),qu+=Hc,ml=Math.max(Hc,ml),++wu}else qu+=zs,++wu}var _s=qu-ny,Jc=xb(gs),Pc=Jc.horizontalAlign,W1=Jc.verticalAlign;(function(uy,Y1,H0,X1,G1,K1,Zp,fy,JO){var Bm=(Y1-H0)*G1,Sb=0;Sb=K1!==Zp?-fy*X1-ny:(-X1*JO+.5)*Zp;for(var Wu=0,Yx=uy;Wu=0&&Ae>=N&&$x[this.text.charCodeAt(Ae)];Ae--)fe--;this.text=this.text.substring(N,fe),this.sectionIndex=this.sectionIndex.slice(N,fe)},cf.prototype.substring=function(N,G){var fe=new cf;return fe.text=this.text.substring(N,G),fe.sectionIndex=this.sectionIndex.slice(N,G),fe.sections=this.sections,fe},cf.prototype.toString=function(){return this.text},cf.prototype.getMaxScale=function(){var N=this;return this.sectionIndex.reduce(function(G,fe){return Math.max(G,N.sections[fe].scale)},0)},cf.prototype.addTextSection=function(N,G){this.text+=N.text,this.sections.push(B1.forText(N.scale,N.fontStack||G));for(var fe=this.sections.length-1,Ae=0;Ae=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var $x={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Nd={};function ry(N,G,fe,Ae,Qe,et){if(G.imageName){var ut=Ae[G.imageName];return ut?ut.displaySize[0]*G.scale*$l/et+Qe:0}var Tt=fe[G.fontStack],Bt=Tt&&Tt[N];return Bt?Bt.metrics.advance*G.scale+Qe:0}function HO(N,G,fe,Ae){var Qe=Math.pow(N-G,2);return Ae?N=0,an=0,_n=0;_n-fe/2;){if(--ut<0)return!1;Tt-=N[ut].dist(et),et=N[ut]}Tt+=N[ut].dist(N[ut+1]),ut++;for(var Bt=[],rn=0;TtAe;)rn-=Bt.shift().angleDelta;if(rn>Qe)return!1;ut++,Tt+=_n.dist(Dn)}return!0}function N1(N){for(var G=0,fe=0;fern){var Jn=(rn-Bt)/Cn,lr=ra(_n.x,Dn.x,Jn),Ar=ra(_n.y,Dn.y,Jn),Or=new gg(lr,Ar,Dn.angleTo(_n),an);return Or._round(),!ut||F1(N,Or,Tt,ut,G)?Or:void 0}Bt+=Cn}}function $1(N,G,fe,Ae,Qe,et,ut,Tt,Bt){var rn=iy(Ae,et,ut),an=qO(Ae,Qe),_n=an*ut,Dn=N[0].x===0||N[0].x===Bt||N[0].y===0||N[0].y===Bt;return G-_n=0&&uo=0&&ro=0&&Dn+rn<=an){var Po=new gg(uo,ro,jr,Jn);Po._round(),Ae&&!F1(N,Po,et,Ae,Qe)||Cn.push(Po)}}_n+=Or}return Tt||Cn.length||ut||(Cn=rh(N,_n/2,fe,Ae,Qe,et,ut,!0,Bt)),Cn}function H_(N,G,fe,Ae,Qe){for(var et=[],ut=0;ut=Ae&&_n.x>=Ae||(an.x>=Ae?an=new a(Ae,an.y+(_n.y-an.y)*((Ae-an.x)/(_n.x-an.x)))._round():_n.x>=Ae&&(_n=new a(Ae,an.y+(_n.y-an.y)*((Ae-an.x)/(_n.x-an.x)))._round()),an.y>=Qe&&_n.y>=Qe||(an.y>=Qe?an=new a(an.x+(_n.x-an.x)*((Qe-an.y)/(_n.y-an.y)),Qe)._round():_n.y>=Qe&&(_n=new a(an.x+(_n.x-an.x)*((Qe-an.y)/(_n.y-an.y)),Qe)._round()),Bt&&an.equals(Bt[Bt.length-1])||(Bt=[an],et.push(Bt)),Bt.push(_n)))))}return et}var nc=vd;function $0(N,G,fe,Ae){var Qe=[],et=N.image,ut=et.pixelRatio,Tt=et.paddedRect.w-2*nc,Bt=et.paddedRect.h-2*nc,rn=N.right-N.left,an=N.bottom-N.top,_n=et.stretchX||[[0,Tt]],Dn=et.stretchY||[[0,Bt]],Cn=function(zs,gs){return zs+gs[1]-gs[0]},Jn=_n.reduce(Cn,0),lr=Dn.reduce(Cn,0),Ar=Tt-Jn,Or=Bt-lr,jr=0,Jr=Jn,uo=0,ro=lr,Po=0,gi=Ar,ni=0,Ti=Or;if(et.content&&Ae){var vi=et.content;jr=yd(_n,0,vi[0]),uo=yd(Dn,0,vi[1]),Jr=yd(_n,vi[0],vi[2]),ro=yd(Dn,vi[1],vi[3]),Po=vi[0]-jr,ni=vi[1]-uo,gi=vi[2]-vi[0]-Jr,Ti=vi[3]-vi[1]-ro}var na=function(zs,gs,rc,aa){var Fs=V1(zs.stretch-jr,Jr,rn,N.left),$c=r0(zs.fixed-Po,gi,zs.stretch,Jn),xc=V1(gs.stretch-uo,ro,an,N.top),_u=r0(gs.fixed-ni,Ti,gs.stretch,lr),qu=V1(rc.stretch-jr,Jr,rn,N.left),Vc=r0(rc.fixed-Po,gi,rc.stretch,Jn),ml=V1(aa.stretch-uo,ro,an,N.top),Uc=r0(aa.fixed-ni,Ti,aa.stretch,lr),wu=new a(Fs,xc),uf=new a(qu,xc),ff=new a(qu,ml),jc=new a(Fs,ml),is=new a($c/ut,_u/ut),Vs=new a(Vc/ut,Uc/ut),Ac=G*Math.PI/180;if(Ac){var Bl=Math.sin(Ac),Uo=Math.cos(Ac),ql=[Uo,-Bl,Bl,Uo];wu._matMult(ql),uf._matMult(ql),jc._matMult(ql),ff._matMult(ql)}var Xs=zs.stretch+zs.fixed,ac=rc.stretch+rc.fixed,Mc=gs.stretch+gs.fixed,Mh=aa.stretch+aa.fixed;return{tl:wu,tr:uf,bl:jc,br:ff,tex:{x:et.paddedRect.x+nc+Xs,y:et.paddedRect.y+nc+Mc,w:ac-Xs,h:Mh-Mc},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:is,pixelOffsetBR:Vs,minFontScaleX:gi/ut/rn,minFontScaleY:Ti/ut/an,isSDF:fe}};if(Ae&&(et.stretchX||et.stretchY))for(var ea=OS(_n,Ar,Jn),La=OS(Dn,Or,lr),ca=0;ca0&&(Cn=Math.max(10,Cn),this.circleDiameter=Cn)}else{var Jn=et.top*ut-Tt,lr=et.bottom*ut+Tt,Ar=et.left*ut-Tt,Or=et.right*ut+Tt,jr=et.collisionPadding;if(jr&&(Ar-=jr[0]*ut,Jn-=jr[1]*ut,Or+=jr[2]*ut,lr+=jr[3]*ut),rn){var Jr=new a(Ar,Jn),uo=new a(Or,Jn),ro=new a(Ar,lr),Po=new a(Or,lr),gi=rn*Math.PI/180;Jr._rotate(gi),uo._rotate(gi),ro._rotate(gi),Po._rotate(gi),Ar=Math.min(Jr.x,uo.x,ro.x,Po.x),Or=Math.max(Jr.x,uo.x,ro.x,Po.x),Jn=Math.min(Jr.y,uo.y,ro.y,Po.y),lr=Math.max(Jr.y,uo.y,ro.y,Po.y)}N.emplaceBack(G.x,G.y,Ar,Jn,Or,lr,fe,Ae,Qe)}this.boxEndIndex=N.length},oh=function(N,G){if(N===void 0&&(N=[]),G===void 0&&(G=Ch),this.data=N,this.length=this.data.length,this.compare=G,this.length>0)for(var fe=(this.length>>1)-1;fe>=0;fe--)this._down(fe)};function Ch(N,G){return NG?1:0}function Z_(N,G,fe){G===void 0&&(G=1),fe===void 0&&(fe=!1);for(var Ae=1/0,Qe=1/0,et=-1/0,ut=-1/0,Tt=N[0],Bt=0;Btet)&&(et=rn.x),(!Bt||rn.y>ut)&&(ut=rn.y)}var an=et-Ae,_n=ut-Qe,Dn=Math.min(an,_n),Cn=Dn/2,Jn=new oh([],q_);if(Dn===0)return new a(Ae,Qe);for(var lr=Ae;lrOr.d||!Or.d)&&(Or=Jr,fe&&console.log("found best %d after %d probes",Math.round(1e4*Jr.d)/1e4,jr)),Jr.max-Or.d<=G||(Cn=Jr.h/2,Jn.push(new V0(Jr.p.x-Cn,Jr.p.y-Cn,Cn,N)),Jn.push(new V0(Jr.p.x+Cn,Jr.p.y-Cn,Cn,N)),Jn.push(new V0(Jr.p.x-Cn,Jr.p.y+Cn,Cn,N)),Jn.push(new V0(Jr.p.x+Cn,Jr.p.y+Cn,Cn,N)),jr+=4)}return fe&&(console.log("num probes: "+jr),console.log("best distance: "+Or.d)),Or.p}function q_(N,G){return G.max-N.max}function V0(N,G,fe,Ae){this.p=new a(N,G),this.h=fe,this.d=function(Qe,et){for(var ut=!1,Tt=1/0,Bt=0;BtQe.y!=Jn.y>Qe.y&&Qe.x<(Jn.x-Cn.x)*(Qe.y-Cn.y)/(Jn.y-Cn.y)+Cn.x&&(ut=!ut),Tt=Math.min(Tt,Mx(Qe,Cn,Jn))}return(ut?1:-1)*Math.sqrt(Tt)}(this.p,Ae),this.max=this.d+this.h*Math.SQRT2}oh.prototype.push=function(N){this.data.push(N),this.length++,this._up(this.length-1)},oh.prototype.pop=function(){if(this.length!==0){var N=this.data[0],G=this.data.pop();return this.length--,this.length>0&&(this.data[0]=G,this._down(0)),N}},oh.prototype.peek=function(){return this.data[0]},oh.prototype._up=function(N){for(var G=this.data,fe=this.compare,Ae=G[N];N>0;){var Qe=N-1>>1,et=G[Qe];if(fe(Ae,et)>=0)break;G[N]=et,N=Qe}G[N]=Ae},oh.prototype._down=function(N){for(var G=this.data,fe=this.compare,Ae=this.length>>1,Qe=G[N];N=0)break;G[N]=ut,N=et}G[N]=Qe};var Up=7,W_=Number.POSITIVE_INFINITY;function U0(N,G){return G[1]!==W_?function(fe,Ae,Qe){var et=0,ut=0;switch(Ae=Math.abs(Ae),Qe=Math.abs(Qe),fe){case"top-right":case"top-left":case"top":ut=Qe-Up;break;case"bottom-right":case"bottom-left":case"bottom":ut=-Qe+Up}switch(fe){case"top-right":case"bottom-right":case"right":et=-Ae;break;case"top-left":case"bottom-left":case"left":et=Ae}return[et,ut]}(N,G[0],G[1]):function(fe,Ae){var Qe=0,et=0;Ae<0&&(Ae=0);var ut=Ae/Math.sqrt(2);switch(fe){case"top-right":case"top-left":et=ut-Up;break;case"bottom-right":case"bottom-left":et=-ut+Up;break;case"bottom":et=-Ae+Up;break;case"top":et=Ae-Up}switch(fe){case"top-right":case"bottom-right":Qe=-ut;break;case"top-left":case"bottom-left":Qe=ut;break;case"left":Qe=Ae;break;case"right":Qe=-Ae}return[Qe,et]}(N,G[0])}function jp(N){switch(N){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var o0=255,Ra=o0*dp;function bd(N,G,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn){var lr=function(uo,ro,Po,gi,ni,Ti,vi,na){for(var ea=gi.layout.get("text-rotate").evaluate(Ti,{})*Math.PI/180,La=[],ca=0,Zi=ro.positionedLines;caRa&&$(N.layerIds[0]+': Value for "text-size" is >= '+o0+'. Reduce your "text-size".'):Ar.kind==="composite"&&((Or=[dp*Cn.compositeTextSizes[0].evaluate(ut,{},Jn),dp*Cn.compositeTextSizes[1].evaluate(ut,{},Jn)])[0]>Ra||Or[1]>Ra)&&$(N.layerIds[0]+': Value for "text-size" is >= '+o0+'. Reduce your "text-size".'),N.addSymbols(N.text,lr,Or,Tt,et,ut,rn,G,Bt.lineStartIndex,Bt.lineLength,Dn,Jn);for(var jr=0,Jr=an;jr=0;ut--)if(Ae.dist(et[ut])0)&&(et.value.kind!=="constant"||et.value.value.length>0),rn=Tt.value.kind!=="constant"||!!Tt.value.value||Object.keys(Tt.parameters).length>0,an=Qe.get("symbol-sort-key");if(this.features=[],Bt||rn){for(var _n=G.iconDependencies,Dn=G.glyphDependencies,Cn=G.availableImages,Jn=new fs(this.zoom),lr=0,Ar=N;lr=0;for(var Ja=0,Vl=ni.sections;Ja=0;Tt--)et[Tt]={x:G[Tt].x,y:G[Tt].y,tileUnitDistanceFromAnchor:Qe},Tt>0&&(Qe+=G[Tt-1].dist(G[Tt]));for(var Bt=0;Bt0},kl.prototype.hasIconData=function(){return this.icon.segments.get().length>0},kl.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},kl.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},kl.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},kl.prototype.addIndicesForPlacedSymbol=function(N,G){for(var fe=N.placedSymbolArray.get(G),Ae=fe.vertexStartIndex+4*fe.numGlyphs,Qe=fe.vertexStartIndex;Qe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(N),this.sortedAngle=N,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var fe=0,Ae=this.symbolInstanceIndexes;fe=0&&Bt.indexOf(ut)===Tt&&G.addIndicesForPlacedSymbol(G.text,ut)}),et.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,et.verticalPlacedTextSymbolIndex),et.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,et.placedIconSymbolIndex),et.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,et.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},pi("SymbolBucket",kl,{omit:["layers","collisionBoxArray","features","compareText"]}),kl.MAX_GLYPHS=65535,kl.addDynamicAttributes=j1;var SS=new Jl({"symbol-placement":new Vi(xt.layout_symbol["symbol-placement"]),"symbol-spacing":new Vi(xt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Vi(xt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new fa(xt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Vi(xt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Vi(xt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Vi(xt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Vi(xt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Vi(xt.layout_symbol["icon-rotation-alignment"]),"icon-size":new fa(xt.layout_symbol["icon-size"]),"icon-text-fit":new Vi(xt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Vi(xt.layout_symbol["icon-text-fit-padding"]),"icon-image":new fa(xt.layout_symbol["icon-image"]),"icon-rotate":new fa(xt.layout_symbol["icon-rotate"]),"icon-padding":new Vi(xt.layout_symbol["icon-padding"]),"icon-keep-upright":new Vi(xt.layout_symbol["icon-keep-upright"]),"icon-offset":new fa(xt.layout_symbol["icon-offset"]),"icon-anchor":new fa(xt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Vi(xt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Vi(xt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Vi(xt.layout_symbol["text-rotation-alignment"]),"text-field":new fa(xt.layout_symbol["text-field"]),"text-font":new fa(xt.layout_symbol["text-font"]),"text-size":new fa(xt.layout_symbol["text-size"]),"text-max-width":new fa(xt.layout_symbol["text-max-width"]),"text-line-height":new Vi(xt.layout_symbol["text-line-height"]),"text-letter-spacing":new fa(xt.layout_symbol["text-letter-spacing"]),"text-justify":new fa(xt.layout_symbol["text-justify"]),"text-radial-offset":new fa(xt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Vi(xt.layout_symbol["text-variable-anchor"]),"text-anchor":new fa(xt.layout_symbol["text-anchor"]),"text-max-angle":new Vi(xt.layout_symbol["text-max-angle"]),"text-writing-mode":new Vi(xt.layout_symbol["text-writing-mode"]),"text-rotate":new fa(xt.layout_symbol["text-rotate"]),"text-padding":new Vi(xt.layout_symbol["text-padding"]),"text-keep-upright":new Vi(xt.layout_symbol["text-keep-upright"]),"text-transform":new fa(xt.layout_symbol["text-transform"]),"text-offset":new fa(xt.layout_symbol["text-offset"]),"text-allow-overlap":new Vi(xt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Vi(xt.layout_symbol["text-ignore-placement"]),"text-optional":new Vi(xt.layout_symbol["text-optional"])}),Y_={paint:new Jl({"icon-opacity":new fa(xt.paint_symbol["icon-opacity"]),"icon-color":new fa(xt.paint_symbol["icon-color"]),"icon-halo-color":new fa(xt.paint_symbol["icon-halo-color"]),"icon-halo-width":new fa(xt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new fa(xt.paint_symbol["icon-halo-blur"]),"icon-translate":new Vi(xt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Vi(xt.paint_symbol["icon-translate-anchor"]),"text-opacity":new fa(xt.paint_symbol["text-opacity"]),"text-color":new fa(xt.paint_symbol["text-color"],{runtimeType:er,getOverride:function(N){return N.textColor},hasOverride:function(N){return!!N.textColor}}),"text-halo-color":new fa(xt.paint_symbol["text-halo-color"]),"text-halo-width":new fa(xt.paint_symbol["text-halo-width"]),"text-halo-blur":new fa(xt.paint_symbol["text-halo-blur"]),"text-translate":new Vi(xt.paint_symbol["text-translate"]),"text-translate-anchor":new Vi(xt.paint_symbol["text-translate-anchor"])}),layout:SS},Pm=function(N){this.type=N.property.overrides?N.property.overrides.runtimeType:fn,this.defaultValue=N};Pm.prototype.evaluate=function(N){if(N.formattedSection){var G=this.defaultValue.property.overrides;if(G&&G.hasOverride(N.formattedSection))return G.getOverride(N.formattedSection)}return N.feature&&N.featureState?this.defaultValue.evaluate(N.feature,N.featureState):this.defaultValue.property.specification.default},Pm.prototype.eachChild=function(N){this.defaultValue.isConstant()||N(this.defaultValue.value._styleExpression.expression)},Pm.prototype.outputDefined=function(){return!1},Pm.prototype.serialize=function(){return null},pi("FormatSectionOverride",Pm,{omit:["defaultValue"]});var fi=function(N){function G(fe){N.call(this,fe,Y_)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.recalculate=function(fe,Ae){if(N.prototype.recalculate.call(this,fe,Ae),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var Qe=this.layout.get("text-writing-mode");if(Qe){for(var et=[],ut=0,Tt=Qe;ut",targetMapId:Ae,sourceMapId:et.mapId})}}},ih.prototype.receive=function(N){var G=N.data,fe=G.id;if(fe&&(!G.targetMapId||this.mapId===G.targetMapId))if(G.type===""){delete this.tasks[fe];var Ae=this.cancelCallbacks[fe];delete this.cancelCallbacks[fe],Ae&&Ae()}else U()||G.mustQueue?(this.tasks[fe]=G,this.taskQueue.push(fe),this.invoker.trigger()):this.processTask(fe,G)},ih.prototype.process=function(){if(this.taskQueue.length){var N=this.taskQueue.shift(),G=this.tasks[N];delete this.tasks[N],this.taskQueue.length&&this.invoker.trigger(),G&&this.processTask(N,G)}},ih.prototype.processTask=function(N,G){var fe=this;if(G.type===""){var Ae=this.callbacks[N];delete this.callbacks[N],Ae&&(G.error?Ae(Kl(G.error)):Ae(null,Kl(G.data)))}else{var Qe=!1,et=W(this.globalScope)?void 0:[],ut=G.hasCallback?function(an,_n){Qe=!0,delete fe.cancelCallbacks[N],fe.target.postMessage({id:N,type:"",sourceMapId:fe.mapId,error:an?Yc(an):null,data:Yc(_n,et)},et)}:function(an){Qe=!0},Tt=null,Bt=Kl(G.data);if(this.parent[G.type])Tt=this.parent[G.type](G.sourceMapId,Bt,ut);else if(this.parent.getWorkerSource){var rn=G.type.split(".");Tt=this.parent.getWorkerSource(G.sourceMapId,rn[0],Bt.source)[rn[1]](Bt,ut)}else ut(new Error("Could not find function "+G.type));!Qe&&Tt&&Tt.cancel&&(this.cancelCallbacks[N]=Tt.cancel)}},ih.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Cc=function(N,G){N&&(G?this.setSouthWest(N).setNorthEast(G):N.length===4?this.setSouthWest([N[0],N[1]]).setNorthEast([N[2],N[3]]):this.setSouthWest(N[0]).setNorthEast(N[1]))};Cc.prototype.setNorthEast=function(N){return this._ne=N instanceof yc?new yc(N.lng,N.lat):yc.convert(N),this},Cc.prototype.setSouthWest=function(N){return this._sw=N instanceof yc?new yc(N.lng,N.lat):yc.convert(N),this},Cc.prototype.extend=function(N){var G,fe,Ae=this._sw,Qe=this._ne;if(N instanceof yc)G=N,fe=N;else{if(!(N instanceof Cc)){if(Array.isArray(N)){if(N.length===4||N.every(Array.isArray)){var et=N;return this.extend(Cc.convert(et))}var ut=N;return this.extend(yc.convert(ut))}return this}if(G=N._sw,fe=N._ne,!G||!fe)return this}return Ae||Qe?(Ae.lng=Math.min(G.lng,Ae.lng),Ae.lat=Math.min(G.lat,Ae.lat),Qe.lng=Math.max(fe.lng,Qe.lng),Qe.lat=Math.max(fe.lat,Qe.lat)):(this._sw=new yc(G.lng,G.lat),this._ne=new yc(fe.lng,fe.lat)),this},Cc.prototype.getCenter=function(){return new yc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Cc.prototype.getSouthWest=function(){return this._sw},Cc.prototype.getNorthEast=function(){return this._ne},Cc.prototype.getNorthWest=function(){return new yc(this.getWest(),this.getNorth())},Cc.prototype.getSouthEast=function(){return new yc(this.getEast(),this.getSouth())},Cc.prototype.getWest=function(){return this._sw.lng},Cc.prototype.getSouth=function(){return this._sw.lat},Cc.prototype.getEast=function(){return this._ne.lng},Cc.prototype.getNorth=function(){return this._ne.lat},Cc.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Cc.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Cc.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Cc.prototype.contains=function(N){var G=yc.convert(N),fe=G.lng,Ae=G.lat,Qe=this._sw.lat<=Ae&&Ae<=this._ne.lat,et=this._sw.lng<=fe&&fe<=this._ne.lng;return this._sw.lng>this._ne.lng&&(et=this._sw.lng>=fe&&fe>=this._ne.lng),Qe&&et},Cc.convert=function(N){return!N||N instanceof Cc?N:new Cc(N)};var XO=63710088e-1,yc=function(N,G){if(isNaN(N)||isNaN(G))throw new Error("Invalid LngLat object: ("+N+", "+G+")");if(this.lng=+N,this.lat=+G,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};yc.prototype.wrap=function(){return new yc(A(this.lng,-180,180),this.lat)},yc.prototype.toArray=function(){return[this.lng,this.lat]},yc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},yc.prototype.distanceTo=function(N){var G=Math.PI/180,fe=this.lat*G,Ae=N.lat*G,Qe=Math.sin(fe)*Math.sin(Ae)+Math.cos(fe)*Math.cos(Ae)*Math.cos((N.lng-this.lng)*G);return XO*Math.acos(Math.min(Qe,1))},yc.prototype.toBounds=function(N){N===void 0&&(N=0);var G=360*N/40075017,fe=G/Math.cos(Math.PI/180*this.lat);return new Cc(new yc(this.lng-fe,this.lat-G),new yc(this.lng+fe,this.lat+G))},yc.convert=function(N){if(N instanceof yc)return N;if(Array.isArray(N)&&(N.length===2||N.length===3))return new yc(Number(N[0]),Number(N[1]));if(!Array.isArray(N)&&typeof N=="object"&&N!==null)return new yc(Number("lng"in N?N.lng:N.lon),Number(N.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var GO=2*Math.PI*XO;function Zx(N){return GO*Math.cos(N*Math.PI/180)}function wb(N){return(180+N)/360}function K_(N){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+N*Math.PI/360)))/360}function qx(N,G){return N/Zx(G)}function J_(N){var G=180-360*N;return 360/Math.PI*Math.atan(Math.exp(G*Math.PI/180))-90}var Lm=function(N,G,fe){fe===void 0&&(fe=0),this.x=+N,this.y=+G,this.z=+fe};Lm.fromLngLat=function(N,G){G===void 0&&(G=0);var fe=yc.convert(N);return new Lm(wb(fe.lng),K_(fe.lat),qx(G,fe.lat))},Lm.prototype.toLngLat=function(){return new yc(360*this.x-180,J_(this.y))},Lm.prototype.toAltitude=function(){return N=this.z,G=this.y,N*Zx(J_(G));var N,G},Lm.prototype.meterInMercatorCoordinateUnits=function(){return 1/GO*(N=J_(this.y),1/Math.cos(N*Math.PI/180));var N};var qh=function(N,G,fe){this.z=N,this.x=G,this.y=fe,this.key=H1(0,N,N,G,fe)};qh.prototype.equals=function(N){return this.z===N.z&&this.x===N.x&&this.y===N.y},qh.prototype.url=function(N,G){var fe,Ae,Qe,et,ut,Tt=(fe=this.x,Ae=this.y,Qe=this.z,et=G_(256*fe,256*(Ae=Math.pow(2,Qe)-Ae-1),Qe),ut=G_(256*(fe+1),256*(Ae+1),Qe),et[0]+","+et[1]+","+ut[0]+","+ut[1]),Bt=function(rn,an,_n){for(var Dn,Cn="",Jn=rn;Jn>0;Jn--)Cn+=(an&(Dn=1<this.canonical.z?new Kc(N,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Kc(N,this.wrap,N,this.canonical.x>>G,this.canonical.y>>G)},Kc.prototype.calculateScaledKey=function(N,G){var fe=this.canonical.z-N;return N>this.canonical.z?H1(this.wrap*+G,N,this.canonical.z,this.canonical.x,this.canonical.y):H1(this.wrap*+G,N,N,this.canonical.x>>fe,this.canonical.y>>fe)},Kc.prototype.isChildOf=function(N){if(N.wrap!==this.wrap)return!1;var G=this.canonical.z-N.canonical.z;return N.overscaledZ===0||N.overscaledZ>G&&N.canonical.y===this.canonical.y>>G},Kc.prototype.children=function(N){if(this.overscaledZ>=N)return[new Kc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var G=this.canonical.z+1,fe=2*this.canonical.x,Ae=2*this.canonical.y;return[new Kc(G,this.wrap,G,fe,Ae),new Kc(G,this.wrap,G,fe+1,Ae),new Kc(G,this.wrap,G,fe,Ae+1),new Kc(G,this.wrap,G,fe+1,Ae+1)]},Kc.prototype.isLessThan=function(N){return this.wrapN.wrap)&&(this.overscaledZN.overscaledZ)&&(this.canonical.xN.canonical.x)&&this.canonical.y=this.dim+1||G<-1||G>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(G+1)*this.stride+(N+1)},Qp.prototype._unpackMapbox=function(N,G,fe){return(256*N*256+256*G+fe)/10-1e4},Qp.prototype._unpackTerrarium=function(N,G,fe){return 256*N+G+fe/256-32768},Qp.prototype.getPixels=function(){return new Yf({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Qp.prototype.backfillBorder=function(N,G,fe){if(this.dim!==N.dim)throw new Error("dem dimension mismatch");var Ae=G*this.dim,Qe=G*this.dim+this.dim,et=fe*this.dim,ut=fe*this.dim+this.dim;switch(G){case-1:Ae=Qe-1;break;case 1:Qe=Ae+1}switch(fe){case-1:et=ut-1;break;case 1:ut=et+1}for(var Tt=-G*this.dim,Bt=-fe*this.dim,rn=et;rn=0&&an[3]>=0&&Tt.insert(ut,an[0],an[1],an[2],an[3])}},bc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Cf.VectorTile(new Bx(this.rawTileData)).layers,this.sourceLayerCoder=new ly(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},bc.prototype.query=function(N,G,fe,Ae){var Qe=this;this.loadVTLayers();for(var et=N.params||{},ut=Hs/N.tileSize/N.scale,Tt=Pu(et.filter),Bt=N.queryGeometry,rn=N.queryPadding*ut,an=ew(Bt),_n=this.grid.query(an.minX-rn,an.minY-rn,an.maxX+rn,an.maxY+rn),Dn=ew(N.cameraQueryGeometry),Cn=0,Jn=this.grid3D.query(Dn.minX-rn,Dn.minY-rn,Dn.maxX+rn,Dn.maxY+rn,function(uo,ro,Po,gi){return function(ni,Ti,vi,na,ea){for(var La=0,ca=ni;La=Zi.x&&ea>=Zi.y)return!0}var Bs=[new a(Ti,vi),new a(Ti,ea),new a(na,ea),new a(na,vi)];if(ni.length>2){for(var Ja=0,Vl=Bs;Ja=0)return!0;return!1}(et,_n)){var Dn=this.sourceLayerCoder.decode(fe),Cn=this.vtLayers[Dn].feature(Ae);if(Qe.needGeometry){var Jn=tc(Cn,!0);if(!Qe.filter(new fs(this.tileID.overscaledZ),Jn,this.tileID.canonical))return}else if(!Qe.filter(new fs(this.tileID.overscaledZ),Cn))return;for(var lr=this.getId(Cn,Dn),Ar=0;Ar<_n.length;Ar++){var Or=_n[Ar];if(!(et&&et.indexOf(Or)<0)){var jr=Tt[Or];if(jr){var Jr={};lr!==void 0&&rn&&(Jr=rn.getState(jr.sourceLayer||"_geojsonTileLayer",lr));var uo=x({},Bt[Or]);uo.paint=KO(uo.paint,jr.paint,Cn,Jr,ut),uo.layout=KO(uo.layout,jr.layout,Cn,Jr,ut);var ro=!an||an(Cn,jr,Jr);if(ro){var Po=new cy(Cn,this.z,this.x,this.y,lr);Po.layer=uo;var gi=N[Or];gi===void 0&&(gi=N[Or]=[]),gi.push({featureIndex:Ae,feature:Po,intersectionZ:ro})}}}}}},bc.prototype.lookupSymbolFeatures=function(N,G,fe,Ae,Qe,et,ut,Tt){var Bt={};this.loadVTLayers();for(var rn=Pu(Qe),an=0,_n=N;an<_n.length;an+=1){var Dn=_n[an];this.loadMatchingFeature(Bt,fe,Ae,Dn,rn,et,ut,Tt,G)}return Bt},bc.prototype.hasLayer=function(N){for(var G=0,fe=this.bucketLayerIDs;GAe)Qe=!1;else if(G)if(this.expirationTimeot&&(N.getActor().send("enforceCacheSizeLimit",nt),qt=0)},i.clamp=S,i.clearTileCache=function(N){var G=h.caches.delete(je);N&&G.catch(N).then(function(){return N()})},i.clipLine=H_,i.clone=function(N){var G=new Tf(16);return G[0]=N[0],G[1]=N[1],G[2]=N[2],G[3]=N[3],G[4]=N[4],G[5]=N[5],G[6]=N[6],G[7]=N[7],G[8]=N[8],G[9]=N[9],G[10]=N[10],G[11]=N[11],G[12]=N[12],G[13]=N[13],G[14]=N[14],G[15]=N[15],G},i.clone$1=I,i.clone$2=function(N){var G=new Tf(3);return G[0]=N[0],G[1]=N[1],G[2]=N[2],G},i.collisionCircleLayout=Kv,i.config=ce,i.create=function(){var N=new Tf(16);return Tf!=Float32Array&&(N[1]=0,N[2]=0,N[3]=0,N[4]=0,N[6]=0,N[7]=0,N[8]=0,N[9]=0,N[11]=0,N[12]=0,N[13]=0,N[14]=0),N[0]=1,N[5]=1,N[10]=1,N[15]=1,N},i.create$1=function(){var N=new Tf(9);return Tf!=Float32Array&&(N[1]=0,N[2]=0,N[3]=0,N[5]=0,N[6]=0,N[7]=0),N[0]=1,N[4]=1,N[8]=1,N},i.create$2=function(){var N=new Tf(4);return Tf!=Float32Array&&(N[1]=0,N[2]=0),N[0]=1,N[3]=1,N},i.createCommonjsModule=O,i.createExpression=Gd,i.createLayout=El,i.createStyleLayer=function(N){return N.type==="custom"?new TS(N):new _b[N.type](N)},i.cross=function(N,G,fe){var Ae=G[0],Qe=G[1],et=G[2],ut=fe[0],Tt=fe[1],Bt=fe[2];return N[0]=Qe*Bt-et*Tt,N[1]=et*ut-Ae*Bt,N[2]=Ae*Tt-Qe*ut,N},i.deepEqual=function N(G,fe){if(Array.isArray(G)){if(!Array.isArray(fe)||G.length!==fe.length)return!1;for(var Ae=0;Ae0&&(et=1/Math.sqrt(et)),N[0]=G[0]*et,N[1]=G[1]*et,N[2]=G[2]*et,N},i.number=ra,i.offscreenCanvasSupported=en,i.ortho=function(N,G,fe,Ae,Qe,et,ut){var Tt=1/(G-fe),Bt=1/(Ae-Qe),rn=1/(et-ut);return N[0]=-2*Tt,N[1]=0,N[2]=0,N[3]=0,N[4]=0,N[5]=-2*Bt,N[6]=0,N[7]=0,N[8]=0,N[9]=0,N[10]=2*rn,N[11]=0,N[12]=(G+fe)*Tt,N[13]=(Qe+Ae)*Bt,N[14]=(ut+et)*rn,N[15]=1,N},i.parseGlyphPBF=function(N){return new Bx(N).readFields($_,[])},i.pbf=Bx,i.performSymbolLayout=function(N,G,fe,Ae,Qe,et,ut){N.createArrays();var Tt=512*N.overscaling;N.tilePixelRatio=Hs/Tt,N.compareText={},N.iconsNeedLinear=!1;var Bt=N.layers[0].layout,rn=N.layers[0]._unevaluatedLayout._values,an={};if(N.textSizeData.kind==="composite"){var _n=N.textSizeData,Dn=_n.minZoom,Cn=_n.maxZoom;an.compositeTextSizes=[rn["text-size"].possiblyEvaluate(new fs(Dn),ut),rn["text-size"].possiblyEvaluate(new fs(Cn),ut)]}if(N.iconSizeData.kind==="composite"){var Jn=N.iconSizeData,lr=Jn.minZoom,Ar=Jn.maxZoom;an.compositeIconSizes=[rn["icon-size"].possiblyEvaluate(new fs(lr),ut),rn["icon-size"].possiblyEvaluate(new fs(Ar),ut)]}an.layoutTextSize=rn["text-size"].possiblyEvaluate(new fs(N.zoom+1),ut),an.layoutIconSize=rn["icon-size"].possiblyEvaluate(new fs(N.zoom+1),ut),an.textMaxSize=rn["text-size"].possiblyEvaluate(new fs(18));for(var Or=Bt.get("text-line-height")*$l,jr=Bt.get("text-rotation-alignment")==="map"&&Bt.get("symbol-placement")!=="point",Jr=Bt.get("text-keep-upright"),uo=Bt.get("text-size"),ro=function(){var ni=gi[Po],Ti=Bt.get("text-font").evaluate(ni,{},ut).join(","),vi=uo.evaluate(ni,{},ut),na=an.layoutTextSize.evaluate(ni,{},ut),ea=an.layoutIconSize.evaluate(ni,{},ut),La={horizontal:{},vertical:void 0},ca=ni.text,Zi=[0,0];if(ca){var Bs=ca.toString(),Ja=Bt.get("text-letter-spacing").evaluate(ni,{},ut)*$l,Vl=function(is){for(var Vs=0,Ac=is;Vs=Hs||hy.y<0||hy.y>=Hs||function(eu,Eh,ev,_g,Ab,nw,Mb,wg,tv,py,Gx,Eb,nv,e3,my,wd,Kx,Jx,e2,Pb,Wh,t2,Rb,zm,rw){var n2,Fm,q0,rv,ov,iv=eu.addToLineVertexArray(Eh,ev),t3=0,ow=0,iw=0,aw=0,gy=-1,W0=-1,Og={},n3=yi(""),vy=0,sw=0;if(wg._unevaluatedLayout.getValue("text-radial-offset")===void 0?(vy=(n2=wg.layout.get("text-offset").evaluate(Wh,{},zm).map(function(Nm){return Nm*$l}))[0],sw=n2[1]):(vy=wg.layout.get("text-radial-offset").evaluate(Wh,{},zm)*$l,sw=W_),eu.allowVerticalPlacement&&_g.vertical){var pp=wg.layout.get("text-rotate").evaluate(Wh,{},zm)+90,r2=_g.vertical;rv=new vg(tv,Eh,py,Gx,Eb,r2,nv,e3,my,pp),Mb&&(ov=new vg(tv,Eh,py,Gx,Eb,Mb,Kx,Jx,my,pp))}if(Ab){var yy=wg.layout.get("icon-rotate").evaluate(Wh,{}),Lb=wg.layout.get("icon-text-fit")!=="none",Od=$0(Ab,yy,Rb,Lb),Sg=Mb?$0(Mb,yy,Rb,Lb):void 0;q0=new vg(tv,Eh,py,Gx,Eb,Ab,Kx,Jx,!1,yy),t3=4*Od.length;var s0=eu.iconSizeData,Ib=null;s0.kind==="source"?(Ib=[dp*wg.layout.get("icon-size").evaluate(Wh,{})])[0]>Ra&&$(eu.layerIds[0]+': Value for "icon-size" is >= '+o0+'. Reduce your "icon-size".'):s0.kind==="composite"&&((Ib=[dp*t2.compositeIconSizes[0].evaluate(Wh,{},zm),dp*t2.compositeIconSizes[1].evaluate(Wh,{},zm)])[0]>Ra||Ib[1]>Ra)&&$(eu.layerIds[0]+': Value for "icon-size" is >= '+o0+'. Reduce your "icon-size".'),eu.addSymbols(eu.icon,Od,Ib,Pb,e2,Wh,!1,Eh,iv.lineStartIndex,iv.lineLength,-1,zm),gy=eu.icon.placedSymbolArray.length-1,Sg&&(ow=4*Sg.length,eu.addSymbols(eu.icon,Sg,Ib,Pb,e2,Wh,Kf.vertical,Eh,iv.lineStartIndex,iv.lineLength,-1,zm),W0=eu.icon.placedSymbolArray.length-1)}for(var l0 in _g.horizontal){var Y0=_g.horizontal[l0];if(!Fm){n3=yi(Y0.text);var AS=wg.layout.get("text-rotate").evaluate(Wh,{},zm);Fm=new vg(tv,Eh,py,Gx,Eb,Y0,nv,e3,my,AS)}var r3=Y0.positionedLines.length===1;if(iw+=bd(eu,Eh,Y0,nw,wg,my,Wh,wd,iv,_g.vertical?Kf.horizontal:Kf.horizontalOnly,r3?Object.keys(_g.horizontal):[l0],Og,gy,t2,zm),r3)break}_g.vertical&&(aw+=bd(eu,Eh,_g.vertical,nw,wg,my,Wh,wd,iv,Kf.vertical,["vertical"],Og,W0,t2,zm));var o3=Fm?Fm.boxStartIndex:eu.collisionBoxArray.length,o2=Fm?Fm.boxEndIndex:eu.collisionBoxArray.length,i2=rv?rv.boxStartIndex:eu.collisionBoxArray.length,MS=rv?rv.boxEndIndex:eu.collisionBoxArray.length,Db=q0?q0.boxStartIndex:eu.collisionBoxArray.length,lw=q0?q0.boxEndIndex:eu.collisionBoxArray.length,ES=ov?ov.boxStartIndex:eu.collisionBoxArray.length,cw=ov?ov.boxEndIndex:eu.collisionBoxArray.length,qp=-1,av=function(Nm,uw){return Nm&&Nm.circleDiameter?Math.max(Nm.circleDiameter,uw):uw};qp=av(Fm,qp),qp=av(rv,qp),qp=av(q0,qp);var i3=(qp=av(ov,qp))>-1?1:0;i3&&(qp*=rw/$l),eu.glyphOffsetArray.length>=kl.MAX_GLYPHS&&$("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Wh.sortKey!==void 0&&eu.addToSortKeyRanges(eu.symbolInstances.length,Wh.sortKey),eu.symbolInstances.emplaceBack(Eh.x,Eh.y,Og.right>=0?Og.right:-1,Og.center>=0?Og.center:-1,Og.left>=0?Og.left:-1,Og.vertical||-1,gy,W0,n3,o3,o2,i2,MS,Db,lw,ES,cw,py,iw,aw,t3,ow,i3,0,nv,vy,sw,qp)}(is,hy,tw,Ac,Bl,Uo,ah,is.layers[0],is.collisionBoxArray,Vs.index,Vs.sourceLayerIndex,is.index,Dm,Qc,Jc,Mc,Wx,Hc,Pc,Hp,Vs,ql,Mh,il,Xs)};if(W1==="line")for(var X1=0,G1=H_(Vs.geometry,0,0,Hs,Hs);X11){var Yx=wS(Wu,_s,Ac.vertical||dc,Bl,Jf,q1);Yx&&H0(Wu,Yx)}}else if(Vs.type==="Polygon")for(var J1=0,xd=e0(Vs.geometry,0);J1=xr.maxzoom||xr.visibility!=="none"&&(u(jn,this.zoom,lt),(Yt[xr.id]=xr.createBucket({index:at.bucketLayerIDs.length,layers:jn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:fn,sourceID:this.source})).populate(dn,Qt,this.tileID.canonical),at.bucketLayerIDs.push(jn.map(function(Wn){return Wn.id})))}}}var Sr=i.mapObject(Qt.glyphDependencies,function(Wn){return Object.keys(Wn).map(Number)});Object.keys(Sr).length?yt.send("getGlyphs",{uid:this.uid,stacks:Sr},function(Wn,Kn){Lt||(Lt=Wn,xt=Kn,ir.call(Rt))}):xt={};var ar=Object.keys(Qt.iconDependencies);ar.length?yt.send("getImages",{icons:ar,source:this.source,tileID:this.tileID,type:"icons"},function(Wn,Kn){Lt||(Lt=Wn,Zt=Kn,ir.call(Rt))}):Zt={};var Fn=Object.keys(Qt.patternDependencies);function ir(){if(Lt)return zt(Lt);if(xt&&Zt&&Xt){var Wn=new p(xt),Kn=new i.ImageAtlas(Zt,Xt);for(var _r in Yt){var Ir=Yt[_r];Ir instanceof i.SymbolBucket?(u(Ir.layers,this.zoom,lt),i.performSymbolLayout(Ir,xt,Wn.positions,Zt,Kn.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Ir.hasPattern&&(Ir instanceof i.LineBucket||Ir instanceof i.FillBucket||Ir instanceof i.FillExtrusionBucket)&&(u(Ir.layers,this.zoom,lt),Ir.addFeatures(Qt,this.tileID.canonical,Kn.patternPositions))}this.status="done",zt(null,{buckets:i.values(Yt).filter(function(zr){return!zr.isEmpty()}),featureIndex:at,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Wn.image,imageAtlas:Kn,glyphMap:this.returnDependencies?xt:null,iconMap:this.returnDependencies?Zt:null,glyphPositions:this.returnDependencies?Wn.positions:null})}}Fn.length?yt.send("getImages",{icons:Fn,source:this.source,tileID:this.tileID,type:"patterns"},function(Wn,Kn){Lt||(Lt=Wn,Xt=Kn,ir.call(Rt))}):Xt={},ir.call(this)};var m=function(vt,bt,lt,yt){this.actor=vt,this.layerIndex=bt,this.availableImages=lt,this.loadVectorData=yt||h,this.loading={},this.loaded={}};m.prototype.loadTile=function(vt,bt){var lt=this,yt=vt.uid;this.loading||(this.loading={});var zt=!!(vt&&vt.request&&vt.request.collectResourceTiming)&&new i.RequestPerformance(vt.request),Rt=this.loading[yt]=new a(vt);Rt.abort=this.loadVectorData(vt,function(it,at){if(delete lt.loading[yt],it||!at)return Rt.status="done",lt.loaded[yt]=Rt,bt(it);var Lt=at.rawData,xt={};at.expires&&(xt.expires=at.expires),at.cacheControl&&(xt.cacheControl=at.cacheControl);var Zt={};if(zt){var Xt=zt.finish();Xt&&(Zt.resourceTiming=JSON.parse(JSON.stringify(Xt)))}Rt.vectorTile=at.vectorTile,Rt.parse(at.vectorTile,lt.layerIndex,lt.availableImages,lt.actor,function(Yt,Qt){if(Yt||!Qt)return bt(Yt);bt(null,i.extend({rawTileData:Lt.slice(0)},Qt,xt,Zt))}),lt.loaded=lt.loaded||{},lt.loaded[yt]=Rt})},m.prototype.reloadTile=function(vt,bt){var lt=this,yt=this.loaded,zt=vt.uid,Rt=this;if(yt&&yt[zt]){var it=yt[zt];it.showCollisionBoxes=vt.showCollisionBoxes;var at=function(Lt,xt){var Zt=it.reloadCallback;Zt&&(delete it.reloadCallback,it.parse(it.vectorTile,Rt.layerIndex,lt.availableImages,Rt.actor,Zt)),bt(Lt,xt)};it.status==="parsing"?it.reloadCallback=at:it.status==="done"&&(it.vectorTile?it.parse(it.vectorTile,this.layerIndex,this.availableImages,this.actor,at):at())}},m.prototype.abortTile=function(vt,bt){var lt=this.loading,yt=vt.uid;lt&<[yt]&<[yt].abort&&(lt[yt].abort(),delete lt[yt]),bt()},m.prototype.removeTile=function(vt,bt){var lt=this.loaded,yt=vt.uid;lt&<[yt]&&delete lt[yt],bt()};var v=i.window.ImageBitmap,_=function(){this.loaded={}};_.prototype.loadTile=function(vt,bt){var lt=vt.uid,yt=vt.encoding,zt=vt.rawImageData,Rt=v&&zt instanceof v?this.getImageData(zt):zt,it=new i.DEMData(lt,Rt,yt);this.loaded=this.loaded||{},this.loaded[lt]=it,bt(null,it)},_.prototype.getImageData=function(vt){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(vt.width,vt.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=vt.width,this.offscreenCanvas.height=vt.height,this.offscreenCanvasContext.drawImage(vt,0,0,vt.width,vt.height);var bt=this.offscreenCanvasContext.getImageData(-1,-1,vt.width+2,vt.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new i.RGBAImage({width:bt.width,height:bt.height},bt.data)},_.prototype.removeTile=function(vt){var bt=this.loaded,lt=vt.uid;bt&&bt[lt]&&delete bt[lt]};var S=function vt(bt,lt){var yt,zt=bt&&bt.type;if(zt==="FeatureCollection")for(yt=0;yt=0!=!!bt&&vt.reverse()}var R=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,M=function(vt){this._feature=vt,this.extent=i.EXTENT,this.type=vt.type,this.properties=vt.tags,"id"in vt&&!isNaN(vt.id)&&(this.id=parseInt(vt.id,10))};M.prototype.loadGeometry=function(){if(this._feature.type===1){for(var vt=[],bt=0,lt=this._feature.geometry;bt>31}function K(vt,bt){for(var lt=vt.loadGeometry(),yt=vt.type,zt=0,Rt=0,it=lt.length,at=0;at>1;Y(vt,bt,it,yt,zt,Rt%2),q(vt,bt,lt,yt,it-1,Rt+1),q(vt,bt,lt,it+1,zt,Rt+1)}}function Y(vt,bt,lt,yt,zt,Rt){for(;zt>yt;){if(zt-yt>600){var it=zt-yt+1,at=lt-yt+1,Lt=Math.log(it),xt=.5*Math.exp(2*Lt/3),Zt=.5*Math.sqrt(Lt*xt*(it-xt)/it)*(at-it/2<0?-1:1);Y(vt,bt,lt,Math.max(yt,Math.floor(lt-at*xt/it+Zt)),Math.min(zt,Math.floor(lt+(it-at)*xt/it+Zt)),Rt)}var Xt=bt[2*lt+Rt],Yt=yt,Qt=zt;for(ee(vt,bt,yt,lt),bt[2*zt+Rt]>Xt&&ee(vt,bt,yt,zt);YtXt;)Qt--}bt[2*yt+Rt]===Xt?ee(vt,bt,yt,Qt):ee(vt,bt,++Qt,zt),Qt<=lt&&(yt=Qt+1),lt<=Qt&&(zt=Qt-1)}}function ee(vt,bt,lt,yt){me(vt,lt,yt),me(bt,2*lt,2*yt),me(bt,2*lt+1,2*yt+1)}function me(vt,bt,lt){var yt=vt[bt];vt[bt]=vt[lt],vt[lt]=yt}function he(vt,bt,lt,yt){var zt=vt-lt,Rt=bt-yt;return zt*zt+Rt*Rt}k.fromVectorTileJs=I,k.fromGeojsonVt=z,k.GeoJSONWrapper=$;var se=function(vt){return vt[0]},ae=function(vt){return vt[1]},ce=function(vt,bt,lt,yt,zt){bt===void 0&&(bt=se),lt===void 0&&(lt=ae),yt===void 0&&(yt=64),zt===void 0&&(zt=Float64Array),this.nodeSize=yt,this.points=vt;for(var Rt=vt.length<65536?Uint16Array:Uint32Array,it=this.ids=new Rt(vt.length),at=this.coords=new zt(2*vt.length),Lt=0;Lt=it&&Xt<=Lt&&Yt>=at&&Yt<=xt&&Pt.push(zt[dn]);else{var vn=Math.floor((fn+Kt)/2);Xt=Rt[2*vn],Yt=Rt[2*vn+1],Xt>=it&&Xt<=Lt&&Yt>=at&&Yt<=xt&&Pt.push(zt[vn]);var Nn=(tn+1)%2;(tn===0?it<=Xt:at<=Yt)&&(Qt.push(fn),Qt.push(vn-1),Qt.push(Nn)),(tn===0?Lt>=Xt:xt>=Yt)&&(Qt.push(vn+1),Qt.push(Kt),Qt.push(Nn))}}return Pt}(this.ids,this.coords,vt,bt,lt,yt,this.nodeSize)},ce.prototype.within=function(vt,bt,lt){return function(yt,zt,Rt,it,at,Lt){for(var xt=[0,yt.length-1,0],Zt=[],Xt=at*at;xt.length;){var Yt=xt.pop(),Qt=xt.pop(),Pt=xt.pop();if(Qt-Pt<=Lt)for(var tn=Pt;tn<=Qt;tn++)he(zt[2*tn],zt[2*tn+1],Rt,it)<=Xt&&Zt.push(yt[tn]);else{var Kt=Math.floor((Pt+Qt)/2),fn=zt[2*Kt],dn=zt[2*Kt+1];he(fn,dn,Rt,it)<=Xt&&Zt.push(yt[Kt]);var vn=(Yt+1)%2;(Yt===0?Rt-at<=fn:it-at<=dn)&&(xt.push(Pt),xt.push(Kt-1),xt.push(vn)),(Yt===0?Rt+at>=fn:it+at>=dn)&&(xt.push(Kt+1),xt.push(Qt),xt.push(vn))}}return Zt}(this.ids,this.coords,vt,bt,lt,this.nodeSize)};var de={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(vt){return vt}},ve=function(vt){this.options=ze(Object.create(de),vt),this.trees=new Array(this.options.maxZoom+1)};function ye(vt,bt,lt,yt,zt){return{x:vt,y:bt,zoom:1/0,id:lt,parentId:-1,numPoints:yt,properties:zt}}function _e(vt,bt){var lt=vt.geometry.coordinates,yt=lt[0],zt=lt[1];return{x:Pe(yt),y:Ie(zt),zoom:1/0,index:bt,parentId:-1}}function Se(vt){return{type:"Feature",id:vt.id,properties:Te(vt),geometry:{type:"Point",coordinates:[(yt=vt.x,360*(yt-.5)),(bt=vt.y,lt=(180-360*bt)*Math.PI/180,360*Math.atan(Math.exp(lt))/Math.PI-90)]}};var bt,lt,yt}function Te(vt){var bt=vt.numPoints,lt=bt>=1e4?Math.round(bt/1e3)+"k":bt>=1e3?Math.round(bt/100)/10+"k":bt;return ze(ze({},vt.properties),{cluster:!0,cluster_id:vt.id,point_count:bt,point_count_abbreviated:lt})}function Pe(vt){return vt/360+.5}function Ie(vt){var bt=Math.sin(vt*Math.PI/180),lt=.5-.25*Math.log((1+bt)/(1-bt))/Math.PI;return lt<0?0:lt>1?1:lt}function ze(vt,bt){for(var lt in bt)vt[lt]=bt[lt];return vt}function De(vt){return vt.x}function He(vt){return vt.y}function Ve(vt,bt,lt,yt){for(var zt,Rt=yt,it=lt-bt>>1,at=lt-bt,Lt=vt[bt],xt=vt[bt+1],Zt=vt[lt],Xt=vt[lt+1],Yt=bt+3;YtRt)zt=Yt,Rt=Qt;else if(Qt===Rt){var Pt=Math.abs(Yt-it);Ptyt&&(zt-bt>3&&Ve(vt,bt,zt,yt),vt[zt+2]=Rt,lt-zt>3&&Ve(vt,zt,lt,yt))}function $e(vt,bt,lt,yt,zt,Rt){var it=zt-lt,at=Rt-yt;if(it!==0||at!==0){var Lt=((vt-lt)*it+(bt-yt)*at)/(it*it+at*at);Lt>1?(lt=zt,yt=Rt):Lt>0&&(lt+=it*Lt,yt+=at*Lt)}return(it=vt-lt)*it+(at=bt-yt)*at}function Oe(vt,bt,lt,yt){var zt={id:vt===void 0?null:vt,type:bt,geometry:lt,tags:yt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Rt){var it=Rt.geometry,at=Rt.type;if(at==="Point"||at==="MultiPoint"||at==="LineString")ke(Rt,it);else if(at==="Polygon"||at==="MultiLineString")for(var Lt=0;Lt0&&(it+=yt?(zt*xt-Lt*Rt)/2:Math.sqrt(Math.pow(Lt-zt,2)+Math.pow(xt-Rt,2))),zt=Lt,Rt=xt}var Zt=bt.length-3;bt[2]=1,Ve(bt,0,Zt,lt),bt[Zt+2]=1,bt.size=Math.abs(it),bt.start=0,bt.end=bt.size}function Ze(vt,bt,lt,yt){for(var zt=0;zt1?1:lt}function Ee(vt,bt,lt,yt,zt,Rt,it,at){if(yt/=bt,Rt>=(lt/=bt)&&it=yt)return null;for(var Lt=[],xt=0;xt=lt&&Pt=yt)){var tn=[];if(Yt==="Point"||Yt==="MultiPoint")Ne(Xt,tn,lt,yt,zt);else if(Yt==="LineString")je(Xt,tn,lt,yt,zt,!1,at.lineMetrics);else if(Yt==="MultiLineString")ot(Xt,tn,lt,yt,zt,!1);else if(Yt==="Polygon")ot(Xt,tn,lt,yt,zt,!0);else if(Yt==="MultiPolygon")for(var Kt=0;Kt=lt&&it<=yt&&(bt.push(vt[Rt]),bt.push(vt[Rt+1]),bt.push(vt[Rt+2]))}}function je(vt,bt,lt,yt,zt,Rt,it){for(var at,Lt,xt=nt(vt),Zt=zt===0?ht:pt,Xt=vt.start,Yt=0;Ytlt&&(Lt=Zt(xt,Qt,Pt,Kt,fn,lt),it&&(xt.start=Xt+at*Lt)):dn>yt?vn=lt&&(Lt=Zt(xt,Qt,Pt,Kt,fn,lt),Nn=!0),vn>yt&&dn<=yt&&(Lt=Zt(xt,Qt,Pt,Kt,fn,yt),Nn=!0),!Rt&&Nn&&(it&&(xt.end=Xt+at*Lt),bt.push(xt),xt=nt(vt)),it&&(Xt+=at)}var er=vt.length-3;Qt=vt[er],Pt=vt[er+1],tn=vt[er+2],(dn=zt===0?Qt:Pt)>=lt&&dn<=yt&&Ge(xt,Qt,Pt,tn),er=xt.length-3,Rt&&er>=3&&(xt[er]!==xt[0]||xt[er+1]!==xt[1])&&Ge(xt,xt[0],xt[1],xt[2]),xt.length&&bt.push(xt)}function nt(vt){var bt=[];return bt.size=vt.size,bt.start=vt.start,bt.end=vt.end,bt}function ot(vt,bt,lt,yt,zt,Rt){for(var it=0;itit.maxX&&(it.maxX=Zt),Xt>it.maxY&&(it.maxY=Xt)}return it}function Gt(vt,bt,lt,yt){var zt=bt.geometry,Rt=bt.type,it=[];if(Rt==="Point"||Rt==="MultiPoint")for(var at=0;at0&&bt.size<(zt?it:yt))lt.numPoints+=bt.length/3;else{for(var at=[],Lt=0;Ltit)&&(lt.numSimplified++,at.push(bt[Lt]),at.push(bt[Lt+1])),lt.numPoints++;zt&&function(xt,Zt){for(var Xt=0,Yt=0,Qt=xt.length,Pt=Qt-2;Yt0===Zt)for(Yt=0,Qt=xt.length;Yt24)throw new Error("maxZoom should be in the 0-24 range");if(bt.promoteId&&bt.generateId)throw new Error("promoteId and generateId cannot be used together.");var yt=function(zt,Rt){var it=[];if(zt.type==="FeatureCollection")for(var at=0;at=yt;xt--){var Zt=+Date.now();at=this._cluster(at,xt),this.trees[xt]=new ce(at,De,He,Rt,Float32Array),lt&&console.log("z%d: %d clusters in %dms",xt,at.length,+Date.now()-Zt)}return lt&&console.timeEnd("total time"),this},ve.prototype.getClusters=function(vt,bt){var lt=((vt[0]+180)%360+360)%360-180,yt=Math.max(-90,Math.min(90,vt[1])),zt=vt[2]===180?180:((vt[2]+180)%360+360)%360-180,Rt=Math.max(-90,Math.min(90,vt[3]));if(vt[2]-vt[0]>=360)lt=-180,zt=180;else if(lt>zt){var it=this.getClusters([lt,yt,180,Rt],bt),at=this.getClusters([-180,yt,zt,Rt],bt);return it.concat(at)}for(var Lt=this.trees[this._limitZoom(bt)],xt=[],Zt=0,Xt=Lt.range(Pe(lt),Ie(Rt),Pe(zt),Ie(yt));Ztbt&&(Pt+=dn.numPoints||1)}if(Pt>=at){for(var vn=Zt.x*Qt,Nn=Zt.y*Qt,er=it&&Qt>1?this._map(Zt,!0):null,En=(xt<<5)+(bt+1)+this.points.length,In=0,jn=Yt;In1)for(var Fn=0,ir=Yt;Fn>5},ve.prototype._getOriginZoom=function(vt){return(vt-this.points.length)%32},ve.prototype._map=function(vt,bt){if(vt.numPoints)return bt?ze({},vt.properties):vt.properties;var lt=this.points[vt.index].properties,yt=this.options.map(lt);return bt&&yt===lt?ze({},yt):yt},_t.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},_t.prototype.splitTile=function(vt,bt,lt,yt,zt,Rt,it){for(var at=[vt,bt,lt,yt],Lt=this.options,xt=Lt.debug;at.length;){yt=at.pop(),lt=at.pop(),bt=at.pop(),vt=at.pop();var Zt=1<1&&console.time("creation"),Yt=this.tiles[Xt]=en(vt,bt,lt,yt,Lt),this.tileCoords.push({z:bt,x:lt,y:yt}),xt)){xt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",bt,lt,yt,Yt.numFeatures,Yt.numPoints,Yt.numSimplified),console.timeEnd("creation"));var Qt="z"+bt;this.stats[Qt]=(this.stats[Qt]||0)+1,this.total++}if(Yt.source=vt,zt){if(bt===Lt.maxZoom||bt===zt)continue;var Pt=1<1&&console.time("clipping");var tn,Kt,fn,dn,vn,Nn,er=.5*Lt.buffer/Lt.extent,En=.5-er,In=.5+er,jn=1+er;tn=Kt=fn=dn=null,vn=Ee(vt,Zt,lt-er,lt+In,0,Yt.minX,Yt.maxX,Lt),Nn=Ee(vt,Zt,lt+En,lt+jn,0,Yt.minX,Yt.maxX,Lt),vt=null,vn&&(tn=Ee(vn,Zt,yt-er,yt+In,1,Yt.minY,Yt.maxY,Lt),Kt=Ee(vn,Zt,yt+En,yt+jn,1,Yt.minY,Yt.maxY,Lt),vn=null),Nn&&(fn=Ee(Nn,Zt,yt-er,yt+In,1,Yt.minY,Yt.maxY,Lt),dn=Ee(Nn,Zt,yt+En,yt+jn,1,Yt.minY,Yt.maxY,Lt),Nn=null),xt>1&&console.timeEnd("clipping"),at.push(tn||[],bt+1,2*lt,2*yt),at.push(Kt||[],bt+1,2*lt,2*yt+1),at.push(fn||[],bt+1,2*lt+1,2*yt),at.push(dn||[],bt+1,2*lt+1,2*yt+1)}}},_t.prototype.getTile=function(vt,bt,lt){var yt=this.options,zt=yt.extent,Rt=yt.debug;if(vt<0||vt>24)return null;var it=1<1&&console.log("drilling down to z%d-%d-%d",vt,bt,lt);for(var Lt,xt=vt,Zt=bt,Xt=lt;!Lt&&xt>0;)xt--,Zt=Math.floor(Zt/2),Xt=Math.floor(Xt/2),Lt=this.tiles[nn(xt,Zt,Xt)];return Lt&&Lt.source?(Rt>1&&console.log("found parent tile z%d-%d-%d",xt,Zt,Xt),Rt>1&&console.time("drilling down"),this.splitTile(Lt.source,xt,Zt,Xt,vt,bt,lt),Rt>1&&console.timeEnd("drilling down"),this.tiles[at]?It(this.tiles[at],zt):null):null};var bn=function(vt){function bt(lt,yt,zt,Rt){vt.call(this,lt,yt,zt,gn),Rt&&(this.loadGeoJSON=Rt)}return vt&&(bt.__proto__=vt),bt.prototype=Object.create(vt&&vt.prototype),bt.prototype.constructor=bt,bt.prototype.loadData=function(lt,yt){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=yt,this._pendingLoadDataParams=lt,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},bt.prototype._loadData=function(){var lt=this;if(this._pendingCallback&&this._pendingLoadDataParams){var yt=this._pendingCallback,zt=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Rt=!!(zt&&zt.request&&zt.request.collectResourceTiming)&&new i.RequestPerformance(zt.request);this.loadGeoJSON(zt,function(it,at){if(it||!at)return yt(it);if(typeof at!="object")return yt(new Error("Input data given to '"+zt.source+"' is not a valid GeoJSON object."));S(at,!0);try{if(zt.filter){var Lt=i.createExpression(zt.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Lt.result==="error")throw new Error(Lt.value.map(function(Yt){return Yt.key+": "+Yt.message}).join(", "));var xt=at.features.filter(function(Yt){return Lt.value.evaluate({zoom:0},Yt)});at={type:"FeatureCollection",features:xt}}lt._geoJSONIndex=zt.cluster?new ve(function(Yt){var Qt=Yt.superclusterOptions,Pt=Yt.clusterProperties;if(!Pt||!Qt)return Qt;for(var tn={},Kt={},fn={accumulated:null,zoom:0},dn={properties:null},vn=Object.keys(Pt),Nn=0,er=vn;Nn=0?0:J.button},w.remove=function(J){J.parentNode&&J.parentNode.removeChild(J)};var A=function(J){function le(){J.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.isLoaded=function(){return this.loaded},le.prototype.setLoaded=function(ie){if(this.loaded!==ie&&(this.loaded=ie,ie)){for(var V=0,ne=this.requestors;V=0?1.2:1))}function E(J,le,ie,V,ne,ge,xe){for(var Me=0;Me65535)Je(new Error("glyphs > 65535 not supported"));else if(mt.ranges[Vt])Je(null,{stack:rt,id:dt,glyph:Et});else{var jt=mt.requests[Vt];jt||(jt=mt.requests[Vt]=[],L.loadGlyphRange(rt,Vt,ie.url,ie.requestManager,function(Nt,cn){if(cn){for(var sn in cn)ie._doesCharSupportLocalGlyph(+sn)||(mt.glyphs[+sn]=cn[+sn]);mt.ranges[Vt]=!0}for(var xn=0,pn=jt;xn1&&(Fe=J[++Me]);var rt=Math.abs(Je-Fe.left),dt=Math.abs(Je-Fe.right),mt=Math.min(rt,dt),Et=void 0,Vt=ne/ie*(V+1);if(Fe.isDash){var jt=V-Math.abs(Vt);Et=Math.sqrt(mt*mt+jt*jt)}else Et=V-Math.sqrt(mt*mt+Vt*Vt);this.data[xe+Je]=Math.max(0,Math.min(255,Et+128))}},$.prototype.addRegularDash=function(J){for(var le=J.length-1;le>=0;--le){var ie=J[le],V=J[le+1];ie.zeroLength?J.splice(le,1):V&&V.isDash===ie.isDash&&(V.left=ie.left,J.splice(le,1))}var ne=J[0],ge=J[J.length-1];ne.isDash===ge.isDash&&(ne.left=ge.left-this.width,ge.right=ne.right+this.width);for(var xe=this.width*this.nextRow,Me=0,Fe=J[Me],Je=0;Je1&&(Fe=J[++Me]);var rt=Math.abs(Je-Fe.left),dt=Math.abs(Je-Fe.right),mt=Math.min(rt,dt),Et=Fe.isDash?mt:-mt;this.data[xe+Je]=Math.max(0,Math.min(255,Et+128))}},$.prototype.addDash=function(J,le){var ie=le?7:0,V=2*ie+1;if(this.nextRow+V>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var ne=0,ge=0;ge=ie&&J.x=V&&J.y0&&(Je[new i.OverscaledTileID(ie.overscaledZ,xe,V.z,ge,V.y-1).key]={backfilled:!1},Je[new i.OverscaledTileID(ie.overscaledZ,ie.wrap,V.z,V.x,V.y-1).key]={backfilled:!1},Je[new i.OverscaledTileID(ie.overscaledZ,Fe,V.z,Me,V.y-1).key]={backfilled:!1}),V.y+10&&(ne.resourceTiming=ie._resourceTiming,ie._resourceTiming=[]),ie.fire(new i.Event("data",ne))}})},le.prototype.onAdd=function(ie){this.map=ie,this.load()},le.prototype.setData=function(ie){var V=this;return this._data=ie,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(ne){if(ne)V.fire(new i.ErrorEvent(ne));else{var ge={dataType:"source",sourceDataType:"content"};V._collectResourceTiming&&V._resourceTiming&&V._resourceTiming.length>0&&(ge.resourceTiming=V._resourceTiming,V._resourceTiming=[]),V.fire(new i.Event("data",ge))}}),this},le.prototype.getClusterExpansionZoom=function(ie,V){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:ie,source:this.id},V),this},le.prototype.getClusterChildren=function(ie,V){return this.actor.send("geojson.getClusterChildren",{clusterId:ie,source:this.id},V),this},le.prototype.getClusterLeaves=function(ie,V,ne,ge){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:ie,limit:V,offset:ne},ge),this},le.prototype._updateWorkerData=function(ie){var V=this;this._loaded=!1;var ne=i.extend({},this.workerOptions),ge=this._data;typeof ge=="string"?(ne.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ge),i.ResourceType.Source),ne.request.collectResourceTiming=this._collectResourceTiming):ne.data=JSON.stringify(ge),this.actor.send(this.type+".loadData",ne,function(xe,Me){V._removed||Me&&Me.abandoned||(V._loaded=!0,Me&&Me.resourceTiming&&Me.resourceTiming[V.id]&&(V._resourceTiming=Me.resourceTiming[V.id].slice(0)),V.actor.send(V.type+".coalesce",{source:ne.source},null),ie(xe))})},le.prototype.loaded=function(){return this._loaded},le.prototype.loadTile=function(ie,V){var ne=this,ge=ie.actor?"reloadTile":"loadTile";ie.actor=this.actor;var xe={type:this.type,uid:ie.uid,tileID:ie.tileID,zoom:ie.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};ie.request=this.actor.send(ge,xe,function(Me,Fe){return delete ie.request,ie.unloadVectorData(),ie.aborted?V(null):Me?V(Me):(ie.loadVectorData(Fe,ne.map.painter,ge==="reloadTile"),V(null))})},le.prototype.abortTile=function(ie){ie.request&&(ie.request.cancel(),delete ie.request),ie.aborted=!0},le.prototype.unloadTile=function(ie){ie.unloadVectorData(),this.actor.send("removeTile",{uid:ie.uid,type:this.type,source:this.id})},le.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},le.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},le.prototype.hasTransition=function(){return!1},le}(i.Evented),oe=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),q=function(J){function le(ie,V,ne,ge){J.call(this),this.id=ie,this.dispatcher=ne,this.coordinates=V.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ge),this.options=V}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(ie,V){var ne=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ge,xe){ne._loaded=!0,ge?ne.fire(new i.ErrorEvent(ge)):xe&&(ne.image=xe,ie&&(ne.coordinates=ie),V&&V(),ne._finishLoading())})},le.prototype.loaded=function(){return this._loaded},le.prototype.updateImage=function(ie){var V=this;return this.image&&ie.url?(this.options.url=ie.url,this.load(ie.coordinates,function(){V.texture=null}),this):this},le.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},le.prototype.onAdd=function(ie){this.map=ie,this.load()},le.prototype.setCoordinates=function(ie){var V=this;this.coordinates=ie;var ne=ie.map(i.MercatorCoordinate.fromLngLat);this.tileID=function(xe){for(var Me=1/0,Fe=1/0,Je=-1/0,rt=-1/0,dt=0,mt=xe;dtV.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+V.start(0)+" and "+V.end(0)+"-second mark."))):this.video.currentTime=ie}},le.prototype.getVideo=function(){return this.video},le.prototype.onAdd=function(ie){this.map||(this.map=ie,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},le.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var ie=this.map.painter.context,V=ie.gl;for(var ne in this.boundsBuffer||(this.boundsBuffer=ie.createVertexBuffer(this._boundsArray,oe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE),V.texSubImage2D(V.TEXTURE_2D,0,0,0,V.RGBA,V.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(ie,this.video,V.RGBA),this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE)),this.tiles){var ge=this.tiles[ne];ge.state!=="loaded"&&(ge.state="loaded",ge.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this.video&&!this.video.paused},le}(q),ee=function(J){function le(ie,V,ne,ge){J.call(this,ie,V,ne,ge),V.coordinates?Array.isArray(V.coordinates)&&V.coordinates.length===4&&!V.coordinates.some(function(xe){return!Array.isArray(xe)||xe.length!==2||xe.some(function(Me){return typeof Me!="number"})})||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'missing required property "coordinates"'))),V.animate&&typeof V.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'optional "animate" property must be a boolean value'))),V.canvas?typeof V.canvas=="string"||V.canvas instanceof i.window.HTMLCanvasElement||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'missing required property "canvas"'))),this.options=V,this.animate=V.animate===void 0||V.animate}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},le.prototype.getCanvas=function(){return this.canvas},le.prototype.onAdd=function(ie){this.map=ie,this.load(),this.canvas&&this.animate&&this.play()},le.prototype.onRemove=function(){this.pause()},le.prototype.prepare=function(){var ie=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ie=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ie=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var V=this.map.painter.context,ne=V.gl;for(var ge in this.boundsBuffer||(this.boundsBuffer=V.createVertexBuffer(this._boundsArray,oe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ie||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(V,this.canvas,ne.RGBA,{premultiply:!0}),this.tiles){var xe=this.tiles[ge];xe.state!=="loaded"&&(xe.state="loaded",xe.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this._playing},le.prototype._hasInvalidDimensions=function(){for(var ie=0,V=[this.canvas.width,this.canvas.height];iethis.max){var xe=this._getAndRemoveByKey(this.order[0]);xe&&this.onRemove(xe)}return this},ce.prototype.has=function(J){return J.wrapped().key in this.data},ce.prototype.getAndRemove=function(J){return this.has(J)?this._getAndRemoveByKey(J.wrapped().key):null},ce.prototype._getAndRemoveByKey=function(J){var le=this.data[J].shift();return le.timeout&&clearTimeout(le.timeout),this.data[J].length===0&&delete this.data[J],this.order.splice(this.order.indexOf(J),1),le.value},ce.prototype.getByKey=function(J){var le=this.data[J];return le?le[0].value:null},ce.prototype.get=function(J){return this.has(J)?this.data[J.wrapped().key][0].value:null},ce.prototype.remove=function(J,le){if(!this.has(J))return this;var ie=J.wrapped().key,V=le===void 0?0:this.data[ie].indexOf(le),ne=this.data[ie][V];return this.data[ie].splice(V,1),ne.timeout&&clearTimeout(ne.timeout),this.data[ie].length===0&&delete this.data[ie],this.onRemove(ne.value),this.order.splice(this.order.indexOf(ie),1),this},ce.prototype.setMaxSize=function(J){for(this.max=J;this.order.length>this.max;){var le=this._getAndRemoveByKey(this.order[0]);le&&this.onRemove(le)}return this},ce.prototype.filter=function(J){var le=[];for(var ie in this.data)for(var V=0,ne=this.data[ie];V1||(Math.abs(rt)>1&&(Math.abs(rt+mt)===1?rt+=mt:Math.abs(rt-mt)===1&&(rt-=mt)),Je.dem&&Fe.dem&&(Fe.dem.backfillBorder(Je.dem,rt,dt),Fe.neighboringTiles&&Fe.neighboringTiles[Et]&&(Fe.neighboringTiles[Et].backfilled=!0)))}},le.prototype.getTile=function(ie){return this.getTileByID(ie.key)},le.prototype.getTileByID=function(ie){return this._tiles[ie]},le.prototype._retainLoadedChildren=function(ie,V,ne,ge){for(var xe in this._tiles){var Me=this._tiles[xe];if(!(ge[xe]||!Me.hasData()||Me.tileID.overscaledZ<=V||Me.tileID.overscaledZ>ne)){for(var Fe=Me.tileID;Me&&Me.tileID.overscaledZ>V+1;){var Je=Me.tileID.scaledTo(Me.tileID.overscaledZ-1);(Me=this._tiles[Je.key])&&Me.hasData()&&(Fe=Je)}for(var rt=Fe;rt.overscaledZ>V;)if(ie[(rt=rt.scaledTo(rt.overscaledZ-1)).key]){ge[Fe.key]=Fe;break}}}},le.prototype.findLoadedParent=function(ie,V){if(ie.key in this._loadedParentTiles){var ne=this._loadedParentTiles[ie.key];return ne&&ne.tileID.overscaledZ>=V?ne:null}for(var ge=ie.overscaledZ-1;ge>=V;ge--){var xe=ie.scaledTo(ge),Me=this._getLoadedTile(xe);if(Me)return Me}},le.prototype._getLoadedTile=function(ie){var V=this._tiles[ie.key];return V&&V.hasData()?V:this._cache.getByKey(ie.wrapped().key)},le.prototype.updateCacheSize=function(ie){var V=(Math.ceil(ie.width/this._source.tileSize)+1)*(Math.ceil(ie.height/this._source.tileSize)+1),ne=Math.floor(5*V),ge=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ne):ne;this._cache.setMaxSize(ge)},le.prototype.handleWrapJump=function(ie){var V=(ie-(this._prevLng===void 0?ie:this._prevLng))/360,ne=Math.round(V);if(this._prevLng=ie,ne){var ge={};for(var xe in this._tiles){var Me=this._tiles[xe];Me.tileID=Me.tileID.unwrapTo(Me.tileID.wrap+ne),ge[Me.tileID.key]=Me}for(var Fe in this._tiles=ge,this._timers)clearTimeout(this._timers[Fe]),delete this._timers[Fe];for(var Je in this._tiles){var rt=this._tiles[Je];this._setTileReloadTimer(Je,rt)}}},le.prototype.update=function(ie){var V=this;if(this.transform=ie,this._sourceLoaded&&!this._paused){var ne;this.updateCacheSize(ie),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?ne=ie.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(An){return new i.OverscaledTileID(An.canonical.z,An.wrap,An.canonical.z,An.canonical.x,An.canonical.y)}):(ne=ie.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(ne=ne.filter(function(An){return V._source.hasTile(An)}))):ne=[];var ge=ie.coveringZoomLevel(this._source),xe=Math.max(ge-le.maxOverzooming,this._source.minzoom),Me=Math.max(ge+le.maxUnderzooming,this._source.minzoom),Fe=this._updateRetainedTiles(ne,ge);if(it(this._source.type)){for(var Je={},rt={},dt=0,mt=Object.keys(Fe);dtthis._source.maxzoom){var cn=jt.children(this._source.maxzoom)[0],sn=this.getTile(cn);if(sn&&sn.hasData()){ne[cn.key]=cn;continue}}else{var xn=jt.children(this._source.maxzoom);if(ne[xn[0].key]&&ne[xn[1].key]&&ne[xn[2].key]&&ne[xn[3].key])continue}for(var pn=Nt.wasRequested(),Ln=jt.overscaledZ-1;Ln>=xe;--Ln){var On=jt.scaledTo(Ln);if(ge[On.key]||(ge[On.key]=!0,!(Nt=this.getTile(On))&&pn&&(Nt=this._addTile(On)),Nt&&(ne[On.key]=On,pn=Nt.wasRequested(),Nt.hasData())))break}}}return ne},le.prototype._updateLoadedParentTileCache=function(){for(var ie in this._loadedParentTiles={},this._tiles){for(var V=[],ne=void 0,ge=this._tiles[ie].tileID;ge.overscaledZ>0;){if(ge.key in this._loadedParentTiles){ne=this._loadedParentTiles[ge.key];break}V.push(ge.key);var xe=ge.scaledTo(ge.overscaledZ-1);if(ne=this._getLoadedTile(xe))break;ge=xe}for(var Me=0,Fe=V;Me0||(V.hasData()&&V.state!=="reloading"?this._cache.add(V.tileID,V,V.getExpiryTimeout()):(V.aborted=!0,this._abortTile(V),this._unloadTile(V))))},le.prototype.clearTiles=function(){for(var ie in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(ie);this._cache.reset()},le.prototype.tilesIn=function(ie,V,ne){var ge=this,xe=[],Me=this.transform;if(!Me)return xe;for(var Fe=ne?Me.getCameraQueryGeometry(ie):ie,Je=ie.map(function(Ln){return Me.pointCoordinate(Ln)}),rt=Fe.map(function(Ln){return Me.pointCoordinate(Ln)}),dt=this.getIds(),mt=1/0,Et=1/0,Vt=-1/0,jt=-1/0,Nt=0,cn=rt;Nt=0&&Dr[1].y+rr>=0){var Pr=Je.map(function(Mo){return An.getTilePoint(Mo)}),Zr=rt.map(function(Mo){return An.getTilePoint(Mo)});xe.push({tile:On,tileID:An,queryGeometry:Pr,cameraQueryGeometry:Zr,scale:Sn})}}},pn=0;pn=i.browser.now())return!0}return!1},le.prototype.setFeatureState=function(ie,V,ne){ie=ie||"_geojsonTileLayer",this._state.updateState(ie,V,ne)},le.prototype.removeFeatureState=function(ie,V,ne){ie=ie||"_geojsonTileLayer",this._state.removeFeatureState(ie,V,ne)},le.prototype.getFeatureState=function(ie,V){return ie=ie||"_geojsonTileLayer",this._state.getState(ie,V)},le.prototype.setDependencies=function(ie,V,ne){var ge=this._tiles[ie];ge&&ge.setDependencies(V,ne)},le.prototype.reloadTilesForDependencies=function(ie,V){for(var ne in this._tiles)this._tiles[ne].hasDependency(ie,V)&&this._reloadTile(ne,"reloading");this._cache.filter(function(ge){return!ge.hasDependency(ie,V)})},le}(i.Evented);function Rt(J,le){var ie=Math.abs(2*J.wrap)-+(J.wrap<0),V=Math.abs(2*le.wrap)-+(le.wrap<0);return J.overscaledZ-le.overscaledZ||V-ie||le.canonical.y-J.canonical.y||le.canonical.x-J.canonical.x}function it(J){return J==="raster"||J==="image"||J==="video"}function at(){return new i.window.Worker(Ft.workerUrl)}zt.maxOverzooming=10,zt.maxUnderzooming=3;var Lt="mapboxgl_preloaded_worker_pool",xt=function(){this.active={}};xt.prototype.acquire=function(J){if(!this.workers)for(this.workers=[];this.workers.length0?(V-ge)/xe:0;return this.points[ne].mult(1-Me).add(this.points[le].mult(Me))};var xr=function(J,le,ie){var V=this.boxCells=[],ne=this.circleCells=[];this.xCellCount=Math.ceil(J/ie),this.yCellCount=Math.ceil(le/ie);for(var ge=0;ge=-le[0]&&ie<=le[0]&&V>=-le[1]&&V<=le[1]}function Kn(J,le,ie,V,ne,ge,xe,Me){var Fe=V?J.textSizeData:J.iconSizeData,Je=i.evaluateSizeForZoom(Fe,ie.transform.zoom),rt=[256/ie.width*2+1,256/ie.height*2+1],dt=V?J.text.dynamicLayoutVertexArray:J.icon.dynamicLayoutVertexArray;dt.clear();for(var mt=J.lineVertexArray,Et=V?J.text.placedSymbolArray:J.icon.placedSymbolArray,Vt=ie.transform.width/ie.transform.height,jt=!1,Nt=0;NtMath.abs(ie.x-le.x)*V?{useVertical:!0}:(J===i.WritingMode.vertical?le.yie.x)?{needsFlipping:!0}:null}function zr(J,le,ie,V,ne,ge,xe,Me,Fe,Je,rt,dt,mt,Et){var Vt,jt=le/24,Nt=J.lineOffsetX*jt,cn=J.lineOffsetY*jt;if(J.numGlyphs>1){var sn=J.glyphStartIndex+J.numGlyphs,xn=J.lineStartIndex,pn=J.lineStartIndex+J.lineLength,Ln=_r(jt,Me,Nt,cn,ie,rt,dt,J,Fe,ge,mt);if(!Ln)return{notEnoughRoom:!0};var On=Fn(Ln.first.point,xe).point,An=Fn(Ln.last.point,xe).point;if(V&&!ie){var Sn=Ir(J.writingMode,On,An,Et);if(Sn)return Sn}Vt=[Ln.first];for(var rr=J.glyphStartIndex+1;rr0?Mo.point:Fr(dt,Zr,Dr,1,ne),vo=Ir(J.writingMode,Dr,$o,Et);if(vo)return vo}var zo=Rr(jt*Me.getoffsetX(J.glyphStartIndex),Nt,cn,ie,rt,dt,J.segment,J.lineStartIndex,J.lineStartIndex+J.lineLength,Fe,ge,mt);if(!zo)return{notEnoughRoom:!0};Vt=[zo]}for(var yi=0,Si=Vt;yi0?1:-1,Vt=0;V&&(Et*=-1,Vt=Math.PI),Et<0&&(Vt+=Math.PI);for(var jt=Et>0?Me+xe:Me+xe+1,Nt=ne,cn=ne,sn=0,xn=0,pn=Math.abs(mt),Ln=[];sn+xn<=pn;){if((jt+=Et)=Fe)return null;if(cn=Nt,Ln.push(Nt),(Nt=dt[jt])===void 0){var On=new i.Point(Je.getx(jt),Je.gety(jt)),An=Fn(On,rt);if(An.signedDistanceFromCamera>0)Nt=dt[jt]=An.point;else{var Sn=jt-Et;Nt=Fr(sn===0?ge:new i.Point(Je.getx(Sn),Je.gety(Sn)),On,cn,pn-sn+1,rt)}}sn+=xn,xn=cn.dist(Nt)}var rr=(pn-sn)/xn,Dr=Nt.sub(cn),Pr=Dr.mult(rr)._add(cn);Pr._add(Dr._unit()._perp()._mult(ie*Et));var Zr=Vt+Math.atan2(Nt.y-cn.y,Nt.x-cn.x);return Ln.push(Pr),{point:Pr,angle:Zr,path:Ln}}xr.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},xr.prototype.insert=function(J,le,ie,V,ne){this._forEachCell(le,ie,V,ne,this._insertBoxCell,this.boxUid++),this.boxKeys.push(J),this.bboxes.push(le),this.bboxes.push(ie),this.bboxes.push(V),this.bboxes.push(ne)},xr.prototype.insertCircle=function(J,le,ie,V){this._forEachCell(le-V,ie-V,le+V,ie+V,this._insertCircleCell,this.circleUid++),this.circleKeys.push(J),this.circles.push(le),this.circles.push(ie),this.circles.push(V)},xr.prototype._insertBoxCell=function(J,le,ie,V,ne,ge){this.boxCells[ne].push(ge)},xr.prototype._insertCircleCell=function(J,le,ie,V,ne,ge){this.circleCells[ne].push(ge)},xr.prototype._query=function(J,le,ie,V,ne,ge){if(ie<0||J>this.width||V<0||le>this.height)return!ne&&[];var xe=[];if(J<=0&&le<=0&&this.width<=ie&&this.height<=V){if(ne)return!0;for(var Me=0;Me0:xe},xr.prototype._queryCircle=function(J,le,ie,V,ne){var ge=J-ie,xe=J+ie,Me=le-ie,Fe=le+ie;if(xe<0||ge>this.width||Fe<0||Me>this.height)return!V&&[];var Je=[],rt={hitTest:V,circle:{x:J,y:le,radius:ie},seenUids:{box:{},circle:{}}};return this._forEachCell(ge,Me,xe,Fe,this._queryCellCircle,Je,rt,ne),V?Je.length>0:Je},xr.prototype.query=function(J,le,ie,V,ne){return this._query(J,le,ie,V,!1,ne)},xr.prototype.hitTest=function(J,le,ie,V,ne){return this._query(J,le,ie,V,!0,ne)},xr.prototype.hitTestCircle=function(J,le,ie,V){return this._queryCircle(J,le,ie,!0,V)},xr.prototype._queryCell=function(J,le,ie,V,ne,ge,xe,Me){var Fe=xe.seenUids,Je=this.boxCells[ne];if(Je!==null)for(var rt=this.bboxes,dt=0,mt=Je;dt=rt[Vt+0]&&V>=rt[Vt+1]&&(!Me||Me(this.boxKeys[Et]))){if(xe.hitTest)return ge.push(!0),!0;ge.push({key:this.boxKeys[Et],x1:rt[Vt],y1:rt[Vt+1],x2:rt[Vt+2],y2:rt[Vt+3]})}}}var jt=this.circleCells[ne];if(jt!==null)for(var Nt=this.circles,cn=0,sn=jt;cnxe*xe+Me*Me},xr.prototype._circleAndRectCollide=function(J,le,ie,V,ne,ge,xe){var Me=(ge-V)/2,Fe=Math.abs(J-(V+Me));if(Fe>Me+ie)return!1;var Je=(xe-ne)/2,rt=Math.abs(le-(ne+Je));if(rt>Je+ie)return!1;if(Fe<=Me||rt<=Je)return!0;var dt=Fe-Me,mt=rt-Je;return dt*dt+mt*mt<=ie*ie};var $r=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Kr(J,le){for(var ie=0;ie=1;$o--)Mo.push(Pr.path[$o]);for(var vo=1;vo0){for(var Hr=Mo[0].clone(),Lo=Mo[0].clone(),ki=1;ki=Sn.x&&Lo.x<=rr.x&&Hr.y>=Sn.y&&Lo.y<=rr.y?[Mo]:Lo.xrr.x||Lo.yrr.y?[]:i.clipLine([Mo],Sn.x,Sn.y,rr.x,rr.y)}for(var Io=0,$i=Si;Io<$i.length;Io+=1){var Ui=$i[Io];Dr.reset(Ui,.25*An);var ba;ba=Dr.length<=.5*An?1:Math.ceil(Dr.paddedLength/zo)+1;for(var Pi=0;Pi=this.screenRightBoundary||Vthis.screenBottomBoundary},So.prototype.isInsideGrid=function(J,le,ie,V){return ie>=0&&J=0&&le0?(this.prevPlacement&&this.prevPlacement.variableOffsets[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID].text&&(jt=this.prevPlacement.variableOffsets[dt.crossTileID].anchor),this.variableOffsets[dt.crossTileID]={textOffset:Nt,width:ie,height:V,anchor:J,textBoxScale:ne,prevAnchor:jt},this.markUsedJustification(mt,J,dt,Et),mt.allowVerticalPlacement&&(this.markUsedOrientation(mt,Et,dt),this.placedOrientations[dt.crossTileID]=Et),{shift:cn,placedGlyphBoxes:sn}):void 0},Wr.prototype.placeLayerBucketPart=function(J,le,ie){var V=this,ne=J.parameters,ge=ne.bucket,xe=ne.layout,Me=ne.posMatrix,Fe=ne.textLabelPlaneMatrix,Je=ne.labelToScreenMatrix,rt=ne.textPixelRatio,dt=ne.holdingForFade,mt=ne.collisionBoxArray,Et=ne.partiallyEvaluatedTextSize,Vt=ne.collisionGroup,jt=xe.get("text-optional"),Nt=xe.get("icon-optional"),cn=xe.get("text-allow-overlap"),sn=xe.get("icon-allow-overlap"),xn=xe.get("text-rotation-alignment")==="map",pn=xe.get("text-pitch-alignment")==="map",Ln=xe.get("icon-text-fit")!=="none",On=xe.get("symbol-z-order")==="viewport-y",An=cn&&(sn||!ge.hasIconData()||Nt),Sn=sn&&(cn||!ge.hasTextData()||jt);!ge.collisionArrays&&mt&&ge.deserializeCollisionBoxes(mt);var rr=function(vo,zo){if(!le[vo.crossTileID])if(dt)V.placements[vo.crossTileID]=new Yn(!1,!1,!1);else{var yi,Si=!1,Hr=!1,Lo=!0,ki=null,Io={box:null,offscreen:null},$i={box:null,offscreen:null},Ui=null,ba=null,Pi=0,ds=0,mr=0;zo.textFeatureIndex?Pi=zo.textFeatureIndex:vo.useRuntimeCollisionCircles&&(Pi=vo.featureIndex),zo.verticalTextFeatureIndex&&(ds=zo.verticalTextFeatureIndex);var bs=zo.textBox;if(bs){var Pl=function(tc){var Wf=i.WritingMode.horizontal;if(ge.allowVerticalPlacement&&!tc&&V.prevPlacement){var Rl=V.prevPlacement.placedOrientations[vo.crossTileID];Rl&&(V.placedOrientations[vo.crossTileID]=Rl,Wf=Rl,V.markUsedOrientation(ge,Wf,vo))}return Wf},Ys=function(tc,Wf){if(ge.allowVerticalPlacement&&vo.numVerticalGlyphVertices>0&&zo.verticalTextBox)for(var Rl=0,cg=ge.writingModes;Rl0&&(hl=hl.filter(function(tc){return tc!==hs.anchor})).unshift(hs.anchor)}var Pa=function(tc,Wf,Rl){for(var cg=tc.x2-tc.x1,E0=tc.y2-tc.y1,xm=vo.textBoxScale,Cx=Ln&&!sn?Wf:null,eh={box:[],offscreen:!1},Ax=cn?2*hl.length:hl.length,Wg=0;Wg=hl.length,oc=V.attemptAnchorPlacement(Mx,tc,cg,E0,xm,xn,pn,rt,Me,Vt,k1,vo,ge,Rl,Cx);if(oc&&(eh=oc.placedGlyphBoxes)&&eh.box&&eh.box.length){Si=!0,ki=oc.shift;break}}return eh};Ys(function(){return Pa(bs,zo.iconBox,i.WritingMode.horizontal)},function(){var tc=zo.verticalTextBox,Wf=Io&&Io.box&&Io.box.length;return ge.allowVerticalPlacement&&!Wf&&vo.numVerticalGlyphVertices>0&&tc?Pa(tc,zo.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}}),Io&&(Si=Io.box,Lo=Io.offscreen);var Rs=Pl(Io&&Io.box);if(!Si&&V.prevPlacement){var Ls=V.prevPlacement.variableOffsets[vo.crossTileID];Ls&&(V.variableOffsets[vo.crossTileID]=Ls,V.markUsedJustification(ge,Ls.anchor,vo,Rs))}}else{var ol=function(tc,Wf){var Rl=V.collisionIndex.placeCollisionBox(tc,cn,rt,Me,Vt.predicate);return Rl&&Rl.box&&Rl.box.length&&(V.markUsedOrientation(ge,Wf,vo),V.placedOrientations[vo.crossTileID]=Wf),Rl};Ys(function(){return ol(bs,i.WritingMode.horizontal)},function(){var tc=zo.verticalTextBox;return ge.allowVerticalPlacement&&vo.numVerticalGlyphVertices>0&&tc?ol(tc,i.WritingMode.vertical):{box:null,offscreen:null}}),Pl(Io&&Io.box&&Io.box.length)}}if(Si=(yi=Io)&&yi.box&&yi.box.length>0,Lo=yi&&yi.offscreen,vo.useRuntimeCollisionCircles){var Is=ge.text.placedSymbolArray.get(vo.centerJustifiedTextSymbolIndex),Ds=i.evaluateSizeForFeature(ge.textSizeData,Et,Is),ec=xe.get("text-padding"),Tc=vo.collisionCircleDiameter;Ui=V.collisionIndex.placeCollisionCircles(cn,Is,ge.lineVertexArray,ge.glyphOffsetArray,Ds,Me,Fe,Je,ie,pn,Vt.predicate,Tc,ec),Si=cn||Ui.circles.length>0&&!Ui.collisionDetected,Lo=Lo&&Ui.offscreen}if(zo.iconFeatureIndex&&(mr=zo.iconFeatureIndex),zo.iconBox){var op=function(tc){var Wf=Ln&&ki?Qr(tc,ki.x,ki.y,xn,pn,V.transform.angle):tc;return V.collisionIndex.placeCollisionBox(Wf,sn,rt,Me,Vt.predicate)};Hr=$i&&$i.box&&$i.box.length&&zo.verticalIconBox?(ba=op(zo.verticalIconBox)).box.length>0:(ba=op(zo.iconBox)).box.length>0,Lo=Lo&&ba.offscreen}var ip=jt||vo.numHorizontalGlyphVertices===0&&vo.numVerticalGlyphVertices===0,Hs=Nt||vo.numIconVertices===0;if(ip||Hs?Hs?ip||(Hr=Hr&&Si):Si=Hr&&Si:Hr=Si=Hr&&Si,Si&&yi&&yi.box&&($i&&$i.box&&ds?V.collisionIndex.insertCollisionBox(yi.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,ds,Vt.ID):V.collisionIndex.insertCollisionBox(yi.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,Pi,Vt.ID)),Hr&&ba&&V.collisionIndex.insertCollisionBox(ba.box,xe.get("icon-ignore-placement"),ge.bucketInstanceId,mr,Vt.ID),Ui&&(Si&&V.collisionIndex.insertCollisionCircles(Ui.circles,xe.get("text-ignore-placement"),ge.bucketInstanceId,Pi,Vt.ID),ie)){var wh=ge.bucketInstanceId,pd=V.collisionCircleArrays[wh];pd===void 0&&(pd=V.collisionCircleArrays[wh]=new br);for(var qf=0;qf=0;--Pr){var Zr=Dr[Pr];rr(ge.symbolInstances.get(Zr),ge.collisionArrays[Zr])}else for(var Mo=J.symbolInstanceStart;Mo=0&&(J.text.placedSymbolArray.get(Fe).crossTileID=ne>=0&&Fe!==ne?0:ie.crossTileID)}},Wr.prototype.markUsedOrientation=function(J,le,ie){for(var V=le===i.WritingMode.horizontal||le===i.WritingMode.horizontalOnly?le:0,ne=le===i.WritingMode.vertical?le:0,ge=0,xe=[ie.leftJustifiedTextSymbolIndex,ie.centerJustifiedTextSymbolIndex,ie.rightJustifiedTextSymbolIndex];ge0||pn>0,rr=sn.numIconVertices>0,Dr=V.placedOrientations[sn.crossTileID],Pr=Dr===i.WritingMode.vertical,Zr=Dr===i.WritingMode.horizontal||Dr===i.WritingMode.horizontalOnly;if(Sn){var Mo=vr(An.text),$o=Pr?nr:Mo;Et(J.text,xn,$o);var vo=Zr?nr:Mo;Et(J.text,pn,vo);var zo=An.text.isHidden();[sn.rightJustifiedTextSymbolIndex,sn.centerJustifiedTextSymbolIndex,sn.leftJustifiedTextSymbolIndex].forEach(function(mr){mr>=0&&(J.text.placedSymbolArray.get(mr).hidden=zo||Pr?1:0)}),sn.verticalPlacedTextSymbolIndex>=0&&(J.text.placedSymbolArray.get(sn.verticalPlacedTextSymbolIndex).hidden=zo||Zr?1:0);var yi=V.variableOffsets[sn.crossTileID];yi&&V.markUsedJustification(J,yi.anchor,sn,Dr);var Si=V.placedOrientations[sn.crossTileID];Si&&(V.markUsedJustification(J,"left",sn,Si),V.markUsedOrientation(J,Si,sn))}if(rr){var Hr=vr(An.icon),Lo=!(dt&&sn.verticalPlacedIconSymbolIndex&&Pr);if(sn.placedIconSymbolIndex>=0){var ki=Lo?Hr:nr;Et(J.icon,sn.numIconVertices,ki),J.icon.placedSymbolArray.get(sn.placedIconSymbolIndex).hidden=An.icon.isHidden()}if(sn.verticalPlacedIconSymbolIndex>=0){var Io=Lo?nr:Hr;Et(J.icon,sn.numVerticalIconVertices,Io),J.icon.placedSymbolArray.get(sn.verticalPlacedIconSymbolIndex).hidden=An.icon.isHidden()}}if(J.hasIconCollisionBoxData()||J.hasTextCollisionBoxData()){var $i=J.collisionArrays[cn];if($i){var Ui=new i.Point(0,0);if($i.textBox||$i.verticalTextBox){var ba=!0;if(Fe){var Pi=V.variableOffsets[Ln];Pi?(Ui=io(Pi.anchor,Pi.width,Pi.height,Pi.textOffset,Pi.textBoxScale),Je&&Ui._rotate(rt?V.transform.angle:-V.transform.angle)):ba=!1}$i.textBox&&bo(J.textCollisionBox.collisionVertexArray,An.text.placed,!ba||Pr,Ui.x,Ui.y),$i.verticalTextBox&&bo(J.textCollisionBox.collisionVertexArray,An.text.placed,!ba||Zr,Ui.x,Ui.y)}var ds=!!(!Zr&&$i.verticalIconBox);$i.iconBox&&bo(J.iconCollisionBox.collisionVertexArray,An.icon.placed,ds,dt?Ui.x:0,dt?Ui.y:0),$i.verticalIconBox&&bo(J.iconCollisionBox.collisionVertexArray,An.icon.placed,!ds,dt?Ui.x:0,dt?Ui.y:0)}}},jt=0;jtJ},Wr.prototype.setStale=function(){this.stale=!0};var Bn=Math.pow(2,25),hr=Math.pow(2,24),hn=Math.pow(2,17),zn=Math.pow(2,16),Zn=Math.pow(2,9),yr=Math.pow(2,8),gr=Math.pow(2,1);function vr(J){if(J.opacity===0&&!J.placed)return 0;if(J.opacity===1&&J.placed)return 4294967295;var le=J.placed?1:0,ie=Math.floor(127*J.opacity);return ie*Bn+le*hr+ie*hn+le*zn+ie*Zn+le*yr+ie*gr+le}var nr=0,Qn=function(J){this._sortAcrossTiles=J.layout.get("symbol-z-order")!=="viewport-y"&&J.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Qn.prototype.continuePlacement=function(J,le,ie,V,ne){for(var ge=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var xe=le[J[this._currentPlacementIndex]],Me=this.placement.collisionIndex.transform.zoom;if(xe.type==="symbol"&&(!xe.minzoom||xe.minzoom<=Me)&&(!xe.maxzoom||xe.maxzoom>Me)){if(this._inProgressLayer||(this._inProgressLayer=new Qn(xe)),this._inProgressLayer.continuePlacement(ie[xe.source],this.placement,this._showCollisionBoxes,xe,ge))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Hn.prototype.commit=function(J){return this.placement.commit(J),this.placement};var tr=512/i.EXTENT/2,cr=function(J,le,ie){this.tileID=J,this.indexedSymbolInstances={},this.bucketInstanceId=ie;for(var V=0;VJ.overscaledZ)for(var Me in xe){var Fe=xe[Me];Fe.tileID.isChildOf(J)&&Fe.findMatches(le.symbolInstances,J,ne)}else{var Je=xe[J.scaledTo(Number(ge)).key];Je&&Je.findMatches(le.symbolInstances,J,ne)}}for(var rt=0;rt1?"@2x":"",dt=i.getJSON(ge.transformRequest(ge.normalizeSpriteURL(ne,rt,".json"),i.ResourceType.SpriteJSON),function(Vt,jt){dt=null,Je||(Je=Vt,Me=jt,Et())}),mt=i.getImage(ge.transformRequest(ge.normalizeSpriteURL(ne,rt,".png"),i.ResourceType.SpriteImage),function(Vt,jt){mt=null,Je||(Je=Vt,Fe=jt,Et())});function Et(){if(Je)xe(Je);else if(Me&&Fe){var Vt=i.browser.getImageData(Fe),jt={};for(var Nt in Me){var cn=Me[Nt],sn=cn.width,xn=cn.height,pn=cn.x,Ln=cn.y,On=cn.sdf,An=cn.pixelRatio,Sn=cn.stretchX,rr=cn.stretchY,Dr=cn.content,Pr=new i.RGBAImage({width:sn,height:xn});i.RGBAImage.copy(Vt,Pr,{x:pn,y:Ln},{x:0,y:0},{width:sn,height:xn}),jt[Nt]={data:Pr,pixelRatio:An,sdf:On,stretchX:Sn,stretchY:rr,content:Dr}}xe(null,jt)}}return{cancel:function(){dt&&(dt.cancel(),dt=null),mt&&(mt.cancel(),mt=null)}}}(ie,this.map._requestManager,function(ne,ge){if(V._spriteRequest=null,ne)V.fire(new i.ErrorEvent(ne));else if(ge)for(var xe in ge)V.imageManager.addImage(xe,ge[xe]);V.imageManager.setLoaded(!0),V._availableImages=V.imageManager.listImages(),V.dispatcher.broadcast("setImages",V._availableImages),V.fire(new i.Event("data",{dataType:"style"}))})},le.prototype._validateLayer=function(ie){var V=this.sourceCaches[ie.source];if(V){var ne=ie.sourceLayer;if(ne){var ge=V.getSource();(ge.type==="geojson"||ge.vectorLayerIds&&ge.vectorLayerIds.indexOf(ne)===-1)&&this.fire(new i.ErrorEvent(new Error('Source layer "'+ne+'" does not exist on source "'+ge.id+'" as specified by style layer "'+ie.id+'"')))}}},le.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var ie in this.sourceCaches)if(!this.sourceCaches[ie].loaded())return!1;return!!this.imageManager.isLoaded()},le.prototype._serializeLayers=function(ie){for(var V=[],ne=0,ge=ie;ne0)throw new Error("Unimplemented: "+ge.map(function(xe){return xe.command}).join(", ")+".");return ne.forEach(function(xe){xe.command!=="setTransition"&&V[xe.command].apply(V,xe.args)}),this.stylesheet=ie,!0},le.prototype.addImage=function(ie,V){if(this.getImage(ie))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ie,V),this._afterImageUpdated(ie)},le.prototype.updateImage=function(ie,V){this.imageManager.updateImage(ie,V)},le.prototype.getImage=function(ie){return this.imageManager.getImage(ie)},le.prototype.removeImage=function(ie){if(!this.getImage(ie))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ie),this._afterImageUpdated(ie)},le.prototype._afterImageUpdated=function(ie){this._availableImages=this.imageManager.listImages(),this._changedImages[ie]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},le.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},le.prototype.addSource=function(ie,V,ne){var ge=this;if(ne===void 0&&(ne={}),this._checkLoaded(),this.sourceCaches[ie]!==void 0)throw new Error("There is already a source with this ID");if(!V.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(V).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(V.type)>=0&&this._validate(i.validateStyle.source,"sources."+ie,V,null,ne))){this.map&&this.map._collectResourceTiming&&(V.collectResourceTiming=!0);var xe=this.sourceCaches[ie]=new zt(ie,V,this.dispatcher);xe.style=this,xe.setEventedParent(this,function(){return{isSourceLoaded:ge.loaded(),source:xe.serialize(),sourceId:ie}}),xe.onAdd(this.map),this._changed=!0}},le.prototype.removeSource=function(ie){if(this._checkLoaded(),this.sourceCaches[ie]===void 0)throw new Error("There is no source with this ID");for(var V in this._layers)if(this._layers[V].source===ie)return this.fire(new i.ErrorEvent(new Error('Source "'+ie+'" cannot be removed while layer "'+V+'" is using it.')));var ne=this.sourceCaches[ie];delete this.sourceCaches[ie],delete this._updatedSources[ie],ne.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ie})),ne.setEventedParent(null),ne.clearTiles(),ne.onRemove&&ne.onRemove(this.map),this._changed=!0},le.prototype.setGeoJSONSourceData=function(ie,V){this._checkLoaded(),this.sourceCaches[ie].getSource().setData(V),this._changed=!0},le.prototype.getSource=function(ie){return this.sourceCaches[ie]&&this.sourceCaches[ie].getSource()},le.prototype.addLayer=function(ie,V,ne){ne===void 0&&(ne={}),this._checkLoaded();var ge=ie.id;if(this.getLayer(ge))this.fire(new i.ErrorEvent(new Error('Layer with id "'+ge+'" already exists on this map')));else{var xe;if(ie.type==="custom"){if(to(this,i.validateCustomStyleLayer(ie)))return;xe=i.createStyleLayer(ie)}else{if(typeof ie.source=="object"&&(this.addSource(ge,ie.source),ie=i.clone$1(ie),ie=i.extend(ie,{source:ge})),this._validate(i.validateStyle.layer,"layers."+ge,ie,{arrayIndex:-1},ne))return;xe=i.createStyleLayer(ie),this._validateLayer(xe),xe.setEventedParent(this,{layer:{id:ge}}),this._serializedLayers[xe.id]=xe.serialize()}var Me=V?this._order.indexOf(V):this._order.length;if(V&&Me===-1)this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.')));else{if(this._order.splice(Me,0,ge),this._layerOrderChanged=!0,this._layers[ge]=xe,this._removedLayers[ge]&&xe.source&&xe.type!=="custom"){var Fe=this._removedLayers[ge];delete this._removedLayers[ge],Fe.type!==xe.type?this._updatedSources[xe.source]="clear":(this._updatedSources[xe.source]="reload",this.sourceCaches[xe.source].pause())}this._updateLayer(xe),xe.onAdd&&xe.onAdd(this.map)}}},le.prototype.moveLayer=function(ie,V){if(this._checkLoaded(),this._changed=!0,this._layers[ie]){if(ie!==V){var ne=this._order.indexOf(ie);this._order.splice(ne,1);var ge=V?this._order.indexOf(V):this._order.length;V&&ge===-1?this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.'))):(this._order.splice(ge,0,ie),this._layerOrderChanged=!0)}}else this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be moved.")))},le.prototype.removeLayer=function(ie){this._checkLoaded();var V=this._layers[ie];if(V){V.setEventedParent(null);var ne=this._order.indexOf(ie);this._order.splice(ne,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ie]=V,delete this._layers[ie],delete this._serializedLayers[ie],delete this._updatedLayers[ie],delete this._updatedPaintProps[ie],V.onRemove&&V.onRemove(this.map)}else this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be removed.")))},le.prototype.getLayer=function(ie){return this._layers[ie]},le.prototype.hasLayer=function(ie){return ie in this._layers},le.prototype.setLayerZoomRange=function(ie,V,ne){this._checkLoaded();var ge=this.getLayer(ie);ge?ge.minzoom===V&&ge.maxzoom===ne||(V!=null&&(ge.minzoom=V),ne!=null&&(ge.maxzoom=ne),this._updateLayer(ge)):this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot have zoom extent.")))},le.prototype.setFilter=function(ie,V,ne){ne===void 0&&(ne={}),this._checkLoaded();var ge=this.getLayer(ie);if(ge){if(!i.deepEqual(ge.filter,V))return V==null?(ge.filter=void 0,void this._updateLayer(ge)):void(this._validate(i.validateStyle.filter,"layers."+ge.id+".filter",V,null,ne)||(ge.filter=i.clone$1(V),this._updateLayer(ge)))}else this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be filtered.")))},le.prototype.getFilter=function(ie){return i.clone$1(this.getLayer(ie).filter)},le.prototype.setLayoutProperty=function(ie,V,ne,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ie);xe?i.deepEqual(xe.getLayoutProperty(V),ne)||(xe.setLayoutProperty(V,ne,ge),this._updateLayer(xe)):this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getLayoutProperty=function(ie,V){var ne=this.getLayer(ie);if(ne)return ne.getLayoutProperty(V);this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style.")))},le.prototype.setPaintProperty=function(ie,V,ne,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ie);xe?i.deepEqual(xe.getPaintProperty(V),ne)||(xe.setPaintProperty(V,ne,ge)&&this._updateLayer(xe),this._changed=!0,this._updatedPaintProps[ie]=!0):this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getPaintProperty=function(ie,V){return this.getLayer(ie).getPaintProperty(V)},le.prototype.setFeatureState=function(ie,V){this._checkLoaded();var ne=ie.source,ge=ie.sourceLayer,xe=this.sourceCaches[ne];if(xe!==void 0){var Me=xe.getSource().type;Me==="geojson"&&ge?this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Me!=="vector"||ge?(ie.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),xe.setFeatureState(ge,ie.id,V)):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ne+"' does not exist in the map's style.")))},le.prototype.removeFeatureState=function(ie,V){this._checkLoaded();var ne=ie.source,ge=this.sourceCaches[ne];if(ge!==void 0){var xe=ge.getSource().type,Me=xe==="vector"?ie.sourceLayer:void 0;xe!=="vector"||Me?V&&typeof ie.id!="string"&&typeof ie.id!="number"?this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):ge.removeFeatureState(Me,ie.id,V):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ne+"' does not exist in the map's style.")))},le.prototype.getFeatureState=function(ie){this._checkLoaded();var V=ie.source,ne=ie.sourceLayer,ge=this.sourceCaches[V];if(ge!==void 0){if(ge.getSource().type!=="vector"||ne)return ie.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ge.getFeatureState(ne,ie.id);this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+V+"' does not exist in the map's style.")))},le.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},le.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(ie){return ie.serialize()}),layers:this._serializeLayers(this._order)},function(ie){return ie!==void 0})},le.prototype._updateLayer=function(ie){this._updatedLayers[ie.id]=!0,ie.source&&!this._updatedSources[ie.source]&&this.sourceCaches[ie.source].getSource().type!=="raster"&&(this._updatedSources[ie.source]="reload",this.sourceCaches[ie.source].pause()),this._changed=!0},le.prototype._flattenAndSortRenderedFeatures=function(ie){for(var V=this,ne=function(Dr){return V._layers[Dr].type==="fill-extrusion"},ge={},xe=[],Me=this._order.length-1;Me>=0;Me--){var Fe=this._order[Me];if(ne(Fe)){ge[Fe]=Me;for(var Je=0,rt=ie;Je=0;Nt--){var cn=this._order[Nt];if(ne(cn))for(var sn=xe.length-1;sn>=0;sn--){var xn=xe[sn].feature;if(ge[xn.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Aa=yl("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),Xl=yl("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),Na=yl(`#pragma mapbox: define highp vec4 color +}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),mo=xl("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Aa=xl("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),Xl=xl("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),Na=xl(`#pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color @@ -2425,7 +2425,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),cs=yl(`varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);}`),us=xl(`varying vec2 v_pos; #pragma mapbox: define highp vec4 outline_color #pragma mapbox: define lowp float opacity void main() { @@ -2441,7 +2441,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 outline_color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),wc=yl(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),wc=xl(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -2465,7 +2465,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),ma=yl(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),ga=xl(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -2489,7 +2489,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),Ku=yl(`varying vec4 v_color;void main() {gl_FragColor=v_color; +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),Ku=xl(`varying vec4 v_color;void main() {gl_FragColor=v_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif @@ -2501,7 +2501,7 @@ void main() { #pragma mapbox: initialize highp float base #pragma mapbox: initialize highp float height #pragma mapbox: initialize highp vec4 color -vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),qc=yl(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),qc=xl(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; #pragma mapbox: define lowp float base #pragma mapbox: define lowp float height #pragma mapbox: define lowp vec4 pattern_from @@ -2535,20 +2535,20 @@ void main() { #pragma mapbox: initialize lowp float pixel_ratio_to vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 ? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),Yd=yl(`#ifdef GL_ES +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),Yd=xl(`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),Ql=yl(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),Ql=xl(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; #define PI 3.141592653589793 void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),Ed=yl(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),Ed=xl(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -2576,7 +2576,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),Nf=yl(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),Nf=xl(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { @@ -2600,7 +2600,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),mm=yl(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),mm=xl(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from @@ -2643,7 +2643,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),Ws=yl(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),Ws=xl(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -2678,11 +2678,11 @@ void main() { #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float floorwidth -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),gm=yl(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),gm=xl(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),Gl=yl(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),Gl=xl(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity @@ -2696,7 +2696,7 @@ void main() { #pragma mapbox: initialize lowp float opacity vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),pc=yl(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),pc=xl(`#define SDF_PX 8.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color @@ -2727,7 +2727,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),Cu=yl(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),Cu=xl(`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; @@ -2764,7 +2764,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function yl(J,le){var ie=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,V=le.match(/attribute ([\w]+) ([\w]+)/g),ne=J.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ge=le.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),xe=ge?ge.concat(ne):ne,Me={};return{fragmentSource:J=J.replace(ie,function(Fe,Je,rt,dt,mt){return Me[mt]=!0,Je==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function xl(J,le){var ie=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,V=le.match(/attribute ([\w]+) ([\w]+)/g),ne=J.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ge=le.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),xe=ge?ge.concat(ne):ne,Me={};return{fragmentSource:J=J.replace(ie,function(Fe,Je,rt,dt,mt){return Me[mt]=!0,Je==="define"?` #ifndef HAS_UNIFORM_u_`+mt+` varying `+rt+" "+dt+" "+mt+`; #else @@ -2813,9 +2813,9 @@ uniform `+rt+" "+dt+" u_"+mt+`; #else `+rt+" "+dt+" "+mt+" = u_"+mt+`; #endif -`}),staticAttributes:V,staticUniforms:xe}}var sa=Object.freeze({__proto__:null,prelude:Go,background:po,backgroundPattern:qo,circle:Ao,clippingMask:oi,heatmap:ko,heatmapTexture:ra,collisionBox:mo,collisionCircle:Aa,debug:Xl,fill:Na,fillOutline:cs,fillOutlinePattern:wc,fillPattern:ma,fillExtrusion:Ku,fillExtrusionPattern:qc,hillshadePrepare:Yd,hillshade:Ql,line:Ed,lineGradient:Nf,linePattern:mm,lineSDF:Ws,raster:gm,symbolIcon:Gl,symbolSDF:pc,symbolTextAndIcon:Cu}),cc=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function hu(J){for(var le=[],ie=0;ie>16,Me>>16],u_pixel_coord_lower:[65535&xe,65535&Me]}}ju.prototype.draw=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je,rt,dt,mt,Et,Vt,jt){var Nt,cn=J.gl;if(!this.failedToCreate){for(var sn in J.program.set(this.program),J.setDepthMode(ie),J.setStencilMode(V),J.setColorMode(ne),J.setCullFace(ge),this.fixedUniforms)this.fixedUniforms[sn].set(xe[sn]);Et&&Et.setUniforms(J,this.binderUniforms,dt,{zoom:mt});for(var xn=(Nt={},Nt[cn.LINES]=2,Nt[cn.TRIANGLES]=3,Nt[cn.LINE_STRIP]=1,Nt)[le],pn=0,Ln=rt.get();pn0?1-1/(1.001-xe):-xe),u_contrast_factor:(ge=ne.paint.get("raster-contrast"),ge>0?1/(1-ge):1+ge),u_spin_weights:xf(ne.paint.get("raster-hue-rotate"))};var ge,xe};function xf(J){J*=Math.PI/180;var le=Math.sin(J),ie=Math.cos(J);return[(2*ie+1)/3,(-Math.sqrt(3)*le-ie+1)/3,(Math.sqrt(3)*le-ie+1)/3]}var cd,nf=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je){var rt=ne.transform;return{u_is_size_zoom_constant:+(J==="constant"||J==="source"),u_is_size_feature_constant:+(J==="constant"||J==="camera"),u_size_t:le?le.uSizeT:0,u_size:le?le.uSize:0,u_camera_to_center_distance:rt.cameraToCenterDistance,u_pitch:rt.pitch/360*2*Math.PI,u_rotate_symbol:+ie,u_aspect_ratio:rt.width/rt.height,u_fade_change:ne.options.fadeDuration?ne.symbolFadeChange:1,u_matrix:ge,u_label_plane_matrix:xe,u_coord_matrix:Me,u_is_text:+Fe,u_pitch_with_map:+V,u_texsize:Je,u_texture:0}},gh=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je,rt){var dt=ne.transform;return i.extend(nf(J,le,ie,V,ne,ge,xe,Me,Fe,Je),{u_gamma_scale:V?Math.cos(dt._pitch)*dt.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+rt})},rs=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je){return i.extend(gh(J,le,ie,V,ne,ge,xe,Me,!0,Fe,!0),{u_texsize_icon:Je,u_texture_icon:1})},ep=function(J,le,ie){return{u_matrix:J,u_opacity:le,u_color:ie}},Ep=function(J,le,ie,V,ne,ge){return i.extend(function(xe,Me,Fe,Je){var rt=Fe.imageManager.getPattern(xe.from.toString()),dt=Fe.imageManager.getPattern(xe.to.toString()),mt=Fe.imageManager.getPixelSize(),Et=mt.width,Vt=mt.height,jt=Math.pow(2,Je.tileID.overscaledZ),Nt=Je.tileSize*Math.pow(2,Fe.transform.tileZoom)/jt,cn=Nt*(Je.tileID.canonical.x+Je.tileID.wrap*jt),sn=Nt*Je.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:rt.tl,u_pattern_br_a:rt.br,u_pattern_tl_b:dt.tl,u_pattern_br_b:dt.br,u_texsize:[Et,Vt],u_mix:Me.t,u_pattern_size_a:rt.displaySize,u_pattern_size_b:dt.displaySize,u_scale_a:Me.fromScale,u_scale_b:Me.toScale,u_tile_units_to_pixels:1/go(Je,1,Fe.transform.tileZoom),u_pixel_coord_upper:[cn>>16,sn>>16],u_pixel_coord_lower:[65535&cn,65535&sn]}}(V,ge,ie,ne),{u_matrix:J,u_opacity:le})},vm={fillExtrusion:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fillExtrusionPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_height_factor:new i.Uniform1f(J,le.u_height_factor),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fill:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},fillPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},fillOutline:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world)}},fillOutlinePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},circle:function(J,le){return{u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(J,le.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},collisionBox:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(J,le.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_overscale_factor:new i.Uniform1f(J,le.u_overscale_factor)}},collisionCircle:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_inv_matrix:new i.UniformMatrix4f(J,le.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(J,le.u_viewport_size)}},debug:function(J,le){return{u_color:new i.UniformColor(J,le.u_color),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_overlay:new i.Uniform1i(J,le.u_overlay),u_overlay_scale:new i.Uniform1f(J,le.u_overlay_scale)}},clippingMask:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmap:function(J,le){return{u_extrude_scale:new i.Uniform1f(J,le.u_extrude_scale),u_intensity:new i.Uniform1f(J,le.u_intensity),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmapTexture:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_color_ramp:new i.Uniform1i(J,le.u_color_ramp),u_opacity:new i.Uniform1f(J,le.u_opacity)}},hillshade:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_latrange:new i.Uniform2f(J,le.u_latrange),u_light:new i.Uniform2f(J,le.u_light),u_shadow:new i.UniformColor(J,le.u_shadow),u_highlight:new i.UniformColor(J,le.u_highlight),u_accent:new i.UniformColor(J,le.u_accent)}},hillshadePrepare:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_dimension:new i.Uniform2f(J,le.u_dimension),u_zoom:new i.Uniform1f(J,le.u_zoom),u_unpack:new i.Uniform4f(J,le.u_unpack)}},line:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels)}},lineGradient:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_image:new i.Uniform1i(J,le.u_image),u_image_height:new i.Uniform1f(J,le.u_image_height)}},linePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_texsize:new i.Uniform2f(J,le.u_texsize),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_image:new i.Uniform1i(J,le.u_image),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},lineSDF:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(J,le.u_patternscale_a),u_patternscale_b:new i.Uniform2f(J,le.u_patternscale_b),u_sdfgamma:new i.Uniform1f(J,le.u_sdfgamma),u_image:new i.Uniform1i(J,le.u_image),u_tex_y_a:new i.Uniform1f(J,le.u_tex_y_a),u_tex_y_b:new i.Uniform1f(J,le.u_tex_y_b),u_mix:new i.Uniform1f(J,le.u_mix)}},raster:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_tl_parent:new i.Uniform2f(J,le.u_tl_parent),u_scale_parent:new i.Uniform1f(J,le.u_scale_parent),u_buffer_scale:new i.Uniform1f(J,le.u_buffer_scale),u_fade_t:new i.Uniform1f(J,le.u_fade_t),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image0:new i.Uniform1i(J,le.u_image0),u_image1:new i.Uniform1i(J,le.u_image1),u_brightness_low:new i.Uniform1f(J,le.u_brightness_low),u_brightness_high:new i.Uniform1f(J,le.u_brightness_high),u_saturation_factor:new i.Uniform1f(J,le.u_saturation_factor),u_contrast_factor:new i.Uniform1f(J,le.u_contrast_factor),u_spin_weights:new i.Uniform3f(J,le.u_spin_weights)}},symbolIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture)}},symbolSDF:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},symbolTextAndIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texsize_icon:new i.Uniform2f(J,le.u_texsize_icon),u_texture:new i.Uniform1i(J,le.u_texture),u_texture_icon:new i.Uniform1i(J,le.u_texture_icon),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},background:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_color:new i.UniformColor(J,le.u_color)}},backgroundPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image:new i.Uniform1i(J,le.u_image),u_pattern_tl_a:new i.Uniform2f(J,le.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(J,le.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(J,le.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(J,le.u_pattern_br_b),u_texsize:new i.Uniform2f(J,le.u_texsize),u_mix:new i.Uniform1f(J,le.u_mix),u_pattern_size_a:new i.Uniform2f(J,le.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(J,le.u_pattern_size_b),u_scale_a:new i.Uniform1f(J,le.u_scale_a),u_scale_b:new i.Uniform1f(J,le.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(J,le.u_tile_units_to_pixels)}}};function Pd(J,le,ie,V,ne,ge,xe){for(var Me=J.context,Fe=Me.gl,Je=J.useProgram("collisionBox"),rt=[],dt=0,mt=0,Et=0;Et0){var pn=i.create(),Ln=cn;i.mul(pn,Nt.placementInvProjMatrix,J.transform.glCoordMatrix),i.mul(pn,pn,Nt.placementViewportMatrix),rt.push({circleArray:xn,circleOffset:mt,transform:Ln,invTransform:pn}),mt=dt+=xn.length/4}sn&&Je.draw(Me,Fe.LINES,bn.disabled,vt.disabled,J.colorModeForRenderPass(),lt.disabled,ef(cn,J.transform,jt),ie.id,sn.layoutVertexBuffer,sn.indexBuffer,sn.segments,null,J.transform.zoom,null,null,sn.collisionVertexBuffer)}}if(xe&&rt.length){var On=J.useProgram("collisionCircle"),An=new i.StructArrayLayout2f1f2i16;An.resize(4*dt),An._trim();for(var Sn=0,rr=0,Dr=rt;rr=0&&(Vt[Nt.associatedIconIndex]={shiftedAnchor:Dr,angle:Pr})}else Kr(Nt.numGlyphs,mt)}if(rt){Et.clear();for(var Mo=J.icon.placedSymbolArray,$o=0;$o0){var xe=i.browser.now(),Me=(xe-J.timeAdded)/ge,Fe=le?(xe-le.timeAdded)/ge:-1,Je=ie.getSource(),rt=ne.coveringZoomLevel({tileSize:Je.tileSize,roundZoom:Je.roundZoom}),dt=!le||Math.abs(le.tileID.overscaledZ-rt)>Math.abs(J.tileID.overscaledZ-rt),mt=dt&&J.refreshedUponExpiration?1:i.clamp(dt?Me:1-Fe,0,1);return J.refreshedUponExpiration&&Me>=1&&(J.refreshedUponExpiration=!1),le?{opacity:1,mix:1-mt}:{opacity:mt,mix:0}}return{opacity:1,mix:0}}var ym=new i.Color(1,0,0,1),Mu=new i.Color(0,1,0,1),Hu=new i.Color(0,0,1,1),Lp=new i.Color(1,0,1,1),Uh=new i.Color(0,1,1,1);function jh(J){var le=J.transform.padding;Eu(J,J.transform.height-(le.top||0),3,ym),Eu(J,le.bottom||0,3,Mu),ud(J,le.left||0,3,Hu),ud(J,J.transform.width-(le.right||0),3,Lp);var ie=J.transform.centerPoint;(function(V,ne,ge,xe){var Me=20,Fe=2;vh(V,ne-Fe/2,ge-Me/2,Fe,Me,xe),vh(V,ne-Me/2,ge-Fe/2,Me,Fe,xe)})(J,ie.x,J.transform.height-ie.y,Uh)}function Eu(J,le,ie,V){vh(J,0,le+ie/2,J.transform.width,ie,V)}function ud(J,le,ie,V){vh(J,le-ie/2,0,ie,J.transform.height,V)}function vh(J,le,ie,V,ne,ge){var xe=J.context,Me=xe.gl;Me.enable(Me.SCISSOR_TEST),Me.scissor(le*i.browser.devicePixelRatio,ie*i.browser.devicePixelRatio,V*i.browser.devicePixelRatio,ne*i.browser.devicePixelRatio),xe.clear({color:ge}),Me.disable(Me.SCISSOR_TEST)}function Pu(J,le,ie){var V=J.context,ne=V.gl,ge=ie.posMatrix,xe=J.useProgram("debug"),Me=bn.disabled,Fe=vt.disabled,Je=J.colorModeForRenderPass(),rt="$debug";V.activeTexture.set(ne.TEXTURE0),J.emptyTexture.bind(ne.LINEAR,ne.CLAMP_TO_EDGE),xe.draw(V,ne.LINE_STRIP,Me,Fe,Je,lt.disabled,ad(ge,i.Color.red),rt,J.debugBuffer,J.tileBorderIndexBuffer,J.debugSegments);var dt=le.getTileByID(ie.key).latestRawTileData,mt=dt&&dt.byteLength||0,Et=Math.floor(mt/1024),Vt=le.getTile(ie).tileSize,jt=512/Math.min(Vt,512)*(ie.overscaledZ/J.transform.zoom)*.5,Nt=ie.canonical.toString();ie.overscaledZ!==ie.canonical.z&&(Nt+=" => "+ie.overscaledZ),function(cn,sn){cn.initDebugOverlayCanvas();var xn=cn.debugOverlayCanvas,pn=cn.context.gl,Ln=cn.debugOverlayCanvas.getContext("2d");Ln.clearRect(0,0,xn.width,xn.height),Ln.shadowColor="white",Ln.shadowBlur=2,Ln.lineWidth=1.5,Ln.strokeStyle="white",Ln.textBaseline="top",Ln.font="bold 36px Open Sans, sans-serif",Ln.fillText(sn,5,5),Ln.strokeText(sn,5,5),cn.debugOverlayTexture.update(xn),cn.debugOverlayTexture.bind(pn.LINEAR,pn.CLAMP_TO_EDGE)}(J,Nt+" "+Et+"kb"),xe.draw(V,ne.TRIANGLES,Me,Fe,bt.alphaBlended,lt.disabled,ad(ge,i.Color.transparent,jt),rt,J.debugBuffer,J.quadTriangleIndexBuffer,J.debugSegments)}var Oc={symbol:function(J,le,ie,V,ne){if(J.renderPass==="translucent"){var ge=vt.disabled,xe=J.colorModeForRenderPass();ie.layout.get("text-variable-anchor")&&function(Me,Fe,Je,rt,dt,mt,Et){for(var Vt=Fe.transform,jt=dt==="map",Nt=mt==="map",cn=0,sn=Me;cn256&&this.clearStencil(),ie.setColorMode(bt.disabled),ie.setDepthMode(bn.disabled);var ne=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ge=0,xe=le;ge256&&this.clearStencil();var J=this.nextStencilID++,le=this.context.gl;return new vt({func:le.NOTEQUAL,mask:255},J,255,le.KEEP,le.KEEP,le.REPLACE)},ks.prototype.stencilModeForClipping=function(J){var le=this.context.gl;return new vt({func:le.EQUAL,mask:255},this._tileClippingMaskIDs[J.key],0,le.KEEP,le.KEEP,le.REPLACE)},ks.prototype.stencilConfigForOverlap=function(J){var le,ie=this.context.gl,V=J.sort(function(Fe,Je){return Je.overscaledZ-Fe.overscaledZ}),ne=V[V.length-1].overscaledZ,ge=V[0].overscaledZ-ne+1;if(ge>1){this.currentStencilSource=void 0,this.nextStencilID+ge>256&&this.clearStencil();for(var xe={},Me=0;Me=0;this.currentLayer--){var Ln=this.style._layers[V[this.currentLayer]],On=ne[Ln.source],An=Je[Ln.source];this._renderTileClippingMasks(Ln,An),this.renderLayer(this,On,Ln,An)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?le.pop():null},ks.prototype.isPatternMissing=function(J){if(!J)return!1;if(!J.from||!J.to)return!0;var le=this.imageManager.getPattern(J.from.toString()),ie=this.imageManager.getPattern(J.to.toString());return!le||!ie},ks.prototype.useProgram=function(J,le){this.cache=this.cache||{};var ie=""+J+(le?le.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[ie]||(this.cache[ie]=new ju(this.context,J,sa[J],le,vm[J],this._showOverdrawInspector)),this.cache[ie]},ks.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},ks.prototype.setBaseState=function(){var J=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(J.FUNC_ADD)},ks.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var J=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,J.RGBA)}},ks.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Uf=function(J,le){this.points=J,this.planes=le};Uf.fromInvProjectionMatrix=function(J,le,ie){var V=Math.pow(2,ie),ne=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(xe){return i.transformMat4([],xe,J)}).map(function(xe){return i.scale$1([],xe,1/xe[3]/le*V)}),ge=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(xe){var Me=i.sub([],ne[xe[0]],ne[xe[1]]),Fe=i.sub([],ne[xe[2]],ne[xe[1]]),Je=i.normalize([],i.cross([],Me,Fe)),rt=-i.dot(Je,ne[xe[1]]);return Je.concat(rt)});return new Uf(ne,ge)};var zl=function(J,le){this.min=J,this.max=le,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};zl.prototype.quadrant=function(J){for(var le=[J%2==0,J<2],ie=i.clone$2(this.min),V=i.clone$2(this.max),ne=0;ne=0;if(ge===0)return 0;ge!==le.length&&(ie=!1)}if(ie)return 2;for(var Me=0;Me<3;Me++){for(var Fe=Number.MAX_VALUE,Je=-Number.MAX_VALUE,rt=0;rtthis.max[Me]-this.min[Me])return 0}return 1};var Hl=function(J,le,ie,V){if(J===void 0&&(J=0),le===void 0&&(le=0),ie===void 0&&(ie=0),V===void 0&&(V=0),isNaN(J)||J<0||isNaN(le)||le<0||isNaN(ie)||ie<0||isNaN(V)||V<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=J,this.bottom=le,this.left=ie,this.right=V};Hl.prototype.interpolate=function(J,le,ie){return le.top!=null&&J.top!=null&&(this.top=i.number(J.top,le.top,ie)),le.bottom!=null&&J.bottom!=null&&(this.bottom=i.number(J.bottom,le.bottom,ie)),le.left!=null&&J.left!=null&&(this.left=i.number(J.left,le.left,ie)),le.right!=null&&J.right!=null&&(this.right=i.number(J.right,le.right,ie)),this},Hl.prototype.getCenter=function(J,le){var ie=i.clamp((this.left+J-this.right)/2,0,J),V=i.clamp((this.top+le-this.bottom)/2,0,le);return new i.Point(ie,V)},Hl.prototype.equals=function(J){return this.top===J.top&&this.bottom===J.bottom&&this.left===J.left&&this.right===J.right},Hl.prototype.clone=function(){return new Hl(this.top,this.bottom,this.left,this.right)},Hl.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Ts=function(J,le,ie,V,ne){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=ne===void 0||ne,this._minZoom=J||0,this._maxZoom=le||22,this._minPitch=ie??0,this._maxPitch=V??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Hl,this._posMatrixCache={},this._alignedPosMatrixCache={}},$s={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Ts.prototype.clone=function(){var J=new Ts(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return J.tileSize=this.tileSize,J.latRange=this.latRange,J.width=this.width,J.height=this.height,J._center=this._center,J.zoom=this.zoom,J.angle=this.angle,J._fov=this._fov,J._pitch=this._pitch,J._unmodified=this._unmodified,J._edgeInsets=this._edgeInsets.clone(),J._calcMatrices(),J},$s.minZoom.get=function(){return this._minZoom},$s.minZoom.set=function(J){this._minZoom!==J&&(this._minZoom=J,this.zoom=Math.max(this.zoom,J))},$s.maxZoom.get=function(){return this._maxZoom},$s.maxZoom.set=function(J){this._maxZoom!==J&&(this._maxZoom=J,this.zoom=Math.min(this.zoom,J))},$s.minPitch.get=function(){return this._minPitch},$s.minPitch.set=function(J){this._minPitch!==J&&(this._minPitch=J,this.pitch=Math.max(this.pitch,J))},$s.maxPitch.get=function(){return this._maxPitch},$s.maxPitch.set=function(J){this._maxPitch!==J&&(this._maxPitch=J,this.pitch=Math.min(this.pitch,J))},$s.renderWorldCopies.get=function(){return this._renderWorldCopies},$s.renderWorldCopies.set=function(J){J===void 0?J=!0:J===null&&(J=!1),this._renderWorldCopies=J},$s.worldSize.get=function(){return this.tileSize*this.scale},$s.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},$s.size.get=function(){return new i.Point(this.width,this.height)},$s.bearing.get=function(){return-this.angle/Math.PI*180},$s.bearing.set=function(J){var le=-i.wrap(J,-180,180)*Math.PI/180;this.angle!==le&&(this._unmodified=!1,this.angle=le,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},$s.pitch.get=function(){return this._pitch/Math.PI*180},$s.pitch.set=function(J){var le=i.clamp(J,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==le&&(this._unmodified=!1,this._pitch=le,this._calcMatrices())},$s.fov.get=function(){return this._fov/Math.PI*180},$s.fov.set=function(J){J=Math.max(.01,Math.min(60,J)),this._fov!==J&&(this._unmodified=!1,this._fov=J/180*Math.PI,this._calcMatrices())},$s.zoom.get=function(){return this._zoom},$s.zoom.set=function(J){var le=Math.min(Math.max(J,this.minZoom),this.maxZoom);this._zoom!==le&&(this._unmodified=!1,this._zoom=le,this.scale=this.zoomScale(le),this.tileZoom=Math.floor(le),this.zoomFraction=le-this.tileZoom,this._constrain(),this._calcMatrices())},$s.center.get=function(){return this._center},$s.center.set=function(J){J.lat===this._center.lat&&J.lng===this._center.lng||(this._unmodified=!1,this._center=J,this._constrain(),this._calcMatrices())},$s.padding.get=function(){return this._edgeInsets.toJSON()},$s.padding.set=function(J){this._edgeInsets.equals(J)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,J,1),this._calcMatrices())},$s.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Ts.prototype.isPaddingEqual=function(J){return this._edgeInsets.equals(J)},Ts.prototype.interpolatePadding=function(J,le,ie){this._unmodified=!1,this._edgeInsets.interpolate(J,le,ie),this._constrain(),this._calcMatrices()},Ts.prototype.coveringZoomLevel=function(J){var le=(J.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/J.tileSize));return Math.max(0,le)},Ts.prototype.getVisibleUnwrappedCoordinates=function(J){var le=[new i.UnwrappedTileID(0,J)];if(this._renderWorldCopies)for(var ie=this.pointCoordinate(new i.Point(0,0)),V=this.pointCoordinate(new i.Point(this.width,0)),ne=this.pointCoordinate(new i.Point(this.width,this.height)),ge=this.pointCoordinate(new i.Point(0,this.height)),xe=Math.floor(Math.min(ie.x,V.x,ne.x,ge.x)),Me=Math.floor(Math.max(ie.x,V.x,ne.x,ge.x)),Fe=xe-1;Fe<=Me+1;Fe++)Fe!==0&&le.push(new i.UnwrappedTileID(Fe,J));return le},Ts.prototype.coveringTiles=function(J){var le=this.coveringZoomLevel(J),ie=le;if(J.minzoom!==void 0&&leJ.maxzoom&&(le=J.maxzoom);var V=i.MercatorCoordinate.fromLngLat(this.center),ne=Math.pow(2,le),ge=[ne*V.x,ne*V.y,0],xe=Uf.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,le),Me=J.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Me=le);var Fe=function(Dr){return{aabb:new zl([Dr*ne,0,0],[(Dr+1)*ne,ne,0]),zoom:0,x:0,y:0,wrap:Dr,fullyVisible:!1}},Je=[],rt=[],dt=le,mt=J.reparseOverscaled?ie:le;if(this._renderWorldCopies)for(var Et=1;Et<=3;Et++)Je.push(Fe(-Et)),Je.push(Fe(Et));for(Je.push(Fe(0));Je.length>0;){var Vt=Je.pop(),jt=Vt.x,Nt=Vt.y,cn=Vt.fullyVisible;if(!cn){var sn=Vt.aabb.intersects(xe);if(sn===0)continue;cn=sn===2}var xn=Vt.aabb.distanceX(ge),pn=Vt.aabb.distanceY(ge),Ln=Math.max(Math.abs(xn),Math.abs(pn)),On=3+(1<On&&Vt.zoom>=Me)rt.push({tileID:new i.OverscaledTileID(Vt.zoom===dt?mt:Vt.zoom,Vt.wrap,Vt.zoom,jt,Nt),distanceSq:i.sqrLen([ge[0]-.5-jt,ge[1]-.5-Nt])});else for(var An=0;An<4;An++){var Sn=(jt<<1)+An%2,rr=(Nt<<1)+(An>>1);Je.push({aabb:Vt.aabb.quadrant(An),zoom:Vt.zoom+1,x:Sn,y:rr,wrap:Vt.wrap,fullyVisible:cn})}}return rt.sort(function(Dr,Pr){return Dr.distanceSq-Pr.distanceSq}).map(function(Dr){return Dr.tileID})},Ts.prototype.resize=function(J,le){this.width=J,this.height=le,this.pixelsToGLUnits=[2/J,-2/le],this._constrain(),this._calcMatrices()},$s.unmodified.get=function(){return this._unmodified},Ts.prototype.zoomScale=function(J){return Math.pow(2,J)},Ts.prototype.scaleZoom=function(J){return Math.log(J)/Math.LN2},Ts.prototype.project=function(J){var le=i.clamp(J.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(J.lng)*this.worldSize,i.mercatorYfromLat(le)*this.worldSize)},Ts.prototype.unproject=function(J){return new i.MercatorCoordinate(J.x/this.worldSize,J.y/this.worldSize).toLngLat()},$s.point.get=function(){return this.project(this.center)},Ts.prototype.setLocationAtPoint=function(J,le){var ie=this.pointCoordinate(le),V=this.pointCoordinate(this.centerPoint),ne=this.locationCoordinate(J),ge=new i.MercatorCoordinate(ne.x-(ie.x-V.x),ne.y-(ie.y-V.y));this.center=this.coordinateLocation(ge),this._renderWorldCopies&&(this.center=this.center.wrap())},Ts.prototype.locationPoint=function(J){return this.coordinatePoint(this.locationCoordinate(J))},Ts.prototype.pointLocation=function(J){return this.coordinateLocation(this.pointCoordinate(J))},Ts.prototype.locationCoordinate=function(J){return i.MercatorCoordinate.fromLngLat(J)},Ts.prototype.coordinateLocation=function(J){return J.toLngLat()},Ts.prototype.pointCoordinate=function(J){var le=[J.x,J.y,0,1],ie=[J.x,J.y,1,1];i.transformMat4(le,le,this.pixelMatrixInverse),i.transformMat4(ie,ie,this.pixelMatrixInverse);var V=le[3],ne=ie[3],ge=le[0]/V,xe=ie[0]/ne,Me=le[1]/V,Fe=ie[1]/ne,Je=le[2]/V,rt=ie[2]/ne,dt=Je===rt?0:(0-Je)/(rt-Je);return new i.MercatorCoordinate(i.number(ge,xe,dt)/this.worldSize,i.number(Me,Fe,dt)/this.worldSize)},Ts.prototype.coordinatePoint=function(J){var le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix),new i.Point(le[0]/le[3],le[1]/le[3])},Ts.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},Ts.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Ts.prototype.setMaxBounds=function(J){J?(this.lngRange=[J.getWest(),J.getEast()],this.latRange=[J.getSouth(),J.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Ts.prototype.calculatePosMatrix=function(J,le){le===void 0&&(le=!1);var ie=J.key,V=le?this._alignedPosMatrixCache:this._posMatrixCache;if(V[ie])return V[ie];var ne=J.canonical,ge=this.worldSize/this.zoomScale(ne.z),xe=ne.x+Math.pow(2,ne.z)*J.wrap,Me=i.identity(new Float64Array(16));return i.translate(Me,Me,[xe*ge,ne.y*ge,0]),i.scale(Me,Me,[ge/i.EXTENT,ge/i.EXTENT,1]),i.multiply(Me,le?this.alignedProjMatrix:this.projMatrix,Me),V[ie]=new Float32Array(Me),V[ie]},Ts.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Ts.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var J,le,ie,V,ne=-90,ge=90,xe=-180,Me=180,Fe=this.size,Je=this._unmodified;if(this.latRange){var rt=this.latRange;ne=i.mercatorYfromLat(rt[1])*this.worldSize,J=(ge=i.mercatorYfromLat(rt[0])*this.worldSize)-nege&&(V=ge-jt)}if(this.lngRange){var Nt=mt.x,cn=Fe.x/2;Nt-cnMe&&(ie=Me-cn)}ie===void 0&&V===void 0||(this.center=this.unproject(new i.Point(ie!==void 0?ie:mt.x,V!==void 0?V:mt.y))),this._unmodified=Je,this._constraining=!1}},Ts.prototype._calcMatrices=function(){if(this.height){var J=this._fov/2,le=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(J)*this.height;var ie=Math.PI/2+this._pitch,V=this._fov*(.5+le.y/this.height),ne=Math.sin(V)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-ie-V,.01,Math.PI-.01)),ge=this.point,xe=ge.x,Me=ge.y,Fe=1.01*(Math.cos(Math.PI/2-this._pitch)*ne+this.cameraToCenterDistance),Je=this.height/50,rt=new Float64Array(16);i.perspective(rt,this._fov,this.width/this.height,Je,Fe),rt[8]=2*-le.x/this.width,rt[9]=2*le.y/this.height,i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[0,0,-this.cameraToCenterDistance]),i.rotateX(rt,rt,this._pitch),i.rotateZ(rt,rt,this.angle),i.translate(rt,rt,[-xe,-Me,0]),this.mercatorMatrix=i.scale([],rt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(rt,rt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=rt,this.invProjMatrix=i.invert([],this.projMatrix);var dt=this.width%2/2,mt=this.height%2/2,Et=Math.cos(this.angle),Vt=Math.sin(this.angle),jt=xe-Math.round(xe)+Et*dt+Vt*mt,Nt=Me-Math.round(Me)+Et*mt+Vt*dt,cn=new Float64Array(rt);if(i.translate(cn,cn,[jt>.5?jt-1:jt,Nt>.5?Nt-1:Nt,0]),this.alignedProjMatrix=cn,rt=i.create(),i.scale(rt,rt,[this.width/2,-this.height/2,1]),i.translate(rt,rt,[1,-1,0]),this.labelPlaneMatrix=rt,rt=i.create(),i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[-1,-1,0]),i.scale(rt,rt,[2/this.width,2/this.height,1]),this.glCoordMatrix=rt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(rt=i.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=rt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Ts.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var J=this.pointCoordinate(new i.Point(0,0)),le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix)[3]/this.cameraToCenterDistance},Ts.prototype.getCameraPoint=function(){var J=this._pitch,le=Math.tan(J)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,le))},Ts.prototype.getCameraQueryGeometry=function(J){var le=this.getCameraPoint();if(J.length===1)return[J[0],le];for(var ie=le.x,V=le.y,ne=le.x,ge=le.y,xe=0,Me=J;xe=3&&!J.some(function(ie){return isNaN(ie)})){var le=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(J[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+J[2],+J[1]],zoom:+J[0],bearing:le,pitch:+(J[4]||0)}),!0}return!1},Zu.prototype._updateHashUnthrottled=function(){var J=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,J)}catch{}};var yh={linearity:.3,easing:i.bezier(0,0,.3,1)},of=i.extend({deceleration:2500,maxSpeed:1400},yh),tp=i.extend({deceleration:20,maxSpeed:1400},yh),Ip=i.extend({deceleration:1e3,maxSpeed:360},yh),bm=i.extend({deceleration:1e3,maxSpeed:90},yh),Kd=function(J){this._map=J,this.clear()};function bh(J,le){(!J.duration||J.duration0&&le-J[0].time>160;)J.shift()},Kd.prototype._onMoveEnd=function(J){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var le={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},ie=0,V=this._inertiaBuffer;ie=this._clickTolerance||this._map.fire(new zc(J.type,this._map,J))},Ya.prototype.dblclick=function(J){return this._firePreventable(new zc(J.type,this._map,J))},Ya.prototype.mouseover=function(J){this._map.fire(new zc(J.type,this._map,J))},Ya.prototype.mouseout=function(J){this._map.fire(new zc(J.type,this._map,J))},Ya.prototype.touchstart=function(J){return this._firePreventable(new np(J.type,this._map,J))},Ya.prototype.touchmove=function(J){this._map.fire(new np(J.type,this._map,J))},Ya.prototype.touchend=function(J){this._map.fire(new np(J.type,this._map,J))},Ya.prototype.touchcancel=function(J){this._map.fire(new np(J.type,this._map,J))},Ya.prototype._firePreventable=function(J){if(this._map.fire(J),J.defaultPrevented)return{}},Ya.prototype.isEnabled=function(){return!0},Ya.prototype.isActive=function(){return!1},Ya.prototype.enable=function(){},Ya.prototype.disable=function(){};var bl=function(J){this._map=J};bl.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},bl.prototype.mousemove=function(J){this._map.fire(new zc(J.type,this._map,J))},bl.prototype.mousedown=function(){this._delayContextMenu=!0},bl.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new zc("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},bl.prototype.contextmenu=function(J){this._delayContextMenu?this._contextMenuEvent=J:this._map.fire(new zc(J.type,this._map,J)),this._map.listens("contextmenu")&&J.preventDefault()},bl.prototype.isEnabled=function(){return!0},bl.prototype.isActive=function(){return!1},bl.prototype.enable=function(){},bl.prototype.disable=function(){};var fl=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._container=J.getContainer(),this._clickTolerance=le.clickTolerance||1};function Wc(J,le){for(var ie={},V=0;Vthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=J.timeStamp),ie.length===this.numTouches&&(this.centroid=function(V){for(var ne=new i.Point(0,0),ge=0,xe=V;ge30)&&(this.aborted=!0)}}},xl.prototype.touchend=function(J,le,ie){if((!this.centroid||J.timeStamp-this.startTime>500)&&(this.aborted=!0),ie.length===0){var V=!this.aborted&&this.centroid;if(this.reset(),V)return V}};var xi=function(J){this.singleTap=new xl(J),this.numTaps=J.numTaps,this.reset()};xi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},xi.prototype.touchstart=function(J,le,ie){this.singleTap.touchstart(J,le,ie)},xi.prototype.touchmove=function(J,le,ie){this.singleTap.touchmove(J,le,ie)},xi.prototype.touchend=function(J,le,ie){var V=this.singleTap.touchend(J,le,ie);if(V){var ne=J.timeStamp-this.lastTime<500,ge=!this.lastTap||this.lastTap.dist(V)<30;if(ne&&ge||this.reset(),this.count++,this.lastTime=J.timeStamp,this.lastTap=V,this.count===this.numTaps)return this.reset(),V}};var pu=function(){this._zoomIn=new xi({numTouches:1,numTaps:2}),this._zoomOut=new xi({numTouches:2,numTaps:1}),this.reset()};pu.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},pu.prototype.touchstart=function(J,le,ie){this._zoomIn.touchstart(J,le,ie),this._zoomOut.touchstart(J,le,ie)},pu.prototype.touchmove=function(J,le,ie){this._zoomIn.touchmove(J,le,ie),this._zoomOut.touchmove(J,le,ie)},pu.prototype.touchend=function(J,le,ie){var V=this,ne=this._zoomIn.touchend(J,le,ie),ge=this._zoomOut.touchend(J,le,ie);return ne?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()+1,around:xe.unproject(ne)},{originalEvent:J})}}):ge?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()-1,around:xe.unproject(ge)},{originalEvent:J})}}):void 0},pu.prototype.touchcancel=function(){this.reset()},pu.prototype.enable=function(){this._enabled=!0},pu.prototype.disable=function(){this._enabled=!1,this.reset()},pu.prototype.isEnabled=function(){return this._enabled},pu.prototype.isActive=function(){return this._active};var xh={};xh[0]=1,xh[2]=2;var js=function(J){this.reset(),this._clickTolerance=J.clickTolerance||1};js.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},js.prototype._correctButton=function(J,le){return!1},js.prototype._move=function(J,le){return{}},js.prototype.mousedown=function(J,le){if(!this._lastPoint){var ie=w.mouseButton(J);this._correctButton(J,ie)&&(this._lastPoint=le,this._eventButton=ie)}},js.prototype.mousemoveWindow=function(J,le){var ie=this._lastPoint;if(ie){if(J.preventDefault(),function(V,ne){var ge=xh[ne];return V.buttons===void 0||(V.buttons&ge)!==ge}(J,this._eventButton))this.reset();else if(this._moved||!(le.dist(ie)0&&(this._active=!0);var V=Wc(ie,le),ne=new i.Point(0,0),ge=new i.Point(0,0),xe=0;for(var Me in V){var Fe=V[Me],Je=this._touches[Me];Je&&(ne._add(Fe),ge._add(Fe.sub(Je)),xe++,V[Me]=Fe)}if(this._touches=V,!(xeMath.abs(J.x)}var Kl=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.reset=function(){J.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},le.prototype._start=function(ie){this._lastPoints=ie,Yc(ie[0].sub(ie[1]))&&(this._valid=!1)},le.prototype._move=function(ie,V,ne){var ge=ie[0].sub(this._lastPoints[0]),xe=ie[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ge,xe,ne.timeStamp),this._valid)return this._lastPoints=ie,this._active=!0,{pitchDelta:(ge.y+xe.y)/2*-.5}},le.prototype.gestureBeginsVertically=function(ie,V,ne){if(this._valid!==void 0)return this._valid;var ge=ie.mag()>=2,xe=V.mag()>=2;if(ge||xe){if(!ge||!xe)return this._firstMove===void 0&&(this._firstMove=ne),ne-this._firstMove<100&&void 0;var Me=ie.y>0==V.y>0;return Yc(ie)&&Yc(V)&&Me}},le}(Ml),Fc={panStep:100,bearingStep:15,pitchStep:10},si=function(){var J=Fc;this._panStep=J.panStep,this._bearingStep=J.bearingStep,this._pitchStep=J.pitchStep,this._rotationDisabled=!1};function Hh(J){return J*(2-J)}si.prototype.reset=function(){this._active=!1},si.prototype.keydown=function(J){var le=this;if(!(J.altKey||J.ctrlKey||J.metaKey)){var ie=0,V=0,ne=0,ge=0,xe=0;switch(J.keyCode){case 61:case 107:case 171:case 187:ie=1;break;case 189:case 109:case 173:ie=-1;break;case 37:J.shiftKey?V=-1:(J.preventDefault(),ge=-1);break;case 39:J.shiftKey?V=1:(J.preventDefault(),ge=1);break;case 38:J.shiftKey?ne=1:(J.preventDefault(),xe=-1);break;case 40:J.shiftKey?ne=-1:(J.preventDefault(),xe=1);break;default:return}return this._rotationDisabled&&(V=0,ne=0),{cameraAnimation:function(Me){var Fe=Me.getZoom();Me.easeTo({duration:300,easeId:"keyboardHandler",easing:Hh,zoom:ie?Math.round(Fe)+ie*(J.shiftKey?2:1):Fe,bearing:Me.getBearing()+V*le._bearingStep,pitch:Me.getPitch()+ne*le._pitchStep,offset:[-ge*le._panStep,-xe*le._panStep],center:Me.getCenter()},{originalEvent:J})}}}},si.prototype.enable=function(){this._enabled=!0},si.prototype.disable=function(){this._enabled=!1,this.reset()},si.prototype.isEnabled=function(){return this._enabled},si.prototype.isActive=function(){return this._active},si.prototype.disableRotation=function(){this._rotationDisabled=!0},si.prototype.enableRotation=function(){this._rotationDisabled=!1};var Ps=4.000244140625,Sc=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._handler=le,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,i.bindAll(["_onTimeout"],this)};Sc.prototype.setZoomRate=function(J){this._defaultZoomRate=J},Sc.prototype.setWheelZoomRate=function(J){this._wheelZoomRate=J},Sc.prototype.isEnabled=function(){return!!this._enabled},Sc.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Sc.prototype.isZooming=function(){return!!this._zooming},Sc.prototype.enable=function(J){this.isEnabled()||(this._enabled=!0,this._aroundCenter=J&&J.around==="center")},Sc.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Sc.prototype.wheel=function(J){if(this.isEnabled()){var le=J.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?40*J.deltaY:J.deltaY,ie=i.browser.now(),V=ie-(this._lastWheelEventTime||0);this._lastWheelEventTime=ie,le!==0&&le%Ps==0?this._type="wheel":le!==0&&Math.abs(le)<4?this._type="trackpad":V>400?(this._type=null,this._lastValue=le,this._timeout=setTimeout(this._onTimeout,40,J)):this._type||(this._type=Math.abs(V*le)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,le+=this._lastValue)),J.shiftKey&&le&&(le/=4),this._type&&(this._lastWheelEvent=J,this._delta-=le,this._active||this._start(J)),J.preventDefault()}},Sc.prototype._onTimeout=function(J){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(J)},Sc.prototype._start=function(J){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var le=w.mousePos(this._el,J);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(le)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Sc.prototype.renderFrame=function(){var J=this;if(this._frameId&&(this._frameId=null,this.isActive())){var le=this._map.transform;if(this._delta!==0){var ie=this._type==="wheel"&&Math.abs(this._delta)>Ps?this._wheelZoomRate:this._defaultZoomRate,V=2/(1+Math.exp(-Math.abs(this._delta*ie)));this._delta<0&&V!==0&&(V=1/V);var ne=typeof this._targetZoom=="number"?le.zoomScale(this._targetZoom):le.scale;this._targetZoom=Math.min(le.maxZoom,Math.max(le.minZoom,le.scaleZoom(ne*V))),this._type==="wheel"&&(this._startZoom=le.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ge,xe=typeof this._targetZoom=="number"?this._targetZoom:le.zoom,Me=this._startZoom,Fe=this._easing,Je=!1;if(this._type==="wheel"&&Me&&Fe){var rt=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),dt=Fe(rt);ge=i.number(Me,xe,dt),rt<1?this._frameId||(this._frameId=!0):Je=!0}else ge=xe,Je=!0;return this._active=!0,Je&&(this._active=!1,this._finishTimeout=setTimeout(function(){J._zooming=!1,J._handler._triggerRenderFrame(),delete J._targetZoom,delete J._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Je,zoomDelta:ge-le.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Sc.prototype._smoothOutEasing=function(J){var le=i.ease;if(this._prevEase){var ie=this._prevEase,V=(i.browser.now()-ie.start)/ie.duration,ne=ie.easing(V+.01)-ie.easing(V),ge=.27/Math.sqrt(ne*ne+1e-4)*.01,xe=Math.sqrt(.0729-ge*ge);le=i.bezier(ge,xe,.25,1)}return this._prevEase={start:i.browser.now(),duration:J,easing:le},le},Sc.prototype.reset=function(){this._active=!1};var tl=function(J,le){this._clickZoom=J,this._tapZoom=le};tl.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},tl.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},tl.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},tl.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var mu=function(){this.reset()};mu.prototype.reset=function(){this._active=!1},mu.prototype.dblclick=function(J,le){return J.preventDefault(),{cameraAnimation:function(ie){ie.easeTo({duration:300,zoom:ie.getZoom()+(J.shiftKey?-1:1),around:ie.unproject(le)},{originalEvent:J})}}},mu.prototype.enable=function(){this._enabled=!0},mu.prototype.disable=function(){this._enabled=!1,this.reset()},mu.prototype.isEnabled=function(){return this._enabled},mu.prototype.isActive=function(){return this._active};var gu=function(){this._tap=new xi({numTouches:1,numTaps:1}),this.reset()};gu.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},gu.prototype.touchstart=function(J,le,ie){this._swipePoint||(this._tapTime&&J.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?ie.length>0&&(this._swipePoint=le[0],this._swipeTouch=ie[0].identifier):this._tap.touchstart(J,le,ie))},gu.prototype.touchmove=function(J,le,ie){if(this._tapTime){if(this._swipePoint){if(ie[0].identifier!==this._swipeTouch)return;var V=le[0],ne=V.y-this._swipePoint.y;return this._swipePoint=V,J.preventDefault(),this._active=!0,{zoomDelta:ne/128}}}else this._tap.touchmove(J,le,ie)},gu.prototype.touchend=function(J,le,ie){this._tapTime?this._swipePoint&&ie.length===0&&this.reset():this._tap.touchend(J,le,ie)&&(this._tapTime=J.timeStamp)},gu.prototype.touchcancel=function(){this.reset()},gu.prototype.enable=function(){this._enabled=!0},gu.prototype.disable=function(){this._enabled=!1,this.reset()},gu.prototype.isEnabled=function(){return this._enabled},gu.prototype.isActive=function(){return this._active};var ja=function(J,le,ie){this._el=J,this._mousePan=le,this._touchPan=ie};ja.prototype.enable=function(J){this._inertiaOptions=J||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},ja.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},ja.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},ja.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var vu=function(J,le,ie){this._pitchWithRotate=J.pitchWithRotate,this._mouseRotate=le,this._mousePitch=ie};vu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},vu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},vu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},vu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Rd=function(J,le,ie,V){this._el=J,this._touchZoom=le,this._touchRotate=ie,this._tapDragZoom=V,this._rotationDisabled=!1,this._enabled=!0};Rd.prototype.enable=function(J){this._touchZoom.enable(J),this._rotationDisabled||this._touchRotate.enable(J),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Rd.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Rd.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Rd.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Rd.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Rd.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Ld=function(J){return J.zoom||J.drag||J.pitch||J.rotate},nl=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le}(i.Event);function Id(J){return J.panDelta&&J.panDelta.mag()||J.zoomDelta||J.bearingDelta||J.pitchDelta}var Ka=function(J,le){this._map=J,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Kd(J),this._bearingSnap=le.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(le),i.bindAll(["handleEvent","handleWindowEvent"],this);var ie=this._el;this._listeners=[[ie,"touchstart",{passive:!0}],[ie,"touchmove",{passive:!1}],[ie,"touchend",void 0],[ie,"touchcancel",void 0],[ie,"mousedown",void 0],[ie,"mousemove",void 0],[ie,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[ie,"mouseover",void 0],[ie,"mouseout",void 0],[ie,"dblclick",void 0],[ie,"click",void 0],[ie,"keydown",{capture:!1}],[ie,"keyup",void 0],[ie,"wheel",{passive:!1}],[ie,"contextmenu",void 0],[i.window,"blur",void 0]];for(var V=0,ne=this._listeners;Vxe?Math.min(2,On):Math.max(.5,On),Pr=Math.pow(Dr,1-Sn),Zr=ge.unproject(pn.add(Ln.mult(Sn*Pr)).mult(rr));ge.setLocationAtPoint(ge.renderWorldCopies?Zr.wrap():Zr,jt)}ne._fireMoveEvents(V)},function(Sn){ne._afterEase(V,Sn)},ie),this},le.prototype._prepareEase=function(ie,V,ne){ne===void 0&&(ne={}),this._moving=!0,V||ne.moving||this.fire(new i.Event("movestart",ie)),this._zooming&&!ne.zooming&&this.fire(new i.Event("zoomstart",ie)),this._rotating&&!ne.rotating&&this.fire(new i.Event("rotatestart",ie)),this._pitching&&!ne.pitching&&this.fire(new i.Event("pitchstart",ie))},le.prototype._fireMoveEvents=function(ie){this.fire(new i.Event("move",ie)),this._zooming&&this.fire(new i.Event("zoom",ie)),this._rotating&&this.fire(new i.Event("rotate",ie)),this._pitching&&this.fire(new i.Event("pitch",ie))},le.prototype._afterEase=function(ie,V){if(!this._easeId||!V||this._easeId!==V){delete this._easeId;var ne=this._zooming,ge=this._rotating,xe=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ne&&this.fire(new i.Event("zoomend",ie)),ge&&this.fire(new i.Event("rotateend",ie)),xe&&this.fire(new i.Event("pitchend",ie)),this.fire(new i.Event("moveend",ie))}},le.prototype.flyTo=function(ie,V){var ne=this;if(!ie.essential&&i.browser.prefersReducedMotion){var ge=i.pick(ie,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ge,V)}this.stop(),ie=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},ie);var xe=this.transform,Me=this.getZoom(),Fe=this.getBearing(),Je=this.getPitch(),rt=this.getPadding(),dt="zoom"in ie?i.clamp(+ie.zoom,xe.minZoom,xe.maxZoom):Me,mt="bearing"in ie?this._normalizeBearing(ie.bearing,Fe):Fe,Et="pitch"in ie?+ie.pitch:Je,Vt="padding"in ie?ie.padding:xe.padding,jt=xe.zoomScale(dt-Me),Nt=i.Point.convert(ie.offset),cn=xe.centerPoint.add(Nt),sn=xe.pointLocation(cn),xn=i.LngLat.convert(ie.center||sn);this._normalizeCenter(xn);var pn=xe.project(sn),Ln=xe.project(xn).sub(pn),On=ie.curve,An=Math.max(xe.width,xe.height),Sn=An/jt,rr=Ln.mag();if("minZoom"in ie){var Dr=i.clamp(Math.min(ie.minZoom,Me,dt),xe.minZoom,xe.maxZoom),Pr=An/xe.zoomScale(Dr-Me);On=Math.sqrt(Pr/rr*2)}var Zr=On*On;function Mo(Io){var $i=(Sn*Sn-An*An+(Io?-1:1)*Zr*Zr*rr*rr)/(2*(Io?Sn:An)*Zr*rr);return Math.log(Math.sqrt($i*$i+1)-$i)}function $o(Io){return(Math.exp(Io)-Math.exp(-Io))/2}function vo(Io){return(Math.exp(Io)+Math.exp(-Io))/2}var zo=Mo(0),yi=function(Io){return vo(zo)/vo(zo+On*Io)},Si=function(Io){return An*((vo(zo)*($o($i=zo+On*Io)/vo($i))-$o(zo))/Zr)/rr;var $i},Hr=(Mo(1)-zo)/On;if(Math.abs(rr)<1e-6||!isFinite(Hr)){if(Math.abs(An-Sn)<1e-6)return this.easeTo(ie,V);var Lo=Snie.maxDuration&&(ie.duration=0),this._zooming=!0,this._rotating=Fe!==mt,this._pitching=Et!==Je,this._padding=!xe.isPaddingEqual(Vt),this._prepareEase(V,!1),this._ease(function(Io){var $i=Io*Hr,Ui=1/yi($i);xe.zoom=Io===1?dt:Me+xe.scaleZoom(Ui),ne._rotating&&(xe.bearing=i.number(Fe,mt,Io)),ne._pitching&&(xe.pitch=i.number(Je,Et,Io)),ne._padding&&(xe.interpolatePadding(rt,Vt,Io),cn=xe.centerPoint.add(Nt));var ba=Io===1?xn:xe.unproject(pn.add(Ln.mult(Si($i))).mult(Ui));xe.setLocationAtPoint(xe.renderWorldCopies?ba.wrap():ba,cn),ne._fireMoveEvents(V)},function(){return ne._afterEase(V)},ie),this},le.prototype.isEasing=function(){return!!this._easeFrameId},le.prototype.stop=function(){return this._stop()},le.prototype._stop=function(ie,V){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var ne=this._onEaseEnd;delete this._onEaseEnd,ne.call(this,V)}if(!ie){var ge=this.handlers;ge&&ge.stop(!1)}return this},le.prototype._ease=function(ie,V,ne){ne.animate===!1||ne.duration===0?(ie(1),V()):(this._easeStart=i.browser.now(),this._easeOptions=ne,this._onEaseFrame=ie,this._onEaseEnd=V,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},le.prototype._renderFrameCallback=function(){var ie=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ie)),ie<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},le.prototype._normalizeBearing=function(ie,V){ie=i.wrap(ie,-180,180);var ne=Math.abs(ie-V);return Math.abs(ie-360-V)180?-360:ne<-180?360:0}},le}(i.Evented),Xc=function(J){J===void 0&&(J={}),this.options=J,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Xc.prototype.getDefaultPosition=function(){return"bottom-right"},Xc.prototype.onAdd=function(J){var le=this.options&&this.options.compact;return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=w.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=w.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),le&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),le===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Xc.prototype.onRemove=function(){w.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Xc.prototype._setElementTitle=function(J,le){var ie=this._map._getUIString("AttributionControl."+le);J.title=ie,J.setAttribute("aria-label",ie)},Xc.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Xc.prototype._updateEditLink=function(){var J=this._editLink;J||(J=this._editLink=this._container.querySelector(".mapbox-improve-map"));var le=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(J){var ie=le.reduce(function(V,ne,ge){return ne.value&&(V+=ne.key+"="+ne.value+(ge=0)return!1;return!0})).join(" | ");xe!==this._attribHTML&&(this._attribHTML=xe,J.length?(this._innerContainer.innerHTML=xe,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Xc.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var jf=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};jf.prototype.onAdd=function(J){this._map=J,this._container=w.create("div","mapboxgl-ctrl");var le=w.create("a","mapboxgl-ctrl-logo");return le.target="_blank",le.rel="noopener nofollow",le.href="https://www.mapbox.com/",le.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),le.setAttribute("rel","noopener nofollow"),this._container.appendChild(le),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},jf.prototype.onRemove=function(){w.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},jf.prototype.getDefaultPosition=function(){return"bottom-left"},jf.prototype._updateLogo=function(J){J&&J.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},jf.prototype._logoRequired=function(){if(this._map.style){var J=this._map.style.sourceCaches;for(var le in J)if(J[le].getSource().mapbox_logo)return!0;return!1}},jf.prototype._updateCompact=function(){var J=this._container.children;if(J.length){var le=J[0];this._map.getCanvasContainer().offsetWidth<250?le.classList.add("mapboxgl-compact"):le.classList.remove("mapboxgl-compact")}};var yu=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};yu.prototype.add=function(J){var le=++this._id;return this._queue.push({callback:J,id:le,cancelled:!1}),le},yu.prototype.remove=function(J){for(var le=this._currentlyRunning,ie=0,V=le?this._queue.concat(le):this._queue;ieV.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(V.minPitch!=null&&V.maxPitch!=null&&V.minPitch>V.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(V.minPitch!=null&&V.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(V.maxPitch!=null&&V.maxPitch>Qf)throw new Error("maxPitch must be less than or equal to 60");var ge=new Ts(V.minZoom,V.maxZoom,V.minPitch,V.maxPitch,V.renderWorldCopies);if(J.call(this,ge,V),this._interactive=V.interactive,this._maxTileCacheSize=V.maxTileCacheSize,this._failIfMajorPerformanceCaveat=V.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=V.preserveDrawingBuffer,this._antialias=V.antialias,this._trackResize=V.trackResize,this._bearingSnap=V.bearingSnap,this._refreshExpiredTiles=V.refreshExpiredTiles,this._fadeDuration=V.fadeDuration,this._crossSourceCollisions=V.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=V.collectResourceTiming,this._renderTaskQueue=new yu,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Dp,V.locale),this._clickTolerance=V.clickTolerance,this._requestManager=new i.RequestManager(V.transformRequest,V.accessToken),typeof V.container=="string"){if(this._container=i.window.document.getElementById(V.container),!this._container)throw new Error("Container '"+V.container+"' not found.")}else{if(!(V.container instanceof Lu))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=V.container}if(V.maxBounds&&this.setMaxBounds(V.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ne._update(!1)}),this.on("moveend",function(){return ne._update(!1)}),this.on("zoom",function(){return ne._update(!0)}),i.window!==void 0&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Ka(this,V);var xe=typeof V.hash=="string"&&V.hash||void 0;this._hash=V.hash&&new Zu(xe).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:V.center,zoom:V.zoom,bearing:V.bearing,pitch:V.pitch}),V.bounds&&(this.resize(),this.fitBounds(V.bounds,i.extend({},V.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=V.localIdeographFontFamily,V.style&&this.setStyle(V.style,{localIdeographFontFamily:V.localIdeographFontFamily}),V.attributionControl&&this.addControl(new Xc({customAttribution:V.customAttribution})),this.addControl(new jf,V.logoPosition),this.on("style.load",function(){ne.transform.unmodified&&ne.jumpTo(ne.style.stylesheet)}),this.on("data",function(Me){ne._update(Me.dataType==="style"),ne.fire(new i.Event(Me.dataType+"data",Me))}),this.on("dataloading",function(Me){ne.fire(new i.Event(Me.dataType+"dataloading",Me))})}J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le;var ie={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return le.prototype._getMapId=function(){return this._mapId},le.prototype.addControl=function(V,ne){if(ne===void 0&&(ne=V.getDefaultPosition?V.getDefaultPosition():"top-right"),!V||!V.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ge=V.onAdd(this);this._controls.push(V);var xe=this._controlPositions[ne];return ne.indexOf("bottom")!==-1?xe.insertBefore(ge,xe.firstChild):xe.appendChild(ge),this},le.prototype.removeControl=function(V){if(!V||!V.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=this._controls.indexOf(V);return ne>-1&&this._controls.splice(ne,1),V.onRemove(this),this},le.prototype.hasControl=function(V){return this._controls.indexOf(V)>-1},le.prototype.resize=function(V){var ne=this._containerDimensions(),ge=ne[0],xe=ne[1];this._resizeCanvas(ge,xe),this.transform.resize(ge,xe),this.painter.resize(ge,xe);var Me=!this._moving;return Me&&(this.stop(),this.fire(new i.Event("movestart",V)).fire(new i.Event("move",V))),this.fire(new i.Event("resize",V)),Me&&this.fire(new i.Event("moveend",V)),this},le.prototype.getBounds=function(){return this.transform.getBounds()},le.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},le.prototype.setMaxBounds=function(V){return this.transform.setMaxBounds(i.LngLatBounds.convert(V)),this._update()},le.prototype.setMinZoom=function(V){if((V=V??-2)>=-2&&V<=this.transform.maxZoom)return this.transform.minZoom=V,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=V,this._update(),this.getZoom()>V&&this.setZoom(V),this;throw new Error("maxZoom must be greater than the current minZoom")},le.prototype.getMaxZoom=function(){return this.transform.maxZoom},le.prototype.setMinPitch=function(V){if((V=V??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(V>=0&&V<=this.transform.maxPitch)return this.transform.minPitch=V,this._update(),this.getPitch()Qf)throw new Error("maxPitch must be less than or equal to 60");if(V>=this.transform.minPitch)return this.transform.maxPitch=V,this._update(),this.getPitch()>V&&this.setPitch(V),this;throw new Error("maxPitch must be greater than the current minPitch")},le.prototype.getMaxPitch=function(){return this.transform.maxPitch},le.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},le.prototype.setRenderWorldCopies=function(V){return this.transform.renderWorldCopies=V,this._update()},le.prototype.project=function(V){return this.transform.locationPoint(i.LngLat.convert(V))},le.prototype.unproject=function(V){return this.transform.pointLocation(i.Point.convert(V))},le.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},le.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},le.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},le.prototype._createDelegatedListener=function(V,ne,ge){var xe,Me=this;if(V==="mouseenter"||V==="mouseover"){var Fe=!1;return{layer:ne,listener:ge,delegates:{mousemove:function(rt){var dt=Me.getLayer(ne)?Me.queryRenderedFeatures(rt.point,{layers:[ne]}):[];dt.length?Fe||(Fe=!0,ge.call(Me,new zc(V,Me,rt.originalEvent,{features:dt}))):Fe=!1},mouseout:function(){Fe=!1}}}}if(V==="mouseleave"||V==="mouseout"){var Je=!1;return{layer:ne,listener:ge,delegates:{mousemove:function(rt){(Me.getLayer(ne)?Me.queryRenderedFeatures(rt.point,{layers:[ne]}):[]).length?Je=!0:Je&&(Je=!1,ge.call(Me,new zc(V,Me,rt.originalEvent)))},mouseout:function(rt){Je&&(Je=!1,ge.call(Me,new zc(V,Me,rt.originalEvent)))}}}}return{layer:ne,listener:ge,delegates:(xe={},xe[V]=function(rt){var dt=Me.getLayer(ne)?Me.queryRenderedFeatures(rt.point,{layers:[ne]}):[];dt.length&&(rt.features=dt,ge.call(Me,rt),delete rt.features)},xe)}},le.prototype.on=function(V,ne,ge){if(ge===void 0)return J.prototype.on.call(this,V,ne);var xe=this._createDelegatedListener(V,ne,ge);for(var Me in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[V]=this._delegatedListeners[V]||[],this._delegatedListeners[V].push(xe),xe.delegates)this.on(Me,xe.delegates[Me]);return this},le.prototype.once=function(V,ne,ge){if(ge===void 0)return J.prototype.once.call(this,V,ne);var xe=this._createDelegatedListener(V,ne,ge);for(var Me in xe.delegates)this.once(Me,xe.delegates[Me]);return this},le.prototype.off=function(V,ne,ge){var xe=this;return ge===void 0?J.prototype.off.call(this,V,ne):(this._delegatedListeners&&this._delegatedListeners[V]&&function(Me){for(var Fe=Me[V],Je=0;Je180;){var xe=ie.locationPoint(J);if(xe.x>=0&&xe.y>=0&&xe.x<=ie.width&&xe.y<=ie.height)break;J.lng>ie.center.lng?J.lng-=360:J.lng+=360}return J}rl.prototype.down=function(J,le){this.mouseRotate.mousedown(J,le),this.mousePitch&&this.mousePitch.mousedown(J,le),w.disableDrag()},rl.prototype.move=function(J,le){var ie=this.map,V=this.mouseRotate.mousemoveWindow(J,le);if(V&&V.bearingDelta&&ie.setBearing(ie.getBearing()+V.bearingDelta),this.mousePitch){var ne=this.mousePitch.mousemoveWindow(J,le);ne&&ne.pitchDelta&&ie.setPitch(ie.getPitch()+ne.pitchDelta)}},rl.prototype.off=function(){var J=this.element;w.removeEventListener(J,"mousedown",this.mousedown),w.removeEventListener(J,"touchstart",this.touchstart,{passive:!1}),w.removeEventListener(J,"touchmove",this.touchmove),w.removeEventListener(J,"touchend",this.touchend),w.removeEventListener(J,"touchcancel",this.reset),this.offTemp()},rl.prototype.offTemp=function(){w.enableDrag(),w.removeEventListener(i.window,"mousemove",this.mousemove),w.removeEventListener(i.window,"mouseup",this.mouseup)},rl.prototype.mousedown=function(J){this.down(i.extend({},J,{ctrlKey:!0,preventDefault:function(){return J.preventDefault()}}),w.mousePos(this.element,J)),w.addEventListener(i.window,"mousemove",this.mousemove),w.addEventListener(i.window,"mouseup",this.mouseup)},rl.prototype.mousemove=function(J){this.move(J,w.mousePos(this.element,J))},rl.prototype.mouseup=function(J){this.mouseRotate.mouseupWindow(J),this.mousePitch&&this.mousePitch.mouseupWindow(J),this.offTemp()},rl.prototype.touchstart=function(J){J.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return J.preventDefault()}},this._startPos))},rl.prototype.touchmove=function(J){J.targetTouches.length!==1?this.reset():(this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.move({preventDefault:function(){return J.preventDefault()}},this._lastPos))},rl.prototype.touchend=function(J){J.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=V}this._isDragging&&(this._pos=ie.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},le.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},le.prototype._addDragHandler=function(ie){this._element.contains(ie.originalEvent.target)&&(ie.preventDefault(),this._positionDelta=ie.point.sub(this._pos).add(this._offset),this._pointerdownPos=ie.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},le.prototype.setDraggable=function(ie){return this._draggable=!!ie,this._map&&(ie?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},le.prototype.isDraggable=function(){return this._draggable},le.prototype.setRotation=function(ie){return this._rotation=ie||0,this._update(),this},le.prototype.getRotation=function(){return this._rotation},le.prototype.setRotationAlignment=function(ie){return this._rotationAlignment=ie||"auto",this._update(),this},le.prototype.getRotationAlignment=function(){return this._rotationAlignment},le.prototype.setPitchAlignment=function(ie){return this._pitchAlignment=ie&&ie!=="auto"?ie:this._rotationAlignment,this._update(),this},le.prototype.getPitchAlignment=function(){return this._pitchAlignment},le}(i.Evented),Zl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Jl=0,Bd=!1,Qs=function(J){function le(ie){J.call(this),this.options=i.extend({},Zl,ie),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.onAdd=function(ie){return this._map=ie,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),V=this._setupUI,au!==void 0?V(au):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(ne){au=ne.state!=="denied",V(au)}):(au=!!i.window.navigator.geolocation,V(au)),this._container;var V},le.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),w.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Jl=0,Bd=!1},le.prototype._isOutOfMapMaxBounds=function(ie){var V=this._map.getMaxBounds(),ne=ie.coords;return V&&(ne.longitudeV.getEast()||ne.latitudeV.getNorth())},le.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},le.prototype._onSuccess=function(ie){if(this._map){if(this._isOutOfMapMaxBounds(ie))return this._setErrorState(),this.fire(new i.Event("outofmaxbounds",ie)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=ie,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(ie),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(ie),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",ie)),this._finish()}},le.prototype._updateCamera=function(ie){var V=new i.LngLat(ie.coords.longitude,ie.coords.latitude),ne=ie.coords.accuracy,ge=this._map.getBearing(),xe=i.extend({bearing:ge},this.options.fitBoundsOptions);this._map.fitBounds(V.toBounds(ne),xe,{geolocateSource:!0})},le.prototype._updateMarker=function(ie){if(ie){var V=new i.LngLat(ie.coords.longitude,ie.coords.latitude);this._accuracyCircleMarker.setLngLat(V).addTo(this._map),this._userLocationDotMarker.setLngLat(V).addTo(this._map),this._accuracy=ie.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},le.prototype._updateCircleRadius=function(){var ie=this._map._container.clientHeight/2,V=this._map.unproject([0,ie]),ne=this._map.unproject([1,ie]),ge=V.distanceTo(ne),xe=Math.ceil(2*this._accuracy/ge);this._circleElement.style.width=xe+"px",this._circleElement.style.height=xe+"px"},le.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},le.prototype._onError=function(ie){if(this._map){if(this.options.trackUserLocation)if(ie.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var V=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=V,this._geolocateButton.setAttribute("aria-label",V),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(ie.code===3&&Bd)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",ie)),this._finish()}},le.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},le.prototype._setupUI=function(ie){var V=this;if(this._container.addEventListener("contextmenu",function(xe){return xe.preventDefault()}),this._geolocateButton=w.create("button","mapboxgl-ctrl-geolocate",this._container),w.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",ie===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var ne=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}else{var ge=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ge,this._geolocateButton.setAttribute("aria-label",ge)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=w.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Zf(this._dotElement),this._circleElement=w.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Zf({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(xe){var Me=xe.originalEvent&&xe.originalEvent.type==="resize";xe.geolocateSource||V._watchState!=="ACTIVE_LOCK"||Me||(V._watchState="BACKGROUND",V._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),V._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),V.fire(new i.Event("trackuserlocationend")))})},le.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Jl--,Bd=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var ie;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Jl>1?(ie={maximumAge:6e5,timeout:0},Bd=!0):(ie=this.options.positionOptions,Bd=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ie)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},le.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},le}(i.Evented),kc={maxWidth:100,unit:"metric"},Iu=function(J){this.options=i.extend({},kc,J),i.bindAll(["_onMove","setUnit"],this)};function Ea(J,le,ie){var V=ie&&ie.maxWidth||100,ne=J._container.clientHeight/2,ge=J.unproject([0,ne]),xe=J.unproject([V,ne]),Me=ge.distanceTo(xe);if(ie&&ie.unit==="imperial"){var Fe=3.2808*Me;Fe>5280?El(le,V,Fe/5280,J._getUIString("ScaleControl.Miles")):El(le,V,Fe,J._getUIString("ScaleControl.Feet"))}else ie&&ie.unit==="nautical"?El(le,V,Me/1852,J._getUIString("ScaleControl.NauticalMiles")):Me>=1e3?El(le,V,Me/1e3,J._getUIString("ScaleControl.Kilometers")):El(le,V,Me,J._getUIString("ScaleControl.Meters"))}function El(J,le,ie,V){var ne,ge,xe,Me=(ne=ie,(ge=Math.pow(10,(""+Math.floor(ne)).length-1))*((xe=ne/ge)>=10?10:xe>=5?5:xe>=3?3:xe>=2?2:xe>=1?1:function(Je){var rt=Math.pow(10,Math.ceil(-Math.log(Je)/Math.LN10));return Math.round(Je*rt)/rt}(xe))),Fe=Me/ie;J.style.width=le*Fe+"px",J.innerHTML=Me+" "+V}Iu.prototype.getDefaultPosition=function(){return"bottom-left"},Iu.prototype._onMove=function(){Ea(this._map,this._container,this.options)},Iu.prototype.onAdd=function(J){return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",J.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Iu.prototype.onRemove=function(){w.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Iu.prototype.setUnit=function(J){this.options.unit=J,Ea(this._map,this._container,this.options)};var _l=function(J){this._fullscreen=!1,J&&J.container&&(J.container instanceof i.window.HTMLElement?this._container=J.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};_l.prototype.onAdd=function(J){return this._map=J,this._container||(this._container=this._map.getContainer()),this._controlContainer=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},_l.prototype.onRemove=function(){w.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},_l.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},_l.prototype._setupUI=function(){var J=this._fullscreenButton=w.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);w.create("span","mapboxgl-ctrl-icon",J).setAttribute("aria-hidden",!0),J.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},_l.prototype._updateTitle=function(){var J=this._getTitle();this._fullscreenButton.setAttribute("aria-label",J),this._fullscreenButton.title=J},_l.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},_l.prototype._isFullscreen=function(){return this._fullscreen},_l.prototype._changeIcon=function(){(i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},_l.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Mi={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Sf=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Ot=function(J){function le(ie){J.call(this),this.options=i.extend(Object.create(Mi),ie),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.addTo=function(ie){return this._map&&this.remove(),this._map=ie,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},le.prototype.isOpen=function(){return!!this._map},le.prototype.remove=function(){return this._content&&w.remove(this._content),this._container&&(w.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},le.prototype.getLngLat=function(){return this._lngLat},le.prototype.setLngLat=function(ie){return this._lngLat=i.LngLat.convert(ie),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},le.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},le.prototype.getElement=function(){return this._container},le.prototype.setText=function(ie){return this.setDOMContent(i.window.document.createTextNode(ie))},le.prototype.setHTML=function(ie){var V,ne=i.window.document.createDocumentFragment(),ge=i.window.document.createElement("body");for(ge.innerHTML=ie;V=ge.firstChild;)ne.appendChild(V);return this.setDOMContent(ne)},le.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},le.prototype.setMaxWidth=function(ie){return this.options.maxWidth=ie,this._update(),this},le.prototype.setDOMContent=function(ie){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=w.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(ie),this._createCloseButton(),this._update(),this._focusFirstElement(),this},le.prototype.addClassName=function(ie){this._container&&this._container.classList.add(ie)},le.prototype.removeClassName=function(ie){this._container&&this._container.classList.remove(ie)},le.prototype.setOffset=function(ie){return this.options.offset=ie,this._update(),this},le.prototype.toggleClassName=function(ie){if(this._container)return this._container.classList.toggle(ie)},le.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=w.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},le.prototype._onMouseUp=function(ie){this._update(ie.point)},le.prototype._onMouseMove=function(ie){this._update(ie.point)},le.prototype._onDrag=function(ie){this._update(ie.point)},le.prototype._update=function(ie){var V=this,ne=this._lngLat||this._trackPointer;if(this._map&&ne&&this._content&&(this._container||(this._container=w.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=w.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(mt){return V._container.classList.add(mt)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Dd(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||ie)){var ge=this._pos=this._trackPointer&&ie?ie:this._map.project(this._lngLat),xe=this.options.anchor,Me=Mt(this.options.offset);if(!xe){var Fe,Je=this._container.offsetWidth,rt=this._container.offsetHeight;Fe=ge.y+Me.bottom.ythis._map.transform.height-rt?["bottom"]:[],ge.xthis._map.transform.width-Je/2&&Fe.push("right"),xe=Fe.length===0?"bottom":Fe.join("-")}var dt=ge.add(Me[xe]).round();w.setTransform(this._container,Vi[xe]+" translate("+dt.x+"px,"+dt.y+"px)"),fa(this._container,xe,"popup")}},le.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var ie=this._container.querySelector(Sf);ie&&ie.focus()}},le.prototype._onClose=function(){this.remove()},le}(i.Evented);function Mt(J){if(J){if(typeof J=="number"){var le=Math.round(Math.sqrt(.5*Math.pow(J,2)));return{center:new i.Point(0,0),top:new i.Point(0,J),"top-left":new i.Point(le,le),"top-right":new i.Point(-le,le),bottom:new i.Point(0,-J),"bottom-left":new i.Point(le,-le),"bottom-right":new i.Point(-le,-le),left:new i.Point(J,0),right:new i.Point(-J,0)}}if(J instanceof i.Point||Array.isArray(J)){var ie=i.Point.convert(J);return{center:ie,top:ie,"top-left":ie,"top-right":ie,bottom:ie,"bottom-left":ie,"bottom-right":ie,left:ie,right:ie}}return{center:i.Point.convert(J.center||[0,0]),top:i.Point.convert(J.top||[0,0]),"top-left":i.Point.convert(J["top-left"]||[0,0]),"top-right":i.Point.convert(J["top-right"]||[0,0]),bottom:i.Point.convert(J.bottom||[0,0]),"bottom-left":i.Point.convert(J["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(J["bottom-right"]||[0,0]),left:i.Point.convert(J.left||[0,0]),right:i.Point.convert(J.right||[0,0])}}return Mt(new i.Point(0,0))}var Ft={version:i.version,supported:O,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Hf,NavigationControl:dd,GeolocateControl:Qs,AttributionControl:Xc,ScaleControl:Iu,FullscreenControl:_l,Popup:Ot,Marker:Zf,Style:ao,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:function(){Yt().acquire(Lt)},clearPrewarmedResources:function(){var J=Ht;J&&(J.isPreloaded()&&J.numActive()===1?(J.release(Lt),Ht=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(J){i.config.ACCESS_TOKEN=J},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(J){i.config.API_URL=J},get workerCount(){return xt.workerCount},set workerCount(J){xt.workerCount=J},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(J){i.config.MAX_PARALLEL_IMAGE_REQUESTS=J},clearStorage:function(J){i.clearTileCache(J)},workerUrl:""};return Ft}),c}()},3108:function(d,l,n){d.exports=n(26099)},26099:function(d,l,n){var c=n(64928),b=n(32420),i=n(51160),O=n(76752),w=n(55616),y=n(31264),p=n(47520),a=n(18400),u=n(72512),h=n(76244);function m(v,_){for(var S=_[0],A=_[1],x=1/(_[2]-S),R=1/(_[3]-A),M=new Array(v.length),T=0,E=v.length/2;T>>1;_.dtype||(_.dtype="array"),typeof _.dtype=="string"?x=new(u(_.dtype))(M):_.dtype&&(x=_.dtype,Array.isArray(x)&&(x.length=M));for(var T=0;TS||Y>1073741824){for(var ae=0;aePe+ze||de>Ie+ze||ve=_e||He===Ve)){var $e=E[De];Ve===void 0&&(Ve=$e.length);for(var Oe=He;Oe=ee&&Le<=he&&We>=me&&We<=se&&Se.push(ke)}var Ue=C[De],Ze=Ue[4*He+0],Xe=Ue[4*He+1],tt=Ue[4*He+2],Ee=Ue[4*He+3],Ne=function(ot,Ge){for(var ht=null,pt=0;ht===null;)if(ht=ot[4*Ge+pt],++pt>ot.length)return null;return ht}(Ue,He+1),je=.5*ze,nt=De+1;Te(Pe,Ie,je,nt,Ze,Xe||tt||Ee||Ne),Te(Pe,Ie+je,je,nt,Xe,tt||Ee||Ne),Te(Pe+je,Ie,je,nt,tt,Ee||Ne),Te(Pe+je,Ie+je,je,nt,Ee,Ne)}}(0,0,1,0,0,1),Se},x;function U(X,te,W){for(var K=1,oe=.5,q=.5,Y=.5,ee=0;ee0){p+=Math.abs(O(y[0]));for(var a=1;a2){for(v=0;v=0))throw new Error("precision must be a positive number");var S=Math.pow(10,_||0);return Math.round(v*S)/S},l.radiansToLength=a,l.lengthToRadians=u,l.lengthToDegrees=function(v,_){return h(u(v,_))},l.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},l.radiansToDegrees=h,l.degreesToRadians=function(v){return v%360*Math.PI/180},l.convertLength=function(v,_,S){if(_===void 0&&(_="kilometers"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(u(v,_),S)},l.convertArea=function(v,_,S){if(_===void 0&&(_="meters"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("area must be a positive number");var A=l.areaFactors[_];if(!A)throw new Error("invalid original units");var x=l.areaFactors[S];if(!x)throw new Error("invalid final units");return v/A*x},l.isNumber=m,l.isObject=function(v){return!!v&&v.constructor===Object},l.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!m(_))throw new Error("bbox must only contain numbers")})},l.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},3256:function(d,l,n){Object.defineProperty(l,"__esModule",{value:!0});var c=n(46284);function b(u,h,m){if(u!==null)for(var v,_,S,A,x,R,M,T,E=0,C=0,L=u.type,D=L==="FeatureCollection",k=L==="Feature",I=D?u.features.length:1,z=0;zR||D>M||k>T)return x=E,R=v,M=D,T=k,void(S=0);var I=c.lineString([x,E],m.properties);if(h(I,v,_,k,S)===!1)return!1;S++,x=E})!==!1&&void 0}}})}function a(u,h){if(!u)throw new Error("geojson is required");y(u,function(m,v,_){if(m.geometry!==null){var S=m.geometry.type,A=m.geometry.coordinates;switch(S){case"LineString":if(h(m,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xw[0]&&(O[0]=w[0]),O[1]>w[1]&&(O[1]=w[1]),O[2]=0))throw new Error("precision must be a positive number");var S=Math.pow(10,_||0);return Math.round(v*S)/S},l.radiansToLength=a,l.lengthToRadians=u,l.lengthToDegrees=function(v,_){return h(u(v,_))},l.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},l.radiansToDegrees=h,l.degreesToRadians=function(v){return v%360*Math.PI/180},l.convertLength=function(v,_,S){if(_===void 0&&(_="kilometers"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(u(v,_),S)},l.convertArea=function(v,_,S){if(_===void 0&&(_="meters"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("area must be a positive number");var A=l.areaFactors[_];if(!A)throw new Error("invalid original units");var x=l.areaFactors[S];if(!x)throw new Error("invalid final units");return v/A*x},l.isNumber=m,l.isObject=function(v){return!!v&&v.constructor===Object},l.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!m(_))throw new Error("bbox must only contain numbers")})},l.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},84880:function(d,l,n){Object.defineProperty(l,"__esModule",{value:!0});var c=n(76796);function b(u,h,m){if(u!==null)for(var v,_,S,A,x,R,M,T,E=0,C=0,L=u.type,D=L==="FeatureCollection",k=L==="Feature",I=D?u.features.length:1,z=0;zR||D>M||k>T)return x=E,R=v,M=D,T=k,void(S=0);var I=c.lineString([x,E],m.properties);if(h(I,v,_,k,S)===!1)return!1;S++,x=E})!==!1&&void 0}}})}function a(u,h){if(!u)throw new Error("geojson is required");y(u,function(m,v,_){if(m.geometry!==null){var S=m.geometry.type,A=m.geometry.coordinates;switch(S){case"LineString":if(h(m,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;x=0))throw new Error("precision must be a positive number");var S=Math.pow(10,_||0);return Math.round(v*S)/S},l.radiansToLength=a,l.lengthToRadians=u,l.lengthToDegrees=function(v,_){return h(u(v,_))},l.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},l.radiansToDegrees=h,l.degreesToRadians=function(v){return v%360*Math.PI/180},l.convertLength=function(v,_,S){if(_===void 0&&(_="kilometers"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(u(v,_),S)},l.convertArea=function(v,_,S){if(_===void 0&&(_="meters"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("area must be a positive number");var A=l.areaFactors[_];if(!A)throw new Error("invalid original units");var x=l.areaFactors[S];if(!x)throw new Error("invalid final units");return v/A*x},l.isNumber=m,l.isObject=function(v){return!!v&&v.constructor===Object},l.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!m(_))throw new Error("bbox must only contain numbers")})},l.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")},l.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},l.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},l.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},l.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},l.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},l.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},l.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},43752:function(d,l,n){Object.defineProperty(l,"__esModule",{value:!0});var c=n(49840);function b(u,h,m){if(u!==null)for(var v,_,S,A,x,R,M,T,E=0,C=0,L=u.type,D=L==="FeatureCollection",k=L==="Feature",I=D?u.features.length:1,z=0;zR||D>M||k>T)return x=E,R=v,M=D,T=k,void(S=0);var I=c.lineString([x,E],m.properties);if(h(I,v,_,k,S)===!1)return!1;S++,x=E})!==!1&&void 0}}})}function a(u,h){if(!u)throw new Error("geojson is required");y(u,function(m,v,_){if(m.geometry!==null){var S=m.geometry.type,A=m.geometry.coordinates;switch(S){case"LineString":if(h(m,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xi&&(i=l[w]),l[w]>16,Me>>16],u_pixel_coord_lower:[65535&xe,65535&Me]}}ju.prototype.draw=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je,rt,dt,mt,Et,Vt,jt){var Nt,cn=J.gl;if(!this.failedToCreate){for(var sn in J.program.set(this.program),J.setDepthMode(ie),J.setStencilMode(V),J.setColorMode(ne),J.setCullFace(ge),this.fixedUniforms)this.fixedUniforms[sn].set(xe[sn]);Et&&Et.setUniforms(J,this.binderUniforms,dt,{zoom:mt});for(var xn=(Nt={},Nt[cn.LINES]=2,Nt[cn.TRIANGLES]=3,Nt[cn.LINE_STRIP]=1,Nt)[le],pn=0,Ln=rt.get();pn0?1-1/(1.001-xe):-xe),u_contrast_factor:(ge=ne.paint.get("raster-contrast"),ge>0?1/(1-ge):1+ge),u_spin_weights:_f(ne.paint.get("raster-hue-rotate"))};var ge,xe};function _f(J){J*=Math.PI/180;var le=Math.sin(J),ie=Math.cos(J);return[(2*ie+1)/3,(-Math.sqrt(3)*le-ie+1)/3,(Math.sqrt(3)*le-ie+1)/3]}var ud,nf=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je){var rt=ne.transform;return{u_is_size_zoom_constant:+(J==="constant"||J==="source"),u_is_size_feature_constant:+(J==="constant"||J==="camera"),u_size_t:le?le.uSizeT:0,u_size:le?le.uSize:0,u_camera_to_center_distance:rt.cameraToCenterDistance,u_pitch:rt.pitch/360*2*Math.PI,u_rotate_symbol:+ie,u_aspect_ratio:rt.width/rt.height,u_fade_change:ne.options.fadeDuration?ne.symbolFadeChange:1,u_matrix:ge,u_label_plane_matrix:xe,u_coord_matrix:Me,u_is_text:+Fe,u_pitch_with_map:+V,u_texsize:Je,u_texture:0}},gh=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je,rt){var dt=ne.transform;return i.extend(nf(J,le,ie,V,ne,ge,xe,Me,Fe,Je),{u_gamma_scale:V?Math.cos(dt._pitch)*dt.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+rt})},rs=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je){return i.extend(gh(J,le,ie,V,ne,ge,xe,Me,!0,Fe,!0),{u_texsize_icon:Je,u_texture_icon:1})},ep=function(J,le,ie){return{u_matrix:J,u_opacity:le,u_color:ie}},Ep=function(J,le,ie,V,ne,ge){return i.extend(function(xe,Me,Fe,Je){var rt=Fe.imageManager.getPattern(xe.from.toString()),dt=Fe.imageManager.getPattern(xe.to.toString()),mt=Fe.imageManager.getPixelSize(),Et=mt.width,Vt=mt.height,jt=Math.pow(2,Je.tileID.overscaledZ),Nt=Je.tileSize*Math.pow(2,Fe.transform.tileZoom)/jt,cn=Nt*(Je.tileID.canonical.x+Je.tileID.wrap*jt),sn=Nt*Je.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:rt.tl,u_pattern_br_a:rt.br,u_pattern_tl_b:dt.tl,u_pattern_br_b:dt.br,u_texsize:[Et,Vt],u_mix:Me.t,u_pattern_size_a:rt.displaySize,u_pattern_size_b:dt.displaySize,u_scale_a:Me.fromScale,u_scale_b:Me.toScale,u_tile_units_to_pixels:1/go(Je,1,Fe.transform.tileZoom),u_pixel_coord_upper:[cn>>16,sn>>16],u_pixel_coord_lower:[65535&cn,65535&sn]}}(V,ge,ie,ne),{u_matrix:J,u_opacity:le})},vm={fillExtrusion:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fillExtrusionPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_height_factor:new i.Uniform1f(J,le.u_height_factor),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fill:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},fillPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},fillOutline:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world)}},fillOutlinePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},circle:function(J,le){return{u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(J,le.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},collisionBox:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(J,le.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_overscale_factor:new i.Uniform1f(J,le.u_overscale_factor)}},collisionCircle:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_inv_matrix:new i.UniformMatrix4f(J,le.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(J,le.u_viewport_size)}},debug:function(J,le){return{u_color:new i.UniformColor(J,le.u_color),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_overlay:new i.Uniform1i(J,le.u_overlay),u_overlay_scale:new i.Uniform1f(J,le.u_overlay_scale)}},clippingMask:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmap:function(J,le){return{u_extrude_scale:new i.Uniform1f(J,le.u_extrude_scale),u_intensity:new i.Uniform1f(J,le.u_intensity),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmapTexture:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_color_ramp:new i.Uniform1i(J,le.u_color_ramp),u_opacity:new i.Uniform1f(J,le.u_opacity)}},hillshade:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_latrange:new i.Uniform2f(J,le.u_latrange),u_light:new i.Uniform2f(J,le.u_light),u_shadow:new i.UniformColor(J,le.u_shadow),u_highlight:new i.UniformColor(J,le.u_highlight),u_accent:new i.UniformColor(J,le.u_accent)}},hillshadePrepare:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_dimension:new i.Uniform2f(J,le.u_dimension),u_zoom:new i.Uniform1f(J,le.u_zoom),u_unpack:new i.Uniform4f(J,le.u_unpack)}},line:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels)}},lineGradient:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_image:new i.Uniform1i(J,le.u_image),u_image_height:new i.Uniform1f(J,le.u_image_height)}},linePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_texsize:new i.Uniform2f(J,le.u_texsize),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_image:new i.Uniform1i(J,le.u_image),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},lineSDF:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(J,le.u_patternscale_a),u_patternscale_b:new i.Uniform2f(J,le.u_patternscale_b),u_sdfgamma:new i.Uniform1f(J,le.u_sdfgamma),u_image:new i.Uniform1i(J,le.u_image),u_tex_y_a:new i.Uniform1f(J,le.u_tex_y_a),u_tex_y_b:new i.Uniform1f(J,le.u_tex_y_b),u_mix:new i.Uniform1f(J,le.u_mix)}},raster:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_tl_parent:new i.Uniform2f(J,le.u_tl_parent),u_scale_parent:new i.Uniform1f(J,le.u_scale_parent),u_buffer_scale:new i.Uniform1f(J,le.u_buffer_scale),u_fade_t:new i.Uniform1f(J,le.u_fade_t),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image0:new i.Uniform1i(J,le.u_image0),u_image1:new i.Uniform1i(J,le.u_image1),u_brightness_low:new i.Uniform1f(J,le.u_brightness_low),u_brightness_high:new i.Uniform1f(J,le.u_brightness_high),u_saturation_factor:new i.Uniform1f(J,le.u_saturation_factor),u_contrast_factor:new i.Uniform1f(J,le.u_contrast_factor),u_spin_weights:new i.Uniform3f(J,le.u_spin_weights)}},symbolIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture)}},symbolSDF:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},symbolTextAndIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texsize_icon:new i.Uniform2f(J,le.u_texsize_icon),u_texture:new i.Uniform1i(J,le.u_texture),u_texture_icon:new i.Uniform1i(J,le.u_texture_icon),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},background:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_color:new i.UniformColor(J,le.u_color)}},backgroundPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image:new i.Uniform1i(J,le.u_image),u_pattern_tl_a:new i.Uniform2f(J,le.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(J,le.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(J,le.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(J,le.u_pattern_br_b),u_texsize:new i.Uniform2f(J,le.u_texsize),u_mix:new i.Uniform1f(J,le.u_mix),u_pattern_size_a:new i.Uniform2f(J,le.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(J,le.u_pattern_size_b),u_scale_a:new i.Uniform1f(J,le.u_scale_a),u_scale_b:new i.Uniform1f(J,le.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(J,le.u_tile_units_to_pixels)}}};function Pd(J,le,ie,V,ne,ge,xe){for(var Me=J.context,Fe=Me.gl,Je=J.useProgram("collisionBox"),rt=[],dt=0,mt=0,Et=0;Et0){var pn=i.create(),Ln=cn;i.mul(pn,Nt.placementInvProjMatrix,J.transform.glCoordMatrix),i.mul(pn,pn,Nt.placementViewportMatrix),rt.push({circleArray:xn,circleOffset:mt,transform:Ln,invTransform:pn}),mt=dt+=xn.length/4}sn&&Je.draw(Me,Fe.LINES,bn.disabled,vt.disabled,J.colorModeForRenderPass(),lt.disabled,ef(cn,J.transform,jt),ie.id,sn.layoutVertexBuffer,sn.indexBuffer,sn.segments,null,J.transform.zoom,null,null,sn.collisionVertexBuffer)}}if(xe&&rt.length){var On=J.useProgram("collisionCircle"),An=new i.StructArrayLayout2f1f2i16;An.resize(4*dt),An._trim();for(var Sn=0,rr=0,Dr=rt;rr=0&&(Vt[Nt.associatedIconIndex]={shiftedAnchor:Dr,angle:Pr})}else Kr(Nt.numGlyphs,mt)}if(rt){Et.clear();for(var Mo=J.icon.placedSymbolArray,$o=0;$o0){var xe=i.browser.now(),Me=(xe-J.timeAdded)/ge,Fe=le?(xe-le.timeAdded)/ge:-1,Je=ie.getSource(),rt=ne.coveringZoomLevel({tileSize:Je.tileSize,roundZoom:Je.roundZoom}),dt=!le||Math.abs(le.tileID.overscaledZ-rt)>Math.abs(J.tileID.overscaledZ-rt),mt=dt&&J.refreshedUponExpiration?1:i.clamp(dt?Me:1-Fe,0,1);return J.refreshedUponExpiration&&Me>=1&&(J.refreshedUponExpiration=!1),le?{opacity:1,mix:1-mt}:{opacity:mt,mix:0}}return{opacity:1,mix:0}}var ym=new i.Color(1,0,0,1),Mu=new i.Color(0,1,0,1),Hu=new i.Color(0,0,1,1),Lp=new i.Color(1,0,1,1),Uh=new i.Color(0,1,1,1);function jh(J){var le=J.transform.padding;Eu(J,J.transform.height-(le.top||0),3,ym),Eu(J,le.bottom||0,3,Mu),fd(J,le.left||0,3,Hu),fd(J,J.transform.width-(le.right||0),3,Lp);var ie=J.transform.centerPoint;(function(V,ne,ge,xe){var Me=20,Fe=2;vh(V,ne-Fe/2,ge-Me/2,Fe,Me,xe),vh(V,ne-Me/2,ge-Fe/2,Me,Fe,xe)})(J,ie.x,J.transform.height-ie.y,Uh)}function Eu(J,le,ie,V){vh(J,0,le+ie/2,J.transform.width,ie,V)}function fd(J,le,ie,V){vh(J,le-ie/2,0,ie,J.transform.height,V)}function vh(J,le,ie,V,ne,ge){var xe=J.context,Me=xe.gl;Me.enable(Me.SCISSOR_TEST),Me.scissor(le*i.browser.devicePixelRatio,ie*i.browser.devicePixelRatio,V*i.browser.devicePixelRatio,ne*i.browser.devicePixelRatio),xe.clear({color:ge}),Me.disable(Me.SCISSOR_TEST)}function Pu(J,le,ie){var V=J.context,ne=V.gl,ge=ie.posMatrix,xe=J.useProgram("debug"),Me=bn.disabled,Fe=vt.disabled,Je=J.colorModeForRenderPass(),rt="$debug";V.activeTexture.set(ne.TEXTURE0),J.emptyTexture.bind(ne.LINEAR,ne.CLAMP_TO_EDGE),xe.draw(V,ne.LINE_STRIP,Me,Fe,Je,lt.disabled,sd(ge,i.Color.red),rt,J.debugBuffer,J.tileBorderIndexBuffer,J.debugSegments);var dt=le.getTileByID(ie.key).latestRawTileData,mt=dt&&dt.byteLength||0,Et=Math.floor(mt/1024),Vt=le.getTile(ie).tileSize,jt=512/Math.min(Vt,512)*(ie.overscaledZ/J.transform.zoom)*.5,Nt=ie.canonical.toString();ie.overscaledZ!==ie.canonical.z&&(Nt+=" => "+ie.overscaledZ),function(cn,sn){cn.initDebugOverlayCanvas();var xn=cn.debugOverlayCanvas,pn=cn.context.gl,Ln=cn.debugOverlayCanvas.getContext("2d");Ln.clearRect(0,0,xn.width,xn.height),Ln.shadowColor="white",Ln.shadowBlur=2,Ln.lineWidth=1.5,Ln.strokeStyle="white",Ln.textBaseline="top",Ln.font="bold 36px Open Sans, sans-serif",Ln.fillText(sn,5,5),Ln.strokeText(sn,5,5),cn.debugOverlayTexture.update(xn),cn.debugOverlayTexture.bind(pn.LINEAR,pn.CLAMP_TO_EDGE)}(J,Nt+" "+Et+"kb"),xe.draw(V,ne.TRIANGLES,Me,Fe,bt.alphaBlended,lt.disabled,sd(ge,i.Color.transparent,jt),rt,J.debugBuffer,J.quadTriangleIndexBuffer,J.debugSegments)}var Oc={symbol:function(J,le,ie,V,ne){if(J.renderPass==="translucent"){var ge=vt.disabled,xe=J.colorModeForRenderPass();ie.layout.get("text-variable-anchor")&&function(Me,Fe,Je,rt,dt,mt,Et){for(var Vt=Fe.transform,jt=dt==="map",Nt=mt==="map",cn=0,sn=Me;cn256&&this.clearStencil(),ie.setColorMode(bt.disabled),ie.setDepthMode(bn.disabled);var ne=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ge=0,xe=le;ge256&&this.clearStencil();var J=this.nextStencilID++,le=this.context.gl;return new vt({func:le.NOTEQUAL,mask:255},J,255,le.KEEP,le.KEEP,le.REPLACE)},Ts.prototype.stencilModeForClipping=function(J){var le=this.context.gl;return new vt({func:le.EQUAL,mask:255},this._tileClippingMaskIDs[J.key],0,le.KEEP,le.KEEP,le.REPLACE)},Ts.prototype.stencilConfigForOverlap=function(J){var le,ie=this.context.gl,V=J.sort(function(Fe,Je){return Je.overscaledZ-Fe.overscaledZ}),ne=V[V.length-1].overscaledZ,ge=V[0].overscaledZ-ne+1;if(ge>1){this.currentStencilSource=void 0,this.nextStencilID+ge>256&&this.clearStencil();for(var xe={},Me=0;Me=0;this.currentLayer--){var Ln=this.style._layers[V[this.currentLayer]],On=ne[Ln.source],An=Je[Ln.source];this._renderTileClippingMasks(Ln,An),this.renderLayer(this,On,Ln,An)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?le.pop():null},Ts.prototype.isPatternMissing=function(J){if(!J)return!1;if(!J.from||!J.to)return!0;var le=this.imageManager.getPattern(J.from.toString()),ie=this.imageManager.getPattern(J.to.toString());return!le||!ie},Ts.prototype.useProgram=function(J,le){this.cache=this.cache||{};var ie=""+J+(le?le.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[ie]||(this.cache[ie]=new ju(this.context,J,la[J],le,vm[J],this._showOverdrawInspector)),this.cache[ie]},Ts.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Ts.prototype.setBaseState=function(){var J=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(J.FUNC_ADD)},Ts.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var J=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,J.RGBA)}},Ts.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Uf=function(J,le){this.points=J,this.planes=le};Uf.fromInvProjectionMatrix=function(J,le,ie){var V=Math.pow(2,ie),ne=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(xe){return i.transformMat4([],xe,J)}).map(function(xe){return i.scale$1([],xe,1/xe[3]/le*V)}),ge=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(xe){var Me=i.sub([],ne[xe[0]],ne[xe[1]]),Fe=i.sub([],ne[xe[2]],ne[xe[1]]),Je=i.normalize([],i.cross([],Me,Fe)),rt=-i.dot(Je,ne[xe[1]]);return Je.concat(rt)});return new Uf(ne,ge)};var zl=function(J,le){this.min=J,this.max=le,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};zl.prototype.quadrant=function(J){for(var le=[J%2==0,J<2],ie=i.clone$2(this.min),V=i.clone$2(this.max),ne=0;ne=0;if(ge===0)return 0;ge!==le.length&&(ie=!1)}if(ie)return 2;for(var Me=0;Me<3;Me++){for(var Fe=Number.MAX_VALUE,Je=-Number.MAX_VALUE,rt=0;rtthis.max[Me]-this.min[Me])return 0}return 1};var Hl=function(J,le,ie,V){if(J===void 0&&(J=0),le===void 0&&(le=0),ie===void 0&&(ie=0),V===void 0&&(V=0),isNaN(J)||J<0||isNaN(le)||le<0||isNaN(ie)||ie<0||isNaN(V)||V<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=J,this.bottom=le,this.left=ie,this.right=V};Hl.prototype.interpolate=function(J,le,ie){return le.top!=null&&J.top!=null&&(this.top=i.number(J.top,le.top,ie)),le.bottom!=null&&J.bottom!=null&&(this.bottom=i.number(J.bottom,le.bottom,ie)),le.left!=null&&J.left!=null&&(this.left=i.number(J.left,le.left,ie)),le.right!=null&&J.right!=null&&(this.right=i.number(J.right,le.right,ie)),this},Hl.prototype.getCenter=function(J,le){var ie=i.clamp((this.left+J-this.right)/2,0,J),V=i.clamp((this.top+le-this.bottom)/2,0,le);return new i.Point(ie,V)},Hl.prototype.equals=function(J){return this.top===J.top&&this.bottom===J.bottom&&this.left===J.left&&this.right===J.right},Hl.prototype.clone=function(){return new Hl(this.top,this.bottom,this.left,this.right)},Hl.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Cs=function(J,le,ie,V,ne){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=ne===void 0||ne,this._minZoom=J||0,this._maxZoom=le||22,this._minPitch=ie??0,this._maxPitch=V??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Hl,this._posMatrixCache={},this._alignedPosMatrixCache={}},$s={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Cs.prototype.clone=function(){var J=new Cs(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return J.tileSize=this.tileSize,J.latRange=this.latRange,J.width=this.width,J.height=this.height,J._center=this._center,J.zoom=this.zoom,J.angle=this.angle,J._fov=this._fov,J._pitch=this._pitch,J._unmodified=this._unmodified,J._edgeInsets=this._edgeInsets.clone(),J._calcMatrices(),J},$s.minZoom.get=function(){return this._minZoom},$s.minZoom.set=function(J){this._minZoom!==J&&(this._minZoom=J,this.zoom=Math.max(this.zoom,J))},$s.maxZoom.get=function(){return this._maxZoom},$s.maxZoom.set=function(J){this._maxZoom!==J&&(this._maxZoom=J,this.zoom=Math.min(this.zoom,J))},$s.minPitch.get=function(){return this._minPitch},$s.minPitch.set=function(J){this._minPitch!==J&&(this._minPitch=J,this.pitch=Math.max(this.pitch,J))},$s.maxPitch.get=function(){return this._maxPitch},$s.maxPitch.set=function(J){this._maxPitch!==J&&(this._maxPitch=J,this.pitch=Math.min(this.pitch,J))},$s.renderWorldCopies.get=function(){return this._renderWorldCopies},$s.renderWorldCopies.set=function(J){J===void 0?J=!0:J===null&&(J=!1),this._renderWorldCopies=J},$s.worldSize.get=function(){return this.tileSize*this.scale},$s.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},$s.size.get=function(){return new i.Point(this.width,this.height)},$s.bearing.get=function(){return-this.angle/Math.PI*180},$s.bearing.set=function(J){var le=-i.wrap(J,-180,180)*Math.PI/180;this.angle!==le&&(this._unmodified=!1,this.angle=le,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},$s.pitch.get=function(){return this._pitch/Math.PI*180},$s.pitch.set=function(J){var le=i.clamp(J,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==le&&(this._unmodified=!1,this._pitch=le,this._calcMatrices())},$s.fov.get=function(){return this._fov/Math.PI*180},$s.fov.set=function(J){J=Math.max(.01,Math.min(60,J)),this._fov!==J&&(this._unmodified=!1,this._fov=J/180*Math.PI,this._calcMatrices())},$s.zoom.get=function(){return this._zoom},$s.zoom.set=function(J){var le=Math.min(Math.max(J,this.minZoom),this.maxZoom);this._zoom!==le&&(this._unmodified=!1,this._zoom=le,this.scale=this.zoomScale(le),this.tileZoom=Math.floor(le),this.zoomFraction=le-this.tileZoom,this._constrain(),this._calcMatrices())},$s.center.get=function(){return this._center},$s.center.set=function(J){J.lat===this._center.lat&&J.lng===this._center.lng||(this._unmodified=!1,this._center=J,this._constrain(),this._calcMatrices())},$s.padding.get=function(){return this._edgeInsets.toJSON()},$s.padding.set=function(J){this._edgeInsets.equals(J)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,J,1),this._calcMatrices())},$s.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Cs.prototype.isPaddingEqual=function(J){return this._edgeInsets.equals(J)},Cs.prototype.interpolatePadding=function(J,le,ie){this._unmodified=!1,this._edgeInsets.interpolate(J,le,ie),this._constrain(),this._calcMatrices()},Cs.prototype.coveringZoomLevel=function(J){var le=(J.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/J.tileSize));return Math.max(0,le)},Cs.prototype.getVisibleUnwrappedCoordinates=function(J){var le=[new i.UnwrappedTileID(0,J)];if(this._renderWorldCopies)for(var ie=this.pointCoordinate(new i.Point(0,0)),V=this.pointCoordinate(new i.Point(this.width,0)),ne=this.pointCoordinate(new i.Point(this.width,this.height)),ge=this.pointCoordinate(new i.Point(0,this.height)),xe=Math.floor(Math.min(ie.x,V.x,ne.x,ge.x)),Me=Math.floor(Math.max(ie.x,V.x,ne.x,ge.x)),Fe=xe-1;Fe<=Me+1;Fe++)Fe!==0&&le.push(new i.UnwrappedTileID(Fe,J));return le},Cs.prototype.coveringTiles=function(J){var le=this.coveringZoomLevel(J),ie=le;if(J.minzoom!==void 0&&leJ.maxzoom&&(le=J.maxzoom);var V=i.MercatorCoordinate.fromLngLat(this.center),ne=Math.pow(2,le),ge=[ne*V.x,ne*V.y,0],xe=Uf.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,le),Me=J.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Me=le);var Fe=function(Dr){return{aabb:new zl([Dr*ne,0,0],[(Dr+1)*ne,ne,0]),zoom:0,x:0,y:0,wrap:Dr,fullyVisible:!1}},Je=[],rt=[],dt=le,mt=J.reparseOverscaled?ie:le;if(this._renderWorldCopies)for(var Et=1;Et<=3;Et++)Je.push(Fe(-Et)),Je.push(Fe(Et));for(Je.push(Fe(0));Je.length>0;){var Vt=Je.pop(),jt=Vt.x,Nt=Vt.y,cn=Vt.fullyVisible;if(!cn){var sn=Vt.aabb.intersects(xe);if(sn===0)continue;cn=sn===2}var xn=Vt.aabb.distanceX(ge),pn=Vt.aabb.distanceY(ge),Ln=Math.max(Math.abs(xn),Math.abs(pn)),On=3+(1<On&&Vt.zoom>=Me)rt.push({tileID:new i.OverscaledTileID(Vt.zoom===dt?mt:Vt.zoom,Vt.wrap,Vt.zoom,jt,Nt),distanceSq:i.sqrLen([ge[0]-.5-jt,ge[1]-.5-Nt])});else for(var An=0;An<4;An++){var Sn=(jt<<1)+An%2,rr=(Nt<<1)+(An>>1);Je.push({aabb:Vt.aabb.quadrant(An),zoom:Vt.zoom+1,x:Sn,y:rr,wrap:Vt.wrap,fullyVisible:cn})}}return rt.sort(function(Dr,Pr){return Dr.distanceSq-Pr.distanceSq}).map(function(Dr){return Dr.tileID})},Cs.prototype.resize=function(J,le){this.width=J,this.height=le,this.pixelsToGLUnits=[2/J,-2/le],this._constrain(),this._calcMatrices()},$s.unmodified.get=function(){return this._unmodified},Cs.prototype.zoomScale=function(J){return Math.pow(2,J)},Cs.prototype.scaleZoom=function(J){return Math.log(J)/Math.LN2},Cs.prototype.project=function(J){var le=i.clamp(J.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(J.lng)*this.worldSize,i.mercatorYfromLat(le)*this.worldSize)},Cs.prototype.unproject=function(J){return new i.MercatorCoordinate(J.x/this.worldSize,J.y/this.worldSize).toLngLat()},$s.point.get=function(){return this.project(this.center)},Cs.prototype.setLocationAtPoint=function(J,le){var ie=this.pointCoordinate(le),V=this.pointCoordinate(this.centerPoint),ne=this.locationCoordinate(J),ge=new i.MercatorCoordinate(ne.x-(ie.x-V.x),ne.y-(ie.y-V.y));this.center=this.coordinateLocation(ge),this._renderWorldCopies&&(this.center=this.center.wrap())},Cs.prototype.locationPoint=function(J){return this.coordinatePoint(this.locationCoordinate(J))},Cs.prototype.pointLocation=function(J){return this.coordinateLocation(this.pointCoordinate(J))},Cs.prototype.locationCoordinate=function(J){return i.MercatorCoordinate.fromLngLat(J)},Cs.prototype.coordinateLocation=function(J){return J.toLngLat()},Cs.prototype.pointCoordinate=function(J){var le=[J.x,J.y,0,1],ie=[J.x,J.y,1,1];i.transformMat4(le,le,this.pixelMatrixInverse),i.transformMat4(ie,ie,this.pixelMatrixInverse);var V=le[3],ne=ie[3],ge=le[0]/V,xe=ie[0]/ne,Me=le[1]/V,Fe=ie[1]/ne,Je=le[2]/V,rt=ie[2]/ne,dt=Je===rt?0:(0-Je)/(rt-Je);return new i.MercatorCoordinate(i.number(ge,xe,dt)/this.worldSize,i.number(Me,Fe,dt)/this.worldSize)},Cs.prototype.coordinatePoint=function(J){var le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix),new i.Point(le[0]/le[3],le[1]/le[3])},Cs.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},Cs.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Cs.prototype.setMaxBounds=function(J){J?(this.lngRange=[J.getWest(),J.getEast()],this.latRange=[J.getSouth(),J.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Cs.prototype.calculatePosMatrix=function(J,le){le===void 0&&(le=!1);var ie=J.key,V=le?this._alignedPosMatrixCache:this._posMatrixCache;if(V[ie])return V[ie];var ne=J.canonical,ge=this.worldSize/this.zoomScale(ne.z),xe=ne.x+Math.pow(2,ne.z)*J.wrap,Me=i.identity(new Float64Array(16));return i.translate(Me,Me,[xe*ge,ne.y*ge,0]),i.scale(Me,Me,[ge/i.EXTENT,ge/i.EXTENT,1]),i.multiply(Me,le?this.alignedProjMatrix:this.projMatrix,Me),V[ie]=new Float32Array(Me),V[ie]},Cs.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Cs.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var J,le,ie,V,ne=-90,ge=90,xe=-180,Me=180,Fe=this.size,Je=this._unmodified;if(this.latRange){var rt=this.latRange;ne=i.mercatorYfromLat(rt[1])*this.worldSize,J=(ge=i.mercatorYfromLat(rt[0])*this.worldSize)-nege&&(V=ge-jt)}if(this.lngRange){var Nt=mt.x,cn=Fe.x/2;Nt-cnMe&&(ie=Me-cn)}ie===void 0&&V===void 0||(this.center=this.unproject(new i.Point(ie!==void 0?ie:mt.x,V!==void 0?V:mt.y))),this._unmodified=Je,this._constraining=!1}},Cs.prototype._calcMatrices=function(){if(this.height){var J=this._fov/2,le=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(J)*this.height;var ie=Math.PI/2+this._pitch,V=this._fov*(.5+le.y/this.height),ne=Math.sin(V)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-ie-V,.01,Math.PI-.01)),ge=this.point,xe=ge.x,Me=ge.y,Fe=1.01*(Math.cos(Math.PI/2-this._pitch)*ne+this.cameraToCenterDistance),Je=this.height/50,rt=new Float64Array(16);i.perspective(rt,this._fov,this.width/this.height,Je,Fe),rt[8]=2*-le.x/this.width,rt[9]=2*le.y/this.height,i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[0,0,-this.cameraToCenterDistance]),i.rotateX(rt,rt,this._pitch),i.rotateZ(rt,rt,this.angle),i.translate(rt,rt,[-xe,-Me,0]),this.mercatorMatrix=i.scale([],rt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(rt,rt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=rt,this.invProjMatrix=i.invert([],this.projMatrix);var dt=this.width%2/2,mt=this.height%2/2,Et=Math.cos(this.angle),Vt=Math.sin(this.angle),jt=xe-Math.round(xe)+Et*dt+Vt*mt,Nt=Me-Math.round(Me)+Et*mt+Vt*dt,cn=new Float64Array(rt);if(i.translate(cn,cn,[jt>.5?jt-1:jt,Nt>.5?Nt-1:Nt,0]),this.alignedProjMatrix=cn,rt=i.create(),i.scale(rt,rt,[this.width/2,-this.height/2,1]),i.translate(rt,rt,[1,-1,0]),this.labelPlaneMatrix=rt,rt=i.create(),i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[-1,-1,0]),i.scale(rt,rt,[2/this.width,2/this.height,1]),this.glCoordMatrix=rt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(rt=i.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=rt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Cs.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var J=this.pointCoordinate(new i.Point(0,0)),le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix)[3]/this.cameraToCenterDistance},Cs.prototype.getCameraPoint=function(){var J=this._pitch,le=Math.tan(J)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,le))},Cs.prototype.getCameraQueryGeometry=function(J){var le=this.getCameraPoint();if(J.length===1)return[J[0],le];for(var ie=le.x,V=le.y,ne=le.x,ge=le.y,xe=0,Me=J;xe=3&&!J.some(function(ie){return isNaN(ie)})){var le=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(J[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+J[2],+J[1]],zoom:+J[0],bearing:le,pitch:+(J[4]||0)}),!0}return!1},Zu.prototype._updateHashUnthrottled=function(){var J=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,J)}catch{}};var yh={linearity:.3,easing:i.bezier(0,0,.3,1)},of=i.extend({deceleration:2500,maxSpeed:1400},yh),tp=i.extend({deceleration:20,maxSpeed:1400},yh),Ip=i.extend({deceleration:1e3,maxSpeed:360},yh),bm=i.extend({deceleration:1e3,maxSpeed:90},yh),Kd=function(J){this._map=J,this.clear()};function bh(J,le){(!J.duration||J.duration0&&le-J[0].time>160;)J.shift()},Kd.prototype._onMoveEnd=function(J){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var le={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},ie=0,V=this._inertiaBuffer;ie=this._clickTolerance||this._map.fire(new zc(J.type,this._map,J))},Ya.prototype.dblclick=function(J){return this._firePreventable(new zc(J.type,this._map,J))},Ya.prototype.mouseover=function(J){this._map.fire(new zc(J.type,this._map,J))},Ya.prototype.mouseout=function(J){this._map.fire(new zc(J.type,this._map,J))},Ya.prototype.touchstart=function(J){return this._firePreventable(new np(J.type,this._map,J))},Ya.prototype.touchmove=function(J){this._map.fire(new np(J.type,this._map,J))},Ya.prototype.touchend=function(J){this._map.fire(new np(J.type,this._map,J))},Ya.prototype.touchcancel=function(J){this._map.fire(new np(J.type,this._map,J))},Ya.prototype._firePreventable=function(J){if(this._map.fire(J),J.defaultPrevented)return{}},Ya.prototype.isEnabled=function(){return!0},Ya.prototype.isActive=function(){return!1},Ya.prototype.enable=function(){},Ya.prototype.disable=function(){};var _l=function(J){this._map=J};_l.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},_l.prototype.mousemove=function(J){this._map.fire(new zc(J.type,this._map,J))},_l.prototype.mousedown=function(){this._delayContextMenu=!0},_l.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new zc("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},_l.prototype.contextmenu=function(J){this._delayContextMenu?this._contextMenuEvent=J:this._map.fire(new zc(J.type,this._map,J)),this._map.listens("contextmenu")&&J.preventDefault()},_l.prototype.isEnabled=function(){return!0},_l.prototype.isActive=function(){return!1},_l.prototype.enable=function(){},_l.prototype.disable=function(){};var dl=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._container=J.getContainer(),this._clickTolerance=le.clickTolerance||1};function Wc(J,le){for(var ie={},V=0;Vthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=J.timeStamp),ie.length===this.numTouches&&(this.centroid=function(V){for(var ne=new i.Point(0,0),ge=0,xe=V;ge30)&&(this.aborted=!0)}}},wl.prototype.touchend=function(J,le,ie){if((!this.centroid||J.timeStamp-this.startTime>500)&&(this.aborted=!0),ie.length===0){var V=!this.aborted&&this.centroid;if(this.reset(),V)return V}};var xi=function(J){this.singleTap=new wl(J),this.numTaps=J.numTaps,this.reset()};xi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},xi.prototype.touchstart=function(J,le,ie){this.singleTap.touchstart(J,le,ie)},xi.prototype.touchmove=function(J,le,ie){this.singleTap.touchmove(J,le,ie)},xi.prototype.touchend=function(J,le,ie){var V=this.singleTap.touchend(J,le,ie);if(V){var ne=J.timeStamp-this.lastTime<500,ge=!this.lastTap||this.lastTap.dist(V)<30;if(ne&&ge||this.reset(),this.count++,this.lastTime=J.timeStamp,this.lastTap=V,this.count===this.numTaps)return this.reset(),V}};var mu=function(){this._zoomIn=new xi({numTouches:1,numTaps:2}),this._zoomOut=new xi({numTouches:2,numTaps:1}),this.reset()};mu.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},mu.prototype.touchstart=function(J,le,ie){this._zoomIn.touchstart(J,le,ie),this._zoomOut.touchstart(J,le,ie)},mu.prototype.touchmove=function(J,le,ie){this._zoomIn.touchmove(J,le,ie),this._zoomOut.touchmove(J,le,ie)},mu.prototype.touchend=function(J,le,ie){var V=this,ne=this._zoomIn.touchend(J,le,ie),ge=this._zoomOut.touchend(J,le,ie);return ne?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()+1,around:xe.unproject(ne)},{originalEvent:J})}}):ge?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()-1,around:xe.unproject(ge)},{originalEvent:J})}}):void 0},mu.prototype.touchcancel=function(){this.reset()},mu.prototype.enable=function(){this._enabled=!0},mu.prototype.disable=function(){this._enabled=!1,this.reset()},mu.prototype.isEnabled=function(){return this._enabled},mu.prototype.isActive=function(){return this._active};var xh={};xh[0]=1,xh[2]=2;var js=function(J){this.reset(),this._clickTolerance=J.clickTolerance||1};js.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},js.prototype._correctButton=function(J,le){return!1},js.prototype._move=function(J,le){return{}},js.prototype.mousedown=function(J,le){if(!this._lastPoint){var ie=w.mouseButton(J);this._correctButton(J,ie)&&(this._lastPoint=le,this._eventButton=ie)}},js.prototype.mousemoveWindow=function(J,le){var ie=this._lastPoint;if(ie){if(J.preventDefault(),function(V,ne){var ge=xh[ne];return V.buttons===void 0||(V.buttons&ge)!==ge}(J,this._eventButton))this.reset();else if(this._moved||!(le.dist(ie)0&&(this._active=!0);var V=Wc(ie,le),ne=new i.Point(0,0),ge=new i.Point(0,0),xe=0;for(var Me in V){var Fe=V[Me],Je=this._touches[Me];Je&&(ne._add(Fe),ge._add(Fe.sub(Je)),xe++,V[Me]=Fe)}if(this._touches=V,!(xeMath.abs(J.x)}var Kl=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.reset=function(){J.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},le.prototype._start=function(ie){this._lastPoints=ie,Yc(ie[0].sub(ie[1]))&&(this._valid=!1)},le.prototype._move=function(ie,V,ne){var ge=ie[0].sub(this._lastPoints[0]),xe=ie[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ge,xe,ne.timeStamp),this._valid)return this._lastPoints=ie,this._active=!0,{pitchDelta:(ge.y+xe.y)/2*-.5}},le.prototype.gestureBeginsVertically=function(ie,V,ne){if(this._valid!==void 0)return this._valid;var ge=ie.mag()>=2,xe=V.mag()>=2;if(ge||xe){if(!ge||!xe)return this._firstMove===void 0&&(this._firstMove=ne),ne-this._firstMove<100&&void 0;var Me=ie.y>0==V.y>0;return Yc(ie)&&Yc(V)&&Me}},le}(Ml),Fc={panStep:100,bearingStep:15,pitchStep:10},si=function(){var J=Fc;this._panStep=J.panStep,this._bearingStep=J.bearingStep,this._pitchStep=J.pitchStep,this._rotationDisabled=!1};function Hh(J){return J*(2-J)}si.prototype.reset=function(){this._active=!1},si.prototype.keydown=function(J){var le=this;if(!(J.altKey||J.ctrlKey||J.metaKey)){var ie=0,V=0,ne=0,ge=0,xe=0;switch(J.keyCode){case 61:case 107:case 171:case 187:ie=1;break;case 189:case 109:case 173:ie=-1;break;case 37:J.shiftKey?V=-1:(J.preventDefault(),ge=-1);break;case 39:J.shiftKey?V=1:(J.preventDefault(),ge=1);break;case 38:J.shiftKey?ne=1:(J.preventDefault(),xe=-1);break;case 40:J.shiftKey?ne=-1:(J.preventDefault(),xe=1);break;default:return}return this._rotationDisabled&&(V=0,ne=0),{cameraAnimation:function(Me){var Fe=Me.getZoom();Me.easeTo({duration:300,easeId:"keyboardHandler",easing:Hh,zoom:ie?Math.round(Fe)+ie*(J.shiftKey?2:1):Fe,bearing:Me.getBearing()+V*le._bearingStep,pitch:Me.getPitch()+ne*le._pitchStep,offset:[-ge*le._panStep,-xe*le._panStep],center:Me.getCenter()},{originalEvent:J})}}}},si.prototype.enable=function(){this._enabled=!0},si.prototype.disable=function(){this._enabled=!1,this.reset()},si.prototype.isEnabled=function(){return this._enabled},si.prototype.isActive=function(){return this._active},si.prototype.disableRotation=function(){this._rotationDisabled=!0},si.prototype.enableRotation=function(){this._rotationDisabled=!1};var Ps=4.000244140625,Sc=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._handler=le,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,i.bindAll(["_onTimeout"],this)};Sc.prototype.setZoomRate=function(J){this._defaultZoomRate=J},Sc.prototype.setWheelZoomRate=function(J){this._wheelZoomRate=J},Sc.prototype.isEnabled=function(){return!!this._enabled},Sc.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Sc.prototype.isZooming=function(){return!!this._zooming},Sc.prototype.enable=function(J){this.isEnabled()||(this._enabled=!0,this._aroundCenter=J&&J.around==="center")},Sc.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Sc.prototype.wheel=function(J){if(this.isEnabled()){var le=J.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?40*J.deltaY:J.deltaY,ie=i.browser.now(),V=ie-(this._lastWheelEventTime||0);this._lastWheelEventTime=ie,le!==0&&le%Ps==0?this._type="wheel":le!==0&&Math.abs(le)<4?this._type="trackpad":V>400?(this._type=null,this._lastValue=le,this._timeout=setTimeout(this._onTimeout,40,J)):this._type||(this._type=Math.abs(V*le)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,le+=this._lastValue)),J.shiftKey&&le&&(le/=4),this._type&&(this._lastWheelEvent=J,this._delta-=le,this._active||this._start(J)),J.preventDefault()}},Sc.prototype._onTimeout=function(J){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(J)},Sc.prototype._start=function(J){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var le=w.mousePos(this._el,J);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(le)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Sc.prototype.renderFrame=function(){var J=this;if(this._frameId&&(this._frameId=null,this.isActive())){var le=this._map.transform;if(this._delta!==0){var ie=this._type==="wheel"&&Math.abs(this._delta)>Ps?this._wheelZoomRate:this._defaultZoomRate,V=2/(1+Math.exp(-Math.abs(this._delta*ie)));this._delta<0&&V!==0&&(V=1/V);var ne=typeof this._targetZoom=="number"?le.zoomScale(this._targetZoom):le.scale;this._targetZoom=Math.min(le.maxZoom,Math.max(le.minZoom,le.scaleZoom(ne*V))),this._type==="wheel"&&(this._startZoom=le.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ge,xe=typeof this._targetZoom=="number"?this._targetZoom:le.zoom,Me=this._startZoom,Fe=this._easing,Je=!1;if(this._type==="wheel"&&Me&&Fe){var rt=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),dt=Fe(rt);ge=i.number(Me,xe,dt),rt<1?this._frameId||(this._frameId=!0):Je=!0}else ge=xe,Je=!0;return this._active=!0,Je&&(this._active=!1,this._finishTimeout=setTimeout(function(){J._zooming=!1,J._handler._triggerRenderFrame(),delete J._targetZoom,delete J._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Je,zoomDelta:ge-le.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Sc.prototype._smoothOutEasing=function(J){var le=i.ease;if(this._prevEase){var ie=this._prevEase,V=(i.browser.now()-ie.start)/ie.duration,ne=ie.easing(V+.01)-ie.easing(V),ge=.27/Math.sqrt(ne*ne+1e-4)*.01,xe=Math.sqrt(.0729-ge*ge);le=i.bezier(ge,xe,.25,1)}return this._prevEase={start:i.browser.now(),duration:J,easing:le},le},Sc.prototype.reset=function(){this._active=!1};var tl=function(J,le){this._clickZoom=J,this._tapZoom=le};tl.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},tl.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},tl.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},tl.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var gu=function(){this.reset()};gu.prototype.reset=function(){this._active=!1},gu.prototype.dblclick=function(J,le){return J.preventDefault(),{cameraAnimation:function(ie){ie.easeTo({duration:300,zoom:ie.getZoom()+(J.shiftKey?-1:1),around:ie.unproject(le)},{originalEvent:J})}}},gu.prototype.enable=function(){this._enabled=!0},gu.prototype.disable=function(){this._enabled=!1,this.reset()},gu.prototype.isEnabled=function(){return this._enabled},gu.prototype.isActive=function(){return this._active};var vu=function(){this._tap=new xi({numTouches:1,numTaps:1}),this.reset()};vu.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},vu.prototype.touchstart=function(J,le,ie){this._swipePoint||(this._tapTime&&J.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?ie.length>0&&(this._swipePoint=le[0],this._swipeTouch=ie[0].identifier):this._tap.touchstart(J,le,ie))},vu.prototype.touchmove=function(J,le,ie){if(this._tapTime){if(this._swipePoint){if(ie[0].identifier!==this._swipeTouch)return;var V=le[0],ne=V.y-this._swipePoint.y;return this._swipePoint=V,J.preventDefault(),this._active=!0,{zoomDelta:ne/128}}}else this._tap.touchmove(J,le,ie)},vu.prototype.touchend=function(J,le,ie){this._tapTime?this._swipePoint&&ie.length===0&&this.reset():this._tap.touchend(J,le,ie)&&(this._tapTime=J.timeStamp)},vu.prototype.touchcancel=function(){this.reset()},vu.prototype.enable=function(){this._enabled=!0},vu.prototype.disable=function(){this._enabled=!1,this.reset()},vu.prototype.isEnabled=function(){return this._enabled},vu.prototype.isActive=function(){return this._active};var ja=function(J,le,ie){this._el=J,this._mousePan=le,this._touchPan=ie};ja.prototype.enable=function(J){this._inertiaOptions=J||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},ja.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},ja.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},ja.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var yu=function(J,le,ie){this._pitchWithRotate=J.pitchWithRotate,this._mouseRotate=le,this._mousePitch=ie};yu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},yu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},yu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},yu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Rd=function(J,le,ie,V){this._el=J,this._touchZoom=le,this._touchRotate=ie,this._tapDragZoom=V,this._rotationDisabled=!1,this._enabled=!0};Rd.prototype.enable=function(J){this._touchZoom.enable(J),this._rotationDisabled||this._touchRotate.enable(J),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Rd.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Rd.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Rd.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Rd.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Rd.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Ld=function(J){return J.zoom||J.drag||J.pitch||J.rotate},nl=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le}(i.Event);function Id(J){return J.panDelta&&J.panDelta.mag()||J.zoomDelta||J.bearingDelta||J.pitchDelta}var Ka=function(J,le){this._map=J,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Kd(J),this._bearingSnap=le.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(le),i.bindAll(["handleEvent","handleWindowEvent"],this);var ie=this._el;this._listeners=[[ie,"touchstart",{passive:!0}],[ie,"touchmove",{passive:!1}],[ie,"touchend",void 0],[ie,"touchcancel",void 0],[ie,"mousedown",void 0],[ie,"mousemove",void 0],[ie,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[ie,"mouseover",void 0],[ie,"mouseout",void 0],[ie,"dblclick",void 0],[ie,"click",void 0],[ie,"keydown",{capture:!1}],[ie,"keyup",void 0],[ie,"wheel",{passive:!1}],[ie,"contextmenu",void 0],[i.window,"blur",void 0]];for(var V=0,ne=this._listeners;Vxe?Math.min(2,On):Math.max(.5,On),Pr=Math.pow(Dr,1-Sn),Zr=ge.unproject(pn.add(Ln.mult(Sn*Pr)).mult(rr));ge.setLocationAtPoint(ge.renderWorldCopies?Zr.wrap():Zr,jt)}ne._fireMoveEvents(V)},function(Sn){ne._afterEase(V,Sn)},ie),this},le.prototype._prepareEase=function(ie,V,ne){ne===void 0&&(ne={}),this._moving=!0,V||ne.moving||this.fire(new i.Event("movestart",ie)),this._zooming&&!ne.zooming&&this.fire(new i.Event("zoomstart",ie)),this._rotating&&!ne.rotating&&this.fire(new i.Event("rotatestart",ie)),this._pitching&&!ne.pitching&&this.fire(new i.Event("pitchstart",ie))},le.prototype._fireMoveEvents=function(ie){this.fire(new i.Event("move",ie)),this._zooming&&this.fire(new i.Event("zoom",ie)),this._rotating&&this.fire(new i.Event("rotate",ie)),this._pitching&&this.fire(new i.Event("pitch",ie))},le.prototype._afterEase=function(ie,V){if(!this._easeId||!V||this._easeId!==V){delete this._easeId;var ne=this._zooming,ge=this._rotating,xe=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ne&&this.fire(new i.Event("zoomend",ie)),ge&&this.fire(new i.Event("rotateend",ie)),xe&&this.fire(new i.Event("pitchend",ie)),this.fire(new i.Event("moveend",ie))}},le.prototype.flyTo=function(ie,V){var ne=this;if(!ie.essential&&i.browser.prefersReducedMotion){var ge=i.pick(ie,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ge,V)}this.stop(),ie=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},ie);var xe=this.transform,Me=this.getZoom(),Fe=this.getBearing(),Je=this.getPitch(),rt=this.getPadding(),dt="zoom"in ie?i.clamp(+ie.zoom,xe.minZoom,xe.maxZoom):Me,mt="bearing"in ie?this._normalizeBearing(ie.bearing,Fe):Fe,Et="pitch"in ie?+ie.pitch:Je,Vt="padding"in ie?ie.padding:xe.padding,jt=xe.zoomScale(dt-Me),Nt=i.Point.convert(ie.offset),cn=xe.centerPoint.add(Nt),sn=xe.pointLocation(cn),xn=i.LngLat.convert(ie.center||sn);this._normalizeCenter(xn);var pn=xe.project(sn),Ln=xe.project(xn).sub(pn),On=ie.curve,An=Math.max(xe.width,xe.height),Sn=An/jt,rr=Ln.mag();if("minZoom"in ie){var Dr=i.clamp(Math.min(ie.minZoom,Me,dt),xe.minZoom,xe.maxZoom),Pr=An/xe.zoomScale(Dr-Me);On=Math.sqrt(Pr/rr*2)}var Zr=On*On;function Mo(Io){var $i=(Sn*Sn-An*An+(Io?-1:1)*Zr*Zr*rr*rr)/(2*(Io?Sn:An)*Zr*rr);return Math.log(Math.sqrt($i*$i+1)-$i)}function $o(Io){return(Math.exp(Io)-Math.exp(-Io))/2}function vo(Io){return(Math.exp(Io)+Math.exp(-Io))/2}var zo=Mo(0),yi=function(Io){return vo(zo)/vo(zo+On*Io)},Si=function(Io){return An*((vo(zo)*($o($i=zo+On*Io)/vo($i))-$o(zo))/Zr)/rr;var $i},Hr=(Mo(1)-zo)/On;if(Math.abs(rr)<1e-6||!isFinite(Hr)){if(Math.abs(An-Sn)<1e-6)return this.easeTo(ie,V);var Lo=Snie.maxDuration&&(ie.duration=0),this._zooming=!0,this._rotating=Fe!==mt,this._pitching=Et!==Je,this._padding=!xe.isPaddingEqual(Vt),this._prepareEase(V,!1),this._ease(function(Io){var $i=Io*Hr,Ui=1/yi($i);xe.zoom=Io===1?dt:Me+xe.scaleZoom(Ui),ne._rotating&&(xe.bearing=i.number(Fe,mt,Io)),ne._pitching&&(xe.pitch=i.number(Je,Et,Io)),ne._padding&&(xe.interpolatePadding(rt,Vt,Io),cn=xe.centerPoint.add(Nt));var ba=Io===1?xn:xe.unproject(pn.add(Ln.mult(Si($i))).mult(Ui));xe.setLocationAtPoint(xe.renderWorldCopies?ba.wrap():ba,cn),ne._fireMoveEvents(V)},function(){return ne._afterEase(V)},ie),this},le.prototype.isEasing=function(){return!!this._easeFrameId},le.prototype.stop=function(){return this._stop()},le.prototype._stop=function(ie,V){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var ne=this._onEaseEnd;delete this._onEaseEnd,ne.call(this,V)}if(!ie){var ge=this.handlers;ge&&ge.stop(!1)}return this},le.prototype._ease=function(ie,V,ne){ne.animate===!1||ne.duration===0?(ie(1),V()):(this._easeStart=i.browser.now(),this._easeOptions=ne,this._onEaseFrame=ie,this._onEaseEnd=V,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},le.prototype._renderFrameCallback=function(){var ie=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ie)),ie<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},le.prototype._normalizeBearing=function(ie,V){ie=i.wrap(ie,-180,180);var ne=Math.abs(ie-V);return Math.abs(ie-360-V)180?-360:ne<-180?360:0}},le}(i.Evented),Xc=function(J){J===void 0&&(J={}),this.options=J,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Xc.prototype.getDefaultPosition=function(){return"bottom-right"},Xc.prototype.onAdd=function(J){var le=this.options&&this.options.compact;return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=w.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=w.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),le&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),le===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Xc.prototype.onRemove=function(){w.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Xc.prototype._setElementTitle=function(J,le){var ie=this._map._getUIString("AttributionControl."+le);J.title=ie,J.setAttribute("aria-label",ie)},Xc.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Xc.prototype._updateEditLink=function(){var J=this._editLink;J||(J=this._editLink=this._container.querySelector(".mapbox-improve-map"));var le=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(J){var ie=le.reduce(function(V,ne,ge){return ne.value&&(V+=ne.key+"="+ne.value+(ge=0)return!1;return!0})).join(" | ");xe!==this._attribHTML&&(this._attribHTML=xe,J.length?(this._innerContainer.innerHTML=xe,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Xc.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var jf=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};jf.prototype.onAdd=function(J){this._map=J,this._container=w.create("div","mapboxgl-ctrl");var le=w.create("a","mapboxgl-ctrl-logo");return le.target="_blank",le.rel="noopener nofollow",le.href="https://www.mapbox.com/",le.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),le.setAttribute("rel","noopener nofollow"),this._container.appendChild(le),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},jf.prototype.onRemove=function(){w.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},jf.prototype.getDefaultPosition=function(){return"bottom-left"},jf.prototype._updateLogo=function(J){J&&J.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},jf.prototype._logoRequired=function(){if(this._map.style){var J=this._map.style.sourceCaches;for(var le in J)if(J[le].getSource().mapbox_logo)return!0;return!1}},jf.prototype._updateCompact=function(){var J=this._container.children;if(J.length){var le=J[0];this._map.getCanvasContainer().offsetWidth<250?le.classList.add("mapboxgl-compact"):le.classList.remove("mapboxgl-compact")}};var bu=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};bu.prototype.add=function(J){var le=++this._id;return this._queue.push({callback:J,id:le,cancelled:!1}),le},bu.prototype.remove=function(J){for(var le=this._currentlyRunning,ie=0,V=le?this._queue.concat(le):this._queue;ieV.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(V.minPitch!=null&&V.maxPitch!=null&&V.minPitch>V.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(V.minPitch!=null&&V.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(V.maxPitch!=null&&V.maxPitch>Qf)throw new Error("maxPitch must be less than or equal to 60");var ge=new Cs(V.minZoom,V.maxZoom,V.minPitch,V.maxPitch,V.renderWorldCopies);if(J.call(this,ge,V),this._interactive=V.interactive,this._maxTileCacheSize=V.maxTileCacheSize,this._failIfMajorPerformanceCaveat=V.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=V.preserveDrawingBuffer,this._antialias=V.antialias,this._trackResize=V.trackResize,this._bearingSnap=V.bearingSnap,this._refreshExpiredTiles=V.refreshExpiredTiles,this._fadeDuration=V.fadeDuration,this._crossSourceCollisions=V.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=V.collectResourceTiming,this._renderTaskQueue=new bu,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Dp,V.locale),this._clickTolerance=V.clickTolerance,this._requestManager=new i.RequestManager(V.transformRequest,V.accessToken),typeof V.container=="string"){if(this._container=i.window.document.getElementById(V.container),!this._container)throw new Error("Container '"+V.container+"' not found.")}else{if(!(V.container instanceof Lu))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=V.container}if(V.maxBounds&&this.setMaxBounds(V.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ne._update(!1)}),this.on("moveend",function(){return ne._update(!1)}),this.on("zoom",function(){return ne._update(!0)}),i.window!==void 0&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Ka(this,V);var xe=typeof V.hash=="string"&&V.hash||void 0;this._hash=V.hash&&new Zu(xe).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:V.center,zoom:V.zoom,bearing:V.bearing,pitch:V.pitch}),V.bounds&&(this.resize(),this.fitBounds(V.bounds,i.extend({},V.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=V.localIdeographFontFamily,V.style&&this.setStyle(V.style,{localIdeographFontFamily:V.localIdeographFontFamily}),V.attributionControl&&this.addControl(new Xc({customAttribution:V.customAttribution})),this.addControl(new jf,V.logoPosition),this.on("style.load",function(){ne.transform.unmodified&&ne.jumpTo(ne.style.stylesheet)}),this.on("data",function(Me){ne._update(Me.dataType==="style"),ne.fire(new i.Event(Me.dataType+"data",Me))}),this.on("dataloading",function(Me){ne.fire(new i.Event(Me.dataType+"dataloading",Me))})}J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le;var ie={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return le.prototype._getMapId=function(){return this._mapId},le.prototype.addControl=function(V,ne){if(ne===void 0&&(ne=V.getDefaultPosition?V.getDefaultPosition():"top-right"),!V||!V.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ge=V.onAdd(this);this._controls.push(V);var xe=this._controlPositions[ne];return ne.indexOf("bottom")!==-1?xe.insertBefore(ge,xe.firstChild):xe.appendChild(ge),this},le.prototype.removeControl=function(V){if(!V||!V.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=this._controls.indexOf(V);return ne>-1&&this._controls.splice(ne,1),V.onRemove(this),this},le.prototype.hasControl=function(V){return this._controls.indexOf(V)>-1},le.prototype.resize=function(V){var ne=this._containerDimensions(),ge=ne[0],xe=ne[1];this._resizeCanvas(ge,xe),this.transform.resize(ge,xe),this.painter.resize(ge,xe);var Me=!this._moving;return Me&&(this.stop(),this.fire(new i.Event("movestart",V)).fire(new i.Event("move",V))),this.fire(new i.Event("resize",V)),Me&&this.fire(new i.Event("moveend",V)),this},le.prototype.getBounds=function(){return this.transform.getBounds()},le.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},le.prototype.setMaxBounds=function(V){return this.transform.setMaxBounds(i.LngLatBounds.convert(V)),this._update()},le.prototype.setMinZoom=function(V){if((V=V??-2)>=-2&&V<=this.transform.maxZoom)return this.transform.minZoom=V,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=V,this._update(),this.getZoom()>V&&this.setZoom(V),this;throw new Error("maxZoom must be greater than the current minZoom")},le.prototype.getMaxZoom=function(){return this.transform.maxZoom},le.prototype.setMinPitch=function(V){if((V=V??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(V>=0&&V<=this.transform.maxPitch)return this.transform.minPitch=V,this._update(),this.getPitch()Qf)throw new Error("maxPitch must be less than or equal to 60");if(V>=this.transform.minPitch)return this.transform.maxPitch=V,this._update(),this.getPitch()>V&&this.setPitch(V),this;throw new Error("maxPitch must be greater than the current minPitch")},le.prototype.getMaxPitch=function(){return this.transform.maxPitch},le.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},le.prototype.setRenderWorldCopies=function(V){return this.transform.renderWorldCopies=V,this._update()},le.prototype.project=function(V){return this.transform.locationPoint(i.LngLat.convert(V))},le.prototype.unproject=function(V){return this.transform.pointLocation(i.Point.convert(V))},le.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},le.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},le.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},le.prototype._createDelegatedListener=function(V,ne,ge){var xe,Me=this;if(V==="mouseenter"||V==="mouseover"){var Fe=!1;return{layer:ne,listener:ge,delegates:{mousemove:function(rt){var dt=Me.getLayer(ne)?Me.queryRenderedFeatures(rt.point,{layers:[ne]}):[];dt.length?Fe||(Fe=!0,ge.call(Me,new zc(V,Me,rt.originalEvent,{features:dt}))):Fe=!1},mouseout:function(){Fe=!1}}}}if(V==="mouseleave"||V==="mouseout"){var Je=!1;return{layer:ne,listener:ge,delegates:{mousemove:function(rt){(Me.getLayer(ne)?Me.queryRenderedFeatures(rt.point,{layers:[ne]}):[]).length?Je=!0:Je&&(Je=!1,ge.call(Me,new zc(V,Me,rt.originalEvent)))},mouseout:function(rt){Je&&(Je=!1,ge.call(Me,new zc(V,Me,rt.originalEvent)))}}}}return{layer:ne,listener:ge,delegates:(xe={},xe[V]=function(rt){var dt=Me.getLayer(ne)?Me.queryRenderedFeatures(rt.point,{layers:[ne]}):[];dt.length&&(rt.features=dt,ge.call(Me,rt),delete rt.features)},xe)}},le.prototype.on=function(V,ne,ge){if(ge===void 0)return J.prototype.on.call(this,V,ne);var xe=this._createDelegatedListener(V,ne,ge);for(var Me in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[V]=this._delegatedListeners[V]||[],this._delegatedListeners[V].push(xe),xe.delegates)this.on(Me,xe.delegates[Me]);return this},le.prototype.once=function(V,ne,ge){if(ge===void 0)return J.prototype.once.call(this,V,ne);var xe=this._createDelegatedListener(V,ne,ge);for(var Me in xe.delegates)this.once(Me,xe.delegates[Me]);return this},le.prototype.off=function(V,ne,ge){var xe=this;return ge===void 0?J.prototype.off.call(this,V,ne):(this._delegatedListeners&&this._delegatedListeners[V]&&function(Me){for(var Fe=Me[V],Je=0;Je180;){var xe=ie.locationPoint(J);if(xe.x>=0&&xe.y>=0&&xe.x<=ie.width&&xe.y<=ie.height)break;J.lng>ie.center.lng?J.lng-=360:J.lng+=360}return J}rl.prototype.down=function(J,le){this.mouseRotate.mousedown(J,le),this.mousePitch&&this.mousePitch.mousedown(J,le),w.disableDrag()},rl.prototype.move=function(J,le){var ie=this.map,V=this.mouseRotate.mousemoveWindow(J,le);if(V&&V.bearingDelta&&ie.setBearing(ie.getBearing()+V.bearingDelta),this.mousePitch){var ne=this.mousePitch.mousemoveWindow(J,le);ne&&ne.pitchDelta&&ie.setPitch(ie.getPitch()+ne.pitchDelta)}},rl.prototype.off=function(){var J=this.element;w.removeEventListener(J,"mousedown",this.mousedown),w.removeEventListener(J,"touchstart",this.touchstart,{passive:!1}),w.removeEventListener(J,"touchmove",this.touchmove),w.removeEventListener(J,"touchend",this.touchend),w.removeEventListener(J,"touchcancel",this.reset),this.offTemp()},rl.prototype.offTemp=function(){w.enableDrag(),w.removeEventListener(i.window,"mousemove",this.mousemove),w.removeEventListener(i.window,"mouseup",this.mouseup)},rl.prototype.mousedown=function(J){this.down(i.extend({},J,{ctrlKey:!0,preventDefault:function(){return J.preventDefault()}}),w.mousePos(this.element,J)),w.addEventListener(i.window,"mousemove",this.mousemove),w.addEventListener(i.window,"mouseup",this.mouseup)},rl.prototype.mousemove=function(J){this.move(J,w.mousePos(this.element,J))},rl.prototype.mouseup=function(J){this.mouseRotate.mouseupWindow(J),this.mousePitch&&this.mousePitch.mouseupWindow(J),this.offTemp()},rl.prototype.touchstart=function(J){J.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return J.preventDefault()}},this._startPos))},rl.prototype.touchmove=function(J){J.targetTouches.length!==1?this.reset():(this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.move({preventDefault:function(){return J.preventDefault()}},this._lastPos))},rl.prototype.touchend=function(J){J.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=V}this._isDragging&&(this._pos=ie.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},le.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},le.prototype._addDragHandler=function(ie){this._element.contains(ie.originalEvent.target)&&(ie.preventDefault(),this._positionDelta=ie.point.sub(this._pos).add(this._offset),this._pointerdownPos=ie.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},le.prototype.setDraggable=function(ie){return this._draggable=!!ie,this._map&&(ie?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},le.prototype.isDraggable=function(){return this._draggable},le.prototype.setRotation=function(ie){return this._rotation=ie||0,this._update(),this},le.prototype.getRotation=function(){return this._rotation},le.prototype.setRotationAlignment=function(ie){return this._rotationAlignment=ie||"auto",this._update(),this},le.prototype.getRotationAlignment=function(){return this._rotationAlignment},le.prototype.setPitchAlignment=function(ie){return this._pitchAlignment=ie&&ie!=="auto"?ie:this._rotationAlignment,this._update(),this},le.prototype.getPitchAlignment=function(){return this._pitchAlignment},le}(i.Evented),Zl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Jl=0,Bd=!1,Qs=function(J){function le(ie){J.call(this),this.options=i.extend({},Zl,ie),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.onAdd=function(ie){return this._map=ie,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),V=this._setupUI,au!==void 0?V(au):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(ne){au=ne.state!=="denied",V(au)}):(au=!!i.window.navigator.geolocation,V(au)),this._container;var V},le.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),w.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Jl=0,Bd=!1},le.prototype._isOutOfMapMaxBounds=function(ie){var V=this._map.getMaxBounds(),ne=ie.coords;return V&&(ne.longitudeV.getEast()||ne.latitudeV.getNorth())},le.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},le.prototype._onSuccess=function(ie){if(this._map){if(this._isOutOfMapMaxBounds(ie))return this._setErrorState(),this.fire(new i.Event("outofmaxbounds",ie)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=ie,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(ie),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(ie),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",ie)),this._finish()}},le.prototype._updateCamera=function(ie){var V=new i.LngLat(ie.coords.longitude,ie.coords.latitude),ne=ie.coords.accuracy,ge=this._map.getBearing(),xe=i.extend({bearing:ge},this.options.fitBoundsOptions);this._map.fitBounds(V.toBounds(ne),xe,{geolocateSource:!0})},le.prototype._updateMarker=function(ie){if(ie){var V=new i.LngLat(ie.coords.longitude,ie.coords.latitude);this._accuracyCircleMarker.setLngLat(V).addTo(this._map),this._userLocationDotMarker.setLngLat(V).addTo(this._map),this._accuracy=ie.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},le.prototype._updateCircleRadius=function(){var ie=this._map._container.clientHeight/2,V=this._map.unproject([0,ie]),ne=this._map.unproject([1,ie]),ge=V.distanceTo(ne),xe=Math.ceil(2*this._accuracy/ge);this._circleElement.style.width=xe+"px",this._circleElement.style.height=xe+"px"},le.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},le.prototype._onError=function(ie){if(this._map){if(this.options.trackUserLocation)if(ie.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var V=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=V,this._geolocateButton.setAttribute("aria-label",V),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(ie.code===3&&Bd)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",ie)),this._finish()}},le.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},le.prototype._setupUI=function(ie){var V=this;if(this._container.addEventListener("contextmenu",function(xe){return xe.preventDefault()}),this._geolocateButton=w.create("button","mapboxgl-ctrl-geolocate",this._container),w.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",ie===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var ne=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}else{var ge=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ge,this._geolocateButton.setAttribute("aria-label",ge)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=w.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Zf(this._dotElement),this._circleElement=w.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Zf({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(xe){var Me=xe.originalEvent&&xe.originalEvent.type==="resize";xe.geolocateSource||V._watchState!=="ACTIVE_LOCK"||Me||(V._watchState="BACKGROUND",V._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),V._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),V.fire(new i.Event("trackuserlocationend")))})},le.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Jl--,Bd=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var ie;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Jl>1?(ie={maximumAge:6e5,timeout:0},Bd=!0):(ie=this.options.positionOptions,Bd=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ie)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},le.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},le}(i.Evented),kc={maxWidth:100,unit:"metric"},Iu=function(J){this.options=i.extend({},kc,J),i.bindAll(["_onMove","setUnit"],this)};function Ea(J,le,ie){var V=ie&&ie.maxWidth||100,ne=J._container.clientHeight/2,ge=J.unproject([0,ne]),xe=J.unproject([V,ne]),Me=ge.distanceTo(xe);if(ie&&ie.unit==="imperial"){var Fe=3.2808*Me;Fe>5280?El(le,V,Fe/5280,J._getUIString("ScaleControl.Miles")):El(le,V,Fe,J._getUIString("ScaleControl.Feet"))}else ie&&ie.unit==="nautical"?El(le,V,Me/1852,J._getUIString("ScaleControl.NauticalMiles")):Me>=1e3?El(le,V,Me/1e3,J._getUIString("ScaleControl.Kilometers")):El(le,V,Me,J._getUIString("ScaleControl.Meters"))}function El(J,le,ie,V){var ne,ge,xe,Me=(ne=ie,(ge=Math.pow(10,(""+Math.floor(ne)).length-1))*((xe=ne/ge)>=10?10:xe>=5?5:xe>=3?3:xe>=2?2:xe>=1?1:function(Je){var rt=Math.pow(10,Math.ceil(-Math.log(Je)/Math.LN10));return Math.round(Je*rt)/rt}(xe))),Fe=Me/ie;J.style.width=le*Fe+"px",J.innerHTML=Me+" "+V}Iu.prototype.getDefaultPosition=function(){return"bottom-left"},Iu.prototype._onMove=function(){Ea(this._map,this._container,this.options)},Iu.prototype.onAdd=function(J){return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",J.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Iu.prototype.onRemove=function(){w.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Iu.prototype.setUnit=function(J){this.options.unit=J,Ea(this._map,this._container,this.options)};var Ol=function(J){this._fullscreen=!1,J&&J.container&&(J.container instanceof i.window.HTMLElement?this._container=J.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};Ol.prototype.onAdd=function(J){return this._map=J,this._container||(this._container=this._map.getContainer()),this._controlContainer=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Ol.prototype.onRemove=function(){w.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Ol.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},Ol.prototype._setupUI=function(){var J=this._fullscreenButton=w.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);w.create("span","mapboxgl-ctrl-icon",J).setAttribute("aria-hidden",!0),J.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Ol.prototype._updateTitle=function(){var J=this._getTitle();this._fullscreenButton.setAttribute("aria-label",J),this._fullscreenButton.title=J},Ol.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Ol.prototype._isFullscreen=function(){return this._fullscreen},Ol.prototype._changeIcon=function(){(i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Ol.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Mi={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},kf=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Ot=function(J){function le(ie){J.call(this),this.options=i.extend(Object.create(Mi),ie),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.addTo=function(ie){return this._map&&this.remove(),this._map=ie,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},le.prototype.isOpen=function(){return!!this._map},le.prototype.remove=function(){return this._content&&w.remove(this._content),this._container&&(w.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},le.prototype.getLngLat=function(){return this._lngLat},le.prototype.setLngLat=function(ie){return this._lngLat=i.LngLat.convert(ie),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},le.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},le.prototype.getElement=function(){return this._container},le.prototype.setText=function(ie){return this.setDOMContent(i.window.document.createTextNode(ie))},le.prototype.setHTML=function(ie){var V,ne=i.window.document.createDocumentFragment(),ge=i.window.document.createElement("body");for(ge.innerHTML=ie;V=ge.firstChild;)ne.appendChild(V);return this.setDOMContent(ne)},le.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},le.prototype.setMaxWidth=function(ie){return this.options.maxWidth=ie,this._update(),this},le.prototype.setDOMContent=function(ie){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=w.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(ie),this._createCloseButton(),this._update(),this._focusFirstElement(),this},le.prototype.addClassName=function(ie){this._container&&this._container.classList.add(ie)},le.prototype.removeClassName=function(ie){this._container&&this._container.classList.remove(ie)},le.prototype.setOffset=function(ie){return this.options.offset=ie,this._update(),this},le.prototype.toggleClassName=function(ie){if(this._container)return this._container.classList.toggle(ie)},le.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=w.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},le.prototype._onMouseUp=function(ie){this._update(ie.point)},le.prototype._onMouseMove=function(ie){this._update(ie.point)},le.prototype._onDrag=function(ie){this._update(ie.point)},le.prototype._update=function(ie){var V=this,ne=this._lngLat||this._trackPointer;if(this._map&&ne&&this._content&&(this._container||(this._container=w.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=w.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(mt){return V._container.classList.add(mt)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Dd(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||ie)){var ge=this._pos=this._trackPointer&&ie?ie:this._map.project(this._lngLat),xe=this.options.anchor,Me=Mt(this.options.offset);if(!xe){var Fe,Je=this._container.offsetWidth,rt=this._container.offsetHeight;Fe=ge.y+Me.bottom.ythis._map.transform.height-rt?["bottom"]:[],ge.xthis._map.transform.width-Je/2&&Fe.push("right"),xe=Fe.length===0?"bottom":Fe.join("-")}var dt=ge.add(Me[xe]).round();w.setTransform(this._container,Vi[xe]+" translate("+dt.x+"px,"+dt.y+"px)"),fa(this._container,xe,"popup")}},le.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var ie=this._container.querySelector(kf);ie&&ie.focus()}},le.prototype._onClose=function(){this.remove()},le}(i.Evented);function Mt(J){if(J){if(typeof J=="number"){var le=Math.round(Math.sqrt(.5*Math.pow(J,2)));return{center:new i.Point(0,0),top:new i.Point(0,J),"top-left":new i.Point(le,le),"top-right":new i.Point(-le,le),bottom:new i.Point(0,-J),"bottom-left":new i.Point(le,-le),"bottom-right":new i.Point(-le,-le),left:new i.Point(J,0),right:new i.Point(-J,0)}}if(J instanceof i.Point||Array.isArray(J)){var ie=i.Point.convert(J);return{center:ie,top:ie,"top-left":ie,"top-right":ie,bottom:ie,"bottom-left":ie,"bottom-right":ie,left:ie,right:ie}}return{center:i.Point.convert(J.center||[0,0]),top:i.Point.convert(J.top||[0,0]),"top-left":i.Point.convert(J["top-left"]||[0,0]),"top-right":i.Point.convert(J["top-right"]||[0,0]),bottom:i.Point.convert(J.bottom||[0,0]),"bottom-left":i.Point.convert(J["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(J["bottom-right"]||[0,0]),left:i.Point.convert(J.left||[0,0]),right:i.Point.convert(J.right||[0,0])}}return Mt(new i.Point(0,0))}var Ft={version:i.version,supported:O,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Hf,NavigationControl:hd,GeolocateControl:Qs,AttributionControl:Xc,ScaleControl:Iu,FullscreenControl:Ol,Popup:Ot,Marker:Zf,Style:ao,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:function(){Yt().acquire(Lt)},clearPrewarmedResources:function(){var J=Zt;J&&(J.isPreloaded()&&J.numActive()===1?(J.release(Lt),Zt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(J){i.config.ACCESS_TOKEN=J},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(J){i.config.API_URL=J},get workerCount(){return xt.workerCount},set workerCount(J){xt.workerCount=J},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(J){i.config.MAX_PARALLEL_IMAGE_REQUESTS=J},clearStorage:function(J){i.clearTileCache(J)},workerUrl:""};return Ft}),c}()},3108:function(d,l,n){d.exports=n(26099)},26099:function(d,l,n){var c=n(64928),b=n(32420),i=n(51160),O=n(76752),w=n(55616),y=n(31264),p=n(47520),a=n(18400),u=n(72512),h=n(76244);function m(v,_){for(var S=_[0],A=_[1],x=1/(_[2]-S),R=1/(_[3]-A),M=new Array(v.length),T=0,E=v.length/2;T>>1;_.dtype||(_.dtype="array"),typeof _.dtype=="string"?x=new(u(_.dtype))(M):_.dtype&&(x=_.dtype,Array.isArray(x)&&(x.length=M));for(var T=0;TS||Y>1073741824){for(var ae=0;aePe+ze||de>Ie+ze||ve=_e||He===Ve)){var $e=E[De];Ve===void 0&&(Ve=$e.length);for(var Oe=He;Oe=ee&&Le<=he&&We>=me&&We<=se&&Se.push(ke)}var Ue=C[De],Ze=Ue[4*He+0],Xe=Ue[4*He+1],tt=Ue[4*He+2],Ee=Ue[4*He+3],Ne=function(ot,Ge){for(var ht=null,pt=0;ht===null;)if(ht=ot[4*Ge+pt],++pt>ot.length)return null;return ht}(Ue,He+1),je=.5*ze,nt=De+1;Te(Pe,Ie,je,nt,Ze,Xe||tt||Ee||Ne),Te(Pe,Ie+je,je,nt,Xe,tt||Ee||Ne),Te(Pe+je,Ie,je,nt,tt,Ee||Ne),Te(Pe+je,Ie+je,je,nt,Ee,Ne)}}(0,0,1,0,0,1),Se},x;function U(X,te,W){for(var K=1,oe=.5,q=.5,Y=.5,ee=0;ee0){p+=Math.abs(O(y[0]));for(var a=1;a2){for(v=0;v=0))throw new Error("precision must be a positive number");var S=Math.pow(10,_||0);return Math.round(v*S)/S},l.radiansToLength=a,l.lengthToRadians=u,l.lengthToDegrees=function(v,_){return h(u(v,_))},l.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},l.radiansToDegrees=h,l.degreesToRadians=function(v){return v%360*Math.PI/180},l.convertLength=function(v,_,S){if(_===void 0&&(_="kilometers"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(u(v,_),S)},l.convertArea=function(v,_,S){if(_===void 0&&(_="meters"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("area must be a positive number");var A=l.areaFactors[_];if(!A)throw new Error("invalid original units");var x=l.areaFactors[S];if(!x)throw new Error("invalid final units");return v/A*x},l.isNumber=m,l.isObject=function(v){return!!v&&v.constructor===Object},l.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!m(_))throw new Error("bbox must only contain numbers")})},l.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},3256:function(d,l,n){Object.defineProperty(l,"__esModule",{value:!0});var c=n(46284);function b(u,h,m){if(u!==null)for(var v,_,S,A,x,R,M,T,E=0,C=0,L=u.type,D=L==="FeatureCollection",k=L==="Feature",I=D?u.features.length:1,z=0;zR||D>M||k>T)return x=E,R=v,M=D,T=k,void(S=0);var I=c.lineString([x,E],m.properties);if(h(I,v,_,k,S)===!1)return!1;S++,x=E})!==!1&&void 0}}})}function a(u,h){if(!u)throw new Error("geojson is required");y(u,function(m,v,_){if(m.geometry!==null){var S=m.geometry.type,A=m.geometry.coordinates;switch(S){case"LineString":if(h(m,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xw[0]&&(O[0]=w[0]),O[1]>w[1]&&(O[1]=w[1]),O[2]=0))throw new Error("precision must be a positive number");var S=Math.pow(10,_||0);return Math.round(v*S)/S},l.radiansToLength=a,l.lengthToRadians=u,l.lengthToDegrees=function(v,_){return h(u(v,_))},l.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},l.radiansToDegrees=h,l.degreesToRadians=function(v){return v%360*Math.PI/180},l.convertLength=function(v,_,S){if(_===void 0&&(_="kilometers"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(u(v,_),S)},l.convertArea=function(v,_,S){if(_===void 0&&(_="meters"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("area must be a positive number");var A=l.areaFactors[_];if(!A)throw new Error("invalid original units");var x=l.areaFactors[S];if(!x)throw new Error("invalid final units");return v/A*x},l.isNumber=m,l.isObject=function(v){return!!v&&v.constructor===Object},l.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!m(_))throw new Error("bbox must only contain numbers")})},l.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},84880:function(d,l,n){Object.defineProperty(l,"__esModule",{value:!0});var c=n(76796);function b(u,h,m){if(u!==null)for(var v,_,S,A,x,R,M,T,E=0,C=0,L=u.type,D=L==="FeatureCollection",k=L==="Feature",I=D?u.features.length:1,z=0;zR||D>M||k>T)return x=E,R=v,M=D,T=k,void(S=0);var I=c.lineString([x,E],m.properties);if(h(I,v,_,k,S)===!1)return!1;S++,x=E})!==!1&&void 0}}})}function a(u,h){if(!u)throw new Error("geojson is required");y(u,function(m,v,_){if(m.geometry!==null){var S=m.geometry.type,A=m.geometry.coordinates;switch(S){case"LineString":if(h(m,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;x=0))throw new Error("precision must be a positive number");var S=Math.pow(10,_||0);return Math.round(v*S)/S},l.radiansToLength=a,l.lengthToRadians=u,l.lengthToDegrees=function(v,_){return h(u(v,_))},l.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},l.radiansToDegrees=h,l.degreesToRadians=function(v){return v%360*Math.PI/180},l.convertLength=function(v,_,S){if(_===void 0&&(_="kilometers"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(u(v,_),S)},l.convertArea=function(v,_,S){if(_===void 0&&(_="meters"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("area must be a positive number");var A=l.areaFactors[_];if(!A)throw new Error("invalid original units");var x=l.areaFactors[S];if(!x)throw new Error("invalid final units");return v/A*x},l.isNumber=m,l.isObject=function(v){return!!v&&v.constructor===Object},l.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!m(_))throw new Error("bbox must only contain numbers")})},l.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")},l.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},l.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},l.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},l.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},l.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},l.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},l.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},43752:function(d,l,n){Object.defineProperty(l,"__esModule",{value:!0});var c=n(49840);function b(u,h,m){if(u!==null)for(var v,_,S,A,x,R,M,T,E=0,C=0,L=u.type,D=L==="FeatureCollection",k=L==="Feature",I=D?u.features.length:1,z=0;zR||D>M||k>T)return x=E,R=v,M=D,T=k,void(S=0);var I=c.lineString([x,E],m.properties);if(h(I,v,_,k,S)===!1)return!1;S++,x=E})!==!1&&void 0}}})}function a(u,h){if(!u)throw new Error("geojson is required");y(u,function(m,v,_){if(m.geometry!==null){var S=m.geometry.type,A=m.geometry.coordinates;switch(S){case"LineString":if(h(m,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xi&&(i=l[w]),l[w]1?oe-1:0),Y=1;Y1?oe-1:0),Y=1;Y1?oe-1:0),Y=1;Y1?oe-1:0),Y=1;Y2?"one of ".concat(h," ").concat(u.slice(0,m-1).join(", "),", or ")+u[m-1]:m===2?"one of ".concat(h," ").concat(u[0]," or ").concat(u[1]):"of ".concat(h," ").concat(u[0])}return"of ".concat(h," ").concat(String(u))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(u,h,m){var v,_,S,A,x;if(O===void 0&&(O=n(45408)),O(typeof u=="string","'name' must be a string"),typeof h=="string"&&(_="not ",h.substr(0,4)===_)?(v="must not be",h=h.replace(/^not /,"")):v="must be",function(M,T,E){return(E===void 0||E>M.length)&&(E=M.length),M.substring(E-9,E)===T}(u," argument"))S="The ".concat(u," ").concat(v," ").concat(a(h,"type"));else{var R=(typeof x!="number"&&(x=0),x+1>(A=u).length||A.indexOf(".",x)===-1?"argument":"property");S='The "'.concat(u,'" ').concat(R," ").concat(v," ").concat(a(h,"type"))}return S+". Received type ".concat(c(m))},TypeError),p("ERR_INVALID_ARG_VALUE",function(u,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";w===void 0&&(w=n(35840));var v=w.inspect(h);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(u,"' ").concat(m,". Received ").concat(v)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(u,h,m){var v;return v=m&&m.constructor&&m.constructor.name?"instance of ".concat(m.constructor.name):"type ".concat(c(m)),"Expected ".concat(u,' to be returned from the "').concat(h,'"')+" function but got ".concat(v,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var u=arguments.length,h=new Array(u),m=0;m0,"At least one arg needs to be specified");var v="The ",_=h.length;switch(h=h.map(function(S){return'"'.concat(S,'"')}),_){case 1:v+="".concat(h[0]," argument");break;case 2:v+="".concat(h[0]," and ").concat(h[1]," arguments");break;default:v+=h.slice(0,_-1).join(", "),v+=", and ".concat(h[_-1]," arguments")}return"".concat(v," must be specified")},TypeError),d.exports.codes=y},25116:function(d,l,n){function c(de,ve){return function(ye){if(Array.isArray(ye))return ye}(de)||function(ye,_e){var Se=[],Te=!0,Pe=!1,Ie=void 0;try{for(var ze,De=ye[Symbol.iterator]();!(Te=(ze=De.next()).done)&&(Se.push(ze.value),!_e||Se.length!==_e);Te=!0);}catch(He){Pe=!0,Ie=He}finally{try{Te||De.return==null||De.return()}finally{if(Pe)throw Ie}}return Se}(de,ve)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(de){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},b(de)}var i=/a/g.flags!==void 0,O=function(de){var ve=[];return de.forEach(function(ye){return ve.push(ye)}),ve},w=function(de){var ve=[];return de.forEach(function(ye,_e){return ve.push([_e,ye])}),ve},y=Object.is?Object.is:n(39896),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},a=Number.isNaN?Number.isNaN:n(1560);function u(de){return de.call.bind(de)}var h=u(Object.prototype.hasOwnProperty),m=u(Object.prototype.propertyIsEnumerable),v=u(Object.prototype.toString),_=n(35840).types,S=_.isAnyArrayBuffer,A=_.isArrayBufferView,x=_.isDate,R=_.isMap,M=_.isRegExp,T=_.isSet,E=_.isNativeError,C=_.isBoxedPrimitive,L=_.isNumberObject,D=_.isStringObject,k=_.isBooleanObject,I=_.isBigIntObject,z=_.isSymbolObject,$=_.isFloat32Array,Q=_.isFloat64Array;function j(de){if(de.length===0||de.length>10)return!0;for(var ve=0;ve57)return!0}return de.length===10&&de>=Math.pow(2,32)}function U(de){return Object.keys(de).filter(j).concat(p(de).filter(Object.prototype.propertyIsEnumerable.bind(de)))}function X(de,ve){if(de===ve)return 0;for(var ye=de.length,_e=ve.length,Se=0,Te=Math.min(ye,_e);Se"u"?[]:new Uint8Array(256),i=0;i<64;i++)b[c.charCodeAt(i)]=i;var O=function(y){var p,a=new Uint8Array(y),u=a.length,h="";for(p=0;p>2],h+=c[(3&a[p])<<4|a[p+1]>>4],h+=c[(15&a[p+1])<<2|a[p+2]>>6],h+=c[63&a[p+2]];return u%3==2?h=h.substring(0,h.length-1)+"=":u%3==1&&(h=h.substring(0,h.length-2)+"=="),h},w=function(y){var p,a,u,h,m,v=.75*y.length,_=y.length,S=0;y[y.length-1]==="="&&(v--,y[y.length-2]==="="&&v--);var A=new ArrayBuffer(v),x=new Uint8Array(A);for(p=0;p<_;p+=4)a=b[y.charCodeAt(p)],u=b[y.charCodeAt(p+1)],h=b[y.charCodeAt(p+2)],m=b[y.charCodeAt(p+3)],x[S++]=a<<2|u>>4,x[S++]=(15&u)<<4|h>>2,x[S++]=(3&h)<<6|63&m;return A}},59968:function(d,l){l.byteLength=function(p){var a=w(p),u=a[0],h=a[1];return 3*(u+h)/4-h},l.toByteArray=function(p){var a,u,h=w(p),m=h[0],v=h[1],_=new b(function(x,R,M){return 3*(R+M)/4-M}(0,m,v)),S=0,A=v>0?m-4:m;for(u=0;u>16&255,_[S++]=a>>8&255,_[S++]=255&a;return v===2&&(a=c[p.charCodeAt(u)]<<2|c[p.charCodeAt(u+1)]>>4,_[S++]=255&a),v===1&&(a=c[p.charCodeAt(u)]<<10|c[p.charCodeAt(u+1)]<<4|c[p.charCodeAt(u+2)]>>2,_[S++]=a>>8&255,_[S++]=255&a),_},l.fromByteArray=function(p){for(var a,u=p.length,h=u%3,m=[],v=16383,_=0,S=u-h;_S?S:_+v));return h===1?(a=p[u-1],m.push(n[a>>2]+n[a<<4&63]+"==")):h===2&&(a=(p[u-2]<<8)+p[u-1],m.push(n[a>>10]+n[a>>4&63]+n[a<<2&63]+"=")),m.join("")};for(var n=[],c=[],b=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=0;O<64;++O)n[O]=i[O],c[i.charCodeAt(O)]=O;function w(p){var a=p.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var u=p.indexOf("=");return u===-1&&(u=a),[u,u===a?0:4-u%4]}function y(p,a,u){for(var h,m,v=[],_=a;_>18&63]+n[m>>12&63]+n[m>>6&63]+n[63&m]);return v.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},64928:function(d){function l(w,y,p,a,u){for(var h=u+1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)>=0?(h=m,u=m-1):a=m+1}return h}function n(w,y,p,a,u){for(var h=u+1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)>0?(h=m,u=m-1):a=m+1}return h}function c(w,y,p,a,u){for(var h=a-1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)<0?(h=m,a=m+1):u=m-1}return h}function b(w,y,p,a,u){for(var h=a-1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)<=0?(h=m,a=m+1):u=m-1}return h}function i(w,y,p,a,u){for(;a<=u;){var h=a+u>>>1,m=w[h],v=p!==void 0?p(m,y):m-y;if(v===0)return h;v<=0?a=h+1:u=h-1}return-1}function O(w,y,p,a,u,h){return typeof p=="function"?h(w,y,p,a===void 0?0:0|a,u===void 0?w.length-1:0|u):h(w,y,void 0,p===void 0?0:0|p,a===void 0?w.length-1:0|a)}d.exports={ge:function(w,y,p,a,u){return O(w,y,p,a,u,l)},gt:function(w,y,p,a,u){return O(w,y,p,a,u,n)},lt:function(w,y,p,a,u){return O(w,y,p,a,u,c)},le:function(w,y,p,a,u){return O(w,y,p,a,u,b)},eq:function(w,y,p,a,u){return O(w,y,p,a,u,i)}}},308:function(d,l){function n(b){var i=32;return(b&=-b)&&i--,65535&b&&(i-=16),16711935&b&&(i-=8),252645135&b&&(i-=4),858993459&b&&(i-=2),1431655765&b&&(i-=1),i}l.INT_BITS=32,l.INT_MAX=2147483647,l.INT_MIN=-2147483648,l.sign=function(b){return(b>0)-(b<0)},l.abs=function(b){var i=b>>31;return(b^i)-i},l.min=function(b,i){return i^(b^i)&-(b65535)<<4,i|=O=((b>>>=i)>255)<<3,i|=O=((b>>>=O)>15)<<2,(i|=O=((b>>>=O)>3)<<1)|(b>>>=O)>>1},l.log10=function(b){return b>=1e9?9:b>=1e8?8:b>=1e7?7:b>=1e6?6:b>=1e5?5:b>=1e4?4:b>=1e3?3:b>=100?2:b>=10?1:0},l.popCount=function(b){return 16843009*((b=(858993459&(b-=b>>>1&1431655765))+(b>>>2&858993459))+(b>>>4)&252645135)>>>24},l.countTrailingZeros=n,l.nextPow2=function(b){return b+=b===0,--b,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,1+(b|=b>>>16)},l.prevPow2=function(b){return b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,(b|=b>>>16)-(b>>>1)},l.parity=function(b){return b^=b>>>16,b^=b>>>8,b^=b>>>4,27030>>>(b&=15)&1};var c=new Array(256);(function(b){for(var i=0;i<256;++i){var O=i,w=i,y=7;for(O>>>=1;O;O>>>=1)w<<=1,w|=1&O,--y;b[i]=w<>>8&255]<<16|c[b>>>16&255]<<8|c[b>>>24&255]},l.interleave2=function(b,i){return(b=1431655765&((b=858993459&((b=252645135&((b=16711935&((b&=65535)|b<<8))|b<<4))|b<<2))|b<<1))|(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i&=65535)|i<<8))|i<<4))|i<<2))|i<<1))<<1},l.deinterleave2=function(b,i){return(b=65535&((b=16711935&((b=252645135&((b=858993459&((b=b>>>i&1431655765)|b>>>1))|b>>>2))|b>>>4))|b>>>16))<<16>>16},l.interleave3=function(b,i,O){return b=1227133513&((b=3272356035&((b=251719695&((b=4278190335&((b&=1023)|b<<16))|b<<8))|b<<4))|b<<2),(b|=(i=1227133513&((i=3272356035&((i=251719695&((i=4278190335&((i&=1023)|i<<16))|i<<8))|i<<4))|i<<2))<<1)|(O=1227133513&((O=3272356035&((O=251719695&((O=4278190335&((O&=1023)|O<<16))|O<<8))|O<<4))|O<<2))<<2},l.deinterleave3=function(b,i){return(b=1023&((b=4278190335&((b=251719695&((b=3272356035&((b=b>>>i&1227133513)|b>>>2))|b>>>4))|b>>>8))|b>>>16))<<22>>22},l.nextCombination=function(b){var i=b|b-1;return i+1|(~i&-~i)-1>>>n(b)+1}},29620:function(d,l,n){var c=n(32420);d.exports=function(w,y){y||(y={});var p,a,u,h,m,v,_,S,A,x,R,M=y.cutoff==null?.25:y.cutoff,T=y.radius==null?8:y.radius,E=y.channel||0;if(ArrayBuffer.isView(w)||Array.isArray(w)){if(!y.width||!y.height)throw Error("For raw data width and height should be provided by options");p=y.width,a=y.height,h=w,v=y.stride?y.stride:Math.floor(w.length/p/a)}else window.HTMLCanvasElement&&w instanceof window.HTMLCanvasElement?(_=(S=w).getContext("2d"),p=S.width,a=S.height,h=(A=_.getImageData(0,0,p,a)).data,v=4):window.CanvasRenderingContext2D&&w instanceof window.CanvasRenderingContext2D?(_=w,p=(S=w.canvas).width,a=S.height,h=(A=_.getImageData(0,0,p,a)).data,v=4):window.ImageData&&w instanceof window.ImageData&&(A=w,p=w.width,a=w.height,h=A.data,v=4);if(u=Math.max(p,a),window.Uint8ClampedArray&&h instanceof window.Uint8ClampedArray||window.Uint8Array&&h instanceof window.Uint8Array)for(m=h,h=Array(p*a),x=0,R=m.length;x-1?b(y):y}},57916:function(d,l,n){var c=n(8844),b=n(53664),i=n(14500),O=b("%TypeError%"),w=b("%Function.prototype.apply%"),y=b("%Function.prototype.call%"),p=b("%Reflect.apply%",!0)||c.call(y,w),a=b("%Object.defineProperty%",!0),u=b("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}d.exports=function(m){if(typeof m!="function")throw new O("a function is required");var v=p(c,y,arguments);return i(v,1+u(0,m.length-(arguments.length-1)),!0)};var h=function(){return p(c,w,arguments)};a?a(d.exports,"apply",{value:h}):d.exports.apply=h},32420:function(d){d.exports=function(l,n,c){return nc?c:l:ln?n:l}},3808:function(d,l,n){var c=n(32420);function b(i,O){O==null&&(O=!0);var w=i[0],y=i[1],p=i[2],a=i[3];return a==null&&(a=O?1:255),O&&(w*=255,y*=255,p*=255,a*=255),16777216*(w=255&c(w,0,255))+((y=255&c(y,0,255))<<16)+((p=255&c(p,0,255))<<8)+(255&c(a,0,255))}d.exports=b,d.exports.to=b,d.exports.from=function(i,O){var w=(i=+i)>>>24,y=(16711680&i)>>>16,p=(65280&i)>>>8,a=255&i;return O===!1?[w,y,p,a]:[w/255,y/255,p/255,a/255]}},17592:function(d){d.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(d,l,n){var c=n(96824),b=n(32420),i=n(72512);d.exports=function(O,w){w!=="float"&&w||(w="array"),w==="uint"&&(w="uint8"),w==="uint_clamped"&&(w="uint8_clamped");var y=new(i(w))(4),p=w!=="uint8"&&w!=="uint8_clamped";return O.length&&typeof O!="string"||((O=c(O))[0]/=255,O[1]/=255,O[2]/=255),function(a){return a instanceof Uint8Array||a instanceof Uint8ClampedArray||!!(Array.isArray(a)&&(a[0]>1||a[0]===0)&&(a[1]>1||a[1]===0)&&(a[2]>1||a[2]===0)&&(!a[3]||a[3]>1))}(O)?(y[0]=O[0],y[1]=O[1],y[2]=O[2],y[3]=O[3]!=null?O[3]:255,p&&(y[0]/=255,y[1]/=255,y[2]/=255,y[3]/=255),y):(p?(y[0]=O[0],y[1]=O[1],y[2]=O[2],y[3]=O[3]!=null?O[3]:1):(y[0]=b(Math.floor(255*O[0]),0,255),y[1]=b(Math.floor(255*O[1]),0,255),y[2]=b(Math.floor(255*O[2]),0,255),y[3]=O[3]==null?255:b(Math.floor(255*O[3]),0,255)),y)}},81704:function(d,l,n){var c=n(17592),b=n(58908),i=n(31264);d.exports=function(w){var y,p,a=[],u=1;if(typeof w=="string")if(c[w])a=c[w].slice(),p="rgb";else if(w==="transparent")u=0,p="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(w)){var h=w.slice(1);u=1,(_=h.length)<=4?(a=[parseInt(h[0]+h[0],16),parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16)],_===4&&(u=parseInt(h[3]+h[3],16)/255)):(a=[parseInt(h[0]+h[1],16),parseInt(h[2]+h[3],16),parseInt(h[4]+h[5],16)],_===8&&(u=parseInt(h[6]+h[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),p="rgb"}else if(y=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(w)){var m=y[1],v=m==="rgb";p=h=m.replace(/a$/,"");var _=h==="cmyk"?4:h==="gray"?1:3;a=y[2].trim().split(/\s*,\s*/).map(function(A,x){if(/%$/.test(A))return x===_?parseFloat(A)/100:h==="rgb"?255*parseFloat(A)/100:parseFloat(A);if(h[x]==="h"){if(/deg$/.test(A))return parseFloat(A);if(O[A]!==void 0)return O[A]}return parseFloat(A)}),m===h&&a.push(1),u=v||a[_]===void 0?1:a[_],a=a.slice(0,_)}else w.length>10&&/[0-9](?:\s|\/)/.test(w)&&(a=w.match(/([0-9]+)/g).map(function(A){return parseFloat(A)}),p=w.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(w))if(b(w)){var S=i(w.r,w.red,w.R,null);S!==null?(p="rgb",a=[S,i(w.g,w.green,w.G),i(w.b,w.blue,w.B)]):(p="hsl",a=[i(w.h,w.hue,w.H),i(w.s,w.saturation,w.S),i(w.l,w.lightness,w.L,w.b,w.brightness)]),u=i(w.a,w.alpha,w.opacity,1),w.opacity!=null&&(u/=100)}else(Array.isArray(w)||n.g.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(w))&&(a=[w[0],w[1],w[2]],p="rgb",u=w.length===4?w[3]:1);else p="rgb",a=[w>>>16,(65280&w)>>>8,255&w];return{space:p,values:a,alpha:u}};var O={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}},96824:function(d,l,n){var c=n(81704),b=n(53576),i=n(32420);d.exports=function(O){var w,y=c(O);return y.space?((w=Array(3))[0]=i(y.values[0],0,255),w[1]=i(y.values[1],0,255),w[2]=i(y.values[2],0,255),y.space[0]==="h"&&(w=b.rgb(w)),w.push(i(y.alpha,0,1)),w):[]}},53576:function(d,l,n){var c=n(19336);d.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(b){var i,O,w,y,p,a=b[0]/360,u=b[1]/100,h=b[2]/100;if(u===0)return[p=255*h,p,p];i=2*h-(O=h<.5?h*(1+u):h+u-h*u),y=[0,0,0];for(var m=0;m<3;m++)(w=a+.3333333333333333*-(m-1))<0?w++:w>1&&w--,p=6*w<1?i+6*(O-i)*w:2*w<1?O:3*w<2?i+(O-i)*(.6666666666666666-w)*6:i,y[m]=255*p;return y}},c.hsl=function(b){var i,O,w=b[0]/255,y=b[1]/255,p=b[2]/255,a=Math.min(w,y,p),u=Math.max(w,y,p),h=u-a;return u===a?i=0:w===u?i=(y-p)/h:y===u?i=2+(p-w)/h:p===u&&(i=4+(w-y)/h),(i=Math.min(60*i,360))<0&&(i+=360),O=(a+u)/2,[i,100*(u===a?0:O<=.5?h/(u+a):h/(2-u-a)),100*O]}},19336:function(d){d.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(d){d.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(d,l,n){d.exports={parse:n(46416),stringify:n(49395)}},8744:function(d,l,n){var c=n(30584);d.exports={isSize:function(b){return/^[\d\.]/.test(b)||b.indexOf("/")!==-1||c.indexOf(b)!==-1}}},46416:function(d,l,n){var c=n(92384),b=n(68194),i=n(3748),O=n(2904),w=n(47916),y=n(7294),p=n(39956),a=n(8744).isSize;d.exports=h;var u=h.cache={};function h(v){if(typeof v!="string")throw new Error("Font argument must be a string.");if(u[v])return u[v];if(v==="")throw new Error("Cannot parse an empty string.");if(i.indexOf(v)!==-1)return u[v]={system:v};for(var _,S={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},A=p(v,/\s+/);_=A.shift();){if(b.indexOf(_)!==-1)return["style","variant","weight","stretch"].forEach(function(R){S[R]=_}),u[v]=S;if(w.indexOf(_)===-1)if(_!=="normal"&&_!=="small-caps")if(y.indexOf(_)===-1){if(O.indexOf(_)===-1){if(a(_)){var x=p(_,"/");if(S.size=x[0],x[1]!=null?S.lineHeight=m(x[1]):A[0]==="/"&&(A.shift(),S.lineHeight=m(A.shift())),!A.length)throw new Error("Missing required font-family.");return S.family=p(A.join(" "),/\s*,\s*/).map(c),u[v]=S}throw new Error("Unknown or unsupported font token: "+_)}S.weight=_}else S.stretch=_;else S.variant=_;else S.style=_}throw new Error("Missing required font-size.")}function m(v){var _=parseFloat(v);return _.toString()===v?_:v}},49395:function(d,l,n){var c=n(55616),b=n(8744).isSize,i=v(n(68194)),O=v(n(3748)),w=v(n(2904)),y=v(n(47916)),p=v(n(7294)),a={normal:1,"small-caps":1},u={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},h="serif";function m(_,S){if(_&&!S[_]&&!i[_])throw Error("Unknown keyword `"+_+"`");return _}function v(_){for(var S={},A=0;A<_.length;A++)S[_[A]]=1;return S}d.exports=function(_){if((_=c(_,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"})).system)return _.system&&m(_.system,O),_.system;if(m(_.style,y),m(_.variant,a),m(_.weight,w),m(_.stretch,p),_.size==null&&(_.size="1rem"),typeof _.size=="number"&&(_.size+="px"),!b)throw Error("Bad size value `"+_.size+"`");_.family||(_.family=h),Array.isArray(_.family)&&(_.family.length||(_.family=[h]),_.family=_.family.map(function(A){return u[A]?A:'"'+A+'"'}).join(", "));var S=[];return S.push(_.style),_.variant!==_.style&&S.push(_.variant),_.weight!==_.variant&&_.weight!==_.style&&S.push(_.weight),_.stretch!==_.weight&&_.stretch!==_.variant&&_.stretch!==_.style&&S.push(_.stretch),S.push(_.size+(_.lineHeight==null||_.lineHeight==="normal"||_.lineHeight+""=="1"?"":"/"+_.lineHeight)),S.push(_.family),S.filter(Boolean).join(" ")}},27940:function(d,l,n){var c,b=n(81680),i=n(18496),O=n(87396),w=n(95920),y=n(50868),p=n(84323),a=Function.prototype.bind,u=Object.defineProperty,h=Object.prototype.hasOwnProperty;c=function(m,v,_){var S,A=i(v)&&O(v.value);return delete(S=w(v)).writable,delete S.value,S.get=function(){return!_.overwriteDefinition&&h.call(this,m)?A:(v.value=a.call(A,_.resolveContext?_.resolveContext(this):this),u(this,m,v),this[m])},S},d.exports=function(m){var v=y(arguments[1]);return b(v.resolveContext)&&O(v.resolveContext),p(m,function(_,S){return c(S,_,v)})}},21092:function(d,l,n){var c=n(81680),b=n(85488),i=n(38452),O=n(50868),w=n(71056),y=d.exports=function(p,a){var u,h,m,v,_;return arguments.length<2||typeof p!="string"?(v=a,a=p,p=null):v=arguments[2],c(p)?(u=w.call(p,"c"),h=w.call(p,"e"),m=w.call(p,"w")):(u=m=!0,h=!1),_={value:a,configurable:u,enumerable:h,writable:m},v?i(O(v),_):_};y.gs=function(p,a,u){var h,m,v,_;return typeof p!="string"?(v=u,u=a,a=p,p=null):v=arguments[3],c(a)?b(a)?c(u)?b(u)||(v=u,u=void 0):u=void 0:(v=a,a=u=void 0):a=void 0,c(p)?(h=w.call(p,"c"),m=w.call(p,"e")):(h=!0,m=!1),_={get:a,set:u,configurable:h,enumerable:m},v?i(O(v),_):_}},84706:function(d,l,n){function c(m,v){return mv?1:m>=v?0:NaN}n.d(l,{XE:function(){return c},kv:function(){return O},mo:function(){return y},Uf:function(){return p},SY:function(){return a},ik:function(){return u},oh:function(){return h}}),(b=c).length===1&&(i=b,b=function(m,v){return c(i(m),v)});var b,i;function O(m,v){var _,S,A=m.length,x=-1;if(v==null){for(;++x=_)for(S=_;++xS&&(S=_)}else for(;++x=_)for(S=_;++xS&&(S=_);return S}function w(m){return m===null?NaN:+m}function y(m,v){var _,S=m.length,A=S,x=-1,R=0;if(v==null)for(;++x=0;)for(v=(S=m[A]).length;--v>=0;)_[--R]=S[v];return _}function a(m,v){var _,S,A=m.length,x=-1;if(v==null){for(;++x=_)for(S=_;++x_&&(S=_)}else for(;++x=_)for(S=_;++x_&&(S=_);return S}function u(m,v,_){m=+m,v=+v,_=(A=arguments.length)<2?(v=m,m=0,1):A<3?1:+_;for(var S=-1,A=0|Math.max(0,Math.ceil((v-m)/_)),x=new Array(A);++S=A.length)return v!=null&&T.sort(v),_!=null?_(T):T;for(var D,k,I,z=-1,$=T.length,Q=A[E++],j=O(),U=C();++z<$;)(I=j.get(D=Q(k=T[z])+""))?I.push(k):j.set(D,[k]);return j.each(function(X,te){L(U,te,R(X,E,C,L))}),U}function M(T,E){if(++E>A.length)return T;var C,L=x[E-1];return _!=null&&E>=A.length?C=T.entries():(C=[],T.each(function(D,k){C.push({key:k,values:M(D,E)})})),L!=null?C.sort(function(D,k){return L(D.key,k.key)}):C}return S={object:function(T){return R(T,0,y,p)},map:function(T){return R(T,0,a,u)},entries:function(T){return M(R(T,0,a,u),0)},key:function(T){return A.push(T),S},sortKeys:function(T){return x[A.length-1]=T,S},sortValues:function(T){return v=T,S},rollup:function(T){return _=T,S}}}function y(){return{}}function p(v,_,S){v[_]=S}function a(){return O()}function u(v,_,S){v.set(_,S)}function h(){}var m=O.prototype;h.prototype={constructor:h,has:m.has,add:function(v){return this[c+(v+="")]=v,this},remove:m.remove,clear:m.clear,values:m.keys,size:m.size,empty:m.empty,each:m.each}},49812:function(d,l,n){function c(ze,De){var He;function Ve(){var $e,Oe,ke=He.length,Le=0,We=0;for($e=0;$e=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=He>=(ke=(nt+Ge)/2))?nt=ke:Ge=ke,$e=Ee,!(Ee=Ee[Xe=Ze<<1|Ue]))return $e[Xe]=Ne,ze;if(Le=+ze._x.call(null,Ee.data),We=+ze._y.call(null,Ee.data),De===Le&&He===We)return Ne.next=Ee,$e?$e[Xe]=Ne:ze._root=Ne,ze;do $e=$e?$e[Xe]=new Array(4):ze._root=new Array(4),(Ue=De>=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=He>=(ke=(nt+Ge)/2))?nt=ke:Ge=ke;while((Xe=Ze<<1|Ue)==(tt=(We>=ke)<<1|Le>=Oe));return $e[tt]=Ee,$e[Xe]=Ne,ze}function w(ze,De,He,Ve,$e){this.node=ze,this.x0=De,this.y0=He,this.x1=Ve,this.y1=$e}function y(ze){return ze[0]}function p(ze){return ze[1]}function a(ze,De,He){var Ve=new u(De??y,He??p,NaN,NaN,NaN,NaN);return ze==null?Ve:Ve.addAll(ze)}function u(ze,De,He,Ve,$e,Oe){this._x=ze,this._y=De,this._x0=He,this._y0=Ve,this._x1=$e,this._y1=Oe,this._root=void 0}function h(ze){for(var De={data:ze.data},He=De;ze=ze.next;)He=He.next={data:ze.data};return De}n.r(l),n.d(l,{forceCenter:function(){return c},forceCollide:function(){return S},forceLink:function(){return M},forceManyBody:function(){return Se},forceRadial:function(){return Te},forceSimulation:function(){return _e},forceX:function(){return Pe},forceY:function(){return Ie}});var m=a.prototype=u.prototype;function v(ze){return ze.x+ze.vx}function _(ze){return ze.y+ze.vy}function S(ze){var De,He,Ve=1,$e=1;function Oe(){for(var We,Ue,Ze,Xe,tt,Ee,Ne,je=De.length,nt=0;nt<$e;++nt)for(Ue=a(De,v,_).visitAfter(ke),We=0;WeXe+en||wttt+en||DtZe.index){var Gt=Xe-It.x-It.vx,Ct=tt-It.y-It.vy,_t=Gt*Gt+Ct*Ct;_tWe.r&&(We.r=We[Ue].r)}function Le(){if(De){var We,Ue,Ze=De.length;for(He=new Array(Ze),We=0;WeZe&&(Ze=Ve),$eXe&&(Xe=$e));if(We>Ze||Ue>Xe)return this;for(this.cover(We,Ue).cover(Ze,Xe),He=0;Heze||ze>=$e||Ve>De||De>=Oe;)switch(Le=(Dett||(Oe=We.y0)>Ee||(ke=We.x1)=ot)<<1|ze>=nt)&&(We=Ne[Ne.length-1],Ne[Ne.length-1]=Ne[Ne.length-1-Ue],Ne[Ne.length-1-Ue]=We)}else{var Ge=ze-+this._x.call(null,je.data),ht=De-+this._y.call(null,je.data),pt=Ge*Ge+ht*ht;if(pt=(Le=(Ne+nt)/2))?Ne=Le:nt=Le,(Ze=ke>=(We=(je+ot)/2))?je=We:ot=We,De=Ee,!(Ee=Ee[Xe=Ze<<1|Ue]))return this;if(!Ee.length)break;(De[Xe+1&3]||De[Xe+2&3]||De[Xe+3&3])&&(He=De,tt=Xe)}for(;Ee.data!==ze;)if(Ve=Ee,!(Ee=Ee.next))return this;return($e=Ee.next)&&delete Ee.next,Ve?($e?Ve.next=$e:delete Ve.next,this):De?($e?De[Xe]=$e:delete De[Xe],(Ee=De[0]||De[1]||De[2]||De[3])&&Ee===(De[3]||De[2]||De[1]||De[0])&&!Ee.length&&(He?He[tt]=Ee:this._root=Ee),this):(this._root=$e,this)},m.removeAll=function(ze){for(var De=0,He=ze.length;De=0&&(Ue=We.slice(Ze+1),We=We.slice(0,Ze)),We&&!Ve.hasOwnProperty(We))throw new Error("unknown type: "+We);return{type:We,name:Ue}})),ke=-1,Le=Oe.length;if(!(arguments.length<2)){if(De!=null&&typeof De!="function")throw new Error("invalid callback: "+De);for(;++ke0)for(var He,Ve,$e=new Array(He),Oe=0;Oe=0&&De._call.call(null,ze),De=De._next;--$})()}finally{$=0,function(){for(var ze,De,He=k,Ve=1/0;He;)He._call?(Ve>He._time&&(Ve=He._time),ze=He,He=He._next):(De=He._next,He._next=null,He=ze?ze._next=De:k=De);I=ze,ae(Ve)}(),te=0}}function se(){var ze=K.now(),De=ze-X;De>U&&(W-=De,X=ze)}function ae(ze){$||(Q&&(Q=clearTimeout(Q)),ze-te>24?(ze<1/0&&(Q=setTimeout(he,ze-K.now()-W)),j&&(j=clearInterval(j))):(j||(X=K.now(),j=setInterval(se,U)),$=1,oe(he)))}function ce(ze){return ze.x}function de(ze){return ze.y}ee.prototype=me.prototype={constructor:ee,restart:function(ze,De,He){if(typeof ze!="function")throw new TypeError("callback is not a function");He=(He==null?q():+He)+(De==null?0:+De),this._next||I===this||(I?I._next=this:k=this,I=this),this._call=ze,this._time=He,ae()},stop:function(){this._call&&(this._call=null,this._time=1/0,ae())}};var ve=10,ye=Math.PI*(3-Math.sqrt(5));function _e(ze){var De,He=1,Ve=.001,$e=1-Math.pow(Ve,1/300),Oe=0,ke=.6,Le=(0,A.kH)(),We=me(Ze),Ue=z("tick","end");function Ze(){Xe(),Ue.call("tick",De),He1?(je==null?Le.remove(Ne):Le.set(Ne,Ee(je)),De):Le.get(Ne)},find:function(Ne,je,nt){var ot,Ge,ht,pt,wt,Dt=0,It=ze.length;for(nt==null?nt=1/0:nt*=nt,Dt=0;Dt1?(Ue.on(Ne,je),De):Ue.on(Ne)}}}function Se(){var ze,De,He,Ve,$e=b(-30),Oe=1,ke=1/0,Le=.81;function We(tt){var Ee,Ne=ze.length,je=a(ze,ce,de).visitAfter(Ze);for(He=tt,Ee=0;Ee=ke)){(tt.data!==De||tt.next)&&(nt===0&&(ht+=(nt=i())*nt),ot===0&&(ht+=(ot=i())*ot),ht1?R[0]+R.slice(2):R,+S.slice(x+1)]}n.d(l,{E9:function(){return h},SO:function(){return _}});var b,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function O(S){if(!(A=i.exec(S)))throw new Error("invalid format: "+S);var A;return new w({fill:A[1],align:A[2],sign:A[3],symbol:A[4],zero:A[5],width:A[6],comma:A[7],precision:A[8]&&A[8].slice(1),trim:A[9],type:A[10]})}function w(S){this.fill=S.fill===void 0?" ":S.fill+"",this.align=S.align===void 0?">":S.align+"",this.sign=S.sign===void 0?"-":S.sign+"",this.symbol=S.symbol===void 0?"":S.symbol+"",this.zero=!!S.zero,this.width=S.width===void 0?void 0:+S.width,this.comma=!!S.comma,this.precision=S.precision===void 0?void 0:+S.precision,this.trim=!!S.trim,this.type=S.type===void 0?"":S.type+""}function y(S,A){var x=c(S,A);if(!x)return S+"";var R=x[0],M=x[1];return M<0?"0."+new Array(-M).join("0")+R:R.length>M+1?R.slice(0,M+1)+"."+R.slice(M+1):R+new Array(M-R.length+2).join("0")}O.prototype=w.prototype,w.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":function(S,A){return(100*S).toFixed(A)},b:function(S){return Math.round(S).toString(2)},c:function(S){return S+""},d:function(S){return Math.abs(S=Math.round(S))>=1e21?S.toLocaleString("en").replace(/,/g,""):S.toString(10)},e:function(S,A){return S.toExponential(A)},f:function(S,A){return S.toFixed(A)},g:function(S,A){return S.toPrecision(A)},o:function(S){return Math.round(S).toString(8)},p:function(S,A){return y(100*S,A)},r:y,s:function(S,A){var x=c(S,A);if(!x)return S+"";var R=x[0],M=x[1],T=M-(b=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,E=R.length;return T===E?R:T>E?R+new Array(T-E+1).join("0"):T>0?R.slice(0,T)+"."+R.slice(T):"0."+new Array(1-T).join("0")+c(S,Math.max(0,A+T-1))[0]},X:function(S){return Math.round(S).toString(16).toUpperCase()},x:function(S){return Math.round(S).toString(16)}};function a(S){return S}var u,h,m=Array.prototype.map,v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _(S){var A,x,R=S.grouping===void 0||S.thousands===void 0?a:(A=m.call(S.grouping,Number),x=S.thousands+"",function(z,$){for(var Q=z.length,j=[],U=0,X=A[0],te=0;Q>0&&X>0&&(te+X+1>$&&(X=Math.max(1,$-te)),j.push(z.substring(Q-=X,Q+X)),!((te+=X+1)>$));)X=A[U=(U+1)%A.length];return j.reverse().join(x)}),M=S.currency===void 0?"":S.currency[0]+"",T=S.currency===void 0?"":S.currency[1]+"",E=S.decimal===void 0?".":S.decimal+"",C=S.numerals===void 0?a:function(z){return function($){return $.replace(/[0-9]/g,function(Q){return z[+Q]})}}(m.call(S.numerals,String)),L=S.percent===void 0?"%":S.percent+"",D=S.minus===void 0?"-":S.minus+"",k=S.nan===void 0?"NaN":S.nan+"";function I(z){var $=(z=O(z)).fill,Q=z.align,j=z.sign,U=z.symbol,X=z.zero,te=z.width,W=z.comma,K=z.precision,oe=z.trim,q=z.type;q==="n"?(W=!0,q="g"):p[q]||(K===void 0&&(K=12),oe=!0,q="g"),(X||$==="0"&&Q==="=")&&(X=!0,$="0",Q="=");var Y=U==="$"?M:U==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",ee=U==="$"?T:/[%p]/.test(q)?L:"",me=p[q],he=/[defgprs%]/.test(q);function se(ae){var ce,de,ve,ye=Y,_e=ee;if(q==="c")_e=me(ae)+_e,ae="";else{var Se=(ae=+ae)<0||1/ae<0;if(ae=isNaN(ae)?k:me(Math.abs(ae),K),oe&&(ae=function(Ie){e:for(var ze,De=Ie.length,He=1,Ve=-1;He0&&(Ve=0)}return Ve>0?Ie.slice(0,Ve)+Ie.slice(ze+1):Ie}(ae)),Se&&+ae==0&&j!=="+"&&(Se=!1),ye=(Se?j==="("?j:D:j==="-"||j==="("?"":j)+ye,_e=(q==="s"?v[8+b/3]:"")+_e+(Se&&j==="("?")":""),he){for(ce=-1,de=ae.length;++ce(ve=ae.charCodeAt(ce))||ve>57){_e=(ve===46?E+ae.slice(ce+1):ae.slice(ce))+_e,ae=ae.slice(0,ce);break}}}W&&!X&&(ae=R(ae,1/0));var Te=ye.length+ae.length+_e.length,Pe=Te>1)+ye+ae+_e+Pe.slice(Te);break;default:ae=Pe+ye+ae+_e}return C(ae)}return K=K===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K)),se.toString=function(){return z+""},se}return{format:I,formatPrefix:function(z,$){var Q,j=I(((z=O(z)).type="f",z)),U=3*Math.max(-8,Math.min(8,Math.floor((Q=$,((Q=c(Math.abs(Q)))?Q[1]:NaN)/3)))),X=Math.pow(10,-U),te=v[8+U/3];return function(W){return j(X*W)+te}}}}u=_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),h=u.format,u.formatPrefix},87108:function(d,l,n){n.r(l),n.d(l,{geoAiry:function(){return W},geoAiryRaw:function(){return te},geoAitoff:function(){return oe},geoAitoffRaw:function(){return K},geoArmadillo:function(){return Y},geoArmadilloRaw:function(){return q},geoAugust:function(){return me},geoAugustRaw:function(){return ee},geoBaker:function(){return ce},geoBakerRaw:function(){return ae},geoBerghaus:function(){return ye},geoBerghausRaw:function(){return ve},geoBertin1953:function(){return He},geoBertin1953Raw:function(){return De},geoBoggs:function(){return Ze},geoBoggsRaw:function(){return Ue},geoBonne:function(){return je},geoBonneRaw:function(){return Ne},geoBottomley:function(){return ot},geoBottomleyRaw:function(){return nt},geoBromley:function(){return ht},geoBromleyRaw:function(){return Ge},geoChamberlin:function(){return _t},geoChamberlinAfrica:function(){return Ct},geoChamberlinRaw:function(){return en},geoCollignon:function(){return gn},geoCollignonRaw:function(){return nn},geoCraig:function(){return mn},geoCraigRaw:function(){return bn},geoCraster:function(){return lt},geoCrasterRaw:function(){return bt},geoCylindricalEqualArea:function(){return zt},geoCylindricalEqualAreaRaw:function(){return yt},geoCylindricalStereographic:function(){return it},geoCylindricalStereographicRaw:function(){return Rt},geoEckert1:function(){return Lt},geoEckert1Raw:function(){return at},geoEckert2:function(){return Ht},geoEckert2Raw:function(){return xt},geoEckert3:function(){return Yt},geoEckert3Raw:function(){return Xt},geoEckert4:function(){return Pt},geoEckert4Raw:function(){return Qt},geoEckert5:function(){return Kt},geoEckert5Raw:function(){return tn},geoEckert6:function(){return dn},geoEckert6Raw:function(){return fn},geoEisenlohr:function(){return er},geoEisenlohrRaw:function(){return Nn},geoFahey:function(){return Un},geoFaheyRaw:function(){return In},geoFoucaut:function(){return Sr},geoFoucautRaw:function(){return xr},geoFoucautSinusoidal:function(){return Fn},geoFoucautSinusoidalRaw:function(){return ar},geoGilbert:function(){return Ir},geoGingery:function(){return $r},geoGingeryRaw:function(){return zr},geoGinzburg4:function(){return so},geoGinzburg4Raw:function(){return Co},geoGinzburg5:function(){return go},geoGinzburg5Raw:function(){return So},geoGinzburg6:function(){return Pn},geoGinzburg6Raw:function(){return li},geoGinzburg8:function(){return br},geoGinzburg8Raw:function(){return Yn},geoGinzburg9:function(){return Cr},geoGinzburg9Raw:function(){return dr},geoGringorten:function(){return Wr},geoGringortenQuincuncial:function(){return js},geoGringortenRaw:function(){return Qr},geoGuyou:function(){return hn},geoGuyouRaw:function(){return hr},geoHammer:function(){return Pe},geoHammerRaw:function(){return Se},geoHammerRetroazimuthal:function(){return gr},geoHammerRetroazimuthalRaw:function(){return Zn},geoHealpix:function(){return Vr},geoHealpixRaw:function(){return tr},geoHill:function(){return _o},geoHillRaw:function(){return to},geoHomolosine:function(){return po},geoHomolosineRaw:function(){return Go},geoHufnagel:function(){return Ao},geoHufnagelRaw:function(){return qo},geoHyperelliptical:function(){return mo},geoHyperellipticalRaw:function(){return ra},geoInterrupt:function(){return Na},geoInterruptedBoggs:function(){return wc},geoInterruptedHomolosine:function(){return Ku},geoInterruptedMollweide:function(){return Yd},geoInterruptedMollweideHemispheres:function(){return Ed},geoInterruptedQuarticAuthalic:function(){return sr},geoInterruptedSinuMollweide:function(){return mm},geoInterruptedSinusoidal:function(){return gm},geoKavrayskiy7:function(){return pc},geoKavrayskiy7Raw:function(){return Gl},geoLagrange:function(){return yl},geoLagrangeRaw:function(){return Cu},geoLarrivee:function(){return hu},geoLarriveeRaw:function(){return cc},geoLaskowski:function(){return iu},geoLaskowskiRaw:function(){return ju},geoLittrow:function(){return Ss},geoLittrowRaw:function(){return mc},geoLoximuthal:function(){return vf},geoLoximuthalRaw:function(){return $f},geoMiller:function(){return $h},geoMillerRaw:function(){return Ju},geoModifiedStereographic:function(){return ld},geoModifiedStereographicAlaska:function(){return sd},geoModifiedStereographicGs48:function(){return Mp},geoModifiedStereographicGs50:function(){return Xd},geoModifiedStereographicLee:function(){return mh},geoModifiedStereographicMiller:function(){return yf},geoModifiedStereographicRaw:function(){return Es},geoMollweide:function(){return ke},geoMollweideRaw:function(){return Oe},geoMtFlatPolarParabolic:function(){return Au},geoMtFlatPolarParabolicRaw:function(){return tf},geoMtFlatPolarQuartic:function(){return cd},geoMtFlatPolarQuarticRaw:function(){return xf},geoMtFlatPolarSinusoidal:function(){return gh},geoMtFlatPolarSinusoidalRaw:function(){return nf},geoNaturalEarth:function(){return rs.c},geoNaturalEarth2:function(){return Ep},geoNaturalEarth2Raw:function(){return ep},geoNaturalEarthRaw:function(){return rs.g},geoNellHammer:function(){return Pd},geoNellHammerRaw:function(){return vm},geoNicolosi:function(){return _f},geoNicolosiRaw:function(){return Pp},geoPatterson:function(){return Lp},geoPattersonRaw:function(){return Hu},geoPeirceQuincuncial:function(){return os},geoPierceQuincuncial:function(){return os},geoPolyconic:function(){return jh},geoPolyconicRaw:function(){return Uh},geoPolyhedral:function(){return ks},geoPolyhedralButterfly:function(){return yh},geoPolyhedralCollignon:function(){return Ip},geoPolyhedralWaterman:function(){return bm},geoProject:function(){return np},geoQuantize:function(){return af},geoQuincuncial:function(){return xh},geoRectangularPolyconic:function(){return sf},geoRectangularPolyconicRaw:function(){return Of},geoRobinson:function(){return pi},geoRobinsonRaw:function(){return Hi},geoSatellite:function(){return Ru},geoSatelliteRaw:function(){return Qh},geoSinuMollweide:function(){return co},geoSinuMollweideRaw:function(){return ao},geoSinusoidal:function(){return Ee},geoSinusoidalRaw:function(){return tt},geoStitch:function(){return Xi},geoTimes:function(){return jf},geoTimesRaw:function(){return Xc},geoTwoPointAzimuthal:function(){return Lu},geoTwoPointAzimuthalRaw:function(){return Dp},geoTwoPointAzimuthalUsa:function(){return rp},geoTwoPointEquidistant:function(){return fd},geoTwoPointEquidistantRaw:function(){return us},geoTwoPointEquidistantUsa:function(){return Qf},geoVanDerGrinten:function(){return _h},geoVanDerGrinten2:function(){return dd},geoVanDerGrinten2Raw:function(){return Gc},geoVanDerGrinten3:function(){return Dd},geoVanDerGrinten3Raw:function(){return rl},geoVanDerGrinten4:function(){return fa},geoVanDerGrinten4Raw:function(){return Vi},geoVanDerGrintenRaw:function(){return Hf},geoWagner:function(){return Zf},geoWagner4:function(){return kc},geoWagner4Raw:function(){return Qs},geoWagner6:function(){return Ea},geoWagner6Raw:function(){return Iu},geoWagner7:function(){return Zl},geoWagnerRaw:function(){return au},geoWiechel:function(){return _l},geoWiechelRaw:function(){return El},geoWinkel3:function(){return Sf},geoWinkel3Raw:function(){return Mi}});var c=n(87952),b=Math.abs,i=Math.atan,O=Math.atan2,w=Math.cos,y=Math.exp,p=Math.floor,a=Math.log,u=Math.max,h=Math.min,m=Math.pow,v=Math.round,_=Math.sign||function(Ot){return Ot>0?1:Ot<0?-1:0},S=Math.sin,A=Math.tan,x=1e-6,R=1e-12,M=Math.PI,T=M/2,E=M/4,C=Math.SQRT1_2,L=j(2),D=j(M),k=2*M,I=180/M,z=M/180;function $(Ot){return Ot>1?T:Ot<-1?-T:Math.asin(Ot)}function Q(Ot){return Ot>1?0:Ot<-1?M:Math.acos(Ot)}function j(Ot){return Ot>0?Math.sqrt(Ot):0}function U(Ot){return(y(Ot)-y(-Ot))/2}function X(Ot){return(y(Ot)+y(-Ot))/2}function te(Ot){var Mt=A(Ot/2),Ft=2*a(w(Ot/2))/(Mt*Mt);function J(le,ie){var V=w(le),ne=w(ie),ge=S(ie),xe=ne*V,Me=-((1-xe?a((1+xe)/2)/(1-xe):-.5)+Ft/(1+xe));return[Me*ne*S(le),Me*ge]}return J.invert=function(le,ie){var V,ne=j(le*le+ie*ie),ge=-Ot/2,xe=50;if(!ne)return[0,0];do{var Me=ge/2,Fe=w(Me),Je=S(Me),rt=Je/Fe,dt=-a(b(Fe));ge-=V=(2/rt*dt-Ft*rt-ne)/(-dt/(Je*Je)+1-Ft/(2*Fe*Fe))*(Fe<0?.7:1)}while(b(V)>x&&--xe>0);var mt=S(ge);return[O(le*mt,ne*w(ge)),$(ie*mt/ne)]},J}function W(){var Ot=T,Mt=(0,c.U)(te),Ft=Mt(Ot);return Ft.radius=function(J){return arguments.length?Mt(Ot=J*z):Ot*I},Ft.scale(179.976).clipAngle(147)}function K(Ot,Mt){var Ft=w(Mt),J=function(le){return le?le/Math.sin(le):1}(Q(Ft*w(Ot/=2)));return[2*Ft*S(Ot)*J,S(Mt)*J]}function oe(){return(0,c.c)(K).scale(152.63)}function q(Ot){var Mt=S(Ot),Ft=w(Ot),J=Ot>=0?1:-1,le=A(J*Ot),ie=(1+Mt-Ft)/2;function V(ne,ge){var xe=w(ge),Me=w(ne/=2);return[(1+xe)*S(ne),(J*ge>-O(Me,le)-.001?0:10*-J)+ie+S(ge)*Ft-(1+xe)*Mt*Me]}return V.invert=function(ne,ge){var xe=0,Me=0,Fe=50;do{var Je=w(xe),rt=S(xe),dt=w(Me),mt=S(Me),Et=1+dt,Vt=Et*rt-ne,jt=ie+mt*Ft-Et*Mt*Je-ge,Nt=Et*Je/2,cn=-rt*mt,sn=Mt*Et*rt/2,xn=Ft*dt+Mt*Je*mt,pn=cn*sn-xn*Nt,Ln=(jt*cn-Vt*xn)/pn/2,On=(Vt*sn-jt*Nt)/pn;b(On)>2&&(On/=2),xe-=Ln,Me-=On}while((b(Ln)>x||b(On)>x)&&--Fe>0);return J*Me>-O(w(xe),le)-.001?[2*xe,Me]:null},V}function Y(){var Ot=20*z,Mt=Ot>=0?1:-1,Ft=A(Mt*Ot),J=(0,c.U)(q),le=J(Ot),ie=le.stream;return le.parallel=function(V){return arguments.length?(Ft=A((Mt=(Ot=V*z)>=0?1:-1)*Ot),J(Ot)):Ot*I},le.stream=function(V){var ne=le.rotate(),ge=ie(V),xe=(le.rotate([0,0]),ie(V)),Me=le.precision();return le.rotate(ne),ge.sphere=function(){xe.polygonStart(),xe.lineStart();for(var Fe=-180*Mt;Mt*Fe<180;Fe+=90*Mt)xe.point(Fe,90*Mt);if(Ot)for(;Mt*(Fe-=3*Mt*Me)>=-180;)xe.point(Fe,Mt*-O(w(Fe*z/2),Ft)*I);xe.lineEnd(),xe.polygonEnd()},ge},le.scale(218.695).center([0,28.0974])}function ee(Ot,Mt){var Ft=A(Mt/2),J=j(1-Ft*Ft),le=1+J*w(Ot/=2),ie=S(Ot)*J/le,V=Ft/le,ne=ie*ie,ge=V*V;return[1.3333333333333333*ie*(3+ne-3*ge),1.3333333333333333*V*(3+3*ne-ge)]}function me(){return(0,c.c)(ee).scale(66.1603)}K.invert=function(Ot,Mt){if(!(Ot*Ot+4*Mt*Mt>M*M+x)){var Ft=Ot,J=Mt,le=25;do{var ie,V=S(Ft),ne=S(Ft/2),ge=w(Ft/2),xe=S(J),Me=w(J),Fe=S(2*J),Je=xe*xe,rt=Me*Me,dt=ne*ne,mt=1-rt*ge*ge,Et=mt?Q(Me*ge)*j(ie=1/mt):ie=0,Vt=2*Et*Me*ne-Ot,jt=Et*xe-Mt,Nt=ie*(rt*dt+Et*Me*ge*Je),cn=ie*(.5*V*Fe-2*Et*xe*ne),sn=.25*ie*(Fe*ne-Et*xe*rt*V),xn=ie*(Je*ge+Et*dt*Me),pn=cn*sn-xn*Nt;if(!pn)break;var Ln=(jt*cn-Vt*xn)/pn,On=(Vt*sn-jt*Nt)/pn;Ft-=Ln,J-=On}while((b(Ln)>x||b(On)>x)&&--le>0);return[Ft,J]}},ee.invert=function(Ot,Mt){if(Mt*=.375,!(Ot*=.375)&&b(Mt)>1)return null;var Ft=1+Ot*Ot+Mt*Mt,J=j((Ft-j(Ft*Ft-4*Mt*Mt))/2),le=$(J)/3,ie=J?function(xe){return a(xe+j(xe*xe-1))}(b(Mt/J))/3:function(xe){return a(xe+j(xe*xe+1))}(b(Ot))/3,V=w(le),ne=X(ie),ge=ne*ne-V*V;return[2*_(Ot)*O(U(ie)*V,.25-ge),2*_(Mt)*O(ne*S(le),.25+ge)]};var he=j(8),se=a(1+L);function ae(Ot,Mt){var Ft=b(Mt);return FtR&&--ie>0);return[Ot/(w(le)*(he-1/S(le))),_(Mt)*le]};var de=n(69020);function ve(Ot){var Mt=2*M/Ot;function Ft(J,le){var ie=(0,de.O)(J,le);if(b(J)>T){var V=O(ie[1],ie[0]),ne=j(ie[0]*ie[0]+ie[1]*ie[1]),ge=Mt*v((V-T)/Mt)+T,xe=O(S(V-=ge),2-w(V));V=ge+$(M/ne*S(xe))-xe,ie[0]=ne*w(V),ie[1]=ne*S(V)}return ie}return Ft.invert=function(J,le){var ie=j(J*J+le*le);if(ie>T){var V=O(le,J),ne=Mt*v((V-T)/Mt)+T,ge=V>ne?-1:1,xe=ie*w(ne-V),Me=1/A(ge*Q((xe-M)/j(M*(M-2*xe)+ie*ie)));V=ne+2*i((Me+ge*j(Me*Me-3))/3),J=ie*w(V),le=ie*S(V)}return de.O.invert(J,le)},Ft}function ye(){var Ot=5,Mt=(0,c.U)(ve),Ft=Mt(Ot),J=Ft.stream,le=.01,ie=-w(le*z),V=S(le*z);return Ft.lobes=function(ne){return arguments.length?Mt(Ot=+ne):Ot},Ft.stream=function(ne){var ge=Ft.rotate(),xe=J(ne),Me=(Ft.rotate([0,0]),J(ne));return Ft.rotate(ge),xe.sphere=function(){Me.polygonStart(),Me.lineStart();for(var Fe=0,Je=360/Ot,rt=2*M/Ot,dt=90-180/Ot,mt=T;Fe0&&b(J)>x);return V<0?NaN:Ft}function ze(Ot,Mt,Ft){return Mt===void 0&&(Mt=40),Ft===void 0&&(Ft=R),function(J,le,ie,V){var ne,ge,xe;ie=ie===void 0?0:+ie,V=V===void 0?0:+V;for(var Me=0;Mene)ie-=ge/=2,V-=xe/=2;else{ne=dt;var mt=(ie>0?-1:1)*Ft,Et=(V>0?-1:1)*Ft,Vt=Ot(ie+mt,V),jt=Ot(ie,V+Et),Nt=(Vt[0]-Fe[0])/mt,cn=(Vt[1]-Fe[1])/mt,sn=(jt[0]-Fe[0])/Et,xn=(jt[1]-Fe[1])/Et,pn=xn*Nt-cn*sn,Ln=(b(pn)<.5?.5:1)/pn;if(ie+=ge=(rt*sn-Je*xn)*Ln,V+=xe=(Je*cn-rt*Nt)*Ln,b(ge)0&&(ie[1]*=1+V/1.5*ie[0]*ie[0]),ie}return Mt.invert=ze(Mt),Mt}function He(){return(0,c.c)(De()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Ve(Ot,Mt){var Ft,J=Ot*S(Mt),le=30;do Mt-=Ft=(Mt+S(Mt)-J)/(1+w(Mt));while(b(Ft)>x&&--le>0);return Mt/2}function $e(Ot,Mt,Ft){function J(le,ie){return[Ot*le*w(ie=Ve(Ft,ie)),Mt*S(ie)]}return J.invert=function(le,ie){return ie=$(ie/Mt),[le/(Ot*w(ie)),$((2*ie+S(2*ie))/Ft)]},J}Te.invert=function(Ot,Mt){var Ft=2*$(Mt/2);return[Ot*w(Ft/2)/w(Ft),Ft]};var Oe=$e(L/T,L,M);function ke(){return(0,c.c)(Oe).scale(169.529)}var Le=2.00276,We=1.11072;function Ue(Ot,Mt){var Ft=Ve(M,Mt);return[Le*Ot/(1/w(Mt)+We/w(Ft)),(Mt+L*S(Ft))/Le]}function Ze(){return(0,c.c)(Ue).scale(160.857)}function Xe(Ot){var Mt=0,Ft=(0,c.U)(Ot),J=Ft(Mt);return J.parallel=function(le){return arguments.length?Ft(Mt=le*z):Mt*I},J}function tt(Ot,Mt){return[Ot*w(Mt),Mt]}function Ee(){return(0,c.c)(tt).scale(152.63)}function Ne(Ot){if(!Ot)return tt;var Mt=1/A(Ot);function Ft(J,le){var ie=Mt+Ot-le,V=ie&&J*w(le)/ie;return[ie*S(V),Mt-ie*w(V)]}return Ft.invert=function(J,le){var ie=j(J*J+(le=Mt-le)*le),V=Mt+Ot-ie;return[ie/w(V)*O(J,le),V]},Ft}function je(){return Xe(Ne).scale(123.082).center([0,26.1441]).parallel(45)}function nt(Ot){function Mt(Ft,J){var le=T-J,ie=le&&Ft*Ot*S(le)/le;return[le*S(ie)/Ot,T-le*w(ie)]}return Mt.invert=function(Ft,J){var le=Ft*Ot,ie=T-J,V=j(le*le+ie*ie),ne=O(le,ie);return[(V?V/S(V):1)*ne/Ot,T-V]},Mt}function ot(){var Ot=.5,Mt=(0,c.U)(nt),Ft=Mt(Ot);return Ft.fraction=function(J){return arguments.length?Mt(Ot=+J):Ot},Ft.scale(158.837)}Ue.invert=function(Ot,Mt){var Ft,J,le=Le*Mt,ie=Mt<0?-E:E,V=25;do J=le-L*S(ie),ie-=Ft=(S(2*ie)+2*ie-M*S(J))/(2*w(2*ie)+2+M*w(J)*L*w(ie));while(b(Ft)>x&&--V>0);return J=le-L*S(ie),[Ot*(1/w(J)+We/w(ie))/Le,J]},tt.invert=function(Ot,Mt){return[Ot/w(Mt),Mt]};var Ge=$e(1,4/M,M);function ht(){return(0,c.c)(Ge).scale(152.63)}var pt=n(24052),wt=n(92992);function Dt(Ot,Mt,Ft,J,le,ie){var V,ne=w(ie);if(b(Ot)>1||b(ie)>1)V=Q(Ft*le+Mt*J*ne);else{var ge=S(Ot/2),xe=S(ie/2);V=2*$(j(ge*ge+Mt*J*xe*xe))}return b(V)>x?[V,O(J*S(ie),Mt*le-Ft*J*ne)]:[0,0]}function It(Ot,Mt,Ft){return Q((Ot*Ot+Mt*Mt-Ft*Ft)/(2*Ot*Mt))}function qt(Ot){return Ot-2*M*p((Ot+M)/(2*M))}function en(Ot,Mt,Ft){for(var J,le=[[Ot[0],Ot[1],S(Ot[1]),w(Ot[1])],[Mt[0],Mt[1],S(Mt[1]),w(Mt[1])],[Ft[0],Ft[1],S(Ft[1]),w(Ft[1])]],ie=le[2],V=0;V<3;++V,ie=J)J=le[V],ie.v=Dt(J[1]-ie[1],ie[3],ie[2],J[3],J[2],J[0]-ie[0]),ie.point=[0,0];var ne=It(le[0].v[0],le[2].v[0],le[1].v[0]),ge=It(le[0].v[0],le[1].v[0],le[2].v[0]),xe=M-ne;le[2].point[1]=0,le[0].point[0]=-(le[1].point[0]=le[0].v[0]/2);var Me=[le[2].point[0]=le[0].point[0]+le[2].v[0]*w(ne),2*(le[0].point[1]=le[1].point[1]=le[2].v[0]*S(ne))];return function(Fe,Je){var rt,dt=S(Je),mt=w(Je),Et=new Array(3);for(rt=0;rt<3;++rt){var Vt=le[rt];if(Et[rt]=Dt(Je-Vt[1],Vt[3],Vt[2],mt,dt,Fe-Vt[0]),!Et[rt][0])return Vt.point;Et[rt][1]=qt(Et[rt][1]-Vt.v[1])}var jt=Me.slice();for(rt=0;rt<3;++rt){var Nt=rt==2?0:rt+1,cn=It(le[rt].v[0],Et[rt][0],Et[Nt][0]);Et[rt][1]<0&&(cn=-cn),rt?rt==1?(cn=ge-cn,jt[0]-=Et[rt][0]*w(cn),jt[1]-=Et[rt][0]*S(cn)):(cn=xe-cn,jt[0]+=Et[rt][0]*w(cn),jt[1]+=Et[rt][0]*S(cn)):(jt[0]+=Et[rt][0]*w(cn),jt[1]-=Et[rt][0]*S(cn))}return jt[0]/=3,jt[1]/=3,jt}}function Gt(Ot){return Ot[0]*=z,Ot[1]*=z,Ot}function Ct(){return _t([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function _t(Ot,Mt,Ft){var J=(0,pt.c)({type:"MultiPoint",coordinates:[Ot,Mt,Ft]}),le=[-J[0],-J[1]],ie=(0,wt.c)(le),V=en(Gt(ie(Ot)),Gt(ie(Mt)),Gt(ie(Ft)));V.invert=ze(V);var ne=(0,c.c)(V).rotate(le),ge=ne.center;return delete ne.rotate,ne.center=function(xe){return arguments.length?ge(ie(xe)):ie.invert(ge())},ne.clipAngle(90)}function nn(Ot,Mt){var Ft=j(1-S(Mt));return[2/D*Ot*Ft,D*(1-Ft)]}function gn(){return(0,c.c)(nn).scale(95.6464).center([0,30])}function bn(Ot){var Mt=A(Ot);function Ft(J,le){return[J,(J?J/S(J):1)*(S(le)*w(J)-Mt*w(le))]}return Ft.invert=Mt?function(J,le){J&&(le*=S(J)/J);var ie=w(J);return[J,2*O(j(ie*ie+Mt*Mt-le*le)-ie,Mt-le)]}:function(J,le){return[J,$(J?le*A(J)/J:le)]},Ft}function mn(){return Xe(bn).scale(249.828).clipAngle(90)}nn.invert=function(Ot,Mt){var Ft=(Ft=Mt/D-1)*Ft;return[Ft>0?Ot*j(M/Ft)/2:0,$(1-Ft)]};var vt=j(3);function bt(Ot,Mt){return[vt*Ot*(2*w(2*Mt/3)-1)/D,vt*D*S(Mt/3)]}function lt(){return(0,c.c)(bt).scale(156.19)}function yt(Ot){var Mt=w(Ot);function Ft(J,le){return[J*Mt,S(le)/Mt]}return Ft.invert=function(J,le){return[J/Mt,$(le*Mt)]},Ft}function zt(){return Xe(yt).parallel(38.58).scale(195.044)}function Rt(Ot){var Mt=w(Ot);function Ft(J,le){return[J*Mt,(1+Mt)*A(le/2)]}return Ft.invert=function(J,le){return[J/Mt,2*i(le/(1+Mt))]},Ft}function it(){return Xe(Rt).scale(124.75)}function at(Ot,Mt){var Ft=j(8/(3*M));return[Ft*Ot*(1-b(Mt)/M),Ft*Mt]}function Lt(){return(0,c.c)(at).scale(165.664)}function xt(Ot,Mt){var Ft=j(4-3*S(b(Mt)));return[2/j(6*M)*Ot*Ft,_(Mt)*j(2*M/3)*(2-Ft)]}function Ht(){return(0,c.c)(xt).scale(165.664)}function Xt(Ot,Mt){var Ft=j(M*(4+M));return[2/Ft*Ot*(1+j(1-4*Mt*Mt/(M*M))),4/Ft*Mt]}function Yt(){return(0,c.c)(Xt).scale(180.739)}function Qt(Ot,Mt){var Ft=(2+T)*S(Mt);Mt/=2;for(var J=0,le=1/0;J<10&&b(le)>x;J++){var ie=w(Mt);Mt-=le=(Mt+S(Mt)*(ie+2)-Ft)/(2*ie*(1+ie))}return[2/j(M*(4+M))*Ot*(1+w(Mt)),2*j(M/(4+M))*S(Mt)]}function Pt(){return(0,c.c)(Qt).scale(180.739)}function tn(Ot,Mt){return[Ot*(1+w(Mt))/j(2+M),2*Mt/j(2+M)]}function Kt(){return(0,c.c)(tn).scale(173.044)}function fn(Ot,Mt){for(var Ft=(1+T)*S(Mt),J=0,le=1/0;J<10&&b(le)>x;J++)Mt-=le=(Mt+S(Mt)-Ft)/(1+w(Mt));return Ft=j(2+M),[Ot*(1+w(Mt))/Ft,2*Mt/Ft]}function dn(){return(0,c.c)(fn).scale(173.044)}bt.invert=function(Ot,Mt){var Ft=3*$(Mt/(vt*D));return[D*Ot/(vt*(2*w(2*Ft/3)-1)),Ft]},at.invert=function(Ot,Mt){var Ft=j(8/(3*M)),J=Mt/Ft;return[Ot/(Ft*(1-b(J)/M)),J]},xt.invert=function(Ot,Mt){var Ft=2-b(Mt)/j(2*M/3);return[Ot*j(6*M)/(2*Ft),_(Mt)*$((4-Ft*Ft)/3)]},Xt.invert=function(Ot,Mt){var Ft=j(M*(4+M))/2;return[Ot*Ft/(1+j(1-Mt*Mt*(4+M)/(4*M))),Mt*Ft/2]},Qt.invert=function(Ot,Mt){var Ft=Mt*j((4+M)/M)/2,J=$(Ft),le=w(J);return[Ot/(2/j(M*(4+M))*(1+le)),$((J+Ft*(le+2))/(2+T))]},tn.invert=function(Ot,Mt){var Ft=j(2+M),J=Mt*Ft/2;return[Ft*Ot/(1+w(J)),J]},fn.invert=function(Ot,Mt){var Ft=1+T,J=j(Ft/2);return[2*Ot*J/(1+w(Mt*=J)),$((Mt+S(Mt))/Ft)]};var vn=3+2*L;function Nn(Ot,Mt){var Ft=S(Ot/=2),J=w(Ot),le=j(w(Mt)),ie=w(Mt/=2),V=S(Mt)/(ie+L*J*le),ne=j(2/(1+V*V)),ge=j((L*ie+(J+Ft)*le)/(L*ie+(J-Ft)*le));return[vn*(ne*(ge-1/ge)-2*a(ge)),vn*(ne*V*(ge+1/ge)-2*i(V))]}function er(){return(0,c.c)(Nn).scale(62.5271)}Nn.invert=function(Ot,Mt){if(!(Ft=ee.invert(Ot/1.2,1.065*Mt)))return null;var Ft,J=Ft[0],le=Ft[1],ie=20;Ot/=vn,Mt/=vn;do{var V=J/2,ne=le/2,ge=S(V),xe=w(V),Me=S(ne),Fe=w(ne),Je=w(le),rt=j(Je),dt=Me/(Fe+L*xe*rt),mt=dt*dt,Et=j(2/(1+mt)),Vt=(L*Fe+(xe+ge)*rt)/(L*Fe+(xe-ge)*rt),jt=j(Vt),Nt=jt-1/jt,cn=jt+1/jt,sn=Et*Nt-2*a(jt)-Ot,xn=Et*dt*cn-2*i(dt)-Mt,pn=Me&&C*rt*ge*mt/Me,Ln=(L*xe*Fe+rt)/(2*(Fe+L*xe*rt)*(Fe+L*xe*rt)*rt),On=-.5*dt*Et*Et*Et,An=On*pn,Sn=On*Ln,rr=(rr=2*Fe+L*rt*(xe-ge))*rr*jt,Dr=(L*xe*Fe*rt+Je)/rr,Pr=-L*ge*Me/(rt*rr),Zr=Nt*An-2*Dr/jt+Et*(Dr+Dr/Vt),Mo=Nt*Sn-2*Pr/jt+Et*(Pr+Pr/Vt),$o=dt*cn*An-2*pn/(1+mt)+Et*cn*pn+Et*dt*(Dr-Dr/Vt),vo=dt*cn*Sn-2*Ln/(1+mt)+Et*cn*Ln+Et*dt*(Pr-Pr/Vt),zo=Mo*$o-vo*Zr;if(!zo)break;var yi=(xn*Mo-sn*vo)/zo,Si=(sn*$o-xn*Zr)/zo;J-=yi,le=u(-T,h(T,le-Si))}while((b(yi)>x||b(Si)>x)&&--ie>0);return b(b(le)-T)J){var Fe=j(Me),Je=O(xe,ge),rt=Ft*v(Je/Ft),dt=Je-rt,mt=Ot*w(dt),Et=(Ot*S(dt)-dt*S(mt))/(T-mt),Vt=Fr(dt,Et),jt=(M-Ot)/Rr(Vt,mt,M);ge=Fe;var Nt,cn=50;do ge-=Nt=(Ot+Rr(Vt,mt,ge)*jt-Fe)/(Vt(ge)*jt);while(b(Nt)>x&&--cn>0);xe=dt*S(ge),geJ){var ge=j(ne),xe=O(V,ie),Me=Ft*v(xe/Ft),Fe=xe-Me;ie=ge*w(Fe),V=ge*S(Fe);for(var Je=ie-T,rt=S(ie),dt=V/rt,mt=iex||b(Je)>x)&&--mt>0);return[rt,dt]},ge}var Co=Kr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function so(){return(0,c.c)(Co).scale(149.995)}var So=Kr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function go(){return(0,c.c)(So).scale(153.93)}var li=Kr(5/6*M,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Pn(){return(0,c.c)(li).scale(130.945)}function Yn(Ot,Mt){var Ft=Ot*Ot,J=Mt*Mt;return[Ot*(1-.162388*J)*(.87-952426e-9*Ft*Ft),Mt*(1+J/12)]}function br(){return(0,c.c)(Yn).scale(131.747)}Yn.invert=function(Ot,Mt){var Ft,J=Ot,le=Mt,ie=50;do{var V=le*le;le-=Ft=(le*(1+V/12)-Mt)/(1+V/4)}while(b(Ft)>x&&--ie>0);ie=50,Ot/=1-.162388*V;do{var ne=(ne=J*J)*ne;J-=Ft=(J*(.87-952426e-9*ne)-Ot)/(.87-.00476213*ne)}while(b(Ft)>x&&--ie>0);return[J,le]};var dr=Kr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Cr(){return(0,c.c)(dr).scale(131.087)}function io(Ot){var Mt=Ot(T,0)[0]-Ot(-T,0)[0];function Ft(J,le){var ie=J>0?-.5:.5,V=Ot(J+ie*M,le);return V[0]-=ie*Mt,V}return Ot.invert&&(Ft.invert=function(J,le){var ie=J>0?-.5:.5,V=Ot.invert(J+ie*Mt,le),ne=V[0]-ie*M;return ne<-M?ne+=2*M:ne>M&&(ne-=2*M),V[0]=ne,V}),Ft}function Qr(Ot,Mt){var Ft=_(Ot),J=_(Mt),le=w(Mt),ie=w(Ot)*le,V=S(Ot)*le,ne=S(J*Mt);Ot=b(O(V,ne)),Mt=$(ie),b(Ot-T)>x&&(Ot%=T);var ge=function(xe,Me){if(Me===T)return[0,0];var Fe,Je,rt=S(Me),dt=rt*rt,mt=dt*dt,Et=1+mt,Vt=1+3*mt,jt=1-mt,Nt=$(1/j(Et)),cn=jt+dt*Et*Nt,sn=(1-rt)/cn,xn=j(sn),pn=sn*Et,Ln=j(pn),On=xn*jt;if(xe===0)return[0,-(On+dt*Ln)];var An,Sn=w(Me),rr=1/Sn,Dr=2*rt*Sn,Pr=(-cn*Sn-(1-rt)*((-3*dt+Nt*Vt)*Dr))/(cn*cn),Zr=-rr*Dr,Mo=-rr*(dt*Et*Pr+sn*Vt*Dr),$o=-2*rr*(jt*(.5*Pr/xn)-2*dt*xn*Dr),vo=4*xe/M;if(xe>.222*M||Me.175*M){if(Fe=(On+dt*j(pn*(1+mt)-On*On))/(1+mt),xe>M/4)return[Fe,Fe];var zo=Fe,yi=.5*Fe;Fe=.5*(yi+zo),Je=50;do{var Si=Fe*($o+Zr*j(pn-Fe*Fe))+Mo*$(Fe/Ln)-vo;if(!Si)break;Si<0?yi=Fe:zo=Fe,Fe=.5*(yi+zo)}while(b(zo-yi)>x&&--Je>0)}else{Fe=x,Je=25;do{var Hr=Fe*Fe,Lo=j(pn-Hr),ki=$o+Zr*Lo,Io=Fe*ki+Mo*$(Fe/Ln)-vo;Fe-=An=Lo?Io/(ki+(Mo-Zr*Hr)/Lo):0}while(b(An)>x&&--Je>0)}return[Fe,-On-dt*j(pn-Fe*Fe)]}(Ot>M/4?T-Ot:Ot,Mt);return Ot>M/4&&(ne=ge[0],ge[0]=-ge[1],ge[1]=-ne),ge[0]*=Ft,ge[1]*=-J,ge}function Wr(){return(0,c.c)(io(Qr)).scale(239.75)}function bo(Ot,Mt){var Ft,J,le,ie,V,ne;if(Mt=1-x)return Ft=(1-Mt)/4,le=1/(J=X(Ot)),[(ie=((ne=y(2*(ne=Ot)))-1)/(ne+1))+Ft*((V=J*U(Ot))-Ot)/(J*J),le-Ft*ie*le*(V-Ot),le+Ft*ie*le*(V+Ot),2*i(y(Ot))-T+Ft*(V-Ot)/J];var ge=[1,0,0,0,0,0,0,0,0],xe=[j(Mt),0,0,0,0,0,0,0,0],Me=0;for(J=j(1-Mt),V=1;b(xe[Me]/ge[Me])>x&&Me<8;)Ft=ge[Me++],xe[Me]=(Ft-J)/2,ge[Me]=(Ft+J)/2,J=j(Ft*J),V*=2;le=V*ge[Me]*Ot;do le=($(ie=xe[Me]*S(J=le)/ge[Me])+le)/2;while(--Me);return[S(le),ie=w(le),ie/w(le-J),le]}function Bn(Ot,Mt){if(!Mt)return Ot;if(Mt===1)return a(A(Ot/2+E));for(var Ft=1,J=j(1-Mt),le=j(Mt),ie=0;b(le)>x;ie++){if(Ot%M){var V=i(J*A(Ot)/Ft);V<0&&(V+=M),Ot+=V+~~(Ot/M)*M}else Ot+=Ot;le=(Ft+J)/2,J=j(Ft*J),le=((Ft=le)-J)/2}return Ot/(m(2,ie)*Ft)}function hr(Ot,Mt){var Ft=(L-1)/(L+1),J=j(1-Ft*Ft),le=Bn(T,J*J),ie=a(A(M/4+b(Mt)/2)),V=y(-1*ie)/j(Ft),ne=function(xe,Me){var Fe=xe*xe,Je=Me+1,rt=1-Fe-Me*Me;return[.5*((xe>=0?T:-T)-O(rt,2*xe)),-.25*a(rt*rt+4*Fe)+.5*a(Je*Je+Fe)]}(V*w(-1*Ot),V*S(-1*Ot)),ge=function(xe,Me,Fe){var Je=b(xe),rt=U(b(Me));if(Je){var dt=1/S(Je),mt=1/(A(Je)*A(Je)),Et=-(mt+Fe*(rt*rt*dt*dt)-1+Fe),Vt=(-Et+j(Et*Et-(Fe-1)*mt*4))/2;return[Bn(i(1/j(Vt)),Fe)*_(xe),Bn(i(j((Vt/mt-1)/Fe)),1-Fe)*_(Me)]}return[0,Bn(i(rt),1-Fe)*_(Me)]}(ne[0],ne[1],J*J);return[-ge[1],(Mt>=0?1:-1)*(.5*le-ge[0])]}function hn(){return(0,c.c)(io(hr)).scale(151.496)}Qr.invert=function(Ot,Mt){b(Ot)>1&&(Ot=2*_(Ot)-Ot),b(Mt)>1&&(Mt=2*_(Mt)-Mt);var Ft=_(Ot),J=_(Mt),le=-Ft*Ot,ie=-J*Mt,V=ie/le<1,ne=function(Fe,Je){for(var rt=0,dt=1,mt=.5,Et=50;;){var Vt=mt*mt,jt=j(mt),Nt=$(1/j(1+Vt)),cn=1-Vt+mt*(1+Vt)*Nt,sn=(1-jt)/cn,xn=j(sn),pn=sn*(1+Vt),Ln=xn*(1-Vt),On=j(pn-Fe*Fe),An=Je+Ln+mt*On;if(b(dt-rt)0?rt=mt:dt=mt,mt=.5*(rt+dt)}if(!Et)return null;var Sn=$(jt),rr=w(Sn),Dr=1/rr,Pr=2*jt*rr,Zr=(-cn*rr-(-3*mt+Nt*(1+3*Vt))*Pr*(1-jt))/(cn*cn);return[M/4*(Fe*(-2*Dr*((1-Vt)*(.5*Zr/xn)-2*mt*xn*Pr)+-Dr*Pr*On)+-Dr*(mt*(1+Vt)*Zr+sn*(1+3*Vt)*Pr)*$(Fe/j(pn))),Sn]}(V?ie:le,V?le:ie),ge=ne[0],xe=ne[1],Me=w(xe);return V&&(ge=-T-ge),[Ft*(O(S(ge)*Me,-S(xe))+M),J*$(w(ge)*Me)]},hr.invert=function(Ot,Mt){var Ft,J,le,ie,V,ne,ge=(L-1)/(L+1),xe=j(1-ge*ge),Me=(J=-Ot,le=xe*xe,(Ft=.5*Bn(T,xe*xe)-Mt)?(ie=bo(Ft,le),J?(ne=(V=bo(J,1-le))[1]*V[1]+le*ie[0]*ie[0]*V[0]*V[0],[[ie[0]*V[2]/ne,ie[1]*ie[2]*V[0]*V[1]/ne],[ie[1]*V[1]/ne,-ie[0]*ie[2]*V[0]*V[2]/ne],[ie[2]*V[1]*V[2]/ne,-le*ie[0]*ie[1]*V[0]/ne]]):[[ie[0],0],[ie[1],0],[ie[2],0]]):[[0,(V=bo(J,1-le))[0]/V[1]],[1/V[1],0],[V[2]/V[1],0]]),Fe=function(Je,rt){var dt=rt[0]*rt[0]+rt[1]*rt[1];return[(Je[0]*rt[0]+Je[1]*rt[1])/dt,(Je[1]*rt[0]-Je[0]*rt[1])/dt]}(Me[0],Me[1]);return[O(Fe[1],Fe[0])/-1,2*i(y(-.5*a(ge*Fe[0]*Fe[0]+ge*Fe[1]*Fe[1])))-T]};var zn=n(61780);function Zn(Ot){var Mt=S(Ot),Ft=w(Ot),J=yr(Ot);function le(ie,V){var ne=J(ie,V);ie=ne[0],V=ne[1];var ge=S(V),xe=w(V),Me=w(ie),Fe=Q(Mt*ge+Ft*xe*Me),Je=S(Fe),rt=b(Je)>x?Fe/Je:1;return[rt*Ft*S(ie),(b(ie)>T?rt:-rt)*(Mt*xe-Ft*ge*Me)]}return J.invert=yr(-Ot),le.invert=function(ie,V){var ne=j(ie*ie+V*V),ge=-S(ne),xe=w(ne),Me=ne*xe,Fe=-V*ge,Je=ne*Mt,rt=j(Me*Me+Fe*Fe-Je*Je),dt=O(Me*Je+Fe*rt,Fe*Je-Me*rt),mt=(ne>T?-1:1)*O(ie*ge,ne*w(dt)*xe+V*S(dt)*ge);return J.invert(mt,dt)},le}function yr(Ot){var Mt=S(Ot),Ft=w(Ot);return function(J,le){var ie=w(le),V=w(J)*ie,ne=S(J)*ie,ge=S(le);return[O(ne,V*Ft-ge*Mt),$(ge*Ft+V*Mt)]}}function gr(){var Ot=0,Mt=(0,c.U)(Zn),Ft=Mt(Ot),J=Ft.rotate,le=Ft.stream,ie=(0,zn.c)();return Ft.parallel=function(V){if(!arguments.length)return Ot*I;var ne=Ft.rotate();return Mt(Ot=V*z).rotate(ne)},Ft.rotate=function(V){return arguments.length?(J.call(Ft,[V[0],V[1]-Ot*I]),ie.center([-V[0],-V[1]]),Ft):((V=J.call(Ft))[1]+=Ot*I,V)},Ft.stream=function(V){return(V=le(V)).sphere=function(){V.polygonStart();var ne,ge=ie.radius(89.99)().coordinates[0],xe=ge.length-1,Me=-1;for(V.lineStart();++Me=0;)V.point((ne=ge[Me])[0],ne[1]);V.lineEnd(),V.polygonEnd()},V},Ft.scale(79.4187).parallel(45).clipAngle(179.999)}var vr=n(84706),nr=n(16016),Qn=$(1-1/3)*I,Hn=yt(0);function tr(Ot){var Mt=Qn*z,Ft=nn(M,Mt)[0]-nn(-M,Mt)[0],J=Hn(0,Mt)[1],le=nn(0,Mt)[1],ie=D-le,V=k/Ot,ne=4/k,ge=J+ie*ie*4/k;function xe(Me,Fe){var Je,rt=b(Fe);if(rt>Mt){var dt=h(Ot-1,u(0,p((Me+M)/V)));(Je=nn(Me+=M*(Ot-1)/Ot-dt*V,rt))[0]=Je[0]*k/Ft-k*(Ot-1)/(2*Ot)+dt*k/Ot,Je[1]=J+4*(Je[1]-le)*ie/k,Fe<0&&(Je[1]=-Je[1])}else Je=Hn(Me,Fe);return Je[0]*=ne,Je[1]/=ge,Je}return xe.invert=function(Me,Fe){Me/=ne;var Je=b(Fe*=ge);if(Je>J){var rt=h(Ot-1,u(0,p((Me+M)/V)));Me=(Me+M*(Ot-1)/Ot-rt*V)*Ft/k;var dt=nn.invert(Me,.25*(Je-J)*k/ie+le);return dt[0]-=M*(Ot-1)/Ot-rt*V,Fe<0&&(dt[1]=-dt[1]),dt}return Hn.invert(Me,Fe)},xe}function cr(Ot,Mt){return[Ot,1&Mt?90-x:Qn]}function Lr(Ot,Mt){return[Ot,1&Mt?-90+x:-Qn]}function Er(Ot){return[Ot[0]*(1-x),Ot[1]]}function Vr(){var Ot=4,Mt=(0,c.U)(tr),Ft=Mt(Ot),J=Ft.stream;return Ft.lobes=function(le){return arguments.length?Mt(Ot=+le):Ot},Ft.stream=function(le){var ie=Ft.rotate(),V=J(le),ne=(Ft.rotate([0,0]),J(le));return Ft.rotate(ie),V.sphere=function(){var ge,xe;(0,nr.c)((ge=180/Ot,xe=[].concat((0,vr.ik)(-180,180+ge/2,ge).map(cr),(0,vr.ik)(180,-180-ge/2,-ge).map(Lr)),{type:"Polygon",coordinates:[ge===180?xe.map(Er):xe]}),ne)},V},Ft.scale(239.75)}function to(Ot){var Mt,Ft=1+Ot,J=$(S(1/Ft)),le=2*j(M/(Mt=M+4*J*Ft)),ie=.5*le*(Ft+j(Ot*(2+Ot))),V=Ot*Ot,ne=Ft*Ft;function ge(xe,Me){var Fe,Je,rt=1-S(Me);if(rt&&rt<2){var dt,mt=T-Me,Et=25;do{var Vt=S(mt),jt=w(mt),Nt=J+O(Vt,Ft-jt),cn=1+ne-2*Ft*jt;mt-=dt=(mt-V*J-Ft*Vt+cn*Nt-.5*rt*Mt)/(2*Ft*Vt*Nt)}while(b(dt)>R&&--Et>0);Fe=le*j(cn),Je=xe*Nt/M}else Fe=le*(Ot+rt),Je=xe*J/M;return[Fe*S(Je),ie-Fe*w(Je)]}return ge.invert=function(xe,Me){var Fe=xe*xe+(Me-=ie)*Me,Je=(1+ne-Fe/(le*le))/(2*Ft),rt=Q(Je),dt=S(rt),mt=J+O(dt,Ft-Je);return[$(xe/j(Fe))*M/mt,$(1-2*(rt-V*J-Ft*dt+(1+ne-2*Ft*Je)*mt)/Mt)]},ge}function _o(){var Ot=1,Mt=(0,c.U)(to),Ft=Mt(Ot);return Ft.ratio=function(J){return arguments.length?Mt(Ot=+J):Ot},Ft.scale(167.774).center([0,18.67])}var fr=.7109889596207567,Eo=.0528035274542;function ao(Ot,Mt){return Mt>-fr?((Ot=Oe(Ot,Mt))[1]+=Eo,Ot):tt(Ot,Mt)}function co(){return(0,c.c)(ao).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Go(Ot,Mt){return b(Mt)>fr?((Ot=Oe(Ot,Mt))[1]-=Mt>0?Eo:-Eo,Ot):tt(Ot,Mt)}function po(){return(0,c.c)(Go).scale(152.63)}function qo(Ot,Mt,Ft,J){var le=j(4*M/(2*Ft+(1+Ot-Mt/2)*S(2*Ft)+(Ot+Mt)/2*S(4*Ft)+Mt/2*S(6*Ft))),ie=j(J*S(Ft)*j((1+Ot*w(2*Ft)+Mt*w(4*Ft))/(1+Ot+Mt))),V=Ft*ge(1);function ne(Fe){return j(1+Ot*w(2*Fe)+Mt*w(4*Fe))}function ge(Fe){var Je=Fe*Ft;return(2*Je+(1+Ot-Mt/2)*S(2*Je)+(Ot+Mt)/2*S(4*Je)+Mt/2*S(6*Je))/Ft}function xe(Fe){return ne(Fe)*S(Fe)}var Me=function(Fe,Je){var rt=Ft*Ie(ge,V*S(Je)/Ft,Je/M);isNaN(rt)&&(rt=Ft*_(Je));var dt=le*ne(rt);return[dt*ie*Fe/M*w(rt),dt/ie*S(rt)]};return Me.invert=function(Fe,Je){var rt=Ie(xe,Je*ie/le);return[Fe*M/(w(rt)*le*ie*ne(rt)),$(Ft*ge(rt/Ft)/V)]},Ft===0&&(le=j(J/M),(Me=function(Fe,Je){return[Fe*le,S(Je)/le]}).invert=function(Fe,Je){return[Fe/le,$(Je*le)]}),Me}function Ao(){var Ot=1,Mt=0,Ft=45*z,J=2,le=(0,c.U)(qo),ie=le(Ot,Mt,Ft,J);return ie.a=function(V){return arguments.length?le(Ot=+V,Mt,Ft,J):Ot},ie.b=function(V){return arguments.length?le(Ot,Mt=+V,Ft,J):Mt},ie.psiMax=function(V){return arguments.length?le(Ot,Mt,Ft=+V*z,J):Ft*I},ie.ratio=function(V){return arguments.length?le(Ot,Mt,Ft,J=+V):J},ie.scale(180.739)}function oi(Ot,Mt,Ft,J,le,ie,V,ne,ge,xe,Me){if(Me.nanEncountered)return NaN;var Fe,Je,rt,dt,mt,Et,Vt,jt,Nt,cn;if(Je=Ot(Mt+.25*(Fe=Ft-Mt)),rt=Ot(Ft-.25*Fe),isNaN(Je))Me.nanEncountered=!0;else{if(!isNaN(rt))return cn=((Et=(dt=Fe*(J+4*Je+le)/12)+(mt=Fe*(le+4*rt+ie)/12))-V)/15,xe>ge?(Me.maxDepthCount++,Et+cn):Math.abs(cn)rt?mt=Et:dt=Et,Et=dt+mt>>1;while(Et>dt);var Vt=ge[Et+1]-ge[Et];return Vt&&(Vt=(rt-ge[Et+1])/Vt),(Et+1+Vt)/V}var Fe=2*Me(1)/M*ie/Ft,Je=function(rt,dt){var mt=Me(b(S(dt))),Et=J(mt)*rt;return mt/=Fe,[Et,dt>=0?mt:-mt]};return Je.invert=function(rt,dt){var mt;return b(dt*=Fe)<1&&(mt=_(dt)*$(le(b(dt))*ie)),[rt/J(b(dt)),mt]},Je}function mo(){var Ot=0,Mt=2.5,Ft=1.183136,J=(0,c.U)(ra),le=J(Ot,Mt,Ft);return le.alpha=function(ie){return arguments.length?J(Ot=+ie,Mt,Ft):Ot},le.k=function(ie){return arguments.length?J(Ot,Mt=+ie,Ft):Mt},le.gamma=function(ie){return arguments.length?J(Ot,Mt,Ft=+ie):Ft},le.scale(152.63)}function Aa(Ot,Mt){return b(Ot[0]-Mt[0])Fe[Je][2][0];++Je);var dt=Ot(ge-Fe[Je][1][0],xe);return dt[0]+=Ot(Fe[Je][1][0],Me*xe>Me*Fe[Je][0][1]?Fe[Je][0][1]:xe)[0],dt}Ft?ie.invert=Ft(ie):Ot.invert&&(ie.invert=function(ge,xe){for(var Me=le[+(xe<0)],Fe=Mt[+(xe<0)],Je=0,rt=Me.length;Je=0;--Et)Fe=(Me=xe[1][Et])[0][0],Je=Me[0][1],rt=Me[1][1],dt=Me[2][0],mt=Me[2][1],Vt.push(Xl([[dt-x,mt-x],[dt-x,rt+x],[Fe+x,rt+x],[Fe+x,Je-x]],30));return{type:"Polygon",coordinates:[(0,vr.Uf)(Vt)]}}(ge),Mt=ge.map(function(xe){return xe.map(function(Me){return[[Me[0][0]*z,Me[0][1]*z],[Me[1][0]*z,Me[1][1]*z],[Me[2][0]*z,Me[2][1]*z]]})}),le=Mt.map(function(xe){return xe.map(function(Me){var Fe,Je=Ot(Me[0][0],Me[0][1])[0],rt=Ot(Me[2][0],Me[2][1])[0],dt=Ot(Me[1][0],Me[0][1])[1],mt=Ot(Me[1][0],Me[1][1])[1];return dt>mt&&(Fe=dt,dt=mt,mt=Fe),[[Je,dt],[rt,mt]]})}),V):Mt.map(function(xe){return xe.map(function(Me){return[[Me[0][0]*I,Me[0][1]*I],[Me[1][0]*I,Me[1][1]*I],[Me[2][0]*I,Me[2][1]*I]]})})},Mt!=null&&V.lobes(Mt),V}ao.invert=function(Ot,Mt){return Mt>-fr?Oe.invert(Ot,Mt-Eo):tt.invert(Ot,Mt)},Go.invert=function(Ot,Mt){return b(Mt)>fr?Oe.invert(Ot,Mt+(Mt>0?Eo:-Eo)):tt.invert(Ot,Mt)};var cs=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function wc(){return Na(Ue,cs).scale(160.857)}var ma=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Ku(){return Na(Go,ma).scale(152.63)}var qc=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Yd(){return Na(Oe,qc).scale(169.529)}var Ql=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Ed(){return Na(Oe,Ql).scale(169.529).rotate([20,0])}var Nf=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function mm(){return Na(ao,Nf,ze).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ws=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function gm(){return Na(tt,Ws).scale(152.63).rotate([-20,0])}function Gl(Ot,Mt){return[3/k*Ot*j(M*M/3-Mt*Mt),Mt]}function pc(){return(0,c.c)(Gl).scale(158.837)}function Cu(Ot){function Mt(Ft,J){if(b(b(J)-T)2)return null;var ie=(Ft/=2)*Ft,V=(J/=2)*J,ne=2*J/(1+ie+V);return ne=m((1+ne)/(1-ne),1/Ot),[O(2*Ft,1-ie-V)/Ot,$((ne-1)/(ne+1))]},Mt}function yl(){var Ot=.5,Mt=(0,c.U)(Cu),Ft=Mt(Ot);return Ft.spacing=function(J){return arguments.length?Mt(Ot=+J):Ot},Ft.scale(124.75)}Gl.invert=function(Ot,Mt){return[k/3*Ot/j(M*M/3-Mt*Mt),Mt]};var sa=M/L;function cc(Ot,Mt){return[Ot*(1+j(w(Mt)))/2,Mt/(w(Mt/2)*w(Ot/6))]}function hu(){return(0,c.c)(cc).scale(97.2672)}function ju(Ot,Mt){var Ft=Ot*Ot,J=Mt*Mt;return[Ot*(.975534+J*(-.0143059*Ft-.119161+-.0547009*J)),Mt*(1.00384+Ft*(.0802894+-.02855*J+199025e-9*Ft)+J*(.0998909+-.0491032*J))]}function iu(){return(0,c.c)(ju).scale(139.98)}function mc(Ot,Mt){return[S(Ot)/w(Mt),A(Mt)*w(Ot)]}function Ss(){return(0,c.c)(mc).scale(144.049).clipAngle(89.999)}function $f(Ot){var Mt=w(Ot),Ft=A(E+Ot/2);function J(le,ie){var V=ie-Ot,ne=b(V)=0;)Je=(Fe=Ot[Me])[0]+ge*(ie=Je)-xe*rt,rt=Fe[1]+ge*rt+xe*ie;return[Je=ge*(ie=Je)-xe*rt,rt=ge*rt+xe*ie]}return Ft.invert=function(J,le){var ie=20,V=J,ne=le;do{for(var ge,xe=Mt,Me=Ot[xe],Fe=Me[0],Je=Me[1],rt=0,dt=0;--xe>=0;)rt=Fe+V*(ge=rt)-ne*dt,dt=Je+V*dt+ne*ge,Fe=(Me=Ot[xe])[0]+V*(ge=Fe)-ne*Je,Je=Me[1]+V*Je+ne*ge;var mt,Et,Vt=(rt=Fe+V*(ge=rt)-ne*dt)*rt+(dt=Je+V*dt+ne*ge)*dt;V-=mt=((Fe=V*(ge=Fe)-ne*Je-J)*rt+(Je=V*Je+ne*ge-le)*dt)/Vt,ne-=Et=(Je*rt-Fe*dt)/Vt}while(b(mt)+b(Et)>x*x&&--ie>0);if(ie){var jt=j(V*V+ne*ne),Nt=2*i(.5*jt),cn=S(Nt);return[O(V*cn,jt*w(Nt)),jt?$(ne*cn/jt):0]}},Ft}cc.invert=function(Ot,Mt){var Ft=b(Ot),J=b(Mt),le=x,ie=T;Jx||b(Et)>x)&&--le>0);return le&&[Ft,J]},mc.invert=function(Ot,Mt){var Ft=Ot*Ot,J=Mt*Mt+1,le=Ft+J,ie=Ot?C*j((le-j(le*le-4*Ft))/Ft):1/j(J);return[$(Ot*ie),_(Mt)*Q(ie)]},Ju.invert=function(Ot,Mt){return[Ot,2.5*i(y(.8*Mt))-.625*M]};var ef=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],uc=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],ad=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Vf=[[.9245,0],[0,0],[.01943,0]],gc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function sd(){return ld(ef,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Mp(){return ld(uc,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Xd(){return ld(ad,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function yf(){return ld(Vf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function mh(){return ld(gc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function ld(Ot,Mt){var Ft=(0,c.c)(Es(Ot)).rotate(Mt).clipAngle(90),J=(0,wt.c)(Mt),le=Ft.center;return delete Ft.rotate,Ft.center=function(ie){return arguments.length?le(J(ie)):J.invert(le())},Ft}var Vh=j(6),bf=j(7);function tf(Ot,Mt){var Ft=$(7*S(Mt)/(3*Vh));return[Vh*Ot*(2*w(2*Ft/3)-1)/bf,9*S(Ft/3)/bf]}function Au(){return(0,c.c)(tf).scale(164.859)}function xf(Ot,Mt){for(var Ft,J=(1+C)*S(Mt),le=Mt,ie=0;ie<25&&(le-=Ft=(S(le/2)+S(le)-J)/(.5*w(le/2)+w(le)),!(b(Ft)R&&--ne>0);return[Ot/(.84719-.13063*(J=V*V)+(ie=J*(le=J*J))*ie*(.05494*J-.04515-.02326*le+.00331*ie)),V]},vm.invert=function(Ot,Mt){for(var Ft=Mt/2,J=0,le=1/0;J<10&&b(le)>x;++J){var ie=w(Mt/2);Mt-=le=(Mt-A(Mt/2)-Ft)/(1-.5/(ie*ie))}return[2*Ot/(1+w(Mt)),Mt]};var M0=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function sr(){return Na(Se(1/0),M0).rotate([20,0]).scale(152.63)}function Pp(Ot,Mt){var Ft=S(Mt),J=w(Mt),le=_(Ot);if(Ot===0||b(Mt)===T)return[0,Mt];if(Mt===0)return[Ot,0];if(b(Ot)===T)return[Ot*J,T*Ft];var ie=M/(2*Ot)-2*Ot/M,V=2*Mt/M,ne=(1-V*V)/(Ft-V),ge=ie*ie,xe=ne*ne,Me=1+ge/xe,Fe=1+xe/ge,Je=(ie*Ft/ne-ie/2)/Me,rt=(xe*Ft/ge+ne/2)/Fe,dt=rt*rt-(xe*Ft*Ft/ge+ne*Ft-1)/Fe;return[T*(Je+j(Je*Je+J*J/Me)*le),T*(rt+j(dt<0?0:dt)*_(-Mt*ie)*le)]}function _f(){return(0,c.c)(Pp).scale(127.267)}Pp.invert=function(Ot,Mt){var Ft=(Ot/=T)*Ot,J=Ft+(Mt/=T)*Mt,le=M*M;return[Ot?(J-1+j((1-J)*(1-J)+4*Ft))/(2*Ot)*T:0,Ie(function(ie){return J*(M*S(ie)-2*ie)*M+4*ie*ie*(Mt-S(ie))+2*M*ie-le*Mt},0)]};var wf=1.0148,Rp=.23185,Gd=-.14499,Fa=.02406,Qu=wf,rf=5*Rp,Bc=7*Gd,ym=9*Fa,Mu=1.790857183;function Hu(Ot,Mt){var Ft=Mt*Mt;return[Ot,Mt*(wf+Ft*Ft*(Rp+Ft*(Gd+Fa*Ft)))]}function Lp(){return(0,c.c)(Hu).scale(139.319)}function Uh(Ot,Mt){if(b(Mt)Mu?Mt=Mu:Mt<-1.790857183&&(Mt=-1.790857183);var Ft,J=Mt;do{var le=J*J;J-=Ft=(J*(wf+le*le*(Rp+le*(Gd+Fa*le)))-Mt)/(Qu+le*le*(rf+le*(Bc+ym*le)))}while(b(Ft)>x);return[Ot,J]},Uh.invert=function(Ot,Mt){if(b(Mt)x&&--ie>0);return V=A(le),[(b(Mt)=0;)if(Ln=xn[rr],pn[0]===Ln[0]&&pn[1]===Ln[1]){if(An)return[An,pn];An=pn}}}(ge.face,xe.face),Fe=(mt=Me.map(xe.project),Et=Me.map(ge.project),Vt=Pu(mt[1],mt[0]),jt=Pu(Et[1],Et[0]),Nt=function(sn,xn){return O(sn[0]*xn[1]-sn[1]*xn[0],sn[0]*xn[0]+sn[1]*xn[1])}(Vt,jt),cn=Oc(Vt)/Oc(jt),vh([1,0,mt[0][0],0,1,mt[0][1]],vh([cn,0,0,0,cn,0],vh([w(Nt),S(Nt),0,-S(Nt),w(Nt),0],[1,0,-Et[0][0],0,1,-Et[0][1]]))));ge.transform=xe.transform?vh(xe.transform,Fe):Fe;for(var Je=xe.edges,rt=0,dt=Je.length;rt0?[-J[0],0]:[180-J[0],180])};var Mt=Zu.map(function(Ft){return{face:Ft,project:Ot(Ft)}});return[-1,0,0,1,0,1,4,5].forEach(function(Ft,J){var le=Mt[Ft];le&&(le.children||(le.children=[])).push(Mt[J])}),ks(Mt[0],function(Ft,J){return Mt[Ft<-M/2?J<0?6:4:Ft<0?J<0?2:0:Ftge^jt>ge&&ne<(Vt-dt)*(ge-mt)/(jt-mt)+dt&&(xe=!xe)}return xe}(le[0],J))return le.push(Ft),!0})||Ot.push([Ft])}),Wc=[],Ot.length?Ot.length>1?{type:"MultiPolygon",coordinates:Ot}:{type:"Polygon",coordinates:Ot[0]}:null}};function xh(Ot){var Mt=Ot(T,0)[0]-Ot(-T,0)[0];function Ft(J,le){var ie=b(J)0?J-M:J+M,le),ne=(V[0]-V[1])*C,ge=(V[0]+V[1])*C;if(ie)return[ne,ge];var xe=Mt*C,Me=ne>0^ge>0?-1:1;return[Me*ne-_(ge)*xe,Me*ge-_(ne)*xe]}return Ot.invert&&(Ft.invert=function(J,le){var ie=(J+le)*C,V=(le-J)*C,ne=b(ie)<.5*Mt&&b(V)<.5*Mt;if(!ne){var ge=Mt*C,xe=ie>0^V>0?-1:1,Me=-xe*J+(V>0?1:-1)*ge,Fe=-xe*le+(ie>0?1:-1)*ge;ie=(-Me-Fe)*C,V=(Me-Fe)*C}var Je=Ot.invert(ie,V);return ne||(Je[0]+=ie>0?M:-M),Je}),(0,c.c)(Ft).rotate([-90,-90,45]).clipAngle(179.999)}function js(){return xh(Qr).scale(176.423)}function os(){return xh(hr).scale(111.48)}function af(Ot,Mt){if(!(0<=(Mt=+Mt)&&Mt<=20))throw new Error("invalid digits");function Ft(xe){var Me=xe.length,Fe=2,Je=new Array(Me);for(Je[0]=+xe[0].toFixed(Mt),Je[1]=+xe[1].toFixed(Mt);Fe2||rt[0]!=Me[0]||rt[1]!=Me[1])&&(Fe.push(rt),Me=rt)}return Fe.length===1&&xe.length>1&&Fe.push(Ft(xe[xe.length-1])),Fe}function ie(xe){return xe.map(le)}function V(xe){if(xe==null)return xe;var Me;switch(xe.type){case"GeometryCollection":Me={type:"GeometryCollection",geometries:xe.geometries.map(V)};break;case"Point":Me={type:"Point",coordinates:Ft(xe.coordinates)};break;case"MultiPoint":Me={type:xe.type,coordinates:J(xe.coordinates)};break;case"LineString":Me={type:xe.type,coordinates:le(xe.coordinates)};break;case"MultiLineString":case"Polygon":Me={type:xe.type,coordinates:ie(xe.coordinates)};break;case"MultiPolygon":Me={type:"MultiPolygon",coordinates:xe.coordinates.map(ie)};break;default:return xe}return xe.bbox!=null&&(Me.bbox=xe.bbox),Me}function ne(xe){var Me={type:"Feature",properties:xe.properties,geometry:V(xe.geometry)};return xe.id!=null&&(Me.id=xe.id),xe.bbox!=null&&(Me.bbox=xe.bbox),Me}if(Ot!=null)switch(Ot.type){case"Feature":return ne(Ot);case"FeatureCollection":var ge={type:"FeatureCollection",features:Ot.features.map(ne)};return Ot.bbox!=null&&(ge.bbox=Ot.bbox),ge;default:return V(Ot)}return Ot}function Of(Ot){var Mt=S(Ot);function Ft(J,le){var ie=Mt?A(J*Mt/2)/Mt:J/2;if(!le)return[2*ie,-Ot];var V=2*i(ie*S(le)),ne=1/A(le);return[S(V)*ne,le+(1-w(V))*ne-Ot]}return Ft.invert=function(J,le){if(b(le+=Ot)x&&--ge>0);var Je=J*(xe=A(ne)),rt=A(b(le)0?T:-T)*(xe+ie*(Fe-ne)/2+ie*ie*(Fe-2*xe+ne)/2)]}function pi(){return(0,c.c)(Hi).scale(152.63)}function Qh(Ot,Mt){var Ft=function(V){function ne(ge,xe){var Me=w(xe),Fe=(V-1)/(V-Me*w(ge));return[Fe*Me*S(ge),Fe*S(xe)]}return ne.invert=function(ge,xe){var Me=ge*ge+xe*xe,Fe=j(Me),Je=(V-j(1-Me*(V+1)/(V-1)))/((V-1)/Fe+Fe/(V-1));return[O(ge*Je,Fe*j(1-Je*Je)),Fe?$(xe*Je/Fe):0]},ne}(Ot);if(!Mt)return Ft;var J=w(Mt),le=S(Mt);function ie(V,ne){var ge=Ft(V,ne),xe=ge[1],Me=xe*le/(Ot-1)+J;return[ge[0]*J/Me,xe/Me]}return ie.invert=function(V,ne){var ge=(Ot-1)/(Ot-1-ne*le);return Ft.invert(ge*V,ge*ne*J)},ie}function Ru(){var Ot=2,Mt=0,Ft=(0,c.U)(Qh),J=Ft(Ot,Mt);return J.distance=function(le){return arguments.length?Ft(Ot=+le,Mt):Ot},J.tilt=function(le){return arguments.length?Ft(Ot,Mt=le*z):Mt*I},J.scale(432.147).clipAngle(Q(1/Ot)*I-1e-6)}Ml.forEach(function(Ot){Ot[1]*=1.0144}),Hi.invert=function(Ot,Mt){var Ft=Mt/T,J=90*Ft,le=h(18,b(J/5)),ie=u(0,p(le));do{var V=Ml[ie][1],ne=Ml[ie+1][1],ge=Ml[h(19,ie+2)][1],xe=ge-V,Me=ge-2*ne+V,Fe=2*(b(Ft)-ne)/xe,Je=Me/xe,rt=Fe*(1-Je*Fe*(1-2*Je*Fe));if(rt>=0||ie===1){J=(Mt>=0?5:-5)*(rt+le);var dt,mt=50;do rt=(le=h(18,b(J)/5))-(ie=p(le)),V=Ml[ie][1],ne=Ml[ie+1][1],ge=Ml[h(19,ie+2)][1],J-=(dt=(Mt>=0?T:-T)*(ne+rt*(ge-V)/2+rt*rt*(ge-2*ne+V)/2)-Mt)*I;while(b(dt)>R&&--mt>0);break}}while(--ie>=0);var Et=Ml[ie][0],Vt=Ml[ie+1][0],jt=Ml[h(19,ie+2)][0];return[Ot/(Vt+rt*(jt-Et)/2+rt*rt*(jt-2*Vt+Et)/2),J*z]};var vc=1e-4,Yc=1e4,Kl=-180,Fc=Kl+vc,si=180,Hh=si-vc,Ps=-90,Sc=Ps+vc,tl=90,mu=tl-vc;function gu(Ot){return Ot.length>0}function ja(Ot){return Ot===Ps||Ot===tl?[0,Ot]:[Kl,(Mt=Ot,Math.floor(Mt*Yc)/Yc)];var Mt}function vu(Ot){var Mt=Ot[0],Ft=Ot[1],J=!1;return Mt<=Fc?(Mt=Kl,J=!0):Mt>=Hh&&(Mt=si,J=!0),Ft<=Sc?(Ft=Ps,J=!0):Ft>=mu&&(Ft=tl,J=!0),J?[Mt,Ft]:Ot}function Rd(Ot){return Ot.map(vu)}function Ld(Ot,Mt,Ft){for(var J=0,le=Ot.length;J=Hh||Me<=Sc||Me>=mu){ie[V]=vu(ge);for(var Fe=V+1;FeFc&&rtSc&&dt=ne)break;Ft.push({index:-1,polygon:Mt,ring:ie=ie.slice(Fe-1)}),ie[0]=ja(ie[0][1]),V=-1,ne=ie.length}}}}function nl(Ot){var Mt,Ft,J,le,ie,V,ne=Ot.length,ge={},xe={};for(Mt=0;Mt0?M-ne:ne)*I],xe=(0,c.c)(Ot(V)).rotate(ge),Me=(0,wt.c)(ge),Fe=xe.center;return delete xe.rotate,xe.center=function(Je){return arguments.length?Fe(Me(Je)):Me.invert(Fe())},xe.clipAngle(90)}function Dp(Ot){var Mt=w(Ot);function Ft(J,le){var ie=(0,Ts.Y)(J,le);return ie[0]*=Mt,ie}return Ft.invert=function(J,le){return Ts.Y.invert(J/Mt,le)},Ft}function rp(){return Lu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Lu(Ot,Mt){return yu(Dp,Ot,Mt)}function us(Ot){if(!(Ot*=2))return de.O;var Mt=-Ot/2,Ft=-Mt,J=Ot*Ot,le=A(Ft),ie=.5/S(Ft);function V(ne,ge){var xe=Q(w(ge)*w(ne-Mt)),Me=Q(w(ge)*w(ne-Ft));return[((xe*=xe)-(Me*=Me))/(2*Ot),(ge<0?-1:1)*j(4*J*Me-(J-xe+Me)*(J-xe+Me))/(2*Ot)]}return V.invert=function(ne,ge){var xe,Me,Fe=ge*ge,Je=w(j(Fe+(xe=ne+Mt)*xe)),rt=w(j(Fe+(xe=ne+Ft)*xe));return[O(Me=Je-rt,xe=(Je+rt)*le),(ge<0?-1:1)*Q(j(xe*xe+Me*Me)*ie)]},V}function Qf(){return fd([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function fd(Ot,Mt){return yu(us,Ot,Mt)}function Hf(Ot,Mt){if(b(Mt)x&&--ne>0);return[_(Ot)*(j(le*le+4)+le)*M/4,T*V]};var Jl=4*M+3*j(3),Bd=2*j(2*M*j(3)/Jl),Qs=$e(Bd*j(3)/M,Bd,Jl/6);function kc(){return(0,c.c)(Qs).scale(176.84)}function Iu(Ot,Mt){return[Ot*j(1-3*Mt*Mt/(M*M)),Mt]}function Ea(){return(0,c.c)(Iu).scale(152.63)}function El(Ot,Mt){var Ft=w(Mt),J=w(Ot)*Ft,le=1-J,ie=w(Ot=O(S(Ot)*Ft,-S(Mt))),V=S(Ot);return[V*(Ft=j(1-J*J))-ie*le,-ie*Ft-V*le]}function _l(){return(0,c.c)(El).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function Mi(Ot,Mt){var Ft=K(Ot,Mt);return[(Ft[0]+Ot/T)/2,(Ft[1]+Mt)/2]}function Sf(){return(0,c.c)(Mi).scale(158.837)}Iu.invert=function(Ot,Mt){return[Ot/j(1-3*Mt*Mt/(M*M)),Mt]},El.invert=function(Ot,Mt){var Ft=(Ot*Ot+Mt*Mt)/-2,J=j(-Ft*(2+Ft)),le=Mt*Ft+Ot*J,ie=Ot*Ft-Mt*J,V=j(ie*ie+le*le);return[O(J*le,V*(1+Ft)),V?-$(J*ie/V):0]},Mi.invert=function(Ot,Mt){var Ft=Ot,J=Mt,le=25;do{var ie,V=w(J),ne=S(J),ge=S(2*J),xe=ne*ne,Me=V*V,Fe=S(Ft),Je=w(Ft/2),rt=S(Ft/2),dt=rt*rt,mt=1-Me*Je*Je,Et=mt?Q(V*Je)*j(ie=1/mt):ie=0,Vt=.5*(2*Et*V*rt+Ft/T)-Ot,jt=.5*(Et*ne+J)-Mt,Nt=.5*ie*(Me*dt+Et*V*Je*xe)+.5/T,cn=ie*(Fe*ge/4-Et*ne*rt),sn=.125*ie*(ge*rt-Et*ne*Me*Fe),xn=.5*ie*(xe*Je+Et*dt*V)+.5,pn=cn*sn-xn*Nt,Ln=(jt*cn-Vt*xn)/pn,On=(Vt*sn-jt*Nt)/pn;Ft-=Ln,J-=On}while((b(Ln)>x||b(On)>x)&&--le>0);return[Ft,J]}},88728:function(d,l,n){function c(){return new b}function b(){this.reset()}n.d(l,{c:function(){return c}}),b.prototype={constructor:b,reset:function(){this.s=this.t=0},add:function(w){O(i,w,this.t),O(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new b;function O(w,y,p){var a=w.s=y+p,u=a-y,h=a-u;w.t=y-h+(p-u)}},95384:function(d,l,n){n.d(l,{cp:function(){return R},mQ:function(){return h},oB:function(){return v}});var c,b,i,O,w,y=n(88728),p=n(64528),a=n(70932),u=n(16016),h=(0,y.c)(),m=(0,y.c)(),v={point:a.c,lineStart:a.c,lineEnd:a.c,polygonStart:function(){h.reset(),v.lineStart=_,v.lineEnd=S},polygonEnd:function(){var M=+h;m.add(M<0?p.kD+M:M),this.lineStart=this.lineEnd=this.point=a.c},sphere:function(){m.add(p.kD)}};function _(){v.point=A}function S(){x(c,b)}function A(M,T){v.point=x,c=M,b=T,M*=p.qw,T*=p.qw,i=M,O=(0,p.W8)(T=T/2+p.wL),w=(0,p.g$)(T)}function x(M,T){M*=p.qw,T=(T*=p.qw)/2+p.wL;var E=M-i,C=E>=0?1:-1,L=C*E,D=(0,p.W8)(T),k=(0,p.g$)(T),I=w*k,z=O*D+I*(0,p.W8)(L),$=I*C*(0,p.g$)(L);h.add((0,p.WE)($,z)),i=M,O=D,w=k}function R(M){return m.reset(),(0,u.c)(M,v),2*m}},13696:function(d,l,n){n.d(l,{c:function(){return Q}});var c,b,i,O,w,y,p,a,u,h,m=n(88728),v=n(95384),_=n(84220),S=n(64528),A=n(16016),x=(0,m.c)(),R={point:M,lineStart:E,lineEnd:C,polygonStart:function(){R.point=L,R.lineStart=D,R.lineEnd=k,x.reset(),v.oB.polygonStart()},polygonEnd:function(){v.oB.polygonEnd(),R.point=M,R.lineStart=E,R.lineEnd=C,v.mQ<0?(c=-(i=180),b=-(O=90)):x>S.Gg?O=90:x<-S.Gg&&(b=-90),h[0]=c,h[1]=i},sphere:function(){c=-(i=180),b=-(O=90)}};function M(j,U){u.push(h=[c=j,i=j]),UO&&(O=U)}function T(j,U){var X=(0,_.ux)([j*S.qw,U*S.qw]);if(a){var te=(0,_.CW)(a,X),W=[te[1],-te[0],0],K=(0,_.CW)(W,te);(0,_.cJ)(K),K=(0,_.G)(K);var oe,q=j-w,Y=q>0?1:-1,ee=K[0]*S.oh*Y,me=(0,S.a2)(q)>180;me^(Y*wO&&(O=oe):me^(Y*w<(ee=(ee+360)%360-180)&&eeO&&(O=U)),me?jI(c,i)&&(i=j):I(j,i)>I(c,i)&&(c=j):i>=c?(ji&&(i=j)):j>w?I(c,j)>I(c,i)&&(i=j):I(j,i)>I(c,i)&&(c=j)}else u.push(h=[c=j,i=j]);UO&&(O=U),a=X,w=j}function E(){R.point=T}function C(){h[0]=c,h[1]=i,R.point=M,a=null}function L(j,U){if(a){var X=j-w;x.add((0,S.a2)(X)>180?X+(X>0?360:-360):X)}else y=j,p=U;v.oB.point(j,U),T(j,U)}function D(){v.oB.lineStart()}function k(){L(y,p),v.oB.lineEnd(),(0,S.a2)(x)>S.Gg&&(c=-(i=180)),h[0]=c,h[1]=i,a=null}function I(j,U){return(U-=j)<0?U+360:U}function z(j,U){return j[0]-U[0]}function $(j,U){return j[0]<=j[1]?j[0]<=U&&U<=j[1]:UI(te[0],te[1])&&(te[1]=W[1]),I(W[0],te[1])>I(te[0],te[1])&&(te[0]=W[0])):K.push(te=W);for(oe=-1/0,U=0,te=K[X=K.length-1];U<=X;te=W,++U)W=K[U],(q=I(te[1],W[0]))>oe&&(oe=q,c=W[0],i=te[1])}return u=h=null,c===1/0||b===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,b],[i,O]]}},84220:function(d,l,n){n.d(l,{CW:function(){return w},Ez:function(){return O},G:function(){return b},cJ:function(){return a},mg:function(){return y},ux:function(){return i},wx:function(){return p}});var c=n(64528);function b(u){return[(0,c.WE)(u[1],u[0]),(0,c.qR)(u[2])]}function i(u){var h=u[0],m=u[1],v=(0,c.W8)(m);return[v*(0,c.W8)(h),v*(0,c.g$)(h),(0,c.g$)(m)]}function O(u,h){return u[0]*h[0]+u[1]*h[1]+u[2]*h[2]}function w(u,h){return[u[1]*h[2]-u[2]*h[1],u[2]*h[0]-u[0]*h[2],u[0]*h[1]-u[1]*h[0]]}function y(u,h){u[0]+=h[0],u[1]+=h[1],u[2]+=h[2]}function p(u,h){return[u[0]*h,u[1]*h,u[2]*h]}function a(u){var h=(0,c._I)(u[0]*u[0]+u[1]*u[1]+u[2]*u[2]);u[0]/=h,u[1]/=h,u[2]/=h}},24052:function(d,l,n){n.d(l,{c:function(){return X}});var c,b,i,O,w,y,p,a,u,h,m,v,_,S,A,x,R=n(64528),M=n(70932),T=n(16016),E={sphere:M.c,point:C,lineStart:D,lineEnd:z,polygonStart:function(){E.lineStart=$,E.lineEnd=Q},polygonEnd:function(){E.lineStart=D,E.lineEnd=z}};function C(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W);L(K*(0,R.W8)(te),K*(0,R.g$)(te),(0,R.g$)(W))}function L(te,W,K){++c,i+=(te-i)/c,O+=(W-O)/c,w+=(K-w)/c}function D(){E.point=k}function k(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W);S=K*(0,R.W8)(te),A=K*(0,R.g$)(te),x=(0,R.g$)(W),E.point=I,L(S,A,x)}function I(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W),oe=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(W),ee=(0,R.WE)((0,R._I)((ee=A*Y-x*q)*ee+(ee=x*oe-S*Y)*ee+(ee=S*q-A*oe)*ee),S*oe+A*q+x*Y);b+=ee,y+=ee*(S+(S=oe)),p+=ee*(A+(A=q)),a+=ee*(x+(x=Y)),L(S,A,x)}function z(){E.point=C}function $(){E.point=j}function Q(){U(v,_),E.point=C}function j(te,W){v=te,_=W,te*=R.qw,W*=R.qw,E.point=U;var K=(0,R.W8)(W);S=K*(0,R.W8)(te),A=K*(0,R.g$)(te),x=(0,R.g$)(W),L(S,A,x)}function U(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W),oe=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(W),ee=A*Y-x*q,me=x*oe-S*Y,he=S*q-A*oe,se=(0,R._I)(ee*ee+me*me+he*he),ae=(0,R.qR)(se),ce=se&&-ae/se;u+=ce*ee,h+=ce*me,m+=ce*he,b+=ae,y+=ae*(S+(S=oe)),p+=ae*(A+(A=q)),a+=ae*(x+(x=Y)),L(S,A,x)}function X(te){c=b=i=O=w=y=p=a=u=h=m=0,(0,T.c)(te,E);var W=u,K=h,oe=m,q=W*W+K*K+oe*oe;return q0?v<_:v>_)&&(v+=m*i.kD));for(var R,M=v;m>0?M>_:M<_;M-=x)R=(0,c.G)([S,-A*(0,i.W8)(M),-A*(0,i.g$)(M)]),a.point(R[0],R[1])}}function y(a,u){(u=(0,c.ux)(u))[0]-=a,(0,c.cJ)(u);var h=(0,i.mE)(-u[1]);return((-u[2]<0?-h:h)+i.kD-i.Gg)%i.kD}function p(){var a,u,h=b([0,0]),m=b(90),v=b(6),_={point:function(A,x){a.push(A=u(A,x)),A[0]*=i.oh,A[1]*=i.oh}};function S(){var A=h.apply(this,arguments),x=m.apply(this,arguments)*i.qw,R=v.apply(this,arguments)*i.qw;return a=[],u=(0,O.O)(-A[0]*i.qw,-A[1]*i.qw,0).invert,w(_,x,R,1),A={type:"Polygon",coordinates:[a]},a=u=null,A}return S.center=function(A){return arguments.length?(h=typeof A=="function"?A:b([+A[0],+A[1]]),S):h},S.radius=function(A){return arguments.length?(m=typeof A=="function"?A:b(+A),S):m},S.precision=function(A){return arguments.length?(v=typeof A=="function"?A:b(+A),S):v},S}},78284:function(d,l,n){var c=n(14229),b=n(64528);l.c=(0,c.c)(function(){return!0},function(i){var O,w=NaN,y=NaN,p=NaN;return{lineStart:function(){i.lineStart(),O=1},point:function(a,u){var h=a>0?b.pi:-b.pi,m=(0,b.a2)(a-w);(0,b.a2)(m-b.pi)0?b.or:-b.or),i.point(p,y),i.lineEnd(),i.lineStart(),i.point(h,y),i.point(a,y),O=0):p!==h&&m>=b.pi&&((0,b.a2)(w-p)b.Gg?(0,b.MQ)(((0,b.g$)(_)*(R=(0,b.W8)(A))*(0,b.g$)(S)-(0,b.g$)(A)*(x=(0,b.W8)(_))*(0,b.g$)(v))/(x*R*M)):(_+A)/2}(w,y,a,u),i.point(p,y),i.lineEnd(),i.lineStart(),i.point(h,y),O=0),i.point(w=a,y=u),p=h},lineEnd:function(){i.lineEnd(),w=y=NaN},clean:function(){return 2-O}}},function(i,O,w,y){var p;if(i==null)p=w*b.or,y.point(-b.pi,p),y.point(0,p),y.point(b.pi,p),y.point(b.pi,0),y.point(b.pi,-p),y.point(0,-p),y.point(-b.pi,-p),y.point(-b.pi,0),y.point(-b.pi,p);else if((0,b.a2)(i[0]-O[0])>b.Gg){var a=i[0]1&&O.push(O.pop().concat(O.shift()))},result:function(){var w=O;return O=[],i=null,w}}}},2728:function(d,l,n){n.d(l,{c:function(){return y}});var c=n(84220),b=n(61780),i=n(64528),O=n(41860),w=n(14229);function y(p){var a=(0,i.W8)(p),u=6*i.qw,h=a>0,m=(0,i.a2)(a)>i.Gg;function v(A,x){return(0,i.W8)(A)*(0,i.W8)(x)>a}function _(A,x,R){var M=(0,c.ux)(A),T=(0,c.ux)(x),E=[1,0,0],C=(0,c.CW)(M,T),L=(0,c.Ez)(C,C),D=C[0],k=L-D*D;if(!k)return!R&&A;var I=a*L/k,z=-a*D/k,$=(0,c.CW)(E,C),Q=(0,c.wx)(E,I),j=(0,c.wx)(C,z);(0,c.mg)(Q,j);var U=$,X=(0,c.Ez)(Q,U),te=(0,c.Ez)(U,U),W=X*X-te*((0,c.Ez)(Q,Q)-1);if(!(W<0)){var K=(0,i._I)(W),oe=(0,c.wx)(U,(-X-K)/te);if((0,c.mg)(oe,Q),oe=(0,c.G)(oe),!R)return oe;var q,Y=A[0],ee=x[0],me=A[1],he=x[1];ee0^oe[1]<((0,i.a2)(oe[0]-Y)i.pi^(Y<=oe[0]&&oe[0]<=ee)){var ce=(0,c.wx)(U,(-X+K)/te);return(0,c.mg)(ce,Q),[oe,(0,c.G)(ce)]}}}function S(A,x){var R=h?p:i.pi-p,M=0;return A<-R?M|=1:A>R&&(M|=2),x<-R?M|=4:x>R&&(M|=8),M}return(0,w.c)(v,function(A){var x,R,M,T,E;return{lineStart:function(){T=M=!1,E=1},point:function(C,L){var D,k=[C,L],I=v(C,L),z=h?I?0:S(C,L):I?S(C+(C<0?i.pi:-i.pi),L):0;if(!x&&(T=M=I)&&A.lineStart(),I!==M&&(!(D=_(x,k))||(0,O.c)(x,D)||(0,O.c)(k,D))&&(k[2]=1),I!==M)E=0,I?(A.lineStart(),D=_(k,x),A.point(D[0],D[1])):(D=_(x,k),A.point(D[0],D[1],2),A.lineEnd()),x=D;else if(m&&x&&h^I){var $;z&R||!($=_(k,x,!0))||(E=0,h?(A.lineStart(),A.point($[0][0],$[0][1]),A.point($[1][0],$[1][1]),A.lineEnd()):(A.point($[1][0],$[1][1]),A.lineEnd(),A.lineStart(),A.point($[0][0],$[0][1],3)))}!I||x&&(0,O.c)(x,k)||A.point(k[0],k[1]),x=k,M=I,R=z},lineEnd:function(){M&&A.lineEnd(),x=null},clean:function(){return E|(T&&M)<<1}}},function(A,x,R,M){(0,b.Q)(M,p,u,R,A,x)},h?[0,-p]:[-i.pi,p-i.pi])}},14229:function(d,l,n){n.d(l,{c:function(){return y}});var c=n(97208),b=n(32232),i=n(64528),O=n(58196),w=n(84706);function y(u,h,m,v){return function(_){var S,A,x,R=h(_),M=(0,c.c)(),T=h(M),E=!1,C={point:L,lineStart:k,lineEnd:I,polygonStart:function(){C.point=z,C.lineStart=$,C.lineEnd=Q,A=[],S=[]},polygonEnd:function(){C.point=L,C.lineStart=k,C.lineEnd=I,A=(0,w.Uf)(A);var j=(0,O.c)(S,v);A.length?(E||(_.polygonStart(),E=!0),(0,b.c)(A,a,j,m,_)):j&&(E||(_.polygonStart(),E=!0),_.lineStart(),m(null,null,1,_),_.lineEnd()),E&&(_.polygonEnd(),E=!1),A=S=null},sphere:function(){_.polygonStart(),_.lineStart(),m(null,null,1,_),_.lineEnd(),_.polygonEnd()}};function L(j,U){u(j,U)&&_.point(j,U)}function D(j,U){R.point(j,U)}function k(){C.point=D,R.lineStart()}function I(){C.point=L,R.lineEnd()}function z(j,U){x.push([j,U]),T.point(j,U)}function $(){T.lineStart(),x=[]}function Q(){z(x[0][0],x[0][1]),T.lineEnd();var j,U,X,te,W=T.clean(),K=M.result(),oe=K.length;if(x.pop(),S.push(x),x=null,oe)if(1&W){if((U=(X=K[0]).length-1)>0){for(E||(_.polygonStart(),E=!0),_.lineStart(),j=0;j1&&2&W&&K.push(K.pop().concat(K.shift())),A.push(K.filter(p))}return C}}function p(u){return u.length>1}function a(u,h){return((u=u.x)[0]<0?u[1]-i.or-i.Gg:i.or-u[1])-((h=h.x)[0]<0?h[1]-i.or-i.Gg:i.or-h[1])}},21676:function(d,l,n){n.d(l,{c:function(){return p}});var c=n(64528),b=n(97208),i=n(32232),O=n(84706),w=1e9,y=-w;function p(a,u,h,m){function v(R,M){return a<=R&&R<=h&&u<=M&&M<=m}function _(R,M,T,E){var C=0,L=0;if(R==null||(C=S(R,T))!==(L=S(M,T))||x(R,M)<0^T>0)do E.point(C===0||C===3?a:h,C>1?m:u);while((C=(C+T+4)%4)!==L);else E.point(M[0],M[1])}function S(R,M){return(0,c.a2)(R[0]-a)0?0:3:(0,c.a2)(R[0]-h)0?2:1:(0,c.a2)(R[1]-u)0?1:0:M>0?3:2}function A(R,M){return x(R.x,M.x)}function x(R,M){var T=S(R,1),E=S(M,1);return T!==E?T-E:T===0?M[1]-R[1]:T===1?R[0]-M[0]:T===2?R[1]-M[1]:M[0]-R[0]}return function(R){var M,T,E,C,L,D,k,I,z,$,Q,j=R,U=(0,b.c)(),X={point:te,lineStart:function(){X.point=W,T&&T.push(E=[]),$=!0,z=!1,k=I=NaN},lineEnd:function(){M&&(W(C,L),D&&z&&U.rejoin(),M.push(U.result())),X.point=te,z&&j.lineEnd()},polygonStart:function(){j=U,M=[],T=[],Q=!0},polygonEnd:function(){var K=function(){for(var Y=0,ee=0,me=T.length;eem&&(ye-he)*(m-se)>(_e-se)*(a-he)&&++Y:_e<=m&&(ye-he)*(m-se)<(_e-se)*(a-he)&&--Y;return Y}(),oe=Q&&K,q=(M=(0,O.Uf)(M)).length;(oe||q)&&(R.polygonStart(),oe&&(R.lineStart(),_(null,null,1,R),R.lineEnd()),q&&(0,i.c)(M,A,K,_,R),R.polygonEnd()),j=R,M=T=E=null}};function te(K,oe){v(K,oe)&&j.point(K,oe)}function W(K,oe){var q=v(K,oe);if(T&&E.push([K,oe]),$)C=K,L=oe,D=q,$=!1,q&&(j.lineStart(),j.point(K,oe));else if(q&&z)j.point(K,oe);else{var Y=[k=Math.max(y,Math.min(w,k)),I=Math.max(y,Math.min(w,I))],ee=[K=Math.max(y,Math.min(w,K)),oe=Math.max(y,Math.min(w,oe))];(function(me,he,se,ae,ce,de){var ve,ye=me[0],_e=me[1],Se=0,Te=1,Pe=he[0]-ye,Ie=he[1]-_e;if(ve=se-ye,Pe||!(ve>0)){if(ve/=Pe,Pe<0){if(ve0){if(ve>Te)return;ve>Se&&(Se=ve)}if(ve=ce-ye,Pe||!(ve<0)){if(ve/=Pe,Pe<0){if(ve>Te)return;ve>Se&&(Se=ve)}else if(Pe>0){if(ve0)){if(ve/=Ie,Ie<0){if(ve0){if(ve>Te)return;ve>Se&&(Se=ve)}if(ve=de-_e,Ie||!(ve<0)){if(ve/=Ie,Ie<0){if(ve>Te)return;ve>Se&&(Se=ve)}else if(Ie>0){if(ve0&&(me[0]=ye+Se*Pe,me[1]=_e+Se*Ie),Te<1&&(he[0]=ye+Te*Pe,he[1]=_e+Te*Ie),!0}}}}})(Y,ee,a,u,h,m)?(z||(j.lineStart(),j.point(Y[0],Y[1])),j.point(ee[0],ee[1]),q||j.lineEnd(),Q=!1):q&&(j.lineStart(),j.point(K,oe),Q=!1)}k=K,I=oe,z=q}return X}}},32232:function(d,l,n){n.d(l,{c:function(){return O}});var c=n(41860),b=n(64528);function i(y,p,a,u){this.x=y,this.z=p,this.o=a,this.e=u,this.v=!1,this.n=this.p=null}function O(y,p,a,u,h){var m,v,_=[],S=[];if(y.forEach(function(E){if(!((C=E.length-1)<=0)){var C,L,D=E[0],k=E[C];if((0,c.c)(D,k)){if(!D[2]&&!k[2]){for(h.lineStart(),m=0;m=0;--m)h.point((x=A[m])[0],x[1]);else u(M.x,M.p.x,-1,h);M=M.p}A=(M=M.o).z,T=!T}while(!M.v);h.lineEnd()}}}function w(y){if(p=y.length){for(var p,a,u=0,h=y[0];++u0&&(Cr=I(Pn[io],Pn[io-1]))>0&&br<=Cr&&dr<=Cr&&(br+dr-Cr)*(1-Math.pow((br-dr)/Cr,2))S.Gg}).map(bo)).concat((0,oe.ik)((0,S.Km)(io/Zn)*Zn,Cr,Zn).filter(function(Hn){return(0,S.a2)(Hn%gr)>S.Gg}).map(Bn))}return nr.lines=function(){return Qn().map(function(Hn){return{type:"LineString",coordinates:Hn}})},nr.outline=function(){return{type:"Polygon",coordinates:[hr(dr).concat(hn(Qr).slice(1),hr(br).reverse().slice(1),hn(Wr).reverse().slice(1))]}},nr.extent=function(Hn){return arguments.length?nr.extentMajor(Hn).extentMinor(Hn):nr.extentMinor()},nr.extentMajor=function(Hn){return arguments.length?(dr=+Hn[0][0],br=+Hn[1][0],Wr=+Hn[0][1],Qr=+Hn[1][1],dr>br&&(Hn=dr,dr=br,br=Hn),Wr>Qr&&(Hn=Wr,Wr=Qr,Qr=Hn),nr.precision(vr)):[[dr,Wr],[br,Qr]]},nr.extentMinor=function(Hn){return arguments.length?(Yn=+Hn[0][0],Pn=+Hn[1][0],io=+Hn[0][1],Cr=+Hn[1][1],Yn>Pn&&(Hn=Yn,Yn=Pn,Pn=Hn),io>Cr&&(Hn=io,io=Cr,Cr=Hn),nr.precision(vr)):[[Yn,io],[Pn,Cr]]},nr.step=function(Hn){return arguments.length?nr.stepMajor(Hn).stepMinor(Hn):nr.stepMinor()},nr.stepMajor=function(Hn){return arguments.length?(yr=+Hn[0],gr=+Hn[1],nr):[yr,gr]},nr.stepMinor=function(Hn){return arguments.length?(zn=+Hn[0],Zn=+Hn[1],nr):[zn,Zn]},nr.precision=function(Hn){return arguments.length?(vr=+Hn,bo=q(io,Cr,90),Bn=Y(Yn,Pn,vr),hr=q(Wr,Qr,90),hn=Y(dr,br,vr),nr):vr},nr.extentMajor([[-180,-90+S.Gg],[180,90-S.Gg]]).extentMinor([[-180,-80-S.Gg],[180,80+S.Gg]])}function me(){return ee()()}var he,se,ae,ce,de=n(27284),ve=n(7376),ye=(0,_.c)(),_e=(0,_.c)(),Se={point:A.c,lineStart:A.c,lineEnd:A.c,polygonStart:function(){Se.lineStart=Te,Se.lineEnd=ze},polygonEnd:function(){Se.lineStart=Se.lineEnd=Se.point=A.c,ye.add((0,S.a2)(_e)),_e.reset()},result:function(){var Pn=ye/2;return ye.reset(),Pn}};function Te(){Se.point=Pe}function Pe(Pn,Yn){Se.point=Ie,he=ae=Pn,se=ce=Yn}function Ie(Pn,Yn){_e.add(ce*Pn-ae*Yn),ae=Pn,ce=Yn}function ze(){Ie(he,se)}var De,He,Ve,$e,Oe=Se,ke=n(73784),Le=0,We=0,Ue=0,Ze=0,Xe=0,tt=0,Ee=0,Ne=0,je=0,nt={point:ot,lineStart:Ge,lineEnd:wt,polygonStart:function(){nt.lineStart=Dt,nt.lineEnd=It},polygonEnd:function(){nt.point=ot,nt.lineStart=Ge,nt.lineEnd=wt},result:function(){var Pn=je?[Ee/je,Ne/je]:tt?[Ze/tt,Xe/tt]:Ue?[Le/Ue,We/Ue]:[NaN,NaN];return Le=We=Ue=Ze=Xe=tt=Ee=Ne=je=0,Pn}};function ot(Pn,Yn){Le+=Pn,We+=Yn,++Ue}function Ge(){nt.point=ht}function ht(Pn,Yn){nt.point=pt,ot(Ve=Pn,$e=Yn)}function pt(Pn,Yn){var br=Pn-Ve,dr=Yn-$e,Cr=(0,S._I)(br*br+dr*dr);Ze+=Cr*(Ve+Pn)/2,Xe+=Cr*($e+Yn)/2,tt+=Cr,ot(Ve=Pn,$e=Yn)}function wt(){nt.point=ot}function Dt(){nt.point=qt}function It(){en(De,He)}function qt(Pn,Yn){nt.point=en,ot(De=Ve=Pn,He=$e=Yn)}function en(Pn,Yn){var br=Pn-Ve,dr=Yn-$e,Cr=(0,S._I)(br*br+dr*dr);Ze+=Cr*(Ve+Pn)/2,Xe+=Cr*($e+Yn)/2,tt+=Cr,Ee+=(Cr=$e*Pn-Ve*Yn)*(Ve+Pn),Ne+=Cr*($e+Yn),je+=3*Cr,ot(Ve=Pn,$e=Yn)}var Gt=nt;function Ct(Pn){this._context=Pn}Ct.prototype={_radius:4.5,pointRadius:function(Pn){return this._radius=Pn,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Pn,Yn){switch(this._point){case 0:this._context.moveTo(Pn,Yn),this._point=1;break;case 1:this._context.lineTo(Pn,Yn);break;default:this._context.moveTo(Pn+this._radius,Yn),this._context.arc(Pn,Yn,this._radius,0,S.kD)}},result:A.c};var _t,nn,gn,bn,mn,vt=(0,_.c)(),bt={point:A.c,lineStart:function(){bt.point=lt},lineEnd:function(){_t&&yt(nn,gn),bt.point=A.c},polygonStart:function(){_t=!0},polygonEnd:function(){_t=null},result:function(){var Pn=+vt;return vt.reset(),Pn}};function lt(Pn,Yn){bt.point=yt,nn=bn=Pn,gn=mn=Yn}function yt(Pn,Yn){bn-=Pn,mn-=Yn,vt.add((0,S._I)(bn*bn+mn*mn)),bn=Pn,mn=Yn}var zt=bt;function Rt(){this._string=[]}function it(Pn){return"m0,"+Pn+"a"+Pn+","+Pn+" 0 1,1 0,"+-2*Pn+"a"+Pn+","+Pn+" 0 1,1 0,"+2*Pn+"z"}function at(Pn,Yn){var br,dr,Cr=4.5;function io(Qr){return Qr&&(typeof Cr=="function"&&dr.pointRadius(+Cr.apply(this,arguments)),(0,x.c)(Qr,br(dr))),dr.result()}return io.area=function(Qr){return(0,x.c)(Qr,br(Oe)),Oe.result()},io.measure=function(Qr){return(0,x.c)(Qr,br(zt)),zt.result()},io.bounds=function(Qr){return(0,x.c)(Qr,br(ke.c)),ke.c.result()},io.centroid=function(Qr){return(0,x.c)(Qr,br(Gt)),Gt.result()},io.projection=function(Qr){return arguments.length?(br=Qr==null?(Pn=null,ve.c):(Pn=Qr).stream,io):Pn},io.context=function(Qr){return arguments.length?(dr=Qr==null?(Yn=null,new Rt):new Ct(Yn=Qr),typeof Cr!="function"&&dr.pointRadius(Cr),io):Yn},io.pointRadius=function(Qr){return arguments.length?(Cr=typeof Qr=="function"?Qr:(dr.pointRadius(+Qr),+Qr),io):Cr},io.projection(Pn).context(Yn)}Rt.prototype={_radius:4.5,_circle:it(4.5),pointRadius:function(Pn){return(Pn=+Pn)!==this._radius&&(this._radius=Pn,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Pn,Yn){switch(this._point){case 0:this._string.push("M",Pn,",",Yn),this._point=1;break;case 1:this._string.push("L",Pn,",",Yn);break;default:this._circle==null&&(this._circle=it(this._radius)),this._string.push("M",Pn,",",Yn,this._circle)}},result:function(){if(this._string.length){var Pn=this._string.join("");return this._string=[],Pn}return null}};var Lt=n(87952);function xt(Pn){var Yn=0,br=S.pi/3,dr=(0,Lt.U)(Pn),Cr=dr(Yn,br);return Cr.parallels=function(io){return arguments.length?dr(Yn=io[0]*S.qw,br=io[1]*S.qw):[Yn*S.oh,br*S.oh]},Cr}function Ht(Pn,Yn){var br=(0,S.g$)(Pn),dr=(br+(0,S.g$)(Yn))/2;if((0,S.a2)(dr)=.12&&vr<.234&&gr>=-.425&&gr<-.214?Wr:vr>=.166&&vr<.234&&gr>=-.214&&gr<-.115?bo:Qr).invert(zn)},hr.stream=function(zn){return Pn&&Yn===zn?Pn:(Zn=[Qr.stream(Yn=zn),Wr.stream(zn),bo.stream(zn)],yr=Zn.length,Pn={point:function(gr,vr){for(var nr=-1;++nr0?Wr<-S.or+S.Gg&&(Wr=-S.or+S.Gg):Wr>S.or-S.Gg&&(Wr=S.or-S.Gg);var bo=Cr/(0,S.g3)(er(Wr),dr);return[bo*(0,S.g$)(dr*Qr),Cr-bo*(0,S.W8)(dr*Qr)]}return io.invert=function(Qr,Wr){var bo=Cr-Wr,Bn=(0,S.kq)(dr)*(0,S._I)(Qr*Qr+bo*bo),hr=(0,S.WE)(Qr,(0,S.a2)(bo))*(0,S.kq)(bo);return bo*dr<0&&(hr-=S.pi*(0,S.kq)(Qr)*(0,S.kq)(bo)),[hr/dr,2*(0,S.MQ)((0,S.g3)(Cr/Bn,1/dr))-S.or]},io}function In(){return xt(En).scale(109.5).parallels([30,30])}dn.invert=function(Pn,Yn){return[Pn,2*(0,S.MQ)((0,S.oN)(Yn))-S.or]};var Un=n(69604);function xr(Pn,Yn){var br=(0,S.W8)(Pn),dr=Pn===Yn?(0,S.g$)(Pn):(br-(0,S.W8)(Yn))/(Yn-Pn),Cr=br/dr+Pn;if((0,S.a2)(dr)2?dr[2]+90:90]):[(dr=br())[0],dr[1],dr[2]-90]},br([0,0,90]).scale(159.155)}so.invert=(0,Co.g)(function(Pn){return 2*(0,S.MQ)(Pn)}),go.invert=function(Pn,Yn){return[-Yn,2*(0,S.MQ)((0,S.oN)(Pn))-S.or]}},27284:function(d,l,n){n.d(l,{c:function(){return b}});var c=n(64528);function b(i,O){var w=i[0]*c.qw,y=i[1]*c.qw,p=O[0]*c.qw,a=O[1]*c.qw,u=(0,c.W8)(y),h=(0,c.g$)(y),m=(0,c.W8)(a),v=(0,c.g$)(a),_=u*(0,c.W8)(w),S=u*(0,c.g$)(w),A=m*(0,c.W8)(p),x=m*(0,c.g$)(p),R=2*(0,c.qR)((0,c._I)((0,c.SD)(a-y)+u*m*(0,c.SD)(p-w))),M=(0,c.g$)(R),T=R?function(E){var C=(0,c.g$)(E*=R)/M,L=(0,c.g$)(R-E)/M,D=L*_+C*A,k=L*S+C*x,I=L*h+C*v;return[(0,c.WE)(k,D)*c.oh,(0,c.WE)(I,(0,c._I)(D*D+k*k))*c.oh]}:function(){return[w*c.oh,y*c.oh]};return T.distance=R,T}},64528:function(d,l,n){n.d(l,{Gg:function(){return c},Km:function(){return _},MQ:function(){return h},SD:function(){return D},W8:function(){return v},WE:function(){return m},Yz:function(){return A},_I:function(){return T},a2:function(){return u},a6:function(){return E},a8:function(){return b},g$:function(){return R},g3:function(){return x},kD:function(){return y},kq:function(){return M},mE:function(){return C},oN:function(){return S},oh:function(){return p},or:function(){return O},pi:function(){return i},qR:function(){return L},qw:function(){return a},wL:function(){return w}});var c=1e-6,b=1e-12,i=Math.PI,O=i/2,w=i/4,y=2*i,p=180/i,a=i/180,u=Math.abs,h=Math.atan,m=Math.atan2,v=Math.cos,_=Math.ceil,S=Math.exp,A=Math.log,x=Math.pow,R=Math.sin,M=Math.sign||function(k){return k>0?1:k<0?-1:0},T=Math.sqrt,E=Math.tan;function C(k){return k>1?0:k<-1?i:Math.acos(k)}function L(k){return k>1?O:k<-1?-O:Math.asin(k)}function D(k){return(k=R(k/2))*k}},70932:function(d,l,n){function c(){}n.d(l,{c:function(){return c}})},73784:function(d,l,n){var c=n(70932),b=1/0,i=b,O=-b,w=O,y={point:function(p,a){pO&&(O=p),aw&&(w=a)},lineStart:c.c,lineEnd:c.c,polygonStart:c.c,polygonEnd:c.c,result:function(){var p=[[b,i],[O,w]];return O=w=-(i=b=1/0),p}};l.c=y},41860:function(d,l,n){n.d(l,{c:function(){return b}});var c=n(64528);function b(i,O){return(0,c.a2)(i[0]-O[0])=0?1:-1,te=X*U,W=te>i.pi,K=L*Q;if(O.add((0,i.WE)(K*X*(0,i.g$)(te),D*j+K*(0,i.W8)(te))),_+=W?U+X*i.kD:U,W^E>=u^z>=u){var oe=(0,b.CW)((0,b.ux)(T),(0,b.ux)(I));(0,b.cJ)(oe);var q=(0,b.CW)(v,oe);(0,b.cJ)(q);var Y=(W^U>=0?-1:1)*(0,i.qR)(q[2]);(h>Y||h===Y&&(oe[0]||oe[1]))&&(S+=W^U>=0?1:-1)}}return(_<-i.Gg||_4*L&&q--){var se=$+W,ae=Q+K,ce=j+oe,de=(0,y._I)(se*se+ae*ae+ce*ce),ve=(0,y.qR)(ce/=de),ye=(0,y.a2)((0,y.a2)(ce)-1)L||(0,y.a2)((ee*Pe+me*Ie)/he-.5)>.3||$*W+Q*K+j*oe2?Pe[2]%360*y.qw:0,Se()):[oe*y.oh,q*y.oh,Y*y.oh]},ye.angle=function(Pe){return arguments.length?(ee=Pe%360*y.qw,Se()):ee*y.oh},ye.reflectX=function(Pe){return arguments.length?(me=Pe?-1:1,Se()):me<0},ye.reflectY=function(Pe){return arguments.length?(he=Pe?-1:1,Se()):he<0},ye.precision=function(Pe){return arguments.length?(I=_(z,ve=Pe*Pe),Te()):(0,y._I)(ve)},ye.fitExtent=function(Pe,Ie){return(0,u.QX)(ye,Pe,Ie)},ye.fitSize=function(Pe,Ie){return(0,u.UV)(ye,Pe,Ie)},ye.fitWidth=function(Pe,Ie){return(0,u.Qx)(ye,Pe,Ie)},ye.fitHeight=function(Pe,Ie){return(0,u.OW)(ye,Pe,Ie)},function(){return E=T.apply(this,arguments),ye.invert=E.invert&&_e,Se()}}},47984:function(d,l,n){n.d(l,{c:function(){return O},g:function(){return i}});var c=n(87952),b=n(64528);function i(w,y){var p=y*y,a=p*p;return[w*(.8707-.131979*p+a*(a*(.003971*p-.001529*a)-.013791)),y*(1.007226+p*(.015085+a*(.028874*p-.044475-.005916*a)))]}function O(){return(0,c.c)(i).scale(175.295)}i.invert=function(w,y){var p,a=y,u=25;do{var h=a*a,m=h*h;a-=p=(a*(1.007226+h*(.015085+m*(.028874*h-.044475-.005916*m)))-y)/(1.007226+h*(.045255+m*(.259866*h-.311325-.06507600000000001*m)))}while((0,b.a2)(p)>b.Gg&&--u>0);return[w/(.8707+(h=a*a)*(h*(h*h*h*(.003971-.001529*h)-.013791)-.131979)),a]}},4888:function(d,l,n){n.d(l,{c:function(){return w},t:function(){return O}});var c=n(64528),b=n(62280),i=n(87952);function O(y,p){return[(0,c.W8)(p)*(0,c.g$)(y),(0,c.g$)(p)]}function w(){return(0,i.c)(O).scale(249.5).clipAngle(90+c.Gg)}O.invert=(0,b.g)(c.qR)},92992:function(d,l,n){n.d(l,{O:function(){return O},c:function(){return a}});var c=n(68120),b=n(64528);function i(u,h){return[(0,b.a2)(u)>b.pi?u+Math.round(-u/b.kD)*b.kD:u,h]}function O(u,h,m){return(u%=b.kD)?h||m?(0,c.c)(y(u),p(h,m)):y(u):h||m?p(h,m):i}function w(u){return function(h,m){return[(h+=u)>b.pi?h-b.kD:h<-b.pi?h+b.kD:h,m]}}function y(u){var h=w(u);return h.invert=w(-u),h}function p(u,h){var m=(0,b.W8)(u),v=(0,b.g$)(u),_=(0,b.W8)(h),S=(0,b.g$)(h);function A(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,E=(0,b.g$)(x)*M,C=(0,b.g$)(R),L=C*m+T*v;return[(0,b.WE)(E*_-L*S,T*m-C*v),(0,b.qR)(L*_+E*S)]}return A.invert=function(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,E=(0,b.g$)(x)*M,C=(0,b.g$)(R),L=C*_-E*S;return[(0,b.WE)(E*_+C*S,T*m+L*v),(0,b.qR)(L*m-T*v)]},A}function a(u){function h(m){return(m=u(m[0]*b.qw,m[1]*b.qw))[0]*=b.oh,m[1]*=b.oh,m}return u=O(u[0]*b.qw,u[1]*b.qw,u.length>2?u[2]*b.qw:0),h.invert=function(m){return(m=u.invert(m[0]*b.qw,m[1]*b.qw))[0]*=b.oh,m[1]*=b.oh,m},h}i.invert=i},16016:function(d,l,n){function c(p,a){p&&i.hasOwnProperty(p.type)&&i[p.type](p,a)}n.d(l,{c:function(){return y}});var b={Feature:function(p,a){c(p.geometry,a)},FeatureCollection:function(p,a){for(var u=p.features,h=-1,m=u.length;++h=0;)Le+=We[Ue].value;else Le=1;ke.value=Le}function y(ke,Le){var We,Ue,Ze,Xe,tt,Ee=new h(ke),Ne=+ke.value&&(Ee.value=ke.value),je=[Ee];for(Le==null&&(Le=p);We=je.pop();)if(Ne&&(We.value=+We.data.value),(Ze=Le(We.data))&&(tt=Ze.length))for(We.children=new Array(tt),Xe=tt-1;Xe>=0;--Xe)je.push(Ue=We.children[Xe]=new h(Ze[Xe])),Ue.parent=We,Ue.depth=We.depth+1;return Ee.eachBefore(u)}function p(ke){return ke.children}function a(ke){ke.data=ke.data.data}function u(ke){var Le=0;do ke.height=Le;while((ke=ke.parent)&&ke.height<++Le)}function h(ke){this.data=ke,this.depth=this.height=0,this.parent=null}n.r(l),n.d(l,{cluster:function(){return O},hierarchy:function(){return y},pack:function(){return U},packEnclose:function(){return v},packSiblings:function(){return I},partition:function(){return q},stratify:function(){return ae},tree:function(){return Te},treemap:function(){return He},treemapBinary:function(){return Ve},treemapDice:function(){return oe},treemapResquarify:function(){return Oe},treemapSlice:function(){return Pe},treemapSliceDice:function(){return $e},treemapSquarify:function(){return De}}),h.prototype=y.prototype={constructor:h,count:function(){return this.eachAfter(w)},each:function(ke){var Le,We,Ue,Ze,Xe=this,tt=[Xe];do for(Le=tt.reverse(),tt=[];Xe=Le.pop();)if(ke(Xe),We=Xe.children)for(Ue=0,Ze=We.length;Ue=0;--We)Ze.push(Le[We]);return this},sum:function(ke){return this.eachAfter(function(Le){for(var We=+ke(Le.data)||0,Ue=Le.children,Ze=Ue&&Ue.length;--Ze>=0;)We+=Ue[Ze].value;Le.value=We})},sort:function(ke){return this.eachBefore(function(Le){Le.children&&Le.children.sort(ke)})},path:function(ke){for(var Le=this,We=function(Xe,tt){if(Xe===tt)return Xe;var Ee=Xe.ancestors(),Ne=tt.ancestors(),je=null;for(Xe=Ee.pop(),tt=Ne.pop();Xe===tt;)je=Xe,Xe=Ee.pop(),tt=Ne.pop();return je}(Le,ke),Ue=[Le];Le!==We;)Le=Le.parent,Ue.push(Le);for(var Ze=Ue.length;ke!==We;)Ue.splice(Ze,0,ke),ke=ke.parent;return Ue},ancestors:function(){for(var ke=this,Le=[ke];ke=ke.parent;)Le.push(ke);return Le},descendants:function(){var ke=[];return this.each(function(Le){ke.push(Le)}),ke},leaves:function(){var ke=[];return this.eachBefore(function(Le){Le.children||ke.push(Le)}),ke},links:function(){var ke=this,Le=[];return ke.each(function(We){We!==ke&&Le.push({source:We.parent,target:We})}),Le},copy:function(){return y(this).eachBefore(a)}};var m=Array.prototype.slice;function v(ke){for(var Le,We,Ue=0,Ze=(ke=function(tt){for(var Ee,Ne,je=tt.length;je;)Ne=Math.random()*je--|0,Ee=tt[je],tt[je]=tt[Ne],tt[Ne]=Ee;return tt}(m.call(ke))).length,Xe=[];Ue0&&We*We>Ue*Ue+Ze*Ze}function x(ke,Le){for(var We=0;We(tt*=tt)?(Ue=(je+tt-Ze)/(2*je),Xe=Math.sqrt(Math.max(0,tt/je-Ue*Ue)),We.x=ke.x-Ue*Ee-Xe*Ne,We.y=ke.y-Ue*Ne+Xe*Ee):(Ue=(je+Ze-tt)/(2*je),Xe=Math.sqrt(Math.max(0,Ze/je-Ue*Ue)),We.x=Le.x+Ue*Ee-Xe*Ne,We.y=Le.y+Ue*Ne+Xe*Ee)):(We.x=Le.x+We.r,We.y=Le.y)}function C(ke,Le){var We=ke.r+Le.r-1e-6,Ue=Le.x-ke.x,Ze=Le.y-ke.y;return We>0&&We*We>Ue*Ue+Ze*Ze}function L(ke){var Le=ke._,We=ke.next._,Ue=Le.r+We.r,Ze=(Le.x*We.r+We.x*Le.r)/Ue,Xe=(Le.y*We.r+We.y*Le.r)/Ue;return Ze*Ze+Xe*Xe}function D(ke){this._=ke,this.next=null,this.previous=null}function k(ke){if(!(Ze=ke.length))return 0;var Le,We,Ue,Ze,Xe,tt,Ee,Ne,je,nt,ot;if((Le=ke[0]).x=0,Le.y=0,!(Ze>1))return Le.r;if(We=ke[1],Le.x=-We.r,We.x=Le.r,We.y=0,!(Ze>2))return Le.r+We.r;E(We,Le,Ue=ke[2]),Le=new D(Le),We=new D(We),Ue=new D(Ue),Le.next=Ue.previous=We,We.next=Le.previous=Ue,Ue.next=We.previous=Le;e:for(Ee=3;Ee0)throw new Error("cycle");return tt}return We.id=function(Ue){return arguments.length?(ke=z(Ue),We):ke},We.parentId=function(Ue){return arguments.length?(Le=z(Ue),We):Le},We}function ce(ke,Le){return ke.parent===Le.parent?1:2}function de(ke){var Le=ke.children;return Le?Le[0]:ke.t}function ve(ke){var Le=ke.children;return Le?Le[Le.length-1]:ke.t}function ye(ke,Le,We){var Ue=We/(Le.i-ke.i);Le.c-=Ue,Le.s+=We,ke.c+=Ue,Le.z+=We,Le.m+=We}function _e(ke,Le,We){return ke.a.parent===Le.parent?ke.a:We}function Se(ke,Le){this._=ke,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Le}function Te(){var ke=ce,Le=1,We=1,Ue=null;function Ze(Ne){var je=function(It){for(var qt,en,Gt,Ct,_t,nn=new Se(It,0),gn=[nn];qt=gn.pop();)if(Gt=qt._.children)for(qt.children=new Array(_t=Gt.length),Ct=_t-1;Ct>=0;--Ct)gn.push(en=qt.children[Ct]=new Se(Gt[Ct],Ct)),en.parent=qt;return(nn.parent=new Se(null,0)).children=[nn],nn}(Ne);if(je.eachAfter(Xe),je.parent.m=-je.z,je.eachBefore(tt),Ue)Ne.eachBefore(Ee);else{var nt=Ne,ot=Ne,Ge=Ne;Ne.eachBefore(function(It){It.xot.x&&(ot=It),It.depth>Ge.depth&&(Ge=It)});var ht=nt===ot?1:ke(nt,ot)/2,pt=ht-nt.x,wt=Le/(ot.x+ht+pt),Dt=We/(Ge.depth||1);Ne.eachBefore(function(It){It.x=(It.x+pt)*wt,It.y=It.depth*Dt})}return Ne}function Xe(Ne){var je=Ne.children,nt=Ne.parent.children,ot=Ne.i?nt[Ne.i-1]:null;if(je){(function(ht){for(var pt,wt=0,Dt=0,It=ht.children,qt=It.length;--qt>=0;)(pt=It[qt]).z+=wt,pt.m+=wt,wt+=pt.s+(Dt+=pt.c)})(Ne);var Ge=(je[0].z+je[je.length-1].z)/2;ot?(Ne.z=ot.z+ke(Ne._,ot._),Ne.m=Ne.z-Ge):Ne.z=Ge}else ot&&(Ne.z=ot.z+ke(Ne._,ot._));Ne.parent.A=function(ht,pt,wt){if(pt){for(var Dt,It=ht,qt=ht,en=pt,Gt=It.parent.children[0],Ct=It.m,_t=qt.m,nn=en.m,gn=Gt.m;en=ve(en),It=de(It),en&&It;)Gt=de(Gt),(qt=ve(qt)).a=ht,(Dt=en.z+nn-It.z-Ct+ke(en._,It._))>0&&(ye(_e(en,ht,wt),ht,Dt),Ct+=Dt,_t+=Dt),nn+=en.m,Ct+=It.m,gn+=Gt.m,_t+=qt.m;en&&!ve(qt)&&(qt.t=en,qt.m+=nn-_t),It&&!de(Gt)&&(Gt.t=It,Gt.m+=Ct-gn,wt=ht)}return wt}(Ne,ot,Ne.parent.A||nt[0])}function tt(Ne){Ne._.x=Ne.z+Ne.parent.m,Ne.m+=Ne.parent.m}function Ee(Ne){Ne.x*=Le,Ne.y=Ne.depth*We}return Ze.separation=function(Ne){return arguments.length?(ke=Ne,Ze):ke},Ze.size=function(Ne){return arguments.length?(Ue=!1,Le=+Ne[0],We=+Ne[1],Ze):Ue?null:[Le,We]},Ze.nodeSize=function(Ne){return arguments.length?(Ue=!0,Le=+Ne[0],We=+Ne[1],Ze):Ue?[Le,We]:null},Ze}function Pe(ke,Le,We,Ue,Ze){for(var Xe,tt=ke.children,Ee=-1,Ne=tt.length,je=ke.value&&(Ze-We)/ke.value;++EeGe&&(Ge=Ee),Dt=nt*nt*wt,(ht=Math.max(Ge/Dt,Dt/ot))>pt){nt-=Ee;break}pt=ht}It.push(tt={value:nt,dice:Ne1?Ue:1)},We}(Ie);function He(){var ke=De,Le=!1,We=1,Ue=1,Ze=[0],Xe=$,tt=$,Ee=$,Ne=$,je=$;function nt(Ge){return Ge.x0=Ge.y0=0,Ge.x1=We,Ge.y1=Ue,Ge.eachBefore(ot),Ze=[0],Le&&Ge.eachBefore(K),Ge}function ot(Ge){var ht=Ze[Ge.depth],pt=Ge.x0+ht,wt=Ge.y0+ht,Dt=Ge.x1-ht,It=Ge.y1-ht;Dt=Ge-1){var qt=Ee[ot];return qt.x0=pt,qt.y0=wt,qt.x1=Dt,void(qt.y1=It)}for(var en=je[ot],Gt=ht/2+en,Ct=ot+1,_t=Ge-1;Ct<_t;){var nn=Ct+_t>>>1;je[nn]It-wt){var mn=(pt*bn+Dt*gn)/ht;nt(ot,Ct,gn,pt,wt,mn,It),nt(Ct,Ge,bn,mn,wt,Dt,It)}else{var vt=(wt*bn+It*gn)/ht;nt(ot,Ct,gn,pt,wt,Dt,vt),nt(Ct,Ge,bn,pt,vt,Dt,It)}})(0,Ne,ke.value,Le,We,Ue,Ze)}function $e(ke,Le,We,Ue,Ze){(1&ke.depth?Pe:oe)(ke,Le,We,Ue,Ze)}var Oe=function ke(Le){function We(Ue,Ze,Xe,tt,Ee){if((Ne=Ue._squarify)&&Ne.ratio===Le)for(var Ne,je,nt,ot,Ge,ht=-1,pt=Ne.length,wt=Ue.value;++ht1?Ue:1)},We}(Ie)},10132:function(d,l,n){n.d(l,{ak:function(){return A}});var c=Math.PI,b=2*c,i=1e-6,O=b-i;function w(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function y(){return new w}w.prototype=y.prototype={constructor:w,moveTo:function(x,R){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(x,R){this._+="L"+(this._x1=+x)+","+(this._y1=+R)},quadraticCurveTo:function(x,R,M,T){this._+="Q"+ +x+","+ +R+","+(this._x1=+M)+","+(this._y1=+T)},bezierCurveTo:function(x,R,M,T,E,C){this._+="C"+ +x+","+ +R+","+ +M+","+ +T+","+(this._x1=+E)+","+(this._y1=+C)},arcTo:function(x,R,M,T,E){x=+x,R=+R,M=+M,T=+T,E=+E;var C=this._x1,L=this._y1,D=M-x,k=T-R,I=C-x,z=L-R,$=I*I+z*z;if(E<0)throw new Error("negative radius: "+E);if(this._x1===null)this._+="M"+(this._x1=x)+","+(this._y1=R);else if($>i)if(Math.abs(z*D-k*I)>i&&E){var Q=M-C,j=T-L,U=D*D+k*k,X=Q*Q+j*j,te=Math.sqrt(U),W=Math.sqrt($),K=E*Math.tan((c-Math.acos((U+$-X)/(2*te*W)))/2),oe=K/W,q=K/te;Math.abs(oe-1)>i&&(this._+="L"+(x+oe*I)+","+(R+oe*z)),this._+="A"+E+","+E+",0,0,"+ +(z*Q>I*j)+","+(this._x1=x+q*D)+","+(this._y1=R+q*k)}else this._+="L"+(this._x1=x)+","+(this._y1=R)},arc:function(x,R,M,T,E,C){x=+x,R=+R,C=!!C;var L=(M=+M)*Math.cos(T),D=M*Math.sin(T),k=x+L,I=R+D,z=1^C,$=C?T-E:E-T;if(M<0)throw new Error("negative radius: "+M);this._x1===null?this._+="M"+k+","+I:(Math.abs(this._x1-k)>i||Math.abs(this._y1-I)>i)&&(this._+="L"+k+","+I),M&&($<0&&($=$%b+b),$>O?this._+="A"+M+","+M+",0,1,"+z+","+(x-L)+","+(R-D)+"A"+M+","+M+",0,1,"+z+","+(this._x1=k)+","+(this._y1=I):$>i&&(this._+="A"+M+","+M+",0,"+ +($>=c)+","+z+","+(this._x1=x+M*Math.cos(E))+","+(this._y1=R+M*Math.sin(E))))},rect:function(x,R,M,T){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)+"h"+ +M+"v"+ +T+"h"+-M+"Z"},toString:function(){return this._}};var p=y,a=Array.prototype.slice;function u(x){return function(){return x}}function h(x){return x[0]}function m(x){return x[1]}function v(x){return x.source}function _(x){return x.target}function S(x,R,M,T,E){x.moveTo(R,M),x.bezierCurveTo(R=(R+T)/2,M,R,E,T,E)}function A(){return function(x){var R=v,M=_,T=h,E=m,C=null;function L(){var D,k=a.call(arguments),I=R.apply(this,k),z=M.apply(this,k);if(C||(C=D=p()),x(C,+T.apply(this,(k[0]=I,k)),+E.apply(this,k),+T.apply(this,(k[0]=z,k)),+E.apply(this,k)),D)return C=null,D+""||null}return L.source=function(D){return arguments.length?(R=D,L):R},L.target=function(D){return arguments.length?(M=D,L):M},L.x=function(D){return arguments.length?(T=typeof D=="function"?D:u(+D),L):T},L.y=function(D){return arguments.length?(E=typeof D=="function"?D:u(+D),L):E},L.context=function(D){return arguments.length?(C=D??null,L):C},L}(S)}},94336:function(d,l,n){n.d(l,{Yn:function(){return v},m_:function(){return h},E9:function(){return _}});var c=n(8208),b=n(58931),i=n(46192),O=n(68936),w=n(32171),y=n(53528);function p(Ct){if(0<=Ct.y&&Ct.y<100){var _t=new Date(-1,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L);return _t.setFullYear(Ct.y),_t}return new Date(Ct.y,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L)}function a(Ct){if(0<=Ct.y&&Ct.y<100){var _t=new Date(Date.UTC(-1,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L));return _t.setUTCFullYear(Ct.y),_t}return new Date(Date.UTC(Ct.y,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L))}function u(Ct,_t,nn){return{y:Ct,m:_t,d:nn,H:0,M:0,S:0,L:0}}function h(Ct){var _t=Ct.dateTime,nn=Ct.date,gn=Ct.time,bn=Ct.periods,mn=Ct.days,vt=Ct.shortDays,bt=Ct.months,lt=Ct.shortMonths,yt=E(bn),zt=C(bn),Rt=E(mn),it=C(mn),at=E(vt),Lt=C(vt),xt=E(bt),Ht=C(bt),Xt=E(lt),Yt=C(lt),Qt={a:function(vn){return vt[vn.getDay()]},A:function(vn){return mn[vn.getDay()]},b:function(vn){return lt[vn.getMonth()]},B:function(vn){return bt[vn.getMonth()]},c:null,d:ae,e:ae,f:_e,H:ce,I:de,j:ve,L:ye,m:Se,M:Te,p:function(vn){return bn[+(vn.getHours()>=12)]},q:function(vn){return 1+~~(vn.getMonth()/3)},Q:en,s:Gt,S:Pe,u:Ie,U:ze,V:De,w:He,W:Ve,x:null,X:null,y:$e,Y:Oe,Z:ke,"%":qt},Pt={a:function(vn){return vt[vn.getUTCDay()]},A:function(vn){return mn[vn.getUTCDay()]},b:function(vn){return lt[vn.getUTCMonth()]},B:function(vn){return bt[vn.getUTCMonth()]},c:null,d:Le,e:Le,f:tt,H:We,I:Ue,j:Ze,L:Xe,m:Ee,M:Ne,p:function(vn){return bn[+(vn.getUTCHours()>=12)]},q:function(vn){return 1+~~(vn.getUTCMonth()/3)},Q:en,s:Gt,S:je,u:nt,U:ot,V:Ge,w:ht,W:pt,x:null,X:null,y:wt,Y:Dt,Z:It,"%":qt},tn={a:function(vn,Nn,er){var En=at.exec(Nn.slice(er));return En?(vn.w=Lt[En[0].toLowerCase()],er+En[0].length):-1},A:function(vn,Nn,er){var En=Rt.exec(Nn.slice(er));return En?(vn.w=it[En[0].toLowerCase()],er+En[0].length):-1},b:function(vn,Nn,er){var En=Xt.exec(Nn.slice(er));return En?(vn.m=Yt[En[0].toLowerCase()],er+En[0].length):-1},B:function(vn,Nn,er){var En=xt.exec(Nn.slice(er));return En?(vn.m=Ht[En[0].toLowerCase()],er+En[0].length):-1},c:function(vn,Nn,er){return dn(vn,_t,Nn,er)},d:te,e:te,f:ee,H:K,I:K,j:W,L:Y,m:X,M:oe,p:function(vn,Nn,er){var En=yt.exec(Nn.slice(er));return En?(vn.p=zt[En[0].toLowerCase()],er+En[0].length):-1},q:U,Q:he,s:se,S:q,u:D,U:k,V:I,w:L,W:z,x:function(vn,Nn,er){return dn(vn,nn,Nn,er)},X:function(vn,Nn,er){return dn(vn,gn,Nn,er)},y:Q,Y:$,Z:j,"%":me};function Kt(vn,Nn){return function(er){var En,In,Un,xr=[],Sr=-1,ar=0,Fn=vn.length;for(er instanceof Date||(er=new Date(+er));++Sr53)return null;"w"in Un||(Un.w=1),"Z"in Un?(In=(En=a(u(Un.y,0,1))).getUTCDay(),En=In>4||In===0?c.ot.ceil(En):(0,c.ot)(En),En=b.c.offset(En,7*(Un.V-1)),Un.y=En.getUTCFullYear(),Un.m=En.getUTCMonth(),Un.d=En.getUTCDate()+(Un.w+6)%7):(In=(En=p(u(Un.y,0,1))).getDay(),En=In>4||In===0?i.qT.ceil(En):(0,i.qT)(En),En=O.c.offset(En,7*(Un.V-1)),Un.y=En.getFullYear(),Un.m=En.getMonth(),Un.d=En.getDate()+(Un.w+6)%7)}else("W"in Un||"U"in Un)&&("w"in Un||(Un.w="u"in Un?Un.u%7:"W"in Un?1:0),In="Z"in Un?a(u(Un.y,0,1)).getUTCDay():p(u(Un.y,0,1)).getDay(),Un.m=0,Un.d="W"in Un?(Un.w+6)%7+7*Un.W-(In+5)%7:Un.w+7*Un.U-(In+6)%7);return"Z"in Un?(Un.H+=Un.Z/100|0,Un.M+=Un.Z%100,a(Un)):p(Un)}}function dn(vn,Nn,er,En){for(var In,Un,xr=0,Sr=Nn.length,ar=er.length;xr=ar)return-1;if((In=Nn.charCodeAt(xr++))===37){if(In=Nn.charAt(xr++),!(Un=tn[In in S?Nn.charAt(xr++):In])||(En=Un(vn,er,En))<0)return-1}else if(In!=er.charCodeAt(En++))return-1}return En}return Qt.x=Kt(nn,Qt),Qt.X=Kt(gn,Qt),Qt.c=Kt(_t,Qt),Pt.x=Kt(nn,Pt),Pt.X=Kt(gn,Pt),Pt.c=Kt(_t,Pt),{format:function(vn){var Nn=Kt(vn+="",Qt);return Nn.toString=function(){return vn},Nn},parse:function(vn){var Nn=fn(vn+="",!1);return Nn.toString=function(){return vn},Nn},utcFormat:function(vn){var Nn=Kt(vn+="",Pt);return Nn.toString=function(){return vn},Nn},utcParse:function(vn){var Nn=fn(vn+="",!0);return Nn.toString=function(){return vn},Nn}}}var m,v,_,S={"-":"",_:" ",0:"0"},A=/^\s*\d+/,x=/^%/,R=/[\\^$*+?|[\]().{}]/g;function M(Ct,_t,nn){var gn=Ct<0?"-":"",bn=(gn?-Ct:Ct)+"",mn=bn.length;return gn+(mn68?1900:2e3),nn+gn[0].length):-1}function j(Ct,_t,nn){var gn=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(_t.slice(nn,nn+6));return gn?(Ct.Z=gn[1]?0:-(gn[2]+(gn[3]||"00")),nn+gn[0].length):-1}function U(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+1));return gn?(Ct.q=3*gn[0]-3,nn+gn[0].length):-1}function X(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.m=gn[0]-1,nn+gn[0].length):-1}function te(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.d=+gn[0],nn+gn[0].length):-1}function W(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+3));return gn?(Ct.m=0,Ct.d=+gn[0],nn+gn[0].length):-1}function K(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.H=+gn[0],nn+gn[0].length):-1}function oe(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.M=+gn[0],nn+gn[0].length):-1}function q(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.S=+gn[0],nn+gn[0].length):-1}function Y(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+3));return gn?(Ct.L=+gn[0],nn+gn[0].length):-1}function ee(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+6));return gn?(Ct.L=Math.floor(gn[0]/1e3),nn+gn[0].length):-1}function me(Ct,_t,nn){var gn=x.exec(_t.slice(nn,nn+1));return gn?nn+gn[0].length:-1}function he(Ct,_t,nn){var gn=A.exec(_t.slice(nn));return gn?(Ct.Q=+gn[0],nn+gn[0].length):-1}function se(Ct,_t,nn){var gn=A.exec(_t.slice(nn));return gn?(Ct.s=+gn[0],nn+gn[0].length):-1}function ae(Ct,_t){return M(Ct.getDate(),_t,2)}function ce(Ct,_t){return M(Ct.getHours(),_t,2)}function de(Ct,_t){return M(Ct.getHours()%12||12,_t,2)}function ve(Ct,_t){return M(1+O.c.count((0,w.c)(Ct),Ct),_t,3)}function ye(Ct,_t){return M(Ct.getMilliseconds(),_t,3)}function _e(Ct,_t){return ye(Ct,_t)+"000"}function Se(Ct,_t){return M(Ct.getMonth()+1,_t,2)}function Te(Ct,_t){return M(Ct.getMinutes(),_t,2)}function Pe(Ct,_t){return M(Ct.getSeconds(),_t,2)}function Ie(Ct){var _t=Ct.getDay();return _t===0?7:_t}function ze(Ct,_t){return M(i.uU.count((0,w.c)(Ct)-1,Ct),_t,2)}function De(Ct,_t){var nn=Ct.getDay();return Ct=nn>=4||nn===0?(0,i.kD)(Ct):i.kD.ceil(Ct),M(i.kD.count((0,w.c)(Ct),Ct)+((0,w.c)(Ct).getDay()===4),_t,2)}function He(Ct){return Ct.getDay()}function Ve(Ct,_t){return M(i.qT.count((0,w.c)(Ct)-1,Ct),_t,2)}function $e(Ct,_t){return M(Ct.getFullYear()%100,_t,2)}function Oe(Ct,_t){return M(Ct.getFullYear()%1e4,_t,4)}function ke(Ct){var _t=Ct.getTimezoneOffset();return(_t>0?"-":(_t*=-1,"+"))+M(_t/60|0,"0",2)+M(_t%60,"0",2)}function Le(Ct,_t){return M(Ct.getUTCDate(),_t,2)}function We(Ct,_t){return M(Ct.getUTCHours(),_t,2)}function Ue(Ct,_t){return M(Ct.getUTCHours()%12||12,_t,2)}function Ze(Ct,_t){return M(1+b.c.count((0,y.c)(Ct),Ct),_t,3)}function Xe(Ct,_t){return M(Ct.getUTCMilliseconds(),_t,3)}function tt(Ct,_t){return Xe(Ct,_t)+"000"}function Ee(Ct,_t){return M(Ct.getUTCMonth()+1,_t,2)}function Ne(Ct,_t){return M(Ct.getUTCMinutes(),_t,2)}function je(Ct,_t){return M(Ct.getUTCSeconds(),_t,2)}function nt(Ct){var _t=Ct.getUTCDay();return _t===0?7:_t}function ot(Ct,_t){return M(c.EV.count((0,y.c)(Ct)-1,Ct),_t,2)}function Ge(Ct,_t){var nn=Ct.getUTCDay();return Ct=nn>=4||nn===0?(0,c.yA)(Ct):c.yA.ceil(Ct),M(c.yA.count((0,y.c)(Ct),Ct)+((0,y.c)(Ct).getUTCDay()===4),_t,2)}function ht(Ct){return Ct.getUTCDay()}function pt(Ct,_t){return M(c.ot.count((0,y.c)(Ct)-1,Ct),_t,2)}function wt(Ct,_t){return M(Ct.getUTCFullYear()%100,_t,2)}function Dt(Ct,_t){return M(Ct.getUTCFullYear()%1e4,_t,4)}function It(){return"+0000"}function qt(){return"%"}function en(Ct){return+Ct}function Gt(Ct){return Math.floor(+Ct/1e3)}m=h({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"]}),v=m.format,m.parse,_=m.utcFormat,m.utcParse},68936:function(d,l,n){n.d(l,{m:function(){return O}});var c=n(81628),b=n(69792),i=(0,c.c)(function(w){w.setHours(0,0,0,0)},function(w,y){w.setDate(w.getDate()+y)},function(w,y){return(y-w-(y.getTimezoneOffset()-w.getTimezoneOffset())*b.iy)/b.SK},function(w){return w.getDate()-1});l.c=i;var O=i.range},69792:function(d,l,n){n.d(l,{KK:function(){return w},SK:function(){return O},cg:function(){return i},iy:function(){return b},yc:function(){return c}});var c=1e3,b=6e4,i=36e5,O=864e5,w=6048e5},73220:function(d,l,n){n.r(l),n.d(l,{timeDay:function(){return A.c},timeDays:function(){return A.m},timeFriday:function(){return x.iB},timeFridays:function(){return x.sJ},timeHour:function(){return _},timeHours:function(){return S},timeInterval:function(){return c.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return O},timeMinute:function(){return h},timeMinutes:function(){return m},timeMonday:function(){return x.qT},timeMondays:function(){return x.QP},timeMonth:function(){return M},timeMonths:function(){return T},timeSaturday:function(){return x.Wc},timeSaturdays:function(){return x.aI},timeSecond:function(){return p},timeSeconds:function(){return a},timeSunday:function(){return x.uU},timeSundays:function(){return x.Ab},timeThursday:function(){return x.kD},timeThursdays:function(){return x.eC},timeTuesday:function(){return x.Mf},timeTuesdays:function(){return x.Oc},timeWednesday:function(){return x.eg},timeWednesdays:function(){return x.sn},timeWeek:function(){return x.uU},timeWeeks:function(){return x.Ab},timeYear:function(){return E.c},timeYears:function(){return E.Q},utcDay:function(){return $.c},utcDays:function(){return $.o},utcFriday:function(){return Q.od},utcFridays:function(){return Q.iG},utcHour:function(){return I},utcHours:function(){return z},utcMillisecond:function(){return i},utcMilliseconds:function(){return O},utcMinute:function(){return L},utcMinutes:function(){return D},utcMonday:function(){return Q.ot},utcMondays:function(){return Q.iO},utcMonth:function(){return U},utcMonths:function(){return X},utcSaturday:function(){return Q.Ad},utcSaturdays:function(){return Q.K8},utcSecond:function(){return p},utcSeconds:function(){return a},utcSunday:function(){return Q.EV},utcSundays:function(){return Q.Wq},utcThursday:function(){return Q.yA},utcThursdays:function(){return Q.ob},utcTuesday:function(){return Q.sG},utcTuesdays:function(){return Q.kl},utcWednesday:function(){return Q._6},utcWednesdays:function(){return Q.W_},utcWeek:function(){return Q.EV},utcWeeks:function(){return Q.Wq},utcYear:function(){return te.c},utcYears:function(){return te.i}});var c=n(81628),b=(0,c.c)(function(){},function(W,K){W.setTime(+W+K)},function(W,K){return K-W});b.every=function(W){return W=Math.floor(W),isFinite(W)&&W>0?W>1?(0,c.c)(function(K){K.setTime(Math.floor(K/W)*W)},function(K,oe){K.setTime(+K+oe*W)},function(K,oe){return(oe-K)/W}):b:null};var i=b,O=b.range,w=n(69792),y=(0,c.c)(function(W){W.setTime(W-W.getMilliseconds())},function(W,K){W.setTime(+W+K*w.yc)},function(W,K){return(K-W)/w.yc},function(W){return W.getUTCSeconds()}),p=y,a=y.range,u=(0,c.c)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*w.yc)},function(W,K){W.setTime(+W+K*w.iy)},function(W,K){return(K-W)/w.iy},function(W){return W.getMinutes()}),h=u,m=u.range,v=(0,c.c)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*w.yc-W.getMinutes()*w.iy)},function(W,K){W.setTime(+W+K*w.cg)},function(W,K){return(K-W)/w.cg},function(W){return W.getHours()}),_=v,S=v.range,A=n(68936),x=n(46192),R=(0,c.c)(function(W){W.setDate(1),W.setHours(0,0,0,0)},function(W,K){W.setMonth(W.getMonth()+K)},function(W,K){return K.getMonth()-W.getMonth()+12*(K.getFullYear()-W.getFullYear())},function(W){return W.getMonth()}),M=R,T=R.range,E=n(32171),C=(0,c.c)(function(W){W.setUTCSeconds(0,0)},function(W,K){W.setTime(+W+K*w.iy)},function(W,K){return(K-W)/w.iy},function(W){return W.getUTCMinutes()}),L=C,D=C.range,k=(0,c.c)(function(W){W.setUTCMinutes(0,0,0)},function(W,K){W.setTime(+W+K*w.cg)},function(W,K){return(K-W)/w.cg},function(W){return W.getUTCHours()}),I=k,z=k.range,$=n(58931),Q=n(8208),j=(0,c.c)(function(W){W.setUTCDate(1),W.setUTCHours(0,0,0,0)},function(W,K){W.setUTCMonth(W.getUTCMonth()+K)},function(W,K){return K.getUTCMonth()-W.getUTCMonth()+12*(K.getUTCFullYear()-W.getUTCFullYear())},function(W){return W.getUTCMonth()}),U=j,X=j.range,te=n(53528)},81628:function(d,l,n){n.d(l,{c:function(){return i}});var c=new Date,b=new Date;function i(O,w,y,p){function a(u){return O(u=arguments.length===0?new Date:new Date(+u)),u}return a.floor=function(u){return O(u=new Date(+u)),u},a.ceil=function(u){return O(u=new Date(u-1)),w(u,1),O(u),u},a.round=function(u){var h=a(u),m=a.ceil(u);return u-h0))return _;do _.push(v=new Date(+u)),w(u,m),O(u);while(v=h)for(;O(h),!u(h);)h.setTime(h-1)},function(h,m){if(h>=h)if(m<0)for(;++m<=0;)for(;w(h,-1),!u(h););else for(;--m>=0;)for(;w(h,1),!u(h););})},y&&(a.count=function(u,h){return c.setTime(+u),b.setTime(+h),O(c),O(b),Math.floor(y(c,b))},a.every=function(u){return u=Math.floor(u),isFinite(u)&&u>0?u>1?a.filter(p?function(h){return p(h)%u==0}:function(h){return a.count(0,h)%u==0}):a:null}),a}},58931:function(d,l,n){n.d(l,{o:function(){return O}});var c=n(81628),b=n(69792),i=(0,c.c)(function(w){w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCDate(w.getUTCDate()+y)},function(w,y){return(y-w)/b.SK},function(w){return w.getUTCDate()-1});l.c=i;var O=i.range},8208:function(d,l,n){n.d(l,{Ad:function(){return h},EV:function(){return O},K8:function(){return R},W_:function(){return S},Wq:function(){return m},_6:function(){return p},iG:function(){return x},iO:function(){return v},kl:function(){return _},ob:function(){return A},od:function(){return u},ot:function(){return w},sG:function(){return y},yA:function(){return a}});var c=n(81628),b=n(69792);function i(M){return(0,c.c)(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-M)%7),T.setUTCHours(0,0,0,0)},function(T,E){T.setUTCDate(T.getUTCDate()+7*E)},function(T,E){return(E-T)/b.KK})}var O=i(0),w=i(1),y=i(2),p=i(3),a=i(4),u=i(5),h=i(6),m=O.range,v=w.range,_=y.range,S=p.range,A=a.range,x=u.range,R=h.range},53528:function(d,l,n){n.d(l,{i:function(){return i}});var c=n(81628),b=(0,c.c)(function(O){O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},function(O,w){O.setUTCFullYear(O.getUTCFullYear()+w)},function(O,w){return w.getUTCFullYear()-O.getUTCFullYear()},function(O){return O.getUTCFullYear()});b.every=function(O){return isFinite(O=Math.floor(O))&&O>0?(0,c.c)(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/O)*O),w.setUTCMonth(0,1),w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCFullYear(w.getUTCFullYear()+y*O)}):null},l.c=b;var i=b.range},46192:function(d,l,n){n.d(l,{Ab:function(){return m},Mf:function(){return y},Oc:function(){return _},QP:function(){return v},Wc:function(){return h},aI:function(){return R},eC:function(){return A},eg:function(){return p},iB:function(){return u},kD:function(){return a},qT:function(){return w},sJ:function(){return x},sn:function(){return S},uU:function(){return O}});var c=n(81628),b=n(69792);function i(M){return(0,c.c)(function(T){T.setDate(T.getDate()-(T.getDay()+7-M)%7),T.setHours(0,0,0,0)},function(T,E){T.setDate(T.getDate()+7*E)},function(T,E){return(E-T-(E.getTimezoneOffset()-T.getTimezoneOffset())*b.iy)/b.KK})}var O=i(0),w=i(1),y=i(2),p=i(3),a=i(4),u=i(5),h=i(6),m=O.range,v=w.range,_=y.range,S=p.range,A=a.range,x=u.range,R=h.range},32171:function(d,l,n){n.d(l,{Q:function(){return i}});var c=n(81628),b=(0,c.c)(function(O){O.setMonth(0,1),O.setHours(0,0,0,0)},function(O,w){O.setFullYear(O.getFullYear()+w)},function(O,w){return w.getFullYear()-O.getFullYear()},function(O){return O.getFullYear()});b.every=function(O){return isFinite(O=Math.floor(O))&&O>0?(0,c.c)(function(w){w.setFullYear(Math.floor(w.getFullYear()/O)*O),w.setMonth(0,1),w.setHours(0,0,0,0)},function(w,y){w.setFullYear(w.getFullYear()+y*O)}):null},l.c=b;var i=b.range},64348:function(d,l,n){var c=n(39640)(),b=n(53664),i=c&&b("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch{i=!1}var O=b("%SyntaxError%"),w=b("%TypeError%"),y=n(2304);d.exports=function(p,a,u){if(!p||typeof p!="object"&&typeof p!="function")throw new w("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new w("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new w("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new w("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new w("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new w("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,m=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,_=arguments.length>6&&arguments[6],S=!!y&&y(p,a);if(i)i(p,a,{configurable:v===null&&S?S.configurable:!v,enumerable:h===null&&S?S.enumerable:!h,value:u,writable:m===null&&S?S.writable:!m});else{if(!_&&(h||m||v))throw new O("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");p[a]=u}}},81288:function(d,l,n){var c=n(41820),b=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,O=Array.prototype.concat,w=Object.defineProperty,y=n(39640)(),p=w&&y,a=function(h,m,v,_){if(m in h){if(_===!0){if(h[m]===v)return}else if(typeof(S=_)!="function"||i.call(S)!=="[object Function]"||!_())return}var S;p?w(h,m,{configurable:!0,enumerable:!1,value:v,writable:!0}):h[m]=v},u=function(h,m){var v=arguments.length>2?arguments[2]:{},_=c(m);b&&(_=O.call(_,Object.getOwnPropertySymbols(m)));for(var S=0;S<_.length;S+=1)a(h,_[S],m[_[S]],v[_[S]])};u.supportsDescriptors=!!p,d.exports=u},31264:function(d){d.exports=function(){for(var l=0;lp*a){var _=(v-m)/p;y[h]=1e3*_}}return y}function b(i){for(var O=[],w=i[0];w<=i[1];w++)for(var y=String.fromCharCode(w),p=i[0];p0)return function(b,i){var O,w;for(O=new Array(b),w=0;w80*$){Q=U=I[0],j=X=I[1];for(var me=$;meU&&(U=te),W>X&&(X=W);K=(K=Math.max(U-Q,X-j))!==0?1/K:0}return b(Y,ee,$,Q,j,K),ee}function n(I,z,$,Q,j){var U,X;if(j===k(I,z,$,Q)>0)for(U=z;U<$;U+=Q)X=C(U,I[U],I[U+1],X);else for(U=$-Q;U>=z;U-=Q)X=C(U,I[U],I[U+1],X);return X&&A(X,X.next)&&(L(X),X=X.next),X}function c(I,z){if(!I)return I;z||(z=I);var $,Q=I;do if($=!1,Q.steiner||!A(Q,Q.next)&&S(Q.prev,Q,Q.next)!==0)Q=Q.next;else{if(L(Q),(Q=z=Q.prev)===Q.next)break;$=!0}while($||Q!==z);return z}function b(I,z,$,Q,j,U,X){if(I){!X&&U&&function(oe,q,Y,ee){var me=oe;do me.z===null&&(me.z=h(me.x,me.y,q,Y,ee)),me.prevZ=me.prev,me.nextZ=me.next,me=me.next;while(me!==oe);me.prevZ.nextZ=null,me.prevZ=null,function(he){var se,ae,ce,de,ve,ye,_e,Se,Te=1;do{for(ae=he,he=null,ve=null,ye=0;ae;){for(ye++,ce=ae,_e=0,se=0;se0||Se>0&&ce;)_e!==0&&(Se===0||!ce||ae.z<=ce.z)?(de=ae,ae=ae.nextZ,_e--):(de=ce,ce=ce.nextZ,Se--),ve?ve.nextZ=de:he=de,de.prevZ=ve,ve=de;ae=ce}ve.nextZ=null,Te*=2}while(ye>1)}(me)}(I,Q,j,U);for(var te,W,K=I;I.prev!==I.next;)if(te=I.prev,W=I.next,U?O(I,Q,j,U):i(I))z.push(te.i/$),z.push(I.i/$),z.push(W.i/$),L(I),I=W.next,K=W.next;else if((I=W)===K){X?X===1?b(I=w(c(I),z,$),z,$,Q,j,U,2):X===2&&y(I,z,$,Q,j,U):b(c(I),z,$,Q,j,U,1);break}}}function i(I){var z=I.prev,$=I,Q=I.next;if(S(z,$,Q)>=0)return!1;for(var j=I.next.next;j!==I.prev;){if(v(z.x,z.y,$.x,$.y,Q.x,Q.y,j.x,j.y)&&S(j.prev,j,j.next)>=0)return!1;j=j.next}return!0}function O(I,z,$,Q){var j=I.prev,U=I,X=I.next;if(S(j,U,X)>=0)return!1;for(var te=j.xU.x?j.x>X.x?j.x:X.x:U.x>X.x?U.x:X.x,oe=j.y>U.y?j.y>X.y?j.y:X.y:U.y>X.y?U.y:X.y,q=h(te,W,z,$,Q),Y=h(K,oe,z,$,Q),ee=I.prevZ,me=I.nextZ;ee&&ee.z>=q&&me&&me.z<=Y;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&S(ee.prev,ee,ee.next)>=0||(ee=ee.prevZ,me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&S(me.prev,me,me.next)>=0))return!1;me=me.nextZ}for(;ee&&ee.z>=q;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&S(ee.prev,ee,ee.next)>=0)return!1;ee=ee.prevZ}for(;me&&me.z<=Y;){if(me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&S(me.prev,me,me.next)>=0)return!1;me=me.nextZ}return!0}function w(I,z,$){var Q=I;do{var j=Q.prev,U=Q.next.next;!A(j,U)&&x(j,Q,Q.next,U)&&T(j,U)&&T(U,j)&&(z.push(j.i/$),z.push(Q.i/$),z.push(U.i/$),L(Q),L(Q.next),Q=I=U),Q=Q.next}while(Q!==I);return c(Q)}function y(I,z,$,Q,j,U){var X=I;do{for(var te=X.next.next;te!==X.prev;){if(X.i!==te.i&&_(X,te)){var W=E(X,te);return X=c(X,X.next),W=c(W,W.next),b(X,z,$,Q,j,U),void b(W,z,$,Q,j,U)}te=te.next}X=X.next}while(X!==I)}function p(I,z){return I.x-z.x}function a(I,z){if(z=function(Q,j){var U,X=j,te=Q.x,W=Q.y,K=-1/0;do{if(W<=X.y&&W>=X.next.y&&X.next.y!==X.y){var oe=X.x+(W-X.y)*(X.next.x-X.x)/(X.next.y-X.y);if(oe<=te&&oe>K){if(K=oe,oe===te){if(W===X.y)return X;if(W===X.next.y)return X.next}U=X.x=X.x&&X.x>=ee&&te!==X.x&&v(WU.x||X.x===U.x&&u(U,X)))&&(U=X,he=q)),X=X.next;while(X!==Y);return U}(I,z),z){var $=E(z,I);c(z,z.next),c($,$.next)}}function u(I,z){return S(I.prev,I,z.prev)<0&&S(z.next,I,I.next)<0}function h(I,z,$,Q,j){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=32767*(I-$)*j)|I<<8))|I<<4))|I<<2))|I<<1))|(z=1431655765&((z=858993459&((z=252645135&((z=16711935&((z=32767*(z-Q)*j)|z<<8))|z<<4))|z<<2))|z<<1))<<1}function m(I){var z=I,$=I;do(z.x<$.x||z.x===$.x&&z.y<$.y)&&($=z),z=z.next;while(z!==I);return $}function v(I,z,$,Q,j,U,X,te){return(j-X)*(z-te)-(I-X)*(U-te)>=0&&(I-X)*(Q-te)-($-X)*(z-te)>=0&&($-X)*(U-te)-(j-X)*(Q-te)>=0}function _(I,z){return I.next.i!==z.i&&I.prev.i!==z.i&&!function($,Q){var j=$;do{if(j.i!==$.i&&j.next.i!==$.i&&j.i!==Q.i&&j.next.i!==Q.i&&x(j,j.next,$,Q))return!0;j=j.next}while(j!==$);return!1}(I,z)&&(T(I,z)&&T(z,I)&&function($,Q){var j=$,U=!1,X=($.x+Q.x)/2,te=($.y+Q.y)/2;do j.y>te!=j.next.y>te&&j.next.y!==j.y&&X<(j.next.x-j.x)*(te-j.y)/(j.next.y-j.y)+j.x&&(U=!U),j=j.next;while(j!==$);return U}(I,z)&&(S(I.prev,I,z.prev)||S(I,z.prev,z))||A(I,z)&&S(I.prev,I,I.next)>0&&S(z.prev,z,z.next)>0)}function S(I,z,$){return(z.y-I.y)*($.x-z.x)-(z.x-I.x)*($.y-z.y)}function A(I,z){return I.x===z.x&&I.y===z.y}function x(I,z,$,Q){var j=M(S(I,z,$)),U=M(S(I,z,Q)),X=M(S($,Q,I)),te=M(S($,Q,z));return j!==U&&X!==te||!(j!==0||!R(I,$,z))||!(U!==0||!R(I,Q,z))||!(X!==0||!R($,I,Q))||!(te!==0||!R($,z,Q))}function R(I,z,$){return z.x<=Math.max(I.x,$.x)&&z.x>=Math.min(I.x,$.x)&&z.y<=Math.max(I.y,$.y)&&z.y>=Math.min(I.y,$.y)}function M(I){return I>0?1:I<0?-1:0}function T(I,z){return S(I.prev,I,I.next)<0?S(I,z,I.next)>=0&&S(I,I.prev,z)>=0:S(I,z,I.prev)<0||S(I,I.next,z)<0}function E(I,z){var $=new D(I.i,I.x,I.y),Q=new D(z.i,z.x,z.y),j=I.next,U=z.prev;return I.next=z,z.prev=I,$.next=j,j.prev=$,Q.next=$,$.prev=Q,U.next=Q,Q.prev=U,Q}function C(I,z,$,Q){var j=new D(I,z,$);return Q?(j.next=Q.next,j.prev=Q,Q.next.prev=j,Q.next=j):(j.prev=j,j.next=j),j}function L(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function D(I,z,$){this.i=I,this.x=z,this.y=$,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function k(I,z,$,Q){for(var j=0,U=z,X=$-Q;U<$;U+=Q)j+=(I[X]-I[U])*(I[U+1]+I[X+1]),X=U;return j}d.exports=l,d.exports.default=l,l.deviation=function(I,z,$,Q){var j=z&&z.length,U=j?z[0]*$:I.length,X=Math.abs(k(I,0,U,$));if(j)for(var te=0,W=z.length;te0&&(Q+=I[j-1].length,$.holes.push(Q))}return $}},6688:function(d,l,n){var c=n(78484);d.exports=function(b,i){var O,w=[],y=[],p=[],a={},u=[];function h(T){p[T]=!1,a.hasOwnProperty(T)&&Object.keys(a[T]).forEach(function(E){delete a[T][E],p[E]&&h(E)})}function m(T){var E,C,L=!1;for(y.push(T),p[T]=!0,E=0;E=$})})(T);for(var E,C=c(b).components.filter(function($){return $.length>1}),L=1/0,D=0;D=55296&&T<=56319&&(D+=_[++A]),D=k?h.call(k,I,D,x):D,S?(m.value=D,v(R,x,m)):R[x]=D,++x;M=x}}if(M===void 0)for(M=O(_.length),S&&(R=new S(M)),A=0;A0?1:-1}},96936:function(d,l,n){var c=n(85608),b=Math.abs,i=Math.floor;d.exports=function(O){return isNaN(O)?0:(O=Number(O))!==0&&isFinite(O)?c(O)*i(b(O)):O}},81304:function(d,l,n){var c=n(96936),b=Math.max;d.exports=function(i){return b(0,c(i))}},14428:function(d,l,n){var c=n(34044),b=n(9252),i=Function.prototype.bind,O=Function.prototype.call,w=Object.keys,y=Object.prototype.propertyIsEnumerable;d.exports=function(p,a){return function(u,h){var m,v=arguments[2],_=arguments[3];return u=Object(b(u)),c(h),m=w(u),_&&m.sort(typeof _=="function"?i.call(_,u):void 0),typeof p!="function"&&(p=m[p]),O.call(p,m,function(S,A){return y.call(u,S)?O.call(h,v,u[S],S,u,A):a})}}},38452:function(d,l,n){d.exports=n(96276)()?Object.assign:n(81892)},96276:function(d){d.exports=function(){var l,n=Object.assign;return typeof n=="function"&&(n(l={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),l.foo+l.bar+l.trzy==="razdwatrzy")}},81892:function(d,l,n){var c=n(54768),b=n(9252),i=Math.max;d.exports=function(O,w){var y,p,a,u=i(arguments.length,2);for(O=Object(b(O)),a=function(h){try{O[h]=w[h]}catch(m){y||(y=m)}},p=1;p-1}},29768:function(d){var l=Object.prototype.toString,n=l.call("");d.exports=function(c){return typeof c=="string"||c&&typeof c=="object"&&(c instanceof String||l.call(c)===n)||!1}},82252:function(d){var l=Object.create(null),n=Math.random;d.exports=function(){var c;do c=n().toString(36).slice(2);while(l[c]);return c}},52104:function(d,l,n){var c,b=n(69932),i=n(71056),O=n(21092),w=n(92664),y=n(85512),p=Object.defineProperty;c=d.exports=function(a,u){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");y.call(this,a),u=u?i.call(u,"key+value")?"key+value":i.call(u,"key")?"key":"value":"value",p(this,"__kind__",O("",u))},b&&b(c,y),delete c.prototype.constructor,c.prototype=Object.create(y.prototype,{_resolve:O(function(a){return this.__kind__==="value"?this.__list__[a]:this.__kind__==="key+value"?[a,this.__list__[a]]:a})}),p(c.prototype,w.toStringTag,O("c","Array Iterator"))},76024:function(d,l,n){var c=n(60948),b=n(34044),i=n(29768),O=n(76252),w=Array.isArray,y=Function.prototype.call,p=Array.prototype.some;d.exports=function(a,u){var h,m,v,_,S,A,x,R,M=arguments[2];if(w(a)||c(a)?h="array":i(a)?h="string":a=O(a),b(u),v=function(){_=!0},h!=="array")if(h!=="string")for(m=a.next();!m.done;){if(y.call(u,M,m.value,v),_)return;m=a.next()}else for(A=a.length,S=0;S=55296&&R<=56319&&(x+=a[++S]),y.call(u,M,x,v),!_);++S);else p.call(a,function(T){return y.call(u,M,T,v),_})}},76252:function(d,l,n){var c=n(60948),b=n(29768),i=n(52104),O=n(80940),w=n(52891),y=n(92664).iterator;d.exports=function(p){return typeof w(p)[y]=="function"?p[y]():c(p)?new i(p):b(p)?new O(p):new i(p)}},85512:function(d,l,n){var c,b=n(41476),i=n(38452),O=n(34044),w=n(9252),y=n(21092),p=n(27940),a=n(92664),u=Object.defineProperty,h=Object.defineProperties;d.exports=c=function(m,v){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");h(this,{__list__:y("w",w(m)),__context__:y("w",v),__nextIndex__:y("w",0)}),v&&(O(v.on),v.on("_add",this._onAdd),v.on("_delete",this._onDelete),v.on("_clear",this._onClear))},delete c.prototype.constructor,h(c.prototype,i({_next:y(function(){var m;if(this.__list__)return this.__redo__&&(m=this.__redo__.shift())!==void 0?m:this.__nextIndex__=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(v,_){v>=m&&(this.__redo__[_]=++v)},this),this.__redo__.push(m)):u(this,"__redo__",y("c",[m])))}),_onDelete:y(function(m){var v;m>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&((v=this.__redo__.indexOf(m))!==-1&&this.__redo__.splice(v,1),this.__redo__.forEach(function(_,S){_>m&&(this.__redo__[S]=--_)},this)))}),_onClear:y(function(){this.__redo__&&b.call(this.__redo__),this.__nextIndex__=0})}))),u(c.prototype,a.iterator,y(function(){return this}))},76368:function(d,l,n){var c=n(60948),b=n(42584),i=n(29768),O=n(92664).iterator,w=Array.isArray;d.exports=function(y){return!(!b(y)||!w(y)&&!i(y)&&!c(y)&&typeof y[O]!="function")}},80940:function(d,l,n){var c,b=n(69932),i=n(21092),O=n(92664),w=n(85512),y=Object.defineProperty;c=d.exports=function(p){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");p=String(p),w.call(this,p),y(this,"__length__",i("",p.length))},b&&b(c,w),delete c.prototype.constructor,c.prototype=Object.create(w.prototype,{_next:i(function(){if(this.__list__)return this.__nextIndex__=55296&&a<=56319?u+this.__list__[this.__nextIndex__++]:u})}),y(c.prototype,O.toStringTag,i("c","String Iterator"))},52891:function(d,l,n){var c=n(76368);d.exports=function(b){if(!c(b))throw new TypeError(b+" is not iterable");return b}},60964:function(d){function l(n,c){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var b=Object(n),i=1;i0&&E.length>M&&!E.warned){E.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+E.length+" "+String(A)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=S,L.type=A,L.count=E.length,C=L,console&&console.warn&&console.warn(C)}return S}function a(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(S,A,x){var R={fired:!1,wrapFn:void 0,target:S,type:A,listener:x},M=a.bind(R);return M.listener=x,R.wrapFn=M,M}function h(S,A,x){var R=S._events;if(R===void 0)return[];var M=R[A];return M===void 0?[]:typeof M=="function"?x?[M.listener||M]:[M]:x?function(T){for(var E=new Array(T.length),C=0;C0&&(T=A[0]),T instanceof Error)throw T;var E=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw E.context=T,E}var C=M[S];if(C===void 0)return!1;if(typeof C=="function")c(C,this,A);else{var L=C.length,D=v(C,L);for(x=0;x=0;T--)if(x[T]===A||x[T].listener===A){E=x[T].listener,M=T;break}if(M<0)return this;M===0?x.shift():function(C,L){for(;L+1=0;R--)this.removeListener(S,A[R]);return this},i.prototype.listeners=function(S){return h(this,S,!0)},i.prototype.rawListeners=function(S){return h(this,S,!1)},i.listenerCount=function(S,A){return typeof S.listenerCount=="function"?S.listenerCount(A):m.call(S,A)},i.prototype.listenerCount=m,i.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]}},39072:function(d){var l=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};d.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return l()}try{return __global__||l()}finally{delete Object.prototype.__global__}}()},12296:function(d,l,n){d.exports=n(45072)()?globalThis:n(39072)},45072:function(d){d.exports=function(){return typeof globalThis=="object"&&!!globalThis&&globalThis.Array===Array}},38248:function(d,l,n){var c=n(94576);d.exports=function(b){var i=typeof b;if(i==="string"){var O=b;if((b=+b)==0&&c(O))return!1}else if(i!=="number")return!1;return b-b<1}},47520:function(d,l,n){var c=n(72512);d.exports=function(b,i,O){if(!b)throw new TypeError("must specify data as first parameter");if(O=0|+(O||0),Array.isArray(b)&&b[0]&&typeof b[0][0]=="number"){var w,y,p,a,u=b[0].length,h=b.length*u;i&&typeof i!="string"||(i=new(c(i||"float32"))(h+O));var m=i.length-O;if(h!==m)throw new Error("source length "+h+" ("+u+"x"+b.length+") does not match destination length "+m);for(w=0,p=O;wO[0]-p[0]/2&&(_=p[0]/2,S+=p[1]);return w}},71920:function(d){function l(i,O){O||(O={}),(typeof i=="string"||Array.isArray(i))&&(O.family=i);var w=Array.isArray(O.family)?O.family.join(", "):O.family;if(!w)throw Error("`family` must be defined");var y=O.size||O.fontSize||O.em||48,p=O.weight||O.fontWeight||"",a=(i=[O.style||O.fontStyle||"",p,y].join(" ")+"px "+w,O.origin||"top");if(l.cache[w]&&y<=l.cache[w].em)return n(l.cache[w],a);var u=O.canvas||l.canvas,h=u.getContext("2d"),m={upper:O.upper!==void 0?O.upper:"H",lower:O.lower!==void 0?O.lower:"x",descent:O.descent!==void 0?O.descent:"p",ascent:O.ascent!==void 0?O.ascent:"h",tittle:O.tittle!==void 0?O.tittle:"i",overshoot:O.overshoot!==void 0?O.overshoot:"O"},v=Math.ceil(1.5*y);u.height=v,u.width=.5*v,h.font=i;var _="H",S={top:0};h.clearRect(0,0,v,v),h.textBaseline="top",h.fillStyle="black",h.fillText(_,0,0);var A=c(h.getImageData(0,0,v,v));h.clearRect(0,0,v,v),h.textBaseline="bottom",h.fillText(_,0,v);var x=c(h.getImageData(0,0,v,v));S.lineHeight=S.bottom=v-x+A,h.clearRect(0,0,v,v),h.textBaseline="alphabetic",h.fillText(_,0,v);var R=v-c(h.getImageData(0,0,v,v))-1+A;S.baseline=S.alphabetic=R,h.clearRect(0,0,v,v),h.textBaseline="middle",h.fillText(_,0,.5*v);var M=c(h.getImageData(0,0,v,v));S.median=S.middle=v-M-1+A-.5*v,h.clearRect(0,0,v,v),h.textBaseline="hanging",h.fillText(_,0,.5*v);var T=c(h.getImageData(0,0,v,v));S.hanging=v-T-1+A-.5*v,h.clearRect(0,0,v,v),h.textBaseline="ideographic",h.fillText(_,0,v);var E=c(h.getImageData(0,0,v,v));if(S.ideographic=v-E-1+A,m.upper&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.upper,0,0),S.upper=c(h.getImageData(0,0,v,v)),S.capHeight=S.baseline-S.upper),m.lower&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.lower,0,0),S.lower=c(h.getImageData(0,0,v,v)),S.xHeight=S.baseline-S.lower),m.tittle&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.tittle,0,0),S.tittle=c(h.getImageData(0,0,v,v))),m.ascent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.ascent,0,0),S.ascent=c(h.getImageData(0,0,v,v))),m.descent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.descent,0,0),S.descent=b(h.getImageData(0,0,v,v))),m.overshoot){h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.overshoot,0,0);var C=b(h.getImageData(0,0,v,v));S.overshoot=C-R}for(var L in S)S[L]/=y;return S.em=y,l.cache[w]=S,n(S,a)}function n(i,O){var w={};for(var y in typeof O=="string"&&(O=i[O]),i)y!=="em"&&(w[y]=i[y]-O);return w}function c(i){for(var O=i.height,w=i.data,y=3;y0;y-=4)if(w[y]!==0)return Math.floor(.25*(y-3)/O)}d.exports=l,l.canvas=document.createElement("canvas"),l.cache={}},46492:function(d,l,n){var c=n(90720),b=Object.prototype.toString,i=Object.prototype.hasOwnProperty;d.exports=function(O,w,y){if(!c(w))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=y),b.call(O)==="[object Array]"?function(a,u,h){for(var m=0,v=a.length;m"u"&&!n.canvas)return null;var c=n.canvas||document.createElement("canvas");typeof n.width=="number"&&(c.width=n.width),typeof n.height=="number"&&(c.height=n.height);var b,i=n;try{var O=[l];l.indexOf("webgl")===0&&O.push("experimental-"+l);for(var w=0;w"u"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?c:ArrayBuffer,"%ArrayIteratorPrototype%":u&&m?m([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?c:Atomics,"%BigInt%":typeof BigInt>"u"?c:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?c:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?c:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?c:Float32Array,"%Float64Array%":typeof Float64Array>"u"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?c:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?c:Int8Array,"%Int16Array%":typeof Int16Array>"u"?c:Int16Array,"%Int32Array%":typeof Int32Array>"u"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&m?m(m([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map>"u"?c:Map,"%MapIteratorPrototype%":typeof Map<"u"&&u&&m?m(new Map()[Symbol.iterator]()):c,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?c:Promise,"%Proxy%":typeof Proxy>"u"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?c:Set,"%SetIteratorPrototype%":typeof Set<"u"&&u&&m?m(new Set()[Symbol.iterator]()):c,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&m?m(""[Symbol.iterator]()):c,"%Symbol%":u?Symbol:c,"%SyntaxError%":b,"%ThrowTypeError%":a,"%TypedArray%":_,"%TypeError%":O,"%Uint8Array%":typeof Uint8Array>"u"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?c:WeakMap,"%WeakRef%":typeof WeakRef>"u"?c:WeakRef,"%WeakSet%":typeof WeakSet>"u"?c:WeakSet};if(m)try{null.error}catch(Q){var A=m(m(Q));S["%Error.prototype%"]=A}var x=function Q(j){var U;if(j==="%AsyncFunction%")U=w("async function () {}");else if(j==="%GeneratorFunction%")U=w("function* () {}");else if(j==="%AsyncGeneratorFunction%")U=w("async function* () {}");else if(j==="%AsyncGenerator%"){var X=Q("%AsyncGeneratorFunction%");X&&(U=X.prototype)}else if(j==="%AsyncIteratorPrototype%"){var te=Q("%AsyncGenerator%");te&&m&&(U=m(te.prototype))}return S[j]=U,U},R={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=n(8844),T=n(92064),E=M.call(Function.call,Array.prototype.concat),C=M.call(Function.apply,Array.prototype.splice),L=M.call(Function.call,String.prototype.replace),D=M.call(Function.call,String.prototype.slice),k=M.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,$=function(Q,j){var U,X=Q;if(T(R,X)&&(X="%"+(U=R[X])[0]+"%"),T(S,X)){var te=S[X];if(te===v&&(te=x(X)),te===void 0&&!j)throw new O("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:U,name:X,value:te}}throw new b("intrinsic "+Q+" does not exist!")};d.exports=function(Q,j){if(typeof Q!="string"||Q.length===0)throw new O("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new O('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,Q)===null)throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=function(ce){var de=D(ce,0,1),ve=D(ce,-1);if(de==="%"&&ve!=="%")throw new b("invalid intrinsic syntax, expected closing `%`");if(ve==="%"&&de!=="%")throw new b("invalid intrinsic syntax, expected opening `%`");var ye=[];return L(ce,I,function(_e,Se,Te,Pe){ye[ye.length]=Te?L(Pe,z,"$1"):Se||_e}),ye}(Q),X=U.length>0?U[0]:"",te=$("%"+X+"%",j),W=te.name,K=te.value,oe=!1,q=te.alias;q&&(X=q[0],C(U,E([0,1],q)));for(var Y=1,ee=!0;Y=U.length){var ae=y(K,me);K=(ee=!!ae)&&"get"in ae&&!("originalValue"in ae.get)?ae.get:K[me]}else ee=T(K,me),K=K[me];ee&&!oe&&(S[W]=K)}}return K}},12408:function(d){d.exports=function(l,n){var c=n[0],b=n[1],i=n[2],O=n[3],w=n[4],y=n[5],p=n[6],a=n[7],u=n[8],h=n[9],m=n[10],v=n[11],_=n[12],S=n[13],A=n[14],x=n[15];return l[0]=y*(m*x-v*A)-h*(p*x-a*A)+S*(p*v-a*m),l[1]=-(b*(m*x-v*A)-h*(i*x-O*A)+S*(i*v-O*m)),l[2]=b*(p*x-a*A)-y*(i*x-O*A)+S*(i*a-O*p),l[3]=-(b*(p*v-a*m)-y*(i*v-O*m)+h*(i*a-O*p)),l[4]=-(w*(m*x-v*A)-u*(p*x-a*A)+_*(p*v-a*m)),l[5]=c*(m*x-v*A)-u*(i*x-O*A)+_*(i*v-O*m),l[6]=-(c*(p*x-a*A)-w*(i*x-O*A)+_*(i*a-O*p)),l[7]=c*(p*v-a*m)-w*(i*v-O*m)+u*(i*a-O*p),l[8]=w*(h*x-v*S)-u*(y*x-a*S)+_*(y*v-a*h),l[9]=-(c*(h*x-v*S)-u*(b*x-O*S)+_*(b*v-O*h)),l[10]=c*(y*x-a*S)-w*(b*x-O*S)+_*(b*a-O*y),l[11]=-(c*(y*v-a*h)-w*(b*v-O*h)+u*(b*a-O*y)),l[12]=-(w*(h*A-m*S)-u*(y*A-p*S)+_*(y*m-p*h)),l[13]=c*(h*A-m*S)-u*(b*A-i*S)+_*(b*m-i*h),l[14]=-(c*(y*A-p*S)-w*(b*A-i*S)+_*(b*p-i*y)),l[15]=c*(y*m-p*h)-w*(b*m-i*h)+u*(b*p-i*y),l}},76860:function(d){d.exports=function(l){var n=new Float32Array(16);return n[0]=l[0],n[1]=l[1],n[2]=l[2],n[3]=l[3],n[4]=l[4],n[5]=l[5],n[6]=l[6],n[7]=l[7],n[8]=l[8],n[9]=l[9],n[10]=l[10],n[11]=l[11],n[12]=l[12],n[13]=l[13],n[14]=l[14],n[15]=l[15],n}},64492:function(d){d.exports=function(l,n){return l[0]=n[0],l[1]=n[1],l[2]=n[2],l[3]=n[3],l[4]=n[4],l[5]=n[5],l[6]=n[6],l[7]=n[7],l[8]=n[8],l[9]=n[9],l[10]=n[10],l[11]=n[11],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15],l}},54212:function(d){d.exports=function(){var l=new Float32Array(16);return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},70800:function(d){d.exports=function(l){var n=l[0],c=l[1],b=l[2],i=l[3],O=l[4],w=l[5],y=l[6],p=l[7],a=l[8],u=l[9],h=l[10],m=l[11],v=l[12],_=l[13],S=l[14],A=l[15];return(n*w-c*O)*(h*A-m*S)-(n*y-b*O)*(u*A-m*_)+(n*p-i*O)*(u*S-h*_)+(c*y-b*w)*(a*A-m*v)-(c*p-i*w)*(a*S-h*v)+(b*p-i*y)*(a*_-u*v)}},61784:function(d){d.exports=function(l,n){var c=n[0],b=n[1],i=n[2],O=n[3],w=c+c,y=b+b,p=i+i,a=c*w,u=b*w,h=b*y,m=i*w,v=i*y,_=i*p,S=O*w,A=O*y,x=O*p;return l[0]=1-h-_,l[1]=u+x,l[2]=m-A,l[3]=0,l[4]=u-x,l[5]=1-a-_,l[6]=v+S,l[7]=0,l[8]=m+A,l[9]=v-S,l[10]=1-a-h,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},91616:function(d){d.exports=function(l,n,c){var b,i,O,w=c[0],y=c[1],p=c[2],a=Math.sqrt(w*w+y*y+p*p);return Math.abs(a)<1e-6?null:(w*=a=1/a,y*=a,p*=a,b=Math.sin(n),O=1-(i=Math.cos(n)),l[0]=w*w*O+i,l[1]=y*w*O+p*b,l[2]=p*w*O-y*b,l[3]=0,l[4]=w*y*O-p*b,l[5]=y*y*O+i,l[6]=p*y*O+w*b,l[7]=0,l[8]=w*p*O+y*b,l[9]=y*p*O-w*b,l[10]=p*p*O+i,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l)}},51944:function(d){d.exports=function(l,n,c){var b=n[0],i=n[1],O=n[2],w=n[3],y=b+b,p=i+i,a=O+O,u=b*y,h=b*p,m=b*a,v=i*p,_=i*a,S=O*a,A=w*y,x=w*p,R=w*a;return l[0]=1-(v+S),l[1]=h+R,l[2]=m-x,l[3]=0,l[4]=h-R,l[5]=1-(u+S),l[6]=_+A,l[7]=0,l[8]=m+x,l[9]=_-A,l[10]=1-(u+v),l[11]=0,l[12]=c[0],l[13]=c[1],l[14]=c[2],l[15]=1,l}},69444:function(d){d.exports=function(l,n){return l[0]=n[0],l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=n[1],l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=n[2],l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},48268:function(d){d.exports=function(l,n){return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=n[0],l[13]=n[1],l[14]=n[2],l[15]=1,l}},21856:function(d){d.exports=function(l,n){var c=Math.sin(n),b=Math.cos(n);return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=b,l[6]=c,l[7]=0,l[8]=0,l[9]=-c,l[10]=b,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},79216:function(d){d.exports=function(l,n){var c=Math.sin(n),b=Math.cos(n);return l[0]=b,l[1]=0,l[2]=-c,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=c,l[9]=0,l[10]=b,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},57736:function(d){d.exports=function(l,n){var c=Math.sin(n),b=Math.cos(n);return l[0]=b,l[1]=c,l[2]=0,l[3]=0,l[4]=-c,l[5]=b,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},38848:function(d){d.exports=function(l,n,c,b,i,O,w){var y=1/(c-n),p=1/(i-b),a=1/(O-w);return l[0]=2*O*y,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=2*O*p,l[6]=0,l[7]=0,l[8]=(c+n)*y,l[9]=(i+b)*p,l[10]=(w+O)*a,l[11]=-1,l[12]=0,l[13]=0,l[14]=w*O*2*a,l[15]=0,l}},36635:function(d){d.exports=function(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},36524:function(d,l,n){d.exports={create:n(54212),clone:n(76860),copy:n(64492),identity:n(36635),transpose:n(86520),invert:n(4308),adjoint:n(12408),determinant:n(70800),multiply:n(80944),translate:n(35176),scale:n(68152),rotate:n(30016),rotateX:n(15456),rotateY:n(64840),rotateZ:n(4192),fromRotation:n(91616),fromRotationTranslation:n(51944),fromScaling:n(69444),fromTranslation:n(48268),fromXRotation:n(21856),fromYRotation:n(79216),fromZRotation:n(57736),fromQuat:n(61784),frustum:n(38848),perspective:n(51296),perspectiveFromFieldOfView:n(63688),ortho:n(97688),lookAt:n(56508),str:n(89412)}},4308:function(d){d.exports=function(l,n){var c=n[0],b=n[1],i=n[2],O=n[3],w=n[4],y=n[5],p=n[6],a=n[7],u=n[8],h=n[9],m=n[10],v=n[11],_=n[12],S=n[13],A=n[14],x=n[15],R=c*y-b*w,M=c*p-i*w,T=c*a-O*w,E=b*p-i*y,C=b*a-O*y,L=i*a-O*p,D=u*S-h*_,k=u*A-m*_,I=u*x-v*_,z=h*A-m*S,$=h*x-v*S,Q=m*x-v*A,j=R*Q-M*$+T*z+E*I-C*k+L*D;return j?(j=1/j,l[0]=(y*Q-p*$+a*z)*j,l[1]=(i*$-b*Q-O*z)*j,l[2]=(S*L-A*C+x*E)*j,l[3]=(m*C-h*L-v*E)*j,l[4]=(p*I-w*Q-a*k)*j,l[5]=(c*Q-i*I+O*k)*j,l[6]=(A*T-_*L-x*M)*j,l[7]=(u*L-m*T+v*M)*j,l[8]=(w*$-y*I+a*D)*j,l[9]=(b*I-c*$-O*D)*j,l[10]=(_*C-S*T+x*R)*j,l[11]=(h*T-u*C-v*R)*j,l[12]=(y*k-w*z-p*D)*j,l[13]=(c*z-b*k+i*D)*j,l[14]=(S*M-_*E-A*R)*j,l[15]=(u*E-h*M+m*R)*j,l):null}},56508:function(d,l,n){var c=n(36635);d.exports=function(b,i,O,w){var y,p,a,u,h,m,v,_,S,A,x=i[0],R=i[1],M=i[2],T=w[0],E=w[1],C=w[2],L=O[0],D=O[1],k=O[2];return Math.abs(x-L)<1e-6&&Math.abs(R-D)<1e-6&&Math.abs(M-k)<1e-6?c(b):(v=x-L,_=R-D,S=M-k,y=E*(S*=A=1/Math.sqrt(v*v+_*_+S*S))-C*(_*=A),p=C*(v*=A)-T*S,a=T*_-E*v,(A=Math.sqrt(y*y+p*p+a*a))?(y*=A=1/A,p*=A,a*=A):(y=0,p=0,a=0),u=_*a-S*p,h=S*y-v*a,m=v*p-_*y,(A=Math.sqrt(u*u+h*h+m*m))?(u*=A=1/A,h*=A,m*=A):(u=0,h=0,m=0),b[0]=y,b[1]=u,b[2]=v,b[3]=0,b[4]=p,b[5]=h,b[6]=_,b[7]=0,b[8]=a,b[9]=m,b[10]=S,b[11]=0,b[12]=-(y*x+p*R+a*M),b[13]=-(u*x+h*R+m*M),b[14]=-(v*x+_*R+S*M),b[15]=1,b)}},80944:function(d){d.exports=function(l,n,c){var b=n[0],i=n[1],O=n[2],w=n[3],y=n[4],p=n[5],a=n[6],u=n[7],h=n[8],m=n[9],v=n[10],_=n[11],S=n[12],A=n[13],x=n[14],R=n[15],M=c[0],T=c[1],E=c[2],C=c[3];return l[0]=M*b+T*y+E*h+C*S,l[1]=M*i+T*p+E*m+C*A,l[2]=M*O+T*a+E*v+C*x,l[3]=M*w+T*u+E*_+C*R,M=c[4],T=c[5],E=c[6],C=c[7],l[4]=M*b+T*y+E*h+C*S,l[5]=M*i+T*p+E*m+C*A,l[6]=M*O+T*a+E*v+C*x,l[7]=M*w+T*u+E*_+C*R,M=c[8],T=c[9],E=c[10],C=c[11],l[8]=M*b+T*y+E*h+C*S,l[9]=M*i+T*p+E*m+C*A,l[10]=M*O+T*a+E*v+C*x,l[11]=M*w+T*u+E*_+C*R,M=c[12],T=c[13],E=c[14],C=c[15],l[12]=M*b+T*y+E*h+C*S,l[13]=M*i+T*p+E*m+C*A,l[14]=M*O+T*a+E*v+C*x,l[15]=M*w+T*u+E*_+C*R,l}},97688:function(d){d.exports=function(l,n,c,b,i,O,w){var y=1/(n-c),p=1/(b-i),a=1/(O-w);return l[0]=-2*y,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=-2*p,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=2*a,l[11]=0,l[12]=(n+c)*y,l[13]=(i+b)*p,l[14]=(w+O)*a,l[15]=1,l}},51296:function(d){d.exports=function(l,n,c,b,i){var O=1/Math.tan(n/2),w=1/(b-i);return l[0]=O/c,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=O,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=(i+b)*w,l[11]=-1,l[12]=0,l[13]=0,l[14]=2*i*b*w,l[15]=0,l}},63688:function(d){d.exports=function(l,n,c,b){var i=Math.tan(n.upDegrees*Math.PI/180),O=Math.tan(n.downDegrees*Math.PI/180),w=Math.tan(n.leftDegrees*Math.PI/180),y=Math.tan(n.rightDegrees*Math.PI/180),p=2/(w+y),a=2/(i+O);return l[0]=p,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=a,l[6]=0,l[7]=0,l[8]=-(w-y)*p*.5,l[9]=(i-O)*a*.5,l[10]=b/(c-b),l[11]=-1,l[12]=0,l[13]=0,l[14]=b*c/(c-b),l[15]=0,l}},30016:function(d){d.exports=function(l,n,c,b){var i,O,w,y,p,a,u,h,m,v,_,S,A,x,R,M,T,E,C,L,D,k,I,z,$=b[0],Q=b[1],j=b[2],U=Math.sqrt($*$+Q*Q+j*j);return Math.abs(U)<1e-6?null:($*=U=1/U,Q*=U,j*=U,i=Math.sin(c),w=1-(O=Math.cos(c)),y=n[0],p=n[1],a=n[2],u=n[3],h=n[4],m=n[5],v=n[6],_=n[7],S=n[8],A=n[9],x=n[10],R=n[11],M=$*$*w+O,T=Q*$*w+j*i,E=j*$*w-Q*i,C=$*Q*w-j*i,L=Q*Q*w+O,D=j*Q*w+$*i,k=$*j*w+Q*i,I=Q*j*w-$*i,z=j*j*w+O,l[0]=y*M+h*T+S*E,l[1]=p*M+m*T+A*E,l[2]=a*M+v*T+x*E,l[3]=u*M+_*T+R*E,l[4]=y*C+h*L+S*D,l[5]=p*C+m*L+A*D,l[6]=a*C+v*L+x*D,l[7]=u*C+_*L+R*D,l[8]=y*k+h*I+S*z,l[9]=p*k+m*I+A*z,l[10]=a*k+v*I+x*z,l[11]=u*k+_*I+R*z,n!==l&&(l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l)}},15456:function(d){d.exports=function(l,n,c){var b=Math.sin(c),i=Math.cos(c),O=n[4],w=n[5],y=n[6],p=n[7],a=n[8],u=n[9],h=n[10],m=n[11];return n!==l&&(l[0]=n[0],l[1]=n[1],l[2]=n[2],l[3]=n[3],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l[4]=O*i+a*b,l[5]=w*i+u*b,l[6]=y*i+h*b,l[7]=p*i+m*b,l[8]=a*i-O*b,l[9]=u*i-w*b,l[10]=h*i-y*b,l[11]=m*i-p*b,l}},64840:function(d){d.exports=function(l,n,c){var b=Math.sin(c),i=Math.cos(c),O=n[0],w=n[1],y=n[2],p=n[3],a=n[8],u=n[9],h=n[10],m=n[11];return n!==l&&(l[4]=n[4],l[5]=n[5],l[6]=n[6],l[7]=n[7],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l[0]=O*i-a*b,l[1]=w*i-u*b,l[2]=y*i-h*b,l[3]=p*i-m*b,l[8]=O*b+a*i,l[9]=w*b+u*i,l[10]=y*b+h*i,l[11]=p*b+m*i,l}},4192:function(d){d.exports=function(l,n,c){var b=Math.sin(c),i=Math.cos(c),O=n[0],w=n[1],y=n[2],p=n[3],a=n[4],u=n[5],h=n[6],m=n[7];return n!==l&&(l[8]=n[8],l[9]=n[9],l[10]=n[10],l[11]=n[11],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l[0]=O*i+a*b,l[1]=w*i+u*b,l[2]=y*i+h*b,l[3]=p*i+m*b,l[4]=a*i-O*b,l[5]=u*i-w*b,l[6]=h*i-y*b,l[7]=m*i-p*b,l}},68152:function(d){d.exports=function(l,n,c){var b=c[0],i=c[1],O=c[2];return l[0]=n[0]*b,l[1]=n[1]*b,l[2]=n[2]*b,l[3]=n[3]*b,l[4]=n[4]*i,l[5]=n[5]*i,l[6]=n[6]*i,l[7]=n[7]*i,l[8]=n[8]*O,l[9]=n[9]*O,l[10]=n[10]*O,l[11]=n[11]*O,l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15],l}},89412:function(d){d.exports=function(l){return"mat4("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+", "+l[4]+", "+l[5]+", "+l[6]+", "+l[7]+", "+l[8]+", "+l[9]+", "+l[10]+", "+l[11]+", "+l[12]+", "+l[13]+", "+l[14]+", "+l[15]+")"}},35176:function(d){d.exports=function(l,n,c){var b,i,O,w,y,p,a,u,h,m,v,_,S=c[0],A=c[1],x=c[2];return n===l?(l[12]=n[0]*S+n[4]*A+n[8]*x+n[12],l[13]=n[1]*S+n[5]*A+n[9]*x+n[13],l[14]=n[2]*S+n[6]*A+n[10]*x+n[14],l[15]=n[3]*S+n[7]*A+n[11]*x+n[15]):(b=n[0],i=n[1],O=n[2],w=n[3],y=n[4],p=n[5],a=n[6],u=n[7],h=n[8],m=n[9],v=n[10],_=n[11],l[0]=b,l[1]=i,l[2]=O,l[3]=w,l[4]=y,l[5]=p,l[6]=a,l[7]=u,l[8]=h,l[9]=m,l[10]=v,l[11]=_,l[12]=b*S+y*A+h*x+n[12],l[13]=i*S+p*A+m*x+n[13],l[14]=O*S+a*A+v*x+n[14],l[15]=w*S+u*A+_*x+n[15]),l}},86520:function(d){d.exports=function(l,n){if(l===n){var c=n[1],b=n[2],i=n[3],O=n[6],w=n[7],y=n[11];l[1]=n[4],l[2]=n[8],l[3]=n[12],l[4]=c,l[6]=n[9],l[7]=n[13],l[8]=b,l[9]=O,l[11]=n[14],l[12]=i,l[13]=w,l[14]=y}else l[0]=n[0],l[1]=n[4],l[2]=n[8],l[3]=n[12],l[4]=n[1],l[5]=n[5],l[6]=n[9],l[7]=n[13],l[8]=n[2],l[9]=n[6],l[10]=n[10],l[11]=n[14],l[12]=n[3],l[13]=n[7],l[14]=n[11],l[15]=n[15];return l}},23352:function(d,l,n){var c=n(42771),b=n(55616),i=n(28624),O=n(55212),w=n(60463),y=n(72160),p=n(33888),a=n(14144),u=n(51160),h=n(58908),m=n(65819),v=n(23464),_=n(63768),S=n(50896),A=n(71920),x=n(47520),R=n(308).nextPow2,M=new w,T=!1;if(document.body){var E=document.body.appendChild(document.createElement("div"));E.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(E).fontStretch&&(T=!0),document.body.removeChild(E)}var C=function(L){(function(D){return typeof D=="function"&&D._gl&&D.prop&&D.texture&&D.buffer})(L)?(L={regl:L},this.gl=L.regl._gl):this.gl=O(L),this.shader=M.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=L.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),M.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(L)?L:{})};C.prototype.createShader=function(){var L=this.regl,D=L({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:L.prop("count"),offset:L.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:L.this("sizeBuffer")},width:{offset:0,stride:8,buffer:L.this("sizeBuffer")},char:L.this("charBuffer"),position:L.this("position")},uniforms:{atlasSize:function(k,I){return[I.atlas.width,I.atlas.height]},atlasDim:function(k,I){return[I.atlas.cols,I.atlas.rows]},atlas:function(k,I){return I.atlas.texture},charStep:function(k,I){return I.atlas.step},em:function(k,I){return I.atlas.em},color:L.prop("color"),opacity:L.prop("opacity"),viewport:L.this("viewportArray"),scale:L.this("scale"),align:L.prop("align"),baseline:L.prop("baseline"),translate:L.this("translate"),positionOffset:L.prop("positionOffset")},primitive:"points",viewport:L.this("viewport"),vert:` +`):Y=" ".concat(j," ").concat(Y)),$=O(this,u(D).call(this,"".concat(q).concat(Y)))}return Error.stackTraceLimit=W,$.generatedMessage=!Q,Object.defineProperty(w($),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),$.code="ERR_ASSERTION",$.actual=X,$.expected=te,$.operator=j,Error.captureStackTrace&&Error.captureStackTrace(w($),U),$.stack,$.name="AssertionError",O($)}var k,I;return function(z,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create($&&$.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),$&&a(z,$)}(D,L),k=D,I=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:m.custom,value:function(z,$){return m(this,function(Q){for(var j=1;j2?"one of ".concat(h," ").concat(u.slice(0,m-1).join(", "),", or ")+u[m-1]:m===2?"one of ".concat(h," ").concat(u[0]," or ").concat(u[1]):"of ".concat(h," ").concat(u[0])}return"of ".concat(h," ").concat(String(u))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(u,h,m){var v,_,S,A,x;if(O===void 0&&(O=n(45408)),O(typeof u=="string","'name' must be a string"),typeof h=="string"&&(_="not ",h.substr(0,4)===_)?(v="must not be",h=h.replace(/^not /,"")):v="must be",function(M,T,E){return(E===void 0||E>M.length)&&(E=M.length),M.substring(E-9,E)===T}(u," argument"))S="The ".concat(u," ").concat(v," ").concat(a(h,"type"));else{var R=(typeof x!="number"&&(x=0),x+1>(A=u).length||A.indexOf(".",x)===-1?"argument":"property");S='The "'.concat(u,'" ').concat(R," ").concat(v," ").concat(a(h,"type"))}return S+". Received type ".concat(c(m))},TypeError),p("ERR_INVALID_ARG_VALUE",function(u,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";w===void 0&&(w=n(35840));var v=w.inspect(h);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(u,"' ").concat(m,". Received ").concat(v)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(u,h,m){var v;return v=m&&m.constructor&&m.constructor.name?"instance of ".concat(m.constructor.name):"type ".concat(c(m)),"Expected ".concat(u,' to be returned from the "').concat(h,'"')+" function but got ".concat(v,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var u=arguments.length,h=new Array(u),m=0;m0,"At least one arg needs to be specified");var v="The ",_=h.length;switch(h=h.map(function(S){return'"'.concat(S,'"')}),_){case 1:v+="".concat(h[0]," argument");break;case 2:v+="".concat(h[0]," and ").concat(h[1]," arguments");break;default:v+=h.slice(0,_-1).join(", "),v+=", and ".concat(h[_-1]," arguments")}return"".concat(v," must be specified")},TypeError),d.exports.codes=y},25116:function(d,l,n){function c(de,ve){return function(ye){if(Array.isArray(ye))return ye}(de)||function(ye,_e){var Se=[],Te=!0,Pe=!1,Ie=void 0;try{for(var ze,De=ye[Symbol.iterator]();!(Te=(ze=De.next()).done)&&(Se.push(ze.value),!_e||Se.length!==_e);Te=!0);}catch(He){Pe=!0,Ie=He}finally{try{Te||De.return==null||De.return()}finally{if(Pe)throw Ie}}return Se}(de,ve)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(de){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},b(de)}var i=/a/g.flags!==void 0,O=function(de){var ve=[];return de.forEach(function(ye){return ve.push(ye)}),ve},w=function(de){var ve=[];return de.forEach(function(ye,_e){return ve.push([_e,ye])}),ve},y=Object.is?Object.is:n(39896),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},a=Number.isNaN?Number.isNaN:n(1560);function u(de){return de.call.bind(de)}var h=u(Object.prototype.hasOwnProperty),m=u(Object.prototype.propertyIsEnumerable),v=u(Object.prototype.toString),_=n(35840).types,S=_.isAnyArrayBuffer,A=_.isArrayBufferView,x=_.isDate,R=_.isMap,M=_.isRegExp,T=_.isSet,E=_.isNativeError,C=_.isBoxedPrimitive,L=_.isNumberObject,D=_.isStringObject,k=_.isBooleanObject,I=_.isBigIntObject,z=_.isSymbolObject,$=_.isFloat32Array,Q=_.isFloat64Array;function j(de){if(de.length===0||de.length>10)return!0;for(var ve=0;ve57)return!0}return de.length===10&&de>=Math.pow(2,32)}function U(de){return Object.keys(de).filter(j).concat(p(de).filter(Object.prototype.propertyIsEnumerable.bind(de)))}function X(de,ve){if(de===ve)return 0;for(var ye=de.length,_e=ve.length,Se=0,Te=Math.min(ye,_e);Se"u"?[]:new Uint8Array(256),i=0;i<64;i++)b[c.charCodeAt(i)]=i;var O=function(y){var p,a=new Uint8Array(y),u=a.length,h="";for(p=0;p>2],h+=c[(3&a[p])<<4|a[p+1]>>4],h+=c[(15&a[p+1])<<2|a[p+2]>>6],h+=c[63&a[p+2]];return u%3==2?h=h.substring(0,h.length-1)+"=":u%3==1&&(h=h.substring(0,h.length-2)+"=="),h},w=function(y){var p,a,u,h,m,v=.75*y.length,_=y.length,S=0;y[y.length-1]==="="&&(v--,y[y.length-2]==="="&&v--);var A=new ArrayBuffer(v),x=new Uint8Array(A);for(p=0;p<_;p+=4)a=b[y.charCodeAt(p)],u=b[y.charCodeAt(p+1)],h=b[y.charCodeAt(p+2)],m=b[y.charCodeAt(p+3)],x[S++]=a<<2|u>>4,x[S++]=(15&u)<<4|h>>2,x[S++]=(3&h)<<6|63&m;return A}},59968:function(d,l){l.byteLength=function(p){var a=w(p),u=a[0],h=a[1];return 3*(u+h)/4-h},l.toByteArray=function(p){var a,u,h=w(p),m=h[0],v=h[1],_=new b(function(x,R,M){return 3*(R+M)/4-M}(0,m,v)),S=0,A=v>0?m-4:m;for(u=0;u>16&255,_[S++]=a>>8&255,_[S++]=255&a;return v===2&&(a=c[p.charCodeAt(u)]<<2|c[p.charCodeAt(u+1)]>>4,_[S++]=255&a),v===1&&(a=c[p.charCodeAt(u)]<<10|c[p.charCodeAt(u+1)]<<4|c[p.charCodeAt(u+2)]>>2,_[S++]=a>>8&255,_[S++]=255&a),_},l.fromByteArray=function(p){for(var a,u=p.length,h=u%3,m=[],v=16383,_=0,S=u-h;_S?S:_+v));return h===1?(a=p[u-1],m.push(n[a>>2]+n[a<<4&63]+"==")):h===2&&(a=(p[u-2]<<8)+p[u-1],m.push(n[a>>10]+n[a>>4&63]+n[a<<2&63]+"=")),m.join("")};for(var n=[],c=[],b=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=0;O<64;++O)n[O]=i[O],c[i.charCodeAt(O)]=O;function w(p){var a=p.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var u=p.indexOf("=");return u===-1&&(u=a),[u,u===a?0:4-u%4]}function y(p,a,u){for(var h,m,v=[],_=a;_>18&63]+n[m>>12&63]+n[m>>6&63]+n[63&m]);return v.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},64928:function(d){function l(w,y,p,a,u){for(var h=u+1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)>=0?(h=m,u=m-1):a=m+1}return h}function n(w,y,p,a,u){for(var h=u+1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)>0?(h=m,u=m-1):a=m+1}return h}function c(w,y,p,a,u){for(var h=a-1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)<0?(h=m,a=m+1):u=m-1}return h}function b(w,y,p,a,u){for(var h=a-1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)<=0?(h=m,a=m+1):u=m-1}return h}function i(w,y,p,a,u){for(;a<=u;){var h=a+u>>>1,m=w[h],v=p!==void 0?p(m,y):m-y;if(v===0)return h;v<=0?a=h+1:u=h-1}return-1}function O(w,y,p,a,u,h){return typeof p=="function"?h(w,y,p,a===void 0?0:0|a,u===void 0?w.length-1:0|u):h(w,y,void 0,p===void 0?0:0|p,a===void 0?w.length-1:0|a)}d.exports={ge:function(w,y,p,a,u){return O(w,y,p,a,u,l)},gt:function(w,y,p,a,u){return O(w,y,p,a,u,n)},lt:function(w,y,p,a,u){return O(w,y,p,a,u,c)},le:function(w,y,p,a,u){return O(w,y,p,a,u,b)},eq:function(w,y,p,a,u){return O(w,y,p,a,u,i)}}},308:function(d,l){function n(b){var i=32;return(b&=-b)&&i--,65535&b&&(i-=16),16711935&b&&(i-=8),252645135&b&&(i-=4),858993459&b&&(i-=2),1431655765&b&&(i-=1),i}l.INT_BITS=32,l.INT_MAX=2147483647,l.INT_MIN=-2147483648,l.sign=function(b){return(b>0)-(b<0)},l.abs=function(b){var i=b>>31;return(b^i)-i},l.min=function(b,i){return i^(b^i)&-(b65535)<<4,i|=O=((b>>>=i)>255)<<3,i|=O=((b>>>=O)>15)<<2,(i|=O=((b>>>=O)>3)<<1)|(b>>>=O)>>1},l.log10=function(b){return b>=1e9?9:b>=1e8?8:b>=1e7?7:b>=1e6?6:b>=1e5?5:b>=1e4?4:b>=1e3?3:b>=100?2:b>=10?1:0},l.popCount=function(b){return 16843009*((b=(858993459&(b-=b>>>1&1431655765))+(b>>>2&858993459))+(b>>>4)&252645135)>>>24},l.countTrailingZeros=n,l.nextPow2=function(b){return b+=b===0,--b,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,1+(b|=b>>>16)},l.prevPow2=function(b){return b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,(b|=b>>>16)-(b>>>1)},l.parity=function(b){return b^=b>>>16,b^=b>>>8,b^=b>>>4,27030>>>(b&=15)&1};var c=new Array(256);(function(b){for(var i=0;i<256;++i){var O=i,w=i,y=7;for(O>>>=1;O;O>>>=1)w<<=1,w|=1&O,--y;b[i]=w<>>8&255]<<16|c[b>>>16&255]<<8|c[b>>>24&255]},l.interleave2=function(b,i){return(b=1431655765&((b=858993459&((b=252645135&((b=16711935&((b&=65535)|b<<8))|b<<4))|b<<2))|b<<1))|(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i&=65535)|i<<8))|i<<4))|i<<2))|i<<1))<<1},l.deinterleave2=function(b,i){return(b=65535&((b=16711935&((b=252645135&((b=858993459&((b=b>>>i&1431655765)|b>>>1))|b>>>2))|b>>>4))|b>>>16))<<16>>16},l.interleave3=function(b,i,O){return b=1227133513&((b=3272356035&((b=251719695&((b=4278190335&((b&=1023)|b<<16))|b<<8))|b<<4))|b<<2),(b|=(i=1227133513&((i=3272356035&((i=251719695&((i=4278190335&((i&=1023)|i<<16))|i<<8))|i<<4))|i<<2))<<1)|(O=1227133513&((O=3272356035&((O=251719695&((O=4278190335&((O&=1023)|O<<16))|O<<8))|O<<4))|O<<2))<<2},l.deinterleave3=function(b,i){return(b=1023&((b=4278190335&((b=251719695&((b=3272356035&((b=b>>>i&1227133513)|b>>>2))|b>>>4))|b>>>8))|b>>>16))<<22>>22},l.nextCombination=function(b){var i=b|b-1;return i+1|(~i&-~i)-1>>>n(b)+1}},29620:function(d,l,n){var c=n(32420);d.exports=function(w,y){y||(y={});var p,a,u,h,m,v,_,S,A,x,R,M=y.cutoff==null?.25:y.cutoff,T=y.radius==null?8:y.radius,E=y.channel||0;if(ArrayBuffer.isView(w)||Array.isArray(w)){if(!y.width||!y.height)throw Error("For raw data width and height should be provided by options");p=y.width,a=y.height,h=w,v=y.stride?y.stride:Math.floor(w.length/p/a)}else window.HTMLCanvasElement&&w instanceof window.HTMLCanvasElement?(_=(S=w).getContext("2d"),p=S.width,a=S.height,h=(A=_.getImageData(0,0,p,a)).data,v=4):window.CanvasRenderingContext2D&&w instanceof window.CanvasRenderingContext2D?(_=w,p=(S=w.canvas).width,a=S.height,h=(A=_.getImageData(0,0,p,a)).data,v=4):window.ImageData&&w instanceof window.ImageData&&(A=w,p=w.width,a=w.height,h=A.data,v=4);if(u=Math.max(p,a),window.Uint8ClampedArray&&h instanceof window.Uint8ClampedArray||window.Uint8Array&&h instanceof window.Uint8Array)for(m=h,h=Array(p*a),x=0,R=m.length;x-1?b(y):y}},57916:function(d,l,n){var c=n(8844),b=n(53664),i=n(14500),O=b("%TypeError%"),w=b("%Function.prototype.apply%"),y=b("%Function.prototype.call%"),p=b("%Reflect.apply%",!0)||c.call(y,w),a=b("%Object.defineProperty%",!0),u=b("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}d.exports=function(m){if(typeof m!="function")throw new O("a function is required");var v=p(c,y,arguments);return i(v,1+u(0,m.length-(arguments.length-1)),!0)};var h=function(){return p(c,w,arguments)};a?a(d.exports,"apply",{value:h}):d.exports.apply=h},32420:function(d){d.exports=function(l,n,c){return nc?c:l:ln?n:l}},3808:function(d,l,n){var c=n(32420);function b(i,O){O==null&&(O=!0);var w=i[0],y=i[1],p=i[2],a=i[3];return a==null&&(a=O?1:255),O&&(w*=255,y*=255,p*=255,a*=255),16777216*(w=255&c(w,0,255))+((y=255&c(y,0,255))<<16)+((p=255&c(p,0,255))<<8)+(255&c(a,0,255))}d.exports=b,d.exports.to=b,d.exports.from=function(i,O){var w=(i=+i)>>>24,y=(16711680&i)>>>16,p=(65280&i)>>>8,a=255&i;return O===!1?[w,y,p,a]:[w/255,y/255,p/255,a/255]}},17592:function(d){d.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(d,l,n){var c=n(96824),b=n(32420),i=n(72512);d.exports=function(O,w){w!=="float"&&w||(w="array"),w==="uint"&&(w="uint8"),w==="uint_clamped"&&(w="uint8_clamped");var y=new(i(w))(4),p=w!=="uint8"&&w!=="uint8_clamped";return O.length&&typeof O!="string"||((O=c(O))[0]/=255,O[1]/=255,O[2]/=255),function(a){return a instanceof Uint8Array||a instanceof Uint8ClampedArray||!!(Array.isArray(a)&&(a[0]>1||a[0]===0)&&(a[1]>1||a[1]===0)&&(a[2]>1||a[2]===0)&&(!a[3]||a[3]>1))}(O)?(y[0]=O[0],y[1]=O[1],y[2]=O[2],y[3]=O[3]!=null?O[3]:255,p&&(y[0]/=255,y[1]/=255,y[2]/=255,y[3]/=255),y):(p?(y[0]=O[0],y[1]=O[1],y[2]=O[2],y[3]=O[3]!=null?O[3]:1):(y[0]=b(Math.floor(255*O[0]),0,255),y[1]=b(Math.floor(255*O[1]),0,255),y[2]=b(Math.floor(255*O[2]),0,255),y[3]=O[3]==null?255:b(Math.floor(255*O[3]),0,255)),y)}},81704:function(d,l,n){var c=n(17592),b=n(58908),i=n(31264);d.exports=function(w){var y,p,a=[],u=1;if(typeof w=="string")if(c[w])a=c[w].slice(),p="rgb";else if(w==="transparent")u=0,p="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(w)){var h=w.slice(1);u=1,(_=h.length)<=4?(a=[parseInt(h[0]+h[0],16),parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16)],_===4&&(u=parseInt(h[3]+h[3],16)/255)):(a=[parseInt(h[0]+h[1],16),parseInt(h[2]+h[3],16),parseInt(h[4]+h[5],16)],_===8&&(u=parseInt(h[6]+h[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),p="rgb"}else if(y=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(w)){var m=y[1],v=m==="rgb";p=h=m.replace(/a$/,"");var _=h==="cmyk"?4:h==="gray"?1:3;a=y[2].trim().split(/\s*,\s*/).map(function(A,x){if(/%$/.test(A))return x===_?parseFloat(A)/100:h==="rgb"?255*parseFloat(A)/100:parseFloat(A);if(h[x]==="h"){if(/deg$/.test(A))return parseFloat(A);if(O[A]!==void 0)return O[A]}return parseFloat(A)}),m===h&&a.push(1),u=v||a[_]===void 0?1:a[_],a=a.slice(0,_)}else w.length>10&&/[0-9](?:\s|\/)/.test(w)&&(a=w.match(/([0-9]+)/g).map(function(A){return parseFloat(A)}),p=w.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(w))if(b(w)){var S=i(w.r,w.red,w.R,null);S!==null?(p="rgb",a=[S,i(w.g,w.green,w.G),i(w.b,w.blue,w.B)]):(p="hsl",a=[i(w.h,w.hue,w.H),i(w.s,w.saturation,w.S),i(w.l,w.lightness,w.L,w.b,w.brightness)]),u=i(w.a,w.alpha,w.opacity,1),w.opacity!=null&&(u/=100)}else(Array.isArray(w)||n.g.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(w))&&(a=[w[0],w[1],w[2]],p="rgb",u=w.length===4?w[3]:1);else p="rgb",a=[w>>>16,(65280&w)>>>8,255&w];return{space:p,values:a,alpha:u}};var O={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}},96824:function(d,l,n){var c=n(81704),b=n(53576),i=n(32420);d.exports=function(O){var w,y=c(O);return y.space?((w=Array(3))[0]=i(y.values[0],0,255),w[1]=i(y.values[1],0,255),w[2]=i(y.values[2],0,255),y.space[0]==="h"&&(w=b.rgb(w)),w.push(i(y.alpha,0,1)),w):[]}},53576:function(d,l,n){var c=n(19336);d.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(b){var i,O,w,y,p,a=b[0]/360,u=b[1]/100,h=b[2]/100;if(u===0)return[p=255*h,p,p];i=2*h-(O=h<.5?h*(1+u):h+u-h*u),y=[0,0,0];for(var m=0;m<3;m++)(w=a+.3333333333333333*-(m-1))<0?w++:w>1&&w--,p=6*w<1?i+6*(O-i)*w:2*w<1?O:3*w<2?i+(O-i)*(.6666666666666666-w)*6:i,y[m]=255*p;return y}},c.hsl=function(b){var i,O,w=b[0]/255,y=b[1]/255,p=b[2]/255,a=Math.min(w,y,p),u=Math.max(w,y,p),h=u-a;return u===a?i=0:w===u?i=(y-p)/h:y===u?i=2+(p-w)/h:p===u&&(i=4+(w-y)/h),(i=Math.min(60*i,360))<0&&(i+=360),O=(a+u)/2,[i,100*(u===a?0:O<=.5?h/(u+a):h/(2-u-a)),100*O]}},19336:function(d){d.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(d){d.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(d,l,n){d.exports={parse:n(46416),stringify:n(49395)}},8744:function(d,l,n){var c=n(30584);d.exports={isSize:function(b){return/^[\d\.]/.test(b)||b.indexOf("/")!==-1||c.indexOf(b)!==-1}}},46416:function(d,l,n){var c=n(92384),b=n(68194),i=n(3748),O=n(2904),w=n(47916),y=n(7294),p=n(39956),a=n(8744).isSize;d.exports=h;var u=h.cache={};function h(v){if(typeof v!="string")throw new Error("Font argument must be a string.");if(u[v])return u[v];if(v==="")throw new Error("Cannot parse an empty string.");if(i.indexOf(v)!==-1)return u[v]={system:v};for(var _,S={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},A=p(v,/\s+/);_=A.shift();){if(b.indexOf(_)!==-1)return["style","variant","weight","stretch"].forEach(function(R){S[R]=_}),u[v]=S;if(w.indexOf(_)===-1)if(_!=="normal"&&_!=="small-caps")if(y.indexOf(_)===-1){if(O.indexOf(_)===-1){if(a(_)){var x=p(_,"/");if(S.size=x[0],x[1]!=null?S.lineHeight=m(x[1]):A[0]==="/"&&(A.shift(),S.lineHeight=m(A.shift())),!A.length)throw new Error("Missing required font-family.");return S.family=p(A.join(" "),/\s*,\s*/).map(c),u[v]=S}throw new Error("Unknown or unsupported font token: "+_)}S.weight=_}else S.stretch=_;else S.variant=_;else S.style=_}throw new Error("Missing required font-size.")}function m(v){var _=parseFloat(v);return _.toString()===v?_:v}},49395:function(d,l,n){var c=n(55616),b=n(8744).isSize,i=v(n(68194)),O=v(n(3748)),w=v(n(2904)),y=v(n(47916)),p=v(n(7294)),a={normal:1,"small-caps":1},u={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},h="serif";function m(_,S){if(_&&!S[_]&&!i[_])throw Error("Unknown keyword `"+_+"`");return _}function v(_){for(var S={},A=0;A<_.length;A++)S[_[A]]=1;return S}d.exports=function(_){if((_=c(_,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"})).system)return _.system&&m(_.system,O),_.system;if(m(_.style,y),m(_.variant,a),m(_.weight,w),m(_.stretch,p),_.size==null&&(_.size="1rem"),typeof _.size=="number"&&(_.size+="px"),!b)throw Error("Bad size value `"+_.size+"`");_.family||(_.family=h),Array.isArray(_.family)&&(_.family.length||(_.family=[h]),_.family=_.family.map(function(A){return u[A]?A:'"'+A+'"'}).join(", "));var S=[];return S.push(_.style),_.variant!==_.style&&S.push(_.variant),_.weight!==_.variant&&_.weight!==_.style&&S.push(_.weight),_.stretch!==_.weight&&_.stretch!==_.variant&&_.stretch!==_.style&&S.push(_.stretch),S.push(_.size+(_.lineHeight==null||_.lineHeight==="normal"||_.lineHeight+""=="1"?"":"/"+_.lineHeight)),S.push(_.family),S.filter(Boolean).join(" ")}},27940:function(d,l,n){var c,b=n(81680),i=n(18496),O=n(87396),w=n(95920),y=n(50868),p=n(84323),a=Function.prototype.bind,u=Object.defineProperty,h=Object.prototype.hasOwnProperty;c=function(m,v,_){var S,A=i(v)&&O(v.value);return delete(S=w(v)).writable,delete S.value,S.get=function(){return!_.overwriteDefinition&&h.call(this,m)?A:(v.value=a.call(A,_.resolveContext?_.resolveContext(this):this),u(this,m,v),this[m])},S},d.exports=function(m){var v=y(arguments[1]);return b(v.resolveContext)&&O(v.resolveContext),p(m,function(_,S){return c(S,_,v)})}},21092:function(d,l,n){var c=n(81680),b=n(85488),i=n(38452),O=n(50868),w=n(71056),y=d.exports=function(p,a){var u,h,m,v,_;return arguments.length<2||typeof p!="string"?(v=a,a=p,p=null):v=arguments[2],c(p)?(u=w.call(p,"c"),h=w.call(p,"e"),m=w.call(p,"w")):(u=m=!0,h=!1),_={value:a,configurable:u,enumerable:h,writable:m},v?i(O(v),_):_};y.gs=function(p,a,u){var h,m,v,_;return typeof p!="string"?(v=u,u=a,a=p,p=null):v=arguments[3],c(a)?b(a)?c(u)?b(u)||(v=u,u=void 0):u=void 0:(v=a,a=u=void 0):a=void 0,c(p)?(h=w.call(p,"c"),m=w.call(p,"e")):(h=!0,m=!1),_={get:a,set:u,configurable:h,enumerable:m},v?i(O(v),_):_}},84706:function(d,l,n){function c(m,v){return mv?1:m>=v?0:NaN}n.d(l,{XE:function(){return c},kv:function(){return O},mo:function(){return y},Uf:function(){return p},SY:function(){return a},ik:function(){return u},oh:function(){return h}}),(b=c).length===1&&(i=b,b=function(m,v){return c(i(m),v)});var b,i;function O(m,v){var _,S,A=m.length,x=-1;if(v==null){for(;++x=_)for(S=_;++xS&&(S=_)}else for(;++x=_)for(S=_;++xS&&(S=_);return S}function w(m){return m===null?NaN:+m}function y(m,v){var _,S=m.length,A=S,x=-1,R=0;if(v==null)for(;++x=0;)for(v=(S=m[A]).length;--v>=0;)_[--R]=S[v];return _}function a(m,v){var _,S,A=m.length,x=-1;if(v==null){for(;++x=_)for(S=_;++x_&&(S=_)}else for(;++x=_)for(S=_;++x_&&(S=_);return S}function u(m,v,_){m=+m,v=+v,_=(A=arguments.length)<2?(v=m,m=0,1):A<3?1:+_;for(var S=-1,A=0|Math.max(0,Math.ceil((v-m)/_)),x=new Array(A);++S=A.length)return v!=null&&T.sort(v),_!=null?_(T):T;for(var D,k,I,z=-1,$=T.length,Q=A[E++],j=O(),U=C();++z<$;)(I=j.get(D=Q(k=T[z])+""))?I.push(k):j.set(D,[k]);return j.each(function(X,te){L(U,te,R(X,E,C,L))}),U}function M(T,E){if(++E>A.length)return T;var C,L=x[E-1];return _!=null&&E>=A.length?C=T.entries():(C=[],T.each(function(D,k){C.push({key:k,values:M(D,E)})})),L!=null?C.sort(function(D,k){return L(D.key,k.key)}):C}return S={object:function(T){return R(T,0,y,p)},map:function(T){return R(T,0,a,u)},entries:function(T){return M(R(T,0,a,u),0)},key:function(T){return A.push(T),S},sortKeys:function(T){return x[A.length-1]=T,S},sortValues:function(T){return v=T,S},rollup:function(T){return _=T,S}}}function y(){return{}}function p(v,_,S){v[_]=S}function a(){return O()}function u(v,_,S){v.set(_,S)}function h(){}var m=O.prototype;h.prototype={constructor:h,has:m.has,add:function(v){return this[c+(v+="")]=v,this},remove:m.remove,clear:m.clear,values:m.keys,size:m.size,empty:m.empty,each:m.each}},49812:function(d,l,n){function c(ze,De){var He;function Ve(){var $e,Oe,ke=He.length,Le=0,We=0;for($e=0;$e=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=He>=(ke=(nt+Ge)/2))?nt=ke:Ge=ke,$e=Ee,!(Ee=Ee[Xe=Ze<<1|Ue]))return $e[Xe]=Ne,ze;if(Le=+ze._x.call(null,Ee.data),We=+ze._y.call(null,Ee.data),De===Le&&He===We)return Ne.next=Ee,$e?$e[Xe]=Ne:ze._root=Ne,ze;do $e=$e?$e[Xe]=new Array(4):ze._root=new Array(4),(Ue=De>=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=He>=(ke=(nt+Ge)/2))?nt=ke:Ge=ke;while((Xe=Ze<<1|Ue)==(tt=(We>=ke)<<1|Le>=Oe));return $e[tt]=Ee,$e[Xe]=Ne,ze}function w(ze,De,He,Ve,$e){this.node=ze,this.x0=De,this.y0=He,this.x1=Ve,this.y1=$e}function y(ze){return ze[0]}function p(ze){return ze[1]}function a(ze,De,He){var Ve=new u(De??y,He??p,NaN,NaN,NaN,NaN);return ze==null?Ve:Ve.addAll(ze)}function u(ze,De,He,Ve,$e,Oe){this._x=ze,this._y=De,this._x0=He,this._y0=Ve,this._x1=$e,this._y1=Oe,this._root=void 0}function h(ze){for(var De={data:ze.data},He=De;ze=ze.next;)He=He.next={data:ze.data};return De}n.r(l),n.d(l,{forceCenter:function(){return c},forceCollide:function(){return S},forceLink:function(){return M},forceManyBody:function(){return Se},forceRadial:function(){return Te},forceSimulation:function(){return _e},forceX:function(){return Pe},forceY:function(){return Ie}});var m=a.prototype=u.prototype;function v(ze){return ze.x+ze.vx}function _(ze){return ze.y+ze.vy}function S(ze){var De,He,Ve=1,$e=1;function Oe(){for(var We,Ue,Ze,Xe,tt,Ee,Ne,je=De.length,nt=0;nt<$e;++nt)for(Ue=a(De,v,_).visitAfter(ke),We=0;WeXe+en||wttt+en||DtZe.index){var Gt=Xe-It.x-It.vx,Ct=tt-It.y-It.vy,_t=Gt*Gt+Ct*Ct;_tWe.r&&(We.r=We[Ue].r)}function Le(){if(De){var We,Ue,Ze=De.length;for(He=new Array(Ze),We=0;WeZe&&(Ze=Ve),$eXe&&(Xe=$e));if(We>Ze||Ue>Xe)return this;for(this.cover(We,Ue).cover(Ze,Xe),He=0;Heze||ze>=$e||Ve>De||De>=Oe;)switch(Le=(Dett||(Oe=We.y0)>Ee||(ke=We.x1)=ot)<<1|ze>=nt)&&(We=Ne[Ne.length-1],Ne[Ne.length-1]=Ne[Ne.length-1-Ue],Ne[Ne.length-1-Ue]=We)}else{var Ge=ze-+this._x.call(null,je.data),ht=De-+this._y.call(null,je.data),pt=Ge*Ge+ht*ht;if(pt=(Le=(Ne+nt)/2))?Ne=Le:nt=Le,(Ze=ke>=(We=(je+ot)/2))?je=We:ot=We,De=Ee,!(Ee=Ee[Xe=Ze<<1|Ue]))return this;if(!Ee.length)break;(De[Xe+1&3]||De[Xe+2&3]||De[Xe+3&3])&&(He=De,tt=Xe)}for(;Ee.data!==ze;)if(Ve=Ee,!(Ee=Ee.next))return this;return($e=Ee.next)&&delete Ee.next,Ve?($e?Ve.next=$e:delete Ve.next,this):De?($e?De[Xe]=$e:delete De[Xe],(Ee=De[0]||De[1]||De[2]||De[3])&&Ee===(De[3]||De[2]||De[1]||De[0])&&!Ee.length&&(He?He[tt]=Ee:this._root=Ee),this):(this._root=$e,this)},m.removeAll=function(ze){for(var De=0,He=ze.length;De=0&&(Ue=We.slice(Ze+1),We=We.slice(0,Ze)),We&&!Ve.hasOwnProperty(We))throw new Error("unknown type: "+We);return{type:We,name:Ue}})),ke=-1,Le=Oe.length;if(!(arguments.length<2)){if(De!=null&&typeof De!="function")throw new Error("invalid callback: "+De);for(;++ke0)for(var He,Ve,$e=new Array(He),Oe=0;Oe=0&&De._call.call(null,ze),De=De._next;--$})()}finally{$=0,function(){for(var ze,De,He=k,Ve=1/0;He;)He._call?(Ve>He._time&&(Ve=He._time),ze=He,He=He._next):(De=He._next,He._next=null,He=ze?ze._next=De:k=De);I=ze,ae(Ve)}(),te=0}}function se(){var ze=K.now(),De=ze-X;De>U&&(W-=De,X=ze)}function ae(ze){$||(Q&&(Q=clearTimeout(Q)),ze-te>24?(ze<1/0&&(Q=setTimeout(he,ze-K.now()-W)),j&&(j=clearInterval(j))):(j||(X=K.now(),j=setInterval(se,U)),$=1,oe(he)))}function ce(ze){return ze.x}function de(ze){return ze.y}ee.prototype=me.prototype={constructor:ee,restart:function(ze,De,He){if(typeof ze!="function")throw new TypeError("callback is not a function");He=(He==null?q():+He)+(De==null?0:+De),this._next||I===this||(I?I._next=this:k=this,I=this),this._call=ze,this._time=He,ae()},stop:function(){this._call&&(this._call=null,this._time=1/0,ae())}};var ve=10,ye=Math.PI*(3-Math.sqrt(5));function _e(ze){var De,He=1,Ve=.001,$e=1-Math.pow(Ve,1/300),Oe=0,ke=.6,Le=(0,A.kH)(),We=me(Ze),Ue=z("tick","end");function Ze(){Xe(),Ue.call("tick",De),He1?(je==null?Le.remove(Ne):Le.set(Ne,Ee(je)),De):Le.get(Ne)},find:function(Ne,je,nt){var ot,Ge,ht,pt,wt,Dt=0,It=ze.length;for(nt==null?nt=1/0:nt*=nt,Dt=0;Dt1?(Ue.on(Ne,je),De):Ue.on(Ne)}}}function Se(){var ze,De,He,Ve,$e=b(-30),Oe=1,ke=1/0,Le=.81;function We(tt){var Ee,Ne=ze.length,je=a(ze,ce,de).visitAfter(Ze);for(He=tt,Ee=0;Ee=ke)){(tt.data!==De||tt.next)&&(nt===0&&(ht+=(nt=i())*nt),ot===0&&(ht+=(ot=i())*ot),ht1?R[0]+R.slice(2):R,+S.slice(x+1)]}n.d(l,{E9:function(){return h},SO:function(){return _}});var b,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function O(S){if(!(A=i.exec(S)))throw new Error("invalid format: "+S);var A;return new w({fill:A[1],align:A[2],sign:A[3],symbol:A[4],zero:A[5],width:A[6],comma:A[7],precision:A[8]&&A[8].slice(1),trim:A[9],type:A[10]})}function w(S){this.fill=S.fill===void 0?" ":S.fill+"",this.align=S.align===void 0?">":S.align+"",this.sign=S.sign===void 0?"-":S.sign+"",this.symbol=S.symbol===void 0?"":S.symbol+"",this.zero=!!S.zero,this.width=S.width===void 0?void 0:+S.width,this.comma=!!S.comma,this.precision=S.precision===void 0?void 0:+S.precision,this.trim=!!S.trim,this.type=S.type===void 0?"":S.type+""}function y(S,A){var x=c(S,A);if(!x)return S+"";var R=x[0],M=x[1];return M<0?"0."+new Array(-M).join("0")+R:R.length>M+1?R.slice(0,M+1)+"."+R.slice(M+1):R+new Array(M-R.length+2).join("0")}O.prototype=w.prototype,w.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":function(S,A){return(100*S).toFixed(A)},b:function(S){return Math.round(S).toString(2)},c:function(S){return S+""},d:function(S){return Math.abs(S=Math.round(S))>=1e21?S.toLocaleString("en").replace(/,/g,""):S.toString(10)},e:function(S,A){return S.toExponential(A)},f:function(S,A){return S.toFixed(A)},g:function(S,A){return S.toPrecision(A)},o:function(S){return Math.round(S).toString(8)},p:function(S,A){return y(100*S,A)},r:y,s:function(S,A){var x=c(S,A);if(!x)return S+"";var R=x[0],M=x[1],T=M-(b=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,E=R.length;return T===E?R:T>E?R+new Array(T-E+1).join("0"):T>0?R.slice(0,T)+"."+R.slice(T):"0."+new Array(1-T).join("0")+c(S,Math.max(0,A+T-1))[0]},X:function(S){return Math.round(S).toString(16).toUpperCase()},x:function(S){return Math.round(S).toString(16)}};function a(S){return S}var u,h,m=Array.prototype.map,v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _(S){var A,x,R=S.grouping===void 0||S.thousands===void 0?a:(A=m.call(S.grouping,Number),x=S.thousands+"",function(z,$){for(var Q=z.length,j=[],U=0,X=A[0],te=0;Q>0&&X>0&&(te+X+1>$&&(X=Math.max(1,$-te)),j.push(z.substring(Q-=X,Q+X)),!((te+=X+1)>$));)X=A[U=(U+1)%A.length];return j.reverse().join(x)}),M=S.currency===void 0?"":S.currency[0]+"",T=S.currency===void 0?"":S.currency[1]+"",E=S.decimal===void 0?".":S.decimal+"",C=S.numerals===void 0?a:function(z){return function($){return $.replace(/[0-9]/g,function(Q){return z[+Q]})}}(m.call(S.numerals,String)),L=S.percent===void 0?"%":S.percent+"",D=S.minus===void 0?"-":S.minus+"",k=S.nan===void 0?"NaN":S.nan+"";function I(z){var $=(z=O(z)).fill,Q=z.align,j=z.sign,U=z.symbol,X=z.zero,te=z.width,W=z.comma,K=z.precision,oe=z.trim,q=z.type;q==="n"?(W=!0,q="g"):p[q]||(K===void 0&&(K=12),oe=!0,q="g"),(X||$==="0"&&Q==="=")&&(X=!0,$="0",Q="=");var Y=U==="$"?M:U==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",ee=U==="$"?T:/[%p]/.test(q)?L:"",me=p[q],he=/[defgprs%]/.test(q);function se(ae){var ce,de,ve,ye=Y,_e=ee;if(q==="c")_e=me(ae)+_e,ae="";else{var Se=(ae=+ae)<0||1/ae<0;if(ae=isNaN(ae)?k:me(Math.abs(ae),K),oe&&(ae=function(Ie){e:for(var ze,De=Ie.length,He=1,Ve=-1;He0&&(Ve=0)}return Ve>0?Ie.slice(0,Ve)+Ie.slice(ze+1):Ie}(ae)),Se&&+ae==0&&j!=="+"&&(Se=!1),ye=(Se?j==="("?j:D:j==="-"||j==="("?"":j)+ye,_e=(q==="s"?v[8+b/3]:"")+_e+(Se&&j==="("?")":""),he){for(ce=-1,de=ae.length;++ce(ve=ae.charCodeAt(ce))||ve>57){_e=(ve===46?E+ae.slice(ce+1):ae.slice(ce))+_e,ae=ae.slice(0,ce);break}}}W&&!X&&(ae=R(ae,1/0));var Te=ye.length+ae.length+_e.length,Pe=Te>1)+ye+ae+_e+Pe.slice(Te);break;default:ae=Pe+ye+ae+_e}return C(ae)}return K=K===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K)),se.toString=function(){return z+""},se}return{format:I,formatPrefix:function(z,$){var Q,j=I(((z=O(z)).type="f",z)),U=3*Math.max(-8,Math.min(8,Math.floor((Q=$,((Q=c(Math.abs(Q)))?Q[1]:NaN)/3)))),X=Math.pow(10,-U),te=v[8+U/3];return function(W){return j(X*W)+te}}}}u=_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),h=u.format,u.formatPrefix},87108:function(d,l,n){n.r(l),n.d(l,{geoAiry:function(){return W},geoAiryRaw:function(){return te},geoAitoff:function(){return oe},geoAitoffRaw:function(){return K},geoArmadillo:function(){return Y},geoArmadilloRaw:function(){return q},geoAugust:function(){return me},geoAugustRaw:function(){return ee},geoBaker:function(){return ce},geoBakerRaw:function(){return ae},geoBerghaus:function(){return ye},geoBerghausRaw:function(){return ve},geoBertin1953:function(){return He},geoBertin1953Raw:function(){return De},geoBoggs:function(){return Ze},geoBoggsRaw:function(){return Ue},geoBonne:function(){return je},geoBonneRaw:function(){return Ne},geoBottomley:function(){return ot},geoBottomleyRaw:function(){return nt},geoBromley:function(){return ht},geoBromleyRaw:function(){return Ge},geoChamberlin:function(){return _t},geoChamberlinAfrica:function(){return Ct},geoChamberlinRaw:function(){return en},geoCollignon:function(){return gn},geoCollignonRaw:function(){return nn},geoCraig:function(){return mn},geoCraigRaw:function(){return bn},geoCraster:function(){return lt},geoCrasterRaw:function(){return bt},geoCylindricalEqualArea:function(){return zt},geoCylindricalEqualAreaRaw:function(){return yt},geoCylindricalStereographic:function(){return it},geoCylindricalStereographicRaw:function(){return Rt},geoEckert1:function(){return Lt},geoEckert1Raw:function(){return at},geoEckert2:function(){return Zt},geoEckert2Raw:function(){return xt},geoEckert3:function(){return Yt},geoEckert3Raw:function(){return Xt},geoEckert4:function(){return Pt},geoEckert4Raw:function(){return Qt},geoEckert5:function(){return Kt},geoEckert5Raw:function(){return tn},geoEckert6:function(){return dn},geoEckert6Raw:function(){return fn},geoEisenlohr:function(){return er},geoEisenlohrRaw:function(){return Nn},geoFahey:function(){return jn},geoFaheyRaw:function(){return In},geoFoucaut:function(){return Sr},geoFoucautRaw:function(){return xr},geoFoucautSinusoidal:function(){return Fn},geoFoucautSinusoidalRaw:function(){return ar},geoGilbert:function(){return Ir},geoGingery:function(){return $r},geoGingeryRaw:function(){return zr},geoGinzburg4:function(){return so},geoGinzburg4Raw:function(){return Co},geoGinzburg5:function(){return go},geoGinzburg5Raw:function(){return So},geoGinzburg6:function(){return Pn},geoGinzburg6Raw:function(){return li},geoGinzburg8:function(){return br},geoGinzburg8Raw:function(){return Yn},geoGinzburg9:function(){return Cr},geoGinzburg9Raw:function(){return dr},geoGringorten:function(){return Wr},geoGringortenQuincuncial:function(){return js},geoGringortenRaw:function(){return Qr},geoGuyou:function(){return hn},geoGuyouRaw:function(){return hr},geoHammer:function(){return Pe},geoHammerRaw:function(){return Se},geoHammerRetroazimuthal:function(){return gr},geoHammerRetroazimuthalRaw:function(){return Zn},geoHealpix:function(){return Vr},geoHealpixRaw:function(){return tr},geoHill:function(){return _o},geoHillRaw:function(){return to},geoHomolosine:function(){return po},geoHomolosineRaw:function(){return Go},geoHufnagel:function(){return Ao},geoHufnagelRaw:function(){return qo},geoHyperelliptical:function(){return mo},geoHyperellipticalRaw:function(){return ra},geoInterrupt:function(){return Na},geoInterruptedBoggs:function(){return wc},geoInterruptedHomolosine:function(){return Ku},geoInterruptedMollweide:function(){return Yd},geoInterruptedMollweideHemispheres:function(){return Ed},geoInterruptedQuarticAuthalic:function(){return sr},geoInterruptedSinuMollweide:function(){return mm},geoInterruptedSinusoidal:function(){return gm},geoKavrayskiy7:function(){return pc},geoKavrayskiy7Raw:function(){return Gl},geoLagrange:function(){return xl},geoLagrangeRaw:function(){return Cu},geoLarrivee:function(){return pu},geoLarriveeRaw:function(){return cc},geoLaskowski:function(){return iu},geoLaskowskiRaw:function(){return ju},geoLittrow:function(){return ks},geoLittrowRaw:function(){return mc},geoLoximuthal:function(){return yf},geoLoximuthalRaw:function(){return $f},geoMiller:function(){return $h},geoMillerRaw:function(){return Ju},geoModifiedStereographic:function(){return cd},geoModifiedStereographicAlaska:function(){return ld},geoModifiedStereographicGs48:function(){return Mp},geoModifiedStereographicGs50:function(){return Xd},geoModifiedStereographicLee:function(){return mh},geoModifiedStereographicMiller:function(){return bf},geoModifiedStereographicRaw:function(){return Es},geoMollweide:function(){return ke},geoMollweideRaw:function(){return Oe},geoMtFlatPolarParabolic:function(){return Au},geoMtFlatPolarParabolicRaw:function(){return tf},geoMtFlatPolarQuartic:function(){return ud},geoMtFlatPolarQuarticRaw:function(){return _f},geoMtFlatPolarSinusoidal:function(){return gh},geoMtFlatPolarSinusoidalRaw:function(){return nf},geoNaturalEarth:function(){return rs.c},geoNaturalEarth2:function(){return Ep},geoNaturalEarth2Raw:function(){return ep},geoNaturalEarthRaw:function(){return rs.g},geoNellHammer:function(){return Pd},geoNellHammerRaw:function(){return vm},geoNicolosi:function(){return wf},geoNicolosiRaw:function(){return Pp},geoPatterson:function(){return Lp},geoPattersonRaw:function(){return Hu},geoPeirceQuincuncial:function(){return os},geoPierceQuincuncial:function(){return os},geoPolyconic:function(){return jh},geoPolyconicRaw:function(){return Uh},geoPolyhedral:function(){return Ts},geoPolyhedralButterfly:function(){return yh},geoPolyhedralCollignon:function(){return Ip},geoPolyhedralWaterman:function(){return bm},geoProject:function(){return np},geoQuantize:function(){return af},geoQuincuncial:function(){return xh},geoRectangularPolyconic:function(){return sf},geoRectangularPolyconicRaw:function(){return Sf},geoRobinson:function(){return pi},geoRobinsonRaw:function(){return Hi},geoSatellite:function(){return Ru},geoSatelliteRaw:function(){return Qh},geoSinuMollweide:function(){return co},geoSinuMollweideRaw:function(){return ao},geoSinusoidal:function(){return Ee},geoSinusoidalRaw:function(){return tt},geoStitch:function(){return Xi},geoTimes:function(){return jf},geoTimesRaw:function(){return Xc},geoTwoPointAzimuthal:function(){return Lu},geoTwoPointAzimuthalRaw:function(){return Dp},geoTwoPointAzimuthalUsa:function(){return rp},geoTwoPointEquidistant:function(){return dd},geoTwoPointEquidistantRaw:function(){return fs},geoTwoPointEquidistantUsa:function(){return Qf},geoVanDerGrinten:function(){return _h},geoVanDerGrinten2:function(){return hd},geoVanDerGrinten2Raw:function(){return Gc},geoVanDerGrinten3:function(){return Dd},geoVanDerGrinten3Raw:function(){return rl},geoVanDerGrinten4:function(){return fa},geoVanDerGrinten4Raw:function(){return Vi},geoVanDerGrintenRaw:function(){return Hf},geoWagner:function(){return Zf},geoWagner4:function(){return kc},geoWagner4Raw:function(){return Qs},geoWagner6:function(){return Ea},geoWagner6Raw:function(){return Iu},geoWagner7:function(){return Zl},geoWagnerRaw:function(){return au},geoWiechel:function(){return Ol},geoWiechelRaw:function(){return El},geoWinkel3:function(){return kf},geoWinkel3Raw:function(){return Mi}});var c=n(87952),b=Math.abs,i=Math.atan,O=Math.atan2,w=Math.cos,y=Math.exp,p=Math.floor,a=Math.log,u=Math.max,h=Math.min,m=Math.pow,v=Math.round,_=Math.sign||function(Ot){return Ot>0?1:Ot<0?-1:0},S=Math.sin,A=Math.tan,x=1e-6,R=1e-12,M=Math.PI,T=M/2,E=M/4,C=Math.SQRT1_2,L=j(2),D=j(M),k=2*M,I=180/M,z=M/180;function $(Ot){return Ot>1?T:Ot<-1?-T:Math.asin(Ot)}function Q(Ot){return Ot>1?0:Ot<-1?M:Math.acos(Ot)}function j(Ot){return Ot>0?Math.sqrt(Ot):0}function U(Ot){return(y(Ot)-y(-Ot))/2}function X(Ot){return(y(Ot)+y(-Ot))/2}function te(Ot){var Mt=A(Ot/2),Ft=2*a(w(Ot/2))/(Mt*Mt);function J(le,ie){var V=w(le),ne=w(ie),ge=S(ie),xe=ne*V,Me=-((1-xe?a((1+xe)/2)/(1-xe):-.5)+Ft/(1+xe));return[Me*ne*S(le),Me*ge]}return J.invert=function(le,ie){var V,ne=j(le*le+ie*ie),ge=-Ot/2,xe=50;if(!ne)return[0,0];do{var Me=ge/2,Fe=w(Me),Je=S(Me),rt=Je/Fe,dt=-a(b(Fe));ge-=V=(2/rt*dt-Ft*rt-ne)/(-dt/(Je*Je)+1-Ft/(2*Fe*Fe))*(Fe<0?.7:1)}while(b(V)>x&&--xe>0);var mt=S(ge);return[O(le*mt,ne*w(ge)),$(ie*mt/ne)]},J}function W(){var Ot=T,Mt=(0,c.U)(te),Ft=Mt(Ot);return Ft.radius=function(J){return arguments.length?Mt(Ot=J*z):Ot*I},Ft.scale(179.976).clipAngle(147)}function K(Ot,Mt){var Ft=w(Mt),J=function(le){return le?le/Math.sin(le):1}(Q(Ft*w(Ot/=2)));return[2*Ft*S(Ot)*J,S(Mt)*J]}function oe(){return(0,c.c)(K).scale(152.63)}function q(Ot){var Mt=S(Ot),Ft=w(Ot),J=Ot>=0?1:-1,le=A(J*Ot),ie=(1+Mt-Ft)/2;function V(ne,ge){var xe=w(ge),Me=w(ne/=2);return[(1+xe)*S(ne),(J*ge>-O(Me,le)-.001?0:10*-J)+ie+S(ge)*Ft-(1+xe)*Mt*Me]}return V.invert=function(ne,ge){var xe=0,Me=0,Fe=50;do{var Je=w(xe),rt=S(xe),dt=w(Me),mt=S(Me),Et=1+dt,Vt=Et*rt-ne,jt=ie+mt*Ft-Et*Mt*Je-ge,Nt=Et*Je/2,cn=-rt*mt,sn=Mt*Et*rt/2,xn=Ft*dt+Mt*Je*mt,pn=cn*sn-xn*Nt,Ln=(jt*cn-Vt*xn)/pn/2,On=(Vt*sn-jt*Nt)/pn;b(On)>2&&(On/=2),xe-=Ln,Me-=On}while((b(Ln)>x||b(On)>x)&&--Fe>0);return J*Me>-O(w(xe),le)-.001?[2*xe,Me]:null},V}function Y(){var Ot=20*z,Mt=Ot>=0?1:-1,Ft=A(Mt*Ot),J=(0,c.U)(q),le=J(Ot),ie=le.stream;return le.parallel=function(V){return arguments.length?(Ft=A((Mt=(Ot=V*z)>=0?1:-1)*Ot),J(Ot)):Ot*I},le.stream=function(V){var ne=le.rotate(),ge=ie(V),xe=(le.rotate([0,0]),ie(V)),Me=le.precision();return le.rotate(ne),ge.sphere=function(){xe.polygonStart(),xe.lineStart();for(var Fe=-180*Mt;Mt*Fe<180;Fe+=90*Mt)xe.point(Fe,90*Mt);if(Ot)for(;Mt*(Fe-=3*Mt*Me)>=-180;)xe.point(Fe,Mt*-O(w(Fe*z/2),Ft)*I);xe.lineEnd(),xe.polygonEnd()},ge},le.scale(218.695).center([0,28.0974])}function ee(Ot,Mt){var Ft=A(Mt/2),J=j(1-Ft*Ft),le=1+J*w(Ot/=2),ie=S(Ot)*J/le,V=Ft/le,ne=ie*ie,ge=V*V;return[1.3333333333333333*ie*(3+ne-3*ge),1.3333333333333333*V*(3+3*ne-ge)]}function me(){return(0,c.c)(ee).scale(66.1603)}K.invert=function(Ot,Mt){if(!(Ot*Ot+4*Mt*Mt>M*M+x)){var Ft=Ot,J=Mt,le=25;do{var ie,V=S(Ft),ne=S(Ft/2),ge=w(Ft/2),xe=S(J),Me=w(J),Fe=S(2*J),Je=xe*xe,rt=Me*Me,dt=ne*ne,mt=1-rt*ge*ge,Et=mt?Q(Me*ge)*j(ie=1/mt):ie=0,Vt=2*Et*Me*ne-Ot,jt=Et*xe-Mt,Nt=ie*(rt*dt+Et*Me*ge*Je),cn=ie*(.5*V*Fe-2*Et*xe*ne),sn=.25*ie*(Fe*ne-Et*xe*rt*V),xn=ie*(Je*ge+Et*dt*Me),pn=cn*sn-xn*Nt;if(!pn)break;var Ln=(jt*cn-Vt*xn)/pn,On=(Vt*sn-jt*Nt)/pn;Ft-=Ln,J-=On}while((b(Ln)>x||b(On)>x)&&--le>0);return[Ft,J]}},ee.invert=function(Ot,Mt){if(Mt*=.375,!(Ot*=.375)&&b(Mt)>1)return null;var Ft=1+Ot*Ot+Mt*Mt,J=j((Ft-j(Ft*Ft-4*Mt*Mt))/2),le=$(J)/3,ie=J?function(xe){return a(xe+j(xe*xe-1))}(b(Mt/J))/3:function(xe){return a(xe+j(xe*xe+1))}(b(Ot))/3,V=w(le),ne=X(ie),ge=ne*ne-V*V;return[2*_(Ot)*O(U(ie)*V,.25-ge),2*_(Mt)*O(ne*S(le),.25+ge)]};var he=j(8),se=a(1+L);function ae(Ot,Mt){var Ft=b(Mt);return FtR&&--ie>0);return[Ot/(w(le)*(he-1/S(le))),_(Mt)*le]};var de=n(69020);function ve(Ot){var Mt=2*M/Ot;function Ft(J,le){var ie=(0,de.O)(J,le);if(b(J)>T){var V=O(ie[1],ie[0]),ne=j(ie[0]*ie[0]+ie[1]*ie[1]),ge=Mt*v((V-T)/Mt)+T,xe=O(S(V-=ge),2-w(V));V=ge+$(M/ne*S(xe))-xe,ie[0]=ne*w(V),ie[1]=ne*S(V)}return ie}return Ft.invert=function(J,le){var ie=j(J*J+le*le);if(ie>T){var V=O(le,J),ne=Mt*v((V-T)/Mt)+T,ge=V>ne?-1:1,xe=ie*w(ne-V),Me=1/A(ge*Q((xe-M)/j(M*(M-2*xe)+ie*ie)));V=ne+2*i((Me+ge*j(Me*Me-3))/3),J=ie*w(V),le=ie*S(V)}return de.O.invert(J,le)},Ft}function ye(){var Ot=5,Mt=(0,c.U)(ve),Ft=Mt(Ot),J=Ft.stream,le=.01,ie=-w(le*z),V=S(le*z);return Ft.lobes=function(ne){return arguments.length?Mt(Ot=+ne):Ot},Ft.stream=function(ne){var ge=Ft.rotate(),xe=J(ne),Me=(Ft.rotate([0,0]),J(ne));return Ft.rotate(ge),xe.sphere=function(){Me.polygonStart(),Me.lineStart();for(var Fe=0,Je=360/Ot,rt=2*M/Ot,dt=90-180/Ot,mt=T;Fe0&&b(J)>x);return V<0?NaN:Ft}function ze(Ot,Mt,Ft){return Mt===void 0&&(Mt=40),Ft===void 0&&(Ft=R),function(J,le,ie,V){var ne,ge,xe;ie=ie===void 0?0:+ie,V=V===void 0?0:+V;for(var Me=0;Mene)ie-=ge/=2,V-=xe/=2;else{ne=dt;var mt=(ie>0?-1:1)*Ft,Et=(V>0?-1:1)*Ft,Vt=Ot(ie+mt,V),jt=Ot(ie,V+Et),Nt=(Vt[0]-Fe[0])/mt,cn=(Vt[1]-Fe[1])/mt,sn=(jt[0]-Fe[0])/Et,xn=(jt[1]-Fe[1])/Et,pn=xn*Nt-cn*sn,Ln=(b(pn)<.5?.5:1)/pn;if(ie+=ge=(rt*sn-Je*xn)*Ln,V+=xe=(Je*cn-rt*Nt)*Ln,b(ge)0&&(ie[1]*=1+V/1.5*ie[0]*ie[0]),ie}return Mt.invert=ze(Mt),Mt}function He(){return(0,c.c)(De()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Ve(Ot,Mt){var Ft,J=Ot*S(Mt),le=30;do Mt-=Ft=(Mt+S(Mt)-J)/(1+w(Mt));while(b(Ft)>x&&--le>0);return Mt/2}function $e(Ot,Mt,Ft){function J(le,ie){return[Ot*le*w(ie=Ve(Ft,ie)),Mt*S(ie)]}return J.invert=function(le,ie){return ie=$(ie/Mt),[le/(Ot*w(ie)),$((2*ie+S(2*ie))/Ft)]},J}Te.invert=function(Ot,Mt){var Ft=2*$(Mt/2);return[Ot*w(Ft/2)/w(Ft),Ft]};var Oe=$e(L/T,L,M);function ke(){return(0,c.c)(Oe).scale(169.529)}var Le=2.00276,We=1.11072;function Ue(Ot,Mt){var Ft=Ve(M,Mt);return[Le*Ot/(1/w(Mt)+We/w(Ft)),(Mt+L*S(Ft))/Le]}function Ze(){return(0,c.c)(Ue).scale(160.857)}function Xe(Ot){var Mt=0,Ft=(0,c.U)(Ot),J=Ft(Mt);return J.parallel=function(le){return arguments.length?Ft(Mt=le*z):Mt*I},J}function tt(Ot,Mt){return[Ot*w(Mt),Mt]}function Ee(){return(0,c.c)(tt).scale(152.63)}function Ne(Ot){if(!Ot)return tt;var Mt=1/A(Ot);function Ft(J,le){var ie=Mt+Ot-le,V=ie&&J*w(le)/ie;return[ie*S(V),Mt-ie*w(V)]}return Ft.invert=function(J,le){var ie=j(J*J+(le=Mt-le)*le),V=Mt+Ot-ie;return[ie/w(V)*O(J,le),V]},Ft}function je(){return Xe(Ne).scale(123.082).center([0,26.1441]).parallel(45)}function nt(Ot){function Mt(Ft,J){var le=T-J,ie=le&&Ft*Ot*S(le)/le;return[le*S(ie)/Ot,T-le*w(ie)]}return Mt.invert=function(Ft,J){var le=Ft*Ot,ie=T-J,V=j(le*le+ie*ie),ne=O(le,ie);return[(V?V/S(V):1)*ne/Ot,T-V]},Mt}function ot(){var Ot=.5,Mt=(0,c.U)(nt),Ft=Mt(Ot);return Ft.fraction=function(J){return arguments.length?Mt(Ot=+J):Ot},Ft.scale(158.837)}Ue.invert=function(Ot,Mt){var Ft,J,le=Le*Mt,ie=Mt<0?-E:E,V=25;do J=le-L*S(ie),ie-=Ft=(S(2*ie)+2*ie-M*S(J))/(2*w(2*ie)+2+M*w(J)*L*w(ie));while(b(Ft)>x&&--V>0);return J=le-L*S(ie),[Ot*(1/w(J)+We/w(ie))/Le,J]},tt.invert=function(Ot,Mt){return[Ot/w(Mt),Mt]};var Ge=$e(1,4/M,M);function ht(){return(0,c.c)(Ge).scale(152.63)}var pt=n(24052),wt=n(92992);function Dt(Ot,Mt,Ft,J,le,ie){var V,ne=w(ie);if(b(Ot)>1||b(ie)>1)V=Q(Ft*le+Mt*J*ne);else{var ge=S(Ot/2),xe=S(ie/2);V=2*$(j(ge*ge+Mt*J*xe*xe))}return b(V)>x?[V,O(J*S(ie),Mt*le-Ft*J*ne)]:[0,0]}function It(Ot,Mt,Ft){return Q((Ot*Ot+Mt*Mt-Ft*Ft)/(2*Ot*Mt))}function qt(Ot){return Ot-2*M*p((Ot+M)/(2*M))}function en(Ot,Mt,Ft){for(var J,le=[[Ot[0],Ot[1],S(Ot[1]),w(Ot[1])],[Mt[0],Mt[1],S(Mt[1]),w(Mt[1])],[Ft[0],Ft[1],S(Ft[1]),w(Ft[1])]],ie=le[2],V=0;V<3;++V,ie=J)J=le[V],ie.v=Dt(J[1]-ie[1],ie[3],ie[2],J[3],J[2],J[0]-ie[0]),ie.point=[0,0];var ne=It(le[0].v[0],le[2].v[0],le[1].v[0]),ge=It(le[0].v[0],le[1].v[0],le[2].v[0]),xe=M-ne;le[2].point[1]=0,le[0].point[0]=-(le[1].point[0]=le[0].v[0]/2);var Me=[le[2].point[0]=le[0].point[0]+le[2].v[0]*w(ne),2*(le[0].point[1]=le[1].point[1]=le[2].v[0]*S(ne))];return function(Fe,Je){var rt,dt=S(Je),mt=w(Je),Et=new Array(3);for(rt=0;rt<3;++rt){var Vt=le[rt];if(Et[rt]=Dt(Je-Vt[1],Vt[3],Vt[2],mt,dt,Fe-Vt[0]),!Et[rt][0])return Vt.point;Et[rt][1]=qt(Et[rt][1]-Vt.v[1])}var jt=Me.slice();for(rt=0;rt<3;++rt){var Nt=rt==2?0:rt+1,cn=It(le[rt].v[0],Et[rt][0],Et[Nt][0]);Et[rt][1]<0&&(cn=-cn),rt?rt==1?(cn=ge-cn,jt[0]-=Et[rt][0]*w(cn),jt[1]-=Et[rt][0]*S(cn)):(cn=xe-cn,jt[0]+=Et[rt][0]*w(cn),jt[1]+=Et[rt][0]*S(cn)):(jt[0]+=Et[rt][0]*w(cn),jt[1]-=Et[rt][0]*S(cn))}return jt[0]/=3,jt[1]/=3,jt}}function Gt(Ot){return Ot[0]*=z,Ot[1]*=z,Ot}function Ct(){return _t([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function _t(Ot,Mt,Ft){var J=(0,pt.c)({type:"MultiPoint",coordinates:[Ot,Mt,Ft]}),le=[-J[0],-J[1]],ie=(0,wt.c)(le),V=en(Gt(ie(Ot)),Gt(ie(Mt)),Gt(ie(Ft)));V.invert=ze(V);var ne=(0,c.c)(V).rotate(le),ge=ne.center;return delete ne.rotate,ne.center=function(xe){return arguments.length?ge(ie(xe)):ie.invert(ge())},ne.clipAngle(90)}function nn(Ot,Mt){var Ft=j(1-S(Mt));return[2/D*Ot*Ft,D*(1-Ft)]}function gn(){return(0,c.c)(nn).scale(95.6464).center([0,30])}function bn(Ot){var Mt=A(Ot);function Ft(J,le){return[J,(J?J/S(J):1)*(S(le)*w(J)-Mt*w(le))]}return Ft.invert=Mt?function(J,le){J&&(le*=S(J)/J);var ie=w(J);return[J,2*O(j(ie*ie+Mt*Mt-le*le)-ie,Mt-le)]}:function(J,le){return[J,$(J?le*A(J)/J:le)]},Ft}function mn(){return Xe(bn).scale(249.828).clipAngle(90)}nn.invert=function(Ot,Mt){var Ft=(Ft=Mt/D-1)*Ft;return[Ft>0?Ot*j(M/Ft)/2:0,$(1-Ft)]};var vt=j(3);function bt(Ot,Mt){return[vt*Ot*(2*w(2*Mt/3)-1)/D,vt*D*S(Mt/3)]}function lt(){return(0,c.c)(bt).scale(156.19)}function yt(Ot){var Mt=w(Ot);function Ft(J,le){return[J*Mt,S(le)/Mt]}return Ft.invert=function(J,le){return[J/Mt,$(le*Mt)]},Ft}function zt(){return Xe(yt).parallel(38.58).scale(195.044)}function Rt(Ot){var Mt=w(Ot);function Ft(J,le){return[J*Mt,(1+Mt)*A(le/2)]}return Ft.invert=function(J,le){return[J/Mt,2*i(le/(1+Mt))]},Ft}function it(){return Xe(Rt).scale(124.75)}function at(Ot,Mt){var Ft=j(8/(3*M));return[Ft*Ot*(1-b(Mt)/M),Ft*Mt]}function Lt(){return(0,c.c)(at).scale(165.664)}function xt(Ot,Mt){var Ft=j(4-3*S(b(Mt)));return[2/j(6*M)*Ot*Ft,_(Mt)*j(2*M/3)*(2-Ft)]}function Zt(){return(0,c.c)(xt).scale(165.664)}function Xt(Ot,Mt){var Ft=j(M*(4+M));return[2/Ft*Ot*(1+j(1-4*Mt*Mt/(M*M))),4/Ft*Mt]}function Yt(){return(0,c.c)(Xt).scale(180.739)}function Qt(Ot,Mt){var Ft=(2+T)*S(Mt);Mt/=2;for(var J=0,le=1/0;J<10&&b(le)>x;J++){var ie=w(Mt);Mt-=le=(Mt+S(Mt)*(ie+2)-Ft)/(2*ie*(1+ie))}return[2/j(M*(4+M))*Ot*(1+w(Mt)),2*j(M/(4+M))*S(Mt)]}function Pt(){return(0,c.c)(Qt).scale(180.739)}function tn(Ot,Mt){return[Ot*(1+w(Mt))/j(2+M),2*Mt/j(2+M)]}function Kt(){return(0,c.c)(tn).scale(173.044)}function fn(Ot,Mt){for(var Ft=(1+T)*S(Mt),J=0,le=1/0;J<10&&b(le)>x;J++)Mt-=le=(Mt+S(Mt)-Ft)/(1+w(Mt));return Ft=j(2+M),[Ot*(1+w(Mt))/Ft,2*Mt/Ft]}function dn(){return(0,c.c)(fn).scale(173.044)}bt.invert=function(Ot,Mt){var Ft=3*$(Mt/(vt*D));return[D*Ot/(vt*(2*w(2*Ft/3)-1)),Ft]},at.invert=function(Ot,Mt){var Ft=j(8/(3*M)),J=Mt/Ft;return[Ot/(Ft*(1-b(J)/M)),J]},xt.invert=function(Ot,Mt){var Ft=2-b(Mt)/j(2*M/3);return[Ot*j(6*M)/(2*Ft),_(Mt)*$((4-Ft*Ft)/3)]},Xt.invert=function(Ot,Mt){var Ft=j(M*(4+M))/2;return[Ot*Ft/(1+j(1-Mt*Mt*(4+M)/(4*M))),Mt*Ft/2]},Qt.invert=function(Ot,Mt){var Ft=Mt*j((4+M)/M)/2,J=$(Ft),le=w(J);return[Ot/(2/j(M*(4+M))*(1+le)),$((J+Ft*(le+2))/(2+T))]},tn.invert=function(Ot,Mt){var Ft=j(2+M),J=Mt*Ft/2;return[Ft*Ot/(1+w(J)),J]},fn.invert=function(Ot,Mt){var Ft=1+T,J=j(Ft/2);return[2*Ot*J/(1+w(Mt*=J)),$((Mt+S(Mt))/Ft)]};var vn=3+2*L;function Nn(Ot,Mt){var Ft=S(Ot/=2),J=w(Ot),le=j(w(Mt)),ie=w(Mt/=2),V=S(Mt)/(ie+L*J*le),ne=j(2/(1+V*V)),ge=j((L*ie+(J+Ft)*le)/(L*ie+(J-Ft)*le));return[vn*(ne*(ge-1/ge)-2*a(ge)),vn*(ne*V*(ge+1/ge)-2*i(V))]}function er(){return(0,c.c)(Nn).scale(62.5271)}Nn.invert=function(Ot,Mt){if(!(Ft=ee.invert(Ot/1.2,1.065*Mt)))return null;var Ft,J=Ft[0],le=Ft[1],ie=20;Ot/=vn,Mt/=vn;do{var V=J/2,ne=le/2,ge=S(V),xe=w(V),Me=S(ne),Fe=w(ne),Je=w(le),rt=j(Je),dt=Me/(Fe+L*xe*rt),mt=dt*dt,Et=j(2/(1+mt)),Vt=(L*Fe+(xe+ge)*rt)/(L*Fe+(xe-ge)*rt),jt=j(Vt),Nt=jt-1/jt,cn=jt+1/jt,sn=Et*Nt-2*a(jt)-Ot,xn=Et*dt*cn-2*i(dt)-Mt,pn=Me&&C*rt*ge*mt/Me,Ln=(L*xe*Fe+rt)/(2*(Fe+L*xe*rt)*(Fe+L*xe*rt)*rt),On=-.5*dt*Et*Et*Et,An=On*pn,Sn=On*Ln,rr=(rr=2*Fe+L*rt*(xe-ge))*rr*jt,Dr=(L*xe*Fe*rt+Je)/rr,Pr=-L*ge*Me/(rt*rr),Zr=Nt*An-2*Dr/jt+Et*(Dr+Dr/Vt),Mo=Nt*Sn-2*Pr/jt+Et*(Pr+Pr/Vt),$o=dt*cn*An-2*pn/(1+mt)+Et*cn*pn+Et*dt*(Dr-Dr/Vt),vo=dt*cn*Sn-2*Ln/(1+mt)+Et*cn*Ln+Et*dt*(Pr-Pr/Vt),zo=Mo*$o-vo*Zr;if(!zo)break;var yi=(xn*Mo-sn*vo)/zo,Si=(sn*$o-xn*Zr)/zo;J-=yi,le=u(-T,h(T,le-Si))}while((b(yi)>x||b(Si)>x)&&--ie>0);return b(b(le)-T)J){var Fe=j(Me),Je=O(xe,ge),rt=Ft*v(Je/Ft),dt=Je-rt,mt=Ot*w(dt),Et=(Ot*S(dt)-dt*S(mt))/(T-mt),Vt=Fr(dt,Et),jt=(M-Ot)/Rr(Vt,mt,M);ge=Fe;var Nt,cn=50;do ge-=Nt=(Ot+Rr(Vt,mt,ge)*jt-Fe)/(Vt(ge)*jt);while(b(Nt)>x&&--cn>0);xe=dt*S(ge),geJ){var ge=j(ne),xe=O(V,ie),Me=Ft*v(xe/Ft),Fe=xe-Me;ie=ge*w(Fe),V=ge*S(Fe);for(var Je=ie-T,rt=S(ie),dt=V/rt,mt=iex||b(Je)>x)&&--mt>0);return[rt,dt]},ge}var Co=Kr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function so(){return(0,c.c)(Co).scale(149.995)}var So=Kr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function go(){return(0,c.c)(So).scale(153.93)}var li=Kr(5/6*M,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Pn(){return(0,c.c)(li).scale(130.945)}function Yn(Ot,Mt){var Ft=Ot*Ot,J=Mt*Mt;return[Ot*(1-.162388*J)*(.87-952426e-9*Ft*Ft),Mt*(1+J/12)]}function br(){return(0,c.c)(Yn).scale(131.747)}Yn.invert=function(Ot,Mt){var Ft,J=Ot,le=Mt,ie=50;do{var V=le*le;le-=Ft=(le*(1+V/12)-Mt)/(1+V/4)}while(b(Ft)>x&&--ie>0);ie=50,Ot/=1-.162388*V;do{var ne=(ne=J*J)*ne;J-=Ft=(J*(.87-952426e-9*ne)-Ot)/(.87-.00476213*ne)}while(b(Ft)>x&&--ie>0);return[J,le]};var dr=Kr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Cr(){return(0,c.c)(dr).scale(131.087)}function io(Ot){var Mt=Ot(T,0)[0]-Ot(-T,0)[0];function Ft(J,le){var ie=J>0?-.5:.5,V=Ot(J+ie*M,le);return V[0]-=ie*Mt,V}return Ot.invert&&(Ft.invert=function(J,le){var ie=J>0?-.5:.5,V=Ot.invert(J+ie*Mt,le),ne=V[0]-ie*M;return ne<-M?ne+=2*M:ne>M&&(ne-=2*M),V[0]=ne,V}),Ft}function Qr(Ot,Mt){var Ft=_(Ot),J=_(Mt),le=w(Mt),ie=w(Ot)*le,V=S(Ot)*le,ne=S(J*Mt);Ot=b(O(V,ne)),Mt=$(ie),b(Ot-T)>x&&(Ot%=T);var ge=function(xe,Me){if(Me===T)return[0,0];var Fe,Je,rt=S(Me),dt=rt*rt,mt=dt*dt,Et=1+mt,Vt=1+3*mt,jt=1-mt,Nt=$(1/j(Et)),cn=jt+dt*Et*Nt,sn=(1-rt)/cn,xn=j(sn),pn=sn*Et,Ln=j(pn),On=xn*jt;if(xe===0)return[0,-(On+dt*Ln)];var An,Sn=w(Me),rr=1/Sn,Dr=2*rt*Sn,Pr=(-cn*Sn-(1-rt)*((-3*dt+Nt*Vt)*Dr))/(cn*cn),Zr=-rr*Dr,Mo=-rr*(dt*Et*Pr+sn*Vt*Dr),$o=-2*rr*(jt*(.5*Pr/xn)-2*dt*xn*Dr),vo=4*xe/M;if(xe>.222*M||Me.175*M){if(Fe=(On+dt*j(pn*(1+mt)-On*On))/(1+mt),xe>M/4)return[Fe,Fe];var zo=Fe,yi=.5*Fe;Fe=.5*(yi+zo),Je=50;do{var Si=Fe*($o+Zr*j(pn-Fe*Fe))+Mo*$(Fe/Ln)-vo;if(!Si)break;Si<0?yi=Fe:zo=Fe,Fe=.5*(yi+zo)}while(b(zo-yi)>x&&--Je>0)}else{Fe=x,Je=25;do{var Hr=Fe*Fe,Lo=j(pn-Hr),ki=$o+Zr*Lo,Io=Fe*ki+Mo*$(Fe/Ln)-vo;Fe-=An=Lo?Io/(ki+(Mo-Zr*Hr)/Lo):0}while(b(An)>x&&--Je>0)}return[Fe,-On-dt*j(pn-Fe*Fe)]}(Ot>M/4?T-Ot:Ot,Mt);return Ot>M/4&&(ne=ge[0],ge[0]=-ge[1],ge[1]=-ne),ge[0]*=Ft,ge[1]*=-J,ge}function Wr(){return(0,c.c)(io(Qr)).scale(239.75)}function bo(Ot,Mt){var Ft,J,le,ie,V,ne;if(Mt=1-x)return Ft=(1-Mt)/4,le=1/(J=X(Ot)),[(ie=((ne=y(2*(ne=Ot)))-1)/(ne+1))+Ft*((V=J*U(Ot))-Ot)/(J*J),le-Ft*ie*le*(V-Ot),le+Ft*ie*le*(V+Ot),2*i(y(Ot))-T+Ft*(V-Ot)/J];var ge=[1,0,0,0,0,0,0,0,0],xe=[j(Mt),0,0,0,0,0,0,0,0],Me=0;for(J=j(1-Mt),V=1;b(xe[Me]/ge[Me])>x&&Me<8;)Ft=ge[Me++],xe[Me]=(Ft-J)/2,ge[Me]=(Ft+J)/2,J=j(Ft*J),V*=2;le=V*ge[Me]*Ot;do le=($(ie=xe[Me]*S(J=le)/ge[Me])+le)/2;while(--Me);return[S(le),ie=w(le),ie/w(le-J),le]}function Bn(Ot,Mt){if(!Mt)return Ot;if(Mt===1)return a(A(Ot/2+E));for(var Ft=1,J=j(1-Mt),le=j(Mt),ie=0;b(le)>x;ie++){if(Ot%M){var V=i(J*A(Ot)/Ft);V<0&&(V+=M),Ot+=V+~~(Ot/M)*M}else Ot+=Ot;le=(Ft+J)/2,J=j(Ft*J),le=((Ft=le)-J)/2}return Ot/(m(2,ie)*Ft)}function hr(Ot,Mt){var Ft=(L-1)/(L+1),J=j(1-Ft*Ft),le=Bn(T,J*J),ie=a(A(M/4+b(Mt)/2)),V=y(-1*ie)/j(Ft),ne=function(xe,Me){var Fe=xe*xe,Je=Me+1,rt=1-Fe-Me*Me;return[.5*((xe>=0?T:-T)-O(rt,2*xe)),-.25*a(rt*rt+4*Fe)+.5*a(Je*Je+Fe)]}(V*w(-1*Ot),V*S(-1*Ot)),ge=function(xe,Me,Fe){var Je=b(xe),rt=U(b(Me));if(Je){var dt=1/S(Je),mt=1/(A(Je)*A(Je)),Et=-(mt+Fe*(rt*rt*dt*dt)-1+Fe),Vt=(-Et+j(Et*Et-(Fe-1)*mt*4))/2;return[Bn(i(1/j(Vt)),Fe)*_(xe),Bn(i(j((Vt/mt-1)/Fe)),1-Fe)*_(Me)]}return[0,Bn(i(rt),1-Fe)*_(Me)]}(ne[0],ne[1],J*J);return[-ge[1],(Mt>=0?1:-1)*(.5*le-ge[0])]}function hn(){return(0,c.c)(io(hr)).scale(151.496)}Qr.invert=function(Ot,Mt){b(Ot)>1&&(Ot=2*_(Ot)-Ot),b(Mt)>1&&(Mt=2*_(Mt)-Mt);var Ft=_(Ot),J=_(Mt),le=-Ft*Ot,ie=-J*Mt,V=ie/le<1,ne=function(Fe,Je){for(var rt=0,dt=1,mt=.5,Et=50;;){var Vt=mt*mt,jt=j(mt),Nt=$(1/j(1+Vt)),cn=1-Vt+mt*(1+Vt)*Nt,sn=(1-jt)/cn,xn=j(sn),pn=sn*(1+Vt),Ln=xn*(1-Vt),On=j(pn-Fe*Fe),An=Je+Ln+mt*On;if(b(dt-rt)0?rt=mt:dt=mt,mt=.5*(rt+dt)}if(!Et)return null;var Sn=$(jt),rr=w(Sn),Dr=1/rr,Pr=2*jt*rr,Zr=(-cn*rr-(-3*mt+Nt*(1+3*Vt))*Pr*(1-jt))/(cn*cn);return[M/4*(Fe*(-2*Dr*((1-Vt)*(.5*Zr/xn)-2*mt*xn*Pr)+-Dr*Pr*On)+-Dr*(mt*(1+Vt)*Zr+sn*(1+3*Vt)*Pr)*$(Fe/j(pn))),Sn]}(V?ie:le,V?le:ie),ge=ne[0],xe=ne[1],Me=w(xe);return V&&(ge=-T-ge),[Ft*(O(S(ge)*Me,-S(xe))+M),J*$(w(ge)*Me)]},hr.invert=function(Ot,Mt){var Ft,J,le,ie,V,ne,ge=(L-1)/(L+1),xe=j(1-ge*ge),Me=(J=-Ot,le=xe*xe,(Ft=.5*Bn(T,xe*xe)-Mt)?(ie=bo(Ft,le),J?(ne=(V=bo(J,1-le))[1]*V[1]+le*ie[0]*ie[0]*V[0]*V[0],[[ie[0]*V[2]/ne,ie[1]*ie[2]*V[0]*V[1]/ne],[ie[1]*V[1]/ne,-ie[0]*ie[2]*V[0]*V[2]/ne],[ie[2]*V[1]*V[2]/ne,-le*ie[0]*ie[1]*V[0]/ne]]):[[ie[0],0],[ie[1],0],[ie[2],0]]):[[0,(V=bo(J,1-le))[0]/V[1]],[1/V[1],0],[V[2]/V[1],0]]),Fe=function(Je,rt){var dt=rt[0]*rt[0]+rt[1]*rt[1];return[(Je[0]*rt[0]+Je[1]*rt[1])/dt,(Je[1]*rt[0]-Je[0]*rt[1])/dt]}(Me[0],Me[1]);return[O(Fe[1],Fe[0])/-1,2*i(y(-.5*a(ge*Fe[0]*Fe[0]+ge*Fe[1]*Fe[1])))-T]};var zn=n(61780);function Zn(Ot){var Mt=S(Ot),Ft=w(Ot),J=yr(Ot);function le(ie,V){var ne=J(ie,V);ie=ne[0],V=ne[1];var ge=S(V),xe=w(V),Me=w(ie),Fe=Q(Mt*ge+Ft*xe*Me),Je=S(Fe),rt=b(Je)>x?Fe/Je:1;return[rt*Ft*S(ie),(b(ie)>T?rt:-rt)*(Mt*xe-Ft*ge*Me)]}return J.invert=yr(-Ot),le.invert=function(ie,V){var ne=j(ie*ie+V*V),ge=-S(ne),xe=w(ne),Me=ne*xe,Fe=-V*ge,Je=ne*Mt,rt=j(Me*Me+Fe*Fe-Je*Je),dt=O(Me*Je+Fe*rt,Fe*Je-Me*rt),mt=(ne>T?-1:1)*O(ie*ge,ne*w(dt)*xe+V*S(dt)*ge);return J.invert(mt,dt)},le}function yr(Ot){var Mt=S(Ot),Ft=w(Ot);return function(J,le){var ie=w(le),V=w(J)*ie,ne=S(J)*ie,ge=S(le);return[O(ne,V*Ft-ge*Mt),$(ge*Ft+V*Mt)]}}function gr(){var Ot=0,Mt=(0,c.U)(Zn),Ft=Mt(Ot),J=Ft.rotate,le=Ft.stream,ie=(0,zn.c)();return Ft.parallel=function(V){if(!arguments.length)return Ot*I;var ne=Ft.rotate();return Mt(Ot=V*z).rotate(ne)},Ft.rotate=function(V){return arguments.length?(J.call(Ft,[V[0],V[1]-Ot*I]),ie.center([-V[0],-V[1]]),Ft):((V=J.call(Ft))[1]+=Ot*I,V)},Ft.stream=function(V){return(V=le(V)).sphere=function(){V.polygonStart();var ne,ge=ie.radius(89.99)().coordinates[0],xe=ge.length-1,Me=-1;for(V.lineStart();++Me=0;)V.point((ne=ge[Me])[0],ne[1]);V.lineEnd(),V.polygonEnd()},V},Ft.scale(79.4187).parallel(45).clipAngle(179.999)}var vr=n(84706),nr=n(16016),Qn=$(1-1/3)*I,Hn=yt(0);function tr(Ot){var Mt=Qn*z,Ft=nn(M,Mt)[0]-nn(-M,Mt)[0],J=Hn(0,Mt)[1],le=nn(0,Mt)[1],ie=D-le,V=k/Ot,ne=4/k,ge=J+ie*ie*4/k;function xe(Me,Fe){var Je,rt=b(Fe);if(rt>Mt){var dt=h(Ot-1,u(0,p((Me+M)/V)));(Je=nn(Me+=M*(Ot-1)/Ot-dt*V,rt))[0]=Je[0]*k/Ft-k*(Ot-1)/(2*Ot)+dt*k/Ot,Je[1]=J+4*(Je[1]-le)*ie/k,Fe<0&&(Je[1]=-Je[1])}else Je=Hn(Me,Fe);return Je[0]*=ne,Je[1]/=ge,Je}return xe.invert=function(Me,Fe){Me/=ne;var Je=b(Fe*=ge);if(Je>J){var rt=h(Ot-1,u(0,p((Me+M)/V)));Me=(Me+M*(Ot-1)/Ot-rt*V)*Ft/k;var dt=nn.invert(Me,.25*(Je-J)*k/ie+le);return dt[0]-=M*(Ot-1)/Ot-rt*V,Fe<0&&(dt[1]=-dt[1]),dt}return Hn.invert(Me,Fe)},xe}function cr(Ot,Mt){return[Ot,1&Mt?90-x:Qn]}function Lr(Ot,Mt){return[Ot,1&Mt?-90+x:-Qn]}function Er(Ot){return[Ot[0]*(1-x),Ot[1]]}function Vr(){var Ot=4,Mt=(0,c.U)(tr),Ft=Mt(Ot),J=Ft.stream;return Ft.lobes=function(le){return arguments.length?Mt(Ot=+le):Ot},Ft.stream=function(le){var ie=Ft.rotate(),V=J(le),ne=(Ft.rotate([0,0]),J(le));return Ft.rotate(ie),V.sphere=function(){var ge,xe;(0,nr.c)((ge=180/Ot,xe=[].concat((0,vr.ik)(-180,180+ge/2,ge).map(cr),(0,vr.ik)(180,-180-ge/2,-ge).map(Lr)),{type:"Polygon",coordinates:[ge===180?xe.map(Er):xe]}),ne)},V},Ft.scale(239.75)}function to(Ot){var Mt,Ft=1+Ot,J=$(S(1/Ft)),le=2*j(M/(Mt=M+4*J*Ft)),ie=.5*le*(Ft+j(Ot*(2+Ot))),V=Ot*Ot,ne=Ft*Ft;function ge(xe,Me){var Fe,Je,rt=1-S(Me);if(rt&&rt<2){var dt,mt=T-Me,Et=25;do{var Vt=S(mt),jt=w(mt),Nt=J+O(Vt,Ft-jt),cn=1+ne-2*Ft*jt;mt-=dt=(mt-V*J-Ft*Vt+cn*Nt-.5*rt*Mt)/(2*Ft*Vt*Nt)}while(b(dt)>R&&--Et>0);Fe=le*j(cn),Je=xe*Nt/M}else Fe=le*(Ot+rt),Je=xe*J/M;return[Fe*S(Je),ie-Fe*w(Je)]}return ge.invert=function(xe,Me){var Fe=xe*xe+(Me-=ie)*Me,Je=(1+ne-Fe/(le*le))/(2*Ft),rt=Q(Je),dt=S(rt),mt=J+O(dt,Ft-Je);return[$(xe/j(Fe))*M/mt,$(1-2*(rt-V*J-Ft*dt+(1+ne-2*Ft*Je)*mt)/Mt)]},ge}function _o(){var Ot=1,Mt=(0,c.U)(to),Ft=Mt(Ot);return Ft.ratio=function(J){return arguments.length?Mt(Ot=+J):Ot},Ft.scale(167.774).center([0,18.67])}var fr=.7109889596207567,Eo=.0528035274542;function ao(Ot,Mt){return Mt>-fr?((Ot=Oe(Ot,Mt))[1]+=Eo,Ot):tt(Ot,Mt)}function co(){return(0,c.c)(ao).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Go(Ot,Mt){return b(Mt)>fr?((Ot=Oe(Ot,Mt))[1]-=Mt>0?Eo:-Eo,Ot):tt(Ot,Mt)}function po(){return(0,c.c)(Go).scale(152.63)}function qo(Ot,Mt,Ft,J){var le=j(4*M/(2*Ft+(1+Ot-Mt/2)*S(2*Ft)+(Ot+Mt)/2*S(4*Ft)+Mt/2*S(6*Ft))),ie=j(J*S(Ft)*j((1+Ot*w(2*Ft)+Mt*w(4*Ft))/(1+Ot+Mt))),V=Ft*ge(1);function ne(Fe){return j(1+Ot*w(2*Fe)+Mt*w(4*Fe))}function ge(Fe){var Je=Fe*Ft;return(2*Je+(1+Ot-Mt/2)*S(2*Je)+(Ot+Mt)/2*S(4*Je)+Mt/2*S(6*Je))/Ft}function xe(Fe){return ne(Fe)*S(Fe)}var Me=function(Fe,Je){var rt=Ft*Ie(ge,V*S(Je)/Ft,Je/M);isNaN(rt)&&(rt=Ft*_(Je));var dt=le*ne(rt);return[dt*ie*Fe/M*w(rt),dt/ie*S(rt)]};return Me.invert=function(Fe,Je){var rt=Ie(xe,Je*ie/le);return[Fe*M/(w(rt)*le*ie*ne(rt)),$(Ft*ge(rt/Ft)/V)]},Ft===0&&(le=j(J/M),(Me=function(Fe,Je){return[Fe*le,S(Je)/le]}).invert=function(Fe,Je){return[Fe/le,$(Je*le)]}),Me}function Ao(){var Ot=1,Mt=0,Ft=45*z,J=2,le=(0,c.U)(qo),ie=le(Ot,Mt,Ft,J);return ie.a=function(V){return arguments.length?le(Ot=+V,Mt,Ft,J):Ot},ie.b=function(V){return arguments.length?le(Ot,Mt=+V,Ft,J):Mt},ie.psiMax=function(V){return arguments.length?le(Ot,Mt,Ft=+V*z,J):Ft*I},ie.ratio=function(V){return arguments.length?le(Ot,Mt,Ft,J=+V):J},ie.scale(180.739)}function oi(Ot,Mt,Ft,J,le,ie,V,ne,ge,xe,Me){if(Me.nanEncountered)return NaN;var Fe,Je,rt,dt,mt,Et,Vt,jt,Nt,cn;if(Je=Ot(Mt+.25*(Fe=Ft-Mt)),rt=Ot(Ft-.25*Fe),isNaN(Je))Me.nanEncountered=!0;else{if(!isNaN(rt))return cn=((Et=(dt=Fe*(J+4*Je+le)/12)+(mt=Fe*(le+4*rt+ie)/12))-V)/15,xe>ge?(Me.maxDepthCount++,Et+cn):Math.abs(cn)rt?mt=Et:dt=Et,Et=dt+mt>>1;while(Et>dt);var Vt=ge[Et+1]-ge[Et];return Vt&&(Vt=(rt-ge[Et+1])/Vt),(Et+1+Vt)/V}var Fe=2*Me(1)/M*ie/Ft,Je=function(rt,dt){var mt=Me(b(S(dt))),Et=J(mt)*rt;return mt/=Fe,[Et,dt>=0?mt:-mt]};return Je.invert=function(rt,dt){var mt;return b(dt*=Fe)<1&&(mt=_(dt)*$(le(b(dt))*ie)),[rt/J(b(dt)),mt]},Je}function mo(){var Ot=0,Mt=2.5,Ft=1.183136,J=(0,c.U)(ra),le=J(Ot,Mt,Ft);return le.alpha=function(ie){return arguments.length?J(Ot=+ie,Mt,Ft):Ot},le.k=function(ie){return arguments.length?J(Ot,Mt=+ie,Ft):Mt},le.gamma=function(ie){return arguments.length?J(Ot,Mt,Ft=+ie):Ft},le.scale(152.63)}function Aa(Ot,Mt){return b(Ot[0]-Mt[0])Fe[Je][2][0];++Je);var dt=Ot(ge-Fe[Je][1][0],xe);return dt[0]+=Ot(Fe[Je][1][0],Me*xe>Me*Fe[Je][0][1]?Fe[Je][0][1]:xe)[0],dt}Ft?ie.invert=Ft(ie):Ot.invert&&(ie.invert=function(ge,xe){for(var Me=le[+(xe<0)],Fe=Mt[+(xe<0)],Je=0,rt=Me.length;Je=0;--Et)Fe=(Me=xe[1][Et])[0][0],Je=Me[0][1],rt=Me[1][1],dt=Me[2][0],mt=Me[2][1],Vt.push(Xl([[dt-x,mt-x],[dt-x,rt+x],[Fe+x,rt+x],[Fe+x,Je-x]],30));return{type:"Polygon",coordinates:[(0,vr.Uf)(Vt)]}}(ge),Mt=ge.map(function(xe){return xe.map(function(Me){return[[Me[0][0]*z,Me[0][1]*z],[Me[1][0]*z,Me[1][1]*z],[Me[2][0]*z,Me[2][1]*z]]})}),le=Mt.map(function(xe){return xe.map(function(Me){var Fe,Je=Ot(Me[0][0],Me[0][1])[0],rt=Ot(Me[2][0],Me[2][1])[0],dt=Ot(Me[1][0],Me[0][1])[1],mt=Ot(Me[1][0],Me[1][1])[1];return dt>mt&&(Fe=dt,dt=mt,mt=Fe),[[Je,dt],[rt,mt]]})}),V):Mt.map(function(xe){return xe.map(function(Me){return[[Me[0][0]*I,Me[0][1]*I],[Me[1][0]*I,Me[1][1]*I],[Me[2][0]*I,Me[2][1]*I]]})})},Mt!=null&&V.lobes(Mt),V}ao.invert=function(Ot,Mt){return Mt>-fr?Oe.invert(Ot,Mt-Eo):tt.invert(Ot,Mt)},Go.invert=function(Ot,Mt){return b(Mt)>fr?Oe.invert(Ot,Mt+(Mt>0?Eo:-Eo)):tt.invert(Ot,Mt)};var us=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function wc(){return Na(Ue,us).scale(160.857)}var ga=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Ku(){return Na(Go,ga).scale(152.63)}var qc=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Yd(){return Na(Oe,qc).scale(169.529)}var Ql=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Ed(){return Na(Oe,Ql).scale(169.529).rotate([20,0])}var Nf=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function mm(){return Na(ao,Nf,ze).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ws=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function gm(){return Na(tt,Ws).scale(152.63).rotate([-20,0])}function Gl(Ot,Mt){return[3/k*Ot*j(M*M/3-Mt*Mt),Mt]}function pc(){return(0,c.c)(Gl).scale(158.837)}function Cu(Ot){function Mt(Ft,J){if(b(b(J)-T)2)return null;var ie=(Ft/=2)*Ft,V=(J/=2)*J,ne=2*J/(1+ie+V);return ne=m((1+ne)/(1-ne),1/Ot),[O(2*Ft,1-ie-V)/Ot,$((ne-1)/(ne+1))]},Mt}function xl(){var Ot=.5,Mt=(0,c.U)(Cu),Ft=Mt(Ot);return Ft.spacing=function(J){return arguments.length?Mt(Ot=+J):Ot},Ft.scale(124.75)}Gl.invert=function(Ot,Mt){return[k/3*Ot/j(M*M/3-Mt*Mt),Mt]};var la=M/L;function cc(Ot,Mt){return[Ot*(1+j(w(Mt)))/2,Mt/(w(Mt/2)*w(Ot/6))]}function pu(){return(0,c.c)(cc).scale(97.2672)}function ju(Ot,Mt){var Ft=Ot*Ot,J=Mt*Mt;return[Ot*(.975534+J*(-.0143059*Ft-.119161+-.0547009*J)),Mt*(1.00384+Ft*(.0802894+-.02855*J+199025e-9*Ft)+J*(.0998909+-.0491032*J))]}function iu(){return(0,c.c)(ju).scale(139.98)}function mc(Ot,Mt){return[S(Ot)/w(Mt),A(Mt)*w(Ot)]}function ks(){return(0,c.c)(mc).scale(144.049).clipAngle(89.999)}function $f(Ot){var Mt=w(Ot),Ft=A(E+Ot/2);function J(le,ie){var V=ie-Ot,ne=b(V)=0;)Je=(Fe=Ot[Me])[0]+ge*(ie=Je)-xe*rt,rt=Fe[1]+ge*rt+xe*ie;return[Je=ge*(ie=Je)-xe*rt,rt=ge*rt+xe*ie]}return Ft.invert=function(J,le){var ie=20,V=J,ne=le;do{for(var ge,xe=Mt,Me=Ot[xe],Fe=Me[0],Je=Me[1],rt=0,dt=0;--xe>=0;)rt=Fe+V*(ge=rt)-ne*dt,dt=Je+V*dt+ne*ge,Fe=(Me=Ot[xe])[0]+V*(ge=Fe)-ne*Je,Je=Me[1]+V*Je+ne*ge;var mt,Et,Vt=(rt=Fe+V*(ge=rt)-ne*dt)*rt+(dt=Je+V*dt+ne*ge)*dt;V-=mt=((Fe=V*(ge=Fe)-ne*Je-J)*rt+(Je=V*Je+ne*ge-le)*dt)/Vt,ne-=Et=(Je*rt-Fe*dt)/Vt}while(b(mt)+b(Et)>x*x&&--ie>0);if(ie){var jt=j(V*V+ne*ne),Nt=2*i(.5*jt),cn=S(Nt);return[O(V*cn,jt*w(Nt)),jt?$(ne*cn/jt):0]}},Ft}cc.invert=function(Ot,Mt){var Ft=b(Ot),J=b(Mt),le=x,ie=T;Jx||b(Et)>x)&&--le>0);return le&&[Ft,J]},mc.invert=function(Ot,Mt){var Ft=Ot*Ot,J=Mt*Mt+1,le=Ft+J,ie=Ot?C*j((le-j(le*le-4*Ft))/Ft):1/j(J);return[$(Ot*ie),_(Mt)*Q(ie)]},Ju.invert=function(Ot,Mt){return[Ot,2.5*i(y(.8*Mt))-.625*M]};var ef=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],uc=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],sd=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Vf=[[.9245,0],[0,0],[.01943,0]],gc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function ld(){return cd(ef,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Mp(){return cd(uc,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Xd(){return cd(sd,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function bf(){return cd(Vf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function mh(){return cd(gc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function cd(Ot,Mt){var Ft=(0,c.c)(Es(Ot)).rotate(Mt).clipAngle(90),J=(0,wt.c)(Mt),le=Ft.center;return delete Ft.rotate,Ft.center=function(ie){return arguments.length?le(J(ie)):J.invert(le())},Ft}var Vh=j(6),xf=j(7);function tf(Ot,Mt){var Ft=$(7*S(Mt)/(3*Vh));return[Vh*Ot*(2*w(2*Ft/3)-1)/xf,9*S(Ft/3)/xf]}function Au(){return(0,c.c)(tf).scale(164.859)}function _f(Ot,Mt){for(var Ft,J=(1+C)*S(Mt),le=Mt,ie=0;ie<25&&(le-=Ft=(S(le/2)+S(le)-J)/(.5*w(le/2)+w(le)),!(b(Ft)R&&--ne>0);return[Ot/(.84719-.13063*(J=V*V)+(ie=J*(le=J*J))*ie*(.05494*J-.04515-.02326*le+.00331*ie)),V]},vm.invert=function(Ot,Mt){for(var Ft=Mt/2,J=0,le=1/0;J<10&&b(le)>x;++J){var ie=w(Mt/2);Mt-=le=(Mt-A(Mt/2)-Ft)/(1-.5/(ie*ie))}return[2*Ot/(1+w(Mt)),Mt]};var M0=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function sr(){return Na(Se(1/0),M0).rotate([20,0]).scale(152.63)}function Pp(Ot,Mt){var Ft=S(Mt),J=w(Mt),le=_(Ot);if(Ot===0||b(Mt)===T)return[0,Mt];if(Mt===0)return[Ot,0];if(b(Ot)===T)return[Ot*J,T*Ft];var ie=M/(2*Ot)-2*Ot/M,V=2*Mt/M,ne=(1-V*V)/(Ft-V),ge=ie*ie,xe=ne*ne,Me=1+ge/xe,Fe=1+xe/ge,Je=(ie*Ft/ne-ie/2)/Me,rt=(xe*Ft/ge+ne/2)/Fe,dt=rt*rt-(xe*Ft*Ft/ge+ne*Ft-1)/Fe;return[T*(Je+j(Je*Je+J*J/Me)*le),T*(rt+j(dt<0?0:dt)*_(-Mt*ie)*le)]}function wf(){return(0,c.c)(Pp).scale(127.267)}Pp.invert=function(Ot,Mt){var Ft=(Ot/=T)*Ot,J=Ft+(Mt/=T)*Mt,le=M*M;return[Ot?(J-1+j((1-J)*(1-J)+4*Ft))/(2*Ot)*T:0,Ie(function(ie){return J*(M*S(ie)-2*ie)*M+4*ie*ie*(Mt-S(ie))+2*M*ie-le*Mt},0)]};var Of=1.0148,Rp=.23185,Gd=-.14499,Fa=.02406,Qu=Of,rf=5*Rp,Bc=7*Gd,ym=9*Fa,Mu=1.790857183;function Hu(Ot,Mt){var Ft=Mt*Mt;return[Ot,Mt*(Of+Ft*Ft*(Rp+Ft*(Gd+Fa*Ft)))]}function Lp(){return(0,c.c)(Hu).scale(139.319)}function Uh(Ot,Mt){if(b(Mt)Mu?Mt=Mu:Mt<-1.790857183&&(Mt=-1.790857183);var Ft,J=Mt;do{var le=J*J;J-=Ft=(J*(Of+le*le*(Rp+le*(Gd+Fa*le)))-Mt)/(Qu+le*le*(rf+le*(Bc+ym*le)))}while(b(Ft)>x);return[Ot,J]},Uh.invert=function(Ot,Mt){if(b(Mt)x&&--ie>0);return V=A(le),[(b(Mt)=0;)if(Ln=xn[rr],pn[0]===Ln[0]&&pn[1]===Ln[1]){if(An)return[An,pn];An=pn}}}(ge.face,xe.face),Fe=(mt=Me.map(xe.project),Et=Me.map(ge.project),Vt=Pu(mt[1],mt[0]),jt=Pu(Et[1],Et[0]),Nt=function(sn,xn){return O(sn[0]*xn[1]-sn[1]*xn[0],sn[0]*xn[0]+sn[1]*xn[1])}(Vt,jt),cn=Oc(Vt)/Oc(jt),vh([1,0,mt[0][0],0,1,mt[0][1]],vh([cn,0,0,0,cn,0],vh([w(Nt),S(Nt),0,-S(Nt),w(Nt),0],[1,0,-Et[0][0],0,1,-Et[0][1]]))));ge.transform=xe.transform?vh(xe.transform,Fe):Fe;for(var Je=xe.edges,rt=0,dt=Je.length;rt0?[-J[0],0]:[180-J[0],180])};var Mt=Zu.map(function(Ft){return{face:Ft,project:Ot(Ft)}});return[-1,0,0,1,0,1,4,5].forEach(function(Ft,J){var le=Mt[Ft];le&&(le.children||(le.children=[])).push(Mt[J])}),Ts(Mt[0],function(Ft,J){return Mt[Ft<-M/2?J<0?6:4:Ft<0?J<0?2:0:Ftge^jt>ge&&ne<(Vt-dt)*(ge-mt)/(jt-mt)+dt&&(xe=!xe)}return xe}(le[0],J))return le.push(Ft),!0})||Ot.push([Ft])}),Wc=[],Ot.length?Ot.length>1?{type:"MultiPolygon",coordinates:Ot}:{type:"Polygon",coordinates:Ot[0]}:null}};function xh(Ot){var Mt=Ot(T,0)[0]-Ot(-T,0)[0];function Ft(J,le){var ie=b(J)0?J-M:J+M,le),ne=(V[0]-V[1])*C,ge=(V[0]+V[1])*C;if(ie)return[ne,ge];var xe=Mt*C,Me=ne>0^ge>0?-1:1;return[Me*ne-_(ge)*xe,Me*ge-_(ne)*xe]}return Ot.invert&&(Ft.invert=function(J,le){var ie=(J+le)*C,V=(le-J)*C,ne=b(ie)<.5*Mt&&b(V)<.5*Mt;if(!ne){var ge=Mt*C,xe=ie>0^V>0?-1:1,Me=-xe*J+(V>0?1:-1)*ge,Fe=-xe*le+(ie>0?1:-1)*ge;ie=(-Me-Fe)*C,V=(Me-Fe)*C}var Je=Ot.invert(ie,V);return ne||(Je[0]+=ie>0?M:-M),Je}),(0,c.c)(Ft).rotate([-90,-90,45]).clipAngle(179.999)}function js(){return xh(Qr).scale(176.423)}function os(){return xh(hr).scale(111.48)}function af(Ot,Mt){if(!(0<=(Mt=+Mt)&&Mt<=20))throw new Error("invalid digits");function Ft(xe){var Me=xe.length,Fe=2,Je=new Array(Me);for(Je[0]=+xe[0].toFixed(Mt),Je[1]=+xe[1].toFixed(Mt);Fe2||rt[0]!=Me[0]||rt[1]!=Me[1])&&(Fe.push(rt),Me=rt)}return Fe.length===1&&xe.length>1&&Fe.push(Ft(xe[xe.length-1])),Fe}function ie(xe){return xe.map(le)}function V(xe){if(xe==null)return xe;var Me;switch(xe.type){case"GeometryCollection":Me={type:"GeometryCollection",geometries:xe.geometries.map(V)};break;case"Point":Me={type:"Point",coordinates:Ft(xe.coordinates)};break;case"MultiPoint":Me={type:xe.type,coordinates:J(xe.coordinates)};break;case"LineString":Me={type:xe.type,coordinates:le(xe.coordinates)};break;case"MultiLineString":case"Polygon":Me={type:xe.type,coordinates:ie(xe.coordinates)};break;case"MultiPolygon":Me={type:"MultiPolygon",coordinates:xe.coordinates.map(ie)};break;default:return xe}return xe.bbox!=null&&(Me.bbox=xe.bbox),Me}function ne(xe){var Me={type:"Feature",properties:xe.properties,geometry:V(xe.geometry)};return xe.id!=null&&(Me.id=xe.id),xe.bbox!=null&&(Me.bbox=xe.bbox),Me}if(Ot!=null)switch(Ot.type){case"Feature":return ne(Ot);case"FeatureCollection":var ge={type:"FeatureCollection",features:Ot.features.map(ne)};return Ot.bbox!=null&&(ge.bbox=Ot.bbox),ge;default:return V(Ot)}return Ot}function Sf(Ot){var Mt=S(Ot);function Ft(J,le){var ie=Mt?A(J*Mt/2)/Mt:J/2;if(!le)return[2*ie,-Ot];var V=2*i(ie*S(le)),ne=1/A(le);return[S(V)*ne,le+(1-w(V))*ne-Ot]}return Ft.invert=function(J,le){if(b(le+=Ot)x&&--ge>0);var Je=J*(xe=A(ne)),rt=A(b(le)0?T:-T)*(xe+ie*(Fe-ne)/2+ie*ie*(Fe-2*xe+ne)/2)]}function pi(){return(0,c.c)(Hi).scale(152.63)}function Qh(Ot,Mt){var Ft=function(V){function ne(ge,xe){var Me=w(xe),Fe=(V-1)/(V-Me*w(ge));return[Fe*Me*S(ge),Fe*S(xe)]}return ne.invert=function(ge,xe){var Me=ge*ge+xe*xe,Fe=j(Me),Je=(V-j(1-Me*(V+1)/(V-1)))/((V-1)/Fe+Fe/(V-1));return[O(ge*Je,Fe*j(1-Je*Je)),Fe?$(xe*Je/Fe):0]},ne}(Ot);if(!Mt)return Ft;var J=w(Mt),le=S(Mt);function ie(V,ne){var ge=Ft(V,ne),xe=ge[1],Me=xe*le/(Ot-1)+J;return[ge[0]*J/Me,xe/Me]}return ie.invert=function(V,ne){var ge=(Ot-1)/(Ot-1-ne*le);return Ft.invert(ge*V,ge*ne*J)},ie}function Ru(){var Ot=2,Mt=0,Ft=(0,c.U)(Qh),J=Ft(Ot,Mt);return J.distance=function(le){return arguments.length?Ft(Ot=+le,Mt):Ot},J.tilt=function(le){return arguments.length?Ft(Ot,Mt=le*z):Mt*I},J.scale(432.147).clipAngle(Q(1/Ot)*I-1e-6)}Ml.forEach(function(Ot){Ot[1]*=1.0144}),Hi.invert=function(Ot,Mt){var Ft=Mt/T,J=90*Ft,le=h(18,b(J/5)),ie=u(0,p(le));do{var V=Ml[ie][1],ne=Ml[ie+1][1],ge=Ml[h(19,ie+2)][1],xe=ge-V,Me=ge-2*ne+V,Fe=2*(b(Ft)-ne)/xe,Je=Me/xe,rt=Fe*(1-Je*Fe*(1-2*Je*Fe));if(rt>=0||ie===1){J=(Mt>=0?5:-5)*(rt+le);var dt,mt=50;do rt=(le=h(18,b(J)/5))-(ie=p(le)),V=Ml[ie][1],ne=Ml[ie+1][1],ge=Ml[h(19,ie+2)][1],J-=(dt=(Mt>=0?T:-T)*(ne+rt*(ge-V)/2+rt*rt*(ge-2*ne+V)/2)-Mt)*I;while(b(dt)>R&&--mt>0);break}}while(--ie>=0);var Et=Ml[ie][0],Vt=Ml[ie+1][0],jt=Ml[h(19,ie+2)][0];return[Ot/(Vt+rt*(jt-Et)/2+rt*rt*(jt-2*Vt+Et)/2),J*z]};var vc=1e-4,Yc=1e4,Kl=-180,Fc=Kl+vc,si=180,Hh=si-vc,Ps=-90,Sc=Ps+vc,tl=90,gu=tl-vc;function vu(Ot){return Ot.length>0}function ja(Ot){return Ot===Ps||Ot===tl?[0,Ot]:[Kl,(Mt=Ot,Math.floor(Mt*Yc)/Yc)];var Mt}function yu(Ot){var Mt=Ot[0],Ft=Ot[1],J=!1;return Mt<=Fc?(Mt=Kl,J=!0):Mt>=Hh&&(Mt=si,J=!0),Ft<=Sc?(Ft=Ps,J=!0):Ft>=gu&&(Ft=tl,J=!0),J?[Mt,Ft]:Ot}function Rd(Ot){return Ot.map(yu)}function Ld(Ot,Mt,Ft){for(var J=0,le=Ot.length;J=Hh||Me<=Sc||Me>=gu){ie[V]=yu(ge);for(var Fe=V+1;FeFc&&rtSc&&dt=ne)break;Ft.push({index:-1,polygon:Mt,ring:ie=ie.slice(Fe-1)}),ie[0]=ja(ie[0][1]),V=-1,ne=ie.length}}}}function nl(Ot){var Mt,Ft,J,le,ie,V,ne=Ot.length,ge={},xe={};for(Mt=0;Mt0?M-ne:ne)*I],xe=(0,c.c)(Ot(V)).rotate(ge),Me=(0,wt.c)(ge),Fe=xe.center;return delete xe.rotate,xe.center=function(Je){return arguments.length?Fe(Me(Je)):Me.invert(Fe())},xe.clipAngle(90)}function Dp(Ot){var Mt=w(Ot);function Ft(J,le){var ie=(0,Cs.Y)(J,le);return ie[0]*=Mt,ie}return Ft.invert=function(J,le){return Cs.Y.invert(J/Mt,le)},Ft}function rp(){return Lu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Lu(Ot,Mt){return bu(Dp,Ot,Mt)}function fs(Ot){if(!(Ot*=2))return de.O;var Mt=-Ot/2,Ft=-Mt,J=Ot*Ot,le=A(Ft),ie=.5/S(Ft);function V(ne,ge){var xe=Q(w(ge)*w(ne-Mt)),Me=Q(w(ge)*w(ne-Ft));return[((xe*=xe)-(Me*=Me))/(2*Ot),(ge<0?-1:1)*j(4*J*Me-(J-xe+Me)*(J-xe+Me))/(2*Ot)]}return V.invert=function(ne,ge){var xe,Me,Fe=ge*ge,Je=w(j(Fe+(xe=ne+Mt)*xe)),rt=w(j(Fe+(xe=ne+Ft)*xe));return[O(Me=Je-rt,xe=(Je+rt)*le),(ge<0?-1:1)*Q(j(xe*xe+Me*Me)*ie)]},V}function Qf(){return dd([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function dd(Ot,Mt){return bu(fs,Ot,Mt)}function Hf(Ot,Mt){if(b(Mt)x&&--ne>0);return[_(Ot)*(j(le*le+4)+le)*M/4,T*V]};var Jl=4*M+3*j(3),Bd=2*j(2*M*j(3)/Jl),Qs=$e(Bd*j(3)/M,Bd,Jl/6);function kc(){return(0,c.c)(Qs).scale(176.84)}function Iu(Ot,Mt){return[Ot*j(1-3*Mt*Mt/(M*M)),Mt]}function Ea(){return(0,c.c)(Iu).scale(152.63)}function El(Ot,Mt){var Ft=w(Mt),J=w(Ot)*Ft,le=1-J,ie=w(Ot=O(S(Ot)*Ft,-S(Mt))),V=S(Ot);return[V*(Ft=j(1-J*J))-ie*le,-ie*Ft-V*le]}function Ol(){return(0,c.c)(El).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function Mi(Ot,Mt){var Ft=K(Ot,Mt);return[(Ft[0]+Ot/T)/2,(Ft[1]+Mt)/2]}function kf(){return(0,c.c)(Mi).scale(158.837)}Iu.invert=function(Ot,Mt){return[Ot/j(1-3*Mt*Mt/(M*M)),Mt]},El.invert=function(Ot,Mt){var Ft=(Ot*Ot+Mt*Mt)/-2,J=j(-Ft*(2+Ft)),le=Mt*Ft+Ot*J,ie=Ot*Ft-Mt*J,V=j(ie*ie+le*le);return[O(J*le,V*(1+Ft)),V?-$(J*ie/V):0]},Mi.invert=function(Ot,Mt){var Ft=Ot,J=Mt,le=25;do{var ie,V=w(J),ne=S(J),ge=S(2*J),xe=ne*ne,Me=V*V,Fe=S(Ft),Je=w(Ft/2),rt=S(Ft/2),dt=rt*rt,mt=1-Me*Je*Je,Et=mt?Q(V*Je)*j(ie=1/mt):ie=0,Vt=.5*(2*Et*V*rt+Ft/T)-Ot,jt=.5*(Et*ne+J)-Mt,Nt=.5*ie*(Me*dt+Et*V*Je*xe)+.5/T,cn=ie*(Fe*ge/4-Et*ne*rt),sn=.125*ie*(ge*rt-Et*ne*Me*Fe),xn=.5*ie*(xe*Je+Et*dt*V)+.5,pn=cn*sn-xn*Nt,Ln=(jt*cn-Vt*xn)/pn,On=(Vt*sn-jt*Nt)/pn;Ft-=Ln,J-=On}while((b(Ln)>x||b(On)>x)&&--le>0);return[Ft,J]}},88728:function(d,l,n){function c(){return new b}function b(){this.reset()}n.d(l,{c:function(){return c}}),b.prototype={constructor:b,reset:function(){this.s=this.t=0},add:function(w){O(i,w,this.t),O(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new b;function O(w,y,p){var a=w.s=y+p,u=a-y,h=a-u;w.t=y-h+(p-u)}},95384:function(d,l,n){n.d(l,{cp:function(){return R},mQ:function(){return h},oB:function(){return v}});var c,b,i,O,w,y=n(88728),p=n(64528),a=n(70932),u=n(16016),h=(0,y.c)(),m=(0,y.c)(),v={point:a.c,lineStart:a.c,lineEnd:a.c,polygonStart:function(){h.reset(),v.lineStart=_,v.lineEnd=S},polygonEnd:function(){var M=+h;m.add(M<0?p.kD+M:M),this.lineStart=this.lineEnd=this.point=a.c},sphere:function(){m.add(p.kD)}};function _(){v.point=A}function S(){x(c,b)}function A(M,T){v.point=x,c=M,b=T,M*=p.qw,T*=p.qw,i=M,O=(0,p.W8)(T=T/2+p.wL),w=(0,p.g$)(T)}function x(M,T){M*=p.qw,T=(T*=p.qw)/2+p.wL;var E=M-i,C=E>=0?1:-1,L=C*E,D=(0,p.W8)(T),k=(0,p.g$)(T),I=w*k,z=O*D+I*(0,p.W8)(L),$=I*C*(0,p.g$)(L);h.add((0,p.WE)($,z)),i=M,O=D,w=k}function R(M){return m.reset(),(0,u.c)(M,v),2*m}},13696:function(d,l,n){n.d(l,{c:function(){return Q}});var c,b,i,O,w,y,p,a,u,h,m=n(88728),v=n(95384),_=n(84220),S=n(64528),A=n(16016),x=(0,m.c)(),R={point:M,lineStart:E,lineEnd:C,polygonStart:function(){R.point=L,R.lineStart=D,R.lineEnd=k,x.reset(),v.oB.polygonStart()},polygonEnd:function(){v.oB.polygonEnd(),R.point=M,R.lineStart=E,R.lineEnd=C,v.mQ<0?(c=-(i=180),b=-(O=90)):x>S.Gg?O=90:x<-S.Gg&&(b=-90),h[0]=c,h[1]=i},sphere:function(){c=-(i=180),b=-(O=90)}};function M(j,U){u.push(h=[c=j,i=j]),UO&&(O=U)}function T(j,U){var X=(0,_.ux)([j*S.qw,U*S.qw]);if(a){var te=(0,_.CW)(a,X),W=[te[1],-te[0],0],K=(0,_.CW)(W,te);(0,_.cJ)(K),K=(0,_.G)(K);var oe,q=j-w,Y=q>0?1:-1,ee=K[0]*S.oh*Y,me=(0,S.a2)(q)>180;me^(Y*wO&&(O=oe):me^(Y*w<(ee=(ee+360)%360-180)&&eeO&&(O=U)),me?jI(c,i)&&(i=j):I(j,i)>I(c,i)&&(c=j):i>=c?(ji&&(i=j)):j>w?I(c,j)>I(c,i)&&(i=j):I(j,i)>I(c,i)&&(c=j)}else u.push(h=[c=j,i=j]);UO&&(O=U),a=X,w=j}function E(){R.point=T}function C(){h[0]=c,h[1]=i,R.point=M,a=null}function L(j,U){if(a){var X=j-w;x.add((0,S.a2)(X)>180?X+(X>0?360:-360):X)}else y=j,p=U;v.oB.point(j,U),T(j,U)}function D(){v.oB.lineStart()}function k(){L(y,p),v.oB.lineEnd(),(0,S.a2)(x)>S.Gg&&(c=-(i=180)),h[0]=c,h[1]=i,a=null}function I(j,U){return(U-=j)<0?U+360:U}function z(j,U){return j[0]-U[0]}function $(j,U){return j[0]<=j[1]?j[0]<=U&&U<=j[1]:UI(te[0],te[1])&&(te[1]=W[1]),I(W[0],te[1])>I(te[0],te[1])&&(te[0]=W[0])):K.push(te=W);for(oe=-1/0,U=0,te=K[X=K.length-1];U<=X;te=W,++U)W=K[U],(q=I(te[1],W[0]))>oe&&(oe=q,c=W[0],i=te[1])}return u=h=null,c===1/0||b===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,b],[i,O]]}},84220:function(d,l,n){n.d(l,{CW:function(){return w},Ez:function(){return O},G:function(){return b},cJ:function(){return a},mg:function(){return y},ux:function(){return i},wx:function(){return p}});var c=n(64528);function b(u){return[(0,c.WE)(u[1],u[0]),(0,c.qR)(u[2])]}function i(u){var h=u[0],m=u[1],v=(0,c.W8)(m);return[v*(0,c.W8)(h),v*(0,c.g$)(h),(0,c.g$)(m)]}function O(u,h){return u[0]*h[0]+u[1]*h[1]+u[2]*h[2]}function w(u,h){return[u[1]*h[2]-u[2]*h[1],u[2]*h[0]-u[0]*h[2],u[0]*h[1]-u[1]*h[0]]}function y(u,h){u[0]+=h[0],u[1]+=h[1],u[2]+=h[2]}function p(u,h){return[u[0]*h,u[1]*h,u[2]*h]}function a(u){var h=(0,c._I)(u[0]*u[0]+u[1]*u[1]+u[2]*u[2]);u[0]/=h,u[1]/=h,u[2]/=h}},24052:function(d,l,n){n.d(l,{c:function(){return X}});var c,b,i,O,w,y,p,a,u,h,m,v,_,S,A,x,R=n(64528),M=n(70932),T=n(16016),E={sphere:M.c,point:C,lineStart:D,lineEnd:z,polygonStart:function(){E.lineStart=$,E.lineEnd=Q},polygonEnd:function(){E.lineStart=D,E.lineEnd=z}};function C(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W);L(K*(0,R.W8)(te),K*(0,R.g$)(te),(0,R.g$)(W))}function L(te,W,K){++c,i+=(te-i)/c,O+=(W-O)/c,w+=(K-w)/c}function D(){E.point=k}function k(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W);S=K*(0,R.W8)(te),A=K*(0,R.g$)(te),x=(0,R.g$)(W),E.point=I,L(S,A,x)}function I(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W),oe=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(W),ee=(0,R.WE)((0,R._I)((ee=A*Y-x*q)*ee+(ee=x*oe-S*Y)*ee+(ee=S*q-A*oe)*ee),S*oe+A*q+x*Y);b+=ee,y+=ee*(S+(S=oe)),p+=ee*(A+(A=q)),a+=ee*(x+(x=Y)),L(S,A,x)}function z(){E.point=C}function $(){E.point=j}function Q(){U(v,_),E.point=C}function j(te,W){v=te,_=W,te*=R.qw,W*=R.qw,E.point=U;var K=(0,R.W8)(W);S=K*(0,R.W8)(te),A=K*(0,R.g$)(te),x=(0,R.g$)(W),L(S,A,x)}function U(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W),oe=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(W),ee=A*Y-x*q,me=x*oe-S*Y,he=S*q-A*oe,se=(0,R._I)(ee*ee+me*me+he*he),ae=(0,R.qR)(se),ce=se&&-ae/se;u+=ce*ee,h+=ce*me,m+=ce*he,b+=ae,y+=ae*(S+(S=oe)),p+=ae*(A+(A=q)),a+=ae*(x+(x=Y)),L(S,A,x)}function X(te){c=b=i=O=w=y=p=a=u=h=m=0,(0,T.c)(te,E);var W=u,K=h,oe=m,q=W*W+K*K+oe*oe;return q0?v<_:v>_)&&(v+=m*i.kD));for(var R,M=v;m>0?M>_:M<_;M-=x)R=(0,c.G)([S,-A*(0,i.W8)(M),-A*(0,i.g$)(M)]),a.point(R[0],R[1])}}function y(a,u){(u=(0,c.ux)(u))[0]-=a,(0,c.cJ)(u);var h=(0,i.mE)(-u[1]);return((-u[2]<0?-h:h)+i.kD-i.Gg)%i.kD}function p(){var a,u,h=b([0,0]),m=b(90),v=b(6),_={point:function(A,x){a.push(A=u(A,x)),A[0]*=i.oh,A[1]*=i.oh}};function S(){var A=h.apply(this,arguments),x=m.apply(this,arguments)*i.qw,R=v.apply(this,arguments)*i.qw;return a=[],u=(0,O.O)(-A[0]*i.qw,-A[1]*i.qw,0).invert,w(_,x,R,1),A={type:"Polygon",coordinates:[a]},a=u=null,A}return S.center=function(A){return arguments.length?(h=typeof A=="function"?A:b([+A[0],+A[1]]),S):h},S.radius=function(A){return arguments.length?(m=typeof A=="function"?A:b(+A),S):m},S.precision=function(A){return arguments.length?(v=typeof A=="function"?A:b(+A),S):v},S}},78284:function(d,l,n){var c=n(14229),b=n(64528);l.c=(0,c.c)(function(){return!0},function(i){var O,w=NaN,y=NaN,p=NaN;return{lineStart:function(){i.lineStart(),O=1},point:function(a,u){var h=a>0?b.pi:-b.pi,m=(0,b.a2)(a-w);(0,b.a2)(m-b.pi)0?b.or:-b.or),i.point(p,y),i.lineEnd(),i.lineStart(),i.point(h,y),i.point(a,y),O=0):p!==h&&m>=b.pi&&((0,b.a2)(w-p)b.Gg?(0,b.MQ)(((0,b.g$)(_)*(R=(0,b.W8)(A))*(0,b.g$)(S)-(0,b.g$)(A)*(x=(0,b.W8)(_))*(0,b.g$)(v))/(x*R*M)):(_+A)/2}(w,y,a,u),i.point(p,y),i.lineEnd(),i.lineStart(),i.point(h,y),O=0),i.point(w=a,y=u),p=h},lineEnd:function(){i.lineEnd(),w=y=NaN},clean:function(){return 2-O}}},function(i,O,w,y){var p;if(i==null)p=w*b.or,y.point(-b.pi,p),y.point(0,p),y.point(b.pi,p),y.point(b.pi,0),y.point(b.pi,-p),y.point(0,-p),y.point(-b.pi,-p),y.point(-b.pi,0),y.point(-b.pi,p);else if((0,b.a2)(i[0]-O[0])>b.Gg){var a=i[0]1&&O.push(O.pop().concat(O.shift()))},result:function(){var w=O;return O=[],i=null,w}}}},2728:function(d,l,n){n.d(l,{c:function(){return y}});var c=n(84220),b=n(61780),i=n(64528),O=n(41860),w=n(14229);function y(p){var a=(0,i.W8)(p),u=6*i.qw,h=a>0,m=(0,i.a2)(a)>i.Gg;function v(A,x){return(0,i.W8)(A)*(0,i.W8)(x)>a}function _(A,x,R){var M=(0,c.ux)(A),T=(0,c.ux)(x),E=[1,0,0],C=(0,c.CW)(M,T),L=(0,c.Ez)(C,C),D=C[0],k=L-D*D;if(!k)return!R&&A;var I=a*L/k,z=-a*D/k,$=(0,c.CW)(E,C),Q=(0,c.wx)(E,I),j=(0,c.wx)(C,z);(0,c.mg)(Q,j);var U=$,X=(0,c.Ez)(Q,U),te=(0,c.Ez)(U,U),W=X*X-te*((0,c.Ez)(Q,Q)-1);if(!(W<0)){var K=(0,i._I)(W),oe=(0,c.wx)(U,(-X-K)/te);if((0,c.mg)(oe,Q),oe=(0,c.G)(oe),!R)return oe;var q,Y=A[0],ee=x[0],me=A[1],he=x[1];ee0^oe[1]<((0,i.a2)(oe[0]-Y)i.pi^(Y<=oe[0]&&oe[0]<=ee)){var ce=(0,c.wx)(U,(-X+K)/te);return(0,c.mg)(ce,Q),[oe,(0,c.G)(ce)]}}}function S(A,x){var R=h?p:i.pi-p,M=0;return A<-R?M|=1:A>R&&(M|=2),x<-R?M|=4:x>R&&(M|=8),M}return(0,w.c)(v,function(A){var x,R,M,T,E;return{lineStart:function(){T=M=!1,E=1},point:function(C,L){var D,k=[C,L],I=v(C,L),z=h?I?0:S(C,L):I?S(C+(C<0?i.pi:-i.pi),L):0;if(!x&&(T=M=I)&&A.lineStart(),I!==M&&(!(D=_(x,k))||(0,O.c)(x,D)||(0,O.c)(k,D))&&(k[2]=1),I!==M)E=0,I?(A.lineStart(),D=_(k,x),A.point(D[0],D[1])):(D=_(x,k),A.point(D[0],D[1],2),A.lineEnd()),x=D;else if(m&&x&&h^I){var $;z&R||!($=_(k,x,!0))||(E=0,h?(A.lineStart(),A.point($[0][0],$[0][1]),A.point($[1][0],$[1][1]),A.lineEnd()):(A.point($[1][0],$[1][1]),A.lineEnd(),A.lineStart(),A.point($[0][0],$[0][1],3)))}!I||x&&(0,O.c)(x,k)||A.point(k[0],k[1]),x=k,M=I,R=z},lineEnd:function(){M&&A.lineEnd(),x=null},clean:function(){return E|(T&&M)<<1}}},function(A,x,R,M){(0,b.Q)(M,p,u,R,A,x)},h?[0,-p]:[-i.pi,p-i.pi])}},14229:function(d,l,n){n.d(l,{c:function(){return y}});var c=n(97208),b=n(32232),i=n(64528),O=n(58196),w=n(84706);function y(u,h,m,v){return function(_){var S,A,x,R=h(_),M=(0,c.c)(),T=h(M),E=!1,C={point:L,lineStart:k,lineEnd:I,polygonStart:function(){C.point=z,C.lineStart=$,C.lineEnd=Q,A=[],S=[]},polygonEnd:function(){C.point=L,C.lineStart=k,C.lineEnd=I,A=(0,w.Uf)(A);var j=(0,O.c)(S,v);A.length?(E||(_.polygonStart(),E=!0),(0,b.c)(A,a,j,m,_)):j&&(E||(_.polygonStart(),E=!0),_.lineStart(),m(null,null,1,_),_.lineEnd()),E&&(_.polygonEnd(),E=!1),A=S=null},sphere:function(){_.polygonStart(),_.lineStart(),m(null,null,1,_),_.lineEnd(),_.polygonEnd()}};function L(j,U){u(j,U)&&_.point(j,U)}function D(j,U){R.point(j,U)}function k(){C.point=D,R.lineStart()}function I(){C.point=L,R.lineEnd()}function z(j,U){x.push([j,U]),T.point(j,U)}function $(){T.lineStart(),x=[]}function Q(){z(x[0][0],x[0][1]),T.lineEnd();var j,U,X,te,W=T.clean(),K=M.result(),oe=K.length;if(x.pop(),S.push(x),x=null,oe)if(1&W){if((U=(X=K[0]).length-1)>0){for(E||(_.polygonStart(),E=!0),_.lineStart(),j=0;j1&&2&W&&K.push(K.pop().concat(K.shift())),A.push(K.filter(p))}return C}}function p(u){return u.length>1}function a(u,h){return((u=u.x)[0]<0?u[1]-i.or-i.Gg:i.or-u[1])-((h=h.x)[0]<0?h[1]-i.or-i.Gg:i.or-h[1])}},21676:function(d,l,n){n.d(l,{c:function(){return p}});var c=n(64528),b=n(97208),i=n(32232),O=n(84706),w=1e9,y=-w;function p(a,u,h,m){function v(R,M){return a<=R&&R<=h&&u<=M&&M<=m}function _(R,M,T,E){var C=0,L=0;if(R==null||(C=S(R,T))!==(L=S(M,T))||x(R,M)<0^T>0)do E.point(C===0||C===3?a:h,C>1?m:u);while((C=(C+T+4)%4)!==L);else E.point(M[0],M[1])}function S(R,M){return(0,c.a2)(R[0]-a)0?0:3:(0,c.a2)(R[0]-h)0?2:1:(0,c.a2)(R[1]-u)0?1:0:M>0?3:2}function A(R,M){return x(R.x,M.x)}function x(R,M){var T=S(R,1),E=S(M,1);return T!==E?T-E:T===0?M[1]-R[1]:T===1?R[0]-M[0]:T===2?R[1]-M[1]:M[0]-R[0]}return function(R){var M,T,E,C,L,D,k,I,z,$,Q,j=R,U=(0,b.c)(),X={point:te,lineStart:function(){X.point=W,T&&T.push(E=[]),$=!0,z=!1,k=I=NaN},lineEnd:function(){M&&(W(C,L),D&&z&&U.rejoin(),M.push(U.result())),X.point=te,z&&j.lineEnd()},polygonStart:function(){j=U,M=[],T=[],Q=!0},polygonEnd:function(){var K=function(){for(var Y=0,ee=0,me=T.length;eem&&(ye-he)*(m-se)>(_e-se)*(a-he)&&++Y:_e<=m&&(ye-he)*(m-se)<(_e-se)*(a-he)&&--Y;return Y}(),oe=Q&&K,q=(M=(0,O.Uf)(M)).length;(oe||q)&&(R.polygonStart(),oe&&(R.lineStart(),_(null,null,1,R),R.lineEnd()),q&&(0,i.c)(M,A,K,_,R),R.polygonEnd()),j=R,M=T=E=null}};function te(K,oe){v(K,oe)&&j.point(K,oe)}function W(K,oe){var q=v(K,oe);if(T&&E.push([K,oe]),$)C=K,L=oe,D=q,$=!1,q&&(j.lineStart(),j.point(K,oe));else if(q&&z)j.point(K,oe);else{var Y=[k=Math.max(y,Math.min(w,k)),I=Math.max(y,Math.min(w,I))],ee=[K=Math.max(y,Math.min(w,K)),oe=Math.max(y,Math.min(w,oe))];(function(me,he,se,ae,ce,de){var ve,ye=me[0],_e=me[1],Se=0,Te=1,Pe=he[0]-ye,Ie=he[1]-_e;if(ve=se-ye,Pe||!(ve>0)){if(ve/=Pe,Pe<0){if(ve0){if(ve>Te)return;ve>Se&&(Se=ve)}if(ve=ce-ye,Pe||!(ve<0)){if(ve/=Pe,Pe<0){if(ve>Te)return;ve>Se&&(Se=ve)}else if(Pe>0){if(ve0)){if(ve/=Ie,Ie<0){if(ve0){if(ve>Te)return;ve>Se&&(Se=ve)}if(ve=de-_e,Ie||!(ve<0)){if(ve/=Ie,Ie<0){if(ve>Te)return;ve>Se&&(Se=ve)}else if(Ie>0){if(ve0&&(me[0]=ye+Se*Pe,me[1]=_e+Se*Ie),Te<1&&(he[0]=ye+Te*Pe,he[1]=_e+Te*Ie),!0}}}}})(Y,ee,a,u,h,m)?(z||(j.lineStart(),j.point(Y[0],Y[1])),j.point(ee[0],ee[1]),q||j.lineEnd(),Q=!1):q&&(j.lineStart(),j.point(K,oe),Q=!1)}k=K,I=oe,z=q}return X}}},32232:function(d,l,n){n.d(l,{c:function(){return O}});var c=n(41860),b=n(64528);function i(y,p,a,u){this.x=y,this.z=p,this.o=a,this.e=u,this.v=!1,this.n=this.p=null}function O(y,p,a,u,h){var m,v,_=[],S=[];if(y.forEach(function(E){if(!((C=E.length-1)<=0)){var C,L,D=E[0],k=E[C];if((0,c.c)(D,k)){if(!D[2]&&!k[2]){for(h.lineStart(),m=0;m=0;--m)h.point((x=A[m])[0],x[1]);else u(M.x,M.p.x,-1,h);M=M.p}A=(M=M.o).z,T=!T}while(!M.v);h.lineEnd()}}}function w(y){if(p=y.length){for(var p,a,u=0,h=y[0];++u0&&(Cr=I(Pn[io],Pn[io-1]))>0&&br<=Cr&&dr<=Cr&&(br+dr-Cr)*(1-Math.pow((br-dr)/Cr,2))S.Gg}).map(bo)).concat((0,oe.ik)((0,S.Km)(io/Zn)*Zn,Cr,Zn).filter(function(Hn){return(0,S.a2)(Hn%gr)>S.Gg}).map(Bn))}return nr.lines=function(){return Qn().map(function(Hn){return{type:"LineString",coordinates:Hn}})},nr.outline=function(){return{type:"Polygon",coordinates:[hr(dr).concat(hn(Qr).slice(1),hr(br).reverse().slice(1),hn(Wr).reverse().slice(1))]}},nr.extent=function(Hn){return arguments.length?nr.extentMajor(Hn).extentMinor(Hn):nr.extentMinor()},nr.extentMajor=function(Hn){return arguments.length?(dr=+Hn[0][0],br=+Hn[1][0],Wr=+Hn[0][1],Qr=+Hn[1][1],dr>br&&(Hn=dr,dr=br,br=Hn),Wr>Qr&&(Hn=Wr,Wr=Qr,Qr=Hn),nr.precision(vr)):[[dr,Wr],[br,Qr]]},nr.extentMinor=function(Hn){return arguments.length?(Yn=+Hn[0][0],Pn=+Hn[1][0],io=+Hn[0][1],Cr=+Hn[1][1],Yn>Pn&&(Hn=Yn,Yn=Pn,Pn=Hn),io>Cr&&(Hn=io,io=Cr,Cr=Hn),nr.precision(vr)):[[Yn,io],[Pn,Cr]]},nr.step=function(Hn){return arguments.length?nr.stepMajor(Hn).stepMinor(Hn):nr.stepMinor()},nr.stepMajor=function(Hn){return arguments.length?(yr=+Hn[0],gr=+Hn[1],nr):[yr,gr]},nr.stepMinor=function(Hn){return arguments.length?(zn=+Hn[0],Zn=+Hn[1],nr):[zn,Zn]},nr.precision=function(Hn){return arguments.length?(vr=+Hn,bo=q(io,Cr,90),Bn=Y(Yn,Pn,vr),hr=q(Wr,Qr,90),hn=Y(dr,br,vr),nr):vr},nr.extentMajor([[-180,-90+S.Gg],[180,90-S.Gg]]).extentMinor([[-180,-80-S.Gg],[180,80+S.Gg]])}function me(){return ee()()}var he,se,ae,ce,de=n(27284),ve=n(7376),ye=(0,_.c)(),_e=(0,_.c)(),Se={point:A.c,lineStart:A.c,lineEnd:A.c,polygonStart:function(){Se.lineStart=Te,Se.lineEnd=ze},polygonEnd:function(){Se.lineStart=Se.lineEnd=Se.point=A.c,ye.add((0,S.a2)(_e)),_e.reset()},result:function(){var Pn=ye/2;return ye.reset(),Pn}};function Te(){Se.point=Pe}function Pe(Pn,Yn){Se.point=Ie,he=ae=Pn,se=ce=Yn}function Ie(Pn,Yn){_e.add(ce*Pn-ae*Yn),ae=Pn,ce=Yn}function ze(){Ie(he,se)}var De,He,Ve,$e,Oe=Se,ke=n(73784),Le=0,We=0,Ue=0,Ze=0,Xe=0,tt=0,Ee=0,Ne=0,je=0,nt={point:ot,lineStart:Ge,lineEnd:wt,polygonStart:function(){nt.lineStart=Dt,nt.lineEnd=It},polygonEnd:function(){nt.point=ot,nt.lineStart=Ge,nt.lineEnd=wt},result:function(){var Pn=je?[Ee/je,Ne/je]:tt?[Ze/tt,Xe/tt]:Ue?[Le/Ue,We/Ue]:[NaN,NaN];return Le=We=Ue=Ze=Xe=tt=Ee=Ne=je=0,Pn}};function ot(Pn,Yn){Le+=Pn,We+=Yn,++Ue}function Ge(){nt.point=ht}function ht(Pn,Yn){nt.point=pt,ot(Ve=Pn,$e=Yn)}function pt(Pn,Yn){var br=Pn-Ve,dr=Yn-$e,Cr=(0,S._I)(br*br+dr*dr);Ze+=Cr*(Ve+Pn)/2,Xe+=Cr*($e+Yn)/2,tt+=Cr,ot(Ve=Pn,$e=Yn)}function wt(){nt.point=ot}function Dt(){nt.point=qt}function It(){en(De,He)}function qt(Pn,Yn){nt.point=en,ot(De=Ve=Pn,He=$e=Yn)}function en(Pn,Yn){var br=Pn-Ve,dr=Yn-$e,Cr=(0,S._I)(br*br+dr*dr);Ze+=Cr*(Ve+Pn)/2,Xe+=Cr*($e+Yn)/2,tt+=Cr,Ee+=(Cr=$e*Pn-Ve*Yn)*(Ve+Pn),Ne+=Cr*($e+Yn),je+=3*Cr,ot(Ve=Pn,$e=Yn)}var Gt=nt;function Ct(Pn){this._context=Pn}Ct.prototype={_radius:4.5,pointRadius:function(Pn){return this._radius=Pn,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Pn,Yn){switch(this._point){case 0:this._context.moveTo(Pn,Yn),this._point=1;break;case 1:this._context.lineTo(Pn,Yn);break;default:this._context.moveTo(Pn+this._radius,Yn),this._context.arc(Pn,Yn,this._radius,0,S.kD)}},result:A.c};var _t,nn,gn,bn,mn,vt=(0,_.c)(),bt={point:A.c,lineStart:function(){bt.point=lt},lineEnd:function(){_t&&yt(nn,gn),bt.point=A.c},polygonStart:function(){_t=!0},polygonEnd:function(){_t=null},result:function(){var Pn=+vt;return vt.reset(),Pn}};function lt(Pn,Yn){bt.point=yt,nn=bn=Pn,gn=mn=Yn}function yt(Pn,Yn){bn-=Pn,mn-=Yn,vt.add((0,S._I)(bn*bn+mn*mn)),bn=Pn,mn=Yn}var zt=bt;function Rt(){this._string=[]}function it(Pn){return"m0,"+Pn+"a"+Pn+","+Pn+" 0 1,1 0,"+-2*Pn+"a"+Pn+","+Pn+" 0 1,1 0,"+2*Pn+"z"}function at(Pn,Yn){var br,dr,Cr=4.5;function io(Qr){return Qr&&(typeof Cr=="function"&&dr.pointRadius(+Cr.apply(this,arguments)),(0,x.c)(Qr,br(dr))),dr.result()}return io.area=function(Qr){return(0,x.c)(Qr,br(Oe)),Oe.result()},io.measure=function(Qr){return(0,x.c)(Qr,br(zt)),zt.result()},io.bounds=function(Qr){return(0,x.c)(Qr,br(ke.c)),ke.c.result()},io.centroid=function(Qr){return(0,x.c)(Qr,br(Gt)),Gt.result()},io.projection=function(Qr){return arguments.length?(br=Qr==null?(Pn=null,ve.c):(Pn=Qr).stream,io):Pn},io.context=function(Qr){return arguments.length?(dr=Qr==null?(Yn=null,new Rt):new Ct(Yn=Qr),typeof Cr!="function"&&dr.pointRadius(Cr),io):Yn},io.pointRadius=function(Qr){return arguments.length?(Cr=typeof Qr=="function"?Qr:(dr.pointRadius(+Qr),+Qr),io):Cr},io.projection(Pn).context(Yn)}Rt.prototype={_radius:4.5,_circle:it(4.5),pointRadius:function(Pn){return(Pn=+Pn)!==this._radius&&(this._radius=Pn,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Pn,Yn){switch(this._point){case 0:this._string.push("M",Pn,",",Yn),this._point=1;break;case 1:this._string.push("L",Pn,",",Yn);break;default:this._circle==null&&(this._circle=it(this._radius)),this._string.push("M",Pn,",",Yn,this._circle)}},result:function(){if(this._string.length){var Pn=this._string.join("");return this._string=[],Pn}return null}};var Lt=n(87952);function xt(Pn){var Yn=0,br=S.pi/3,dr=(0,Lt.U)(Pn),Cr=dr(Yn,br);return Cr.parallels=function(io){return arguments.length?dr(Yn=io[0]*S.qw,br=io[1]*S.qw):[Yn*S.oh,br*S.oh]},Cr}function Zt(Pn,Yn){var br=(0,S.g$)(Pn),dr=(br+(0,S.g$)(Yn))/2;if((0,S.a2)(dr)=.12&&vr<.234&&gr>=-.425&&gr<-.214?Wr:vr>=.166&&vr<.234&&gr>=-.214&&gr<-.115?bo:Qr).invert(zn)},hr.stream=function(zn){return Pn&&Yn===zn?Pn:(Zn=[Qr.stream(Yn=zn),Wr.stream(zn),bo.stream(zn)],yr=Zn.length,Pn={point:function(gr,vr){for(var nr=-1;++nr0?Wr<-S.or+S.Gg&&(Wr=-S.or+S.Gg):Wr>S.or-S.Gg&&(Wr=S.or-S.Gg);var bo=Cr/(0,S.g3)(er(Wr),dr);return[bo*(0,S.g$)(dr*Qr),Cr-bo*(0,S.W8)(dr*Qr)]}return io.invert=function(Qr,Wr){var bo=Cr-Wr,Bn=(0,S.kq)(dr)*(0,S._I)(Qr*Qr+bo*bo),hr=(0,S.WE)(Qr,(0,S.a2)(bo))*(0,S.kq)(bo);return bo*dr<0&&(hr-=S.pi*(0,S.kq)(Qr)*(0,S.kq)(bo)),[hr/dr,2*(0,S.MQ)((0,S.g3)(Cr/Bn,1/dr))-S.or]},io}function In(){return xt(En).scale(109.5).parallels([30,30])}dn.invert=function(Pn,Yn){return[Pn,2*(0,S.MQ)((0,S.oN)(Yn))-S.or]};var jn=n(69604);function xr(Pn,Yn){var br=(0,S.W8)(Pn),dr=Pn===Yn?(0,S.g$)(Pn):(br-(0,S.W8)(Yn))/(Yn-Pn),Cr=br/dr+Pn;if((0,S.a2)(dr)2?dr[2]+90:90]):[(dr=br())[0],dr[1],dr[2]-90]},br([0,0,90]).scale(159.155)}so.invert=(0,Co.g)(function(Pn){return 2*(0,S.MQ)(Pn)}),go.invert=function(Pn,Yn){return[-Yn,2*(0,S.MQ)((0,S.oN)(Pn))-S.or]}},27284:function(d,l,n){n.d(l,{c:function(){return b}});var c=n(64528);function b(i,O){var w=i[0]*c.qw,y=i[1]*c.qw,p=O[0]*c.qw,a=O[1]*c.qw,u=(0,c.W8)(y),h=(0,c.g$)(y),m=(0,c.W8)(a),v=(0,c.g$)(a),_=u*(0,c.W8)(w),S=u*(0,c.g$)(w),A=m*(0,c.W8)(p),x=m*(0,c.g$)(p),R=2*(0,c.qR)((0,c._I)((0,c.SD)(a-y)+u*m*(0,c.SD)(p-w))),M=(0,c.g$)(R),T=R?function(E){var C=(0,c.g$)(E*=R)/M,L=(0,c.g$)(R-E)/M,D=L*_+C*A,k=L*S+C*x,I=L*h+C*v;return[(0,c.WE)(k,D)*c.oh,(0,c.WE)(I,(0,c._I)(D*D+k*k))*c.oh]}:function(){return[w*c.oh,y*c.oh]};return T.distance=R,T}},64528:function(d,l,n){n.d(l,{Gg:function(){return c},Km:function(){return _},MQ:function(){return h},SD:function(){return D},W8:function(){return v},WE:function(){return m},Yz:function(){return A},_I:function(){return T},a2:function(){return u},a6:function(){return E},a8:function(){return b},g$:function(){return R},g3:function(){return x},kD:function(){return y},kq:function(){return M},mE:function(){return C},oN:function(){return S},oh:function(){return p},or:function(){return O},pi:function(){return i},qR:function(){return L},qw:function(){return a},wL:function(){return w}});var c=1e-6,b=1e-12,i=Math.PI,O=i/2,w=i/4,y=2*i,p=180/i,a=i/180,u=Math.abs,h=Math.atan,m=Math.atan2,v=Math.cos,_=Math.ceil,S=Math.exp,A=Math.log,x=Math.pow,R=Math.sin,M=Math.sign||function(k){return k>0?1:k<0?-1:0},T=Math.sqrt,E=Math.tan;function C(k){return k>1?0:k<-1?i:Math.acos(k)}function L(k){return k>1?O:k<-1?-O:Math.asin(k)}function D(k){return(k=R(k/2))*k}},70932:function(d,l,n){function c(){}n.d(l,{c:function(){return c}})},73784:function(d,l,n){var c=n(70932),b=1/0,i=b,O=-b,w=O,y={point:function(p,a){pO&&(O=p),aw&&(w=a)},lineStart:c.c,lineEnd:c.c,polygonStart:c.c,polygonEnd:c.c,result:function(){var p=[[b,i],[O,w]];return O=w=-(i=b=1/0),p}};l.c=y},41860:function(d,l,n){n.d(l,{c:function(){return b}});var c=n(64528);function b(i,O){return(0,c.a2)(i[0]-O[0])=0?1:-1,te=X*U,W=te>i.pi,K=L*Q;if(O.add((0,i.WE)(K*X*(0,i.g$)(te),D*j+K*(0,i.W8)(te))),_+=W?U+X*i.kD:U,W^E>=u^z>=u){var oe=(0,b.CW)((0,b.ux)(T),(0,b.ux)(I));(0,b.cJ)(oe);var q=(0,b.CW)(v,oe);(0,b.cJ)(q);var Y=(W^U>=0?-1:1)*(0,i.qR)(q[2]);(h>Y||h===Y&&(oe[0]||oe[1]))&&(S+=W^U>=0?1:-1)}}return(_<-i.Gg||_4*L&&q--){var se=$+W,ae=Q+K,ce=j+oe,de=(0,y._I)(se*se+ae*ae+ce*ce),ve=(0,y.qR)(ce/=de),ye=(0,y.a2)((0,y.a2)(ce)-1)L||(0,y.a2)((ee*Pe+me*Ie)/he-.5)>.3||$*W+Q*K+j*oe2?Pe[2]%360*y.qw:0,Se()):[oe*y.oh,q*y.oh,Y*y.oh]},ye.angle=function(Pe){return arguments.length?(ee=Pe%360*y.qw,Se()):ee*y.oh},ye.reflectX=function(Pe){return arguments.length?(me=Pe?-1:1,Se()):me<0},ye.reflectY=function(Pe){return arguments.length?(he=Pe?-1:1,Se()):he<0},ye.precision=function(Pe){return arguments.length?(I=_(z,ve=Pe*Pe),Te()):(0,y._I)(ve)},ye.fitExtent=function(Pe,Ie){return(0,u.QX)(ye,Pe,Ie)},ye.fitSize=function(Pe,Ie){return(0,u.UV)(ye,Pe,Ie)},ye.fitWidth=function(Pe,Ie){return(0,u.Qx)(ye,Pe,Ie)},ye.fitHeight=function(Pe,Ie){return(0,u.OW)(ye,Pe,Ie)},function(){return E=T.apply(this,arguments),ye.invert=E.invert&&_e,Se()}}},47984:function(d,l,n){n.d(l,{c:function(){return O},g:function(){return i}});var c=n(87952),b=n(64528);function i(w,y){var p=y*y,a=p*p;return[w*(.8707-.131979*p+a*(a*(.003971*p-.001529*a)-.013791)),y*(1.007226+p*(.015085+a*(.028874*p-.044475-.005916*a)))]}function O(){return(0,c.c)(i).scale(175.295)}i.invert=function(w,y){var p,a=y,u=25;do{var h=a*a,m=h*h;a-=p=(a*(1.007226+h*(.015085+m*(.028874*h-.044475-.005916*m)))-y)/(1.007226+h*(.045255+m*(.259866*h-.311325-.06507600000000001*m)))}while((0,b.a2)(p)>b.Gg&&--u>0);return[w/(.8707+(h=a*a)*(h*(h*h*h*(.003971-.001529*h)-.013791)-.131979)),a]}},4888:function(d,l,n){n.d(l,{c:function(){return w},t:function(){return O}});var c=n(64528),b=n(62280),i=n(87952);function O(y,p){return[(0,c.W8)(p)*(0,c.g$)(y),(0,c.g$)(p)]}function w(){return(0,i.c)(O).scale(249.5).clipAngle(90+c.Gg)}O.invert=(0,b.g)(c.qR)},92992:function(d,l,n){n.d(l,{O:function(){return O},c:function(){return a}});var c=n(68120),b=n(64528);function i(u,h){return[(0,b.a2)(u)>b.pi?u+Math.round(-u/b.kD)*b.kD:u,h]}function O(u,h,m){return(u%=b.kD)?h||m?(0,c.c)(y(u),p(h,m)):y(u):h||m?p(h,m):i}function w(u){return function(h,m){return[(h+=u)>b.pi?h-b.kD:h<-b.pi?h+b.kD:h,m]}}function y(u){var h=w(u);return h.invert=w(-u),h}function p(u,h){var m=(0,b.W8)(u),v=(0,b.g$)(u),_=(0,b.W8)(h),S=(0,b.g$)(h);function A(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,E=(0,b.g$)(x)*M,C=(0,b.g$)(R),L=C*m+T*v;return[(0,b.WE)(E*_-L*S,T*m-C*v),(0,b.qR)(L*_+E*S)]}return A.invert=function(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,E=(0,b.g$)(x)*M,C=(0,b.g$)(R),L=C*_-E*S;return[(0,b.WE)(E*_+C*S,T*m+L*v),(0,b.qR)(L*m-T*v)]},A}function a(u){function h(m){return(m=u(m[0]*b.qw,m[1]*b.qw))[0]*=b.oh,m[1]*=b.oh,m}return u=O(u[0]*b.qw,u[1]*b.qw,u.length>2?u[2]*b.qw:0),h.invert=function(m){return(m=u.invert(m[0]*b.qw,m[1]*b.qw))[0]*=b.oh,m[1]*=b.oh,m},h}i.invert=i},16016:function(d,l,n){function c(p,a){p&&i.hasOwnProperty(p.type)&&i[p.type](p,a)}n.d(l,{c:function(){return y}});var b={Feature:function(p,a){c(p.geometry,a)},FeatureCollection:function(p,a){for(var u=p.features,h=-1,m=u.length;++h=0;)Le+=We[Ue].value;else Le=1;ke.value=Le}function y(ke,Le){var We,Ue,Ze,Xe,tt,Ee=new h(ke),Ne=+ke.value&&(Ee.value=ke.value),je=[Ee];for(Le==null&&(Le=p);We=je.pop();)if(Ne&&(We.value=+We.data.value),(Ze=Le(We.data))&&(tt=Ze.length))for(We.children=new Array(tt),Xe=tt-1;Xe>=0;--Xe)je.push(Ue=We.children[Xe]=new h(Ze[Xe])),Ue.parent=We,Ue.depth=We.depth+1;return Ee.eachBefore(u)}function p(ke){return ke.children}function a(ke){ke.data=ke.data.data}function u(ke){var Le=0;do ke.height=Le;while((ke=ke.parent)&&ke.height<++Le)}function h(ke){this.data=ke,this.depth=this.height=0,this.parent=null}n.r(l),n.d(l,{cluster:function(){return O},hierarchy:function(){return y},pack:function(){return U},packEnclose:function(){return v},packSiblings:function(){return I},partition:function(){return q},stratify:function(){return ae},tree:function(){return Te},treemap:function(){return He},treemapBinary:function(){return Ve},treemapDice:function(){return oe},treemapResquarify:function(){return Oe},treemapSlice:function(){return Pe},treemapSliceDice:function(){return $e},treemapSquarify:function(){return De}}),h.prototype=y.prototype={constructor:h,count:function(){return this.eachAfter(w)},each:function(ke){var Le,We,Ue,Ze,Xe=this,tt=[Xe];do for(Le=tt.reverse(),tt=[];Xe=Le.pop();)if(ke(Xe),We=Xe.children)for(Ue=0,Ze=We.length;Ue=0;--We)Ze.push(Le[We]);return this},sum:function(ke){return this.eachAfter(function(Le){for(var We=+ke(Le.data)||0,Ue=Le.children,Ze=Ue&&Ue.length;--Ze>=0;)We+=Ue[Ze].value;Le.value=We})},sort:function(ke){return this.eachBefore(function(Le){Le.children&&Le.children.sort(ke)})},path:function(ke){for(var Le=this,We=function(Xe,tt){if(Xe===tt)return Xe;var Ee=Xe.ancestors(),Ne=tt.ancestors(),je=null;for(Xe=Ee.pop(),tt=Ne.pop();Xe===tt;)je=Xe,Xe=Ee.pop(),tt=Ne.pop();return je}(Le,ke),Ue=[Le];Le!==We;)Le=Le.parent,Ue.push(Le);for(var Ze=Ue.length;ke!==We;)Ue.splice(Ze,0,ke),ke=ke.parent;return Ue},ancestors:function(){for(var ke=this,Le=[ke];ke=ke.parent;)Le.push(ke);return Le},descendants:function(){var ke=[];return this.each(function(Le){ke.push(Le)}),ke},leaves:function(){var ke=[];return this.eachBefore(function(Le){Le.children||ke.push(Le)}),ke},links:function(){var ke=this,Le=[];return ke.each(function(We){We!==ke&&Le.push({source:We.parent,target:We})}),Le},copy:function(){return y(this).eachBefore(a)}};var m=Array.prototype.slice;function v(ke){for(var Le,We,Ue=0,Ze=(ke=function(tt){for(var Ee,Ne,je=tt.length;je;)Ne=Math.random()*je--|0,Ee=tt[je],tt[je]=tt[Ne],tt[Ne]=Ee;return tt}(m.call(ke))).length,Xe=[];Ue0&&We*We>Ue*Ue+Ze*Ze}function x(ke,Le){for(var We=0;We(tt*=tt)?(Ue=(je+tt-Ze)/(2*je),Xe=Math.sqrt(Math.max(0,tt/je-Ue*Ue)),We.x=ke.x-Ue*Ee-Xe*Ne,We.y=ke.y-Ue*Ne+Xe*Ee):(Ue=(je+Ze-tt)/(2*je),Xe=Math.sqrt(Math.max(0,Ze/je-Ue*Ue)),We.x=Le.x+Ue*Ee-Xe*Ne,We.y=Le.y+Ue*Ne+Xe*Ee)):(We.x=Le.x+We.r,We.y=Le.y)}function C(ke,Le){var We=ke.r+Le.r-1e-6,Ue=Le.x-ke.x,Ze=Le.y-ke.y;return We>0&&We*We>Ue*Ue+Ze*Ze}function L(ke){var Le=ke._,We=ke.next._,Ue=Le.r+We.r,Ze=(Le.x*We.r+We.x*Le.r)/Ue,Xe=(Le.y*We.r+We.y*Le.r)/Ue;return Ze*Ze+Xe*Xe}function D(ke){this._=ke,this.next=null,this.previous=null}function k(ke){if(!(Ze=ke.length))return 0;var Le,We,Ue,Ze,Xe,tt,Ee,Ne,je,nt,ot;if((Le=ke[0]).x=0,Le.y=0,!(Ze>1))return Le.r;if(We=ke[1],Le.x=-We.r,We.x=Le.r,We.y=0,!(Ze>2))return Le.r+We.r;E(We,Le,Ue=ke[2]),Le=new D(Le),We=new D(We),Ue=new D(Ue),Le.next=Ue.previous=We,We.next=Le.previous=Ue,Ue.next=We.previous=Le;e:for(Ee=3;Ee0)throw new Error("cycle");return tt}return We.id=function(Ue){return arguments.length?(ke=z(Ue),We):ke},We.parentId=function(Ue){return arguments.length?(Le=z(Ue),We):Le},We}function ce(ke,Le){return ke.parent===Le.parent?1:2}function de(ke){var Le=ke.children;return Le?Le[0]:ke.t}function ve(ke){var Le=ke.children;return Le?Le[Le.length-1]:ke.t}function ye(ke,Le,We){var Ue=We/(Le.i-ke.i);Le.c-=Ue,Le.s+=We,ke.c+=Ue,Le.z+=We,Le.m+=We}function _e(ke,Le,We){return ke.a.parent===Le.parent?ke.a:We}function Se(ke,Le){this._=ke,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Le}function Te(){var ke=ce,Le=1,We=1,Ue=null;function Ze(Ne){var je=function(It){for(var qt,en,Gt,Ct,_t,nn=new Se(It,0),gn=[nn];qt=gn.pop();)if(Gt=qt._.children)for(qt.children=new Array(_t=Gt.length),Ct=_t-1;Ct>=0;--Ct)gn.push(en=qt.children[Ct]=new Se(Gt[Ct],Ct)),en.parent=qt;return(nn.parent=new Se(null,0)).children=[nn],nn}(Ne);if(je.eachAfter(Xe),je.parent.m=-je.z,je.eachBefore(tt),Ue)Ne.eachBefore(Ee);else{var nt=Ne,ot=Ne,Ge=Ne;Ne.eachBefore(function(It){It.xot.x&&(ot=It),It.depth>Ge.depth&&(Ge=It)});var ht=nt===ot?1:ke(nt,ot)/2,pt=ht-nt.x,wt=Le/(ot.x+ht+pt),Dt=We/(Ge.depth||1);Ne.eachBefore(function(It){It.x=(It.x+pt)*wt,It.y=It.depth*Dt})}return Ne}function Xe(Ne){var je=Ne.children,nt=Ne.parent.children,ot=Ne.i?nt[Ne.i-1]:null;if(je){(function(ht){for(var pt,wt=0,Dt=0,It=ht.children,qt=It.length;--qt>=0;)(pt=It[qt]).z+=wt,pt.m+=wt,wt+=pt.s+(Dt+=pt.c)})(Ne);var Ge=(je[0].z+je[je.length-1].z)/2;ot?(Ne.z=ot.z+ke(Ne._,ot._),Ne.m=Ne.z-Ge):Ne.z=Ge}else ot&&(Ne.z=ot.z+ke(Ne._,ot._));Ne.parent.A=function(ht,pt,wt){if(pt){for(var Dt,It=ht,qt=ht,en=pt,Gt=It.parent.children[0],Ct=It.m,_t=qt.m,nn=en.m,gn=Gt.m;en=ve(en),It=de(It),en&&It;)Gt=de(Gt),(qt=ve(qt)).a=ht,(Dt=en.z+nn-It.z-Ct+ke(en._,It._))>0&&(ye(_e(en,ht,wt),ht,Dt),Ct+=Dt,_t+=Dt),nn+=en.m,Ct+=It.m,gn+=Gt.m,_t+=qt.m;en&&!ve(qt)&&(qt.t=en,qt.m+=nn-_t),It&&!de(Gt)&&(Gt.t=It,Gt.m+=Ct-gn,wt=ht)}return wt}(Ne,ot,Ne.parent.A||nt[0])}function tt(Ne){Ne._.x=Ne.z+Ne.parent.m,Ne.m+=Ne.parent.m}function Ee(Ne){Ne.x*=Le,Ne.y=Ne.depth*We}return Ze.separation=function(Ne){return arguments.length?(ke=Ne,Ze):ke},Ze.size=function(Ne){return arguments.length?(Ue=!1,Le=+Ne[0],We=+Ne[1],Ze):Ue?null:[Le,We]},Ze.nodeSize=function(Ne){return arguments.length?(Ue=!0,Le=+Ne[0],We=+Ne[1],Ze):Ue?[Le,We]:null},Ze}function Pe(ke,Le,We,Ue,Ze){for(var Xe,tt=ke.children,Ee=-1,Ne=tt.length,je=ke.value&&(Ze-We)/ke.value;++EeGe&&(Ge=Ee),Dt=nt*nt*wt,(ht=Math.max(Ge/Dt,Dt/ot))>pt){nt-=Ee;break}pt=ht}It.push(tt={value:nt,dice:Ne1?Ue:1)},We}(Ie);function He(){var ke=De,Le=!1,We=1,Ue=1,Ze=[0],Xe=$,tt=$,Ee=$,Ne=$,je=$;function nt(Ge){return Ge.x0=Ge.y0=0,Ge.x1=We,Ge.y1=Ue,Ge.eachBefore(ot),Ze=[0],Le&&Ge.eachBefore(K),Ge}function ot(Ge){var ht=Ze[Ge.depth],pt=Ge.x0+ht,wt=Ge.y0+ht,Dt=Ge.x1-ht,It=Ge.y1-ht;Dt=Ge-1){var qt=Ee[ot];return qt.x0=pt,qt.y0=wt,qt.x1=Dt,void(qt.y1=It)}for(var en=je[ot],Gt=ht/2+en,Ct=ot+1,_t=Ge-1;Ct<_t;){var nn=Ct+_t>>>1;je[nn]It-wt){var mn=(pt*bn+Dt*gn)/ht;nt(ot,Ct,gn,pt,wt,mn,It),nt(Ct,Ge,bn,mn,wt,Dt,It)}else{var vt=(wt*bn+It*gn)/ht;nt(ot,Ct,gn,pt,wt,Dt,vt),nt(Ct,Ge,bn,pt,vt,Dt,It)}})(0,Ne,ke.value,Le,We,Ue,Ze)}function $e(ke,Le,We,Ue,Ze){(1&ke.depth?Pe:oe)(ke,Le,We,Ue,Ze)}var Oe=function ke(Le){function We(Ue,Ze,Xe,tt,Ee){if((Ne=Ue._squarify)&&Ne.ratio===Le)for(var Ne,je,nt,ot,Ge,ht=-1,pt=Ne.length,wt=Ue.value;++ht1?Ue:1)},We}(Ie)},10132:function(d,l,n){n.d(l,{ak:function(){return A}});var c=Math.PI,b=2*c,i=1e-6,O=b-i;function w(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function y(){return new w}w.prototype=y.prototype={constructor:w,moveTo:function(x,R){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(x,R){this._+="L"+(this._x1=+x)+","+(this._y1=+R)},quadraticCurveTo:function(x,R,M,T){this._+="Q"+ +x+","+ +R+","+(this._x1=+M)+","+(this._y1=+T)},bezierCurveTo:function(x,R,M,T,E,C){this._+="C"+ +x+","+ +R+","+ +M+","+ +T+","+(this._x1=+E)+","+(this._y1=+C)},arcTo:function(x,R,M,T,E){x=+x,R=+R,M=+M,T=+T,E=+E;var C=this._x1,L=this._y1,D=M-x,k=T-R,I=C-x,z=L-R,$=I*I+z*z;if(E<0)throw new Error("negative radius: "+E);if(this._x1===null)this._+="M"+(this._x1=x)+","+(this._y1=R);else if($>i)if(Math.abs(z*D-k*I)>i&&E){var Q=M-C,j=T-L,U=D*D+k*k,X=Q*Q+j*j,te=Math.sqrt(U),W=Math.sqrt($),K=E*Math.tan((c-Math.acos((U+$-X)/(2*te*W)))/2),oe=K/W,q=K/te;Math.abs(oe-1)>i&&(this._+="L"+(x+oe*I)+","+(R+oe*z)),this._+="A"+E+","+E+",0,0,"+ +(z*Q>I*j)+","+(this._x1=x+q*D)+","+(this._y1=R+q*k)}else this._+="L"+(this._x1=x)+","+(this._y1=R)},arc:function(x,R,M,T,E,C){x=+x,R=+R,C=!!C;var L=(M=+M)*Math.cos(T),D=M*Math.sin(T),k=x+L,I=R+D,z=1^C,$=C?T-E:E-T;if(M<0)throw new Error("negative radius: "+M);this._x1===null?this._+="M"+k+","+I:(Math.abs(this._x1-k)>i||Math.abs(this._y1-I)>i)&&(this._+="L"+k+","+I),M&&($<0&&($=$%b+b),$>O?this._+="A"+M+","+M+",0,1,"+z+","+(x-L)+","+(R-D)+"A"+M+","+M+",0,1,"+z+","+(this._x1=k)+","+(this._y1=I):$>i&&(this._+="A"+M+","+M+",0,"+ +($>=c)+","+z+","+(this._x1=x+M*Math.cos(E))+","+(this._y1=R+M*Math.sin(E))))},rect:function(x,R,M,T){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)+"h"+ +M+"v"+ +T+"h"+-M+"Z"},toString:function(){return this._}};var p=y,a=Array.prototype.slice;function u(x){return function(){return x}}function h(x){return x[0]}function m(x){return x[1]}function v(x){return x.source}function _(x){return x.target}function S(x,R,M,T,E){x.moveTo(R,M),x.bezierCurveTo(R=(R+T)/2,M,R,E,T,E)}function A(){return function(x){var R=v,M=_,T=h,E=m,C=null;function L(){var D,k=a.call(arguments),I=R.apply(this,k),z=M.apply(this,k);if(C||(C=D=p()),x(C,+T.apply(this,(k[0]=I,k)),+E.apply(this,k),+T.apply(this,(k[0]=z,k)),+E.apply(this,k)),D)return C=null,D+""||null}return L.source=function(D){return arguments.length?(R=D,L):R},L.target=function(D){return arguments.length?(M=D,L):M},L.x=function(D){return arguments.length?(T=typeof D=="function"?D:u(+D),L):T},L.y=function(D){return arguments.length?(E=typeof D=="function"?D:u(+D),L):E},L.context=function(D){return arguments.length?(C=D??null,L):C},L}(S)}},94336:function(d,l,n){n.d(l,{Yn:function(){return v},m_:function(){return h},E9:function(){return _}});var c=n(8208),b=n(58931),i=n(46192),O=n(68936),w=n(32171),y=n(53528);function p(Ct){if(0<=Ct.y&&Ct.y<100){var _t=new Date(-1,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L);return _t.setFullYear(Ct.y),_t}return new Date(Ct.y,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L)}function a(Ct){if(0<=Ct.y&&Ct.y<100){var _t=new Date(Date.UTC(-1,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L));return _t.setUTCFullYear(Ct.y),_t}return new Date(Date.UTC(Ct.y,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L))}function u(Ct,_t,nn){return{y:Ct,m:_t,d:nn,H:0,M:0,S:0,L:0}}function h(Ct){var _t=Ct.dateTime,nn=Ct.date,gn=Ct.time,bn=Ct.periods,mn=Ct.days,vt=Ct.shortDays,bt=Ct.months,lt=Ct.shortMonths,yt=E(bn),zt=C(bn),Rt=E(mn),it=C(mn),at=E(vt),Lt=C(vt),xt=E(bt),Zt=C(bt),Xt=E(lt),Yt=C(lt),Qt={a:function(vn){return vt[vn.getDay()]},A:function(vn){return mn[vn.getDay()]},b:function(vn){return lt[vn.getMonth()]},B:function(vn){return bt[vn.getMonth()]},c:null,d:ae,e:ae,f:_e,H:ce,I:de,j:ve,L:ye,m:Se,M:Te,p:function(vn){return bn[+(vn.getHours()>=12)]},q:function(vn){return 1+~~(vn.getMonth()/3)},Q:en,s:Gt,S:Pe,u:Ie,U:ze,V:De,w:He,W:Ve,x:null,X:null,y:$e,Y:Oe,Z:ke,"%":qt},Pt={a:function(vn){return vt[vn.getUTCDay()]},A:function(vn){return mn[vn.getUTCDay()]},b:function(vn){return lt[vn.getUTCMonth()]},B:function(vn){return bt[vn.getUTCMonth()]},c:null,d:Le,e:Le,f:tt,H:We,I:Ue,j:Ze,L:Xe,m:Ee,M:Ne,p:function(vn){return bn[+(vn.getUTCHours()>=12)]},q:function(vn){return 1+~~(vn.getUTCMonth()/3)},Q:en,s:Gt,S:je,u:nt,U:ot,V:Ge,w:ht,W:pt,x:null,X:null,y:wt,Y:Dt,Z:It,"%":qt},tn={a:function(vn,Nn,er){var En=at.exec(Nn.slice(er));return En?(vn.w=Lt[En[0].toLowerCase()],er+En[0].length):-1},A:function(vn,Nn,er){var En=Rt.exec(Nn.slice(er));return En?(vn.w=it[En[0].toLowerCase()],er+En[0].length):-1},b:function(vn,Nn,er){var En=Xt.exec(Nn.slice(er));return En?(vn.m=Yt[En[0].toLowerCase()],er+En[0].length):-1},B:function(vn,Nn,er){var En=xt.exec(Nn.slice(er));return En?(vn.m=Zt[En[0].toLowerCase()],er+En[0].length):-1},c:function(vn,Nn,er){return dn(vn,_t,Nn,er)},d:te,e:te,f:ee,H:K,I:K,j:W,L:Y,m:X,M:oe,p:function(vn,Nn,er){var En=yt.exec(Nn.slice(er));return En?(vn.p=zt[En[0].toLowerCase()],er+En[0].length):-1},q:U,Q:he,s:se,S:q,u:D,U:k,V:I,w:L,W:z,x:function(vn,Nn,er){return dn(vn,nn,Nn,er)},X:function(vn,Nn,er){return dn(vn,gn,Nn,er)},y:Q,Y:$,Z:j,"%":me};function Kt(vn,Nn){return function(er){var En,In,jn,xr=[],Sr=-1,ar=0,Fn=vn.length;for(er instanceof Date||(er=new Date(+er));++Sr53)return null;"w"in jn||(jn.w=1),"Z"in jn?(In=(En=a(u(jn.y,0,1))).getUTCDay(),En=In>4||In===0?c.ot.ceil(En):(0,c.ot)(En),En=b.c.offset(En,7*(jn.V-1)),jn.y=En.getUTCFullYear(),jn.m=En.getUTCMonth(),jn.d=En.getUTCDate()+(jn.w+6)%7):(In=(En=p(u(jn.y,0,1))).getDay(),En=In>4||In===0?i.qT.ceil(En):(0,i.qT)(En),En=O.c.offset(En,7*(jn.V-1)),jn.y=En.getFullYear(),jn.m=En.getMonth(),jn.d=En.getDate()+(jn.w+6)%7)}else("W"in jn||"U"in jn)&&("w"in jn||(jn.w="u"in jn?jn.u%7:"W"in jn?1:0),In="Z"in jn?a(u(jn.y,0,1)).getUTCDay():p(u(jn.y,0,1)).getDay(),jn.m=0,jn.d="W"in jn?(jn.w+6)%7+7*jn.W-(In+5)%7:jn.w+7*jn.U-(In+6)%7);return"Z"in jn?(jn.H+=jn.Z/100|0,jn.M+=jn.Z%100,a(jn)):p(jn)}}function dn(vn,Nn,er,En){for(var In,jn,xr=0,Sr=Nn.length,ar=er.length;xr=ar)return-1;if((In=Nn.charCodeAt(xr++))===37){if(In=Nn.charAt(xr++),!(jn=tn[In in S?Nn.charAt(xr++):In])||(En=jn(vn,er,En))<0)return-1}else if(In!=er.charCodeAt(En++))return-1}return En}return Qt.x=Kt(nn,Qt),Qt.X=Kt(gn,Qt),Qt.c=Kt(_t,Qt),Pt.x=Kt(nn,Pt),Pt.X=Kt(gn,Pt),Pt.c=Kt(_t,Pt),{format:function(vn){var Nn=Kt(vn+="",Qt);return Nn.toString=function(){return vn},Nn},parse:function(vn){var Nn=fn(vn+="",!1);return Nn.toString=function(){return vn},Nn},utcFormat:function(vn){var Nn=Kt(vn+="",Pt);return Nn.toString=function(){return vn},Nn},utcParse:function(vn){var Nn=fn(vn+="",!0);return Nn.toString=function(){return vn},Nn}}}var m,v,_,S={"-":"",_:" ",0:"0"},A=/^\s*\d+/,x=/^%/,R=/[\\^$*+?|[\]().{}]/g;function M(Ct,_t,nn){var gn=Ct<0?"-":"",bn=(gn?-Ct:Ct)+"",mn=bn.length;return gn+(mn68?1900:2e3),nn+gn[0].length):-1}function j(Ct,_t,nn){var gn=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(_t.slice(nn,nn+6));return gn?(Ct.Z=gn[1]?0:-(gn[2]+(gn[3]||"00")),nn+gn[0].length):-1}function U(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+1));return gn?(Ct.q=3*gn[0]-3,nn+gn[0].length):-1}function X(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.m=gn[0]-1,nn+gn[0].length):-1}function te(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.d=+gn[0],nn+gn[0].length):-1}function W(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+3));return gn?(Ct.m=0,Ct.d=+gn[0],nn+gn[0].length):-1}function K(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.H=+gn[0],nn+gn[0].length):-1}function oe(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.M=+gn[0],nn+gn[0].length):-1}function q(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.S=+gn[0],nn+gn[0].length):-1}function Y(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+3));return gn?(Ct.L=+gn[0],nn+gn[0].length):-1}function ee(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+6));return gn?(Ct.L=Math.floor(gn[0]/1e3),nn+gn[0].length):-1}function me(Ct,_t,nn){var gn=x.exec(_t.slice(nn,nn+1));return gn?nn+gn[0].length:-1}function he(Ct,_t,nn){var gn=A.exec(_t.slice(nn));return gn?(Ct.Q=+gn[0],nn+gn[0].length):-1}function se(Ct,_t,nn){var gn=A.exec(_t.slice(nn));return gn?(Ct.s=+gn[0],nn+gn[0].length):-1}function ae(Ct,_t){return M(Ct.getDate(),_t,2)}function ce(Ct,_t){return M(Ct.getHours(),_t,2)}function de(Ct,_t){return M(Ct.getHours()%12||12,_t,2)}function ve(Ct,_t){return M(1+O.c.count((0,w.c)(Ct),Ct),_t,3)}function ye(Ct,_t){return M(Ct.getMilliseconds(),_t,3)}function _e(Ct,_t){return ye(Ct,_t)+"000"}function Se(Ct,_t){return M(Ct.getMonth()+1,_t,2)}function Te(Ct,_t){return M(Ct.getMinutes(),_t,2)}function Pe(Ct,_t){return M(Ct.getSeconds(),_t,2)}function Ie(Ct){var _t=Ct.getDay();return _t===0?7:_t}function ze(Ct,_t){return M(i.uU.count((0,w.c)(Ct)-1,Ct),_t,2)}function De(Ct,_t){var nn=Ct.getDay();return Ct=nn>=4||nn===0?(0,i.kD)(Ct):i.kD.ceil(Ct),M(i.kD.count((0,w.c)(Ct),Ct)+((0,w.c)(Ct).getDay()===4),_t,2)}function He(Ct){return Ct.getDay()}function Ve(Ct,_t){return M(i.qT.count((0,w.c)(Ct)-1,Ct),_t,2)}function $e(Ct,_t){return M(Ct.getFullYear()%100,_t,2)}function Oe(Ct,_t){return M(Ct.getFullYear()%1e4,_t,4)}function ke(Ct){var _t=Ct.getTimezoneOffset();return(_t>0?"-":(_t*=-1,"+"))+M(_t/60|0,"0",2)+M(_t%60,"0",2)}function Le(Ct,_t){return M(Ct.getUTCDate(),_t,2)}function We(Ct,_t){return M(Ct.getUTCHours(),_t,2)}function Ue(Ct,_t){return M(Ct.getUTCHours()%12||12,_t,2)}function Ze(Ct,_t){return M(1+b.c.count((0,y.c)(Ct),Ct),_t,3)}function Xe(Ct,_t){return M(Ct.getUTCMilliseconds(),_t,3)}function tt(Ct,_t){return Xe(Ct,_t)+"000"}function Ee(Ct,_t){return M(Ct.getUTCMonth()+1,_t,2)}function Ne(Ct,_t){return M(Ct.getUTCMinutes(),_t,2)}function je(Ct,_t){return M(Ct.getUTCSeconds(),_t,2)}function nt(Ct){var _t=Ct.getUTCDay();return _t===0?7:_t}function ot(Ct,_t){return M(c.EV.count((0,y.c)(Ct)-1,Ct),_t,2)}function Ge(Ct,_t){var nn=Ct.getUTCDay();return Ct=nn>=4||nn===0?(0,c.yA)(Ct):c.yA.ceil(Ct),M(c.yA.count((0,y.c)(Ct),Ct)+((0,y.c)(Ct).getUTCDay()===4),_t,2)}function ht(Ct){return Ct.getUTCDay()}function pt(Ct,_t){return M(c.ot.count((0,y.c)(Ct)-1,Ct),_t,2)}function wt(Ct,_t){return M(Ct.getUTCFullYear()%100,_t,2)}function Dt(Ct,_t){return M(Ct.getUTCFullYear()%1e4,_t,4)}function It(){return"+0000"}function qt(){return"%"}function en(Ct){return+Ct}function Gt(Ct){return Math.floor(+Ct/1e3)}m=h({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"]}),v=m.format,m.parse,_=m.utcFormat,m.utcParse},68936:function(d,l,n){n.d(l,{m:function(){return O}});var c=n(81628),b=n(69792),i=(0,c.c)(function(w){w.setHours(0,0,0,0)},function(w,y){w.setDate(w.getDate()+y)},function(w,y){return(y-w-(y.getTimezoneOffset()-w.getTimezoneOffset())*b.iy)/b.SK},function(w){return w.getDate()-1});l.c=i;var O=i.range},69792:function(d,l,n){n.d(l,{KK:function(){return w},SK:function(){return O},cg:function(){return i},iy:function(){return b},yc:function(){return c}});var c=1e3,b=6e4,i=36e5,O=864e5,w=6048e5},73220:function(d,l,n){n.r(l),n.d(l,{timeDay:function(){return A.c},timeDays:function(){return A.m},timeFriday:function(){return x.iB},timeFridays:function(){return x.sJ},timeHour:function(){return _},timeHours:function(){return S},timeInterval:function(){return c.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return O},timeMinute:function(){return h},timeMinutes:function(){return m},timeMonday:function(){return x.qT},timeMondays:function(){return x.QP},timeMonth:function(){return M},timeMonths:function(){return T},timeSaturday:function(){return x.Wc},timeSaturdays:function(){return x.aI},timeSecond:function(){return p},timeSeconds:function(){return a},timeSunday:function(){return x.uU},timeSundays:function(){return x.Ab},timeThursday:function(){return x.kD},timeThursdays:function(){return x.eC},timeTuesday:function(){return x.Mf},timeTuesdays:function(){return x.Oc},timeWednesday:function(){return x.eg},timeWednesdays:function(){return x.sn},timeWeek:function(){return x.uU},timeWeeks:function(){return x.Ab},timeYear:function(){return E.c},timeYears:function(){return E.Q},utcDay:function(){return $.c},utcDays:function(){return $.o},utcFriday:function(){return Q.od},utcFridays:function(){return Q.iG},utcHour:function(){return I},utcHours:function(){return z},utcMillisecond:function(){return i},utcMilliseconds:function(){return O},utcMinute:function(){return L},utcMinutes:function(){return D},utcMonday:function(){return Q.ot},utcMondays:function(){return Q.iO},utcMonth:function(){return U},utcMonths:function(){return X},utcSaturday:function(){return Q.Ad},utcSaturdays:function(){return Q.K8},utcSecond:function(){return p},utcSeconds:function(){return a},utcSunday:function(){return Q.EV},utcSundays:function(){return Q.Wq},utcThursday:function(){return Q.yA},utcThursdays:function(){return Q.ob},utcTuesday:function(){return Q.sG},utcTuesdays:function(){return Q.kl},utcWednesday:function(){return Q._6},utcWednesdays:function(){return Q.W_},utcWeek:function(){return Q.EV},utcWeeks:function(){return Q.Wq},utcYear:function(){return te.c},utcYears:function(){return te.i}});var c=n(81628),b=(0,c.c)(function(){},function(W,K){W.setTime(+W+K)},function(W,K){return K-W});b.every=function(W){return W=Math.floor(W),isFinite(W)&&W>0?W>1?(0,c.c)(function(K){K.setTime(Math.floor(K/W)*W)},function(K,oe){K.setTime(+K+oe*W)},function(K,oe){return(oe-K)/W}):b:null};var i=b,O=b.range,w=n(69792),y=(0,c.c)(function(W){W.setTime(W-W.getMilliseconds())},function(W,K){W.setTime(+W+K*w.yc)},function(W,K){return(K-W)/w.yc},function(W){return W.getUTCSeconds()}),p=y,a=y.range,u=(0,c.c)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*w.yc)},function(W,K){W.setTime(+W+K*w.iy)},function(W,K){return(K-W)/w.iy},function(W){return W.getMinutes()}),h=u,m=u.range,v=(0,c.c)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*w.yc-W.getMinutes()*w.iy)},function(W,K){W.setTime(+W+K*w.cg)},function(W,K){return(K-W)/w.cg},function(W){return W.getHours()}),_=v,S=v.range,A=n(68936),x=n(46192),R=(0,c.c)(function(W){W.setDate(1),W.setHours(0,0,0,0)},function(W,K){W.setMonth(W.getMonth()+K)},function(W,K){return K.getMonth()-W.getMonth()+12*(K.getFullYear()-W.getFullYear())},function(W){return W.getMonth()}),M=R,T=R.range,E=n(32171),C=(0,c.c)(function(W){W.setUTCSeconds(0,0)},function(W,K){W.setTime(+W+K*w.iy)},function(W,K){return(K-W)/w.iy},function(W){return W.getUTCMinutes()}),L=C,D=C.range,k=(0,c.c)(function(W){W.setUTCMinutes(0,0,0)},function(W,K){W.setTime(+W+K*w.cg)},function(W,K){return(K-W)/w.cg},function(W){return W.getUTCHours()}),I=k,z=k.range,$=n(58931),Q=n(8208),j=(0,c.c)(function(W){W.setUTCDate(1),W.setUTCHours(0,0,0,0)},function(W,K){W.setUTCMonth(W.getUTCMonth()+K)},function(W,K){return K.getUTCMonth()-W.getUTCMonth()+12*(K.getUTCFullYear()-W.getUTCFullYear())},function(W){return W.getUTCMonth()}),U=j,X=j.range,te=n(53528)},81628:function(d,l,n){n.d(l,{c:function(){return i}});var c=new Date,b=new Date;function i(O,w,y,p){function a(u){return O(u=arguments.length===0?new Date:new Date(+u)),u}return a.floor=function(u){return O(u=new Date(+u)),u},a.ceil=function(u){return O(u=new Date(u-1)),w(u,1),O(u),u},a.round=function(u){var h=a(u),m=a.ceil(u);return u-h0))return _;do _.push(v=new Date(+u)),w(u,m),O(u);while(v=h)for(;O(h),!u(h);)h.setTime(h-1)},function(h,m){if(h>=h)if(m<0)for(;++m<=0;)for(;w(h,-1),!u(h););else for(;--m>=0;)for(;w(h,1),!u(h););})},y&&(a.count=function(u,h){return c.setTime(+u),b.setTime(+h),O(c),O(b),Math.floor(y(c,b))},a.every=function(u){return u=Math.floor(u),isFinite(u)&&u>0?u>1?a.filter(p?function(h){return p(h)%u==0}:function(h){return a.count(0,h)%u==0}):a:null}),a}},58931:function(d,l,n){n.d(l,{o:function(){return O}});var c=n(81628),b=n(69792),i=(0,c.c)(function(w){w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCDate(w.getUTCDate()+y)},function(w,y){return(y-w)/b.SK},function(w){return w.getUTCDate()-1});l.c=i;var O=i.range},8208:function(d,l,n){n.d(l,{Ad:function(){return h},EV:function(){return O},K8:function(){return R},W_:function(){return S},Wq:function(){return m},_6:function(){return p},iG:function(){return x},iO:function(){return v},kl:function(){return _},ob:function(){return A},od:function(){return u},ot:function(){return w},sG:function(){return y},yA:function(){return a}});var c=n(81628),b=n(69792);function i(M){return(0,c.c)(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-M)%7),T.setUTCHours(0,0,0,0)},function(T,E){T.setUTCDate(T.getUTCDate()+7*E)},function(T,E){return(E-T)/b.KK})}var O=i(0),w=i(1),y=i(2),p=i(3),a=i(4),u=i(5),h=i(6),m=O.range,v=w.range,_=y.range,S=p.range,A=a.range,x=u.range,R=h.range},53528:function(d,l,n){n.d(l,{i:function(){return i}});var c=n(81628),b=(0,c.c)(function(O){O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},function(O,w){O.setUTCFullYear(O.getUTCFullYear()+w)},function(O,w){return w.getUTCFullYear()-O.getUTCFullYear()},function(O){return O.getUTCFullYear()});b.every=function(O){return isFinite(O=Math.floor(O))&&O>0?(0,c.c)(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/O)*O),w.setUTCMonth(0,1),w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCFullYear(w.getUTCFullYear()+y*O)}):null},l.c=b;var i=b.range},46192:function(d,l,n){n.d(l,{Ab:function(){return m},Mf:function(){return y},Oc:function(){return _},QP:function(){return v},Wc:function(){return h},aI:function(){return R},eC:function(){return A},eg:function(){return p},iB:function(){return u},kD:function(){return a},qT:function(){return w},sJ:function(){return x},sn:function(){return S},uU:function(){return O}});var c=n(81628),b=n(69792);function i(M){return(0,c.c)(function(T){T.setDate(T.getDate()-(T.getDay()+7-M)%7),T.setHours(0,0,0,0)},function(T,E){T.setDate(T.getDate()+7*E)},function(T,E){return(E-T-(E.getTimezoneOffset()-T.getTimezoneOffset())*b.iy)/b.KK})}var O=i(0),w=i(1),y=i(2),p=i(3),a=i(4),u=i(5),h=i(6),m=O.range,v=w.range,_=y.range,S=p.range,A=a.range,x=u.range,R=h.range},32171:function(d,l,n){n.d(l,{Q:function(){return i}});var c=n(81628),b=(0,c.c)(function(O){O.setMonth(0,1),O.setHours(0,0,0,0)},function(O,w){O.setFullYear(O.getFullYear()+w)},function(O,w){return w.getFullYear()-O.getFullYear()},function(O){return O.getFullYear()});b.every=function(O){return isFinite(O=Math.floor(O))&&O>0?(0,c.c)(function(w){w.setFullYear(Math.floor(w.getFullYear()/O)*O),w.setMonth(0,1),w.setHours(0,0,0,0)},function(w,y){w.setFullYear(w.getFullYear()+y*O)}):null},l.c=b;var i=b.range},64348:function(d,l,n){var c=n(39640)(),b=n(53664),i=c&&b("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch{i=!1}var O=b("%SyntaxError%"),w=b("%TypeError%"),y=n(2304);d.exports=function(p,a,u){if(!p||typeof p!="object"&&typeof p!="function")throw new w("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new w("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new w("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new w("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new w("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new w("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,m=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,_=arguments.length>6&&arguments[6],S=!!y&&y(p,a);if(i)i(p,a,{configurable:v===null&&S?S.configurable:!v,enumerable:h===null&&S?S.enumerable:!h,value:u,writable:m===null&&S?S.writable:!m});else{if(!_&&(h||m||v))throw new O("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");p[a]=u}}},81288:function(d,l,n){var c=n(41820),b=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,O=Array.prototype.concat,w=Object.defineProperty,y=n(39640)(),p=w&&y,a=function(h,m,v,_){if(m in h){if(_===!0){if(h[m]===v)return}else if(typeof(S=_)!="function"||i.call(S)!=="[object Function]"||!_())return}var S;p?w(h,m,{configurable:!0,enumerable:!1,value:v,writable:!0}):h[m]=v},u=function(h,m){var v=arguments.length>2?arguments[2]:{},_=c(m);b&&(_=O.call(_,Object.getOwnPropertySymbols(m)));for(var S=0;S<_.length;S+=1)a(h,_[S],m[_[S]],v[_[S]])};u.supportsDescriptors=!!p,d.exports=u},31264:function(d){d.exports=function(){for(var l=0;lp*a){var _=(v-m)/p;y[h]=1e3*_}}return y}function b(i){for(var O=[],w=i[0];w<=i[1];w++)for(var y=String.fromCharCode(w),p=i[0];p0)return function(b,i){var O,w;for(O=new Array(b),w=0;w80*$){Q=U=I[0],j=X=I[1];for(var me=$;meU&&(U=te),W>X&&(X=W);K=(K=Math.max(U-Q,X-j))!==0?1/K:0}return b(Y,ee,$,Q,j,K),ee}function n(I,z,$,Q,j){var U,X;if(j===k(I,z,$,Q)>0)for(U=z;U<$;U+=Q)X=C(U,I[U],I[U+1],X);else for(U=$-Q;U>=z;U-=Q)X=C(U,I[U],I[U+1],X);return X&&A(X,X.next)&&(L(X),X=X.next),X}function c(I,z){if(!I)return I;z||(z=I);var $,Q=I;do if($=!1,Q.steiner||!A(Q,Q.next)&&S(Q.prev,Q,Q.next)!==0)Q=Q.next;else{if(L(Q),(Q=z=Q.prev)===Q.next)break;$=!0}while($||Q!==z);return z}function b(I,z,$,Q,j,U,X){if(I){!X&&U&&function(oe,q,Y,ee){var me=oe;do me.z===null&&(me.z=h(me.x,me.y,q,Y,ee)),me.prevZ=me.prev,me.nextZ=me.next,me=me.next;while(me!==oe);me.prevZ.nextZ=null,me.prevZ=null,function(he){var se,ae,ce,de,ve,ye,_e,Se,Te=1;do{for(ae=he,he=null,ve=null,ye=0;ae;){for(ye++,ce=ae,_e=0,se=0;se0||Se>0&&ce;)_e!==0&&(Se===0||!ce||ae.z<=ce.z)?(de=ae,ae=ae.nextZ,_e--):(de=ce,ce=ce.nextZ,Se--),ve?ve.nextZ=de:he=de,de.prevZ=ve,ve=de;ae=ce}ve.nextZ=null,Te*=2}while(ye>1)}(me)}(I,Q,j,U);for(var te,W,K=I;I.prev!==I.next;)if(te=I.prev,W=I.next,U?O(I,Q,j,U):i(I))z.push(te.i/$),z.push(I.i/$),z.push(W.i/$),L(I),I=W.next,K=W.next;else if((I=W)===K){X?X===1?b(I=w(c(I),z,$),z,$,Q,j,U,2):X===2&&y(I,z,$,Q,j,U):b(c(I),z,$,Q,j,U,1);break}}}function i(I){var z=I.prev,$=I,Q=I.next;if(S(z,$,Q)>=0)return!1;for(var j=I.next.next;j!==I.prev;){if(v(z.x,z.y,$.x,$.y,Q.x,Q.y,j.x,j.y)&&S(j.prev,j,j.next)>=0)return!1;j=j.next}return!0}function O(I,z,$,Q){var j=I.prev,U=I,X=I.next;if(S(j,U,X)>=0)return!1;for(var te=j.xU.x?j.x>X.x?j.x:X.x:U.x>X.x?U.x:X.x,oe=j.y>U.y?j.y>X.y?j.y:X.y:U.y>X.y?U.y:X.y,q=h(te,W,z,$,Q),Y=h(K,oe,z,$,Q),ee=I.prevZ,me=I.nextZ;ee&&ee.z>=q&&me&&me.z<=Y;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&S(ee.prev,ee,ee.next)>=0||(ee=ee.prevZ,me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&S(me.prev,me,me.next)>=0))return!1;me=me.nextZ}for(;ee&&ee.z>=q;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&S(ee.prev,ee,ee.next)>=0)return!1;ee=ee.prevZ}for(;me&&me.z<=Y;){if(me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&S(me.prev,me,me.next)>=0)return!1;me=me.nextZ}return!0}function w(I,z,$){var Q=I;do{var j=Q.prev,U=Q.next.next;!A(j,U)&&x(j,Q,Q.next,U)&&T(j,U)&&T(U,j)&&(z.push(j.i/$),z.push(Q.i/$),z.push(U.i/$),L(Q),L(Q.next),Q=I=U),Q=Q.next}while(Q!==I);return c(Q)}function y(I,z,$,Q,j,U){var X=I;do{for(var te=X.next.next;te!==X.prev;){if(X.i!==te.i&&_(X,te)){var W=E(X,te);return X=c(X,X.next),W=c(W,W.next),b(X,z,$,Q,j,U),void b(W,z,$,Q,j,U)}te=te.next}X=X.next}while(X!==I)}function p(I,z){return I.x-z.x}function a(I,z){if(z=function(Q,j){var U,X=j,te=Q.x,W=Q.y,K=-1/0;do{if(W<=X.y&&W>=X.next.y&&X.next.y!==X.y){var oe=X.x+(W-X.y)*(X.next.x-X.x)/(X.next.y-X.y);if(oe<=te&&oe>K){if(K=oe,oe===te){if(W===X.y)return X;if(W===X.next.y)return X.next}U=X.x=X.x&&X.x>=ee&&te!==X.x&&v(WU.x||X.x===U.x&&u(U,X)))&&(U=X,he=q)),X=X.next;while(X!==Y);return U}(I,z),z){var $=E(z,I);c(z,z.next),c($,$.next)}}function u(I,z){return S(I.prev,I,z.prev)<0&&S(z.next,I,I.next)<0}function h(I,z,$,Q,j){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=32767*(I-$)*j)|I<<8))|I<<4))|I<<2))|I<<1))|(z=1431655765&((z=858993459&((z=252645135&((z=16711935&((z=32767*(z-Q)*j)|z<<8))|z<<4))|z<<2))|z<<1))<<1}function m(I){var z=I,$=I;do(z.x<$.x||z.x===$.x&&z.y<$.y)&&($=z),z=z.next;while(z!==I);return $}function v(I,z,$,Q,j,U,X,te){return(j-X)*(z-te)-(I-X)*(U-te)>=0&&(I-X)*(Q-te)-($-X)*(z-te)>=0&&($-X)*(U-te)-(j-X)*(Q-te)>=0}function _(I,z){return I.next.i!==z.i&&I.prev.i!==z.i&&!function($,Q){var j=$;do{if(j.i!==$.i&&j.next.i!==$.i&&j.i!==Q.i&&j.next.i!==Q.i&&x(j,j.next,$,Q))return!0;j=j.next}while(j!==$);return!1}(I,z)&&(T(I,z)&&T(z,I)&&function($,Q){var j=$,U=!1,X=($.x+Q.x)/2,te=($.y+Q.y)/2;do j.y>te!=j.next.y>te&&j.next.y!==j.y&&X<(j.next.x-j.x)*(te-j.y)/(j.next.y-j.y)+j.x&&(U=!U),j=j.next;while(j!==$);return U}(I,z)&&(S(I.prev,I,z.prev)||S(I,z.prev,z))||A(I,z)&&S(I.prev,I,I.next)>0&&S(z.prev,z,z.next)>0)}function S(I,z,$){return(z.y-I.y)*($.x-z.x)-(z.x-I.x)*($.y-z.y)}function A(I,z){return I.x===z.x&&I.y===z.y}function x(I,z,$,Q){var j=M(S(I,z,$)),U=M(S(I,z,Q)),X=M(S($,Q,I)),te=M(S($,Q,z));return j!==U&&X!==te||!(j!==0||!R(I,$,z))||!(U!==0||!R(I,Q,z))||!(X!==0||!R($,I,Q))||!(te!==0||!R($,z,Q))}function R(I,z,$){return z.x<=Math.max(I.x,$.x)&&z.x>=Math.min(I.x,$.x)&&z.y<=Math.max(I.y,$.y)&&z.y>=Math.min(I.y,$.y)}function M(I){return I>0?1:I<0?-1:0}function T(I,z){return S(I.prev,I,I.next)<0?S(I,z,I.next)>=0&&S(I,I.prev,z)>=0:S(I,z,I.prev)<0||S(I,I.next,z)<0}function E(I,z){var $=new D(I.i,I.x,I.y),Q=new D(z.i,z.x,z.y),j=I.next,U=z.prev;return I.next=z,z.prev=I,$.next=j,j.prev=$,Q.next=$,$.prev=Q,U.next=Q,Q.prev=U,Q}function C(I,z,$,Q){var j=new D(I,z,$);return Q?(j.next=Q.next,j.prev=Q,Q.next.prev=j,Q.next=j):(j.prev=j,j.next=j),j}function L(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function D(I,z,$){this.i=I,this.x=z,this.y=$,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function k(I,z,$,Q){for(var j=0,U=z,X=$-Q;U<$;U+=Q)j+=(I[X]-I[U])*(I[U+1]+I[X+1]),X=U;return j}d.exports=l,d.exports.default=l,l.deviation=function(I,z,$,Q){var j=z&&z.length,U=j?z[0]*$:I.length,X=Math.abs(k(I,0,U,$));if(j)for(var te=0,W=z.length;te0&&(Q+=I[j-1].length,$.holes.push(Q))}return $}},6688:function(d,l,n){var c=n(78484);d.exports=function(b,i){var O,w=[],y=[],p=[],a={},u=[];function h(T){p[T]=!1,a.hasOwnProperty(T)&&Object.keys(a[T]).forEach(function(E){delete a[T][E],p[E]&&h(E)})}function m(T){var E,C,L=!1;for(y.push(T),p[T]=!0,E=0;E=$})})(T);for(var E,C=c(b).components.filter(function($){return $.length>1}),L=1/0,D=0;D=55296&&T<=56319&&(D+=_[++A]),D=k?h.call(k,I,D,x):D,S?(m.value=D,v(R,x,m)):R[x]=D,++x;M=x}}if(M===void 0)for(M=O(_.length),S&&(R=new S(M)),A=0;A0?1:-1}},96936:function(d,l,n){var c=n(85608),b=Math.abs,i=Math.floor;d.exports=function(O){return isNaN(O)?0:(O=Number(O))!==0&&isFinite(O)?c(O)*i(b(O)):O}},81304:function(d,l,n){var c=n(96936),b=Math.max;d.exports=function(i){return b(0,c(i))}},14428:function(d,l,n){var c=n(34044),b=n(9252),i=Function.prototype.bind,O=Function.prototype.call,w=Object.keys,y=Object.prototype.propertyIsEnumerable;d.exports=function(p,a){return function(u,h){var m,v=arguments[2],_=arguments[3];return u=Object(b(u)),c(h),m=w(u),_&&m.sort(typeof _=="function"?i.call(_,u):void 0),typeof p!="function"&&(p=m[p]),O.call(p,m,function(S,A){return y.call(u,S)?O.call(h,v,u[S],S,u,A):a})}}},38452:function(d,l,n){d.exports=n(96276)()?Object.assign:n(81892)},96276:function(d){d.exports=function(){var l,n=Object.assign;return typeof n=="function"&&(n(l={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),l.foo+l.bar+l.trzy==="razdwatrzy")}},81892:function(d,l,n){var c=n(54768),b=n(9252),i=Math.max;d.exports=function(O,w){var y,p,a,u=i(arguments.length,2);for(O=Object(b(O)),a=function(h){try{O[h]=w[h]}catch(m){y||(y=m)}},p=1;p-1}},29768:function(d){var l=Object.prototype.toString,n=l.call("");d.exports=function(c){return typeof c=="string"||c&&typeof c=="object"&&(c instanceof String||l.call(c)===n)||!1}},82252:function(d){var l=Object.create(null),n=Math.random;d.exports=function(){var c;do c=n().toString(36).slice(2);while(l[c]);return c}},52104:function(d,l,n){var c,b=n(69932),i=n(71056),O=n(21092),w=n(92664),y=n(85512),p=Object.defineProperty;c=d.exports=function(a,u){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");y.call(this,a),u=u?i.call(u,"key+value")?"key+value":i.call(u,"key")?"key":"value":"value",p(this,"__kind__",O("",u))},b&&b(c,y),delete c.prototype.constructor,c.prototype=Object.create(y.prototype,{_resolve:O(function(a){return this.__kind__==="value"?this.__list__[a]:this.__kind__==="key+value"?[a,this.__list__[a]]:a})}),p(c.prototype,w.toStringTag,O("c","Array Iterator"))},76024:function(d,l,n){var c=n(60948),b=n(34044),i=n(29768),O=n(76252),w=Array.isArray,y=Function.prototype.call,p=Array.prototype.some;d.exports=function(a,u){var h,m,v,_,S,A,x,R,M=arguments[2];if(w(a)||c(a)?h="array":i(a)?h="string":a=O(a),b(u),v=function(){_=!0},h!=="array")if(h!=="string")for(m=a.next();!m.done;){if(y.call(u,M,m.value,v),_)return;m=a.next()}else for(A=a.length,S=0;S=55296&&R<=56319&&(x+=a[++S]),y.call(u,M,x,v),!_);++S);else p.call(a,function(T){return y.call(u,M,T,v),_})}},76252:function(d,l,n){var c=n(60948),b=n(29768),i=n(52104),O=n(80940),w=n(52891),y=n(92664).iterator;d.exports=function(p){return typeof w(p)[y]=="function"?p[y]():c(p)?new i(p):b(p)?new O(p):new i(p)}},85512:function(d,l,n){var c,b=n(41476),i=n(38452),O=n(34044),w=n(9252),y=n(21092),p=n(27940),a=n(92664),u=Object.defineProperty,h=Object.defineProperties;d.exports=c=function(m,v){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");h(this,{__list__:y("w",w(m)),__context__:y("w",v),__nextIndex__:y("w",0)}),v&&(O(v.on),v.on("_add",this._onAdd),v.on("_delete",this._onDelete),v.on("_clear",this._onClear))},delete c.prototype.constructor,h(c.prototype,i({_next:y(function(){var m;if(this.__list__)return this.__redo__&&(m=this.__redo__.shift())!==void 0?m:this.__nextIndex__=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(v,_){v>=m&&(this.__redo__[_]=++v)},this),this.__redo__.push(m)):u(this,"__redo__",y("c",[m])))}),_onDelete:y(function(m){var v;m>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&((v=this.__redo__.indexOf(m))!==-1&&this.__redo__.splice(v,1),this.__redo__.forEach(function(_,S){_>m&&(this.__redo__[S]=--_)},this)))}),_onClear:y(function(){this.__redo__&&b.call(this.__redo__),this.__nextIndex__=0})}))),u(c.prototype,a.iterator,y(function(){return this}))},76368:function(d,l,n){var c=n(60948),b=n(42584),i=n(29768),O=n(92664).iterator,w=Array.isArray;d.exports=function(y){return!(!b(y)||!w(y)&&!i(y)&&!c(y)&&typeof y[O]!="function")}},80940:function(d,l,n){var c,b=n(69932),i=n(21092),O=n(92664),w=n(85512),y=Object.defineProperty;c=d.exports=function(p){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");p=String(p),w.call(this,p),y(this,"__length__",i("",p.length))},b&&b(c,w),delete c.prototype.constructor,c.prototype=Object.create(w.prototype,{_next:i(function(){if(this.__list__)return this.__nextIndex__=55296&&a<=56319?u+this.__list__[this.__nextIndex__++]:u})}),y(c.prototype,O.toStringTag,i("c","String Iterator"))},52891:function(d,l,n){var c=n(76368);d.exports=function(b){if(!c(b))throw new TypeError(b+" is not iterable");return b}},60964:function(d){function l(n,c){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var b=Object(n),i=1;i0&&E.length>M&&!E.warned){E.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+E.length+" "+String(A)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=S,L.type=A,L.count=E.length,C=L,console&&console.warn&&console.warn(C)}return S}function a(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(S,A,x){var R={fired:!1,wrapFn:void 0,target:S,type:A,listener:x},M=a.bind(R);return M.listener=x,R.wrapFn=M,M}function h(S,A,x){var R=S._events;if(R===void 0)return[];var M=R[A];return M===void 0?[]:typeof M=="function"?x?[M.listener||M]:[M]:x?function(T){for(var E=new Array(T.length),C=0;C0&&(T=A[0]),T instanceof Error)throw T;var E=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw E.context=T,E}var C=M[S];if(C===void 0)return!1;if(typeof C=="function")c(C,this,A);else{var L=C.length,D=v(C,L);for(x=0;x=0;T--)if(x[T]===A||x[T].listener===A){E=x[T].listener,M=T;break}if(M<0)return this;M===0?x.shift():function(C,L){for(;L+1=0;R--)this.removeListener(S,A[R]);return this},i.prototype.listeners=function(S){return h(this,S,!0)},i.prototype.rawListeners=function(S){return h(this,S,!1)},i.listenerCount=function(S,A){return typeof S.listenerCount=="function"?S.listenerCount(A):m.call(S,A)},i.prototype.listenerCount=m,i.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]}},39072:function(d){var l=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};d.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return l()}try{return __global__||l()}finally{delete Object.prototype.__global__}}()},12296:function(d,l,n){d.exports=n(45072)()?globalThis:n(39072)},45072:function(d){d.exports=function(){return typeof globalThis=="object"&&!!globalThis&&globalThis.Array===Array}},38248:function(d,l,n){var c=n(94576);d.exports=function(b){var i=typeof b;if(i==="string"){var O=b;if((b=+b)==0&&c(O))return!1}else if(i!=="number")return!1;return b-b<1}},47520:function(d,l,n){var c=n(72512);d.exports=function(b,i,O){if(!b)throw new TypeError("must specify data as first parameter");if(O=0|+(O||0),Array.isArray(b)&&b[0]&&typeof b[0][0]=="number"){var w,y,p,a,u=b[0].length,h=b.length*u;i&&typeof i!="string"||(i=new(c(i||"float32"))(h+O));var m=i.length-O;if(h!==m)throw new Error("source length "+h+" ("+u+"x"+b.length+") does not match destination length "+m);for(w=0,p=O;wO[0]-p[0]/2&&(_=p[0]/2,S+=p[1]);return w}},71920:function(d){function l(i,O){O||(O={}),(typeof i=="string"||Array.isArray(i))&&(O.family=i);var w=Array.isArray(O.family)?O.family.join(", "):O.family;if(!w)throw Error("`family` must be defined");var y=O.size||O.fontSize||O.em||48,p=O.weight||O.fontWeight||"",a=(i=[O.style||O.fontStyle||"",p,y].join(" ")+"px "+w,O.origin||"top");if(l.cache[w]&&y<=l.cache[w].em)return n(l.cache[w],a);var u=O.canvas||l.canvas,h=u.getContext("2d"),m={upper:O.upper!==void 0?O.upper:"H",lower:O.lower!==void 0?O.lower:"x",descent:O.descent!==void 0?O.descent:"p",ascent:O.ascent!==void 0?O.ascent:"h",tittle:O.tittle!==void 0?O.tittle:"i",overshoot:O.overshoot!==void 0?O.overshoot:"O"},v=Math.ceil(1.5*y);u.height=v,u.width=.5*v,h.font=i;var _="H",S={top:0};h.clearRect(0,0,v,v),h.textBaseline="top",h.fillStyle="black",h.fillText(_,0,0);var A=c(h.getImageData(0,0,v,v));h.clearRect(0,0,v,v),h.textBaseline="bottom",h.fillText(_,0,v);var x=c(h.getImageData(0,0,v,v));S.lineHeight=S.bottom=v-x+A,h.clearRect(0,0,v,v),h.textBaseline="alphabetic",h.fillText(_,0,v);var R=v-c(h.getImageData(0,0,v,v))-1+A;S.baseline=S.alphabetic=R,h.clearRect(0,0,v,v),h.textBaseline="middle",h.fillText(_,0,.5*v);var M=c(h.getImageData(0,0,v,v));S.median=S.middle=v-M-1+A-.5*v,h.clearRect(0,0,v,v),h.textBaseline="hanging",h.fillText(_,0,.5*v);var T=c(h.getImageData(0,0,v,v));S.hanging=v-T-1+A-.5*v,h.clearRect(0,0,v,v),h.textBaseline="ideographic",h.fillText(_,0,v);var E=c(h.getImageData(0,0,v,v));if(S.ideographic=v-E-1+A,m.upper&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.upper,0,0),S.upper=c(h.getImageData(0,0,v,v)),S.capHeight=S.baseline-S.upper),m.lower&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.lower,0,0),S.lower=c(h.getImageData(0,0,v,v)),S.xHeight=S.baseline-S.lower),m.tittle&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.tittle,0,0),S.tittle=c(h.getImageData(0,0,v,v))),m.ascent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.ascent,0,0),S.ascent=c(h.getImageData(0,0,v,v))),m.descent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.descent,0,0),S.descent=b(h.getImageData(0,0,v,v))),m.overshoot){h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.overshoot,0,0);var C=b(h.getImageData(0,0,v,v));S.overshoot=C-R}for(var L in S)S[L]/=y;return S.em=y,l.cache[w]=S,n(S,a)}function n(i,O){var w={};for(var y in typeof O=="string"&&(O=i[O]),i)y!=="em"&&(w[y]=i[y]-O);return w}function c(i){for(var O=i.height,w=i.data,y=3;y0;y-=4)if(w[y]!==0)return Math.floor(.25*(y-3)/O)}d.exports=l,l.canvas=document.createElement("canvas"),l.cache={}},46492:function(d,l,n){var c=n(90720),b=Object.prototype.toString,i=Object.prototype.hasOwnProperty;d.exports=function(O,w,y){if(!c(w))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=y),b.call(O)==="[object Array]"?function(a,u,h){for(var m=0,v=a.length;m"u"&&!n.canvas)return null;var c=n.canvas||document.createElement("canvas");typeof n.width=="number"&&(c.width=n.width),typeof n.height=="number"&&(c.height=n.height);var b,i=n;try{var O=[l];l.indexOf("webgl")===0&&O.push("experimental-"+l);for(var w=0;w"u"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?c:ArrayBuffer,"%ArrayIteratorPrototype%":u&&m?m([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?c:Atomics,"%BigInt%":typeof BigInt>"u"?c:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?c:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?c:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?c:Float32Array,"%Float64Array%":typeof Float64Array>"u"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?c:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?c:Int8Array,"%Int16Array%":typeof Int16Array>"u"?c:Int16Array,"%Int32Array%":typeof Int32Array>"u"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&m?m(m([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map>"u"?c:Map,"%MapIteratorPrototype%":typeof Map<"u"&&u&&m?m(new Map()[Symbol.iterator]()):c,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?c:Promise,"%Proxy%":typeof Proxy>"u"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?c:Set,"%SetIteratorPrototype%":typeof Set<"u"&&u&&m?m(new Set()[Symbol.iterator]()):c,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&m?m(""[Symbol.iterator]()):c,"%Symbol%":u?Symbol:c,"%SyntaxError%":b,"%ThrowTypeError%":a,"%TypedArray%":_,"%TypeError%":O,"%Uint8Array%":typeof Uint8Array>"u"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?c:WeakMap,"%WeakRef%":typeof WeakRef>"u"?c:WeakRef,"%WeakSet%":typeof WeakSet>"u"?c:WeakSet};if(m)try{null.error}catch(Q){var A=m(m(Q));S["%Error.prototype%"]=A}var x=function Q(j){var U;if(j==="%AsyncFunction%")U=w("async function () {}");else if(j==="%GeneratorFunction%")U=w("function* () {}");else if(j==="%AsyncGeneratorFunction%")U=w("async function* () {}");else if(j==="%AsyncGenerator%"){var X=Q("%AsyncGeneratorFunction%");X&&(U=X.prototype)}else if(j==="%AsyncIteratorPrototype%"){var te=Q("%AsyncGenerator%");te&&m&&(U=m(te.prototype))}return S[j]=U,U},R={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=n(8844),T=n(92064),E=M.call(Function.call,Array.prototype.concat),C=M.call(Function.apply,Array.prototype.splice),L=M.call(Function.call,String.prototype.replace),D=M.call(Function.call,String.prototype.slice),k=M.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,$=function(Q,j){var U,X=Q;if(T(R,X)&&(X="%"+(U=R[X])[0]+"%"),T(S,X)){var te=S[X];if(te===v&&(te=x(X)),te===void 0&&!j)throw new O("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:U,name:X,value:te}}throw new b("intrinsic "+Q+" does not exist!")};d.exports=function(Q,j){if(typeof Q!="string"||Q.length===0)throw new O("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new O('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,Q)===null)throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=function(ce){var de=D(ce,0,1),ve=D(ce,-1);if(de==="%"&&ve!=="%")throw new b("invalid intrinsic syntax, expected closing `%`");if(ve==="%"&&de!=="%")throw new b("invalid intrinsic syntax, expected opening `%`");var ye=[];return L(ce,I,function(_e,Se,Te,Pe){ye[ye.length]=Te?L(Pe,z,"$1"):Se||_e}),ye}(Q),X=U.length>0?U[0]:"",te=$("%"+X+"%",j),W=te.name,K=te.value,oe=!1,q=te.alias;q&&(X=q[0],C(U,E([0,1],q)));for(var Y=1,ee=!0;Y=U.length){var ae=y(K,me);K=(ee=!!ae)&&"get"in ae&&!("originalValue"in ae.get)?ae.get:K[me]}else ee=T(K,me),K=K[me];ee&&!oe&&(S[W]=K)}}return K}},12408:function(d){d.exports=function(l,n){var c=n[0],b=n[1],i=n[2],O=n[3],w=n[4],y=n[5],p=n[6],a=n[7],u=n[8],h=n[9],m=n[10],v=n[11],_=n[12],S=n[13],A=n[14],x=n[15];return l[0]=y*(m*x-v*A)-h*(p*x-a*A)+S*(p*v-a*m),l[1]=-(b*(m*x-v*A)-h*(i*x-O*A)+S*(i*v-O*m)),l[2]=b*(p*x-a*A)-y*(i*x-O*A)+S*(i*a-O*p),l[3]=-(b*(p*v-a*m)-y*(i*v-O*m)+h*(i*a-O*p)),l[4]=-(w*(m*x-v*A)-u*(p*x-a*A)+_*(p*v-a*m)),l[5]=c*(m*x-v*A)-u*(i*x-O*A)+_*(i*v-O*m),l[6]=-(c*(p*x-a*A)-w*(i*x-O*A)+_*(i*a-O*p)),l[7]=c*(p*v-a*m)-w*(i*v-O*m)+u*(i*a-O*p),l[8]=w*(h*x-v*S)-u*(y*x-a*S)+_*(y*v-a*h),l[9]=-(c*(h*x-v*S)-u*(b*x-O*S)+_*(b*v-O*h)),l[10]=c*(y*x-a*S)-w*(b*x-O*S)+_*(b*a-O*y),l[11]=-(c*(y*v-a*h)-w*(b*v-O*h)+u*(b*a-O*y)),l[12]=-(w*(h*A-m*S)-u*(y*A-p*S)+_*(y*m-p*h)),l[13]=c*(h*A-m*S)-u*(b*A-i*S)+_*(b*m-i*h),l[14]=-(c*(y*A-p*S)-w*(b*A-i*S)+_*(b*p-i*y)),l[15]=c*(y*m-p*h)-w*(b*m-i*h)+u*(b*p-i*y),l}},76860:function(d){d.exports=function(l){var n=new Float32Array(16);return n[0]=l[0],n[1]=l[1],n[2]=l[2],n[3]=l[3],n[4]=l[4],n[5]=l[5],n[6]=l[6],n[7]=l[7],n[8]=l[8],n[9]=l[9],n[10]=l[10],n[11]=l[11],n[12]=l[12],n[13]=l[13],n[14]=l[14],n[15]=l[15],n}},64492:function(d){d.exports=function(l,n){return l[0]=n[0],l[1]=n[1],l[2]=n[2],l[3]=n[3],l[4]=n[4],l[5]=n[5],l[6]=n[6],l[7]=n[7],l[8]=n[8],l[9]=n[9],l[10]=n[10],l[11]=n[11],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15],l}},54212:function(d){d.exports=function(){var l=new Float32Array(16);return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},70800:function(d){d.exports=function(l){var n=l[0],c=l[1],b=l[2],i=l[3],O=l[4],w=l[5],y=l[6],p=l[7],a=l[8],u=l[9],h=l[10],m=l[11],v=l[12],_=l[13],S=l[14],A=l[15];return(n*w-c*O)*(h*A-m*S)-(n*y-b*O)*(u*A-m*_)+(n*p-i*O)*(u*S-h*_)+(c*y-b*w)*(a*A-m*v)-(c*p-i*w)*(a*S-h*v)+(b*p-i*y)*(a*_-u*v)}},61784:function(d){d.exports=function(l,n){var c=n[0],b=n[1],i=n[2],O=n[3],w=c+c,y=b+b,p=i+i,a=c*w,u=b*w,h=b*y,m=i*w,v=i*y,_=i*p,S=O*w,A=O*y,x=O*p;return l[0]=1-h-_,l[1]=u+x,l[2]=m-A,l[3]=0,l[4]=u-x,l[5]=1-a-_,l[6]=v+S,l[7]=0,l[8]=m+A,l[9]=v-S,l[10]=1-a-h,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},91616:function(d){d.exports=function(l,n,c){var b,i,O,w=c[0],y=c[1],p=c[2],a=Math.sqrt(w*w+y*y+p*p);return Math.abs(a)<1e-6?null:(w*=a=1/a,y*=a,p*=a,b=Math.sin(n),O=1-(i=Math.cos(n)),l[0]=w*w*O+i,l[1]=y*w*O+p*b,l[2]=p*w*O-y*b,l[3]=0,l[4]=w*y*O-p*b,l[5]=y*y*O+i,l[6]=p*y*O+w*b,l[7]=0,l[8]=w*p*O+y*b,l[9]=y*p*O-w*b,l[10]=p*p*O+i,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l)}},51944:function(d){d.exports=function(l,n,c){var b=n[0],i=n[1],O=n[2],w=n[3],y=b+b,p=i+i,a=O+O,u=b*y,h=b*p,m=b*a,v=i*p,_=i*a,S=O*a,A=w*y,x=w*p,R=w*a;return l[0]=1-(v+S),l[1]=h+R,l[2]=m-x,l[3]=0,l[4]=h-R,l[5]=1-(u+S),l[6]=_+A,l[7]=0,l[8]=m+x,l[9]=_-A,l[10]=1-(u+v),l[11]=0,l[12]=c[0],l[13]=c[1],l[14]=c[2],l[15]=1,l}},69444:function(d){d.exports=function(l,n){return l[0]=n[0],l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=n[1],l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=n[2],l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},48268:function(d){d.exports=function(l,n){return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=n[0],l[13]=n[1],l[14]=n[2],l[15]=1,l}},21856:function(d){d.exports=function(l,n){var c=Math.sin(n),b=Math.cos(n);return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=b,l[6]=c,l[7]=0,l[8]=0,l[9]=-c,l[10]=b,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},79216:function(d){d.exports=function(l,n){var c=Math.sin(n),b=Math.cos(n);return l[0]=b,l[1]=0,l[2]=-c,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=c,l[9]=0,l[10]=b,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},57736:function(d){d.exports=function(l,n){var c=Math.sin(n),b=Math.cos(n);return l[0]=b,l[1]=c,l[2]=0,l[3]=0,l[4]=-c,l[5]=b,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},38848:function(d){d.exports=function(l,n,c,b,i,O,w){var y=1/(c-n),p=1/(i-b),a=1/(O-w);return l[0]=2*O*y,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=2*O*p,l[6]=0,l[7]=0,l[8]=(c+n)*y,l[9]=(i+b)*p,l[10]=(w+O)*a,l[11]=-1,l[12]=0,l[13]=0,l[14]=w*O*2*a,l[15]=0,l}},36635:function(d){d.exports=function(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},36524:function(d,l,n){d.exports={create:n(54212),clone:n(76860),copy:n(64492),identity:n(36635),transpose:n(86520),invert:n(4308),adjoint:n(12408),determinant:n(70800),multiply:n(80944),translate:n(35176),scale:n(68152),rotate:n(30016),rotateX:n(15456),rotateY:n(64840),rotateZ:n(4192),fromRotation:n(91616),fromRotationTranslation:n(51944),fromScaling:n(69444),fromTranslation:n(48268),fromXRotation:n(21856),fromYRotation:n(79216),fromZRotation:n(57736),fromQuat:n(61784),frustum:n(38848),perspective:n(51296),perspectiveFromFieldOfView:n(63688),ortho:n(97688),lookAt:n(56508),str:n(89412)}},4308:function(d){d.exports=function(l,n){var c=n[0],b=n[1],i=n[2],O=n[3],w=n[4],y=n[5],p=n[6],a=n[7],u=n[8],h=n[9],m=n[10],v=n[11],_=n[12],S=n[13],A=n[14],x=n[15],R=c*y-b*w,M=c*p-i*w,T=c*a-O*w,E=b*p-i*y,C=b*a-O*y,L=i*a-O*p,D=u*S-h*_,k=u*A-m*_,I=u*x-v*_,z=h*A-m*S,$=h*x-v*S,Q=m*x-v*A,j=R*Q-M*$+T*z+E*I-C*k+L*D;return j?(j=1/j,l[0]=(y*Q-p*$+a*z)*j,l[1]=(i*$-b*Q-O*z)*j,l[2]=(S*L-A*C+x*E)*j,l[3]=(m*C-h*L-v*E)*j,l[4]=(p*I-w*Q-a*k)*j,l[5]=(c*Q-i*I+O*k)*j,l[6]=(A*T-_*L-x*M)*j,l[7]=(u*L-m*T+v*M)*j,l[8]=(w*$-y*I+a*D)*j,l[9]=(b*I-c*$-O*D)*j,l[10]=(_*C-S*T+x*R)*j,l[11]=(h*T-u*C-v*R)*j,l[12]=(y*k-w*z-p*D)*j,l[13]=(c*z-b*k+i*D)*j,l[14]=(S*M-_*E-A*R)*j,l[15]=(u*E-h*M+m*R)*j,l):null}},56508:function(d,l,n){var c=n(36635);d.exports=function(b,i,O,w){var y,p,a,u,h,m,v,_,S,A,x=i[0],R=i[1],M=i[2],T=w[0],E=w[1],C=w[2],L=O[0],D=O[1],k=O[2];return Math.abs(x-L)<1e-6&&Math.abs(R-D)<1e-6&&Math.abs(M-k)<1e-6?c(b):(v=x-L,_=R-D,S=M-k,y=E*(S*=A=1/Math.sqrt(v*v+_*_+S*S))-C*(_*=A),p=C*(v*=A)-T*S,a=T*_-E*v,(A=Math.sqrt(y*y+p*p+a*a))?(y*=A=1/A,p*=A,a*=A):(y=0,p=0,a=0),u=_*a-S*p,h=S*y-v*a,m=v*p-_*y,(A=Math.sqrt(u*u+h*h+m*m))?(u*=A=1/A,h*=A,m*=A):(u=0,h=0,m=0),b[0]=y,b[1]=u,b[2]=v,b[3]=0,b[4]=p,b[5]=h,b[6]=_,b[7]=0,b[8]=a,b[9]=m,b[10]=S,b[11]=0,b[12]=-(y*x+p*R+a*M),b[13]=-(u*x+h*R+m*M),b[14]=-(v*x+_*R+S*M),b[15]=1,b)}},80944:function(d){d.exports=function(l,n,c){var b=n[0],i=n[1],O=n[2],w=n[3],y=n[4],p=n[5],a=n[6],u=n[7],h=n[8],m=n[9],v=n[10],_=n[11],S=n[12],A=n[13],x=n[14],R=n[15],M=c[0],T=c[1],E=c[2],C=c[3];return l[0]=M*b+T*y+E*h+C*S,l[1]=M*i+T*p+E*m+C*A,l[2]=M*O+T*a+E*v+C*x,l[3]=M*w+T*u+E*_+C*R,M=c[4],T=c[5],E=c[6],C=c[7],l[4]=M*b+T*y+E*h+C*S,l[5]=M*i+T*p+E*m+C*A,l[6]=M*O+T*a+E*v+C*x,l[7]=M*w+T*u+E*_+C*R,M=c[8],T=c[9],E=c[10],C=c[11],l[8]=M*b+T*y+E*h+C*S,l[9]=M*i+T*p+E*m+C*A,l[10]=M*O+T*a+E*v+C*x,l[11]=M*w+T*u+E*_+C*R,M=c[12],T=c[13],E=c[14],C=c[15],l[12]=M*b+T*y+E*h+C*S,l[13]=M*i+T*p+E*m+C*A,l[14]=M*O+T*a+E*v+C*x,l[15]=M*w+T*u+E*_+C*R,l}},97688:function(d){d.exports=function(l,n,c,b,i,O,w){var y=1/(n-c),p=1/(b-i),a=1/(O-w);return l[0]=-2*y,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=-2*p,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=2*a,l[11]=0,l[12]=(n+c)*y,l[13]=(i+b)*p,l[14]=(w+O)*a,l[15]=1,l}},51296:function(d){d.exports=function(l,n,c,b,i){var O=1/Math.tan(n/2),w=1/(b-i);return l[0]=O/c,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=O,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=(i+b)*w,l[11]=-1,l[12]=0,l[13]=0,l[14]=2*i*b*w,l[15]=0,l}},63688:function(d){d.exports=function(l,n,c,b){var i=Math.tan(n.upDegrees*Math.PI/180),O=Math.tan(n.downDegrees*Math.PI/180),w=Math.tan(n.leftDegrees*Math.PI/180),y=Math.tan(n.rightDegrees*Math.PI/180),p=2/(w+y),a=2/(i+O);return l[0]=p,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=a,l[6]=0,l[7]=0,l[8]=-(w-y)*p*.5,l[9]=(i-O)*a*.5,l[10]=b/(c-b),l[11]=-1,l[12]=0,l[13]=0,l[14]=b*c/(c-b),l[15]=0,l}},30016:function(d){d.exports=function(l,n,c,b){var i,O,w,y,p,a,u,h,m,v,_,S,A,x,R,M,T,E,C,L,D,k,I,z,$=b[0],Q=b[1],j=b[2],U=Math.sqrt($*$+Q*Q+j*j);return Math.abs(U)<1e-6?null:($*=U=1/U,Q*=U,j*=U,i=Math.sin(c),w=1-(O=Math.cos(c)),y=n[0],p=n[1],a=n[2],u=n[3],h=n[4],m=n[5],v=n[6],_=n[7],S=n[8],A=n[9],x=n[10],R=n[11],M=$*$*w+O,T=Q*$*w+j*i,E=j*$*w-Q*i,C=$*Q*w-j*i,L=Q*Q*w+O,D=j*Q*w+$*i,k=$*j*w+Q*i,I=Q*j*w-$*i,z=j*j*w+O,l[0]=y*M+h*T+S*E,l[1]=p*M+m*T+A*E,l[2]=a*M+v*T+x*E,l[3]=u*M+_*T+R*E,l[4]=y*C+h*L+S*D,l[5]=p*C+m*L+A*D,l[6]=a*C+v*L+x*D,l[7]=u*C+_*L+R*D,l[8]=y*k+h*I+S*z,l[9]=p*k+m*I+A*z,l[10]=a*k+v*I+x*z,l[11]=u*k+_*I+R*z,n!==l&&(l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l)}},15456:function(d){d.exports=function(l,n,c){var b=Math.sin(c),i=Math.cos(c),O=n[4],w=n[5],y=n[6],p=n[7],a=n[8],u=n[9],h=n[10],m=n[11];return n!==l&&(l[0]=n[0],l[1]=n[1],l[2]=n[2],l[3]=n[3],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l[4]=O*i+a*b,l[5]=w*i+u*b,l[6]=y*i+h*b,l[7]=p*i+m*b,l[8]=a*i-O*b,l[9]=u*i-w*b,l[10]=h*i-y*b,l[11]=m*i-p*b,l}},64840:function(d){d.exports=function(l,n,c){var b=Math.sin(c),i=Math.cos(c),O=n[0],w=n[1],y=n[2],p=n[3],a=n[8],u=n[9],h=n[10],m=n[11];return n!==l&&(l[4]=n[4],l[5]=n[5],l[6]=n[6],l[7]=n[7],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l[0]=O*i-a*b,l[1]=w*i-u*b,l[2]=y*i-h*b,l[3]=p*i-m*b,l[8]=O*b+a*i,l[9]=w*b+u*i,l[10]=y*b+h*i,l[11]=p*b+m*i,l}},4192:function(d){d.exports=function(l,n,c){var b=Math.sin(c),i=Math.cos(c),O=n[0],w=n[1],y=n[2],p=n[3],a=n[4],u=n[5],h=n[6],m=n[7];return n!==l&&(l[8]=n[8],l[9]=n[9],l[10]=n[10],l[11]=n[11],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l[0]=O*i+a*b,l[1]=w*i+u*b,l[2]=y*i+h*b,l[3]=p*i+m*b,l[4]=a*i-O*b,l[5]=u*i-w*b,l[6]=h*i-y*b,l[7]=m*i-p*b,l}},68152:function(d){d.exports=function(l,n,c){var b=c[0],i=c[1],O=c[2];return l[0]=n[0]*b,l[1]=n[1]*b,l[2]=n[2]*b,l[3]=n[3]*b,l[4]=n[4]*i,l[5]=n[5]*i,l[6]=n[6]*i,l[7]=n[7]*i,l[8]=n[8]*O,l[9]=n[9]*O,l[10]=n[10]*O,l[11]=n[11]*O,l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15],l}},89412:function(d){d.exports=function(l){return"mat4("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+", "+l[4]+", "+l[5]+", "+l[6]+", "+l[7]+", "+l[8]+", "+l[9]+", "+l[10]+", "+l[11]+", "+l[12]+", "+l[13]+", "+l[14]+", "+l[15]+")"}},35176:function(d){d.exports=function(l,n,c){var b,i,O,w,y,p,a,u,h,m,v,_,S=c[0],A=c[1],x=c[2];return n===l?(l[12]=n[0]*S+n[4]*A+n[8]*x+n[12],l[13]=n[1]*S+n[5]*A+n[9]*x+n[13],l[14]=n[2]*S+n[6]*A+n[10]*x+n[14],l[15]=n[3]*S+n[7]*A+n[11]*x+n[15]):(b=n[0],i=n[1],O=n[2],w=n[3],y=n[4],p=n[5],a=n[6],u=n[7],h=n[8],m=n[9],v=n[10],_=n[11],l[0]=b,l[1]=i,l[2]=O,l[3]=w,l[4]=y,l[5]=p,l[6]=a,l[7]=u,l[8]=h,l[9]=m,l[10]=v,l[11]=_,l[12]=b*S+y*A+h*x+n[12],l[13]=i*S+p*A+m*x+n[13],l[14]=O*S+a*A+v*x+n[14],l[15]=w*S+u*A+_*x+n[15]),l}},86520:function(d){d.exports=function(l,n){if(l===n){var c=n[1],b=n[2],i=n[3],O=n[6],w=n[7],y=n[11];l[1]=n[4],l[2]=n[8],l[3]=n[12],l[4]=c,l[6]=n[9],l[7]=n[13],l[8]=b,l[9]=O,l[11]=n[14],l[12]=i,l[13]=w,l[14]=y}else l[0]=n[0],l[1]=n[4],l[2]=n[8],l[3]=n[12],l[4]=n[1],l[5]=n[5],l[6]=n[9],l[7]=n[13],l[8]=n[2],l[9]=n[6],l[10]=n[10],l[11]=n[14],l[12]=n[3],l[13]=n[7],l[14]=n[11],l[15]=n[15];return l}},23352:function(d,l,n){var c=n(42771),b=n(55616),i=n(28624),O=n(55212),w=n(60463),y=n(72160),p=n(33888),a=n(14144),u=n(51160),h=n(58908),m=n(65819),v=n(23464),_=n(63768),S=n(50896),A=n(71920),x=n(47520),R=n(308).nextPow2,M=new w,T=!1;if(document.body){var E=document.body.appendChild(document.createElement("div"));E.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(E).fontStretch&&(T=!0),document.body.removeChild(E)}var C=function(L){(function(D){return typeof D=="function"&&D._gl&&D.prop&&D.texture&&D.buffer})(L)?(L={regl:L},this.gl=L.regl._gl):this.gl=O(L),this.shader=M.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=L.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),M.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(L)?L:{})};C.prototype.createShader=function(){var L=this.regl,D=L({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:L.prop("count"),offset:L.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:L.this("sizeBuffer")},width:{offset:0,stride:8,buffer:L.this("sizeBuffer")},char:L.this("charBuffer"),position:L.this("position")},uniforms:{atlasSize:function(k,I){return[I.atlas.width,I.atlas.height]},atlasDim:function(k,I){return[I.atlas.cols,I.atlas.rows]},atlas:function(k,I){return I.atlas.texture},charStep:function(k,I){return I.atlas.step},em:function(k,I){return I.atlas.em},color:L.prop("color"),opacity:L.prop("opacity"),viewport:L.this("viewportArray"),scale:L.this("scale"),align:L.prop("align"),baseline:L.prop("baseline"),translate:L.this("translate"),positionOffset:L.prop("positionOffset")},primitive:"points",viewport:L.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -3565,10 +3565,10 @@ void main() { fragWidth = 1. / gl_PointSize; } `]),_&&($.frag=$.frag.replace("smoothstep","smoothStep"),z.frag=z.frag.replace("smoothstep","smoothStep")),this.drawCircle=T($)}R.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},R.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},R.prototype.draw=function(){for(var T=this,E=arguments.length,C=new Array(E),L=0;LHe)?ze.tree=p(Ie,{bounds:Le}):He&&He.length&&(ze.tree=He),ze.tree){var We={primitive:"points",usage:"static",data:ze.tree,type:"uint32"};ze.elements?ze.elements(We):ze.elements=I.elements(We)}var Ue=S.float32(Ie);return Ve({data:Ue,usage:"dynamic"}),$e({data:S.fract32(Ie,Ue),usage:"dynamic"}),Oe({data:new Uint8Array(ke),type:"uint8",usage:"stream"}),Ie}},{marker:function(Ie,ze,De){var He=ze.activation;if(He.forEach(function(Ue){return Ue&&Ue.destroy&&Ue.destroy()}),He.length=0,Ie&&typeof Ie[0]!="number"){for(var Ve=[],$e=0,Oe=Math.min(Ie.length,ze.count);$e=0)return k;if(T instanceof Uint8Array||T instanceof Uint8ClampedArray)E=T;else{E=new Uint8Array(T.length);for(var I=0,z=T.length;I4*L&&(this.tooManyColors=!0),this.updatePalette(C),D.length===1?D[0]:D},R.prototype.updatePalette=function(T){if(!this.tooManyColors){var E=this.maxColors,C=this.paletteTexture,L=Math.ceil(.25*T.length/E);if(L>1)for(var D=.25*(T=T.slice()).length%E;D2?(T[0],T[2],A=T[1],x=T[3]):T.length?(A=T[0],x=T[1]):(T.x,A=T.y,T.x,T.width,x=T.y+T.height),E.length>2?(R=E[0],M=E[2],E[1],E[3]):E.length?(R=E[0],M=E[1]):(R=E.x,E.y,M=E.x+E.width,E.y,E.height),[R,A,M,x]}function m(v){if(typeof v=="number")return[v,v,v,v];if(v.length===2)return[v[0],v[1],v[0],v[1]];var _=y(v);return[_.x,_.y,_.x+_.width,_.y+_.height]}d.exports=a,a.prototype.render=function(){for(var v,_=this,S=[],A=arguments.length;A--;)S[A]=arguments[A];return S.length&&(v=this).update.apply(v,S),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=O(function(){_.draw(),_.dirty=!0,_.planned=null})):(this.draw(),this.dirty=!0,O(function(){_.dirty=!1})),this)},a.prototype.update=function(){for(var v,_=[],S=arguments.length;S--;)_[S]=arguments[S];if(_.length){for(var A=0;A<_.length;A++)this.updateItem(A,_[A]);this.traces=this.traces.filter(Boolean);for(var x=[],R=0,M=0;Mj))&&(R.lower||!(Q"u"?1:window.devicePixelRatio,Xt=!1,Yt={},Qt=function(tn){},Pt=function(){};if(typeof at=="string"?yt=document.querySelector(at):typeof at=="object"&&(typeof at.nodeName=="string"&&typeof at.appendChild=="function"&&typeof at.getBoundingClientRect=="function"?yt=at:typeof at.drawArrays=="function"||typeof at.drawElements=="function"?Rt=(it=at).canvas:("gl"in at?it=at.gl:"canvas"in at?Rt=i(at.canvas):"container"in at&&(zt=i(at.container)),"attributes"in at&&(lt=at.attributes),"extensions"in at&&(Lt=b(at.extensions)),"optionalExtensions"in at&&(xt=b(at.optionalExtensions)),"onDone"in at&&(Qt=at.onDone),"profile"in at&&(Xt=!!at.profile),"pixelRatio"in at&&(Ht=+at.pixelRatio),"cachedCode"in at&&(Yt=at.cachedCode))),yt&&(yt.nodeName.toLowerCase()==="canvas"?Rt=yt:zt=yt),!it){if(!Rt){if(!(yt=function(tn,Kt,fn){function dn(){var er=window.innerWidth,En=window.innerHeight;tn!==document.body&&(er=(En=Nn.getBoundingClientRect()).right-En.left,En=En.bottom-En.top),Nn.width=fn*er,Nn.height=fn*En}var vn,Nn=document.createElement("canvas");return de(Nn.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),tn.appendChild(Nn),tn===document.body&&(Nn.style.position="absolute",de(tn.style,{margin:0,padding:0})),tn!==document.body&&typeof ResizeObserver=="function"?(vn=new ResizeObserver(function(){setTimeout(dn)})).observe(tn):window.addEventListener("resize",dn,!1),dn(),{canvas:Nn,onDestroy:function(){vn?vn.disconnect():window.removeEventListener("resize",dn),tn.removeChild(Nn)}}}(zt||document.body,0,Ht)))return null;Rt=yt.canvas,Pt=yt.onDestroy}lt.premultipliedAlpha===void 0&&(lt.premultipliedAlpha=!0),it=function(tn,Kt){function fn(dn){try{return tn.getContext(dn,Kt)}catch{return null}}return fn("webgl")||fn("experimental-webgl")||fn("webgl-experimental")}(Rt,lt)}return it?{gl:it,canvas:Rt,container:zt,extensions:Lt,optionalExtensions:xt,pixelRatio:Ht,profile:Xt,cachedCode:Yt,onDone:Qt,onDestroy:Pt}:(Pt(),Qt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function w(lt,yt){for(var zt=Array(lt),Rt=0;Rt>>=yt))<<3,(yt|=zt=(15<(lt>>>=zt))<<2)|(zt=(3<(lt>>>=zt))<<1)|lt>>>zt>>1}function p(){function lt(Rt){e:{for(var it=16;268435456>=it;it*=16)if(Rt<=it){Rt=it;break e}Rt=0}return 0<(it=zt[y(Rt)>>2]).length?it.pop():new ArrayBuffer(Rt)}function yt(Rt){zt[y(Rt.byteLength)>>2].push(Rt)}var zt=w(8,function(){return[]});return{alloc:lt,free:yt,allocType:function(Rt,it){var at=null;switch(Rt){case 5120:at=new Int8Array(lt(it),0,it);break;case 5121:at=new Uint8Array(lt(it),0,it);break;case 5122:at=new Int16Array(lt(2*it),0,it);break;case 5123:at=new Uint16Array(lt(2*it),0,it);break;case 5124:at=new Int32Array(lt(4*it),0,it);break;case 5125:at=new Uint32Array(lt(4*it),0,it);break;case 5126:at=new Float32Array(lt(4*it),0,it);break;default:return null}return at.length!==it?at.subarray(0,it):at},freeType:function(Rt){yt(Rt.buffer)}}}function a(lt){return!!lt&&typeof lt=="object"&&Array.isArray(lt.shape)&&Array.isArray(lt.stride)&&typeof lt.offset=="number"&<.shape.length===lt.stride.length&&(Array.isArray(lt.data)||Ie(lt.data))}function u(lt,yt,zt,Rt,it,at){for(var Lt=0;Lt(Pt=fn)&&(Pt=Qt.buffer.byteLength,Nn===5123?Pt>>=1:Nn===5125&&(Pt>>=2)),Qt.vertCount=Pt,Pt=Kt,0>Kt&&(Pt=4,(Kt=Qt.buffer.dimension)===1&&(Pt=0),Kt===2&&(Pt=1),Kt===3&&(Pt=4)),Qt.primType=Pt}function Lt(Qt){Rt.elementsCount--,delete xt[Qt.id],Qt.buffer.destroy(),Qt.buffer=null}var xt={},Ht=0,Xt={uint8:5121,uint16:5123};yt.oes_element_index_uint&&(Xt.uint32=5125),it.prototype.bind=function(){this.buffer.bind()};var Yt=[];return{create:function(Qt,Pt){function tn(dn){if(dn)if(typeof dn=="number")Kt(dn),fn.primType=4,fn.vertCount=0|dn,fn.type=5121;else{var vn=null,Nn=35044,er=-1,En=-1,In=0,Un=0;Array.isArray(dn)||Ie(dn)||a(dn)?vn=dn:("data"in dn&&(vn=dn.data),"usage"in dn&&(Nn=$e[dn.usage]),"primitive"in dn&&(er=We[dn.primitive]),"count"in dn&&(En=0|dn.count),"type"in dn&&(Un=Xt[dn.type]),"length"in dn?In=0|dn.length:(In=En,Un===5123||Un===5122?In*=2:Un!==5125&&Un!==5124||(In*=4))),at(fn,vn,Nn,er,En,In,Un)}else Kt(),fn.primType=4,fn.vertCount=0,fn.type=5121;return tn}var Kt=zt.create(null,34963,!0),fn=new it(Kt._buffer);return Rt.elementsCount++,tn(Qt),tn._reglType="elements",tn._elements=fn,tn.subdata=function(dn,vn){return Kt.subdata(dn,vn),tn},tn.destroy=function(){Lt(fn)},tn},createStream:function(Qt){var Pt=Yt.pop();return Pt||(Pt=new it(zt.create(null,34963,!0,!1)._buffer)),at(Pt,Qt,35040,-1,-1,0,0),Pt},destroyStream:function(Qt){Yt.push(Qt)},getElements:function(Qt){return typeof Qt=="function"&&Qt._elements instanceof it?Qt._elements:null},clear:function(){ze(xt).forEach(Lt)}}}function x(lt){for(var yt=Te.allocType(5123,lt.length),zt=0;zt>>31<<15,it=(at<<1>>>24)-127,at=at>>13&1023;yt[zt]=-24>it?Rt:-14>it?Rt+(at+1024>>-14-it):15>=Zn,hn.height>>=Zn,Pt(hn,zn[Zn]),Bn.mipmask|=1<hr;++hr)Bn.images[hr]=null;return Bn}function In(Bn){for(var hr=Bn.images,hn=0;hnBn){for(var hr=0;hr=--this.refCount&&Wn(this)}}),Lt.profile&&(at.getTotalTextureSize=function(){var Bn=0;return Object.keys(Qr).forEach(function(hr){Bn+=Qr[hr].stats.size}),Bn}),{create2D:function(Bn,hr){function hn(Zn,yr){var gr=zn.texInfo;Un.call(gr);var vr=En();return typeof Zn=="number"?vn(vr,0|Zn,typeof yr=="number"?0|yr:0|Zn):Zn?(xr(gr,Zn),Nn(vr,Zn)):vn(vr,1,1),gr.genMipmaps&&(vr.mipmask=(vr.width<<1)-1),zn.mipmask=vr.mipmask,Ht(zn,vr),zn.internalformat=vr.internalformat,hn.width=vr.width,hn.height=vr.height,Fn(zn),er(vr,3553),Sr(gr,3553),ir(),In(vr),Lt.profile&&(zn.stats.size=k(zn.internalformat,zn.type,vr.width,vr.height,gr.genMipmaps,!1)),hn.format=So[zn.internalformat],hn.type=go[zn.type],hn.mag=li[gr.magFilter],hn.min=Pn[gr.minFilter],hn.wrapS=Yn[gr.wrapS],hn.wrapT=Yn[gr.wrapT],hn}var zn=new ar(3553);return Qr[zn.id]=zn,at.textureCount++,hn(Bn,hr),hn.subimage=function(Zn,yr,gr,vr){yr|=0,gr|=0,vr|=0;var nr=Kt();return Ht(nr,zn),nr.width=0,nr.height=0,Pt(nr,Zn),nr.width=nr.width||(zn.width>>vr)-yr,nr.height=nr.height||(zn.height>>vr)-gr,Fn(zn),tn(nr,3553,yr,gr,vr),ir(),fn(nr),hn},hn.resize=function(Zn,yr){var gr=0|Zn,vr=0|yr||gr;if(gr===zn.width&&vr===zn.height)return hn;hn.width=zn.width=gr,hn.height=zn.height=vr,Fn(zn);for(var nr=0;zn.mipmask>>nr;++nr){var Qn=gr>>nr,Hn=vr>>nr;if(!Qn||!Hn)break;lt.texImage2D(3553,nr,zn.format,Qn,Hn,0,zn.format,zn.type,null)}return ir(),Lt.profile&&(zn.stats.size=k(zn.internalformat,zn.type,gr,vr,!1,!1)),hn},hn._reglType="texture2d",hn._texture=zn,Lt.profile&&(hn.stats=zn.stats),hn.destroy=function(){zn.decRef()},hn},createCube:function(Bn,hr,hn,zn,Zn,yr){function gr(Qn,Hn,tr,cr,Lr,Er){var Vr,to=vr.texInfo;for(Un.call(to),Vr=0;6>Vr;++Vr)nr[Vr]=En();if(typeof Qn!="number"&&Qn){if(typeof Qn=="object")if(Hn)Nn(nr[0],Qn),Nn(nr[1],Hn),Nn(nr[2],tr),Nn(nr[3],cr),Nn(nr[4],Lr),Nn(nr[5],Er);else if(xr(to,Qn),Xt(vr,Qn),"faces"in Qn)for(Qn=Qn.faces,Vr=0;6>Vr;++Vr)Ht(nr[Vr],vr),Nn(nr[Vr],Qn[Vr]);else for(Vr=0;6>Vr;++Vr)Nn(nr[Vr],Qn)}else for(Qn=0|Qn||1,Vr=0;6>Vr;++Vr)vn(nr[Vr],Qn,Qn);for(Ht(vr,nr[0]),vr.mipmask=to.genMipmaps?(nr[0].width<<1)-1:nr[0].mipmask,vr.internalformat=nr[0].internalformat,gr.width=nr[0].width,gr.height=nr[0].height,Fn(vr),Vr=0;6>Vr;++Vr)er(nr[Vr],34069+Vr);for(Sr(to,34067),ir(),Lt.profile&&(vr.stats.size=k(vr.internalformat,vr.type,gr.width,gr.height,to.genMipmaps,!0)),gr.format=So[vr.internalformat],gr.type=go[vr.type],gr.mag=li[to.magFilter],gr.min=Pn[to.minFilter],gr.wrapS=Yn[to.wrapS],gr.wrapT=Yn[to.wrapT],Vr=0;6>Vr;++Vr)In(nr[Vr]);return gr}var vr=new ar(34067);Qr[vr.id]=vr,at.cubeCount++;var nr=Array(6);return gr(Bn,hr,hn,zn,Zn,yr),gr.subimage=function(Qn,Hn,tr,cr,Lr){tr|=0,cr|=0,Lr|=0;var Er=Kt();return Ht(Er,vr),Er.width=0,Er.height=0,Pt(Er,Hn),Er.width=Er.width||(vr.width>>Lr)-tr,Er.height=Er.height||(vr.height>>Lr)-cr,Fn(vr),tn(Er,34069+Qn,tr,cr,Lr),ir(),fn(Er),gr},gr.resize=function(Qn){if((Qn|=0)!==vr.width){gr.width=vr.width=Qn,gr.height=vr.height=Qn,Fn(vr);for(var Hn=0;6>Hn;++Hn)for(var tr=0;vr.mipmask>>tr;++tr)lt.texImage2D(34069+Hn,tr,vr.format,Qn>>tr,Qn>>tr,0,vr.format,vr.type,null);return ir(),Lt.profile&&(vr.stats.size=k(vr.internalformat,vr.type,gr.width,gr.height,!1,!0)),gr}},gr._reglType="textureCube",gr._texture=vr,Lt.profile&&(gr.stats=vr.stats),gr.destroy=function(){vr.decRef()},gr},clear:function(){for(var Bn=0;Bnzn;++zn)if(hn.mipmask&1<>zn,hn.height>>zn,0,hn.internalformat,hn.type,null);else for(var Zn=0;6>Zn;++Zn)lt.texImage2D(34069+Zn,zn,hn.internalformat,hn.width>>zn,hn.height>>zn,0,hn.internalformat,hn.type,null);Sr(hn.texInfo,hn.target)})},refresh:function(){for(var Bn=0;BnKn;++Kn){for(Rr=0;RrWn;++Wn)ir[Wn].resize(Kn);return Fn.width=Fn.height=Kn,Fn},_reglType:"framebufferCube",destroy:function(){ir.forEach(function(Wn){Wn.destroy()})}})},clear:function(){ze(Sr).forEach(dn)},restore:function(){er.cur=null,er.next=null,er.dirty=!0,ze(Sr).forEach(function(ar){ar.framebuffer=lt.createFramebuffer(),vn(ar)})}})}function $(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function Q(lt,yt,zt,Rt,it,at,Lt){function xt(){this.id=++Yt,this.attributes=[],this.elements=null,this.ownsElements=!1,this.offset=this.count=0,this.instances=-1,this.primitive=4;var tn=yt.oes_vertex_array_object;this.vao=tn?tn.createVertexArrayOES():null,Qt[this.id]=this,this.buffers=[]}var Ht=zt.maxAttributes,Xt=Array(Ht);for(zt=0;zt=xr.byteLength?En.subdata(xr):(En.destroy(),fn.buffers[er]=null)),fn.buffers[er]||(En=fn.buffers[er]=it.create(In,34962,!1,!0)),Un.buffer=it.getBuffer(En),Un.size=0|Un.buffer.dimension,Un.normalized=!1,Un.type=Un.buffer.dtype,Un.offset=0,Un.stride=0,Un.divisor=0,Un.state=1,dn[er]=1):it.getBuffer(In)?(Un.buffer=it.getBuffer(In),Un.size=0|Un.buffer.dimension,Un.normalized=!1,Un.type=Un.buffer.dtype,Un.offset=0,Un.stride=0,Un.divisor=0,Un.state=1):it.getBuffer(In.buffer)?(Un.buffer=it.getBuffer(In.buffer),Un.size=0|(+In.size||Un.buffer.dimension),Un.normalized=!!In.normalized||!1,Un.type="type"in In?Ve[In.type]:Un.buffer.dtype,Un.offset=0|(In.offset||0),Un.stride=0|(In.stride||0),Un.divisor=0|(In.divisor||0),Un.state=1):"x"in In&&(Un.x=+In.x||0,Un.y=+In.y||0,Un.z=+In.z||0,Un.w=+In.w||0,Un.state=2)}for(En=0;EnKt&&(Kt=fn.stats.uniformsCount)}),Kt},zt.getMaxAttributesCount=function(){var Kt=0;return Pt.forEach(function(fn){fn.stats.attributesCount>Kt&&(Kt=fn.stats.attributesCount)}),Kt}),{clear:function(){var Kt=lt.deleteShader.bind(lt);ze(Xt).forEach(Kt),Xt={},ze(Yt).forEach(Kt),Yt={},Pt.forEach(function(fn){lt.deleteProgram(fn.program)}),Pt.length=0,Qt={},zt.shaderCount=0},program:function(Kt,fn,dn,vn){var Nn=Qt[fn];Nn||(Nn=Qt[fn]={});var er=Nn[Kt];if(er&&(er.refCount++,!vn))return er;var En=new xt(fn,Kt);return zt.shaderCount++,Ht(En,dn,vn),er||(Nn[Kt]=En),Pt.push(En),de(En,{destroy:function(){if(En.refCount--,0>=En.refCount){lt.deleteProgram(En.program);var In=Pt.indexOf(En);Pt.splice(In,1),zt.shaderCount--}0>=Nn[En.vertId].refCount&&(lt.deleteShader(Yt[En.vertId]),delete Yt[En.vertId],delete Qt[En.fragId][En.vertId]),Object.keys(Qt[En.fragId]).length||(lt.deleteShader(Xt[En.fragId]),delete Xt[En.fragId],delete Qt[En.fragId])}})},restore:function(){Xt={},Yt={};for(var Kt=0;Kt>>yt|lt<<32-yt}function te(lt,yt){var zt=(65535<)+(65535&yt);return(lt>>16)+(yt>>16)+(zt>>16)<<16|65535&zt}function W(lt){return Array.prototype.slice.call(lt)}function K(lt){return W(lt).join("")}function oe(lt){function yt(){var Yt=[],Qt=[];return de(function(){Yt.push.apply(Yt,W(arguments))},{def:function(){var Pt="v"+it++;return Qt.push(Pt),0He)?ze.tree=p(Ie,{bounds:Le}):He&&He.length&&(ze.tree=He),ze.tree){var We={primitive:"points",usage:"static",data:ze.tree,type:"uint32"};ze.elements?ze.elements(We):ze.elements=I.elements(We)}var Ue=S.float32(Ie);return Ve({data:Ue,usage:"dynamic"}),$e({data:S.fract32(Ie,Ue),usage:"dynamic"}),Oe({data:new Uint8Array(ke),type:"uint8",usage:"stream"}),Ie}},{marker:function(Ie,ze,De){var He=ze.activation;if(He.forEach(function(Ue){return Ue&&Ue.destroy&&Ue.destroy()}),He.length=0,Ie&&typeof Ie[0]!="number"){for(var Ve=[],$e=0,Oe=Math.min(Ie.length,ze.count);$e=0)return k;if(T instanceof Uint8Array||T instanceof Uint8ClampedArray)E=T;else{E=new Uint8Array(T.length);for(var I=0,z=T.length;I4*L&&(this.tooManyColors=!0),this.updatePalette(C),D.length===1?D[0]:D},R.prototype.updatePalette=function(T){if(!this.tooManyColors){var E=this.maxColors,C=this.paletteTexture,L=Math.ceil(.25*T.length/E);if(L>1)for(var D=.25*(T=T.slice()).length%E;D2?(T[0],T[2],A=T[1],x=T[3]):T.length?(A=T[0],x=T[1]):(T.x,A=T.y,T.x,T.width,x=T.y+T.height),E.length>2?(R=E[0],M=E[2],E[1],E[3]):E.length?(R=E[0],M=E[1]):(R=E.x,E.y,M=E.x+E.width,E.y,E.height),[R,A,M,x]}function m(v){if(typeof v=="number")return[v,v,v,v];if(v.length===2)return[v[0],v[1],v[0],v[1]];var _=y(v);return[_.x,_.y,_.x+_.width,_.y+_.height]}d.exports=a,a.prototype.render=function(){for(var v,_=this,S=[],A=arguments.length;A--;)S[A]=arguments[A];return S.length&&(v=this).update.apply(v,S),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=O(function(){_.draw(),_.dirty=!0,_.planned=null})):(this.draw(),this.dirty=!0,O(function(){_.dirty=!1})),this)},a.prototype.update=function(){for(var v,_=[],S=arguments.length;S--;)_[S]=arguments[S];if(_.length){for(var A=0;A<_.length;A++)this.updateItem(A,_[A]);this.traces=this.traces.filter(Boolean);for(var x=[],R=0,M=0;Mj))&&(R.lower||!(Q"u"?1:window.devicePixelRatio,Xt=!1,Yt={},Qt=function(tn){},Pt=function(){};if(typeof at=="string"?yt=document.querySelector(at):typeof at=="object"&&(typeof at.nodeName=="string"&&typeof at.appendChild=="function"&&typeof at.getBoundingClientRect=="function"?yt=at:typeof at.drawArrays=="function"||typeof at.drawElements=="function"?Rt=(it=at).canvas:("gl"in at?it=at.gl:"canvas"in at?Rt=i(at.canvas):"container"in at&&(zt=i(at.container)),"attributes"in at&&(lt=at.attributes),"extensions"in at&&(Lt=b(at.extensions)),"optionalExtensions"in at&&(xt=b(at.optionalExtensions)),"onDone"in at&&(Qt=at.onDone),"profile"in at&&(Xt=!!at.profile),"pixelRatio"in at&&(Zt=+at.pixelRatio),"cachedCode"in at&&(Yt=at.cachedCode))),yt&&(yt.nodeName.toLowerCase()==="canvas"?Rt=yt:zt=yt),!it){if(!Rt){if(!(yt=function(tn,Kt,fn){function dn(){var er=window.innerWidth,En=window.innerHeight;tn!==document.body&&(er=(En=Nn.getBoundingClientRect()).right-En.left,En=En.bottom-En.top),Nn.width=fn*er,Nn.height=fn*En}var vn,Nn=document.createElement("canvas");return de(Nn.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),tn.appendChild(Nn),tn===document.body&&(Nn.style.position="absolute",de(tn.style,{margin:0,padding:0})),tn!==document.body&&typeof ResizeObserver=="function"?(vn=new ResizeObserver(function(){setTimeout(dn)})).observe(tn):window.addEventListener("resize",dn,!1),dn(),{canvas:Nn,onDestroy:function(){vn?vn.disconnect():window.removeEventListener("resize",dn),tn.removeChild(Nn)}}}(zt||document.body,0,Zt)))return null;Rt=yt.canvas,Pt=yt.onDestroy}lt.premultipliedAlpha===void 0&&(lt.premultipliedAlpha=!0),it=function(tn,Kt){function fn(dn){try{return tn.getContext(dn,Kt)}catch{return null}}return fn("webgl")||fn("experimental-webgl")||fn("webgl-experimental")}(Rt,lt)}return it?{gl:it,canvas:Rt,container:zt,extensions:Lt,optionalExtensions:xt,pixelRatio:Zt,profile:Xt,cachedCode:Yt,onDone:Qt,onDestroy:Pt}:(Pt(),Qt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function w(lt,yt){for(var zt=Array(lt),Rt=0;Rt>>=yt))<<3,(yt|=zt=(15<(lt>>>=zt))<<2)|(zt=(3<(lt>>>=zt))<<1)|lt>>>zt>>1}function p(){function lt(Rt){e:{for(var it=16;268435456>=it;it*=16)if(Rt<=it){Rt=it;break e}Rt=0}return 0<(it=zt[y(Rt)>>2]).length?it.pop():new ArrayBuffer(Rt)}function yt(Rt){zt[y(Rt.byteLength)>>2].push(Rt)}var zt=w(8,function(){return[]});return{alloc:lt,free:yt,allocType:function(Rt,it){var at=null;switch(Rt){case 5120:at=new Int8Array(lt(it),0,it);break;case 5121:at=new Uint8Array(lt(it),0,it);break;case 5122:at=new Int16Array(lt(2*it),0,it);break;case 5123:at=new Uint16Array(lt(2*it),0,it);break;case 5124:at=new Int32Array(lt(4*it),0,it);break;case 5125:at=new Uint32Array(lt(4*it),0,it);break;case 5126:at=new Float32Array(lt(4*it),0,it);break;default:return null}return at.length!==it?at.subarray(0,it):at},freeType:function(Rt){yt(Rt.buffer)}}}function a(lt){return!!lt&&typeof lt=="object"&&Array.isArray(lt.shape)&&Array.isArray(lt.stride)&&typeof lt.offset=="number"&<.shape.length===lt.stride.length&&(Array.isArray(lt.data)||Ie(lt.data))}function u(lt,yt,zt,Rt,it,at){for(var Lt=0;Lt(Pt=fn)&&(Pt=Qt.buffer.byteLength,Nn===5123?Pt>>=1:Nn===5125&&(Pt>>=2)),Qt.vertCount=Pt,Pt=Kt,0>Kt&&(Pt=4,(Kt=Qt.buffer.dimension)===1&&(Pt=0),Kt===2&&(Pt=1),Kt===3&&(Pt=4)),Qt.primType=Pt}function Lt(Qt){Rt.elementsCount--,delete xt[Qt.id],Qt.buffer.destroy(),Qt.buffer=null}var xt={},Zt=0,Xt={uint8:5121,uint16:5123};yt.oes_element_index_uint&&(Xt.uint32=5125),it.prototype.bind=function(){this.buffer.bind()};var Yt=[];return{create:function(Qt,Pt){function tn(dn){if(dn)if(typeof dn=="number")Kt(dn),fn.primType=4,fn.vertCount=0|dn,fn.type=5121;else{var vn=null,Nn=35044,er=-1,En=-1,In=0,jn=0;Array.isArray(dn)||Ie(dn)||a(dn)?vn=dn:("data"in dn&&(vn=dn.data),"usage"in dn&&(Nn=$e[dn.usage]),"primitive"in dn&&(er=We[dn.primitive]),"count"in dn&&(En=0|dn.count),"type"in dn&&(jn=Xt[dn.type]),"length"in dn?In=0|dn.length:(In=En,jn===5123||jn===5122?In*=2:jn!==5125&&jn!==5124||(In*=4))),at(fn,vn,Nn,er,En,In,jn)}else Kt(),fn.primType=4,fn.vertCount=0,fn.type=5121;return tn}var Kt=zt.create(null,34963,!0),fn=new it(Kt._buffer);return Rt.elementsCount++,tn(Qt),tn._reglType="elements",tn._elements=fn,tn.subdata=function(dn,vn){return Kt.subdata(dn,vn),tn},tn.destroy=function(){Lt(fn)},tn},createStream:function(Qt){var Pt=Yt.pop();return Pt||(Pt=new it(zt.create(null,34963,!0,!1)._buffer)),at(Pt,Qt,35040,-1,-1,0,0),Pt},destroyStream:function(Qt){Yt.push(Qt)},getElements:function(Qt){return typeof Qt=="function"&&Qt._elements instanceof it?Qt._elements:null},clear:function(){ze(xt).forEach(Lt)}}}function x(lt){for(var yt=Te.allocType(5123,lt.length),zt=0;zt>>31<<15,it=(at<<1>>>24)-127,at=at>>13&1023;yt[zt]=-24>it?Rt:-14>it?Rt+(at+1024>>-14-it):15>=Zn,hn.height>>=Zn,Pt(hn,zn[Zn]),Bn.mipmask|=1<hr;++hr)Bn.images[hr]=null;return Bn}function In(Bn){for(var hr=Bn.images,hn=0;hnBn){for(var hr=0;hr=--this.refCount&&Wn(this)}}),Lt.profile&&(at.getTotalTextureSize=function(){var Bn=0;return Object.keys(Qr).forEach(function(hr){Bn+=Qr[hr].stats.size}),Bn}),{create2D:function(Bn,hr){function hn(Zn,yr){var gr=zn.texInfo;jn.call(gr);var vr=En();return typeof Zn=="number"?vn(vr,0|Zn,typeof yr=="number"?0|yr:0|Zn):Zn?(xr(gr,Zn),Nn(vr,Zn)):vn(vr,1,1),gr.genMipmaps&&(vr.mipmask=(vr.width<<1)-1),zn.mipmask=vr.mipmask,Zt(zn,vr),zn.internalformat=vr.internalformat,hn.width=vr.width,hn.height=vr.height,Fn(zn),er(vr,3553),Sr(gr,3553),ir(),In(vr),Lt.profile&&(zn.stats.size=k(zn.internalformat,zn.type,vr.width,vr.height,gr.genMipmaps,!1)),hn.format=So[zn.internalformat],hn.type=go[zn.type],hn.mag=li[gr.magFilter],hn.min=Pn[gr.minFilter],hn.wrapS=Yn[gr.wrapS],hn.wrapT=Yn[gr.wrapT],hn}var zn=new ar(3553);return Qr[zn.id]=zn,at.textureCount++,hn(Bn,hr),hn.subimage=function(Zn,yr,gr,vr){yr|=0,gr|=0,vr|=0;var nr=Kt();return Zt(nr,zn),nr.width=0,nr.height=0,Pt(nr,Zn),nr.width=nr.width||(zn.width>>vr)-yr,nr.height=nr.height||(zn.height>>vr)-gr,Fn(zn),tn(nr,3553,yr,gr,vr),ir(),fn(nr),hn},hn.resize=function(Zn,yr){var gr=0|Zn,vr=0|yr||gr;if(gr===zn.width&&vr===zn.height)return hn;hn.width=zn.width=gr,hn.height=zn.height=vr,Fn(zn);for(var nr=0;zn.mipmask>>nr;++nr){var Qn=gr>>nr,Hn=vr>>nr;if(!Qn||!Hn)break;lt.texImage2D(3553,nr,zn.format,Qn,Hn,0,zn.format,zn.type,null)}return ir(),Lt.profile&&(zn.stats.size=k(zn.internalformat,zn.type,gr,vr,!1,!1)),hn},hn._reglType="texture2d",hn._texture=zn,Lt.profile&&(hn.stats=zn.stats),hn.destroy=function(){zn.decRef()},hn},createCube:function(Bn,hr,hn,zn,Zn,yr){function gr(Qn,Hn,tr,cr,Lr,Er){var Vr,to=vr.texInfo;for(jn.call(to),Vr=0;6>Vr;++Vr)nr[Vr]=En();if(typeof Qn!="number"&&Qn){if(typeof Qn=="object")if(Hn)Nn(nr[0],Qn),Nn(nr[1],Hn),Nn(nr[2],tr),Nn(nr[3],cr),Nn(nr[4],Lr),Nn(nr[5],Er);else if(xr(to,Qn),Xt(vr,Qn),"faces"in Qn)for(Qn=Qn.faces,Vr=0;6>Vr;++Vr)Zt(nr[Vr],vr),Nn(nr[Vr],Qn[Vr]);else for(Vr=0;6>Vr;++Vr)Nn(nr[Vr],Qn)}else for(Qn=0|Qn||1,Vr=0;6>Vr;++Vr)vn(nr[Vr],Qn,Qn);for(Zt(vr,nr[0]),vr.mipmask=to.genMipmaps?(nr[0].width<<1)-1:nr[0].mipmask,vr.internalformat=nr[0].internalformat,gr.width=nr[0].width,gr.height=nr[0].height,Fn(vr),Vr=0;6>Vr;++Vr)er(nr[Vr],34069+Vr);for(Sr(to,34067),ir(),Lt.profile&&(vr.stats.size=k(vr.internalformat,vr.type,gr.width,gr.height,to.genMipmaps,!0)),gr.format=So[vr.internalformat],gr.type=go[vr.type],gr.mag=li[to.magFilter],gr.min=Pn[to.minFilter],gr.wrapS=Yn[to.wrapS],gr.wrapT=Yn[to.wrapT],Vr=0;6>Vr;++Vr)In(nr[Vr]);return gr}var vr=new ar(34067);Qr[vr.id]=vr,at.cubeCount++;var nr=Array(6);return gr(Bn,hr,hn,zn,Zn,yr),gr.subimage=function(Qn,Hn,tr,cr,Lr){tr|=0,cr|=0,Lr|=0;var Er=Kt();return Zt(Er,vr),Er.width=0,Er.height=0,Pt(Er,Hn),Er.width=Er.width||(vr.width>>Lr)-tr,Er.height=Er.height||(vr.height>>Lr)-cr,Fn(vr),tn(Er,34069+Qn,tr,cr,Lr),ir(),fn(Er),gr},gr.resize=function(Qn){if((Qn|=0)!==vr.width){gr.width=vr.width=Qn,gr.height=vr.height=Qn,Fn(vr);for(var Hn=0;6>Hn;++Hn)for(var tr=0;vr.mipmask>>tr;++tr)lt.texImage2D(34069+Hn,tr,vr.format,Qn>>tr,Qn>>tr,0,vr.format,vr.type,null);return ir(),Lt.profile&&(vr.stats.size=k(vr.internalformat,vr.type,gr.width,gr.height,!1,!0)),gr}},gr._reglType="textureCube",gr._texture=vr,Lt.profile&&(gr.stats=vr.stats),gr.destroy=function(){vr.decRef()},gr},clear:function(){for(var Bn=0;Bnzn;++zn)if(hn.mipmask&1<>zn,hn.height>>zn,0,hn.internalformat,hn.type,null);else for(var Zn=0;6>Zn;++Zn)lt.texImage2D(34069+Zn,zn,hn.internalformat,hn.width>>zn,hn.height>>zn,0,hn.internalformat,hn.type,null);Sr(hn.texInfo,hn.target)})},refresh:function(){for(var Bn=0;BnKn;++Kn){for(Rr=0;RrWn;++Wn)ir[Wn].resize(Kn);return Fn.width=Fn.height=Kn,Fn},_reglType:"framebufferCube",destroy:function(){ir.forEach(function(Wn){Wn.destroy()})}})},clear:function(){ze(Sr).forEach(dn)},restore:function(){er.cur=null,er.next=null,er.dirty=!0,ze(Sr).forEach(function(ar){ar.framebuffer=lt.createFramebuffer(),vn(ar)})}})}function $(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function Q(lt,yt,zt,Rt,it,at,Lt){function xt(){this.id=++Yt,this.attributes=[],this.elements=null,this.ownsElements=!1,this.offset=this.count=0,this.instances=-1,this.primitive=4;var tn=yt.oes_vertex_array_object;this.vao=tn?tn.createVertexArrayOES():null,Qt[this.id]=this,this.buffers=[]}var Zt=zt.maxAttributes,Xt=Array(Zt);for(zt=0;zt=xr.byteLength?En.subdata(xr):(En.destroy(),fn.buffers[er]=null)),fn.buffers[er]||(En=fn.buffers[er]=it.create(In,34962,!1,!0)),jn.buffer=it.getBuffer(En),jn.size=0|jn.buffer.dimension,jn.normalized=!1,jn.type=jn.buffer.dtype,jn.offset=0,jn.stride=0,jn.divisor=0,jn.state=1,dn[er]=1):it.getBuffer(In)?(jn.buffer=it.getBuffer(In),jn.size=0|jn.buffer.dimension,jn.normalized=!1,jn.type=jn.buffer.dtype,jn.offset=0,jn.stride=0,jn.divisor=0,jn.state=1):it.getBuffer(In.buffer)?(jn.buffer=it.getBuffer(In.buffer),jn.size=0|(+In.size||jn.buffer.dimension),jn.normalized=!!In.normalized||!1,jn.type="type"in In?Ve[In.type]:jn.buffer.dtype,jn.offset=0|(In.offset||0),jn.stride=0|(In.stride||0),jn.divisor=0|(In.divisor||0),jn.state=1):"x"in In&&(jn.x=+In.x||0,jn.y=+In.y||0,jn.z=+In.z||0,jn.w=+In.w||0,jn.state=2)}for(En=0;EnKt&&(Kt=fn.stats.uniformsCount)}),Kt},zt.getMaxAttributesCount=function(){var Kt=0;return Pt.forEach(function(fn){fn.stats.attributesCount>Kt&&(Kt=fn.stats.attributesCount)}),Kt}),{clear:function(){var Kt=lt.deleteShader.bind(lt);ze(Xt).forEach(Kt),Xt={},ze(Yt).forEach(Kt),Yt={},Pt.forEach(function(fn){lt.deleteProgram(fn.program)}),Pt.length=0,Qt={},zt.shaderCount=0},program:function(Kt,fn,dn,vn){var Nn=Qt[fn];Nn||(Nn=Qt[fn]={});var er=Nn[Kt];if(er&&(er.refCount++,!vn))return er;var En=new xt(fn,Kt);return zt.shaderCount++,Zt(En,dn,vn),er||(Nn[Kt]=En),Pt.push(En),de(En,{destroy:function(){if(En.refCount--,0>=En.refCount){lt.deleteProgram(En.program);var In=Pt.indexOf(En);Pt.splice(In,1),zt.shaderCount--}0>=Nn[En.vertId].refCount&&(lt.deleteShader(Yt[En.vertId]),delete Yt[En.vertId],delete Qt[En.fragId][En.vertId]),Object.keys(Qt[En.fragId]).length||(lt.deleteShader(Xt[En.fragId]),delete Xt[En.fragId],delete Qt[En.fragId])}})},restore:function(){Xt={},Yt={};for(var Kt=0;Kt>>yt|lt<<32-yt}function te(lt,yt){var zt=(65535<)+(65535&yt);return(lt>>16)+(yt>>16)+(zt>>16)<<16|65535&zt}function W(lt){return Array.prototype.slice.call(lt)}function K(lt){return W(lt).join("")}function oe(lt){function yt(){var Yt=[],Qt=[];return de(function(){Yt.push.apply(Yt,W(arguments))},{def:function(){var Pt="v"+it++;return Qt.push(Pt),0>>4&15)+"0123456789abcdef".charAt(15&Kt);return fn}(function(tn){for(var Kt=Array(tn.length>>2),fn=0;fn>5]|=(255&tn.charCodeAt(fn/8))<<24-fn%32;var dn,vn,Nn,er,En,In,Un,xr,Sr,ar,Fn,ir=8*tn.length;for(tn=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],fn=Array(64),Kt[ir>>5]|=128<<24-ir%32,Kt[15+(ir+64>>9<<4)]=ir,xr=0;xrSr;Sr++){var Wn;16>Sr?fn[Sr]=Kt[Sr+xr]:(ar=Sr,Fn=te(Fn=X(Fn=fn[Sr-2],17)^X(Fn,19)^Fn>>>10,fn[Sr-7]),Wn=X(Wn=fn[Sr-15],7)^X(Wn,18)^Wn>>>3,fn[ar]=te(te(Fn,Wn),fn[Sr-16])),ar=te(te(te(te(Un,ar=X(ar=er,6)^X(ar,11)^X(ar,25)),er&En^~er&In),Ct[Sr]),fn[Sr]),Fn=te(Un=X(Un=ir,2)^X(Un,13)^X(Un,22),ir&dn^ir&vn^dn&vn),Un=In,In=En,En=er,er=te(Nn,ar),Nn=vn,vn=dn,dn=ir,ir=te(ar,Fn)}tn[0]=te(ir,tn[0]),tn[1]=te(dn,tn[1]),tn[2]=te(vn,tn[2]),tn[3]=te(Nn,tn[3]),tn[4]=te(er,tn[4]),tn[5]=te(En,tn[5]),tn[6]=te(In,tn[6]),tn[7]=te(Un,tn[7])}for(Kt="",fn=0;fn<32*tn.length;fn+=8)Kt+=String.fromCharCode(tn[fn>>5]>>>24-fn%32&255);return Kt}(function(tn){for(var Kt,fn,dn="",vn=-1;++vn=Kt&&56320<=fn&&57343>=fn&&(Kt=65536+((1023&Kt)<<10)+(1023&fn),vn++),127>=Kt?dn+=String.fromCharCode(Kt):2047>=Kt?dn+=String.fromCharCode(192|Kt>>>6&31,128|63&Kt):65535>=Kt?dn+=String.fromCharCode(224|Kt>>>12&15,128|Kt>>>6&63,128|63&Kt):2097151>=Kt&&(dn+=String.fromCharCode(240|Kt>>>18&7,128|Kt>>>12&63,128|Kt>>>6&63,128|63&Kt));return dn}(Pt))),Rt[Qt])?Rt[Qt].apply(null,Lt):(Pt=Function.apply(null,at.concat(Pt)),Rt&&(Rt[Qt]=Pt),Pt.apply(null,Lt))}}}function q(lt){return Array.isArray(lt)||Ie(lt)||a(lt)}function Y(lt){return lt.sort(function(yt,zt){return yt==="viewport"?-1:zt==="viewport"?1:yt"+co+"?"+cr+".constant["+co+"]:0;"}).join(""),"}}else{","if(",Vr,"(",cr,".buffer)){",fr,"=",Lr,".createStream(",34962,",",cr,".buffer);","}else{",fr,"=",Lr,".getBuffer(",cr,".buffer);","}",Eo,'="type" in ',cr,"?",Er.glTypes,"[",cr,".type]:",fr,".dtype;",to.normalized,"=!!",cr,".normalized;"),tr("size"),tr("offset"),tr("stride"),tr("divisor"),Hn("}}"),Hn.exit("if(",to.isStream,"){",Lr,".destroyStream(",fr,");","}"),to})}),gr}function Sr(hn,zn,Zn,yr,gr){function vr(_o){var fr=Qn[_o];fr&&(tr[_o]=fr)}var nr=function(_o,fr){if(typeof(Eo=_o.static).frag=="string"&&typeof Eo.vert=="string"){if(0"u"?"Date.now()":"performance.now()"}function nr(_o){_o(tr=zn.def(),"=",vr(),";"),typeof gr=="string"?_o(Er,".count+=",gr,";"):_o(Er,".count++;"),tn&&(yr?_o(cr=zn.def(),"=",to,".getNumPendingQueries();"):_o(to,".beginQuery(",Er,");"))}function Qn(_o){_o(Er,".cpuTime+=",vr(),"-",tr,";"),tn&&(yr?_o(to,".pushScopeStats(",cr,",",to,".getNumPendingQueries(),",Er,");"):_o(to,".endQuery();"))}function Hn(_o){var fr=zn.def(Vr,".profile");zn(Vr,".profile=",_o,";"),zn.exit(Vr,".profile=",fr,";")}var tr,cr,Lr=hn.shared,Er=hn.stats,Vr=Lr.current,to=Lr.timer;if(Zn=Zn.profile){if(me(Zn))return void(Zn.enable?(nr(zn),Qn(zn.exit),Hn("true")):Hn("false"));Hn(Zn=Zn.append(hn,zn))}else Zn=zn.def(Vr,".profile");nr(Lr=hn.block()),zn("if(",Zn,"){",Lr,"}"),Qn(hn=hn.block()),zn.exit("if(",Zn,"){",hn,"}")}function Ir(hn,zn,Zn,yr,gr){function vr(Qn,Hn,tr){function cr(){zn("if(!",to,".buffer){",Er,".enableVertexAttribArray(",Vr,");}");var ao,co=tr.type;ao=tr.size?zn.def(tr.size,"||",Hn):Hn,zn("if(",to,".type!==",co,"||",to,".size!==",ao,"||",Eo.map(function(Go){return to+"."+Go+"!=="+tr[Go]}).join("||"),"){",Er,".bindBuffer(",34962,",",_o,".buffer);",Er,".vertexAttribPointer(",[Vr,ao,co,tr.normalized,tr.stride,tr.offset],");",to,".type=",co,";",to,".size=",ao,";",Eo.map(function(Go){return to+"."+Go+"="+tr[Go]+";"}).join(""),"}"),Pn&&(co=tr.divisor,zn("if(",to,".divisor!==",co,"){",hn.instancing,".vertexAttribDivisorANGLE(",[Vr,co],");",to,".divisor=",co,";}"))}function Lr(){zn("if(",to,".buffer){",Er,".disableVertexAttribArray(",Vr,");",to,".buffer=null;","}if(",_t.map(function(ao,co){return to+"."+ao+"!=="+fr[co]}).join("||"),"){",Er,".vertexAttrib4f(",Vr,",",fr,");",_t.map(function(ao,co){return to+"."+ao+"="+fr[co]+";"}).join(""),"}")}var Er=nr.gl,Vr=zn.def(Qn,".location"),to=zn.def(nr.attributes,"[",Vr,"]");Qn=tr.state;var _o=tr.buffer,fr=[tr.x,tr.y,tr.z,tr.w],Eo=["buffer","normalized","offset","stride"];Qn===1?cr():Qn===2?Lr():(zn("if(",Qn,"===",1,"){"),cr(),zn("}else{"),Lr(),zn("}"))}var nr=hn.shared;yr.forEach(function(Qn){var Hn,tr=Qn.name,cr=Zn.attributes[tr];if(cr){if(!gr(cr))return;Hn=cr.append(hn,zn)}else{if(!gr(bt))return;var Lr=hn.scopeAttrib(tr);Hn={},Object.keys(new go).forEach(function(Er){Hn[Er]=zn.def(Lr,".",Er)})}vr(hn.link(Qn),function(Er){switch(Er){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(Qn.info.type),Hn)})}function zr(hn,zn,Zn,yr,gr,vr){for(var nr,Qn=hn.shared,Hn=Qn.gl,tr=0;tr>1)",Qn],");")}function Go(){Zn(Hn,".drawArraysInstancedANGLE(",[to,_o,fr,Qn],");")}Vr&&Vr!=="null"?ao?co():(Zn("if(",Vr,"){"),co(),Zn("}else{"),Go(),Zn("}")):Go()}function nr(){function co(){Zn(cr+".drawElements("+[to,fr,Eo,_o+"<<(("+Eo+"-5121)>>1)"]+");")}function Go(){Zn(cr+".drawArrays("+[to,_o,fr]+");")}Vr&&Vr!=="null"?ao?co():(Zn("if(",Vr,"){"),co(),Zn("}else{"),Go(),Zn("}")):Go()}var Qn,Hn,tr=hn.shared,cr=tr.gl,Lr=tr.draw,Er=yr.draw,Vr=function(){var co=Er.elements,Go=zn;return co?((co.contextDep&&yr.contextDynamic||co.propDep)&&(Go=Zn),co=co.append(hn,Go),Er.elementsActive&&Go("if("+co+")"+cr+".bindBuffer(34963,"+co+".buffer.buffer);")):(co=Go.def(),Go(co,"=",Lr,".","elements",";","if(",co,"){",cr,".bindBuffer(",34963,",",co,".buffer.buffer);}","else if(",tr.vao,".currentVAO){",co,"=",hn.shared.elements+".getElements("+tr.vao,".currentVAO.elements);",br?"":"if("+co+")"+cr+".bindBuffer(34963,"+co+".buffer.buffer);","}")),co}(),to=gr("primitive"),_o=gr("offset"),fr=function(){var co=Er.count,Go=zn;return co?((co.contextDep&&yr.contextDynamic||co.propDep)&&(Go=Zn),co=co.append(hn,Go)):co=Go.def(Lr,".","count"),co}();if(typeof fr=="number"){if(fr===0)return}else Zn("if(",fr,"){"),Zn.exit("}");Pn&&(Qn=gr("instances"),Hn=hn.instancing);var Eo=Vr+".type",ao=Er.elements&&me(Er.elements)&&!Er.vaoActive;Pn&&(typeof Qn!="number"||0<=Qn)?typeof Qn=="string"?(Zn("if(",Qn,">0){"),vr(),Zn("}else if(",Qn,"<0){"),nr(),Zn("}")):vr():nr()}function Rr(hn,zn,Zn,yr,gr){return gr=(zn=er()).proc("body",gr),Pn&&(zn.instancing=gr.def(zn.shared.extensions,".angle_instanced_arrays")),hn(zn,gr,Zn,yr),zn.compile().body}function $r(hn,zn,Zn,yr){Kn(hn,zn),Zn.useVAO?Zn.drawVAO?zn(hn.shared.vao,".setVAO(",Zn.drawVAO.append(hn,zn),");"):zn(hn.shared.vao,".setVAO(",hn.shared.vao,".targetVAO);"):(zn(hn.shared.vao,".setVAO(null);"),Ir(hn,zn,Zn,yr.attributes,function(){return!0})),zr(hn,zn,Zn,yr.uniforms,function(){return!0},!1),Fr(hn,zn,zn,Zn)}function Kr(hn,zn,Zn,yr){function gr(){return!0}hn.batchId="a1",Kn(hn,zn),Ir(hn,zn,Zn,yr.attributes,gr),zr(hn,zn,Zn,yr.uniforms,gr,!1),Fr(hn,zn,zn,Zn)}function Co(hn,zn,Zn,yr){function gr(Lr){return Lr.contextDep&&nr||Lr.propDep}function vr(Lr){return!gr(Lr)}Kn(hn,zn);var nr=Zn.contextDep,Qn=zn.def(),Hn=zn.def();hn.shared.props=Hn,hn.batchId=Qn;var tr=hn.scope(),cr=hn.scope();zn(tr.entry,"for(",Qn,"=0;",Qn,"<","a1",";++",Qn,"){",Hn,"=","a0","[",Qn,"];",cr,"}",tr.exit),Zn.needsContext&&ar(hn,cr,Zn.context),Zn.needsFramebuffer&&Fn(hn,cr,Zn.framebuffer),Wn(hn,cr,Zn.state,gr),Zn.profile&&gr(Zn.profile)&&_r(hn,cr,Zn,!1,!0),yr?(Zn.useVAO?Zn.drawVAO?gr(Zn.drawVAO)?cr(hn.shared.vao,".setVAO(",Zn.drawVAO.append(hn,cr),");"):tr(hn.shared.vao,".setVAO(",Zn.drawVAO.append(hn,tr),");"):tr(hn.shared.vao,".setVAO(",hn.shared.vao,".targetVAO);"):(tr(hn.shared.vao,".setVAO(null);"),Ir(hn,tr,Zn,yr.attributes,vr),Ir(hn,cr,Zn,yr.attributes,gr)),zr(hn,tr,Zn,yr.uniforms,vr,!1),zr(hn,cr,Zn,yr.uniforms,gr,!0),Fr(hn,tr,cr,Zn)):(zn=hn.global.def("{}"),yr=Zn.shader.progVar.append(hn,cr),Hn=cr.def(yr,".id"),tr=cr.def(zn,"[",Hn,"]"),cr(hn.shared.gl,".useProgram(",yr,".program);","if(!",tr,"){",tr,"=",zn,"[",Hn,"]=",hn.link(function(Lr){return Rr(Kr,hn,Zn,Lr,2)}),"(",yr,");}",tr,".call(this,a0[",Qn,"],",Qn,");"))}function so(hn,zn){function Zn(Qn){var Hn=zn.shader[Qn];Hn&&(Hn=Hn.append(hn,yr),isNaN(Hn)?yr.set(gr.shader,"."+Qn,Hn):yr.set(gr.shader,"."+Qn,hn.link(Hn,{stable:!0})))}var yr=hn.proc("scope",3);hn.batchId="a2";var gr=hn.shared,vr=gr.current;if(ar(hn,yr,zn.context),zn.framebuffer&&zn.framebuffer.append(hn,yr),Y(Object.keys(zn.state)).forEach(function(Qn){var Hn=zn.state[Qn],tr=Hn.append(hn,yr);R(tr)?tr.forEach(function(cr,Lr){isNaN(cr)?yr.set(hn.next[Qn],"["+Lr+"]",cr):yr.set(hn.next[Qn],"["+Lr+"]",hn.link(cr,{stable:!0}))}):me(Hn)?yr.set(gr.next,"."+Qn,hn.link(tr,{stable:!0})):yr.set(gr.next,"."+Qn,tr)}),_r(hn,yr,zn,!0,!0),["elements","offset","count","instances","primitive"].forEach(function(Qn){var Hn=zn.draw[Qn];Hn&&(Hn=Hn.append(hn,yr),isNaN(Hn)?yr.set(gr.draw,"."+Qn,Hn):yr.set(gr.draw,"."+Qn,hn.link(Hn),{stable:!0}))}),Object.keys(zn.uniforms).forEach(function(Qn){var Hn=zn.uniforms[Qn].append(hn,yr);Array.isArray(Hn)&&(Hn="["+Hn.map(function(tr){return isNaN(tr)?tr:hn.link(tr,{stable:!0})})+"]"),yr.set(gr.uniforms,"["+hn.link(yt.id(Qn),{stable:!0})+"]",Hn)}),Object.keys(zn.attributes).forEach(function(Qn){var Hn=zn.attributes[Qn].append(hn,yr),tr=hn.scopeAttrib(Qn);Object.keys(new go).forEach(function(cr){yr.set(tr,"."+cr,Hn[cr])})}),zn.scopeVAO){var nr=zn.scopeVAO.append(hn,yr);isNaN(nr)?yr.set(gr.vao,".targetVAO",nr):yr.set(gr.vao,".targetVAO",hn.link(nr,{stable:!0}))}Zn("vert"),Zn("frag"),0=--this.refCount&&Lt(this)},it.profile&&(Rt.getTotalRenderbufferSize=function(){var Qt=0;return Object.keys(Yt).forEach(function(Pt){Qt+=Yt[Pt].stats.size}),Qt}),{create:function(Qt,Pt){function tn(fn,dn){var vn=0,Nn=0,er=32854;if(typeof fn=="object"&&fn?("shape"in fn?(vn=0|(Nn=fn.shape)[0],Nn=0|Nn[1]):("radius"in fn&&(vn=Nn=0|fn.radius),"width"in fn&&(vn=0|fn.width),"height"in fn&&(Nn=0|fn.height)),"format"in fn&&(er=xt[fn.format])):typeof fn=="number"?(vn=0|fn,Nn=typeof dn=="number"?0|dn:vn):fn||(vn=Nn=1),vn!==Kt.width||Nn!==Kt.height||er!==Kt.format)return tn.width=Kt.width=vn,tn.height=Kt.height=Nn,Kt.format=er,lt.bindRenderbuffer(36161,Kt.renderbuffer),lt.renderbufferStorage(36161,er,vn,Nn),it.profile&&(Kt.stats.size=It[Kt.format]*Kt.width*Kt.height),tn.format=Ht[Kt.format],tn}var Kt=new at(lt.createRenderbuffer());return Yt[Kt.id]=Kt,Rt.renderbufferCount++,tn(Qt,Pt),tn.resize=function(fn,dn){var vn=0|fn,Nn=0|dn||vn;return vn===Kt.width&&Nn===Kt.height||(tn.width=Kt.width=vn,tn.height=Kt.height=Nn,lt.bindRenderbuffer(36161,Kt.renderbuffer),lt.renderbufferStorage(36161,Kt.format,vn,Nn),it.profile&&(Kt.stats.size=It[Kt.format]*Kt.width*Kt.height)),tn},tn._reglType="renderbuffer",tn._renderbuffer=Kt,it.profile&&(tn.stats=Kt.stats),tn.destroy=function(){Kt.decRef()},tn},clear:function(){ze(Yt).forEach(Lt)},restore:function(){ze(Yt).forEach(function(Qt){Qt.renderbuffer=lt.createRenderbuffer(),lt.bindRenderbuffer(36161,Qt.renderbuffer),lt.renderbufferStorage(36161,Qt.format,Qt.width,Qt.height)}),lt.bindRenderbuffer(36161,null)}}},en=[];en[6408]=4,en[6407]=3;var Gt=[];Gt[5121]=1,Gt[5126]=4,Gt[36193]=2;var Ct=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],_t=["x","y","z","w"],nn="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),gn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},bn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},mn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},vt={cw:2304,ccw:2305},bt=new ee(!1,!1,!1,function(){});return function(lt){function yt(){if(Kr.length===0)En&&En.update(),go=null;else{go=_e.next(yt),Yt();for(var Pn=Kr.length-1;0<=Pn;--Pn){var Yn=Kr[Pn];Yn&&Yn(Sr,null,0)}tn.flush(),En&&En.update()}}function zt(){!go&&0=Kr.length&&Rt()}}}}function Xt(){var Pn=Rr.viewport,Yn=Rr.scissor_box;Pn[0]=Pn[1]=Yn[0]=Yn[1]=0,Sr.viewportWidth=Sr.framebufferWidth=Sr.drawingBufferWidth=Pn[2]=Yn[2]=tn.drawingBufferWidth,Sr.viewportHeight=Sr.framebufferHeight=Sr.drawingBufferHeight=Pn[3]=Yn[3]=tn.drawingBufferHeight}function Yt(){Sr.tick+=1,Sr.time=Pt(),Xt(),Fr.procs.poll()}function Qt(){_r.refresh(),Xt(),Fr.procs.refresh(),En&&En.update()}function Pt(){return(Se()-In)/1e3}if(!(lt=O(lt)))return null;var tn=lt.gl,Kt=tn.getContextAttributes();tn.isContextLost();var fn=function(Pn,Yn){function br(Qr){var Wr;Qr=Qr.toLowerCase();try{Wr=dr[Qr]=Pn.getExtension(Qr)}catch{}return!!Wr}for(var dr={},Cr=0;CrYn;++Yn)li(de({framebuffer:Pn.framebuffer.faces[Yn]},Pn),xt);else li(Pn,xt);else xt(0,Pn)},prop:ye.define.bind(null,1),context:ye.define.bind(null,2),this:ye.define.bind(null,3),draw:Lt({}),buffer:function(Pn){return Fn.create(Pn,34962,!1,!1)},elements:function(Pn){return ir.create(Pn,!1)},texture:_r.create2D,cube:_r.createCube,renderbuffer:Ir.create,framebuffer:zr.create,framebufferCube:zr.createCube,vao:Wn.createVAO,attributes:Kt,frame:Ht,on:function(Pn,Yn){var br;switch(Pn){case"frame":return Ht(Yn);case"lost":br=Co;break;case"restore":br=so;break;case"destroy":br=So}return br.push(Yn),{cancel:function(){for(var dr=0;dr4294967295||y(a)!==a)throw new w("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],h=!0,m=!0;if("length"in p&&O){var v=O(p,"length");v&&!v.configurable&&(h=!1),v&&!v.writable&&(m=!1)}return(h||m||!u)&&(i?b(p,"length",a,!0,!0):b(p,"length",a)),p}},29936:function(d,l,n){d.exports=b;var c=n(61252).EventEmitter;function b(){c.call(this)}n(6768)(b,c),b.Readable=n(12348),b.Writable=n(11288),b.Duplex=n(15316),b.Transform=n(22477),b.PassThrough=n(27136),b.finished=n(15932),b.pipeline=n(38180),b.Stream=b,b.prototype.pipe=function(i,O){var w=this;function y(_){i.writable&&i.write(_)===!1&&w.pause&&w.pause()}function p(){w.readable&&w.resume&&w.resume()}w.on("data",y),i.on("drain",p),i._isStdio||O&&O.end===!1||(w.on("end",u),w.on("close",h));var a=!1;function u(){a||(a=!0,i.end())}function h(){a||(a=!0,typeof i.destroy=="function"&&i.destroy())}function m(_){if(v(),c.listenerCount(this,"error")===0)throw _}function v(){w.removeListener("data",y),i.removeListener("drain",p),w.removeListener("end",u),w.removeListener("close",h),w.removeListener("error",m),i.removeListener("error",m),w.removeListener("end",v),w.removeListener("close",v),i.removeListener("close",v)}return w.on("error",m),i.on("error",m),w.on("end",v),w.on("close",v),i.on("close",v),i.emit("pipe",w),i}},92784:function(d){var l={};function n(b,i,O){O||(O=Error);var w=function(y){var p,a;function u(h,m,v){return y.call(this,function(_,S,A){return typeof i=="string"?i:i(_,S,A)}(h,m,v))||this}return a=y,(p=u).prototype=Object.create(a.prototype),p.prototype.constructor=p,p.__proto__=a,u}(O);w.prototype.name=O.name,w.prototype.code=b,l[b]=w}function c(b,i){if(Array.isArray(b)){var O=b.length;return b=b.map(function(w){return String(w)}),O>2?"one of ".concat(i," ").concat(b.slice(0,O-1).join(", "),", or ")+b[O-1]:O===2?"one of ".concat(i," ").concat(b[0]," or ").concat(b[1]):"of ".concat(i," ").concat(b[0])}return"of ".concat(i," ").concat(String(b))}n("ERR_INVALID_OPT_VALUE",function(b,i){return'The value "'+i+'" is invalid for option "'+b+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(b,i,O){var w,y,p,a,u;if(typeof i=="string"&&(y="not ",i.substr(0,4)===y)?(w="must not be",i=i.replace(/^not /,"")):w="must be",function(m,v,_){return(_===void 0||_>m.length)&&(_=m.length),m.substring(_-9,_)===v}(b," argument"))p="The ".concat(b," ").concat(w," ").concat(c(i,"type"));else{var h=(typeof u!="number"&&(u=0),u+1>(a=b).length||a.indexOf(".",u)===-1?"argument":"property");p='The "'.concat(b,'" ').concat(h," ").concat(w," ").concat(c(i,"type"))}return p+". Received type ".concat(typeof O)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),d.exports.i=l},15316:function(d,l,n){var c=n(4168),b=Object.keys||function(m){var v=[];for(var _ in m)v.push(_);return v};d.exports=a;var i=n(12348),O=n(11288);n(6768)(a,i);for(var w=b(O.prototype),y=0;y0)if(typeof se=="string"||ye.objectMode||Object.getPrototypeOf(se)===y.prototype||(se=function(_e){return y.from(_e)}(se)),ce)ye.endEmitted?E(he,new T):I(he,ye,se,!0);else if(ye.ended)E(he,new R);else{if(ye.destroyed)return!1;ye.reading=!1,ye.decoder&&!ae?(se=ye.decoder.write(se),ye.objectMode||se.length!==0?I(he,ye,se,!1):U(he,ye)):I(he,ye,se,!1)}else ce||(ye.reading=!1,U(he,ye));return!ye.ended&&(ye.lengthse.highWaterMark&&(se.highWaterMark=function(ae){return ae>=z?ae=z:(ae--,ae|=ae>>>1,ae|=ae>>>2,ae|=ae>>>4,ae|=ae>>>8,ae|=ae>>>16,ae++),ae}(he)),he<=se.length?he:se.ended?se.length:(se.needReadable=!0,0))}function Q(he){var se=he._readableState;i("emitReadable",se.needReadable,se.emittedReadable),se.needReadable=!1,se.emittedReadable||(i("emitReadable",se.flowing),se.emittedReadable=!0,b.nextTick(j,he))}function j(he){var se=he._readableState;i("emitReadable_",se.destroyed,se.length,se.ended),se.destroyed||!se.length&&!se.ended||(he.emit("readable"),se.emittedReadable=!1),se.needReadable=!se.flowing&&!se.ended&&se.length<=se.highWaterMark,oe(he)}function U(he,se){se.readingMore||(se.readingMore=!0,b.nextTick(X,he,se))}function X(he,se){for(;!se.reading&&!se.ended&&(se.length0,se.resumeScheduled&&!se.paused?se.flowing=!0:he.listenerCount("data")>0&&he.resume()}function W(he){i("readable nexttick read 0"),he.read(0)}function K(he,se){i("resume",se.reading),se.reading||he.read(0),se.resumeScheduled=!1,he.emit("resume"),oe(he),se.flowing&&!se.reading&&he.read(0)}function oe(he){var se=he._readableState;for(i("flow",se.flowing);se.flowing&&he.read()!==null;);}function q(he,se){return se.length===0?null:(se.objectMode?ae=se.buffer.shift():!he||he>=se.length?(ae=se.decoder?se.buffer.join(""):se.buffer.length===1?se.buffer.first():se.buffer.concat(se.length),se.buffer.clear()):ae=se.buffer.consume(he,se.decoder),ae);var ae}function Y(he){var se=he._readableState;i("endReadable",se.endEmitted),se.endEmitted||(se.ended=!0,b.nextTick(ee,se,he))}function ee(he,se){if(i("endReadableNT",he.endEmitted,he.length),!he.endEmitted&&he.length===0&&(he.endEmitted=!0,se.readable=!1,se.emit("end"),he.autoDestroy)){var ae=se._writableState;(!ae||ae.autoDestroy&&ae.finished)&&se.destroy()}}function me(he,se){for(var ae=0,ce=he.length;ae=se.highWaterMark:se.length>0)||se.ended))return i("read: emitReadable",se.length,se.ended),se.length===0&&se.ended?Y(this):Q(this),null;if((he=$(he,se))===0&&se.ended)return se.length===0&&Y(this),null;var ce,de=se.needReadable;return i("need readable",de),(se.length===0||se.length-he0?q(he,se):null)===null?(se.needReadable=se.length<=se.highWaterMark,he=0):(se.length-=he,se.awaitDrain=0),se.length===0&&(se.ended||(se.needReadable=!0),ae!==he&&se.ended&&Y(this)),ce!==null&&this.emit("data",ce),ce},D.prototype._read=function(he){E(this,new M("_read()"))},D.prototype.pipe=function(he,se){var ae=this,ce=this._readableState;switch(ce.pipesCount){case 0:ce.pipes=he;break;case 1:ce.pipes=[ce.pipes,he];break;default:ce.pipes.push(he)}ce.pipesCount+=1,i("pipe count=%d opts=%j",ce.pipesCount,se);var de=se&&se.end===!1||he===b.stdout||he===b.stderr?ze:ve;function ve(){i("onend"),he.end()}ce.endEmitted?b.nextTick(de):ae.once("end",de),he.on("unpipe",function De(He,Ve){i("onunpipe"),He===ae&&Ve&&Ve.hasUnpiped===!1&&(Ve.hasUnpiped=!0,i("cleanup"),he.removeListener("close",Pe),he.removeListener("finish",Ie),he.removeListener("drain",ye),he.removeListener("error",Te),he.removeListener("unpipe",De),ae.removeListener("end",ve),ae.removeListener("end",ze),ae.removeListener("data",Se),_e=!0,!ce.awaitDrain||he._writableState&&!he._writableState.needDrain||ye())});var ye=function(De){return function(){var He=De._readableState;i("pipeOnDrain",He.awaitDrain),He.awaitDrain&&He.awaitDrain--,He.awaitDrain===0&&O(De,"data")&&(He.flowing=!0,oe(De))}}(ae);he.on("drain",ye);var _e=!1;function Se(De){i("ondata");var He=he.write(De);i("dest.write",He),He===!1&&((ce.pipesCount===1&&ce.pipes===he||ce.pipesCount>1&&me(ce.pipes,he)!==-1)&&!_e&&(i("false write response, pause",ce.awaitDrain),ce.awaitDrain++),ae.pause())}function Te(De){i("onerror",De),ze(),he.removeListener("error",Te),O(he,"error")===0&&E(he,De)}function Pe(){he.removeListener("finish",Ie),ze()}function Ie(){i("onfinish"),he.removeListener("close",Pe),ze()}function ze(){i("unpipe"),ae.unpipe(he)}return ae.on("data",Se),function(De,He,Ve){if(typeof De.prependListener=="function")return De.prependListener(He,Ve);De._events&&De._events[He]?Array.isArray(De._events[He])?De._events[He].unshift(Ve):De._events[He]=[Ve,De._events[He]]:De.on(He,Ve)}(he,"error",Te),he.once("close",Pe),he.once("finish",Ie),he.emit("pipe",ae),ce.flowing||(i("pipe resume"),ae.resume()),he},D.prototype.unpipe=function(he){var se=this._readableState,ae={hasUnpiped:!1};if(se.pipesCount===0)return this;if(se.pipesCount===1)return he&&he!==se.pipes||(he||(he=se.pipes),se.pipes=null,se.pipesCount=0,se.flowing=!1,he&&he.emit("unpipe",this,ae)),this;if(!he){var ce=se.pipes,de=se.pipesCount;se.pipes=null,se.pipesCount=0,se.flowing=!1;for(var ve=0;ve0,ce.flowing!==!1&&this.resume()):he==="readable"&&(ce.endEmitted||ce.readableListening||(ce.readableListening=ce.needReadable=!0,ce.flowing=!1,ce.emittedReadable=!1,i("on readable",ce.length,ce.reading),ce.length?Q(this):ce.reading||b.nextTick(W,this))),ae},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(he,se){var ae=w.prototype.removeListener.call(this,he,se);return he==="readable"&&b.nextTick(te,this),ae},D.prototype.removeAllListeners=function(he){var se=w.prototype.removeAllListeners.apply(this,arguments);return he!=="readable"&&he!==void 0||b.nextTick(te,this),se},D.prototype.resume=function(){var he=this._readableState;return he.flowing||(i("resume"),he.flowing=!he.readableListening,function(se,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,b.nextTick(K,se,ae))}(this,he)),he.paused=!1,this},D.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(he){var se=this,ae=this._readableState,ce=!1;for(var de in he.on("end",function(){if(i("wrapped end"),ae.decoder&&!ae.ended){var ye=ae.decoder.end();ye&&ye.length&&se.push(ye)}se.push(null)}),he.on("data",function(ye){i("wrapped data"),ae.decoder&&(ye=ae.decoder.write(ye)),ae.objectMode&&ye==null||(ae.objectMode||ye&&ye.length)&&(se.push(ye)||(ce=!0,he.pause()))}),he)this[de]===void 0&&typeof he[de]=="function"&&(this[de]=function(ye){return function(){return he[ye].apply(he,arguments)}}(de));for(var ve=0;ve-1))throw new T(U);return this._writableState.defaultEncoding=U,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),D.prototype._write=function(U,X,te){te(new _("_write()"))},D.prototype._writev=null,D.prototype.end=function(U,X,te){var W=this._writableState;return typeof U=="function"?(te=U,U=null,X=null):typeof X=="function"&&(te=X,X=null),U!=null&&this.write(U,X),W.corked&&(W.corked=1,this.uncork()),W.ending||function(K,oe,q){oe.ending=!0,j(K,oe),q&&(oe.finished?b.nextTick(q):K.once("finish",q)),oe.ended=!0,K.writable=!1}(this,W,te),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(U){this._writableState&&(this._writableState.destroyed=U)}}),D.prototype.destroy=u.destroy,D.prototype._undestroy=u.undestroy,D.prototype._destroy=function(U,X){X(U)}},60328:function(d,l,n){var c,b=n(4168);function i(R,M,T){return M in R?Object.defineProperty(R,M,{value:T,enumerable:!0,configurable:!0,writable:!0}):R[M]=T,R}var O=n(15932),w=Symbol("lastResolve"),y=Symbol("lastReject"),p=Symbol("error"),a=Symbol("ended"),u=Symbol("lastPromise"),h=Symbol("handlePromise"),m=Symbol("stream");function v(R,M){return{value:R,done:M}}function _(R){var M=R[w];if(M!==null){var T=R[m].read();T!==null&&(R[u]=null,R[w]=null,R[y]=null,M(v(T,!1)))}}function S(R){b.nextTick(_,R)}var A=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((i(c={get stream(){return this[m]},next:function(){var R=this,M=this[p];if(M!==null)return Promise.reject(M);if(this[a])return Promise.resolve(v(void 0,!0));if(this[m].destroyed)return new Promise(function(L,D){b.nextTick(function(){R[p]?D(R[p]):L(v(void 0,!0))})});var T,E=this[u];if(E)T=new Promise(function(L,D){return function(k,I){L.then(function(){D[a]?k(v(void 0,!0)):D[h](k,I)},I)}}(E,this));else{var C=this[m].read();if(C!==null)return Promise.resolve(v(C,!1));T=new Promise(this[h])}return this[u]=T,T}},Symbol.asyncIterator,function(){return this}),i(c,"return",function(){var R=this;return new Promise(function(M,T){R[m].destroy(null,function(E){E?T(E):M(v(void 0,!0))})})}),c),A);d.exports=function(R){var M,T=Object.create(x,(i(M={},m,{value:R,writable:!0}),i(M,w,{value:null,writable:!0}),i(M,y,{value:null,writable:!0}),i(M,p,{value:null,writable:!0}),i(M,a,{value:R._readableState.endEmitted,writable:!0}),i(M,h,{value:function(E,C){var L=T[m].read();L?(T[u]=null,T[w]=null,T[y]=null,E(v(L,!1))):(T[w]=E,T[y]=C)},writable:!0}),M));return T[u]=null,O(R,function(E){if(E&&E.code!=="ERR_STREAM_PREMATURE_CLOSE"){var C=T[y];return C!==null&&(T[u]=null,T[w]=null,T[y]=null,C(E)),void(T[p]=E)}var L=T[w];L!==null&&(T[u]=null,T[w]=null,T[y]=null,L(v(void 0,!0))),T[a]=!0}),R.on("readable",S.bind(null,T)),T}},47264:function(d,l,n){function c(p,a){var u=Object.keys(p);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(p);a&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(p,m).enumerable})),u.push.apply(u,h)}return u}function b(p,a,u){return a in p?Object.defineProperty(p,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):p[a]=u,p}function i(p,a){for(var u=0;u0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(h){var m={data:h,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(this.length!==0){var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(h){if(this.length===0)return"";for(var m=this.head,v=""+m.data;m=m.next;)v+=h+m.data;return v}},{key:"concat",value:function(h){if(this.length===0)return O.alloc(0);for(var m,v,_,S=O.allocUnsafe(h>>>0),A=this.head,x=0;A;)m=A.data,v=S,_=x,O.prototype.copy.call(m,v,_),x+=A.data.length,A=A.next;return S}},{key:"consume",value:function(h,m){var v;return hS.length?S.length:h;if(A===S.length?_+=S:_+=S.slice(0,h),(h-=A)==0){A===S.length?(++v,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=S.slice(A));break}++v}return this.length-=v,_}},{key:"_getBuffer",value:function(h){var m=O.allocUnsafe(h),v=this.head,_=1;for(v.data.copy(m),h-=v.data.length;v=v.next;){var S=v.data,A=h>S.length?S.length:h;if(S.copy(m,m.length-h,0,A),(h-=A)==0){A===S.length?(++_,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=S.slice(A));break}++_}return this.length-=_,m}},{key:y,value:function(h,m){return w(this,function(v){for(var _=1;_0,function(R){m||(m=R),R&&_.forEach(y),x||(_.forEach(y),v(m))})});return u.reduce(p)}},24888:function(d,l,n){var c=n(92784).i.ERR_INVALID_OPT_VALUE;d.exports={getHighWaterMark:function(b,i,O,w){var y=function(p,a,u){return p.highWaterMark!=null?p.highWaterMark:a?p[u]:null}(i,w,O);if(y!=null){if(!isFinite(y)||Math.floor(y)!==y||y<0)throw new c(w?O:"highWaterMark",y);return Math.floor(y)}return b.objectMode?16:16384}}},4776:function(d,l,n){d.exports=n(61252).EventEmitter},86032:function(d,l,n){var c=n(30456).Buffer,b=c.isEncoding||function(v){switch((v=""+v)&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(v){var _;switch(this.encoding=function(S){var A=function(x){if(!x)return"utf8";for(var R;;)switch(x){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return x;default:if(R)return;x=(""+x).toLowerCase(),R=!0}}(S);if(typeof A!="string"&&(c.isEncoding===b||!b(S)))throw new Error("Unknown encoding: "+S);return A||S}(v),this.encoding){case"utf16le":this.text=y,this.end=p,_=4;break;case"utf8":this.fillLast=w,_=4;break;case"base64":this.text=a,this.end=u,_=3;break;default:return this.write=h,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(_)}function O(v){return v<=127?0:v>>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function w(v){var _=this.lastTotal-this.lastNeed,S=function(A,x,R){if((192&x[0])!=128)return A.lastNeed=0,"�";if(A.lastNeed>1&&x.length>1){if((192&x[1])!=128)return A.lastNeed=1,"�";if(A.lastNeed>2&&x.length>2&&(192&x[2])!=128)return A.lastNeed=2,"�"}}(this,v);return S!==void 0?S:this.lastNeed<=v.length?(v.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,_,0,v.length),void(this.lastNeed-=v.length))}function y(v,_){if((v.length-_)%2==0){var S=v.toString("utf16le",_);if(S){var A=S.charCodeAt(S.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",_,v.length-1)}function p(v){var _=v&&v.length?this.write(v):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,S)}return _}function a(v,_){var S=(v.length-_)%3;return S===0?v.toString("base64",_):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",_,v.length-S))}function u(v){var _=v&&v.length?this.write(v):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function h(v){return v.toString(this.encoding)}function m(v){return v&&v.length?this.write(v):""}l.o=i,i.prototype.write=function(v){if(v.length===0)return"";var _,S;if(this.lastNeed){if((_=this.fillLast(v))===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S=0?(E>0&&(x.lastNeed=E-1),E):--T=0?(E>0&&(x.lastNeed=E-2),E):--T=0?(E>0&&(E===2?E=0:x.lastNeed=E-3),E):0}(this,v,_);if(!this.lastNeed)return v.toString("utf8",_);this.lastTotal=S;var A=v.length-(S-this.lastNeed);return v.copy(this.lastChar,0,A),v.toString("utf8",_,A)},i.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},55619:function(d,l,n){var c=n(45408),b=n(86844)("stream-parser");d.exports=function(x){var R=x&&typeof x._transform=="function",M=x&&typeof x._write=="function";if(!R&&!M)throw new Error("must pass a Writable or Transform stream in");b("extending Parser into stream"),x._bytes=a,x._skipBytes=u,R&&(x._passthrough=h),R?x._transform=v:x._write=m};var i=-1,O=0,w=1,y=2;function p(x){b("initializing parser stream"),x._parserBytesLeft=0,x._parserBuffers=[],x._parserBuffered=0,x._parserState=i,x._parserCallback=null,typeof x.push=="function"&&(x._parserOutput=x.push.bind(x)),x._parserInit=!0}function a(x,R){c(!this._parserCallback,'there is already a "callback" set!'),c(isFinite(x)&&x>0,'can only buffer a finite number of bytes > 0, got "'+x+'"'),this._parserInit||p(this),b("buffering %o bytes",x),this._parserBytesLeft=x,this._parserCallback=R,this._parserState=O}function u(x,R){c(!this._parserCallback,'there is already a "callback" set!'),c(x>0,'can only skip > 0 bytes, got "'+x+'"'),this._parserInit||p(this),b("skipping %o bytes",x),this._parserBytesLeft=x,this._parserCallback=R,this._parserState=w}function h(x,R){c(!this._parserCallback,'There is already a "callback" set!'),c(x>0,'can only pass through > 0 bytes, got "'+x+'"'),this._parserInit||p(this),b("passing through %o bytes",x),this._parserBytesLeft=x,this._parserCallback=R,this._parserState=y}function m(x,R,M){this._parserInit||p(this),b("write(%o bytes)",x.length),typeof R=="function"&&(M=R),S(this,x,null,M)}function v(x,R,M){this._parserInit||p(this),b("transform(%o bytes)",x.length),typeof R!="function"&&(R=this._parserOutput),S(this,x,R,M)}function _(x,R,M,T){if(x._parserBytesLeft-=R.length,b("%o bytes left for stream piece",x._parserBytesLeft),x._parserState===O?(x._parserBuffers.push(R),x._parserBuffered+=R.length):x._parserState===y&&M(R),x._parserBytesLeft!==0)return T;var E=x._parserCallback;if(E&&x._parserState===O&&x._parserBuffers.length>1&&(R=Buffer.concat(x._parserBuffers,x._parserBuffered)),x._parserState!==O&&(R=null),x._parserCallback=null,x._parserBuffered=0,x._parserState=i,x._parserBuffers.splice(0),E){var C=[];R&&C.push(R),M&&C.push(M);var L=E.length>C.length;L&&C.push(A(T));var D=E.apply(x,C);if(!L||T===D)return T}}var S=A(function x(R,M,T,E){return R._parserBytesLeft<=0?E(new Error("got data but not currently parsing anything")):M.length<=R._parserBytesLeft?function(){return _(R,M,T,E)}:function(){var C=M.slice(0,R._parserBytesLeft);return _(R,C,T,function(L){return L?E(L):M.length>C.length?function(){return x(R,M.slice(C.length),T,E)}:void 0})}});function A(x){return function(){for(var R=x.apply(this,arguments);typeof R=="function";)R=R();return R}}},86844:function(d,l,n){var c=n(4168);function b(){var i;try{i=l.storage.debug}catch{}return!i&&c!==void 0&&"env"in c&&(i=c.env.DEBUG),i}(l=d.exports=n(89416)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},l.formatArgs=function(i){var O=this.useColors;if(i[0]=(O?"%c":"")+this.namespace+(O?" %c":" ")+i[0]+(O?"%c ":" ")+"+"+l.humanize(this.diff),O){var w="color: "+this.color;i.splice(1,0,w,"color: inherit");var y=0,p=0;i[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(y++,a==="%c"&&(p=y))}),i.splice(p,0,w)}},l.save=function(i){try{i==null?l.storage.removeItem("debug"):l.storage.debug=i}catch{}},l.load=b,l.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},l.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),l.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],l.formatters.j=function(i){try{return JSON.stringify(i)}catch(O){return"[UnexpectedJSONParseError]: "+O.message}},l.enable(b())},89416:function(d,l,n){var c;function b(i){function O(){if(O.enabled){var w=O,y=+new Date,p=y-(c||y);w.diff=p,w.prev=c,w.curr=y,c=y;for(var a=new Array(arguments.length),u=0;u0)return function(a){if(!((a=String(a)).length>100)){var u=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(a);if(u){var h=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*h;case"days":case"day":case"d":return h*b;case"hours":case"hour":case"hrs":case"hr":case"h":return h*c;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}(O);if(p==="number"&&isNaN(O)===!1)return w.long?i(y=O,b,"day")||i(y,c,"hour")||i(y,n,"minute")||i(y,l,"second")||y+" ms":function(a){return a>=b?Math.round(a/b)+"d":a>=c?Math.round(a/c)+"h":a>=n?Math.round(a/n)+"m":a>=l?Math.round(a/l)+"s":a+"ms"}(O);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(O))}},39956:function(d,l,n){var c=n(32868);d.exports=function(b,i,O){if(b==null)throw Error("First argument should be a string");if(i==null)throw Error("Separator should be a string or a RegExp");O?(typeof O=="string"||Array.isArray(O))&&(O={ignore:O}):O={},O.escape==null&&(O.escape=!0),O.ignore==null?O.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:(typeof O.ignore=="string"&&(O.ignore=[O.ignore]),O.ignore=O.ignore.map(function(m){return m.length===1&&(m+=m),m}));var w=c.parse(b,{flat:!0,brackets:O.ignore}),y=w[0].split(i);if(O.escape){for(var p=[],a=0;a0;){A=R[R.length-1];var M=l[A];if(O[A]=0&&y[A].push(w[E])}O[A]=T}else{if(b[A]===c[A]){var C=[],L=[],D=0;for(T=x.length-1;T>=0;--T){var k=x[T];if(i[k]=!1,C.push(k),L.push(y[k]),D+=y[k].length,w[k]=h.length,k===A){x.length=T;break}}h.push(C);var I=new Array(D);for(T=0;T1&&(u=1),u<-1&&(u=-1),(w*a-y*p<0?-1:1)*Math.acos(u)};l.default=function(w){var y=w.px,p=w.py,a=w.cx,u=w.cy,h=w.rx,m=w.ry,v=w.xAxisRotation,_=v===void 0?0:v,S=w.largeArcFlag,A=S===void 0?0:S,x=w.sweepFlag,R=x===void 0?0:x,M=[];if(h===0||m===0)return[];var T=Math.sin(_*c/360),E=Math.cos(_*c/360),C=E*(y-a)/2+T*(p-u)/2,L=-T*(y-a)/2+E*(p-u)/2;if(C===0&&L===0)return[];h=Math.abs(h),m=Math.abs(m);var D=Math.pow(C,2)/Math.pow(h,2)+Math.pow(L,2)/Math.pow(m,2);D>1&&(h*=Math.sqrt(D),m*=Math.sqrt(D));var k=function(W,K,oe,q,Y,ee,me,he,se,ae,ce,de){var ve=Math.pow(Y,2),ye=Math.pow(ee,2),_e=Math.pow(ce,2),Se=Math.pow(de,2),Te=ve*ye-ve*Se-ye*_e;Te<0&&(Te=0),Te/=ve*Se+ye*_e;var Pe=(Te=Math.sqrt(Te)*(me===he?-1:1))*Y/ee*de,Ie=Te*-ee/Y*ce,ze=ae*Pe-se*Ie+(W+oe)/2,De=se*Pe+ae*Ie+(K+q)/2,He=(ce-Pe)/Y,Ve=(de-Ie)/ee,$e=(-ce-Pe)/Y,Oe=(-de-Ie)/ee,ke=O(1,0,He,Ve),Le=O(He,Ve,$e,Oe);return he===0&&Le>0&&(Le-=c),he===1&&Le<0&&(Le+=c),[ze,De,ke,Le]}(y,p,a,u,h,m,A,R,T,E,C,L),I=function(W,K){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function(oe,q){var Y=[],ee=!0,me=!1,he=void 0;try{for(var se,ae=oe[Symbol.iterator]();!(ee=(se=ae.next()).done)&&(Y.push(se.value),!q||Y.length!==q);ee=!0);}catch(ce){me=!0,he=ce}finally{try{!ee&&ae.return&&ae.return()}finally{if(me)throw he}}return Y}(W,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(k,4),z=I[0],$=I[1],Q=I[2],j=I[3],U=Math.abs(j)/(c/4);Math.abs(1-U)<1e-7&&(U=1);var X=Math.max(Math.ceil(U),1);j/=X;for(var te=0;tep[2]&&(p[2]=h[m+0]),h[m+1]>p[3]&&(p[3]=h[m+1]);return p}},41976:function(d,l,n){d.exports=function(O){for(var w,y=[],p=0,a=0,u=0,h=0,m=null,v=null,_=0,S=0,A=0,x=O.length;A4?(p=R[R.length-4],a=R[R.length-3]):(p=_,a=S),y.push(R)}return y};var c=n(92848);function b(O,w,y,p){return["C",O,w,y,p,y,p]}function i(O,w,y,p,a,u){return["C",O/3+.6666666666666666*y,w/3+.6666666666666666*p,a/3+.6666666666666666*y,u/3+.6666666666666666*p,a,u]}},20472:function(d,l,n){var c,b=n(74840),i=n(21984),O=n(22235),w=n(53520),y=n(29620),p=document.createElement("canvas"),a=p.getContext("2d");d.exports=function(u,h){if(!w(u))throw Error("Argument should be valid svg path string");var m,v;h||(h={}),h.shape?(m=h.shape[0],v=h.shape[1]):(m=p.width=h.w||h.width||200,v=p.height=h.h||h.height||200);var _=Math.min(m,v),S=h.stroke||0,A=h.viewbox||h.viewBox||b(u),x=[m/(A[2]-A[0]),v/(A[3]-A[1])],R=Math.min(x[0]||0,x[1]||0)/2;if(a.fillStyle="black",a.fillRect(0,0,m,v),a.fillStyle="white",S&&(typeof S!="number"&&(S=1),a.strokeStyle=S>0?"white":"black",a.lineWidth=Math.abs(S)),a.translate(.5*m,.5*v),a.scale(R,R),function(){if(c!=null)return c;var E=document.createElement("canvas").getContext("2d");if(E.canvas.width=E.canvas.height=1,!window.Path2D)return c=!1;var C=new Path2D("M0,0h1v1h-1v-1Z");E.fillStyle="black",E.fill(C);var L=E.getImageData(0,0,1,1);return c=L&&L.data&&L.data[3]===255}()){var M=new Path2D(u);a.fill(M),S&&a.stroke(M)}else{var T=i(u);O(a,T),a.fill(),S&&a.stroke()}return a.setTransform(1,0,0,1,0,0),y(a,{cutoff:h.cutoff!=null?h.cutoff:.5,radius:h.radius!=null?h.radius:.5*_})}},49760:function(d,l,n){var c;(function(b){var i=/^\s+/,O=/\s+$/,w=0,y=b.round,p=b.min,a=b.max,u=b.random;function h(ce,de){if(de=de||{},(ce=ce||"")instanceof h)return ce;if(!(this instanceof h))return new h(ce,de);var ve=function(ye){var _e,Se,Te,Pe={r:0,g:0,b:0},Ie=1,ze=null,De=null,He=null,Ve=!1,$e=!1;return typeof ye=="string"&&(ye=function(Oe){Oe=Oe.replace(i,"").replace(O,"").toLowerCase();var ke,Le=!1;if(Q[Oe])Oe=Q[Oe],Le=!0;else if(Oe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ke=se.rgb.exec(Oe))?{r:ke[1],g:ke[2],b:ke[3]}:(ke=se.rgba.exec(Oe))?{r:ke[1],g:ke[2],b:ke[3],a:ke[4]}:(ke=se.hsl.exec(Oe))?{h:ke[1],s:ke[2],l:ke[3]}:(ke=se.hsla.exec(Oe))?{h:ke[1],s:ke[2],l:ke[3],a:ke[4]}:(ke=se.hsv.exec(Oe))?{h:ke[1],s:ke[2],v:ke[3]}:(ke=se.hsva.exec(Oe))?{h:ke[1],s:ke[2],v:ke[3],a:ke[4]}:(ke=se.hex8.exec(Oe))?{r:W(ke[1]),g:W(ke[2]),b:W(ke[3]),a:Y(ke[4]),format:Le?"name":"hex8"}:(ke=se.hex6.exec(Oe))?{r:W(ke[1]),g:W(ke[2]),b:W(ke[3]),format:Le?"name":"hex"}:(ke=se.hex4.exec(Oe))?{r:W(ke[1]+""+ke[1]),g:W(ke[2]+""+ke[2]),b:W(ke[3]+""+ke[3]),a:Y(ke[4]+""+ke[4]),format:Le?"name":"hex8"}:!!(ke=se.hex3.exec(Oe))&&{r:W(ke[1]+""+ke[1]),g:W(ke[2]+""+ke[2]),b:W(ke[3]+""+ke[3]),format:Le?"name":"hex"}}(ye)),typeof ye=="object"&&(ae(ye.r)&&ae(ye.g)&&ae(ye.b)?(_e=ye.r,Se=ye.g,Te=ye.b,Pe={r:255*X(_e,255),g:255*X(Se,255),b:255*X(Te,255)},Ve=!0,$e=String(ye.r).substr(-1)==="%"?"prgb":"rgb"):ae(ye.h)&&ae(ye.s)&&ae(ye.v)?(ze=oe(ye.s),De=oe(ye.v),Pe=function(Oe,ke,Le){Oe=6*X(Oe,360),ke=X(ke,100),Le=X(Le,100);var We=b.floor(Oe),Ue=Oe-We,Ze=Le*(1-ke),Xe=Le*(1-Ue*ke),tt=Le*(1-(1-Ue)*ke),Ee=We%6;return{r:255*[Le,Xe,Ze,Ze,tt,Le][Ee],g:255*[tt,Le,Le,Xe,Ze,Ze][Ee],b:255*[Ze,Ze,tt,Le,Le,Xe][Ee]}}(ye.h,ze,De),Ve=!0,$e="hsv"):ae(ye.h)&&ae(ye.s)&&ae(ye.l)&&(ze=oe(ye.s),He=oe(ye.l),Pe=function(Oe,ke,Le){var We,Ue,Ze;function Xe(Ne,je,nt){return nt<0&&(nt+=1),nt>1&&(nt-=1),nt<1/6?Ne+6*(je-Ne)*nt:nt<.5?je:nt<2/3?Ne+(je-Ne)*(2/3-nt)*6:Ne}if(Oe=X(Oe,360),ke=X(ke,100),Le=X(Le,100),ke===0)We=Ue=Ze=Le;else{var tt=Le<.5?Le*(1+ke):Le+ke-Le*ke,Ee=2*Le-tt;We=Xe(Ee,tt,Oe+1/3),Ue=Xe(Ee,tt,Oe),Ze=Xe(Ee,tt,Oe-1/3)}return{r:255*We,g:255*Ue,b:255*Ze}}(ye.h,ze,He),Ve=!0,$e="hsl"),ye.hasOwnProperty("a")&&(Ie=ye.a)),Ie=U(Ie),{ok:Ve,format:ye.format||$e,r:p(255,a(Pe.r,0)),g:p(255,a(Pe.g,0)),b:p(255,a(Pe.b,0)),a:Ie}}(ce);this._originalInput=ce,this._r=ve.r,this._g=ve.g,this._b=ve.b,this._a=ve.a,this._roundA=y(100*this._a)/100,this._format=de.format||ve.format,this._gradientType=de.gradientType,this._r<1&&(this._r=y(this._r)),this._g<1&&(this._g=y(this._g)),this._b<1&&(this._b=y(this._b)),this._ok=ve.ok,this._tc_id=w++}function m(ce,de,ve){ce=X(ce,255),de=X(de,255),ve=X(ve,255);var ye,_e,Se=a(ce,de,ve),Te=p(ce,de,ve),Pe=(Se+Te)/2;if(Se==Te)ye=_e=0;else{var Ie=Se-Te;switch(_e=Pe>.5?Ie/(2-Se-Te):Ie/(Se+Te),Se){case ce:ye=(de-ve)/Ie+(de>1)+720)%360;--de;)ye.h=(ye.h+_e)%360,Se.push(h(ye));return Se}function $(ce,de){de=de||6;for(var ve=h(ce).toHsv(),ye=ve.h,_e=ve.s,Se=ve.v,Te=[],Pe=1/de;de--;)Te.push(h({h:ye,s:_e,v:Se})),Se=(Se+Pe)%1;return Te}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ce=this.toRgb();return(299*ce.r+587*ce.g+114*ce.b)/1e3},getLuminance:function(){var ce,de,ve,ye=this.toRgb();return ce=ye.r/255,de=ye.g/255,ve=ye.b/255,.2126*(ce<=.03928?ce/12.92:b.pow((ce+.055)/1.055,2.4))+.7152*(de<=.03928?de/12.92:b.pow((de+.055)/1.055,2.4))+.0722*(ve<=.03928?ve/12.92:b.pow((ve+.055)/1.055,2.4))},setAlpha:function(ce){return this._a=U(ce),this._roundA=y(100*this._a)/100,this},toHsv:function(){var ce=v(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,v:ce.v,a:this._a}},toHsvString:function(){var ce=v(this._r,this._g,this._b),de=y(360*ce.h),ve=y(100*ce.s),ye=y(100*ce.v);return this._a==1?"hsv("+de+", "+ve+"%, "+ye+"%)":"hsva("+de+", "+ve+"%, "+ye+"%, "+this._roundA+")"},toHsl:function(){var ce=m(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,l:ce.l,a:this._a}},toHslString:function(){var ce=m(this._r,this._g,this._b),de=y(360*ce.h),ve=y(100*ce.s),ye=y(100*ce.l);return this._a==1?"hsl("+de+", "+ve+"%, "+ye+"%)":"hsla("+de+", "+ve+"%, "+ye+"%, "+this._roundA+")"},toHex:function(ce){return _(this._r,this._g,this._b,ce)},toHexString:function(ce){return"#"+this.toHex(ce)},toHex8:function(ce){return function(de,ve,ye,_e,Se){var Te=[K(y(de).toString(16)),K(y(ve).toString(16)),K(y(ye).toString(16)),K(q(_e))];return Se&&Te[0].charAt(0)==Te[0].charAt(1)&&Te[1].charAt(0)==Te[1].charAt(1)&&Te[2].charAt(0)==Te[2].charAt(1)&&Te[3].charAt(0)==Te[3].charAt(1)?Te[0].charAt(0)+Te[1].charAt(0)+Te[2].charAt(0)+Te[3].charAt(0):Te.join("")}(this._r,this._g,this._b,this._a,ce)},toHex8String:function(ce){return"#"+this.toHex8(ce)},toRgb:function(){return{r:y(this._r),g:y(this._g),b:y(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+y(this._r)+", "+y(this._g)+", "+y(this._b)+")":"rgba("+y(this._r)+", "+y(this._g)+", "+y(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:y(100*X(this._r,255))+"%",g:y(100*X(this._g,255))+"%",b:y(100*X(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+y(100*X(this._r,255))+"%, "+y(100*X(this._g,255))+"%, "+y(100*X(this._b,255))+"%)":"rgba("+y(100*X(this._r,255))+"%, "+y(100*X(this._g,255))+"%, "+y(100*X(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(j[_(this._r,this._g,this._b,!0)]||!1)},toFilter:function(ce){var de="#"+S(this._r,this._g,this._b,this._a),ve=de,ye=this._gradientType?"GradientType = 1, ":"";if(ce){var _e=h(ce);ve="#"+S(_e._r,_e._g,_e._b,_e._a)}return"progid:DXImageTransform.Microsoft.gradient("+ye+"startColorstr="+de+",endColorstr="+ve+")"},toString:function(ce){var de=!!ce;ce=ce||this._format;var ve=!1,ye=this._a<1&&this._a>=0;return de||!ye||ce!=="hex"&&ce!=="hex6"&&ce!=="hex3"&&ce!=="hex4"&&ce!=="hex8"&&ce!=="name"?(ce==="rgb"&&(ve=this.toRgbString()),ce==="prgb"&&(ve=this.toPercentageRgbString()),ce!=="hex"&&ce!=="hex6"||(ve=this.toHexString()),ce==="hex3"&&(ve=this.toHexString(!0)),ce==="hex4"&&(ve=this.toHex8String(!0)),ce==="hex8"&&(ve=this.toHex8String()),ce==="name"&&(ve=this.toName()),ce==="hsl"&&(ve=this.toHslString()),ce==="hsv"&&(ve=this.toHsvString()),ve||this.toHexString()):ce==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(ce,de){var ve=ce.apply(null,[this].concat([].slice.call(de)));return this._r=ve._r,this._g=ve._g,this._b=ve._b,this.setAlpha(ve._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(T,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(ce,de){return ce.apply(null,[this].concat([].slice.call(de)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},h.fromRatio=function(ce,de){if(typeof ce=="object"){var ve={};for(var ye in ce)ce.hasOwnProperty(ye)&&(ve[ye]=ye==="a"?ce[ye]:oe(ce[ye]));ce=ve}return h(ce,de)},h.equals=function(ce,de){return!(!ce||!de)&&h(ce).toRgbString()==h(de).toRgbString()},h.random=function(){return h.fromRatio({r:u(),g:u(),b:u()})},h.mix=function(ce,de,ve){ve=ve===0?0:ve||50;var ye=h(ce).toRgb(),_e=h(de).toRgb(),Se=ve/100;return h({r:(_e.r-ye.r)*Se+ye.r,g:(_e.g-ye.g)*Se+ye.g,b:(_e.b-ye.b)*Se+ye.b,a:(_e.a-ye.a)*Se+ye.a})},h.readability=function(ce,de){var ve=h(ce),ye=h(de);return(b.max(ve.getLuminance(),ye.getLuminance())+.05)/(b.min(ve.getLuminance(),ye.getLuminance())+.05)},h.isReadable=function(ce,de,ve){var ye,_e,Se,Te,Pe,Ie=h.readability(ce,de);switch(_e=!1,(Se=ve,(Te=((Se=Se||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&Te!=="AAA"&&(Te="AA"),(Pe=(Se.size||"small").toLowerCase())!=="small"&&Pe!=="large"&&(Pe="small"),ye={level:Te,size:Pe}).level+ye.size){case"AAsmall":case"AAAlarge":_e=Ie>=4.5;break;case"AAlarge":_e=Ie>=3;break;case"AAAsmall":_e=Ie>=7}return _e},h.mostReadable=function(ce,de,ve){var ye,_e,Se,Te,Pe=null,Ie=0;_e=(ve=ve||{}).includeFallbackColors,Se=ve.level,Te=ve.size;for(var ze=0;zeIe&&(Ie=ye,Pe=h(de[ze]));return h.isReadable(ce,Pe,{level:Se,size:Te})||!_e?Pe:(ve.includeFallbackColors=!1,h.mostReadable(ce,["#fff","#000"],ve))};var Q=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=h.hexNames=function(ce){var de={};for(var ve in ce)ce.hasOwnProperty(ve)&&(de[ce[ve]]=ve);return de}(Q);function U(ce){return ce=parseFloat(ce),(isNaN(ce)||ce<0||ce>1)&&(ce=1),ce}function X(ce,de){(function(ye){return typeof ye=="string"&&ye.indexOf(".")!=-1&&parseFloat(ye)===1})(ce)&&(ce="100%");var ve=function(ye){return typeof ye=="string"&&ye.indexOf("%")!=-1}(ce);return ce=p(de,a(0,parseFloat(ce))),ve&&(ce=parseInt(ce*de,10)/100),b.abs(ce-de)<1e-6?1:ce%de/parseFloat(de)}function te(ce){return p(1,a(0,ce))}function W(ce){return parseInt(ce,16)}function K(ce){return ce.length==1?"0"+ce:""+ce}function oe(ce){return ce<=1&&(ce=100*ce+"%"),ce}function q(ce){return b.round(255*parseFloat(ce)).toString(16)}function Y(ce){return W(ce)/255}var ee,me,he,se=(me="[\\s|\\(]+("+(ee="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?",he="[\\s|\\(]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?",{CSS_UNIT:new RegExp(ee),rgb:new RegExp("rgb"+me),rgba:new RegExp("rgba"+he),hsl:new RegExp("hsl"+me),hsla:new RegExp("hsla"+he),hsv:new RegExp("hsv"+me),hsva:new RegExp("hsva"+he),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function ae(ce){return!!se.CSS_UNIT.exec(ce)}d.exports?d.exports=h:(c=(function(){return h}).call(l,n,l,d))===void 0||(d.exports=c)})(Math)},37816:function(d){d.exports=n,d.exports.float32=d.exports.float=n,d.exports.fract32=d.exports.fract=function(c,b){if(c.length){if(c instanceof Float32Array)return new Float32Array(c.length);b instanceof Float32Array||(b=n(c));for(var i=0,O=b.length;i":(O.length>100&&(O=O.slice(0,99)+"…"),O=O.replace(b,function(w){switch(w){case` +`);return Rt&&(Qt=function(tn){for(var Kt,fn="",dn=0;dn>>4&15)+"0123456789abcdef".charAt(15&Kt);return fn}(function(tn){for(var Kt=Array(tn.length>>2),fn=0;fn>5]|=(255&tn.charCodeAt(fn/8))<<24-fn%32;var dn,vn,Nn,er,En,In,jn,xr,Sr,ar,Fn,ir=8*tn.length;for(tn=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],fn=Array(64),Kt[ir>>5]|=128<<24-ir%32,Kt[15+(ir+64>>9<<4)]=ir,xr=0;xrSr;Sr++){var Wn;16>Sr?fn[Sr]=Kt[Sr+xr]:(ar=Sr,Fn=te(Fn=X(Fn=fn[Sr-2],17)^X(Fn,19)^Fn>>>10,fn[Sr-7]),Wn=X(Wn=fn[Sr-15],7)^X(Wn,18)^Wn>>>3,fn[ar]=te(te(Fn,Wn),fn[Sr-16])),ar=te(te(te(te(jn,ar=X(ar=er,6)^X(ar,11)^X(ar,25)),er&En^~er&In),Ct[Sr]),fn[Sr]),Fn=te(jn=X(jn=ir,2)^X(jn,13)^X(jn,22),ir&dn^ir&vn^dn&vn),jn=In,In=En,En=er,er=te(Nn,ar),Nn=vn,vn=dn,dn=ir,ir=te(ar,Fn)}tn[0]=te(ir,tn[0]),tn[1]=te(dn,tn[1]),tn[2]=te(vn,tn[2]),tn[3]=te(Nn,tn[3]),tn[4]=te(er,tn[4]),tn[5]=te(En,tn[5]),tn[6]=te(In,tn[6]),tn[7]=te(jn,tn[7])}for(Kt="",fn=0;fn<32*tn.length;fn+=8)Kt+=String.fromCharCode(tn[fn>>5]>>>24-fn%32&255);return Kt}(function(tn){for(var Kt,fn,dn="",vn=-1;++vn=Kt&&56320<=fn&&57343>=fn&&(Kt=65536+((1023&Kt)<<10)+(1023&fn),vn++),127>=Kt?dn+=String.fromCharCode(Kt):2047>=Kt?dn+=String.fromCharCode(192|Kt>>>6&31,128|63&Kt):65535>=Kt?dn+=String.fromCharCode(224|Kt>>>12&15,128|Kt>>>6&63,128|63&Kt):2097151>=Kt&&(dn+=String.fromCharCode(240|Kt>>>18&7,128|Kt>>>12&63,128|Kt>>>6&63,128|63&Kt));return dn}(Pt))),Rt[Qt])?Rt[Qt].apply(null,Lt):(Pt=Function.apply(null,at.concat(Pt)),Rt&&(Rt[Qt]=Pt),Pt.apply(null,Lt))}}}function q(lt){return Array.isArray(lt)||Ie(lt)||a(lt)}function Y(lt){return lt.sort(function(yt,zt){return yt==="viewport"?-1:zt==="viewport"?1:yt"+co+"?"+cr+".constant["+co+"]:0;"}).join(""),"}}else{","if(",Vr,"(",cr,".buffer)){",fr,"=",Lr,".createStream(",34962,",",cr,".buffer);","}else{",fr,"=",Lr,".getBuffer(",cr,".buffer);","}",Eo,'="type" in ',cr,"?",Er.glTypes,"[",cr,".type]:",fr,".dtype;",to.normalized,"=!!",cr,".normalized;"),tr("size"),tr("offset"),tr("stride"),tr("divisor"),Hn("}}"),Hn.exit("if(",to.isStream,"){",Lr,".destroyStream(",fr,");","}"),to})}),gr}function Sr(hn,zn,Zn,yr,gr){function vr(_o){var fr=Qn[_o];fr&&(tr[_o]=fr)}var nr=function(_o,fr){if(typeof(Eo=_o.static).frag=="string"&&typeof Eo.vert=="string"){if(0"u"?"Date.now()":"performance.now()"}function nr(_o){_o(tr=zn.def(),"=",vr(),";"),typeof gr=="string"?_o(Er,".count+=",gr,";"):_o(Er,".count++;"),tn&&(yr?_o(cr=zn.def(),"=",to,".getNumPendingQueries();"):_o(to,".beginQuery(",Er,");"))}function Qn(_o){_o(Er,".cpuTime+=",vr(),"-",tr,";"),tn&&(yr?_o(to,".pushScopeStats(",cr,",",to,".getNumPendingQueries(),",Er,");"):_o(to,".endQuery();"))}function Hn(_o){var fr=zn.def(Vr,".profile");zn(Vr,".profile=",_o,";"),zn.exit(Vr,".profile=",fr,";")}var tr,cr,Lr=hn.shared,Er=hn.stats,Vr=Lr.current,to=Lr.timer;if(Zn=Zn.profile){if(me(Zn))return void(Zn.enable?(nr(zn),Qn(zn.exit),Hn("true")):Hn("false"));Hn(Zn=Zn.append(hn,zn))}else Zn=zn.def(Vr,".profile");nr(Lr=hn.block()),zn("if(",Zn,"){",Lr,"}"),Qn(hn=hn.block()),zn.exit("if(",Zn,"){",hn,"}")}function Ir(hn,zn,Zn,yr,gr){function vr(Qn,Hn,tr){function cr(){zn("if(!",to,".buffer){",Er,".enableVertexAttribArray(",Vr,");}");var ao,co=tr.type;ao=tr.size?zn.def(tr.size,"||",Hn):Hn,zn("if(",to,".type!==",co,"||",to,".size!==",ao,"||",Eo.map(function(Go){return to+"."+Go+"!=="+tr[Go]}).join("||"),"){",Er,".bindBuffer(",34962,",",_o,".buffer);",Er,".vertexAttribPointer(",[Vr,ao,co,tr.normalized,tr.stride,tr.offset],");",to,".type=",co,";",to,".size=",ao,";",Eo.map(function(Go){return to+"."+Go+"="+tr[Go]+";"}).join(""),"}"),Pn&&(co=tr.divisor,zn("if(",to,".divisor!==",co,"){",hn.instancing,".vertexAttribDivisorANGLE(",[Vr,co],");",to,".divisor=",co,";}"))}function Lr(){zn("if(",to,".buffer){",Er,".disableVertexAttribArray(",Vr,");",to,".buffer=null;","}if(",_t.map(function(ao,co){return to+"."+ao+"!=="+fr[co]}).join("||"),"){",Er,".vertexAttrib4f(",Vr,",",fr,");",_t.map(function(ao,co){return to+"."+ao+"="+fr[co]+";"}).join(""),"}")}var Er=nr.gl,Vr=zn.def(Qn,".location"),to=zn.def(nr.attributes,"[",Vr,"]");Qn=tr.state;var _o=tr.buffer,fr=[tr.x,tr.y,tr.z,tr.w],Eo=["buffer","normalized","offset","stride"];Qn===1?cr():Qn===2?Lr():(zn("if(",Qn,"===",1,"){"),cr(),zn("}else{"),Lr(),zn("}"))}var nr=hn.shared;yr.forEach(function(Qn){var Hn,tr=Qn.name,cr=Zn.attributes[tr];if(cr){if(!gr(cr))return;Hn=cr.append(hn,zn)}else{if(!gr(bt))return;var Lr=hn.scopeAttrib(tr);Hn={},Object.keys(new go).forEach(function(Er){Hn[Er]=zn.def(Lr,".",Er)})}vr(hn.link(Qn),function(Er){switch(Er){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(Qn.info.type),Hn)})}function zr(hn,zn,Zn,yr,gr,vr){for(var nr,Qn=hn.shared,Hn=Qn.gl,tr=0;tr>1)",Qn],");")}function Go(){Zn(Hn,".drawArraysInstancedANGLE(",[to,_o,fr,Qn],");")}Vr&&Vr!=="null"?ao?co():(Zn("if(",Vr,"){"),co(),Zn("}else{"),Go(),Zn("}")):Go()}function nr(){function co(){Zn(cr+".drawElements("+[to,fr,Eo,_o+"<<(("+Eo+"-5121)>>1)"]+");")}function Go(){Zn(cr+".drawArrays("+[to,_o,fr]+");")}Vr&&Vr!=="null"?ao?co():(Zn("if(",Vr,"){"),co(),Zn("}else{"),Go(),Zn("}")):Go()}var Qn,Hn,tr=hn.shared,cr=tr.gl,Lr=tr.draw,Er=yr.draw,Vr=function(){var co=Er.elements,Go=zn;return co?((co.contextDep&&yr.contextDynamic||co.propDep)&&(Go=Zn),co=co.append(hn,Go),Er.elementsActive&&Go("if("+co+")"+cr+".bindBuffer(34963,"+co+".buffer.buffer);")):(co=Go.def(),Go(co,"=",Lr,".","elements",";","if(",co,"){",cr,".bindBuffer(",34963,",",co,".buffer.buffer);}","else if(",tr.vao,".currentVAO){",co,"=",hn.shared.elements+".getElements("+tr.vao,".currentVAO.elements);",br?"":"if("+co+")"+cr+".bindBuffer(34963,"+co+".buffer.buffer);","}")),co}(),to=gr("primitive"),_o=gr("offset"),fr=function(){var co=Er.count,Go=zn;return co?((co.contextDep&&yr.contextDynamic||co.propDep)&&(Go=Zn),co=co.append(hn,Go)):co=Go.def(Lr,".","count"),co}();if(typeof fr=="number"){if(fr===0)return}else Zn("if(",fr,"){"),Zn.exit("}");Pn&&(Qn=gr("instances"),Hn=hn.instancing);var Eo=Vr+".type",ao=Er.elements&&me(Er.elements)&&!Er.vaoActive;Pn&&(typeof Qn!="number"||0<=Qn)?typeof Qn=="string"?(Zn("if(",Qn,">0){"),vr(),Zn("}else if(",Qn,"<0){"),nr(),Zn("}")):vr():nr()}function Rr(hn,zn,Zn,yr,gr){return gr=(zn=er()).proc("body",gr),Pn&&(zn.instancing=gr.def(zn.shared.extensions,".angle_instanced_arrays")),hn(zn,gr,Zn,yr),zn.compile().body}function $r(hn,zn,Zn,yr){Kn(hn,zn),Zn.useVAO?Zn.drawVAO?zn(hn.shared.vao,".setVAO(",Zn.drawVAO.append(hn,zn),");"):zn(hn.shared.vao,".setVAO(",hn.shared.vao,".targetVAO);"):(zn(hn.shared.vao,".setVAO(null);"),Ir(hn,zn,Zn,yr.attributes,function(){return!0})),zr(hn,zn,Zn,yr.uniforms,function(){return!0},!1),Fr(hn,zn,zn,Zn)}function Kr(hn,zn,Zn,yr){function gr(){return!0}hn.batchId="a1",Kn(hn,zn),Ir(hn,zn,Zn,yr.attributes,gr),zr(hn,zn,Zn,yr.uniforms,gr,!1),Fr(hn,zn,zn,Zn)}function Co(hn,zn,Zn,yr){function gr(Lr){return Lr.contextDep&&nr||Lr.propDep}function vr(Lr){return!gr(Lr)}Kn(hn,zn);var nr=Zn.contextDep,Qn=zn.def(),Hn=zn.def();hn.shared.props=Hn,hn.batchId=Qn;var tr=hn.scope(),cr=hn.scope();zn(tr.entry,"for(",Qn,"=0;",Qn,"<","a1",";++",Qn,"){",Hn,"=","a0","[",Qn,"];",cr,"}",tr.exit),Zn.needsContext&&ar(hn,cr,Zn.context),Zn.needsFramebuffer&&Fn(hn,cr,Zn.framebuffer),Wn(hn,cr,Zn.state,gr),Zn.profile&&gr(Zn.profile)&&_r(hn,cr,Zn,!1,!0),yr?(Zn.useVAO?Zn.drawVAO?gr(Zn.drawVAO)?cr(hn.shared.vao,".setVAO(",Zn.drawVAO.append(hn,cr),");"):tr(hn.shared.vao,".setVAO(",Zn.drawVAO.append(hn,tr),");"):tr(hn.shared.vao,".setVAO(",hn.shared.vao,".targetVAO);"):(tr(hn.shared.vao,".setVAO(null);"),Ir(hn,tr,Zn,yr.attributes,vr),Ir(hn,cr,Zn,yr.attributes,gr)),zr(hn,tr,Zn,yr.uniforms,vr,!1),zr(hn,cr,Zn,yr.uniforms,gr,!0),Fr(hn,tr,cr,Zn)):(zn=hn.global.def("{}"),yr=Zn.shader.progVar.append(hn,cr),Hn=cr.def(yr,".id"),tr=cr.def(zn,"[",Hn,"]"),cr(hn.shared.gl,".useProgram(",yr,".program);","if(!",tr,"){",tr,"=",zn,"[",Hn,"]=",hn.link(function(Lr){return Rr(Kr,hn,Zn,Lr,2)}),"(",yr,");}",tr,".call(this,a0[",Qn,"],",Qn,");"))}function so(hn,zn){function Zn(Qn){var Hn=zn.shader[Qn];Hn&&(Hn=Hn.append(hn,yr),isNaN(Hn)?yr.set(gr.shader,"."+Qn,Hn):yr.set(gr.shader,"."+Qn,hn.link(Hn,{stable:!0})))}var yr=hn.proc("scope",3);hn.batchId="a2";var gr=hn.shared,vr=gr.current;if(ar(hn,yr,zn.context),zn.framebuffer&&zn.framebuffer.append(hn,yr),Y(Object.keys(zn.state)).forEach(function(Qn){var Hn=zn.state[Qn],tr=Hn.append(hn,yr);R(tr)?tr.forEach(function(cr,Lr){isNaN(cr)?yr.set(hn.next[Qn],"["+Lr+"]",cr):yr.set(hn.next[Qn],"["+Lr+"]",hn.link(cr,{stable:!0}))}):me(Hn)?yr.set(gr.next,"."+Qn,hn.link(tr,{stable:!0})):yr.set(gr.next,"."+Qn,tr)}),_r(hn,yr,zn,!0,!0),["elements","offset","count","instances","primitive"].forEach(function(Qn){var Hn=zn.draw[Qn];Hn&&(Hn=Hn.append(hn,yr),isNaN(Hn)?yr.set(gr.draw,"."+Qn,Hn):yr.set(gr.draw,"."+Qn,hn.link(Hn),{stable:!0}))}),Object.keys(zn.uniforms).forEach(function(Qn){var Hn=zn.uniforms[Qn].append(hn,yr);Array.isArray(Hn)&&(Hn="["+Hn.map(function(tr){return isNaN(tr)?tr:hn.link(tr,{stable:!0})})+"]"),yr.set(gr.uniforms,"["+hn.link(yt.id(Qn),{stable:!0})+"]",Hn)}),Object.keys(zn.attributes).forEach(function(Qn){var Hn=zn.attributes[Qn].append(hn,yr),tr=hn.scopeAttrib(Qn);Object.keys(new go).forEach(function(cr){yr.set(tr,"."+cr,Hn[cr])})}),zn.scopeVAO){var nr=zn.scopeVAO.append(hn,yr);isNaN(nr)?yr.set(gr.vao,".targetVAO",nr):yr.set(gr.vao,".targetVAO",hn.link(nr,{stable:!0}))}Zn("vert"),Zn("frag"),0=--this.refCount&&Lt(this)},it.profile&&(Rt.getTotalRenderbufferSize=function(){var Qt=0;return Object.keys(Yt).forEach(function(Pt){Qt+=Yt[Pt].stats.size}),Qt}),{create:function(Qt,Pt){function tn(fn,dn){var vn=0,Nn=0,er=32854;if(typeof fn=="object"&&fn?("shape"in fn?(vn=0|(Nn=fn.shape)[0],Nn=0|Nn[1]):("radius"in fn&&(vn=Nn=0|fn.radius),"width"in fn&&(vn=0|fn.width),"height"in fn&&(Nn=0|fn.height)),"format"in fn&&(er=xt[fn.format])):typeof fn=="number"?(vn=0|fn,Nn=typeof dn=="number"?0|dn:vn):fn||(vn=Nn=1),vn!==Kt.width||Nn!==Kt.height||er!==Kt.format)return tn.width=Kt.width=vn,tn.height=Kt.height=Nn,Kt.format=er,lt.bindRenderbuffer(36161,Kt.renderbuffer),lt.renderbufferStorage(36161,er,vn,Nn),it.profile&&(Kt.stats.size=It[Kt.format]*Kt.width*Kt.height),tn.format=Zt[Kt.format],tn}var Kt=new at(lt.createRenderbuffer());return Yt[Kt.id]=Kt,Rt.renderbufferCount++,tn(Qt,Pt),tn.resize=function(fn,dn){var vn=0|fn,Nn=0|dn||vn;return vn===Kt.width&&Nn===Kt.height||(tn.width=Kt.width=vn,tn.height=Kt.height=Nn,lt.bindRenderbuffer(36161,Kt.renderbuffer),lt.renderbufferStorage(36161,Kt.format,vn,Nn),it.profile&&(Kt.stats.size=It[Kt.format]*Kt.width*Kt.height)),tn},tn._reglType="renderbuffer",tn._renderbuffer=Kt,it.profile&&(tn.stats=Kt.stats),tn.destroy=function(){Kt.decRef()},tn},clear:function(){ze(Yt).forEach(Lt)},restore:function(){ze(Yt).forEach(function(Qt){Qt.renderbuffer=lt.createRenderbuffer(),lt.bindRenderbuffer(36161,Qt.renderbuffer),lt.renderbufferStorage(36161,Qt.format,Qt.width,Qt.height)}),lt.bindRenderbuffer(36161,null)}}},en=[];en[6408]=4,en[6407]=3;var Gt=[];Gt[5121]=1,Gt[5126]=4,Gt[36193]=2;var Ct=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],_t=["x","y","z","w"],nn="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),gn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},bn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},mn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},vt={cw:2304,ccw:2305},bt=new ee(!1,!1,!1,function(){});return function(lt){function yt(){if(Kr.length===0)En&&En.update(),go=null;else{go=_e.next(yt),Yt();for(var Pn=Kr.length-1;0<=Pn;--Pn){var Yn=Kr[Pn];Yn&&Yn(Sr,null,0)}tn.flush(),En&&En.update()}}function zt(){!go&&0=Kr.length&&Rt()}}}}function Xt(){var Pn=Rr.viewport,Yn=Rr.scissor_box;Pn[0]=Pn[1]=Yn[0]=Yn[1]=0,Sr.viewportWidth=Sr.framebufferWidth=Sr.drawingBufferWidth=Pn[2]=Yn[2]=tn.drawingBufferWidth,Sr.viewportHeight=Sr.framebufferHeight=Sr.drawingBufferHeight=Pn[3]=Yn[3]=tn.drawingBufferHeight}function Yt(){Sr.tick+=1,Sr.time=Pt(),Xt(),Fr.procs.poll()}function Qt(){_r.refresh(),Xt(),Fr.procs.refresh(),En&&En.update()}function Pt(){return(Se()-In)/1e3}if(!(lt=O(lt)))return null;var tn=lt.gl,Kt=tn.getContextAttributes();tn.isContextLost();var fn=function(Pn,Yn){function br(Qr){var Wr;Qr=Qr.toLowerCase();try{Wr=dr[Qr]=Pn.getExtension(Qr)}catch{}return!!Wr}for(var dr={},Cr=0;CrYn;++Yn)li(de({framebuffer:Pn.framebuffer.faces[Yn]},Pn),xt);else li(Pn,xt);else xt(0,Pn)},prop:ye.define.bind(null,1),context:ye.define.bind(null,2),this:ye.define.bind(null,3),draw:Lt({}),buffer:function(Pn){return Fn.create(Pn,34962,!1,!1)},elements:function(Pn){return ir.create(Pn,!1)},texture:_r.create2D,cube:_r.createCube,renderbuffer:Ir.create,framebuffer:zr.create,framebufferCube:zr.createCube,vao:Wn.createVAO,attributes:Kt,frame:Zt,on:function(Pn,Yn){var br;switch(Pn){case"frame":return Zt(Yn);case"lost":br=Co;break;case"restore":br=so;break;case"destroy":br=So}return br.push(Yn),{cancel:function(){for(var dr=0;dr4294967295||y(a)!==a)throw new w("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],h=!0,m=!0;if("length"in p&&O){var v=O(p,"length");v&&!v.configurable&&(h=!1),v&&!v.writable&&(m=!1)}return(h||m||!u)&&(i?b(p,"length",a,!0,!0):b(p,"length",a)),p}},29936:function(d,l,n){d.exports=b;var c=n(61252).EventEmitter;function b(){c.call(this)}n(6768)(b,c),b.Readable=n(12348),b.Writable=n(11288),b.Duplex=n(15316),b.Transform=n(22477),b.PassThrough=n(27136),b.finished=n(15932),b.pipeline=n(38180),b.Stream=b,b.prototype.pipe=function(i,O){var w=this;function y(_){i.writable&&i.write(_)===!1&&w.pause&&w.pause()}function p(){w.readable&&w.resume&&w.resume()}w.on("data",y),i.on("drain",p),i._isStdio||O&&O.end===!1||(w.on("end",u),w.on("close",h));var a=!1;function u(){a||(a=!0,i.end())}function h(){a||(a=!0,typeof i.destroy=="function"&&i.destroy())}function m(_){if(v(),c.listenerCount(this,"error")===0)throw _}function v(){w.removeListener("data",y),i.removeListener("drain",p),w.removeListener("end",u),w.removeListener("close",h),w.removeListener("error",m),i.removeListener("error",m),w.removeListener("end",v),w.removeListener("close",v),i.removeListener("close",v)}return w.on("error",m),i.on("error",m),w.on("end",v),w.on("close",v),i.on("close",v),i.emit("pipe",w),i}},92784:function(d){var l={};function n(b,i,O){O||(O=Error);var w=function(y){var p,a;function u(h,m,v){return y.call(this,function(_,S,A){return typeof i=="string"?i:i(_,S,A)}(h,m,v))||this}return a=y,(p=u).prototype=Object.create(a.prototype),p.prototype.constructor=p,p.__proto__=a,u}(O);w.prototype.name=O.name,w.prototype.code=b,l[b]=w}function c(b,i){if(Array.isArray(b)){var O=b.length;return b=b.map(function(w){return String(w)}),O>2?"one of ".concat(i," ").concat(b.slice(0,O-1).join(", "),", or ")+b[O-1]:O===2?"one of ".concat(i," ").concat(b[0]," or ").concat(b[1]):"of ".concat(i," ").concat(b[0])}return"of ".concat(i," ").concat(String(b))}n("ERR_INVALID_OPT_VALUE",function(b,i){return'The value "'+i+'" is invalid for option "'+b+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(b,i,O){var w,y,p,a,u;if(typeof i=="string"&&(y="not ",i.substr(0,4)===y)?(w="must not be",i=i.replace(/^not /,"")):w="must be",function(m,v,_){return(_===void 0||_>m.length)&&(_=m.length),m.substring(_-9,_)===v}(b," argument"))p="The ".concat(b," ").concat(w," ").concat(c(i,"type"));else{var h=(typeof u!="number"&&(u=0),u+1>(a=b).length||a.indexOf(".",u)===-1?"argument":"property");p='The "'.concat(b,'" ').concat(h," ").concat(w," ").concat(c(i,"type"))}return p+". Received type ".concat(typeof O)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),d.exports.i=l},15316:function(d,l,n){var c=n(4168),b=Object.keys||function(m){var v=[];for(var _ in m)v.push(_);return v};d.exports=a;var i=n(12348),O=n(11288);n(6768)(a,i);for(var w=b(O.prototype),y=0;y0)if(typeof se=="string"||ye.objectMode||Object.getPrototypeOf(se)===y.prototype||(se=function(_e){return y.from(_e)}(se)),ce)ye.endEmitted?E(he,new T):I(he,ye,se,!0);else if(ye.ended)E(he,new R);else{if(ye.destroyed)return!1;ye.reading=!1,ye.decoder&&!ae?(se=ye.decoder.write(se),ye.objectMode||se.length!==0?I(he,ye,se,!1):U(he,ye)):I(he,ye,se,!1)}else ce||(ye.reading=!1,U(he,ye));return!ye.ended&&(ye.lengthse.highWaterMark&&(se.highWaterMark=function(ae){return ae>=z?ae=z:(ae--,ae|=ae>>>1,ae|=ae>>>2,ae|=ae>>>4,ae|=ae>>>8,ae|=ae>>>16,ae++),ae}(he)),he<=se.length?he:se.ended?se.length:(se.needReadable=!0,0))}function Q(he){var se=he._readableState;i("emitReadable",se.needReadable,se.emittedReadable),se.needReadable=!1,se.emittedReadable||(i("emitReadable",se.flowing),se.emittedReadable=!0,b.nextTick(j,he))}function j(he){var se=he._readableState;i("emitReadable_",se.destroyed,se.length,se.ended),se.destroyed||!se.length&&!se.ended||(he.emit("readable"),se.emittedReadable=!1),se.needReadable=!se.flowing&&!se.ended&&se.length<=se.highWaterMark,oe(he)}function U(he,se){se.readingMore||(se.readingMore=!0,b.nextTick(X,he,se))}function X(he,se){for(;!se.reading&&!se.ended&&(se.length0,se.resumeScheduled&&!se.paused?se.flowing=!0:he.listenerCount("data")>0&&he.resume()}function W(he){i("readable nexttick read 0"),he.read(0)}function K(he,se){i("resume",se.reading),se.reading||he.read(0),se.resumeScheduled=!1,he.emit("resume"),oe(he),se.flowing&&!se.reading&&he.read(0)}function oe(he){var se=he._readableState;for(i("flow",se.flowing);se.flowing&&he.read()!==null;);}function q(he,se){return se.length===0?null:(se.objectMode?ae=se.buffer.shift():!he||he>=se.length?(ae=se.decoder?se.buffer.join(""):se.buffer.length===1?se.buffer.first():se.buffer.concat(se.length),se.buffer.clear()):ae=se.buffer.consume(he,se.decoder),ae);var ae}function Y(he){var se=he._readableState;i("endReadable",se.endEmitted),se.endEmitted||(se.ended=!0,b.nextTick(ee,se,he))}function ee(he,se){if(i("endReadableNT",he.endEmitted,he.length),!he.endEmitted&&he.length===0&&(he.endEmitted=!0,se.readable=!1,se.emit("end"),he.autoDestroy)){var ae=se._writableState;(!ae||ae.autoDestroy&&ae.finished)&&se.destroy()}}function me(he,se){for(var ae=0,ce=he.length;ae=se.highWaterMark:se.length>0)||se.ended))return i("read: emitReadable",se.length,se.ended),se.length===0&&se.ended?Y(this):Q(this),null;if((he=$(he,se))===0&&se.ended)return se.length===0&&Y(this),null;var ce,de=se.needReadable;return i("need readable",de),(se.length===0||se.length-he0?q(he,se):null)===null?(se.needReadable=se.length<=se.highWaterMark,he=0):(se.length-=he,se.awaitDrain=0),se.length===0&&(se.ended||(se.needReadable=!0),ae!==he&&se.ended&&Y(this)),ce!==null&&this.emit("data",ce),ce},D.prototype._read=function(he){E(this,new M("_read()"))},D.prototype.pipe=function(he,se){var ae=this,ce=this._readableState;switch(ce.pipesCount){case 0:ce.pipes=he;break;case 1:ce.pipes=[ce.pipes,he];break;default:ce.pipes.push(he)}ce.pipesCount+=1,i("pipe count=%d opts=%j",ce.pipesCount,se);var de=se&&se.end===!1||he===b.stdout||he===b.stderr?ze:ve;function ve(){i("onend"),he.end()}ce.endEmitted?b.nextTick(de):ae.once("end",de),he.on("unpipe",function De(He,Ve){i("onunpipe"),He===ae&&Ve&&Ve.hasUnpiped===!1&&(Ve.hasUnpiped=!0,i("cleanup"),he.removeListener("close",Pe),he.removeListener("finish",Ie),he.removeListener("drain",ye),he.removeListener("error",Te),he.removeListener("unpipe",De),ae.removeListener("end",ve),ae.removeListener("end",ze),ae.removeListener("data",Se),_e=!0,!ce.awaitDrain||he._writableState&&!he._writableState.needDrain||ye())});var ye=function(De){return function(){var He=De._readableState;i("pipeOnDrain",He.awaitDrain),He.awaitDrain&&He.awaitDrain--,He.awaitDrain===0&&O(De,"data")&&(He.flowing=!0,oe(De))}}(ae);he.on("drain",ye);var _e=!1;function Se(De){i("ondata");var He=he.write(De);i("dest.write",He),He===!1&&((ce.pipesCount===1&&ce.pipes===he||ce.pipesCount>1&&me(ce.pipes,he)!==-1)&&!_e&&(i("false write response, pause",ce.awaitDrain),ce.awaitDrain++),ae.pause())}function Te(De){i("onerror",De),ze(),he.removeListener("error",Te),O(he,"error")===0&&E(he,De)}function Pe(){he.removeListener("finish",Ie),ze()}function Ie(){i("onfinish"),he.removeListener("close",Pe),ze()}function ze(){i("unpipe"),ae.unpipe(he)}return ae.on("data",Se),function(De,He,Ve){if(typeof De.prependListener=="function")return De.prependListener(He,Ve);De._events&&De._events[He]?Array.isArray(De._events[He])?De._events[He].unshift(Ve):De._events[He]=[Ve,De._events[He]]:De.on(He,Ve)}(he,"error",Te),he.once("close",Pe),he.once("finish",Ie),he.emit("pipe",ae),ce.flowing||(i("pipe resume"),ae.resume()),he},D.prototype.unpipe=function(he){var se=this._readableState,ae={hasUnpiped:!1};if(se.pipesCount===0)return this;if(se.pipesCount===1)return he&&he!==se.pipes||(he||(he=se.pipes),se.pipes=null,se.pipesCount=0,se.flowing=!1,he&&he.emit("unpipe",this,ae)),this;if(!he){var ce=se.pipes,de=se.pipesCount;se.pipes=null,se.pipesCount=0,se.flowing=!1;for(var ve=0;ve0,ce.flowing!==!1&&this.resume()):he==="readable"&&(ce.endEmitted||ce.readableListening||(ce.readableListening=ce.needReadable=!0,ce.flowing=!1,ce.emittedReadable=!1,i("on readable",ce.length,ce.reading),ce.length?Q(this):ce.reading||b.nextTick(W,this))),ae},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(he,se){var ae=w.prototype.removeListener.call(this,he,se);return he==="readable"&&b.nextTick(te,this),ae},D.prototype.removeAllListeners=function(he){var se=w.prototype.removeAllListeners.apply(this,arguments);return he!=="readable"&&he!==void 0||b.nextTick(te,this),se},D.prototype.resume=function(){var he=this._readableState;return he.flowing||(i("resume"),he.flowing=!he.readableListening,function(se,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,b.nextTick(K,se,ae))}(this,he)),he.paused=!1,this},D.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(he){var se=this,ae=this._readableState,ce=!1;for(var de in he.on("end",function(){if(i("wrapped end"),ae.decoder&&!ae.ended){var ye=ae.decoder.end();ye&&ye.length&&se.push(ye)}se.push(null)}),he.on("data",function(ye){i("wrapped data"),ae.decoder&&(ye=ae.decoder.write(ye)),ae.objectMode&&ye==null||(ae.objectMode||ye&&ye.length)&&(se.push(ye)||(ce=!0,he.pause()))}),he)this[de]===void 0&&typeof he[de]=="function"&&(this[de]=function(ye){return function(){return he[ye].apply(he,arguments)}}(de));for(var ve=0;ve-1))throw new T(U);return this._writableState.defaultEncoding=U,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),D.prototype._write=function(U,X,te){te(new _("_write()"))},D.prototype._writev=null,D.prototype.end=function(U,X,te){var W=this._writableState;return typeof U=="function"?(te=U,U=null,X=null):typeof X=="function"&&(te=X,X=null),U!=null&&this.write(U,X),W.corked&&(W.corked=1,this.uncork()),W.ending||function(K,oe,q){oe.ending=!0,j(K,oe),q&&(oe.finished?b.nextTick(q):K.once("finish",q)),oe.ended=!0,K.writable=!1}(this,W,te),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(U){this._writableState&&(this._writableState.destroyed=U)}}),D.prototype.destroy=u.destroy,D.prototype._undestroy=u.undestroy,D.prototype._destroy=function(U,X){X(U)}},60328:function(d,l,n){var c,b=n(4168);function i(R,M,T){return M in R?Object.defineProperty(R,M,{value:T,enumerable:!0,configurable:!0,writable:!0}):R[M]=T,R}var O=n(15932),w=Symbol("lastResolve"),y=Symbol("lastReject"),p=Symbol("error"),a=Symbol("ended"),u=Symbol("lastPromise"),h=Symbol("handlePromise"),m=Symbol("stream");function v(R,M){return{value:R,done:M}}function _(R){var M=R[w];if(M!==null){var T=R[m].read();T!==null&&(R[u]=null,R[w]=null,R[y]=null,M(v(T,!1)))}}function S(R){b.nextTick(_,R)}var A=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((i(c={get stream(){return this[m]},next:function(){var R=this,M=this[p];if(M!==null)return Promise.reject(M);if(this[a])return Promise.resolve(v(void 0,!0));if(this[m].destroyed)return new Promise(function(L,D){b.nextTick(function(){R[p]?D(R[p]):L(v(void 0,!0))})});var T,E=this[u];if(E)T=new Promise(function(L,D){return function(k,I){L.then(function(){D[a]?k(v(void 0,!0)):D[h](k,I)},I)}}(E,this));else{var C=this[m].read();if(C!==null)return Promise.resolve(v(C,!1));T=new Promise(this[h])}return this[u]=T,T}},Symbol.asyncIterator,function(){return this}),i(c,"return",function(){var R=this;return new Promise(function(M,T){R[m].destroy(null,function(E){E?T(E):M(v(void 0,!0))})})}),c),A);d.exports=function(R){var M,T=Object.create(x,(i(M={},m,{value:R,writable:!0}),i(M,w,{value:null,writable:!0}),i(M,y,{value:null,writable:!0}),i(M,p,{value:null,writable:!0}),i(M,a,{value:R._readableState.endEmitted,writable:!0}),i(M,h,{value:function(E,C){var L=T[m].read();L?(T[u]=null,T[w]=null,T[y]=null,E(v(L,!1))):(T[w]=E,T[y]=C)},writable:!0}),M));return T[u]=null,O(R,function(E){if(E&&E.code!=="ERR_STREAM_PREMATURE_CLOSE"){var C=T[y];return C!==null&&(T[u]=null,T[w]=null,T[y]=null,C(E)),void(T[p]=E)}var L=T[w];L!==null&&(T[u]=null,T[w]=null,T[y]=null,L(v(void 0,!0))),T[a]=!0}),R.on("readable",S.bind(null,T)),T}},47264:function(d,l,n){function c(p,a){var u=Object.keys(p);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(p);a&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(p,m).enumerable})),u.push.apply(u,h)}return u}function b(p,a,u){return a in p?Object.defineProperty(p,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):p[a]=u,p}function i(p,a){for(var u=0;u0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(h){var m={data:h,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(this.length!==0){var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(h){if(this.length===0)return"";for(var m=this.head,v=""+m.data;m=m.next;)v+=h+m.data;return v}},{key:"concat",value:function(h){if(this.length===0)return O.alloc(0);for(var m,v,_,S=O.allocUnsafe(h>>>0),A=this.head,x=0;A;)m=A.data,v=S,_=x,O.prototype.copy.call(m,v,_),x+=A.data.length,A=A.next;return S}},{key:"consume",value:function(h,m){var v;return hS.length?S.length:h;if(A===S.length?_+=S:_+=S.slice(0,h),(h-=A)==0){A===S.length?(++v,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=S.slice(A));break}++v}return this.length-=v,_}},{key:"_getBuffer",value:function(h){var m=O.allocUnsafe(h),v=this.head,_=1;for(v.data.copy(m),h-=v.data.length;v=v.next;){var S=v.data,A=h>S.length?S.length:h;if(S.copy(m,m.length-h,0,A),(h-=A)==0){A===S.length?(++_,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=S.slice(A));break}++_}return this.length-=_,m}},{key:y,value:function(h,m){return w(this,function(v){for(var _=1;_0,function(R){m||(m=R),R&&_.forEach(y),x||(_.forEach(y),v(m))})});return u.reduce(p)}},24888:function(d,l,n){var c=n(92784).i.ERR_INVALID_OPT_VALUE;d.exports={getHighWaterMark:function(b,i,O,w){var y=function(p,a,u){return p.highWaterMark!=null?p.highWaterMark:a?p[u]:null}(i,w,O);if(y!=null){if(!isFinite(y)||Math.floor(y)!==y||y<0)throw new c(w?O:"highWaterMark",y);return Math.floor(y)}return b.objectMode?16:16384}}},4776:function(d,l,n){d.exports=n(61252).EventEmitter},86032:function(d,l,n){var c=n(30456).Buffer,b=c.isEncoding||function(v){switch((v=""+v)&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(v){var _;switch(this.encoding=function(S){var A=function(x){if(!x)return"utf8";for(var R;;)switch(x){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return x;default:if(R)return;x=(""+x).toLowerCase(),R=!0}}(S);if(typeof A!="string"&&(c.isEncoding===b||!b(S)))throw new Error("Unknown encoding: "+S);return A||S}(v),this.encoding){case"utf16le":this.text=y,this.end=p,_=4;break;case"utf8":this.fillLast=w,_=4;break;case"base64":this.text=a,this.end=u,_=3;break;default:return this.write=h,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(_)}function O(v){return v<=127?0:v>>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function w(v){var _=this.lastTotal-this.lastNeed,S=function(A,x,R){if((192&x[0])!=128)return A.lastNeed=0,"�";if(A.lastNeed>1&&x.length>1){if((192&x[1])!=128)return A.lastNeed=1,"�";if(A.lastNeed>2&&x.length>2&&(192&x[2])!=128)return A.lastNeed=2,"�"}}(this,v);return S!==void 0?S:this.lastNeed<=v.length?(v.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,_,0,v.length),void(this.lastNeed-=v.length))}function y(v,_){if((v.length-_)%2==0){var S=v.toString("utf16le",_);if(S){var A=S.charCodeAt(S.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",_,v.length-1)}function p(v){var _=v&&v.length?this.write(v):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,S)}return _}function a(v,_){var S=(v.length-_)%3;return S===0?v.toString("base64",_):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",_,v.length-S))}function u(v){var _=v&&v.length?this.write(v):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function h(v){return v.toString(this.encoding)}function m(v){return v&&v.length?this.write(v):""}l.o=i,i.prototype.write=function(v){if(v.length===0)return"";var _,S;if(this.lastNeed){if((_=this.fillLast(v))===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S=0?(E>0&&(x.lastNeed=E-1),E):--T=0?(E>0&&(x.lastNeed=E-2),E):--T=0?(E>0&&(E===2?E=0:x.lastNeed=E-3),E):0}(this,v,_);if(!this.lastNeed)return v.toString("utf8",_);this.lastTotal=S;var A=v.length-(S-this.lastNeed);return v.copy(this.lastChar,0,A),v.toString("utf8",_,A)},i.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},55619:function(d,l,n){var c=n(45408),b=n(86844)("stream-parser");d.exports=function(x){var R=x&&typeof x._transform=="function",M=x&&typeof x._write=="function";if(!R&&!M)throw new Error("must pass a Writable or Transform stream in");b("extending Parser into stream"),x._bytes=a,x._skipBytes=u,R&&(x._passthrough=h),R?x._transform=v:x._write=m};var i=-1,O=0,w=1,y=2;function p(x){b("initializing parser stream"),x._parserBytesLeft=0,x._parserBuffers=[],x._parserBuffered=0,x._parserState=i,x._parserCallback=null,typeof x.push=="function"&&(x._parserOutput=x.push.bind(x)),x._parserInit=!0}function a(x,R){c(!this._parserCallback,'there is already a "callback" set!'),c(isFinite(x)&&x>0,'can only buffer a finite number of bytes > 0, got "'+x+'"'),this._parserInit||p(this),b("buffering %o bytes",x),this._parserBytesLeft=x,this._parserCallback=R,this._parserState=O}function u(x,R){c(!this._parserCallback,'there is already a "callback" set!'),c(x>0,'can only skip > 0 bytes, got "'+x+'"'),this._parserInit||p(this),b("skipping %o bytes",x),this._parserBytesLeft=x,this._parserCallback=R,this._parserState=w}function h(x,R){c(!this._parserCallback,'There is already a "callback" set!'),c(x>0,'can only pass through > 0 bytes, got "'+x+'"'),this._parserInit||p(this),b("passing through %o bytes",x),this._parserBytesLeft=x,this._parserCallback=R,this._parserState=y}function m(x,R,M){this._parserInit||p(this),b("write(%o bytes)",x.length),typeof R=="function"&&(M=R),S(this,x,null,M)}function v(x,R,M){this._parserInit||p(this),b("transform(%o bytes)",x.length),typeof R!="function"&&(R=this._parserOutput),S(this,x,R,M)}function _(x,R,M,T){if(x._parserBytesLeft-=R.length,b("%o bytes left for stream piece",x._parserBytesLeft),x._parserState===O?(x._parserBuffers.push(R),x._parserBuffered+=R.length):x._parserState===y&&M(R),x._parserBytesLeft!==0)return T;var E=x._parserCallback;if(E&&x._parserState===O&&x._parserBuffers.length>1&&(R=Buffer.concat(x._parserBuffers,x._parserBuffered)),x._parserState!==O&&(R=null),x._parserCallback=null,x._parserBuffered=0,x._parserState=i,x._parserBuffers.splice(0),E){var C=[];R&&C.push(R),M&&C.push(M);var L=E.length>C.length;L&&C.push(A(T));var D=E.apply(x,C);if(!L||T===D)return T}}var S=A(function x(R,M,T,E){return R._parserBytesLeft<=0?E(new Error("got data but not currently parsing anything")):M.length<=R._parserBytesLeft?function(){return _(R,M,T,E)}:function(){var C=M.slice(0,R._parserBytesLeft);return _(R,C,T,function(L){return L?E(L):M.length>C.length?function(){return x(R,M.slice(C.length),T,E)}:void 0})}});function A(x){return function(){for(var R=x.apply(this,arguments);typeof R=="function";)R=R();return R}}},86844:function(d,l,n){var c=n(4168);function b(){var i;try{i=l.storage.debug}catch{}return!i&&c!==void 0&&"env"in c&&(i=c.env.DEBUG),i}(l=d.exports=n(89416)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},l.formatArgs=function(i){var O=this.useColors;if(i[0]=(O?"%c":"")+this.namespace+(O?" %c":" ")+i[0]+(O?"%c ":" ")+"+"+l.humanize(this.diff),O){var w="color: "+this.color;i.splice(1,0,w,"color: inherit");var y=0,p=0;i[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(y++,a==="%c"&&(p=y))}),i.splice(p,0,w)}},l.save=function(i){try{i==null?l.storage.removeItem("debug"):l.storage.debug=i}catch{}},l.load=b,l.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},l.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),l.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],l.formatters.j=function(i){try{return JSON.stringify(i)}catch(O){return"[UnexpectedJSONParseError]: "+O.message}},l.enable(b())},89416:function(d,l,n){var c;function b(i){function O(){if(O.enabled){var w=O,y=+new Date,p=y-(c||y);w.diff=p,w.prev=c,w.curr=y,c=y;for(var a=new Array(arguments.length),u=0;u0)return function(a){if(!((a=String(a)).length>100)){var u=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(a);if(u){var h=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*h;case"days":case"day":case"d":return h*b;case"hours":case"hour":case"hrs":case"hr":case"h":return h*c;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}(O);if(p==="number"&&isNaN(O)===!1)return w.long?i(y=O,b,"day")||i(y,c,"hour")||i(y,n,"minute")||i(y,l,"second")||y+" ms":function(a){return a>=b?Math.round(a/b)+"d":a>=c?Math.round(a/c)+"h":a>=n?Math.round(a/n)+"m":a>=l?Math.round(a/l)+"s":a+"ms"}(O);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(O))}},39956:function(d,l,n){var c=n(32868);d.exports=function(b,i,O){if(b==null)throw Error("First argument should be a string");if(i==null)throw Error("Separator should be a string or a RegExp");O?(typeof O=="string"||Array.isArray(O))&&(O={ignore:O}):O={},O.escape==null&&(O.escape=!0),O.ignore==null?O.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:(typeof O.ignore=="string"&&(O.ignore=[O.ignore]),O.ignore=O.ignore.map(function(m){return m.length===1&&(m+=m),m}));var w=c.parse(b,{flat:!0,brackets:O.ignore}),y=w[0].split(i);if(O.escape){for(var p=[],a=0;a0;){A=R[R.length-1];var M=l[A];if(O[A]=0&&y[A].push(w[E])}O[A]=T}else{if(b[A]===c[A]){var C=[],L=[],D=0;for(T=x.length-1;T>=0;--T){var k=x[T];if(i[k]=!1,C.push(k),L.push(y[k]),D+=y[k].length,w[k]=h.length,k===A){x.length=T;break}}h.push(C);var I=new Array(D);for(T=0;T1&&(u=1),u<-1&&(u=-1),(w*a-y*p<0?-1:1)*Math.acos(u)};l.default=function(w){var y=w.px,p=w.py,a=w.cx,u=w.cy,h=w.rx,m=w.ry,v=w.xAxisRotation,_=v===void 0?0:v,S=w.largeArcFlag,A=S===void 0?0:S,x=w.sweepFlag,R=x===void 0?0:x,M=[];if(h===0||m===0)return[];var T=Math.sin(_*c/360),E=Math.cos(_*c/360),C=E*(y-a)/2+T*(p-u)/2,L=-T*(y-a)/2+E*(p-u)/2;if(C===0&&L===0)return[];h=Math.abs(h),m=Math.abs(m);var D=Math.pow(C,2)/Math.pow(h,2)+Math.pow(L,2)/Math.pow(m,2);D>1&&(h*=Math.sqrt(D),m*=Math.sqrt(D));var k=function(W,K,oe,q,Y,ee,me,he,se,ae,ce,de){var ve=Math.pow(Y,2),ye=Math.pow(ee,2),_e=Math.pow(ce,2),Se=Math.pow(de,2),Te=ve*ye-ve*Se-ye*_e;Te<0&&(Te=0),Te/=ve*Se+ye*_e;var Pe=(Te=Math.sqrt(Te)*(me===he?-1:1))*Y/ee*de,Ie=Te*-ee/Y*ce,ze=ae*Pe-se*Ie+(W+oe)/2,De=se*Pe+ae*Ie+(K+q)/2,He=(ce-Pe)/Y,Ve=(de-Ie)/ee,$e=(-ce-Pe)/Y,Oe=(-de-Ie)/ee,ke=O(1,0,He,Ve),Le=O(He,Ve,$e,Oe);return he===0&&Le>0&&(Le-=c),he===1&&Le<0&&(Le+=c),[ze,De,ke,Le]}(y,p,a,u,h,m,A,R,T,E,C,L),I=function(W,K){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function(oe,q){var Y=[],ee=!0,me=!1,he=void 0;try{for(var se,ae=oe[Symbol.iterator]();!(ee=(se=ae.next()).done)&&(Y.push(se.value),!q||Y.length!==q);ee=!0);}catch(ce){me=!0,he=ce}finally{try{!ee&&ae.return&&ae.return()}finally{if(me)throw he}}return Y}(W,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(k,4),z=I[0],$=I[1],Q=I[2],j=I[3],U=Math.abs(j)/(c/4);Math.abs(1-U)<1e-7&&(U=1);var X=Math.max(Math.ceil(U),1);j/=X;for(var te=0;tep[2]&&(p[2]=h[m+0]),h[m+1]>p[3]&&(p[3]=h[m+1]);return p}},41976:function(d,l,n){d.exports=function(O){for(var w,y=[],p=0,a=0,u=0,h=0,m=null,v=null,_=0,S=0,A=0,x=O.length;A4?(p=R[R.length-4],a=R[R.length-3]):(p=_,a=S),y.push(R)}return y};var c=n(92848);function b(O,w,y,p){return["C",O,w,y,p,y,p]}function i(O,w,y,p,a,u){return["C",O/3+.6666666666666666*y,w/3+.6666666666666666*p,a/3+.6666666666666666*y,u/3+.6666666666666666*p,a,u]}},20472:function(d,l,n){var c,b=n(74840),i=n(21984),O=n(22235),w=n(53520),y=n(29620),p=document.createElement("canvas"),a=p.getContext("2d");d.exports=function(u,h){if(!w(u))throw Error("Argument should be valid svg path string");var m,v;h||(h={}),h.shape?(m=h.shape[0],v=h.shape[1]):(m=p.width=h.w||h.width||200,v=p.height=h.h||h.height||200);var _=Math.min(m,v),S=h.stroke||0,A=h.viewbox||h.viewBox||b(u),x=[m/(A[2]-A[0]),v/(A[3]-A[1])],R=Math.min(x[0]||0,x[1]||0)/2;if(a.fillStyle="black",a.fillRect(0,0,m,v),a.fillStyle="white",S&&(typeof S!="number"&&(S=1),a.strokeStyle=S>0?"white":"black",a.lineWidth=Math.abs(S)),a.translate(.5*m,.5*v),a.scale(R,R),function(){if(c!=null)return c;var E=document.createElement("canvas").getContext("2d");if(E.canvas.width=E.canvas.height=1,!window.Path2D)return c=!1;var C=new Path2D("M0,0h1v1h-1v-1Z");E.fillStyle="black",E.fill(C);var L=E.getImageData(0,0,1,1);return c=L&&L.data&&L.data[3]===255}()){var M=new Path2D(u);a.fill(M),S&&a.stroke(M)}else{var T=i(u);O(a,T),a.fill(),S&&a.stroke()}return a.setTransform(1,0,0,1,0,0),y(a,{cutoff:h.cutoff!=null?h.cutoff:.5,radius:h.radius!=null?h.radius:.5*_})}},49760:function(d,l,n){var c;(function(b){var i=/^\s+/,O=/\s+$/,w=0,y=b.round,p=b.min,a=b.max,u=b.random;function h(ce,de){if(de=de||{},(ce=ce||"")instanceof h)return ce;if(!(this instanceof h))return new h(ce,de);var ve=function(ye){var _e,Se,Te,Pe={r:0,g:0,b:0},Ie=1,ze=null,De=null,He=null,Ve=!1,$e=!1;return typeof ye=="string"&&(ye=function(Oe){Oe=Oe.replace(i,"").replace(O,"").toLowerCase();var ke,Le=!1;if(Q[Oe])Oe=Q[Oe],Le=!0;else if(Oe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ke=se.rgb.exec(Oe))?{r:ke[1],g:ke[2],b:ke[3]}:(ke=se.rgba.exec(Oe))?{r:ke[1],g:ke[2],b:ke[3],a:ke[4]}:(ke=se.hsl.exec(Oe))?{h:ke[1],s:ke[2],l:ke[3]}:(ke=se.hsla.exec(Oe))?{h:ke[1],s:ke[2],l:ke[3],a:ke[4]}:(ke=se.hsv.exec(Oe))?{h:ke[1],s:ke[2],v:ke[3]}:(ke=se.hsva.exec(Oe))?{h:ke[1],s:ke[2],v:ke[3],a:ke[4]}:(ke=se.hex8.exec(Oe))?{r:W(ke[1]),g:W(ke[2]),b:W(ke[3]),a:Y(ke[4]),format:Le?"name":"hex8"}:(ke=se.hex6.exec(Oe))?{r:W(ke[1]),g:W(ke[2]),b:W(ke[3]),format:Le?"name":"hex"}:(ke=se.hex4.exec(Oe))?{r:W(ke[1]+""+ke[1]),g:W(ke[2]+""+ke[2]),b:W(ke[3]+""+ke[3]),a:Y(ke[4]+""+ke[4]),format:Le?"name":"hex8"}:!!(ke=se.hex3.exec(Oe))&&{r:W(ke[1]+""+ke[1]),g:W(ke[2]+""+ke[2]),b:W(ke[3]+""+ke[3]),format:Le?"name":"hex"}}(ye)),typeof ye=="object"&&(ae(ye.r)&&ae(ye.g)&&ae(ye.b)?(_e=ye.r,Se=ye.g,Te=ye.b,Pe={r:255*X(_e,255),g:255*X(Se,255),b:255*X(Te,255)},Ve=!0,$e=String(ye.r).substr(-1)==="%"?"prgb":"rgb"):ae(ye.h)&&ae(ye.s)&&ae(ye.v)?(ze=oe(ye.s),De=oe(ye.v),Pe=function(Oe,ke,Le){Oe=6*X(Oe,360),ke=X(ke,100),Le=X(Le,100);var We=b.floor(Oe),Ue=Oe-We,Ze=Le*(1-ke),Xe=Le*(1-Ue*ke),tt=Le*(1-(1-Ue)*ke),Ee=We%6;return{r:255*[Le,Xe,Ze,Ze,tt,Le][Ee],g:255*[tt,Le,Le,Xe,Ze,Ze][Ee],b:255*[Ze,Ze,tt,Le,Le,Xe][Ee]}}(ye.h,ze,De),Ve=!0,$e="hsv"):ae(ye.h)&&ae(ye.s)&&ae(ye.l)&&(ze=oe(ye.s),He=oe(ye.l),Pe=function(Oe,ke,Le){var We,Ue,Ze;function Xe(Ne,je,nt){return nt<0&&(nt+=1),nt>1&&(nt-=1),nt<1/6?Ne+6*(je-Ne)*nt:nt<.5?je:nt<2/3?Ne+(je-Ne)*(2/3-nt)*6:Ne}if(Oe=X(Oe,360),ke=X(ke,100),Le=X(Le,100),ke===0)We=Ue=Ze=Le;else{var tt=Le<.5?Le*(1+ke):Le+ke-Le*ke,Ee=2*Le-tt;We=Xe(Ee,tt,Oe+1/3),Ue=Xe(Ee,tt,Oe),Ze=Xe(Ee,tt,Oe-1/3)}return{r:255*We,g:255*Ue,b:255*Ze}}(ye.h,ze,He),Ve=!0,$e="hsl"),ye.hasOwnProperty("a")&&(Ie=ye.a)),Ie=U(Ie),{ok:Ve,format:ye.format||$e,r:p(255,a(Pe.r,0)),g:p(255,a(Pe.g,0)),b:p(255,a(Pe.b,0)),a:Ie}}(ce);this._originalInput=ce,this._r=ve.r,this._g=ve.g,this._b=ve.b,this._a=ve.a,this._roundA=y(100*this._a)/100,this._format=de.format||ve.format,this._gradientType=de.gradientType,this._r<1&&(this._r=y(this._r)),this._g<1&&(this._g=y(this._g)),this._b<1&&(this._b=y(this._b)),this._ok=ve.ok,this._tc_id=w++}function m(ce,de,ve){ce=X(ce,255),de=X(de,255),ve=X(ve,255);var ye,_e,Se=a(ce,de,ve),Te=p(ce,de,ve),Pe=(Se+Te)/2;if(Se==Te)ye=_e=0;else{var Ie=Se-Te;switch(_e=Pe>.5?Ie/(2-Se-Te):Ie/(Se+Te),Se){case ce:ye=(de-ve)/Ie+(de>1)+720)%360;--de;)ye.h=(ye.h+_e)%360,Se.push(h(ye));return Se}function $(ce,de){de=de||6;for(var ve=h(ce).toHsv(),ye=ve.h,_e=ve.s,Se=ve.v,Te=[],Pe=1/de;de--;)Te.push(h({h:ye,s:_e,v:Se})),Se=(Se+Pe)%1;return Te}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ce=this.toRgb();return(299*ce.r+587*ce.g+114*ce.b)/1e3},getLuminance:function(){var ce,de,ve,ye=this.toRgb();return ce=ye.r/255,de=ye.g/255,ve=ye.b/255,.2126*(ce<=.03928?ce/12.92:b.pow((ce+.055)/1.055,2.4))+.7152*(de<=.03928?de/12.92:b.pow((de+.055)/1.055,2.4))+.0722*(ve<=.03928?ve/12.92:b.pow((ve+.055)/1.055,2.4))},setAlpha:function(ce){return this._a=U(ce),this._roundA=y(100*this._a)/100,this},toHsv:function(){var ce=v(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,v:ce.v,a:this._a}},toHsvString:function(){var ce=v(this._r,this._g,this._b),de=y(360*ce.h),ve=y(100*ce.s),ye=y(100*ce.v);return this._a==1?"hsv("+de+", "+ve+"%, "+ye+"%)":"hsva("+de+", "+ve+"%, "+ye+"%, "+this._roundA+")"},toHsl:function(){var ce=m(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,l:ce.l,a:this._a}},toHslString:function(){var ce=m(this._r,this._g,this._b),de=y(360*ce.h),ve=y(100*ce.s),ye=y(100*ce.l);return this._a==1?"hsl("+de+", "+ve+"%, "+ye+"%)":"hsla("+de+", "+ve+"%, "+ye+"%, "+this._roundA+")"},toHex:function(ce){return _(this._r,this._g,this._b,ce)},toHexString:function(ce){return"#"+this.toHex(ce)},toHex8:function(ce){return function(de,ve,ye,_e,Se){var Te=[K(y(de).toString(16)),K(y(ve).toString(16)),K(y(ye).toString(16)),K(q(_e))];return Se&&Te[0].charAt(0)==Te[0].charAt(1)&&Te[1].charAt(0)==Te[1].charAt(1)&&Te[2].charAt(0)==Te[2].charAt(1)&&Te[3].charAt(0)==Te[3].charAt(1)?Te[0].charAt(0)+Te[1].charAt(0)+Te[2].charAt(0)+Te[3].charAt(0):Te.join("")}(this._r,this._g,this._b,this._a,ce)},toHex8String:function(ce){return"#"+this.toHex8(ce)},toRgb:function(){return{r:y(this._r),g:y(this._g),b:y(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+y(this._r)+", "+y(this._g)+", "+y(this._b)+")":"rgba("+y(this._r)+", "+y(this._g)+", "+y(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:y(100*X(this._r,255))+"%",g:y(100*X(this._g,255))+"%",b:y(100*X(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+y(100*X(this._r,255))+"%, "+y(100*X(this._g,255))+"%, "+y(100*X(this._b,255))+"%)":"rgba("+y(100*X(this._r,255))+"%, "+y(100*X(this._g,255))+"%, "+y(100*X(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(j[_(this._r,this._g,this._b,!0)]||!1)},toFilter:function(ce){var de="#"+S(this._r,this._g,this._b,this._a),ve=de,ye=this._gradientType?"GradientType = 1, ":"";if(ce){var _e=h(ce);ve="#"+S(_e._r,_e._g,_e._b,_e._a)}return"progid:DXImageTransform.Microsoft.gradient("+ye+"startColorstr="+de+",endColorstr="+ve+")"},toString:function(ce){var de=!!ce;ce=ce||this._format;var ve=!1,ye=this._a<1&&this._a>=0;return de||!ye||ce!=="hex"&&ce!=="hex6"&&ce!=="hex3"&&ce!=="hex4"&&ce!=="hex8"&&ce!=="name"?(ce==="rgb"&&(ve=this.toRgbString()),ce==="prgb"&&(ve=this.toPercentageRgbString()),ce!=="hex"&&ce!=="hex6"||(ve=this.toHexString()),ce==="hex3"&&(ve=this.toHexString(!0)),ce==="hex4"&&(ve=this.toHex8String(!0)),ce==="hex8"&&(ve=this.toHex8String()),ce==="name"&&(ve=this.toName()),ce==="hsl"&&(ve=this.toHslString()),ce==="hsv"&&(ve=this.toHsvString()),ve||this.toHexString()):ce==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(ce,de){var ve=ce.apply(null,[this].concat([].slice.call(de)));return this._r=ve._r,this._g=ve._g,this._b=ve._b,this.setAlpha(ve._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(T,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(ce,de){return ce.apply(null,[this].concat([].slice.call(de)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},h.fromRatio=function(ce,de){if(typeof ce=="object"){var ve={};for(var ye in ce)ce.hasOwnProperty(ye)&&(ve[ye]=ye==="a"?ce[ye]:oe(ce[ye]));ce=ve}return h(ce,de)},h.equals=function(ce,de){return!(!ce||!de)&&h(ce).toRgbString()==h(de).toRgbString()},h.random=function(){return h.fromRatio({r:u(),g:u(),b:u()})},h.mix=function(ce,de,ve){ve=ve===0?0:ve||50;var ye=h(ce).toRgb(),_e=h(de).toRgb(),Se=ve/100;return h({r:(_e.r-ye.r)*Se+ye.r,g:(_e.g-ye.g)*Se+ye.g,b:(_e.b-ye.b)*Se+ye.b,a:(_e.a-ye.a)*Se+ye.a})},h.readability=function(ce,de){var ve=h(ce),ye=h(de);return(b.max(ve.getLuminance(),ye.getLuminance())+.05)/(b.min(ve.getLuminance(),ye.getLuminance())+.05)},h.isReadable=function(ce,de,ve){var ye,_e,Se,Te,Pe,Ie=h.readability(ce,de);switch(_e=!1,(Se=ve,(Te=((Se=Se||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&Te!=="AAA"&&(Te="AA"),(Pe=(Se.size||"small").toLowerCase())!=="small"&&Pe!=="large"&&(Pe="small"),ye={level:Te,size:Pe}).level+ye.size){case"AAsmall":case"AAAlarge":_e=Ie>=4.5;break;case"AAlarge":_e=Ie>=3;break;case"AAAsmall":_e=Ie>=7}return _e},h.mostReadable=function(ce,de,ve){var ye,_e,Se,Te,Pe=null,Ie=0;_e=(ve=ve||{}).includeFallbackColors,Se=ve.level,Te=ve.size;for(var ze=0;zeIe&&(Ie=ye,Pe=h(de[ze]));return h.isReadable(ce,Pe,{level:Se,size:Te})||!_e?Pe:(ve.includeFallbackColors=!1,h.mostReadable(ce,["#fff","#000"],ve))};var Q=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=h.hexNames=function(ce){var de={};for(var ve in ce)ce.hasOwnProperty(ve)&&(de[ce[ve]]=ve);return de}(Q);function U(ce){return ce=parseFloat(ce),(isNaN(ce)||ce<0||ce>1)&&(ce=1),ce}function X(ce,de){(function(ye){return typeof ye=="string"&&ye.indexOf(".")!=-1&&parseFloat(ye)===1})(ce)&&(ce="100%");var ve=function(ye){return typeof ye=="string"&&ye.indexOf("%")!=-1}(ce);return ce=p(de,a(0,parseFloat(ce))),ve&&(ce=parseInt(ce*de,10)/100),b.abs(ce-de)<1e-6?1:ce%de/parseFloat(de)}function te(ce){return p(1,a(0,ce))}function W(ce){return parseInt(ce,16)}function K(ce){return ce.length==1?"0"+ce:""+ce}function oe(ce){return ce<=1&&(ce=100*ce+"%"),ce}function q(ce){return b.round(255*parseFloat(ce)).toString(16)}function Y(ce){return W(ce)/255}var ee,me,he,se=(me="[\\s|\\(]+("+(ee="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?",he="[\\s|\\(]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?",{CSS_UNIT:new RegExp(ee),rgb:new RegExp("rgb"+me),rgba:new RegExp("rgba"+he),hsl:new RegExp("hsl"+me),hsla:new RegExp("hsla"+he),hsv:new RegExp("hsv"+me),hsva:new RegExp("hsva"+he),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function ae(ce){return!!se.CSS_UNIT.exec(ce)}d.exports?d.exports=h:(c=(function(){return h}).call(l,n,l,d))===void 0||(d.exports=c)})(Math)},37816:function(d){d.exports=n,d.exports.float32=d.exports.float=n,d.exports.fract32=d.exports.fract=function(c,b){if(c.length){if(c instanceof Float32Array)return new Float32Array(c.length);b instanceof Float32Array||(b=n(c));for(var i=0,O=b.length;i":(O.length>100&&(O=O.slice(0,99)+"…"),O=O.replace(b,function(w){switch(w){case` `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}))}},7328:function(d,l,n){var c=n(81680),b={object:!0,function:!0,undefined:!0};d.exports=function(i){return!!c(i)&&hasOwnProperty.call(b,typeof i)}},87396:function(d,l,n){var c=n(57980),b=n(85488);d.exports=function(i){return b(i)?i:c(i,"%v is not a plain function",arguments[1])}},85488:function(d,l,n){var c=n(73384),b=/^\s*class[\s{/}]/,i=Function.prototype.toString;d.exports=function(O){return!!c(O)&&!b.test(i.call(O))}},54612:function(d,l,n){var c=n(7328);d.exports=function(b){if(!c(b))return!1;try{return!!b.constructor&&b.constructor.prototype===b}catch{return!1}}},33940:function(d,l,n){var c=n(81680),b=n(7328),i=Object.prototype.toString;d.exports=function(O){if(!c(O))return null;if(b(O)){var w=O.toString;if(typeof w!="function"||w===i)return null}try{return""+O}catch{return null}}},18496:function(d,l,n){var c=n(57980),b=n(81680);d.exports=function(i){return b(i)?i:c(i,"Cannot use %v",arguments[1])}},81680:function(d){d.exports=function(l){return l!=null}},14144:function(d,l,n){var c=n(308),b=n(10352),i=n(33576).Buffer;n.g.__TYPEDARRAY_POOL||(n.g.__TYPEDARRAY_POOL={UINT8:b([32,0]),UINT16:b([32,0]),UINT32:b([32,0]),BIGUINT64:b([32,0]),INT8:b([32,0]),INT16:b([32,0]),INT32:b([32,0]),BIGINT64:b([32,0]),FLOAT:b([32,0]),DOUBLE:b([32,0]),DATA:b([32,0]),UINT8C:b([32,0]),BUFFER:b([32,0])});var O=typeof Uint8ClampedArray<"u",w=typeof BigUint64Array<"u",y=typeof BigInt64Array<"u",p=n.g.__TYPEDARRAY_POOL;p.UINT8C||(p.UINT8C=b([32,0])),p.BIGUINT64||(p.BIGUINT64=b([32,0])),p.BIGINT64||(p.BIGINT64=b([32,0])),p.BUFFER||(p.BUFFER=b([32,0]));var a=p.DATA,u=p.BUFFER;function h(I){if(I){var z=I.length||I.byteLength,$=c.log2(z);a[$].push(I)}}function m(I){I=c.nextPow2(I);var z=c.log2(I),$=a[z];return $.length>0?$.pop():new ArrayBuffer(I)}function v(I){return new Uint8Array(m(I),0,I)}function _(I){return new Uint16Array(m(2*I),0,I)}function S(I){return new Uint32Array(m(4*I),0,I)}function A(I){return new Int8Array(m(I),0,I)}function x(I){return new Int16Array(m(2*I),0,I)}function R(I){return new Int32Array(m(4*I),0,I)}function M(I){return new Float32Array(m(4*I),0,I)}function T(I){return new Float64Array(m(8*I),0,I)}function E(I){return O?new Uint8ClampedArray(m(I),0,I):v(I)}function C(I){return w?new BigUint64Array(m(8*I),0,I):null}function L(I){return y?new BigInt64Array(m(8*I),0,I):null}function D(I){return new DataView(m(I),0,I)}function k(I){I=c.nextPow2(I);var z=c.log2(I),$=u[z];return $.length>0?$.pop():new i(I)}l.free=function(I){if(i.isBuffer(I))u[c.log2(I.length)].push(I);else{if(Object.prototype.toString.call(I)!=="[object ArrayBuffer]"&&(I=I.buffer),!I)return;var z=I.length||I.byteLength,$=0|c.log2(z);a[$].push(I)}},l.freeUint8=l.freeUint16=l.freeUint32=l.freeBigUint64=l.freeInt8=l.freeInt16=l.freeInt32=l.freeBigInt64=l.freeFloat32=l.freeFloat=l.freeFloat64=l.freeDouble=l.freeUint8Clamped=l.freeDataView=function(I){h(I.buffer)},l.freeArrayBuffer=h,l.freeBuffer=function(I){u[c.log2(I.length)].push(I)},l.malloc=function(I,z){if(z===void 0||z==="arraybuffer")return m(I);switch(z){case"uint8":return v(I);case"uint16":return _(I);case"uint32":return S(I);case"int8":return A(I);case"int16":return x(I);case"int32":return R(I);case"float":case"float32":return M(I);case"double":case"float64":return T(I);case"uint8_clamped":return E(I);case"bigint64":return L(I);case"biguint64":return C(I);case"buffer":return k(I);case"data":case"dataview":return D(I);default:return null}return null},l.mallocArrayBuffer=m,l.mallocUint8=v,l.mallocUint16=_,l.mallocUint32=S,l.mallocInt8=A,l.mallocInt16=x,l.mallocInt32=R,l.mallocFloat32=l.mallocFloat=M,l.mallocFloat64=l.mallocDouble=T,l.mallocUint8Clamped=E,l.mallocBigUint64=C,l.mallocBigInt64=L,l.mallocDataView=D,l.mallocBuffer=k,l.clearCache=function(){for(var I=0;I<32;++I)p.UINT8[I].length=0,p.UINT16[I].length=0,p.UINT32[I].length=0,p.INT8[I].length=0,p.INT16[I].length=0,p.INT32[I].length=0,p.FLOAT[I].length=0,p.DOUBLE[I].length=0,p.BIGUINT64[I].length=0,p.BIGINT64[I].length=0,p.UINT8C[I].length=0,a[I].length=0,u[I].length=0}},92384:function(d){var l=/[\'\"]/;d.exports=function(n){return n?(l.test(n.charAt(0))&&(n=n.substr(1)),l.test(n.charAt(n.length-1))&&(n=n.substr(0,n.length-1)),n):""}},45223:function(d){d.exports=function(l,n,c){Array.isArray(c)||(c=[].slice.call(arguments,2));for(var b=0,i=c.length;b=K)return Y;switch(Y){case"%s":return String(W[te++]);case"%d":return Number(W[te++]);case"%j":try{return JSON.stringify(W[te++])}catch{return"[Circular]"}default:return Y}}),q=W[te];te=3&&(te.depth=arguments[2]),arguments.length>=4&&(te.colors=arguments[3]),S(X)?te.showHidden=X:X&&l._extend(te,X),M(te.showHidden)&&(te.showHidden=!1),M(te.depth)&&(te.depth=2),M(te.colors)&&(te.colors=!1),M(te.customInspect)&&(te.customInspect=!0),te.colors&&(te.stylize=a),h(te,U,te.depth)}function a(U,X){var te=p.styles[X];return te?"\x1B["+p.colors[te][0]+"m"+U+"\x1B["+p.colors[te][1]+"m":U}function u(U,X){return U}function h(U,X,te){if(U.customInspect&&X&&D(X.inspect)&&X.inspect!==l.inspect&&(!X.constructor||X.constructor.prototype!==X)){var W=X.inspect(te,U);return R(W)||(W=h(U,W,te)),W}var K=function(ae,ce){if(M(ce))return ae.stylize("undefined","undefined");if(R(ce)){var de="'"+JSON.stringify(ce).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ae.stylize(de,"string")}return x(ce)?ae.stylize(""+ce,"number"):S(ce)?ae.stylize(""+ce,"boolean"):A(ce)?ae.stylize("null","null"):void 0}(U,X);if(K)return K;var oe=Object.keys(X),q=function(ae){var ce={};return ae.forEach(function(de,ve){ce[de]=!0}),ce}(oe);if(U.showHidden&&(oe=Object.getOwnPropertyNames(X)),L(X)&&(oe.indexOf("message")>=0||oe.indexOf("description")>=0))return m(X);if(oe.length===0){if(D(X)){var Y=X.name?": "+X.name:"";return U.stylize("[Function"+Y+"]","special")}if(T(X))return U.stylize(RegExp.prototype.toString.call(X),"regexp");if(C(X))return U.stylize(Date.prototype.toString.call(X),"date");if(L(X))return m(X)}var ee,me="",he=!1,se=["{","}"];return _(X)&&(he=!0,se=["[","]"]),D(X)&&(me=" [Function"+(X.name?": "+X.name:"")+"]"),T(X)&&(me=" "+RegExp.prototype.toString.call(X)),C(X)&&(me=" "+Date.prototype.toUTCString.call(X)),L(X)&&(me=" "+m(X)),oe.length!==0||he&&X.length!=0?te<0?T(X)?U.stylize(RegExp.prototype.toString.call(X),"regexp"):U.stylize("[Object]","special"):(U.seen.push(X),ee=he?function(ae,ce,de,ve,ye){for(var _e=[],Se=0,Te=ce.length;Se60?de[0]+(ce===""?"":ce+` `)+" "+ae.join(`, @@ -3578,35 +3578,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).slice(2):` `+Y.split(` `).map(function(me){return" "+me}).join(` -`)):Y=U.stylize("[Circular]","special")),M(q)){if(oe&&K.match(/^\d+$/))return Y;(q=JSON.stringify(""+K)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=U.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=U.stylize(q,"string"))}return q+": "+Y}function _(U){return Array.isArray(U)}function S(U){return typeof U=="boolean"}function A(U){return U===null}function x(U){return typeof U=="number"}function R(U){return typeof U=="string"}function M(U){return U===void 0}function T(U){return E(U)&&k(U)==="[object RegExp]"}function E(U){return typeof U=="object"&&U!==null}function C(U){return E(U)&&k(U)==="[object Date]"}function L(U){return E(U)&&(k(U)==="[object Error]"||U instanceof Error)}function D(U){return typeof U=="function"}function k(U){return Object.prototype.toString.call(U)}function I(U){return U<10?"0"+U.toString(10):U.toString(10)}l.debuglog=function(U){if(U=U.toUpperCase(),!O[U])if(w.test(U)){var X=c.pid;O[U]=function(){var te=l.format.apply(l,arguments);console.error("%s %d: %s",U,X,te)}}else O[U]=function(){};return O[U]},l.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},l.types=n(41088),l.isArray=_,l.isBoolean=S,l.isNull=A,l.isNullOrUndefined=function(U){return U==null},l.isNumber=x,l.isString=R,l.isSymbol=function(U){return typeof U=="symbol"},l.isUndefined=M,l.isRegExp=T,l.types.isRegExp=T,l.isObject=E,l.isDate=C,l.types.isDate=C,l.isError=L,l.types.isNativeError=L,l.isFunction=D,l.isPrimitive=function(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||U===void 0},l.isBuffer=n(75272);var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $(U,X){return Object.prototype.hasOwnProperty.call(U,X)}l.log=function(){var U,X;console.log("%s - %s",(X=[I((U=new Date).getHours()),I(U.getMinutes()),I(U.getSeconds())].join(":"),[U.getDate(),z[U.getMonth()],X].join(" ")),l.format.apply(l,arguments))},l.inherits=n(6768),l._extend=function(U,X){if(!X||!E(X))return U;for(var te=Object.keys(X),W=te.length;W--;)U[te[W]]=X[te[W]];return U};var Q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function j(U,X){if(!U){var te=new Error("Promise was rejected with a falsy value");te.reason=U,U=te}return X(U)}l.promisify=function(U){if(typeof U!="function")throw new TypeError('The "original" argument must be of type Function');if(Q&&U[Q]){var X;if(typeof(X=U[Q])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,Q,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var te,W,K=new Promise(function(Y,ee){te=Y,W=ee}),oe=[],q=0;q"u"?n.g:globalThis,u=b(),h=O("String.prototype.slice"),m=Object.getPrototypeOf,v=O("Array.prototype.indexOf",!0)||function(S,A){for(var x=0;x-1?A:A==="Object"&&function(x){var R=!1;return c(_,function(M,T){if(!R)try{M(x),R=h(T,1)}catch{}}),R}(S)}return w?function(x){var R=!1;return c(_,function(M,T){if(!R)try{"$"+M(x)===T&&(R=h(T,1))}catch{}}),R}(S):null}},67020:function(d,l,n){var c=n(38700),b=n(50896),i=c.instance();function O(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}O.prototype=new c.baseCalendar,b(O.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(m,v){if(typeof m=="string"){var _=m.match(y);return _?_[0]:""}var S=this._validateYear(m),A=m.month(),x=""+this.toChineseMonth(S,A);return v&&x.length<2&&(x="0"+x),this.isIntercalaryMonth(S,A)&&(x+="i"),x},monthNames:function(m){if(typeof m=="string"){var v=m.match(p);return v?v[0]:""}var _=this._validateYear(m),S=m.month(),A=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(_,S)-1];return this.isIntercalaryMonth(_,S)&&(A="闰"+A),A},monthNamesShort:function(m){if(typeof m=="string"){var v=m.match(a);return v?v[0]:""}var _=this._validateYear(m),S=m.month(),A=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(_,S)-1];return this.isIntercalaryMonth(_,S)&&(A="闰"+A),A},parseMonth:function(m,v){m=this._validateYear(m);var _,S=parseInt(v);if(isNaN(S))v[0]==="闰"&&(_=!0,v=v.substring(1)),v[v.length-1]==="月"&&(v=v.substring(0,v.length-1)),S=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(v);else{var A=v[v.length-1];_=A==="i"||A==="I"}return this.toMonthIndex(m,S,_)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(m,v){if(m.year&&(m=m.year()),typeof m!="number"||m<1888||m>2111)throw v.replace(/\{0\}/,this.local.name);return m},toMonthIndex:function(m,v,_){var S=this.intercalaryMonth(m);if(_&&v!==S||v<1||v>12)throw c.local.invalidMonth.replace(/\{0\}/,this.local.name);return S?!_&&v<=S?v-1:v:v-1},toChineseMonth:function(m,v){m.year&&(v=(m=m.year()).month());var _=this.intercalaryMonth(m);if(v<0||v>(_?12:11))throw c.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?v<_?v+1:v:v+1},intercalaryMonth:function(m){return m=this._validateYear(m),u[m-u[0]]>>13},isIntercalaryMonth:function(m,v){m.year&&(v=(m=m.year()).month());var _=this.intercalaryMonth(m);return!!_&&_===v},leapYear:function(m){return this.intercalaryMonth(m)!==0},weekOfYear:function(m,v,_){var S,A=this._validateYear(m,c.local.invalidyear),x=h[A-h[0]],R=x>>9&4095,M=x>>5&15,T=31&x;(S=i.newDate(R,M,T)).add(4-(S.dayOfWeek()||7),"d");var E=this.toJD(m,v,_)-S.toJD();return 1+Math.floor(E/7)},monthsInYear:function(m){return this.leapYear(m)?13:12},daysInMonth:function(m,v){m.year&&(v=m.month(),m=m.year()),m=this._validateYear(m);var _=u[m-u[0]];if(v>(_>>13?12:11))throw c.local.invalidMonth.replace(/\{0\}/,this.local.name);return _&1<<12-v?30:29},weekDay:function(m,v,_){return(this.dayOfWeek(m,v,_)||7)<6},toJD:function(m,v,_){var S=this._validate(m,x,_,c.local.invalidDate);m=this._validateYear(S.year()),v=S.month(),_=S.day();var A=this.isIntercalaryMonth(m,v),x=this.toChineseMonth(m,v),R=function(M,T,E,C,L){var D,k,I;if(typeof M=="object")k=M,D=T||{};else{var z;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof E=="number"&&E>=1&&E<=30))throw new Error("Lunar day outside range 1 - 30");typeof C=="object"?(z=!1,D=C):(z=!!C,D={}),k={year:M,month:T,day:E,isIntercalary:z}}I=k.day-1;var $,Q=u[k.year-u[0]],j=Q>>13;$=j&&(k.month>j||k.isIntercalary)?k.month:k.month-1;for(var U=0;U<$;U++)I+=Q&1<<12-U?30:29;var X=h[k.year-h[0]],te=new Date(X>>9&4095,(X>>5&15)-1,(31&X)+I);return D.year=te.getFullYear(),D.month=1+te.getMonth(),D.day=te.getDate(),D}(m,x,_,A);return i.toJD(R.year,R.month,R.day)},fromJD:function(m){var v=i.fromJD(m),_=function(A,x,R,M){var T,E;if(typeof A=="object")T=A,E=x||{};else{if(!(typeof A=="number"&&A>=1888&&A<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof x=="number"&&x>=1&&x<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof R=="number"&&R>=1&&R<=31))throw new Error("Solar day outside range 1 - 31");T={year:A,month:x,day:R},E={}}var C=h[T.year-h[0]],L=T.year<<9|T.month<<5|T.day;E.year=L>=C?T.year:T.year-1,C=h[E.year-h[0]];var D,k=new Date(C>>9&4095,(C>>5&15)-1,31&C),I=new Date(T.year,T.month-1,T.day);D=Math.round((I-k)/864e5);var z,$=u[E.year-u[0]];for(z=0;z<13;z++){var Q=$&1<<12-z?30:29;if(D>13;return!j||z=2&&a<=6},extraInfo:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return{century:O[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return w=a.year()+(a.year()<0?1:0),y=a.month(),(p=a.day())+(y>1?16:0)+(y>2?32*(y-2):0)+400*(w-1)+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w+.5)-Math.floor(this.jdEpoch)-1;var y=Math.floor(w/400)+1;w-=400*(y-1),w+=w>15?16:0;var p=Math.floor(w/32)+1,a=w-32*(p-1)+1;return this.newDate(y<=0?y-1:y,p,a)}});var O={20:"Fruitbat",21:"Anchovy"};c.calendars.discworld=i},65168:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(O){var w=this._validate(O,this.minMonth,this.minDay,c.local.invalidYear);return(O=w.year()+(w.year()<0?1:0))%4==3||O%4==-1},monthsInYear:function(O){return this._validate(O,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear),13},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(O,w){var y=this._validate(O,w,this.minDay,c.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===13&&this.leapYear(y.year())?1:0)},weekDay:function(O,w,y){return(this.dayOfWeek(O,w,y)||7)<6},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);return(O=p.year())<0&&O++,p.day()+30*(p.month()-1)+365*(O-1)+Math.floor(O/4)+this.jdEpoch-1},fromJD:function(O){var w=Math.floor(O)+.5-this.jdEpoch,y=Math.floor((w-Math.floor((w+366)/1461))/365)+1;y<=0&&y--,w=Math.floor(O)+.5-this.newDate(y,1,1).toJD();var p=Math.floor(w/30)+1,a=w-30*(p-1)+1;return this.newDate(y,p,a)}}),c.calendars.ethiopian=i},2084:function(d,l,n){var c=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}function O(w,y){return w-y*Math.floor(w/y)}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return this._leapYear(y.year())},_leapYear:function(w){return O(7*(w=w<0?w+1:w)+1,19)<7},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,c.local.invalidYear),this._leapYear(w.year?w.year():w)?13:12},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){return w=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear).year(),this.toJD(w===-1?1:w+1,7,1)-this.toJD(w,7,1)},daysInMonth:function(w,y){return w.year&&(y=w.month(),w=w.year()),this._validate(w,y,this.minDay,c.local.invalidMonth),y===12&&this.leapYear(w)||y===8&&O(this.daysInYear(w),10)===5?30:y===9&&O(this.daysInYear(w),10)===3?29:this.daysPerMonth[y-1]},weekDay:function(w,y,p){return this.dayOfWeek(w,y,p)!==6},extraInfo:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);w=a.year(),y=a.month(),p=a.day();var u=w<=0?w+1:w,h=this.jdEpoch+this._delay1(u)+this._delay2(u)+p+1;if(y<7){for(var m=7;m<=this.monthsInYear(w);m++)h+=this.daysInMonth(w,m);for(m=1;m=this.toJD(y===-1?1:y+1,7,1);)y++;for(var p=wthis.toJD(y,p,this.daysInMonth(y,p));)p++;var a=w-this.toJD(y,p,1)+1;return this.newDate(y,p,a)}}),c.calendars.hebrew=i},26368:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(O){return(11*this._validate(O,this.minMonth,this.minDay,c.local.invalidYear).year()+14)%30<11},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(O){return this.leapYear(O)?355:354},daysInMonth:function(O,w){var y=this._validate(O,w,this.minDay,c.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===12&&this.leapYear(y.year())?1:0)},weekDay:function(O,w,y){return this.dayOfWeek(O,w,y)!==5},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);return O=p.year(),w=p.month(),O=O<=0?O+1:O,(y=p.day())+Math.ceil(29.5*(w-1))+354*(O-1)+Math.floor((3+11*O)/30)+this.jdEpoch-1},fromJD:function(O){O=Math.floor(O)+.5;var w=Math.floor((30*(O-this.jdEpoch)+10646)/10631);w=w<=0?w-1:w;var y=Math.min(12,Math.ceil((O-29-this.toJD(w,1,1))/29.5)+1),p=O-this.toJD(w,y,1)+1;return this.newDate(w,y,p)}}),c.calendars.islamic=i},24747:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(O){var w=this._validate(O,this.minMonth,this.minDay,c.local.invalidYear);return(O=w.year()<0?w.year()+1:w.year())%4==0},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(O,w){var y=this._validate(O,w,this.minDay,c.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===2&&this.leapYear(y.year())?1:0)},weekDay:function(O,w,y){return(this.dayOfWeek(O,w,y)||7)<6},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);return O=p.year(),w=p.month(),y=p.day(),O<0&&O++,w<=2&&(O--,w+=12),Math.floor(365.25*(O+4716))+Math.floor(30.6001*(w+1))+y-1524.5},fromJD:function(O){var w=Math.floor(O+.5)+1524,y=Math.floor((w-122.1)/365.25),p=Math.floor(365.25*y),a=Math.floor((w-p)/30.6001),u=a-Math.floor(a<14?1:13),h=y-Math.floor(u>2?4716:4715),m=w-p-Math.floor(30.6001*a);return h<=0&&h--,this.newDate(h,u,m)}}),c.calendars.julian=i},65616:function(d,l,n){var c=n(38700),b=n(50896);function i(y){this.local=this.regionalOptions[y||""]||this.regionalOptions[""]}function O(y,p){return y-p*Math.floor(y/p)}function w(y,p){return O(y-1,p)+1}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(y){return this._validate(y,this.minMonth,this.minDay,c.local.invalidYear),!1},formatYear:function(y){y=this._validate(y,this.minMonth,this.minDay,c.local.invalidYear).year();var p=Math.floor(y/400);return y%=400,y+=y<0?400:0,p+"."+Math.floor(y/20)+"."+y%20},forYear:function(y){if((y=y.split(".")).length<3)throw"Invalid Mayan year";for(var p=0,a=0;a19||a>0&&u<0)throw"Invalid Mayan year";p=20*p+u}return p},monthsInYear:function(y){return this._validate(y,this.minMonth,this.minDay,c.local.invalidYear),18},weekOfYear:function(y,p,a){return this._validate(y,p,a,c.local.invalidDate),0},daysInYear:function(y){return this._validate(y,this.minMonth,this.minDay,c.local.invalidYear),360},daysInMonth:function(y,p){return this._validate(y,p,this.minDay,c.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(y,p,a){return this._validate(y,p,a,c.local.invalidDate).day()},weekDay:function(y,p,a){return this._validate(y,p,a,c.local.invalidDate),!0},extraInfo:function(y,p,a){var u=this._validate(y,p,a,c.local.invalidDate).toJD(),h=this._toHaab(u),m=this._toTzolkin(u);return{haabMonthName:this.local.haabMonths[h[0]-1],haabMonth:h[0],haabDay:h[1],tzolkinDayName:this.local.tzolkinMonths[m[0]-1],tzolkinDay:m[0],tzolkinTrecena:m[1]}},_toHaab:function(y){var p=O(8+(y-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,O(p,20)]},_toTzolkin:function(y){return[w(20+(y-=this.jdEpoch),20),w(y+4,13)]},toJD:function(y,p,a){var u=this._validate(y,p,a,c.local.invalidDate);return u.day()+20*u.month()+360*u.year()+this.jdEpoch},fromJD:function(y){y=Math.floor(y)+.5-this.jdEpoch;var p=Math.floor(y/360);y%=360,y+=y<0?360:0;var a=Math.floor(y/20),u=y%20;return this.newDate(p,a,u)}}),c.calendars.mayan=i},30632:function(d,l,n){var c=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar;var O=c.instance("gregorian");b(i.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return O.leapYear(y.year()+(y.year()<1?1:0)+1469)},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return(this.dayOfWeek(w,y,p)||7)<6},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidMonth);(w=a.year())<0&&w++;for(var u=a.day(),h=1;h=this.toJD(y+1,1,1);)y++;for(var p=w-Math.floor(this.toJD(y,1,1)+.5)+1,a=1;p>this.daysInMonth(y,a);)p-=this.daysInMonth(y,a),a++;return this.newDate(y,a,p)}}),c.calendars.nanakshahi=i},73040:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(O){return this.daysInYear(O)!==this.daysPerYear},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(O){if(O=this._validate(O,this.minMonth,this.minDay,c.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[O]===void 0)return this.daysPerYear;for(var w=0,y=this.minMonth;y<=12;y++)w+=this.NEPALI_CALENDAR_DATA[O][y];return w},daysInMonth:function(O,w){return O.year&&(w=O.month(),O=O.year()),this._validate(O,w,this.minDay,c.local.invalidMonth),this.NEPALI_CALENDAR_DATA[O]===void 0?this.daysPerMonth[w-1]:this.NEPALI_CALENDAR_DATA[O][w]},weekDay:function(O,w,y){return this.dayOfWeek(O,w,y)!==6},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);O=p.year(),w=p.month(),y=p.day();var a=c.instance(),u=0,h=w,m=O;this._createMissingCalendarData(O);var v=O-(h>9||h===9&&y>=this.NEPALI_CALENDAR_DATA[m][0]?56:57);for(w!==9&&(u=y,h--);h!==9;)h<=0&&(h=12,m--),u+=this.NEPALI_CALENDAR_DATA[m][h],h--;return w===9?(u+=y-this.NEPALI_CALENDAR_DATA[m][0])<0&&(u+=a.daysInYear(v)):u+=this.NEPALI_CALENDAR_DATA[m][9]-this.NEPALI_CALENDAR_DATA[m][0],a.newDate(v,1,1).add(u,"d").toJD()},fromJD:function(O){var w=c.instance().fromJD(O),y=w.year(),p=w.dayOfYear(),a=y+56;this._createMissingCalendarData(a);for(var u=9,h=this.NEPALI_CALENDAR_DATA[a][0],m=this.NEPALI_CALENDAR_DATA[a][u]-h+1;p>m;)++u>12&&(u=1,a++),m+=this.NEPALI_CALENDAR_DATA[a][u];var v=this.NEPALI_CALENDAR_DATA[a][u]-(m-p);return this.newDate(a,u,v)},_createMissingCalendarData:function(O){var w=this.daysPerMonth.slice(0);w.unshift(17);for(var y=O-1;y0?474:473))%2820+474+38)%2816<682},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(-(a.dayOfWeek()+1)%7,"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return this.dayOfWeek(w,y,p)!==5},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);w=a.year(),y=a.month(),p=a.day();var u=w-(w>=0?474:473),h=474+O(u,2820);return p+(y<=7?31*(y-1):30*(y-1)+6)+Math.floor((682*h-110)/2816)+365*(h-1)+1029983*Math.floor(u/2820)+this.jdEpoch-1},fromJD:function(w){var y=(w=Math.floor(w)+.5)-this.toJD(475,1,1),p=Math.floor(y/1029983),a=O(y,1029983),u=2820;if(a!==1029982){var h=Math.floor(a/366),m=O(a,366);u=Math.floor((2134*h+2816*m+2815)/1028522)+h+1}var v=u+2820*p+474;v=v<=0?v-1:v;var _=w-this.toJD(v,1,1)+1,S=_<=186?Math.ceil(_/31):Math.ceil((_-6)/30),A=w-this.toJD(v,S,1)+1;return this.newDate(v,S,A)}}),c.calendars.persian=i,c.calendars.jalali=i},51456:function(d,l,n){var c=n(38700),b=n(50896),i=c.instance();function O(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}O.prototype=new c.baseCalendar,b(O.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,p){var a=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return(this.dayOfWeek(w,y,p)||7)<6},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),p=this._g2tYear(y.year());return this.newDate(p,y.month(),y.day())},_t2gYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)},_g2tYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)}}),c.calendars.taiwan=O},4592:function(d,l,n){var c=n(38700),b=n(50896),i=c.instance();function O(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}O.prototype=new c.baseCalendar,b(O.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,p){var a=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return(this.dayOfWeek(w,y,p)||7)<6},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),p=this._g2tYear(y.year());return this.newDate(p,y.month(),y.day())},_t2gYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)},_g2tYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)}}),c.calendars.thai=O},45348:function(d,l,n){var c=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return this.daysInYear(y.year())===355},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){for(var y=0,p=1;p<=12;p++)y+=this.daysInMonth(w,p);return y},daysInMonth:function(w,y){for(var p=this._validate(w,y,this.minDay,c.local.invalidMonth).toJD()-24e5+.5,a=0,u=0;up)return O[a]-O[a-1];a++}return 30},weekDay:function(w,y,p){return this.dayOfWeek(w,y,p)!==5},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate),u=12*(a.year()-1)+a.month()-15292;return a.day()+O[u-1]-1+24e5-.5},fromJD:function(w){for(var y=w-24e5+.5,p=0,a=0;ay);a++)p++;var u=p+15292,h=Math.floor((u-1)/12),m=h+1,v=u-12*h,_=y-O[p-1]+1;return this.newDate(m,v,_)},isValid:function(w,y,p){var a=c.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(w=w.year!=null?w.year:w)>=1276&&w<=1500),a},_validate:function(w,y,p,a){var u=c.baseCalendar.prototype._validate.apply(this,arguments);if(u.year<1276||u.year>1500)throw a.replace(/\{0\}/,this.local.name);return u}}),c.calendars.ummalqura=i;var O=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(d,l,n){var c=n(50896);function b(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(a,u,h,m){if(this._calendar=a,this._year=u,this._month=h,this._day=m,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function O(a,u){return"000000".substring(0,u-(a=""+a).length)+a}function w(){this.shortYearCutoff="+10"}function y(a){this.local=this.regionalOptions[a]||this.regionalOptions[""]}c(b.prototype,{instance:function(a,u){a=(a||"gregorian").toLowerCase(),u=u||"";var h=this._localCals[a+"-"+u];if(!h&&this.calendars[a]&&(h=new this.calendars[a](u),this._localCals[a+"-"+u]=h),!h)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,a);return h},newDate:function(a,u,h,m,v){return(m=(a!=null&&a.year?a.calendar():typeof m=="string"?this.instance(m,v):m)||this.instance()).newDate(a,u,h)},substituteDigits:function(a){return function(u){return(u+"").replace(/[0-9]/g,function(h){return a[h]})}},substituteChineseDigits:function(a,u){return function(h){for(var m="",v=0;h>0;){var _=h%10;m=(_===0?"":a[_]+u[v])+m,v++,h=Math.floor(h/10)}return m.indexOf(a[1]+u[1])===0&&(m=m.substr(1)),m||a[0]}}}),c(i.prototype,{newDate:function(a,u,h){return this._calendar.newDate(a??this,u,h)},year:function(a){return arguments.length===0?this._year:this.set(a,"y")},month:function(a){return arguments.length===0?this._month:this.set(a,"m")},day:function(a){return arguments.length===0?this._day:this.set(a,"d")},date:function(a,u,h){if(!this._calendar.isValid(a,u,h))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=a,this._month=u,this._day=h,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(a,u){return this._calendar.add(this,a,u)},set:function(a,u){return this._calendar.set(this,a,u)},compareTo:function(a){if(this._calendar.name!==a._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,a._calendar.local.name);var u=this._year!==a._year?this._year-a._year:this._month!==a._month?this.monthOfYear()-a.monthOfYear():this._day-a._day;return u===0?0:u<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(a){return this._calendar.fromJD(a)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(a){return this._calendar.fromJSDate(a)},toString:function(){return(this.year()<0?"-":"")+O(Math.abs(this.year()),4)+"-"+O(this.month(),2)+"-"+O(this.day(),2)}}),c(w.prototype,{_validateLevel:0,newDate:function(a,u,h){return a==null?this.today():(a.year&&(this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate),h=a.day(),u=a.month(),a=a.year()),new i(this,a,u,h))},today:function(){return this.fromJSDate(new Date)},epoch:function(a){return this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(a){var u=this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(u.year()<0?"-":"")+O(Math.abs(u.year()),4)},monthsInYear:function(a){return this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(a,u){var h=this._validate(a,u,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(h.month()+this.monthsInYear(h)-this.firstMonth)%this.monthsInYear(h)+this.minMonth},fromMonthOfYear:function(a,u){var h=(u+this.firstMonth-2*this.minMonth)%this.monthsInYear(a)+this.minMonth;return this._validate(a,h,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),h},daysInYear:function(a){var u=this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(u)?366:365},dayOfYear:function(a,u,h){var m=this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate);return m.toJD()-this.newDate(m.year(),this.fromMonthOfYear(m.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(a,u,h){var m=this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(m))+2)%this.daysInWeek()},extraInfo:function(a,u,h){return this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(a,u,h){return this._validate(a,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(a,this._add(a,u,h),u,h)},_add:function(a,u,h){if(this._validateLevel++,h==="d"||h==="w"){var m=a.toJD()+u*(h==="w"?this.daysInWeek():1),v=a.calendar().fromJD(m);return this._validateLevel--,[v.year(),v.month(),v.day()]}try{var _=a.year()+(h==="y"?u:0),S=a.monthOfYear()+(h==="m"?u:0);v=a.day(),h==="y"?(a.month()!==this.fromMonthOfYear(_,S)&&(S=this.newDate(_,a.month(),this.minDay).monthOfYear()),S=Math.min(S,this.monthsInYear(_)),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,S)))):h==="m"&&(function(x){for(;SR-1+x.minMonth;)_++,S-=R,R=x.monthsInYear(_)}(this),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,S))));var A=[_,this.fromMonthOfYear(_,S),v];return this._validateLevel--,A}catch(x){throw this._validateLevel--,x}},_correctAdd:function(a,u,h,m){if(!(this.hasYearZero||m!=="y"&&m!=="m"||u[0]!==0&&a.year()>0==u[0]>0)){var v={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[m],_=h<0?-1:1;u=this._add(a,h*v[0]+_*v[1],v[2])}return a.date(u[0],u[1],u[2])},set:function(a,u,h){this._validate(a,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var m=h==="y"?u:a.year(),v=h==="m"?u:a.month(),_=h==="d"?u:a.day();return h!=="y"&&h!=="m"||(_=Math.min(_,this.daysInMonth(m,v))),a.date(m,v,_)},isValid:function(a,u,h){this._validateLevel++;var m=this.hasYearZero||a!==0;if(m){var v=this.newDate(a,u,this.minDay);m=u>=this.minMonth&&u-this.minMonth=this.minDay&&h-this.minDay13.5?13:1),R=v-(x>2.5?4716:4715);return R<=0&&R--,this.newDate(R,x,A)},toJSDate:function(a,u,h){var m=this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=new Date(m.year(),m.month()-1,m.day());return v.setHours(0),v.setMinutes(0),v.setSeconds(0),v.setMilliseconds(0),v.setHours(v.getHours()>12?v.getHours()+2:0),v},fromJSDate:function(a){return this.newDate(a.getFullYear(),a.getMonth()+1,a.getDate())}});var p=d.exports=new b;p.cdate=i,p.baseCalendar=w,p.calendars.gregorian=y},15168:function(d,l,n){var c=n(50896),b=n(38700);c(b.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),b.local=b.regionalOptions[""],c(b.cdate.prototype,{formatDate:function(i,O){return typeof i!="string"&&(O=i,i=""),this._calendar.formatDate(i||"",this,O)}}),c(b.baseCalendar.prototype,{UNIX_EPOCH:b.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:b.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(i,O,w){if(typeof i!="string"&&(w=O,O=i,i=""),!O)return"";if(O.calendar()!==this)throw b.local.invalidFormat||b.regionalOptions[""].invalidFormat;i=i||this.local.dateFormat;for(var y,p,a,u=(w=w||{}).dayNamesShort||this.local.dayNamesShort,h=w.dayNames||this.local.dayNames,m=w.monthNumbers||this.local.monthNumbers,v=w.monthNamesShort||this.local.monthNamesShort,_=w.monthNames||this.local.monthNames,S=(w.calculateWeek||this.local.calculateWeek,function(k,I){for(var z=1;D+z1}),A=function(k,I,z,$){var Q=""+I;if(S(k,$))for(;Q.length1},C=function(X,te){var W=E(X,te),K=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],oe=new RegExp("^-?\\d{1,"+K+"}"),q=O.substring($).match(oe);if(!q)throw(b.local.missingNumberAt||b.regionalOptions[""].missingNumberAt).replace(/\{0\}/,$);return $+=q[0].length,parseInt(q[0],10)},L=this,D=function(){if(typeof h=="function"){E("m");var X=h.call(L,O.substring($));return $+=X.length,X}return C("m")},k=function(X,te,W,K){for(var oe=E(X,K)?W:te,q=0;q-1){A=1,x=R;for(var U=this.daysInMonth(S,A);x>U;U=this.daysInMonth(S,A))A++,x-=U}return _>-1?this.fromJD(_):this.newDate(S,A,x)},determineDate:function(i,O,w,y,p){w&&typeof w!="object"&&(p=y,y=w,w=null),typeof y!="string"&&(p=y,y="");var a=this;return O=O?O.newDate():null,i==null?O:typeof i=="string"?function(u){try{return a.parseDate(y,u,p)}catch{}for(var h=((u=u.toLowerCase()).match(/^c/)&&w?w.newDate():null)||a.today(),m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,v=m.exec(u);v;)h.add(parseInt(v[1],10),v[2]||"d"),v=m.exec(u);return h}(i):typeof i=="number"?isNaN(i)||i===1/0||i===-1/0?O:a.today().add(i,"d"):a.newDate(i)}})},21576:function(){},19768:function(){},63436:function(d,l,n){var c=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],b=typeof globalThis>"u"?n.g:globalThis;d.exports=function(){for(var i=[],O=0;O>8&15|Pe>>4&240,Pe>>4&15|240&Pe,(15&Pe)<<4|15&Pe,1):Ie===8?C(Pe>>24&255,Pe>>16&255,Pe>>8&255,(255&Pe)/255):Ie===4?C(Pe>>12&15|Pe>>8&240,Pe>>8&15|Pe>>4&240,Pe>>4&15|240&Pe,((15&Pe)<<4|15&Pe)/255):null):(Pe=h.exec(Te))?new D(Pe[1],Pe[2],Pe[3],1):(Pe=m.exec(Te))?new D(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,1):(Pe=v.exec(Te))?C(Pe[1],Pe[2],Pe[3],Pe[4]):(Pe=_.exec(Te))?C(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,Pe[4]):(Pe=S.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,1):(Pe=A.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,Pe[4]):x.hasOwnProperty(Te)?E(x[Te]):Te==="transparent"?new D(NaN,NaN,NaN,0):null}function E(Te){return new D(Te>>16&255,Te>>8&255,255&Te,1)}function C(Te,Pe,Ie,ze){return ze<=0&&(Te=Pe=Ie=NaN),new D(Te,Pe,Ie,ze)}function L(Te,Pe,Ie,ze){return arguments.length===1?((De=Te)instanceof i||(De=T(De)),De?new D((De=De.rgb()).r,De.g,De.b,De.opacity):new D):new D(Te,Pe,Ie,ze??1);var De}function D(Te,Pe,Ie,ze){this.r=+Te,this.g=+Pe,this.b=+Ie,this.opacity=+ze}function k(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b))}function I(){var Te=z(this.opacity);return"".concat(Te===1?"rgb(":"rgba(").concat($(this.r),", ").concat($(this.g),", ").concat($(this.b)).concat(Te===1?")":", ".concat(Te,")"))}function z(Te){return isNaN(Te)?1:Math.max(0,Math.min(1,Te))}function $(Te){return Math.max(0,Math.min(255,Math.round(Te)||0))}function Q(Te){return((Te=$(Te))<16?"0":"")+Te.toString(16)}function j(Te,Pe,Ie,ze){return ze<=0?Te=Pe=Ie=NaN:Ie<=0||Ie>=1?Te=Pe=NaN:Pe<=0&&(Te=NaN),new X(Te,Pe,Ie,ze)}function U(Te){if(Te instanceof X)return new X(Te.h,Te.s,Te.l,Te.opacity);if(Te instanceof i||(Te=T(Te)),!Te)return new X;if(Te instanceof X)return Te;var Pe=(Te=Te.rgb()).r/255,Ie=Te.g/255,ze=Te.b/255,De=Math.min(Pe,Ie,ze),He=Math.max(Pe,Ie,ze),Ve=NaN,$e=He-De,Oe=(He+De)/2;return $e?(Ve=Pe===He?(Ie-ze)/$e+6*(Ie0&&Oe<1?0:Ve,new X(Ve,$e,Oe,Te.opacity)}function X(Te,Pe,Ie,ze){this.h=+Te,this.s=+Pe,this.l=+Ie,this.opacity=+ze}function te(Te){return(Te=(Te||0)%360)<0?Te+360:Te}function W(Te){return Math.max(0,Math.min(1,Te||0))}function K(Te,Pe,Ie){return 255*(Te<60?Pe+(Ie-Pe)*Te/60:Te<180?Ie:Te<240?Pe+(Ie-Pe)*(240-Te)/60:Pe)}c(i,T,{copy:function(Te){return Object.assign(new this.constructor,this,Te)},displayable:function(){return this.rgb().displayable()},hex:R,formatHex:R,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return U(this).formatHsl()},formatRgb:M,toString:M}),c(D,L,b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},darker:function(Te){return Te=Te==null?O:Math.pow(O,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},rgb:function(){return this},clamp:function(){return new D($(this.r),$(this.g),$(this.b),z(this.opacity))},displayable:function(){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:k,formatHex:k,formatHex8:function(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b)).concat(Q(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:I,toString:I})),c(X,function(Te,Pe,Ie,ze){return arguments.length===1?U(Te):new X(Te,Pe,Ie,ze??1)},b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new X(this.h,this.s,this.l*Te,this.opacity)},darker:function(Te){return Te=Te==null?O:Math.pow(O,Te),new X(this.h,this.s,this.l*Te,this.opacity)},rgb:function(){var Te=this.h%360+360*(this.h<0),Pe=isNaN(Te)||isNaN(this.s)?0:this.s,Ie=this.l,ze=Ie+(Ie<.5?Ie:1-Ie)*Pe,De=2*Ie-ze;return new D(K(Te>=240?Te-240:Te+120,De,ze),K(Te,De,ze),K(Te<120?Te+240:Te-120,De,ze),this.opacity)},clamp:function(){return new X(te(this.h),W(this.s),W(this.l),z(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var Te=z(this.opacity);return"".concat(Te===1?"hsl(":"hsla(").concat(te(this.h),", ").concat(100*W(this.s),"%, ").concat(100*W(this.l),"%").concat(Te===1?")":", ".concat(Te,")"))}}));var oe=function(Te){return function(){return Te}};function q(Te,Pe){var Ie=Pe-Te;return Ie?function(ze,De){return function(He){return ze+He*De}}(Te,Ie):oe(isNaN(Te)?Pe:Te)}var Y=function Te(Pe){var Ie=function(De){return(De=+De)==1?q:function(He,Ve){return Ve-He?function($e,Oe,ke){return $e=Math.pow($e,ke),Oe=Math.pow(Oe,ke)-$e,ke=1/ke,function(Le){return Math.pow($e+Le*Oe,ke)}}(He,Ve,De):oe(isNaN(He)?Ve:He)}}(Pe);function ze(De,He){var Ve=Ie((De=L(De)).r,(He=L(He)).r),$e=Ie(De.g,He.g),Oe=Ie(De.b,He.b),ke=q(De.opacity,He.opacity);return function(Le){return De.r=Ve(Le),De.g=$e(Le),De.b=Oe(Le),De.opacity=ke(Le),De+""}}return ze.gamma=Te,ze}(1);function ee(Te,Pe){var Ie,ze=Pe?Pe.length:0,De=Te?Math.min(ze,Te.length):0,He=new Array(De),Ve=new Array(ze);for(Ie=0;IeHe&&(De=Pe.slice(He,De),$e[Ve]?$e[Ve]+=De:$e[++Ve]=De),(Ie=Ie[0])===(ze=ze[0])?$e[Ve]?$e[Ve]+=ze:$e[++Ve]=ze:($e[++Ve]=null,Oe.push({i:Ve,x:he(Ie,ze)})),He=de.lastIndex;return He{const f=document.getElementById(t.id);f&&vhe.Plots.resize(f)},o=f=>{const P=JSON.parse(f);vhe.react(t.id,P.data,P.layout)};ag(()=>{o(t.figureJson),window.addEventListener("resize",e)}),Nle(()=>{window.removeEventListener("resize",e)}),Ni(()=>t.figureJson,f=>{o(f)})}}),hm=(t,e)=>{const o=t.__vccOpts||t;for(const[f,P]of e)o[f]=P;return o},qke=["id"];function Wke(t,e,o,f,P,d){return Bo(),Da("div",{id:t.id,style:{height:"100%",width:"100%"}},null,8,qke)}const Kle=hm(Zke,[["render",Wke]]);class ru{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,o,f){let P=[];return this.decompose(0,e,P,2),f.length&&f.decompose(0,f.length,P,3),this.decompose(o,this.length,P,1),n_.from(P,this.length-(o-e)+f.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,o=this.length){let f=[];return this.decompose(e,o,f,0),n_.from(f,o-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let o=this.scanIdentical(e,1),f=this.length-this.scanIdentical(e,-1),P=new sI(this),d=new sI(e);for(let l=o,n=o;;){if(P.next(l),d.next(l),l=0,P.lineBreak!=d.lineBreak||P.done!=d.done||P.value!=d.value)return!1;if(n+=P.value.length,P.done||n>=f)return!0}}iter(e=1){return new sI(this,e)}iterRange(e,o=this.length){return new _ve(this,e,o)}iterLines(e,o){let f;if(e==null)f=this.iter();else{o==null&&(o=this.lines+1);let P=this.line(e).from;f=this.iterRange(P,Math.max(P,o==this.lines+1?this.length:o<=1?0:this.line(o-1).to))}return new wve(f)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ru.empty:e.length<=32?new Fh(e):n_.from(Fh.split(e,[]))}}class Fh extends ru{constructor(e,o=Yke(e)){super(),this.text=e,this.length=o}get lines(){return this.text.length}get children(){return null}lineInner(e,o,f,P){for(let d=0;;d++){let l=this.text[d],n=P+l.length;if((o?f:n)>=e)return new Xke(P,n,f,l);P=n+1,f++}}decompose(e,o,f,P){let d=e<=0&&o>=this.length?this:new Fh(yhe(this.text,e,o),Math.min(o,this.length)-Math.max(0,e));if(P&1){let l=f.pop(),n=fH(d.text,l.text.slice(),0,d.length);if(n.length<=32)f.push(new Fh(n,l.length+d.length));else{let c=n.length>>1;f.push(new Fh(n.slice(0,c)),new Fh(n.slice(c)))}}else f.push(d)}replace(e,o,f){if(!(f instanceof Fh))return super.replace(e,o,f);let P=fH(this.text,fH(f.text,yhe(this.text,0,e)),o),d=this.length+f.length-(o-e);return P.length<=32?new Fh(P,d):n_.from(Fh.split(P,[]),d)}sliceString(e,o=this.length,f=` +`)):Y=U.stylize("[Circular]","special")),M(q)){if(oe&&K.match(/^\d+$/))return Y;(q=JSON.stringify(""+K)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=U.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=U.stylize(q,"string"))}return q+": "+Y}function _(U){return Array.isArray(U)}function S(U){return typeof U=="boolean"}function A(U){return U===null}function x(U){return typeof U=="number"}function R(U){return typeof U=="string"}function M(U){return U===void 0}function T(U){return E(U)&&k(U)==="[object RegExp]"}function E(U){return typeof U=="object"&&U!==null}function C(U){return E(U)&&k(U)==="[object Date]"}function L(U){return E(U)&&(k(U)==="[object Error]"||U instanceof Error)}function D(U){return typeof U=="function"}function k(U){return Object.prototype.toString.call(U)}function I(U){return U<10?"0"+U.toString(10):U.toString(10)}l.debuglog=function(U){if(U=U.toUpperCase(),!O[U])if(w.test(U)){var X=c.pid;O[U]=function(){var te=l.format.apply(l,arguments);console.error("%s %d: %s",U,X,te)}}else O[U]=function(){};return O[U]},l.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},l.types=n(41088),l.isArray=_,l.isBoolean=S,l.isNull=A,l.isNullOrUndefined=function(U){return U==null},l.isNumber=x,l.isString=R,l.isSymbol=function(U){return typeof U=="symbol"},l.isUndefined=M,l.isRegExp=T,l.types.isRegExp=T,l.isObject=E,l.isDate=C,l.types.isDate=C,l.isError=L,l.types.isNativeError=L,l.isFunction=D,l.isPrimitive=function(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||U===void 0},l.isBuffer=n(75272);var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $(U,X){return Object.prototype.hasOwnProperty.call(U,X)}l.log=function(){var U,X;console.log("%s - %s",(X=[I((U=new Date).getHours()),I(U.getMinutes()),I(U.getSeconds())].join(":"),[U.getDate(),z[U.getMonth()],X].join(" ")),l.format.apply(l,arguments))},l.inherits=n(6768),l._extend=function(U,X){if(!X||!E(X))return U;for(var te=Object.keys(X),W=te.length;W--;)U[te[W]]=X[te[W]];return U};var Q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function j(U,X){if(!U){var te=new Error("Promise was rejected with a falsy value");te.reason=U,U=te}return X(U)}l.promisify=function(U){if(typeof U!="function")throw new TypeError('The "original" argument must be of type Function');if(Q&&U[Q]){var X;if(typeof(X=U[Q])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,Q,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var te,W,K=new Promise(function(Y,ee){te=Y,W=ee}),oe=[],q=0;q"u"?n.g:globalThis,u=b(),h=O("String.prototype.slice"),m=Object.getPrototypeOf,v=O("Array.prototype.indexOf",!0)||function(S,A){for(var x=0;x-1?A:A==="Object"&&function(x){var R=!1;return c(_,function(M,T){if(!R)try{M(x),R=h(T,1)}catch{}}),R}(S)}return w?function(x){var R=!1;return c(_,function(M,T){if(!R)try{"$"+M(x)===T&&(R=h(T,1))}catch{}}),R}(S):null}},67020:function(d,l,n){var c=n(38700),b=n(50896),i=c.instance();function O(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}O.prototype=new c.baseCalendar,b(O.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(m,v){if(typeof m=="string"){var _=m.match(y);return _?_[0]:""}var S=this._validateYear(m),A=m.month(),x=""+this.toChineseMonth(S,A);return v&&x.length<2&&(x="0"+x),this.isIntercalaryMonth(S,A)&&(x+="i"),x},monthNames:function(m){if(typeof m=="string"){var v=m.match(p);return v?v[0]:""}var _=this._validateYear(m),S=m.month(),A=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(_,S)-1];return this.isIntercalaryMonth(_,S)&&(A="闰"+A),A},monthNamesShort:function(m){if(typeof m=="string"){var v=m.match(a);return v?v[0]:""}var _=this._validateYear(m),S=m.month(),A=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(_,S)-1];return this.isIntercalaryMonth(_,S)&&(A="闰"+A),A},parseMonth:function(m,v){m=this._validateYear(m);var _,S=parseInt(v);if(isNaN(S))v[0]==="闰"&&(_=!0,v=v.substring(1)),v[v.length-1]==="月"&&(v=v.substring(0,v.length-1)),S=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(v);else{var A=v[v.length-1];_=A==="i"||A==="I"}return this.toMonthIndex(m,S,_)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(m,v){if(m.year&&(m=m.year()),typeof m!="number"||m<1888||m>2111)throw v.replace(/\{0\}/,this.local.name);return m},toMonthIndex:function(m,v,_){var S=this.intercalaryMonth(m);if(_&&v!==S||v<1||v>12)throw c.local.invalidMonth.replace(/\{0\}/,this.local.name);return S?!_&&v<=S?v-1:v:v-1},toChineseMonth:function(m,v){m.year&&(v=(m=m.year()).month());var _=this.intercalaryMonth(m);if(v<0||v>(_?12:11))throw c.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?v<_?v+1:v:v+1},intercalaryMonth:function(m){return m=this._validateYear(m),u[m-u[0]]>>13},isIntercalaryMonth:function(m,v){m.year&&(v=(m=m.year()).month());var _=this.intercalaryMonth(m);return!!_&&_===v},leapYear:function(m){return this.intercalaryMonth(m)!==0},weekOfYear:function(m,v,_){var S,A=this._validateYear(m,c.local.invalidyear),x=h[A-h[0]],R=x>>9&4095,M=x>>5&15,T=31&x;(S=i.newDate(R,M,T)).add(4-(S.dayOfWeek()||7),"d");var E=this.toJD(m,v,_)-S.toJD();return 1+Math.floor(E/7)},monthsInYear:function(m){return this.leapYear(m)?13:12},daysInMonth:function(m,v){m.year&&(v=m.month(),m=m.year()),m=this._validateYear(m);var _=u[m-u[0]];if(v>(_>>13?12:11))throw c.local.invalidMonth.replace(/\{0\}/,this.local.name);return _&1<<12-v?30:29},weekDay:function(m,v,_){return(this.dayOfWeek(m,v,_)||7)<6},toJD:function(m,v,_){var S=this._validate(m,x,_,c.local.invalidDate);m=this._validateYear(S.year()),v=S.month(),_=S.day();var A=this.isIntercalaryMonth(m,v),x=this.toChineseMonth(m,v),R=function(M,T,E,C,L){var D,k,I;if(typeof M=="object")k=M,D=T||{};else{var z;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof E=="number"&&E>=1&&E<=30))throw new Error("Lunar day outside range 1 - 30");typeof C=="object"?(z=!1,D=C):(z=!!C,D={}),k={year:M,month:T,day:E,isIntercalary:z}}I=k.day-1;var $,Q=u[k.year-u[0]],j=Q>>13;$=j&&(k.month>j||k.isIntercalary)?k.month:k.month-1;for(var U=0;U<$;U++)I+=Q&1<<12-U?30:29;var X=h[k.year-h[0]],te=new Date(X>>9&4095,(X>>5&15)-1,(31&X)+I);return D.year=te.getFullYear(),D.month=1+te.getMonth(),D.day=te.getDate(),D}(m,x,_,A);return i.toJD(R.year,R.month,R.day)},fromJD:function(m){var v=i.fromJD(m),_=function(A,x,R,M){var T,E;if(typeof A=="object")T=A,E=x||{};else{if(!(typeof A=="number"&&A>=1888&&A<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof x=="number"&&x>=1&&x<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof R=="number"&&R>=1&&R<=31))throw new Error("Solar day outside range 1 - 31");T={year:A,month:x,day:R},E={}}var C=h[T.year-h[0]],L=T.year<<9|T.month<<5|T.day;E.year=L>=C?T.year:T.year-1,C=h[E.year-h[0]];var D,k=new Date(C>>9&4095,(C>>5&15)-1,31&C),I=new Date(T.year,T.month-1,T.day);D=Math.round((I-k)/864e5);var z,$=u[E.year-u[0]];for(z=0;z<13;z++){var Q=$&1<<12-z?30:29;if(D>13;return!j||z=2&&a<=6},extraInfo:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return{century:O[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return w=a.year()+(a.year()<0?1:0),y=a.month(),(p=a.day())+(y>1?16:0)+(y>2?32*(y-2):0)+400*(w-1)+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w+.5)-Math.floor(this.jdEpoch)-1;var y=Math.floor(w/400)+1;w-=400*(y-1),w+=w>15?16:0;var p=Math.floor(w/32)+1,a=w-32*(p-1)+1;return this.newDate(y<=0?y-1:y,p,a)}});var O={20:"Fruitbat",21:"Anchovy"};c.calendars.discworld=i},65168:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(O){var w=this._validate(O,this.minMonth,this.minDay,c.local.invalidYear);return(O=w.year()+(w.year()<0?1:0))%4==3||O%4==-1},monthsInYear:function(O){return this._validate(O,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear),13},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(O,w){var y=this._validate(O,w,this.minDay,c.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===13&&this.leapYear(y.year())?1:0)},weekDay:function(O,w,y){return(this.dayOfWeek(O,w,y)||7)<6},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);return(O=p.year())<0&&O++,p.day()+30*(p.month()-1)+365*(O-1)+Math.floor(O/4)+this.jdEpoch-1},fromJD:function(O){var w=Math.floor(O)+.5-this.jdEpoch,y=Math.floor((w-Math.floor((w+366)/1461))/365)+1;y<=0&&y--,w=Math.floor(O)+.5-this.newDate(y,1,1).toJD();var p=Math.floor(w/30)+1,a=w-30*(p-1)+1;return this.newDate(y,p,a)}}),c.calendars.ethiopian=i},2084:function(d,l,n){var c=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}function O(w,y){return w-y*Math.floor(w/y)}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return this._leapYear(y.year())},_leapYear:function(w){return O(7*(w=w<0?w+1:w)+1,19)<7},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,c.local.invalidYear),this._leapYear(w.year?w.year():w)?13:12},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){return w=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear).year(),this.toJD(w===-1?1:w+1,7,1)-this.toJD(w,7,1)},daysInMonth:function(w,y){return w.year&&(y=w.month(),w=w.year()),this._validate(w,y,this.minDay,c.local.invalidMonth),y===12&&this.leapYear(w)||y===8&&O(this.daysInYear(w),10)===5?30:y===9&&O(this.daysInYear(w),10)===3?29:this.daysPerMonth[y-1]},weekDay:function(w,y,p){return this.dayOfWeek(w,y,p)!==6},extraInfo:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);w=a.year(),y=a.month(),p=a.day();var u=w<=0?w+1:w,h=this.jdEpoch+this._delay1(u)+this._delay2(u)+p+1;if(y<7){for(var m=7;m<=this.monthsInYear(w);m++)h+=this.daysInMonth(w,m);for(m=1;m=this.toJD(y===-1?1:y+1,7,1);)y++;for(var p=wthis.toJD(y,p,this.daysInMonth(y,p));)p++;var a=w-this.toJD(y,p,1)+1;return this.newDate(y,p,a)}}),c.calendars.hebrew=i},26368:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(O){return(11*this._validate(O,this.minMonth,this.minDay,c.local.invalidYear).year()+14)%30<11},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(O){return this.leapYear(O)?355:354},daysInMonth:function(O,w){var y=this._validate(O,w,this.minDay,c.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===12&&this.leapYear(y.year())?1:0)},weekDay:function(O,w,y){return this.dayOfWeek(O,w,y)!==5},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);return O=p.year(),w=p.month(),O=O<=0?O+1:O,(y=p.day())+Math.ceil(29.5*(w-1))+354*(O-1)+Math.floor((3+11*O)/30)+this.jdEpoch-1},fromJD:function(O){O=Math.floor(O)+.5;var w=Math.floor((30*(O-this.jdEpoch)+10646)/10631);w=w<=0?w-1:w;var y=Math.min(12,Math.ceil((O-29-this.toJD(w,1,1))/29.5)+1),p=O-this.toJD(w,y,1)+1;return this.newDate(w,y,p)}}),c.calendars.islamic=i},24747:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(O){var w=this._validate(O,this.minMonth,this.minDay,c.local.invalidYear);return(O=w.year()<0?w.year()+1:w.year())%4==0},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(O,w){var y=this._validate(O,w,this.minDay,c.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===2&&this.leapYear(y.year())?1:0)},weekDay:function(O,w,y){return(this.dayOfWeek(O,w,y)||7)<6},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);return O=p.year(),w=p.month(),y=p.day(),O<0&&O++,w<=2&&(O--,w+=12),Math.floor(365.25*(O+4716))+Math.floor(30.6001*(w+1))+y-1524.5},fromJD:function(O){var w=Math.floor(O+.5)+1524,y=Math.floor((w-122.1)/365.25),p=Math.floor(365.25*y),a=Math.floor((w-p)/30.6001),u=a-Math.floor(a<14?1:13),h=y-Math.floor(u>2?4716:4715),m=w-p-Math.floor(30.6001*a);return h<=0&&h--,this.newDate(h,u,m)}}),c.calendars.julian=i},65616:function(d,l,n){var c=n(38700),b=n(50896);function i(y){this.local=this.regionalOptions[y||""]||this.regionalOptions[""]}function O(y,p){return y-p*Math.floor(y/p)}function w(y,p){return O(y-1,p)+1}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(y){return this._validate(y,this.minMonth,this.minDay,c.local.invalidYear),!1},formatYear:function(y){y=this._validate(y,this.minMonth,this.minDay,c.local.invalidYear).year();var p=Math.floor(y/400);return y%=400,y+=y<0?400:0,p+"."+Math.floor(y/20)+"."+y%20},forYear:function(y){if((y=y.split(".")).length<3)throw"Invalid Mayan year";for(var p=0,a=0;a19||a>0&&u<0)throw"Invalid Mayan year";p=20*p+u}return p},monthsInYear:function(y){return this._validate(y,this.minMonth,this.minDay,c.local.invalidYear),18},weekOfYear:function(y,p,a){return this._validate(y,p,a,c.local.invalidDate),0},daysInYear:function(y){return this._validate(y,this.minMonth,this.minDay,c.local.invalidYear),360},daysInMonth:function(y,p){return this._validate(y,p,this.minDay,c.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(y,p,a){return this._validate(y,p,a,c.local.invalidDate).day()},weekDay:function(y,p,a){return this._validate(y,p,a,c.local.invalidDate),!0},extraInfo:function(y,p,a){var u=this._validate(y,p,a,c.local.invalidDate).toJD(),h=this._toHaab(u),m=this._toTzolkin(u);return{haabMonthName:this.local.haabMonths[h[0]-1],haabMonth:h[0],haabDay:h[1],tzolkinDayName:this.local.tzolkinMonths[m[0]-1],tzolkinDay:m[0],tzolkinTrecena:m[1]}},_toHaab:function(y){var p=O(8+(y-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,O(p,20)]},_toTzolkin:function(y){return[w(20+(y-=this.jdEpoch),20),w(y+4,13)]},toJD:function(y,p,a){var u=this._validate(y,p,a,c.local.invalidDate);return u.day()+20*u.month()+360*u.year()+this.jdEpoch},fromJD:function(y){y=Math.floor(y)+.5-this.jdEpoch;var p=Math.floor(y/360);y%=360,y+=y<0?360:0;var a=Math.floor(y/20),u=y%20;return this.newDate(p,a,u)}}),c.calendars.mayan=i},30632:function(d,l,n){var c=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar;var O=c.instance("gregorian");b(i.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return O.leapYear(y.year()+(y.year()<1?1:0)+1469)},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return(this.dayOfWeek(w,y,p)||7)<6},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidMonth);(w=a.year())<0&&w++;for(var u=a.day(),h=1;h=this.toJD(y+1,1,1);)y++;for(var p=w-Math.floor(this.toJD(y,1,1)+.5)+1,a=1;p>this.daysInMonth(y,a);)p-=this.daysInMonth(y,a),a++;return this.newDate(y,a,p)}}),c.calendars.nanakshahi=i},73040:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(O){return this.daysInYear(O)!==this.daysPerYear},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(O){if(O=this._validate(O,this.minMonth,this.minDay,c.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[O]===void 0)return this.daysPerYear;for(var w=0,y=this.minMonth;y<=12;y++)w+=this.NEPALI_CALENDAR_DATA[O][y];return w},daysInMonth:function(O,w){return O.year&&(w=O.month(),O=O.year()),this._validate(O,w,this.minDay,c.local.invalidMonth),this.NEPALI_CALENDAR_DATA[O]===void 0?this.daysPerMonth[w-1]:this.NEPALI_CALENDAR_DATA[O][w]},weekDay:function(O,w,y){return this.dayOfWeek(O,w,y)!==6},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);O=p.year(),w=p.month(),y=p.day();var a=c.instance(),u=0,h=w,m=O;this._createMissingCalendarData(O);var v=O-(h>9||h===9&&y>=this.NEPALI_CALENDAR_DATA[m][0]?56:57);for(w!==9&&(u=y,h--);h!==9;)h<=0&&(h=12,m--),u+=this.NEPALI_CALENDAR_DATA[m][h],h--;return w===9?(u+=y-this.NEPALI_CALENDAR_DATA[m][0])<0&&(u+=a.daysInYear(v)):u+=this.NEPALI_CALENDAR_DATA[m][9]-this.NEPALI_CALENDAR_DATA[m][0],a.newDate(v,1,1).add(u,"d").toJD()},fromJD:function(O){var w=c.instance().fromJD(O),y=w.year(),p=w.dayOfYear(),a=y+56;this._createMissingCalendarData(a);for(var u=9,h=this.NEPALI_CALENDAR_DATA[a][0],m=this.NEPALI_CALENDAR_DATA[a][u]-h+1;p>m;)++u>12&&(u=1,a++),m+=this.NEPALI_CALENDAR_DATA[a][u];var v=this.NEPALI_CALENDAR_DATA[a][u]-(m-p);return this.newDate(a,u,v)},_createMissingCalendarData:function(O){var w=this.daysPerMonth.slice(0);w.unshift(17);for(var y=O-1;y0?474:473))%2820+474+38)%2816<682},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(-(a.dayOfWeek()+1)%7,"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return this.dayOfWeek(w,y,p)!==5},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);w=a.year(),y=a.month(),p=a.day();var u=w-(w>=0?474:473),h=474+O(u,2820);return p+(y<=7?31*(y-1):30*(y-1)+6)+Math.floor((682*h-110)/2816)+365*(h-1)+1029983*Math.floor(u/2820)+this.jdEpoch-1},fromJD:function(w){var y=(w=Math.floor(w)+.5)-this.toJD(475,1,1),p=Math.floor(y/1029983),a=O(y,1029983),u=2820;if(a!==1029982){var h=Math.floor(a/366),m=O(a,366);u=Math.floor((2134*h+2816*m+2815)/1028522)+h+1}var v=u+2820*p+474;v=v<=0?v-1:v;var _=w-this.toJD(v,1,1)+1,S=_<=186?Math.ceil(_/31):Math.ceil((_-6)/30),A=w-this.toJD(v,S,1)+1;return this.newDate(v,S,A)}}),c.calendars.persian=i,c.calendars.jalali=i},51456:function(d,l,n){var c=n(38700),b=n(50896),i=c.instance();function O(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}O.prototype=new c.baseCalendar,b(O.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,p){var a=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return(this.dayOfWeek(w,y,p)||7)<6},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),p=this._g2tYear(y.year());return this.newDate(p,y.month(),y.day())},_t2gYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)},_g2tYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)}}),c.calendars.taiwan=O},4592:function(d,l,n){var c=n(38700),b=n(50896),i=c.instance();function O(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}O.prototype=new c.baseCalendar,b(O.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,p){var a=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return(this.dayOfWeek(w,y,p)||7)<6},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),p=this._g2tYear(y.year());return this.newDate(p,y.month(),y.day())},_t2gYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)},_g2tYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)}}),c.calendars.thai=O},45348:function(d,l,n){var c=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return this.daysInYear(y.year())===355},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){for(var y=0,p=1;p<=12;p++)y+=this.daysInMonth(w,p);return y},daysInMonth:function(w,y){for(var p=this._validate(w,y,this.minDay,c.local.invalidMonth).toJD()-24e5+.5,a=0,u=0;up)return O[a]-O[a-1];a++}return 30},weekDay:function(w,y,p){return this.dayOfWeek(w,y,p)!==5},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate),u=12*(a.year()-1)+a.month()-15292;return a.day()+O[u-1]-1+24e5-.5},fromJD:function(w){for(var y=w-24e5+.5,p=0,a=0;ay);a++)p++;var u=p+15292,h=Math.floor((u-1)/12),m=h+1,v=u-12*h,_=y-O[p-1]+1;return this.newDate(m,v,_)},isValid:function(w,y,p){var a=c.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(w=w.year!=null?w.year:w)>=1276&&w<=1500),a},_validate:function(w,y,p,a){var u=c.baseCalendar.prototype._validate.apply(this,arguments);if(u.year<1276||u.year>1500)throw a.replace(/\{0\}/,this.local.name);return u}}),c.calendars.ummalqura=i;var O=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(d,l,n){var c=n(50896);function b(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(a,u,h,m){if(this._calendar=a,this._year=u,this._month=h,this._day=m,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function O(a,u){return"000000".substring(0,u-(a=""+a).length)+a}function w(){this.shortYearCutoff="+10"}function y(a){this.local=this.regionalOptions[a]||this.regionalOptions[""]}c(b.prototype,{instance:function(a,u){a=(a||"gregorian").toLowerCase(),u=u||"";var h=this._localCals[a+"-"+u];if(!h&&this.calendars[a]&&(h=new this.calendars[a](u),this._localCals[a+"-"+u]=h),!h)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,a);return h},newDate:function(a,u,h,m,v){return(m=(a!=null&&a.year?a.calendar():typeof m=="string"?this.instance(m,v):m)||this.instance()).newDate(a,u,h)},substituteDigits:function(a){return function(u){return(u+"").replace(/[0-9]/g,function(h){return a[h]})}},substituteChineseDigits:function(a,u){return function(h){for(var m="",v=0;h>0;){var _=h%10;m=(_===0?"":a[_]+u[v])+m,v++,h=Math.floor(h/10)}return m.indexOf(a[1]+u[1])===0&&(m=m.substr(1)),m||a[0]}}}),c(i.prototype,{newDate:function(a,u,h){return this._calendar.newDate(a??this,u,h)},year:function(a){return arguments.length===0?this._year:this.set(a,"y")},month:function(a){return arguments.length===0?this._month:this.set(a,"m")},day:function(a){return arguments.length===0?this._day:this.set(a,"d")},date:function(a,u,h){if(!this._calendar.isValid(a,u,h))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=a,this._month=u,this._day=h,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(a,u){return this._calendar.add(this,a,u)},set:function(a,u){return this._calendar.set(this,a,u)},compareTo:function(a){if(this._calendar.name!==a._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,a._calendar.local.name);var u=this._year!==a._year?this._year-a._year:this._month!==a._month?this.monthOfYear()-a.monthOfYear():this._day-a._day;return u===0?0:u<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(a){return this._calendar.fromJD(a)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(a){return this._calendar.fromJSDate(a)},toString:function(){return(this.year()<0?"-":"")+O(Math.abs(this.year()),4)+"-"+O(this.month(),2)+"-"+O(this.day(),2)}}),c(w.prototype,{_validateLevel:0,newDate:function(a,u,h){return a==null?this.today():(a.year&&(this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate),h=a.day(),u=a.month(),a=a.year()),new i(this,a,u,h))},today:function(){return this.fromJSDate(new Date)},epoch:function(a){return this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(a){var u=this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(u.year()<0?"-":"")+O(Math.abs(u.year()),4)},monthsInYear:function(a){return this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(a,u){var h=this._validate(a,u,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(h.month()+this.monthsInYear(h)-this.firstMonth)%this.monthsInYear(h)+this.minMonth},fromMonthOfYear:function(a,u){var h=(u+this.firstMonth-2*this.minMonth)%this.monthsInYear(a)+this.minMonth;return this._validate(a,h,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),h},daysInYear:function(a){var u=this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(u)?366:365},dayOfYear:function(a,u,h){var m=this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate);return m.toJD()-this.newDate(m.year(),this.fromMonthOfYear(m.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(a,u,h){var m=this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(m))+2)%this.daysInWeek()},extraInfo:function(a,u,h){return this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(a,u,h){return this._validate(a,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(a,this._add(a,u,h),u,h)},_add:function(a,u,h){if(this._validateLevel++,h==="d"||h==="w"){var m=a.toJD()+u*(h==="w"?this.daysInWeek():1),v=a.calendar().fromJD(m);return this._validateLevel--,[v.year(),v.month(),v.day()]}try{var _=a.year()+(h==="y"?u:0),S=a.monthOfYear()+(h==="m"?u:0);v=a.day(),h==="y"?(a.month()!==this.fromMonthOfYear(_,S)&&(S=this.newDate(_,a.month(),this.minDay).monthOfYear()),S=Math.min(S,this.monthsInYear(_)),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,S)))):h==="m"&&(function(x){for(;SR-1+x.minMonth;)_++,S-=R,R=x.monthsInYear(_)}(this),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,S))));var A=[_,this.fromMonthOfYear(_,S),v];return this._validateLevel--,A}catch(x){throw this._validateLevel--,x}},_correctAdd:function(a,u,h,m){if(!(this.hasYearZero||m!=="y"&&m!=="m"||u[0]!==0&&a.year()>0==u[0]>0)){var v={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[m],_=h<0?-1:1;u=this._add(a,h*v[0]+_*v[1],v[2])}return a.date(u[0],u[1],u[2])},set:function(a,u,h){this._validate(a,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var m=h==="y"?u:a.year(),v=h==="m"?u:a.month(),_=h==="d"?u:a.day();return h!=="y"&&h!=="m"||(_=Math.min(_,this.daysInMonth(m,v))),a.date(m,v,_)},isValid:function(a,u,h){this._validateLevel++;var m=this.hasYearZero||a!==0;if(m){var v=this.newDate(a,u,this.minDay);m=u>=this.minMonth&&u-this.minMonth=this.minDay&&h-this.minDay13.5?13:1),R=v-(x>2.5?4716:4715);return R<=0&&R--,this.newDate(R,x,A)},toJSDate:function(a,u,h){var m=this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=new Date(m.year(),m.month()-1,m.day());return v.setHours(0),v.setMinutes(0),v.setSeconds(0),v.setMilliseconds(0),v.setHours(v.getHours()>12?v.getHours()+2:0),v},fromJSDate:function(a){return this.newDate(a.getFullYear(),a.getMonth()+1,a.getDate())}});var p=d.exports=new b;p.cdate=i,p.baseCalendar=w,p.calendars.gregorian=y},15168:function(d,l,n){var c=n(50896),b=n(38700);c(b.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),b.local=b.regionalOptions[""],c(b.cdate.prototype,{formatDate:function(i,O){return typeof i!="string"&&(O=i,i=""),this._calendar.formatDate(i||"",this,O)}}),c(b.baseCalendar.prototype,{UNIX_EPOCH:b.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:b.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(i,O,w){if(typeof i!="string"&&(w=O,O=i,i=""),!O)return"";if(O.calendar()!==this)throw b.local.invalidFormat||b.regionalOptions[""].invalidFormat;i=i||this.local.dateFormat;for(var y,p,a,u=(w=w||{}).dayNamesShort||this.local.dayNamesShort,h=w.dayNames||this.local.dayNames,m=w.monthNumbers||this.local.monthNumbers,v=w.monthNamesShort||this.local.monthNamesShort,_=w.monthNames||this.local.monthNames,S=(w.calculateWeek||this.local.calculateWeek,function(k,I){for(var z=1;D+z1}),A=function(k,I,z,$){var Q=""+I;if(S(k,$))for(;Q.length1},C=function(X,te){var W=E(X,te),K=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],oe=new RegExp("^-?\\d{1,"+K+"}"),q=O.substring($).match(oe);if(!q)throw(b.local.missingNumberAt||b.regionalOptions[""].missingNumberAt).replace(/\{0\}/,$);return $+=q[0].length,parseInt(q[0],10)},L=this,D=function(){if(typeof h=="function"){E("m");var X=h.call(L,O.substring($));return $+=X.length,X}return C("m")},k=function(X,te,W,K){for(var oe=E(X,K)?W:te,q=0;q-1){A=1,x=R;for(var U=this.daysInMonth(S,A);x>U;U=this.daysInMonth(S,A))A++,x-=U}return _>-1?this.fromJD(_):this.newDate(S,A,x)},determineDate:function(i,O,w,y,p){w&&typeof w!="object"&&(p=y,y=w,w=null),typeof y!="string"&&(p=y,y="");var a=this;return O=O?O.newDate():null,i==null?O:typeof i=="string"?function(u){try{return a.parseDate(y,u,p)}catch{}for(var h=((u=u.toLowerCase()).match(/^c/)&&w?w.newDate():null)||a.today(),m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,v=m.exec(u);v;)h.add(parseInt(v[1],10),v[2]||"d"),v=m.exec(u);return h}(i):typeof i=="number"?isNaN(i)||i===1/0||i===-1/0?O:a.today().add(i,"d"):a.newDate(i)}})},21576:function(){},19768:function(){},63436:function(d,l,n){var c=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],b=typeof globalThis>"u"?n.g:globalThis;d.exports=function(){for(var i=[],O=0;O>8&15|Pe>>4&240,Pe>>4&15|240&Pe,(15&Pe)<<4|15&Pe,1):Ie===8?C(Pe>>24&255,Pe>>16&255,Pe>>8&255,(255&Pe)/255):Ie===4?C(Pe>>12&15|Pe>>8&240,Pe>>8&15|Pe>>4&240,Pe>>4&15|240&Pe,((15&Pe)<<4|15&Pe)/255):null):(Pe=h.exec(Te))?new D(Pe[1],Pe[2],Pe[3],1):(Pe=m.exec(Te))?new D(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,1):(Pe=v.exec(Te))?C(Pe[1],Pe[2],Pe[3],Pe[4]):(Pe=_.exec(Te))?C(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,Pe[4]):(Pe=S.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,1):(Pe=A.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,Pe[4]):x.hasOwnProperty(Te)?E(x[Te]):Te==="transparent"?new D(NaN,NaN,NaN,0):null}function E(Te){return new D(Te>>16&255,Te>>8&255,255&Te,1)}function C(Te,Pe,Ie,ze){return ze<=0&&(Te=Pe=Ie=NaN),new D(Te,Pe,Ie,ze)}function L(Te,Pe,Ie,ze){return arguments.length===1?((De=Te)instanceof i||(De=T(De)),De?new D((De=De.rgb()).r,De.g,De.b,De.opacity):new D):new D(Te,Pe,Ie,ze??1);var De}function D(Te,Pe,Ie,ze){this.r=+Te,this.g=+Pe,this.b=+Ie,this.opacity=+ze}function k(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b))}function I(){var Te=z(this.opacity);return"".concat(Te===1?"rgb(":"rgba(").concat($(this.r),", ").concat($(this.g),", ").concat($(this.b)).concat(Te===1?")":", ".concat(Te,")"))}function z(Te){return isNaN(Te)?1:Math.max(0,Math.min(1,Te))}function $(Te){return Math.max(0,Math.min(255,Math.round(Te)||0))}function Q(Te){return((Te=$(Te))<16?"0":"")+Te.toString(16)}function j(Te,Pe,Ie,ze){return ze<=0?Te=Pe=Ie=NaN:Ie<=0||Ie>=1?Te=Pe=NaN:Pe<=0&&(Te=NaN),new X(Te,Pe,Ie,ze)}function U(Te){if(Te instanceof X)return new X(Te.h,Te.s,Te.l,Te.opacity);if(Te instanceof i||(Te=T(Te)),!Te)return new X;if(Te instanceof X)return Te;var Pe=(Te=Te.rgb()).r/255,Ie=Te.g/255,ze=Te.b/255,De=Math.min(Pe,Ie,ze),He=Math.max(Pe,Ie,ze),Ve=NaN,$e=He-De,Oe=(He+De)/2;return $e?(Ve=Pe===He?(Ie-ze)/$e+6*(Ie0&&Oe<1?0:Ve,new X(Ve,$e,Oe,Te.opacity)}function X(Te,Pe,Ie,ze){this.h=+Te,this.s=+Pe,this.l=+Ie,this.opacity=+ze}function te(Te){return(Te=(Te||0)%360)<0?Te+360:Te}function W(Te){return Math.max(0,Math.min(1,Te||0))}function K(Te,Pe,Ie){return 255*(Te<60?Pe+(Ie-Pe)*Te/60:Te<180?Ie:Te<240?Pe+(Ie-Pe)*(240-Te)/60:Pe)}c(i,T,{copy:function(Te){return Object.assign(new this.constructor,this,Te)},displayable:function(){return this.rgb().displayable()},hex:R,formatHex:R,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return U(this).formatHsl()},formatRgb:M,toString:M}),c(D,L,b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},darker:function(Te){return Te=Te==null?O:Math.pow(O,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},rgb:function(){return this},clamp:function(){return new D($(this.r),$(this.g),$(this.b),z(this.opacity))},displayable:function(){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:k,formatHex:k,formatHex8:function(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b)).concat(Q(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:I,toString:I})),c(X,function(Te,Pe,Ie,ze){return arguments.length===1?U(Te):new X(Te,Pe,Ie,ze??1)},b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new X(this.h,this.s,this.l*Te,this.opacity)},darker:function(Te){return Te=Te==null?O:Math.pow(O,Te),new X(this.h,this.s,this.l*Te,this.opacity)},rgb:function(){var Te=this.h%360+360*(this.h<0),Pe=isNaN(Te)||isNaN(this.s)?0:this.s,Ie=this.l,ze=Ie+(Ie<.5?Ie:1-Ie)*Pe,De=2*Ie-ze;return new D(K(Te>=240?Te-240:Te+120,De,ze),K(Te,De,ze),K(Te<120?Te+240:Te-120,De,ze),this.opacity)},clamp:function(){return new X(te(this.h),W(this.s),W(this.l),z(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var Te=z(this.opacity);return"".concat(Te===1?"hsl(":"hsla(").concat(te(this.h),", ").concat(100*W(this.s),"%, ").concat(100*W(this.l),"%").concat(Te===1?")":", ".concat(Te,")"))}}));var oe=function(Te){return function(){return Te}};function q(Te,Pe){var Ie=Pe-Te;return Ie?function(ze,De){return function(He){return ze+He*De}}(Te,Ie):oe(isNaN(Te)?Pe:Te)}var Y=function Te(Pe){var Ie=function(De){return(De=+De)==1?q:function(He,Ve){return Ve-He?function($e,Oe,ke){return $e=Math.pow($e,ke),Oe=Math.pow(Oe,ke)-$e,ke=1/ke,function(Le){return Math.pow($e+Le*Oe,ke)}}(He,Ve,De):oe(isNaN(He)?Ve:He)}}(Pe);function ze(De,He){var Ve=Ie((De=L(De)).r,(He=L(He)).r),$e=Ie(De.g,He.g),Oe=Ie(De.b,He.b),ke=q(De.opacity,He.opacity);return function(Le){return De.r=Ve(Le),De.g=$e(Le),De.b=Oe(Le),De.opacity=ke(Le),De+""}}return ze.gamma=Te,ze}(1);function ee(Te,Pe){var Ie,ze=Pe?Pe.length:0,De=Te?Math.min(ze,Te.length):0,He=new Array(De),Ve=new Array(ze);for(Ie=0;IeHe&&(De=Pe.slice(He,De),$e[Ve]?$e[Ve]+=De:$e[++Ve]=De),(Ie=Ie[0])===(ze=ze[0])?$e[Ve]?$e[Ve]+=ze:$e[++Ve]=ze:($e[++Ve]=null,Oe.push({i:Ve,x:he(Ie,ze)})),He=de.lastIndex;return He{const f=document.getElementById(t.id);f&&yhe.Plots.resize(f)},o=f=>{const P=JSON.parse(f);yhe.react(t.id,P.data,P.layout)};sg(()=>{o(t.figureJson),window.addEventListener("resize",e)}),Nle(()=>{window.removeEventListener("resize",e)}),Ni(()=>t.figureJson,f=>{o(f)})}}),hm=(t,e)=>{const o=t.__vccOpts||t;for(const[f,P]of e)o[f]=P;return o},Wke=["id"];function Yke(t,e,o,f,P,d){return Do(),Da("div",{id:t.id,style:{height:"100%",width:"100%"}},null,8,Wke)}const Kle=hm(qke,[["render",Yke]]);class ru{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,o,f){let P=[];return this.decompose(0,e,P,2),f.length&&f.decompose(0,f.length,P,3),this.decompose(o,this.length,P,1),n_.from(P,this.length-(o-e)+f.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,o=this.length){let f=[];return this.decompose(e,o,f,0),n_.from(f,o-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let o=this.scanIdentical(e,1),f=this.length-this.scanIdentical(e,-1),P=new lI(this),d=new lI(e);for(let l=o,n=o;;){if(P.next(l),d.next(l),l=0,P.lineBreak!=d.lineBreak||P.done!=d.done||P.value!=d.value)return!1;if(n+=P.value.length,P.done||n>=f)return!0}}iter(e=1){return new lI(this,e)}iterRange(e,o=this.length){return new wve(this,e,o)}iterLines(e,o){let f;if(e==null)f=this.iter();else{o==null&&(o=this.lines+1);let P=this.line(e).from;f=this.iterRange(P,Math.max(P,o==this.lines+1?this.length:o<=1?0:this.line(o-1).to))}return new Ove(f)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ru.empty:e.length<=32?new Fh(e):n_.from(Fh.split(e,[]))}}class Fh extends ru{constructor(e,o=Xke(e)){super(),this.text=e,this.length=o}get lines(){return this.text.length}get children(){return null}lineInner(e,o,f,P){for(let d=0;;d++){let l=this.text[d],n=P+l.length;if((o?f:n)>=e)return new Gke(P,n,f,l);P=n+1,f++}}decompose(e,o,f,P){let d=e<=0&&o>=this.length?this:new Fh(bhe(this.text,e,o),Math.min(o,this.length)-Math.max(0,e));if(P&1){let l=f.pop(),n=fH(d.text,l.text.slice(),0,d.length);if(n.length<=32)f.push(new Fh(n,l.length+d.length));else{let c=n.length>>1;f.push(new Fh(n.slice(0,c)),new Fh(n.slice(c)))}}else f.push(d)}replace(e,o,f){if(!(f instanceof Fh))return super.replace(e,o,f);let P=fH(this.text,fH(f.text,bhe(this.text,0,e)),o),d=this.length+f.length-(o-e);return P.length<=32?new Fh(P,d):n_.from(Fh.split(P,[]),d)}sliceString(e,o=this.length,f=` `){let P="";for(let d=0,l=0;d<=o&&le&&l&&(P+=f),ed&&(P+=n.slice(Math.max(0,e-d),o-d)),d=c+1}return P}flatten(e){for(let o of this.text)e.push(o)}scanIdentical(){return 0}static split(e,o){let f=[],P=-1;for(let d of e)f.push(d),P+=d.length+1,f.length==32&&(o.push(new Fh(f,P)),f=[],P=-1);return P>-1&&o.push(new Fh(f,P)),o}}class n_ extends ru{constructor(e,o){super(),this.children=e,this.length=o,this.lines=0;for(let f of e)this.lines+=f.lines}lineInner(e,o,f,P){for(let d=0;;d++){let l=this.children[d],n=P+l.length,c=f+l.lines-1;if((o?c:n)>=e)return l.lineInner(e,o,f,P);P=n+1,f=c+1}}decompose(e,o,f,P){for(let d=0,l=0;l<=o&&d=l){let b=P&((l<=e?1:0)|(c>=o?2:0));l>=e&&c<=o&&!b?f.push(n):n.decompose(e-l,o-l,f,b)}l=c+1}}replace(e,o,f){if(f.lines=d&&o<=n){let c=l.replace(e-d,o-d,f),b=this.lines-l.lines+c.lines;if(c.lines>5-1&&c.lines>b>>5+1){let i=this.children.slice();return i[P]=c,new n_(i,this.length-(o-e)+f.length)}return super.replace(d,n,c)}d=n+1}return super.replace(e,o,f)}sliceString(e,o=this.length,f=` -`){let P="";for(let d=0,l=0;de&&d&&(P+=f),el&&(P+=n.sliceString(e-l,o-l,f)),l=c+1}return P}flatten(e){for(let o of this.children)o.flatten(e)}scanIdentical(e,o){if(!(e instanceof n_))return 0;let f=0,[P,d,l,n]=o>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;P+=o,d+=o){if(P==l||d==n)return f;let c=this.children[P],b=e.children[d];if(c!=b)return f+c.scanIdentical(b,o);f+=c.length+1}}static from(e,o=e.reduce((f,P)=>f+P.length+1,-1)){let f=0;for(let y of e)f+=y.lines;if(f<32){let y=[];for(let p of e)p.flatten(y);return new Fh(y,o)}let P=Math.max(32,f>>5),d=P<<1,l=P>>1,n=[],c=0,b=-1,i=[];function O(y){let p;if(y.lines>d&&y instanceof n_)for(let a of y.children)O(a);else y.lines>l&&(c>l||!c)?(w(),n.push(y)):y instanceof Fh&&c&&(p=i[i.length-1])instanceof Fh&&y.lines+p.lines<=32?(c+=y.lines,b+=y.length+1,i[i.length-1]=new Fh(p.text.concat(y.text),p.length+1+y.length)):(c+y.lines>P&&w(),c+=y.lines,b+=y.length+1,i.push(y))}function w(){c!=0&&(n.push(i.length==1?i[0]:n_.from(i,b)),b=-1,c=i.length=0)}for(let y of e)O(y);return w(),n.length==1?n[0]:new n_(n,o)}}ru.empty=new Fh([""],0);function Yke(t){let e=-1;for(let o of t)e+=o.length+1;return e}function fH(t,e,o=0,f=1e9){for(let P=0,d=0,l=!0;d=o&&(c>f&&(n=n.slice(0,f-P)),P0?1:(e instanceof Fh?e.text.length:e.children.length)<<1]}nextInner(e,o){for(this.done=this.lineBreak=!1;;){let f=this.nodes.length-1,P=this.nodes[f],d=this.offsets[f],l=d>>1,n=P instanceof Fh?P.text.length:P.children.length;if(l==(o>0?n:0)){if(f==0)return this.done=!0,this.value="",this;o>0&&this.offsets[f-1]++,this.nodes.pop(),this.offsets.pop()}else if((d&1)==(o>0?0:1)){if(this.offsets[f]+=o,e==0)return this.lineBreak=!0,this.value=` -`,this;e--}else if(P instanceof Fh){let c=P.text[l+(o<0?-1:0)];if(this.offsets[f]+=o,c.length>Math.max(0,e))return this.value=e==0?c:o>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=P.children[l+(o<0?-1:0)];e>c.length?(e-=c.length,this.offsets[f]+=o):(o<0&&this.offsets[f]--,this.nodes.push(c),this.offsets.push(o>0?1:(c instanceof Fh?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class _ve{constructor(e,o,f){this.value="",this.done=!1,this.cursor=new sI(e,o>f?-1:1),this.pos=o>f?e.length:0,this.from=Math.min(o,f),this.to=Math.max(o,f)}nextInner(e,o){if(o<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,o<0?this.pos-this.to:this.from-this.pos);let f=o<0?this.pos-this.from:this.to-this.pos;e>f&&(e=f),f-=e;let{value:P}=this.cursor.next(e);return this.pos+=(P.length+e)*o,this.value=P.length<=f?P:o<0?P.slice(P.length-f):P.slice(0,f),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class wve{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:o,lineBreak:f,value:P}=this.inner.next(e);return o&&this.afterBreak?(this.value="",this.afterBreak=!1):o?(this.done=!0,this.value=""):f?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=P,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ru.prototype[Symbol.iterator]=function(){return this.iter()},sI.prototype[Symbol.iterator]=_ve.prototype[Symbol.iterator]=wve.prototype[Symbol.iterator]=function(){return this});let Xke=class{constructor(e,o,f,P){this.from=e,this.to=o,this.number=f,this.text=P}get length(){return this.to-this.from}},YA="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return YA[e-1]<=t;return!1}function bhe(t){return t>=127462&&t<=127487}const xhe=8205;function ng(t,e,o=!0,f=!0){return(o?Ove:Kke)(t,e,f)}function Ove(t,e,o){if(e==t.length)return e;e&&Sve(t.charCodeAt(e))&&kve(t.charCodeAt(e-1))&&e--;let f=Jm(t,e);for(e+=Wy(f);e=0&&bhe(Jm(t,l));)d++,l-=2;if(d%2==0)break;e+=2}else break}return e}function Kke(t,e,o){for(;e>0;){let f=Ove(t,e-2,o);if(f=56320&&t<57344}function kve(t){return t>=55296&&t<56320}function Jm(t,e){let o=t.charCodeAt(e);if(!kve(o)||e+1==t.length)return o;let f=t.charCodeAt(e+1);return Sve(f)?(o-55296<<10)+(f-56320)+65536:o}function Jle(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Wy(t){return t<65536?1:2}const Rae=/\r\n?|\n/;var tg=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(tg||(tg={}));class f_{constructor(e){this.sections=e}get length(){let e=0;for(let o=0;oe)return d+(e-P);d+=n}else{if(f!=tg.Simple&&b>=e&&(f==tg.TrackDel&&Pe||f==tg.TrackBefore&&Pe))return null;if(b>e||b==e&&o<0&&!n)return e==P||o<0?d:d+c;d+=c}P=b}if(e>P)throw new RangeError(`Position ${e} is out of range for changeset of length ${P}`);return d}touchesRange(e,o=e){for(let f=0,P=0;f=0&&P<=o&&n>=e)return Po?"cover":!0;P=n}return!1}toString(){let e="";for(let o=0;o=0?":"+P:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(o=>typeof o!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new f_(e)}static create(e){return new f_(e)}}class wp extends f_{constructor(e,o){super(e),this.inserted=o}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Lae(this,(o,f,P,d,l)=>e=e.replace(P,P+(f-o),l),!1),e}mapDesc(e,o=!1){return Iae(this,e,o,!0)}invert(e){let o=this.sections.slice(),f=[];for(let P=0,d=0;P=0){o[P]=n,o[P+1]=l;let c=P>>1;for(;f.length0&&q4(f,o,d.text),d.forward(i),n+=i}let b=e[l++];for(;n>1].toJSON()))}return e}static of(e,o,f){let P=[],d=[],l=0,n=null;function c(i=!1){if(!i&&!P.length)return;lw||O<0||w>o)throw new RangeError(`Invalid change range ${O} to ${w} (in doc of length ${o})`);let p=y?typeof y=="string"?ru.of(y.split(f||Rae)):y:ru.empty,a=p.length;if(O==w&&a==0)return;Ol&&Fg(P,O-l,-1),Fg(P,w-O,a),q4(d,P,p),l=w}}return b(e),c(!n),n}static empty(e){return new wp(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let o=[],f=[];for(let P=0;Pn&&typeof l!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(d.length==1)o.push(d[0],0);else{for(;f.length=0&&o<=0&&o==t[P+1]?t[P]+=e:e==0&&t[P]==0?t[P+1]+=o:f?(t[P]+=e,t[P+1]+=o):t.push(e,o)}function q4(t,e,o){if(o.length==0)return;let f=e.length-2>>1;if(f>1])),!(o||l==t.sections.length||t.sections[l+1]<0);)n=t.sections[l++],c=t.sections[l++];e(P,b,d,i,O),P=b,d=i}}}function Iae(t,e,o,f=!1){let P=[],d=f?[]:null,l=new AI(t),n=new AI(e);for(let c=-1;;)if(l.ins==-1&&n.ins==-1){let b=Math.min(l.len,n.len);Fg(P,b,-1),l.forward(b),n.forward(b)}else if(n.ins>=0&&(l.ins<0||c==l.i||l.off==0&&(n.len=0&&c=0){let b=0,i=l.len;for(;i;)if(n.ins==-1){let O=Math.min(i,n.len);b+=O,i-=O,n.forward(O)}else if(n.ins==0&&n.lenc||l.ins>=0&&l.len>c)&&(n||f.length>b),d.forward2(c),l.forward(c)}}}}class AI{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return o>=e.length?ru.empty:e[o]}textBit(e){let{inserted:o}=this.set,f=this.i-2>>1;return f>=o.length&&!e?ru.empty:o[f].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class iT{constructor(e,o,f){this.from=e,this.to=o,this.flags=f}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,o=-1){let f,P;return this.empty?f=P=e.mapPos(this.from,o):(f=e.mapPos(this.from,1),P=e.mapPos(this.to,-1)),f==this.from&&P==this.to?this:new iT(f,P,this.flags)}extend(e,o=e){if(e<=this.anchor&&o>=this.anchor)return Yo.range(e,o);let f=Math.abs(e-this.anchor)>Math.abs(o-this.anchor)?e:o;return Yo.range(this.anchor,f)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Yo.range(e.anchor,e.head)}static create(e,o,f){return new iT(e,o,f)}}class Yo{constructor(e,o){this.ranges=e,this.mainIndex=o}map(e,o=-1){return e.empty?this:Yo.create(this.ranges.map(f=>f.map(e,o)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let o=0;oe.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Yo(e.ranges.map(o=>iT.fromJSON(o)),e.main)}static single(e,o=e){return new Yo([Yo.range(e,o)],0)}static create(e,o=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let f=0,P=0;Pe?8:0)|d)}static normalized(e,o=0){let f=e[o];e.sort((P,d)=>P.from-d.from),o=e.indexOf(f);for(let P=1;Pd.head?Yo.range(c,n):Yo.range(n,c))}}return new Yo(e,o)}}function Cve(t,e){for(let o of t.ranges)if(o.to>e)throw new RangeError("Selection points outside of document")}let ece=0;class Ba{constructor(e,o,f,P,d){this.combine=e,this.compareInput=o,this.compare=f,this.isStatic=P,this.id=ece++,this.default=e([]),this.extensions=typeof d=="function"?d(this):d}get reader(){return this}static define(e={}){return new Ba(e.combine||(o=>o),e.compareInput||((o,f)=>o===f),e.compare||(e.combine?(o,f)=>o===f:tce),!!e.static,e.enables)}of(e){return new dH([],this,0,e)}compute(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new dH(e,this,1,o)}computeN(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new dH(e,this,2,o)}from(e,o){return o||(o=f=>f),this.compute([e],f=>o(f.field(e)))}}function tce(t,e){return t==e||t.length==e.length&&t.every((o,f)=>o===e[f])}class dH{constructor(e,o,f,P){this.dependencies=e,this.facet=o,this.type=f,this.value=P,this.id=ece++}dynamicSlot(e){var o;let f=this.value,P=this.facet.compareInput,d=this.id,l=e[d]>>1,n=this.type==2,c=!1,b=!1,i=[];for(let O of this.dependencies)O=="doc"?c=!0:O=="selection"?b=!0:((o=e[O.id])!==null&&o!==void 0?o:1)&1||i.push(e[O.id]);return{create(O){return O.values[l]=f(O),1},update(O,w){if(c&&w.docChanged||b&&(w.docChanged||w.selection)||Dae(O,i)){let y=f(O);if(n?!_he(y,O.values[l],P):!P(y,O.values[l]))return O.values[l]=y,1}return 0},reconfigure:(O,w)=>{let y,p=w.config.address[d];if(p!=null){let a=FH(w,p);if(this.dependencies.every(u=>u instanceof Ba?w.facet(u)===O.facet(u):u instanceof Ap?w.field(u,!1)==O.field(u,!1):!0)||(n?_he(y=f(O),a,P):P(y=f(O),a)))return O.values[l]=a,0}else y=f(O);return O.values[l]=y,1}}}}function _he(t,e,o){if(t.length!=e.length)return!1;for(let f=0;ft[c.id]),P=o.map(c=>c.type),d=f.filter(c=>!(c&1)),l=t[e.id]>>1;function n(c){let b=[];for(let i=0;if===P),e);return e.provide&&(o.provides=e.provide(o)),o}create(e){let o=e.facet(whe).find(f=>f.field==this);return((o==null?void 0:o.create)||this.createF)(e)}slot(e){let o=e[this.id]>>1;return{create:f=>(f.values[o]=this.create(f),1),update:(f,P)=>{let d=f.values[o],l=this.updateF(d,P);return this.compareF(d,l)?0:(f.values[o]=l,1)},reconfigure:(f,P)=>P.config.address[this.id]!=null?(f.values[o]=P.field(this),0):(f.values[o]=this.create(f),1)}}init(e){return[this,whe.of({field:this,create:e})]}get extension(){return this}}const tT={lowest:4,low:3,default:2,high:1,highest:0};function LL(t){return e=>new Ave(e,t)}const Nv={highest:LL(tT.highest),high:LL(tT.high),default:LL(tT.default),low:LL(tT.low),lowest:LL(tT.lowest)};class Ave{constructor(e,o){this.inner=e,this.prec=o}}class hD{of(e){return new Bae(this,e)}reconfigure(e){return hD.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Bae{constructor(e,o){this.compartment=e,this.inner=o}}class zH{constructor(e,o,f,P,d,l){for(this.base=e,this.compartments=o,this.dynamicSlots=f,this.address=P,this.staticValues=d,this.facets=l,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,o,f){let P=[],d=Object.create(null),l=new Map;for(let w of eTe(e,o,l))w instanceof Ap?P.push(w):(d[w.facet.id]||(d[w.facet.id]=[])).push(w);let n=Object.create(null),c=[],b=[];for(let w of P)n[w.id]=b.length<<1,b.push(y=>w.slot(y));let i=f==null?void 0:f.config.facets;for(let w in d){let y=d[w],p=y[0].facet,a=i&&i[w]||[];if(y.every(u=>u.type==0))if(n[p.id]=c.length<<1|1,tce(a,y))c.push(f.facet(p));else{let u=p.combine(y.map(h=>h.value));c.push(f&&p.compare(u,f.facet(p))?f.facet(p):u)}else{for(let u of y)u.type==0?(n[u.id]=c.length<<1|1,c.push(u.value)):(n[u.id]=b.length<<1,b.push(h=>u.dynamicSlot(h)));n[p.id]=b.length<<1,b.push(u=>Jke(u,p,y))}}let O=b.map(w=>w(n));return new zH(e,l,O,n,c,d)}}function eTe(t,e,o){let f=[[],[],[],[],[]],P=new Map;function d(l,n){let c=P.get(l);if(c!=null){if(c<=n)return;let b=f[c].indexOf(l);b>-1&&f[c].splice(b,1),l instanceof Bae&&o.delete(l.compartment)}if(P.set(l,n),Array.isArray(l))for(let b of l)d(b,n);else if(l instanceof Bae){if(o.has(l.compartment))throw new RangeError("Duplicate use of compartment in extensions");let b=e.get(l.compartment)||l.inner;o.set(l.compartment,b),d(b,n)}else if(l instanceof Ave)d(l.inner,l.prec);else if(l instanceof Ap)f[n].push(l),l.provides&&d(l.provides,n);else if(l instanceof dH)f[n].push(l),l.facet.extensions&&d(l.facet.extensions,tT.default);else{let b=l.extension;if(!b)throw new Error(`Unrecognized extension value in extension set (${l}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);d(b,n)}}return d(t,tT.default),f.reduce((l,n)=>l.concat(n))}function lI(t,e){if(e&1)return 2;let o=e>>1,f=t.status[o];if(f==4)throw new Error("Cyclic dependency between fields and/or facets");if(f&2)return f;t.status[o]=4;let P=t.computeSlot(t,t.config.dynamicSlots[o]);return t.status[o]=2|P}function FH(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const Mve=Ba.define(),zae=Ba.define({combine:t=>t.some(e=>e),static:!0}),Eve=Ba.define({combine:t=>t.length?t[0]:void 0,static:!0}),Pve=Ba.define(),Rve=Ba.define(),Lve=Ba.define(),Ive=Ba.define({combine:t=>t.length?t[0]:!1});class LO{constructor(e,o){this.type=e,this.value=o}static define(){return new tTe}}class tTe{of(e){return new LO(this,e)}}class nTe{constructor(e){this.map=e}of(e){return new cl(this,e)}}class cl{constructor(e,o){this.type=e,this.value=o}map(e){let o=this.type.map(this.value,e);return o===void 0?void 0:o==this.value?this:new cl(this.type,o)}is(e){return this.type==e}static define(e={}){return new nTe(e.map||(o=>o))}static mapEffects(e,o){if(!e.length)return e;let f=[];for(let P of e){let d=P.map(o);d&&f.push(d)}return f}}cl.reconfigure=cl.define();cl.appendConfig=cl.define();class Sp{constructor(e,o,f,P,d,l){this.startState=e,this.changes=o,this.selection=f,this.effects=P,this.annotations=d,this.scrollIntoView=l,this._doc=null,this._state=null,f&&Cve(f,o.newLength),d.some(n=>n.type==Sp.time)||(this.annotations=d.concat(Sp.time.of(Date.now())))}static create(e,o,f,P,d,l){return new Sp(e,o,f,P,d,l)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let o of this.annotations)if(o.type==e)return o.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let o=this.annotation(Sp.userEvent);return!!(o&&(o==e||o.length>e.length&&o.slice(0,e.length)==e&&o[e.length]=="."))}}Sp.time=LO.define();Sp.userEvent=LO.define();Sp.addToHistory=LO.define();Sp.remote=LO.define();function rTe(t,e){let o=[];for(let f=0,P=0;;){let d,l;if(f=t[f]))d=t[f++],l=t[f++];else if(P=0;P--){let d=f[P](t);d instanceof Sp?t=d:Array.isArray(d)&&d.length==1&&d[0]instanceof Sp?t=d[0]:t=Bve(e,XA(d),!1)}return t}function iTe(t){let e=t.startState,o=e.facet(Lve),f=t;for(let P=o.length-1;P>=0;P--){let d=o[P](t);d&&Object.keys(d).length&&(f=Dve(f,Fae(e,d,t.changes.newLength),!0))}return f==t?t:Sp.create(e,t.changes,t.selection,f.effects,f.annotations,f.scrollIntoView)}const aTe=[];function XA(t){return t==null?aTe:Array.isArray(t)?t:[t]}var Ad=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Ad||(Ad={}));const sTe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Nae;try{Nae=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function lTe(t){if(Nae)return Nae.test(t);for(let e=0;e"€"&&(o.toUpperCase()!=o.toLowerCase()||sTe.test(o)))return!0}return!1}function cTe(t){return e=>{if(!/\S/.test(e))return Ad.Space;if(lTe(e))return Ad.Word;for(let o=0;o-1)return Ad.Word;return Ad.Other}}class jl{constructor(e,o,f,P,d,l){this.config=e,this.doc=o,this.selection=f,this.values=P,this.status=e.statusTemplate.slice(),this.computeSlot=d,l&&(l._state=this);for(let n=0;nP.set(b,c)),o=null),P.set(n.value.compartment,n.value.extension)):n.is(cl.reconfigure)?(o=null,f=n.value):n.is(cl.appendConfig)&&(o=null,f=XA(f).concat(n.value));let d;o?d=e.startState.values.slice():(o=zH.resolve(f,P,this),d=new jl(o,this.doc,this.selection,o.dynamicSlots.map(()=>null),(c,b)=>b.reconfigure(c,this),null).values);let l=e.startState.facet(zae)?e.newSelection:e.newSelection.asSingle();new jl(o,e.newDoc,l,d,(n,c)=>c.update(n,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(o=>({changes:{from:o.from,to:o.to,insert:e},range:Yo.cursor(o.from+e.length)}))}changeByRange(e){let o=this.selection,f=e(o.ranges[0]),P=this.changes(f.changes),d=[f.range],l=XA(f.effects);for(let n=1;nl.spec.fromJSON(n,c)))}}return jl.create({doc:e.doc,selection:Yo.fromJSON(e.selection),extensions:o.extensions?P.concat([o.extensions]):P})}static create(e={}){let o=zH.resolve(e.extensions||[],new Map),f=e.doc instanceof ru?e.doc:ru.of((e.doc||"").split(o.staticFacet(jl.lineSeparator)||Rae)),P=e.selection?e.selection instanceof Yo?e.selection:Yo.single(e.selection.anchor,e.selection.head):Yo.single(0);return Cve(P,f.length),o.staticFacet(zae)||(P=P.asSingle()),new jl(o,f,P,o.dynamicSlots.map(()=>null),(d,l)=>l.create(d),null)}get tabSize(){return this.facet(jl.tabSize)}get lineBreak(){return this.facet(jl.lineSeparator)||` -`}get readOnly(){return this.facet(Ive)}phrase(e,...o){for(let f of this.facet(jl.phrases))if(Object.prototype.hasOwnProperty.call(f,e)){e=f[e];break}return o.length&&(e=e.replace(/\$(\$|\d*)/g,(f,P)=>{if(P=="$")return"$";let d=+(P||1);return!d||d>o.length?f:o[d-1]})),e}languageDataAt(e,o,f=-1){let P=[];for(let d of this.facet(Mve))for(let l of d(this,o,f))Object.prototype.hasOwnProperty.call(l,e)&&P.push(l[e]);return P}charCategorizer(e){return cTe(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:o,from:f,length:P}=this.doc.lineAt(e),d=this.charCategorizer(e),l=e-f,n=e-f;for(;l>0;){let c=ng(o,l,!1);if(d(o.slice(c,l))!=Ad.Word)break;l=c}for(;nt.length?t[0]:4});jl.lineSeparator=Eve;jl.readOnly=Ive;jl.phrases=Ba.define({compare(t,e){let o=Object.keys(t),f=Object.keys(e);return o.length==f.length&&o.every(P=>t[P]==e[P])}});jl.languageData=Mve;jl.changeFilter=Pve;jl.transactionFilter=Rve;jl.transactionExtender=Lve;hD.reconfigure=cl.define();function b_(t,e,o={}){let f={};for(let P of t)for(let d of Object.keys(P)){let l=P[d],n=f[d];if(n===void 0)f[d]=l;else if(!(n===l||l===void 0))if(Object.hasOwnProperty.call(o,d))f[d]=o[d](n,l);else throw new Error("Config merge conflict for field "+d)}for(let P in e)f[P]===void 0&&(f[P]=e[P]);return f}class pT{eq(e){return this==e}range(e,o=e){return $ae.create(e,o,this)}}pT.prototype.startSide=pT.prototype.endSide=0;pT.prototype.point=!1;pT.prototype.mapMode=tg.TrackDel;let $ae=class zve{constructor(e,o,f){this.from=e,this.to=o,this.value=f}static create(e,o,f){return new zve(e,o,f)}};function Vae(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class nce{constructor(e,o,f,P){this.from=e,this.to=o,this.value=f,this.maxPoint=P}get length(){return this.to[this.to.length-1]}findIndex(e,o,f,P=0){let d=f?this.to:this.from;for(let l=P,n=d.length;;){if(l==n)return l;let c=l+n>>1,b=d[c]-e||(f?this.value[c].endSide:this.value[c].startSide)-o;if(c==l)return b>=0?l:n;b>=0?n=c:l=c+1}}between(e,o,f,P){for(let d=this.findIndex(o,-1e9,!0),l=this.findIndex(f,1e9,!1,d);dy||w==y&&b.startSide>0&&b.endSide<=0)continue;(y-w||b.endSide-b.startSide)<0||(l<0&&(l=w),b.point&&(n=Math.max(n,y-w)),f.push(b),P.push(w-l),d.push(y-l))}return{mapped:f.length?new nce(P,d,f,n):null,pos:l}}}class Vu{constructor(e,o,f,P){this.chunkPos=e,this.chunk=o,this.nextLayer=f,this.maxPoint=P}static create(e,o,f,P){return new Vu(e,o,f,P)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let o of this.chunk)e+=o.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:o=[],sort:f=!1,filterFrom:P=0,filterTo:d=this.length}=e,l=e.filter;if(o.length==0&&!l)return this;if(f&&(o=o.slice().sort(Vae)),this.isEmpty)return o.length?Vu.of(o):this;let n=new Fve(this,null,-1).goto(0),c=0,b=[],i=new rS;for(;n.value||c=0){let O=o[c++];i.addInner(O.from,O.to,O.value)||b.push(O)}else n.rangeIndex==1&&n.chunkIndexthis.chunkEnd(n.chunkIndex)||dn.to||d=d&&e<=d+l.length&&l.between(d,e-d,o-d,f)===!1)return}this.nextLayer.between(e,o,f)}}iter(e=0){return MI.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,o=0){return MI.from(e).goto(o)}static compare(e,o,f,P,d=-1){let l=e.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=d),n=o.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=d),c=Ohe(l,n,f),b=new IL(l,c,d),i=new IL(n,c,d);f.iterGaps((O,w,y)=>She(b,O,i,w,y,P)),f.empty&&f.length==0&&She(b,0,i,0,0,P)}static eq(e,o,f=0,P){P==null&&(P=1e9-1);let d=e.filter(i=>!i.isEmpty&&o.indexOf(i)<0),l=o.filter(i=>!i.isEmpty&&e.indexOf(i)<0);if(d.length!=l.length)return!1;if(!d.length)return!0;let n=Ohe(d,l),c=new IL(d,n,0).goto(f),b=new IL(l,n,0).goto(f);for(;;){if(c.to!=b.to||!Uae(c.active,b.active)||c.point&&(!b.point||!c.point.eq(b.point)))return!1;if(c.to>P)return!0;c.next(),b.next()}}static spans(e,o,f,P,d=-1){let l=new IL(e,null,d).goto(o),n=o,c=l.openStart;for(;;){let b=Math.min(l.to,f);if(l.point){let i=l.activeForPoint(l.to),O=l.pointFromn&&(P.span(n,b,l.active,c),c=l.openEnd(b));if(l.to>f)return c+(l.point&&l.to>f?1:0);n=l.to,l.next()}}static of(e,o=!1){let f=new rS;for(let P of e instanceof $ae?[e]:o?uTe(e):e)f.add(P.from,P.to,P.value);return f.finish()}}Vu.empty=new Vu([],[],null,-1);function uTe(t){if(t.length>1)for(let e=t[0],o=1;o0)return t.slice().sort(Vae);e=f}return t}Vu.empty.nextLayer=Vu.empty;class rS{finishChunk(e){this.chunks.push(new nce(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,o,f){this.addInner(e,o,f)||(this.nextLayer||(this.nextLayer=new rS)).add(e,o,f)}addInner(e,o,f){let P=e-this.lastTo||f.startSide-this.last.endSide;if(P<=0&&(e-this.lastFrom||f.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return P<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(o-this.chunkStart),this.last=f,this.lastFrom=e,this.lastTo=o,this.value.push(f),f.point&&(this.maxPoint=Math.max(this.maxPoint,o-e)),!0)}addChunk(e,o){if((e-this.lastTo||o.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,o.maxPoint),this.chunks.push(o),this.chunkPos.push(e);let f=o.value.length-1;return this.last=o.value[f],this.lastFrom=o.from[f]+e,this.lastTo=o.to[f]+e,!0}finish(){return this.finishInner(Vu.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let o=Vu.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,o}}function Ohe(t,e,o){let f=new Map;for(let d of t)for(let l=0;l=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=f&&P.push(new Fve(l,o,f,d));return P.length==1?P[0]:new MI(P)}get startSide(){return this.value?this.value.startSide:0}goto(e,o=-1e9){for(let f of this.heap)f.goto(e,o);for(let f=this.heap.length>>1;f>=0;f--)cie(this.heap,f);return this.next(),this}forward(e,o){for(let f of this.heap)f.forward(e,o);for(let f=this.heap.length>>1;f>=0;f--)cie(this.heap,f);(this.to-e||this.value.endSide-o)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),cie(this.heap,0)}}}function cie(t,e){for(let o=t[e];;){let f=(e<<1)+1;if(f>=t.length)break;let P=t[f];if(f+1=0&&(P=t[f+1],f++),o.compare(P)<0)break;t[f]=o,t[e]=P,e=f}}class IL{constructor(e,o,f){this.minPoint=f,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=MI.from(e,o,f)}goto(e,o=-1e9){return this.cursor.goto(e,o),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=o,this.openStart=-1,this.next(),this}forward(e,o){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-o)<0;)this.removeActive(this.minActive);this.cursor.forward(e,o)}removeActive(e){SQ(this.active,e),SQ(this.activeTo,e),SQ(this.activeRank,e),this.minActive=khe(this.active,this.activeTo)}addActive(e){let o=0,{value:f,to:P,rank:d}=this.cursor;for(;o-1&&(this.activeTo[P]-this.cursor.from||this.active[P].endSide-this.cursor.startSide)<0){if(this.activeTo[P]>e){this.to=this.activeTo[P],this.endSide=this.active[P].endSide;break}this.removeActive(P),f&&SQ(f,P)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let d=this.cursor.value;if(!d.point)this.addActive(f),this.cursor.next();else if(o&&this.cursor.to==this.to&&this.cursor.from=0&&f[P]=0&&!(this.activeRank[f]e||this.activeTo[f]==e&&this.active[f].endSide>=this.point.endSide)&&o.push(this.active[f]);return o.reverse()}openEnd(e){let o=0;for(let f=this.activeTo.length-1;f>=0&&this.activeTo[f]>e;f--)o++;return o}}function She(t,e,o,f,P,d){t.goto(e),o.goto(f);let l=f+P,n=f,c=f-e;for(;;){let b=t.to+c-o.to||t.endSide-o.endSide,i=b<0?t.to+c:o.to,O=Math.min(i,l);if(t.point||o.point?t.point&&o.point&&(t.point==o.point||t.point.eq(o.point))&&Uae(t.activeForPoint(t.to),o.activeForPoint(o.to))||d.comparePoint(n,O,t.point,o.point):O>n&&!Uae(t.active,o.active)&&d.compareRange(n,O,t.active,o.active),i>l)break;n=i,b<=0&&t.next(),b>=0&&o.next()}}function Uae(t,e){if(t.length!=e.length)return!1;for(let o=0;o=e;f--)t[f+1]=t[f];t[e]=o}function khe(t,e){let o=-1,f=1e9;for(let P=0;P=e)return P;if(P==t.length)break;d+=t.charCodeAt(P)==9?o-d%o:1,P=ng(t,P)}return f===!0?-1:t.length}const Qae="ͼ",The=typeof Symbol>"u"?"__"+Qae:Symbol.for(Qae),Hae=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Che=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class oS{constructor(e,o){this.rules=[];let{finish:f}=o||{};function P(l){return/^@/.test(l)?[l]:l.split(/,\s*/)}function d(l,n,c,b){let i=[],O=/^@(\w+)\b/.exec(l[0]),w=O&&O[1]=="keyframes";if(O&&n==null)return c.push(l[0]+";");for(let y in n){let p=n[y];if(/&/.test(y))d(y.split(/,\s*/).map(a=>l.map(u=>a.replace(/&/,u))).reduce((a,u)=>a.concat(u)),p,c);else if(p&&typeof p=="object"){if(!O)throw new RangeError("The value of a property ("+y+") should be a primitive value.");d(P(y),p,i,w)}else p!=null&&i.push(y.replace(/_.*/,"").replace(/[A-Z]/g,a=>"-"+a.toLowerCase())+": "+p+";")}(i.length||w)&&c.push((f&&!O&&!b?l.map(f):l).join(", ")+" {"+i.join(" ")+"}")}for(let l in e)d(P(l),e[l],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let e=Che[The]||1;return Che[The]=e+1,Qae+e.toString(36)}static mount(e,o,f){let P=e[Hae],d=f&&f.nonce;P?d&&P.setNonce(d):P=new fTe(e,d),P.mount(Array.isArray(o)?o:[o])}}let Ahe=new Map;class fTe{constructor(e,o){let f=e.ownerDocument||e,P=f.defaultView;if(!e.head&&e.adoptedStyleSheets&&P.CSSStyleSheet){let d=Ahe.get(f);if(d)return e.adoptedStyleSheets=[d.sheet,...e.adoptedStyleSheets],e[Hae]=d;this.sheet=new P.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],Ahe.set(f,this)}else{this.styleTag=f.createElement("style"),o&&this.styleTag.setAttribute("nonce",o);let d=e.head||e;d.insertBefore(this.styleTag,d.firstChild)}this.modules=[],e[Hae]=this}mount(e){let o=this.sheet,f=0,P=0;for(let d=0;d-1&&(this.modules.splice(n,1),P--,n=-1),n==-1){if(this.modules.splice(P++,0,l),o)for(let c=0;c",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},dTe=typeof navigator<"u"&&/Mac/.test(navigator.platform),hTe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var eg=0;eg<10;eg++)iS[48+eg]=iS[96+eg]=String(eg);for(var eg=1;eg<=24;eg++)iS[eg+111]="F"+eg;for(var eg=65;eg<=90;eg++)iS[eg]=String.fromCharCode(eg+32),EI[eg]=String.fromCharCode(eg);for(var uie in iS)EI.hasOwnProperty(uie)||(EI[uie]=iS[uie]);function pTe(t){var e=dTe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||hTe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",o=!e&&t.key||(t.shiftKey?EI:iS)[t.keyCode]||t.key||"Unidentified";return o=="Esc"&&(o="Escape"),o=="Del"&&(o="Delete"),o=="Left"&&(o="ArrowLeft"),o=="Up"&&(o="ArrowUp"),o=="Right"&&(o="ArrowRight"),o=="Down"&&(o="ArrowDown"),o}function NH(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function Zae(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function mTe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function hH(t,e){if(!e.anchorNode)return!1;try{return Zae(t,e.anchorNode)}catch{return!1}}function cM(t){return t.nodeType==3?mT(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function $H(t,e,o,f){return o?Mhe(t,e,o,f,-1)||Mhe(t,e,o,f,1):!1}function PI(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function Mhe(t,e,o,f,P){for(;;){if(t==o&&e==f)return!0;if(e==(P<0?0:CO(t))){if(t.nodeName=="DIV")return!1;let d=t.parentNode;if(!d||d.nodeType!=1)return!1;e=PI(t)+(P<0?0:1),t=d}else if(t.nodeType==1){if(t=t.childNodes[e+(P<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=P<0?CO(t):0}else return!1}}function CO(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function WZ(t,e){let o=e?t.left:t.right;return{left:o,right:o,top:t.top,bottom:t.bottom}}function gTe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function vTe(t,e,o,f,P,d,l,n){let c=t.ownerDocument,b=c.defaultView||window;for(let i=t,O=!1;i&&!O;)if(i.nodeType==1){let w,y=i==c.body,p=1,a=1;if(y)w=gTe(b);else{if(/^(fixed|sticky)$/.test(getComputedStyle(i).position)&&(O=!0),i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth){i=i.assignedSlot||i.parentNode;continue}let m=i.getBoundingClientRect();p=m.width/i.offsetWidth,a=m.height/i.offsetHeight,w={left:m.left,right:m.left+i.clientWidth*p,top:m.top,bottom:m.top+i.clientHeight*a}}let u=0,h=0;if(P=="nearest")e.top0&&e.bottom>w.bottom+h&&(h=e.bottom-w.bottom+h+l)):e.bottom>w.bottom&&(h=e.bottom-w.bottom+l,o<0&&e.top-h0&&e.right>w.right+u&&(u=e.right-w.right+u+d)):e.right>w.right&&(u=e.right-w.right+d,o<0&&e.lefto.clientHeight||o.scrollWidth>o.clientWidth)return o;o=o.assignedSlot||o.parentNode}else if(o.nodeType==11)o=o.host;else break;return null}class bTe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:o,focusNode:f}=e;this.set(o,Math.min(e.anchorOffset,o?CO(o):0),f,Math.min(e.focusOffset,f?CO(f):0))}set(e,o,f,P){this.anchorNode=e,this.anchorOffset=o,this.focusNode=f,this.focusOffset=P}}let MA=null;function Nve(t){if(t.setActive)return t.setActive();if(MA)return t.focus(MA);let e=[];for(let o=t;o&&(e.push(o,o.scrollTop,o.scrollLeft),o!=o.ownerDocument);o=o.parentNode);if(t.focus(MA==null?{get preventScroll(){return MA={preventScroll:!0},!0}}:void 0),!MA){MA=!1;for(let o=0;oMath.max(1,t.scrollHeight-t.clientHeight-4)}class $g{constructor(e,o,f=!0){this.node=e,this.offset=o,this.precise=f}static before(e,o){return new $g(e.parentNode,PI(e),o)}static after(e,o){return new $g(e.parentNode,PI(e)+1,o)}}const rce=[];class id{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let o=this.posAtStart;for(let f of this.children){if(f==e)return o;o+=f.length+f.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,o){if(this.flags&2){let f=this.dom,P=null,d;for(let l of this.children){if(l.flags&7){if(!l.dom&&(d=P?P.nextSibling:f.firstChild)){let n=id.get(d);(!n||!n.parent&&n.canReuseDOM(l))&&l.reuseDOM(d)}l.sync(e,o),l.flags&=-8}if(d=P?P.nextSibling:f.firstChild,o&&!o.written&&o.node==f&&d!=l.dom&&(o.written=!0),l.dom.parentNode==f)for(;d&&d!=l.dom;)d=Phe(d);else f.insertBefore(l.dom,d);P=l.dom}for(d=P?P.nextSibling:f.firstChild,d&&o&&o.node==f&&(o.written=!0);d;)d=Phe(d)}else if(this.flags&1)for(let f of this.children)f.flags&7&&(f.sync(e,o),f.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,o){let f;if(e==this.dom)f=this.dom.childNodes[o];else{let P=CO(e)==0?0:o==0?-1:1;for(;;){let d=e.parentNode;if(d==this.dom)break;P==0&&d.firstChild!=d.lastChild&&(e==d.firstChild?P=-1:P=1),e=d}P<0?f=e:f=e.nextSibling}if(f==this.dom.firstChild)return 0;for(;f&&!id.get(f);)f=f.nextSibling;if(!f)return this.length;for(let P=0,d=0;;P++){let l=this.children[P];if(l.dom==f)return d;d+=l.length+l.breakAfter}}domBoundsAround(e,o,f=0){let P=-1,d=-1,l=-1,n=-1;for(let c=0,b=f,i=f;co)return O.domBoundsAround(e,o,b);if(w>=e&&P==-1&&(P=c,d=b),b>o&&O.dom.parentNode==this.dom){l=c,n=i;break}i=w,b=w+O.breakAfter}return{from:d,to:n<0?f+this.length:n,startDOM:(P?this.children[P-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:l=0?this.children[l].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let o=this.parent;o;o=o.parent){if(e&&(o.flags|=2),o.flags&1)return;o.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let o=e.parent;if(!o)return e;e=o}}replaceChildren(e,o,f=rce){this.markDirty();for(let P=e;Pthis.pos||e==this.pos&&(o>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let f=this.children[--this.i];this.pos-=f.length+f.breakAfter}}}function jve(t,e,o,f,P,d,l,n,c){let{children:b}=t,i=b.length?b[e]:null,O=d.length?d[d.length-1]:null,w=O?O.breakAfter:l;if(!(e==f&&i&&!l&&!w&&d.length<2&&i.merge(o,P,d.length?O:null,o==0,n,c))){if(f0&&(!l&&d.length&&i.merge(o,i.length,d[0],!1,n,0)?i.breakAfter=d.shift().breakAfter:(o2);var Ua={mac:Ihe||/Mac/.test(Dv.platform),windows:/Win/.test(Dv.platform),linux:/Linux|X11/.test(Dv.platform),ie:YZ,ie_version:Hve?qae.documentMode||6:Yae?+Yae[1]:Wae?+Wae[1]:0,gecko:Rhe,gecko_version:Rhe?+(/Firefox\/(\d+)/.exec(Dv.userAgent)||[0,0])[1]:0,chrome:!!fie,chrome_version:fie?+fie[1]:0,ios:Ihe,android:/Android\b/.test(Dv.userAgent),webkit:Lhe,safari:Zve,webkit_version:Lhe?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:qae.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const wTe=256;class AO extends id{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,o){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(o&&o.node==this.dom&&(o.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,o,f){return this.flags&8||f&&(!(f instanceof AO)||this.length-(o-e)+f.length>wTe||f.flags&8)?!1:(this.text=this.text.slice(0,e)+(f?f.text:"")+this.text.slice(o),this.markDirty(),!0)}split(e){let o=new AO(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),o.flags|=this.flags&8,o}localPosFromDOM(e,o){return e==this.dom?o:o?this.text.length:0}domAtPos(e){return new $g(this.dom,e)}domBoundsAround(e,o,f){return{from:f,to:f+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,o){return OTe(this.dom,e,o)}}class MO extends id{constructor(e,o=[],f=0){super(),this.mark=e,this.children=o,this.length=f;for(let P of o)P.setParent(this)}setAttrs(e){if($ve(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let o in this.mark.attrs)e.setAttribute(o,this.mark.attrs[o]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,o){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,o)}merge(e,o,f,P,d,l){return f&&(!(f instanceof MO&&f.mark.eq(this.mark))||e&&d<=0||oe&&o.push(f=e&&(P=d),f=c,d++}let l=this.length-e;return this.length=e,P>-1&&(this.children.length=P,this.markDirty()),new MO(this.mark,o,l)}domAtPos(e){return qve(this,e)}coordsAt(e,o){return Yve(this,e,o)}}function OTe(t,e,o){let f=t.nodeValue.length;e>f&&(e=f);let P=e,d=e,l=0;e==0&&o<0||e==f&&o>=0?Ua.chrome||Ua.gecko||(e?(P--,l=1):d=0)?0:n.length-1];return Ua.safari&&!l&&c.width==0&&(c=Array.prototype.find.call(n,b=>b.width)||c),l?WZ(c,l<0):c||null}class W4 extends id{static create(e,o,f){return new W4(e,o,f)}constructor(e,o,f){super(),this.widget=e,this.length=o,this.side=f,this.prevWidget=null}split(e){let o=W4.create(this.widget,this.length-e,this.side);return this.length-=e,o}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,o,f,P,d,l){return f&&(!(f instanceof W4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0)?$g.before(this.dom):$g.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,o){let f=this.widget.coordsAt(this.dom,e,o);if(f)return f;let P=this.dom.getClientRects(),d=null;if(!P.length)return null;let l=this.side?this.side<0:e>0;for(let n=l?P.length-1:0;d=P[n],!(e>0?n==0:n==P.length-1||d.top0?$g.before(this.dom):$g.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ru.empty}get isHidden(){return!0}}AO.prototype.children=W4.prototype.children=uM.prototype.children=rce;function qve(t,e){let o=t.dom,{children:f}=t,P=0;for(let d=0;Pd&&e0;d--){let l=f[d-1];if(l.dom.parentNode==o)return l.domAtPos(l.length)}for(let d=P;d0&&e instanceof MO&&P.length&&(f=P[P.length-1])instanceof MO&&f.mark.eq(e.mark)?Wve(f,e.children[0],o-1):(P.push(e),e.setParent(t)),t.length+=e.length}function Yve(t,e,o){let f=null,P=-1,d=null,l=-1;function n(b,i){for(let O=0,w=0;O=i&&(y.children.length?n(y,i-w):(!d||d.isHidden&&o>0)&&(p>i||w==p&&y.getSide()>0)?(d=y,l=i-w):(w-1?1:0)!=P.length-(o&&P.indexOf(o)>-1?1:0))return!1;for(let d of f)if(d!=o&&(P.indexOf(d)==-1||t[d]!==e[d]))return!1;return!0}function Gae(t,e,o){let f=!1;if(e)for(let P in e)o&&P in o||(f=!0,P=="style"?t.style.cssText="":t.removeAttribute(P));if(o)for(let P in o)e&&e[P]==o[P]||(f=!0,P=="style"?t.style.cssText=o[P]:t.setAttribute(P,o[P]));return f}function kTe(t){let e=Object.create(null);for(let o=0;o0&&this.children[f-1].length==0;)this.children[--f].destroy();return this.children.length=f,this.markDirty(),this.length=e,o}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){oce(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,o){Wve(this,e,o)}addLineDeco(e){let o=e.spec.attributes,f=e.spec.class;o&&(this.attrs=Xae(o,this.attrs||{})),f&&(this.attrs=Xae({class:f},this.attrs||{}))}domAtPos(e){return qve(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,o){var f;this.dom?this.flags&4&&($ve(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Gae(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,o);let P=this.dom.lastChild;for(;P&&id.get(P)instanceof MO;)P=P.lastChild;if(!P||!this.length||P.nodeName!="BR"&&((f=id.get(P))===null||f===void 0?void 0:f.isEditable)==!1&&(!Ua.ios||!this.children.some(d=>d instanceof AO))){let d=document.createElement("BR");d.cmIgnore=!0,this.dom.appendChild(d)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,o;for(let f of this.children){if(!(f instanceof AO)||/[^ -~]/.test(f.text))return null;let P=cM(f.dom);if(P.length!=1)return null;e+=P[0].width,o=P[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:o}:null}coordsAt(e,o){let f=Yve(this,e,o);if(!this.children.length&&f&&this.parent){let{heightOracle:P}=this.parent.view.viewState,d=f.bottom-f.top;if(Math.abs(d-P.lineHeight)<2&&P.textHeight=o){if(d instanceof _p)return d;if(l>o)break}P=l+d.breakAfter}return null}}class J4 extends id{constructor(e,o,f){super(),this.widget=e,this.length=o,this.deco=f,this.breakAfter=0,this.prevWidget=null}merge(e,o,f,P,d,l){return f&&(!(f instanceof J4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0}}class wx{eq(e){return!1}updateDOM(e,o){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,o,f){return null}get isHidden(){return!1}destroy(e){}}var T0=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(T0||(T0={}));class es extends pT{constructor(e,o,f,P){super(),this.startSide=e,this.endSide=o,this.widget=f,this.spec=P}get heightRelevant(){return!1}static mark(e){return new pD(e)}static widget(e){let o=Math.max(-1e4,Math.min(1e4,e.side||0)),f=!!e.block;return o+=f&&!e.inlineOrder?o>0?3e8:-4e8:o>0?1e8:-1e8,new aS(e,o,o,f,e.widget||null,!1)}static replace(e){let o=!!e.block,f,P;if(e.isBlockGap)f=-5e8,P=4e8;else{let{start:d,end:l}=Xve(e,o);f=(d?o?-3e8:-1:5e8)-1,P=(l?o?2e8:1:-6e8)+1}return new aS(e,f,P,o,e.widget||null,!0)}static line(e){return new mD(e)}static set(e,o=!1){return Vu.of(e,o)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}es.none=Vu.empty;class pD extends es{constructor(e){let{start:o,end:f}=Xve(e);super(o?-1:5e8,f?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var o,f;return this==e||e instanceof pD&&this.tagName==e.tagName&&(this.class||((o=this.attrs)===null||o===void 0?void 0:o.class))==(e.class||((f=e.attrs)===null||f===void 0?void 0:f.class))&&oce(this.attrs,e.attrs,"class")}range(e,o=e){if(e>=o)throw new RangeError("Mark decorations may not be empty");return super.range(e,o)}}pD.prototype.point=!1;class mD extends es{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof mD&&this.spec.class==e.spec.class&&oce(this.spec.attributes,e.spec.attributes)}range(e,o=e){if(o!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,o)}}mD.prototype.mapMode=tg.TrackBefore;mD.prototype.point=!0;class aS extends es{constructor(e,o,f,P,d,l){super(o,f,d,e),this.block=P,this.isReplace=l,this.mapMode=P?o<=0?tg.TrackBefore:tg.TrackAfter:tg.TrackDel}get type(){return this.startSide!=this.endSide?T0.WidgetRange:this.startSide<=0?T0.WidgetBefore:T0.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof aS&&TTe(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,o=e){if(this.isReplace&&(e>o||e==o&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&o!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,o)}}aS.prototype.point=!0;function Xve(t,e=!1){let{inclusiveStart:o,inclusiveEnd:f}=t;return o==null&&(o=t.inclusive),f==null&&(f=t.inclusive),{start:o??e,end:f??e}}function TTe(t,e){return t==e||!!(t&&e&&t.compare(e))}function Kae(t,e,o,f=0){let P=o.length-1;P>=0&&o[P]+f>=t?o[P]=Math.max(o[P],e):o.push(t,e)}class cI{constructor(e,o,f,P){this.doc=e,this.pos=o,this.end=f,this.disallowBlockEffectsFor=P,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=o}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof J4&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new _p),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(TQ(new uM(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof J4)&&this.getLine()}buildText(e,o,f){for(;e>0;){if(this.textOff==this.text.length){let{value:d,lineBreak:l,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(l){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=d,this.textOff=0}let P=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(o.slice(o.length-f)),this.getLine().append(TQ(new AO(this.text.slice(this.textOff,this.textOff+P)),o),f),this.atCursorPos=!0,this.textOff+=P,e-=P,f=0}}span(e,o,f,P){this.buildText(o-e,f,P),this.pos=o,this.openStart<0&&(this.openStart=P)}point(e,o,f,P,d,l){if(this.disallowBlockEffectsFor[l]&&f instanceof aS){if(f.block)throw new RangeError("Block decorations may not be specified via plugins");if(o>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let n=o-e;if(f instanceof aS)if(f.block)f.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new J4(f.widget||new Bhe("div"),n,f));else{let c=W4.create(f.widget||new Bhe("span"),n,n?0:f.startSide),b=this.atCursorPos&&!c.isEditable&&d<=P.length&&(e0),i=!c.isEditable&&(eP.length||f.startSide<=0),O=this.getLine();this.pendingBuffer==2&&!b&&!c.isEditable&&(this.pendingBuffer=0),this.flushBuffer(P),b&&(O.append(TQ(new uM(1),P),d),d=P.length+Math.max(0,d-P.length)),O.append(TQ(c,P),d),this.atCursorPos=i,this.pendingBuffer=i?eP.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=P.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(f);n&&(this.textOff+n<=this.text.length?this.textOff+=n:(this.skip+=n-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=o),this.openStart<0&&(this.openStart=d)}static build(e,o,f,P,d){let l=new cI(e,o,f,d);return l.openEnd=Vu.spans(P,o,f,l),l.openStart<0&&(l.openStart=l.openEnd),l.finish(l.openEnd),l}}function TQ(t,e){for(let o of e)t=new MO(o,[t],t.length);return t}class Bhe extends wx{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Gve=Ba.define(),Kve=Ba.define(),Jve=Ba.define(),eye=Ba.define(),Jae=Ba.define(),tye=Ba.define(),nye=Ba.define(),rye=Ba.define({combine:t=>t.some(e=>e)}),oye=Ba.define({combine:t=>t.some(e=>e)});class KA{constructor(e,o="nearest",f="nearest",P=5,d=5,l=!1){this.range=e,this.y=o,this.x=f,this.yMargin=P,this.xMargin=d,this.isSnapshot=l}map(e){return e.empty?this:new KA(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new KA(Yo.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const CQ=cl.define({map:(t,e)=>t.map(e)});function tb(t,e,o){let f=t.facet(eye);f.length?f[0](e):window.onerror?window.onerror(String(e),o,void 0,void 0,e):o?console.error(o+":",e):console.error(e)}const XZ=Ba.define({combine:t=>t.length?t[0]:!0});let CTe=0;const WL=Ba.define();class Wd{constructor(e,o,f,P,d){this.id=e,this.create=o,this.domEventHandlers=f,this.domEventObservers=P,this.extension=d(this)}static define(e,o){const{eventHandlers:f,eventObservers:P,provide:d,decorations:l}=o||{};return new Wd(CTe++,e,f,P,n=>{let c=[WL.of(n)];return l&&c.push(RI.of(b=>{let i=b.plugin(n);return i?l(i):es.none})),d&&c.push(d(n)),c})}static fromClass(e,o){return Wd.define(f=>new e(f),o)}}class die{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let o=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(o)}catch(f){if(tb(o.state,f,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(o){tb(e.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var o;if(!((o=this.value)===null||o===void 0)&&o.destroy)try{this.value.destroy()}catch(f){tb(e.state,f,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const iye=Ba.define(),ice=Ba.define(),RI=Ba.define(),ace=Ba.define(),aye=Ba.define();function zhe(t,e,o){let f=t.state.facet(aye);if(!f.length)return f;let P=f.map(l=>l instanceof Function?l(t):l),d=[];return Vu.spans(P,e,o,{point(){},span(l,n,c,b){let i=d;for(let O=c.length-1;O>=0;O--,b--){let w=c[O].spec.bidiIsolate,y;if(w!=null)if(b>0&&i.length&&(y=i[i.length-1]).to==l&&y.direction==w)y.to=n,i=y.inner;else{let p={from:l,to:n,direction:w,inner:[]};i.push(p),i=p.inner}}}}),d}const sye=Ba.define();function lye(t){let e=0,o=0,f=0,P=0;for(let d of t.state.facet(sye)){let l=d(t);l&&(l.left!=null&&(e=Math.max(e,l.left)),l.right!=null&&(o=Math.max(o,l.right)),l.top!=null&&(f=Math.max(f,l.top)),l.bottom!=null&&(P=Math.max(P,l.bottom)))}return{left:e,right:o,top:f,bottom:P}}const YL=Ba.define();class nb{constructor(e,o,f,P){this.fromA=e,this.toA=o,this.fromB=f,this.toB=P}join(e){return new nb(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let o=e.length,f=this;for(;o>0;o--){let P=e[o-1];if(!(P.fromA>f.toA)){if(P.toAi)break;d+=2}if(!c)return f;new nb(c.fromA,c.toA,c.fromB,c.toB).addToSet(f),l=c.toA,n=c.toB}}}class VH{constructor(e,o,f){this.view=e,this.state=o,this.transactions=f,this.flags=0,this.startState=e.state,this.changes=wp.empty(this.startState.doc.length);for(let d of f)this.changes=this.changes.compose(d.changes);let P=[];this.changes.iterChangedRanges((d,l,n,c)=>P.push(new nb(d,l,n,c))),this.changedRanges=P}static create(e,o,f){return new VH(e,o,f)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var qd=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(qd||(qd={}));const LI=qd.LTR,cye=qd.RTL;function uye(t){let e=[];for(let o=0;o=o){if(n.level==f)return l;(d<0||(P!=0?P<0?n.fromo:e[d].level>n.level))&&(d=l)}}if(d<0)throw new RangeError("Index out of range");return d}}function fye(t,e){if(t.length!=e.length)return!1;for(let o=0;o=0;a-=3)if(Y2[a+1]==-y){let u=Y2[a+2],h=u&2?P:u&4?u&1?d:P:0;h&&(pf[O]=pf[Y2[a]]=h),n=a;break}}else{if(Y2.length==189)break;Y2[n++]=O,Y2[n++]=w,Y2[n++]=c}else if((p=pf[O])==2||p==1){let a=p==P;c=a?0:1;for(let u=n-3;u>=0;u-=3){let h=Y2[u+2];if(h&2)break;if(a)Y2[u+2]|=2;else{if(h&4)break;Y2[u+2]|=4}}}}}function ITe(t,e,o,f){for(let P=0,d=f;P<=o.length;P++){let l=P?o[P-1].to:t,n=Pc;)p==u&&(p=o[--a].from,u=a?o[a-1].to:t),pf[--p]=y;c=i}else d=b,c++}}}function tse(t,e,o,f,P,d,l){let n=f%2?2:1;if(f%2==P%2)for(let c=e,b=0;cc&&l.push(new Y4(c,a.from,y));let u=a.direction==LI!=!(y%2);nse(t,u?f+1:f,P,a.inner,a.from,a.to,l),c=a.to}p=a.to}else{if(p==o||(i?pf[p]!=n:pf[p]==n))break;p++}w?tse(t,c,p,f+1,P,w,l):ce;){let i=!0,O=!1;if(!b||c>d[b-1].to){let a=pf[c-1];a!=n&&(i=!1,O=a==16)}let w=!i&&n==1?[]:null,y=i?f:f+1,p=c;e:for(;;)if(b&&p==d[b-1].to){if(O)break e;let a=d[--b];if(!i)for(let u=a.from,h=b;;){if(u==e)break e;if(h&&d[h-1].to==u)u=d[--h].from;else{if(pf[u-1]==n)break e;break}}if(w)w.push(a);else{a.topf.length;)pf[pf.length]=256;let f=[],P=e==LI?0:1;return nse(t,P,P,o,0,t.length,f),f}function dye(t){return[new Y4(0,t,0)]}let hye="";function BTe(t,e,o,f,P){var d;let l=f.head-t.from,n=-1;if(l==0){if(!P||!t.length)return null;e[0].level!=o&&(l=e[0].side(!1,o),n=0)}else if(l==t.length){if(P)return null;let w=e[e.length-1];w.level!=o&&(l=w.side(!0,o),n=e.length-1)}n<0&&(n=Y4.find(e,l,(d=f.bidiLevel)!==null&&d!==void 0?d:-1,f.assoc));let c=e[n];l==c.side(P,o)&&(c=e[n+=P?1:-1],l=c.side(!P,o));let b=P==(c.dir==o),i=ng(t.text,l,b);if(hye=t.text.slice(Math.min(l,i),Math.max(l,i)),i!=c.side(P,o))return Yo.cursor(i+t.from,b?-1:1,c.level);let O=n==(P?e.length-1:0)?null:e[n+(P?1:-1)];return!O&&c.level!=o?Yo.cursor(P?t.to:t.from,P?-1:1,o):O&&O.level0&&f.length&&(f.every(({fromA:b,toA:i})=>ithis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let P=-1;this.view.inputState.composing>=0&&(!((o=this.domChanged)===null||o===void 0)&&o.newSel?P=this.domChanged.newSel.head:!jTe(e.changes,this.hasComposition)&&!e.selectionSet&&(P=e.state.selection.main.head));let d=P>-1?FTe(this.view,e.changes,P):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:b,to:i}=this.hasComposition;f=new nb(b,i,e.changes.mapPos(b,-1),e.changes.mapPos(i,1)).addToSet(f.slice())}this.hasComposition=d?{from:d.range.fromB,to:d.range.toB}:null,(Ua.ie||Ua.chrome)&&!d&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let l=this.decorations,n=this.updateDeco(),c=VTe(l,n,e.changes);return f=nb.extendWithRanges(f,c),!(this.flags&7)&&f.length==0?!1:(this.updateInner(f,e.startState.doc.length,d),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,o,f){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,o,f);let{observer:P}=this.view;P.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let l=Ua.chrome||Ua.ios?{node:P.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,l),this.flags&=-8,l&&(l.written||P.selectionRange.focusNode!=l.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(l=>l.flags&=-9);let d=[];if(this.view.viewport.from||this.view.viewport.to=0?P[l]:null;if(!n)break;let{fromA:c,toA:b,fromB:i,toB:O}=n,w,y,p,a;if(f&&f.range.fromBi){let _=cI.build(this.view.state.doc,i,f.range.fromB,this.decorations,this.dynamicDecorationMap),S=cI.build(this.view.state.doc,f.range.toB,O,this.decorations,this.dynamicDecorationMap);y=_.breakAtStart,p=_.openStart,a=S.openEnd;let A=this.compositionView(f);S.breakAtStart?A.breakAfter=1:S.content.length&&A.merge(A.length,A.length,S.content[0],!1,S.openStart,0)&&(A.breakAfter=S.content[0].breakAfter,S.content.shift()),_.content.length&&A.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),w=_.content.concat(A).concat(S.content)}else({content:w,breakAtStart:y,openStart:p,openEnd:a}=cI.build(this.view.state.doc,i,O,this.decorations,this.dynamicDecorationMap));let{i:u,off:h}=d.findPos(b,1),{i:m,off:v}=d.findPos(c,-1);jve(this,m,v,u,h,w,y,p,a)}f&&this.fixCompositionDOM(f)}compositionView(e){let o=new AO(e.text.nodeValue);o.flags|=8;for(let{deco:P}of e.marks)o=new MO(P,[o],o.length);let f=new _p;return f.append(o,0),f}fixCompositionDOM(e){let o=(d,l)=>{l.flags|=8|(l.children.some(c=>c.flags&7)?1:0),this.markedForComposition.add(l);let n=id.get(d);n&&n!=l&&(n.dom=null),l.setDOM(d)},f=this.childPos(e.range.fromB,1),P=this.children[f.i];o(e.line,P);for(let d=e.marks.length-1;d>=-1;d--)f=P.childPos(f.off,1),P=P.children[f.i],o(d>=0?e.marks[d].node:e.text,P)}updateSelection(e=!1,o=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let f=this.view.root.activeElement,P=f==this.dom,d=!P&&hH(this.dom,this.view.observer.selectionRange)&&!(f&&this.dom.contains(f));if(!(P||o||d))return;let l=this.forceSelection;this.forceSelection=!1;let n=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(n.anchor)),b=n.empty?c:this.moveToLine(this.domAtPos(n.head));if(Ua.gecko&&n.empty&&!this.hasComposition&&zTe(c)){let O=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(O,c.node.childNodes[c.offset]||null)),c=b=new $g(O,0),l=!0}let i=this.view.observer.selectionRange;(l||!i.focusNode||!$H(c.node,c.offset,i.anchorNode,i.anchorOffset)||!$H(b.node,b.offset,i.focusNode,i.focusOffset))&&(this.view.observer.ignore(()=>{Ua.android&&Ua.chrome&&this.dom.contains(i.focusNode)&&UTe(i.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let O=NH(this.view.root);if(O)if(n.empty){if(Ua.gecko){let w=NTe(c.node,c.offset);if(w&&w!=3){let y=mye(c.node,c.offset,w==1?1:-1);y&&(c=new $g(y.node,y.offset))}}O.collapse(c.node,c.offset),n.bidiLevel!=null&&O.caretBidiLevel!==void 0&&(O.caretBidiLevel=n.bidiLevel)}else if(O.extend){O.collapse(c.node,c.offset);try{O.extend(b.node,b.offset)}catch{}}else{let w=document.createRange();n.anchor>n.head&&([c,b]=[b,c]),w.setEnd(b.node,b.offset),w.setStart(c.node,c.offset),O.removeAllRanges(),O.addRange(w)}d&&this.view.root.activeElement==this.dom&&(this.dom.blur(),f&&f.focus())}),this.view.observer.setSelectionRange(c,b)),this.impreciseAnchor=c.precise?null:new $g(i.anchorNode,i.anchorOffset),this.impreciseHead=b.precise?null:new $g(i.focusNode,i.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,o=e.state.selection.main,f=NH(e.root),{anchorNode:P,anchorOffset:d}=e.observer.selectionRange;if(!f||!o.empty||!o.assoc||!f.modify)return;let l=_p.find(this,o.head);if(!l)return;let n=l.posAtStart;if(o.head==n||o.head==n+l.length)return;let c=this.coordsAt(o.head,-1),b=this.coordsAt(o.head,1);if(!c||!b||c.bottom>b.top)return;let i=this.domAtPos(o.head+o.assoc);f.collapse(i.node,i.offset),f.modify("move",o.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let O=e.observer.selectionRange;e.docView.posFromDOM(O.anchorNode,O.anchorOffset)!=o.from&&f.collapse(P,d)}moveToLine(e){let o=this.dom,f;if(e.node!=o)return e;for(let P=e.offset;!f&&P=0;P--){let d=id.get(o.childNodes[P]);d instanceof _p&&(f=d.domAtPos(d.length))}return f?new $g(f.node,f.offset,!0):e}nearest(e){for(let o=e;o;){let f=id.get(o);if(f&&f.rootView==this)return f;o=o.parentNode}return null}posFromDOM(e,o){let f=this.nearest(e);if(!f)throw new RangeError("Trying to find position for a DOM position outside of the document");return f.localPosFromDOM(e,o)+f.posAtStart}domAtPos(e){let{i:o,off:f}=this.childCursor().findPos(e,-1);for(;o=0;l--){let n=this.children[l],c=d-n.breakAfter,b=c-n.length;if(ce||n.covers(1))&&(!f||n instanceof _p&&!(f instanceof _p&&o>=0))&&(f=n,P=b),d=b}return f?f.coordsAt(e-P,o):null}coordsForChar(e){let{i:o,off:f}=this.childPos(e,1),P=this.children[o];if(!(P instanceof _p))return null;for(;P.children.length;){let{i:n,off:c}=P.childPos(f,1);for(;;n++){if(n==P.children.length)return null;if((P=P.children[n]).length)break}f=c}if(!(P instanceof AO))return null;let d=ng(P.text,f);if(d==f)return null;let l=mT(P.dom,f,d).getClientRects();for(let n=0;nMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,n=-1,c=this.view.textDirection==qd.LTR;for(let b=0,i=0;iP)break;if(b>=f){let y=O.dom.getBoundingClientRect();if(o.push(y.height),l){let p=O.dom.lastChild,a=p?cM(p):[];if(a.length){let u=a[a.length-1],h=c?u.right-y.left:y.right-u.left;h>n&&(n=h,this.minWidth=d,this.minWidthFrom=b,this.minWidthTo=w)}}}b=w+O.breakAfter}return o}textDirectionAt(e){let{i:o}=this.childPos(e,1);return getComputedStyle(this.children[o].dom).direction=="rtl"?qd.RTL:qd.LTR}measureTextSize(){for(let d of this.children)if(d instanceof _p){let l=d.measureTextSize();if(l)return l}let e=document.createElement("div"),o,f,P;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let d=cM(e.firstChild)[0];o=e.getBoundingClientRect().height,f=d?d.width/27:7,P=d?d.height:o,e.remove()}),{lineHeight:o,charWidth:f,textHeight:P}}childCursor(e=this.length){let o=this.children.length;return o&&(e-=this.children[--o].length),new Uve(this.children,e,o)}computeBlockGapDeco(){let e=[],o=this.view.viewState;for(let f=0,P=0;;P++){let d=P==o.viewports.length?null:o.viewports[P],l=d?d.from-1:this.length;if(l>f){let n=(o.lineBlockAt(l).bottom-o.lineBlockAt(f).top)/this.view.scaleY;e.push(es.replace({widget:new Nhe(n),block:!0,inclusive:!0,isBlockGap:!0}).range(f,l))}if(!d)break;f=d.to+1}return es.set(e)}updateDeco(){let e=this.view.state.facet(RI).map((o,f)=>(this.dynamicDecorationMap[f]=typeof o=="function")?o(this.view):o);for(let o=e.length;oo.anchor?-1:1),P;if(!f)return;!o.empty&&(P=this.coordsAt(o.anchor,o.anchor>o.head?-1:1))&&(f={left:Math.min(f.left,P.left),top:Math.min(f.top,P.top),right:Math.max(f.right,P.right),bottom:Math.max(f.bottom,P.bottom)});let d=lye(this.view),l={left:f.left-d.left,top:f.top-d.top,right:f.right+d.right,bottom:f.bottom+d.bottom},{offsetWidth:n,offsetHeight:c}=this.view.scrollDOM;vTe(this.view.scrollDOM,l,o.head0)f=f.childNodes[P-1],P=CO(f);else break}if(o>=0)for(let f=t,P=e;;){if(f.nodeType==3)return{node:f,offset:P};if(f.nodeType==1&&P=0)f=f.childNodes[P],P=0;else break}return null}function NTe(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e{fe.from&&(o=!0)}),o}function QTe(t,e,o=1){let f=t.charCategorizer(e),P=t.doc.lineAt(e),d=e-P.from;if(P.length==0)return Yo.cursor(e);d==0?o=1:d==P.length&&(o=-1);let l=d,n=d;o<0?l=ng(P.text,d,!1):n=ng(P.text,d);let c=f(P.text.slice(l,n));for(;l>0;){let b=ng(P.text,l,!1);if(f(P.text.slice(b,l))!=c)break;l=b}for(;nt?e.left-t:Math.max(0,t-e.right)}function ZTe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function hie(t,e){return t.tope.top+1}function $he(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function rse(t,e,o){let f,P,d,l,n=!1,c,b,i,O;for(let p=t.firstChild;p;p=p.nextSibling){let a=cM(p);for(let u=0;uv||l==v&&d>m){f=p,P=h,d=m,l=v;let _=v?o0?u0)}m==0?o>h.bottom&&(!i||i.bottomh.top)&&(b=p,O=h):i&&hie(i,h)?i=Vhe(i,h.bottom):O&&hie(O,h)&&(O=$he(O,h.top))}}if(i&&i.bottom>=o?(f=c,P=i):O&&O.top<=o&&(f=b,P=O),!f)return{node:t,offset:0};let w=Math.max(P.left,Math.min(P.right,e));if(f.nodeType==3)return Uhe(f,w,o);if(n&&f.contentEditable!="false")return rse(f,w,o);let y=Array.prototype.indexOf.call(t.childNodes,f)+(e>=(P.left+P.right)/2?1:0);return{node:t,offset:y}}function Uhe(t,e,o){let f=t.nodeValue.length,P=-1,d=1e9,l=0;for(let n=0;no?i.top-o:o-i.bottom)-1;if(i.left-1<=e&&i.right+1>=e&&O=(i.left+i.right)/2,y=w;if((Ua.chrome||Ua.gecko)&&mT(t,n).getBoundingClientRect().left==i.right&&(y=!w),O<=0)return{node:t,offset:n+(y?1:0)};P=n+(y?1:0),d=O}}}return{node:t,offset:P>-1?P:l>0?t.nodeValue.length:0}}function gye(t,e,o,f=-1){var P,d;let l=t.contentDOM.getBoundingClientRect(),n=l.top+t.viewState.paddingTop,c,{docHeight:b}=t.viewState,{x:i,y:O}=e,w=O-n;if(w<0)return 0;if(w>b)return t.state.doc.length;for(let _=t.viewState.heightOracle.textHeight/2,S=!1;c=t.elementAtHeight(w),c.type!=T0.Text;)for(;w=f>0?c.bottom+_:c.top-_,!(w>=0&&w<=b);){if(S)return o?null:0;S=!0,f=-f}O=n+w;let y=c.from;if(yt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:o?null:jhe(t,l,c,i,O);let p=t.dom.ownerDocument,a=t.root.elementFromPoint?t.root:p,u=a.elementFromPoint(i,O);u&&!t.contentDOM.contains(u)&&(u=null),u||(i=Math.max(l.left+1,Math.min(l.right-1,i)),u=a.elementFromPoint(i,O),u&&!t.contentDOM.contains(u)&&(u=null));let h,m=-1;if(u&&((P=t.docView.nearest(u))===null||P===void 0?void 0:P.isEditable)!=!1){if(p.caretPositionFromPoint){let _=p.caretPositionFromPoint(i,O);_&&({offsetNode:h,offset:m}=_)}else if(p.caretRangeFromPoint){let _=p.caretRangeFromPoint(i,O);_&&({startContainer:h,startOffset:m}=_,(!t.contentDOM.contains(h)||Ua.safari&&qTe(h,m,i)||Ua.chrome&&WTe(h,m,i))&&(h=void 0))}}if(!h||!t.docView.dom.contains(h)){let _=_p.find(t.docView,y);if(!_)return w>c.top+c.height/2?c.to:c.from;({node:h,offset:m}=rse(_.dom,i,O))}let v=t.docView.nearest(h);if(!v)return null;if(v.isWidget&&((d=v.dom)===null||d===void 0?void 0:d.nodeType)==1){let _=v.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?v.posAtStart:v.posAtEnd}else return v.localPosFromDOM(h,m)+v.posAtStart}function jhe(t,e,o,f,P){let d=Math.round((f-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&o.height>t.defaultLineHeight*1.5){let n=t.viewState.heightOracle.textHeight,c=Math.floor((P-o.top-(t.defaultLineHeight-n)*.5)/n);d+=c*t.viewState.heightOracle.lineLength}let l=t.state.sliceDoc(o.from,o.to);return o.from+jae(l,d,t.state.tabSize)}function qTe(t,e,o){let f;if(t.nodeType!=3||e!=(f=t.nodeValue.length))return!1;for(let P=t.nextSibling;P;P=P.nextSibling)if(P.nodeType!=1||P.nodeName!="BR")return!1;return mT(t,f-1,f).getBoundingClientRect().left>o}function WTe(t,e,o){if(e!=0)return!1;for(let P=t;;){let d=P.parentNode;if(!d||d.nodeType!=1||d.firstChild!=P)return!1;if(d.classList.contains("cm-line"))break;P=d}let f=t.nodeType==1?t.getBoundingClientRect():mT(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return o-f.left>5}function ose(t,e){let o=t.lineBlockAt(e);if(Array.isArray(o.type)){for(let f of o.type)if(f.to>e||f.to==e&&(f.to==o.to||f.type==T0.Text))return f}return o}function YTe(t,e,o,f){let P=ose(t,e.head),d=!f||P.type!=T0.Text||!(t.lineWrapping||P.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>P.from?e.head-1:e.head);if(d){let l=t.dom.getBoundingClientRect(),n=t.textDirectionAt(P.from),c=t.posAtCoords({x:o==(n==qd.LTR)?l.right-1:l.left+1,y:(d.top+d.bottom)/2});if(c!=null)return Yo.cursor(c,o?-1:1)}return Yo.cursor(o?P.to:P.from,o?-1:1)}function Qhe(t,e,o,f){let P=t.state.doc.lineAt(e.head),d=t.bidiSpans(P),l=t.textDirectionAt(P.from);for(let n=e,c=null;;){let b=BTe(P,d,l,n,o),i=hye;if(!b){if(P.number==(o?t.state.doc.lines:1))return n;i=` -`,P=t.state.doc.line(P.number+(o?1:-1)),d=t.bidiSpans(P),b=Yo.cursor(o?P.from:P.to)}if(c){if(!c(i))return n}else{if(!f)return b;c=f(i)}n=b}}function XTe(t,e,o){let f=t.state.charCategorizer(e),P=f(o);return d=>{let l=f(d);return P==Ad.Space&&(P=l),P==l}}function GTe(t,e,o,f){let P=e.head,d=o?1:-1;if(P==(o?t.state.doc.length:0))return Yo.cursor(P,e.assoc);let l=e.goalColumn,n,c=t.contentDOM.getBoundingClientRect(),b=t.coordsAtPos(P,e.assoc||-1),i=t.documentTop;if(b)l==null&&(l=b.left-c.left),n=d<0?b.top:b.bottom;else{let y=t.viewState.lineBlockAt(P);l==null&&(l=Math.min(c.right-c.left,t.defaultCharacterWidth*(P-y.from))),n=(d<0?y.top:y.bottom)+i}let O=c.left+l,w=f??t.viewState.heightOracle.textHeight>>1;for(let y=0;;y+=10){let p=n+(w+y)*d,a=gye(t,{x:O,y:p},!1,d);if(pc.bottom||(d<0?aP)){let u=t.docView.coordsForChar(a),h=!u||p{if(e>d&&eP(t)),o.from,e.head>o.from?-1:1);return f==o.from?o:Yo.cursor(f,fnull),Ua.gecko&&p6e(e.contentDOM.ownerDocument)}handleEvent(e){!a6e(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,o){let f=this.handlers[e];if(f){for(let P of f.observers)P(this.view,o);for(let P of f.handlers){if(o.defaultPrevented)break;if(P(this.view,o)){o.preventDefault();break}}}}ensureHandlers(e){let o=JTe(e),f=this.handlers,P=this.view.contentDOM;for(let d in o)if(d!="scroll"){let l=!o[d].handlers.length,n=f[d];n&&l!=!n.handlers.length&&(P.removeEventListener(d,this.handleEvent),n=null),n||P.addEventListener(d,this.handleEvent,{passive:l})}for(let d in f)d!="scroll"&&!o[d]&&P.removeEventListener(d,this.handleEvent);this.handlers=o}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()f.keyCode==e.keyCode))&&!e.ctrlKey||e6e.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=o||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,GA(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Ua.safari&&!Ua.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Hhe(t,e){return(o,f)=>{try{return e.call(t,f,o)}catch(P){tb(o.state,P)}}}function JTe(t){let e=Object.create(null);function o(f){return e[f]||(e[f]={observers:[],handlers:[]})}for(let f of t){let P=f.spec;if(P&&P.domEventHandlers)for(let d in P.domEventHandlers){let l=P.domEventHandlers[d];l&&o(d).handlers.push(Hhe(f.value,l))}if(P&&P.domEventObservers)for(let d in P.domEventObservers){let l=P.domEventObservers[d];l&&o(d).observers.push(Hhe(f.value,l))}}for(let f in xx)o(f).handlers.push(xx[f]);for(let f in _x)o(f).observers.push(_x[f]);return e}const vye=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],e6e="dthko",yye=[16,17,18,20,91,92,224,225],AQ=6;function MQ(t){return Math.max(0,t)*.7+8}function t6e(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class n6e{constructor(e,o,f,P){this.view=e,this.startEvent=o,this.style=f,this.mustSelect=P,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=o,this.scrollParent=yTe(e.contentDOM),this.atoms=e.state.facet(ace).map(l=>l(e));let d=e.contentDOM.ownerDocument;d.addEventListener("mousemove",this.move=this.move.bind(this)),d.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=o.shiftKey,this.multiple=e.state.facet(jl.allowMultipleSelections)&&r6e(e,o),this.dragging=i6e(e,o)&&wye(o)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var o;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&t6e(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let f=0,P=0,d=((o=this.scrollParent)===null||o===void 0?void 0:o.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},l=lye(this.view);e.clientX-l.left<=d.left+AQ?f=-MQ(d.left-e.clientX):e.clientX+l.right>=d.right-AQ&&(f=MQ(e.clientX-d.right)),e.clientY-l.top<=d.top+AQ?P=-MQ(d.top-e.clientY):e.clientY+l.bottom>=d.bottom-AQ&&(P=MQ(e.clientY-d.bottom)),this.setScrollSpeed(f,P)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,o){this.scrollSpeed={x:e,y:o},e||o?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let o=null;for(let f=0;fthis.select(this.lastEvent),20)}}function r6e(t,e){let o=t.state.facet(Gve);return o.length?o[0](e):Ua.mac?e.metaKey:e.ctrlKey}function o6e(t,e){let o=t.state.facet(Kve);return o.length?o[0](e):Ua.mac?!e.altKey:!e.ctrlKey}function i6e(t,e){let{main:o}=t.state.selection;if(o.empty)return!1;let f=NH(t.root);if(!f||f.rangeCount==0)return!0;let P=f.getRangeAt(0).getClientRects();for(let d=0;d=e.clientX&&l.top<=e.clientY&&l.bottom>=e.clientY)return!0}return!1}function a6e(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let o=e.target,f;o!=t.contentDOM;o=o.parentNode)if(!o||o.nodeType==11||(f=id.get(o))&&f.ignoreEvent(e))return!1;return!0}const xx=Object.create(null),_x=Object.create(null),bye=Ua.ie&&Ua.ie_version<15||Ua.ios&&Ua.webkit_version<604;function s6e(t){let e=t.dom.parentNode;if(!e)return;let o=e.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus(),setTimeout(()=>{t.focus(),o.remove(),xye(t,o.value)},50)}function xye(t,e){let{state:o}=t,f,P=1,d=o.toText(e),l=d.lines==o.selection.ranges.length;if(ise!=null&&o.selection.ranges.every(c=>c.empty)&&ise==d.toString()){let c=-1;f=o.changeByRange(b=>{let i=o.doc.lineAt(b.from);if(i.from==c)return{range:b};c=i.from;let O=o.toText((l?d.line(P++).text:e)+o.lineBreak);return{changes:{from:i.from,insert:O},range:Yo.cursor(b.from+O.length)}})}else l?f=o.changeByRange(c=>{let b=d.line(P++);return{changes:{from:c.from,to:c.to,insert:b.text},range:Yo.cursor(c.from+b.length)}}):f=o.replaceSelection(d);t.dispatch(f,{userEvent:"input.paste",scrollIntoView:!0})}_x.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};xx.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&(t.inputState.lastEscPress=Date.now()),!1);_x.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};_x.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};xx.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let o=null;for(let f of t.state.facet(Jve))if(o=f(t,e),o)break;if(!o&&e.button==0&&(o=u6e(t,e)),o){let f=!t.hasFocus;t.inputState.startMouseSelection(new n6e(t,e,o,f)),f&&t.observer.ignore(()=>Nve(t.contentDOM));let P=t.inputState.mouseSelection;if(P)return P.start(e),P.dragging===!1}return!1};function Zhe(t,e,o,f){if(f==1)return Yo.cursor(e,o);if(f==2)return QTe(t.state,e,o);{let P=_p.find(t.docView,e),d=t.state.doc.lineAt(P?P.posAtEnd:e),l=P?P.posAtStart:d.from,n=P?P.posAtEnd:d.to;return nt>=e.top&&t<=e.bottom,qhe=(t,e,o)=>_ye(e,o)&&t>=o.left&&t<=o.right;function l6e(t,e,o,f){let P=_p.find(t.docView,e);if(!P)return 1;let d=e-P.posAtStart;if(d==0)return 1;if(d==P.length)return-1;let l=P.coordsAt(d,-1);if(l&&qhe(o,f,l))return-1;let n=P.coordsAt(d,1);return n&&qhe(o,f,n)?1:l&&_ye(f,l)?-1:1}function Whe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:o,bias:l6e(t,o,e.clientX,e.clientY)}}const c6e=Ua.ie&&Ua.ie_version<=11;let Yhe=null,Xhe=0,Ghe=0;function wye(t){if(!c6e)return t.detail;let e=Yhe,o=Ghe;return Yhe=t,Ghe=Date.now(),Xhe=!e||o>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Xhe+1)%3:1}function u6e(t,e){let o=Whe(t,e),f=wye(e),P=t.state.selection;return{update(d){d.docChanged&&(o.pos=d.changes.mapPos(o.pos),P=P.map(d.changes))},get(d,l,n){let c=Whe(t,d),b,i=Zhe(t,c.pos,c.bias,f);if(o.pos!=c.pos&&!l){let O=Zhe(t,o.pos,o.bias,f),w=Math.min(O.from,i.from),y=Math.max(O.to,i.to);i=w1&&(b=f6e(P,c.pos))?b:n?P.addRange(i):Yo.create([i])}}}function f6e(t,e){for(let o=0;o=e)return Yo.create(t.ranges.slice(0,o).concat(t.ranges.slice(o+1)),t.mainIndex==o?0:t.mainIndex-(t.mainIndex>o?1:0))}return null}xx.dragstart=(t,e)=>{let{selection:{main:o}}=t.state;if(e.target.draggable){let P=t.docView.nearest(e.target);if(P&&P.isWidget){let d=P.posAtStart,l=d+P.length;(d>=o.to||l<=o.from)&&(o=Yo.range(d,l))}}let{inputState:f}=t;return f.mouseSelection&&(f.mouseSelection.dragging=!0),f.draggedContent=o,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(o.from,o.to)),e.dataTransfer.effectAllowed="copyMove"),!1};xx.dragend=t=>(t.inputState.draggedContent=null,!1);function Khe(t,e,o,f){if(!o)return;let P=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:d}=t.inputState,l=f&&d&&o6e(t,e)?{from:d.from,to:d.to}:null,n={from:P,insert:o},c=t.state.changes(l?[l,n]:n);t.focus(),t.dispatch({changes:c,selection:{anchor:c.mapPos(P,-1),head:c.mapPos(P,1)},userEvent:l?"move.drop":"input.drop"}),t.inputState.draggedContent=null}xx.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let o=e.dataTransfer.files;if(o&&o.length){let f=Array(o.length),P=0,d=()=>{++P==o.length&&Khe(t,e,f.filter(l=>l!=null).join(t.state.lineBreak),!1)};for(let l=0;l{/[\x00-\x08\x0e-\x1f]{2}/.test(n.result)||(f[l]=n.result),d()},n.readAsText(o[l])}return!0}else{let f=e.dataTransfer.getData("Text");if(f)return Khe(t,e,f,!0),!0}return!1};xx.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let o=bye?null:e.clipboardData;return o?(xye(t,o.getData("text/plain")||o.getData("text/uri-text")),!0):(s6e(t),!1)};function d6e(t,e){let o=t.dom.parentNode;if(!o)return;let f=o.appendChild(document.createElement("textarea"));f.style.cssText="position: fixed; left: -10000px; top: 10px",f.value=e,f.focus(),f.selectionEnd=e.length,f.selectionStart=0,setTimeout(()=>{f.remove(),t.focus()},50)}function h6e(t){let e=[],o=[],f=!1;for(let P of t.selection.ranges)P.empty||(e.push(t.sliceDoc(P.from,P.to)),o.push(P));if(!e.length){let P=-1;for(let{from:d}of t.selection.ranges){let l=t.doc.lineAt(d);l.number>P&&(e.push(l.text),o.push({from:l.from,to:Math.min(t.doc.length,l.to+1)})),P=l.number}f=!0}return{text:e.join(t.lineBreak),ranges:o,linewise:f}}let ise=null;xx.copy=xx.cut=(t,e)=>{let{text:o,ranges:f,linewise:P}=h6e(t.state);if(!o&&!P)return!1;ise=P?o:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:f,scrollIntoView:!0,userEvent:"delete.cut"});let d=bye?null:e.clipboardData;return d?(d.clearData(),d.setData("text/plain",o),!0):(d6e(t,o),!1)};const Oye=LO.define();function Sye(t,e){let o=[];for(let f of t.facet(nye)){let P=f(t,e);P&&o.push(P)}return o?t.update({effects:o,annotations:Oye.of(!0)}):null}function kye(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let o=Sye(t.state,e);o?t.dispatch(o):t.update([])}},10)}_x.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),kye(t)};_x.blur=t=>{t.observer.clearSelectionRange(),kye(t)};_x.compositionstart=_x.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)};_x.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Ua.chrome&&Ua.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)};_x.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};xx.beforeinput=(t,e)=>{var o;let f;if(Ua.chrome&&Ua.android&&(f=vye.find(P=>P.inputType==e.inputType))&&(t.observer.delayAndroidKey(f.key,f.keyCode),f.key=="Backspace"||f.key=="Delete")){let P=((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0;setTimeout(()=>{var d;(((d=window.visualViewport)===null||d===void 0?void 0:d.height)||0)>P+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};const Jhe=new Set;function p6e(t){Jhe.has(t)||(Jhe.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const epe=["pre-wrap","normal","pre-line","break-spaces"];class m6e{constructor(e){this.lineWrapping=e,this.doc=ru.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,o){let f=this.doc.lineAt(o).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(f+=Math.max(0,Math.ceil((o-e-f*this.lineLength*.5)/this.lineLength))),this.lineHeight*f}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return epe.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let o=!1;for(let f=0;f-1,c=Math.round(o)!=Math.round(this.lineHeight)||this.lineWrapping!=n;if(this.lineWrapping=n,this.lineHeight=o,this.charWidth=f,this.textHeight=P,this.lineLength=d,c){this.heightSamples={};for(let b=0;b0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,o){this.height!=o&&(Math.abs(this.height-o)>mH&&(e.heightChanged=!0),this.height=o)}replace(e,o,f){return C0.of(f)}decomposeLeft(e,o){o.push(this)}decomposeRight(e,o){o.push(this)}applyChanges(e,o,f,P){let d=this,l=f.doc;for(let n=P.length-1;n>=0;n--){let{fromA:c,toA:b,fromB:i,toB:O}=P[n],w=d.lineAt(c,rd.ByPosNoHeight,f.setDoc(o),0,0),y=w.to>=b?w:d.lineAt(b,rd.ByPosNoHeight,f,0,0);for(O+=y.to-b,b=y.to;n>0&&w.from<=P[n-1].toA;)c=P[n-1].fromA,i=P[n-1].fromB,n--,cd*2){let n=e[o-1];n.break?e.splice(--o,1,n.left,null,n.right):e.splice(--o,1,n.left,n.right),f+=1+n.break,P-=n.size}else if(d>P*2){let n=e[f];n.break?e.splice(f,1,n.left,null,n.right):e.splice(f,1,n.left,n.right),f+=2+n.break,d-=n.size}else break;else if(P=d&&l(this.blockAt(0,f,P,d))}updateHeight(e,o=0,f=!1,P){return P&&P.from<=o&&P.more&&this.setHeight(e,P.heights[P.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Rv extends Tye{constructor(e,o){super(e,o,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,o,f,P){return new r_(P,this.length,f,this.height,this.breaks)}replace(e,o,f){let P=f[0];return f.length==1&&(P instanceof Rv||P instanceof Km&&P.flags&4)&&Math.abs(this.length-P.length)<10?(P instanceof Km?P=new Rv(P.length,this.height):P.height=this.height,this.outdated||(P.outdated=!1),P):C0.of(f)}updateHeight(e,o=0,f=!1,P){return P&&P.from<=o&&P.more?this.setHeight(e,P.heights[P.index++]):(f||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Km extends C0{constructor(e){super(e,0)}heightMetrics(e,o){let f=e.doc.lineAt(o).number,P=e.doc.lineAt(o+this.length).number,d=P-f+1,l,n=0;if(e.lineWrapping){let c=Math.min(this.height,e.lineHeight*d);l=c/d,this.length>d+1&&(n=(this.height-c)/(this.length-d-1))}else l=this.height/d;return{firstLine:f,lastLine:P,perLine:l,perChar:n}}blockAt(e,o,f,P){let{firstLine:d,lastLine:l,perLine:n,perChar:c}=this.heightMetrics(o,P);if(o.lineWrapping){let b=P+Math.round(Math.max(0,Math.min(1,(e-f)/this.height))*this.length),i=o.doc.lineAt(b),O=n+i.length*c,w=Math.max(f,e-O/2);return new r_(i.from,i.length,w,O,0)}else{let b=Math.max(0,Math.min(l-d,Math.floor((e-f)/n))),{from:i,length:O}=o.doc.line(d+b);return new r_(i,O,f+n*b,n,0)}}lineAt(e,o,f,P,d){if(o==rd.ByHeight)return this.blockAt(e,f,P,d);if(o==rd.ByPosNoHeight){let{from:y,to:p}=f.doc.lineAt(e);return new r_(y,p-y,0,0,0)}let{firstLine:l,perLine:n,perChar:c}=this.heightMetrics(f,d),b=f.doc.lineAt(e),i=n+b.length*c,O=b.number-l,w=P+n*O+c*(b.from-d-O);return new r_(b.from,b.length,Math.max(P,Math.min(w,P+this.height-i)),i,0)}forEachLine(e,o,f,P,d,l){e=Math.max(e,d),o=Math.min(o,d+this.length);let{firstLine:n,perLine:c,perChar:b}=this.heightMetrics(f,d);for(let i=e,O=P;i<=o;){let w=f.doc.lineAt(i);if(i==e){let p=w.number-n;O+=c*p+b*(e-d-p)}let y=c+b*w.length;l(new r_(w.from,w.length,O,y,0)),O+=y,i=w.to+1}}replace(e,o,f){let P=this.length-o;if(P>0){let d=f[f.length-1];d instanceof Km?f[f.length-1]=new Km(d.length+P):f.push(null,new Km(P-1))}if(e>0){let d=f[0];d instanceof Km?f[0]=new Km(e+d.length):f.unshift(new Km(e-1),null)}return C0.of(f)}decomposeLeft(e,o){o.push(new Km(e-1),null)}decomposeRight(e,o){o.push(null,new Km(this.length-e-1))}updateHeight(e,o=0,f=!1,P){let d=o+this.length;if(P&&P.from<=o+this.length&&P.more){let l=[],n=Math.max(o,P.from),c=-1;for(P.from>o&&l.push(new Km(P.from-o-1).updateHeight(e,o));n<=d&&P.more;){let i=e.doc.lineAt(n).length;l.length&&l.push(null);let O=P.heights[P.index++];c==-1?c=O:Math.abs(O-c)>=mH&&(c=-2);let w=new Rv(i,O);w.outdated=!1,l.push(w),n+=i+1}n<=d&&l.push(null,new Km(d-n).updateHeight(e,n));let b=C0.of(l);return(c<0||Math.abs(b.height-this.height)>=mH||Math.abs(c-this.heightMetrics(e,o).perLine)>=mH)&&(e.heightChanged=!0),b}else(f||this.outdated)&&(this.setHeight(e,e.heightForGap(o,o+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class v6e extends C0{constructor(e,o,f){super(e.length+o+f.length,e.height+f.height,o|(e.outdated||f.outdated?2:0)),this.left=e,this.right=f,this.size=e.size+f.size}get break(){return this.flags&1}blockAt(e,o,f,P){let d=f+this.left.height;return en))return b;let i=o==rd.ByPosNoHeight?rd.ByPosNoHeight:rd.ByPos;return c?b.join(this.right.lineAt(n,i,f,l,n)):this.left.lineAt(n,i,f,P,d).join(b)}forEachLine(e,o,f,P,d,l){let n=P+this.left.height,c=d+this.left.length+this.break;if(this.break)e=c&&this.right.forEachLine(e,o,f,n,c,l);else{let b=this.lineAt(c,rd.ByPos,f,P,d);e=e&&b.from<=o&&l(b),o>b.to&&this.right.forEachLine(b.to+1,o,f,n,c,l)}}replace(e,o,f){let P=this.left.length+this.break;if(othis.left.length)return this.balanced(this.left,this.right.replace(e-P,o-P,f));let d=[];e>0&&this.decomposeLeft(e,d);let l=d.length;for(let n of f)d.push(n);if(e>0&&tpe(d,l-1),o=f&&o.push(null)),e>f&&this.right.decomposeLeft(e-f,o)}decomposeRight(e,o){let f=this.left.length,P=f+this.break;if(e>=P)return this.right.decomposeRight(e-P,o);e2*o.size||o.size>2*e.size?C0.of(this.break?[e,null,o]:[e,o]):(this.left=e,this.right=o,this.height=e.height+o.height,this.outdated=e.outdated||o.outdated,this.size=e.size+o.size,this.length=e.length+this.break+o.length,this)}updateHeight(e,o=0,f=!1,P){let{left:d,right:l}=this,n=o+d.length+this.break,c=null;return P&&P.from<=o+d.length&&P.more?c=d=d.updateHeight(e,o,f,P):d.updateHeight(e,o,f),P&&P.from<=n+l.length&&P.more?c=l=l.updateHeight(e,n,f,P):l.updateHeight(e,n,f),c?this.balanced(d,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function tpe(t,e){let o,f;t[e]==null&&(o=t[e-1])instanceof Km&&(f=t[e+1])instanceof Km&&t.splice(e-1,3,new Km(o.length+1+f.length))}const y6e=5;class sce{constructor(e,o){this.pos=e,this.oracle=o,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,o){if(this.lineStart>-1){let f=Math.min(o,this.lineEnd),P=this.nodes[this.nodes.length-1];P instanceof Rv?P.length+=f-this.pos:(f>this.pos||!this.isCovered)&&this.nodes.push(new Rv(f-this.pos,-1)),this.writtenTo=f,o>f&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=o}point(e,o,f){if(e=y6e)&&this.addLineDeco(P,d,l)}else o>e&&this.span(e,o);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:o}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=o,this.writtenToe&&this.nodes.push(new Rv(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,o){let f=new Km(o-e);return this.oracle.doc.lineAt(e).to==o&&(f.flags|=4),f}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Rv)return e;let o=new Rv(0,-1);return this.nodes.push(o),o}addBlock(e){this.enterLine();let o=e.deco;o&&o.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,o&&o.endSide>0&&(this.covering=e)}addLineDeco(e,o,f){let P=this.ensureLine();P.length+=f,P.collapsed+=f,P.widgetHeight=Math.max(P.widgetHeight,e),P.breaks+=o,this.writtenTo=this.pos=this.pos+f}finish(e){let o=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(o instanceof Rv)&&!this.isCovered?this.nodes.push(new Rv(0,-1)):(this.writtenToi.clientHeight||i.scrollWidth>i.clientWidth)&&O.overflow!="visible"){let w=i.getBoundingClientRect();d=Math.max(d,w.left),l=Math.min(l,w.right),n=Math.max(n,w.top),c=b==t.parentNode?w.bottom:Math.min(c,w.bottom)}b=O.position=="absolute"||O.position=="fixed"?i.offsetParent:i.parentNode}else if(b.nodeType==11)b=b.host;else break;return{left:d-o.left,right:Math.max(d,l)-o.left,top:n-(o.top+e),bottom:Math.max(n,c)-(o.top+e)}}function w6e(t,e){let o=t.getBoundingClientRect();return{left:0,right:o.right-o.left,top:e,bottom:o.bottom-(o.top+e)}}class mie{constructor(e,o,f){this.from=e,this.to=o,this.size=f}static same(e,o){if(e.length!=o.length)return!1;for(let f=0;ftypeof f!="function"&&f.class=="cm-lineWrapping");this.heightOracle=new m6e(o),this.stateDeco=e.facet(RI).filter(f=>typeof f!="function"),this.heightMap=C0.empty().applyChanges(this.stateDeco,ru.empty,this.heightOracle.setDoc(e.doc),[new nb(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=es.set(this.lineGaps.map(f=>f.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:o}=this.state.selection;for(let f=0;f<=1;f++){let P=f?o.head:o.anchor;if(!e.some(({from:d,to:l})=>P>=d&&P<=l)){let{from:d,to:l}=this.lineBlockAt(P);e.push(new EQ(d,l))}}this.viewports=e.sort((f,P)=>f.from-P.from),this.scaler=this.heightMap.height<=7e6?rpe:new T6e(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:XL(e,this.scaler))})}update(e,o=null){this.state=e.state;let f=this.stateDeco;this.stateDeco=this.state.facet(RI).filter(i=>typeof i!="function");let P=e.changedRanges,d=nb.extendWithRanges(P,b6e(f,this.stateDeco,e?e.changes:wp.empty(this.state.doc.length))),l=this.heightMap.height,n=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),d),this.heightMap.height!=l&&(e.flags|=2),n?(this.scrollAnchorPos=e.changes.mapPos(n.from,-1),this.scrollAnchorHeight=n.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let c=d.length?this.mapViewport(this.viewport,e.changes):this.viewport;(o&&(o.range.headc.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,o));let b=!e.changes.empty||e.flags&2||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),b&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),o&&(this.scrollTarget=o),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(oye)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let o=e.contentDOM,f=window.getComputedStyle(o),P=this.heightOracle,d=f.whiteSpace;this.defaultTextDirection=f.direction=="rtl"?qd.RTL:qd.LTR;let l=this.heightOracle.mustRefreshForWrapping(d),n=o.getBoundingClientRect(),c=l||this.mustMeasureContent||this.contentDOMHeight!=n.height;this.contentDOMHeight=n.height,this.mustMeasureContent=!1;let b=0,i=0;if(n.width&&n.height){let _=n.width/o.offsetWidth,S=n.height/o.offsetHeight;(_>.995&&_<1.005||!isFinite(_)||Math.abs(n.width-o.offsetWidth)<1)&&(_=1),(S>.995&&S<1.005||!isFinite(S)||Math.abs(n.height-o.offsetHeight)<1)&&(S=1),(this.scaleX!=_||this.scaleY!=S)&&(this.scaleX=_,this.scaleY=S,b|=8,l=c=!0)}let O=(parseInt(f.paddingTop)||0)*this.scaleY,w=(parseInt(f.paddingBottom)||0)*this.scaleY;(this.paddingTop!=O||this.paddingBottom!=w)&&(this.paddingTop=O,this.paddingBottom=w,b|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(P.lineWrapping&&(c=!0),this.editorWidth=e.scrollDOM.clientWidth,b|=8);let y=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=y&&(this.scrollAnchorHeight=-1,this.scrollTop=y),this.scrolledToBottom=Vve(e.scrollDOM);let p=(this.printing?w6e:_6e)(o,this.paddingTop),a=p.top-this.pixelViewport.top,u=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let h=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(h!=this.inView&&(this.inView=h,h&&(c=!0)),!this.inView&&!this.scrollTarget)return 0;let m=n.width;if((this.contentDOMWidth!=m||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=n.width,this.editorHeight=e.scrollDOM.clientHeight,b|=8),c){let _=e.docView.measureVisibleLineHeights(this.viewport);if(P.mustRefreshForHeights(_)&&(l=!0),l||P.lineWrapping&&Math.abs(m-this.contentDOMWidth)>P.charWidth){let{lineHeight:S,charWidth:A,textHeight:x}=e.docView.measureTextSize();l=S>0&&P.refresh(d,S,A,x,m/A,_),l&&(e.docView.minWidth=0,b|=8)}a>0&&u>0?i=Math.max(a,u):a<0&&u<0&&(i=Math.min(a,u)),P.heightChanged=!1;for(let S of this.viewports){let A=S.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(S);this.heightMap=(l?C0.empty().applyChanges(this.stateDeco,ru.empty,this.heightOracle,[new nb(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(P,0,l,new g6e(S.from,A))}P.heightChanged&&(b|=2)}let v=!this.viewportIsAppropriate(this.viewport,i)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(this.viewport=this.getViewport(i,this.scrollTarget)),this.updateForViewport(),(b&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(l?[]:this.lineGaps,e)),b|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),b}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,o){let f=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),P=this.heightMap,d=this.heightOracle,{visibleTop:l,visibleBottom:n}=this,c=new EQ(P.lineAt(l-f*1e3,rd.ByHeight,d,0,0).from,P.lineAt(n+(1-f)*1e3,rd.ByHeight,d,0,0).to);if(o){let{head:b}=o.range;if(bc.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),O=P.lineAt(b,rd.ByPos,d,0,0),w;o.y=="center"?w=(O.top+O.bottom)/2-i/2:o.y=="start"||o.y=="nearest"&&b=n+Math.max(10,Math.min(f,250)))&&P>l-2*1e3&&d>1,l=P<<1;if(this.defaultTextDirection!=qd.LTR&&!f)return[];let n=[],c=(b,i,O,w)=>{if(i-bb&&uu.from>=O.from&&u.to<=O.to&&Math.abs(u.from-b)u.fromh));if(!a){if(iu.from<=i&&u.to>=i)){let u=o.moveToLineBoundary(Yo.cursor(i),!1,!0).head;u>b&&(i=u)}a=new mie(b,i,this.gapSize(O,b,i,w))}n.push(a)};for(let b of this.viewportLines){if(b.lengthb.from&&c(b.from,w,b,i),yo.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let o=[];Vu.spans(e,this.viewport.from,this.viewport.to,{span(P,d){o.push({from:P,to:d})},point(){}},20);let f=o.length!=this.visibleRanges.length||this.visibleRanges.some((P,d)=>P.from!=o[d].from||P.to!=o[d].to);return this.visibleRanges=o,f?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(o=>o.from<=e&&o.to>=e)||XL(this.heightMap.lineAt(e,rd.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return XL(this.heightMap.lineAt(this.scaler.fromDOM(e),rd.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let o=this.lineBlockAtHeight(e+8);return o.from>=this.viewport.from||this.viewportLines[0].top-e>200?o:this.viewportLines[0]}elementAtHeight(e){return XL(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class EQ{constructor(e,o){this.from=e,this.to=o}}function S6e(t,e,o){let f=[],P=t,d=0;return Vu.spans(o,t,e,{span(){},point(l,n){l>P&&(f.push({from:P,to:l}),d+=l-P),P=n}},20),P=1)return e[e.length-1].to;let f=Math.floor(t*o);for(let P=0;;P++){let{from:d,to:l}=e[P],n=l-d;if(f<=n)return d+f;f-=n}}function RQ(t,e){let o=0;for(let{from:f,to:P}of t.ranges){if(e<=P){o+=e-f;break}o+=P-f}return o/t.total}function k6e(t,e){for(let o of t)if(e(o))return o}const rpe={toDOM(t){return t},fromDOM(t){return t},scale:1};class T6e{constructor(e,o,f){let P=0,d=0,l=0;this.viewports=f.map(({from:n,to:c})=>{let b=o.lineAt(n,rd.ByPos,e,0,0).top,i=o.lineAt(c,rd.ByPos,e,0,0).bottom;return P+=i-b,{from:n,to:c,top:b,bottom:i,domTop:0,domBottom:0}}),this.scale=(7e6-P)/(o.height-P);for(let n of this.viewports)n.domTop=l+(n.top-d)*this.scale,l=n.domBottom=n.domTop+(n.bottom-n.top),d=n.bottom}toDOM(e){for(let o=0,f=0,P=0;;o++){let d=oXL(P,e)):t._content)}const LQ=Ba.define({combine:t=>t.join(" ")}),ase=Ba.define({combine:t=>t.indexOf(!0)>-1}),sse=oS.newName(),Cye=oS.newName(),Aye=oS.newName(),Mye={"&light":"."+Cye,"&dark":"."+Aye};function lse(t,e,o){return new oS(e,{finish(f){return/&/.test(f)?f.replace(/&\w*/,P=>{if(P=="&")return t;if(!o||!o[P])throw new RangeError(`Unsupported selector: ${P}`);return o[P]}):t+" "+f}})}const C6e=lse("."+sse,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Mye),GL="￿";class A6e{constructor(e,o){this.points=e,this.text="",this.lineSeparator=o.facet(jl.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=GL}readRange(e,o){if(!e)return this;let f=e.parentNode;for(let P=e;;){this.findPointBefore(f,P);let d=this.text.length;this.readNode(P);let l=P.nextSibling;if(l==o)break;let n=id.get(P),c=id.get(l);(n&&c?n.breakAfter:(n?n.breakAfter:ope(P))||ope(l)&&(P.nodeName!="BR"||P.cmIgnore)&&this.text.length>d)&&this.lineBreak(),P=l}return this.findPointBefore(f,o),this}readTextNode(e){let o=e.nodeValue;for(let f of this.points)f.node==e&&(f.pos=this.text.length+Math.min(f.offset,o.length));for(let f=0,P=this.lineSeparator?null:/\r\n?|\n/g;;){let d=-1,l=1,n;if(this.lineSeparator?(d=o.indexOf(this.lineSeparator,f),l=this.lineSeparator.length):(n=P.exec(o))&&(d=n.index,l=n[0].length),this.append(o.slice(f,d<0?o.length:d)),d<0)break;if(this.lineBreak(),l>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=l-1);f=d+l}}readNode(e){if(e.cmIgnore)return;let o=id.get(e),f=o&&o.overrideDOMText;if(f!=null){this.findPointInside(e,f.length);for(let P=f.iter();!P.next().done;)P.lineBreak?this.lineBreak():this.append(P.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,o){for(let f of this.points)f.node==e&&e.childNodes[f.offset]==o&&(f.pos=this.text.length)}findPointInside(e,o){for(let f of this.points)(e.nodeType==3?f.node==e:e.contains(f.node))&&(f.pos=this.text.length+(M6e(e,f.node,f.offset)?o:0))}}function M6e(t,e,o){for(;;){if(!e||o-1)this.newSel=null;else if(o>-1&&(this.bounds=e.docView.domBoundsAround(o,f,0))){let n=d||l?[]:L6e(e),c=new A6e(n,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=I6e(n,this.bounds.from)}else{let n=e.observer.selectionRange,c=d&&d.node==n.focusNode&&d.offset==n.focusOffset||!Zae(e.contentDOM,n.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(n.focusNode,n.focusOffset),b=l&&l.node==n.anchorNode&&l.offset==n.anchorOffset||!Zae(e.contentDOM,n.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(n.anchorNode,n.anchorOffset);this.newSel=Yo.single(b,c)}}}function Eye(t,e){let o,{newSel:f}=e,P=t.state.selection.main,d=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:l,to:n}=e.bounds,c=P.from,b=null;(d===8||Ua.android&&e.text.length=P.from&&o.to<=P.to&&(o.from!=P.from||o.to!=P.to)&&P.to-P.from-(o.to-o.from)<=4?o={from:P.from,to:P.to,insert:t.state.doc.slice(P.from,o.from).append(o.insert).append(t.state.doc.slice(o.to,P.to))}:(Ua.mac||Ua.android)&&o&&o.from==o.to&&o.from==P.head-1&&/^\. ?$/.test(o.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(f&&o.insert.length==2&&(f=Yo.single(f.main.anchor-1,f.main.head-1)),o={from:P.from,to:P.to,insert:ru.of([" "])}):Ua.chrome&&o&&o.from==o.to&&o.from==P.head&&o.insert.toString()==` - `&&t.lineWrapping&&(f&&(f=Yo.single(f.main.anchor-1,f.main.head-1)),o={from:P.from,to:P.to,insert:ru.of([" "])}),o){if(Ua.ios&&t.inputState.flushIOSKey()||Ua.android&&(o.from==P.from&&o.to==P.to&&o.insert.length==1&&o.insert.lines==2&&GA(t.contentDOM,"Enter",13)||(o.from==P.from-1&&o.to==P.to&&o.insert.length==0||d==8&&o.insert.lengthP.head)&&GA(t.contentDOM,"Backspace",8)||o.from==P.from&&o.to==P.to+1&&o.insert.length==0&&GA(t.contentDOM,"Delete",46)))return!0;let l=o.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let n,c=()=>n||(n=P6e(t,o,f));return t.state.facet(tye).some(b=>b(t,o.from,o.to,l,c))||t.dispatch(c()),!0}else if(f&&!f.main.eq(P)){let l=!1,n="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(l=!0),n=t.inputState.lastSelectionOrigin),t.dispatch({selection:f,scrollIntoView:l,userEvent:n}),!0}else return!1}function P6e(t,e,o){let f,P=t.state,d=P.selection.main;if(e.from>=d.from&&e.to<=d.to&&e.to-e.from>=(d.to-d.from)/3&&(!o||o.main.empty&&o.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let n=d.frome.to?P.sliceDoc(e.to,d.to):"";f=P.replaceSelection(t.state.toText(n+e.insert.sliceString(0,void 0,t.state.lineBreak)+c))}else{let n=P.changes(e),c=o&&o.main.to<=n.newLength?o.main:void 0;if(P.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=d.to&&e.to>=d.to-10){let b=t.state.sliceDoc(e.from,e.to),i,O=o&&pye(t,o.main.head);if(O){let p=e.insert.length-(e.to-e.from);i={from:O.from,to:O.to-p}}else i=t.state.doc.lineAt(d.head);let w=d.to-e.to,y=d.to-d.from;f=P.changeByRange(p=>{if(p.from==d.from&&p.to==d.to)return{changes:n,range:c||p.map(n)};let a=p.to-w,u=a-b.length;if(p.to-p.from!=y||t.state.sliceDoc(u,a)!=b||p.to>=i.from&&p.from<=i.to)return{range:p};let h=P.changes({from:u,to:a,insert:e.insert}),m=p.to-d.to;return{changes:h,range:c?Yo.range(Math.max(0,c.anchor+m),Math.max(0,c.head+m)):p.map(h)}})}else f={changes:n,selection:c&&P.selection.replaceRange(c)}}let l="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,l+=".compose",t.inputState.compositionFirstChange&&(l+=".start",t.inputState.compositionFirstChange=!1)),P.update(f,{userEvent:l,scrollIntoView:!0})}function R6e(t,e,o,f){let P=Math.min(t.length,e.length),d=0;for(;d0&&n>0&&t.charCodeAt(l-1)==e.charCodeAt(n-1);)l--,n--;if(f=="end"){let c=Math.max(0,d-Math.min(l,n));o-=l+c-d}if(l=l?d-o:0;d-=c,n=d+(n-l),l=d}else if(n=n?d-o:0;d-=c,l=d+(l-n),n=d}return{from:d,toA:l,toB:n}}function L6e(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:o,anchorOffset:f,focusNode:P,focusOffset:d}=t.observer.selectionRange;return o&&(e.push(new ipe(o,f)),(P!=o||d!=f)&&e.push(new ipe(P,d))),e}function I6e(t,e){if(t.length==0)return null;let o=t[0].pos,f=t.length==2?t[1].pos:o;return o>-1&&f>-1?Yo.single(o+e,f+e):null}const D6e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},gie=Ua.ie&&Ua.ie_version<=11;class B6e{constructor(e){this.view=e,this.active=!1,this.selectionRange=new bTe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(o=>{for(let f of o)this.queue.push(f);(Ua.ie&&Ua.ie_version<=11||Ua.ios&&e.composing)&&o.some(f=>f.type=="childList"&&f.removedNodes.length||f.type=="characterData"&&f.oldValue.length>f.target.nodeValue.length)?this.flushSoon():this.flush()}),gie&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var o;((o=this.view.docView)===null||o===void 0?void 0:o.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),o.length>0&&o[o.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(o=>{o.length>0&&o[o.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((o,f)=>o!=e[f]))){this.gapIntersection.disconnect();for(let o of e)this.gapIntersection.observe(o);this.gaps=e}}onSelectionChange(e){let o=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:f}=this,P=this.selectionRange;if(f.state.facet(XZ)?f.root.activeElement!=this.dom:!hH(f.dom,P))return;let d=P.anchorNode&&f.docView.nearest(P.anchorNode);if(d&&d.ignoreEvent(e)){o||(this.selectionChanged=!1);return}(Ua.ie&&Ua.ie_version<=11||Ua.android&&Ua.chrome)&&!f.state.selection.main.empty&&P.focusNode&&$H(P.focusNode,P.focusOffset,P.anchorNode,P.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,o=Ua.safari&&e.root.nodeType==11&&mTe(this.dom.ownerDocument)==this.dom&&z6e(this.view)||NH(e.root);if(!o||this.selectionRange.eq(o))return!1;let f=hH(this.dom,o);return f&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let d=this.delayedAndroidKey;d&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=d.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&d.force&&GA(this.dom,d.key,d.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(P)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:o,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let o=-1,f=-1,P=!1;for(let d of e){let l=this.readMutation(d);l&&(l.typeOver&&(P=!0),o==-1?{from:o,to:f}=l:(o=Math.min(l.from,o),f=Math.max(l.to,f)))}return{from:o,to:f,typeOver:P}}readChange(){let{from:e,to:o,typeOver:f}=this.processRecords(),P=this.selectionChanged&&hH(this.dom,this.selectionRange);if(e<0&&!P)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let d=new E6e(this.view,e,o,f);return this.view.docView.domChanged={newSel:d.newSel?d.newSel.main:null},d}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let o=this.readChange();if(!o)return this.view.requestMeasure(),!1;let f=this.view.state,P=Eye(this.view,o);return this.view.state==f&&this.view.update([]),P}readMutation(e){let o=this.view.docView.nearest(e.target);if(!o||o.ignoreMutation(e))return null;if(o.markDirty(e.type=="attributes"),e.type=="attributes"&&(o.flags|=4),e.type=="childList"){let f=ape(o,e.previousSibling||e.target.previousSibling,-1),P=ape(o,e.nextSibling||e.target.nextSibling,1);return{from:f?o.posAfter(f):o.posAtStart,to:P?o.posBefore(P):o.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,o,f;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(o=this.gapIntersection)===null||o===void 0||o.disconnect(),(f=this.resizeScroll)===null||f===void 0||f.disconnect();for(let P of this.scrollTargets)P.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function ape(t,e,o){for(;e;){let f=id.get(e);if(f&&f.parent==t)return f;let P=e.parentNode;e=P!=t.dom?P:o>0?e.nextSibling:e.previousSibling}return null}function z6e(t){let e=null;function o(c){c.preventDefault(),c.stopImmediatePropagation(),e=c.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",o,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",o,!0),!e)return null;let f=e.startContainer,P=e.startOffset,d=e.endContainer,l=e.endOffset,n=t.docView.domAtPos(t.state.selection.main.anchor);return $H(n.node,n.offset,d,l)&&([f,P,d,l]=[d,l,f,P]),{anchorNode:f,anchorOffset:P,focusNode:d,focusOffset:l}}class Oa{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:o}=e;this.dispatchTransactions=e.dispatchTransactions||o&&(f=>f.forEach(P=>o(P,this)))||(f=>this.update(f)),this.dispatch=this.dispatch.bind(this),this._root=e.root||xTe(e.parent)||document,this.viewState=new npe(e.state||jl.create(e)),e.scrollTo&&e.scrollTo.is(CQ)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(WL).map(f=>new die(f));for(let f of this.plugins)f.update(this);this.observer=new B6e(this),this.inputState=new KTe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Fhe(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let o=e.length==1&&e[0]instanceof Sp?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(o,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let o=!1,f=!1,P,d=this.state;for(let w of e){if(w.startState!=d)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");d=w.state}if(this.destroyed){this.viewState.state=d;return}let l=this.hasFocus,n=0,c=null;e.some(w=>w.annotation(Oye))?(this.inputState.notifiedFocused=l,n=1):l!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=l,c=Sye(d,l),c||(n=1));let b=this.observer.delayedAndroidKey,i=null;if(b?(this.observer.clearDelayedAndroidKey(),i=this.observer.readChange(),(i&&!this.state.doc.eq(d.doc)||!this.state.selection.eq(d.selection))&&(i=null)):this.observer.clear(),d.facet(jl.phrases)!=this.state.facet(jl.phrases))return this.setState(d);P=VH.create(this,d,e),P.flags|=n;let O=this.viewState.scrollTarget;try{this.updateState=2;for(let w of e){if(O&&(O=O.map(w.changes)),w.scrollIntoView){let{main:y}=w.state.selection;O=new KA(y.empty?y:Yo.cursor(y.head,y.head>y.anchor?-1:1))}for(let y of w.effects)y.is(CQ)&&(O=y.value.clip(this.state))}this.viewState.update(P,O),this.bidiCache=UH.update(this.bidiCache,P.changes),P.empty||(this.updatePlugins(P),this.inputState.update(P)),o=this.docView.update(P),this.state.facet(YL)!=this.styleModules&&this.mountStyles(),f=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(o,e.some(w=>w.isUserEvent("select.pointer")))}finally{this.updateState=0}if(P.startState.facet(LQ)!=P.state.facet(LQ)&&(this.viewState.mustMeasureContent=!0),(o||f||O||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!P.empty)for(let w of this.state.facet(Jae))try{w(P)}catch(y){tb(this.state,y,"update listener")}(c||i)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),i&&!Eye(this,i)&&b.force&&GA(this.contentDOM,b.key,b.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let o=this.hasFocus;try{for(let f of this.plugins)f.destroy(this);this.viewState=new npe(e),this.plugins=e.facet(WL).map(f=>new die(f)),this.pluginMap.clear();for(let f of this.plugins)f.update(this);this.docView.destroy(),this.docView=new Fhe(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}o&&this.focus(),this.requestMeasure()}updatePlugins(e){let o=e.startState.facet(WL),f=e.state.facet(WL);if(o!=f){let P=[];for(let d of f){let l=o.indexOf(d);if(l<0)P.push(new die(d));else{let n=this.plugins[l];n.mustUpdate=e,P.push(n)}}for(let d of this.plugins)d.mustUpdate!=e&&d.destroy(this);this.plugins=P,this.pluginMap.clear()}else for(let P of this.plugins)P.mustUpdate=e;for(let P=0;P-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let o=null,f=this.scrollDOM,P=f.scrollTop*this.scaleY,{scrollAnchorPos:d,scrollAnchorHeight:l}=this.viewState;Math.abs(P-this.viewState.scrollTop)>1&&(l=-1),this.viewState.scrollAnchorHeight=-1;try{for(let n=0;;n++){if(l<0)if(Vve(f))d=-1,l=this.viewState.heightMap.height;else{let y=this.viewState.scrollAnchorAt(P);d=y.from,l=y.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(n>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let b=[];c&4||([this.measureRequests,b]=[b,this.measureRequests]);let i=b.map(y=>{try{return y.read(this)}catch(p){return tb(this.state,p),spe}}),O=VH.create(this,this.state,[]),w=!1;O.flags|=c,o?o.flags|=c:o=O,this.updateState=2,O.empty||(this.updatePlugins(O),this.inputState.update(O),this.updateAttrs(),w=this.docView.update(O));for(let y=0;y1||p<-1){P=P+p,f.scrollTop=P/this.scaleY,l=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(o&&!o.empty)for(let n of this.state.facet(Jae))n(o)}get themeClasses(){return sse+" "+(this.state.facet(ase)?Aye:Cye)+" "+this.state.facet(LQ)}updateAttrs(){let e=lpe(this,iye,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),o={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(XZ)?"true":"false",class:"cm-content",style:`${Ua.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(o["aria-readonly"]="true"),lpe(this,ice,o);let f=this.observer.ignore(()=>{let P=Gae(this.contentDOM,this.contentAttrs,o),d=Gae(this.dom,this.editorAttrs,e);return P||d});return this.editorAttrs=e,this.contentAttrs=o,f}showAnnouncements(e){let o=!0;for(let f of e)for(let P of f.effects)if(P.is(Oa.announce)){o&&(this.announceDOM.textContent=""),o=!1;let d=this.announceDOM.appendChild(document.createElement("div"));d.textContent=P.value}}mountStyles(){this.styleModules=this.state.facet(YL);let e=this.state.facet(Oa.cspNonce);oS.mount(this.root,this.styleModules.concat(C6e).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let o=0;of.spec==e)||null),o&&o.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,o,f){return pie(this,e,Qhe(this,e,o,f))}moveByGroup(e,o){return pie(this,e,Qhe(this,e,o,f=>XTe(this,e.head,f)))}moveToLineBoundary(e,o,f=!0){return YTe(this,e,o,f)}moveVertically(e,o,f){return pie(this,e,GTe(this,e,o,f))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,o=0){return this.docView.posFromDOM(e,o)}posAtCoords(e,o=!0){return this.readMeasured(),gye(this,e,o)}coordsAtPos(e,o=1){this.readMeasured();let f=this.docView.coordsAt(e,o);if(!f||f.left==f.right)return f;let P=this.state.doc.lineAt(e),d=this.bidiSpans(P),l=d[Y4.find(d,e-P.from,-1,o)];return WZ(f,l.dir==qd.LTR==o>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(rye)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>F6e)return dye(e.length);let o=this.textDirectionAt(e.from),f;for(let d of this.bidiCache)if(d.from==e.from&&d.dir==o&&(d.fresh||fye(d.isolates,f=zhe(this,e.from,e.to))))return d.order;f||(f=zhe(this,e.from,e.to));let P=DTe(e.text,o,f);return this.bidiCache.push(new UH(e.from,e.to,o,f,!0,P)),P}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Ua.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Nve(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,o={}){return CQ.of(new KA(typeof e=="number"?Yo.cursor(e):e,o.y,o.x,o.yMargin,o.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:o}=this.scrollDOM,f=this.viewState.scrollAnchorAt(e);return CQ.of(new KA(Yo.cursor(f.from),"start","start",f.top-e,o,!0))}static domEventHandlers(e){return Wd.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Wd.define(()=>({}),{eventObservers:e})}static theme(e,o){let f=oS.newName(),P=[LQ.of(f),YL.of(lse(`.${f}`,e))];return o&&o.dark&&P.push(ase.of(!0)),P}static baseTheme(e){return Nv.lowest(YL.of(lse("."+sse,e,Mye)))}static findFromDOM(e){var o;let f=e.querySelector(".cm-content"),P=f&&id.get(f)||id.get(e);return((o=P==null?void 0:P.rootView)===null||o===void 0?void 0:o.view)||null}}Oa.styleModule=YL;Oa.inputHandler=tye;Oa.focusChangeEffect=nye;Oa.perLineTextDirection=rye;Oa.exceptionSink=eye;Oa.updateListener=Jae;Oa.editable=XZ;Oa.mouseSelectionStyle=Jve;Oa.dragMovesSelection=Kve;Oa.clickAddsSelectionRange=Gve;Oa.decorations=RI;Oa.atomicRanges=ace;Oa.bidiIsolatedRanges=aye;Oa.scrollMargins=sye;Oa.darkTheme=ase;Oa.cspNonce=Ba.define({combine:t=>t.length?t[0]:""});Oa.contentAttributes=ice;Oa.editorAttributes=iye;Oa.lineWrapping=Oa.contentAttributes.of({class:"cm-lineWrapping"});Oa.announce=cl.define();const F6e=4096,spe={};class UH{constructor(e,o,f,P,d,l){this.from=e,this.to=o,this.dir=f,this.isolates=P,this.fresh=d,this.order=l}static update(e,o){if(o.empty&&!e.some(d=>d.fresh))return e;let f=[],P=e.length?e[e.length-1].dir:qd.LTR;for(let d=Math.max(0,e.length-10);d=0;P--){let d=f[P],l=typeof d=="function"?d(t):d;l&&Xae(l,o)}return o}const N6e=Ua.mac?"mac":Ua.windows?"win":Ua.linux?"linux":"key";function $6e(t,e){const o=t.split(/-(?!$)/);let f=o[o.length-1];f=="Space"&&(f=" ");let P,d,l,n;for(let c=0;cf.concat(P),[]))),o}function U6e(t,e,o){return Rye(Pye(t.state),e,t,o)}let H4=null;const j6e=4e3;function Q6e(t,e=N6e){let o=Object.create(null),f=Object.create(null),P=(l,n)=>{let c=f[l];if(c==null)f[l]=n;else if(c!=n)throw new Error("Key binding "+l+" is used both as a regular binding and as a multi-stroke prefix")},d=(l,n,c,b,i)=>{var O,w;let y=o[l]||(o[l]=Object.create(null)),p=n.split(/ (?!$)/).map(h=>$6e(h,e));for(let h=1;h{let _=H4={view:v,prefix:m,scope:l};return setTimeout(()=>{H4==_&&(H4=null)},j6e),!0}]})}let a=p.join(" ");P(a,!1);let u=y[a]||(y[a]={preventDefault:!1,stopPropagation:!1,run:((w=(O=y._any)===null||O===void 0?void 0:O.run)===null||w===void 0?void 0:w.slice())||[]});c&&u.run.push(c),b&&(u.preventDefault=!0),i&&(u.stopPropagation=!0)};for(let l of t){let n=l.scope?l.scope.split(" "):["editor"];if(l.any)for(let b of n){let i=o[b]||(o[b]=Object.create(null));i._any||(i._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let O in i)i[O].run.push(l.any)}let c=l[e]||l.key;if(c)for(let b of n)d(b,c,l.run,l.preventDefault,l.stopPropagation),l.shift&&d(b,"Shift-"+c,l.shift,l.preventDefault,l.stopPropagation)}return o}function Rye(t,e,o,f){let P=pTe(e),d=Jm(P,0),l=Wy(d)==P.length&&P!=" ",n="",c=!1,b=!1,i=!1;H4&&H4.view==o&&H4.scope==f&&(n=H4.prefix+" ",yye.indexOf(e.keyCode)<0&&(b=!0,H4=null));let O=new Set,w=u=>{if(u){for(let h of u.run)if(!O.has(h)&&(O.add(h),h(o,e)))return u.stopPropagation&&(i=!0),!0;u.preventDefault&&(u.stopPropagation&&(i=!0),b=!0)}return!1},y=t[f],p,a;return y&&(w(y[n+IQ(P,e,!l)])?c=!0:l&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Ua.windows&&e.ctrlKey&&e.altKey)&&(p=iS[e.keyCode])&&p!=P?(w(y[n+IQ(p,e,!0)])||e.shiftKey&&(a=EI[e.keyCode])!=P&&a!=p&&w(y[n+IQ(a,e,!1)]))&&(c=!0):l&&e.shiftKey&&w(y[n+IQ(P,e,!0)])&&(c=!0),!c&&w(y._any)&&(c=!0)),b&&(c=!0),c&&i&&e.stopPropagation(),c}class gD{constructor(e,o,f,P,d){this.className=e,this.left=o,this.top=f,this.width=P,this.height=d}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,o){return o.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,o,f){if(f.empty){let P=e.coordsAtPos(f.head,f.assoc||1);if(!P)return[];let d=Lye(e);return[new gD(o,P.left-d.left,P.top-d.top,null,P.bottom-P.top)]}else return H6e(e,o,f)}}function Lye(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==qd.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function upe(t,e,o){let f=Yo.cursor(e);return{from:Math.max(o.from,t.moveToLineBoundary(f,!1,!0).from),to:Math.min(o.to,t.moveToLineBoundary(f,!0,!0).from),type:T0.Text}}function H6e(t,e,o){if(o.to<=t.viewport.from||o.from>=t.viewport.to)return[];let f=Math.max(o.from,t.viewport.from),P=Math.min(o.to,t.viewport.to),d=t.textDirection==qd.LTR,l=t.contentDOM,n=l.getBoundingClientRect(),c=Lye(t),b=l.querySelector(".cm-line"),i=b&&window.getComputedStyle(b),O=n.left+(i?parseInt(i.paddingLeft)+Math.min(0,parseInt(i.textIndent)):0),w=n.right-(i?parseInt(i.paddingRight):0),y=ose(t,f),p=ose(t,P),a=y.type==T0.Text?y:null,u=p.type==T0.Text?p:null;if(a&&(t.lineWrapping||y.widgetLineBreaks)&&(a=upe(t,f,a)),u&&(t.lineWrapping||p.widgetLineBreaks)&&(u=upe(t,P,u)),a&&u&&a.from==u.from)return m(v(o.from,o.to,a));{let S=a?v(o.from,null,a):_(y,!1),A=u?v(null,o.to,u):_(p,!0),x=[];return(a||y).to<(u||p).from-(a&&u?1:0)||y.widgetLineBreaks>1&&S.bottom+t.defaultLineHeight/2C&&D.from=I)break;j>k&&E(Math.max(Q,k),S==null&&Q<=C,Math.min(j,I),A==null&&j>=L,$.dir)}if(k=z.to+1,k>=I)break}return T.length==0&&E(C,S==null,L,A==null,t.textDirection),{top:R,bottom:M,horizontal:T}}function _(S,A){let x=n.top+(A?S.top:S.bottom);return{top:x,bottom:x,horizontal:[]}}}function Z6e(t,e){return t.constructor==e.constructor&&t.eq(e)}class q6e{constructor(e,o){this.view=e,this.layer=o,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),o.above&&this.dom.classList.add("cm-layer-above"),o.class&&this.dom.classList.add(o.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),o.mount&&o.mount(this.dom,e)}update(e){e.startState.facet(gH)!=e.state.facet(gH)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let o=0,f=e.facet(gH);for(;o!Z6e(o,this.drawn[f]))){let o=this.dom.firstChild,f=0;for(let P of e)P.update&&o&&P.constructor&&this.drawn[f].constructor&&P.update(o,this.drawn[f])?(o=o.nextSibling,f++):this.dom.insertBefore(P.draw(),o);for(;o;){let P=o.nextSibling;o.remove(),o=P}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const gH=Ba.define();function Iye(t){return[Wd.define(e=>new q6e(e,t)),gH.of(t)]}const Dye=!Ua.ios,II=Ba.define({combine(t){return b_(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,o)=>Math.min(e,o),drawRangeCursor:(e,o)=>e||o})}});function W6e(t={}){return[II.of(t),Y6e,X6e,G6e,oye.of(!0)]}function Bye(t){return t.startState.facet(II)!=t.state.facet(II)}const Y6e=Iye({above:!0,markers(t){let{state:e}=t,o=e.facet(II),f=[];for(let P of e.selection.ranges){let d=P==e.selection.main;if(P.empty?!d||Dye:o.drawRangeCursor){let l=d?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=P.empty?P:Yo.cursor(P.head,P.head>P.anchor?-1:1);for(let c of gD.forRange(t,l,n))f.push(c)}}return f},update(t,e){t.transactions.some(f=>f.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let o=Bye(t);return o&&fpe(t.state,e),t.docChanged||t.selectionSet||o},mount(t,e){fpe(e.state,t)},class:"cm-cursorLayer"});function fpe(t,e){e.style.animationDuration=t.facet(II).cursorBlinkRate+"ms"}const X6e=Iye({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:gD.forRange(t,"cm-selectionBackground",e)).reduce((e,o)=>e.concat(o))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Bye(t)},class:"cm-selectionLayer"}),cse={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Dye&&(cse[".cm-line"].caretColor="transparent !important",cse[".cm-content"]={caretColor:"transparent !important"});const G6e=Nv.highest(Oa.theme(cse)),zye=cl.define({map(t,e){return t==null?null:e.mapPos(t)}}),KL=Ap.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((o,f)=>f.is(zye)?f.value:o,t)}}),K6e=Wd.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let o=t.state.field(KL);o==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(KL)!=o||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(KL),o=e!=null&&t.coordsAtPos(e);if(!o)return null;let f=t.scrollDOM.getBoundingClientRect();return{left:o.left-f.left+t.scrollDOM.scrollLeft*t.scaleX,top:o.top-f.top+t.scrollDOM.scrollTop*t.scaleY,height:o.bottom-o.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:o}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/o+"px",this.cursor.style.height=t.height/o+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(KL)!=t&&this.view.dispatch({effects:zye.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function J6e(){return[KL,K6e]}function dpe(t,e,o,f,P){e.lastIndex=0;for(let d=t.iterRange(o,f),l=o,n;!d.next().done;l+=d.value.length)if(!d.lineBreak)for(;n=e.exec(d.value);)P(l+n.index,n)}function eCe(t,e){let o=t.visibleRanges;if(o.length==1&&o[0].from==t.viewport.from&&o[0].to==t.viewport.to)return o;let f=[];for(let{from:P,to:d}of o)P=Math.max(t.state.doc.lineAt(P).from,P-e),d=Math.min(t.state.doc.lineAt(d).to,d+e),f.length&&f[f.length-1].to>=P?f[f.length-1].to=d:f.push({from:P,to:d});return f}class tCe{constructor(e){const{regexp:o,decoration:f,decorate:P,boundary:d,maxLength:l=1e3}=e;if(!o.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=o,P)this.addMatch=(n,c,b,i)=>P(i,b,b+n[0].length,n,c);else if(typeof f=="function")this.addMatch=(n,c,b,i)=>{let O=f(n,c,b);O&&i(b,b+n[0].length,O)};else if(f)this.addMatch=(n,c,b,i)=>i(b,b+n[0].length,f);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=d,this.maxLength=l}createDeco(e){let o=new rS,f=o.add.bind(o);for(let{from:P,to:d}of eCe(e,this.maxLength))dpe(e.state.doc,this.regexp,P,d,(l,n)=>this.addMatch(n,e,l,f));return o.finish()}updateDeco(e,o){let f=1e9,P=-1;return e.docChanged&&e.changes.iterChanges((d,l,n,c)=>{c>e.view.viewport.from&&n1e3?this.createDeco(e.view):P>-1?this.updateRange(e.view,o.map(e.changes),f,P):o}updateRange(e,o,f,P){for(let d of e.visibleRanges){let l=Math.max(d.from,f),n=Math.min(d.to,P);if(n>l){let c=e.state.doc.lineAt(l),b=c.toc.from;l--)if(this.boundary.test(c.text[l-1-c.from])){i=l;break}for(;nw.push(h.range(a,u));if(c==b)for(this.regexp.lastIndex=i-c.from;(y=this.regexp.exec(c.text))&&y.indexthis.addMatch(u,e,a,p));o=o.update({filterFrom:i,filterTo:O,filter:(a,u)=>aO,add:w})}}return o}}const use=/x/.unicode!=null?"gu":"g",nCe=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,use),rCe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let vie=null;function oCe(){var t;if(vie==null&&typeof document<"u"&&document.body){let e=document.body.style;vie=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return vie||!1}const vH=Ba.define({combine(t){let e=b_(t,{render:null,specialChars:nCe,addSpecialChars:null});return(e.replaceTabs=!oCe())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,use)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,use)),e}});function iCe(t={}){return[vH.of(t),aCe()]}let hpe=null;function aCe(){return hpe||(hpe=Wd.fromClass(class{constructor(t){this.view=t,this.decorations=es.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(vH)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new tCe({regexp:t.specialChars,decoration:(e,o,f)=>{let{doc:P}=o.state,d=Jm(e[0],0);if(d==9){let l=P.lineAt(f),n=o.state.tabSize,c=bx(l.text,n,f-l.from);return es.replace({widget:new uCe((n-c%n)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[d]||(this.decorationCache[d]=es.replace({widget:new cCe(t,d)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(vH);t.startState.facet(vH)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const sCe="•";function lCe(t){return t>=32?sCe:t==10?"␤":String.fromCharCode(9216+t)}class cCe extends wx{constructor(e,o){super(),this.options=e,this.code=o}eq(e){return e.code==this.code}toDOM(e){let o=lCe(this.code),f=e.state.phrase("Control character")+" "+(rCe[this.code]||"0x"+this.code.toString(16)),P=this.options.render&&this.options.render(this.code,f,o);if(P)return P;let d=document.createElement("span");return d.textContent=o,d.title=f,d.setAttribute("aria-label",f),d.className="cm-specialChar",d}ignoreEvent(){return!1}}class uCe extends wx{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function fCe(){return hCe}const dCe=es.line({class:"cm-activeLine"}),hCe=Wd.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,o=[];for(let f of t.state.selection.ranges){let P=t.lineBlockAt(f.head);P.from>e&&(o.push(dCe.range(P.from)),e=P.from)}return es.set(o)}},{decorations:t=>t.decorations});class pCe extends wx{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let o=e.firstChild?cM(e.firstChild):[];if(!o.length)return null;let f=window.getComputedStyle(e.parentNode),P=WZ(o[0],f.direction!="rtl"),d=parseInt(f.lineHeight);return P.bottom-P.top>d*1.5?{left:P.left,right:P.right,top:P.top,bottom:P.top+d}:P}ignoreEvent(){return!1}}function mCe(t){return Wd.fromClass(class{constructor(e){this.view=e,this.placeholder=t?es.set([es.widget({widget:new pCe(t),side:1}).range(0)]):es.none}get decorations(){return this.view.state.doc.length?es.none:this.placeholder}},{decorations:e=>e.decorations})}const fse=2e3;function gCe(t,e,o){let f=Math.min(e.line,o.line),P=Math.max(e.line,o.line),d=[];if(e.off>fse||o.off>fse||e.col<0||o.col<0){let l=Math.min(e.off,o.off),n=Math.max(e.off,o.off);for(let c=f;c<=P;c++){let b=t.doc.line(c);b.length<=n&&d.push(Yo.range(b.from+l,b.to+n))}}else{let l=Math.min(e.col,o.col),n=Math.max(e.col,o.col);for(let c=f;c<=P;c++){let b=t.doc.line(c),i=jae(b.text,l,t.tabSize,!0);if(i<0)d.push(Yo.cursor(b.to));else{let O=jae(b.text,n,t.tabSize);d.push(Yo.range(b.from+i,b.from+O))}}}return d}function vCe(t,e){let o=t.coordsAtPos(t.viewport.from);return o?Math.round(Math.abs((o.left-e)/t.defaultCharacterWidth)):-1}function ppe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),f=t.state.doc.lineAt(o),P=o-f.from,d=P>fse?-1:P==f.length?vCe(t,e.clientX):bx(f.text,t.state.tabSize,o-f.from);return{line:f.number,col:d,off:P}}function yCe(t,e){let o=ppe(t,e),f=t.state.selection;return o?{update(P){if(P.docChanged){let d=P.changes.mapPos(P.startState.doc.line(o.line).from),l=P.state.doc.lineAt(d);o={line:l.number,col:o.col,off:Math.min(o.off,l.length)},f=f.map(P.changes)}},get(P,d,l){let n=ppe(t,P);if(!n)return f;let c=gCe(t.state,o,n);return c.length?l?Yo.create(c.concat(f.ranges)):Yo.create(c):f}}:null}function bCe(t){let e=(t==null?void 0:t.eventFilter)||(o=>o.altKey&&o.button==0);return Oa.mouseSelectionStyle.of((o,f)=>e(f)?yCe(o,f):null)}const xCe={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},_Ce={style:"cursor: crosshair"};function wCe(t={}){let[e,o]=xCe[t.key||"Alt"],f=Wd.fromClass(class{constructor(P){this.view=P,this.isDown=!1}set(P){this.isDown!=P&&(this.isDown=P,this.view.update([]))}},{eventObservers:{keydown(P){this.set(P.keyCode==e||o(P))},keyup(P){(P.keyCode==e||!o(P))&&this.set(!1)},mousemove(P){this.set(o(P))}}});return[f,Oa.contentAttributes.of(P=>{var d;return!((d=P.plugin(f))===null||d===void 0)&&d.isDown?_Ce:null})]}const DL="-10000px";class Fye{constructor(e,o,f){this.facet=o,this.createTooltipView=f,this.input=e.state.facet(o),this.tooltips=this.input.filter(P=>P),this.tooltipViews=this.tooltips.map(f)}update(e,o){var f;let P=e.state.facet(this.facet),d=P.filter(c=>c);if(P===this.input){for(let c of this.tooltipViews)c.update&&c.update(e);return!1}let l=[],n=o?[]:null;for(let c=0;co[b]=c),o.length=n.length),this.input=P,this.tooltips=d,this.tooltipViews=l,!0}}function OCe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const yie=Ba.define({combine:t=>{var e,o,f;return{position:Ua.ios?"absolute":((e=t.find(P=>P.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((o=t.find(P=>P.parent))===null||o===void 0?void 0:o.parent)||null,tooltipSpace:((f=t.find(P=>P.tooltipSpace))===null||f===void 0?void 0:f.tooltipSpace)||OCe}}}),mpe=new WeakMap,lce=Wd.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(yie);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Fye(t,cce,o=>this.createTooltip(o)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(o=>{Date.now()>this.lastTransaction-50&&o.length>0&&o[o.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let o=e||t.geometryChanged,f=t.state.facet(yie);if(f.position!=this.position&&!this.madeAbsolute){this.position=f.position;for(let P of this.manager.tooltipViews)P.dom.style.position=this.position;o=!0}if(f.parent!=this.parent){this.parent&&this.container.remove(),this.parent=f.parent,this.createContainer();for(let P of this.manager.tooltipViews)this.container.appendChild(P.dom);o=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);o&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let o=document.createElement("div");o.className="cm-tooltip-arrow",e.dom.appendChild(o)}return e.dom.style.position=this.position,e.dom.style.top=DL,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let o of this.manager.tooltipViews)o.dom.remove(),(t=o.destroy)===null||t===void 0||t.call(o);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,o=1,f=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:P}=this.manager.tooltipViews[0];if(Ua.gecko)f=P.offsetParent!=this.container.ownerDocument.body;else if(this.view.scaleX!=1||this.view.scaleY!=1)f=!0;else if(P.style.top==DL&&P.style.left=="0px"){let d=P.getBoundingClientRect();f=Math.abs(d.top+1e4)>1||Math.abs(d.left)>1}}if(f||this.position=="absolute")if(this.parent){let P=this.parent.getBoundingClientRect();P.width&&P.height&&(e=P.width/this.parent.offsetWidth,o=P.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:o}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((P,d)=>{let l=this.manager.tooltipViews[d];return l.getCoords?l.getCoords(P.pos):this.view.coordsAtPos(P.pos)}),size:this.manager.tooltipViews.map(({dom:P})=>P.getBoundingClientRect()),space:this.view.state.facet(yie).tooltipSpace(this.view),scaleX:e,scaleY:o,makeAbsolute:f}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let n of this.manager.tooltipViews)n.dom.style.position="absolute"}let{editor:o,space:f,scaleX:P,scaleY:d}=t,l=[];for(let n=0;n=Math.min(o.bottom,f.bottom)||O.rightMath.min(o.right,f.right)+.1){i.style.top=DL;continue}let y=c.arrow?b.dom.querySelector(".cm-tooltip-arrow"):null,p=y?7:0,a=w.right-w.left,u=(e=mpe.get(b))!==null&&e!==void 0?e:w.bottom-w.top,h=b.offset||kCe,m=this.view.textDirection==qd.LTR,v=w.width>f.right-f.left?m?f.left:f.right-w.width:m?Math.min(O.left-(y?14:0)+h.x,f.right-a):Math.max(f.left,O.left-a+(y?14:0)-h.x),_=this.above[n];!c.strictSide&&(_?O.top-(w.bottom-w.top)-h.yf.bottom)&&_==f.bottom-O.bottom>O.top-f.top&&(_=this.above[n]=!_);let S=(_?O.top-f.top:f.bottom-O.bottom)-p;if(Sv&&R.topA&&(A=_?R.top-u-2-p:R.bottom+p+2);if(this.position=="absolute"?(i.style.top=(A-t.parent.top)/d+"px",i.style.left=(v-t.parent.left)/P+"px"):(i.style.top=A/d+"px",i.style.left=v/P+"px"),y){let R=O.left+(m?h.x:-h.x)-(v+14-7);y.style.left=R/P+"px"}b.overlap!==!0&&l.push({left:v,top:A,right:x,bottom:A+u}),i.classList.toggle("cm-tooltip-above",_),i.classList.toggle("cm-tooltip-below",!_),b.positioned&&b.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=DL}},{eventObservers:{scroll(){this.maybeMeasure()}}}),SCe=Oa.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),kCe={x:0,y:0},cce=Ba.define({enables:[lce,SCe]}),jH=Ba.define();class GZ{static create(e){return new GZ(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Fye(e,jH,o=>this.createHostedView(o))}createHostedView(e){let o=e.create(this.view);return o.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(o.dom),this.mounted&&o.mount&&o.mount(this.view),o}mount(e){for(let o of this.manager.tooltipViews)o.mount&&o.mount(e);this.mounted=!0}positioned(e){for(let o of this.manager.tooltipViews)o.positioned&&o.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let o of this.manager.tooltipViews)(e=o.destroy)===null||e===void 0||e.call(o)}passProp(e){let o;for(let f of this.manager.tooltipViews){let P=f[e];if(P!==void 0){if(o===void 0)o=P;else if(o!==P)return}}return o}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const TCe=cce.compute([jH],t=>{let e=t.facet(jH).filter(o=>o);return e.length===0?null:{pos:Math.min(...e.map(o=>o.pos)),end:Math.max(...e.map(o=>{var f;return(f=o.end)!==null&&f!==void 0?f:o.pos})),create:GZ.create,above:e[0].above,arrow:e.some(o=>o.arrow)}});class CCe{constructor(e,o,f,P,d){this.view=e,this.source=o,this.field=f,this.setHover=P,this.hoverTime=d,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||o.xn.right+e.defaultCharacterWidth)return;let c=e.bidiSpans(e.state.doc.lineAt(P)).find(i=>i.from<=P&&i.to>=P),b=c&&c.dir==qd.RTL?-1:1;d=o.x{this.pending==n&&(this.pending=null,c&&e.dispatch({effects:this.setHover.of(c)}))},c=>tb(e.state,c,"hover tooltip"))}else l&&e.dispatch({effects:this.setHover.of(l)})}get tooltip(){let e=this.view.plugin(lce),o=e?e.manager.tooltips.findIndex(f=>f.create==GZ.create):-1;return o>-1?e.manager.tooltipViews[o]:null}mousemove(e){var o;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:f,tooltip:P}=this;if(f&&P&&!ACe(P.dom,e)||this.pending){let{pos:d}=f||this.pending,l=(o=f==null?void 0:f.end)!==null&&o!==void 0?o:d;(d==l?this.view.posAtCoords(this.lastMove)!=d:!MCe(this.view,d,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:o}=this;if(o){let{tooltip:f}=this;f&&f.dom.contains(e.relatedTarget)?this.watchTooltipLeave(f.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let o=f=>{e.removeEventListener("mouseleave",o),this.active&&!this.view.dom.contains(f.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",o)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const DQ=4;function ACe(t,e){let o=t.getBoundingClientRect();return e.clientX>=o.left-DQ&&e.clientX<=o.right+DQ&&e.clientY>=o.top-DQ&&e.clientY<=o.bottom+DQ}function MCe(t,e,o,f,P,d){let l=t.scrollDOM.getBoundingClientRect(),n=t.documentTop+t.documentPadding.top+t.contentHeight;if(l.left>f||l.rightP||Math.min(l.bottom,n)=e&&c<=o}function ECe(t,e={}){let o=cl.define(),f=Ap.define({create(){return null},update(P,d){if(P&&(e.hideOnChange&&(d.docChanged||d.selection)||e.hideOn&&e.hideOn(d,P)))return null;if(P&&d.docChanged){let l=d.changes.mapPos(P.pos,-1,tg.TrackDel);if(l==null)return null;let n=Object.assign(Object.create(null),P);n.pos=l,P.end!=null&&(n.end=d.changes.mapPos(P.end)),P=n}for(let l of d.effects)l.is(o)&&(P=l.value),l.is(PCe)&&(P=null);return P},provide:P=>jH.from(P)});return[f,Wd.define(P=>new CCe(P,t,f,o,e.hoverTime||300)),TCe]}function Nye(t,e){let o=t.plugin(lce);if(!o)return null;let f=o.manager.tooltips.indexOf(e);return f<0?null:o.manager.tooltipViews[f]}const PCe=cl.define(),gpe=Ba.define({combine(t){let e,o;for(let f of t)e=e||f.topContainer,o=o||f.bottomContainer;return{topContainer:e,bottomContainer:o}}});function DI(t,e){let o=t.plugin($ye),f=o?o.specs.indexOf(e):-1;return f>-1?o.panels[f]:null}const $ye=Wd.fromClass(class{constructor(t){this.input=t.state.facet(BI),this.specs=this.input.filter(o=>o),this.panels=this.specs.map(o=>o(t));let e=t.state.facet(gpe);this.top=new BQ(t,!0,e.topContainer),this.bottom=new BQ(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(o=>o.top)),this.bottom.sync(this.panels.filter(o=>!o.top));for(let o of this.panels)o.dom.classList.add("cm-panel"),o.mount&&o.mount()}update(t){let e=t.state.facet(gpe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new BQ(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new BQ(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let o=t.state.facet(BI);if(o!=this.input){let f=o.filter(c=>c),P=[],d=[],l=[],n=[];for(let c of f){let b=this.specs.indexOf(c),i;b<0?(i=c(t.view),n.push(i)):(i=this.panels[b],i.update&&i.update(t)),P.push(i),(i.top?d:l).push(i)}this.specs=f,this.panels=P,this.top.sync(d),this.bottom.sync(l);for(let c of n)c.dom.classList.add("cm-panel"),c.mount&&c.mount()}else for(let f of this.panels)f.update&&f.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Oa.scrollMargins.of(e=>{let o=e.plugin(t);return o&&{top:o.top.scrollMargin(),bottom:o.bottom.scrollMargin()}})});class BQ{constructor(e,o,f){this.view=e,this.top=o,this.container=f,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let o of this.panels)o.destroy&&e.indexOf(o)<0&&o.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let o=this.container||this.view.dom;o.insertBefore(this.dom,this.top?o.firstChild:null)}let e=this.dom.firstChild;for(let o of this.panels)if(o.dom.parentNode==this.dom){for(;e!=o.dom;)e=vpe(e);e=e.nextSibling}else this.dom.insertBefore(o.dom,e);for(;e;)e=vpe(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function vpe(t){let e=t.nextSibling;return t.remove(),e}const BI=Ba.define({enables:$ye});class EO extends pT{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}EO.prototype.elementClass="";EO.prototype.toDOM=void 0;EO.prototype.mapMode=tg.TrackBefore;EO.prototype.startSide=EO.prototype.endSide=-1;EO.prototype.point=!0;const yH=Ba.define(),RCe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Vu.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},uI=Ba.define();function LCe(t){return[Vye(),uI.of(Object.assign(Object.assign({},RCe),t))]}const dse=Ba.define({combine:t=>t.some(e=>e)});function Vye(t){let e=[ICe];return t&&t.fixed===!1&&e.push(dse.of(!0)),e}const ICe=Wd.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(uI).map(e=>new bpe(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(dse),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,o=t.view.viewport,f=Math.min(e.to,o.to)-Math.max(e.from,o.from);this.syncGutters(f<(o.to-o.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(dse)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let o=Vu.iter(this.view.state.facet(yH),this.view.viewport.from),f=[],P=this.gutters.map(d=>new DCe(d,this.view.viewport,-this.view.documentPadding.top));for(let d of this.view.viewportLineBlocks)if(f.length&&(f=[]),Array.isArray(d.type)){let l=!0;for(let n of d.type)if(n.type==T0.Text&&l){hse(o,f,n.from);for(let c of P)c.line(this.view,n,f);l=!1}else if(n.widget)for(let c of P)c.widget(this.view,n)}else if(d.type==T0.Text){hse(o,f,d.from);for(let l of P)l.line(this.view,d,f)}else if(d.widget)for(let l of P)l.widget(this.view,d);for(let d of P)d.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(uI),o=t.state.facet(uI),f=t.docChanged||t.heightChanged||t.viewportChanged||!Vu.eq(t.startState.facet(yH),t.state.facet(yH),t.view.viewport.from,t.view.viewport.to);if(e==o)for(let P of this.gutters)P.update(t)&&(f=!0);else{f=!0;let P=[];for(let d of o){let l=e.indexOf(d);l<0?P.push(new bpe(this.view,d)):(this.gutters[l].update(t),P.push(this.gutters[l]))}for(let d of this.gutters)d.dom.remove(),P.indexOf(d)<0&&d.destroy();for(let d of P)this.dom.appendChild(d.dom);this.gutters=P}return f}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Oa.scrollMargins.of(e=>{let o=e.plugin(t);return!o||o.gutters.length==0||!o.fixed?null:e.textDirection==qd.LTR?{left:o.dom.offsetWidth*e.scaleX}:{right:o.dom.offsetWidth*e.scaleX}})});function ype(t){return Array.isArray(t)?t:[t]}function hse(t,e,o){for(;t.value&&t.from<=o;)t.from==o&&e.push(t.value),t.next()}class DCe{constructor(e,o,f){this.gutter=e,this.height=f,this.i=0,this.cursor=Vu.iter(e.markers,o.from)}addElement(e,o,f){let{gutter:P}=this,d=(o.top-this.height)/e.scaleY,l=o.height/e.scaleY;if(this.i==P.elements.length){let n=new Uye(e,l,d,f);P.elements.push(n),P.dom.appendChild(n.dom)}else P.elements[this.i].update(e,l,d,f);this.height=o.bottom,this.i++}line(e,o,f){let P=[];hse(this.cursor,P,o.from),f.length&&(P=P.concat(f));let d=this.gutter.config.lineMarker(e,o,P);d&&P.unshift(d);let l=this.gutter;P.length==0&&!l.config.renderEmptyElements||this.addElement(e,o,P)}widget(e,o){let f=this.gutter.config.widgetMarker(e,o.widget,o);f&&this.addElement(e,o,[f])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let o=e.elements.pop();e.dom.removeChild(o.dom),o.destroy()}}}class bpe{constructor(e,o){this.view=e,this.config=o,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let f in o.domEventHandlers)this.dom.addEventListener(f,P=>{let d=P.target,l;if(d!=this.dom&&this.dom.contains(d)){for(;d.parentNode!=this.dom;)d=d.parentNode;let c=d.getBoundingClientRect();l=(c.top+c.bottom)/2}else l=P.clientY;let n=e.lineBlockAtHeight(l-e.documentTop);o.domEventHandlers[f](e,n,P)&&P.preventDefault()});this.markers=ype(o.markers(e)),o.initialSpacer&&(this.spacer=new Uye(e,0,0,[o.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let o=this.markers;if(this.markers=ype(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let P=this.config.updateSpacer(this.spacer.markers[0],e);P!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[P])}let f=e.view.viewport;return!Vu.eq(this.markers,o,f.from,f.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class Uye{constructor(e,o,f,P){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,o,f,P)}update(e,o,f,P){this.height!=o&&(this.height=o,this.dom.style.height=o+"px"),this.above!=f&&(this.dom.style.marginTop=(this.above=f)?f+"px":""),BCe(this.markers,P)||this.setMarkers(e,P)}setMarkers(e,o){let f="cm-gutterElement",P=this.dom.firstChild;for(let d=0,l=0;;){let n=l,c=dd(n,c,b)||l(n,c,b):l}return f}})}});class bie extends EO{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function xie(t,e){return t.state.facet(VA).formatNumber(e,t.state)}const FCe=uI.compute([VA],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(zCe)},lineMarker(e,o,f){return f.some(P=>P.toDOM)?null:new bie(xie(e,e.state.doc.lineAt(o.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(VA)!=e.state.facet(VA),initialSpacer(e){return new bie(xie(e,xpe(e.state.doc.lines)))},updateSpacer(e,o){let f=xie(o.view,xpe(o.view.state.doc.lines));return f==e.number?e:new bie(f)},domEventHandlers:t.facet(VA).domEventHandlers}));function NCe(t={}){return[VA.of(t),Vye(),FCe]}function xpe(t){let e=9;for(;e{let e=[],o=-1;for(let f of t.selection.ranges){let P=t.doc.lineAt(f.head).from;P>o&&(o=P,e.push($Ce.range(P)))}return Vu.of(e)});function UCe(){return VCe}const jye=1024;let jCe=0,Xy=class{constructor(e,o){this.from=e,this.to=o}};class ul{constructor(e={}){this.id=jCe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Cp.match(e)),o=>{let f=e(o);return f===void 0?null:[this,f]}}}ul.closedBy=new ul({deserialize:t=>t.split(" ")});ul.openedBy=new ul({deserialize:t=>t.split(" ")});ul.group=new ul({deserialize:t=>t.split(" ")});ul.contextHash=new ul({perNode:!0});ul.lookAhead=new ul({perNode:!0});ul.mounted=new ul({perNode:!0});class zI{constructor(e,o,f){this.tree=e,this.overlay=o,this.parser=f}static get(e){return e&&e.props&&e.props[ul.mounted.id]}}const QCe=Object.create(null);class Cp{constructor(e,o,f,P=0){this.name=e,this.props=o,this.id=f,this.flags=P}static define(e){let o=e.props&&e.props.length?Object.create(null):QCe,f=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),P=new Cp(e.name||"",o,e.id,f);if(e.props){for(let d of e.props)if(Array.isArray(d)||(d=d(P)),d){if(d[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");o[d[0].id]=d[1]}}return P}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let o=this.prop(ul.group);return o?o.indexOf(e)>-1:!1}return this.id==e}static match(e){let o=Object.create(null);for(let f in e)for(let P of f.split(" "))o[P]=e[f];return f=>{for(let P=f.prop(ul.group),d=-1;d<(P?P.length:0);d++){let l=o[d<0?f.name:P[d]];if(l)return l}}}}Cp.none=new Cp("",Object.create(null),0,8);class vD{constructor(e){this.types=e;for(let o=0;o0;for(let c=this.cursor(l|mf.IncludeAnonymous);;){let b=!1;if(c.from<=d&&c.to>=P&&(!n&&c.type.isAnonymous||o(c)!==!1)){if(c.firstChild())continue;b=!0}for(;b&&f&&(n||!c.type.isAnonymous)&&f(c),!c.nextSibling();){if(!c.parent())return;b=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let o in this.props)e.push([+o,this.props[o]]);return e}balance(e={}){return this.children.length<=8?this:dce(Cp.none,this.children,this.positions,0,this.children.length,0,this.length,(o,f,P)=>new Su(this.type,o,f,P,this.propValues),e.makeTree||((o,f,P)=>new Su(Cp.none,o,f,P)))}static build(e){return WCe(e)}}Su.empty=new Su(Cp.none,[],[],0);class uce{constructor(e,o){this.buffer=e,this.index=o}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new uce(this.buffer,this.index)}}class sS{constructor(e,o,f){this.buffer=e,this.length=o,this.set=f}get type(){return Cp.none}toString(){let e=[];for(let o=0;o0));c=l[c+3]);return n}slice(e,o,f){let P=this.buffer,d=new Uint16Array(o-e),l=0;for(let n=e,c=0;n=e&&oe;case 1:return o<=e&&f>e;case 2:return f>e;case 4:return!0}}function FI(t,e,o,f){for(var P;t.from==t.to||(o<1?t.from>=e:t.from>e)||(o>-1?t.to<=e:t.to0?n.length:-1;e!=b;e+=o){let i=n[e],O=c[e]+l.from;if(Qye(P,f,O,O+i.length)){if(i instanceof sS){if(d&mf.ExcludeBuffers)continue;let w=i.findChild(0,i.buffer.length,o,f-O,P);if(w>-1)return new i_(new HCe(l,i,e,O),null,w)}else if(d&mf.IncludeAnonymous||!i.type.isAnonymous||fce(i)){let w;if(!(d&mf.IgnoreMounts)&&(w=zI.get(i))&&!w.overlay)return new jg(w.tree,O,e,l);let y=new jg(i,O,e,l);return d&mf.IncludeAnonymous||!y.type.isAnonymous?y:y.nextChild(o<0?i.children.length-1:0,o,f,P)}}}if(d&mf.IncludeAnonymous||!l.type.isAnonymous||(l.index>=0?e=l.index+o:e=o<0?-1:l._parent._tree.children.length,l=l._parent,!l))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,o,f=0){let P;if(!(f&mf.IgnoreOverlays)&&(P=zI.get(this._tree))&&P.overlay){let d=e-this.from;for(let{from:l,to:n}of P.overlay)if((o>0?l<=d:l=d:n>d))return new jg(P.tree,P.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,o,f)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function wpe(t,e,o,f){let P=t.cursor(),d=[];if(!P.firstChild())return d;if(o!=null){for(;!P.type.is(o);)if(!P.nextSibling())return d}for(;;){if(f!=null&&P.type.is(f))return d;if(P.type.is(e)&&d.push(P.node),!P.nextSibling())return f==null?d:[]}}function pse(t,e,o=e.length-1){for(let f=t.parent;o>=0;f=f.parent){if(!f)return!1;if(!f.type.isAnonymous){if(e[o]&&e[o]!=f.name)return!1;o--}}return!0}class HCe{constructor(e,o,f,P){this.parent=e,this.buffer=o,this.index=f,this.start=P}}class i_ extends Hye{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,o,f){super(),this.context=e,this._parent=o,this.index=f,this.type=e.buffer.set.types[e.buffer.buffer[f]]}child(e,o,f){let{buffer:P}=this.context,d=P.findChild(this.index+4,P.buffer[this.index+3],e,o-this.context.start,f);return d<0?null:new i_(this.context,this,d)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,o,f=0){if(f&mf.ExcludeBuffers)return null;let{buffer:P}=this.context,d=P.findChild(this.index+4,P.buffer[this.index+3],o>0?1:-1,e-this.context.start,o);return d<0?null:new i_(this.context,this,d)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,o=e.buffer[this.index+3];return o<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new i_(this.context,this._parent,o):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,o=this._parent?this._parent.index+4:0;return this.index==o?this.externalSibling(-1):new i_(this.context,this._parent,e.findChild(o,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],o=[],{buffer:f}=this.context,P=this.index+4,d=f.buffer[this.index+3];if(d>P){let l=f.buffer[this.index+1];e.push(f.slice(P,d,l)),o.push(0)}return new Su(this.type,e,o,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Zye(t){if(!t.length)return null;let e=0,o=t[0];for(let d=1;do.from||l.to=e){let n=new jg(l.tree,l.overlay[0].from+d.from,-1,d);(P||(P=[f])).push(FI(n,e,o,!1))}}return P?Zye(P):f}class QH{get name(){return this.type.name}constructor(e,o=0){if(this.mode=o,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof jg)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let f=e._parent;f;f=f._parent)this.stack.unshift(f.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,o){this.index=e;let{start:f,buffer:P}=this.buffer;return this.type=o||P.set.types[P.buffer[e]],this.from=f+P.buffer[e+1],this.to=f+P.buffer[e+2],!0}yield(e){return e?e instanceof jg?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,o,f){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,o,f,this.mode));let{buffer:P}=this.buffer,d=P.findChild(this.index+4,P.buffer[this.index+3],e,o-this.buffer.start,f);return d<0?!1:(this.stack.push(this.index),this.yieldBuf(d))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,o,f=this.mode){return this.buffer?f&mf.ExcludeBuffers?!1:this.enterChild(1,e,o):this.yield(this._tree.enter(e,o,f))}parent(){if(!this.buffer)return this.yieldNode(this.mode&mf.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&mf.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:o}=this.buffer,f=this.stack.length-1;if(e<0){let P=f<0?0:this.stack[f]+4;if(this.index!=P)return this.yieldBuf(o.findChild(P,this.index,-1,0,4))}else{let P=o.buffer[this.index+3];if(P<(f<0?o.buffer.length:o.buffer[this.stack[f]+3]))return this.yieldBuf(P)}return f<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let o,f,{buffer:P}=this;if(P){if(e>0){if(this.index-1)for(let d=o+e,l=e<0?-1:f._tree.children.length;d!=l;d+=e){let n=f._tree.children[d];if(this.mode&mf.IncludeAnonymous||n instanceof sS||!n.type.isAnonymous||fce(n))return!1}return!0}move(e,o){if(o&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,o=0){for(;(this.from==this.to||(o<1?this.from>=e:this.from>e)||(o>-1?this.to<=e:this.to=0;){for(let l=e;l;l=l._parent)if(l.index==P){if(P==this.index)return l;o=l,f=d+1;break e}P=this.stack[--d]}for(let P=f;P=0;d--){if(d<0)return pse(this.node,e,P);let l=f[o.buffer[this.stack[d]]];if(!l.isAnonymous){if(e[P]&&e[P]!=l.name)return!1;P--}}return!0}}function fce(t){return t.children.some(e=>e instanceof sS||!e.type.isAnonymous||fce(e))}function WCe(t){var e;let{buffer:o,nodeSet:f,maxBufferLength:P=jye,reused:d=[],minRepeatType:l=f.types.length}=t,n=Array.isArray(o)?new uce(o,o.length):o,c=f.types,b=0,i=0;function O(S,A,x,R,M,T){let{id:E,start:C,end:L,size:D}=n,k=i;for(;D<0;)if(n.next(),D==-1){let j=d[E];x.push(j),R.push(C-S);return}else if(D==-3){b=E;return}else if(D==-4){i=E;return}else throw new RangeError(`Unrecognized record size: ${D}`);let I=c[E],z,$,Q=C-S;if(L-C<=P&&($=u(n.pos-A,M))){let j=new Uint16Array($.size-$.skip),U=n.pos-$.size,X=j.length;for(;n.pos>U;)X=h($.start,j,X);z=new sS(j,L-$.start,f),Q=$.start-S}else{let j=n.pos-D;n.next();let U=[],X=[],te=E>=l?E:-1,W=0,K=L;for(;n.pos>j;)te>=0&&n.id==te&&n.size>=0?(n.end<=K-P&&(p(U,X,C,W,n.end,K,te,k),W=U.length,K=n.end),n.next()):T>2500?w(C,j,U,X):O(C,j,U,X,te,T+1);if(te>=0&&W>0&&W-1&&W>0){let oe=y(I);z=dce(I,U,X,0,U.length,0,L-C,oe,oe)}else z=a(I,U,X,L-C,k-L)}x.push(z),R.push(Q)}function w(S,A,x,R){let M=[],T=0,E=-1;for(;n.pos>A;){let{id:C,start:L,end:D,size:k}=n;if(k>4)n.next();else{if(E>-1&&L=0;D-=3)C[k++]=M[D],C[k++]=M[D+1]-L,C[k++]=M[D+2]-L,C[k++]=k;x.push(new sS(C,M[2]-L,f)),R.push(L-S)}}function y(S){return(A,x,R)=>{let M=0,T=A.length-1,E,C;if(T>=0&&(E=A[T])instanceof Su){if(!T&&E.type==S&&E.length==R)return E;(C=E.prop(ul.lookAhead))&&(M=x[T]+E.length+C)}return a(S,A,x,R,M)}}function p(S,A,x,R,M,T,E,C){let L=[],D=[];for(;S.length>R;)L.push(S.pop()),D.push(A.pop()+x-M);S.push(a(f.types[E],L,D,T-M,C-T)),A.push(M-x)}function a(S,A,x,R,M=0,T){if(b){let E=[ul.contextHash,b];T=T?[E].concat(T):[E]}if(M>25){let E=[ul.lookAhead,M];T=T?[E].concat(T):[E]}return new Su(S,A,x,R,T)}function u(S,A){let x=n.fork(),R=0,M=0,T=0,E=x.end-P,C={size:0,start:0,skip:0};e:for(let L=x.pos-S;x.pos>L;){let D=x.size;if(x.id==A&&D>=0){C.size=R,C.start=M,C.skip=T,T+=4,R+=4,x.next();continue}let k=x.pos-D;if(D<0||k=l?4:0,z=x.start;for(x.next();x.pos>k;){if(x.size<0)if(x.size==-3)I+=4;else break e;else x.id>=l&&(I+=4);x.next()}M=z,R+=D,T+=I}return(A<0||R==S)&&(C.size=R,C.start=M,C.skip=T),C.size>4?C:void 0}function h(S,A,x){let{id:R,start:M,end:T,size:E}=n;if(n.next(),E>=0&&R4){let L=n.pos-(E-4);for(;n.pos>L;)x=h(S,A,x)}A[--x]=C,A[--x]=T-S,A[--x]=M-S,A[--x]=R}else E==-3?b=R:E==-4&&(i=R);return x}let m=[],v=[];for(;n.pos>0;)O(t.start||0,t.bufferStart||0,m,v,-1,0);let _=(e=t.length)!==null&&e!==void 0?e:m.length?v[0]+m[0].length:0;return new Su(c[t.topID],m.reverse(),v.reverse(),_)}const Ope=new WeakMap;function bH(t,e){if(!t.isAnonymous||e instanceof sS||e.type!=t)return 1;let o=Ope.get(e);if(o==null){o=1;for(let f of e.children){if(f.type!=t||!(f instanceof Su)){o=1;break}o+=bH(t,f)}Ope.set(e,o)}return o}function dce(t,e,o,f,P,d,l,n,c){let b=0;for(let p=f;p=i)break;A+=x}if(v==_+1){if(A>i){let x=p[_];y(x.children,x.positions,0,x.children.length,a[_]+m);continue}O.push(p[_])}else{let x=a[v-1]+p[v-1].length-S;O.push(dce(t,p,a,_,v,S,x,null,c))}w.push(S+m-d)}}return y(e,o,f,P,0),(n||c)(O,w,l)}class hce{constructor(){this.map=new WeakMap}setBuffer(e,o,f){let P=this.map.get(e);P||this.map.set(e,P=new Map),P.set(o,f)}getBuffer(e,o){let f=this.map.get(e);return f&&f.get(o)}set(e,o){e instanceof i_?this.setBuffer(e.context.buffer,e.index,o):e instanceof jg&&this.map.set(e.tree,o)}get(e){return e instanceof i_?this.getBuffer(e.context.buffer,e.index):e instanceof jg?this.map.get(e.tree):void 0}cursorSet(e,o){e.buffer?this.setBuffer(e.buffer.buffer,e.index,o):this.map.set(e.tree,o)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class SO{constructor(e,o,f,P,d=!1,l=!1){this.from=e,this.to=o,this.tree=f,this.offset=P,this.open=(d?1:0)|(l?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,o=[],f=!1){let P=[new SO(0,e.length,e,0,!1,f)];for(let d of o)d.to>e.length&&P.push(d);return P}static applyChanges(e,o,f=128){if(!o.length)return e;let P=[],d=1,l=e.length?e[0]:null;for(let n=0,c=0,b=0;;n++){let i=n=f)for(;l&&l.from=w.from||O<=w.to||b){let y=Math.max(w.from,c)-b,p=Math.min(w.to,O)-b;w=y>=p?null:new SO(y,p,w.tree,w.offset+b,n>0,!!i)}if(w&&P.push(w),l.to>O)break;l=dnew Xy(P.from,P.to)):[new Xy(0,0)]:[new Xy(0,e.length)],this.createParse(e,o||[],f)}parse(e,o,f){let P=this.startParse(e,o,f);for(;;){let d=P.advance();if(d)return d}}}class YCe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,o){return this.string.slice(e,o)}}function qye(t){return(e,o,f,P)=>new GCe(e,t,o,f,P)}class Spe{constructor(e,o,f,P,d){this.parser=e,this.parse=o,this.overlay=f,this.target=P,this.from=d}}function kpe(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class XCe{constructor(e,o,f,P,d,l,n){this.parser=e,this.predicate=o,this.mounts=f,this.index=P,this.start=d,this.target=l,this.prev=n,this.depth=0,this.ranges=[]}}const mse=new ul({perNode:!0});class GCe{constructor(e,o,f,P,d){this.nest=o,this.input=f,this.fragments=P,this.ranges=d,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let f=this.baseParse.advance();if(!f)return null;if(this.baseParse=null,this.baseTree=f,this.startInner(),this.stoppedAt!=null)for(let P of this.inner)P.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let f=this.baseTree;return this.stoppedAt!=null&&(f=new Su(f.type,f.children,f.positions,f.length,f.propValues.concat([[mse,this.stoppedAt]]))),f}let e=this.inner[this.innerDone],o=e.parse.advance();if(o){this.innerDone++;let f=Object.assign(Object.create(null),e.target.props);f[ul.mounted.id]=new zI(o,e.overlay,e.parser),e.target.props=f}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let o=this.innerDone;o=this.stoppedAt)n=!1;else if(e.hasNode(P)){if(o){let b=o.mounts.find(i=>i.frag.from<=P.from&&i.frag.to>=P.to&&i.mount.overlay);if(b)for(let i of b.mount.overlay){let O=i.from+b.pos,w=i.to+b.pos;O>=P.from&&w<=P.to&&!o.ranges.some(y=>y.fromO)&&o.ranges.push({from:O,to:w})}}n=!1}else if(f&&(l=KCe(f.ranges,P.from,P.to)))n=l!=2;else if(!P.type.isAnonymous&&(d=this.nest(P,this.input))&&(P.fromnew Xy(O.from-P.from,O.to-P.from)):null,P.tree,i.length?i[0].from:P.from)),d.overlay?i.length&&(f={ranges:i,depth:0,prev:f}):n=!1}}else o&&(c=o.predicate(P))&&(c===!0&&(c=new Xy(P.from,P.to)),c.fromnew Xy(i.from-o.start,i.to-o.start)),o.target,b[0].from))),o=o.prev}f&&!--f.depth&&(f=f.prev)}}}}function KCe(t,e,o){for(let f of t){if(f.from>=o)break;if(f.to>e)return f.from<=e&&f.to>=o?2:1}return 0}function Tpe(t,e,o,f,P,d){if(e=e.to);f++);let l=P.children[f],n=l.buffer,c=[f];function b(i,O,w,y,p,a){let u=o[a],h=[],m=[];Tpe(l,i,u,h,m,y);let v=n[u+1],_=n[u+2];c.push(h.length);let S=a?b(u+4,n[u+3],l.set.types[n[u]],v,_-v,a-1):e.toTree();return h.push(S),m.push(v-y),Tpe(l,n[u+3],O,h,m,y),new Su(w,h,m,p)}P.children[f]=b(0,n.length,Cp.none,0,l.length,o.length-1);for(let i of c){let O=t.tree.children[i],w=t.tree.positions[i];t.yield(new jg(O,w+t.from,i,t._tree))}}class Cpe{constructor(e,o){this.offset=o,this.done=!1,this.cursor=e.cursor(mf.IncludeAnonymous|mf.IgnoreMounts)}moveTo(e){let{cursor:o}=this,f=e-this.offset;for(;!this.done&&o.from=e&&o.enter(f,1,mf.IgnoreOverlays|mf.ExcludeBuffers)||o.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let o=this.cursor.tree;;){if(o==e.tree)return!0;if(o.children.length&&o.positions[0]==0&&o.children[0]instanceof Su)o=o.children[0];else break}return!1}}let e8e=class{constructor(e){var o;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let f=this.curFrag=e[0];this.curTo=(o=f.tree.prop(mse))!==null&&o!==void 0?o:f.to,this.inner=new Cpe(f.tree,-f.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let o=this.curFrag=this.fragments[this.fragI];this.curTo=(e=o.tree.prop(mse))!==null&&e!==void 0?e:o.to,this.inner=new Cpe(o.tree,-o.offset)}}findMounts(e,o){var f;let P=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let d=this.inner.cursor.node;d;d=d.parent){let l=(f=d.tree)===null||f===void 0?void 0:f.prop(ul.mounted);if(l&&l.parser==o)for(let n=this.fragI;n=d.to)break;c.tree==this.curFrag.tree&&P.push({frag:c,pos:d.from-c.offset,mount:l})}}}return P}};function Ape(t,e){let o=null,f=e;for(let P=1,d=0;P=n)break;c.to<=l||(o||(f=o=e.slice()),c.fromn&&o.splice(d+1,0,new Xy(n,c.to))):c.to>n?o[d--]=new Xy(n,c.to):o.splice(d--,1))}}return f}function t8e(t,e,o,f){let P=0,d=0,l=!1,n=!1,c=-1e9,b=[];for(;;){let i=P==t.length?1e9:l?t[P].to:t[P].from,O=d==e.length?1e9:n?e[d].to:e[d].from;if(l!=n){let w=Math.max(c,o),y=Math.min(i,O,f);wnew Xy(w.from+f,w.to+f)),O=t8e(e,i,c,b);for(let w=0,y=c;;w++){let p=w==O.length,a=p?b:O[w].from;if(a>y&&o.push(new SO(y,a,P.tree,-l,d.from>=y||d.openStart,d.to<=a||d.openEnd)),p)break;y=O[w].to}}else o.push(new SO(c,b,P.tree,-l,d.from>=l||d.openStart,d.to<=n||d.openEnd))}return o}let n8e=0;class px{constructor(e,o,f){this.set=e,this.base=o,this.modified=f,this.id=n8e++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let o=new px([],null,[]);if(o.set.push(o),e)for(let f of e.set)o.set.push(f);return o}static defineModifier(){let e=new HH;return o=>o.modified.indexOf(e)>-1?o:HH.get(o.base||o,o.modified.concat(e).sort((f,P)=>f.id-P.id))}}let r8e=0;class HH{constructor(){this.instances=[],this.id=r8e++}static get(e,o){if(!o.length)return e;let f=o[0].instances.find(n=>n.base==e&&o8e(o,n.modified));if(f)return f;let P=[],d=new px(P,e,o);for(let n of o)n.instances.push(d);let l=i8e(o);for(let n of e.set)if(!n.modified.length)for(let c of l)P.push(HH.get(n,c));return d}}function o8e(t,e){return t.length==e.length&&t.every((o,f)=>o==e[f])}function i8e(t){let e=[[]];for(let o=0;of.length-o.length)}function mS(t){let e=Object.create(null);for(let o in t){let f=t[o];Array.isArray(f)||(f=[f]);for(let P of o.split(" "))if(P){let d=[],l=2,n=P;for(let O=0;;){if(n=="..."&&O>0&&O+3==P.length){l=1;break}let w=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(n);if(!w)throw new RangeError("Invalid path: "+P);if(d.push(w[0]=="*"?"":w[0][0]=='"'?JSON.parse(w[0]):w[0]),O+=w[0].length,O==P.length)break;let y=P[O++];if(O==P.length&&y=="!"){l=0;break}if(y!="/")throw new RangeError("Invalid path: "+P);n=P.slice(O)}let c=d.length-1,b=d[c];if(!b)throw new RangeError("Invalid path: "+P);let i=new ZH(f,l,c>0?d.slice(0,c):null);e[b]=i.sort(e[b])}}return Wye.add(e)}const Wye=new ul;class ZH{constructor(e,o,f,P){this.tags=e,this.mode=o,this.context=f,this.next=P}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let l=P;for(let n of d)for(let c of n.set){let b=o[c.id];if(b){l=l?l+" "+b:b;break}}return l},scope:f}}function a8e(t,e){let o=null;for(let f of t){let P=f.style(e);P&&(o=o?o+" "+P:P)}return o}function s8e(t,e,o,f=0,P=t.length){let d=new l8e(f,Array.isArray(e)?e:[e],o);d.highlightRange(t.cursor(),f,P,"",d.highlighters),d.flush(P)}class l8e{constructor(e,o,f){this.at=e,this.highlighters=o,this.span=f,this.class=""}startSpan(e,o){o!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=o)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,o,f,P,d){let{type:l,from:n,to:c}=e;if(n>=f||c<=o)return;l.isTop&&(d=this.highlighters.filter(y=>!y.scope||y.scope(l)));let b=P,i=c8e(e)||ZH.empty,O=a8e(d,i.tags);if(O&&(b&&(b+=" "),b+=O,i.mode==1&&(P+=(P?" ":"")+O)),this.startSpan(Math.max(o,n),b),i.opaque)return;let w=e.tree&&e.tree.prop(ul.mounted);if(w&&w.overlay){let y=e.node.enter(w.overlay[0].from+n,1),p=this.highlighters.filter(u=>!u.scope||u.scope(w.tree.type)),a=e.firstChild();for(let u=0,h=n;;u++){let m=u=v||!e.nextSibling())););if(!m||v>f)break;h=m.to+n,h>o&&(this.highlightRange(y.cursor(),Math.max(o,m.from+n),Math.min(f,h),"",p),this.startSpan(Math.min(f,h),b))}a&&e.parent()}else if(e.firstChild()){w&&(P="");do if(!(e.to<=o)){if(e.from>=f)break;this.highlightRange(e,o,f,P,d),this.startSpan(Math.min(f,e.to),b)}while(e.nextSibling());e.parent()}}}function c8e(t){let e=t.type.prop(Wye);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const ia=px.define,FQ=ia(),j4=ia(),Epe=ia(j4),Ppe=ia(j4),Q4=ia(),NQ=ia(Q4),_ie=ia(Q4),K2=ia(),Zk=ia(K2),X2=ia(),G2=ia(),gse=ia(),BL=ia(gse),$Q=ia(),Gn={comment:FQ,lineComment:ia(FQ),blockComment:ia(FQ),docComment:ia(FQ),name:j4,variableName:ia(j4),typeName:Epe,tagName:ia(Epe),propertyName:Ppe,attributeName:ia(Ppe),className:ia(j4),labelName:ia(j4),namespace:ia(j4),macroName:ia(j4),literal:Q4,string:NQ,docString:ia(NQ),character:ia(NQ),attributeValue:ia(NQ),number:_ie,integer:ia(_ie),float:ia(_ie),bool:ia(Q4),regexp:ia(Q4),escape:ia(Q4),color:ia(Q4),url:ia(Q4),keyword:X2,self:ia(X2),null:ia(X2),atom:ia(X2),unit:ia(X2),modifier:ia(X2),operatorKeyword:ia(X2),controlKeyword:ia(X2),definitionKeyword:ia(X2),moduleKeyword:ia(X2),operator:G2,derefOperator:ia(G2),arithmeticOperator:ia(G2),logicOperator:ia(G2),bitwiseOperator:ia(G2),compareOperator:ia(G2),updateOperator:ia(G2),definitionOperator:ia(G2),typeOperator:ia(G2),controlOperator:ia(G2),punctuation:gse,separator:ia(gse),bracket:BL,angleBracket:ia(BL),squareBracket:ia(BL),paren:ia(BL),brace:ia(BL),content:K2,heading:Zk,heading1:ia(Zk),heading2:ia(Zk),heading3:ia(Zk),heading4:ia(Zk),heading5:ia(Zk),heading6:ia(Zk),contentSeparator:ia(K2),list:ia(K2),quote:ia(K2),emphasis:ia(K2),strong:ia(K2),link:ia(K2),monospace:ia(K2),strikethrough:ia(K2),inserted:ia(),deleted:ia(),changed:ia(),invalid:ia(),meta:$Q,documentMeta:ia($Q),annotation:ia($Q),processingInstruction:ia($Q),definition:px.defineModifier(),constant:px.defineModifier(),function:px.defineModifier(),standard:px.defineModifier(),local:px.defineModifier(),special:px.defineModifier()};Yye([{tag:Gn.link,class:"tok-link"},{tag:Gn.heading,class:"tok-heading"},{tag:Gn.emphasis,class:"tok-emphasis"},{tag:Gn.strong,class:"tok-strong"},{tag:Gn.keyword,class:"tok-keyword"},{tag:Gn.atom,class:"tok-atom"},{tag:Gn.bool,class:"tok-bool"},{tag:Gn.url,class:"tok-url"},{tag:Gn.labelName,class:"tok-labelName"},{tag:Gn.inserted,class:"tok-inserted"},{tag:Gn.deleted,class:"tok-deleted"},{tag:Gn.literal,class:"tok-literal"},{tag:Gn.string,class:"tok-string"},{tag:Gn.number,class:"tok-number"},{tag:[Gn.regexp,Gn.escape,Gn.special(Gn.string)],class:"tok-string2"},{tag:Gn.variableName,class:"tok-variableName"},{tag:Gn.local(Gn.variableName),class:"tok-variableName tok-local"},{tag:Gn.definition(Gn.variableName),class:"tok-variableName tok-definition"},{tag:Gn.special(Gn.variableName),class:"tok-variableName2"},{tag:Gn.definition(Gn.propertyName),class:"tok-propertyName tok-definition"},{tag:Gn.typeName,class:"tok-typeName"},{tag:Gn.namespace,class:"tok-namespace"},{tag:Gn.className,class:"tok-className"},{tag:Gn.macroName,class:"tok-macroName"},{tag:Gn.propertyName,class:"tok-propertyName"},{tag:Gn.operator,class:"tok-operator"},{tag:Gn.comment,class:"tok-comment"},{tag:Gn.meta,class:"tok-meta"},{tag:Gn.invalid,class:"tok-invalid"},{tag:Gn.punctuation,class:"tok-punctuation"}]);var wie;const aT=new ul;function mce(t){return Ba.define({combine:t?e=>e.concat(t):void 0})}const gce=new ul;class Gy{constructor(e,o,f=[],P=""){this.data=e,this.name=P,jl.prototype.hasOwnProperty("tree")||Object.defineProperty(jl.prototype,"tree",{get(){return Gu(this)}}),this.parser=o,this.extension=[cS.of(this),jl.languageData.of((d,l,n)=>{let c=Rpe(d,l,n),b=c.type.prop(aT);if(!b)return[];let i=d.facet(b),O=c.type.prop(gce);if(O){let w=c.resolve(l-c.from,n);for(let y of O)if(y.test(w,d)){let p=d.facet(y.facet);return y.type=="replace"?p:p.concat(i)}}return i})].concat(f)}isActiveAt(e,o,f=-1){return Rpe(e,o,f).type.prop(aT)==this.data}findRegions(e){let o=e.facet(cS);if((o==null?void 0:o.data)==this.data)return[{from:0,to:e.doc.length}];if(!o||!o.allowsNesting)return[];let f=[],P=(d,l)=>{if(d.prop(aT)==this.data){f.push({from:l,to:l+d.length});return}let n=d.prop(ul.mounted);if(n){if(n.tree.prop(aT)==this.data){if(n.overlay)for(let c of n.overlay)f.push({from:c.from+l,to:c.to+l});else f.push({from:l,to:l+d.length});return}else if(n.overlay){let c=f.length;if(P(n.tree,n.overlay[0].from+l),f.length>c)return}}for(let c=0;cf.isTop?o:void 0)]}),e.name)}configure(e,o){return new lS(this.data,this.parser.configure(e),o||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Gu(t){let e=t.field(Gy.state,!1);return e?e.tree:Su.empty}class u8e{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,o){let f=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,o):this.string.slice(e-f,o-f)}}let zL=null;class NI{constructor(e,o,f=[],P,d,l,n,c){this.parser=e,this.state=o,this.fragments=f,this.tree=P,this.treeLen=d,this.viewport=l,this.skipped=n,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}static create(e,o,f){return new NI(e,o,[],Su.empty,0,f,[],null)}startParse(){return this.parser.startParse(new u8e(this.state.doc),this.fragments)}work(e,o){return o!=null&&o>=this.state.doc.length&&(o=void 0),this.tree!=Su.empty&&this.isDone(o??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var f;if(typeof e=="number"){let P=Date.now()+e;e=()=>Date.now()>P}for(this.parse||(this.parse=this.startParse()),o!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>o)&&o=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(o=this.parse.advance()););}),this.treeLen=e,this.tree=o,this.fragments=this.withoutTempSkipped(SO.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let o=zL;zL=this;try{return e()}finally{zL=o}}withoutTempSkipped(e){for(let o;o=this.tempSkipped.pop();)e=Lpe(e,o.from,o.to);return e}changes(e,o){let{fragments:f,tree:P,treeLen:d,viewport:l,skipped:n}=this;if(this.takeTree(),!e.empty){let c=[];if(e.iterChangedRanges((b,i,O,w)=>c.push({fromA:b,toA:i,fromB:O,toB:w})),f=SO.applyChanges(f,c),P=Su.empty,d=0,l={from:e.mapPos(l.from,-1),to:e.mapPos(l.to,1)},this.skipped.length){n=[];for(let b of this.skipped){let i=e.mapPos(b.from,1),O=e.mapPos(b.to,-1);ie.from&&(this.fragments=Lpe(this.fragments,P,d),this.skipped.splice(f--,1))}return this.skipped.length>=o?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,o){this.skipped.push({from:e,to:o})}static getSkippingParser(e){return new class extends pce{createParse(o,f,P){let d=P[0].from,l=P[P.length-1].to;return{parsedPos:d,advance(){let c=zL;if(c){for(let b of P)c.tempSkipped.push(b);e&&(c.scheduleOn=c.scheduleOn?Promise.all([c.scheduleOn,e]):e)}return this.parsedPos=l,new Su(Cp.none,[],[],l-d)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let o=this.fragments;return this.treeLen>=e&&o.length&&o[0].from==0&&o[0].to>=e}static get(){return zL}}function Lpe(t,e,o){return SO.applyChanges(t,[{fromA:e,toA:o,fromB:e,toB:o}])}class fM{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let o=this.context.changes(e.changes,e.state),f=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),o.viewport.to);return o.work(20,f)||o.takeTree(),new fM(o)}static init(e){let o=Math.min(3e3,e.doc.length),f=NI.create(e.facet(cS).parser,e,{from:0,to:o});return f.work(20,o)||f.takeTree(),new fM(f)}}Gy.state=Ap.define({create:fM.init,update(t,e){for(let o of e.effects)if(o.is(Gy.setState))return o.value;return e.startState.facet(cS)!=e.state.facet(cS)?fM.init(e.state):t.apply(e)}});let Xye=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Xye=t=>{let e=-1,o=setTimeout(()=>{e=requestIdleCallback(t,{timeout:500-100})},100);return()=>e<0?clearTimeout(o):cancelIdleCallback(e)});const Oie=typeof navigator<"u"&&(!((wie=navigator.scheduling)===null||wie===void 0)&&wie.isInputPending)?()=>navigator.scheduling.isInputPending():null,f8e=Wd.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let o=this.view.state.field(Gy.state).context;(o.updateViewport(e.view.viewport)||this.view.viewport.to>o.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(o)}scheduleWork(){if(this.working)return;let{state:e}=this.view,o=e.field(Gy.state);(o.tree!=o.context.tree||!o.context.isDone(e.doc.length))&&(this.working=Xye(this.work))}work(e){this.working=null;let o=Date.now();if(this.chunkEndP+1e3,c=d.context.work(()=>Oie&&Oie()||Date.now()>l,P+(n?0:1e5));this.chunkBudget-=Date.now()-o,(c||this.chunkBudget<=0)&&(d.context.takeTree(),this.view.dispatch({effects:Gy.setState.of(new fM(d.context))})),this.chunkBudget>0&&!(c&&!n)&&this.scheduleWork(),this.checkAsyncSchedule(d.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(o=>tb(this.view.state,o)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),cS=Ba.define({combine(t){return t.length?t[0]:null},enables:t=>[Gy.state,f8e,Oa.contentAttributes.compute([t],e=>{let o=e.facet(t);return o&&o.name?{"data-language":o.name}:{}})]});class gT{constructor(e,o=[]){this.language=e,this.support=o,this.extension=[e,o]}}class qH{constructor(e,o,f,P,d,l=void 0){this.name=e,this.alias=o,this.extensions=f,this.filename=P,this.loadFunc=d,this.support=l,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:o,support:f}=e;if(!o){if(!f)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");o=()=>Promise.resolve(f)}return new qH(e.name,(e.alias||[]).concat(e.name).map(P=>P.toLowerCase()),e.extensions||[],e.filename,o,f)}static matchFilename(e,o){for(let P of e)if(P.filename&&P.filename.test(o))return P;let f=/\.([^.]+)$/.exec(o);if(f){for(let P of e)if(P.extensions.indexOf(f[1])>-1)return P}return null}static matchLanguageName(e,o,f=!0){o=o.toLowerCase();for(let P of e)if(P.alias.some(d=>d==o))return P;if(f)for(let P of e)for(let d of P.alias){let l=o.indexOf(d);if(l>-1&&(d.length>2||!/\w/.test(o[l-1])&&!/\w/.test(o[l+d.length])))return P}return null}}const d8e=Ba.define(),wT=Ba.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(o=>o!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function WH(t){let e=t.facet(wT);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function $I(t,e){let o="",f=t.tabSize,P=t.facet(wT)[0];if(P==" "){for(;e>=f;)o+=" ",e-=f;P=" "}for(let d=0;d=e?h8e(t,o,e):null}class KZ{constructor(e,o={}){this.state=e,this.options=o,this.unit=WH(e)}lineAt(e,o=1){let f=this.state.doc.lineAt(e),{simulateBreak:P,simulateDoubleBreak:d}=this.options;return P!=null&&P>=f.from&&P<=f.to?d&&P==e?{text:"",from:e}:(o<0?P-1&&(d+=l-this.countColumn(f,f.search(/\S|$/))),d}countColumn(e,o=e.length){return bx(e,this.state.tabSize,o)}lineIndent(e,o=1){let{text:f,from:P}=this.lineAt(e,o),d=this.options.overrideIndentation;if(d){let l=d(P);if(l>-1)return l}return this.countColumn(f,f.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const OT=new ul;function h8e(t,e,o){let f=e.resolveStack(o),P=f.node.enterUnfinishedNodesBefore(o);if(P!=f.node){let d=[];for(let l=P;l!=f.node;l=l.parent)d.push(l);for(let l=d.length-1;l>=0;l--)f={node:d[l],next:f}}return Gye(f,t,o)}function Gye(t,e,o){for(let f=t;f;f=f.next){let P=m8e(f.node);if(P)return P(yce.create(e,o,f))}return 0}function p8e(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function m8e(t){let e=t.type.prop(OT);if(e)return e;let o=t.firstChild,f;if(o&&(f=o.type.prop(ul.closedBy))){let P=t.lastChild,d=P&&f.indexOf(P.name)>-1;return l=>Kye(l,!0,1,void 0,d&&!p8e(l)?P.from:void 0)}return t.parent==null?g8e:null}function g8e(){return 0}class yce extends KZ{constructor(e,o,f){super(e.state,e.options),this.base=e,this.pos=o,this.context=f}get node(){return this.context.node}static create(e,o,f){return new yce(e,o,f)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let o=this.state.doc.lineAt(e.from);for(;;){let f=e.resolve(o.from);for(;f.parent&&f.parent.from==f.from;)f=f.parent;if(v8e(f,e))break;o=this.state.doc.lineAt(f.from)}return this.lineIndent(o.from)}continue(){return Gye(this.context.next,this.base,this.pos)}}function v8e(t,e){for(let o=e;o;o=o.parent)if(t==o)return!0;return!1}function y8e(t){let e=t.node,o=e.childAfter(e.from),f=e.lastChild;if(!o)return null;let P=t.options.simulateBreak,d=t.state.doc.lineAt(o.from),l=P==null||P<=d.from?d.to:Math.min(d.to,P);for(let n=o.to;;){let c=e.childAfter(n);if(!c||c==f)return null;if(!c.type.isSkipped)return c.fromKye(f,e,o,t)}function Kye(t,e,o,f,P){let d=t.textAfter,l=d.match(/^\s*/)[0].length,n=f&&d.slice(l,l+f.length)==f||P==t.pos+l,c=e?y8e(t):null;return c?n?t.column(c.from):t.column(c.to):t.baseIndent+(n?0:t.unit*o)}const b8e=t=>t.baseIndent;function fI({except:t,units:e=1}={}){return o=>{let f=t&&t.test(o.textAfter);return o.baseIndent+(f?0:e*o.unit)}}const x8e=200;function _8e(){return jl.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let o=t.newDoc,{head:f}=t.newSelection.main,P=o.lineAt(f);if(f>P.from+x8e)return t;let d=o.sliceString(P.from,f);if(!e.some(b=>b.test(d)))return t;let{state:l}=t,n=-1,c=[];for(let{head:b}of l.selection.ranges){let i=l.doc.lineAt(b);if(i.from==n)continue;n=i.from;let O=vce(l,i.from);if(O==null)continue;let w=/^\s*/.exec(i.text)[0],y=$I(l,O);w!=y&&c.push({from:i.from,to:i.from+w.length,insert:y})}return c.length?[t,{changes:c,sequential:!0}]:t})}const Jye=Ba.define(),gS=new ul;function bce(t){let e=t.firstChild,o=t.lastChild;return e&&e.too)continue;if(d&&n.from=e&&b.to>o&&(d=b)}}return d}function O8e(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function YH(t,e,o){for(let f of t.facet(Jye)){let P=f(t,e,o);if(P)return P}return w8e(t,e,o)}function ebe(t,e){let o=e.mapPos(t.from,1),f=e.mapPos(t.to,-1);return o>=f?void 0:{from:o,to:f}}const JZ=cl.define({map:ebe}),yD=cl.define({map:ebe});function tbe(t){let e=[];for(let{head:o}of t.state.selection.ranges)e.some(f=>f.from<=o&&f.to>=o)||e.push(t.lineBlockAt(o));return e}const vT=Ap.define({create(){return es.none},update(t,e){t=t.map(e.changes);for(let o of e.effects)if(o.is(JZ)&&!S8e(t,o.value.from,o.value.to)){let{preparePlaceholder:f}=e.state.facet(xce),P=f?es.replace({widget:new P8e(f(e.state,o.value))}):Ipe;t=t.update({add:[P.range(o.value.from,o.value.to)]})}else o.is(yD)&&(t=t.update({filter:(f,P)=>o.value.from!=f||o.value.to!=P,filterFrom:o.value.from,filterTo:o.value.to}));if(e.selection){let o=!1,{head:f}=e.selection.main;t.between(f,f,(P,d)=>{Pf&&(o=!0)}),o&&(t=t.update({filterFrom:f,filterTo:f,filter:(P,d)=>d<=f||P>=f}))}return t},provide:t=>Oa.decorations.from(t),toJSON(t,e){let o=[];return t.between(0,e.doc.length,(f,P)=>{o.push(f,P)}),o},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let o=0;o{(!P||P.from>d)&&(P={from:d,to:l})}),P}function S8e(t,e,o){let f=!1;return t.between(e,e,(P,d)=>{P==e&&d==o&&(f=!0)}),f}function nbe(t,e){return t.field(vT,!1)?e:e.concat(cl.appendConfig.of(obe()))}const k8e=t=>{for(let e of tbe(t)){let o=YH(t.state,e.from,e.to);if(o)return t.dispatch({effects:nbe(t.state,[JZ.of(o),rbe(t,o)])}),!0}return!1},T8e=t=>{if(!t.state.field(vT,!1))return!1;let e=[];for(let o of tbe(t)){let f=XH(t.state,o.from,o.to);f&&e.push(yD.of(f),rbe(t,f,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function rbe(t,e,o=!0){let f=t.state.doc.lineAt(e.from).number,P=t.state.doc.lineAt(e.to).number;return Oa.announce.of(`${t.state.phrase(o?"Folded lines":"Unfolded lines")} ${f} ${t.state.phrase("to")} ${P}.`)}const C8e=t=>{let{state:e}=t,o=[];for(let f=0;f{let e=t.state.field(vT,!1);if(!e||!e.size)return!1;let o=[];return e.between(0,t.state.doc.length,(f,P)=>{o.push(yD.of({from:f,to:P}))}),t.dispatch({effects:o}),!0},M8e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:k8e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:T8e},{key:"Ctrl-Alt-[",run:C8e},{key:"Ctrl-Alt-]",run:A8e}],E8e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},xce=Ba.define({combine(t){return b_(t,E8e)}});function obe(t){let e=[vT,I8e];return t&&e.push(xce.of(t)),e}function ibe(t,e){let{state:o}=t,f=o.facet(xce),P=l=>{let n=t.lineBlockAt(t.posAtDOM(l.target)),c=XH(t.state,n.from,n.to);c&&t.dispatch({effects:yD.of(c)}),l.preventDefault()};if(f.placeholderDOM)return f.placeholderDOM(t,P,e);let d=document.createElement("span");return d.textContent=f.placeholderText,d.setAttribute("aria-label",o.phrase("folded code")),d.title=o.phrase("unfold"),d.className="cm-foldPlaceholder",d.onclick=P,d}const Ipe=es.replace({widget:new class extends wx{toDOM(t){return ibe(t,null)}}});class P8e extends wx{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return ibe(e,this.value)}}const R8e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Sie extends EO{constructor(e,o){super(),this.config=e,this.open=o}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let o=document.createElement("span");return o.textContent=this.open?this.config.openText:this.config.closedText,o.title=e.state.phrase(this.open?"Fold line":"Unfold line"),o}}function L8e(t={}){let e=Object.assign(Object.assign({},R8e),t),o=new Sie(e,!0),f=new Sie(e,!1),P=Wd.fromClass(class{constructor(l){this.from=l.viewport.from,this.markers=this.buildMarkers(l)}update(l){(l.docChanged||l.viewportChanged||l.startState.facet(cS)!=l.state.facet(cS)||l.startState.field(vT,!1)!=l.state.field(vT,!1)||Gu(l.startState)!=Gu(l.state)||e.foldingChanged(l))&&(this.markers=this.buildMarkers(l.view))}buildMarkers(l){let n=new rS;for(let c of l.viewportLineBlocks){let b=XH(l.state,c.from,c.to)?f:YH(l.state,c.from,c.to)?o:null;b&&n.add(c.from,c.from,b)}return n.finish()}}),{domEventHandlers:d}=e;return[P,LCe({class:"cm-foldGutter",markers(l){var n;return((n=l.plugin(P))===null||n===void 0?void 0:n.markers)||Vu.empty},initialSpacer(){return new Sie(e,!1)},domEventHandlers:Object.assign(Object.assign({},d),{click:(l,n,c)=>{if(d.click&&d.click(l,n,c))return!0;let b=XH(l.state,n.from,n.to);if(b)return l.dispatch({effects:yD.of(b)}),!0;let i=YH(l.state,n.from,n.to);return i?(l.dispatch({effects:JZ.of(i)}),!0):!1}})}),obe()]}const I8e=Oa.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class bD{constructor(e,o){this.specs=e;let f;function P(n){let c=oS.newName();return(f||(f=Object.create(null)))["."+c]=n,c}const d=typeof o.all=="string"?o.all:o.all?P(o.all):void 0,l=o.scope;this.scope=l instanceof Gy?n=>n.prop(aT)==l.data:l?n=>n==l:void 0,this.style=Yye(e.map(n=>({tag:n.tag,class:n.class||P(Object.assign({},n,{tag:null}))})),{all:d}).style,this.module=f?new oS(f):null,this.themeType=o.themeType}static define(e,o){return new bD(e,o||{})}}const vse=Ba.define(),abe=Ba.define({combine(t){return t.length?[t[0]]:null}});function kie(t){let e=t.facet(vse);return e.length?e:t.facet(abe)}function sbe(t,e){let o=[B8e],f;return t instanceof bD&&(t.module&&o.push(Oa.styleModule.of(t.module)),f=t.themeType),e!=null&&e.fallback?o.push(abe.of(t)):f?o.push(vse.computeN([Oa.darkTheme],P=>P.facet(Oa.darkTheme)==(f=="dark")?[t]:[])):o.push(vse.of(t)),o}class D8e{constructor(e){this.markCache=Object.create(null),this.tree=Gu(e.state),this.decorations=this.buildDeco(e,kie(e.state))}update(e){let o=Gu(e.state),f=kie(e.state),P=f!=kie(e.startState);o.length{f.add(l,n,this.markCache[c]||(this.markCache[c]=es.mark({class:c})))},P,d);return f.finish()}}const B8e=Nv.high(Wd.fromClass(D8e,{decorations:t=>t.decorations})),z8e=bD.define([{tag:Gn.meta,color:"#404740"},{tag:Gn.link,textDecoration:"underline"},{tag:Gn.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Gn.emphasis,fontStyle:"italic"},{tag:Gn.strong,fontWeight:"bold"},{tag:Gn.strikethrough,textDecoration:"line-through"},{tag:Gn.keyword,color:"#708"},{tag:[Gn.atom,Gn.bool,Gn.url,Gn.contentSeparator,Gn.labelName],color:"#219"},{tag:[Gn.literal,Gn.inserted],color:"#164"},{tag:[Gn.string,Gn.deleted],color:"#a11"},{tag:[Gn.regexp,Gn.escape,Gn.special(Gn.string)],color:"#e40"},{tag:Gn.definition(Gn.variableName),color:"#00f"},{tag:Gn.local(Gn.variableName),color:"#30a"},{tag:[Gn.typeName,Gn.namespace],color:"#085"},{tag:Gn.className,color:"#167"},{tag:[Gn.special(Gn.variableName),Gn.macroName],color:"#256"},{tag:Gn.definition(Gn.propertyName),color:"#00c"},{tag:Gn.comment,color:"#940"},{tag:Gn.invalid,color:"#f00"}]),F8e=Oa.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),lbe=1e4,cbe="()[]{}",ube=Ba.define({combine(t){return b_(t,{afterCursor:!0,brackets:cbe,maxScanDistance:lbe,renderMatch:V8e})}}),N8e=es.mark({class:"cm-matchingBracket"}),$8e=es.mark({class:"cm-nonmatchingBracket"});function V8e(t){let e=[],o=t.matched?N8e:$8e;return e.push(o.range(t.start.from,t.start.to)),t.end&&e.push(o.range(t.end.from,t.end.to)),e}const U8e=Ap.define({create(){return es.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let o=[],f=e.state.facet(ube);for(let P of e.state.selection.ranges){if(!P.empty)continue;let d=a_(e.state,P.head,-1,f)||P.head>0&&a_(e.state,P.head-1,1,f)||f.afterCursor&&(a_(e.state,P.head,1,f)||P.headOa.decorations.from(t)}),j8e=[U8e,F8e];function Q8e(t={}){return[ube.of(t),j8e]}const fbe=new ul;function yse(t,e,o){let f=t.prop(e<0?ul.openedBy:ul.closedBy);if(f)return f;if(t.name.length==1){let P=o.indexOf(t.name);if(P>-1&&P%2==(e<0?1:0))return[o[P+e]]}return null}function bse(t){let e=t.type.prop(fbe);return e?e(t.node):t}function a_(t,e,o,f={}){let P=f.maxScanDistance||lbe,d=f.brackets||cbe,l=Gu(t),n=l.resolveInner(e,o);for(let c=n;c;c=c.parent){let b=yse(c.type,o,d);if(b&&c.from0?e>=i.from&&ei.from&&e<=i.to))return H8e(t,e,o,c,i,b,d)}}return Z8e(t,e,o,l,n.type,P,d)}function H8e(t,e,o,f,P,d,l){let n=f.parent,c={from:P.from,to:P.to},b=0,i=n==null?void 0:n.cursor();if(i&&(o<0?i.childBefore(f.from):i.childAfter(f.to)))do if(o<0?i.to<=f.from:i.from>=f.to){if(b==0&&d.indexOf(i.type.name)>-1&&i.from0)return null;let b={from:o<0?e-1:e,to:o>0?e+1:e},i=t.doc.iterRange(e,o>0?t.doc.length:0),O=0;for(let w=0;!i.next().done&&w<=d;){let y=i.value;o<0&&(w+=y.length);let p=e+w*o;for(let a=o>0?0:y.length-1,u=o>0?y.length:-1;a!=u;a+=o){let h=l.indexOf(y[a]);if(!(h<0||f.resolveInner(p+a,1).type!=P))if(h%2==0==o>0)O++;else{if(O==1)return{start:b,end:{from:p+a,to:p+a+1},matched:h>>1==c>>1};O--}}o>0&&(w+=y.length)}return i.done?{start:b,matched:!1}:null}const q8e=Object.create(null),Dpe=[Cp.none],Bpe=[],zpe=Object.create(null),W8e=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])W8e[t]=Y8e(q8e,e);function Tie(t,e){Bpe.indexOf(t)>-1||(Bpe.push(t),console.warn(e))}function Y8e(t,e){let o=[];for(let n of e.split(" ")){let c=[];for(let b of n.split(".")){let i=t[b]||Gn[b];i?typeof i=="function"?c.length?c=c.map(i):Tie(b,`Modifier ${b} used at start of tag`):c.length?Tie(b,`Tag ${b} used as modifier`):c=Array.isArray(i)?i:[i]:Tie(b,`Unknown highlighting tag ${b}`)}for(let b of c)o.push(b)}if(!o.length)return 0;let f=e.replace(/ /g,"_"),P=f+" "+o.map(n=>n.id),d=zpe[P];if(d)return d.id;let l=zpe[P]=Cp.define({id:Dpe.length,name:f,props:[mS({[f]:o})]});return Dpe.push(l),l.id}const X8e=t=>{let{state:e}=t,o=e.doc.lineAt(e.selection.main.from),f=wce(t.state,o.from);return f.line?G8e(t):f.block?J8e(t):!1};function _ce(t,e){return({state:o,dispatch:f})=>{if(o.readOnly)return!1;let P=t(e,o);return P?(f(o.update(P)),!0):!1}}const G8e=_ce(nAe,0),K8e=_ce(dbe,0),J8e=_ce((t,e)=>dbe(t,e,tAe(e)),0);function wce(t,e){let o=t.languageDataAt("commentTokens",e);return o.length?o[0]:{}}const FL=50;function eAe(t,{open:e,close:o},f,P){let d=t.sliceDoc(f-FL,f),l=t.sliceDoc(P,P+FL),n=/\s*$/.exec(d)[0].length,c=/^\s*/.exec(l)[0].length,b=d.length-n;if(d.slice(b-e.length,b)==e&&l.slice(c,c+o.length)==o)return{open:{pos:f-n,margin:n&&1},close:{pos:P+c,margin:c&&1}};let i,O;P-f<=2*FL?i=O=t.sliceDoc(f,P):(i=t.sliceDoc(f,f+FL),O=t.sliceDoc(P-FL,P));let w=/^\s*/.exec(i)[0].length,y=/\s*$/.exec(O)[0].length,p=O.length-y-o.length;return i.slice(w,w+e.length)==e&&O.slice(p,p+o.length)==o?{open:{pos:f+w+e.length,margin:/\s/.test(i.charAt(w+e.length))?1:0},close:{pos:P-y-o.length,margin:/\s/.test(O.charAt(p-1))?1:0}}:null}function tAe(t){let e=[];for(let o of t.selection.ranges){let f=t.doc.lineAt(o.from),P=o.to<=f.to?f:t.doc.lineAt(o.to),d=e.length-1;d>=0&&e[d].to>f.from?e[d].to=P.to:e.push({from:f.from+/^\s*/.exec(f.text)[0].length,to:P.to})}return e}function dbe(t,e,o=e.selection.ranges){let f=o.map(d=>wce(e,d.from).block);if(!f.every(d=>d))return null;let P=o.map((d,l)=>eAe(e,f[l],d.from,d.to));if(t!=2&&!P.every(d=>d))return{changes:e.changes(o.map((d,l)=>P[l]?[]:[{from:d.from,insert:f[l].open+" "},{from:d.to,insert:" "+f[l].close}]))};if(t!=1&&P.some(d=>d)){let d=[];for(let l=0,n;lP&&(d==l||l>O.from)){P=O.from;let w=/^\s*/.exec(O.text)[0].length,y=w==O.length,p=O.text.slice(w,w+b.length)==b?w:-1;wd.comment<0&&(!d.empty||d.single))){let d=[];for(let{line:n,token:c,indent:b,empty:i,single:O}of f)(O||!i)&&d.push({from:n.from+b,insert:c+" "});let l=e.changes(d);return{changes:l,selection:e.selection.map(l,1)}}else if(t!=1&&f.some(d=>d.comment>=0)){let d=[];for(let{line:l,comment:n,token:c}of f)if(n>=0){let b=l.from+n,i=b+c.length;l.text[i-l.from]==" "&&i++,d.push({from:b,to:i})}return{changes:d}}return null}const xse=LO.define(),rAe=LO.define(),oAe=Ba.define(),hbe=Ba.define({combine(t){return b_(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,o)=>o},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,o)=>(f,P)=>e(f,P)||o(f,P)})}}),pbe=Ap.define({create(){return s_.empty},update(t,e){let o=e.state.facet(hbe),f=e.annotation(xse);if(f){let c=b1.fromTransaction(e,f.selection),b=f.side,i=b==0?t.undone:t.done;return c?i=GH(i,i.length,o.minDepth,c):i=vbe(i,e.startState.selection),new s_(b==0?f.rest:i,b==0?i:f.rest)}let P=e.annotation(rAe);if((P=="full"||P=="before")&&(t=t.isolate()),e.annotation(Sp.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let d=b1.fromTransaction(e),l=e.annotation(Sp.time),n=e.annotation(Sp.userEvent);return d?t=t.addChanges(d,l,n,o,e):e.selection&&(t=t.addSelection(e.startState.selection,l,n,o.newGroupDelay)),(P=="full"||P=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new s_(t.done.map(b1.fromJSON),t.undone.map(b1.fromJSON))}});function iAe(t={}){return[pbe,hbe.of(t),Oa.domEventHandlers({beforeinput(e,o){let f=e.inputType=="historyUndo"?mbe:e.inputType=="historyRedo"?_se:null;return f?(e.preventDefault(),f(o)):!1}})]}function eq(t,e){return function({state:o,dispatch:f}){if(!e&&o.readOnly)return!1;let P=o.field(pbe,!1);if(!P)return!1;let d=P.pop(t,o,e);return d?(f(d),!0):!1}}const mbe=eq(0,!1),_se=eq(1,!1),aAe=eq(0,!0),sAe=eq(1,!0);class b1{constructor(e,o,f,P,d){this.changes=e,this.effects=o,this.mapped=f,this.startSelection=P,this.selectionsAfter=d}setSelAfter(e){return new b1(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,o,f;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(o=this.mapped)===null||o===void 0?void 0:o.toJSON(),startSelection:(f=this.startSelection)===null||f===void 0?void 0:f.toJSON(),selectionsAfter:this.selectionsAfter.map(P=>P.toJSON())}}static fromJSON(e){return new b1(e.changes&&wp.fromJSON(e.changes),[],e.mapped&&f_.fromJSON(e.mapped),e.startSelection&&Yo.fromJSON(e.startSelection),e.selectionsAfter.map(Yo.fromJSON))}static fromTransaction(e,o){let f=Ky;for(let P of e.startState.facet(oAe)){let d=P(e);d.length&&(f=f.concat(d))}return!f.length&&e.changes.empty?null:new b1(e.changes.invert(e.startState.doc),f,void 0,o||e.startState.selection,Ky)}static selection(e){return new b1(void 0,Ky,void 0,void 0,e)}}function GH(t,e,o,f){let P=e+1>o+20?e-o-1:0,d=t.slice(P,e);return d.push(f),d}function lAe(t,e){let o=[],f=!1;return t.iterChangedRanges((P,d)=>o.push(P,d)),e.iterChangedRanges((P,d,l,n)=>{for(let c=0;c=b&&l<=i&&(f=!0)}}),f}function cAe(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((o,f)=>o.empty!=e.ranges[f].empty).length===0}function gbe(t,e){return t.length?e.length?t.concat(e):t:e}const Ky=[],uAe=200;function vbe(t,e){if(t.length){let o=t[t.length-1],f=o.selectionsAfter.slice(Math.max(0,o.selectionsAfter.length-uAe));return f.length&&f[f.length-1].eq(e)?t:(f.push(e),GH(t,t.length-1,1e9,o.setSelAfter(f)))}else return[b1.selection([e])]}function fAe(t){let e=t[t.length-1],o=t.slice();return o[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),o}function Cie(t,e){if(!t.length)return t;let o=t.length,f=Ky;for(;o;){let P=dAe(t[o-1],e,f);if(P.changes&&!P.changes.empty||P.effects.length){let d=t.slice(0,o);return d[o-1]=P,d}else e=P.mapped,o--,f=P.selectionsAfter}return f.length?[b1.selection(f)]:Ky}function dAe(t,e,o){let f=gbe(t.selectionsAfter.length?t.selectionsAfter.map(n=>n.map(e)):Ky,o);if(!t.changes)return b1.selection(f);let P=t.changes.map(e),d=e.mapDesc(t.changes,!0),l=t.mapped?t.mapped.composeDesc(d):d;return new b1(P,cl.mapEffects(t.effects,e),l,t.startSelection.map(d),f)}const hAe=/^(input\.type|delete)($|\.)/;class s_{constructor(e,o,f=0,P=void 0){this.done=e,this.undone=o,this.prevTime=f,this.prevUserEvent=P}isolate(){return this.prevTime?new s_(this.done,this.undone):this}addChanges(e,o,f,P,d){let l=this.done,n=l[l.length-1];return n&&n.changes&&!n.changes.empty&&e.changes&&(!f||hAe.test(f))&&(!n.selectionsAfter.length&&o-this.prevTime0&&o-this.prevTimeo.empty?t.moveByChar(o,e):tq(o,e))}function Zg(t){return t.textDirectionAt(t.state.selection.main.head)==qd.LTR}const bbe=t=>ybe(t,!Zg(t)),xbe=t=>ybe(t,Zg(t));function _be(t,e){return Ox(t,o=>o.empty?t.moveByGroup(o,e):tq(o,e))}const mAe=t=>_be(t,!Zg(t)),gAe=t=>_be(t,Zg(t));function vAe(t,e,o){if(e.type.prop(o))return!0;let f=e.to-e.from;return f&&(f>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function nq(t,e,o){let f=Gu(t).resolveInner(e.head),P=o?ul.closedBy:ul.openedBy;for(let c=e.head;;){let b=o?f.childAfter(c):f.childBefore(c);if(!b)break;vAe(t,b,P)?f=b:c=o?b.to:b.from}let d=f.type.prop(P),l,n;return d&&(l=o?a_(t,f.from,1):a_(t,f.to,-1))&&l.matched?n=o?l.end.to:l.end.from:n=o?f.to:f.from,Yo.cursor(n,o?-1:1)}const yAe=t=>Ox(t,e=>nq(t.state,e,!Zg(t))),bAe=t=>Ox(t,e=>nq(t.state,e,Zg(t)));function wbe(t,e){return Ox(t,o=>{if(!o.empty)return tq(o,e);let f=t.moveVertically(o,e);return f.head!=o.head?f:t.moveToLineBoundary(o,e)})}const Obe=t=>wbe(t,!1),Sbe=t=>wbe(t,!0);function kbe(t){let e=t.scrollDOM.clientHeightl.empty?t.moveVertically(l,e,o.height):tq(l,e));if(P.eq(f.selection))return!1;let d;if(o.selfScroll){let l=t.coordsAtPos(f.selection.main.head),n=t.scrollDOM.getBoundingClientRect(),c=n.top+o.marginTop,b=n.bottom-o.marginBottom;l&&l.top>c&&l.bottomTbe(t,!1),wse=t=>Tbe(t,!0);function vS(t,e,o){let f=t.lineBlockAt(e.head),P=t.moveToLineBoundary(e,o);if(P.head==e.head&&P.head!=(o?f.to:f.from)&&(P=t.moveToLineBoundary(e,o,!1)),!o&&P.head==f.from&&f.length){let d=/^\s*/.exec(t.state.sliceDoc(f.from,Math.min(f.from+100,f.to)))[0].length;d&&e.head!=f.from+d&&(P=Yo.cursor(f.from+d))}return P}const xAe=t=>Ox(t,e=>vS(t,e,!0)),_Ae=t=>Ox(t,e=>vS(t,e,!1)),wAe=t=>Ox(t,e=>vS(t,e,!Zg(t))),OAe=t=>Ox(t,e=>vS(t,e,Zg(t))),SAe=t=>Ox(t,e=>Yo.cursor(t.lineBlockAt(e.head).from,1)),kAe=t=>Ox(t,e=>Yo.cursor(t.lineBlockAt(e.head).to,-1));function TAe(t,e,o){let f=!1,P=AM(t.selection,d=>{let l=a_(t,d.head,-1)||a_(t,d.head,1)||d.head>0&&a_(t,d.head-1,1)||d.headTAe(t,e,!1);function ab(t,e){let o=AM(t.state.selection,f=>{let P=e(f);return Yo.range(f.anchor,P.head,P.goalColumn,P.bidiLevel||void 0)});return o.eq(t.state.selection)?!1:(t.dispatch(x_(t.state,o)),!0)}function Cbe(t,e){return ab(t,o=>t.moveByChar(o,e))}const Abe=t=>Cbe(t,!Zg(t)),Mbe=t=>Cbe(t,Zg(t));function Ebe(t,e){return ab(t,o=>t.moveByGroup(o,e))}const AAe=t=>Ebe(t,!Zg(t)),MAe=t=>Ebe(t,Zg(t)),EAe=t=>ab(t,e=>nq(t.state,e,!Zg(t))),PAe=t=>ab(t,e=>nq(t.state,e,Zg(t)));function Pbe(t,e){return ab(t,o=>t.moveVertically(o,e))}const Rbe=t=>Pbe(t,!1),Lbe=t=>Pbe(t,!0);function Ibe(t,e){return ab(t,o=>t.moveVertically(o,e,kbe(t).height))}const Npe=t=>Ibe(t,!1),$pe=t=>Ibe(t,!0),RAe=t=>ab(t,e=>vS(t,e,!0)),LAe=t=>ab(t,e=>vS(t,e,!1)),IAe=t=>ab(t,e=>vS(t,e,!Zg(t))),DAe=t=>ab(t,e=>vS(t,e,Zg(t))),BAe=t=>ab(t,e=>Yo.cursor(t.lineBlockAt(e.head).from)),zAe=t=>ab(t,e=>Yo.cursor(t.lineBlockAt(e.head).to)),Vpe=({state:t,dispatch:e})=>(e(x_(t,{anchor:0})),!0),Upe=({state:t,dispatch:e})=>(e(x_(t,{anchor:t.doc.length})),!0),jpe=({state:t,dispatch:e})=>(e(x_(t,{anchor:t.selection.main.anchor,head:0})),!0),Qpe=({state:t,dispatch:e})=>(e(x_(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),FAe=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),NAe=({state:t,dispatch:e})=>{let o=rq(t).map(({from:f,to:P})=>Yo.range(f,Math.min(P+1,t.doc.length)));return e(t.update({selection:Yo.create(o),userEvent:"select"})),!0},$Ae=({state:t,dispatch:e})=>{let o=AM(t.selection,f=>{var P;let d=Gu(t).resolveStack(f.from,1);for(let l=d;l;l=l.next){let{node:n}=l;if((n.from=f.to||n.to>f.to&&n.from<=f.from)&&(!((P=n.parent)===null||P===void 0)&&P.parent))return Yo.range(n.to,n.from)}return f});return e(x_(t,o)),!0},VAe=({state:t,dispatch:e})=>{let o=t.selection,f=null;return o.ranges.length>1?f=Yo.create([o.main]):o.main.empty||(f=Yo.create([Yo.cursor(o.main.head)])),f?(e(x_(t,f)),!0):!1};function xD(t,e){if(t.state.readOnly)return!1;let o="delete.selection",{state:f}=t,P=f.changeByRange(d=>{let{from:l,to:n}=d;if(l==n){let c=e(d);cl&&(o="delete.forward",c=VQ(t,c,!0)),l=Math.min(l,c),n=Math.max(n,c)}else l=VQ(t,l,!1),n=VQ(t,n,!0);return l==n?{range:d}:{changes:{from:l,to:n},range:Yo.cursor(l,lP(t)))f.between(e,e,(P,d)=>{Pe&&(e=o?d:P)});return e}const Dbe=(t,e)=>xD(t,o=>{let f=o.from,{state:P}=t,d=P.doc.lineAt(f),l,n;if(!e&&f>d.from&&fDbe(t,!1),Bbe=t=>Dbe(t,!0),zbe=(t,e)=>xD(t,o=>{let f=o.head,{state:P}=t,d=P.doc.lineAt(f),l=P.charCategorizer(f);for(let n=null;;){if(f==(e?d.to:d.from)){f==o.head&&d.number!=(e?P.doc.lines:1)&&(f+=e?1:-1);break}let c=ng(d.text,f-d.from,e)+d.from,b=d.text.slice(Math.min(f,c)-d.from,Math.max(f,c)-d.from),i=l(b);if(n!=null&&i!=n)break;(b!=" "||f!=o.head)&&(n=i),f=c}return f}),Fbe=t=>zbe(t,!1),UAe=t=>zbe(t,!0),jAe=t=>xD(t,e=>{let o=t.lineBlockAt(e.head).to;return e.headxD(t,e=>{let o=t.moveToLineBoundary(e,!1).head;return e.head>o?o:Math.max(0,e.head-1)}),HAe=t=>xD(t,e=>{let o=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let o=t.changeByRange(f=>({changes:{from:f.from,to:f.to,insert:ru.of(["",""])},range:Yo.cursor(f.from)}));return e(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0},qAe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=t.changeByRange(f=>{if(!f.empty||f.from==0||f.from==t.doc.length)return{range:f};let P=f.from,d=t.doc.lineAt(P),l=P==d.from?P-1:ng(d.text,P-d.from,!1)+d.from,n=P==d.to?P+1:ng(d.text,P-d.from,!0)+d.from;return{changes:{from:l,to:n,insert:t.doc.slice(P,n).append(t.doc.slice(l,P))},range:Yo.cursor(n)}});return o.changes.empty?!1:(e(t.update(o,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function rq(t){let e=[],o=-1;for(let f of t.selection.ranges){let P=t.doc.lineAt(f.from),d=t.doc.lineAt(f.to);if(!f.empty&&f.to==d.from&&(d=t.doc.lineAt(f.to-1)),o>=P.number){let l=e[e.length-1];l.to=d.to,l.ranges.push(f)}else e.push({from:P.from,to:d.to,ranges:[f]});o=d.number+1}return e}function Nbe(t,e,o){if(t.readOnly)return!1;let f=[],P=[];for(let d of rq(t)){if(o?d.to==t.doc.length:d.from==0)continue;let l=t.doc.lineAt(o?d.to+1:d.from-1),n=l.length+1;if(o){f.push({from:d.to,to:l.to},{from:d.from,insert:l.text+t.lineBreak});for(let c of d.ranges)P.push(Yo.range(Math.min(t.doc.length,c.anchor+n),Math.min(t.doc.length,c.head+n)))}else{f.push({from:l.from,to:d.from},{from:d.to,insert:t.lineBreak+l.text});for(let c of d.ranges)P.push(Yo.range(c.anchor-n,c.head-n))}}return f.length?(e(t.update({changes:f,scrollIntoView:!0,selection:Yo.create(P,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const WAe=({state:t,dispatch:e})=>Nbe(t,e,!1),YAe=({state:t,dispatch:e})=>Nbe(t,e,!0);function $be(t,e,o){if(t.readOnly)return!1;let f=[];for(let P of rq(t))o?f.push({from:P.from,insert:t.doc.slice(P.from,P.to)+t.lineBreak}):f.push({from:P.to,insert:t.lineBreak+t.doc.slice(P.from,P.to)});return e(t.update({changes:f,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const XAe=({state:t,dispatch:e})=>$be(t,e,!1),GAe=({state:t,dispatch:e})=>$be(t,e,!0),KAe=t=>{if(t.state.readOnly)return!1;let{state:e}=t,o=e.changes(rq(e).map(({from:P,to:d})=>(P>0?P--:dt.moveVertically(P,!0)).map(o);return t.dispatch({changes:o,selection:f,scrollIntoView:!0,userEvent:"delete.line"}),!0};function JAe(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let o=Gu(t).resolveInner(e),f=o.childBefore(e),P=o.childAfter(e),d;return f&&P&&f.to<=e&&P.from>=e&&(d=f.type.prop(ul.closedBy))&&d.indexOf(P.name)>-1&&t.doc.lineAt(f.to).from==t.doc.lineAt(P.from).from&&!/\S/.test(t.sliceDoc(f.to,P.from))?{from:f.to,to:P.from}:null}const eMe=Vbe(!1),tMe=Vbe(!0);function Vbe(t){return({state:e,dispatch:o})=>{if(e.readOnly)return!1;let f=e.changeByRange(P=>{let{from:d,to:l}=P,n=e.doc.lineAt(d),c=!t&&d==l&&JAe(e,d);t&&(d=l=(l<=n.to?n:e.doc.lineAt(l)).to);let b=new KZ(e,{simulateBreak:d,simulateDoubleBreak:!!c}),i=vce(b,d);for(i==null&&(i=bx(/^\s*/.exec(e.doc.lineAt(d).text)[0],e.tabSize));ln.from&&d{let P=[];for(let l=f.from;l<=f.to;){let n=t.doc.lineAt(l);n.number>o&&(f.empty||f.to>n.from)&&(e(n,P,f),o=n.number),l=n.to+1}let d=t.changes(P);return{changes:P,range:Yo.range(d.mapPos(f.anchor,1),d.mapPos(f.head,1))}})}const nMe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=Object.create(null),f=new KZ(t,{overrideIndentation:d=>{let l=o[d];return l??-1}}),P=Oce(t,(d,l,n)=>{let c=vce(f,d.from);if(c==null)return;/\S/.test(d.text)||(c=0);let b=/^\s*/.exec(d.text)[0],i=$I(t,c);(b!=i||n.fromt.readOnly?!1:(e(t.update(Oce(t,(o,f)=>{f.push({from:o.from,insert:t.facet(wT)})}),{userEvent:"input.indent"})),!0),jbe=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Oce(t,(o,f)=>{let P=/^\s*/.exec(o.text)[0];if(!P)return;let d=bx(P,t.tabSize),l=0,n=$I(t,Math.max(0,d-WH(t)));for(;l({mac:t.key,run:t.run,shift:t.shift}))),iMe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:yAe,shift:EAe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:bAe,shift:PAe},{key:"Alt-ArrowUp",run:WAe},{key:"Shift-Alt-ArrowUp",run:XAe},{key:"Alt-ArrowDown",run:YAe},{key:"Shift-Alt-ArrowDown",run:GAe},{key:"Escape",run:VAe},{key:"Mod-Enter",run:tMe},{key:"Alt-l",mac:"Ctrl-l",run:NAe},{key:"Mod-i",run:$Ae,preventDefault:!0},{key:"Mod-[",run:jbe},{key:"Mod-]",run:Ube},{key:"Mod-Alt-\\",run:nMe},{key:"Shift-Mod-k",run:KAe},{key:"Shift-Mod-\\",run:CAe},{key:"Mod-/",run:X8e},{key:"Alt-A",run:K8e}].concat(oMe),aMe={key:"Tab",run:Ube,shift:jbe};function Df(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,o=arguments[1];if(o&&typeof o=="object"&&o.nodeType==null&&!Array.isArray(o)){for(var f in o)if(Object.prototype.hasOwnProperty.call(o,f)){var P=o[f];typeof P=="string"?t.setAttribute(f,P):P!=null&&(t[f]=P)}e++}for(;et.normalize("NFKD"):t=>t;class dM{constructor(e,o,f=0,P=e.length,d,l){this.test=l,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(f,P),this.bufferStart=f,this.normalize=d?n=>d(Hpe(n)):Hpe,this.query=this.normalize(o)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Jm(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let o=Jle(e),f=this.bufferStart+this.bufferPos;this.bufferPos+=Wy(e);let P=this.normalize(o);for(let d=0,l=f;;d++){let n=P.charCodeAt(d),c=this.match(n,l);if(d==P.length-1){if(c)return this.value=c,this;break}l==f&&dthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let o=this.matchPos<=this.to&&this.re.exec(this.curLine);if(o){let f=this.curLineStart+o.index,P=f+o[0].length;if(this.matchPos=KH(this.text,P+(f==P?1:0)),f==this.curLineStart+this.curLine.length&&this.nextLine(),(fthis.value.to)&&(!this.test||this.test(f,P,o)))return this.value={from:f,to:P,match:o},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=f||P.to<=o){let n=new JA(o,e.sliceString(o,f));return Aie.set(e,n),n}if(P.from==o&&P.to==f)return P;let{text:d,from:l}=P;return l>o&&(d=e.sliceString(o,l)+d,l=o),P.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,o=this.re.exec(this.flat.text);if(o&&!o[0]&&o.index==e&&(this.re.lastIndex=e+1,o=this.re.exec(this.flat.text)),o){let f=this.flat.from+o.index,P=f+o[0].length;if((this.flat.to>=this.to||o.index+o[0].length<=this.flat.text.length-10)&&(!this.test||this.test(f,P,o)))return this.value={from:f,to:P,match:o},this.matchPos=KH(this.text,P+(f==P?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=JA.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Zbe.prototype[Symbol.iterator]=qbe.prototype[Symbol.iterator]=function(){return this});function sMe(t){try{return new RegExp(t,Sce),!0}catch{return!1}}function KH(t,e){if(e>=t.length)return e;let o=t.lineAt(e),f;for(;e=56320&&f<57344;)e++;return e}function Sse(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),o=Df("input",{class:"cm-textfield",name:"line",value:e}),f=Df("form",{class:"cm-gotoLine",onkeydown:d=>{d.keyCode==27?(d.preventDefault(),t.dispatch({effects:JH.of(!1)}),t.focus()):d.keyCode==13&&(d.preventDefault(),P())},onsubmit:d=>{d.preventDefault(),P()}},Df("label",t.state.phrase("Go to line"),": ",o)," ",Df("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function P(){let d=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.value);if(!d)return;let{state:l}=t,n=l.doc.lineAt(l.selection.main.head),[,c,b,i,O]=d,w=i?+i.slice(1):0,y=b?+b:n.number;if(b&&O){let u=y/100;c&&(u=u*(c=="-"?-1:1)+n.number/l.doc.lines),y=Math.round(l.doc.lines*u)}else b&&c&&(y=y*(c=="-"?-1:1)+n.number);let p=l.doc.line(Math.max(1,Math.min(l.doc.lines,y))),a=Yo.cursor(p.from+Math.max(0,Math.min(w,p.length)));t.dispatch({effects:[JH.of(!1),Oa.scrollIntoView(a.from,{y:"center"})],selection:a}),t.focus()}return{dom:f}}const JH=cl.define(),Zpe=Ap.define({create(){return!0},update(t,e){for(let o of e.effects)o.is(JH)&&(t=o.value);return t},provide:t=>BI.from(t,e=>e?Sse:null)}),lMe=t=>{let e=DI(t,Sse);if(!e){let o=[JH.of(!0)];t.state.field(Zpe,!1)==null&&o.push(cl.appendConfig.of([Zpe,cMe])),t.dispatch({effects:o}),e=DI(t,Sse)}return e&&e.dom.querySelector("input").select(),!0},cMe=Oa.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),uMe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Wbe=Ba.define({combine(t){return b_(t,uMe,{highlightWordAroundCursor:(e,o)=>e||o,minSelectionLength:Math.min,maxMatches:Math.min})}});function fMe(t){let e=[gMe,mMe];return t&&e.push(Wbe.of(t)),e}const dMe=es.mark({class:"cm-selectionMatch"}),hMe=es.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function qpe(t,e,o,f){return(o==0||t(e.sliceDoc(o-1,o))!=Ad.Word)&&(f==e.doc.length||t(e.sliceDoc(f,f+1))!=Ad.Word)}function pMe(t,e,o,f){return t(e.sliceDoc(o,o+1))==Ad.Word&&t(e.sliceDoc(f-1,f))==Ad.Word}const mMe=Wd.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Wbe),{state:o}=t,f=o.selection;if(f.ranges.length>1)return es.none;let P=f.main,d,l=null;if(P.empty){if(!e.highlightWordAroundCursor)return es.none;let c=o.wordAt(P.head);if(!c)return es.none;l=o.charCategorizer(P.head),d=o.sliceDoc(c.from,c.to)}else{let c=P.to-P.from;if(c200)return es.none;if(e.wholeWords){if(d=o.sliceDoc(P.from,P.to),l=o.charCategorizer(P.head),!(qpe(l,o,P.from,P.to)&&pMe(l,o,P.from,P.to)))return es.none}else if(d=o.sliceDoc(P.from,P.to).trim(),!d)return es.none}let n=[];for(let c of t.visibleRanges){let b=new dM(o.doc,d,c.from,c.to);for(;!b.next().done;){let{from:i,to:O}=b.value;if((!l||qpe(l,o,i,O))&&(P.empty&&i<=P.from&&O>=P.to?n.push(hMe.range(i,O)):(i>=P.to||O<=P.from)&&n.push(dMe.range(i,O)),n.length>e.maxMatches))return es.none}}return es.set(n)}},{decorations:t=>t.decorations}),gMe=Oa.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),vMe=({state:t,dispatch:e})=>{let{selection:o}=t,f=Yo.create(o.ranges.map(P=>t.wordAt(P.head)||Yo.cursor(P.head)),o.mainIndex);return f.eq(o)?!1:(e(t.update({selection:f})),!0)};function yMe(t,e){let{main:o,ranges:f}=t.selection,P=t.wordAt(o.head),d=P&&P.from==o.from&&P.to==o.to;for(let l=!1,n=new dM(t.doc,e,f[f.length-1].to);;)if(n.next(),n.done){if(l)return null;n=new dM(t.doc,e,0,Math.max(0,f[f.length-1].from-1)),l=!0}else{if(l&&f.some(c=>c.from==n.value.from))continue;if(d){let c=t.wordAt(n.value.from);if(!c||c.from!=n.value.from||c.to!=n.value.to)continue}return n.value}}const bMe=({state:t,dispatch:e})=>{let{ranges:o}=t.selection;if(o.some(d=>d.from===d.to))return vMe({state:t,dispatch:e});let f=t.sliceDoc(o[0].from,o[0].to);if(t.selection.ranges.some(d=>t.sliceDoc(d.from,d.to)!=f))return!1;let P=yMe(t,f);return P?(e(t.update({selection:t.selection.addRange(Yo.range(P.from,P.to),!1),effects:Oa.scrollIntoView(P.to)})),!0):!1},MM=Ba.define({combine(t){return b_(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new PMe(e),scrollToMatch:e=>Oa.scrollIntoView(e)})}});class Ybe{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||sMe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(o,f)=>f=="n"?` -`:f=="r"?"\r":f=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new OMe(this):new _Me(this)}getCursor(e,o=0,f){let P=e.doc?e:jl.create({doc:e});return f==null&&(f=P.doc.length),this.regexp?FA(this,P,o,f):zA(this,P,o,f)}}class Xbe{constructor(e){this.spec=e}}function zA(t,e,o,f){return new dM(e.doc,t.unquoted,o,f,t.caseSensitive?void 0:P=>P.toLowerCase(),t.wholeWord?xMe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function xMe(t,e){return(o,f,P,d)=>((d>o||d+P.length=o)return null;P.push(f.value)}return P}highlight(e,o,f,P){let d=zA(this.spec,e,Math.max(0,o-this.spec.unquoted.length),Math.min(f+this.spec.unquoted.length,e.doc.length));for(;!d.next().done;)P(d.value.from,d.value.to)}}function FA(t,e,o,f){return new Zbe(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?wMe(e.charCategorizer(e.selection.main.head)):void 0},o,f)}function eZ(t,e){return t.slice(ng(t,e,!1),e)}function tZ(t,e){return t.slice(e,ng(t,e))}function wMe(t){return(e,o,f)=>!f[0].length||(t(eZ(f.input,f.index))!=Ad.Word||t(tZ(f.input,f.index))!=Ad.Word)&&(t(tZ(f.input,f.index+f[0].length))!=Ad.Word||t(eZ(f.input,f.index+f[0].length))!=Ad.Word)}class OMe extends Xbe{nextMatch(e,o,f){let P=FA(this.spec,e,f,e.doc.length).next();return P.done&&(P=FA(this.spec,e,0,o).next()),P.done?null:P.value}prevMatchInRange(e,o,f){for(let P=1;;P++){let d=Math.max(o,f-P*1e4),l=FA(this.spec,e,d,f),n=null;for(;!l.next().done;)n=l.value;if(n&&(d==o||n.from>d+10))return n;if(d==o)return null}}prevMatch(e,o,f){return this.prevMatchInRange(e,0,o)||this.prevMatchInRange(e,f,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(o,f)=>f=="$"?"$":f=="&"?e.match[0]:f!="0"&&+f=o)return null;P.push(f.value)}return P}highlight(e,o,f,P){let d=FA(this.spec,e,Math.max(0,o-250),Math.min(f+250,e.doc.length));for(;!d.next().done;)P(d.value.from,d.value.to)}}const VI=cl.define(),kce=cl.define(),eS=Ap.define({create(t){return new Mie(kse(t).create(),null)},update(t,e){for(let o of e.effects)o.is(VI)?t=new Mie(o.value.create(),t.panel):o.is(kce)&&(t=new Mie(t.query,o.value?Tce:null));return t},provide:t=>BI.from(t,e=>e.panel)});class Mie{constructor(e,o){this.query=e,this.panel=o}}const SMe=es.mark({class:"cm-searchMatch"}),kMe=es.mark({class:"cm-searchMatch cm-searchMatch-selected"}),TMe=Wd.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(eS))}update(t){let e=t.state.field(eS);(e!=t.startState.field(eS)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return es.none;let{view:o}=this,f=new rS;for(let P=0,d=o.visibleRanges,l=d.length;Pd[P+1].from-2*250;)c=d[++P].to;t.highlight(o.state,n,c,(b,i)=>{let O=o.state.selection.ranges.some(w=>w.from==b&&w.to==i);f.add(b,i,O?kMe:SMe)})}return f.finish()}},{decorations:t=>t.decorations});function _D(t){return e=>{let o=e.state.field(eS,!1);return o&&o.query.spec.valid?t(e,o):Jbe(e)}}const nZ=_D((t,{query:e})=>{let{to:o}=t.state.selection.main,f=e.nextMatch(t.state,o,o);if(!f)return!1;let P=Yo.single(f.from,f.to),d=t.state.facet(MM);return t.dispatch({selection:P,effects:[Cce(t,f),d.scrollToMatch(P.main,t)],userEvent:"select.search"}),Kbe(t),!0}),rZ=_D((t,{query:e})=>{let{state:o}=t,{from:f}=o.selection.main,P=e.prevMatch(o,f,f);if(!P)return!1;let d=Yo.single(P.from,P.to),l=t.state.facet(MM);return t.dispatch({selection:d,effects:[Cce(t,P),l.scrollToMatch(d.main,t)],userEvent:"select.search"}),Kbe(t),!0}),CMe=_D((t,{query:e})=>{let o=e.matchAll(t.state,1e3);return!o||!o.length?!1:(t.dispatch({selection:Yo.create(o.map(f=>Yo.range(f.from,f.to))),userEvent:"select.search.matches"}),!0)}),AMe=({state:t,dispatch:e})=>{let o=t.selection;if(o.ranges.length>1||o.main.empty)return!1;let{from:f,to:P}=o.main,d=[],l=0;for(let n=new dM(t.doc,t.sliceDoc(f,P));!n.next().done;){if(d.length>1e3)return!1;n.value.from==f&&(l=d.length),d.push(Yo.range(n.value.from,n.value.to))}return e(t.update({selection:Yo.create(d,l),userEvent:"select.search.matches"})),!0},Wpe=_D((t,{query:e})=>{let{state:o}=t,{from:f,to:P}=o.selection.main;if(o.readOnly)return!1;let d=e.nextMatch(o,f,f);if(!d)return!1;let l=[],n,c,b=[];if(d.from==f&&d.to==P&&(c=o.toText(e.getReplacement(d)),l.push({from:d.from,to:d.to,insert:c}),d=e.nextMatch(o,d.from,d.to),b.push(Oa.announce.of(o.phrase("replaced match on line $",o.doc.lineAt(f).number)+"."))),d){let i=l.length==0||l[0].from>=d.to?0:d.to-d.from-c.length;n=Yo.single(d.from-i,d.to-i),b.push(Cce(t,d)),b.push(o.facet(MM).scrollToMatch(n.main,t))}return t.dispatch({changes:l,selection:n,effects:b,userEvent:"input.replace"}),!0}),MMe=_D((t,{query:e})=>{if(t.state.readOnly)return!1;let o=e.matchAll(t.state,1e9).map(P=>{let{from:d,to:l}=P;return{from:d,to:l,insert:e.getReplacement(P)}});if(!o.length)return!1;let f=t.state.phrase("replaced $ matches",o.length)+".";return t.dispatch({changes:o,effects:Oa.announce.of(f),userEvent:"input.replace.all"}),!0});function Tce(t){return t.state.facet(MM).createPanel(t)}function kse(t,e){var o,f,P,d,l;let n=t.selection.main,c=n.empty||n.to>n.from+100?"":t.sliceDoc(n.from,n.to);if(e&&!c)return e;let b=t.facet(MM);return new Ybe({search:((o=e==null?void 0:e.literal)!==null&&o!==void 0?o:b.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:(f=e==null?void 0:e.caseSensitive)!==null&&f!==void 0?f:b.caseSensitive,literal:(P=e==null?void 0:e.literal)!==null&&P!==void 0?P:b.literal,regexp:(d=e==null?void 0:e.regexp)!==null&&d!==void 0?d:b.regexp,wholeWord:(l=e==null?void 0:e.wholeWord)!==null&&l!==void 0?l:b.wholeWord})}function Gbe(t){let e=DI(t,Tce);return e&&e.dom.querySelector("[main-field]")}function Kbe(t){let e=Gbe(t);e&&e==t.root.activeElement&&e.select()}const Jbe=t=>{let e=t.state.field(eS,!1);if(e&&e.panel){let o=Gbe(t);if(o&&o!=t.root.activeElement){let f=kse(t.state,e.query.spec);f.valid&&t.dispatch({effects:VI.of(f)}),o.focus(),o.select()}}else t.dispatch({effects:[kce.of(!0),e?VI.of(kse(t.state,e.query.spec)):cl.appendConfig.of(LMe)]});return!0},exe=t=>{let e=t.state.field(eS,!1);if(!e||!e.panel)return!1;let o=DI(t,Tce);return o&&o.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:kce.of(!1)}),!0},EMe=[{key:"Mod-f",run:Jbe,scope:"editor search-panel"},{key:"F3",run:nZ,shift:rZ,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:nZ,shift:rZ,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:exe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:AMe},{key:"Mod-Alt-g",run:lMe},{key:"Mod-d",run:bMe,preventDefault:!0}];class PMe{constructor(e){this.view=e;let o=this.query=e.state.field(eS).query.spec;this.commit=this.commit.bind(this),this.searchField=Df("input",{value:o.search,placeholder:Cv(e,"Find"),"aria-label":Cv(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Df("input",{value:o.replace,placeholder:Cv(e,"Replace"),"aria-label":Cv(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Df("input",{type:"checkbox",name:"case",form:"",checked:o.caseSensitive,onchange:this.commit}),this.reField=Df("input",{type:"checkbox",name:"re",form:"",checked:o.regexp,onchange:this.commit}),this.wordField=Df("input",{type:"checkbox",name:"word",form:"",checked:o.wholeWord,onchange:this.commit});function f(P,d,l){return Df("button",{class:"cm-button",name:P,onclick:d,type:"button"},l)}this.dom=Df("div",{onkeydown:P=>this.keydown(P),class:"cm-search"},[this.searchField,f("next",()=>nZ(e),[Cv(e,"next")]),f("prev",()=>rZ(e),[Cv(e,"previous")]),f("select",()=>CMe(e),[Cv(e,"all")]),Df("label",null,[this.caseField,Cv(e,"match case")]),Df("label",null,[this.reField,Cv(e,"regexp")]),Df("label",null,[this.wordField,Cv(e,"by word")]),...e.state.readOnly?[]:[Df("br"),this.replaceField,f("replace",()=>Wpe(e),[Cv(e,"replace")]),f("replaceAll",()=>MMe(e),[Cv(e,"replace all")])],Df("button",{name:"close",onclick:()=>exe(e),"aria-label":Cv(e,"close"),type:"button"},["×"])])}commit(){let e=new Ybe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:VI.of(e)}))}keydown(e){U6e(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?rZ:nZ)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Wpe(this.view))}update(e){for(let o of e.transactions)for(let f of o.effects)f.is(VI)&&!f.value.eq(this.query)&&this.setQuery(f.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(MM).top}}function Cv(t,e){return t.state.phrase(e)}const UQ=30,jQ=/[\s\.,:;?!]/;function Cce(t,{from:e,to:o}){let f=t.state.doc.lineAt(e),P=t.state.doc.lineAt(o).to,d=Math.max(f.from,e-UQ),l=Math.min(P,o+UQ),n=t.state.sliceDoc(d,l);if(d!=f.from){for(let c=0;cn.length-UQ;c--)if(!jQ.test(n[c-1])&&jQ.test(n[c])){n=n.slice(0,c);break}}return Oa.announce.of(`${t.state.phrase("current match")}. ${n} ${t.state.phrase("on line")} ${f.number}.`)}const RMe=Oa.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),LMe=[eS,Nv.low(TMe),RMe];class Ace{constructor(e,o,f){this.state=e,this.pos=o,this.explicit=f,this.abortListeners=[]}tokenBefore(e){let o=Gu(this.state).resolveInner(this.pos,-1);for(;o&&e.indexOf(o.name)<0;)o=o.parent;return o?{from:o.from,to:this.pos,text:this.state.sliceDoc(o.from,this.pos),type:o.type}:null}matchBefore(e){let o=this.state.doc.lineAt(this.pos),f=Math.max(o.from,this.pos-250),P=o.text.slice(f-o.from,this.pos-o.from),d=P.search(txe(e,!1));return d<0?null:{from:f+d,to:this.pos,text:P.slice(d)}}get aborted(){return this.abortListeners==null}addEventListener(e,o){e=="abort"&&this.abortListeners&&this.abortListeners.push(o)}}function Ype(t){let e=Object.keys(t).join(""),o=/\w/.test(e);return o&&(e=e.replace(/\w/g,"")),`[${o?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function IMe(t){let e=Object.create(null),o=Object.create(null);for(let{label:P}of t){e[P[0]]=!0;for(let d=1;dtypeof P=="string"?{label:P}:P),[o,f]=e.every(P=>/^\w+$/.test(P.label))?[/\w*$/,/\w+$/]:IMe(e);return P=>{let d=P.matchBefore(f);return d||P.explicit?{from:d?d.from:P.pos,options:e,validFor:o}:null}}function Mce(t,e){return o=>{for(let f=Gu(o.state).resolveInner(o.pos,-1);f;f=f.parent){if(t.indexOf(f.name)>-1)return null;if(f.type.isTop)break}return e(o)}}class Xpe{constructor(e,o,f,P){this.completion=e,this.source=o,this.match=f,this.score=P}}function tS(t){return t.selection.main.from}function txe(t,e){var o;let{source:f}=t,P=e&&f[0]!="^",d=f[f.length-1]!="$";return!P&&!d?t:new RegExp(`${P?"^":""}(?:${f})${d?"$":""}`,(o=t.flags)!==null&&o!==void 0?o:t.ignoreCase?"i":"")}const nxe=LO.define();function DMe(t,e,o,f){let{main:P}=t.selection,d=o-P.from,l=f-P.from;return Object.assign(Object.assign({},t.changeByRange(n=>n!=P&&o!=f&&t.sliceDoc(n.from+d,n.from+l)!=t.sliceDoc(o,f)?{range:n}:{changes:{from:n.from+d,to:f==P.from?n.to:n.from+l,insert:e},range:Yo.cursor(n.from+d+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Gpe=new WeakMap;function BMe(t){if(!Array.isArray(t))return t;let e=Gpe.get(t);return e||Gpe.set(t,e=oq(t)),e}const Ece=cl.define(),UI=cl.define();class zMe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let o=0;o=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(A=Jle(S))!=A.toLowerCase()?1:A!=A.toUpperCase()?2:0;(!m||x==1&&u||_==0&&x!=0)&&(o[O]==S||f[O]==S&&(w=!0)?l[O++]=m:l.length&&(h=!1)),_=x,m+=Wy(S)}return O==c&&l[0]==0&&h?this.result(-100+(w?-200:0),l,e):y==c&&p==0?this.ret(-200-e.length+(a==e.length?0:-100),[0,a]):n>-1?this.ret(-700-e.length,[n,n+this.pattern.length]):y==c?this.ret(-200+-700-e.length,[p,a]):O==c?this.result(-100+(w?-200:0)+-700+(h?0:-1100),l,e):o.length==2?!1:this.result((P[0]?-700:0)+-200+-1100,P,e)}result(e,o,f){let P=[],d=0;for(let l of o){let n=l+(this.astral?Wy(Jm(f,l)):1);d&&P[d-1]==l?P[d-1]=n:(P[d++]=l,P[d++]=n)}return this.ret(e-f.length,P)}}const Vg=Ba.define({combine(t){return b_(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:FMe,compareCompletions:(e,o)=>e.label.localeCompare(o.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,o)=>e&&o,closeOnBlur:(e,o)=>e&&o,icons:(e,o)=>e&&o,tooltipClass:(e,o)=>f=>Kpe(e(f),o(f)),optionClass:(e,o)=>f=>Kpe(e(f),o(f)),addToOptions:(e,o)=>e.concat(o)})}});function Kpe(t,e){return t?e?t+" "+e:t:e}function FMe(t,e,o,f,P,d){let l=t.textDirection==qd.RTL,n=l,c=!1,b="top",i,O,w=e.left-P.left,y=P.right-e.right,p=f.right-f.left,a=f.bottom-f.top;if(n&&w=a||m>e.top?i=o.bottom-e.top:(b="bottom",i=e.bottom-o.top)}let u=(e.bottom-e.top)/d.offsetHeight,h=(e.right-e.left)/d.offsetWidth;return{style:`${b}: ${i/u}px; max-width: ${O/h}px`,class:"cm-completionInfo-"+(c?l?"left-narrow":"right-narrow":n?"left":"right")}}function NMe(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(o){let f=document.createElement("div");return f.classList.add("cm-completionIcon"),o.type&&f.classList.add(...o.type.split(/\s+/g).map(P=>"cm-completionIcon-"+P)),f.setAttribute("aria-hidden","true"),f},position:20}),e.push({render(o,f,P,d){let l=document.createElement("span");l.className="cm-completionLabel";let n=o.displayLabel||o.label,c=0;for(let b=0;bc&&l.appendChild(document.createTextNode(n.slice(c,i)));let w=l.appendChild(document.createElement("span"));w.appendChild(document.createTextNode(n.slice(i,O))),w.className="cm-completionMatchedText",c=O}return co.position-f.position).map(o=>o.render)}function Eie(t,e,o){if(t<=o)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let P=Math.floor(e/o);return{from:P*o,to:(P+1)*o}}let f=Math.floor((t-e)/o);return{from:t-(f+1)*o,to:t-f*o}}class $Me{constructor(e,o,f){this.view=e,this.stateField=o,this.applyCompletion=f,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:c=>this.placeInfo(c),key:this},this.space=null,this.currentClass="";let P=e.state.field(o),{options:d,selected:l}=P.open,n=e.state.facet(Vg);this.optionContent=NMe(n),this.optionClass=n.optionClass,this.tooltipClass=n.tooltipClass,this.range=Eie(d.length,l,n.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",c=>{let{options:b}=e.state.field(o).open;for(let i=c.target,O;i&&i!=this.dom;i=i.parentNode)if(i.nodeName=="LI"&&(O=/-(\d+)$/.exec(i.id))&&+O[1]{let b=e.state.field(this.stateField,!1);b&&b.tooltip&&e.state.facet(Vg).closeOnBlur&&c.relatedTarget!=e.contentDOM&&e.dispatch({effects:UI.of(null)})}),this.showOptions(d,P.id)}mount(){this.updateSel()}showOptions(e,o){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,o,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var o;let f=e.state.field(this.stateField),P=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),f!=P){let{options:d,selected:l,disabled:n}=f.open;(!P.open||P.open.options!=d)&&(this.range=Eie(d.length,l,e.state.facet(Vg).maxRenderedOptions),this.showOptions(d,f.id)),this.updateSel(),n!=((o=P.open)===null||o===void 0?void 0:o.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!n)}}updateTooltipClass(e){let o=this.tooltipClass(e);if(o!=this.currentClass){for(let f of this.currentClass.split(" "))f&&this.dom.classList.remove(f);for(let f of o.split(" "))f&&this.dom.classList.add(f);this.currentClass=o}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),o=e.open;if((o.selected>-1&&o.selected=this.range.to)&&(this.range=Eie(o.options.length,o.selected,this.view.state.facet(Vg).maxRenderedOptions),this.showOptions(o.options,e.id)),this.updateSelectedOption(o.selected)){this.destroyInfo();let{completion:f}=o.options[o.selected],{info:P}=f;if(!P)return;let d=typeof P=="string"?document.createTextNode(P):P(f);if(!d)return;"then"in d?d.then(l=>{l&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(l,f)}).catch(l=>tb(this.view.state,l,"completion info")):this.addInfoPane(d,f)}}addInfoPane(e,o){this.destroyInfo();let f=this.info=document.createElement("div");if(f.className="cm-tooltip cm-completionInfo",e.nodeType!=null)f.appendChild(e),this.infoDestroy=null;else{let{dom:P,destroy:d}=e;f.appendChild(P),this.infoDestroy=d||null}this.dom.appendChild(f),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let o=null;for(let f=this.list.firstChild,P=this.range.from;f;f=f.nextSibling,P++)f.nodeName!="LI"||!f.id?P--:P==e?f.hasAttribute("aria-selected")||(f.setAttribute("aria-selected","true"),o=f):f.hasAttribute("aria-selected")&&f.removeAttribute("aria-selected");return o&&UMe(this.list,o),o}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let o=this.dom.getBoundingClientRect(),f=this.info.getBoundingClientRect(),P=e.getBoundingClientRect(),d=this.space;if(!d){let l=this.dom.ownerDocument.defaultView||window;d={left:0,top:0,right:l.innerWidth,bottom:l.innerHeight}}return P.top>Math.min(d.bottom,o.bottom)-10||P.bottomf.from||f.from==0))if(d=w,typeof b!="string"&&b.header)P.appendChild(b.header(b));else{let y=P.appendChild(document.createElement("completion-section"));y.textContent=w}}const i=P.appendChild(document.createElement("li"));i.id=o+"-"+l,i.setAttribute("role","option");let O=this.optionClass(n);O&&(i.className=O);for(let w of this.optionContent){let y=w(n,this.view.state,this.view,c);y&&i.appendChild(y)}}return f.from&&P.classList.add("cm-completionListIncompleteTop"),f.tonew $Me(o,t,e)}function UMe(t,e){let o=t.getBoundingClientRect(),f=e.getBoundingClientRect(),P=o.height/t.offsetHeight;f.topo.bottom&&(t.scrollTop+=(f.bottom-o.bottom)/P)}function Jpe(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function jMe(t,e){let o=[],f=null,P=c=>{o.push(c);let{section:b}=c.completion;if(b){f||(f=[]);let i=typeof b=="string"?b:b.name;f.some(O=>O.name==i)||f.push(typeof b=="string"?{name:i}:b)}};for(let c of t)if(c.hasResult()){let b=c.result.getMatch;if(c.result.filter===!1)for(let i of c.result.options)P(new Xpe(i,c.source,b?b(i):[],1e9-o.length));else{let i=new zMe(e.sliceDoc(c.from,c.to));for(let O of c.result.options)if(i.match(O.label)){let w=O.displayLabel?b?b(O,i.matched):[]:i.matched;P(new Xpe(O,c.source,w,i.score+(O.boost||0)))}}}if(f){let c=Object.create(null),b=0,i=(O,w)=>{var y,p;return((y=O.rank)!==null&&y!==void 0?y:1e9)-((p=w.rank)!==null&&p!==void 0?p:1e9)||(O.namei.score-b.score||n(b.completion,i.completion))){let b=c.completion;!l||l.label!=b.label||l.detail!=b.detail||l.type!=null&&b.type!=null&&l.type!=b.type||l.apply!=b.apply||l.boost!=b.boost?d.push(c):Jpe(c.completion)>Jpe(l)&&(d[d.length-1]=c),l=c.completion}return d}class UA{constructor(e,o,f,P,d,l){this.options=e,this.attrs=o,this.tooltip=f,this.timestamp=P,this.selected=d,this.disabled=l}setSelected(e,o){return e==this.selected||e>=this.options.length?this:new UA(this.options,eme(o,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,o,f,P,d){let l=jMe(e,o);if(!l.length)return P&&e.some(c=>c.state==1)?new UA(P.options,P.attrs,P.tooltip,P.timestamp,P.selected,!0):null;let n=o.facet(Vg).selectOnOpen?0:-1;if(P&&P.selected!=n&&P.selected!=-1){let c=P.options[P.selected].completion;for(let b=0;bb.hasResult()?Math.min(c,b.from):c,1e8),create:WMe,above:d.aboveCursor},P?P.timestamp:Date.now(),n,!1)}map(e){return new UA(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class oZ{constructor(e,o,f){this.active=e,this.id=o,this.open=f}static start(){return new oZ(ZMe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:o}=e,f=o.facet(Vg),d=(f.override||o.languageDataAt("autocomplete",tS(o)).map(BMe)).map(n=>(this.active.find(b=>b.source==n)||new v1(n,this.active.some(b=>b.state!=0)?1:0)).update(e,f));d.length==this.active.length&&d.every((n,c)=>n==this.active[c])&&(d=this.active);let l=this.open;l&&e.docChanged&&(l=l.map(e.changes)),e.selection||d.some(n=>n.hasResult()&&e.changes.touchesRange(n.from,n.to))||!QMe(d,this.active)?l=UA.build(d,o,this.id,l,f):l&&l.disabled&&!d.some(n=>n.state==1)&&(l=null),!l&&d.every(n=>n.state!=1)&&d.some(n=>n.hasResult())&&(d=d.map(n=>n.hasResult()?new v1(n.source,0):n));for(let n of e.effects)n.is(oxe)&&(l=l&&l.setSelected(n.value,this.id));return d==this.active&&l==this.open?this:new oZ(d,this.id,l)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:HMe}}function QMe(t,e){if(t==e)return!0;for(let o=0,f=0;;){for(;o-1&&(o["aria-activedescendant"]=t+"-"+e),o}const ZMe=[];function Tse(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class v1{constructor(e,o,f=-1){this.source=e,this.state=o,this.explicitPos=f}hasResult(){return!1}update(e,o){let f=Tse(e),P=this;f?P=P.handleUserEvent(e,f,o):e.docChanged?P=P.handleChange(e):e.selection&&P.state!=0&&(P=new v1(P.source,0));for(let d of e.effects)if(d.is(Ece))P=new v1(P.source,1,d.value?tS(e.state):-1);else if(d.is(UI))P=new v1(P.source,0);else if(d.is(rxe))for(let l of d.value)l.source==P.source&&(P=l);return P}handleUserEvent(e,o,f){return o=="delete"||!f.activateOnTyping?this.map(e.changes):new v1(this.source,1)}handleChange(e){return e.changes.touchesRange(tS(e.startState))?new v1(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new v1(this.source,this.state,e.mapPos(this.explicitPos))}}class eM extends v1{constructor(e,o,f,P,d){super(e,2,o),this.result=f,this.from=P,this.to=d}hasResult(){return!0}handleUserEvent(e,o,f){var P;let d=e.changes.mapPos(this.from),l=e.changes.mapPos(this.to,1),n=tS(e.state);if((this.explicitPos<0?n<=d:nl||o=="delete"&&tS(e.startState)==this.from)return new v1(this.source,o=="input"&&f.activateOnTyping?1:0);let c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),b;return qMe(this.result.validFor,e.state,d,l)?new eM(this.source,c,this.result,d,l):this.result.update&&(b=this.result.update(this.result,d,l,new Ace(e.state,n,c>=0)))?new eM(this.source,c,b,b.from,(P=b.to)!==null&&P!==void 0?P:tS(e.state)):new v1(this.source,1,c)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new v1(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new eM(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function qMe(t,e,o,f){if(!t)return!1;let P=e.sliceDoc(o,f);return typeof t=="function"?t(P,o,f,e):txe(t,!0).test(P)}const rxe=cl.define({map(t,e){return t.map(o=>o.map(e))}}),oxe=cl.define(),Iv=Ap.define({create(){return oZ.start()},update(t,e){return t.update(e)},provide:t=>[cce.from(t,e=>e.tooltip),Oa.contentAttributes.from(t,e=>e.attrs)]});function ixe(t,e){const o=e.completion.apply||e.completion.label;let f=t.state.field(Iv).active.find(P=>P.source==e.source);return f instanceof eM?(typeof o=="string"?t.dispatch(Object.assign(Object.assign({},DMe(t.state,o,f.from,f.to)),{annotations:nxe.of(e.completion)})):o(t,e.completion,f.from,f.to),!0):!1}const WMe=VMe(Iv,ixe);function QQ(t,e="option"){return o=>{let f=o.state.field(Iv,!1);if(!f||!f.open||f.open.disabled||Date.now()-f.open.timestamp-1?f.open.selected+P*(t?1:-1):t?0:l-1;return n<0?n=e=="page"?0:l-1:n>=l&&(n=e=="page"?l-1:0),o.dispatch({effects:oxe.of(n)}),!0}}const YMe=t=>{let e=t.state.field(Iv,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(Iv,!1)?(t.dispatch({effects:Ece.of(!0)}),!0):!1,GMe=t=>{let e=t.state.field(Iv,!1);return!e||!e.active.some(o=>o.state!=0)?!1:(t.dispatch({effects:UI.of(null)}),!0)};class KMe{constructor(e,o){this.active=e,this.context=o,this.time=Date.now(),this.updates=[],this.done=void 0}}const JMe=50,eEe=1e3,tEe=Wd.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of t.state.field(Iv).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(Iv);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Iv)==e)return;let o=t.transactions.some(f=>(f.selection||f.docChanged)&&!Tse(f));for(let f=0;fJMe&&Date.now()-P.time>eEe){for(let d of P.context.abortListeners)try{d()}catch(l){tb(this.view.state,l)}P.context.abortListeners=null,this.running.splice(f--,1)}else P.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(f=>f.state==1&&!this.running.some(P=>P.active.source==f.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let f of t.transactions)Tse(f)=="input"?this.composing=2:this.composing==2&&f.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(Iv);for(let o of e.active)o.state==1&&!this.running.some(f=>f.active.source==o.source)&&this.startQuery(o)}startQuery(t){let{state:e}=this.view,o=tS(e),f=new Ace(e,o,t.explicitPos==o),P=new KMe(t,f);this.running.push(P),Promise.resolve(t.source(f)).then(d=>{P.context.aborted||(P.done=d||null,this.scheduleAccept())},d=>{this.view.dispatch({effects:UI.of(null)}),tb(this.view.state,d)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Vg).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],o=this.view.state.facet(Vg);for(let f=0;fl.source==P.active.source);if(d&&d.state==1)if(P.done==null){let l=new v1(P.active.source,0);for(let n of P.updates)l=l.update(n,o);l.state!=1&&e.push(l)}else this.startQuery(d)}e.length&&this.view.dispatch({effects:rxe.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Iv,!1);if(e&&e.tooltip&&this.view.state.facet(Vg).closeOnBlur){let o=e.open&&Nye(this.view,e.open.tooltip);(!o||!o.dom.contains(t.relatedTarget))&&this.view.dispatch({effects:UI.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Ece.of(!1)}),20),this.composing=0}}}),axe=Oa.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class nEe{constructor(e,o,f,P){this.field=e,this.line=o,this.from=f,this.to=P}}class Pce{constructor(e,o,f){this.field=e,this.from=o,this.to=f}map(e){let o=e.mapPos(this.from,-1,tg.TrackDel),f=e.mapPos(this.to,1,tg.TrackDel);return o==null||f==null?null:new Pce(this.field,o,f)}}class Rce{constructor(e,o){this.lines=e,this.fieldPositions=o}instantiate(e,o){let f=[],P=[o],d=e.doc.lineAt(o),l=/^\s*/.exec(d.text)[0];for(let c of this.lines){if(f.length){let b=l,i=/^\t*/.exec(c)[0].length;for(let O=0;Onew Pce(c.field,P[c.line]+c.from,P[c.line]+c.to));return{text:f,ranges:n}}static parse(e){let o=[],f=[],P=[],d;for(let l of e.split(/\r\n?|\n/)){for(;d=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(l);){let n=d[1]?+d[1]:null,c=d[2]||d[3]||"",b=-1;for(let i=0;i=b&&O.field++}P.push(new nEe(b,f.length,d.index,d.index+c.length)),l=l.slice(0,d.index)+c+l.slice(d.index+d[0].length)}for(let n;n=/\\([{}])/.exec(l);){l=l.slice(0,n.index)+n[1]+l.slice(n.index+n[0].length);for(let c of P)c.line==f.length&&c.from>n.index&&(c.from--,c.to--)}f.push(l)}return new Rce(f,P)}}let rEe=es.widget({widget:new class extends wx{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),oEe=es.mark({class:"cm-snippetField"});class EM{constructor(e,o){this.ranges=e,this.active=o,this.deco=es.set(e.map(f=>(f.from==f.to?rEe:oEe).range(f.from,f.to)))}map(e){let o=[];for(let f of this.ranges){let P=f.map(e);if(!P)return null;o.push(P)}return new EM(o,this.active)}selectionInsideField(e){return e.ranges.every(o=>this.ranges.some(f=>f.field==this.active&&f.from<=o.from&&f.to>=o.to))}}const wD=cl.define({map(t,e){return t&&t.map(e)}}),iEe=cl.define(),jI=Ap.define({create(){return null},update(t,e){for(let o of e.effects){if(o.is(wD))return o.value;if(o.is(iEe)&&t)return new EM(t.ranges,o.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Oa.decorations.from(t,e=>e?e.deco:es.none)});function Lce(t,e){return Yo.create(t.filter(o=>o.field==e).map(o=>Yo.range(o.from,o.to)))}function aEe(t){let e=Rce.parse(t);return(o,f,P,d)=>{let{text:l,ranges:n}=e.instantiate(o.state,P),c={changes:{from:P,to:d,insert:ru.of(l)},scrollIntoView:!0,annotations:f?nxe.of(f):void 0};if(n.length&&(c.selection=Lce(n,0)),n.length>1){let b=new EM(n,0),i=c.effects=[wD.of(b)];o.state.field(jI,!1)===void 0&&i.push(cl.appendConfig.of([jI,fEe,dEe,axe]))}o.dispatch(o.state.update(c))}}function sxe(t){return({state:e,dispatch:o})=>{let f=e.field(jI,!1);if(!f||t<0&&f.active==0)return!1;let P=f.active+t,d=t>0&&!f.ranges.some(l=>l.field==P+t);return o(e.update({selection:Lce(f.ranges,P),effects:wD.of(d?null:new EM(f.ranges,P)),scrollIntoView:!0})),!0}}const sEe=({state:t,dispatch:e})=>t.field(jI,!1)?(e(t.update({effects:wD.of(null)})),!0):!1,lEe=sxe(1),cEe=sxe(-1),uEe=[{key:"Tab",run:lEe,shift:cEe},{key:"Escape",run:sEe}],tme=Ba.define({combine(t){return t.length?t[0]:uEe}}),fEe=Nv.highest(IO.compute([tme],t=>t.facet(tme)));function Hd(t,e){return Object.assign(Object.assign({},e),{apply:aEe(t)})}const dEe=Oa.domEventHandlers({mousedown(t,e){let o=e.state.field(jI,!1),f;if(!o||(f=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let P=o.ranges.find(d=>d.from<=f&&d.to>=f);return!P||P.field==o.active?!1:(e.dispatch({selection:Lce(o.ranges,P.field),effects:wD.of(o.ranges.some(d=>d.field>P.field)?new EM(o.ranges,P.field):null),scrollIntoView:!0}),!0)}}),QI={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},sT=cl.define({map(t,e){let o=e.mapPos(t,-1,tg.TrackAfter);return o??void 0}}),Ice=new class extends pT{};Ice.startSide=1;Ice.endSide=-1;const lxe=Ap.define({create(){return Vu.empty},update(t,e){if(t=t.map(e.changes),e.selection){let o=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:f=>f>=o.from&&f<=o.to})}for(let o of e.effects)o.is(sT)&&(t=t.update({add:[Ice.range(o.value,o.value+1)]}));return t}});function hEe(){return[mEe,lxe]}const Pie="()[]{}<>";function cxe(t){for(let e=0;e{if((pEe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let P=t.state.selection.main;if(f.length>2||f.length==2&&Wy(Jm(f,0))==1||e!=P.from||o!=P.to)return!1;let d=yEe(t.state,f);return d?(t.dispatch(d),!0):!1}),gEe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let f=uxe(t,t.selection.main.head).brackets||QI.brackets,P=null,d=t.changeByRange(l=>{if(l.empty){let n=bEe(t.doc,l.head);for(let c of f)if(c==n&&iq(t.doc,l.head)==cxe(Jm(c,0)))return{changes:{from:l.head-c.length,to:l.head+c.length},range:Yo.cursor(l.head-c.length)}}return{range:P=l}});return P||e(t.update(d,{scrollIntoView:!0,userEvent:"delete.backward"})),!P},vEe=[{key:"Backspace",run:gEe}];function yEe(t,e){let o=uxe(t,t.selection.main.head),f=o.brackets||QI.brackets;for(let P of f){let d=cxe(Jm(P,0));if(e==P)return d==P?wEe(t,P,f.indexOf(P+P+P)>-1,o):xEe(t,P,d,o.before||QI.before);if(e==d&&fxe(t,t.selection.main.from))return _Ee(t,P,d)}return null}function fxe(t,e){let o=!1;return t.field(lxe).between(0,t.doc.length,f=>{f==e&&(o=!0)}),o}function iq(t,e){let o=t.sliceString(e,e+2);return o.slice(0,Wy(Jm(o,0)))}function bEe(t,e){let o=t.sliceString(e-2,e);return Wy(Jm(o,0))==o.length?o:o.slice(1)}function xEe(t,e,o,f){let P=null,d=t.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:o,from:l.to}],effects:sT.of(l.to+e.length),range:Yo.range(l.anchor+e.length,l.head+e.length)};let n=iq(t.doc,l.head);return!n||/\s/.test(n)||f.indexOf(n)>-1?{changes:{insert:e+o,from:l.head},effects:sT.of(l.head+e.length),range:Yo.cursor(l.head+e.length)}:{range:P=l}});return P?null:t.update(d,{scrollIntoView:!0,userEvent:"input.type"})}function _Ee(t,e,o){let f=null,P=t.changeByRange(d=>d.empty&&iq(t.doc,d.head)==o?{changes:{from:d.head,to:d.head+o.length,insert:o},range:Yo.cursor(d.head+o.length)}:f={range:d});return f?null:t.update(P,{scrollIntoView:!0,userEvent:"input.type"})}function wEe(t,e,o,f){let P=f.stringPrefixes||QI.stringPrefixes,d=null,l=t.changeByRange(n=>{if(!n.empty)return{changes:[{insert:e,from:n.from},{insert:e,from:n.to}],effects:sT.of(n.to+e.length),range:Yo.range(n.anchor+e.length,n.head+e.length)};let c=n.head,b=iq(t.doc,c),i;if(b==e){if(nme(t,c))return{changes:{insert:e+e,from:c},effects:sT.of(c+e.length),range:Yo.cursor(c+e.length)};if(fxe(t,c)){let w=o&&t.sliceDoc(c,c+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+w.length,insert:w},range:Yo.cursor(c+w.length)}}}else{if(o&&t.sliceDoc(c-2*e.length,c)==e+e&&(i=rme(t,c-2*e.length,P))>-1&&nme(t,i))return{changes:{insert:e+e+e+e,from:c},effects:sT.of(c+e.length),range:Yo.cursor(c+e.length)};if(t.charCategorizer(c)(b)!=Ad.Word&&rme(t,c,P)>-1&&!OEe(t,c,e,P))return{changes:{insert:e+e,from:c},effects:sT.of(c+e.length),range:Yo.cursor(c+e.length)}}return{range:d=n}});return d?null:t.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function nme(t,e){let o=Gu(t).resolveInner(e+1);return o.parent&&o.from==e}function OEe(t,e,o,f){let P=Gu(t).resolveInner(e,-1),d=f.reduce((l,n)=>Math.max(l,n.length),0);for(let l=0;l<5;l++){let n=t.sliceDoc(P.from,Math.min(P.to,P.from+o.length+d)),c=n.indexOf(o);if(!c||c>-1&&f.indexOf(n.slice(0,c))>-1){let i=P.firstChild;for(;i&&i.from==P.from&&i.to-i.from>o.length+c;){if(t.sliceDoc(i.to-o.length,i.to)==o)return!1;i=i.firstChild}return!0}let b=P.to==e&&P.parent;if(!b)break;P=b}return!1}function rme(t,e,o){let f=t.charCategorizer(e);if(f(t.sliceDoc(e-1,e))!=Ad.Word)return e;for(let P of o){let d=e-P.length;if(t.sliceDoc(d,e)==P&&f(t.sliceDoc(d-1,d))!=Ad.Word)return d}return-1}function hM(t={}){return[Iv,Vg.of(t),tEe,SEe,axe]}const dxe=[{key:"Ctrl-Space",run:XMe},{key:"Escape",run:GMe},{key:"ArrowDown",run:QQ(!0)},{key:"ArrowUp",run:QQ(!1)},{key:"PageDown",run:QQ(!0,"page")},{key:"PageUp",run:QQ(!1,"page")},{key:"Enter",run:YMe}],SEe=Nv.highest(IO.computeN([Vg],t=>t.facet(Vg).defaultKeymap?[dxe]:[]));class kEe{constructor(e,o,f){this.from=e,this.to=o,this.diagnostic=f}}class nT{constructor(e,o,f){this.diagnostics=e,this.panel=o,this.selected=f}static init(e,o,f){let P=e,d=f.facet(mxe).markerFilter;d&&(P=d(P));let l=es.set(P.map(n=>n.from==n.to||n.from==n.to-1&&f.doc.lineAt(n.from).to==n.from?es.widget({widget:new IEe(n),diagnostic:n}).range(n.from):es.mark({attributes:{class:"cm-lintRange cm-lintRange-"+n.severity+(n.markClass?" "+n.markClass:"")},diagnostic:n}).range(n.from,n.to)),!0);return new nT(l,o,pM(l))}}function pM(t,e=null,o=0){let f=null;return t.between(o,1e9,(P,d,{spec:l})=>{if(!(e&&l.diagnostic!=e))return f=new kEe(P,d,l.diagnostic),!1}),f}function TEe(t,e){let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(f=>f.is(hxe))||t.changes.touchesRange(o.from,o.to))}function CEe(t,e){return t.field(Fv,!1)?e:e.concat(cl.appendConfig.of(zEe))}const hxe=cl.define(),Dce=cl.define(),pxe=cl.define(),Fv=Ap.define({create(){return new nT(es.none,null,null)},update(t,e){if(e.docChanged){let o=t.diagnostics.map(e.changes),f=null;if(t.selected){let P=e.changes.mapPos(t.selected.from,1);f=pM(o,t.selected.diagnostic,P)||pM(o,null,P)}t=new nT(o,t.panel,f)}for(let o of e.effects)o.is(hxe)?t=nT.init(o.value,t.panel,e.state):o.is(Dce)?t=new nT(t.diagnostics,o.value?aq.open:null,t.selected):o.is(pxe)&&(t=new nT(t.diagnostics,t.panel,o.value));return t},provide:t=>[BI.from(t,e=>e.panel),Oa.decorations.from(t,e=>e.diagnostics)]}),AEe=es.mark({class:"cm-lintRange cm-lintRange-active"});function MEe(t,e,o){let{diagnostics:f}=t.state.field(Fv),P=[],d=2e8,l=0;f.between(e-(o<0?1:0),e+(o>0?1:0),(c,b,{spec:i})=>{e>=c&&e<=b&&(c==b||(e>c||o>0)&&(evxe(t,o,!1)))}const PEe=t=>{let e=t.state.field(Fv,!1);(!e||!e.panel)&&t.dispatch({effects:CEe(t.state,[Dce.of(!0)])});let o=DI(t,aq.open);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},ome=t=>{let e=t.state.field(Fv,!1);return!e||!e.panel?!1:(t.dispatch({effects:Dce.of(!1)}),!0)},REe=t=>{let e=t.state.field(Fv,!1);if(!e)return!1;let o=t.state.selection.main,f=e.diagnostics.iter(o.to+1);return!f.value&&(f=e.diagnostics.iter(0),!f.value||f.from==o.from&&f.to==o.to)?!1:(t.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0}),!0)},LEe=[{key:"Mod-Shift-m",run:PEe,preventDefault:!0},{key:"F8",run:REe}],mxe=Ba.define({combine(t){return Object.assign({sources:t.map(e=>e.source)},b_(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,o)=>e?o?f=>e(f)||o(f):e:o}))}});function gxe(t){let e=[];if(t)e:for(let{name:o}of t){for(let f=0;fd.toLowerCase()==P.toLowerCase())){e.push(P);continue e}}e.push("")}return e}function vxe(t,e,o){var f;let P=o?gxe(e.actions):[];return Df("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Df("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(f=e.actions)===null||f===void 0?void 0:f.map((d,l)=>{let n=!1,c=w=>{if(w.preventDefault(),n)return;n=!0;let y=pM(t.state.field(Fv).diagnostics,e);y&&d.apply(t,y.from,y.to)},{name:b}=d,i=P[l]?b.indexOf(P[l]):-1,O=i<0?b:[b.slice(0,i),Df("u",b.slice(i,i+1)),b.slice(i+1)];return Df("button",{type:"button",class:"cm-diagnosticAction",onclick:c,onmousedown:c,"aria-label":` Action: ${b}${i<0?"":` (access key "${P[l]})"`}.`},O)}),e.source&&Df("div",{class:"cm-diagnosticSource"},e.source))}class IEe extends wx{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Df("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class ime{constructor(e,o){this.diagnostic=o,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=vxe(e,o,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class aq{constructor(e){this.view=e,this.items=[];let o=P=>{if(P.keyCode==27)ome(this.view),this.view.focus();else if(P.keyCode==38||P.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(P.keyCode==40||P.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(P.keyCode==36)this.moveSelection(0);else if(P.keyCode==35)this.moveSelection(this.items.length-1);else if(P.keyCode==13)this.view.focus();else if(P.keyCode>=65&&P.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:d}=this.items[this.selectedIndex],l=gxe(d.actions);for(let n=0;n{for(let d=0;dome(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Fv).selected;if(!e)return-1;for(let o=0;o{let b=-1,i;for(let O=f;Of&&(this.items.splice(f,b-f),P=!0)),o&&i.diagnostic==o.diagnostic?i.dom.hasAttribute("aria-selected")||(i.dom.setAttribute("aria-selected","true"),d=i):i.dom.hasAttribute("aria-selected")&&i.dom.removeAttribute("aria-selected"),f++});f({sel:d.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:n})=>{let c=n.height/this.list.offsetHeight;l.topn.bottom&&(this.list.scrollTop+=(l.bottom-n.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),P&&this.sync()}sync(){let e=this.list.firstChild;function o(){let f=e;e=f.nextSibling,f.remove()}for(let f of this.items)if(f.dom.parentNode==this.list){for(;e!=f.dom;)o();e=f.dom.nextSibling}else this.list.insertBefore(f.dom,e);for(;e;)o()}moveSelection(e){if(this.selectedIndex<0)return;let o=this.view.state.field(Fv),f=pM(o.diagnostics,this.items[e].diagnostic);f&&this.view.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0,effects:pxe.of(f)})}static open(e){return new aq(e)}}function DEe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function HQ(t){return DEe(``,'width="6" height="3"')}const BEe=Oa.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:HQ("#d11")},".cm-lintRange-warning":{backgroundImage:HQ("orange")},".cm-lintRange-info":{backgroundImage:HQ("#999")},".cm-lintRange-hint":{backgroundImage:HQ("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),zEe=[Fv,Oa.decorations.compute([Fv],t=>{let{selected:e,panel:o}=t.field(Fv);return!e||!o||e.from==e.to?es.none:es.set([AEe.range(e.from,e.to)])}),ECe(MEe,{hideOn:TEe}),BEe],FEe=(()=>[NCe(),UCe(),iCe(),iAe(),L8e(),W6e(),J6e(),jl.allowMultipleSelections.of(!0),_8e(),sbe(z8e,{fallback:!0}),Q8e(),hEe(),hM(),bCe(),wCe(),fCe(),fMe(),IO.of([...vEe,...iMe,...EMe,...pAe,...M8e,...dxe,...LEe])])();/*! +`){let P="";for(let d=0,l=0;de&&d&&(P+=f),el&&(P+=n.sliceString(e-l,o-l,f)),l=c+1}return P}flatten(e){for(let o of this.children)o.flatten(e)}scanIdentical(e,o){if(!(e instanceof n_))return 0;let f=0,[P,d,l,n]=o>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;P+=o,d+=o){if(P==l||d==n)return f;let c=this.children[P],b=e.children[d];if(c!=b)return f+c.scanIdentical(b,o);f+=c.length+1}}static from(e,o=e.reduce((f,P)=>f+P.length+1,-1)){let f=0;for(let y of e)f+=y.lines;if(f<32){let y=[];for(let p of e)p.flatten(y);return new Fh(y,o)}let P=Math.max(32,f>>5),d=P<<1,l=P>>1,n=[],c=0,b=-1,i=[];function O(y){let p;if(y.lines>d&&y instanceof n_)for(let a of y.children)O(a);else y.lines>l&&(c>l||!c)?(w(),n.push(y)):y instanceof Fh&&c&&(p=i[i.length-1])instanceof Fh&&y.lines+p.lines<=32?(c+=y.lines,b+=y.length+1,i[i.length-1]=new Fh(p.text.concat(y.text),p.length+1+y.length)):(c+y.lines>P&&w(),c+=y.lines,b+=y.length+1,i.push(y))}function w(){c!=0&&(n.push(i.length==1?i[0]:n_.from(i,b)),b=-1,c=i.length=0)}for(let y of e)O(y);return w(),n.length==1?n[0]:new n_(n,o)}}ru.empty=new Fh([""],0);function Xke(t){let e=-1;for(let o of t)e+=o.length+1;return e}function fH(t,e,o=0,f=1e9){for(let P=0,d=0,l=!0;d=o&&(c>f&&(n=n.slice(0,f-P)),P0?1:(e instanceof Fh?e.text.length:e.children.length)<<1]}nextInner(e,o){for(this.done=this.lineBreak=!1;;){let f=this.nodes.length-1,P=this.nodes[f],d=this.offsets[f],l=d>>1,n=P instanceof Fh?P.text.length:P.children.length;if(l==(o>0?n:0)){if(f==0)return this.done=!0,this.value="",this;o>0&&this.offsets[f-1]++,this.nodes.pop(),this.offsets.pop()}else if((d&1)==(o>0?0:1)){if(this.offsets[f]+=o,e==0)return this.lineBreak=!0,this.value=` +`,this;e--}else if(P instanceof Fh){let c=P.text[l+(o<0?-1:0)];if(this.offsets[f]+=o,c.length>Math.max(0,e))return this.value=e==0?c:o>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=P.children[l+(o<0?-1:0)];e>c.length?(e-=c.length,this.offsets[f]+=o):(o<0&&this.offsets[f]--,this.nodes.push(c),this.offsets.push(o>0?1:(c instanceof Fh?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class wve{constructor(e,o,f){this.value="",this.done=!1,this.cursor=new lI(e,o>f?-1:1),this.pos=o>f?e.length:0,this.from=Math.min(o,f),this.to=Math.max(o,f)}nextInner(e,o){if(o<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,o<0?this.pos-this.to:this.from-this.pos);let f=o<0?this.pos-this.from:this.to-this.pos;e>f&&(e=f),f-=e;let{value:P}=this.cursor.next(e);return this.pos+=(P.length+e)*o,this.value=P.length<=f?P:o<0?P.slice(P.length-f):P.slice(0,f),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Ove{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:o,lineBreak:f,value:P}=this.inner.next(e);return o&&this.afterBreak?(this.value="",this.afterBreak=!1):o?(this.done=!0,this.value=""):f?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=P,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ru.prototype[Symbol.iterator]=function(){return this.iter()},lI.prototype[Symbol.iterator]=wve.prototype[Symbol.iterator]=Ove.prototype[Symbol.iterator]=function(){return this});let Gke=class{constructor(e,o,f,P){this.from=e,this.to=o,this.number=f,this.text=P}get length(){return this.to-this.from}},XA="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return XA[e-1]<=t;return!1}function xhe(t){return t>=127462&&t<=127487}const _he=8205;function ng(t,e,o=!0,f=!0){return(o?Sve:Jke)(t,e,f)}function Sve(t,e,o){if(e==t.length)return e;e&&kve(t.charCodeAt(e))&&Tve(t.charCodeAt(e-1))&&e--;let f=Jm(t,e);for(e+=Wy(f);e=0&&xhe(Jm(t,l));)d++,l-=2;if(d%2==0)break;e+=2}else break}return e}function Jke(t,e,o){for(;e>0;){let f=Sve(t,e-2,o);if(f=56320&&t<57344}function Tve(t){return t>=55296&&t<56320}function Jm(t,e){let o=t.charCodeAt(e);if(!Tve(o)||e+1==t.length)return o;let f=t.charCodeAt(e+1);return kve(f)?(o-55296<<10)+(f-56320)+65536:o}function Jle(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Wy(t){return t<65536?1:2}const Rae=/\r\n?|\n/;var tg=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(tg||(tg={}));class f_{constructor(e){this.sections=e}get length(){let e=0;for(let o=0;oe)return d+(e-P);d+=n}else{if(f!=tg.Simple&&b>=e&&(f==tg.TrackDel&&Pe||f==tg.TrackBefore&&Pe))return null;if(b>e||b==e&&o<0&&!n)return e==P||o<0?d:d+c;d+=c}P=b}if(e>P)throw new RangeError(`Position ${e} is out of range for changeset of length ${P}`);return d}touchesRange(e,o=e){for(let f=0,P=0;f=0&&P<=o&&n>=e)return Po?"cover":!0;P=n}return!1}toString(){let e="";for(let o=0;o=0?":"+P:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(o=>typeof o!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new f_(e)}static create(e){return new f_(e)}}class wp extends f_{constructor(e,o){super(e),this.inserted=o}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Lae(this,(o,f,P,d,l)=>e=e.replace(P,P+(f-o),l),!1),e}mapDesc(e,o=!1){return Iae(this,e,o,!0)}invert(e){let o=this.sections.slice(),f=[];for(let P=0,d=0;P=0){o[P]=n,o[P+1]=l;let c=P>>1;for(;f.length0&&q4(f,o,d.text),d.forward(i),n+=i}let b=e[l++];for(;n>1].toJSON()))}return e}static of(e,o,f){let P=[],d=[],l=0,n=null;function c(i=!1){if(!i&&!P.length)return;lw||O<0||w>o)throw new RangeError(`Invalid change range ${O} to ${w} (in doc of length ${o})`);let p=y?typeof y=="string"?ru.of(y.split(f||Rae)):y:ru.empty,a=p.length;if(O==w&&a==0)return;Ol&&Ng(P,O-l,-1),Ng(P,w-O,a),q4(d,P,p),l=w}}return b(e),c(!n),n}static empty(e){return new wp(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let o=[],f=[];for(let P=0;Pn&&typeof l!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(d.length==1)o.push(d[0],0);else{for(;f.length=0&&o<=0&&o==t[P+1]?t[P]+=e:e==0&&t[P]==0?t[P+1]+=o:f?(t[P]+=e,t[P+1]+=o):t.push(e,o)}function q4(t,e,o){if(o.length==0)return;let f=e.length-2>>1;if(f>1])),!(o||l==t.sections.length||t.sections[l+1]<0);)n=t.sections[l++],c=t.sections[l++];e(P,b,d,i,O),P=b,d=i}}}function Iae(t,e,o,f=!1){let P=[],d=f?[]:null,l=new MI(t),n=new MI(e);for(let c=-1;;)if(l.ins==-1&&n.ins==-1){let b=Math.min(l.len,n.len);Ng(P,b,-1),l.forward(b),n.forward(b)}else if(n.ins>=0&&(l.ins<0||c==l.i||l.off==0&&(n.len=0&&c=0){let b=0,i=l.len;for(;i;)if(n.ins==-1){let O=Math.min(i,n.len);b+=O,i-=O,n.forward(O)}else if(n.ins==0&&n.lenc||l.ins>=0&&l.len>c)&&(n||f.length>b),d.forward2(c),l.forward(c)}}}}class MI{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return o>=e.length?ru.empty:e[o]}textBit(e){let{inserted:o}=this.set,f=this.i-2>>1;return f>=o.length&&!e?ru.empty:o[f].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class aT{constructor(e,o,f){this.from=e,this.to=o,this.flags=f}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,o=-1){let f,P;return this.empty?f=P=e.mapPos(this.from,o):(f=e.mapPos(this.from,1),P=e.mapPos(this.to,-1)),f==this.from&&P==this.to?this:new aT(f,P,this.flags)}extend(e,o=e){if(e<=this.anchor&&o>=this.anchor)return Yo.range(e,o);let f=Math.abs(e-this.anchor)>Math.abs(o-this.anchor)?e:o;return Yo.range(this.anchor,f)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Yo.range(e.anchor,e.head)}static create(e,o,f){return new aT(e,o,f)}}class Yo{constructor(e,o){this.ranges=e,this.mainIndex=o}map(e,o=-1){return e.empty?this:Yo.create(this.ranges.map(f=>f.map(e,o)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let o=0;oe.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Yo(e.ranges.map(o=>aT.fromJSON(o)),e.main)}static single(e,o=e){return new Yo([Yo.range(e,o)],0)}static create(e,o=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let f=0,P=0;Pe?8:0)|d)}static normalized(e,o=0){let f=e[o];e.sort((P,d)=>P.from-d.from),o=e.indexOf(f);for(let P=1;Pd.head?Yo.range(c,n):Yo.range(n,c))}}return new Yo(e,o)}}function Ave(t,e){for(let o of t.ranges)if(o.to>e)throw new RangeError("Selection points outside of document")}let ece=0;class Ba{constructor(e,o,f,P,d){this.combine=e,this.compareInput=o,this.compare=f,this.isStatic=P,this.id=ece++,this.default=e([]),this.extensions=typeof d=="function"?d(this):d}get reader(){return this}static define(e={}){return new Ba(e.combine||(o=>o),e.compareInput||((o,f)=>o===f),e.compare||(e.combine?(o,f)=>o===f:tce),!!e.static,e.enables)}of(e){return new dH([],this,0,e)}compute(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new dH(e,this,1,o)}computeN(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new dH(e,this,2,o)}from(e,o){return o||(o=f=>f),this.compute([e],f=>o(f.field(e)))}}function tce(t,e){return t==e||t.length==e.length&&t.every((o,f)=>o===e[f])}class dH{constructor(e,o,f,P){this.dependencies=e,this.facet=o,this.type=f,this.value=P,this.id=ece++}dynamicSlot(e){var o;let f=this.value,P=this.facet.compareInput,d=this.id,l=e[d]>>1,n=this.type==2,c=!1,b=!1,i=[];for(let O of this.dependencies)O=="doc"?c=!0:O=="selection"?b=!0:((o=e[O.id])!==null&&o!==void 0?o:1)&1||i.push(e[O.id]);return{create(O){return O.values[l]=f(O),1},update(O,w){if(c&&w.docChanged||b&&(w.docChanged||w.selection)||Dae(O,i)){let y=f(O);if(n?!whe(y,O.values[l],P):!P(y,O.values[l]))return O.values[l]=y,1}return 0},reconfigure:(O,w)=>{let y,p=w.config.address[d];if(p!=null){let a=FH(w,p);if(this.dependencies.every(u=>u instanceof Ba?w.facet(u)===O.facet(u):u instanceof Ap?w.field(u,!1)==O.field(u,!1):!0)||(n?whe(y=f(O),a,P):P(y=f(O),a)))return O.values[l]=a,0}else y=f(O);return O.values[l]=y,1}}}}function whe(t,e,o){if(t.length!=e.length)return!1;for(let f=0;ft[c.id]),P=o.map(c=>c.type),d=f.filter(c=>!(c&1)),l=t[e.id]>>1;function n(c){let b=[];for(let i=0;if===P),e);return e.provide&&(o.provides=e.provide(o)),o}create(e){let o=e.facet(Ohe).find(f=>f.field==this);return((o==null?void 0:o.create)||this.createF)(e)}slot(e){let o=e[this.id]>>1;return{create:f=>(f.values[o]=this.create(f),1),update:(f,P)=>{let d=f.values[o],l=this.updateF(d,P);return this.compareF(d,l)?0:(f.values[o]=l,1)},reconfigure:(f,P)=>P.config.address[this.id]!=null?(f.values[o]=P.field(this),0):(f.values[o]=this.create(f),1)}}init(e){return[this,Ohe.of({field:this,create:e})]}get extension(){return this}}const nT={lowest:4,low:3,default:2,high:1,highest:0};function IL(t){return e=>new Mve(e,t)}const Vv={highest:IL(nT.highest),high:IL(nT.high),default:IL(nT.default),low:IL(nT.low),lowest:IL(nT.lowest)};class Mve{constructor(e,o){this.inner=e,this.prec=o}}class pD{of(e){return new Bae(this,e)}reconfigure(e){return pD.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Bae{constructor(e,o){this.compartment=e,this.inner=o}}class zH{constructor(e,o,f,P,d,l){for(this.base=e,this.compartments=o,this.dynamicSlots=f,this.address=P,this.staticValues=d,this.facets=l,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,o,f){let P=[],d=Object.create(null),l=new Map;for(let w of tTe(e,o,l))w instanceof Ap?P.push(w):(d[w.facet.id]||(d[w.facet.id]=[])).push(w);let n=Object.create(null),c=[],b=[];for(let w of P)n[w.id]=b.length<<1,b.push(y=>w.slot(y));let i=f==null?void 0:f.config.facets;for(let w in d){let y=d[w],p=y[0].facet,a=i&&i[w]||[];if(y.every(u=>u.type==0))if(n[p.id]=c.length<<1|1,tce(a,y))c.push(f.facet(p));else{let u=p.combine(y.map(h=>h.value));c.push(f&&p.compare(u,f.facet(p))?f.facet(p):u)}else{for(let u of y)u.type==0?(n[u.id]=c.length<<1|1,c.push(u.value)):(n[u.id]=b.length<<1,b.push(h=>u.dynamicSlot(h)));n[p.id]=b.length<<1,b.push(u=>eTe(u,p,y))}}let O=b.map(w=>w(n));return new zH(e,l,O,n,c,d)}}function tTe(t,e,o){let f=[[],[],[],[],[]],P=new Map;function d(l,n){let c=P.get(l);if(c!=null){if(c<=n)return;let b=f[c].indexOf(l);b>-1&&f[c].splice(b,1),l instanceof Bae&&o.delete(l.compartment)}if(P.set(l,n),Array.isArray(l))for(let b of l)d(b,n);else if(l instanceof Bae){if(o.has(l.compartment))throw new RangeError("Duplicate use of compartment in extensions");let b=e.get(l.compartment)||l.inner;o.set(l.compartment,b),d(b,n)}else if(l instanceof Mve)d(l.inner,l.prec);else if(l instanceof Ap)f[n].push(l),l.provides&&d(l.provides,n);else if(l instanceof dH)f[n].push(l),l.facet.extensions&&d(l.facet.extensions,nT.default);else{let b=l.extension;if(!b)throw new Error(`Unrecognized extension value in extension set (${l}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);d(b,n)}}return d(t,nT.default),f.reduce((l,n)=>l.concat(n))}function cI(t,e){if(e&1)return 2;let o=e>>1,f=t.status[o];if(f==4)throw new Error("Cyclic dependency between fields and/or facets");if(f&2)return f;t.status[o]=4;let P=t.computeSlot(t,t.config.dynamicSlots[o]);return t.status[o]=2|P}function FH(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const Eve=Ba.define(),zae=Ba.define({combine:t=>t.some(e=>e),static:!0}),Pve=Ba.define({combine:t=>t.length?t[0]:void 0,static:!0}),Rve=Ba.define(),Lve=Ba.define(),Ive=Ba.define(),Dve=Ba.define({combine:t=>t.length?t[0]:!1});class LO{constructor(e,o){this.type=e,this.value=o}static define(){return new nTe}}class nTe{of(e){return new LO(this,e)}}class rTe{constructor(e){this.map=e}of(e){return new cl(this,e)}}class cl{constructor(e,o){this.type=e,this.value=o}map(e){let o=this.type.map(this.value,e);return o===void 0?void 0:o==this.value?this:new cl(this.type,o)}is(e){return this.type==e}static define(e={}){return new rTe(e.map||(o=>o))}static mapEffects(e,o){if(!e.length)return e;let f=[];for(let P of e){let d=P.map(o);d&&f.push(d)}return f}}cl.reconfigure=cl.define();cl.appendConfig=cl.define();class Sp{constructor(e,o,f,P,d,l){this.startState=e,this.changes=o,this.selection=f,this.effects=P,this.annotations=d,this.scrollIntoView=l,this._doc=null,this._state=null,f&&Ave(f,o.newLength),d.some(n=>n.type==Sp.time)||(this.annotations=d.concat(Sp.time.of(Date.now())))}static create(e,o,f,P,d,l){return new Sp(e,o,f,P,d,l)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let o of this.annotations)if(o.type==e)return o.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let o=this.annotation(Sp.userEvent);return!!(o&&(o==e||o.length>e.length&&o.slice(0,e.length)==e&&o[e.length]=="."))}}Sp.time=LO.define();Sp.userEvent=LO.define();Sp.addToHistory=LO.define();Sp.remote=LO.define();function oTe(t,e){let o=[];for(let f=0,P=0;;){let d,l;if(f=t[f]))d=t[f++],l=t[f++];else if(P=0;P--){let d=f[P](t);d instanceof Sp?t=d:Array.isArray(d)&&d.length==1&&d[0]instanceof Sp?t=d[0]:t=zve(e,GA(d),!1)}return t}function aTe(t){let e=t.startState,o=e.facet(Ive),f=t;for(let P=o.length-1;P>=0;P--){let d=o[P](t);d&&Object.keys(d).length&&(f=Bve(f,Fae(e,d,t.changes.newLength),!0))}return f==t?t:Sp.create(e,t.changes,t.selection,f.effects,f.annotations,f.scrollIntoView)}const sTe=[];function GA(t){return t==null?sTe:Array.isArray(t)?t:[t]}var Md=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Md||(Md={}));const lTe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Nae;try{Nae=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function cTe(t){if(Nae)return Nae.test(t);for(let e=0;e"€"&&(o.toUpperCase()!=o.toLowerCase()||lTe.test(o)))return!0}return!1}function uTe(t){return e=>{if(!/\S/.test(e))return Md.Space;if(cTe(e))return Md.Word;for(let o=0;o-1)return Md.Word;return Md.Other}}class jl{constructor(e,o,f,P,d,l){this.config=e,this.doc=o,this.selection=f,this.values=P,this.status=e.statusTemplate.slice(),this.computeSlot=d,l&&(l._state=this);for(let n=0;nP.set(b,c)),o=null),P.set(n.value.compartment,n.value.extension)):n.is(cl.reconfigure)?(o=null,f=n.value):n.is(cl.appendConfig)&&(o=null,f=GA(f).concat(n.value));let d;o?d=e.startState.values.slice():(o=zH.resolve(f,P,this),d=new jl(o,this.doc,this.selection,o.dynamicSlots.map(()=>null),(c,b)=>b.reconfigure(c,this),null).values);let l=e.startState.facet(zae)?e.newSelection:e.newSelection.asSingle();new jl(o,e.newDoc,l,d,(n,c)=>c.update(n,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(o=>({changes:{from:o.from,to:o.to,insert:e},range:Yo.cursor(o.from+e.length)}))}changeByRange(e){let o=this.selection,f=e(o.ranges[0]),P=this.changes(f.changes),d=[f.range],l=GA(f.effects);for(let n=1;nl.spec.fromJSON(n,c)))}}return jl.create({doc:e.doc,selection:Yo.fromJSON(e.selection),extensions:o.extensions?P.concat([o.extensions]):P})}static create(e={}){let o=zH.resolve(e.extensions||[],new Map),f=e.doc instanceof ru?e.doc:ru.of((e.doc||"").split(o.staticFacet(jl.lineSeparator)||Rae)),P=e.selection?e.selection instanceof Yo?e.selection:Yo.single(e.selection.anchor,e.selection.head):Yo.single(0);return Ave(P,f.length),o.staticFacet(zae)||(P=P.asSingle()),new jl(o,f,P,o.dynamicSlots.map(()=>null),(d,l)=>l.create(d),null)}get tabSize(){return this.facet(jl.tabSize)}get lineBreak(){return this.facet(jl.lineSeparator)||` +`}get readOnly(){return this.facet(Dve)}phrase(e,...o){for(let f of this.facet(jl.phrases))if(Object.prototype.hasOwnProperty.call(f,e)){e=f[e];break}return o.length&&(e=e.replace(/\$(\$|\d*)/g,(f,P)=>{if(P=="$")return"$";let d=+(P||1);return!d||d>o.length?f:o[d-1]})),e}languageDataAt(e,o,f=-1){let P=[];for(let d of this.facet(Eve))for(let l of d(this,o,f))Object.prototype.hasOwnProperty.call(l,e)&&P.push(l[e]);return P}charCategorizer(e){return uTe(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:o,from:f,length:P}=this.doc.lineAt(e),d=this.charCategorizer(e),l=e-f,n=e-f;for(;l>0;){let c=ng(o,l,!1);if(d(o.slice(c,l))!=Md.Word)break;l=c}for(;nt.length?t[0]:4});jl.lineSeparator=Pve;jl.readOnly=Dve;jl.phrases=Ba.define({compare(t,e){let o=Object.keys(t),f=Object.keys(e);return o.length==f.length&&o.every(P=>t[P]==e[P])}});jl.languageData=Eve;jl.changeFilter=Rve;jl.transactionFilter=Lve;jl.transactionExtender=Ive;pD.reconfigure=cl.define();function b_(t,e,o={}){let f={};for(let P of t)for(let d of Object.keys(P)){let l=P[d],n=f[d];if(n===void 0)f[d]=l;else if(!(n===l||l===void 0))if(Object.hasOwnProperty.call(o,d))f[d]=o[d](n,l);else throw new Error("Config merge conflict for field "+d)}for(let P in e)f[P]===void 0&&(f[P]=e[P]);return f}class pT{eq(e){return this==e}range(e,o=e){return $ae.create(e,o,this)}}pT.prototype.startSide=pT.prototype.endSide=0;pT.prototype.point=!1;pT.prototype.mapMode=tg.TrackDel;let $ae=class Fve{constructor(e,o,f){this.from=e,this.to=o,this.value=f}static create(e,o,f){return new Fve(e,o,f)}};function Vae(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class nce{constructor(e,o,f,P){this.from=e,this.to=o,this.value=f,this.maxPoint=P}get length(){return this.to[this.to.length-1]}findIndex(e,o,f,P=0){let d=f?this.to:this.from;for(let l=P,n=d.length;;){if(l==n)return l;let c=l+n>>1,b=d[c]-e||(f?this.value[c].endSide:this.value[c].startSide)-o;if(c==l)return b>=0?l:n;b>=0?n=c:l=c+1}}between(e,o,f,P){for(let d=this.findIndex(o,-1e9,!0),l=this.findIndex(f,1e9,!1,d);dy||w==y&&b.startSide>0&&b.endSide<=0)continue;(y-w||b.endSide-b.startSide)<0||(l<0&&(l=w),b.point&&(n=Math.max(n,y-w)),f.push(b),P.push(w-l),d.push(y-l))}return{mapped:f.length?new nce(P,d,f,n):null,pos:l}}}class Vu{constructor(e,o,f,P){this.chunkPos=e,this.chunk=o,this.nextLayer=f,this.maxPoint=P}static create(e,o,f,P){return new Vu(e,o,f,P)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let o of this.chunk)e+=o.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:o=[],sort:f=!1,filterFrom:P=0,filterTo:d=this.length}=e,l=e.filter;if(o.length==0&&!l)return this;if(f&&(o=o.slice().sort(Vae)),this.isEmpty)return o.length?Vu.of(o):this;let n=new Nve(this,null,-1).goto(0),c=0,b=[],i=new oS;for(;n.value||c=0){let O=o[c++];i.addInner(O.from,O.to,O.value)||b.push(O)}else n.rangeIndex==1&&n.chunkIndexthis.chunkEnd(n.chunkIndex)||dn.to||d=d&&e<=d+l.length&&l.between(d,e-d,o-d,f)===!1)return}this.nextLayer.between(e,o,f)}}iter(e=0){return EI.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,o=0){return EI.from(e).goto(o)}static compare(e,o,f,P,d=-1){let l=e.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=d),n=o.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=d),c=She(l,n,f),b=new DL(l,c,d),i=new DL(n,c,d);f.iterGaps((O,w,y)=>khe(b,O,i,w,y,P)),f.empty&&f.length==0&&khe(b,0,i,0,0,P)}static eq(e,o,f=0,P){P==null&&(P=1e9-1);let d=e.filter(i=>!i.isEmpty&&o.indexOf(i)<0),l=o.filter(i=>!i.isEmpty&&e.indexOf(i)<0);if(d.length!=l.length)return!1;if(!d.length)return!0;let n=She(d,l),c=new DL(d,n,0).goto(f),b=new DL(l,n,0).goto(f);for(;;){if(c.to!=b.to||!Uae(c.active,b.active)||c.point&&(!b.point||!c.point.eq(b.point)))return!1;if(c.to>P)return!0;c.next(),b.next()}}static spans(e,o,f,P,d=-1){let l=new DL(e,null,d).goto(o),n=o,c=l.openStart;for(;;){let b=Math.min(l.to,f);if(l.point){let i=l.activeForPoint(l.to),O=l.pointFromn&&(P.span(n,b,l.active,c),c=l.openEnd(b));if(l.to>f)return c+(l.point&&l.to>f?1:0);n=l.to,l.next()}}static of(e,o=!1){let f=new oS;for(let P of e instanceof $ae?[e]:o?fTe(e):e)f.add(P.from,P.to,P.value);return f.finish()}}Vu.empty=new Vu([],[],null,-1);function fTe(t){if(t.length>1)for(let e=t[0],o=1;o0)return t.slice().sort(Vae);e=f}return t}Vu.empty.nextLayer=Vu.empty;class oS{finishChunk(e){this.chunks.push(new nce(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,o,f){this.addInner(e,o,f)||(this.nextLayer||(this.nextLayer=new oS)).add(e,o,f)}addInner(e,o,f){let P=e-this.lastTo||f.startSide-this.last.endSide;if(P<=0&&(e-this.lastFrom||f.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return P<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(o-this.chunkStart),this.last=f,this.lastFrom=e,this.lastTo=o,this.value.push(f),f.point&&(this.maxPoint=Math.max(this.maxPoint,o-e)),!0)}addChunk(e,o){if((e-this.lastTo||o.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,o.maxPoint),this.chunks.push(o),this.chunkPos.push(e);let f=o.value.length-1;return this.last=o.value[f],this.lastFrom=o.from[f]+e,this.lastTo=o.to[f]+e,!0}finish(){return this.finishInner(Vu.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let o=Vu.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,o}}function She(t,e,o){let f=new Map;for(let d of t)for(let l=0;l=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=f&&P.push(new Nve(l,o,f,d));return P.length==1?P[0]:new EI(P)}get startSide(){return this.value?this.value.startSide:0}goto(e,o=-1e9){for(let f of this.heap)f.goto(e,o);for(let f=this.heap.length>>1;f>=0;f--)cie(this.heap,f);return this.next(),this}forward(e,o){for(let f of this.heap)f.forward(e,o);for(let f=this.heap.length>>1;f>=0;f--)cie(this.heap,f);(this.to-e||this.value.endSide-o)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),cie(this.heap,0)}}}function cie(t,e){for(let o=t[e];;){let f=(e<<1)+1;if(f>=t.length)break;let P=t[f];if(f+1=0&&(P=t[f+1],f++),o.compare(P)<0)break;t[f]=o,t[e]=P,e=f}}class DL{constructor(e,o,f){this.minPoint=f,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=EI.from(e,o,f)}goto(e,o=-1e9){return this.cursor.goto(e,o),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=o,this.openStart=-1,this.next(),this}forward(e,o){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-o)<0;)this.removeActive(this.minActive);this.cursor.forward(e,o)}removeActive(e){SQ(this.active,e),SQ(this.activeTo,e),SQ(this.activeRank,e),this.minActive=The(this.active,this.activeTo)}addActive(e){let o=0,{value:f,to:P,rank:d}=this.cursor;for(;o-1&&(this.activeTo[P]-this.cursor.from||this.active[P].endSide-this.cursor.startSide)<0){if(this.activeTo[P]>e){this.to=this.activeTo[P],this.endSide=this.active[P].endSide;break}this.removeActive(P),f&&SQ(f,P)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let d=this.cursor.value;if(!d.point)this.addActive(f),this.cursor.next();else if(o&&this.cursor.to==this.to&&this.cursor.from=0&&f[P]=0&&!(this.activeRank[f]e||this.activeTo[f]==e&&this.active[f].endSide>=this.point.endSide)&&o.push(this.active[f]);return o.reverse()}openEnd(e){let o=0;for(let f=this.activeTo.length-1;f>=0&&this.activeTo[f]>e;f--)o++;return o}}function khe(t,e,o,f,P,d){t.goto(e),o.goto(f);let l=f+P,n=f,c=f-e;for(;;){let b=t.to+c-o.to||t.endSide-o.endSide,i=b<0?t.to+c:o.to,O=Math.min(i,l);if(t.point||o.point?t.point&&o.point&&(t.point==o.point||t.point.eq(o.point))&&Uae(t.activeForPoint(t.to),o.activeForPoint(o.to))||d.comparePoint(n,O,t.point,o.point):O>n&&!Uae(t.active,o.active)&&d.compareRange(n,O,t.active,o.active),i>l)break;n=i,b<=0&&t.next(),b>=0&&o.next()}}function Uae(t,e){if(t.length!=e.length)return!1;for(let o=0;o=e;f--)t[f+1]=t[f];t[e]=o}function The(t,e){let o=-1,f=1e9;for(let P=0;P=e)return P;if(P==t.length)break;d+=t.charCodeAt(P)==9?o-d%o:1,P=ng(t,P)}return f===!0?-1:t.length}const Qae="ͼ",Che=typeof Symbol>"u"?"__"+Qae:Symbol.for(Qae),Hae=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Ahe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class iS{constructor(e,o){this.rules=[];let{finish:f}=o||{};function P(l){return/^@/.test(l)?[l]:l.split(/,\s*/)}function d(l,n,c,b){let i=[],O=/^@(\w+)\b/.exec(l[0]),w=O&&O[1]=="keyframes";if(O&&n==null)return c.push(l[0]+";");for(let y in n){let p=n[y];if(/&/.test(y))d(y.split(/,\s*/).map(a=>l.map(u=>a.replace(/&/,u))).reduce((a,u)=>a.concat(u)),p,c);else if(p&&typeof p=="object"){if(!O)throw new RangeError("The value of a property ("+y+") should be a primitive value.");d(P(y),p,i,w)}else p!=null&&i.push(y.replace(/_.*/,"").replace(/[A-Z]/g,a=>"-"+a.toLowerCase())+": "+p+";")}(i.length||w)&&c.push((f&&!O&&!b?l.map(f):l).join(", ")+" {"+i.join(" ")+"}")}for(let l in e)d(P(l),e[l],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let e=Ahe[Che]||1;return Ahe[Che]=e+1,Qae+e.toString(36)}static mount(e,o,f){let P=e[Hae],d=f&&f.nonce;P?d&&P.setNonce(d):P=new dTe(e,d),P.mount(Array.isArray(o)?o:[o])}}let Mhe=new Map;class dTe{constructor(e,o){let f=e.ownerDocument||e,P=f.defaultView;if(!e.head&&e.adoptedStyleSheets&&P.CSSStyleSheet){let d=Mhe.get(f);if(d)return e.adoptedStyleSheets=[d.sheet,...e.adoptedStyleSheets],e[Hae]=d;this.sheet=new P.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],Mhe.set(f,this)}else{this.styleTag=f.createElement("style"),o&&this.styleTag.setAttribute("nonce",o);let d=e.head||e;d.insertBefore(this.styleTag,d.firstChild)}this.modules=[],e[Hae]=this}mount(e){let o=this.sheet,f=0,P=0;for(let d=0;d-1&&(this.modules.splice(n,1),P--,n=-1),n==-1){if(this.modules.splice(P++,0,l),o)for(let c=0;c",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},hTe=typeof navigator<"u"&&/Mac/.test(navigator.platform),pTe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var eg=0;eg<10;eg++)aS[48+eg]=aS[96+eg]=String(eg);for(var eg=1;eg<=24;eg++)aS[eg+111]="F"+eg;for(var eg=65;eg<=90;eg++)aS[eg]=String.fromCharCode(eg+32),PI[eg]=String.fromCharCode(eg);for(var uie in aS)PI.hasOwnProperty(uie)||(PI[uie]=aS[uie]);function mTe(t){var e=hTe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||pTe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",o=!e&&t.key||(t.shiftKey?PI:aS)[t.keyCode]||t.key||"Unidentified";return o=="Esc"&&(o="Escape"),o=="Del"&&(o="Delete"),o=="Left"&&(o="ArrowLeft"),o=="Up"&&(o="ArrowUp"),o=="Right"&&(o="ArrowRight"),o=="Down"&&(o="ArrowDown"),o}function NH(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function Zae(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function gTe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function hH(t,e){if(!e.anchorNode)return!1;try{return Zae(t,e.anchorNode)}catch{return!1}}function uM(t){return t.nodeType==3?mT(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function $H(t,e,o,f){return o?Ehe(t,e,o,f,-1)||Ehe(t,e,o,f,1):!1}function RI(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function Ehe(t,e,o,f,P){for(;;){if(t==o&&e==f)return!0;if(e==(P<0?0:CO(t))){if(t.nodeName=="DIV")return!1;let d=t.parentNode;if(!d||d.nodeType!=1)return!1;e=RI(t)+(P<0?0:1),t=d}else if(t.nodeType==1){if(t=t.childNodes[e+(P<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=P<0?CO(t):0}else return!1}}function CO(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function WZ(t,e){let o=e?t.left:t.right;return{left:o,right:o,top:t.top,bottom:t.bottom}}function vTe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function yTe(t,e,o,f,P,d,l,n){let c=t.ownerDocument,b=c.defaultView||window;for(let i=t,O=!1;i&&!O;)if(i.nodeType==1){let w,y=i==c.body,p=1,a=1;if(y)w=vTe(b);else{if(/^(fixed|sticky)$/.test(getComputedStyle(i).position)&&(O=!0),i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth){i=i.assignedSlot||i.parentNode;continue}let m=i.getBoundingClientRect();p=m.width/i.offsetWidth,a=m.height/i.offsetHeight,w={left:m.left,right:m.left+i.clientWidth*p,top:m.top,bottom:m.top+i.clientHeight*a}}let u=0,h=0;if(P=="nearest")e.top0&&e.bottom>w.bottom+h&&(h=e.bottom-w.bottom+h+l)):e.bottom>w.bottom&&(h=e.bottom-w.bottom+l,o<0&&e.top-h0&&e.right>w.right+u&&(u=e.right-w.right+u+d)):e.right>w.right&&(u=e.right-w.right+d,o<0&&e.lefto.clientHeight||o.scrollWidth>o.clientWidth)return o;o=o.assignedSlot||o.parentNode}else if(o.nodeType==11)o=o.host;else break;return null}class xTe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:o,focusNode:f}=e;this.set(o,Math.min(e.anchorOffset,o?CO(o):0),f,Math.min(e.focusOffset,f?CO(f):0))}set(e,o,f,P){this.anchorNode=e,this.anchorOffset=o,this.focusNode=f,this.focusOffset=P}}let EA=null;function $ve(t){if(t.setActive)return t.setActive();if(EA)return t.focus(EA);let e=[];for(let o=t;o&&(e.push(o,o.scrollTop,o.scrollLeft),o!=o.ownerDocument);o=o.parentNode);if(t.focus(EA==null?{get preventScroll(){return EA={preventScroll:!0},!0}}:void 0),!EA){EA=!1;for(let o=0;oMath.max(1,t.scrollHeight-t.clientHeight-4)}class Vg{constructor(e,o,f=!0){this.node=e,this.offset=o,this.precise=f}static before(e,o){return new Vg(e.parentNode,RI(e),o)}static after(e,o){return new Vg(e.parentNode,RI(e)+1,o)}}const rce=[];class id{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let o=this.posAtStart;for(let f of this.children){if(f==e)return o;o+=f.length+f.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,o){if(this.flags&2){let f=this.dom,P=null,d;for(let l of this.children){if(l.flags&7){if(!l.dom&&(d=P?P.nextSibling:f.firstChild)){let n=id.get(d);(!n||!n.parent&&n.canReuseDOM(l))&&l.reuseDOM(d)}l.sync(e,o),l.flags&=-8}if(d=P?P.nextSibling:f.firstChild,o&&!o.written&&o.node==f&&d!=l.dom&&(o.written=!0),l.dom.parentNode==f)for(;d&&d!=l.dom;)d=Rhe(d);else f.insertBefore(l.dom,d);P=l.dom}for(d=P?P.nextSibling:f.firstChild,d&&o&&o.node==f&&(o.written=!0);d;)d=Rhe(d)}else if(this.flags&1)for(let f of this.children)f.flags&7&&(f.sync(e,o),f.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,o){let f;if(e==this.dom)f=this.dom.childNodes[o];else{let P=CO(e)==0?0:o==0?-1:1;for(;;){let d=e.parentNode;if(d==this.dom)break;P==0&&d.firstChild!=d.lastChild&&(e==d.firstChild?P=-1:P=1),e=d}P<0?f=e:f=e.nextSibling}if(f==this.dom.firstChild)return 0;for(;f&&!id.get(f);)f=f.nextSibling;if(!f)return this.length;for(let P=0,d=0;;P++){let l=this.children[P];if(l.dom==f)return d;d+=l.length+l.breakAfter}}domBoundsAround(e,o,f=0){let P=-1,d=-1,l=-1,n=-1;for(let c=0,b=f,i=f;co)return O.domBoundsAround(e,o,b);if(w>=e&&P==-1&&(P=c,d=b),b>o&&O.dom.parentNode==this.dom){l=c,n=i;break}i=w,b=w+O.breakAfter}return{from:d,to:n<0?f+this.length:n,startDOM:(P?this.children[P-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:l=0?this.children[l].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let o=this.parent;o;o=o.parent){if(e&&(o.flags|=2),o.flags&1)return;o.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let o=e.parent;if(!o)return e;e=o}}replaceChildren(e,o,f=rce){this.markDirty();for(let P=e;Pthis.pos||e==this.pos&&(o>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let f=this.children[--this.i];this.pos-=f.length+f.breakAfter}}}function Qve(t,e,o,f,P,d,l,n,c){let{children:b}=t,i=b.length?b[e]:null,O=d.length?d[d.length-1]:null,w=O?O.breakAfter:l;if(!(e==f&&i&&!l&&!w&&d.length<2&&i.merge(o,P,d.length?O:null,o==0,n,c))){if(f0&&(!l&&d.length&&i.merge(o,i.length,d[0],!1,n,0)?i.breakAfter=d.shift().breakAfter:(o2);var Ua={mac:Dhe||/Mac/.test(zv.platform),windows:/Win/.test(zv.platform),linux:/Linux|X11/.test(zv.platform),ie:YZ,ie_version:Zve?qae.documentMode||6:Yae?+Yae[1]:Wae?+Wae[1]:0,gecko:Lhe,gecko_version:Lhe?+(/Firefox\/(\d+)/.exec(zv.userAgent)||[0,0])[1]:0,chrome:!!fie,chrome_version:fie?+fie[1]:0,ios:Dhe,android:/Android\b/.test(zv.userAgent),webkit:Ihe,safari:qve,webkit_version:Ihe?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:qae.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const OTe=256;class AO extends id{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,o){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(o&&o.node==this.dom&&(o.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,o,f){return this.flags&8||f&&(!(f instanceof AO)||this.length-(o-e)+f.length>OTe||f.flags&8)?!1:(this.text=this.text.slice(0,e)+(f?f.text:"")+this.text.slice(o),this.markDirty(),!0)}split(e){let o=new AO(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),o.flags|=this.flags&8,o}localPosFromDOM(e,o){return e==this.dom?o:o?this.text.length:0}domAtPos(e){return new Vg(this.dom,e)}domBoundsAround(e,o,f){return{from:f,to:f+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,o){return STe(this.dom,e,o)}}class MO extends id{constructor(e,o=[],f=0){super(),this.mark=e,this.children=o,this.length=f;for(let P of o)P.setParent(this)}setAttrs(e){if(Vve(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let o in this.mark.attrs)e.setAttribute(o,this.mark.attrs[o]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,o){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,o)}merge(e,o,f,P,d,l){return f&&(!(f instanceof MO&&f.mark.eq(this.mark))||e&&d<=0||oe&&o.push(f=e&&(P=d),f=c,d++}let l=this.length-e;return this.length=e,P>-1&&(this.children.length=P,this.markDirty()),new MO(this.mark,o,l)}domAtPos(e){return Wve(this,e)}coordsAt(e,o){return Xve(this,e,o)}}function STe(t,e,o){let f=t.nodeValue.length;e>f&&(e=f);let P=e,d=e,l=0;e==0&&o<0||e==f&&o>=0?Ua.chrome||Ua.gecko||(e?(P--,l=1):d=0)?0:n.length-1];return Ua.safari&&!l&&c.width==0&&(c=Array.prototype.find.call(n,b=>b.width)||c),l?WZ(c,l<0):c||null}class W4 extends id{static create(e,o,f){return new W4(e,o,f)}constructor(e,o,f){super(),this.widget=e,this.length=o,this.side=f,this.prevWidget=null}split(e){let o=W4.create(this.widget,this.length-e,this.side);return this.length-=e,o}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,o,f,P,d,l){return f&&(!(f instanceof W4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0)?Vg.before(this.dom):Vg.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,o){let f=this.widget.coordsAt(this.dom,e,o);if(f)return f;let P=this.dom.getClientRects(),d=null;if(!P.length)return null;let l=this.side?this.side<0:e>0;for(let n=l?P.length-1:0;d=P[n],!(e>0?n==0:n==P.length-1||d.top0?Vg.before(this.dom):Vg.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ru.empty}get isHidden(){return!0}}AO.prototype.children=W4.prototype.children=fM.prototype.children=rce;function Wve(t,e){let o=t.dom,{children:f}=t,P=0;for(let d=0;Pd&&e0;d--){let l=f[d-1];if(l.dom.parentNode==o)return l.domAtPos(l.length)}for(let d=P;d0&&e instanceof MO&&P.length&&(f=P[P.length-1])instanceof MO&&f.mark.eq(e.mark)?Yve(f,e.children[0],o-1):(P.push(e),e.setParent(t)),t.length+=e.length}function Xve(t,e,o){let f=null,P=-1,d=null,l=-1;function n(b,i){for(let O=0,w=0;O=i&&(y.children.length?n(y,i-w):(!d||d.isHidden&&o>0)&&(p>i||w==p&&y.getSide()>0)?(d=y,l=i-w):(w-1?1:0)!=P.length-(o&&P.indexOf(o)>-1?1:0))return!1;for(let d of f)if(d!=o&&(P.indexOf(d)==-1||t[d]!==e[d]))return!1;return!0}function Gae(t,e,o){let f=!1;if(e)for(let P in e)o&&P in o||(f=!0,P=="style"?t.style.cssText="":t.removeAttribute(P));if(o)for(let P in o)e&&e[P]==o[P]||(f=!0,P=="style"?t.style.cssText=o[P]:t.setAttribute(P,o[P]));return f}function TTe(t){let e=Object.create(null);for(let o=0;o0&&this.children[f-1].length==0;)this.children[--f].destroy();return this.children.length=f,this.markDirty(),this.length=e,o}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){oce(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,o){Yve(this,e,o)}addLineDeco(e){let o=e.spec.attributes,f=e.spec.class;o&&(this.attrs=Xae(o,this.attrs||{})),f&&(this.attrs=Xae({class:f},this.attrs||{}))}domAtPos(e){return Wve(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,o){var f;this.dom?this.flags&4&&(Vve(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Gae(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,o);let P=this.dom.lastChild;for(;P&&id.get(P)instanceof MO;)P=P.lastChild;if(!P||!this.length||P.nodeName!="BR"&&((f=id.get(P))===null||f===void 0?void 0:f.isEditable)==!1&&(!Ua.ios||!this.children.some(d=>d instanceof AO))){let d=document.createElement("BR");d.cmIgnore=!0,this.dom.appendChild(d)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,o;for(let f of this.children){if(!(f instanceof AO)||/[^ -~]/.test(f.text))return null;let P=uM(f.dom);if(P.length!=1)return null;e+=P[0].width,o=P[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:o}:null}coordsAt(e,o){let f=Xve(this,e,o);if(!this.children.length&&f&&this.parent){let{heightOracle:P}=this.parent.view.viewState,d=f.bottom-f.top;if(Math.abs(d-P.lineHeight)<2&&P.textHeight=o){if(d instanceof _p)return d;if(l>o)break}P=l+d.breakAfter}return null}}class eS extends id{constructor(e,o,f){super(),this.widget=e,this.length=o,this.deco=f,this.breakAfter=0,this.prevWidget=null}merge(e,o,f,P,d,l){return f&&(!(f instanceof eS)||!this.widget.compare(f.widget)||e>0&&d<=0||o0}}class Ox{eq(e){return!1}updateDOM(e,o){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,o,f){return null}get isHidden(){return!1}destroy(e){}}var T0=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(T0||(T0={}));class es extends pT{constructor(e,o,f,P){super(),this.startSide=e,this.endSide=o,this.widget=f,this.spec=P}get heightRelevant(){return!1}static mark(e){return new mD(e)}static widget(e){let o=Math.max(-1e4,Math.min(1e4,e.side||0)),f=!!e.block;return o+=f&&!e.inlineOrder?o>0?3e8:-4e8:o>0?1e8:-1e8,new sS(e,o,o,f,e.widget||null,!1)}static replace(e){let o=!!e.block,f,P;if(e.isBlockGap)f=-5e8,P=4e8;else{let{start:d,end:l}=Gve(e,o);f=(d?o?-3e8:-1:5e8)-1,P=(l?o?2e8:1:-6e8)+1}return new sS(e,f,P,o,e.widget||null,!0)}static line(e){return new gD(e)}static set(e,o=!1){return Vu.of(e,o)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}es.none=Vu.empty;class mD extends es{constructor(e){let{start:o,end:f}=Gve(e);super(o?-1:5e8,f?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var o,f;return this==e||e instanceof mD&&this.tagName==e.tagName&&(this.class||((o=this.attrs)===null||o===void 0?void 0:o.class))==(e.class||((f=e.attrs)===null||f===void 0?void 0:f.class))&&oce(this.attrs,e.attrs,"class")}range(e,o=e){if(e>=o)throw new RangeError("Mark decorations may not be empty");return super.range(e,o)}}mD.prototype.point=!1;class gD extends es{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof gD&&this.spec.class==e.spec.class&&oce(this.spec.attributes,e.spec.attributes)}range(e,o=e){if(o!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,o)}}gD.prototype.mapMode=tg.TrackBefore;gD.prototype.point=!0;class sS extends es{constructor(e,o,f,P,d,l){super(o,f,d,e),this.block=P,this.isReplace=l,this.mapMode=P?o<=0?tg.TrackBefore:tg.TrackAfter:tg.TrackDel}get type(){return this.startSide!=this.endSide?T0.WidgetRange:this.startSide<=0?T0.WidgetBefore:T0.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof sS&&CTe(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,o=e){if(this.isReplace&&(e>o||e==o&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&o!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,o)}}sS.prototype.point=!0;function Gve(t,e=!1){let{inclusiveStart:o,inclusiveEnd:f}=t;return o==null&&(o=t.inclusive),f==null&&(f=t.inclusive),{start:o??e,end:f??e}}function CTe(t,e){return t==e||!!(t&&e&&t.compare(e))}function Kae(t,e,o,f=0){let P=o.length-1;P>=0&&o[P]+f>=t?o[P]=Math.max(o[P],e):o.push(t,e)}class uI{constructor(e,o,f,P){this.doc=e,this.pos=o,this.end=f,this.disallowBlockEffectsFor=P,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=o}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof eS&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new _p),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(TQ(new fM(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof eS)&&this.getLine()}buildText(e,o,f){for(;e>0;){if(this.textOff==this.text.length){let{value:d,lineBreak:l,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(l){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=d,this.textOff=0}let P=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(o.slice(o.length-f)),this.getLine().append(TQ(new AO(this.text.slice(this.textOff,this.textOff+P)),o),f),this.atCursorPos=!0,this.textOff+=P,e-=P,f=0}}span(e,o,f,P){this.buildText(o-e,f,P),this.pos=o,this.openStart<0&&(this.openStart=P)}point(e,o,f,P,d,l){if(this.disallowBlockEffectsFor[l]&&f instanceof sS){if(f.block)throw new RangeError("Block decorations may not be specified via plugins");if(o>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let n=o-e;if(f instanceof sS)if(f.block)f.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new eS(f.widget||new zhe("div"),n,f));else{let c=W4.create(f.widget||new zhe("span"),n,n?0:f.startSide),b=this.atCursorPos&&!c.isEditable&&d<=P.length&&(e0),i=!c.isEditable&&(eP.length||f.startSide<=0),O=this.getLine();this.pendingBuffer==2&&!b&&!c.isEditable&&(this.pendingBuffer=0),this.flushBuffer(P),b&&(O.append(TQ(new fM(1),P),d),d=P.length+Math.max(0,d-P.length)),O.append(TQ(c,P),d),this.atCursorPos=i,this.pendingBuffer=i?eP.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=P.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(f);n&&(this.textOff+n<=this.text.length?this.textOff+=n:(this.skip+=n-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=o),this.openStart<0&&(this.openStart=d)}static build(e,o,f,P,d){let l=new uI(e,o,f,d);return l.openEnd=Vu.spans(P,o,f,l),l.openStart<0&&(l.openStart=l.openEnd),l.finish(l.openEnd),l}}function TQ(t,e){for(let o of e)t=new MO(o,[t],t.length);return t}class zhe extends Ox{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Kve=Ba.define(),Jve=Ba.define(),eye=Ba.define(),tye=Ba.define(),Jae=Ba.define(),nye=Ba.define(),rye=Ba.define(),oye=Ba.define({combine:t=>t.some(e=>e)}),iye=Ba.define({combine:t=>t.some(e=>e)});class JA{constructor(e,o="nearest",f="nearest",P=5,d=5,l=!1){this.range=e,this.y=o,this.x=f,this.yMargin=P,this.xMargin=d,this.isSnapshot=l}map(e){return e.empty?this:new JA(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new JA(Yo.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const CQ=cl.define({map:(t,e)=>t.map(e)});function tb(t,e,o){let f=t.facet(tye);f.length?f[0](e):window.onerror?window.onerror(String(e),o,void 0,void 0,e):o?console.error(o+":",e):console.error(e)}const XZ=Ba.define({combine:t=>t.length?t[0]:!0});let ATe=0;const YL=Ba.define();class Wd{constructor(e,o,f,P,d){this.id=e,this.create=o,this.domEventHandlers=f,this.domEventObservers=P,this.extension=d(this)}static define(e,o){const{eventHandlers:f,eventObservers:P,provide:d,decorations:l}=o||{};return new Wd(ATe++,e,f,P,n=>{let c=[YL.of(n)];return l&&c.push(LI.of(b=>{let i=b.plugin(n);return i?l(i):es.none})),d&&c.push(d(n)),c})}static fromClass(e,o){return Wd.define(f=>new e(f),o)}}class die{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let o=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(o)}catch(f){if(tb(o.state,f,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(o){tb(e.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var o;if(!((o=this.value)===null||o===void 0)&&o.destroy)try{this.value.destroy()}catch(f){tb(e.state,f,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const aye=Ba.define(),ice=Ba.define(),LI=Ba.define(),ace=Ba.define(),sye=Ba.define();function Fhe(t,e,o){let f=t.state.facet(sye);if(!f.length)return f;let P=f.map(l=>l instanceof Function?l(t):l),d=[];return Vu.spans(P,e,o,{point(){},span(l,n,c,b){let i=d;for(let O=c.length-1;O>=0;O--,b--){let w=c[O].spec.bidiIsolate,y;if(w!=null)if(b>0&&i.length&&(y=i[i.length-1]).to==l&&y.direction==w)y.to=n,i=y.inner;else{let p={from:l,to:n,direction:w,inner:[]};i.push(p),i=p.inner}}}}),d}const lye=Ba.define();function cye(t){let e=0,o=0,f=0,P=0;for(let d of t.state.facet(lye)){let l=d(t);l&&(l.left!=null&&(e=Math.max(e,l.left)),l.right!=null&&(o=Math.max(o,l.right)),l.top!=null&&(f=Math.max(f,l.top)),l.bottom!=null&&(P=Math.max(P,l.bottom)))}return{left:e,right:o,top:f,bottom:P}}const XL=Ba.define();class nb{constructor(e,o,f,P){this.fromA=e,this.toA=o,this.fromB=f,this.toB=P}join(e){return new nb(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let o=e.length,f=this;for(;o>0;o--){let P=e[o-1];if(!(P.fromA>f.toA)){if(P.toAi)break;d+=2}if(!c)return f;new nb(c.fromA,c.toA,c.fromB,c.toB).addToSet(f),l=c.toA,n=c.toB}}}class VH{constructor(e,o,f){this.view=e,this.state=o,this.transactions=f,this.flags=0,this.startState=e.state,this.changes=wp.empty(this.startState.doc.length);for(let d of f)this.changes=this.changes.compose(d.changes);let P=[];this.changes.iterChangedRanges((d,l,n,c)=>P.push(new nb(d,l,n,c))),this.changedRanges=P}static create(e,o,f){return new VH(e,o,f)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var qd=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(qd||(qd={}));const II=qd.LTR,uye=qd.RTL;function fye(t){let e=[];for(let o=0;o=o){if(n.level==f)return l;(d<0||(P!=0?P<0?n.fromo:e[d].level>n.level))&&(d=l)}}if(d<0)throw new RangeError("Index out of range");return d}}function dye(t,e){if(t.length!=e.length)return!1;for(let o=0;o=0;a-=3)if(Y2[a+1]==-y){let u=Y2[a+2],h=u&2?P:u&4?u&1?d:P:0;h&&(pf[O]=pf[Y2[a]]=h),n=a;break}}else{if(Y2.length==189)break;Y2[n++]=O,Y2[n++]=w,Y2[n++]=c}else if((p=pf[O])==2||p==1){let a=p==P;c=a?0:1;for(let u=n-3;u>=0;u-=3){let h=Y2[u+2];if(h&2)break;if(a)Y2[u+2]|=2;else{if(h&4)break;Y2[u+2]|=4}}}}}function DTe(t,e,o,f){for(let P=0,d=f;P<=o.length;P++){let l=P?o[P-1].to:t,n=Pc;)p==u&&(p=o[--a].from,u=a?o[a-1].to:t),pf[--p]=y;c=i}else d=b,c++}}}function tse(t,e,o,f,P,d,l){let n=f%2?2:1;if(f%2==P%2)for(let c=e,b=0;cc&&l.push(new Y4(c,a.from,y));let u=a.direction==II!=!(y%2);nse(t,u?f+1:f,P,a.inner,a.from,a.to,l),c=a.to}p=a.to}else{if(p==o||(i?pf[p]!=n:pf[p]==n))break;p++}w?tse(t,c,p,f+1,P,w,l):ce;){let i=!0,O=!1;if(!b||c>d[b-1].to){let a=pf[c-1];a!=n&&(i=!1,O=a==16)}let w=!i&&n==1?[]:null,y=i?f:f+1,p=c;e:for(;;)if(b&&p==d[b-1].to){if(O)break e;let a=d[--b];if(!i)for(let u=a.from,h=b;;){if(u==e)break e;if(h&&d[h-1].to==u)u=d[--h].from;else{if(pf[u-1]==n)break e;break}}if(w)w.push(a);else{a.topf.length;)pf[pf.length]=256;let f=[],P=e==II?0:1;return nse(t,P,P,o,0,t.length,f),f}function hye(t){return[new Y4(0,t,0)]}let pye="";function zTe(t,e,o,f,P){var d;let l=f.head-t.from,n=-1;if(l==0){if(!P||!t.length)return null;e[0].level!=o&&(l=e[0].side(!1,o),n=0)}else if(l==t.length){if(P)return null;let w=e[e.length-1];w.level!=o&&(l=w.side(!0,o),n=e.length-1)}n<0&&(n=Y4.find(e,l,(d=f.bidiLevel)!==null&&d!==void 0?d:-1,f.assoc));let c=e[n];l==c.side(P,o)&&(c=e[n+=P?1:-1],l=c.side(!P,o));let b=P==(c.dir==o),i=ng(t.text,l,b);if(pye=t.text.slice(Math.min(l,i),Math.max(l,i)),i!=c.side(P,o))return Yo.cursor(i+t.from,b?-1:1,c.level);let O=n==(P?e.length-1:0)?null:e[n+(P?1:-1)];return!O&&c.level!=o?Yo.cursor(P?t.to:t.from,P?-1:1,o):O&&O.level0&&f.length&&(f.every(({fromA:b,toA:i})=>ithis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let P=-1;this.view.inputState.composing>=0&&(!((o=this.domChanged)===null||o===void 0)&&o.newSel?P=this.domChanged.newSel.head:!QTe(e.changes,this.hasComposition)&&!e.selectionSet&&(P=e.state.selection.main.head));let d=P>-1?NTe(this.view,e.changes,P):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:b,to:i}=this.hasComposition;f=new nb(b,i,e.changes.mapPos(b,-1),e.changes.mapPos(i,1)).addToSet(f.slice())}this.hasComposition=d?{from:d.range.fromB,to:d.range.toB}:null,(Ua.ie||Ua.chrome)&&!d&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let l=this.decorations,n=this.updateDeco(),c=UTe(l,n,e.changes);return f=nb.extendWithRanges(f,c),!(this.flags&7)&&f.length==0?!1:(this.updateInner(f,e.startState.doc.length,d),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,o,f){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,o,f);let{observer:P}=this.view;P.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let l=Ua.chrome||Ua.ios?{node:P.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,l),this.flags&=-8,l&&(l.written||P.selectionRange.focusNode!=l.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(l=>l.flags&=-9);let d=[];if(this.view.viewport.from||this.view.viewport.to=0?P[l]:null;if(!n)break;let{fromA:c,toA:b,fromB:i,toB:O}=n,w,y,p,a;if(f&&f.range.fromBi){let _=uI.build(this.view.state.doc,i,f.range.fromB,this.decorations,this.dynamicDecorationMap),S=uI.build(this.view.state.doc,f.range.toB,O,this.decorations,this.dynamicDecorationMap);y=_.breakAtStart,p=_.openStart,a=S.openEnd;let A=this.compositionView(f);S.breakAtStart?A.breakAfter=1:S.content.length&&A.merge(A.length,A.length,S.content[0],!1,S.openStart,0)&&(A.breakAfter=S.content[0].breakAfter,S.content.shift()),_.content.length&&A.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),w=_.content.concat(A).concat(S.content)}else({content:w,breakAtStart:y,openStart:p,openEnd:a}=uI.build(this.view.state.doc,i,O,this.decorations,this.dynamicDecorationMap));let{i:u,off:h}=d.findPos(b,1),{i:m,off:v}=d.findPos(c,-1);Qve(this,m,v,u,h,w,y,p,a)}f&&this.fixCompositionDOM(f)}compositionView(e){let o=new AO(e.text.nodeValue);o.flags|=8;for(let{deco:P}of e.marks)o=new MO(P,[o],o.length);let f=new _p;return f.append(o,0),f}fixCompositionDOM(e){let o=(d,l)=>{l.flags|=8|(l.children.some(c=>c.flags&7)?1:0),this.markedForComposition.add(l);let n=id.get(d);n&&n!=l&&(n.dom=null),l.setDOM(d)},f=this.childPos(e.range.fromB,1),P=this.children[f.i];o(e.line,P);for(let d=e.marks.length-1;d>=-1;d--)f=P.childPos(f.off,1),P=P.children[f.i],o(d>=0?e.marks[d].node:e.text,P)}updateSelection(e=!1,o=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let f=this.view.root.activeElement,P=f==this.dom,d=!P&&hH(this.dom,this.view.observer.selectionRange)&&!(f&&this.dom.contains(f));if(!(P||o||d))return;let l=this.forceSelection;this.forceSelection=!1;let n=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(n.anchor)),b=n.empty?c:this.moveToLine(this.domAtPos(n.head));if(Ua.gecko&&n.empty&&!this.hasComposition&&FTe(c)){let O=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(O,c.node.childNodes[c.offset]||null)),c=b=new Vg(O,0),l=!0}let i=this.view.observer.selectionRange;(l||!i.focusNode||!$H(c.node,c.offset,i.anchorNode,i.anchorOffset)||!$H(b.node,b.offset,i.focusNode,i.focusOffset))&&(this.view.observer.ignore(()=>{Ua.android&&Ua.chrome&&this.dom.contains(i.focusNode)&&jTe(i.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let O=NH(this.view.root);if(O)if(n.empty){if(Ua.gecko){let w=$Te(c.node,c.offset);if(w&&w!=3){let y=gye(c.node,c.offset,w==1?1:-1);y&&(c=new Vg(y.node,y.offset))}}O.collapse(c.node,c.offset),n.bidiLevel!=null&&O.caretBidiLevel!==void 0&&(O.caretBidiLevel=n.bidiLevel)}else if(O.extend){O.collapse(c.node,c.offset);try{O.extend(b.node,b.offset)}catch{}}else{let w=document.createRange();n.anchor>n.head&&([c,b]=[b,c]),w.setEnd(b.node,b.offset),w.setStart(c.node,c.offset),O.removeAllRanges(),O.addRange(w)}d&&this.view.root.activeElement==this.dom&&(this.dom.blur(),f&&f.focus())}),this.view.observer.setSelectionRange(c,b)),this.impreciseAnchor=c.precise?null:new Vg(i.anchorNode,i.anchorOffset),this.impreciseHead=b.precise?null:new Vg(i.focusNode,i.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,o=e.state.selection.main,f=NH(e.root),{anchorNode:P,anchorOffset:d}=e.observer.selectionRange;if(!f||!o.empty||!o.assoc||!f.modify)return;let l=_p.find(this,o.head);if(!l)return;let n=l.posAtStart;if(o.head==n||o.head==n+l.length)return;let c=this.coordsAt(o.head,-1),b=this.coordsAt(o.head,1);if(!c||!b||c.bottom>b.top)return;let i=this.domAtPos(o.head+o.assoc);f.collapse(i.node,i.offset),f.modify("move",o.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let O=e.observer.selectionRange;e.docView.posFromDOM(O.anchorNode,O.anchorOffset)!=o.from&&f.collapse(P,d)}moveToLine(e){let o=this.dom,f;if(e.node!=o)return e;for(let P=e.offset;!f&&P=0;P--){let d=id.get(o.childNodes[P]);d instanceof _p&&(f=d.domAtPos(d.length))}return f?new Vg(f.node,f.offset,!0):e}nearest(e){for(let o=e;o;){let f=id.get(o);if(f&&f.rootView==this)return f;o=o.parentNode}return null}posFromDOM(e,o){let f=this.nearest(e);if(!f)throw new RangeError("Trying to find position for a DOM position outside of the document");return f.localPosFromDOM(e,o)+f.posAtStart}domAtPos(e){let{i:o,off:f}=this.childCursor().findPos(e,-1);for(;o=0;l--){let n=this.children[l],c=d-n.breakAfter,b=c-n.length;if(ce||n.covers(1))&&(!f||n instanceof _p&&!(f instanceof _p&&o>=0))&&(f=n,P=b),d=b}return f?f.coordsAt(e-P,o):null}coordsForChar(e){let{i:o,off:f}=this.childPos(e,1),P=this.children[o];if(!(P instanceof _p))return null;for(;P.children.length;){let{i:n,off:c}=P.childPos(f,1);for(;;n++){if(n==P.children.length)return null;if((P=P.children[n]).length)break}f=c}if(!(P instanceof AO))return null;let d=ng(P.text,f);if(d==f)return null;let l=mT(P.dom,f,d).getClientRects();for(let n=0;nMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,n=-1,c=this.view.textDirection==qd.LTR;for(let b=0,i=0;iP)break;if(b>=f){let y=O.dom.getBoundingClientRect();if(o.push(y.height),l){let p=O.dom.lastChild,a=p?uM(p):[];if(a.length){let u=a[a.length-1],h=c?u.right-y.left:y.right-u.left;h>n&&(n=h,this.minWidth=d,this.minWidthFrom=b,this.minWidthTo=w)}}}b=w+O.breakAfter}return o}textDirectionAt(e){let{i:o}=this.childPos(e,1);return getComputedStyle(this.children[o].dom).direction=="rtl"?qd.RTL:qd.LTR}measureTextSize(){for(let d of this.children)if(d instanceof _p){let l=d.measureTextSize();if(l)return l}let e=document.createElement("div"),o,f,P;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let d=uM(e.firstChild)[0];o=e.getBoundingClientRect().height,f=d?d.width/27:7,P=d?d.height:o,e.remove()}),{lineHeight:o,charWidth:f,textHeight:P}}childCursor(e=this.length){let o=this.children.length;return o&&(e-=this.children[--o].length),new jve(this.children,e,o)}computeBlockGapDeco(){let e=[],o=this.view.viewState;for(let f=0,P=0;;P++){let d=P==o.viewports.length?null:o.viewports[P],l=d?d.from-1:this.length;if(l>f){let n=(o.lineBlockAt(l).bottom-o.lineBlockAt(f).top)/this.view.scaleY;e.push(es.replace({widget:new $he(n),block:!0,inclusive:!0,isBlockGap:!0}).range(f,l))}if(!d)break;f=d.to+1}return es.set(e)}updateDeco(){let e=this.view.state.facet(LI).map((o,f)=>(this.dynamicDecorationMap[f]=typeof o=="function")?o(this.view):o);for(let o=e.length;oo.anchor?-1:1),P;if(!f)return;!o.empty&&(P=this.coordsAt(o.anchor,o.anchor>o.head?-1:1))&&(f={left:Math.min(f.left,P.left),top:Math.min(f.top,P.top),right:Math.max(f.right,P.right),bottom:Math.max(f.bottom,P.bottom)});let d=cye(this.view),l={left:f.left-d.left,top:f.top-d.top,right:f.right+d.right,bottom:f.bottom+d.bottom},{offsetWidth:n,offsetHeight:c}=this.view.scrollDOM;yTe(this.view.scrollDOM,l,o.head0)f=f.childNodes[P-1],P=CO(f);else break}if(o>=0)for(let f=t,P=e;;){if(f.nodeType==3)return{node:f,offset:P};if(f.nodeType==1&&P=0)f=f.childNodes[P],P=0;else break}return null}function $Te(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e{fe.from&&(o=!0)}),o}function HTe(t,e,o=1){let f=t.charCategorizer(e),P=t.doc.lineAt(e),d=e-P.from;if(P.length==0)return Yo.cursor(e);d==0?o=1:d==P.length&&(o=-1);let l=d,n=d;o<0?l=ng(P.text,d,!1):n=ng(P.text,d);let c=f(P.text.slice(l,n));for(;l>0;){let b=ng(P.text,l,!1);if(f(P.text.slice(b,l))!=c)break;l=b}for(;nt?e.left-t:Math.max(0,t-e.right)}function qTe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function hie(t,e){return t.tope.top+1}function Vhe(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function rse(t,e,o){let f,P,d,l,n=!1,c,b,i,O;for(let p=t.firstChild;p;p=p.nextSibling){let a=uM(p);for(let u=0;uv||l==v&&d>m){f=p,P=h,d=m,l=v;let _=v?o0?u0)}m==0?o>h.bottom&&(!i||i.bottomh.top)&&(b=p,O=h):i&&hie(i,h)?i=Uhe(i,h.bottom):O&&hie(O,h)&&(O=Vhe(O,h.top))}}if(i&&i.bottom>=o?(f=c,P=i):O&&O.top<=o&&(f=b,P=O),!f)return{node:t,offset:0};let w=Math.max(P.left,Math.min(P.right,e));if(f.nodeType==3)return jhe(f,w,o);if(n&&f.contentEditable!="false")return rse(f,w,o);let y=Array.prototype.indexOf.call(t.childNodes,f)+(e>=(P.left+P.right)/2?1:0);return{node:t,offset:y}}function jhe(t,e,o){let f=t.nodeValue.length,P=-1,d=1e9,l=0;for(let n=0;no?i.top-o:o-i.bottom)-1;if(i.left-1<=e&&i.right+1>=e&&O=(i.left+i.right)/2,y=w;if((Ua.chrome||Ua.gecko)&&mT(t,n).getBoundingClientRect().left==i.right&&(y=!w),O<=0)return{node:t,offset:n+(y?1:0)};P=n+(y?1:0),d=O}}}return{node:t,offset:P>-1?P:l>0?t.nodeValue.length:0}}function vye(t,e,o,f=-1){var P,d;let l=t.contentDOM.getBoundingClientRect(),n=l.top+t.viewState.paddingTop,c,{docHeight:b}=t.viewState,{x:i,y:O}=e,w=O-n;if(w<0)return 0;if(w>b)return t.state.doc.length;for(let _=t.viewState.heightOracle.textHeight/2,S=!1;c=t.elementAtHeight(w),c.type!=T0.Text;)for(;w=f>0?c.bottom+_:c.top-_,!(w>=0&&w<=b);){if(S)return o?null:0;S=!0,f=-f}O=n+w;let y=c.from;if(yt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:o?null:Qhe(t,l,c,i,O);let p=t.dom.ownerDocument,a=t.root.elementFromPoint?t.root:p,u=a.elementFromPoint(i,O);u&&!t.contentDOM.contains(u)&&(u=null),u||(i=Math.max(l.left+1,Math.min(l.right-1,i)),u=a.elementFromPoint(i,O),u&&!t.contentDOM.contains(u)&&(u=null));let h,m=-1;if(u&&((P=t.docView.nearest(u))===null||P===void 0?void 0:P.isEditable)!=!1){if(p.caretPositionFromPoint){let _=p.caretPositionFromPoint(i,O);_&&({offsetNode:h,offset:m}=_)}else if(p.caretRangeFromPoint){let _=p.caretRangeFromPoint(i,O);_&&({startContainer:h,startOffset:m}=_,(!t.contentDOM.contains(h)||Ua.safari&&WTe(h,m,i)||Ua.chrome&&YTe(h,m,i))&&(h=void 0))}}if(!h||!t.docView.dom.contains(h)){let _=_p.find(t.docView,y);if(!_)return w>c.top+c.height/2?c.to:c.from;({node:h,offset:m}=rse(_.dom,i,O))}let v=t.docView.nearest(h);if(!v)return null;if(v.isWidget&&((d=v.dom)===null||d===void 0?void 0:d.nodeType)==1){let _=v.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?v.posAtStart:v.posAtEnd}else return v.localPosFromDOM(h,m)+v.posAtStart}function Qhe(t,e,o,f,P){let d=Math.round((f-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&o.height>t.defaultLineHeight*1.5){let n=t.viewState.heightOracle.textHeight,c=Math.floor((P-o.top-(t.defaultLineHeight-n)*.5)/n);d+=c*t.viewState.heightOracle.lineLength}let l=t.state.sliceDoc(o.from,o.to);return o.from+jae(l,d,t.state.tabSize)}function WTe(t,e,o){let f;if(t.nodeType!=3||e!=(f=t.nodeValue.length))return!1;for(let P=t.nextSibling;P;P=P.nextSibling)if(P.nodeType!=1||P.nodeName!="BR")return!1;return mT(t,f-1,f).getBoundingClientRect().left>o}function YTe(t,e,o){if(e!=0)return!1;for(let P=t;;){let d=P.parentNode;if(!d||d.nodeType!=1||d.firstChild!=P)return!1;if(d.classList.contains("cm-line"))break;P=d}let f=t.nodeType==1?t.getBoundingClientRect():mT(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return o-f.left>5}function ose(t,e){let o=t.lineBlockAt(e);if(Array.isArray(o.type)){for(let f of o.type)if(f.to>e||f.to==e&&(f.to==o.to||f.type==T0.Text))return f}return o}function XTe(t,e,o,f){let P=ose(t,e.head),d=!f||P.type!=T0.Text||!(t.lineWrapping||P.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>P.from?e.head-1:e.head);if(d){let l=t.dom.getBoundingClientRect(),n=t.textDirectionAt(P.from),c=t.posAtCoords({x:o==(n==qd.LTR)?l.right-1:l.left+1,y:(d.top+d.bottom)/2});if(c!=null)return Yo.cursor(c,o?-1:1)}return Yo.cursor(o?P.to:P.from,o?-1:1)}function Hhe(t,e,o,f){let P=t.state.doc.lineAt(e.head),d=t.bidiSpans(P),l=t.textDirectionAt(P.from);for(let n=e,c=null;;){let b=zTe(P,d,l,n,o),i=pye;if(!b){if(P.number==(o?t.state.doc.lines:1))return n;i=` +`,P=t.state.doc.line(P.number+(o?1:-1)),d=t.bidiSpans(P),b=Yo.cursor(o?P.from:P.to)}if(c){if(!c(i))return n}else{if(!f)return b;c=f(i)}n=b}}function GTe(t,e,o){let f=t.state.charCategorizer(e),P=f(o);return d=>{let l=f(d);return P==Md.Space&&(P=l),P==l}}function KTe(t,e,o,f){let P=e.head,d=o?1:-1;if(P==(o?t.state.doc.length:0))return Yo.cursor(P,e.assoc);let l=e.goalColumn,n,c=t.contentDOM.getBoundingClientRect(),b=t.coordsAtPos(P,e.assoc||-1),i=t.documentTop;if(b)l==null&&(l=b.left-c.left),n=d<0?b.top:b.bottom;else{let y=t.viewState.lineBlockAt(P);l==null&&(l=Math.min(c.right-c.left,t.defaultCharacterWidth*(P-y.from))),n=(d<0?y.top:y.bottom)+i}let O=c.left+l,w=f??t.viewState.heightOracle.textHeight>>1;for(let y=0;;y+=10){let p=n+(w+y)*d,a=vye(t,{x:O,y:p},!1,d);if(pc.bottom||(d<0?aP)){let u=t.docView.coordsForChar(a),h=!u||p{if(e>d&&eP(t)),o.from,e.head>o.from?-1:1);return f==o.from?o:Yo.cursor(f,fnull),Ua.gecko&&m6e(e.contentDOM.ownerDocument)}handleEvent(e){!s6e(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,o){let f=this.handlers[e];if(f){for(let P of f.observers)P(this.view,o);for(let P of f.handlers){if(o.defaultPrevented)break;if(P(this.view,o)){o.preventDefault();break}}}}ensureHandlers(e){let o=e6e(e),f=this.handlers,P=this.view.contentDOM;for(let d in o)if(d!="scroll"){let l=!o[d].handlers.length,n=f[d];n&&l!=!n.handlers.length&&(P.removeEventListener(d,this.handleEvent),n=null),n||P.addEventListener(d,this.handleEvent,{passive:l})}for(let d in f)d!="scroll"&&!o[d]&&P.removeEventListener(d,this.handleEvent);this.handlers=o}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()f.keyCode==e.keyCode))&&!e.ctrlKey||t6e.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=o||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,KA(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Ua.safari&&!Ua.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Zhe(t,e){return(o,f)=>{try{return e.call(t,f,o)}catch(P){tb(o.state,P)}}}function e6e(t){let e=Object.create(null);function o(f){return e[f]||(e[f]={observers:[],handlers:[]})}for(let f of t){let P=f.spec;if(P&&P.domEventHandlers)for(let d in P.domEventHandlers){let l=P.domEventHandlers[d];l&&o(d).handlers.push(Zhe(f.value,l))}if(P&&P.domEventObservers)for(let d in P.domEventObservers){let l=P.domEventObservers[d];l&&o(d).observers.push(Zhe(f.value,l))}}for(let f in _x)o(f).handlers.push(_x[f]);for(let f in wx)o(f).observers.push(wx[f]);return e}const yye=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],t6e="dthko",bye=[16,17,18,20,91,92,224,225],AQ=6;function MQ(t){return Math.max(0,t)*.7+8}function n6e(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class r6e{constructor(e,o,f,P){this.view=e,this.startEvent=o,this.style=f,this.mustSelect=P,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=o,this.scrollParent=bTe(e.contentDOM),this.atoms=e.state.facet(ace).map(l=>l(e));let d=e.contentDOM.ownerDocument;d.addEventListener("mousemove",this.move=this.move.bind(this)),d.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=o.shiftKey,this.multiple=e.state.facet(jl.allowMultipleSelections)&&o6e(e,o),this.dragging=a6e(e,o)&&Oye(o)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var o;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&n6e(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let f=0,P=0,d=((o=this.scrollParent)===null||o===void 0?void 0:o.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},l=cye(this.view);e.clientX-l.left<=d.left+AQ?f=-MQ(d.left-e.clientX):e.clientX+l.right>=d.right-AQ&&(f=MQ(e.clientX-d.right)),e.clientY-l.top<=d.top+AQ?P=-MQ(d.top-e.clientY):e.clientY+l.bottom>=d.bottom-AQ&&(P=MQ(e.clientY-d.bottom)),this.setScrollSpeed(f,P)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,o){this.scrollSpeed={x:e,y:o},e||o?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let o=null;for(let f=0;fthis.select(this.lastEvent),20)}}function o6e(t,e){let o=t.state.facet(Kve);return o.length?o[0](e):Ua.mac?e.metaKey:e.ctrlKey}function i6e(t,e){let o=t.state.facet(Jve);return o.length?o[0](e):Ua.mac?!e.altKey:!e.ctrlKey}function a6e(t,e){let{main:o}=t.state.selection;if(o.empty)return!1;let f=NH(t.root);if(!f||f.rangeCount==0)return!0;let P=f.getRangeAt(0).getClientRects();for(let d=0;d=e.clientX&&l.top<=e.clientY&&l.bottom>=e.clientY)return!0}return!1}function s6e(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let o=e.target,f;o!=t.contentDOM;o=o.parentNode)if(!o||o.nodeType==11||(f=id.get(o))&&f.ignoreEvent(e))return!1;return!0}const _x=Object.create(null),wx=Object.create(null),xye=Ua.ie&&Ua.ie_version<15||Ua.ios&&Ua.webkit_version<604;function l6e(t){let e=t.dom.parentNode;if(!e)return;let o=e.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus(),setTimeout(()=>{t.focus(),o.remove(),_ye(t,o.value)},50)}function _ye(t,e){let{state:o}=t,f,P=1,d=o.toText(e),l=d.lines==o.selection.ranges.length;if(ise!=null&&o.selection.ranges.every(c=>c.empty)&&ise==d.toString()){let c=-1;f=o.changeByRange(b=>{let i=o.doc.lineAt(b.from);if(i.from==c)return{range:b};c=i.from;let O=o.toText((l?d.line(P++).text:e)+o.lineBreak);return{changes:{from:i.from,insert:O},range:Yo.cursor(b.from+O.length)}})}else l?f=o.changeByRange(c=>{let b=d.line(P++);return{changes:{from:c.from,to:c.to,insert:b.text},range:Yo.cursor(c.from+b.length)}}):f=o.replaceSelection(d);t.dispatch(f,{userEvent:"input.paste",scrollIntoView:!0})}wx.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};_x.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&(t.inputState.lastEscPress=Date.now()),!1);wx.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};wx.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};_x.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let o=null;for(let f of t.state.facet(eye))if(o=f(t,e),o)break;if(!o&&e.button==0&&(o=f6e(t,e)),o){let f=!t.hasFocus;t.inputState.startMouseSelection(new r6e(t,e,o,f)),f&&t.observer.ignore(()=>$ve(t.contentDOM));let P=t.inputState.mouseSelection;if(P)return P.start(e),P.dragging===!1}return!1};function qhe(t,e,o,f){if(f==1)return Yo.cursor(e,o);if(f==2)return HTe(t.state,e,o);{let P=_p.find(t.docView,e),d=t.state.doc.lineAt(P?P.posAtEnd:e),l=P?P.posAtStart:d.from,n=P?P.posAtEnd:d.to;return nt>=e.top&&t<=e.bottom,Whe=(t,e,o)=>wye(e,o)&&t>=o.left&&t<=o.right;function c6e(t,e,o,f){let P=_p.find(t.docView,e);if(!P)return 1;let d=e-P.posAtStart;if(d==0)return 1;if(d==P.length)return-1;let l=P.coordsAt(d,-1);if(l&&Whe(o,f,l))return-1;let n=P.coordsAt(d,1);return n&&Whe(o,f,n)?1:l&&wye(f,l)?-1:1}function Yhe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:o,bias:c6e(t,o,e.clientX,e.clientY)}}const u6e=Ua.ie&&Ua.ie_version<=11;let Xhe=null,Ghe=0,Khe=0;function Oye(t){if(!u6e)return t.detail;let e=Xhe,o=Khe;return Xhe=t,Khe=Date.now(),Ghe=!e||o>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Ghe+1)%3:1}function f6e(t,e){let o=Yhe(t,e),f=Oye(e),P=t.state.selection;return{update(d){d.docChanged&&(o.pos=d.changes.mapPos(o.pos),P=P.map(d.changes))},get(d,l,n){let c=Yhe(t,d),b,i=qhe(t,c.pos,c.bias,f);if(o.pos!=c.pos&&!l){let O=qhe(t,o.pos,o.bias,f),w=Math.min(O.from,i.from),y=Math.max(O.to,i.to);i=w1&&(b=d6e(P,c.pos))?b:n?P.addRange(i):Yo.create([i])}}}function d6e(t,e){for(let o=0;o=e)return Yo.create(t.ranges.slice(0,o).concat(t.ranges.slice(o+1)),t.mainIndex==o?0:t.mainIndex-(t.mainIndex>o?1:0))}return null}_x.dragstart=(t,e)=>{let{selection:{main:o}}=t.state;if(e.target.draggable){let P=t.docView.nearest(e.target);if(P&&P.isWidget){let d=P.posAtStart,l=d+P.length;(d>=o.to||l<=o.from)&&(o=Yo.range(d,l))}}let{inputState:f}=t;return f.mouseSelection&&(f.mouseSelection.dragging=!0),f.draggedContent=o,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(o.from,o.to)),e.dataTransfer.effectAllowed="copyMove"),!1};_x.dragend=t=>(t.inputState.draggedContent=null,!1);function Jhe(t,e,o,f){if(!o)return;let P=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:d}=t.inputState,l=f&&d&&i6e(t,e)?{from:d.from,to:d.to}:null,n={from:P,insert:o},c=t.state.changes(l?[l,n]:n);t.focus(),t.dispatch({changes:c,selection:{anchor:c.mapPos(P,-1),head:c.mapPos(P,1)},userEvent:l?"move.drop":"input.drop"}),t.inputState.draggedContent=null}_x.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let o=e.dataTransfer.files;if(o&&o.length){let f=Array(o.length),P=0,d=()=>{++P==o.length&&Jhe(t,e,f.filter(l=>l!=null).join(t.state.lineBreak),!1)};for(let l=0;l{/[\x00-\x08\x0e-\x1f]{2}/.test(n.result)||(f[l]=n.result),d()},n.readAsText(o[l])}return!0}else{let f=e.dataTransfer.getData("Text");if(f)return Jhe(t,e,f,!0),!0}return!1};_x.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let o=xye?null:e.clipboardData;return o?(_ye(t,o.getData("text/plain")||o.getData("text/uri-text")),!0):(l6e(t),!1)};function h6e(t,e){let o=t.dom.parentNode;if(!o)return;let f=o.appendChild(document.createElement("textarea"));f.style.cssText="position: fixed; left: -10000px; top: 10px",f.value=e,f.focus(),f.selectionEnd=e.length,f.selectionStart=0,setTimeout(()=>{f.remove(),t.focus()},50)}function p6e(t){let e=[],o=[],f=!1;for(let P of t.selection.ranges)P.empty||(e.push(t.sliceDoc(P.from,P.to)),o.push(P));if(!e.length){let P=-1;for(let{from:d}of t.selection.ranges){let l=t.doc.lineAt(d);l.number>P&&(e.push(l.text),o.push({from:l.from,to:Math.min(t.doc.length,l.to+1)})),P=l.number}f=!0}return{text:e.join(t.lineBreak),ranges:o,linewise:f}}let ise=null;_x.copy=_x.cut=(t,e)=>{let{text:o,ranges:f,linewise:P}=p6e(t.state);if(!o&&!P)return!1;ise=P?o:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:f,scrollIntoView:!0,userEvent:"delete.cut"});let d=xye?null:e.clipboardData;return d?(d.clearData(),d.setData("text/plain",o),!0):(h6e(t,o),!1)};const Sye=LO.define();function kye(t,e){let o=[];for(let f of t.facet(rye)){let P=f(t,e);P&&o.push(P)}return o?t.update({effects:o,annotations:Sye.of(!0)}):null}function Tye(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let o=kye(t.state,e);o?t.dispatch(o):t.update([])}},10)}wx.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),Tye(t)};wx.blur=t=>{t.observer.clearSelectionRange(),Tye(t)};wx.compositionstart=wx.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)};wx.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Ua.chrome&&Ua.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)};wx.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};_x.beforeinput=(t,e)=>{var o;let f;if(Ua.chrome&&Ua.android&&(f=yye.find(P=>P.inputType==e.inputType))&&(t.observer.delayAndroidKey(f.key,f.keyCode),f.key=="Backspace"||f.key=="Delete")){let P=((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0;setTimeout(()=>{var d;(((d=window.visualViewport)===null||d===void 0?void 0:d.height)||0)>P+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};const epe=new Set;function m6e(t){epe.has(t)||(epe.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const tpe=["pre-wrap","normal","pre-line","break-spaces"];class g6e{constructor(e){this.lineWrapping=e,this.doc=ru.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,o){let f=this.doc.lineAt(o).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(f+=Math.max(0,Math.ceil((o-e-f*this.lineLength*.5)/this.lineLength))),this.lineHeight*f}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return tpe.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let o=!1;for(let f=0;f-1,c=Math.round(o)!=Math.round(this.lineHeight)||this.lineWrapping!=n;if(this.lineWrapping=n,this.lineHeight=o,this.charWidth=f,this.textHeight=P,this.lineLength=d,c){this.heightSamples={};for(let b=0;b0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,o){this.height!=o&&(Math.abs(this.height-o)>mH&&(e.heightChanged=!0),this.height=o)}replace(e,o,f){return C0.of(f)}decomposeLeft(e,o){o.push(this)}decomposeRight(e,o){o.push(this)}applyChanges(e,o,f,P){let d=this,l=f.doc;for(let n=P.length-1;n>=0;n--){let{fromA:c,toA:b,fromB:i,toB:O}=P[n],w=d.lineAt(c,rd.ByPosNoHeight,f.setDoc(o),0,0),y=w.to>=b?w:d.lineAt(b,rd.ByPosNoHeight,f,0,0);for(O+=y.to-b,b=y.to;n>0&&w.from<=P[n-1].toA;)c=P[n-1].fromA,i=P[n-1].fromB,n--,cd*2){let n=e[o-1];n.break?e.splice(--o,1,n.left,null,n.right):e.splice(--o,1,n.left,n.right),f+=1+n.break,P-=n.size}else if(d>P*2){let n=e[f];n.break?e.splice(f,1,n.left,null,n.right):e.splice(f,1,n.left,n.right),f+=2+n.break,d-=n.size}else break;else if(P=d&&l(this.blockAt(0,f,P,d))}updateHeight(e,o=0,f=!1,P){return P&&P.from<=o&&P.more&&this.setHeight(e,P.heights[P.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Iv extends Cye{constructor(e,o){super(e,o,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,o,f,P){return new r_(P,this.length,f,this.height,this.breaks)}replace(e,o,f){let P=f[0];return f.length==1&&(P instanceof Iv||P instanceof Km&&P.flags&4)&&Math.abs(this.length-P.length)<10?(P instanceof Km?P=new Iv(P.length,this.height):P.height=this.height,this.outdated||(P.outdated=!1),P):C0.of(f)}updateHeight(e,o=0,f=!1,P){return P&&P.from<=o&&P.more?this.setHeight(e,P.heights[P.index++]):(f||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Km extends C0{constructor(e){super(e,0)}heightMetrics(e,o){let f=e.doc.lineAt(o).number,P=e.doc.lineAt(o+this.length).number,d=P-f+1,l,n=0;if(e.lineWrapping){let c=Math.min(this.height,e.lineHeight*d);l=c/d,this.length>d+1&&(n=(this.height-c)/(this.length-d-1))}else l=this.height/d;return{firstLine:f,lastLine:P,perLine:l,perChar:n}}blockAt(e,o,f,P){let{firstLine:d,lastLine:l,perLine:n,perChar:c}=this.heightMetrics(o,P);if(o.lineWrapping){let b=P+Math.round(Math.max(0,Math.min(1,(e-f)/this.height))*this.length),i=o.doc.lineAt(b),O=n+i.length*c,w=Math.max(f,e-O/2);return new r_(i.from,i.length,w,O,0)}else{let b=Math.max(0,Math.min(l-d,Math.floor((e-f)/n))),{from:i,length:O}=o.doc.line(d+b);return new r_(i,O,f+n*b,n,0)}}lineAt(e,o,f,P,d){if(o==rd.ByHeight)return this.blockAt(e,f,P,d);if(o==rd.ByPosNoHeight){let{from:y,to:p}=f.doc.lineAt(e);return new r_(y,p-y,0,0,0)}let{firstLine:l,perLine:n,perChar:c}=this.heightMetrics(f,d),b=f.doc.lineAt(e),i=n+b.length*c,O=b.number-l,w=P+n*O+c*(b.from-d-O);return new r_(b.from,b.length,Math.max(P,Math.min(w,P+this.height-i)),i,0)}forEachLine(e,o,f,P,d,l){e=Math.max(e,d),o=Math.min(o,d+this.length);let{firstLine:n,perLine:c,perChar:b}=this.heightMetrics(f,d);for(let i=e,O=P;i<=o;){let w=f.doc.lineAt(i);if(i==e){let p=w.number-n;O+=c*p+b*(e-d-p)}let y=c+b*w.length;l(new r_(w.from,w.length,O,y,0)),O+=y,i=w.to+1}}replace(e,o,f){let P=this.length-o;if(P>0){let d=f[f.length-1];d instanceof Km?f[f.length-1]=new Km(d.length+P):f.push(null,new Km(P-1))}if(e>0){let d=f[0];d instanceof Km?f[0]=new Km(e+d.length):f.unshift(new Km(e-1),null)}return C0.of(f)}decomposeLeft(e,o){o.push(new Km(e-1),null)}decomposeRight(e,o){o.push(null,new Km(this.length-e-1))}updateHeight(e,o=0,f=!1,P){let d=o+this.length;if(P&&P.from<=o+this.length&&P.more){let l=[],n=Math.max(o,P.from),c=-1;for(P.from>o&&l.push(new Km(P.from-o-1).updateHeight(e,o));n<=d&&P.more;){let i=e.doc.lineAt(n).length;l.length&&l.push(null);let O=P.heights[P.index++];c==-1?c=O:Math.abs(O-c)>=mH&&(c=-2);let w=new Iv(i,O);w.outdated=!1,l.push(w),n+=i+1}n<=d&&l.push(null,new Km(d-n).updateHeight(e,n));let b=C0.of(l);return(c<0||Math.abs(b.height-this.height)>=mH||Math.abs(c-this.heightMetrics(e,o).perLine)>=mH)&&(e.heightChanged=!0),b}else(f||this.outdated)&&(this.setHeight(e,e.heightForGap(o,o+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class y6e extends C0{constructor(e,o,f){super(e.length+o+f.length,e.height+f.height,o|(e.outdated||f.outdated?2:0)),this.left=e,this.right=f,this.size=e.size+f.size}get break(){return this.flags&1}blockAt(e,o,f,P){let d=f+this.left.height;return en))return b;let i=o==rd.ByPosNoHeight?rd.ByPosNoHeight:rd.ByPos;return c?b.join(this.right.lineAt(n,i,f,l,n)):this.left.lineAt(n,i,f,P,d).join(b)}forEachLine(e,o,f,P,d,l){let n=P+this.left.height,c=d+this.left.length+this.break;if(this.break)e=c&&this.right.forEachLine(e,o,f,n,c,l);else{let b=this.lineAt(c,rd.ByPos,f,P,d);e=e&&b.from<=o&&l(b),o>b.to&&this.right.forEachLine(b.to+1,o,f,n,c,l)}}replace(e,o,f){let P=this.left.length+this.break;if(othis.left.length)return this.balanced(this.left,this.right.replace(e-P,o-P,f));let d=[];e>0&&this.decomposeLeft(e,d);let l=d.length;for(let n of f)d.push(n);if(e>0&&npe(d,l-1),o=f&&o.push(null)),e>f&&this.right.decomposeLeft(e-f,o)}decomposeRight(e,o){let f=this.left.length,P=f+this.break;if(e>=P)return this.right.decomposeRight(e-P,o);e2*o.size||o.size>2*e.size?C0.of(this.break?[e,null,o]:[e,o]):(this.left=e,this.right=o,this.height=e.height+o.height,this.outdated=e.outdated||o.outdated,this.size=e.size+o.size,this.length=e.length+this.break+o.length,this)}updateHeight(e,o=0,f=!1,P){let{left:d,right:l}=this,n=o+d.length+this.break,c=null;return P&&P.from<=o+d.length&&P.more?c=d=d.updateHeight(e,o,f,P):d.updateHeight(e,o,f),P&&P.from<=n+l.length&&P.more?c=l=l.updateHeight(e,n,f,P):l.updateHeight(e,n,f),c?this.balanced(d,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function npe(t,e){let o,f;t[e]==null&&(o=t[e-1])instanceof Km&&(f=t[e+1])instanceof Km&&t.splice(e-1,3,new Km(o.length+1+f.length))}const b6e=5;class sce{constructor(e,o){this.pos=e,this.oracle=o,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,o){if(this.lineStart>-1){let f=Math.min(o,this.lineEnd),P=this.nodes[this.nodes.length-1];P instanceof Iv?P.length+=f-this.pos:(f>this.pos||!this.isCovered)&&this.nodes.push(new Iv(f-this.pos,-1)),this.writtenTo=f,o>f&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=o}point(e,o,f){if(e=b6e)&&this.addLineDeco(P,d,l)}else o>e&&this.span(e,o);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:o}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=o,this.writtenToe&&this.nodes.push(new Iv(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,o){let f=new Km(o-e);return this.oracle.doc.lineAt(e).to==o&&(f.flags|=4),f}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Iv)return e;let o=new Iv(0,-1);return this.nodes.push(o),o}addBlock(e){this.enterLine();let o=e.deco;o&&o.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,o&&o.endSide>0&&(this.covering=e)}addLineDeco(e,o,f){let P=this.ensureLine();P.length+=f,P.collapsed+=f,P.widgetHeight=Math.max(P.widgetHeight,e),P.breaks+=o,this.writtenTo=this.pos=this.pos+f}finish(e){let o=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(o instanceof Iv)&&!this.isCovered?this.nodes.push(new Iv(0,-1)):(this.writtenToi.clientHeight||i.scrollWidth>i.clientWidth)&&O.overflow!="visible"){let w=i.getBoundingClientRect();d=Math.max(d,w.left),l=Math.min(l,w.right),n=Math.max(n,w.top),c=b==t.parentNode?w.bottom:Math.min(c,w.bottom)}b=O.position=="absolute"||O.position=="fixed"?i.offsetParent:i.parentNode}else if(b.nodeType==11)b=b.host;else break;return{left:d-o.left,right:Math.max(d,l)-o.left,top:n-(o.top+e),bottom:Math.max(n,c)-(o.top+e)}}function O6e(t,e){let o=t.getBoundingClientRect();return{left:0,right:o.right-o.left,top:e,bottom:o.bottom-(o.top+e)}}class mie{constructor(e,o,f){this.from=e,this.to=o,this.size=f}static same(e,o){if(e.length!=o.length)return!1;for(let f=0;ftypeof f!="function"&&f.class=="cm-lineWrapping");this.heightOracle=new g6e(o),this.stateDeco=e.facet(LI).filter(f=>typeof f!="function"),this.heightMap=C0.empty().applyChanges(this.stateDeco,ru.empty,this.heightOracle.setDoc(e.doc),[new nb(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=es.set(this.lineGaps.map(f=>f.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:o}=this.state.selection;for(let f=0;f<=1;f++){let P=f?o.head:o.anchor;if(!e.some(({from:d,to:l})=>P>=d&&P<=l)){let{from:d,to:l}=this.lineBlockAt(P);e.push(new EQ(d,l))}}this.viewports=e.sort((f,P)=>f.from-P.from),this.scaler=this.heightMap.height<=7e6?ope:new C6e(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:GL(e,this.scaler))})}update(e,o=null){this.state=e.state;let f=this.stateDeco;this.stateDeco=this.state.facet(LI).filter(i=>typeof i!="function");let P=e.changedRanges,d=nb.extendWithRanges(P,x6e(f,this.stateDeco,e?e.changes:wp.empty(this.state.doc.length))),l=this.heightMap.height,n=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),d),this.heightMap.height!=l&&(e.flags|=2),n?(this.scrollAnchorPos=e.changes.mapPos(n.from,-1),this.scrollAnchorHeight=n.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let c=d.length?this.mapViewport(this.viewport,e.changes):this.viewport;(o&&(o.range.headc.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,o));let b=!e.changes.empty||e.flags&2||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),b&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),o&&(this.scrollTarget=o),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(iye)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let o=e.contentDOM,f=window.getComputedStyle(o),P=this.heightOracle,d=f.whiteSpace;this.defaultTextDirection=f.direction=="rtl"?qd.RTL:qd.LTR;let l=this.heightOracle.mustRefreshForWrapping(d),n=o.getBoundingClientRect(),c=l||this.mustMeasureContent||this.contentDOMHeight!=n.height;this.contentDOMHeight=n.height,this.mustMeasureContent=!1;let b=0,i=0;if(n.width&&n.height){let _=n.width/o.offsetWidth,S=n.height/o.offsetHeight;(_>.995&&_<1.005||!isFinite(_)||Math.abs(n.width-o.offsetWidth)<1)&&(_=1),(S>.995&&S<1.005||!isFinite(S)||Math.abs(n.height-o.offsetHeight)<1)&&(S=1),(this.scaleX!=_||this.scaleY!=S)&&(this.scaleX=_,this.scaleY=S,b|=8,l=c=!0)}let O=(parseInt(f.paddingTop)||0)*this.scaleY,w=(parseInt(f.paddingBottom)||0)*this.scaleY;(this.paddingTop!=O||this.paddingBottom!=w)&&(this.paddingTop=O,this.paddingBottom=w,b|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(P.lineWrapping&&(c=!0),this.editorWidth=e.scrollDOM.clientWidth,b|=8);let y=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=y&&(this.scrollAnchorHeight=-1,this.scrollTop=y),this.scrolledToBottom=Uve(e.scrollDOM);let p=(this.printing?O6e:w6e)(o,this.paddingTop),a=p.top-this.pixelViewport.top,u=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let h=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(h!=this.inView&&(this.inView=h,h&&(c=!0)),!this.inView&&!this.scrollTarget)return 0;let m=n.width;if((this.contentDOMWidth!=m||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=n.width,this.editorHeight=e.scrollDOM.clientHeight,b|=8),c){let _=e.docView.measureVisibleLineHeights(this.viewport);if(P.mustRefreshForHeights(_)&&(l=!0),l||P.lineWrapping&&Math.abs(m-this.contentDOMWidth)>P.charWidth){let{lineHeight:S,charWidth:A,textHeight:x}=e.docView.measureTextSize();l=S>0&&P.refresh(d,S,A,x,m/A,_),l&&(e.docView.minWidth=0,b|=8)}a>0&&u>0?i=Math.max(a,u):a<0&&u<0&&(i=Math.min(a,u)),P.heightChanged=!1;for(let S of this.viewports){let A=S.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(S);this.heightMap=(l?C0.empty().applyChanges(this.stateDeco,ru.empty,this.heightOracle,[new nb(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(P,0,l,new v6e(S.from,A))}P.heightChanged&&(b|=2)}let v=!this.viewportIsAppropriate(this.viewport,i)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(this.viewport=this.getViewport(i,this.scrollTarget)),this.updateForViewport(),(b&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(l?[]:this.lineGaps,e)),b|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),b}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,o){let f=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),P=this.heightMap,d=this.heightOracle,{visibleTop:l,visibleBottom:n}=this,c=new EQ(P.lineAt(l-f*1e3,rd.ByHeight,d,0,0).from,P.lineAt(n+(1-f)*1e3,rd.ByHeight,d,0,0).to);if(o){let{head:b}=o.range;if(bc.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),O=P.lineAt(b,rd.ByPos,d,0,0),w;o.y=="center"?w=(O.top+O.bottom)/2-i/2:o.y=="start"||o.y=="nearest"&&b=n+Math.max(10,Math.min(f,250)))&&P>l-2*1e3&&d>1,l=P<<1;if(this.defaultTextDirection!=qd.LTR&&!f)return[];let n=[],c=(b,i,O,w)=>{if(i-bb&&uu.from>=O.from&&u.to<=O.to&&Math.abs(u.from-b)u.fromh));if(!a){if(iu.from<=i&&u.to>=i)){let u=o.moveToLineBoundary(Yo.cursor(i),!1,!0).head;u>b&&(i=u)}a=new mie(b,i,this.gapSize(O,b,i,w))}n.push(a)};for(let b of this.viewportLines){if(b.lengthb.from&&c(b.from,w,b,i),yo.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let o=[];Vu.spans(e,this.viewport.from,this.viewport.to,{span(P,d){o.push({from:P,to:d})},point(){}},20);let f=o.length!=this.visibleRanges.length||this.visibleRanges.some((P,d)=>P.from!=o[d].from||P.to!=o[d].to);return this.visibleRanges=o,f?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(o=>o.from<=e&&o.to>=e)||GL(this.heightMap.lineAt(e,rd.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return GL(this.heightMap.lineAt(this.scaler.fromDOM(e),rd.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let o=this.lineBlockAtHeight(e+8);return o.from>=this.viewport.from||this.viewportLines[0].top-e>200?o:this.viewportLines[0]}elementAtHeight(e){return GL(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class EQ{constructor(e,o){this.from=e,this.to=o}}function k6e(t,e,o){let f=[],P=t,d=0;return Vu.spans(o,t,e,{span(){},point(l,n){l>P&&(f.push({from:P,to:l}),d+=l-P),P=n}},20),P=1)return e[e.length-1].to;let f=Math.floor(t*o);for(let P=0;;P++){let{from:d,to:l}=e[P],n=l-d;if(f<=n)return d+f;f-=n}}function RQ(t,e){let o=0;for(let{from:f,to:P}of t.ranges){if(e<=P){o+=e-f;break}o+=P-f}return o/t.total}function T6e(t,e){for(let o of t)if(e(o))return o}const ope={toDOM(t){return t},fromDOM(t){return t},scale:1};class C6e{constructor(e,o,f){let P=0,d=0,l=0;this.viewports=f.map(({from:n,to:c})=>{let b=o.lineAt(n,rd.ByPos,e,0,0).top,i=o.lineAt(c,rd.ByPos,e,0,0).bottom;return P+=i-b,{from:n,to:c,top:b,bottom:i,domTop:0,domBottom:0}}),this.scale=(7e6-P)/(o.height-P);for(let n of this.viewports)n.domTop=l+(n.top-d)*this.scale,l=n.domBottom=n.domTop+(n.bottom-n.top),d=n.bottom}toDOM(e){for(let o=0,f=0,P=0;;o++){let d=oGL(P,e)):t._content)}const LQ=Ba.define({combine:t=>t.join(" ")}),ase=Ba.define({combine:t=>t.indexOf(!0)>-1}),sse=iS.newName(),Aye=iS.newName(),Mye=iS.newName(),Eye={"&light":"."+Aye,"&dark":"."+Mye};function lse(t,e,o){return new iS(e,{finish(f){return/&/.test(f)?f.replace(/&\w*/,P=>{if(P=="&")return t;if(!o||!o[P])throw new RangeError(`Unsupported selector: ${P}`);return o[P]}):t+" "+f}})}const A6e=lse("."+sse,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Eye),KL="￿";class M6e{constructor(e,o){this.points=e,this.text="",this.lineSeparator=o.facet(jl.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=KL}readRange(e,o){if(!e)return this;let f=e.parentNode;for(let P=e;;){this.findPointBefore(f,P);let d=this.text.length;this.readNode(P);let l=P.nextSibling;if(l==o)break;let n=id.get(P),c=id.get(l);(n&&c?n.breakAfter:(n?n.breakAfter:ipe(P))||ipe(l)&&(P.nodeName!="BR"||P.cmIgnore)&&this.text.length>d)&&this.lineBreak(),P=l}return this.findPointBefore(f,o),this}readTextNode(e){let o=e.nodeValue;for(let f of this.points)f.node==e&&(f.pos=this.text.length+Math.min(f.offset,o.length));for(let f=0,P=this.lineSeparator?null:/\r\n?|\n/g;;){let d=-1,l=1,n;if(this.lineSeparator?(d=o.indexOf(this.lineSeparator,f),l=this.lineSeparator.length):(n=P.exec(o))&&(d=n.index,l=n[0].length),this.append(o.slice(f,d<0?o.length:d)),d<0)break;if(this.lineBreak(),l>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=l-1);f=d+l}}readNode(e){if(e.cmIgnore)return;let o=id.get(e),f=o&&o.overrideDOMText;if(f!=null){this.findPointInside(e,f.length);for(let P=f.iter();!P.next().done;)P.lineBreak?this.lineBreak():this.append(P.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,o){for(let f of this.points)f.node==e&&e.childNodes[f.offset]==o&&(f.pos=this.text.length)}findPointInside(e,o){for(let f of this.points)(e.nodeType==3?f.node==e:e.contains(f.node))&&(f.pos=this.text.length+(E6e(e,f.node,f.offset)?o:0))}}function E6e(t,e,o){for(;;){if(!e||o-1)this.newSel=null;else if(o>-1&&(this.bounds=e.docView.domBoundsAround(o,f,0))){let n=d||l?[]:I6e(e),c=new M6e(n,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=D6e(n,this.bounds.from)}else{let n=e.observer.selectionRange,c=d&&d.node==n.focusNode&&d.offset==n.focusOffset||!Zae(e.contentDOM,n.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(n.focusNode,n.focusOffset),b=l&&l.node==n.anchorNode&&l.offset==n.anchorOffset||!Zae(e.contentDOM,n.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(n.anchorNode,n.anchorOffset);this.newSel=Yo.single(b,c)}}}function Pye(t,e){let o,{newSel:f}=e,P=t.state.selection.main,d=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:l,to:n}=e.bounds,c=P.from,b=null;(d===8||Ua.android&&e.text.length=P.from&&o.to<=P.to&&(o.from!=P.from||o.to!=P.to)&&P.to-P.from-(o.to-o.from)<=4?o={from:P.from,to:P.to,insert:t.state.doc.slice(P.from,o.from).append(o.insert).append(t.state.doc.slice(o.to,P.to))}:(Ua.mac||Ua.android)&&o&&o.from==o.to&&o.from==P.head-1&&/^\. ?$/.test(o.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(f&&o.insert.length==2&&(f=Yo.single(f.main.anchor-1,f.main.head-1)),o={from:P.from,to:P.to,insert:ru.of([" "])}):Ua.chrome&&o&&o.from==o.to&&o.from==P.head&&o.insert.toString()==` + `&&t.lineWrapping&&(f&&(f=Yo.single(f.main.anchor-1,f.main.head-1)),o={from:P.from,to:P.to,insert:ru.of([" "])}),o){if(Ua.ios&&t.inputState.flushIOSKey()||Ua.android&&(o.from==P.from&&o.to==P.to&&o.insert.length==1&&o.insert.lines==2&&KA(t.contentDOM,"Enter",13)||(o.from==P.from-1&&o.to==P.to&&o.insert.length==0||d==8&&o.insert.lengthP.head)&&KA(t.contentDOM,"Backspace",8)||o.from==P.from&&o.to==P.to+1&&o.insert.length==0&&KA(t.contentDOM,"Delete",46)))return!0;let l=o.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let n,c=()=>n||(n=R6e(t,o,f));return t.state.facet(nye).some(b=>b(t,o.from,o.to,l,c))||t.dispatch(c()),!0}else if(f&&!f.main.eq(P)){let l=!1,n="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(l=!0),n=t.inputState.lastSelectionOrigin),t.dispatch({selection:f,scrollIntoView:l,userEvent:n}),!0}else return!1}function R6e(t,e,o){let f,P=t.state,d=P.selection.main;if(e.from>=d.from&&e.to<=d.to&&e.to-e.from>=(d.to-d.from)/3&&(!o||o.main.empty&&o.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let n=d.frome.to?P.sliceDoc(e.to,d.to):"";f=P.replaceSelection(t.state.toText(n+e.insert.sliceString(0,void 0,t.state.lineBreak)+c))}else{let n=P.changes(e),c=o&&o.main.to<=n.newLength?o.main:void 0;if(P.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=d.to&&e.to>=d.to-10){let b=t.state.sliceDoc(e.from,e.to),i,O=o&&mye(t,o.main.head);if(O){let p=e.insert.length-(e.to-e.from);i={from:O.from,to:O.to-p}}else i=t.state.doc.lineAt(d.head);let w=d.to-e.to,y=d.to-d.from;f=P.changeByRange(p=>{if(p.from==d.from&&p.to==d.to)return{changes:n,range:c||p.map(n)};let a=p.to-w,u=a-b.length;if(p.to-p.from!=y||t.state.sliceDoc(u,a)!=b||p.to>=i.from&&p.from<=i.to)return{range:p};let h=P.changes({from:u,to:a,insert:e.insert}),m=p.to-d.to;return{changes:h,range:c?Yo.range(Math.max(0,c.anchor+m),Math.max(0,c.head+m)):p.map(h)}})}else f={changes:n,selection:c&&P.selection.replaceRange(c)}}let l="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,l+=".compose",t.inputState.compositionFirstChange&&(l+=".start",t.inputState.compositionFirstChange=!1)),P.update(f,{userEvent:l,scrollIntoView:!0})}function L6e(t,e,o,f){let P=Math.min(t.length,e.length),d=0;for(;d0&&n>0&&t.charCodeAt(l-1)==e.charCodeAt(n-1);)l--,n--;if(f=="end"){let c=Math.max(0,d-Math.min(l,n));o-=l+c-d}if(l=l?d-o:0;d-=c,n=d+(n-l),l=d}else if(n=n?d-o:0;d-=c,l=d+(l-n),n=d}return{from:d,toA:l,toB:n}}function I6e(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:o,anchorOffset:f,focusNode:P,focusOffset:d}=t.observer.selectionRange;return o&&(e.push(new ape(o,f)),(P!=o||d!=f)&&e.push(new ape(P,d))),e}function D6e(t,e){if(t.length==0)return null;let o=t[0].pos,f=t.length==2?t[1].pos:o;return o>-1&&f>-1?Yo.single(o+e,f+e):null}const B6e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},gie=Ua.ie&&Ua.ie_version<=11;class z6e{constructor(e){this.view=e,this.active=!1,this.selectionRange=new xTe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(o=>{for(let f of o)this.queue.push(f);(Ua.ie&&Ua.ie_version<=11||Ua.ios&&e.composing)&&o.some(f=>f.type=="childList"&&f.removedNodes.length||f.type=="characterData"&&f.oldValue.length>f.target.nodeValue.length)?this.flushSoon():this.flush()}),gie&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var o;((o=this.view.docView)===null||o===void 0?void 0:o.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),o.length>0&&o[o.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(o=>{o.length>0&&o[o.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((o,f)=>o!=e[f]))){this.gapIntersection.disconnect();for(let o of e)this.gapIntersection.observe(o);this.gaps=e}}onSelectionChange(e){let o=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:f}=this,P=this.selectionRange;if(f.state.facet(XZ)?f.root.activeElement!=this.dom:!hH(f.dom,P))return;let d=P.anchorNode&&f.docView.nearest(P.anchorNode);if(d&&d.ignoreEvent(e)){o||(this.selectionChanged=!1);return}(Ua.ie&&Ua.ie_version<=11||Ua.android&&Ua.chrome)&&!f.state.selection.main.empty&&P.focusNode&&$H(P.focusNode,P.focusOffset,P.anchorNode,P.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,o=Ua.safari&&e.root.nodeType==11&&gTe(this.dom.ownerDocument)==this.dom&&F6e(this.view)||NH(e.root);if(!o||this.selectionRange.eq(o))return!1;let f=hH(this.dom,o);return f&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let d=this.delayedAndroidKey;d&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=d.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&d.force&&KA(this.dom,d.key,d.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(P)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:o,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let o=-1,f=-1,P=!1;for(let d of e){let l=this.readMutation(d);l&&(l.typeOver&&(P=!0),o==-1?{from:o,to:f}=l:(o=Math.min(l.from,o),f=Math.max(l.to,f)))}return{from:o,to:f,typeOver:P}}readChange(){let{from:e,to:o,typeOver:f}=this.processRecords(),P=this.selectionChanged&&hH(this.dom,this.selectionRange);if(e<0&&!P)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let d=new P6e(this.view,e,o,f);return this.view.docView.domChanged={newSel:d.newSel?d.newSel.main:null},d}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let o=this.readChange();if(!o)return this.view.requestMeasure(),!1;let f=this.view.state,P=Pye(this.view,o);return this.view.state==f&&this.view.update([]),P}readMutation(e){let o=this.view.docView.nearest(e.target);if(!o||o.ignoreMutation(e))return null;if(o.markDirty(e.type=="attributes"),e.type=="attributes"&&(o.flags|=4),e.type=="childList"){let f=spe(o,e.previousSibling||e.target.previousSibling,-1),P=spe(o,e.nextSibling||e.target.nextSibling,1);return{from:f?o.posAfter(f):o.posAtStart,to:P?o.posBefore(P):o.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,o,f;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(o=this.gapIntersection)===null||o===void 0||o.disconnect(),(f=this.resizeScroll)===null||f===void 0||f.disconnect();for(let P of this.scrollTargets)P.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function spe(t,e,o){for(;e;){let f=id.get(e);if(f&&f.parent==t)return f;let P=e.parentNode;e=P!=t.dom?P:o>0?e.nextSibling:e.previousSibling}return null}function F6e(t){let e=null;function o(c){c.preventDefault(),c.stopImmediatePropagation(),e=c.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",o,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",o,!0),!e)return null;let f=e.startContainer,P=e.startOffset,d=e.endContainer,l=e.endOffset,n=t.docView.domAtPos(t.state.selection.main.anchor);return $H(n.node,n.offset,d,l)&&([f,P,d,l]=[d,l,f,P]),{anchorNode:f,anchorOffset:P,focusNode:d,focusOffset:l}}class Oa{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:o}=e;this.dispatchTransactions=e.dispatchTransactions||o&&(f=>f.forEach(P=>o(P,this)))||(f=>this.update(f)),this.dispatch=this.dispatch.bind(this),this._root=e.root||_Te(e.parent)||document,this.viewState=new rpe(e.state||jl.create(e)),e.scrollTo&&e.scrollTo.is(CQ)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(YL).map(f=>new die(f));for(let f of this.plugins)f.update(this);this.observer=new z6e(this),this.inputState=new JTe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Nhe(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let o=e.length==1&&e[0]instanceof Sp?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(o,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let o=!1,f=!1,P,d=this.state;for(let w of e){if(w.startState!=d)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");d=w.state}if(this.destroyed){this.viewState.state=d;return}let l=this.hasFocus,n=0,c=null;e.some(w=>w.annotation(Sye))?(this.inputState.notifiedFocused=l,n=1):l!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=l,c=kye(d,l),c||(n=1));let b=this.observer.delayedAndroidKey,i=null;if(b?(this.observer.clearDelayedAndroidKey(),i=this.observer.readChange(),(i&&!this.state.doc.eq(d.doc)||!this.state.selection.eq(d.selection))&&(i=null)):this.observer.clear(),d.facet(jl.phrases)!=this.state.facet(jl.phrases))return this.setState(d);P=VH.create(this,d,e),P.flags|=n;let O=this.viewState.scrollTarget;try{this.updateState=2;for(let w of e){if(O&&(O=O.map(w.changes)),w.scrollIntoView){let{main:y}=w.state.selection;O=new JA(y.empty?y:Yo.cursor(y.head,y.head>y.anchor?-1:1))}for(let y of w.effects)y.is(CQ)&&(O=y.value.clip(this.state))}this.viewState.update(P,O),this.bidiCache=UH.update(this.bidiCache,P.changes),P.empty||(this.updatePlugins(P),this.inputState.update(P)),o=this.docView.update(P),this.state.facet(XL)!=this.styleModules&&this.mountStyles(),f=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(o,e.some(w=>w.isUserEvent("select.pointer")))}finally{this.updateState=0}if(P.startState.facet(LQ)!=P.state.facet(LQ)&&(this.viewState.mustMeasureContent=!0),(o||f||O||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!P.empty)for(let w of this.state.facet(Jae))try{w(P)}catch(y){tb(this.state,y,"update listener")}(c||i)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),i&&!Pye(this,i)&&b.force&&KA(this.contentDOM,b.key,b.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let o=this.hasFocus;try{for(let f of this.plugins)f.destroy(this);this.viewState=new rpe(e),this.plugins=e.facet(YL).map(f=>new die(f)),this.pluginMap.clear();for(let f of this.plugins)f.update(this);this.docView.destroy(),this.docView=new Nhe(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}o&&this.focus(),this.requestMeasure()}updatePlugins(e){let o=e.startState.facet(YL),f=e.state.facet(YL);if(o!=f){let P=[];for(let d of f){let l=o.indexOf(d);if(l<0)P.push(new die(d));else{let n=this.plugins[l];n.mustUpdate=e,P.push(n)}}for(let d of this.plugins)d.mustUpdate!=e&&d.destroy(this);this.plugins=P,this.pluginMap.clear()}else for(let P of this.plugins)P.mustUpdate=e;for(let P=0;P-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let o=null,f=this.scrollDOM,P=f.scrollTop*this.scaleY,{scrollAnchorPos:d,scrollAnchorHeight:l}=this.viewState;Math.abs(P-this.viewState.scrollTop)>1&&(l=-1),this.viewState.scrollAnchorHeight=-1;try{for(let n=0;;n++){if(l<0)if(Uve(f))d=-1,l=this.viewState.heightMap.height;else{let y=this.viewState.scrollAnchorAt(P);d=y.from,l=y.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(n>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let b=[];c&4||([this.measureRequests,b]=[b,this.measureRequests]);let i=b.map(y=>{try{return y.read(this)}catch(p){return tb(this.state,p),lpe}}),O=VH.create(this,this.state,[]),w=!1;O.flags|=c,o?o.flags|=c:o=O,this.updateState=2,O.empty||(this.updatePlugins(O),this.inputState.update(O),this.updateAttrs(),w=this.docView.update(O));for(let y=0;y1||p<-1){P=P+p,f.scrollTop=P/this.scaleY,l=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(o&&!o.empty)for(let n of this.state.facet(Jae))n(o)}get themeClasses(){return sse+" "+(this.state.facet(ase)?Mye:Aye)+" "+this.state.facet(LQ)}updateAttrs(){let e=cpe(this,aye,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),o={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(XZ)?"true":"false",class:"cm-content",style:`${Ua.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(o["aria-readonly"]="true"),cpe(this,ice,o);let f=this.observer.ignore(()=>{let P=Gae(this.contentDOM,this.contentAttrs,o),d=Gae(this.dom,this.editorAttrs,e);return P||d});return this.editorAttrs=e,this.contentAttrs=o,f}showAnnouncements(e){let o=!0;for(let f of e)for(let P of f.effects)if(P.is(Oa.announce)){o&&(this.announceDOM.textContent=""),o=!1;let d=this.announceDOM.appendChild(document.createElement("div"));d.textContent=P.value}}mountStyles(){this.styleModules=this.state.facet(XL);let e=this.state.facet(Oa.cspNonce);iS.mount(this.root,this.styleModules.concat(A6e).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let o=0;of.spec==e)||null),o&&o.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,o,f){return pie(this,e,Hhe(this,e,o,f))}moveByGroup(e,o){return pie(this,e,Hhe(this,e,o,f=>GTe(this,e.head,f)))}moveToLineBoundary(e,o,f=!0){return XTe(this,e,o,f)}moveVertically(e,o,f){return pie(this,e,KTe(this,e,o,f))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,o=0){return this.docView.posFromDOM(e,o)}posAtCoords(e,o=!0){return this.readMeasured(),vye(this,e,o)}coordsAtPos(e,o=1){this.readMeasured();let f=this.docView.coordsAt(e,o);if(!f||f.left==f.right)return f;let P=this.state.doc.lineAt(e),d=this.bidiSpans(P),l=d[Y4.find(d,e-P.from,-1,o)];return WZ(f,l.dir==qd.LTR==o>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(oye)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>N6e)return hye(e.length);let o=this.textDirectionAt(e.from),f;for(let d of this.bidiCache)if(d.from==e.from&&d.dir==o&&(d.fresh||dye(d.isolates,f=Fhe(this,e.from,e.to))))return d.order;f||(f=Fhe(this,e.from,e.to));let P=BTe(e.text,o,f);return this.bidiCache.push(new UH(e.from,e.to,o,f,!0,P)),P}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Ua.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{$ve(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,o={}){return CQ.of(new JA(typeof e=="number"?Yo.cursor(e):e,o.y,o.x,o.yMargin,o.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:o}=this.scrollDOM,f=this.viewState.scrollAnchorAt(e);return CQ.of(new JA(Yo.cursor(f.from),"start","start",f.top-e,o,!0))}static domEventHandlers(e){return Wd.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Wd.define(()=>({}),{eventObservers:e})}static theme(e,o){let f=iS.newName(),P=[LQ.of(f),XL.of(lse(`.${f}`,e))];return o&&o.dark&&P.push(ase.of(!0)),P}static baseTheme(e){return Vv.lowest(XL.of(lse("."+sse,e,Eye)))}static findFromDOM(e){var o;let f=e.querySelector(".cm-content"),P=f&&id.get(f)||id.get(e);return((o=P==null?void 0:P.rootView)===null||o===void 0?void 0:o.view)||null}}Oa.styleModule=XL;Oa.inputHandler=nye;Oa.focusChangeEffect=rye;Oa.perLineTextDirection=oye;Oa.exceptionSink=tye;Oa.updateListener=Jae;Oa.editable=XZ;Oa.mouseSelectionStyle=eye;Oa.dragMovesSelection=Jve;Oa.clickAddsSelectionRange=Kve;Oa.decorations=LI;Oa.atomicRanges=ace;Oa.bidiIsolatedRanges=sye;Oa.scrollMargins=lye;Oa.darkTheme=ase;Oa.cspNonce=Ba.define({combine:t=>t.length?t[0]:""});Oa.contentAttributes=ice;Oa.editorAttributes=aye;Oa.lineWrapping=Oa.contentAttributes.of({class:"cm-lineWrapping"});Oa.announce=cl.define();const N6e=4096,lpe={};class UH{constructor(e,o,f,P,d,l){this.from=e,this.to=o,this.dir=f,this.isolates=P,this.fresh=d,this.order=l}static update(e,o){if(o.empty&&!e.some(d=>d.fresh))return e;let f=[],P=e.length?e[e.length-1].dir:qd.LTR;for(let d=Math.max(0,e.length-10);d=0;P--){let d=f[P],l=typeof d=="function"?d(t):d;l&&Xae(l,o)}return o}const $6e=Ua.mac?"mac":Ua.windows?"win":Ua.linux?"linux":"key";function V6e(t,e){const o=t.split(/-(?!$)/);let f=o[o.length-1];f=="Space"&&(f=" ");let P,d,l,n;for(let c=0;cf.concat(P),[]))),o}function j6e(t,e,o){return Lye(Rye(t.state),e,t,o)}let H4=null;const Q6e=4e3;function H6e(t,e=$6e){let o=Object.create(null),f=Object.create(null),P=(l,n)=>{let c=f[l];if(c==null)f[l]=n;else if(c!=n)throw new Error("Key binding "+l+" is used both as a regular binding and as a multi-stroke prefix")},d=(l,n,c,b,i)=>{var O,w;let y=o[l]||(o[l]=Object.create(null)),p=n.split(/ (?!$)/).map(h=>V6e(h,e));for(let h=1;h{let _=H4={view:v,prefix:m,scope:l};return setTimeout(()=>{H4==_&&(H4=null)},Q6e),!0}]})}let a=p.join(" ");P(a,!1);let u=y[a]||(y[a]={preventDefault:!1,stopPropagation:!1,run:((w=(O=y._any)===null||O===void 0?void 0:O.run)===null||w===void 0?void 0:w.slice())||[]});c&&u.run.push(c),b&&(u.preventDefault=!0),i&&(u.stopPropagation=!0)};for(let l of t){let n=l.scope?l.scope.split(" "):["editor"];if(l.any)for(let b of n){let i=o[b]||(o[b]=Object.create(null));i._any||(i._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let O in i)i[O].run.push(l.any)}let c=l[e]||l.key;if(c)for(let b of n)d(b,c,l.run,l.preventDefault,l.stopPropagation),l.shift&&d(b,"Shift-"+c,l.shift,l.preventDefault,l.stopPropagation)}return o}function Lye(t,e,o,f){let P=mTe(e),d=Jm(P,0),l=Wy(d)==P.length&&P!=" ",n="",c=!1,b=!1,i=!1;H4&&H4.view==o&&H4.scope==f&&(n=H4.prefix+" ",bye.indexOf(e.keyCode)<0&&(b=!0,H4=null));let O=new Set,w=u=>{if(u){for(let h of u.run)if(!O.has(h)&&(O.add(h),h(o,e)))return u.stopPropagation&&(i=!0),!0;u.preventDefault&&(u.stopPropagation&&(i=!0),b=!0)}return!1},y=t[f],p,a;return y&&(w(y[n+IQ(P,e,!l)])?c=!0:l&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Ua.windows&&e.ctrlKey&&e.altKey)&&(p=aS[e.keyCode])&&p!=P?(w(y[n+IQ(p,e,!0)])||e.shiftKey&&(a=PI[e.keyCode])!=P&&a!=p&&w(y[n+IQ(a,e,!1)]))&&(c=!0):l&&e.shiftKey&&w(y[n+IQ(P,e,!0)])&&(c=!0),!c&&w(y._any)&&(c=!0)),b&&(c=!0),c&&i&&e.stopPropagation(),c}class vD{constructor(e,o,f,P,d){this.className=e,this.left=o,this.top=f,this.width=P,this.height=d}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,o){return o.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,o,f){if(f.empty){let P=e.coordsAtPos(f.head,f.assoc||1);if(!P)return[];let d=Iye(e);return[new vD(o,P.left-d.left,P.top-d.top,null,P.bottom-P.top)]}else return Z6e(e,o,f)}}function Iye(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==qd.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function fpe(t,e,o){let f=Yo.cursor(e);return{from:Math.max(o.from,t.moveToLineBoundary(f,!1,!0).from),to:Math.min(o.to,t.moveToLineBoundary(f,!0,!0).from),type:T0.Text}}function Z6e(t,e,o){if(o.to<=t.viewport.from||o.from>=t.viewport.to)return[];let f=Math.max(o.from,t.viewport.from),P=Math.min(o.to,t.viewport.to),d=t.textDirection==qd.LTR,l=t.contentDOM,n=l.getBoundingClientRect(),c=Iye(t),b=l.querySelector(".cm-line"),i=b&&window.getComputedStyle(b),O=n.left+(i?parseInt(i.paddingLeft)+Math.min(0,parseInt(i.textIndent)):0),w=n.right-(i?parseInt(i.paddingRight):0),y=ose(t,f),p=ose(t,P),a=y.type==T0.Text?y:null,u=p.type==T0.Text?p:null;if(a&&(t.lineWrapping||y.widgetLineBreaks)&&(a=fpe(t,f,a)),u&&(t.lineWrapping||p.widgetLineBreaks)&&(u=fpe(t,P,u)),a&&u&&a.from==u.from)return m(v(o.from,o.to,a));{let S=a?v(o.from,null,a):_(y,!1),A=u?v(null,o.to,u):_(p,!0),x=[];return(a||y).to<(u||p).from-(a&&u?1:0)||y.widgetLineBreaks>1&&S.bottom+t.defaultLineHeight/2C&&D.from=I)break;j>k&&E(Math.max(Q,k),S==null&&Q<=C,Math.min(j,I),A==null&&j>=L,$.dir)}if(k=z.to+1,k>=I)break}return T.length==0&&E(C,S==null,L,A==null,t.textDirection),{top:R,bottom:M,horizontal:T}}function _(S,A){let x=n.top+(A?S.top:S.bottom);return{top:x,bottom:x,horizontal:[]}}}function q6e(t,e){return t.constructor==e.constructor&&t.eq(e)}class W6e{constructor(e,o){this.view=e,this.layer=o,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),o.above&&this.dom.classList.add("cm-layer-above"),o.class&&this.dom.classList.add(o.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),o.mount&&o.mount(this.dom,e)}update(e){e.startState.facet(gH)!=e.state.facet(gH)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let o=0,f=e.facet(gH);for(;o!q6e(o,this.drawn[f]))){let o=this.dom.firstChild,f=0;for(let P of e)P.update&&o&&P.constructor&&this.drawn[f].constructor&&P.update(o,this.drawn[f])?(o=o.nextSibling,f++):this.dom.insertBefore(P.draw(),o);for(;o;){let P=o.nextSibling;o.remove(),o=P}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const gH=Ba.define();function Dye(t){return[Wd.define(e=>new W6e(e,t)),gH.of(t)]}const Bye=!Ua.ios,DI=Ba.define({combine(t){return b_(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,o)=>Math.min(e,o),drawRangeCursor:(e,o)=>e||o})}});function Y6e(t={}){return[DI.of(t),X6e,G6e,K6e,iye.of(!0)]}function zye(t){return t.startState.facet(DI)!=t.state.facet(DI)}const X6e=Dye({above:!0,markers(t){let{state:e}=t,o=e.facet(DI),f=[];for(let P of e.selection.ranges){let d=P==e.selection.main;if(P.empty?!d||Bye:o.drawRangeCursor){let l=d?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=P.empty?P:Yo.cursor(P.head,P.head>P.anchor?-1:1);for(let c of vD.forRange(t,l,n))f.push(c)}}return f},update(t,e){t.transactions.some(f=>f.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let o=zye(t);return o&&dpe(t.state,e),t.docChanged||t.selectionSet||o},mount(t,e){dpe(e.state,t)},class:"cm-cursorLayer"});function dpe(t,e){e.style.animationDuration=t.facet(DI).cursorBlinkRate+"ms"}const G6e=Dye({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:vD.forRange(t,"cm-selectionBackground",e)).reduce((e,o)=>e.concat(o))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||zye(t)},class:"cm-selectionLayer"}),cse={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Bye&&(cse[".cm-line"].caretColor="transparent !important",cse[".cm-content"]={caretColor:"transparent !important"});const K6e=Vv.highest(Oa.theme(cse)),Fye=cl.define({map(t,e){return t==null?null:e.mapPos(t)}}),JL=Ap.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((o,f)=>f.is(Fye)?f.value:o,t)}}),J6e=Wd.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let o=t.state.field(JL);o==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(JL)!=o||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(JL),o=e!=null&&t.coordsAtPos(e);if(!o)return null;let f=t.scrollDOM.getBoundingClientRect();return{left:o.left-f.left+t.scrollDOM.scrollLeft*t.scaleX,top:o.top-f.top+t.scrollDOM.scrollTop*t.scaleY,height:o.bottom-o.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:o}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/o+"px",this.cursor.style.height=t.height/o+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(JL)!=t&&this.view.dispatch({effects:Fye.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function eCe(){return[JL,J6e]}function hpe(t,e,o,f,P){e.lastIndex=0;for(let d=t.iterRange(o,f),l=o,n;!d.next().done;l+=d.value.length)if(!d.lineBreak)for(;n=e.exec(d.value);)P(l+n.index,n)}function tCe(t,e){let o=t.visibleRanges;if(o.length==1&&o[0].from==t.viewport.from&&o[0].to==t.viewport.to)return o;let f=[];for(let{from:P,to:d}of o)P=Math.max(t.state.doc.lineAt(P).from,P-e),d=Math.min(t.state.doc.lineAt(d).to,d+e),f.length&&f[f.length-1].to>=P?f[f.length-1].to=d:f.push({from:P,to:d});return f}class nCe{constructor(e){const{regexp:o,decoration:f,decorate:P,boundary:d,maxLength:l=1e3}=e;if(!o.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=o,P)this.addMatch=(n,c,b,i)=>P(i,b,b+n[0].length,n,c);else if(typeof f=="function")this.addMatch=(n,c,b,i)=>{let O=f(n,c,b);O&&i(b,b+n[0].length,O)};else if(f)this.addMatch=(n,c,b,i)=>i(b,b+n[0].length,f);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=d,this.maxLength=l}createDeco(e){let o=new oS,f=o.add.bind(o);for(let{from:P,to:d}of tCe(e,this.maxLength))hpe(e.state.doc,this.regexp,P,d,(l,n)=>this.addMatch(n,e,l,f));return o.finish()}updateDeco(e,o){let f=1e9,P=-1;return e.docChanged&&e.changes.iterChanges((d,l,n,c)=>{c>e.view.viewport.from&&n1e3?this.createDeco(e.view):P>-1?this.updateRange(e.view,o.map(e.changes),f,P):o}updateRange(e,o,f,P){for(let d of e.visibleRanges){let l=Math.max(d.from,f),n=Math.min(d.to,P);if(n>l){let c=e.state.doc.lineAt(l),b=c.toc.from;l--)if(this.boundary.test(c.text[l-1-c.from])){i=l;break}for(;nw.push(h.range(a,u));if(c==b)for(this.regexp.lastIndex=i-c.from;(y=this.regexp.exec(c.text))&&y.indexthis.addMatch(u,e,a,p));o=o.update({filterFrom:i,filterTo:O,filter:(a,u)=>aO,add:w})}}return o}}const use=/x/.unicode!=null?"gu":"g",rCe=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,use),oCe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let vie=null;function iCe(){var t;if(vie==null&&typeof document<"u"&&document.body){let e=document.body.style;vie=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return vie||!1}const vH=Ba.define({combine(t){let e=b_(t,{render:null,specialChars:rCe,addSpecialChars:null});return(e.replaceTabs=!iCe())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,use)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,use)),e}});function aCe(t={}){return[vH.of(t),sCe()]}let ppe=null;function sCe(){return ppe||(ppe=Wd.fromClass(class{constructor(t){this.view=t,this.decorations=es.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(vH)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new nCe({regexp:t.specialChars,decoration:(e,o,f)=>{let{doc:P}=o.state,d=Jm(e[0],0);if(d==9){let l=P.lineAt(f),n=o.state.tabSize,c=xx(l.text,n,f-l.from);return es.replace({widget:new fCe((n-c%n)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[d]||(this.decorationCache[d]=es.replace({widget:new uCe(t,d)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(vH);t.startState.facet(vH)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const lCe="•";function cCe(t){return t>=32?lCe:t==10?"␤":String.fromCharCode(9216+t)}class uCe extends Ox{constructor(e,o){super(),this.options=e,this.code=o}eq(e){return e.code==this.code}toDOM(e){let o=cCe(this.code),f=e.state.phrase("Control character")+" "+(oCe[this.code]||"0x"+this.code.toString(16)),P=this.options.render&&this.options.render(this.code,f,o);if(P)return P;let d=document.createElement("span");return d.textContent=o,d.title=f,d.setAttribute("aria-label",f),d.className="cm-specialChar",d}ignoreEvent(){return!1}}class fCe extends Ox{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function dCe(){return pCe}const hCe=es.line({class:"cm-activeLine"}),pCe=Wd.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,o=[];for(let f of t.state.selection.ranges){let P=t.lineBlockAt(f.head);P.from>e&&(o.push(hCe.range(P.from)),e=P.from)}return es.set(o)}},{decorations:t=>t.decorations});class mCe extends Ox{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let o=e.firstChild?uM(e.firstChild):[];if(!o.length)return null;let f=window.getComputedStyle(e.parentNode),P=WZ(o[0],f.direction!="rtl"),d=parseInt(f.lineHeight);return P.bottom-P.top>d*1.5?{left:P.left,right:P.right,top:P.top,bottom:P.top+d}:P}ignoreEvent(){return!1}}function gCe(t){return Wd.fromClass(class{constructor(e){this.view=e,this.placeholder=t?es.set([es.widget({widget:new mCe(t),side:1}).range(0)]):es.none}get decorations(){return this.view.state.doc.length?es.none:this.placeholder}},{decorations:e=>e.decorations})}const fse=2e3;function vCe(t,e,o){let f=Math.min(e.line,o.line),P=Math.max(e.line,o.line),d=[];if(e.off>fse||o.off>fse||e.col<0||o.col<0){let l=Math.min(e.off,o.off),n=Math.max(e.off,o.off);for(let c=f;c<=P;c++){let b=t.doc.line(c);b.length<=n&&d.push(Yo.range(b.from+l,b.to+n))}}else{let l=Math.min(e.col,o.col),n=Math.max(e.col,o.col);for(let c=f;c<=P;c++){let b=t.doc.line(c),i=jae(b.text,l,t.tabSize,!0);if(i<0)d.push(Yo.cursor(b.to));else{let O=jae(b.text,n,t.tabSize);d.push(Yo.range(b.from+i,b.from+O))}}}return d}function yCe(t,e){let o=t.coordsAtPos(t.viewport.from);return o?Math.round(Math.abs((o.left-e)/t.defaultCharacterWidth)):-1}function mpe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),f=t.state.doc.lineAt(o),P=o-f.from,d=P>fse?-1:P==f.length?yCe(t,e.clientX):xx(f.text,t.state.tabSize,o-f.from);return{line:f.number,col:d,off:P}}function bCe(t,e){let o=mpe(t,e),f=t.state.selection;return o?{update(P){if(P.docChanged){let d=P.changes.mapPos(P.startState.doc.line(o.line).from),l=P.state.doc.lineAt(d);o={line:l.number,col:o.col,off:Math.min(o.off,l.length)},f=f.map(P.changes)}},get(P,d,l){let n=mpe(t,P);if(!n)return f;let c=vCe(t.state,o,n);return c.length?l?Yo.create(c.concat(f.ranges)):Yo.create(c):f}}:null}function xCe(t){let e=(t==null?void 0:t.eventFilter)||(o=>o.altKey&&o.button==0);return Oa.mouseSelectionStyle.of((o,f)=>e(f)?bCe(o,f):null)}const _Ce={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},wCe={style:"cursor: crosshair"};function OCe(t={}){let[e,o]=_Ce[t.key||"Alt"],f=Wd.fromClass(class{constructor(P){this.view=P,this.isDown=!1}set(P){this.isDown!=P&&(this.isDown=P,this.view.update([]))}},{eventObservers:{keydown(P){this.set(P.keyCode==e||o(P))},keyup(P){(P.keyCode==e||!o(P))&&this.set(!1)},mousemove(P){this.set(o(P))}}});return[f,Oa.contentAttributes.of(P=>{var d;return!((d=P.plugin(f))===null||d===void 0)&&d.isDown?wCe:null})]}const BL="-10000px";class Nye{constructor(e,o,f){this.facet=o,this.createTooltipView=f,this.input=e.state.facet(o),this.tooltips=this.input.filter(P=>P),this.tooltipViews=this.tooltips.map(f)}update(e,o){var f;let P=e.state.facet(this.facet),d=P.filter(c=>c);if(P===this.input){for(let c of this.tooltipViews)c.update&&c.update(e);return!1}let l=[],n=o?[]:null;for(let c=0;co[b]=c),o.length=n.length),this.input=P,this.tooltips=d,this.tooltipViews=l,!0}}function SCe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const yie=Ba.define({combine:t=>{var e,o,f;return{position:Ua.ios?"absolute":((e=t.find(P=>P.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((o=t.find(P=>P.parent))===null||o===void 0?void 0:o.parent)||null,tooltipSpace:((f=t.find(P=>P.tooltipSpace))===null||f===void 0?void 0:f.tooltipSpace)||SCe}}}),gpe=new WeakMap,lce=Wd.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(yie);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Nye(t,cce,o=>this.createTooltip(o)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(o=>{Date.now()>this.lastTransaction-50&&o.length>0&&o[o.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let o=e||t.geometryChanged,f=t.state.facet(yie);if(f.position!=this.position&&!this.madeAbsolute){this.position=f.position;for(let P of this.manager.tooltipViews)P.dom.style.position=this.position;o=!0}if(f.parent!=this.parent){this.parent&&this.container.remove(),this.parent=f.parent,this.createContainer();for(let P of this.manager.tooltipViews)this.container.appendChild(P.dom);o=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);o&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let o=document.createElement("div");o.className="cm-tooltip-arrow",e.dom.appendChild(o)}return e.dom.style.position=this.position,e.dom.style.top=BL,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let o of this.manager.tooltipViews)o.dom.remove(),(t=o.destroy)===null||t===void 0||t.call(o);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,o=1,f=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:P}=this.manager.tooltipViews[0];if(Ua.gecko)f=P.offsetParent!=this.container.ownerDocument.body;else if(this.view.scaleX!=1||this.view.scaleY!=1)f=!0;else if(P.style.top==BL&&P.style.left=="0px"){let d=P.getBoundingClientRect();f=Math.abs(d.top+1e4)>1||Math.abs(d.left)>1}}if(f||this.position=="absolute")if(this.parent){let P=this.parent.getBoundingClientRect();P.width&&P.height&&(e=P.width/this.parent.offsetWidth,o=P.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:o}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((P,d)=>{let l=this.manager.tooltipViews[d];return l.getCoords?l.getCoords(P.pos):this.view.coordsAtPos(P.pos)}),size:this.manager.tooltipViews.map(({dom:P})=>P.getBoundingClientRect()),space:this.view.state.facet(yie).tooltipSpace(this.view),scaleX:e,scaleY:o,makeAbsolute:f}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let n of this.manager.tooltipViews)n.dom.style.position="absolute"}let{editor:o,space:f,scaleX:P,scaleY:d}=t,l=[];for(let n=0;n=Math.min(o.bottom,f.bottom)||O.rightMath.min(o.right,f.right)+.1){i.style.top=BL;continue}let y=c.arrow?b.dom.querySelector(".cm-tooltip-arrow"):null,p=y?7:0,a=w.right-w.left,u=(e=gpe.get(b))!==null&&e!==void 0?e:w.bottom-w.top,h=b.offset||TCe,m=this.view.textDirection==qd.LTR,v=w.width>f.right-f.left?m?f.left:f.right-w.width:m?Math.min(O.left-(y?14:0)+h.x,f.right-a):Math.max(f.left,O.left-a+(y?14:0)-h.x),_=this.above[n];!c.strictSide&&(_?O.top-(w.bottom-w.top)-h.yf.bottom)&&_==f.bottom-O.bottom>O.top-f.top&&(_=this.above[n]=!_);let S=(_?O.top-f.top:f.bottom-O.bottom)-p;if(Sv&&R.topA&&(A=_?R.top-u-2-p:R.bottom+p+2);if(this.position=="absolute"?(i.style.top=(A-t.parent.top)/d+"px",i.style.left=(v-t.parent.left)/P+"px"):(i.style.top=A/d+"px",i.style.left=v/P+"px"),y){let R=O.left+(m?h.x:-h.x)-(v+14-7);y.style.left=R/P+"px"}b.overlap!==!0&&l.push({left:v,top:A,right:x,bottom:A+u}),i.classList.toggle("cm-tooltip-above",_),i.classList.toggle("cm-tooltip-below",!_),b.positioned&&b.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=BL}},{eventObservers:{scroll(){this.maybeMeasure()}}}),kCe=Oa.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),TCe={x:0,y:0},cce=Ba.define({enables:[lce,kCe]}),jH=Ba.define();class GZ{static create(e){return new GZ(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Nye(e,jH,o=>this.createHostedView(o))}createHostedView(e){let o=e.create(this.view);return o.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(o.dom),this.mounted&&o.mount&&o.mount(this.view),o}mount(e){for(let o of this.manager.tooltipViews)o.mount&&o.mount(e);this.mounted=!0}positioned(e){for(let o of this.manager.tooltipViews)o.positioned&&o.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let o of this.manager.tooltipViews)(e=o.destroy)===null||e===void 0||e.call(o)}passProp(e){let o;for(let f of this.manager.tooltipViews){let P=f[e];if(P!==void 0){if(o===void 0)o=P;else if(o!==P)return}}return o}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const CCe=cce.compute([jH],t=>{let e=t.facet(jH).filter(o=>o);return e.length===0?null:{pos:Math.min(...e.map(o=>o.pos)),end:Math.max(...e.map(o=>{var f;return(f=o.end)!==null&&f!==void 0?f:o.pos})),create:GZ.create,above:e[0].above,arrow:e.some(o=>o.arrow)}});class ACe{constructor(e,o,f,P,d){this.view=e,this.source=o,this.field=f,this.setHover=P,this.hoverTime=d,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||o.xn.right+e.defaultCharacterWidth)return;let c=e.bidiSpans(e.state.doc.lineAt(P)).find(i=>i.from<=P&&i.to>=P),b=c&&c.dir==qd.RTL?-1:1;d=o.x{this.pending==n&&(this.pending=null,c&&e.dispatch({effects:this.setHover.of(c)}))},c=>tb(e.state,c,"hover tooltip"))}else l&&e.dispatch({effects:this.setHover.of(l)})}get tooltip(){let e=this.view.plugin(lce),o=e?e.manager.tooltips.findIndex(f=>f.create==GZ.create):-1;return o>-1?e.manager.tooltipViews[o]:null}mousemove(e){var o;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:f,tooltip:P}=this;if(f&&P&&!MCe(P.dom,e)||this.pending){let{pos:d}=f||this.pending,l=(o=f==null?void 0:f.end)!==null&&o!==void 0?o:d;(d==l?this.view.posAtCoords(this.lastMove)!=d:!ECe(this.view,d,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:o}=this;if(o){let{tooltip:f}=this;f&&f.dom.contains(e.relatedTarget)?this.watchTooltipLeave(f.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let o=f=>{e.removeEventListener("mouseleave",o),this.active&&!this.view.dom.contains(f.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",o)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const DQ=4;function MCe(t,e){let o=t.getBoundingClientRect();return e.clientX>=o.left-DQ&&e.clientX<=o.right+DQ&&e.clientY>=o.top-DQ&&e.clientY<=o.bottom+DQ}function ECe(t,e,o,f,P,d){let l=t.scrollDOM.getBoundingClientRect(),n=t.documentTop+t.documentPadding.top+t.contentHeight;if(l.left>f||l.rightP||Math.min(l.bottom,n)=e&&c<=o}function PCe(t,e={}){let o=cl.define(),f=Ap.define({create(){return null},update(P,d){if(P&&(e.hideOnChange&&(d.docChanged||d.selection)||e.hideOn&&e.hideOn(d,P)))return null;if(P&&d.docChanged){let l=d.changes.mapPos(P.pos,-1,tg.TrackDel);if(l==null)return null;let n=Object.assign(Object.create(null),P);n.pos=l,P.end!=null&&(n.end=d.changes.mapPos(P.end)),P=n}for(let l of d.effects)l.is(o)&&(P=l.value),l.is(RCe)&&(P=null);return P},provide:P=>jH.from(P)});return[f,Wd.define(P=>new ACe(P,t,f,o,e.hoverTime||300)),CCe]}function $ye(t,e){let o=t.plugin(lce);if(!o)return null;let f=o.manager.tooltips.indexOf(e);return f<0?null:o.manager.tooltipViews[f]}const RCe=cl.define(),vpe=Ba.define({combine(t){let e,o;for(let f of t)e=e||f.topContainer,o=o||f.bottomContainer;return{topContainer:e,bottomContainer:o}}});function BI(t,e){let o=t.plugin(Vye),f=o?o.specs.indexOf(e):-1;return f>-1?o.panels[f]:null}const Vye=Wd.fromClass(class{constructor(t){this.input=t.state.facet(zI),this.specs=this.input.filter(o=>o),this.panels=this.specs.map(o=>o(t));let e=t.state.facet(vpe);this.top=new BQ(t,!0,e.topContainer),this.bottom=new BQ(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(o=>o.top)),this.bottom.sync(this.panels.filter(o=>!o.top));for(let o of this.panels)o.dom.classList.add("cm-panel"),o.mount&&o.mount()}update(t){let e=t.state.facet(vpe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new BQ(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new BQ(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let o=t.state.facet(zI);if(o!=this.input){let f=o.filter(c=>c),P=[],d=[],l=[],n=[];for(let c of f){let b=this.specs.indexOf(c),i;b<0?(i=c(t.view),n.push(i)):(i=this.panels[b],i.update&&i.update(t)),P.push(i),(i.top?d:l).push(i)}this.specs=f,this.panels=P,this.top.sync(d),this.bottom.sync(l);for(let c of n)c.dom.classList.add("cm-panel"),c.mount&&c.mount()}else for(let f of this.panels)f.update&&f.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Oa.scrollMargins.of(e=>{let o=e.plugin(t);return o&&{top:o.top.scrollMargin(),bottom:o.bottom.scrollMargin()}})});class BQ{constructor(e,o,f){this.view=e,this.top=o,this.container=f,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let o of this.panels)o.destroy&&e.indexOf(o)<0&&o.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let o=this.container||this.view.dom;o.insertBefore(this.dom,this.top?o.firstChild:null)}let e=this.dom.firstChild;for(let o of this.panels)if(o.dom.parentNode==this.dom){for(;e!=o.dom;)e=ype(e);e=e.nextSibling}else this.dom.insertBefore(o.dom,e);for(;e;)e=ype(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function ype(t){let e=t.nextSibling;return t.remove(),e}const zI=Ba.define({enables:Vye});class EO extends pT{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}EO.prototype.elementClass="";EO.prototype.toDOM=void 0;EO.prototype.mapMode=tg.TrackBefore;EO.prototype.startSide=EO.prototype.endSide=-1;EO.prototype.point=!0;const yH=Ba.define(),LCe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Vu.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},fI=Ba.define();function ICe(t){return[Uye(),fI.of(Object.assign(Object.assign({},LCe),t))]}const dse=Ba.define({combine:t=>t.some(e=>e)});function Uye(t){let e=[DCe];return t&&t.fixed===!1&&e.push(dse.of(!0)),e}const DCe=Wd.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(fI).map(e=>new xpe(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(dse),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,o=t.view.viewport,f=Math.min(e.to,o.to)-Math.max(e.from,o.from);this.syncGutters(f<(o.to-o.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(dse)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let o=Vu.iter(this.view.state.facet(yH),this.view.viewport.from),f=[],P=this.gutters.map(d=>new BCe(d,this.view.viewport,-this.view.documentPadding.top));for(let d of this.view.viewportLineBlocks)if(f.length&&(f=[]),Array.isArray(d.type)){let l=!0;for(let n of d.type)if(n.type==T0.Text&&l){hse(o,f,n.from);for(let c of P)c.line(this.view,n,f);l=!1}else if(n.widget)for(let c of P)c.widget(this.view,n)}else if(d.type==T0.Text){hse(o,f,d.from);for(let l of P)l.line(this.view,d,f)}else if(d.widget)for(let l of P)l.widget(this.view,d);for(let d of P)d.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(fI),o=t.state.facet(fI),f=t.docChanged||t.heightChanged||t.viewportChanged||!Vu.eq(t.startState.facet(yH),t.state.facet(yH),t.view.viewport.from,t.view.viewport.to);if(e==o)for(let P of this.gutters)P.update(t)&&(f=!0);else{f=!0;let P=[];for(let d of o){let l=e.indexOf(d);l<0?P.push(new xpe(this.view,d)):(this.gutters[l].update(t),P.push(this.gutters[l]))}for(let d of this.gutters)d.dom.remove(),P.indexOf(d)<0&&d.destroy();for(let d of P)this.dom.appendChild(d.dom);this.gutters=P}return f}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Oa.scrollMargins.of(e=>{let o=e.plugin(t);return!o||o.gutters.length==0||!o.fixed?null:e.textDirection==qd.LTR?{left:o.dom.offsetWidth*e.scaleX}:{right:o.dom.offsetWidth*e.scaleX}})});function bpe(t){return Array.isArray(t)?t:[t]}function hse(t,e,o){for(;t.value&&t.from<=o;)t.from==o&&e.push(t.value),t.next()}class BCe{constructor(e,o,f){this.gutter=e,this.height=f,this.i=0,this.cursor=Vu.iter(e.markers,o.from)}addElement(e,o,f){let{gutter:P}=this,d=(o.top-this.height)/e.scaleY,l=o.height/e.scaleY;if(this.i==P.elements.length){let n=new jye(e,l,d,f);P.elements.push(n),P.dom.appendChild(n.dom)}else P.elements[this.i].update(e,l,d,f);this.height=o.bottom,this.i++}line(e,o,f){let P=[];hse(this.cursor,P,o.from),f.length&&(P=P.concat(f));let d=this.gutter.config.lineMarker(e,o,P);d&&P.unshift(d);let l=this.gutter;P.length==0&&!l.config.renderEmptyElements||this.addElement(e,o,P)}widget(e,o){let f=this.gutter.config.widgetMarker(e,o.widget,o);f&&this.addElement(e,o,[f])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let o=e.elements.pop();e.dom.removeChild(o.dom),o.destroy()}}}class xpe{constructor(e,o){this.view=e,this.config=o,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let f in o.domEventHandlers)this.dom.addEventListener(f,P=>{let d=P.target,l;if(d!=this.dom&&this.dom.contains(d)){for(;d.parentNode!=this.dom;)d=d.parentNode;let c=d.getBoundingClientRect();l=(c.top+c.bottom)/2}else l=P.clientY;let n=e.lineBlockAtHeight(l-e.documentTop);o.domEventHandlers[f](e,n,P)&&P.preventDefault()});this.markers=bpe(o.markers(e)),o.initialSpacer&&(this.spacer=new jye(e,0,0,[o.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let o=this.markers;if(this.markers=bpe(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let P=this.config.updateSpacer(this.spacer.markers[0],e);P!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[P])}let f=e.view.viewport;return!Vu.eq(this.markers,o,f.from,f.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class jye{constructor(e,o,f,P){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,o,f,P)}update(e,o,f,P){this.height!=o&&(this.height=o,this.dom.style.height=o+"px"),this.above!=f&&(this.dom.style.marginTop=(this.above=f)?f+"px":""),zCe(this.markers,P)||this.setMarkers(e,P)}setMarkers(e,o){let f="cm-gutterElement",P=this.dom.firstChild;for(let d=0,l=0;;){let n=l,c=dd(n,c,b)||l(n,c,b):l}return f}})}});class bie extends EO{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function xie(t,e){return t.state.facet(UA).formatNumber(e,t.state)}const NCe=fI.compute([UA],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(FCe)},lineMarker(e,o,f){return f.some(P=>P.toDOM)?null:new bie(xie(e,e.state.doc.lineAt(o.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(UA)!=e.state.facet(UA),initialSpacer(e){return new bie(xie(e,_pe(e.state.doc.lines)))},updateSpacer(e,o){let f=xie(o.view,_pe(o.view.state.doc.lines));return f==e.number?e:new bie(f)},domEventHandlers:t.facet(UA).domEventHandlers}));function $Ce(t={}){return[UA.of(t),Uye(),NCe]}function _pe(t){let e=9;for(;e{let e=[],o=-1;for(let f of t.selection.ranges){let P=t.doc.lineAt(f.head).from;P>o&&(o=P,e.push(VCe.range(P)))}return Vu.of(e)});function jCe(){return UCe}const Qye=1024;let QCe=0,Xy=class{constructor(e,o){this.from=e,this.to=o}};class fl{constructor(e={}){this.id=QCe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Cp.match(e)),o=>{let f=e(o);return f===void 0?null:[this,f]}}}fl.closedBy=new fl({deserialize:t=>t.split(" ")});fl.openedBy=new fl({deserialize:t=>t.split(" ")});fl.group=new fl({deserialize:t=>t.split(" ")});fl.contextHash=new fl({perNode:!0});fl.lookAhead=new fl({perNode:!0});fl.mounted=new fl({perNode:!0});class FI{constructor(e,o,f){this.tree=e,this.overlay=o,this.parser=f}static get(e){return e&&e.props&&e.props[fl.mounted.id]}}const HCe=Object.create(null);class Cp{constructor(e,o,f,P=0){this.name=e,this.props=o,this.id=f,this.flags=P}static define(e){let o=e.props&&e.props.length?Object.create(null):HCe,f=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),P=new Cp(e.name||"",o,e.id,f);if(e.props){for(let d of e.props)if(Array.isArray(d)||(d=d(P)),d){if(d[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");o[d[0].id]=d[1]}}return P}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let o=this.prop(fl.group);return o?o.indexOf(e)>-1:!1}return this.id==e}static match(e){let o=Object.create(null);for(let f in e)for(let P of f.split(" "))o[P]=e[f];return f=>{for(let P=f.prop(fl.group),d=-1;d<(P?P.length:0);d++){let l=o[d<0?f.name:P[d]];if(l)return l}}}}Cp.none=new Cp("",Object.create(null),0,8);class yD{constructor(e){this.types=e;for(let o=0;o0;for(let c=this.cursor(l|mf.IncludeAnonymous);;){let b=!1;if(c.from<=d&&c.to>=P&&(!n&&c.type.isAnonymous||o(c)!==!1)){if(c.firstChild())continue;b=!0}for(;b&&f&&(n||!c.type.isAnonymous)&&f(c),!c.nextSibling();){if(!c.parent())return;b=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let o in this.props)e.push([+o,this.props[o]]);return e}balance(e={}){return this.children.length<=8?this:dce(Cp.none,this.children,this.positions,0,this.children.length,0,this.length,(o,f,P)=>new ku(this.type,o,f,P,this.propValues),e.makeTree||((o,f,P)=>new ku(Cp.none,o,f,P)))}static build(e){return YCe(e)}}ku.empty=new ku(Cp.none,[],[],0);class uce{constructor(e,o){this.buffer=e,this.index=o}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new uce(this.buffer,this.index)}}class lS{constructor(e,o,f){this.buffer=e,this.length=o,this.set=f}get type(){return Cp.none}toString(){let e=[];for(let o=0;o0));c=l[c+3]);return n}slice(e,o,f){let P=this.buffer,d=new Uint16Array(o-e),l=0;for(let n=e,c=0;n=e&&oe;case 1:return o<=e&&f>e;case 2:return f>e;case 4:return!0}}function NI(t,e,o,f){for(var P;t.from==t.to||(o<1?t.from>=e:t.from>e)||(o>-1?t.to<=e:t.to0?n.length:-1;e!=b;e+=o){let i=n[e],O=c[e]+l.from;if(Hye(P,f,O,O+i.length)){if(i instanceof lS){if(d&mf.ExcludeBuffers)continue;let w=i.findChild(0,i.buffer.length,o,f-O,P);if(w>-1)return new i_(new ZCe(l,i,e,O),null,w)}else if(d&mf.IncludeAnonymous||!i.type.isAnonymous||fce(i)){let w;if(!(d&mf.IgnoreMounts)&&(w=FI.get(i))&&!w.overlay)return new Qg(w.tree,O,e,l);let y=new Qg(i,O,e,l);return d&mf.IncludeAnonymous||!y.type.isAnonymous?y:y.nextChild(o<0?i.children.length-1:0,o,f,P)}}}if(d&mf.IncludeAnonymous||!l.type.isAnonymous||(l.index>=0?e=l.index+o:e=o<0?-1:l._parent._tree.children.length,l=l._parent,!l))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,o,f=0){let P;if(!(f&mf.IgnoreOverlays)&&(P=FI.get(this._tree))&&P.overlay){let d=e-this.from;for(let{from:l,to:n}of P.overlay)if((o>0?l<=d:l=d:n>d))return new Qg(P.tree,P.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,o,f)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Ope(t,e,o,f){let P=t.cursor(),d=[];if(!P.firstChild())return d;if(o!=null){for(;!P.type.is(o);)if(!P.nextSibling())return d}for(;;){if(f!=null&&P.type.is(f))return d;if(P.type.is(e)&&d.push(P.node),!P.nextSibling())return f==null?d:[]}}function pse(t,e,o=e.length-1){for(let f=t.parent;o>=0;f=f.parent){if(!f)return!1;if(!f.type.isAnonymous){if(e[o]&&e[o]!=f.name)return!1;o--}}return!0}class ZCe{constructor(e,o,f,P){this.parent=e,this.buffer=o,this.index=f,this.start=P}}class i_ extends Zye{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,o,f){super(),this.context=e,this._parent=o,this.index=f,this.type=e.buffer.set.types[e.buffer.buffer[f]]}child(e,o,f){let{buffer:P}=this.context,d=P.findChild(this.index+4,P.buffer[this.index+3],e,o-this.context.start,f);return d<0?null:new i_(this.context,this,d)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,o,f=0){if(f&mf.ExcludeBuffers)return null;let{buffer:P}=this.context,d=P.findChild(this.index+4,P.buffer[this.index+3],o>0?1:-1,e-this.context.start,o);return d<0?null:new i_(this.context,this,d)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,o=e.buffer[this.index+3];return o<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new i_(this.context,this._parent,o):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,o=this._parent?this._parent.index+4:0;return this.index==o?this.externalSibling(-1):new i_(this.context,this._parent,e.findChild(o,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],o=[],{buffer:f}=this.context,P=this.index+4,d=f.buffer[this.index+3];if(d>P){let l=f.buffer[this.index+1];e.push(f.slice(P,d,l)),o.push(0)}return new ku(this.type,e,o,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function qye(t){if(!t.length)return null;let e=0,o=t[0];for(let d=1;do.from||l.to=e){let n=new Qg(l.tree,l.overlay[0].from+d.from,-1,d);(P||(P=[f])).push(NI(n,e,o,!1))}}return P?qye(P):f}class QH{get name(){return this.type.name}constructor(e,o=0){if(this.mode=o,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Qg)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let f=e._parent;f;f=f._parent)this.stack.unshift(f.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,o){this.index=e;let{start:f,buffer:P}=this.buffer;return this.type=o||P.set.types[P.buffer[e]],this.from=f+P.buffer[e+1],this.to=f+P.buffer[e+2],!0}yield(e){return e?e instanceof Qg?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,o,f){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,o,f,this.mode));let{buffer:P}=this.buffer,d=P.findChild(this.index+4,P.buffer[this.index+3],e,o-this.buffer.start,f);return d<0?!1:(this.stack.push(this.index),this.yieldBuf(d))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,o,f=this.mode){return this.buffer?f&mf.ExcludeBuffers?!1:this.enterChild(1,e,o):this.yield(this._tree.enter(e,o,f))}parent(){if(!this.buffer)return this.yieldNode(this.mode&mf.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&mf.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:o}=this.buffer,f=this.stack.length-1;if(e<0){let P=f<0?0:this.stack[f]+4;if(this.index!=P)return this.yieldBuf(o.findChild(P,this.index,-1,0,4))}else{let P=o.buffer[this.index+3];if(P<(f<0?o.buffer.length:o.buffer[this.stack[f]+3]))return this.yieldBuf(P)}return f<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let o,f,{buffer:P}=this;if(P){if(e>0){if(this.index-1)for(let d=o+e,l=e<0?-1:f._tree.children.length;d!=l;d+=e){let n=f._tree.children[d];if(this.mode&mf.IncludeAnonymous||n instanceof lS||!n.type.isAnonymous||fce(n))return!1}return!0}move(e,o){if(o&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,o=0){for(;(this.from==this.to||(o<1?this.from>=e:this.from>e)||(o>-1?this.to<=e:this.to=0;){for(let l=e;l;l=l._parent)if(l.index==P){if(P==this.index)return l;o=l,f=d+1;break e}P=this.stack[--d]}for(let P=f;P=0;d--){if(d<0)return pse(this.node,e,P);let l=f[o.buffer[this.stack[d]]];if(!l.isAnonymous){if(e[P]&&e[P]!=l.name)return!1;P--}}return!0}}function fce(t){return t.children.some(e=>e instanceof lS||!e.type.isAnonymous||fce(e))}function YCe(t){var e;let{buffer:o,nodeSet:f,maxBufferLength:P=Qye,reused:d=[],minRepeatType:l=f.types.length}=t,n=Array.isArray(o)?new uce(o,o.length):o,c=f.types,b=0,i=0;function O(S,A,x,R,M,T){let{id:E,start:C,end:L,size:D}=n,k=i;for(;D<0;)if(n.next(),D==-1){let j=d[E];x.push(j),R.push(C-S);return}else if(D==-3){b=E;return}else if(D==-4){i=E;return}else throw new RangeError(`Unrecognized record size: ${D}`);let I=c[E],z,$,Q=C-S;if(L-C<=P&&($=u(n.pos-A,M))){let j=new Uint16Array($.size-$.skip),U=n.pos-$.size,X=j.length;for(;n.pos>U;)X=h($.start,j,X);z=new lS(j,L-$.start,f),Q=$.start-S}else{let j=n.pos-D;n.next();let U=[],X=[],te=E>=l?E:-1,W=0,K=L;for(;n.pos>j;)te>=0&&n.id==te&&n.size>=0?(n.end<=K-P&&(p(U,X,C,W,n.end,K,te,k),W=U.length,K=n.end),n.next()):T>2500?w(C,j,U,X):O(C,j,U,X,te,T+1);if(te>=0&&W>0&&W-1&&W>0){let oe=y(I);z=dce(I,U,X,0,U.length,0,L-C,oe,oe)}else z=a(I,U,X,L-C,k-L)}x.push(z),R.push(Q)}function w(S,A,x,R){let M=[],T=0,E=-1;for(;n.pos>A;){let{id:C,start:L,end:D,size:k}=n;if(k>4)n.next();else{if(E>-1&&L=0;D-=3)C[k++]=M[D],C[k++]=M[D+1]-L,C[k++]=M[D+2]-L,C[k++]=k;x.push(new lS(C,M[2]-L,f)),R.push(L-S)}}function y(S){return(A,x,R)=>{let M=0,T=A.length-1,E,C;if(T>=0&&(E=A[T])instanceof ku){if(!T&&E.type==S&&E.length==R)return E;(C=E.prop(fl.lookAhead))&&(M=x[T]+E.length+C)}return a(S,A,x,R,M)}}function p(S,A,x,R,M,T,E,C){let L=[],D=[];for(;S.length>R;)L.push(S.pop()),D.push(A.pop()+x-M);S.push(a(f.types[E],L,D,T-M,C-T)),A.push(M-x)}function a(S,A,x,R,M=0,T){if(b){let E=[fl.contextHash,b];T=T?[E].concat(T):[E]}if(M>25){let E=[fl.lookAhead,M];T=T?[E].concat(T):[E]}return new ku(S,A,x,R,T)}function u(S,A){let x=n.fork(),R=0,M=0,T=0,E=x.end-P,C={size:0,start:0,skip:0};e:for(let L=x.pos-S;x.pos>L;){let D=x.size;if(x.id==A&&D>=0){C.size=R,C.start=M,C.skip=T,T+=4,R+=4,x.next();continue}let k=x.pos-D;if(D<0||k=l?4:0,z=x.start;for(x.next();x.pos>k;){if(x.size<0)if(x.size==-3)I+=4;else break e;else x.id>=l&&(I+=4);x.next()}M=z,R+=D,T+=I}return(A<0||R==S)&&(C.size=R,C.start=M,C.skip=T),C.size>4?C:void 0}function h(S,A,x){let{id:R,start:M,end:T,size:E}=n;if(n.next(),E>=0&&R4){let L=n.pos-(E-4);for(;n.pos>L;)x=h(S,A,x)}A[--x]=C,A[--x]=T-S,A[--x]=M-S,A[--x]=R}else E==-3?b=R:E==-4&&(i=R);return x}let m=[],v=[];for(;n.pos>0;)O(t.start||0,t.bufferStart||0,m,v,-1,0);let _=(e=t.length)!==null&&e!==void 0?e:m.length?v[0]+m[0].length:0;return new ku(c[t.topID],m.reverse(),v.reverse(),_)}const Spe=new WeakMap;function bH(t,e){if(!t.isAnonymous||e instanceof lS||e.type!=t)return 1;let o=Spe.get(e);if(o==null){o=1;for(let f of e.children){if(f.type!=t||!(f instanceof ku)){o=1;break}o+=bH(t,f)}Spe.set(e,o)}return o}function dce(t,e,o,f,P,d,l,n,c){let b=0;for(let p=f;p=i)break;A+=x}if(v==_+1){if(A>i){let x=p[_];y(x.children,x.positions,0,x.children.length,a[_]+m);continue}O.push(p[_])}else{let x=a[v-1]+p[v-1].length-S;O.push(dce(t,p,a,_,v,S,x,null,c))}w.push(S+m-d)}}return y(e,o,f,P,0),(n||c)(O,w,l)}class hce{constructor(){this.map=new WeakMap}setBuffer(e,o,f){let P=this.map.get(e);P||this.map.set(e,P=new Map),P.set(o,f)}getBuffer(e,o){let f=this.map.get(e);return f&&f.get(o)}set(e,o){e instanceof i_?this.setBuffer(e.context.buffer,e.index,o):e instanceof Qg&&this.map.set(e.tree,o)}get(e){return e instanceof i_?this.getBuffer(e.context.buffer,e.index):e instanceof Qg?this.map.get(e.tree):void 0}cursorSet(e,o){e.buffer?this.setBuffer(e.buffer.buffer,e.index,o):this.map.set(e.tree,o)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class SO{constructor(e,o,f,P,d=!1,l=!1){this.from=e,this.to=o,this.tree=f,this.offset=P,this.open=(d?1:0)|(l?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,o=[],f=!1){let P=[new SO(0,e.length,e,0,!1,f)];for(let d of o)d.to>e.length&&P.push(d);return P}static applyChanges(e,o,f=128){if(!o.length)return e;let P=[],d=1,l=e.length?e[0]:null;for(let n=0,c=0,b=0;;n++){let i=n=f)for(;l&&l.from=w.from||O<=w.to||b){let y=Math.max(w.from,c)-b,p=Math.min(w.to,O)-b;w=y>=p?null:new SO(y,p,w.tree,w.offset+b,n>0,!!i)}if(w&&P.push(w),l.to>O)break;l=dnew Xy(P.from,P.to)):[new Xy(0,0)]:[new Xy(0,e.length)],this.createParse(e,o||[],f)}parse(e,o,f){let P=this.startParse(e,o,f);for(;;){let d=P.advance();if(d)return d}}}class XCe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,o){return this.string.slice(e,o)}}function Wye(t){return(e,o,f,P)=>new KCe(e,t,o,f,P)}class kpe{constructor(e,o,f,P,d){this.parser=e,this.parse=o,this.overlay=f,this.target=P,this.from=d}}function Tpe(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class GCe{constructor(e,o,f,P,d,l,n){this.parser=e,this.predicate=o,this.mounts=f,this.index=P,this.start=d,this.target=l,this.prev=n,this.depth=0,this.ranges=[]}}const mse=new fl({perNode:!0});class KCe{constructor(e,o,f,P,d){this.nest=o,this.input=f,this.fragments=P,this.ranges=d,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let f=this.baseParse.advance();if(!f)return null;if(this.baseParse=null,this.baseTree=f,this.startInner(),this.stoppedAt!=null)for(let P of this.inner)P.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let f=this.baseTree;return this.stoppedAt!=null&&(f=new ku(f.type,f.children,f.positions,f.length,f.propValues.concat([[mse,this.stoppedAt]]))),f}let e=this.inner[this.innerDone],o=e.parse.advance();if(o){this.innerDone++;let f=Object.assign(Object.create(null),e.target.props);f[fl.mounted.id]=new FI(o,e.overlay,e.parser),e.target.props=f}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let o=this.innerDone;o=this.stoppedAt)n=!1;else if(e.hasNode(P)){if(o){let b=o.mounts.find(i=>i.frag.from<=P.from&&i.frag.to>=P.to&&i.mount.overlay);if(b)for(let i of b.mount.overlay){let O=i.from+b.pos,w=i.to+b.pos;O>=P.from&&w<=P.to&&!o.ranges.some(y=>y.fromO)&&o.ranges.push({from:O,to:w})}}n=!1}else if(f&&(l=JCe(f.ranges,P.from,P.to)))n=l!=2;else if(!P.type.isAnonymous&&(d=this.nest(P,this.input))&&(P.fromnew Xy(O.from-P.from,O.to-P.from)):null,P.tree,i.length?i[0].from:P.from)),d.overlay?i.length&&(f={ranges:i,depth:0,prev:f}):n=!1}}else o&&(c=o.predicate(P))&&(c===!0&&(c=new Xy(P.from,P.to)),c.fromnew Xy(i.from-o.start,i.to-o.start)),o.target,b[0].from))),o=o.prev}f&&!--f.depth&&(f=f.prev)}}}}function JCe(t,e,o){for(let f of t){if(f.from>=o)break;if(f.to>e)return f.from<=e&&f.to>=o?2:1}return 0}function Cpe(t,e,o,f,P,d){if(e=e.to);f++);let l=P.children[f],n=l.buffer,c=[f];function b(i,O,w,y,p,a){let u=o[a],h=[],m=[];Cpe(l,i,u,h,m,y);let v=n[u+1],_=n[u+2];c.push(h.length);let S=a?b(u+4,n[u+3],l.set.types[n[u]],v,_-v,a-1):e.toTree();return h.push(S),m.push(v-y),Cpe(l,n[u+3],O,h,m,y),new ku(w,h,m,p)}P.children[f]=b(0,n.length,Cp.none,0,l.length,o.length-1);for(let i of c){let O=t.tree.children[i],w=t.tree.positions[i];t.yield(new Qg(O,w+t.from,i,t._tree))}}class Ape{constructor(e,o){this.offset=o,this.done=!1,this.cursor=e.cursor(mf.IncludeAnonymous|mf.IgnoreMounts)}moveTo(e){let{cursor:o}=this,f=e-this.offset;for(;!this.done&&o.from=e&&o.enter(f,1,mf.IgnoreOverlays|mf.ExcludeBuffers)||o.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let o=this.cursor.tree;;){if(o==e.tree)return!0;if(o.children.length&&o.positions[0]==0&&o.children[0]instanceof ku)o=o.children[0];else break}return!1}}let t8e=class{constructor(e){var o;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let f=this.curFrag=e[0];this.curTo=(o=f.tree.prop(mse))!==null&&o!==void 0?o:f.to,this.inner=new Ape(f.tree,-f.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let o=this.curFrag=this.fragments[this.fragI];this.curTo=(e=o.tree.prop(mse))!==null&&e!==void 0?e:o.to,this.inner=new Ape(o.tree,-o.offset)}}findMounts(e,o){var f;let P=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let d=this.inner.cursor.node;d;d=d.parent){let l=(f=d.tree)===null||f===void 0?void 0:f.prop(fl.mounted);if(l&&l.parser==o)for(let n=this.fragI;n=d.to)break;c.tree==this.curFrag.tree&&P.push({frag:c,pos:d.from-c.offset,mount:l})}}}return P}};function Mpe(t,e){let o=null,f=e;for(let P=1,d=0;P=n)break;c.to<=l||(o||(f=o=e.slice()),c.fromn&&o.splice(d+1,0,new Xy(n,c.to))):c.to>n?o[d--]=new Xy(n,c.to):o.splice(d--,1))}}return f}function n8e(t,e,o,f){let P=0,d=0,l=!1,n=!1,c=-1e9,b=[];for(;;){let i=P==t.length?1e9:l?t[P].to:t[P].from,O=d==e.length?1e9:n?e[d].to:e[d].from;if(l!=n){let w=Math.max(c,o),y=Math.min(i,O,f);wnew Xy(w.from+f,w.to+f)),O=n8e(e,i,c,b);for(let w=0,y=c;;w++){let p=w==O.length,a=p?b:O[w].from;if(a>y&&o.push(new SO(y,a,P.tree,-l,d.from>=y||d.openStart,d.to<=a||d.openEnd)),p)break;y=O[w].to}}else o.push(new SO(c,b,P.tree,-l,d.from>=l||d.openStart,d.to<=n||d.openEnd))}return o}let r8e=0;class mx{constructor(e,o,f){this.set=e,this.base=o,this.modified=f,this.id=r8e++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let o=new mx([],null,[]);if(o.set.push(o),e)for(let f of e.set)o.set.push(f);return o}static defineModifier(){let e=new HH;return o=>o.modified.indexOf(e)>-1?o:HH.get(o.base||o,o.modified.concat(e).sort((f,P)=>f.id-P.id))}}let o8e=0;class HH{constructor(){this.instances=[],this.id=o8e++}static get(e,o){if(!o.length)return e;let f=o[0].instances.find(n=>n.base==e&&i8e(o,n.modified));if(f)return f;let P=[],d=new mx(P,e,o);for(let n of o)n.instances.push(d);let l=a8e(o);for(let n of e.set)if(!n.modified.length)for(let c of l)P.push(HH.get(n,c));return d}}function i8e(t,e){return t.length==e.length&&t.every((o,f)=>o==e[f])}function a8e(t){let e=[[]];for(let o=0;of.length-o.length)}function gS(t){let e=Object.create(null);for(let o in t){let f=t[o];Array.isArray(f)||(f=[f]);for(let P of o.split(" "))if(P){let d=[],l=2,n=P;for(let O=0;;){if(n=="..."&&O>0&&O+3==P.length){l=1;break}let w=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(n);if(!w)throw new RangeError("Invalid path: "+P);if(d.push(w[0]=="*"?"":w[0][0]=='"'?JSON.parse(w[0]):w[0]),O+=w[0].length,O==P.length)break;let y=P[O++];if(O==P.length&&y=="!"){l=0;break}if(y!="/")throw new RangeError("Invalid path: "+P);n=P.slice(O)}let c=d.length-1,b=d[c];if(!b)throw new RangeError("Invalid path: "+P);let i=new ZH(f,l,c>0?d.slice(0,c):null);e[b]=i.sort(e[b])}}return Yye.add(e)}const Yye=new fl;class ZH{constructor(e,o,f,P){this.tags=e,this.mode=o,this.context=f,this.next=P}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let l=P;for(let n of d)for(let c of n.set){let b=o[c.id];if(b){l=l?l+" "+b:b;break}}return l},scope:f}}function s8e(t,e){let o=null;for(let f of t){let P=f.style(e);P&&(o=o?o+" "+P:P)}return o}function l8e(t,e,o,f=0,P=t.length){let d=new c8e(f,Array.isArray(e)?e:[e],o);d.highlightRange(t.cursor(),f,P,"",d.highlighters),d.flush(P)}class c8e{constructor(e,o,f){this.at=e,this.highlighters=o,this.span=f,this.class=""}startSpan(e,o){o!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=o)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,o,f,P,d){let{type:l,from:n,to:c}=e;if(n>=f||c<=o)return;l.isTop&&(d=this.highlighters.filter(y=>!y.scope||y.scope(l)));let b=P,i=u8e(e)||ZH.empty,O=s8e(d,i.tags);if(O&&(b&&(b+=" "),b+=O,i.mode==1&&(P+=(P?" ":"")+O)),this.startSpan(Math.max(o,n),b),i.opaque)return;let w=e.tree&&e.tree.prop(fl.mounted);if(w&&w.overlay){let y=e.node.enter(w.overlay[0].from+n,1),p=this.highlighters.filter(u=>!u.scope||u.scope(w.tree.type)),a=e.firstChild();for(let u=0,h=n;;u++){let m=u=v||!e.nextSibling())););if(!m||v>f)break;h=m.to+n,h>o&&(this.highlightRange(y.cursor(),Math.max(o,m.from+n),Math.min(f,h),"",p),this.startSpan(Math.min(f,h),b))}a&&e.parent()}else if(e.firstChild()){w&&(P="");do if(!(e.to<=o)){if(e.from>=f)break;this.highlightRange(e,o,f,P,d),this.startSpan(Math.min(f,e.to),b)}while(e.nextSibling());e.parent()}}}function u8e(t){let e=t.type.prop(Yye);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const ia=mx.define,FQ=ia(),j4=ia(),Ppe=ia(j4),Rpe=ia(j4),Q4=ia(),NQ=ia(Q4),_ie=ia(Q4),K2=ia(),qk=ia(K2),X2=ia(),G2=ia(),gse=ia(),zL=ia(gse),$Q=ia(),Gn={comment:FQ,lineComment:ia(FQ),blockComment:ia(FQ),docComment:ia(FQ),name:j4,variableName:ia(j4),typeName:Ppe,tagName:ia(Ppe),propertyName:Rpe,attributeName:ia(Rpe),className:ia(j4),labelName:ia(j4),namespace:ia(j4),macroName:ia(j4),literal:Q4,string:NQ,docString:ia(NQ),character:ia(NQ),attributeValue:ia(NQ),number:_ie,integer:ia(_ie),float:ia(_ie),bool:ia(Q4),regexp:ia(Q4),escape:ia(Q4),color:ia(Q4),url:ia(Q4),keyword:X2,self:ia(X2),null:ia(X2),atom:ia(X2),unit:ia(X2),modifier:ia(X2),operatorKeyword:ia(X2),controlKeyword:ia(X2),definitionKeyword:ia(X2),moduleKeyword:ia(X2),operator:G2,derefOperator:ia(G2),arithmeticOperator:ia(G2),logicOperator:ia(G2),bitwiseOperator:ia(G2),compareOperator:ia(G2),updateOperator:ia(G2),definitionOperator:ia(G2),typeOperator:ia(G2),controlOperator:ia(G2),punctuation:gse,separator:ia(gse),bracket:zL,angleBracket:ia(zL),squareBracket:ia(zL),paren:ia(zL),brace:ia(zL),content:K2,heading:qk,heading1:ia(qk),heading2:ia(qk),heading3:ia(qk),heading4:ia(qk),heading5:ia(qk),heading6:ia(qk),contentSeparator:ia(K2),list:ia(K2),quote:ia(K2),emphasis:ia(K2),strong:ia(K2),link:ia(K2),monospace:ia(K2),strikethrough:ia(K2),inserted:ia(),deleted:ia(),changed:ia(),invalid:ia(),meta:$Q,documentMeta:ia($Q),annotation:ia($Q),processingInstruction:ia($Q),definition:mx.defineModifier(),constant:mx.defineModifier(),function:mx.defineModifier(),standard:mx.defineModifier(),local:mx.defineModifier(),special:mx.defineModifier()};Xye([{tag:Gn.link,class:"tok-link"},{tag:Gn.heading,class:"tok-heading"},{tag:Gn.emphasis,class:"tok-emphasis"},{tag:Gn.strong,class:"tok-strong"},{tag:Gn.keyword,class:"tok-keyword"},{tag:Gn.atom,class:"tok-atom"},{tag:Gn.bool,class:"tok-bool"},{tag:Gn.url,class:"tok-url"},{tag:Gn.labelName,class:"tok-labelName"},{tag:Gn.inserted,class:"tok-inserted"},{tag:Gn.deleted,class:"tok-deleted"},{tag:Gn.literal,class:"tok-literal"},{tag:Gn.string,class:"tok-string"},{tag:Gn.number,class:"tok-number"},{tag:[Gn.regexp,Gn.escape,Gn.special(Gn.string)],class:"tok-string2"},{tag:Gn.variableName,class:"tok-variableName"},{tag:Gn.local(Gn.variableName),class:"tok-variableName tok-local"},{tag:Gn.definition(Gn.variableName),class:"tok-variableName tok-definition"},{tag:Gn.special(Gn.variableName),class:"tok-variableName2"},{tag:Gn.definition(Gn.propertyName),class:"tok-propertyName tok-definition"},{tag:Gn.typeName,class:"tok-typeName"},{tag:Gn.namespace,class:"tok-namespace"},{tag:Gn.className,class:"tok-className"},{tag:Gn.macroName,class:"tok-macroName"},{tag:Gn.propertyName,class:"tok-propertyName"},{tag:Gn.operator,class:"tok-operator"},{tag:Gn.comment,class:"tok-comment"},{tag:Gn.meta,class:"tok-meta"},{tag:Gn.invalid,class:"tok-invalid"},{tag:Gn.punctuation,class:"tok-punctuation"}]);var wie;const sT=new fl;function mce(t){return Ba.define({combine:t?e=>e.concat(t):void 0})}const gce=new fl;class Gy{constructor(e,o,f=[],P=""){this.data=e,this.name=P,jl.prototype.hasOwnProperty("tree")||Object.defineProperty(jl.prototype,"tree",{get(){return Gu(this)}}),this.parser=o,this.extension=[uS.of(this),jl.languageData.of((d,l,n)=>{let c=Lpe(d,l,n),b=c.type.prop(sT);if(!b)return[];let i=d.facet(b),O=c.type.prop(gce);if(O){let w=c.resolve(l-c.from,n);for(let y of O)if(y.test(w,d)){let p=d.facet(y.facet);return y.type=="replace"?p:p.concat(i)}}return i})].concat(f)}isActiveAt(e,o,f=-1){return Lpe(e,o,f).type.prop(sT)==this.data}findRegions(e){let o=e.facet(uS);if((o==null?void 0:o.data)==this.data)return[{from:0,to:e.doc.length}];if(!o||!o.allowsNesting)return[];let f=[],P=(d,l)=>{if(d.prop(sT)==this.data){f.push({from:l,to:l+d.length});return}let n=d.prop(fl.mounted);if(n){if(n.tree.prop(sT)==this.data){if(n.overlay)for(let c of n.overlay)f.push({from:c.from+l,to:c.to+l});else f.push({from:l,to:l+d.length});return}else if(n.overlay){let c=f.length;if(P(n.tree,n.overlay[0].from+l),f.length>c)return}}for(let c=0;cf.isTop?o:void 0)]}),e.name)}configure(e,o){return new cS(this.data,this.parser.configure(e),o||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Gu(t){let e=t.field(Gy.state,!1);return e?e.tree:ku.empty}class f8e{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,o){let f=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,o):this.string.slice(e-f,o-f)}}let FL=null;class $I{constructor(e,o,f=[],P,d,l,n,c){this.parser=e,this.state=o,this.fragments=f,this.tree=P,this.treeLen=d,this.viewport=l,this.skipped=n,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}static create(e,o,f){return new $I(e,o,[],ku.empty,0,f,[],null)}startParse(){return this.parser.startParse(new f8e(this.state.doc),this.fragments)}work(e,o){return o!=null&&o>=this.state.doc.length&&(o=void 0),this.tree!=ku.empty&&this.isDone(o??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var f;if(typeof e=="number"){let P=Date.now()+e;e=()=>Date.now()>P}for(this.parse||(this.parse=this.startParse()),o!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>o)&&o=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(o=this.parse.advance()););}),this.treeLen=e,this.tree=o,this.fragments=this.withoutTempSkipped(SO.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let o=FL;FL=this;try{return e()}finally{FL=o}}withoutTempSkipped(e){for(let o;o=this.tempSkipped.pop();)e=Ipe(e,o.from,o.to);return e}changes(e,o){let{fragments:f,tree:P,treeLen:d,viewport:l,skipped:n}=this;if(this.takeTree(),!e.empty){let c=[];if(e.iterChangedRanges((b,i,O,w)=>c.push({fromA:b,toA:i,fromB:O,toB:w})),f=SO.applyChanges(f,c),P=ku.empty,d=0,l={from:e.mapPos(l.from,-1),to:e.mapPos(l.to,1)},this.skipped.length){n=[];for(let b of this.skipped){let i=e.mapPos(b.from,1),O=e.mapPos(b.to,-1);ie.from&&(this.fragments=Ipe(this.fragments,P,d),this.skipped.splice(f--,1))}return this.skipped.length>=o?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,o){this.skipped.push({from:e,to:o})}static getSkippingParser(e){return new class extends pce{createParse(o,f,P){let d=P[0].from,l=P[P.length-1].to;return{parsedPos:d,advance(){let c=FL;if(c){for(let b of P)c.tempSkipped.push(b);e&&(c.scheduleOn=c.scheduleOn?Promise.all([c.scheduleOn,e]):e)}return this.parsedPos=l,new ku(Cp.none,[],[],l-d)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let o=this.fragments;return this.treeLen>=e&&o.length&&o[0].from==0&&o[0].to>=e}static get(){return FL}}function Ipe(t,e,o){return SO.applyChanges(t,[{fromA:e,toA:o,fromB:e,toB:o}])}class dM{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let o=this.context.changes(e.changes,e.state),f=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),o.viewport.to);return o.work(20,f)||o.takeTree(),new dM(o)}static init(e){let o=Math.min(3e3,e.doc.length),f=$I.create(e.facet(uS).parser,e,{from:0,to:o});return f.work(20,o)||f.takeTree(),new dM(f)}}Gy.state=Ap.define({create:dM.init,update(t,e){for(let o of e.effects)if(o.is(Gy.setState))return o.value;return e.startState.facet(uS)!=e.state.facet(uS)?dM.init(e.state):t.apply(e)}});let Gye=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Gye=t=>{let e=-1,o=setTimeout(()=>{e=requestIdleCallback(t,{timeout:500-100})},100);return()=>e<0?clearTimeout(o):cancelIdleCallback(e)});const Oie=typeof navigator<"u"&&(!((wie=navigator.scheduling)===null||wie===void 0)&&wie.isInputPending)?()=>navigator.scheduling.isInputPending():null,d8e=Wd.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let o=this.view.state.field(Gy.state).context;(o.updateViewport(e.view.viewport)||this.view.viewport.to>o.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(o)}scheduleWork(){if(this.working)return;let{state:e}=this.view,o=e.field(Gy.state);(o.tree!=o.context.tree||!o.context.isDone(e.doc.length))&&(this.working=Gye(this.work))}work(e){this.working=null;let o=Date.now();if(this.chunkEndP+1e3,c=d.context.work(()=>Oie&&Oie()||Date.now()>l,P+(n?0:1e5));this.chunkBudget-=Date.now()-o,(c||this.chunkBudget<=0)&&(d.context.takeTree(),this.view.dispatch({effects:Gy.setState.of(new dM(d.context))})),this.chunkBudget>0&&!(c&&!n)&&this.scheduleWork(),this.checkAsyncSchedule(d.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(o=>tb(this.view.state,o)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),uS=Ba.define({combine(t){return t.length?t[0]:null},enables:t=>[Gy.state,d8e,Oa.contentAttributes.compute([t],e=>{let o=e.facet(t);return o&&o.name?{"data-language":o.name}:{}})]});class gT{constructor(e,o=[]){this.language=e,this.support=o,this.extension=[e,o]}}class qH{constructor(e,o,f,P,d,l=void 0){this.name=e,this.alias=o,this.extensions=f,this.filename=P,this.loadFunc=d,this.support=l,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:o,support:f}=e;if(!o){if(!f)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");o=()=>Promise.resolve(f)}return new qH(e.name,(e.alias||[]).concat(e.name).map(P=>P.toLowerCase()),e.extensions||[],e.filename,o,f)}static matchFilename(e,o){for(let P of e)if(P.filename&&P.filename.test(o))return P;let f=/\.([^.]+)$/.exec(o);if(f){for(let P of e)if(P.extensions.indexOf(f[1])>-1)return P}return null}static matchLanguageName(e,o,f=!0){o=o.toLowerCase();for(let P of e)if(P.alias.some(d=>d==o))return P;if(f)for(let P of e)for(let d of P.alias){let l=o.indexOf(d);if(l>-1&&(d.length>2||!/\w/.test(o[l-1])&&!/\w/.test(o[l+d.length])))return P}return null}}const h8e=Ba.define(),wT=Ba.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(o=>o!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function WH(t){let e=t.facet(wT);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function VI(t,e){let o="",f=t.tabSize,P=t.facet(wT)[0];if(P==" "){for(;e>=f;)o+=" ",e-=f;P=" "}for(let d=0;d=e?p8e(t,o,e):null}class KZ{constructor(e,o={}){this.state=e,this.options=o,this.unit=WH(e)}lineAt(e,o=1){let f=this.state.doc.lineAt(e),{simulateBreak:P,simulateDoubleBreak:d}=this.options;return P!=null&&P>=f.from&&P<=f.to?d&&P==e?{text:"",from:e}:(o<0?P-1&&(d+=l-this.countColumn(f,f.search(/\S|$/))),d}countColumn(e,o=e.length){return xx(e,this.state.tabSize,o)}lineIndent(e,o=1){let{text:f,from:P}=this.lineAt(e,o),d=this.options.overrideIndentation;if(d){let l=d(P);if(l>-1)return l}return this.countColumn(f,f.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const OT=new fl;function p8e(t,e,o){let f=e.resolveStack(o),P=f.node.enterUnfinishedNodesBefore(o);if(P!=f.node){let d=[];for(let l=P;l!=f.node;l=l.parent)d.push(l);for(let l=d.length-1;l>=0;l--)f={node:d[l],next:f}}return Kye(f,t,o)}function Kye(t,e,o){for(let f=t;f;f=f.next){let P=g8e(f.node);if(P)return P(yce.create(e,o,f))}return 0}function m8e(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function g8e(t){let e=t.type.prop(OT);if(e)return e;let o=t.firstChild,f;if(o&&(f=o.type.prop(fl.closedBy))){let P=t.lastChild,d=P&&f.indexOf(P.name)>-1;return l=>Jye(l,!0,1,void 0,d&&!m8e(l)?P.from:void 0)}return t.parent==null?v8e:null}function v8e(){return 0}class yce extends KZ{constructor(e,o,f){super(e.state,e.options),this.base=e,this.pos=o,this.context=f}get node(){return this.context.node}static create(e,o,f){return new yce(e,o,f)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let o=this.state.doc.lineAt(e.from);for(;;){let f=e.resolve(o.from);for(;f.parent&&f.parent.from==f.from;)f=f.parent;if(y8e(f,e))break;o=this.state.doc.lineAt(f.from)}return this.lineIndent(o.from)}continue(){return Kye(this.context.next,this.base,this.pos)}}function y8e(t,e){for(let o=e;o;o=o.parent)if(t==o)return!0;return!1}function b8e(t){let e=t.node,o=e.childAfter(e.from),f=e.lastChild;if(!o)return null;let P=t.options.simulateBreak,d=t.state.doc.lineAt(o.from),l=P==null||P<=d.from?d.to:Math.min(d.to,P);for(let n=o.to;;){let c=e.childAfter(n);if(!c||c==f)return null;if(!c.type.isSkipped)return c.fromJye(f,e,o,t)}function Jye(t,e,o,f,P){let d=t.textAfter,l=d.match(/^\s*/)[0].length,n=f&&d.slice(l,l+f.length)==f||P==t.pos+l,c=e?b8e(t):null;return c?n?t.column(c.from):t.column(c.to):t.baseIndent+(n?0:t.unit*o)}const x8e=t=>t.baseIndent;function dI({except:t,units:e=1}={}){return o=>{let f=t&&t.test(o.textAfter);return o.baseIndent+(f?0:e*o.unit)}}const _8e=200;function w8e(){return jl.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let o=t.newDoc,{head:f}=t.newSelection.main,P=o.lineAt(f);if(f>P.from+_8e)return t;let d=o.sliceString(P.from,f);if(!e.some(b=>b.test(d)))return t;let{state:l}=t,n=-1,c=[];for(let{head:b}of l.selection.ranges){let i=l.doc.lineAt(b);if(i.from==n)continue;n=i.from;let O=vce(l,i.from);if(O==null)continue;let w=/^\s*/.exec(i.text)[0],y=VI(l,O);w!=y&&c.push({from:i.from,to:i.from+w.length,insert:y})}return c.length?[t,{changes:c,sequential:!0}]:t})}const ebe=Ba.define(),vS=new fl;function bce(t){let e=t.firstChild,o=t.lastChild;return e&&e.too)continue;if(d&&n.from=e&&b.to>o&&(d=b)}}return d}function S8e(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function YH(t,e,o){for(let f of t.facet(ebe)){let P=f(t,e,o);if(P)return P}return O8e(t,e,o)}function tbe(t,e){let o=e.mapPos(t.from,1),f=e.mapPos(t.to,-1);return o>=f?void 0:{from:o,to:f}}const JZ=cl.define({map:tbe}),bD=cl.define({map:tbe});function nbe(t){let e=[];for(let{head:o}of t.state.selection.ranges)e.some(f=>f.from<=o&&f.to>=o)||e.push(t.lineBlockAt(o));return e}const vT=Ap.define({create(){return es.none},update(t,e){t=t.map(e.changes);for(let o of e.effects)if(o.is(JZ)&&!k8e(t,o.value.from,o.value.to)){let{preparePlaceholder:f}=e.state.facet(xce),P=f?es.replace({widget:new R8e(f(e.state,o.value))}):Dpe;t=t.update({add:[P.range(o.value.from,o.value.to)]})}else o.is(bD)&&(t=t.update({filter:(f,P)=>o.value.from!=f||o.value.to!=P,filterFrom:o.value.from,filterTo:o.value.to}));if(e.selection){let o=!1,{head:f}=e.selection.main;t.between(f,f,(P,d)=>{Pf&&(o=!0)}),o&&(t=t.update({filterFrom:f,filterTo:f,filter:(P,d)=>d<=f||P>=f}))}return t},provide:t=>Oa.decorations.from(t),toJSON(t,e){let o=[];return t.between(0,e.doc.length,(f,P)=>{o.push(f,P)}),o},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let o=0;o{(!P||P.from>d)&&(P={from:d,to:l})}),P}function k8e(t,e,o){let f=!1;return t.between(e,e,(P,d)=>{P==e&&d==o&&(f=!0)}),f}function rbe(t,e){return t.field(vT,!1)?e:e.concat(cl.appendConfig.of(ibe()))}const T8e=t=>{for(let e of nbe(t)){let o=YH(t.state,e.from,e.to);if(o)return t.dispatch({effects:rbe(t.state,[JZ.of(o),obe(t,o)])}),!0}return!1},C8e=t=>{if(!t.state.field(vT,!1))return!1;let e=[];for(let o of nbe(t)){let f=XH(t.state,o.from,o.to);f&&e.push(bD.of(f),obe(t,f,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function obe(t,e,o=!0){let f=t.state.doc.lineAt(e.from).number,P=t.state.doc.lineAt(e.to).number;return Oa.announce.of(`${t.state.phrase(o?"Folded lines":"Unfolded lines")} ${f} ${t.state.phrase("to")} ${P}.`)}const A8e=t=>{let{state:e}=t,o=[];for(let f=0;f{let e=t.state.field(vT,!1);if(!e||!e.size)return!1;let o=[];return e.between(0,t.state.doc.length,(f,P)=>{o.push(bD.of({from:f,to:P}))}),t.dispatch({effects:o}),!0},E8e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:T8e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:C8e},{key:"Ctrl-Alt-[",run:A8e},{key:"Ctrl-Alt-]",run:M8e}],P8e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},xce=Ba.define({combine(t){return b_(t,P8e)}});function ibe(t){let e=[vT,D8e];return t&&e.push(xce.of(t)),e}function abe(t,e){let{state:o}=t,f=o.facet(xce),P=l=>{let n=t.lineBlockAt(t.posAtDOM(l.target)),c=XH(t.state,n.from,n.to);c&&t.dispatch({effects:bD.of(c)}),l.preventDefault()};if(f.placeholderDOM)return f.placeholderDOM(t,P,e);let d=document.createElement("span");return d.textContent=f.placeholderText,d.setAttribute("aria-label",o.phrase("folded code")),d.title=o.phrase("unfold"),d.className="cm-foldPlaceholder",d.onclick=P,d}const Dpe=es.replace({widget:new class extends Ox{toDOM(t){return abe(t,null)}}});class R8e extends Ox{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return abe(e,this.value)}}const L8e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Sie extends EO{constructor(e,o){super(),this.config=e,this.open=o}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let o=document.createElement("span");return o.textContent=this.open?this.config.openText:this.config.closedText,o.title=e.state.phrase(this.open?"Fold line":"Unfold line"),o}}function I8e(t={}){let e=Object.assign(Object.assign({},L8e),t),o=new Sie(e,!0),f=new Sie(e,!1),P=Wd.fromClass(class{constructor(l){this.from=l.viewport.from,this.markers=this.buildMarkers(l)}update(l){(l.docChanged||l.viewportChanged||l.startState.facet(uS)!=l.state.facet(uS)||l.startState.field(vT,!1)!=l.state.field(vT,!1)||Gu(l.startState)!=Gu(l.state)||e.foldingChanged(l))&&(this.markers=this.buildMarkers(l.view))}buildMarkers(l){let n=new oS;for(let c of l.viewportLineBlocks){let b=XH(l.state,c.from,c.to)?f:YH(l.state,c.from,c.to)?o:null;b&&n.add(c.from,c.from,b)}return n.finish()}}),{domEventHandlers:d}=e;return[P,ICe({class:"cm-foldGutter",markers(l){var n;return((n=l.plugin(P))===null||n===void 0?void 0:n.markers)||Vu.empty},initialSpacer(){return new Sie(e,!1)},domEventHandlers:Object.assign(Object.assign({},d),{click:(l,n,c)=>{if(d.click&&d.click(l,n,c))return!0;let b=XH(l.state,n.from,n.to);if(b)return l.dispatch({effects:bD.of(b)}),!0;let i=YH(l.state,n.from,n.to);return i?(l.dispatch({effects:JZ.of(i)}),!0):!1}})}),ibe()]}const D8e=Oa.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class xD{constructor(e,o){this.specs=e;let f;function P(n){let c=iS.newName();return(f||(f=Object.create(null)))["."+c]=n,c}const d=typeof o.all=="string"?o.all:o.all?P(o.all):void 0,l=o.scope;this.scope=l instanceof Gy?n=>n.prop(sT)==l.data:l?n=>n==l:void 0,this.style=Xye(e.map(n=>({tag:n.tag,class:n.class||P(Object.assign({},n,{tag:null}))})),{all:d}).style,this.module=f?new iS(f):null,this.themeType=o.themeType}static define(e,o){return new xD(e,o||{})}}const vse=Ba.define(),sbe=Ba.define({combine(t){return t.length?[t[0]]:null}});function kie(t){let e=t.facet(vse);return e.length?e:t.facet(sbe)}function lbe(t,e){let o=[z8e],f;return t instanceof xD&&(t.module&&o.push(Oa.styleModule.of(t.module)),f=t.themeType),e!=null&&e.fallback?o.push(sbe.of(t)):f?o.push(vse.computeN([Oa.darkTheme],P=>P.facet(Oa.darkTheme)==(f=="dark")?[t]:[])):o.push(vse.of(t)),o}class B8e{constructor(e){this.markCache=Object.create(null),this.tree=Gu(e.state),this.decorations=this.buildDeco(e,kie(e.state))}update(e){let o=Gu(e.state),f=kie(e.state),P=f!=kie(e.startState);o.length{f.add(l,n,this.markCache[c]||(this.markCache[c]=es.mark({class:c})))},P,d);return f.finish()}}const z8e=Vv.high(Wd.fromClass(B8e,{decorations:t=>t.decorations})),F8e=xD.define([{tag:Gn.meta,color:"#404740"},{tag:Gn.link,textDecoration:"underline"},{tag:Gn.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Gn.emphasis,fontStyle:"italic"},{tag:Gn.strong,fontWeight:"bold"},{tag:Gn.strikethrough,textDecoration:"line-through"},{tag:Gn.keyword,color:"#708"},{tag:[Gn.atom,Gn.bool,Gn.url,Gn.contentSeparator,Gn.labelName],color:"#219"},{tag:[Gn.literal,Gn.inserted],color:"#164"},{tag:[Gn.string,Gn.deleted],color:"#a11"},{tag:[Gn.regexp,Gn.escape,Gn.special(Gn.string)],color:"#e40"},{tag:Gn.definition(Gn.variableName),color:"#00f"},{tag:Gn.local(Gn.variableName),color:"#30a"},{tag:[Gn.typeName,Gn.namespace],color:"#085"},{tag:Gn.className,color:"#167"},{tag:[Gn.special(Gn.variableName),Gn.macroName],color:"#256"},{tag:Gn.definition(Gn.propertyName),color:"#00c"},{tag:Gn.comment,color:"#940"},{tag:Gn.invalid,color:"#f00"}]),N8e=Oa.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),cbe=1e4,ube="()[]{}",fbe=Ba.define({combine(t){return b_(t,{afterCursor:!0,brackets:ube,maxScanDistance:cbe,renderMatch:U8e})}}),$8e=es.mark({class:"cm-matchingBracket"}),V8e=es.mark({class:"cm-nonmatchingBracket"});function U8e(t){let e=[],o=t.matched?$8e:V8e;return e.push(o.range(t.start.from,t.start.to)),t.end&&e.push(o.range(t.end.from,t.end.to)),e}const j8e=Ap.define({create(){return es.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let o=[],f=e.state.facet(fbe);for(let P of e.state.selection.ranges){if(!P.empty)continue;let d=a_(e.state,P.head,-1,f)||P.head>0&&a_(e.state,P.head-1,1,f)||f.afterCursor&&(a_(e.state,P.head,1,f)||P.headOa.decorations.from(t)}),Q8e=[j8e,N8e];function H8e(t={}){return[fbe.of(t),Q8e]}const dbe=new fl;function yse(t,e,o){let f=t.prop(e<0?fl.openedBy:fl.closedBy);if(f)return f;if(t.name.length==1){let P=o.indexOf(t.name);if(P>-1&&P%2==(e<0?1:0))return[o[P+e]]}return null}function bse(t){let e=t.type.prop(dbe);return e?e(t.node):t}function a_(t,e,o,f={}){let P=f.maxScanDistance||cbe,d=f.brackets||ube,l=Gu(t),n=l.resolveInner(e,o);for(let c=n;c;c=c.parent){let b=yse(c.type,o,d);if(b&&c.from0?e>=i.from&&ei.from&&e<=i.to))return Z8e(t,e,o,c,i,b,d)}}return q8e(t,e,o,l,n.type,P,d)}function Z8e(t,e,o,f,P,d,l){let n=f.parent,c={from:P.from,to:P.to},b=0,i=n==null?void 0:n.cursor();if(i&&(o<0?i.childBefore(f.from):i.childAfter(f.to)))do if(o<0?i.to<=f.from:i.from>=f.to){if(b==0&&d.indexOf(i.type.name)>-1&&i.from0)return null;let b={from:o<0?e-1:e,to:o>0?e+1:e},i=t.doc.iterRange(e,o>0?t.doc.length:0),O=0;for(let w=0;!i.next().done&&w<=d;){let y=i.value;o<0&&(w+=y.length);let p=e+w*o;for(let a=o>0?0:y.length-1,u=o>0?y.length:-1;a!=u;a+=o){let h=l.indexOf(y[a]);if(!(h<0||f.resolveInner(p+a,1).type!=P))if(h%2==0==o>0)O++;else{if(O==1)return{start:b,end:{from:p+a,to:p+a+1},matched:h>>1==c>>1};O--}}o>0&&(w+=y.length)}return i.done?{start:b,matched:!1}:null}const W8e=Object.create(null),Bpe=[Cp.none],zpe=[],Fpe=Object.create(null),Y8e=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Y8e[t]=X8e(W8e,e);function Tie(t,e){zpe.indexOf(t)>-1||(zpe.push(t),console.warn(e))}function X8e(t,e){let o=[];for(let n of e.split(" ")){let c=[];for(let b of n.split(".")){let i=t[b]||Gn[b];i?typeof i=="function"?c.length?c=c.map(i):Tie(b,`Modifier ${b} used at start of tag`):c.length?Tie(b,`Tag ${b} used as modifier`):c=Array.isArray(i)?i:[i]:Tie(b,`Unknown highlighting tag ${b}`)}for(let b of c)o.push(b)}if(!o.length)return 0;let f=e.replace(/ /g,"_"),P=f+" "+o.map(n=>n.id),d=Fpe[P];if(d)return d.id;let l=Fpe[P]=Cp.define({id:Bpe.length,name:f,props:[gS({[f]:o})]});return Bpe.push(l),l.id}const G8e=t=>{let{state:e}=t,o=e.doc.lineAt(e.selection.main.from),f=wce(t.state,o.from);return f.line?K8e(t):f.block?eAe(t):!1};function _ce(t,e){return({state:o,dispatch:f})=>{if(o.readOnly)return!1;let P=t(e,o);return P?(f(o.update(P)),!0):!1}}const K8e=_ce(rAe,0),J8e=_ce(hbe,0),eAe=_ce((t,e)=>hbe(t,e,nAe(e)),0);function wce(t,e){let o=t.languageDataAt("commentTokens",e);return o.length?o[0]:{}}const NL=50;function tAe(t,{open:e,close:o},f,P){let d=t.sliceDoc(f-NL,f),l=t.sliceDoc(P,P+NL),n=/\s*$/.exec(d)[0].length,c=/^\s*/.exec(l)[0].length,b=d.length-n;if(d.slice(b-e.length,b)==e&&l.slice(c,c+o.length)==o)return{open:{pos:f-n,margin:n&&1},close:{pos:P+c,margin:c&&1}};let i,O;P-f<=2*NL?i=O=t.sliceDoc(f,P):(i=t.sliceDoc(f,f+NL),O=t.sliceDoc(P-NL,P));let w=/^\s*/.exec(i)[0].length,y=/\s*$/.exec(O)[0].length,p=O.length-y-o.length;return i.slice(w,w+e.length)==e&&O.slice(p,p+o.length)==o?{open:{pos:f+w+e.length,margin:/\s/.test(i.charAt(w+e.length))?1:0},close:{pos:P-y-o.length,margin:/\s/.test(O.charAt(p-1))?1:0}}:null}function nAe(t){let e=[];for(let o of t.selection.ranges){let f=t.doc.lineAt(o.from),P=o.to<=f.to?f:t.doc.lineAt(o.to),d=e.length-1;d>=0&&e[d].to>f.from?e[d].to=P.to:e.push({from:f.from+/^\s*/.exec(f.text)[0].length,to:P.to})}return e}function hbe(t,e,o=e.selection.ranges){let f=o.map(d=>wce(e,d.from).block);if(!f.every(d=>d))return null;let P=o.map((d,l)=>tAe(e,f[l],d.from,d.to));if(t!=2&&!P.every(d=>d))return{changes:e.changes(o.map((d,l)=>P[l]?[]:[{from:d.from,insert:f[l].open+" "},{from:d.to,insert:" "+f[l].close}]))};if(t!=1&&P.some(d=>d)){let d=[];for(let l=0,n;lP&&(d==l||l>O.from)){P=O.from;let w=/^\s*/.exec(O.text)[0].length,y=w==O.length,p=O.text.slice(w,w+b.length)==b?w:-1;wd.comment<0&&(!d.empty||d.single))){let d=[];for(let{line:n,token:c,indent:b,empty:i,single:O}of f)(O||!i)&&d.push({from:n.from+b,insert:c+" "});let l=e.changes(d);return{changes:l,selection:e.selection.map(l,1)}}else if(t!=1&&f.some(d=>d.comment>=0)){let d=[];for(let{line:l,comment:n,token:c}of f)if(n>=0){let b=l.from+n,i=b+c.length;l.text[i-l.from]==" "&&i++,d.push({from:b,to:i})}return{changes:d}}return null}const xse=LO.define(),oAe=LO.define(),iAe=Ba.define(),pbe=Ba.define({combine(t){return b_(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,o)=>o},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,o)=>(f,P)=>e(f,P)||o(f,P)})}}),mbe=Ap.define({create(){return s_.empty},update(t,e){let o=e.state.facet(pbe),f=e.annotation(xse);if(f){let c=b1.fromTransaction(e,f.selection),b=f.side,i=b==0?t.undone:t.done;return c?i=GH(i,i.length,o.minDepth,c):i=ybe(i,e.startState.selection),new s_(b==0?f.rest:i,b==0?i:f.rest)}let P=e.annotation(oAe);if((P=="full"||P=="before")&&(t=t.isolate()),e.annotation(Sp.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let d=b1.fromTransaction(e),l=e.annotation(Sp.time),n=e.annotation(Sp.userEvent);return d?t=t.addChanges(d,l,n,o,e):e.selection&&(t=t.addSelection(e.startState.selection,l,n,o.newGroupDelay)),(P=="full"||P=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new s_(t.done.map(b1.fromJSON),t.undone.map(b1.fromJSON))}});function aAe(t={}){return[mbe,pbe.of(t),Oa.domEventHandlers({beforeinput(e,o){let f=e.inputType=="historyUndo"?gbe:e.inputType=="historyRedo"?_se:null;return f?(e.preventDefault(),f(o)):!1}})]}function eq(t,e){return function({state:o,dispatch:f}){if(!e&&o.readOnly)return!1;let P=o.field(mbe,!1);if(!P)return!1;let d=P.pop(t,o,e);return d?(f(d),!0):!1}}const gbe=eq(0,!1),_se=eq(1,!1),sAe=eq(0,!0),lAe=eq(1,!0);class b1{constructor(e,o,f,P,d){this.changes=e,this.effects=o,this.mapped=f,this.startSelection=P,this.selectionsAfter=d}setSelAfter(e){return new b1(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,o,f;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(o=this.mapped)===null||o===void 0?void 0:o.toJSON(),startSelection:(f=this.startSelection)===null||f===void 0?void 0:f.toJSON(),selectionsAfter:this.selectionsAfter.map(P=>P.toJSON())}}static fromJSON(e){return new b1(e.changes&&wp.fromJSON(e.changes),[],e.mapped&&f_.fromJSON(e.mapped),e.startSelection&&Yo.fromJSON(e.startSelection),e.selectionsAfter.map(Yo.fromJSON))}static fromTransaction(e,o){let f=Ky;for(let P of e.startState.facet(iAe)){let d=P(e);d.length&&(f=f.concat(d))}return!f.length&&e.changes.empty?null:new b1(e.changes.invert(e.startState.doc),f,void 0,o||e.startState.selection,Ky)}static selection(e){return new b1(void 0,Ky,void 0,void 0,e)}}function GH(t,e,o,f){let P=e+1>o+20?e-o-1:0,d=t.slice(P,e);return d.push(f),d}function cAe(t,e){let o=[],f=!1;return t.iterChangedRanges((P,d)=>o.push(P,d)),e.iterChangedRanges((P,d,l,n)=>{for(let c=0;c=b&&l<=i&&(f=!0)}}),f}function uAe(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((o,f)=>o.empty!=e.ranges[f].empty).length===0}function vbe(t,e){return t.length?e.length?t.concat(e):t:e}const Ky=[],fAe=200;function ybe(t,e){if(t.length){let o=t[t.length-1],f=o.selectionsAfter.slice(Math.max(0,o.selectionsAfter.length-fAe));return f.length&&f[f.length-1].eq(e)?t:(f.push(e),GH(t,t.length-1,1e9,o.setSelAfter(f)))}else return[b1.selection([e])]}function dAe(t){let e=t[t.length-1],o=t.slice();return o[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),o}function Cie(t,e){if(!t.length)return t;let o=t.length,f=Ky;for(;o;){let P=hAe(t[o-1],e,f);if(P.changes&&!P.changes.empty||P.effects.length){let d=t.slice(0,o);return d[o-1]=P,d}else e=P.mapped,o--,f=P.selectionsAfter}return f.length?[b1.selection(f)]:Ky}function hAe(t,e,o){let f=vbe(t.selectionsAfter.length?t.selectionsAfter.map(n=>n.map(e)):Ky,o);if(!t.changes)return b1.selection(f);let P=t.changes.map(e),d=e.mapDesc(t.changes,!0),l=t.mapped?t.mapped.composeDesc(d):d;return new b1(P,cl.mapEffects(t.effects,e),l,t.startSelection.map(d),f)}const pAe=/^(input\.type|delete)($|\.)/;class s_{constructor(e,o,f=0,P=void 0){this.done=e,this.undone=o,this.prevTime=f,this.prevUserEvent=P}isolate(){return this.prevTime?new s_(this.done,this.undone):this}addChanges(e,o,f,P,d){let l=this.done,n=l[l.length-1];return n&&n.changes&&!n.changes.empty&&e.changes&&(!f||pAe.test(f))&&(!n.selectionsAfter.length&&o-this.prevTime0&&o-this.prevTimeo.empty?t.moveByChar(o,e):tq(o,e))}function Zg(t){return t.textDirectionAt(t.state.selection.main.head)==qd.LTR}const xbe=t=>bbe(t,!Zg(t)),_be=t=>bbe(t,Zg(t));function wbe(t,e){return Sx(t,o=>o.empty?t.moveByGroup(o,e):tq(o,e))}const gAe=t=>wbe(t,!Zg(t)),vAe=t=>wbe(t,Zg(t));function yAe(t,e,o){if(e.type.prop(o))return!0;let f=e.to-e.from;return f&&(f>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function nq(t,e,o){let f=Gu(t).resolveInner(e.head),P=o?fl.closedBy:fl.openedBy;for(let c=e.head;;){let b=o?f.childAfter(c):f.childBefore(c);if(!b)break;yAe(t,b,P)?f=b:c=o?b.to:b.from}let d=f.type.prop(P),l,n;return d&&(l=o?a_(t,f.from,1):a_(t,f.to,-1))&&l.matched?n=o?l.end.to:l.end.from:n=o?f.to:f.from,Yo.cursor(n,o?-1:1)}const bAe=t=>Sx(t,e=>nq(t.state,e,!Zg(t))),xAe=t=>Sx(t,e=>nq(t.state,e,Zg(t)));function Obe(t,e){return Sx(t,o=>{if(!o.empty)return tq(o,e);let f=t.moveVertically(o,e);return f.head!=o.head?f:t.moveToLineBoundary(o,e)})}const Sbe=t=>Obe(t,!1),kbe=t=>Obe(t,!0);function Tbe(t){let e=t.scrollDOM.clientHeightl.empty?t.moveVertically(l,e,o.height):tq(l,e));if(P.eq(f.selection))return!1;let d;if(o.selfScroll){let l=t.coordsAtPos(f.selection.main.head),n=t.scrollDOM.getBoundingClientRect(),c=n.top+o.marginTop,b=n.bottom-o.marginBottom;l&&l.top>c&&l.bottomCbe(t,!1),wse=t=>Cbe(t,!0);function yS(t,e,o){let f=t.lineBlockAt(e.head),P=t.moveToLineBoundary(e,o);if(P.head==e.head&&P.head!=(o?f.to:f.from)&&(P=t.moveToLineBoundary(e,o,!1)),!o&&P.head==f.from&&f.length){let d=/^\s*/.exec(t.state.sliceDoc(f.from,Math.min(f.from+100,f.to)))[0].length;d&&e.head!=f.from+d&&(P=Yo.cursor(f.from+d))}return P}const _Ae=t=>Sx(t,e=>yS(t,e,!0)),wAe=t=>Sx(t,e=>yS(t,e,!1)),OAe=t=>Sx(t,e=>yS(t,e,!Zg(t))),SAe=t=>Sx(t,e=>yS(t,e,Zg(t))),kAe=t=>Sx(t,e=>Yo.cursor(t.lineBlockAt(e.head).from,1)),TAe=t=>Sx(t,e=>Yo.cursor(t.lineBlockAt(e.head).to,-1));function CAe(t,e,o){let f=!1,P=MM(t.selection,d=>{let l=a_(t,d.head,-1)||a_(t,d.head,1)||d.head>0&&a_(t,d.head-1,1)||d.headCAe(t,e,!1);function ab(t,e){let o=MM(t.state.selection,f=>{let P=e(f);return Yo.range(f.anchor,P.head,P.goalColumn,P.bidiLevel||void 0)});return o.eq(t.state.selection)?!1:(t.dispatch(x_(t.state,o)),!0)}function Abe(t,e){return ab(t,o=>t.moveByChar(o,e))}const Mbe=t=>Abe(t,!Zg(t)),Ebe=t=>Abe(t,Zg(t));function Pbe(t,e){return ab(t,o=>t.moveByGroup(o,e))}const MAe=t=>Pbe(t,!Zg(t)),EAe=t=>Pbe(t,Zg(t)),PAe=t=>ab(t,e=>nq(t.state,e,!Zg(t))),RAe=t=>ab(t,e=>nq(t.state,e,Zg(t)));function Rbe(t,e){return ab(t,o=>t.moveVertically(o,e))}const Lbe=t=>Rbe(t,!1),Ibe=t=>Rbe(t,!0);function Dbe(t,e){return ab(t,o=>t.moveVertically(o,e,Tbe(t).height))}const $pe=t=>Dbe(t,!1),Vpe=t=>Dbe(t,!0),LAe=t=>ab(t,e=>yS(t,e,!0)),IAe=t=>ab(t,e=>yS(t,e,!1)),DAe=t=>ab(t,e=>yS(t,e,!Zg(t))),BAe=t=>ab(t,e=>yS(t,e,Zg(t))),zAe=t=>ab(t,e=>Yo.cursor(t.lineBlockAt(e.head).from)),FAe=t=>ab(t,e=>Yo.cursor(t.lineBlockAt(e.head).to)),Upe=({state:t,dispatch:e})=>(e(x_(t,{anchor:0})),!0),jpe=({state:t,dispatch:e})=>(e(x_(t,{anchor:t.doc.length})),!0),Qpe=({state:t,dispatch:e})=>(e(x_(t,{anchor:t.selection.main.anchor,head:0})),!0),Hpe=({state:t,dispatch:e})=>(e(x_(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),NAe=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),$Ae=({state:t,dispatch:e})=>{let o=rq(t).map(({from:f,to:P})=>Yo.range(f,Math.min(P+1,t.doc.length)));return e(t.update({selection:Yo.create(o),userEvent:"select"})),!0},VAe=({state:t,dispatch:e})=>{let o=MM(t.selection,f=>{var P;let d=Gu(t).resolveStack(f.from,1);for(let l=d;l;l=l.next){let{node:n}=l;if((n.from=f.to||n.to>f.to&&n.from<=f.from)&&(!((P=n.parent)===null||P===void 0)&&P.parent))return Yo.range(n.to,n.from)}return f});return e(x_(t,o)),!0},UAe=({state:t,dispatch:e})=>{let o=t.selection,f=null;return o.ranges.length>1?f=Yo.create([o.main]):o.main.empty||(f=Yo.create([Yo.cursor(o.main.head)])),f?(e(x_(t,f)),!0):!1};function _D(t,e){if(t.state.readOnly)return!1;let o="delete.selection",{state:f}=t,P=f.changeByRange(d=>{let{from:l,to:n}=d;if(l==n){let c=e(d);cl&&(o="delete.forward",c=VQ(t,c,!0)),l=Math.min(l,c),n=Math.max(n,c)}else l=VQ(t,l,!1),n=VQ(t,n,!0);return l==n?{range:d}:{changes:{from:l,to:n},range:Yo.cursor(l,lP(t)))f.between(e,e,(P,d)=>{Pe&&(e=o?d:P)});return e}const Bbe=(t,e)=>_D(t,o=>{let f=o.from,{state:P}=t,d=P.doc.lineAt(f),l,n;if(!e&&f>d.from&&fBbe(t,!1),zbe=t=>Bbe(t,!0),Fbe=(t,e)=>_D(t,o=>{let f=o.head,{state:P}=t,d=P.doc.lineAt(f),l=P.charCategorizer(f);for(let n=null;;){if(f==(e?d.to:d.from)){f==o.head&&d.number!=(e?P.doc.lines:1)&&(f+=e?1:-1);break}let c=ng(d.text,f-d.from,e)+d.from,b=d.text.slice(Math.min(f,c)-d.from,Math.max(f,c)-d.from),i=l(b);if(n!=null&&i!=n)break;(b!=" "||f!=o.head)&&(n=i),f=c}return f}),Nbe=t=>Fbe(t,!1),jAe=t=>Fbe(t,!0),QAe=t=>_D(t,e=>{let o=t.lineBlockAt(e.head).to;return e.head_D(t,e=>{let o=t.moveToLineBoundary(e,!1).head;return e.head>o?o:Math.max(0,e.head-1)}),ZAe=t=>_D(t,e=>{let o=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let o=t.changeByRange(f=>({changes:{from:f.from,to:f.to,insert:ru.of(["",""])},range:Yo.cursor(f.from)}));return e(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0},WAe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=t.changeByRange(f=>{if(!f.empty||f.from==0||f.from==t.doc.length)return{range:f};let P=f.from,d=t.doc.lineAt(P),l=P==d.from?P-1:ng(d.text,P-d.from,!1)+d.from,n=P==d.to?P+1:ng(d.text,P-d.from,!0)+d.from;return{changes:{from:l,to:n,insert:t.doc.slice(P,n).append(t.doc.slice(l,P))},range:Yo.cursor(n)}});return o.changes.empty?!1:(e(t.update(o,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function rq(t){let e=[],o=-1;for(let f of t.selection.ranges){let P=t.doc.lineAt(f.from),d=t.doc.lineAt(f.to);if(!f.empty&&f.to==d.from&&(d=t.doc.lineAt(f.to-1)),o>=P.number){let l=e[e.length-1];l.to=d.to,l.ranges.push(f)}else e.push({from:P.from,to:d.to,ranges:[f]});o=d.number+1}return e}function $be(t,e,o){if(t.readOnly)return!1;let f=[],P=[];for(let d of rq(t)){if(o?d.to==t.doc.length:d.from==0)continue;let l=t.doc.lineAt(o?d.to+1:d.from-1),n=l.length+1;if(o){f.push({from:d.to,to:l.to},{from:d.from,insert:l.text+t.lineBreak});for(let c of d.ranges)P.push(Yo.range(Math.min(t.doc.length,c.anchor+n),Math.min(t.doc.length,c.head+n)))}else{f.push({from:l.from,to:d.from},{from:d.to,insert:t.lineBreak+l.text});for(let c of d.ranges)P.push(Yo.range(c.anchor-n,c.head-n))}}return f.length?(e(t.update({changes:f,scrollIntoView:!0,selection:Yo.create(P,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const YAe=({state:t,dispatch:e})=>$be(t,e,!1),XAe=({state:t,dispatch:e})=>$be(t,e,!0);function Vbe(t,e,o){if(t.readOnly)return!1;let f=[];for(let P of rq(t))o?f.push({from:P.from,insert:t.doc.slice(P.from,P.to)+t.lineBreak}):f.push({from:P.to,insert:t.lineBreak+t.doc.slice(P.from,P.to)});return e(t.update({changes:f,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const GAe=({state:t,dispatch:e})=>Vbe(t,e,!1),KAe=({state:t,dispatch:e})=>Vbe(t,e,!0),JAe=t=>{if(t.state.readOnly)return!1;let{state:e}=t,o=e.changes(rq(e).map(({from:P,to:d})=>(P>0?P--:dt.moveVertically(P,!0)).map(o);return t.dispatch({changes:o,selection:f,scrollIntoView:!0,userEvent:"delete.line"}),!0};function eMe(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let o=Gu(t).resolveInner(e),f=o.childBefore(e),P=o.childAfter(e),d;return f&&P&&f.to<=e&&P.from>=e&&(d=f.type.prop(fl.closedBy))&&d.indexOf(P.name)>-1&&t.doc.lineAt(f.to).from==t.doc.lineAt(P.from).from&&!/\S/.test(t.sliceDoc(f.to,P.from))?{from:f.to,to:P.from}:null}const tMe=Ube(!1),nMe=Ube(!0);function Ube(t){return({state:e,dispatch:o})=>{if(e.readOnly)return!1;let f=e.changeByRange(P=>{let{from:d,to:l}=P,n=e.doc.lineAt(d),c=!t&&d==l&&eMe(e,d);t&&(d=l=(l<=n.to?n:e.doc.lineAt(l)).to);let b=new KZ(e,{simulateBreak:d,simulateDoubleBreak:!!c}),i=vce(b,d);for(i==null&&(i=xx(/^\s*/.exec(e.doc.lineAt(d).text)[0],e.tabSize));ln.from&&d{let P=[];for(let l=f.from;l<=f.to;){let n=t.doc.lineAt(l);n.number>o&&(f.empty||f.to>n.from)&&(e(n,P,f),o=n.number),l=n.to+1}let d=t.changes(P);return{changes:P,range:Yo.range(d.mapPos(f.anchor,1),d.mapPos(f.head,1))}})}const rMe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=Object.create(null),f=new KZ(t,{overrideIndentation:d=>{let l=o[d];return l??-1}}),P=Oce(t,(d,l,n)=>{let c=vce(f,d.from);if(c==null)return;/\S/.test(d.text)||(c=0);let b=/^\s*/.exec(d.text)[0],i=VI(t,c);(b!=i||n.fromt.readOnly?!1:(e(t.update(Oce(t,(o,f)=>{f.push({from:o.from,insert:t.facet(wT)})}),{userEvent:"input.indent"})),!0),Qbe=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Oce(t,(o,f)=>{let P=/^\s*/.exec(o.text)[0];if(!P)return;let d=xx(P,t.tabSize),l=0,n=VI(t,Math.max(0,d-WH(t)));for(;l({mac:t.key,run:t.run,shift:t.shift}))),aMe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:bAe,shift:PAe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:xAe,shift:RAe},{key:"Alt-ArrowUp",run:YAe},{key:"Shift-Alt-ArrowUp",run:GAe},{key:"Alt-ArrowDown",run:XAe},{key:"Shift-Alt-ArrowDown",run:KAe},{key:"Escape",run:UAe},{key:"Mod-Enter",run:nMe},{key:"Alt-l",mac:"Ctrl-l",run:$Ae},{key:"Mod-i",run:VAe,preventDefault:!0},{key:"Mod-[",run:Qbe},{key:"Mod-]",run:jbe},{key:"Mod-Alt-\\",run:rMe},{key:"Shift-Mod-k",run:JAe},{key:"Shift-Mod-\\",run:AAe},{key:"Mod-/",run:G8e},{key:"Alt-A",run:J8e}].concat(iMe),sMe={key:"Tab",run:jbe,shift:Qbe};function Bf(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,o=arguments[1];if(o&&typeof o=="object"&&o.nodeType==null&&!Array.isArray(o)){for(var f in o)if(Object.prototype.hasOwnProperty.call(o,f)){var P=o[f];typeof P=="string"?t.setAttribute(f,P):P!=null&&(t[f]=P)}e++}for(;et.normalize("NFKD"):t=>t;class hM{constructor(e,o,f=0,P=e.length,d,l){this.test=l,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(f,P),this.bufferStart=f,this.normalize=d?n=>d(Zpe(n)):Zpe,this.query=this.normalize(o)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Jm(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let o=Jle(e),f=this.bufferStart+this.bufferPos;this.bufferPos+=Wy(e);let P=this.normalize(o);for(let d=0,l=f;;d++){let n=P.charCodeAt(d),c=this.match(n,l);if(d==P.length-1){if(c)return this.value=c,this;break}l==f&&dthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let o=this.matchPos<=this.to&&this.re.exec(this.curLine);if(o){let f=this.curLineStart+o.index,P=f+o[0].length;if(this.matchPos=KH(this.text,P+(f==P?1:0)),f==this.curLineStart+this.curLine.length&&this.nextLine(),(fthis.value.to)&&(!this.test||this.test(f,P,o)))return this.value={from:f,to:P,match:o},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=f||P.to<=o){let n=new eM(o,e.sliceString(o,f));return Aie.set(e,n),n}if(P.from==o&&P.to==f)return P;let{text:d,from:l}=P;return l>o&&(d=e.sliceString(o,l)+d,l=o),P.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,o=this.re.exec(this.flat.text);if(o&&!o[0]&&o.index==e&&(this.re.lastIndex=e+1,o=this.re.exec(this.flat.text)),o){let f=this.flat.from+o.index,P=f+o[0].length;if((this.flat.to>=this.to||o.index+o[0].length<=this.flat.text.length-10)&&(!this.test||this.test(f,P,o)))return this.value={from:f,to:P,match:o},this.matchPos=KH(this.text,P+(f==P?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=eM.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(qbe.prototype[Symbol.iterator]=Wbe.prototype[Symbol.iterator]=function(){return this});function lMe(t){try{return new RegExp(t,Sce),!0}catch{return!1}}function KH(t,e){if(e>=t.length)return e;let o=t.lineAt(e),f;for(;e=56320&&f<57344;)e++;return e}function Sse(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),o=Bf("input",{class:"cm-textfield",name:"line",value:e}),f=Bf("form",{class:"cm-gotoLine",onkeydown:d=>{d.keyCode==27?(d.preventDefault(),t.dispatch({effects:JH.of(!1)}),t.focus()):d.keyCode==13&&(d.preventDefault(),P())},onsubmit:d=>{d.preventDefault(),P()}},Bf("label",t.state.phrase("Go to line"),": ",o)," ",Bf("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function P(){let d=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.value);if(!d)return;let{state:l}=t,n=l.doc.lineAt(l.selection.main.head),[,c,b,i,O]=d,w=i?+i.slice(1):0,y=b?+b:n.number;if(b&&O){let u=y/100;c&&(u=u*(c=="-"?-1:1)+n.number/l.doc.lines),y=Math.round(l.doc.lines*u)}else b&&c&&(y=y*(c=="-"?-1:1)+n.number);let p=l.doc.line(Math.max(1,Math.min(l.doc.lines,y))),a=Yo.cursor(p.from+Math.max(0,Math.min(w,p.length)));t.dispatch({effects:[JH.of(!1),Oa.scrollIntoView(a.from,{y:"center"})],selection:a}),t.focus()}return{dom:f}}const JH=cl.define(),qpe=Ap.define({create(){return!0},update(t,e){for(let o of e.effects)o.is(JH)&&(t=o.value);return t},provide:t=>zI.from(t,e=>e?Sse:null)}),cMe=t=>{let e=BI(t,Sse);if(!e){let o=[JH.of(!0)];t.state.field(qpe,!1)==null&&o.push(cl.appendConfig.of([qpe,uMe])),t.dispatch({effects:o}),e=BI(t,Sse)}return e&&e.dom.querySelector("input").select(),!0},uMe=Oa.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),fMe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ybe=Ba.define({combine(t){return b_(t,fMe,{highlightWordAroundCursor:(e,o)=>e||o,minSelectionLength:Math.min,maxMatches:Math.min})}});function dMe(t){let e=[vMe,gMe];return t&&e.push(Ybe.of(t)),e}const hMe=es.mark({class:"cm-selectionMatch"}),pMe=es.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Wpe(t,e,o,f){return(o==0||t(e.sliceDoc(o-1,o))!=Md.Word)&&(f==e.doc.length||t(e.sliceDoc(f,f+1))!=Md.Word)}function mMe(t,e,o,f){return t(e.sliceDoc(o,o+1))==Md.Word&&t(e.sliceDoc(f-1,f))==Md.Word}const gMe=Wd.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Ybe),{state:o}=t,f=o.selection;if(f.ranges.length>1)return es.none;let P=f.main,d,l=null;if(P.empty){if(!e.highlightWordAroundCursor)return es.none;let c=o.wordAt(P.head);if(!c)return es.none;l=o.charCategorizer(P.head),d=o.sliceDoc(c.from,c.to)}else{let c=P.to-P.from;if(c200)return es.none;if(e.wholeWords){if(d=o.sliceDoc(P.from,P.to),l=o.charCategorizer(P.head),!(Wpe(l,o,P.from,P.to)&&mMe(l,o,P.from,P.to)))return es.none}else if(d=o.sliceDoc(P.from,P.to).trim(),!d)return es.none}let n=[];for(let c of t.visibleRanges){let b=new hM(o.doc,d,c.from,c.to);for(;!b.next().done;){let{from:i,to:O}=b.value;if((!l||Wpe(l,o,i,O))&&(P.empty&&i<=P.from&&O>=P.to?n.push(pMe.range(i,O)):(i>=P.to||O<=P.from)&&n.push(hMe.range(i,O)),n.length>e.maxMatches))return es.none}}return es.set(n)}},{decorations:t=>t.decorations}),vMe=Oa.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),yMe=({state:t,dispatch:e})=>{let{selection:o}=t,f=Yo.create(o.ranges.map(P=>t.wordAt(P.head)||Yo.cursor(P.head)),o.mainIndex);return f.eq(o)?!1:(e(t.update({selection:f})),!0)};function bMe(t,e){let{main:o,ranges:f}=t.selection,P=t.wordAt(o.head),d=P&&P.from==o.from&&P.to==o.to;for(let l=!1,n=new hM(t.doc,e,f[f.length-1].to);;)if(n.next(),n.done){if(l)return null;n=new hM(t.doc,e,0,Math.max(0,f[f.length-1].from-1)),l=!0}else{if(l&&f.some(c=>c.from==n.value.from))continue;if(d){let c=t.wordAt(n.value.from);if(!c||c.from!=n.value.from||c.to!=n.value.to)continue}return n.value}}const xMe=({state:t,dispatch:e})=>{let{ranges:o}=t.selection;if(o.some(d=>d.from===d.to))return yMe({state:t,dispatch:e});let f=t.sliceDoc(o[0].from,o[0].to);if(t.selection.ranges.some(d=>t.sliceDoc(d.from,d.to)!=f))return!1;let P=bMe(t,f);return P?(e(t.update({selection:t.selection.addRange(Yo.range(P.from,P.to),!1),effects:Oa.scrollIntoView(P.to)})),!0):!1},EM=Ba.define({combine(t){return b_(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new RMe(e),scrollToMatch:e=>Oa.scrollIntoView(e)})}});class Xbe{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||lMe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(o,f)=>f=="n"?` +`:f=="r"?"\r":f=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new SMe(this):new wMe(this)}getCursor(e,o=0,f){let P=e.doc?e:jl.create({doc:e});return f==null&&(f=P.doc.length),this.regexp?NA(this,P,o,f):FA(this,P,o,f)}}class Gbe{constructor(e){this.spec=e}}function FA(t,e,o,f){return new hM(e.doc,t.unquoted,o,f,t.caseSensitive?void 0:P=>P.toLowerCase(),t.wholeWord?_Me(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function _Me(t,e){return(o,f,P,d)=>((d>o||d+P.length=o)return null;P.push(f.value)}return P}highlight(e,o,f,P){let d=FA(this.spec,e,Math.max(0,o-this.spec.unquoted.length),Math.min(f+this.spec.unquoted.length,e.doc.length));for(;!d.next().done;)P(d.value.from,d.value.to)}}function NA(t,e,o,f){return new qbe(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?OMe(e.charCategorizer(e.selection.main.head)):void 0},o,f)}function eZ(t,e){return t.slice(ng(t,e,!1),e)}function tZ(t,e){return t.slice(e,ng(t,e))}function OMe(t){return(e,o,f)=>!f[0].length||(t(eZ(f.input,f.index))!=Md.Word||t(tZ(f.input,f.index))!=Md.Word)&&(t(tZ(f.input,f.index+f[0].length))!=Md.Word||t(eZ(f.input,f.index+f[0].length))!=Md.Word)}class SMe extends Gbe{nextMatch(e,o,f){let P=NA(this.spec,e,f,e.doc.length).next();return P.done&&(P=NA(this.spec,e,0,o).next()),P.done?null:P.value}prevMatchInRange(e,o,f){for(let P=1;;P++){let d=Math.max(o,f-P*1e4),l=NA(this.spec,e,d,f),n=null;for(;!l.next().done;)n=l.value;if(n&&(d==o||n.from>d+10))return n;if(d==o)return null}}prevMatch(e,o,f){return this.prevMatchInRange(e,0,o)||this.prevMatchInRange(e,f,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(o,f)=>f=="$"?"$":f=="&"?e.match[0]:f!="0"&&+f=o)return null;P.push(f.value)}return P}highlight(e,o,f,P){let d=NA(this.spec,e,Math.max(0,o-250),Math.min(f+250,e.doc.length));for(;!d.next().done;)P(d.value.from,d.value.to)}}const UI=cl.define(),kce=cl.define(),tS=Ap.define({create(t){return new Mie(kse(t).create(),null)},update(t,e){for(let o of e.effects)o.is(UI)?t=new Mie(o.value.create(),t.panel):o.is(kce)&&(t=new Mie(t.query,o.value?Tce:null));return t},provide:t=>zI.from(t,e=>e.panel)});class Mie{constructor(e,o){this.query=e,this.panel=o}}const kMe=es.mark({class:"cm-searchMatch"}),TMe=es.mark({class:"cm-searchMatch cm-searchMatch-selected"}),CMe=Wd.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(tS))}update(t){let e=t.state.field(tS);(e!=t.startState.field(tS)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return es.none;let{view:o}=this,f=new oS;for(let P=0,d=o.visibleRanges,l=d.length;Pd[P+1].from-2*250;)c=d[++P].to;t.highlight(o.state,n,c,(b,i)=>{let O=o.state.selection.ranges.some(w=>w.from==b&&w.to==i);f.add(b,i,O?TMe:kMe)})}return f.finish()}},{decorations:t=>t.decorations});function wD(t){return e=>{let o=e.state.field(tS,!1);return o&&o.query.spec.valid?t(e,o):exe(e)}}const nZ=wD((t,{query:e})=>{let{to:o}=t.state.selection.main,f=e.nextMatch(t.state,o,o);if(!f)return!1;let P=Yo.single(f.from,f.to),d=t.state.facet(EM);return t.dispatch({selection:P,effects:[Cce(t,f),d.scrollToMatch(P.main,t)],userEvent:"select.search"}),Jbe(t),!0}),rZ=wD((t,{query:e})=>{let{state:o}=t,{from:f}=o.selection.main,P=e.prevMatch(o,f,f);if(!P)return!1;let d=Yo.single(P.from,P.to),l=t.state.facet(EM);return t.dispatch({selection:d,effects:[Cce(t,P),l.scrollToMatch(d.main,t)],userEvent:"select.search"}),Jbe(t),!0}),AMe=wD((t,{query:e})=>{let o=e.matchAll(t.state,1e3);return!o||!o.length?!1:(t.dispatch({selection:Yo.create(o.map(f=>Yo.range(f.from,f.to))),userEvent:"select.search.matches"}),!0)}),MMe=({state:t,dispatch:e})=>{let o=t.selection;if(o.ranges.length>1||o.main.empty)return!1;let{from:f,to:P}=o.main,d=[],l=0;for(let n=new hM(t.doc,t.sliceDoc(f,P));!n.next().done;){if(d.length>1e3)return!1;n.value.from==f&&(l=d.length),d.push(Yo.range(n.value.from,n.value.to))}return e(t.update({selection:Yo.create(d,l),userEvent:"select.search.matches"})),!0},Ype=wD((t,{query:e})=>{let{state:o}=t,{from:f,to:P}=o.selection.main;if(o.readOnly)return!1;let d=e.nextMatch(o,f,f);if(!d)return!1;let l=[],n,c,b=[];if(d.from==f&&d.to==P&&(c=o.toText(e.getReplacement(d)),l.push({from:d.from,to:d.to,insert:c}),d=e.nextMatch(o,d.from,d.to),b.push(Oa.announce.of(o.phrase("replaced match on line $",o.doc.lineAt(f).number)+"."))),d){let i=l.length==0||l[0].from>=d.to?0:d.to-d.from-c.length;n=Yo.single(d.from-i,d.to-i),b.push(Cce(t,d)),b.push(o.facet(EM).scrollToMatch(n.main,t))}return t.dispatch({changes:l,selection:n,effects:b,userEvent:"input.replace"}),!0}),EMe=wD((t,{query:e})=>{if(t.state.readOnly)return!1;let o=e.matchAll(t.state,1e9).map(P=>{let{from:d,to:l}=P;return{from:d,to:l,insert:e.getReplacement(P)}});if(!o.length)return!1;let f=t.state.phrase("replaced $ matches",o.length)+".";return t.dispatch({changes:o,effects:Oa.announce.of(f),userEvent:"input.replace.all"}),!0});function Tce(t){return t.state.facet(EM).createPanel(t)}function kse(t,e){var o,f,P,d,l;let n=t.selection.main,c=n.empty||n.to>n.from+100?"":t.sliceDoc(n.from,n.to);if(e&&!c)return e;let b=t.facet(EM);return new Xbe({search:((o=e==null?void 0:e.literal)!==null&&o!==void 0?o:b.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:(f=e==null?void 0:e.caseSensitive)!==null&&f!==void 0?f:b.caseSensitive,literal:(P=e==null?void 0:e.literal)!==null&&P!==void 0?P:b.literal,regexp:(d=e==null?void 0:e.regexp)!==null&&d!==void 0?d:b.regexp,wholeWord:(l=e==null?void 0:e.wholeWord)!==null&&l!==void 0?l:b.wholeWord})}function Kbe(t){let e=BI(t,Tce);return e&&e.dom.querySelector("[main-field]")}function Jbe(t){let e=Kbe(t);e&&e==t.root.activeElement&&e.select()}const exe=t=>{let e=t.state.field(tS,!1);if(e&&e.panel){let o=Kbe(t);if(o&&o!=t.root.activeElement){let f=kse(t.state,e.query.spec);f.valid&&t.dispatch({effects:UI.of(f)}),o.focus(),o.select()}}else t.dispatch({effects:[kce.of(!0),e?UI.of(kse(t.state,e.query.spec)):cl.appendConfig.of(IMe)]});return!0},txe=t=>{let e=t.state.field(tS,!1);if(!e||!e.panel)return!1;let o=BI(t,Tce);return o&&o.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:kce.of(!1)}),!0},PMe=[{key:"Mod-f",run:exe,scope:"editor search-panel"},{key:"F3",run:nZ,shift:rZ,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:nZ,shift:rZ,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:txe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:MMe},{key:"Mod-Alt-g",run:cMe},{key:"Mod-d",run:xMe,preventDefault:!0}];class RMe{constructor(e){this.view=e;let o=this.query=e.state.field(tS).query.spec;this.commit=this.commit.bind(this),this.searchField=Bf("input",{value:o.search,placeholder:Mv(e,"Find"),"aria-label":Mv(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Bf("input",{value:o.replace,placeholder:Mv(e,"Replace"),"aria-label":Mv(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Bf("input",{type:"checkbox",name:"case",form:"",checked:o.caseSensitive,onchange:this.commit}),this.reField=Bf("input",{type:"checkbox",name:"re",form:"",checked:o.regexp,onchange:this.commit}),this.wordField=Bf("input",{type:"checkbox",name:"word",form:"",checked:o.wholeWord,onchange:this.commit});function f(P,d,l){return Bf("button",{class:"cm-button",name:P,onclick:d,type:"button"},l)}this.dom=Bf("div",{onkeydown:P=>this.keydown(P),class:"cm-search"},[this.searchField,f("next",()=>nZ(e),[Mv(e,"next")]),f("prev",()=>rZ(e),[Mv(e,"previous")]),f("select",()=>AMe(e),[Mv(e,"all")]),Bf("label",null,[this.caseField,Mv(e,"match case")]),Bf("label",null,[this.reField,Mv(e,"regexp")]),Bf("label",null,[this.wordField,Mv(e,"by word")]),...e.state.readOnly?[]:[Bf("br"),this.replaceField,f("replace",()=>Ype(e),[Mv(e,"replace")]),f("replaceAll",()=>EMe(e),[Mv(e,"replace all")])],Bf("button",{name:"close",onclick:()=>txe(e),"aria-label":Mv(e,"close"),type:"button"},["×"])])}commit(){let e=new Xbe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:UI.of(e)}))}keydown(e){j6e(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?rZ:nZ)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Ype(this.view))}update(e){for(let o of e.transactions)for(let f of o.effects)f.is(UI)&&!f.value.eq(this.query)&&this.setQuery(f.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(EM).top}}function Mv(t,e){return t.state.phrase(e)}const UQ=30,jQ=/[\s\.,:;?!]/;function Cce(t,{from:e,to:o}){let f=t.state.doc.lineAt(e),P=t.state.doc.lineAt(o).to,d=Math.max(f.from,e-UQ),l=Math.min(P,o+UQ),n=t.state.sliceDoc(d,l);if(d!=f.from){for(let c=0;cn.length-UQ;c--)if(!jQ.test(n[c-1])&&jQ.test(n[c])){n=n.slice(0,c);break}}return Oa.announce.of(`${t.state.phrase("current match")}. ${n} ${t.state.phrase("on line")} ${f.number}.`)}const LMe=Oa.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),IMe=[tS,Vv.low(CMe),LMe];class Ace{constructor(e,o,f){this.state=e,this.pos=o,this.explicit=f,this.abortListeners=[]}tokenBefore(e){let o=Gu(this.state).resolveInner(this.pos,-1);for(;o&&e.indexOf(o.name)<0;)o=o.parent;return o?{from:o.from,to:this.pos,text:this.state.sliceDoc(o.from,this.pos),type:o.type}:null}matchBefore(e){let o=this.state.doc.lineAt(this.pos),f=Math.max(o.from,this.pos-250),P=o.text.slice(f-o.from,this.pos-o.from),d=P.search(nxe(e,!1));return d<0?null:{from:f+d,to:this.pos,text:P.slice(d)}}get aborted(){return this.abortListeners==null}addEventListener(e,o){e=="abort"&&this.abortListeners&&this.abortListeners.push(o)}}function Xpe(t){let e=Object.keys(t).join(""),o=/\w/.test(e);return o&&(e=e.replace(/\w/g,"")),`[${o?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function DMe(t){let e=Object.create(null),o=Object.create(null);for(let{label:P}of t){e[P[0]]=!0;for(let d=1;dtypeof P=="string"?{label:P}:P),[o,f]=e.every(P=>/^\w+$/.test(P.label))?[/\w*$/,/\w+$/]:DMe(e);return P=>{let d=P.matchBefore(f);return d||P.explicit?{from:d?d.from:P.pos,options:e,validFor:o}:null}}function Mce(t,e){return o=>{for(let f=Gu(o.state).resolveInner(o.pos,-1);f;f=f.parent){if(t.indexOf(f.name)>-1)return null;if(f.type.isTop)break}return e(o)}}class Gpe{constructor(e,o,f,P){this.completion=e,this.source=o,this.match=f,this.score=P}}function nS(t){return t.selection.main.from}function nxe(t,e){var o;let{source:f}=t,P=e&&f[0]!="^",d=f[f.length-1]!="$";return!P&&!d?t:new RegExp(`${P?"^":""}(?:${f})${d?"$":""}`,(o=t.flags)!==null&&o!==void 0?o:t.ignoreCase?"i":"")}const rxe=LO.define();function BMe(t,e,o,f){let{main:P}=t.selection,d=o-P.from,l=f-P.from;return Object.assign(Object.assign({},t.changeByRange(n=>n!=P&&o!=f&&t.sliceDoc(n.from+d,n.from+l)!=t.sliceDoc(o,f)?{range:n}:{changes:{from:n.from+d,to:f==P.from?n.to:n.from+l,insert:e},range:Yo.cursor(n.from+d+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Kpe=new WeakMap;function zMe(t){if(!Array.isArray(t))return t;let e=Kpe.get(t);return e||Kpe.set(t,e=oq(t)),e}const Ece=cl.define(),jI=cl.define();class FMe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let o=0;o=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(A=Jle(S))!=A.toLowerCase()?1:A!=A.toUpperCase()?2:0;(!m||x==1&&u||_==0&&x!=0)&&(o[O]==S||f[O]==S&&(w=!0)?l[O++]=m:l.length&&(h=!1)),_=x,m+=Wy(S)}return O==c&&l[0]==0&&h?this.result(-100+(w?-200:0),l,e):y==c&&p==0?this.ret(-200-e.length+(a==e.length?0:-100),[0,a]):n>-1?this.ret(-700-e.length,[n,n+this.pattern.length]):y==c?this.ret(-200+-700-e.length,[p,a]):O==c?this.result(-100+(w?-200:0)+-700+(h?0:-1100),l,e):o.length==2?!1:this.result((P[0]?-700:0)+-200+-1100,P,e)}result(e,o,f){let P=[],d=0;for(let l of o){let n=l+(this.astral?Wy(Jm(f,l)):1);d&&P[d-1]==l?P[d-1]=n:(P[d++]=l,P[d++]=n)}return this.ret(e-f.length,P)}}const Ug=Ba.define({combine(t){return b_(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:NMe,compareCompletions:(e,o)=>e.label.localeCompare(o.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,o)=>e&&o,closeOnBlur:(e,o)=>e&&o,icons:(e,o)=>e&&o,tooltipClass:(e,o)=>f=>Jpe(e(f),o(f)),optionClass:(e,o)=>f=>Jpe(e(f),o(f)),addToOptions:(e,o)=>e.concat(o)})}});function Jpe(t,e){return t?e?t+" "+e:t:e}function NMe(t,e,o,f,P,d){let l=t.textDirection==qd.RTL,n=l,c=!1,b="top",i,O,w=e.left-P.left,y=P.right-e.right,p=f.right-f.left,a=f.bottom-f.top;if(n&&w=a||m>e.top?i=o.bottom-e.top:(b="bottom",i=e.bottom-o.top)}let u=(e.bottom-e.top)/d.offsetHeight,h=(e.right-e.left)/d.offsetWidth;return{style:`${b}: ${i/u}px; max-width: ${O/h}px`,class:"cm-completionInfo-"+(c?l?"left-narrow":"right-narrow":n?"left":"right")}}function $Me(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(o){let f=document.createElement("div");return f.classList.add("cm-completionIcon"),o.type&&f.classList.add(...o.type.split(/\s+/g).map(P=>"cm-completionIcon-"+P)),f.setAttribute("aria-hidden","true"),f},position:20}),e.push({render(o,f,P,d){let l=document.createElement("span");l.className="cm-completionLabel";let n=o.displayLabel||o.label,c=0;for(let b=0;bc&&l.appendChild(document.createTextNode(n.slice(c,i)));let w=l.appendChild(document.createElement("span"));w.appendChild(document.createTextNode(n.slice(i,O))),w.className="cm-completionMatchedText",c=O}return co.position-f.position).map(o=>o.render)}function Eie(t,e,o){if(t<=o)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let P=Math.floor(e/o);return{from:P*o,to:(P+1)*o}}let f=Math.floor((t-e)/o);return{from:t-(f+1)*o,to:t-f*o}}class VMe{constructor(e,o,f){this.view=e,this.stateField=o,this.applyCompletion=f,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:c=>this.placeInfo(c),key:this},this.space=null,this.currentClass="";let P=e.state.field(o),{options:d,selected:l}=P.open,n=e.state.facet(Ug);this.optionContent=$Me(n),this.optionClass=n.optionClass,this.tooltipClass=n.tooltipClass,this.range=Eie(d.length,l,n.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",c=>{let{options:b}=e.state.field(o).open;for(let i=c.target,O;i&&i!=this.dom;i=i.parentNode)if(i.nodeName=="LI"&&(O=/-(\d+)$/.exec(i.id))&&+O[1]{let b=e.state.field(this.stateField,!1);b&&b.tooltip&&e.state.facet(Ug).closeOnBlur&&c.relatedTarget!=e.contentDOM&&e.dispatch({effects:jI.of(null)})}),this.showOptions(d,P.id)}mount(){this.updateSel()}showOptions(e,o){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,o,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var o;let f=e.state.field(this.stateField),P=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),f!=P){let{options:d,selected:l,disabled:n}=f.open;(!P.open||P.open.options!=d)&&(this.range=Eie(d.length,l,e.state.facet(Ug).maxRenderedOptions),this.showOptions(d,f.id)),this.updateSel(),n!=((o=P.open)===null||o===void 0?void 0:o.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!n)}}updateTooltipClass(e){let o=this.tooltipClass(e);if(o!=this.currentClass){for(let f of this.currentClass.split(" "))f&&this.dom.classList.remove(f);for(let f of o.split(" "))f&&this.dom.classList.add(f);this.currentClass=o}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),o=e.open;if((o.selected>-1&&o.selected=this.range.to)&&(this.range=Eie(o.options.length,o.selected,this.view.state.facet(Ug).maxRenderedOptions),this.showOptions(o.options,e.id)),this.updateSelectedOption(o.selected)){this.destroyInfo();let{completion:f}=o.options[o.selected],{info:P}=f;if(!P)return;let d=typeof P=="string"?document.createTextNode(P):P(f);if(!d)return;"then"in d?d.then(l=>{l&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(l,f)}).catch(l=>tb(this.view.state,l,"completion info")):this.addInfoPane(d,f)}}addInfoPane(e,o){this.destroyInfo();let f=this.info=document.createElement("div");if(f.className="cm-tooltip cm-completionInfo",e.nodeType!=null)f.appendChild(e),this.infoDestroy=null;else{let{dom:P,destroy:d}=e;f.appendChild(P),this.infoDestroy=d||null}this.dom.appendChild(f),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let o=null;for(let f=this.list.firstChild,P=this.range.from;f;f=f.nextSibling,P++)f.nodeName!="LI"||!f.id?P--:P==e?f.hasAttribute("aria-selected")||(f.setAttribute("aria-selected","true"),o=f):f.hasAttribute("aria-selected")&&f.removeAttribute("aria-selected");return o&&jMe(this.list,o),o}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let o=this.dom.getBoundingClientRect(),f=this.info.getBoundingClientRect(),P=e.getBoundingClientRect(),d=this.space;if(!d){let l=this.dom.ownerDocument.defaultView||window;d={left:0,top:0,right:l.innerWidth,bottom:l.innerHeight}}return P.top>Math.min(d.bottom,o.bottom)-10||P.bottomf.from||f.from==0))if(d=w,typeof b!="string"&&b.header)P.appendChild(b.header(b));else{let y=P.appendChild(document.createElement("completion-section"));y.textContent=w}}const i=P.appendChild(document.createElement("li"));i.id=o+"-"+l,i.setAttribute("role","option");let O=this.optionClass(n);O&&(i.className=O);for(let w of this.optionContent){let y=w(n,this.view.state,this.view,c);y&&i.appendChild(y)}}return f.from&&P.classList.add("cm-completionListIncompleteTop"),f.tonew VMe(o,t,e)}function jMe(t,e){let o=t.getBoundingClientRect(),f=e.getBoundingClientRect(),P=o.height/t.offsetHeight;f.topo.bottom&&(t.scrollTop+=(f.bottom-o.bottom)/P)}function eme(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function QMe(t,e){let o=[],f=null,P=c=>{o.push(c);let{section:b}=c.completion;if(b){f||(f=[]);let i=typeof b=="string"?b:b.name;f.some(O=>O.name==i)||f.push(typeof b=="string"?{name:i}:b)}};for(let c of t)if(c.hasResult()){let b=c.result.getMatch;if(c.result.filter===!1)for(let i of c.result.options)P(new Gpe(i,c.source,b?b(i):[],1e9-o.length));else{let i=new FMe(e.sliceDoc(c.from,c.to));for(let O of c.result.options)if(i.match(O.label)){let w=O.displayLabel?b?b(O,i.matched):[]:i.matched;P(new Gpe(O,c.source,w,i.score+(O.boost||0)))}}}if(f){let c=Object.create(null),b=0,i=(O,w)=>{var y,p;return((y=O.rank)!==null&&y!==void 0?y:1e9)-((p=w.rank)!==null&&p!==void 0?p:1e9)||(O.namei.score-b.score||n(b.completion,i.completion))){let b=c.completion;!l||l.label!=b.label||l.detail!=b.detail||l.type!=null&&b.type!=null&&l.type!=b.type||l.apply!=b.apply||l.boost!=b.boost?d.push(c):eme(c.completion)>eme(l)&&(d[d.length-1]=c),l=c.completion}return d}class jA{constructor(e,o,f,P,d,l){this.options=e,this.attrs=o,this.tooltip=f,this.timestamp=P,this.selected=d,this.disabled=l}setSelected(e,o){return e==this.selected||e>=this.options.length?this:new jA(this.options,tme(o,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,o,f,P,d){let l=QMe(e,o);if(!l.length)return P&&e.some(c=>c.state==1)?new jA(P.options,P.attrs,P.tooltip,P.timestamp,P.selected,!0):null;let n=o.facet(Ug).selectOnOpen?0:-1;if(P&&P.selected!=n&&P.selected!=-1){let c=P.options[P.selected].completion;for(let b=0;bb.hasResult()?Math.min(c,b.from):c,1e8),create:YMe,above:d.aboveCursor},P?P.timestamp:Date.now(),n,!1)}map(e){return new jA(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class oZ{constructor(e,o,f){this.active=e,this.id=o,this.open=f}static start(){return new oZ(qMe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:o}=e,f=o.facet(Ug),d=(f.override||o.languageDataAt("autocomplete",nS(o)).map(zMe)).map(n=>(this.active.find(b=>b.source==n)||new v1(n,this.active.some(b=>b.state!=0)?1:0)).update(e,f));d.length==this.active.length&&d.every((n,c)=>n==this.active[c])&&(d=this.active);let l=this.open;l&&e.docChanged&&(l=l.map(e.changes)),e.selection||d.some(n=>n.hasResult()&&e.changes.touchesRange(n.from,n.to))||!HMe(d,this.active)?l=jA.build(d,o,this.id,l,f):l&&l.disabled&&!d.some(n=>n.state==1)&&(l=null),!l&&d.every(n=>n.state!=1)&&d.some(n=>n.hasResult())&&(d=d.map(n=>n.hasResult()?new v1(n.source,0):n));for(let n of e.effects)n.is(ixe)&&(l=l&&l.setSelected(n.value,this.id));return d==this.active&&l==this.open?this:new oZ(d,this.id,l)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:ZMe}}function HMe(t,e){if(t==e)return!0;for(let o=0,f=0;;){for(;o-1&&(o["aria-activedescendant"]=t+"-"+e),o}const qMe=[];function Tse(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class v1{constructor(e,o,f=-1){this.source=e,this.state=o,this.explicitPos=f}hasResult(){return!1}update(e,o){let f=Tse(e),P=this;f?P=P.handleUserEvent(e,f,o):e.docChanged?P=P.handleChange(e):e.selection&&P.state!=0&&(P=new v1(P.source,0));for(let d of e.effects)if(d.is(Ece))P=new v1(P.source,1,d.value?nS(e.state):-1);else if(d.is(jI))P=new v1(P.source,0);else if(d.is(oxe))for(let l of d.value)l.source==P.source&&(P=l);return P}handleUserEvent(e,o,f){return o=="delete"||!f.activateOnTyping?this.map(e.changes):new v1(this.source,1)}handleChange(e){return e.changes.touchesRange(nS(e.startState))?new v1(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new v1(this.source,this.state,e.mapPos(this.explicitPos))}}class tM extends v1{constructor(e,o,f,P,d){super(e,2,o),this.result=f,this.from=P,this.to=d}hasResult(){return!0}handleUserEvent(e,o,f){var P;let d=e.changes.mapPos(this.from),l=e.changes.mapPos(this.to,1),n=nS(e.state);if((this.explicitPos<0?n<=d:nl||o=="delete"&&nS(e.startState)==this.from)return new v1(this.source,o=="input"&&f.activateOnTyping?1:0);let c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),b;return WMe(this.result.validFor,e.state,d,l)?new tM(this.source,c,this.result,d,l):this.result.update&&(b=this.result.update(this.result,d,l,new Ace(e.state,n,c>=0)))?new tM(this.source,c,b,b.from,(P=b.to)!==null&&P!==void 0?P:nS(e.state)):new v1(this.source,1,c)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new v1(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new tM(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function WMe(t,e,o,f){if(!t)return!1;let P=e.sliceDoc(o,f);return typeof t=="function"?t(P,o,f,e):nxe(t,!0).test(P)}const oxe=cl.define({map(t,e){return t.map(o=>o.map(e))}}),ixe=cl.define(),Bv=Ap.define({create(){return oZ.start()},update(t,e){return t.update(e)},provide:t=>[cce.from(t,e=>e.tooltip),Oa.contentAttributes.from(t,e=>e.attrs)]});function axe(t,e){const o=e.completion.apply||e.completion.label;let f=t.state.field(Bv).active.find(P=>P.source==e.source);return f instanceof tM?(typeof o=="string"?t.dispatch(Object.assign(Object.assign({},BMe(t.state,o,f.from,f.to)),{annotations:rxe.of(e.completion)})):o(t,e.completion,f.from,f.to),!0):!1}const YMe=UMe(Bv,axe);function QQ(t,e="option"){return o=>{let f=o.state.field(Bv,!1);if(!f||!f.open||f.open.disabled||Date.now()-f.open.timestamp-1?f.open.selected+P*(t?1:-1):t?0:l-1;return n<0?n=e=="page"?0:l-1:n>=l&&(n=e=="page"?l-1:0),o.dispatch({effects:ixe.of(n)}),!0}}const XMe=t=>{let e=t.state.field(Bv,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(Bv,!1)?(t.dispatch({effects:Ece.of(!0)}),!0):!1,KMe=t=>{let e=t.state.field(Bv,!1);return!e||!e.active.some(o=>o.state!=0)?!1:(t.dispatch({effects:jI.of(null)}),!0)};class JMe{constructor(e,o){this.active=e,this.context=o,this.time=Date.now(),this.updates=[],this.done=void 0}}const eEe=50,tEe=1e3,nEe=Wd.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of t.state.field(Bv).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(Bv);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Bv)==e)return;let o=t.transactions.some(f=>(f.selection||f.docChanged)&&!Tse(f));for(let f=0;feEe&&Date.now()-P.time>tEe){for(let d of P.context.abortListeners)try{d()}catch(l){tb(this.view.state,l)}P.context.abortListeners=null,this.running.splice(f--,1)}else P.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(f=>f.state==1&&!this.running.some(P=>P.active.source==f.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let f of t.transactions)Tse(f)=="input"?this.composing=2:this.composing==2&&f.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(Bv);for(let o of e.active)o.state==1&&!this.running.some(f=>f.active.source==o.source)&&this.startQuery(o)}startQuery(t){let{state:e}=this.view,o=nS(e),f=new Ace(e,o,t.explicitPos==o),P=new JMe(t,f);this.running.push(P),Promise.resolve(t.source(f)).then(d=>{P.context.aborted||(P.done=d||null,this.scheduleAccept())},d=>{this.view.dispatch({effects:jI.of(null)}),tb(this.view.state,d)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Ug).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],o=this.view.state.facet(Ug);for(let f=0;fl.source==P.active.source);if(d&&d.state==1)if(P.done==null){let l=new v1(P.active.source,0);for(let n of P.updates)l=l.update(n,o);l.state!=1&&e.push(l)}else this.startQuery(d)}e.length&&this.view.dispatch({effects:oxe.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Bv,!1);if(e&&e.tooltip&&this.view.state.facet(Ug).closeOnBlur){let o=e.open&&$ye(this.view,e.open.tooltip);(!o||!o.dom.contains(t.relatedTarget))&&this.view.dispatch({effects:jI.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Ece.of(!1)}),20),this.composing=0}}}),sxe=Oa.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class rEe{constructor(e,o,f,P){this.field=e,this.line=o,this.from=f,this.to=P}}class Pce{constructor(e,o,f){this.field=e,this.from=o,this.to=f}map(e){let o=e.mapPos(this.from,-1,tg.TrackDel),f=e.mapPos(this.to,1,tg.TrackDel);return o==null||f==null?null:new Pce(this.field,o,f)}}class Rce{constructor(e,o){this.lines=e,this.fieldPositions=o}instantiate(e,o){let f=[],P=[o],d=e.doc.lineAt(o),l=/^\s*/.exec(d.text)[0];for(let c of this.lines){if(f.length){let b=l,i=/^\t*/.exec(c)[0].length;for(let O=0;Onew Pce(c.field,P[c.line]+c.from,P[c.line]+c.to));return{text:f,ranges:n}}static parse(e){let o=[],f=[],P=[],d;for(let l of e.split(/\r\n?|\n/)){for(;d=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(l);){let n=d[1]?+d[1]:null,c=d[2]||d[3]||"",b=-1;for(let i=0;i=b&&O.field++}P.push(new rEe(b,f.length,d.index,d.index+c.length)),l=l.slice(0,d.index)+c+l.slice(d.index+d[0].length)}for(let n;n=/\\([{}])/.exec(l);){l=l.slice(0,n.index)+n[1]+l.slice(n.index+n[0].length);for(let c of P)c.line==f.length&&c.from>n.index&&(c.from--,c.to--)}f.push(l)}return new Rce(f,P)}}let oEe=es.widget({widget:new class extends Ox{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),iEe=es.mark({class:"cm-snippetField"});class PM{constructor(e,o){this.ranges=e,this.active=o,this.deco=es.set(e.map(f=>(f.from==f.to?oEe:iEe).range(f.from,f.to)))}map(e){let o=[];for(let f of this.ranges){let P=f.map(e);if(!P)return null;o.push(P)}return new PM(o,this.active)}selectionInsideField(e){return e.ranges.every(o=>this.ranges.some(f=>f.field==this.active&&f.from<=o.from&&f.to>=o.to))}}const OD=cl.define({map(t,e){return t&&t.map(e)}}),aEe=cl.define(),QI=Ap.define({create(){return null},update(t,e){for(let o of e.effects){if(o.is(OD))return o.value;if(o.is(aEe)&&t)return new PM(t.ranges,o.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Oa.decorations.from(t,e=>e?e.deco:es.none)});function Lce(t,e){return Yo.create(t.filter(o=>o.field==e).map(o=>Yo.range(o.from,o.to)))}function sEe(t){let e=Rce.parse(t);return(o,f,P,d)=>{let{text:l,ranges:n}=e.instantiate(o.state,P),c={changes:{from:P,to:d,insert:ru.of(l)},scrollIntoView:!0,annotations:f?rxe.of(f):void 0};if(n.length&&(c.selection=Lce(n,0)),n.length>1){let b=new PM(n,0),i=c.effects=[OD.of(b)];o.state.field(QI,!1)===void 0&&i.push(cl.appendConfig.of([QI,dEe,hEe,sxe]))}o.dispatch(o.state.update(c))}}function lxe(t){return({state:e,dispatch:o})=>{let f=e.field(QI,!1);if(!f||t<0&&f.active==0)return!1;let P=f.active+t,d=t>0&&!f.ranges.some(l=>l.field==P+t);return o(e.update({selection:Lce(f.ranges,P),effects:OD.of(d?null:new PM(f.ranges,P)),scrollIntoView:!0})),!0}}const lEe=({state:t,dispatch:e})=>t.field(QI,!1)?(e(t.update({effects:OD.of(null)})),!0):!1,cEe=lxe(1),uEe=lxe(-1),fEe=[{key:"Tab",run:cEe,shift:uEe},{key:"Escape",run:lEe}],nme=Ba.define({combine(t){return t.length?t[0]:fEe}}),dEe=Vv.highest(IO.compute([nme],t=>t.facet(nme)));function Hd(t,e){return Object.assign(Object.assign({},e),{apply:sEe(t)})}const hEe=Oa.domEventHandlers({mousedown(t,e){let o=e.state.field(QI,!1),f;if(!o||(f=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let P=o.ranges.find(d=>d.from<=f&&d.to>=f);return!P||P.field==o.active?!1:(e.dispatch({selection:Lce(o.ranges,P.field),effects:OD.of(o.ranges.some(d=>d.field>P.field)?new PM(o.ranges,P.field):null),scrollIntoView:!0}),!0)}}),HI={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},lT=cl.define({map(t,e){let o=e.mapPos(t,-1,tg.TrackAfter);return o??void 0}}),Ice=new class extends pT{};Ice.startSide=1;Ice.endSide=-1;const cxe=Ap.define({create(){return Vu.empty},update(t,e){if(t=t.map(e.changes),e.selection){let o=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:f=>f>=o.from&&f<=o.to})}for(let o of e.effects)o.is(lT)&&(t=t.update({add:[Ice.range(o.value,o.value+1)]}));return t}});function pEe(){return[gEe,cxe]}const Pie="()[]{}<>";function uxe(t){for(let e=0;e{if((mEe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let P=t.state.selection.main;if(f.length>2||f.length==2&&Wy(Jm(f,0))==1||e!=P.from||o!=P.to)return!1;let d=bEe(t.state,f);return d?(t.dispatch(d),!0):!1}),vEe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let f=fxe(t,t.selection.main.head).brackets||HI.brackets,P=null,d=t.changeByRange(l=>{if(l.empty){let n=xEe(t.doc,l.head);for(let c of f)if(c==n&&iq(t.doc,l.head)==uxe(Jm(c,0)))return{changes:{from:l.head-c.length,to:l.head+c.length},range:Yo.cursor(l.head-c.length)}}return{range:P=l}});return P||e(t.update(d,{scrollIntoView:!0,userEvent:"delete.backward"})),!P},yEe=[{key:"Backspace",run:vEe}];function bEe(t,e){let o=fxe(t,t.selection.main.head),f=o.brackets||HI.brackets;for(let P of f){let d=uxe(Jm(P,0));if(e==P)return d==P?OEe(t,P,f.indexOf(P+P+P)>-1,o):_Ee(t,P,d,o.before||HI.before);if(e==d&&dxe(t,t.selection.main.from))return wEe(t,P,d)}return null}function dxe(t,e){let o=!1;return t.field(cxe).between(0,t.doc.length,f=>{f==e&&(o=!0)}),o}function iq(t,e){let o=t.sliceString(e,e+2);return o.slice(0,Wy(Jm(o,0)))}function xEe(t,e){let o=t.sliceString(e-2,e);return Wy(Jm(o,0))==o.length?o:o.slice(1)}function _Ee(t,e,o,f){let P=null,d=t.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:o,from:l.to}],effects:lT.of(l.to+e.length),range:Yo.range(l.anchor+e.length,l.head+e.length)};let n=iq(t.doc,l.head);return!n||/\s/.test(n)||f.indexOf(n)>-1?{changes:{insert:e+o,from:l.head},effects:lT.of(l.head+e.length),range:Yo.cursor(l.head+e.length)}:{range:P=l}});return P?null:t.update(d,{scrollIntoView:!0,userEvent:"input.type"})}function wEe(t,e,o){let f=null,P=t.changeByRange(d=>d.empty&&iq(t.doc,d.head)==o?{changes:{from:d.head,to:d.head+o.length,insert:o},range:Yo.cursor(d.head+o.length)}:f={range:d});return f?null:t.update(P,{scrollIntoView:!0,userEvent:"input.type"})}function OEe(t,e,o,f){let P=f.stringPrefixes||HI.stringPrefixes,d=null,l=t.changeByRange(n=>{if(!n.empty)return{changes:[{insert:e,from:n.from},{insert:e,from:n.to}],effects:lT.of(n.to+e.length),range:Yo.range(n.anchor+e.length,n.head+e.length)};let c=n.head,b=iq(t.doc,c),i;if(b==e){if(rme(t,c))return{changes:{insert:e+e,from:c},effects:lT.of(c+e.length),range:Yo.cursor(c+e.length)};if(dxe(t,c)){let w=o&&t.sliceDoc(c,c+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+w.length,insert:w},range:Yo.cursor(c+w.length)}}}else{if(o&&t.sliceDoc(c-2*e.length,c)==e+e&&(i=ome(t,c-2*e.length,P))>-1&&rme(t,i))return{changes:{insert:e+e+e+e,from:c},effects:lT.of(c+e.length),range:Yo.cursor(c+e.length)};if(t.charCategorizer(c)(b)!=Md.Word&&ome(t,c,P)>-1&&!SEe(t,c,e,P))return{changes:{insert:e+e,from:c},effects:lT.of(c+e.length),range:Yo.cursor(c+e.length)}}return{range:d=n}});return d?null:t.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function rme(t,e){let o=Gu(t).resolveInner(e+1);return o.parent&&o.from==e}function SEe(t,e,o,f){let P=Gu(t).resolveInner(e,-1),d=f.reduce((l,n)=>Math.max(l,n.length),0);for(let l=0;l<5;l++){let n=t.sliceDoc(P.from,Math.min(P.to,P.from+o.length+d)),c=n.indexOf(o);if(!c||c>-1&&f.indexOf(n.slice(0,c))>-1){let i=P.firstChild;for(;i&&i.from==P.from&&i.to-i.from>o.length+c;){if(t.sliceDoc(i.to-o.length,i.to)==o)return!1;i=i.firstChild}return!0}let b=P.to==e&&P.parent;if(!b)break;P=b}return!1}function ome(t,e,o){let f=t.charCategorizer(e);if(f(t.sliceDoc(e-1,e))!=Md.Word)return e;for(let P of o){let d=e-P.length;if(t.sliceDoc(d,e)==P&&f(t.sliceDoc(d-1,d))!=Md.Word)return d}return-1}function pM(t={}){return[Bv,Ug.of(t),nEe,kEe,sxe]}const hxe=[{key:"Ctrl-Space",run:GMe},{key:"Escape",run:KMe},{key:"ArrowDown",run:QQ(!0)},{key:"ArrowUp",run:QQ(!1)},{key:"PageDown",run:QQ(!0,"page")},{key:"PageUp",run:QQ(!1,"page")},{key:"Enter",run:XMe}],kEe=Vv.highest(IO.computeN([Ug],t=>t.facet(Ug).defaultKeymap?[hxe]:[]));class TEe{constructor(e,o,f){this.from=e,this.to=o,this.diagnostic=f}}class rT{constructor(e,o,f){this.diagnostics=e,this.panel=o,this.selected=f}static init(e,o,f){let P=e,d=f.facet(gxe).markerFilter;d&&(P=d(P));let l=es.set(P.map(n=>n.from==n.to||n.from==n.to-1&&f.doc.lineAt(n.from).to==n.from?es.widget({widget:new DEe(n),diagnostic:n}).range(n.from):es.mark({attributes:{class:"cm-lintRange cm-lintRange-"+n.severity+(n.markClass?" "+n.markClass:"")},diagnostic:n}).range(n.from,n.to)),!0);return new rT(l,o,mM(l))}}function mM(t,e=null,o=0){let f=null;return t.between(o,1e9,(P,d,{spec:l})=>{if(!(e&&l.diagnostic!=e))return f=new TEe(P,d,l.diagnostic),!1}),f}function CEe(t,e){let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(f=>f.is(pxe))||t.changes.touchesRange(o.from,o.to))}function AEe(t,e){return t.field($v,!1)?e:e.concat(cl.appendConfig.of(FEe))}const pxe=cl.define(),Dce=cl.define(),mxe=cl.define(),$v=Ap.define({create(){return new rT(es.none,null,null)},update(t,e){if(e.docChanged){let o=t.diagnostics.map(e.changes),f=null;if(t.selected){let P=e.changes.mapPos(t.selected.from,1);f=mM(o,t.selected.diagnostic,P)||mM(o,null,P)}t=new rT(o,t.panel,f)}for(let o of e.effects)o.is(pxe)?t=rT.init(o.value,t.panel,e.state):o.is(Dce)?t=new rT(t.diagnostics,o.value?aq.open:null,t.selected):o.is(mxe)&&(t=new rT(t.diagnostics,t.panel,o.value));return t},provide:t=>[zI.from(t,e=>e.panel),Oa.decorations.from(t,e=>e.diagnostics)]}),MEe=es.mark({class:"cm-lintRange cm-lintRange-active"});function EEe(t,e,o){let{diagnostics:f}=t.state.field($v),P=[],d=2e8,l=0;f.between(e-(o<0?1:0),e+(o>0?1:0),(c,b,{spec:i})=>{e>=c&&e<=b&&(c==b||(e>c||o>0)&&(eyxe(t,o,!1)))}const REe=t=>{let e=t.state.field($v,!1);(!e||!e.panel)&&t.dispatch({effects:AEe(t.state,[Dce.of(!0)])});let o=BI(t,aq.open);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},ime=t=>{let e=t.state.field($v,!1);return!e||!e.panel?!1:(t.dispatch({effects:Dce.of(!1)}),!0)},LEe=t=>{let e=t.state.field($v,!1);if(!e)return!1;let o=t.state.selection.main,f=e.diagnostics.iter(o.to+1);return!f.value&&(f=e.diagnostics.iter(0),!f.value||f.from==o.from&&f.to==o.to)?!1:(t.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0}),!0)},IEe=[{key:"Mod-Shift-m",run:REe,preventDefault:!0},{key:"F8",run:LEe}],gxe=Ba.define({combine(t){return Object.assign({sources:t.map(e=>e.source)},b_(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,o)=>e?o?f=>e(f)||o(f):e:o}))}});function vxe(t){let e=[];if(t)e:for(let{name:o}of t){for(let f=0;fd.toLowerCase()==P.toLowerCase())){e.push(P);continue e}}e.push("")}return e}function yxe(t,e,o){var f;let P=o?vxe(e.actions):[];return Bf("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Bf("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(f=e.actions)===null||f===void 0?void 0:f.map((d,l)=>{let n=!1,c=w=>{if(w.preventDefault(),n)return;n=!0;let y=mM(t.state.field($v).diagnostics,e);y&&d.apply(t,y.from,y.to)},{name:b}=d,i=P[l]?b.indexOf(P[l]):-1,O=i<0?b:[b.slice(0,i),Bf("u",b.slice(i,i+1)),b.slice(i+1)];return Bf("button",{type:"button",class:"cm-diagnosticAction",onclick:c,onmousedown:c,"aria-label":` Action: ${b}${i<0?"":` (access key "${P[l]})"`}.`},O)}),e.source&&Bf("div",{class:"cm-diagnosticSource"},e.source))}class DEe extends Ox{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Bf("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class ame{constructor(e,o){this.diagnostic=o,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=yxe(e,o,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class aq{constructor(e){this.view=e,this.items=[];let o=P=>{if(P.keyCode==27)ime(this.view),this.view.focus();else if(P.keyCode==38||P.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(P.keyCode==40||P.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(P.keyCode==36)this.moveSelection(0);else if(P.keyCode==35)this.moveSelection(this.items.length-1);else if(P.keyCode==13)this.view.focus();else if(P.keyCode>=65&&P.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:d}=this.items[this.selectedIndex],l=vxe(d.actions);for(let n=0;n{for(let d=0;dime(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field($v).selected;if(!e)return-1;for(let o=0;o{let b=-1,i;for(let O=f;Of&&(this.items.splice(f,b-f),P=!0)),o&&i.diagnostic==o.diagnostic?i.dom.hasAttribute("aria-selected")||(i.dom.setAttribute("aria-selected","true"),d=i):i.dom.hasAttribute("aria-selected")&&i.dom.removeAttribute("aria-selected"),f++});f({sel:d.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:n})=>{let c=n.height/this.list.offsetHeight;l.topn.bottom&&(this.list.scrollTop+=(l.bottom-n.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),P&&this.sync()}sync(){let e=this.list.firstChild;function o(){let f=e;e=f.nextSibling,f.remove()}for(let f of this.items)if(f.dom.parentNode==this.list){for(;e!=f.dom;)o();e=f.dom.nextSibling}else this.list.insertBefore(f.dom,e);for(;e;)o()}moveSelection(e){if(this.selectedIndex<0)return;let o=this.view.state.field($v),f=mM(o.diagnostics,this.items[e].diagnostic);f&&this.view.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0,effects:mxe.of(f)})}static open(e){return new aq(e)}}function BEe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function HQ(t){return BEe(``,'width="6" height="3"')}const zEe=Oa.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:HQ("#d11")},".cm-lintRange-warning":{backgroundImage:HQ("orange")},".cm-lintRange-info":{backgroundImage:HQ("#999")},".cm-lintRange-hint":{backgroundImage:HQ("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),FEe=[$v,Oa.decorations.compute([$v],t=>{let{selected:e,panel:o}=t.field($v);return!e||!o||e.from==e.to?es.none:es.set([MEe.range(e.from,e.to)])}),PCe(EEe,{hideOn:CEe}),zEe],NEe=(()=>[$Ce(),jCe(),aCe(),aAe(),I8e(),Y6e(),eCe(),jl.allowMultipleSelections.of(!0),w8e(),lbe(F8e,{fallback:!0}),H8e(),pEe(),pM(),xCe(),OCe(),dCe(),dMe(),IO.of([...yEe,...aMe,...PMe,...mAe,...E8e,...hxe,...IEe])])();/*! * VueCodemirror v6.1.1 * Copyright (c) Surmon. All rights reserved. * Released under the MIT License. * Surmon -*/var NEe=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[FEe]}),$Ee=Symbol("vue-codemirror-global-config"),S0,VEe=function(t){var e=t.onUpdate,o=t.onChange,f=t.onFocus,P=t.onBlur,d=function(l,n){var c={};for(var b in l)Object.prototype.hasOwnProperty.call(l,b)&&n.indexOf(b)<0&&(c[b]=l[b]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(b=Object.getOwnPropertySymbols(l);io%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,o,f=0){let P=e.parser.context;return new iZ(e,[],o,f,f,0,[],0,P?new sme(P,P.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,o){this.stack.push(this.state,o,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var o;let f=e>>19,P=e&65535,{parser:d}=this.p,l=d.dynamicPrecedence(P);if(l&&(this.score+=l),f==0){this.pushState(d.getGoto(this.state,P,!0),this.reducePos),P=2e3&&!(!((o=this.p.parser.nodeSet.types[P])===null||o===void 0)&&o.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=b):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(P,c)}storeNode(e,o,f,P=4,d=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&l.buffer[n-4]==0&&l.buffer[n-1]>-1){if(o==f)return;if(l.buffer[n-2]>=o){l.buffer[n-2]=f;return}}}if(!d||this.pos==f)this.buffer.push(e,o,f,P);else{let l=this.buffer.length;if(l>0&&this.buffer[l-4]!=0)for(;l>0&&this.buffer[l-2]>f;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,P>4&&(P-=4);this.buffer[l]=e,this.buffer[l+1]=o,this.buffer[l+2]=f,this.buffer[l+3]=P}}shift(e,o,f,P){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=P,this.shiftContext(o,f),o<=this.p.parser.maxNode&&this.buffer.push(o,f,P,4);else{let d=e,{parser:l}=this.p;(P>this.pos||o<=l.maxNode)&&(this.pos=P,l.stateFlag(d,1)||(this.reducePos=P)),this.pushState(d,f),this.shiftContext(o,f),o<=l.maxNode&&this.buffer.push(o,f,P,4)}}apply(e,o,f,P){e&65536?this.reduce(e):this.shift(e,o,f,P)}useNode(e,o){let f=this.p.reused.length-1;(f<0||this.p.reused[f]!=e)&&(this.p.reused.push(e),f++);let P=this.pos;this.reducePos=this.pos=P+e.length,this.pushState(o,P),this.buffer.push(f,P,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,o=e.buffer.length;for(;o>0&&e.buffer[o-2]>e.reducePos;)o-=4;let f=e.buffer.slice(o),P=e.bufferBase+o;for(;e&&P==e.bufferBase;)e=e.parent;return new iZ(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,f,P,this.curContext,this.lookAhead,e)}recoverByDelete(e,o){let f=e<=this.p.parser.maxNode;f&&this.storeNode(e,this.pos,o,4),this.storeNode(0,this.pos,o,f?8:4),this.pos=this.reducePos=o,this.score-=190}canShift(e){for(let o=new qEe(this);;){let f=this.p.parser.stateSlot(o.state,4)||this.p.parser.hasAction(o.state,e);if(f==0)return!1;if(!(f&65536))return!0;o.reduce(f)}}recoverByInsert(e){if(this.stack.length>=300)return[];let o=this.p.parser.nextStates(this.state);if(o.length>8||this.stack.length>=120){let P=[];for(let d=0,l;dc&1&&n==l)||P.push(o[d],l)}o=P}let f=[];for(let P=0;P>19,P=o&65535,d=this.stack.length-f*3;if(d<0||e.getGoto(this.stack[d],P,!1)<0){let l=this.findForcedReduction();if(l==null)return!1;o=l}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(o),!0}findForcedReduction(){let{parser:e}=this.p,o=[],f=(P,d)=>{if(!o.includes(P))return o.push(P),e.allActions(P,l=>{if(!(l&393216))if(l&65536){let n=(l>>19)-d;if(n>1){let c=l&65535,b=this.stack.length-n*3;if(b>=0&&e.getGoto(this.stack[b],c,!1)>=0)return n<<19|65536|c}}else{let n=f(l,d+1);if(n!=null)return n}})};return f(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let o=0;othis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class sme{constructor(e,o){this.tracker=e,this.context=o,this.hash=e.strict?e.hash(o):0}}class qEe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let o=e&65535,f=e>>19;f==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(f-1)*3;let P=this.start.p.parser.getGoto(this.stack[this.base-3],o,!0);this.state=P}}class aZ{constructor(e,o,f){this.stack=e,this.pos=o,this.index=f,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,o=e.bufferBase+e.buffer.length){return new aZ(e,o,o-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new aZ(this.stack,this.pos,this.index)}}function JL(t,e=Uint16Array){if(typeof t!="string")return t;let o=null;for(let f=0,P=0;f=92&&l--,l>=34&&l--;let c=l-32;if(c>=46&&(c-=46,n=!0),d+=c,n)break;d*=46}o?o[P++]=d:o=new e(d)}return o}class _H{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const lme=new _H;class WEe{constructor(e,o){this.input=e,this.ranges=o,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=lme,this.rangeIndex=0,this.pos=this.chunkPos=o[0].from,this.range=o[0],this.end=o[o.length-1].to,this.readNext()}resolveOffset(e,o){let f=this.range,P=this.rangeIndex,d=this.pos+e;for(;df.to:d>=f.to;){if(P==this.ranges.length-1)return null;let l=this.ranges[++P];d+=l.from-f.to,f=l}return d}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,o.from);return this.end}peek(e){let o=this.chunkOff+e,f,P;if(o>=0&&o=this.chunk2Pos&&fn.to&&(this.chunk2=this.chunk2.slice(0,n.to-f)),P=this.chunk2.charCodeAt(0)}}return f>=this.token.lookAhead&&(this.token.lookAhead=f+1),P}acceptToken(e,o=0){let f=o?this.resolveOffset(o,-1):this.pos;if(f==null||f=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,o){if(o?(this.token=o,o.start=e,o.lookAhead=e+1,o.value=o.extended=-1):this.token=lme,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&o<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,o-this.chunkPos);if(e>=this.chunk2Pos&&o<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,o-this.chunk2Pos);if(e>=this.range.from&&o<=this.range.to)return this.input.read(e,o);let f="";for(let P of this.ranges){if(P.from>=o)break;P.to>e&&(f+=this.input.read(Math.max(P.from,e),Math.min(P.to,o)))}return f}}class tM{constructor(e,o){this.data=e,this.id=o}token(e,o){let{parser:f}=o.p;bxe(this.data,e,o,this.id,f.data,f.tokenPrecTable)}}tM.prototype.contextual=tM.prototype.fallback=tM.prototype.extend=!1;class sZ{constructor(e,o,f){this.precTable=o,this.elseToken=f,this.data=typeof e=="string"?JL(e):e}token(e,o){let f=e.pos,P=0;for(;;){let d=e.next<0,l=e.resolveOffset(1,1);if(bxe(this.data,e,o,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(d||P++,l==null)break;e.reset(l,e.token)}P&&(e.reset(f,e.token),e.acceptToken(this.elseToken,P))}}sZ.prototype.contextual=tM.prototype.fallback=tM.prototype.extend=!1;class A0{constructor(e,o={}){this.token=e,this.contextual=!!o.contextual,this.fallback=!!o.fallback,this.extend=!!o.extend}}function bxe(t,e,o,f,P,d){let l=0,n=1<0){let p=t[y];if(c.allows(p)&&(e.token.value==-1||e.token.value==p||YEe(p,e.token.value,P,d))){e.acceptToken(p);break}}let i=e.next,O=0,w=t[l+2];if(e.next<0&&w>O&&t[b+w*3-3]==65535){l=t[b+w*3-1];continue e}for(;O>1,p=b+y+(y<<1),a=t[p],u=t[p+1]||65536;if(i=u)O=y+1;else{l=t[p+2],e.advance();continue e}}break}}function cme(t,e,o){for(let f=e,P;(P=t[f])!=65535;f++)if(P==o)return f-e;return-1}function YEe(t,e,o,f){let P=cme(o,f,e);return P<0||cme(o,f,t)e)&&!f.type.isError)return o<0?Math.max(0,Math.min(f.to-1,e-25)):Math.min(t.length,Math.max(f.from+1,e+25));if(o<0?f.prevSibling():f.nextSibling())break;if(!f.parent())return o<0?0:t.length}}let XEe=class{constructor(e,o){this.fragments=e,this.nodeSet=o,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?ume(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?ume(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=l,null;if(d instanceof Su){if(l==e){if(l=Math.max(this.safeFrom,e)&&(this.trees.push(d),this.start.push(l),this.index.push(0))}else this.index[o]++,this.nextStart=l+d.length}}};class GEe{constructor(e,o){this.stream=o,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(f=>new _H)}getActions(e){let o=0,f=null,{parser:P}=e.p,{tokenizers:d}=P,l=P.stateSlot(e.state,3),n=e.curContext?e.curContext.hash:0,c=0;for(let b=0;bO.end+25&&(c=Math.max(O.lookAhead,c)),O.value!=0)){let w=o;if(O.extended>-1&&(o=this.addActions(e,O.extended,O.end,o)),o=this.addActions(e,O.value,O.end,o),!i.extend&&(f=O,o>w))break}}for(;this.actions.length>o;)this.actions.pop();return c&&e.setLookAhead(c),!f&&e.pos==this.stream.end&&(f=new _H,f.value=e.p.parser.eofTerm,f.start=f.end=e.pos,o=this.addActions(e,f.value,f.end,o)),this.mainToken=f,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let o=new _H,{pos:f,p:P}=e;return o.start=f,o.end=Math.min(f+1,P.stream.end),o.value=f==P.stream.end?P.parser.eofTerm:0,o}updateCachedToken(e,o,f){let P=this.stream.clipPos(f.pos);if(o.token(this.stream.reset(P,e),f),e.value>-1){let{parser:d}=f.p;for(let l=0;l=0&&f.p.parser.dialect.allows(n>>1)){n&1?e.extended=n>>1:e.value=n>>1;break}}}else e.value=0,e.end=this.stream.clipPos(P+1)}putAction(e,o,f,P){for(let d=0;de.bufferLength*4?new XEe(f,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,o=this.minStackPos,f=this.stacks=[],P,d;if(this.bigReductionCount>300&&e.length==1){let[l]=e;for(;l.forceReduce()&&l.stack.length&&l.stack[l.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let l=0;lo)f.push(n);else{if(this.advanceStack(n,f,e))continue;{P||(P=[],d=[]),P.push(n);let c=this.tokens.getMainToken(n);d.push(c.value,c.end)}}break}}if(!f.length){let l=P&&e7e(P);if(l)return Av&&console.log("Finish with "+this.stackID(l)),this.stackToTree(l);if(this.parser.strict)throw Av&&P&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+o);this.recovering||(this.recovering=5)}if(this.recovering&&P){let l=this.stoppedAt!=null&&P[0].pos>this.stoppedAt?P[0]:this.runRecovery(P,d,f);if(l)return Av&&console.log("Force-finish "+this.stackID(l)),this.stackToTree(l.forceAll())}if(this.recovering){let l=this.recovering==1?1:this.recovering*3;if(f.length>l)for(f.sort((n,c)=>c.score-n.score);f.length>l;)f.pop();f.some(n=>n.reducePos>o)&&this.recovering--}else if(f.length>1){e:for(let l=0;l500&&b.buffer.length>500)if((n.score-b.score||n.buffer.length-b.buffer.length)>0)f.splice(c--,1);else{f.splice(l--,1);continue e}}}f.length>12&&f.splice(12,f.length-12)}this.minStackPos=f[0].pos;for(let l=1;l ":"";if(this.stoppedAt!=null&&P>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let b=e.curContext&&e.curContext.tracker.strict,i=b?e.curContext.hash:0;for(let O=this.fragments.nodeAt(P);O;){let w=this.parser.nodeSet.types[O.type.id]==O.type?d.getGoto(e.state,O.type.id):-1;if(w>-1&&O.length&&(!b||(O.prop(ul.contextHash)||0)==i))return e.useNode(O,w),Av&&console.log(l+this.stackID(e)+` (via reuse of ${d.getName(O.type.id)})`),!0;if(!(O instanceof Su)||O.children.length==0||O.positions[0]>0)break;let y=O.children[0];if(y instanceof Su&&O.positions[0]==0)O=y;else break}}let n=d.stateSlot(e.state,4);if(n>0)return e.reduce(n),Av&&console.log(l+this.stackID(e)+` (via always-reduce ${d.getName(n&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let b=0;bP?o.push(p):f.push(p)}return!1}advanceFully(e,o){let f=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>f)return fme(e,o),!0}}runRecovery(e,o,f){let P=null,d=!1;for(let l=0;l ":"";if(n.deadEnd&&(d||(d=!0,n.restart(),Av&&console.log(i+this.stackID(n)+" (restarted)"),this.advanceFully(n,f))))continue;let O=n.split(),w=i;for(let y=0;O.forceReduce()&&y<10&&(Av&&console.log(w+this.stackID(O)+" (via force-reduce)"),!this.advanceFully(O,f));y++)Av&&(w=this.stackID(O)+" -> ");for(let y of n.recoverByInsert(c))Av&&console.log(i+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,f);this.stream.end>n.pos?(b==n.pos&&(b++,c=0),n.recoverByDelete(c,b),Av&&console.log(i+this.stackID(n)+` (via recover-delete ${this.parser.getName(c)})`),fme(n,f)):(!P||P.scoret;class Bce{constructor(e){this.start=e.start,this.shift=e.shift||Lie,this.reduce=e.reduce||Lie,this.reuse=e.reuse||Lie,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class uS extends pce{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let o=e.nodeNames.split(" ");this.minRepeatTerm=o.length;for(let n=0;ne.topRules[n][1]),P=[];for(let n=0;n=0)d(i,c,n[b++]);else{let O=n[b+-i];for(let w=-i;w>0;w--)d(n[b++],c,O);b++}}}this.nodeSet=new vD(o.map((n,c)=>Cp.define({name:c>=this.minRepeatTerm?void 0:n,id:c,props:P[c],top:f.indexOf(c)>-1,error:c==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(c)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=jye;let l=JL(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new tM(l,n):n),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,o,f){let P=new KEe(this,e,o,f);for(let d of this.wrappers)P=d(P,e,o,f);return P}getGoto(e,o,f=!1){let P=this.goto;if(o>=P[0])return-1;for(let d=P[o+1];;){let l=P[d++],n=l&1,c=P[d++];if(n&&f)return c;for(let b=d+(l>>1);d0}validAction(e,o){return!!this.allActions(e,f=>f==o?!0:null)}allActions(e,o){let f=this.stateSlot(e,4),P=f?o(f):void 0;for(let d=this.stateSlot(e,1);P==null;d+=3){if(this.data[d]==65535)if(this.data[d+1]==1)d=_O(this.data,d+2);else break;P=o(_O(this.data,d+1))}return P}nextStates(e){let o=[];for(let f=this.stateSlot(e,1);;f+=3){if(this.data[f]==65535)if(this.data[f+1]==1)f=_O(this.data,f+2);else break;if(!(this.data[f+2]&1)){let P=this.data[f+1];o.some((d,l)=>l&1&&d==P)||o.push(this.data[f],P)}}return o}configure(e){let o=Object.assign(Object.create(uS.prototype),this);if(e.props&&(o.nodeSet=this.nodeSet.extend(...e.props)),e.top){let f=this.topRules[e.top];if(!f)throw new RangeError(`Invalid top rule name ${e.top}`);o.top=f}return e.tokenizers&&(o.tokenizers=this.tokenizers.map(f=>{let P=e.tokenizers.find(d=>d.from==f);return P?P.to:f})),e.specializers&&(o.specializers=this.specializers.slice(),o.specializerSpecs=this.specializerSpecs.map((f,P)=>{let d=e.specializers.find(n=>n.from==f.external);if(!d)return f;let l=Object.assign(Object.assign({},f),{external:d.to});return o.specializers[P]=dme(l),l})),e.contextTracker&&(o.context=e.contextTracker),e.dialect&&(o.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(o.strict=e.strict),e.wrap&&(o.wrappers=o.wrappers.concat(e.wrap)),e.bufferLength!=null&&(o.bufferLength=e.bufferLength),o}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let o=this.dynamicPrecedences;return o==null?0:o[e]||0}parseDialect(e){let o=Object.keys(this.dialects),f=o.map(()=>!1);if(e)for(let d of e.split(" ")){let l=o.indexOf(d);l>=0&&(f[l]=!0)}let P=null;for(let d=0;df)&&o.p.parser.stateFlag(o.state,2)&&(!e||e.scoret.external(o,f)<<1|e}return t.get}const t7e=1,xxe=201,_xe=202,n7e=203,hme=204,r7e=205,o7e=206,i7e=207,a7e=2,s7e=208,l7e=209,c7e=3,u7e=210,f7e=211,d7e=4,h7e=212,p7e=213,m7e=5,g7e=214,v7e=26,y7e=27,b7e=51,x7e=52,_7e=57,w7e=58,O7e=59,S7e=61,k7e=62,T7e=63,C7e=64,A7e=65,M7e=67,E7e=251,P7e=74,R7e=270,L7e=115,I7e=133,D7e=154,B7e=155,z7e=158,HI=10,ZI=13,zce=32,lq=9,Fce=35,F7e=40,N7e=46,pme=123,wxe=39,Oxe=34,$7e=92,V7e=new Set([y7e,b7e,x7e,R7e,M7e,I7e,w7e,O7e,E7e,C7e,A7e,P7e,k7e,T7e,D7e,B7e,z7e,L7e]);function Iie(t){return t==HI||t==ZI}const U7e=new A0((t,e)=>{let o;if(t.next<0)t.acceptToken(o7e);else if(e.context.depth<0)Iie(t.next)&&t.acceptToken(r7e,1);else if(((o=t.peek(-1))<0||Iie(o))&&e.canShift(hme)){let f=0;for(;t.next==zce||t.next==lq;)t.advance(),f++;(t.next==HI||t.next==ZI||t.next==Fce)&&t.acceptToken(hme,-f)}else Iie(t.next)&&t.acceptToken(n7e,1)},{contextual:!0}),j7e=new A0((t,e)=>{let o=e.context.depth;if(o<0)return;let f=t.peek(-1);if(f==HI||f==ZI){let P=0,d=0;for(;;){if(t.next==zce)P++;else if(t.next==lq)P+=8-P%8;else break;t.advance(),d++}P!=o&&t.next!=HI&&t.next!=ZI&&t.next!=Fce&&(P{for(let e=0;e<5;e++){if(t.next!="print".charCodeAt(e))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let e=0;;e++){let o=t.peek(e);if(!(o==zce||o==lq)){o!=F7e&&o!=N7e&&o!=HI&&o!=ZI&&o!=Fce&&t.acceptToken(t7e);return}}});function cq(t,e,o,f,P){return new A0(d=>{let l=d.pos;for(;!(d.next<0);)if(d.next==pme)if(d.peek(1)==pme)d.advance(2);else{if(d.pos==l){d.acceptToken(f,1);return}break}else if(d.next==$7e)d.advance(),d.next>=0&&d.advance();else if(d.next==t&&(e==1||d.peek(1)==t&&d.peek(2)==t)){if(d.pos==l){d.acceptToken(P,e);return}break}else d.advance();d.pos>l&&d.acceptToken(o)})}const W7e=cq(wxe,1,i7e,a7e,s7e),Y7e=cq(Oxe,1,l7e,c7e,u7e),X7e=cq(wxe,3,f7e,d7e,h7e),G7e=cq(Oxe,3,p7e,m7e,g7e),K7e=mS({'async "*" "**" FormatConversion FormatSpec':Gn.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":Gn.controlKeyword,"in not and or is del":Gn.operatorKeyword,"from def class global nonlocal lambda":Gn.definitionKeyword,import:Gn.moduleKeyword,"with as print":Gn.keyword,Boolean:Gn.bool,None:Gn.null,VariableName:Gn.variableName,"CallExpression/VariableName":Gn.function(Gn.variableName),"FunctionDefinition/VariableName":Gn.function(Gn.definition(Gn.variableName)),"ClassDefinition/VariableName":Gn.definition(Gn.className),PropertyName:Gn.propertyName,"CallExpression/MemberExpression/PropertyName":Gn.function(Gn.propertyName),Comment:Gn.lineComment,Number:Gn.number,String:Gn.string,FormatString:Gn.special(Gn.string),UpdateOp:Gn.updateOperator,"ArithOp!":Gn.arithmeticOperator,BitOp:Gn.bitwiseOperator,CompareOp:Gn.compareOperator,AssignOp:Gn.definitionOperator,Ellipsis:Gn.punctuation,At:Gn.meta,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace,".":Gn.derefOperator,", ;":Gn.separator}),J7e={__proto__:null,await:48,or:58,and:60,in:64,not:66,is:68,if:74,else:76,lambda:80,yield:98,from:100,async:106,for:108,None:168,True:170,False:170,del:184,pass:188,break:192,continue:196,return:200,raise:208,import:212,as:214,global:218,nonlocal:220,assert:224,type:229,elif:242,while:246,try:252,except:254,finally:256,with:260,def:264,class:274,match:285,case:291},ePe=uS.deserialize({version:14,states:"#&jO`Q#yOOP$bOSOOO%kQ&nO'#HcOOQS'#Cq'#CqOOQS'#Cr'#CrO'ZQ#xO'#CpO(|Q&nO'#HbOOQS'#Hc'#HcOOQS'#DW'#DWOOQS'#Hb'#HbO)jQ#xO'#DaO)}Q#xO'#DhO*_Q#xO'#DlOOQS'#Dw'#DwO*rO,UO'#DwO*zO7[O'#DwO+SOWO'#DxO+_O`O'#DxO+jOpO'#DxO+uO!bO'#DxO-wQ&nO'#HSOOQS'#HS'#HSO'ZQ#xO'#HRO/ZQ&nO'#HROOQS'#Ee'#EeO/rQ#xO'#EfOOQS'#HQ'#HQO/|Q#xO'#HPOOQV'#HP'#HPO0XQ#xO'#F]OOQS'#Ge'#GeO0^Q#xO'#F[OOQV'#IY'#IYOOQV'#HO'#HOOOQV'#Ft'#FtQ`Q#yOOO'ZQ#xO'#CsO0lQ#xO'#DPO0sQ#xO'#DTO1RQ#xO'#HgO1cQ&nO'#EYO'ZQ#xO'#EZOOQS'#E]'#E]OOQS'#E_'#E_OOQS'#Ea'#EaO1wQ#xO'#EcO2_Q#xO'#EgO0XQ#xO'#EiO2rQ&nO'#EiO0XQ#xO'#ElO/rQ#xO'#EoO0XQ#xO'#EqO/rQ#xO'#EwO/rQ#xO'#EzO2}Q#xO'#E|O3UQ#xO'#FRO3aQ#xO'#E}O/rQ#xO'#FRO0XQ#xO'#FTO0XQ#xO'#FYO3fQ#xO'#F_P3mO#xO'#G}POOO)CBq)CBqOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Ck'#CkOOQS'#Cl'#ClOOQS'#Cn'#CnO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO3xQ#xO'#DqOOQS,5:[,5:[O4]Q#xO'#HqOOQS,5:_,5:_O4jQMlO,5:_O4oQ&nO,59[O0lQ#xO,59dO0lQ#xO,59dO0lQ#xO,59dO7_Q#xO,59dO7dQ#xO,59dO7kQ#xO,59lO7rQ#xO'#HbO8xQ#xO'#HaOOQS'#Ha'#HaOOQS'#D^'#D^O9aQ#xO,59cO'ZQ#xO,59cO9oQ#xO,59cOOQS,59{,59{O9tQ#xO,5:TO'ZQ#xO,5:TOOQS,5:S,5:SO:SQ#xO,5:SO:XQ#xO,5:ZO'ZQ#xO,5:ZO'ZQ#xO,5:XOOQS,5:W,5:WO:jQ#xO,5:WO:oQ#xO,5:YOOOO'#F|'#F|O:tO,UO,5:cOOQS,5:c,5:cOOOO'#F}'#F}O:|O7[O,5:cO;UQ#xO'#DyOOOW'#GO'#GOO;fOWO,5:dOOQS,5:d,5:dO;UQ#xO'#D}OOO`'#GR'#GRO;qO`O,5:dO;UQ#xO'#EOOOOp'#GS'#GSO;|OpO,5:dO;UQ#xO'#EPOOO!b'#GT'#GTOROOQS,5>R,5>RO/rQ#xO'#EUOOQS'#EV'#EVOGZQ#xO'#GWOGkQ#xO,59OOGkQ#xO,59OO)pQ#xO,5:rOGyQ&nO'#HjOOQS,5:u,5:uOOQS,5:},5:}OH^Q#xO,5;ROHoQ#xO,5;TOOQS'#GZ'#GZOH}Q&nO,5;TOI]Q#xO,5;TOIbQ#xO'#IWOOQS,5;W,5;WOIpQ#xO'#ISOOQS,5;Z,5;ZOJRQ#xO,5;]O3aQ#xO,5;cO3aQ#xO,5;fOJZQ&nO'#IZO'ZQ#xO'#IZOJeQ#xO,5;hO2}Q#xO,5;hO/rQ#xO,5;mO0XQ#xO,5;oOJjQ#yO'#ExOKvQ#{O,5;iO! [Q#xO'#I[O3aQ#xO,5;mO! gQ#xO,5;oO! oQ#xO,5;tO! zQ&nO,5;yO'ZQ#xO,5;yPOOO,5=i,5=iP!!ROSO,5=iP!!WO#xO,5=iO!${Q&nO1G.lO!%SQ&nO1G.lO!'sQ&nO1G.lO!'}Q&nO1G.lO!*hQ&nO1G.lO!*{Q&nO1G.lO!+`Q#xO'#HpO!+nQ&nO'#HSO/rQ#xO'#HpO!+xQ#xO'#HoOOQS,5:],5:]O!,QQ#xO,5:]O!,VQ#xO'#HrO!,bQ#xO'#HrO!,uQ#xO,5>]OOQS'#Du'#DuOOQS1G/y1G/yOOQS1G/O1G/OO!-uQ&nO1G/OO!-|Q&nO1G/OO0lQ#xO1G/OO!.iQ#xO1G/WOOQS'#D]'#D]O/rQ#xO,59vOOQS1G.}1G.}O!.pQ#xO1G/gO!/QQ#xO1G/gO!/YQ#xO1G/hO'ZQ#xO'#HiO!/_Q#xO'#HiO!/dQ&nO1G.}O!/tQ#xO,59kO!0zQ#xO,5>XO!1[Q#xO,5>XO!1dQ#xO1G/oO!1iQ&nO1G/oOOQS1G/n1G/nO!1yQ#xO,5>SO!2pQ#xO,5>SO/rQ#xO1G/sO!3_Q#xO1G/uO!3dQ&nO1G/uO!3tQ&nO1G/sOOQS1G/r1G/rOOQS1G/t1G/tOOOO-E9z-E9zOOQS1G/}1G/}OOOO-E9{-E9{O!4UQ#xO'#H|O/rQ#xO'#H|O!4dQ#xO,5:eOOOW-E9|-E9|OOQS1G0O1G0OO!4oQ#xO,5:iOOO`-E:P-E:PO!4zQ#xO,5:jOOOp-E:Q-E:QO!5VQ#xO,5:kOOO!b-E:R-E:ROOQS-E:S-E:SO!5bQ!LUO1G3XO!6RQ&nO1G3XO'ZQ#xO,5oOOQS1G1c1G1cO!7RQ#xO1G1cOOQS'#DX'#DXO/rQ#xO,5>OOOQS,5>O,5>OO!7WQ#xO'#FuO!7cQ#xO,59qO!7kQ#xO1G/ZO!7uQ&nO,5>SOOQS1G3m1G3mOOQS,5:p,5:pO!8fQ#xO'#HROOQS,5UO!9gQ#xO,5>UO/rQ#xO1G0mO/rQ#xO1G0mO0XQ#xO1G0oOOQS-E:X-E:XO!9xQ#xO1G0oO!:TQ#xO1G0oO!:YQ#xO,5>rO!:hQ#xO,5>rO!:vQ#xO,5>nO!;^Q#xO,5>nO!;oQ#xO'#EsO/rQ#xO1G0wO!;zQ#xO1G0wO!uO!BzQ#xO,5>uO!CSQ&nO,5>uO/rQ#xO1G1SO!C^Q#xO1G1SO3aQ#xO1G1XO! gQ#xO1G1ZOOQV,5;d,5;dO!CcQ#zO,5;dO!ChQ#{O1G1TO!F|Q#xO'#GbO3aQ#xO1G1TO3aQ#xO1G1TO!G^Q#xO,5>vO!GkQ#xO,5>vO0XQ#xO,5>vOOQV1G1X1G1XO!GsQ#xO'#FVO!HUQMlO1G1ZO!H^Q#xO1G1ZOOQV1G1`1G1`O3aQ#xO1G1`O!HcQ#xO1G1`O!HkQ#xO'#FaOOQV1G1e1G1eO! zQ&nO1G1ePOOO1G3T1G3TP!HpOSO1G3TOOQS,5>[,5>[OOQS'#Dr'#DrO/rQ#xO,5>[O!HuQ#xO,5>ZO!IYQ#xO,5>ZOOQS1G/w1G/wO!IbQ#xO,5>^O!IrQ#xO,5>^O!IzQ#xO,5>^O!J_Q#xO,5>^O!JoQ#xO,5>^OOQS1G3w1G3wOOQS7+$j7+$jO!7kQ#xO7+$rO!LbQ#xO1G/OO!LiQ#xO1G/OOOQS1G/b1G/bOOQS,5TO'ZQ#xO,5>TOOQS7+$i7+$iO!MVQ#xO7+%RO!M_Q#xO7+%SO!MdQ#xO1G3sOOQS7+%Z7+%ZO!MtQ#xO1G3sO!M|Q#xO7+%ZOOQS,5hO##PQ#xO,5>hO##PQ#xO,5>hO##_O$ISO'#D{O##jO#tO'#H}OOOW1G0P1G0PO##oQ#xO1G0POOO`1G0T1G0TO##wQ#xO1G0TOOOp1G0U1G0UO#$PQ#xO1G0UOOO!b1G0V1G0VO#$XQ#xO1G0VO#$aQ!LUO7+(sO#%QQ&nO1G2]P#%kQ#xO'#GVOOQS,5i,5>iOOOW7+%k7+%kOOO`7+%o7+%oOOOp7+%p7+%pOOO!b7+%q7+%qO#:`Q#xO1G3XO#:yQ#xO1G3XP'ZQ#xO'#FxO/rQ#xO<qO#;mQ#xO,5>qO0XQ#xO,5>qO#pOOQS<sO#sOOQS1G0y1G0yOOQS<xO#DpQ#xO,5>xOOQS,5>x,5>xO#D{Q#xO,5>wO#E^Q#xO,5>wOOQS1G1]1G1]OOQS,5;s,5;sOOQV<XAN>XO#HmQ#xO<eAN>eO/rQ#xO1G2PO#H}Q&nO1G2PP#IXQ#xO'#FyOOQS1G2V1G2VP#IfQ#xO'#GPO#IsQ#xO7+)nO#JZQ#xO,5:hOOOO-E:O-E:OO#JfQ#xO7+(sOOQSAN?_AN?_O#KPQ#xO,5VOOQSANBaANBaOOOO7+%n7+%nOOQS7+'|7+'|O$+jQ#xO<zO$.`Q#xO,5>zO0XQ#xO,5|O$!pQ#xO,5>|OOQS1G1s1G1sO$2WQ&nO,5<_OOQU7+'S7+'SO$$mQ#xO1G/kO$!pQ#xO,5<]O$2_Q#xO,5>}O$2fQ#xO,5>}OOQS1G1v1G1vOOQS7+'V7+'VP$!pQ#xO'#GkO$2nQ#xO1G4hO$2xQ#xO1G4hO$3QQ#xO1G4hOOQS7+%V7+%VO$3`Q#xO1G1wO$3nQ&nO'#FdO$3uQ#xO,5=UOOQS,5=U,5=UO$4TQ#xO1G4iOOQS-E:h-E:hO$!pQ#xO,5=TO$4[Q#xO,5=TO$4aQ#xO7+*SOOQS-E:g-E:gO$4kQ#xO7+*SO$!pQ#xO,5<^P$!pQ#xO'#GjO$4sQ#xO1G2oO$!pQ#xO1G2oP$5RQ#xO'#GiO$5YQ#xO<fPP>i?Z?^PP'a'aPP?vPP'a'aPP'a'a'a'a'a?z@t'aP@wP@}EXHxPH|IYI^IbIf'aPPPIjIs'XP'X'XP'XP'XP'XP'XP'X'X'XP'XPP'XPP'XP'XPIyJVJ_PJfJlPJfPJfJfPPPJfPLzPMTM_MeLzPJfMnPJfPMuM{PNPNe! S! mNPNP! s!!QNPNPNPNP!!f!!l!!o!!t!!w!#R!#X!#e!#w!#}!$X!$_!${!%R!%X!%_!%i!%o!%u!%{!&R!&X!&k!&u!&{!'R!'X!'c!'i!'o!'u!'{!(V!(]!(g!(m!(v!(|!)]!)e!)o!)vPPPPPPPPPPPPPPPPP!)|!*P!*V!*`!*j!*uPPPPPPPPPPPP!/l!1Q!5T!8hPP!8p!9S!9]!:U!9{!:_!:e!:h!:k!:n!:v!;gPPPPPPPPP!;j!;yPPPP!V!>`!?[!?_]jOs#v$w*W,d(TeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z}!hQ#r$P$b$q$}%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!P!iQ#r$P$b$q$}%S%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!R!jQ#r$P$b$q$}%S%T%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!T!kQ#r$P$b$q$}%S%T%U%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!V!lQ#r$P$b$q$}%S%T%U%V%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!X!mQ#r$P$b$q$}%S%T%U%V%W%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!]!mQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O(TTOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z&iVOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1Z%sXOYZ[isw}!O!S!U!V!Z!n!p#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$VvQ/t/SR1W1Y'zeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZW#ym!P!Q$hW$Rv&q/S1YQ$j!RQ$n!TQ${![Q$|!]W%Z!n(O*v,zS&p$S$TQ'e$vQ)Y&jQ)h'QU)i'S)j)kU)l'U)m+}W)s'Y,Q-j.dQ*d'nW*e'p,s-}.lQ,P)rS,r*f*gY-d+x-e.a.b/XQ-g+zQ-t,hQ-x,kQ.j-vl.o.R.u.v.x/d/f/k0R0W0]0b0m0r0uQ/W.`Q/l.wQ/x/^Q0T/hU0h0^0k0sX0n0c0o0v0wR&o$R!_!|YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sR%k!{Q#QYQ&W#cQ&Z#gQ&]#jQ&_#mQ&x$^Q&{$aR-`+lT/R.Y0[![!oQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OQ&m#zQ't$|R*p'uR'}%ZQ%d!rR/v/[(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZS#pd#q!P.s.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0w(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZT#pd#qT#d`#ee(|&W&Z&]&_)O)Q)S)U-`._T+m({+nT#ha#iT#kb#lT#nc#oQ$`xQ,P)sR,q*eX$^x$_$`&zQ'[$nQ'r${Q'u$|R*V'eQ)t'YV-i,Q-j.dZlOs$w*W,dXpOs*W,dQ$x!YQ']$oQ'^$pQ'o$zQ's$|Q*T'dQ*['iQ*_'jQ*`'kQ*m'qS*o't'uQ,W)yQ,Y)zQ,Z){Q,_*RS,a*U*nQ,e*YQ,f*ZS,g*]*^Q,w*pQ-l,VQ-m,XQ-o,`S-p,b,cQ-u,iQ-w,jQ.e-nQ.g-qQ.h-sQ.i-tQ/Y.fQ/Z.jQ/p.{R0Z/qWpOs*W,dR#|oQ'q${S*U'e'rR,c*VQ,p*eR-{,qQ*n'qQ,b*UR-q,cZnOos*W,dQ'w$}R*r'xT.P,x.Qu.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0ut.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uQ/l.wX0n0c0o0v0w!P.r.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0wQ/a.qR/}/bg/d.t/e/y0Q0V0e0g0i0t0x0yu.y.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uX/_.o.y/x0hR/z/^V0j0^0k0sR/q.{QsOS$Os,dR,d*WQ&r$UR)_&rS%z#W$WS(p%z(sT(s%}&tQ%n#OQ%u#SW(b%n%u(g(kQ(g%rR(k%wQ&}$bR)e&}Q(v&OQ+_(qT+e(v+_Q(P%]R*w(PS(S%`%aY*{(S*|-Q.W/PU*|(T(U(VU-Q*}+O+PS.W-R-SR/P.XQ#_^R&R#_Q#b_R&T#bQ#e`R&X#eQ(y&US+j(y+kR+k(zQ+n({R-a+nQ#iaR&[#iQ#lbR&^#lQ#ocR&`#oQ#qdR&a#qQ#tgQ&c#rW&f#t&c)b+uQ)b&wR+u1OQ$_xS&y$_&zR&z$`Q'X$lR)q'XQ&k#yR)Z&kQ$h!QR'R$hQ+y)iS-f+y.cR.c-gQ'V$jR)n'VQ,R)tR-k,RQ#wkR&h#wQ)x']R,U)xQ'`$qS*P'`*QR*Q'aQ'h$xR*X'hQ'm$yS*c'm,nR,n*dQ,t*iR.O,tWoOs*W,dR#{oQ.Q,xR.m.Qd/e.t/y0Q0V0e0g0i0t0x0yR0P/eU/].o/x0hR/w/]Q0d0VS0p0d0qR0q0eS0_/y/zR0l0_Q/g.tR0S/gR!`PXrOs*W,dWqOs*W,dR'f$wYkOs$w*W,dR&g#v[xOs#v$w*W,dR&x$^&hQOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1ZQ!sTQ#rfQ$PtU$by%p(eS$q!W$tQ$}!^Q%S!hQ%T!iQ%U!jQ%V!kQ%W!lQ%X!mQ%r#PQ%w#TQ%}#XQ&O#YQ&t$XQ'a$rQ'x%OQ)W&dU)c&|)d+vW)|'_*O,],^Q+R(_Q+[(nQ,[)}Q-Z+dQ0Y/oR1O1TQ#OYQ#SZQ$o!UQ$p!VQ%`!pQ(V%a^(^%m%t(a(i+T+W+Y^*x(R*z-O-P.V/O/sQ+O(TQ+P(UQ,X)yQ,}*yQ-R*}Q.T,{Q.U,|Q.X-SQ.|.SR/r.}[gOs#v$w*W,d!^!{YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sQ#W[Q#uiS$Ww}Q$e!OW$l!S$a'b*SS$y!Z$uW%Y!n(O*v,zY&U#c#g#j#m+l`&e#s&b)V)X)a+t-b1SQ&u$YQ&v$[Q&w$^Q'{%[Q(]%kW(m%y(o+]+aQ(q%{Q(z&VQ)]&oS)`&s1QQ)f'OQ)g'PU)o'W)p,OQ)v'ZQ*]'iY*a'l*b,l,m-yQ*t'}S+Q(Y1RW+c(u+^-W-[W+g(x+i-^-_Q,T)wQ,i*^Q,v*lQ-]+hQ-c+wQ-z,pQ.]-YR.k-{hUOs#s#v$w&b&s(Y)V)X*W,d%Y!zYZ[iw}!O!S!U!V!Z!n!p#c#g#j#m$Y$[$^$a$u%[%a%k%m%t%y%{&V&o'O'P'W'Z'b'i'l'}(O(R(T(U(a(i(o(u(x)a)p)w)y*S*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$QuW%e!t!x0{1VQ%f!uQ%g!vQ%i!yQ%s0zS(X%h1PQ(Z0|Q([0}Q-T+UQ.[-US/Q.Y0[R1X1ZU$Uv/S1YR)^&q[hOs#v$w*W,da!}Y#c#g#j#m$^$a+lQ#][Q$ZwR$d}Q%o#OQ%v#SQ%|#WQ'{%YQ(h%rQ(l%wQ(t%}Q(w&OQ+`(qQ,y*tQ.Z-TQ/U.[R/u/TQ$cyQ(d%pR+V(eQ/T.YR0f0[R#VZR#[[R%_!nQ%]!nV*u(O*v,z!]!qQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OR%b!pQ&W#cQ&Z#gQ&]#jQ&_#mR-`+lQ(}&WQ)P&ZQ)R&]Q)T&_Q+p)OQ+q)QQ+r)SQ+s)UQ.^-`R/V._Q$m!SQ&{$aQ*R'bR,`*SQ#zmQ$f!PQ$i!QR'T$hQ)h'SR+|)kQ)h'SQ+{)jR+|)kR$k!RR)u'YXqOs*W,dQ$s!WR'c$tQ$z!ZR'd$uR*k'pQ*i'pV-|,s-}.lQ.{.RQ/i.uR/j.vU.t.R.u.vQ/n.xQ/y/^Q0O/dU0Q/f0R0bQ0V/kQ0e0WQ0g0]U0i0^0k0sQ0t0mQ0x0rR0y0uR/m.wR/{/^",nodeNames:"⚠ print { { { { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatConversion FormatSpec FormatReplacement FormatReplacement FormatReplacement FormatReplacement ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:283,context:Z7e,nodeProps:[["group",-15,8,88,90,91,93,95,97,99,101,102,103,105,108,111,113,"Statement Statement",-22,10,20,23,27,42,51,52,58,59,62,63,64,65,66,69,72,73,74,82,83,84,85,"Expression",-10,117,119,122,124,125,129,131,136,138,141,"Statement",-9,146,147,150,151,153,154,155,156,157,"Pattern"],["openedBy",25,"(",56,"[",60,"{"],["closedBy",26,")",57,"]",61,"}"]],propSources:[K7e],skippedNodes:[0,6],repeatNodeCount:38,tokenData:"%-W#sR!`OX%TXY=|Y[%T[]=|]p%Tpq=|qr@_rsDOst!+|tu%Tuv!Nnvw#!|wx#$Wxy#:Uyz#;Yz{#<^{|#>x|}#@S}!O#AW!O!P#Ci!P!Q#N_!Q!R$!y!R![$&w![!]$1e!]!^$3s!^!_$4w!_!`$7c!`!a$8m!a!b%T!b!c$;U!c!d$W!e!h$W#V#Y$Q<%lO$Xc&r!b&jS&mW%p!TOX%TXY=|Y[%T[]=|]p%Tpq=|qr%Trs&Vsw%Twx/Xx#O%T#O#P?d#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#s?i[&r!bOY%TYZ=|Z]%T]^=|^#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=P;=`<%l8^<%lO%T!q@hd&r!b&jS&mWOr%Trs&Vsw%Twx/Xx!_%T!_!`Av!`#O%T#O#P7o#P#T%T#T#UBz#U#f%T#f#gBz#g#hBz#h#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qBR]oR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qCV]!nR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cDXa&r!b&jS&hsOYE^YZ%TZ]E^]^%T^rE^rs!)|swE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cEia&r!b&jS&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cFw]&r!b&jS&hsOr%Trs'Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cGya&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxIOx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cIXa&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxJ^x#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#_Jg_&r!b&mW&hsOYJ^YZ1XZ]J^]^1X^rJ^rsKfs#OJ^#O#PL`#P#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`!!o<%lOJ^#_KmZ&r!b&hsOr1Xrs2ys#O1X#O#P3q#P#o1X#o#p4`#p#q1X#q#r4`#r;'S1X;'S;=`7i<%lO1X#_LeW&r!bO#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`! r;=`<%lL}<%lOJ^{MUZ&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l<%lOL}{M|V&hsOr4`rs5ds#O4`#O#P5y#P;'S4`;'S;=`6t<%lO4`{NfRO;'SL};'S;=`No;=`OL}{Nv[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lL}<%lOL}{! oP;=`<%lL}#_! y[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lJ^<%lOL}#_!!rP;=`<%lJ^#c!!zW&r!bO#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!(q;=`<%l!#d<%lOE^!P!#m]&jS&mW&hsOY!#dYZ8^Z]!#d]^8^^r!#drs!$fsw!#dwx!%Yx#O!#d#O#P!'Y#P;'S!#d;'S;=`!(k<%lO!#d!P!$mX&jS&hsOr8^rs9rsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`^s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!>e_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!?ds#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!?k_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!3`s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!@q[U!T&r!bOY!=UYZ1XZ]!=U]^1X^#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!Ec;=`<%l4`<%lO!=U!]!AnZU!T&mWOY!AgYZ4`Z]!Ag]^4`^r!Agrs!Bas#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!BfZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!CXs#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!C^ZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!4Ys#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!DUWU!TOY!AgYZ4`Z]!Ag]^4`^;'S!Ag;'S;=`!Dn;=`<%l4`<%lO!Ag!]!DsW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!Ag<%lO4`!]!E`P;=`<%l!Ag#o!EhW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!=U<%lO4`#o!FTP;=`<%l!=U#s!F_[U!T&r!bOY!+|YZ%TZ]!+|]^%T^#o!+|#o#p!GT#p#q!+|#q#r!GT#r;'S!+|;'S;=`!Mq;=`<%l8^<%lO!+|!a!G^]U!T&jS&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!H^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!IVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!I^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!5wsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!J^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!KVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!K^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!Agx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!L[WU!TOY!GTYZ8^Z]!GT]^8^^;'S!GT;'S;=`!Lt;=`<%l8^<%lO!GT!a!L{Y&jS&mWOr8^rs9Qsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`Q<%lO$TP;=`<%l$ei&r!b&jS&mW&g`&SsOr%Trs$@Ssw%Twx$C`x!Q%T!Q![$Q<%lO$Q<%lO$Q<%lO$Q<%lO$Q<%lO$J7e[t]||-1}],tokenPrec:7372}),mme=new hce,Sxe=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function qQ(t){return(e,o,f)=>{if(f)return!1;let P=e.node.getChild("VariableName");return P&&o(P,t),!0}}const tPe={FunctionDefinition:qQ("function"),ClassDefinition:qQ("class"),ForStatement(t,e,o){if(o){for(let f=t.node.firstChild;f;f=f.nextSibling)if(f.name=="VariableName")e(f,"variable");else if(f.name=="in")break}},ImportStatement(t,e){var o,f;let{node:P}=t,d=((o=P.firstChild)===null||o===void 0?void 0:o.name)=="from";for(let l=P.getChild("import");l;l=l.nextSibling)l.name=="VariableName"&&((f=l.nextSibling)===null||f===void 0?void 0:f.name)!="as"&&e(l,d?"variable":"namespace")},AssignStatement(t,e){for(let o=t.node.firstChild;o;o=o.nextSibling)if(o.name=="VariableName")e(o,"variable");else if(o.name==":"||o.name=="AssignOp")break},ParamList(t,e){for(let o=null,f=t.node.firstChild;f;f=f.nextSibling)f.name=="VariableName"&&(!o||!/\*|AssignOp/.test(o.name))&&e(f,"variable"),o=f},CapturePattern:qQ("variable"),AsPattern:qQ("variable"),__proto__:null};function kxe(t,e){let o=mme.get(e);if(o)return o;let f=[],P=!0;function d(l,n){let c=t.sliceString(l.from,l.to);f.push({label:c,type:n})}return e.cursor(mf.IncludeAnonymous).iterate(l=>{if(l.name){let n=tPe[l.name];if(n&&n(l,d,P)||!P&&Sxe.has(l.name))return!1;P=!1}else if(l.to-l.from>8192){for(let n of kxe(t,l.node))f.push(n);return!1}}),mme.set(e,f),f}const gme=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Txe=["String","FormatString","Comment","PropertyName"];function nPe(t){let e=Gu(t.state).resolveInner(t.pos,-1);if(Txe.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&gme.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let P=e;P;P=P.parent)Sxe.has(P.name)&&(f=f.concat(kxe(t.state.doc,P)));return{options:f,from:o?e.from:t.pos,validFor:gme}}const rPe=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),oPe=[Hd("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Hd("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Hd("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Hd("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Hd(`if \${}: +*/var $Ee=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[NEe]}),VEe=Symbol("vue-codemirror-global-config"),S0,UEe=function(t){var e=t.onUpdate,o=t.onChange,f=t.onFocus,P=t.onBlur,d=function(l,n){var c={};for(var b in l)Object.prototype.hasOwnProperty.call(l,b)&&n.indexOf(b)<0&&(c[b]=l[b]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(b=Object.getOwnPropertySymbols(l);io%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,o,f=0){let P=e.parser.context;return new iZ(e,[],o,f,f,0,[],0,P?new lme(P,P.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,o){this.stack.push(this.state,o,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var o;let f=e>>19,P=e&65535,{parser:d}=this.p,l=d.dynamicPrecedence(P);if(l&&(this.score+=l),f==0){this.pushState(d.getGoto(this.state,P,!0),this.reducePos),P=2e3&&!(!((o=this.p.parser.nodeSet.types[P])===null||o===void 0)&&o.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=b):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(P,c)}storeNode(e,o,f,P=4,d=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&l.buffer[n-4]==0&&l.buffer[n-1]>-1){if(o==f)return;if(l.buffer[n-2]>=o){l.buffer[n-2]=f;return}}}if(!d||this.pos==f)this.buffer.push(e,o,f,P);else{let l=this.buffer.length;if(l>0&&this.buffer[l-4]!=0)for(;l>0&&this.buffer[l-2]>f;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,P>4&&(P-=4);this.buffer[l]=e,this.buffer[l+1]=o,this.buffer[l+2]=f,this.buffer[l+3]=P}}shift(e,o,f,P){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=P,this.shiftContext(o,f),o<=this.p.parser.maxNode&&this.buffer.push(o,f,P,4);else{let d=e,{parser:l}=this.p;(P>this.pos||o<=l.maxNode)&&(this.pos=P,l.stateFlag(d,1)||(this.reducePos=P)),this.pushState(d,f),this.shiftContext(o,f),o<=l.maxNode&&this.buffer.push(o,f,P,4)}}apply(e,o,f,P){e&65536?this.reduce(e):this.shift(e,o,f,P)}useNode(e,o){let f=this.p.reused.length-1;(f<0||this.p.reused[f]!=e)&&(this.p.reused.push(e),f++);let P=this.pos;this.reducePos=this.pos=P+e.length,this.pushState(o,P),this.buffer.push(f,P,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,o=e.buffer.length;for(;o>0&&e.buffer[o-2]>e.reducePos;)o-=4;let f=e.buffer.slice(o),P=e.bufferBase+o;for(;e&&P==e.bufferBase;)e=e.parent;return new iZ(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,f,P,this.curContext,this.lookAhead,e)}recoverByDelete(e,o){let f=e<=this.p.parser.maxNode;f&&this.storeNode(e,this.pos,o,4),this.storeNode(0,this.pos,o,f?8:4),this.pos=this.reducePos=o,this.score-=190}canShift(e){for(let o=new WEe(this);;){let f=this.p.parser.stateSlot(o.state,4)||this.p.parser.hasAction(o.state,e);if(f==0)return!1;if(!(f&65536))return!0;o.reduce(f)}}recoverByInsert(e){if(this.stack.length>=300)return[];let o=this.p.parser.nextStates(this.state);if(o.length>8||this.stack.length>=120){let P=[];for(let d=0,l;dc&1&&n==l)||P.push(o[d],l)}o=P}let f=[];for(let P=0;P>19,P=o&65535,d=this.stack.length-f*3;if(d<0||e.getGoto(this.stack[d],P,!1)<0){let l=this.findForcedReduction();if(l==null)return!1;o=l}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(o),!0}findForcedReduction(){let{parser:e}=this.p,o=[],f=(P,d)=>{if(!o.includes(P))return o.push(P),e.allActions(P,l=>{if(!(l&393216))if(l&65536){let n=(l>>19)-d;if(n>1){let c=l&65535,b=this.stack.length-n*3;if(b>=0&&e.getGoto(this.stack[b],c,!1)>=0)return n<<19|65536|c}}else{let n=f(l,d+1);if(n!=null)return n}})};return f(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let o=0;othis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class lme{constructor(e,o){this.tracker=e,this.context=o,this.hash=e.strict?e.hash(o):0}}class WEe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let o=e&65535,f=e>>19;f==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(f-1)*3;let P=this.start.p.parser.getGoto(this.stack[this.base-3],o,!0);this.state=P}}class aZ{constructor(e,o,f){this.stack=e,this.pos=o,this.index=f,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,o=e.bufferBase+e.buffer.length){return new aZ(e,o,o-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new aZ(this.stack,this.pos,this.index)}}function eI(t,e=Uint16Array){if(typeof t!="string")return t;let o=null;for(let f=0,P=0;f=92&&l--,l>=34&&l--;let c=l-32;if(c>=46&&(c-=46,n=!0),d+=c,n)break;d*=46}o?o[P++]=d:o=new e(d)}return o}class _H{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const cme=new _H;class YEe{constructor(e,o){this.input=e,this.ranges=o,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=cme,this.rangeIndex=0,this.pos=this.chunkPos=o[0].from,this.range=o[0],this.end=o[o.length-1].to,this.readNext()}resolveOffset(e,o){let f=this.range,P=this.rangeIndex,d=this.pos+e;for(;df.to:d>=f.to;){if(P==this.ranges.length-1)return null;let l=this.ranges[++P];d+=l.from-f.to,f=l}return d}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,o.from);return this.end}peek(e){let o=this.chunkOff+e,f,P;if(o>=0&&o=this.chunk2Pos&&fn.to&&(this.chunk2=this.chunk2.slice(0,n.to-f)),P=this.chunk2.charCodeAt(0)}}return f>=this.token.lookAhead&&(this.token.lookAhead=f+1),P}acceptToken(e,o=0){let f=o?this.resolveOffset(o,-1):this.pos;if(f==null||f=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,o){if(o?(this.token=o,o.start=e,o.lookAhead=e+1,o.value=o.extended=-1):this.token=cme,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&o<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,o-this.chunkPos);if(e>=this.chunk2Pos&&o<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,o-this.chunk2Pos);if(e>=this.range.from&&o<=this.range.to)return this.input.read(e,o);let f="";for(let P of this.ranges){if(P.from>=o)break;P.to>e&&(f+=this.input.read(Math.max(P.from,e),Math.min(P.to,o)))}return f}}class nM{constructor(e,o){this.data=e,this.id=o}token(e,o){let{parser:f}=o.p;xxe(this.data,e,o,this.id,f.data,f.tokenPrecTable)}}nM.prototype.contextual=nM.prototype.fallback=nM.prototype.extend=!1;class sZ{constructor(e,o,f){this.precTable=o,this.elseToken=f,this.data=typeof e=="string"?eI(e):e}token(e,o){let f=e.pos,P=0;for(;;){let d=e.next<0,l=e.resolveOffset(1,1);if(xxe(this.data,e,o,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(d||P++,l==null)break;e.reset(l,e.token)}P&&(e.reset(f,e.token),e.acceptToken(this.elseToken,P))}}sZ.prototype.contextual=nM.prototype.fallback=nM.prototype.extend=!1;class A0{constructor(e,o={}){this.token=e,this.contextual=!!o.contextual,this.fallback=!!o.fallback,this.extend=!!o.extend}}function xxe(t,e,o,f,P,d){let l=0,n=1<0){let p=t[y];if(c.allows(p)&&(e.token.value==-1||e.token.value==p||XEe(p,e.token.value,P,d))){e.acceptToken(p);break}}let i=e.next,O=0,w=t[l+2];if(e.next<0&&w>O&&t[b+w*3-3]==65535){l=t[b+w*3-1];continue e}for(;O>1,p=b+y+(y<<1),a=t[p],u=t[p+1]||65536;if(i=u)O=y+1;else{l=t[p+2],e.advance();continue e}}break}}function ume(t,e,o){for(let f=e,P;(P=t[f])!=65535;f++)if(P==o)return f-e;return-1}function XEe(t,e,o,f){let P=ume(o,f,e);return P<0||ume(o,f,t)e)&&!f.type.isError)return o<0?Math.max(0,Math.min(f.to-1,e-25)):Math.min(t.length,Math.max(f.from+1,e+25));if(o<0?f.prevSibling():f.nextSibling())break;if(!f.parent())return o<0?0:t.length}}let GEe=class{constructor(e,o){this.fragments=e,this.nodeSet=o,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?fme(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?fme(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=l,null;if(d instanceof ku){if(l==e){if(l=Math.max(this.safeFrom,e)&&(this.trees.push(d),this.start.push(l),this.index.push(0))}else this.index[o]++,this.nextStart=l+d.length}}};class KEe{constructor(e,o){this.stream=o,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(f=>new _H)}getActions(e){let o=0,f=null,{parser:P}=e.p,{tokenizers:d}=P,l=P.stateSlot(e.state,3),n=e.curContext?e.curContext.hash:0,c=0;for(let b=0;bO.end+25&&(c=Math.max(O.lookAhead,c)),O.value!=0)){let w=o;if(O.extended>-1&&(o=this.addActions(e,O.extended,O.end,o)),o=this.addActions(e,O.value,O.end,o),!i.extend&&(f=O,o>w))break}}for(;this.actions.length>o;)this.actions.pop();return c&&e.setLookAhead(c),!f&&e.pos==this.stream.end&&(f=new _H,f.value=e.p.parser.eofTerm,f.start=f.end=e.pos,o=this.addActions(e,f.value,f.end,o)),this.mainToken=f,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let o=new _H,{pos:f,p:P}=e;return o.start=f,o.end=Math.min(f+1,P.stream.end),o.value=f==P.stream.end?P.parser.eofTerm:0,o}updateCachedToken(e,o,f){let P=this.stream.clipPos(f.pos);if(o.token(this.stream.reset(P,e),f),e.value>-1){let{parser:d}=f.p;for(let l=0;l=0&&f.p.parser.dialect.allows(n>>1)){n&1?e.extended=n>>1:e.value=n>>1;break}}}else e.value=0,e.end=this.stream.clipPos(P+1)}putAction(e,o,f,P){for(let d=0;de.bufferLength*4?new GEe(f,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,o=this.minStackPos,f=this.stacks=[],P,d;if(this.bigReductionCount>300&&e.length==1){let[l]=e;for(;l.forceReduce()&&l.stack.length&&l.stack[l.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let l=0;lo)f.push(n);else{if(this.advanceStack(n,f,e))continue;{P||(P=[],d=[]),P.push(n);let c=this.tokens.getMainToken(n);d.push(c.value,c.end)}}break}}if(!f.length){let l=P&&t7e(P);if(l)return Ev&&console.log("Finish with "+this.stackID(l)),this.stackToTree(l);if(this.parser.strict)throw Ev&&P&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+o);this.recovering||(this.recovering=5)}if(this.recovering&&P){let l=this.stoppedAt!=null&&P[0].pos>this.stoppedAt?P[0]:this.runRecovery(P,d,f);if(l)return Ev&&console.log("Force-finish "+this.stackID(l)),this.stackToTree(l.forceAll())}if(this.recovering){let l=this.recovering==1?1:this.recovering*3;if(f.length>l)for(f.sort((n,c)=>c.score-n.score);f.length>l;)f.pop();f.some(n=>n.reducePos>o)&&this.recovering--}else if(f.length>1){e:for(let l=0;l500&&b.buffer.length>500)if((n.score-b.score||n.buffer.length-b.buffer.length)>0)f.splice(c--,1);else{f.splice(l--,1);continue e}}}f.length>12&&f.splice(12,f.length-12)}this.minStackPos=f[0].pos;for(let l=1;l ":"";if(this.stoppedAt!=null&&P>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let b=e.curContext&&e.curContext.tracker.strict,i=b?e.curContext.hash:0;for(let O=this.fragments.nodeAt(P);O;){let w=this.parser.nodeSet.types[O.type.id]==O.type?d.getGoto(e.state,O.type.id):-1;if(w>-1&&O.length&&(!b||(O.prop(fl.contextHash)||0)==i))return e.useNode(O,w),Ev&&console.log(l+this.stackID(e)+` (via reuse of ${d.getName(O.type.id)})`),!0;if(!(O instanceof ku)||O.children.length==0||O.positions[0]>0)break;let y=O.children[0];if(y instanceof ku&&O.positions[0]==0)O=y;else break}}let n=d.stateSlot(e.state,4);if(n>0)return e.reduce(n),Ev&&console.log(l+this.stackID(e)+` (via always-reduce ${d.getName(n&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let b=0;bP?o.push(p):f.push(p)}return!1}advanceFully(e,o){let f=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>f)return dme(e,o),!0}}runRecovery(e,o,f){let P=null,d=!1;for(let l=0;l ":"";if(n.deadEnd&&(d||(d=!0,n.restart(),Ev&&console.log(i+this.stackID(n)+" (restarted)"),this.advanceFully(n,f))))continue;let O=n.split(),w=i;for(let y=0;O.forceReduce()&&y<10&&(Ev&&console.log(w+this.stackID(O)+" (via force-reduce)"),!this.advanceFully(O,f));y++)Ev&&(w=this.stackID(O)+" -> ");for(let y of n.recoverByInsert(c))Ev&&console.log(i+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,f);this.stream.end>n.pos?(b==n.pos&&(b++,c=0),n.recoverByDelete(c,b),Ev&&console.log(i+this.stackID(n)+` (via recover-delete ${this.parser.getName(c)})`),dme(n,f)):(!P||P.scoret;class Bce{constructor(e){this.start=e.start,this.shift=e.shift||Lie,this.reduce=e.reduce||Lie,this.reuse=e.reuse||Lie,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class fS extends pce{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let o=e.nodeNames.split(" ");this.minRepeatTerm=o.length;for(let n=0;ne.topRules[n][1]),P=[];for(let n=0;n=0)d(i,c,n[b++]);else{let O=n[b+-i];for(let w=-i;w>0;w--)d(n[b++],c,O);b++}}}this.nodeSet=new yD(o.map((n,c)=>Cp.define({name:c>=this.minRepeatTerm?void 0:n,id:c,props:P[c],top:f.indexOf(c)>-1,error:c==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(c)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Qye;let l=eI(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new nM(l,n):n),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,o,f){let P=new JEe(this,e,o,f);for(let d of this.wrappers)P=d(P,e,o,f);return P}getGoto(e,o,f=!1){let P=this.goto;if(o>=P[0])return-1;for(let d=P[o+1];;){let l=P[d++],n=l&1,c=P[d++];if(n&&f)return c;for(let b=d+(l>>1);d0}validAction(e,o){return!!this.allActions(e,f=>f==o?!0:null)}allActions(e,o){let f=this.stateSlot(e,4),P=f?o(f):void 0;for(let d=this.stateSlot(e,1);P==null;d+=3){if(this.data[d]==65535)if(this.data[d+1]==1)d=_O(this.data,d+2);else break;P=o(_O(this.data,d+1))}return P}nextStates(e){let o=[];for(let f=this.stateSlot(e,1);;f+=3){if(this.data[f]==65535)if(this.data[f+1]==1)f=_O(this.data,f+2);else break;if(!(this.data[f+2]&1)){let P=this.data[f+1];o.some((d,l)=>l&1&&d==P)||o.push(this.data[f],P)}}return o}configure(e){let o=Object.assign(Object.create(fS.prototype),this);if(e.props&&(o.nodeSet=this.nodeSet.extend(...e.props)),e.top){let f=this.topRules[e.top];if(!f)throw new RangeError(`Invalid top rule name ${e.top}`);o.top=f}return e.tokenizers&&(o.tokenizers=this.tokenizers.map(f=>{let P=e.tokenizers.find(d=>d.from==f);return P?P.to:f})),e.specializers&&(o.specializers=this.specializers.slice(),o.specializerSpecs=this.specializerSpecs.map((f,P)=>{let d=e.specializers.find(n=>n.from==f.external);if(!d)return f;let l=Object.assign(Object.assign({},f),{external:d.to});return o.specializers[P]=hme(l),l})),e.contextTracker&&(o.context=e.contextTracker),e.dialect&&(o.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(o.strict=e.strict),e.wrap&&(o.wrappers=o.wrappers.concat(e.wrap)),e.bufferLength!=null&&(o.bufferLength=e.bufferLength),o}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let o=this.dynamicPrecedences;return o==null?0:o[e]||0}parseDialect(e){let o=Object.keys(this.dialects),f=o.map(()=>!1);if(e)for(let d of e.split(" ")){let l=o.indexOf(d);l>=0&&(f[l]=!0)}let P=null;for(let d=0;df)&&o.p.parser.stateFlag(o.state,2)&&(!e||e.scoret.external(o,f)<<1|e}return t.get}const n7e=1,_xe=201,wxe=202,r7e=203,pme=204,o7e=205,i7e=206,a7e=207,s7e=2,l7e=208,c7e=209,u7e=3,f7e=210,d7e=211,h7e=4,p7e=212,m7e=213,g7e=5,v7e=214,y7e=26,b7e=27,x7e=51,_7e=52,w7e=57,O7e=58,S7e=59,k7e=61,T7e=62,C7e=63,A7e=64,M7e=65,E7e=67,P7e=251,R7e=74,L7e=270,I7e=115,D7e=133,B7e=154,z7e=155,F7e=158,ZI=10,qI=13,zce=32,lq=9,Fce=35,N7e=40,$7e=46,mme=123,Oxe=39,Sxe=34,V7e=92,U7e=new Set([b7e,x7e,_7e,L7e,E7e,D7e,O7e,S7e,P7e,A7e,M7e,R7e,T7e,C7e,B7e,z7e,F7e,I7e]);function Iie(t){return t==ZI||t==qI}const j7e=new A0((t,e)=>{let o;if(t.next<0)t.acceptToken(i7e);else if(e.context.depth<0)Iie(t.next)&&t.acceptToken(o7e,1);else if(((o=t.peek(-1))<0||Iie(o))&&e.canShift(pme)){let f=0;for(;t.next==zce||t.next==lq;)t.advance(),f++;(t.next==ZI||t.next==qI||t.next==Fce)&&t.acceptToken(pme,-f)}else Iie(t.next)&&t.acceptToken(r7e,1)},{contextual:!0}),Q7e=new A0((t,e)=>{let o=e.context.depth;if(o<0)return;let f=t.peek(-1);if(f==ZI||f==qI){let P=0,d=0;for(;;){if(t.next==zce)P++;else if(t.next==lq)P+=8-P%8;else break;t.advance(),d++}P!=o&&t.next!=ZI&&t.next!=qI&&t.next!=Fce&&(P{for(let e=0;e<5;e++){if(t.next!="print".charCodeAt(e))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let e=0;;e++){let o=t.peek(e);if(!(o==zce||o==lq)){o!=N7e&&o!=$7e&&o!=ZI&&o!=qI&&o!=Fce&&t.acceptToken(n7e);return}}});function cq(t,e,o,f,P){return new A0(d=>{let l=d.pos;for(;!(d.next<0);)if(d.next==mme)if(d.peek(1)==mme)d.advance(2);else{if(d.pos==l){d.acceptToken(f,1);return}break}else if(d.next==V7e)d.advance(),d.next>=0&&d.advance();else if(d.next==t&&(e==1||d.peek(1)==t&&d.peek(2)==t)){if(d.pos==l){d.acceptToken(P,e);return}break}else d.advance();d.pos>l&&d.acceptToken(o)})}const Y7e=cq(Oxe,1,a7e,s7e,l7e),X7e=cq(Sxe,1,c7e,u7e,f7e),G7e=cq(Oxe,3,d7e,h7e,p7e),K7e=cq(Sxe,3,m7e,g7e,v7e),J7e=gS({'async "*" "**" FormatConversion FormatSpec':Gn.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":Gn.controlKeyword,"in not and or is del":Gn.operatorKeyword,"from def class global nonlocal lambda":Gn.definitionKeyword,import:Gn.moduleKeyword,"with as print":Gn.keyword,Boolean:Gn.bool,None:Gn.null,VariableName:Gn.variableName,"CallExpression/VariableName":Gn.function(Gn.variableName),"FunctionDefinition/VariableName":Gn.function(Gn.definition(Gn.variableName)),"ClassDefinition/VariableName":Gn.definition(Gn.className),PropertyName:Gn.propertyName,"CallExpression/MemberExpression/PropertyName":Gn.function(Gn.propertyName),Comment:Gn.lineComment,Number:Gn.number,String:Gn.string,FormatString:Gn.special(Gn.string),UpdateOp:Gn.updateOperator,"ArithOp!":Gn.arithmeticOperator,BitOp:Gn.bitwiseOperator,CompareOp:Gn.compareOperator,AssignOp:Gn.definitionOperator,Ellipsis:Gn.punctuation,At:Gn.meta,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace,".":Gn.derefOperator,", ;":Gn.separator}),ePe={__proto__:null,await:48,or:58,and:60,in:64,not:66,is:68,if:74,else:76,lambda:80,yield:98,from:100,async:106,for:108,None:168,True:170,False:170,del:184,pass:188,break:192,continue:196,return:200,raise:208,import:212,as:214,global:218,nonlocal:220,assert:224,type:229,elif:242,while:246,try:252,except:254,finally:256,with:260,def:264,class:274,match:285,case:291},tPe=fS.deserialize({version:14,states:"#&jO`Q#yOOP$bOSOOO%kQ&nO'#HcOOQS'#Cq'#CqOOQS'#Cr'#CrO'ZQ#xO'#CpO(|Q&nO'#HbOOQS'#Hc'#HcOOQS'#DW'#DWOOQS'#Hb'#HbO)jQ#xO'#DaO)}Q#xO'#DhO*_Q#xO'#DlOOQS'#Dw'#DwO*rO,UO'#DwO*zO7[O'#DwO+SOWO'#DxO+_O`O'#DxO+jOpO'#DxO+uO!bO'#DxO-wQ&nO'#HSOOQS'#HS'#HSO'ZQ#xO'#HRO/ZQ&nO'#HROOQS'#Ee'#EeO/rQ#xO'#EfOOQS'#HQ'#HQO/|Q#xO'#HPOOQV'#HP'#HPO0XQ#xO'#F]OOQS'#Ge'#GeO0^Q#xO'#F[OOQV'#IY'#IYOOQV'#HO'#HOOOQV'#Ft'#FtQ`Q#yOOO'ZQ#xO'#CsO0lQ#xO'#DPO0sQ#xO'#DTO1RQ#xO'#HgO1cQ&nO'#EYO'ZQ#xO'#EZOOQS'#E]'#E]OOQS'#E_'#E_OOQS'#Ea'#EaO1wQ#xO'#EcO2_Q#xO'#EgO0XQ#xO'#EiO2rQ&nO'#EiO0XQ#xO'#ElO/rQ#xO'#EoO0XQ#xO'#EqO/rQ#xO'#EwO/rQ#xO'#EzO2}Q#xO'#E|O3UQ#xO'#FRO3aQ#xO'#E}O/rQ#xO'#FRO0XQ#xO'#FTO0XQ#xO'#FYO3fQ#xO'#F_P3mO#xO'#G}POOO)CBq)CBqOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Ck'#CkOOQS'#Cl'#ClOOQS'#Cn'#CnO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO3xQ#xO'#DqOOQS,5:[,5:[O4]Q#xO'#HqOOQS,5:_,5:_O4jQMlO,5:_O4oQ&nO,59[O0lQ#xO,59dO0lQ#xO,59dO0lQ#xO,59dO7_Q#xO,59dO7dQ#xO,59dO7kQ#xO,59lO7rQ#xO'#HbO8xQ#xO'#HaOOQS'#Ha'#HaOOQS'#D^'#D^O9aQ#xO,59cO'ZQ#xO,59cO9oQ#xO,59cOOQS,59{,59{O9tQ#xO,5:TO'ZQ#xO,5:TOOQS,5:S,5:SO:SQ#xO,5:SO:XQ#xO,5:ZO'ZQ#xO,5:ZO'ZQ#xO,5:XOOQS,5:W,5:WO:jQ#xO,5:WO:oQ#xO,5:YOOOO'#F|'#F|O:tO,UO,5:cOOQS,5:c,5:cOOOO'#F}'#F}O:|O7[O,5:cO;UQ#xO'#DyOOOW'#GO'#GOO;fOWO,5:dOOQS,5:d,5:dO;UQ#xO'#D}OOO`'#GR'#GRO;qO`O,5:dO;UQ#xO'#EOOOOp'#GS'#GSO;|OpO,5:dO;UQ#xO'#EPOOO!b'#GT'#GTOROOQS,5>R,5>RO/rQ#xO'#EUOOQS'#EV'#EVOGZQ#xO'#GWOGkQ#xO,59OOGkQ#xO,59OO)pQ#xO,5:rOGyQ&nO'#HjOOQS,5:u,5:uOOQS,5:},5:}OH^Q#xO,5;ROHoQ#xO,5;TOOQS'#GZ'#GZOH}Q&nO,5;TOI]Q#xO,5;TOIbQ#xO'#IWOOQS,5;W,5;WOIpQ#xO'#ISOOQS,5;Z,5;ZOJRQ#xO,5;]O3aQ#xO,5;cO3aQ#xO,5;fOJZQ&nO'#IZO'ZQ#xO'#IZOJeQ#xO,5;hO2}Q#xO,5;hO/rQ#xO,5;mO0XQ#xO,5;oOJjQ#yO'#ExOKvQ#{O,5;iO! [Q#xO'#I[O3aQ#xO,5;mO! gQ#xO,5;oO! oQ#xO,5;tO! zQ&nO,5;yO'ZQ#xO,5;yPOOO,5=i,5=iP!!ROSO,5=iP!!WO#xO,5=iO!${Q&nO1G.lO!%SQ&nO1G.lO!'sQ&nO1G.lO!'}Q&nO1G.lO!*hQ&nO1G.lO!*{Q&nO1G.lO!+`Q#xO'#HpO!+nQ&nO'#HSO/rQ#xO'#HpO!+xQ#xO'#HoOOQS,5:],5:]O!,QQ#xO,5:]O!,VQ#xO'#HrO!,bQ#xO'#HrO!,uQ#xO,5>]OOQS'#Du'#DuOOQS1G/y1G/yOOQS1G/O1G/OO!-uQ&nO1G/OO!-|Q&nO1G/OO0lQ#xO1G/OO!.iQ#xO1G/WOOQS'#D]'#D]O/rQ#xO,59vOOQS1G.}1G.}O!.pQ#xO1G/gO!/QQ#xO1G/gO!/YQ#xO1G/hO'ZQ#xO'#HiO!/_Q#xO'#HiO!/dQ&nO1G.}O!/tQ#xO,59kO!0zQ#xO,5>XO!1[Q#xO,5>XO!1dQ#xO1G/oO!1iQ&nO1G/oOOQS1G/n1G/nO!1yQ#xO,5>SO!2pQ#xO,5>SO/rQ#xO1G/sO!3_Q#xO1G/uO!3dQ&nO1G/uO!3tQ&nO1G/sOOQS1G/r1G/rOOQS1G/t1G/tOOOO-E9z-E9zOOQS1G/}1G/}OOOO-E9{-E9{O!4UQ#xO'#H|O/rQ#xO'#H|O!4dQ#xO,5:eOOOW-E9|-E9|OOQS1G0O1G0OO!4oQ#xO,5:iOOO`-E:P-E:PO!4zQ#xO,5:jOOOp-E:Q-E:QO!5VQ#xO,5:kOOO!b-E:R-E:ROOQS-E:S-E:SO!5bQ!LUO1G3XO!6RQ&nO1G3XO'ZQ#xO,5oOOQS1G1c1G1cO!7RQ#xO1G1cOOQS'#DX'#DXO/rQ#xO,5>OOOQS,5>O,5>OO!7WQ#xO'#FuO!7cQ#xO,59qO!7kQ#xO1G/ZO!7uQ&nO,5>SOOQS1G3m1G3mOOQS,5:p,5:pO!8fQ#xO'#HROOQS,5UO!9gQ#xO,5>UO/rQ#xO1G0mO/rQ#xO1G0mO0XQ#xO1G0oOOQS-E:X-E:XO!9xQ#xO1G0oO!:TQ#xO1G0oO!:YQ#xO,5>rO!:hQ#xO,5>rO!:vQ#xO,5>nO!;^Q#xO,5>nO!;oQ#xO'#EsO/rQ#xO1G0wO!;zQ#xO1G0wO!uO!BzQ#xO,5>uO!CSQ&nO,5>uO/rQ#xO1G1SO!C^Q#xO1G1SO3aQ#xO1G1XO! gQ#xO1G1ZOOQV,5;d,5;dO!CcQ#zO,5;dO!ChQ#{O1G1TO!F|Q#xO'#GbO3aQ#xO1G1TO3aQ#xO1G1TO!G^Q#xO,5>vO!GkQ#xO,5>vO0XQ#xO,5>vOOQV1G1X1G1XO!GsQ#xO'#FVO!HUQMlO1G1ZO!H^Q#xO1G1ZOOQV1G1`1G1`O3aQ#xO1G1`O!HcQ#xO1G1`O!HkQ#xO'#FaOOQV1G1e1G1eO! zQ&nO1G1ePOOO1G3T1G3TP!HpOSO1G3TOOQS,5>[,5>[OOQS'#Dr'#DrO/rQ#xO,5>[O!HuQ#xO,5>ZO!IYQ#xO,5>ZOOQS1G/w1G/wO!IbQ#xO,5>^O!IrQ#xO,5>^O!IzQ#xO,5>^O!J_Q#xO,5>^O!JoQ#xO,5>^OOQS1G3w1G3wOOQS7+$j7+$jO!7kQ#xO7+$rO!LbQ#xO1G/OO!LiQ#xO1G/OOOQS1G/b1G/bOOQS,5TO'ZQ#xO,5>TOOQS7+$i7+$iO!MVQ#xO7+%RO!M_Q#xO7+%SO!MdQ#xO1G3sOOQS7+%Z7+%ZO!MtQ#xO1G3sO!M|Q#xO7+%ZOOQS,5hO##PQ#xO,5>hO##PQ#xO,5>hO##_O$ISO'#D{O##jO#tO'#H}OOOW1G0P1G0PO##oQ#xO1G0POOO`1G0T1G0TO##wQ#xO1G0TOOOp1G0U1G0UO#$PQ#xO1G0UOOO!b1G0V1G0VO#$XQ#xO1G0VO#$aQ!LUO7+(sO#%QQ&nO1G2]P#%kQ#xO'#GVOOQS,5i,5>iOOOW7+%k7+%kOOO`7+%o7+%oOOOp7+%p7+%pOOO!b7+%q7+%qO#:`Q#xO1G3XO#:yQ#xO1G3XP'ZQ#xO'#FxO/rQ#xO<qO#;mQ#xO,5>qO0XQ#xO,5>qO#pOOQS<sO#sOOQS1G0y1G0yOOQS<xO#DpQ#xO,5>xOOQS,5>x,5>xO#D{Q#xO,5>wO#E^Q#xO,5>wOOQS1G1]1G1]OOQS,5;s,5;sOOQV<XAN>XO#HmQ#xO<eAN>eO/rQ#xO1G2PO#H}Q&nO1G2PP#IXQ#xO'#FyOOQS1G2V1G2VP#IfQ#xO'#GPO#IsQ#xO7+)nO#JZQ#xO,5:hOOOO-E:O-E:OO#JfQ#xO7+(sOOQSAN?_AN?_O#KPQ#xO,5VOOQSANBaANBaOOOO7+%n7+%nOOQS7+'|7+'|O$+jQ#xO<zO$.`Q#xO,5>zO0XQ#xO,5|O$!pQ#xO,5>|OOQS1G1s1G1sO$2WQ&nO,5<_OOQU7+'S7+'SO$$mQ#xO1G/kO$!pQ#xO,5<]O$2_Q#xO,5>}O$2fQ#xO,5>}OOQS1G1v1G1vOOQS7+'V7+'VP$!pQ#xO'#GkO$2nQ#xO1G4hO$2xQ#xO1G4hO$3QQ#xO1G4hOOQS7+%V7+%VO$3`Q#xO1G1wO$3nQ&nO'#FdO$3uQ#xO,5=UOOQS,5=U,5=UO$4TQ#xO1G4iOOQS-E:h-E:hO$!pQ#xO,5=TO$4[Q#xO,5=TO$4aQ#xO7+*SOOQS-E:g-E:gO$4kQ#xO7+*SO$!pQ#xO,5<^P$!pQ#xO'#GjO$4sQ#xO1G2oO$!pQ#xO1G2oP$5RQ#xO'#GiO$5YQ#xO<fPP>i?Z?^PP'a'aPP?vPP'a'aPP'a'a'a'a'a?z@t'aP@wP@}EXHxPH|IYI^IbIf'aPPPIjIs'XP'X'XP'XP'XP'XP'XP'X'X'XP'XPP'XPP'XP'XPIyJVJ_PJfJlPJfPJfJfPPPJfPLzPMTM_MeLzPJfMnPJfPMuM{PNPNe! S! mNPNP! s!!QNPNPNPNP!!f!!l!!o!!t!!w!#R!#X!#e!#w!#}!$X!$_!${!%R!%X!%_!%i!%o!%u!%{!&R!&X!&k!&u!&{!'R!'X!'c!'i!'o!'u!'{!(V!(]!(g!(m!(v!(|!)]!)e!)o!)vPPPPPPPPPPPPPPPPP!)|!*P!*V!*`!*j!*uPPPPPPPPPPPP!/l!1Q!5T!8hPP!8p!9S!9]!:U!9{!:_!:e!:h!:k!:n!:v!;gPPPPPPPPP!;j!;yPPPP!V!>`!?[!?_]jOs#v$w*W,d(TeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z}!hQ#r$P$b$q$}%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!P!iQ#r$P$b$q$}%S%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!R!jQ#r$P$b$q$}%S%T%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!T!kQ#r$P$b$q$}%S%T%U%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!V!lQ#r$P$b$q$}%S%T%U%V%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!X!mQ#r$P$b$q$}%S%T%U%V%W%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!]!mQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O(TTOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z&iVOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1Z%sXOYZ[isw}!O!S!U!V!Z!n!p#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$VvQ/t/SR1W1Y'zeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZW#ym!P!Q$hW$Rv&q/S1YQ$j!RQ$n!TQ${![Q$|!]W%Z!n(O*v,zS&p$S$TQ'e$vQ)Y&jQ)h'QU)i'S)j)kU)l'U)m+}W)s'Y,Q-j.dQ*d'nW*e'p,s-}.lQ,P)rS,r*f*gY-d+x-e.a.b/XQ-g+zQ-t,hQ-x,kQ.j-vl.o.R.u.v.x/d/f/k0R0W0]0b0m0r0uQ/W.`Q/l.wQ/x/^Q0T/hU0h0^0k0sX0n0c0o0v0wR&o$R!_!|YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sR%k!{Q#QYQ&W#cQ&Z#gQ&]#jQ&_#mQ&x$^Q&{$aR-`+lT/R.Y0[![!oQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OQ&m#zQ't$|R*p'uR'}%ZQ%d!rR/v/[(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZS#pd#q!P.s.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0w(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZT#pd#qT#d`#ee(|&W&Z&]&_)O)Q)S)U-`._T+m({+nT#ha#iT#kb#lT#nc#oQ$`xQ,P)sR,q*eX$^x$_$`&zQ'[$nQ'r${Q'u$|R*V'eQ)t'YV-i,Q-j.dZlOs$w*W,dXpOs*W,dQ$x!YQ']$oQ'^$pQ'o$zQ's$|Q*T'dQ*['iQ*_'jQ*`'kQ*m'qS*o't'uQ,W)yQ,Y)zQ,Z){Q,_*RS,a*U*nQ,e*YQ,f*ZS,g*]*^Q,w*pQ-l,VQ-m,XQ-o,`S-p,b,cQ-u,iQ-w,jQ.e-nQ.g-qQ.h-sQ.i-tQ/Y.fQ/Z.jQ/p.{R0Z/qWpOs*W,dR#|oQ'q${S*U'e'rR,c*VQ,p*eR-{,qQ*n'qQ,b*UR-q,cZnOos*W,dQ'w$}R*r'xT.P,x.Qu.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0ut.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uQ/l.wX0n0c0o0v0w!P.r.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0wQ/a.qR/}/bg/d.t/e/y0Q0V0e0g0i0t0x0yu.y.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uX/_.o.y/x0hR/z/^V0j0^0k0sR/q.{QsOS$Os,dR,d*WQ&r$UR)_&rS%z#W$WS(p%z(sT(s%}&tQ%n#OQ%u#SW(b%n%u(g(kQ(g%rR(k%wQ&}$bR)e&}Q(v&OQ+_(qT+e(v+_Q(P%]R*w(PS(S%`%aY*{(S*|-Q.W/PU*|(T(U(VU-Q*}+O+PS.W-R-SR/P.XQ#_^R&R#_Q#b_R&T#bQ#e`R&X#eQ(y&US+j(y+kR+k(zQ+n({R-a+nQ#iaR&[#iQ#lbR&^#lQ#ocR&`#oQ#qdR&a#qQ#tgQ&c#rW&f#t&c)b+uQ)b&wR+u1OQ$_xS&y$_&zR&z$`Q'X$lR)q'XQ&k#yR)Z&kQ$h!QR'R$hQ+y)iS-f+y.cR.c-gQ'V$jR)n'VQ,R)tR-k,RQ#wkR&h#wQ)x']R,U)xQ'`$qS*P'`*QR*Q'aQ'h$xR*X'hQ'm$yS*c'm,nR,n*dQ,t*iR.O,tWoOs*W,dR#{oQ.Q,xR.m.Qd/e.t/y0Q0V0e0g0i0t0x0yR0P/eU/].o/x0hR/w/]Q0d0VS0p0d0qR0q0eS0_/y/zR0l0_Q/g.tR0S/gR!`PXrOs*W,dWqOs*W,dR'f$wYkOs$w*W,dR&g#v[xOs#v$w*W,dR&x$^&hQOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1ZQ!sTQ#rfQ$PtU$by%p(eS$q!W$tQ$}!^Q%S!hQ%T!iQ%U!jQ%V!kQ%W!lQ%X!mQ%r#PQ%w#TQ%}#XQ&O#YQ&t$XQ'a$rQ'x%OQ)W&dU)c&|)d+vW)|'_*O,],^Q+R(_Q+[(nQ,[)}Q-Z+dQ0Y/oR1O1TQ#OYQ#SZQ$o!UQ$p!VQ%`!pQ(V%a^(^%m%t(a(i+T+W+Y^*x(R*z-O-P.V/O/sQ+O(TQ+P(UQ,X)yQ,}*yQ-R*}Q.T,{Q.U,|Q.X-SQ.|.SR/r.}[gOs#v$w*W,d!^!{YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sQ#W[Q#uiS$Ww}Q$e!OW$l!S$a'b*SS$y!Z$uW%Y!n(O*v,zY&U#c#g#j#m+l`&e#s&b)V)X)a+t-b1SQ&u$YQ&v$[Q&w$^Q'{%[Q(]%kW(m%y(o+]+aQ(q%{Q(z&VQ)]&oS)`&s1QQ)f'OQ)g'PU)o'W)p,OQ)v'ZQ*]'iY*a'l*b,l,m-yQ*t'}S+Q(Y1RW+c(u+^-W-[W+g(x+i-^-_Q,T)wQ,i*^Q,v*lQ-]+hQ-c+wQ-z,pQ.]-YR.k-{hUOs#s#v$w&b&s(Y)V)X*W,d%Y!zYZ[iw}!O!S!U!V!Z!n!p#c#g#j#m$Y$[$^$a$u%[%a%k%m%t%y%{&V&o'O'P'W'Z'b'i'l'}(O(R(T(U(a(i(o(u(x)a)p)w)y*S*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$QuW%e!t!x0{1VQ%f!uQ%g!vQ%i!yQ%s0zS(X%h1PQ(Z0|Q([0}Q-T+UQ.[-US/Q.Y0[R1X1ZU$Uv/S1YR)^&q[hOs#v$w*W,da!}Y#c#g#j#m$^$a+lQ#][Q$ZwR$d}Q%o#OQ%v#SQ%|#WQ'{%YQ(h%rQ(l%wQ(t%}Q(w&OQ+`(qQ,y*tQ.Z-TQ/U.[R/u/TQ$cyQ(d%pR+V(eQ/T.YR0f0[R#VZR#[[R%_!nQ%]!nV*u(O*v,z!]!qQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OR%b!pQ&W#cQ&Z#gQ&]#jQ&_#mR-`+lQ(}&WQ)P&ZQ)R&]Q)T&_Q+p)OQ+q)QQ+r)SQ+s)UQ.^-`R/V._Q$m!SQ&{$aQ*R'bR,`*SQ#zmQ$f!PQ$i!QR'T$hQ)h'SR+|)kQ)h'SQ+{)jR+|)kR$k!RR)u'YXqOs*W,dQ$s!WR'c$tQ$z!ZR'd$uR*k'pQ*i'pV-|,s-}.lQ.{.RQ/i.uR/j.vU.t.R.u.vQ/n.xQ/y/^Q0O/dU0Q/f0R0bQ0V/kQ0e0WQ0g0]U0i0^0k0sQ0t0mQ0x0rR0y0uR/m.wR/{/^",nodeNames:"⚠ print { { { { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatConversion FormatSpec FormatReplacement FormatReplacement FormatReplacement FormatReplacement ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:283,context:q7e,nodeProps:[["group",-15,8,88,90,91,93,95,97,99,101,102,103,105,108,111,113,"Statement Statement",-22,10,20,23,27,42,51,52,58,59,62,63,64,65,66,69,72,73,74,82,83,84,85,"Expression",-10,117,119,122,124,125,129,131,136,138,141,"Statement",-9,146,147,150,151,153,154,155,156,157,"Pattern"],["openedBy",25,"(",56,"[",60,"{"],["closedBy",26,")",57,"]",61,"}"]],propSources:[J7e],skippedNodes:[0,6],repeatNodeCount:38,tokenData:"%-W#sR!`OX%TXY=|Y[%T[]=|]p%Tpq=|qr@_rsDOst!+|tu%Tuv!Nnvw#!|wx#$Wxy#:Uyz#;Yz{#<^{|#>x|}#@S}!O#AW!O!P#Ci!P!Q#N_!Q!R$!y!R![$&w![!]$1e!]!^$3s!^!_$4w!_!`$7c!`!a$8m!a!b%T!b!c$;U!c!d$W!e!h$W#V#Y$Q<%lO$Xc&r!b&jS&mW%p!TOX%TXY=|Y[%T[]=|]p%Tpq=|qr%Trs&Vsw%Twx/Xx#O%T#O#P?d#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#s?i[&r!bOY%TYZ=|Z]%T]^=|^#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=P;=`<%l8^<%lO%T!q@hd&r!b&jS&mWOr%Trs&Vsw%Twx/Xx!_%T!_!`Av!`#O%T#O#P7o#P#T%T#T#UBz#U#f%T#f#gBz#g#hBz#h#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qBR]oR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qCV]!nR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cDXa&r!b&jS&hsOYE^YZ%TZ]E^]^%T^rE^rs!)|swE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cEia&r!b&jS&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cFw]&r!b&jS&hsOr%Trs'Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cGya&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxIOx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cIXa&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxJ^x#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#_Jg_&r!b&mW&hsOYJ^YZ1XZ]J^]^1X^rJ^rsKfs#OJ^#O#PL`#P#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`!!o<%lOJ^#_KmZ&r!b&hsOr1Xrs2ys#O1X#O#P3q#P#o1X#o#p4`#p#q1X#q#r4`#r;'S1X;'S;=`7i<%lO1X#_LeW&r!bO#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`! r;=`<%lL}<%lOJ^{MUZ&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l<%lOL}{M|V&hsOr4`rs5ds#O4`#O#P5y#P;'S4`;'S;=`6t<%lO4`{NfRO;'SL};'S;=`No;=`OL}{Nv[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lL}<%lOL}{! oP;=`<%lL}#_! y[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lJ^<%lOL}#_!!rP;=`<%lJ^#c!!zW&r!bO#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!(q;=`<%l!#d<%lOE^!P!#m]&jS&mW&hsOY!#dYZ8^Z]!#d]^8^^r!#drs!$fsw!#dwx!%Yx#O!#d#O#P!'Y#P;'S!#d;'S;=`!(k<%lO!#d!P!$mX&jS&hsOr8^rs9rsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`^s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!>e_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!?ds#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!?k_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!3`s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!@q[U!T&r!bOY!=UYZ1XZ]!=U]^1X^#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!Ec;=`<%l4`<%lO!=U!]!AnZU!T&mWOY!AgYZ4`Z]!Ag]^4`^r!Agrs!Bas#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!BfZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!CXs#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!C^ZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!4Ys#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!DUWU!TOY!AgYZ4`Z]!Ag]^4`^;'S!Ag;'S;=`!Dn;=`<%l4`<%lO!Ag!]!DsW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!Ag<%lO4`!]!E`P;=`<%l!Ag#o!EhW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!=U<%lO4`#o!FTP;=`<%l!=U#s!F_[U!T&r!bOY!+|YZ%TZ]!+|]^%T^#o!+|#o#p!GT#p#q!+|#q#r!GT#r;'S!+|;'S;=`!Mq;=`<%l8^<%lO!+|!a!G^]U!T&jS&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!H^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!IVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!I^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!5wsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!J^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!KVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!K^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!Agx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!L[WU!TOY!GTYZ8^Z]!GT]^8^^;'S!GT;'S;=`!Lt;=`<%l8^<%lO!GT!a!L{Y&jS&mWOr8^rs9Qsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`Q<%lO$TP;=`<%l$ei&r!b&jS&mW&g`&SsOr%Trs$@Ssw%Twx$C`x!Q%T!Q![$Q<%lO$Q<%lO$Q<%lO$Q<%lO$Q<%lO$ePe[t]||-1}],tokenPrec:7372}),gme=new hce,kxe=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function qQ(t){return(e,o,f)=>{if(f)return!1;let P=e.node.getChild("VariableName");return P&&o(P,t),!0}}const nPe={FunctionDefinition:qQ("function"),ClassDefinition:qQ("class"),ForStatement(t,e,o){if(o){for(let f=t.node.firstChild;f;f=f.nextSibling)if(f.name=="VariableName")e(f,"variable");else if(f.name=="in")break}},ImportStatement(t,e){var o,f;let{node:P}=t,d=((o=P.firstChild)===null||o===void 0?void 0:o.name)=="from";for(let l=P.getChild("import");l;l=l.nextSibling)l.name=="VariableName"&&((f=l.nextSibling)===null||f===void 0?void 0:f.name)!="as"&&e(l,d?"variable":"namespace")},AssignStatement(t,e){for(let o=t.node.firstChild;o;o=o.nextSibling)if(o.name=="VariableName")e(o,"variable");else if(o.name==":"||o.name=="AssignOp")break},ParamList(t,e){for(let o=null,f=t.node.firstChild;f;f=f.nextSibling)f.name=="VariableName"&&(!o||!/\*|AssignOp/.test(o.name))&&e(f,"variable"),o=f},CapturePattern:qQ("variable"),AsPattern:qQ("variable"),__proto__:null};function Txe(t,e){let o=gme.get(e);if(o)return o;let f=[],P=!0;function d(l,n){let c=t.sliceString(l.from,l.to);f.push({label:c,type:n})}return e.cursor(mf.IncludeAnonymous).iterate(l=>{if(l.name){let n=nPe[l.name];if(n&&n(l,d,P)||!P&&kxe.has(l.name))return!1;P=!1}else if(l.to-l.from>8192){for(let n of Txe(t,l.node))f.push(n);return!1}}),gme.set(e,f),f}const vme=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Cxe=["String","FormatString","Comment","PropertyName"];function rPe(t){let e=Gu(t.state).resolveInner(t.pos,-1);if(Cxe.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&vme.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let P=e;P;P=P.parent)kxe.has(P.name)&&(f=f.concat(Txe(t.state.doc,P)));return{options:f,from:o?e.from:t.pos,validFor:vme}}const oPe=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),iPe=[Hd("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Hd("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Hd("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Hd("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Hd(`if \${}: -`,{label:"if",detail:"block",type:"keyword"}),Hd("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Hd("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Hd("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Hd("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],iPe=Mce(Txe,oq(rPe.concat(oPe)));function vme(t,e){let o=t.baseIndentFor(e),f=t.lineAt(t.pos,-1),P=f.from+f.text.length;return/^\s*($|#)/.test(f.text)&&t.node.too?null:o+t.unit}const Die=lS.define({name:"python",parser:ePe.configure({props:[OT.add({Body:t=>{var e;return(e=vme(t,t.node))!==null&&e!==void 0?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except |finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":xH({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":xH({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":xH({closing:"]"}),"String FormatString":()=>null,Script:t=>{if(t.pos+/\s*/.exec(t.textAfter)[0].length>=t.node.to){let e=null;for(let o=t.node,f=o.to;o=o.lastChild,!(!o||o.to!=f);)o.type.name=="Body"&&(e=o);if(e){let o=vme(t,e);if(o!=null)return o}}return t.continue()}}),gS.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":bce,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function yme(){return new gT(Die,[Die.data.of({autocomplete:nPe}),Die.data.of({autocomplete:iPe})])}const aPe="#e5c07b",bme="#e06c75",sPe="#56b6c2",lPe="#ffffff",wH="#abb2bf",Ase="#7d8799",cPe="#61afef",uPe="#98c379",xme="#d19a66",fPe="#c678dd",dPe="#21252b",_me="#2c313a",wme="#282c34",Bie="#353a42",hPe="#3E4451",Ome="#528bff",pPe=Oa.theme({"&":{color:wH,backgroundColor:wme},".cm-content":{caretColor:Ome},".cm-cursor, .cm-dropCursor":{borderLeftColor:Ome},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:hPe},".cm-panels":{backgroundColor:dPe,color:wH},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:wme,color:Ase,border:"none"},".cm-activeLineGutter":{backgroundColor:_me},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Bie},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Bie,borderBottomColor:Bie},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:_me,color:wH}}},{dark:!0}),mPe=bD.define([{tag:Gn.keyword,color:fPe},{tag:[Gn.name,Gn.deleted,Gn.character,Gn.propertyName,Gn.macroName],color:bme},{tag:[Gn.function(Gn.variableName),Gn.labelName],color:cPe},{tag:[Gn.color,Gn.constant(Gn.name),Gn.standard(Gn.name)],color:xme},{tag:[Gn.definition(Gn.name),Gn.separator],color:wH},{tag:[Gn.typeName,Gn.className,Gn.number,Gn.changed,Gn.annotation,Gn.modifier,Gn.self,Gn.namespace],color:aPe},{tag:[Gn.operator,Gn.operatorKeyword,Gn.url,Gn.escape,Gn.regexp,Gn.link,Gn.special(Gn.string)],color:sPe},{tag:[Gn.meta,Gn.comment],color:Ase},{tag:Gn.strong,fontWeight:"bold"},{tag:Gn.emphasis,fontStyle:"italic"},{tag:Gn.strikethrough,textDecoration:"line-through"},{tag:Gn.link,color:Ase,textDecoration:"underline"},{tag:Gn.heading,fontWeight:"bold",color:bme},{tag:[Gn.atom,Gn.bool,Gn.special(Gn.variableName)],color:xme},{tag:[Gn.processingInstruction,Gn.string,Gn.inserted],color:uPe},{tag:Gn.invalid,color:lPe}]),mM=[pPe,sbe(mPe)];function ti(t,e){return o=>Object.keys(t).reduce((f,P)=>{const l=typeof t[P]=="object"&&t[P]!=null&&!Array.isArray(t[P])?t[P]:{type:t[P]};return o&&P in o?f[P]={...l,default:o[P]}:f[P]=l,e&&!f[P].source&&(f[P].source=e),f},{})}const xs=ti({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),ou=typeof window<"u",Nce=ou&&"IntersectionObserver"in window,gPe=ou&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Sme(t,e,o){vPe(t,e),e.set(t,o)}function vPe(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function yPe(t,e,o){return t.set(Cxe(t,e),o),o}function qk(t,e){return t.get(Cxe(t,e))}function Cxe(t,e,o){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:o;throw new TypeError("Private element is not present on this object")}function Axe(t,e,o){const f=e.length-1;if(f<0)return t===void 0?o:t;for(let P=0;PyS(t[f],e[f]))}function yT(t,e,o){return t==null||!e||typeof e!="string"?o:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),Axe(t,e.split("."),o))}function y1(t,e,o){if(e===!0)return t===void 0?o:t;if(e==null||typeof e=="boolean")return o;if(t!==Object(t)){if(typeof e!="function")return o;const P=e(t,o);return typeof P>"u"?o:P}if(typeof e=="string")return yT(t,e,o);if(Array.isArray(e))return Axe(t,e,o);if(typeof e!="function")return o;const f=e(t,o);return typeof f>"u"?o:f}function lT(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(o,f)=>e+f)}function Ma(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(t==null||t===""))return isNaN(+t)?String(t):isFinite(+t)?`${Number(t)}${e}`:void 0}function Mse(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function $ce(t){if(t&&"$el"in t){const e=t.$el;return(e==null?void 0:e.nodeType)===Node.TEXT_NODE?e.nextElementSibling:e}return t}const kme=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Ese=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function zie(t,e){return e.every(o=>t.hasOwnProperty(o))}function Vce(t,e){const o={},f=new Set(Object.keys(t));for(const P of e)f.has(P)&&(o[P]=t[P]);return o}function Tme(t,e,o){const f=Object.create(null),P=Object.create(null);for(const d in t)e.some(l=>l instanceof RegExp?l.test(d):l===d)&&!(o!=null&&o.some(l=>l===d))?f[d]=t[d]:P[d]=t[d];return[f,P]}function __(t,e){const o={...t};return e.forEach(f=>delete o[f]),o}function bPe(t,e){const o={};return e.forEach(f=>o[f]=t[f]),o}const Mxe=/^on[^a-z]/,uq=t=>Mxe.test(t),xPe=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],_Pe=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function wPe(t){return t.isComposing&&_Pe.includes(t.key)}function fq(t){const[e,o]=Tme(t,[Mxe]),f=__(e,xPe),[P,d]=Tme(o,["class","style","id",/^data-/]);return Object.assign(P,e),Object.assign(d,f),[P,d]}function fm(t){return t==null?[]:Array.isArray(t)?t:[t]}function OPe(t,e){let o=0;const f=function(){for(var P=arguments.length,d=new Array(P),l=0;lt(...d),wa(e))};return f.clear=()=>{clearTimeout(o)},f.immediate=t,f}function Qg(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(o,t))}function Cme(t){const e=t.toString().trim();return e.includes(".")?e.length-e.indexOf(".")-1:0}function Ame(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function Mme(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function SPe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let f=0;for(;f0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const f={};for(const P in t)f[P]=t[P];for(const P in e){const d=t[P],l=e[P];if(Mse(d)&&Mse(l)){f[P]=Ug(d,l,o);continue}if(Array.isArray(d)&&Array.isArray(l)&&o){f[P]=o(d,l);continue}f[P]=l}return f}function Exe(t){return t.map(e=>e.type===ya?Exe(e.children):e).flat()}function fT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(fT.cache.has(t))return fT.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return fT.cache.set(t,e),e}fT.cache=new Map;function jA(t,e){if(!e||typeof e!="object")return[];if(Array.isArray(e))return e.map(o=>jA(t,o)).flat(1);if(e.suspense)return jA(t,e.ssContent);if(Array.isArray(e.children))return e.children.map(o=>jA(t,o)).flat(1);if(e.component){if(Object.getOwnPropertySymbols(e.component.provides).includes(t))return[e.component];if(e.component.subTree)return jA(t,e.component.subTree).flat(1)}return[]}var WQ=new WeakMap,EA=new WeakMap;class kPe{constructor(e){Sme(this,WQ,[]),Sme(this,EA,0),this.size=e}push(e){qk(WQ,this)[qk(EA,this)]=e,yPe(EA,this,(qk(EA,this)+1)%this.size)}values(){return qk(WQ,this).slice(qk(EA,this)).concat(qk(WQ,this).slice(0,qk(EA,this)))}}function Uce(t){const e=lm({}),o=jn(t);return kp(()=>{for(const f in o.value)e[f]=o.value[f]},{flush:"sync"}),CM(e)}function lZ(t,e){return t.includes(e)}function Pxe(t){return t[2].toLowerCase()+t.slice(3)}const rg=()=>[Function,Array];function Eme(t,e){return e="on"+v_(e),!!(t[e]||t[`${e}Once`]||t[`${e}Capture`]||t[`${e}OnceCapture`]||t[`${e}CaptureOnce`])}function Rxe(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f1&&arguments[1]!==void 0?arguments[1]:!0;const o=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(f=>`${f}${e?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...t.querySelectorAll(o)]}function Lxe(t,e,o){let f,P=t.indexOf(document.activeElement);const d=e==="next"?1:-1;do P+=d,f=t[P];while((!f||f.offsetParent==null||!((o==null?void 0:o(f))??!0))&&P=0);return f}function cZ(t,e){var f,P,d,l;const o=qI(t);if(!e)(t===document.activeElement||!t.contains(document.activeElement))&&((f=o[0])==null||f.focus());else if(e==="first")(P=o[0])==null||P.focus();else if(e==="last")(d=o.at(-1))==null||d.focus();else if(typeof e=="number")(l=o[e])==null||l.focus();else{const n=Lxe(o,e);n?n.focus():cZ(t,e==="next"?"first":"last")}}function YQ(t){return t==null||typeof t=="string"&&t.trim()===""}function Ixe(){}function gM(t,e){if(!(ou&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${e})`)))return null;try{return!!t&&t.matches(e)}catch{return null}}function dq(t){return t.some(e=>iM(e)?e.type===k0?!1:e.type!==ya||dq(e.children):!0)?t:null}function TPe(t,e){if(!ou||t===0)return e(),()=>{};const o=window.setTimeout(e,t);return()=>window.clearTimeout(o)}function Pme(t,e){const o=Ai();return kp(()=>{o.value=t()},{flush:"sync",...e}),TM(o)}function CPe(t,e){const o=t.clientX,f=t.clientY,P=e.getBoundingClientRect(),d=P.left,l=P.top,n=P.right,c=P.bottom;return o>=d&&o<=n&&f>=l&&f<=c}function Pse(){const t=Ai(),e=o=>{t.value=o};return Object.defineProperty(e,"value",{enumerable:!0,get:()=>t.value,set:o=>t.value=o}),Object.defineProperty(e,"el",{enumerable:!0,get:()=>$ce(t.value)}),e}const Dxe=["top","bottom"],APe=["start","end","left","right"];function Rse(t,e){let[o,f]=t.split(" ");return f||(f=lZ(Dxe,o)?"start":lZ(APe,o)?"top":"center"),{side:Lse(o,e),align:Lse(f,e)}}function Lse(t,e){return t==="start"?e?"right":"left":t==="end"?e?"left":"right":t}function Fie(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function Nie(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function Rme(t){return{side:t.align,align:t.side}}function Lme(t){return lZ(Dxe,t.side)?"y":"x"}class dT{constructor(e){let{x:o,y:f,width:P,height:d}=e;this.x=o,this.y=f,this.width=P,this.height=d}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Ime(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function Bxe(t){return Array.isArray(t)?new dT({x:t[0],y:t[1],width:0,height:0}):t.getBoundingClientRect()}function jce(t){const e=t.getBoundingClientRect(),o=getComputedStyle(t),f=o.transform;if(f){let P,d,l,n,c;if(f.startsWith("matrix3d("))P=f.slice(9,-1).split(/, /),d=+P[0],l=+P[5],n=+P[12],c=+P[13];else if(f.startsWith("matrix("))P=f.slice(7,-1).split(/, /),d=+P[0],l=+P[3],n=+P[4],c=+P[5];else return new dT(e);const b=o.transformOrigin,i=e.x-n-(1-d)*parseFloat(b),O=e.y-c-(1-l)*parseFloat(b.slice(b.indexOf(" ")+1)),w=d?e.width/d:t.offsetWidth+1,y=l?e.height/l:t.offsetHeight+1;return new dT({x:i,y:O,width:w,height:y})}else return new dT(e)}function QA(t,e,o){if(typeof t.animate>"u")return{finished:Promise.resolve()};let f;try{f=t.animate(e,o)}catch{return{finished:Promise.resolve()}}return typeof f.finished>"u"&&(f.finished=new Promise(P=>{f.onfinish=()=>{P(f)}})),f}const OH=new WeakMap;function MPe(t,e){Object.keys(e).forEach(o=>{if(uq(o)){const f=Pxe(o),P=OH.get(t);if(e[o]==null)P==null||P.forEach(d=>{const[l,n]=d;l===f&&(t.removeEventListener(f,n),P.delete(d))});else if(!P||![...P].some(d=>d[0]===f&&d[1]===e[o])){t.addEventListener(f,e[o]);const d=P||new Set;d.add([f,e[o]]),OH.has(t)||OH.set(t,d)}}else e[o]==null?t.removeAttribute(o):t.setAttribute(o,e[o])})}function EPe(t,e){Object.keys(e).forEach(o=>{if(uq(o)){const f=Pxe(o),P=OH.get(t);P==null||P.forEach(d=>{const[l,n]=d;l===f&&(t.removeEventListener(f,n),P.delete(d))})}else t.removeAttribute(o)})}const PA=2.4,Dme=.2126729,Bme=.7151522,zme=.072175,PPe=.55,RPe=.58,LPe=.57,IPe=.62,XQ=.03,Fme=1.45,DPe=5e-4,BPe=1.25,zPe=1.25,Nme=.078,$me=12.82051282051282,GQ=.06,Vme=.001;function Ume(t,e){const o=(t.r/255)**PA,f=(t.g/255)**PA,P=(t.b/255)**PA,d=(e.r/255)**PA,l=(e.g/255)**PA,n=(e.b/255)**PA;let c=o*Dme+f*Bme+P*zme,b=d*Dme+l*Bme+n*zme;if(c<=XQ&&(c+=(XQ-c)**Fme),b<=XQ&&(b+=(XQ-b)**Fme),Math.abs(b-c)c){const O=(b**PPe-c**RPe)*BPe;i=O-Vme?0:O>-Nme?O-O*$me*GQ:O+GQ}return i*100}function FPe(t,e){e=Array.isArray(e)?e.slice(0,-1).map(o=>`'${o}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const uZ=.20689655172413793,NPe=t=>t>uZ**3?Math.cbrt(t):t/(3*uZ**2)+4/29,$Pe=t=>t>uZ?t**3:3*uZ**2*(t-4/29);function zxe(t){const e=NPe,o=e(t[1]);return[116*o-16,500*(e(t[0]/.95047)-o),200*(o-e(t[2]/1.08883))]}function Fxe(t){const e=$Pe,o=(t[0]+16)/116;return[e(o+t[1]/500)*.95047,e(o),e(o-t[2]/200)*1.08883]}const VPe=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],UPe=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,jPe=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],QPe=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function Nxe(t){const e=Array(3),o=UPe,f=VPe;for(let P=0;P<3;++P)e[P]=Math.round(Qg(o(f[P][0]*t[0]+f[P][1]*t[1]+f[P][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function Qce(t){let{r:e,g:o,b:f}=t;const P=[0,0,0],d=QPe,l=jPe;e=d(e/255),o=d(o/255),f=d(f/255);for(let n=0;n<3;++n)P[n]=l[n][0]*e+l[n][1]*o+l[n][2]*f;return P}function Ise(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function HPe(t){return Ise(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const jme=/^(?(?:rgb|hsl)a?)\((?.+)\)/,ZPe={rgb:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),rgba:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),hsl:(t,e,o,f)=>Qme({h:t,s:e,l:o,a:f}),hsla:(t,e,o,f)=>Qme({h:t,s:e,l:o,a:f}),hsv:(t,e,o,f)=>WI({h:t,s:e,v:o,a:f}),hsva:(t,e,o,f)=>WI({h:t,s:e,v:o,a:f})};function l_(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&jme.test(t)){const{groups:e}=t.match(jme),{fn:o,values:f}=e,P=f.split(/,\s*/).map(d=>d.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(d)/100:parseFloat(d));return ZPe[o](...P)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length),WPe(e)}else if(typeof t=="object"){if(zie(t,["r","g","b"]))return t;if(zie(t,["h","s","l"]))return WI($xe(t));if(zie(t,["h","s","v"]))return WI(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name} -Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function WI(t){const{h:e,s:o,v:f,a:P}=t,d=n=>{const c=(n+e/60)%6;return f-f*o*Math.max(Math.min(c,4-c,1),0)},l=[d(5),d(3),d(1)].map(n=>Math.round(n*255));return{r:l[0],g:l[1],b:l[2],a:P}}function Qme(t){return WI($xe(t))}function $xe(t){const{h:e,s:o,l:f,a:P}=t,d=f+o*Math.min(f,1-f),l=d===0?0:2-2*f/d;return{h:e,s:l,v:d,a:P}}function KQ(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function qPe(t){let{r:e,g:o,b:f,a:P}=t;return`#${[KQ(e),KQ(o),KQ(f),P!==void 0?KQ(Math.round(P*255)):""].join("")}`}function WPe(t){t=YPe(t);let[e,o,f,P]=SPe(t,2).map(d=>parseInt(d,16));return P=P===void 0?P:P/255,{r:e,g:o,b:f,a:P}}function YPe(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=Ame(Ame(t,6),8,"F")),t}function XPe(t,e){const o=zxe(Qce(t));return o[0]=o[0]+e*10,Nxe(Fxe(o))}function GPe(t,e){const o=zxe(Qce(t));return o[0]=o[0]-e*10,Nxe(Fxe(o))}function KPe(t){const e=l_(t);return Qce(e)[1]}function Vxe(t){const e=Math.abs(Ume(l_(0),l_(t)));return Math.abs(Ume(l_(16777215),l_(t)))>Math.min(e,50)?"#fff":"#000"}function ph(t,e){const o=Zle();if(!o)throw new Error(`[Vuetify] ${t} ${e||"must be called from inside a setup function"}`);return o}function w_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const e=ph(t).type;return fT((e==null?void 0:e.aliasName)||(e==null?void 0:e.name))}let Uxe=0,SH=new WeakMap;function Vv(){const t=ph("getUid");if(SH.has(t))return SH.get(t);{const e=Uxe++;return SH.set(t,e),e}}Vv.reset=()=>{Uxe=0,SH=new WeakMap};function JPe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ph("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const vM=Symbol.for("vuetify:defaults");function e9e(t){return ei(t)}function Hce(){const t=vl(vM);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function ib(t,e){const o=Hce(),f=ei(t),P=jn(()=>{if(wa(e==null?void 0:e.disabled))return o.value;const l=wa(e==null?void 0:e.scoped),n=wa(e==null?void 0:e.reset),c=wa(e==null?void 0:e.root);if(f.value==null&&!(l||n||c))return o.value;let b=Ug(f.value,{prev:o.value});if(l)return b;if(n||c){const i=Number(n||1/0);for(let O=0;O<=i&&!(!b||!("prev"in b));O++)b=b.prev;return b&&typeof c=="string"&&c in b&&(b=Ug(Ug(b,{prev:b}),b[c])),b}return b.prev?Ug(b.prev,b):b});return gf(vM,P),P}function t9e(t,e){var o,f;return typeof((o=t.props)==null?void 0:o[e])<"u"||typeof((f=t.props)==null?void 0:f[fT(e)])<"u"}function n9e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hce();const f=ph("useDefaults");if(e=e??f.type.name??f.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const P=jn(()=>{var c;return(c=o.value)==null?void 0:c[t._as??e]}),d=new Proxy(t,{get(c,b){var O,w,y,p,a,u,h;const i=Reflect.get(c,b);return b==="class"||b==="style"?[(O=P.value)==null?void 0:O[b],i].filter(m=>m!=null):typeof b=="string"&&!t9e(f.vnode,b)?((w=P.value)==null?void 0:w[b])!==void 0?(y=P.value)==null?void 0:y[b]:((a=(p=o.value)==null?void 0:p.global)==null?void 0:a[b])!==void 0?(h=(u=o.value)==null?void 0:u.global)==null?void 0:h[b]:i:i}}),l=Ai();kp(()=>{if(P.value){const c=Object.entries(P.value).filter(b=>{let[i]=b;return i.startsWith(i[0].toUpperCase())});l.value=c.length?Object.fromEntries(c):void 0}else l.value=void 0});function n(){const c=JPe(vM,f);gf(vM,jn(()=>l.value?Ug((c==null?void 0:c.value)??{},l.value):c==null?void 0:c.value))}return{props:d,provideSubDefaults:n}}function PM(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=ti(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(f){return Vce(f,e)},t.props._as=String,t.setup=function(f,P){const d=Hce();if(!d.value)return t._setup(f,P);const{props:l,provideSubDefaults:n}=n9e(f,f._as??t.name,d),c=t._setup(l,P);return n(),c}}return t}function ta(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?PM:Hg)(e)}function r9e(t,e){return e.props=t,e}function hq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",o=arguments.length>2?arguments[2]:void 0;return ta()({name:o??v_(rb(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...xs()},setup(f,P){let{slots:d}=P;return()=>{var l;return w1(f.tag,{class:[t,f.class],style:f.style},(l=d.default)==null?void 0:l.call(d))}}})}function jxe(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const fZ="cubic-bezier(0.4, 0, 0.2, 1)",o9e="cubic-bezier(0.0, 0, 0.2, 1)",i9e="cubic-bezier(0.4, 0, 1, 1)";function Hme(t,e,o){return Object.keys(t).filter(f=>uq(f)&&f.endsWith(e)).reduce((f,P)=>(f[P.slice(0,-e.length)]=d=>t[P](d,o(d)),f),{})}function Qxe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(e?a9e(t):Zce(t))return t;t=t.parentElement}return document.scrollingElement}function dZ(t,e){const o=[];if(e&&t&&!e.contains(t))return o;for(;t&&(Zce(t)&&o.push(t),t!==e);)t=t.parentElement;return o}function Zce(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}function a9e(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["scroll","auto"].includes(e.overflowY)}function s9e(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function Ca(t){const e=ph("useRender");e.render=t}function fS(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const o=Pse(),f=ei();if(ou){const P=new ResizeObserver(d=>{t==null||t(d,P),d.length&&(e==="content"?f.value=d[0].contentRect:f.value=d[0].target.getBoundingClientRect())});dm(()=>{P.disconnect()}),Ni(()=>o.el,(d,l)=>{l&&(P.unobserve(l),f.value=void 0),d&&P.observe(d)},{flush:"post"})}return{resizeRef:o,contentRect:TM(f)}}const YI=Symbol.for("vuetify:layout"),Hxe=Symbol.for("vuetify:layout-item"),Zme=1e3,l9e=ti({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),qce=ti({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function Zxe(){const t=vl(YI);if(!t)throw new Error("[Vuetify] Could not find injected layout");return{layoutIsReady:lc(),getLayoutItem:t.getLayoutItem,mainRect:t.mainRect,mainStyles:t.mainStyles}}function Wce(t){const e=vl(YI);if(!e)throw new Error("[Vuetify] Could not find injected layout");const o=t.id??`layout-item-${Vv()}`,f=ph("useLayoutItem");gf(Hxe,{id:o});const P=Ai(!1);Ble(()=>P.value=!0),Dle(()=>P.value=!1);const d=lc(),{layoutItemStyles:l,layoutItemScrimStyles:n}=e.register(f,{...t,active:jn(()=>P.value?!1:t.active.value),id:o});return dm(()=>e.unregister(o)),{layoutItemStyles:l,layoutRect:e.layoutRect,layoutItemScrimStyles:n,layoutIsReady:d}}const c9e=(t,e,o,f)=>{let P={top:0,left:0,right:0,bottom:0};const d=[{id:"",layer:{...P}}];for(const l of t){const n=e.get(l),c=o.get(l),b=f.get(l);if(!n||!c||!b)continue;const i={...P,[n.value]:parseInt(P[n.value],10)+(b.value?parseInt(c.value,10):0)};d.push({id:l,layer:i}),P=i}return d};function u9e(t){const e=vl(YI,null),o=jn(()=>e?e.rootZIndex.value-100:Zme),f=ei([]),P=lm(new Map),d=lm(new Map),l=lm(new Map),n=lm(new Map),c=lm(new Map),{resizeRef:b,contentRect:i}=fS(),O=Pme(()=>{const S=[...new Set([...l.values()].map(x=>x.value))].sort((x,R)=>x-R),A=[];for(const x of S){const R=f.value.filter(M=>{var T;return((T=l.get(M))==null?void 0:T.value)===x});A.push(...R)}return c9e(A,P,d,n)}),w=jn(()=>!Array.from(c.values()).some(S=>S.value)),y=jn(()=>O.value[O.value.length-1].layer),p=jn(()=>({"--v-layout-left":Ma(y.value.left),"--v-layout-right":Ma(y.value.right),"--v-layout-top":Ma(y.value.top),"--v-layout-bottom":Ma(y.value.bottom),...w.value?void 0:{transition:"none"}})),a=Pme(()=>O.value.slice(1).map((S,A)=>{let{id:x}=S;const{layer:R}=O.value[A],M=d.get(x),T=P.get(x);return{id:x,...R,size:Number(M.value),position:T.value}})),u=S=>a.value.find(A=>A.id===S),h=ph("createLayout"),m=lc();gf(YI,{register:(S,A)=>{let{id:x,order:R,position:M,layoutSize:T,elementSize:E,active:C,disableTransitions:L,absolute:D}=A;l.set(x,R),P.set(x,M),d.set(x,T),n.set(x,C),L&&c.set(x,L);const I=jA(Hxe,h==null?void 0:h.vnode).indexOf(S);I>-1?f.value.splice(I,0,x):f.value.push(x);const z=jn(()=>a.value.findIndex(U=>U.id===x)),$=jn(()=>o.value+O.value.length*2-z.value*2),Q=jn(()=>{const U=M.value==="left"||M.value==="right",X=M.value==="right",te=M.value==="bottom",W=E.value??T.value,K=W===0?"%":"px",oe={[M.value]:0,zIndex:$.value,transform:`translate${U?"X":"Y"}(${(C.value?0:-(W===0?100:W))*(X||te?-1:1)}${K})`,position:D.value||o.value!==Zme?"absolute":"fixed",...w.value?void 0:{transition:"none"}};if(z.value<0)throw new Error(`Layout item "${x}" is missing`);const q=a.value[z.value];if(!q)throw new Error(`[Vuetify] Could not find layout item "${x}"`);return{...oe,height:U?`calc(100% - ${q.top}px - ${q.bottom}px)`:E.value?`${E.value}px`:void 0,left:X?void 0:`${q.left}px`,right:X?`${q.right}px`:void 0,top:M.value!=="bottom"?`${q.top}px`:void 0,bottom:M.value!=="top"?`${q.bottom}px`:void 0,width:U?E.value?`${E.value}px`:void 0:`calc(100% - ${q.left}px - ${q.right}px)`}}),j=jn(()=>({zIndex:$.value-1}));return{layoutItemStyles:Q,layoutItemScrimStyles:j,zIndex:$}},unregister:S=>{l.delete(S),P.delete(S),d.delete(S),n.delete(S),c.delete(S),f.value=f.value.filter(A=>A!==S)},mainRect:y,mainStyles:p,getLayoutItem:u,items:a,layoutRect:i,rootZIndex:o,layoutIsReady:m});const v=jn(()=>["v-layout",{"v-layout--full-height":t.fullHeight}]),_=jn(()=>({zIndex:e?o.value:void 0,position:e?"relative":void 0,overflow:e?"hidden":void 0}));return{layoutClasses:v,layoutStyles:_,getLayoutItem:u,items:a,layoutRect:i,layoutIsReady:m,layoutRef:b}}function x1(t,e){let o;function f(){o=cD(),o.run(()=>e.length?e(()=>{o==null||o.stop(),f()}):e())}Ni(t,P=>{P&&!o?f():P||(o==null||o.stop(),o=void 0)},{immediate:!0}),ig(()=>{o==null||o.stop()})}function Al(t,e,o){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:O=>O,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:O=>O;const d=ph("useProxiedModel"),l=ei(t[e]!==void 0?t[e]:o),n=fT(e),b=jn(n!==e?()=>{var O,w,y,p;return t[e],!!(((O=d.vnode.props)!=null&&O.hasOwnProperty(e)||(w=d.vnode.props)!=null&&w.hasOwnProperty(n))&&((y=d.vnode.props)!=null&&y.hasOwnProperty(`onUpdate:${e}`)||(p=d.vnode.props)!=null&&p.hasOwnProperty(`onUpdate:${n}`)))}:()=>{var O,w;return t[e],!!((O=d.vnode.props)!=null&&O.hasOwnProperty(e)&&((w=d.vnode.props)!=null&&w.hasOwnProperty(`onUpdate:${e}`)))});x1(()=>!b.value,()=>{Ni(()=>t[e],O=>{l.value=O})});const i=jn({get(){const O=t[e];return f(b.value?O:l.value)},set(O){const w=P(O),y=As(b.value?t[e]:l.value);y===w||f(y)===O||(l.value=w,d==null||d.emit(`update:${e}`,w))}});return Object.defineProperty(i,"externalValue",{get:()=>b.value?t[e]:l.value}),i}const f9e={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},qme="$vuetify.",Wme=(t,e)=>t.replace(/\{(\d+)\}/g,(o,f)=>String(e[+f])),qxe=(t,e,o)=>function(f){for(var P=arguments.length,d=new Array(P>1?P-1:0),l=1;lnew Intl.NumberFormat([t.value,e.value],f).format(o)}function $ie(t,e,o){const f=Al(t,e,t[e]??o.value);return f.value=t[e]??o.value,Ni(o,P=>{t[e]==null&&(f.value=o.value)}),f}function Yxe(t){return e=>{const o=$ie(e,"locale",t.current),f=$ie(e,"fallback",t.fallback),P=$ie(e,"messages",t.messages);return{name:"vuetify",current:o,fallback:f,messages:P,t:qxe(o,f,P),n:Wxe(o,f),provide:Yxe({current:o,fallback:f,messages:P})}}}function d9e(t){const e=Ai((t==null?void 0:t.locale)??"en"),o=Ai((t==null?void 0:t.fallback)??"en"),f=ei({en:f9e,...t==null?void 0:t.messages});return{name:"vuetify",current:e,fallback:o,messages:f,t:qxe(e,o,f),n:Wxe(e,o),provide:Yxe({current:e,fallback:o,messages:f})}}const hZ=Symbol.for("vuetify:locale");function h9e(t){return t.name!=null}function p9e(t){const e=t!=null&&t.adapter&&h9e(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:d9e(t),o=g9e(e,t);return{...e,...o}}function Sx(){const t=vl(hZ);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function m9e(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function g9e(t,e){const o=ei((e==null?void 0:e.rtl)??m9e()),f=jn(()=>o.value[t.current.value]??!1);return{isRtl:f,rtl:o,rtlClasses:jn(()=>`v-locale--is-${f.value?"rtl":"ltr"}`)}}function qg(){const t=vl(hZ);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const pZ=Symbol.for("vuetify:theme"),Ff=ti({theme:String},"theme");function Yme(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function v9e(){var f,P;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yme();const e=Yme();if(!t)return{...e,isDisabled:!0};const o={};for(const[d,l]of Object.entries(t.themes??{})){const n=l.dark||d==="dark"?(f=e.themes)==null?void 0:f.dark:(P=e.themes)==null?void 0:P.light;o[d]=Ug(n,l)}return Ug(e,{...t,themes:o})}function y9e(t){const e=v9e(t),o=ei(e.defaultTheme),f=ei(e.themes),P=jn(()=>{const i={};for(const[O,w]of Object.entries(f.value)){const y=i[O]={...w,colors:{...w.colors}};if(e.variations)for(const p of e.variations.colors){const a=y.colors[p];if(a)for(const u of["lighten","darken"]){const h=u==="lighten"?XPe:GPe;for(const m of lT(e.variations[u],1))y.colors[`${p}-${u}-${m}`]=qPe(h(l_(a),m))}}for(const p of Object.keys(y.colors)){if(/^on-[a-z]/.test(p)||y.colors[`on-${p}`])continue;const a=`on-${p}`,u=l_(y.colors[p]);y.colors[a]=Vxe(u)}}return i}),d=jn(()=>P.value[o.value]),l=jn(()=>{var p;const i=[];(p=d.value)!=null&&p.dark&&Wk(i,":root",["color-scheme: dark"]),Wk(i,":root",Xme(d.value));for(const[a,u]of Object.entries(P.value))Wk(i,`.v-theme--${a}`,[`color-scheme: ${u.dark?"dark":"normal"}`,...Xme(u)]);const O=[],w=[],y=new Set(Object.values(P.value).flatMap(a=>Object.keys(a.colors)));for(const a of y)/^on-[a-z]/.test(a)?Wk(w,`.${a}`,[`color: rgb(var(--v-theme-${a})) !important`]):(Wk(O,`.bg-${a}`,[`--v-theme-overlay-multiplier: var(--v-theme-${a}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${a})) !important`,`color: rgb(var(--v-theme-on-${a})) !important`]),Wk(w,`.text-${a}`,[`color: rgb(var(--v-theme-${a})) !important`]),Wk(w,`.border-${a}`,[`--v-border-color: var(--v-theme-${a})`]));return i.push(...O,...w),i.map((a,u)=>u===0?a:` ${a}`).join("")});function n(){return{style:[{children:l.value,id:"vuetify-theme-stylesheet",nonce:e.cspNonce||!1}]}}function c(i){if(e.isDisabled)return;const O=i._context.provides.usehead;if(O)if(O.push){const w=O.push(n);ou&&Ni(l,()=>{w.patch(n)})}else ou?(O.addHeadObjs(jn(n)),kp(()=>O.updateDOM())):O.addHeadObjs(n());else{let y=function(){if(typeof document<"u"&&!w){const p=document.createElement("style");p.type="text/css",p.id="vuetify-theme-stylesheet",e.cspNonce&&p.setAttribute("nonce",e.cspNonce),w=p,document.head.appendChild(w)}w&&(w.innerHTML=l.value)},w=ou?document.getElementById("vuetify-theme-stylesheet"):null;ou?Ni(l,y,{immediate:!0}):y()}}const b=jn(()=>e.isDisabled?void 0:`v-theme--${o.value}`);return{install:c,isDisabled:e.isDisabled,name:o,themes:f,current:d,computedThemes:P,themeClasses:b,styles:l,global:{name:o,current:d}}}function Md(t){ph("provideTheme");const e=vl(pZ,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=jn(()=>t.theme??e.name.value),f=jn(()=>e.themes.value[o.value]),P=jn(()=>e.isDisabled?void 0:`v-theme--${o.value}`),d={...e,name:o,current:f,themeClasses:P};return gf(pZ,d),d}function Wk(t,e,o){t.push(`${e} { +`,{label:"if",detail:"block",type:"keyword"}),Hd("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Hd("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Hd("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Hd("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],aPe=Mce(Cxe,oq(oPe.concat(iPe)));function yme(t,e){let o=t.baseIndentFor(e),f=t.lineAt(t.pos,-1),P=f.from+f.text.length;return/^\s*($|#)/.test(f.text)&&t.node.too?null:o+t.unit}const Die=cS.define({name:"python",parser:tPe.configure({props:[OT.add({Body:t=>{var e;return(e=yme(t,t.node))!==null&&e!==void 0?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except |finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":xH({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":xH({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":xH({closing:"]"}),"String FormatString":()=>null,Script:t=>{if(t.pos+/\s*/.exec(t.textAfter)[0].length>=t.node.to){let e=null;for(let o=t.node,f=o.to;o=o.lastChild,!(!o||o.to!=f);)o.type.name=="Body"&&(e=o);if(e){let o=yme(t,e);if(o!=null)return o}}return t.continue()}}),vS.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":bce,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function bme(){return new gT(Die,[Die.data.of({autocomplete:rPe}),Die.data.of({autocomplete:aPe})])}const sPe="#e5c07b",xme="#e06c75",lPe="#56b6c2",cPe="#ffffff",wH="#abb2bf",Ase="#7d8799",uPe="#61afef",fPe="#98c379",_me="#d19a66",dPe="#c678dd",hPe="#21252b",wme="#2c313a",Ome="#282c34",Bie="#353a42",pPe="#3E4451",Sme="#528bff",mPe=Oa.theme({"&":{color:wH,backgroundColor:Ome},".cm-content":{caretColor:Sme},".cm-cursor, .cm-dropCursor":{borderLeftColor:Sme},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:pPe},".cm-panels":{backgroundColor:hPe,color:wH},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Ome,color:Ase,border:"none"},".cm-activeLineGutter":{backgroundColor:wme},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Bie},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Bie,borderBottomColor:Bie},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:wme,color:wH}}},{dark:!0}),gPe=xD.define([{tag:Gn.keyword,color:dPe},{tag:[Gn.name,Gn.deleted,Gn.character,Gn.propertyName,Gn.macroName],color:xme},{tag:[Gn.function(Gn.variableName),Gn.labelName],color:uPe},{tag:[Gn.color,Gn.constant(Gn.name),Gn.standard(Gn.name)],color:_me},{tag:[Gn.definition(Gn.name),Gn.separator],color:wH},{tag:[Gn.typeName,Gn.className,Gn.number,Gn.changed,Gn.annotation,Gn.modifier,Gn.self,Gn.namespace],color:sPe},{tag:[Gn.operator,Gn.operatorKeyword,Gn.url,Gn.escape,Gn.regexp,Gn.link,Gn.special(Gn.string)],color:lPe},{tag:[Gn.meta,Gn.comment],color:Ase},{tag:Gn.strong,fontWeight:"bold"},{tag:Gn.emphasis,fontStyle:"italic"},{tag:Gn.strikethrough,textDecoration:"line-through"},{tag:Gn.link,color:Ase,textDecoration:"underline"},{tag:Gn.heading,fontWeight:"bold",color:xme},{tag:[Gn.atom,Gn.bool,Gn.special(Gn.variableName)],color:_me},{tag:[Gn.processingInstruction,Gn.string,Gn.inserted],color:fPe},{tag:Gn.invalid,color:cPe}]),gM=[mPe,lbe(gPe)];function ei(t,e){return o=>Object.keys(t).reduce((f,P)=>{const l=typeof t[P]=="object"&&t[P]!=null&&!Array.isArray(t[P])?t[P]:{type:t[P]};return o&&P in o?f[P]={...l,default:o[P]}:f[P]=l,e&&!f[P].source&&(f[P].source=e),f},{})}const ys=ei({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),ou=typeof window<"u",Nce=ou&&"IntersectionObserver"in window,vPe=ou&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function kme(t,e,o){yPe(t,e),e.set(t,o)}function yPe(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bPe(t,e,o){return t.set(Axe(t,e),o),o}function Wk(t,e){return t.get(Axe(t,e))}function Axe(t,e,o){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:o;throw new TypeError("Private element is not present on this object")}function Mxe(t,e,o){const f=e.length-1;if(f<0)return t===void 0?o:t;for(let P=0;PbS(t[f],e[f]))}function yT(t,e,o){return t==null||!e||typeof e!="string"?o:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),Mxe(t,e.split("."),o))}function y1(t,e,o){if(e===!0)return t===void 0?o:t;if(e==null||typeof e=="boolean")return o;if(t!==Object(t)){if(typeof e!="function")return o;const P=e(t,o);return typeof P>"u"?o:P}if(typeof e=="string")return yT(t,e,o);if(Array.isArray(e))return Mxe(t,e,o);if(typeof e!="function")return o;const f=e(t,o);return typeof f>"u"?o:f}function X4(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(o,f)=>e+f)}function Ma(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(t==null||t===""))return isNaN(+t)?String(t):isFinite(+t)?`${Number(t)}${e}`:void 0}function Mse(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function $ce(t){if(t&&"$el"in t){const e=t.$el;return(e==null?void 0:e.nodeType)===Node.TEXT_NODE?e.nextElementSibling:e}return t}const Tme=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Ese=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function zie(t,e){return e.every(o=>t.hasOwnProperty(o))}function Vce(t,e){const o={},f=new Set(Object.keys(t));for(const P of e)f.has(P)&&(o[P]=t[P]);return o}function Cme(t,e,o){const f=Object.create(null),P=Object.create(null);for(const d in t)e.some(l=>l instanceof RegExp?l.test(d):l===d)&&!(o!=null&&o.some(l=>l===d))?f[d]=t[d]:P[d]=t[d];return[f,P]}function __(t,e){const o={...t};return e.forEach(f=>delete o[f]),o}function xPe(t,e){const o={};return e.forEach(f=>o[f]=t[f]),o}const Exe=/^on[^a-z]/,uq=t=>Exe.test(t),_Pe=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],wPe=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function OPe(t){return t.isComposing&&wPe.includes(t.key)}function fq(t){const[e,o]=Cme(t,[Exe]),f=__(e,_Pe),[P,d]=Cme(o,["class","style","id",/^data-/]);return Object.assign(P,e),Object.assign(d,f),[P,d]}function fm(t){return t==null?[]:Array.isArray(t)?t:[t]}function SPe(t,e){let o=0;const f=function(){for(var P=arguments.length,d=new Array(P),l=0;lt(...d),wa(e))};return f.clear=()=>{clearTimeout(o)},f.immediate=t,f}function rg(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(o,t))}function Ame(t){const e=t.toString().trim();return e.includes(".")?e.length-e.indexOf(".")-1:0}function Mme(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function Eme(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function kPe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let f=0;for(;f0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const f={};for(const P in t)f[P]=t[P];for(const P in e){const d=t[P],l=e[P];if(Mse(d)&&Mse(l)){f[P]=jg(d,l,o);continue}if(Array.isArray(d)&&Array.isArray(l)&&o){f[P]=o(d,l);continue}f[P]=l}return f}function Pxe(t){return t.map(e=>e.type===ma?Pxe(e.children):e).flat()}function fT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(fT.cache.has(t))return fT.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return fT.cache.set(t,e),e}fT.cache=new Map;function QA(t,e){if(!e||typeof e!="object")return[];if(Array.isArray(e))return e.map(o=>QA(t,o)).flat(1);if(e.suspense)return QA(t,e.ssContent);if(Array.isArray(e.children))return e.children.map(o=>QA(t,o)).flat(1);if(e.component){if(Object.getOwnPropertySymbols(e.component.provides).includes(t))return[e.component];if(e.component.subTree)return QA(t,e.component.subTree).flat(1)}return[]}var WQ=new WeakMap,PA=new WeakMap;class TPe{constructor(e){kme(this,WQ,[]),kme(this,PA,0),this.size=e}push(e){Wk(WQ,this)[Wk(PA,this)]=e,bPe(PA,this,(Wk(PA,this)+1)%this.size)}values(){return Wk(WQ,this).slice(Wk(PA,this)).concat(Wk(WQ,this).slice(0,Wk(PA,this)))}}function Uce(t){const e=lm({}),o=Un(t);return kp(()=>{for(const f in o.value)e[f]=o.value[f]},{flush:"sync"}),AM(e)}function lZ(t,e){return t.includes(e)}function Rxe(t){return t[2].toLowerCase()+t.slice(3)}const og=()=>[Function,Array];function Pme(t,e){return e="on"+v_(e),!!(t[e]||t[`${e}Once`]||t[`${e}Capture`]||t[`${e}OnceCapture`]||t[`${e}CaptureOnce`])}function Lxe(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f1&&arguments[1]!==void 0?arguments[1]:!0;const o=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(f=>`${f}${e?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...t.querySelectorAll(o)]}function Ixe(t,e,o){let f,P=t.indexOf(document.activeElement);const d=e==="next"?1:-1;do P+=d,f=t[P];while((!f||f.offsetParent==null||!((o==null?void 0:o(f))??!0))&&P=0);return f}function cZ(t,e){var f,P,d,l;const o=WI(t);if(!e)(t===document.activeElement||!t.contains(document.activeElement))&&((f=o[0])==null||f.focus());else if(e==="first")(P=o[0])==null||P.focus();else if(e==="last")(d=o.at(-1))==null||d.focus();else if(typeof e=="number")(l=o[e])==null||l.focus();else{const n=Ixe(o,e);n?n.focus():cZ(t,e==="next"?"first":"last")}}function YQ(t){return t==null||typeof t=="string"&&t.trim()===""}function Dxe(){}function vM(t,e){if(!(ou&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${e})`)))return null;try{return!!t&&t.matches(e)}catch{return null}}function dq(t){return t.some(e=>aM(e)?e.type===k0?!1:e.type!==ma||dq(e.children):!0)?t:null}function CPe(t,e){if(!ou||t===0)return e(),()=>{};const o=window.setTimeout(e,t);return()=>window.clearTimeout(o)}function Rme(t,e){const o=Ai();return kp(()=>{o.value=t()},{flush:"sync",...e}),CM(o)}function APe(t,e){const o=t.clientX,f=t.clientY,P=e.getBoundingClientRect(),d=P.left,l=P.top,n=P.right,c=P.bottom;return o>=d&&o<=n&&f>=l&&f<=c}function Pse(){const t=Ai(),e=o=>{t.value=o};return Object.defineProperty(e,"value",{enumerable:!0,get:()=>t.value,set:o=>t.value=o}),Object.defineProperty(e,"el",{enumerable:!0,get:()=>$ce(t.value)}),e}const Bxe=["top","bottom"],MPe=["start","end","left","right"];function Rse(t,e){let[o,f]=t.split(" ");return f||(f=lZ(Bxe,o)?"start":lZ(MPe,o)?"top":"center"),{side:Lse(o,e),align:Lse(f,e)}}function Lse(t,e){return t==="start"?e?"right":"left":t==="end"?e?"left":"right":t}function Fie(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function Nie(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function Lme(t){return{side:t.align,align:t.side}}function Ime(t){return lZ(Bxe,t.side)?"y":"x"}class dT{constructor(e){let{x:o,y:f,width:P,height:d}=e;this.x=o,this.y=f,this.width=P,this.height=d}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Dme(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function zxe(t){return Array.isArray(t)?new dT({x:t[0],y:t[1],width:0,height:0}):t.getBoundingClientRect()}function jce(t){const e=t.getBoundingClientRect(),o=getComputedStyle(t),f=o.transform;if(f){let P,d,l,n,c;if(f.startsWith("matrix3d("))P=f.slice(9,-1).split(/, /),d=+P[0],l=+P[5],n=+P[12],c=+P[13];else if(f.startsWith("matrix("))P=f.slice(7,-1).split(/, /),d=+P[0],l=+P[3],n=+P[4],c=+P[5];else return new dT(e);const b=o.transformOrigin,i=e.x-n-(1-d)*parseFloat(b),O=e.y-c-(1-l)*parseFloat(b.slice(b.indexOf(" ")+1)),w=d?e.width/d:t.offsetWidth+1,y=l?e.height/l:t.offsetHeight+1;return new dT({x:i,y:O,width:w,height:y})}else return new dT(e)}function HA(t,e,o){if(typeof t.animate>"u")return{finished:Promise.resolve()};let f;try{f=t.animate(e,o)}catch{return{finished:Promise.resolve()}}return typeof f.finished>"u"&&(f.finished=new Promise(P=>{f.onfinish=()=>{P(f)}})),f}const OH=new WeakMap;function EPe(t,e){Object.keys(e).forEach(o=>{if(uq(o)){const f=Rxe(o),P=OH.get(t);if(e[o]==null)P==null||P.forEach(d=>{const[l,n]=d;l===f&&(t.removeEventListener(f,n),P.delete(d))});else if(!P||![...P].some(d=>d[0]===f&&d[1]===e[o])){t.addEventListener(f,e[o]);const d=P||new Set;d.add([f,e[o]]),OH.has(t)||OH.set(t,d)}}else e[o]==null?t.removeAttribute(o):t.setAttribute(o,e[o])})}function PPe(t,e){Object.keys(e).forEach(o=>{if(uq(o)){const f=Rxe(o),P=OH.get(t);P==null||P.forEach(d=>{const[l,n]=d;l===f&&(t.removeEventListener(f,n),P.delete(d))})}else t.removeAttribute(o)})}const RA=2.4,Bme=.2126729,zme=.7151522,Fme=.072175,RPe=.55,LPe=.58,IPe=.57,DPe=.62,XQ=.03,Nme=1.45,BPe=5e-4,zPe=1.25,FPe=1.25,$me=.078,Vme=12.82051282051282,GQ=.06,Ume=.001;function jme(t,e){const o=(t.r/255)**RA,f=(t.g/255)**RA,P=(t.b/255)**RA,d=(e.r/255)**RA,l=(e.g/255)**RA,n=(e.b/255)**RA;let c=o*Bme+f*zme+P*Fme,b=d*Bme+l*zme+n*Fme;if(c<=XQ&&(c+=(XQ-c)**Nme),b<=XQ&&(b+=(XQ-b)**Nme),Math.abs(b-c)c){const O=(b**RPe-c**LPe)*zPe;i=O-Ume?0:O>-$me?O-O*Vme*GQ:O+GQ}return i*100}function NPe(t,e){e=Array.isArray(e)?e.slice(0,-1).map(o=>`'${o}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const uZ=.20689655172413793,$Pe=t=>t>uZ**3?Math.cbrt(t):t/(3*uZ**2)+4/29,VPe=t=>t>uZ?t**3:3*uZ**2*(t-4/29);function Fxe(t){const e=$Pe,o=e(t[1]);return[116*o-16,500*(e(t[0]/.95047)-o),200*(o-e(t[2]/1.08883))]}function Nxe(t){const e=VPe,o=(t[0]+16)/116;return[e(o+t[1]/500)*.95047,e(o),e(o-t[2]/200)*1.08883]}const UPe=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],jPe=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,QPe=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],HPe=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function $xe(t){const e=Array(3),o=jPe,f=UPe;for(let P=0;P<3;++P)e[P]=Math.round(rg(o(f[P][0]*t[0]+f[P][1]*t[1]+f[P][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function Qce(t){let{r:e,g:o,b:f}=t;const P=[0,0,0],d=HPe,l=QPe;e=d(e/255),o=d(o/255),f=d(f/255);for(let n=0;n<3;++n)P[n]=l[n][0]*e+l[n][1]*o+l[n][2]*f;return P}function Ise(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function ZPe(t){return Ise(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const Qme=/^(?(?:rgb|hsl)a?)\((?.+)\)/,qPe={rgb:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),rgba:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),hsl:(t,e,o,f)=>Hme({h:t,s:e,l:o,a:f}),hsla:(t,e,o,f)=>Hme({h:t,s:e,l:o,a:f}),hsv:(t,e,o,f)=>YI({h:t,s:e,v:o,a:f}),hsva:(t,e,o,f)=>YI({h:t,s:e,v:o,a:f})};function l_(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&Qme.test(t)){const{groups:e}=t.match(Qme),{fn:o,values:f}=e,P=f.split(/,\s*/).map(d=>d.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(d)/100:parseFloat(d));return qPe[o](...P)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length),YPe(e)}else if(typeof t=="object"){if(zie(t,["r","g","b"]))return t;if(zie(t,["h","s","l"]))return YI(Vxe(t));if(zie(t,["h","s","v"]))return YI(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name} +Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function YI(t){const{h:e,s:o,v:f,a:P}=t,d=n=>{const c=(n+e/60)%6;return f-f*o*Math.max(Math.min(c,4-c,1),0)},l=[d(5),d(3),d(1)].map(n=>Math.round(n*255));return{r:l[0],g:l[1],b:l[2],a:P}}function Hme(t){return YI(Vxe(t))}function Vxe(t){const{h:e,s:o,l:f,a:P}=t,d=f+o*Math.min(f,1-f),l=d===0?0:2-2*f/d;return{h:e,s:l,v:d,a:P}}function KQ(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function WPe(t){let{r:e,g:o,b:f,a:P}=t;return`#${[KQ(e),KQ(o),KQ(f),P!==void 0?KQ(Math.round(P*255)):""].join("")}`}function YPe(t){t=XPe(t);let[e,o,f,P]=kPe(t,2).map(d=>parseInt(d,16));return P=P===void 0?P:P/255,{r:e,g:o,b:f,a:P}}function XPe(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=Mme(Mme(t,6),8,"F")),t}function GPe(t,e){const o=Fxe(Qce(t));return o[0]=o[0]+e*10,$xe(Nxe(o))}function KPe(t,e){const o=Fxe(Qce(t));return o[0]=o[0]-e*10,$xe(Nxe(o))}function JPe(t){const e=l_(t);return Qce(e)[1]}function Uxe(t){const e=Math.abs(jme(l_(0),l_(t)));return Math.abs(jme(l_(16777215),l_(t)))>Math.min(e,50)?"#fff":"#000"}function ph(t,e){const o=Zle();if(!o)throw new Error(`[Vuetify] ${t} ${e||"must be called from inside a setup function"}`);return o}function w_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const e=ph(t).type;return fT((e==null?void 0:e.aliasName)||(e==null?void 0:e.name))}let jxe=0,SH=new WeakMap;function O1(){const t=ph("getUid");if(SH.has(t))return SH.get(t);{const e=jxe++;return SH.set(t,e),e}}O1.reset=()=>{jxe=0,SH=new WeakMap};function e9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ph("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const yM=Symbol.for("vuetify:defaults");function t9e(t){return ti(t)}function Hce(){const t=yl(yM);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function ib(t,e){const o=Hce(),f=ti(t),P=Un(()=>{if(wa(e==null?void 0:e.disabled))return o.value;const l=wa(e==null?void 0:e.scoped),n=wa(e==null?void 0:e.reset),c=wa(e==null?void 0:e.root);if(f.value==null&&!(l||n||c))return o.value;let b=jg(f.value,{prev:o.value});if(l)return b;if(n||c){const i=Number(n||1/0);for(let O=0;O<=i&&!(!b||!("prev"in b));O++)b=b.prev;return b&&typeof c=="string"&&c in b&&(b=jg(jg(b,{prev:b}),b[c])),b}return b.prev?jg(b.prev,b):b});return gf(yM,P),P}function n9e(t,e){var o,f;return typeof((o=t.props)==null?void 0:o[e])<"u"||typeof((f=t.props)==null?void 0:f[fT(e)])<"u"}function r9e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hce();const f=ph("useDefaults");if(e=e??f.type.name??f.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const P=Un(()=>{var c;return(c=o.value)==null?void 0:c[t._as??e]}),d=new Proxy(t,{get(c,b){var O,w,y,p,a,u,h;const i=Reflect.get(c,b);return b==="class"||b==="style"?[(O=P.value)==null?void 0:O[b],i].filter(m=>m!=null):typeof b=="string"&&!n9e(f.vnode,b)?((w=P.value)==null?void 0:w[b])!==void 0?(y=P.value)==null?void 0:y[b]:((a=(p=o.value)==null?void 0:p.global)==null?void 0:a[b])!==void 0?(h=(u=o.value)==null?void 0:u.global)==null?void 0:h[b]:i:i}}),l=Ai();kp(()=>{if(P.value){const c=Object.entries(P.value).filter(b=>{let[i]=b;return i.startsWith(i[0].toUpperCase())});l.value=c.length?Object.fromEntries(c):void 0}else l.value=void 0});function n(){const c=e9e(yM,f);gf(yM,Un(()=>l.value?jg((c==null?void 0:c.value)??{},l.value):c==null?void 0:c.value))}return{props:d,provideSubDefaults:n}}function RM(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=ei(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(f){return Vce(f,e)},t.props._as=String,t.setup=function(f,P){const d=Hce();if(!d.value)return t._setup(f,P);const{props:l,provideSubDefaults:n}=r9e(f,f._as??t.name,d),c=t._setup(l,P);return n(),c}}return t}function Ji(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?RM:Hg)(e)}function o9e(t,e){return e.props=t,e}function hq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",o=arguments.length>2?arguments[2]:void 0;return Ji()({name:o??v_(rb(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...ys()},setup(f,P){let{slots:d}=P;return()=>{var l;return w1(f.tag,{class:[t,f.class],style:f.style},(l=d.default)==null?void 0:l.call(d))}}})}function Qxe(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const fZ="cubic-bezier(0.4, 0, 0.2, 1)",i9e="cubic-bezier(0.0, 0, 0.2, 1)",a9e="cubic-bezier(0.4, 0, 1, 1)";function Zme(t,e,o){return Object.keys(t).filter(f=>uq(f)&&f.endsWith(e)).reduce((f,P)=>(f[P.slice(0,-e.length)]=d=>t[P](d,o(d)),f),{})}function Hxe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(e?s9e(t):Zce(t))return t;t=t.parentElement}return document.scrollingElement}function dZ(t,e){const o=[];if(e&&t&&!e.contains(t))return o;for(;t&&(Zce(t)&&o.push(t),t!==e);)t=t.parentElement;return o}function Zce(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}function s9e(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["scroll","auto"].includes(e.overflowY)}function l9e(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function ka(t){const e=ph("useRender");e.render=t}function dS(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const o=Pse(),f=ti();if(ou){const P=new ResizeObserver(d=>{t==null||t(d,P),d.length&&(e==="content"?f.value=d[0].contentRect:f.value=d[0].target.getBoundingClientRect())});dm(()=>{P.disconnect()}),Ni(()=>o.el,(d,l)=>{l&&(P.unobserve(l),f.value=void 0),d&&P.observe(d)},{flush:"post"})}return{resizeRef:o,contentRect:CM(f)}}const XI=Symbol.for("vuetify:layout"),Zxe=Symbol.for("vuetify:layout-item"),qme=1e3,c9e=ei({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),qce=ei({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function qxe(){const t=yl(XI);if(!t)throw new Error("[Vuetify] Could not find injected layout");return{layoutIsReady:lc(),getLayoutItem:t.getLayoutItem,mainRect:t.mainRect,mainStyles:t.mainStyles}}function Wce(t){const e=yl(XI);if(!e)throw new Error("[Vuetify] Could not find injected layout");const o=t.id??`layout-item-${O1()}`,f=ph("useLayoutItem");gf(Zxe,{id:o});const P=Ai(!1);Ble(()=>P.value=!0),Dle(()=>P.value=!1);const d=lc(),{layoutItemStyles:l,layoutItemScrimStyles:n}=e.register(f,{...t,active:Un(()=>P.value?!1:t.active.value),id:o});return dm(()=>e.unregister(o)),{layoutItemStyles:l,layoutRect:e.layoutRect,layoutItemScrimStyles:n,layoutIsReady:d}}const u9e=(t,e,o,f)=>{let P={top:0,left:0,right:0,bottom:0};const d=[{id:"",layer:{...P}}];for(const l of t){const n=e.get(l),c=o.get(l),b=f.get(l);if(!n||!c||!b)continue;const i={...P,[n.value]:parseInt(P[n.value],10)+(b.value?parseInt(c.value,10):0)};d.push({id:l,layer:i}),P=i}return d};function f9e(t){const e=yl(XI,null),o=Un(()=>e?e.rootZIndex.value-100:qme),f=ti([]),P=lm(new Map),d=lm(new Map),l=lm(new Map),n=lm(new Map),c=lm(new Map),{resizeRef:b,contentRect:i}=dS(),O=Rme(()=>{const S=[...new Set([...l.values()].map(x=>x.value))].sort((x,R)=>x-R),A=[];for(const x of S){const R=f.value.filter(M=>{var T;return((T=l.get(M))==null?void 0:T.value)===x});A.push(...R)}return u9e(A,P,d,n)}),w=Un(()=>!Array.from(c.values()).some(S=>S.value)),y=Un(()=>O.value[O.value.length-1].layer),p=Un(()=>({"--v-layout-left":Ma(y.value.left),"--v-layout-right":Ma(y.value.right),"--v-layout-top":Ma(y.value.top),"--v-layout-bottom":Ma(y.value.bottom),...w.value?void 0:{transition:"none"}})),a=Rme(()=>O.value.slice(1).map((S,A)=>{let{id:x}=S;const{layer:R}=O.value[A],M=d.get(x),T=P.get(x);return{id:x,...R,size:Number(M.value),position:T.value}})),u=S=>a.value.find(A=>A.id===S),h=ph("createLayout"),m=lc();gf(XI,{register:(S,A)=>{let{id:x,order:R,position:M,layoutSize:T,elementSize:E,active:C,disableTransitions:L,absolute:D}=A;l.set(x,R),P.set(x,M),d.set(x,T),n.set(x,C),L&&c.set(x,L);const I=QA(Zxe,h==null?void 0:h.vnode).indexOf(S);I>-1?f.value.splice(I,0,x):f.value.push(x);const z=Un(()=>a.value.findIndex(U=>U.id===x)),$=Un(()=>o.value+O.value.length*2-z.value*2),Q=Un(()=>{const U=M.value==="left"||M.value==="right",X=M.value==="right",te=M.value==="bottom",W=E.value??T.value,K=W===0?"%":"px",oe={[M.value]:0,zIndex:$.value,transform:`translate${U?"X":"Y"}(${(C.value?0:-(W===0?100:W))*(X||te?-1:1)}${K})`,position:D.value||o.value!==qme?"absolute":"fixed",...w.value?void 0:{transition:"none"}};if(z.value<0)throw new Error(`Layout item "${x}" is missing`);const q=a.value[z.value];if(!q)throw new Error(`[Vuetify] Could not find layout item "${x}"`);return{...oe,height:U?`calc(100% - ${q.top}px - ${q.bottom}px)`:E.value?`${E.value}px`:void 0,left:X?void 0:`${q.left}px`,right:X?`${q.right}px`:void 0,top:M.value!=="bottom"?`${q.top}px`:void 0,bottom:M.value!=="top"?`${q.bottom}px`:void 0,width:U?E.value?`${E.value}px`:void 0:`calc(100% - ${q.left}px - ${q.right}px)`}}),j=Un(()=>({zIndex:$.value-1}));return{layoutItemStyles:Q,layoutItemScrimStyles:j,zIndex:$}},unregister:S=>{l.delete(S),P.delete(S),d.delete(S),n.delete(S),c.delete(S),f.value=f.value.filter(A=>A!==S)},mainRect:y,mainStyles:p,getLayoutItem:u,items:a,layoutRect:i,rootZIndex:o,layoutIsReady:m});const v=Un(()=>["v-layout",{"v-layout--full-height":t.fullHeight}]),_=Un(()=>({zIndex:e?o.value:void 0,position:e?"relative":void 0,overflow:e?"hidden":void 0}));return{layoutClasses:v,layoutStyles:_,getLayoutItem:u,items:a,layoutRect:i,layoutIsReady:m,layoutRef:b}}function x1(t,e){let o;function f(){o=uD(),o.run(()=>e.length?e(()=>{o==null||o.stop(),f()}):e())}Ni(t,P=>{P&&!o?f():P||(o==null||o.stop(),o=void 0)},{immediate:!0}),ag(()=>{o==null||o.stop()})}function bl(t,e,o){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:O=>O,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:O=>O;const d=ph("useProxiedModel"),l=ti(t[e]!==void 0?t[e]:o),n=fT(e),b=Un(n!==e?()=>{var O,w,y,p;return t[e],!!(((O=d.vnode.props)!=null&&O.hasOwnProperty(e)||(w=d.vnode.props)!=null&&w.hasOwnProperty(n))&&((y=d.vnode.props)!=null&&y.hasOwnProperty(`onUpdate:${e}`)||(p=d.vnode.props)!=null&&p.hasOwnProperty(`onUpdate:${n}`)))}:()=>{var O,w;return t[e],!!((O=d.vnode.props)!=null&&O.hasOwnProperty(e)&&((w=d.vnode.props)!=null&&w.hasOwnProperty(`onUpdate:${e}`)))});x1(()=>!b.value,()=>{Ni(()=>t[e],O=>{l.value=O})});const i=Un({get(){const O=t[e];return f(b.value?O:l.value)},set(O){const w=P(O),y=As(b.value?t[e]:l.value);y===w||f(y)===O||(l.value=w,d==null||d.emit(`update:${e}`,w))}});return Object.defineProperty(i,"externalValue",{get:()=>b.value?t[e]:l.value}),i}const d9e={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},Wme="$vuetify.",Yme=(t,e)=>t.replace(/\{(\d+)\}/g,(o,f)=>String(e[+f])),Wxe=(t,e,o)=>function(f){for(var P=arguments.length,d=new Array(P>1?P-1:0),l=1;lnew Intl.NumberFormat([t.value,e.value],f).format(o)}function $ie(t,e,o){const f=bl(t,e,t[e]??o.value);return f.value=t[e]??o.value,Ni(o,P=>{t[e]==null&&(f.value=o.value)}),f}function Xxe(t){return e=>{const o=$ie(e,"locale",t.current),f=$ie(e,"fallback",t.fallback),P=$ie(e,"messages",t.messages);return{name:"vuetify",current:o,fallback:f,messages:P,t:Wxe(o,f,P),n:Yxe(o,f),provide:Xxe({current:o,fallback:f,messages:P})}}}function h9e(t){const e=Ai((t==null?void 0:t.locale)??"en"),o=Ai((t==null?void 0:t.fallback)??"en"),f=ti({en:d9e,...t==null?void 0:t.messages});return{name:"vuetify",current:e,fallback:o,messages:f,t:Wxe(e,o,f),n:Yxe(e,o),provide:Xxe({current:e,fallback:o,messages:f})}}const hZ=Symbol.for("vuetify:locale");function p9e(t){return t.name!=null}function m9e(t){const e=t!=null&&t.adapter&&p9e(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:h9e(t),o=v9e(e,t);return{...e,...o}}function sb(){const t=yl(hZ);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function g9e(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function v9e(t,e){const o=ti((e==null?void 0:e.rtl)??g9e()),f=Un(()=>o.value[t.current.value]??!1);return{isRtl:f,rtl:o,rtlClasses:Un(()=>`v-locale--is-${f.value?"rtl":"ltr"}`)}}function qg(){const t=yl(hZ);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const pZ=Symbol.for("vuetify:theme"),vf=ei({theme:String},"theme");function Xme(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function y9e(){var f,P;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xme();const e=Xme();if(!t)return{...e,isDisabled:!0};const o={};for(const[d,l]of Object.entries(t.themes??{})){const n=l.dark||d==="dark"?(f=e.themes)==null?void 0:f.dark:(P=e.themes)==null?void 0:P.light;o[d]=jg(n,l)}return jg(e,{...t,themes:o})}function b9e(t){const e=y9e(t),o=ti(e.defaultTheme),f=ti(e.themes),P=Un(()=>{const i={};for(const[O,w]of Object.entries(f.value)){const y=i[O]={...w,colors:{...w.colors}};if(e.variations)for(const p of e.variations.colors){const a=y.colors[p];if(a)for(const u of["lighten","darken"]){const h=u==="lighten"?GPe:KPe;for(const m of X4(e.variations[u],1))y.colors[`${p}-${u}-${m}`]=WPe(h(l_(a),m))}}for(const p of Object.keys(y.colors)){if(/^on-[a-z]/.test(p)||y.colors[`on-${p}`])continue;const a=`on-${p}`,u=l_(y.colors[p]);y.colors[a]=Uxe(u)}}return i}),d=Un(()=>P.value[o.value]),l=Un(()=>{var p;const i=[];(p=d.value)!=null&&p.dark&&Yk(i,":root",["color-scheme: dark"]),Yk(i,":root",Gme(d.value));for(const[a,u]of Object.entries(P.value))Yk(i,`.v-theme--${a}`,[`color-scheme: ${u.dark?"dark":"normal"}`,...Gme(u)]);const O=[],w=[],y=new Set(Object.values(P.value).flatMap(a=>Object.keys(a.colors)));for(const a of y)/^on-[a-z]/.test(a)?Yk(w,`.${a}`,[`color: rgb(var(--v-theme-${a})) !important`]):(Yk(O,`.bg-${a}`,[`--v-theme-overlay-multiplier: var(--v-theme-${a}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${a})) !important`,`color: rgb(var(--v-theme-on-${a})) !important`]),Yk(w,`.text-${a}`,[`color: rgb(var(--v-theme-${a})) !important`]),Yk(w,`.border-${a}`,[`--v-border-color: var(--v-theme-${a})`]));return i.push(...O,...w),i.map((a,u)=>u===0?a:` ${a}`).join("")});function n(){return{style:[{children:l.value,id:"vuetify-theme-stylesheet",nonce:e.cspNonce||!1}]}}function c(i){if(e.isDisabled)return;const O=i._context.provides.usehead;if(O)if(O.push){const w=O.push(n);ou&&Ni(l,()=>{w.patch(n)})}else ou?(O.addHeadObjs(Un(n)),kp(()=>O.updateDOM())):O.addHeadObjs(n());else{let y=function(){if(typeof document<"u"&&!w){const p=document.createElement("style");p.type="text/css",p.id="vuetify-theme-stylesheet",e.cspNonce&&p.setAttribute("nonce",e.cspNonce),w=p,document.head.appendChild(w)}w&&(w.innerHTML=l.value)},w=ou?document.getElementById("vuetify-theme-stylesheet"):null;ou?Ni(l,y,{immediate:!0}):y()}}const b=Un(()=>e.isDisabled?void 0:`v-theme--${o.value}`);return{install:c,isDisabled:e.isDisabled,name:o,themes:f,current:d,computedThemes:P,themeClasses:b,styles:l,global:{name:o,current:d}}}function ad(t){ph("provideTheme");const e=yl(pZ,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=Un(()=>t.theme??e.name.value),f=Un(()=>e.themes.value[o.value]),P=Un(()=>e.isDisabled?void 0:`v-theme--${o.value}`),d={...e,name:o,current:f,themeClasses:P};return gf(pZ,d),d}function Yk(t,e,o){t.push(`${e} { `,...o.map(f=>` ${f}; `),`} -`)}function Xme(t){const e=t.dark?2:1,o=t.dark?1:2,f=[];for(const[P,d]of Object.entries(t.colors)){const l=l_(d);f.push(`--v-theme-${P}: ${l.r},${l.g},${l.b}`),P.startsWith("on-")||f.push(`--v-theme-${P}-overlay-multiplier: ${KPe(d)>.18?e:o}`)}for(const[P,d]of Object.entries(t.variables)){const l=typeof d=="string"&&d.startsWith("#")?l_(d):void 0,n=l?`${l.r}, ${l.g}, ${l.b}`:void 0;f.push(`--v-${P}: ${n??d}`)}return f}const b9e=ti({...xs(),...l9e({fullHeight:!0}),...Ff()},"VApp"),x9e=ta()({name:"VApp",props:b9e(),setup(t,e){let{slots:o}=e;const f=Md(t),{layoutClasses:P,getLayoutItem:d,items:l,layoutRef:n}=u9e(t),{rtlClasses:c}=qg();return Ca(()=>Zt("div",{ref:n,class:["v-application",f.themeClasses.value,P.value,c.value,t.class],style:[t.style]},[Zt("div",{class:"v-application__wrap"},[Zt(uSe,null,{default:()=>{var b;return[Zt(ya,null,[(b=o.default)==null?void 0:b.call(o)])]}})])])),{getLayoutItem:d,items:l,theme:f}}});const Tu=ti({tag:{type:String,default:"div"}},"tag"),_9e=ti({text:String,...xs(),...Tu()},"VToolbarTitle"),w9e=ta()({name:"VToolbarTitle",props:_9e(),setup(t,e){let{slots:o}=e;return Ca(()=>{const f=!!(o.default||o.text||t.text);return Zt(t.tag,{class:["v-toolbar-title",t.class],style:t.style},{default:()=>{var P;return[f&&Zt("div",{class:"v-toolbar-title__placeholder"},[o.text?o.text():t.text,(P=o.default)==null?void 0:P.call(o)])]}})}),{}}}),O9e=ti({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Uv(t,e,o){return ta()({name:t,props:O9e({mode:o,origin:e}),setup(f,P){let{slots:d}=P;const l={onBeforeEnter(n){f.origin&&(n.style.transformOrigin=f.origin)},onLeave(n){if(f.leaveAbsolute){const{offsetTop:c,offsetLeft:b,offsetWidth:i,offsetHeight:O}=n;n._transitionInitialStyles={position:n.style.position,top:n.style.top,left:n.style.left,width:n.style.width,height:n.style.height},n.style.position="absolute",n.style.top=`${c}px`,n.style.left=`${b}px`,n.style.width=`${i}px`,n.style.height=`${O}px`}f.hideOnLeave&&n.style.setProperty("display","none","important")},onAfterLeave(n){if(f.leaveAbsolute&&(n!=null&&n._transitionInitialStyles)){const{position:c,top:b,left:i,width:O,height:w}=n._transitionInitialStyles;delete n._transitionInitialStyles,n.style.position=c||"",n.style.top=b||"",n.style.left=i||"",n.style.width=O||"",n.style.height=w||""}}};return()=>{const n=f.group?Wle:h_;return w1(n,{name:f.disabled?"":t,css:!f.disabled,...f.group?void 0:{mode:f.mode},...f.disabled?{}:l},d.default)}}})}function Xxe(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return ta()({name:t,props:{mode:{type:String,default:o},disabled:Boolean,group:Boolean},setup(f,P){let{slots:d}=P;const l=f.group?Wle:h_;return()=>w1(l,{name:f.disabled?"":t,css:!f.disabled,...f.disabled?{}:e},d.default)}})}function Gxe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",f=rb(`offset-${o}`);return{onBeforeEnter(l){l._parent=l.parentNode,l._initialStyle={transition:l.style.transition,overflow:l.style.overflow,[o]:l.style[o]}},onEnter(l){const n=l._initialStyle;l.style.setProperty("transition","none","important"),l.style.overflow="hidden";const c=`${l[f]}px`;l.style[o]="0",l.offsetHeight,l.style.transition=n.transition,t&&l._parent&&l._parent.classList.add(t),requestAnimationFrame(()=>{l.style[o]=c})},onAfterEnter:d,onEnterCancelled:d,onLeave(l){l._initialStyle={transition:"",overflow:l.style.overflow,[o]:l.style[o]},l.style.overflow="hidden",l.style[o]=`${l[f]}px`,l.offsetHeight,requestAnimationFrame(()=>l.style[o]="0")},onAfterLeave:P,onLeaveCancelled:P};function P(l){t&&l._parent&&l._parent.classList.remove(t),d(l)}function d(l){const n=l._initialStyle[o];l.style.overflow=l._initialStyle.overflow,n!=null&&(l.style[o]=n),delete l._initialStyle}}const S9e=ti({target:[Object,Array]},"v-dialog-transition"),Yce=ta()({name:"VDialogTransition",props:S9e(),setup(t,e){let{slots:o}=e;const f={onBeforeEnter(P){P.style.pointerEvents="none",P.style.visibility="hidden"},async onEnter(P,d){var w;await new Promise(y=>requestAnimationFrame(y)),await new Promise(y=>requestAnimationFrame(y)),P.style.visibility="";const{x:l,y:n,sx:c,sy:b,speed:i}=Kme(t.target,P),O=QA(P,[{transform:`translate(${l}px, ${n}px) scale(${c}, ${b})`,opacity:0},{}],{duration:225*i,easing:o9e});(w=Gme(P))==null||w.forEach(y=>{QA(y,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*i,easing:fZ})}),O.finished.then(()=>d())},onAfterEnter(P){P.style.removeProperty("pointer-events")},onBeforeLeave(P){P.style.pointerEvents="none"},async onLeave(P,d){var w;await new Promise(y=>requestAnimationFrame(y));const{x:l,y:n,sx:c,sy:b,speed:i}=Kme(t.target,P);QA(P,[{},{transform:`translate(${l}px, ${n}px) scale(${c}, ${b})`,opacity:0}],{duration:125*i,easing:i9e}).finished.then(()=>d()),(w=Gme(P))==null||w.forEach(y=>{QA(y,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*i,easing:fZ})})},onAfterLeave(P){P.style.removeProperty("pointer-events")}};return()=>t.target?Zt(h_,Di({name:"dialog-transition"},f,{css:!1}),o):Zt(h_,{name:"dialog-transition"},o)}});function Gme(t){var o;const e=(o=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:o.children;return e&&[...e]}function Kme(t,e){const o=Bxe(t),f=jce(e),[P,d]=getComputedStyle(e).transformOrigin.split(" ").map(h=>parseFloat(h)),[l,n]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let c=o.left+o.width/2;l==="left"||n==="left"?c-=o.width/2:(l==="right"||n==="right")&&(c+=o.width/2);let b=o.top+o.height/2;l==="top"||n==="top"?b-=o.height/2:(l==="bottom"||n==="bottom")&&(b+=o.height/2);const i=o.width/f.width,O=o.height/f.height,w=Math.max(1,i,O),y=i/w||0,p=O/w||0,a=f.width*f.height/(window.innerWidth*window.innerHeight),u=a>.12?Math.min(1.5,(a-.12)*10+1):1;return{x:c-(P+f.left),y:b-(d+f.top),sx:y,sy:p,speed:u}}Uv("fab-transition","center center","out-in");Uv("dialog-bottom-transition");Uv("dialog-top-transition");const Jme=Uv("fade-transition"),Kxe=Uv("scale-transition");Uv("scroll-x-transition");Uv("scroll-x-reverse-transition");Uv("scroll-y-transition");Uv("scroll-y-reverse-transition");Uv("slide-x-transition");Uv("slide-x-reverse-transition");const Jxe=Uv("slide-y-transition");Uv("slide-y-reverse-transition");const Xce=Xxe("expand-transition",Gxe()),e2e=Xxe("expand-x-transition",Gxe("",!0)),k9e=ti({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),du=ta(!1)({name:"VDefaultsProvider",props:k9e(),setup(t,e){let{slots:o}=e;const{defaults:f,disabled:P,reset:d,root:l,scoped:n}=CM(t);return ib(f,{reset:d,root:l,scoped:n,disabled:P}),()=>{var c;return(c=o.default)==null?void 0:c.call(o)}}});const O_=ti({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function S_(t){return{dimensionStyles:jn(()=>{const o={},f=Ma(t.height),P=Ma(t.maxHeight),d=Ma(t.maxWidth),l=Ma(t.minHeight),n=Ma(t.minWidth),c=Ma(t.width);return f!=null&&(o.height=f),P!=null&&(o.maxHeight=P),d!=null&&(o.maxWidth=d),l!=null&&(o.minHeight=l),n!=null&&(o.minWidth=n),c!=null&&(o.width=c),o})}}function T9e(t){return{aspectStyles:jn(()=>{const e=Number(t.aspectRatio);return e?{paddingBottom:String(1/e*100)+"%"}:void 0})}}const t2e=ti({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...xs(),...O_()},"VResponsive"),ege=ta()({name:"VResponsive",props:t2e(),setup(t,e){let{slots:o}=e;const{aspectStyles:f}=T9e(t),{dimensionStyles:P}=S_(t);return Ca(()=>{var d;return Zt("div",{class:["v-responsive",{"v-responsive--inline":t.inline},t.class],style:[P.value,t.style]},[Zt("div",{class:"v-responsive__sizer",style:f.value},null),(d=o.additional)==null?void 0:d.call(o),o.default&&Zt("div",{class:["v-responsive__content",t.contentClass]},[o.default()])])}),{}}});function Gce(t){return Uce(()=>{const e=[],o={};if(t.value.background)if(Ise(t.value.background)){if(o.backgroundColor=t.value.background,!t.value.text&&HPe(t.value.background)){const f=l_(t.value.background);if(f.a==null||f.a===1){const P=Vxe(f);o.color=P,o.caretColor=P}}}else e.push(`bg-${t.value.background}`);return t.value.text&&(Ise(t.value.text)?(o.color=t.value.text,o.caretColor=t.value.text):e.push(`text-${t.value.text}`)),{colorClasses:e,colorStyles:o}})}function $v(t,e){const o=jn(()=>({text:Dc(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:P}=Gce(o);return{textColorClasses:f,textColorStyles:P}}function og(t,e){const o=jn(()=>({background:Dc(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:P}=Gce(o);return{backgroundColorClasses:f,backgroundColorStyles:P}}const pm=ti({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function sg(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{roundedClasses:jn(()=>{const f=Dc(t)?t.value:t.rounded,P=Dc(t)?t.value:t.tile,d=[];if(f===!0||f==="")d.push(`${e}--rounded`);else if(typeof f=="string"||f===0)for(const l of String(f).split(" "))d.push(`rounded-${l}`);else(P||f===!1)&&d.push("rounded-0");return d})}}const ST=ti({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:t=>t!==!0}},"transition"),X4=(t,e)=>{let{slots:o}=e;const{transition:f,disabled:P,group:d,...l}=t,{component:n=d?Wle:h_,...c}=typeof f=="object"?f:{};return w1(n,Di(typeof f=="string"?{name:P?"":f}:c,typeof f=="string"?{}:Object.fromEntries(Object.entries({disabled:P,group:d}).filter(b=>{let[i,O]=b;return O!==void 0})),l),o)};function C9e(t,e){if(!Nce)return;const o=e.modifiers||{},f=e.value,{handler:P,options:d}=typeof f=="object"?f:{handler:f,options:{}},l=new IntersectionObserver(function(){var O;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0;const b=(O=t._observe)==null?void 0:O[e.instance.$.uid];if(!b)return;const i=n.some(w=>w.isIntersecting);P&&(!o.quiet||b.init)&&(!o.once||i||b.init)&&P(i,n,c),i&&o.once?n2e(t,e):b.init=!0},d);t._observe=Object(t._observe),t._observe[e.instance.$.uid]={init:!1,observer:l},l.observe(t)}function n2e(t,e){var f;const o=(f=t._observe)==null?void 0:f[e.instance.$.uid];o&&(o.observer.unobserve(t),delete t._observe[e.instance.$.uid])}const A9e={mounted:C9e,unmounted:n2e},Kce=A9e,M9e=ti({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...t2e(),...xs(),...pm(),...ST()},"VImg"),kT=ta()({name:"VImg",directives:{intersect:Kce},props:M9e(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,e){let{emit:o,slots:f}=e;const{backgroundColorClasses:P,backgroundColorStyles:d}=og(Oi(t,"color")),{roundedClasses:l}=sg(t),n=ph("VImg"),c=Ai(""),b=ei(),i=Ai(t.eager?"loading":"idle"),O=Ai(),w=Ai(),y=jn(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),p=jn(()=>y.value.aspect||O.value/w.value||0);Ni(()=>t.src,()=>{a(i.value!=="idle")}),Ni(p,(C,L)=>{!C&&L&&b.value&&_(b.value)}),zle(()=>a());function a(C){if(!(t.eager&&C)&&!(Nce&&!C&&!t.eager)){if(i.value="loading",y.value.lazySrc){const L=new Image;L.src=y.value.lazySrc,_(L,null)}y.value.src&&lc(()=>{var L;o("loadstart",((L=b.value)==null?void 0:L.currentSrc)||y.value.src),setTimeout(()=>{var D;if(!n.isUnmounted)if((D=b.value)!=null&&D.complete){if(b.value.naturalWidth||h(),i.value==="error")return;p.value||_(b.value,null),i.value==="loading"&&u()}else p.value||_(b.value),m()})})}}function u(){var C;n.isUnmounted||(m(),_(b.value),i.value="loaded",o("load",((C=b.value)==null?void 0:C.currentSrc)||y.value.src))}function h(){var C;n.isUnmounted||(i.value="error",o("error",((C=b.value)==null?void 0:C.currentSrc)||y.value.src))}function m(){const C=b.value;C&&(c.value=C.currentSrc||C.src)}let v=-1;dm(()=>{clearTimeout(v)});function _(C){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const D=()=>{if(clearTimeout(v),n.isUnmounted)return;const{naturalHeight:k,naturalWidth:I}=C;k||I?(O.value=I,w.value=k):!C.complete&&i.value==="loading"&&L!=null?v=window.setTimeout(D,L):(C.currentSrc.endsWith(".svg")||C.currentSrc.startsWith("data:image/svg+xml"))&&(O.value=1,w.value=1)};D()}const S=jn(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),A=()=>{var D;if(!y.value.src||i.value==="idle")return null;const C=Zt("img",{class:["v-img__img",S.value],style:{objectPosition:t.position},src:y.value.src,srcset:y.value.srcset,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable,sizes:t.sizes,ref:b,onLoad:u,onError:h},null),L=(D=f.sources)==null?void 0:D.call(f);return Zt(X4,{transition:t.transition,appear:!0},{default:()=>[Tp(L?Zt("picture",{class:"v-img__picture"},[L,C]):C,[[pS,i.value==="loaded"]])]})},x=()=>Zt(X4,{transition:t.transition},{default:()=>[y.value.lazySrc&&i.value!=="loaded"&&Zt("img",{class:["v-img__img","v-img__img--preload",S.value],style:{objectPosition:t.position},src:y.value.lazySrc,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable},null)]}),R=()=>f.placeholder?Zt(X4,{transition:t.transition,appear:!0},{default:()=>[(i.value==="loading"||i.value==="error"&&!f.error)&&Zt("div",{class:"v-img__placeholder"},[f.placeholder()])]}):null,M=()=>f.error?Zt(X4,{transition:t.transition,appear:!0},{default:()=>[i.value==="error"&&Zt("div",{class:"v-img__error"},[f.error()])]}):null,T=()=>t.gradient?Zt("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,E=Ai(!1);{const C=Ni(p,L=>{L&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{E.value=!0})}),C())})}return Ca(()=>{const C=ege.filterProps(t);return Tp(Zt(ege,Di({class:["v-img",{"v-img--booting":!E.value},P.value,l.value,t.class],style:[{width:Ma(t.width==="auto"?O.value:t.width)},d.value,t.style]},C,{aspectRatio:p.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>Zt(ya,null,[Zt(A,null,null),Zt(x,null,null),Zt(T,null,null),Zt(R,null,null),Zt(M,null,null)]),default:f.default}),[[y_("intersect"),{handler:a,options:t.options},null,{once:!0}]])}),{currentSrc:c,image:b,state:i,naturalWidth:O,naturalHeight:w}}}),k_=ti({border:[Boolean,Number,String]},"border");function DO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{borderClasses:jn(()=>{const f=Dc(t)?t.value:t.border,P=[];if(f===!0||f==="")P.push(`${e}--border`);else if(typeof f=="string"||f===0)for(const d of String(f).split(" "))P.push(`border-${d}`);return P})}}const jv=ti({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function sb(t){return{elevationClasses:jn(()=>{const o=Dc(t)?t.value:t.elevation,f=[];return o==null||f.push(`elevation-${o}`),f})}}const E9e=[null,"prominent","default","comfortable","compact"],r2e=ti({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:t=>E9e.includes(t)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...k_(),...xs(),...jv(),...pm(),...Tu({tag:"header"}),...Ff()},"VToolbar"),tge=ta()({name:"VToolbar",props:r2e(),setup(t,e){var y;let{slots:o}=e;const{backgroundColorClasses:f,backgroundColorStyles:P}=og(Oi(t,"color")),{borderClasses:d}=DO(t),{elevationClasses:l}=sb(t),{roundedClasses:n}=sg(t),{themeClasses:c}=Md(t),{rtlClasses:b}=qg(),i=Ai(!!(t.extended||(y=o.extension)!=null&&y.call(o))),O=jn(()=>parseInt(Number(t.height)+(t.density==="prominent"?Number(t.height):0)-(t.density==="comfortable"?8:0)-(t.density==="compact"?16:0),10)),w=jn(()=>i.value?parseInt(Number(t.extensionHeight)+(t.density==="prominent"?Number(t.extensionHeight):0)-(t.density==="comfortable"?4:0)-(t.density==="compact"?8:0),10):0);return ib({VBtn:{variant:"text"}}),Ca(()=>{var h;const p=!!(t.title||o.title),a=!!(o.image||t.image),u=(h=o.extension)==null?void 0:h.call(o);return i.value=!!(t.extended||u),Zt(t.tag,{class:["v-toolbar",{"v-toolbar--absolute":t.absolute,"v-toolbar--collapse":t.collapse,"v-toolbar--flat":t.flat,"v-toolbar--floating":t.floating,[`v-toolbar--density-${t.density}`]:!0},f.value,d.value,l.value,n.value,c.value,b.value,t.class],style:[P.value,t.style]},{default:()=>[a&&Zt("div",{key:"image",class:"v-toolbar__image"},[o.image?Zt(du,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},o.image):Zt(kT,{key:"image-img",cover:!0,src:t.image},null)]),Zt(du,{defaults:{VTabs:{height:Ma(O.value)}}},{default:()=>{var m,v,_;return[Zt("div",{class:"v-toolbar__content",style:{height:Ma(O.value)}},[o.prepend&&Zt("div",{class:"v-toolbar__prepend"},[(m=o.prepend)==null?void 0:m.call(o)]),p&&Zt(w9e,{key:"title",text:t.title},{text:o.title}),(v=o.default)==null?void 0:v.call(o),o.append&&Zt("div",{class:"v-toolbar__append"},[(_=o.append)==null?void 0:_.call(o)])])]}}),Zt(du,{defaults:{VTabs:{height:Ma(w.value)}}},{default:()=>[Zt(Xce,null,{default:()=>[i.value&&Zt("div",{class:"v-toolbar__extension",style:{height:Ma(w.value)}},[u])]})]})]})}),{contentHeight:O,extensionHeight:w}}}),P9e=ti({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function R9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:o}=e;let f=0,P=0;const d=ei(null),l=Ai(0),n=Ai(0),c=Ai(0),b=Ai(!1),i=Ai(!1),O=jn(()=>Number(t.scrollThreshold)),w=jn(()=>Qg((O.value-l.value)/O.value||0)),y=()=>{const p=d.value;if(!p||o&&!o.value)return;f=l.value,l.value="window"in p?p.pageYOffset:p.scrollTop;const a=p instanceof Window?document.documentElement.scrollHeight:p.scrollHeight;if(P!==a){P=a;return}i.value=l.value{n.value=n.value||l.value}),Ni(b,()=>{n.value=0}),ag(()=>{Ni(()=>t.scrollTarget,p=>{var u;const a=p?document.querySelector(p):window;a&&a!==d.value&&((u=d.value)==null||u.removeEventListener("scroll",y),d.value=a,d.value.addEventListener("scroll",y,{passive:!0}))},{immediate:!0})}),dm(()=>{var p;(p=d.value)==null||p.removeEventListener("scroll",y)}),o&&Ni(o,y,{immediate:!0}),{scrollThreshold:O,currentScroll:l,currentThreshold:c,isScrollActive:b,scrollRatio:w,isScrollingUp:i,savedScroll:n}}function pq(){const t=Ai(!1);return ag(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:jn(()=>t.value?void 0:{transition:"none !important"}),isBooted:TM(t)}}const L9e=ti({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},...r2e(),...qce(),...P9e(),height:{type:[Number,String],default:64}},"VAppBar"),I9e=ta()({name:"VAppBar",props:L9e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ei(),P=Al(t,"modelValue"),d=jn(()=>{var _;const v=new Set(((_=t.scrollBehavior)==null?void 0:_.split(" "))??[]);return{hide:v.has("hide"),fullyHide:v.has("fully-hide"),inverted:v.has("inverted"),collapse:v.has("collapse"),elevate:v.has("elevate"),fadeImage:v.has("fade-image")}}),l=jn(()=>{const v=d.value;return v.hide||v.fullyHide||v.inverted||v.collapse||v.elevate||v.fadeImage||!P.value}),{currentScroll:n,scrollThreshold:c,isScrollingUp:b,scrollRatio:i}=R9e(t,{canScroll:l}),O=jn(()=>d.value.hide||d.value.fullyHide),w=jn(()=>t.collapse||d.value.collapse&&(d.value.inverted?i.value>0:i.value===0)),y=jn(()=>t.flat||d.value.fullyHide&&!P.value||d.value.elevate&&(d.value.inverted?n.value>0:n.value===0)),p=jn(()=>d.value.fadeImage?d.value.inverted?1-i.value:i.value:void 0),a=jn(()=>{var S,A;const v=Number(((S=f.value)==null?void 0:S.contentHeight)??t.height),_=Number(((A=f.value)==null?void 0:A.extensionHeight)??0);return O.value?n.value!!t.scrollBehavior),()=>{kp(()=>{O.value?d.value.inverted?P.value=n.value>c.value:P.value=b.value||n.valueparseInt(t.order,10)),position:Oi(t,"location"),layoutSize:a,elementSize:Ai(void 0),active:P,absolute:Oi(t,"absolute")});return Ca(()=>{const v=tge.filterProps(t);return Zt(tge,Di({ref:f,class:["v-app-bar",{"v-app-bar--bottom":t.location==="bottom"},t.class],style:[{...h.value,"--v-toolbar-image-opacity":p.value,height:void 0,...u.value},t.style]},v,{collapse:w.value,flat:y.value}),o)}),m}});const D9e=[null,"default","comfortable","compact"],Qv=ti({density:{type:String,default:"default",validator:t=>D9e.includes(t)}},"density");function kx(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{densityClasses:jn(()=>`${e}--density-${t.density}`)}}const B9e=["elevated","flat","tonal","outlined","text","plain"];function TT(t,e){return Zt(ya,null,[t&&Zt("span",{key:"overlay",class:`${e}__overlay`},null),Zt("span",{key:"underlay",class:`${e}__underlay`},null)])}const Tx=ti({color:String,variant:{type:String,default:"elevated",validator:t=>B9e.includes(t)}},"variant");function CT(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();const o=jn(()=>{const{variant:d}=wa(t);return`${e}--variant-${d}`}),{colorClasses:f,colorStyles:P}=Gce(jn(()=>{const{variant:d,color:l}=wa(t);return{[["elevated","flat"].includes(d)?"background":"text"]:l}}));return{colorClasses:f,colorStyles:P,variantClasses:o}}const o2e=ti({baseColor:String,divided:Boolean,...k_(),...xs(),...Qv(),...jv(),...pm(),...Tu(),...Ff(),...Tx()},"VBtnGroup"),nge=ta()({name:"VBtnGroup",props:o2e(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=Md(t),{densityClasses:P}=kx(t),{borderClasses:d}=DO(t),{elevationClasses:l}=sb(t),{roundedClasses:n}=sg(t);ib({VBtn:{height:"auto",baseColor:Oi(t,"baseColor"),color:Oi(t,"color"),density:Oi(t,"density"),flat:!0,variant:Oi(t,"variant")}}),Ca(()=>Zt(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},f.value,d.value,P.value,l.value,n.value,t.class],style:t.style},o))}}),mq=ti({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Jce=ti({value:null,disabled:Boolean,selectedClass:String},"group-item");function eue(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const f=ph("useGroupItem");if(!f)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const P=Vv();gf(Symbol.for(`${e.description}:id`),P);const d=vl(e,null);if(!d){if(!o)return d;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const l=Oi(t,"value"),n=jn(()=>!!(d.disabled.value||t.disabled));d.register({id:P,value:l,disabled:n},f),dm(()=>{d.unregister(P)});const c=jn(()=>d.isSelected(P)),b=jn(()=>d.items.value[0].id===P),i=jn(()=>d.items.value[d.items.value.length-1].id===P),O=jn(()=>c.value&&[d.selectedClass.value,t.selectedClass]);return Ni(c,w=>{f.emit("group:selected",{value:w})},{flush:"sync"}),{id:P,isSelected:c,isFirst:b,isLast:i,toggle:()=>d.select(P,!c.value),select:w=>d.select(P,w),selectedClass:O,value:l,disabled:n,group:d}}function gq(t,e){let o=!1;const f=lm([]),P=Al(t,"modelValue",[],w=>w==null?[]:i2e(f,fm(w)),w=>{const y=F9e(f,w);return t.multiple?y:y[0]}),d=ph("useGroup");function l(w,y){const p=w,a=Symbol.for(`${e.description}:id`),h=jA(a,d==null?void 0:d.vnode).indexOf(y);wa(p.value)==null&&(p.value=h,p.useIndexAsValue=!0),h>-1?f.splice(h,0,p):f.push(p)}function n(w){if(o)return;c();const y=f.findIndex(p=>p.id===w);f.splice(y,1)}function c(){const w=f.find(y=>!y.disabled);w&&t.mandatory==="force"&&!P.value.length&&(P.value=[w.id])}ag(()=>{c()}),dm(()=>{o=!0}),Fle(()=>{for(let w=0;wa.id===w);if(!(y&&(p!=null&&p.disabled)))if(t.multiple){const a=P.value.slice(),u=a.findIndex(m=>m===w),h=~u;if(y=y??!h,h&&t.mandatory&&a.length<=1||!h&&t.max!=null&&a.length+1>t.max)return;u<0&&y?a.push(w):u>=0&&!y&&a.splice(u,1),P.value=a}else{const a=P.value.includes(w);if(t.mandatory&&a)return;P.value=y??!a?[w]:[]}}function i(w){if(t.multiple,P.value.length){const y=P.value[0],p=f.findIndex(h=>h.id===y);let a=(p+w)%f.length,u=f[a];for(;u.disabled&&a!==p;)a=(a+w)%f.length,u=f[a];if(u.disabled)return;P.value=[f[a].id]}else{const y=f.find(p=>!p.disabled);y&&(P.value=[y.id])}}const O={register:l,unregister:n,selected:P,select:b,disabled:Oi(t,"disabled"),prev:()=>i(f.length-1),next:()=>i(1),isSelected:w=>P.value.includes(w),selectedClass:jn(()=>t.selectedClass),items:jn(()=>f),getItemIndex:w=>z9e(f,w)};return gf(e,O),O}function z9e(t,e){const o=i2e(t,[e]);return o.length?t.findIndex(f=>f.id===o[0]):-1}function i2e(t,e){const o=[];return e.forEach(f=>{const P=t.find(l=>yS(f,l.value)),d=t[f];(P==null?void 0:P.value)!=null?o.push(P.id):d!=null&&o.push(d.id)}),o}function F9e(t,e){const o=[];return e.forEach(f=>{const P=t.findIndex(d=>d.id===f);if(~P){const d=t[P];o.push(d.value!=null?d.value:P)}}),o}const a2e=Symbol.for("vuetify:v-btn-toggle"),N9e=ti({...o2e(),...mq()},"VBtnToggle"),s2e=ta()({name:"VBtnToggle",props:N9e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isSelected:f,next:P,prev:d,select:l,selected:n}=gq(t,a2e);return Ca(()=>{const c=nge.filterProps(t);return Zt(nge,Di({class:["v-btn-toggle",t.class]},c,{style:t.style}),{default:()=>{var b;return[(b=o.default)==null?void 0:b.call(o,{isSelected:f,next:P,prev:d,select:l,selected:n})]}})}),{next:P,prev:d,select:l}}});const l2e={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},c2e={component:t=>w1(f2e,{...t,class:"mdi"})},Cl=[String,Function,Object,Array],Dse=Symbol.for("vuetify:icons"),vq=ti({icon:{type:Cl},tag:{type:String,required:!0}},"icon"),rge=ta()({name:"VComponentIcon",props:vq(),setup(t,e){let{slots:o}=e;return()=>{const f=t.icon;return Zt(t.tag,null,{default:()=>{var P;return[t.icon?Zt(f,null,null):(P=o.default)==null?void 0:P.call(o)]}})}}}),u2e=PM({name:"VSvgIcon",inheritAttrs:!1,props:vq(),setup(t,e){let{attrs:o}=e;return()=>Zt(t.tag,Di(o,{style:null}),{default:()=>[Zt("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(f=>Array.isArray(f)?Zt("path",{d:f[0],"fill-opacity":f[1]},null):Zt("path",{d:f},null)):Zt("path",{d:t.icon},null)])]})}});PM({name:"VLigatureIcon",props:vq(),setup(t){return()=>Zt(t.tag,null,{default:()=>[t.icon]})}});const f2e=PM({name:"VClassIcon",props:vq(),setup(t){return()=>Zt(t.tag,{class:t.icon},null)}});function $9e(){return{svg:{component:u2e},class:{component:f2e}}}function V9e(t){const e=$9e(),o=(t==null?void 0:t.defaultSet)??"mdi";return o==="mdi"&&!e.mdi&&(e.mdi=c2e),Ug({defaultSet:o,sets:e,aliases:{...l2e,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},t)}const U9e=t=>{const e=vl(Dse);if(!e)throw new Error("Missing Vuetify Icons provide!");return{iconData:jn(()=>{var c;const f=wa(t);if(!f)return{component:rge};let P=f;if(typeof P=="string"&&(P=P.trim(),P.startsWith("$")&&(P=(c=e.aliases)==null?void 0:c[P.slice(1)])),Array.isArray(P))return{component:u2e,icon:P};if(typeof P!="string")return{component:rge,icon:P};const d=Object.keys(e.sets).find(b=>typeof P=="string"&&P.startsWith(`${b}:`)),l=d?P.slice(d.length+1):P;return{component:e.sets[d??e.defaultSet].component,icon:l}})}},j9e=["x-small","small","default","large","x-large"],RM=ti({size:{type:[String,Number],default:"default"}},"size");function OD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return Uce(()=>{let o,f;return lZ(j9e,t.size)?o=`${e}--size-${t.size}`:t.size&&(f={width:Ma(t.size),height:Ma(t.size)}),{sizeClasses:o,sizeStyles:f}})}const Q9e=ti({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Cl,...xs(),...RM(),...Tu({tag:"i"}),...Ff()},"VIcon"),Tl=ta()({name:"VIcon",props:Q9e(),setup(t,e){let{attrs:o,slots:f}=e;const P=ei(),{themeClasses:d}=Md(t),{iconData:l}=U9e(jn(()=>P.value||t.icon)),{sizeClasses:n}=OD(t),{textColorClasses:c,textColorStyles:b}=$v(Oi(t,"color"));return Ca(()=>{var w,y;const i=(w=f.default)==null?void 0:w.call(f);i&&(P.value=(y=Exe(i).filter(p=>p.type===dD&&p.children&&typeof p.children=="string")[0])==null?void 0:y.children);const O=!!(o.onClick||o.onClickOnce);return Zt(l.value.component,{tag:t.tag,icon:l.value.icon,class:["v-icon","notranslate",d.value,n.value,c.value,{"v-icon--clickable":O,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[n.value?void 0:{fontSize:Ma(t.size),height:Ma(t.size),width:Ma(t.size)},b.value,t.style],role:O?"button":void 0,"aria-hidden":!O,tabindex:O?t.disabled?-1:0:void 0},{default:()=>[i]})}),{}}});function d2e(t,e){const o=ei(),f=Ai(!1);if(Nce){const P=new IntersectionObserver(d=>{t==null||t(d,P),f.value=!!d.find(l=>l.isIntersecting)},e);dm(()=>{P.disconnect()}),Ni(o,(d,l)=>{l&&(P.unobserve(l),f.value=!1),d&&P.observe(d)},{flush:"post"})}return{intersectionRef:o,isIntersecting:f}}const H9e=ti({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...xs(),...RM(),...Tu({tag:"div"}),...Ff()},"VProgressCircular"),SD=ta()({name:"VProgressCircular",props:H9e(),setup(t,e){let{slots:o}=e;const f=20,P=2*Math.PI*f,d=ei(),{themeClasses:l}=Md(t),{sizeClasses:n,sizeStyles:c}=OD(t),{textColorClasses:b,textColorStyles:i}=$v(Oi(t,"color")),{textColorClasses:O,textColorStyles:w}=$v(Oi(t,"bgColor")),{intersectionRef:y,isIntersecting:p}=d2e(),{resizeRef:a,contentRect:u}=fS(),h=jn(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),m=jn(()=>Number(t.width)),v=jn(()=>c.value?Number(t.size):u.value?u.value.width:Math.max(m.value,32)),_=jn(()=>f/(1-m.value/v.value)*2),S=jn(()=>m.value/v.value*_.value),A=jn(()=>Ma((100-h.value)/100*P));return kp(()=>{y.value=d.value,a.value=d.value}),Ca(()=>Zt(t.tag,{ref:d,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":p.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},l.value,n.value,b.value,t.class],style:[c.value,i.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:h.value},{default:()=>[Zt("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[Zt("circle",{class:["v-progress-circular__underlay",O.value],style:w.value,fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":S.value,"stroke-dasharray":P,"stroke-dashoffset":0},null),Zt("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":S.value,"stroke-dasharray":P,"stroke-dashoffset":A.value},null)]),o.default&&Zt("div",{class:"v-progress-circular__content"},[o.default({value:h.value})])]})),{}}});const oge={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},kD=ti({location:String},"location");function yq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2?arguments[2]:void 0;const{isRtl:f}=qg();return{locationStyles:jn(()=>{if(!t.location)return{};const{side:d,align:l}=Rse(t.location.split(" ").length>1?t.location:`${t.location} center`,f.value);function n(b){return o?o(b):0}const c={};return d!=="center"&&(e?c[oge[d]]=`calc(100% - ${n(d)}px)`:c[d]=0),l!=="center"?e?c[oge[l]]=`calc(100% - ${n(l)}px)`:c[l]=0:(d==="center"?c.top=c.left="50%":c[{top:"left",bottom:"left",left:"top",right:"top"}[d]]="50%",c.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[d]),c})}}const Z9e=ti({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...xs(),...kD({location:"top"}),...pm(),...Tu(),...Ff()},"VProgressLinear"),h2e=ta()({name:"VProgressLinear",props:Z9e(),emits:{"update:modelValue":t=>!0},setup(t,e){var E;let{slots:o}=e;const f=Al(t,"modelValue"),{isRtl:P,rtlClasses:d}=qg(),{themeClasses:l}=Md(t),{locationStyles:n}=yq(t),{textColorClasses:c,textColorStyles:b}=$v(t,"color"),{backgroundColorClasses:i,backgroundColorStyles:O}=og(jn(()=>t.bgColor||t.color)),{backgroundColorClasses:w,backgroundColorStyles:y}=og(jn(()=>t.bufferColor||t.bgColor||t.color)),{backgroundColorClasses:p,backgroundColorStyles:a}=og(t,"color"),{roundedClasses:u}=sg(t),{intersectionRef:h,isIntersecting:m}=d2e(),v=jn(()=>parseFloat(t.max)),_=jn(()=>parseFloat(t.height)),S=jn(()=>Qg(parseFloat(t.bufferValue)/v.value*100,0,100)),A=jn(()=>Qg(parseFloat(f.value)/v.value*100,0,100)),x=jn(()=>P.value!==t.reverse),R=jn(()=>t.indeterminate?"fade-transition":"slide-x-transition"),M=ou&&((E=window.matchMedia)==null?void 0:E.call(window,"(forced-colors: active)").matches);function T(C){if(!h.value)return;const{left:L,right:D,width:k}=h.value.getBoundingClientRect(),I=x.value?k-C.clientX+(D-k):C.clientX-L;f.value=Math.round(I/k*v.value)}return Ca(()=>Zt(t.tag,{ref:h,class:["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&m.value,"v-progress-linear--reverse":x.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped},u.value,l.value,d.value,t.class],style:[{bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?Ma(_.value):0,"--v-progress-linear-height":Ma(_.value),...t.absolute?n.value:{}},t.style],role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:A.value,onClick:t.clickable&&T},{default:()=>[t.stream&&Zt("div",{key:"stream",class:["v-progress-linear__stream",c.value],style:{...b.value,[x.value?"left":"right"]:Ma(-_.value),borderTop:`${Ma(_.value/2)} dotted`,opacity:parseFloat(t.bufferOpacity),top:`calc(50% - ${Ma(_.value/4)})`,width:Ma(100-S.value,"%"),"--v-progress-linear-stream-to":Ma(_.value*(x.value?1:-1))}},null),Zt("div",{class:["v-progress-linear__background",M?void 0:i.value],style:[O.value,{opacity:parseFloat(t.bgOpacity),width:t.stream?0:void 0}]},null),Zt("div",{class:["v-progress-linear__buffer",M?void 0:w.value],style:[y.value,{opacity:parseFloat(t.bufferOpacity),width:Ma(S.value,"%")}]},null),Zt(h_,{name:R.value},{default:()=>[t.indeterminate?Zt("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(C=>Zt("div",{key:C,class:["v-progress-linear__indeterminate",C,M?void 0:p.value],style:a.value},null))]):Zt("div",{class:["v-progress-linear__determinate",M?void 0:p.value],style:[a.value,{width:Ma(A.value,"%")}]},null)]}),o.default&&Zt("div",{class:"v-progress-linear__content"},[o.default({value:A.value,buffer:S.value})])]})),{}}}),bq=ti({loading:[Boolean,String]},"loader");function TD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{loaderClasses:jn(()=>({[`${e}--loading`]:t.loading}))}}function xq(t,e){var f;let{slots:o}=e;return Zt("div",{class:`${t.name}__loader`},[((f=o.default)==null?void 0:f.call(o,{color:t.color,isActive:t.active}))||Zt(h2e,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const q9e=["static","relative","fixed","absolute","sticky"],_q=ti({position:{type:String,validator:t=>q9e.includes(t)}},"position");function wq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{positionClasses:jn(()=>t.position?`${e}--${t.position}`:void 0)}}function W9e(){const t=ph("useRoute");return jn(()=>{var e;return(e=t==null?void 0:t.proxy)==null?void 0:e.$route})}function p2e(){var t,e;return(e=(t=ph("useRouter"))==null?void 0:t.proxy)==null?void 0:e.$router}function Oq(t,e){var b,i;const o=SI("RouterLink"),f=jn(()=>!!(t.href||t.to)),P=jn(()=>(f==null?void 0:f.value)||Eme(e,"click")||Eme(t,"click"));if(typeof o=="string"||!("useLink"in o))return{isLink:f,isClickable:P,href:Oi(t,"href")};const d=jn(()=>({...t,to:Oi(()=>t.to||"")})),l=o.useLink(d.value),n=jn(()=>t.to?l:void 0),c=W9e();return{isLink:f,isClickable:P,route:(b=n.value)==null?void 0:b.route,navigate:(i=n.value)==null?void 0:i.navigate,isActive:jn(()=>{var O,w,y;return n.value?t.exact?c.value?((y=n.value.isExactActive)==null?void 0:y.value)&&yS(n.value.route.value.query,c.value.query):((w=n.value.isExactActive)==null?void 0:w.value)??!1:((O=n.value.isActive)==null?void 0:O.value)??!1:!1}),href:jn(()=>{var O;return t.to?(O=n.value)==null?void 0:O.route.value.href:t.href})}}const Sq=ti({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Vie=!1;function Y9e(t,e){let o=!1,f,P;ou&&(lc(()=>{window.addEventListener("popstate",d),f=t==null?void 0:t.beforeEach((l,n,c)=>{Vie?o?e(c):c():setTimeout(()=>o?e(c):c()),Vie=!0}),P=t==null?void 0:t.afterEach(()=>{Vie=!1})}),ig(()=>{window.removeEventListener("popstate",d),f==null||f(),P==null||P()}));function d(l){var n;(n=l.state)!=null&&n.replaced||(o=!0,setTimeout(()=>o=!1))}}function X9e(t,e){Ni(()=>{var o;return(o=t.isActive)==null?void 0:o.value},o=>{t.isLink.value&&o&&e&&lc(()=>{e(!0)})},{immediate:!0})}const Bse=Symbol("rippleStop"),G9e=80;function ige(t,e){t.style.transform=e,t.style.webkitTransform=e}function zse(t){return t.constructor.name==="TouchEvent"}function m2e(t){return t.constructor.name==="KeyboardEvent"}const K9e=function(t,e){var O;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=0,P=0;if(!m2e(t)){const w=e.getBoundingClientRect(),y=zse(t)?t.touches[t.touches.length-1]:t;f=y.clientX-w.left,P=y.clientY-w.top}let d=0,l=.3;(O=e._ripple)!=null&&O.circle?(l=.15,d=e.clientWidth/2,d=o.center?d:d+Math.sqrt((f-d)**2+(P-d)**2)/4):d=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const n=`${(e.clientWidth-d*2)/2}px`,c=`${(e.clientHeight-d*2)/2}px`,b=o.center?n:`${f-d}px`,i=o.center?c:`${P-d}px`;return{radius:d,scale:l,x:b,y:i,centerX:n,centerY:c}},mZ={show(t,e){var y;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((y=e==null?void 0:e._ripple)!=null&&y.enabled))return;const f=document.createElement("span"),P=document.createElement("span");f.appendChild(P),f.className="v-ripple__container",o.class&&(f.className+=` ${o.class}`);const{radius:d,scale:l,x:n,y:c,centerX:b,centerY:i}=K9e(t,e,o),O=`${d*2}px`;P.className="v-ripple__animation",P.style.width=O,P.style.height=O,e.appendChild(f);const w=window.getComputedStyle(e);w&&w.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),P.classList.add("v-ripple__animation--enter"),P.classList.add("v-ripple__animation--visible"),ige(P,`translate(${n}, ${c}) scale3d(${l},${l},${l})`),P.dataset.activated=String(performance.now()),setTimeout(()=>{P.classList.remove("v-ripple__animation--enter"),P.classList.add("v-ripple__animation--in"),ige(P,`translate(${b}, ${i}) scale3d(1,1,1)`)},0)},hide(t){var d;if(!((d=t==null?void 0:t._ripple)!=null&&d.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const o=e[e.length-1];if(o.dataset.isHiding)return;o.dataset.isHiding="true";const f=performance.now()-Number(o.dataset.activated),P=Math.max(250-f,0);setTimeout(()=>{o.classList.remove("v-ripple__animation--in"),o.classList.add("v-ripple__animation--out"),setTimeout(()=>{var n;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((n=o.parentNode)==null?void 0:n.parentNode)===t&&t.removeChild(o.parentNode)},300)},P)}};function g2e(t){return typeof t>"u"||!!t}function XI(t){const e={},o=t.currentTarget;if(!(!(o!=null&&o._ripple)||o._ripple.touched||t[Bse])){if(t[Bse]=!0,zse(t))o._ripple.touched=!0,o._ripple.isTouch=!0;else if(o._ripple.isTouch)return;if(e.center=o._ripple.centered||m2e(t),o._ripple.class&&(e.class=o._ripple.class),zse(t)){if(o._ripple.showTimerCommit)return;o._ripple.showTimerCommit=()=>{mZ.show(t,o,e)},o._ripple.showTimer=window.setTimeout(()=>{var f;(f=o==null?void 0:o._ripple)!=null&&f.showTimerCommit&&(o._ripple.showTimerCommit(),o._ripple.showTimerCommit=null)},G9e)}else mZ.show(t,o,e)}}function age(t){t[Bse]=!0}function Bv(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{Bv(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),mZ.hide(e)}}function v2e(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let GI=!1;function y2e(t){!GI&&(t.keyCode===kme.enter||t.keyCode===kme.space)&&(GI=!0,XI(t))}function b2e(t){GI=!1,Bv(t)}function x2e(t){GI&&(GI=!1,Bv(t))}function _2e(t,e,o){const{value:f,modifiers:P}=e,d=g2e(f);if(d||mZ.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=d,t._ripple.centered=P.center,t._ripple.circle=P.circle,Mse(f)&&f.class&&(t._ripple.class=f.class),d&&!o){if(P.stop){t.addEventListener("touchstart",age,{passive:!0}),t.addEventListener("mousedown",age);return}t.addEventListener("touchstart",XI,{passive:!0}),t.addEventListener("touchend",Bv,{passive:!0}),t.addEventListener("touchmove",v2e,{passive:!0}),t.addEventListener("touchcancel",Bv),t.addEventListener("mousedown",XI),t.addEventListener("mouseup",Bv),t.addEventListener("mouseleave",Bv),t.addEventListener("keydown",y2e),t.addEventListener("keyup",b2e),t.addEventListener("blur",x2e),t.addEventListener("dragstart",Bv,{passive:!0})}else!d&&o&&w2e(t)}function w2e(t){t.removeEventListener("mousedown",XI),t.removeEventListener("touchstart",XI),t.removeEventListener("touchend",Bv),t.removeEventListener("touchmove",v2e),t.removeEventListener("touchcancel",Bv),t.removeEventListener("mouseup",Bv),t.removeEventListener("mouseleave",Bv),t.removeEventListener("keydown",y2e),t.removeEventListener("keyup",b2e),t.removeEventListener("dragstart",Bv),t.removeEventListener("blur",x2e)}function J9e(t,e){_2e(t,e,!1)}function eRe(t){delete t._ripple,w2e(t)}function tRe(t,e){if(e.value===e.oldValue)return;const o=g2e(e.oldValue);_2e(t,e,o)}const AT={mounted:J9e,unmounted:eRe,updated:tRe},nRe=ti({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:a2e},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Cl,appendIcon:Cl,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...k_(),...xs(),...Qv(),...O_(),...jv(),...Jce(),...bq(),...kD(),..._q(),...pm(),...Sq(),...RM(),...Tu({tag:"button"}),...Ff(),...Tx({variant:"elevated"})},"VBtn"),ps=ta()({name:"VBtn",props:nRe(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:P}=Md(t),{borderClasses:d}=DO(t),{densityClasses:l}=kx(t),{dimensionStyles:n}=S_(t),{elevationClasses:c}=sb(t),{loaderClasses:b}=TD(t),{locationStyles:i}=yq(t),{positionClasses:O}=wq(t),{roundedClasses:w}=sg(t),{sizeClasses:y,sizeStyles:p}=OD(t),a=eue(t,t.symbol,!1),u=Oq(t,o),h=jn(()=>{var T;return t.active!==void 0?t.active:u.isLink.value?(T=u.isActive)==null?void 0:T.value:a==null?void 0:a.isSelected.value}),m=jn(()=>{var E,C;return{color:(a==null?void 0:a.isSelected.value)&&(!u.isLink.value||((E=u.isActive)==null?void 0:E.value))||!a||((C=u.isActive)==null?void 0:C.value)?t.color??t.baseColor:t.baseColor,variant:t.variant}}),{colorClasses:v,colorStyles:_,variantClasses:S}=CT(m),A=jn(()=>(a==null?void 0:a.disabled.value)||t.disabled),x=jn(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),R=jn(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function M(T){var E;A.value||u.isLink.value&&(T.metaKey||T.ctrlKey||T.shiftKey||T.button!==0||o.target==="_blank")||((E=u.navigate)==null||E.call(u,T),a==null||a.toggle())}return X9e(u,a==null?void 0:a.select),Ca(()=>{const T=u.isLink.value?"a":t.tag,E=!!(t.prependIcon||f.prepend),C=!!(t.appendIcon||f.append),L=!!(t.icon&&t.icon!==!0);return Tp(Zt(T,{type:T==="a"?void 0:"button",class:["v-btn",a==null?void 0:a.selectedClass.value,{"v-btn--active":h.value,"v-btn--block":t.block,"v-btn--disabled":A.value,"v-btn--elevated":x.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--readonly":t.readonly,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},P.value,d.value,v.value,l.value,c.value,b.value,O.value,w.value,y.value,S.value,t.class],style:[_.value,n.value,i.value,p.value,t.style],"aria-busy":t.loading?!0:void 0,disabled:A.value||void 0,href:u.href.value,tabindex:t.loading||t.readonly?-1:void 0,onClick:M,value:R.value},{default:()=>{var D;return[TT(!0,"v-btn"),!t.icon&&E&&Zt("span",{key:"prepend",class:"v-btn__prepend"},[f.prepend?Zt(du,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},f.prepend):Zt(Tl,{key:"prepend-icon",icon:t.prependIcon},null)]),Zt("span",{class:"v-btn__content","data-no-activator":""},[!f.default&&L?Zt(Tl,{key:"content-icon",icon:t.icon},null):Zt(du,{key:"content-defaults",disabled:!L,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var k;return[((k=f.default)==null?void 0:k.call(f))??t.text]}})]),!t.icon&&C&&Zt("span",{key:"append",class:"v-btn__append"},[f.append?Zt(du,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},f.append):Zt(Tl,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&Zt("span",{key:"loader",class:"v-btn__loader"},[((D=f.loader)==null?void 0:D.call(f))??Zt(SD,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,width:"2"},null)])]}}),[[AT,!A.value&&t.ripple,"",{center:!!t.icon}]])}),{group:a}}});const rRe=hq("v-alert-title"),oRe=["success","info","warning","error"],iRe=ti({border:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["top","end","bottom","start"].includes(t)},borderColor:String,closable:Boolean,closeIcon:{type:Cl,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:t=>oRe.includes(t)},...xs(),...Qv(),...O_(),...jv(),...kD(),..._q(),...pm(),...Tu(),...Ff(),...Tx({variant:"flat"})},"VAlert"),sge=ta()({name:"VAlert",props:iRe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{emit:o,slots:f}=e;const P=Al(t,"modelValue"),d=jn(()=>{if(t.icon!==!1)return t.type?t.icon??`$${t.type}`:t.icon}),l=jn(()=>({color:t.color??t.type,variant:t.variant})),{themeClasses:n}=Md(t),{colorClasses:c,colorStyles:b,variantClasses:i}=CT(l),{densityClasses:O}=kx(t),{dimensionStyles:w}=S_(t),{elevationClasses:y}=sb(t),{locationStyles:p}=yq(t),{positionClasses:a}=wq(t),{roundedClasses:u}=sg(t),{textColorClasses:h,textColorStyles:m}=$v(Oi(t,"borderColor")),{t:v}=Sx(),_=jn(()=>({"aria-label":v(t.closeLabel),onClick(S){P.value=!1,o("click:close",S)}}));return()=>{const S=!!(f.prepend||d.value),A=!!(f.title||t.title),x=!!(f.close||t.closable);return P.value&&Zt(t.tag,{class:["v-alert",t.border&&{"v-alert--border":!!t.border,[`v-alert--border-${t.border===!0?"start":t.border}`]:!0},{"v-alert--prominent":t.prominent},n.value,c.value,O.value,y.value,a.value,u.value,i.value,t.class],style:[b.value,w.value,p.value,t.style],role:"alert"},{default:()=>{var R,M;return[TT(!1,"v-alert"),t.border&&Zt("div",{key:"border",class:["v-alert__border",h.value],style:m.value},null),S&&Zt("div",{key:"prepend",class:"v-alert__prepend"},[f.prepend?Zt(du,{key:"prepend-defaults",disabled:!d.value,defaults:{VIcon:{density:t.density,icon:d.value,size:t.prominent?44:28}}},f.prepend):Zt(Tl,{key:"prepend-icon",density:t.density,icon:d.value,size:t.prominent?44:28},null)]),Zt("div",{class:"v-alert__content"},[A&&Zt(rRe,{key:"title"},{default:()=>{var T;return[((T=f.title)==null?void 0:T.call(f))??t.title]}}),((R=f.text)==null?void 0:R.call(f))??t.text,(M=f.default)==null?void 0:M.call(f)]),f.append&&Zt("div",{key:"append",class:"v-alert__append"},[f.append()]),x&&Zt("div",{key:"close",class:"v-alert__close"},[f.close?Zt(du,{key:"close-defaults",defaults:{VBtn:{icon:t.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var T;return[(T=f.close)==null?void 0:T.call(f,{props:_.value})]}}):Zt(ps,Di({key:"close-btn",icon:t.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}});const aRe=ti({start:Boolean,end:Boolean,icon:Cl,image:String,text:String,...xs(),...Qv(),...pm(),...RM(),...Tu(),...Ff(),...Tx({variant:"flat"})},"VAvatar"),PO=ta()({name:"VAvatar",props:aRe(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=Md(t),{colorClasses:P,colorStyles:d,variantClasses:l}=CT(t),{densityClasses:n}=kx(t),{roundedClasses:c}=sg(t),{sizeClasses:b,sizeStyles:i}=OD(t);return Ca(()=>Zt(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},f.value,P.value,n.value,c.value,b.value,l.value,t.class],style:[d.value,i.value,t.style]},{default:()=>[o.default?Zt(du,{key:"content-defaults",defaults:{VImg:{cover:!0,src:t.image},VIcon:{icon:t.icon}}},{default:()=>[o.default()]}):t.image?Zt(kT,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?Zt(Tl,{key:"icon",icon:t.icon},null):t.text,TT(!1,"v-avatar")]})),{}}});const sRe=ti({text:String,onClick:rg(),...xs(),...Ff()},"VLabel"),kq=ta()({name:"VLabel",props:sRe(),setup(t,e){let{slots:o}=e;return Ca(()=>{var f;return Zt("label",{class:["v-label",{"v-label--clickable":!!t.onClick},t.class],style:t.style,onClick:t.onClick},[t.text,(f=o.default)==null?void 0:f.call(o)])}),{}}});const O2e=Symbol.for("vuetify:selection-control-group"),S2e=ti({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Cl,trueIcon:Cl,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:yS},...xs(),...Qv(),...Ff()},"SelectionControlGroup"),lRe=ti({...S2e({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");ta()({name:"VSelectionControlGroup",props:lRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=Al(t,"modelValue"),P=Vv(),d=jn(()=>t.id||`v-selection-control-group-${P}`),l=jn(()=>t.name||d.value),n=new Set;return gf(O2e,{modelValue:f,forceUpdate:()=>{n.forEach(c=>c())},onForceUpdate:c=>{n.add(c),ig(()=>{n.delete(c)})}}),ib({[t.defaultsTarget]:{color:Oi(t,"color"),disabled:Oi(t,"disabled"),density:Oi(t,"density"),error:Oi(t,"error"),inline:Oi(t,"inline"),modelValue:f,multiple:jn(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),name:l,falseIcon:Oi(t,"falseIcon"),trueIcon:Oi(t,"trueIcon"),readonly:Oi(t,"readonly"),ripple:Oi(t,"ripple"),type:Oi(t,"type"),valueComparator:Oi(t,"valueComparator")}}),Ca(()=>{var c;return Zt("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(c=o.default)==null?void 0:c.call(o)])}),{}}});const tue=ti({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...xs(),...S2e()},"VSelectionControl");function cRe(t){const e=vl(O2e,void 0),{densityClasses:o}=kx(t),f=Al(t,"modelValue"),P=jn(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),d=jn(()=>t.falseValue!==void 0?t.falseValue:!1),l=jn(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),n=jn({get(){const y=e?e.modelValue.value:f.value;return l.value?fm(y).some(p=>t.valueComparator(p,P.value)):t.valueComparator(y,P.value)},set(y){if(t.readonly)return;const p=y?P.value:d.value;let a=p;l.value&&(a=y?[...fm(f.value),p]:fm(f.value).filter(u=>!t.valueComparator(u,P.value))),e?e.modelValue.value=a:f.value=a}}),{textColorClasses:c,textColorStyles:b}=$v(jn(()=>{if(!(t.error||t.disabled))return n.value?t.color:t.baseColor})),{backgroundColorClasses:i,backgroundColorStyles:O}=og(jn(()=>n.value&&!t.error&&!t.disabled?t.color:t.baseColor)),w=jn(()=>n.value?t.trueIcon:t.falseIcon);return{group:e,densityClasses:o,trueValue:P,falseValue:d,model:n,textColorClasses:c,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:O,icon:w}}const gZ=ta()({name:"VSelectionControl",directives:{Ripple:AT},inheritAttrs:!1,props:tue(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{group:P,densityClasses:d,icon:l,model:n,textColorClasses:c,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:O,trueValue:w}=cRe(t),y=Vv(),p=Ai(!1),a=Ai(!1),u=ei(),h=jn(()=>t.id||`input-${y}`),m=jn(()=>!t.disabled&&!t.readonly);P==null||P.onForceUpdate(()=>{u.value&&(u.value.checked=n.value)});function v(x){m.value&&(p.value=!0,gM(x.target,":focus-visible")!==!1&&(a.value=!0))}function _(){p.value=!1,a.value=!1}function S(x){x.stopPropagation()}function A(x){if(!m.value){u.value&&(u.value.checked=n.value);return}t.readonly&&P&&lc(()=>P.forceUpdate()),n.value=x.target.checked}return Ca(()=>{var E,C;const x=f.label?f.label({label:t.label,props:{for:h.value}}):t.label,[R,M]=fq(o),T=Zt("input",Di({ref:u,checked:n.value,disabled:!!t.disabled,id:h.value,onBlur:_,onFocus:v,onInput:A,"aria-disabled":!!t.disabled,"aria-label":t.label,type:t.type,value:w.value,name:t.name,"aria-checked":t.type==="checkbox"?n.value:void 0},M),null);return Zt("div",Di({class:["v-selection-control",{"v-selection-control--dirty":n.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":p.value,"v-selection-control--focus-visible":a.value,"v-selection-control--inline":t.inline},d.value,t.class]},R,{style:t.style}),[Zt("div",{class:["v-selection-control__wrapper",c.value],style:b.value},[(E=f.default)==null?void 0:E.call(f,{backgroundColorClasses:i,backgroundColorStyles:O}),Tp(Zt("div",{class:["v-selection-control__input"]},[((C=f.input)==null?void 0:C.call(f,{model:n,textColorClasses:c,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:O,inputNode:T,icon:l.value,props:{onFocus:v,onBlur:_,id:h.value}}))??Zt(ya,null,[l.value&&Zt(Tl,{key:"icon",icon:l.value},null),T])]),[[y_("ripple"),t.ripple&&[!t.disabled&&!t.readonly,null,["center","circle"]]]])]),x&&Zt(kq,{for:h.value,onClick:S},{default:()=>[x]})])}),{isFocused:p,input:u}}}),uRe=ti({indeterminate:Boolean,indeterminateIcon:{type:Cl,default:"$checkboxIndeterminate"},...tue({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),LM=ta()({name:"VCheckboxBtn",props:uRe(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{slots:o}=e;const f=Al(t,"indeterminate"),P=Al(t,"modelValue");function d(c){f.value&&(f.value=!1)}const l=jn(()=>f.value?t.indeterminateIcon:t.falseIcon),n=jn(()=>f.value?t.indeterminateIcon:t.trueIcon);return Ca(()=>{const c=__(gZ.filterProps(t),["modelValue"]);return Zt(gZ,Di(c,{modelValue:P.value,"onUpdate:modelValue":[b=>P.value=b,d],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:l.value,trueIcon:n.value,"aria-checked":f.value?"mixed":void 0}),o)}),{}}});function k2e(t){const{t:e}=Sx();function o(f){let{name:P}=f;const d={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[P],l=t[`onClick:${P}`],n=l&&d?e(`$vuetify.input.${d}`,t.label??""):void 0;return Zt(Tl,{icon:t[`${P}Icon`],"aria-label":n,onClick:l},null)}return{InputIcon:o}}const fRe=ti({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...xs(),...ST({transition:{component:Jxe,leaveAbsolute:!0,group:!0}})},"VMessages"),dRe=ta()({name:"VMessages",props:fRe(),setup(t,e){let{slots:o}=e;const f=jn(()=>fm(t.messages)),{textColorClasses:P,textColorStyles:d}=$v(jn(()=>t.color));return Ca(()=>Zt(X4,{transition:t.transition,tag:"div",class:["v-messages",P.value,t.class],style:[d.value,t.style],role:"alert","aria-live":"polite"},{default:()=>[t.active&&f.value.map((l,n)=>Zt("div",{class:"v-messages__message",key:`${n}-${f.value}`},[o.message?o.message({message:l}):l]))]})),{}}}),Tq=ti({focused:Boolean,"onUpdate:focused":rg()},"focus");function IM(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();const o=Al(t,"focused"),f=jn(()=>({[`${e}--focused`]:o.value}));function P(){o.value=!0}function d(){o.value=!1}return{focusClasses:f,isFocused:o,focus:P,blur:d}}const T2e=Symbol.for("vuetify:form"),hRe=ti({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function pRe(t){const e=Al(t,"modelValue"),o=jn(()=>t.disabled),f=jn(()=>t.readonly),P=Ai(!1),d=ei([]),l=ei([]);async function n(){const i=[];let O=!0;l.value=[],P.value=!0;for(const w of d.value){const y=await w.validate();if(y.length>0&&(O=!1,i.push({id:w.id,errorMessages:y})),!O&&t.fastFail)break}return l.value=i,P.value=!1,{valid:O,errors:l.value}}function c(){d.value.forEach(i=>i.reset())}function b(){d.value.forEach(i=>i.resetValidation())}return Ni(d,()=>{let i=0,O=0;const w=[];for(const y of d.value)y.isValid===!1?(O++,w.push({id:y.id,errorMessages:y.errorMessages})):y.isValid===!0&&i++;l.value=w,e.value=O>0?!1:i===d.value.length?!0:null},{deep:!0,flush:"post"}),gf(T2e,{register:i=>{let{id:O,vm:w,validate:y,reset:p,resetValidation:a}=i;d.value.some(u=>u.id===O),d.value.push({id:O,validate:y,reset:p,resetValidation:a,vm:uD(w),isValid:null,errorMessages:[]})},unregister:i=>{d.value=d.value.filter(O=>O.id!==i)},update:(i,O,w)=>{const y=d.value.find(p=>p.id===i);y&&(y.isValid=O,y.errorMessages=w)},isDisabled:o,isReadonly:f,isValidating:P,isValid:e,items:d,validateOn:Oi(t,"validateOn")}),{errors:l,isDisabled:o,isReadonly:f,isValidating:P,isValid:e,items:d,validate:n,reset:c,resetValidation:b}}function Cq(){return vl(T2e,null)}const mRe=ti({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Tq()},"validation");function gRe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_(),o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vv();const f=Al(t,"modelValue"),P=jn(()=>t.validationValue===void 0?f.value:t.validationValue),d=Cq(),l=ei([]),n=Ai(!0),c=jn(()=>!!(fm(f.value===""?null:f.value).length||fm(P.value===""?null:P.value).length)),b=jn(()=>!!(t.disabled??(d==null?void 0:d.isDisabled.value))),i=jn(()=>!!(t.readonly??(d==null?void 0:d.isReadonly.value))),O=jn(()=>{var S;return(S=t.errorMessages)!=null&&S.length?fm(t.errorMessages).concat(l.value).slice(0,Math.max(0,+t.maxErrors)):l.value}),w=jn(()=>{let S=(t.validateOn??(d==null?void 0:d.validateOn.value))||"input";S==="lazy"&&(S="input lazy");const A=new Set((S==null?void 0:S.split(" "))??[]);return{blur:A.has("blur")||A.has("input"),input:A.has("input"),submit:A.has("submit"),lazy:A.has("lazy")}}),y=jn(()=>{var S;return t.error||(S=t.errorMessages)!=null&&S.length?!1:t.rules.length?n.value?l.value.length||w.value.lazy?null:!0:!l.value.length:!0}),p=Ai(!1),a=jn(()=>({[`${e}--error`]:y.value===!1,[`${e}--dirty`]:c.value,[`${e}--disabled`]:b.value,[`${e}--readonly`]:i.value})),u=ph("validation"),h=jn(()=>t.name??wa(o));zle(()=>{d==null||d.register({id:h.value,vm:u,validate:_,reset:m,resetValidation:v})}),dm(()=>{d==null||d.unregister(h.value)}),ag(async()=>{w.value.lazy||await _(!0),d==null||d.update(h.value,y.value,O.value)}),x1(()=>w.value.input,()=>{Ni(P,()=>{if(P.value!=null)_();else if(t.focused){const S=Ni(()=>t.focused,A=>{A||_(),S()})}})}),x1(()=>w.value.blur,()=>{Ni(()=>t.focused,S=>{S||_()})}),Ni([y,O],()=>{d==null||d.update(h.value,y.value,O.value)});async function m(){f.value=null,await lc(),await v()}async function v(){n.value=!0,w.value.lazy?l.value=[]:await _(!0)}async function _(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=[];p.value=!0;for(const x of t.rules){if(A.length>=+(t.maxErrors??1))break;const M=await(typeof x=="function"?x:()=>x)(P.value);if(M!==!0){if(M!==!1&&typeof M!="string"){console.warn(`${M} is not a valid value. Rule functions must return boolean true or a string.`);continue}A.push(M||"")}}return l.value=A,p.value=!1,n.value=S,l.value}return{errorMessages:O,isDirty:c,isDisabled:b,isReadonly:i,isPristine:n,isValid:y,isValidating:p,reset:m,resetValidation:v,validate:_,validationClasses:a}}const DM=ti({id:String,appendIcon:Cl,centerAffix:{type:Boolean,default:!0},prependIcon:Cl,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":rg(),"onClick:append":rg(),...xs(),...Qv(),...bPe(O_(),["maxWidth","minWidth","width"]),...Ff(),...mRe()},"VInput"),p_=ta()({name:"VInput",props:{...DM()},emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f,emit:P}=e;const{densityClasses:d}=kx(t),{dimensionStyles:l}=S_(t),{themeClasses:n}=Md(t),{rtlClasses:c}=qg(),{InputIcon:b}=k2e(t),i=Vv(),O=jn(()=>t.id||`input-${i}`),w=jn(()=>`${O.value}-messages`),{errorMessages:y,isDirty:p,isDisabled:a,isReadonly:u,isPristine:h,isValid:m,isValidating:v,reset:_,resetValidation:S,validate:A,validationClasses:x}=gRe(t,"v-input",O),R=jn(()=>({id:O,messagesId:w,isDirty:p,isDisabled:a,isReadonly:u,isPristine:h,isValid:m,isValidating:v,reset:_,resetValidation:S,validate:A})),M=jn(()=>{var T;return(T=t.errorMessages)!=null&&T.length||!h.value&&y.value.length?y.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages});return Ca(()=>{var D,k,I,z;const T=!!(f.prepend||t.prependIcon),E=!!(f.append||t.appendIcon),C=M.value.length>0,L=!t.hideDetails||t.hideDetails==="auto"&&(C||!!f.details);return Zt("div",{class:["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix,"v-input--hide-spin-buttons":t.hideSpinButtons},d.value,n.value,c.value,x.value,t.class],style:[l.value,t.style]},[T&&Zt("div",{key:"prepend",class:"v-input__prepend"},[(D=f.prepend)==null?void 0:D.call(f,R.value),t.prependIcon&&Zt(b,{key:"prepend-icon",name:"prepend"},null)]),f.default&&Zt("div",{class:"v-input__control"},[(k=f.default)==null?void 0:k.call(f,R.value)]),E&&Zt("div",{key:"append",class:"v-input__append"},[t.appendIcon&&Zt(b,{key:"append-icon",name:"append"},null),(I=f.append)==null?void 0:I.call(f,R.value)]),L&&Zt("div",{class:"v-input__details"},[Zt(dRe,{id:w.value,active:C,messages:M.value},{message:f.message}),(z=f.details)==null?void 0:z.call(f,R.value)])])}),{reset:_,resetValidation:S,validate:A,isValid:m,errorMessages:y}}});const Aq=["sm","md","lg","xl","xxl"],Fse=Symbol.for("vuetify:display"),lge={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},vRe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lge;return Ug(lge,t)};function cge(t){return ou&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function uge(t){return ou&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function fge(t){const e=ou&&!t?window.navigator.userAgent:"ssr";function o(p){return!!e.match(p)}const f=o(/android/i),P=o(/iphone|ipad|ipod/i),d=o(/cordova/i),l=o(/electron/i),n=o(/chrome/i),c=o(/edge/i),b=o(/firefox/i),i=o(/opera/i),O=o(/win/i),w=o(/mac/i),y=o(/linux/i);return{android:f,ios:P,cordova:d,electron:l,chrome:n,edge:c,firefox:b,opera:i,win:O,mac:w,linux:y,touch:gPe,ssr:e==="ssr"}}function yRe(t,e){const{thresholds:o,mobileBreakpoint:f}=vRe(t),P=Ai(uge(e)),d=Ai(fge(e)),l=lm({}),n=Ai(cge(e));function c(){P.value=uge(),n.value=cge()}function b(){c(),d.value=fge()}return kp(()=>{const i=n.value=o.xxl,u=i?"xs":O?"sm":w?"md":y?"lg":p?"xl":"xxl",h=typeof f=="number"?f:o[f],m=n.value0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();const o=vl(Fse);if(!o)throw new Error("Could not find Vuetify display injection");const f=jn(()=>{if(t.mobile!=null)return t.mobile;if(!t.mobileBreakpoint)return o.mobile.value;const d=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:o.thresholds.value[t.mobileBreakpoint];return o.width.valuee?{[`${e}--mobile`]:f.value}:{});return{...o,displayClasses:P,mobile:f}}const C2e=Symbol.for("vuetify:goto");function A2e(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5}}}function bRe(t){return nue(t)??(document.scrollingElement||document.body)}function nue(t){return typeof t=="string"?document.querySelector(t):$ce(t)}function Uie(t,e,o){if(typeof t=="number")return e&&o?-t:t;let f=nue(t),P=0;for(;f;)P+=e?f.offsetLeft:f.offsetTop,f=f.offsetParent;return P}function xRe(t,e){return{rtl:e.isRtl,options:Ug(A2e(),t)}}async function dge(t,e,o,f){const P=o?"scrollLeft":"scrollTop",d=Ug((f==null?void 0:f.options)??A2e(),e),l=f==null?void 0:f.rtl.value,n=(typeof t=="number"?t:nue(t))??0,c=d.container==="parent"&&n instanceof HTMLElement?n.parentElement:bRe(d.container),b=typeof d.easing=="function"?d.easing:d.patterns[d.easing];if(!b)throw new TypeError(`Easing function "${d.easing}" not found.`);let i;if(typeof n=="number")i=Uie(n,o,l);else if(i=Uie(n,o,l)-Uie(c,o,l),d.layout){const p=window.getComputedStyle(n).getPropertyValue("--v-layout-top");p&&(i-=parseInt(p,10))}i+=d.offset,i=wRe(c,i,!!l,!!o);const O=c[P]??0;if(i===O)return Promise.resolve(i);const w=performance.now();return new Promise(y=>requestAnimationFrame(function p(a){const h=(a-w)/d.duration,m=Math.floor(O+(i-O)*b(Qg(h,0,1)));if(c[P]=m,h>=1&&Math.abs(m-c[P])<10)return y(i);if(h>2)return y(c[P]);requestAnimationFrame(p)}))}function _Re(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=vl(C2e),{isRtl:o}=qg();if(!e)throw new Error("[Vuetify] Could not find injected goto instance");const f={...e,rtl:jn(()=>e.rtl.value||o.value)};async function P(d,l){return dge(d,Ug(t,l),!1,f)}return P.horizontal=async(d,l)=>dge(d,Ug(t,l),!0,f),P}function wRe(t,e,o,f){const{scrollWidth:P,scrollHeight:d}=t,[l,n]=t===document.scrollingElement?[window.innerWidth,window.innerHeight]:[t.offsetWidth,t.offsetHeight];let c,b;return f?o?(c=-(P-l),b=0):(c=0,b=P-l):(c=0,b=d+-n),Math.max(Math.min(e,b),c)}function ORe(t){let{selectedElement:e,containerElement:o,isRtl:f,isHorizontal:P}=t;const d=KI(P,o),l=M2e(P,f,o),n=KI(P,e),c=E2e(P,e),b=n*.4;return l>c?c-b:l+dtypeof t=="boolean"||["always","desktop","mobile"].includes(t)},...xs(),...CD({mobile:null}),...Tu(),...mq({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),pge=ta()({name:"VSlideGroup",props:P2e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isRtl:f}=qg(),{displayClasses:P,mobile:d}=bS(t),l=gq(t,t.symbol),n=Ai(!1),c=Ai(0),b=Ai(0),i=Ai(0),O=jn(()=>t.direction==="horizontal"),{resizeRef:w,contentRect:y}=fS(),{resizeRef:p,contentRect:a}=fS(),u=_Re(),h=jn(()=>({container:w.el,duration:200,easing:"easeOutQuart"})),m=jn(()=>l.selected.value.length?l.items.value.findIndex(j=>j.id===l.selected.value[0]):-1),v=jn(()=>l.selected.value.length?l.items.value.findIndex(j=>j.id===l.selected.value[l.selected.value.length-1]):-1);if(ou){let j=-1;Ni(()=>[l.selected.value,y.value,a.value,O.value],()=>{cancelAnimationFrame(j),j=requestAnimationFrame(()=>{if(y.value&&a.value){const U=O.value?"width":"height";b.value=y.value[U],i.value=a.value[U],n.value=b.value+1=0&&p.el){const U=p.el.children[v.value];S(U,t.centerActive)}})})}const _=Ai(!1);function S(j,U){let X=0;U?X=SRe({containerElement:w.el,isHorizontal:O.value,selectedElement:j}):X=ORe({containerElement:w.el,isHorizontal:O.value,isRtl:f.value,selectedElement:j}),A(X)}function A(j){if(!ou||!w.el)return;const U=KI(O.value,w.el),X=M2e(O.value,f.value,w.el);if(!(hge(O.value,w.el)<=U||Math.abs(j-X)<16)){if(O.value&&f.value&&w.el){const{scrollWidth:W,offsetWidth:K}=w.el;j=W-K-j}O.value?u.horizontal(j,h.value):u(j,h.value)}}function x(j){const{scrollTop:U,scrollLeft:X}=j.target;c.value=O.value?X:U}function R(j){if(_.value=!0,!(!n.value||!p.el)){for(const U of j.composedPath())for(const X of p.el.children)if(X===U){S(X);return}}}function M(j){_.value=!1}let T=!1;function E(j){var U;!T&&!_.value&&!(j.relatedTarget&&((U=p.el)!=null&&U.contains(j.relatedTarget)))&&D(),T=!1}function C(){T=!0}function L(j){if(!p.el)return;function U(X){j.preventDefault(),D(X)}O.value?j.key==="ArrowRight"?U(f.value?"prev":"next"):j.key==="ArrowLeft"&&U(f.value?"next":"prev"):j.key==="ArrowDown"?U("next"):j.key==="ArrowUp"&&U("prev"),j.key==="Home"?U("first"):j.key==="End"&&U("last")}function D(j){var X,te;if(!p.el)return;let U;if(!j)U=qI(p.el)[0];else if(j==="next"){if(U=(X=p.el.querySelector(":focus"))==null?void 0:X.nextElementSibling,!U)return D("first")}else if(j==="prev"){if(U=(te=p.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!U)return D("last")}else j==="first"?U=p.el.firstElementChild:j==="last"&&(U=p.el.lastElementChild);U&&U.focus({preventScroll:!0})}function k(j){const U=O.value&&f.value?-1:1,X=(j==="prev"?-U:U)*b.value;let te=c.value+X;if(O.value&&f.value&&w.el){const{scrollWidth:W,offsetWidth:K}=w.el;te+=W-K}A(te)}const I=jn(()=>({next:l.next,prev:l.prev,select:l.select,isSelected:l.isSelected})),z=jn(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!d.value;case!0:return n.value||Math.abs(c.value)>0;case"mobile":return d.value||n.value||Math.abs(c.value)>0;default:return!d.value&&(n.value||Math.abs(c.value)>0)}}),$=jn(()=>Math.abs(c.value)>1),Q=jn(()=>{if(!w.value)return!1;const j=hge(O.value,w.el),U=kRe(O.value,w.el);return j-U-Math.abs(c.value)>1});return Ca(()=>Zt(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!O.value,"v-slide-group--has-affixes":z.value,"v-slide-group--is-overflowing":n.value},P.value,t.class],style:t.style,tabindex:_.value||l.selected.value.length?-1:0,onFocus:E},{default:()=>{var j,U,X;return[z.value&&Zt("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!$.value}],onMousedown:C,onClick:()=>$.value&&k("prev")},[((j=o.prev)==null?void 0:j.call(o,I.value))??Zt(Jme,null,{default:()=>[Zt(Tl,{icon:f.value?t.nextIcon:t.prevIcon},null)]})]),Zt("div",{key:"container",ref:w,class:"v-slide-group__container",onScroll:x},[Zt("div",{ref:p,class:"v-slide-group__content",onFocusin:R,onFocusout:M,onKeydown:L},[(U=o.default)==null?void 0:U.call(o,I.value)])]),z.value&&Zt("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Q.value}],onMousedown:C,onClick:()=>Q.value&&k("next")},[((X=o.next)==null?void 0:X.call(o,I.value))??Zt(Jme,null,{default:()=>[Zt(Tl,{icon:f.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:l.selected,scrollTo:k,scrollOffset:c,focus:D}}}),R2e=Symbol.for("vuetify:v-chip-group"),CRe=ti({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:yS},...P2e(),...xs(),...mq({selectedClass:"v-chip--selected"}),...Tu(),...Ff(),...Tx({variant:"tonal"})},"VChipGroup");ta()({name:"VChipGroup",props:CRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{themeClasses:f}=Md(t),{isSelected:P,select:d,next:l,prev:n,selected:c}=gq(t,R2e);return ib({VChip:{color:Oi(t,"color"),disabled:Oi(t,"disabled"),filter:Oi(t,"filter"),variant:Oi(t,"variant")}}),Ca(()=>{const b=pge.filterProps(t);return Zt(pge,Di(b,{class:["v-chip-group",{"v-chip-group--column":t.column},f.value,t.class],style:t.style}),{default:()=>{var i;return[(i=o.default)==null?void 0:i.call(o,{isSelected:P,select:d,next:l,prev:n,selected:c.value})]}})}),{}}});const ARe=ti({activeClass:String,appendAvatar:String,appendIcon:Cl,closable:Boolean,closeIcon:{type:Cl,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Cl,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:rg(),onClickOnce:rg(),...k_(),...xs(),...Qv(),...jv(),...Jce(),...pm(),...Sq(),...RM(),...Tu({tag:"span"}),...Ff(),...Tx({variant:"tonal"})},"VChip"),AD=ta()({name:"VChip",directives:{Ripple:AT},props:ARe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{t:d}=Sx(),{borderClasses:l}=DO(t),{colorClasses:n,colorStyles:c,variantClasses:b}=CT(t),{densityClasses:i}=kx(t),{elevationClasses:O}=sb(t),{roundedClasses:w}=sg(t),{sizeClasses:y}=OD(t),{themeClasses:p}=Md(t),a=Al(t,"modelValue"),u=eue(t,R2e,!1),h=Oq(t,o),m=jn(()=>t.link!==!1&&h.isLink.value),v=jn(()=>!t.disabled&&t.link!==!1&&(!!u||t.link||h.isClickable.value)),_=jn(()=>({"aria-label":d(t.closeLabel),onClick(x){x.preventDefault(),x.stopPropagation(),a.value=!1,f("click:close",x)}}));function S(x){var R;f("click",x),v.value&&((R=h.navigate)==null||R.call(h,x),u==null||u.toggle())}function A(x){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),S(x))}return()=>{const x=h.isLink.value?"a":t.tag,R=!!(t.appendIcon||t.appendAvatar),M=!!(R||P.append),T=!!(P.close||t.closable),E=!!(P.filter||t.filter)&&u,C=!!(t.prependIcon||t.prependAvatar),L=!!(C||P.prepend),D=!u||u.isSelected.value;return a.value&&Tp(Zt(x,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":v.value,"v-chip--filter":E,"v-chip--pill":t.pill},p.value,l.value,D?n.value:void 0,i.value,O.value,w.value,y.value,b.value,u==null?void 0:u.selectedClass.value,t.class],style:[D?c.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:h.href.value,tabindex:v.value?0:void 0,onClick:S,onKeydown:v.value&&!m.value&&A},{default:()=>{var k;return[TT(v.value,"v-chip"),E&&Zt(e2e,{key:"filter"},{default:()=>[Tp(Zt("div",{class:"v-chip__filter"},[P.filter?Zt(du,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},P.filter):Zt(Tl,{key:"filter-icon",icon:t.filterIcon},null)]),[[pS,u.isSelected.value]])]}),L&&Zt("div",{key:"prepend",class:"v-chip__prepend"},[P.prepend?Zt(du,{key:"prepend-defaults",disabled:!C,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},P.prepend):Zt(ya,null,[t.prependIcon&&Zt(Tl,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&Zt(PO,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),Zt("div",{class:"v-chip__content","data-no-activator":""},[((k=P.default)==null?void 0:k.call(P,{isSelected:u==null?void 0:u.isSelected.value,selectedClass:u==null?void 0:u.selectedClass.value,select:u==null?void 0:u.select,toggle:u==null?void 0:u.toggle,value:u==null?void 0:u.value.value,disabled:t.disabled}))??t.text]),M&&Zt("div",{key:"append",class:"v-chip__append"},[P.append?Zt(du,{key:"append-defaults",disabled:!R,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},P.append):Zt(ya,null,[t.appendIcon&&Zt(Tl,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&Zt(PO,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),T&&Zt("button",Di({key:"close",class:"v-chip__close",type:"button"},_.value),[P.close?Zt(du,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},P.close):Zt(Tl,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[y_("ripple"),v.value&&t.ripple,null]])}}});const Nse=Symbol.for("vuetify:list");function L2e(){const t=vl(Nse,{hasPrepend:Ai(!1),updateHasPrepend:()=>null}),e={hasPrepend:Ai(!1),updateHasPrepend:o=>{o&&(e.hasPrepend.value=o)}};return gf(Nse,e),t}function I2e(){return vl(Nse,null)}const rue=t=>{const e={activate:o=>{let{id:f,value:P,activated:d}=o;return f=As(f),t&&!P&&d.size===1&&d.has(f)||(P?d.add(f):d.delete(f)),d},in:(o,f,P)=>{let d=new Set;if(o!=null)for(const l of fm(o))d=e.activate({id:l,value:!0,activated:new Set(d),children:f,parents:P});return d},out:o=>Array.from(o)};return e},D2e=t=>{const e=rue(t);return{activate:f=>{let{activated:P,id:d,...l}=f;d=As(d);const n=P.has(d)?new Set([d]):new Set;return e.activate({...l,id:d,activated:n})},in:(f,P,d)=>{let l=new Set;if(f!=null){const n=fm(f);n.length&&(l=e.in(n.slice(0,1),P,d))}return l},out:(f,P,d)=>e.out(f,P,d)}},MRe=t=>{const e=rue(t);return{activate:f=>{let{id:P,activated:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.activate({id:P,activated:d,children:l,...n})},in:e.in,out:e.out}},ERe=t=>{const e=D2e(t);return{activate:f=>{let{id:P,activated:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.activate({id:P,activated:d,children:l,...n})},in:e.in,out:e.out}},PRe={open:t=>{let{id:e,value:o,opened:f,parents:P}=t;if(o){const d=new Set;d.add(e);let l=P.get(e);for(;l!=null;)d.add(l),l=P.get(l);return d}else return f.delete(e),f},select:()=>null},B2e={open:t=>{let{id:e,value:o,opened:f,parents:P}=t;if(o){let d=P.get(e);for(f.add(e);d!=null&&d!==e;)f.add(d),d=P.get(d);return f}else f.delete(e);return f},select:()=>null},RRe={open:B2e.open,select:t=>{let{id:e,value:o,opened:f,parents:P}=t;if(!o)return f;const d=[];let l=P.get(e);for(;l!=null;)d.push(l),l=P.get(l);return new Set(d)}},oue=t=>{const e={select:o=>{let{id:f,value:P,selected:d}=o;if(f=As(f),t&&!P){const l=Array.from(d.entries()).reduce((n,c)=>{let[b,i]=c;return i==="on"&&n.push(b),n},[]);if(l.length===1&&l[0]===f)return d}return d.set(f,P?"on":"off"),d},in:(o,f,P)=>{let d=new Map;for(const l of o||[])d=e.select({id:l,value:!0,selected:new Map(d),children:f,parents:P});return d},out:o=>{const f=[];for(const[P,d]of o.entries())d==="on"&&f.push(P);return f}};return e},z2e=t=>{const e=oue(t);return{select:f=>{let{selected:P,id:d,...l}=f;d=As(d);const n=P.has(d)?new Map([[d,P.get(d)]]):new Map;return e.select({...l,id:d,selected:n})},in:(f,P,d)=>{let l=new Map;return f!=null&&f.length&&(l=e.in(f.slice(0,1),P,d)),l},out:(f,P,d)=>e.out(f,P,d)}},LRe=t=>{const e=oue(t);return{select:f=>{let{id:P,selected:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.select({id:P,selected:d,children:l,...n})},in:e.in,out:e.out}},IRe=t=>{const e=z2e(t);return{select:f=>{let{id:P,selected:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.select({id:P,selected:d,children:l,...n})},in:e.in,out:e.out}},DRe=t=>{const e={select:o=>{let{id:f,value:P,selected:d,children:l,parents:n}=o;f=As(f);const c=new Map(d),b=[f];for(;b.length;){const O=b.shift();d.set(O,P?"on":"off"),l.has(O)&&b.push(...l.get(O))}let i=n.get(f);for(;i;){const O=l.get(i),w=O.every(p=>d.get(p)==="on"),y=O.every(p=>!d.has(p)||d.get(p)==="off");d.set(i,w?"on":y?"off":"indeterminate"),i=n.get(i)}return t&&!P&&Array.from(d.entries()).reduce((w,y)=>{let[p,a]=y;return a==="on"&&w.push(p),w},[]).length===0?c:d},in:(o,f,P)=>{let d=new Map;for(const l of o||[])d=e.select({id:l,value:!0,selected:new Map(d),children:f,parents:P});return d},out:(o,f)=>{const P=[];for(const[d,l]of o.entries())l==="on"&&!f.has(d)&&P.push(d);return P}};return e},JI=Symbol.for("vuetify:nested"),F2e={id:Ai(),root:{register:()=>null,unregister:()=>null,parents:ei(new Map),children:ei(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ei(!1),selectable:ei(!1),opened:ei(new Set),activated:ei(new Set),selected:ei(new Map),selectedValues:ei([])}},BRe=ti({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),zRe=t=>{let e=!1;const o=ei(new Map),f=ei(new Map),P=Al(t,"opened",t.opened,y=>new Set(y),y=>[...y.values()]),d=jn(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return MRe(t.mandatory);case"single-leaf":return ERe(t.mandatory);case"independent":return rue(t.mandatory);case"single-independent":default:return D2e(t.mandatory)}}),l=jn(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return IRe(t.mandatory);case"leaf":return LRe(t.mandatory);case"independent":return oue(t.mandatory);case"single-independent":return z2e(t.mandatory);case"classic":default:return DRe(t.mandatory)}}),n=jn(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return RRe;case"single":return PRe;case"multiple":default:return B2e}}),c=Al(t,"activated",t.activated,y=>d.value.in(y,o.value,f.value),y=>d.value.out(y,o.value,f.value)),b=Al(t,"selected",t.selected,y=>l.value.in(y,o.value,f.value),y=>l.value.out(y,o.value,f.value));dm(()=>{e=!0});function i(y){const p=[];let a=y;for(;a!=null;)p.unshift(a),a=f.value.get(a);return p}const O=ph("nested"),w={id:Ai(),root:{opened:P,activatable:Oi(t,"activatable"),selectable:Oi(t,"selectable"),activated:c,selected:b,selectedValues:jn(()=>{const y=[];for(const[p,a]of b.value.entries())a==="on"&&y.push(p);return y}),register:(y,p,a)=>{p&&y!==p&&f.value.set(y,p),a&&o.value.set(y,[]),p!=null&&o.value.set(p,[...o.value.get(p)||[],y])},unregister:y=>{if(e)return;o.value.delete(y);const p=f.value.get(y);if(p){const a=o.value.get(p)??[];o.value.set(p,a.filter(u=>u!==y))}f.value.delete(y)},open:(y,p,a)=>{O.emit("click:open",{id:y,value:p,path:i(y),event:a});const u=n.value.open({id:y,value:p,opened:new Set(P.value),children:o.value,parents:f.value,event:a});u&&(P.value=u)},openOnSelect:(y,p,a)=>{const u=n.value.select({id:y,value:p,selected:new Map(b.value),opened:new Set(P.value),children:o.value,parents:f.value,event:a});u&&(P.value=u)},select:(y,p,a)=>{O.emit("click:select",{id:y,value:p,path:i(y),event:a});const u=l.value.select({id:y,value:p,selected:new Map(b.value),children:o.value,parents:f.value,event:a});u&&(b.value=u),w.root.openOnSelect(y,p,a)},activate:(y,p,a)=>{if(!t.activatable)return w.root.select(y,!0,a);O.emit("click:activate",{id:y,value:p,path:i(y),event:a});const u=d.value.activate({id:y,value:p,activated:new Set(c.value),children:o.value,parents:f.value,event:a});u&&(c.value=u)},children:o,parents:f}};return gf(JI,w),w.root},N2e=(t,e)=>{const o=vl(JI,F2e),f=Symbol(Vv()),P=jn(()=>t.value!==void 0?t.value:f),d={...o,id:P,open:(l,n)=>o.root.open(P.value,l,n),openOnSelect:(l,n)=>o.root.openOnSelect(P.value,l,n),isOpen:jn(()=>o.root.opened.value.has(P.value)),parent:jn(()=>o.root.parents.value.get(P.value)),activate:(l,n)=>o.root.activate(P.value,l,n),isActivated:jn(()=>o.root.activated.value.has(As(P.value))),select:(l,n)=>o.root.select(P.value,l,n),isSelected:jn(()=>o.root.selected.value.get(As(P.value))==="on"),isIndeterminate:jn(()=>o.root.selected.value.get(P.value)==="indeterminate"),isLeaf:jn(()=>!o.root.children.value.get(P.value)),isGroupActivator:o.isGroupActivator};return!o.isGroupActivator&&o.root.register(P.value,o.id.value,e),dm(()=>{!o.isGroupActivator&&o.root.unregister(P.value)}),e&&gf(JI,d),d},FRe=()=>{const t=vl(JI,F2e);gf(JI,{...t,isGroupActivator:!0})},NRe=PM({name:"VListGroupActivator",setup(t,e){let{slots:o}=e;return FRe(),()=>{var f;return(f=o.default)==null?void 0:f.call(o)}}}),$Re=ti({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Cl,default:"$collapse"},expandIcon:{type:Cl,default:"$expand"},prependIcon:Cl,appendIcon:Cl,fluid:Boolean,subgroup:Boolean,title:String,value:null,...xs(),...Tu()},"VListGroup"),mge=ta()({name:"VListGroup",props:$Re(),setup(t,e){let{slots:o}=e;const{isOpen:f,open:P,id:d}=N2e(Oi(t,"value"),!0),l=jn(()=>`v-list-group--id-${String(d.value)}`),n=I2e(),{isBooted:c}=pq();function b(y){y.stopPropagation(),P(!f.value,y)}const i=jn(()=>({onClick:b,class:"v-list-group__header",id:l.value})),O=jn(()=>f.value?t.collapseIcon:t.expandIcon),w=jn(()=>({VListItem:{active:f.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&O.value,appendIcon:t.appendIcon||!t.subgroup&&O.value,title:t.title,value:t.value}}));return Ca(()=>Zt(t.tag,{class:["v-list-group",{"v-list-group--prepend":n==null?void 0:n.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":f.value},t.class],style:t.style},{default:()=>[o.activator&&Zt(du,{defaults:w.value},{default:()=>[Zt(NRe,null,{default:()=>[o.activator({props:i.value,isOpen:f.value})]})]}),Zt(X4,{transition:{component:Xce},disabled:!c.value},{default:()=>{var y;return[Tp(Zt("div",{class:"v-list-group__items",role:"group","aria-labelledby":l.value},[(y=o.default)==null?void 0:y.call(o)]),[[pS,f.value]])]}})]})),{isOpen:f}}});const VRe=ti({opacity:[Number,String],...xs(),...Tu()},"VListItemSubtitle"),URe=ta()({name:"VListItemSubtitle",props:VRe(),setup(t,e){let{slots:o}=e;return Ca(()=>Zt(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},o)),{}}}),qy=hq("v-list-item-title"),jRe=ti({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Cl,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Cl,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:rg(),onClickOnce:rg(),...k_(),...xs(),...Qv(),...O_(),...jv(),...pm(),...Sq(),...Tu(),...Ff(),...Tx({variant:"text"})},"VListItem"),Bf=ta()({name:"VListItem",directives:{Ripple:AT},props:jRe(),emits:{click:t=>!0},setup(t,e){let{attrs:o,slots:f,emit:P}=e;const d=Oq(t,o),l=jn(()=>t.value===void 0?d.href.value:t.value),{activate:n,isActivated:c,select:b,isSelected:i,isIndeterminate:O,isGroupActivator:w,root:y,parent:p,openOnSelect:a}=N2e(l,!1),u=I2e(),h=jn(()=>{var j;return t.active!==!1&&(t.active||((j=d.isActive)==null?void 0:j.value)||(y.activatable.value?c.value:i.value))}),m=jn(()=>t.link!==!1&&d.isLink.value),v=jn(()=>!t.disabled&&t.link!==!1&&(t.link||d.isClickable.value||!!u&&(y.selectable.value||y.activatable.value||t.value!=null))),_=jn(()=>t.rounded||t.nav),S=jn(()=>t.color??t.activeColor),A=jn(()=>({color:h.value?S.value??t.baseColor:t.baseColor,variant:t.variant}));Ni(()=>{var j;return(j=d.isActive)==null?void 0:j.value},j=>{j&&p.value!=null&&y.open(p.value,!0),j&&a(j)},{immediate:!0});const{themeClasses:x}=Md(t),{borderClasses:R}=DO(t),{colorClasses:M,colorStyles:T,variantClasses:E}=CT(A),{densityClasses:C}=kx(t),{dimensionStyles:L}=S_(t),{elevationClasses:D}=sb(t),{roundedClasses:k}=sg(_),I=jn(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),z=jn(()=>({isActive:h.value,select:b,isSelected:i.value,isIndeterminate:O.value}));function $(j){var U;P("click",j),v.value&&((U=d.navigate)==null||U.call(d,j),!w&&(y.activatable.value?n(!c.value,j):(y.selectable.value||t.value!=null)&&b(!i.value,j)))}function Q(j){(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),$(j))}return Ca(()=>{const j=m.value?"a":t.tag,U=f.title||t.title!=null,X=f.subtitle||t.subtitle!=null,te=!!(t.appendAvatar||t.appendIcon),W=!!(te||f.append),K=!!(t.prependAvatar||t.prependIcon),oe=!!(K||f.prepend);return u==null||u.updateHasPrepend(oe),t.activeColor&&FPe("active-color",["color","base-color"]),Tp(Zt(j,{class:["v-list-item",{"v-list-item--active":h.value,"v-list-item--disabled":t.disabled,"v-list-item--link":v.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!oe&&(u==null?void 0:u.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&h.value},x.value,R.value,M.value,C.value,D.value,I.value,k.value,E.value,t.class],style:[T.value,L.value,t.style],href:d.href.value,tabindex:v.value?u?-2:0:void 0,onClick:$,onKeydown:v.value&&!m.value&&Q},{default:()=>{var q;return[TT(v.value||h.value,"v-list-item"),oe&&Zt("div",{key:"prepend",class:"v-list-item__prepend"},[f.prepend?Zt(du,{key:"prepend-defaults",disabled:!K,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var Y;return[(Y=f.prepend)==null?void 0:Y.call(f,z.value)]}}):Zt(ya,null,[t.prependAvatar&&Zt(PO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&Zt(Tl,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),Zt("div",{class:"v-list-item__spacer"},null)]),Zt("div",{class:"v-list-item__content","data-no-activator":""},[U&&Zt(qy,{key:"title"},{default:()=>{var Y;return[((Y=f.title)==null?void 0:Y.call(f,{title:t.title}))??t.title]}}),X&&Zt(URe,{key:"subtitle"},{default:()=>{var Y;return[((Y=f.subtitle)==null?void 0:Y.call(f,{subtitle:t.subtitle}))??t.subtitle]}}),(q=f.default)==null?void 0:q.call(f,z.value)]),W&&Zt("div",{key:"append",class:"v-list-item__append"},[f.append?Zt(du,{key:"append-defaults",disabled:!te,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var Y;return[(Y=f.append)==null?void 0:Y.call(f,z.value)]}}):Zt(ya,null,[t.appendIcon&&Zt(Tl,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&Zt(PO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),Zt("div",{class:"v-list-item__spacer"},null)])]}}),[[y_("ripple"),v.value&&t.ripple]])}),{activate:n,isActivated:c,isGroupActivator:w,isSelected:i,list:u,select:b}}}),QRe=ti({color:String,inset:Boolean,sticky:Boolean,title:String,...xs(),...Tu()},"VListSubheader"),HRe=ta()({name:"VListSubheader",props:QRe(),setup(t,e){let{slots:o}=e;const{textColorClasses:f,textColorStyles:P}=$v(Oi(t,"color"));return Ca(()=>{const d=!!(o.default||t.title);return Zt(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},f.value,t.class],style:[{textColorStyles:P},t.style]},{default:()=>{var l;return[d&&Zt("div",{class:"v-list-subheader__text"},[((l=o.default)==null?void 0:l.call(o))??t.title])]}})}),{}}});const ZRe=ti({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...xs(),...Ff()},"VDivider"),yM=ta()({name:"VDivider",props:ZRe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:P}=Md(t),{textColorClasses:d,textColorStyles:l}=$v(Oi(t,"color")),n=jn(()=>{const c={};return t.length&&(c[t.vertical?"height":"width"]=Ma(t.length)),t.thickness&&(c[t.vertical?"borderRightWidth":"borderTopWidth"]=Ma(t.thickness)),c});return Ca(()=>{const c=Zt("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},P.value,d.value,t.class],style:[n.value,l.value,{"--v-border-opacity":t.opacity},t.style],"aria-orientation":!o.role||o.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${o.role||"separator"}`},null);return f.default?Zt("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[c,Zt("div",{class:"v-divider__content"},[f.default()]),c]):c}),{}}}),qRe=ti({items:Array,returnObject:Boolean},"VListChildren"),$2e=ta()({name:"VListChildren",props:qRe(),setup(t,e){let{slots:o}=e;return L2e(),()=>{var f,P;return((f=o.default)==null?void 0:f.call(o))??((P=t.items)==null?void 0:P.map(d=>{var w,y;let{children:l,props:n,type:c,raw:b}=d;if(c==="divider")return((w=o.divider)==null?void 0:w.call(o,{props:n}))??Zt(yM,n,null);if(c==="subheader")return((y=o.subheader)==null?void 0:y.call(o,{props:n}))??Zt(HRe,n,null);const i={subtitle:o.subtitle?p=>{var a;return(a=o.subtitle)==null?void 0:a.call(o,{...p,item:b})}:void 0,prepend:o.prepend?p=>{var a;return(a=o.prepend)==null?void 0:a.call(o,{...p,item:b})}:void 0,append:o.append?p=>{var a;return(a=o.append)==null?void 0:a.call(o,{...p,item:b})}:void 0,title:o.title?p=>{var a;return(a=o.title)==null?void 0:a.call(o,{...p,item:b})}:void 0},O=mge.filterProps(n);return l?Zt(mge,Di({value:n==null?void 0:n.value},O),{activator:p=>{let{props:a}=p;const u={...n,...a,value:t.returnObject?b:n.value};return o.header?o.header({props:u}):Zt(Bf,u,i)},default:()=>Zt($2e,{items:l,returnObject:t.returnObject},o)}):o.item?o.item({props:n}):Zt(Bf,Di(n,{value:t.returnObject?b:n.value}),i)}))}}}),V2e=ti({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:yS}},"list-items");function Z4(t,e){const o=y1(e,t.itemTitle,e),f=y1(e,t.itemValue,o),P=y1(e,t.itemChildren),d=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?__(e,["children"]):e:void 0:y1(e,t.itemProps),l={title:o,value:f,...d};return{title:String(l.title??""),value:l.value,props:l,children:Array.isArray(P)?U2e(t,P):void 0,raw:e}}function U2e(t,e){const o=[];for(const f of e)o.push(Z4(t,f));return o}function iue(t){const e=jn(()=>U2e(t,t.items)),o=jn(()=>e.value.some(d=>d.value===null));function f(d){return o.value||(d=d.filter(l=>l!==null)),d.map(l=>t.returnObject&&typeof l=="string"?Z4(t,l):e.value.find(n=>t.valueComparator(l,n.value))||Z4(t,l))}function P(d){return t.returnObject?d.map(l=>{let{raw:n}=l;return n}):d.map(l=>{let{value:n}=l;return n})}return{items:e,transformIn:f,transformOut:P}}function WRe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function YRe(t,e){const o=y1(e,t.itemType,"item"),f=WRe(e)?e:y1(e,t.itemTitle),P=y1(e,t.itemValue,void 0),d=y1(e,t.itemChildren),l=t.itemProps===!0?__(e,["children"]):y1(e,t.itemProps),n={title:f,value:P,...l};return{type:o,title:n.title,value:n.value,props:n,children:o==="item"&&d?j2e(t,d):void 0,raw:e}}function j2e(t,e){const o=[];for(const f of e)o.push(YRe(t,f));return o}function XRe(t){return{items:jn(()=>j2e(t,t.items))}}const GRe=ti({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":rg(),"onClick:select":rg(),"onUpdate:opened":rg(),...BRe({selectStrategy:"single-leaf",openStrategy:"list"}),...k_(),...xs(),...Qv(),...O_(),...jv(),itemType:{type:String,default:"type"},...V2e(),...pm(),...Tu(),...Ff(),...Tx({variant:"text"})},"VList"),m_=ta()({name:"VList",props:GRe(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:o}=e;const{items:f}=XRe(t),{themeClasses:P}=Md(t),{backgroundColorClasses:d,backgroundColorStyles:l}=og(Oi(t,"bgColor")),{borderClasses:n}=DO(t),{densityClasses:c}=kx(t),{dimensionStyles:b}=S_(t),{elevationClasses:i}=sb(t),{roundedClasses:O}=sg(t),{children:w,open:y,parents:p,select:a}=zRe(t),u=jn(()=>t.lines?`v-list--${t.lines}-line`:void 0),h=Oi(t,"activeColor"),m=Oi(t,"baseColor"),v=Oi(t,"color");L2e(),ib({VListGroup:{activeColor:h,baseColor:m,color:v,expandIcon:Oi(t,"expandIcon"),collapseIcon:Oi(t,"collapseIcon")},VListItem:{activeClass:Oi(t,"activeClass"),activeColor:h,baseColor:m,color:v,density:Oi(t,"density"),disabled:Oi(t,"disabled"),lines:Oi(t,"lines"),nav:Oi(t,"nav"),slim:Oi(t,"slim"),variant:Oi(t,"variant")}});const _=Ai(!1),S=ei();function A(C){_.value=!0}function x(C){_.value=!1}function R(C){var L;!_.value&&!(C.relatedTarget&&((L=S.value)!=null&&L.contains(C.relatedTarget)))&&E()}function M(C){const L=C.target;if(!(!S.value||["INPUT","TEXTAREA"].includes(L.tagName))){if(C.key==="ArrowDown")E("next");else if(C.key==="ArrowUp")E("prev");else if(C.key==="Home")E("first");else if(C.key==="End")E("last");else return;C.preventDefault()}}function T(C){_.value=!0}function E(C){if(S.value)return cZ(S.value,C)}return Ca(()=>Zt(t.tag,{ref:S,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},P.value,d.value,n.value,c.value,i.value,u.value,O.value,t.class],style:[l.value,b.value,t.style],tabindex:t.disabled||_.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:A,onFocusout:x,onFocus:R,onKeydown:M,onMousedown:T},{default:()=>[Zt($2e,{items:f.value,returnObject:t.returnObject},o)]})),{open:y,select:a,focus:E,children:w,parents:p}}});function jie(t,e){return{x:t.x+e.x,y:t.y+e.y}}function KRe(t,e){return{x:t.x-e.x,y:t.y-e.y}}function gge(t,e){if(t.side==="top"||t.side==="bottom"){const{side:o,align:f}=t,P=f==="left"?0:f==="center"?e.width/2:f==="right"?e.width:f,d=o==="top"?0:o==="bottom"?e.height:o;return jie({x:P,y:d},e)}else if(t.side==="left"||t.side==="right"){const{side:o,align:f}=t,P=o==="left"?0:o==="right"?e.width:o,d=f==="top"?0:f==="center"?e.height/2:f==="bottom"?e.height:f;return jie({x:P,y:d},e)}return jie({x:e.width/2,y:e.height/2},e)}const Q2e={static:tLe,connected:rLe},JRe=ti({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in Q2e},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function eLe(t,e){const o=ei({}),f=ei();ou&&x1(()=>!!(e.isActive.value&&t.locationStrategy),d=>{var l,n;Ni(()=>t.locationStrategy,d),ig(()=>{window.removeEventListener("resize",P),f.value=void 0}),window.addEventListener("resize",P,{passive:!0}),typeof t.locationStrategy=="function"?f.value=(l=t.locationStrategy(e,t,o))==null?void 0:l.updateLocation:f.value=(n=Q2e[t.locationStrategy](e,t,o))==null?void 0:n.updateLocation});function P(d){var l;(l=f.value)==null||l.call(f,d)}return{contentStyles:o,updateLocation:f}}function tLe(){}function nLe(t,e){e?t.style.removeProperty("left"):t.style.removeProperty("right");const o=jce(t);return e?o.x+=parseFloat(t.style.right||0):o.x-=parseFloat(t.style.left||0),o.y-=parseFloat(t.style.top||0),o}function rLe(t,e,o){(Array.isArray(t.target.value)||s9e(t.target.value))&&Object.assign(o.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:P,preferredOrigin:d}=Uce(()=>{const p=Rse(e.location,t.isRtl.value),a=e.origin==="overlap"?p:e.origin==="auto"?Fie(p):Rse(e.origin,t.isRtl.value);return p.side===a.side&&p.align===Nie(a).align?{preferredAnchor:Rme(p),preferredOrigin:Rme(a)}:{preferredAnchor:p,preferredOrigin:a}}),[l,n,c,b]=["minWidth","minHeight","maxWidth","maxHeight"].map(p=>jn(()=>{const a=parseFloat(e[p]);return isNaN(a)?1/0:a})),i=jn(()=>{if(Array.isArray(e.offset))return e.offset;if(typeof e.offset=="string"){const p=e.offset.split(" ").map(parseFloat);return p.length<2&&p.push(0),p}return typeof e.offset=="number"?[e.offset,0]:[0,0]});let O=!1;const w=new ResizeObserver(()=>{O&&y()});Ni([t.target,t.contentEl],(p,a)=>{let[u,h]=p,[m,v]=a;m&&!Array.isArray(m)&&w.unobserve(m),u&&!Array.isArray(u)&&w.observe(u),v&&w.unobserve(v),h&&w.observe(h)},{immediate:!0}),ig(()=>{w.disconnect()});function y(){if(O=!1,requestAnimationFrame(()=>O=!0),!t.target.value||!t.contentEl.value)return;const p=Bxe(t.target.value),a=nLe(t.contentEl.value,t.isRtl.value),u=dZ(t.contentEl.value),h=12;u.length||(u.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(a.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),a.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const m=u.reduce((E,C)=>{const L=C.getBoundingClientRect(),D=new dT({x:C===document.documentElement?0:L.x,y:C===document.documentElement?0:L.y,width:C.clientWidth,height:C.clientHeight});return E?new dT({x:Math.max(E.left,D.left),y:Math.max(E.top,D.top),width:Math.min(E.right,D.right)-Math.max(E.left,D.left),height:Math.min(E.bottom,D.bottom)-Math.max(E.top,D.top)}):D},void 0);m.x+=h,m.y+=h,m.width-=h*2,m.height-=h*2;let v={anchor:P.value,origin:d.value};function _(E){const C=new dT(a),L=gge(E.anchor,p),D=gge(E.origin,C);let{x:k,y:I}=KRe(L,D);switch(E.anchor.side){case"top":I-=i.value[0];break;case"bottom":I+=i.value[0];break;case"left":k-=i.value[0];break;case"right":k+=i.value[0];break}switch(E.anchor.align){case"top":I-=i.value[1];break;case"bottom":I+=i.value[1];break;case"left":k-=i.value[1];break;case"right":k+=i.value[1];break}return C.x+=k,C.y+=I,C.width=Math.min(C.width,c.value),C.height=Math.min(C.height,b.value),{overflows:Ime(C,m),x:k,y:I}}let S=0,A=0;const x={x:0,y:0},R={x:!1,y:!1};let M=-1;for(;!(M++>10);){const{x:E,y:C,overflows:L}=_(v);S+=E,A+=C,a.x+=E,a.y+=C;{const D=Lme(v.anchor),k=L.x.before||L.x.after,I=L.y.before||L.y.after;let z=!1;if(["x","y"].forEach($=>{if($==="x"&&k&&!R.x||$==="y"&&I&&!R.y){const Q={anchor:{...v.anchor},origin:{...v.origin}},j=$==="x"?D==="y"?Nie:Fie:D==="y"?Fie:Nie;Q.anchor=j(Q.anchor),Q.origin=j(Q.origin);const{overflows:U}=_(Q);(U[$].before<=L[$].before&&U[$].after<=L[$].after||U[$].before+U[$].after<(L[$].before+L[$].after)/2)&&(v=Q,z=R[$]=!0)}}),z)continue}L.x.before&&(S+=L.x.before,a.x+=L.x.before),L.x.after&&(S-=L.x.after,a.x-=L.x.after),L.y.before&&(A+=L.y.before,a.y+=L.y.before),L.y.after&&(A-=L.y.after,a.y-=L.y.after);{const D=Ime(a,m);x.x=m.width-D.x.before-D.x.after,x.y=m.height-D.y.before-D.y.after,S+=D.x.before,a.x+=D.x.before,A+=D.y.before,a.y+=D.y.before}break}const T=Lme(v.anchor);return Object.assign(o.value,{"--v-overlay-anchor-origin":`${v.anchor.side} ${v.anchor.align}`,transformOrigin:`${v.origin.side} ${v.origin.align}`,top:Ma(Qie(A)),left:t.isRtl.value?void 0:Ma(Qie(S)),right:t.isRtl.value?Ma(Qie(-S)):void 0,minWidth:Ma(T==="y"?Math.min(l.value,p.width):l.value),maxWidth:Ma(vge(Qg(x.x,l.value===1/0?0:l.value,c.value))),maxHeight:Ma(vge(Qg(x.y,n.value===1/0?0:n.value,b.value)))}),{available:x,contentBox:a}}return Ni(()=>[P.value,d.value,e.offset,e.minWidth,e.minHeight,e.maxWidth,e.maxHeight],()=>y()),lc(()=>{const p=y();if(!p)return;const{available:a,contentBox:u}=p;u.height>a.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function Qie(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function vge(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let $se=!0;const vZ=[];function oLe(t){!$se||vZ.length?(vZ.push(t),Vse()):($se=!1,t(),Vse())}let yge=-1;function Vse(){cancelAnimationFrame(yge),yge=requestAnimationFrame(()=>{const t=vZ.shift();t&&t(),vZ.length?Vse():$se=!0})}const kH={none:null,close:sLe,block:lLe,reposition:cLe},iLe=ti({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in kH}},"VOverlay-scroll-strategies");function aLe(t,e){if(!ou)return;let o;kp(async()=>{o==null||o.stop(),e.isActive.value&&t.scrollStrategy&&(o=cD(),await new Promise(f=>setTimeout(f)),o.active&&o.run(()=>{var f;typeof t.scrollStrategy=="function"?t.scrollStrategy(e,t,o):(f=kH[t.scrollStrategy])==null||f.call(kH,e,t,o)}))}),ig(()=>{o==null||o.stop()})}function sLe(t){function e(o){t.isActive.value=!1}H2e(t.targetEl.value??t.contentEl.value,e)}function lLe(t,e){var l;const o=(l=t.root.value)==null?void 0:l.offsetParent,f=[...new Set([...dZ(t.targetEl.value,e.contained?o:void 0),...dZ(t.contentEl.value,e.contained?o:void 0)])].filter(n=>!n.classList.contains("v-overlay-scroll-blocked")),P=window.innerWidth-document.documentElement.offsetWidth,d=(n=>Zce(n)&&n)(o||document.documentElement);d&&t.root.value.classList.add("v-overlay--scroll-blocked"),f.forEach((n,c)=>{n.style.setProperty("--v-body-scroll-x",Ma(-n.scrollLeft)),n.style.setProperty("--v-body-scroll-y",Ma(-n.scrollTop)),n!==document.documentElement&&n.style.setProperty("--v-scrollbar-offset",Ma(P)),n.classList.add("v-overlay-scroll-blocked")}),ig(()=>{f.forEach((n,c)=>{const b=parseFloat(n.style.getPropertyValue("--v-body-scroll-x")),i=parseFloat(n.style.getPropertyValue("--v-body-scroll-y")),O=n.style.scrollBehavior;n.style.scrollBehavior="auto",n.style.removeProperty("--v-body-scroll-x"),n.style.removeProperty("--v-body-scroll-y"),n.style.removeProperty("--v-scrollbar-offset"),n.classList.remove("v-overlay-scroll-blocked"),n.scrollLeft=-b,n.scrollTop=-i,n.style.scrollBehavior=O}),d&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function cLe(t,e,o){let f=!1,P=-1,d=-1;function l(n){oLe(()=>{var i,O;const c=performance.now();(O=(i=t.updateLocation).value)==null||O.call(i,n),f=(performance.now()-c)/(1e3/60)>2})}d=(typeof requestIdleCallback>"u"?n=>n():requestIdleCallback)(()=>{o.run(()=>{H2e(t.targetEl.value??t.contentEl.value,n=>{f?(cancelAnimationFrame(P),P=requestAnimationFrame(()=>{P=requestAnimationFrame(()=>{l(n)})})):l(n)})})}),ig(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(d),cancelAnimationFrame(P)})}function H2e(t,e){const o=[document,...dZ(t)];o.forEach(f=>{f.addEventListener("scroll",e,{passive:!0})}),ig(()=>{o.forEach(f=>{f.removeEventListener("scroll",e)})})}const Use=Symbol.for("vuetify:v-menu"),Z2e=ti({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function q2e(t,e){let o=()=>{};function f(l){o==null||o();const n=Number(l?t.openDelay:t.closeDelay);return new Promise(c=>{o=TPe(n,()=>{e==null||e(l),c(l)})})}function P(){return f(!0)}function d(){return f(!1)}return{clearDelay:o,runOpenDelay:P,runCloseDelay:d}}const uLe=ti({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...Z2e()},"VOverlay-activator");function fLe(t,e){let{isActive:o,isTop:f}=e;const P=ph("useActivator"),d=ei();let l=!1,n=!1,c=!0;const b=jn(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),i=jn(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!b.value),{runOpenDelay:O,runCloseDelay:w}=q2e(t,x=>{x===(t.openOnHover&&l||b.value&&n)&&!(t.openOnHover&&o.value&&!f.value)&&(o.value!==x&&(c=!0),o.value=x)}),y=ei(),p={onClick:x=>{x.stopPropagation(),d.value=x.currentTarget||x.target,o.value||(y.value=[x.clientX,x.clientY]),o.value=!o.value},onMouseenter:x=>{var R;(R=x.sourceCapabilities)!=null&&R.firesTouchEvents||(l=!0,d.value=x.currentTarget||x.target,O())},onMouseleave:x=>{l=!1,w()},onFocus:x=>{gM(x.target,":focus-visible")!==!1&&(n=!0,x.stopPropagation(),d.value=x.currentTarget||x.target,O())},onBlur:x=>{n=!1,x.stopPropagation(),w()}},a=jn(()=>{const x={};return i.value&&(x.onClick=p.onClick),t.openOnHover&&(x.onMouseenter=p.onMouseenter,x.onMouseleave=p.onMouseleave),b.value&&(x.onFocus=p.onFocus,x.onBlur=p.onBlur),x}),u=jn(()=>{const x={};if(t.openOnHover&&(x.onMouseenter=()=>{l=!0,O()},x.onMouseleave=()=>{l=!1,w()}),b.value&&(x.onFocusin=()=>{n=!0,O()},x.onFocusout=()=>{n=!1,w()}),t.closeOnContentClick){const R=vl(Use,null);x.onClick=()=>{o.value=!1,R==null||R.closeParents()}}return x}),h=jn(()=>{const x={};return t.openOnHover&&(x.onMouseenter=()=>{c&&(l=!0,c=!1,O())},x.onMouseleave=()=>{l=!1,w()}),x});Ni(f,x=>{x&&(t.openOnHover&&!l&&(!b.value||!n)||b.value&&!n&&(!t.openOnHover||!l))&&(o.value=!1)}),Ni(o,x=>{x||setTimeout(()=>{y.value=void 0})},{flush:"post"});const m=Pse();kp(()=>{m.value&&lc(()=>{d.value=m.el})});const v=Pse(),_=jn(()=>t.target==="cursor"&&y.value?y.value:v.value?v.el:W2e(t.target,P)||d.value),S=jn(()=>Array.isArray(_.value)?void 0:_.value);let A;return Ni(()=>!!t.activator,x=>{x&&ou?(A=cD(),A.run(()=>{dLe(t,P,{activatorEl:d,activatorEvents:a})})):A&&A.stop()},{flush:"post",immediate:!0}),ig(()=>{A==null||A.stop()}),{activatorEl:d,activatorRef:m,target:_,targetEl:S,targetRef:v,activatorEvents:a,contentEvents:u,scrimEvents:h}}function dLe(t,e,o){let{activatorEl:f,activatorEvents:P}=o;Ni(()=>t.activator,(c,b)=>{if(b&&c!==b){const i=n(b);i&&l(i)}c&&lc(()=>d())},{immediate:!0}),Ni(()=>t.activatorProps,()=>{d()}),ig(()=>{l()});function d(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;c&&MPe(c,Di(P.value,b))}function l(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;c&&EPe(c,Di(P.value,b))}function n(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator;const b=W2e(c,e);return f.value=(b==null?void 0:b.nodeType)===Node.ELEMENT_NODE?b:void 0,f.value}}function W2e(t,e){var f,P;if(!t)return;let o;if(t==="parent"){let d=(P=(f=e==null?void 0:e.proxy)==null?void 0:f.$el)==null?void 0:P.parentNode;for(;d!=null&&d.hasAttribute("data-no-activator");)d=d.parentNode;o=d}else typeof t=="string"?o=document.querySelector(t):"$el"in t?o=t.$el:o=t;return o}function hLe(){if(!ou)return Ai(!1);const{ssr:t}=bS();if(t){const e=Ai(!1);return ag(()=>{e.value=!0}),e}else return Ai(!0)}const Y2e=ti({eager:Boolean},"lazy");function X2e(t,e){const o=Ai(!1),f=jn(()=>o.value||t.eager||e.value);Ni(e,()=>o.value=!0);function P(){t.eager||(o.value=!1)}return{isBooted:o,hasContent:f,onAfterLeave:P}}function BM(){const e=ph("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const bge=Symbol.for("vuetify:stack"),NL=lm([]);function pLe(t,e,o){const f=ph("useStack"),P=!o,d=vl(bge,void 0),l=lm({activeChildren:new Set});gf(bge,l);const n=Ai(+e.value);x1(t,()=>{var O;const i=(O=NL.at(-1))==null?void 0:O[1];n.value=i?i+10:+e.value,P&&NL.push([f.uid,n.value]),d==null||d.activeChildren.add(f.uid),ig(()=>{if(P){const w=As(NL).findIndex(y=>y[0]===f.uid);NL.splice(w,1)}d==null||d.activeChildren.delete(f.uid)})});const c=Ai(!0);P&&kp(()=>{var O;const i=((O=NL.at(-1))==null?void 0:O[0])===f.uid;setTimeout(()=>c.value=i)});const b=jn(()=>!l.activeChildren.size);return{globalTop:TM(c),localTop:b,stackStyles:jn(()=>({zIndex:n.value}))}}function mLe(t){return{teleportTarget:jn(()=>{const o=t();if(o===!0||!ou)return;const f=o===!1?document.body:typeof o=="string"?document.querySelector(o):o;if(f==null)return;let P=f.querySelector(":scope > .v-overlay-container");return P||(P=document.createElement("div"),P.className="v-overlay-container",f.appendChild(P)),P})}}function gLe(){return!0}function G2e(t,e,o){if(!t||K2e(t,o)===!1)return!1;const f=jxe(e);if(typeof ShadowRoot<"u"&&f instanceof ShadowRoot&&f.host===t.target)return!1;const P=(typeof o.value=="object"&&o.value.include||(()=>[]))();return P.push(e),!P.some(d=>d==null?void 0:d.contains(t.target))}function K2e(t,e){return(typeof e.value=="object"&&e.value.closeConditional||gLe)(t)}function vLe(t,e,o){const f=typeof o.value=="function"?o.value:o.value.handler;e._clickOutside.lastMousedownWasOutside&&G2e(t,e,o)&&setTimeout(()=>{K2e(t,o)&&f&&f(t)},0)}function xge(t,e){const o=jxe(t);e(document),typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&e(o)}const yLe={mounted(t,e){const o=P=>vLe(P,t,e),f=P=>{t._clickOutside.lastMousedownWasOutside=G2e(P,t,e)};xge(t,P=>{P.addEventListener("click",o,!0),P.addEventListener("mousedown",f,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:o,onMousedown:f}},unmounted(t,e){t._clickOutside&&(xge(t,o=>{var d;if(!o||!((d=t._clickOutside)!=null&&d[e.instance.$.uid]))return;const{onClick:f,onMousedown:P}=t._clickOutside[e.instance.$.uid];o.removeEventListener("click",f,!0),o.removeEventListener("mousedown",P,!0)}),delete t._clickOutside[e.instance.$.uid])}};function bLe(t){const{modelValue:e,color:o,...f}=t;return Zt(h_,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&&Zt("div",Di({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},f),null)]})}const MD=ti({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...uLe(),...xs(),...O_(),...Y2e(),...JRe(),...iLe(),...Ff(),...ST()},"VOverlay"),dS=ta()({name:"VOverlay",directives:{ClickOutside:yLe},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...MD()},emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,e){let{slots:o,attrs:f,emit:P}=e;const d=Al(t,"modelValue"),l=jn({get:()=>d.value,set:K=>{K&&t.disabled||(d.value=K)}}),{themeClasses:n}=Md(t),{rtlClasses:c,isRtl:b}=qg(),{hasContent:i,onAfterLeave:O}=X2e(t,l),w=og(jn(()=>typeof t.scrim=="string"?t.scrim:null)),{globalTop:y,localTop:p,stackStyles:a}=pLe(l,Oi(t,"zIndex"),t._disableGlobalStack),{activatorEl:u,activatorRef:h,target:m,targetEl:v,targetRef:_,activatorEvents:S,contentEvents:A,scrimEvents:x}=fLe(t,{isActive:l,isTop:p}),{teleportTarget:R}=mLe(()=>{var q;const K=t.attach||t.contained;if(K)return K;const oe=(q=u==null?void 0:u.value)==null?void 0:q.getRootNode();return oe instanceof ShadowRoot?oe:!1}),{dimensionStyles:M}=S_(t),T=hLe(),{scopeId:E}=BM();Ni(()=>t.disabled,K=>{K&&(l.value=!1)});const C=ei(),L=ei(),D=ei(),{contentStyles:k,updateLocation:I}=eLe(t,{isRtl:b,contentEl:D,target:m,isActive:l});aLe(t,{root:C,contentEl:D,targetEl:v,isActive:l,updateLocation:I});function z(K){P("click:outside",K),t.persistent?X():l.value=!1}function $(K){return l.value&&y.value&&(!t.scrim||K.target===L.value)}ou&&Ni(l,K=>{K?window.addEventListener("keydown",Q):window.removeEventListener("keydown",Q)},{immediate:!0}),dm(()=>{ou&&window.removeEventListener("keydown",Q)});function Q(K){var oe,q;K.key==="Escape"&&y.value&&(t.persistent?X():(l.value=!1,(oe=D.value)!=null&&oe.contains(document.activeElement)&&((q=u.value)==null||q.focus())))}const j=p2e();x1(()=>t.closeOnBack,()=>{Y9e(j,K=>{y.value&&l.value?(K(!1),t.persistent?X():l.value=!1):K()})});const U=ei();Ni(()=>l.value&&(t.absolute||t.contained)&&R.value==null,K=>{if(K){const oe=Qxe(C.value);oe&&oe!==document.scrollingElement&&(U.value=oe.scrollTop)}});function X(){t.noClickAnimation||D.value&&QA(D.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:fZ})}function te(){P("afterEnter")}function W(){O(),P("afterLeave")}return Ca(()=>{var K;return Zt(ya,null,[(K=o.activator)==null?void 0:K.call(o,{isActive:l.value,targetRef:_,props:Di({ref:h},S.value,t.activatorProps)}),T.value&&i.value&&Zt(qSe,{disabled:!R.value,to:R.value},{default:()=>[Zt("div",Di({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":l.value,"v-overlay--contained":t.contained},n.value,c.value,t.class],style:[a.value,{"--v-overlay-opacity":t.opacity,top:Ma(U.value)},t.style],ref:C},E,f),[Zt(bLe,Di({color:w,modelValue:l.value&&!!t.scrim,ref:L},x.value),null),Zt(X4,{appear:!0,persisted:!0,transition:t.transition,target:m.value,onAfterEnter:te,onAfterLeave:W},{default:()=>{var oe;return[Tp(Zt("div",Di({ref:D,class:["v-overlay__content",t.contentClass],style:[M.value,k.value]},A.value,t.contentProps),[(oe=o.default)==null?void 0:oe.call(o,{isActive:l})]),[[pS,l.value],[y_("click-outside"),{handler:z,closeConditional:$,include:()=>[u.value]}]])]}})])]})])}),{activatorEl:u,scrimEl:L,target:m,animateClick:X,contentEl:D,globalTop:y,localTop:p,updateLocation:I}}}),Hie=Symbol("Forwarded refs");function Zie(t,e){let o=t;for(;o;){const f=Reflect.getOwnPropertyDescriptor(o,e);if(f)return f;o=Object.getPrototypeOf(o)}}function T_(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f!0},setup(t,e){let{slots:o}=e;const f=Al(t,"modelValue"),{scopeId:P}=BM(),d=Vv(),l=jn(()=>t.id||`v-menu-${d}`),n=ei(),c=vl(Use,null),b=Ai(0);gf(Use,{register(){++b.value},unregister(){--b.value},closeParents(a){setTimeout(()=>{var u;!b.value&&!t.persistent&&(a==null||(u=n.value)!=null&&u.contentEl&&!CPe(a,n.value.contentEl))&&(f.value=!1,c==null||c.closeParents())},40)}});async function i(a){var m,v,_;const u=a.relatedTarget,h=a.target;await lc(),f.value&&u!==h&&((m=n.value)!=null&&m.contentEl)&&((v=n.value)!=null&&v.globalTop)&&![document,n.value.contentEl].includes(h)&&!n.value.contentEl.contains(h)&&((_=qI(n.value.contentEl)[0])==null||_.focus())}Ni(f,a=>{a?(c==null||c.register(),document.addEventListener("focusin",i,{once:!0})):(c==null||c.unregister(),document.removeEventListener("focusin",i))});function O(a){c==null||c.closeParents(a)}function w(a){var u,h,m;if(!t.disabled)if(a.key==="Tab"||a.key==="Enter"&&!t.closeOnContentClick){if(a.key==="Enter"&&(a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLInputElement&&a.target.closest("form")))return;a.key==="Enter"&&a.preventDefault(),Lxe(qI((u=n.value)==null?void 0:u.contentEl,!1),a.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(f.value=!1,(m=(h=n.value)==null?void 0:h.activatorEl)==null||m.focus())}else["Enter"," "].includes(a.key)&&t.closeOnContentClick&&(f.value=!1,c==null||c.closeParents())}function y(a){var h;if(t.disabled)return;const u=(h=n.value)==null?void 0:h.contentEl;u&&f.value?a.key==="ArrowDown"?(a.preventDefault(),cZ(u,"next")):a.key==="ArrowUp"&&(a.preventDefault(),cZ(u,"prev")):["ArrowDown","ArrowUp"].includes(a.key)&&(f.value=!0,a.preventDefault(),setTimeout(()=>setTimeout(()=>y(a))))}const p=jn(()=>Di({"aria-haspopup":"menu","aria-expanded":String(f.value),"aria-owns":l.value,onKeydown:y},t.activatorProps));return Ca(()=>{const a=dS.filterProps(t);return Zt(dS,Di({ref:n,id:l.value,class:["v-menu",t.class],style:t.style},a,{modelValue:f.value,"onUpdate:modelValue":u=>f.value=u,absolute:!0,activatorProps:p.value,"onClick:outside":O,onKeydown:w},P),{activator:o.activator,default:function(){for(var u=arguments.length,h=new Array(u),m=0;m{var v;return[(v=o.default)==null?void 0:v.call(o,...h)]}})}})}),T_({id:l,ΨopenChildren:b},n)}});const _Le=ti({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...xs(),...ST({transition:{component:Jxe}})},"VCounter"),J2e=ta()({name:"VCounter",functional:!0,props:_Le(),setup(t,e){let{slots:o}=e;const f=jn(()=>t.max?`${t.value} / ${t.max}`:String(t.value));return Ca(()=>Zt(X4,{transition:t.transition},{default:()=>[Tp(Zt("div",{class:["v-counter",{"text-error":t.max&&!t.disabled&&parseFloat(t.value)>parseFloat(t.max)},t.class],style:t.style},[o.default?o.default({counter:f.value,max:t.max,value:t.value}):f.value]),[[pS,t.active]])]})),{}}});const wLe=ti({floating:Boolean,...xs()},"VFieldLabel"),JQ=ta()({name:"VFieldLabel",props:wLe(),setup(t,e){let{slots:o}=e;return Ca(()=>Zt(kq,{class:["v-field-label",{"v-field-label--floating":t.floating},t.class],style:t.style,"aria-hidden":t.floating||void 0},o)),{}}}),OLe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],aue=ti({appendInnerIcon:Cl,bgColor:String,clearable:Boolean,clearIcon:{type:Cl,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Cl,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:t=>OLe.includes(t)},"onClick:clear":rg(),"onClick:appendInner":rg(),"onClick:prependInner":rg(),...xs(),...bq(),...pm(),...Ff()},"VField"),sue=ta()({name:"VField",inheritAttrs:!1,props:{id:String,...Tq(),...aue()},emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{themeClasses:d}=Md(t),{loaderClasses:l}=TD(t),{focusClasses:n,isFocused:c,focus:b,blur:i}=IM(t),{InputIcon:O}=k2e(t),{roundedClasses:w}=sg(t),{rtlClasses:y}=qg(),p=jn(()=>t.dirty||t.active),a=jn(()=>!t.singleLine&&!!(t.label||P.label)),u=Vv(),h=jn(()=>t.id||`input-${u}`),m=jn(()=>`${h.value}-messages`),v=ei(),_=ei(),S=ei(),A=jn(()=>["plain","underlined"].includes(t.variant)),{backgroundColorClasses:x,backgroundColorStyles:R}=og(Oi(t,"bgColor")),{textColorClasses:M,textColorStyles:T}=$v(jn(()=>t.error||t.disabled?void 0:p.value&&c.value?t.color:t.baseColor));Ni(p,D=>{if(a.value){const k=v.value.$el,I=_.value.$el;requestAnimationFrame(()=>{const z=jce(k),$=I.getBoundingClientRect(),Q=$.x-z.x,j=$.y-z.y-(z.height/2-$.height/2),U=$.width/.75,X=Math.abs(U-z.width)>1?{maxWidth:Ma(U)}:void 0,te=getComputedStyle(k),W=getComputedStyle(I),K=parseFloat(te.transitionDuration)*1e3||150,oe=parseFloat(W.getPropertyValue("--v-field-label-scale")),q=W.getPropertyValue("color");k.style.visibility="visible",I.style.visibility="hidden",QA(k,{transform:`translate(${Q}px, ${j}px) scale(${oe})`,color:q,...X},{duration:K,easing:fZ,direction:D?"normal":"reverse"}).finished.then(()=>{k.style.removeProperty("visibility"),I.style.removeProperty("visibility")})})}},{flush:"post"});const E=jn(()=>({isActive:p,isFocused:c,controlRef:S,blur:i,focus:b}));function C(D){D.target!==document.activeElement&&D.preventDefault()}function L(D){var k;D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),D.stopPropagation(),(k=t["onClick:clear"])==null||k.call(t,new MouseEvent("click")))}return Ca(()=>{var Q,j,U;const D=t.variant==="outlined",k=!!(P["prepend-inner"]||t.prependInnerIcon),I=!!(t.clearable||P.clear),z=!!(P["append-inner"]||t.appendInnerIcon||I),$=()=>P.label?P.label({...E.value,label:t.label,props:{for:h.value}}):t.label;return Zt("div",Di({class:["v-field",{"v-field--active":p.value,"v-field--appended":z,"v-field--center-affix":t.centerAffix??!A.value,"v-field--disabled":t.disabled,"v-field--dirty":t.dirty,"v-field--error":t.error,"v-field--flat":t.flat,"v-field--has-background":!!t.bgColor,"v-field--persistent-clear":t.persistentClear,"v-field--prepended":k,"v-field--reverse":t.reverse,"v-field--single-line":t.singleLine,"v-field--no-label":!$(),[`v-field--variant-${t.variant}`]:!0},d.value,x.value,n.value,l.value,w.value,y.value,t.class],style:[R.value,t.style],onClick:C},o),[Zt("div",{class:"v-field__overlay"},null),Zt(xq,{name:"v-field",active:!!t.loading,color:t.error?"error":typeof t.loading=="string"?t.loading:t.color},{default:P.loader}),k&&Zt("div",{key:"prepend",class:"v-field__prepend-inner"},[t.prependInnerIcon&&Zt(O,{key:"prepend-icon",name:"prependInner"},null),(Q=P["prepend-inner"])==null?void 0:Q.call(P,E.value)]),Zt("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(t.variant)&&a.value&&Zt(JQ,{key:"floating-label",ref:_,class:[M.value],floating:!0,for:h.value,style:T.value},{default:()=>[$()]}),Zt(JQ,{ref:v,for:h.value},{default:()=>[$()]}),(j=P.default)==null?void 0:j.call(P,{...E.value,props:{id:h.value,class:"v-field__input","aria-describedby":m.value},focus:b,blur:i})]),I&&Zt(e2e,{key:"clear"},{default:()=>[Tp(Zt("div",{class:"v-field__clearable",onMousedown:X=>{X.preventDefault(),X.stopPropagation()}},[Zt(du,{defaults:{VIcon:{icon:t.clearIcon}}},{default:()=>[P.clear?P.clear({...E.value,props:{onKeydown:L,onFocus:b,onBlur:i,onClick:t["onClick:clear"]}}):Zt(O,{name:"clear",onKeydown:L,onFocus:b,onBlur:i},null)]})]),[[pS,t.dirty]])]}),z&&Zt("div",{key:"append",class:"v-field__append-inner"},[(U=P["append-inner"])==null?void 0:U.call(P,E.value),t.appendInnerIcon&&Zt(O,{key:"append-icon",name:"appendInner"},null)]),Zt("div",{class:["v-field__outline",M.value],style:T.value},[D&&Zt(ya,null,[Zt("div",{class:"v-field__outline__start"},null),a.value&&Zt("div",{class:"v-field__outline__notch"},[Zt(JQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})]),Zt("div",{class:"v-field__outline__end"},null)]),A.value&&a.value&&Zt(JQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})])])}),{controlRef:S}}});function e_e(t){const e=Object.keys(sue.props).filter(o=>!uq(o)&&o!=="class"&&o!=="style");return Vce(t,e)}const SLe=["color","file","time","date","datetime-local","week","month"],Mq=ti({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...DM(),...aue()},"VTextField"),um=ta()({name:"VTextField",directives:{Intersect:Kce},inheritAttrs:!1,props:Mq(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const d=Al(t,"modelValue"),{isFocused:l,focus:n,blur:c}=IM(t),b=jn(()=>typeof t.counterValue=="function"?t.counterValue(d.value):typeof t.counterValue=="number"?t.counterValue:(d.value??"").toString().length),i=jn(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),O=jn(()=>["plain","underlined"].includes(t.variant));function w(A,x){var R,M;!t.autofocus||!A||(M=(R=x[0].target)==null?void 0:R.focus)==null||M.call(R)}const y=ei(),p=ei(),a=ei(),u=jn(()=>SLe.includes(t.type)||t.persistentPlaceholder||l.value||t.active);function h(){var A;a.value!==document.activeElement&&((A=a.value)==null||A.focus()),l.value||n()}function m(A){f("mousedown:control",A),A.target!==a.value&&(h(),A.preventDefault())}function v(A){h(),f("click:control",A)}function _(A){A.stopPropagation(),h(),lc(()=>{d.value=null,Rxe(t["onClick:clear"],A)})}function S(A){var R;const x=A.target;if(d.value=x.value,(R=t.modelModifiers)!=null&&R.trim&&["text","search","password","tel","url"].includes(t.type)){const M=[x.selectionStart,x.selectionEnd];lc(()=>{x.selectionStart=M[0],x.selectionEnd=M[1]})}}return Ca(()=>{const A=!!(P.counter||t.counter!==!1&&t.counter!=null),x=!!(A||P.details),[R,M]=fq(o),{modelValue:T,...E}=p_.filterProps(t),C=e_e(t);return Zt(p_,Di({ref:y,modelValue:d.value,"onUpdate:modelValue":L=>d.value=L,class:["v-text-field",{"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-input--plain-underlined":O.value},t.class],style:t.style},R,E,{centerAffix:!O.value,focused:l.value}),{...P,default:L=>{let{id:D,isDisabled:k,isDirty:I,isReadonly:z,isValid:$}=L;return Zt(sue,Di({ref:p,onMousedown:m,onClick:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"],role:t.role},C,{id:D.value,active:u.value||I.value,dirty:I.value||t.dirty,disabled:k.value,focused:l.value,error:$.value===!1}),{...P,default:Q=>{let{props:{class:j,...U}}=Q;const X=Tp(Zt("input",Di({ref:a,value:d.value,onInput:S,autofocus:t.autofocus,readonly:z.value,disabled:k.value,name:t.name,placeholder:t.placeholder,size:1,type:t.type,onFocus:h,onBlur:c},U,M),null),[[y_("intersect"),{handler:w},null,{once:!0}]]);return Zt(ya,null,[t.prefix&&Zt("span",{class:"v-text-field__prefix"},[Zt("span",{class:"v-text-field__prefix__text"},[t.prefix])]),P.default?Zt("div",{class:j,"data-no-activator":""},[P.default(),X]):TO(X,{class:j}),t.suffix&&Zt("span",{class:"v-text-field__suffix"},[Zt("span",{class:"v-text-field__suffix__text"},[t.suffix])])])}})},details:x?L=>{var D;return Zt(ya,null,[(D=P.details)==null?void 0:D.call(P,L),A&&Zt(ya,null,[Zt("span",null,null),Zt(J2e,{active:t.persistentCounter||l.value,value:b.value,max:i.value,disabled:t.disabled},P.counter)])])}:void 0})}),T_({},y,p,a)}});const kLe=ti({renderless:Boolean,...xs()},"VVirtualScrollItem"),TLe=ta()({name:"VVirtualScrollItem",inheritAttrs:!1,props:kLe(),emits:{"update:height":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{resizeRef:d,contentRect:l}=fS(void 0,"border");Ni(()=>{var n;return(n=l.value)==null?void 0:n.height},n=>{n!=null&&f("update:height",n)}),Ca(()=>{var n,c;return t.renderless?Zt(ya,null,[(n=P.default)==null?void 0:n.call(P,{itemRef:d})]):Zt("div",Di({ref:d,class:["v-virtual-scroll__item",t.class],style:t.style},o),[(c=P.default)==null?void 0:c.call(P)])})}}),CLe=-1,ALe=1,qie=100,MLe=ti({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function ELe(t,e){const o=bS(),f=Ai(0);kp(()=>{f.value=parseFloat(t.itemHeight||0)});const P=Ai(0),d=Ai(Math.ceil((parseInt(t.height)||o.height.value)/(f.value||16))||1),l=Ai(0),n=Ai(0),c=ei(),b=ei();let i=0;const{resizeRef:O,contentRect:w}=fS();kp(()=>{O.value=c.value});const y=jn(()=>{var Q;return c.value===document.documentElement?o.height.value:((Q=w.value)==null?void 0:Q.height)||parseInt(t.height)||0}),p=jn(()=>!!(c.value&&b.value&&y.value&&f.value));let a=Array.from({length:e.value.length}),u=Array.from({length:e.value.length});const h=Ai(0);let m=-1;function v(Q){return a[Q]||f.value}const _=OPe(()=>{const Q=performance.now();u[0]=0;const j=e.value.length;for(let U=1;U<=j-1;U++)u[U]=(u[U-1]||0)+v(U-1);h.value=Math.max(h.value,performance.now()-Q)},h),S=Ni(p,Q=>{Q&&(S(),i=b.value.offsetTop,_.immediate(),k(),~m&&lc(()=>{ou&&window.requestAnimationFrame(()=>{z(m),m=-1})}))});ig(()=>{_.clear()});function A(Q,j){const U=a[Q],X=f.value;f.value=X?Math.min(f.value,j):j,(U!==j||X!==f.value)&&(a[Q]=j,_())}function x(Q){return Q=Qg(Q,0,e.value.length-1),u[Q]||0}function R(Q){return PLe(u,Q)}let M=0,T=0,E=0;Ni(y,(Q,j)=>{j&&(k(),Q{T=0,k()}))});function C(){if(!c.value||!b.value)return;const Q=c.value.scrollTop,j=performance.now();j-E>500?(T=Math.sign(Q-M),i=b.value.offsetTop):T=Q-M,M=Q,E=j,k()}function L(){!c.value||!b.value||(T=0,E=0,k())}let D=-1;function k(){cancelAnimationFrame(D),D=requestAnimationFrame(I)}function I(){if(!c.value||!y.value)return;const Q=M-i,j=Math.sign(T),U=Math.max(0,Q-qie),X=Qg(R(U),0,e.value.length),te=Q+y.value+qie,W=Qg(R(te)+1,X+1,e.value.length);if((j!==CLe||Xd.value)){const K=x(P.value)-x(X),oe=x(W)-x(d.value);Math.max(K,oe)>qie?(P.value=X,d.value=W):(X<=0&&(P.value=X),W>=e.value.length&&(d.value=W))}l.value=x(P.value),n.value=x(e.value.length)-x(d.value)}function z(Q){const j=x(Q);!c.value||Q&&!j?m=Q:c.value.scrollTop=j}const $=jn(()=>e.value.slice(P.value,d.value).map((Q,j)=>({raw:Q,index:j+P.value})));return Ni(e,()=>{a=Array.from({length:e.value.length}),u=Array.from({length:e.value.length}),_.immediate(),k()},{deep:!0}),{containerRef:c,markerRef:b,computedItems:$,paddingTop:l,paddingBottom:n,scrollToIndex:z,handleScroll:C,handleScrollend:L,handleItemResize:A}}function PLe(t,e){let o=t.length-1,f=0,P=0,d=null,l=-1;if(t[o]>1,d=t[P],d>e)o=P-1;else if(d[]},renderless:Boolean,...MLe(),...xs(),...O_()},"VVirtualScroll"),lue=ta()({name:"VVirtualScroll",props:RLe(),setup(t,e){let{slots:o}=e;const f=ph("VVirtualScroll"),{dimensionStyles:P}=S_(t),{containerRef:d,markerRef:l,handleScroll:n,handleScrollend:c,handleItemResize:b,scrollToIndex:i,paddingTop:O,paddingBottom:w,computedItems:y}=ELe(t,Oi(t,"items"));return x1(()=>t.renderless,()=>{function p(){var h,m;const u=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";d.value===document.documentElement?(document[u]("scroll",n,{passive:!0}),document[u]("scrollend",c)):((h=d.value)==null||h[u]("scroll",n,{passive:!0}),(m=d.value)==null||m[u]("scrollend",c))}ag(()=>{d.value=Qxe(f.vnode.el,!0),p(!0)}),ig(p)}),Ca(()=>{const p=y.value.map(a=>Zt(TLe,{key:a.index,renderless:t.renderless,"onUpdate:height":u=>b(a.index,u)},{default:u=>{var h;return(h=o.default)==null?void 0:h.call(o,{item:a.raw,index:a.index,...u})}}));return t.renderless?Zt(ya,null,[Zt("div",{ref:l,class:"v-virtual-scroll__spacer",style:{paddingTop:Ma(O.value)}},null),p,Zt("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Ma(w.value)}},null)]):Zt("div",{ref:d,class:["v-virtual-scroll",t.class],onScrollPassive:n,onScrollend:c,style:[P.value,t.style]},[Zt("div",{ref:l,class:"v-virtual-scroll__container",style:{paddingTop:Ma(O.value),paddingBottom:Ma(w.value)}},[p])])}),{scrollToIndex:i}}});function cue(t,e){const o=Ai(!1);let f;function P(n){cancelAnimationFrame(f),o.value=!0,f=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>{o.value=!1})})}async function d(){await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>{if(o.value){const c=Ni(o,()=>{c(),n()})}else n()})}async function l(n){var i,O;if(n.key==="Tab"&&((i=e.value)==null||i.focus()),!["PageDown","PageUp","Home","End"].includes(n.key))return;const c=(O=t.value)==null?void 0:O.$el;if(!c)return;(n.key==="Home"||n.key==="End")&&c.scrollTo({top:n.key==="Home"?0:c.scrollHeight,behavior:"smooth"}),await d();const b=c.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(n.key==="PageDown"||n.key==="Home"){const w=c.getBoundingClientRect().top;for(const y of b)if(y.getBoundingClientRect().top>=w){y.focus();break}}else{const w=c.getBoundingClientRect().bottom;for(const y of[...b].reverse())if(y.getBoundingClientRect().bottom<=w){y.focus();break}}}return{onListScroll:P,onListKeydown:l}}const uue=ti({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:Cl,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...V2e({itemChildren:!1})},"Select"),LLe=ti({...uue(),...__(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ST({transition:{component:Yce}})},"VSelect"),ED=ta()({name:"VSelect",props:LLe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=Sx(),P=ei(),d=ei(),l=ei(),n=Al(t,"menu"),c=jn({get:()=>n.value,set:$=>{var Q;n.value&&!$&&((Q=d.value)!=null&&Q.ΨopenChildren)||(n.value=$)}}),{items:b,transformIn:i,transformOut:O}=iue(t),w=Al(t,"modelValue",[],$=>i($===null?[null]:fm($)),$=>{const Q=O($);return t.multiple?Q:Q[0]??null}),y=jn(()=>typeof t.counterValue=="function"?t.counterValue(w.value):typeof t.counterValue=="number"?t.counterValue:w.value.length),p=Cq(),a=jn(()=>w.value.map($=>$.value)),u=Ai(!1),h=jn(()=>c.value?t.closeText:t.openText);let m="",v;const _=jn(()=>t.hideSelected?b.value.filter($=>!w.value.some(Q=>t.valueComparator(Q,$))):b.value),S=jn(()=>t.hideNoData&&!_.value.length||t.readonly||(p==null?void 0:p.isReadonly.value)),A=jn(()=>{var $;return{...t.menuProps,activatorProps:{...(($=t.menuProps)==null?void 0:$.activatorProps)||{},"aria-haspopup":"listbox"}}}),x=ei(),{onListScroll:R,onListKeydown:M}=cue(x,P);function T($){t.openOnClear&&(c.value=!0)}function E(){S.value||(c.value=!c.value)}function C($){var te,W;if(!$.key||t.readonly||p!=null&&p.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes($.key)&&$.preventDefault(),["Enter","ArrowDown"," "].includes($.key)&&(c.value=!0),["Escape","Tab"].includes($.key)&&(c.value=!1),$.key==="Home"?(te=x.value)==null||te.focus("first"):$.key==="End"&&((W=x.value)==null||W.focus("last"));const Q=1e3;function j(K){const oe=K.key.length===1,q=!K.ctrlKey&&!K.metaKey&&!K.altKey;return oe&&q}if(t.multiple||!j($))return;const U=performance.now();U-v>Q&&(m=""),m+=$.key.toLowerCase(),v=U;const X=b.value.find(K=>K.title.toLowerCase().startsWith(m));if(X!==void 0){w.value=[X];const K=_.value.indexOf(X);ou&&window.requestAnimationFrame(()=>{var oe;K>=0&&((oe=l.value)==null||oe.scrollToIndex(K))})}}function L($){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!$.props.disabled)if(t.multiple){const j=w.value.findIndex(X=>t.valueComparator(X.value,$.value)),U=Q??!~j;if(~j){const X=U?[...w.value,$]:[...w.value];X.splice(j,1),w.value=X}else U&&(w.value=[...w.value,$])}else{const j=Q!==!1;w.value=j?[$]:[],lc(()=>{c.value=!1})}}function D($){var Q;(Q=x.value)!=null&&Q.$el.contains($.relatedTarget)||(c.value=!1)}function k(){var $;u.value&&(($=P.value)==null||$.focus())}function I($){u.value=!0}function z($){if($==null)w.value=[];else if(gM(P.value,":autofill")||gM(P.value,":-webkit-autofill")){const Q=b.value.find(j=>j.title===$);Q&&L(Q)}else P.value&&(P.value.value="")}return Ni(c,()=>{if(!t.hideSelected&&c.value&&w.value.length){const $=_.value.findIndex(Q=>w.value.some(j=>t.valueComparator(j.value,Q.value)));ou&&window.requestAnimationFrame(()=>{var Q;$>=0&&((Q=l.value)==null||Q.scrollToIndex($))})}}),Ni(()=>t.items,($,Q)=>{c.value||u.value&&!Q.length&&$.length&&(c.value=!0)}),Ca(()=>{const $=!!(t.chips||o.chip),Q=!!(!t.hideNoData||_.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),j=w.value.length>0,U=um.filterProps(t),X=j||!u.value&&t.label&&!t.persistentPlaceholder?void 0:t.placeholder;return Zt(um,Di({ref:P},U,{modelValue:w.value.map(te=>te.props.value).join(", "),"onUpdate:modelValue":z,focused:u.value,"onUpdate:focused":te=>u.value=te,validationValue:w.externalValue,counterValue:y.value,dirty:j,class:["v-select",{"v-select--active-menu":c.value,"v-select--chips":!!t.chips,[`v-select--${t.multiple?"multiple":"single"}`]:!0,"v-select--selected":w.value.length,"v-select--selection-slot":!!o.selection},t.class],style:t.style,inputmode:"none",placeholder:X,"onClick:clear":T,"onMousedown:control":E,onBlur:D,onKeydown:C,"aria-label":f(h.value),title:f(h.value)}),{...o,default:()=>Zt(ya,null,[Zt(hS,Di({ref:d,modelValue:c.value,"onUpdate:modelValue":te=>c.value=te,activator:"parent",contentClass:"v-select__content",disabled:S.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:k},A.value),{default:()=>[Q&&Zt(m_,Di({ref:x,selected:a.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:te=>te.preventDefault(),onKeydown:M,onFocusin:I,onScrollPassive:R,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var te,W,K;return[(te=o["prepend-item"])==null?void 0:te.call(o),!_.value.length&&!t.hideNoData&&(((W=o["no-data"])==null?void 0:W.call(o))??Zt(Bf,{title:f(t.noDataText)},null)),Zt(lue,{ref:l,renderless:!0,items:_.value},{default:oe=>{var he;let{item:q,index:Y,itemRef:ee}=oe;const me=Di(q.props,{ref:ee,key:Y,onClick:()=>L(q,null)});return((he=o.item)==null?void 0:he.call(o,{item:q,index:Y,props:me}))??Zt(Bf,Di(me,{role:"option"}),{prepend:se=>{let{isSelected:ae}=se;return Zt(ya,null,[t.multiple&&!t.hideSelected?Zt(LM,{key:q.value,modelValue:ae,ripple:!1,tabindex:"-1"},null):void 0,q.props.prependAvatar&&Zt(PO,{image:q.props.prependAvatar},null),q.props.prependIcon&&Zt(Tl,{icon:q.props.prependIcon},null)])}})}}),(K=o["append-item"])==null?void 0:K.call(o)]}})]}),w.value.map((te,W)=>{function K(ee){ee.stopPropagation(),ee.preventDefault(),L(te,!1)}const oe={"onClick:close":K,onKeydown(ee){ee.key!=="Enter"&&ee.key!==" "||(ee.preventDefault(),ee.stopPropagation(),K(ee))},onMousedown(ee){ee.preventDefault(),ee.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},q=$?!!o.chip:!!o.selection,Y=q?dq($?o.chip({item:te,index:W,props:oe}):o.selection({item:te,index:W})):void 0;if(!(q&&!Y))return Zt("div",{key:te.value,class:"v-select__selection"},[$?o.chip?Zt(du,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:te.title}}},{default:()=>[Y]}):Zt(AD,Di({key:"chip",closable:t.closableChips,size:"small",text:te.title,disabled:te.props.disabled},oe),null):Y??Zt("span",{class:"v-select__selection-text"},[te.title,t.multiple&&Wt==null||e==null?-1:t.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),fue=ti({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function DLe(t,e,o){var n;const f=[],P=(o==null?void 0:o.default)??ILe,d=o!=null&&o.filterKeys?fm(o.filterKeys):!1,l=Object.keys((o==null?void 0:o.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return f;e:for(let c=0;c0)&&!(o!=null&&o.noFilter)){if(typeof b=="object"){const u=d||Object.keys(i);for(const h of u){const m=y1(i,h),v=(n=o==null?void 0:o.customKeyFilter)==null?void 0:n[h];if(y=v?v(m,e,b):P(m,e,b),y!==-1&&y!==!1)v?O[h]=y:w[h]=y;else if((o==null?void 0:o.filterMode)==="every")continue e}}else y=P(b,e,b),y!==-1&&y!==!1&&(w.title=y);const p=Object.keys(w).length,a=Object.keys(O).length;if(!p&&!a||(o==null?void 0:o.filterMode)==="union"&&a!==l&&!p||(o==null?void 0:o.filterMode)==="intersection"&&(a!==l||!p))continue}f.push({index:c,matches:{...w,...O}})}return f}function due(t,e,o,f){const P=ei([]),d=ei(new Map),l=jn(()=>f!=null&&f.transform?wa(e).map(c=>[c,f.transform(c)]):wa(e));kp(()=>{const c=typeof o=="function"?o():wa(o),b=typeof c!="string"&&typeof c!="number"?"":String(c),i=DLe(l.value,b,{customKeyFilter:{...t.customKeyFilter,...wa(f==null?void 0:f.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),O=wa(e),w=[],y=new Map;i.forEach(p=>{let{index:a,matches:u}=p;const h=O[a];w.push(h),y.set(h.value,u)}),P.value=w,d.value=y});function n(c){return d.value.get(c.value)}return{filteredItems:P,filteredMatches:d,getMatches:n}}function BLe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?Zt(ya,null,[Zt("span",{class:"v-autocomplete__unmask"},[t.substr(0,e)]),Zt("span",{class:"v-autocomplete__mask"},[t.substr(e,o)]),Zt("span",{class:"v-autocomplete__unmask"},[t.substr(e+o)])]):t}const zLe=ti({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...fue({filterKeys:["title"]}),...uue(),...__(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ST({transition:!1})},"VAutocomplete"),hue=ta()({name:"VAutocomplete",props:zLe(),emits:{"update:focused":t=>!0,"update:search":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=Sx(),P=ei(),d=Ai(!1),l=Ai(!0),n=Ai(!1),c=ei(),b=ei(),i=Al(t,"menu"),O=jn({get:()=>i.value,set:me=>{var he;i.value&&!me&&((he=c.value)!=null&&he.ΨopenChildren)||(i.value=me)}}),w=Ai(-1),y=jn(()=>{var me;return(me=P.value)==null?void 0:me.color}),p=jn(()=>O.value?t.closeText:t.openText),{items:a,transformIn:u,transformOut:h}=iue(t),{textColorClasses:m,textColorStyles:v}=$v(y),_=Al(t,"search",""),S=Al(t,"modelValue",[],me=>u(me===null?[null]:fm(me)),me=>{const he=h(me);return t.multiple?he:he[0]??null}),A=jn(()=>typeof t.counterValue=="function"?t.counterValue(S.value):typeof t.counterValue=="number"?t.counterValue:S.value.length),x=Cq(),{filteredItems:R,getMatches:M}=due(t,a,()=>l.value?"":_.value),T=jn(()=>t.hideSelected?R.value.filter(me=>!S.value.some(he=>he.value===me.value)):R.value),E=jn(()=>!!(t.chips||o.chip)),C=jn(()=>E.value||!!o.selection),L=jn(()=>S.value.map(me=>me.props.value)),D=jn(()=>{var he;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&_.value===((he=T.value[0])==null?void 0:he.title))&&T.value.length>0&&!l.value&&!n.value}),k=jn(()=>t.hideNoData&&!T.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),I=ei(),{onListScroll:z,onListKeydown:$}=cue(I,P);function Q(me){t.openOnClear&&(O.value=!0),_.value=""}function j(){k.value||(O.value=!0)}function U(me){k.value||(d.value&&(me.preventDefault(),me.stopPropagation()),O.value=!O.value)}function X(me){var ae,ce,de;if(t.readonly||x!=null&&x.isReadonly.value)return;const he=P.value.selectionStart,se=S.value.length;if((w.value>-1||["Enter","ArrowDown","ArrowUp"].includes(me.key))&&me.preventDefault(),["Enter","ArrowDown"].includes(me.key)&&(O.value=!0),["Escape"].includes(me.key)&&(O.value=!1),D.value&&["Enter","Tab"].includes(me.key)&&!S.value.some(ve=>{let{value:ye}=ve;return ye===T.value[0].value})&&ee(T.value[0]),me.key==="ArrowDown"&&D.value&&((ae=I.value)==null||ae.focus("next")),["Backspace","Delete"].includes(me.key)){if(!t.multiple&&C.value&&S.value.length>0&&!_.value)return ee(S.value[0],!1);if(~w.value){const ve=w.value;ee(S.value[w.value],!1),w.value=ve>=se-1?se-2:ve}else me.key==="Backspace"&&!_.value&&(w.value=se-1)}if(t.multiple){if(me.key==="ArrowLeft"){if(w.value<0&&he>0)return;const ve=w.value>-1?w.value-1:se-1;S.value[ve]?w.value=ve:(w.value=-1,P.value.setSelectionRange((ce=_.value)==null?void 0:ce.length,(de=_.value)==null?void 0:de.length))}if(me.key==="ArrowRight"){if(w.value<0)return;const ve=w.value+1;S.value[ve]?w.value=ve:(w.value=-1,P.value.setSelectionRange(0,0))}}}function te(me){if(gM(P.value,":autofill")||gM(P.value,":-webkit-autofill")){const he=a.value.find(se=>se.title===me.target.value);he&&ee(he)}}function W(){var me;d.value&&(l.value=!0,(me=P.value)==null||me.focus())}function K(me){d.value=!0,setTimeout(()=>{n.value=!0})}function oe(me){n.value=!1}function q(me){(me==null||me===""&&!t.multiple&&!C.value)&&(S.value=[])}const Y=Ai(!1);function ee(me){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!me||me.props.disabled))if(t.multiple){const se=S.value.findIndex(ce=>t.valueComparator(ce.value,me.value)),ae=he??!~se;if(~se){const ce=ae?[...S.value,me]:[...S.value];ce.splice(se,1),S.value=ce}else ae&&(S.value=[...S.value,me]);t.clearOnSelect&&(_.value="")}else{const se=he!==!1;S.value=se?[me]:[],_.value=se&&!C.value?me.title:"",lc(()=>{O.value=!1,l.value=!0})}}return Ni(d,(me,he)=>{var se;me!==he&&(me?(Y.value=!0,_.value=t.multiple||C.value?"":String(((se=S.value.at(-1))==null?void 0:se.props.title)??""),l.value=!0,lc(()=>Y.value=!1)):(!t.multiple&&_.value==null&&(S.value=[]),O.value=!1,S.value.some(ae=>{let{title:ce}=ae;return ce===_.value})||(_.value=""),w.value=-1))}),Ni(_,me=>{!d.value||Y.value||(me&&(O.value=!0),l.value=!me)}),Ni(O,()=>{if(!t.hideSelected&&O.value&&S.value.length){const me=T.value.findIndex(he=>S.value.some(se=>he.value===se.value));ou&&window.requestAnimationFrame(()=>{var he;me>=0&&((he=b.value)==null||he.scrollToIndex(me))})}}),Ni(()=>t.items,(me,he)=>{O.value||d.value&&!he.length&&me.length&&(O.value=!0)}),Ca(()=>{const me=!!(!t.hideNoData||T.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),he=S.value.length>0,se=um.filterProps(t);return Zt(um,Di({ref:P},se,{modelValue:_.value,"onUpdate:modelValue":[ae=>_.value=ae,q],focused:d.value,"onUpdate:focused":ae=>d.value=ae,validationValue:S.externalValue,counterValue:A.value,dirty:he,onChange:te,class:["v-autocomplete",`v-autocomplete--${t.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":O.value,"v-autocomplete--chips":!!t.chips,"v-autocomplete--selection-slot":!!C.value,"v-autocomplete--selecting-index":w.value>-1},t.class],style:t.style,readonly:t.readonly,placeholder:he?void 0:t.placeholder,"onClick:clear":Q,"onMousedown:control":j,onKeydown:X}),{...o,default:()=>Zt(ya,null,[Zt(hS,Di({ref:c,modelValue:O.value,"onUpdate:modelValue":ae=>O.value=ae,activator:"parent",contentClass:"v-autocomplete__content",disabled:k.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:W},t.menuProps),{default:()=>[me&&Zt(m_,Di({ref:I,selected:L.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:ae=>ae.preventDefault(),onKeydown:$,onFocusin:K,onFocusout:oe,onScrollPassive:z,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var ae,ce,de;return[(ae=o["prepend-item"])==null?void 0:ae.call(o),!T.value.length&&!t.hideNoData&&(((ce=o["no-data"])==null?void 0:ce.call(o))??Zt(Bf,{title:f(t.noDataText)},null)),Zt(lue,{ref:b,renderless:!0,items:T.value},{default:ve=>{var Pe;let{item:ye,index:_e,itemRef:Se}=ve;const Te=Di(ye.props,{ref:Se,key:_e,active:D.value&&_e===0?!0:void 0,onClick:()=>ee(ye,null)});return((Pe=o.item)==null?void 0:Pe.call(o,{item:ye,index:_e,props:Te}))??Zt(Bf,Di(Te,{role:"option"}),{prepend:Ie=>{let{isSelected:ze}=Ie;return Zt(ya,null,[t.multiple&&!t.hideSelected?Zt(LM,{key:ye.value,modelValue:ze,ripple:!1,tabindex:"-1"},null):void 0,ye.props.prependAvatar&&Zt(PO,{image:ye.props.prependAvatar},null),ye.props.prependIcon&&Zt(Tl,{icon:ye.props.prependIcon},null)])},title:()=>{var Ie,ze;return l.value?ye.title:BLe(ye.title,(Ie=M(ye))==null?void 0:Ie.title,((ze=_.value)==null?void 0:ze.length)??0)}})}}),(de=o["append-item"])==null?void 0:de.call(o)]}})]}),S.value.map((ae,ce)=>{function de(Se){Se.stopPropagation(),Se.preventDefault(),ee(ae,!1)}const ve={"onClick:close":de,onKeydown(Se){Se.key!=="Enter"&&Se.key!==" "||(Se.preventDefault(),Se.stopPropagation(),de(Se))},onMousedown(Se){Se.preventDefault(),Se.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ye=E.value?!!o.chip:!!o.selection,_e=ye?dq(E.value?o.chip({item:ae,index:ce,props:ve}):o.selection({item:ae,index:ce})):void 0;if(!(ye&&!_e))return Zt("div",{key:ae.value,class:["v-autocomplete__selection",ce===w.value&&["v-autocomplete__selection--selected",m.value]],style:ce===w.value?v.value:{}},[E.value?o.chip?Zt(du,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:ae.title}}},{default:()=>[_e]}):Zt(AD,Di({key:"chip",closable:t.closableChips,size:"small",text:ae.title,disabled:ae.props.disabled},ve),null):_e??Zt("span",{class:"v-autocomplete__selection-text"},[ae.title,t.multiple&&ce!0,afterLeave:()=>!0},setup(t,e){let{emit:o,slots:f}=e;const P=Al(t,"modelValue"),{scopeId:d}=BM(),l=ei();function n(i){var y,p;const O=i.relatedTarget,w=i.target;if(O!==w&&((y=l.value)!=null&&y.contentEl)&&((p=l.value)!=null&&p.globalTop)&&![document,l.value.contentEl].includes(w)&&!l.value.contentEl.contains(w)){const a=qI(l.value.contentEl);if(!a.length)return;const u=a[0],h=a[a.length-1];O===u?h.focus():u.focus()}}ou&&Ni(()=>P.value&&t.retainFocus,i=>{i?document.addEventListener("focusin",n):document.removeEventListener("focusin",n)},{immediate:!0});function c(){var i;(i=l.value)!=null&&i.contentEl&&!l.value.contentEl.contains(document.activeElement)&&l.value.contentEl.focus({preventScroll:!0})}function b(){o("afterLeave")}return Ni(P,async i=>{var O;i||(await lc(),(O=l.value.activatorEl)==null||O.focus({preventScroll:!0}))}),Ca(()=>{const i=dS.filterProps(t),O=Di({"aria-haspopup":"dialog","aria-expanded":String(P.value)},t.activatorProps),w=Di({tabindex:-1},t.contentProps);return Zt(dS,Di({ref:l,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},i,{modelValue:P.value,"onUpdate:modelValue":y=>P.value=y,"aria-modal":"true",activatorProps:O,contentProps:w,role:"dialog",onAfterEnter:c,onAfterLeave:b},d),{activator:f.activator,default:function(){for(var y=arguments.length,p=new Array(y),a=0;a{var u;return[(u=f.default)==null?void 0:u.call(f,...p)]}})}})}),T_({},l)}});const t_e=ta()({name:"VCardActions",props:xs(),setup(t,e){let{slots:o}=e;return ib({VBtn:{slim:!0,variant:"text"}}),Ca(()=>{var f;return Zt("div",{class:["v-card-actions",t.class],style:t.style},[(f=o.default)==null?void 0:f.call(o)])}),{}}}),NLe=ti({opacity:[Number,String],...xs(),...Tu()},"VCardSubtitle"),n_e=ta()({name:"VCardSubtitle",props:NLe(),setup(t,e){let{slots:o}=e;return Ca(()=>Zt(t.tag,{class:["v-card-subtitle",t.class],style:[{"--v-card-subtitle-opacity":t.opacity},t.style]},o)),{}}}),PD=hq("v-card-title"),$Le=ti({appendAvatar:String,appendIcon:Cl,prependAvatar:String,prependIcon:Cl,subtitle:[String,Number],title:[String,Number],...xs(),...Qv()},"VCardItem"),VLe=ta()({name:"VCardItem",props:$Le(),setup(t,e){let{slots:o}=e;return Ca(()=>{var b;const f=!!(t.prependAvatar||t.prependIcon),P=!!(f||o.prepend),d=!!(t.appendAvatar||t.appendIcon),l=!!(d||o.append),n=!!(t.title!=null||o.title),c=!!(t.subtitle!=null||o.subtitle);return Zt("div",{class:["v-card-item",t.class],style:t.style},[P&&Zt("div",{key:"prepend",class:"v-card-item__prepend"},[o.prepend?Zt(du,{key:"prepend-defaults",disabled:!f,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},o.prepend):Zt(ya,null,[t.prependAvatar&&Zt(PO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&Zt(Tl,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),Zt("div",{class:"v-card-item__content"},[n&&Zt(PD,{key:"title"},{default:()=>{var i;return[((i=o.title)==null?void 0:i.call(o))??t.title]}}),c&&Zt(n_e,{key:"subtitle"},{default:()=>{var i;return[((i=o.subtitle)==null?void 0:i.call(o))??t.subtitle]}}),(b=o.default)==null?void 0:b.call(o)]),l&&Zt("div",{key:"append",class:"v-card-item__append"},[o.append?Zt(du,{key:"append-defaults",disabled:!d,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},o.append):Zt(ya,null,[t.appendIcon&&Zt(Tl,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&Zt(PO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),ULe=ti({opacity:[Number,String],...xs(),...Tu()},"VCardText"),pue=ta()({name:"VCardText",props:ULe(),setup(t,e){let{slots:o}=e;return Ca(()=>Zt(t.tag,{class:["v-card-text",t.class],style:[{"--v-card-text-opacity":t.opacity},t.style]},o)),{}}}),jLe=ti({appendAvatar:String,appendIcon:Cl,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Cl,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...k_(),...xs(),...Qv(),...O_(),...jv(),...bq(),...kD(),..._q(),...pm(),...Sq(),...Tu(),...Ff(),...Tx({variant:"elevated"})},"VCard"),BO=ta()({name:"VCard",directives:{Ripple:AT},props:jLe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:P}=Md(t),{borderClasses:d}=DO(t),{colorClasses:l,colorStyles:n,variantClasses:c}=CT(t),{densityClasses:b}=kx(t),{dimensionStyles:i}=S_(t),{elevationClasses:O}=sb(t),{loaderClasses:w}=TD(t),{locationStyles:y}=yq(t),{positionClasses:p}=wq(t),{roundedClasses:a}=sg(t),u=Oq(t,o),h=jn(()=>t.link!==!1&&u.isLink.value),m=jn(()=>!t.disabled&&t.link!==!1&&(t.link||u.isClickable.value));return Ca(()=>{const v=h.value?"a":t.tag,_=!!(f.title||t.title!=null),S=!!(f.subtitle||t.subtitle!=null),A=_||S,x=!!(f.append||t.appendAvatar||t.appendIcon),R=!!(f.prepend||t.prependAvatar||t.prependIcon),M=!!(f.image||t.image),T=A||R||x,E=!!(f.text||t.text!=null);return Tp(Zt(v,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":m.value},P.value,d.value,l.value,b.value,O.value,w.value,p.value,a.value,c.value,t.class],style:[n.value,i.value,y.value,t.style],href:u.href.value,onClick:m.value&&u.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var C;return[M&&Zt("div",{key:"image",class:"v-card__image"},[f.image?Zt(du,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},f.image):Zt(kT,{key:"image-img",cover:!0,src:t.image},null)]),Zt(xq,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:f.loader}),T&&Zt(VLe,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:f.item,prepend:f.prepend,title:f.title,subtitle:f.subtitle,append:f.append}),E&&Zt(pue,{key:"text"},{default:()=>{var L;return[((L=f.text)==null?void 0:L.call(f))??t.text]}}),(C=f.default)==null?void 0:C.call(f),f.actions&&Zt(t_e,null,{default:f.actions}),TT(m.value,"v-card")]}}),[[y_("ripple"),m.value&&t.ripple]])}),{}}});const mue=Symbol.for("vuetify:v-slider");function jse(t,e,o){const f=o==="vertical",P=e.getBoundingClientRect(),d="touches"in t?t.touches[0]:t;return f?d.clientY-(P.top+P.height/2):d.clientX-(P.left+P.width/2)}function QLe(t,e){return"touches"in t&&t.touches.length?t.touches[0][e]:"changedTouches"in t&&t.changedTouches.length?t.changedTouches[0][e]:t[e]}const r_e=ti({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:t=>typeof t=="boolean"||t==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:t=>typeof t=="boolean"||t==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)},reverse:Boolean,...pm(),...jv({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),o_e=t=>{const e=jn(()=>parseFloat(t.min)),o=jn(()=>parseFloat(t.max)),f=jn(()=>+t.step>0?parseFloat(t.step):0),P=jn(()=>Math.max(Cme(f.value),Cme(e.value)));function d(l){if(l=parseFloat(l),f.value<=0)return l;const n=Qg(l,e.value,o.value),c=e.value%f.value,b=Math.round((n-c)/f.value)*f.value+c;return parseFloat(Math.min(b,o.value).toFixed(P.value))}return{min:e,max:o,step:f,decimals:P,roundValue:d}},i_e=t=>{let{props:e,steps:o,onSliderStart:f,onSliderMove:P,onSliderEnd:d,getActiveThumb:l}=t;const{isRtl:n}=qg(),c=Oi(e,"reverse"),b=jn(()=>e.direction==="vertical"),i=jn(()=>b.value!==c.value),{min:O,max:w,step:y,decimals:p,roundValue:a}=o,u=jn(()=>parseInt(e.thumbSize,10)),h=jn(()=>parseInt(e.tickSize,10)),m=jn(()=>parseInt(e.trackSize,10)),v=jn(()=>(w.value-O.value)/y.value),_=Oi(e,"disabled"),S=jn(()=>e.error||e.disabled?void 0:e.thumbColor??e.color),A=jn(()=>e.error||e.disabled?void 0:e.trackColor??e.color),x=jn(()=>e.error||e.disabled?void 0:e.trackFillColor??e.color),R=Ai(!1),M=Ai(0),T=ei(),E=ei();function C(oe){var de;const q=e.direction==="vertical",Y=q?"top":"left",ee=q?"height":"width",me=q?"clientY":"clientX",{[Y]:he,[ee]:se}=(de=T.value)==null?void 0:de.$el.getBoundingClientRect(),ae=QLe(oe,me);let ce=Math.min(Math.max((ae-he-M.value)/se,0),1)||0;return(q?i.value:i.value!==n.value)&&(ce=1-ce),a(O.value+ce*(w.value-O.value))}const L=oe=>{d({value:C(oe)}),R.value=!1,M.value=0},D=oe=>{E.value=l(oe),E.value&&(E.value.focus(),R.value=!0,E.value.contains(oe.target)?M.value=jse(oe,E.value,e.direction):(M.value=0,P({value:C(oe)})),f({value:C(oe)}))},k={passive:!0,capture:!0};function I(oe){P({value:C(oe)})}function z(oe){oe.stopPropagation(),oe.preventDefault(),L(oe),window.removeEventListener("mousemove",I,k),window.removeEventListener("mouseup",z)}function $(oe){var q;L(oe),window.removeEventListener("touchmove",I,k),(q=oe.target)==null||q.removeEventListener("touchend",$)}function Q(oe){var q;D(oe),window.addEventListener("touchmove",I,k),(q=oe.target)==null||q.addEventListener("touchend",$,{passive:!1})}function j(oe){oe.preventDefault(),D(oe),window.addEventListener("mousemove",I,k),window.addEventListener("mouseup",z,{passive:!1})}const U=oe=>{const q=(oe-O.value)/(w.value-O.value)*100;return Qg(isNaN(q)?0:q,0,100)},X=Oi(e,"showTicks"),te=jn(()=>X.value?e.ticks?Array.isArray(e.ticks)?e.ticks.map(oe=>({value:oe,position:U(oe),label:oe.toString()})):Object.keys(e.ticks).map(oe=>({value:parseFloat(oe),position:U(parseFloat(oe)),label:e.ticks[oe]})):v.value!==1/0?lT(v.value+1).map(oe=>{const q=O.value+oe*y.value;return{value:q,position:U(q)}}):[]:[]),W=jn(()=>te.value.some(oe=>{let{label:q}=oe;return!!q})),K={activeThumbRef:E,color:Oi(e,"color"),decimals:p,disabled:_,direction:Oi(e,"direction"),elevation:Oi(e,"elevation"),hasLabels:W,isReversed:c,indexFromEnd:i,min:O,max:w,mousePressed:R,numTicks:v,onSliderMousedown:j,onSliderTouchstart:Q,parsedTicks:te,parseMouseMove:C,position:U,readonly:Oi(e,"readonly"),rounded:Oi(e,"rounded"),roundValue:a,showTicks:X,startOffset:M,step:y,thumbSize:u,thumbColor:S,thumbLabel:Oi(e,"thumbLabel"),ticks:Oi(e,"ticks"),tickSize:h,trackColor:A,trackContainerRef:T,trackFillColor:x,trackSize:m,vertical:b};return gf(mue,K),K},HLe=ti({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,...xs()},"VSliderThumb"),Qse=ta()({name:"VSliderThumb",directives:{Ripple:AT},props:HLe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=vl(mue),{isRtl:d,rtlClasses:l}=qg();if(!P)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:n,step:c,disabled:b,thumbSize:i,thumbLabel:O,direction:w,isReversed:y,vertical:p,readonly:a,elevation:u,mousePressed:h,decimals:m,indexFromEnd:v}=P,_=jn(()=>b.value?void 0:u.value),{elevationClasses:S}=sb(_),{textColorClasses:A,textColorStyles:x}=$v(n),{pageup:R,pagedown:M,end:T,home:E,left:C,right:L,down:D,up:k}=Ese,I=[R,M,T,E,C,L,D,k],z=jn(()=>c.value?[1,2,3]:[1,5,10]);function $(j,U){if(!I.includes(j.key))return;j.preventDefault();const X=c.value||.1,te=(t.max-t.min)/X;if([C,L,D,k].includes(j.key)){const K=(p.value?[d.value?C:L,y.value?D:k]:v.value!==d.value?[C,k]:[L,k]).includes(j.key)?1:-1,oe=j.shiftKey?2:j.ctrlKey?1:0;U=U+K*X*z.value[oe]}else if(j.key===E)U=t.min;else if(j.key===T)U=t.max;else{const W=j.key===M?1:-1;U=U-W*X*(te>100?te/10:10)}return Math.max(t.min,Math.min(t.max,U))}function Q(j){const U=$(j,t.modelValue);U!=null&&f("update:modelValue",U)}return Ca(()=>{const j=Ma(v.value?100-t.position:t.position,"%");return Zt("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":t.focused,"v-slider-thumb--pressed":t.focused&&h.value},t.class,l.value],style:[{"--v-slider-thumb-position":j,"--v-slider-thumb-size":Ma(i.value)},t.style],role:"slider",tabindex:b.value?-1:0,"aria-label":t.name,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,"aria-readonly":!!a.value,"aria-orientation":w.value,onKeydown:a.value?void 0:Q},[Zt("div",{class:["v-slider-thumb__surface",A.value,S.value],style:{...x.value}},null),Tp(Zt("div",{class:["v-slider-thumb__ripple",A.value],style:x.value},null),[[y_("ripple"),t.ripple,null,{circle:!0,center:!0}]]),Zt(Kxe,{origin:"bottom center"},{default:()=>{var U;return[Tp(Zt("div",{class:"v-slider-thumb__label-container"},[Zt("div",{class:["v-slider-thumb__label"]},[Zt("div",null,[((U=o["thumb-label"])==null?void 0:U.call(o,{modelValue:t.modelValue}))??t.modelValue.toFixed(c.value?m.value:1)])])]),[[pS,O.value&&t.focused||O.value==="always"]])]}})])}),{}}});const ZLe=ti({start:{type:Number,required:!0},stop:{type:Number,required:!0},...xs()},"VSliderTrack"),a_e=ta()({name:"VSliderTrack",props:ZLe(),emits:{},setup(t,e){let{slots:o}=e;const f=vl(mue);if(!f)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:P,parsedTicks:d,rounded:l,showTicks:n,tickSize:c,trackColor:b,trackFillColor:i,trackSize:O,vertical:w,min:y,max:p,indexFromEnd:a}=f,{roundedClasses:u}=sg(l),{backgroundColorClasses:h,backgroundColorStyles:m}=og(i),{backgroundColorClasses:v,backgroundColorStyles:_}=og(b),S=jn(()=>`inset-${w.value?"block":"inline"}-${a.value?"end":"start"}`),A=jn(()=>w.value?"height":"width"),x=jn(()=>({[S.value]:"0%",[A.value]:"100%"})),R=jn(()=>t.stop-t.start),M=jn(()=>({[S.value]:Ma(t.start,"%"),[A.value]:Ma(R.value,"%")})),T=jn(()=>n.value?(w.value?d.value.slice().reverse():d.value).map((C,L)=>{var k;const D=C.value!==y.value&&C.value!==p.value?Ma(C.position,"%"):void 0;return Zt("div",{key:C.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":C.position>=t.start&&C.position<=t.stop,"v-slider-track__tick--first":C.value===y.value,"v-slider-track__tick--last":C.value===p.value}],style:{[S.value]:D}},[(C.label||o["tick-label"])&&Zt("div",{class:"v-slider-track__tick-label"},[((k=o["tick-label"])==null?void 0:k.call(o,{tick:C,index:L}))??C.label])])}):[]);return Ca(()=>Zt("div",{class:["v-slider-track",u.value,t.class],style:[{"--v-slider-track-size":Ma(O.value),"--v-slider-tick-size":Ma(c.value)},t.style]},[Zt("div",{class:["v-slider-track__background",v.value,{"v-slider-track__background--opacity":!!P.value||!i.value}],style:{...x.value,..._.value}},null),Zt("div",{class:["v-slider-track__fill",h.value],style:{...M.value,...m.value}},null),n.value&&Zt("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":n.value==="always"}]},[T.value])])),{}}}),qLe=ti({...Tq(),...r_e(),...DM(),modelValue:{type:[Number,String],default:0}},"VSlider"),gue=ta()({name:"VSlider",props:qLe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,start:t=>!0,end:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=ei(),{rtlClasses:d}=qg(),l=o_e(t),n=Al(t,"modelValue",void 0,A=>l.roundValue(A??l.min.value)),{min:c,max:b,mousePressed:i,roundValue:O,onSliderMousedown:w,onSliderTouchstart:y,trackContainerRef:p,position:a,hasLabels:u,readonly:h}=i_e({props:t,steps:l,onSliderStart:()=>{f("start",n.value)},onSliderEnd:A=>{let{value:x}=A;const R=O(x);n.value=R,f("end",R)},onSliderMove:A=>{let{value:x}=A;return n.value=O(x)},getActiveThumb:()=>{var A;return(A=P.value)==null?void 0:A.$el}}),{isFocused:m,focus:v,blur:_}=IM(t),S=jn(()=>a(n.value));return Ca(()=>{const A=p_.filterProps(t),x=!!(t.label||o.label||o.prepend);return Zt(p_,Di({class:["v-slider",{"v-slider--has-labels":!!o["tick-label"]||u.value,"v-slider--focused":m.value,"v-slider--pressed":i.value,"v-slider--disabled":t.disabled},d.value,t.class],style:t.style},A,{focused:m.value}),{...o,prepend:x?R=>{var M,T;return Zt(ya,null,[((M=o.label)==null?void 0:M.call(o,R))??(t.label?Zt(kq,{id:R.id.value,class:"v-slider__label",text:t.label},null):void 0),(T=o.prepend)==null?void 0:T.call(o,R)])}:void 0,default:R=>{let{id:M,messagesId:T}=R;return Zt("div",{class:"v-slider__container",onMousedown:h.value?void 0:w,onTouchstartPassive:h.value?void 0:y},[Zt("input",{id:M.value,name:t.name||M.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:n.value},null),Zt(a_e,{ref:p,start:0,stop:S.value},{"tick-label":o["tick-label"]}),Zt(Qse,{ref:P,"aria-describedby":T.value,focused:m.value,min:c.value,max:b.value,modelValue:n.value,"onUpdate:modelValue":E=>n.value=E,position:S.value,elevation:t.elevation,onFocus:v,onBlur:_,ripple:t.ripple,name:t.name},{"thumb-label":o["thumb-label"]})])}})}),{}}});function WLe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?Zt(ya,null,[Zt("span",{class:"v-combobox__unmask"},[t.substr(0,e)]),Zt("span",{class:"v-combobox__mask"},[t.substr(e,o)]),Zt("span",{class:"v-combobox__unmask"},[t.substr(e+o)])]):t}const YLe=ti({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...fue({filterKeys:["title"]}),...uue({hideNoData:!0,returnObject:!0}),...__(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ST({transition:!1})},"VCombobox"),vue=ta()({name:"VCombobox",props:YLe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:search":t=>!0,"update:menu":t=>!0},setup(t,e){var he;let{emit:o,slots:f}=e;const{t:P}=Sx(),d=ei(),l=Ai(!1),n=Ai(!0),c=Ai(!1),b=ei(),i=ei(),O=Al(t,"menu"),w=jn({get:()=>O.value,set:se=>{var ae;O.value&&!se&&((ae=b.value)!=null&&ae.ΨopenChildren)||(O.value=se)}}),y=Ai(-1);let p=!1;const a=jn(()=>{var se;return(se=d.value)==null?void 0:se.color}),u=jn(()=>w.value?t.closeText:t.openText),{items:h,transformIn:m,transformOut:v}=iue(t),{textColorClasses:_,textColorStyles:S}=$v(a),A=Al(t,"modelValue",[],se=>m(fm(se)),se=>{const ae=v(se);return t.multiple?ae:ae[0]??null}),x=Cq(),R=jn(()=>!!(t.chips||f.chip)),M=jn(()=>R.value||!!f.selection),T=Ai(!t.multiple&&!M.value?((he=A.value[0])==null?void 0:he.title)??"":""),E=jn({get:()=>T.value,set:se=>{var ae;if(T.value=se??"",!t.multiple&&!M.value&&(A.value=[Z4(t,se)]),se&&t.multiple&&((ae=t.delimiters)!=null&&ae.length)){const ce=se.split(new RegExp(`(?:${t.delimiters.join("|")})+`));ce.length>1&&(ce.forEach(de=>{de=de.trim(),de&&q(Z4(t,de))}),T.value="")}se||(y.value=-1),n.value=!se}}),C=jn(()=>typeof t.counterValue=="function"?t.counterValue(A.value):typeof t.counterValue=="number"?t.counterValue:t.multiple?A.value.length:E.value.length);Ni(T,se=>{p?lc(()=>p=!1):l.value&&!w.value&&(w.value=!0),o("update:search",se)}),Ni(A,se=>{var ae;!t.multiple&&!M.value&&(T.value=((ae=se[0])==null?void 0:ae.title)??"")});const{filteredItems:L,getMatches:D}=due(t,h,()=>n.value?"":E.value),k=jn(()=>t.hideSelected?L.value.filter(se=>!A.value.some(ae=>ae.value===se.value)):L.value),I=jn(()=>A.value.map(se=>se.value)),z=jn(()=>{var ae;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&E.value===((ae=k.value[0])==null?void 0:ae.title))&&k.value.length>0&&!n.value&&!c.value}),$=jn(()=>t.hideNoData&&!k.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),Q=ei(),{onListScroll:j,onListKeydown:U}=cue(Q,d);function X(se){p=!0,t.openOnClear&&(w.value=!0)}function te(){$.value||(w.value=!0)}function W(se){$.value||(l.value&&(se.preventDefault(),se.stopPropagation()),w.value=!w.value)}function K(se){var de;if(wPe(se)||t.readonly||x!=null&&x.isReadonly.value)return;const ae=d.value.selectionStart,ce=A.value.length;if((y.value>-1||["Enter","ArrowDown","ArrowUp"].includes(se.key))&&se.preventDefault(),["Enter","ArrowDown"].includes(se.key)&&(w.value=!0),["Escape"].includes(se.key)&&(w.value=!1),["Enter","Escape","Tab"].includes(se.key)&&(z.value&&["Enter","Tab"].includes(se.key)&&!A.value.some(ve=>{let{value:ye}=ve;return ye===k.value[0].value})&&q(L.value[0]),n.value=!0),se.key==="ArrowDown"&&z.value&&((de=Q.value)==null||de.focus("next")),se.key==="Enter"&&E.value&&(q(Z4(t,E.value)),M.value&&(T.value="")),["Backspace","Delete"].includes(se.key)){if(!t.multiple&&M.value&&A.value.length>0&&!E.value)return q(A.value[0],!1);if(~y.value){const ve=y.value;q(A.value[y.value],!1),y.value=ve>=ce-1?ce-2:ve}else se.key==="Backspace"&&!E.value&&(y.value=ce-1)}if(t.multiple){if(se.key==="ArrowLeft"){if(y.value<0&&ae>0)return;const ve=y.value>-1?y.value-1:ce-1;A.value[ve]?y.value=ve:(y.value=-1,d.value.setSelectionRange(E.value.length,E.value.length))}if(se.key==="ArrowRight"){if(y.value<0)return;const ve=y.value+1;A.value[ve]?y.value=ve:(y.value=-1,d.value.setSelectionRange(0,0))}}}function oe(){var se;l.value&&(n.value=!0,(se=d.value)==null||se.focus())}function q(se){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!se||se.props.disabled))if(t.multiple){const ce=A.value.findIndex(ve=>t.valueComparator(ve.value,se.value)),de=ae??!~ce;if(~ce){const ve=de?[...A.value,se]:[...A.value];ve.splice(ce,1),A.value=ve}else de&&(A.value=[...A.value,se]);t.clearOnSelect&&(E.value="")}else{const ce=ae!==!1;A.value=ce?[se]:[],T.value=ce&&!M.value?se.title:"",lc(()=>{w.value=!1,n.value=!0})}}function Y(se){l.value=!0,setTimeout(()=>{c.value=!0})}function ee(se){c.value=!1}function me(se){(se==null||se===""&&!t.multiple&&!M.value)&&(A.value=[])}return Ni(l,(se,ae)=>{if(!(se||se===ae)&&(y.value=-1,w.value=!1,E.value)){if(t.multiple){q(Z4(t,E.value));return}if(!M.value)return;A.value.some(ce=>{let{title:de}=ce;return de===E.value})?T.value="":q(Z4(t,E.value))}}),Ni(w,()=>{if(!t.hideSelected&&w.value&&A.value.length){const se=k.value.findIndex(ae=>A.value.some(ce=>t.valueComparator(ce.value,ae.value)));ou&&window.requestAnimationFrame(()=>{var ae;se>=0&&((ae=i.value)==null||ae.scrollToIndex(se))})}}),Ni(()=>t.items,(se,ae)=>{w.value||l.value&&!ae.length&&se.length&&(w.value=!0)}),Ca(()=>{const se=!!(!t.hideNoData||k.value.length||f["prepend-item"]||f["append-item"]||f["no-data"]),ae=A.value.length>0,ce=um.filterProps(t);return Zt(um,Di({ref:d},ce,{modelValue:E.value,"onUpdate:modelValue":[de=>E.value=de,me],focused:l.value,"onUpdate:focused":de=>l.value=de,validationValue:A.externalValue,counterValue:C.value,dirty:ae,class:["v-combobox",{"v-combobox--active-menu":w.value,"v-combobox--chips":!!t.chips,"v-combobox--selection-slot":!!M.value,"v-combobox--selecting-index":y.value>-1,[`v-combobox--${t.multiple?"multiple":"single"}`]:!0},t.class],style:t.style,readonly:t.readonly,placeholder:ae?void 0:t.placeholder,"onClick:clear":X,"onMousedown:control":te,onKeydown:K}),{...f,default:()=>Zt(ya,null,[Zt(hS,Di({ref:b,modelValue:w.value,"onUpdate:modelValue":de=>w.value=de,activator:"parent",contentClass:"v-combobox__content",disabled:$.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:oe},t.menuProps),{default:()=>[se&&Zt(m_,Di({ref:Q,selected:I.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:de=>de.preventDefault(),onKeydown:U,onFocusin:Y,onFocusout:ee,onScrollPassive:j,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var de,ve,ye;return[(de=f["prepend-item"])==null?void 0:de.call(f),!k.value.length&&!t.hideNoData&&(((ve=f["no-data"])==null?void 0:ve.call(f))??Zt(Bf,{title:P(t.noDataText)},null)),Zt(lue,{ref:i,renderless:!0,items:k.value},{default:_e=>{var ze;let{item:Se,index:Te,itemRef:Pe}=_e;const Ie=Di(Se.props,{ref:Pe,key:Te,active:z.value&&Te===0?!0:void 0,onClick:()=>q(Se,null)});return((ze=f.item)==null?void 0:ze.call(f,{item:Se,index:Te,props:Ie}))??Zt(Bf,Di(Ie,{role:"option"}),{prepend:De=>{let{isSelected:He}=De;return Zt(ya,null,[t.multiple&&!t.hideSelected?Zt(LM,{key:Se.value,modelValue:He,ripple:!1,tabindex:"-1"},null):void 0,Se.props.prependAvatar&&Zt(PO,{image:Se.props.prependAvatar},null),Se.props.prependIcon&&Zt(Tl,{icon:Se.props.prependIcon},null)])},title:()=>{var De,He;return n.value?Se.title:WLe(Se.title,(De=D(Se))==null?void 0:De.title,((He=E.value)==null?void 0:He.length)??0)}})}}),(ye=f["append-item"])==null?void 0:ye.call(f)]}})]}),A.value.map((de,ve)=>{function ye(Pe){Pe.stopPropagation(),Pe.preventDefault(),q(de,!1)}const _e={"onClick:close":ye,onKeydown(Pe){Pe.key!=="Enter"&&Pe.key!==" "||(Pe.preventDefault(),Pe.stopPropagation(),ye(Pe))},onMousedown(Pe){Pe.preventDefault(),Pe.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},Se=R.value?!!f.chip:!!f.selection,Te=Se?dq(R.value?f.chip({item:de,index:ve,props:_e}):f.selection({item:de,index:ve})):void 0;if(!(Se&&!Te))return Zt("div",{key:de.value,class:["v-combobox__selection",ve===y.value&&["v-combobox__selection--selected",_.value]],style:ve===y.value?S.value:{}},[R.value?f.chip?Zt(du,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:de.title}}},{default:()=>[Te]}):Zt(AD,Di({key:"chip",closable:t.closableChips,size:"small",text:de.title,disabled:de.props.disabled},_e),null):Te??Zt("span",{class:"v-combobox__selection-text"},[de.title,t.multiple&&ve0&&f.push(P),f}function GLe(t,e,o){const f=o??Pq[e.slice(-2).toUpperCase()]??0,P=new Date(t);for(;P.getDay()!==f;)P.setDate(P.getDate()-1);return P}function KLe(t,e){const o=new Date(t),f=((Pq[e.slice(-2).toUpperCase()]??0)+6)%7;for(;o.getDay()!==f;)o.setDate(o.getDate()+1);return o}function s_e(t){return new Date(t.getFullYear(),t.getMonth(),1)}function l_e(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function JLe(t){const e=t.split("-").map(Number);return new Date(e[0],e[1]-1,e[2])}const eIe=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function c_e(t){if(t==null)return new Date;if(t instanceof Date)return t;if(typeof t=="string"){let e;if(eIe.test(t))return JLe(t);if(e=Date.parse(t),!isNaN(e))return new Date(e)}return null}const _ge=new Date(2e3,0,2);function tIe(t,e){const o=e??Pq[t.slice(-2).toUpperCase()]??0;return lT(7).map(f=>{const P=new Date(_ge);return P.setDate(_ge.getDate()+o+f),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(P)})}function nIe(t,e,o,f){const P=c_e(t)??new Date,d=f==null?void 0:f[e];if(typeof d=="function")return d(P,e,o);let l={};switch(e){case"fullDate":l={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":l={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const n=P.getDate(),c=new Intl.DateTimeFormat(o,{month:"long"}).format(P);return`${n} ${c}`;case"normalDateWithWeekday":l={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":l={month:"short",day:"numeric"};break;case"year":l={year:"numeric"};break;case"month":l={month:"long"};break;case"monthShort":l={month:"short"};break;case"monthAndYear":l={month:"long",year:"numeric"};break;case"monthAndDate":l={month:"long",day:"numeric"};break;case"weekday":l={weekday:"long"};break;case"weekdayShort":l={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(o).format(P.getDate());case"hours12h":l={hour:"numeric",hour12:!0};break;case"hours24h":l={hour:"numeric",hour12:!1};break;case"minutes":l={minute:"numeric"};break;case"seconds":l={second:"numeric"};break;case"fullTime":l={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":l={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":l={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":l={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":l={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":l={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":l={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":l={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":l={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":l={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:l=d??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(o,l).format(P)}function rIe(t,e){const o=t.toJsDate(e),f=o.getFullYear(),P=Mme(String(o.getMonth()+1),2,"0"),d=Mme(String(o.getDate()),2,"0");return`${f}-${P}-${d}`}function oIe(t){const[e,o,f]=t.split("-").map(Number);return new Date(e,o-1,f)}function iIe(t,e){const o=new Date(t);return o.setMinutes(o.getMinutes()+e),o}function aIe(t,e){const o=new Date(t);return o.setHours(o.getHours()+e),o}function sIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e),o}function lIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e*7),o}function cIe(t,e){const o=new Date(t);return o.setDate(1),o.setMonth(o.getMonth()+e),o}function uIe(t){return t.getFullYear()}function fIe(t){return t.getMonth()}function dIe(t){return t.getDate()}function hIe(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function pIe(t){return new Date(t.getFullYear(),t.getMonth()-1,1)}function mIe(t){return t.getHours()}function gIe(t){return t.getMinutes()}function vIe(t){return new Date(t.getFullYear(),0,1)}function yIe(t){return new Date(t.getFullYear(),11,31)}function bIe(t,e){return yZ(t,e[0])&&wIe(t,e[1])}function xIe(t){const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function yZ(t,e){return t.getTime()>e.getTime()}function _Ie(t,e){return yZ(Hse(t),Hse(e))}function wIe(t,e){return t.getTime(){o.locale=t.locale[f]??f??o.locale}),o}const zIe=ti({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),u_e=Symbol.for("vuetify:datatable:expanded");function FIe(t){const e=Oi(t,"expandOnClick"),o=Al(t,"expanded",t.expanded,n=>new Set(n),n=>[...n.values()]);function f(n,c){const b=new Set(o.value);c?b.add(n.value):b.delete(n.value),o.value=b}function P(n){return o.value.has(n.value)}function d(n){f(n,!P(n))}const l={expand:f,expanded:o,expandOnClick:e,isExpanded:P,toggleExpand:d};return gf(u_e,l),l}function f_e(){const t=vl(u_e);if(!t)throw new Error("foo");return t}const NIe=ti({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),d_e=Symbol.for("vuetify:data-table-group");function $Ie(t){return{groupBy:Al(t,"groupBy")}}function VIe(t){const{disableSort:e,groupBy:o,sortBy:f}=t,P=ei(new Set),d=jn(()=>o.value.map(i=>({...i,order:i.order??!1})).concat(e!=null&&e.value?[]:f.value));function l(i){return P.value.has(i.id)}function n(i){const O=new Set(P.value);l(i)?O.delete(i.id):O.add(i.id),P.value=O}function c(i){function O(w){const y=[];for(const p of w.items)"type"in p&&p.type==="group"?y.push(...O(p)):y.push(p);return y}return O({type:"group",items:i,id:"dummy",key:"dummy",value:"dummy",depth:0})}const b={sortByWithGroups:d,toggleGroup:n,opened:P,groupBy:o,extractRows:c,isGroupOpen:l};return gf(d_e,b),b}function h_e(){const t=vl(d_e);if(!t)throw new Error("Missing group!");return t}function UIe(t,e){if(!t.length)return[];const o=new Map;for(const f of t){const P=yT(f.raw,e);o.has(P)||o.set(P,[]),o.get(P).push(f)}return o}function p_e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!e.length)return[];const P=UIe(t,e[0]),d=[],l=e.slice(1);return P.forEach((n,c)=>{const b=e[0],i=`${f}_${b}_${c}`;d.push({depth:o,id:i,key:b,value:c,items:l.length?p_e(n,l,o+1,i):n,type:"group"})}),d}function m_e(t,e){const o=[];for(const f of t)"type"in f&&f.type==="group"?(f.value!=null&&o.push(f),(e.has(f.id)||f.value==null)&&o.push(...m_e(f.items,e))):o.push(f);return o}function jIe(t,e,o){return{flatItems:jn(()=>{if(!e.value.length)return t.value;const P=p_e(t.value,e.value.map(d=>d.key));return m_e(P,o.value)})}}function QIe(t){let{page:e,itemsPerPage:o,sortBy:f,groupBy:P,search:d}=t;const l=ph("VDataTable"),n=jn(()=>({page:e.value,itemsPerPage:o.value,sortBy:f.value,groupBy:P.value,search:d.value}));let c=null;Ni(n,()=>{yS(c,n.value)||(c&&c.search!==n.value.search&&(e.value=1),l.emit("update:options",n.value),c=n.value)},{deep:!0,immediate:!0})}const HIe=ti({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),g_e=Symbol.for("vuetify:data-table-pagination");function ZIe(t){const e=Al(t,"page",void 0,f=>+(f??1)),o=Al(t,"itemsPerPage",void 0,f=>+(f??10));return{page:e,itemsPerPage:o}}function qIe(t){const{page:e,itemsPerPage:o,itemsLength:f}=t,P=jn(()=>o.value===-1?0:o.value*(e.value-1)),d=jn(()=>o.value===-1?f.value:Math.min(f.value,P.value+o.value)),l=jn(()=>o.value===-1||f.value===0?1:Math.ceil(f.value/o.value));kp(()=>{e.value>l.value&&(e.value=l.value)});function n(w){o.value=w,e.value=1}function c(){e.value=Qg(e.value+1,1,l.value)}function b(){e.value=Qg(e.value-1,1,l.value)}function i(w){e.value=Qg(w,1,l.value)}const O={page:e,itemsPerPage:o,startIndex:P,stopIndex:d,pageCount:l,itemsLength:f,nextPage:c,prevPage:b,setPage:i,setItemsPerPage:n};return gf(g_e,O),O}function WIe(){const t=vl(g_e);if(!t)throw new Error("Missing pagination!");return t}function YIe(t){const e=ph("usePaginatedItems"),{items:o,startIndex:f,stopIndex:P,itemsPerPage:d}=t,l=jn(()=>d.value<=0?o.value:o.value.slice(f.value,P.value));return Ni(l,n=>{e.emit("update:currentItems",n)}),{paginatedItems:l}}const XIe={showSelectAll:!1,allSelected:()=>[],select:t=>{var f;let{items:e,value:o}=t;return new Set(o?[(f=e[0])==null?void 0:f.value]:[])},selectAll:t=>{let{selected:e}=t;return e}},v_e={showSelectAll:!0,allSelected:t=>{let{currentPage:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const P of e)o?f.add(P.value):f.delete(P.value);return f},selectAll:t=>{let{value:e,currentPage:o,selected:f}=t;return v_e.select({items:o,value:e,selected:f})}},y_e={showSelectAll:!0,allSelected:t=>{let{allItems:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const P of e)o?f.add(P.value):f.delete(P.value);return f},selectAll:t=>{let{value:e,allItems:o,selected:f}=t;return y_e.select({items:o,value:e,selected:f})}},GIe=ti({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:yS}},"DataTable-select"),b_e=Symbol.for("vuetify:data-table-selection");function KIe(t,e){let{allItems:o,currentPage:f}=e;const P=Al(t,"modelValue",t.modelValue,h=>new Set(fm(h).map(m=>{var v;return((v=o.value.find(_=>t.valueComparator(m,_.value)))==null?void 0:v.value)??m})),h=>[...h.values()]),d=jn(()=>o.value.filter(h=>h.selectable)),l=jn(()=>f.value.filter(h=>h.selectable)),n=jn(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single":return XIe;case"all":return y_e;case"page":default:return v_e}});function c(h){return fm(h).every(m=>P.value.has(m.value))}function b(h){return fm(h).some(m=>P.value.has(m.value))}function i(h,m){const v=n.value.select({items:h,value:m,selected:new Set(P.value)});P.value=v}function O(h){i([h],!c([h]))}function w(h){const m=n.value.selectAll({value:h,allItems:d.value,currentPage:l.value,selected:new Set(P.value)});P.value=m}const y=jn(()=>P.value.size>0),p=jn(()=>{const h=n.value.allSelected({allItems:d.value,currentPage:l.value});return!!h.length&&c(h)}),a=jn(()=>n.value.showSelectAll),u={toggleSelect:O,select:i,selectAll:w,isSelected:c,isSomeSelected:b,someSelected:y,allSelected:p,showSelectAll:a};return gf(b_e,u),u}function Rq(){const t=vl(b_e);if(!t)throw new Error("Missing selection!");return t}const JIe=ti({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),x_e=Symbol.for("vuetify:data-table-sort");function eDe(t){const e=Al(t,"sortBy"),o=Oi(t,"mustSort"),f=Oi(t,"multiSort");return{sortBy:e,mustSort:o,multiSort:f}}function tDe(t){const{sortBy:e,mustSort:o,multiSort:f,page:P}=t,d=c=>{if(c.key==null)return;let b=e.value.map(O=>({...O}))??[];const i=b.find(O=>O.key===c.key);i?i.order==="desc"?o.value?i.order="asc":b=b.filter(O=>O.key!==c.key):i.order="desc":f.value?b=[...b,{key:c.key,order:"asc"}]:b=[{key:c.key,order:"asc"}],e.value=b,P&&(P.value=1)};function l(c){return!!e.value.find(b=>b.key===c.key)}const n={sortBy:e,toggleSort:d,isSorted:l};return gf(x_e,n),n}function __e(){const t=vl(x_e);if(!t)throw new Error("Missing sort!");return t}function nDe(t,e,o,f){const P=Sx();return{sortedItems:jn(()=>{var l,n;return o.value.length?rDe(e.value,o.value,P.current.value,{transform:f==null?void 0:f.transform,sortFunctions:{...t.customKeySort,...(l=f==null?void 0:f.sortFunctions)==null?void 0:l.value},sortRawFunctions:(n=f==null?void 0:f.sortRawFunctions)==null?void 0:n.value}):e.value})}}function rDe(t,e,o,f){const P=new Intl.Collator(o,{sensitivity:"accent",usage:"sort"});return t.map(l=>[l,f!=null&&f.transform?f.transform(l):l]).sort((l,n)=>{var c,b;for(let i=0;im!=null?m.toString().toLocaleLowerCase():m),p!==a)return YQ(p)&&YQ(a)?0:YQ(p)?-1:YQ(a)?1:!isNaN(p)&&!isNaN(a)?Number(p)-Number(a):P.compare(p,a)}}return 0}).map(l=>{let[n]=l;return n})}function oDe(){const t=ei([]);N1e(()=>t.value=[]);function e(o,f){t.value[f]=o}return{refs:t,updateRef:e}}const iDe=ti({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:t=>t.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:t=>t%1===0},totalVisible:[Number,String],firstIcon:{type:Cl,default:"$first"},prevIcon:{type:Cl,default:"$prev"},nextIcon:{type:Cl,default:"$next"},lastIcon:{type:Cl,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...k_(),...xs(),...Qv(),...jv(),...pm(),...RM(),...Tu({tag:"nav"}),...Ff(),...Tx({variant:"text"})},"VPagination"),Sge=ta()({name:"VPagination",props:iDe(),emits:{"update:modelValue":t=>!0,first:t=>!0,prev:t=>!0,next:t=>!0,last:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=Al(t,"modelValue"),{t:d,n:l}=Sx(),{isRtl:n}=qg(),{themeClasses:c}=Md(t),{width:b}=bS(),i=Ai(-1);ib(void 0,{scoped:!0});const{resizeRef:O}=fS(R=>{if(!R.length)return;const{target:M,contentRect:T}=R[0],E=M.querySelector(".v-pagination__list > *");if(!E)return;const C=T.width,L=E.offsetWidth+parseFloat(getComputedStyle(E).marginRight)*2;i.value=a(C,L)}),w=jn(()=>parseInt(t.length,10)),y=jn(()=>parseInt(t.start,10)),p=jn(()=>t.totalVisible!=null?parseInt(t.totalVisible,10):i.value>=0?i.value:a(b.value,58));function a(R,M){const T=t.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((R-M*T)/M).toFixed(2)))}const u=jn(()=>{if(w.value<=0||isNaN(w.value)||w.value>Number.MAX_SAFE_INTEGER)return[];if(p.value<=0)return[];if(p.value===1)return[P.value];if(w.value<=p.value)return lT(w.value,y.value);const R=p.value%2===0,M=R?p.value/2:Math.floor(p.value/2),T=R?M:M+1,E=w.value-M;if(T-P.value>=0)return[...lT(Math.max(1,p.value-1),y.value),t.ellipsis,w.value];if(P.value-E>=(R?1:0)){const C=p.value-1,L=w.value-C+y.value;return[y.value,t.ellipsis,...lT(C,L)]}else{const C=Math.max(1,p.value-3),L=C===1?P.value:P.value-Math.ceil(C/2)+y.value;return[y.value,t.ellipsis,...lT(C,L),t.ellipsis,w.value]}});function h(R,M,T){R.preventDefault(),P.value=M,T&&f(T,M)}const{refs:m,updateRef:v}=oDe();ib({VPaginationBtn:{color:Oi(t,"color"),border:Oi(t,"border"),density:Oi(t,"density"),size:Oi(t,"size"),variant:Oi(t,"variant"),rounded:Oi(t,"rounded"),elevation:Oi(t,"elevation")}});const _=jn(()=>u.value.map((R,M)=>{const T=E=>v(E,M);if(typeof R=="string")return{isActive:!1,key:`ellipsis-${M}`,page:R,props:{ref:T,ellipsis:!0,icon:!0,disabled:!0}};{const E=R===P.value;return{isActive:E,key:R,page:l(R),props:{ref:T,ellipsis:!1,icon:!0,disabled:!!t.disabled||+t.length<2,color:E?t.activeColor:t.color,"aria-current":E,"aria-label":d(E?t.currentPageAriaLabel:t.pageAriaLabel,R),onClick:C=>h(C,R)}}}})),S=jn(()=>{const R=!!t.disabled||P.value<=y.value,M=!!t.disabled||P.value>=y.value+w.value-1;return{first:t.showFirstLastPage?{icon:n.value?t.lastIcon:t.firstIcon,onClick:T=>h(T,y.value,"first"),disabled:R,"aria-label":d(t.firstAriaLabel),"aria-disabled":R}:void 0,prev:{icon:n.value?t.nextIcon:t.prevIcon,onClick:T=>h(T,P.value-1,"prev"),disabled:R,"aria-label":d(t.previousAriaLabel),"aria-disabled":R},next:{icon:n.value?t.prevIcon:t.nextIcon,onClick:T=>h(T,P.value+1,"next"),disabled:M,"aria-label":d(t.nextAriaLabel),"aria-disabled":M},last:t.showFirstLastPage?{icon:n.value?t.firstIcon:t.lastIcon,onClick:T=>h(T,y.value+w.value-1,"last"),disabled:M,"aria-label":d(t.lastAriaLabel),"aria-disabled":M}:void 0}});function A(){var M;const R=P.value-y.value;(M=m.value[R])==null||M.$el.focus()}function x(R){R.key===Ese.left&&!t.disabled&&P.value>+t.start?(P.value=P.value-1,lc(A)):R.key===Ese.right&&!t.disabled&&P.valueZt(t.tag,{ref:O,class:["v-pagination",c.value,t.class],style:t.style,role:"navigation","aria-label":d(t.ariaLabel),onKeydown:x,"data-test":"v-pagination-root"},{default:()=>[Zt("ul",{class:"v-pagination__list"},[t.showFirstLastPage&&Zt("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[o.first?o.first(S.value.first):Zt(ps,Di({_as:"VPaginationBtn"},S.value.first),null)]),Zt("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[o.prev?o.prev(S.value.prev):Zt(ps,Di({_as:"VPaginationBtn"},S.value.prev),null)]),_.value.map((R,M)=>Zt("li",{key:R.key,class:["v-pagination__item",{"v-pagination__item--is-active":R.isActive}],"data-test":"v-pagination-item"},[o.item?o.item(R):Zt(ps,Di({_as:"VPaginationBtn"},R.props),{default:()=>[R.page]})])),Zt("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[o.next?o.next(S.value.next):Zt(ps,Di({_as:"VPaginationBtn"},S.value.next),null)]),t.showFirstLastPage&&Zt("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[o.last?o.last(S.value.last):Zt(ps,Di({_as:"VPaginationBtn"},S.value.last),null)])])]})),{}}}),w_e=ti({prevIcon:{type:Cl,default:"$prev"},nextIcon:{type:Cl,default:"$next"},firstIcon:{type:Cl,default:"$first"},lastIcon:{type:Cl,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),kge=ta()({name:"VDataTableFooter",props:w_e(),setup(t,e){let{slots:o}=e;const{t:f}=Sx(),{page:P,pageCount:d,startIndex:l,stopIndex:n,itemsLength:c,itemsPerPage:b,setItemsPerPage:i}=WIe(),O=jn(()=>t.itemsPerPageOptions.map(w=>typeof w=="number"?{value:w,title:w===-1?f("$vuetify.dataFooter.itemsPerPageAll"):String(w)}:{...w,title:isNaN(Number(w.title))?f(w.title):w.title}));return Ca(()=>{var y;const w=Sge.filterProps(t);return Zt("div",{class:"v-data-table-footer"},[(y=o.prepend)==null?void 0:y.call(o),Zt("div",{class:"v-data-table-footer__items-per-page"},[Zt("span",null,[f(t.itemsPerPageText)]),Zt(ED,{items:O.value,modelValue:b.value,"onUpdate:modelValue":p=>i(Number(p)),density:"compact",variant:"outlined","hide-details":!0},null)]),Zt("div",{class:"v-data-table-footer__info"},[Zt("div",null,[f(t.pageText,c.value?l.value+1:0,n.value,c.value)])]),Zt("div",{class:"v-data-table-footer__pagination"},[Zt(Sge,Di({modelValue:P.value,"onUpdate:modelValue":p=>P.value=p,density:"comfortable","first-aria-label":t.firstPageLabel,"last-aria-label":t.lastPageLabel,length:d.value,"next-aria-label":t.nextPageLabel,"previous-aria-label":t.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":t.showCurrentPage?1:0,variant:"plain"},w),null)])])}),{}}}),bZ=r9e({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(t,e)=>{let{slots:o}=e;const f=t.tag??"td";return Zt(f,{class:["v-data-table__td",{"v-data-table-column--fixed":t.fixed,"v-data-table-column--last-fixed":t.lastFixed,"v-data-table-column--no-padding":t.noPadding,"v-data-table-column--nowrap":t.nowrap},`v-data-table-column--align-${t.align}`],style:{height:Ma(t.height),width:Ma(t.width),maxWidth:Ma(t.maxWidth),left:Ma(t.fixedOffset||null)}},{default:()=>{var P;return[(P=o.default)==null?void 0:P.call(o)]}})}),aDe=ti({headers:Array},"DataTable-header"),O_e=Symbol.for("vuetify:data-table-headers"),S_e={title:"",sortable:!1},sDe={...S_e,width:48};function lDe(){const e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(o=>({element:o,priority:0}));return{enqueue:(o,f)=>{let P=!1;for(let d=0;df){e.splice(d,0,{element:o,priority:f}),P=!0;break}P||e.push({element:o,priority:f})},size:()=>e.length,count:()=>{let o=0;if(!e.length)return 0;const f=Math.floor(e[0].priority);for(let P=0;Pe.shift()}}function Zse(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!t.children)e.push(t);else for(const o of t.children)Zse(o,e);return e}function k_e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const o of t)o.key&&e.add(o.key),o.children&&k_e(o.children,e);return e}function cDe(t){if(t.key){if(t.key==="data-table-group")return S_e;if(["data-table-expand","data-table-select"].includes(t.key))return sDe}}function yue(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.children?Math.max(e,...t.children.map(o=>yue(o,e+1))):e}function uDe(t){let e=!1;function o(d){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(d)if(l&&(d.fixed=!0),d.fixed)if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n],!0);else e?isNaN(+d.width)&&(`${d.key}`,void 0):d.lastFixed=!0,e=!0;else if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n]);else e=!1}for(let d=t.length-1;d>=0;d--)o(t[d]);function f(d){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!d)return l;if(d.children){d.fixedOffset=l;for(const n of d.children)l=f(n,l)}else d.fixed&&(d.fixedOffset=l,l+=parseFloat(d.width||"0")||0);return l}let P=0;for(const d of t)P=f(d,P)}function fDe(t,e){const o=[];let f=0;const P=lDe(t);for(;P.size()>0;){let l=P.count();const n=[];let c=1;for(;l>0;){const{element:b,priority:i}=P.dequeue(),O=e-f-yue(b);if(n.push({...b,rowspan:O??1,colspan:b.children?Zse(b).length:1}),b.children)for(const w of b.children){const y=i%1+c/Math.pow(10,f+2);P.enqueue(w,f+O+y)}c+=1,l-=1}f+=1,o.push(n)}return{columns:t.map(l=>Zse(l)).flat(),headers:o}}function T_e(t){const e=[];for(const o of t){const f={...cDe(o),...o},P=f.key??(typeof f.value=="string"?f.value:null),d=f.value??P??null,l={...f,key:P,value:d,sortable:f.sortable??(f.key!=null||!!f.sort),children:f.children?T_e(f.children):void 0};e.push(l)}return e}function dDe(t,e){const o=ei([]),f=ei([]),P=ei({}),d=ei({}),l=ei({});kp(()=>{var a,u,h;const b=(t.headers||Object.keys(t.items[0]??{}).map(m=>({key:m,title:v_(m)}))).slice(),i=k_e(b);(a=e==null?void 0:e.groupBy)!=null&&a.value.length&&!i.has("data-table-group")&&b.unshift({key:"data-table-group",title:"Group"}),(u=e==null?void 0:e.showSelect)!=null&&u.value&&!i.has("data-table-select")&&b.unshift({key:"data-table-select"}),(h=e==null?void 0:e.showExpand)!=null&&h.value&&!i.has("data-table-expand")&&b.push({key:"data-table-expand"});const O=T_e(b);uDe(O);const w=Math.max(...O.map(m=>yue(m)))+1,y=fDe(O,w);o.value=y.headers,f.value=y.columns;const p=y.headers.flat(1);for(const m of p)m.key&&(m.sortable&&(m.sort&&(P.value[m.key]=m.sort),m.sortRaw&&(d.value[m.key]=m.sortRaw)),m.filter&&(l.value[m.key]=m.filter))});const n={headers:o,columns:f,sortFunctions:P,sortRawFunctions:d,filterFunctions:l};return gf(O_e,n),n}function Lq(){const t=vl(O_e);if(!t)throw new Error("Missing headers!");return t}const C_e=ti({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:Cl,default:"$sortAsc"},sortDescIcon:{type:Cl,default:"$sortDesc"},headerProps:{type:Object},...CD(),...bq()},"VDataTableHeaders"),Tge=ta()({name:"VDataTableHeaders",props:C_e(),setup(t,e){let{slots:o}=e;const{t:f}=Sx(),{toggleSort:P,sortBy:d,isSorted:l}=__e(),{someSelected:n,allSelected:c,selectAll:b,showSelectAll:i}=Rq(),{columns:O,headers:w}=Lq(),{loaderClasses:y}=TD(t);function p(R,M){if(!(!t.sticky&&!R.fixed))return{position:"sticky",left:R.fixed?Ma(R.fixedOffset):void 0,top:t.sticky?`calc(var(--v-table-header-height) * ${M})`:void 0}}function a(R){const M=d.value.find(T=>T.key===R.key);return M?M.order==="asc"?t.sortAscIcon:t.sortDescIcon:t.sortAscIcon}const{backgroundColorClasses:u,backgroundColorStyles:h}=og(t,"color"),{displayClasses:m,mobile:v}=bS(t),_=jn(()=>({headers:w.value,columns:O.value,toggleSort:P,isSorted:l,sortBy:d.value,someSelected:n.value,allSelected:c.value,selectAll:b,getSortIcon:a})),S=jn(()=>["v-data-table__th",{"v-data-table__th--sticky":t.sticky},m.value,y.value]),A=R=>{let{column:M,x:T,y:E}=R;const C=M.key==="data-table-select"||M.key==="data-table-expand",L=Di(t.headerProps??{},M.headerProps??{});return Zt(bZ,Di({tag:"th",align:M.align,class:[{"v-data-table__th--sortable":M.sortable&&!t.disableSort,"v-data-table__th--sorted":l(M),"v-data-table__th--fixed":M.fixed},...S.value],style:{width:Ma(M.width),minWidth:Ma(M.minWidth),maxWidth:Ma(M.maxWidth),...p(M,E)},colspan:M.colspan,rowspan:M.rowspan,onClick:M.sortable?()=>P(M):void 0,fixed:M.fixed,nowrap:M.nowrap,lastFixed:M.lastFixed,noPadding:C},L),{default:()=>{var I;const D=`header.${M.key}`,k={column:M,selectAll:b,isSorted:l,toggleSort:P,sortBy:d.value,someSelected:n.value,allSelected:c.value,getSortIcon:a};return o[D]?o[D](k):M.key==="data-table-select"?((I=o["header.data-table-select"])==null?void 0:I.call(o,k))??(i.value&&Zt(LM,{modelValue:c.value,indeterminate:n.value&&!c.value,"onUpdate:modelValue":b},null)):Zt("div",{class:"v-data-table-header__content"},[Zt("span",null,[M.title]),M.sortable&&!t.disableSort&&Zt(Tl,{key:"icon",class:"v-data-table-header__sort-icon",icon:a(M)},null),t.multiSort&&l(M)&&Zt("div",{key:"badge",class:["v-data-table-header__sort-badge",...u.value],style:h.value},[d.value.findIndex(z=>z.key===M.key)+1])])}})},x=()=>{const R=Di(t.headerProps??{}??{}),M=jn(()=>O.value.filter(E=>(E==null?void 0:E.sortable)&&!t.disableSort)),T=jn(()=>{if(O.value.find(C=>C.key==="data-table-select")!=null)return c.value?"$checkboxOn":n.value?"$checkboxIndeterminate":"$checkboxOff"});return Zt(bZ,Di({tag:"th",class:[...S.value],colspan:w.value.length+1},R),{default:()=>[Zt("div",{class:"v-data-table-header__content"},[Zt(ED,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:M.value,label:f("$vuetify.dataTable.sortBy"),multiple:t.multiSort,variant:"underlined","onClick:clear":()=>d.value=[],appendIcon:T.value,"onClick:append":()=>b(!c.value)},{...o,chip:E=>{var C;return Zt(AD,{onClick:(C=E.item.raw)!=null&&C.sortable?()=>P(E.item.raw):void 0,onMousedown:L=>{L.preventDefault(),L.stopPropagation()}},{default:()=>[E.item.title,Zt(Tl,{class:["v-data-table__td-sort-icon",l(E.item.raw)&&"v-data-table__td-sort-icon-active"],icon:a(E.item.raw),size:"small"},null)]})}})])]})};Ca(()=>v.value?Zt("tr",null,[Zt(x,null,null)]):Zt(ya,null,[o.headers?o.headers(_.value):w.value.map((R,M)=>Zt("tr",null,[R.map((T,E)=>Zt(A,{column:T,x:E,y:M},null))])),t.loading&&Zt("tr",{class:"v-data-table-progress"},[Zt("th",{colspan:O.value.length},[Zt(xq,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0},{default:o.loader})])])]))}}),hDe=ti({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),pDe=ta()({name:"VDataTableGroupHeaderRow",props:hDe(),setup(t,e){let{slots:o}=e;const{isGroupOpen:f,toggleGroup:P,extractRows:d}=h_e(),{isSelected:l,isSomeSelected:n,select:c}=Rq(),{columns:b}=Lq(),i=jn(()=>d([t.item]));return()=>Zt("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":t.item.depth}},[b.value.map(O=>{var w,y;if(O.key==="data-table-group"){const p=f(t.item)?"$expand":"$next",a=()=>P(t.item);return((w=o["data-table-group"])==null?void 0:w.call(o,{item:t.item,count:i.value.length,props:{icon:p,onClick:a}}))??Zt(bZ,{class:"v-data-table-group-header-row__column"},{default:()=>[Zt(ps,{size:"small",variant:"text",icon:p,onClick:a},null),Zt("span",null,[t.item.value]),Zt("span",null,[Cs("("),i.value.length,Cs(")")])]})}if(O.key==="data-table-select"){const p=l(i.value),a=n(i.value)&&!p,u=h=>c(i.value,h);return((y=o["data-table-select"])==null?void 0:y.call(o,{props:{modelValue:p,indeterminate:a,"onUpdate:modelValue":u}}))??Zt("td",null,[Zt(LM,{modelValue:p,indeterminate:a,"onUpdate:modelValue":u},null)])}return Zt("td",null,null)})])}}),mDe=ti({index:Number,item:Object,cellProps:[Object,Function],onClick:rg(),onContextmenu:rg(),onDblclick:rg(),...CD()},"VDataTableRow"),gDe=ta()({name:"VDataTableRow",props:mDe(),setup(t,e){let{slots:o}=e;const{displayClasses:f,mobile:P}=bS(t,"v-data-table__tr"),{isSelected:d,toggleSelect:l,someSelected:n,allSelected:c,selectAll:b}=Rq(),{isExpanded:i,toggleExpand:O}=f_e(),{toggleSort:w,sortBy:y,isSorted:p}=__e(),{columns:a}=Lq();Ca(()=>Zt("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(t.onClick||t.onContextmenu||t.onDblclick)},f.value],onClick:t.onClick,onContextmenu:t.onContextmenu,onDblclick:t.onDblclick},[t.item&&a.value.map((u,h)=>{const m=t.item,v=`item.${u.key}`,_=`header.${u.key}`,S={index:t.index,item:m.raw,internalItem:m,value:yT(m.columns,u.key),column:u,isSelected:d,toggleSelect:l,isExpanded:i,toggleExpand:O},A={column:u,selectAll:b,isSorted:p,toggleSort:w,sortBy:y.value,someSelected:n.value,allSelected:c.value,getSortIcon:()=>""},x=typeof t.cellProps=="function"?t.cellProps({index:S.index,item:S.item,internalItem:S.internalItem,value:S.value,column:u}):t.cellProps,R=typeof u.cellProps=="function"?u.cellProps({index:S.index,item:S.item,internalItem:S.internalItem,value:S.value}):u.cellProps;return Zt(bZ,Di({align:u.align,class:{"v-data-table__td--expanded-row":u.key==="data-table-expand","v-data-table__td--select-row":u.key==="data-table-select"},fixed:u.fixed,fixedOffset:u.fixedOffset,lastFixed:u.lastFixed,maxWidth:P.value?void 0:u.maxWidth,noPadding:u.key==="data-table-select"||u.key==="data-table-expand",nowrap:u.nowrap,width:P.value?void 0:u.width},x,R),{default:()=>{var T,E,C,L,D;if(o[v]&&!P.value)return(T=o[v])==null?void 0:T.call(o,S);if(u.key==="data-table-select")return((E=o["item.data-table-select"])==null?void 0:E.call(o,S))??Zt(LM,{disabled:!m.selectable,modelValue:d([m]),onClick:DH(()=>l(m),["stop"])},null);if(u.key==="data-table-expand")return((C=o["item.data-table-expand"])==null?void 0:C.call(o,S))??Zt(ps,{icon:i(m)?"$collapse":"$expand",size:"small",variant:"text",onClick:DH(()=>O(m),["stop"])},null);const M=sc(S.value);return P.value?Zt(ya,null,[Zt("div",{class:"v-data-table__td-title"},[((L=o[_])==null?void 0:L.call(o,A))??u.title]),Zt("div",{class:"v-data-table__td-value"},[((D=o[v])==null?void 0:D.call(o,S))??M])]):M}})})]))}}),A_e=ti({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...CD()},"VDataTableRows"),Cge=ta()({name:"VDataTableRows",inheritAttrs:!1,props:A_e(),setup(t,e){let{attrs:o,slots:f}=e;const{columns:P}=Lq(),{expandOnClick:d,toggleExpand:l,isExpanded:n}=f_e(),{isSelected:c,toggleSelect:b}=Rq(),{toggleGroup:i,isGroupOpen:O}=h_e(),{t:w}=Sx(),{mobile:y}=bS(t);return Ca(()=>{var p,a;return t.loading&&(!t.items.length||f.loading)?Zt("tr",{class:"v-data-table-rows-loading",key:"loading"},[Zt("td",{colspan:P.value.length},[((p=f.loading)==null?void 0:p.call(f))??w(t.loadingText)])]):!t.loading&&!t.items.length&&!t.hideNoData?Zt("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[Zt("td",{colspan:P.value.length},[((a=f["no-data"])==null?void 0:a.call(f))??w(t.noDataText)])]):Zt(ya,null,[t.items.map((u,h)=>{var _;if(u.type==="group"){const S={index:h,item:u,columns:P.value,isExpanded:n,toggleExpand:l,isSelected:c,toggleSelect:b,toggleGroup:i,isGroupOpen:O};return f["group-header"]?f["group-header"](S):Zt(pDe,Di({key:`group-header_${u.id}`,item:u},Hme(o,":group-header",()=>S)),f)}const m={index:h,item:u.raw,internalItem:u,columns:P.value,isExpanded:n,toggleExpand:l,isSelected:c,toggleSelect:b},v={...m,props:Di({key:`item_${u.key??u.index}`,onClick:d.value?()=>{l(u)}:void 0,index:h,item:u,cellProps:t.cellProps,mobile:y.value},Hme(o,":row",()=>m),typeof t.rowProps=="function"?t.rowProps({item:m.item,index:m.index,internalItem:m.internalItem}):t.rowProps)};return Zt(ya,{key:v.props.key},[f.item?f.item(v):Zt(gDe,v.props,f),n(u)&&((_=f["expanded-row"])==null?void 0:_.call(f,m))])})])}),{}}});const M_e=ti({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...xs(),...Qv(),...Tu(),...Ff()},"VTable"),Age=ta()({name:"VTable",props:M_e(),setup(t,e){let{slots:o,emit:f}=e;const{themeClasses:P}=Md(t),{densityClasses:d}=kx(t);return Ca(()=>Zt(t.tag,{class:["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!o.top,"v-table--has-bottom":!!o.bottom,"v-table--hover":t.hover},P.value,d.value,t.class],style:t.style},{default:()=>{var l,n,c;return[(l=o.top)==null?void 0:l.call(o),o.default?Zt("div",{class:"v-table__wrapper",style:{height:Ma(t.height)}},[Zt("table",null,[o.default()])]):(n=o.wrapper)==null?void 0:n.call(o),(c=o.bottom)==null?void 0:c.call(o)]}})),{}}}),vDe=ti({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function yDe(t,e,o,f){const P=t.returnObject?e:y1(e,t.itemValue),d=y1(e,t.itemSelectable,!0),l=f.reduce((n,c)=>(c.key!=null&&(n[c.key]=y1(e,c.value)),n),{});return{type:"item",key:t.returnObject?y1(e,t.itemValue):P,index:o,value:P,selectable:d,columns:l,raw:e}}function bDe(t,e,o){return e.map((f,P)=>yDe(t,f,P,o))}function xDe(t,e){return{items:jn(()=>bDe(t,t.items,e.value))}}const _De=ti({...A_e(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...zIe(),...NIe(),...aDe(),...vDe(),...GIe(),...JIe(),...C_e(),...M_e()},"DataTable"),wDe=ti({...HIe(),..._De(),...fue(),...w_e()},"VDataTable"),Iq=ta()({name:"VDataTable",props:wDe(),emits:{"update:modelValue":t=>!0,"update:page":t=>!0,"update:itemsPerPage":t=>!0,"update:sortBy":t=>!0,"update:options":t=>!0,"update:groupBy":t=>!0,"update:expanded":t=>!0,"update:currentItems":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{groupBy:P}=$Ie(t),{sortBy:d,multiSort:l,mustSort:n}=eDe(t),{page:c,itemsPerPage:b}=ZIe(t),{disableSort:i}=CM(t),{columns:O,headers:w,sortFunctions:y,sortRawFunctions:p,filterFunctions:a}=dDe(t,{groupBy:P,showSelect:Oi(t,"showSelect"),showExpand:Oi(t,"showExpand")}),{items:u}=xDe(t,O),h=Oi(t,"search"),{filteredItems:m}=due(t,u,h,{transform:q=>q.columns,customKeyFilter:a}),{toggleSort:v}=tDe({sortBy:d,multiSort:l,mustSort:n,page:c}),{sortByWithGroups:_,opened:S,extractRows:A,isGroupOpen:x,toggleGroup:R}=VIe({groupBy:P,sortBy:d,disableSort:i}),{sortedItems:M}=nDe(t,m,_,{transform:q=>({...q.raw,...q.columns}),sortFunctions:y,sortRawFunctions:p}),{flatItems:T}=jIe(M,P,S),E=jn(()=>T.value.length),{startIndex:C,stopIndex:L,pageCount:D,setItemsPerPage:k}=qIe({page:c,itemsPerPage:b,itemsLength:E}),{paginatedItems:I}=YIe({items:T,startIndex:C,stopIndex:L,itemsPerPage:b}),z=jn(()=>A(I.value)),{isSelected:$,select:Q,selectAll:j,toggleSelect:U,someSelected:X,allSelected:te}=KIe(t,{allItems:u,currentPage:z}),{isExpanded:W,toggleExpand:K}=FIe(t);QIe({page:c,itemsPerPage:b,sortBy:d,groupBy:P,search:h}),ib({VDataTableRows:{hideNoData:Oi(t,"hideNoData"),noDataText:Oi(t,"noDataText"),loading:Oi(t,"loading"),loadingText:Oi(t,"loadingText")}});const oe=jn(()=>({page:c.value,itemsPerPage:b.value,sortBy:d.value,pageCount:D.value,toggleSort:v,setItemsPerPage:k,someSelected:X.value,allSelected:te.value,isSelected:$,select:Q,selectAll:j,toggleSelect:U,isExpanded:W,toggleExpand:K,isGroupOpen:x,toggleGroup:R,items:z.value.map(q=>q.raw),internalItems:z.value,groupedItems:I.value,columns:O.value,headers:w.value}));return Ca(()=>{const q=kge.filterProps(t),Y=Tge.filterProps(t),ee=Cge.filterProps(t),me=Age.filterProps(t);return Zt(Age,Di({class:["v-data-table",{"v-data-table--show-select":t.showSelect,"v-data-table--loading":t.loading},t.class],style:t.style},me),{top:()=>{var he;return(he=f.top)==null?void 0:he.call(f,oe.value)},default:()=>{var he,se,ae,ce,de,ve;return f.default?f.default(oe.value):Zt(ya,null,[(he=f.colgroup)==null?void 0:he.call(f,oe.value),!t.hideDefaultHeader&&Zt("thead",{key:"thead"},[Zt(Tge,Y,f)]),(se=f.thead)==null?void 0:se.call(f,oe.value),!t.hideDefaultBody&&Zt("tbody",null,[(ae=f["body.prepend"])==null?void 0:ae.call(f,oe.value),f.body?f.body(oe.value):Zt(Cge,Di(o,ee,{items:I.value}),f),(ce=f["body.append"])==null?void 0:ce.call(f,oe.value)]),(de=f.tbody)==null?void 0:de.call(f,oe.value),(ve=f.tfoot)==null?void 0:ve.call(f,oe.value)])},bottom:()=>f.bottom?f.bottom(oe.value):!t.hideDefaultFooter&&Zt(ya,null,[Zt(yM,null,null),Zt(kge,q,{prepend:f["footer.prepend"]})])})}),{}}});const ODe=ti({fluid:{type:Boolean,default:!1},...xs(),...Tu()},"VContainer"),bM=ta()({name:"VContainer",props:ODe(),setup(t,e){let{slots:o}=e;const{rtlClasses:f}=qg();return Ca(()=>Zt(t.tag,{class:["v-container",{"v-container--fluid":t.fluid},f.value,t.class],style:t.style},o)),{}}}),E_e=(()=>Aq.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),P_e=(()=>Aq.reduce((t,e)=>{const o="offset"+v_(e);return t[o]={type:[String,Number],default:null},t},{}))(),R_e=(()=>Aq.reduce((t,e)=>{const o="order"+v_(e);return t[o]={type:[String,Number],default:null},t},{}))(),Mge={col:Object.keys(E_e),offset:Object.keys(P_e),order:Object.keys(R_e)};function SDe(t,e,o){let f=t;if(!(o==null||o===!1)){if(e){const P=e.replace(t,"");f+=`-${P}`}return t==="col"&&(f="v-"+f),t==="col"&&(o===""||o===!0)||(f+=`-${o}`),f.toLowerCase()}}const kDe=["auto","start","end","center","baseline","stretch"],TDe=ti({cols:{type:[Boolean,String,Number],default:!1},...E_e,offset:{type:[String,Number],default:null},...P_e,order:{type:[String,Number],default:null},...R_e,alignSelf:{type:String,default:null,validator:t=>kDe.includes(t)},...xs(),...Tu()},"VCol"),hT=ta()({name:"VCol",props:TDe(),setup(t,e){let{slots:o}=e;const f=jn(()=>{const P=[];let d;for(d in Mge)Mge[d].forEach(n=>{const c=t[n],b=SDe(d,n,c);b&&P.push(b)});const l=P.some(n=>n.startsWith("v-col-"));return P.push({"v-col":!l||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),P});return()=>{var P;return w1(t.tag,{class:[f.value,t.class],style:t.style},(P=o.default)==null?void 0:P.call(o))}}}),bue=["start","end","center"],L_e=["space-between","space-around","space-evenly"];function xue(t,e){return Aq.reduce((o,f)=>{const P=t+v_(f);return o[P]=e(),o},{})}const CDe=[...bue,"baseline","stretch"],I_e=t=>CDe.includes(t),D_e=xue("align",()=>({type:String,default:null,validator:I_e})),ADe=[...bue,...L_e],B_e=t=>ADe.includes(t),z_e=xue("justify",()=>({type:String,default:null,validator:B_e})),MDe=[...bue,...L_e,"stretch"],F_e=t=>MDe.includes(t),N_e=xue("alignContent",()=>({type:String,default:null,validator:F_e})),Ege={align:Object.keys(D_e),justify:Object.keys(z_e),alignContent:Object.keys(N_e)},EDe={align:"align",justify:"justify",alignContent:"align-content"};function PDe(t,e,o){let f=EDe[t];if(o!=null){if(e){const P=e.replace(t,"");f+=`-${P}`}return f+=`-${o}`,f.toLowerCase()}}const RDe=ti({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:I_e},...D_e,justify:{type:String,default:null,validator:B_e},...z_e,alignContent:{type:String,default:null,validator:F_e},...N_e,...xs(),...Tu()},"VRow"),Dq=ta()({name:"VRow",props:RDe(),setup(t,e){let{slots:o}=e;const f=jn(()=>{const P=[];let d;for(d in Ege)Ege[d].forEach(l=>{const n=t[l],c=PDe(d,l,n);c&&P.push(c)});return P.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),P});return()=>{var P;return w1(t.tag,{class:["v-row",f.value,t.class],style:t.style},(P=o.default)==null?void 0:P.call(o))}}}),$_e=hq("v-spacer","div","VSpacer");const eD=Symbol.for("vuetify:v-expansion-panel"),V_e=ti({...xs(),...Y2e()},"VExpansionPanelText"),xZ=ta()({name:"VExpansionPanelText",props:V_e(),setup(t,e){let{slots:o}=e;const f=vl(eD);if(!f)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:P,onAfterLeave:d}=X2e(t,f.isSelected);return Ca(()=>Zt(Xce,{onAfterLeave:d},{default:()=>{var l;return[Tp(Zt("div",{class:["v-expansion-panel-text",t.class],style:t.style},[o.default&&P.value&&Zt("div",{class:"v-expansion-panel-text__wrapper"},[(l=o.default)==null?void 0:l.call(o)])]),[[pS,f.isSelected.value]])]}})),{}}}),U_e=ti({color:String,expandIcon:{type:Cl,default:"$expand"},collapseIcon:{type:Cl,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...xs()},"VExpansionPanelTitle"),_Z=ta()({name:"VExpansionPanelTitle",directives:{Ripple:AT},props:U_e(),setup(t,e){let{slots:o}=e;const f=vl(eD);if(!f)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:P,backgroundColorStyles:d}=og(t,"color"),l=jn(()=>({collapseIcon:t.collapseIcon,disabled:f.disabled.value,expanded:f.isSelected.value,expandIcon:t.expandIcon,readonly:t.readonly})),n=jn(()=>f.isSelected.value?t.collapseIcon:t.expandIcon);return Ca(()=>{var c;return Tp(Zt("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":f.isSelected.value,"v-expansion-panel-title--focusable":t.focusable,"v-expansion-panel-title--static":t.static},P.value,t.class],style:[d.value,t.style],type:"button",tabindex:f.disabled.value?-1:void 0,disabled:f.disabled.value,"aria-expanded":f.isSelected.value,onClick:t.readonly?void 0:f.toggle},[Zt("span",{class:"v-expansion-panel-title__overlay"},null),(c=o.default)==null?void 0:c.call(o,l.value),!t.hideActions&&Zt(du,{defaults:{VIcon:{icon:n.value}}},{default:()=>{var b;return[Zt("span",{class:"v-expansion-panel-title__icon"},[((b=o.actions)==null?void 0:b.call(o,l.value))??Zt(Tl,null,null)])]}})]),[[y_("ripple"),t.ripple]])}),{}}}),j_e=ti({title:String,text:String,bgColor:String,...jv(),...Jce(),...pm(),...Tu(),...U_e(),...V_e()},"VExpansionPanel"),Q_e=ta()({name:"VExpansionPanel",props:j_e(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:o}=e;const f=eue(t,eD),{backgroundColorClasses:P,backgroundColorStyles:d}=og(t,"bgColor"),{elevationClasses:l}=sb(t),{roundedClasses:n}=sg(t),c=jn(()=>(f==null?void 0:f.disabled.value)||t.disabled),b=jn(()=>f.group.items.value.reduce((w,y,p)=>(f.group.selected.value.includes(y.id)&&w.push(p),w),[])),i=jn(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===1)}),O=jn(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===-1)});return gf(eD,f),Ca(()=>{const w=!!(o.text||t.text),y=!!(o.title||t.title),p=_Z.filterProps(t),a=xZ.filterProps(t);return Zt(t.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":f.isSelected.value,"v-expansion-panel--before-active":i.value,"v-expansion-panel--after-active":O.value,"v-expansion-panel--disabled":c.value},n.value,P.value,t.class],style:[d.value,t.style]},{default:()=>[Zt("div",{class:["v-expansion-panel__shadow",...l.value]},null),Zt(du,{defaults:{VExpansionPanelTitle:{...p},VExpansionPanelText:{...a}}},{default:()=>{var u;return[y&&Zt(_Z,{key:"title"},{default:()=>[o.title?o.title():t.title]}),w&&Zt(xZ,{key:"text"},{default:()=>[o.text?o.text():t.text]}),(u=o.default)==null?void 0:u.call(o)]}})]})}),{groupItem:f}}}),LDe=["default","accordion","inset","popout"],IDe=ti({flat:Boolean,...mq(),...Vce(j_e(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...Ff(),...xs(),...Tu(),variant:{type:String,default:"default",validator:t=>LDe.includes(t)}},"VExpansionPanels"),H_e=ta()({name:"VExpansionPanels",props:IDe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{next:f,prev:P}=gq(t,eD),{themeClasses:d}=Md(t),l=jn(()=>t.variant&&`v-expansion-panels--variant-${t.variant}`);return ib({VExpansionPanel:{bgColor:Oi(t,"bgColor"),collapseIcon:Oi(t,"collapseIcon"),color:Oi(t,"color"),eager:Oi(t,"eager"),elevation:Oi(t,"elevation"),expandIcon:Oi(t,"expandIcon"),focusable:Oi(t,"focusable"),hideActions:Oi(t,"hideActions"),readonly:Oi(t,"readonly"),ripple:Oi(t,"ripple"),rounded:Oi(t,"rounded"),static:Oi(t,"static")}}),Ca(()=>Zt(t.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":t.flat,"v-expansion-panels--tile":t.tile},d.value,l.value,t.class],style:t.style},{default:()=>{var n;return[(n=o.default)==null?void 0:n.call(o,{prev:P,next:f})]}})),{next:f,prev:P}}});const DDe=ti({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...k_(),...xs(),...jv(),...qce(),...pm(),...Tu({tag:"footer"}),...Ff()},"VFooter"),BDe=ta()({name:"VFooter",props:DDe(),setup(t,e){let{slots:o}=e;const f=ei(),P=Ai(),{themeClasses:d}=Md(t),{backgroundColorClasses:l,backgroundColorStyles:n}=og(Oi(t,"color")),{borderClasses:c}=DO(t),{elevationClasses:b}=sb(t),{roundedClasses:i}=sg(t),O=Ai(32),{resizeRef:w}=fS(p=>{p.length&&(O.value=p[0].target.clientHeight)}),y=jn(()=>t.height==="auto"?O.value:parseInt(t.height,10));return x1(()=>t.app,()=>{const p=Wce({id:t.name,order:jn(()=>parseInt(t.order,10)),position:jn(()=>"bottom"),layoutSize:y,elementSize:jn(()=>t.height==="auto"?void 0:y.value),active:jn(()=>t.app),absolute:Oi(t,"absolute")});kp(()=>{f.value=p.layoutItemStyles.value,P.value=p.layoutIsReady})}),Ca(()=>Zt(t.tag,{ref:w,class:["v-footer",d.value,l.value,c.value,b.value,i.value,t.class],style:[n.value,t.app?f.value:{height:Ma(t.height)},t.style]},o)),t.app?P.value:{}}}),zDe=ti({...xs(),...hRe()},"VForm"),FDe=ta()({name:"VForm",props:zDe(),emits:{"update:modelValue":t=>!0,submit:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=pRe(t),d=ei();function l(c){c.preventDefault(),P.reset()}function n(c){const b=c,i=P.validate();b.then=i.then.bind(i),b.catch=i.catch.bind(i),b.finally=i.finally.bind(i),f("submit",b),b.defaultPrevented||i.then(O=>{var y;let{valid:w}=O;w&&((y=d.value)==null||y.submit())}),b.preventDefault()}return Ca(()=>{var c;return Zt("form",{ref:d,class:["v-form",t.class],style:t.style,novalidate:!0,onReset:l,onSubmit:n},[(c=o.default)==null?void 0:c.call(o,P)])}),T_(P,d)}});const NDe=ti({scrollable:Boolean,...xs(),...O_(),...Tu({tag:"main"})},"VMain"),$De=ta()({name:"VMain",props:NDe(),setup(t,e){let{slots:o}=e;const{dimensionStyles:f}=S_(t),{mainStyles:P,layoutIsReady:d}=Zxe(),{ssrBootStyles:l}=pq();return Ca(()=>Zt(t.tag,{class:["v-main",{"v-main--scrollable":t.scrollable},t.class],style:[P.value,l.value,f.value,t.style]},{default:()=>{var n,c;return[t.scrollable?Zt("div",{class:"v-main__scroller"},[(n=o.default)==null?void 0:n.call(o)]):(c=o.default)==null?void 0:c.call(o)]}})),d}});function VDe(t){let{rootEl:e,isSticky:o,layoutItemStyles:f}=t;const P=Ai(!1),d=Ai(0),l=jn(()=>{const b=typeof P.value=="boolean"?"top":P.value;return[o.value?{top:"auto",bottom:"auto",height:void 0}:void 0,P.value?{[b]:Ma(d.value)}:{top:f.value.top}]});ag(()=>{Ni(o,b=>{b?window.addEventListener("scroll",c,{passive:!0}):window.removeEventListener("scroll",c)},{immediate:!0})}),dm(()=>{window.removeEventListener("scroll",c)});let n=0;function c(){const b=n>window.scrollY?"up":"down",i=e.value.getBoundingClientRect(),O=parseFloat(f.value.top??0),w=window.scrollY-Math.max(0,d.value-O),y=i.height+Math.max(d.value,O)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(e.value).getPropertyValue("--v-body-scroll-y"))||0;i.height0;o--){if(t[o].t===t[o-1].t)continue;const f=Pge(e),P=(t[o].d-t[o-1].d)/(t[o].t-t[o-1].t);e+=(P-f)*Math.abs(P),o===t.length-1&&(e*=.5)}return Pge(e)*1e3}function QDe(){const t={};function e(P){Array.from(P.changedTouches).forEach(d=>{(t[d.identifier]??(t[d.identifier]=new kPe(jDe))).push([P.timeStamp,d])})}function o(P){Array.from(P.changedTouches).forEach(d=>{delete t[d.identifier]})}function f(P){var b;const d=(b=t[P])==null?void 0:b.values().reverse();if(!d)throw new Error(`No samples for touch id ${P}`);const l=d[0],n=[],c=[];for(const i of d){if(l[0]-i[0]>UDe)break;n.push({t:i[0],d:i[1].clientX}),c.push({t:i[0],d:i[1].clientY})}return{x:Rge(n),y:Rge(c),get direction(){const{x:i,y:O}=this,[w,y]=[Math.abs(i),Math.abs(O)];return w>y&&i>=0?"right":w>y&&i<=0?"left":y>w&&O>=0?"down":y>w&&O<=0?"up":HDe()}}}return{addMovement:e,endTouch:o,getVelocity:f}}function HDe(){throw new Error}function ZDe(t){let{el:e,isActive:o,isTemporary:f,width:P,touchless:d,position:l}=t;ag(()=>{window.addEventListener("touchstart",m,{passive:!0}),window.addEventListener("touchmove",v,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),dm(()=>{window.removeEventListener("touchstart",m),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",_)});const n=jn(()=>["left","right"].includes(l.value)),{addMovement:c,endTouch:b,getVelocity:i}=QDe();let O=!1;const w=Ai(!1),y=Ai(0),p=Ai(0);let a;function u(A,x){return(l.value==="left"?A:l.value==="right"?document.documentElement.clientWidth-A:l.value==="top"?A:l.value==="bottom"?document.documentElement.clientHeight-A:RA())-(x?P.value:0)}function h(A){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const R=l.value==="left"?(A-p.value)/P.value:l.value==="right"?(document.documentElement.clientWidth-A-p.value)/P.value:l.value==="top"?(A-p.value)/P.value:l.value==="bottom"?(document.documentElement.clientHeight-A-p.value)/P.value:RA();return x?Math.max(0,Math.min(1,R)):R}function m(A){if(d.value)return;const x=A.changedTouches[0].clientX,R=A.changedTouches[0].clientY,M=25,T=l.value==="left"?xdocument.documentElement.clientWidth-M:l.value==="top"?Rdocument.documentElement.clientHeight-M:RA(),E=o.value&&(l.value==="left"?xdocument.documentElement.clientWidth-P.value:l.value==="top"?Rdocument.documentElement.clientHeight-P.value:RA());(T||E||o.value&&f.value)&&(a=[x,R],p.value=u(n.value?x:R,o.value),y.value=h(n.value?x:R),O=p.value>-20&&p.value<80,b(A),c(A))}function v(A){const x=A.changedTouches[0].clientX,R=A.changedTouches[0].clientY;if(O){if(!A.cancelable){O=!1;return}const T=Math.abs(x-a[0]),E=Math.abs(R-a[1]);(n.value?T>E&&T>3:E>T&&E>3)?(w.value=!0,O=!1):(n.value?E:T)>3&&(O=!1)}if(!w.value)return;A.preventDefault(),c(A);const M=h(n.value?x:R,!1);y.value=Math.max(0,Math.min(1,M)),M>1?p.value=u(n.value?x:R,!0):M<0&&(p.value=u(n.value?x:R,!1))}function _(A){if(O=!1,!w.value)return;c(A),w.value=!1;const x=i(A.changedTouches[0].identifier),R=Math.abs(x.x),M=Math.abs(x.y);(n.value?R>M&&R>400:M>R&&M>3)?o.value=x.direction===({left:"right",right:"left",top:"down",bottom:"up"}[l.value]||RA()):o.value=y.value>.5}const S=jn(()=>w.value?{transform:l.value==="left"?`translateX(calc(-100% + ${y.value*P.value}px))`:l.value==="right"?`translateX(calc(100% - ${y.value*P.value}px))`:l.value==="top"?`translateY(calc(-100% + ${y.value*P.value}px))`:l.value==="bottom"?`translateY(calc(100% - ${y.value*P.value}px))`:RA(),transition:"none"}:void 0);return x1(w,()=>{var R,M;const A=((R=e.value)==null?void 0:R.style.transform)??null,x=((M=e.value)==null?void 0:M.style.transition)??null;kp(()=>{var T,E,C,L;(E=e.value)==null||E.style.setProperty("transform",((T=S.value)==null?void 0:T.transform)||"none"),(L=e.value)==null||L.style.setProperty("transition",((C=S.value)==null?void 0:C.transition)||null)}),ig(()=>{var T,E;(T=e.value)==null||T.style.setProperty("transform",A),(E=e.value)==null||E.style.setProperty("transition",x)})}),{isDragging:w,dragProgress:y,dragStyles:S}}function RA(){throw new Error}const qDe=["start","end","left","right","top","bottom"],WDe=ti({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:t=>qDe.includes(t)},sticky:Boolean,...k_(),...xs(),...Z2e(),...CD({mobile:null}),...jv(),...qce(),...pm(),...Tu({tag:"nav"}),...Ff()},"VNavigationDrawer"),Z_e=ta()({name:"VNavigationDrawer",props:WDe(),emits:{"update:modelValue":t=>!0,"update:rail":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{isRtl:d}=qg(),{themeClasses:l}=Md(t),{borderClasses:n}=DO(t),{backgroundColorClasses:c,backgroundColorStyles:b}=og(Oi(t,"color")),{elevationClasses:i}=sb(t),{displayClasses:O,mobile:w}=bS(t),{roundedClasses:y}=sg(t),p=p2e(),a=Al(t,"modelValue",null,X=>!!X),{ssrBootStyles:u}=pq(),{scopeId:h}=BM(),m=ei(),v=Ai(!1),{runOpenDelay:_,runCloseDelay:S}=q2e(t,X=>{v.value=X}),A=jn(()=>t.rail&&t.expandOnHover&&v.value?Number(t.width):Number(t.rail?t.railWidth:t.width)),x=jn(()=>Lse(t.location,d.value)),R=jn(()=>t.persistent),M=jn(()=>!t.permanent&&(w.value||t.temporary)),T=jn(()=>t.sticky&&!M.value&&x.value!=="bottom");x1(()=>t.expandOnHover&&t.rail!=null,()=>{Ni(v,X=>f("update:rail",!X))}),x1(()=>!t.disableResizeWatcher,()=>{Ni(M,X=>!t.permanent&&lc(()=>a.value=!X))}),x1(()=>!t.disableRouteWatcher&&!!p,()=>{Ni(p.currentRoute,()=>M.value&&(a.value=!1))}),Ni(()=>t.permanent,X=>{X&&(a.value=!0)}),t.modelValue==null&&!M.value&&(a.value=t.permanent||!w.value);const{isDragging:E,dragProgress:C}=ZDe({el:m,isActive:a,isTemporary:M,width:A,touchless:Oi(t,"touchless"),position:x}),L=jn(()=>{const X=M.value?0:t.rail&&t.expandOnHover?Number(t.railWidth):A.value;return E.value?X*C.value:X}),D=jn(()=>["top","bottom"].includes(t.location)?0:A.value),{layoutItemStyles:k,layoutItemScrimStyles:I,layoutIsReady:z}=Wce({id:t.name,order:jn(()=>parseInt(t.order,10)),position:x,layoutSize:L,elementSize:D,active:jn(()=>a.value||E.value),disableTransitions:jn(()=>E.value),absolute:jn(()=>t.absolute||T.value&&typeof $.value!="string")}),{isStuck:$,stickyStyles:Q}=VDe({rootEl:m,isSticky:T,layoutItemStyles:k}),j=og(jn(()=>typeof t.scrim=="string"?t.scrim:null)),U=jn(()=>({...E.value?{opacity:C.value*.2,transition:"none"}:void 0,...I.value}));return ib({VList:{bgColor:"transparent"}}),Ca(()=>{const X=P.image||t.image;return Zt(ya,null,[Zt(t.tag,Di({ref:m,onMouseenter:_,onMouseleave:S,class:["v-navigation-drawer",`v-navigation-drawer--${x.value}`,{"v-navigation-drawer--expand-on-hover":t.expandOnHover,"v-navigation-drawer--floating":t.floating,"v-navigation-drawer--is-hovering":v.value,"v-navigation-drawer--rail":t.rail,"v-navigation-drawer--temporary":M.value,"v-navigation-drawer--persistent":R.value,"v-navigation-drawer--active":a.value,"v-navigation-drawer--sticky":T.value},l.value,c.value,n.value,O.value,i.value,y.value,t.class],style:[b.value,k.value,u.value,Q.value,t.style,["top","bottom"].includes(x.value)?{height:"auto"}:{}]},h,o),{default:()=>{var te,W,K;return[X&&Zt("div",{key:"image",class:"v-navigation-drawer__img"},[P.image?Zt(du,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:t.image}}},P.image):Zt(kT,{key:"image-img",alt:"",cover:!0,height:"inherit",src:t.image},null)]),P.prepend&&Zt("div",{class:"v-navigation-drawer__prepend"},[(te=P.prepend)==null?void 0:te.call(P)]),Zt("div",{class:"v-navigation-drawer__content"},[(W=P.default)==null?void 0:W.call(P)]),P.append&&Zt("div",{class:"v-navigation-drawer__append"},[(K=P.append)==null?void 0:K.call(P)])]}}),Zt(h_,{name:"fade-transition"},{default:()=>[M.value&&(E.value||a.value)&&!!t.scrim&&Zt("div",Di({class:["v-navigation-drawer__scrim",j.backgroundColorClasses.value],style:[U.value,j.backgroundColorStyles.value],onClick:()=>{R.value||(a.value=!1)}},h),null)]})])}),z.then(()=>({isStuck:$}))}}),YDe=ti({...Tq(),...DM(),...r_e(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),_ue=ta()({name:"VRangeSlider",props:YDe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,end:t=>!0,start:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=ei(),d=ei(),l=ei(),{rtlClasses:n}=qg();function c(T){if(!P.value||!d.value)return;const E=jse(T,P.value.$el,t.direction),C=jse(T,d.value.$el,t.direction),L=Math.abs(E),D=Math.abs(C);return LT!=null&&T.length?T.map(E=>b.roundValue(E)):[0,0]),{activeThumbRef:O,hasLabels:w,max:y,min:p,mousePressed:a,onSliderMousedown:u,onSliderTouchstart:h,position:m,trackContainerRef:v,readonly:_}=i_e({props:t,steps:b,onSliderStart:()=>{f("start",i.value)},onSliderEnd:T=>{var L;let{value:E}=T;const C=O.value===((L=P.value)==null?void 0:L.$el)?[E,i.value[1]]:[i.value[0],E];!t.strict&&C[0]{var D,k,I,z;let{value:E}=T;const[C,L]=i.value;!t.strict&&C===L&&C!==p.value&&(O.value=E>C?(D=d.value)==null?void 0:D.$el:(k=P.value)==null?void 0:k.$el,(I=O.value)==null||I.focus()),O.value===((z=P.value)==null?void 0:z.$el)?i.value=[Math.min(E,L),L]:i.value=[C,Math.max(C,E)]},getActiveThumb:c}),{isFocused:S,focus:A,blur:x}=IM(t),R=jn(()=>m(i.value[0])),M=jn(()=>m(i.value[1]));return Ca(()=>{const T=p_.filterProps(t),E=!!(t.label||o.label||o.prepend);return Zt(p_,Di({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!o["tick-label"]||w.value,"v-slider--focused":S.value,"v-slider--pressed":a.value,"v-slider--disabled":t.disabled},n.value,t.class],style:t.style,ref:l},T,{focused:S.value}),{...o,prepend:E?C=>{var L,D;return Zt(ya,null,[((L=o.label)==null?void 0:L.call(o,C))??(t.label?Zt(kq,{class:"v-slider__label",text:t.label},null):void 0),(D=o.prepend)==null?void 0:D.call(o,C)])}:void 0,default:C=>{var k,I;let{id:L,messagesId:D}=C;return Zt("div",{class:"v-slider__container",onMousedown:_.value?void 0:u,onTouchstartPassive:_.value?void 0:h},[Zt("input",{id:`${L.value}_start`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[0]},null),Zt("input",{id:`${L.value}_stop`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[1]},null),Zt(a_e,{ref:v,start:R.value,stop:M.value},{"tick-label":o["tick-label"]}),Zt(Qse,{ref:P,"aria-describedby":D.value,focused:S&&O.value===((k=P.value)==null?void 0:k.$el),modelValue:i.value[0],"onUpdate:modelValue":z=>i.value=[z,i.value[1]],onFocus:z=>{var $,Q,j,U;A(),O.value=($=P.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[1]===p.value&&z.relatedTarget!==((Q=d.value)==null?void 0:Q.$el)&&((j=P.value)==null||j.$el.blur(),(U=d.value)==null||U.$el.focus())},onBlur:()=>{x(),O.value=void 0},min:p.value,max:i.value[1],position:R.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]}),Zt(Qse,{ref:d,"aria-describedby":D.value,focused:S&&O.value===((I=d.value)==null?void 0:I.$el),modelValue:i.value[1],"onUpdate:modelValue":z=>i.value=[i.value[0],z],onFocus:z=>{var $,Q,j,U;A(),O.value=($=d.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[0]===y.value&&z.relatedTarget!==((Q=P.value)==null?void 0:Q.$el)&&((j=d.value)==null||j.$el.blur(),(U=P.value)==null||U.$el.focus())},onBlur:()=>{x(),O.value=void 0},min:i.value[0],max:y.value,position:M.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]})])}})}),{}}});function XDe(t){const e=Ai(t());let o=-1;function f(){clearInterval(o)}function P(){f(),lc(()=>e.value=t())}function d(l){const n=l?getComputedStyle(l):{transitionDuration:.2},c=parseFloat(n.transitionDuration)*1e3||200;if(f(),e.value<=0)return;const b=performance.now();o=window.setInterval(()=>{const i=performance.now()-b+c;e.value=Math.max(t()-i,0),e.value<=0&&f()},c)}return ig(f),{clear:f,time:e,start:d,reset:P}}const GDe=ti({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...kD({location:"bottom"}),..._q(),...pm(),...Tx(),...Ff(),...__(MD({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),KDe=ta()({name:"VSnackbar",props:GDe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=Al(t,"modelValue"),{positionClasses:P}=wq(t),{scopeId:d}=BM(),{themeClasses:l}=Md(t),{colorClasses:n,colorStyles:c,variantClasses:b}=CT(t),{roundedClasses:i}=sg(t),O=XDe(()=>Number(t.timeout)),w=ei(),y=ei(),p=Ai(!1),a=Ai(0),u=ei(),h=vl(YI,void 0);x1(()=>!!h,()=>{const T=Zxe();kp(()=>{u.value=T.mainStyles.value})}),Ni(f,v),Ni(()=>t.timeout,v),ag(()=>{f.value&&v()});let m=-1;function v(){O.reset(),window.clearTimeout(m);const T=Number(t.timeout);if(!f.value||T===-1)return;const E=$ce(y.value);O.start(E),m=window.setTimeout(()=>{f.value=!1},T)}function _(){O.reset(),window.clearTimeout(m)}function S(){p.value=!0,_()}function A(){p.value=!1,v()}function x(T){a.value=T.touches[0].clientY}function R(T){Math.abs(a.value-T.changedTouches[0].clientY)>50&&(f.value=!1)}const M=jn(()=>t.location.split(" ").reduce((T,E)=>(T[`v-snackbar--${E}`]=!0,T),{}));return Ca(()=>{const T=dS.filterProps(t),E=!!(o.default||o.text||t.text);return Zt(dS,Di({ref:w,class:["v-snackbar",{"v-snackbar--active":f.value,"v-snackbar--multi-line":t.multiLine&&!t.vertical,"v-snackbar--timer":!!t.timer,"v-snackbar--vertical":t.vertical},M.value,P.value,t.class],style:[u.value,t.style]},T,{modelValue:f.value,"onUpdate:modelValue":C=>f.value=C,contentProps:Di({class:["v-snackbar__wrapper",l.value,n.value,i.value,b.value],style:[c.value],onPointerenter:S,onPointerleave:A},T.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:x,onTouchend:R},d),{default:()=>{var C,L;return[TT(!1,"v-snackbar"),t.timer&&!p.value&&Zt("div",{key:"timer",class:"v-snackbar__timer"},[Zt(h2e,{ref:y,color:typeof t.timer=="string"?t.timer:"info",max:t.timeout,"model-value":O.time.value},null)]),E&&Zt("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((C=o.text)==null?void 0:C.call(o))??t.text,(L=o.default)==null?void 0:L.call(o)]),o.actions&&Zt(du,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[Zt("div",{class:"v-snackbar__actions"},[o.actions({isActive:f})])]})]},activator:o.activator})}),T_({},w)}});const JDe=ti({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...DM(),...tue()},"VSwitch"),$A=ta()({name:"VSwitch",inheritAttrs:!1,props:JDe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const P=Al(t,"indeterminate"),d=Al(t,"modelValue"),{loaderClasses:l}=TD(t),{isFocused:n,focus:c,blur:b}=IM(t),i=ei(),O=ou&&window.matchMedia("(forced-colors: active)").matches,w=jn(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),y=Vv(),p=jn(()=>t.id||`switch-${y}`);function a(){P.value&&(P.value=!1)}function u(h){var m,v;h.stopPropagation(),h.preventDefault(),(v=(m=i.value)==null?void 0:m.input)==null||v.click()}return Ca(()=>{const[h,m]=fq(o),v=p_.filterProps(t),_=gZ.filterProps(t);return Zt(p_,Di({class:["v-switch",{"v-switch--flat":t.flat},{"v-switch--inset":t.inset},{"v-switch--indeterminate":P.value},l.value,t.class]},h,v,{modelValue:d.value,"onUpdate:modelValue":S=>d.value=S,id:p.value,focused:n.value,style:t.style}),{...f,default:S=>{let{id:A,messagesId:x,isDisabled:R,isReadonly:M,isValid:T}=S;const E={model:d,isValid:T};return Zt(gZ,Di({ref:i},_,{modelValue:d.value,"onUpdate:modelValue":[C=>d.value=C,a],id:A.value,"aria-describedby":x.value,type:"checkbox","aria-checked":P.value?"mixed":void 0,disabled:R.value,readonly:M.value,onFocus:c,onBlur:b},m),{...f,default:C=>{let{backgroundColorClasses:L,backgroundColorStyles:D}=C;return Zt("div",{class:["v-switch__track",O?void 0:L.value],style:D.value,onClick:u},[f["track-true"]&&Zt("div",{key:"prepend",class:"v-switch__track-true"},[f["track-true"](E)]),f["track-false"]&&Zt("div",{key:"append",class:"v-switch__track-false"},[f["track-false"](E)])])},input:C=>{let{inputNode:L,icon:D,backgroundColorClasses:k,backgroundColorStyles:I}=C;return Zt(ya,null,[L,Zt("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||t.loading},t.inset||O?void 0:k.value],style:t.inset?void 0:I.value},[f.thumb?Zt(du,{defaults:{VIcon:{icon:D,size:"x-small"}}},{default:()=>[f.thumb({...E,icon:D})]}):Zt(Kxe,null,{default:()=>[t.loading?Zt(xq,{name:"v-switch",active:!0,color:T.value===!1?void 0:w.value},{default:z=>f.loader?f.loader(z):Zt(SD,{active:z.isActive,color:z.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&Zt(Tl,{key:String(D),icon:D,size:"x-small"},null)]})])])}})}})}),{}}});const eBe=ti({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseFloat(t))},maxRows:{type:[Number,String],validator:t=>!isNaN(parseFloat(t))},suffix:String,modelModifiers:Object,...DM(),...aue()},"VTextarea"),RD=ta()({name:"VTextarea",directives:{Intersect:Kce},inheritAttrs:!1,props:eBe(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const d=Al(t,"modelValue"),{isFocused:l,focus:n,blur:c}=IM(t),b=jn(()=>typeof t.counterValue=="function"?t.counterValue(d.value):(d.value||"").toString().length),i=jn(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter});function O(E,C){var L,D;!t.autofocus||!E||(D=(L=C[0].target)==null?void 0:L.focus)==null||D.call(L)}const w=ei(),y=ei(),p=Ai(""),a=ei(),u=jn(()=>t.persistentPlaceholder||l.value||t.active);function h(){var E;a.value!==document.activeElement&&((E=a.value)==null||E.focus()),l.value||n()}function m(E){h(),f("click:control",E)}function v(E){f("mousedown:control",E)}function _(E){E.stopPropagation(),h(),lc(()=>{d.value="",Rxe(t["onClick:clear"],E)})}function S(E){var L;const C=E.target;if(d.value=C.value,(L=t.modelModifiers)!=null&&L.trim){const D=[C.selectionStart,C.selectionEnd];lc(()=>{C.selectionStart=D[0],C.selectionEnd=D[1]})}}const A=ei(),x=ei(+t.rows),R=jn(()=>["plain","underlined"].includes(t.variant));kp(()=>{t.autoGrow||(x.value=+t.rows)});function M(){t.autoGrow&&lc(()=>{if(!A.value||!y.value)return;const E=getComputedStyle(A.value),C=getComputedStyle(y.value.$el),L=parseFloat(E.getPropertyValue("--v-field-padding-top"))+parseFloat(E.getPropertyValue("--v-input-padding-top"))+parseFloat(E.getPropertyValue("--v-field-padding-bottom")),D=A.value.scrollHeight,k=parseFloat(E.lineHeight),I=Math.max(parseFloat(t.rows)*k+L,parseFloat(C.getPropertyValue("--v-input-control-height"))),z=parseFloat(t.maxRows)*k+L||1/0,$=Qg(D??0,I,z);x.value=Math.floor(($-L)/k),p.value=Ma($)})}ag(M),Ni(d,M),Ni(()=>t.rows,M),Ni(()=>t.maxRows,M),Ni(()=>t.density,M);let T;return Ni(A,E=>{E?(T=new ResizeObserver(M),T.observe(A.value)):T==null||T.disconnect()}),dm(()=>{T==null||T.disconnect()}),Ca(()=>{const E=!!(P.counter||t.counter||t.counterValue),C=!!(E||P.details),[L,D]=fq(o),{modelValue:k,...I}=p_.filterProps(t),z=e_e(t);return Zt(p_,Di({ref:w,modelValue:d.value,"onUpdate:modelValue":$=>d.value=$,class:["v-textarea v-text-field",{"v-textarea--prefixed":t.prefix,"v-textarea--suffixed":t.suffix,"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-textarea--auto-grow":t.autoGrow,"v-textarea--no-resize":t.noResize||t.autoGrow,"v-input--plain-underlined":R.value},t.class],style:t.style},L,I,{centerAffix:x.value===1&&!R.value,focused:l.value}),{...P,default:$=>{let{id:Q,isDisabled:j,isDirty:U,isReadonly:X,isValid:te}=$;return Zt(sue,Di({ref:y,style:{"--v-textarea-control-height":p.value},onClick:m,onMousedown:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},z,{id:Q.value,active:u.value||U.value,centerAffix:x.value===1&&!R.value,dirty:U.value||t.dirty,disabled:j.value,focused:l.value,error:te.value===!1}),{...P,default:W=>{let{props:{class:K,...oe}}=W;return Zt(ya,null,[t.prefix&&Zt("span",{class:"v-text-field__prefix"},[t.prefix]),Tp(Zt("textarea",Di({ref:a,class:K,value:d.value,onInput:S,autofocus:t.autofocus,readonly:X.value,disabled:j.value,placeholder:t.placeholder,rows:t.rows,name:t.name,onFocus:h,onBlur:c},oe,D),null),[[y_("intersect"),{handler:O},null,{once:!0}]]),t.autoGrow&&Tp(Zt("textarea",{class:[K,"v-textarea__sizer"],id:`${oe.id}-sizer`,"onUpdate:modelValue":q=>d.value=q,ref:A,readonly:!0,"aria-hidden":"true"},null),[[L5e,d.value]]),t.suffix&&Zt("span",{class:"v-text-field__suffix"},[t.suffix])])}})},details:C?$=>{var Q;return Zt(ya,null,[(Q=P.details)==null?void 0:Q.call(P,$),E&&Zt(ya,null,[Zt("span",null,null),Zt(J2e,{active:t.persistentCounter||l.value,value:b.value,max:i.value,disabled:t.disabled},P.counter)])])}:void 0})}),T_({},w,y,a)}});const tBe=ti({id:String,text:String,...__(MD({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),q_e=ta()({name:"VTooltip",props:tBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=Al(t,"modelValue"),{scopeId:P}=BM(),d=Vv(),l=jn(()=>t.id||`v-tooltip-${d}`),n=ei(),c=jn(()=>t.location.split(" ").length>1?t.location:t.location+" center"),b=jn(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),i=jn(()=>t.transition?t.transition:f.value?"scale-transition":"fade-transition"),O=jn(()=>Di({"aria-describedby":l.value},t.activatorProps));return Ca(()=>{const w=dS.filterProps(t);return Zt(dS,Di({ref:n,class:["v-tooltip",t.class],style:t.style,id:l.value},w,{modelValue:f.value,"onUpdate:modelValue":y=>f.value=y,transition:i.value,absolute:!0,location:c.value,origin:b.value,persistent:!0,role:"tooltip",activatorProps:O.value,_disableGlobalStack:!0},P),{activator:o.activator,default:function(){var u;for(var y=arguments.length,p=new Array(y),a=0;a{const P=o.replace(/_/g,"-");return e[P]=f,e},{})},getEventBindings(t){return t.component==="v-card"?{}:{[t.triggerEvent]:()=>this.runCode(!0,t.id,t.value),keydown:e=>this.handleEnterPress(e,t.id,t.component,t.value)}},handleEnterPress(t,e,o,f){t.key==="Enter"&&(o==="v-text-field"||o==="v-textarea"||o==="v-number-input")&&this.runCode(!0,e,f)},getChildren(t){return t.map(e=>this.allComponents[e])},runCode(t,e,o){this.allComponents[e].component==="v-btn"&&(o=!0,this.allComponents[e].value=!0),this.$emit("runCode",t,e,o)}}},iBe={key:0},aBe={key:1};function sBe(t,e,o,f,P,d){const l=Zd("plotly-plot"),n=Zd("component-wrapper",!0);return Bo(!0),Da(ya,null,ob(o.renderComponents,c=>(Bo(),Da("div",{key:c.id},[Zt(Dq,{class:"pa-5"},{default:Oo(()=>[c.component==="plotly-plot"?(Bo(),la(l,{key:0,id:c.id,figureJson:c.figure_json},null,8,["id","figureJson"])):c.component==="zt-html"?(Bo(),la(bM,{key:1,innerHTML:c.v_html},null,8,["innerHTML"])):(Bo(),la(SI(c.component),Di({key:2},d.componentBind(c),{modelValue:c.value,"onUpdate:modelValue":b=>c.value=b},TSe(d.getEventBindings(c))),V1e({_:2},[c.component!=="v-data-table"?{name:"default",fn:Oo(()=>[c.childComponents?(Bo(),Da("div",iBe,[Zt(n,{renderComponents:d.getChildren(c.childComponents),allComponents:o.allComponents,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):c.component==="v-btn"?(Bo(),Da("div",aBe,sc(c.text),1)):Wa("",!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"]))]),_:2},1024)]))),128)}const W_e=hm(oBe,[["render",sBe]]),lBe={emits:["runCode"],components:{"v-slider":gue,"v-text-field":um,"v-textarea":RD,"v-range-slider":_ue,"v-select":ED,"v-combobox":vue,"v-btn":ps,"v-img":kT,"v-data-table":Iq,"v-autocomplete":hue,"v-card":BO,"v-text":wue,"plotly-plot":Kle,"component-wrapper":W_e},props:{rowData:{type:Object},columnData:{type:Object},components:{type:Object,required:!0}},methods:{runCode(t,e,o){this.$emit("runCode",t,e,o)},componentWidth(t){return t.width?t.width:!1}}},cBe={key:0},uBe={key:1},fBe={key:1},dBe={key:0},hBe={key:1};function pBe(t,e,o,f,P,d){const l=Zd("component-wrapper"),n=Zd("layout-component",!0);return Bo(),Da(ya,null,[o.rowData?(Bo(),la(Dq,{key:0},{default:Oo(()=>[(Bo(!0),Da(ya,null,ob(o.rowData.components,(c,b)=>(Bo(),la(hT,{key:b,cols:d.componentWidth(c)},{default:Oo(()=>[typeof c=="string"?(Bo(),Da("div",cBe,[Zt(l,{renderComponents:[o.components[c]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Bo(),Da("div",uBe,[Zt(n,{"column-data":c,components:o.components,onRunCode:d.runCode},null,8,["column-data","components","onRunCode"])]))]),_:2},1032,["cols"]))),128))]),_:1})):Wa("",!0),o.columnData?(Bo(),Da("div",fBe,[(Bo(!0),Da(ya,null,ob(o.columnData.components,(c,b)=>(Bo(),Da("div",{key:b},[typeof c=="string"?(Bo(),Da("div",dBe,[Zt(l,{renderComponents:[o.components[c]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Bo(),Da("div",hBe,[Zt(n,{"row-data":c,components:o.components,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"])]))]))),128))])):Wa("",!0)],64)}const mBe=hm(lBe,[["render",pBe]]),Pv=lm({copilot_active:!1,connection_lost:!1,timers:{}}),Kh={clock:'',cubic:'',circleAdd:'',code:'',delete:'',done:'',dot:'',dropdown:' ',duplicate:'',edit:'',markdown:'',message:'',more:'',notebook:'',logo:'',monitor:'',play:'',save:'',undo:'',redo:' ',settings:'',share:'',sql:' ',status:'',stop:'',text:'',visibility:'',copilot:'GitHub Copilot'},gBe={component:t=>w1(t.tag,{...t,innerHTML:t.icon})},vBe={class:"divider"},yBe=Hg({__name:"AddCell",props:{onClick:null,cellId:String},emits:["createCodeCell"],setup(t){const e=ei([{title:"Code",cellType:"code",icon:`ztIcon:${Kh.code}`},{title:"SQL",cellType:"sql",icon:`ztIcon:${Kh.sql}`},{title:"Markdown",cellType:"markdown",icon:`ztIcon:${Kh.markdown}`},{title:"Text",cellType:"text",icon:`ztIcon:${Kh.text}`}]);return(o,f)=>(Bo(),la(hS,{transition:"scale-transition",minWidth:"0",target:"cursor"},{activator:Oo(({props:P})=>[pa("div",Di(t.cellId?{...P,id:"addCell"+t.cellId}:P,{class:"activator-area"}),[pa("div",vBe,[Zt(yM,{class:"divider__divider-line",color:"bluegrey-darken-2"}),Zt(ps,{"prepend-icon":`ztIcon:${wa(Kh).circleAdd}`,variant:"plain",density:"compact",ripple:!1,class:"divider__btn bg-background"},{default:Oo(()=>[Cs("Add cell")]),_:1},8,["prepend-icon"])])],16)]),default:Oo(()=>[Zt(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[(Bo(!0),Da(ya,null,ob(e.value,(P,d)=>(Bo(),la(Bf,Di({key:d,class:"add-cell-item"},t.cellId?{id:"addCell_"+P.title+"_"+t.cellId}:{},{onClick:l=>o.$emit("createCodeCell",P.cellType)}),{prepend:Oo(()=>[Zt(Tl,{icon:P.icon},null,8,["icon"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs(sc(P.title),1)]),_:2},1024)]),_:2},1040,["onClick"]))),128))]),_:1})]),_:1}))}});const Oue=hm(yBe,[["__scopeId","data-v-c00c2563"]]);function bBe(t,e){const o=jn(()=>t.value);return{cellTypeColor:jn(()=>{if(e!=null&&e.value)return"error";switch(t.value){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),cellTypeIcon:o}}var xBe=!1;/*! +`)}function Gme(t){const e=t.dark?2:1,o=t.dark?1:2,f=[];for(const[P,d]of Object.entries(t.colors)){const l=l_(d);f.push(`--v-theme-${P}: ${l.r},${l.g},${l.b}`),P.startsWith("on-")||f.push(`--v-theme-${P}-overlay-multiplier: ${JPe(d)>.18?e:o}`)}for(const[P,d]of Object.entries(t.variables)){const l=typeof d=="string"&&d.startsWith("#")?l_(d):void 0,n=l?`${l.r}, ${l.g}, ${l.b}`:void 0;f.push(`--v-${P}: ${n??d}`)}return f}const x9e=ei({...ys(),...c9e({fullHeight:!0}),...vf()},"VApp"),_9e=Ji()({name:"VApp",props:x9e(),setup(t,e){let{slots:o}=e;const f=ad(t),{layoutClasses:P,getLayoutItem:d,items:l,layoutRef:n}=f9e(t),{rtlClasses:c}=qg();return ka(()=>Ht("div",{ref:n,class:["v-application",f.themeClasses.value,P.value,c.value,t.class],style:[t.style]},[Ht("div",{class:"v-application__wrap"},[Ht(fSe,null,{default:()=>{var b;return[Ht(ma,null,[(b=o.default)==null?void 0:b.call(o)])]}})])])),{getLayoutItem:d,items:l,theme:f}}});const hu=ei({tag:{type:String,default:"div"}},"tag"),w9e=ei({text:String,...ys(),...hu()},"VToolbarTitle"),O9e=Ji()({name:"VToolbarTitle",props:w9e(),setup(t,e){let{slots:o}=e;return ka(()=>{const f=!!(o.default||o.text||t.text);return Ht(t.tag,{class:["v-toolbar-title",t.class],style:t.style},{default:()=>{var P;return[f&&Ht("div",{class:"v-toolbar-title__placeholder"},[o.text?o.text():t.text,(P=o.default)==null?void 0:P.call(o)])]}})}),{}}}),S9e=ei({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function jv(t,e,o){return Ji()({name:t,props:S9e({mode:o,origin:e}),setup(f,P){let{slots:d}=P;const l={onBeforeEnter(n){f.origin&&(n.style.transformOrigin=f.origin)},onLeave(n){if(f.leaveAbsolute){const{offsetTop:c,offsetLeft:b,offsetWidth:i,offsetHeight:O}=n;n._transitionInitialStyles={position:n.style.position,top:n.style.top,left:n.style.left,width:n.style.width,height:n.style.height},n.style.position="absolute",n.style.top=`${c}px`,n.style.left=`${b}px`,n.style.width=`${i}px`,n.style.height=`${O}px`}f.hideOnLeave&&n.style.setProperty("display","none","important")},onAfterLeave(n){if(f.leaveAbsolute&&(n!=null&&n._transitionInitialStyles)){const{position:c,top:b,left:i,width:O,height:w}=n._transitionInitialStyles;delete n._transitionInitialStyles,n.style.position=c||"",n.style.top=b||"",n.style.left=i||"",n.style.width=O||"",n.style.height=w||""}}};return()=>{const n=f.group?Wle:h_;return w1(n,{name:f.disabled?"":t,css:!f.disabled,...f.group?void 0:{mode:f.mode},...f.disabled?{}:l},d.default)}}})}function Gxe(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Ji()({name:t,props:{mode:{type:String,default:o},disabled:Boolean,group:Boolean},setup(f,P){let{slots:d}=P;const l=f.group?Wle:h_;return()=>w1(l,{name:f.disabled?"":t,css:!f.disabled,...f.disabled?{}:e},d.default)}})}function Kxe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",f=rb(`offset-${o}`);return{onBeforeEnter(l){l._parent=l.parentNode,l._initialStyle={transition:l.style.transition,overflow:l.style.overflow,[o]:l.style[o]}},onEnter(l){const n=l._initialStyle;l.style.setProperty("transition","none","important"),l.style.overflow="hidden";const c=`${l[f]}px`;l.style[o]="0",l.offsetHeight,l.style.transition=n.transition,t&&l._parent&&l._parent.classList.add(t),requestAnimationFrame(()=>{l.style[o]=c})},onAfterEnter:d,onEnterCancelled:d,onLeave(l){l._initialStyle={transition:"",overflow:l.style.overflow,[o]:l.style[o]},l.style.overflow="hidden",l.style[o]=`${l[f]}px`,l.offsetHeight,requestAnimationFrame(()=>l.style[o]="0")},onAfterLeave:P,onLeaveCancelled:P};function P(l){t&&l._parent&&l._parent.classList.remove(t),d(l)}function d(l){const n=l._initialStyle[o];l.style.overflow=l._initialStyle.overflow,n!=null&&(l.style[o]=n),delete l._initialStyle}}const k9e=ei({target:[Object,Array]},"v-dialog-transition"),Yce=Ji()({name:"VDialogTransition",props:k9e(),setup(t,e){let{slots:o}=e;const f={onBeforeEnter(P){P.style.pointerEvents="none",P.style.visibility="hidden"},async onEnter(P,d){var w;await new Promise(y=>requestAnimationFrame(y)),await new Promise(y=>requestAnimationFrame(y)),P.style.visibility="";const{x:l,y:n,sx:c,sy:b,speed:i}=Jme(t.target,P),O=HA(P,[{transform:`translate(${l}px, ${n}px) scale(${c}, ${b})`,opacity:0},{}],{duration:225*i,easing:i9e});(w=Kme(P))==null||w.forEach(y=>{HA(y,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*i,easing:fZ})}),O.finished.then(()=>d())},onAfterEnter(P){P.style.removeProperty("pointer-events")},onBeforeLeave(P){P.style.pointerEvents="none"},async onLeave(P,d){var w;await new Promise(y=>requestAnimationFrame(y));const{x:l,y:n,sx:c,sy:b,speed:i}=Jme(t.target,P);HA(P,[{},{transform:`translate(${l}px, ${n}px) scale(${c}, ${b})`,opacity:0}],{duration:125*i,easing:a9e}).finished.then(()=>d()),(w=Kme(P))==null||w.forEach(y=>{HA(y,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*i,easing:fZ})})},onAfterLeave(P){P.style.removeProperty("pointer-events")}};return()=>t.target?Ht(h_,Ii({name:"dialog-transition"},f,{css:!1}),o):Ht(h_,{name:"dialog-transition"},o)}});function Kme(t){var o;const e=(o=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:o.children;return e&&[...e]}function Jme(t,e){const o=zxe(t),f=jce(e),[P,d]=getComputedStyle(e).transformOrigin.split(" ").map(h=>parseFloat(h)),[l,n]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let c=o.left+o.width/2;l==="left"||n==="left"?c-=o.width/2:(l==="right"||n==="right")&&(c+=o.width/2);let b=o.top+o.height/2;l==="top"||n==="top"?b-=o.height/2:(l==="bottom"||n==="bottom")&&(b+=o.height/2);const i=o.width/f.width,O=o.height/f.height,w=Math.max(1,i,O),y=i/w||0,p=O/w||0,a=f.width*f.height/(window.innerWidth*window.innerHeight),u=a>.12?Math.min(1.5,(a-.12)*10+1):1;return{x:c-(P+f.left),y:b-(d+f.top),sx:y,sy:p,speed:u}}jv("fab-transition","center center","out-in");jv("dialog-bottom-transition");jv("dialog-top-transition");const ege=jv("fade-transition"),Jxe=jv("scale-transition");jv("scroll-x-transition");jv("scroll-x-reverse-transition");jv("scroll-y-transition");jv("scroll-y-reverse-transition");jv("slide-x-transition");jv("slide-x-reverse-transition");const e2e=jv("slide-y-transition");jv("slide-y-reverse-transition");const Xce=Gxe("expand-transition",Kxe()),t2e=Gxe("expand-x-transition",Kxe("",!0)),T9e=ei({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),du=Ji(!1)({name:"VDefaultsProvider",props:T9e(),setup(t,e){let{slots:o}=e;const{defaults:f,disabled:P,reset:d,root:l,scoped:n}=AM(t);return ib(f,{reset:d,root:l,scoped:n,disabled:P}),()=>{var c;return(c=o.default)==null?void 0:c.call(o)}}});const O_=ei({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function S_(t){return{dimensionStyles:Un(()=>{const o={},f=Ma(t.height),P=Ma(t.maxHeight),d=Ma(t.maxWidth),l=Ma(t.minHeight),n=Ma(t.minWidth),c=Ma(t.width);return f!=null&&(o.height=f),P!=null&&(o.maxHeight=P),d!=null&&(o.maxWidth=d),l!=null&&(o.minHeight=l),n!=null&&(o.minWidth=n),c!=null&&(o.width=c),o})}}function C9e(t){return{aspectStyles:Un(()=>{const e=Number(t.aspectRatio);return e?{paddingBottom:String(1/e*100)+"%"}:void 0})}}const n2e=ei({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...ys(),...O_()},"VResponsive"),tge=Ji()({name:"VResponsive",props:n2e(),setup(t,e){let{slots:o}=e;const{aspectStyles:f}=C9e(t),{dimensionStyles:P}=S_(t);return ka(()=>{var d;return Ht("div",{class:["v-responsive",{"v-responsive--inline":t.inline},t.class],style:[P.value,t.style]},[Ht("div",{class:"v-responsive__sizer",style:f.value},null),(d=o.additional)==null?void 0:d.call(o),o.default&&Ht("div",{class:["v-responsive__content",t.contentClass]},[o.default()])])}),{}}});function Gce(t){return Uce(()=>{const e=[],o={};if(t.value.background)if(Ise(t.value.background)){if(o.backgroundColor=t.value.background,!t.value.text&&ZPe(t.value.background)){const f=l_(t.value.background);if(f.a==null||f.a===1){const P=Uxe(f);o.color=P,o.caretColor=P}}}else e.push(`bg-${t.value.background}`);return t.value.text&&(Ise(t.value.text)?(o.color=t.value.text,o.caretColor=t.value.text):e.push(`text-${t.value.text}`)),{colorClasses:e,colorStyles:o}})}function Uv(t,e){const o=Un(()=>({text:Dc(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:P}=Gce(o);return{textColorClasses:f,textColorStyles:P}}function ig(t,e){const o=Un(()=>({background:Dc(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:P}=Gce(o);return{backgroundColorClasses:f,backgroundColorStyles:P}}const pm=ei({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function lg(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{roundedClasses:Un(()=>{const f=Dc(t)?t.value:t.rounded,P=Dc(t)?t.value:t.tile,d=[];if(f===!0||f==="")d.push(`${e}--rounded`);else if(typeof f=="string"||f===0)for(const l of String(f).split(" "))d.push(`rounded-${l}`);else(P||f===!1)&&d.push("rounded-0");return d})}}const ST=ei({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:t=>t!==!0}},"transition"),G4=(t,e)=>{let{slots:o}=e;const{transition:f,disabled:P,group:d,...l}=t,{component:n=d?Wle:h_,...c}=typeof f=="object"?f:{};return w1(n,Ii(typeof f=="string"?{name:P?"":f}:c,typeof f=="string"?{}:Object.fromEntries(Object.entries({disabled:P,group:d}).filter(b=>{let[i,O]=b;return O!==void 0})),l),o)};function A9e(t,e){if(!Nce)return;const o=e.modifiers||{},f=e.value,{handler:P,options:d}=typeof f=="object"?f:{handler:f,options:{}},l=new IntersectionObserver(function(){var O;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0;const b=(O=t._observe)==null?void 0:O[e.instance.$.uid];if(!b)return;const i=n.some(w=>w.isIntersecting);P&&(!o.quiet||b.init)&&(!o.once||i||b.init)&&P(i,n,c),i&&o.once?r2e(t,e):b.init=!0},d);t._observe=Object(t._observe),t._observe[e.instance.$.uid]={init:!1,observer:l},l.observe(t)}function r2e(t,e){var f;const o=(f=t._observe)==null?void 0:f[e.instance.$.uid];o&&(o.observer.unobserve(t),delete t._observe[e.instance.$.uid])}const M9e={mounted:A9e,unmounted:r2e},Kce=M9e,E9e=ei({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...n2e(),...ys(),...pm(),...ST()},"VImg"),kT=Ji()({name:"VImg",directives:{intersect:Kce},props:E9e(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,e){let{emit:o,slots:f}=e;const{backgroundColorClasses:P,backgroundColorStyles:d}=ig(Oi(t,"color")),{roundedClasses:l}=lg(t),n=ph("VImg"),c=Ai(""),b=ti(),i=Ai(t.eager?"loading":"idle"),O=Ai(),w=Ai(),y=Un(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),p=Un(()=>y.value.aspect||O.value/w.value||0);Ni(()=>t.src,()=>{a(i.value!=="idle")}),Ni(p,(C,L)=>{!C&&L&&b.value&&_(b.value)}),zle(()=>a());function a(C){if(!(t.eager&&C)&&!(Nce&&!C&&!t.eager)){if(i.value="loading",y.value.lazySrc){const L=new Image;L.src=y.value.lazySrc,_(L,null)}y.value.src&&lc(()=>{var L;o("loadstart",((L=b.value)==null?void 0:L.currentSrc)||y.value.src),setTimeout(()=>{var D;if(!n.isUnmounted)if((D=b.value)!=null&&D.complete){if(b.value.naturalWidth||h(),i.value==="error")return;p.value||_(b.value,null),i.value==="loading"&&u()}else p.value||_(b.value),m()})})}}function u(){var C;n.isUnmounted||(m(),_(b.value),i.value="loaded",o("load",((C=b.value)==null?void 0:C.currentSrc)||y.value.src))}function h(){var C;n.isUnmounted||(i.value="error",o("error",((C=b.value)==null?void 0:C.currentSrc)||y.value.src))}function m(){const C=b.value;C&&(c.value=C.currentSrc||C.src)}let v=-1;dm(()=>{clearTimeout(v)});function _(C){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const D=()=>{if(clearTimeout(v),n.isUnmounted)return;const{naturalHeight:k,naturalWidth:I}=C;k||I?(O.value=I,w.value=k):!C.complete&&i.value==="loading"&&L!=null?v=window.setTimeout(D,L):(C.currentSrc.endsWith(".svg")||C.currentSrc.startsWith("data:image/svg+xml"))&&(O.value=1,w.value=1)};D()}const S=Un(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),A=()=>{var D;if(!y.value.src||i.value==="idle")return null;const C=Ht("img",{class:["v-img__img",S.value],style:{objectPosition:t.position},src:y.value.src,srcset:y.value.srcset,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable,sizes:t.sizes,ref:b,onLoad:u,onError:h},null),L=(D=f.sources)==null?void 0:D.call(f);return Ht(G4,{transition:t.transition,appear:!0},{default:()=>[Tp(L?Ht("picture",{class:"v-img__picture"},[L,C]):C,[[mS,i.value==="loaded"]])]})},x=()=>Ht(G4,{transition:t.transition},{default:()=>[y.value.lazySrc&&i.value!=="loaded"&&Ht("img",{class:["v-img__img","v-img__img--preload",S.value],style:{objectPosition:t.position},src:y.value.lazySrc,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable},null)]}),R=()=>f.placeholder?Ht(G4,{transition:t.transition,appear:!0},{default:()=>[(i.value==="loading"||i.value==="error"&&!f.error)&&Ht("div",{class:"v-img__placeholder"},[f.placeholder()])]}):null,M=()=>f.error?Ht(G4,{transition:t.transition,appear:!0},{default:()=>[i.value==="error"&&Ht("div",{class:"v-img__error"},[f.error()])]}):null,T=()=>t.gradient?Ht("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,E=Ai(!1);{const C=Ni(p,L=>{L&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{E.value=!0})}),C())})}return ka(()=>{const C=tge.filterProps(t);return Tp(Ht(tge,Ii({class:["v-img",{"v-img--booting":!E.value},P.value,l.value,t.class],style:[{width:Ma(t.width==="auto"?O.value:t.width)},d.value,t.style]},C,{aspectRatio:p.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>Ht(ma,null,[Ht(A,null,null),Ht(x,null,null),Ht(T,null,null),Ht(R,null,null),Ht(M,null,null)]),default:f.default}),[[y_("intersect"),{handler:a,options:t.options},null,{once:!0}]])}),{currentSrc:c,image:b,state:i,naturalWidth:O,naturalHeight:w}}}),k_=ei({border:[Boolean,Number,String]},"border");function DO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{borderClasses:Un(()=>{const f=Dc(t)?t.value:t.border,P=[];if(f===!0||f==="")P.push(`${e}--border`);else if(typeof f=="string"||f===0)for(const d of String(f).split(" "))P.push(`border-${d}`);return P})}}const Qv=ei({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function lb(t){return{elevationClasses:Un(()=>{const o=Dc(t)?t.value:t.elevation,f=[];return o==null||f.push(`elevation-${o}`),f})}}const P9e=[null,"prominent","default","comfortable","compact"],o2e=ei({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:t=>P9e.includes(t)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...k_(),...ys(),...Qv(),...pm(),...hu({tag:"header"}),...vf()},"VToolbar"),nge=Ji()({name:"VToolbar",props:o2e(),setup(t,e){var y;let{slots:o}=e;const{backgroundColorClasses:f,backgroundColorStyles:P}=ig(Oi(t,"color")),{borderClasses:d}=DO(t),{elevationClasses:l}=lb(t),{roundedClasses:n}=lg(t),{themeClasses:c}=ad(t),{rtlClasses:b}=qg(),i=Ai(!!(t.extended||(y=o.extension)!=null&&y.call(o))),O=Un(()=>parseInt(Number(t.height)+(t.density==="prominent"?Number(t.height):0)-(t.density==="comfortable"?8:0)-(t.density==="compact"?16:0),10)),w=Un(()=>i.value?parseInt(Number(t.extensionHeight)+(t.density==="prominent"?Number(t.extensionHeight):0)-(t.density==="comfortable"?4:0)-(t.density==="compact"?8:0),10):0);return ib({VBtn:{variant:"text"}}),ka(()=>{var h;const p=!!(t.title||o.title),a=!!(o.image||t.image),u=(h=o.extension)==null?void 0:h.call(o);return i.value=!!(t.extended||u),Ht(t.tag,{class:["v-toolbar",{"v-toolbar--absolute":t.absolute,"v-toolbar--collapse":t.collapse,"v-toolbar--flat":t.flat,"v-toolbar--floating":t.floating,[`v-toolbar--density-${t.density}`]:!0},f.value,d.value,l.value,n.value,c.value,b.value,t.class],style:[P.value,t.style]},{default:()=>[a&&Ht("div",{key:"image",class:"v-toolbar__image"},[o.image?Ht(du,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},o.image):Ht(kT,{key:"image-img",cover:!0,src:t.image},null)]),Ht(du,{defaults:{VTabs:{height:Ma(O.value)}}},{default:()=>{var m,v,_;return[Ht("div",{class:"v-toolbar__content",style:{height:Ma(O.value)}},[o.prepend&&Ht("div",{class:"v-toolbar__prepend"},[(m=o.prepend)==null?void 0:m.call(o)]),p&&Ht(O9e,{key:"title",text:t.title},{text:o.title}),(v=o.default)==null?void 0:v.call(o),o.append&&Ht("div",{class:"v-toolbar__append"},[(_=o.append)==null?void 0:_.call(o)])])]}}),Ht(du,{defaults:{VTabs:{height:Ma(w.value)}}},{default:()=>[Ht(Xce,null,{default:()=>[i.value&&Ht("div",{class:"v-toolbar__extension",style:{height:Ma(w.value)}},[u])]})]})]})}),{contentHeight:O,extensionHeight:w}}}),R9e=ei({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function L9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:o}=e;let f=0,P=0;const d=ti(null),l=Ai(0),n=Ai(0),c=Ai(0),b=Ai(!1),i=Ai(!1),O=Un(()=>Number(t.scrollThreshold)),w=Un(()=>rg((O.value-l.value)/O.value||0)),y=()=>{const p=d.value;if(!p||o&&!o.value)return;f=l.value,l.value="window"in p?p.pageYOffset:p.scrollTop;const a=p instanceof Window?document.documentElement.scrollHeight:p.scrollHeight;if(P!==a){P=a;return}i.value=l.value{n.value=n.value||l.value}),Ni(b,()=>{n.value=0}),sg(()=>{Ni(()=>t.scrollTarget,p=>{var u;const a=p?document.querySelector(p):window;a&&a!==d.value&&((u=d.value)==null||u.removeEventListener("scroll",y),d.value=a,d.value.addEventListener("scroll",y,{passive:!0}))},{immediate:!0})}),dm(()=>{var p;(p=d.value)==null||p.removeEventListener("scroll",y)}),o&&Ni(o,y,{immediate:!0}),{scrollThreshold:O,currentScroll:l,currentThreshold:c,isScrollActive:b,scrollRatio:w,isScrollingUp:i,savedScroll:n}}function pq(){const t=Ai(!1);return sg(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:Un(()=>t.value?void 0:{transition:"none !important"}),isBooted:CM(t)}}const I9e=ei({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},...o2e(),...qce(),...R9e(),height:{type:[Number,String],default:64}},"VAppBar"),D9e=Ji()({name:"VAppBar",props:I9e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ti(),P=bl(t,"modelValue"),d=Un(()=>{var _;const v=new Set(((_=t.scrollBehavior)==null?void 0:_.split(" "))??[]);return{hide:v.has("hide"),fullyHide:v.has("fully-hide"),inverted:v.has("inverted"),collapse:v.has("collapse"),elevate:v.has("elevate"),fadeImage:v.has("fade-image")}}),l=Un(()=>{const v=d.value;return v.hide||v.fullyHide||v.inverted||v.collapse||v.elevate||v.fadeImage||!P.value}),{currentScroll:n,scrollThreshold:c,isScrollingUp:b,scrollRatio:i}=L9e(t,{canScroll:l}),O=Un(()=>d.value.hide||d.value.fullyHide),w=Un(()=>t.collapse||d.value.collapse&&(d.value.inverted?i.value>0:i.value===0)),y=Un(()=>t.flat||d.value.fullyHide&&!P.value||d.value.elevate&&(d.value.inverted?n.value>0:n.value===0)),p=Un(()=>d.value.fadeImage?d.value.inverted?1-i.value:i.value:void 0),a=Un(()=>{var S,A;const v=Number(((S=f.value)==null?void 0:S.contentHeight)??t.height),_=Number(((A=f.value)==null?void 0:A.extensionHeight)??0);return O.value?n.value!!t.scrollBehavior),()=>{kp(()=>{O.value?d.value.inverted?P.value=n.value>c.value:P.value=b.value||n.valueparseInt(t.order,10)),position:Oi(t,"location"),layoutSize:a,elementSize:Ai(void 0),active:P,absolute:Oi(t,"absolute")});return ka(()=>{const v=nge.filterProps(t);return Ht(nge,Ii({ref:f,class:["v-app-bar",{"v-app-bar--bottom":t.location==="bottom"},t.class],style:[{...h.value,"--v-toolbar-image-opacity":p.value,height:void 0,...u.value},t.style]},v,{collapse:w.value,flat:y.value}),o)}),m}});const B9e=[null,"default","comfortable","compact"],S1=ei({density:{type:String,default:"default",validator:t=>B9e.includes(t)}},"density");function kx(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{densityClasses:Un(()=>`${e}--density-${t.density}`)}}const z9e=["elevated","flat","tonal","outlined","text","plain"];function TT(t,e){return Ht(ma,null,[t&&Ht("span",{key:"overlay",class:`${e}__overlay`},null),Ht("span",{key:"underlay",class:`${e}__underlay`},null)])}const Tx=ei({color:String,variant:{type:String,default:"elevated",validator:t=>z9e.includes(t)}},"variant");function CT(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();const o=Un(()=>{const{variant:d}=wa(t);return`${e}--variant-${d}`}),{colorClasses:f,colorStyles:P}=Gce(Un(()=>{const{variant:d,color:l}=wa(t);return{[["elevated","flat"].includes(d)?"background":"text"]:l}}));return{colorClasses:f,colorStyles:P,variantClasses:o}}const i2e=ei({baseColor:String,divided:Boolean,...k_(),...ys(),...S1(),...Qv(),...pm(),...hu(),...vf(),...Tx()},"VBtnGroup"),rge=Ji()({name:"VBtnGroup",props:i2e(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=ad(t),{densityClasses:P}=kx(t),{borderClasses:d}=DO(t),{elevationClasses:l}=lb(t),{roundedClasses:n}=lg(t);ib({VBtn:{height:"auto",baseColor:Oi(t,"baseColor"),color:Oi(t,"color"),density:Oi(t,"density"),flat:!0,variant:Oi(t,"variant")}}),ka(()=>Ht(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},f.value,d.value,P.value,l.value,n.value,t.class],style:t.style},o))}}),mq=ei({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Jce=ei({value:null,disabled:Boolean,selectedClass:String},"group-item");function eue(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const f=ph("useGroupItem");if(!f)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const P=O1();gf(Symbol.for(`${e.description}:id`),P);const d=yl(e,null);if(!d){if(!o)return d;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const l=Oi(t,"value"),n=Un(()=>!!(d.disabled.value||t.disabled));d.register({id:P,value:l,disabled:n},f),dm(()=>{d.unregister(P)});const c=Un(()=>d.isSelected(P)),b=Un(()=>d.items.value[0].id===P),i=Un(()=>d.items.value[d.items.value.length-1].id===P),O=Un(()=>c.value&&[d.selectedClass.value,t.selectedClass]);return Ni(c,w=>{f.emit("group:selected",{value:w})},{flush:"sync"}),{id:P,isSelected:c,isFirst:b,isLast:i,toggle:()=>d.select(P,!c.value),select:w=>d.select(P,w),selectedClass:O,value:l,disabled:n,group:d}}function gq(t,e){let o=!1;const f=lm([]),P=bl(t,"modelValue",[],w=>w==null?[]:a2e(f,fm(w)),w=>{const y=N9e(f,w);return t.multiple?y:y[0]}),d=ph("useGroup");function l(w,y){const p=w,a=Symbol.for(`${e.description}:id`),h=QA(a,d==null?void 0:d.vnode).indexOf(y);wa(p.value)==null&&(p.value=h,p.useIndexAsValue=!0),h>-1?f.splice(h,0,p):f.push(p)}function n(w){if(o)return;c();const y=f.findIndex(p=>p.id===w);f.splice(y,1)}function c(){const w=f.find(y=>!y.disabled);w&&t.mandatory==="force"&&!P.value.length&&(P.value=[w.id])}sg(()=>{c()}),dm(()=>{o=!0}),Fle(()=>{for(let w=0;wa.id===w);if(!(y&&(p!=null&&p.disabled)))if(t.multiple){const a=P.value.slice(),u=a.findIndex(m=>m===w),h=~u;if(y=y??!h,h&&t.mandatory&&a.length<=1||!h&&t.max!=null&&a.length+1>t.max)return;u<0&&y?a.push(w):u>=0&&!y&&a.splice(u,1),P.value=a}else{const a=P.value.includes(w);if(t.mandatory&&a)return;P.value=y??!a?[w]:[]}}function i(w){if(t.multiple,P.value.length){const y=P.value[0],p=f.findIndex(h=>h.id===y);let a=(p+w)%f.length,u=f[a];for(;u.disabled&&a!==p;)a=(a+w)%f.length,u=f[a];if(u.disabled)return;P.value=[f[a].id]}else{const y=f.find(p=>!p.disabled);y&&(P.value=[y.id])}}const O={register:l,unregister:n,selected:P,select:b,disabled:Oi(t,"disabled"),prev:()=>i(f.length-1),next:()=>i(1),isSelected:w=>P.value.includes(w),selectedClass:Un(()=>t.selectedClass),items:Un(()=>f),getItemIndex:w=>F9e(f,w)};return gf(e,O),O}function F9e(t,e){const o=a2e(t,[e]);return o.length?t.findIndex(f=>f.id===o[0]):-1}function a2e(t,e){const o=[];return e.forEach(f=>{const P=t.find(l=>bS(f,l.value)),d=t[f];(P==null?void 0:P.value)!=null?o.push(P.id):d!=null&&o.push(d.id)}),o}function N9e(t,e){const o=[];return e.forEach(f=>{const P=t.findIndex(d=>d.id===f);if(~P){const d=t[P];o.push(d.value!=null?d.value:P)}}),o}const s2e=Symbol.for("vuetify:v-btn-toggle"),$9e=ei({...i2e(),...mq()},"VBtnToggle"),l2e=Ji()({name:"VBtnToggle",props:$9e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isSelected:f,next:P,prev:d,select:l,selected:n}=gq(t,s2e);return ka(()=>{const c=rge.filterProps(t);return Ht(rge,Ii({class:["v-btn-toggle",t.class]},c,{style:t.style}),{default:()=>{var b;return[(b=o.default)==null?void 0:b.call(o,{isSelected:f,next:P,prev:d,select:l,selected:n})]}})}),{next:P,prev:d,select:l}}});const c2e={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},u2e={component:t=>w1(d2e,{...t,class:"mdi"})},ul=[String,Function,Object,Array],Dse=Symbol.for("vuetify:icons"),vq=ei({icon:{type:ul},tag:{type:String,required:!0}},"icon"),oge=Ji()({name:"VComponentIcon",props:vq(),setup(t,e){let{slots:o}=e;return()=>{const f=t.icon;return Ht(t.tag,null,{default:()=>{var P;return[t.icon?Ht(f,null,null):(P=o.default)==null?void 0:P.call(o)]}})}}}),f2e=RM({name:"VSvgIcon",inheritAttrs:!1,props:vq(),setup(t,e){let{attrs:o}=e;return()=>Ht(t.tag,Ii(o,{style:null}),{default:()=>[Ht("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(f=>Array.isArray(f)?Ht("path",{d:f[0],"fill-opacity":f[1]},null):Ht("path",{d:f},null)):Ht("path",{d:t.icon},null)])]})}});RM({name:"VLigatureIcon",props:vq(),setup(t){return()=>Ht(t.tag,null,{default:()=>[t.icon]})}});const d2e=RM({name:"VClassIcon",props:vq(),setup(t){return()=>Ht(t.tag,{class:t.icon},null)}});function V9e(){return{svg:{component:f2e},class:{component:d2e}}}function U9e(t){const e=V9e(),o=(t==null?void 0:t.defaultSet)??"mdi";return o==="mdi"&&!e.mdi&&(e.mdi=u2e),jg({defaultSet:o,sets:e,aliases:{...c2e,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},t)}const j9e=t=>{const e=yl(Dse);if(!e)throw new Error("Missing Vuetify Icons provide!");return{iconData:Un(()=>{var c;const f=wa(t);if(!f)return{component:oge};let P=f;if(typeof P=="string"&&(P=P.trim(),P.startsWith("$")&&(P=(c=e.aliases)==null?void 0:c[P.slice(1)])),Array.isArray(P))return{component:f2e,icon:P};if(typeof P!="string")return{component:oge,icon:P};const d=Object.keys(e.sets).find(b=>typeof P=="string"&&P.startsWith(`${b}:`)),l=d?P.slice(d.length+1):P;return{component:e.sets[d??e.defaultSet].component,icon:l}})}},Q9e=["x-small","small","default","large","x-large"],AT=ei({size:{type:[String,Number],default:"default"}},"size");function SD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return Uce(()=>{let o,f;return lZ(Q9e,t.size)?o=`${e}--size-${t.size}`:t.size&&(f={width:Ma(t.size),height:Ma(t.size)}),{sizeClasses:o,sizeStyles:f}})}const H9e=ei({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:ul,...ys(),...AT(),...hu({tag:"i"}),...vf()},"VIcon"),Al=Ji()({name:"VIcon",props:H9e(),setup(t,e){let{attrs:o,slots:f}=e;const P=ti(),{themeClasses:d}=ad(t),{iconData:l}=j9e(Un(()=>P.value||t.icon)),{sizeClasses:n}=SD(t),{textColorClasses:c,textColorStyles:b}=Uv(Oi(t,"color"));return ka(()=>{var w,y;const i=(w=f.default)==null?void 0:w.call(f);i&&(P.value=(y=Pxe(i).filter(p=>p.type===hD&&p.children&&typeof p.children=="string")[0])==null?void 0:y.children);const O=!!(o.onClick||o.onClickOnce);return Ht(l.value.component,{tag:t.tag,icon:l.value.icon,class:["v-icon","notranslate",d.value,n.value,c.value,{"v-icon--clickable":O,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[n.value?void 0:{fontSize:Ma(t.size),height:Ma(t.size),width:Ma(t.size)},b.value,t.style],role:O?"button":void 0,"aria-hidden":!O,tabindex:O?t.disabled?-1:0:void 0},{default:()=>[i]})}),{}}});function h2e(t,e){const o=ti(),f=Ai(!1);if(Nce){const P=new IntersectionObserver(d=>{t==null||t(d,P),f.value=!!d.find(l=>l.isIntersecting)},e);dm(()=>{P.disconnect()}),Ni(o,(d,l)=>{l&&(P.unobserve(l),f.value=!1),d&&P.observe(d)},{flush:"post"})}return{intersectionRef:o,isIntersecting:f}}const Z9e=ei({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ys(),...AT(),...hu({tag:"div"}),...vf()},"VProgressCircular"),LM=Ji()({name:"VProgressCircular",props:Z9e(),setup(t,e){let{slots:o}=e;const f=20,P=2*Math.PI*f,d=ti(),{themeClasses:l}=ad(t),{sizeClasses:n,sizeStyles:c}=SD(t),{textColorClasses:b,textColorStyles:i}=Uv(Oi(t,"color")),{textColorClasses:O,textColorStyles:w}=Uv(Oi(t,"bgColor")),{intersectionRef:y,isIntersecting:p}=h2e(),{resizeRef:a,contentRect:u}=dS(),h=Un(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),m=Un(()=>Number(t.width)),v=Un(()=>c.value?Number(t.size):u.value?u.value.width:Math.max(m.value,32)),_=Un(()=>f/(1-m.value/v.value)*2),S=Un(()=>m.value/v.value*_.value),A=Un(()=>Ma((100-h.value)/100*P));return kp(()=>{y.value=d.value,a.value=d.value}),ka(()=>Ht(t.tag,{ref:d,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":p.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},l.value,n.value,b.value,t.class],style:[c.value,i.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:h.value},{default:()=>[Ht("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[Ht("circle",{class:["v-progress-circular__underlay",O.value],style:w.value,fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":S.value,"stroke-dasharray":P,"stroke-dashoffset":0},null),Ht("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":S.value,"stroke-dasharray":P,"stroke-dashoffset":A.value},null)]),o.default&&Ht("div",{class:"v-progress-circular__content"},[o.default({value:h.value})])]})),{}}});const ige={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},kD=ei({location:String},"location");function yq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2?arguments[2]:void 0;const{isRtl:f}=qg();return{locationStyles:Un(()=>{if(!t.location)return{};const{side:d,align:l}=Rse(t.location.split(" ").length>1?t.location:`${t.location} center`,f.value);function n(b){return o?o(b):0}const c={};return d!=="center"&&(e?c[ige[d]]=`calc(100% - ${n(d)}px)`:c[d]=0),l!=="center"?e?c[ige[l]]=`calc(100% - ${n(l)}px)`:c[l]=0:(d==="center"?c.top=c.left="50%":c[{top:"left",bottom:"left",left:"top",right:"top"}[d]]="50%",c.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[d]),c})}}const q9e=ei({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...ys(),...kD({location:"top"}),...pm(),...hu(),...vf()},"VProgressLinear"),p2e=Ji()({name:"VProgressLinear",props:q9e(),emits:{"update:modelValue":t=>!0},setup(t,e){var E;let{slots:o}=e;const f=bl(t,"modelValue"),{isRtl:P,rtlClasses:d}=qg(),{themeClasses:l}=ad(t),{locationStyles:n}=yq(t),{textColorClasses:c,textColorStyles:b}=Uv(t,"color"),{backgroundColorClasses:i,backgroundColorStyles:O}=ig(Un(()=>t.bgColor||t.color)),{backgroundColorClasses:w,backgroundColorStyles:y}=ig(Un(()=>t.bufferColor||t.bgColor||t.color)),{backgroundColorClasses:p,backgroundColorStyles:a}=ig(t,"color"),{roundedClasses:u}=lg(t),{intersectionRef:h,isIntersecting:m}=h2e(),v=Un(()=>parseFloat(t.max)),_=Un(()=>parseFloat(t.height)),S=Un(()=>rg(parseFloat(t.bufferValue)/v.value*100,0,100)),A=Un(()=>rg(parseFloat(f.value)/v.value*100,0,100)),x=Un(()=>P.value!==t.reverse),R=Un(()=>t.indeterminate?"fade-transition":"slide-x-transition"),M=ou&&((E=window.matchMedia)==null?void 0:E.call(window,"(forced-colors: active)").matches);function T(C){if(!h.value)return;const{left:L,right:D,width:k}=h.value.getBoundingClientRect(),I=x.value?k-C.clientX+(D-k):C.clientX-L;f.value=Math.round(I/k*v.value)}return ka(()=>Ht(t.tag,{ref:h,class:["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&m.value,"v-progress-linear--reverse":x.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped},u.value,l.value,d.value,t.class],style:[{bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?Ma(_.value):0,"--v-progress-linear-height":Ma(_.value),...t.absolute?n.value:{}},t.style],role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:A.value,onClick:t.clickable&&T},{default:()=>[t.stream&&Ht("div",{key:"stream",class:["v-progress-linear__stream",c.value],style:{...b.value,[x.value?"left":"right"]:Ma(-_.value),borderTop:`${Ma(_.value/2)} dotted`,opacity:parseFloat(t.bufferOpacity),top:`calc(50% - ${Ma(_.value/4)})`,width:Ma(100-S.value,"%"),"--v-progress-linear-stream-to":Ma(_.value*(x.value?1:-1))}},null),Ht("div",{class:["v-progress-linear__background",M?void 0:i.value],style:[O.value,{opacity:parseFloat(t.bgOpacity),width:t.stream?0:void 0}]},null),Ht("div",{class:["v-progress-linear__buffer",M?void 0:w.value],style:[y.value,{opacity:parseFloat(t.bufferOpacity),width:Ma(S.value,"%")}]},null),Ht(h_,{name:R.value},{default:()=>[t.indeterminate?Ht("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(C=>Ht("div",{key:C,class:["v-progress-linear__indeterminate",C,M?void 0:p.value],style:a.value},null))]):Ht("div",{class:["v-progress-linear__determinate",M?void 0:p.value],style:[a.value,{width:Ma(A.value,"%")}]},null)]}),o.default&&Ht("div",{class:"v-progress-linear__content"},[o.default({value:A.value,buffer:S.value})])]})),{}}}),bq=ei({loading:[Boolean,String]},"loader");function TD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{loaderClasses:Un(()=>({[`${e}--loading`]:t.loading}))}}function xq(t,e){var f;let{slots:o}=e;return Ht("div",{class:`${t.name}__loader`},[((f=o.default)==null?void 0:f.call(o,{color:t.color,isActive:t.active}))||Ht(p2e,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const W9e=["static","relative","fixed","absolute","sticky"],_q=ei({position:{type:String,validator:t=>W9e.includes(t)}},"position");function wq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{positionClasses:Un(()=>t.position?`${e}--${t.position}`:void 0)}}function Y9e(){const t=ph("useRoute");return Un(()=>{var e;return(e=t==null?void 0:t.proxy)==null?void 0:e.$route})}function m2e(){var t,e;return(e=(t=ph("useRouter"))==null?void 0:t.proxy)==null?void 0:e.$router}function Oq(t,e){var b,i;const o=kI("RouterLink"),f=Un(()=>!!(t.href||t.to)),P=Un(()=>(f==null?void 0:f.value)||Pme(e,"click")||Pme(t,"click"));if(typeof o=="string"||!("useLink"in o))return{isLink:f,isClickable:P,href:Oi(t,"href")};const d=Un(()=>({...t,to:Oi(()=>t.to||"")})),l=o.useLink(d.value),n=Un(()=>t.to?l:void 0),c=Y9e();return{isLink:f,isClickable:P,route:(b=n.value)==null?void 0:b.route,navigate:(i=n.value)==null?void 0:i.navigate,isActive:Un(()=>{var O,w,y;return n.value?t.exact?c.value?((y=n.value.isExactActive)==null?void 0:y.value)&&bS(n.value.route.value.query,c.value.query):((w=n.value.isExactActive)==null?void 0:w.value)??!1:((O=n.value.isActive)==null?void 0:O.value)??!1:!1}),href:Un(()=>{var O;return t.to?(O=n.value)==null?void 0:O.route.value.href:t.href})}}const Sq=ei({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Vie=!1;function X9e(t,e){let o=!1,f,P;ou&&(lc(()=>{window.addEventListener("popstate",d),f=t==null?void 0:t.beforeEach((l,n,c)=>{Vie?o?e(c):c():setTimeout(()=>o?e(c):c()),Vie=!0}),P=t==null?void 0:t.afterEach(()=>{Vie=!1})}),ag(()=>{window.removeEventListener("popstate",d),f==null||f(),P==null||P()}));function d(l){var n;(n=l.state)!=null&&n.replaced||(o=!0,setTimeout(()=>o=!1))}}function G9e(t,e){Ni(()=>{var o;return(o=t.isActive)==null?void 0:o.value},o=>{t.isLink.value&&o&&e&&lc(()=>{e(!0)})},{immediate:!0})}const Bse=Symbol("rippleStop"),K9e=80;function age(t,e){t.style.transform=e,t.style.webkitTransform=e}function zse(t){return t.constructor.name==="TouchEvent"}function g2e(t){return t.constructor.name==="KeyboardEvent"}const J9e=function(t,e){var O;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=0,P=0;if(!g2e(t)){const w=e.getBoundingClientRect(),y=zse(t)?t.touches[t.touches.length-1]:t;f=y.clientX-w.left,P=y.clientY-w.top}let d=0,l=.3;(O=e._ripple)!=null&&O.circle?(l=.15,d=e.clientWidth/2,d=o.center?d:d+Math.sqrt((f-d)**2+(P-d)**2)/4):d=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const n=`${(e.clientWidth-d*2)/2}px`,c=`${(e.clientHeight-d*2)/2}px`,b=o.center?n:`${f-d}px`,i=o.center?c:`${P-d}px`;return{radius:d,scale:l,x:b,y:i,centerX:n,centerY:c}},mZ={show(t,e){var y;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((y=e==null?void 0:e._ripple)!=null&&y.enabled))return;const f=document.createElement("span"),P=document.createElement("span");f.appendChild(P),f.className="v-ripple__container",o.class&&(f.className+=` ${o.class}`);const{radius:d,scale:l,x:n,y:c,centerX:b,centerY:i}=J9e(t,e,o),O=`${d*2}px`;P.className="v-ripple__animation",P.style.width=O,P.style.height=O,e.appendChild(f);const w=window.getComputedStyle(e);w&&w.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),P.classList.add("v-ripple__animation--enter"),P.classList.add("v-ripple__animation--visible"),age(P,`translate(${n}, ${c}) scale3d(${l},${l},${l})`),P.dataset.activated=String(performance.now()),setTimeout(()=>{P.classList.remove("v-ripple__animation--enter"),P.classList.add("v-ripple__animation--in"),age(P,`translate(${b}, ${i}) scale3d(1,1,1)`)},0)},hide(t){var d;if(!((d=t==null?void 0:t._ripple)!=null&&d.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const o=e[e.length-1];if(o.dataset.isHiding)return;o.dataset.isHiding="true";const f=performance.now()-Number(o.dataset.activated),P=Math.max(250-f,0);setTimeout(()=>{o.classList.remove("v-ripple__animation--in"),o.classList.add("v-ripple__animation--out"),setTimeout(()=>{var n;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((n=o.parentNode)==null?void 0:n.parentNode)===t&&t.removeChild(o.parentNode)},300)},P)}};function v2e(t){return typeof t>"u"||!!t}function GI(t){const e={},o=t.currentTarget;if(!(!(o!=null&&o._ripple)||o._ripple.touched||t[Bse])){if(t[Bse]=!0,zse(t))o._ripple.touched=!0,o._ripple.isTouch=!0;else if(o._ripple.isTouch)return;if(e.center=o._ripple.centered||g2e(t),o._ripple.class&&(e.class=o._ripple.class),zse(t)){if(o._ripple.showTimerCommit)return;o._ripple.showTimerCommit=()=>{mZ.show(t,o,e)},o._ripple.showTimer=window.setTimeout(()=>{var f;(f=o==null?void 0:o._ripple)!=null&&f.showTimerCommit&&(o._ripple.showTimerCommit(),o._ripple.showTimerCommit=null)},K9e)}else mZ.show(t,o,e)}}function sge(t){t[Bse]=!0}function Fv(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{Fv(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),mZ.hide(e)}}function y2e(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let KI=!1;function b2e(t){!KI&&(t.keyCode===Tme.enter||t.keyCode===Tme.space)&&(KI=!0,GI(t))}function x2e(t){KI=!1,Fv(t)}function _2e(t){KI&&(KI=!1,Fv(t))}function w2e(t,e,o){const{value:f,modifiers:P}=e,d=v2e(f);if(d||mZ.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=d,t._ripple.centered=P.center,t._ripple.circle=P.circle,Mse(f)&&f.class&&(t._ripple.class=f.class),d&&!o){if(P.stop){t.addEventListener("touchstart",sge,{passive:!0}),t.addEventListener("mousedown",sge);return}t.addEventListener("touchstart",GI,{passive:!0}),t.addEventListener("touchend",Fv,{passive:!0}),t.addEventListener("touchmove",y2e,{passive:!0}),t.addEventListener("touchcancel",Fv),t.addEventListener("mousedown",GI),t.addEventListener("mouseup",Fv),t.addEventListener("mouseleave",Fv),t.addEventListener("keydown",b2e),t.addEventListener("keyup",x2e),t.addEventListener("blur",_2e),t.addEventListener("dragstart",Fv,{passive:!0})}else!d&&o&&O2e(t)}function O2e(t){t.removeEventListener("mousedown",GI),t.removeEventListener("touchstart",GI),t.removeEventListener("touchend",Fv),t.removeEventListener("touchmove",y2e),t.removeEventListener("touchcancel",Fv),t.removeEventListener("mouseup",Fv),t.removeEventListener("mouseleave",Fv),t.removeEventListener("keydown",b2e),t.removeEventListener("keyup",x2e),t.removeEventListener("dragstart",Fv),t.removeEventListener("blur",_2e)}function eRe(t,e){w2e(t,e,!1)}function tRe(t){delete t._ripple,O2e(t)}function nRe(t,e){if(e.value===e.oldValue)return;const o=v2e(e.oldValue);w2e(t,e,o)}const MT={mounted:eRe,unmounted:tRe,updated:nRe},rRe=ei({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:s2e},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:ul,appendIcon:ul,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...k_(),...ys(),...S1(),...O_(),...Qv(),...Jce(),...bq(),...kD(),..._q(),...pm(),...Sq(),...AT(),...hu({tag:"button"}),...vf(),...Tx({variant:"elevated"})},"VBtn"),ls=Ji()({name:"VBtn",props:rRe(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:P}=ad(t),{borderClasses:d}=DO(t),{densityClasses:l}=kx(t),{dimensionStyles:n}=S_(t),{elevationClasses:c}=lb(t),{loaderClasses:b}=TD(t),{locationStyles:i}=yq(t),{positionClasses:O}=wq(t),{roundedClasses:w}=lg(t),{sizeClasses:y,sizeStyles:p}=SD(t),a=eue(t,t.symbol,!1),u=Oq(t,o),h=Un(()=>{var T;return t.active!==void 0?t.active:u.isLink.value?(T=u.isActive)==null?void 0:T.value:a==null?void 0:a.isSelected.value}),m=Un(()=>{var E,C;return{color:(a==null?void 0:a.isSelected.value)&&(!u.isLink.value||((E=u.isActive)==null?void 0:E.value))||!a||((C=u.isActive)==null?void 0:C.value)?t.color??t.baseColor:t.baseColor,variant:t.variant}}),{colorClasses:v,colorStyles:_,variantClasses:S}=CT(m),A=Un(()=>(a==null?void 0:a.disabled.value)||t.disabled),x=Un(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),R=Un(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function M(T){var E;A.value||u.isLink.value&&(T.metaKey||T.ctrlKey||T.shiftKey||T.button!==0||o.target==="_blank")||((E=u.navigate)==null||E.call(u,T),a==null||a.toggle())}return G9e(u,a==null?void 0:a.select),ka(()=>{const T=u.isLink.value?"a":t.tag,E=!!(t.prependIcon||f.prepend),C=!!(t.appendIcon||f.append),L=!!(t.icon&&t.icon!==!0);return Tp(Ht(T,{type:T==="a"?void 0:"button",class:["v-btn",a==null?void 0:a.selectedClass.value,{"v-btn--active":h.value,"v-btn--block":t.block,"v-btn--disabled":A.value,"v-btn--elevated":x.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--readonly":t.readonly,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},P.value,d.value,v.value,l.value,c.value,b.value,O.value,w.value,y.value,S.value,t.class],style:[_.value,n.value,i.value,p.value,t.style],"aria-busy":t.loading?!0:void 0,disabled:A.value||void 0,href:u.href.value,tabindex:t.loading||t.readonly?-1:void 0,onClick:M,value:R.value},{default:()=>{var D;return[TT(!0,"v-btn"),!t.icon&&E&&Ht("span",{key:"prepend",class:"v-btn__prepend"},[f.prepend?Ht(du,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},f.prepend):Ht(Al,{key:"prepend-icon",icon:t.prependIcon},null)]),Ht("span",{class:"v-btn__content","data-no-activator":""},[!f.default&&L?Ht(Al,{key:"content-icon",icon:t.icon},null):Ht(du,{key:"content-defaults",disabled:!L,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var k;return[((k=f.default)==null?void 0:k.call(f))??t.text]}})]),!t.icon&&C&&Ht("span",{key:"append",class:"v-btn__append"},[f.append?Ht(du,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},f.append):Ht(Al,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&Ht("span",{key:"loader",class:"v-btn__loader"},[((D=f.loader)==null?void 0:D.call(f))??Ht(LM,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,width:"2"},null)])]}}),[[MT,!A.value&&t.ripple,"",{center:!!t.icon}]])}),{group:a}}});const oRe=hq("v-alert-title"),iRe=["success","info","warning","error"],aRe=ei({border:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["top","end","bottom","start"].includes(t)},borderColor:String,closable:Boolean,closeIcon:{type:ul,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:t=>iRe.includes(t)},...ys(),...S1(),...O_(),...Qv(),...kD(),..._q(),...pm(),...hu(),...vf(),...Tx({variant:"flat"})},"VAlert"),lge=Ji()({name:"VAlert",props:aRe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{emit:o,slots:f}=e;const P=bl(t,"modelValue"),d=Un(()=>{if(t.icon!==!1)return t.type?t.icon??`$${t.type}`:t.icon}),l=Un(()=>({color:t.color??t.type,variant:t.variant})),{themeClasses:n}=ad(t),{colorClasses:c,colorStyles:b,variantClasses:i}=CT(l),{densityClasses:O}=kx(t),{dimensionStyles:w}=S_(t),{elevationClasses:y}=lb(t),{locationStyles:p}=yq(t),{positionClasses:a}=wq(t),{roundedClasses:u}=lg(t),{textColorClasses:h,textColorStyles:m}=Uv(Oi(t,"borderColor")),{t:v}=sb(),_=Un(()=>({"aria-label":v(t.closeLabel),onClick(S){P.value=!1,o("click:close",S)}}));return()=>{const S=!!(f.prepend||d.value),A=!!(f.title||t.title),x=!!(f.close||t.closable);return P.value&&Ht(t.tag,{class:["v-alert",t.border&&{"v-alert--border":!!t.border,[`v-alert--border-${t.border===!0?"start":t.border}`]:!0},{"v-alert--prominent":t.prominent},n.value,c.value,O.value,y.value,a.value,u.value,i.value,t.class],style:[b.value,w.value,p.value,t.style],role:"alert"},{default:()=>{var R,M;return[TT(!1,"v-alert"),t.border&&Ht("div",{key:"border",class:["v-alert__border",h.value],style:m.value},null),S&&Ht("div",{key:"prepend",class:"v-alert__prepend"},[f.prepend?Ht(du,{key:"prepend-defaults",disabled:!d.value,defaults:{VIcon:{density:t.density,icon:d.value,size:t.prominent?44:28}}},f.prepend):Ht(Al,{key:"prepend-icon",density:t.density,icon:d.value,size:t.prominent?44:28},null)]),Ht("div",{class:"v-alert__content"},[A&&Ht(oRe,{key:"title"},{default:()=>{var T;return[((T=f.title)==null?void 0:T.call(f))??t.title]}}),((R=f.text)==null?void 0:R.call(f))??t.text,(M=f.default)==null?void 0:M.call(f)]),f.append&&Ht("div",{key:"append",class:"v-alert__append"},[f.append()]),x&&Ht("div",{key:"close",class:"v-alert__close"},[f.close?Ht(du,{key:"close-defaults",defaults:{VBtn:{icon:t.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var T;return[(T=f.close)==null?void 0:T.call(f,{props:_.value})]}}):Ht(ls,Ii({key:"close-btn",icon:t.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}});const sRe=ei({start:Boolean,end:Boolean,icon:ul,image:String,text:String,...ys(),...S1(),...pm(),...AT(),...hu(),...vf(),...Tx({variant:"flat"})},"VAvatar"),PO=Ji()({name:"VAvatar",props:sRe(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=ad(t),{colorClasses:P,colorStyles:d,variantClasses:l}=CT(t),{densityClasses:n}=kx(t),{roundedClasses:c}=lg(t),{sizeClasses:b,sizeStyles:i}=SD(t);return ka(()=>Ht(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},f.value,P.value,n.value,c.value,b.value,l.value,t.class],style:[d.value,i.value,t.style]},{default:()=>[o.default?Ht(du,{key:"content-defaults",defaults:{VImg:{cover:!0,src:t.image},VIcon:{icon:t.icon}}},{default:()=>[o.default()]}):t.image?Ht(kT,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?Ht(Al,{key:"icon",icon:t.icon},null):t.text,TT(!1,"v-avatar")]})),{}}});const lRe=ei({text:String,onClick:og(),...ys(),...vf()},"VLabel"),kq=Ji()({name:"VLabel",props:lRe(),setup(t,e){let{slots:o}=e;return ka(()=>{var f;return Ht("label",{class:["v-label",{"v-label--clickable":!!t.onClick},t.class],style:t.style,onClick:t.onClick},[t.text,(f=o.default)==null?void 0:f.call(o)])}),{}}});const S2e=Symbol.for("vuetify:selection-control-group"),k2e=ei({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:ul,trueIcon:ul,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:bS},...ys(),...S1(),...vf()},"SelectionControlGroup"),cRe=ei({...k2e({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Ji()({name:"VSelectionControlGroup",props:cRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=bl(t,"modelValue"),P=O1(),d=Un(()=>t.id||`v-selection-control-group-${P}`),l=Un(()=>t.name||d.value),n=new Set;return gf(S2e,{modelValue:f,forceUpdate:()=>{n.forEach(c=>c())},onForceUpdate:c=>{n.add(c),ag(()=>{n.delete(c)})}}),ib({[t.defaultsTarget]:{color:Oi(t,"color"),disabled:Oi(t,"disabled"),density:Oi(t,"density"),error:Oi(t,"error"),inline:Oi(t,"inline"),modelValue:f,multiple:Un(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),name:l,falseIcon:Oi(t,"falseIcon"),trueIcon:Oi(t,"trueIcon"),readonly:Oi(t,"readonly"),ripple:Oi(t,"ripple"),type:Oi(t,"type"),valueComparator:Oi(t,"valueComparator")}}),ka(()=>{var c;return Ht("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(c=o.default)==null?void 0:c.call(o)])}),{}}});const tue=ei({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...ys(),...k2e()},"VSelectionControl");function uRe(t){const e=yl(S2e,void 0),{densityClasses:o}=kx(t),f=bl(t,"modelValue"),P=Un(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),d=Un(()=>t.falseValue!==void 0?t.falseValue:!1),l=Un(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),n=Un({get(){const y=e?e.modelValue.value:f.value;return l.value?fm(y).some(p=>t.valueComparator(p,P.value)):t.valueComparator(y,P.value)},set(y){if(t.readonly)return;const p=y?P.value:d.value;let a=p;l.value&&(a=y?[...fm(f.value),p]:fm(f.value).filter(u=>!t.valueComparator(u,P.value))),e?e.modelValue.value=a:f.value=a}}),{textColorClasses:c,textColorStyles:b}=Uv(Un(()=>{if(!(t.error||t.disabled))return n.value?t.color:t.baseColor})),{backgroundColorClasses:i,backgroundColorStyles:O}=ig(Un(()=>n.value&&!t.error&&!t.disabled?t.color:t.baseColor)),w=Un(()=>n.value?t.trueIcon:t.falseIcon);return{group:e,densityClasses:o,trueValue:P,falseValue:d,model:n,textColorClasses:c,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:O,icon:w}}const gZ=Ji()({name:"VSelectionControl",directives:{Ripple:MT},inheritAttrs:!1,props:tue(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{group:P,densityClasses:d,icon:l,model:n,textColorClasses:c,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:O,trueValue:w}=uRe(t),y=O1(),p=Ai(!1),a=Ai(!1),u=ti(),h=Un(()=>t.id||`input-${y}`),m=Un(()=>!t.disabled&&!t.readonly);P==null||P.onForceUpdate(()=>{u.value&&(u.value.checked=n.value)});function v(x){m.value&&(p.value=!0,vM(x.target,":focus-visible")!==!1&&(a.value=!0))}function _(){p.value=!1,a.value=!1}function S(x){x.stopPropagation()}function A(x){if(!m.value){u.value&&(u.value.checked=n.value);return}t.readonly&&P&&lc(()=>P.forceUpdate()),n.value=x.target.checked}return ka(()=>{var E,C;const x=f.label?f.label({label:t.label,props:{for:h.value}}):t.label,[R,M]=fq(o),T=Ht("input",Ii({ref:u,checked:n.value,disabled:!!t.disabled,id:h.value,onBlur:_,onFocus:v,onInput:A,"aria-disabled":!!t.disabled,"aria-label":t.label,type:t.type,value:w.value,name:t.name,"aria-checked":t.type==="checkbox"?n.value:void 0},M),null);return Ht("div",Ii({class:["v-selection-control",{"v-selection-control--dirty":n.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":p.value,"v-selection-control--focus-visible":a.value,"v-selection-control--inline":t.inline},d.value,t.class]},R,{style:t.style}),[Ht("div",{class:["v-selection-control__wrapper",c.value],style:b.value},[(E=f.default)==null?void 0:E.call(f,{backgroundColorClasses:i,backgroundColorStyles:O}),Tp(Ht("div",{class:["v-selection-control__input"]},[((C=f.input)==null?void 0:C.call(f,{model:n,textColorClasses:c,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:O,inputNode:T,icon:l.value,props:{onFocus:v,onBlur:_,id:h.value}}))??Ht(ma,null,[l.value&&Ht(Al,{key:"icon",icon:l.value},null),T])]),[[y_("ripple"),t.ripple&&[!t.disabled&&!t.readonly,null,["center","circle"]]]])]),x&&Ht(kq,{for:h.value,onClick:S},{default:()=>[x]})])}),{isFocused:p,input:u}}}),fRe=ei({indeterminate:Boolean,indeterminateIcon:{type:ul,default:"$checkboxIndeterminate"},...tue({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),IM=Ji()({name:"VCheckboxBtn",props:fRe(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{slots:o}=e;const f=bl(t,"indeterminate"),P=bl(t,"modelValue");function d(c){f.value&&(f.value=!1)}const l=Un(()=>f.value?t.indeterminateIcon:t.falseIcon),n=Un(()=>f.value?t.indeterminateIcon:t.trueIcon);return ka(()=>{const c=__(gZ.filterProps(t),["modelValue"]);return Ht(gZ,Ii(c,{modelValue:P.value,"onUpdate:modelValue":[b=>P.value=b,d],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:l.value,trueIcon:n.value,"aria-checked":f.value?"mixed":void 0}),o)}),{}}});function T2e(t){const{t:e}=sb();function o(f){let{name:P}=f;const d={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[P],l=t[`onClick:${P}`],n=l&&d?e(`$vuetify.input.${d}`,t.label??""):void 0;return Ht(Al,{icon:t[`${P}Icon`],"aria-label":n,onClick:l},null)}return{InputIcon:o}}const dRe=ei({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...ys(),...ST({transition:{component:e2e,leaveAbsolute:!0,group:!0}})},"VMessages"),hRe=Ji()({name:"VMessages",props:dRe(),setup(t,e){let{slots:o}=e;const f=Un(()=>fm(t.messages)),{textColorClasses:P,textColorStyles:d}=Uv(Un(()=>t.color));return ka(()=>Ht(G4,{transition:t.transition,tag:"div",class:["v-messages",P.value,t.class],style:[d.value,t.style],role:"alert","aria-live":"polite"},{default:()=>[t.active&&f.value.map((l,n)=>Ht("div",{class:"v-messages__message",key:`${n}-${f.value}`},[o.message?o.message({message:l}):l]))]})),{}}}),Tq=ei({focused:Boolean,"onUpdate:focused":og()},"focus");function DM(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();const o=bl(t,"focused"),f=Un(()=>({[`${e}--focused`]:o.value}));function P(){o.value=!0}function d(){o.value=!1}return{focusClasses:f,isFocused:o,focus:P,blur:d}}const C2e=Symbol.for("vuetify:form"),pRe=ei({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function mRe(t){const e=bl(t,"modelValue"),o=Un(()=>t.disabled),f=Un(()=>t.readonly),P=Ai(!1),d=ti([]),l=ti([]);async function n(){const i=[];let O=!0;l.value=[],P.value=!0;for(const w of d.value){const y=await w.validate();if(y.length>0&&(O=!1,i.push({id:w.id,errorMessages:y})),!O&&t.fastFail)break}return l.value=i,P.value=!1,{valid:O,errors:l.value}}function c(){d.value.forEach(i=>i.reset())}function b(){d.value.forEach(i=>i.resetValidation())}return Ni(d,()=>{let i=0,O=0;const w=[];for(const y of d.value)y.isValid===!1?(O++,w.push({id:y.id,errorMessages:y.errorMessages})):y.isValid===!0&&i++;l.value=w,e.value=O>0?!1:i===d.value.length?!0:null},{deep:!0,flush:"post"}),gf(C2e,{register:i=>{let{id:O,vm:w,validate:y,reset:p,resetValidation:a}=i;d.value.some(u=>u.id===O),d.value.push({id:O,validate:y,reset:p,resetValidation:a,vm:fD(w),isValid:null,errorMessages:[]})},unregister:i=>{d.value=d.value.filter(O=>O.id!==i)},update:(i,O,w)=>{const y=d.value.find(p=>p.id===i);y&&(y.isValid=O,y.errorMessages=w)},isDisabled:o,isReadonly:f,isValidating:P,isValid:e,items:d,validateOn:Oi(t,"validateOn")}),{errors:l,isDisabled:o,isReadonly:f,isValidating:P,isValid:e,items:d,validate:n,reset:c,resetValidation:b}}function Cq(){return yl(C2e,null)}const gRe=ei({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Tq()},"validation");function vRe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_(),o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:O1();const f=bl(t,"modelValue"),P=Un(()=>t.validationValue===void 0?f.value:t.validationValue),d=Cq(),l=ti([]),n=Ai(!0),c=Un(()=>!!(fm(f.value===""?null:f.value).length||fm(P.value===""?null:P.value).length)),b=Un(()=>!!(t.disabled??(d==null?void 0:d.isDisabled.value))),i=Un(()=>!!(t.readonly??(d==null?void 0:d.isReadonly.value))),O=Un(()=>{var S;return(S=t.errorMessages)!=null&&S.length?fm(t.errorMessages).concat(l.value).slice(0,Math.max(0,+t.maxErrors)):l.value}),w=Un(()=>{let S=(t.validateOn??(d==null?void 0:d.validateOn.value))||"input";S==="lazy"&&(S="input lazy");const A=new Set((S==null?void 0:S.split(" "))??[]);return{blur:A.has("blur")||A.has("input"),input:A.has("input"),submit:A.has("submit"),lazy:A.has("lazy")}}),y=Un(()=>{var S;return t.error||(S=t.errorMessages)!=null&&S.length?!1:t.rules.length?n.value?l.value.length||w.value.lazy?null:!0:!l.value.length:!0}),p=Ai(!1),a=Un(()=>({[`${e}--error`]:y.value===!1,[`${e}--dirty`]:c.value,[`${e}--disabled`]:b.value,[`${e}--readonly`]:i.value})),u=ph("validation"),h=Un(()=>t.name??wa(o));zle(()=>{d==null||d.register({id:h.value,vm:u,validate:_,reset:m,resetValidation:v})}),dm(()=>{d==null||d.unregister(h.value)}),sg(async()=>{w.value.lazy||await _(!0),d==null||d.update(h.value,y.value,O.value)}),x1(()=>w.value.input,()=>{Ni(P,()=>{if(P.value!=null)_();else if(t.focused){const S=Ni(()=>t.focused,A=>{A||_(),S()})}})}),x1(()=>w.value.blur,()=>{Ni(()=>t.focused,S=>{S||_()})}),Ni([y,O],()=>{d==null||d.update(h.value,y.value,O.value)});async function m(){f.value=null,await lc(),await v()}async function v(){n.value=!0,w.value.lazy?l.value=[]:await _(!0)}async function _(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=[];p.value=!0;for(const x of t.rules){if(A.length>=+(t.maxErrors??1))break;const M=await(typeof x=="function"?x:()=>x)(P.value);if(M!==!0){if(M!==!1&&typeof M!="string"){console.warn(`${M} is not a valid value. Rule functions must return boolean true or a string.`);continue}A.push(M||"")}}return l.value=A,p.value=!1,n.value=S,l.value}return{errorMessages:O,isDirty:c,isDisabled:b,isReadonly:i,isPristine:n,isValid:y,isValidating:p,reset:m,resetValidation:v,validate:_,validationClasses:a}}const BM=ei({id:String,appendIcon:ul,centerAffix:{type:Boolean,default:!0},prependIcon:ul,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":og(),"onClick:append":og(),...ys(),...S1(),...xPe(O_(),["maxWidth","minWidth","width"]),...vf(),...gRe()},"VInput"),p_=Ji()({name:"VInput",props:{...BM()},emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f,emit:P}=e;const{densityClasses:d}=kx(t),{dimensionStyles:l}=S_(t),{themeClasses:n}=ad(t),{rtlClasses:c}=qg(),{InputIcon:b}=T2e(t),i=O1(),O=Un(()=>t.id||`input-${i}`),w=Un(()=>`${O.value}-messages`),{errorMessages:y,isDirty:p,isDisabled:a,isReadonly:u,isPristine:h,isValid:m,isValidating:v,reset:_,resetValidation:S,validate:A,validationClasses:x}=vRe(t,"v-input",O),R=Un(()=>({id:O,messagesId:w,isDirty:p,isDisabled:a,isReadonly:u,isPristine:h,isValid:m,isValidating:v,reset:_,resetValidation:S,validate:A})),M=Un(()=>{var T;return(T=t.errorMessages)!=null&&T.length||!h.value&&y.value.length?y.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages});return ka(()=>{var D,k,I,z;const T=!!(f.prepend||t.prependIcon),E=!!(f.append||t.appendIcon),C=M.value.length>0,L=!t.hideDetails||t.hideDetails==="auto"&&(C||!!f.details);return Ht("div",{class:["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix,"v-input--hide-spin-buttons":t.hideSpinButtons},d.value,n.value,c.value,x.value,t.class],style:[l.value,t.style]},[T&&Ht("div",{key:"prepend",class:"v-input__prepend"},[(D=f.prepend)==null?void 0:D.call(f,R.value),t.prependIcon&&Ht(b,{key:"prepend-icon",name:"prepend"},null)]),f.default&&Ht("div",{class:"v-input__control"},[(k=f.default)==null?void 0:k.call(f,R.value)]),E&&Ht("div",{key:"append",class:"v-input__append"},[t.appendIcon&&Ht(b,{key:"append-icon",name:"append"},null),(I=f.append)==null?void 0:I.call(f,R.value)]),L&&Ht("div",{class:"v-input__details"},[Ht(hRe,{id:w.value,active:C,messages:M.value},{message:f.message}),(z=f.details)==null?void 0:z.call(f,R.value)])])}),{reset:_,resetValidation:S,validate:A,isValid:m,errorMessages:y}}});const Aq=["sm","md","lg","xl","xxl"],Fse=Symbol.for("vuetify:display"),cge={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},yRe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cge;return jg(cge,t)};function uge(t){return ou&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function fge(t){return ou&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function dge(t){const e=ou&&!t?window.navigator.userAgent:"ssr";function o(p){return!!e.match(p)}const f=o(/android/i),P=o(/iphone|ipad|ipod/i),d=o(/cordova/i),l=o(/electron/i),n=o(/chrome/i),c=o(/edge/i),b=o(/firefox/i),i=o(/opera/i),O=o(/win/i),w=o(/mac/i),y=o(/linux/i);return{android:f,ios:P,cordova:d,electron:l,chrome:n,edge:c,firefox:b,opera:i,win:O,mac:w,linux:y,touch:vPe,ssr:e==="ssr"}}function bRe(t,e){const{thresholds:o,mobileBreakpoint:f}=yRe(t),P=Ai(fge(e)),d=Ai(dge(e)),l=lm({}),n=Ai(uge(e));function c(){P.value=fge(),n.value=uge()}function b(){c(),d.value=dge()}return kp(()=>{const i=n.value=o.xxl,u=i?"xs":O?"sm":w?"md":y?"lg":p?"xl":"xxl",h=typeof f=="number"?f:o[f],m=n.value0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();const o=yl(Fse);if(!o)throw new Error("Could not find Vuetify display injection");const f=Un(()=>{if(t.mobile!=null)return t.mobile;if(!t.mobileBreakpoint)return o.mobile.value;const d=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:o.thresholds.value[t.mobileBreakpoint];return o.width.valuee?{[`${e}--mobile`]:f.value}:{});return{...o,displayClasses:P,mobile:f}}const A2e=Symbol.for("vuetify:goto");function M2e(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5}}}function xRe(t){return nue(t)??(document.scrollingElement||document.body)}function nue(t){return typeof t=="string"?document.querySelector(t):$ce(t)}function Uie(t,e,o){if(typeof t=="number")return e&&o?-t:t;let f=nue(t),P=0;for(;f;)P+=e?f.offsetLeft:f.offsetTop,f=f.offsetParent;return P}function _Re(t,e){return{rtl:e.isRtl,options:jg(M2e(),t)}}async function hge(t,e,o,f){const P=o?"scrollLeft":"scrollTop",d=jg((f==null?void 0:f.options)??M2e(),e),l=f==null?void 0:f.rtl.value,n=(typeof t=="number"?t:nue(t))??0,c=d.container==="parent"&&n instanceof HTMLElement?n.parentElement:xRe(d.container),b=typeof d.easing=="function"?d.easing:d.patterns[d.easing];if(!b)throw new TypeError(`Easing function "${d.easing}" not found.`);let i;if(typeof n=="number")i=Uie(n,o,l);else if(i=Uie(n,o,l)-Uie(c,o,l),d.layout){const p=window.getComputedStyle(n).getPropertyValue("--v-layout-top");p&&(i-=parseInt(p,10))}i+=d.offset,i=ORe(c,i,!!l,!!o);const O=c[P]??0;if(i===O)return Promise.resolve(i);const w=performance.now();return new Promise(y=>requestAnimationFrame(function p(a){const h=(a-w)/d.duration,m=Math.floor(O+(i-O)*b(rg(h,0,1)));if(c[P]=m,h>=1&&Math.abs(m-c[P])<10)return y(i);if(h>2)return y(c[P]);requestAnimationFrame(p)}))}function wRe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=yl(A2e),{isRtl:o}=qg();if(!e)throw new Error("[Vuetify] Could not find injected goto instance");const f={...e,rtl:Un(()=>e.rtl.value||o.value)};async function P(d,l){return hge(d,jg(t,l),!1,f)}return P.horizontal=async(d,l)=>hge(d,jg(t,l),!0,f),P}function ORe(t,e,o,f){const{scrollWidth:P,scrollHeight:d}=t,[l,n]=t===document.scrollingElement?[window.innerWidth,window.innerHeight]:[t.offsetWidth,t.offsetHeight];let c,b;return f?o?(c=-(P-l),b=0):(c=0,b=P-l):(c=0,b=d+-n),Math.max(Math.min(e,b),c)}function SRe(t){let{selectedElement:e,containerElement:o,isRtl:f,isHorizontal:P}=t;const d=JI(P,o),l=E2e(P,f,o),n=JI(P,e),c=P2e(P,e),b=n*.4;return l>c?c-b:l+dtypeof t=="boolean"||["always","desktop","mobile"].includes(t)},...ys(),...CD({mobile:null}),...hu(),...mq({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),mge=Ji()({name:"VSlideGroup",props:R2e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isRtl:f}=qg(),{displayClasses:P,mobile:d}=xS(t),l=gq(t,t.symbol),n=Ai(!1),c=Ai(0),b=Ai(0),i=Ai(0),O=Un(()=>t.direction==="horizontal"),{resizeRef:w,contentRect:y}=dS(),{resizeRef:p,contentRect:a}=dS(),u=wRe(),h=Un(()=>({container:w.el,duration:200,easing:"easeOutQuart"})),m=Un(()=>l.selected.value.length?l.items.value.findIndex(j=>j.id===l.selected.value[0]):-1),v=Un(()=>l.selected.value.length?l.items.value.findIndex(j=>j.id===l.selected.value[l.selected.value.length-1]):-1);if(ou){let j=-1;Ni(()=>[l.selected.value,y.value,a.value,O.value],()=>{cancelAnimationFrame(j),j=requestAnimationFrame(()=>{if(y.value&&a.value){const U=O.value?"width":"height";b.value=y.value[U],i.value=a.value[U],n.value=b.value+1=0&&p.el){const U=p.el.children[v.value];S(U,t.centerActive)}})})}const _=Ai(!1);function S(j,U){let X=0;U?X=kRe({containerElement:w.el,isHorizontal:O.value,selectedElement:j}):X=SRe({containerElement:w.el,isHorizontal:O.value,isRtl:f.value,selectedElement:j}),A(X)}function A(j){if(!ou||!w.el)return;const U=JI(O.value,w.el),X=E2e(O.value,f.value,w.el);if(!(pge(O.value,w.el)<=U||Math.abs(j-X)<16)){if(O.value&&f.value&&w.el){const{scrollWidth:W,offsetWidth:K}=w.el;j=W-K-j}O.value?u.horizontal(j,h.value):u(j,h.value)}}function x(j){const{scrollTop:U,scrollLeft:X}=j.target;c.value=O.value?X:U}function R(j){if(_.value=!0,!(!n.value||!p.el)){for(const U of j.composedPath())for(const X of p.el.children)if(X===U){S(X);return}}}function M(j){_.value=!1}let T=!1;function E(j){var U;!T&&!_.value&&!(j.relatedTarget&&((U=p.el)!=null&&U.contains(j.relatedTarget)))&&D(),T=!1}function C(){T=!0}function L(j){if(!p.el)return;function U(X){j.preventDefault(),D(X)}O.value?j.key==="ArrowRight"?U(f.value?"prev":"next"):j.key==="ArrowLeft"&&U(f.value?"next":"prev"):j.key==="ArrowDown"?U("next"):j.key==="ArrowUp"&&U("prev"),j.key==="Home"?U("first"):j.key==="End"&&U("last")}function D(j){var X,te;if(!p.el)return;let U;if(!j)U=WI(p.el)[0];else if(j==="next"){if(U=(X=p.el.querySelector(":focus"))==null?void 0:X.nextElementSibling,!U)return D("first")}else if(j==="prev"){if(U=(te=p.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!U)return D("last")}else j==="first"?U=p.el.firstElementChild:j==="last"&&(U=p.el.lastElementChild);U&&U.focus({preventScroll:!0})}function k(j){const U=O.value&&f.value?-1:1,X=(j==="prev"?-U:U)*b.value;let te=c.value+X;if(O.value&&f.value&&w.el){const{scrollWidth:W,offsetWidth:K}=w.el;te+=W-K}A(te)}const I=Un(()=>({next:l.next,prev:l.prev,select:l.select,isSelected:l.isSelected})),z=Un(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!d.value;case!0:return n.value||Math.abs(c.value)>0;case"mobile":return d.value||n.value||Math.abs(c.value)>0;default:return!d.value&&(n.value||Math.abs(c.value)>0)}}),$=Un(()=>Math.abs(c.value)>1),Q=Un(()=>{if(!w.value)return!1;const j=pge(O.value,w.el),U=TRe(O.value,w.el);return j-U-Math.abs(c.value)>1});return ka(()=>Ht(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!O.value,"v-slide-group--has-affixes":z.value,"v-slide-group--is-overflowing":n.value},P.value,t.class],style:t.style,tabindex:_.value||l.selected.value.length?-1:0,onFocus:E},{default:()=>{var j,U,X;return[z.value&&Ht("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!$.value}],onMousedown:C,onClick:()=>$.value&&k("prev")},[((j=o.prev)==null?void 0:j.call(o,I.value))??Ht(ege,null,{default:()=>[Ht(Al,{icon:f.value?t.nextIcon:t.prevIcon},null)]})]),Ht("div",{key:"container",ref:w,class:"v-slide-group__container",onScroll:x},[Ht("div",{ref:p,class:"v-slide-group__content",onFocusin:R,onFocusout:M,onKeydown:L},[(U=o.default)==null?void 0:U.call(o,I.value)])]),z.value&&Ht("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Q.value}],onMousedown:C,onClick:()=>Q.value&&k("next")},[((X=o.next)==null?void 0:X.call(o,I.value))??Ht(ege,null,{default:()=>[Ht(Al,{icon:f.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:l.selected,scrollTo:k,scrollOffset:c,focus:D}}}),L2e=Symbol.for("vuetify:v-chip-group"),ARe=ei({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:bS},...R2e(),...ys(),...mq({selectedClass:"v-chip--selected"}),...hu(),...vf(),...Tx({variant:"tonal"})},"VChipGroup");Ji()({name:"VChipGroup",props:ARe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{themeClasses:f}=ad(t),{isSelected:P,select:d,next:l,prev:n,selected:c}=gq(t,L2e);return ib({VChip:{color:Oi(t,"color"),disabled:Oi(t,"disabled"),filter:Oi(t,"filter"),variant:Oi(t,"variant")}}),ka(()=>{const b=mge.filterProps(t);return Ht(mge,Ii(b,{class:["v-chip-group",{"v-chip-group--column":t.column},f.value,t.class],style:t.style}),{default:()=>{var i;return[(i=o.default)==null?void 0:i.call(o,{isSelected:P,select:d,next:l,prev:n,selected:c.value})]}})}),{}}});const MRe=ei({activeClass:String,appendAvatar:String,appendIcon:ul,closable:Boolean,closeIcon:{type:ul,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:ul,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:og(),onClickOnce:og(),...k_(),...ys(),...S1(),...Qv(),...Jce(),...pm(),...Sq(),...AT(),...hu({tag:"span"}),...vf(),...Tx({variant:"tonal"})},"VChip"),AD=Ji()({name:"VChip",directives:{Ripple:MT},props:MRe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{t:d}=sb(),{borderClasses:l}=DO(t),{colorClasses:n,colorStyles:c,variantClasses:b}=CT(t),{densityClasses:i}=kx(t),{elevationClasses:O}=lb(t),{roundedClasses:w}=lg(t),{sizeClasses:y}=SD(t),{themeClasses:p}=ad(t),a=bl(t,"modelValue"),u=eue(t,L2e,!1),h=Oq(t,o),m=Un(()=>t.link!==!1&&h.isLink.value),v=Un(()=>!t.disabled&&t.link!==!1&&(!!u||t.link||h.isClickable.value)),_=Un(()=>({"aria-label":d(t.closeLabel),onClick(x){x.preventDefault(),x.stopPropagation(),a.value=!1,f("click:close",x)}}));function S(x){var R;f("click",x),v.value&&((R=h.navigate)==null||R.call(h,x),u==null||u.toggle())}function A(x){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),S(x))}return()=>{const x=h.isLink.value?"a":t.tag,R=!!(t.appendIcon||t.appendAvatar),M=!!(R||P.append),T=!!(P.close||t.closable),E=!!(P.filter||t.filter)&&u,C=!!(t.prependIcon||t.prependAvatar),L=!!(C||P.prepend),D=!u||u.isSelected.value;return a.value&&Tp(Ht(x,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":v.value,"v-chip--filter":E,"v-chip--pill":t.pill},p.value,l.value,D?n.value:void 0,i.value,O.value,w.value,y.value,b.value,u==null?void 0:u.selectedClass.value,t.class],style:[D?c.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:h.href.value,tabindex:v.value?0:void 0,onClick:S,onKeydown:v.value&&!m.value&&A},{default:()=>{var k;return[TT(v.value,"v-chip"),E&&Ht(t2e,{key:"filter"},{default:()=>[Tp(Ht("div",{class:"v-chip__filter"},[P.filter?Ht(du,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},P.filter):Ht(Al,{key:"filter-icon",icon:t.filterIcon},null)]),[[mS,u.isSelected.value]])]}),L&&Ht("div",{key:"prepend",class:"v-chip__prepend"},[P.prepend?Ht(du,{key:"prepend-defaults",disabled:!C,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},P.prepend):Ht(ma,null,[t.prependIcon&&Ht(Al,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&Ht(PO,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),Ht("div",{class:"v-chip__content","data-no-activator":""},[((k=P.default)==null?void 0:k.call(P,{isSelected:u==null?void 0:u.isSelected.value,selectedClass:u==null?void 0:u.selectedClass.value,select:u==null?void 0:u.select,toggle:u==null?void 0:u.toggle,value:u==null?void 0:u.value.value,disabled:t.disabled}))??t.text]),M&&Ht("div",{key:"append",class:"v-chip__append"},[P.append?Ht(du,{key:"append-defaults",disabled:!R,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},P.append):Ht(ma,null,[t.appendIcon&&Ht(Al,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&Ht(PO,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),T&&Ht("button",Ii({key:"close",class:"v-chip__close",type:"button"},_.value),[P.close?Ht(du,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},P.close):Ht(Al,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[y_("ripple"),v.value&&t.ripple,null]])}}});const Nse=Symbol.for("vuetify:list");function I2e(){const t=yl(Nse,{hasPrepend:Ai(!1),updateHasPrepend:()=>null}),e={hasPrepend:Ai(!1),updateHasPrepend:o=>{o&&(e.hasPrepend.value=o)}};return gf(Nse,e),t}function D2e(){return yl(Nse,null)}const rue=t=>{const e={activate:o=>{let{id:f,value:P,activated:d}=o;return f=As(f),t&&!P&&d.size===1&&d.has(f)||(P?d.add(f):d.delete(f)),d},in:(o,f,P)=>{let d=new Set;if(o!=null)for(const l of fm(o))d=e.activate({id:l,value:!0,activated:new Set(d),children:f,parents:P});return d},out:o=>Array.from(o)};return e},B2e=t=>{const e=rue(t);return{activate:f=>{let{activated:P,id:d,...l}=f;d=As(d);const n=P.has(d)?new Set([d]):new Set;return e.activate({...l,id:d,activated:n})},in:(f,P,d)=>{let l=new Set;if(f!=null){const n=fm(f);n.length&&(l=e.in(n.slice(0,1),P,d))}return l},out:(f,P,d)=>e.out(f,P,d)}},ERe=t=>{const e=rue(t);return{activate:f=>{let{id:P,activated:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.activate({id:P,activated:d,children:l,...n})},in:e.in,out:e.out}},PRe=t=>{const e=B2e(t);return{activate:f=>{let{id:P,activated:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.activate({id:P,activated:d,children:l,...n})},in:e.in,out:e.out}},RRe={open:t=>{let{id:e,value:o,opened:f,parents:P}=t;if(o){const d=new Set;d.add(e);let l=P.get(e);for(;l!=null;)d.add(l),l=P.get(l);return d}else return f.delete(e),f},select:()=>null},z2e={open:t=>{let{id:e,value:o,opened:f,parents:P}=t;if(o){let d=P.get(e);for(f.add(e);d!=null&&d!==e;)f.add(d),d=P.get(d);return f}else f.delete(e);return f},select:()=>null},LRe={open:z2e.open,select:t=>{let{id:e,value:o,opened:f,parents:P}=t;if(!o)return f;const d=[];let l=P.get(e);for(;l!=null;)d.push(l),l=P.get(l);return new Set(d)}},oue=t=>{const e={select:o=>{let{id:f,value:P,selected:d}=o;if(f=As(f),t&&!P){const l=Array.from(d.entries()).reduce((n,c)=>{let[b,i]=c;return i==="on"&&n.push(b),n},[]);if(l.length===1&&l[0]===f)return d}return d.set(f,P?"on":"off"),d},in:(o,f,P)=>{let d=new Map;for(const l of o||[])d=e.select({id:l,value:!0,selected:new Map(d),children:f,parents:P});return d},out:o=>{const f=[];for(const[P,d]of o.entries())d==="on"&&f.push(P);return f}};return e},F2e=t=>{const e=oue(t);return{select:f=>{let{selected:P,id:d,...l}=f;d=As(d);const n=P.has(d)?new Map([[d,P.get(d)]]):new Map;return e.select({...l,id:d,selected:n})},in:(f,P,d)=>{let l=new Map;return f!=null&&f.length&&(l=e.in(f.slice(0,1),P,d)),l},out:(f,P,d)=>e.out(f,P,d)}},IRe=t=>{const e=oue(t);return{select:f=>{let{id:P,selected:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.select({id:P,selected:d,children:l,...n})},in:e.in,out:e.out}},DRe=t=>{const e=F2e(t);return{select:f=>{let{id:P,selected:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.select({id:P,selected:d,children:l,...n})},in:e.in,out:e.out}},BRe=t=>{const e={select:o=>{let{id:f,value:P,selected:d,children:l,parents:n}=o;f=As(f);const c=new Map(d),b=[f];for(;b.length;){const O=b.shift();d.set(O,P?"on":"off"),l.has(O)&&b.push(...l.get(O))}let i=n.get(f);for(;i;){const O=l.get(i),w=O.every(p=>d.get(p)==="on"),y=O.every(p=>!d.has(p)||d.get(p)==="off");d.set(i,w?"on":y?"off":"indeterminate"),i=n.get(i)}return t&&!P&&Array.from(d.entries()).reduce((w,y)=>{let[p,a]=y;return a==="on"&&w.push(p),w},[]).length===0?c:d},in:(o,f,P)=>{let d=new Map;for(const l of o||[])d=e.select({id:l,value:!0,selected:new Map(d),children:f,parents:P});return d},out:(o,f)=>{const P=[];for(const[d,l]of o.entries())l==="on"&&!f.has(d)&&P.push(d);return P}};return e},eD=Symbol.for("vuetify:nested"),N2e={id:Ai(),root:{register:()=>null,unregister:()=>null,parents:ti(new Map),children:ti(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ti(!1),selectable:ti(!1),opened:ti(new Set),activated:ti(new Set),selected:ti(new Map),selectedValues:ti([])}},zRe=ei({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),FRe=t=>{let e=!1;const o=ti(new Map),f=ti(new Map),P=bl(t,"opened",t.opened,y=>new Set(y),y=>[...y.values()]),d=Un(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return ERe(t.mandatory);case"single-leaf":return PRe(t.mandatory);case"independent":return rue(t.mandatory);case"single-independent":default:return B2e(t.mandatory)}}),l=Un(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return DRe(t.mandatory);case"leaf":return IRe(t.mandatory);case"independent":return oue(t.mandatory);case"single-independent":return F2e(t.mandatory);case"classic":default:return BRe(t.mandatory)}}),n=Un(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return LRe;case"single":return RRe;case"multiple":default:return z2e}}),c=bl(t,"activated",t.activated,y=>d.value.in(y,o.value,f.value),y=>d.value.out(y,o.value,f.value)),b=bl(t,"selected",t.selected,y=>l.value.in(y,o.value,f.value),y=>l.value.out(y,o.value,f.value));dm(()=>{e=!0});function i(y){const p=[];let a=y;for(;a!=null;)p.unshift(a),a=f.value.get(a);return p}const O=ph("nested"),w={id:Ai(),root:{opened:P,activatable:Oi(t,"activatable"),selectable:Oi(t,"selectable"),activated:c,selected:b,selectedValues:Un(()=>{const y=[];for(const[p,a]of b.value.entries())a==="on"&&y.push(p);return y}),register:(y,p,a)=>{p&&y!==p&&f.value.set(y,p),a&&o.value.set(y,[]),p!=null&&o.value.set(p,[...o.value.get(p)||[],y])},unregister:y=>{if(e)return;o.value.delete(y);const p=f.value.get(y);if(p){const a=o.value.get(p)??[];o.value.set(p,a.filter(u=>u!==y))}f.value.delete(y)},open:(y,p,a)=>{O.emit("click:open",{id:y,value:p,path:i(y),event:a});const u=n.value.open({id:y,value:p,opened:new Set(P.value),children:o.value,parents:f.value,event:a});u&&(P.value=u)},openOnSelect:(y,p,a)=>{const u=n.value.select({id:y,value:p,selected:new Map(b.value),opened:new Set(P.value),children:o.value,parents:f.value,event:a});u&&(P.value=u)},select:(y,p,a)=>{O.emit("click:select",{id:y,value:p,path:i(y),event:a});const u=l.value.select({id:y,value:p,selected:new Map(b.value),children:o.value,parents:f.value,event:a});u&&(b.value=u),w.root.openOnSelect(y,p,a)},activate:(y,p,a)=>{if(!t.activatable)return w.root.select(y,!0,a);O.emit("click:activate",{id:y,value:p,path:i(y),event:a});const u=d.value.activate({id:y,value:p,activated:new Set(c.value),children:o.value,parents:f.value,event:a});u&&(c.value=u)},children:o,parents:f}};return gf(eD,w),w.root},$2e=(t,e)=>{const o=yl(eD,N2e),f=Symbol(O1()),P=Un(()=>t.value!==void 0?t.value:f),d={...o,id:P,open:(l,n)=>o.root.open(P.value,l,n),openOnSelect:(l,n)=>o.root.openOnSelect(P.value,l,n),isOpen:Un(()=>o.root.opened.value.has(P.value)),parent:Un(()=>o.root.parents.value.get(P.value)),activate:(l,n)=>o.root.activate(P.value,l,n),isActivated:Un(()=>o.root.activated.value.has(As(P.value))),select:(l,n)=>o.root.select(P.value,l,n),isSelected:Un(()=>o.root.selected.value.get(As(P.value))==="on"),isIndeterminate:Un(()=>o.root.selected.value.get(P.value)==="indeterminate"),isLeaf:Un(()=>!o.root.children.value.get(P.value)),isGroupActivator:o.isGroupActivator};return!o.isGroupActivator&&o.root.register(P.value,o.id.value,e),dm(()=>{!o.isGroupActivator&&o.root.unregister(P.value)}),e&&gf(eD,d),d},NRe=()=>{const t=yl(eD,N2e);gf(eD,{...t,isGroupActivator:!0})},$Re=RM({name:"VListGroupActivator",setup(t,e){let{slots:o}=e;return NRe(),()=>{var f;return(f=o.default)==null?void 0:f.call(o)}}}),VRe=ei({activeColor:String,baseColor:String,color:String,collapseIcon:{type:ul,default:"$collapse"},expandIcon:{type:ul,default:"$expand"},prependIcon:ul,appendIcon:ul,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ys(),...hu()},"VListGroup"),gge=Ji()({name:"VListGroup",props:VRe(),setup(t,e){let{slots:o}=e;const{isOpen:f,open:P,id:d}=$2e(Oi(t,"value"),!0),l=Un(()=>`v-list-group--id-${String(d.value)}`),n=D2e(),{isBooted:c}=pq();function b(y){y.stopPropagation(),P(!f.value,y)}const i=Un(()=>({onClick:b,class:"v-list-group__header",id:l.value})),O=Un(()=>f.value?t.collapseIcon:t.expandIcon),w=Un(()=>({VListItem:{active:f.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&O.value,appendIcon:t.appendIcon||!t.subgroup&&O.value,title:t.title,value:t.value}}));return ka(()=>Ht(t.tag,{class:["v-list-group",{"v-list-group--prepend":n==null?void 0:n.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":f.value},t.class],style:t.style},{default:()=>[o.activator&&Ht(du,{defaults:w.value},{default:()=>[Ht($Re,null,{default:()=>[o.activator({props:i.value,isOpen:f.value})]})]}),Ht(G4,{transition:{component:Xce},disabled:!c.value},{default:()=>{var y;return[Tp(Ht("div",{class:"v-list-group__items",role:"group","aria-labelledby":l.value},[(y=o.default)==null?void 0:y.call(o)]),[[mS,f.value]])]}})]})),{isOpen:f}}});const URe=ei({opacity:[Number,String],...ys(),...hu()},"VListItemSubtitle"),jRe=Ji()({name:"VListItemSubtitle",props:URe(),setup(t,e){let{slots:o}=e;return ka(()=>Ht(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},o)),{}}}),qy=hq("v-list-item-title"),QRe=ei({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:ul,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:ul,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:og(),onClickOnce:og(),...k_(),...ys(),...S1(),...O_(),...Qv(),...pm(),...Sq(),...hu(),...vf(),...Tx({variant:"text"})},"VListItem"),zf=Ji()({name:"VListItem",directives:{Ripple:MT},props:QRe(),emits:{click:t=>!0},setup(t,e){let{attrs:o,slots:f,emit:P}=e;const d=Oq(t,o),l=Un(()=>t.value===void 0?d.href.value:t.value),{activate:n,isActivated:c,select:b,isSelected:i,isIndeterminate:O,isGroupActivator:w,root:y,parent:p,openOnSelect:a}=$2e(l,!1),u=D2e(),h=Un(()=>{var j;return t.active!==!1&&(t.active||((j=d.isActive)==null?void 0:j.value)||(y.activatable.value?c.value:i.value))}),m=Un(()=>t.link!==!1&&d.isLink.value),v=Un(()=>!t.disabled&&t.link!==!1&&(t.link||d.isClickable.value||!!u&&(y.selectable.value||y.activatable.value||t.value!=null))),_=Un(()=>t.rounded||t.nav),S=Un(()=>t.color??t.activeColor),A=Un(()=>({color:h.value?S.value??t.baseColor:t.baseColor,variant:t.variant}));Ni(()=>{var j;return(j=d.isActive)==null?void 0:j.value},j=>{j&&p.value!=null&&y.open(p.value,!0),j&&a(j)},{immediate:!0});const{themeClasses:x}=ad(t),{borderClasses:R}=DO(t),{colorClasses:M,colorStyles:T,variantClasses:E}=CT(A),{densityClasses:C}=kx(t),{dimensionStyles:L}=S_(t),{elevationClasses:D}=lb(t),{roundedClasses:k}=lg(_),I=Un(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),z=Un(()=>({isActive:h.value,select:b,isSelected:i.value,isIndeterminate:O.value}));function $(j){var U;P("click",j),v.value&&((U=d.navigate)==null||U.call(d,j),!w&&(y.activatable.value?n(!c.value,j):(y.selectable.value||t.value!=null)&&b(!i.value,j)))}function Q(j){(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),$(j))}return ka(()=>{const j=m.value?"a":t.tag,U=f.title||t.title!=null,X=f.subtitle||t.subtitle!=null,te=!!(t.appendAvatar||t.appendIcon),W=!!(te||f.append),K=!!(t.prependAvatar||t.prependIcon),oe=!!(K||f.prepend);return u==null||u.updateHasPrepend(oe),t.activeColor&&NPe("active-color",["color","base-color"]),Tp(Ht(j,{class:["v-list-item",{"v-list-item--active":h.value,"v-list-item--disabled":t.disabled,"v-list-item--link":v.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!oe&&(u==null?void 0:u.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&h.value},x.value,R.value,M.value,C.value,D.value,I.value,k.value,E.value,t.class],style:[T.value,L.value,t.style],href:d.href.value,tabindex:v.value?u?-2:0:void 0,onClick:$,onKeydown:v.value&&!m.value&&Q},{default:()=>{var q;return[TT(v.value||h.value,"v-list-item"),oe&&Ht("div",{key:"prepend",class:"v-list-item__prepend"},[f.prepend?Ht(du,{key:"prepend-defaults",disabled:!K,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var Y;return[(Y=f.prepend)==null?void 0:Y.call(f,z.value)]}}):Ht(ma,null,[t.prependAvatar&&Ht(PO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&Ht(Al,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),Ht("div",{class:"v-list-item__spacer"},null)]),Ht("div",{class:"v-list-item__content","data-no-activator":""},[U&&Ht(qy,{key:"title"},{default:()=>{var Y;return[((Y=f.title)==null?void 0:Y.call(f,{title:t.title}))??t.title]}}),X&&Ht(jRe,{key:"subtitle"},{default:()=>{var Y;return[((Y=f.subtitle)==null?void 0:Y.call(f,{subtitle:t.subtitle}))??t.subtitle]}}),(q=f.default)==null?void 0:q.call(f,z.value)]),W&&Ht("div",{key:"append",class:"v-list-item__append"},[f.append?Ht(du,{key:"append-defaults",disabled:!te,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var Y;return[(Y=f.append)==null?void 0:Y.call(f,z.value)]}}):Ht(ma,null,[t.appendIcon&&Ht(Al,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&Ht(PO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),Ht("div",{class:"v-list-item__spacer"},null)])]}}),[[y_("ripple"),v.value&&t.ripple]])}),{activate:n,isActivated:c,isGroupActivator:w,isSelected:i,list:u,select:b}}}),HRe=ei({color:String,inset:Boolean,sticky:Boolean,title:String,...ys(),...hu()},"VListSubheader"),ZRe=Ji()({name:"VListSubheader",props:HRe(),setup(t,e){let{slots:o}=e;const{textColorClasses:f,textColorStyles:P}=Uv(Oi(t,"color"));return ka(()=>{const d=!!(o.default||t.title);return Ht(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},f.value,t.class],style:[{textColorStyles:P},t.style]},{default:()=>{var l;return[d&&Ht("div",{class:"v-list-subheader__text"},[((l=o.default)==null?void 0:l.call(o))??t.title])]}})}),{}}});const qRe=ei({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...ys(),...vf()},"VDivider"),bM=Ji()({name:"VDivider",props:qRe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:P}=ad(t),{textColorClasses:d,textColorStyles:l}=Uv(Oi(t,"color")),n=Un(()=>{const c={};return t.length&&(c[t.vertical?"height":"width"]=Ma(t.length)),t.thickness&&(c[t.vertical?"borderRightWidth":"borderTopWidth"]=Ma(t.thickness)),c});return ka(()=>{const c=Ht("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},P.value,d.value,t.class],style:[n.value,l.value,{"--v-border-opacity":t.opacity},t.style],"aria-orientation":!o.role||o.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${o.role||"separator"}`},null);return f.default?Ht("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[c,Ht("div",{class:"v-divider__content"},[f.default()]),c]):c}),{}}}),WRe=ei({items:Array,returnObject:Boolean},"VListChildren"),V2e=Ji()({name:"VListChildren",props:WRe(),setup(t,e){let{slots:o}=e;return I2e(),()=>{var f,P;return((f=o.default)==null?void 0:f.call(o))??((P=t.items)==null?void 0:P.map(d=>{var w,y;let{children:l,props:n,type:c,raw:b}=d;if(c==="divider")return((w=o.divider)==null?void 0:w.call(o,{props:n}))??Ht(bM,n,null);if(c==="subheader")return((y=o.subheader)==null?void 0:y.call(o,{props:n}))??Ht(ZRe,n,null);const i={subtitle:o.subtitle?p=>{var a;return(a=o.subtitle)==null?void 0:a.call(o,{...p,item:b})}:void 0,prepend:o.prepend?p=>{var a;return(a=o.prepend)==null?void 0:a.call(o,{...p,item:b})}:void 0,append:o.append?p=>{var a;return(a=o.append)==null?void 0:a.call(o,{...p,item:b})}:void 0,title:o.title?p=>{var a;return(a=o.title)==null?void 0:a.call(o,{...p,item:b})}:void 0},O=gge.filterProps(n);return l?Ht(gge,Ii({value:n==null?void 0:n.value},O),{activator:p=>{let{props:a}=p;const u={...n,...a,value:t.returnObject?b:n.value};return o.header?o.header({props:u}):Ht(zf,u,i)},default:()=>Ht(V2e,{items:l,returnObject:t.returnObject},o)}):o.item?o.item({props:n}):Ht(zf,Ii(n,{value:t.returnObject?b:n.value}),i)}))}}}),U2e=ei({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:bS}},"list-items");function Z4(t,e){const o=y1(e,t.itemTitle,e),f=y1(e,t.itemValue,o),P=y1(e,t.itemChildren),d=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?__(e,["children"]):e:void 0:y1(e,t.itemProps),l={title:o,value:f,...d};return{title:String(l.title??""),value:l.value,props:l,children:Array.isArray(P)?j2e(t,P):void 0,raw:e}}function j2e(t,e){const o=[];for(const f of e)o.push(Z4(t,f));return o}function iue(t){const e=Un(()=>j2e(t,t.items)),o=Un(()=>e.value.some(d=>d.value===null));function f(d){return o.value||(d=d.filter(l=>l!==null)),d.map(l=>t.returnObject&&typeof l=="string"?Z4(t,l):e.value.find(n=>t.valueComparator(l,n.value))||Z4(t,l))}function P(d){return t.returnObject?d.map(l=>{let{raw:n}=l;return n}):d.map(l=>{let{value:n}=l;return n})}return{items:e,transformIn:f,transformOut:P}}function YRe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function XRe(t,e){const o=y1(e,t.itemType,"item"),f=YRe(e)?e:y1(e,t.itemTitle),P=y1(e,t.itemValue,void 0),d=y1(e,t.itemChildren),l=t.itemProps===!0?__(e,["children"]):y1(e,t.itemProps),n={title:f,value:P,...l};return{type:o,title:n.title,value:n.value,props:n,children:o==="item"&&d?Q2e(t,d):void 0,raw:e}}function Q2e(t,e){const o=[];for(const f of e)o.push(XRe(t,f));return o}function GRe(t){return{items:Un(()=>Q2e(t,t.items))}}const KRe=ei({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":og(),"onClick:select":og(),"onUpdate:opened":og(),...zRe({selectStrategy:"single-leaf",openStrategy:"list"}),...k_(),...ys(),...S1(),...O_(),...Qv(),itemType:{type:String,default:"type"},...U2e(),...pm(),...hu(),...vf(),...Tx({variant:"text"})},"VList"),m_=Ji()({name:"VList",props:KRe(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:o}=e;const{items:f}=GRe(t),{themeClasses:P}=ad(t),{backgroundColorClasses:d,backgroundColorStyles:l}=ig(Oi(t,"bgColor")),{borderClasses:n}=DO(t),{densityClasses:c}=kx(t),{dimensionStyles:b}=S_(t),{elevationClasses:i}=lb(t),{roundedClasses:O}=lg(t),{children:w,open:y,parents:p,select:a}=FRe(t),u=Un(()=>t.lines?`v-list--${t.lines}-line`:void 0),h=Oi(t,"activeColor"),m=Oi(t,"baseColor"),v=Oi(t,"color");I2e(),ib({VListGroup:{activeColor:h,baseColor:m,color:v,expandIcon:Oi(t,"expandIcon"),collapseIcon:Oi(t,"collapseIcon")},VListItem:{activeClass:Oi(t,"activeClass"),activeColor:h,baseColor:m,color:v,density:Oi(t,"density"),disabled:Oi(t,"disabled"),lines:Oi(t,"lines"),nav:Oi(t,"nav"),slim:Oi(t,"slim"),variant:Oi(t,"variant")}});const _=Ai(!1),S=ti();function A(C){_.value=!0}function x(C){_.value=!1}function R(C){var L;!_.value&&!(C.relatedTarget&&((L=S.value)!=null&&L.contains(C.relatedTarget)))&&E()}function M(C){const L=C.target;if(!(!S.value||["INPUT","TEXTAREA"].includes(L.tagName))){if(C.key==="ArrowDown")E("next");else if(C.key==="ArrowUp")E("prev");else if(C.key==="Home")E("first");else if(C.key==="End")E("last");else return;C.preventDefault()}}function T(C){_.value=!0}function E(C){if(S.value)return cZ(S.value,C)}return ka(()=>Ht(t.tag,{ref:S,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},P.value,d.value,n.value,c.value,i.value,u.value,O.value,t.class],style:[l.value,b.value,t.style],tabindex:t.disabled||_.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:A,onFocusout:x,onFocus:R,onKeydown:M,onMousedown:T},{default:()=>[Ht(V2e,{items:f.value,returnObject:t.returnObject},o)]})),{open:y,select:a,focus:E,children:w,parents:p}}});function jie(t,e){return{x:t.x+e.x,y:t.y+e.y}}function JRe(t,e){return{x:t.x-e.x,y:t.y-e.y}}function vge(t,e){if(t.side==="top"||t.side==="bottom"){const{side:o,align:f}=t,P=f==="left"?0:f==="center"?e.width/2:f==="right"?e.width:f,d=o==="top"?0:o==="bottom"?e.height:o;return jie({x:P,y:d},e)}else if(t.side==="left"||t.side==="right"){const{side:o,align:f}=t,P=o==="left"?0:o==="right"?e.width:o,d=f==="top"?0:f==="center"?e.height/2:f==="bottom"?e.height:f;return jie({x:P,y:d},e)}return jie({x:e.width/2,y:e.height/2},e)}const H2e={static:nLe,connected:oLe},eLe=ei({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in H2e},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function tLe(t,e){const o=ti({}),f=ti();ou&&x1(()=>!!(e.isActive.value&&t.locationStrategy),d=>{var l,n;Ni(()=>t.locationStrategy,d),ag(()=>{window.removeEventListener("resize",P),f.value=void 0}),window.addEventListener("resize",P,{passive:!0}),typeof t.locationStrategy=="function"?f.value=(l=t.locationStrategy(e,t,o))==null?void 0:l.updateLocation:f.value=(n=H2e[t.locationStrategy](e,t,o))==null?void 0:n.updateLocation});function P(d){var l;(l=f.value)==null||l.call(f,d)}return{contentStyles:o,updateLocation:f}}function nLe(){}function rLe(t,e){e?t.style.removeProperty("left"):t.style.removeProperty("right");const o=jce(t);return e?o.x+=parseFloat(t.style.right||0):o.x-=parseFloat(t.style.left||0),o.y-=parseFloat(t.style.top||0),o}function oLe(t,e,o){(Array.isArray(t.target.value)||l9e(t.target.value))&&Object.assign(o.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:P,preferredOrigin:d}=Uce(()=>{const p=Rse(e.location,t.isRtl.value),a=e.origin==="overlap"?p:e.origin==="auto"?Fie(p):Rse(e.origin,t.isRtl.value);return p.side===a.side&&p.align===Nie(a).align?{preferredAnchor:Lme(p),preferredOrigin:Lme(a)}:{preferredAnchor:p,preferredOrigin:a}}),[l,n,c,b]=["minWidth","minHeight","maxWidth","maxHeight"].map(p=>Un(()=>{const a=parseFloat(e[p]);return isNaN(a)?1/0:a})),i=Un(()=>{if(Array.isArray(e.offset))return e.offset;if(typeof e.offset=="string"){const p=e.offset.split(" ").map(parseFloat);return p.length<2&&p.push(0),p}return typeof e.offset=="number"?[e.offset,0]:[0,0]});let O=!1;const w=new ResizeObserver(()=>{O&&y()});Ni([t.target,t.contentEl],(p,a)=>{let[u,h]=p,[m,v]=a;m&&!Array.isArray(m)&&w.unobserve(m),u&&!Array.isArray(u)&&w.observe(u),v&&w.unobserve(v),h&&w.observe(h)},{immediate:!0}),ag(()=>{w.disconnect()});function y(){if(O=!1,requestAnimationFrame(()=>O=!0),!t.target.value||!t.contentEl.value)return;const p=zxe(t.target.value),a=rLe(t.contentEl.value,t.isRtl.value),u=dZ(t.contentEl.value),h=12;u.length||(u.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(a.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),a.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const m=u.reduce((E,C)=>{const L=C.getBoundingClientRect(),D=new dT({x:C===document.documentElement?0:L.x,y:C===document.documentElement?0:L.y,width:C.clientWidth,height:C.clientHeight});return E?new dT({x:Math.max(E.left,D.left),y:Math.max(E.top,D.top),width:Math.min(E.right,D.right)-Math.max(E.left,D.left),height:Math.min(E.bottom,D.bottom)-Math.max(E.top,D.top)}):D},void 0);m.x+=h,m.y+=h,m.width-=h*2,m.height-=h*2;let v={anchor:P.value,origin:d.value};function _(E){const C=new dT(a),L=vge(E.anchor,p),D=vge(E.origin,C);let{x:k,y:I}=JRe(L,D);switch(E.anchor.side){case"top":I-=i.value[0];break;case"bottom":I+=i.value[0];break;case"left":k-=i.value[0];break;case"right":k+=i.value[0];break}switch(E.anchor.align){case"top":I-=i.value[1];break;case"bottom":I+=i.value[1];break;case"left":k-=i.value[1];break;case"right":k+=i.value[1];break}return C.x+=k,C.y+=I,C.width=Math.min(C.width,c.value),C.height=Math.min(C.height,b.value),{overflows:Dme(C,m),x:k,y:I}}let S=0,A=0;const x={x:0,y:0},R={x:!1,y:!1};let M=-1;for(;!(M++>10);){const{x:E,y:C,overflows:L}=_(v);S+=E,A+=C,a.x+=E,a.y+=C;{const D=Ime(v.anchor),k=L.x.before||L.x.after,I=L.y.before||L.y.after;let z=!1;if(["x","y"].forEach($=>{if($==="x"&&k&&!R.x||$==="y"&&I&&!R.y){const Q={anchor:{...v.anchor},origin:{...v.origin}},j=$==="x"?D==="y"?Nie:Fie:D==="y"?Fie:Nie;Q.anchor=j(Q.anchor),Q.origin=j(Q.origin);const{overflows:U}=_(Q);(U[$].before<=L[$].before&&U[$].after<=L[$].after||U[$].before+U[$].after<(L[$].before+L[$].after)/2)&&(v=Q,z=R[$]=!0)}}),z)continue}L.x.before&&(S+=L.x.before,a.x+=L.x.before),L.x.after&&(S-=L.x.after,a.x-=L.x.after),L.y.before&&(A+=L.y.before,a.y+=L.y.before),L.y.after&&(A-=L.y.after,a.y-=L.y.after);{const D=Dme(a,m);x.x=m.width-D.x.before-D.x.after,x.y=m.height-D.y.before-D.y.after,S+=D.x.before,a.x+=D.x.before,A+=D.y.before,a.y+=D.y.before}break}const T=Ime(v.anchor);return Object.assign(o.value,{"--v-overlay-anchor-origin":`${v.anchor.side} ${v.anchor.align}`,transformOrigin:`${v.origin.side} ${v.origin.align}`,top:Ma(Qie(A)),left:t.isRtl.value?void 0:Ma(Qie(S)),right:t.isRtl.value?Ma(Qie(-S)):void 0,minWidth:Ma(T==="y"?Math.min(l.value,p.width):l.value),maxWidth:Ma(yge(rg(x.x,l.value===1/0?0:l.value,c.value))),maxHeight:Ma(yge(rg(x.y,n.value===1/0?0:n.value,b.value)))}),{available:x,contentBox:a}}return Ni(()=>[P.value,d.value,e.offset,e.minWidth,e.minHeight,e.maxWidth,e.maxHeight],()=>y()),lc(()=>{const p=y();if(!p)return;const{available:a,contentBox:u}=p;u.height>a.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function Qie(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function yge(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let $se=!0;const vZ=[];function iLe(t){!$se||vZ.length?(vZ.push(t),Vse()):($se=!1,t(),Vse())}let bge=-1;function Vse(){cancelAnimationFrame(bge),bge=requestAnimationFrame(()=>{const t=vZ.shift();t&&t(),vZ.length?Vse():$se=!0})}const kH={none:null,close:lLe,block:cLe,reposition:uLe},aLe=ei({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in kH}},"VOverlay-scroll-strategies");function sLe(t,e){if(!ou)return;let o;kp(async()=>{o==null||o.stop(),e.isActive.value&&t.scrollStrategy&&(o=uD(),await new Promise(f=>setTimeout(f)),o.active&&o.run(()=>{var f;typeof t.scrollStrategy=="function"?t.scrollStrategy(e,t,o):(f=kH[t.scrollStrategy])==null||f.call(kH,e,t,o)}))}),ag(()=>{o==null||o.stop()})}function lLe(t){function e(o){t.isActive.value=!1}Z2e(t.targetEl.value??t.contentEl.value,e)}function cLe(t,e){var l;const o=(l=t.root.value)==null?void 0:l.offsetParent,f=[...new Set([...dZ(t.targetEl.value,e.contained?o:void 0),...dZ(t.contentEl.value,e.contained?o:void 0)])].filter(n=>!n.classList.contains("v-overlay-scroll-blocked")),P=window.innerWidth-document.documentElement.offsetWidth,d=(n=>Zce(n)&&n)(o||document.documentElement);d&&t.root.value.classList.add("v-overlay--scroll-blocked"),f.forEach((n,c)=>{n.style.setProperty("--v-body-scroll-x",Ma(-n.scrollLeft)),n.style.setProperty("--v-body-scroll-y",Ma(-n.scrollTop)),n!==document.documentElement&&n.style.setProperty("--v-scrollbar-offset",Ma(P)),n.classList.add("v-overlay-scroll-blocked")}),ag(()=>{f.forEach((n,c)=>{const b=parseFloat(n.style.getPropertyValue("--v-body-scroll-x")),i=parseFloat(n.style.getPropertyValue("--v-body-scroll-y")),O=n.style.scrollBehavior;n.style.scrollBehavior="auto",n.style.removeProperty("--v-body-scroll-x"),n.style.removeProperty("--v-body-scroll-y"),n.style.removeProperty("--v-scrollbar-offset"),n.classList.remove("v-overlay-scroll-blocked"),n.scrollLeft=-b,n.scrollTop=-i,n.style.scrollBehavior=O}),d&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function uLe(t,e,o){let f=!1,P=-1,d=-1;function l(n){iLe(()=>{var i,O;const c=performance.now();(O=(i=t.updateLocation).value)==null||O.call(i,n),f=(performance.now()-c)/(1e3/60)>2})}d=(typeof requestIdleCallback>"u"?n=>n():requestIdleCallback)(()=>{o.run(()=>{Z2e(t.targetEl.value??t.contentEl.value,n=>{f?(cancelAnimationFrame(P),P=requestAnimationFrame(()=>{P=requestAnimationFrame(()=>{l(n)})})):l(n)})})}),ag(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(d),cancelAnimationFrame(P)})}function Z2e(t,e){const o=[document,...dZ(t)];o.forEach(f=>{f.addEventListener("scroll",e,{passive:!0})}),ag(()=>{o.forEach(f=>{f.removeEventListener("scroll",e)})})}const Use=Symbol.for("vuetify:v-menu"),q2e=ei({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function W2e(t,e){let o=()=>{};function f(l){o==null||o();const n=Number(l?t.openDelay:t.closeDelay);return new Promise(c=>{o=CPe(n,()=>{e==null||e(l),c(l)})})}function P(){return f(!0)}function d(){return f(!1)}return{clearDelay:o,runOpenDelay:P,runCloseDelay:d}}const fLe=ei({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...q2e()},"VOverlay-activator");function dLe(t,e){let{isActive:o,isTop:f}=e;const P=ph("useActivator"),d=ti();let l=!1,n=!1,c=!0;const b=Un(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),i=Un(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!b.value),{runOpenDelay:O,runCloseDelay:w}=W2e(t,x=>{x===(t.openOnHover&&l||b.value&&n)&&!(t.openOnHover&&o.value&&!f.value)&&(o.value!==x&&(c=!0),o.value=x)}),y=ti(),p={onClick:x=>{x.stopPropagation(),d.value=x.currentTarget||x.target,o.value||(y.value=[x.clientX,x.clientY]),o.value=!o.value},onMouseenter:x=>{var R;(R=x.sourceCapabilities)!=null&&R.firesTouchEvents||(l=!0,d.value=x.currentTarget||x.target,O())},onMouseleave:x=>{l=!1,w()},onFocus:x=>{vM(x.target,":focus-visible")!==!1&&(n=!0,x.stopPropagation(),d.value=x.currentTarget||x.target,O())},onBlur:x=>{n=!1,x.stopPropagation(),w()}},a=Un(()=>{const x={};return i.value&&(x.onClick=p.onClick),t.openOnHover&&(x.onMouseenter=p.onMouseenter,x.onMouseleave=p.onMouseleave),b.value&&(x.onFocus=p.onFocus,x.onBlur=p.onBlur),x}),u=Un(()=>{const x={};if(t.openOnHover&&(x.onMouseenter=()=>{l=!0,O()},x.onMouseleave=()=>{l=!1,w()}),b.value&&(x.onFocusin=()=>{n=!0,O()},x.onFocusout=()=>{n=!1,w()}),t.closeOnContentClick){const R=yl(Use,null);x.onClick=()=>{o.value=!1,R==null||R.closeParents()}}return x}),h=Un(()=>{const x={};return t.openOnHover&&(x.onMouseenter=()=>{c&&(l=!0,c=!1,O())},x.onMouseleave=()=>{l=!1,w()}),x});Ni(f,x=>{x&&(t.openOnHover&&!l&&(!b.value||!n)||b.value&&!n&&(!t.openOnHover||!l))&&(o.value=!1)}),Ni(o,x=>{x||setTimeout(()=>{y.value=void 0})},{flush:"post"});const m=Pse();kp(()=>{m.value&&lc(()=>{d.value=m.el})});const v=Pse(),_=Un(()=>t.target==="cursor"&&y.value?y.value:v.value?v.el:Y2e(t.target,P)||d.value),S=Un(()=>Array.isArray(_.value)?void 0:_.value);let A;return Ni(()=>!!t.activator,x=>{x&&ou?(A=uD(),A.run(()=>{hLe(t,P,{activatorEl:d,activatorEvents:a})})):A&&A.stop()},{flush:"post",immediate:!0}),ag(()=>{A==null||A.stop()}),{activatorEl:d,activatorRef:m,target:_,targetEl:S,targetRef:v,activatorEvents:a,contentEvents:u,scrimEvents:h}}function hLe(t,e,o){let{activatorEl:f,activatorEvents:P}=o;Ni(()=>t.activator,(c,b)=>{if(b&&c!==b){const i=n(b);i&&l(i)}c&&lc(()=>d())},{immediate:!0}),Ni(()=>t.activatorProps,()=>{d()}),ag(()=>{l()});function d(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;c&&EPe(c,Ii(P.value,b))}function l(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;c&&PPe(c,Ii(P.value,b))}function n(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator;const b=Y2e(c,e);return f.value=(b==null?void 0:b.nodeType)===Node.ELEMENT_NODE?b:void 0,f.value}}function Y2e(t,e){var f,P;if(!t)return;let o;if(t==="parent"){let d=(P=(f=e==null?void 0:e.proxy)==null?void 0:f.$el)==null?void 0:P.parentNode;for(;d!=null&&d.hasAttribute("data-no-activator");)d=d.parentNode;o=d}else typeof t=="string"?o=document.querySelector(t):"$el"in t?o=t.$el:o=t;return o}function pLe(){if(!ou)return Ai(!1);const{ssr:t}=xS();if(t){const e=Ai(!1);return sg(()=>{e.value=!0}),e}else return Ai(!0)}const X2e=ei({eager:Boolean},"lazy");function G2e(t,e){const o=Ai(!1),f=Un(()=>o.value||t.eager||e.value);Ni(e,()=>o.value=!0);function P(){t.eager||(o.value=!1)}return{isBooted:o,hasContent:f,onAfterLeave:P}}function zM(){const e=ph("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const xge=Symbol.for("vuetify:stack"),$L=lm([]);function mLe(t,e,o){const f=ph("useStack"),P=!o,d=yl(xge,void 0),l=lm({activeChildren:new Set});gf(xge,l);const n=Ai(+e.value);x1(t,()=>{var O;const i=(O=$L.at(-1))==null?void 0:O[1];n.value=i?i+10:+e.value,P&&$L.push([f.uid,n.value]),d==null||d.activeChildren.add(f.uid),ag(()=>{if(P){const w=As($L).findIndex(y=>y[0]===f.uid);$L.splice(w,1)}d==null||d.activeChildren.delete(f.uid)})});const c=Ai(!0);P&&kp(()=>{var O;const i=((O=$L.at(-1))==null?void 0:O[0])===f.uid;setTimeout(()=>c.value=i)});const b=Un(()=>!l.activeChildren.size);return{globalTop:CM(c),localTop:b,stackStyles:Un(()=>({zIndex:n.value}))}}function gLe(t){return{teleportTarget:Un(()=>{const o=t();if(o===!0||!ou)return;const f=o===!1?document.body:typeof o=="string"?document.querySelector(o):o;if(f==null)return;let P=f.querySelector(":scope > .v-overlay-container");return P||(P=document.createElement("div"),P.className="v-overlay-container",f.appendChild(P)),P})}}function vLe(){return!0}function K2e(t,e,o){if(!t||J2e(t,o)===!1)return!1;const f=Qxe(e);if(typeof ShadowRoot<"u"&&f instanceof ShadowRoot&&f.host===t.target)return!1;const P=(typeof o.value=="object"&&o.value.include||(()=>[]))();return P.push(e),!P.some(d=>d==null?void 0:d.contains(t.target))}function J2e(t,e){return(typeof e.value=="object"&&e.value.closeConditional||vLe)(t)}function yLe(t,e,o){const f=typeof o.value=="function"?o.value:o.value.handler;e._clickOutside.lastMousedownWasOutside&&K2e(t,e,o)&&setTimeout(()=>{J2e(t,o)&&f&&f(t)},0)}function _ge(t,e){const o=Qxe(t);e(document),typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&e(o)}const bLe={mounted(t,e){const o=P=>yLe(P,t,e),f=P=>{t._clickOutside.lastMousedownWasOutside=K2e(P,t,e)};_ge(t,P=>{P.addEventListener("click",o,!0),P.addEventListener("mousedown",f,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:o,onMousedown:f}},unmounted(t,e){t._clickOutside&&(_ge(t,o=>{var d;if(!o||!((d=t._clickOutside)!=null&&d[e.instance.$.uid]))return;const{onClick:f,onMousedown:P}=t._clickOutside[e.instance.$.uid];o.removeEventListener("click",f,!0),o.removeEventListener("mousedown",P,!0)}),delete t._clickOutside[e.instance.$.uid])}};function xLe(t){const{modelValue:e,color:o,...f}=t;return Ht(h_,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&&Ht("div",Ii({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},f),null)]})}const MD=ei({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...fLe(),...ys(),...O_(),...X2e(),...eLe(),...aLe(),...vf(),...ST()},"VOverlay"),hS=Ji()({name:"VOverlay",directives:{ClickOutside:bLe},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...MD()},emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,e){let{slots:o,attrs:f,emit:P}=e;const d=bl(t,"modelValue"),l=Un({get:()=>d.value,set:K=>{K&&t.disabled||(d.value=K)}}),{themeClasses:n}=ad(t),{rtlClasses:c,isRtl:b}=qg(),{hasContent:i,onAfterLeave:O}=G2e(t,l),w=ig(Un(()=>typeof t.scrim=="string"?t.scrim:null)),{globalTop:y,localTop:p,stackStyles:a}=mLe(l,Oi(t,"zIndex"),t._disableGlobalStack),{activatorEl:u,activatorRef:h,target:m,targetEl:v,targetRef:_,activatorEvents:S,contentEvents:A,scrimEvents:x}=dLe(t,{isActive:l,isTop:p}),{teleportTarget:R}=gLe(()=>{var q;const K=t.attach||t.contained;if(K)return K;const oe=(q=u==null?void 0:u.value)==null?void 0:q.getRootNode();return oe instanceof ShadowRoot?oe:!1}),{dimensionStyles:M}=S_(t),T=pLe(),{scopeId:E}=zM();Ni(()=>t.disabled,K=>{K&&(l.value=!1)});const C=ti(),L=ti(),D=ti(),{contentStyles:k,updateLocation:I}=tLe(t,{isRtl:b,contentEl:D,target:m,isActive:l});sLe(t,{root:C,contentEl:D,targetEl:v,isActive:l,updateLocation:I});function z(K){P("click:outside",K),t.persistent?X():l.value=!1}function $(K){return l.value&&y.value&&(!t.scrim||K.target===L.value)}ou&&Ni(l,K=>{K?window.addEventListener("keydown",Q):window.removeEventListener("keydown",Q)},{immediate:!0}),dm(()=>{ou&&window.removeEventListener("keydown",Q)});function Q(K){var oe,q;K.key==="Escape"&&y.value&&(t.persistent?X():(l.value=!1,(oe=D.value)!=null&&oe.contains(document.activeElement)&&((q=u.value)==null||q.focus())))}const j=m2e();x1(()=>t.closeOnBack,()=>{X9e(j,K=>{y.value&&l.value?(K(!1),t.persistent?X():l.value=!1):K()})});const U=ti();Ni(()=>l.value&&(t.absolute||t.contained)&&R.value==null,K=>{if(K){const oe=Hxe(C.value);oe&&oe!==document.scrollingElement&&(U.value=oe.scrollTop)}});function X(){t.noClickAnimation||D.value&&HA(D.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:fZ})}function te(){P("afterEnter")}function W(){O(),P("afterLeave")}return ka(()=>{var K;return Ht(ma,null,[(K=o.activator)==null?void 0:K.call(o,{isActive:l.value,targetRef:_,props:Ii({ref:h},S.value,t.activatorProps)}),T.value&&i.value&&Ht(WSe,{disabled:!R.value,to:R.value},{default:()=>[Ht("div",Ii({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":l.value,"v-overlay--contained":t.contained},n.value,c.value,t.class],style:[a.value,{"--v-overlay-opacity":t.opacity,top:Ma(U.value)},t.style],ref:C},E,f),[Ht(xLe,Ii({color:w,modelValue:l.value&&!!t.scrim,ref:L},x.value),null),Ht(G4,{appear:!0,persisted:!0,transition:t.transition,target:m.value,onAfterEnter:te,onAfterLeave:W},{default:()=>{var oe;return[Tp(Ht("div",Ii({ref:D,class:["v-overlay__content",t.contentClass],style:[M.value,k.value]},A.value,t.contentProps),[(oe=o.default)==null?void 0:oe.call(o,{isActive:l})]),[[mS,l.value],[y_("click-outside"),{handler:z,closeConditional:$,include:()=>[u.value]}]])]}})])]})])}),{activatorEl:u,scrimEl:L,target:m,animateClick:X,contentEl:D,globalTop:y,localTop:p,updateLocation:I}}}),Hie=Symbol("Forwarded refs");function Zie(t,e){let o=t;for(;o;){const f=Reflect.getOwnPropertyDescriptor(o,e);if(f)return f;o=Object.getPrototypeOf(o)}}function T_(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f!0},setup(t,e){let{slots:o}=e;const f=bl(t,"modelValue"),{scopeId:P}=zM(),d=O1(),l=Un(()=>t.id||`v-menu-${d}`),n=ti(),c=yl(Use,null),b=Ai(0);gf(Use,{register(){++b.value},unregister(){--b.value},closeParents(a){setTimeout(()=>{var u;!b.value&&!t.persistent&&(a==null||(u=n.value)!=null&&u.contentEl&&!APe(a,n.value.contentEl))&&(f.value=!1,c==null||c.closeParents())},40)}});async function i(a){var m,v,_;const u=a.relatedTarget,h=a.target;await lc(),f.value&&u!==h&&((m=n.value)!=null&&m.contentEl)&&((v=n.value)!=null&&v.globalTop)&&![document,n.value.contentEl].includes(h)&&!n.value.contentEl.contains(h)&&((_=WI(n.value.contentEl)[0])==null||_.focus())}Ni(f,a=>{a?(c==null||c.register(),document.addEventListener("focusin",i,{once:!0})):(c==null||c.unregister(),document.removeEventListener("focusin",i))});function O(a){c==null||c.closeParents(a)}function w(a){var u,h,m;if(!t.disabled)if(a.key==="Tab"||a.key==="Enter"&&!t.closeOnContentClick){if(a.key==="Enter"&&(a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLInputElement&&a.target.closest("form")))return;a.key==="Enter"&&a.preventDefault(),Ixe(WI((u=n.value)==null?void 0:u.contentEl,!1),a.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(f.value=!1,(m=(h=n.value)==null?void 0:h.activatorEl)==null||m.focus())}else["Enter"," "].includes(a.key)&&t.closeOnContentClick&&(f.value=!1,c==null||c.closeParents())}function y(a){var h;if(t.disabled)return;const u=(h=n.value)==null?void 0:h.contentEl;u&&f.value?a.key==="ArrowDown"?(a.preventDefault(),cZ(u,"next")):a.key==="ArrowUp"&&(a.preventDefault(),cZ(u,"prev")):["ArrowDown","ArrowUp"].includes(a.key)&&(f.value=!0,a.preventDefault(),setTimeout(()=>setTimeout(()=>y(a))))}const p=Un(()=>Ii({"aria-haspopup":"menu","aria-expanded":String(f.value),"aria-owns":l.value,onKeydown:y},t.activatorProps));return ka(()=>{const a=hS.filterProps(t);return Ht(hS,Ii({ref:n,id:l.value,class:["v-menu",t.class],style:t.style},a,{modelValue:f.value,"onUpdate:modelValue":u=>f.value=u,absolute:!0,activatorProps:p.value,"onClick:outside":O,onKeydown:w},P),{activator:o.activator,default:function(){for(var u=arguments.length,h=new Array(u),m=0;m{var v;return[(v=o.default)==null?void 0:v.call(o,...h)]}})}})}),T_({id:l,ΨopenChildren:b},n)}});const wLe=ei({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...ys(),...ST({transition:{component:e2e}})},"VCounter"),e_e=Ji()({name:"VCounter",functional:!0,props:wLe(),setup(t,e){let{slots:o}=e;const f=Un(()=>t.max?`${t.value} / ${t.max}`:String(t.value));return ka(()=>Ht(G4,{transition:t.transition},{default:()=>[Tp(Ht("div",{class:["v-counter",{"text-error":t.max&&!t.disabled&&parseFloat(t.value)>parseFloat(t.max)},t.class],style:t.style},[o.default?o.default({counter:f.value,max:t.max,value:t.value}):f.value]),[[mS,t.active]])]})),{}}});const OLe=ei({floating:Boolean,...ys()},"VFieldLabel"),JQ=Ji()({name:"VFieldLabel",props:OLe(),setup(t,e){let{slots:o}=e;return ka(()=>Ht(kq,{class:["v-field-label",{"v-field-label--floating":t.floating},t.class],style:t.style,"aria-hidden":t.floating||void 0},o)),{}}}),SLe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],aue=ei({appendInnerIcon:ul,bgColor:String,clearable:Boolean,clearIcon:{type:ul,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:ul,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:t=>SLe.includes(t)},"onClick:clear":og(),"onClick:appendInner":og(),"onClick:prependInner":og(),...ys(),...bq(),...pm(),...vf()},"VField"),sue=Ji()({name:"VField",inheritAttrs:!1,props:{id:String,...Tq(),...aue()},emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{themeClasses:d}=ad(t),{loaderClasses:l}=TD(t),{focusClasses:n,isFocused:c,focus:b,blur:i}=DM(t),{InputIcon:O}=T2e(t),{roundedClasses:w}=lg(t),{rtlClasses:y}=qg(),p=Un(()=>t.dirty||t.active),a=Un(()=>!t.singleLine&&!!(t.label||P.label)),u=O1(),h=Un(()=>t.id||`input-${u}`),m=Un(()=>`${h.value}-messages`),v=ti(),_=ti(),S=ti(),A=Un(()=>["plain","underlined"].includes(t.variant)),{backgroundColorClasses:x,backgroundColorStyles:R}=ig(Oi(t,"bgColor")),{textColorClasses:M,textColorStyles:T}=Uv(Un(()=>t.error||t.disabled?void 0:p.value&&c.value?t.color:t.baseColor));Ni(p,D=>{if(a.value){const k=v.value.$el,I=_.value.$el;requestAnimationFrame(()=>{const z=jce(k),$=I.getBoundingClientRect(),Q=$.x-z.x,j=$.y-z.y-(z.height/2-$.height/2),U=$.width/.75,X=Math.abs(U-z.width)>1?{maxWidth:Ma(U)}:void 0,te=getComputedStyle(k),W=getComputedStyle(I),K=parseFloat(te.transitionDuration)*1e3||150,oe=parseFloat(W.getPropertyValue("--v-field-label-scale")),q=W.getPropertyValue("color");k.style.visibility="visible",I.style.visibility="hidden",HA(k,{transform:`translate(${Q}px, ${j}px) scale(${oe})`,color:q,...X},{duration:K,easing:fZ,direction:D?"normal":"reverse"}).finished.then(()=>{k.style.removeProperty("visibility"),I.style.removeProperty("visibility")})})}},{flush:"post"});const E=Un(()=>({isActive:p,isFocused:c,controlRef:S,blur:i,focus:b}));function C(D){D.target!==document.activeElement&&D.preventDefault()}function L(D){var k;D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),D.stopPropagation(),(k=t["onClick:clear"])==null||k.call(t,new MouseEvent("click")))}return ka(()=>{var Q,j,U;const D=t.variant==="outlined",k=!!(P["prepend-inner"]||t.prependInnerIcon),I=!!(t.clearable||P.clear),z=!!(P["append-inner"]||t.appendInnerIcon||I),$=()=>P.label?P.label({...E.value,label:t.label,props:{for:h.value}}):t.label;return Ht("div",Ii({class:["v-field",{"v-field--active":p.value,"v-field--appended":z,"v-field--center-affix":t.centerAffix??!A.value,"v-field--disabled":t.disabled,"v-field--dirty":t.dirty,"v-field--error":t.error,"v-field--flat":t.flat,"v-field--has-background":!!t.bgColor,"v-field--persistent-clear":t.persistentClear,"v-field--prepended":k,"v-field--reverse":t.reverse,"v-field--single-line":t.singleLine,"v-field--no-label":!$(),[`v-field--variant-${t.variant}`]:!0},d.value,x.value,n.value,l.value,w.value,y.value,t.class],style:[R.value,t.style],onClick:C},o),[Ht("div",{class:"v-field__overlay"},null),Ht(xq,{name:"v-field",active:!!t.loading,color:t.error?"error":typeof t.loading=="string"?t.loading:t.color},{default:P.loader}),k&&Ht("div",{key:"prepend",class:"v-field__prepend-inner"},[t.prependInnerIcon&&Ht(O,{key:"prepend-icon",name:"prependInner"},null),(Q=P["prepend-inner"])==null?void 0:Q.call(P,E.value)]),Ht("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(t.variant)&&a.value&&Ht(JQ,{key:"floating-label",ref:_,class:[M.value],floating:!0,for:h.value,style:T.value},{default:()=>[$()]}),Ht(JQ,{ref:v,for:h.value},{default:()=>[$()]}),(j=P.default)==null?void 0:j.call(P,{...E.value,props:{id:h.value,class:"v-field__input","aria-describedby":m.value},focus:b,blur:i})]),I&&Ht(t2e,{key:"clear"},{default:()=>[Tp(Ht("div",{class:"v-field__clearable",onMousedown:X=>{X.preventDefault(),X.stopPropagation()}},[Ht(du,{defaults:{VIcon:{icon:t.clearIcon}}},{default:()=>[P.clear?P.clear({...E.value,props:{onKeydown:L,onFocus:b,onBlur:i,onClick:t["onClick:clear"]}}):Ht(O,{name:"clear",onKeydown:L,onFocus:b,onBlur:i},null)]})]),[[mS,t.dirty]])]}),z&&Ht("div",{key:"append",class:"v-field__append-inner"},[(U=P["append-inner"])==null?void 0:U.call(P,E.value),t.appendInnerIcon&&Ht(O,{key:"append-icon",name:"appendInner"},null)]),Ht("div",{class:["v-field__outline",M.value],style:T.value},[D&&Ht(ma,null,[Ht("div",{class:"v-field__outline__start"},null),a.value&&Ht("div",{class:"v-field__outline__notch"},[Ht(JQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})]),Ht("div",{class:"v-field__outline__end"},null)]),A.value&&a.value&&Ht(JQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})])])}),{controlRef:S}}});function t_e(t){const e=Object.keys(sue.props).filter(o=>!uq(o)&&o!=="class"&&o!=="style");return Vce(t,e)}const kLe=["color","file","time","date","datetime-local","week","month"],Mq=ei({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...BM(),...aue()},"VTextField"),um=Ji()({name:"VTextField",directives:{Intersect:Kce},inheritAttrs:!1,props:Mq(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const d=bl(t,"modelValue"),{isFocused:l,focus:n,blur:c}=DM(t),b=Un(()=>typeof t.counterValue=="function"?t.counterValue(d.value):typeof t.counterValue=="number"?t.counterValue:(d.value??"").toString().length),i=Un(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),O=Un(()=>["plain","underlined"].includes(t.variant));function w(A,x){var R,M;!t.autofocus||!A||(M=(R=x[0].target)==null?void 0:R.focus)==null||M.call(R)}const y=ti(),p=ti(),a=ti(),u=Un(()=>kLe.includes(t.type)||t.persistentPlaceholder||l.value||t.active);function h(){var A;a.value!==document.activeElement&&((A=a.value)==null||A.focus()),l.value||n()}function m(A){f("mousedown:control",A),A.target!==a.value&&(h(),A.preventDefault())}function v(A){h(),f("click:control",A)}function _(A){A.stopPropagation(),h(),lc(()=>{d.value=null,Lxe(t["onClick:clear"],A)})}function S(A){var R;const x=A.target;if(d.value=x.value,(R=t.modelModifiers)!=null&&R.trim&&["text","search","password","tel","url"].includes(t.type)){const M=[x.selectionStart,x.selectionEnd];lc(()=>{x.selectionStart=M[0],x.selectionEnd=M[1]})}}return ka(()=>{const A=!!(P.counter||t.counter!==!1&&t.counter!=null),x=!!(A||P.details),[R,M]=fq(o),{modelValue:T,...E}=p_.filterProps(t),C=t_e(t);return Ht(p_,Ii({ref:y,modelValue:d.value,"onUpdate:modelValue":L=>d.value=L,class:["v-text-field",{"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-input--plain-underlined":O.value},t.class],style:t.style},R,E,{centerAffix:!O.value,focused:l.value}),{...P,default:L=>{let{id:D,isDisabled:k,isDirty:I,isReadonly:z,isValid:$}=L;return Ht(sue,Ii({ref:p,onMousedown:m,onClick:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"],role:t.role},C,{id:D.value,active:u.value||I.value,dirty:I.value||t.dirty,disabled:k.value,focused:l.value,error:$.value===!1}),{...P,default:Q=>{let{props:{class:j,...U}}=Q;const X=Tp(Ht("input",Ii({ref:a,value:d.value,onInput:S,autofocus:t.autofocus,readonly:z.value,disabled:k.value,name:t.name,placeholder:t.placeholder,size:1,type:t.type,onFocus:h,onBlur:c},U,M),null),[[y_("intersect"),{handler:w},null,{once:!0}]]);return Ht(ma,null,[t.prefix&&Ht("span",{class:"v-text-field__prefix"},[Ht("span",{class:"v-text-field__prefix__text"},[t.prefix])]),P.default?Ht("div",{class:j,"data-no-activator":""},[P.default(),X]):TO(X,{class:j}),t.suffix&&Ht("span",{class:"v-text-field__suffix"},[Ht("span",{class:"v-text-field__suffix__text"},[t.suffix])])])}})},details:x?L=>{var D;return Ht(ma,null,[(D=P.details)==null?void 0:D.call(P,L),A&&Ht(ma,null,[Ht("span",null,null),Ht(e_e,{active:t.persistentCounter||l.value,value:b.value,max:i.value,disabled:t.disabled},P.counter)])])}:void 0})}),T_({},y,p,a)}});const TLe=ei({renderless:Boolean,...ys()},"VVirtualScrollItem"),CLe=Ji()({name:"VVirtualScrollItem",inheritAttrs:!1,props:TLe(),emits:{"update:height":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{resizeRef:d,contentRect:l}=dS(void 0,"border");Ni(()=>{var n;return(n=l.value)==null?void 0:n.height},n=>{n!=null&&f("update:height",n)}),ka(()=>{var n,c;return t.renderless?Ht(ma,null,[(n=P.default)==null?void 0:n.call(P,{itemRef:d})]):Ht("div",Ii({ref:d,class:["v-virtual-scroll__item",t.class],style:t.style},o),[(c=P.default)==null?void 0:c.call(P)])})}}),ALe=-1,MLe=1,qie=100,ELe=ei({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function PLe(t,e){const o=xS(),f=Ai(0);kp(()=>{f.value=parseFloat(t.itemHeight||0)});const P=Ai(0),d=Ai(Math.ceil((parseInt(t.height)||o.height.value)/(f.value||16))||1),l=Ai(0),n=Ai(0),c=ti(),b=ti();let i=0;const{resizeRef:O,contentRect:w}=dS();kp(()=>{O.value=c.value});const y=Un(()=>{var Q;return c.value===document.documentElement?o.height.value:((Q=w.value)==null?void 0:Q.height)||parseInt(t.height)||0}),p=Un(()=>!!(c.value&&b.value&&y.value&&f.value));let a=Array.from({length:e.value.length}),u=Array.from({length:e.value.length});const h=Ai(0);let m=-1;function v(Q){return a[Q]||f.value}const _=SPe(()=>{const Q=performance.now();u[0]=0;const j=e.value.length;for(let U=1;U<=j-1;U++)u[U]=(u[U-1]||0)+v(U-1);h.value=Math.max(h.value,performance.now()-Q)},h),S=Ni(p,Q=>{Q&&(S(),i=b.value.offsetTop,_.immediate(),k(),~m&&lc(()=>{ou&&window.requestAnimationFrame(()=>{z(m),m=-1})}))});ag(()=>{_.clear()});function A(Q,j){const U=a[Q],X=f.value;f.value=X?Math.min(f.value,j):j,(U!==j||X!==f.value)&&(a[Q]=j,_())}function x(Q){return Q=rg(Q,0,e.value.length-1),u[Q]||0}function R(Q){return RLe(u,Q)}let M=0,T=0,E=0;Ni(y,(Q,j)=>{j&&(k(),Q{T=0,k()}))});function C(){if(!c.value||!b.value)return;const Q=c.value.scrollTop,j=performance.now();j-E>500?(T=Math.sign(Q-M),i=b.value.offsetTop):T=Q-M,M=Q,E=j,k()}function L(){!c.value||!b.value||(T=0,E=0,k())}let D=-1;function k(){cancelAnimationFrame(D),D=requestAnimationFrame(I)}function I(){if(!c.value||!y.value)return;const Q=M-i,j=Math.sign(T),U=Math.max(0,Q-qie),X=rg(R(U),0,e.value.length),te=Q+y.value+qie,W=rg(R(te)+1,X+1,e.value.length);if((j!==ALe||Xd.value)){const K=x(P.value)-x(X),oe=x(W)-x(d.value);Math.max(K,oe)>qie?(P.value=X,d.value=W):(X<=0&&(P.value=X),W>=e.value.length&&(d.value=W))}l.value=x(P.value),n.value=x(e.value.length)-x(d.value)}function z(Q){const j=x(Q);!c.value||Q&&!j?m=Q:c.value.scrollTop=j}const $=Un(()=>e.value.slice(P.value,d.value).map((Q,j)=>({raw:Q,index:j+P.value})));return Ni(e,()=>{a=Array.from({length:e.value.length}),u=Array.from({length:e.value.length}),_.immediate(),k()},{deep:!0}),{containerRef:c,markerRef:b,computedItems:$,paddingTop:l,paddingBottom:n,scrollToIndex:z,handleScroll:C,handleScrollend:L,handleItemResize:A}}function RLe(t,e){let o=t.length-1,f=0,P=0,d=null,l=-1;if(t[o]>1,d=t[P],d>e)o=P-1;else if(d[]},renderless:Boolean,...ELe(),...ys(),...O_()},"VVirtualScroll"),lue=Ji()({name:"VVirtualScroll",props:LLe(),setup(t,e){let{slots:o}=e;const f=ph("VVirtualScroll"),{dimensionStyles:P}=S_(t),{containerRef:d,markerRef:l,handleScroll:n,handleScrollend:c,handleItemResize:b,scrollToIndex:i,paddingTop:O,paddingBottom:w,computedItems:y}=PLe(t,Oi(t,"items"));return x1(()=>t.renderless,()=>{function p(){var h,m;const u=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";d.value===document.documentElement?(document[u]("scroll",n,{passive:!0}),document[u]("scrollend",c)):((h=d.value)==null||h[u]("scroll",n,{passive:!0}),(m=d.value)==null||m[u]("scrollend",c))}sg(()=>{d.value=Hxe(f.vnode.el,!0),p(!0)}),ag(p)}),ka(()=>{const p=y.value.map(a=>Ht(CLe,{key:a.index,renderless:t.renderless,"onUpdate:height":u=>b(a.index,u)},{default:u=>{var h;return(h=o.default)==null?void 0:h.call(o,{item:a.raw,index:a.index,...u})}}));return t.renderless?Ht(ma,null,[Ht("div",{ref:l,class:"v-virtual-scroll__spacer",style:{paddingTop:Ma(O.value)}},null),p,Ht("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Ma(w.value)}},null)]):Ht("div",{ref:d,class:["v-virtual-scroll",t.class],onScrollPassive:n,onScrollend:c,style:[P.value,t.style]},[Ht("div",{ref:l,class:"v-virtual-scroll__container",style:{paddingTop:Ma(O.value),paddingBottom:Ma(w.value)}},[p])])}),{scrollToIndex:i}}});function cue(t,e){const o=Ai(!1);let f;function P(n){cancelAnimationFrame(f),o.value=!0,f=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>{o.value=!1})})}async function d(){await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>{if(o.value){const c=Ni(o,()=>{c(),n()})}else n()})}async function l(n){var i,O;if(n.key==="Tab"&&((i=e.value)==null||i.focus()),!["PageDown","PageUp","Home","End"].includes(n.key))return;const c=(O=t.value)==null?void 0:O.$el;if(!c)return;(n.key==="Home"||n.key==="End")&&c.scrollTo({top:n.key==="Home"?0:c.scrollHeight,behavior:"smooth"}),await d();const b=c.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(n.key==="PageDown"||n.key==="Home"){const w=c.getBoundingClientRect().top;for(const y of b)if(y.getBoundingClientRect().top>=w){y.focus();break}}else{const w=c.getBoundingClientRect().bottom;for(const y of[...b].reverse())if(y.getBoundingClientRect().bottom<=w){y.focus();break}}}return{onListScroll:P,onListKeydown:l}}const uue=ei({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:ul,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...U2e({itemChildren:!1})},"Select"),ILe=ei({...uue(),...__(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ST({transition:{component:Yce}})},"VSelect"),ED=Ji()({name:"VSelect",props:ILe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=sb(),P=ti(),d=ti(),l=ti(),n=bl(t,"menu"),c=Un({get:()=>n.value,set:$=>{var Q;n.value&&!$&&((Q=d.value)!=null&&Q.ΨopenChildren)||(n.value=$)}}),{items:b,transformIn:i,transformOut:O}=iue(t),w=bl(t,"modelValue",[],$=>i($===null?[null]:fm($)),$=>{const Q=O($);return t.multiple?Q:Q[0]??null}),y=Un(()=>typeof t.counterValue=="function"?t.counterValue(w.value):typeof t.counterValue=="number"?t.counterValue:w.value.length),p=Cq(),a=Un(()=>w.value.map($=>$.value)),u=Ai(!1),h=Un(()=>c.value?t.closeText:t.openText);let m="",v;const _=Un(()=>t.hideSelected?b.value.filter($=>!w.value.some(Q=>t.valueComparator(Q,$))):b.value),S=Un(()=>t.hideNoData&&!_.value.length||t.readonly||(p==null?void 0:p.isReadonly.value)),A=Un(()=>{var $;return{...t.menuProps,activatorProps:{...(($=t.menuProps)==null?void 0:$.activatorProps)||{},"aria-haspopup":"listbox"}}}),x=ti(),{onListScroll:R,onListKeydown:M}=cue(x,P);function T($){t.openOnClear&&(c.value=!0)}function E(){S.value||(c.value=!c.value)}function C($){var te,W;if(!$.key||t.readonly||p!=null&&p.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes($.key)&&$.preventDefault(),["Enter","ArrowDown"," "].includes($.key)&&(c.value=!0),["Escape","Tab"].includes($.key)&&(c.value=!1),$.key==="Home"?(te=x.value)==null||te.focus("first"):$.key==="End"&&((W=x.value)==null||W.focus("last"));const Q=1e3;function j(K){const oe=K.key.length===1,q=!K.ctrlKey&&!K.metaKey&&!K.altKey;return oe&&q}if(t.multiple||!j($))return;const U=performance.now();U-v>Q&&(m=""),m+=$.key.toLowerCase(),v=U;const X=b.value.find(K=>K.title.toLowerCase().startsWith(m));if(X!==void 0){w.value=[X];const K=_.value.indexOf(X);ou&&window.requestAnimationFrame(()=>{var oe;K>=0&&((oe=l.value)==null||oe.scrollToIndex(K))})}}function L($){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!$.props.disabled)if(t.multiple){const j=w.value.findIndex(X=>t.valueComparator(X.value,$.value)),U=Q??!~j;if(~j){const X=U?[...w.value,$]:[...w.value];X.splice(j,1),w.value=X}else U&&(w.value=[...w.value,$])}else{const j=Q!==!1;w.value=j?[$]:[],lc(()=>{c.value=!1})}}function D($){var Q;(Q=x.value)!=null&&Q.$el.contains($.relatedTarget)||(c.value=!1)}function k(){var $;u.value&&(($=P.value)==null||$.focus())}function I($){u.value=!0}function z($){if($==null)w.value=[];else if(vM(P.value,":autofill")||vM(P.value,":-webkit-autofill")){const Q=b.value.find(j=>j.title===$);Q&&L(Q)}else P.value&&(P.value.value="")}return Ni(c,()=>{if(!t.hideSelected&&c.value&&w.value.length){const $=_.value.findIndex(Q=>w.value.some(j=>t.valueComparator(j.value,Q.value)));ou&&window.requestAnimationFrame(()=>{var Q;$>=0&&((Q=l.value)==null||Q.scrollToIndex($))})}}),Ni(()=>t.items,($,Q)=>{c.value||u.value&&!Q.length&&$.length&&(c.value=!0)}),ka(()=>{const $=!!(t.chips||o.chip),Q=!!(!t.hideNoData||_.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),j=w.value.length>0,U=um.filterProps(t),X=j||!u.value&&t.label&&!t.persistentPlaceholder?void 0:t.placeholder;return Ht(um,Ii({ref:P},U,{modelValue:w.value.map(te=>te.props.value).join(", "),"onUpdate:modelValue":z,focused:u.value,"onUpdate:focused":te=>u.value=te,validationValue:w.externalValue,counterValue:y.value,dirty:j,class:["v-select",{"v-select--active-menu":c.value,"v-select--chips":!!t.chips,[`v-select--${t.multiple?"multiple":"single"}`]:!0,"v-select--selected":w.value.length,"v-select--selection-slot":!!o.selection},t.class],style:t.style,inputmode:"none",placeholder:X,"onClick:clear":T,"onMousedown:control":E,onBlur:D,onKeydown:C,"aria-label":f(h.value),title:f(h.value)}),{...o,default:()=>Ht(ma,null,[Ht(pS,Ii({ref:d,modelValue:c.value,"onUpdate:modelValue":te=>c.value=te,activator:"parent",contentClass:"v-select__content",disabled:S.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:k},A.value),{default:()=>[Q&&Ht(m_,Ii({ref:x,selected:a.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:te=>te.preventDefault(),onKeydown:M,onFocusin:I,onScrollPassive:R,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var te,W,K;return[(te=o["prepend-item"])==null?void 0:te.call(o),!_.value.length&&!t.hideNoData&&(((W=o["no-data"])==null?void 0:W.call(o))??Ht(zf,{title:f(t.noDataText)},null)),Ht(lue,{ref:l,renderless:!0,items:_.value},{default:oe=>{var he;let{item:q,index:Y,itemRef:ee}=oe;const me=Ii(q.props,{ref:ee,key:Y,onClick:()=>L(q,null)});return((he=o.item)==null?void 0:he.call(o,{item:q,index:Y,props:me}))??Ht(zf,Ii(me,{role:"option"}),{prepend:se=>{let{isSelected:ae}=se;return Ht(ma,null,[t.multiple&&!t.hideSelected?Ht(IM,{key:q.value,modelValue:ae,ripple:!1,tabindex:"-1"},null):void 0,q.props.prependAvatar&&Ht(PO,{image:q.props.prependAvatar},null),q.props.prependIcon&&Ht(Al,{icon:q.props.prependIcon},null)])}})}}),(K=o["append-item"])==null?void 0:K.call(o)]}})]}),w.value.map((te,W)=>{function K(ee){ee.stopPropagation(),ee.preventDefault(),L(te,!1)}const oe={"onClick:close":K,onKeydown(ee){ee.key!=="Enter"&&ee.key!==" "||(ee.preventDefault(),ee.stopPropagation(),K(ee))},onMousedown(ee){ee.preventDefault(),ee.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},q=$?!!o.chip:!!o.selection,Y=q?dq($?o.chip({item:te,index:W,props:oe}):o.selection({item:te,index:W})):void 0;if(!(q&&!Y))return Ht("div",{key:te.value,class:"v-select__selection"},[$?o.chip?Ht(du,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:te.title}}},{default:()=>[Y]}):Ht(AD,Ii({key:"chip",closable:t.closableChips,size:"small",text:te.title,disabled:te.props.disabled},oe),null):Y??Ht("span",{class:"v-select__selection-text"},[te.title,t.multiple&&Wt==null||e==null?-1:t.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),fue=ei({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function BLe(t,e,o){var n;const f=[],P=(o==null?void 0:o.default)??DLe,d=o!=null&&o.filterKeys?fm(o.filterKeys):!1,l=Object.keys((o==null?void 0:o.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return f;e:for(let c=0;c0)&&!(o!=null&&o.noFilter)){if(typeof b=="object"){const u=d||Object.keys(i);for(const h of u){const m=y1(i,h),v=(n=o==null?void 0:o.customKeyFilter)==null?void 0:n[h];if(y=v?v(m,e,b):P(m,e,b),y!==-1&&y!==!1)v?O[h]=y:w[h]=y;else if((o==null?void 0:o.filterMode)==="every")continue e}}else y=P(b,e,b),y!==-1&&y!==!1&&(w.title=y);const p=Object.keys(w).length,a=Object.keys(O).length;if(!p&&!a||(o==null?void 0:o.filterMode)==="union"&&a!==l&&!p||(o==null?void 0:o.filterMode)==="intersection"&&(a!==l||!p))continue}f.push({index:c,matches:{...w,...O}})}return f}function due(t,e,o,f){const P=ti([]),d=ti(new Map),l=Un(()=>f!=null&&f.transform?wa(e).map(c=>[c,f.transform(c)]):wa(e));kp(()=>{const c=typeof o=="function"?o():wa(o),b=typeof c!="string"&&typeof c!="number"?"":String(c),i=BLe(l.value,b,{customKeyFilter:{...t.customKeyFilter,...wa(f==null?void 0:f.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),O=wa(e),w=[],y=new Map;i.forEach(p=>{let{index:a,matches:u}=p;const h=O[a];w.push(h),y.set(h.value,u)}),P.value=w,d.value=y});function n(c){return d.value.get(c.value)}return{filteredItems:P,filteredMatches:d,getMatches:n}}function zLe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?Ht(ma,null,[Ht("span",{class:"v-autocomplete__unmask"},[t.substr(0,e)]),Ht("span",{class:"v-autocomplete__mask"},[t.substr(e,o)]),Ht("span",{class:"v-autocomplete__unmask"},[t.substr(e+o)])]):t}const FLe=ei({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...fue({filterKeys:["title"]}),...uue(),...__(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ST({transition:!1})},"VAutocomplete"),hue=Ji()({name:"VAutocomplete",props:FLe(),emits:{"update:focused":t=>!0,"update:search":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=sb(),P=ti(),d=Ai(!1),l=Ai(!0),n=Ai(!1),c=ti(),b=ti(),i=bl(t,"menu"),O=Un({get:()=>i.value,set:me=>{var he;i.value&&!me&&((he=c.value)!=null&&he.ΨopenChildren)||(i.value=me)}}),w=Ai(-1),y=Un(()=>{var me;return(me=P.value)==null?void 0:me.color}),p=Un(()=>O.value?t.closeText:t.openText),{items:a,transformIn:u,transformOut:h}=iue(t),{textColorClasses:m,textColorStyles:v}=Uv(y),_=bl(t,"search",""),S=bl(t,"modelValue",[],me=>u(me===null?[null]:fm(me)),me=>{const he=h(me);return t.multiple?he:he[0]??null}),A=Un(()=>typeof t.counterValue=="function"?t.counterValue(S.value):typeof t.counterValue=="number"?t.counterValue:S.value.length),x=Cq(),{filteredItems:R,getMatches:M}=due(t,a,()=>l.value?"":_.value),T=Un(()=>t.hideSelected?R.value.filter(me=>!S.value.some(he=>he.value===me.value)):R.value),E=Un(()=>!!(t.chips||o.chip)),C=Un(()=>E.value||!!o.selection),L=Un(()=>S.value.map(me=>me.props.value)),D=Un(()=>{var he;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&_.value===((he=T.value[0])==null?void 0:he.title))&&T.value.length>0&&!l.value&&!n.value}),k=Un(()=>t.hideNoData&&!T.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),I=ti(),{onListScroll:z,onListKeydown:$}=cue(I,P);function Q(me){t.openOnClear&&(O.value=!0),_.value=""}function j(){k.value||(O.value=!0)}function U(me){k.value||(d.value&&(me.preventDefault(),me.stopPropagation()),O.value=!O.value)}function X(me){var ae,ce,de;if(t.readonly||x!=null&&x.isReadonly.value)return;const he=P.value.selectionStart,se=S.value.length;if((w.value>-1||["Enter","ArrowDown","ArrowUp"].includes(me.key))&&me.preventDefault(),["Enter","ArrowDown"].includes(me.key)&&(O.value=!0),["Escape"].includes(me.key)&&(O.value=!1),D.value&&["Enter","Tab"].includes(me.key)&&!S.value.some(ve=>{let{value:ye}=ve;return ye===T.value[0].value})&&ee(T.value[0]),me.key==="ArrowDown"&&D.value&&((ae=I.value)==null||ae.focus("next")),["Backspace","Delete"].includes(me.key)){if(!t.multiple&&C.value&&S.value.length>0&&!_.value)return ee(S.value[0],!1);if(~w.value){const ve=w.value;ee(S.value[w.value],!1),w.value=ve>=se-1?se-2:ve}else me.key==="Backspace"&&!_.value&&(w.value=se-1)}if(t.multiple){if(me.key==="ArrowLeft"){if(w.value<0&&he>0)return;const ve=w.value>-1?w.value-1:se-1;S.value[ve]?w.value=ve:(w.value=-1,P.value.setSelectionRange((ce=_.value)==null?void 0:ce.length,(de=_.value)==null?void 0:de.length))}if(me.key==="ArrowRight"){if(w.value<0)return;const ve=w.value+1;S.value[ve]?w.value=ve:(w.value=-1,P.value.setSelectionRange(0,0))}}}function te(me){if(vM(P.value,":autofill")||vM(P.value,":-webkit-autofill")){const he=a.value.find(se=>se.title===me.target.value);he&&ee(he)}}function W(){var me;d.value&&(l.value=!0,(me=P.value)==null||me.focus())}function K(me){d.value=!0,setTimeout(()=>{n.value=!0})}function oe(me){n.value=!1}function q(me){(me==null||me===""&&!t.multiple&&!C.value)&&(S.value=[])}const Y=Ai(!1);function ee(me){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!me||me.props.disabled))if(t.multiple){const se=S.value.findIndex(ce=>t.valueComparator(ce.value,me.value)),ae=he??!~se;if(~se){const ce=ae?[...S.value,me]:[...S.value];ce.splice(se,1),S.value=ce}else ae&&(S.value=[...S.value,me]);t.clearOnSelect&&(_.value="")}else{const se=he!==!1;S.value=se?[me]:[],_.value=se&&!C.value?me.title:"",lc(()=>{O.value=!1,l.value=!0})}}return Ni(d,(me,he)=>{var se;me!==he&&(me?(Y.value=!0,_.value=t.multiple||C.value?"":String(((se=S.value.at(-1))==null?void 0:se.props.title)??""),l.value=!0,lc(()=>Y.value=!1)):(!t.multiple&&_.value==null&&(S.value=[]),O.value=!1,S.value.some(ae=>{let{title:ce}=ae;return ce===_.value})||(_.value=""),w.value=-1))}),Ni(_,me=>{!d.value||Y.value||(me&&(O.value=!0),l.value=!me)}),Ni(O,()=>{if(!t.hideSelected&&O.value&&S.value.length){const me=T.value.findIndex(he=>S.value.some(se=>he.value===se.value));ou&&window.requestAnimationFrame(()=>{var he;me>=0&&((he=b.value)==null||he.scrollToIndex(me))})}}),Ni(()=>t.items,(me,he)=>{O.value||d.value&&!he.length&&me.length&&(O.value=!0)}),ka(()=>{const me=!!(!t.hideNoData||T.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),he=S.value.length>0,se=um.filterProps(t);return Ht(um,Ii({ref:P},se,{modelValue:_.value,"onUpdate:modelValue":[ae=>_.value=ae,q],focused:d.value,"onUpdate:focused":ae=>d.value=ae,validationValue:S.externalValue,counterValue:A.value,dirty:he,onChange:te,class:["v-autocomplete",`v-autocomplete--${t.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":O.value,"v-autocomplete--chips":!!t.chips,"v-autocomplete--selection-slot":!!C.value,"v-autocomplete--selecting-index":w.value>-1},t.class],style:t.style,readonly:t.readonly,placeholder:he?void 0:t.placeholder,"onClick:clear":Q,"onMousedown:control":j,onKeydown:X}),{...o,default:()=>Ht(ma,null,[Ht(pS,Ii({ref:c,modelValue:O.value,"onUpdate:modelValue":ae=>O.value=ae,activator:"parent",contentClass:"v-autocomplete__content",disabled:k.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:W},t.menuProps),{default:()=>[me&&Ht(m_,Ii({ref:I,selected:L.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:ae=>ae.preventDefault(),onKeydown:$,onFocusin:K,onFocusout:oe,onScrollPassive:z,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var ae,ce,de;return[(ae=o["prepend-item"])==null?void 0:ae.call(o),!T.value.length&&!t.hideNoData&&(((ce=o["no-data"])==null?void 0:ce.call(o))??Ht(zf,{title:f(t.noDataText)},null)),Ht(lue,{ref:b,renderless:!0,items:T.value},{default:ve=>{var Pe;let{item:ye,index:_e,itemRef:Se}=ve;const Te=Ii(ye.props,{ref:Se,key:_e,active:D.value&&_e===0?!0:void 0,onClick:()=>ee(ye,null)});return((Pe=o.item)==null?void 0:Pe.call(o,{item:ye,index:_e,props:Te}))??Ht(zf,Ii(Te,{role:"option"}),{prepend:Ie=>{let{isSelected:ze}=Ie;return Ht(ma,null,[t.multiple&&!t.hideSelected?Ht(IM,{key:ye.value,modelValue:ze,ripple:!1,tabindex:"-1"},null):void 0,ye.props.prependAvatar&&Ht(PO,{image:ye.props.prependAvatar},null),ye.props.prependIcon&&Ht(Al,{icon:ye.props.prependIcon},null)])},title:()=>{var Ie,ze;return l.value?ye.title:zLe(ye.title,(Ie=M(ye))==null?void 0:Ie.title,((ze=_.value)==null?void 0:ze.length)??0)}})}}),(de=o["append-item"])==null?void 0:de.call(o)]}})]}),S.value.map((ae,ce)=>{function de(Se){Se.stopPropagation(),Se.preventDefault(),ee(ae,!1)}const ve={"onClick:close":de,onKeydown(Se){Se.key!=="Enter"&&Se.key!==" "||(Se.preventDefault(),Se.stopPropagation(),de(Se))},onMousedown(Se){Se.preventDefault(),Se.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ye=E.value?!!o.chip:!!o.selection,_e=ye?dq(E.value?o.chip({item:ae,index:ce,props:ve}):o.selection({item:ae,index:ce})):void 0;if(!(ye&&!_e))return Ht("div",{key:ae.value,class:["v-autocomplete__selection",ce===w.value&&["v-autocomplete__selection--selected",m.value]],style:ce===w.value?v.value:{}},[E.value?o.chip?Ht(du,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:ae.title}}},{default:()=>[_e]}):Ht(AD,Ii({key:"chip",closable:t.closableChips,size:"small",text:ae.title,disabled:ae.props.disabled},ve),null):_e??Ht("span",{class:"v-autocomplete__selection-text"},[ae.title,t.multiple&&ce!0,afterLeave:()=>!0},setup(t,e){let{emit:o,slots:f}=e;const P=bl(t,"modelValue"),{scopeId:d}=zM(),l=ti();function n(i){var y,p;const O=i.relatedTarget,w=i.target;if(O!==w&&((y=l.value)!=null&&y.contentEl)&&((p=l.value)!=null&&p.globalTop)&&![document,l.value.contentEl].includes(w)&&!l.value.contentEl.contains(w)){const a=WI(l.value.contentEl);if(!a.length)return;const u=a[0],h=a[a.length-1];O===u?h.focus():u.focus()}}ou&&Ni(()=>P.value&&t.retainFocus,i=>{i?document.addEventListener("focusin",n):document.removeEventListener("focusin",n)},{immediate:!0});function c(){var i;(i=l.value)!=null&&i.contentEl&&!l.value.contentEl.contains(document.activeElement)&&l.value.contentEl.focus({preventScroll:!0})}function b(){o("afterLeave")}return Ni(P,async i=>{var O;i||(await lc(),(O=l.value.activatorEl)==null||O.focus({preventScroll:!0}))}),ka(()=>{const i=hS.filterProps(t),O=Ii({"aria-haspopup":"dialog","aria-expanded":String(P.value)},t.activatorProps),w=Ii({tabindex:-1},t.contentProps);return Ht(hS,Ii({ref:l,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},i,{modelValue:P.value,"onUpdate:modelValue":y=>P.value=y,"aria-modal":"true",activatorProps:O,contentProps:w,role:"dialog",onAfterEnter:c,onAfterLeave:b},d),{activator:f.activator,default:function(){for(var y=arguments.length,p=new Array(y),a=0;a{var u;return[(u=f.default)==null?void 0:u.call(f,...p)]}})}})}),T_({},l)}});const n_e=Ji()({name:"VCardActions",props:ys(),setup(t,e){let{slots:o}=e;return ib({VBtn:{slim:!0,variant:"text"}}),ka(()=>{var f;return Ht("div",{class:["v-card-actions",t.class],style:t.style},[(f=o.default)==null?void 0:f.call(o)])}),{}}}),$Le=ei({opacity:[Number,String],...ys(),...hu()},"VCardSubtitle"),r_e=Ji()({name:"VCardSubtitle",props:$Le(),setup(t,e){let{slots:o}=e;return ka(()=>Ht(t.tag,{class:["v-card-subtitle",t.class],style:[{"--v-card-subtitle-opacity":t.opacity},t.style]},o)),{}}}),PD=hq("v-card-title"),VLe=ei({appendAvatar:String,appendIcon:ul,prependAvatar:String,prependIcon:ul,subtitle:[String,Number],title:[String,Number],...ys(),...S1()},"VCardItem"),ULe=Ji()({name:"VCardItem",props:VLe(),setup(t,e){let{slots:o}=e;return ka(()=>{var b;const f=!!(t.prependAvatar||t.prependIcon),P=!!(f||o.prepend),d=!!(t.appendAvatar||t.appendIcon),l=!!(d||o.append),n=!!(t.title!=null||o.title),c=!!(t.subtitle!=null||o.subtitle);return Ht("div",{class:["v-card-item",t.class],style:t.style},[P&&Ht("div",{key:"prepend",class:"v-card-item__prepend"},[o.prepend?Ht(du,{key:"prepend-defaults",disabled:!f,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},o.prepend):Ht(ma,null,[t.prependAvatar&&Ht(PO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&Ht(Al,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),Ht("div",{class:"v-card-item__content"},[n&&Ht(PD,{key:"title"},{default:()=>{var i;return[((i=o.title)==null?void 0:i.call(o))??t.title]}}),c&&Ht(r_e,{key:"subtitle"},{default:()=>{var i;return[((i=o.subtitle)==null?void 0:i.call(o))??t.subtitle]}}),(b=o.default)==null?void 0:b.call(o)]),l&&Ht("div",{key:"append",class:"v-card-item__append"},[o.append?Ht(du,{key:"append-defaults",disabled:!d,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},o.append):Ht(ma,null,[t.appendIcon&&Ht(Al,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&Ht(PO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),jLe=ei({opacity:[Number,String],...ys(),...hu()},"VCardText"),pue=Ji()({name:"VCardText",props:jLe(),setup(t,e){let{slots:o}=e;return ka(()=>Ht(t.tag,{class:["v-card-text",t.class],style:[{"--v-card-text-opacity":t.opacity},t.style]},o)),{}}}),QLe=ei({appendAvatar:String,appendIcon:ul,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:ul,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...k_(),...ys(),...S1(),...O_(),...Qv(),...bq(),...kD(),..._q(),...pm(),...Sq(),...hu(),...vf(),...Tx({variant:"elevated"})},"VCard"),BO=Ji()({name:"VCard",directives:{Ripple:MT},props:QLe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:P}=ad(t),{borderClasses:d}=DO(t),{colorClasses:l,colorStyles:n,variantClasses:c}=CT(t),{densityClasses:b}=kx(t),{dimensionStyles:i}=S_(t),{elevationClasses:O}=lb(t),{loaderClasses:w}=TD(t),{locationStyles:y}=yq(t),{positionClasses:p}=wq(t),{roundedClasses:a}=lg(t),u=Oq(t,o),h=Un(()=>t.link!==!1&&u.isLink.value),m=Un(()=>!t.disabled&&t.link!==!1&&(t.link||u.isClickable.value));return ka(()=>{const v=h.value?"a":t.tag,_=!!(f.title||t.title!=null),S=!!(f.subtitle||t.subtitle!=null),A=_||S,x=!!(f.append||t.appendAvatar||t.appendIcon),R=!!(f.prepend||t.prependAvatar||t.prependIcon),M=!!(f.image||t.image),T=A||R||x,E=!!(f.text||t.text!=null);return Tp(Ht(v,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":m.value},P.value,d.value,l.value,b.value,O.value,w.value,p.value,a.value,c.value,t.class],style:[n.value,i.value,y.value,t.style],href:u.href.value,onClick:m.value&&u.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var C;return[M&&Ht("div",{key:"image",class:"v-card__image"},[f.image?Ht(du,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},f.image):Ht(kT,{key:"image-img",cover:!0,src:t.image},null)]),Ht(xq,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:f.loader}),T&&Ht(ULe,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:f.item,prepend:f.prepend,title:f.title,subtitle:f.subtitle,append:f.append}),E&&Ht(pue,{key:"text"},{default:()=>{var L;return[((L=f.text)==null?void 0:L.call(f))??t.text]}}),(C=f.default)==null?void 0:C.call(f),f.actions&&Ht(n_e,null,{default:f.actions}),TT(m.value,"v-card")]}}),[[y_("ripple"),m.value&&t.ripple]])}),{}}});const mue=Symbol.for("vuetify:v-slider");function jse(t,e,o){const f=o==="vertical",P=e.getBoundingClientRect(),d="touches"in t?t.touches[0]:t;return f?d.clientY-(P.top+P.height/2):d.clientX-(P.left+P.width/2)}function HLe(t,e){return"touches"in t&&t.touches.length?t.touches[0][e]:"changedTouches"in t&&t.changedTouches.length?t.changedTouches[0][e]:t[e]}const o_e=ei({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:t=>typeof t=="boolean"||t==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:t=>typeof t=="boolean"||t==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)},reverse:Boolean,...pm(),...Qv({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),i_e=t=>{const e=Un(()=>parseFloat(t.min)),o=Un(()=>parseFloat(t.max)),f=Un(()=>+t.step>0?parseFloat(t.step):0),P=Un(()=>Math.max(Ame(f.value),Ame(e.value)));function d(l){if(l=parseFloat(l),f.value<=0)return l;const n=rg(l,e.value,o.value),c=e.value%f.value,b=Math.round((n-c)/f.value)*f.value+c;return parseFloat(Math.min(b,o.value).toFixed(P.value))}return{min:e,max:o,step:f,decimals:P,roundValue:d}},a_e=t=>{let{props:e,steps:o,onSliderStart:f,onSliderMove:P,onSliderEnd:d,getActiveThumb:l}=t;const{isRtl:n}=qg(),c=Oi(e,"reverse"),b=Un(()=>e.direction==="vertical"),i=Un(()=>b.value!==c.value),{min:O,max:w,step:y,decimals:p,roundValue:a}=o,u=Un(()=>parseInt(e.thumbSize,10)),h=Un(()=>parseInt(e.tickSize,10)),m=Un(()=>parseInt(e.trackSize,10)),v=Un(()=>(w.value-O.value)/y.value),_=Oi(e,"disabled"),S=Un(()=>e.error||e.disabled?void 0:e.thumbColor??e.color),A=Un(()=>e.error||e.disabled?void 0:e.trackColor??e.color),x=Un(()=>e.error||e.disabled?void 0:e.trackFillColor??e.color),R=Ai(!1),M=Ai(0),T=ti(),E=ti();function C(oe){var de;const q=e.direction==="vertical",Y=q?"top":"left",ee=q?"height":"width",me=q?"clientY":"clientX",{[Y]:he,[ee]:se}=(de=T.value)==null?void 0:de.$el.getBoundingClientRect(),ae=HLe(oe,me);let ce=Math.min(Math.max((ae-he-M.value)/se,0),1)||0;return(q?i.value:i.value!==n.value)&&(ce=1-ce),a(O.value+ce*(w.value-O.value))}const L=oe=>{d({value:C(oe)}),R.value=!1,M.value=0},D=oe=>{E.value=l(oe),E.value&&(E.value.focus(),R.value=!0,E.value.contains(oe.target)?M.value=jse(oe,E.value,e.direction):(M.value=0,P({value:C(oe)})),f({value:C(oe)}))},k={passive:!0,capture:!0};function I(oe){P({value:C(oe)})}function z(oe){oe.stopPropagation(),oe.preventDefault(),L(oe),window.removeEventListener("mousemove",I,k),window.removeEventListener("mouseup",z)}function $(oe){var q;L(oe),window.removeEventListener("touchmove",I,k),(q=oe.target)==null||q.removeEventListener("touchend",$)}function Q(oe){var q;D(oe),window.addEventListener("touchmove",I,k),(q=oe.target)==null||q.addEventListener("touchend",$,{passive:!1})}function j(oe){oe.preventDefault(),D(oe),window.addEventListener("mousemove",I,k),window.addEventListener("mouseup",z,{passive:!1})}const U=oe=>{const q=(oe-O.value)/(w.value-O.value)*100;return rg(isNaN(q)?0:q,0,100)},X=Oi(e,"showTicks"),te=Un(()=>X.value?e.ticks?Array.isArray(e.ticks)?e.ticks.map(oe=>({value:oe,position:U(oe),label:oe.toString()})):Object.keys(e.ticks).map(oe=>({value:parseFloat(oe),position:U(parseFloat(oe)),label:e.ticks[oe]})):v.value!==1/0?X4(v.value+1).map(oe=>{const q=O.value+oe*y.value;return{value:q,position:U(q)}}):[]:[]),W=Un(()=>te.value.some(oe=>{let{label:q}=oe;return!!q})),K={activeThumbRef:E,color:Oi(e,"color"),decimals:p,disabled:_,direction:Oi(e,"direction"),elevation:Oi(e,"elevation"),hasLabels:W,isReversed:c,indexFromEnd:i,min:O,max:w,mousePressed:R,numTicks:v,onSliderMousedown:j,onSliderTouchstart:Q,parsedTicks:te,parseMouseMove:C,position:U,readonly:Oi(e,"readonly"),rounded:Oi(e,"rounded"),roundValue:a,showTicks:X,startOffset:M,step:y,thumbSize:u,thumbColor:S,thumbLabel:Oi(e,"thumbLabel"),ticks:Oi(e,"ticks"),tickSize:h,trackColor:A,trackContainerRef:T,trackFillColor:x,trackSize:m,vertical:b};return gf(mue,K),K},ZLe=ei({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,...ys()},"VSliderThumb"),Qse=Ji()({name:"VSliderThumb",directives:{Ripple:MT},props:ZLe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=yl(mue),{isRtl:d,rtlClasses:l}=qg();if(!P)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:n,step:c,disabled:b,thumbSize:i,thumbLabel:O,direction:w,isReversed:y,vertical:p,readonly:a,elevation:u,mousePressed:h,decimals:m,indexFromEnd:v}=P,_=Un(()=>b.value?void 0:u.value),{elevationClasses:S}=lb(_),{textColorClasses:A,textColorStyles:x}=Uv(n),{pageup:R,pagedown:M,end:T,home:E,left:C,right:L,down:D,up:k}=Ese,I=[R,M,T,E,C,L,D,k],z=Un(()=>c.value?[1,2,3]:[1,5,10]);function $(j,U){if(!I.includes(j.key))return;j.preventDefault();const X=c.value||.1,te=(t.max-t.min)/X;if([C,L,D,k].includes(j.key)){const K=(p.value?[d.value?C:L,y.value?D:k]:v.value!==d.value?[C,k]:[L,k]).includes(j.key)?1:-1,oe=j.shiftKey?2:j.ctrlKey?1:0;U=U+K*X*z.value[oe]}else if(j.key===E)U=t.min;else if(j.key===T)U=t.max;else{const W=j.key===M?1:-1;U=U-W*X*(te>100?te/10:10)}return Math.max(t.min,Math.min(t.max,U))}function Q(j){const U=$(j,t.modelValue);U!=null&&f("update:modelValue",U)}return ka(()=>{const j=Ma(v.value?100-t.position:t.position,"%");return Ht("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":t.focused,"v-slider-thumb--pressed":t.focused&&h.value},t.class,l.value],style:[{"--v-slider-thumb-position":j,"--v-slider-thumb-size":Ma(i.value)},t.style],role:"slider",tabindex:b.value?-1:0,"aria-label":t.name,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,"aria-readonly":!!a.value,"aria-orientation":w.value,onKeydown:a.value?void 0:Q},[Ht("div",{class:["v-slider-thumb__surface",A.value,S.value],style:{...x.value}},null),Tp(Ht("div",{class:["v-slider-thumb__ripple",A.value],style:x.value},null),[[y_("ripple"),t.ripple,null,{circle:!0,center:!0}]]),Ht(Jxe,{origin:"bottom center"},{default:()=>{var U;return[Tp(Ht("div",{class:"v-slider-thumb__label-container"},[Ht("div",{class:["v-slider-thumb__label"]},[Ht("div",null,[((U=o["thumb-label"])==null?void 0:U.call(o,{modelValue:t.modelValue}))??t.modelValue.toFixed(c.value?m.value:1)])])]),[[mS,O.value&&t.focused||O.value==="always"]])]}})])}),{}}});const qLe=ei({start:{type:Number,required:!0},stop:{type:Number,required:!0},...ys()},"VSliderTrack"),s_e=Ji()({name:"VSliderTrack",props:qLe(),emits:{},setup(t,e){let{slots:o}=e;const f=yl(mue);if(!f)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:P,parsedTicks:d,rounded:l,showTicks:n,tickSize:c,trackColor:b,trackFillColor:i,trackSize:O,vertical:w,min:y,max:p,indexFromEnd:a}=f,{roundedClasses:u}=lg(l),{backgroundColorClasses:h,backgroundColorStyles:m}=ig(i),{backgroundColorClasses:v,backgroundColorStyles:_}=ig(b),S=Un(()=>`inset-${w.value?"block":"inline"}-${a.value?"end":"start"}`),A=Un(()=>w.value?"height":"width"),x=Un(()=>({[S.value]:"0%",[A.value]:"100%"})),R=Un(()=>t.stop-t.start),M=Un(()=>({[S.value]:Ma(t.start,"%"),[A.value]:Ma(R.value,"%")})),T=Un(()=>n.value?(w.value?d.value.slice().reverse():d.value).map((C,L)=>{var k;const D=C.value!==y.value&&C.value!==p.value?Ma(C.position,"%"):void 0;return Ht("div",{key:C.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":C.position>=t.start&&C.position<=t.stop,"v-slider-track__tick--first":C.value===y.value,"v-slider-track__tick--last":C.value===p.value}],style:{[S.value]:D}},[(C.label||o["tick-label"])&&Ht("div",{class:"v-slider-track__tick-label"},[((k=o["tick-label"])==null?void 0:k.call(o,{tick:C,index:L}))??C.label])])}):[]);return ka(()=>Ht("div",{class:["v-slider-track",u.value,t.class],style:[{"--v-slider-track-size":Ma(O.value),"--v-slider-tick-size":Ma(c.value)},t.style]},[Ht("div",{class:["v-slider-track__background",v.value,{"v-slider-track__background--opacity":!!P.value||!i.value}],style:{...x.value,..._.value}},null),Ht("div",{class:["v-slider-track__fill",h.value],style:{...M.value,...m.value}},null),n.value&&Ht("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":n.value==="always"}]},[T.value])])),{}}}),WLe=ei({...Tq(),...o_e(),...BM(),modelValue:{type:[Number,String],default:0}},"VSlider"),gue=Ji()({name:"VSlider",props:WLe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,start:t=>!0,end:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=ti(),{rtlClasses:d}=qg(),l=i_e(t),n=bl(t,"modelValue",void 0,A=>l.roundValue(A??l.min.value)),{min:c,max:b,mousePressed:i,roundValue:O,onSliderMousedown:w,onSliderTouchstart:y,trackContainerRef:p,position:a,hasLabels:u,readonly:h}=a_e({props:t,steps:l,onSliderStart:()=>{f("start",n.value)},onSliderEnd:A=>{let{value:x}=A;const R=O(x);n.value=R,f("end",R)},onSliderMove:A=>{let{value:x}=A;return n.value=O(x)},getActiveThumb:()=>{var A;return(A=P.value)==null?void 0:A.$el}}),{isFocused:m,focus:v,blur:_}=DM(t),S=Un(()=>a(n.value));return ka(()=>{const A=p_.filterProps(t),x=!!(t.label||o.label||o.prepend);return Ht(p_,Ii({class:["v-slider",{"v-slider--has-labels":!!o["tick-label"]||u.value,"v-slider--focused":m.value,"v-slider--pressed":i.value,"v-slider--disabled":t.disabled},d.value,t.class],style:t.style},A,{focused:m.value}),{...o,prepend:x?R=>{var M,T;return Ht(ma,null,[((M=o.label)==null?void 0:M.call(o,R))??(t.label?Ht(kq,{id:R.id.value,class:"v-slider__label",text:t.label},null):void 0),(T=o.prepend)==null?void 0:T.call(o,R)])}:void 0,default:R=>{let{id:M,messagesId:T}=R;return Ht("div",{class:"v-slider__container",onMousedown:h.value?void 0:w,onTouchstartPassive:h.value?void 0:y},[Ht("input",{id:M.value,name:t.name||M.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:n.value},null),Ht(s_e,{ref:p,start:0,stop:S.value},{"tick-label":o["tick-label"]}),Ht(Qse,{ref:P,"aria-describedby":T.value,focused:m.value,min:c.value,max:b.value,modelValue:n.value,"onUpdate:modelValue":E=>n.value=E,position:S.value,elevation:t.elevation,onFocus:v,onBlur:_,ripple:t.ripple,name:t.name},{"thumb-label":o["thumb-label"]})])}})}),{}}});function YLe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?Ht(ma,null,[Ht("span",{class:"v-combobox__unmask"},[t.substr(0,e)]),Ht("span",{class:"v-combobox__mask"},[t.substr(e,o)]),Ht("span",{class:"v-combobox__unmask"},[t.substr(e+o)])]):t}const XLe=ei({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...fue({filterKeys:["title"]}),...uue({hideNoData:!0,returnObject:!0}),...__(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ST({transition:!1})},"VCombobox"),vue=Ji()({name:"VCombobox",props:XLe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:search":t=>!0,"update:menu":t=>!0},setup(t,e){var he;let{emit:o,slots:f}=e;const{t:P}=sb(),d=ti(),l=Ai(!1),n=Ai(!0),c=Ai(!1),b=ti(),i=ti(),O=bl(t,"menu"),w=Un({get:()=>O.value,set:se=>{var ae;O.value&&!se&&((ae=b.value)!=null&&ae.ΨopenChildren)||(O.value=se)}}),y=Ai(-1);let p=!1;const a=Un(()=>{var se;return(se=d.value)==null?void 0:se.color}),u=Un(()=>w.value?t.closeText:t.openText),{items:h,transformIn:m,transformOut:v}=iue(t),{textColorClasses:_,textColorStyles:S}=Uv(a),A=bl(t,"modelValue",[],se=>m(fm(se)),se=>{const ae=v(se);return t.multiple?ae:ae[0]??null}),x=Cq(),R=Un(()=>!!(t.chips||f.chip)),M=Un(()=>R.value||!!f.selection),T=Ai(!t.multiple&&!M.value?((he=A.value[0])==null?void 0:he.title)??"":""),E=Un({get:()=>T.value,set:se=>{var ae;if(T.value=se??"",!t.multiple&&!M.value&&(A.value=[Z4(t,se)]),se&&t.multiple&&((ae=t.delimiters)!=null&&ae.length)){const ce=se.split(new RegExp(`(?:${t.delimiters.join("|")})+`));ce.length>1&&(ce.forEach(de=>{de=de.trim(),de&&q(Z4(t,de))}),T.value="")}se||(y.value=-1),n.value=!se}}),C=Un(()=>typeof t.counterValue=="function"?t.counterValue(A.value):typeof t.counterValue=="number"?t.counterValue:t.multiple?A.value.length:E.value.length);Ni(T,se=>{p?lc(()=>p=!1):l.value&&!w.value&&(w.value=!0),o("update:search",se)}),Ni(A,se=>{var ae;!t.multiple&&!M.value&&(T.value=((ae=se[0])==null?void 0:ae.title)??"")});const{filteredItems:L,getMatches:D}=due(t,h,()=>n.value?"":E.value),k=Un(()=>t.hideSelected?L.value.filter(se=>!A.value.some(ae=>ae.value===se.value)):L.value),I=Un(()=>A.value.map(se=>se.value)),z=Un(()=>{var ae;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&E.value===((ae=k.value[0])==null?void 0:ae.title))&&k.value.length>0&&!n.value&&!c.value}),$=Un(()=>t.hideNoData&&!k.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),Q=ti(),{onListScroll:j,onListKeydown:U}=cue(Q,d);function X(se){p=!0,t.openOnClear&&(w.value=!0)}function te(){$.value||(w.value=!0)}function W(se){$.value||(l.value&&(se.preventDefault(),se.stopPropagation()),w.value=!w.value)}function K(se){var de;if(OPe(se)||t.readonly||x!=null&&x.isReadonly.value)return;const ae=d.value.selectionStart,ce=A.value.length;if((y.value>-1||["Enter","ArrowDown","ArrowUp"].includes(se.key))&&se.preventDefault(),["Enter","ArrowDown"].includes(se.key)&&(w.value=!0),["Escape"].includes(se.key)&&(w.value=!1),["Enter","Escape","Tab"].includes(se.key)&&(z.value&&["Enter","Tab"].includes(se.key)&&!A.value.some(ve=>{let{value:ye}=ve;return ye===k.value[0].value})&&q(L.value[0]),n.value=!0),se.key==="ArrowDown"&&z.value&&((de=Q.value)==null||de.focus("next")),se.key==="Enter"&&E.value&&(q(Z4(t,E.value)),M.value&&(T.value="")),["Backspace","Delete"].includes(se.key)){if(!t.multiple&&M.value&&A.value.length>0&&!E.value)return q(A.value[0],!1);if(~y.value){const ve=y.value;q(A.value[y.value],!1),y.value=ve>=ce-1?ce-2:ve}else se.key==="Backspace"&&!E.value&&(y.value=ce-1)}if(t.multiple){if(se.key==="ArrowLeft"){if(y.value<0&&ae>0)return;const ve=y.value>-1?y.value-1:ce-1;A.value[ve]?y.value=ve:(y.value=-1,d.value.setSelectionRange(E.value.length,E.value.length))}if(se.key==="ArrowRight"){if(y.value<0)return;const ve=y.value+1;A.value[ve]?y.value=ve:(y.value=-1,d.value.setSelectionRange(0,0))}}}function oe(){var se;l.value&&(n.value=!0,(se=d.value)==null||se.focus())}function q(se){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!se||se.props.disabled))if(t.multiple){const ce=A.value.findIndex(ve=>t.valueComparator(ve.value,se.value)),de=ae??!~ce;if(~ce){const ve=de?[...A.value,se]:[...A.value];ve.splice(ce,1),A.value=ve}else de&&(A.value=[...A.value,se]);t.clearOnSelect&&(E.value="")}else{const ce=ae!==!1;A.value=ce?[se]:[],T.value=ce&&!M.value?se.title:"",lc(()=>{w.value=!1,n.value=!0})}}function Y(se){l.value=!0,setTimeout(()=>{c.value=!0})}function ee(se){c.value=!1}function me(se){(se==null||se===""&&!t.multiple&&!M.value)&&(A.value=[])}return Ni(l,(se,ae)=>{if(!(se||se===ae)&&(y.value=-1,w.value=!1,E.value)){if(t.multiple){q(Z4(t,E.value));return}if(!M.value)return;A.value.some(ce=>{let{title:de}=ce;return de===E.value})?T.value="":q(Z4(t,E.value))}}),Ni(w,()=>{if(!t.hideSelected&&w.value&&A.value.length){const se=k.value.findIndex(ae=>A.value.some(ce=>t.valueComparator(ce.value,ae.value)));ou&&window.requestAnimationFrame(()=>{var ae;se>=0&&((ae=i.value)==null||ae.scrollToIndex(se))})}}),Ni(()=>t.items,(se,ae)=>{w.value||l.value&&!ae.length&&se.length&&(w.value=!0)}),ka(()=>{const se=!!(!t.hideNoData||k.value.length||f["prepend-item"]||f["append-item"]||f["no-data"]),ae=A.value.length>0,ce=um.filterProps(t);return Ht(um,Ii({ref:d},ce,{modelValue:E.value,"onUpdate:modelValue":[de=>E.value=de,me],focused:l.value,"onUpdate:focused":de=>l.value=de,validationValue:A.externalValue,counterValue:C.value,dirty:ae,class:["v-combobox",{"v-combobox--active-menu":w.value,"v-combobox--chips":!!t.chips,"v-combobox--selection-slot":!!M.value,"v-combobox--selecting-index":y.value>-1,[`v-combobox--${t.multiple?"multiple":"single"}`]:!0},t.class],style:t.style,readonly:t.readonly,placeholder:ae?void 0:t.placeholder,"onClick:clear":X,"onMousedown:control":te,onKeydown:K}),{...f,default:()=>Ht(ma,null,[Ht(pS,Ii({ref:b,modelValue:w.value,"onUpdate:modelValue":de=>w.value=de,activator:"parent",contentClass:"v-combobox__content",disabled:$.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:oe},t.menuProps),{default:()=>[se&&Ht(m_,Ii({ref:Q,selected:I.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:de=>de.preventDefault(),onKeydown:U,onFocusin:Y,onFocusout:ee,onScrollPassive:j,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var de,ve,ye;return[(de=f["prepend-item"])==null?void 0:de.call(f),!k.value.length&&!t.hideNoData&&(((ve=f["no-data"])==null?void 0:ve.call(f))??Ht(zf,{title:P(t.noDataText)},null)),Ht(lue,{ref:i,renderless:!0,items:k.value},{default:_e=>{var ze;let{item:Se,index:Te,itemRef:Pe}=_e;const Ie=Ii(Se.props,{ref:Pe,key:Te,active:z.value&&Te===0?!0:void 0,onClick:()=>q(Se,null)});return((ze=f.item)==null?void 0:ze.call(f,{item:Se,index:Te,props:Ie}))??Ht(zf,Ii(Ie,{role:"option"}),{prepend:De=>{let{isSelected:He}=De;return Ht(ma,null,[t.multiple&&!t.hideSelected?Ht(IM,{key:Se.value,modelValue:He,ripple:!1,tabindex:"-1"},null):void 0,Se.props.prependAvatar&&Ht(PO,{image:Se.props.prependAvatar},null),Se.props.prependIcon&&Ht(Al,{icon:Se.props.prependIcon},null)])},title:()=>{var De,He;return n.value?Se.title:YLe(Se.title,(De=D(Se))==null?void 0:De.title,((He=E.value)==null?void 0:He.length)??0)}})}}),(ye=f["append-item"])==null?void 0:ye.call(f)]}})]}),A.value.map((de,ve)=>{function ye(Pe){Pe.stopPropagation(),Pe.preventDefault(),q(de,!1)}const _e={"onClick:close":ye,onKeydown(Pe){Pe.key!=="Enter"&&Pe.key!==" "||(Pe.preventDefault(),Pe.stopPropagation(),ye(Pe))},onMousedown(Pe){Pe.preventDefault(),Pe.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},Se=R.value?!!f.chip:!!f.selection,Te=Se?dq(R.value?f.chip({item:de,index:ve,props:_e}):f.selection({item:de,index:ve})):void 0;if(!(Se&&!Te))return Ht("div",{key:de.value,class:["v-combobox__selection",ve===y.value&&["v-combobox__selection--selected",_.value]],style:ve===y.value?S.value:{}},[R.value?f.chip?Ht(du,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:de.title}}},{default:()=>[Te]}):Ht(AD,Ii({key:"chip",closable:t.closableChips,size:"small",text:de.title,disabled:de.props.disabled},_e),null):Te??Ht("span",{class:"v-combobox__selection-text"},[de.title,t.multiple&&ve0&&f.push(P),f}function KLe(t,e,o){const f=o??Pq[e.slice(-2).toUpperCase()]??0,P=new Date(t);for(;P.getDay()!==f;)P.setDate(P.getDate()-1);return P}function JLe(t,e){const o=new Date(t),f=((Pq[e.slice(-2).toUpperCase()]??0)+6)%7;for(;o.getDay()!==f;)o.setDate(o.getDate()+1);return o}function l_e(t){return new Date(t.getFullYear(),t.getMonth(),1)}function c_e(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function eIe(t){const e=t.split("-").map(Number);return new Date(e[0],e[1]-1,e[2])}const tIe=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function u_e(t){if(t==null)return new Date;if(t instanceof Date)return t;if(typeof t=="string"){let e;if(tIe.test(t))return eIe(t);if(e=Date.parse(t),!isNaN(e))return new Date(e)}return null}const wge=new Date(2e3,0,2);function nIe(t,e){const o=e??Pq[t.slice(-2).toUpperCase()]??0;return X4(7).map(f=>{const P=new Date(wge);return P.setDate(wge.getDate()+o+f),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(P)})}function rIe(t,e,o,f){const P=u_e(t)??new Date,d=f==null?void 0:f[e];if(typeof d=="function")return d(P,e,o);let l={};switch(e){case"fullDate":l={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":l={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const n=P.getDate(),c=new Intl.DateTimeFormat(o,{month:"long"}).format(P);return`${n} ${c}`;case"normalDateWithWeekday":l={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":l={month:"short",day:"numeric"};break;case"year":l={year:"numeric"};break;case"month":l={month:"long"};break;case"monthShort":l={month:"short"};break;case"monthAndYear":l={month:"long",year:"numeric"};break;case"monthAndDate":l={month:"long",day:"numeric"};break;case"weekday":l={weekday:"long"};break;case"weekdayShort":l={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(o).format(P.getDate());case"hours12h":l={hour:"numeric",hour12:!0};break;case"hours24h":l={hour:"numeric",hour12:!1};break;case"minutes":l={minute:"numeric"};break;case"seconds":l={second:"numeric"};break;case"fullTime":l={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":l={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":l={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":l={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":l={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":l={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":l={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":l={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":l={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":l={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:l=d??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(o,l).format(P)}function oIe(t,e){const o=t.toJsDate(e),f=o.getFullYear(),P=Eme(String(o.getMonth()+1),2,"0"),d=Eme(String(o.getDate()),2,"0");return`${f}-${P}-${d}`}function iIe(t){const[e,o,f]=t.split("-").map(Number);return new Date(e,o-1,f)}function aIe(t,e){const o=new Date(t);return o.setMinutes(o.getMinutes()+e),o}function sIe(t,e){const o=new Date(t);return o.setHours(o.getHours()+e),o}function lIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e),o}function cIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e*7),o}function uIe(t,e){const o=new Date(t);return o.setDate(1),o.setMonth(o.getMonth()+e),o}function fIe(t){return t.getFullYear()}function dIe(t){return t.getMonth()}function hIe(t){return t.getDate()}function pIe(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function mIe(t){return new Date(t.getFullYear(),t.getMonth()-1,1)}function gIe(t){return t.getHours()}function vIe(t){return t.getMinutes()}function yIe(t){return new Date(t.getFullYear(),0,1)}function bIe(t){return new Date(t.getFullYear(),11,31)}function xIe(t,e){return yZ(t,e[0])&&OIe(t,e[1])}function _Ie(t){const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function yZ(t,e){return t.getTime()>e.getTime()}function wIe(t,e){return yZ(Hse(t),Hse(e))}function OIe(t,e){return t.getTime(){o.locale=t.locale[f]??f??o.locale}),o}const FIe=ei({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),f_e=Symbol.for("vuetify:datatable:expanded");function NIe(t){const e=Oi(t,"expandOnClick"),o=bl(t,"expanded",t.expanded,n=>new Set(n),n=>[...n.values()]);function f(n,c){const b=new Set(o.value);c?b.add(n.value):b.delete(n.value),o.value=b}function P(n){return o.value.has(n.value)}function d(n){f(n,!P(n))}const l={expand:f,expanded:o,expandOnClick:e,isExpanded:P,toggleExpand:d};return gf(f_e,l),l}function d_e(){const t=yl(f_e);if(!t)throw new Error("foo");return t}const $Ie=ei({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),h_e=Symbol.for("vuetify:data-table-group");function VIe(t){return{groupBy:bl(t,"groupBy")}}function UIe(t){const{disableSort:e,groupBy:o,sortBy:f}=t,P=ti(new Set),d=Un(()=>o.value.map(i=>({...i,order:i.order??!1})).concat(e!=null&&e.value?[]:f.value));function l(i){return P.value.has(i.id)}function n(i){const O=new Set(P.value);l(i)?O.delete(i.id):O.add(i.id),P.value=O}function c(i){function O(w){const y=[];for(const p of w.items)"type"in p&&p.type==="group"?y.push(...O(p)):y.push(p);return y}return O({type:"group",items:i,id:"dummy",key:"dummy",value:"dummy",depth:0})}const b={sortByWithGroups:d,toggleGroup:n,opened:P,groupBy:o,extractRows:c,isGroupOpen:l};return gf(h_e,b),b}function p_e(){const t=yl(h_e);if(!t)throw new Error("Missing group!");return t}function jIe(t,e){if(!t.length)return[];const o=new Map;for(const f of t){const P=yT(f.raw,e);o.has(P)||o.set(P,[]),o.get(P).push(f)}return o}function m_e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!e.length)return[];const P=jIe(t,e[0]),d=[],l=e.slice(1);return P.forEach((n,c)=>{const b=e[0],i=`${f}_${b}_${c}`;d.push({depth:o,id:i,key:b,value:c,items:l.length?m_e(n,l,o+1,i):n,type:"group"})}),d}function g_e(t,e){const o=[];for(const f of t)"type"in f&&f.type==="group"?(f.value!=null&&o.push(f),(e.has(f.id)||f.value==null)&&o.push(...g_e(f.items,e))):o.push(f);return o}function QIe(t,e,o){return{flatItems:Un(()=>{if(!e.value.length)return t.value;const P=m_e(t.value,e.value.map(d=>d.key));return g_e(P,o.value)})}}function HIe(t){let{page:e,itemsPerPage:o,sortBy:f,groupBy:P,search:d}=t;const l=ph("VDataTable"),n=Un(()=>({page:e.value,itemsPerPage:o.value,sortBy:f.value,groupBy:P.value,search:d.value}));let c=null;Ni(n,()=>{bS(c,n.value)||(c&&c.search!==n.value.search&&(e.value=1),l.emit("update:options",n.value),c=n.value)},{deep:!0,immediate:!0})}const ZIe=ei({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),v_e=Symbol.for("vuetify:data-table-pagination");function qIe(t){const e=bl(t,"page",void 0,f=>+(f??1)),o=bl(t,"itemsPerPage",void 0,f=>+(f??10));return{page:e,itemsPerPage:o}}function WIe(t){const{page:e,itemsPerPage:o,itemsLength:f}=t,P=Un(()=>o.value===-1?0:o.value*(e.value-1)),d=Un(()=>o.value===-1?f.value:Math.min(f.value,P.value+o.value)),l=Un(()=>o.value===-1||f.value===0?1:Math.ceil(f.value/o.value));kp(()=>{e.value>l.value&&(e.value=l.value)});function n(w){o.value=w,e.value=1}function c(){e.value=rg(e.value+1,1,l.value)}function b(){e.value=rg(e.value-1,1,l.value)}function i(w){e.value=rg(w,1,l.value)}const O={page:e,itemsPerPage:o,startIndex:P,stopIndex:d,pageCount:l,itemsLength:f,nextPage:c,prevPage:b,setPage:i,setItemsPerPage:n};return gf(v_e,O),O}function YIe(){const t=yl(v_e);if(!t)throw new Error("Missing pagination!");return t}function XIe(t){const e=ph("usePaginatedItems"),{items:o,startIndex:f,stopIndex:P,itemsPerPage:d}=t,l=Un(()=>d.value<=0?o.value:o.value.slice(f.value,P.value));return Ni(l,n=>{e.emit("update:currentItems",n)}),{paginatedItems:l}}const GIe={showSelectAll:!1,allSelected:()=>[],select:t=>{var f;let{items:e,value:o}=t;return new Set(o?[(f=e[0])==null?void 0:f.value]:[])},selectAll:t=>{let{selected:e}=t;return e}},y_e={showSelectAll:!0,allSelected:t=>{let{currentPage:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const P of e)o?f.add(P.value):f.delete(P.value);return f},selectAll:t=>{let{value:e,currentPage:o,selected:f}=t;return y_e.select({items:o,value:e,selected:f})}},b_e={showSelectAll:!0,allSelected:t=>{let{allItems:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const P of e)o?f.add(P.value):f.delete(P.value);return f},selectAll:t=>{let{value:e,allItems:o,selected:f}=t;return b_e.select({items:o,value:e,selected:f})}},KIe=ei({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:bS}},"DataTable-select"),x_e=Symbol.for("vuetify:data-table-selection");function JIe(t,e){let{allItems:o,currentPage:f}=e;const P=bl(t,"modelValue",t.modelValue,h=>new Set(fm(h).map(m=>{var v;return((v=o.value.find(_=>t.valueComparator(m,_.value)))==null?void 0:v.value)??m})),h=>[...h.values()]),d=Un(()=>o.value.filter(h=>h.selectable)),l=Un(()=>f.value.filter(h=>h.selectable)),n=Un(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single":return GIe;case"all":return b_e;case"page":default:return y_e}});function c(h){return fm(h).every(m=>P.value.has(m.value))}function b(h){return fm(h).some(m=>P.value.has(m.value))}function i(h,m){const v=n.value.select({items:h,value:m,selected:new Set(P.value)});P.value=v}function O(h){i([h],!c([h]))}function w(h){const m=n.value.selectAll({value:h,allItems:d.value,currentPage:l.value,selected:new Set(P.value)});P.value=m}const y=Un(()=>P.value.size>0),p=Un(()=>{const h=n.value.allSelected({allItems:d.value,currentPage:l.value});return!!h.length&&c(h)}),a=Un(()=>n.value.showSelectAll),u={toggleSelect:O,select:i,selectAll:w,isSelected:c,isSomeSelected:b,someSelected:y,allSelected:p,showSelectAll:a};return gf(x_e,u),u}function Rq(){const t=yl(x_e);if(!t)throw new Error("Missing selection!");return t}const eDe=ei({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),__e=Symbol.for("vuetify:data-table-sort");function tDe(t){const e=bl(t,"sortBy"),o=Oi(t,"mustSort"),f=Oi(t,"multiSort");return{sortBy:e,mustSort:o,multiSort:f}}function nDe(t){const{sortBy:e,mustSort:o,multiSort:f,page:P}=t,d=c=>{if(c.key==null)return;let b=e.value.map(O=>({...O}))??[];const i=b.find(O=>O.key===c.key);i?i.order==="desc"?o.value?i.order="asc":b=b.filter(O=>O.key!==c.key):i.order="desc":f.value?b=[...b,{key:c.key,order:"asc"}]:b=[{key:c.key,order:"asc"}],e.value=b,P&&(P.value=1)};function l(c){return!!e.value.find(b=>b.key===c.key)}const n={sortBy:e,toggleSort:d,isSorted:l};return gf(__e,n),n}function w_e(){const t=yl(__e);if(!t)throw new Error("Missing sort!");return t}function rDe(t,e,o,f){const P=sb();return{sortedItems:Un(()=>{var l,n;return o.value.length?oDe(e.value,o.value,P.current.value,{transform:f==null?void 0:f.transform,sortFunctions:{...t.customKeySort,...(l=f==null?void 0:f.sortFunctions)==null?void 0:l.value},sortRawFunctions:(n=f==null?void 0:f.sortRawFunctions)==null?void 0:n.value}):e.value})}}function oDe(t,e,o,f){const P=new Intl.Collator(o,{sensitivity:"accent",usage:"sort"});return t.map(l=>[l,f!=null&&f.transform?f.transform(l):l]).sort((l,n)=>{var c,b;for(let i=0;im!=null?m.toString().toLocaleLowerCase():m),p!==a)return YQ(p)&&YQ(a)?0:YQ(p)?-1:YQ(a)?1:!isNaN(p)&&!isNaN(a)?Number(p)-Number(a):P.compare(p,a)}}return 0}).map(l=>{let[n]=l;return n})}function iDe(){const t=ti([]);$1e(()=>t.value=[]);function e(o,f){t.value[f]=o}return{refs:t,updateRef:e}}const aDe=ei({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:t=>t.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:t=>t%1===0},totalVisible:[Number,String],firstIcon:{type:ul,default:"$first"},prevIcon:{type:ul,default:"$prev"},nextIcon:{type:ul,default:"$next"},lastIcon:{type:ul,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...k_(),...ys(),...S1(),...Qv(),...pm(),...AT(),...hu({tag:"nav"}),...vf(),...Tx({variant:"text"})},"VPagination"),kge=Ji()({name:"VPagination",props:aDe(),emits:{"update:modelValue":t=>!0,first:t=>!0,prev:t=>!0,next:t=>!0,last:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=bl(t,"modelValue"),{t:d,n:l}=sb(),{isRtl:n}=qg(),{themeClasses:c}=ad(t),{width:b}=xS(),i=Ai(-1);ib(void 0,{scoped:!0});const{resizeRef:O}=dS(R=>{if(!R.length)return;const{target:M,contentRect:T}=R[0],E=M.querySelector(".v-pagination__list > *");if(!E)return;const C=T.width,L=E.offsetWidth+parseFloat(getComputedStyle(E).marginRight)*2;i.value=a(C,L)}),w=Un(()=>parseInt(t.length,10)),y=Un(()=>parseInt(t.start,10)),p=Un(()=>t.totalVisible!=null?parseInt(t.totalVisible,10):i.value>=0?i.value:a(b.value,58));function a(R,M){const T=t.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((R-M*T)/M).toFixed(2)))}const u=Un(()=>{if(w.value<=0||isNaN(w.value)||w.value>Number.MAX_SAFE_INTEGER)return[];if(p.value<=0)return[];if(p.value===1)return[P.value];if(w.value<=p.value)return X4(w.value,y.value);const R=p.value%2===0,M=R?p.value/2:Math.floor(p.value/2),T=R?M:M+1,E=w.value-M;if(T-P.value>=0)return[...X4(Math.max(1,p.value-1),y.value),t.ellipsis,w.value];if(P.value-E>=(R?1:0)){const C=p.value-1,L=w.value-C+y.value;return[y.value,t.ellipsis,...X4(C,L)]}else{const C=Math.max(1,p.value-3),L=C===1?P.value:P.value-Math.ceil(C/2)+y.value;return[y.value,t.ellipsis,...X4(C,L),t.ellipsis,w.value]}});function h(R,M,T){R.preventDefault(),P.value=M,T&&f(T,M)}const{refs:m,updateRef:v}=iDe();ib({VPaginationBtn:{color:Oi(t,"color"),border:Oi(t,"border"),density:Oi(t,"density"),size:Oi(t,"size"),variant:Oi(t,"variant"),rounded:Oi(t,"rounded"),elevation:Oi(t,"elevation")}});const _=Un(()=>u.value.map((R,M)=>{const T=E=>v(E,M);if(typeof R=="string")return{isActive:!1,key:`ellipsis-${M}`,page:R,props:{ref:T,ellipsis:!0,icon:!0,disabled:!0}};{const E=R===P.value;return{isActive:E,key:R,page:l(R),props:{ref:T,ellipsis:!1,icon:!0,disabled:!!t.disabled||+t.length<2,color:E?t.activeColor:t.color,"aria-current":E,"aria-label":d(E?t.currentPageAriaLabel:t.pageAriaLabel,R),onClick:C=>h(C,R)}}}})),S=Un(()=>{const R=!!t.disabled||P.value<=y.value,M=!!t.disabled||P.value>=y.value+w.value-1;return{first:t.showFirstLastPage?{icon:n.value?t.lastIcon:t.firstIcon,onClick:T=>h(T,y.value,"first"),disabled:R,"aria-label":d(t.firstAriaLabel),"aria-disabled":R}:void 0,prev:{icon:n.value?t.nextIcon:t.prevIcon,onClick:T=>h(T,P.value-1,"prev"),disabled:R,"aria-label":d(t.previousAriaLabel),"aria-disabled":R},next:{icon:n.value?t.prevIcon:t.nextIcon,onClick:T=>h(T,P.value+1,"next"),disabled:M,"aria-label":d(t.nextAriaLabel),"aria-disabled":M},last:t.showFirstLastPage?{icon:n.value?t.firstIcon:t.lastIcon,onClick:T=>h(T,y.value+w.value-1,"last"),disabled:M,"aria-label":d(t.lastAriaLabel),"aria-disabled":M}:void 0}});function A(){var M;const R=P.value-y.value;(M=m.value[R])==null||M.$el.focus()}function x(R){R.key===Ese.left&&!t.disabled&&P.value>+t.start?(P.value=P.value-1,lc(A)):R.key===Ese.right&&!t.disabled&&P.valueHt(t.tag,{ref:O,class:["v-pagination",c.value,t.class],style:t.style,role:"navigation","aria-label":d(t.ariaLabel),onKeydown:x,"data-test":"v-pagination-root"},{default:()=>[Ht("ul",{class:"v-pagination__list"},[t.showFirstLastPage&&Ht("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[o.first?o.first(S.value.first):Ht(ls,Ii({_as:"VPaginationBtn"},S.value.first),null)]),Ht("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[o.prev?o.prev(S.value.prev):Ht(ls,Ii({_as:"VPaginationBtn"},S.value.prev),null)]),_.value.map((R,M)=>Ht("li",{key:R.key,class:["v-pagination__item",{"v-pagination__item--is-active":R.isActive}],"data-test":"v-pagination-item"},[o.item?o.item(R):Ht(ls,Ii({_as:"VPaginationBtn"},R.props),{default:()=>[R.page]})])),Ht("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[o.next?o.next(S.value.next):Ht(ls,Ii({_as:"VPaginationBtn"},S.value.next),null)]),t.showFirstLastPage&&Ht("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[o.last?o.last(S.value.last):Ht(ls,Ii({_as:"VPaginationBtn"},S.value.last),null)])])]})),{}}}),O_e=ei({prevIcon:{type:ul,default:"$prev"},nextIcon:{type:ul,default:"$next"},firstIcon:{type:ul,default:"$first"},lastIcon:{type:ul,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Tge=Ji()({name:"VDataTableFooter",props:O_e(),setup(t,e){let{slots:o}=e;const{t:f}=sb(),{page:P,pageCount:d,startIndex:l,stopIndex:n,itemsLength:c,itemsPerPage:b,setItemsPerPage:i}=YIe(),O=Un(()=>t.itemsPerPageOptions.map(w=>typeof w=="number"?{value:w,title:w===-1?f("$vuetify.dataFooter.itemsPerPageAll"):String(w)}:{...w,title:isNaN(Number(w.title))?f(w.title):w.title}));return ka(()=>{var y;const w=kge.filterProps(t);return Ht("div",{class:"v-data-table-footer"},[(y=o.prepend)==null?void 0:y.call(o),Ht("div",{class:"v-data-table-footer__items-per-page"},[Ht("span",null,[f(t.itemsPerPageText)]),Ht(ED,{items:O.value,modelValue:b.value,"onUpdate:modelValue":p=>i(Number(p)),density:"compact",variant:"outlined","hide-details":!0},null)]),Ht("div",{class:"v-data-table-footer__info"},[Ht("div",null,[f(t.pageText,c.value?l.value+1:0,n.value,c.value)])]),Ht("div",{class:"v-data-table-footer__pagination"},[Ht(kge,Ii({modelValue:P.value,"onUpdate:modelValue":p=>P.value=p,density:"comfortable","first-aria-label":t.firstPageLabel,"last-aria-label":t.lastPageLabel,length:d.value,"next-aria-label":t.nextPageLabel,"previous-aria-label":t.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":t.showCurrentPage?1:0,variant:"plain"},w),null)])])}),{}}}),bZ=o9e({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(t,e)=>{let{slots:o}=e;const f=t.tag??"td";return Ht(f,{class:["v-data-table__td",{"v-data-table-column--fixed":t.fixed,"v-data-table-column--last-fixed":t.lastFixed,"v-data-table-column--no-padding":t.noPadding,"v-data-table-column--nowrap":t.nowrap},`v-data-table-column--align-${t.align}`],style:{height:Ma(t.height),width:Ma(t.width),maxWidth:Ma(t.maxWidth),left:Ma(t.fixedOffset||null)}},{default:()=>{var P;return[(P=o.default)==null?void 0:P.call(o)]}})}),sDe=ei({headers:Array},"DataTable-header"),S_e=Symbol.for("vuetify:data-table-headers"),k_e={title:"",sortable:!1},lDe={...k_e,width:48};function cDe(){const e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(o=>({element:o,priority:0}));return{enqueue:(o,f)=>{let P=!1;for(let d=0;df){e.splice(d,0,{element:o,priority:f}),P=!0;break}P||e.push({element:o,priority:f})},size:()=>e.length,count:()=>{let o=0;if(!e.length)return 0;const f=Math.floor(e[0].priority);for(let P=0;Pe.shift()}}function Zse(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!t.children)e.push(t);else for(const o of t.children)Zse(o,e);return e}function T_e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const o of t)o.key&&e.add(o.key),o.children&&T_e(o.children,e);return e}function uDe(t){if(t.key){if(t.key==="data-table-group")return k_e;if(["data-table-expand","data-table-select"].includes(t.key))return lDe}}function yue(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.children?Math.max(e,...t.children.map(o=>yue(o,e+1))):e}function fDe(t){let e=!1;function o(d){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(d)if(l&&(d.fixed=!0),d.fixed)if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n],!0);else e?isNaN(+d.width)&&(`${d.key}`,void 0):d.lastFixed=!0,e=!0;else if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n]);else e=!1}for(let d=t.length-1;d>=0;d--)o(t[d]);function f(d){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!d)return l;if(d.children){d.fixedOffset=l;for(const n of d.children)l=f(n,l)}else d.fixed&&(d.fixedOffset=l,l+=parseFloat(d.width||"0")||0);return l}let P=0;for(const d of t)P=f(d,P)}function dDe(t,e){const o=[];let f=0;const P=cDe(t);for(;P.size()>0;){let l=P.count();const n=[];let c=1;for(;l>0;){const{element:b,priority:i}=P.dequeue(),O=e-f-yue(b);if(n.push({...b,rowspan:O??1,colspan:b.children?Zse(b).length:1}),b.children)for(const w of b.children){const y=i%1+c/Math.pow(10,f+2);P.enqueue(w,f+O+y)}c+=1,l-=1}f+=1,o.push(n)}return{columns:t.map(l=>Zse(l)).flat(),headers:o}}function C_e(t){const e=[];for(const o of t){const f={...uDe(o),...o},P=f.key??(typeof f.value=="string"?f.value:null),d=f.value??P??null,l={...f,key:P,value:d,sortable:f.sortable??(f.key!=null||!!f.sort),children:f.children?C_e(f.children):void 0};e.push(l)}return e}function hDe(t,e){const o=ti([]),f=ti([]),P=ti({}),d=ti({}),l=ti({});kp(()=>{var a,u,h;const b=(t.headers||Object.keys(t.items[0]??{}).map(m=>({key:m,title:v_(m)}))).slice(),i=T_e(b);(a=e==null?void 0:e.groupBy)!=null&&a.value.length&&!i.has("data-table-group")&&b.unshift({key:"data-table-group",title:"Group"}),(u=e==null?void 0:e.showSelect)!=null&&u.value&&!i.has("data-table-select")&&b.unshift({key:"data-table-select"}),(h=e==null?void 0:e.showExpand)!=null&&h.value&&!i.has("data-table-expand")&&b.push({key:"data-table-expand"});const O=C_e(b);fDe(O);const w=Math.max(...O.map(m=>yue(m)))+1,y=dDe(O,w);o.value=y.headers,f.value=y.columns;const p=y.headers.flat(1);for(const m of p)m.key&&(m.sortable&&(m.sort&&(P.value[m.key]=m.sort),m.sortRaw&&(d.value[m.key]=m.sortRaw)),m.filter&&(l.value[m.key]=m.filter))});const n={headers:o,columns:f,sortFunctions:P,sortRawFunctions:d,filterFunctions:l};return gf(S_e,n),n}function Lq(){const t=yl(S_e);if(!t)throw new Error("Missing headers!");return t}const A_e=ei({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:ul,default:"$sortAsc"},sortDescIcon:{type:ul,default:"$sortDesc"},headerProps:{type:Object},...CD(),...bq()},"VDataTableHeaders"),Cge=Ji()({name:"VDataTableHeaders",props:A_e(),setup(t,e){let{slots:o}=e;const{t:f}=sb(),{toggleSort:P,sortBy:d,isSorted:l}=w_e(),{someSelected:n,allSelected:c,selectAll:b,showSelectAll:i}=Rq(),{columns:O,headers:w}=Lq(),{loaderClasses:y}=TD(t);function p(R,M){if(!(!t.sticky&&!R.fixed))return{position:"sticky",left:R.fixed?Ma(R.fixedOffset):void 0,top:t.sticky?`calc(var(--v-table-header-height) * ${M})`:void 0}}function a(R){const M=d.value.find(T=>T.key===R.key);return M?M.order==="asc"?t.sortAscIcon:t.sortDescIcon:t.sortAscIcon}const{backgroundColorClasses:u,backgroundColorStyles:h}=ig(t,"color"),{displayClasses:m,mobile:v}=xS(t),_=Un(()=>({headers:w.value,columns:O.value,toggleSort:P,isSorted:l,sortBy:d.value,someSelected:n.value,allSelected:c.value,selectAll:b,getSortIcon:a})),S=Un(()=>["v-data-table__th",{"v-data-table__th--sticky":t.sticky},m.value,y.value]),A=R=>{let{column:M,x:T,y:E}=R;const C=M.key==="data-table-select"||M.key==="data-table-expand",L=Ii(t.headerProps??{},M.headerProps??{});return Ht(bZ,Ii({tag:"th",align:M.align,class:[{"v-data-table__th--sortable":M.sortable&&!t.disableSort,"v-data-table__th--sorted":l(M),"v-data-table__th--fixed":M.fixed},...S.value],style:{width:Ma(M.width),minWidth:Ma(M.minWidth),maxWidth:Ma(M.maxWidth),...p(M,E)},colspan:M.colspan,rowspan:M.rowspan,onClick:M.sortable?()=>P(M):void 0,fixed:M.fixed,nowrap:M.nowrap,lastFixed:M.lastFixed,noPadding:C},L),{default:()=>{var I;const D=`header.${M.key}`,k={column:M,selectAll:b,isSorted:l,toggleSort:P,sortBy:d.value,someSelected:n.value,allSelected:c.value,getSortIcon:a};return o[D]?o[D](k):M.key==="data-table-select"?((I=o["header.data-table-select"])==null?void 0:I.call(o,k))??(i.value&&Ht(IM,{modelValue:c.value,indeterminate:n.value&&!c.value,"onUpdate:modelValue":b},null)):Ht("div",{class:"v-data-table-header__content"},[Ht("span",null,[M.title]),M.sortable&&!t.disableSort&&Ht(Al,{key:"icon",class:"v-data-table-header__sort-icon",icon:a(M)},null),t.multiSort&&l(M)&&Ht("div",{key:"badge",class:["v-data-table-header__sort-badge",...u.value],style:h.value},[d.value.findIndex(z=>z.key===M.key)+1])])}})},x=()=>{const R=Ii(t.headerProps??{}??{}),M=Un(()=>O.value.filter(E=>(E==null?void 0:E.sortable)&&!t.disableSort)),T=Un(()=>{if(O.value.find(C=>C.key==="data-table-select")!=null)return c.value?"$checkboxOn":n.value?"$checkboxIndeterminate":"$checkboxOff"});return Ht(bZ,Ii({tag:"th",class:[...S.value],colspan:w.value.length+1},R),{default:()=>[Ht("div",{class:"v-data-table-header__content"},[Ht(ED,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:M.value,label:f("$vuetify.dataTable.sortBy"),multiple:t.multiSort,variant:"underlined","onClick:clear":()=>d.value=[],appendIcon:T.value,"onClick:append":()=>b(!c.value)},{...o,chip:E=>{var C;return Ht(AD,{onClick:(C=E.item.raw)!=null&&C.sortable?()=>P(E.item.raw):void 0,onMousedown:L=>{L.preventDefault(),L.stopPropagation()}},{default:()=>[E.item.title,Ht(Al,{class:["v-data-table__td-sort-icon",l(E.item.raw)&&"v-data-table__td-sort-icon-active"],icon:a(E.item.raw),size:"small"},null)]})}})])]})};ka(()=>v.value?Ht("tr",null,[Ht(x,null,null)]):Ht(ma,null,[o.headers?o.headers(_.value):w.value.map((R,M)=>Ht("tr",null,[R.map((T,E)=>Ht(A,{column:T,x:E,y:M},null))])),t.loading&&Ht("tr",{class:"v-data-table-progress"},[Ht("th",{colspan:O.value.length},[Ht(xq,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0},{default:o.loader})])])]))}}),pDe=ei({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),mDe=Ji()({name:"VDataTableGroupHeaderRow",props:pDe(),setup(t,e){let{slots:o}=e;const{isGroupOpen:f,toggleGroup:P,extractRows:d}=p_e(),{isSelected:l,isSomeSelected:n,select:c}=Rq(),{columns:b}=Lq(),i=Un(()=>d([t.item]));return()=>Ht("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":t.item.depth}},[b.value.map(O=>{var w,y;if(O.key==="data-table-group"){const p=f(t.item)?"$expand":"$next",a=()=>P(t.item);return((w=o["data-table-group"])==null?void 0:w.call(o,{item:t.item,count:i.value.length,props:{icon:p,onClick:a}}))??Ht(bZ,{class:"v-data-table-group-header-row__column"},{default:()=>[Ht(ls,{size:"small",variant:"text",icon:p,onClick:a},null),Ht("span",null,[t.item.value]),Ht("span",null,[Ss("("),i.value.length,Ss(")")])]})}if(O.key==="data-table-select"){const p=l(i.value),a=n(i.value)&&!p,u=h=>c(i.value,h);return((y=o["data-table-select"])==null?void 0:y.call(o,{props:{modelValue:p,indeterminate:a,"onUpdate:modelValue":u}}))??Ht("td",null,[Ht(IM,{modelValue:p,indeterminate:a,"onUpdate:modelValue":u},null)])}return Ht("td",null,null)})])}}),gDe=ei({index:Number,item:Object,cellProps:[Object,Function],onClick:og(),onContextmenu:og(),onDblclick:og(),...CD()},"VDataTableRow"),vDe=Ji()({name:"VDataTableRow",props:gDe(),setup(t,e){let{slots:o}=e;const{displayClasses:f,mobile:P}=xS(t,"v-data-table__tr"),{isSelected:d,toggleSelect:l,someSelected:n,allSelected:c,selectAll:b}=Rq(),{isExpanded:i,toggleExpand:O}=d_e(),{toggleSort:w,sortBy:y,isSorted:p}=w_e(),{columns:a}=Lq();ka(()=>Ht("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(t.onClick||t.onContextmenu||t.onDblclick)},f.value],onClick:t.onClick,onContextmenu:t.onContextmenu,onDblclick:t.onDblclick},[t.item&&a.value.map((u,h)=>{const m=t.item,v=`item.${u.key}`,_=`header.${u.key}`,S={index:t.index,item:m.raw,internalItem:m,value:yT(m.columns,u.key),column:u,isSelected:d,toggleSelect:l,isExpanded:i,toggleExpand:O},A={column:u,selectAll:b,isSorted:p,toggleSort:w,sortBy:y.value,someSelected:n.value,allSelected:c.value,getSortIcon:()=>""},x=typeof t.cellProps=="function"?t.cellProps({index:S.index,item:S.item,internalItem:S.internalItem,value:S.value,column:u}):t.cellProps,R=typeof u.cellProps=="function"?u.cellProps({index:S.index,item:S.item,internalItem:S.internalItem,value:S.value}):u.cellProps;return Ht(bZ,Ii({align:u.align,class:{"v-data-table__td--expanded-row":u.key==="data-table-expand","v-data-table__td--select-row":u.key==="data-table-select"},fixed:u.fixed,fixedOffset:u.fixedOffset,lastFixed:u.lastFixed,maxWidth:P.value?void 0:u.maxWidth,noPadding:u.key==="data-table-select"||u.key==="data-table-expand",nowrap:u.nowrap,width:P.value?void 0:u.width},x,R),{default:()=>{var T,E,C,L,D;if(o[v]&&!P.value)return(T=o[v])==null?void 0:T.call(o,S);if(u.key==="data-table-select")return((E=o["item.data-table-select"])==null?void 0:E.call(o,S))??Ht(IM,{disabled:!m.selectable,modelValue:d([m]),onClick:DH(()=>l(m),["stop"])},null);if(u.key==="data-table-expand")return((C=o["item.data-table-expand"])==null?void 0:C.call(o,S))??Ht(ls,{icon:i(m)?"$collapse":"$expand",size:"small",variant:"text",onClick:DH(()=>O(m),["stop"])},null);const M=sc(S.value);return P.value?Ht(ma,null,[Ht("div",{class:"v-data-table__td-title"},[((L=o[_])==null?void 0:L.call(o,A))??u.title]),Ht("div",{class:"v-data-table__td-value"},[((D=o[v])==null?void 0:D.call(o,S))??M])]):M}})})]))}}),M_e=ei({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...CD()},"VDataTableRows"),Age=Ji()({name:"VDataTableRows",inheritAttrs:!1,props:M_e(),setup(t,e){let{attrs:o,slots:f}=e;const{columns:P}=Lq(),{expandOnClick:d,toggleExpand:l,isExpanded:n}=d_e(),{isSelected:c,toggleSelect:b}=Rq(),{toggleGroup:i,isGroupOpen:O}=p_e(),{t:w}=sb(),{mobile:y}=xS(t);return ka(()=>{var p,a;return t.loading&&(!t.items.length||f.loading)?Ht("tr",{class:"v-data-table-rows-loading",key:"loading"},[Ht("td",{colspan:P.value.length},[((p=f.loading)==null?void 0:p.call(f))??w(t.loadingText)])]):!t.loading&&!t.items.length&&!t.hideNoData?Ht("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[Ht("td",{colspan:P.value.length},[((a=f["no-data"])==null?void 0:a.call(f))??w(t.noDataText)])]):Ht(ma,null,[t.items.map((u,h)=>{var _;if(u.type==="group"){const S={index:h,item:u,columns:P.value,isExpanded:n,toggleExpand:l,isSelected:c,toggleSelect:b,toggleGroup:i,isGroupOpen:O};return f["group-header"]?f["group-header"](S):Ht(mDe,Ii({key:`group-header_${u.id}`,item:u},Zme(o,":group-header",()=>S)),f)}const m={index:h,item:u.raw,internalItem:u,columns:P.value,isExpanded:n,toggleExpand:l,isSelected:c,toggleSelect:b},v={...m,props:Ii({key:`item_${u.key??u.index}`,onClick:d.value?()=>{l(u)}:void 0,index:h,item:u,cellProps:t.cellProps,mobile:y.value},Zme(o,":row",()=>m),typeof t.rowProps=="function"?t.rowProps({item:m.item,index:m.index,internalItem:m.internalItem}):t.rowProps)};return Ht(ma,{key:v.props.key},[f.item?f.item(v):Ht(vDe,v.props,f),n(u)&&((_=f["expanded-row"])==null?void 0:_.call(f,m))])})])}),{}}});const E_e=ei({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...ys(),...S1(),...hu(),...vf()},"VTable"),Mge=Ji()({name:"VTable",props:E_e(),setup(t,e){let{slots:o,emit:f}=e;const{themeClasses:P}=ad(t),{densityClasses:d}=kx(t);return ka(()=>Ht(t.tag,{class:["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!o.top,"v-table--has-bottom":!!o.bottom,"v-table--hover":t.hover},P.value,d.value,t.class],style:t.style},{default:()=>{var l,n,c;return[(l=o.top)==null?void 0:l.call(o),o.default?Ht("div",{class:"v-table__wrapper",style:{height:Ma(t.height)}},[Ht("table",null,[o.default()])]):(n=o.wrapper)==null?void 0:n.call(o),(c=o.bottom)==null?void 0:c.call(o)]}})),{}}}),yDe=ei({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function bDe(t,e,o,f){const P=t.returnObject?e:y1(e,t.itemValue),d=y1(e,t.itemSelectable,!0),l=f.reduce((n,c)=>(c.key!=null&&(n[c.key]=y1(e,c.value)),n),{});return{type:"item",key:t.returnObject?y1(e,t.itemValue):P,index:o,value:P,selectable:d,columns:l,raw:e}}function xDe(t,e,o){return e.map((f,P)=>bDe(t,f,P,o))}function _De(t,e){return{items:Un(()=>xDe(t,t.items,e.value))}}const wDe=ei({...M_e(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...FIe(),...$Ie(),...sDe(),...yDe(),...KIe(),...eDe(),...A_e(),...E_e()},"DataTable"),ODe=ei({...ZIe(),...wDe(),...fue(),...O_e()},"VDataTable"),Iq=Ji()({name:"VDataTable",props:ODe(),emits:{"update:modelValue":t=>!0,"update:page":t=>!0,"update:itemsPerPage":t=>!0,"update:sortBy":t=>!0,"update:options":t=>!0,"update:groupBy":t=>!0,"update:expanded":t=>!0,"update:currentItems":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{groupBy:P}=VIe(t),{sortBy:d,multiSort:l,mustSort:n}=tDe(t),{page:c,itemsPerPage:b}=qIe(t),{disableSort:i}=AM(t),{columns:O,headers:w,sortFunctions:y,sortRawFunctions:p,filterFunctions:a}=hDe(t,{groupBy:P,showSelect:Oi(t,"showSelect"),showExpand:Oi(t,"showExpand")}),{items:u}=_De(t,O),h=Oi(t,"search"),{filteredItems:m}=due(t,u,h,{transform:q=>q.columns,customKeyFilter:a}),{toggleSort:v}=nDe({sortBy:d,multiSort:l,mustSort:n,page:c}),{sortByWithGroups:_,opened:S,extractRows:A,isGroupOpen:x,toggleGroup:R}=UIe({groupBy:P,sortBy:d,disableSort:i}),{sortedItems:M}=rDe(t,m,_,{transform:q=>({...q.raw,...q.columns}),sortFunctions:y,sortRawFunctions:p}),{flatItems:T}=QIe(M,P,S),E=Un(()=>T.value.length),{startIndex:C,stopIndex:L,pageCount:D,setItemsPerPage:k}=WIe({page:c,itemsPerPage:b,itemsLength:E}),{paginatedItems:I}=XIe({items:T,startIndex:C,stopIndex:L,itemsPerPage:b}),z=Un(()=>A(I.value)),{isSelected:$,select:Q,selectAll:j,toggleSelect:U,someSelected:X,allSelected:te}=JIe(t,{allItems:u,currentPage:z}),{isExpanded:W,toggleExpand:K}=NIe(t);HIe({page:c,itemsPerPage:b,sortBy:d,groupBy:P,search:h}),ib({VDataTableRows:{hideNoData:Oi(t,"hideNoData"),noDataText:Oi(t,"noDataText"),loading:Oi(t,"loading"),loadingText:Oi(t,"loadingText")}});const oe=Un(()=>({page:c.value,itemsPerPage:b.value,sortBy:d.value,pageCount:D.value,toggleSort:v,setItemsPerPage:k,someSelected:X.value,allSelected:te.value,isSelected:$,select:Q,selectAll:j,toggleSelect:U,isExpanded:W,toggleExpand:K,isGroupOpen:x,toggleGroup:R,items:z.value.map(q=>q.raw),internalItems:z.value,groupedItems:I.value,columns:O.value,headers:w.value}));return ka(()=>{const q=Tge.filterProps(t),Y=Cge.filterProps(t),ee=Age.filterProps(t),me=Mge.filterProps(t);return Ht(Mge,Ii({class:["v-data-table",{"v-data-table--show-select":t.showSelect,"v-data-table--loading":t.loading},t.class],style:t.style},me),{top:()=>{var he;return(he=f.top)==null?void 0:he.call(f,oe.value)},default:()=>{var he,se,ae,ce,de,ve;return f.default?f.default(oe.value):Ht(ma,null,[(he=f.colgroup)==null?void 0:he.call(f,oe.value),!t.hideDefaultHeader&&Ht("thead",{key:"thead"},[Ht(Cge,Y,f)]),(se=f.thead)==null?void 0:se.call(f,oe.value),!t.hideDefaultBody&&Ht("tbody",null,[(ae=f["body.prepend"])==null?void 0:ae.call(f,oe.value),f.body?f.body(oe.value):Ht(Age,Ii(o,ee,{items:I.value}),f),(ce=f["body.append"])==null?void 0:ce.call(f,oe.value)]),(de=f.tbody)==null?void 0:de.call(f,oe.value),(ve=f.tfoot)==null?void 0:ve.call(f,oe.value)])},bottom:()=>f.bottom?f.bottom(oe.value):!t.hideDefaultFooter&&Ht(ma,null,[Ht(bM,null,null),Ht(Tge,q,{prepend:f["footer.prepend"]})])})}),{}}});const SDe=ei({fluid:{type:Boolean,default:!1},...ys(),...hu()},"VContainer"),xM=Ji()({name:"VContainer",props:SDe(),setup(t,e){let{slots:o}=e;const{rtlClasses:f}=qg();return ka(()=>Ht(t.tag,{class:["v-container",{"v-container--fluid":t.fluid},f.value,t.class],style:t.style},o)),{}}}),P_e=(()=>Aq.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),R_e=(()=>Aq.reduce((t,e)=>{const o="offset"+v_(e);return t[o]={type:[String,Number],default:null},t},{}))(),L_e=(()=>Aq.reduce((t,e)=>{const o="order"+v_(e);return t[o]={type:[String,Number],default:null},t},{}))(),Ege={col:Object.keys(P_e),offset:Object.keys(R_e),order:Object.keys(L_e)};function kDe(t,e,o){let f=t;if(!(o==null||o===!1)){if(e){const P=e.replace(t,"");f+=`-${P}`}return t==="col"&&(f="v-"+f),t==="col"&&(o===""||o===!0)||(f+=`-${o}`),f.toLowerCase()}}const TDe=["auto","start","end","center","baseline","stretch"],CDe=ei({cols:{type:[Boolean,String,Number],default:!1},...P_e,offset:{type:[String,Number],default:null},...R_e,order:{type:[String,Number],default:null},...L_e,alignSelf:{type:String,default:null,validator:t=>TDe.includes(t)},...ys(),...hu()},"VCol"),hT=Ji()({name:"VCol",props:CDe(),setup(t,e){let{slots:o}=e;const f=Un(()=>{const P=[];let d;for(d in Ege)Ege[d].forEach(n=>{const c=t[n],b=kDe(d,n,c);b&&P.push(b)});const l=P.some(n=>n.startsWith("v-col-"));return P.push({"v-col":!l||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),P});return()=>{var P;return w1(t.tag,{class:[f.value,t.class],style:t.style},(P=o.default)==null?void 0:P.call(o))}}}),bue=["start","end","center"],I_e=["space-between","space-around","space-evenly"];function xue(t,e){return Aq.reduce((o,f)=>{const P=t+v_(f);return o[P]=e(),o},{})}const ADe=[...bue,"baseline","stretch"],D_e=t=>ADe.includes(t),B_e=xue("align",()=>({type:String,default:null,validator:D_e})),MDe=[...bue,...I_e],z_e=t=>MDe.includes(t),F_e=xue("justify",()=>({type:String,default:null,validator:z_e})),EDe=[...bue,...I_e,"stretch"],N_e=t=>EDe.includes(t),$_e=xue("alignContent",()=>({type:String,default:null,validator:N_e})),Pge={align:Object.keys(B_e),justify:Object.keys(F_e),alignContent:Object.keys($_e)},PDe={align:"align",justify:"justify",alignContent:"align-content"};function RDe(t,e,o){let f=PDe[t];if(o!=null){if(e){const P=e.replace(t,"");f+=`-${P}`}return f+=`-${o}`,f.toLowerCase()}}const LDe=ei({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:D_e},...B_e,justify:{type:String,default:null,validator:z_e},...F_e,alignContent:{type:String,default:null,validator:N_e},...$_e,...ys(),...hu()},"VRow"),Dq=Ji()({name:"VRow",props:LDe(),setup(t,e){let{slots:o}=e;const f=Un(()=>{const P=[];let d;for(d in Pge)Pge[d].forEach(l=>{const n=t[l],c=RDe(d,l,n);c&&P.push(c)});return P.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),P});return()=>{var P;return w1(t.tag,{class:["v-row",f.value,t.class],style:t.style},(P=o.default)==null?void 0:P.call(o))}}}),V_e=hq("v-spacer","div","VSpacer");const tD=Symbol.for("vuetify:v-expansion-panel"),U_e=ei({...ys(),...X2e()},"VExpansionPanelText"),xZ=Ji()({name:"VExpansionPanelText",props:U_e(),setup(t,e){let{slots:o}=e;const f=yl(tD);if(!f)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:P,onAfterLeave:d}=G2e(t,f.isSelected);return ka(()=>Ht(Xce,{onAfterLeave:d},{default:()=>{var l;return[Tp(Ht("div",{class:["v-expansion-panel-text",t.class],style:t.style},[o.default&&P.value&&Ht("div",{class:"v-expansion-panel-text__wrapper"},[(l=o.default)==null?void 0:l.call(o)])]),[[mS,f.isSelected.value]])]}})),{}}}),j_e=ei({color:String,expandIcon:{type:ul,default:"$expand"},collapseIcon:{type:ul,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...ys()},"VExpansionPanelTitle"),_Z=Ji()({name:"VExpansionPanelTitle",directives:{Ripple:MT},props:j_e(),setup(t,e){let{slots:o}=e;const f=yl(tD);if(!f)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:P,backgroundColorStyles:d}=ig(t,"color"),l=Un(()=>({collapseIcon:t.collapseIcon,disabled:f.disabled.value,expanded:f.isSelected.value,expandIcon:t.expandIcon,readonly:t.readonly})),n=Un(()=>f.isSelected.value?t.collapseIcon:t.expandIcon);return ka(()=>{var c;return Tp(Ht("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":f.isSelected.value,"v-expansion-panel-title--focusable":t.focusable,"v-expansion-panel-title--static":t.static},P.value,t.class],style:[d.value,t.style],type:"button",tabindex:f.disabled.value?-1:void 0,disabled:f.disabled.value,"aria-expanded":f.isSelected.value,onClick:t.readonly?void 0:f.toggle},[Ht("span",{class:"v-expansion-panel-title__overlay"},null),(c=o.default)==null?void 0:c.call(o,l.value),!t.hideActions&&Ht(du,{defaults:{VIcon:{icon:n.value}}},{default:()=>{var b;return[Ht("span",{class:"v-expansion-panel-title__icon"},[((b=o.actions)==null?void 0:b.call(o,l.value))??Ht(Al,null,null)])]}})]),[[y_("ripple"),t.ripple]])}),{}}}),Q_e=ei({title:String,text:String,bgColor:String,...Qv(),...Jce(),...pm(),...hu(),...j_e(),...U_e()},"VExpansionPanel"),H_e=Ji()({name:"VExpansionPanel",props:Q_e(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:o}=e;const f=eue(t,tD),{backgroundColorClasses:P,backgroundColorStyles:d}=ig(t,"bgColor"),{elevationClasses:l}=lb(t),{roundedClasses:n}=lg(t),c=Un(()=>(f==null?void 0:f.disabled.value)||t.disabled),b=Un(()=>f.group.items.value.reduce((w,y,p)=>(f.group.selected.value.includes(y.id)&&w.push(p),w),[])),i=Un(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===1)}),O=Un(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===-1)});return gf(tD,f),ka(()=>{const w=!!(o.text||t.text),y=!!(o.title||t.title),p=_Z.filterProps(t),a=xZ.filterProps(t);return Ht(t.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":f.isSelected.value,"v-expansion-panel--before-active":i.value,"v-expansion-panel--after-active":O.value,"v-expansion-panel--disabled":c.value},n.value,P.value,t.class],style:[d.value,t.style]},{default:()=>[Ht("div",{class:["v-expansion-panel__shadow",...l.value]},null),Ht(du,{defaults:{VExpansionPanelTitle:{...p},VExpansionPanelText:{...a}}},{default:()=>{var u;return[y&&Ht(_Z,{key:"title"},{default:()=>[o.title?o.title():t.title]}),w&&Ht(xZ,{key:"text"},{default:()=>[o.text?o.text():t.text]}),(u=o.default)==null?void 0:u.call(o)]}})]})}),{groupItem:f}}}),IDe=["default","accordion","inset","popout"],DDe=ei({flat:Boolean,...mq(),...Vce(Q_e(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...vf(),...ys(),...hu(),variant:{type:String,default:"default",validator:t=>IDe.includes(t)}},"VExpansionPanels"),Z_e=Ji()({name:"VExpansionPanels",props:DDe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{next:f,prev:P}=gq(t,tD),{themeClasses:d}=ad(t),l=Un(()=>t.variant&&`v-expansion-panels--variant-${t.variant}`);return ib({VExpansionPanel:{bgColor:Oi(t,"bgColor"),collapseIcon:Oi(t,"collapseIcon"),color:Oi(t,"color"),eager:Oi(t,"eager"),elevation:Oi(t,"elevation"),expandIcon:Oi(t,"expandIcon"),focusable:Oi(t,"focusable"),hideActions:Oi(t,"hideActions"),readonly:Oi(t,"readonly"),ripple:Oi(t,"ripple"),rounded:Oi(t,"rounded"),static:Oi(t,"static")}}),ka(()=>Ht(t.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":t.flat,"v-expansion-panels--tile":t.tile},d.value,l.value,t.class],style:t.style},{default:()=>{var n;return[(n=o.default)==null?void 0:n.call(o,{prev:P,next:f})]}})),{next:f,prev:P}}});const BDe=ei({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...k_(),...ys(),...Qv(),...qce(),...pm(),...hu({tag:"footer"}),...vf()},"VFooter"),zDe=Ji()({name:"VFooter",props:BDe(),setup(t,e){let{slots:o}=e;const f=ti(),P=Ai(),{themeClasses:d}=ad(t),{backgroundColorClasses:l,backgroundColorStyles:n}=ig(Oi(t,"color")),{borderClasses:c}=DO(t),{elevationClasses:b}=lb(t),{roundedClasses:i}=lg(t),O=Ai(32),{resizeRef:w}=dS(p=>{p.length&&(O.value=p[0].target.clientHeight)}),y=Un(()=>t.height==="auto"?O.value:parseInt(t.height,10));return x1(()=>t.app,()=>{const p=Wce({id:t.name,order:Un(()=>parseInt(t.order,10)),position:Un(()=>"bottom"),layoutSize:y,elementSize:Un(()=>t.height==="auto"?void 0:y.value),active:Un(()=>t.app),absolute:Oi(t,"absolute")});kp(()=>{f.value=p.layoutItemStyles.value,P.value=p.layoutIsReady})}),ka(()=>Ht(t.tag,{ref:w,class:["v-footer",d.value,l.value,c.value,b.value,i.value,t.class],style:[n.value,t.app?f.value:{height:Ma(t.height)},t.style]},o)),t.app?P.value:{}}}),FDe=ei({...ys(),...pRe()},"VForm"),NDe=Ji()({name:"VForm",props:FDe(),emits:{"update:modelValue":t=>!0,submit:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=mRe(t),d=ti();function l(c){c.preventDefault(),P.reset()}function n(c){const b=c,i=P.validate();b.then=i.then.bind(i),b.catch=i.catch.bind(i),b.finally=i.finally.bind(i),f("submit",b),b.defaultPrevented||i.then(O=>{var y;let{valid:w}=O;w&&((y=d.value)==null||y.submit())}),b.preventDefault()}return ka(()=>{var c;return Ht("form",{ref:d,class:["v-form",t.class],style:t.style,novalidate:!0,onReset:l,onSubmit:n},[(c=o.default)==null?void 0:c.call(o,P)])}),T_(P,d)}});const $De=ei({scrollable:Boolean,...ys(),...O_(),...hu({tag:"main"})},"VMain"),VDe=Ji()({name:"VMain",props:$De(),setup(t,e){let{slots:o}=e;const{dimensionStyles:f}=S_(t),{mainStyles:P,layoutIsReady:d}=qxe(),{ssrBootStyles:l}=pq();return ka(()=>Ht(t.tag,{class:["v-main",{"v-main--scrollable":t.scrollable},t.class],style:[P.value,l.value,f.value,t.style]},{default:()=>{var n,c;return[t.scrollable?Ht("div",{class:"v-main__scroller"},[(n=o.default)==null?void 0:n.call(o)]):(c=o.default)==null?void 0:c.call(o)]}})),d}});function UDe(t){let{rootEl:e,isSticky:o,layoutItemStyles:f}=t;const P=Ai(!1),d=Ai(0),l=Un(()=>{const b=typeof P.value=="boolean"?"top":P.value;return[o.value?{top:"auto",bottom:"auto",height:void 0}:void 0,P.value?{[b]:Ma(d.value)}:{top:f.value.top}]});sg(()=>{Ni(o,b=>{b?window.addEventListener("scroll",c,{passive:!0}):window.removeEventListener("scroll",c)},{immediate:!0})}),dm(()=>{window.removeEventListener("scroll",c)});let n=0;function c(){const b=n>window.scrollY?"up":"down",i=e.value.getBoundingClientRect(),O=parseFloat(f.value.top??0),w=window.scrollY-Math.max(0,d.value-O),y=i.height+Math.max(d.value,O)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(e.value).getPropertyValue("--v-body-scroll-y"))||0;i.height0;o--){if(t[o].t===t[o-1].t)continue;const f=Rge(e),P=(t[o].d-t[o-1].d)/(t[o].t-t[o-1].t);e+=(P-f)*Math.abs(P),o===t.length-1&&(e*=.5)}return Rge(e)*1e3}function HDe(){const t={};function e(P){Array.from(P.changedTouches).forEach(d=>{(t[d.identifier]??(t[d.identifier]=new TPe(QDe))).push([P.timeStamp,d])})}function o(P){Array.from(P.changedTouches).forEach(d=>{delete t[d.identifier]})}function f(P){var b;const d=(b=t[P])==null?void 0:b.values().reverse();if(!d)throw new Error(`No samples for touch id ${P}`);const l=d[0],n=[],c=[];for(const i of d){if(l[0]-i[0]>jDe)break;n.push({t:i[0],d:i[1].clientX}),c.push({t:i[0],d:i[1].clientY})}return{x:Lge(n),y:Lge(c),get direction(){const{x:i,y:O}=this,[w,y]=[Math.abs(i),Math.abs(O)];return w>y&&i>=0?"right":w>y&&i<=0?"left":y>w&&O>=0?"down":y>w&&O<=0?"up":ZDe()}}}return{addMovement:e,endTouch:o,getVelocity:f}}function ZDe(){throw new Error}function qDe(t){let{el:e,isActive:o,isTemporary:f,width:P,touchless:d,position:l}=t;sg(()=>{window.addEventListener("touchstart",m,{passive:!0}),window.addEventListener("touchmove",v,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),dm(()=>{window.removeEventListener("touchstart",m),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",_)});const n=Un(()=>["left","right"].includes(l.value)),{addMovement:c,endTouch:b,getVelocity:i}=HDe();let O=!1;const w=Ai(!1),y=Ai(0),p=Ai(0);let a;function u(A,x){return(l.value==="left"?A:l.value==="right"?document.documentElement.clientWidth-A:l.value==="top"?A:l.value==="bottom"?document.documentElement.clientHeight-A:LA())-(x?P.value:0)}function h(A){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const R=l.value==="left"?(A-p.value)/P.value:l.value==="right"?(document.documentElement.clientWidth-A-p.value)/P.value:l.value==="top"?(A-p.value)/P.value:l.value==="bottom"?(document.documentElement.clientHeight-A-p.value)/P.value:LA();return x?Math.max(0,Math.min(1,R)):R}function m(A){if(d.value)return;const x=A.changedTouches[0].clientX,R=A.changedTouches[0].clientY,M=25,T=l.value==="left"?xdocument.documentElement.clientWidth-M:l.value==="top"?Rdocument.documentElement.clientHeight-M:LA(),E=o.value&&(l.value==="left"?xdocument.documentElement.clientWidth-P.value:l.value==="top"?Rdocument.documentElement.clientHeight-P.value:LA());(T||E||o.value&&f.value)&&(a=[x,R],p.value=u(n.value?x:R,o.value),y.value=h(n.value?x:R),O=p.value>-20&&p.value<80,b(A),c(A))}function v(A){const x=A.changedTouches[0].clientX,R=A.changedTouches[0].clientY;if(O){if(!A.cancelable){O=!1;return}const T=Math.abs(x-a[0]),E=Math.abs(R-a[1]);(n.value?T>E&&T>3:E>T&&E>3)?(w.value=!0,O=!1):(n.value?E:T)>3&&(O=!1)}if(!w.value)return;A.preventDefault(),c(A);const M=h(n.value?x:R,!1);y.value=Math.max(0,Math.min(1,M)),M>1?p.value=u(n.value?x:R,!0):M<0&&(p.value=u(n.value?x:R,!1))}function _(A){if(O=!1,!w.value)return;c(A),w.value=!1;const x=i(A.changedTouches[0].identifier),R=Math.abs(x.x),M=Math.abs(x.y);(n.value?R>M&&R>400:M>R&&M>3)?o.value=x.direction===({left:"right",right:"left",top:"down",bottom:"up"}[l.value]||LA()):o.value=y.value>.5}const S=Un(()=>w.value?{transform:l.value==="left"?`translateX(calc(-100% + ${y.value*P.value}px))`:l.value==="right"?`translateX(calc(100% - ${y.value*P.value}px))`:l.value==="top"?`translateY(calc(-100% + ${y.value*P.value}px))`:l.value==="bottom"?`translateY(calc(100% - ${y.value*P.value}px))`:LA(),transition:"none"}:void 0);return x1(w,()=>{var R,M;const A=((R=e.value)==null?void 0:R.style.transform)??null,x=((M=e.value)==null?void 0:M.style.transition)??null;kp(()=>{var T,E,C,L;(E=e.value)==null||E.style.setProperty("transform",((T=S.value)==null?void 0:T.transform)||"none"),(L=e.value)==null||L.style.setProperty("transition",((C=S.value)==null?void 0:C.transition)||null)}),ag(()=>{var T,E;(T=e.value)==null||T.style.setProperty("transform",A),(E=e.value)==null||E.style.setProperty("transition",x)})}),{isDragging:w,dragProgress:y,dragStyles:S}}function LA(){throw new Error}const WDe=["start","end","left","right","top","bottom"],YDe=ei({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:t=>WDe.includes(t)},sticky:Boolean,...k_(),...ys(),...q2e(),...CD({mobile:null}),...Qv(),...qce(),...pm(),...hu({tag:"nav"}),...vf()},"VNavigationDrawer"),q_e=Ji()({name:"VNavigationDrawer",props:YDe(),emits:{"update:modelValue":t=>!0,"update:rail":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{isRtl:d}=qg(),{themeClasses:l}=ad(t),{borderClasses:n}=DO(t),{backgroundColorClasses:c,backgroundColorStyles:b}=ig(Oi(t,"color")),{elevationClasses:i}=lb(t),{displayClasses:O,mobile:w}=xS(t),{roundedClasses:y}=lg(t),p=m2e(),a=bl(t,"modelValue",null,X=>!!X),{ssrBootStyles:u}=pq(),{scopeId:h}=zM(),m=ti(),v=Ai(!1),{runOpenDelay:_,runCloseDelay:S}=W2e(t,X=>{v.value=X}),A=Un(()=>t.rail&&t.expandOnHover&&v.value?Number(t.width):Number(t.rail?t.railWidth:t.width)),x=Un(()=>Lse(t.location,d.value)),R=Un(()=>t.persistent),M=Un(()=>!t.permanent&&(w.value||t.temporary)),T=Un(()=>t.sticky&&!M.value&&x.value!=="bottom");x1(()=>t.expandOnHover&&t.rail!=null,()=>{Ni(v,X=>f("update:rail",!X))}),x1(()=>!t.disableResizeWatcher,()=>{Ni(M,X=>!t.permanent&&lc(()=>a.value=!X))}),x1(()=>!t.disableRouteWatcher&&!!p,()=>{Ni(p.currentRoute,()=>M.value&&(a.value=!1))}),Ni(()=>t.permanent,X=>{X&&(a.value=!0)}),t.modelValue==null&&!M.value&&(a.value=t.permanent||!w.value);const{isDragging:E,dragProgress:C}=qDe({el:m,isActive:a,isTemporary:M,width:A,touchless:Oi(t,"touchless"),position:x}),L=Un(()=>{const X=M.value?0:t.rail&&t.expandOnHover?Number(t.railWidth):A.value;return E.value?X*C.value:X}),D=Un(()=>["top","bottom"].includes(t.location)?0:A.value),{layoutItemStyles:k,layoutItemScrimStyles:I,layoutIsReady:z}=Wce({id:t.name,order:Un(()=>parseInt(t.order,10)),position:x,layoutSize:L,elementSize:D,active:Un(()=>a.value||E.value),disableTransitions:Un(()=>E.value),absolute:Un(()=>t.absolute||T.value&&typeof $.value!="string")}),{isStuck:$,stickyStyles:Q}=UDe({rootEl:m,isSticky:T,layoutItemStyles:k}),j=ig(Un(()=>typeof t.scrim=="string"?t.scrim:null)),U=Un(()=>({...E.value?{opacity:C.value*.2,transition:"none"}:void 0,...I.value}));return ib({VList:{bgColor:"transparent"}}),ka(()=>{const X=P.image||t.image;return Ht(ma,null,[Ht(t.tag,Ii({ref:m,onMouseenter:_,onMouseleave:S,class:["v-navigation-drawer",`v-navigation-drawer--${x.value}`,{"v-navigation-drawer--expand-on-hover":t.expandOnHover,"v-navigation-drawer--floating":t.floating,"v-navigation-drawer--is-hovering":v.value,"v-navigation-drawer--rail":t.rail,"v-navigation-drawer--temporary":M.value,"v-navigation-drawer--persistent":R.value,"v-navigation-drawer--active":a.value,"v-navigation-drawer--sticky":T.value},l.value,c.value,n.value,O.value,i.value,y.value,t.class],style:[b.value,k.value,u.value,Q.value,t.style,["top","bottom"].includes(x.value)?{height:"auto"}:{}]},h,o),{default:()=>{var te,W,K;return[X&&Ht("div",{key:"image",class:"v-navigation-drawer__img"},[P.image?Ht(du,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:t.image}}},P.image):Ht(kT,{key:"image-img",alt:"",cover:!0,height:"inherit",src:t.image},null)]),P.prepend&&Ht("div",{class:"v-navigation-drawer__prepend"},[(te=P.prepend)==null?void 0:te.call(P)]),Ht("div",{class:"v-navigation-drawer__content"},[(W=P.default)==null?void 0:W.call(P)]),P.append&&Ht("div",{class:"v-navigation-drawer__append"},[(K=P.append)==null?void 0:K.call(P)])]}}),Ht(h_,{name:"fade-transition"},{default:()=>[M.value&&(E.value||a.value)&&!!t.scrim&&Ht("div",Ii({class:["v-navigation-drawer__scrim",j.backgroundColorClasses.value],style:[U.value,j.backgroundColorStyles.value],onClick:()=>{R.value||(a.value=!1)}},h),null)]})])}),z.then(()=>({isStuck:$}))}}),XDe=ei({...Tq(),...BM(),...o_e(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),_ue=Ji()({name:"VRangeSlider",props:XDe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,end:t=>!0,start:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=ti(),d=ti(),l=ti(),{rtlClasses:n}=qg();function c(T){if(!P.value||!d.value)return;const E=jse(T,P.value.$el,t.direction),C=jse(T,d.value.$el,t.direction),L=Math.abs(E),D=Math.abs(C);return LT!=null&&T.length?T.map(E=>b.roundValue(E)):[0,0]),{activeThumbRef:O,hasLabels:w,max:y,min:p,mousePressed:a,onSliderMousedown:u,onSliderTouchstart:h,position:m,trackContainerRef:v,readonly:_}=a_e({props:t,steps:b,onSliderStart:()=>{f("start",i.value)},onSliderEnd:T=>{var L;let{value:E}=T;const C=O.value===((L=P.value)==null?void 0:L.$el)?[E,i.value[1]]:[i.value[0],E];!t.strict&&C[0]{var D,k,I,z;let{value:E}=T;const[C,L]=i.value;!t.strict&&C===L&&C!==p.value&&(O.value=E>C?(D=d.value)==null?void 0:D.$el:(k=P.value)==null?void 0:k.$el,(I=O.value)==null||I.focus()),O.value===((z=P.value)==null?void 0:z.$el)?i.value=[Math.min(E,L),L]:i.value=[C,Math.max(C,E)]},getActiveThumb:c}),{isFocused:S,focus:A,blur:x}=DM(t),R=Un(()=>m(i.value[0])),M=Un(()=>m(i.value[1]));return ka(()=>{const T=p_.filterProps(t),E=!!(t.label||o.label||o.prepend);return Ht(p_,Ii({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!o["tick-label"]||w.value,"v-slider--focused":S.value,"v-slider--pressed":a.value,"v-slider--disabled":t.disabled},n.value,t.class],style:t.style,ref:l},T,{focused:S.value}),{...o,prepend:E?C=>{var L,D;return Ht(ma,null,[((L=o.label)==null?void 0:L.call(o,C))??(t.label?Ht(kq,{class:"v-slider__label",text:t.label},null):void 0),(D=o.prepend)==null?void 0:D.call(o,C)])}:void 0,default:C=>{var k,I;let{id:L,messagesId:D}=C;return Ht("div",{class:"v-slider__container",onMousedown:_.value?void 0:u,onTouchstartPassive:_.value?void 0:h},[Ht("input",{id:`${L.value}_start`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[0]},null),Ht("input",{id:`${L.value}_stop`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[1]},null),Ht(s_e,{ref:v,start:R.value,stop:M.value},{"tick-label":o["tick-label"]}),Ht(Qse,{ref:P,"aria-describedby":D.value,focused:S&&O.value===((k=P.value)==null?void 0:k.$el),modelValue:i.value[0],"onUpdate:modelValue":z=>i.value=[z,i.value[1]],onFocus:z=>{var $,Q,j,U;A(),O.value=($=P.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[1]===p.value&&z.relatedTarget!==((Q=d.value)==null?void 0:Q.$el)&&((j=P.value)==null||j.$el.blur(),(U=d.value)==null||U.$el.focus())},onBlur:()=>{x(),O.value=void 0},min:p.value,max:i.value[1],position:R.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]}),Ht(Qse,{ref:d,"aria-describedby":D.value,focused:S&&O.value===((I=d.value)==null?void 0:I.$el),modelValue:i.value[1],"onUpdate:modelValue":z=>i.value=[i.value[0],z],onFocus:z=>{var $,Q,j,U;A(),O.value=($=d.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[0]===y.value&&z.relatedTarget!==((Q=P.value)==null?void 0:Q.$el)&&((j=d.value)==null||j.$el.blur(),(U=P.value)==null||U.$el.focus())},onBlur:()=>{x(),O.value=void 0},min:i.value[0],max:y.value,position:M.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]})])}})}),{}}});const GDe=ei({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:ul,default:"$ratingEmpty"},fullIcon:{type:ul,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},ripple:Boolean,...ys(),...S1(),...AT(),...hu(),...vf()},"VRating"),wue=Ji()({name:"VRating",props:GDe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=sb(),{themeClasses:P}=ad(t),d=bl(t,"modelValue"),l=Un(()=>rg(parseFloat(d.value),0,+t.length)),n=Un(()=>X4(Number(t.length),1)),c=Un(()=>n.value.flatMap(a=>t.halfIncrements?[a-.5,a]:[a])),b=Ai(-1),i=Un(()=>c.value.map(a=>{const u=t.hover&&b.value>-1,h=l.value>=a,m=b.value>=a,_=(u?m:h)?t.fullIcon:t.emptyIcon,S=t.activeColor??t.color,A=h||m?S:t.color;return{isFilled:h,isHovered:m,icon:_,color:A}})),O=Un(()=>[0,...c.value].map(a=>{function u(){b.value=a}function h(){b.value=-1}function m(){t.disabled||t.readonly||(d.value=l.value===a&&t.clearable?0:a)}return{onMouseenter:t.hover?u:void 0,onMouseleave:t.hover?h:void 0,onClick:m}})),w=Un(()=>t.name??`v-rating-${O1()}`);function y(a){var R,M;let{value:u,index:h,showStar:m=!0}=a;const{onMouseenter:v,onMouseleave:_,onClick:S}=O.value[h+1],A=`${w.value}-${String(u).replace(".","-")}`,x={color:(R=i.value[h])==null?void 0:R.color,density:t.density,disabled:t.disabled,icon:(M=i.value[h])==null?void 0:M.icon,ripple:t.ripple,size:t.size,variant:"plain"};return Ht(ma,null,[Ht("label",{for:A,class:{"v-rating__item--half":t.halfIncrements&&u%1>0,"v-rating__item--full":t.halfIncrements&&u%1===0},onMouseenter:v,onMouseleave:_,onClick:S},[Ht("span",{class:"v-rating__hidden"},[f(t.itemAriaLabel,u,t.length)]),m?o.item?o.item({...i.value[h],props:x,value:u,index:h,rating:l.value}):Ht(ls,Ii({"aria-label":f(t.itemAriaLabel,u,t.length)},x),null):void 0]),Ht("input",{class:"v-rating__hidden",name:w.value,id:A,type:"radio",value:u,checked:l.value===u,tabindex:-1,readonly:t.readonly,disabled:t.disabled},null)])}function p(a){return o["item-label"]?o["item-label"](a):a.label?Ht("span",null,[a.label]):Ht("span",null,[Ss(" ")])}return ka(()=>{var u;const a=!!((u=t.itemLabels)!=null&&u.length)||o["item-label"];return Ht(t.tag,{class:["v-rating",{"v-rating--hover":t.hover,"v-rating--readonly":t.readonly},P.value,t.class],style:t.style},{default:()=>[Ht(y,{value:0,index:-1,showStar:!1},null),n.value.map((h,m)=>{var v,_;return Ht("div",{class:"v-rating__wrapper"},[a&&t.itemLabelPosition==="top"?p({value:h,index:m,label:(v=t.itemLabels)==null?void 0:v[m]}):void 0,Ht("div",{class:"v-rating__item"},[t.halfIncrements?Ht(ma,null,[Ht(y,{value:h-.5,index:m*2},null),Ht(y,{value:h,index:m*2+1},null)]):Ht(y,{value:h,index:m},null)]),a&&t.itemLabelPosition==="bottom"?p({value:h,index:m,label:(_=t.itemLabels)==null?void 0:_[m]}):void 0])})]})}),{}}});function KDe(t){const e=Ai(t());let o=-1;function f(){clearInterval(o)}function P(){f(),lc(()=>e.value=t())}function d(l){const n=l?getComputedStyle(l):{transitionDuration:.2},c=parseFloat(n.transitionDuration)*1e3||200;if(f(),e.value<=0)return;const b=performance.now();o=window.setInterval(()=>{const i=performance.now()-b+c;e.value=Math.max(t()-i,0),e.value<=0&&f()},c)}return ag(f),{clear:f,time:e,start:d,reset:P}}const JDe=ei({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...kD({location:"bottom"}),..._q(),...pm(),...Tx(),...vf(),...__(MD({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),eBe=Ji()({name:"VSnackbar",props:JDe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=bl(t,"modelValue"),{positionClasses:P}=wq(t),{scopeId:d}=zM(),{themeClasses:l}=ad(t),{colorClasses:n,colorStyles:c,variantClasses:b}=CT(t),{roundedClasses:i}=lg(t),O=KDe(()=>Number(t.timeout)),w=ti(),y=ti(),p=Ai(!1),a=Ai(0),u=ti(),h=yl(XI,void 0);x1(()=>!!h,()=>{const T=qxe();kp(()=>{u.value=T.mainStyles.value})}),Ni(f,v),Ni(()=>t.timeout,v),sg(()=>{f.value&&v()});let m=-1;function v(){O.reset(),window.clearTimeout(m);const T=Number(t.timeout);if(!f.value||T===-1)return;const E=$ce(y.value);O.start(E),m=window.setTimeout(()=>{f.value=!1},T)}function _(){O.reset(),window.clearTimeout(m)}function S(){p.value=!0,_()}function A(){p.value=!1,v()}function x(T){a.value=T.touches[0].clientY}function R(T){Math.abs(a.value-T.changedTouches[0].clientY)>50&&(f.value=!1)}const M=Un(()=>t.location.split(" ").reduce((T,E)=>(T[`v-snackbar--${E}`]=!0,T),{}));return ka(()=>{const T=hS.filterProps(t),E=!!(o.default||o.text||t.text);return Ht(hS,Ii({ref:w,class:["v-snackbar",{"v-snackbar--active":f.value,"v-snackbar--multi-line":t.multiLine&&!t.vertical,"v-snackbar--timer":!!t.timer,"v-snackbar--vertical":t.vertical},M.value,P.value,t.class],style:[u.value,t.style]},T,{modelValue:f.value,"onUpdate:modelValue":C=>f.value=C,contentProps:Ii({class:["v-snackbar__wrapper",l.value,n.value,i.value,b.value],style:[c.value],onPointerenter:S,onPointerleave:A},T.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:x,onTouchend:R},d),{default:()=>{var C,L;return[TT(!1,"v-snackbar"),t.timer&&!p.value&&Ht("div",{key:"timer",class:"v-snackbar__timer"},[Ht(p2e,{ref:y,color:typeof t.timer=="string"?t.timer:"info",max:t.timeout,"model-value":O.time.value},null)]),E&&Ht("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((C=o.text)==null?void 0:C.call(o))??t.text,(L=o.default)==null?void 0:L.call(o)]),o.actions&&Ht(du,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[Ht("div",{class:"v-snackbar__actions"},[o.actions({isActive:f})])]})]},activator:o.activator})}),T_({},w)}});const tBe=ei({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...BM(),...tue()},"VSwitch"),VA=Ji()({name:"VSwitch",inheritAttrs:!1,props:tBe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const P=bl(t,"indeterminate"),d=bl(t,"modelValue"),{loaderClasses:l}=TD(t),{isFocused:n,focus:c,blur:b}=DM(t),i=ti(),O=ou&&window.matchMedia("(forced-colors: active)").matches,w=Un(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),y=O1(),p=Un(()=>t.id||`switch-${y}`);function a(){P.value&&(P.value=!1)}function u(h){var m,v;h.stopPropagation(),h.preventDefault(),(v=(m=i.value)==null?void 0:m.input)==null||v.click()}return ka(()=>{const[h,m]=fq(o),v=p_.filterProps(t),_=gZ.filterProps(t);return Ht(p_,Ii({class:["v-switch",{"v-switch--flat":t.flat},{"v-switch--inset":t.inset},{"v-switch--indeterminate":P.value},l.value,t.class]},h,v,{modelValue:d.value,"onUpdate:modelValue":S=>d.value=S,id:p.value,focused:n.value,style:t.style}),{...f,default:S=>{let{id:A,messagesId:x,isDisabled:R,isReadonly:M,isValid:T}=S;const E={model:d,isValid:T};return Ht(gZ,Ii({ref:i},_,{modelValue:d.value,"onUpdate:modelValue":[C=>d.value=C,a],id:A.value,"aria-describedby":x.value,type:"checkbox","aria-checked":P.value?"mixed":void 0,disabled:R.value,readonly:M.value,onFocus:c,onBlur:b},m),{...f,default:C=>{let{backgroundColorClasses:L,backgroundColorStyles:D}=C;return Ht("div",{class:["v-switch__track",O?void 0:L.value],style:D.value,onClick:u},[f["track-true"]&&Ht("div",{key:"prepend",class:"v-switch__track-true"},[f["track-true"](E)]),f["track-false"]&&Ht("div",{key:"append",class:"v-switch__track-false"},[f["track-false"](E)])])},input:C=>{let{inputNode:L,icon:D,backgroundColorClasses:k,backgroundColorStyles:I}=C;return Ht(ma,null,[L,Ht("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||t.loading},t.inset||O?void 0:k.value],style:t.inset?void 0:I.value},[f.thumb?Ht(du,{defaults:{VIcon:{icon:D,size:"x-small"}}},{default:()=>[f.thumb({...E,icon:D})]}):Ht(Jxe,null,{default:()=>[t.loading?Ht(xq,{name:"v-switch",active:!0,color:T.value===!1?void 0:w.value},{default:z=>f.loader?f.loader(z):Ht(LM,{active:z.isActive,color:z.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&Ht(Al,{key:String(D),icon:D,size:"x-small"},null)]})])])}})}})}),{}}});const nBe=ei({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseFloat(t))},maxRows:{type:[Number,String],validator:t=>!isNaN(parseFloat(t))},suffix:String,modelModifiers:Object,...BM(),...aue()},"VTextarea"),RD=Ji()({name:"VTextarea",directives:{Intersect:Kce},inheritAttrs:!1,props:nBe(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const d=bl(t,"modelValue"),{isFocused:l,focus:n,blur:c}=DM(t),b=Un(()=>typeof t.counterValue=="function"?t.counterValue(d.value):(d.value||"").toString().length),i=Un(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter});function O(E,C){var L,D;!t.autofocus||!E||(D=(L=C[0].target)==null?void 0:L.focus)==null||D.call(L)}const w=ti(),y=ti(),p=Ai(""),a=ti(),u=Un(()=>t.persistentPlaceholder||l.value||t.active);function h(){var E;a.value!==document.activeElement&&((E=a.value)==null||E.focus()),l.value||n()}function m(E){h(),f("click:control",E)}function v(E){f("mousedown:control",E)}function _(E){E.stopPropagation(),h(),lc(()=>{d.value="",Lxe(t["onClick:clear"],E)})}function S(E){var L;const C=E.target;if(d.value=C.value,(L=t.modelModifiers)!=null&&L.trim){const D=[C.selectionStart,C.selectionEnd];lc(()=>{C.selectionStart=D[0],C.selectionEnd=D[1]})}}const A=ti(),x=ti(+t.rows),R=Un(()=>["plain","underlined"].includes(t.variant));kp(()=>{t.autoGrow||(x.value=+t.rows)});function M(){t.autoGrow&&lc(()=>{if(!A.value||!y.value)return;const E=getComputedStyle(A.value),C=getComputedStyle(y.value.$el),L=parseFloat(E.getPropertyValue("--v-field-padding-top"))+parseFloat(E.getPropertyValue("--v-input-padding-top"))+parseFloat(E.getPropertyValue("--v-field-padding-bottom")),D=A.value.scrollHeight,k=parseFloat(E.lineHeight),I=Math.max(parseFloat(t.rows)*k+L,parseFloat(C.getPropertyValue("--v-input-control-height"))),z=parseFloat(t.maxRows)*k+L||1/0,$=rg(D??0,I,z);x.value=Math.floor(($-L)/k),p.value=Ma($)})}sg(M),Ni(d,M),Ni(()=>t.rows,M),Ni(()=>t.maxRows,M),Ni(()=>t.density,M);let T;return Ni(A,E=>{E?(T=new ResizeObserver(M),T.observe(A.value)):T==null||T.disconnect()}),dm(()=>{T==null||T.disconnect()}),ka(()=>{const E=!!(P.counter||t.counter||t.counterValue),C=!!(E||P.details),[L,D]=fq(o),{modelValue:k,...I}=p_.filterProps(t),z=t_e(t);return Ht(p_,Ii({ref:w,modelValue:d.value,"onUpdate:modelValue":$=>d.value=$,class:["v-textarea v-text-field",{"v-textarea--prefixed":t.prefix,"v-textarea--suffixed":t.suffix,"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-textarea--auto-grow":t.autoGrow,"v-textarea--no-resize":t.noResize||t.autoGrow,"v-input--plain-underlined":R.value},t.class],style:t.style},L,I,{centerAffix:x.value===1&&!R.value,focused:l.value}),{...P,default:$=>{let{id:Q,isDisabled:j,isDirty:U,isReadonly:X,isValid:te}=$;return Ht(sue,Ii({ref:y,style:{"--v-textarea-control-height":p.value},onClick:m,onMousedown:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},z,{id:Q.value,active:u.value||U.value,centerAffix:x.value===1&&!R.value,dirty:U.value||t.dirty,disabled:j.value,focused:l.value,error:te.value===!1}),{...P,default:W=>{let{props:{class:K,...oe}}=W;return Ht(ma,null,[t.prefix&&Ht("span",{class:"v-text-field__prefix"},[t.prefix]),Tp(Ht("textarea",Ii({ref:a,class:K,value:d.value,onInput:S,autofocus:t.autofocus,readonly:X.value,disabled:j.value,placeholder:t.placeholder,rows:t.rows,name:t.name,onFocus:h,onBlur:c},oe,D),null),[[y_("intersect"),{handler:O},null,{once:!0}]]),t.autoGrow&&Tp(Ht("textarea",{class:[K,"v-textarea__sizer"],id:`${oe.id}-sizer`,"onUpdate:modelValue":q=>d.value=q,ref:A,readonly:!0,"aria-hidden":"true"},null),[[I5e,d.value]]),t.suffix&&Ht("span",{class:"v-text-field__suffix"},[t.suffix])])}})},details:C?$=>{var Q;return Ht(ma,null,[(Q=P.details)==null?void 0:Q.call(P,$),E&&Ht(ma,null,[Ht("span",null,null),Ht(e_e,{active:t.persistentCounter||l.value,value:b.value,max:i.value,disabled:t.disabled},P.counter)])])}:void 0})}),T_({},w,y,a)}});const rBe=ei({id:String,text:String,...__(MD({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),W_e=Ji()({name:"VTooltip",props:rBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=bl(t,"modelValue"),{scopeId:P}=zM(),d=O1(),l=Un(()=>t.id||`v-tooltip-${d}`),n=ti(),c=Un(()=>t.location.split(" ").length>1?t.location:t.location+" center"),b=Un(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),i=Un(()=>t.transition?t.transition:f.value?"scale-transition":"fade-transition"),O=Un(()=>Ii({"aria-describedby":l.value},t.activatorProps));return ka(()=>{const w=hS.filterProps(t);return Ht(hS,Ii({ref:n,class:["v-tooltip",t.class],style:t.style,id:l.value},w,{modelValue:f.value,"onUpdate:modelValue":y=>f.value=y,transition:i.value,absolute:!0,location:c.value,origin:b.value,persistent:!0,role:"tooltip",activatorProps:O.value,_disableGlobalStack:!0},P),{activator:o.activator,default:function(){var u;for(var y=arguments.length,p=new Array(y),a=0;a{const P=o.replace(/_/g,"-");return e[P]=f,e},{})},getEventBindings(t){return t.component==="v-card"?{}:{[t.triggerEvent]:()=>this.runCode(!0,t.id,t.value),keydown:e=>this.handleEnterPress(e,t.id,t.component,t.value)}},handleEnterPress(t,e,o,f){t.key==="Enter"&&(o==="v-text-field"||o==="v-textarea"||o==="v-number-input")&&this.runCode(!0,e,f)},getChildren(t){return t.map(e=>this.allComponents[e])},runCode(t,e,o){this.allComponents[e].component==="v-btn"&&(o=!0,this.allComponents[e].value=!0),this.$emit("runCode",t,e,o)}}},sBe={key:0},lBe={key:1};function cBe(t,e,o,f,P,d){const l=Zd("plotly-plot"),n=Zd("component-wrapper",!0);return Do(!0),Da(ma,null,ob(o.renderComponents,c=>(Do(),Da("div",{key:c.id},[Ht(Dq,{class:"pa-5"},{default:Oo(()=>[c.component==="plotly-plot"?(Do(),sa(l,{key:0,id:c.id,figureJson:c.figure_json},null,8,["id","figureJson"])):c.component==="zt-html"?(Do(),sa(xM,{key:1,innerHTML:c.v_html},null,8,["innerHTML"])):(Do(),sa(kI(c.component),Ii({key:2},d.componentBind(c),{modelValue:c.value,"onUpdate:modelValue":b=>c.value=b},CSe(d.getEventBindings(c))),U1e({_:2},[c.component!=="v-data-table"?{name:"default",fn:Oo(()=>[c.childComponents?(Do(),Da("div",sBe,[Ht(n,{renderComponents:d.getChildren(c.childComponents),allComponents:o.allComponents,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):c.component==="v-btn"?(Do(),Da("div",lBe,sc(c.text),1)):Za("",!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"]))]),_:2},1024)]))),128)}const Y_e=hm(aBe,[["render",cBe]]),uBe={emits:["runCode"],components:{"v-slider":gue,"v-rating":wue,"v-text-field":um,"v-textarea":RD,"v-range-slider":_ue,"v-select":ED,"v-combobox":vue,"v-btn":ls,"v-img":kT,"v-data-table":Iq,"v-autocomplete":hue,"v-card":BO,"v-text":Oue,"plotly-plot":Kle,"component-wrapper":Y_e},props:{rowData:{type:Object},columnData:{type:Object},components:{type:Object,required:!0}},methods:{runCode(t,e,o){this.$emit("runCode",t,e,o)},componentWidth(t){return t.width?t.width:!1}}},fBe={key:0},dBe={key:1},hBe={key:1},pBe={key:0},mBe={key:1};function gBe(t,e,o,f,P,d){const l=Zd("component-wrapper"),n=Zd("layout-component",!0);return Do(),Da(ma,null,[o.rowData?(Do(),sa(Dq,{key:0},{default:Oo(()=>[(Do(!0),Da(ma,null,ob(o.rowData.components,(c,b)=>(Do(),sa(hT,{key:b,cols:d.componentWidth(c)},{default:Oo(()=>[typeof c=="string"?(Do(),Da("div",fBe,[Ht(l,{renderComponents:[o.components[c]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Do(),Da("div",dBe,[Ht(n,{"column-data":c,components:o.components,onRunCode:d.runCode},null,8,["column-data","components","onRunCode"])]))]),_:2},1032,["cols"]))),128))]),_:1})):Za("",!0),o.columnData?(Do(),Da("div",hBe,[(Do(!0),Da(ma,null,ob(o.columnData.components,(c,b)=>(Do(),Da("div",{key:b},[typeof c=="string"?(Do(),Da("div",pBe,[Ht(l,{renderComponents:[o.components[c]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Do(),Da("div",mBe,[Ht(n,{"row-data":c,components:o.components,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"])]))]))),128))])):Za("",!0)],64)}const vBe=hm(uBe,[["render",gBe]]),Lv=lm({copilot_active:!1,connection_lost:!1,timers:{}}),Kh={clock:'',cubic:'',circleAdd:'',code:'',delete:'',done:'',dot:'',dropdown:' ',duplicate:'',edit:'',markdown:'',message:'',more:'',notebook:'',logo:'',monitor:'',play:'',save:'',undo:'',redo:' ',settings:'',share:'',sql:' ',status:'',stop:'',text:'',visibility:'',copilot:'GitHub Copilot'},yBe={component:t=>w1(t.tag,{...t,innerHTML:t.icon})},bBe={class:"divider"},xBe=Hg({__name:"AddCell",props:{onClick:null,cellId:String},emits:["createCodeCell"],setup(t){const e=ti([{title:"Code",cellType:"code",icon:`ztIcon:${Kh.code}`},{title:"SQL",cellType:"sql",icon:`ztIcon:${Kh.sql}`},{title:"Markdown",cellType:"markdown",icon:`ztIcon:${Kh.markdown}`},{title:"Text",cellType:"text",icon:`ztIcon:${Kh.text}`}]);return(o,f)=>(Do(),sa(pS,{transition:"scale-transition",minWidth:"0",target:"cursor"},{activator:Oo(({props:P})=>[ha("div",Ii(t.cellId?{...P,id:"addCell"+t.cellId}:P,{class:"activator-area"}),[ha("div",bBe,[Ht(bM,{class:"divider__divider-line",color:"bluegrey-darken-2"}),Ht(ls,{"prepend-icon":`ztIcon:${wa(Kh).circleAdd}`,variant:"plain",density:"compact",ripple:!1,class:"divider__btn bg-background"},{default:Oo(()=>[Ss("Add cell")]),_:1},8,["prepend-icon"])])],16)]),default:Oo(()=>[Ht(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[(Do(!0),Da(ma,null,ob(e.value,(P,d)=>(Do(),sa(zf,Ii({key:d,class:"add-cell-item"},t.cellId?{id:"addCell_"+P.title+"_"+t.cellId}:{},{onClick:l=>o.$emit("createCodeCell",P.cellType)}),{prepend:Oo(()=>[Ht(Al,{icon:P.icon},null,8,["icon"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss(sc(P.title),1)]),_:2},1024)]),_:2},1040,["onClick"]))),128))]),_:1})]),_:1}))}});const Sue=hm(xBe,[["__scopeId","data-v-c00c2563"]]);function _Be(t,e){const o=Un(()=>t.value);return{cellTypeColor:Un(()=>{if(e!=null&&e.value)return"error";switch(t.value){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),cellTypeIcon:o}}var wBe=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Y_e;const Bq=t=>Y_e=t,X_e=Symbol();function qse(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var dI;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(dI||(dI={}));function _Be(){const t=cD(!0),e=t.run(()=>ei({}));let o=[],f=[];const P=uD({install(d){Bq(P),P._a=d,d.provide(X_e,P),d.config.globalProperties.$pinia=P,f.forEach(l=>o.push(l)),f=[]},use(d){return!this._a&&!xBe?f.push(d):o.push(d),this},_p:o,_a:null,_e:t,_s:new Map,state:e});return P}const G_e=()=>{};function Lge(t,e,o,f=G_e){t.push(e);const P=()=>{const d=t.indexOf(e);d>-1&&(t.splice(d,1),f())};return!o&&u1e()&&ig(P),P}function LA(t,...e){t.slice().forEach(o=>{o(...e)})}const wBe=t=>t();function Wse(t,e){t instanceof Map&&e instanceof Map&&e.forEach((o,f)=>t.set(f,o)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const f=e[o],P=t[o];qse(P)&&qse(f)&&t.hasOwnProperty(o)&&!Dc(f)&&!OO(f)?t[o]=Wse(P,f):t[o]=f}return t}const OBe=Symbol();function SBe(t){return!qse(t)||!t.hasOwnProperty(OBe)}const{assign:$4}=Object;function kBe(t){return!!(Dc(t)&&t.effect)}function TBe(t,e,o,f){const{state:P,actions:d,getters:l}=e,n=o.state.value[t];let c;function b(){n||(o.state.value[t]=P?P():{});const i=CM(o.state.value[t]);return $4(i,d,Object.keys(l||{}).reduce((O,w)=>(O[w]=uD(jn(()=>{Bq(o);const y=o._s.get(t);return l[w].call(y,y)})),O),{}))}return c=K_e(t,b,e,o,f,!0),c}function K_e(t,e,o={},f,P,d){let l;const n=$4({actions:{}},o),c={deep:!0};let b,i,O=[],w=[],y;const p=f.state.value[t];!d&&!p&&(f.state.value[t]={}),ei({});let a;function u(R){let M;b=i=!1,typeof R=="function"?(R(f.state.value[t]),M={type:dI.patchFunction,storeId:t,events:y}):(Wse(f.state.value[t],R),M={type:dI.patchObject,payload:R,storeId:t,events:y});const T=a=Symbol();lc().then(()=>{a===T&&(b=!0)}),i=!0,LA(O,M,f.state.value[t])}const h=d?function(){const{state:M}=o,T=M?M():{};this.$patch(E=>{$4(E,T)})}:G_e;function m(){l.stop(),O=[],w=[],f._s.delete(t)}function v(R,M){return function(){Bq(f);const T=Array.from(arguments),E=[],C=[];function L(I){E.push(I)}function D(I){C.push(I)}LA(w,{args:T,name:R,store:S,after:L,onError:D});let k;try{k=M.apply(this&&this.$id===t?this:S,T)}catch(I){throw LA(C,I),I}return k instanceof Promise?k.then(I=>(LA(E,I),I)).catch(I=>(LA(C,I),Promise.reject(I))):(LA(E,k),k)}}const _={_p:f,$id:t,$onAction:Lge.bind(null,w),$patch:u,$reset:h,$subscribe(R,M={}){const T=Lge(O,R,M.detached,()=>E()),E=l.run(()=>Ni(()=>f.state.value[t],C=>{(M.flush==="sync"?i:b)&&R({storeId:t,type:dI.direct,events:y},C)},$4({},c,M)));return T},$dispose:m},S=lm(_);f._s.set(t,S);const x=(f._a&&f._a.runWithContext||wBe)(()=>f._e.run(()=>(l=cD()).run(e)));for(const R in x){const M=x[R];if(Dc(M)&&!kBe(M)||OO(M))d||(p&&SBe(M)&&(Dc(M)?M.value=p[R]:Wse(M,p[R])),f.state.value[t][R]=M);else if(typeof M=="function"){const T=v(R,M);x[R]=T,n.actions[R]=M}}return $4(S,x),$4(As(S),x),Object.defineProperty(S,"$state",{get:()=>f.state.value[t],set:R=>{u(M=>{$4(M,R)})}}),f._p.forEach(R=>{$4(S,l.run(()=>R({store:S,app:f._a,pinia:f,options:n})))}),p&&d&&o.hydrate&&o.hydrate(S.$state,p),b=!0,i=!0,S}function CBe(t,e,o){let f,P;const d=typeof e=="function";typeof t=="string"?(f=t,P=d?o:e):(P=t,f=t.id);function l(n,c){const b=DSe();return n=n||(b?vl(X_e,null):null),n&&Bq(n),n=Y_e,n._s.has(f)||(d?K_e(f,e,P,n):TBe(f,P,n)),n._s.get(f)}return l.$id=f,l}function Sue(t){{t=As(t);const e={};for(const o in t){const f=t[o];(Dc(f)||OO(f))&&(e[o]=Oi(t,o))}return e}}const LD=CBe("comments",()=>{const t=Ai(!1),e=ei([]),o=ei(),f=ei(!0);function P(a,u,h,m){var _,S;const v={cellId:u,cellName:m,cellType:h};for(const A in a){const x=[];for(const M in a[A].replies){const T=(S=(_=a[A])==null?void 0:_.replies)==null?void 0:S[M];x.push({id:M,cell:v,userName:"",date:(T==null?void 0:T.date)??"",comment:(T==null?void 0:T.comment)??"",replies:[],resolved:(T==null?void 0:T.resolved)??!1})}const R={id:A,cell:v,userName:"",date:a[A].date??"",comment:a[A].comment??"",replies:x,resolved:a[A].resolved??!1};e.value.push(R)}}const d=jn(()=>(f.value=!0,o.value?e.value.filter(u=>{var h;return u.cell.cellId===((h=o.value)==null?void 0:h.cellId)})??[]:e.value)),l=jn(()=>a=>e.value.filter(u=>u.cell.cellId===a).length);async function n(a){try{const u={cellId:a.cell.cellId??"",commentId:a.id,comment:a.comment,date:a.date};await fu.post("api/add_comment",u),e.value.push(a)}catch(u){console.error("Error adding comment:",u)}}async function c(a,u,h){try{if(h){const m=e.value.find(v=>v.id===h);if(m){const v={cellId:m.cell.cellId??"",parentCommentId:h,commentId:a};await fu.post("api/delete_reply",v),m.replies=m.replies.filter(_=>_.id!==a)}}else{const m={cellId:u,commentId:a};await fu.post("api/delete_comment",m),e.value=e.value.filter(v=>v.id!==a)}}catch(m){console.error("Error deleting comment:",m)}}async function b(a,u,h,m){try{const v=e.value.find(_=>_.id===(m??a));if(m){const _={cellId:u,parentCommentId:m,commentId:a,comment:h};await fu.post("api/edit_reply",_);const S=v==null?void 0:v.replies.find(A=>A.id===a);S&&(S.comment=h)}else{const _={cellId:u,commentId:a,comment:h};await fu.post("api/edit_comment",_),v&&(v.comment=h)}}catch(v){console.error("Error editing comment:",v)}}async function i(a,u){try{const h={cellId:u.cell.cellId??"",parentCommentId:a,commentId:u.id,comment:u.comment,date:u.date};await fu.post("api/add_reply",h);const m=e.value.find(v=>v.id===a);m==null||m.replies.push(u)}catch(h){console.error("Error replying to comment:",h)}}async function O(a,u){try{const h={cellId:u,commentId:a,resolved:!0};await fu.post("api/resolve_comment",h);const m=e.value.find(v=>v.id===a);m&&(m.resolved=!0)}catch(h){console.error("Error resolving comment:",h)}}function w(){t.value=!1,o.value=void 0}function y(){t.value=!0}function p(a){t.value=!0,o.value=a}return{showComments:t,allComments:e,selectedCell:o,editorAvailable:f,commentsByCell:l,displayedComments:d,addComment:n,editComment:b,deleteComment:c,replyComment:i,closeComments:w,resolveComment:O,showAllComments:y,showCommentsPerCell:p,loadComments:P}}),ABe={class:"content"},MBe={key:0,class:"header"},EBe={key:0,class:"click-edit"},PBe={key:0,class:"click-edit__show-text"},RBe={key:1,class:"click-edit__edit-field-wrapper"},LBe={key:1,class:"text-bluegrey-darken-1 text-ellipsis click-edit__static-name"},IBe={class:"actions"},DBe={key:1,class:"text-primary message-btn__counter"},BBe=Hg({__name:"Cell",props:{isDevMode:Boolean,cellType:{type:String,default:"code"},cellId:String,error:Boolean,hideCell:{type:Boolean,default:!1},hideCode:{type:Boolean,default:!1},expandCode:{type:Boolean,default:!1},nonReactive:{type:Boolean,default:!1},showTable:{type:Boolean,default:!1},cellName:{type:String,default:null}},emits:["delete","play","save","expandCodeUpdate","updateReactivity","updateShowTable","hideCode","addCell","renameCell"],setup(t,{emit:e}){const o=t,f=LD(),{commentsByCell:P}=Sue(f),d=jn(()=>P.value(o.cellId)),{cellTypeColor:l}=bBe(Oi(o.cellType),Oi(o.error)),n=ei(o.hideCell||!1),c=ei(o.hideCode||!1),b=ei(o.expandCode||!1),i=ei(o.nonReactive||!1),O=ei(o.showTable||!1),w=ei(o.cellName||o.cellType),y=ei(""),p=ei(null),a=ei(!1),u=jn(()=>o.cellType==="code"||o.cellType==="sql"),h=jn(()=>o.cellType==="markdown"||o.cellType==="text"),m=jn(()=>o.cellType==="code"||o.cellType==="sql"),v=jn(()=>_T().name==="/app"),_=async E=>{const C={cellId:o.cellId,hideCell:E};await fu.post("api/hide_cell",C)},S=async E=>{const C={cellId:o.cellId,hideCode:E};await fu.post("api/hide_code",C),e("hideCode",E)},A=async E=>{const C={cellId:o.cellId,expandCode:E};await fu.post("api/expand_code",C),e("expandCodeUpdate",E)},x=async E=>{const C={cellId:o.cellId,nonReactive:E};await fu.post("api/cell_reactivity",C),e("updateReactivity",E)},R=async E=>{const C={cellId:o.cellId,showTable:E};await fu.post("api/show_table",C),e("updateShowTable",E)},M=()=>{a.value=!a.value,a.value&&(y.value=w.value,lc(()=>{p.value&&p.value.focus()}))},T=async()=>{const E={cellId:o.cellId,cellName:y.value};await fu.post("api/rename_cell",E),w.value=y.value,a.value=!1,e("renameCell",w.value)};return(E,C)=>(Bo(),Da(ya,null,[t.isDevMode||!t.isDevMode&&!n.value?(Bo(),la(BO,{key:0,id:"codeCard"+t.cellId,class:zv(["cell",{"cell--dev":t.isDevMode}]),color:"bluegrey-darken-4"},{default:Oo(()=>[Zt(yM,{class:"indicator",vertical:"",color:wa(l),thickness:4},null,8,["color"]),pa("div",ABe,[t.isDevMode?(Bo(),Da("header",MBe,[m.value?(Bo(),Da("div",EBe,[a.value?Wa("",!0):(Bo(),Da("div",PBe,[pa("h4",{class:"text-bluegrey-darken-1 text-ellipsis click-edit__name",onClick:M},sc(w.value),1)])),a.value?(Bo(),Da("div",RBe,[Zt(um,{modelValue:y.value,"onUpdate:modelValue":C[0]||(C[0]=L=>y.value=L),placeholder:t.cellType,density:"compact",variant:"plain","hide-details":"",ref_key:"cellNameField",ref:p,class:"click-edit__edit-field",onKeydown:cve(T,["enter"]),"onUpdate:focused":C[1]||(C[1]=L=>{L||T()})},null,8,["modelValue","placeholder","onKeydown"])])):Wa("",!0)])):(Bo(),Da("h4",LBe,sc(w.value),1)),Zt(du,{defaults:{VIcon:{color:"bluegrey"},VBtn:{variant:"text",size:"small"}}},{default:Oo(()=>[pa("div",IBe,[h.value?(Bo(),la(ps,{key:0,icon:`ztIcon:${wa(Kh).save}`,onClick:C[2]||(C[2]=L=>E.$emit("save"))},null,8,["icon"])):Wa("",!0),u.value?(Bo(),la(ps,{key:1,id:"runCode"+t.cellId,icon:`ztIcon:${wa(Kh).play}`,onClick:C[3]||(C[3]=L=>E.$emit("play"))},null,8,["id","icon"])):Wa("",!0),Zt(ps,{class:zv(["message-btn","pa-0",{"message-btn--alert":d.value}]),onClick:C[4]||(C[4]=L=>wa(f).showCommentsPerCell({cellId:t.cellId,cellName:w.value,cellType:t.cellType})),ripple:!1,slim:"",rounded:"circle"},{default:Oo(()=>[d.value===0?(Bo(),la(Tl,{key:0,size:"x-large",icon:`ztIcon:${wa(Kh).message}`},null,8,["icon"])):(Bo(),Da("span",DBe,sc(d.value),1))]),_:1},8,["class"]),Zt(hS,{"close-on-content-click":!1},{activator:Oo(({props:L})=>[Zt(ps,Di({icon:`ztIcon:${wa(Kh).more}`,id:"cellToolbar"+t.cellId},L),null,16,["icon","id"])]),default:Oo(()=>[Zt(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[m.value?(Bo(),la(Bf,{key:0,id:"updateCellReactivity"+t.cellId},{prepend:Oo(()=>[Zt($A,{modelValue:i.value,"onUpdate:modelValue":[C[5]||(C[5]=L=>i.value=L),x]},null,8,["modelValue"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Non-Reactive")]),_:1})]),_:1},8,["id"])):Wa("",!0),Zt(Bf,{id:"hideCell"+t.cellId},{prepend:Oo(()=>[Zt($A,{modelValue:n.value,"onUpdate:modelValue":[C[6]||(C[6]=L=>n.value=L),_],id:"hideCellSwitch"+t.cellId},null,8,["modelValue","id"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Hide Cell")]),_:1})]),_:1},8,["id"]),m.value?(Bo(),la(Bf,{key:1,id:"expandCode"+t.cellId},{prepend:Oo(()=>[Zt($A,{modelValue:c.value,"onUpdate:modelValue":[C[7]||(C[7]=L=>c.value=L),S]},null,8,["modelValue"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Hide Code")]),_:1})]),_:1},8,["id"])):Wa("",!0),m.value?(Bo(),la(Bf,{key:2,id:"expandCode"+t.cellId},{prepend:Oo(()=>[Zt($A,{modelValue:b.value,"onUpdate:modelValue":[C[8]||(C[8]=L=>b.value=L),A]},null,8,["modelValue"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Expand Code")]),_:1})]),_:1},8,["id"])):Wa("",!0),t.cellType==="sql"?(Bo(),la(Bf,{key:3,id:"updateShowTable"+t.cellId},{prepend:Oo(()=>[Zt($A,{modelValue:O.value,"onUpdate:modelValue":[C[9]||(C[9]=L=>O.value=L),R]},null,8,["modelValue"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Show Table")]),_:1})]),_:1},8,["id"])):Wa("",!0),Zt(Bf,{"base-color":"error",id:"deleteCell"+t.cellId,class:"delete-cell",onClick:C[10]||(C[10]=L=>E.$emit("delete"))},{prepend:Oo(()=>[Zt(Tl,{icon:`ztIcon:${wa(Kh).delete}`},null,8,["icon"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Delete Cell")]),_:1})]),_:1},8,["id"])]),_:1})]),_:1})])]),_:1})])):Wa("",!0),t.isDevMode||!t.isDevMode&&m.value?(Bo(),Da("div",{key:1,class:zv(["code",{"code--dev":t.isDevMode}])},[Ade(E.$slots,"code",{},void 0,!0)],2)):Wa("",!0),t.isDevMode&&!v.value&&t.cellType==="text"?Wa("",!0):(Bo(),Da("div",{key:2,class:zv(["outcome",{"outcome--dev":t.isDevMode}])},[Ade(E.$slots,"outcome",{},void 0,!0)],2))]),i.value?(Bo(),la(q_e,{key:0,text:"Cell is Stale"},{activator:Oo(({props:L})=>[Zt(yM,Di(L,{class:"indicator",vertical:"",color:"warning",thickness:8}),null,16)]),_:1})):Wa("",!0)]),_:3},8,["id","class"])):Wa("",!0),t.isDevMode?(Bo(),la(Oue,{key:1,"cell-id":t.cellId,onCreateCodeCell:C[11]||(C[11]=L=>E.$emit("addCell",L))},null,8,["cell-id"])):Wa("",!0)],64))}});const zq=hm(BBe,[["__scopeId","data-v-c84bd489"]]);function zBe(t,e,o=void 0){let f=()=>{};return(...P)=>(f(),new Promise((d,l)=>{const n=setTimeout(()=>d(t(...P)),e);f=()=>{clearTimeout(n),o!==void 0&&l(o)}}))}var FBe=Object.defineProperty,NBe=(t,e,o)=>e in t?FBe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,J_e=(t,e,o)=>(NBe(t,typeof e!="symbol"?e+"":e,o),o);const kue=Ap.define({create(){return{suggestion:null}},update(t,e){const o=e.effects.find(f=>f.is(ewe));return e.state.doc&&o&&e.state.doc==o.value.doc?{suggestion:o.value.text}:{suggestion:null}}}),ewe=cl.define();function $Be(t,e){const o=t.state.selection.main.head,f=[],P=es.widget({widget:new VBe(e),side:1});return f.push(P.range(o)),es.set(f)}class VBe extends wx{constructor(e){super(),J_e(this,"suggestion"),this.suggestion=e}toDOM(){const e=document.createElement("span");return e.style.opacity="0.4",e.className="cm-inline-suggestion",e.textContent=this.suggestion,e}}const UBe=t=>Wd.fromClass(class{async update(e){const o=e.state.doc;if(!e.docChanged)return;const f=await t(e.state);e.view.dispatch({effects:ewe.of({text:f,doc:o})})}}),jBe=Wd.fromClass(class{constructor(){J_e(this,"decorations"),this.decorations=es.none}update(t){var e;const o=(e=t.state.field(kue))==null?void 0:e.suggestion;if(!o){this.decorations=es.none;return}this.decorations=$Be(t.view,o)}},{decorations:t=>t.decorations}),QBe=Nv.highest(IO.of([{key:"Tab",run:t=>{var e;const o=(e=t.state.field(kue))==null?void 0:e.suggestion;return o?(t.dispatch({...HBe(t.state,o,t.state.selection.main.head,t.state.selection.main.head)}),!0):!1}}]));function HBe(t,e,o,f){return{...t.changeByRange(P=>{if(P==t.selection.main)return{changes:{from:o,to:f,insert:e},range:Yo.cursor(o+e.length)};const d=f-o;return!P.empty||d&&t.sliceDoc(P.from-d,P.from)!=t.sliceDoc(o,f)?{range:P}:{changes:{from:P.from-d,to:P.from,insert:e},range:Yo.cursor(P.from-d+e.length)}}),userEvent:"input.complete"}}function ZBe(t){const{delay:e=500}=t,o=zBe(t.fetchFn,e);return[kue,UBe(o),jBe,QBe]}const qBe={components:{cell:zq,codemirror:sq,"v-slider":gue,"v-text-field":um,"v-textarea":RD,"v-range-slider":_ue,"v-select":ED,"v-combobox":vue,"v-btn":ps,"v-img":kT,"v-data-table":Iq,"v-autocomplete":hue,"v-card":BO,"v-text":wue,"plotly-plot":Kle,"layout-component":mBe,"component-wrapper":W_e},props:{cellData:{type:Object,required:!0},completions:{type:Object,required:!0}},inheritAttrs:!1,emits:["componentValueChange","runCode","deleteCell","createCell","saveCell","copilotCompletion","updateTimers"],data(){return{isFocused:!1,copilotSuggestion:"",copilotAccepted:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],compDict:{}}},setup(){const t=Ai(null);return{view:t,handleReady:o=>{t.value=o.view}}},computed:{isAppRoute(){return _T().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode(!1,"","")},e=IO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)},{key:"Tab",run:()=>(this.copilotSuggestion&&(this.copilotAccepted=!0),!1)}]),o=async P=>{if(Pv.copilot_active){this.copilotSuggestion&&(this.copilotAccepted?(await fu.post("copilot/accept_completion",{uuid:this.copilotSuggestion}),this.copilotAccepted=!1):await fu.post("copilot/reject_completion",{uuid:this.copilotSuggestion}),this.copilotSuggestion="");const d=P.selection.main.head,l=P.doc.lineAt(d).number,n=d-P.doc.line(l).from,c=new Promise((b,i)=>{this.$emit("copilotCompletion",this.cellData.id,l,n,O=>{b(O)})});try{const b=await c;if(b.status===200&&b.data.completions.length>0)return this.copilotSuggestion=b.data.completions[0].uuid,b.data.completions[0].displayText}catch(b){console.log("Error fetching suggestion:",b)}}return""},f=async P=>{const d=P.matchBefore(/\w*/);return{from:d?d.from:P.pos,options:this.completions.map(n=>({label:n.label,type:n.type,apply:(c,b,i,O)=>{const w=b.label;c.dispatch({changes:{from:i,to:O??P.pos,insert:w}})}}))}};return this.$devMode&&!this.isAppRoute?[Nv.highest(e),yme(),wT.of(" "),mM,ZBe({fetchFn:o,delay:400}),hM({override:[f]})]:[jl.readOnly.of(!0),Nv.highest(e),yme(),mM,hM({override:[f]})]},unplacedComponents(){var f;const t=P=>{let d=[];for(const l of P)for(const n of(l==null?void 0:l.components)??[])typeof n=="string"?d.push(n):n&&n.components&&(d=d.concat(t([n])));return d},e=P=>{let d=[],l=[];for(const n of P)this.compDict[n.id]=n,n.childComponents?d.push.apply(d,Object.values(n.childComponents)):n.component==="v-timer"&&(l.push(n),d.push(n.id));return this.$emit("updateTimers",this.cellData.id,l),d},o=t(((f=this.cellData.layout)==null?void 0:f.rows)??[]).concat(e(this.cellData.components));return this.cellData.components.filter(P=>!o.includes(P.id))},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},mounted(){this.cellData.hideCell&&this.unplacedComponents},methods:{runCode(t,e,o){!this.$devMode&&t?this.$emit("componentValueChange",this.cellData.id,e,o,this.cellData.nonReactive):this.$emit("runCode",this.cellData.id,this.cellData.nonReactive,e)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){var f,P,d,l;if(!this.$devMode||!((f=this.view)!=null&&f.hasFocus))return;const t=(P=this.view)==null?void 0:P.state.selection.main.head,e=(d=this.view)==null?void 0:d.state.doc.lineAt(t).number,o=t-((l=this.view)==null?void 0:l.state.doc.line(e).from);this.$emit("saveCell",this.cellData.id,this.cellData.code,e,o)},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const WBe={key:1},YBe={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},XBe={class:"text-ellipsis app-static-name"},GBe={key:2},KBe={class:"text-caption text-disabled text-right"},JBe=["id"],eze=["id"],tze=["id"];function nze(t,e,o,f,P,d){const l=Zd("codemirror"),n=Zd("layout-component"),c=Zd("component-wrapper"),b=Zd("cell");return Bo(),la(b,{"cell-id":o.cellData.id,"cell-type":"code","hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,"cell-name":o.cellData.cellName,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:e[4]||(e[4]=i=>d.runCode(!1,"","")),onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=i=>d.expandCodeUpdate(i)),onHideCode:e[6]||(e[6]=i=>d.hideCode(i)),onRenameCell:e[7]||(e[7]=i=>d.renameCell(i)),onUpdateReactivity:e[8]||(e[8]=i=>d.updateReactivity(i)),onAddCell:e[9]||(e[9]=i=>d.createCell(i))},{code:Oo(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Bo(),la(l,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onReady:f.handleReady,onKeyup:d.saveCell,code:o.cellData.code,id:"codeMirrorDev"+o.cellData.id},null,8,["modelValue","extensions","onReady","onKeyup","code","id"])):(Bo(),Da("div",WBe,[o.cellData.hideCode?(Bo(),Da("h4",YBe,sc(o.cellData.cellName),1)):(Bo(),la(H_e,{key:1,modelValue:P.expanded,"onUpdate:modelValue":e[3]||(e[3]=i=>P.expanded=i)},{default:Oo(()=>[Zt(Q_e,{modelValue:P.expanded,"onUpdate:modelValue":e[2]||(e[2]=i=>P.expanded=i),"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Zt(_Z,{class:"text-bluegrey-darken-1",id:"codeMirrorAppTitle"+o.cellData.id},{default:Oo(()=>[pa("h4",XBe,sc(o.cellData.cellName),1)]),_:1},8,["id"]),Zt(xZ,null,{default:Oo(()=>[Zt(l,{modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,code:o.cellData.code,id:"codeMirrorApp"+o.cellData.id},null,8,["modelValue","extensions","code","id"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Bo(),Da("div",GBe,[pa("p",KBe,sc(d.shortcutText)+" to run",1)])):Wa("",!0)]),outcome:Oo(()=>{var i,O,w;return[pa("div",{id:"outputContainer_"+o.cellData.id},[(O=(i=o.cellData.layout)==null?void 0:i.rows)!=null&&O.length?(Bo(!0),Da(ya,{key:0},ob((w=o.cellData.layout)==null?void 0:w.rows,(y,p)=>(Bo(),la(n,{key:p,"row-data":y,components:P.compDict,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"]))),128)):Wa("",!0),d.unplacedComponents.length?(Bo(),Da("div",{key:1,id:"unplacedComponents"+o.cellData.id},[Zt(c,{renderComponents:d.unplacedComponents,allComponents:P.compDict,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])],8,eze)):Wa("",!0),pa("pre",{class:"code-output",id:"cellOutput"+o.cellData.id},sc(o.cellData.output),9,tze)],8,JBe)]}),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","cell-name","is-dev-mode","onDelete"])}const twe=hm(qBe,[["render",nze],["__scopeId","data-v-3780137e"]]);function Tue(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let MT=Tue();function nwe(t){MT=t}const rwe=/[&<>"']/,rze=new RegExp(rwe.source,"g"),owe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,oze=new RegExp(owe.source,"g"),ize={"&":"&","<":"<",">":">",'"':""","'":"'"},Ige=t=>ize[t];function Lv(t,e){if(e){if(rwe.test(t))return t.replace(rze,Ige)}else if(owe.test(t))return t.replace(oze,Ige);return t}const aze=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function sze(t){return t.replace(aze,(e,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const lze=/(^|[^\[])\^/g;function ku(t,e){t=typeof t=="string"?t:t.source,e=e||"";const o={replace:(f,P)=>(P=typeof P=="object"&&"source"in P?P.source:P,P=P.replace(lze,"$1"),t=t.replace(f,P),o),getRegex:()=>new RegExp(t,e)};return o}function Dge(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const wZ={exec:()=>null};function Bge(t,e){const o=t.replace(/\|/g,(d,l,n)=>{let c=!1,b=l;for(;--b>=0&&n[b]==="\\";)c=!c;return c?"|":" |"}),f=o.split(/ \|/);let P=0;if(f[0].trim()||f.shift(),f.length>0&&!f[f.length-1].trim()&&f.pop(),e)if(f.length>e)f.splice(e);else for(;f.lengthX_e=t,G_e=Symbol();function qse(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var hI;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(hI||(hI={}));function OBe(){const t=uD(!0),e=t.run(()=>ti({}));let o=[],f=[];const P=fD({install(d){Bq(P),P._a=d,d.provide(G_e,P),d.config.globalProperties.$pinia=P,f.forEach(l=>o.push(l)),f=[]},use(d){return!this._a&&!wBe?f.push(d):o.push(d),this},_p:o,_a:null,_e:t,_s:new Map,state:e});return P}const K_e=()=>{};function Ige(t,e,o,f=K_e){t.push(e);const P=()=>{const d=t.indexOf(e);d>-1&&(t.splice(d,1),f())};return!o&&f1e()&&ag(P),P}function IA(t,...e){t.slice().forEach(o=>{o(...e)})}const SBe=t=>t();function Wse(t,e){t instanceof Map&&e instanceof Map&&e.forEach((o,f)=>t.set(f,o)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const f=e[o],P=t[o];qse(P)&&qse(f)&&t.hasOwnProperty(o)&&!Dc(f)&&!OO(f)?t[o]=Wse(P,f):t[o]=f}return t}const kBe=Symbol();function TBe(t){return!qse(t)||!t.hasOwnProperty(kBe)}const{assign:$4}=Object;function CBe(t){return!!(Dc(t)&&t.effect)}function ABe(t,e,o,f){const{state:P,actions:d,getters:l}=e,n=o.state.value[t];let c;function b(){n||(o.state.value[t]=P?P():{});const i=AM(o.state.value[t]);return $4(i,d,Object.keys(l||{}).reduce((O,w)=>(O[w]=fD(Un(()=>{Bq(o);const y=o._s.get(t);return l[w].call(y,y)})),O),{}))}return c=J_e(t,b,e,o,f,!0),c}function J_e(t,e,o={},f,P,d){let l;const n=$4({actions:{}},o),c={deep:!0};let b,i,O=[],w=[],y;const p=f.state.value[t];!d&&!p&&(f.state.value[t]={}),ti({});let a;function u(R){let M;b=i=!1,typeof R=="function"?(R(f.state.value[t]),M={type:hI.patchFunction,storeId:t,events:y}):(Wse(f.state.value[t],R),M={type:hI.patchObject,payload:R,storeId:t,events:y});const T=a=Symbol();lc().then(()=>{a===T&&(b=!0)}),i=!0,IA(O,M,f.state.value[t])}const h=d?function(){const{state:M}=o,T=M?M():{};this.$patch(E=>{$4(E,T)})}:K_e;function m(){l.stop(),O=[],w=[],f._s.delete(t)}function v(R,M){return function(){Bq(f);const T=Array.from(arguments),E=[],C=[];function L(I){E.push(I)}function D(I){C.push(I)}IA(w,{args:T,name:R,store:S,after:L,onError:D});let k;try{k=M.apply(this&&this.$id===t?this:S,T)}catch(I){throw IA(C,I),I}return k instanceof Promise?k.then(I=>(IA(E,I),I)).catch(I=>(IA(C,I),Promise.reject(I))):(IA(E,k),k)}}const _={_p:f,$id:t,$onAction:Ige.bind(null,w),$patch:u,$reset:h,$subscribe(R,M={}){const T=Ige(O,R,M.detached,()=>E()),E=l.run(()=>Ni(()=>f.state.value[t],C=>{(M.flush==="sync"?i:b)&&R({storeId:t,type:hI.direct,events:y},C)},$4({},c,M)));return T},$dispose:m},S=lm(_);f._s.set(t,S);const x=(f._a&&f._a.runWithContext||SBe)(()=>f._e.run(()=>(l=uD()).run(e)));for(const R in x){const M=x[R];if(Dc(M)&&!CBe(M)||OO(M))d||(p&&TBe(M)&&(Dc(M)?M.value=p[R]:Wse(M,p[R])),f.state.value[t][R]=M);else if(typeof M=="function"){const T=v(R,M);x[R]=T,n.actions[R]=M}}return $4(S,x),$4(As(S),x),Object.defineProperty(S,"$state",{get:()=>f.state.value[t],set:R=>{u(M=>{$4(M,R)})}}),f._p.forEach(R=>{$4(S,l.run(()=>R({store:S,app:f._a,pinia:f,options:n})))}),p&&d&&o.hydrate&&o.hydrate(S.$state,p),b=!0,i=!0,S}function MBe(t,e,o){let f,P;const d=typeof e=="function";typeof t=="string"?(f=t,P=d?o:e):(P=t,f=t.id);function l(n,c){const b=BSe();return n=n||(b?yl(G_e,null):null),n&&Bq(n),n=X_e,n._s.has(f)||(d?J_e(f,e,P,n):ABe(f,P,n)),n._s.get(f)}return l.$id=f,l}function kue(t){{t=As(t);const e={};for(const o in t){const f=t[o];(Dc(f)||OO(f))&&(e[o]=Oi(t,o))}return e}}const LD=MBe("comments",()=>{const t=Ai(!1),e=ti([]),o=ti(),f=ti(!0);function P(a,u,h,m){var _,S;const v={cellId:u,cellName:m,cellType:h};for(const A in a){const x=[];for(const M in a[A].replies){const T=(S=(_=a[A])==null?void 0:_.replies)==null?void 0:S[M];x.push({id:M,cell:v,userName:"",date:(T==null?void 0:T.date)??"",comment:(T==null?void 0:T.comment)??"",replies:[],resolved:(T==null?void 0:T.resolved)??!1})}const R={id:A,cell:v,userName:"",date:a[A].date??"",comment:a[A].comment??"",replies:x,resolved:a[A].resolved??!1};e.value.push(R)}}const d=Un(()=>(f.value=!0,o.value?e.value.filter(u=>{var h;return u.cell.cellId===((h=o.value)==null?void 0:h.cellId)})??[]:e.value)),l=Un(()=>a=>e.value.filter(u=>u.cell.cellId===a).length);async function n(a){try{const u={cellId:a.cell.cellId??"",commentId:a.id,comment:a.comment,date:a.date};await fu.post("api/add_comment",u),e.value.push(a)}catch(u){console.error("Error adding comment:",u)}}async function c(a,u,h){try{if(h){const m=e.value.find(v=>v.id===h);if(m){const v={cellId:m.cell.cellId??"",parentCommentId:h,commentId:a};await fu.post("api/delete_reply",v),m.replies=m.replies.filter(_=>_.id!==a)}}else{const m={cellId:u,commentId:a};await fu.post("api/delete_comment",m),e.value=e.value.filter(v=>v.id!==a)}}catch(m){console.error("Error deleting comment:",m)}}async function b(a,u,h,m){try{const v=e.value.find(_=>_.id===(m??a));if(m){const _={cellId:u,parentCommentId:m,commentId:a,comment:h};await fu.post("api/edit_reply",_);const S=v==null?void 0:v.replies.find(A=>A.id===a);S&&(S.comment=h)}else{const _={cellId:u,commentId:a,comment:h};await fu.post("api/edit_comment",_),v&&(v.comment=h)}}catch(v){console.error("Error editing comment:",v)}}async function i(a,u){try{const h={cellId:u.cell.cellId??"",parentCommentId:a,commentId:u.id,comment:u.comment,date:u.date};await fu.post("api/add_reply",h);const m=e.value.find(v=>v.id===a);m==null||m.replies.push(u)}catch(h){console.error("Error replying to comment:",h)}}async function O(a,u){try{const h={cellId:u,commentId:a,resolved:!0};await fu.post("api/resolve_comment",h);const m=e.value.find(v=>v.id===a);m&&(m.resolved=!0)}catch(h){console.error("Error resolving comment:",h)}}function w(){t.value=!1,o.value=void 0}function y(){t.value=!0}function p(a){t.value=!0,o.value=a}return{showComments:t,allComments:e,selectedCell:o,editorAvailable:f,commentsByCell:l,displayedComments:d,addComment:n,editComment:b,deleteComment:c,replyComment:i,closeComments:w,resolveComment:O,showAllComments:y,showCommentsPerCell:p,loadComments:P}}),EBe={class:"content"},PBe={key:0,class:"header"},RBe={key:0,class:"click-edit"},LBe={key:0,class:"click-edit__show-text"},IBe={class:"loading-wrapper"},DBe={key:1,class:"click-edit__edit-field-wrapper"},BBe={key:1,class:"text-bluegrey-darken-1 text-ellipsis click-edit__static-name"},zBe={class:"actions"},FBe={key:1,class:"text-primary message-btn__counter"},NBe=Hg({__name:"Cell",props:{isDevMode:Boolean,cellType:{type:String,default:"code"},cellId:String,error:Boolean,hideCell:{type:Boolean,default:!1},hideCode:{type:Boolean,default:!1},expandCode:{type:Boolean,default:!1},nonReactive:{type:Boolean,default:!1},showTable:{type:Boolean,default:!1},cellName:{type:String,default:null},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},emits:["delete","play","save","expandCodeUpdate","updateReactivity","updateShowTable","hideCode","addCell","renameCell"],setup(t,{emit:e}){const o=t,f=LD(),{commentsByCell:P}=kue(f),d=Un(()=>P.value(o.cellId)),{cellTypeColor:l}=_Be(Oi(o.cellType),Oi(o.error)),n=ti(o.hideCell||!1),c=ti(o.hideCode||!1),b=ti(o.expandCode||!1),i=ti(o.nonReactive||!1),O=ti(o.showTable||!1),w=ti(o.cellName||o.cellType),y=ti(""),p=ti(null),a=ti(!1),u=Un(()=>o.cellType==="code"||o.cellType==="sql"),h=Un(()=>o.cellType==="markdown"||o.cellType==="text"),m=Un(()=>o.cellType==="code"||o.cellType==="sql"),v=Un(()=>_T().name==="/app"),_=async E=>{const C={cellId:o.cellId,hideCell:E};await fu.post("api/hide_cell",C)},S=async E=>{const C={cellId:o.cellId,hideCode:E};await fu.post("api/hide_code",C),e("hideCode",E)},A=async E=>{const C={cellId:o.cellId,expandCode:E};await fu.post("api/expand_code",C),e("expandCodeUpdate",E)},x=async E=>{const C={cellId:o.cellId,nonReactive:E};await fu.post("api/cell_reactivity",C),e("updateReactivity",E)},R=async E=>{const C={cellId:o.cellId,showTable:E};await fu.post("api/show_table",C),e("updateShowTable",E)},M=()=>{a.value=!a.value,a.value&&(y.value=w.value,lc(()=>{p.value&&p.value.focus()}))},T=async()=>{const E={cellId:o.cellId,cellName:y.value};await fu.post("api/rename_cell",E),w.value=y.value,a.value=!1,e("renameCell",w.value)};return(E,C)=>(Do(),Da(ma,null,[t.isDevMode||!t.isDevMode&&!n.value?(Do(),sa(BO,{key:0,id:"codeCard"+t.cellId,class:Nv(["cell",{"cell--dev":t.isDevMode}]),color:"bluegrey-darken-4"},{default:Oo(()=>[Ht(bM,{class:"indicator",vertical:"",color:wa(l),thickness:4},null,8,["color"]),ha("div",EBe,[t.isDevMode?(Do(),Da("header",PBe,[m.value?(Do(),Da("div",RBe,[a.value?Za("",!0):(Do(),Da("div",LBe,[ha("div",IBe,[t.cellId==t.currentlyExecutingCell&&t.isCodeRunning?(Do(),sa(LM,{key:0,indeterminate:"",size:"24",class:"ml-1 mr-2 green-loader"})):Za("",!0)]),ha("h4",{class:"text-bluegrey-darken-1 text-ellipsis click-edit__name",onClick:M},sc(w.value),1)])),a.value?(Do(),Da("div",DBe,[Ht(um,{modelValue:y.value,"onUpdate:modelValue":C[0]||(C[0]=L=>y.value=L),placeholder:t.cellType,density:"compact",variant:"plain","hide-details":"",ref_key:"cellNameField",ref:p,class:"click-edit__edit-field",onKeydown:uve(T,["enter"]),"onUpdate:focused":C[1]||(C[1]=L=>{L||T()})},null,8,["modelValue","placeholder","onKeydown"])])):Za("",!0)])):(Do(),Da("h4",BBe,sc(w.value),1)),Ht(du,{defaults:{VIcon:{color:"bluegrey"},VBtn:{variant:"text",size:"small"}}},{default:Oo(()=>[ha("div",zBe,[h.value?(Do(),sa(ls,{key:0,icon:`ztIcon:${wa(Kh).save}`,onClick:C[2]||(C[2]=L=>E.$emit("save"))},null,8,["icon"])):Za("",!0),u.value?(Do(),sa(ls,{key:1,id:"runCode"+t.cellId,icon:`ztIcon:${wa(Kh).play}`,onClick:C[3]||(C[3]=L=>E.$emit("play"))},null,8,["id","icon"])):Za("",!0),Ht(ls,{class:Nv(["message-btn","pa-0",{"message-btn--alert":d.value}]),onClick:C[4]||(C[4]=L=>wa(f).showCommentsPerCell({cellId:t.cellId,cellName:w.value,cellType:t.cellType})),ripple:!1,slim:"",rounded:"circle"},{default:Oo(()=>[d.value===0?(Do(),sa(Al,{key:0,size:"x-large",icon:`ztIcon:${wa(Kh).message}`},null,8,["icon"])):(Do(),Da("span",FBe,sc(d.value),1))]),_:1},8,["class"]),Ht(pS,{"close-on-content-click":!1},{activator:Oo(({props:L})=>[Ht(ls,Ii({icon:`ztIcon:${wa(Kh).more}`,id:"cellToolbar"+t.cellId},L),null,16,["icon","id"])]),default:Oo(()=>[Ht(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[m.value?(Do(),sa(zf,{key:0,id:"updateCellReactivity"+t.cellId},{prepend:Oo(()=>[Ht(VA,{modelValue:i.value,"onUpdate:modelValue":[C[5]||(C[5]=L=>i.value=L),x]},null,8,["modelValue"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Non-Reactive")]),_:1})]),_:1},8,["id"])):Za("",!0),Ht(zf,{id:"hideCell"+t.cellId},{prepend:Oo(()=>[Ht(VA,{modelValue:n.value,"onUpdate:modelValue":[C[6]||(C[6]=L=>n.value=L),_],id:"hideCellSwitch"+t.cellId},null,8,["modelValue","id"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Hide Cell")]),_:1})]),_:1},8,["id"]),m.value?(Do(),sa(zf,{key:1,id:"expandCode"+t.cellId},{prepend:Oo(()=>[Ht(VA,{modelValue:c.value,"onUpdate:modelValue":[C[7]||(C[7]=L=>c.value=L),S]},null,8,["modelValue"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Hide Code")]),_:1})]),_:1},8,["id"])):Za("",!0),m.value?(Do(),sa(zf,{key:2,id:"expandCode"+t.cellId},{prepend:Oo(()=>[Ht(VA,{modelValue:b.value,"onUpdate:modelValue":[C[8]||(C[8]=L=>b.value=L),A]},null,8,["modelValue"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Expand Code")]),_:1})]),_:1},8,["id"])):Za("",!0),t.cellType==="sql"?(Do(),sa(zf,{key:3,id:"updateShowTable"+t.cellId},{prepend:Oo(()=>[Ht(VA,{modelValue:O.value,"onUpdate:modelValue":[C[9]||(C[9]=L=>O.value=L),R]},null,8,["modelValue"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Show Table")]),_:1})]),_:1},8,["id"])):Za("",!0),Ht(zf,{"base-color":"error",id:"deleteCell"+t.cellId,class:"delete-cell",onClick:C[10]||(C[10]=L=>E.$emit("delete"))},{prepend:Oo(()=>[Ht(Al,{icon:`ztIcon:${wa(Kh).delete}`},null,8,["icon"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Delete Cell")]),_:1})]),_:1},8,["id"])]),_:1})]),_:1})])]),_:1})])):Za("",!0),t.isDevMode||!t.isDevMode&&m.value?(Do(),Da("div",{key:1,class:Nv(["code",{"code--dev":t.isDevMode}])},[Mde(E.$slots,"code",{},void 0,!0)],2)):Za("",!0),t.isDevMode&&!v.value&&t.cellType==="text"?Za("",!0):(Do(),Da("div",{key:2,class:Nv(["outcome",{"outcome--dev":t.isDevMode}])},[Mde(E.$slots,"outcome",{},void 0,!0)],2))]),i.value?(Do(),sa(W_e,{key:0,text:"Cell is Stale"},{activator:Oo(({props:L})=>[Ht(bM,Ii(L,{class:"indicator",vertical:"",color:"warning",thickness:8}),null,16)]),_:1})):Za("",!0)]),_:3},8,["id","class"])):Za("",!0),t.isDevMode?(Do(),sa(Sue,{key:1,"cell-id":t.cellId,onCreateCodeCell:C[11]||(C[11]=L=>E.$emit("addCell",L))},null,8,["cell-id"])):Za("",!0)],64))}});const zq=hm(NBe,[["__scopeId","data-v-09a4d2b3"]]);function $Be(t,e,o=void 0){let f=()=>{};return(...P)=>(f(),new Promise((d,l)=>{const n=setTimeout(()=>d(t(...P)),e);f=()=>{clearTimeout(n),o!==void 0&&l(o)}}))}var VBe=Object.defineProperty,UBe=(t,e,o)=>e in t?VBe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,ewe=(t,e,o)=>(UBe(t,typeof e!="symbol"?e+"":e,o),o);const Tue=Ap.define({create(){return{suggestion:null}},update(t,e){const o=e.effects.find(f=>f.is(twe));return e.state.doc&&o&&e.state.doc==o.value.doc?{suggestion:o.value.text}:{suggestion:null}}}),twe=cl.define();function jBe(t,e){const o=t.state.selection.main.head,f=[],P=es.widget({widget:new QBe(e),side:1});return f.push(P.range(o)),es.set(f)}class QBe extends Ox{constructor(e){super(),ewe(this,"suggestion"),this.suggestion=e}toDOM(){const e=document.createElement("span");return e.style.opacity="0.4",e.className="cm-inline-suggestion",e.textContent=this.suggestion,e}}const HBe=t=>Wd.fromClass(class{async update(e){const o=e.state.doc;if(!e.docChanged)return;const f=await t(e.state);e.view.dispatch({effects:twe.of({text:f,doc:o})})}}),ZBe=Wd.fromClass(class{constructor(){ewe(this,"decorations"),this.decorations=es.none}update(t){var e;const o=(e=t.state.field(Tue))==null?void 0:e.suggestion;if(!o){this.decorations=es.none;return}this.decorations=jBe(t.view,o)}},{decorations:t=>t.decorations}),qBe=Vv.highest(IO.of([{key:"Tab",run:t=>{var e;const o=(e=t.state.field(Tue))==null?void 0:e.suggestion;return o?(t.dispatch({...WBe(t.state,o,t.state.selection.main.head,t.state.selection.main.head)}),!0):!1}}]));function WBe(t,e,o,f){return{...t.changeByRange(P=>{if(P==t.selection.main)return{changes:{from:o,to:f,insert:e},range:Yo.cursor(o+e.length)};const d=f-o;return!P.empty||d&&t.sliceDoc(P.from-d,P.from)!=t.sliceDoc(o,f)?{range:P}:{changes:{from:P.from-d,to:P.from,insert:e},range:Yo.cursor(P.from-d+e.length)}}),userEvent:"input.complete"}}function YBe(t){const{delay:e=500}=t,o=$Be(t.fetchFn,e);return[Tue,HBe(o),ZBe,qBe]}const XBe={components:{cell:zq,codemirror:sq,"v-slider":gue,"v-rating":wue,"v-text-field":um,"v-textarea":RD,"v-range-slider":_ue,"v-select":ED,"v-combobox":vue,"v-btn":ls,"v-img":kT,"v-data-table":Iq,"v-autocomplete":hue,"v-card":BO,"v-text":Oue,"plotly-plot":Kle,"layout-component":vBe,"component-wrapper":Y_e},props:{cellData:{type:Object,required:!0},completions:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},inheritAttrs:!1,emits:["componentValueChange","runCode","deleteCell","createCell","saveCell","copilotCompletion","updateTimers"],data(){return{isFocused:!1,copilotSuggestion:"",copilotAccepted:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],compDict:{}}},setup(){const t=Ai(null);return{view:t,handleReady:o=>{t.value=o.view}}},computed:{isAppRoute(){return _T().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode(!1,"","")},e=IO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)},{key:"Tab",run:()=>(this.copilotSuggestion&&(this.copilotAccepted=!0),!1)}]),o=async P=>{if(Lv.copilot_active){this.copilotSuggestion&&(this.copilotAccepted?(await fu.post("copilot/accept_completion",{uuid:this.copilotSuggestion}),this.copilotAccepted=!1):await fu.post("copilot/reject_completion",{uuid:this.copilotSuggestion}),this.copilotSuggestion="");const d=P.selection.main.head,l=P.doc.lineAt(d).number,n=d-P.doc.line(l).from,c=new Promise((b,i)=>{this.$emit("copilotCompletion",this.cellData.id,l,n,O=>{b(O)})});try{const b=await c;if(b.status===200&&b.data.completions.length>0)return this.copilotSuggestion=b.data.completions[0].uuid,b.data.completions[0].displayText}catch(b){console.log("Error fetching suggestion:",b)}}return""},f=async P=>{const d=P.matchBefore(/\w*/);return{from:d?d.from:P.pos,options:this.completions.map(n=>({label:n.label,type:n.type,apply:(c,b,i,O)=>{const w=b.label;c.dispatch({changes:{from:i,to:O??P.pos,insert:w}})}}))}};return this.$devMode&&!this.isAppRoute?[Vv.highest(e),bme(),wT.of(" "),gM,YBe({fetchFn:o,delay:400}),pM({override:[f]})]:[jl.readOnly.of(!0),Vv.highest(e),bme(),gM,pM({override:[f]})]},unplacedComponents(){var f;const t=P=>{let d=[];for(const l of P)for(const n of(l==null?void 0:l.components)??[])typeof n=="string"?d.push(n):n&&n.components&&(d=d.concat(t([n])));return d},e=P=>{let d=[],l=[];for(const n of P)this.compDict[n.id]=n,n.childComponents?d.push.apply(d,Object.values(n.childComponents)):n.component==="v-timer"&&(l.push(n),d.push(n.id));return this.$emit("updateTimers",this.cellData.id,l),d},o=t(((f=this.cellData.layout)==null?void 0:f.rows)??[]).concat(e(this.cellData.components));return this.cellData.components.filter(P=>!o.includes(P.id))},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},mounted(){this.cellData.hideCell&&this.unplacedComponents},methods:{runCode(t,e,o){!this.$devMode&&t?this.$emit("componentValueChange",this.cellData.id,e,o,this.cellData.nonReactive):this.$emit("runCode",this.cellData.id,this.cellData.nonReactive,e)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){var f,P,d,l;if(!this.$devMode||!((f=this.view)!=null&&f.hasFocus))return;const t=(P=this.view)==null?void 0:P.state.selection.main.head,e=(d=this.view)==null?void 0:d.state.doc.lineAt(t).number,o=t-((l=this.view)==null?void 0:l.state.doc.line(e).from);this.$emit("saveCell",this.cellData.id,this.cellData.code,e,o)},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const GBe={key:1},KBe={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},JBe={class:"text-ellipsis app-static-name"},eze={key:2},tze={class:"text-caption text-disabled text-right"},nze=["id"],rze=["id"],oze=["id"];function ize(t,e,o,f,P,d){const l=Zd("codemirror"),n=Zd("layout-component"),c=Zd("component-wrapper"),b=Zd("cell");return Do(),sa(b,{"cell-id":o.cellData.id,"cell-type":"code","hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,"cell-name":o.cellData.cellName,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:e[4]||(e[4]=i=>d.runCode(!1,"","")),onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=i=>d.expandCodeUpdate(i)),onHideCode:e[6]||(e[6]=i=>d.hideCode(i)),onRenameCell:e[7]||(e[7]=i=>d.renameCell(i)),onUpdateReactivity:e[8]||(e[8]=i=>d.updateReactivity(i)),onAddCell:e[9]||(e[9]=i=>d.createCell(i))},{code:Oo(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Do(),sa(l,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onReady:f.handleReady,onKeyup:d.saveCell,code:o.cellData.code,id:"codeMirrorDev"+o.cellData.id},null,8,["modelValue","extensions","onReady","onKeyup","code","id"])):(Do(),Da("div",GBe,[o.cellData.hideCode?(Do(),Da("h4",KBe,sc(o.cellData.cellName),1)):(Do(),sa(Z_e,{key:1,modelValue:P.expanded,"onUpdate:modelValue":e[3]||(e[3]=i=>P.expanded=i)},{default:Oo(()=>[Ht(H_e,{modelValue:P.expanded,"onUpdate:modelValue":e[2]||(e[2]=i=>P.expanded=i),"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Ht(_Z,{class:"text-bluegrey-darken-1",id:"codeMirrorAppTitle"+o.cellData.id},{default:Oo(()=>[ha("h4",JBe,sc(o.cellData.cellName),1)]),_:1},8,["id"]),Ht(xZ,null,{default:Oo(()=>[Ht(l,{modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,code:o.cellData.code,id:"codeMirrorApp"+o.cellData.id},null,8,["modelValue","extensions","code","id"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Do(),Da("div",eze,[ha("p",tze,sc(d.shortcutText)+" to run",1)])):Za("",!0)]),outcome:Oo(()=>{var i,O,w;return[ha("div",{id:"outputContainer_"+o.cellData.id},[(O=(i=o.cellData.layout)==null?void 0:i.rows)!=null&&O.length?(Do(!0),Da(ma,{key:0},ob((w=o.cellData.layout)==null?void 0:w.rows,(y,p)=>(Do(),sa(n,{key:p,"row-data":y,components:P.compDict,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"]))),128)):Za("",!0),d.unplacedComponents.length?(Do(),Da("div",{key:1,id:"unplacedComponents"+o.cellData.id},[Ht(c,{renderComponents:d.unplacedComponents,allComponents:P.compDict,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])],8,rze)):Za("",!0),ha("pre",{class:"code-output",id:"cellOutput"+o.cellData.id},sc(o.cellData.output),9,oze)],8,nze)]}),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","cell-name","currentlyExecutingCell","isCodeRunning","is-dev-mode","onDelete"])}const nwe=hm(XBe,[["render",ize],["__scopeId","data-v-062456ec"]]);function Cue(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let ET=Cue();function rwe(t){ET=t}const owe=/[&<>"']/,aze=new RegExp(owe.source,"g"),iwe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,sze=new RegExp(iwe.source,"g"),lze={"&":"&","<":"<",">":">",'"':""","'":"'"},Dge=t=>lze[t];function Dv(t,e){if(e){if(owe.test(t))return t.replace(aze,Dge)}else if(iwe.test(t))return t.replace(sze,Dge);return t}const cze=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function uze(t){return t.replace(cze,(e,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const fze=/(^|[^\[])\^/g;function Tu(t,e){t=typeof t=="string"?t:t.source,e=e||"";const o={replace:(f,P)=>(P=typeof P=="object"&&"source"in P?P.source:P,P=P.replace(fze,"$1"),t=t.replace(f,P),o),getRegex:()=>new RegExp(t,e)};return o}function Bge(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const wZ={exec:()=>null};function zge(t,e){const o=t.replace(/\|/g,(d,l,n)=>{let c=!1,b=l;for(;--b>=0&&n[b]==="\\";)c=!c;return c?"|":" |"}),f=o.split(/ \|/);let P=0;if(f[0].trim()||f.shift(),f.length>0&&!f[f.length-1].trim()&&f.pop(),e)if(f.length>e)f.splice(e);else for(;f.length{const d=P.match(/^\s+/);if(d===null)return P;const[l]=d;return l.length>=f.length?P.slice(f.length):P}).join(` -`)}class OZ{constructor(e){_c(this,"options");_c(this,"rules");_c(this,"lexer");this.options=e||MT}space(e){const o=this.rules.block.newline.exec(e);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(e){const o=this.rules.block.code.exec(e);if(o){const f=o[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?f:eH(f,` -`)}}}fences(e){const o=this.rules.block.fences.exec(e);if(o){const f=o[0],P=uze(f,o[3]||"");return{type:"code",raw:f,lang:o[2]?o[2].trim().replace(this.rules.inline._escapes,"$1"):o[2],text:P}}}heading(e){const o=this.rules.block.heading.exec(e);if(o){let f=o[2].trim();if(/#$/.test(f)){const P=eH(f,"#");(this.options.pedantic||!P||/ $/.test(P))&&(f=P.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:f,tokens:this.lexer.inline(f)}}}hr(e){const o=this.rules.block.hr.exec(e);if(o)return{type:"hr",raw:o[0]}}blockquote(e){const o=this.rules.block.blockquote.exec(e);if(o){const f=eH(o[0].replace(/^ *>[ \t]?/gm,""),` +`)}class OZ{constructor(e){_c(this,"options");_c(this,"rules");_c(this,"lexer");this.options=e||ET}space(e){const o=this.rules.block.newline.exec(e);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(e){const o=this.rules.block.code.exec(e);if(o){const f=o[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?f:eH(f,` +`)}}}fences(e){const o=this.rules.block.fences.exec(e);if(o){const f=o[0],P=hze(f,o[3]||"");return{type:"code",raw:f,lang:o[2]?o[2].trim().replace(this.rules.inline._escapes,"$1"):o[2],text:P}}}heading(e){const o=this.rules.block.heading.exec(e);if(o){let f=o[2].trim();if(/#$/.test(f)){const P=eH(f,"#");(this.options.pedantic||!P||/ $/.test(P))&&(f=P.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:f,tokens:this.lexer.inline(f)}}}hr(e){const o=this.rules.block.hr.exec(e);if(o)return{type:"hr",raw:o[0]}}blockquote(e){const o=this.rules.block.blockquote.exec(e);if(o){const f=eH(o[0].replace(/^ *>[ \t]?/gm,""),` `),P=this.lexer.state.top;this.lexer.state.top=!0;const d=this.lexer.blockTokens(f);return this.lexer.state.top=P,{type:"blockquote",raw:o[0],tokens:d,text:f}}}list(e){let o=this.rules.block.list.exec(e);if(o){let f=o[1].trim();const P=f.length>1,d={type:"list",raw:"",ordered:P,start:P?+f.slice(0,-1):"",loose:!1,items:[]};f=P?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=P?f:"[*+-]");const l=new RegExp(`^( {0,3}${f})((?:[ ][^\\n]*)?(?:\\n|$))`);let n="",c="",b=!1;for(;e;){let i=!1;if(!(o=l.exec(e))||this.rules.block.hr.test(e))break;n=o[0],e=e.substring(n.length);let O=o[2].split(` `,1)[0].replace(/^\t+/,h=>" ".repeat(3*h.length)),w=e.split(` `,1)[0],y=0;this.options.pedantic?(y=2,c=O.trimStart()):(y=o[2].search(/[^ ]/),y=y>4?1:y,c=O.slice(y),y+=o[1].length);let p=!1;if(!O&&/^ *$/.test(w)&&(n+=w+` @@ -3614,10 +3614,10 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function `,1)[0];if(w=S,this.options.pedantic&&(w=w.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),v.test(w)||_.test(w)||h.test(w)||m.test(e))break;if(w.search(/[^ ]/)>=y||!w.trim())c+=` `+w.slice(y);else{if(p||O.search(/[^ ]/)>=4||v.test(O)||_.test(O)||m.test(O))break;c+=` `+w}!p&&!w.trim()&&(p=!0),n+=S+` -`,e=e.substring(S.length+1),O=w.slice(y)}}d.loose||(b?d.loose=!0:/\n *\n *$/.test(n)&&(b=!0));let a=null,u;this.options.gfm&&(a=/^\[[ xX]\] /.exec(c),a&&(u=a[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),d.items.push({type:"list_item",raw:n,task:!!a,checked:u,loose:!1,text:c,tokens:[]}),d.raw+=n}d.items[d.items.length-1].raw=n.trimEnd(),d.items[d.items.length-1].text=c.trimEnd(),d.raw=d.raw.trimEnd();for(let i=0;iy.type==="space"),w=O.length>0&&O.some(y=>/\n.*\n/.test(y.raw));d.loose=w}if(d.loose)for(let i=0;i$/,"$1").replace(this.rules.inline._escapes,"$1"):"",d=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline._escapes,"$1"):o[3];return{type:"def",tag:f,raw:o[0],href:P,title:d}}}table(e){const o=this.rules.block.table.exec(e);if(o){if(!/[:|]/.test(o[2]))return;const f={type:"table",raw:o[0],header:Bge(o[1]).map(P=>({text:P,tokens:[]})),align:o[2].replace(/^\||\| *$/g,"").split("|"),rows:o[3]&&o[3].trim()?o[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(f.header.length===f.align.length){let P=f.align.length,d,l,n,c;for(d=0;d({text:b,tokens:[]}));for(P=f.header.length,l=0;l/i.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(e){const o=this.rules.inline.link.exec(e);if(o){const f=o[2].trim();if(!this.options.pedantic&&/^$/.test(f))return;const l=eH(f.slice(0,-1),"\\");if((f.length-l.length)%2===0)return}else{const l=cze(o[2],"()");if(l>-1){const c=(o[0].indexOf("!")===0?5:4)+o[1].length+l;o[2]=o[2].substring(0,l),o[0]=o[0].substring(0,c).trim(),o[3]=""}}let P=o[2],d="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(P);l&&(P=l[1],d=l[3])}else d=o[3]?o[3].slice(1,-1):"";return P=P.trim(),/^$/.test(f)?P=P.slice(1):P=P.slice(1,-1)),zge(o,{href:P&&P.replace(this.rules.inline._escapes,"$1"),title:d&&d.replace(this.rules.inline._escapes,"$1")},o[0],this.lexer)}}reflink(e,o){let f;if((f=this.rules.inline.reflink.exec(e))||(f=this.rules.inline.nolink.exec(e))){let P=(f[2]||f[1]).replace(/\s+/g," ");if(P=o[P.toLowerCase()],!P){const d=f[0].charAt(0);return{type:"text",raw:d,text:d}}return zge(f,P,f[0],this.lexer)}}emStrong(e,o,f=""){let P=this.rules.inline.emStrong.lDelim.exec(e);if(!P||P[3]&&f.match(/[\p{L}\p{N}]/u))return;if(!(P[1]||P[2]||"")||!f||this.rules.inline.punctuation.exec(f)){const l=[...P[0]].length-1;let n,c,b=l,i=0;const O=P[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(O.lastIndex=0,o=o.slice(-1*e.length+l);(P=O.exec(o))!=null;){if(n=P[1]||P[2]||P[3]||P[4]||P[5]||P[6],!n)continue;if(c=[...n].length,P[3]||P[4]){b+=c;continue}else if((P[5]||P[6])&&l%3&&!((l+c)%3)){i+=c;continue}if(b-=c,b>0)continue;c=Math.min(c,c+b+i);const w=[...P[0]][0].length,y=e.slice(0,l+P.index+w+c);if(Math.min(l,c)%2){const a=y.slice(1,-1);return{type:"em",raw:y,text:a,tokens:this.lexer.inlineTokens(a)}}const p=y.slice(2,-2);return{type:"strong",raw:y,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const o=this.rules.inline.code.exec(e);if(o){let f=o[2].replace(/\n/g," ");const P=/[^ ]/.test(f),d=/^ /.test(f)&&/ $/.test(f);return P&&d&&(f=f.substring(1,f.length-1)),f=Lv(f,!0),{type:"codespan",raw:o[0],text:f}}}br(e){const o=this.rules.inline.br.exec(e);if(o)return{type:"br",raw:o[0]}}del(e){const o=this.rules.inline.del.exec(e);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(e){const o=this.rules.inline.autolink.exec(e);if(o){let f,P;return o[2]==="@"?(f=Lv(o[1]),P="mailto:"+f):(f=Lv(o[1]),P=f),{type:"link",raw:o[0],text:f,href:P,tokens:[{type:"text",raw:f,text:f}]}}}url(e){let o;if(o=this.rules.inline.url.exec(e)){let f,P;if(o[2]==="@")f=Lv(o[0]),P="mailto:"+f;else{let d;do d=o[0],o[0]=this.rules.inline._backpedal.exec(o[0])[0];while(d!==o[0]);f=Lv(o[0]),o[1]==="www."?P="http://"+o[0]:P=o[0]}return{type:"link",raw:o[0],text:f,href:P,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(e){const o=this.rules.inline.text.exec(e);if(o){let f;return this.lexer.state.inRawBlock?f=o[0]:f=Lv(o[0]),{type:"text",raw:o[0],text:f}}}}const ls={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:wZ,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};ls._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;ls._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;ls.def=ku(ls.def).replace("label",ls._label).replace("title",ls._title).getRegex();ls.bullet=/(?:[*+-]|\d{1,9}[.)])/;ls.listItemStart=ku(/^( *)(bull) */).replace("bull",ls.bullet).getRegex();ls.list=ku(ls.list).replace(/bull/g,ls.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ls.def.source+")").getRegex();ls._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";ls._comment=/|$)/;ls.html=ku(ls.html,"i").replace("comment",ls._comment).replace("tag",ls._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();ls.lheading=ku(ls.lheading).replace(/bull/g,ls.bullet).getRegex();ls.paragraph=ku(ls._paragraph).replace("hr",ls.hr).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",")|<(?:script|pre|style|textarea|!--)").replace("tag",ls._tag).getRegex();ls.blockquote=ku(ls.blockquote).replace("paragraph",ls.paragraph).getRegex();ls.normal={...ls};ls.gfm={...ls.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};ls.gfm.table=ku(ls.gfm.table).replace("hr",ls.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ls._tag).getRegex();ls.gfm.paragraph=ku(ls._paragraph).replace("hr",ls.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ls.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ls._tag).getRegex();ls.pedantic={...ls.normal,html:ku(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ls._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:wZ,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ku(ls.normal._paragraph).replace("hr",ls.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",ls.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const va={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:wZ,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:wZ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";va.punctuation=ku(va.punctuation,"u").replace(/punctuation/g,va._punctuation).getRegex();va.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;va.anyPunctuation=/\\[punct]/g;va._escapes=/\\([punct])/g;va._comment=ku(ls._comment).replace("(?:-->|$)","-->").getRegex();va.emStrong.lDelim=ku(va.emStrong.lDelim,"u").replace(/punct/g,va._punctuation).getRegex();va.emStrong.rDelimAst=ku(va.emStrong.rDelimAst,"gu").replace(/punct/g,va._punctuation).getRegex();va.emStrong.rDelimUnd=ku(va.emStrong.rDelimUnd,"gu").replace(/punct/g,va._punctuation).getRegex();va.anyPunctuation=ku(va.anyPunctuation,"gu").replace(/punct/g,va._punctuation).getRegex();va._escapes=ku(va._escapes,"gu").replace(/punct/g,va._punctuation).getRegex();va._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;va._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])?)+(?![-_])/;va.autolink=ku(va.autolink).replace("scheme",va._scheme).replace("email",va._email).getRegex();va._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;va.tag=ku(va.tag).replace("comment",va._comment).replace("attribute",va._attribute).getRegex();va._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;va._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;va._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;va.link=ku(va.link).replace("label",va._label).replace("href",va._href).replace("title",va._title).getRegex();va.reflink=ku(va.reflink).replace("label",va._label).replace("ref",ls._label).getRegex();va.nolink=ku(va.nolink).replace("ref",ls._label).getRegex();va.reflinkSearch=ku(va.reflinkSearch,"g").replace("reflink",va.reflink).replace("nolink",va.nolink).getRegex();va.normal={...va};va.pedantic={...va.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ku(/^!?\[(label)\]\((.*?)\)/).replace("label",va._label).getRegex(),reflink:ku(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",va._label).getRegex()};va.gfm={...va.normal,escape:ku(va.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\y.type==="space"),w=O.length>0&&O.some(y=>/\n.*\n/.test(y.raw));d.loose=w}if(d.loose)for(let i=0;i$/,"$1").replace(this.rules.inline._escapes,"$1"):"",d=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline._escapes,"$1"):o[3];return{type:"def",tag:f,raw:o[0],href:P,title:d}}}table(e){const o=this.rules.block.table.exec(e);if(o){if(!/[:|]/.test(o[2]))return;const f={type:"table",raw:o[0],header:zge(o[1]).map(P=>({text:P,tokens:[]})),align:o[2].replace(/^\||\| *$/g,"").split("|"),rows:o[3]&&o[3].trim()?o[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(f.header.length===f.align.length){let P=f.align.length,d,l,n,c;for(d=0;d({text:b,tokens:[]}));for(P=f.header.length,l=0;l/i.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(e){const o=this.rules.inline.link.exec(e);if(o){const f=o[2].trim();if(!this.options.pedantic&&/^$/.test(f))return;const l=eH(f.slice(0,-1),"\\");if((f.length-l.length)%2===0)return}else{const l=dze(o[2],"()");if(l>-1){const c=(o[0].indexOf("!")===0?5:4)+o[1].length+l;o[2]=o[2].substring(0,l),o[0]=o[0].substring(0,c).trim(),o[3]=""}}let P=o[2],d="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(P);l&&(P=l[1],d=l[3])}else d=o[3]?o[3].slice(1,-1):"";return P=P.trim(),/^$/.test(f)?P=P.slice(1):P=P.slice(1,-1)),Fge(o,{href:P&&P.replace(this.rules.inline._escapes,"$1"),title:d&&d.replace(this.rules.inline._escapes,"$1")},o[0],this.lexer)}}reflink(e,o){let f;if((f=this.rules.inline.reflink.exec(e))||(f=this.rules.inline.nolink.exec(e))){let P=(f[2]||f[1]).replace(/\s+/g," ");if(P=o[P.toLowerCase()],!P){const d=f[0].charAt(0);return{type:"text",raw:d,text:d}}return Fge(f,P,f[0],this.lexer)}}emStrong(e,o,f=""){let P=this.rules.inline.emStrong.lDelim.exec(e);if(!P||P[3]&&f.match(/[\p{L}\p{N}]/u))return;if(!(P[1]||P[2]||"")||!f||this.rules.inline.punctuation.exec(f)){const l=[...P[0]].length-1;let n,c,b=l,i=0;const O=P[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(O.lastIndex=0,o=o.slice(-1*e.length+l);(P=O.exec(o))!=null;){if(n=P[1]||P[2]||P[3]||P[4]||P[5]||P[6],!n)continue;if(c=[...n].length,P[3]||P[4]){b+=c;continue}else if((P[5]||P[6])&&l%3&&!((l+c)%3)){i+=c;continue}if(b-=c,b>0)continue;c=Math.min(c,c+b+i);const w=[...P[0]][0].length,y=e.slice(0,l+P.index+w+c);if(Math.min(l,c)%2){const a=y.slice(1,-1);return{type:"em",raw:y,text:a,tokens:this.lexer.inlineTokens(a)}}const p=y.slice(2,-2);return{type:"strong",raw:y,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const o=this.rules.inline.code.exec(e);if(o){let f=o[2].replace(/\n/g," ");const P=/[^ ]/.test(f),d=/^ /.test(f)&&/ $/.test(f);return P&&d&&(f=f.substring(1,f.length-1)),f=Dv(f,!0),{type:"codespan",raw:o[0],text:f}}}br(e){const o=this.rules.inline.br.exec(e);if(o)return{type:"br",raw:o[0]}}del(e){const o=this.rules.inline.del.exec(e);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(e){const o=this.rules.inline.autolink.exec(e);if(o){let f,P;return o[2]==="@"?(f=Dv(o[1]),P="mailto:"+f):(f=Dv(o[1]),P=f),{type:"link",raw:o[0],text:f,href:P,tokens:[{type:"text",raw:f,text:f}]}}}url(e){let o;if(o=this.rules.inline.url.exec(e)){let f,P;if(o[2]==="@")f=Dv(o[0]),P="mailto:"+f;else{let d;do d=o[0],o[0]=this.rules.inline._backpedal.exec(o[0])[0];while(d!==o[0]);f=Dv(o[0]),o[1]==="www."?P="http://"+o[0]:P=o[0]}return{type:"link",raw:o[0],text:f,href:P,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(e){const o=this.rules.inline.text.exec(e);if(o){let f;return this.lexer.state.inRawBlock?f=o[0]:f=Dv(o[0]),{type:"text",raw:o[0],text:f}}}}const cs={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:wZ,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};cs._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;cs._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;cs.def=Tu(cs.def).replace("label",cs._label).replace("title",cs._title).getRegex();cs.bullet=/(?:[*+-]|\d{1,9}[.)])/;cs.listItemStart=Tu(/^( *)(bull) */).replace("bull",cs.bullet).getRegex();cs.list=Tu(cs.list).replace(/bull/g,cs.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+cs.def.source+")").getRegex();cs._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";cs._comment=/|$)/;cs.html=Tu(cs.html,"i").replace("comment",cs._comment).replace("tag",cs._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();cs.lheading=Tu(cs.lheading).replace(/bull/g,cs.bullet).getRegex();cs.paragraph=Tu(cs._paragraph).replace("hr",cs.hr).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",")|<(?:script|pre|style|textarea|!--)").replace("tag",cs._tag).getRegex();cs.blockquote=Tu(cs.blockquote).replace("paragraph",cs.paragraph).getRegex();cs.normal={...cs};cs.gfm={...cs.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};cs.gfm.table=Tu(cs.gfm.table).replace("hr",cs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",cs._tag).getRegex();cs.gfm.paragraph=Tu(cs._paragraph).replace("hr",cs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",cs.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",cs._tag).getRegex();cs.pedantic={...cs.normal,html:Tu(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cs._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:wZ,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Tu(cs.normal._paragraph).replace("hr",cs.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",cs.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const ya={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:wZ,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:wZ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";ya.punctuation=Tu(ya.punctuation,"u").replace(/punctuation/g,ya._punctuation).getRegex();ya.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;ya.anyPunctuation=/\\[punct]/g;ya._escapes=/\\([punct])/g;ya._comment=Tu(cs._comment).replace("(?:-->|$)","-->").getRegex();ya.emStrong.lDelim=Tu(ya.emStrong.lDelim,"u").replace(/punct/g,ya._punctuation).getRegex();ya.emStrong.rDelimAst=Tu(ya.emStrong.rDelimAst,"gu").replace(/punct/g,ya._punctuation).getRegex();ya.emStrong.rDelimUnd=Tu(ya.emStrong.rDelimUnd,"gu").replace(/punct/g,ya._punctuation).getRegex();ya.anyPunctuation=Tu(ya.anyPunctuation,"gu").replace(/punct/g,ya._punctuation).getRegex();ya._escapes=Tu(ya._escapes,"gu").replace(/punct/g,ya._punctuation).getRegex();ya._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;ya._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])?)+(?![-_])/;ya.autolink=Tu(ya.autolink).replace("scheme",ya._scheme).replace("email",ya._email).getRegex();ya._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;ya.tag=Tu(ya.tag).replace("comment",ya._comment).replace("attribute",ya._attribute).getRegex();ya._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;ya._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;ya._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;ya.link=Tu(ya.link).replace("label",ya._label).replace("href",ya._href).replace("title",ya._title).getRegex();ya.reflink=Tu(ya.reflink).replace("label",ya._label).replace("ref",cs._label).getRegex();ya.nolink=Tu(ya.nolink).replace("ref",cs._label).getRegex();ya.reflinkSearch=Tu(ya.reflinkSearch,"g").replace("reflink",ya.reflink).replace("nolink",ya.nolink).getRegex();ya.normal={...ya};ya.pedantic={...ya.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Tu(/^!?\[(label)\]\((.*?)\)/).replace("label",ya._label).getRegex(),reflink:Tu(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ya._label).getRegex()};ya.gfm={...ya.normal,escape:Tu(ya.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\c+" ".repeat(b.length));let f,P,d,l;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(n=>(f=n.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))){if(f=this.tokenizer.space(e)){e=e.substring(f.raw.length),f.raw.length===1&&o.length>0?o[o.length-1].raw+=` `:o.push(f);continue}if(f=this.tokenizer.code(e)){e=e.substring(f.raw.length),P=o[o.length-1],P&&(P.type==="paragraph"||P.type==="text")?(P.raw+=` `+f.raw,P.text+=` @@ -3627,9 +3627,9 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function `+f.raw,P.text+=` `+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=P.text):o.push(f),l=d.length!==e.length,e=e.substring(f.raw.length);continue}if(f=this.tokenizer.text(e)){e=e.substring(f.raw.length),P=o[o.length-1],P&&P.type==="text"?(P.raw+=` `+f.raw,P.text+=` -`+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=P.text):o.push(f);continue}if(e){const n="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(n);break}else throw new Error(n)}}return this.state.top=!0,o}inline(e,o=[]){return this.inlineQueue.push({src:e,tokens:o}),o}inlineTokens(e,o=[]){let f,P,d,l=e,n,c,b;if(this.tokens.links){const i=Object.keys(this.tokens.links);if(i.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)i.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,n.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(c||(b=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(i=>(f=i.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))){if(f=this.tokenizer.escape(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.tag(e)){e=e.substring(f.raw.length),P=o[o.length-1],P&&f.type==="text"&&P.type==="text"?(P.raw+=f.raw,P.text+=f.text):o.push(f);continue}if(f=this.tokenizer.link(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(f.raw.length),P=o[o.length-1],P&&f.type==="text"&&P.type==="text"?(P.raw+=f.raw,P.text+=f.text):o.push(f);continue}if(f=this.tokenizer.emStrong(e,l,b)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.codespan(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.br(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.del(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.autolink(e)){e=e.substring(f.raw.length),o.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(e))){e=e.substring(f.raw.length),o.push(f);continue}if(d=e,this.options.extensions&&this.options.extensions.startInline){let i=1/0;const O=e.slice(1);let w;this.options.extensions.startInline.forEach(y=>{w=y.call({lexer:this},O),typeof w=="number"&&w>=0&&(i=Math.min(i,w))}),i<1/0&&i>=0&&(d=e.substring(0,i+1))}if(f=this.tokenizer.inlineText(d)){e=e.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(b=f.raw.slice(-1)),c=!0,P=o[o.length-1],P&&P.type==="text"?(P.raw+=f.raw,P.text+=f.text):o.push(f);continue}if(e){const i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return o}}class SZ{constructor(e){_c(this,"options");this.options=e||MT}code(e,o,f){var d;const P=(d=(o||"").match(/^\S*/))==null?void 0:d[0];return e=e.replace(/\n$/,"")+` -`,P?'
'+(f?e:Lv(e,!0))+`
-`:"
"+(f?e:Lv(e,!0))+`
+`+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=P.text):o.push(f);continue}if(e){const n="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(n);break}else throw new Error(n)}}return this.state.top=!0,o}inline(e,o=[]){return this.inlineQueue.push({src:e,tokens:o}),o}inlineTokens(e,o=[]){let f,P,d,l=e,n,c,b;if(this.tokens.links){const i=Object.keys(this.tokens.links);if(i.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)i.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,n.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(c||(b=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(i=>(f=i.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))){if(f=this.tokenizer.escape(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.tag(e)){e=e.substring(f.raw.length),P=o[o.length-1],P&&f.type==="text"&&P.type==="text"?(P.raw+=f.raw,P.text+=f.text):o.push(f);continue}if(f=this.tokenizer.link(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(f.raw.length),P=o[o.length-1],P&&f.type==="text"&&P.type==="text"?(P.raw+=f.raw,P.text+=f.text):o.push(f);continue}if(f=this.tokenizer.emStrong(e,l,b)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.codespan(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.br(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.del(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.autolink(e)){e=e.substring(f.raw.length),o.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(e))){e=e.substring(f.raw.length),o.push(f);continue}if(d=e,this.options.extensions&&this.options.extensions.startInline){let i=1/0;const O=e.slice(1);let w;this.options.extensions.startInline.forEach(y=>{w=y.call({lexer:this},O),typeof w=="number"&&w>=0&&(i=Math.min(i,w))}),i<1/0&&i>=0&&(d=e.substring(0,i+1))}if(f=this.tokenizer.inlineText(d)){e=e.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(b=f.raw.slice(-1)),c=!0,P=o[o.length-1],P&&P.type==="text"?(P.raw+=f.raw,P.text+=f.text):o.push(f);continue}if(e){const i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return o}}class SZ{constructor(e){_c(this,"options");this.options=e||ET}code(e,o,f){var d;const P=(d=(o||"").match(/^\S*/))==null?void 0:d[0];return e=e.replace(/\n$/,"")+` +`,P?'
'+(f?e:Dv(e,!0))+`
+`:"
"+(f?e:Dv(e,!0))+`
`}blockquote(e){return`
${e}
`}html(e,o){return e}heading(e,o,f){return`${e} @@ -3645,14 +3645,14 @@ ${e} `}tablerow(e){return` ${e} `}tablecell(e,o){const f=o.header?"th":"td";return(o.align?`<${f} align="${o.align}">`:`<${f}>`)+e+` -`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
"}del(e){return`${e}`}link(e,o,f){const P=Dge(e);if(P===null)return f;e=P;let d='
",d}image(e,o,f){const P=Dge(e);if(P===null)return f;e=P;let d=`${f}0&&w.tokens[0].type==="paragraph"?(w.tokens[0].text=u+" "+w.tokens[0].text,w.tokens[0].tokens&&w.tokens[0].tokens.length>0&&w.tokens[0].tokens[0].type==="text"&&(w.tokens[0].tokens[0].text=u+" "+w.tokens[0].tokens[0].text)):w.tokens.unshift({type:"text",text:u+" "}):a+=u+" "}a+=this.parse(w.tokens,b),i+=this.renderer.listitem(a,p,!!y)}f+=this.renderer.list(i,n,c);continue}case"html":{const l=d;f+=this.renderer.html(l.text,l.block);continue}case"paragraph":{const l=d;f+=this.renderer.paragraph(this.parseInline(l.tokens));continue}case"text":{let l=d,n=l.tokens?this.parseInline(l.tokens):l.text;for(;P+1{f=f.concat(this.walkTokens(n[c],o))}):n.tokens&&(f=f.concat(this.walkTokens(n.tokens,o)))}}return f}use(...e){const o=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(f=>{const P={...f};if(P.async=this.defaults.async||P.async||!1,f.extensions&&(f.extensions.forEach(d=>{if(!d.name)throw new Error("extension name required");if("renderer"in d){const l=o.renderers[d.name];l?o.renderers[d.name]=function(...n){let c=d.renderer.apply(this,n);return c===!1&&(c=l.apply(this,n)),c}:o.renderers[d.name]=d.renderer}if("tokenizer"in d){if(!d.level||d.level!=="block"&&d.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=o[d.level];l?l.unshift(d.tokenizer):o[d.level]=[d.tokenizer],d.start&&(d.level==="block"?o.startBlock?o.startBlock.push(d.start):o.startBlock=[d.start]:d.level==="inline"&&(o.startInline?o.startInline.push(d.start):o.startInline=[d.start]))}"childTokens"in d&&d.childTokens&&(o.childTokens[d.name]=d.childTokens)}),P.extensions=o),f.renderer){const d=this.defaults.renderer||new SZ(this.defaults);for(const l in f.renderer){const n=f.renderer[l],c=l,b=d[c];d[c]=(...i)=>{let O=n.apply(d,i);return O===!1&&(O=b.apply(d,i)),O||""}}P.renderer=d}if(f.tokenizer){const d=this.defaults.tokenizer||new OZ(this.defaults);for(const l in f.tokenizer){const n=f.tokenizer[l],c=l,b=d[c];d[c]=(...i)=>{let O=n.apply(d,i);return O===!1&&(O=b.apply(d,i)),O}}P.tokenizer=d}if(f.hooks){const d=this.defaults.hooks||new hI;for(const l in f.hooks){const n=f.hooks[l],c=l,b=d[c];hI.passThroughHooks.has(l)?d[c]=i=>{if(this.defaults.async)return Promise.resolve(n.call(d,i)).then(w=>b.call(d,w));const O=n.call(d,i);return b.call(d,O)}:d[c]=(...i)=>{let O=n.apply(d,i);return O===!1&&(O=b.apply(d,i)),O}}P.hooks=d}if(f.walkTokens){const d=this.defaults.walkTokens,l=f.walkTokens;P.walkTokens=function(n){let c=[];return c.push(l.call(this,n)),d&&(c=c.concat(d.call(this,n))),c}}this.defaults={...this.defaults,...P}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,o){return c_.lex(e,o??this.defaults)}parser(e,o){return u_.parse(e,o??this.defaults)}}iD=new WeakSet,Yse=function(e,o){return(f,P)=>{const d={...P},l={...this.defaults,...d};this.defaults.async===!0&&d.async===!1&&(l.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),l.async=!0);const n=gQ(this,PZ,iwe).call(this,!!l.silent,!!l.async);if(typeof f>"u"||f===null)return n(new Error("marked(): input parameter is undefined or null"));if(typeof f!="string")return n(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(f)+", string expected"));if(l.hooks&&(l.hooks.options=l),l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(f):f).then(c=>e(c,l)).then(c=>l.walkTokens?Promise.all(this.walkTokens(c,l.walkTokens)).then(()=>c):c).then(c=>o(c,l)).then(c=>l.hooks?l.hooks.postprocess(c):c).catch(n);try{l.hooks&&(f=l.hooks.preprocess(f));const c=e(f,l);l.walkTokens&&this.walkTokens(c,l.walkTokens);let b=o(c,l);return l.hooks&&(b=l.hooks.postprocess(b)),b}catch(c){return n(c)}}},PZ=new WeakSet,iwe=function(e,o){return f=>{if(f.message+=` -Please report this to https://github.com/markedjs/marked.`,e){const P="

An error occurred:

"+Lv(f.message+"",!0)+"
";return o?Promise.resolve(P):P}if(o)return Promise.reject(f);throw f}};const bT=new fze;function Uu(t,e){return bT.parse(t,e)}Uu.options=Uu.setOptions=function(t){return bT.setOptions(t),Uu.defaults=bT.defaults,nwe(Uu.defaults),Uu};Uu.getDefaults=Tue;Uu.defaults=MT;Uu.use=function(...t){return bT.use(...t),Uu.defaults=bT.defaults,nwe(Uu.defaults),Uu};Uu.walkTokens=function(t,e){return bT.walkTokens(t,e)};Uu.parseInline=bT.parseInline;Uu.Parser=u_;Uu.parser=u_.parse;Uu.Renderer=SZ;Uu.TextRenderer=Cue;Uu.Lexer=c_;Uu.lexer=c_.lex;Uu.Tokenizer=OZ;Uu.Hooks=hI;Uu.parse=Uu;Uu.options;Uu.setOptions;Uu.use;Uu.walkTokens;Uu.parseInline;u_.parse;c_.lex;class kZ{static create(e,o,f,P,d){let l=P+(P<<8)+e+(o<<4)|0;return new kZ(e,o,f,l,d,[],[])}constructor(e,o,f,P,d,l,n){this.type=e,this.value=o,this.from=f,this.hash=P,this.end=d,this.children=l,this.positions=n,this.hashProp=[[ul.contextHash,P]]}addChild(e,o){e.prop(ul.contextHash)!=this.hash&&(e=new Su(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(o)}toTree(e,o=this.end){let f=this.children.length-1;return f>=0&&(o=Math.max(o,this.positions[f]+this.children[f].length+this.from)),new Su(e.types[this.type],this.children,this.positions,o-this.from).balance({makeTree:(P,d,l)=>new Su(Cp.none,P,d,l,this.hashProp)})}}var Wi;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.URL=33]="URL",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel"})(Wi||(Wi={}));class dze{constructor(e,o){this.start=e,this.content=o,this.marks=[],this.parsers=[]}}class hze{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return pI(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,o=0,f=0){for(let P=o;P=e.stack[o.depth+1].value+o.baseIndent)return!0;if(o.indent>=o.baseIndent+4)return!1;let f=(t.type==Wi.OrderedList?Eue:Mue)(o,e,!1);return f>0&&(t.type!=Wi.BulletList||Aue(o,e,!1)<0)&&o.text.charCodeAt(o.pos+f-1)==t.value}const awe={[Wi.Blockquote](t,e,o){return o.next!=62?!1:(o.markers.push(uu(Wi.QuoteMark,e.lineStart+o.pos,e.lineStart+o.pos+1)),o.moveBase(o.pos+(lb(o.text.charCodeAt(o.pos+1))?2:1)),t.end=e.lineStart+o.text.length,!0)},[Wi.ListItem](t,e,o){return o.indent-1?!1:(o.moveBaseColumn(o.baseIndent+t.value),!0)},[Wi.OrderedList]:Fge,[Wi.BulletList]:Fge,[Wi.Document](){return!0}};function lb(t){return t==32||t==9||t==10||t==13}function pI(t,e=0){for(;eo&&lb(t.charCodeAt(e-1));)e--;return e}function swe(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e-1&&t.depth==e.stack.length||f<3?-1:1}function cwe(t,e){for(let o=t.stack.length-1;o>=0;o--)if(t.stack[o].type==e)return!0;return!1}function Mue(t,e,o){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||lb(t.text.charCodeAt(t.pos+1)))&&(!o||cwe(e,Wi.BulletList)||t.skipSpace(t.pos+2)=48&&P<=57;){f++;if(f==t.text.length)return-1;P=t.text.charCodeAt(f)}return f==t.pos||f>t.pos+9||P!=46&&P!=41||ft.pos+1||t.next!=49)?-1:f+1-t.pos}function uwe(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e6?-1:o}function fwe(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e/,hwe=/\?>/,Gse=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,pwe=/\?>/,Gse=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(f);if(d)return t.append(uu(Wi.Comment,o,o+1+d[0].length));let l=/^\?[^]*?\?>/.exec(f);if(l)return t.append(uu(Wi.ProcessingInstruction,o,o+1+l[0].length));let n=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(f);return n?t.append(uu(Wi.HTMLTag,o,o+1+n[0].length)):-1},Emphasis(t,e,o){if(e!=95&&e!=42)return-1;let f=o+1;for(;t.char(f)==e;)f++;let P=t.slice(o-1,o),d=t.slice(f,f+1),l=nD.test(P),n=nD.test(d),c=/\s|^$/.test(P),b=/\s|^$/.test(d),i=!b&&(!n||c||l),O=!c&&(!l||b||n),w=i&&(e==42||!O||l),y=O&&(e==42||!i||n);return t.append(new mx(e==95?bwe:xwe,o,f,(w?1:0)|(y?2:0)))},HardBreak(t,e,o){if(e==92&&t.char(o+1)==10)return t.append(uu(Wi.HardBreak,o,o+2));if(e==32){let f=o+1;for(;t.char(f)==32;)f++;if(t.char(f)==10&&f>=o+2)return t.append(uu(Wi.HardBreak,o,f+1))}return-1},Link(t,e,o){return e==91?t.append(new mx(VL,o,o+1,1)):-1},Image(t,e,o){return e==33&&t.char(o+1)==91?t.append(new mx(Vge,o,o+2,1)):-1},LinkEnd(t,e,o){if(e!=93)return-1;for(let f=t.parts.length-1;f>=0;f--){let P=t.parts[f];if(P instanceof mx&&(P.type==VL||P.type==Vge)){if(!P.side||t.skipSpace(P.to)==o&&!/[(\[]/.test(t.slice(o+1,o+2)))return t.parts[f]=null,-1;let d=t.takeContent(f),l=t.parts[f]=xze(t,d,P.type==VL?Wi.Link:Wi.Image,P.from,o+1);if(P.type==VL)for(let n=0;ne?uu(Wi.URL,e+o,d+o):d==t.length?null:!1}}function wwe(t,e,o){let f=t.charCodeAt(e);if(f!=39&&f!=34&&f!=40)return!1;let P=f==40?41:f;for(let d=e+1,l=!1;d=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,o){return this.text.slice(e-this.offset,o-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,o,f,P,d){return this.append(new mx(e,o,f,(P?1:0)|(d?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let f=e;f=e;c--){let a=this.parts[c];if(a instanceof mx&&a.side&1&&a.type==P.type&&!(d&&(P.side&1||a.side&2)&&(a.to-a.from+l)%3==0&&((a.to-a.from)%3||l%3))){n=a;break}}if(!n)continue;let b=P.type.resolve,i=[],O=n.from,w=P.to;if(d){let a=Math.min(2,n.to-n.from,l);O=n.to-a,w=P.from+a,b=a==1?"Emphasis":"StrongEmphasis"}n.type.mark&&i.push(this.elt(n.type.mark,O,n.to));for(let a=c+1;a=0;o--){let f=this.parts[o];if(f instanceof mx&&f.type==e)return o}return null}takeContent(e){let o=this.resolveMarkers(e);return this.parts.length=e,o}skipSpace(e){return pI(this.text,e-this.offset)+this.offset}elt(e,o,f,P){return typeof e=="string"?uu(this.parser.getNodeType(e),o,f,P):new ywe(e,o)}}function Jse(t,e){if(!e.length)return t;if(!t.length)return e;let o=t.slice(),f=0;for(let P of e){for(;f(e?e-1:0))return!1;if(this.fragmentEnd<0){let d=this.fragment.to;for(;d>0&&this.input.read(d-1,d)!=` -`;)d--;this.fragmentEnd=d?d-1:0}let f=this.cursor;f||(f=this.cursor=this.fragment.tree.cursor(),f.firstChild());let P=e+this.fragment.offset;for(;f.to<=P;)if(!f.parent())return!1;for(;;){if(f.from>=P)return this.fragment.from<=o;if(!f.childAfter(P))return!1}}matches(e){let o=this.cursor.tree;return o&&o.prop(ul.contextHash)==e}takeNodes(e){let o=this.cursor,f=this.fragment.offset,P=this.fragmentEnd-(this.fragment.openEnd?1:0),d=e.absoluteLineStart,l=d,n=e.block.children.length,c=l,b=n;for(;;){if(o.to-f>P){if(o.type.isAnonymous&&o.firstChild())continue;break}let i=Swe(o.from-f,e.ranges);if(o.to-f<=e.ranges[e.rangeI].to)e.addNode(o.tree,i);else{let O=new Su(e.parser.nodeSet.types[Wi.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(O,o.tree),e.addNode(O,i)}if(o.type.is("Block")&&(wze.indexOf(o.type.id)<0?(l=o.to-f,n=e.block.children.length):(l=c,n=b,c=o.to-f,b=e.block.children.length)),!o.nextSibling())break}for(;e.block.children.length>n;)e.block.children.pop(),e.block.positions.pop();return l-d}}function Swe(t,e){let o=t;for(let f=1;ftH[t]),Object.keys(tH).map(t=>gze[t]),Object.keys(tH),vze,awe,Object.keys(Yie).map(t=>Yie[t]),Object.keys(Yie),[]);function Tze(t,e,o){let f=[];for(let P=t.firstChild,d=e;;P=P.nextSibling){let l=P?P.from:o;if(l>d&&f.push({from:d,to:l}),!P)break;d=P.to}return f}function Cze(t){let{codeParser:e,htmlParser:o}=t;return{wrap:qye((P,d)=>{let l=P.type.id;if(e&&(l==Wi.CodeBlock||l==Wi.FencedCode)){let n="";if(l==Wi.FencedCode){let b=P.node.getChild(Wi.CodeInfo);b&&(n=d.read(b.from,b.to))}let c=e(n);if(c)return{parser:c,overlay:b=>b.type.id==Wi.CodeText}}else if(o&&(l==Wi.HTMLBlock||l==Wi.HTMLTag))return{parser:o,overlay:Tze(P.node,P.from,P.to)};return null})}}const Aze={resolve:"Strikethrough",mark:"StrikethroughMark"},Mze={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Gn.strikethrough}},{name:"StrikethroughMark",style:Gn.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,o){if(e!=126||t.char(o+1)!=126||t.char(o+2)==126)return-1;let f=t.slice(o-1,o),P=t.slice(o+2,o+3),d=/\s|^$/.test(f),l=/\s|^$/.test(P),n=nD.test(f),c=nD.test(P);return t.addDelimiter(Aze,o,o+2,!l&&(!c||d||n),!d&&(!n||l||c))},after:"Emphasis"}]};function mI(t,e,o=0,f,P=0){let d=0,l=!0,n=-1,c=-1,b=!1,i=()=>{f.push(t.elt("TableCell",P+n,P+c,t.parser.parseInline(e.slice(n,c),P+n)))};for(let O=o;O-1)&&d++,l=!1,f&&(n>-1&&i(),f.push(t.elt("TableDelimiter",O+P,O+P+1))),n=c=-1):(b||w!=32&&w!=9)&&(n<0&&(n=O),c=O+1),b=!b&&w==92}return n>-1&&(d++,f&&i()),d}function jge(t,e){for(let o=e;oP instanceof Qge)||!jge(e.text,e.basePos))return!1;let f=t.scanLine(t.absoluteLineEnd+1).text;return kwe.test(f)&&mI(t,e.text,e.basePos)==mI(t,f,e.basePos)},before:"SetextHeading"}]};class Pze{nextLine(){return!1}finish(e,o){return e.addLeafElement(o,e.elt("Task",o.start,o.start+o.content.length,[e.elt("TaskMarker",o.start,o.start+3),...e.parser.parseInline(o.content.slice(3),o.start+3)])),!0}}const Rze={defineNodes:[{name:"Task",block:!0,style:Gn.list},{name:"TaskMarker",style:Gn.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new Pze:null},after:"SetextHeading"}]},Hge=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,Zge=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,Lze=/[\w-]+\.[\w-]+($|\/)/,qge=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Wge=/\/[a-zA-Z\d@.]+/gy;function Yge(t,e,o,f){let P=0;for(let d=e;d-1)return-1;let f=e+o[0].length;for(;;){let P=t[f-1],d;if(/[?!.,:*_~]/.test(P)||P==")"&&Yge(t,e,f,")")>Yge(t,e,f,"("))f--;else if(P==";"&&(d=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,f))))f=e+d.index;else break}return f}function Xge(t,e){qge.lastIndex=e;let o=qge.exec(t);if(!o)return-1;let f=o[0][o[0].length-1];return f=="_"||f=="-"?-1:e+o[0].length-(f=="."?1:0)}const Dze={parseInline:[{name:"Autolink",parse(t,e,o){let f=o-t.offset;Hge.lastIndex=f;let P=Hge.exec(t.text),d=-1;return!P||(P[1]||P[2]?d=Ize(t.text,f+P[0].length):P[3]?d=Xge(t.text,f):(d=Xge(t.text,f+P[0].length),d>-1&&P[0]=="xmpp:"&&(Wge.lastIndex=d,P=Wge.exec(t.text),P&&(d=P.index+P[0].length))),d<0)?-1:(t.addElement(t.elt("URL",o,d+t.offset)),d+t.offset)}}]},Bze=[Eze,Rze,Mze,Dze];function Twe(t,e,o){return(f,P,d)=>{if(P!=t||f.char(d+1)==t)return-1;let l=[f.elt(o,d,d+1)];for(let n=d+1;n=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function Iwe(t){return t==9||t==10||t==13||t==32}let e0e=null,t0e=null,n0e=0;function tle(t,e){let o=t.pos+e;if(n0e==o&&t0e==t)return e0e;let f=t.peek(e);for(;Iwe(f);)f=t.peek(++e);let P="";for(;lFe(f);)P+=String.fromCharCode(f),f=t.peek(++e);return t0e=t,n0e=o,e0e=P?P.toLowerCase():f==cFe||f==uFe?void 0:null}const Dwe=60,CZ=62,Pue=47,cFe=63,uFe=33,fFe=45;function r0e(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let o=0;o-1?new r0e(tle(f,1)||"",t):t},reduce(t,e){return e==Pwe&&t?t.parent:t},reuse(t,e,o,f){let P=e.type.id;return P==TZ||P==nFe?new r0e(tle(f,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),pFe=new A0((t,e)=>{if(t.next!=Dwe){t.next<0&&e.context&&t.acceptToken(Xie);return}t.advance();let o=t.next==Pue;o&&t.advance();let f=tle(t,0);if(f===void 0)return;if(!f)return t.acceptToken(o?Xze:TZ);let P=e.context?e.context.name:null;if(o){if(f==P)return t.acceptToken(qze);if(P&&sFe[P])return t.acceptToken(Xie,-2);if(e.dialectEnabled(oFe))return t.acceptToken(Wze);for(let d=e.context;d;d=d.parent)if(d.name==f)return;t.acceptToken(Yze)}else{if(f=="script")return t.acceptToken(Cwe);if(f=="style")return t.acceptToken(Awe);if(f=="textarea")return t.acceptToken(Mwe);if(aFe.hasOwnProperty(f))return t.acceptToken(Ewe);P&&Jge[P]&&Jge[P][f]?t.acceptToken(Xie,-1):t.acceptToken(TZ)}},{contextual:!0}),mFe=new A0(t=>{for(let e=0,o=0;;o++){if(t.next<0){o&&t.acceptToken(Kge);break}if(t.next==fFe)e++;else if(t.next==CZ&&e>=2){o>=3&&t.acceptToken(Kge,-2);break}else e=0;t.advance()}});function gFe(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const vFe=new A0((t,e)=>{if(t.next==Pue&&t.peek(1)==CZ){let o=e.dialectEnabled(iFe)||gFe(e.context);t.acceptToken(o?Zze:Gge,2)}else t.next==CZ&&t.acceptToken(Gge,1)});function Rue(t,e,o){let f=2+t.length;return new A0(P=>{for(let d=0,l=0,n=0;;n++){if(P.next<0){n&&P.acceptToken(e);break}if(d==0&&P.next==Dwe||d==1&&P.next==Pue||d>=2&&dl?P.acceptToken(e,-l):P.acceptToken(o,-(l-2));break}else if((P.next==10||P.next==13)&&n){P.acceptToken(e,1);break}else d=l=0;P.advance()}})}const yFe=Rue("script",$ze,Vze),bFe=Rue("style",Uze,jze),xFe=Rue("textarea",Qze,Hze),_Fe=mS({"Text RawText":Gn.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Gn.angleBracket,TagName:Gn.tagName,"MismatchedCloseTag/TagName":[Gn.tagName,Gn.invalid],AttributeName:Gn.attributeName,"AttributeValue UnquotedAttributeValue":Gn.attributeValue,Is:Gn.definitionOperator,"EntityReference CharacterReference":Gn.character,Comment:Gn.blockComment,ProcessingInst:Gn.processingInstruction,DoctypeDecl:Gn.documentMeta}),wFe=uS.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:hFe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[_Fe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let b=n.type.id;if(b==Jze)return Gie(n,c,o);if(b==eFe)return Gie(n,c,f);if(b==tFe)return Gie(n,c,P);if(b==Pwe&&d.length){let i=n.node,O=i.firstChild,w=O&&o0e(O,c),y;if(w){for(let p of d)if(p.tag==w&&(!p.attrs||p.attrs(y||(y=Bwe(i,c))))){let a=i.lastChild,u=a.type.id==rFe?a.from:i.to;if(u>O.to)return{parser:p.parser,overlay:[{from:O.to,to:u}]}}}}if(l&&b==Rwe){let i=n.node,O;if(O=i.firstChild){let w=l[c.read(O.from,O.to)];if(w)for(let y of w){if(y.tagName&&y.tagName!=o0e(i.parent,c))continue;let p=i.lastChild;if(p.type.id==ele){let a=p.from+1,u=p.lastChild,h=p.to-(u&&u.isError?0:1);if(h>a)return{parser:y.parser,overlay:[{from:a,to:h}]}}else if(p.type.id==Lwe)return{parser:y.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}const OFe=96,i0e=1,SFe=97,kFe=98,a0e=2,Fwe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],TFe=58,CFe=40,Nwe=95,AFe=91,TH=45,MFe=46,EFe=35,PFe=37,RFe=38,LFe=92,IFe=10;function AZ(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function DFe(t){return t>=48&&t<=57}const BFe=new A0((t,e)=>{for(let o=!1,f=0,P=0;;P++){let{next:d}=t;if(AZ(d)||d==TH||d==Nwe||o&&DFe(d))!o&&(d!=TH||P>0)&&(o=!0),f===P&&d==TH&&f++,t.advance();else if(d==LFe&&t.peek(1)!=IFe)t.advance(),t.next>-1&&t.advance(),o=!0;else{o&&t.acceptToken(d==CFe?SFe:f==2&&e.canShift(a0e)?a0e:kFe);break}}}),zFe=new A0(t=>{if(Fwe.includes(t.peek(-1))){let{next:e}=t;(AZ(e)||e==Nwe||e==EFe||e==MFe||e==AFe||e==TFe||e==TH||e==RFe)&&t.acceptToken(OFe)}}),FFe=new A0(t=>{if(!Fwe.includes(t.peek(-1))){let{next:e}=t;if(e==PFe&&(t.advance(),t.acceptToken(i0e)),AZ(e)){do t.advance();while(AZ(t.next));t.acceptToken(i0e)}}}),NFe=mS({"AtKeyword import charset namespace keyframes media supports":Gn.definitionKeyword,"from to selector":Gn.keyword,NamespaceName:Gn.namespace,KeyframeName:Gn.labelName,KeyframeRangeName:Gn.operatorKeyword,TagName:Gn.tagName,ClassName:Gn.className,PseudoClassName:Gn.constant(Gn.className),IdName:Gn.labelName,"FeatureName PropertyName":Gn.propertyName,AttributeName:Gn.attributeName,NumberLiteral:Gn.number,KeywordQuery:Gn.keyword,UnaryQueryOp:Gn.operatorKeyword,"CallTag ValueName":Gn.atom,VariableName:Gn.variableName,Callee:Gn.operatorKeyword,Unit:Gn.unit,"UniversalSelector NestingSelector":Gn.definitionOperator,MatchOp:Gn.compareOperator,"ChildOp SiblingOp, LogicOp":Gn.logicOperator,BinOp:Gn.arithmeticOperator,Important:Gn.modifier,Comment:Gn.blockComment,ColorLiteral:Gn.color,"ParenthesizedContent StringLiteral":Gn.string,":":Gn.punctuation,"PseudoOp #":Gn.derefOperator,"; ,":Gn.separator,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace}),$Fe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},VFe={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},UFe={__proto__:null,not:128,only:128},jFe=uS.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[zFe,FFe,BFe,1,2,3,4,new sZ("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:t=>$Fe[t]||-1},{term:56,get:t=>VFe[t]||-1},{term:98,get:t=>UFe[t]||-1}],tokenPrec:1169});let Kie=null;function Jie(){if(!Kie&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],o=new Set;for(let f in t)f!="cssText"&&f!="cssFloat"&&typeof t[f]=="string"&&(/[A-Z]/.test(f)&&(f=f.replace(/[A-Z]/g,P=>"-"+P.toLowerCase())),o.has(f)||(e.push(f),o.add(f)));Kie=e.sort().map(f=>({type:"property",label:f}))}return Kie||[]}const s0e=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),l0e=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),QFe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),F4=/^(\w[\w-]*|-\w[\w-]*|)$/,HFe=/^-(-[\w-]*)?$/;function ZFe(t,e){var o;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let f=(o=t.parent)===null||o===void 0?void 0:o.firstChild;return(f==null?void 0:f.name)!="Callee"?!1:e.sliceString(f.from,f.to)=="var"}const c0e=new hce,qFe=["Declaration"];function WFe(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function $we(t,e,o){if(e.to-e.from>4096){let f=c0e.get(e);if(f)return f;let P=[],d=new Set,l=e.cursor(mf.IncludeAnonymous);if(l.firstChild())do for(let n of $we(t,l.node,o))d.has(n.label)||(d.add(n.label),P.push(n));while(l.nextSibling());return c0e.set(e,P),P}else{let f=[],P=new Set;return e.cursor().iterate(d=>{var l;if(o(d)&&d.matchContext(qFe)&&((l=d.node.nextSibling)===null||l===void 0?void 0:l.name)==":"){let n=t.sliceString(d.from,d.to);P.has(n)||(P.add(n),f.push({label:n,type:"variable"}))}}),f}}const YFe=t=>e=>{let{state:o,pos:f}=e,P=Gu(o).resolveInner(f,-1),d=P.type.isError&&P.from==P.to-1&&o.doc.sliceString(P.from,P.to)=="-";if(P.name=="PropertyName"||(d||P.name=="TagName")&&/^(Block|Styles)$/.test(P.resolve(P.to).name))return{from:P.from,options:Jie(),validFor:F4};if(P.name=="ValueName")return{from:P.from,options:l0e,validFor:F4};if(P.name=="PseudoClassName")return{from:P.from,options:s0e,validFor:F4};if(t(P)||(e.explicit||d)&&ZFe(P,o.doc))return{from:t(P)||d?P.from:f,options:$we(o.doc,WFe(P),t),validFor:HFe};if(P.name=="TagName"){for(let{parent:c}=P;c;c=c.parent)if(c.name=="Block")return{from:P.from,options:Jie(),validFor:F4};return{from:P.from,options:QFe,validFor:F4}}if(!e.explicit)return null;let l=P.resolve(f),n=l.childBefore(f);return n&&n.name==":"&&l.name=="PseudoClassSelector"?{from:f,options:s0e,validFor:F4}:n&&n.name==":"&&l.name=="Declaration"||l.name=="ArgList"?{from:f,options:l0e,validFor:F4}:l.name=="Block"||l.name=="Styles"?{from:f,options:Jie(),validFor:F4}:null},XFe=YFe(t=>t.name=="VariableName"),MZ=lS.define({name:"css",parser:jFe.configure({props:[OT.add({Declaration:fI()}),gS.add({"Block KeyframeList":bce})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function GFe(){return new gT(MZ,MZ.data.of({autocomplete:XFe}))}const KFe=304,u0e=1,JFe=2,eNe=305,tNe=307,nNe=308,rNe=3,oNe=4,iNe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Vwe=125,aNe=59,f0e=47,sNe=42,lNe=43,cNe=45,uNe=new Bce({start:!1,shift(t,e){return e==rNe||e==oNe||e==tNe?t:e==nNe},strict:!1}),fNe=new A0((t,e)=>{let{next:o}=t;(o==Vwe||o==-1||e.context)&&t.acceptToken(eNe)},{contextual:!0,fallback:!0}),dNe=new A0((t,e)=>{let{next:o}=t,f;iNe.indexOf(o)>-1||o==f0e&&((f=t.peek(1))==f0e||f==sNe)||o!=Vwe&&o!=aNe&&o!=-1&&!e.context&&t.acceptToken(KFe)},{contextual:!0}),hNe=new A0((t,e)=>{let{next:o}=t;if((o==lNe||o==cNe)&&(t.advance(),o==t.next)){t.advance();let f=!e.context&&e.canShift(u0e);t.acceptToken(f?u0e:JFe)}},{contextual:!0}),pNe=mS({"get set async static":Gn.modifier,"for while do if else switch try catch finally return throw break continue default case":Gn.controlKeyword,"in of await yield void typeof delete instanceof":Gn.operatorKeyword,"let var const using function class extends":Gn.definitionKeyword,"import export from":Gn.moduleKeyword,"with debugger as new":Gn.keyword,TemplateString:Gn.special(Gn.string),super:Gn.atom,BooleanLiteral:Gn.bool,this:Gn.self,null:Gn.null,Star:Gn.modifier,VariableName:Gn.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Gn.function(Gn.variableName),VariableDefinition:Gn.definition(Gn.variableName),Label:Gn.labelName,PropertyName:Gn.propertyName,PrivatePropertyName:Gn.special(Gn.propertyName),"CallExpression/MemberExpression/PropertyName":Gn.function(Gn.propertyName),"FunctionDeclaration/VariableDefinition":Gn.function(Gn.definition(Gn.variableName)),"ClassDeclaration/VariableDefinition":Gn.definition(Gn.className),PropertyDefinition:Gn.definition(Gn.propertyName),PrivatePropertyDefinition:Gn.definition(Gn.special(Gn.propertyName)),UpdateOp:Gn.updateOperator,"LineComment Hashbang":Gn.lineComment,BlockComment:Gn.blockComment,Number:Gn.number,String:Gn.string,Escape:Gn.escape,ArithOp:Gn.arithmeticOperator,LogicOp:Gn.logicOperator,BitOp:Gn.bitwiseOperator,CompareOp:Gn.compareOperator,RegExp:Gn.regexp,Equals:Gn.definitionOperator,Arrow:Gn.function(Gn.punctuation),": Spread":Gn.punctuation,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace,"InterpolationStart InterpolationEnd":Gn.special(Gn.brace),".":Gn.derefOperator,", ;":Gn.separator,"@":Gn.meta,TypeName:Gn.typeName,TypeDefinition:Gn.definition(Gn.typeName),"type enum interface implements namespace module declare":Gn.definitionKeyword,"abstract global Privacy readonly override":Gn.modifier,"is keyof unique infer":Gn.operatorKeyword,JSXAttributeValue:Gn.attributeValue,JSXText:Gn.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Gn.angleBracket,"JSXIdentifier JSXNameSpacedName":Gn.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Gn.attributeName,"JSXBuiltin/JSXIdentifier":Gn.standard(Gn.tagName)}),mNe={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},gNe={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},vNe={__proto__:null,"<":139},yNe=uS.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-ElOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-ExQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AfQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AnQSO,5=sO!AsQSO,5=sO!AxQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BWQWO,5=`O!B`Q,UO,5=aO!BkQSO,5=cO!BpQ`O,5=fO!BxQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!B}QSO'#HRO9{Q,UO'#HTO!CSQSO'#HTOOQQ,5=i,5=iO!CXQSO'#HUO!CjQSO'#CmO!CoQSO,58}O!CyQSO,58}O!FOQUO,58}OOQQ,58},58}O!F`Q(C[O,58}O%[QUO,58}O!HkQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IRQSO,5=uO`QUO,5={O`QUO,5=}O!IWQSO,5>PO`QUO,5>RO!I]QSO,5>UO!IbQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!MlQSO,5>fOOQQ,5>h,5>hO!MlQSO,5>hOOQQ,5>j,5>jO!MqQWO'#DYO%[QUO'#JiO!N`QWO'#JiO!N}QWO'#DhO# `QWO'#DhO##qQUO'#DhO##xQSO'#JhO#$QQSO,5:RO#$VQSO'#EnO#$eQSO'#JvO#$mQSO,5;XO#$rQWO'#DhO#%PQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%WQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%`QSO,5@TO#%eQ!LQO,5:pOOQO-E<_-E<_O#&kQ(C`O,5:{OChQWO,5:oO#&uQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'SQ(C[O,5:{O#'_Q(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'mQ(C[O,5:{POOO'#IU'#IUP#(RO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#(mQUO'#I[OOQO-EWQ(CjO1G0yO#>_Q(CjO1G0yO#@VQ(CjO1G0yO#CVQ$IUO'#CgO#ETQ$IUO1G1[O#E[Q$IUO'#JfO!,YQSO1G1bO#ElQ(CjO,5?SOOQ(CW-EeQSO1G3kO$.fQUO1G3mO$2jQUO'#HlOOQQ1G3p1G3pO$2wQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$3PQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$7WQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$7]Q$IUO,5:SOOQO,5;Y,5;YO$7gQWO'#I]O$7}QSO,5@SOOQ(CY1G/m1G/mO$8VQWO'#IcO$8aQSO,5@bOOQ(CW1G0s1G0sO# `QWO,5:SOOQO'#I`'#I`O$8iQWO,5:nOOQ(CY,5:n,5:nO#%ZQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8pQ(C[O1G0gO$8{Q(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$9ZQ(C[O1G0gOOQO1G0Z1G0ZO$9oQ(CjO1G0gPOOO-EvO$:]QSO1G5mO$:eQSO1G5zO$:mQbO1G5{O9TQSO,5>|O$:wQ(CjO1G5xO%[QUO1G5xO$;XQ(C[O1G5xO$;jQSO1G5wO$;jQSO1G5wO9TQSO1G5wO$;rQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$WOOQQ,5>W,5>WO%[QUO'#HmO%(vQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%({QWO1G5oO%)aQ$IUO1G0tO%)kQSO1G0tOOQO1G/n1G/nO%)vQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EjQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9oQ(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%*QQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%*]Q(C[O7+&RO%*kQ(CjO7++dO%[QUO7++dO%*{QSO7++cO%*{QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%+TQSO1G4kOOQO7+%z7+%zO#%ZQSO<xOOQO-E<[-E<[O%2yQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%3TQSO1G5qOOQ(CY<tQ$IUO1G0yO%>{Q$IUO1G0yO%@sQ$IUO1G0yO%AWQ(CjO<XOOQQ,5>Z,5>ZO& PQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO& UQ$IUO1G5{O>jQSO7+%YOOQ(CY<jQSO<jQSO7+)dO&6mQSO<{AN>{O%[QUOAN?XOOQO<PQSO7+*ZO&>[QSO<= ZO&>dQ`O7+*]OOQ(CW<nQ`O<uQSO<= dOOQQG27kG27kO9eQ(C[OG27kO!*SQUO1G4vO&>}QSO7++uO%MbQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&?VQSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#NWQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&?_QSOANBTOOQQ<fOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#APOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#C^O#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,sO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#C^O!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,sO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,sO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ tOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!jOz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#]O#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$zOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O`0gO'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+sO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#C^Om!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ tO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!jO#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#]O#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,sO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#C^O#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,sO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,sOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$J]Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$KOO(d$ZO~P#,sO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,sO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,sO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O`4`O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,sO!Y$|O~P#,sO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%%QOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O`5TO'v#mO'xTO'{UO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#C^O#Y5lO!W#bi!X#bi~O!W![i!X![i~P#C^O_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$J]O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$KOO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,sOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#C^OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%3jO#h9zO~P%3jOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5uOl9|O~P%5uOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%8QOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%8QOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:lO(k#|O~P%:lOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%yP?^P?^PPP?^PAOP?^P?^P?^PASPPAXPArPFjPPPFnPPPPFnIoPPPIuJpPFnPMOPPPP! ^FnPPPFnPFnP!#lFnP!'Q!(S!(]P!)P!)T!)PPPPPP!,`!(SPP!,|!-vP!0jFnFn!0o!3y!8`!8`!}P#@^#@e#@mPPPP#D{#Gr#NZ#N^#Na$ Y$ ]$ `$ g$ oPP$ u$ y$!q$#p$#t$$YPP$$^$$d$$hP$$k$$o$$r$%h$&P$&h$&l$&o$&r$&x$&{$'P$'TR!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ,T&^Q/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5T1VQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:uNe,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[pNe],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#mNe[t]||-1},{term:330,get:t=>gNe[t]||-1},{term:68,get:t=>vNe[t]||-1}],tokenPrec:12868}),Uwe=[Hd("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Hd("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Hd("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Hd("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Hd("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Hd(`try { +`);f=P<0?o:o.slice(0,P)}return e+f.length>this.to?f.slice(0,this.to-e):f}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,o,f=0){this.block=kZ.create(e,f,this.lineStart+o,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,o,f=0){this.startContext(this.parser.getNodeType(e),o,f)}addNode(e,o,f){typeof e=="number"&&(e=new ku(this.parser.nodeSet.types[e],_M,_M,(f??this.prevLineEnd())-o)),this.block.addChild(e,o-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,o){this.addNode(this.buffer.writeElements(Jse(o.children,e.marks),-o.from).finish(o.type,o.to-o.from),o.from)}finishContext(){let e=this.stack.pop(),o=this.stack[this.stack.length-1];o.addChild(e.toTree(this.parser.nodeSet),e.from-o.from),this.block=o}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?gwe(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let f of e.parsers)if(f.finish(this,e))return;let o=Jse(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(o,-e.start).finish(Wi.Paragraph,e.content.length),e.start)}elt(e,o,f,P){return typeof e=="string"?uu(this.parser.getNodeType(e),o,f,P):new bwe(e,o)}get buffer(){return new ywe(this.parser.nodeSet)}}function gwe(t,e,o,f,P){let d=t[e].to,l=[],n=[],c=o.from+f;function b(i,O){for(;O?i>=d:i>d;){let w=t[e+1].from-d;f+=w,i+=w,e++,d=t[e].to}}for(let i=o.firstChild;i;i=i.nextSibling){b(i.from+f,!0);let O=i.from+f,w,y=P.get(i.tree);y?w=y:i.to+f>d?(w=gwe(t,e,i,f,P),b(i.to+f,!1)):w=i.toTree(),l.push(w),n.push(O-c)}return b(o.to+f,!1),new ku(o.type,l,n,o.to+f-c,o.tree?o.tree.propValues:void 0)}class Fq extends pce{constructor(e,o,f,P,d,l,n,c,b){super(),this.nodeSet=e,this.blockParsers=o,this.leafBlockParsers=f,this.blockNames=P,this.endLeafBlock=d,this.skipContextMarkup=l,this.inlineParsers=n,this.inlineNames=c,this.wrappers=b,this.nodeTypes=Object.create(null);for(let i of e.types)this.nodeTypes[i.name]=i.id}createParse(e,o,f){let P=new wze(this,e,o,f);for(let d of this.wrappers)P=d(P,e,o,f);return P}configure(e){let o=Kse(e);if(!o)return this;let{nodeSet:f,skipContextMarkup:P}=this,d=this.blockParsers.slice(),l=this.leafBlockParsers.slice(),n=this.blockNames.slice(),c=this.inlineParsers.slice(),b=this.inlineNames.slice(),i=this.endLeafBlock.slice(),O=this.wrappers;if(VL(o.defineNodes)){P=Object.assign({},P);let w=f.types.slice(),y;for(let p of o.defineNodes){let{name:a,block:u,composite:h,style:m}=typeof p=="string"?{name:p}:p;if(w.some(S=>S.name==a))continue;h&&(P[w.length]=(S,A,x)=>h(A,x,S.value));let v=w.length,_=h?["Block","BlockContext"]:u?v>=Wi.ATXHeading1&&v<=Wi.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;w.push(Cp.define({id:v,name:a,props:_&&[[fl.group,_]]})),m&&(y||(y={}),Array.isArray(m)||m instanceof mx?y[a]=m:Object.assign(y,m))}f=new yD(w),y&&(f=f.extend(gS(y)))}if(VL(o.props)&&(f=f.extend(...o.props)),VL(o.remove))for(let w of o.remove){let y=this.blockNames.indexOf(w),p=this.inlineNames.indexOf(w);y>-1&&(d[y]=l[y]=void 0),p>-1&&(c[p]=void 0)}if(VL(o.parseBlock))for(let w of o.parseBlock){let y=n.indexOf(w.name);if(y>-1)d[y]=w.parse,l[y]=w.leaf;else{let p=w.before?nH(n,w.before):w.after?nH(n,w.after)+1:n.length-1;d.splice(p,0,w.parse),l.splice(p,0,w.leaf),n.splice(p,0,w.name)}w.endLeaf&&i.push(w.endLeaf)}if(VL(o.parseInline))for(let w of o.parseInline){let y=b.indexOf(w.name);if(y>-1)c[y]=w.parse;else{let p=w.before?nH(b,w.before):w.after?nH(b,w.after)+1:b.length-1;c.splice(p,0,w.parse),b.splice(p,0,w.name)}}return o.wrap&&(O=O.concat(o.wrap)),new Fq(f,d,l,n,i,P,c,b,O)}getNodeType(e){let o=this.nodeTypes[e];if(o==null)throw new RangeError(`Unknown node type '${e}'`);return o}parseInline(e,o){let f=new Sze(this,e,o);e:for(let P=o;P=0){P=n;continue e}}P++}return f.resolveMarkers(0)}}function VL(t){return t!=null&&t.length>0}function Kse(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let e=Kse(t[0]);if(t.length==1)return e;let o=Kse(t.slice(1));if(!o||!e)return e||o;let f=(l,n)=>(l||_M).concat(n||_M),P=e.wrap,d=o.wrap;return{props:f(e.props,o.props),defineNodes:f(e.defineNodes,o.defineNodes),parseBlock:f(e.parseBlock,o.parseBlock),parseInline:f(e.parseInline,o.parseInline),remove:f(e.remove,o.remove),wrap:P?d?(l,n,c,b)=>P(d(l,n,c,b),n,c,b):P:d}}function nH(t,e){let o=t.indexOf(e);if(o<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return o}let vwe=[Cp.none];for(let t=1,e;e=Wi[t];t++)vwe[t]=Cp.define({id:t,name:e,props:t>=Wi.Escape?[]:[[fl.group,t in swe?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});const _M=[];let ywe=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,o,f,P=0){return this.content.push(e,o,f,4+P*4),this}writeElements(e,o=0){for(let f of e)f.writeTo(this,o);return this}finish(e,o){return ku.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:o})}},nD=class{constructor(e,o,f,P=_M){this.type=e,this.from=o,this.to=f,this.children=P}writeTo(e,o){let f=e.content.length;e.writeElements(this.children,o),e.content.push(this.type,this.from+o,this.to+o,e.content.length+4-f)}toTree(e){return new ywe(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class bwe{constructor(e,o){this.tree=e,this.from=o}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return _M}writeTo(e,o){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+o,this.to+o,-1)}toTree(){return this.tree}}function uu(t,e,o,f){return new nD(t,e,o,f)}const xwe={resolve:"Emphasis",mark:"EmphasisMark"},_we={resolve:"Emphasis",mark:"EmphasisMark"},UL={},Uge={};class gx{constructor(e,o,f,P){this.type=e,this.from=o,this.to=f,this.side=P}}const jge="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let rD=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{rD=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const Yie={Escape(t,e,o){if(e!=92||o==t.end-1)return-1;let f=t.char(o+1);for(let P=0;P]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(f);if(P)return t.append(uu(Wi.URL,o,o+1+P[0].length));let d=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(f);if(d)return t.append(uu(Wi.Comment,o,o+1+d[0].length));let l=/^\?[^]*?\?>/.exec(f);if(l)return t.append(uu(Wi.ProcessingInstruction,o,o+1+l[0].length));let n=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(f);return n?t.append(uu(Wi.HTMLTag,o,o+1+n[0].length)):-1},Emphasis(t,e,o){if(e!=95&&e!=42)return-1;let f=o+1;for(;t.char(f)==e;)f++;let P=t.slice(o-1,o),d=t.slice(f,f+1),l=rD.test(P),n=rD.test(d),c=/\s|^$/.test(P),b=/\s|^$/.test(d),i=!b&&(!n||c||l),O=!c&&(!l||b||n),w=i&&(e==42||!O||l),y=O&&(e==42||!i||n);return t.append(new gx(e==95?xwe:_we,o,f,(w?1:0)|(y?2:0)))},HardBreak(t,e,o){if(e==92&&t.char(o+1)==10)return t.append(uu(Wi.HardBreak,o,o+2));if(e==32){let f=o+1;for(;t.char(f)==32;)f++;if(t.char(f)==10&&f>=o+2)return t.append(uu(Wi.HardBreak,o,f+1))}return-1},Link(t,e,o){return e==91?t.append(new gx(UL,o,o+1,1)):-1},Image(t,e,o){return e==33&&t.char(o+1)==91?t.append(new gx(Uge,o,o+2,1)):-1},LinkEnd(t,e,o){if(e!=93)return-1;for(let f=t.parts.length-1;f>=0;f--){let P=t.parts[f];if(P instanceof gx&&(P.type==UL||P.type==Uge)){if(!P.side||t.skipSpace(P.to)==o&&!/[(\[]/.test(t.slice(o+1,o+2)))return t.parts[f]=null,-1;let d=t.takeContent(f),l=t.parts[f]=Oze(t,d,P.type==UL?Wi.Link:Wi.Image,P.from,o+1);if(P.type==UL)for(let n=0;ne?uu(Wi.URL,e+o,d+o):d==t.length?null:!1}}function Owe(t,e,o){let f=t.charCodeAt(e);if(f!=39&&f!=34&&f!=40)return!1;let P=f==40?41:f;for(let d=e+1,l=!1;d=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,o){return this.text.slice(e-this.offset,o-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,o,f,P,d){return this.append(new gx(e,o,f,(P?1:0)|(d?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let f=e;f=e;c--){let a=this.parts[c];if(a instanceof gx&&a.side&1&&a.type==P.type&&!(d&&(P.side&1||a.side&2)&&(a.to-a.from+l)%3==0&&((a.to-a.from)%3||l%3))){n=a;break}}if(!n)continue;let b=P.type.resolve,i=[],O=n.from,w=P.to;if(d){let a=Math.min(2,n.to-n.from,l);O=n.to-a,w=P.from+a,b=a==1?"Emphasis":"StrongEmphasis"}n.type.mark&&i.push(this.elt(n.type.mark,O,n.to));for(let a=c+1;a=0;o--){let f=this.parts[o];if(f instanceof gx&&f.type==e)return o}return null}takeContent(e){let o=this.resolveMarkers(e);return this.parts.length=e,o}skipSpace(e){return mI(this.text,e-this.offset)+this.offset}elt(e,o,f,P){return typeof e=="string"?uu(this.parser.getNodeType(e),o,f,P):new bwe(e,o)}}function Jse(t,e){if(!e.length)return t;if(!t.length)return e;let o=t.slice(),f=0;for(let P of e){for(;f(e?e-1:0))return!1;if(this.fragmentEnd<0){let d=this.fragment.to;for(;d>0&&this.input.read(d-1,d)!=` +`;)d--;this.fragmentEnd=d?d-1:0}let f=this.cursor;f||(f=this.cursor=this.fragment.tree.cursor(),f.firstChild());let P=e+this.fragment.offset;for(;f.to<=P;)if(!f.parent())return!1;for(;;){if(f.from>=P)return this.fragment.from<=o;if(!f.childAfter(P))return!1}}matches(e){let o=this.cursor.tree;return o&&o.prop(fl.contextHash)==e}takeNodes(e){let o=this.cursor,f=this.fragment.offset,P=this.fragmentEnd-(this.fragment.openEnd?1:0),d=e.absoluteLineStart,l=d,n=e.block.children.length,c=l,b=n;for(;;){if(o.to-f>P){if(o.type.isAnonymous&&o.firstChild())continue;break}let i=kwe(o.from-f,e.ranges);if(o.to-f<=e.ranges[e.rangeI].to)e.addNode(o.tree,i);else{let O=new ku(e.parser.nodeSet.types[Wi.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(O,o.tree),e.addNode(O,i)}if(o.type.is("Block")&&(kze.indexOf(o.type.id)<0?(l=o.to-f,n=e.block.children.length):(l=c,n=b,c=o.to-f,b=e.block.children.length)),!o.nextSibling())break}for(;e.block.children.length>n;)e.block.children.pop(),e.block.positions.pop();return l-d}}function kwe(t,e){let o=t;for(let f=1;ftH[t]),Object.keys(tH).map(t=>bze[t]),Object.keys(tH),xze,swe,Object.keys(Yie).map(t=>Yie[t]),Object.keys(Yie),[]);function Mze(t,e,o){let f=[];for(let P=t.firstChild,d=e;;P=P.nextSibling){let l=P?P.from:o;if(l>d&&f.push({from:d,to:l}),!P)break;d=P.to}return f}function Eze(t){let{codeParser:e,htmlParser:o}=t;return{wrap:Wye((P,d)=>{let l=P.type.id;if(e&&(l==Wi.CodeBlock||l==Wi.FencedCode)){let n="";if(l==Wi.FencedCode){let b=P.node.getChild(Wi.CodeInfo);b&&(n=d.read(b.from,b.to))}let c=e(n);if(c)return{parser:c,overlay:b=>b.type.id==Wi.CodeText}}else if(o&&(l==Wi.HTMLBlock||l==Wi.HTMLTag))return{parser:o,overlay:Mze(P.node,P.from,P.to)};return null})}}const Pze={resolve:"Strikethrough",mark:"StrikethroughMark"},Rze={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Gn.strikethrough}},{name:"StrikethroughMark",style:Gn.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,o){if(e!=126||t.char(o+1)!=126||t.char(o+2)==126)return-1;let f=t.slice(o-1,o),P=t.slice(o+2,o+3),d=/\s|^$/.test(f),l=/\s|^$/.test(P),n=rD.test(f),c=rD.test(P);return t.addDelimiter(Pze,o,o+2,!l&&(!c||d||n),!d&&(!n||l||c))},after:"Emphasis"}]};function gI(t,e,o=0,f,P=0){let d=0,l=!0,n=-1,c=-1,b=!1,i=()=>{f.push(t.elt("TableCell",P+n,P+c,t.parser.parseInline(e.slice(n,c),P+n)))};for(let O=o;O-1)&&d++,l=!1,f&&(n>-1&&i(),f.push(t.elt("TableDelimiter",O+P,O+P+1))),n=c=-1):(b||w!=32&&w!=9)&&(n<0&&(n=O),c=O+1),b=!b&&w==92}return n>-1&&(d++,f&&i()),d}function Qge(t,e){for(let o=e;oP instanceof Hge)||!Qge(e.text,e.basePos))return!1;let f=t.scanLine(t.absoluteLineEnd+1).text;return Twe.test(f)&&gI(t,e.text,e.basePos)==gI(t,f,e.basePos)},before:"SetextHeading"}]};class Ize{nextLine(){return!1}finish(e,o){return e.addLeafElement(o,e.elt("Task",o.start,o.start+o.content.length,[e.elt("TaskMarker",o.start,o.start+3),...e.parser.parseInline(o.content.slice(3),o.start+3)])),!0}}const Dze={defineNodes:[{name:"Task",block:!0,style:Gn.list},{name:"TaskMarker",style:Gn.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new Ize:null},after:"SetextHeading"}]},Zge=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,qge=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,Bze=/[\w-]+\.[\w-]+($|\/)/,Wge=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Yge=/\/[a-zA-Z\d@.]+/gy;function Xge(t,e,o,f){let P=0;for(let d=e;d-1)return-1;let f=e+o[0].length;for(;;){let P=t[f-1],d;if(/[?!.,:*_~]/.test(P)||P==")"&&Xge(t,e,f,")")>Xge(t,e,f,"("))f--;else if(P==";"&&(d=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,f))))f=e+d.index;else break}return f}function Gge(t,e){Wge.lastIndex=e;let o=Wge.exec(t);if(!o)return-1;let f=o[0][o[0].length-1];return f=="_"||f=="-"?-1:e+o[0].length-(f=="."?1:0)}const Fze={parseInline:[{name:"Autolink",parse(t,e,o){let f=o-t.offset;Zge.lastIndex=f;let P=Zge.exec(t.text),d=-1;return!P||(P[1]||P[2]?d=zze(t.text,f+P[0].length):P[3]?d=Gge(t.text,f):(d=Gge(t.text,f+P[0].length),d>-1&&P[0]=="xmpp:"&&(Yge.lastIndex=d,P=Yge.exec(t.text),P&&(d=P.index+P[0].length))),d<0)?-1:(t.addElement(t.elt("URL",o,d+t.offset)),d+t.offset)}}]},Nze=[Lze,Dze,Rze,Fze];function Cwe(t,e,o){return(f,P,d)=>{if(P!=t||f.char(d+1)==t)return-1;let l=[f.elt(o,d,d+1)];for(let n=d+1;n=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function Dwe(t){return t==9||t==10||t==13||t==32}let t0e=null,n0e=null,r0e=0;function tle(t,e){let o=t.pos+e;if(r0e==o&&n0e==t)return t0e;let f=t.peek(e);for(;Dwe(f);)f=t.peek(++e);let P="";for(;fFe(f);)P+=String.fromCharCode(f),f=t.peek(++e);return n0e=t,r0e=o,t0e=P?P.toLowerCase():f==dFe||f==hFe?void 0:null}const Bwe=60,CZ=62,Rue=47,dFe=63,hFe=33,pFe=45;function o0e(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let o=0;o-1?new o0e(tle(f,1)||"",t):t},reduce(t,e){return e==Rwe&&t?t.parent:t},reuse(t,e,o,f){let P=e.type.id;return P==TZ||P==iFe?new o0e(tle(f,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),vFe=new A0((t,e)=>{if(t.next!=Bwe){t.next<0&&e.context&&t.acceptToken(Xie);return}t.advance();let o=t.next==Rue;o&&t.advance();let f=tle(t,0);if(f===void 0)return;if(!f)return t.acceptToken(o?Jze:TZ);let P=e.context?e.context.name:null;if(o){if(f==P)return t.acceptToken(Xze);if(P&&uFe[P])return t.acceptToken(Xie,-2);if(e.dialectEnabled(sFe))return t.acceptToken(Gze);for(let d=e.context;d;d=d.parent)if(d.name==f)return;t.acceptToken(Kze)}else{if(f=="script")return t.acceptToken(Awe);if(f=="style")return t.acceptToken(Mwe);if(f=="textarea")return t.acceptToken(Ewe);if(cFe.hasOwnProperty(f))return t.acceptToken(Pwe);P&&e0e[P]&&e0e[P][f]?t.acceptToken(Xie,-1):t.acceptToken(TZ)}},{contextual:!0}),yFe=new A0(t=>{for(let e=0,o=0;;o++){if(t.next<0){o&&t.acceptToken(Jge);break}if(t.next==pFe)e++;else if(t.next==CZ&&e>=2){o>=3&&t.acceptToken(Jge,-2);break}else e=0;t.advance()}});function bFe(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const xFe=new A0((t,e)=>{if(t.next==Rue&&t.peek(1)==CZ){let o=e.dialectEnabled(lFe)||bFe(e.context);t.acceptToken(o?Yze:Kge,2)}else t.next==CZ&&t.acceptToken(Kge,1)});function Lue(t,e,o){let f=2+t.length;return new A0(P=>{for(let d=0,l=0,n=0;;n++){if(P.next<0){n&&P.acceptToken(e);break}if(d==0&&P.next==Bwe||d==1&&P.next==Rue||d>=2&&dl?P.acceptToken(e,-l):P.acceptToken(o,-(l-2));break}else if((P.next==10||P.next==13)&&n){P.acceptToken(e,1);break}else d=l=0;P.advance()}})}const _Fe=Lue("script",jze,Qze),wFe=Lue("style",Hze,Zze),OFe=Lue("textarea",qze,Wze),SFe=gS({"Text RawText":Gn.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Gn.angleBracket,TagName:Gn.tagName,"MismatchedCloseTag/TagName":[Gn.tagName,Gn.invalid],AttributeName:Gn.attributeName,"AttributeValue UnquotedAttributeValue":Gn.attributeValue,Is:Gn.definitionOperator,"EntityReference CharacterReference":Gn.character,Comment:Gn.blockComment,ProcessingInst:Gn.processingInstruction,DoctypeDecl:Gn.documentMeta}),kFe=fS.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:gFe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[SFe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let b=n.type.id;if(b==nFe)return Gie(n,c,o);if(b==rFe)return Gie(n,c,f);if(b==oFe)return Gie(n,c,P);if(b==Rwe&&d.length){let i=n.node,O=i.firstChild,w=O&&i0e(O,c),y;if(w){for(let p of d)if(p.tag==w&&(!p.attrs||p.attrs(y||(y=zwe(i,c))))){let a=i.lastChild,u=a.type.id==aFe?a.from:i.to;if(u>O.to)return{parser:p.parser,overlay:[{from:O.to,to:u}]}}}}if(l&&b==Lwe){let i=n.node,O;if(O=i.firstChild){let w=l[c.read(O.from,O.to)];if(w)for(let y of w){if(y.tagName&&y.tagName!=i0e(i.parent,c))continue;let p=i.lastChild;if(p.type.id==ele){let a=p.from+1,u=p.lastChild,h=p.to-(u&&u.isError?0:1);if(h>a)return{parser:y.parser,overlay:[{from:a,to:h}]}}else if(p.type.id==Iwe)return{parser:y.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}const TFe=96,a0e=1,CFe=97,AFe=98,s0e=2,Nwe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],MFe=58,EFe=40,$we=95,PFe=91,TH=45,RFe=46,LFe=35,IFe=37,DFe=38,BFe=92,zFe=10;function AZ(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function FFe(t){return t>=48&&t<=57}const NFe=new A0((t,e)=>{for(let o=!1,f=0,P=0;;P++){let{next:d}=t;if(AZ(d)||d==TH||d==$we||o&&FFe(d))!o&&(d!=TH||P>0)&&(o=!0),f===P&&d==TH&&f++,t.advance();else if(d==BFe&&t.peek(1)!=zFe)t.advance(),t.next>-1&&t.advance(),o=!0;else{o&&t.acceptToken(d==EFe?CFe:f==2&&e.canShift(s0e)?s0e:AFe);break}}}),$Fe=new A0(t=>{if(Nwe.includes(t.peek(-1))){let{next:e}=t;(AZ(e)||e==$we||e==LFe||e==RFe||e==PFe||e==MFe||e==TH||e==DFe)&&t.acceptToken(TFe)}}),VFe=new A0(t=>{if(!Nwe.includes(t.peek(-1))){let{next:e}=t;if(e==IFe&&(t.advance(),t.acceptToken(a0e)),AZ(e)){do t.advance();while(AZ(t.next));t.acceptToken(a0e)}}}),UFe=gS({"AtKeyword import charset namespace keyframes media supports":Gn.definitionKeyword,"from to selector":Gn.keyword,NamespaceName:Gn.namespace,KeyframeName:Gn.labelName,KeyframeRangeName:Gn.operatorKeyword,TagName:Gn.tagName,ClassName:Gn.className,PseudoClassName:Gn.constant(Gn.className),IdName:Gn.labelName,"FeatureName PropertyName":Gn.propertyName,AttributeName:Gn.attributeName,NumberLiteral:Gn.number,KeywordQuery:Gn.keyword,UnaryQueryOp:Gn.operatorKeyword,"CallTag ValueName":Gn.atom,VariableName:Gn.variableName,Callee:Gn.operatorKeyword,Unit:Gn.unit,"UniversalSelector NestingSelector":Gn.definitionOperator,MatchOp:Gn.compareOperator,"ChildOp SiblingOp, LogicOp":Gn.logicOperator,BinOp:Gn.arithmeticOperator,Important:Gn.modifier,Comment:Gn.blockComment,ColorLiteral:Gn.color,"ParenthesizedContent StringLiteral":Gn.string,":":Gn.punctuation,"PseudoOp #":Gn.derefOperator,"; ,":Gn.separator,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace}),jFe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},QFe={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},HFe={__proto__:null,not:128,only:128},ZFe=fS.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[$Fe,VFe,NFe,1,2,3,4,new sZ("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:t=>jFe[t]||-1},{term:56,get:t=>QFe[t]||-1},{term:98,get:t=>HFe[t]||-1}],tokenPrec:1169});let Kie=null;function Jie(){if(!Kie&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],o=new Set;for(let f in t)f!="cssText"&&f!="cssFloat"&&typeof t[f]=="string"&&(/[A-Z]/.test(f)&&(f=f.replace(/[A-Z]/g,P=>"-"+P.toLowerCase())),o.has(f)||(e.push(f),o.add(f)));Kie=e.sort().map(f=>({type:"property",label:f}))}return Kie||[]}const l0e=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),c0e=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),qFe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),F4=/^(\w[\w-]*|-\w[\w-]*|)$/,WFe=/^-(-[\w-]*)?$/;function YFe(t,e){var o;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let f=(o=t.parent)===null||o===void 0?void 0:o.firstChild;return(f==null?void 0:f.name)!="Callee"?!1:e.sliceString(f.from,f.to)=="var"}const u0e=new hce,XFe=["Declaration"];function GFe(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function Vwe(t,e,o){if(e.to-e.from>4096){let f=u0e.get(e);if(f)return f;let P=[],d=new Set,l=e.cursor(mf.IncludeAnonymous);if(l.firstChild())do for(let n of Vwe(t,l.node,o))d.has(n.label)||(d.add(n.label),P.push(n));while(l.nextSibling());return u0e.set(e,P),P}else{let f=[],P=new Set;return e.cursor().iterate(d=>{var l;if(o(d)&&d.matchContext(XFe)&&((l=d.node.nextSibling)===null||l===void 0?void 0:l.name)==":"){let n=t.sliceString(d.from,d.to);P.has(n)||(P.add(n),f.push({label:n,type:"variable"}))}}),f}}const KFe=t=>e=>{let{state:o,pos:f}=e,P=Gu(o).resolveInner(f,-1),d=P.type.isError&&P.from==P.to-1&&o.doc.sliceString(P.from,P.to)=="-";if(P.name=="PropertyName"||(d||P.name=="TagName")&&/^(Block|Styles)$/.test(P.resolve(P.to).name))return{from:P.from,options:Jie(),validFor:F4};if(P.name=="ValueName")return{from:P.from,options:c0e,validFor:F4};if(P.name=="PseudoClassName")return{from:P.from,options:l0e,validFor:F4};if(t(P)||(e.explicit||d)&&YFe(P,o.doc))return{from:t(P)||d?P.from:f,options:Vwe(o.doc,GFe(P),t),validFor:WFe};if(P.name=="TagName"){for(let{parent:c}=P;c;c=c.parent)if(c.name=="Block")return{from:P.from,options:Jie(),validFor:F4};return{from:P.from,options:qFe,validFor:F4}}if(!e.explicit)return null;let l=P.resolve(f),n=l.childBefore(f);return n&&n.name==":"&&l.name=="PseudoClassSelector"?{from:f,options:l0e,validFor:F4}:n&&n.name==":"&&l.name=="Declaration"||l.name=="ArgList"?{from:f,options:c0e,validFor:F4}:l.name=="Block"||l.name=="Styles"?{from:f,options:Jie(),validFor:F4}:null},JFe=KFe(t=>t.name=="VariableName"),MZ=cS.define({name:"css",parser:ZFe.configure({props:[OT.add({Declaration:dI()}),vS.add({"Block KeyframeList":bce})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function eNe(){return new gT(MZ,MZ.data.of({autocomplete:JFe}))}const tNe=304,f0e=1,nNe=2,rNe=305,oNe=307,iNe=308,aNe=3,sNe=4,lNe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Uwe=125,cNe=59,d0e=47,uNe=42,fNe=43,dNe=45,hNe=new Bce({start:!1,shift(t,e){return e==aNe||e==sNe||e==oNe?t:e==iNe},strict:!1}),pNe=new A0((t,e)=>{let{next:o}=t;(o==Uwe||o==-1||e.context)&&t.acceptToken(rNe)},{contextual:!0,fallback:!0}),mNe=new A0((t,e)=>{let{next:o}=t,f;lNe.indexOf(o)>-1||o==d0e&&((f=t.peek(1))==d0e||f==uNe)||o!=Uwe&&o!=cNe&&o!=-1&&!e.context&&t.acceptToken(tNe)},{contextual:!0}),gNe=new A0((t,e)=>{let{next:o}=t;if((o==fNe||o==dNe)&&(t.advance(),o==t.next)){t.advance();let f=!e.context&&e.canShift(f0e);t.acceptToken(f?f0e:nNe)}},{contextual:!0}),vNe=gS({"get set async static":Gn.modifier,"for while do if else switch try catch finally return throw break continue default case":Gn.controlKeyword,"in of await yield void typeof delete instanceof":Gn.operatorKeyword,"let var const using function class extends":Gn.definitionKeyword,"import export from":Gn.moduleKeyword,"with debugger as new":Gn.keyword,TemplateString:Gn.special(Gn.string),super:Gn.atom,BooleanLiteral:Gn.bool,this:Gn.self,null:Gn.null,Star:Gn.modifier,VariableName:Gn.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Gn.function(Gn.variableName),VariableDefinition:Gn.definition(Gn.variableName),Label:Gn.labelName,PropertyName:Gn.propertyName,PrivatePropertyName:Gn.special(Gn.propertyName),"CallExpression/MemberExpression/PropertyName":Gn.function(Gn.propertyName),"FunctionDeclaration/VariableDefinition":Gn.function(Gn.definition(Gn.variableName)),"ClassDeclaration/VariableDefinition":Gn.definition(Gn.className),PropertyDefinition:Gn.definition(Gn.propertyName),PrivatePropertyDefinition:Gn.definition(Gn.special(Gn.propertyName)),UpdateOp:Gn.updateOperator,"LineComment Hashbang":Gn.lineComment,BlockComment:Gn.blockComment,Number:Gn.number,String:Gn.string,Escape:Gn.escape,ArithOp:Gn.arithmeticOperator,LogicOp:Gn.logicOperator,BitOp:Gn.bitwiseOperator,CompareOp:Gn.compareOperator,RegExp:Gn.regexp,Equals:Gn.definitionOperator,Arrow:Gn.function(Gn.punctuation),": Spread":Gn.punctuation,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace,"InterpolationStart InterpolationEnd":Gn.special(Gn.brace),".":Gn.derefOperator,", ;":Gn.separator,"@":Gn.meta,TypeName:Gn.typeName,TypeDefinition:Gn.definition(Gn.typeName),"type enum interface implements namespace module declare":Gn.definitionKeyword,"abstract global Privacy readonly override":Gn.modifier,"is keyof unique infer":Gn.operatorKeyword,JSXAttributeValue:Gn.attributeValue,JSXText:Gn.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Gn.angleBracket,"JSXIdentifier JSXNameSpacedName":Gn.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Gn.attributeName,"JSXBuiltin/JSXIdentifier":Gn.standard(Gn.tagName)}),yNe={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},bNe={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},xNe={__proto__:null,"<":139},_Ne=fS.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-ElOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-ExQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AfQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AnQSO,5=sO!AsQSO,5=sO!AxQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BWQWO,5=`O!B`Q,UO,5=aO!BkQSO,5=cO!BpQ`O,5=fO!BxQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!B}QSO'#HRO9{Q,UO'#HTO!CSQSO'#HTOOQQ,5=i,5=iO!CXQSO'#HUO!CjQSO'#CmO!CoQSO,58}O!CyQSO,58}O!FOQUO,58}OOQQ,58},58}O!F`Q(C[O,58}O%[QUO,58}O!HkQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IRQSO,5=uO`QUO,5={O`QUO,5=}O!IWQSO,5>PO`QUO,5>RO!I]QSO,5>UO!IbQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!MlQSO,5>fOOQQ,5>h,5>hO!MlQSO,5>hOOQQ,5>j,5>jO!MqQWO'#DYO%[QUO'#JiO!N`QWO'#JiO!N}QWO'#DhO# `QWO'#DhO##qQUO'#DhO##xQSO'#JhO#$QQSO,5:RO#$VQSO'#EnO#$eQSO'#JvO#$mQSO,5;XO#$rQWO'#DhO#%PQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%WQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%`QSO,5@TO#%eQ!LQO,5:pOOQO-E<_-E<_O#&kQ(C`O,5:{OChQWO,5:oO#&uQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'SQ(C[O,5:{O#'_Q(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'mQ(C[O,5:{POOO'#IU'#IUP#(RO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#(mQUO'#I[OOQO-EWQ(CjO1G0yO#>_Q(CjO1G0yO#@VQ(CjO1G0yO#CVQ$IUO'#CgO#ETQ$IUO1G1[O#E[Q$IUO'#JfO!,YQSO1G1bO#ElQ(CjO,5?SOOQ(CW-EeQSO1G3kO$.fQUO1G3mO$2jQUO'#HlOOQQ1G3p1G3pO$2wQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$3PQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$7WQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$7]Q$IUO,5:SOOQO,5;Y,5;YO$7gQWO'#I]O$7}QSO,5@SOOQ(CY1G/m1G/mO$8VQWO'#IcO$8aQSO,5@bOOQ(CW1G0s1G0sO# `QWO,5:SOOQO'#I`'#I`O$8iQWO,5:nOOQ(CY,5:n,5:nO#%ZQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8pQ(C[O1G0gO$8{Q(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$9ZQ(C[O1G0gOOQO1G0Z1G0ZO$9oQ(CjO1G0gPOOO-EvO$:]QSO1G5mO$:eQSO1G5zO$:mQbO1G5{O9TQSO,5>|O$:wQ(CjO1G5xO%[QUO1G5xO$;XQ(C[O1G5xO$;jQSO1G5wO$;jQSO1G5wO9TQSO1G5wO$;rQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$WOOQQ,5>W,5>WO%[QUO'#HmO%(vQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%({QWO1G5oO%)aQ$IUO1G0tO%)kQSO1G0tOOQO1G/n1G/nO%)vQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EjQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9oQ(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%*QQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%*]Q(C[O7+&RO%*kQ(CjO7++dO%[QUO7++dO%*{QSO7++cO%*{QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%+TQSO1G4kOOQO7+%z7+%zO#%ZQSO<xOOQO-E<[-E<[O%2yQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%3TQSO1G5qOOQ(CY<tQ$IUO1G0yO%>{Q$IUO1G0yO%@sQ$IUO1G0yO%AWQ(CjO<XOOQQ,5>Z,5>ZO& PQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO& UQ$IUO1G5{O>jQSO7+%YOOQ(CY<jQSO<jQSO7+)dO&6mQSO<{AN>{O%[QUOAN?XOOQO<PQSO7+*ZO&>[QSO<= ZO&>dQ`O7+*]OOQ(CW<nQ`O<uQSO<= dOOQQG27kG27kO9eQ(C[OG27kO!*SQUO1G4vO&>}QSO7++uO%MbQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&?VQSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#NWQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&?_QSOANBTOOQQ<fOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#APOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#C^O#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,sO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#C^O!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,sO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,sO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ tOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!jOz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#]O#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$zOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O`0gO'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+sO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#C^Om!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ tO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!jO#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#]O#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,sO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#C^O#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,sO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,sOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$J]Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$KOO(d$ZO~P#,sO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,sO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,sO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O`4`O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,sO!Y$|O~P#,sO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%%QOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O`5TO'v#mO'xTO'{UO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#C^O#Y5lO!W#bi!X#bi~O!W![i!X![i~P#C^O_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$J]O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$KOO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,sOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#C^OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%3jO#h9zO~P%3jOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5uOl9|O~P%5uOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%8QOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%8QOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:lO(k#|O~P%:lOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%yP?^P?^PPP?^PAOP?^P?^P?^PASPPAXPArPFjPPPFnPPPPFnIoPPPIuJpPFnPMOPPPP! ^FnPPPFnPFnP!#lFnP!'Q!(S!(]P!)P!)T!)PPPPPP!,`!(SPP!,|!-vP!0jFnFn!0o!3y!8`!8`!}P#@^#@e#@mPPPP#D{#Gr#NZ#N^#Na$ Y$ ]$ `$ g$ oPP$ u$ y$!q$#p$#t$$YPP$$^$$d$$hP$$k$$o$$r$%h$&P$&h$&l$&o$&r$&x$&{$'P$'TR!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ,T&^Q/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5T1VQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:hNe,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[vNe],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#yNe[t]||-1},{term:330,get:t=>bNe[t]||-1},{term:68,get:t=>xNe[t]||-1}],tokenPrec:12868}),jwe=[Hd("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Hd("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Hd("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Hd("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Hd("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Hd(`try { \${} } catch (\${error}) { \${} @@ -3664,13 +3664,13 @@ Please report this to https://github.com/markedjs/marked.`,e){const P="

An err constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),Hd('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Hd('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],bNe=Uwe.concat([Hd("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Hd("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Hd("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),d0e=new hce,jwe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function UL(t){return(e,o)=>{let f=e.node.getChild("VariableDefinition");return f&&o(f,t),!0}}const xNe=["FunctionDeclaration"],_Ne={FunctionDeclaration:UL("function"),ClassDeclaration:UL("class"),ClassExpression:()=>!0,EnumDeclaration:UL("constant"),TypeAliasDeclaration:UL("type"),NamespaceDeclaration:UL("namespace"),VariableDefinition(t,e){t.matchContext(xNe)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function Qwe(t,e){let o=d0e.get(e);if(o)return o;let f=[],P=!0;function d(l,n){let c=t.sliceString(l.from,l.to);f.push({label:c,type:n})}return e.cursor(mf.IncludeAnonymous).iterate(l=>{if(P)P=!1;else if(l.name){let n=_Ne[l.name];if(n&&n(l,d)||jwe.has(l.name))return!1}else if(l.to-l.from>8192){for(let n of Qwe(t,l.node))f.push(n);return!1}}),d0e.set(e,f),f}const h0e=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Hwe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function wNe(t){let e=Gu(t.state).resolveInner(t.pos,-1);if(Hwe.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&h0e.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let P=e;P;P=P.parent)jwe.has(P.name)&&(f=f.concat(Qwe(t.state.doc,P)));return{options:f,from:o?e.from:t.pos,validFor:h0e}}const d_=lS.define({name:"javascript",parser:yNe.configure({props:[OT.add({IfStatement:fI({except:/^\s*({|else\b)/}),TryStatement:fI({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:b8e,SwitchBody:t=>{let e=t.textAfter,o=/^\s*\}/.test(e),f=/^\s*(case|default)\b/.test(e);return t.baseIndent+(o?0:f?1:2)*t.unit},Block:xH({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":fI({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),gS.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":bce,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Zwe={test:t=>/^JSX/.test(t.name),facet:mce({commentTokens:{block:{open:"{/*",close:"*/}"}}})},qwe=d_.configure({dialect:"ts"},"typescript"),Wwe=d_.configure({dialect:"jsx",props:[gce.add(t=>t.isTop?[Zwe]:void 0)]}),Ywe=d_.configure({dialect:"jsx ts",props:[gce.add(t=>t.isTop?[Zwe]:void 0)]},"typescript");let Xwe=t=>({label:t,type:"keyword"});const Gwe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Xwe),ONe=Gwe.concat(["declare","implements","private","protected","public"].map(Xwe));function SNe(t={}){let e=t.jsx?t.typescript?Ywe:Wwe:t.typescript?qwe:d_,o=t.typescript?bNe.concat(ONe):Uwe.concat(Gwe);return new gT(e,[d_.data.of({autocomplete:Mce(Hwe,oq(o))}),d_.data.of({autocomplete:wNe}),t.jsx?CNe:[]])}function kNe(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function p0e(t,e,o=t.length){for(let f=e==null?void 0:e.firstChild;f;f=f.nextSibling)if(f.name=="JSXIdentifier"||f.name=="JSXBuiltin"||f.name=="JSXNamespacedName"||f.name=="JSXMemberExpression")return t.sliceString(f.from,Math.min(f.to,o));return""}const TNe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),CNe=Oa.inputHandler.of((t,e,o,f,P)=>{if((TNe?t.composing:t.compositionStarted)||t.state.readOnly||e!=o||f!=">"&&f!="/"||!d_.isActiveAt(t.state,e,-1))return!1;let d=P(),{state:l}=d,n=l.changeByRange(c=>{var b;let{head:i}=c,O=Gu(l).resolveInner(i-1,-1),w;if(O.name=="JSXStartTag"&&(O=O.parent),!(l.doc.sliceString(i-1,i)!=f||O.name=="JSXAttributeValue"&&O.to>i)){if(f==">"&&O.name=="JSXFragmentTag")return{range:c,changes:{from:i,insert:""}};if(f=="/"&&O.name=="JSXStartCloseTag"){let y=O.parent,p=y.parent;if(p&&y.from==i-2&&((w=p0e(l.doc,p.firstChild,i))||((b=p.firstChild)===null||b===void 0?void 0:b.name)=="JSXFragmentTag")){let a=`${w}>`;return{range:Yo.cursor(i+a.length,-1),changes:{from:i,insert:a}}}}else if(f==">"){let y=kNe(O);if(y&&!/^\/?>|^<\//.test(l.doc.sliceString(i,i+2))&&(w=p0e(l.doc,y,i)))return{range:c,changes:{from:i,insert:``}}}}return{range:c}});return n.changes.empty?!1:(t.dispatch([d,l.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),jL=["_blank","_self","_top","_parent"],eae=["ascii","utf-8","utf-16","latin1","latin1"],tae=["get","post","put","delete"],nae=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Mv=["true","false"],qa={},ANe={a:{attrs:{href:null,ping:null,type:null,media:null,target:jL,hreflang:null}},abbr:qa,address:qa,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:qa,aside:qa,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:qa,base:{attrs:{href:null,target:jL}},bdi:qa,bdo:qa,blockquote:{attrs:{cite:null}},body:qa,br:qa,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:nae,formmethod:tae,formnovalidate:["novalidate"],formtarget:jL,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:qa,center:qa,cite:qa,code:qa,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:qa,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:qa,div:qa,dl:qa,dt:qa,em:qa,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:qa,figure:qa,footer:qa,form:{attrs:{action:null,name:null,"accept-charset":eae,autocomplete:["on","off"],enctype:nae,method:tae,novalidate:["novalidate"],target:jL}},h1:qa,h2:qa,h3:qa,h4:qa,h5:qa,h6:qa,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:qa,hgroup:qa,hr:qa,html:{attrs:{manifest:null}},i:qa,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:nae,formmethod:tae,formnovalidate:["novalidate"],formtarget:jL,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:qa,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:qa,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:qa,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:eae,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:qa,noscript:qa,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:qa,param:{attrs:{name:null,value:null}},pre:qa,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:qa,rt:qa,ruby:qa,samp:qa,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:eae}},section:qa,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:qa,source:{attrs:{src:null,type:null,media:null}},span:qa,strong:qa,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:qa,summary:qa,sup:qa,table:qa,tbody:qa,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:qa,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:qa,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:qa,time:{attrs:{datetime:null}},title:qa,tr:qa,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:qa,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:qa},Kwe={accesskey:null,class:null,contenteditable:Mv,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Mv,autocorrect:Mv,autocapitalize:Mv,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Mv,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Mv,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Mv,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Mv,"aria-hidden":Mv,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Mv,"aria-multiselectable":Mv,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Mv,"aria-relevant":null,"aria-required":Mv,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Jwe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of Jwe)Kwe[t]=null;class rD{constructor(e,o){this.tags=Object.assign(Object.assign({},ANe),e),this.globalAttrs=Object.assign(Object.assign({},Kwe),o),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}rD.default=new rD;function _M(t,e,o=t.length){if(!e)return"";let f=e.firstChild,P=f&&f.getChild("TagName");return P?t.sliceString(P.from,Math.min(P.to,o)):""}function wM(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function eOe(t,e,o){let f=o.tags[_M(t,wM(e))];return(f==null?void 0:f.children)||o.allTags}function Lue(t,e){let o=[];for(let f=wM(e);f&&!f.type.isTop;f=wM(f.parent)){let P=_M(t,f);if(P&&f.lastChild.name=="CloseTag")break;P&&o.indexOf(P)<0&&(e.name=="EndTag"||e.from>=f.firstChild.to)&&o.push(P)}return o}const tOe=/^[:\-\.\w\u00b7-\uffff]*$/;function m0e(t,e,o,f,P){let d=/\s*>/.test(t.sliceDoc(P,P+5))?"":">",l=wM(o,!0);return{from:f,to:P,options:eOe(t.doc,l,e).map(n=>({label:n,type:"type"})).concat(Lue(t.doc,o).map((n,c)=>({label:"/"+n,apply:"/"+n+d,type:"type",boost:99-c}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function g0e(t,e,o,f){let P=/\s*>/.test(t.sliceDoc(f,f+5))?"":">";return{from:o,to:f,options:Lue(t.doc,e).map((d,l)=>({label:d,apply:d+P,type:"type",boost:99-l})),validFor:tOe}}function MNe(t,e,o,f){let P=[],d=0;for(let l of eOe(t.doc,o,e))P.push({label:"<"+l,type:"type"});for(let l of Lue(t.doc,o))P.push({label:"",type:"type",boost:99-d++});return{from:f,to:f,options:P,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function ENe(t,e,o,f,P){let d=wM(o),l=d?e.tags[_M(t.doc,d)]:null,n=l&&l.attrs?Object.keys(l.attrs):[],c=l&&l.globalAttrs===!1?n:n.length?n.concat(e.globalAttrNames):e.globalAttrNames;return{from:f,to:P,options:c.map(b=>({label:b,type:"property"})),validFor:tOe}}function PNe(t,e,o,f,P){var d;let l=(d=o.parent)===null||d===void 0?void 0:d.getChild("AttributeName"),n=[],c;if(l){let b=t.sliceDoc(l.from,l.to),i=e.globalAttrs[b];if(!i){let O=wM(o),w=O?e.tags[_M(t.doc,O)]:null;i=(w==null?void 0:w.attrs)&&w.attrs[b]}if(i){let O=t.sliceDoc(f,P).toLowerCase(),w='"',y='"';/^['"]/.test(O)?(c=O[0]=='"'?/^[^"]*$/:/^[^']*$/,w="",y=t.sliceDoc(P,P+1)==O[0]?"":O[0],O=O.slice(1),f++):c=/^[^\s<>='"]*$/;for(let p of i)n.push({label:p,apply:w+p+y,type:"constant"})}}return{from:f,to:P,options:n,validFor:c}}function nOe(t,e){let{state:o,pos:f}=e,P=Gu(o).resolveInner(f,-1),d=P.resolve(f);for(let l=f,n;d==P&&(n=P.childBefore(l));){let c=n.lastChild;if(!c||!c.type.isError||c.fromnOe(f,P)}const INe=d_.parser.configure({top:"SingleExpression"}),rOe=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:qwe.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:Wwe.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:Ywe.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:INe},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:d_.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:MZ.parser}],oOe=[{name:"style",parser:MZ.parser.configure({top:"Styles"})}].concat(Jwe.map(t=>({name:t,parser:d_.parser}))),iOe=lS.define({name:"html",parser:wFe.configure({props:[OT.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].lengtht.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),CH=iOe.configure({wrap:zwe(rOe,oOe)});function DNe(t={}){let e="",o;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(o=zwe((t.nestedLanguages||[]).concat(rOe),(t.nestedAttributes||[]).concat(oOe)));let f=o?iOe.configure({wrap:o,dialect:e}):e?CH.configure({dialect:e}):CH;return new gT(f,[CH.data.of({autocomplete:LNe(t)}),t.autoCloseTags!==!1?BNe:[],SNe().support,GFe().support])}const v0e=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),BNe=Oa.inputHandler.of((t,e,o,f,P)=>{if(t.composing||t.state.readOnly||e!=o||f!=">"&&f!="/"||!CH.isActiveAt(t.state,e,-1))return!1;let d=P(),{state:l}=d,n=l.changeByRange(c=>{var b,i,O;let w=l.doc.sliceString(c.from-1,c.to)==f,{head:y}=c,p=Gu(l).resolveInner(y-1,-1),a;if((p.name=="TagName"||p.name=="StartTag")&&(p=p.parent),w&&f==">"&&p.name=="OpenTag"){if(((i=(b=p.parent)===null||b===void 0?void 0:b.lastChild)===null||i===void 0?void 0:i.name)!="CloseTag"&&(a=_M(l.doc,p.parent,y))&&!v0e.has(a)){let u=y+(l.doc.sliceString(y,y+1)===">"?1:0),h=``;return{range:c,changes:{from:y,to:u,insert:h}}}}else if(w&&f=="/"&&p.name=="IncompleteCloseTag"){let u=p.parent;if(p.from==y-2&&((O=u.lastChild)===null||O===void 0?void 0:O.name)!="CloseTag"&&(a=_M(l.doc,u,y))&&!v0e.has(a)){let h=y+(l.doc.sliceString(y,y+1)===">"?1:0),m=`${a}>`;return{range:Yo.cursor(y+m.length,-1),changes:{from:y,to:h,insert:m}}}}return{range:c}});return n.changes.empty?!1:(t.dispatch([d,l.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),aOe=mce({commentTokens:{block:{open:""}}}),sOe=new ul,lOe=kze.configure({props:[gS.add(t=>!t.is("Block")||t.is("Document")||nle(t)!=null?void 0:(e,o)=>({from:o.doc.lineAt(e.from).to,to:e.to})),sOe.add(nle),OT.add({Document:()=>null}),aT.add({Document:aOe})]});function nle(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function zNe(t,e){let o=t;for(;;){let f=o.nextSibling,P;if(!f||(P=nle(f.type))!=null&&P<=e)break;o=f}return o.to}const FNe=Jye.of((t,e,o)=>{for(let f=Gu(t).resolveInner(o,-1);f&&!(f.fromo)return{from:o,to:d}}return null});function Iue(t){return new Gy(aOe,t,[FNe],"markdown")}const NNe=Iue(lOe),$Ne=lOe.configure([Bze,Fze,zze,Nze,{props:[gS.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),cOe=Iue($Ne);function VNe(t,e){return o=>{if(o&&t){let f=null;if(o=/\S*/.exec(o)[0],typeof t=="function"?f=t(o):f=qH.matchLanguageName(t,o,!0),f instanceof qH)return f.support?f.support.language.parser:NI.getSkippingParser(f.load());if(f)return f.parser}return e?e.parser:null}}class rH{constructor(e,o,f,P,d,l,n){this.node=e,this.from=o,this.to=f,this.spaceBefore=P,this.spaceAfter=d,this.type=l,this.item=n}blank(e,o=!0){let f=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;f.length0;P--)f+=" ";return f+(o?this.spaceAfter:"")}}marker(e,o){let f=this.node.name=="OrderedList"?String(+fOe(this.item,e)[2]+o):"";return this.spaceBefore+f+this.type+this.spaceAfter}}function uOe(t,e){let o=[];for(let P=t;P&&P.name!="Document";P=P.parent)(P.name=="ListItem"||P.name=="Blockquote"||P.name=="FencedCode")&&o.push(P);let f=[];for(let P=o.length-1;P>=0;P--){let d=o[P],l,n=e.lineAt(d.from),c=d.from-n.from;if(d.name=="FencedCode")f.push(new rH(d,c,c,"","","",null));else if(d.name=="Blockquote"&&(l=/^ *>( ?)/.exec(n.text.slice(c))))f.push(new rH(d,c,c+l[0].length,"",l[1],">",null));else if(d.name=="ListItem"&&d.parent.name=="OrderedList"&&(l=/^( *)\d+([.)])( *)/.exec(n.text.slice(c)))){let b=l[3],i=l[0].length;b.length>=4&&(b=b.slice(0,b.length-4),i-=4),f.push(new rH(d.parent,c,c+i,l[1],b,l[2],d))}else if(d.name=="ListItem"&&d.parent.name=="BulletList"&&(l=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(n.text.slice(c)))){let b=l[4],i=l[0].length;b.length>4&&(b=b.slice(0,b.length-4),i-=4);let O=l[2];l[3]&&(O+=l[3].replace(/[xX]/," ")),f.push(new rH(d.parent,c,c+i,l[1],b,O,d))}}return f}function fOe(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function rae(t,e,o,f=0){for(let P=-1,d=t;;){if(d.name=="ListItem"){let n=fOe(d,e),c=+n[2];if(P>=0){if(c!=P+1)return;o.push({from:d.from+n[1].length,to:d.from+n[0].length,insert:String(P+2+f)})}P=c}let l=d.nextSibling;if(!l)break;d=l}}function rle(t,e){let o=/^[ \t]*/.exec(t)[0].length;if(!o||e.facet(wT)!=" ")return t;let f=bx(t,4,o),P="";for(let d=f;d>0;)d>=4?(P+=" ",d-=4):(P+=" ",d--);return P+t.slice(o)}const UNe=({state:t,dispatch:e})=>{let o=Gu(t),{doc:f}=t,P=null,d=t.changeByRange(l=>{if(!l.empty||!cOe.isActiveAt(t,l.from))return P={range:l};let n=l.from,c=f.lineAt(n),b=uOe(o.resolveInner(n,-1),f);for(;b.length&&b[b.length-1].from>n-c.from;)b.pop();if(!b.length)return P={range:l};let i=b[b.length-1];if(i.to-i.spaceAfter.length>n-c.from)return P={range:l};let O=n>=i.to-i.spaceAfter.length&&!/\S/.test(c.text.slice(i.to));if(i.item&&O)if(i.node.firstChild.to>=n||c.from>0&&!/[^\s>]/.test(f.lineAt(c.from-1).text)){let u=b.length>1?b[b.length-2]:null,h,m="";u&&u.item?(h=c.from+u.from,m=u.marker(f,1)):h=c.from+(u?u.to:0);let v=[{from:h,to:n,insert:m}];return i.node.name=="OrderedList"&&rae(i.item,f,v,-2),u&&u.node.name=="OrderedList"&&rae(u.item,f,v),{range:Yo.cursor(h+m.length),changes:v}}else{let u="";for(let h=0,m=b.length-2;h<=m;h++)u+=b[h].blank(h\s*$/.exec(u.text);if(h&&h.index==i.from){let m=t.changes([{from:u.from+h.index,to:u.to},{from:c.from+i.from,to:c.to}]);return{range:l.map(m),changes:m}}}let w=[];i.node.name=="OrderedList"&&rae(i.item,f,w);let y=i.item&&i.item.from]*/.exec(c.text)[0].length>=i.to)for(let u=0,h=b.length-1;u<=h;u++)p+=u==h&&!y?b[u].marker(f,1):b[u].blank(uc.from&&/\s/.test(c.text.charAt(a-c.from-1));)a--;return p=rle(p,t),w.push({from:a,to:n,insert:t.lineBreak+p}),{range:Yo.cursor(a+p.length+1),changes:w}});return P?!1:(e(t.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)};function y0e(t){return t.name=="QuoteMark"||t.name=="ListMark"}function jNe(t,e){let o=t.resolveInner(e,-1),f=e;y0e(o)&&(f=o.from,o=o.parent);for(let P;P=o.childBefore(f);)if(y0e(P))f=P.from;else if(P.name=="OrderedList"||P.name=="BulletList")o=P.lastChild,f=o.to;else break;return o}const QNe=({state:t,dispatch:e})=>{let o=Gu(t),f=null,P=t.changeByRange(d=>{let l=d.from,{doc:n}=t;if(d.empty&&cOe.isActiveAt(t,d.from)){let c=n.lineAt(l),b=uOe(jNe(o,l),n);if(b.length){let i=b[b.length-1],O=i.to-i.spaceAfter.length+(i.spaceAfter?1:0);if(l-c.from>O&&!/\S/.test(c.text.slice(O,l-c.from)))return{range:Yo.cursor(c.from+O),changes:{from:c.from+O,to:l}};if(l-c.from==O&&(!i.item||c.from<=i.item.from||!/\S/.test(c.text.slice(0,i.to)))){let w=c.from+i.from;if(i.item&&i.node.fromd.createCell(c))},{code:Oo(()=>[t.$devMode&&!d.isMobile?(Bo(),la(l,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=c=>o.cellData.code=c),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):Wa("",!0)]),outcome:Oo(()=>[pa("div",{class:"markdown-content",innerHTML:d.compiledMarkdown},null,8,YNe)]),_:1},8,["cell-id","is-dev-mode","hide-cell","cell-name","onDelete","onSave"])}const hOe=hm(WNe,[["render",XNe],["__scopeId","data-v-d5250b54"]]);var GNe={exports:{}};(function(t){(function(){var e=function(r){if(r===null)return"null";if(r===void 0)return"undefined";var g=typeof r;return g==="object"&&(Array.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="Array")?"array":g==="object"&&(String.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="String")?"string":g},o=function(r){return["undefined","boolean","number","string","function","xml","null"].indexOf(r)!==-1},f=function(r,g){var B=Array.prototype.slice.call(r);return B.sort(g)},P=function(r,g){return d(function(B,H){return r.eq(g(B),g(H))})},d=function(r){return{eq:r}},l=d(function(r,g){return r===g}),n=l,c=function(r){return d(function(g,B){if(g.length!==B.length)return!1;for(var H=g.length,re=0;re{var H;return B(r,g.prototype)?!0:((H=r.constructor)===null||H===void 0?void 0:H.name)===g.name},p=r=>{const g=typeof r;return r===null?"null":g==="object"&&Array.isArray(r)?"array":g==="object"&&y(r,String,(B,H)=>H.isPrototypeOf(B))?"string":g},a=r=>g=>p(g)===r,u=r=>g=>typeof g===r,h=r=>g=>r===g,m=(r,g)=>_(r)&&y(r,g,(B,H)=>w(B)===H),v=a("string"),_=a("object"),S=r=>m(r,Object),A=a("array"),x=h(null),R=u("boolean"),M=h(void 0),T=r=>r==null,E=r=>!T(r),C=u("function"),L=u("number"),D=(r,g)=>{if(A(r)){for(let B=0,H=r.length;B{},I=(r,g)=>(...B)=>r(g.apply(null,B)),z=(r,g)=>B=>r(g(B)),$=r=>()=>r,Q=r=>r,j=(r,g)=>r===g;function U(r,...g){return(...B)=>{const H=g.concat(B);return r.apply(null,H)}}const X=r=>g=>!r(g),te=r=>()=>{throw new Error(r)},W=r=>r(),K=r=>{r()},oe=$(!1),q=$(!0);class Y{constructor(g,B){this.tag=g,this.value=B}static some(g){return new Y(!0,g)}static none(){return Y.singletonNone}fold(g,B){return this.tag?B(this.value):g()}isSome(){return this.tag}isNone(){return!this.tag}map(g){return this.tag?Y.some(g(this.value)):Y.none()}bind(g){return this.tag?g(this.value):Y.none()}exists(g){return this.tag&&g(this.value)}forall(g){return!this.tag||g(this.value)}filter(g){return!this.tag||g(this.value)?this:Y.none()}getOr(g){return this.tag?this.value:g}or(g){return this.tag?this:g}getOrThunk(g){return this.tag?this.value:g()}orThunk(g){return this.tag?this:g()}getOrDie(g){if(this.tag)return this.value;throw new Error(g??"Called getOrDie on None")}static from(g){return E(g)?Y.some(g):Y.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(g){this.tag&&g(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}Y.singletonNone=new Y(!1);const ee=Array.prototype.slice,me=Array.prototype.indexOf,he=Array.prototype.push,se=(r,g)=>me.call(r,g),ae=(r,g)=>{const B=se(r,g);return B===-1?Y.none():Y.some(B)},ce=(r,g)=>se(r,g)>-1,de=(r,g)=>{for(let B=0,H=r.length;B{const B=r.length,H=new Array(B);for(let re=0;re{for(let B=0,H=r.length;B{for(let B=r.length-1;B>=0;B--){const H=r[B];g(H,B)}},Se=(r,g)=>{const B=[],H=[];for(let re=0,be=r.length;re{const B=[];for(let H=0,re=r.length;H(_e(r,(H,re)=>{B=g(B,H,re)}),B),Ie=(r,g,B)=>(ye(r,(H,re)=>{B=g(B,H,re)}),B),ze=(r,g,B)=>{for(let H=0,re=r.length;Hze(r,g,oe),He=(r,g)=>{for(let B=0,H=r.length;B{const g=[];for(let B=0,H=r.length;BVe(ve(r,g)),Oe=(r,g)=>{for(let B=0,H=r.length;B{const g=ee.call(r,0);return g.reverse(),g},Le=(r,g)=>Te(r,B=>!ce(g,B)),We=(r,g)=>{const B={};for(let H=0,re=r.length;H{const B=ee.call(r,0);return B.sort(g),B},Ze=(r,g)=>g>=0&&gZe(r,0),tt=r=>Ze(r,r.length-1),Ee=C(Array.from)?Array.from:r=>ee.call(r),Ne=(r,g)=>{for(let B=0;B{const B=[],H=C(g)?re=>de(B,be=>g(be,re)):re=>ce(B,re);for(let re=0,be=r.length;re{const B=nt(r);for(let H=0,re=B.length;Hpt(r,(B,H)=>({k:H,v:g(B,H)})),pt=(r,g)=>{const B={};return Ge(r,(H,re)=>{const be=g(H,re);B[be.k]=be.v}),B},wt=r=>(g,B)=>{r[B]=g},Dt=(r,g,B,H)=>{Ge(r,(re,be)=>{(g(re,be)?B:H)(re,be)})},It=(r,g)=>{const B={},H={};return Dt(r,g,wt(B),wt(H)),{t:B,f:H}},qt=(r,g)=>{const B={};return Dt(r,g,wt(B),k),B},en=(r,g)=>{const B=[];return Ge(r,(H,re)=>{B.push(g(H,re))}),B},Gt=r=>en(r,Q),Ct=(r,g)=>_t(r,g)?Y.from(r[g]):Y.none(),_t=(r,g)=>ot.call(r,g),nn=(r,g)=>_t(r,g)&&r[g]!==void 0&&r[g]!==null,gn=(r,g,B=O)=>i(B).eq(r,g),bn=r=>{const g={};return ye(r,B=>{g[B]={}}),nt(g)},mn=r=>r.length!==void 0,vt=Array.isArray,bt=r=>{if(vt(r))return r;{const g=[];for(let B=0,H=r.length;B{if(!r)return!1;if(B=B||r,mn(r)){for(let H=0,re=r.length;H{const B=[];return lt(r,(H,re)=>{B.push(g(H,re,r))}),B},zt=(r,g)=>{const B=[];return lt(r,(H,re)=>{(!g||g(H,re,r))&&B.push(H)}),B},Rt=(r,g)=>{if(r){for(let B=0,H=r.length;B{let re=M(B)?r[0]:B;for(let be=0;be{for(let H=0,re=r.length;Hr[r.length-1],xt=r=>{let g=!1,B;return(...H)=>(g||(g=!0,B=r.apply(null,H)),B)},Ht=(r,g,B,H)=>{const re=r.isiOS()&&/ipad/i.test(B)===!0,be=r.isiOS()&&!re,Re=r.isiOS()||r.isAndroid(),Ke=Re||H("(pointer:coarse)"),ct=re||!be&&Re&&H("(min-device-width:768px)"),kt=be||Re&&!ct,Wt=g.isSafari()&&r.isiOS()&&/safari/i.test(B)===!1,Jt=!kt&&!ct&&!Wt;return{isiPad:$(re),isiPhone:$(be),isTablet:$(ct),isPhone:$(kt),isTouch:$(Ke),isAndroid:r.isAndroid,isiOS:r.isiOS,isWebView:$(Wt),isDesktop:$(Jt)}},Xt=(r,g)=>{for(let B=0;B{const B=Xt(r,g);if(!B)return{major:0,minor:0};const H=re=>Number(g.replace(B,"$"+re));return tn(H(1),H(2))},Qt=(r,g)=>{const B=String(g).toLowerCase();return r.length===0?Pt():Yt(r,B)},Pt=()=>tn(0,0),tn=(r,g)=>({major:r,minor:g}),Kt={nu:tn,detect:Qt,unknown:Pt},fn=(r,g)=>Ne(g.brands,B=>{const H=B.brand.toLowerCase();return De(r,re=>{var be;return H===((be=re.brand)===null||be===void 0?void 0:be.toLowerCase())}).map(re=>({current:re.name,version:Kt.nu(parseInt(B.version,10),0)}))}),dn=(r,g)=>{const B=String(g).toLowerCase();return De(r,H=>H.search(B))},vn=(r,g)=>dn(r,g).map(B=>{const H=Kt.detect(B.versionRegexes,g);return{current:B.name,version:H}}),Nn=(r,g)=>dn(r,g).map(B=>{const H=Kt.detect(B.versionRegexes,g);return{current:B.name,version:H}}),er=(r,g)=>r.substring(g),En=(r,g,B)=>g===""||r.length>=g.length&&r.substr(B,B+g.length)===g,In=(r,g)=>xr(r,g)?er(r,g.length):r,Un=(r,g,B=0,H)=>{const re=r.indexOf(g,B);return re!==-1?M(H)?!0:re+g.length<=H:!1},xr=(r,g)=>En(r,g,0),Sr=(r,g)=>En(r,g,r.length-g.length),ar=r=>g=>g.replace(r,""),Fn=ar(/^\s+|\s+$/g),ir=ar(/^\s+/g),Wn=ar(/\s+$/g),Kn=r=>r.length>0,_r=r=>!Kn(r),Ir=(r,g)=>g<=0?"":new Array(g+1).join(r),zr=(r,g=10)=>{const B=parseInt(r,g);return isNaN(B)?Y.none():Y.some(B)},Fr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Rr=r=>g=>Un(g,r),$r=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:r=>Un(r,"edge/")&&Un(r,"chrome")&&Un(r,"safari")&&Un(r,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Fr],search:r=>Un(r,"chrome")&&!Un(r,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:r=>Un(r,"msie")||Un(r,"trident")},{name:"Opera",versionRegexes:[Fr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Rr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Rr("firefox")},{name:"Safari",versionRegexes:[Fr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:r=>(Un(r,"safari")||Un(r,"mobile/"))&&Un(r,"applewebkit")}],Kr=[{name:"Windows",search:Rr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:r=>Un(r,"iphone")||Un(r,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Rr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Rr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Rr("linux"),versionRegexes:[]},{name:"Solaris",search:Rr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Rr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Rr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Co={browsers:$($r),oses:$(Kr)},so="Edge",So="Chromium",go="IE",li="Opera",Pn="Firefox",Yn="Safari",br=()=>dr({current:void 0,version:Kt.unknown()}),dr=r=>{const g=r.current,B=r.version,H=re=>()=>g===re;return{current:g,version:B,isEdge:H(so),isChromium:H(So),isIE:H(go),isOpera:H(li),isFirefox:H(Pn),isSafari:H(Yn)}},Cr={unknown:br,nu:dr,edge:$(so),chromium:$(So),ie:$(go),opera:$(li),firefox:$(Pn),safari:$(Yn)},io="Windows",Qr="iOS",Wr="Android",bo="Linux",Bn="macOS",hr="Solaris",hn="FreeBSD",zn="ChromeOS",Zn=()=>yr({current:void 0,version:Kt.unknown()}),yr=r=>{const g=r.current,B=r.version,H=re=>()=>g===re;return{current:g,version:B,isWindows:H(io),isiOS:H(Qr),isAndroid:H(Wr),isMacOS:H(Bn),isLinux:H(bo),isSolaris:H(hr),isFreeBSD:H(hn),isChromeOS:H(zn)}},gr={unknown:Zn,nu:yr,windows:$(io),ios:$(Qr),android:$(Wr),linux:$(bo),macos:$(Bn),solaris:$(hr),freebsd:$(hn),chromeos:$(zn)},nr={detect:(r,g,B)=>{const H=Co.browsers(),re=Co.oses(),be=g.bind(ct=>fn(H,ct)).orThunk(()=>vn(H,r)).fold(Cr.unknown,Cr.nu),Re=Nn(re,r).fold(gr.unknown,gr.nu),Ke=Ht(Re,be,r,B);return{browser:be,os:Re,deviceType:Ke}}},Qn=r=>window.matchMedia(r).matches;let Hn=xt(()=>nr.detect(navigator.userAgent,Y.from(navigator.userAgentData),Qn));const tr=()=>Hn(),cr=navigator.userAgent,Lr=tr(),Er=Lr.browser,Vr=Lr.os,to=Lr.deviceType,_o=cr.indexOf("Windows Phone")!==-1,fr={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Er.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Er.isIE(),windowsPhone:_o,browser:{current:Er.current,version:Er.version,isChromium:Er.isChromium,isEdge:Er.isEdge,isFirefox:Er.isFirefox,isIE:Er.isIE,isOpera:Er.isOpera,isSafari:Er.isSafari},os:{current:Vr.current,version:Vr.version,isAndroid:Vr.isAndroid,isChromeOS:Vr.isChromeOS,isFreeBSD:Vr.isFreeBSD,isiOS:Vr.isiOS,isLinux:Vr.isLinux,isMacOS:Vr.isMacOS,isSolaris:Vr.isSolaris,isWindows:Vr.isWindows},deviceType:{isDesktop:to.isDesktop,isiPad:to.isiPad,isiPhone:to.isiPhone,isPhone:to.isPhone,isTablet:to.isTablet,isTouch:to.isTouch,isWebView:to.isWebView}},Eo=/^\s*|\s*$/g,ao=r=>T(r)?"":(""+r).replace(Eo,""),co=(r,g)=>g?g==="array"&&vt(r)?!0:typeof r===g:r!==void 0,Go=(r,g,B={})=>{const H=v(r)?r.split(g||","):r||[];let re=H.length;for(;re--;)B[H[re]]={};return B},po=_t,qo=(r,...g)=>{for(let B=0;Bg.call(H,re,be,B)===!1?!1:(Ao(re,g,B,H),!0)))},mo={trim:ao,isArray:vt,is:co,toArray:bt,makeMap:Go,each:lt,map:yt,grep:zt,inArray:Rt,hasOwn:po,extend:qo,walk:Ao,resolve:(r,g=window)=>{const B=r.split(".");for(let H=0,re=B.length;HA(r)?r:r===""?[]:yt(r.split(g||","),ao),_addCacheSuffix:r=>{const g=fr.cacheSuffix;return g&&(r+=(r.indexOf("?")===-1?"?":"&")+g),r}},Aa=(r,g,B=j)=>r.exists(H=>B(H,g)),Xl=(r,g,B=j)=>cs(r,g,B).getOr(r.isNone()&&g.isNone()),Na=r=>{const g=[],B=H=>{g.push(H)};for(let H=0;Hr.isSome()&&g.isSome()?Y.some(B(r.getOrDie(),g.getOrDie())):Y.none(),wc=(r,g,B,H)=>r.isSome()&&g.isSome()&&B.isSome()?Y.some(H(r.getOrDie(),g.getOrDie(),B.getOrDie())):Y.none(),ma=(r,g)=>r?Y.some(g):Y.none(),Ku=typeof window<"u"?window:Function("return this;")(),qc=(r,g)=>{let B=g??Ku;for(let H=0;H{const B=r.split(".");return qc(B,g)},Ql=(r,g)=>Yd(r,g),Ed=(r,g)=>{const B=Ql(r,g);if(B==null)throw new Error(r+" not available on this browser");return B},Nf=Object.getPrototypeOf,mm=r=>Ed("HTMLElement",r),Ws=r=>{const g=Yd("ownerDocument.defaultView",r);return _(r)&&(mm(g).prototype.isPrototypeOf(r)||/^HTML\w*Element$/.test(Nf(r).constructor.name))},gm=8,Gl=9,pc=11,Cu=1,yl=3,sa=r=>r.dom.nodeName.toLowerCase(),cc=r=>r.dom.nodeType,hu=r=>g=>cc(g)===r,ju=r=>cc(r)===gm||sa(r)==="#comment",iu=r=>mc(r)&&Ws(r.dom),mc=hu(Cu),Ss=hu(yl),$f=hu(Gl),vf=hu(pc),Ju=r=>g=>mc(g)&&sa(g)===r,$h=(r,g,B)=>{if(v(B)||R(B)||L(B))r.setAttribute(g,B+"");else throw console.error("Invalid call to Attribute.set. Key ",g,":: Value ",B,":: Element ",r),new Error("Attribute value was not simple")},Es=(r,g,B)=>{$h(r.dom,g,B)},ef=(r,g)=>{const B=r.dom;Ge(g,(H,re)=>{$h(B,re,H)})},uc=(r,g)=>{const B=r.dom.getAttribute(g);return B===null?void 0:B},ad=(r,g)=>Y.from(uc(r,g)),Vf=(r,g)=>{const B=r.dom;return B&&B.hasAttribute?B.hasAttribute(g):!1},gc=(r,g)=>{r.dom.removeAttribute(g)},sd=r=>{const g=r.dom.attributes;return g==null||g.length===0},Mp=r=>Ie(r.dom.attributes,(g,B)=>(g[B.name]=B.value,g),{}),Xd=(r,g)=>{const B=uc(r,g);return B===void 0||B===""?[]:B.split(" ")},yf=(r,g,B)=>{const re=Xd(r,g).concat([B]);return Es(r,g,re.join(" ")),!0},mh=(r,g,B)=>{const H=Te(Xd(r,g),re=>re!==B);return H.length>0?Es(r,g,H.join(" ")):gc(r,g),!1},ld=r=>r.dom.classList!==void 0,Vh=r=>Xd(r,"class"),bf=(r,g)=>yf(r,"class",g),tf=(r,g)=>mh(r,"class",g),Au=(r,g)=>ce(Vh(r),g)?tf(r,g):bf(r,g),xf=(r,g)=>{ld(r)?r.dom.classList.add(g):bf(r,g)},cd=r=>{(ld(r)?r.dom.classList:Vh(r)).length===0&&gc(r,"class")},nf=(r,g)=>{ld(r)?r.dom.classList.remove(g):tf(r,g),cd(r)},gh=(r,g)=>{const B=ld(r)?r.dom.classList.toggle(g):Au(r,g);return cd(r),B},rs=(r,g)=>ld(r)&&r.dom.classList.contains(g),ep=(r,g)=>{const H=(g||document).createElement("div");if(H.innerHTML=r,!H.hasChildNodes()||H.childNodes.length>1){const re="HTML does not have a single root node";throw console.error(re,r),new Error(re)}return Pd(H.childNodes[0])},Ep=(r,g)=>{const H=(g||document).createElement(r);return Pd(H)},vm=(r,g)=>{const H=(g||document).createTextNode(r);return Pd(H)},Pd=r=>{if(r==null)throw new Error("Node cannot be null or undefined");return{dom:r}},sr={fromHtml:ep,fromTag:Ep,fromText:vm,fromDom:Pd,fromPoint:(r,g,B)=>Y.from(r.dom.elementFromPoint(g,B)).map(Pd)},Pp=(r,g)=>{const B=[],H=be=>(B.push(be),g(be));let re=g(r);do re=re.bind(H);while(re.isSome());return B},_f=(r,g)=>{const B=r.dom;if(B.nodeType!==Cu)return!1;{const H=B;if(H.matches!==void 0)return H.matches(g);if(H.msMatchesSelector!==void 0)return H.msMatchesSelector(g);if(H.webkitMatchesSelector!==void 0)return H.webkitMatchesSelector(g);if(H.mozMatchesSelector!==void 0)return H.mozMatchesSelector(g);throw new Error("Browser lacks native selectors")}},wf=r=>r.nodeType!==Cu&&r.nodeType!==Gl&&r.nodeType!==pc||r.childElementCount===0,Rp=(r,g)=>{const B=g===void 0?document:g.dom;return wf(B)?[]:ve(B.querySelectorAll(r),sr.fromDom)},Gd=(r,g)=>{const B=g===void 0?document:g.dom;return wf(B)?Y.none():Y.from(B.querySelector(r)).map(sr.fromDom)},Fa=(r,g)=>r.dom===g.dom,Qu=(r,g)=>{const B=r.dom,H=g.dom;return B===H?!1:B.contains(H)},rf=r=>sr.fromDom(r.dom.ownerDocument),Bc=r=>$f(r)?r:rf(r),ym=r=>sr.fromDom(Bc(r).dom.documentElement),Mu=r=>sr.fromDom(Bc(r).dom.defaultView),Hu=r=>Y.from(r.dom.parentNode).map(sr.fromDom),Lp=r=>Y.from(r.dom.parentElement).map(sr.fromDom),Uh=(r,g)=>{const B=C(g)?g:oe;let H=r.dom;const re=[];for(;H.parentNode!==null&&H.parentNode!==void 0;){const be=H.parentNode,Re=sr.fromDom(be);if(re.push(Re),B(Re)===!0)break;H=be}return re},jh=r=>{const g=B=>Te(B,H=>!Fa(r,H));return Hu(r).map(Oc).map(g).getOr([])},Eu=r=>Y.from(r.dom.previousSibling).map(sr.fromDom),ud=r=>Y.from(r.dom.nextSibling).map(sr.fromDom),vh=r=>ke(Pp(r,Eu)),Pu=r=>Pp(r,ud),Oc=r=>ve(r.dom.childNodes,sr.fromDom),ks=(r,g)=>{const B=r.dom.childNodes;return Y.from(B[g]).map(sr.fromDom)},Uf=r=>ks(r,0),zl=r=>ks(r,r.dom.childNodes.length-1),Hl=r=>r.dom.childNodes.length,Ts=r=>{const g=r.dom.head;if(g==null)throw new Error("Head is not available yet");return sr.fromDom(g)},$s=r=>vf(r)&&E(r.dom.host),Zu=C(Element.prototype.attachShadow)&&C(Node.prototype.getRootNode),yh=$(Zu),of=Zu?r=>sr.fromDom(r.dom.getRootNode()):Bc,tp=r=>$s(r)?r:Ts(Bc(r)),Ip=r=>$s(r)?r:sr.fromDom(Bc(r).dom.body),bm=r=>{const g=of(r);return $s(g)?Y.some(g):Y.none()},Kd=r=>sr.fromDom(r.dom.host),bh=r=>{if(yh()&&E(r.target)){const g=sr.fromDom(r.target);if(mc(g)&&Jd(g)&&r.composed&&r.composedPath){const B=r.composedPath();if(B)return Xe(B)}}return Y.from(r.target)},Jd=r=>E(r.dom.shadowRoot),zc=r=>{const g=Ss(r)?r.dom.parentNode:r.dom;if(g==null||g.ownerDocument===null)return!1;const B=g.ownerDocument;return bm(sr.fromDom(g)).fold(()=>B.body.contains(g),z(zc,Kd))};var np=(r,g,B,H,re)=>r(B,H)?Y.some(B):C(re)&&re(B)?Y.none():g(B,H,re);const ms=(r,g,B)=>{let H=r.dom;const re=C(B)?B:oe;for(;H.parentNode;){H=H.parentNode;const be=sr.fromDom(H);if(g(be))return Y.some(be);if(re(be))break}return Y.none()},Ya=(r,g,B)=>np((re,be)=>be(re),ms,r,g,B),bl=(r,g)=>{const B=r.dom;return B.parentNode?fl(sr.fromDom(B.parentNode),H=>!Fa(r,H)&&g(H)):Y.none()},fl=(r,g)=>{const B=re=>g(sr.fromDom(re));return De(r.dom.childNodes,B).map(sr.fromDom)},Wc=(r,g)=>{const B=H=>{for(let re=0;rems(r,H=>_f(H,g),B),xi=(r,g)=>Gd(g,r),pu=(r,g,B)=>np((re,be)=>_f(re,be),xl,r,g,B),xh=r=>pu(r,"[contenteditable]"),js=(r,g=!1)=>zc(r)?r.dom.isContentEditable:xh(r).fold($(g),B=>os(B)==="true"),os=r=>r.dom.contentEditable,af=r=>r.style!==void 0&&C(r.style.getPropertyValue),Of=(r,g,B)=>{if(!v(B))throw console.error("Invalid call to CSS.set. Property ",g,":: Value ",B,":: Element ",r),new Error("CSS value must be a string: "+B);af(r)&&r.style.setProperty(g,B)},sf=(r,g)=>{af(r)&&r.style.removeProperty(g)},Ml=(r,g,B)=>{const H=r.dom;Of(H,g,B)},Hi=(r,g)=>{const B=r.dom;Ge(g,(H,re)=>{Of(B,re,H)})},pi=(r,g)=>{const B=r.dom,re=window.getComputedStyle(B).getPropertyValue(g);return re===""&&!zc(r)?Qh(B,g):re},Qh=(r,g)=>af(r)?r.style.getPropertyValue(g):"",Ru=(r,g)=>{const B=r.dom,H=Qh(B,g);return Y.from(H).filter(re=>re.length>0)},vc=r=>{const g={},B=r.dom;if(af(B))for(let H=0;H{const B=r.dom;sf(B,g),Aa(ad(r,"style").map(Fn),"")&&gc(r,"style")},Kl=r=>r.dom.offsetWidth,Fc=(r,g)=>{Hu(r).each(H=>{H.dom.insertBefore(g.dom,r.dom)})},si=(r,g)=>{ud(r).fold(()=>{Hu(r).each(re=>{Ps(re,g)})},H=>{Fc(H,g)})},Hh=(r,g)=>{Uf(r).fold(()=>{Ps(r,g)},H=>{r.dom.insertBefore(g.dom,H.dom)})},Ps=(r,g)=>{r.dom.appendChild(g.dom)},Sc=(r,g)=>{Fc(r,g),Ps(g,r)},tl=(r,g)=>{ye(g,(B,H)=>{const re=H===0?r:g[H-1];si(re,B)})},mu=(r,g)=>{ye(g,B=>{Ps(r,B)})},gu=r=>{r.dom.textContent="",ye(Oc(r),g=>{ja(g)})},ja=r=>{const g=r.dom;g.parentNode!==null&&g.parentNode.removeChild(g)},vu=r=>{const g=Oc(r);g.length>0&&tl(r,g),ja(r)},Rd=(r,g)=>{const H=(g||document).createElement("div");return H.innerHTML=r,Oc(sr.fromDom(H))},Ld=r=>ve(r,sr.fromDom),nl=r=>r.dom.innerHTML,Id=(r,g)=>{const H=rf(r).dom,re=sr.fromDom(H.createDocumentFragment()),be=Rd(g,H);mu(re,be),gu(r),Ps(r,re)},Ka=r=>{const g=sr.fromTag("div"),B=sr.fromDom(r.dom.cloneNode(!0));return Ps(g,B),nl(g)},Xi=(r,g,B,H,re,be,Re)=>({target:r,x:g,y:B,stop:H,prevent:re,kill:be,raw:Re}),Xc=r=>{const g=sr.fromDom(bh(r).getOr(r.target)),B=()=>r.stopPropagation(),H=()=>r.preventDefault(),re=I(H,B);return Xi(g,r.clientX,r.clientY,B,H,re,r)},jf=(r,g)=>B=>{r(B)&&g(Xc(B))},yu=(r,g,B,H,re)=>{const be=jf(B,H);return r.dom.addEventListener(g,be,re),{unbind:U(rp,r,g,be,re)}},Dp=(r,g,B,H)=>yu(r,g,B,H,!1),rp=(r,g,B,H)=>{r.dom.removeEventListener(g,B,H)},Lu=(r,g)=>({left:r,top:g,translate:(H,re)=>Lu(r+H,g+re)}),us=Lu,Qf=r=>{const g=r.getBoundingClientRect();return us(g.left,g.top)},fd=(r,g)=>r!==void 0?r:g!==void 0?g:0,Hf=r=>{const g=r.dom.ownerDocument,B=g.body,H=g.defaultView,re=g.documentElement;if(B===r.dom)return us(B.offsetLeft,B.offsetTop);const be=fd(H==null?void 0:H.pageYOffset,re.scrollTop),Re=fd(H==null?void 0:H.pageXOffset,re.scrollLeft),Ke=fd(re.clientTop,B.clientTop),ct=fd(re.clientLeft,B.clientLeft);return _h(r).translate(Re-ct,be-Ke)},_h=r=>{const g=r.dom,H=g.ownerDocument.body;return H===g?us(H.offsetLeft,H.offsetTop):zc(r)?Qf(g):us(0,0)},Gc=r=>{const g=r!==void 0?r.dom:document,B=g.body.scrollLeft||g.documentElement.scrollLeft,H=g.body.scrollTop||g.documentElement.scrollTop;return us(B,H)},dd=(r,g,B)=>{const re=(B!==void 0?B.dom:document).defaultView;re&&re.scrollTo(r,g)},rl=(r,g)=>{tr().browser.isSafari()&&C(r.dom.scrollIntoViewIfNeeded)?r.dom.scrollIntoViewIfNeeded(!1):r.dom.scrollIntoView(g)},Dd=r=>{const g=r===void 0?window:r;return tr().browser.isFirefox()?Y.none():Y.from(g.visualViewport)},Vi=(r,g,B,H)=>({x:r,y:g,width:B,height:H,right:r+B,bottom:g+H}),fa=r=>{const g=r===void 0?window:r,B=g.document,H=Gc(sr.fromDom(B));return Dd(g).fold(()=>{const re=g.document.documentElement,be=re.clientWidth,Re=re.clientHeight;return Vi(H.left,H.top,be,Re)},re=>Vi(Math.max(re.pageLeft,H.left),Math.max(re.pageTop,H.top),re.width,re.height))},au=(r,g)=>Te(Oc(r),g),Zf=(r,g)=>{let B=[];return ye(Oc(r),H=>{g(H)&&(B=B.concat([H])),B=B.concat(Zf(H,g))}),B},Zl=(r,g)=>Rp(g,r),Jl=(r,g,B)=>ms(r,g,B).isSome(),Bd=(r,g)=>bl(r,g).isSome(),Qs=(r,g)=>Wc(r,g).isSome();class kc{constructor(g,B){this.node=g,this.rootNode=B,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(g){return this.node=this.findSibling(this.node,"firstChild","nextSibling",g),this.node}prev(g){return this.node=this.findSibling(this.node,"lastChild","previousSibling",g),this.node}prev2(g){return this.node=this.findPreviousNode(this.node,g),this.node}findSibling(g,B,H,re){if(g){if(!re&&g[B])return g[B];if(g!==this.rootNode){let be=g[H];if(be)return be;for(let Re=g.parentNode;Re&&Re!==this.rootNode;Re=Re.parentNode)if(be=Re[H],be)return be}}}findPreviousNode(g,B){if(g){const H=g.previousSibling;if(this.rootNode&&H===this.rootNode)return;if(H){if(!B){for(let be=H.lastChild;be;be=be.lastChild)if(!be.lastChild)return be}return H}const re=g.parentNode;if(re&&re!==this.rootNode)return re}}}const Iu="\uFEFF",Ea=" ",El=r=>r===Iu,_l=r=>r.replace(/\uFEFF/g,""),Mi=/^[ \t\r\n]*$/,Sf=r=>Mi.test(r),Ot=r=>{for(const g of r)if(!El(g))return!1;return!0},Mt=r=>" \f \v".indexOf(r)!==-1,Ft=r=>r===` -`||r==="\r",J=(r,g)=>g=0?Ft(r[g]):!1,le=(r,g=4,B=!0,H=!0)=>{const re=Ir(" ",g),be=r.replace(/\t/g,re);return Ie(be,(Ke,ct)=>Mt(ct)||ct===Ea?Ke.pcIsSpace||Ke.str===""&&B||Ke.str.length===be.length-1&&H||J(be,Ke.str.length+1)?{pcIsSpace:!1,str:Ke.str+Ea}:{pcIsSpace:!0,str:Ke.str+" "}:{pcIsSpace:Ft(ct),str:Ke.str+ct},{pcIsSpace:!1,str:""}).str},ie=r=>g=>!!g&&g.nodeType===r,V=r=>!!r&&!Object.getPrototypeOf(r),ne=ie(1),ge=r=>ne(r)&&iu(sr.fromDom(r)),xe=r=>ne(r)&&r.namespaceURI==="http://www.w3.org/2000/svg",Me=r=>{const g=r.toLowerCase();return B=>E(B)&&B.nodeName.toLowerCase()===g},Fe=r=>{const g=r.map(B=>B.toLowerCase());return B=>{if(B&&B.nodeName){const H=B.nodeName.toLowerCase();return ce(g,H)}return!1}},Je=(r,g)=>{const B=g.toLowerCase().split(" ");return H=>{if(ne(H)){const re=H.ownerDocument.defaultView;if(re)for(let be=0;beg=>ne(g)&&g.hasAttribute(r),dt=r=>ne(r)&&r.hasAttribute("data-mce-bogus"),mt=r=>ne(r)&&r.getAttribute("data-mce-bogus")==="all",Et=r=>ne(r)&&r.tagName==="TABLE",Vt=r=>g=>!!(ge(g)&&(g.contentEditable===r||g.getAttribute("data-mce-contenteditable")===r)),jt=Fe(["textarea","input"]),Nt=ie(3),cn=ie(4),sn=ie(7),xn=ie(8),pn=ie(9),Ln=ie(11),On=Me("br"),An=Me("img"),Sn=Vt("true"),rr=Vt("false"),Dr=Fe(["td","th"]),Pr=Fe(["td","th","caption"]),Zr=Fe(["video","audio","object","embed"]),Mo=Me("li"),$o=Me("details"),vo=Me("summary"),zo={skipBogus:!0,includeZwsp:!1,checkRootAsContent:!1},yi=(r,g,B)=>{const H=sr.fromDom(g),re=sr.fromDom(r),be=B.getWhitespaceElements();return Jl(re,Ke=>_t(be,sa(Ke)),U(Fa,H))},Si=r=>ne(r)&&r.nodeName==="A"&&!r.hasAttribute("href")&&(r.hasAttribute("name")||r.hasAttribute("id")),Hr=(r,g)=>ne(r)&&_t(g.getNonEmptyElements(),r.nodeName),Lo=rt("data-mce-bookmark"),ki=r=>Lp(sr.fromDom(r)).exists(g=>!js(g)),Io=(r,g,B)=>Sf(r.data)&&!yi(r,g,B),$i=(r,g,B,H)=>Nt(r)&&!Io(r,g,B)&&(!H.includeZwsp||!Ot(r.data)),Ui=(r,g,B,H)=>C(H.isContent)&&H.isContent(g)||Hr(g,r)||Lo(g)||Si(g)||$i(g,B,r,H)||rr(g)||Sn(g)&&ki(g),ba=(r,g,B)=>{const H={...zo,...B};if(H.checkRootAsContent&&Ui(r,g,g,H))return!1;let re=g.firstChild,be=0;if(!re)return!0;const Re=new kc(re,g);do{if(H.skipBogus&&ne(re)){const Ke=re.getAttribute("data-mce-bogus");if(Ke){re=Re.next(Ke==="all");continue}}if(xn(re)){re=Re.next(!0);continue}if(On(re)){be++,re=Re.next();continue}if(Ui(r,re,g,H))return!1;re=Re.next()}while(re);return be<=1},Pi=(r,g,B)=>ba(r,g.dom,{checkRootAsContent:!0,...B}),fs=(r,g,B)=>Ui(r,g,g,{includeZwsp:zo.includeZwsp,...B}),mr=r=>{let g=r;return{get:()=>g,set:re=>{g=re}}},ys=r=>{const g=mr(Y.none()),B=()=>g.get().each(r);return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(Ke))}}},Pl=r=>{const g=mr(Y.none()),B=()=>g.get().each(Ke=>clearInterval(Ke));return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(setInterval(Ke,r)))}}},Ys=()=>{const r=ys(k);return{...r,on:B=>r.get().each(B)}},dl=r=>{const g=r.toLowerCase();return g==="svg"?"svg":g==="math"?"math":"html"},ds=r=>dl(r)!=="html",Pa=r=>ds(r.nodeName),Rs=r=>dl(r.nodeName),Ls=["svg","math"],ol=()=>{const r=Ys(),g=()=>r.get().map(Rs).getOr("html");return{track:re=>(Pa(re)?r.set(re):r.get().exists(be=>!be.contains(re))&&r.clear(),g()),current:g,reset:()=>{r.clear()}}},Is="data-mce-block",Ds=r=>Te(nt(r),g=>!/[A-Z]/.test(g)),ec=r=>ve(Ds(r),g=>{const B=CSS.escape(g);return`${B}:`+ve(Ls,H=>`not(${H} ${B})`).join(":")}).join(","),Tc=(r,g)=>E(g.querySelector(r))?(g.setAttribute(Is,"true"),g.getAttribute("data-mce-selected")==="inline-boundary"&&g.removeAttribute("data-mce-selected"),!0):(g.removeAttribute(Is),!1),op=(r,g)=>{const B=ec(r.getTransparentElements()),H=ec(r.getBlockElements());return Te(g.querySelectorAll(B),re=>Tc(H,re))},ip=(r,g,B)=>{var H;const re=B?"lastChild":"firstChild";for(let be=g[re];be;be=be[re])if(ba(r,be,{checkRootAsContent:!0})){(H=be.parentNode)===null||H===void 0||H.removeChild(be);return}},Hs=(r,g,B)=>{const H=document.createRange(),re=g.parentNode;if(re){H.setStartBefore(g),H.setEndBefore(B);const be=H.extractContents();ip(r,be,!0),H.setStartAfter(B),H.setEndAfter(g);const Re=H.extractContents();ip(r,Re,!1),ba(r,be,{checkRootAsContent:!0})||re.insertBefore(be,g),ba(r,B,{checkRootAsContent:!0})||re.insertBefore(B,g),ba(r,Re,{checkRootAsContent:!0})||re.insertBefore(Re,g),re.removeChild(g)}},wh=(r,g,B)=>{const H=r.getBlockElements(),re=sr.fromDom(g),be=Ke=>sa(Ke)in H,Re=Ke=>Fa(Ke,re);ye(Ld(B),Ke=>{ms(Ke,be,Re).each(ct=>{const kt=au(Ke,Wt=>be(Wt)&&!r.isValidChild(sa(ct),sa(Wt)));if(kt.length>0){const Wt=Lp(ct);ye(kt,Jt=>{ms(Jt,be,Re).each(ln=>{Hs(r,ln.dom,Jt.dom)})}),Wt.each(Jt=>op(r,Jt.dom))}})})},hd=(r,g,B)=>{ye([...B,...xm(r,g)?[g]:[]],H=>ye(Zl(sr.fromDom(H),H.nodeName.toLowerCase()),re=>{Cx(r,re.dom)&&vu(re)}))},qf=(r,g)=>{const B=op(r,g);wh(r,g,B),hd(r,g,B)},tc=(r,g)=>{if(E0(r,g)){const B=ec(r.getBlockElements());Tc(B,g)}},Wf=(r,g,B)=>{const H=be=>Fa(be,sr.fromDom(g)),re=Uh(sr.fromDom(B),H);Ze(re,re.length-2).filter(mc).fold(()=>qf(r,g),be=>qf(r,be.dom))},Rl=r=>r.hasAttribute(Is),lg=(r,g)=>_t(r.getTransparentElements(),g),E0=(r,g)=>ne(g)&&lg(r,g.nodeName),xm=(r,g)=>E0(r,g)&&Rl(g),Cx=(r,g)=>E0(r,g)&&!Rl(g),eh=(r,g)=>g.type===1&&lg(r,g.name)&&v(g.attr(Is)),Ax=tr().browser,Wg=r=>De(r,mc),Mx=r=>Ax.isFirefox()&&sa(r)==="table"?Wg(Oc(r)).filter(g=>sa(g)==="caption").bind(g=>Wg(Pu(g)).map(B=>{const H=B.dom.offsetTop,re=g.dom.offsetTop,be=g.dom.offsetHeight;return H<=re?-be:0})).getOr(0):0,O1=(r,g)=>r.children&&ce(r.children,g),oc=(r,g,B)=>{let H=0,re=0;const be=r.ownerDocument;if(B=B||r,g){if(B===r&&g.getBoundingClientRect&&pi(sr.fromDom(r),"position")==="static"){const Ke=g.getBoundingClientRect();return H=Ke.left+(be.documentElement.scrollLeft||r.scrollLeft)-be.documentElement.clientLeft,re=Ke.top+(be.documentElement.scrollTop||r.scrollTop)-be.documentElement.clientTop,{x:H,y:re}}let Re=g;for(;Re&&Re!==B&&Re.nodeType&&!O1(Re,B);){const Ke=Re;H+=Ke.offsetLeft||0,re+=Ke.offsetTop||0,Re=Ke.offsetParent}for(Re=g.parentNode;Re&&Re!==B&&Re.nodeType&&!O1(Re,B);)H-=Re.scrollLeft||0,re-=Re.scrollTop||0,Re=Re.parentNode;re+=Mx(sr.fromDom(g))}return{x:H,y:re}},_m=(r,g={})=>{let B=0;const H={},re=sr.fromDom(r),be=Bc(re),Re=pr=>{g.referrerPolicy=pr},Ke=pr=>{g.contentCssCors=pr},ct=pr=>{Ps(tp(re),pr)},kt=pr=>{const Tr=tp(re);xi(Tr,"#"+pr).each(ja)},Wt=pr=>Ct(H,pr).getOrThunk(()=>({id:"mce-u"+B++,passed:[],failed:[],count:0})),Jt=pr=>new Promise((Tr,wr)=>{let Ur;const wo=mo._addCacheSuffix(pr),jo=Wt(wo);H[wo]=jo,jo.count++;const di=(bi,Bi)=>{ye(bi,K),jo.status=Bi,jo.passed=[],jo.failed=[],Ur&&(Ur.onload=null,Ur.onerror=null,Ur=null)},lo=()=>di(jo.passed,2),eo=()=>di(jo.failed,3);if(Tr&&jo.passed.push(Tr),wr&&jo.failed.push(wr),jo.status===1)return;if(jo.status===2){lo();return}if(jo.status===3){eo();return}jo.status=1;const xo=sr.fromTag("link",be.dom);ef(xo,{rel:"stylesheet",type:"text/css",id:jo.id}),g.contentCssCors&&Es(xo,"crossOrigin","anonymous"),g.referrerPolicy&&Es(xo,"referrerpolicy",g.referrerPolicy),Ur=xo.dom,Ur.onload=lo,Ur.onerror=eo,ct(xo),Es(xo,"href",wo)}),ln=(pr,Tr)=>{const wr=Wt(pr);H[pr]=wr,wr.count++;const Ur=sr.fromTag("style",be.dom);ef(Ur,{rel:"stylesheet",type:"text/css",id:wr.id}),Ur.dom.innerHTML=Tr,ct(Ur)},kn=pr=>Promise.allSettled(ve(pr,wr=>Jt(wr).then($(wr)))).then(wr=>{const Ur=Se(wr,wo=>wo.status==="fulfilled");return Ur.fail.length>0?Promise.reject(ve(Ur.fail,wo=>wo.reason)):ve(Ur.pass,wo=>wo.value)}),Vn=pr=>{const Tr=mo._addCacheSuffix(pr);Ct(H,Tr).each(wr=>{--wr.count===0&&(delete H[Tr],kt(wr.id))})};return{load:Jt,loadRawCss:ln,loadAll:kn,unload:Vn,unloadRawCss:pr=>{Ct(H,pr).each(Tr=>{--Tr.count===0&&(delete H[pr],kt(Tr.id))})},unloadAll:pr=>{ye(pr,Tr=>{Vn(Tr)})},_setReferrerPolicy:Re,_setContentCssCors:Ke}},wm=(()=>{const r=new WeakMap;return{forElement:(B,H)=>{const be=of(B).dom;return Y.from(r.get(be)).getOrThunk(()=>{const Re=_m(be,H);return r.set(be,Re),Re})}}})(),cb=r=>r.nodeName.toLowerCase()==="span",Oh=(r,g)=>E(r)&&(fs(g,r)||g.isInline(r.nodeName.toLowerCase())),Ex=(r,g,B)=>{const H=new kc(r,g).prev(!1),re=new kc(r,g).next(!1),be=M(H)||Oh(H,B),Re=M(re)||Oh(re,B);return be&&Re},kf=r=>cb(r)&&r.getAttribute("data-mce-type")==="bookmark",Hv=(r,g,B)=>Nt(r)&&r.data.length>0&&Ex(r,g,B),Om=r=>ne(r)?r.childNodes.length>0:!1,Sm=r=>Ln(r)||pn(r),ap=(r,g,B,H)=>{var re;const be=H||g;if(ne(g)&&kf(g))return g;const Re=g.childNodes;for(let Ke=Re.length-1;Ke>=0;Ke--)ap(r,Re[Ke],B,be);if(ne(g)){const Ke=g.childNodes;Ke.length===1&&kf(Ke[0])&&((re=g.parentNode)===null||re===void 0||re.insertBefore(Ke[0],g))}return!Sm(g)&&!fs(B,g)&&!Om(g)&&!Hv(g,be,B)&&r.remove(g),g},Bp=mo.makeMap,P0=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cg=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zv=/[<>&\"\']/g,R0=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,C_={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},sp={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},A_={"<":"<",">":">","&":"&",""":'"',"'":"'"},ub=r=>{const g=sr.fromTag("div").dom;return g.innerHTML=r,g.textContent||g.innerText||r},Fl=(r,g)=>{const B={};if(r){const H=r.split(",");g=g||10;for(let re=0;rer.replace(g?P0:cg,B=>sp[B]||B),Xg=r=>(""+r).replace(Zv,g=>sp[g]||g),Gg=(r,g)=>r.replace(g?P0:cg,B=>B.length>1?"&#"+((B.charCodeAt(0)-55296)*1024+(B.charCodeAt(1)-56320)+65536)+";":sp[B]||"&#"+B.charCodeAt(0)+";"),lp=(r,g,B)=>{const H=B||Yf;return r.replace(g?P0:cg,re=>sp[re]||H[re]||re)},up={encodeRaw:km,encodeAllRaw:Xg,encodeNumeric:Gg,encodeNamed:lp,getEncodeFunc:(r,g)=>{const B=Fl(g)||Yf,H=(Re,Ke)=>Re.replace(Ke?P0:cg,ct=>sp[ct]!==void 0?sp[ct]:B[ct]!==void 0?B[ct]:ct.length>1?"&#"+((ct.charCodeAt(0)-55296)*1024+(ct.charCodeAt(1)-56320)+65536)+";":"&#"+ct.charCodeAt(0)+";"),re=(Re,Ke)=>lp(Re,Ke,B),be=Bp(r.replace(/\+/g,","));return be.named&&be.numeric?H:be.named?g?re:lp:be.numeric?Gg:km},decode:r=>r.replace(R0,(g,B)=>B?(B.charAt(0).toLowerCase()==="x"?B=parseInt(B.substr(1),16):B=parseInt(B,10),B>65535?(B-=65536,String.fromCharCode(55296+(B>>10),56320+(B&1023))):C_[B]||String.fromCharCode(B)):A_[g]||Yf[g]||ub(g))},Xf=(r,g)=>(r=mo.trim(r),r?r.split(g||" "):[]),L0=r=>new RegExp("^"+r.replace(/([?+*])/g,".$1")+"$"),Px=r=>_(r)&&r.source&&Object.prototype.toString.call(r)==="[object RegExp]",zp=r=>{const g=B=>A(B)?ve(B,g):Px(B)?new RegExp(B.source,B.flags):_(B)?ht(B,g):B;return g(r)},Kg=r=>{const g=/^(~)?(.+)$/;return $e(Xf(r,","),B=>{const H=g.exec(B);if(H){const be=H[1]==="~"?"span":"div",Re=H[2];return[{cloneName:be,name:Re}]}else return[]})},M_=r=>Object.freeze(["id","accesskey","class","dir","lang","style","tabindex","title","role",...r!=="html4"?["contenteditable","contextmenu","draggable","dropzone","hidden","spellcheck","translate","itemprop","itemscope","itemtype"]:[],...r!=="html5-strict"?["xml:lang"]:[]]),S1=r=>{let g,B;g="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",B="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",r!=="html4"&&(g+=" article aside details dialog figure main header footer hgroup section nav "+"a ins del canvas map",B+=" audio canvas command data datalist mark meter output picture progress time wbr video ruby bdi keygen svg"),r!=="html5-strict"&&(B=[B,"acronym applet basefont big font strike tt"].join(" "),g=[g,"center dir isindex noframes"].join(" "));const H=[g,B].join(" ");return{blockContent:g,phrasingContent:B,flowContent:H}},Tm=r=>{const{blockContent:g,phrasingContent:B,flowContent:H}=S1(r),re=be=>Object.freeze(be.split(" "));return Object.freeze({blockContent:re(g),phrasingContent:re(B),flowContent:re(H)})},zd={html4:xt(()=>Tm("html4")),html5:xt(()=>Tm("html5")),"html5-strict":xt(()=>Tm("html5-strict"))},fp=(r,g)=>{const{blockContent:B,phrasingContent:H,flowContent:re}=zd[r]();return g==="blocks"?Y.some(B):g==="phrasing"?Y.some(H):g==="flow"?Y.some(re):Y.none()},I0=r=>{const g=M_(r),{phrasingContent:B,flowContent:H}=S1(r),re={},be=(ct,kt,Wt)=>{re[ct]={attributes:We(kt,$({})),attributesOrder:kt,children:We(Wt,$({}))}},Re=(ct,kt="",Wt="")=>{const Jt=Xf(Wt),ln=Xf(ct);let kn=ln.length;const Vn=[...g,...Xf(kt)];for(;kn--;)be(ln[kn],Vn.slice(),Jt)},Ke=(ct,kt)=>{const Wt=Xf(ct),Jt=Xf(kt);let ln=Wt.length;for(;ln--;){const kn=re[Wt[ln]];for(let Vn=0,Rn=Jt.length;Vn{Re(Wt,"",B)}),ye(Xf("center dir isindex noframes"),Wt=>{Re(Wt,"",H)})),Re("html","manifest","head body"),Re("head","","base command link meta noscript script style title"),Re("title hr noscript br"),Re("base","href target"),Re("link","href rel media hreflang type sizes hreflang"),Re("meta","name http-equiv content charset"),Re("style","media type scoped"),Re("script","src async defer type charset"),Re("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",H),Re("dd div","",H),Re("address dt caption","",r==="html4"?B:H),Re("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",B),Re("blockquote","cite",H),Re("ol","reversed start type","li"),Re("ul","","li"),Re("li","value",H),Re("dl","","dt dd"),Re("a","href target rel media hreflang type",r==="html4"?B:H),Re("q","cite",B),Re("ins del","cite datetime",H),Re("img","src sizes srcset alt usemap ismap width height"),Re("iframe","src name width height",H),Re("embed","src type width height"),Re("object","data type typemustmatch name usemap form width height",[H,"param"].join(" ")),Re("param","name value"),Re("map","name",[H,"area"].join(" ")),Re("area","alt coords shape href target rel media hreflang type"),Re("table","border","caption colgroup thead tfoot tbody tr"+(r==="html4"?" col":"")),Re("colgroup","span","col"),Re("col","span"),Re("tbody thead tfoot","","tr"),Re("tr","","td th"),Re("td","colspan rowspan headers",H),Re("th","colspan rowspan headers scope abbr",H),Re("form","accept-charset action autocomplete enctype method name novalidate target",H),Re("fieldset","disabled form name",[H,"legend"].join(" ")),Re("label","form for",B),Re("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Re("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",r==="html4"?H:B),Re("select","disabled form multiple name required size","option optgroup"),Re("optgroup","disabled label","option"),Re("option","disabled label selected value"),Re("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Re("menu","type label",[H,"li"].join(" ")),Re("noscript","",H),r!=="html4"&&(Re("wbr"),Re("ruby","",[B,"rt rp"].join(" ")),Re("figcaption","",H),Re("mark rt rp bdi","",B),Re("summary","",[B,"h1 h2 h3 h4 h5 h6"].join(" ")),Re("canvas","width height",H),Re("data","value",B),Re("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[H,"track source"].join(" ")),Re("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[H,"track source"].join(" ")),Re("picture","","img source"),Re("source","src srcset type media sizes"),Re("track","kind src srclang label default"),Re("datalist","",[B,"option"].join(" ")),Re("article section nav aside main header footer","",H),Re("hgroup","","h1 h2 h3 h4 h5 h6"),Re("figure","",[H,"figcaption"].join(" ")),Re("time","datetime",B),Re("dialog","open",H),Re("command","type label icon disabled checked radiogroup command"),Re("output","for form name",B),Re("progress","value max",B),Re("meter","value min max low high optimum",B),Re("details","open",[H,"summary"].join(" ")),Re("keygen","autofocus challenge disabled form keytype name"),be("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),r!=="html5-strict"&&(Ke("script","language xml:space"),Ke("style","xml:space"),Ke("object","declare classid code codebase codetype archive standby align border hspace vspace"),Ke("embed","align name hspace vspace"),Ke("param","valuetype type"),Ke("a","charset name rev shape coords"),Ke("br","clear"),Ke("applet","codebase archive code object alt name width height align hspace vspace"),Ke("img","name longdesc align border hspace vspace"),Ke("iframe","longdesc frameborder marginwidth marginheight scrolling align"),Ke("font basefont","size color face"),Ke("input","usemap align"),Ke("select"),Ke("textarea"),Ke("h1 h2 h3 h4 h5 h6 div p legend caption","align"),Ke("ul","type compact"),Ke("li","type"),Ke("ol dl menu dir","compact"),Ke("pre","width xml:space"),Ke("hr","align noshade size width"),Ke("isindex","prompt"),Ke("table","summary width frame rules cellspacing cellpadding align bgcolor"),Ke("col","width align char charoff valign"),Ke("colgroup","width align char charoff valign"),Ke("thead","align char charoff valign"),Ke("tr","align char charoff valign bgcolor"),Ke("th","axis align char charoff valign nowrap bgcolor width height"),Ke("form","accept"),Ke("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),Ke("tfoot","align char charoff valign"),Ke("tbody","align char charoff valign"),Ke("area","nohref"),Ke("body","background bgcolor text link vlink alink")),r!=="html4"&&(Ke("input button select textarea","autofocus"),Ke("input textarea","placeholder"),Ke("a","download"),Ke("link script img","crossorigin"),Ke("img","loading"),Ke("iframe","sandbox seamless allow allowfullscreen loading referrerpolicy")),r!=="html4"&&ye([re.video,re.audio],ct=>{delete ct.children.audio,delete ct.children.video}),ye(Xf("a form meter progress dfn"),ct=>{re[ct]&&delete re[ct].children[ct]}),delete re.caption.children.table,delete re.script,re},E_=r=>r==="-"?"remove":"add",Jg=r=>{const g=/^(@?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)$/;return Y.from(g.exec(r)).map(B=>({preset:B[1]==="@",name:B[2]}))},P_=r=>{const g=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return $e(Xf(r,","),B=>{const H=g.exec(B);if(H){const re=H[1],be=re?E_(re):"replace",Re=H[2],Ke=$e(Xf(H[3],"|"),ct=>Jg(ct).toArray());return[{operation:be,name:Re,validChildren:Ke}]}else return[]})},k1=(r,g)=>{const B=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,H=/[*?+]/,{attributes:re,attributesOrder:be}=g;return ye(Xf(r,"|"),Re=>{const Ke=B.exec(Re);if(Ke){const ct={},kt=Ke[1],Wt=Ke[2].replace(/[\\:]:/g,":"),Jt=Ke[3],ln=Ke[4];if(kt==="!"&&(g.attributesRequired=g.attributesRequired||[],g.attributesRequired.push(Wt),ct.required=!0),kt==="-"){delete re[Wt],be.splice(mo.inArray(be,Wt),1);return}if(Jt&&(Jt==="="?(g.attributesDefault=g.attributesDefault||[],g.attributesDefault.push({name:Wt,value:ln}),ct.defaultValue=ln):Jt==="~"?(g.attributesForced=g.attributesForced||[],g.attributesForced.push({name:Wt,value:ln}),ct.forcedValue=ln):Jt==="<"&&(ct.validValues=mo.makeMap(ln,"?"))),H.test(Wt)){const kn=ct;g.attributePatterns=g.attributePatterns||[],kn.pattern=L0(Wt),g.attributePatterns.push(kn)}else re[Wt]||be.push(Wt),re[Wt]=ct}})},zO=(r,g)=>{Ge(r.attributes,(B,H)=>{g.attributes[H]=B}),g.attributesOrder.push(...r.attributesOrder)},bu=(r,g)=>{const B=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return $e(Xf(g,","),H=>{const re=B.exec(H);if(re){const be=re[1],Re=re[2],Ke=re[3],ct=re[4],kt=re[5],Wt={attributes:{},attributesOrder:[]};if(r.each(Jt=>zO(Jt,Wt)),be==="#"?Wt.paddEmpty=!0:be==="-"&&(Wt.removeEmpty=!0),ct==="!"&&(Wt.removeEmptyAttrs=!0),kt&&k1(kt,Wt),Ke&&(Wt.outputName=Re),Re==="@")if(r.isNone())r=Y.some(Wt);else return[];return[Ke?{name:Re,element:Wt,aliasName:Ke}:{name:Re,element:Wt}]}else return[]})},Cm={},D0=mo.makeMap,Sa=mo.each,Ri=mo.extend,Fp=mo.explode,qv=(r,g={})=>{const B=D0(r," ",D0(r.toUpperCase()," "));return Ri(B,g)},db=r=>qv("td th li dt dd figcaption caption details summary",r.getTextBlockElements()),T1=(r,g)=>{if(r){const B={};return v(r)&&(r={"*":r}),Sa(r,(H,re)=>{B[re]=B[re.toUpperCase()]=g==="map"?D0(H,/[, ]/):Fp(H,/[, ]/)}),B}else return},Np=(r={})=>{var g;const B={},H={};let re=[];const be={},Re={},Ke=(zi,ss,Rc)=>{const cu=r[zi];if(cu)return D0(cu,/[, ]/,D0(cu.toUpperCase(),/[, ]/));{let Nu=Cm[zi];return Nu||(Nu=qv(ss,Rc),Cm[zi]=Nu),Nu}},ct=(g=r.schema)!==null&&g!==void 0?g:"html5",kt=I0(ct);r.verify_html===!1&&(r.valid_elements="*[*]");const Wt=T1(r.valid_styles),Jt=T1(r.invalid_styles,"map"),ln=T1(r.valid_classes,"map"),kn=Ke("whitespace_elements","pre script noscript style textarea video audio iframe object code"),Vn=Ke("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),Rn=Ke("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),qn=Ke("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),pr="td th iframe video audio object script code",Tr=Ke("non_empty_elements",pr+" pre svg textarea summary",Rn),wr=Ke("move_caret_before_on_enter_elements",pr+" table",Rn),Ur="h1 h2 h3 h4 h5 h6",wo=Ke("text_block_elements",Ur+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),jo=Ke("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",wo),di=Ke("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),lo=Ke("transparent_elements","a ins del canvas map"),eo=Ke("wrap_block_elements","pre "+Ur);Sa("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),zi=>{Re[zi]=new RegExp("]*>","gi")});const xo=zi=>{const ss=Y.from(B["@"]),Rc=/[*?+]/;ye(bu(ss,zi??""),({name:cu,element:Nu,aliasName:nd})=>{if(nd&&(B[nd]=Nu),Rc.test(cu)){const wu=Nu;wu.pattern=L0(cu),re.push(wu)}else B[cu]=Nu})},bi=zi=>{re=[],ye(nt(B),ss=>{delete B[ss]}),xo(zi)},Bi=(zi,ss)=>{var Rc,cu;delete Cm.text_block_elements,delete Cm.block_elements;const Nu=ss.extends?!om(ss.extends):!1,nd=ss.extends;if(H[zi]=nd?H[nd]:{},be[zi]=nd??zi,Tr[zi.toUpperCase()]={},Tr[zi]={},Nu||(jo[zi.toUpperCase()]={},jo[zi]={}),nd&&!B[zi]&&B[nd]){const wu=zp(B[nd]);delete wu.removeEmptyAttrs,delete wu.removeEmpty,B[zi]=wu}else B[zi]={attributesOrder:[],attributes:{}};if(A(ss.attributes)){const wu=fh=>{Ou.attributesOrder.push(fh),Ou.attributes[fh]={}},Ou=(Rc=B[zi])!==null&&Rc!==void 0?Rc:{};delete Ou.attributesDefault,delete Ou.attributesForced,delete Ou.attributePatterns,delete Ou.attributesRequired,Ou.attributesOrder=[],Ou.attributes={},ye(ss.attributes,fh=>{const Ig=M_(ct);Jg(fh).each(({preset:Xm,name:x0})=>{Xm?x0==="global"&&ye(Ig,wu):wu(x0)})}),B[zi]=Ou}if(R(ss.padEmpty)){const wu=(cu=B[zi])!==null&&cu!==void 0?cu:{};wu.paddEmpty=ss.padEmpty,B[zi]=wu}if(A(ss.children)){const wu={},Ou=Ig=>{wu[Ig]={}},fh=Ig=>{fp(ct,Ig).each(Xm=>{ye(Xm,Ou)})};ye(ss.children,Ig=>{Jg(Ig).each(({preset:Xm,name:x0})=>{Xm?fh(x0):Ou(x0)})}),H[zi]=wu}nd&&Ge(H,(wu,Ou)=>{wu[nd]&&(H[Ou]=wu=Ri({},H[Ou]),wu[zi]=wu[nd])})},$a=zi=>{ye(Kg(zi??""),({name:ss,cloneName:Rc})=>{Bi(ss,{extends:Rc})})},Ia=zi=>{_(zi)?Ge(zi,(ss,Rc)=>Bi(Rc,ss)):v(zi)&&$a(zi)},Us=zi=>{ye(P_(zi??""),({operation:ss,name:Rc,validChildren:cu})=>{const Nu=ss==="replace"?{"#comment":{}}:H[Rc],nd=Ou=>{ss==="remove"?delete Nu[Ou]:Nu[Ou]={}},wu=Ou=>{fp(ct,Ou).each(fh=>{ye(fh,nd)})};ye(cu,({preset:Ou,name:fh})=>{Ou?wu(fh):nd(fh)}),H[Rc]=Nu})},sl=zi=>{const ss=B[zi];if(ss)return ss;let Rc=re.length;for(;Rc--;){const cu=re[Rc];if(cu.pattern.test(zi))return cu}},nu=()=>{r.valid_elements?(bi(r.valid_elements),Sa(kt,(zi,ss)=>{H[ss]=zi.children})):(Sa(kt,(zi,ss)=>{B[ss]={attributes:zi.attributes,attributesOrder:zi.attributesOrder},H[ss]=zi.children}),Sa(Xf("strong/b em/i"),zi=>{const ss=Xf(zi,"/");B[ss[1]].outputName=ss[0]}),Sa(di,(zi,ss)=>{B[ss]&&(r.padd_empty_block_inline_children&&(B[ss].paddInEmptyBlock=!0),B[ss].removeEmpty=!0)}),Sa(Xf("ol ul blockquote a table tbody"),zi=>{B[zi]&&(B[zi].removeEmpty=!0)}),Sa(Xf("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),zi=>{B[zi]&&(B[zi].paddEmpty=!0)}),Sa(Xf("span"),zi=>{B[zi].removeEmptyAttrs=!0})),delete B.svg,Ia(r.custom_elements),Us(r.valid_children),xo(r.extended_valid_elements),Us("+ol[ul|ol],+ul[ul|ol]"),Sa({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(zi,ss)=>{B[ss]&&(B[ss].parentsRequired=Xf(zi))}),r.invalid_elements&&Sa(Fp(r.invalid_elements),zi=>{B[zi]&&delete B[zi]}),sl("span")||xo("span[!data-mce-type|*]")},jd=$(Wt),ml=$(Jt),Wo=$(ln),Ei=$(qn),ws=$(jo),ii=$(wo),Qi=$(di),Qa=$(Object.seal(Rn)),ci=$(Vn),Va=$(Tr),Xa=$(wr),If=$(kn),el=$(lo),Yu=$(eo),Pg=$(Object.seal(Re)),m1=(zi,ss)=>{const Rc=H[zi.toLowerCase()];return!!(Rc&&Rc[ss.toLowerCase()])},Dh=(zi,ss)=>{const Rc=sl(zi);if(Rc)if(ss){if(Rc.attributes[ss])return!0;const cu=Rc.attributePatterns;if(cu){let Nu=cu.length;for(;Nu--;)if(cu[Nu].pattern.test(ss))return!0}}else return!0;return!1},om=zi=>_t(ws(),zi),Rg=zi=>!xr(zi,"#")&&Dh(zi)&&!om(zi),xp=zi=>_t(Yu(),zi)||Rg(zi),Lg=$(be);return nu(),{type:ct,children:H,elements:B,getValidStyles:jd,getValidClasses:Wo,getBlockElements:ws,getInvalidStyles:ml,getVoidElements:Qa,getTextBlockElements:ii,getTextInlineElements:Qi,getBoolAttrs:Ei,getElementRule:sl,getSelfClosingElements:ci,getNonEmptyElements:Va,getMoveCaretBeforeOnEnterElements:Xa,getWhitespaceElements:If,getTransparentElements:el,getSpecialElements:Pg,isValidChild:m1,isValid:Dh,isBlock:om,isInline:Rg,isWrapper:xp,getCustomElements:Lg,addValidElements:xo,setValidElements:bi,addCustomElements:Ia,addValidChildren:Us}},hl=r=>({value:FO(r)}),FO=r=>In(r,"#").toUpperCase(),Rx=r=>{const g=r.toString(16);return(g.length===1?"0"+g:g).toUpperCase()},B0=r=>{const g=Rx(r.red)+Rx(r.green)+Rx(r.blue);return hl(g)},fo=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,e0=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,xS=(r,g,B,H)=>({red:r,green:g,blue:B,alpha:H}),ug=(r,g,B,H)=>{const re=parseInt(r,10),be=parseInt(g,10),Re=parseInt(B,10),Ke=parseFloat(H);return xS(re,be,Re,Ke)},R_=r=>fo.test(r)?"rgb":e0.test(r)?"rgba":"other",Fd=r=>{const g=fo.exec(r);if(g!==null)return Y.some(ug(g[1],g[2],g[3],"1"));const B=e0.exec(r);return B!==null?Y.some(ug(B[1],B[2],B[3],B[4])):Y.none()},L_=r=>`rgba(${r.red},${r.green},${r.blue},${r.alpha})`,Am=r=>Fd(r).map(B0).map(g=>"#"+g.value).getOr(r),I_=(r={},g)=>{const B=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,H=/\s*([^:]+):\s*([^;]+);?/g,re=/\s+$/,be={};let Re,Ke;const ct=Iu;g&&(Re=g.getValidStyles(),Ke=g.getInvalidStyles());const kt=(`\\" \\' \\; \\: ; : `+ct).split(" ");for(let Jt=0;Jt{const ln={};let kn=!1;const Vn=r.url_converter,Rn=r.url_converter_scope||Wt,qn=(lo,eo,xo)=>{const bi=ln[lo+"-top"+eo];if(!bi)return;const Bi=ln[lo+"-right"+eo];if(!Bi)return;const $a=ln[lo+"-bottom"+eo];if(!$a)return;const Ia=ln[lo+"-left"+eo];if(!Ia)return;const Us=[bi,Bi,$a,Ia];let sl=Us.length-1;for(;sl--&&Us[sl]===Us[sl+1];);sl>-1&&xo||(ln[lo+eo]=sl===-1?Us[0]:Us.join(" "),delete ln[lo+"-top"+eo],delete ln[lo+"-right"+eo],delete ln[lo+"-bottom"+eo],delete ln[lo+"-left"+eo])},pr=lo=>{const eo=ln[lo];if(!eo)return;const xo=eo.indexOf(",")>-1?[eo]:eo.split(" ");let bi=xo.length;for(;bi--;)if(xo[bi]!==xo[0])return!1;return ln[lo]=xo[0],!0},Tr=(lo,eo,xo,bi)=>{pr(eo)&&pr(xo)&&pr(bi)&&(ln[lo]=ln[eo]+" "+ln[xo]+" "+ln[bi],delete ln[eo],delete ln[xo],delete ln[bi])},wr=lo=>(kn=!0,be[lo]),Ur=(lo,eo)=>(kn&&(lo=lo.replace(/\uFEFF[0-9]/g,xo=>be[xo])),eo||(lo=lo.replace(/\\([\'\";:])/g,"$1")),lo),wo=lo=>String.fromCharCode(parseInt(lo.slice(1),16)),jo=lo=>lo.replace(/\\[0-9a-f]+/gi,wo),di=(lo,eo,xo,bi,Bi,$a)=>{if(Bi=Bi||$a,Bi)return Bi=Ur(Bi),"'"+Bi.replace(/\'/g,"\\'")+"'";if(eo=Ur(eo||xo||bi||""),!r.allow_script_urls){const Ia=eo.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(Ia)||!r.allow_svg_data_urls&&/^data:image\/svg/i.test(Ia))return""}return Vn&&(eo=Vn.call(Rn,eo,"style")),"url('"+eo.replace(/\'/g,"\\'")+"')"};if(Jt){Jt=Jt.replace(/[\u0000-\u001F]/g,""),Jt=Jt.replace(/\\[\"\';:\uFEFF]/g,wr).replace(/\"[^\"]+\"|\'[^\']+\'/g,eo=>eo.replace(/[;:]/g,wr));let lo;for(;lo=H.exec(Jt);){H.lastIndex=lo.index+lo[0].length;let eo=lo[1].replace(re,"").toLowerCase(),xo=lo[2].replace(re,"");if(eo&&xo){if(eo=jo(eo),xo=jo(xo),eo.indexOf(ct)!==-1||eo.indexOf('"')!==-1||!r.allow_script_urls&&(eo==="behavior"||/expression\s*\(|\/\*|\*\//.test(xo)))continue;eo==="font-weight"&&xo==="700"?xo="bold":(eo==="color"||eo==="background-color")&&(xo=xo.toLowerCase()),R_(xo)==="rgb"&&Fd(xo).each(bi=>{xo=Am(L_(bi)).toLowerCase()}),xo=xo.replace(B,di),ln[eo]=kn?Ur(xo,!0):xo}}qn("border","",!0),qn("border","-width"),qn("border","-color"),qn("border","-style"),qn("padding",""),qn("margin",""),Tr("border","border-width","border-style","border-color"),ln.border==="medium none"&&delete ln.border,ln["border-image"]==="none"&&delete ln["border-image"]}return ln},serialize:(Jt,ln)=>{let kn="";const Vn=(qn,pr)=>{const Tr=pr[qn];if(Tr)for(let wr=0,Ur=Tr.length;wr0?" ":"")+wo+": "+jo+";")}},Rn=(qn,pr)=>{if(!Ke||!pr)return!0;let Tr=Ke["*"];return Tr&&Tr[qn]?!1:(Tr=Ke[pr],!(Tr&&Tr[qn]))};return ln&&Re?(Vn("*",Re),Vn(ln,Re)):Ge(Jt,(qn,pr)=>{qn&&Rn(pr,ln)&&(kn+=(kn.length>0?" ":"")+pr+": "+qn+";")}),kn}};return Wt},Wv={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Ll=r=>r instanceof Event||C(r.initEvent),Sh=r=>r.isDefaultPrevented===q||r.isDefaultPrevented===oe,NO=r=>T(r.preventDefault)||Ll(r),$p=(r,g)=>{const B=g??{};for(const H in r)_t(Wv,H)||(B[H]=r[H]);return E(r.composedPath)&&(B.composedPath=()=>r.composedPath()),E(r.getModifierState)&&(B.getModifierState=H=>r.getModifierState(H)),E(r.getTargetRanges)&&(B.getTargetRanges=()=>r.getTargetRanges()),B},Lx=(r,g,B,H)=>{var re;const be=$p(g,H);return be.type=r,T(be.target)&&(be.target=(re=be.srcElement)!==null&&re!==void 0?re:B),NO(g)&&(be.preventDefault=()=>{be.defaultPrevented=!0,be.isDefaultPrevented=q,C(g.preventDefault)&&g.preventDefault()},be.stopPropagation=()=>{be.cancelBubble=!0,be.isPropagationStopped=q,C(g.stopPropagation)&&g.stopPropagation()},be.stopImmediatePropagation=()=>{be.isImmediatePropagationStopped=q,be.stopPropagation()},Sh(be)||(be.isDefaultPrevented=be.defaultPrevented===!0?q:oe,be.isPropagationStopped=be.cancelBubble===!0?q:oe,be.isImmediatePropagationStopped=oe)),be},Yv="mce-data-",Xv=/^(?:mouse|contextmenu)|click/,hb=(r,g,B,H)=>{r.addEventListener(g,B,H||!1)},Tf=(r,g,B,H)=>{r.removeEventListener(g,B,H||!1)},$O=r=>E(r)&&Xv.test(r.type),C1=(r,g)=>{const B=Lx(r.type,r,document,g);if($O(r)&&M(r.pageX)&&!M(r.clientX)){const H=B.target.ownerDocument||document,re=H.documentElement,be=H.body,Re=B;Re.pageX=r.clientX+(re&&re.scrollLeft||be&&be.scrollLeft||0)-(re&&re.clientLeft||be&&be.clientLeft||0),Re.pageY=r.clientY+(re&&re.scrollTop||be&&be.scrollTop||0)-(re&&re.clientTop||be&&be.clientTop||0)}return B},A1=(r,g,B)=>{const H=r.document,re={type:"ready"};if(B.domLoaded){g(re);return}const be=()=>H.readyState==="complete"||H.readyState==="interactive"&&H.body,Re=()=>{Tf(r,"DOMContentLoaded",Re),Tf(r,"load",Re),B.domLoaded||(B.domLoaded=!0,g(re)),r=null};be()?Re():hb(r,"DOMContentLoaded",Re),B.domLoaded||hb(r,"load",Re)};class pd{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Yv+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(g,B,H,re){const be=this;let Re;const Ke=window,ct=ln=>{be.executeHandlers(C1(ln||Ke.event),kt)};if(!g||Nt(g)||xn(g))return H;let kt;g[be.expando]?kt=g[be.expando]:(kt=be.count++,g[be.expando]=kt,be.events[kt]={}),re=re||g;const Wt=B.split(" ");let Jt=Wt.length;for(;Jt--;){let ln=Wt[Jt],kn=ct,Vn=!1,Rn=!1;if(ln==="DOMContentLoaded"&&(ln="ready"),be.domLoaded&&ln==="ready"&&g.readyState==="complete"){H.call(re,C1({type:ln}));continue}!be.hasFocusIn&&(ln==="focusin"||ln==="focusout")&&(Vn=!0,Rn=ln==="focusin"?"focus":"blur",kn=qn=>{const pr=C1(qn||Ke.event);pr.type=pr.type==="focus"?"focusin":"focusout",be.executeHandlers(pr,kt)}),Re=be.events[kt][ln],Re?ln==="ready"&&be.domLoaded?H(C1({type:ln})):Re.push({func:H,scope:re}):(be.events[kt][ln]=Re=[{func:H,scope:re}],Re.fakeName=Rn,Re.capture=Vn,Re.nativeHandler=kn,ln==="ready"?A1(g,kn,be):hb(g,Rn||ln,kn,Vn))}return g=Re=null,H}unbind(g,B,H){if(!g||Nt(g)||xn(g))return this;const re=g[this.expando];if(re){let be=this.events[re];if(B){const Re=B.split(" ");let Ke=Re.length;for(;Ke--;){const ct=Re[Ke],kt=be[ct];if(kt){if(H){let Wt=kt.length;for(;Wt--;)if(kt[Wt].func===H){const Jt=kt.nativeHandler,ln=kt.fakeName,kn=kt.capture,Vn=kt.slice(0,Wt).concat(kt.slice(Wt+1));Vn.nativeHandler=Jt,Vn.fakeName=ln,Vn.capture=kn,be[ct]=Vn}}(!H||kt.length===0)&&(delete be[ct],Tf(g,kt.fakeName||ct,kt.nativeHandler,kt.capture))}}}else Ge(be,(Re,Ke)=>{Tf(g,Re.fakeName||Ke,Re.nativeHandler,Re.capture)}),be={};for(const Re in be)if(_t(be,Re))return this;delete this.events[re];try{delete g[this.expando]}catch{g[this.expando]=null}}return this}fire(g,B,H){return this.dispatch(g,B,H)}dispatch(g,B,H){if(!g||Nt(g)||xn(g))return this;const re=C1({type:B,target:g},H);do{const be=g[this.expando];be&&this.executeHandlers(re,be),g=g.parentNode||g.ownerDocument||g.defaultView||g.parentWindow}while(g&&!re.isPropagationStopped());return this}clean(g){if(!g||Nt(g)||xn(g))return this;if(g[this.expando]&&this.unbind(g),g.getElementsByTagName||(g=g.document),g&&g.getElementsByTagName){this.unbind(g);const B=g.getElementsByTagName("*");let H=B.length;for(;H--;)g=B[H],g[this.expando]&&this.unbind(g)}return this}destroy(){this.events={}}cancel(g){return g&&(g.preventDefault(),g.stopImmediatePropagation()),!1}executeHandlers(g,B){const H=this.events[B],re=H&&H[g.type];if(re)for(let be=0,Re=re.length;be{T(B)||B===""?gc(r,g):Es(r,g,B)},kh=r=>r.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),Do=(r,g)=>{let B=0;if(r)for(let H=r.nodeType,re=r.previousSibling;re;re=re.previousSibling){const be=re.nodeType;g&&Nt(re)&&(be===H||!re.data.length)||(B++,H=be)}return B},Ix=(r,g)=>{const B=uc(g,"style"),H=r.serialize(r.parse(B),sa(g));Gf(g,B_,H)},lf=(r,g)=>L(r)?_t(Gv,g)?r+"":r+"px":r,pb=(r,g,B)=>{const H=kh(g);T(B)||B===""?Yc(r,H):Ml(r,H,lf(B,H))},md=(r,g,B)=>{const H=g.keep_values,re={set:(Re,Ke,ct)=>{const kt=sr.fromDom(Re);C(g.url_converter)&&E(Ke)&&(Ke=g.url_converter.call(g.url_converter_scope||B(),String(Ke),ct,Re));const Wt="data-mce-"+ct;Gf(kt,Wt,Ke),Gf(kt,ct,Ke)},get:(Re,Ke)=>{const ct=sr.fromDom(Re);return uc(ct,"data-mce-"+Ke)||uc(ct,Ke)}},be={style:{set:(Re,Ke)=>{const ct=sr.fromDom(Re);H&&Gf(ct,B_,Ke),gc(ct,"style"),v(Ke)&&Hi(ct,r.parse(Ke))},get:Re=>{const Ke=sr.fromDom(Re),ct=uc(Ke,B_)||uc(Ke,"style");return r.serialize(r.parse(ct),sa(Ke))}}};return H&&(be.href=be.src=re),be},Nl=(r,g={})=>{const B={},H=window,re={};let be=0;const Re=!0,Ke=!0,ct=wm.forElement(sr.fromDom(r),{contentCssCors:g.contentCssCors,referrerPolicy:g.referrerPolicy}),kt=[],Wt=g.schema?g.schema:Np({}),Jt=I_({url_converter:g.url_converter,url_converter_scope:g.url_converter_scope},g.schema),ln=g.ownEvents?new pd:pd.Event,kn=Wt.getBlockElements(),Vn=Yr=>v(Yr)?_t(kn,Yr):ne(Yr)&&(_t(kn,Yr.nodeName)||xm(Wt,Yr)),Rn=Yr=>Yr&&r&&v(Yr)?r.getElementById(Yr):Yr,qn=Yr=>{const Gr=Rn(Yr);return E(Gr)?sr.fromDom(Gr):null},pr=(Yr,Gr,Xo="")=>{let Vo;const Gi=qn(Yr);if(E(Gi)&&mc(Gi)){const ts=q2[Gr];ts&&ts.get?Vo=ts.get(Gi.dom,Gr):Vo=uc(Gi,Gr)}return E(Vo)?Vo:Xo},Tr=Yr=>{const Gr=Rn(Yr);return T(Gr)?[]:Gr.attributes},wr=(Yr,Gr,Xo)=>{Ei(Yr,Vo=>{if(ne(Vo)){const Gi=sr.fromDom(Vo),ts=Xo===""?null:Xo,Lc=uc(Gi,Gr),_0=q2[Gr];_0&&_0.set?_0.set(Gi.dom,ts,Gr):Gf(Gi,Gr,ts),Lc!==ts&&g.onSetAttrib&&g.onSetAttrib({attrElm:Gi.dom,attrName:Gr,attrValue:ts})}})},Ur=(Yr,Gr)=>Yr.cloneNode(Gr),wo=()=>g.root_element||r.body,jo=Yr=>{const Gr=fa(Yr);return{x:Gr.x,y:Gr.y,w:Gr.width,h:Gr.height}},di=(Yr,Gr)=>oc(r.body,Rn(Yr),Gr),lo=(Yr,Gr,Xo)=>{Ei(Yr,Vo=>{const Gi=sr.fromDom(Vo);pb(Gi,Gr,Xo),g.update_styles&&Ix(Jt,Gi)})},eo=(Yr,Gr)=>{Ei(Yr,Xo=>{const Vo=sr.fromDom(Xo);Ge(Gr,(Gi,ts)=>{pb(Vo,ts,Gi)}),g.update_styles&&Ix(Jt,Vo)})},xo=(Yr,Gr,Xo)=>{const Vo=Rn(Yr);if(!(T(Vo)||!ge(Vo)&&!xe(Vo)))return Xo?pi(sr.fromDom(Vo),kh(Gr)):(Gr=Gr.replace(/-(\D)/g,(Gi,ts)=>ts.toUpperCase()),Gr==="float"&&(Gr="cssFloat"),Vo.style?Vo.style[Gr]:void 0)},bi=Yr=>{const Gr=Rn(Yr);if(!Gr)return{w:0,h:0};let Xo=xo(Gr,"width"),Vo=xo(Gr,"height");return(!Xo||Xo.indexOf("px")===-1)&&(Xo="0"),(!Vo||Vo.indexOf("px")===-1)&&(Vo="0"),{w:parseInt(Xo,10)||Gr.offsetWidth||Gr.clientWidth,h:parseInt(Vo,10)||Gr.offsetHeight||Gr.clientHeight}},Bi=Yr=>{const Gr=Rn(Yr),Xo=di(Gr),Vo=bi(Gr);return{x:Xo.x,y:Xo.y,w:Vo.w,h:Vo.h}},$a=(Yr,Gr)=>{if(!Yr)return!1;const Xo=A(Yr)?Yr:[Yr];return de(Xo,Vo=>_f(sr.fromDom(Vo),Gr))},Ia=(Yr,Gr,Xo,Vo)=>{const Gi=[];let ts=Rn(Yr);Vo=Vo===void 0;const Lc=Xo||(wo().nodeName!=="BODY"?wo().parentNode:null);if(v(Gr))if(Gr==="*")Gr=ne;else{const _0=Gr;Gr=_A=>$a(_A,_0)}for(;ts&&!(ts===Lc||T(ts.nodeType)||pn(ts)||Ln(ts));){if(!Gr||Gr(ts))if(Vo)Gi.push(ts);else return[ts];ts=ts.parentNode}return Vo?Gi:null},Us=(Yr,Gr,Xo)=>{const Vo=Ia(Yr,Gr,Xo,!1);return Vo&&Vo.length>0?Vo[0]:null},sl=(Yr,Gr,Xo)=>{let Vo=Gr;if(Yr){v(Gr)&&(Vo=Gi=>$a(Gi,Gr));for(let Gi=Yr[Xo];Gi;Gi=Gi[Xo])if(C(Vo)&&Vo(Gi))return Gi}return null},nu=(Yr,Gr)=>sl(Yr,Gr,"nextSibling"),jd=(Yr,Gr)=>sl(Yr,Gr,"previousSibling"),ml=Yr=>C(Yr.querySelectorAll),Wo=(Yr,Gr)=>{var Xo,Vo;const Gi=(Vo=(Xo=Rn(Gr))!==null&&Xo!==void 0?Xo:g.root_element)!==null&&Vo!==void 0?Vo:r;return ml(Gi)?Ee(Gi.querySelectorAll(Yr)):[]},Ei=function(Yr,Gr,Xo){const Vo=Xo??this;if(A(Yr)){const Gi=[];return D_(Yr,(ts,Lc)=>{const _0=Rn(ts);_0&&Gi.push(Gr.call(Vo,_0,Lc))}),Gi}else{const Gi=Rn(Yr);return Gi?Gr.call(Vo,Gi):!1}},ws=(Yr,Gr)=>{Ei(Yr,Xo=>{Ge(Gr,(Vo,Gi)=>{wr(Xo,Gi,Vo)})})},ii=(Yr,Gr)=>{Ei(Yr,Xo=>{const Vo=sr.fromDom(Xo);Id(Vo,Gr)})},Qi=(Yr,Gr,Xo,Vo,Gi)=>Ei(Yr,ts=>{const Lc=v(Gr)?r.createElement(Gr):Gr;return E(Xo)&&ws(Lc,Xo),Vo&&(!v(Vo)&&Vo.nodeType?Lc.appendChild(Vo):v(Vo)&&ii(Lc,Vo)),Gi?Lc:ts.appendChild(Lc)}),Qa=(Yr,Gr,Xo)=>Qi(r.createElement(Yr),Yr,Gr,Xo,!0),ci=up.decode,Va=up.encodeAllRaw,Xa=(Yr,Gr,Xo="")=>{let Vo="<"+Yr;for(const Gi in Gr)nn(Gr,Gi)&&(Vo+=" "+Gi+'="'+Va(Gr[Gi])+'"');return _r(Xo)&&_t(Wt.getVoidElements(),Yr)?Vo+" />":Vo+">"+Xo+""},If=Yr=>{const Gr=r.createElement("div"),Xo=r.createDocumentFragment();Xo.appendChild(Gr),Yr&&(Gr.innerHTML=Yr);let Vo;for(;Vo=Gr.firstChild;)Xo.appendChild(Vo);return Xo.removeChild(Gr),Xo},el=(Yr,Gr)=>Ei(Yr,Xo=>{const Vo=sr.fromDom(Xo);return Gr&&ye(Oc(Vo),Gi=>{Ss(Gi)&&Gi.dom.length===0?ja(Gi):Fc(Vo,Gi)}),ja(Vo),Vo.dom}),Yu=Yr=>Ei(Yr,Gr=>{const Xo=Gr.attributes;for(let Vo=Xo.length-1;Vo>=0;Vo--)Gr.removeAttributeNode(Xo.item(Vo))}),Pg=Yr=>Jt.parse(Yr),m1=(Yr,Gr)=>Jt.serialize(Yr,Gr),Dh=Yr=>{if(kv!==Nl.DOM&&r===document){if(B[Yr])return;B[Yr]=!0}let Gr=r.getElementById("mceDefaultStyles");if(!Gr){Gr=r.createElement("style"),Gr.id="mceDefaultStyles",Gr.type="text/css";const Xo=r.head;Xo.firstChild?Xo.insertBefore(Gr,Xo.firstChild):Xo.appendChild(Gr)}Gr.styleSheet?Gr.styleSheet.cssText+=Yr:Gr.appendChild(r.createTextNode(Yr))},om=Yr=>{Yr||(Yr=""),ye(Yr.split(","),Gr=>{re[Gr]=!0,ct.load(Gr).catch(k)})},Rg=(Yr,Gr,Xo)=>{Ei(Yr,Vo=>{if(ne(Vo)){const Gi=sr.fromDom(Vo),ts=Gr.split(" ");ye(ts,Lc=>{E(Xo)?(Xo?xf:nf)(Gi,Lc):gh(Gi,Lc)})}})},xp=(Yr,Gr)=>{Rg(Yr,Gr,!0)},Lg=(Yr,Gr)=>{Rg(Yr,Gr,!1)},zi=(Yr,Gr)=>{const Xo=qn(Yr),Vo=Gr.split(" ");return E(Xo)&&Oe(Vo,Gi=>rs(Xo,Gi))},ss=Yr=>{Ei(Yr,Gr=>Yc(sr.fromDom(Gr),"display"))},Rc=Yr=>{Ei(Yr,Gr=>Ml(sr.fromDom(Gr),"display","none"))},cu=Yr=>{const Gr=qn(Yr);return E(Gr)&&Aa(Ru(Gr,"display"),"none")},Nu=Yr=>(Yr||"mce_")+be++,nd=Yr=>{const Gr=qn(Yr);return E(Gr)?ne(Gr.dom)?Gr.dom.outerHTML:Ka(Gr):""},wu=(Yr,Gr)=>{Ei(Yr,Xo=>{ne(Xo)&&(Xo.outerHTML=Gr)})},Ou=(Yr,Gr)=>{const Xo=Rn(Gr);return Ei(Yr,Vo=>{const Gi=Xo==null?void 0:Xo.parentNode,ts=Xo==null?void 0:Xo.nextSibling;return Gi&&(ts?Gi.insertBefore(Vo,ts):Gi.appendChild(Vo)),Vo})},fh=(Yr,Gr,Xo)=>Ei(Gr,Vo=>{var Gi;const ts=A(Gr)?Yr.cloneNode(!0):Yr;return Xo&&D_(VO(Vo.childNodes),Lc=>{ts.appendChild(Lc)}),(Gi=Vo.parentNode)===null||Gi===void 0||Gi.replaceChild(ts,Vo),Vo}),Ig=(Yr,Gr)=>{if(Yr.nodeName!==Gr.toUpperCase()){const Xo=Qa(Gr);return D_(Tr(Yr),Vo=>{wr(Xo,Vo.nodeName,pr(Yr,Vo.nodeName))}),fh(Xo,Yr,!0),Xo}else return Yr},Xm=(Yr,Gr)=>{let Xo=Yr;for(;Xo;){let Vo=Gr;for(;Vo&&Xo!==Vo;)Vo=Vo.parentNode;if(Xo===Vo)break;Xo=Xo.parentNode}return!Xo&&Yr.ownerDocument?Yr.ownerDocument.documentElement:Xo},x0=(Yr,Gr,Xo)=>S(Gr)?ba(Wt,Yr,{...Xo,isContent:Gi=>{const ts=Gi.nodeName.toLowerCase();return!!Gr[ts]}}):ba(Wt,Yr,Xo),Dg=()=>r.createRange(),ux=(Yr,Gr,Xo)=>{let Vo=Dg(),Gi,ts;if(Yr&&Gr&&Yr.parentNode&&Gr.parentNode){const Lc=Yr.parentNode;return Vo.setStart(Lc,Do(Yr)),Vo.setEnd(Gr.parentNode,Do(Gr)),Gi=Vo.extractContents(),Vo=Dg(),Vo.setStart(Gr.parentNode,Do(Gr)+1),Vo.setEnd(Lc,Do(Yr)+1),ts=Vo.extractContents(),Lc.insertBefore(ap(kv,Gi,Wt),Yr),Xo?Lc.insertBefore(Xo,Yr):Lc.insertBefore(Gr,Yr),Lc.insertBefore(ap(kv,ts,Wt),Yr),el(Yr),Xo||Gr}else return},Z2=(Yr,Gr,Xo,Vo)=>{if(A(Yr)){let Gi=Yr.length;const ts=[];for(;Gi--;)ts[Gi]=Z2(Yr[Gi],Gr,Xo,Vo);return ts}else return g.collect&&(Yr===r||Yr===H)&&kt.push([Yr,Gr,Xo,Vo]),ln.bind(Yr,Gr,Xo,Vo||kv)},hO=(Yr,Gr,Xo)=>{if(A(Yr)){let Vo=Yr.length;const Gi=[];for(;Vo--;)Gi[Vo]=hO(Yr[Vo],Gr,Xo);return Gi}else{if(kt.length>0&&(Yr===r||Yr===H)){let Vo=kt.length;for(;Vo--;){const[Gi,ts,Lc]=kt[Vo];Yr===Gi&&(!Gr||Gr===ts)&&(!Xo||Xo===Lc)&&ln.unbind(Gi,ts,Lc)}}return ln.unbind(Yr,Gr,Xo)}},xA=(Yr,Gr,Xo)=>ln.dispatch(Yr,Gr,Xo),fx=(Yr,Gr,Xo)=>ln.dispatch(Yr,Gr,Xo),$k=Yr=>{if(Yr&&ge(Yr)){const Gr=Yr.getAttribute("data-mce-contenteditable");return Gr&&Gr!=="inherit"?Gr:Yr.contentEditable!=="inherit"?Yr.contentEditable:null}else return null},kv={doc:r,settings:g,win:H,files:re,stdMode:Re,boxModel:Ke,styleSheetLoader:ct,boundEvents:kt,styles:Jt,schema:Wt,events:ln,isBlock:Vn,root:null,clone:Ur,getRoot:wo,getViewPort:jo,getRect:Bi,getSize:bi,getParent:Us,getParents:Ia,get:Rn,getNext:nu,getPrev:jd,select:Wo,is:$a,add:Qi,create:Qa,createHTML:Xa,createFragment:If,remove:el,setStyle:lo,getStyle:xo,setStyles:eo,removeAllAttribs:Yu,setAttrib:wr,setAttribs:ws,getAttrib:pr,getPos:di,parseStyle:Pg,serializeStyle:m1,addStyle:Dh,loadCSS:om,addClass:xp,removeClass:Lg,hasClass:zi,toggleClass:Rg,show:ss,hide:Rc,isHidden:cu,uniqueId:Nu,setHTML:ii,getOuterHTML:nd,setOuterHTML:wu,decode:ci,encode:Va,insertAfter:Ou,replace:fh,rename:Ig,findCommonAncestor:Xm,run:Ei,getAttribs:Tr,isEmpty:x0,createRng:Dg,nodeIndex:Do,split:ux,bind:Z2,unbind:hO,fire:fx,dispatch:xA,getContentEditable:$k,getContentEditableParent:Yr=>{const Gr=wo();let Xo=null;for(let Vo=Yr;Vo&&Vo!==Gr&&(Xo=$k(Vo),Xo===null);Vo=Vo.parentNode);return Xo},isEditable:Yr=>{if(E(Yr)){const Gr=ne(Yr)?Yr:Yr.parentElement;return E(Gr)&&ge(Gr)&&js(sr.fromDom(Gr))}else return!1},destroy:()=>{if(kt.length>0){let Yr=kt.length;for(;Yr--;){const[Gr,Xo,Vo]=kt[Yr];ln.unbind(Gr,Xo,Vo)}}Ge(re,(Yr,Gr)=>{ct.unload(Gr),delete re[Gr]})},isChildOf:(Yr,Gr)=>Yr===Gr||Gr.contains(Yr),dumpRng:Yr=>"startContainer: "+Yr.startContainer.nodeName+", startOffset: "+Yr.startOffset+", endContainer: "+Yr.endContainer.nodeName+", endOffset: "+Yr.endOffset},q2=md(Jt,g,$(kv));return kv};Nl.DOM=Nl(document),Nl.nodeIndex=Do;const fg=Nl.DOM,Dx=0,UO=1,t0=2,mb=3;class Mm{constructor(g={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=g}_setReferrerPolicy(g){this.settings.referrerPolicy=g}loadScript(g){return new Promise((B,H)=>{const re=fg;let be;const Re=()=>{re.remove(kt),be&&(be.onerror=be.onload=be=null)},Ke=()=>{Re(),B()},ct=()=>{Re(),H("Failed to load script: "+g)},kt=re.uniqueId();be=document.createElement("script"),be.id=kt,be.type="text/javascript",be.src=mo._addCacheSuffix(g),this.settings.referrerPolicy&&re.setAttrib(be,"referrerpolicy",this.settings.referrerPolicy),be.onload=Ke,be.onerror=ct,(document.getElementsByTagName("head")[0]||document.body).appendChild(be)})}isDone(g){return this.states[g]===t0}markDone(g){this.states[g]=t0}add(g){const B=this;return B.queue.push(g),B.states[g]===void 0&&(B.states[g]=Dx),new Promise((re,be)=>{B.scriptLoadedCallbacks[g]||(B.scriptLoadedCallbacks[g]=[]),B.scriptLoadedCallbacks[g].push({resolve:re,reject:be})})}load(g){return this.add(g)}remove(g){delete this.states[g],delete this.scriptLoadedCallbacks[g]}loadQueue(){const g=this.queue;return this.queue=[],this.loadScripts(g)}loadScripts(g){const B=this,H=(ct,kt)=>{Ct(B.scriptLoadedCallbacks,kt).each(Wt=>{ye(Wt,Jt=>Jt[ct](kt))}),delete B.scriptLoadedCallbacks[kt]},re=ct=>{const kt=Te(ct,Wt=>Wt.status==="rejected");return kt.length>0?Promise.reject($e(kt,({reason:Wt})=>A(Wt)?Wt:[Wt])):Promise.resolve()},be=ct=>Promise.allSettled(ve(ct,kt=>B.states[kt]===t0?(H("resolve",kt),Promise.resolve()):B.states[kt]===mb?(H("reject",kt),Promise.reject(kt)):(B.states[kt]=UO,B.loadScript(kt).then(()=>{B.states[kt]=t0,H("resolve",kt);const Wt=B.queue;return Wt.length>0?(B.queue=[],be(Wt).then(re)):Promise.resolve()},()=>(B.states[kt]=mb,H("reject",kt),Promise.reject(kt)))))),Re=ct=>(B.loading=!0,be(ct).then(kt=>{B.loading=!1;const Wt=B.queueLoadedCallbacks.shift();return Y.from(Wt).each(K),re(kt)})),Ke=bn(g);return B.loading?new Promise((ct,kt)=>{B.queueLoadedCallbacks.push(()=>{Re(Ke).then(ct,kt)})}):Re(Ke)}}Mm.ScriptLoader=new Mm;const jO=(r,g)=>{const B=r.indexOf(g);return B!==-1&&r.indexOf(g,B+1)>B},z_=r=>_(r)&&_t(r,"raw"),wl=r=>A(r)&&r.length>1,Kv={},fc=mr("en"),Jv=()=>Ct(Kv,fc.get()),Du={getData:()=>ht(Kv,r=>({...r})),setCode:r=>{r&&fc.set(r)},getCode:()=>fc.get(),add:(r,g)=>{let B=Kv[r];B||(Kv[r]=B={});const H=ve(nt(g),re=>re.toLowerCase());Ge(g,(re,be)=>{const Re=be.toLowerCase();Re!==be&&jO(H,Re)?(_t(g,Re)||(B[Re]=re),B[be]=re):B[Re]=re})},translate:r=>{const g=Jv().getOr({}),B=Re=>C(Re)?Object.prototype.toString.call(Re):H(Re)?"":""+Re,H=Re=>Re===""||Re===null||Re===void 0,re=Re=>{const Ke=B(Re);return _t(g,Ke)?B(g[Ke]):Ct(g,Ke.toLowerCase()).map(B).getOr(Ke)},be=Re=>Re.replace(/{context:\w+}$/,"");if(H(r))return"";if(z_(r))return B(r.raw);if(wl(r)){const Re=r.slice(1),Ke=re(r[0]).replace(/\{([0-9]+)\}/g,(ct,kt)=>_t(Re,kt)?B(Re[kt]):ct);return be(Ke)}return be(re(r))},isRtl:()=>Jv().bind(r=>Ct(r,"_dir")).exists(r=>r==="rtl"),hasCode:r=>_t(Kv,r)},su=()=>{const r=[],g={},B={},H=[],re=(Rn,qn)=>{const pr=Te(H,Tr=>Tr.name===Rn&&Tr.state===qn);ye(pr,Tr=>Tr.resolve())},be=Rn=>_t(g,Rn),Re=Rn=>_t(B,Rn),Ke=Rn=>{if(B[Rn])return B[Rn].instance},ct=(Rn,qn)=>{const pr=Du.getCode(),Tr=","+(qn||"")+",";!pr||qn&&Tr.indexOf(","+pr+",")===-1||Mm.ScriptLoader.add(g[Rn]+"/langs/"+pr+".js")},kt=(Rn,qn)=>{su.languageLoad!==!1&&(be(Rn)?ct(Rn,qn):Vn(Rn,"loaded").then(()=>ct(Rn,qn)))},Wt=(Rn,qn)=>(r.push(qn),B[Rn]={instance:qn},re(Rn,"added"),qn),Jt=Rn=>{delete g[Rn],delete B[Rn]},ln=(Rn,qn)=>v(qn)?v(Rn)?{prefix:"",resource:qn,suffix:""}:{prefix:Rn.prefix,resource:qn,suffix:Rn.suffix}:qn,kn=(Rn,qn)=>{if(g[Rn])return Promise.resolve();let pr=v(qn)?qn:qn.prefix+qn.resource+qn.suffix;pr.indexOf("/")!==0&&pr.indexOf("://")===-1&&(pr=su.baseURL+"/"+pr),g[Rn]=pr.substring(0,pr.lastIndexOf("/"));const Tr=()=>(re(Rn,"loaded"),Promise.resolve());return B[Rn]?Tr():Mm.ScriptLoader.add(pr).then(Tr)},Vn=(Rn,qn="added")=>qn==="added"&&Re(Rn)||qn==="loaded"&&be(Rn)?Promise.resolve():new Promise(pr=>{H.push({name:Rn,state:qn,resolve:pr})});return{items:r,urls:g,lookup:B,get:Ke,requireLangPack:kt,add:Wt,remove:Jt,createUrl:ln,load:kn,waitFor:Vn}};su.languageLoad=!0,su.baseURL="",su.PluginManager=su(),su.ThemeManager=su(),su.ModelManager=su();const dg=(r,g)=>{let B=null;return{cancel:()=>{x(B)||(clearTimeout(B),B=null)},throttle:(...be)=>{x(B)&&(B=setTimeout(()=>{B=null,r.apply(null,be)},g))}}},n0=(r,g)=>{let B=null;const H=()=>{x(B)||(clearTimeout(B),B=null)};return{cancel:H,throttle:(...be)=>{H(),B=setTimeout(()=>{B=null,r.apply(null,be)},g)}}},N_=(r,g,B)=>xl(r,g,B).isSome(),ey=$("mce-annotation"),hg=$("data-mce-annotation"),ty=$("data-mce-annotation-uid"),E1=$("data-mce-annotation-active"),z0=$("data-mce-annotation-classes"),pg=$("data-mce-annotation-attrs"),P1=r=>g=>Fa(g,r),R1=(r,g)=>{const B=r.selection.getRng(),H=sr.fromDom(B.startContainer),re=sr.fromDom(r.getBody()),be=g.fold(()=>"."+ey(),ct=>`[${hg()}="${ct}"]`),Re=ks(H,B.startOffset).getOr(H);return pu(Re,be,P1(re)).bind(ct=>ad(ct,`${ty()}`).bind(kt=>ad(ct,`${hg()}`).map(Wt=>{const Jt=gb(r,kt);return{uid:kt,name:Wt,elements:Jt}})))},zx=r=>mc(r)&&rs(r,ey()),F0=(r,g)=>Vf(r,"data-mce-bogus")||N_(r,'[data-mce-bogus="all"]',P1(g)),gb=(r,g)=>{const B=sr.fromDom(r.getBody()),H=Zl(B,`[${ty()}="${g}"]`);return Te(H,re=>!F0(re,B))},Fx=(r,g)=>{const B=sr.fromDom(r.getBody()),H=Zl(B,`[${hg()}="${g}"]`),re={};return ye(H,be=>{if(!F0(be,B)){const Re=uc(be,ty()),Ke=Ct(re,Re).getOr([]);re[Re]=Ke.concat([be])}}),re},$_=(r,g)=>{const B=mr({}),H=()=>({listeners:[],previous:Ys()}),re=(Jt,ln)=>{be(Jt,kn=>(ln(kn),kn))},be=(Jt,ln)=>{const kn=B.get(),Vn=Ct(kn,Jt).getOrThunk(H),Rn=ln(Vn);kn[Jt]=Rn,B.set(kn)},Re=(Jt,ln,kn)=>{re(Jt,Vn=>{ye(Vn.listeners,Rn=>Rn(!0,Jt,{uid:ln,nodes:ve(kn,qn=>qn.dom)}))})},Ke=Jt=>{re(Jt,ln=>{ye(ln.listeners,kn=>kn(!1,Jt))})},ct=(Jt,ln)=>{ye(gb(r,Jt),kn=>{ln?Es(kn,E1(),"true"):gc(kn,E1())})},kt=n0(()=>{const Jt=Ue(g.getNames());ye(Jt,ln=>{be(ln,kn=>{const Vn=kn.previous.get();return R1(r,Y.some(ln)).fold(()=>{Vn.each(Rn=>{Ke(ln),kn.previous.clear(),ct(Rn,!1)})},({uid:Rn,name:qn,elements:pr})=>{Aa(Vn,Rn)||(Vn.each(Tr=>ct(Tr,!1)),Re(qn,Rn,pr),kn.previous.set(Rn),ct(Rn,!0))}),{previous:kn.previous,listeners:kn.listeners}})})},30);return r.on("remove",()=>{kt.cancel()}),r.on("NodeChange",()=>{kt.throttle()}),{addListener:(Jt,ln)=>{be(Jt,kn=>({previous:kn.previous,listeners:kn.listeners.concat([ln])}))}}},Nx=(r,g)=>{const B=hg(),H=be=>Y.from(be.attr(B)).bind(g.lookup),re=be=>{var Re,Ke;be.attr(ty(),null),be.attr(hg(),null),be.attr(E1(),null);const ct=Y.from(be.attr(pg())).map(ln=>ln.split(",")).getOr([]),kt=Y.from(be.attr(z0())).map(ln=>ln.split(",")).getOr([]);ye(ct,ln=>be.attr(ln,null));const Wt=(Ke=(Re=be.attr("class"))===null||Re===void 0?void 0:Re.split(" "))!==null&&Ke!==void 0?Ke:[],Jt=Le(Wt,[ey()].concat(kt));be.attr("class",Jt.length>0?Jt.join(" "):null),be.attr(z0(),null),be.attr(pg(),null)};r.serializer.addTempAttr(E1()),r.serializer.addAttributeFilter(B,be=>{for(const Re of be)H(Re).each(Ke=>{Ke.persistent===!1&&(Re.name==="span"?Re.unwrap():re(Re))})})},V_=()=>{const r={};return{register:(re,be)=>{r[re]={name:re,settings:be}},lookup:re=>Ct(r,re).map(be=>be.settings),getNames:()=>nt(r)}};let vb=0;const L1=r=>{const B=new Date().getTime(),H=Math.floor(Math.random()*1e9);return vb++,r+"_"+H+vb+String(B)},gd=(r,g)=>{ye(g,B=>{xf(r,B)})},U_=(r,g)=>{ye(g,B=>{nf(r,B)})},yb=(r,g)=>sr.fromDom(r.dom.cloneNode(g)),Th=r=>yb(r,!1),Kf=r=>yb(r,!0),ny=(r,g)=>{const B=sr.fromTag(g),H=Mp(r);return ef(B,H),B},I1=(r,g)=>{const B=ny(r,g);si(r,B);const H=Oc(r);return mu(B,H),ja(r),B},cf=(r,g,B=oe)=>{const H=new kc(r,g),re=be=>{let Re;do Re=H[be]();while(Re&&!Nt(Re)&&!B(Re));return Y.from(Re).filter(Nt)};return{current:()=>Y.from(H.current()).filter(Nt),next:()=>re("next"),prev:()=>re("prev"),prev2:()=>re("prev2")}},Em=(r,g)=>{const B=g||(Re=>r.isBlock(Re)||On(Re)||rr(Re)),H=(Re,Ke,ct,kt)=>{if(Nt(Re)){const Wt=kt(Re,Ke,Re.data);if(Wt!==-1)return Y.some({container:Re,offset:Wt})}return ct().bind(Wt=>H(Wt.container,Wt.offset,ct,kt))};return{backwards:(Re,Ke,ct,kt)=>{const Wt=cf(Re,kt??r.getRoot(),B);return H(Re,Ke,()=>Wt.prev().map(Jt=>({container:Jt,offset:Jt.length})),ct).getOrNull()},forwards:(Re,Ke,ct,kt)=>{const Wt=cf(Re,kt??r.getRoot(),B);return H(Re,Ke,()=>Wt.next().map(Jt=>({container:Jt,offset:0})),ct).getOrNull()}}},Nd=((r,g)=>{const B=be=>{if(!r(be))throw new Error("Can only get "+g+" value of a "+g+" node");return H(be).getOr("")},H=be=>r(be)?Y.from(be.dom.nodeValue):Y.none();return{get:B,getOption:H,set:(be,Re)=>{if(!r(be))throw new Error("Can only set raw "+g+" value of a "+g+" node");be.dom.nodeValue=Re}}})(Ss,"text"),ry=r=>Nd.get(r),HO=r=>Nd.getOption(r),Vx=(r,g)=>Nd.set(r,g),D1=["td","th"],j_=["thead","tbody","tfoot"],oy=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],bb=["li","dd","dt"],ZO=["ul","ol","dl"],Cf=["pre","script","textarea","style"],mg=r=>{let g;return B=>(g=g||We(r,q),_t(g,sa(B)))},dp=r=>sa(r)==="table",N0=r=>mc(r)&&sa(r)==="br",Q_=mg(oy),Vp=mg(ZO),nh=mg(bb),B1=mg(j_),z1=mg(D1),iy=mg(Cf),qO=r=>{const g=[];let B=r.dom;for(;B;)g.push(sr.fromDom(B)),B=B.lastChild;return g},_S=r=>{const g=Zl(r,"br"),B=Te(qO(r).slice(-1),N0);g.length===B.length&&ye(B,ja)},F1=()=>{const r=sr.fromTag("br");return Es(r,"data-mce-bogus","1"),r},rh=r=>{gu(r),Ps(r,F1())},H_=(r,g)=>{zl(r).each(B=>{Eu(B).each(H=>{g.isBlock(sa(r))&&N0(B)&&g.isBlock(sa(H))&&ja(B)})})},nc=Iu,$0=El,vd=_l,wS=r=>r.insertContent(nc,{preserve_zwsp:!0}),N1=ne,r0=Nt,gg=r=>(r0(r)&&(r=r.parentNode),N1(r)&&r.hasAttribute("data-mce-caret")),oh=r=>r0(r)&&$0(r.data),Ch=r=>gg(r)||oh(r),Z_=r=>r.firstChild!==r.lastChild||!On(r.firstChild),q_=(r,g)=>{var B;const re=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(nc),be=r.parentNode;if(g){const Re=r.previousSibling;if(r0(Re)){if(Ch(Re))return Re;if(jp(Re))return Re.splitText(Re.data.length-1)}be==null||be.insertBefore(re,r)}else{const Re=r.nextSibling;if(r0(Re)){if(Ch(Re))return Re;if(U0(Re))return Re.splitText(1),Re}r.nextSibling?be==null||be.insertBefore(re,r.nextSibling):be==null||be.appendChild(re)}return re},V0=r=>{const g=r.container();return Nt(g)?g.data.charAt(r.offset())===nc||r.isAtStart()&&oh(g.previousSibling):!1},Up=r=>{const g=r.container();return Nt(g)?g.data.charAt(r.offset()-1)===nc||r.isAtEnd()&&oh(g.nextSibling):!1},W_=(r,g,B)=>{var H;const be=((H=g.ownerDocument)!==null&&H!==void 0?H:document).createElement(r);be.setAttribute("data-mce-caret",B?"before":"after"),be.setAttribute("data-mce-bogus","all"),be.appendChild(F1().dom);const Re=g.parentNode;return B?Re==null||Re.insertBefore(be,g):g.nextSibling?Re==null||Re.insertBefore(be,g.nextSibling):Re==null||Re.appendChild(be),be},U0=r=>r0(r)&&r.data[0]===nc,jp=r=>r0(r)&&r.data[r.data.length-1]===nc,o0=r=>{var g;const B=r.getElementsByTagName("br"),H=B[B.length-1];dt(H)&&((g=H.parentNode)===null||g===void 0||g.removeChild(H))},Ra=r=>r&&r.hasAttribute("data-mce-caret")?(o0(r),r.removeAttribute("data-mce-caret"),r.removeAttribute("data-mce-bogus"),r.removeAttribute("style"),r.removeAttribute("data-mce-style"),r.removeAttribute("_moz_abspos"),r):null,yd=r=>gg(r.startContainer),Zh=Math.round,i0=r=>r?{left:Zh(r.left),top:Zh(r.top),bottom:Zh(r.bottom),right:Zh(r.right),width:Zh(r.width),height:Zh(r.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Il=(r,g)=>(r=i0(r),g||(r.left=r.left+r.width),r.right=r.left,r.width=0,r),WO=(r,g)=>r.left===g.left&&r.top===g.top&&r.bottom===g.bottom&&r.right===g.right,$1=(r,g,B)=>r>=0&&r<=Math.min(g.height,B.height)/2,V1=(r,g)=>{const B=Math.min(g.height/2,r.height/2);return r.bottom-Bg.bottom?!1:$1(g.top-r.bottom,r,g)},Ux=(r,g)=>r.top>g.bottom?!0:r.bottomg>=r.left&&g<=r.right&&B>=r.top&&B<=r.bottom,Dl=r=>Ie(r,(g,B)=>g.fold(()=>Y.some(B),H=>{const re=Math.min(B.left,H.left),be=Math.min(B.top,H.top),Re=Math.max(B.right,H.right),Ke=Math.max(B.bottom,H.bottom);return Y.some({top:be,right:Re,bottom:Ke,left:re,width:Re-re,height:Ke-be})}),Y.none()),Ol=(r,g,B)=>{const H=Math.max(Math.min(g,r.left+r.width),r.left),re=Math.max(Math.min(B,r.top+r.height),r.top);return Math.sqrt((g-H)*(g-H)+(B-re)*(B-re))},OS=(r,g)=>Math.max(0,Math.min(r.bottom,g.bottom)-Math.max(r.top,g.top)),Y_=(r,g,B)=>Math.min(Math.max(r,g),B),Pm=r=>{const g=r.startContainer,B=r.startOffset;return g===r.endContainer&&g.hasChildNodes()&&r.endOffset===B+1?g.childNodes[B]:null},fi=(r,g)=>{if(ne(r)&&r.hasChildNodes()){const B=r.childNodes,H=Y_(g,0,B.length-1);return B[H]}else return r},SS=(r,g)=>{if(!(g<0&&ne(r)&&r.hasChildNodes()))return fi(r,g)},YO=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),jx=r=>v(r)&&r.charCodeAt(0)>=768&&YO.test(r),X_=(...r)=>g=>{for(let B=0;Bg=>{for(let B=0;BHx(r)?!1:TS(r)?!Rm(r.parentNode):Qx(r)||j0(r)||Ah(r)||Cc(r),G_=r=>ne(r)&&r.getAttribute("unselectable")==="true",Cc=r=>!G_(r)&&sy(r),XO=(r,g)=>{for(let B=r.parentNode;B&&B!==g;B=B.parentNode){if(Cc(B))return!1;if(xb(B))return!0}return!0},yc=r=>Cc(r)?!Ie(Ee(r.getElementsByTagName("*")),(g,B)=>g||xb(B),!1):!1,GO=r=>Qx(r)||yc(r),Zx=(r,g)=>ih(r)&&XO(r,g),_b=ne,K_=ih,qx=Je("display","block table"),J_=Je("float","left right"),Lm=kS(_b,K_,X(J_)),qh=X(Je("white-space","pre pre-line pre-wrap")),U1=Nt,Kc=On,j1=Nl.nodeIndex,Qp=SS,ly=r=>r?r.createRange():Nl.DOM.createRng(),cy=r=>v(r)&&/[\r\n\t ]/.test(r),wb=r=>!!r.setStart&&!!r.setEnd,Q1=r=>{const g=r.startContainer,B=r.startOffset;if(cy(r.toString())&&qh(g.parentNode)&&Nt(g)){const H=g.data;if(cy(H[B-1])||cy(H[B+1]))return!0}return!1},bc=r=>{const g=r.ownerDocument,B=ly(g),H=g.createTextNode(Ea),re=r.parentNode;re.insertBefore(H,r),B.setStart(H,0),B.setEnd(H,1);const be=i0(B.getBoundingClientRect());return re.removeChild(H),be},KO=r=>{const g=r.startContainer,B=r.endContainer,H=r.startOffset,re=r.endOffset;if(g===B&&Nt(B)&&H===0&&re===1){const be=r.cloneRange();return be.setEndAfter(B),Q0(be)}else return null},ew=r=>r.left===0&&r.right===0&&r.top===0&&r.bottom===0,Q0=r=>{var g;let B;const H=r.getClientRects();return H.length>0?B=i0(H[0]):B=i0(r.getBoundingClientRect()),!wb(r)&&Kc(r)&&ew(B)?bc(r):ew(B)&&wb(r)&&(g=KO(r))!==null&&g!==void 0?g:B},Nc=(r,g)=>{const B=Il(r,g);return B.width=1,B.right=B.left+1,B},vg=r=>{const g=[],B=Re=>{Re.height!==0&&(g.length>0&&WO(Re,g[g.length-1])||g.push(Re))},H=(Re,Ke)=>{const ct=ly(Re.ownerDocument);if(Ke0&&(ct.setStart(Re,Ke-1),ct.setEnd(Re,Ke),Q1(ct)||B(Nc(Q0(ct),!1))),Ke{const H=()=>(U1(r),g===0),re=()=>U1(r)?g>=r.data.length:g>=r.childNodes.length,be=()=>{const Wt=ly(r.ownerDocument);return Wt.setStart(r,g),Wt.setEnd(r,g),Wt},Re=()=>(B||(B=vg(qr(r,g))),B),Ke=()=>Re().length>0,ct=Wt=>Wt&&r===Wt.container()&&g===Wt.offset(),kt=Wt=>Qp(r,Wt?g-1:g);return{container:$(r),offset:$(g),toRange:be,getClientRects:Re,isVisible:Ke,isAtStart:H,isAtEnd:re,isEqual:ct,getNode:kt}};qr.fromRangeStart=r=>qr(r.startContainer,r.startOffset),qr.fromRangeEnd=r=>qr(r.endContainer,r.endOffset),qr.after=r=>qr(r.parentNode,j1(r)+1),qr.before=r=>qr(r.parentNode,j1(r)),qr.isAbove=(r,g)=>cs(Xe(g.getClientRects()),tt(r.getClientRects()),V1).getOr(!1),qr.isBelow=(r,g)=>cs(tt(g.getClientRects()),Xe(r.getClientRects()),Ux).getOr(!1),qr.isAtStart=r=>r?r.isAtStart():!1,qr.isAtEnd=r=>r?r.isAtEnd():!1,qr.isTextPosition=r=>r?Nt(r.container()):!1,qr.isElementPosition=r=>!qr.isTextPosition(r);const N=(r,g)=>{Nt(g)&&g.data.length===0&&r.remove(g)},G=(r,g,B)=>{g.insertNode(B),N(r,B.previousSibling),N(r,B.nextSibling)},fe=(r,g,B)=>{const H=Y.from(B.firstChild),re=Y.from(B.lastChild);g.insertNode(B),H.each(be=>N(r,be.previousSibling)),re.each(be=>N(r,be.nextSibling))},Ae=(r,g,B)=>{Ln(B)?fe(r,g,B):G(r,g,B)},Qe=Nt,et=dt,ut=Nl.nodeIndex,Tt=r=>{const g=r.parentNode;return et(g)?Tt(g):g},Bt=r=>r?it(r.childNodes,(g,B)=>(et(B)&&B.nodeName!=="BR"?g=g.concat(Bt(B)):g.push(B),g),[]):[],rn=(r,g)=>{let B=r;for(;(B=B.previousSibling)&&Qe(B);)g+=B.data.length;return g},an=r=>g=>r===g,_n=r=>{let g,B;g=Bt(Tt(r)),B=at(g,an(r),r),g=g.slice(0,B+1);const H=it(g,(re,be,Re)=>(Qe(be)&&Qe(g[Re-1])&&re++,re),0);return g=zt(g,Fe([r.nodeName])),B=at(g,an(r),r),B-H},Dn=r=>(Qe(r)?"text()":r.nodeName.toLowerCase())+"["+_n(r)+"]",Cn=(r,g,B)=>{const H=[];for(let re=g.parentNode;re&&re!==r&&!(B&&B(re));re=re.parentNode)H.push(re);return H},Jn=(r,g)=>{let B=[],H=g.container(),re=g.offset(),be;if(Qe(H))be=rn(H,re);else{const Ke=H.childNodes;re>=Ke.length?(be="after",re=Ke.length-1):be="before",H=Ke[re]}B.push(Dn(H));let Re=Cn(r,H);return Re=zt(Re,X(dt)),B=B.concat(yt(Re,Ke=>Dn(Ke))),B.reverse().join("/")+","+be},lr=(r,g,B)=>{let H=Bt(r);return H=zt(H,(re,be)=>!Qe(re)||!Qe(H[be-1])),H=zt(H,Fe([g])),H[B]},Ar=(r,g)=>{let B=r,H=0;for(;Qe(B);){const re=B.data.length;if(g>=H&&g<=H+re){r=B,g=g-H;break}if(!Qe(B.nextSibling)){r=B,g=re;break}H+=re,B=B.nextSibling}return Qe(r)&&g>r.data.length&&(g=r.data.length),qr(r,g)},Or=(r,g)=>{if(!g)return null;const B=g.split(","),H=B[0].split("/"),re=B.length>1?B[1]:"before",be=it(H,(Re,Ke)=>{const ct=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(Ke);return ct?(ct[1]==="text()"&&(ct[1]="#text"),lr(Re,ct[1],parseInt(ct[2],10))):null},r);if(!be)return null;if(!Qe(be)&&be.parentNode){let Re;return re==="after"?Re=ut(be)+1:Re=ut(be),qr(be.parentNode,Re)}return Ar(be,parseInt(re,10))},jr=rr,Jr=(r,g,B)=>{let H=r(g.data.slice(0,B)).length;for(let re=g.previousSibling;re&&Nt(re);re=re.previousSibling)H+=r(re.data).length;return H},uo=(r,g,B,H,re)=>{const be=re?H.startContainer:H.endContainer;let Re=re?H.startOffset:H.endOffset;const Ke=[],ct=r.getRoot();if(Nt(be))Ke.push(B?Jr(g,be,Re):Re);else{let kt=0;const Wt=be.childNodes;Re>=Wt.length&&Wt.length&&(kt=1,Re=Math.max(0,Wt.length-1)),Ke.push(r.nodeIndex(Wt[Re],B)+kt)}for(let kt=be;kt&&kt!==ct;kt=kt.parentNode)Ke.push(r.nodeIndex(kt,B));return Ke},ro=(r,g,B,H)=>{const re=g.dom,be=uo(re,r,B,H,!0),Re=g.isForward(),Ke=yd(H)?{isFakeCaret:!0}:{};if(g.isCollapsed())return{start:be,forward:Re,...Ke};{const ct=uo(re,r,B,H,!1);return{start:be,end:ct,forward:Re,...Ke}}},Po=(r,g,B)=>{let H=0;return mo.each(r.select(g),re=>{if(re.getAttribute("data-mce-bogus")!=="all"){if(re===B)return!1;H++;return}}),H},gi=(r,g)=>{let B=g?r.startContainer:r.endContainer,H=g?r.startOffset:r.endOffset;if(ne(B)&&B.nodeName==="TR"){const re=B.childNodes;B=re[Math.min(g?H:H-1,re.length-1)],B&&(H=g?0:B.childNodes.length,g?r.setStart(B,H):r.setEnd(B,H))}},ni=r=>(gi(r,!0),gi(r,!1),r),Ti=(r,g)=>{if(ne(r)&&(r=fi(r,g),jr(r)))return r;if(Ch(r)){Nt(r)&&gg(r)&&(r=r.parentNode);let B=r.previousSibling;if(jr(B)||(B=r.nextSibling,jr(B)))return B}},vi=r=>Ti(r.startContainer,r.startOffset)||Ti(r.endContainer,r.endOffset),na=(r,g,B)=>{const H=B.getNode(),re=B.getRng();if(H.nodeName==="IMG"||jr(H)){const Re=H.nodeName;return{name:Re,index:Po(B.dom,Re,H)}}const be=vi(re);if(be){const Re=be.tagName;return{name:Re,index:Po(B.dom,Re,be)}}return ro(r,B,g,re)},Ji=r=>{const g=r.getRng();return{start:Jn(r.dom.getRoot(),qr.fromRangeStart(g)),end:Jn(r.dom.getRoot(),qr.fromRangeEnd(g)),forward:r.isForward()}},La=r=>({rng:r.getRng(),forward:r.isForward()}),ca=(r,g,B)=>{const H={"data-mce-type":"bookmark",id:g,style:"overflow:hidden;line-height:0px"};return B?r.create("span",H,""):r.create("span",H)},Zi=(r,g)=>{const B=r.dom;let H=r.getRng();const re=B.uniqueId(),be=r.isCollapsed(),Re=r.getNode(),Ke=Re.nodeName,ct=r.isForward();if(Ke==="IMG")return{name:Ke,index:Po(B,Ke,Re)};const kt=ni(H.cloneRange());if(!be){kt.collapse(!1);const Jt=ca(B,re+"_end",g);Ae(B,kt,Jt)}H=ni(H),H.collapse(!0);const Wt=ca(B,re+"_start",g);return Ae(B,H,Wt),r.moveToBookmark({id:re,keep:!0,forward:ct}),{id:re,forward:ct}},Bs=(r,g,B=!1)=>g===2?na(vd,B,r):g===3?Ji(r):g?La(r):Zi(r,!1),Ja=U(na,Q,!0),Vl=r=>{const g=be=>be(r),B=$(r),H=()=>re,re={tag:!0,inner:r,fold:(be,Re)=>Re(r),isValue:q,isError:oe,map:be=>gs.value(be(r)),mapError:H,bind:g,exists:g,forall:g,getOr:B,or:H,getOrThunk:B,orThunk:H,getOrDie:B,each:be=>{be(r)},toOptional:()=>Y.some(r)};return re},ka=r=>{const g=()=>B,B={tag:!1,inner:r,fold:(H,re)=>H(r),isValue:oe,isError:q,map:g,mapError:H=>gs.error(H(r)),bind:g,exists:oe,forall:q,getOr:Q,or:Q,getOrThunk:W,orThunk:W,getOrDie:te(String(r)),each:k,toOptional:Y.none};return B},gs={value:Vl,error:ka,fromOption:(r,g)=>r.fold(()=>ka(g),Vl)},aa={generate:r=>{if(!A(r))throw new Error("cases must be an array");if(r.length===0)throw new Error("there must be at least one case");const g=[],B={};return ye(r,(H,re)=>{const be=nt(H);if(be.length!==1)throw new Error("one and only one name per case");const Re=be[0],Ke=H[Re];if(B[Re]!==void 0)throw new Error("duplicate key detected:"+Re);if(Re==="cata")throw new Error("cannot have a case named cata (sorry)");if(!A(Ke))throw new Error("case arguments must be an array");g.push(Re),B[Re]=(...ct)=>{const kt=ct.length;if(kt!==Ke.length)throw new Error("Wrong number of arguments to case "+Re+". Expected "+Ke.length+" ("+Ke+"), got "+kt);return{fold:(...Jt)=>{if(Jt.length!==r.length)throw new Error("Wrong number of arguments to fold. Expected "+r.length+", got "+Jt.length);return Jt[re].apply(null,ct)},match:Jt=>{const ln=nt(Jt);if(g.length!==ln.length)throw new Error("Wrong number of arguments to match. Expected: "+g.join(",")+` +}`,{label:"class",detail:"definition",type:"keyword"}),Hd('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Hd('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],wNe=jwe.concat([Hd("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Hd("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Hd("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),h0e=new hce,Qwe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function jL(t){return(e,o)=>{let f=e.node.getChild("VariableDefinition");return f&&o(f,t),!0}}const ONe=["FunctionDeclaration"],SNe={FunctionDeclaration:jL("function"),ClassDeclaration:jL("class"),ClassExpression:()=>!0,EnumDeclaration:jL("constant"),TypeAliasDeclaration:jL("type"),NamespaceDeclaration:jL("namespace"),VariableDefinition(t,e){t.matchContext(ONe)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function Hwe(t,e){let o=h0e.get(e);if(o)return o;let f=[],P=!0;function d(l,n){let c=t.sliceString(l.from,l.to);f.push({label:c,type:n})}return e.cursor(mf.IncludeAnonymous).iterate(l=>{if(P)P=!1;else if(l.name){let n=SNe[l.name];if(n&&n(l,d)||Qwe.has(l.name))return!1}else if(l.to-l.from>8192){for(let n of Hwe(t,l.node))f.push(n);return!1}}),h0e.set(e,f),f}const p0e=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Zwe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function kNe(t){let e=Gu(t.state).resolveInner(t.pos,-1);if(Zwe.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&p0e.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let P=e;P;P=P.parent)Qwe.has(P.name)&&(f=f.concat(Hwe(t.state.doc,P)));return{options:f,from:o?e.from:t.pos,validFor:p0e}}const d_=cS.define({name:"javascript",parser:_Ne.configure({props:[OT.add({IfStatement:dI({except:/^\s*({|else\b)/}),TryStatement:dI({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:x8e,SwitchBody:t=>{let e=t.textAfter,o=/^\s*\}/.test(e),f=/^\s*(case|default)\b/.test(e);return t.baseIndent+(o?0:f?1:2)*t.unit},Block:xH({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":dI({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),vS.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":bce,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),qwe={test:t=>/^JSX/.test(t.name),facet:mce({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Wwe=d_.configure({dialect:"ts"},"typescript"),Ywe=d_.configure({dialect:"jsx",props:[gce.add(t=>t.isTop?[qwe]:void 0)]}),Xwe=d_.configure({dialect:"jsx ts",props:[gce.add(t=>t.isTop?[qwe]:void 0)]},"typescript");let Gwe=t=>({label:t,type:"keyword"});const Kwe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Gwe),TNe=Kwe.concat(["declare","implements","private","protected","public"].map(Gwe));function CNe(t={}){let e=t.jsx?t.typescript?Xwe:Ywe:t.typescript?Wwe:d_,o=t.typescript?wNe.concat(TNe):jwe.concat(Kwe);return new gT(e,[d_.data.of({autocomplete:Mce(Zwe,oq(o))}),d_.data.of({autocomplete:kNe}),t.jsx?ENe:[]])}function ANe(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function m0e(t,e,o=t.length){for(let f=e==null?void 0:e.firstChild;f;f=f.nextSibling)if(f.name=="JSXIdentifier"||f.name=="JSXBuiltin"||f.name=="JSXNamespacedName"||f.name=="JSXMemberExpression")return t.sliceString(f.from,Math.min(f.to,o));return""}const MNe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),ENe=Oa.inputHandler.of((t,e,o,f,P)=>{if((MNe?t.composing:t.compositionStarted)||t.state.readOnly||e!=o||f!=">"&&f!="/"||!d_.isActiveAt(t.state,e,-1))return!1;let d=P(),{state:l}=d,n=l.changeByRange(c=>{var b;let{head:i}=c,O=Gu(l).resolveInner(i-1,-1),w;if(O.name=="JSXStartTag"&&(O=O.parent),!(l.doc.sliceString(i-1,i)!=f||O.name=="JSXAttributeValue"&&O.to>i)){if(f==">"&&O.name=="JSXFragmentTag")return{range:c,changes:{from:i,insert:""}};if(f=="/"&&O.name=="JSXStartCloseTag"){let y=O.parent,p=y.parent;if(p&&y.from==i-2&&((w=m0e(l.doc,p.firstChild,i))||((b=p.firstChild)===null||b===void 0?void 0:b.name)=="JSXFragmentTag")){let a=`${w}>`;return{range:Yo.cursor(i+a.length,-1),changes:{from:i,insert:a}}}}else if(f==">"){let y=ANe(O);if(y&&!/^\/?>|^<\//.test(l.doc.sliceString(i,i+2))&&(w=m0e(l.doc,y,i)))return{range:c,changes:{from:i,insert:``}}}}return{range:c}});return n.changes.empty?!1:(t.dispatch([d,l.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),QL=["_blank","_self","_top","_parent"],eae=["ascii","utf-8","utf-16","latin1","latin1"],tae=["get","post","put","delete"],nae=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Pv=["true","false"],Wa={},PNe={a:{attrs:{href:null,ping:null,type:null,media:null,target:QL,hreflang:null}},abbr:Wa,address:Wa,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Wa,aside:Wa,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Wa,base:{attrs:{href:null,target:QL}},bdi:Wa,bdo:Wa,blockquote:{attrs:{cite:null}},body:Wa,br:Wa,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:nae,formmethod:tae,formnovalidate:["novalidate"],formtarget:QL,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Wa,center:Wa,cite:Wa,code:Wa,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Wa,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Wa,div:Wa,dl:Wa,dt:Wa,em:Wa,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Wa,figure:Wa,footer:Wa,form:{attrs:{action:null,name:null,"accept-charset":eae,autocomplete:["on","off"],enctype:nae,method:tae,novalidate:["novalidate"],target:QL}},h1:Wa,h2:Wa,h3:Wa,h4:Wa,h5:Wa,h6:Wa,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Wa,hgroup:Wa,hr:Wa,html:{attrs:{manifest:null}},i:Wa,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:nae,formmethod:tae,formnovalidate:["novalidate"],formtarget:QL,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Wa,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Wa,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Wa,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:eae,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Wa,noscript:Wa,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Wa,param:{attrs:{name:null,value:null}},pre:Wa,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Wa,rt:Wa,ruby:Wa,samp:Wa,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:eae}},section:Wa,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Wa,source:{attrs:{src:null,type:null,media:null}},span:Wa,strong:Wa,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Wa,summary:Wa,sup:Wa,table:Wa,tbody:Wa,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Wa,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Wa,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Wa,time:{attrs:{datetime:null}},title:Wa,tr:Wa,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Wa,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Wa},Jwe={accesskey:null,class:null,contenteditable:Pv,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Pv,autocorrect:Pv,autocapitalize:Pv,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Pv,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Pv,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Pv,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Pv,"aria-hidden":Pv,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Pv,"aria-multiselectable":Pv,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Pv,"aria-relevant":null,"aria-required":Pv,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},eOe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of eOe)Jwe[t]=null;class oD{constructor(e,o){this.tags=Object.assign(Object.assign({},PNe),e),this.globalAttrs=Object.assign(Object.assign({},Jwe),o),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}oD.default=new oD;function wM(t,e,o=t.length){if(!e)return"";let f=e.firstChild,P=f&&f.getChild("TagName");return P?t.sliceString(P.from,Math.min(P.to,o)):""}function OM(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function tOe(t,e,o){let f=o.tags[wM(t,OM(e))];return(f==null?void 0:f.children)||o.allTags}function Iue(t,e){let o=[];for(let f=OM(e);f&&!f.type.isTop;f=OM(f.parent)){let P=wM(t,f);if(P&&f.lastChild.name=="CloseTag")break;P&&o.indexOf(P)<0&&(e.name=="EndTag"||e.from>=f.firstChild.to)&&o.push(P)}return o}const nOe=/^[:\-\.\w\u00b7-\uffff]*$/;function g0e(t,e,o,f,P){let d=/\s*>/.test(t.sliceDoc(P,P+5))?"":">",l=OM(o,!0);return{from:f,to:P,options:tOe(t.doc,l,e).map(n=>({label:n,type:"type"})).concat(Iue(t.doc,o).map((n,c)=>({label:"/"+n,apply:"/"+n+d,type:"type",boost:99-c}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function v0e(t,e,o,f){let P=/\s*>/.test(t.sliceDoc(f,f+5))?"":">";return{from:o,to:f,options:Iue(t.doc,e).map((d,l)=>({label:d,apply:d+P,type:"type",boost:99-l})),validFor:nOe}}function RNe(t,e,o,f){let P=[],d=0;for(let l of tOe(t.doc,o,e))P.push({label:"<"+l,type:"type"});for(let l of Iue(t.doc,o))P.push({label:"",type:"type",boost:99-d++});return{from:f,to:f,options:P,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function LNe(t,e,o,f,P){let d=OM(o),l=d?e.tags[wM(t.doc,d)]:null,n=l&&l.attrs?Object.keys(l.attrs):[],c=l&&l.globalAttrs===!1?n:n.length?n.concat(e.globalAttrNames):e.globalAttrNames;return{from:f,to:P,options:c.map(b=>({label:b,type:"property"})),validFor:nOe}}function INe(t,e,o,f,P){var d;let l=(d=o.parent)===null||d===void 0?void 0:d.getChild("AttributeName"),n=[],c;if(l){let b=t.sliceDoc(l.from,l.to),i=e.globalAttrs[b];if(!i){let O=OM(o),w=O?e.tags[wM(t.doc,O)]:null;i=(w==null?void 0:w.attrs)&&w.attrs[b]}if(i){let O=t.sliceDoc(f,P).toLowerCase(),w='"',y='"';/^['"]/.test(O)?(c=O[0]=='"'?/^[^"]*$/:/^[^']*$/,w="",y=t.sliceDoc(P,P+1)==O[0]?"":O[0],O=O.slice(1),f++):c=/^[^\s<>='"]*$/;for(let p of i)n.push({label:p,apply:w+p+y,type:"constant"})}}return{from:f,to:P,options:n,validFor:c}}function rOe(t,e){let{state:o,pos:f}=e,P=Gu(o).resolveInner(f,-1),d=P.resolve(f);for(let l=f,n;d==P&&(n=P.childBefore(l));){let c=n.lastChild;if(!c||!c.type.isError||c.fromrOe(f,P)}const zNe=d_.parser.configure({top:"SingleExpression"}),oOe=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:Wwe.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:Ywe.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:Xwe.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:zNe},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:d_.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:MZ.parser}],iOe=[{name:"style",parser:MZ.parser.configure({top:"Styles"})}].concat(eOe.map(t=>({name:t,parser:d_.parser}))),aOe=cS.define({name:"html",parser:kFe.configure({props:[OT.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].lengtht.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),CH=aOe.configure({wrap:Fwe(oOe,iOe)});function FNe(t={}){let e="",o;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(o=Fwe((t.nestedLanguages||[]).concat(oOe),(t.nestedAttributes||[]).concat(iOe)));let f=o?aOe.configure({wrap:o,dialect:e}):e?CH.configure({dialect:e}):CH;return new gT(f,[CH.data.of({autocomplete:BNe(t)}),t.autoCloseTags!==!1?NNe:[],CNe().support,eNe().support])}const y0e=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),NNe=Oa.inputHandler.of((t,e,o,f,P)=>{if(t.composing||t.state.readOnly||e!=o||f!=">"&&f!="/"||!CH.isActiveAt(t.state,e,-1))return!1;let d=P(),{state:l}=d,n=l.changeByRange(c=>{var b,i,O;let w=l.doc.sliceString(c.from-1,c.to)==f,{head:y}=c,p=Gu(l).resolveInner(y-1,-1),a;if((p.name=="TagName"||p.name=="StartTag")&&(p=p.parent),w&&f==">"&&p.name=="OpenTag"){if(((i=(b=p.parent)===null||b===void 0?void 0:b.lastChild)===null||i===void 0?void 0:i.name)!="CloseTag"&&(a=wM(l.doc,p.parent,y))&&!y0e.has(a)){let u=y+(l.doc.sliceString(y,y+1)===">"?1:0),h=``;return{range:c,changes:{from:y,to:u,insert:h}}}}else if(w&&f=="/"&&p.name=="IncompleteCloseTag"){let u=p.parent;if(p.from==y-2&&((O=u.lastChild)===null||O===void 0?void 0:O.name)!="CloseTag"&&(a=wM(l.doc,u,y))&&!y0e.has(a)){let h=y+(l.doc.sliceString(y,y+1)===">"?1:0),m=`${a}>`;return{range:Yo.cursor(y+m.length,-1),changes:{from:y,to:h,insert:m}}}}return{range:c}});return n.changes.empty?!1:(t.dispatch([d,l.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),sOe=mce({commentTokens:{block:{open:""}}}),lOe=new fl,cOe=Aze.configure({props:[vS.add(t=>!t.is("Block")||t.is("Document")||nle(t)!=null?void 0:(e,o)=>({from:o.doc.lineAt(e.from).to,to:e.to})),lOe.add(nle),OT.add({Document:()=>null}),sT.add({Document:sOe})]});function nle(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function $Ne(t,e){let o=t;for(;;){let f=o.nextSibling,P;if(!f||(P=nle(f.type))!=null&&P<=e)break;o=f}return o.to}const VNe=ebe.of((t,e,o)=>{for(let f=Gu(t).resolveInner(o,-1);f&&!(f.fromo)return{from:o,to:d}}return null});function Due(t){return new Gy(sOe,t,[VNe],"markdown")}const UNe=Due(cOe),jNe=cOe.configure([Nze,Vze,$ze,Uze,{props:[vS.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),uOe=Due(jNe);function QNe(t,e){return o=>{if(o&&t){let f=null;if(o=/\S*/.exec(o)[0],typeof t=="function"?f=t(o):f=qH.matchLanguageName(t,o,!0),f instanceof qH)return f.support?f.support.language.parser:$I.getSkippingParser(f.load());if(f)return f.parser}return e?e.parser:null}}class rH{constructor(e,o,f,P,d,l,n){this.node=e,this.from=o,this.to=f,this.spaceBefore=P,this.spaceAfter=d,this.type=l,this.item=n}blank(e,o=!0){let f=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;f.length0;P--)f+=" ";return f+(o?this.spaceAfter:"")}}marker(e,o){let f=this.node.name=="OrderedList"?String(+dOe(this.item,e)[2]+o):"";return this.spaceBefore+f+this.type+this.spaceAfter}}function fOe(t,e){let o=[];for(let P=t;P&&P.name!="Document";P=P.parent)(P.name=="ListItem"||P.name=="Blockquote"||P.name=="FencedCode")&&o.push(P);let f=[];for(let P=o.length-1;P>=0;P--){let d=o[P],l,n=e.lineAt(d.from),c=d.from-n.from;if(d.name=="FencedCode")f.push(new rH(d,c,c,"","","",null));else if(d.name=="Blockquote"&&(l=/^ *>( ?)/.exec(n.text.slice(c))))f.push(new rH(d,c,c+l[0].length,"",l[1],">",null));else if(d.name=="ListItem"&&d.parent.name=="OrderedList"&&(l=/^( *)\d+([.)])( *)/.exec(n.text.slice(c)))){let b=l[3],i=l[0].length;b.length>=4&&(b=b.slice(0,b.length-4),i-=4),f.push(new rH(d.parent,c,c+i,l[1],b,l[2],d))}else if(d.name=="ListItem"&&d.parent.name=="BulletList"&&(l=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(n.text.slice(c)))){let b=l[4],i=l[0].length;b.length>4&&(b=b.slice(0,b.length-4),i-=4);let O=l[2];l[3]&&(O+=l[3].replace(/[xX]/," ")),f.push(new rH(d.parent,c,c+i,l[1],b,O,d))}}return f}function dOe(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function rae(t,e,o,f=0){for(let P=-1,d=t;;){if(d.name=="ListItem"){let n=dOe(d,e),c=+n[2];if(P>=0){if(c!=P+1)return;o.push({from:d.from+n[1].length,to:d.from+n[0].length,insert:String(P+2+f)})}P=c}let l=d.nextSibling;if(!l)break;d=l}}function rle(t,e){let o=/^[ \t]*/.exec(t)[0].length;if(!o||e.facet(wT)!=" ")return t;let f=xx(t,4,o),P="";for(let d=f;d>0;)d>=4?(P+=" ",d-=4):(P+=" ",d--);return P+t.slice(o)}const HNe=({state:t,dispatch:e})=>{let o=Gu(t),{doc:f}=t,P=null,d=t.changeByRange(l=>{if(!l.empty||!uOe.isActiveAt(t,l.from))return P={range:l};let n=l.from,c=f.lineAt(n),b=fOe(o.resolveInner(n,-1),f);for(;b.length&&b[b.length-1].from>n-c.from;)b.pop();if(!b.length)return P={range:l};let i=b[b.length-1];if(i.to-i.spaceAfter.length>n-c.from)return P={range:l};let O=n>=i.to-i.spaceAfter.length&&!/\S/.test(c.text.slice(i.to));if(i.item&&O)if(i.node.firstChild.to>=n||c.from>0&&!/[^\s>]/.test(f.lineAt(c.from-1).text)){let u=b.length>1?b[b.length-2]:null,h,m="";u&&u.item?(h=c.from+u.from,m=u.marker(f,1)):h=c.from+(u?u.to:0);let v=[{from:h,to:n,insert:m}];return i.node.name=="OrderedList"&&rae(i.item,f,v,-2),u&&u.node.name=="OrderedList"&&rae(u.item,f,v),{range:Yo.cursor(h+m.length),changes:v}}else{let u="";for(let h=0,m=b.length-2;h<=m;h++)u+=b[h].blank(h\s*$/.exec(u.text);if(h&&h.index==i.from){let m=t.changes([{from:u.from+h.index,to:u.to},{from:c.from+i.from,to:c.to}]);return{range:l.map(m),changes:m}}}let w=[];i.node.name=="OrderedList"&&rae(i.item,f,w);let y=i.item&&i.item.from]*/.exec(c.text)[0].length>=i.to)for(let u=0,h=b.length-1;u<=h;u++)p+=u==h&&!y?b[u].marker(f,1):b[u].blank(uc.from&&/\s/.test(c.text.charAt(a-c.from-1));)a--;return p=rle(p,t),w.push({from:a,to:n,insert:t.lineBreak+p}),{range:Yo.cursor(a+p.length+1),changes:w}});return P?!1:(e(t.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)};function b0e(t){return t.name=="QuoteMark"||t.name=="ListMark"}function ZNe(t,e){let o=t.resolveInner(e,-1),f=e;b0e(o)&&(f=o.from,o=o.parent);for(let P;P=o.childBefore(f);)if(b0e(P))f=P.from;else if(P.name=="OrderedList"||P.name=="BulletList")o=P.lastChild,f=o.to;else break;return o}const qNe=({state:t,dispatch:e})=>{let o=Gu(t),f=null,P=t.changeByRange(d=>{let l=d.from,{doc:n}=t;if(d.empty&&uOe.isActiveAt(t,d.from)){let c=n.lineAt(l),b=fOe(ZNe(o,l),n);if(b.length){let i=b[b.length-1],O=i.to-i.spaceAfter.length+(i.spaceAfter?1:0);if(l-c.from>O&&!/\S/.test(c.text.slice(O,l-c.from)))return{range:Yo.cursor(c.from+O),changes:{from:c.from+O,to:l}};if(l-c.from==O&&(!i.item||c.from<=i.item.from||!/\S/.test(c.text.slice(0,i.to)))){let w=c.from+i.from;if(i.item&&i.node.fromd.createCell(c))},{code:Oo(()=>[t.$devMode&&!d.isMobile?(Do(),sa(l,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=c=>o.cellData.code=c),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):Za("",!0)]),outcome:Oo(()=>[ha("div",{class:"markdown-content",innerHTML:d.compiledMarkdown},null,8,KNe)]),_:1},8,["cell-id","is-dev-mode","hide-cell","cell-name","onDelete","onSave"])}const pOe=hm(GNe,[["render",JNe],["__scopeId","data-v-d5250b54"]]);var e$e={exports:{}};(function(t){(function(){var e=function(r){if(r===null)return"null";if(r===void 0)return"undefined";var g=typeof r;return g==="object"&&(Array.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="Array")?"array":g==="object"&&(String.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="String")?"string":g},o=function(r){return["undefined","boolean","number","string","function","xml","null"].indexOf(r)!==-1},f=function(r,g){var B=Array.prototype.slice.call(r);return B.sort(g)},P=function(r,g){return d(function(B,H){return r.eq(g(B),g(H))})},d=function(r){return{eq:r}},l=d(function(r,g){return r===g}),n=l,c=function(r){return d(function(g,B){if(g.length!==B.length)return!1;for(var H=g.length,re=0;re{var H;return B(r,g.prototype)?!0:((H=r.constructor)===null||H===void 0?void 0:H.name)===g.name},p=r=>{const g=typeof r;return r===null?"null":g==="object"&&Array.isArray(r)?"array":g==="object"&&y(r,String,(B,H)=>H.isPrototypeOf(B))?"string":g},a=r=>g=>p(g)===r,u=r=>g=>typeof g===r,h=r=>g=>r===g,m=(r,g)=>_(r)&&y(r,g,(B,H)=>w(B)===H),v=a("string"),_=a("object"),S=r=>m(r,Object),A=a("array"),x=h(null),R=u("boolean"),M=h(void 0),T=r=>r==null,E=r=>!T(r),C=u("function"),L=u("number"),D=(r,g)=>{if(A(r)){for(let B=0,H=r.length;B{},I=(r,g)=>(...B)=>r(g.apply(null,B)),z=(r,g)=>B=>r(g(B)),$=r=>()=>r,Q=r=>r,j=(r,g)=>r===g;function U(r,...g){return(...B)=>{const H=g.concat(B);return r.apply(null,H)}}const X=r=>g=>!r(g),te=r=>()=>{throw new Error(r)},W=r=>r(),K=r=>{r()},oe=$(!1),q=$(!0);class Y{constructor(g,B){this.tag=g,this.value=B}static some(g){return new Y(!0,g)}static none(){return Y.singletonNone}fold(g,B){return this.tag?B(this.value):g()}isSome(){return this.tag}isNone(){return!this.tag}map(g){return this.tag?Y.some(g(this.value)):Y.none()}bind(g){return this.tag?g(this.value):Y.none()}exists(g){return this.tag&&g(this.value)}forall(g){return!this.tag||g(this.value)}filter(g){return!this.tag||g(this.value)?this:Y.none()}getOr(g){return this.tag?this.value:g}or(g){return this.tag?this:g}getOrThunk(g){return this.tag?this.value:g()}orThunk(g){return this.tag?this:g()}getOrDie(g){if(this.tag)return this.value;throw new Error(g??"Called getOrDie on None")}static from(g){return E(g)?Y.some(g):Y.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(g){this.tag&&g(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}Y.singletonNone=new Y(!1);const ee=Array.prototype.slice,me=Array.prototype.indexOf,he=Array.prototype.push,se=(r,g)=>me.call(r,g),ae=(r,g)=>{const B=se(r,g);return B===-1?Y.none():Y.some(B)},ce=(r,g)=>se(r,g)>-1,de=(r,g)=>{for(let B=0,H=r.length;B{const B=r.length,H=new Array(B);for(let re=0;re{for(let B=0,H=r.length;B{for(let B=r.length-1;B>=0;B--){const H=r[B];g(H,B)}},Se=(r,g)=>{const B=[],H=[];for(let re=0,be=r.length;re{const B=[];for(let H=0,re=r.length;H(_e(r,(H,re)=>{B=g(B,H,re)}),B),Ie=(r,g,B)=>(ye(r,(H,re)=>{B=g(B,H,re)}),B),ze=(r,g,B)=>{for(let H=0,re=r.length;Hze(r,g,oe),He=(r,g)=>{for(let B=0,H=r.length;B{const g=[];for(let B=0,H=r.length;BVe(ve(r,g)),Oe=(r,g)=>{for(let B=0,H=r.length;B{const g=ee.call(r,0);return g.reverse(),g},Le=(r,g)=>Te(r,B=>!ce(g,B)),We=(r,g)=>{const B={};for(let H=0,re=r.length;H{const B=ee.call(r,0);return B.sort(g),B},Ze=(r,g)=>g>=0&&gZe(r,0),tt=r=>Ze(r,r.length-1),Ee=C(Array.from)?Array.from:r=>ee.call(r),Ne=(r,g)=>{for(let B=0;B{const B=[],H=C(g)?re=>de(B,be=>g(be,re)):re=>ce(B,re);for(let re=0,be=r.length;re{const B=nt(r);for(let H=0,re=B.length;Hpt(r,(B,H)=>({k:H,v:g(B,H)})),pt=(r,g)=>{const B={};return Ge(r,(H,re)=>{const be=g(H,re);B[be.k]=be.v}),B},wt=r=>(g,B)=>{r[B]=g},Dt=(r,g,B,H)=>{Ge(r,(re,be)=>{(g(re,be)?B:H)(re,be)})},It=(r,g)=>{const B={},H={};return Dt(r,g,wt(B),wt(H)),{t:B,f:H}},qt=(r,g)=>{const B={};return Dt(r,g,wt(B),k),B},en=(r,g)=>{const B=[];return Ge(r,(H,re)=>{B.push(g(H,re))}),B},Gt=r=>en(r,Q),Ct=(r,g)=>_t(r,g)?Y.from(r[g]):Y.none(),_t=(r,g)=>ot.call(r,g),nn=(r,g)=>_t(r,g)&&r[g]!==void 0&&r[g]!==null,gn=(r,g,B=O)=>i(B).eq(r,g),bn=r=>{const g={};return ye(r,B=>{g[B]={}}),nt(g)},mn=r=>r.length!==void 0,vt=Array.isArray,bt=r=>{if(vt(r))return r;{const g=[];for(let B=0,H=r.length;B{if(!r)return!1;if(B=B||r,mn(r)){for(let H=0,re=r.length;H{const B=[];return lt(r,(H,re)=>{B.push(g(H,re,r))}),B},zt=(r,g)=>{const B=[];return lt(r,(H,re)=>{(!g||g(H,re,r))&&B.push(H)}),B},Rt=(r,g)=>{if(r){for(let B=0,H=r.length;B{let re=M(B)?r[0]:B;for(let be=0;be{for(let H=0,re=r.length;Hr[r.length-1],xt=r=>{let g=!1,B;return(...H)=>(g||(g=!0,B=r.apply(null,H)),B)},Zt=(r,g,B,H)=>{const re=r.isiOS()&&/ipad/i.test(B)===!0,be=r.isiOS()&&!re,Re=r.isiOS()||r.isAndroid(),Ke=Re||H("(pointer:coarse)"),ct=re||!be&&Re&&H("(min-device-width:768px)"),kt=be||Re&&!ct,Wt=g.isSafari()&&r.isiOS()&&/safari/i.test(B)===!1,Jt=!kt&&!ct&&!Wt;return{isiPad:$(re),isiPhone:$(be),isTablet:$(ct),isPhone:$(kt),isTouch:$(Ke),isAndroid:r.isAndroid,isiOS:r.isiOS,isWebView:$(Wt),isDesktop:$(Jt)}},Xt=(r,g)=>{for(let B=0;B{const B=Xt(r,g);if(!B)return{major:0,minor:0};const H=re=>Number(g.replace(B,"$"+re));return tn(H(1),H(2))},Qt=(r,g)=>{const B=String(g).toLowerCase();return r.length===0?Pt():Yt(r,B)},Pt=()=>tn(0,0),tn=(r,g)=>({major:r,minor:g}),Kt={nu:tn,detect:Qt,unknown:Pt},fn=(r,g)=>Ne(g.brands,B=>{const H=B.brand.toLowerCase();return De(r,re=>{var be;return H===((be=re.brand)===null||be===void 0?void 0:be.toLowerCase())}).map(re=>({current:re.name,version:Kt.nu(parseInt(B.version,10),0)}))}),dn=(r,g)=>{const B=String(g).toLowerCase();return De(r,H=>H.search(B))},vn=(r,g)=>dn(r,g).map(B=>{const H=Kt.detect(B.versionRegexes,g);return{current:B.name,version:H}}),Nn=(r,g)=>dn(r,g).map(B=>{const H=Kt.detect(B.versionRegexes,g);return{current:B.name,version:H}}),er=(r,g)=>r.substring(g),En=(r,g,B)=>g===""||r.length>=g.length&&r.substr(B,B+g.length)===g,In=(r,g)=>xr(r,g)?er(r,g.length):r,jn=(r,g,B=0,H)=>{const re=r.indexOf(g,B);return re!==-1?M(H)?!0:re+g.length<=H:!1},xr=(r,g)=>En(r,g,0),Sr=(r,g)=>En(r,g,r.length-g.length),ar=r=>g=>g.replace(r,""),Fn=ar(/^\s+|\s+$/g),ir=ar(/^\s+/g),Wn=ar(/\s+$/g),Kn=r=>r.length>0,_r=r=>!Kn(r),Ir=(r,g)=>g<=0?"":new Array(g+1).join(r),zr=(r,g=10)=>{const B=parseInt(r,g);return isNaN(B)?Y.none():Y.some(B)},Fr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Rr=r=>g=>jn(g,r),$r=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:r=>jn(r,"edge/")&&jn(r,"chrome")&&jn(r,"safari")&&jn(r,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Fr],search:r=>jn(r,"chrome")&&!jn(r,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:r=>jn(r,"msie")||jn(r,"trident")},{name:"Opera",versionRegexes:[Fr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Rr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Rr("firefox")},{name:"Safari",versionRegexes:[Fr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:r=>(jn(r,"safari")||jn(r,"mobile/"))&&jn(r,"applewebkit")}],Kr=[{name:"Windows",search:Rr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:r=>jn(r,"iphone")||jn(r,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Rr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Rr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Rr("linux"),versionRegexes:[]},{name:"Solaris",search:Rr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Rr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Rr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Co={browsers:$($r),oses:$(Kr)},so="Edge",So="Chromium",go="IE",li="Opera",Pn="Firefox",Yn="Safari",br=()=>dr({current:void 0,version:Kt.unknown()}),dr=r=>{const g=r.current,B=r.version,H=re=>()=>g===re;return{current:g,version:B,isEdge:H(so),isChromium:H(So),isIE:H(go),isOpera:H(li),isFirefox:H(Pn),isSafari:H(Yn)}},Cr={unknown:br,nu:dr,edge:$(so),chromium:$(So),ie:$(go),opera:$(li),firefox:$(Pn),safari:$(Yn)},io="Windows",Qr="iOS",Wr="Android",bo="Linux",Bn="macOS",hr="Solaris",hn="FreeBSD",zn="ChromeOS",Zn=()=>yr({current:void 0,version:Kt.unknown()}),yr=r=>{const g=r.current,B=r.version,H=re=>()=>g===re;return{current:g,version:B,isWindows:H(io),isiOS:H(Qr),isAndroid:H(Wr),isMacOS:H(Bn),isLinux:H(bo),isSolaris:H(hr),isFreeBSD:H(hn),isChromeOS:H(zn)}},gr={unknown:Zn,nu:yr,windows:$(io),ios:$(Qr),android:$(Wr),linux:$(bo),macos:$(Bn),solaris:$(hr),freebsd:$(hn),chromeos:$(zn)},nr={detect:(r,g,B)=>{const H=Co.browsers(),re=Co.oses(),be=g.bind(ct=>fn(H,ct)).orThunk(()=>vn(H,r)).fold(Cr.unknown,Cr.nu),Re=Nn(re,r).fold(gr.unknown,gr.nu),Ke=Zt(Re,be,r,B);return{browser:be,os:Re,deviceType:Ke}}},Qn=r=>window.matchMedia(r).matches;let Hn=xt(()=>nr.detect(navigator.userAgent,Y.from(navigator.userAgentData),Qn));const tr=()=>Hn(),cr=navigator.userAgent,Lr=tr(),Er=Lr.browser,Vr=Lr.os,to=Lr.deviceType,_o=cr.indexOf("Windows Phone")!==-1,fr={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Er.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Er.isIE(),windowsPhone:_o,browser:{current:Er.current,version:Er.version,isChromium:Er.isChromium,isEdge:Er.isEdge,isFirefox:Er.isFirefox,isIE:Er.isIE,isOpera:Er.isOpera,isSafari:Er.isSafari},os:{current:Vr.current,version:Vr.version,isAndroid:Vr.isAndroid,isChromeOS:Vr.isChromeOS,isFreeBSD:Vr.isFreeBSD,isiOS:Vr.isiOS,isLinux:Vr.isLinux,isMacOS:Vr.isMacOS,isSolaris:Vr.isSolaris,isWindows:Vr.isWindows},deviceType:{isDesktop:to.isDesktop,isiPad:to.isiPad,isiPhone:to.isiPhone,isPhone:to.isPhone,isTablet:to.isTablet,isTouch:to.isTouch,isWebView:to.isWebView}},Eo=/^\s*|\s*$/g,ao=r=>T(r)?"":(""+r).replace(Eo,""),co=(r,g)=>g?g==="array"&&vt(r)?!0:typeof r===g:r!==void 0,Go=(r,g,B={})=>{const H=v(r)?r.split(g||","):r||[];let re=H.length;for(;re--;)B[H[re]]={};return B},po=_t,qo=(r,...g)=>{for(let B=0;Bg.call(H,re,be,B)===!1?!1:(Ao(re,g,B,H),!0)))},mo={trim:ao,isArray:vt,is:co,toArray:bt,makeMap:Go,each:lt,map:yt,grep:zt,inArray:Rt,hasOwn:po,extend:qo,walk:Ao,resolve:(r,g=window)=>{const B=r.split(".");for(let H=0,re=B.length;HA(r)?r:r===""?[]:yt(r.split(g||","),ao),_addCacheSuffix:r=>{const g=fr.cacheSuffix;return g&&(r+=(r.indexOf("?")===-1?"?":"&")+g),r}},Aa=(r,g,B=j)=>r.exists(H=>B(H,g)),Xl=(r,g,B=j)=>us(r,g,B).getOr(r.isNone()&&g.isNone()),Na=r=>{const g=[],B=H=>{g.push(H)};for(let H=0;Hr.isSome()&&g.isSome()?Y.some(B(r.getOrDie(),g.getOrDie())):Y.none(),wc=(r,g,B,H)=>r.isSome()&&g.isSome()&&B.isSome()?Y.some(H(r.getOrDie(),g.getOrDie(),B.getOrDie())):Y.none(),ga=(r,g)=>r?Y.some(g):Y.none(),Ku=typeof window<"u"?window:Function("return this;")(),qc=(r,g)=>{let B=g??Ku;for(let H=0;H{const B=r.split(".");return qc(B,g)},Ql=(r,g)=>Yd(r,g),Ed=(r,g)=>{const B=Ql(r,g);if(B==null)throw new Error(r+" not available on this browser");return B},Nf=Object.getPrototypeOf,mm=r=>Ed("HTMLElement",r),Ws=r=>{const g=Yd("ownerDocument.defaultView",r);return _(r)&&(mm(g).prototype.isPrototypeOf(r)||/^HTML\w*Element$/.test(Nf(r).constructor.name))},gm=8,Gl=9,pc=11,Cu=1,xl=3,la=r=>r.dom.nodeName.toLowerCase(),cc=r=>r.dom.nodeType,pu=r=>g=>cc(g)===r,ju=r=>cc(r)===gm||la(r)==="#comment",iu=r=>mc(r)&&Ws(r.dom),mc=pu(Cu),ks=pu(xl),$f=pu(Gl),yf=pu(pc),Ju=r=>g=>mc(g)&&la(g)===r,$h=(r,g,B)=>{if(v(B)||R(B)||L(B))r.setAttribute(g,B+"");else throw console.error("Invalid call to Attribute.set. Key ",g,":: Value ",B,":: Element ",r),new Error("Attribute value was not simple")},Es=(r,g,B)=>{$h(r.dom,g,B)},ef=(r,g)=>{const B=r.dom;Ge(g,(H,re)=>{$h(B,re,H)})},uc=(r,g)=>{const B=r.dom.getAttribute(g);return B===null?void 0:B},sd=(r,g)=>Y.from(uc(r,g)),Vf=(r,g)=>{const B=r.dom;return B&&B.hasAttribute?B.hasAttribute(g):!1},gc=(r,g)=>{r.dom.removeAttribute(g)},ld=r=>{const g=r.dom.attributes;return g==null||g.length===0},Mp=r=>Ie(r.dom.attributes,(g,B)=>(g[B.name]=B.value,g),{}),Xd=(r,g)=>{const B=uc(r,g);return B===void 0||B===""?[]:B.split(" ")},bf=(r,g,B)=>{const re=Xd(r,g).concat([B]);return Es(r,g,re.join(" ")),!0},mh=(r,g,B)=>{const H=Te(Xd(r,g),re=>re!==B);return H.length>0?Es(r,g,H.join(" ")):gc(r,g),!1},cd=r=>r.dom.classList!==void 0,Vh=r=>Xd(r,"class"),xf=(r,g)=>bf(r,"class",g),tf=(r,g)=>mh(r,"class",g),Au=(r,g)=>ce(Vh(r),g)?tf(r,g):xf(r,g),_f=(r,g)=>{cd(r)?r.dom.classList.add(g):xf(r,g)},ud=r=>{(cd(r)?r.dom.classList:Vh(r)).length===0&&gc(r,"class")},nf=(r,g)=>{cd(r)?r.dom.classList.remove(g):tf(r,g),ud(r)},gh=(r,g)=>{const B=cd(r)?r.dom.classList.toggle(g):Au(r,g);return ud(r),B},rs=(r,g)=>cd(r)&&r.dom.classList.contains(g),ep=(r,g)=>{const H=(g||document).createElement("div");if(H.innerHTML=r,!H.hasChildNodes()||H.childNodes.length>1){const re="HTML does not have a single root node";throw console.error(re,r),new Error(re)}return Pd(H.childNodes[0])},Ep=(r,g)=>{const H=(g||document).createElement(r);return Pd(H)},vm=(r,g)=>{const H=(g||document).createTextNode(r);return Pd(H)},Pd=r=>{if(r==null)throw new Error("Node cannot be null or undefined");return{dom:r}},sr={fromHtml:ep,fromTag:Ep,fromText:vm,fromDom:Pd,fromPoint:(r,g,B)=>Y.from(r.dom.elementFromPoint(g,B)).map(Pd)},Pp=(r,g)=>{const B=[],H=be=>(B.push(be),g(be));let re=g(r);do re=re.bind(H);while(re.isSome());return B},wf=(r,g)=>{const B=r.dom;if(B.nodeType!==Cu)return!1;{const H=B;if(H.matches!==void 0)return H.matches(g);if(H.msMatchesSelector!==void 0)return H.msMatchesSelector(g);if(H.webkitMatchesSelector!==void 0)return H.webkitMatchesSelector(g);if(H.mozMatchesSelector!==void 0)return H.mozMatchesSelector(g);throw new Error("Browser lacks native selectors")}},Of=r=>r.nodeType!==Cu&&r.nodeType!==Gl&&r.nodeType!==pc||r.childElementCount===0,Rp=(r,g)=>{const B=g===void 0?document:g.dom;return Of(B)?[]:ve(B.querySelectorAll(r),sr.fromDom)},Gd=(r,g)=>{const B=g===void 0?document:g.dom;return Of(B)?Y.none():Y.from(B.querySelector(r)).map(sr.fromDom)},Fa=(r,g)=>r.dom===g.dom,Qu=(r,g)=>{const B=r.dom,H=g.dom;return B===H?!1:B.contains(H)},rf=r=>sr.fromDom(r.dom.ownerDocument),Bc=r=>$f(r)?r:rf(r),ym=r=>sr.fromDom(Bc(r).dom.documentElement),Mu=r=>sr.fromDom(Bc(r).dom.defaultView),Hu=r=>Y.from(r.dom.parentNode).map(sr.fromDom),Lp=r=>Y.from(r.dom.parentElement).map(sr.fromDom),Uh=(r,g)=>{const B=C(g)?g:oe;let H=r.dom;const re=[];for(;H.parentNode!==null&&H.parentNode!==void 0;){const be=H.parentNode,Re=sr.fromDom(be);if(re.push(Re),B(Re)===!0)break;H=be}return re},jh=r=>{const g=B=>Te(B,H=>!Fa(r,H));return Hu(r).map(Oc).map(g).getOr([])},Eu=r=>Y.from(r.dom.previousSibling).map(sr.fromDom),fd=r=>Y.from(r.dom.nextSibling).map(sr.fromDom),vh=r=>ke(Pp(r,Eu)),Pu=r=>Pp(r,fd),Oc=r=>ve(r.dom.childNodes,sr.fromDom),Ts=(r,g)=>{const B=r.dom.childNodes;return Y.from(B[g]).map(sr.fromDom)},Uf=r=>Ts(r,0),zl=r=>Ts(r,r.dom.childNodes.length-1),Hl=r=>r.dom.childNodes.length,Cs=r=>{const g=r.dom.head;if(g==null)throw new Error("Head is not available yet");return sr.fromDom(g)},$s=r=>yf(r)&&E(r.dom.host),Zu=C(Element.prototype.attachShadow)&&C(Node.prototype.getRootNode),yh=$(Zu),of=Zu?r=>sr.fromDom(r.dom.getRootNode()):Bc,tp=r=>$s(r)?r:Cs(Bc(r)),Ip=r=>$s(r)?r:sr.fromDom(Bc(r).dom.body),bm=r=>{const g=of(r);return $s(g)?Y.some(g):Y.none()},Kd=r=>sr.fromDom(r.dom.host),bh=r=>{if(yh()&&E(r.target)){const g=sr.fromDom(r.target);if(mc(g)&&Jd(g)&&r.composed&&r.composedPath){const B=r.composedPath();if(B)return Xe(B)}}return Y.from(r.target)},Jd=r=>E(r.dom.shadowRoot),zc=r=>{const g=ks(r)?r.dom.parentNode:r.dom;if(g==null||g.ownerDocument===null)return!1;const B=g.ownerDocument;return bm(sr.fromDom(g)).fold(()=>B.body.contains(g),z(zc,Kd))};var np=(r,g,B,H,re)=>r(B,H)?Y.some(B):C(re)&&re(B)?Y.none():g(B,H,re);const ms=(r,g,B)=>{let H=r.dom;const re=C(B)?B:oe;for(;H.parentNode;){H=H.parentNode;const be=sr.fromDom(H);if(g(be))return Y.some(be);if(re(be))break}return Y.none()},Ya=(r,g,B)=>np((re,be)=>be(re),ms,r,g,B),_l=(r,g)=>{const B=r.dom;return B.parentNode?dl(sr.fromDom(B.parentNode),H=>!Fa(r,H)&&g(H)):Y.none()},dl=(r,g)=>{const B=re=>g(sr.fromDom(re));return De(r.dom.childNodes,B).map(sr.fromDom)},Wc=(r,g)=>{const B=H=>{for(let re=0;rems(r,H=>wf(H,g),B),xi=(r,g)=>Gd(g,r),mu=(r,g,B)=>np((re,be)=>wf(re,be),wl,r,g,B),xh=r=>mu(r,"[contenteditable]"),js=(r,g=!1)=>zc(r)?r.dom.isContentEditable:xh(r).fold($(g),B=>os(B)==="true"),os=r=>r.dom.contentEditable,af=r=>r.style!==void 0&&C(r.style.getPropertyValue),Sf=(r,g,B)=>{if(!v(B))throw console.error("Invalid call to CSS.set. Property ",g,":: Value ",B,":: Element ",r),new Error("CSS value must be a string: "+B);af(r)&&r.style.setProperty(g,B)},sf=(r,g)=>{af(r)&&r.style.removeProperty(g)},Ml=(r,g,B)=>{const H=r.dom;Sf(H,g,B)},Hi=(r,g)=>{const B=r.dom;Ge(g,(H,re)=>{Sf(B,re,H)})},pi=(r,g)=>{const B=r.dom,re=window.getComputedStyle(B).getPropertyValue(g);return re===""&&!zc(r)?Qh(B,g):re},Qh=(r,g)=>af(r)?r.style.getPropertyValue(g):"",Ru=(r,g)=>{const B=r.dom,H=Qh(B,g);return Y.from(H).filter(re=>re.length>0)},vc=r=>{const g={},B=r.dom;if(af(B))for(let H=0;H{const B=r.dom;sf(B,g),Aa(sd(r,"style").map(Fn),"")&&gc(r,"style")},Kl=r=>r.dom.offsetWidth,Fc=(r,g)=>{Hu(r).each(H=>{H.dom.insertBefore(g.dom,r.dom)})},si=(r,g)=>{fd(r).fold(()=>{Hu(r).each(re=>{Ps(re,g)})},H=>{Fc(H,g)})},Hh=(r,g)=>{Uf(r).fold(()=>{Ps(r,g)},H=>{r.dom.insertBefore(g.dom,H.dom)})},Ps=(r,g)=>{r.dom.appendChild(g.dom)},Sc=(r,g)=>{Fc(r,g),Ps(g,r)},tl=(r,g)=>{ye(g,(B,H)=>{const re=H===0?r:g[H-1];si(re,B)})},gu=(r,g)=>{ye(g,B=>{Ps(r,B)})},vu=r=>{r.dom.textContent="",ye(Oc(r),g=>{ja(g)})},ja=r=>{const g=r.dom;g.parentNode!==null&&g.parentNode.removeChild(g)},yu=r=>{const g=Oc(r);g.length>0&&tl(r,g),ja(r)},Rd=(r,g)=>{const H=(g||document).createElement("div");return H.innerHTML=r,Oc(sr.fromDom(H))},Ld=r=>ve(r,sr.fromDom),nl=r=>r.dom.innerHTML,Id=(r,g)=>{const H=rf(r).dom,re=sr.fromDom(H.createDocumentFragment()),be=Rd(g,H);gu(re,be),vu(r),Ps(r,re)},Ka=r=>{const g=sr.fromTag("div"),B=sr.fromDom(r.dom.cloneNode(!0));return Ps(g,B),nl(g)},Xi=(r,g,B,H,re,be,Re)=>({target:r,x:g,y:B,stop:H,prevent:re,kill:be,raw:Re}),Xc=r=>{const g=sr.fromDom(bh(r).getOr(r.target)),B=()=>r.stopPropagation(),H=()=>r.preventDefault(),re=I(H,B);return Xi(g,r.clientX,r.clientY,B,H,re,r)},jf=(r,g)=>B=>{r(B)&&g(Xc(B))},bu=(r,g,B,H,re)=>{const be=jf(B,H);return r.dom.addEventListener(g,be,re),{unbind:U(rp,r,g,be,re)}},Dp=(r,g,B,H)=>bu(r,g,B,H,!1),rp=(r,g,B,H)=>{r.dom.removeEventListener(g,B,H)},Lu=(r,g)=>({left:r,top:g,translate:(H,re)=>Lu(r+H,g+re)}),fs=Lu,Qf=r=>{const g=r.getBoundingClientRect();return fs(g.left,g.top)},dd=(r,g)=>r!==void 0?r:g!==void 0?g:0,Hf=r=>{const g=r.dom.ownerDocument,B=g.body,H=g.defaultView,re=g.documentElement;if(B===r.dom)return fs(B.offsetLeft,B.offsetTop);const be=dd(H==null?void 0:H.pageYOffset,re.scrollTop),Re=dd(H==null?void 0:H.pageXOffset,re.scrollLeft),Ke=dd(re.clientTop,B.clientTop),ct=dd(re.clientLeft,B.clientLeft);return _h(r).translate(Re-ct,be-Ke)},_h=r=>{const g=r.dom,H=g.ownerDocument.body;return H===g?fs(H.offsetLeft,H.offsetTop):zc(r)?Qf(g):fs(0,0)},Gc=r=>{const g=r!==void 0?r.dom:document,B=g.body.scrollLeft||g.documentElement.scrollLeft,H=g.body.scrollTop||g.documentElement.scrollTop;return fs(B,H)},hd=(r,g,B)=>{const re=(B!==void 0?B.dom:document).defaultView;re&&re.scrollTo(r,g)},rl=(r,g)=>{tr().browser.isSafari()&&C(r.dom.scrollIntoViewIfNeeded)?r.dom.scrollIntoViewIfNeeded(!1):r.dom.scrollIntoView(g)},Dd=r=>{const g=r===void 0?window:r;return tr().browser.isFirefox()?Y.none():Y.from(g.visualViewport)},Vi=(r,g,B,H)=>({x:r,y:g,width:B,height:H,right:r+B,bottom:g+H}),fa=r=>{const g=r===void 0?window:r,B=g.document,H=Gc(sr.fromDom(B));return Dd(g).fold(()=>{const re=g.document.documentElement,be=re.clientWidth,Re=re.clientHeight;return Vi(H.left,H.top,be,Re)},re=>Vi(Math.max(re.pageLeft,H.left),Math.max(re.pageTop,H.top),re.width,re.height))},au=(r,g)=>Te(Oc(r),g),Zf=(r,g)=>{let B=[];return ye(Oc(r),H=>{g(H)&&(B=B.concat([H])),B=B.concat(Zf(H,g))}),B},Zl=(r,g)=>Rp(g,r),Jl=(r,g,B)=>ms(r,g,B).isSome(),Bd=(r,g)=>_l(r,g).isSome(),Qs=(r,g)=>Wc(r,g).isSome();class kc{constructor(g,B){this.node=g,this.rootNode=B,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(g){return this.node=this.findSibling(this.node,"firstChild","nextSibling",g),this.node}prev(g){return this.node=this.findSibling(this.node,"lastChild","previousSibling",g),this.node}prev2(g){return this.node=this.findPreviousNode(this.node,g),this.node}findSibling(g,B,H,re){if(g){if(!re&&g[B])return g[B];if(g!==this.rootNode){let be=g[H];if(be)return be;for(let Re=g.parentNode;Re&&Re!==this.rootNode;Re=Re.parentNode)if(be=Re[H],be)return be}}}findPreviousNode(g,B){if(g){const H=g.previousSibling;if(this.rootNode&&H===this.rootNode)return;if(H){if(!B){for(let be=H.lastChild;be;be=be.lastChild)if(!be.lastChild)return be}return H}const re=g.parentNode;if(re&&re!==this.rootNode)return re}}}const Iu="\uFEFF",Ea=" ",El=r=>r===Iu,Ol=r=>r.replace(/\uFEFF/g,""),Mi=/^[ \t\r\n]*$/,kf=r=>Mi.test(r),Ot=r=>{for(const g of r)if(!El(g))return!1;return!0},Mt=r=>" \f \v".indexOf(r)!==-1,Ft=r=>r===` +`||r==="\r",J=(r,g)=>g=0?Ft(r[g]):!1,le=(r,g=4,B=!0,H=!0)=>{const re=Ir(" ",g),be=r.replace(/\t/g,re);return Ie(be,(Ke,ct)=>Mt(ct)||ct===Ea?Ke.pcIsSpace||Ke.str===""&&B||Ke.str.length===be.length-1&&H||J(be,Ke.str.length+1)?{pcIsSpace:!1,str:Ke.str+Ea}:{pcIsSpace:!0,str:Ke.str+" "}:{pcIsSpace:Ft(ct),str:Ke.str+ct},{pcIsSpace:!1,str:""}).str},ie=r=>g=>!!g&&g.nodeType===r,V=r=>!!r&&!Object.getPrototypeOf(r),ne=ie(1),ge=r=>ne(r)&&iu(sr.fromDom(r)),xe=r=>ne(r)&&r.namespaceURI==="http://www.w3.org/2000/svg",Me=r=>{const g=r.toLowerCase();return B=>E(B)&&B.nodeName.toLowerCase()===g},Fe=r=>{const g=r.map(B=>B.toLowerCase());return B=>{if(B&&B.nodeName){const H=B.nodeName.toLowerCase();return ce(g,H)}return!1}},Je=(r,g)=>{const B=g.toLowerCase().split(" ");return H=>{if(ne(H)){const re=H.ownerDocument.defaultView;if(re)for(let be=0;beg=>ne(g)&&g.hasAttribute(r),dt=r=>ne(r)&&r.hasAttribute("data-mce-bogus"),mt=r=>ne(r)&&r.getAttribute("data-mce-bogus")==="all",Et=r=>ne(r)&&r.tagName==="TABLE",Vt=r=>g=>!!(ge(g)&&(g.contentEditable===r||g.getAttribute("data-mce-contenteditable")===r)),jt=Fe(["textarea","input"]),Nt=ie(3),cn=ie(4),sn=ie(7),xn=ie(8),pn=ie(9),Ln=ie(11),On=Me("br"),An=Me("img"),Sn=Vt("true"),rr=Vt("false"),Dr=Fe(["td","th"]),Pr=Fe(["td","th","caption"]),Zr=Fe(["video","audio","object","embed"]),Mo=Me("li"),$o=Me("details"),vo=Me("summary"),zo={skipBogus:!0,includeZwsp:!1,checkRootAsContent:!1},yi=(r,g,B)=>{const H=sr.fromDom(g),re=sr.fromDom(r),be=B.getWhitespaceElements();return Jl(re,Ke=>_t(be,la(Ke)),U(Fa,H))},Si=r=>ne(r)&&r.nodeName==="A"&&!r.hasAttribute("href")&&(r.hasAttribute("name")||r.hasAttribute("id")),Hr=(r,g)=>ne(r)&&_t(g.getNonEmptyElements(),r.nodeName),Lo=rt("data-mce-bookmark"),ki=r=>Lp(sr.fromDom(r)).exists(g=>!js(g)),Io=(r,g,B)=>kf(r.data)&&!yi(r,g,B),$i=(r,g,B,H)=>Nt(r)&&!Io(r,g,B)&&(!H.includeZwsp||!Ot(r.data)),Ui=(r,g,B,H)=>C(H.isContent)&&H.isContent(g)||Hr(g,r)||Lo(g)||Si(g)||$i(g,B,r,H)||rr(g)||Sn(g)&&ki(g),ba=(r,g,B)=>{const H={...zo,...B};if(H.checkRootAsContent&&Ui(r,g,g,H))return!1;let re=g.firstChild,be=0;if(!re)return!0;const Re=new kc(re,g);do{if(H.skipBogus&&ne(re)){const Ke=re.getAttribute("data-mce-bogus");if(Ke){re=Re.next(Ke==="all");continue}}if(xn(re)){re=Re.next(!0);continue}if(On(re)){be++,re=Re.next();continue}if(Ui(r,re,g,H))return!1;re=Re.next()}while(re);return be<=1},Pi=(r,g,B)=>ba(r,g.dom,{checkRootAsContent:!0,...B}),ds=(r,g,B)=>Ui(r,g,g,{includeZwsp:zo.includeZwsp,...B}),mr=r=>{let g=r;return{get:()=>g,set:re=>{g=re}}},bs=r=>{const g=mr(Y.none()),B=()=>g.get().each(r);return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(Ke))}}},Pl=r=>{const g=mr(Y.none()),B=()=>g.get().each(Ke=>clearInterval(Ke));return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(setInterval(Ke,r)))}}},Ys=()=>{const r=bs(k);return{...r,on:B=>r.get().each(B)}},hl=r=>{const g=r.toLowerCase();return g==="svg"?"svg":g==="math"?"math":"html"},hs=r=>hl(r)!=="html",Pa=r=>hs(r.nodeName),Rs=r=>hl(r.nodeName),Ls=["svg","math"],ol=()=>{const r=Ys(),g=()=>r.get().map(Rs).getOr("html");return{track:re=>(Pa(re)?r.set(re):r.get().exists(be=>!be.contains(re))&&r.clear(),g()),current:g,reset:()=>{r.clear()}}},Is="data-mce-block",Ds=r=>Te(nt(r),g=>!/[A-Z]/.test(g)),ec=r=>ve(Ds(r),g=>{const B=CSS.escape(g);return`${B}:`+ve(Ls,H=>`not(${H} ${B})`).join(":")}).join(","),Tc=(r,g)=>E(g.querySelector(r))?(g.setAttribute(Is,"true"),g.getAttribute("data-mce-selected")==="inline-boundary"&&g.removeAttribute("data-mce-selected"),!0):(g.removeAttribute(Is),!1),op=(r,g)=>{const B=ec(r.getTransparentElements()),H=ec(r.getBlockElements());return Te(g.querySelectorAll(B),re=>Tc(H,re))},ip=(r,g,B)=>{var H;const re=B?"lastChild":"firstChild";for(let be=g[re];be;be=be[re])if(ba(r,be,{checkRootAsContent:!0})){(H=be.parentNode)===null||H===void 0||H.removeChild(be);return}},Hs=(r,g,B)=>{const H=document.createRange(),re=g.parentNode;if(re){H.setStartBefore(g),H.setEndBefore(B);const be=H.extractContents();ip(r,be,!0),H.setStartAfter(B),H.setEndAfter(g);const Re=H.extractContents();ip(r,Re,!1),ba(r,be,{checkRootAsContent:!0})||re.insertBefore(be,g),ba(r,B,{checkRootAsContent:!0})||re.insertBefore(B,g),ba(r,Re,{checkRootAsContent:!0})||re.insertBefore(Re,g),re.removeChild(g)}},wh=(r,g,B)=>{const H=r.getBlockElements(),re=sr.fromDom(g),be=Ke=>la(Ke)in H,Re=Ke=>Fa(Ke,re);ye(Ld(B),Ke=>{ms(Ke,be,Re).each(ct=>{const kt=au(Ke,Wt=>be(Wt)&&!r.isValidChild(la(ct),la(Wt)));if(kt.length>0){const Wt=Lp(ct);ye(kt,Jt=>{ms(Jt,be,Re).each(ln=>{Hs(r,ln.dom,Jt.dom)})}),Wt.each(Jt=>op(r,Jt.dom))}})})},pd=(r,g,B)=>{ye([...B,...xm(r,g)?[g]:[]],H=>ye(Zl(sr.fromDom(H),H.nodeName.toLowerCase()),re=>{Cx(r,re.dom)&&yu(re)}))},qf=(r,g)=>{const B=op(r,g);wh(r,g,B),pd(r,g,B)},tc=(r,g)=>{if(E0(r,g)){const B=ec(r.getBlockElements());Tc(B,g)}},Wf=(r,g,B)=>{const H=be=>Fa(be,sr.fromDom(g)),re=Uh(sr.fromDom(B),H);Ze(re,re.length-2).filter(mc).fold(()=>qf(r,g),be=>qf(r,be.dom))},Rl=r=>r.hasAttribute(Is),cg=(r,g)=>_t(r.getTransparentElements(),g),E0=(r,g)=>ne(g)&&cg(r,g.nodeName),xm=(r,g)=>E0(r,g)&&Rl(g),Cx=(r,g)=>E0(r,g)&&!Rl(g),eh=(r,g)=>g.type===1&&cg(r,g.name)&&v(g.attr(Is)),Ax=tr().browser,Wg=r=>De(r,mc),Mx=r=>Ax.isFirefox()&&la(r)==="table"?Wg(Oc(r)).filter(g=>la(g)==="caption").bind(g=>Wg(Pu(g)).map(B=>{const H=B.dom.offsetTop,re=g.dom.offsetTop,be=g.dom.offsetHeight;return H<=re?-be:0})).getOr(0):0,k1=(r,g)=>r.children&&ce(r.children,g),oc=(r,g,B)=>{let H=0,re=0;const be=r.ownerDocument;if(B=B||r,g){if(B===r&&g.getBoundingClientRect&&pi(sr.fromDom(r),"position")==="static"){const Ke=g.getBoundingClientRect();return H=Ke.left+(be.documentElement.scrollLeft||r.scrollLeft)-be.documentElement.clientLeft,re=Ke.top+(be.documentElement.scrollTop||r.scrollTop)-be.documentElement.clientTop,{x:H,y:re}}let Re=g;for(;Re&&Re!==B&&Re.nodeType&&!k1(Re,B);){const Ke=Re;H+=Ke.offsetLeft||0,re+=Ke.offsetTop||0,Re=Ke.offsetParent}for(Re=g.parentNode;Re&&Re!==B&&Re.nodeType&&!k1(Re,B);)H-=Re.scrollLeft||0,re-=Re.scrollTop||0,Re=Re.parentNode;re+=Mx(sr.fromDom(g))}return{x:H,y:re}},_m=(r,g={})=>{let B=0;const H={},re=sr.fromDom(r),be=Bc(re),Re=pr=>{g.referrerPolicy=pr},Ke=pr=>{g.contentCssCors=pr},ct=pr=>{Ps(tp(re),pr)},kt=pr=>{const Tr=tp(re);xi(Tr,"#"+pr).each(ja)},Wt=pr=>Ct(H,pr).getOrThunk(()=>({id:"mce-u"+B++,passed:[],failed:[],count:0})),Jt=pr=>new Promise((Tr,wr)=>{let Ur;const wo=mo._addCacheSuffix(pr),jo=Wt(wo);H[wo]=jo,jo.count++;const di=(bi,Bi)=>{ye(bi,K),jo.status=Bi,jo.passed=[],jo.failed=[],Ur&&(Ur.onload=null,Ur.onerror=null,Ur=null)},lo=()=>di(jo.passed,2),eo=()=>di(jo.failed,3);if(Tr&&jo.passed.push(Tr),wr&&jo.failed.push(wr),jo.status===1)return;if(jo.status===2){lo();return}if(jo.status===3){eo();return}jo.status=1;const xo=sr.fromTag("link",be.dom);ef(xo,{rel:"stylesheet",type:"text/css",id:jo.id}),g.contentCssCors&&Es(xo,"crossOrigin","anonymous"),g.referrerPolicy&&Es(xo,"referrerpolicy",g.referrerPolicy),Ur=xo.dom,Ur.onload=lo,Ur.onerror=eo,ct(xo),Es(xo,"href",wo)}),ln=(pr,Tr)=>{const wr=Wt(pr);H[pr]=wr,wr.count++;const Ur=sr.fromTag("style",be.dom);ef(Ur,{rel:"stylesheet",type:"text/css",id:wr.id}),Ur.dom.innerHTML=Tr,ct(Ur)},kn=pr=>Promise.allSettled(ve(pr,wr=>Jt(wr).then($(wr)))).then(wr=>{const Ur=Se(wr,wo=>wo.status==="fulfilled");return Ur.fail.length>0?Promise.reject(ve(Ur.fail,wo=>wo.reason)):ve(Ur.pass,wo=>wo.value)}),Vn=pr=>{const Tr=mo._addCacheSuffix(pr);Ct(H,Tr).each(wr=>{--wr.count===0&&(delete H[Tr],kt(wr.id))})};return{load:Jt,loadRawCss:ln,loadAll:kn,unload:Vn,unloadRawCss:pr=>{Ct(H,pr).each(Tr=>{--Tr.count===0&&(delete H[pr],kt(Tr.id))})},unloadAll:pr=>{ye(pr,Tr=>{Vn(Tr)})},_setReferrerPolicy:Re,_setContentCssCors:Ke}},wm=(()=>{const r=new WeakMap;return{forElement:(B,H)=>{const be=of(B).dom;return Y.from(r.get(be)).getOrThunk(()=>{const Re=_m(be,H);return r.set(be,Re),Re})}}})(),ub=r=>r.nodeName.toLowerCase()==="span",Oh=(r,g)=>E(r)&&(ds(g,r)||g.isInline(r.nodeName.toLowerCase())),Ex=(r,g,B)=>{const H=new kc(r,g).prev(!1),re=new kc(r,g).next(!1),be=M(H)||Oh(H,B),Re=M(re)||Oh(re,B);return be&&Re},Tf=r=>ub(r)&&r.getAttribute("data-mce-type")==="bookmark",Hv=(r,g,B)=>Nt(r)&&r.data.length>0&&Ex(r,g,B),Om=r=>ne(r)?r.childNodes.length>0:!1,Sm=r=>Ln(r)||pn(r),ap=(r,g,B,H)=>{var re;const be=H||g;if(ne(g)&&Tf(g))return g;const Re=g.childNodes;for(let Ke=Re.length-1;Ke>=0;Ke--)ap(r,Re[Ke],B,be);if(ne(g)){const Ke=g.childNodes;Ke.length===1&&Tf(Ke[0])&&((re=g.parentNode)===null||re===void 0||re.insertBefore(Ke[0],g))}return!Sm(g)&&!ds(B,g)&&!Om(g)&&!Hv(g,be,B)&&r.remove(g),g},Bp=mo.makeMap,P0=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ug=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zv=/[<>&\"\']/g,R0=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,C_={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},sp={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},A_={"<":"<",">":">","&":"&",""":'"',"'":"'"},fb=r=>{const g=sr.fromTag("div").dom;return g.innerHTML=r,g.textContent||g.innerText||r},Fl=(r,g)=>{const B={};if(r){const H=r.split(",");g=g||10;for(let re=0;rer.replace(g?P0:ug,B=>sp[B]||B),Xg=r=>(""+r).replace(Zv,g=>sp[g]||g),Gg=(r,g)=>r.replace(g?P0:ug,B=>B.length>1?"&#"+((B.charCodeAt(0)-55296)*1024+(B.charCodeAt(1)-56320)+65536)+";":sp[B]||"&#"+B.charCodeAt(0)+";"),lp=(r,g,B)=>{const H=B||Yf;return r.replace(g?P0:ug,re=>sp[re]||H[re]||re)},up={encodeRaw:km,encodeAllRaw:Xg,encodeNumeric:Gg,encodeNamed:lp,getEncodeFunc:(r,g)=>{const B=Fl(g)||Yf,H=(Re,Ke)=>Re.replace(Ke?P0:ug,ct=>sp[ct]!==void 0?sp[ct]:B[ct]!==void 0?B[ct]:ct.length>1?"&#"+((ct.charCodeAt(0)-55296)*1024+(ct.charCodeAt(1)-56320)+65536)+";":"&#"+ct.charCodeAt(0)+";"),re=(Re,Ke)=>lp(Re,Ke,B),be=Bp(r.replace(/\+/g,","));return be.named&&be.numeric?H:be.named?g?re:lp:be.numeric?Gg:km},decode:r=>r.replace(R0,(g,B)=>B?(B.charAt(0).toLowerCase()==="x"?B=parseInt(B.substr(1),16):B=parseInt(B,10),B>65535?(B-=65536,String.fromCharCode(55296+(B>>10),56320+(B&1023))):C_[B]||String.fromCharCode(B)):A_[g]||Yf[g]||fb(g))},Xf=(r,g)=>(r=mo.trim(r),r?r.split(g||" "):[]),L0=r=>new RegExp("^"+r.replace(/([?+*])/g,".$1")+"$"),Px=r=>_(r)&&r.source&&Object.prototype.toString.call(r)==="[object RegExp]",zp=r=>{const g=B=>A(B)?ve(B,g):Px(B)?new RegExp(B.source,B.flags):_(B)?ht(B,g):B;return g(r)},Kg=r=>{const g=/^(~)?(.+)$/;return $e(Xf(r,","),B=>{const H=g.exec(B);if(H){const be=H[1]==="~"?"span":"div",Re=H[2];return[{cloneName:be,name:Re}]}else return[]})},M_=r=>Object.freeze(["id","accesskey","class","dir","lang","style","tabindex","title","role",...r!=="html4"?["contenteditable","contextmenu","draggable","dropzone","hidden","spellcheck","translate","itemprop","itemscope","itemtype"]:[],...r!=="html5-strict"?["xml:lang"]:[]]),T1=r=>{let g,B;g="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",B="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",r!=="html4"&&(g+=" article aside details dialog figure main header footer hgroup section nav "+"a ins del canvas map",B+=" audio canvas command data datalist mark meter output picture progress time wbr video ruby bdi keygen svg"),r!=="html5-strict"&&(B=[B,"acronym applet basefont big font strike tt"].join(" "),g=[g,"center dir isindex noframes"].join(" "));const H=[g,B].join(" ");return{blockContent:g,phrasingContent:B,flowContent:H}},Tm=r=>{const{blockContent:g,phrasingContent:B,flowContent:H}=T1(r),re=be=>Object.freeze(be.split(" "));return Object.freeze({blockContent:re(g),phrasingContent:re(B),flowContent:re(H)})},zd={html4:xt(()=>Tm("html4")),html5:xt(()=>Tm("html5")),"html5-strict":xt(()=>Tm("html5-strict"))},fp=(r,g)=>{const{blockContent:B,phrasingContent:H,flowContent:re}=zd[r]();return g==="blocks"?Y.some(B):g==="phrasing"?Y.some(H):g==="flow"?Y.some(re):Y.none()},I0=r=>{const g=M_(r),{phrasingContent:B,flowContent:H}=T1(r),re={},be=(ct,kt,Wt)=>{re[ct]={attributes:We(kt,$({})),attributesOrder:kt,children:We(Wt,$({}))}},Re=(ct,kt="",Wt="")=>{const Jt=Xf(Wt),ln=Xf(ct);let kn=ln.length;const Vn=[...g,...Xf(kt)];for(;kn--;)be(ln[kn],Vn.slice(),Jt)},Ke=(ct,kt)=>{const Wt=Xf(ct),Jt=Xf(kt);let ln=Wt.length;for(;ln--;){const kn=re[Wt[ln]];for(let Vn=0,Rn=Jt.length;Vn{Re(Wt,"",B)}),ye(Xf("center dir isindex noframes"),Wt=>{Re(Wt,"",H)})),Re("html","manifest","head body"),Re("head","","base command link meta noscript script style title"),Re("title hr noscript br"),Re("base","href target"),Re("link","href rel media hreflang type sizes hreflang"),Re("meta","name http-equiv content charset"),Re("style","media type scoped"),Re("script","src async defer type charset"),Re("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",H),Re("dd div","",H),Re("address dt caption","",r==="html4"?B:H),Re("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",B),Re("blockquote","cite",H),Re("ol","reversed start type","li"),Re("ul","","li"),Re("li","value",H),Re("dl","","dt dd"),Re("a","href target rel media hreflang type",r==="html4"?B:H),Re("q","cite",B),Re("ins del","cite datetime",H),Re("img","src sizes srcset alt usemap ismap width height"),Re("iframe","src name width height",H),Re("embed","src type width height"),Re("object","data type typemustmatch name usemap form width height",[H,"param"].join(" ")),Re("param","name value"),Re("map","name",[H,"area"].join(" ")),Re("area","alt coords shape href target rel media hreflang type"),Re("table","border","caption colgroup thead tfoot tbody tr"+(r==="html4"?" col":"")),Re("colgroup","span","col"),Re("col","span"),Re("tbody thead tfoot","","tr"),Re("tr","","td th"),Re("td","colspan rowspan headers",H),Re("th","colspan rowspan headers scope abbr",H),Re("form","accept-charset action autocomplete enctype method name novalidate target",H),Re("fieldset","disabled form name",[H,"legend"].join(" ")),Re("label","form for",B),Re("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Re("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",r==="html4"?H:B),Re("select","disabled form multiple name required size","option optgroup"),Re("optgroup","disabled label","option"),Re("option","disabled label selected value"),Re("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Re("menu","type label",[H,"li"].join(" ")),Re("noscript","",H),r!=="html4"&&(Re("wbr"),Re("ruby","",[B,"rt rp"].join(" ")),Re("figcaption","",H),Re("mark rt rp bdi","",B),Re("summary","",[B,"h1 h2 h3 h4 h5 h6"].join(" ")),Re("canvas","width height",H),Re("data","value",B),Re("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[H,"track source"].join(" ")),Re("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[H,"track source"].join(" ")),Re("picture","","img source"),Re("source","src srcset type media sizes"),Re("track","kind src srclang label default"),Re("datalist","",[B,"option"].join(" ")),Re("article section nav aside main header footer","",H),Re("hgroup","","h1 h2 h3 h4 h5 h6"),Re("figure","",[H,"figcaption"].join(" ")),Re("time","datetime",B),Re("dialog","open",H),Re("command","type label icon disabled checked radiogroup command"),Re("output","for form name",B),Re("progress","value max",B),Re("meter","value min max low high optimum",B),Re("details","open",[H,"summary"].join(" ")),Re("keygen","autofocus challenge disabled form keytype name"),be("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),r!=="html5-strict"&&(Ke("script","language xml:space"),Ke("style","xml:space"),Ke("object","declare classid code codebase codetype archive standby align border hspace vspace"),Ke("embed","align name hspace vspace"),Ke("param","valuetype type"),Ke("a","charset name rev shape coords"),Ke("br","clear"),Ke("applet","codebase archive code object alt name width height align hspace vspace"),Ke("img","name longdesc align border hspace vspace"),Ke("iframe","longdesc frameborder marginwidth marginheight scrolling align"),Ke("font basefont","size color face"),Ke("input","usemap align"),Ke("select"),Ke("textarea"),Ke("h1 h2 h3 h4 h5 h6 div p legend caption","align"),Ke("ul","type compact"),Ke("li","type"),Ke("ol dl menu dir","compact"),Ke("pre","width xml:space"),Ke("hr","align noshade size width"),Ke("isindex","prompt"),Ke("table","summary width frame rules cellspacing cellpadding align bgcolor"),Ke("col","width align char charoff valign"),Ke("colgroup","width align char charoff valign"),Ke("thead","align char charoff valign"),Ke("tr","align char charoff valign bgcolor"),Ke("th","axis align char charoff valign nowrap bgcolor width height"),Ke("form","accept"),Ke("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),Ke("tfoot","align char charoff valign"),Ke("tbody","align char charoff valign"),Ke("area","nohref"),Ke("body","background bgcolor text link vlink alink")),r!=="html4"&&(Ke("input button select textarea","autofocus"),Ke("input textarea","placeholder"),Ke("a","download"),Ke("link script img","crossorigin"),Ke("img","loading"),Ke("iframe","sandbox seamless allow allowfullscreen loading referrerpolicy")),r!=="html4"&&ye([re.video,re.audio],ct=>{delete ct.children.audio,delete ct.children.video}),ye(Xf("a form meter progress dfn"),ct=>{re[ct]&&delete re[ct].children[ct]}),delete re.caption.children.table,delete re.script,re},E_=r=>r==="-"?"remove":"add",Jg=r=>{const g=/^(@?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)$/;return Y.from(g.exec(r)).map(B=>({preset:B[1]==="@",name:B[2]}))},P_=r=>{const g=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return $e(Xf(r,","),B=>{const H=g.exec(B);if(H){const re=H[1],be=re?E_(re):"replace",Re=H[2],Ke=$e(Xf(H[3],"|"),ct=>Jg(ct).toArray());return[{operation:be,name:Re,validChildren:Ke}]}else return[]})},C1=(r,g)=>{const B=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,H=/[*?+]/,{attributes:re,attributesOrder:be}=g;return ye(Xf(r,"|"),Re=>{const Ke=B.exec(Re);if(Ke){const ct={},kt=Ke[1],Wt=Ke[2].replace(/[\\:]:/g,":"),Jt=Ke[3],ln=Ke[4];if(kt==="!"&&(g.attributesRequired=g.attributesRequired||[],g.attributesRequired.push(Wt),ct.required=!0),kt==="-"){delete re[Wt],be.splice(mo.inArray(be,Wt),1);return}if(Jt&&(Jt==="="?(g.attributesDefault=g.attributesDefault||[],g.attributesDefault.push({name:Wt,value:ln}),ct.defaultValue=ln):Jt==="~"?(g.attributesForced=g.attributesForced||[],g.attributesForced.push({name:Wt,value:ln}),ct.forcedValue=ln):Jt==="<"&&(ct.validValues=mo.makeMap(ln,"?"))),H.test(Wt)){const kn=ct;g.attributePatterns=g.attributePatterns||[],kn.pattern=L0(Wt),g.attributePatterns.push(kn)}else re[Wt]||be.push(Wt),re[Wt]=ct}})},zO=(r,g)=>{Ge(r.attributes,(B,H)=>{g.attributes[H]=B}),g.attributesOrder.push(...r.attributesOrder)},xu=(r,g)=>{const B=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return $e(Xf(g,","),H=>{const re=B.exec(H);if(re){const be=re[1],Re=re[2],Ke=re[3],ct=re[4],kt=re[5],Wt={attributes:{},attributesOrder:[]};if(r.each(Jt=>zO(Jt,Wt)),be==="#"?Wt.paddEmpty=!0:be==="-"&&(Wt.removeEmpty=!0),ct==="!"&&(Wt.removeEmptyAttrs=!0),kt&&C1(kt,Wt),Ke&&(Wt.outputName=Re),Re==="@")if(r.isNone())r=Y.some(Wt);else return[];return[Ke?{name:Re,element:Wt,aliasName:Ke}:{name:Re,element:Wt}]}else return[]})},Cm={},D0=mo.makeMap,Sa=mo.each,Ri=mo.extend,Fp=mo.explode,qv=(r,g={})=>{const B=D0(r," ",D0(r.toUpperCase()," "));return Ri(B,g)},hb=r=>qv("td th li dt dd figcaption caption details summary",r.getTextBlockElements()),A1=(r,g)=>{if(r){const B={};return v(r)&&(r={"*":r}),Sa(r,(H,re)=>{B[re]=B[re.toUpperCase()]=g==="map"?D0(H,/[, ]/):Fp(H,/[, ]/)}),B}else return},Np=(r={})=>{var g;const B={},H={};let re=[];const be={},Re={},Ke=(zi,ss,Rc)=>{const cu=r[zi];if(cu)return D0(cu,/[, ]/,D0(cu.toUpperCase(),/[, ]/));{let Nu=Cm[zi];return Nu||(Nu=qv(ss,Rc),Cm[zi]=Nu),Nu}},ct=(g=r.schema)!==null&&g!==void 0?g:"html5",kt=I0(ct);r.verify_html===!1&&(r.valid_elements="*[*]");const Wt=A1(r.valid_styles),Jt=A1(r.invalid_styles,"map"),ln=A1(r.valid_classes,"map"),kn=Ke("whitespace_elements","pre script noscript style textarea video audio iframe object code"),Vn=Ke("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),Rn=Ke("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),qn=Ke("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),pr="td th iframe video audio object script code",Tr=Ke("non_empty_elements",pr+" pre svg textarea summary",Rn),wr=Ke("move_caret_before_on_enter_elements",pr+" table",Rn),Ur="h1 h2 h3 h4 h5 h6",wo=Ke("text_block_elements",Ur+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),jo=Ke("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",wo),di=Ke("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),lo=Ke("transparent_elements","a ins del canvas map"),eo=Ke("wrap_block_elements","pre "+Ur);Sa("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),zi=>{Re[zi]=new RegExp("]*>","gi")});const xo=zi=>{const ss=Y.from(B["@"]),Rc=/[*?+]/;ye(xu(ss,zi??""),({name:cu,element:Nu,aliasName:nd})=>{if(nd&&(B[nd]=Nu),Rc.test(cu)){const Ou=Nu;Ou.pattern=L0(cu),re.push(Ou)}else B[cu]=Nu})},bi=zi=>{re=[],ye(nt(B),ss=>{delete B[ss]}),xo(zi)},Bi=(zi,ss)=>{var Rc,cu;delete Cm.text_block_elements,delete Cm.block_elements;const Nu=ss.extends?!om(ss.extends):!1,nd=ss.extends;if(H[zi]=nd?H[nd]:{},be[zi]=nd??zi,Tr[zi.toUpperCase()]={},Tr[zi]={},Nu||(jo[zi.toUpperCase()]={},jo[zi]={}),nd&&!B[zi]&&B[nd]){const Ou=zp(B[nd]);delete Ou.removeEmptyAttrs,delete Ou.removeEmpty,B[zi]=Ou}else B[zi]={attributesOrder:[],attributes:{}};if(A(ss.attributes)){const Ou=fh=>{Su.attributesOrder.push(fh),Su.attributes[fh]={}},Su=(Rc=B[zi])!==null&&Rc!==void 0?Rc:{};delete Su.attributesDefault,delete Su.attributesForced,delete Su.attributePatterns,delete Su.attributesRequired,Su.attributesOrder=[],Su.attributes={},ye(ss.attributes,fh=>{const Dg=M_(ct);Jg(fh).each(({preset:Xm,name:x0})=>{Xm?x0==="global"&&ye(Dg,Ou):Ou(x0)})}),B[zi]=Su}if(R(ss.padEmpty)){const Ou=(cu=B[zi])!==null&&cu!==void 0?cu:{};Ou.paddEmpty=ss.padEmpty,B[zi]=Ou}if(A(ss.children)){const Ou={},Su=Dg=>{Ou[Dg]={}},fh=Dg=>{fp(ct,Dg).each(Xm=>{ye(Xm,Su)})};ye(ss.children,Dg=>{Jg(Dg).each(({preset:Xm,name:x0})=>{Xm?fh(x0):Su(x0)})}),H[zi]=Ou}nd&&Ge(H,(Ou,Su)=>{Ou[nd]&&(H[Su]=Ou=Ri({},H[Su]),Ou[zi]=Ou[nd])})},$a=zi=>{ye(Kg(zi??""),({name:ss,cloneName:Rc})=>{Bi(ss,{extends:Rc})})},Ia=zi=>{_(zi)?Ge(zi,(ss,Rc)=>Bi(Rc,ss)):v(zi)&&$a(zi)},Us=zi=>{ye(P_(zi??""),({operation:ss,name:Rc,validChildren:cu})=>{const Nu=ss==="replace"?{"#comment":{}}:H[Rc],nd=Su=>{ss==="remove"?delete Nu[Su]:Nu[Su]={}},Ou=Su=>{fp(ct,Su).each(fh=>{ye(fh,nd)})};ye(cu,({preset:Su,name:fh})=>{Su?Ou(fh):nd(fh)}),H[Rc]=Nu})},sl=zi=>{const ss=B[zi];if(ss)return ss;let Rc=re.length;for(;Rc--;){const cu=re[Rc];if(cu.pattern.test(zi))return cu}},nu=()=>{r.valid_elements?(bi(r.valid_elements),Sa(kt,(zi,ss)=>{H[ss]=zi.children})):(Sa(kt,(zi,ss)=>{B[ss]={attributes:zi.attributes,attributesOrder:zi.attributesOrder},H[ss]=zi.children}),Sa(Xf("strong/b em/i"),zi=>{const ss=Xf(zi,"/");B[ss[1]].outputName=ss[0]}),Sa(di,(zi,ss)=>{B[ss]&&(r.padd_empty_block_inline_children&&(B[ss].paddInEmptyBlock=!0),B[ss].removeEmpty=!0)}),Sa(Xf("ol ul blockquote a table tbody"),zi=>{B[zi]&&(B[zi].removeEmpty=!0)}),Sa(Xf("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),zi=>{B[zi]&&(B[zi].paddEmpty=!0)}),Sa(Xf("span"),zi=>{B[zi].removeEmptyAttrs=!0})),delete B.svg,Ia(r.custom_elements),Us(r.valid_children),xo(r.extended_valid_elements),Us("+ol[ul|ol],+ul[ul|ol]"),Sa({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(zi,ss)=>{B[ss]&&(B[ss].parentsRequired=Xf(zi))}),r.invalid_elements&&Sa(Fp(r.invalid_elements),zi=>{B[zi]&&delete B[zi]}),sl("span")||xo("span[!data-mce-type|*]")},jd=$(Wt),vl=$(Jt),Wo=$(ln),Ei=$(qn),ws=$(jo),ii=$(wo),Qi=$(di),Qa=$(Object.seal(Rn)),ci=$(Vn),Va=$(Tr),Xa=$(wr),Df=$(kn),el=$(lo),Yu=$(eo),Rg=$(Object.seal(Re)),m1=(zi,ss)=>{const Rc=H[zi.toLowerCase()];return!!(Rc&&Rc[ss.toLowerCase()])},Dh=(zi,ss)=>{const Rc=sl(zi);if(Rc)if(ss){if(Rc.attributes[ss])return!0;const cu=Rc.attributePatterns;if(cu){let Nu=cu.length;for(;Nu--;)if(cu[Nu].pattern.test(ss))return!0}}else return!0;return!1},om=zi=>_t(ws(),zi),Lg=zi=>!xr(zi,"#")&&Dh(zi)&&!om(zi),xp=zi=>_t(Yu(),zi)||Lg(zi),Ig=$(be);return nu(),{type:ct,children:H,elements:B,getValidStyles:jd,getValidClasses:Wo,getBlockElements:ws,getInvalidStyles:vl,getVoidElements:Qa,getTextBlockElements:ii,getTextInlineElements:Qi,getBoolAttrs:Ei,getElementRule:sl,getSelfClosingElements:ci,getNonEmptyElements:Va,getMoveCaretBeforeOnEnterElements:Xa,getWhitespaceElements:Df,getTransparentElements:el,getSpecialElements:Rg,isValidChild:m1,isValid:Dh,isBlock:om,isInline:Lg,isWrapper:xp,getCustomElements:Ig,addValidElements:xo,setValidElements:bi,addCustomElements:Ia,addValidChildren:Us}},pl=r=>({value:FO(r)}),FO=r=>In(r,"#").toUpperCase(),Rx=r=>{const g=r.toString(16);return(g.length===1?"0"+g:g).toUpperCase()},B0=r=>{const g=Rx(r.red)+Rx(r.green)+Rx(r.blue);return pl(g)},fo=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,e0=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,_S=(r,g,B,H)=>({red:r,green:g,blue:B,alpha:H}),fg=(r,g,B,H)=>{const re=parseInt(r,10),be=parseInt(g,10),Re=parseInt(B,10),Ke=parseFloat(H);return _S(re,be,Re,Ke)},R_=r=>fo.test(r)?"rgb":e0.test(r)?"rgba":"other",Fd=r=>{const g=fo.exec(r);if(g!==null)return Y.some(fg(g[1],g[2],g[3],"1"));const B=e0.exec(r);return B!==null?Y.some(fg(B[1],B[2],B[3],B[4])):Y.none()},L_=r=>`rgba(${r.red},${r.green},${r.blue},${r.alpha})`,Am=r=>Fd(r).map(B0).map(g=>"#"+g.value).getOr(r),I_=(r={},g)=>{const B=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,H=/\s*([^:]+):\s*([^;]+);?/g,re=/\s+$/,be={};let Re,Ke;const ct=Iu;g&&(Re=g.getValidStyles(),Ke=g.getInvalidStyles());const kt=(`\\" \\' \\; \\: ; : `+ct).split(" ");for(let Jt=0;Jt{const ln={};let kn=!1;const Vn=r.url_converter,Rn=r.url_converter_scope||Wt,qn=(lo,eo,xo)=>{const bi=ln[lo+"-top"+eo];if(!bi)return;const Bi=ln[lo+"-right"+eo];if(!Bi)return;const $a=ln[lo+"-bottom"+eo];if(!$a)return;const Ia=ln[lo+"-left"+eo];if(!Ia)return;const Us=[bi,Bi,$a,Ia];let sl=Us.length-1;for(;sl--&&Us[sl]===Us[sl+1];);sl>-1&&xo||(ln[lo+eo]=sl===-1?Us[0]:Us.join(" "),delete ln[lo+"-top"+eo],delete ln[lo+"-right"+eo],delete ln[lo+"-bottom"+eo],delete ln[lo+"-left"+eo])},pr=lo=>{const eo=ln[lo];if(!eo)return;const xo=eo.indexOf(",")>-1?[eo]:eo.split(" ");let bi=xo.length;for(;bi--;)if(xo[bi]!==xo[0])return!1;return ln[lo]=xo[0],!0},Tr=(lo,eo,xo,bi)=>{pr(eo)&&pr(xo)&&pr(bi)&&(ln[lo]=ln[eo]+" "+ln[xo]+" "+ln[bi],delete ln[eo],delete ln[xo],delete ln[bi])},wr=lo=>(kn=!0,be[lo]),Ur=(lo,eo)=>(kn&&(lo=lo.replace(/\uFEFF[0-9]/g,xo=>be[xo])),eo||(lo=lo.replace(/\\([\'\";:])/g,"$1")),lo),wo=lo=>String.fromCharCode(parseInt(lo.slice(1),16)),jo=lo=>lo.replace(/\\[0-9a-f]+/gi,wo),di=(lo,eo,xo,bi,Bi,$a)=>{if(Bi=Bi||$a,Bi)return Bi=Ur(Bi),"'"+Bi.replace(/\'/g,"\\'")+"'";if(eo=Ur(eo||xo||bi||""),!r.allow_script_urls){const Ia=eo.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(Ia)||!r.allow_svg_data_urls&&/^data:image\/svg/i.test(Ia))return""}return Vn&&(eo=Vn.call(Rn,eo,"style")),"url('"+eo.replace(/\'/g,"\\'")+"')"};if(Jt){Jt=Jt.replace(/[\u0000-\u001F]/g,""),Jt=Jt.replace(/\\[\"\';:\uFEFF]/g,wr).replace(/\"[^\"]+\"|\'[^\']+\'/g,eo=>eo.replace(/[;:]/g,wr));let lo;for(;lo=H.exec(Jt);){H.lastIndex=lo.index+lo[0].length;let eo=lo[1].replace(re,"").toLowerCase(),xo=lo[2].replace(re,"");if(eo&&xo){if(eo=jo(eo),xo=jo(xo),eo.indexOf(ct)!==-1||eo.indexOf('"')!==-1||!r.allow_script_urls&&(eo==="behavior"||/expression\s*\(|\/\*|\*\//.test(xo)))continue;eo==="font-weight"&&xo==="700"?xo="bold":(eo==="color"||eo==="background-color")&&(xo=xo.toLowerCase()),R_(xo)==="rgb"&&Fd(xo).each(bi=>{xo=Am(L_(bi)).toLowerCase()}),xo=xo.replace(B,di),ln[eo]=kn?Ur(xo,!0):xo}}qn("border","",!0),qn("border","-width"),qn("border","-color"),qn("border","-style"),qn("padding",""),qn("margin",""),Tr("border","border-width","border-style","border-color"),ln.border==="medium none"&&delete ln.border,ln["border-image"]==="none"&&delete ln["border-image"]}return ln},serialize:(Jt,ln)=>{let kn="";const Vn=(qn,pr)=>{const Tr=pr[qn];if(Tr)for(let wr=0,Ur=Tr.length;wr0?" ":"")+wo+": "+jo+";")}},Rn=(qn,pr)=>{if(!Ke||!pr)return!0;let Tr=Ke["*"];return Tr&&Tr[qn]?!1:(Tr=Ke[pr],!(Tr&&Tr[qn]))};return ln&&Re?(Vn("*",Re),Vn(ln,Re)):Ge(Jt,(qn,pr)=>{qn&&Rn(pr,ln)&&(kn+=(kn.length>0?" ":"")+pr+": "+qn+";")}),kn}};return Wt},Wv={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Ll=r=>r instanceof Event||C(r.initEvent),Sh=r=>r.isDefaultPrevented===q||r.isDefaultPrevented===oe,NO=r=>T(r.preventDefault)||Ll(r),$p=(r,g)=>{const B=g??{};for(const H in r)_t(Wv,H)||(B[H]=r[H]);return E(r.composedPath)&&(B.composedPath=()=>r.composedPath()),E(r.getModifierState)&&(B.getModifierState=H=>r.getModifierState(H)),E(r.getTargetRanges)&&(B.getTargetRanges=()=>r.getTargetRanges()),B},Lx=(r,g,B,H)=>{var re;const be=$p(g,H);return be.type=r,T(be.target)&&(be.target=(re=be.srcElement)!==null&&re!==void 0?re:B),NO(g)&&(be.preventDefault=()=>{be.defaultPrevented=!0,be.isDefaultPrevented=q,C(g.preventDefault)&&g.preventDefault()},be.stopPropagation=()=>{be.cancelBubble=!0,be.isPropagationStopped=q,C(g.stopPropagation)&&g.stopPropagation()},be.stopImmediatePropagation=()=>{be.isImmediatePropagationStopped=q,be.stopPropagation()},Sh(be)||(be.isDefaultPrevented=be.defaultPrevented===!0?q:oe,be.isPropagationStopped=be.cancelBubble===!0?q:oe,be.isImmediatePropagationStopped=oe)),be},Yv="mce-data-",Xv=/^(?:mouse|contextmenu)|click/,pb=(r,g,B,H)=>{r.addEventListener(g,B,H||!1)},Cf=(r,g,B,H)=>{r.removeEventListener(g,B,H||!1)},$O=r=>E(r)&&Xv.test(r.type),M1=(r,g)=>{const B=Lx(r.type,r,document,g);if($O(r)&&M(r.pageX)&&!M(r.clientX)){const H=B.target.ownerDocument||document,re=H.documentElement,be=H.body,Re=B;Re.pageX=r.clientX+(re&&re.scrollLeft||be&&be.scrollLeft||0)-(re&&re.clientLeft||be&&be.clientLeft||0),Re.pageY=r.clientY+(re&&re.scrollTop||be&&be.scrollTop||0)-(re&&re.clientTop||be&&be.clientTop||0)}return B},E1=(r,g,B)=>{const H=r.document,re={type:"ready"};if(B.domLoaded){g(re);return}const be=()=>H.readyState==="complete"||H.readyState==="interactive"&&H.body,Re=()=>{Cf(r,"DOMContentLoaded",Re),Cf(r,"load",Re),B.domLoaded||(B.domLoaded=!0,g(re)),r=null};be()?Re():pb(r,"DOMContentLoaded",Re),B.domLoaded||pb(r,"load",Re)};class md{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Yv+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(g,B,H,re){const be=this;let Re;const Ke=window,ct=ln=>{be.executeHandlers(M1(ln||Ke.event),kt)};if(!g||Nt(g)||xn(g))return H;let kt;g[be.expando]?kt=g[be.expando]:(kt=be.count++,g[be.expando]=kt,be.events[kt]={}),re=re||g;const Wt=B.split(" ");let Jt=Wt.length;for(;Jt--;){let ln=Wt[Jt],kn=ct,Vn=!1,Rn=!1;if(ln==="DOMContentLoaded"&&(ln="ready"),be.domLoaded&&ln==="ready"&&g.readyState==="complete"){H.call(re,M1({type:ln}));continue}!be.hasFocusIn&&(ln==="focusin"||ln==="focusout")&&(Vn=!0,Rn=ln==="focusin"?"focus":"blur",kn=qn=>{const pr=M1(qn||Ke.event);pr.type=pr.type==="focus"?"focusin":"focusout",be.executeHandlers(pr,kt)}),Re=be.events[kt][ln],Re?ln==="ready"&&be.domLoaded?H(M1({type:ln})):Re.push({func:H,scope:re}):(be.events[kt][ln]=Re=[{func:H,scope:re}],Re.fakeName=Rn,Re.capture=Vn,Re.nativeHandler=kn,ln==="ready"?E1(g,kn,be):pb(g,Rn||ln,kn,Vn))}return g=Re=null,H}unbind(g,B,H){if(!g||Nt(g)||xn(g))return this;const re=g[this.expando];if(re){let be=this.events[re];if(B){const Re=B.split(" ");let Ke=Re.length;for(;Ke--;){const ct=Re[Ke],kt=be[ct];if(kt){if(H){let Wt=kt.length;for(;Wt--;)if(kt[Wt].func===H){const Jt=kt.nativeHandler,ln=kt.fakeName,kn=kt.capture,Vn=kt.slice(0,Wt).concat(kt.slice(Wt+1));Vn.nativeHandler=Jt,Vn.fakeName=ln,Vn.capture=kn,be[ct]=Vn}}(!H||kt.length===0)&&(delete be[ct],Cf(g,kt.fakeName||ct,kt.nativeHandler,kt.capture))}}}else Ge(be,(Re,Ke)=>{Cf(g,Re.fakeName||Ke,Re.nativeHandler,Re.capture)}),be={};for(const Re in be)if(_t(be,Re))return this;delete this.events[re];try{delete g[this.expando]}catch{g[this.expando]=null}}return this}fire(g,B,H){return this.dispatch(g,B,H)}dispatch(g,B,H){if(!g||Nt(g)||xn(g))return this;const re=M1({type:B,target:g},H);do{const be=g[this.expando];be&&this.executeHandlers(re,be),g=g.parentNode||g.ownerDocument||g.defaultView||g.parentWindow}while(g&&!re.isPropagationStopped());return this}clean(g){if(!g||Nt(g)||xn(g))return this;if(g[this.expando]&&this.unbind(g),g.getElementsByTagName||(g=g.document),g&&g.getElementsByTagName){this.unbind(g);const B=g.getElementsByTagName("*");let H=B.length;for(;H--;)g=B[H],g[this.expando]&&this.unbind(g)}return this}destroy(){this.events={}}cancel(g){return g&&(g.preventDefault(),g.stopImmediatePropagation()),!1}executeHandlers(g,B){const H=this.events[B],re=H&&H[g.type];if(re)for(let be=0,Re=re.length;be{T(B)||B===""?gc(r,g):Es(r,g,B)},kh=r=>r.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),Bo=(r,g)=>{let B=0;if(r)for(let H=r.nodeType,re=r.previousSibling;re;re=re.previousSibling){const be=re.nodeType;g&&Nt(re)&&(be===H||!re.data.length)||(B++,H=be)}return B},Ix=(r,g)=>{const B=uc(g,"style"),H=r.serialize(r.parse(B),la(g));Gf(g,B_,H)},lf=(r,g)=>L(r)?_t(Gv,g)?r+"":r+"px":r,mb=(r,g,B)=>{const H=kh(g);T(B)||B===""?Yc(r,H):Ml(r,H,lf(B,H))},gd=(r,g,B)=>{const H=g.keep_values,re={set:(Re,Ke,ct)=>{const kt=sr.fromDom(Re);C(g.url_converter)&&E(Ke)&&(Ke=g.url_converter.call(g.url_converter_scope||B(),String(Ke),ct,Re));const Wt="data-mce-"+ct;Gf(kt,Wt,Ke),Gf(kt,ct,Ke)},get:(Re,Ke)=>{const ct=sr.fromDom(Re);return uc(ct,"data-mce-"+Ke)||uc(ct,Ke)}},be={style:{set:(Re,Ke)=>{const ct=sr.fromDom(Re);H&&Gf(ct,B_,Ke),gc(ct,"style"),v(Ke)&&Hi(ct,r.parse(Ke))},get:Re=>{const Ke=sr.fromDom(Re),ct=uc(Ke,B_)||uc(Ke,"style");return r.serialize(r.parse(ct),la(Ke))}}};return H&&(be.href=be.src=re),be},Nl=(r,g={})=>{const B={},H=window,re={};let be=0;const Re=!0,Ke=!0,ct=wm.forElement(sr.fromDom(r),{contentCssCors:g.contentCssCors,referrerPolicy:g.referrerPolicy}),kt=[],Wt=g.schema?g.schema:Np({}),Jt=I_({url_converter:g.url_converter,url_converter_scope:g.url_converter_scope},g.schema),ln=g.ownEvents?new md:md.Event,kn=Wt.getBlockElements(),Vn=Yr=>v(Yr)?_t(kn,Yr):ne(Yr)&&(_t(kn,Yr.nodeName)||xm(Wt,Yr)),Rn=Yr=>Yr&&r&&v(Yr)?r.getElementById(Yr):Yr,qn=Yr=>{const Gr=Rn(Yr);return E(Gr)?sr.fromDom(Gr):null},pr=(Yr,Gr,Xo="")=>{let Vo;const Gi=qn(Yr);if(E(Gi)&&mc(Gi)){const ts=q2[Gr];ts&&ts.get?Vo=ts.get(Gi.dom,Gr):Vo=uc(Gi,Gr)}return E(Vo)?Vo:Xo},Tr=Yr=>{const Gr=Rn(Yr);return T(Gr)?[]:Gr.attributes},wr=(Yr,Gr,Xo)=>{Ei(Yr,Vo=>{if(ne(Vo)){const Gi=sr.fromDom(Vo),ts=Xo===""?null:Xo,Lc=uc(Gi,Gr),_0=q2[Gr];_0&&_0.set?_0.set(Gi.dom,ts,Gr):Gf(Gi,Gr,ts),Lc!==ts&&g.onSetAttrib&&g.onSetAttrib({attrElm:Gi.dom,attrName:Gr,attrValue:ts})}})},Ur=(Yr,Gr)=>Yr.cloneNode(Gr),wo=()=>g.root_element||r.body,jo=Yr=>{const Gr=fa(Yr);return{x:Gr.x,y:Gr.y,w:Gr.width,h:Gr.height}},di=(Yr,Gr)=>oc(r.body,Rn(Yr),Gr),lo=(Yr,Gr,Xo)=>{Ei(Yr,Vo=>{const Gi=sr.fromDom(Vo);mb(Gi,Gr,Xo),g.update_styles&&Ix(Jt,Gi)})},eo=(Yr,Gr)=>{Ei(Yr,Xo=>{const Vo=sr.fromDom(Xo);Ge(Gr,(Gi,ts)=>{mb(Vo,ts,Gi)}),g.update_styles&&Ix(Jt,Vo)})},xo=(Yr,Gr,Xo)=>{const Vo=Rn(Yr);if(!(T(Vo)||!ge(Vo)&&!xe(Vo)))return Xo?pi(sr.fromDom(Vo),kh(Gr)):(Gr=Gr.replace(/-(\D)/g,(Gi,ts)=>ts.toUpperCase()),Gr==="float"&&(Gr="cssFloat"),Vo.style?Vo.style[Gr]:void 0)},bi=Yr=>{const Gr=Rn(Yr);if(!Gr)return{w:0,h:0};let Xo=xo(Gr,"width"),Vo=xo(Gr,"height");return(!Xo||Xo.indexOf("px")===-1)&&(Xo="0"),(!Vo||Vo.indexOf("px")===-1)&&(Vo="0"),{w:parseInt(Xo,10)||Gr.offsetWidth||Gr.clientWidth,h:parseInt(Vo,10)||Gr.offsetHeight||Gr.clientHeight}},Bi=Yr=>{const Gr=Rn(Yr),Xo=di(Gr),Vo=bi(Gr);return{x:Xo.x,y:Xo.y,w:Vo.w,h:Vo.h}},$a=(Yr,Gr)=>{if(!Yr)return!1;const Xo=A(Yr)?Yr:[Yr];return de(Xo,Vo=>wf(sr.fromDom(Vo),Gr))},Ia=(Yr,Gr,Xo,Vo)=>{const Gi=[];let ts=Rn(Yr);Vo=Vo===void 0;const Lc=Xo||(wo().nodeName!=="BODY"?wo().parentNode:null);if(v(Gr))if(Gr==="*")Gr=ne;else{const _0=Gr;Gr=wA=>$a(wA,_0)}for(;ts&&!(ts===Lc||T(ts.nodeType)||pn(ts)||Ln(ts));){if(!Gr||Gr(ts))if(Vo)Gi.push(ts);else return[ts];ts=ts.parentNode}return Vo?Gi:null},Us=(Yr,Gr,Xo)=>{const Vo=Ia(Yr,Gr,Xo,!1);return Vo&&Vo.length>0?Vo[0]:null},sl=(Yr,Gr,Xo)=>{let Vo=Gr;if(Yr){v(Gr)&&(Vo=Gi=>$a(Gi,Gr));for(let Gi=Yr[Xo];Gi;Gi=Gi[Xo])if(C(Vo)&&Vo(Gi))return Gi}return null},nu=(Yr,Gr)=>sl(Yr,Gr,"nextSibling"),jd=(Yr,Gr)=>sl(Yr,Gr,"previousSibling"),vl=Yr=>C(Yr.querySelectorAll),Wo=(Yr,Gr)=>{var Xo,Vo;const Gi=(Vo=(Xo=Rn(Gr))!==null&&Xo!==void 0?Xo:g.root_element)!==null&&Vo!==void 0?Vo:r;return vl(Gi)?Ee(Gi.querySelectorAll(Yr)):[]},Ei=function(Yr,Gr,Xo){const Vo=Xo??this;if(A(Yr)){const Gi=[];return D_(Yr,(ts,Lc)=>{const _0=Rn(ts);_0&&Gi.push(Gr.call(Vo,_0,Lc))}),Gi}else{const Gi=Rn(Yr);return Gi?Gr.call(Vo,Gi):!1}},ws=(Yr,Gr)=>{Ei(Yr,Xo=>{Ge(Gr,(Vo,Gi)=>{wr(Xo,Gi,Vo)})})},ii=(Yr,Gr)=>{Ei(Yr,Xo=>{const Vo=sr.fromDom(Xo);Id(Vo,Gr)})},Qi=(Yr,Gr,Xo,Vo,Gi)=>Ei(Yr,ts=>{const Lc=v(Gr)?r.createElement(Gr):Gr;return E(Xo)&&ws(Lc,Xo),Vo&&(!v(Vo)&&Vo.nodeType?Lc.appendChild(Vo):v(Vo)&&ii(Lc,Vo)),Gi?Lc:ts.appendChild(Lc)}),Qa=(Yr,Gr,Xo)=>Qi(r.createElement(Yr),Yr,Gr,Xo,!0),ci=up.decode,Va=up.encodeAllRaw,Xa=(Yr,Gr,Xo="")=>{let Vo="<"+Yr;for(const Gi in Gr)nn(Gr,Gi)&&(Vo+=" "+Gi+'="'+Va(Gr[Gi])+'"');return _r(Xo)&&_t(Wt.getVoidElements(),Yr)?Vo+" />":Vo+">"+Xo+""},Df=Yr=>{const Gr=r.createElement("div"),Xo=r.createDocumentFragment();Xo.appendChild(Gr),Yr&&(Gr.innerHTML=Yr);let Vo;for(;Vo=Gr.firstChild;)Xo.appendChild(Vo);return Xo.removeChild(Gr),Xo},el=(Yr,Gr)=>Ei(Yr,Xo=>{const Vo=sr.fromDom(Xo);return Gr&&ye(Oc(Vo),Gi=>{ks(Gi)&&Gi.dom.length===0?ja(Gi):Fc(Vo,Gi)}),ja(Vo),Vo.dom}),Yu=Yr=>Ei(Yr,Gr=>{const Xo=Gr.attributes;for(let Vo=Xo.length-1;Vo>=0;Vo--)Gr.removeAttributeNode(Xo.item(Vo))}),Rg=Yr=>Jt.parse(Yr),m1=(Yr,Gr)=>Jt.serialize(Yr,Gr),Dh=Yr=>{if(Cv!==Nl.DOM&&r===document){if(B[Yr])return;B[Yr]=!0}let Gr=r.getElementById("mceDefaultStyles");if(!Gr){Gr=r.createElement("style"),Gr.id="mceDefaultStyles",Gr.type="text/css";const Xo=r.head;Xo.firstChild?Xo.insertBefore(Gr,Xo.firstChild):Xo.appendChild(Gr)}Gr.styleSheet?Gr.styleSheet.cssText+=Yr:Gr.appendChild(r.createTextNode(Yr))},om=Yr=>{Yr||(Yr=""),ye(Yr.split(","),Gr=>{re[Gr]=!0,ct.load(Gr).catch(k)})},Lg=(Yr,Gr,Xo)=>{Ei(Yr,Vo=>{if(ne(Vo)){const Gi=sr.fromDom(Vo),ts=Gr.split(" ");ye(ts,Lc=>{E(Xo)?(Xo?_f:nf)(Gi,Lc):gh(Gi,Lc)})}})},xp=(Yr,Gr)=>{Lg(Yr,Gr,!0)},Ig=(Yr,Gr)=>{Lg(Yr,Gr,!1)},zi=(Yr,Gr)=>{const Xo=qn(Yr),Vo=Gr.split(" ");return E(Xo)&&Oe(Vo,Gi=>rs(Xo,Gi))},ss=Yr=>{Ei(Yr,Gr=>Yc(sr.fromDom(Gr),"display"))},Rc=Yr=>{Ei(Yr,Gr=>Ml(sr.fromDom(Gr),"display","none"))},cu=Yr=>{const Gr=qn(Yr);return E(Gr)&&Aa(Ru(Gr,"display"),"none")},Nu=Yr=>(Yr||"mce_")+be++,nd=Yr=>{const Gr=qn(Yr);return E(Gr)?ne(Gr.dom)?Gr.dom.outerHTML:Ka(Gr):""},Ou=(Yr,Gr)=>{Ei(Yr,Xo=>{ne(Xo)&&(Xo.outerHTML=Gr)})},Su=(Yr,Gr)=>{const Xo=Rn(Gr);return Ei(Yr,Vo=>{const Gi=Xo==null?void 0:Xo.parentNode,ts=Xo==null?void 0:Xo.nextSibling;return Gi&&(ts?Gi.insertBefore(Vo,ts):Gi.appendChild(Vo)),Vo})},fh=(Yr,Gr,Xo)=>Ei(Gr,Vo=>{var Gi;const ts=A(Gr)?Yr.cloneNode(!0):Yr;return Xo&&D_(VO(Vo.childNodes),Lc=>{ts.appendChild(Lc)}),(Gi=Vo.parentNode)===null||Gi===void 0||Gi.replaceChild(ts,Vo),Vo}),Dg=(Yr,Gr)=>{if(Yr.nodeName!==Gr.toUpperCase()){const Xo=Qa(Gr);return D_(Tr(Yr),Vo=>{wr(Xo,Vo.nodeName,pr(Yr,Vo.nodeName))}),fh(Xo,Yr,!0),Xo}else return Yr},Xm=(Yr,Gr)=>{let Xo=Yr;for(;Xo;){let Vo=Gr;for(;Vo&&Xo!==Vo;)Vo=Vo.parentNode;if(Xo===Vo)break;Xo=Xo.parentNode}return!Xo&&Yr.ownerDocument?Yr.ownerDocument.documentElement:Xo},x0=(Yr,Gr,Xo)=>S(Gr)?ba(Wt,Yr,{...Xo,isContent:Gi=>{const ts=Gi.nodeName.toLowerCase();return!!Gr[ts]}}):ba(Wt,Yr,Xo),Bg=()=>r.createRange(),fx=(Yr,Gr,Xo)=>{let Vo=Bg(),Gi,ts;if(Yr&&Gr&&Yr.parentNode&&Gr.parentNode){const Lc=Yr.parentNode;return Vo.setStart(Lc,Bo(Yr)),Vo.setEnd(Gr.parentNode,Bo(Gr)),Gi=Vo.extractContents(),Vo=Bg(),Vo.setStart(Gr.parentNode,Bo(Gr)+1),Vo.setEnd(Lc,Bo(Yr)+1),ts=Vo.extractContents(),Lc.insertBefore(ap(Cv,Gi,Wt),Yr),Xo?Lc.insertBefore(Xo,Yr):Lc.insertBefore(Gr,Yr),Lc.insertBefore(ap(Cv,ts,Wt),Yr),el(Yr),Xo||Gr}else return},Z2=(Yr,Gr,Xo,Vo)=>{if(A(Yr)){let Gi=Yr.length;const ts=[];for(;Gi--;)ts[Gi]=Z2(Yr[Gi],Gr,Xo,Vo);return ts}else return g.collect&&(Yr===r||Yr===H)&&kt.push([Yr,Gr,Xo,Vo]),ln.bind(Yr,Gr,Xo,Vo||Cv)},hO=(Yr,Gr,Xo)=>{if(A(Yr)){let Vo=Yr.length;const Gi=[];for(;Vo--;)Gi[Vo]=hO(Yr[Vo],Gr,Xo);return Gi}else{if(kt.length>0&&(Yr===r||Yr===H)){let Vo=kt.length;for(;Vo--;){const[Gi,ts,Lc]=kt[Vo];Yr===Gi&&(!Gr||Gr===ts)&&(!Xo||Xo===Lc)&&ln.unbind(Gi,ts,Lc)}}return ln.unbind(Yr,Gr,Xo)}},_A=(Yr,Gr,Xo)=>ln.dispatch(Yr,Gr,Xo),dx=(Yr,Gr,Xo)=>ln.dispatch(Yr,Gr,Xo),Vk=Yr=>{if(Yr&&ge(Yr)){const Gr=Yr.getAttribute("data-mce-contenteditable");return Gr&&Gr!=="inherit"?Gr:Yr.contentEditable!=="inherit"?Yr.contentEditable:null}else return null},Cv={doc:r,settings:g,win:H,files:re,stdMode:Re,boxModel:Ke,styleSheetLoader:ct,boundEvents:kt,styles:Jt,schema:Wt,events:ln,isBlock:Vn,root:null,clone:Ur,getRoot:wo,getViewPort:jo,getRect:Bi,getSize:bi,getParent:Us,getParents:Ia,get:Rn,getNext:nu,getPrev:jd,select:Wo,is:$a,add:Qi,create:Qa,createHTML:Xa,createFragment:Df,remove:el,setStyle:lo,getStyle:xo,setStyles:eo,removeAllAttribs:Yu,setAttrib:wr,setAttribs:ws,getAttrib:pr,getPos:di,parseStyle:Rg,serializeStyle:m1,addStyle:Dh,loadCSS:om,addClass:xp,removeClass:Ig,hasClass:zi,toggleClass:Lg,show:ss,hide:Rc,isHidden:cu,uniqueId:Nu,setHTML:ii,getOuterHTML:nd,setOuterHTML:Ou,decode:ci,encode:Va,insertAfter:Su,replace:fh,rename:Dg,findCommonAncestor:Xm,run:Ei,getAttribs:Tr,isEmpty:x0,createRng:Bg,nodeIndex:Bo,split:fx,bind:Z2,unbind:hO,fire:dx,dispatch:_A,getContentEditable:Vk,getContentEditableParent:Yr=>{const Gr=wo();let Xo=null;for(let Vo=Yr;Vo&&Vo!==Gr&&(Xo=Vk(Vo),Xo===null);Vo=Vo.parentNode);return Xo},isEditable:Yr=>{if(E(Yr)){const Gr=ne(Yr)?Yr:Yr.parentElement;return E(Gr)&&ge(Gr)&&js(sr.fromDom(Gr))}else return!1},destroy:()=>{if(kt.length>0){let Yr=kt.length;for(;Yr--;){const[Gr,Xo,Vo]=kt[Yr];ln.unbind(Gr,Xo,Vo)}}Ge(re,(Yr,Gr)=>{ct.unload(Gr),delete re[Gr]})},isChildOf:(Yr,Gr)=>Yr===Gr||Gr.contains(Yr),dumpRng:Yr=>"startContainer: "+Yr.startContainer.nodeName+", startOffset: "+Yr.startOffset+", endContainer: "+Yr.endContainer.nodeName+", endOffset: "+Yr.endOffset},q2=gd(Jt,g,$(Cv));return Cv};Nl.DOM=Nl(document),Nl.nodeIndex=Bo;const dg=Nl.DOM,Dx=0,UO=1,t0=2,gb=3;class Mm{constructor(g={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=g}_setReferrerPolicy(g){this.settings.referrerPolicy=g}loadScript(g){return new Promise((B,H)=>{const re=dg;let be;const Re=()=>{re.remove(kt),be&&(be.onerror=be.onload=be=null)},Ke=()=>{Re(),B()},ct=()=>{Re(),H("Failed to load script: "+g)},kt=re.uniqueId();be=document.createElement("script"),be.id=kt,be.type="text/javascript",be.src=mo._addCacheSuffix(g),this.settings.referrerPolicy&&re.setAttrib(be,"referrerpolicy",this.settings.referrerPolicy),be.onload=Ke,be.onerror=ct,(document.getElementsByTagName("head")[0]||document.body).appendChild(be)})}isDone(g){return this.states[g]===t0}markDone(g){this.states[g]=t0}add(g){const B=this;return B.queue.push(g),B.states[g]===void 0&&(B.states[g]=Dx),new Promise((re,be)=>{B.scriptLoadedCallbacks[g]||(B.scriptLoadedCallbacks[g]=[]),B.scriptLoadedCallbacks[g].push({resolve:re,reject:be})})}load(g){return this.add(g)}remove(g){delete this.states[g],delete this.scriptLoadedCallbacks[g]}loadQueue(){const g=this.queue;return this.queue=[],this.loadScripts(g)}loadScripts(g){const B=this,H=(ct,kt)=>{Ct(B.scriptLoadedCallbacks,kt).each(Wt=>{ye(Wt,Jt=>Jt[ct](kt))}),delete B.scriptLoadedCallbacks[kt]},re=ct=>{const kt=Te(ct,Wt=>Wt.status==="rejected");return kt.length>0?Promise.reject($e(kt,({reason:Wt})=>A(Wt)?Wt:[Wt])):Promise.resolve()},be=ct=>Promise.allSettled(ve(ct,kt=>B.states[kt]===t0?(H("resolve",kt),Promise.resolve()):B.states[kt]===gb?(H("reject",kt),Promise.reject(kt)):(B.states[kt]=UO,B.loadScript(kt).then(()=>{B.states[kt]=t0,H("resolve",kt);const Wt=B.queue;return Wt.length>0?(B.queue=[],be(Wt).then(re)):Promise.resolve()},()=>(B.states[kt]=gb,H("reject",kt),Promise.reject(kt)))))),Re=ct=>(B.loading=!0,be(ct).then(kt=>{B.loading=!1;const Wt=B.queueLoadedCallbacks.shift();return Y.from(Wt).each(K),re(kt)})),Ke=bn(g);return B.loading?new Promise((ct,kt)=>{B.queueLoadedCallbacks.push(()=>{Re(Ke).then(ct,kt)})}):Re(Ke)}}Mm.ScriptLoader=new Mm;const jO=(r,g)=>{const B=r.indexOf(g);return B!==-1&&r.indexOf(g,B+1)>B},z_=r=>_(r)&&_t(r,"raw"),Sl=r=>A(r)&&r.length>1,Kv={},fc=mr("en"),Jv=()=>Ct(Kv,fc.get()),Du={getData:()=>ht(Kv,r=>({...r})),setCode:r=>{r&&fc.set(r)},getCode:()=>fc.get(),add:(r,g)=>{let B=Kv[r];B||(Kv[r]=B={});const H=ve(nt(g),re=>re.toLowerCase());Ge(g,(re,be)=>{const Re=be.toLowerCase();Re!==be&&jO(H,Re)?(_t(g,Re)||(B[Re]=re),B[be]=re):B[Re]=re})},translate:r=>{const g=Jv().getOr({}),B=Re=>C(Re)?Object.prototype.toString.call(Re):H(Re)?"":""+Re,H=Re=>Re===""||Re===null||Re===void 0,re=Re=>{const Ke=B(Re);return _t(g,Ke)?B(g[Ke]):Ct(g,Ke.toLowerCase()).map(B).getOr(Ke)},be=Re=>Re.replace(/{context:\w+}$/,"");if(H(r))return"";if(z_(r))return B(r.raw);if(Sl(r)){const Re=r.slice(1),Ke=re(r[0]).replace(/\{([0-9]+)\}/g,(ct,kt)=>_t(Re,kt)?B(Re[kt]):ct);return be(Ke)}return be(re(r))},isRtl:()=>Jv().bind(r=>Ct(r,"_dir")).exists(r=>r==="rtl"),hasCode:r=>_t(Kv,r)},su=()=>{const r=[],g={},B={},H=[],re=(Rn,qn)=>{const pr=Te(H,Tr=>Tr.name===Rn&&Tr.state===qn);ye(pr,Tr=>Tr.resolve())},be=Rn=>_t(g,Rn),Re=Rn=>_t(B,Rn),Ke=Rn=>{if(B[Rn])return B[Rn].instance},ct=(Rn,qn)=>{const pr=Du.getCode(),Tr=","+(qn||"")+",";!pr||qn&&Tr.indexOf(","+pr+",")===-1||Mm.ScriptLoader.add(g[Rn]+"/langs/"+pr+".js")},kt=(Rn,qn)=>{su.languageLoad!==!1&&(be(Rn)?ct(Rn,qn):Vn(Rn,"loaded").then(()=>ct(Rn,qn)))},Wt=(Rn,qn)=>(r.push(qn),B[Rn]={instance:qn},re(Rn,"added"),qn),Jt=Rn=>{delete g[Rn],delete B[Rn]},ln=(Rn,qn)=>v(qn)?v(Rn)?{prefix:"",resource:qn,suffix:""}:{prefix:Rn.prefix,resource:qn,suffix:Rn.suffix}:qn,kn=(Rn,qn)=>{if(g[Rn])return Promise.resolve();let pr=v(qn)?qn:qn.prefix+qn.resource+qn.suffix;pr.indexOf("/")!==0&&pr.indexOf("://")===-1&&(pr=su.baseURL+"/"+pr),g[Rn]=pr.substring(0,pr.lastIndexOf("/"));const Tr=()=>(re(Rn,"loaded"),Promise.resolve());return B[Rn]?Tr():Mm.ScriptLoader.add(pr).then(Tr)},Vn=(Rn,qn="added")=>qn==="added"&&Re(Rn)||qn==="loaded"&&be(Rn)?Promise.resolve():new Promise(pr=>{H.push({name:Rn,state:qn,resolve:pr})});return{items:r,urls:g,lookup:B,get:Ke,requireLangPack:kt,add:Wt,remove:Jt,createUrl:ln,load:kn,waitFor:Vn}};su.languageLoad=!0,su.baseURL="",su.PluginManager=su(),su.ThemeManager=su(),su.ModelManager=su();const hg=(r,g)=>{let B=null;return{cancel:()=>{x(B)||(clearTimeout(B),B=null)},throttle:(...be)=>{x(B)&&(B=setTimeout(()=>{B=null,r.apply(null,be)},g))}}},n0=(r,g)=>{let B=null;const H=()=>{x(B)||(clearTimeout(B),B=null)};return{cancel:H,throttle:(...be)=>{H(),B=setTimeout(()=>{B=null,r.apply(null,be)},g)}}},N_=(r,g,B)=>wl(r,g,B).isSome(),ey=$("mce-annotation"),pg=$("data-mce-annotation"),ty=$("data-mce-annotation-uid"),R1=$("data-mce-annotation-active"),z0=$("data-mce-annotation-classes"),mg=$("data-mce-annotation-attrs"),L1=r=>g=>Fa(g,r),I1=(r,g)=>{const B=r.selection.getRng(),H=sr.fromDom(B.startContainer),re=sr.fromDom(r.getBody()),be=g.fold(()=>"."+ey(),ct=>`[${pg()}="${ct}"]`),Re=Ts(H,B.startOffset).getOr(H);return mu(Re,be,L1(re)).bind(ct=>sd(ct,`${ty()}`).bind(kt=>sd(ct,`${pg()}`).map(Wt=>{const Jt=vb(r,kt);return{uid:kt,name:Wt,elements:Jt}})))},zx=r=>mc(r)&&rs(r,ey()),F0=(r,g)=>Vf(r,"data-mce-bogus")||N_(r,'[data-mce-bogus="all"]',L1(g)),vb=(r,g)=>{const B=sr.fromDom(r.getBody()),H=Zl(B,`[${ty()}="${g}"]`);return Te(H,re=>!F0(re,B))},Fx=(r,g)=>{const B=sr.fromDom(r.getBody()),H=Zl(B,`[${pg()}="${g}"]`),re={};return ye(H,be=>{if(!F0(be,B)){const Re=uc(be,ty()),Ke=Ct(re,Re).getOr([]);re[Re]=Ke.concat([be])}}),re},$_=(r,g)=>{const B=mr({}),H=()=>({listeners:[],previous:Ys()}),re=(Jt,ln)=>{be(Jt,kn=>(ln(kn),kn))},be=(Jt,ln)=>{const kn=B.get(),Vn=Ct(kn,Jt).getOrThunk(H),Rn=ln(Vn);kn[Jt]=Rn,B.set(kn)},Re=(Jt,ln,kn)=>{re(Jt,Vn=>{ye(Vn.listeners,Rn=>Rn(!0,Jt,{uid:ln,nodes:ve(kn,qn=>qn.dom)}))})},Ke=Jt=>{re(Jt,ln=>{ye(ln.listeners,kn=>kn(!1,Jt))})},ct=(Jt,ln)=>{ye(vb(r,Jt),kn=>{ln?Es(kn,R1(),"true"):gc(kn,R1())})},kt=n0(()=>{const Jt=Ue(g.getNames());ye(Jt,ln=>{be(ln,kn=>{const Vn=kn.previous.get();return I1(r,Y.some(ln)).fold(()=>{Vn.each(Rn=>{Ke(ln),kn.previous.clear(),ct(Rn,!1)})},({uid:Rn,name:qn,elements:pr})=>{Aa(Vn,Rn)||(Vn.each(Tr=>ct(Tr,!1)),Re(qn,Rn,pr),kn.previous.set(Rn),ct(Rn,!0))}),{previous:kn.previous,listeners:kn.listeners}})})},30);return r.on("remove",()=>{kt.cancel()}),r.on("NodeChange",()=>{kt.throttle()}),{addListener:(Jt,ln)=>{be(Jt,kn=>({previous:kn.previous,listeners:kn.listeners.concat([ln])}))}}},Nx=(r,g)=>{const B=pg(),H=be=>Y.from(be.attr(B)).bind(g.lookup),re=be=>{var Re,Ke;be.attr(ty(),null),be.attr(pg(),null),be.attr(R1(),null);const ct=Y.from(be.attr(mg())).map(ln=>ln.split(",")).getOr([]),kt=Y.from(be.attr(z0())).map(ln=>ln.split(",")).getOr([]);ye(ct,ln=>be.attr(ln,null));const Wt=(Ke=(Re=be.attr("class"))===null||Re===void 0?void 0:Re.split(" "))!==null&&Ke!==void 0?Ke:[],Jt=Le(Wt,[ey()].concat(kt));be.attr("class",Jt.length>0?Jt.join(" "):null),be.attr(z0(),null),be.attr(mg(),null)};r.serializer.addTempAttr(R1()),r.serializer.addAttributeFilter(B,be=>{for(const Re of be)H(Re).each(Ke=>{Ke.persistent===!1&&(Re.name==="span"?Re.unwrap():re(Re))})})},V_=()=>{const r={};return{register:(re,be)=>{r[re]={name:re,settings:be}},lookup:re=>Ct(r,re).map(be=>be.settings),getNames:()=>nt(r)}};let yb=0;const D1=r=>{const B=new Date().getTime(),H=Math.floor(Math.random()*1e9);return yb++,r+"_"+H+yb+String(B)},vd=(r,g)=>{ye(g,B=>{_f(r,B)})},U_=(r,g)=>{ye(g,B=>{nf(r,B)})},bb=(r,g)=>sr.fromDom(r.dom.cloneNode(g)),Th=r=>bb(r,!1),Kf=r=>bb(r,!0),ny=(r,g)=>{const B=sr.fromTag(g),H=Mp(r);return ef(B,H),B},B1=(r,g)=>{const B=ny(r,g);si(r,B);const H=Oc(r);return gu(B,H),ja(r),B},cf=(r,g,B=oe)=>{const H=new kc(r,g),re=be=>{let Re;do Re=H[be]();while(Re&&!Nt(Re)&&!B(Re));return Y.from(Re).filter(Nt)};return{current:()=>Y.from(H.current()).filter(Nt),next:()=>re("next"),prev:()=>re("prev"),prev2:()=>re("prev2")}},Em=(r,g)=>{const B=g||(Re=>r.isBlock(Re)||On(Re)||rr(Re)),H=(Re,Ke,ct,kt)=>{if(Nt(Re)){const Wt=kt(Re,Ke,Re.data);if(Wt!==-1)return Y.some({container:Re,offset:Wt})}return ct().bind(Wt=>H(Wt.container,Wt.offset,ct,kt))};return{backwards:(Re,Ke,ct,kt)=>{const Wt=cf(Re,kt??r.getRoot(),B);return H(Re,Ke,()=>Wt.prev().map(Jt=>({container:Jt,offset:Jt.length})),ct).getOrNull()},forwards:(Re,Ke,ct,kt)=>{const Wt=cf(Re,kt??r.getRoot(),B);return H(Re,Ke,()=>Wt.next().map(Jt=>({container:Jt,offset:0})),ct).getOrNull()}}},Nd=((r,g)=>{const B=be=>{if(!r(be))throw new Error("Can only get "+g+" value of a "+g+" node");return H(be).getOr("")},H=be=>r(be)?Y.from(be.dom.nodeValue):Y.none();return{get:B,getOption:H,set:(be,Re)=>{if(!r(be))throw new Error("Can only set raw "+g+" value of a "+g+" node");be.dom.nodeValue=Re}}})(ks,"text"),ry=r=>Nd.get(r),HO=r=>Nd.getOption(r),Vx=(r,g)=>Nd.set(r,g),z1=["td","th"],j_=["thead","tbody","tfoot"],oy=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],xb=["li","dd","dt"],ZO=["ul","ol","dl"],Af=["pre","script","textarea","style"],gg=r=>{let g;return B=>(g=g||We(r,q),_t(g,la(B)))},dp=r=>la(r)==="table",N0=r=>mc(r)&&la(r)==="br",Q_=gg(oy),Vp=gg(ZO),nh=gg(xb),F1=gg(j_),N1=gg(z1),iy=gg(Af),qO=r=>{const g=[];let B=r.dom;for(;B;)g.push(sr.fromDom(B)),B=B.lastChild;return g},wS=r=>{const g=Zl(r,"br"),B=Te(qO(r).slice(-1),N0);g.length===B.length&&ye(B,ja)},$1=()=>{const r=sr.fromTag("br");return Es(r,"data-mce-bogus","1"),r},rh=r=>{vu(r),Ps(r,$1())},H_=(r,g)=>{zl(r).each(B=>{Eu(B).each(H=>{g.isBlock(la(r))&&N0(B)&&g.isBlock(la(H))&&ja(B)})})},nc=Iu,$0=El,yd=Ol,OS=r=>r.insertContent(nc,{preserve_zwsp:!0}),V1=ne,r0=Nt,vg=r=>(r0(r)&&(r=r.parentNode),V1(r)&&r.hasAttribute("data-mce-caret")),oh=r=>r0(r)&&$0(r.data),Ch=r=>vg(r)||oh(r),Z_=r=>r.firstChild!==r.lastChild||!On(r.firstChild),q_=(r,g)=>{var B;const re=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(nc),be=r.parentNode;if(g){const Re=r.previousSibling;if(r0(Re)){if(Ch(Re))return Re;if(jp(Re))return Re.splitText(Re.data.length-1)}be==null||be.insertBefore(re,r)}else{const Re=r.nextSibling;if(r0(Re)){if(Ch(Re))return Re;if(U0(Re))return Re.splitText(1),Re}r.nextSibling?be==null||be.insertBefore(re,r.nextSibling):be==null||be.appendChild(re)}return re},V0=r=>{const g=r.container();return Nt(g)?g.data.charAt(r.offset())===nc||r.isAtStart()&&oh(g.previousSibling):!1},Up=r=>{const g=r.container();return Nt(g)?g.data.charAt(r.offset()-1)===nc||r.isAtEnd()&&oh(g.nextSibling):!1},W_=(r,g,B)=>{var H;const be=((H=g.ownerDocument)!==null&&H!==void 0?H:document).createElement(r);be.setAttribute("data-mce-caret",B?"before":"after"),be.setAttribute("data-mce-bogus","all"),be.appendChild($1().dom);const Re=g.parentNode;return B?Re==null||Re.insertBefore(be,g):g.nextSibling?Re==null||Re.insertBefore(be,g.nextSibling):Re==null||Re.appendChild(be),be},U0=r=>r0(r)&&r.data[0]===nc,jp=r=>r0(r)&&r.data[r.data.length-1]===nc,o0=r=>{var g;const B=r.getElementsByTagName("br"),H=B[B.length-1];dt(H)&&((g=H.parentNode)===null||g===void 0||g.removeChild(H))},Ra=r=>r&&r.hasAttribute("data-mce-caret")?(o0(r),r.removeAttribute("data-mce-caret"),r.removeAttribute("data-mce-bogus"),r.removeAttribute("style"),r.removeAttribute("data-mce-style"),r.removeAttribute("_moz_abspos"),r):null,bd=r=>vg(r.startContainer),Zh=Math.round,i0=r=>r?{left:Zh(r.left),top:Zh(r.top),bottom:Zh(r.bottom),right:Zh(r.right),width:Zh(r.width),height:Zh(r.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Il=(r,g)=>(r=i0(r),g||(r.left=r.left+r.width),r.right=r.left,r.width=0,r),WO=(r,g)=>r.left===g.left&&r.top===g.top&&r.bottom===g.bottom&&r.right===g.right,U1=(r,g,B)=>r>=0&&r<=Math.min(g.height,B.height)/2,j1=(r,g)=>{const B=Math.min(g.height/2,r.height/2);return r.bottom-Bg.bottom?!1:U1(g.top-r.bottom,r,g)},Ux=(r,g)=>r.top>g.bottom?!0:r.bottomg>=r.left&&g<=r.right&&B>=r.top&&B<=r.bottom,Dl=r=>Ie(r,(g,B)=>g.fold(()=>Y.some(B),H=>{const re=Math.min(B.left,H.left),be=Math.min(B.top,H.top),Re=Math.max(B.right,H.right),Ke=Math.max(B.bottom,H.bottom);return Y.some({top:be,right:Re,bottom:Ke,left:re,width:Re-re,height:Ke-be})}),Y.none()),kl=(r,g,B)=>{const H=Math.max(Math.min(g,r.left+r.width),r.left),re=Math.max(Math.min(B,r.top+r.height),r.top);return Math.sqrt((g-H)*(g-H)+(B-re)*(B-re))},SS=(r,g)=>Math.max(0,Math.min(r.bottom,g.bottom)-Math.max(r.top,g.top)),Y_=(r,g,B)=>Math.min(Math.max(r,g),B),Pm=r=>{const g=r.startContainer,B=r.startOffset;return g===r.endContainer&&g.hasChildNodes()&&r.endOffset===B+1?g.childNodes[B]:null},fi=(r,g)=>{if(ne(r)&&r.hasChildNodes()){const B=r.childNodes,H=Y_(g,0,B.length-1);return B[H]}else return r},kS=(r,g)=>{if(!(g<0&&ne(r)&&r.hasChildNodes()))return fi(r,g)},YO=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),jx=r=>v(r)&&r.charCodeAt(0)>=768&&YO.test(r),X_=(...r)=>g=>{for(let B=0;Bg=>{for(let B=0;BHx(r)?!1:CS(r)?!Rm(r.parentNode):Qx(r)||j0(r)||Ah(r)||Cc(r),G_=r=>ne(r)&&r.getAttribute("unselectable")==="true",Cc=r=>!G_(r)&&sy(r),XO=(r,g)=>{for(let B=r.parentNode;B&&B!==g;B=B.parentNode){if(Cc(B))return!1;if(_b(B))return!0}return!0},yc=r=>Cc(r)?!Ie(Ee(r.getElementsByTagName("*")),(g,B)=>g||_b(B),!1):!1,GO=r=>Qx(r)||yc(r),Zx=(r,g)=>ih(r)&&XO(r,g),wb=ne,K_=ih,qx=Je("display","block table"),J_=Je("float","left right"),Lm=TS(wb,K_,X(J_)),qh=X(Je("white-space","pre pre-line pre-wrap")),Q1=Nt,Kc=On,H1=Nl.nodeIndex,Qp=kS,ly=r=>r?r.createRange():Nl.DOM.createRng(),cy=r=>v(r)&&/[\r\n\t ]/.test(r),Ob=r=>!!r.setStart&&!!r.setEnd,Z1=r=>{const g=r.startContainer,B=r.startOffset;if(cy(r.toString())&&qh(g.parentNode)&&Nt(g)){const H=g.data;if(cy(H[B-1])||cy(H[B+1]))return!0}return!1},bc=r=>{const g=r.ownerDocument,B=ly(g),H=g.createTextNode(Ea),re=r.parentNode;re.insertBefore(H,r),B.setStart(H,0),B.setEnd(H,1);const be=i0(B.getBoundingClientRect());return re.removeChild(H),be},KO=r=>{const g=r.startContainer,B=r.endContainer,H=r.startOffset,re=r.endOffset;if(g===B&&Nt(B)&&H===0&&re===1){const be=r.cloneRange();return be.setEndAfter(B),Q0(be)}else return null},ew=r=>r.left===0&&r.right===0&&r.top===0&&r.bottom===0,Q0=r=>{var g;let B;const H=r.getClientRects();return H.length>0?B=i0(H[0]):B=i0(r.getBoundingClientRect()),!Ob(r)&&Kc(r)&&ew(B)?bc(r):ew(B)&&Ob(r)&&(g=KO(r))!==null&&g!==void 0?g:B},Nc=(r,g)=>{const B=Il(r,g);return B.width=1,B.right=B.left+1,B},yg=r=>{const g=[],B=Re=>{Re.height!==0&&(g.length>0&&WO(Re,g[g.length-1])||g.push(Re))},H=(Re,Ke)=>{const ct=ly(Re.ownerDocument);if(Ke0&&(ct.setStart(Re,Ke-1),ct.setEnd(Re,Ke),Z1(ct)||B(Nc(Q0(ct),!1))),Ke{const H=()=>(Q1(r),g===0),re=()=>Q1(r)?g>=r.data.length:g>=r.childNodes.length,be=()=>{const Wt=ly(r.ownerDocument);return Wt.setStart(r,g),Wt.setEnd(r,g),Wt},Re=()=>(B||(B=yg(qr(r,g))),B),Ke=()=>Re().length>0,ct=Wt=>Wt&&r===Wt.container()&&g===Wt.offset(),kt=Wt=>Qp(r,Wt?g-1:g);return{container:$(r),offset:$(g),toRange:be,getClientRects:Re,isVisible:Ke,isAtStart:H,isAtEnd:re,isEqual:ct,getNode:kt}};qr.fromRangeStart=r=>qr(r.startContainer,r.startOffset),qr.fromRangeEnd=r=>qr(r.endContainer,r.endOffset),qr.after=r=>qr(r.parentNode,H1(r)+1),qr.before=r=>qr(r.parentNode,H1(r)),qr.isAbove=(r,g)=>us(Xe(g.getClientRects()),tt(r.getClientRects()),j1).getOr(!1),qr.isBelow=(r,g)=>us(tt(g.getClientRects()),Xe(r.getClientRects()),Ux).getOr(!1),qr.isAtStart=r=>r?r.isAtStart():!1,qr.isAtEnd=r=>r?r.isAtEnd():!1,qr.isTextPosition=r=>r?Nt(r.container()):!1,qr.isElementPosition=r=>!qr.isTextPosition(r);const N=(r,g)=>{Nt(g)&&g.data.length===0&&r.remove(g)},G=(r,g,B)=>{g.insertNode(B),N(r,B.previousSibling),N(r,B.nextSibling)},fe=(r,g,B)=>{const H=Y.from(B.firstChild),re=Y.from(B.lastChild);g.insertNode(B),H.each(be=>N(r,be.previousSibling)),re.each(be=>N(r,be.nextSibling))},Ae=(r,g,B)=>{Ln(B)?fe(r,g,B):G(r,g,B)},Qe=Nt,et=dt,ut=Nl.nodeIndex,Tt=r=>{const g=r.parentNode;return et(g)?Tt(g):g},Bt=r=>r?it(r.childNodes,(g,B)=>(et(B)&&B.nodeName!=="BR"?g=g.concat(Bt(B)):g.push(B),g),[]):[],rn=(r,g)=>{let B=r;for(;(B=B.previousSibling)&&Qe(B);)g+=B.data.length;return g},an=r=>g=>r===g,_n=r=>{let g,B;g=Bt(Tt(r)),B=at(g,an(r),r),g=g.slice(0,B+1);const H=it(g,(re,be,Re)=>(Qe(be)&&Qe(g[Re-1])&&re++,re),0);return g=zt(g,Fe([r.nodeName])),B=at(g,an(r),r),B-H},Dn=r=>(Qe(r)?"text()":r.nodeName.toLowerCase())+"["+_n(r)+"]",Cn=(r,g,B)=>{const H=[];for(let re=g.parentNode;re&&re!==r&&!(B&&B(re));re=re.parentNode)H.push(re);return H},Jn=(r,g)=>{let B=[],H=g.container(),re=g.offset(),be;if(Qe(H))be=rn(H,re);else{const Ke=H.childNodes;re>=Ke.length?(be="after",re=Ke.length-1):be="before",H=Ke[re]}B.push(Dn(H));let Re=Cn(r,H);return Re=zt(Re,X(dt)),B=B.concat(yt(Re,Ke=>Dn(Ke))),B.reverse().join("/")+","+be},lr=(r,g,B)=>{let H=Bt(r);return H=zt(H,(re,be)=>!Qe(re)||!Qe(H[be-1])),H=zt(H,Fe([g])),H[B]},Ar=(r,g)=>{let B=r,H=0;for(;Qe(B);){const re=B.data.length;if(g>=H&&g<=H+re){r=B,g=g-H;break}if(!Qe(B.nextSibling)){r=B,g=re;break}H+=re,B=B.nextSibling}return Qe(r)&&g>r.data.length&&(g=r.data.length),qr(r,g)},Or=(r,g)=>{if(!g)return null;const B=g.split(","),H=B[0].split("/"),re=B.length>1?B[1]:"before",be=it(H,(Re,Ke)=>{const ct=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(Ke);return ct?(ct[1]==="text()"&&(ct[1]="#text"),lr(Re,ct[1],parseInt(ct[2],10))):null},r);if(!be)return null;if(!Qe(be)&&be.parentNode){let Re;return re==="after"?Re=ut(be)+1:Re=ut(be),qr(be.parentNode,Re)}return Ar(be,parseInt(re,10))},jr=rr,Jr=(r,g,B)=>{let H=r(g.data.slice(0,B)).length;for(let re=g.previousSibling;re&&Nt(re);re=re.previousSibling)H+=r(re.data).length;return H},uo=(r,g,B,H,re)=>{const be=re?H.startContainer:H.endContainer;let Re=re?H.startOffset:H.endOffset;const Ke=[],ct=r.getRoot();if(Nt(be))Ke.push(B?Jr(g,be,Re):Re);else{let kt=0;const Wt=be.childNodes;Re>=Wt.length&&Wt.length&&(kt=1,Re=Math.max(0,Wt.length-1)),Ke.push(r.nodeIndex(Wt[Re],B)+kt)}for(let kt=be;kt&&kt!==ct;kt=kt.parentNode)Ke.push(r.nodeIndex(kt,B));return Ke},ro=(r,g,B,H)=>{const re=g.dom,be=uo(re,r,B,H,!0),Re=g.isForward(),Ke=bd(H)?{isFakeCaret:!0}:{};if(g.isCollapsed())return{start:be,forward:Re,...Ke};{const ct=uo(re,r,B,H,!1);return{start:be,end:ct,forward:Re,...Ke}}},Po=(r,g,B)=>{let H=0;return mo.each(r.select(g),re=>{if(re.getAttribute("data-mce-bogus")!=="all"){if(re===B)return!1;H++;return}}),H},gi=(r,g)=>{let B=g?r.startContainer:r.endContainer,H=g?r.startOffset:r.endOffset;if(ne(B)&&B.nodeName==="TR"){const re=B.childNodes;B=re[Math.min(g?H:H-1,re.length-1)],B&&(H=g?0:B.childNodes.length,g?r.setStart(B,H):r.setEnd(B,H))}},ni=r=>(gi(r,!0),gi(r,!1),r),Ti=(r,g)=>{if(ne(r)&&(r=fi(r,g),jr(r)))return r;if(Ch(r)){Nt(r)&&vg(r)&&(r=r.parentNode);let B=r.previousSibling;if(jr(B)||(B=r.nextSibling,jr(B)))return B}},vi=r=>Ti(r.startContainer,r.startOffset)||Ti(r.endContainer,r.endOffset),na=(r,g,B)=>{const H=B.getNode(),re=B.getRng();if(H.nodeName==="IMG"||jr(H)){const Re=H.nodeName;return{name:Re,index:Po(B.dom,Re,H)}}const be=vi(re);if(be){const Re=be.tagName;return{name:Re,index:Po(B.dom,Re,be)}}return ro(r,B,g,re)},ea=r=>{const g=r.getRng();return{start:Jn(r.dom.getRoot(),qr.fromRangeStart(g)),end:Jn(r.dom.getRoot(),qr.fromRangeEnd(g)),forward:r.isForward()}},La=r=>({rng:r.getRng(),forward:r.isForward()}),ca=(r,g,B)=>{const H={"data-mce-type":"bookmark",id:g,style:"overflow:hidden;line-height:0px"};return B?r.create("span",H,""):r.create("span",H)},Zi=(r,g)=>{const B=r.dom;let H=r.getRng();const re=B.uniqueId(),be=r.isCollapsed(),Re=r.getNode(),Ke=Re.nodeName,ct=r.isForward();if(Ke==="IMG")return{name:Ke,index:Po(B,Ke,Re)};const kt=ni(H.cloneRange());if(!be){kt.collapse(!1);const Jt=ca(B,re+"_end",g);Ae(B,kt,Jt)}H=ni(H),H.collapse(!0);const Wt=ca(B,re+"_start",g);return Ae(B,H,Wt),r.moveToBookmark({id:re,keep:!0,forward:ct}),{id:re,forward:ct}},Bs=(r,g,B=!1)=>g===2?na(yd,B,r):g===3?ea(r):g?La(r):Zi(r,!1),Ja=U(na,Q,!0),Vl=r=>{const g=be=>be(r),B=$(r),H=()=>re,re={tag:!0,inner:r,fold:(be,Re)=>Re(r),isValue:q,isError:oe,map:be=>gs.value(be(r)),mapError:H,bind:g,exists:g,forall:g,getOr:B,or:H,getOrThunk:B,orThunk:H,getOrDie:B,each:be=>{be(r)},toOptional:()=>Y.some(r)};return re},Ta=r=>{const g=()=>B,B={tag:!1,inner:r,fold:(H,re)=>H(r),isValue:oe,isError:q,map:g,mapError:H=>gs.error(H(r)),bind:g,exists:oe,forall:q,getOr:Q,or:Q,getOrThunk:W,orThunk:W,getOrDie:te(String(r)),each:k,toOptional:Y.none};return B},gs={value:Vl,error:Ta,fromOption:(r,g)=>r.fold(()=>Ta(g),Vl)},aa={generate:r=>{if(!A(r))throw new Error("cases must be an array");if(r.length===0)throw new Error("there must be at least one case");const g=[],B={};return ye(r,(H,re)=>{const be=nt(H);if(be.length!==1)throw new Error("one and only one name per case");const Re=be[0],Ke=H[Re];if(B[Re]!==void 0)throw new Error("duplicate key detected:"+Re);if(Re==="cata")throw new Error("cannot have a case named cata (sorry)");if(!A(Ke))throw new Error("case arguments must be an array");g.push(Re),B[Re]=(...ct)=>{const kt=ct.length;if(kt!==Ke.length)throw new Error("Wrong number of arguments to case "+Re+". Expected "+Ke.length+" ("+Ke+"), got "+kt);return{fold:(...Jt)=>{if(Jt.length!==r.length)throw new Error("Wrong number of arguments to fold. Expected "+r.length+", got "+Jt.length);return Jt[re].apply(null,ct)},match:Jt=>{const ln=nt(Jt);if(g.length!==ln.length)throw new Error("Wrong number of arguments to match. Expected: "+g.join(",")+` Actual: `+ln.join(","));if(!Oe(g,Vn=>ce(ln,Vn)))throw new Error("Not all branches were specified when using match. Specified: "+ln.join(", ")+` -Required: `+g.join(", "));return Jt[Re].apply(null,ct)},log:Jt=>{console.log(Jt,{constructors:g,constructor:Re,params:ct})}}}}),B}};aa.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Fs=r=>{const g=[],B=[];return ye(r,H=>{H.fold(re=>{g.push(re)},re=>{B.push(re)})}),{errors:g,values:B}},$c=r=>r.type==="inline-command"||r.type==="inline-format",xc=r=>r.type==="block-command"||r.type==="block-format",xu=(r,g)=>(r.type==="block-command"||r.type==="block-format")&&r.trigger===g,qu=r=>{var g;const B=re=>gs.error({message:re,pattern:r}),H=(re,be,Re)=>{if(r.format!==void 0){let Ke;if(A(r.format)){if(!Oe(r.format,v))return B(re+" pattern has non-string items in the `format` array");Ke=r.format}else if(v(r.format))Ke=[r.format];else return B(re+" pattern has non-string `format` parameter");return gs.value(be(Ke))}else return r.cmd!==void 0?v(r.cmd)?gs.value(Re(r.cmd,r.value)):B(re+" pattern has non-string `cmd` parameter"):B(re+" pattern is missing both `format` and `cmd` parameters")};if(!_(r))return B("Raw pattern is not an object");if(!v(r.start))return B("Raw pattern is missing `start` parameter");if(r.end!==void 0){if(!v(r.end))return B("Inline pattern has non-string `end` parameter");if(r.start.length===0&&r.end.length===0)return B("Inline pattern has empty `start` and `end` parameters");let re=r.start,be=r.end;return be.length===0&&(be=re,re=""),H("Inline",Re=>({type:"inline-format",start:re,end:be,format:Re}),(Re,Ke)=>({type:"inline-command",start:re,end:be,cmd:Re,value:Ke}))}else{if(r.replacement!==void 0)return v(r.replacement)?r.start.length===0?B("Replacement pattern has empty `start` parameter"):gs.value({type:"inline-command",start:"",end:r.start,cmd:"mceInsertContent",value:r.replacement}):B("Replacement pattern has non-string `replacement` parameter");{const re=(g=r.trigger)!==null&&g!==void 0?g:"space";return r.start.length===0?B("Block pattern has empty `start` parameter"):H("Block",be=>({type:"block-format",start:r.start,format:be[0],trigger:re}),(be,Re)=>({type:"block-command",start:r.start,cmd:be,value:Re,trigger:re}))}}},Vc=r=>Te(r,xc),pl=r=>Te(r,$c),Uc=(r,g)=>({inlinePatterns:pl(r),blockPatterns:Vc(r),dynamicPatternsLookup:g}),_u=(r,g)=>({...r,blockPatterns:Te(r.blockPatterns,B=>xu(B,g))}),uf=r=>{const g=Fs(ve(r,qu));return ye(g.errors,B=>console.error(B.message,B.pattern)),g.values},ff=r=>g=>{const B=r(g);return uf(B)},jc=tr().deviceType,is=jc.isTouch(),Vs=Nl.DOM,Ac=r=>{const g=r.indexOf("=")>0?r.split(/[;,](?![^=;,]*(?:[;,]|$))/):r.split(",");return Ie(g,(B,H)=>{const re=H.split("="),be=re[0],Re=re.length>1?re[1]:be;return B[Fn(be)]=Fn(Re),B},{})},Bl=r=>m(r,RegExp),Uo=r=>g=>g.options.get(r),ql=r=>v(r)||_(r),Xs=(r,g="")=>B=>{const H=v(B);if(H)if(B.indexOf("=")!==-1){const re=Ac(B);return{value:Ct(re,r.id).getOr(g),valid:H}}else return{value:B,valid:H};else return{valid:!1,message:"Must be a string."}},ac=r=>{const g=r.options.register;g("id",{processor:"string",default:r.id}),g("selector",{processor:"string"}),g("target",{processor:"object"}),g("suffix",{processor:"string"}),g("cache_suffix",{processor:"string"}),g("base_url",{processor:"string"}),g("referrer_policy",{processor:"string",default:""}),g("language_load",{processor:"boolean",default:!0}),g("inline",{processor:"boolean",default:!1}),g("iframe_attrs",{processor:"object",default:{}}),g("doctype",{processor:"string",default:""}),g("document_base_url",{processor:"string",default:r.documentBaseUrl}),g("body_id",{processor:Xs(r,"tinymce"),default:"tinymce"}),g("body_class",{processor:Xs(r),default:""}),g("content_security_policy",{processor:"string",default:""}),g("br_in_pre",{processor:"boolean",default:!0}),g("forced_root_block",{processor:B=>{const H=v(B)&&Kn(B);return H?{value:B,valid:H}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),g("forced_root_block_attrs",{processor:"object",default:{}}),g("newline_behavior",{processor:B=>{const H=ce(["block","linebreak","invert","default"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),g("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),g("no_newline_selector",{processor:"string",default:""}),g("keep_styles",{processor:"boolean",default:!0}),g("end_container_on_empty_block",{processor:B=>R(B)?{valid:!0,value:B}:v(B)?{valid:!0,value:B}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),g("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),g("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),g("font_size_classes",{processor:"string",default:""}),g("automatic_uploads",{processor:"boolean",default:!0}),g("images_reuse_filename",{processor:"boolean",default:!1}),g("images_replace_blob_uris",{processor:"boolean",default:!0}),g("icons",{processor:"string",default:""}),g("icons_url",{processor:"string",default:""}),g("images_upload_url",{processor:"string",default:""}),g("images_upload_base_path",{processor:"string",default:""}),g("images_upload_credentials",{processor:"boolean",default:!1}),g("images_upload_handler",{processor:"function"}),g("language",{processor:"string",default:"en"}),g("language_url",{processor:"string",default:""}),g("entity_encoding",{processor:"string",default:"named"}),g("indent",{processor:"boolean",default:!0}),g("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_use_margin",{processor:"boolean",default:!1}),g("indentation",{processor:"string",default:"40px"}),g("content_css",{processor:B=>{const H=B===!1||v(B)||D(B,v);return H?v(B)?{value:ve(B.split(","),Fn),valid:H}:A(B)?{value:B,valid:H}:B===!1?{value:[],valid:H}:{value:B,valid:H}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:K1(r)?[]:["default"]}),g("content_style",{processor:"string"}),g("content_css_cors",{processor:"boolean",default:!1}),g("font_css",{processor:B=>{const H=v(B)||D(B,v);return H?{value:A(B)?B:ve(B.split(","),Fn),valid:H}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),g("inline_boundaries",{processor:"boolean",default:!0}),g("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),g("object_resizing",{processor:B=>{const H=R(B)||v(B);return H?B===!1||jc.isiPhone()||jc.isiPad()?{value:"",valid:H}:{value:B===!0?"table,img,figure.image,div,video,iframe":B,valid:H}:{valid:!1,message:"Must be boolean or a string"}},default:!is}),g("resize_img_proportional",{processor:"boolean",default:!0}),g("event_root",{processor:"string"}),g("service_message",{processor:"string"}),g("theme",{processor:B=>B===!1||v(B)||C(B),default:"silver"}),g("theme_url",{processor:"string"}),g("formats",{processor:"object"}),g("format_empty_lines",{processor:"boolean",default:!1}),g("format_noneditable_selector",{processor:"string",default:""}),g("preview_styles",{processor:B=>{const H=B===!1||v(B);return H?{value:B===!1?"":B,valid:H}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),g("custom_ui_selector",{processor:"string",default:""}),g("hidden_input",{processor:"boolean",default:!0}),g("submit_patch",{processor:"boolean",default:!0}),g("encoding",{processor:"string"}),g("add_form_submit_trigger",{processor:"boolean",default:!0}),g("add_unload_trigger",{processor:"boolean",default:!0}),g("custom_undo_redo_levels",{processor:"number",default:0}),g("disable_nodechange",{processor:"boolean",default:!1}),g("readonly",{processor:"boolean",default:!1}),g("editable_root",{processor:"boolean",default:!0}),g("plugins",{processor:"string[]",default:[]}),g("external_plugins",{processor:"object"}),g("forced_plugins",{processor:"string[]"}),g("model",{processor:"string",default:r.hasPlugin("rtc")?"plugin":"dom"}),g("model_url",{processor:"string"}),g("block_unsupported_drop",{processor:"boolean",default:!0}),g("visual",{processor:"boolean",default:!0}),g("visual_table_class",{processor:"string",default:"mce-item-table"}),g("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),g("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),g("setup",{processor:"function"}),g("init_instance_callback",{processor:"function"}),g("url_converter",{processor:"function",default:r.convertURL}),g("url_converter_scope",{processor:"object",default:r}),g("urlconverter_callback",{processor:"function"}),g("allow_conditional_comments",{processor:"boolean",default:!1}),g("allow_html_data_urls",{processor:"boolean",default:!1}),g("allow_svg_data_urls",{processor:"boolean"}),g("allow_html_in_named_anchor",{processor:"boolean",default:!1}),g("allow_script_urls",{processor:"boolean",default:!1}),g("allow_unsafe_link_target",{processor:"boolean",default:!1}),g("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),g("fix_list_elements",{processor:"boolean",default:!1}),g("preserve_cdata",{processor:"boolean",default:!1}),g("remove_trailing_brs",{processor:"boolean",default:!0}),g("pad_empty_with_br",{processor:"boolean",default:!1}),g("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),g("element_format",{processor:"string",default:"html"}),g("entities",{processor:"string"}),g("schema",{processor:"string",default:"html5"}),g("convert_urls",{processor:"boolean",default:!0}),g("relative_urls",{processor:"boolean",default:!0}),g("remove_script_host",{processor:"boolean",default:!0}),g("custom_elements",{processor:ql}),g("extended_valid_elements",{processor:"string"}),g("invalid_elements",{processor:"string"}),g("invalid_styles",{processor:ql}),g("valid_children",{processor:"string"}),g("valid_classes",{processor:ql}),g("valid_elements",{processor:"string"}),g("valid_styles",{processor:ql}),g("verify_html",{processor:"boolean",default:!0}),g("auto_focus",{processor:B=>v(B)||B===!0}),g("browser_spellcheck",{processor:"boolean",default:!1}),g("protect",{processor:"array"}),g("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),g("deprecation_warnings",{processor:"boolean",default:!0}),g("a11y_advanced_options",{processor:"boolean",default:!1}),g("api_key",{processor:"string"}),g("license_key",{processor:"string"}),g("paste_block_drop",{processor:"boolean",default:!1}),g("paste_data_images",{processor:"boolean",default:!0}),g("paste_preprocess",{processor:"function"}),g("paste_postprocess",{processor:"function"}),g("paste_webkit_styles",{processor:"string",default:"none"}),g("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),g("paste_merge_formats",{processor:"boolean",default:!0}),g("smart_paste",{processor:"boolean",default:!0}),g("paste_as_text",{processor:"boolean",default:!1}),g("paste_tab_spaces",{processor:"number",default:4}),g("text_patterns",{processor:B=>D(B,_)||B===!1?{value:uf(B===!1?[]:B),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1",trigger:"space"},{start:"##",format:"h2",trigger:"space"},{start:"###",format:"h3",trigger:"space"},{start:"####",format:"h4",trigger:"space"},{start:"#####",format:"h5",trigger:"space"},{start:"######",format:"h6",trigger:"space"},{start:"1.",cmd:"InsertOrderedList",trigger:"space"},{start:"*",cmd:"InsertUnorderedList",trigger:"space"},{start:"-",cmd:"InsertUnorderedList",trigger:"space"},{start:">",cmd:"mceBlockQuote",trigger:"space"},{start:"---",cmd:"InsertHorizontalRule",trigger:"space"}]}),g("text_patterns_lookup",{processor:B=>C(B)?{value:ff(B),valid:!0}:{valid:!1,message:"Must be a single function"},default:B=>[]}),g("noneditable_class",{processor:"string",default:"mceNonEditable"}),g("editable_class",{processor:"string",default:"mceEditable"}),g("noneditable_regexp",{processor:B=>D(B,Bl)?{value:B,valid:!0}:Bl(B)?{value:[B],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),g("table_tab_navigation",{processor:"boolean",default:!0}),g("highlight_on_focus",{processor:"boolean",default:!0}),g("xss_sanitization",{processor:"boolean",default:!0}),g("details_initial_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("details_serialized_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("init_content_sync",{processor:"boolean",default:!1}),g("newdocument_content",{processor:"string",default:""}),g("sandbox_iframes",{processor:"boolean",default:!0}),g("sandbox_iframes_exclusions",{processor:"string[]",default:["youtube.com","youtu.be","vimeo.com","player.vimeo.com","dailymotion.com","embed.music.apple.com","open.spotify.com","giphy.com","dai.ly","codepen.io"]}),g("convert_unsafe_embeds",{processor:"boolean",default:!0}),r.on("ScriptsLoaded",()=>{g("directionality",{processor:"string",default:Du.isRtl()?"rtl":void 0}),g("placeholder",{processor:"string",default:Vs.getAttrib(r.getElement(),"placeholder")})})},Mc=Uo("iframe_attrs"),Mh=Uo("doctype"),il=Uo("document_base_url"),Im=Uo("body_id"),ah=Uo("body_class"),Bu=Uo("content_security_policy"),Hp=Uo("br_in_pre"),dc=Uo("forced_root_block"),Jf=Uo("forced_root_block_attrs"),yg=Uo("newline_behavior"),Dm=Uo("br_newline_selector"),H1=Uo("no_newline_selector"),Wx=Uo("keep_styles"),Ec=Uo("end_container_on_empty_block"),Qc=Uo("automatic_uploads"),Hc=Uo("images_reuse_filename"),_s=Uo("images_replace_blob_uris"),Jc=Uo("icons"),Pc=Uo("icons_url"),Z1=Uo("images_upload_url"),uy=Uo("images_upload_base_path"),q1=Uo("images_upload_credentials"),H0=Uo("images_upload_handler"),W1=Uo("content_css_cors"),Y1=Uo("referrer_policy"),X1=Uo("language"),Zp=Uo("language_url"),fy=Uo("indent_use_margin"),JO=Uo("indentation"),Bm=Uo("content_css"),Ob=Uo("content_style"),Wu=Uo("font_css"),Yx=Uo("directionality"),G1=Uo("inline_boundaries_selector"),bd=Uo("object_resizing"),a0=Uo("resize_img_proportional"),dy=Uo("placeholder"),hp=Uo("event_root"),xd=Uo("service_message"),bg=Uo("theme"),Sb=Uo("theme_url"),kb=Uo("model"),Xx=Uo("model_url"),Z0=Uo("inline_boundaries"),Tb=Uo("formats"),tw=Uo("preview_styles"),hy=Uo("format_empty_lines"),eu=Uo("format_noneditable_selector"),Eh=Uo("custom_ui_selector"),K1=Uo("inline"),xg=Uo("hidden_input"),Cb=Uo("submit_patch"),nw=Uo("add_form_submit_trigger"),Ab=Uo("add_unload_trigger"),_g=Uo("custom_undo_redo_levels"),J1=Uo("disable_nodechange"),py=Uo("readonly"),Gx=Uo("editable_root"),Mb=Uo("content_css_cors"),ev=Uo("plugins"),e3=Uo("external_plugins"),my=Uo("block_unsupported_drop"),_d=Uo("visual"),Kx=Uo("visual_table_class"),Jx=Uo("visual_anchor_class"),e2=Uo("iframe_aria_text"),Eb=Uo("setup"),Wh=Uo("init_instance_callback"),t2=Uo("urlconverter_callback"),Pb=Uo("auto_focus"),zm=Uo("browser_spellcheck"),rw=Uo("protect"),n2=Uo("paste_block_drop"),Fm=Uo("paste_data_images"),q0=Uo("paste_preprocess"),tv=Uo("paste_postprocess"),nv=Uo("newdocument_content"),rv=Uo("paste_webkit_styles"),t3=Uo("paste_remove_styles_if_webkit"),ow=Uo("paste_merge_formats"),iw=Uo("smart_paste"),aw=Uo("paste_as_text"),gy=Uo("paste_tab_spaces"),W0=Uo("allow_html_data_urls"),wg=Uo("text_patterns"),n3=Uo("text_patterns_lookup"),vy=Uo("noneditable_class"),sw=Uo("editable_class"),pp=Uo("noneditable_regexp"),r2=Uo("preserve_cdata"),yy=Uo("highlight_on_focus"),Rb=Uo("xss_sanitization"),wd=Uo("init_content_sync"),Og=r=>r.options.isSet("text_patterns_lookup"),s0=r=>mo.explode(r.options.get("font_size_style_values")),Lb=r=>mo.explode(r.options.get("font_size_classes")),l0=r=>r.options.get("encoding")==="xml",Y0=r=>mo.explode(r.options.get("images_file_types")),CS=Uo("table_tab_navigation"),r3=Uo("details_initial_state"),o3=Uo("details_serialized_state"),o2=Uo("sandbox_iframes"),i2=r=>r.options.get("sandbox_iframes_exclusions"),AS=Uo("convert_unsafe_embeds"),Ib=Uo("license_key"),lw=Uo("api_key"),MS=ne,cw=Nt,qp=r=>{const g=r.parentNode;g&&g.removeChild(r)},ov=r=>{const g=vd(r);return{count:r.length-g.length,text:g}},i3=r=>{let g;for(;(g=r.data.lastIndexOf(nc))!==-1;)r.deleteData(g,1)},Nm=(r,g)=>(by(r),g),uw=(r,g)=>{const B=ov(r.data.substr(0,g.offset())),H=ov(r.data.substr(g.offset()));return(B.text+H.text).length>0?(i3(r),qr(r,g.offset()-B.count)):g},ES=(r,g)=>{const B=g.container(),H=ae(Ee(B.childNodes),r).map(re=>recw(r)&&g.container()===r?uw(r,g):Nm(r,g),a3=(r,g)=>g.container()===r.parentNode?ES(r,g):Nm(r,g),zM=(r,g)=>qr.isTextPosition(g)?ET(r,g):a3(r,g),by=r=>{MS(r)&&Ch(r)&&(Z_(r)?r.removeAttribute("data-mce-caret"):qp(r)),cw(r)&&(i3(r),r.data.length===0&&qp(r))},ID=rr,a2=Zr,s3=Dr,s2="*[contentEditable=false],video,audio,embed,object",l2=(r,g,B)=>{const H=Il(g.getBoundingClientRect(),B);let re,be;if(r.tagName==="BODY"){const Ke=r.ownerDocument.documentElement;re=r.scrollLeft||Ke.scrollLeft,be=r.scrollTop||Ke.scrollTop}else{const Ke=r.getBoundingClientRect();re=r.scrollLeft-Ke.left,be=r.scrollTop-Ke.top}H.left+=re,H.right+=re,H.top+=be,H.bottom+=be,H.width=1;let Re=g.offsetWidth-g.clientWidth;return Re>0&&(B&&(Re*=-1),H.left+=Re,H.right+=Re),H},FM=r=>{var g,B;const H=Zl(sr.fromDom(r),s2);for(let re=0;re{const re=Ys();let be,Re;const Ke=dc(r),ct=r.dom,kt=(Rn,qn)=>{let pr;if(Wt(),s3(qn))return null;if(B(qn)){const Tr=W_(Ke,qn,Rn),wr=l2(g,qn,Rn);ct.setStyle(Tr,"top",wr.top),ct.setStyle(Tr,"caret-color","transparent"),Re=Tr;const Ur=ct.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});ct.setStyles(Ur,{...wr}),ct.add(g,Ur),re.set({caret:Ur,element:qn,before:Rn}),Rn&&ct.addClass(Ur,"mce-visual-caret-before"),Jt(),pr=qn.ownerDocument.createRange(),pr.setStart(Tr,0),pr.setEnd(Tr,0)}else return Re=q_(qn,Rn),pr=qn.ownerDocument.createRange(),l3(Re.nextSibling)?(pr.setStart(Re,0),pr.setEnd(Re,0)):(pr.setStart(Re,1),pr.setEnd(Re,1)),pr;return pr},Wt=()=>{FM(g),Re&&(by(Re),Re=null),re.on(Rn=>{ct.remove(Rn.caret),re.clear()}),be&&(clearInterval(be),be=void 0)},Jt=()=>{be=setInterval(()=>{re.on(Rn=>{H()?ct.toggleClass(Rn.caret,"mce-visual-caret-hidden"):ct.addClass(Rn.caret,"mce-visual-caret-hidden")})},500)};return{show:kt,hide:Wt,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{re.on(Rn=>{const qn=l2(g,Rn.element,Rn.before);ct.setStyles(Rn.caret,{...qn})})},destroy:()=>clearInterval(be)}},NM=()=>fr.browser.isFirefox(),l3=r=>ID(r)||a2(r),iv=r=>(l3(r)||Et(r)&&NM())&&Lp(sr.fromDom(r)).exists(js),PS=Sn,RS=rr,$M=Zr,LS=Je("display","block table table-cell table-caption list-item"),RT=Ch,LT=gg,IT=ne,c2=Nt,c3=ih,Db=r=>r>0,av=r=>r<0,fw=(r,g)=>{let B;for(;B=r(g);)if(!LT(B))return B;return null},u2=(r,g,B,H,re)=>{const be=new kc(r,H),Re=RS(r)||LT(r);let Ke;if(av(g)){if(Re&&(Ke=fw(be.prev.bind(be),!0),B(Ke)))return Ke;for(;Ke=fw(be.prev.bind(be),re);)if(B(Ke))return Ke}if(Db(g)){if(Re&&(Ke=fw(be.next.bind(be),!0),B(Ke)))return Ke;for(;Ke=fw(be.next.bind(be),re);)if(B(Ke))return Ke}return null},VM=(r,g)=>{const B=re=>PS(re.dom),H=re=>re.dom===g;return ms(sr.fromDom(r),B,H).map(re=>re.dom).getOr(g)},c0=(r,g)=>{for(;r&&r!==g;){if(LS(r))return r;r=r.parentNode}return null},Wp=(r,g,B)=>c0(r.container(),B)===c0(g.container(),B),u3=(r,g)=>{if(!g)return Y.none();const B=g.container(),H=g.offset();return IT(B)?Y.from(B.childNodes[H+r]):Y.none()},UM=(r,g)=>{var B;const re=((B=g.ownerDocument)!==null&&B!==void 0?B:document).createRange();return r?(re.setStartBefore(g),re.setEndBefore(g)):(re.setStartAfter(g),re.setEndAfter(g)),re},DD=(r,g,B)=>c0(g,r)===c0(B,r),Bb=(r,g,B)=>{const H=r?"previousSibling":"nextSibling";let re=B;for(;re&&re!==g;){let be=re[H];if(be&&RT(be)&&(be=be[H]),RS(be)||$M(be)){if(DD(g,be,re))return be;break}if(c3(be))break;re=re.parentNode}return null},f2=U(UM,!0),d2=U(UM,!1),$d=(r,g,B)=>{let H;const re=U(Bb,!0,g),be=U(Bb,!1,g),Re=B.startContainer,Ke=B.startOffset;if(gg(Re)){const ct=c2(Re)?Re.parentNode:Re,kt=ct.getAttribute("data-mce-caret");if(kt==="before"&&(H=ct.nextSibling,iv(H)))return f2(H);if(kt==="after"&&(H=ct.previousSibling,iv(H)))return d2(H)}if(!B.collapsed)return B;if(Nt(Re)){if(RT(Re)){if(r===1){if(H=be(Re),H)return f2(H);if(H=re(Re),H)return d2(H)}if(r===-1){if(H=re(Re),H)return d2(H);if(H=be(Re),H)return f2(H)}return B}if(jp(Re)&&Ke>=Re.data.length-1)return r===1&&(H=be(Re),H)?f2(H):B;if(U0(Re)&&Ke<=1)return r===-1&&(H=re(Re),H)?d2(H):B;if(Ke===Re.data.length)return H=be(Re),H?f2(H):B;if(Ke===0)return H=re(Re),H?d2(H):B}return B},f3=(r,g)=>u3(r?0:-1,g).filter(RS),zb=(r,g,B)=>{const H=$d(r,g,B);return r===-1?qr.fromRangeStart(H):qr.fromRangeEnd(H)},d3=r=>Y.from(r.getNode()).map(sr.fromDom),DT=r=>Y.from(r.getNode(!0)).map(sr.fromDom),IS=(r,g)=>{let B=g;for(;B=r(B);)if(B.isVisible())return B;return B},h3=(r,g)=>{const B=Wp(r,g);return!B&&On(r.getNode())?!0:B};var Af;(function(r){r[r.Backwards=-1]="Backwards",r[r.Forwards=1]="Forwards"})(Af||(Af={}));const p3=rr,Sg=Nt,DS=ne,BS=On,sv=ih,BT=GO,xy=Zx,m3=(r,g)=>{const B=[];let H=r;for(;H&&H!==g;)B.push(H),H=H.parentNode;return B},g3=(r,g)=>r.hasChildNodes()&&g{if(Db(r)){if(sv(g.previousSibling)&&!Sg(g.previousSibling))return qr.before(g);if(Sg(g))return qr(g,0)}if(av(r)){if(sv(g.nextSibling)&&!Sg(g.nextSibling))return qr.after(g);if(Sg(g))return qr(g,g.data.length)}return av(r)?BS(g)?qr.before(g):qr.after(g):qr.before(g)},Fb=(r,g)=>{const B=g.nextSibling;return B&&sv(B)?Sg(B)?qr(B,0):qr.before(B):h2(Af.Forwards,qr.after(g),r)},h2=(r,g,B)=>{let H,re,be,Re;if(!DS(B)||!g)return null;if(g.isEqual(qr.after(B))&&B.lastChild){if(Re=qr.after(B.lastChild),av(r)&&sv(B.lastChild)&&DS(B.lastChild))return BS(B.lastChild)?qr.before(B.lastChild):Re}else Re=g;const Ke=Re.container();let ct=Re.offset();if(Sg(Ke)){if(av(r)&&ct>0)return qr(Ke,--ct);if(Db(r)&&ct0&&(re=g3(Ke,ct-1),sv(re)))return!BT(re)&&(be=u2(re,r,xy,re),be)?Sg(be)?qr(be,be.data.length):qr.after(be):Sg(re)?qr(re,re.data.length):qr.before(re);if(Db(r)&&ct({next:g=>h2(Af.Forwards,g,r),prev:g=>h2(Af.Backwards,g,r)}),zT=(r,g,B)=>{const H=r?qr.before(B):qr.after(B);return Yp(r,g,H)},FS=r=>On(r)?qr.before(r):qr.after(r),NS=r=>qr.isTextPosition(r)?r.offset()===0:ih(r.getNode()),FT=r=>{if(qr.isTextPosition(r)){const g=r.container();return r.offset()===g.data.length}else return ih(r.getNode(!0))},$S=(r,g)=>!qr.isTextPosition(r)&&!qr.isTextPosition(g)&&r.getNode()===g.getNode(!0),NT=r=>!qr.isTextPosition(r)&&On(r.getNode()),$T=(r,g,B)=>r?!$S(g,B)&&!NT(g)&&FT(g)&&NS(B):!$S(B,g)&&NS(g)&&FT(B),Yp=(r,g,B)=>{const H=Od(g);return Y.from(r?H.next(B):H.prev(B))},lv=(r,g,B)=>Yp(r,g,B).bind(H=>Wp(B,H,g)&&$T(r,B,H)?Yp(r,g,H):Y.some(H)),VT=(r,g,B,H)=>lv(r,g,B).bind(re=>H(re)?VT(r,g,re,H):Y.some(re)),Nb=(r,g)=>{const B=r?g.firstChild:g.lastChild;return Nt(B)?Y.some(qr(B,r?0:B.data.length)):B?ih(B)?Y.some(r?qr.before(B):FS(B)):zT(r,g,B):Y.none()},sh=U(Yp,!0),mp=U(Yp,!1),lh=U(Nb,!0),Xp=U(Nb,!1),v3="_mce_caret",Gp=r=>ne(r)&&r.id===v3,$b=(r,g)=>{let B=g;for(;B&&B!==r;){if(Gp(B))return B;B=B.parentNode}return null},jM=r=>v(r.start),UT=r=>_t(r,"rng"),QM=r=>_t(r,"id"),jT=r=>_t(r,"name"),QT=r=>mo.isArray(r.start),VS=r=>!jT(r)&&R(r.forward)?r.forward:!0,US=(r,g)=>(ne(g)&&r.isBlock(g)&&!g.innerHTML&&(g.innerHTML='
'),g),ed=(r,g)=>{const B=Y.from(Or(r.getRoot(),g.start)),H=Y.from(Or(r.getRoot(),g.end));return cs(B,H,(re,be)=>{const Re=r.createRng();return Re.setStart(re.container(),re.offset()),Re.setEnd(be.container(),be.offset()),{range:Re,forward:VS(g)}})},jS=(r,g)=>{var B;const re=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(nc);r.appendChild(re),g.setStart(re,0),g.setEnd(re,0)},_y=r=>!r.hasChildNodes(),p2=(r,g)=>Xp(r).fold(oe,B=>(g.setStart(B.container(),B.offset()),g.setEnd(B.container(),B.offset()),!0)),QS=(r,g,B)=>_y(g)&&$b(r,g)?(jS(g,B),!0):!1,y3=(r,g,B,H)=>{const re=B[g?"start":"end"],be=r.getRoot();if(re){let Re=be,Ke=re[0];for(let ct=re.length-1;Re&&ct>=1;ct--){const kt=Re.childNodes;if(QS(be,Re,H))return!0;if(re[ct]>kt.length-1)return QS(be,Re,H)?!0:p2(Re,H);Re=kt[re[ct]]}Nt(Re)&&(Ke=Math.min(re[0],Re.data.length)),ne(Re)&&(Ke=Math.min(re[0],Re.childNodes.length)),g?H.setStart(Re,Ke):H.setEnd(Re,Ke)}return!0},dw=r=>Nt(r)&&r.data.length>0,HS=(r,g,B)=>{const H=r.get(B.id+"_"+g),re=H==null?void 0:H.parentNode,be=B.keep;if(H&&re){let Re,Ke;if(g==="start"?be?H.hasChildNodes()?(Re=H.firstChild,Ke=1):dw(H.nextSibling)?(Re=H.nextSibling,Ke=0):dw(H.previousSibling)?(Re=H.previousSibling,Ke=H.previousSibling.data.length):(Re=re,Ke=r.nodeIndex(H)+1):(Re=re,Ke=r.nodeIndex(H)):be?H.hasChildNodes()?(Re=H.firstChild,Ke=1):dw(H.previousSibling)?(Re=H.previousSibling,Ke=H.previousSibling.data.length):(Re=re,Ke=r.nodeIndex(H)):(Re=re,Ke=r.nodeIndex(H)),!be){const ct=H.previousSibling,kt=H.nextSibling;mo.each(mo.grep(H.childNodes),Jt=>{Nt(Jt)&&(Jt.data=Jt.data.replace(/\uFEFF/g,""))});let Wt;for(;Wt=r.get(B.id+"_"+g);)r.remove(Wt,!0);if(Nt(kt)&&Nt(ct)&&!fr.browser.isOpera()){const Jt=ct.data.length;ct.appendData(kt.data),r.remove(kt),Re=ct,Ke=Jt}}return Y.some(qr(Re,Ke))}else return Y.none()},m2=(r,g)=>{const B=r.createRng();return y3(r,!0,g,B)&&y3(r,!1,g,B)?Y.some({range:B,forward:VS(g)}):Y.none()},ZS=(r,g)=>{const B=HS(r,"start",g),H=HS(r,"end",g);return cs(B,H.or(B),(re,be)=>{const Re=r.createRng();return Re.setStart(US(r,re.container()),re.offset()),Re.setEnd(US(r,be.container()),be.offset()),{range:Re,forward:VS(g)}})},X0=(r,g)=>Y.from(r.select(g.name)[g.index]).map(B=>{const H=r.createRng();return H.selectNode(B),{range:H,forward:!0}}),Vb=(r,g)=>{const B=r.dom;if(g){if(QT(g))return m2(B,g);if(jM(g))return ed(B,g);if(QM(g))return ZS(B,g);if(jT(g))return X0(B,g);if(UT(g))return Y.some({range:g.rng,forward:VS(g)})}return Y.none()},HT=(r,g,B)=>Bs(r,g,B),cv=(r,g)=>{Vb(r,g).each(({range:B,forward:H})=>{r.setRng(B,H)})},Kp=r=>ne(r)&&r.tagName==="SPAN"&&r.getAttribute("data-mce-type")==="bookmark",G0=(r=>g=>r===g)(Ea),Ub=r=>r!==""&&` \f -\r \v`.indexOf(r)!==-1,qS=r=>!Ub(r)&&!G0(r)&&!El(r),b3=r=>{const g=[];if(r)for(let B=0;B$e(r,g=>{const B=Pm(g);return B?[sr.fromDom(B)]:[]}),HM=r=>b3(r).length>1,ZM=r=>Te(qT(r),z1),WT=r=>Zl(r,"td[data-mce-selected],th[data-mce-selected]"),wy=(r,g)=>{const B=WT(g);return B.length>0?B:ZM(r)},g2=r=>wy(b3(r.selection.getSel()),sr.fromDom(r.getBody())),hw=(r,g)=>xl(r,"table",g),qM=r=>{const g=r.startContainer,B=r.startOffset;return Nt(g)?B===0?Y.some(sr.fromDom(g)):Y.none():Y.from(g.childNodes[B]).map(sr.fromDom)},WM=r=>{const g=r.endContainer,B=r.endOffset;return Nt(g)?B===g.data.length?Y.some(sr.fromDom(g)):Y.none():Y.from(g.childNodes[B-1]).map(sr.fromDom)},v2=r=>Uf(r).fold($([r]),g=>[r].concat(v2(g))),WS=r=>zl(r).fold($([r]),g=>sa(g)==="br"?Eu(g).map(B=>[r].concat(WS(B))).getOr([]):[r].concat(WS(g))),x3=(r,g)=>cs(qM(g),WM(g),(B,H)=>{const re=De(v2(r),U(Fa,B)),be=De(WS(r),U(Fa,H));return re.isSome()&&be.isSome()}).getOr(!1),YS=(r,g,B,H)=>{const re=B,be=new kc(B,re),Re=qt(r.schema.getMoveCaretBeforeOnEnterElements(),(ct,kt)=>!ce(["td","th","table"],kt.toLowerCase()));let Ke=B;do{if(Nt(Ke)&&mo.trim(Ke.data).length!==0){H?g.setStart(Ke,0):g.setEnd(Ke,Ke.data.length);return}if(Re[Ke.nodeName]){H?g.setStartBefore(Ke):Ke.nodeName==="BR"?g.setEndBefore(Ke):g.setEndAfter(Ke);return}}while(Ke=H?be.next():be.prev());re.nodeName==="BODY"&&(H?g.setStart(re,0):g.setEnd(re,re.childNodes.length))},XS=r=>{const g=r.selection.getSel();return E(g)&&g.rangeCount>0},y2=(r,g)=>{const B=g2(r);B.length>0?ye(B,H=>{const re=H.dom,be=r.dom.createRng();be.setStartBefore(re),be.setEndAfter(re),g(be,!0)}):g(r.selection.getRng(),!1)},GS=(r,g,B)=>{const H=Zi(r,g);B(H),r.moveToBookmark(H)},b2=r=>L(r==null?void 0:r.nodeType),KS=r=>ne(r)&&!Kp(r)&&!Gp(r)&&!dt(r),hs=(r,g)=>{if(KS(g)&&!/^(TD|TH)$/.test(g.nodeName)){const B=r.getAttrib(g,"data-mce-selected"),H=parseInt(B,10);return!isNaN(H)&&H>0}else return!1},K0=(r,g,B)=>{const{selection:H,dom:re}=r,be=H.getNode(),Re=rr(be);GS(H,!0,()=>{g()}),Re&&rr(be)&&re.isChildOf(be,r.getBody())?r.selection.select(be):B(H.getStart())&&jb(re,H)},jb=(r,g)=>{var B,H;const re=g.getRng(),{startContainer:be,startOffset:Re}=re,Ke=g.getNode();if(!hs(r,Ke)&&ne(be)){const ct=be.childNodes,kt=r.getRoot();let Wt;if(Re{if(r){const H=g?"nextSibling":"previousSibling";for(r=B?r:r[H];r;r=r[H])if(ne(r)||!e5(r))return r}},JS=(r,g)=>!!r.getTextBlockElements()[g.nodeName.toLowerCase()]||xm(r,g),uv=(r,g,B)=>r.schema.isValidChild(g,B),e5=(r,g=!1)=>{if(E(r)&&Nt(r)){const B=g?r.data.replace(/ /g," "):r.data;return Sf(B)}else return!1},_3=r=>E(r)&&Nt(r)&&r.length===0,t5=(r,g)=>{const B="[data-mce-cef-wrappable]",H=eu(r),re=_r(H)?B:`${B},${H}`;return _f(sr.fromDom(g),re)},n5=(r,g)=>{const B=r.dom;return KS(g)&&B.getContentEditable(g)==="false"&&t5(r,g)&&B.select('[contenteditable="true"]',g).length===0},Qb=(r,g)=>C(r)?r(g):(E(g)&&(r=r.replace(/%(\w+)/g,(B,H)=>g[H]||B)),r),w3=(r,g)=>(r=r||"",g=g||"",r=""+(r.nodeName||r),g=""+(g.nodeName||g),r.toLowerCase()===g.toLowerCase()),Hb=(r,g)=>{if(T(r))return null;{let B=String(r);return(g==="color"||g==="backgroundColor")&&(B=Am(B)),g==="fontWeight"&&r===700&&(B="bold"),g==="fontFamily"&&(B=B.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),B}},O3=(r,g,B)=>{const H=r.getStyle(g,B);return Hb(H,B)},YT=(r,g)=>{let B;return r.getParent(g,H=>ne(H)?(B=r.getStyle(H,"text-decoration"),!!B&&B!=="none"):!1),B},x2=(r,g,B)=>r.getParents(g,B,r.getRoot()),S3=(r,g,B)=>{const H=r.formatter.get(g);return E(H)&&de(H,B)},YM=(r,g)=>S3(r,g,H=>{const re=be=>C(be)||be.length>1&&be.charAt(0)==="%";return de(["styles","attributes"],be=>Ct(H,be).exists(Re=>{const Ke=A(Re)?Re:Gt(Re);return de(Ke,re)}))}),k3=(r,g,B)=>{const H=["inline","block","selector","attributes","styles","classes"],re=be=>qt(be,(Re,Ke)=>de(H,ct=>ct===Ke));return S3(r,g,be=>{const Re=re(be);return S3(r,B,Ke=>{const ct=re(Ke);return gn(Re,ct)})})},fv=r=>nn(r,"block"),XM=r=>fv(r)&&r.wrapper===!0,mw=r=>fv(r)&&r.wrapper!==!0,$m=r=>nn(r,"selector"),Mf=r=>nn(r,"inline"),GM=r=>$m(r)&&Mf(r)&&Aa(Ct(r,"mixed"),!0),u0=r=>$m(r)&&r.expand!==!1&&!Mf(r),KM=r=>{const g=[];let B=r;for(;B;){if(Nt(B)&&B.data!==nc||B.childNodes.length>1)return[];ne(B)&&g.push(B),B=B.firstChild}return g},XT=r=>KM(r).length>0,gw=r=>Gp(r.dom)&&XT(r.dom),_2=Kp,GT=x2,KT=e5,BD=JS,zD=r=>On(r)&&r.getAttribute("data-mce-bogus")&&!r.nextSibling,JT=(r,g)=>{let B=g;for(;B;){if(ne(B)&&r.getContentEditable(B))return r.getContentEditable(B)==="false"?B:g;B=B.parentNode}return g},e6=(r,g,B,H)=>{const re=g.data;if(r){for(let be=B;be>0;be--)if(H(re.charAt(be-1)))return be}else for(let be=B;bee6(r,g,B,H=>G0(H)||Ub(H)),Ef=(r,g,B)=>e6(r,g,B,qS),vw=(r,g,B,H,re,be)=>{let Re;const Ke=r.getParent(B,r.isBlock)||g,ct=(Wt,Jt,ln)=>{const kn=Em(r),Vn=re?kn.backwards:kn.forwards;return Y.from(Vn(Wt,Jt,(Rn,qn)=>_2(Rn.parentNode)?-1:(Re=Rn,ln(re,Rn,qn)),Ke))};return ct(B,H,hi).bind(Wt=>be?ct(Wt.container,Wt.offset+(re?-1:0),Ef):Y.some(Wt)).orThunk(()=>Re?Y.some({container:Re,offset:re?0:Re.length}):Y.none())},Pf=(r,g,B,H,re)=>{const be=H[re];Nt(H)&&_r(H.data)&&be&&(H=be);const Re=GT(r,H);for(let Ke=0;Ke{var re;let be=B;const Re=r.getRoot(),Ke=g[0];if(fv(Ke)&&(be=Ke.wrapper?null:r.getParent(B,Ke.block,Re)),!be){const ct=(re=r.getParent(B,"LI,TD,TH,SUMMARY"))!==null&&re!==void 0?re:Re;be=r.getParent(Nt(B)?B.parentNode:B,kt=>kt!==Re&&BD(r.schema,kt),ct)}if(be&&fv(Ke)&&Ke.wrapper&&(be=GT(r,be,"ul,ol").reverse()[0]||be),!be)for(be=B;be&&be[H]&&!r.isBlock(be[H])&&(be=be[H],!w3(be,"br")););return be||B},r5=(r,g,B,H)=>{const re=B.parentNode;return E(B[H])?!1:re===g||T(re)||r.isBlock(re)?!0:r5(r,g,re,H)},Zb=(r,g,B,H,re)=>{let be=B;const Re=re?"previousSibling":"nextSibling",Ke=r.getRoot();if(Nt(B)&&!KT(B)&&(re?H>0:H_2(r.parentNode)||_2(r),Oy=(r,g,B,H=!1)=>{let{startContainer:re,startOffset:be,endContainer:Re,endOffset:Ke}=g;const ct=B[0];return ne(re)&&re.hasChildNodes()&&(re=fi(re,be),Nt(re)&&(be=0)),ne(Re)&&Re.hasChildNodes()&&(Re=fi(Re,g.collapsed?Ke:Ke-1),Nt(Re)&&(Ke=Re.data.length)),re=JT(r,re),Re=JT(r,Re),T3(re)&&(re=_2(re)?re:re.parentNode,g.collapsed?re=re.previousSibling||re:re=re.nextSibling||re,Nt(re)&&(be=g.collapsed?re.length:0)),T3(Re)&&(Re=_2(Re)?Re:Re.parentNode,g.collapsed?Re=Re.nextSibling||Re:Re=Re.previousSibling||Re,Nt(Re)&&(Ke=g.collapsed?0:Re.length)),g.collapsed&&(vw(r,r.getRoot(),re,be,!0,H).each(({container:Jt,offset:ln})=>{re=Jt,be=ln}),vw(r,r.getRoot(),Re,Ke,!1,H).each(({container:Jt,offset:ln})=>{Re=Jt,Ke=ln})),(Mf(ct)||ct.block_expand)&&((!Mf(ct)||!Nt(re)||be===0)&&(re=Zb(r,B,re,be,!0)),(!Mf(ct)||!Nt(Re)||Ke===Re.data.length)&&(Re=Zb(r,B,Re,Ke,!1))),u0(ct)&&(re=Pf(r,B,g,re,"previousSibling"),Re=Pf(r,B,g,Re,"nextSibling")),(fv(ct)||$m(ct))&&(re=Vm(r,B,re,"previousSibling"),Re=Vm(r,B,Re,"nextSibling"),fv(ct)&&(r.isBlock(re)||(re=Zb(r,B,re,be,!0),Nt(re)&&(be=0)),r.isBlock(Re)||(Re=Zb(r,B,Re,Ke,!1),Nt(Re)&&(Ke=Re.data.length)))),ne(re)&&re.parentNode&&(be=r.nodeIndex(re),re=re.parentNode),ne(Re)&&Re.parentNode&&(Ke=r.nodeIndex(Re)+1,Re=Re.parentNode),{startContainer:re,startOffset:be,endContainer:Re,endOffset:Ke}},yw=(r,g,B)=>{var H;const re=g.startOffset,be=fi(g.startContainer,re),Re=g.endOffset,Ke=fi(g.endContainer,Re-1),ct=qn=>{const pr=qn[0];Nt(pr)&&pr===be&&re>=pr.data.length&&qn.splice(0,1);const Tr=qn[qn.length-1];return Re===0&&qn.length>0&&Tr===Ke&&Nt(Tr)&&qn.splice(qn.length-1,1),qn},kt=(qn,pr,Tr)=>{const wr=[];for(;qn&&qn!==Tr;qn=qn[pr])wr.push(qn);return wr},Wt=(qn,pr)=>r.getParent(qn,Tr=>Tr.parentNode===pr,pr),Jt=(qn,pr,Tr)=>{const wr=Tr?"nextSibling":"previousSibling";for(let Ur=qn,wo=Ur.parentNode;Ur&&Ur!==pr;Ur=wo){wo=Ur.parentNode;const jo=kt(Ur===qn?Ur:Ur[wr],wr);jo.length&&(Tr||jo.reverse(),B(ct(jo)))}};if(be===Ke)return B(ct([be]));const ln=(H=r.findCommonAncestor(be,Ke))!==null&&H!==void 0?H:r.getRoot();if(r.isChildOf(be,Ke))return Jt(be,ln,!0);if(r.isChildOf(Ke,be))return Jt(Ke,ln);const kn=Wt(be,ln)||be,Vn=Wt(Ke,ln)||Ke;Jt(be,kn,!0);const Rn=kt(kn===be?kn:kn.nextSibling,"nextSibling",Vn===Ke?Vn.nextSibling:Vn);Rn.length&&B(ct(Rn)),Jt(Ke,Vn)},t6=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],JM=r=>Ss(r)&&ry(r)===nc,eE=(r,g,B,H)=>Hu(g).fold(()=>"skipping",re=>H==="br"||JM(g)?"valid":zx(g)?"existing":Gp(g.dom)?"caret":de(t6,be=>_f(g,be))?"valid-block":!uv(r,B,H)||!uv(r,sa(re),B)?"invalid-child":"valid"),tE=(r,g)=>{const B=Oy(r.dom,g,[{inline:"span"}]);g.setStart(B.startContainer,B.startOffset),g.setEnd(B.endContainer,B.endOffset),r.selection.setRng(g)},Sy=(r,g,B,H,re,be)=>{const{uid:Re=g,...Ke}=B;xf(r,ey()),Es(r,`${ty()}`,Re),Es(r,`${hg()}`,H);const{attributes:ct={},classes:kt=[]}=re(Re,Ke);if(ef(r,ct),gd(r,kt),be){kt.length>0&&Es(r,`${z0()}`,kt.join(","));const Wt=nt(ct);Wt.length>0&&Es(r,`${pg()}`,Wt.join(","))}},bw=r=>{nf(r,ey()),gc(r,`${ty()}`),gc(r,`${hg()}`),gc(r,`${E1()}`);const g=ad(r,`${pg()}`).map(H=>H.split(",")).getOr([]),B=ad(r,`${z0()}`).map(H=>H.split(",")).getOr([]);ye(g,H=>gc(r,H)),U_(r,B),gc(r,`${z0()}`),gc(r,`${pg()}`)},xw=(r,g,B,H,re)=>{const be=sr.fromTag("span",r);return Sy(be,g,B,H,re,!1),be},C3=(r,g,B,H,re,be)=>{const Re=[],Ke=xw(r.getDoc(),B,be,H,re),ct=Ys(),kt=()=>{ct.clear()},Wt=()=>ct.get().getOrThunk(()=>{const Vn=Th(Ke);return Re.push(Vn),ct.set(Vn),Vn}),Jt=Vn=>{ye(Vn,ln)},ln=Vn=>{switch(eE(r,Vn,"span",sa(Vn))){case"invalid-child":{kt();const qn=Oc(Vn);Jt(qn),kt();break}case"valid-block":{kt(),Sy(Vn,B,be,H,re,!0);break}case"valid":{const qn=Wt();Sc(Vn,qn);break}}},kn=Vn=>{const Rn=ve(Vn,sr.fromDom);Jt(Rn)};return yw(r.dom,g,Vn=>{kt(),kn(Vn)}),Re},gp=(r,g,B,H)=>{r.undoManager.transact(()=>{const re=r.selection,be=re.getRng(),Re=g2(r).length>0,Ke=L1("mce-annotation");if(be.collapsed&&!Re&&tE(r,be),re.getRng().collapsed&&!Re){const ct=xw(r.getDoc(),Ke,H,g,B.decorate);Id(ct,Ea),re.getRng().insertNode(ct.dom),re.select(ct.dom)}else GS(re,!1,()=>{y2(r,ct=>{C3(r,ct,Ke,g,B.decorate,H)})})})},J0=r=>{const g=V_();Nx(r,g);const B=$_(r,g),H=Ju("span"),re=be=>{ye(be,Re=>{H(Re)?vu(Re):bw(Re)})};return{register:(be,Re)=>{g.register(be,Re)},annotate:(be,Re)=>{g.lookup(be).each(Ke=>{gp(r,be,Ke,Re)})},annotationChanged:(be,Re)=>{B.addListener(be,Re)},remove:be=>{R1(r,Y.some(be)).each(({elements:Re})=>{const Ke=r.selection.getBookmark();re(Re),r.selection.moveToBookmark(Ke)})},removeAll:be=>{const Re=r.selection.getBookmark();Ge(Fx(r,be),(Ke,ct)=>{re(Ke)}),r.selection.moveToBookmark(Re)},getAll:be=>{const Re=Fx(r,be);return ht(Re,Ke=>ve(Ke,ct=>ct.dom))}}},ky=r=>({getBookmark:U(HT,r),moveToBookmark:U(cv,r)});ky.isBookmarkNode=Kp;const Ty=(r,g,B)=>B.collapsed?!1:de(B.getClientRects(),H=>ay(H,r,g)),nE=(r,g)=>r.dispatch("PreProcess",g),A3=(r,g)=>r.dispatch("PostProcess",g),M3=r=>{r.dispatch("remove")},rE=r=>{r.dispatch("detach")},oE=(r,g)=>{r.dispatch("SwitchMode",{mode:g})},iE=(r,g,B,H,re)=>{r.dispatch("ObjectResizeStart",{target:g,width:B,height:H,origin:re})},aE=(r,g,B,H,re)=>{r.dispatch("ObjectResized",{target:g,width:B,height:H,origin:re})},n6=r=>{r.dispatch("PreInit")},E3=r=>{r.dispatch("PostRender")},sE=r=>{r.dispatch("Init")},P3=(r,g)=>{r.dispatch("PlaceholderToggle",{state:g})},Sd=(r,g,B)=>{r.dispatch(g,B)},Um=(r,g,B,H)=>{r.dispatch("FormatApply",{format:g,node:B,vars:H})},Jp=(r,g,B,H)=>{r.dispatch("FormatRemove",{format:g,node:B,vars:H})},R3=(r,g)=>r.dispatch("BeforeSetContent",g),L3=(r,g)=>r.dispatch("SetContent",g),r6=(r,g)=>r.dispatch("BeforeGetContent",g),o5=(r,g)=>r.dispatch("GetContent",g),o6=(r,g)=>{r.dispatch("AutocompleterStart",g)},i5=(r,g)=>{r.dispatch("AutocompleterUpdate",g)},i6=(r,g)=>{r.dispatch("AutocompleterUpdateActiveRange",g)},a6=r=>{r.dispatch("AutocompleterEnd")},lE=(r,g,B)=>r.dispatch("PastePreProcess",{content:g,internal:B}),cE=(r,g,B)=>r.dispatch("PastePostProcess",{node:g,internal:B}),I3=(r,g)=>r.dispatch("PastePlainTextToggle",{state:g}),a5=(r,g)=>r.dispatch("EditableRootStateChange",{state:g}),Fo={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:r=>r.shiftKey||r.ctrlKey||r.altKey||Fo.metaKeyPressed(r),metaKeyPressed:r=>fr.os.isMacOS()||fr.os.isiOS()?r.metaKey:r.ctrlKey&&!r.altKey},Ph="data-mce-selected",s6="table,img,figure.image,hr,video,span.mce-preview-object,details",s5=Math.abs,_w=Math.round,ww={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},D3=r=>r.type==="longpress"||r.type.indexOf("touch")===0,Ow=(r,g)=>{const B=g.dom,H=g.getDoc(),re=document,be=g.getBody();let Re,Ke,ct,kt,Wt,Jt,ln,kn,Vn,Rn,qn,pr,Tr,wr,Ur,wo,jo;const di=ci=>E(ci)&&(An(ci)||B.is(ci,"figure.image")),lo=ci=>Zr(ci)||B.hasClass(ci,"mce-preview-object"),eo=(ci,Va)=>{if(D3(ci)){const Xa=ci.touches[0];return di(ci.target)&&!Ty(Xa.clientX,Xa.clientY,Va)}else return di(ci.target)&&!Ty(ci.clientX,ci.clientY,Va)},xo=ci=>{const Va=ci.target;eo(ci,g.selection.getRng())&&!ci.isDefaultPrevented()&&g.selection.select(Va)},bi=ci=>B.hasClass(ci,"mce-preview-object")&&E(ci.firstElementChild)?[ci,ci.firstElementChild]:B.is(ci,"figure.image")?[ci.querySelector("img")]:[ci],Bi=ci=>{const Va=bd(g);return!Va||ci.getAttribute("data-mce-resize")==="false"||ci===g.getBody()?!1:B.hasClass(ci,"mce-preview-object")&&E(ci.firstElementChild)?_f(sr.fromDom(ci.firstElementChild),Va):_f(sr.fromDom(ci),Va)},$a=(ci,Va)=>{if(lo(Va))return ci.create("img",{src:fr.transparentSrc});if(Et(Va)){const If=xr(kt.name,"n")?Xe:tt,el=Va.cloneNode(!0);return If(ci.select("tr",el)).each(Yu=>{const Pg=ci.select("td,th",Yu);ci.setStyle(Yu,"height",null),ye(Pg,m1=>ci.setStyle(m1,"height",null))}),el}else return Va.cloneNode(!0)},Ia=(ci,Va,Xa)=>{if(E(Xa)){const If=bi(ci);ye(If,el=>{el.style[Va]||!g.schema.isValid(el.nodeName.toLowerCase(),Va)?B.setStyle(el,Va,Xa):B.setAttrib(el,Va,""+Xa)})}},Us=(ci,Va,Xa)=>{Ia(ci,"width",Va),Ia(ci,"height",Xa)},sl=ci=>{let Va,Xa,If,el,Yu;Va=ci.screenX-Jt,Xa=ci.screenY-ln,wr=Va*kt[2]+Rn,Ur=Xa*kt[3]+qn,wr=wr<5?5:wr,Ur=Ur<5?5:Ur,(di(Re)||lo(Re))&&a0(g)!==!1?If=!Fo.modifierPressed(ci):If=Fo.modifierPressed(ci),If&&(s5(Va)>s5(Xa)?(Ur=_w(wr*pr),wr=_w(Ur/pr)):(wr=_w(Ur/pr),Ur=_w(wr*pr))),Us(Ke,wr,Ur),el=kt.startPos.x+Va,Yu=kt.startPos.y+Xa,el=el>0?el:0,Yu=Yu>0?Yu:0,B.setStyles(ct,{left:el,top:Yu,display:"block"}),ct.innerHTML=wr+" × "+Ur,kt[2]<0&&Ke.clientWidth<=wr&&B.setStyle(Ke,"left",kn+(Rn-wr)),kt[3]<0&&Ke.clientHeight<=Ur&&B.setStyle(Ke,"top",Vn+(qn-Ur)),Va=be.scrollWidth-wo,Xa=be.scrollHeight-jo,Va+Xa!==0&&B.setStyles(ct,{left:el-Va,top:Yu-Xa}),Tr||(iE(g,Re,Rn,qn,"corner-"+kt.name),Tr=!0)},nu=()=>{const ci=Tr;Tr=!1,ci&&(Ia(Re,"width",wr),Ia(Re,"height",Ur)),B.unbind(H,"mousemove",sl),B.unbind(H,"mouseup",nu),re!==H&&(B.unbind(re,"mousemove",sl),B.unbind(re,"mouseup",nu)),B.remove(Ke),B.remove(ct),B.remove(Wt),jd(Re),ci&&(aE(g,Re,wr,Ur,"corner-"+kt.name),B.setAttrib(Re,"style",B.getAttrib(Re,"style"))),g.nodeChanged()},jd=ci=>{ii();const Va=B.getPos(ci,be),Xa=Va.x,If=Va.y,el=ci.getBoundingClientRect(),Yu=el.width||el.right-el.left,Pg=el.height||el.bottom-el.top;Re!==ci&&(Wo(),Re=ci,wr=Ur=0);const m1=g.dispatch("ObjectSelected",{target:ci});Bi(ci)&&!m1.isDefaultPrevented()?Ge(ww,(Dh,om)=>{const Rg=Lg=>{const zi=bi(Re)[0];Jt=Lg.screenX,ln=Lg.screenY,Rn=zi.clientWidth,qn=zi.clientHeight,pr=qn/Rn,kt=Dh,kt.name=om,kt.startPos={x:Yu*Dh[0]+Xa,y:Pg*Dh[1]+If},wo=be.scrollWidth,jo=be.scrollHeight,Wt=B.add(be,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),B.setStyles(Wt,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),Ke=$a(B,Re),B.addClass(Ke,"mce-clonedresizable"),B.setAttrib(Ke,"data-mce-bogus","all"),Ke.contentEditable="false",B.setStyles(Ke,{left:Xa,top:If,margin:0}),Us(Ke,Yu,Pg),Ke.removeAttribute(Ph),be.appendChild(Ke),B.bind(H,"mousemove",sl),B.bind(H,"mouseup",nu),re!==H&&(B.bind(re,"mousemove",sl),B.bind(re,"mouseup",nu)),ct=B.add(be,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},Rn+" × "+qn)};let xp=B.get("mceResizeHandle"+om);xp&&B.remove(xp),xp=B.add(be,"div",{id:"mceResizeHandle"+om,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+om+"-resize; margin:0; padding:0"}),B.bind(xp,"mousedown",Lg=>{Lg.stopImmediatePropagation(),Lg.preventDefault(),Rg(Lg)}),Dh.elm=xp,B.setStyles(xp,{left:Yu*Dh[0]+Xa-xp.offsetWidth/2,top:Pg*Dh[1]+If-xp.offsetHeight/2})}):Wo(!1)},ml=dg(jd,0),Wo=(ci=!0)=>{ml.cancel(),ii(),Re&&ci&&Re.removeAttribute(Ph),Ge(ww,(Va,Xa)=>{const If=B.get("mceResizeHandle"+Xa);If&&(B.unbind(If),B.remove(If))})},Ei=(ci,Va)=>B.isChildOf(ci,Va),ws=ci=>{if(Tr||g.removed||g.composing)return;const Va=ci.type==="mousedown"?ci.target:r.getNode(),Xa=pu(sr.fromDom(Va),s6).map(el=>el.dom).filter(el=>B.isEditable(el.parentElement)||el.nodeName==="IMG"&&B.isEditable(el)).getOrUndefined(),If=E(Xa)?B.getAttrib(Xa,Ph,"1"):"1";if(ye(B.select(`img[${Ph}],hr[${Ph}]`),el=>{el.removeAttribute(Ph)}),E(Xa)&&Ei(Xa,be)&&g.hasFocus()){Qi();const el=r.getStart(!0);if(Ei(el,Xa)&&Ei(r.getEnd(!0),Xa)){B.setAttrib(Xa,Ph,If),ml.throttle(Xa);return}}Wo()},ii=()=>{Ge(ww,ci=>{ci.elm&&(B.unbind(ci.elm),delete ci.elm)})},Qi=()=>{try{g.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return g.on("init",()=>{Qi(),g.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",ws),g.on("keyup compositionend",ci=>{Re&&Re.nodeName==="TABLE"&&ws(ci)}),g.on("hide blur",Wo),g.on("contextmenu longpress",xo,!0)}),g.on("remove",ii),{isResizable:Bi,showResizeRect:jd,hideResizeRect:Wo,updateResizeRect:ws,destroy:()=>{ml.cancel(),Re=Ke=Wt=null}}},l6=(r,g)=>{g.fold(B=>{r.setStartBefore(B.dom)},(B,H)=>{r.setStart(B.dom,H)},B=>{r.setStartAfter(B.dom)})},c6=(r,g)=>{g.fold(B=>{r.setEndBefore(B.dom)},(B,H)=>{r.setEnd(B.dom,H)},B=>{r.setEndAfter(B.dom)})},l5=(r,g,B)=>{const H=r.document.createRange();return l6(H,g),c6(H,B),H},c5=(r,g,B,H,re)=>{const be=r.document.createRange();return be.setStart(g.dom,B),be.setEnd(H.dom,re),be},dv=aa.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),u5=(r,g,B)=>g(sr.fromDom(B.startContainer),B.startOffset,sr.fromDom(B.endContainer),B.endOffset),u6=(r,g)=>g.match({domRange:B=>({ltr:$(B),rtl:Y.none}),relative:(B,H)=>({ltr:xt(()=>l5(r,B,H)),rtl:xt(()=>Y.some(l5(r,H,B)))}),exact:(B,H,re,be)=>({ltr:xt(()=>c5(r,B,H,re,be)),rtl:xt(()=>Y.some(c5(r,re,be,B,H)))})}),uE=(r,g)=>{const B=g.ltr();return B.collapsed?g.rtl().filter(re=>re.collapsed===!1).map(re=>dv.rtl(sr.fromDom(re.endContainer),re.endOffset,sr.fromDom(re.startContainer),re.startOffset)).getOrThunk(()=>u5(r,dv.ltr,B)):u5(r,dv.ltr,B)},fE=(r,g)=>{const B=u6(r,g);return uE(r,B)};dv.ltr,dv.rtl;const Yh={create:(r,g,B,H)=>({start:r,soffset:g,finish:B,foffset:H})},ch=(r,g,B)=>{var H,re;return Y.from((re=(H=r.dom).caretPositionFromPoint)===null||re===void 0?void 0:re.call(H,g,B)).bind(be=>{if(be.offsetNode===null)return Y.none();const Re=r.dom.createRange();return Re.setStart(be.offsetNode,be.offset),Re.collapse(),Y.some(Re)})},w2=(r,g,B)=>{var H,re;return Y.from((re=(H=r.dom).caretRangeFromPoint)===null||re===void 0?void 0:re.call(H,g,B))},FD=(()=>document.caretPositionFromPoint?ch:document.caretRangeFromPoint?w2:Y.none)(),dE=(r,g,B)=>{const H=sr.fromDom(r.document);return FD(H,g,B).map(re=>Yh.create(sr.fromDom(re.startContainer),re.startOffset,sr.fromDom(re.endContainer),re.endOffset))},f5=aa.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),as=(r,g,B,H)=>r.fold(g,B,H),ND=r=>r.fold(Q,Q,Q),d6=f5.before,h6=f5.on,$D=f5.after,Cy={before:d6,on:h6,after:$D,cata:as,getStart:ND},Sw=aa.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),hE=r=>Sw.exact(r.start,r.soffset,r.finish,r.foffset),pE=r=>r.match({domRange:g=>sr.fromDom(g.startContainer),relative:(g,B)=>Cy.getStart(g),exact:(g,B,H,re)=>g}),mE=Sw.domRange,B3=Sw.relative,kw=Sw.exact,p6=r=>{const g=pE(r);return Mu(g)},VD=Yh.create,O2={domRange:mE,relative:B3,exact:kw,exactFromRange:hE,getWin:p6,range:VD},d5=(r,g)=>{const B=sa(r);return B==="input"?Cy.after(r):ce(["br","img"],B)?g===0?Cy.before(r):Cy.after(r):Cy.on(r,g)},UD=(r,g)=>{const B=r.fold(Cy.before,d5,Cy.after),H=g.fold(Cy.before,d5,Cy.after);return O2.relative(B,H)},m6=(r,g,B,H)=>{const re=d5(r,g),be=d5(B,H);return O2.relative(re,be)},gE=r=>r.match({domRange:g=>{const B=sr.fromDom(g.startContainer),H=sr.fromDom(g.endContainer);return m6(B,g.startOffset,H,g.endOffset)},relative:UD,exact:m6}),ea=(r,g)=>{const H=(g||document).createDocumentFragment();return ye(r,re=>{H.appendChild(re.dom)}),sr.fromDom(H)},pe=r=>{const g=O2.getWin(r).dom,B=(re,be,Re,Ke)=>c5(g,re,be,Re,Ke),H=gE(r);return fE(g,H).match({ltr:B,rtl:B})},Ce=(r,g,B)=>dE(r,g,B),Ye=(r,g,B)=>{const H=Mu(sr.fromDom(B));return Ce(H.dom,r,g).map(re=>{const be=B.createRange();return be.setStart(re.start.dom,re.soffset),be.setEnd(re.finish.dom,re.foffset),be}).getOrUndefined()},st=(r,g)=>E(r)&&E(g)&&r.startContainer===g.startContainer&&r.startOffset===g.startOffset&&r.endContainer===g.endContainer&&r.endOffset===g.endOffset,St=(r,g,B)=>{let H=r;for(;H&&H!==g;){if(B(H))return H;H=H.parentNode}return null},Ut=(r,g,B)=>St(r,g,B)!==null,un=(r,g,B)=>Ut(r,g,H=>H.nodeName===B),Tn=(r,g)=>Ch(r)&&!Ut(r,g,Gp),$n=(r,g,B)=>{const H=g.parentNode;if(H){const re=new kc(g,r.getParent(H,r.isBlock)||r.getRoot());let be;for(;be=re[B?"prev":"next"]();)if(On(be))return!0}return!1},ur=(r,g)=>{var B;return((B=r.previousSibling)===null||B===void 0?void 0:B.nodeName)===g},Nr=(r,g)=>{let B=g;for(;B&&B!==r;){if(rr(B))return!0;B=B.parentNode}return!1},Ro=(r,g,B,H,re)=>{const be=r.getRoot(),Re=r.schema.getNonEmptyElements(),Ke=re.parentNode;let ct,kt;if(!Ke)return Y.none();const Wt=r.getParent(Ke,r.isBlock)||be;if(H&&On(re)&&g&&r.isEmpty(Wt))return Y.some(qr(Ke,r.nodeIndex(re)));const Jt=new kc(re,Wt);for(;kt=Jt[H?"prev":"next"]();){if(r.getContentEditableParent(kt)==="false"||Tn(kt,be))return Y.none();if(Nt(kt)&&kt.data.length>0)return un(kt,be,"A")?Y.none():Y.some(qr(kt,H?kt.data.length:0));if(r.isBlock(kt)||Re[kt.nodeName.toLowerCase()])return Y.none();ct=kt}return xn(ct)?Y.none():B&&ct?Y.some(qr(ct,0)):Y.none()},ai=(r,g,B,H)=>{const re=r.getRoot();let be,Re=!1,Ke=B?H.startContainer:H.endContainer,ct=B?H.startOffset:H.endOffset;const kt=ne(Ke)&&ct===Ke.childNodes.length,Wt=r.schema.getNonEmptyElements();let Jt=B;if(Ch(Ke))return Y.none();if(ne(Ke)&&ct>Ke.childNodes.length-1&&(Jt=!1),pn(Ke)&&(Ke=re,ct=0),Ke===re){if(Jt&&(be=Ke.childNodes[ct>0?ct-1:0],be&&(Ch(be)||Wt[be.nodeName]||Et(be))))return Y.none();if(Ke.hasChildNodes()){if(ct=Math.min(!Jt&&ct>0?ct-1:ct,Ke.childNodes.length-1),Ke=Ke.childNodes[ct],ct=Nt(Ke)&&kt?Ke.data.length:0,!g&&Ke===re.lastChild&&Et(Ke)||Nr(re,Ke)||Ch(Ke)||$o(Ke))return Y.none();if(Ke.hasChildNodes()&&!Et(Ke)){be=Ke;const ln=new kc(Ke,re);do{if(rr(be)||Ch(be)){Re=!1;break}if(Nt(be)&&be.data.length>0){ct=Jt?0:be.data.length,Ke=be,Re=!0;break}if(Wt[be.nodeName.toLowerCase()]&&!Pr(be)){ct=r.nodeIndex(be),Ke=be.parentNode,Jt||ct++,Re=!0;break}}while(be=Jt?ln.next():ln.prev())}}}return g&&(Nt(Ke)&&ct===0&&Ro(r,kt,g,!0,Ke).each(ln=>{Ke=ln.container(),ct=ln.offset(),Re=!0}),ne(Ke)&&(be=Ke.childNodes[ct],be||(be=Ke.childNodes[ct-1]),be&&On(be)&&!ur(be,"A")&&!$n(r,be,!1)&&!$n(r,be,!0)&&Ro(r,kt,g,!0,be).each(ln=>{Ke=ln.container(),ct=ln.offset(),Re=!0}))),Jt&&!g&&Nt(Ke)&&ct===Ke.data.length&&Ro(r,kt,g,!1,Ke).each(ln=>{Ke=ln.container(),ct=ln.offset(),Re=!0}),Re&&Ke?Y.some(qr(Ke,ct)):Y.none()},Ko=(r,g)=>{const B=g.collapsed,H=g.cloneRange(),re=qr.fromRangeStart(g);return ai(r,B,!0,H).each(be=>{(!B||!qr.isAbove(re,be))&&H.setStart(be.container(),be.offset())}),B||ai(r,B,!1,H).each(be=>{H.setEnd(be.container(),be.offset())}),B&&H.collapse(!0),st(g,H)?Y.none():Y.some(H)},Qo=(r,g)=>r.splitText(g),_i=r=>{let g=r.startContainer,B=r.startOffset,H=r.endContainer,re=r.endOffset;if(g===H&&Nt(g)){if(B>0&&BB){re=re-B;const be=Qo(H,re).previousSibling;g=H=be,re=be.data.length,B=0}else re=0}else if(Nt(g)&&B>0&&B0&&re({walk:(be,Re)=>yw(r,be,Re),split:_i,expand:(be,Re={type:"word"})=>{if(Re.type==="word"){const Ke=Oy(r,be,[{inline:"span"}]),ct=r.createRng();return ct.setStart(Ke.startContainer,Ke.startOffset),ct.setEnd(Ke.endContainer,Ke.endOffset),ct}return be},normalize:be=>Ko(r,be).fold(oe,Re=>(be.setStart(Re.startContainer,Re.startOffset),be.setEnd(Re.endContainer,Re.endOffset),!0))});To.compareRanges=st,To.getCaretRangeFromPoint=Ye,To.getSelectedNode=Pm,To.getNode=fi;const Yi=((r,g)=>{const B=(Ke,ct)=>{if(!L(ct)&&!ct.match(/^[0-9]+$/))throw new Error(r+".set accepts only positive integer values. Value was "+ct);const kt=Ke.dom;af(kt)&&(kt.style[r]=ct+"px")},H=Ke=>{const ct=g(Ke);if(ct<=0||ct===null){const kt=pi(Ke,r);return parseFloat(kt)||0}return ct},re=H,be=(Ke,ct)=>Ie(ct,(kt,Wt)=>{const Jt=pi(Ke,Wt),ln=Jt===void 0?0:parseInt(Jt,10);return isNaN(ln)?kt:kt+ln},0);return{set:B,get:H,getOuter:re,aggregate:be,max:(Ke,ct,kt)=>{const Wt=be(Ke,kt);return ct>Wt?ct-Wt:0}}})("height",r=>{const g=r.dom;return zc(r)?g.getBoundingClientRect().height:g.offsetHeight}),ri=r=>Yi.get(r),Ms=()=>sr.fromDom(document),al=(r,g)=>r.view(g).fold($([]),H=>{const re=r.owner(H),be=al(r,re);return[H].concat(be)}),Gs=(r,g)=>{const B=g.owner(r);return al(g,B)};var e1=Object.freeze({__proto__:null,view:r=>{var g;return(r.dom===document?Y.none():Y.from((g=r.dom.defaultView)===null||g===void 0?void 0:g.frameElement)).map(sr.fromDom)},owner:r=>Bc(r)});const Ay=r=>{const g=Ms(),B=Gc(g),H=Gs(r,e1),re=_h(r),be=Pe(H,(Re,Ke)=>{const ct=_h(Ke);return{left:Re.left+ct.left,top:Re.top+ct.top}},{left:0,top:0});return us(be.left+re.left+B.left,be.top+re.top+B.top)},My=r=>sa(r)==="textarea",Zs=(r,g)=>r.dispatch("ScrollIntoView",g).isDefaultPrevented(),Rh=(r,g)=>{r.dispatch("AfterScrollIntoView",g)},Lh=(r,g)=>{const B=Oc(r);if(B.length===0||My(r))return{element:r,offset:g};if(g{const B=Hf(r),H=ri(r);return{element:r,bottom:B.top+H,height:H,pos:B,cleanup:g}},Qm=(r,g)=>{const B=Lh(r,g),H=sr.fromHtml(''+nc+"");return Fc(B.element,H),jm(H,()=>ja(H))},Za=r=>jm(sr.fromDom(r),k),tu=(r,g,B,H)=>{xa(r,(re,be)=>Tw(r,g,B,H),B)},t1=(r,g,B,H,re)=>{const be={elm:H.element.dom,alignToTop:re};if(Zs(r,be))return;const Re=Gc(g).top;B(r,g,Re,H,re),Rh(r,be)},Tw=(r,g,B,H)=>{const re=sr.fromDom(r.getBody()),be=sr.fromDom(r.getDoc());Kl(re);const Re=Qm(sr.fromDom(B.startContainer),B.startOffset);t1(r,be,g,Re,H),Re.cleanup()},vp=(r,g,B,H)=>{const re=sr.fromDom(r.getDoc());t1(r,re,B,Za(g),H)},xa=(r,g,B)=>{const H=B.startContainer,re=B.startOffset,be=B.endContainer,Re=B.endOffset;g(sr.fromDom(H),sr.fromDom(be));const Ke=r.dom.createRng();Ke.setStart(H,re),Ke.setEnd(be,Re),r.selection.setRng(B)},h5=(r,g,B,H,re)=>{const be=g.pos;if(H)dd(be.left,be.top,re);else{const Re=be.top-B+g.height;dd(-r.getBody().getBoundingClientRect().left,Re,re)}},p5=(r,g,B,H,re,be)=>{const Re=H+B,Ke=re.pos.top,ct=re.bottom,kt=ct-Ke>=H;KeRe?h5(r,re,H,kt?be!==!1:be===!0,g):ct>Re&&!kt&&h5(r,re,H,be===!0,g)},z3=(r,g,B,H,re)=>{const be=Mu(g).dom.innerHeight;p5(r,g,B,be,H,re)},g6=(r,g,B,H,re)=>{const be=Mu(g).dom.innerHeight;p5(r,g,B,be,H,re);const Re=Ay(H.element),Ke=fa(window);Re.topKe.bottom&&rl(H.element,re===!0)},qb=(r,g,B)=>tu(r,z3,g,B),hv=(r,g,B)=>vp(r,g,z3,B),v6=(r,g,B)=>tu(r,g6,g,B),Cw=(r,g,B)=>vp(r,g,g6,B),Nq=(r,g,B)=>{(r.inline?hv:Cw)(r,g,B)},m5=(r,g,B)=>{(r.inline?qb:v6)(r,g,B)},F3=(r,g=!1)=>r.dom.focus({preventScroll:g}),Aw=r=>{const g=of(r).dom;return r.dom===g.activeElement},vE=(r=Ms())=>Y.from(r.dom.activeElement).map(sr.fromDom),jD=r=>vE(of(r)).filter(g=>r.dom.contains(g.dom)),QD=(r,g)=>{const B=Ss(g)?ry(g).length:Oc(g).length+1;return r>B?B:r<0?0:r},$q=r=>O2.range(r.start,QD(r.soffset,r.start),r.finish,QD(r.foffset,r.finish)),HD=(r,g)=>!V(g.dom)&&(Qu(r,g)||Fa(r,g)),yE=r=>g=>HD(r,g.start)&&HD(r,g.finish),Nue=r=>r.inline||fr.browser.isFirefox(),Vq=r=>O2.range(sr.fromDom(r.startContainer),r.startOffset,sr.fromDom(r.endContainer),r.endOffset),ZD=r=>{const g=r.getSelection();return(!g||g.rangeCount===0?Y.none():Y.from(g.getRangeAt(0))).map(Vq)},bE=r=>{const g=Mu(r);return ZD(g.dom).filter(yE(r))},xE=(r,g)=>Y.from(g).filter(yE(r)).map($q),_E=r=>{const g=document.createRange();try{return g.setStart(r.start.dom,r.soffset),g.setEnd(r.finish.dom,r.foffset),Y.some(g)}catch{return Y.none()}},g5=r=>{const g=Nue(r)?bE(sr.fromDom(r.getBody())):Y.none();r.bookmark=g.isSome()?g:r.bookmark},y6=r=>(r.bookmark?r.bookmark:Y.none()).bind(B=>xE(sr.fromDom(r.getBody()),B)).bind(_E),qD=r=>{y6(r).each(g=>r.selection.setRng(g))},WD={isEditorUIElement:r=>{const g=r.className.toString();return g.indexOf("tox-")!==-1||g.indexOf("mce-")!==-1}},YD=(r,g)=>(L(g)||(g=0),setTimeout(r,g)),Uq=(r,g)=>(L(g)||(g=0),setInterval(r,g)),kg={setEditorTimeout:(r,g,B)=>YD(()=>{r.removed||g()},B),setEditorInterval:(r,g,B)=>{const H=Uq(()=>{r.removed?clearInterval(H):g()},B);return H}},XD=r=>r.type==="nodechange"&&r.selectionChange,GD=(r,g)=>{const B=()=>{g.throttle()};Nl.DOM.bind(document,"mouseup",B),r.on("remove",()=>{Nl.DOM.unbind(document,"mouseup",B)})},KD=(r,g)=>{r.on("mouseup touchend",B=>{g.throttle()})},JD=(r,g)=>{KD(r,g),r.on("keyup NodeChange AfterSetSelectionRange",B=>{XD(B)||g5(r)})},jq=r=>{const g=dg(()=>{g5(r)},0);r.on("init",()=>{r.inline&&GD(r,g),JD(r,g)}),r.on("remove",()=>{g.cancel()})};let N3;const OE=Nl.DOM,Qq=r=>ne(r)&&WD.isEditorUIElement(r),SE=r=>{const g=r.classList;return g!==void 0?g.contains("tox-edit-area")||g.contains("tox-edit-area__iframe")||g.contains("mce-content-body"):!1},b6=(r,g)=>{const B=Eh(r);return OE.getParent(g,re=>Qq(re)||(B?r.dom.is(re,B):!1))!==null},kE=r=>{try{const g=of(sr.fromDom(r.getElement()));return vE(g).fold(()=>document.body,B=>B.dom)}catch{return document.body}},Hq=(r,g)=>{const B=g.editor;jq(B);const H=(re,be)=>{if(yy(re)&&re.inline!==!0){const Re=sr.fromDom(re.getContainer());be(Re,"tox-edit-focus")}};B.on("focusin",()=>{const re=r.focusedEditor;SE(kE(B))&&H(B,xf),re!==B&&(re&&re.dispatch("blur",{focusedEditor:B}),r.setActive(B),r.focusedEditor=B,B.dispatch("focus",{blurredEditor:re}),B.focus(!0))}),B.on("focusout",()=>{kg.setEditorTimeout(B,()=>{const re=r.focusedEditor;(!SE(kE(B))||re!==B)&&H(B,nf),!b6(B,kE(B))&&re===B&&(B.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})}),N3||(N3=re=>{const be=r.activeEditor;be&&bh(re).each(Re=>{const Ke=Re;Ke.ownerDocument===document&&Ke!==document.body&&!b6(be,Ke)&&r.focusedEditor===be&&(be.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})},OE.bind(document,"focusin",N3))},x6=(r,g)=>{r.focusedEditor===g.editor&&(r.focusedEditor=null),!r.activeEditor&&N3&&(OE.unbind(document,"focusin",N3),N3=null)},eB=r=>{r.on("AddEditor",U(Hq,r)),r.on("RemoveEditor",U(x6,r))},Zq=(r,g)=>r.dom.getParent(g,B=>r.dom.getContentEditable(B)==="true"),tB=r=>r.collapsed?Y.from(fi(r.startContainer,r.startOffset)).map(sr.fromDom):Y.none(),nB=(r,g)=>tB(g).bind(B=>B1(B)?Y.some(B):Qu(r,B)?Y.none():Y.some(r)),rB=(r,g)=>{nB(sr.fromDom(r.getBody()),g).bind(B=>lh(B.dom)).fold(()=>{r.selection.normalize()},B=>r.selection.setRng(B.toRange()))},TE=r=>{if(r.setActive)try{r.setActive()}catch{r.focus()}else r.focus()},qq=r=>Aw(r)||jD(r).isSome(),Wq=r=>E(r.iframeElement)&&Aw(sr.fromDom(r.iframeElement)),Yq=r=>{const g=r.getBody();return g&&qq(sr.fromDom(g))},oB=r=>{const g=of(sr.fromDom(r.getElement()));return vE(g).filter(B=>!SE(B.dom)&&b6(r,B.dom)).isSome()},Mw=r=>r.inline?Yq(r):Wq(r),v5=r=>Mw(r)||oB(r),Xq=r=>{const g=r.selection,B=r.getBody();let H=g.getRng();r.quirks.refreshContentEditable();const re=Re=>{y6(Re).each(Ke=>{Re.selection.setRng(Ke),H=Ke})};!Mw(r)&&r.hasEditableRoot()&&re(r);const be=Zq(r,g.getNode());if(be&&r.dom.isChildOf(be,B)){TE(be),r.hasEditableRoot()||re(r),rB(r,H),CE(r);return}r.inline||(fr.browser.isOpera()||TE(B),r.getWin().focus()),(fr.browser.isFirefox()||r.inline)&&(TE(B),rB(r,H)),CE(r)},CE=r=>r.editorManager.setActive(r),AE=(r,g)=>{r.removed||(g?CE(r):Xq(r))},iB=(r,g)=>g.collapsed?r.isEditable(g.startContainer):r.isEditable(g.startContainer)&&r.isEditable(g.endContainer),ME=(r,g,B,H,re)=>{const be=B?g.startContainer:g.endContainer,Re=B?g.startOffset:g.endOffset;return Y.from(be).map(sr.fromDom).map(Ke=>!H||!g.collapsed?ks(Ke,re(Ke,Re)).getOr(Ke):Ke).bind(Ke=>mc(Ke)?Y.some(Ke):Hu(Ke).filter(mc)).map(Ke=>Ke.dom).getOr(r)},EE=(r,g,B=!1)=>ME(r,g,!0,B,(H,re)=>Math.min(Hl(H),re)),PE=(r,g,B=!1)=>ME(r,g,!1,B,(H,re)=>re>0?re-1:re),aB=(r,g)=>{const B=r;for(;r&&Nt(r)&&r.length===0;)r=g?r.nextSibling:r.previousSibling;return r||B},Gq=(r,g)=>{if(!g)return r;let B=g.startContainer,H=g.endContainer;const re=g.startOffset,be=g.endOffset;let Re=g.commonAncestorContainer;g.collapsed||(B===H&&be-re<2&&B.hasChildNodes()&&(Re=B.childNodes[re]),Nt(B)&&Nt(H)&&(B.length===re?B=aB(B.nextSibling,!0):B=B.parentNode,be===0?H=aB(H.previousSibling,!1):H=H.parentNode,B&&B===H&&(Re=B)));const Ke=Nt(Re)?Re.parentNode:Re;return ge(Ke)?Ke:r},Kq=(r,g,B,H)=>{const re=[],be=r.getRoot(),Re=r.getParent(B||EE(be,g,g.collapsed),r.isBlock),Ke=r.getParent(H||PE(be,g,g.collapsed),r.isBlock);if(Re&&Re!==be&&re.push(Re),Re&&Ke&&Re!==Ke){let ct;const kt=new kc(Re,be);for(;(ct=kt.next())&&ct!==Ke;)r.isBlock(ct)&&re.push(ct)}return Ke&&Re!==Ke&&Ke!==be&&re.push(Ke),re},Jq=(r,g,B)=>Y.from(g).bind(H=>Y.from(H.parentNode).map(re=>{const be=r.nodeIndex(H),Re=r.createRng();return Re.setStart(re,be),Re.setEnd(re,be+1),B&&(YS(r,Re,H,!0),YS(r,Re,H,!1)),Re})),$3=(r,g)=>ve(g,B=>{const H=r.dispatch("GetSelectionRange",{range:B});return H.range!==B?H.range:B}),sB={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},y5=(r,g,B)=>{const H=B?"lastChild":"firstChild",re=B?"prev":"next";if(r[H])return r[H];if(r!==g){let be=r[re];if(be)return be;for(let Re=r.parent;Re&&Re!==g;Re=Re.parent)if(be=Re[re],be)return be}},lB=r=>{var g;const B=(g=r.value)!==null&&g!==void 0?g:"";if(!Sf(B))return!1;const H=r.parent;return!(H&&(H.name!=="span"||H.attr("style"))&&/^[ ]+$/.test(B))},RE=r=>{const g=r.name==="a"&&!r.attr("href")&&r.attr("id");return r.attr("name")||r.attr("id")&&!r.firstChild||r.attr("data-mce-bookmark")||g};class yp{static create(g,B){const H=new yp(g,sB[g]||1);return B&&Ge(B,(re,be)=>{H.attr(be,re)}),H}constructor(g,B){this.name=g,this.type=B,B===1&&(this.attributes=[],this.attributes.map={})}replace(g){const B=this;return g.parent&&g.remove(),B.insert(g,B),B.remove(),B}attr(g,B){const H=this;if(!v(g))return E(g)&&Ge(g,(be,Re)=>{H.attr(Re,be)}),H;const re=H.attributes;if(re){if(B!==void 0){if(B===null){if(g in re.map){delete re.map[g];let be=re.length;for(;be--;)if(re[be].name===g)return re.splice(be,1),H}return H}if(g in re.map){let be=re.length;for(;be--;)if(re[be].name===g){re[be].value=B;break}}else re.push({name:g,value:B});return re.map[g]=B,H}return re.map[g]}}clone(){const g=this,B=new yp(g.name,g.type),H=g.attributes;if(H){const re=[];re.map={};for(let be=0,Re=H.length;bev(r.nodeValue)&&r.nodeValue.includes(nc),uB=r=>`${r.length===0?"":`${ve(r,g=>`[${g}]`).join(",")},`}[data-mce-bogus="all"]`,tW=(r,g)=>g.querySelectorAll(uB(r)),fB=r=>document.createTreeWalker(r,NodeFilter.SHOW_COMMENT,g=>cB(g)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),dB=r=>document.createTreeWalker(r,NodeFilter.SHOW_TEXT,g=>{if(cB(g)){const B=g.parentNode;return B&&_t(eW,B.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP}),nW=r=>fB(r).nextNode()!==null,rW=r=>dB(r).nextNode()!==null,oW=(r,g)=>g.querySelector(uB(r))!==null,iW=(r,g)=>{ye(tW(r,g),B=>{const H=sr.fromDom(B);uc(H,"data-mce-bogus")==="all"?ja(H):ye(r,re=>{Vf(H,re)&&gc(H,re)})})},hB=r=>{let g=r.nextNode();for(;g!==null;)g.nodeValue=null,g=r.nextNode()},_6=I(hB,fB),pB=I(hB,dB),LE=(r,g)=>{const B=[{condition:U(oW,g),action:U(iW,g)},{condition:nW,action:_6},{condition:rW,action:pB}];let H=r,re=!1;return ye(B,({condition:be,action:Re})=>{be(H)&&(re||(H=r.cloneNode(!0),re=!0),Re(H))}),H},mB=r=>{const g=Zl(r,"[data-mce-bogus]");ye(g,B=>{uc(B,"data-mce-bogus")==="all"?ja(B):N0(B)?(Fc(B,sr.fromText(Iu)),ja(B)):vu(B)})},gB=r=>{const g=Zl(r,"input");ye(g,B=>{gc(B,"name")})},aW=(r,g)=>{const B=dc(r),H=new RegExp(`^(<${B}[^>]*>( | |\\s| |
|)<\\/${B}>[\r +Required: `+g.join(", "));return Jt[Re].apply(null,ct)},log:Jt=>{console.log(Jt,{constructors:g,constructor:Re,params:ct})}}}}),B}};aa.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Fs=r=>{const g=[],B=[];return ye(r,H=>{H.fold(re=>{g.push(re)},re=>{B.push(re)})}),{errors:g,values:B}},$c=r=>r.type==="inline-command"||r.type==="inline-format",xc=r=>r.type==="block-command"||r.type==="block-format",_u=(r,g)=>(r.type==="block-command"||r.type==="block-format")&&r.trigger===g,qu=r=>{var g;const B=re=>gs.error({message:re,pattern:r}),H=(re,be,Re)=>{if(r.format!==void 0){let Ke;if(A(r.format)){if(!Oe(r.format,v))return B(re+" pattern has non-string items in the `format` array");Ke=r.format}else if(v(r.format))Ke=[r.format];else return B(re+" pattern has non-string `format` parameter");return gs.value(be(Ke))}else return r.cmd!==void 0?v(r.cmd)?gs.value(Re(r.cmd,r.value)):B(re+" pattern has non-string `cmd` parameter"):B(re+" pattern is missing both `format` and `cmd` parameters")};if(!_(r))return B("Raw pattern is not an object");if(!v(r.start))return B("Raw pattern is missing `start` parameter");if(r.end!==void 0){if(!v(r.end))return B("Inline pattern has non-string `end` parameter");if(r.start.length===0&&r.end.length===0)return B("Inline pattern has empty `start` and `end` parameters");let re=r.start,be=r.end;return be.length===0&&(be=re,re=""),H("Inline",Re=>({type:"inline-format",start:re,end:be,format:Re}),(Re,Ke)=>({type:"inline-command",start:re,end:be,cmd:Re,value:Ke}))}else{if(r.replacement!==void 0)return v(r.replacement)?r.start.length===0?B("Replacement pattern has empty `start` parameter"):gs.value({type:"inline-command",start:"",end:r.start,cmd:"mceInsertContent",value:r.replacement}):B("Replacement pattern has non-string `replacement` parameter");{const re=(g=r.trigger)!==null&&g!==void 0?g:"space";return r.start.length===0?B("Block pattern has empty `start` parameter"):H("Block",be=>({type:"block-format",start:r.start,format:be[0],trigger:re}),(be,Re)=>({type:"block-command",start:r.start,cmd:be,value:Re,trigger:re}))}}},Vc=r=>Te(r,xc),ml=r=>Te(r,$c),Uc=(r,g)=>({inlinePatterns:ml(r),blockPatterns:Vc(r),dynamicPatternsLookup:g}),wu=(r,g)=>({...r,blockPatterns:Te(r.blockPatterns,B=>_u(B,g))}),uf=r=>{const g=Fs(ve(r,qu));return ye(g.errors,B=>console.error(B.message,B.pattern)),g.values},ff=r=>g=>{const B=r(g);return uf(B)},jc=tr().deviceType,is=jc.isTouch(),Vs=Nl.DOM,Ac=r=>{const g=r.indexOf("=")>0?r.split(/[;,](?![^=;,]*(?:[;,]|$))/):r.split(",");return Ie(g,(B,H)=>{const re=H.split("="),be=re[0],Re=re.length>1?re[1]:be;return B[Fn(be)]=Fn(Re),B},{})},Bl=r=>m(r,RegExp),Uo=r=>g=>g.options.get(r),ql=r=>v(r)||_(r),Xs=(r,g="")=>B=>{const H=v(B);if(H)if(B.indexOf("=")!==-1){const re=Ac(B);return{value:Ct(re,r.id).getOr(g),valid:H}}else return{value:B,valid:H};else return{valid:!1,message:"Must be a string."}},ac=r=>{const g=r.options.register;g("id",{processor:"string",default:r.id}),g("selector",{processor:"string"}),g("target",{processor:"object"}),g("suffix",{processor:"string"}),g("cache_suffix",{processor:"string"}),g("base_url",{processor:"string"}),g("referrer_policy",{processor:"string",default:""}),g("language_load",{processor:"boolean",default:!0}),g("inline",{processor:"boolean",default:!1}),g("iframe_attrs",{processor:"object",default:{}}),g("doctype",{processor:"string",default:""}),g("document_base_url",{processor:"string",default:r.documentBaseUrl}),g("body_id",{processor:Xs(r,"tinymce"),default:"tinymce"}),g("body_class",{processor:Xs(r),default:""}),g("content_security_policy",{processor:"string",default:""}),g("br_in_pre",{processor:"boolean",default:!0}),g("forced_root_block",{processor:B=>{const H=v(B)&&Kn(B);return H?{value:B,valid:H}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),g("forced_root_block_attrs",{processor:"object",default:{}}),g("newline_behavior",{processor:B=>{const H=ce(["block","linebreak","invert","default"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),g("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),g("no_newline_selector",{processor:"string",default:""}),g("keep_styles",{processor:"boolean",default:!0}),g("end_container_on_empty_block",{processor:B=>R(B)?{valid:!0,value:B}:v(B)?{valid:!0,value:B}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),g("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),g("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),g("font_size_classes",{processor:"string",default:""}),g("automatic_uploads",{processor:"boolean",default:!0}),g("images_reuse_filename",{processor:"boolean",default:!1}),g("images_replace_blob_uris",{processor:"boolean",default:!0}),g("icons",{processor:"string",default:""}),g("icons_url",{processor:"string",default:""}),g("images_upload_url",{processor:"string",default:""}),g("images_upload_base_path",{processor:"string",default:""}),g("images_upload_credentials",{processor:"boolean",default:!1}),g("images_upload_handler",{processor:"function"}),g("language",{processor:"string",default:"en"}),g("language_url",{processor:"string",default:""}),g("entity_encoding",{processor:"string",default:"named"}),g("indent",{processor:"boolean",default:!0}),g("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_use_margin",{processor:"boolean",default:!1}),g("indentation",{processor:"string",default:"40px"}),g("content_css",{processor:B=>{const H=B===!1||v(B)||D(B,v);return H?v(B)?{value:ve(B.split(","),Fn),valid:H}:A(B)?{value:B,valid:H}:B===!1?{value:[],valid:H}:{value:B,valid:H}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:ev(r)?[]:["default"]}),g("content_style",{processor:"string"}),g("content_css_cors",{processor:"boolean",default:!1}),g("font_css",{processor:B=>{const H=v(B)||D(B,v);return H?{value:A(B)?B:ve(B.split(","),Fn),valid:H}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),g("inline_boundaries",{processor:"boolean",default:!0}),g("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),g("object_resizing",{processor:B=>{const H=R(B)||v(B);return H?B===!1||jc.isiPhone()||jc.isiPad()?{value:"",valid:H}:{value:B===!0?"table,img,figure.image,div,video,iframe":B,valid:H}:{valid:!1,message:"Must be boolean or a string"}},default:!is}),g("resize_img_proportional",{processor:"boolean",default:!0}),g("event_root",{processor:"string"}),g("service_message",{processor:"string"}),g("theme",{processor:B=>B===!1||v(B)||C(B),default:"silver"}),g("theme_url",{processor:"string"}),g("formats",{processor:"object"}),g("format_empty_lines",{processor:"boolean",default:!1}),g("format_noneditable_selector",{processor:"string",default:""}),g("preview_styles",{processor:B=>{const H=B===!1||v(B);return H?{value:B===!1?"":B,valid:H}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),g("custom_ui_selector",{processor:"string",default:""}),g("hidden_input",{processor:"boolean",default:!0}),g("submit_patch",{processor:"boolean",default:!0}),g("encoding",{processor:"string"}),g("add_form_submit_trigger",{processor:"boolean",default:!0}),g("add_unload_trigger",{processor:"boolean",default:!0}),g("custom_undo_redo_levels",{processor:"number",default:0}),g("disable_nodechange",{processor:"boolean",default:!1}),g("readonly",{processor:"boolean",default:!1}),g("editable_root",{processor:"boolean",default:!0}),g("plugins",{processor:"string[]",default:[]}),g("external_plugins",{processor:"object"}),g("forced_plugins",{processor:"string[]"}),g("model",{processor:"string",default:r.hasPlugin("rtc")?"plugin":"dom"}),g("model_url",{processor:"string"}),g("block_unsupported_drop",{processor:"boolean",default:!0}),g("visual",{processor:"boolean",default:!0}),g("visual_table_class",{processor:"string",default:"mce-item-table"}),g("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),g("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),g("setup",{processor:"function"}),g("init_instance_callback",{processor:"function"}),g("url_converter",{processor:"function",default:r.convertURL}),g("url_converter_scope",{processor:"object",default:r}),g("urlconverter_callback",{processor:"function"}),g("allow_conditional_comments",{processor:"boolean",default:!1}),g("allow_html_data_urls",{processor:"boolean",default:!1}),g("allow_svg_data_urls",{processor:"boolean"}),g("allow_html_in_named_anchor",{processor:"boolean",default:!1}),g("allow_script_urls",{processor:"boolean",default:!1}),g("allow_unsafe_link_target",{processor:"boolean",default:!1}),g("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),g("fix_list_elements",{processor:"boolean",default:!1}),g("preserve_cdata",{processor:"boolean",default:!1}),g("remove_trailing_brs",{processor:"boolean",default:!0}),g("pad_empty_with_br",{processor:"boolean",default:!1}),g("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),g("element_format",{processor:"string",default:"html"}),g("entities",{processor:"string"}),g("schema",{processor:"string",default:"html5"}),g("convert_urls",{processor:"boolean",default:!0}),g("relative_urls",{processor:"boolean",default:!0}),g("remove_script_host",{processor:"boolean",default:!0}),g("custom_elements",{processor:ql}),g("extended_valid_elements",{processor:"string"}),g("invalid_elements",{processor:"string"}),g("invalid_styles",{processor:ql}),g("valid_children",{processor:"string"}),g("valid_classes",{processor:ql}),g("valid_elements",{processor:"string"}),g("valid_styles",{processor:ql}),g("verify_html",{processor:"boolean",default:!0}),g("auto_focus",{processor:B=>v(B)||B===!0}),g("browser_spellcheck",{processor:"boolean",default:!1}),g("protect",{processor:"array"}),g("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),g("deprecation_warnings",{processor:"boolean",default:!0}),g("a11y_advanced_options",{processor:"boolean",default:!1}),g("api_key",{processor:"string"}),g("license_key",{processor:"string"}),g("paste_block_drop",{processor:"boolean",default:!1}),g("paste_data_images",{processor:"boolean",default:!0}),g("paste_preprocess",{processor:"function"}),g("paste_postprocess",{processor:"function"}),g("paste_webkit_styles",{processor:"string",default:"none"}),g("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),g("paste_merge_formats",{processor:"boolean",default:!0}),g("smart_paste",{processor:"boolean",default:!0}),g("paste_as_text",{processor:"boolean",default:!1}),g("paste_tab_spaces",{processor:"number",default:4}),g("text_patterns",{processor:B=>D(B,_)||B===!1?{value:uf(B===!1?[]:B),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1",trigger:"space"},{start:"##",format:"h2",trigger:"space"},{start:"###",format:"h3",trigger:"space"},{start:"####",format:"h4",trigger:"space"},{start:"#####",format:"h5",trigger:"space"},{start:"######",format:"h6",trigger:"space"},{start:"1.",cmd:"InsertOrderedList",trigger:"space"},{start:"*",cmd:"InsertUnorderedList",trigger:"space"},{start:"-",cmd:"InsertUnorderedList",trigger:"space"},{start:">",cmd:"mceBlockQuote",trigger:"space"},{start:"---",cmd:"InsertHorizontalRule",trigger:"space"}]}),g("text_patterns_lookup",{processor:B=>C(B)?{value:ff(B),valid:!0}:{valid:!1,message:"Must be a single function"},default:B=>[]}),g("noneditable_class",{processor:"string",default:"mceNonEditable"}),g("editable_class",{processor:"string",default:"mceEditable"}),g("noneditable_regexp",{processor:B=>D(B,Bl)?{value:B,valid:!0}:Bl(B)?{value:[B],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),g("table_tab_navigation",{processor:"boolean",default:!0}),g("highlight_on_focus",{processor:"boolean",default:!0}),g("xss_sanitization",{processor:"boolean",default:!0}),g("details_initial_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("details_serialized_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("init_content_sync",{processor:"boolean",default:!1}),g("newdocument_content",{processor:"string",default:""}),g("sandbox_iframes",{processor:"boolean",default:!0}),g("sandbox_iframes_exclusions",{processor:"string[]",default:["youtube.com","youtu.be","vimeo.com","player.vimeo.com","dailymotion.com","embed.music.apple.com","open.spotify.com","giphy.com","dai.ly","codepen.io"]}),g("convert_unsafe_embeds",{processor:"boolean",default:!0}),r.on("ScriptsLoaded",()=>{g("directionality",{processor:"string",default:Du.isRtl()?"rtl":void 0}),g("placeholder",{processor:"string",default:Vs.getAttrib(r.getElement(),"placeholder")})})},Mc=Uo("iframe_attrs"),Mh=Uo("doctype"),il=Uo("document_base_url"),Im=Uo("body_id"),ah=Uo("body_class"),Bu=Uo("content_security_policy"),Hp=Uo("br_in_pre"),dc=Uo("forced_root_block"),Jf=Uo("forced_root_block_attrs"),bg=Uo("newline_behavior"),Dm=Uo("br_newline_selector"),q1=Uo("no_newline_selector"),Wx=Uo("keep_styles"),Ec=Uo("end_container_on_empty_block"),Qc=Uo("automatic_uploads"),Hc=Uo("images_reuse_filename"),_s=Uo("images_replace_blob_uris"),Jc=Uo("icons"),Pc=Uo("icons_url"),W1=Uo("images_upload_url"),uy=Uo("images_upload_base_path"),Y1=Uo("images_upload_credentials"),H0=Uo("images_upload_handler"),X1=Uo("content_css_cors"),G1=Uo("referrer_policy"),K1=Uo("language"),Zp=Uo("language_url"),fy=Uo("indent_use_margin"),JO=Uo("indentation"),Bm=Uo("content_css"),Sb=Uo("content_style"),Wu=Uo("font_css"),Yx=Uo("directionality"),J1=Uo("inline_boundaries_selector"),xd=Uo("object_resizing"),a0=Uo("resize_img_proportional"),dy=Uo("placeholder"),hp=Uo("event_root"),_d=Uo("service_message"),xg=Uo("theme"),kb=Uo("theme_url"),Tb=Uo("model"),Xx=Uo("model_url"),Z0=Uo("inline_boundaries"),Cb=Uo("formats"),tw=Uo("preview_styles"),hy=Uo("format_empty_lines"),eu=Uo("format_noneditable_selector"),Eh=Uo("custom_ui_selector"),ev=Uo("inline"),_g=Uo("hidden_input"),Ab=Uo("submit_patch"),nw=Uo("add_form_submit_trigger"),Mb=Uo("add_unload_trigger"),wg=Uo("custom_undo_redo_levels"),tv=Uo("disable_nodechange"),py=Uo("readonly"),Gx=Uo("editable_root"),Eb=Uo("content_css_cors"),nv=Uo("plugins"),e3=Uo("external_plugins"),my=Uo("block_unsupported_drop"),wd=Uo("visual"),Kx=Uo("visual_table_class"),Jx=Uo("visual_anchor_class"),e2=Uo("iframe_aria_text"),Pb=Uo("setup"),Wh=Uo("init_instance_callback"),t2=Uo("urlconverter_callback"),Rb=Uo("auto_focus"),zm=Uo("browser_spellcheck"),rw=Uo("protect"),n2=Uo("paste_block_drop"),Fm=Uo("paste_data_images"),q0=Uo("paste_preprocess"),rv=Uo("paste_postprocess"),ov=Uo("newdocument_content"),iv=Uo("paste_webkit_styles"),t3=Uo("paste_remove_styles_if_webkit"),ow=Uo("paste_merge_formats"),iw=Uo("smart_paste"),aw=Uo("paste_as_text"),gy=Uo("paste_tab_spaces"),W0=Uo("allow_html_data_urls"),Og=Uo("text_patterns"),n3=Uo("text_patterns_lookup"),vy=Uo("noneditable_class"),sw=Uo("editable_class"),pp=Uo("noneditable_regexp"),r2=Uo("preserve_cdata"),yy=Uo("highlight_on_focus"),Lb=Uo("xss_sanitization"),Od=Uo("init_content_sync"),Sg=r=>r.options.isSet("text_patterns_lookup"),s0=r=>mo.explode(r.options.get("font_size_style_values")),Ib=r=>mo.explode(r.options.get("font_size_classes")),l0=r=>r.options.get("encoding")==="xml",Y0=r=>mo.explode(r.options.get("images_file_types")),AS=Uo("table_tab_navigation"),r3=Uo("details_initial_state"),o3=Uo("details_serialized_state"),o2=Uo("sandbox_iframes"),i2=r=>r.options.get("sandbox_iframes_exclusions"),MS=Uo("convert_unsafe_embeds"),Db=Uo("license_key"),lw=Uo("api_key"),ES=ne,cw=Nt,qp=r=>{const g=r.parentNode;g&&g.removeChild(r)},av=r=>{const g=yd(r);return{count:r.length-g.length,text:g}},i3=r=>{let g;for(;(g=r.data.lastIndexOf(nc))!==-1;)r.deleteData(g,1)},Nm=(r,g)=>(by(r),g),uw=(r,g)=>{const B=av(r.data.substr(0,g.offset())),H=av(r.data.substr(g.offset()));return(B.text+H.text).length>0?(i3(r),qr(r,g.offset()-B.count)):g},PS=(r,g)=>{const B=g.container(),H=ae(Ee(B.childNodes),r).map(re=>recw(r)&&g.container()===r?uw(r,g):Nm(r,g),a3=(r,g)=>g.container()===r.parentNode?PS(r,g):Nm(r,g),FM=(r,g)=>qr.isTextPosition(g)?PT(r,g):a3(r,g),by=r=>{ES(r)&&Ch(r)&&(Z_(r)?r.removeAttribute("data-mce-caret"):qp(r)),cw(r)&&(i3(r),r.data.length===0&&qp(r))},ID=rr,a2=Zr,s3=Dr,s2="*[contentEditable=false],video,audio,embed,object",l2=(r,g,B)=>{const H=Il(g.getBoundingClientRect(),B);let re,be;if(r.tagName==="BODY"){const Ke=r.ownerDocument.documentElement;re=r.scrollLeft||Ke.scrollLeft,be=r.scrollTop||Ke.scrollTop}else{const Ke=r.getBoundingClientRect();re=r.scrollLeft-Ke.left,be=r.scrollTop-Ke.top}H.left+=re,H.right+=re,H.top+=be,H.bottom+=be,H.width=1;let Re=g.offsetWidth-g.clientWidth;return Re>0&&(B&&(Re*=-1),H.left+=Re,H.right+=Re),H},NM=r=>{var g,B;const H=Zl(sr.fromDom(r),s2);for(let re=0;re{const re=Ys();let be,Re;const Ke=dc(r),ct=r.dom,kt=(Rn,qn)=>{let pr;if(Wt(),s3(qn))return null;if(B(qn)){const Tr=W_(Ke,qn,Rn),wr=l2(g,qn,Rn);ct.setStyle(Tr,"top",wr.top),ct.setStyle(Tr,"caret-color","transparent"),Re=Tr;const Ur=ct.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});ct.setStyles(Ur,{...wr}),ct.add(g,Ur),re.set({caret:Ur,element:qn,before:Rn}),Rn&&ct.addClass(Ur,"mce-visual-caret-before"),Jt(),pr=qn.ownerDocument.createRange(),pr.setStart(Tr,0),pr.setEnd(Tr,0)}else return Re=q_(qn,Rn),pr=qn.ownerDocument.createRange(),l3(Re.nextSibling)?(pr.setStart(Re,0),pr.setEnd(Re,0)):(pr.setStart(Re,1),pr.setEnd(Re,1)),pr;return pr},Wt=()=>{NM(g),Re&&(by(Re),Re=null),re.on(Rn=>{ct.remove(Rn.caret),re.clear()}),be&&(clearInterval(be),be=void 0)},Jt=()=>{be=setInterval(()=>{re.on(Rn=>{H()?ct.toggleClass(Rn.caret,"mce-visual-caret-hidden"):ct.addClass(Rn.caret,"mce-visual-caret-hidden")})},500)};return{show:kt,hide:Wt,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{re.on(Rn=>{const qn=l2(g,Rn.element,Rn.before);ct.setStyles(Rn.caret,{...qn})})},destroy:()=>clearInterval(be)}},$M=()=>fr.browser.isFirefox(),l3=r=>ID(r)||a2(r),sv=r=>(l3(r)||Et(r)&&$M())&&Lp(sr.fromDom(r)).exists(js),RS=Sn,LS=rr,VM=Zr,IS=Je("display","block table table-cell table-caption list-item"),LT=Ch,IT=vg,DT=ne,c2=Nt,c3=ih,Bb=r=>r>0,lv=r=>r<0,fw=(r,g)=>{let B;for(;B=r(g);)if(!IT(B))return B;return null},u2=(r,g,B,H,re)=>{const be=new kc(r,H),Re=LS(r)||IT(r);let Ke;if(lv(g)){if(Re&&(Ke=fw(be.prev.bind(be),!0),B(Ke)))return Ke;for(;Ke=fw(be.prev.bind(be),re);)if(B(Ke))return Ke}if(Bb(g)){if(Re&&(Ke=fw(be.next.bind(be),!0),B(Ke)))return Ke;for(;Ke=fw(be.next.bind(be),re);)if(B(Ke))return Ke}return null},UM=(r,g)=>{const B=re=>RS(re.dom),H=re=>re.dom===g;return ms(sr.fromDom(r),B,H).map(re=>re.dom).getOr(g)},c0=(r,g)=>{for(;r&&r!==g;){if(IS(r))return r;r=r.parentNode}return null},Wp=(r,g,B)=>c0(r.container(),B)===c0(g.container(),B),u3=(r,g)=>{if(!g)return Y.none();const B=g.container(),H=g.offset();return DT(B)?Y.from(B.childNodes[H+r]):Y.none()},jM=(r,g)=>{var B;const re=((B=g.ownerDocument)!==null&&B!==void 0?B:document).createRange();return r?(re.setStartBefore(g),re.setEndBefore(g)):(re.setStartAfter(g),re.setEndAfter(g)),re},DD=(r,g,B)=>c0(g,r)===c0(B,r),zb=(r,g,B)=>{const H=r?"previousSibling":"nextSibling";let re=B;for(;re&&re!==g;){let be=re[H];if(be&<(be)&&(be=be[H]),LS(be)||VM(be)){if(DD(g,be,re))return be;break}if(c3(be))break;re=re.parentNode}return null},f2=U(jM,!0),d2=U(jM,!1),$d=(r,g,B)=>{let H;const re=U(zb,!0,g),be=U(zb,!1,g),Re=B.startContainer,Ke=B.startOffset;if(vg(Re)){const ct=c2(Re)?Re.parentNode:Re,kt=ct.getAttribute("data-mce-caret");if(kt==="before"&&(H=ct.nextSibling,sv(H)))return f2(H);if(kt==="after"&&(H=ct.previousSibling,sv(H)))return d2(H)}if(!B.collapsed)return B;if(Nt(Re)){if(LT(Re)){if(r===1){if(H=be(Re),H)return f2(H);if(H=re(Re),H)return d2(H)}if(r===-1){if(H=re(Re),H)return d2(H);if(H=be(Re),H)return f2(H)}return B}if(jp(Re)&&Ke>=Re.data.length-1)return r===1&&(H=be(Re),H)?f2(H):B;if(U0(Re)&&Ke<=1)return r===-1&&(H=re(Re),H)?d2(H):B;if(Ke===Re.data.length)return H=be(Re),H?f2(H):B;if(Ke===0)return H=re(Re),H?d2(H):B}return B},f3=(r,g)=>u3(r?0:-1,g).filter(LS),Fb=(r,g,B)=>{const H=$d(r,g,B);return r===-1?qr.fromRangeStart(H):qr.fromRangeEnd(H)},d3=r=>Y.from(r.getNode()).map(sr.fromDom),BT=r=>Y.from(r.getNode(!0)).map(sr.fromDom),DS=(r,g)=>{let B=g;for(;B=r(B);)if(B.isVisible())return B;return B},h3=(r,g)=>{const B=Wp(r,g);return!B&&On(r.getNode())?!0:B};var Mf;(function(r){r[r.Backwards=-1]="Backwards",r[r.Forwards=1]="Forwards"})(Mf||(Mf={}));const p3=rr,kg=Nt,BS=ne,zS=On,cv=ih,zT=GO,xy=Zx,m3=(r,g)=>{const B=[];let H=r;for(;H&&H!==g;)B.push(H),H=H.parentNode;return B},g3=(r,g)=>r.hasChildNodes()&&g{if(Bb(r)){if(cv(g.previousSibling)&&!kg(g.previousSibling))return qr.before(g);if(kg(g))return qr(g,0)}if(lv(r)){if(cv(g.nextSibling)&&!kg(g.nextSibling))return qr.after(g);if(kg(g))return qr(g,g.data.length)}return lv(r)?zS(g)?qr.before(g):qr.after(g):qr.before(g)},Nb=(r,g)=>{const B=g.nextSibling;return B&&cv(B)?kg(B)?qr(B,0):qr.before(B):h2(Mf.Forwards,qr.after(g),r)},h2=(r,g,B)=>{let H,re,be,Re;if(!BS(B)||!g)return null;if(g.isEqual(qr.after(B))&&B.lastChild){if(Re=qr.after(B.lastChild),lv(r)&&cv(B.lastChild)&&BS(B.lastChild))return zS(B.lastChild)?qr.before(B.lastChild):Re}else Re=g;const Ke=Re.container();let ct=Re.offset();if(kg(Ke)){if(lv(r)&&ct>0)return qr(Ke,--ct);if(Bb(r)&&ct0&&(re=g3(Ke,ct-1),cv(re)))return!zT(re)&&(be=u2(re,r,xy,re),be)?kg(be)?qr(be,be.data.length):qr.after(be):kg(re)?qr(re,re.data.length):qr.before(re);if(Bb(r)&&ct({next:g=>h2(Mf.Forwards,g,r),prev:g=>h2(Mf.Backwards,g,r)}),FT=(r,g,B)=>{const H=r?qr.before(B):qr.after(B);return Yp(r,g,H)},NS=r=>On(r)?qr.before(r):qr.after(r),$S=r=>qr.isTextPosition(r)?r.offset()===0:ih(r.getNode()),NT=r=>{if(qr.isTextPosition(r)){const g=r.container();return r.offset()===g.data.length}else return ih(r.getNode(!0))},VS=(r,g)=>!qr.isTextPosition(r)&&!qr.isTextPosition(g)&&r.getNode()===g.getNode(!0),$T=r=>!qr.isTextPosition(r)&&On(r.getNode()),VT=(r,g,B)=>r?!VS(g,B)&&!$T(g)&&NT(g)&&$S(B):!VS(B,g)&&$S(g)&&NT(B),Yp=(r,g,B)=>{const H=Sd(g);return Y.from(r?H.next(B):H.prev(B))},uv=(r,g,B)=>Yp(r,g,B).bind(H=>Wp(B,H,g)&&VT(r,B,H)?Yp(r,g,H):Y.some(H)),UT=(r,g,B,H)=>uv(r,g,B).bind(re=>H(re)?UT(r,g,re,H):Y.some(re)),$b=(r,g)=>{const B=r?g.firstChild:g.lastChild;return Nt(B)?Y.some(qr(B,r?0:B.data.length)):B?ih(B)?Y.some(r?qr.before(B):NS(B)):FT(r,g,B):Y.none()},sh=U(Yp,!0),mp=U(Yp,!1),lh=U($b,!0),Xp=U($b,!1),v3="_mce_caret",Gp=r=>ne(r)&&r.id===v3,Vb=(r,g)=>{let B=g;for(;B&&B!==r;){if(Gp(B))return B;B=B.parentNode}return null},QM=r=>v(r.start),jT=r=>_t(r,"rng"),HM=r=>_t(r,"id"),QT=r=>_t(r,"name"),HT=r=>mo.isArray(r.start),US=r=>!QT(r)&&R(r.forward)?r.forward:!0,jS=(r,g)=>(ne(g)&&r.isBlock(g)&&!g.innerHTML&&(g.innerHTML='
'),g),ed=(r,g)=>{const B=Y.from(Or(r.getRoot(),g.start)),H=Y.from(Or(r.getRoot(),g.end));return us(B,H,(re,be)=>{const Re=r.createRng();return Re.setStart(re.container(),re.offset()),Re.setEnd(be.container(),be.offset()),{range:Re,forward:US(g)}})},QS=(r,g)=>{var B;const re=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(nc);r.appendChild(re),g.setStart(re,0),g.setEnd(re,0)},_y=r=>!r.hasChildNodes(),p2=(r,g)=>Xp(r).fold(oe,B=>(g.setStart(B.container(),B.offset()),g.setEnd(B.container(),B.offset()),!0)),HS=(r,g,B)=>_y(g)&&Vb(r,g)?(QS(g,B),!0):!1,y3=(r,g,B,H)=>{const re=B[g?"start":"end"],be=r.getRoot();if(re){let Re=be,Ke=re[0];for(let ct=re.length-1;Re&&ct>=1;ct--){const kt=Re.childNodes;if(HS(be,Re,H))return!0;if(re[ct]>kt.length-1)return HS(be,Re,H)?!0:p2(Re,H);Re=kt[re[ct]]}Nt(Re)&&(Ke=Math.min(re[0],Re.data.length)),ne(Re)&&(Ke=Math.min(re[0],Re.childNodes.length)),g?H.setStart(Re,Ke):H.setEnd(Re,Ke)}return!0},dw=r=>Nt(r)&&r.data.length>0,ZS=(r,g,B)=>{const H=r.get(B.id+"_"+g),re=H==null?void 0:H.parentNode,be=B.keep;if(H&&re){let Re,Ke;if(g==="start"?be?H.hasChildNodes()?(Re=H.firstChild,Ke=1):dw(H.nextSibling)?(Re=H.nextSibling,Ke=0):dw(H.previousSibling)?(Re=H.previousSibling,Ke=H.previousSibling.data.length):(Re=re,Ke=r.nodeIndex(H)+1):(Re=re,Ke=r.nodeIndex(H)):be?H.hasChildNodes()?(Re=H.firstChild,Ke=1):dw(H.previousSibling)?(Re=H.previousSibling,Ke=H.previousSibling.data.length):(Re=re,Ke=r.nodeIndex(H)):(Re=re,Ke=r.nodeIndex(H)),!be){const ct=H.previousSibling,kt=H.nextSibling;mo.each(mo.grep(H.childNodes),Jt=>{Nt(Jt)&&(Jt.data=Jt.data.replace(/\uFEFF/g,""))});let Wt;for(;Wt=r.get(B.id+"_"+g);)r.remove(Wt,!0);if(Nt(kt)&&Nt(ct)&&!fr.browser.isOpera()){const Jt=ct.data.length;ct.appendData(kt.data),r.remove(kt),Re=ct,Ke=Jt}}return Y.some(qr(Re,Ke))}else return Y.none()},m2=(r,g)=>{const B=r.createRng();return y3(r,!0,g,B)&&y3(r,!1,g,B)?Y.some({range:B,forward:US(g)}):Y.none()},qS=(r,g)=>{const B=ZS(r,"start",g),H=ZS(r,"end",g);return us(B,H.or(B),(re,be)=>{const Re=r.createRng();return Re.setStart(jS(r,re.container()),re.offset()),Re.setEnd(jS(r,be.container()),be.offset()),{range:Re,forward:US(g)}})},X0=(r,g)=>Y.from(r.select(g.name)[g.index]).map(B=>{const H=r.createRng();return H.selectNode(B),{range:H,forward:!0}}),Ub=(r,g)=>{const B=r.dom;if(g){if(HT(g))return m2(B,g);if(QM(g))return ed(B,g);if(HM(g))return qS(B,g);if(QT(g))return X0(B,g);if(jT(g))return Y.some({range:g.rng,forward:US(g)})}return Y.none()},ZT=(r,g,B)=>Bs(r,g,B),fv=(r,g)=>{Ub(r,g).each(({range:B,forward:H})=>{r.setRng(B,H)})},Kp=r=>ne(r)&&r.tagName==="SPAN"&&r.getAttribute("data-mce-type")==="bookmark",G0=(r=>g=>r===g)(Ea),jb=r=>r!==""&&` \f +\r \v`.indexOf(r)!==-1,WS=r=>!jb(r)&&!G0(r)&&!El(r),b3=r=>{const g=[];if(r)for(let B=0;B$e(r,g=>{const B=Pm(g);return B?[sr.fromDom(B)]:[]}),ZM=r=>b3(r).length>1,qM=r=>Te(WT(r),N1),YT=r=>Zl(r,"td[data-mce-selected],th[data-mce-selected]"),wy=(r,g)=>{const B=YT(g);return B.length>0?B:qM(r)},g2=r=>wy(b3(r.selection.getSel()),sr.fromDom(r.getBody())),hw=(r,g)=>wl(r,"table",g),WM=r=>{const g=r.startContainer,B=r.startOffset;return Nt(g)?B===0?Y.some(sr.fromDom(g)):Y.none():Y.from(g.childNodes[B]).map(sr.fromDom)},YM=r=>{const g=r.endContainer,B=r.endOffset;return Nt(g)?B===g.data.length?Y.some(sr.fromDom(g)):Y.none():Y.from(g.childNodes[B-1]).map(sr.fromDom)},v2=r=>Uf(r).fold($([r]),g=>[r].concat(v2(g))),YS=r=>zl(r).fold($([r]),g=>la(g)==="br"?Eu(g).map(B=>[r].concat(YS(B))).getOr([]):[r].concat(YS(g))),x3=(r,g)=>us(WM(g),YM(g),(B,H)=>{const re=De(v2(r),U(Fa,B)),be=De(YS(r),U(Fa,H));return re.isSome()&&be.isSome()}).getOr(!1),XS=(r,g,B,H)=>{const re=B,be=new kc(B,re),Re=qt(r.schema.getMoveCaretBeforeOnEnterElements(),(ct,kt)=>!ce(["td","th","table"],kt.toLowerCase()));let Ke=B;do{if(Nt(Ke)&&mo.trim(Ke.data).length!==0){H?g.setStart(Ke,0):g.setEnd(Ke,Ke.data.length);return}if(Re[Ke.nodeName]){H?g.setStartBefore(Ke):Ke.nodeName==="BR"?g.setEndBefore(Ke):g.setEndAfter(Ke);return}}while(Ke=H?be.next():be.prev());re.nodeName==="BODY"&&(H?g.setStart(re,0):g.setEnd(re,re.childNodes.length))},GS=r=>{const g=r.selection.getSel();return E(g)&&g.rangeCount>0},y2=(r,g)=>{const B=g2(r);B.length>0?ye(B,H=>{const re=H.dom,be=r.dom.createRng();be.setStartBefore(re),be.setEndAfter(re),g(be,!0)}):g(r.selection.getRng(),!1)},KS=(r,g,B)=>{const H=Zi(r,g);B(H),r.moveToBookmark(H)},b2=r=>L(r==null?void 0:r.nodeType),JS=r=>ne(r)&&!Kp(r)&&!Gp(r)&&!dt(r),ps=(r,g)=>{if(JS(g)&&!/^(TD|TH)$/.test(g.nodeName)){const B=r.getAttrib(g,"data-mce-selected"),H=parseInt(B,10);return!isNaN(H)&&H>0}else return!1},K0=(r,g,B)=>{const{selection:H,dom:re}=r,be=H.getNode(),Re=rr(be);KS(H,!0,()=>{g()}),Re&&rr(be)&&re.isChildOf(be,r.getBody())?r.selection.select(be):B(H.getStart())&&Qb(re,H)},Qb=(r,g)=>{var B,H;const re=g.getRng(),{startContainer:be,startOffset:Re}=re,Ke=g.getNode();if(!ps(r,Ke)&&ne(be)){const ct=be.childNodes,kt=r.getRoot();let Wt;if(Re{if(r){const H=g?"nextSibling":"previousSibling";for(r=B?r:r[H];r;r=r[H])if(ne(r)||!t5(r))return r}},e5=(r,g)=>!!r.getTextBlockElements()[g.nodeName.toLowerCase()]||xm(r,g),dv=(r,g,B)=>r.schema.isValidChild(g,B),t5=(r,g=!1)=>{if(E(r)&&Nt(r)){const B=g?r.data.replace(/ /g," "):r.data;return kf(B)}else return!1},_3=r=>E(r)&&Nt(r)&&r.length===0,n5=(r,g)=>{const B="[data-mce-cef-wrappable]",H=eu(r),re=_r(H)?B:`${B},${H}`;return wf(sr.fromDom(g),re)},r5=(r,g)=>{const B=r.dom;return JS(g)&&B.getContentEditable(g)==="false"&&n5(r,g)&&B.select('[contenteditable="true"]',g).length===0},Hb=(r,g)=>C(r)?r(g):(E(g)&&(r=r.replace(/%(\w+)/g,(B,H)=>g[H]||B)),r),w3=(r,g)=>(r=r||"",g=g||"",r=""+(r.nodeName||r),g=""+(g.nodeName||g),r.toLowerCase()===g.toLowerCase()),Zb=(r,g)=>{if(T(r))return null;{let B=String(r);return(g==="color"||g==="backgroundColor")&&(B=Am(B)),g==="fontWeight"&&r===700&&(B="bold"),g==="fontFamily"&&(B=B.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),B}},O3=(r,g,B)=>{const H=r.getStyle(g,B);return Zb(H,B)},XT=(r,g)=>{let B;return r.getParent(g,H=>ne(H)?(B=r.getStyle(H,"text-decoration"),!!B&&B!=="none"):!1),B},x2=(r,g,B)=>r.getParents(g,B,r.getRoot()),S3=(r,g,B)=>{const H=r.formatter.get(g);return E(H)&&de(H,B)},XM=(r,g)=>S3(r,g,H=>{const re=be=>C(be)||be.length>1&&be.charAt(0)==="%";return de(["styles","attributes"],be=>Ct(H,be).exists(Re=>{const Ke=A(Re)?Re:Gt(Re);return de(Ke,re)}))}),k3=(r,g,B)=>{const H=["inline","block","selector","attributes","styles","classes"],re=be=>qt(be,(Re,Ke)=>de(H,ct=>ct===Ke));return S3(r,g,be=>{const Re=re(be);return S3(r,B,Ke=>{const ct=re(Ke);return gn(Re,ct)})})},hv=r=>nn(r,"block"),GM=r=>hv(r)&&r.wrapper===!0,mw=r=>hv(r)&&r.wrapper!==!0,$m=r=>nn(r,"selector"),Ef=r=>nn(r,"inline"),KM=r=>$m(r)&&Ef(r)&&Aa(Ct(r,"mixed"),!0),u0=r=>$m(r)&&r.expand!==!1&&!Ef(r),JM=r=>{const g=[];let B=r;for(;B;){if(Nt(B)&&B.data!==nc||B.childNodes.length>1)return[];ne(B)&&g.push(B),B=B.firstChild}return g},GT=r=>JM(r).length>0,gw=r=>Gp(r.dom)&>(r.dom),_2=Kp,KT=x2,JT=t5,BD=e5,zD=r=>On(r)&&r.getAttribute("data-mce-bogus")&&!r.nextSibling,e6=(r,g)=>{let B=g;for(;B;){if(ne(B)&&r.getContentEditable(B))return r.getContentEditable(B)==="false"?B:g;B=B.parentNode}return g},t6=(r,g,B,H)=>{const re=g.data;if(r){for(let be=B;be>0;be--)if(H(re.charAt(be-1)))return be}else for(let be=B;bet6(r,g,B,H=>G0(H)||jb(H)),Pf=(r,g,B)=>t6(r,g,B,WS),vw=(r,g,B,H,re,be)=>{let Re;const Ke=r.getParent(B,r.isBlock)||g,ct=(Wt,Jt,ln)=>{const kn=Em(r),Vn=re?kn.backwards:kn.forwards;return Y.from(Vn(Wt,Jt,(Rn,qn)=>_2(Rn.parentNode)?-1:(Re=Rn,ln(re,Rn,qn)),Ke))};return ct(B,H,hi).bind(Wt=>be?ct(Wt.container,Wt.offset+(re?-1:0),Pf):Y.some(Wt)).orThunk(()=>Re?Y.some({container:Re,offset:re?0:Re.length}):Y.none())},Rf=(r,g,B,H,re)=>{const be=H[re];Nt(H)&&_r(H.data)&&be&&(H=be);const Re=KT(r,H);for(let Ke=0;Ke{var re;let be=B;const Re=r.getRoot(),Ke=g[0];if(hv(Ke)&&(be=Ke.wrapper?null:r.getParent(B,Ke.block,Re)),!be){const ct=(re=r.getParent(B,"LI,TD,TH,SUMMARY"))!==null&&re!==void 0?re:Re;be=r.getParent(Nt(B)?B.parentNode:B,kt=>kt!==Re&&BD(r.schema,kt),ct)}if(be&&hv(Ke)&&Ke.wrapper&&(be=KT(r,be,"ul,ol").reverse()[0]||be),!be)for(be=B;be&&be[H]&&!r.isBlock(be[H])&&(be=be[H],!w3(be,"br")););return be||B},o5=(r,g,B,H)=>{const re=B.parentNode;return E(B[H])?!1:re===g||T(re)||r.isBlock(re)?!0:o5(r,g,re,H)},qb=(r,g,B,H,re)=>{let be=B;const Re=re?"previousSibling":"nextSibling",Ke=r.getRoot();if(Nt(B)&&!JT(B)&&(re?H>0:H_2(r.parentNode)||_2(r),Oy=(r,g,B,H=!1)=>{let{startContainer:re,startOffset:be,endContainer:Re,endOffset:Ke}=g;const ct=B[0];return ne(re)&&re.hasChildNodes()&&(re=fi(re,be),Nt(re)&&(be=0)),ne(Re)&&Re.hasChildNodes()&&(Re=fi(Re,g.collapsed?Ke:Ke-1),Nt(Re)&&(Ke=Re.data.length)),re=e6(r,re),Re=e6(r,Re),T3(re)&&(re=_2(re)?re:re.parentNode,g.collapsed?re=re.previousSibling||re:re=re.nextSibling||re,Nt(re)&&(be=g.collapsed?re.length:0)),T3(Re)&&(Re=_2(Re)?Re:Re.parentNode,g.collapsed?Re=Re.nextSibling||Re:Re=Re.previousSibling||Re,Nt(Re)&&(Ke=g.collapsed?0:Re.length)),g.collapsed&&(vw(r,r.getRoot(),re,be,!0,H).each(({container:Jt,offset:ln})=>{re=Jt,be=ln}),vw(r,r.getRoot(),Re,Ke,!1,H).each(({container:Jt,offset:ln})=>{Re=Jt,Ke=ln})),(Ef(ct)||ct.block_expand)&&((!Ef(ct)||!Nt(re)||be===0)&&(re=qb(r,B,re,be,!0)),(!Ef(ct)||!Nt(Re)||Ke===Re.data.length)&&(Re=qb(r,B,Re,Ke,!1))),u0(ct)&&(re=Rf(r,B,g,re,"previousSibling"),Re=Rf(r,B,g,Re,"nextSibling")),(hv(ct)||$m(ct))&&(re=Vm(r,B,re,"previousSibling"),Re=Vm(r,B,Re,"nextSibling"),hv(ct)&&(r.isBlock(re)||(re=qb(r,B,re,be,!0),Nt(re)&&(be=0)),r.isBlock(Re)||(Re=qb(r,B,Re,Ke,!1),Nt(Re)&&(Ke=Re.data.length)))),ne(re)&&re.parentNode&&(be=r.nodeIndex(re),re=re.parentNode),ne(Re)&&Re.parentNode&&(Ke=r.nodeIndex(Re)+1,Re=Re.parentNode),{startContainer:re,startOffset:be,endContainer:Re,endOffset:Ke}},yw=(r,g,B)=>{var H;const re=g.startOffset,be=fi(g.startContainer,re),Re=g.endOffset,Ke=fi(g.endContainer,Re-1),ct=qn=>{const pr=qn[0];Nt(pr)&&pr===be&&re>=pr.data.length&&qn.splice(0,1);const Tr=qn[qn.length-1];return Re===0&&qn.length>0&&Tr===Ke&&Nt(Tr)&&qn.splice(qn.length-1,1),qn},kt=(qn,pr,Tr)=>{const wr=[];for(;qn&&qn!==Tr;qn=qn[pr])wr.push(qn);return wr},Wt=(qn,pr)=>r.getParent(qn,Tr=>Tr.parentNode===pr,pr),Jt=(qn,pr,Tr)=>{const wr=Tr?"nextSibling":"previousSibling";for(let Ur=qn,wo=Ur.parentNode;Ur&&Ur!==pr;Ur=wo){wo=Ur.parentNode;const jo=kt(Ur===qn?Ur:Ur[wr],wr);jo.length&&(Tr||jo.reverse(),B(ct(jo)))}};if(be===Ke)return B(ct([be]));const ln=(H=r.findCommonAncestor(be,Ke))!==null&&H!==void 0?H:r.getRoot();if(r.isChildOf(be,Ke))return Jt(be,ln,!0);if(r.isChildOf(Ke,be))return Jt(Ke,ln);const kn=Wt(be,ln)||be,Vn=Wt(Ke,ln)||Ke;Jt(be,kn,!0);const Rn=kt(kn===be?kn:kn.nextSibling,"nextSibling",Vn===Ke?Vn.nextSibling:Vn);Rn.length&&B(ct(Rn)),Jt(Ke,Vn)},n6=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],eE=r=>ks(r)&&ry(r)===nc,tE=(r,g,B,H)=>Hu(g).fold(()=>"skipping",re=>H==="br"||eE(g)?"valid":zx(g)?"existing":Gp(g.dom)?"caret":de(n6,be=>wf(g,be))?"valid-block":!dv(r,B,H)||!dv(r,la(re),B)?"invalid-child":"valid"),nE=(r,g)=>{const B=Oy(r.dom,g,[{inline:"span"}]);g.setStart(B.startContainer,B.startOffset),g.setEnd(B.endContainer,B.endOffset),r.selection.setRng(g)},Sy=(r,g,B,H,re,be)=>{const{uid:Re=g,...Ke}=B;_f(r,ey()),Es(r,`${ty()}`,Re),Es(r,`${pg()}`,H);const{attributes:ct={},classes:kt=[]}=re(Re,Ke);if(ef(r,ct),vd(r,kt),be){kt.length>0&&Es(r,`${z0()}`,kt.join(","));const Wt=nt(ct);Wt.length>0&&Es(r,`${mg()}`,Wt.join(","))}},bw=r=>{nf(r,ey()),gc(r,`${ty()}`),gc(r,`${pg()}`),gc(r,`${R1()}`);const g=sd(r,`${mg()}`).map(H=>H.split(",")).getOr([]),B=sd(r,`${z0()}`).map(H=>H.split(",")).getOr([]);ye(g,H=>gc(r,H)),U_(r,B),gc(r,`${z0()}`),gc(r,`${mg()}`)},xw=(r,g,B,H,re)=>{const be=sr.fromTag("span",r);return Sy(be,g,B,H,re,!1),be},C3=(r,g,B,H,re,be)=>{const Re=[],Ke=xw(r.getDoc(),B,be,H,re),ct=Ys(),kt=()=>{ct.clear()},Wt=()=>ct.get().getOrThunk(()=>{const Vn=Th(Ke);return Re.push(Vn),ct.set(Vn),Vn}),Jt=Vn=>{ye(Vn,ln)},ln=Vn=>{switch(tE(r,Vn,"span",la(Vn))){case"invalid-child":{kt();const qn=Oc(Vn);Jt(qn),kt();break}case"valid-block":{kt(),Sy(Vn,B,be,H,re,!0);break}case"valid":{const qn=Wt();Sc(Vn,qn);break}}},kn=Vn=>{const Rn=ve(Vn,sr.fromDom);Jt(Rn)};return yw(r.dom,g,Vn=>{kt(),kn(Vn)}),Re},gp=(r,g,B,H)=>{r.undoManager.transact(()=>{const re=r.selection,be=re.getRng(),Re=g2(r).length>0,Ke=D1("mce-annotation");if(be.collapsed&&!Re&&nE(r,be),re.getRng().collapsed&&!Re){const ct=xw(r.getDoc(),Ke,H,g,B.decorate);Id(ct,Ea),re.getRng().insertNode(ct.dom),re.select(ct.dom)}else KS(re,!1,()=>{y2(r,ct=>{C3(r,ct,Ke,g,B.decorate,H)})})})},J0=r=>{const g=V_();Nx(r,g);const B=$_(r,g),H=Ju("span"),re=be=>{ye(be,Re=>{H(Re)?yu(Re):bw(Re)})};return{register:(be,Re)=>{g.register(be,Re)},annotate:(be,Re)=>{g.lookup(be).each(Ke=>{gp(r,be,Ke,Re)})},annotationChanged:(be,Re)=>{B.addListener(be,Re)},remove:be=>{I1(r,Y.some(be)).each(({elements:Re})=>{const Ke=r.selection.getBookmark();re(Re),r.selection.moveToBookmark(Ke)})},removeAll:be=>{const Re=r.selection.getBookmark();Ge(Fx(r,be),(Ke,ct)=>{re(Ke)}),r.selection.moveToBookmark(Re)},getAll:be=>{const Re=Fx(r,be);return ht(Re,Ke=>ve(Ke,ct=>ct.dom))}}},ky=r=>({getBookmark:U(ZT,r),moveToBookmark:U(fv,r)});ky.isBookmarkNode=Kp;const Ty=(r,g,B)=>B.collapsed?!1:de(B.getClientRects(),H=>ay(H,r,g)),rE=(r,g)=>r.dispatch("PreProcess",g),A3=(r,g)=>r.dispatch("PostProcess",g),M3=r=>{r.dispatch("remove")},oE=r=>{r.dispatch("detach")},iE=(r,g)=>{r.dispatch("SwitchMode",{mode:g})},aE=(r,g,B,H,re)=>{r.dispatch("ObjectResizeStart",{target:g,width:B,height:H,origin:re})},sE=(r,g,B,H,re)=>{r.dispatch("ObjectResized",{target:g,width:B,height:H,origin:re})},r6=r=>{r.dispatch("PreInit")},E3=r=>{r.dispatch("PostRender")},lE=r=>{r.dispatch("Init")},P3=(r,g)=>{r.dispatch("PlaceholderToggle",{state:g})},kd=(r,g,B)=>{r.dispatch(g,B)},Um=(r,g,B,H)=>{r.dispatch("FormatApply",{format:g,node:B,vars:H})},Jp=(r,g,B,H)=>{r.dispatch("FormatRemove",{format:g,node:B,vars:H})},R3=(r,g)=>r.dispatch("BeforeSetContent",g),L3=(r,g)=>r.dispatch("SetContent",g),o6=(r,g)=>r.dispatch("BeforeGetContent",g),i5=(r,g)=>r.dispatch("GetContent",g),i6=(r,g)=>{r.dispatch("AutocompleterStart",g)},a5=(r,g)=>{r.dispatch("AutocompleterUpdate",g)},a6=(r,g)=>{r.dispatch("AutocompleterUpdateActiveRange",g)},s6=r=>{r.dispatch("AutocompleterEnd")},cE=(r,g,B)=>r.dispatch("PastePreProcess",{content:g,internal:B}),uE=(r,g,B)=>r.dispatch("PastePostProcess",{node:g,internal:B}),I3=(r,g)=>r.dispatch("PastePlainTextToggle",{state:g}),s5=(r,g)=>r.dispatch("EditableRootStateChange",{state:g}),Fo={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:r=>r.shiftKey||r.ctrlKey||r.altKey||Fo.metaKeyPressed(r),metaKeyPressed:r=>fr.os.isMacOS()||fr.os.isiOS()?r.metaKey:r.ctrlKey&&!r.altKey},Ph="data-mce-selected",l6="table,img,figure.image,hr,video,span.mce-preview-object,details",l5=Math.abs,_w=Math.round,ww={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},D3=r=>r.type==="longpress"||r.type.indexOf("touch")===0,Ow=(r,g)=>{const B=g.dom,H=g.getDoc(),re=document,be=g.getBody();let Re,Ke,ct,kt,Wt,Jt,ln,kn,Vn,Rn,qn,pr,Tr,wr,Ur,wo,jo;const di=ci=>E(ci)&&(An(ci)||B.is(ci,"figure.image")),lo=ci=>Zr(ci)||B.hasClass(ci,"mce-preview-object"),eo=(ci,Va)=>{if(D3(ci)){const Xa=ci.touches[0];return di(ci.target)&&!Ty(Xa.clientX,Xa.clientY,Va)}else return di(ci.target)&&!Ty(ci.clientX,ci.clientY,Va)},xo=ci=>{const Va=ci.target;eo(ci,g.selection.getRng())&&!ci.isDefaultPrevented()&&g.selection.select(Va)},bi=ci=>B.hasClass(ci,"mce-preview-object")&&E(ci.firstElementChild)?[ci,ci.firstElementChild]:B.is(ci,"figure.image")?[ci.querySelector("img")]:[ci],Bi=ci=>{const Va=xd(g);return!Va||ci.getAttribute("data-mce-resize")==="false"||ci===g.getBody()?!1:B.hasClass(ci,"mce-preview-object")&&E(ci.firstElementChild)?wf(sr.fromDom(ci.firstElementChild),Va):wf(sr.fromDom(ci),Va)},$a=(ci,Va)=>{if(lo(Va))return ci.create("img",{src:fr.transparentSrc});if(Et(Va)){const Df=xr(kt.name,"n")?Xe:tt,el=Va.cloneNode(!0);return Df(ci.select("tr",el)).each(Yu=>{const Rg=ci.select("td,th",Yu);ci.setStyle(Yu,"height",null),ye(Rg,m1=>ci.setStyle(m1,"height",null))}),el}else return Va.cloneNode(!0)},Ia=(ci,Va,Xa)=>{if(E(Xa)){const Df=bi(ci);ye(Df,el=>{el.style[Va]||!g.schema.isValid(el.nodeName.toLowerCase(),Va)?B.setStyle(el,Va,Xa):B.setAttrib(el,Va,""+Xa)})}},Us=(ci,Va,Xa)=>{Ia(ci,"width",Va),Ia(ci,"height",Xa)},sl=ci=>{let Va,Xa,Df,el,Yu;Va=ci.screenX-Jt,Xa=ci.screenY-ln,wr=Va*kt[2]+Rn,Ur=Xa*kt[3]+qn,wr=wr<5?5:wr,Ur=Ur<5?5:Ur,(di(Re)||lo(Re))&&a0(g)!==!1?Df=!Fo.modifierPressed(ci):Df=Fo.modifierPressed(ci),Df&&(l5(Va)>l5(Xa)?(Ur=_w(wr*pr),wr=_w(Ur/pr)):(wr=_w(Ur/pr),Ur=_w(wr*pr))),Us(Ke,wr,Ur),el=kt.startPos.x+Va,Yu=kt.startPos.y+Xa,el=el>0?el:0,Yu=Yu>0?Yu:0,B.setStyles(ct,{left:el,top:Yu,display:"block"}),ct.innerHTML=wr+" × "+Ur,kt[2]<0&&Ke.clientWidth<=wr&&B.setStyle(Ke,"left",kn+(Rn-wr)),kt[3]<0&&Ke.clientHeight<=Ur&&B.setStyle(Ke,"top",Vn+(qn-Ur)),Va=be.scrollWidth-wo,Xa=be.scrollHeight-jo,Va+Xa!==0&&B.setStyles(ct,{left:el-Va,top:Yu-Xa}),Tr||(aE(g,Re,Rn,qn,"corner-"+kt.name),Tr=!0)},nu=()=>{const ci=Tr;Tr=!1,ci&&(Ia(Re,"width",wr),Ia(Re,"height",Ur)),B.unbind(H,"mousemove",sl),B.unbind(H,"mouseup",nu),re!==H&&(B.unbind(re,"mousemove",sl),B.unbind(re,"mouseup",nu)),B.remove(Ke),B.remove(ct),B.remove(Wt),jd(Re),ci&&(sE(g,Re,wr,Ur,"corner-"+kt.name),B.setAttrib(Re,"style",B.getAttrib(Re,"style"))),g.nodeChanged()},jd=ci=>{ii();const Va=B.getPos(ci,be),Xa=Va.x,Df=Va.y,el=ci.getBoundingClientRect(),Yu=el.width||el.right-el.left,Rg=el.height||el.bottom-el.top;Re!==ci&&(Wo(),Re=ci,wr=Ur=0);const m1=g.dispatch("ObjectSelected",{target:ci});Bi(ci)&&!m1.isDefaultPrevented()?Ge(ww,(Dh,om)=>{const Lg=Ig=>{const zi=bi(Re)[0];Jt=Ig.screenX,ln=Ig.screenY,Rn=zi.clientWidth,qn=zi.clientHeight,pr=qn/Rn,kt=Dh,kt.name=om,kt.startPos={x:Yu*Dh[0]+Xa,y:Rg*Dh[1]+Df},wo=be.scrollWidth,jo=be.scrollHeight,Wt=B.add(be,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),B.setStyles(Wt,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),Ke=$a(B,Re),B.addClass(Ke,"mce-clonedresizable"),B.setAttrib(Ke,"data-mce-bogus","all"),Ke.contentEditable="false",B.setStyles(Ke,{left:Xa,top:Df,margin:0}),Us(Ke,Yu,Rg),Ke.removeAttribute(Ph),be.appendChild(Ke),B.bind(H,"mousemove",sl),B.bind(H,"mouseup",nu),re!==H&&(B.bind(re,"mousemove",sl),B.bind(re,"mouseup",nu)),ct=B.add(be,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},Rn+" × "+qn)};let xp=B.get("mceResizeHandle"+om);xp&&B.remove(xp),xp=B.add(be,"div",{id:"mceResizeHandle"+om,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+om+"-resize; margin:0; padding:0"}),B.bind(xp,"mousedown",Ig=>{Ig.stopImmediatePropagation(),Ig.preventDefault(),Lg(Ig)}),Dh.elm=xp,B.setStyles(xp,{left:Yu*Dh[0]+Xa-xp.offsetWidth/2,top:Rg*Dh[1]+Df-xp.offsetHeight/2})}):Wo(!1)},vl=hg(jd,0),Wo=(ci=!0)=>{vl.cancel(),ii(),Re&&ci&&Re.removeAttribute(Ph),Ge(ww,(Va,Xa)=>{const Df=B.get("mceResizeHandle"+Xa);Df&&(B.unbind(Df),B.remove(Df))})},Ei=(ci,Va)=>B.isChildOf(ci,Va),ws=ci=>{if(Tr||g.removed||g.composing)return;const Va=ci.type==="mousedown"?ci.target:r.getNode(),Xa=mu(sr.fromDom(Va),l6).map(el=>el.dom).filter(el=>B.isEditable(el.parentElement)||el.nodeName==="IMG"&&B.isEditable(el)).getOrUndefined(),Df=E(Xa)?B.getAttrib(Xa,Ph,"1"):"1";if(ye(B.select(`img[${Ph}],hr[${Ph}]`),el=>{el.removeAttribute(Ph)}),E(Xa)&&Ei(Xa,be)&&g.hasFocus()){Qi();const el=r.getStart(!0);if(Ei(el,Xa)&&Ei(r.getEnd(!0),Xa)){B.setAttrib(Xa,Ph,Df),vl.throttle(Xa);return}}Wo()},ii=()=>{Ge(ww,ci=>{ci.elm&&(B.unbind(ci.elm),delete ci.elm)})},Qi=()=>{try{g.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return g.on("init",()=>{Qi(),g.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",ws),g.on("keyup compositionend",ci=>{Re&&Re.nodeName==="TABLE"&&ws(ci)}),g.on("hide blur",Wo),g.on("contextmenu longpress",xo,!0)}),g.on("remove",ii),{isResizable:Bi,showResizeRect:jd,hideResizeRect:Wo,updateResizeRect:ws,destroy:()=>{vl.cancel(),Re=Ke=Wt=null}}},c6=(r,g)=>{g.fold(B=>{r.setStartBefore(B.dom)},(B,H)=>{r.setStart(B.dom,H)},B=>{r.setStartAfter(B.dom)})},u6=(r,g)=>{g.fold(B=>{r.setEndBefore(B.dom)},(B,H)=>{r.setEnd(B.dom,H)},B=>{r.setEndAfter(B.dom)})},c5=(r,g,B)=>{const H=r.document.createRange();return c6(H,g),u6(H,B),H},u5=(r,g,B,H,re)=>{const be=r.document.createRange();return be.setStart(g.dom,B),be.setEnd(H.dom,re),be},pv=aa.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),f5=(r,g,B)=>g(sr.fromDom(B.startContainer),B.startOffset,sr.fromDom(B.endContainer),B.endOffset),f6=(r,g)=>g.match({domRange:B=>({ltr:$(B),rtl:Y.none}),relative:(B,H)=>({ltr:xt(()=>c5(r,B,H)),rtl:xt(()=>Y.some(c5(r,H,B)))}),exact:(B,H,re,be)=>({ltr:xt(()=>u5(r,B,H,re,be)),rtl:xt(()=>Y.some(u5(r,re,be,B,H)))})}),fE=(r,g)=>{const B=g.ltr();return B.collapsed?g.rtl().filter(re=>re.collapsed===!1).map(re=>pv.rtl(sr.fromDom(re.endContainer),re.endOffset,sr.fromDom(re.startContainer),re.startOffset)).getOrThunk(()=>f5(r,pv.ltr,B)):f5(r,pv.ltr,B)},dE=(r,g)=>{const B=f6(r,g);return fE(r,B)};pv.ltr,pv.rtl;const Yh={create:(r,g,B,H)=>({start:r,soffset:g,finish:B,foffset:H})},ch=(r,g,B)=>{var H,re;return Y.from((re=(H=r.dom).caretPositionFromPoint)===null||re===void 0?void 0:re.call(H,g,B)).bind(be=>{if(be.offsetNode===null)return Y.none();const Re=r.dom.createRange();return Re.setStart(be.offsetNode,be.offset),Re.collapse(),Y.some(Re)})},w2=(r,g,B)=>{var H,re;return Y.from((re=(H=r.dom).caretRangeFromPoint)===null||re===void 0?void 0:re.call(H,g,B))},FD=(()=>document.caretPositionFromPoint?ch:document.caretRangeFromPoint?w2:Y.none)(),hE=(r,g,B)=>{const H=sr.fromDom(r.document);return FD(H,g,B).map(re=>Yh.create(sr.fromDom(re.startContainer),re.startOffset,sr.fromDom(re.endContainer),re.endOffset))},d5=aa.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),as=(r,g,B,H)=>r.fold(g,B,H),ND=r=>r.fold(Q,Q,Q),h6=d5.before,p6=d5.on,$D=d5.after,Cy={before:h6,on:p6,after:$D,cata:as,getStart:ND},Sw=aa.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),pE=r=>Sw.exact(r.start,r.soffset,r.finish,r.foffset),mE=r=>r.match({domRange:g=>sr.fromDom(g.startContainer),relative:(g,B)=>Cy.getStart(g),exact:(g,B,H,re)=>g}),gE=Sw.domRange,B3=Sw.relative,kw=Sw.exact,m6=r=>{const g=mE(r);return Mu(g)},VD=Yh.create,O2={domRange:gE,relative:B3,exact:kw,exactFromRange:pE,getWin:m6,range:VD},h5=(r,g)=>{const B=la(r);return B==="input"?Cy.after(r):ce(["br","img"],B)?g===0?Cy.before(r):Cy.after(r):Cy.on(r,g)},UD=(r,g)=>{const B=r.fold(Cy.before,h5,Cy.after),H=g.fold(Cy.before,h5,Cy.after);return O2.relative(B,H)},g6=(r,g,B,H)=>{const re=h5(r,g),be=h5(B,H);return O2.relative(re,be)},vE=r=>r.match({domRange:g=>{const B=sr.fromDom(g.startContainer),H=sr.fromDom(g.endContainer);return g6(B,g.startOffset,H,g.endOffset)},relative:UD,exact:g6}),ta=(r,g)=>{const H=(g||document).createDocumentFragment();return ye(r,re=>{H.appendChild(re.dom)}),sr.fromDom(H)},pe=r=>{const g=O2.getWin(r).dom,B=(re,be,Re,Ke)=>u5(g,re,be,Re,Ke),H=vE(r);return dE(g,H).match({ltr:B,rtl:B})},Ce=(r,g,B)=>hE(r,g,B),Ye=(r,g,B)=>{const H=Mu(sr.fromDom(B));return Ce(H.dom,r,g).map(re=>{const be=B.createRange();return be.setStart(re.start.dom,re.soffset),be.setEnd(re.finish.dom,re.foffset),be}).getOrUndefined()},st=(r,g)=>E(r)&&E(g)&&r.startContainer===g.startContainer&&r.startOffset===g.startOffset&&r.endContainer===g.endContainer&&r.endOffset===g.endOffset,St=(r,g,B)=>{let H=r;for(;H&&H!==g;){if(B(H))return H;H=H.parentNode}return null},Ut=(r,g,B)=>St(r,g,B)!==null,un=(r,g,B)=>Ut(r,g,H=>H.nodeName===B),Tn=(r,g)=>Ch(r)&&!Ut(r,g,Gp),$n=(r,g,B)=>{const H=g.parentNode;if(H){const re=new kc(g,r.getParent(H,r.isBlock)||r.getRoot());let be;for(;be=re[B?"prev":"next"]();)if(On(be))return!0}return!1},ur=(r,g)=>{var B;return((B=r.previousSibling)===null||B===void 0?void 0:B.nodeName)===g},Nr=(r,g)=>{let B=g;for(;B&&B!==r;){if(rr(B))return!0;B=B.parentNode}return!1},Ro=(r,g,B,H,re)=>{const be=r.getRoot(),Re=r.schema.getNonEmptyElements(),Ke=re.parentNode;let ct,kt;if(!Ke)return Y.none();const Wt=r.getParent(Ke,r.isBlock)||be;if(H&&On(re)&&g&&r.isEmpty(Wt))return Y.some(qr(Ke,r.nodeIndex(re)));const Jt=new kc(re,Wt);for(;kt=Jt[H?"prev":"next"]();){if(r.getContentEditableParent(kt)==="false"||Tn(kt,be))return Y.none();if(Nt(kt)&&kt.data.length>0)return un(kt,be,"A")?Y.none():Y.some(qr(kt,H?kt.data.length:0));if(r.isBlock(kt)||Re[kt.nodeName.toLowerCase()])return Y.none();ct=kt}return xn(ct)?Y.none():B&&ct?Y.some(qr(ct,0)):Y.none()},ai=(r,g,B,H)=>{const re=r.getRoot();let be,Re=!1,Ke=B?H.startContainer:H.endContainer,ct=B?H.startOffset:H.endOffset;const kt=ne(Ke)&&ct===Ke.childNodes.length,Wt=r.schema.getNonEmptyElements();let Jt=B;if(Ch(Ke))return Y.none();if(ne(Ke)&&ct>Ke.childNodes.length-1&&(Jt=!1),pn(Ke)&&(Ke=re,ct=0),Ke===re){if(Jt&&(be=Ke.childNodes[ct>0?ct-1:0],be&&(Ch(be)||Wt[be.nodeName]||Et(be))))return Y.none();if(Ke.hasChildNodes()){if(ct=Math.min(!Jt&&ct>0?ct-1:ct,Ke.childNodes.length-1),Ke=Ke.childNodes[ct],ct=Nt(Ke)&&kt?Ke.data.length:0,!g&&Ke===re.lastChild&&Et(Ke)||Nr(re,Ke)||Ch(Ke)||$o(Ke))return Y.none();if(Ke.hasChildNodes()&&!Et(Ke)){be=Ke;const ln=new kc(Ke,re);do{if(rr(be)||Ch(be)){Re=!1;break}if(Nt(be)&&be.data.length>0){ct=Jt?0:be.data.length,Ke=be,Re=!0;break}if(Wt[be.nodeName.toLowerCase()]&&!Pr(be)){ct=r.nodeIndex(be),Ke=be.parentNode,Jt||ct++,Re=!0;break}}while(be=Jt?ln.next():ln.prev())}}}return g&&(Nt(Ke)&&ct===0&&Ro(r,kt,g,!0,Ke).each(ln=>{Ke=ln.container(),ct=ln.offset(),Re=!0}),ne(Ke)&&(be=Ke.childNodes[ct],be||(be=Ke.childNodes[ct-1]),be&&On(be)&&!ur(be,"A")&&!$n(r,be,!1)&&!$n(r,be,!0)&&Ro(r,kt,g,!0,be).each(ln=>{Ke=ln.container(),ct=ln.offset(),Re=!0}))),Jt&&!g&&Nt(Ke)&&ct===Ke.data.length&&Ro(r,kt,g,!1,Ke).each(ln=>{Ke=ln.container(),ct=ln.offset(),Re=!0}),Re&&Ke?Y.some(qr(Ke,ct)):Y.none()},Ko=(r,g)=>{const B=g.collapsed,H=g.cloneRange(),re=qr.fromRangeStart(g);return ai(r,B,!0,H).each(be=>{(!B||!qr.isAbove(re,be))&&H.setStart(be.container(),be.offset())}),B||ai(r,B,!1,H).each(be=>{H.setEnd(be.container(),be.offset())}),B&&H.collapse(!0),st(g,H)?Y.none():Y.some(H)},Qo=(r,g)=>r.splitText(g),_i=r=>{let g=r.startContainer,B=r.startOffset,H=r.endContainer,re=r.endOffset;if(g===H&&Nt(g)){if(B>0&&BB){re=re-B;const be=Qo(H,re).previousSibling;g=H=be,re=be.data.length,B=0}else re=0}else if(Nt(g)&&B>0&&B0&&re({walk:(be,Re)=>yw(r,be,Re),split:_i,expand:(be,Re={type:"word"})=>{if(Re.type==="word"){const Ke=Oy(r,be,[{inline:"span"}]),ct=r.createRng();return ct.setStart(Ke.startContainer,Ke.startOffset),ct.setEnd(Ke.endContainer,Ke.endOffset),ct}return be},normalize:be=>Ko(r,be).fold(oe,Re=>(be.setStart(Re.startContainer,Re.startOffset),be.setEnd(Re.endContainer,Re.endOffset),!0))});To.compareRanges=st,To.getCaretRangeFromPoint=Ye,To.getSelectedNode=Pm,To.getNode=fi;const Yi=((r,g)=>{const B=(Ke,ct)=>{if(!L(ct)&&!ct.match(/^[0-9]+$/))throw new Error(r+".set accepts only positive integer values. Value was "+ct);const kt=Ke.dom;af(kt)&&(kt.style[r]=ct+"px")},H=Ke=>{const ct=g(Ke);if(ct<=0||ct===null){const kt=pi(Ke,r);return parseFloat(kt)||0}return ct},re=H,be=(Ke,ct)=>Ie(ct,(kt,Wt)=>{const Jt=pi(Ke,Wt),ln=Jt===void 0?0:parseInt(Jt,10);return isNaN(ln)?kt:kt+ln},0);return{set:B,get:H,getOuter:re,aggregate:be,max:(Ke,ct,kt)=>{const Wt=be(Ke,kt);return ct>Wt?ct-Wt:0}}})("height",r=>{const g=r.dom;return zc(r)?g.getBoundingClientRect().height:g.offsetHeight}),ri=r=>Yi.get(r),Ms=()=>sr.fromDom(document),al=(r,g)=>r.view(g).fold($([]),H=>{const re=r.owner(H),be=al(r,re);return[H].concat(be)}),Gs=(r,g)=>{const B=g.owner(r);return al(g,B)};var e1=Object.freeze({__proto__:null,view:r=>{var g;return(r.dom===document?Y.none():Y.from((g=r.dom.defaultView)===null||g===void 0?void 0:g.frameElement)).map(sr.fromDom)},owner:r=>Bc(r)});const Ay=r=>{const g=Ms(),B=Gc(g),H=Gs(r,e1),re=_h(r),be=Pe(H,(Re,Ke)=>{const ct=_h(Ke);return{left:Re.left+ct.left,top:Re.top+ct.top}},{left:0,top:0});return fs(be.left+re.left+B.left,be.top+re.top+B.top)},My=r=>la(r)==="textarea",Zs=(r,g)=>r.dispatch("ScrollIntoView",g).isDefaultPrevented(),Rh=(r,g)=>{r.dispatch("AfterScrollIntoView",g)},Lh=(r,g)=>{const B=Oc(r);if(B.length===0||My(r))return{element:r,offset:g};if(g{const B=Hf(r),H=ri(r);return{element:r,bottom:B.top+H,height:H,pos:B,cleanup:g}},Qm=(r,g)=>{const B=Lh(r,g),H=sr.fromHtml(''+nc+"");return Fc(B.element,H),jm(H,()=>ja(H))},qa=r=>jm(sr.fromDom(r),k),tu=(r,g,B,H)=>{xa(r,(re,be)=>Tw(r,g,B,H),B)},t1=(r,g,B,H,re)=>{const be={elm:H.element.dom,alignToTop:re};if(Zs(r,be))return;const Re=Gc(g).top;B(r,g,Re,H,re),Rh(r,be)},Tw=(r,g,B,H)=>{const re=sr.fromDom(r.getBody()),be=sr.fromDom(r.getDoc());Kl(re);const Re=Qm(sr.fromDom(B.startContainer),B.startOffset);t1(r,be,g,Re,H),Re.cleanup()},vp=(r,g,B,H)=>{const re=sr.fromDom(r.getDoc());t1(r,re,B,qa(g),H)},xa=(r,g,B)=>{const H=B.startContainer,re=B.startOffset,be=B.endContainer,Re=B.endOffset;g(sr.fromDom(H),sr.fromDom(be));const Ke=r.dom.createRng();Ke.setStart(H,re),Ke.setEnd(be,Re),r.selection.setRng(B)},p5=(r,g,B,H,re)=>{const be=g.pos;if(H)hd(be.left,be.top,re);else{const Re=be.top-B+g.height;hd(-r.getBody().getBoundingClientRect().left,Re,re)}},m5=(r,g,B,H,re,be)=>{const Re=H+B,Ke=re.pos.top,ct=re.bottom,kt=ct-Ke>=H;KeRe?p5(r,re,H,kt?be!==!1:be===!0,g):ct>Re&&!kt&&p5(r,re,H,be===!0,g)},z3=(r,g,B,H,re)=>{const be=Mu(g).dom.innerHeight;m5(r,g,B,be,H,re)},v6=(r,g,B,H,re)=>{const be=Mu(g).dom.innerHeight;m5(r,g,B,be,H,re);const Re=Ay(H.element),Ke=fa(window);Re.topKe.bottom&&rl(H.element,re===!0)},Wb=(r,g,B)=>tu(r,z3,g,B),mv=(r,g,B)=>vp(r,g,z3,B),y6=(r,g,B)=>tu(r,v6,g,B),Cw=(r,g,B)=>vp(r,g,v6,B),Nq=(r,g,B)=>{(r.inline?mv:Cw)(r,g,B)},g5=(r,g,B)=>{(r.inline?Wb:y6)(r,g,B)},F3=(r,g=!1)=>r.dom.focus({preventScroll:g}),Aw=r=>{const g=of(r).dom;return r.dom===g.activeElement},yE=(r=Ms())=>Y.from(r.dom.activeElement).map(sr.fromDom),jD=r=>yE(of(r)).filter(g=>r.dom.contains(g.dom)),QD=(r,g)=>{const B=ks(g)?ry(g).length:Oc(g).length+1;return r>B?B:r<0?0:r},$q=r=>O2.range(r.start,QD(r.soffset,r.start),r.finish,QD(r.foffset,r.finish)),HD=(r,g)=>!V(g.dom)&&(Qu(r,g)||Fa(r,g)),bE=r=>g=>HD(r,g.start)&&HD(r,g.finish),$ue=r=>r.inline||fr.browser.isFirefox(),Vq=r=>O2.range(sr.fromDom(r.startContainer),r.startOffset,sr.fromDom(r.endContainer),r.endOffset),ZD=r=>{const g=r.getSelection();return(!g||g.rangeCount===0?Y.none():Y.from(g.getRangeAt(0))).map(Vq)},xE=r=>{const g=Mu(r);return ZD(g.dom).filter(bE(r))},_E=(r,g)=>Y.from(g).filter(bE(r)).map($q),wE=r=>{const g=document.createRange();try{return g.setStart(r.start.dom,r.soffset),g.setEnd(r.finish.dom,r.foffset),Y.some(g)}catch{return Y.none()}},v5=r=>{const g=$ue(r)?xE(sr.fromDom(r.getBody())):Y.none();r.bookmark=g.isSome()?g:r.bookmark},b6=r=>(r.bookmark?r.bookmark:Y.none()).bind(B=>_E(sr.fromDom(r.getBody()),B)).bind(wE),qD=r=>{b6(r).each(g=>r.selection.setRng(g))},WD={isEditorUIElement:r=>{const g=r.className.toString();return g.indexOf("tox-")!==-1||g.indexOf("mce-")!==-1}},YD=(r,g)=>(L(g)||(g=0),setTimeout(r,g)),Uq=(r,g)=>(L(g)||(g=0),setInterval(r,g)),Tg={setEditorTimeout:(r,g,B)=>YD(()=>{r.removed||g()},B),setEditorInterval:(r,g,B)=>{const H=Uq(()=>{r.removed?clearInterval(H):g()},B);return H}},XD=r=>r.type==="nodechange"&&r.selectionChange,GD=(r,g)=>{const B=()=>{g.throttle()};Nl.DOM.bind(document,"mouseup",B),r.on("remove",()=>{Nl.DOM.unbind(document,"mouseup",B)})},KD=(r,g)=>{r.on("mouseup touchend",B=>{g.throttle()})},JD=(r,g)=>{KD(r,g),r.on("keyup NodeChange AfterSetSelectionRange",B=>{XD(B)||v5(r)})},jq=r=>{const g=hg(()=>{v5(r)},0);r.on("init",()=>{r.inline&&GD(r,g),JD(r,g)}),r.on("remove",()=>{g.cancel()})};let N3;const SE=Nl.DOM,Qq=r=>ne(r)&&WD.isEditorUIElement(r),kE=r=>{const g=r.classList;return g!==void 0?g.contains("tox-edit-area")||g.contains("tox-edit-area__iframe")||g.contains("mce-content-body"):!1},x6=(r,g)=>{const B=Eh(r);return SE.getParent(g,re=>Qq(re)||(B?r.dom.is(re,B):!1))!==null},TE=r=>{try{const g=of(sr.fromDom(r.getElement()));return yE(g).fold(()=>document.body,B=>B.dom)}catch{return document.body}},Hq=(r,g)=>{const B=g.editor;jq(B);const H=(re,be)=>{if(yy(re)&&re.inline!==!0){const Re=sr.fromDom(re.getContainer());be(Re,"tox-edit-focus")}};B.on("focusin",()=>{const re=r.focusedEditor;kE(TE(B))&&H(B,_f),re!==B&&(re&&re.dispatch("blur",{focusedEditor:B}),r.setActive(B),r.focusedEditor=B,B.dispatch("focus",{blurredEditor:re}),B.focus(!0))}),B.on("focusout",()=>{Tg.setEditorTimeout(B,()=>{const re=r.focusedEditor;(!kE(TE(B))||re!==B)&&H(B,nf),!x6(B,TE(B))&&re===B&&(B.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})}),N3||(N3=re=>{const be=r.activeEditor;be&&bh(re).each(Re=>{const Ke=Re;Ke.ownerDocument===document&&Ke!==document.body&&!x6(be,Ke)&&r.focusedEditor===be&&(be.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})},SE.bind(document,"focusin",N3))},_6=(r,g)=>{r.focusedEditor===g.editor&&(r.focusedEditor=null),!r.activeEditor&&N3&&(SE.unbind(document,"focusin",N3),N3=null)},eB=r=>{r.on("AddEditor",U(Hq,r)),r.on("RemoveEditor",U(_6,r))},Zq=(r,g)=>r.dom.getParent(g,B=>r.dom.getContentEditable(B)==="true"),tB=r=>r.collapsed?Y.from(fi(r.startContainer,r.startOffset)).map(sr.fromDom):Y.none(),nB=(r,g)=>tB(g).bind(B=>F1(B)?Y.some(B):Qu(r,B)?Y.none():Y.some(r)),rB=(r,g)=>{nB(sr.fromDom(r.getBody()),g).bind(B=>lh(B.dom)).fold(()=>{r.selection.normalize()},B=>r.selection.setRng(B.toRange()))},CE=r=>{if(r.setActive)try{r.setActive()}catch{r.focus()}else r.focus()},qq=r=>Aw(r)||jD(r).isSome(),Wq=r=>E(r.iframeElement)&&Aw(sr.fromDom(r.iframeElement)),Yq=r=>{const g=r.getBody();return g&&qq(sr.fromDom(g))},oB=r=>{const g=of(sr.fromDom(r.getElement()));return yE(g).filter(B=>!kE(B.dom)&&x6(r,B.dom)).isSome()},Mw=r=>r.inline?Yq(r):Wq(r),y5=r=>Mw(r)||oB(r),Xq=r=>{const g=r.selection,B=r.getBody();let H=g.getRng();r.quirks.refreshContentEditable();const re=Re=>{b6(Re).each(Ke=>{Re.selection.setRng(Ke),H=Ke})};!Mw(r)&&r.hasEditableRoot()&&re(r);const be=Zq(r,g.getNode());if(be&&r.dom.isChildOf(be,B)){CE(be),r.hasEditableRoot()||re(r),rB(r,H),AE(r);return}r.inline||(fr.browser.isOpera()||CE(B),r.getWin().focus()),(fr.browser.isFirefox()||r.inline)&&(CE(B),rB(r,H)),AE(r)},AE=r=>r.editorManager.setActive(r),ME=(r,g)=>{r.removed||(g?AE(r):Xq(r))},iB=(r,g)=>g.collapsed?r.isEditable(g.startContainer):r.isEditable(g.startContainer)&&r.isEditable(g.endContainer),EE=(r,g,B,H,re)=>{const be=B?g.startContainer:g.endContainer,Re=B?g.startOffset:g.endOffset;return Y.from(be).map(sr.fromDom).map(Ke=>!H||!g.collapsed?Ts(Ke,re(Ke,Re)).getOr(Ke):Ke).bind(Ke=>mc(Ke)?Y.some(Ke):Hu(Ke).filter(mc)).map(Ke=>Ke.dom).getOr(r)},PE=(r,g,B=!1)=>EE(r,g,!0,B,(H,re)=>Math.min(Hl(H),re)),RE=(r,g,B=!1)=>EE(r,g,!1,B,(H,re)=>re>0?re-1:re),aB=(r,g)=>{const B=r;for(;r&&Nt(r)&&r.length===0;)r=g?r.nextSibling:r.previousSibling;return r||B},Gq=(r,g)=>{if(!g)return r;let B=g.startContainer,H=g.endContainer;const re=g.startOffset,be=g.endOffset;let Re=g.commonAncestorContainer;g.collapsed||(B===H&&be-re<2&&B.hasChildNodes()&&(Re=B.childNodes[re]),Nt(B)&&Nt(H)&&(B.length===re?B=aB(B.nextSibling,!0):B=B.parentNode,be===0?H=aB(H.previousSibling,!1):H=H.parentNode,B&&B===H&&(Re=B)));const Ke=Nt(Re)?Re.parentNode:Re;return ge(Ke)?Ke:r},Kq=(r,g,B,H)=>{const re=[],be=r.getRoot(),Re=r.getParent(B||PE(be,g,g.collapsed),r.isBlock),Ke=r.getParent(H||RE(be,g,g.collapsed),r.isBlock);if(Re&&Re!==be&&re.push(Re),Re&&Ke&&Re!==Ke){let ct;const kt=new kc(Re,be);for(;(ct=kt.next())&&ct!==Ke;)r.isBlock(ct)&&re.push(ct)}return Ke&&Re!==Ke&&Ke!==be&&re.push(Ke),re},Jq=(r,g,B)=>Y.from(g).bind(H=>Y.from(H.parentNode).map(re=>{const be=r.nodeIndex(H),Re=r.createRng();return Re.setStart(re,be),Re.setEnd(re,be+1),B&&(XS(r,Re,H,!0),XS(r,Re,H,!1)),Re})),$3=(r,g)=>ve(g,B=>{const H=r.dispatch("GetSelectionRange",{range:B});return H.range!==B?H.range:B}),sB={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},b5=(r,g,B)=>{const H=B?"lastChild":"firstChild",re=B?"prev":"next";if(r[H])return r[H];if(r!==g){let be=r[re];if(be)return be;for(let Re=r.parent;Re&&Re!==g;Re=Re.parent)if(be=Re[re],be)return be}},lB=r=>{var g;const B=(g=r.value)!==null&&g!==void 0?g:"";if(!kf(B))return!1;const H=r.parent;return!(H&&(H.name!=="span"||H.attr("style"))&&/^[ ]+$/.test(B))},LE=r=>{const g=r.name==="a"&&!r.attr("href")&&r.attr("id");return r.attr("name")||r.attr("id")&&!r.firstChild||r.attr("data-mce-bookmark")||g};class yp{static create(g,B){const H=new yp(g,sB[g]||1);return B&&Ge(B,(re,be)=>{H.attr(be,re)}),H}constructor(g,B){this.name=g,this.type=B,B===1&&(this.attributes=[],this.attributes.map={})}replace(g){const B=this;return g.parent&&g.remove(),B.insert(g,B),B.remove(),B}attr(g,B){const H=this;if(!v(g))return E(g)&&Ge(g,(be,Re)=>{H.attr(Re,be)}),H;const re=H.attributes;if(re){if(B!==void 0){if(B===null){if(g in re.map){delete re.map[g];let be=re.length;for(;be--;)if(re[be].name===g)return re.splice(be,1),H}return H}if(g in re.map){let be=re.length;for(;be--;)if(re[be].name===g){re[be].value=B;break}}else re.push({name:g,value:B});return re.map[g]=B,H}return re.map[g]}}clone(){const g=this,B=new yp(g.name,g.type),H=g.attributes;if(H){const re=[];re.map={};for(let be=0,Re=H.length;bev(r.nodeValue)&&r.nodeValue.includes(nc),uB=r=>`${r.length===0?"":`${ve(r,g=>`[${g}]`).join(",")},`}[data-mce-bogus="all"]`,tW=(r,g)=>g.querySelectorAll(uB(r)),fB=r=>document.createTreeWalker(r,NodeFilter.SHOW_COMMENT,g=>cB(g)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),dB=r=>document.createTreeWalker(r,NodeFilter.SHOW_TEXT,g=>{if(cB(g)){const B=g.parentNode;return B&&_t(eW,B.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP}),nW=r=>fB(r).nextNode()!==null,rW=r=>dB(r).nextNode()!==null,oW=(r,g)=>g.querySelector(uB(r))!==null,iW=(r,g)=>{ye(tW(r,g),B=>{const H=sr.fromDom(B);uc(H,"data-mce-bogus")==="all"?ja(H):ye(r,re=>{Vf(H,re)&&gc(H,re)})})},hB=r=>{let g=r.nextNode();for(;g!==null;)g.nodeValue=null,g=r.nextNode()},w6=I(hB,fB),pB=I(hB,dB),IE=(r,g)=>{const B=[{condition:U(oW,g),action:U(iW,g)},{condition:nW,action:w6},{condition:rW,action:pB}];let H=r,re=!1;return ye(B,({condition:be,action:Re})=>{be(H)&&(re||(H=r.cloneNode(!0),re=!0),Re(H))}),H},mB=r=>{const g=Zl(r,"[data-mce-bogus]");ye(g,B=>{uc(B,"data-mce-bogus")==="all"?ja(B):N0(B)?(Fc(B,sr.fromText(Iu)),ja(B)):yu(B)})},gB=r=>{const g=Zl(r,"input");ye(g,B=>{gc(B,"name")})},aW=(r,g)=>{const B=dc(r),H=new RegExp(`^(<${B}[^>]*>( | |\\s| |
|)<\\/${B}>[\r ]*|
[\r -]*)$`);return g.replace(H,"")},sW=(r,g)=>{const B=r.getDoc(),H=of(sr.fromDom(r.getBody())),re=sr.fromTag("div",B);Es(re,"data-mce-bogus","all"),Hi(re,{position:"fixed",left:"-9999999px",top:"0"}),Id(re,g.innerHTML),mB(re),gB(re);const be=Ip(H);Ps(be,re);const Re=vd(re.dom.innerText);return ja(re),Re},lW=(r,g,B)=>{let H;return g.format==="raw"?H=mo.trim(vd(LE(B,r.serializer.getTempAttrs()).innerHTML)):g.format==="text"?H=sW(r,B):g.format==="tree"?H=r.serializer.serialize(B,g):H=aW(r,r.serializer.serialize(B,g)),g.format!=="text"&&!iy(sr.fromDom(B))&&v(H)?mo.trim(H):H},cW=(r,g)=>Y.from(r.getBody()).fold($(g.format==="tree"?new yp("body",11):""),B=>lW(r,g,B)),IE=mo.makeMap,vB=r=>{const g=[];r=r||{};const B=r.indent,H=IE(r.indent_before||""),re=IE(r.indent_after||""),be=up.getEncodeFunc(r.entity_encoding||"raw",r.entities),Re=r.element_format!=="xhtml";return{start:(Ke,ct,kt)=>{if(B&&H[Ke]&&g.length>0){const Wt=g[g.length-1];Wt.length>0&&Wt!==` +]*)$`);return g.replace(H,"")},sW=(r,g)=>{const B=r.getDoc(),H=of(sr.fromDom(r.getBody())),re=sr.fromTag("div",B);Es(re,"data-mce-bogus","all"),Hi(re,{position:"fixed",left:"-9999999px",top:"0"}),Id(re,g.innerHTML),mB(re),gB(re);const be=Ip(H);Ps(be,re);const Re=yd(re.dom.innerText);return ja(re),Re},lW=(r,g,B)=>{let H;return g.format==="raw"?H=mo.trim(yd(IE(B,r.serializer.getTempAttrs()).innerHTML)):g.format==="text"?H=sW(r,B):g.format==="tree"?H=r.serializer.serialize(B,g):H=aW(r,r.serializer.serialize(B,g)),g.format!=="text"&&!iy(sr.fromDom(B))&&v(H)?mo.trim(H):H},cW=(r,g)=>Y.from(r.getBody()).fold($(g.format==="tree"?new yp("body",11):""),B=>lW(r,g,B)),DE=mo.makeMap,vB=r=>{const g=[];r=r||{};const B=r.indent,H=DE(r.indent_before||""),re=DE(r.indent_after||""),be=up.getEncodeFunc(r.entity_encoding||"raw",r.entities),Re=r.element_format!=="xhtml";return{start:(Ke,ct,kt)=>{if(B&&H[Ke]&&g.length>0){const Wt=g[g.length-1];Wt.length>0&&Wt!==` `&&g.push(` `)}if(g.push("<",Ke),ct)for(let Wt=0,Jt=ct.length;Wt0){const Wt=g[g.length-1];Wt.length>0&&Wt!==` `&&g.push(` @@ -3678,76 +3678,76 @@ Required: `+g.join(", "));return Jt[Re].apply(null,ct)},log:Jt=>{console.log(Jt, `&&g.push(` `))},text:(Ke,ct)=>{Ke.length>0&&(g[g.length]=ct?Ke:be(Ke))},cdata:Ke=>{g.push("")},comment:Ke=>{g.push("")},pi:(Ke,ct)=>{ct?g.push(""):g.push(""),B&&g.push(` `)},doctype:Ke=>{g.push("",B?` -`:"")},reset:()=>{g.length=0},getContent:()=>g.join("").replace(/\n$/,"")}},Wb=(r={},g=Np())=>{const B=vB(r);return r.validate="validate"in r?r.validate:!0,{serialize:re=>{const be=r.validate,Re={3:ct=>{var kt;B.text((kt=ct.value)!==null&&kt!==void 0?kt:"",ct.raw)},8:ct=>{var kt;B.comment((kt=ct.value)!==null&&kt!==void 0?kt:"")},7:ct=>{B.pi(ct.name,ct.value)},10:ct=>{var kt;B.doctype((kt=ct.value)!==null&&kt!==void 0?kt:"")},4:ct=>{var kt;B.cdata((kt=ct.value)!==null&&kt!==void 0?kt:"")},11:ct=>{let kt=ct;if(kt=kt.firstChild)do Ke(kt);while(kt=kt.next)}};B.reset();const Ke=ct=>{var kt;const Wt=Re[ct.type];if(Wt)Wt(ct);else{const Jt=ct.name,ln=Jt in g.getVoidElements();let kn=ct.attributes;if(be&&kn&&kn.length>1){const Vn=[];Vn.map={};const Rn=g.getElementRule(ct.name);if(Rn){for(let qn=0,pr=Rn.attributesOrder.length;qn{g.length=0},getContent:()=>g.join("").replace(/\n$/,"")}},Yb=(r={},g=Np())=>{const B=vB(r);return r.validate="validate"in r?r.validate:!0,{serialize:re=>{const be=r.validate,Re={3:ct=>{var kt;B.text((kt=ct.value)!==null&&kt!==void 0?kt:"",ct.raw)},8:ct=>{var kt;B.comment((kt=ct.value)!==null&&kt!==void 0?kt:"")},7:ct=>{B.pi(ct.name,ct.value)},10:ct=>{var kt;B.doctype((kt=ct.value)!==null&&kt!==void 0?kt:"")},4:ct=>{var kt;B.cdata((kt=ct.value)!==null&&kt!==void 0?kt:"")},11:ct=>{let kt=ct;if(kt=kt.firstChild)do Ke(kt);while(kt=kt.next)}};B.reset();const Ke=ct=>{var kt;const Wt=Re[ct.type];if(Wt)Wt(ct);else{const Jt=ct.name,ln=Jt in g.getVoidElements();let kn=ct.attributes;if(be&&kn&&kn.length>1){const Vn=[];Vn.map={};const Rn=g.getElementRule(ct.name);if(Rn){for(let qn=0,pr=Rn.attributesOrder.length;qn{DE.add(g)});const yB=new Set;ye(["background-color"],g=>{yB.add(g)});const bB=["font","text-decoration","text-emphasis"],uW=(r,g)=>r.parseStyle(r.getAttrib(g,"style")),V3=(r,g)=>nt(uW(r,g)),fW=r=>DE.has(r),dW=r=>yB.has(r),xB=(r,g)=>de(V3(r,g),B=>fW(B)),hW=(r,g)=>xB(r,g)&&de(V3(r,g),B=>dW(B)),pW=r=>Te(r,g=>de(bB,B=>xr(g,B))),mW=(r,g,B)=>{const H=V3(r,g),re=V3(r,B),be=Re=>{var Ke,ct;const kt=(Ke=r.getStyle(g,Re))!==null&&Ke!==void 0?Ke:"",Wt=(ct=r.getStyle(B,Re))!==null&&ct!==void 0?ct:"";return Kn(kt)&&Kn(Wt)&&kt!==Wt};return de(H,Re=>{const Ke=ct=>de(ct,kt=>kt===Re);if(!Ke(re)&&Ke(bB)){const ct=pW(re);return de(ct,be)}else return be(Re)})},_B=(r,g,B)=>Y.from(B.container()).filter(Nt).exists(H=>{const re=r?0:-1;return g(H.data.charAt(B.offset()+re))}),BE=U(_B,!0,Ub),zE=U(_B,!1,Ub),gW=r=>{const g=r.container();return Nt(g)&&(g.data.length===0||$0(g.data)&&ky.isBookmarkNode(g.parentNode))},S2=(r,g)=>B=>u3(r?0:-1,B).filter(g).isSome(),wB=r=>An(r)&&pi(sr.fromDom(r),"display")==="block",OB=r=>rr(r)&&!mt(r),vW=S2(!0,wB),yW=S2(!1,wB),Li=S2(!0,Zr),U3=S2(!1,Zr),FE=S2(!0,Et),NE=S2(!1,Et),Ey=S2(!0,OB),k2=S2(!1,OB),bW=r=>r.slice(0,-1),xW=(r,g,B)=>Qu(g,r)?bW(Uh(r,H=>B(H)||Fa(H,g))):[],SB=(r,g)=>xW(r,g,oe),Yb=(r,g)=>[r].concat(SB(r,g)),j3=(r,g,B)=>VT(r,g,B,gW),kB=r=>g=>r.isBlock(sa(g)),_W=(r,g,B)=>De(Yb(sr.fromDom(g.container()),r),kB(B)),TB=(r,g,B,H)=>j3(r,g.dom,B).forall(re=>_W(g,B,H).fold(()=>!Wp(re,B,g.dom),be=>!Wp(re,B,g.dom)&&Qu(be,sr.fromDom(re.container())))),da=(r,g,B,H)=>_W(g,B,H).fold(()=>j3(r,g.dom,B).forall(re=>!Wp(re,B,g.dom)),re=>j3(r,re.dom,B).isNone()),$E=U(da,!1),Ta=U(da,!0),CB=U(TB,!1),$ue=U(TB,!0),Vue=r=>d3(r).exists(N0),w6=(r,g,B,H)=>{const re=Te(Yb(sr.fromDom(B.container()),g),Re=>H.isBlock(sa(Re))),be=Xe(re).getOr(g);return Yp(r,be.dom,B).filter(Vue)},AB=(r,g,B)=>d3(g).exists(N0)||w6(!0,r,g,B).isSome(),VE=(r,g,B)=>DT(g).exists(N0)||w6(!1,r,g,B).isSome(),MB=U(w6,!1),wW=U(w6,!0),oa=r=>qr.isTextPosition(r)&&!r.isAtStart()&&!r.isAtEnd(),EB=(r,g,B)=>{const H=Te(Yb(sr.fromDom(g.container()),r),re=>B.isBlock(sa(re)));return Xe(H).getOr(r)},PB=(r,g,B)=>oa(g)?zE(g):zE(g)||mp(EB(r,g,B).dom,g).exists(zE),RB=(r,g,B)=>oa(g)?BE(g):BE(g)||sh(EB(r,g,B).dom,g).exists(BE),b5=r=>ce(["pre","pre-wrap"],r),O6=r=>d3(r).bind(g=>Ya(g,mc)).exists(g=>b5(pi(g,"white-space"))),OW=(r,g)=>mp(r.dom,g).isNone(),SW=(r,g)=>sh(r.dom,g).isNone(),kW=(r,g,B)=>OW(r,g)||SW(r,g)||$E(r,g,B)||Ta(r,g,B)||VE(r,g,B)||AB(r,g,B),LB=r=>E(r)&&rr(r)&&LS(r),IB=(r,g)=>B=>LB(new kc(B,r)[g]()),Uue=(r,g)=>{const B=sh(r.dom,g).getOr(g),H=IB(r.dom,"next");return g.isAtEnd()&&(H(g.container())||H(B.container()))},jue=(r,g)=>{const B=mp(r.dom,g).getOr(g),H=IB(r.dom,"prev");return g.isAtStart()&&(H(g.container())||H(B.container()))},DB=(r,g,B)=>O6(g)?!1:kW(r,g,B)||PB(r,g,B)||RB(r,g,B),x5=(r,g,B)=>O6(g)?!1:$E(r,g,B)||CB(r,g,B)||VE(r,g,B)||PB(r,g,B)||jue(r,g),TW=r=>{const g=r.container(),B=r.offset();return Nt(g)&&BO6(g)?!1:Ta(r,g,B)||$ue(r,g,B)||AB(r,g,B)||RB(r,g,B)||Uue(r,g),S6=(r,g,B)=>x5(r,g,B)||_5(r,TW(g),B),BB=(r,g)=>G0(r.charAt(g)),za=(r,g)=>Ub(r.charAt(g)),zB=r=>{const g=r.container();return Nt(g)&&Un(g.data,Ea)},k6=r=>{const g=r.split("");return ve(g,(B,H)=>G0(B)&&H>0&&H{const re=g.data,be=qr(g,0);return!B&&BB(re,0)&&!S6(r,be,H)?(g.data=" "+re.slice(1),!0):B&&za(re,0)&&x5(r,be,H)?(g.data=Ea+re.slice(1),!0):!1},FB=r=>{const g=r.data,B=k6(g);return B!==g?(r.data=B,!0):!1},jE=(r,g,B,H)=>{const re=g.data,be=qr(g,re.length-1);return!B&&BB(re,re.length-1)&&!S6(r,be,H)?(g.data=re.slice(0,-1)+" ",!0):B&&za(re,re.length-1)&&_5(r,be,H)?(g.data=re.slice(0,-1)+Ea,!0):!1},NB=(r,g,B)=>{const H=g.container();if(!Nt(H))return Y.none();if(zB(g)){const re=UE(r,H,!1,B)||FB(H)||jE(r,H,!1,B);return ma(re,g)}else if(S6(r,g,B)){const re=UE(r,H,!0,B)||jE(r,H,!0,B);return ma(re,g)}else return Y.none()},$B=r=>{const g=sr.fromDom(r.getBody());r.selection.isCollapsed()&&NB(g,qr.fromRangeStart(r.selection.getRng()),r.schema).each(B=>{r.selection.setRng(B.toRange())})},VB=(r,g,B,H)=>{if(B===0)return;const re=sr.fromDom(r),be=ms(re,kt=>H.isBlock(sa(kt))).getOr(re),Re=r.data.slice(g,g+B),Ke=g+B>=r.data.length&&_5(be,qr(r,r.data.length),H),ct=g===0&&x5(be,qr(r,0),H);r.replaceData(g,B,le(Re,4,ct,Ke))},w5=(r,g,B)=>{const H=r.data.slice(g),re=H.length-ir(H).length;VB(r,g,re,B)},QE=(r,g,B)=>{const H=r.data.slice(0,g),re=H.length-Wn(H).length;VB(r,g-re,re,B)},HE=(r,g,B,H,re=!0)=>{const be=Wn(r.data).length,Re=re?r:g,Ke=re?g:r;return re?Re.appendData(Ke.data):Re.insertData(0,Ke.data),ja(sr.fromDom(Ke)),H&&w5(Re,be,B),Re},CW=(r,g)=>{const B=r.container(),H=r.offset();return!qr.isTextPosition(r)&&B===g.parentNode&&H>qr.before(g).offset()},AW=(r,g)=>CW(g,r)?qr(g.container(),g.offset()-1):g,MW=r=>Nt(r)?qr(r,0):qr.before(r),EW=r=>Nt(r)?qr(r,r.data.length):qr.after(r),UB=r=>ih(r.previousSibling)?Y.some(EW(r.previousSibling)):r.previousSibling?Xp(r.previousSibling):Y.none(),jB=r=>ih(r.nextSibling)?Y.some(MW(r.nextSibling)):r.nextSibling?lh(r.nextSibling):Y.none(),ZE=(r,g)=>Y.from(g.previousSibling?g.previousSibling:g.parentNode).bind(B=>mp(r,qr.before(B))).orThunk(()=>sh(r,qr.after(g))),qE=(r,g)=>sh(r,qr.after(g)).orThunk(()=>mp(r,qr.before(g))),PW=(r,g)=>UB(g).orThunk(()=>jB(g)).orThunk(()=>ZE(r,g)),RW=(r,g)=>jB(g).orThunk(()=>UB(g)).orThunk(()=>qE(r,g)),LW=(r,g,B)=>r?RW(g,B):PW(g,B),IW=(r,g,B)=>LW(r,g,B).map(U(AW,B)),QB=(r,g,B)=>{B.fold(()=>{r.focus()},H=>{r.selection.setRng(H.toRange(),g)})},DW=r=>g=>g.dom===r,BW=(r,g)=>g&&_t(r.schema.getBlockElements(),sa(g)),zW=(r,g,B)=>{if(Pi(r,g)){const H=sr.fromHtml('
');return B?ye(Oc(g),re=>{gw(re)||ja(re)}):gu(g),Ps(g,H),Y.some(qr.before(H.dom))}else return Y.none()},HB=(r,g,B,H)=>{const re=Eu(r).filter(Ss),be=ud(r).filter(Ss);return ja(r),wc(re,be,g,(Re,Ke,ct)=>{const kt=Re.dom,Wt=Ke.dom,Jt=kt.data.length;return HE(kt,Wt,B,H),ct.container()===Wt?qr(kt,Jt):ct}).orThunk(()=>(H&&(re.each(Re=>QE(Re.dom,Re.dom.length,B)),be.each(Re=>w5(Re.dom,0,B))),g))},FW=(r,g)=>_t(r.schema.getTextInlineElements(),sa(g)),Ew=(r,g,B,H=!0,re=!1)=>{const be=IW(g,r.getBody(),B.dom),Re=ms(B,U(BW,r),DW(r.getBody())),Ke=HB(B,be,r.schema,FW(r,B));r.dom.isEmpty(r.getBody())?(r.setContent(""),r.selection.setCursorLocation()):Re.bind(ct=>zW(r.schema,ct,re)).fold(()=>{H&&QB(r,g,Ke)},ct=>{H&&QB(r,g,Y.some(ct))})},Pw=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,NW=r=>Pw.test(r),T2=(r,g)=>_f(sr.fromDom(g),G1(r))&&!xm(r.schema,g)&&r.dom.isEditable(g),ZB=r=>{var g;return Nl.DOM.getStyle(r,"direction",!0)==="rtl"||NW((g=r.textContent)!==null&&g!==void 0?g:"")},$W=(r,g,B)=>Te(Nl.DOM.getParents(B.container(),"*",g),r),Xb=(r,g,B)=>{const H=$W(r,g,B);return Y.from(H[H.length-1])},qB=(r,g,B)=>{const H=c0(g,r),re=c0(B,r);return E(H)&&H===re},WB=r=>V0(r)||Up(r),Tg=(r,g)=>{const B=g.container(),H=g.offset();return r?oh(B)?Nt(B.nextSibling)?qr(B.nextSibling,0):qr.after(B):V0(g)?qr(B,H+1):g:oh(B)?Nt(B.previousSibling)?qr(B.previousSibling,B.previousSibling.data.length):qr.before(B):Up(g)?qr(B,H-1):g},Xh=U(Tg,!0),YB=U(Tg,!1),XB=(r,g)=>{const B=H=>H.stopImmediatePropagation();r.on("beforeinput input",B,!0),r.getDoc().execCommand(g),r.off("beforeinput input",B)},VW=r=>{r.execCommand("delete")},T6=r=>XB(r,"Delete"),GB=r=>XB(r,"ForwardDelete"),Rw=r=>g=>Aa(Hu(g),r,Fa),UW=r=>Q_(r)||nh(r),C6=(r,g)=>Qu(r,g)?Ya(g,UW,Rw(r)):Y.none(),hc=(r,g=!0)=>{r.dom.isEmpty(r.getBody())&&r.setContent("",{no_selection:!g})},O5=(r,g,B)=>cs(lh(B),Xp(B),(H,re)=>{const be=Tg(!0,H),Re=Tg(!1,re),Ke=Tg(!1,g);return r?sh(B,Ke).exists(ct=>ct.isEqual(Re)&&g.isEqual(be)):mp(B,Ke).exists(ct=>ct.isEqual(be)&&g.isEqual(Re))}).getOr(!0),Lw=r=>(ju(r)?Eu(r):zl(r)).bind(Lw).orThunk(()=>Y.some(r)),KB=(r,g,B,H=!0)=>{var re;g.deleteContents();const be=Lw(B).getOr(B),Re=sr.fromDom((re=r.dom.getParent(be.dom,r.dom.isBlock))!==null&&re!==void 0?re:B.dom);if(Re.dom===r.getBody()?hc(r,H):Pi(r.schema,Re,{checkRootAsContent:!1})&&(rh(Re),H&&r.selection.setCursorLocation(Re.dom,0)),!Fa(B,Re)){const Ke=Aa(Hu(Re),B)?[]:jh(Re);ye(Ke.concat(Oc(B)),ct=>{!Fa(ct,Re)&&!Qu(ct,Re)&&Pi(r.schema,ct)&&ja(ct)})}},Q3=r=>g=>Fa(r,g),Hm=r=>Zl(r,"td,th"),H3=(r,g)=>hw(sr.fromDom(r),g),Ul=r=>cs(r.startTable,r.endTable,(g,B)=>{const H=Qs(g,be=>Fa(be,B)),re=Qs(B,be=>Fa(be,g));return!H&&!re?r:{...r,startTable:H?Y.none():r.startTable,endTable:re?Y.none():r.endTable,isSameTable:!1,isMultiTable:!1}}).getOr(r),S5=r=>Ul(r),JB=(r,g)=>{const B=H3(r.startContainer,g),H=H3(r.endContainer,g),re=B.isSome(),be=H.isSome(),Re=cs(B,H,Fa).getOr(!1);return S5({startTable:B,endTable:H,isStartInTable:re,isEndInTable:be,isSameTable:Re,isMultiTable:!Re&&re&&be})},A6=(r,g)=>({start:r,end:g}),WE=(r,g,B)=>({rng:r,table:g,cells:B}),Iw=aa.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),Z3=(r,g)=>pu(sr.fromDom(r),"td,th",g),M6=r=>!Fa(r.start,r.end),k5=(r,g)=>hw(r.start,g).bind(B=>hw(r.end,g).bind(H=>ma(Fa(B,H),B))),YE=(r,g)=>!M6(r)&&k5(r,g).exists(B=>{const H=B.dom.rows;return H.length===1&&H[0].cells.length===1}),ez=(r,g)=>{const B=Z3(r.startContainer,g),H=Z3(r.endContainer,g);return cs(B,H,A6)},tz=r=>g=>hw(g,r).bind(B=>tt(Hm(B)).map(H=>A6(g,H))),nz=r=>g=>hw(g,r).bind(B=>Xe(Hm(B)).map(H=>A6(H,g))),E6=r=>g=>k5(g,r).map(B=>WE(g,B,Hm(B))),XE=(r,g,B,H)=>{if(B.collapsed||!r.forall(M6))return Y.none();if(g.isSameTable){const re=r.bind(E6(H));return Y.some({start:re,end:re})}else{const re=Z3(B.startContainer,H),be=Z3(B.endContainer,H),Re=re.bind(tz(H)).bind(E6(H)),Ke=be.bind(nz(H)).bind(E6(H));return Y.some({start:Re,end:Ke})}},Dw=(r,g)=>He(r,B=>Fa(B,g)),P6=r=>cs(Dw(r.cells,r.rng.start),Dw(r.cells,r.rng.end),(g,B)=>r.cells.slice(g,B+1)),GE=(r,g,B)=>r.exists(H=>YE(H,B)&&x3(H.start,g)),rz=(r,g)=>{const{startTable:B,endTable:H}=g,re=r.cloneRange();return B.each(be=>re.setStartAfter(be.dom)),H.each(be=>re.setEndBefore(be.dom)),re},jW=(r,g,B,H)=>XE(r,g,B,H).bind(({start:re,end:be})=>re.or(be)).bind(re=>{const{isSameTable:be}=g,Re=P6(re).getOr([]);if(be&&re.cells.length===Re.length)return Y.some(Iw.fullTable(re.table));if(Re.length>0){if(be)return Y.some(Iw.partialTable(Re,Y.none()));{const Ke=rz(B,g);return Y.some(Iw.partialTable(Re,Y.some({...g,rng:Ke})))}}else return Y.none()}),oz=(r,g,B,H)=>XE(r,g,B,H).bind(({start:re,end:be})=>{const Re=re.bind(P6).getOr([]),Ke=be.bind(P6).getOr([]);if(Re.length>0&&Ke.length>0){const ct=rz(B,g);return Y.some(Iw.multiTable(Re,Ke,ct))}else return Y.none()}),iz=(r,g)=>{const B=Q3(r),H=ez(g,B),re=JB(g,B);return GE(H,g,B)?H.map(be=>Iw.singleCellTable(g,be.start)):re.isMultiTable?oz(H,re,g,B):jW(H,re,g,B)},KE=r=>ye(r,g=>{gc(g,"contenteditable"),rh(g)}),R6=(r,g)=>Y.from(r.dom.getParent(g,r.dom.isBlock)).map(sr.fromDom),az=(r,g,B)=>{B.each(H=>{g?ja(H):(rh(H),r.selection.setCursorLocation(H.dom,0))})},L6=(r,g,B,H)=>{const re=B.cloneRange();H?(re.setStart(B.startContainer,B.startOffset),re.setEndAfter(g.dom.lastChild)):(re.setStartBefore(g.dom.firstChild),re.setEnd(B.endContainer,B.endOffset)),I6(r,re,g,!1).each(be=>be())},JE=r=>{const g=g2(r),B=sr.fromDom(r.selection.getNode());Dr(B.dom)&&Pi(r.schema,B)?r.selection.setCursorLocation(B.dom,0):r.selection.collapse(!0),g.length>1&&de(g,H=>Fa(H,B))&&Es(B,"data-mce-selected","1")},e7=(r,g,B)=>Y.some(()=>{const H=r.selection.getRng(),re=B.bind(({rng:be,isStartInTable:Re})=>{const Ke=R6(r,Re?be.endContainer:be.startContainer);be.deleteContents(),az(r,Re,Ke.filter(U(Pi,r.schema)));const ct=Re?g[0]:g[g.length-1];return L6(r,ct,H,Re),Pi(r.schema,ct)?Y.none():Y.some(Re?g.slice(1):g.slice(0,-1))}).getOr(g);KE(re),JE(r)}),sz=(r,g,B,H)=>Y.some(()=>{const re=r.selection.getRng(),be=g[0],Re=B[B.length-1];L6(r,be,re,!0),L6(r,Re,re,!1);const Ke=Pi(r.schema,be)?g:g.slice(1),ct=Pi(r.schema,Re)?B:B.slice(0,-1);KE(Ke.concat(ct)),H.deleteContents(),JE(r)}),I6=(r,g,B,H=!0)=>Y.some(()=>{KB(r,g,B,H)}),lz=(r,g)=>Y.some(()=>Ew(r,!1,g)),cz=(r,g,B)=>iz(g,B).bind(H=>H.fold(U(I6,r),U(lz,r),U(e7,r),U(sz,r))),uz=(r,g)=>T5(r,g),fz=(r,g,B,H)=>D6(g,H).fold(()=>cz(r,g,B),re=>uz(r,re)),t7=(r,g,B)=>{const H=sr.fromDom(r.getBody()),re=r.selection.getRng();return B.length!==0?e7(r,B,Y.none()):fz(r,H,re,g)},n7=(r,g)=>De(Yb(g,r),z1),D6=(r,g)=>De(Yb(g,r),Ju("caption")),dz=(r,g,B,H,re)=>lv(B,r.getBody(),re).bind(be=>n7(g,sr.fromDom(be.getNode())).bind(Re=>Fa(Re,H)?Y.none():Y.some(k))),T5=(r,g)=>Y.some(()=>{rh(g),r.selection.setCursorLocation(g.dom,0)}),hz=(r,g,B,H)=>lh(r.dom).bind(re=>Xp(r.dom).map(be=>g?B.isEqual(re)&&H.isEqual(be):B.isEqual(be)&&H.isEqual(re))).getOr(!0),pz=(r,g)=>T5(r,g),r7=(r,g,B)=>D6(r,sr.fromDom(B.getNode())).fold(()=>Y.some(k),H=>ma(!Fa(H,g),k)),B6=(r,g,B,H,re)=>lv(B,r.getBody(),re).fold(()=>Y.some(k),be=>hz(H,B,re,be)?pz(r,H):r7(g,H,be)),o7=(r,g,B,H)=>{const re=qr.fromRangeStart(r.selection.getRng());return n7(B,H).bind(be=>Pi(r.schema,be,{checkRootAsContent:!1})?T5(r,be):dz(r,B,g,be,re))},z6=(r,g,B,H)=>{const re=qr.fromRangeStart(r.selection.getRng());return Pi(r.schema,H)?T5(r,H):B6(r,B,g,H,re)},i7=(r,g)=>r?FE(g):NE(g),F6=(r,g)=>{const B=qr.fromRangeStart(r.selection.getRng());return i7(g,B)||Yp(g,r.getBody(),B).exists(H=>i7(g,H))},a7=(r,g,B)=>{const H=sr.fromDom(r.getBody());return D6(H,B).fold(()=>o7(r,g,H,B).orThunk(()=>ma(F6(r,g),k)),re=>z6(r,g,H,re))},Bw=(r,g)=>{const B=sr.fromDom(r.selection.getStart(!0)),H=g2(r);return r.selection.isCollapsed()&&H.length===0?a7(r,g,B):t7(r,B,H)},Gb=(r,g)=>{let B=g;for(;B&&B!==r;){if(Sn(B)||rr(B))return B;B=B.parentNode}return null},mz=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],q3=mo.each,C5=r=>{const g=r.dom,B=new Set(r.serializer.getTempAttrs()),H=(be,Re)=>{if(be.nodeName!==Re.nodeName||be.nodeType!==Re.nodeType)return!1;const Ke=kt=>{const Wt={};return q3(g.getAttribs(kt),Jt=>{const ln=Jt.nodeName.toLowerCase();ln!=="style"&&!re(ln)&&(Wt[ln]=g.getAttrib(kt,ln))}),Wt},ct=(kt,Wt)=>{for(const Jt in kt)if(_t(kt,Jt)){const ln=Wt[Jt];if(M(ln)||kt[Jt]!==ln)return!1;delete Wt[Jt]}for(const Jt in Wt)if(_t(Wt,Jt))return!1;return!0};return ne(be)&&ne(Re)&&(!ct(Ke(be),Ke(Re))||!ct(g.parseStyle(g.getAttrib(be,"style")),g.parseStyle(g.getAttrib(Re,"style"))))?!1:!Kp(be)&&!Kp(Re)},re=be=>de(mz,Re=>xr(be,Re))||B.has(be);return{compare:H,isAttributeInternal:re}},N6=r=>["h1","h2","h3","h4","h5","h6"].includes(r.name),W3=r=>r.name==="summary",C2=(r,g)=>{let B=r;for(;B=B.walk();)g(B)},s7=(r,g,B,H)=>{const re=B.name;for(let be=0,Re=r.length;be{const H={nodes:{},attributes:{}};return B.firstChild&&C2(B,re=>{s7(r,g,re,H)}),H},gz=(r,g)=>{const B=(H,re)=>{Ge(H,be=>{const Re=Ee(be.nodes);ye(be.filter.callbacks,Ke=>{for(let ct=Re.length-1;ct>=0;ct--){const kt=Re[ct];(!(re?kt.attr(be.filter.name)!==void 0:kt.name===be.filter.name)||T(kt.parent))&&Re.splice(ct,1)}Re.length>0&&Ke(Re,be.filter.name,g)})})};B(r.nodes,!1),B(r.attributes,!0)},l7=(r,g,B,H={})=>{const re=QW(r,g,B);gz(re,H)},$6=(r,g,B,H)=>{if((r.pad_empty_with_br||g.insert)&&B(H)){const be=new yp("br",1);g.insert&&be.attr("data-mce-bogus","1"),H.empty().append(be)}else H.empty().append(new yp("#text",3)).value=Ea},HW=r=>{var g;return Kb(r,"#text")&&((g=r==null?void 0:r.firstChild)===null||g===void 0?void 0:g.value)===Ea},Kb=(r,g)=>{const B=r==null?void 0:r.firstChild;return E(B)&&B===r.lastChild&&B.name===g},zw=(r,g)=>{const B=r.getElementRule(g.name);return(B==null?void 0:B.paddEmpty)===!0},V6=(r,g,B,H)=>H.isEmpty(g,B,re=>zw(r,re)),Vd=(r,g)=>E(r)&&(g(r)||r.name==="br"),ZW=r=>{let g;for(let B=r;B;B=B.parent){const H=B.attr("contenteditable");if(H==="false")break;H==="true"&&(g=B)}return Y.from(g)},c7=(r,g,B=r.parent)=>{if(g.getSpecialElements()[r.name])r.empty().remove();else{const H=r.children();for(const re of H)B&&!g.isValidChild(B.name,re.name)&&c7(re,g,B);r.unwrap()}},pv=(r,g,B,H=k)=>{const re=g.getTextBlockElements(),be=g.getNonEmptyElements(),Re=g.getWhitespaceElements(),Ke=mo.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),ct=new Set,kt=Wt=>Wt!==B&&!Ke[Wt.name];for(let Wt=0;Wt1)if(vz(g,Jt,ln))c7(Jt,g);else{Rn.reverse(),kn=Rn[0].clone(),H(kn);let qn=kn;for(let pr=0;pr0?(Vn=Rn[pr].clone(),H(Vn),qn.append(Vn)):Vn=qn;for(let Tr=Rn[pr].firstChild;Tr&&Tr!==Rn[pr+1];){const wr=Tr.next;Vn.append(Tr),Tr=wr}qn=Vn}V6(g,be,Re,kn)?ln.insert(Jt,Rn[0],!0):(ln.insert(kn,Rn[0],!0),ln.insert(Jt,kn)),ln=Rn[0],(V6(g,be,Re,ln)||Kb(ln,"br"))&&ln.empty().remove()}else if(Jt.parent){if(Jt.name==="li"){let qn=Jt.prev;if(qn&&(qn.name==="ul"||qn.name==="ol")){qn.append(Jt);continue}if(qn=Jt.next,qn&&(qn.name==="ul"||qn.name==="ol")&&qn.firstChild){qn.insert(Jt,qn.firstChild,!0);continue}const pr=new yp("ul",1);H(pr),Jt.wrap(pr);continue}if(g.isValidChild(Jt.parent.name,"div")&&g.isValidChild("div",Jt.name)){const qn=new yp("div",1);H(qn),Jt.wrap(qn)}else c7(Jt,g)}}},qs=(r,g)=>{let B=r;for(;B;){if(B.name===g)return!0;B=B.parent}return!1},vz=(r,g,B=g.parent)=>B?r.children[g.name]&&!r.isValidChild(B.name,g.name)||g.name==="a"&&qs(B,"a")?!0:W3(B)&&N6(g)?!((B==null?void 0:B.firstChild)===g&&(B==null?void 0:B.lastChild)===g):!1:!1,qW=(r,g,B,H)=>{const re=document.createRange();return re.setStart(r,g),re.setEnd(B,H),re},WW=r=>{const g=qr.fromRangeStart(r),B=qr.fromRangeEnd(r),H=r.commonAncestorContainer;return Yp(!1,H,B).map(re=>!Wp(g,B,H)&&Wp(g,re,H)?qW(g.container(),g.offset(),re.container(),re.offset()):r).getOr(r)},Wl=r=>r.collapsed?r:WW(r),yz=r=>E(r.firstChild)&&r.firstChild===r.lastChild,A5=r=>r.name==="br"||r.value===Ea,M5=(r,g)=>r.getBlockElements()[g.name]&&yz(g)&&A5(g.firstChild),U6=(r,g)=>{const B=r.getNonEmptyElements();return E(g)&&(g.isEmpty(B)||M5(r,g))},j6=(r,g)=>{let B=g.firstChild,H=g.lastChild;return B&&B.name==="meta"&&(B=B.next),H&&H.attr("id")==="mce_marker"&&(H=H.prev),U6(r,H)&&(H=H==null?void 0:H.prev),!B||B!==H?!1:B.name==="ul"||B.name==="ol"},bz=r=>{var g,B;const H=r.firstChild,re=r.lastChild;return H&&H.nodeName==="META"&&((g=H.parentNode)===null||g===void 0||g.removeChild(H)),re&&re.id==="mce_marker"&&((B=re.parentNode)===null||B===void 0||B.removeChild(re)),r},Que=(r,g,B)=>{const H=g.serialize(B),re=r.createFragment(H);return bz(re)},YW=r=>{var g;return Te((g=r==null?void 0:r.childNodes)!==null&&g!==void 0?g:[],B=>B.nodeName==="LI")},Hue=r=>r.data===Ea||On(r),XW=r=>E(r==null?void 0:r.firstChild)&&r.firstChild===r.lastChild&&Hue(r.firstChild),GW=r=>!r.firstChild||XW(r),Zue=r=>r.length>0&&GW(r[r.length-1])?r.slice(0,-1):r,u7=(r,g)=>{const B=r.getParent(g,r.isBlock);return B&&B.nodeName==="LI"?B:null},kd=(r,g)=>!!u7(r,g),xz=(r,g)=>{const B=g.cloneRange(),H=g.cloneRange();return B.setStartBefore(r),H.setEndAfter(r),[B.cloneContents(),H.cloneContents()]},_z=(r,g)=>{const B=qr.before(r),re=Od(g).next(B);return re?re.toRange():null},wz=(r,g)=>{const B=qr.after(r),re=Od(g).prev(B);return re?re.toRange():null},KW=(r,g,B,H)=>{const re=xz(r,H),be=r.parentNode;return be&&(be.insertBefore(re[0],r),mo.each(g,Re=>{be.insertBefore(Re,r)}),be.insertBefore(re[1],r),be.removeChild(r)),wz(g[g.length-1],B)},JW=(r,g,B)=>{const H=r.parentNode;return H&&mo.each(g,re=>{H.insertBefore(re,r)}),_z(r,B)},Zm=(r,g,B,H)=>(H.insertAfter(g.reverse(),r),wz(g[0],B)),mv=(r,g,B,H)=>{const re=Que(g,r,H),be=u7(g,B.startContainer),Re=Zue(YW(re.firstChild)),Ke=1,ct=2,kt=g.getRoot(),Wt=Jt=>{const ln=qr.fromRangeStart(B),kn=Od(g.getRoot()),Vn=Jt===Ke?kn.prev(ln):kn.next(ln),Rn=Vn==null?void 0:Vn.getNode();return Rn?u7(g,Rn)!==be:!0};return be?Wt(Ke)?JW(be,Re,kt):Wt(ct)?Zm(be,Re,kt,g):KW(be,Re,kt,B):null},eY=["pre"],f7=(r,g,B,H)=>{var re;const be=g.firstChild,Re=g.lastChild,Ke=Re.attr("data-mce-type")==="bookmark"?Re.prev:Re,ct=be===Ke,kt=ce(eY,be.name);if(ct&&kt){const Wt=be.attr("contenteditable")!=="false",Jt=((re=r.getParent(B,r.isBlock))===null||re===void 0?void 0:re.nodeName.toLowerCase())===be.name,ln=Y.from(Gb(H,B)).forall(Sn);return Wt&&Jt&&ln}else return!1},E5=Dr,tY=(r,g,B)=>{if(E(B)){const H=r.getParent(g.endContainer,E5);return B===H&&x3(sr.fromDom(B),g)}else return!1},nY=(r,g,B)=>{var H;if(B.getAttribute("data-mce-bogus")==="all")(H=B.parentNode)===null||H===void 0||H.insertBefore(r.dom.createFragment(g),B);else{const re=B.firstChild,be=B.lastChild;!re||re===be&&re.nodeName==="BR"?r.dom.setHTML(B,g):r.selection.setContent(g,{no_events:!0})}},P5=(r,g,B)=>{Y.from(r.getParent(g,"td,th")).map(sr.fromDom).each(H=>H_(H,B))},Q6=(r,g)=>{const B=r.schema.getTextInlineElements(),H=r.dom;if(g){const re=r.getBody(),be=C5(r),Re="*[data-mce-fragment]",Ke=H.select(Re);mo.each(Ke,ct=>{const kt=ln=>E(B[ln.nodeName.toLowerCase()]),Wt=ln=>ln.childNodes.length===1;if((ln=>!(xB(H,ln)||hW(H,ln)))(ct)&&kt(ct)&&Wt(ct)){const ln=V3(H,ct),kn=(pr,Tr)=>Oe(pr,wr=>ce(Tr,wr)),Vn=pr=>Wt(ct)&&H.is(pr,Re)&&kt(pr)&&(pr.nodeName===ct.nodeName&&kn(ln,V3(H,pr))||Vn(pr.children[0])),Rn=pr=>E(pr)&&pr!==re&&(be.compare(ct,pr)||Rn(pr.parentElement)),qn=pr=>E(pr)&&pr!==re&&H.is(pr,Re)&&(mW(H,ct,pr)||qn(pr.parentElement));(Vn(ct.children[0])||Rn(ct.parentElement)&&!qn(ct.parentElement))&&H.remove(ct,!0)}})}},d7=r=>{let g=r;for(;g=g.walk();)g.type===1&&g.attr("data-mce-fragment","1")},rY=r=>{mo.each(r.getElementsByTagName("*"),g=>{g.removeAttribute("data-mce-fragment")})},gv=r=>!!r.getAttribute("data-mce-fragment"),oY=(r,g)=>E(g)&&!r.schema.getVoidElements()[g.nodeName],iY=(r,g)=>{var B,H,re;let be;const Re=r.dom,Ke=r.selection;if(!g)return;Ke.scrollIntoView(g);const ct=Gb(r.getBody(),g);if(ct&&Re.getContentEditable(ct)==="false"){Re.remove(g),Ke.select(ct);return}let kt=Re.createRng();const Wt=g.previousSibling;if(Nt(Wt)){kt.setStart(Wt,(H=(B=Wt.nodeValue)===null||B===void 0?void 0:B.length)!==null&&H!==void 0?H:0);const kn=g.nextSibling;Nt(kn)&&(Wt.appendData(kn.data),(re=kn.parentNode)===null||re===void 0||re.removeChild(kn))}else kt.setStartBefore(g),kt.setEndBefore(g);const Jt=kn=>{let Vn=qr.fromRangeStart(kn);return Vn=Od(r.getBody()).next(Vn),Vn==null?void 0:Vn.toRange()},ln=Re.getParent(g,Re.isBlock);if(Re.remove(g),ln&&Re.isEmpty(ln)){const kn=E5(ln);gu(sr.fromDom(ln)),kt.setStart(ln,0),kt.setEnd(ln,0),!kn&&!gv(ln)&&(be=Jt(kt))?(kt=be,Re.remove(ln)):Re.add(ln,Re.create("br",kn?{}:{"data-mce-bogus":"1"}))}Ke.setRng(kt)},f0=r=>{const g=r.dom,B=Wl(r.selection.getRng());r.selection.setRng(B);const H=g.getParent(B.startContainer,E5);tY(g,B,H)?I6(r,B,sr.fromDom(H)):B.startContainer===B.endContainer&&B.endOffset-B.startOffset===1&&Nt(B.startContainer.childNodes[B.startOffset])?B.deleteContents():r.getDoc().execCommand("Delete",!1)},R5=r=>{for(let g=r;g;g=g.walk())if(g.attr("id")==="mce_marker")return Y.some(g);return Y.none()},n1=(r,g,B)=>{var H;return de(B.children(),N6)&&((H=r.getParent(g,r.isBlock))===null||H===void 0?void 0:H.nodeName)==="SUMMARY"},aY=(r,g,B)=>{var H,re;const be=r.selection,Re=r.dom,Ke=r.parser,ct=B.merge,kt=Wb({validate:!0},r.schema),Wt='';B.preserve_zwsp||(g=vd(g)),g.indexOf("{$caret}")===-1&&(g+="{$caret}"),g=g.replace(/\{\$caret\}/,Wt);let Jt=be.getRng();const ln=Jt.startContainer,kn=r.getBody();ln===kn&&be.isCollapsed()&&Re.isBlock(kn.firstChild)&&oY(r,kn.firstChild)&&Re.isEmpty(kn.firstChild)&&(Jt=Re.createRng(),Jt.setStart(kn.firstChild,0),Jt.setEnd(kn.firstChild,0),be.setRng(Jt)),be.isCollapsed()||f0(r);const Vn=be.getNode(),Rn={context:Vn.nodeName.toLowerCase(),data:B.data,insert:!0},qn=Ke.parse(g,Rn);if(B.paste===!0&&j6(r.schema,qn)&&kd(Re,Vn))return Jt=mv(kt,Re,be.getRng(),qn),Jt&&be.setRng(Jt),g;B.paste===!0&&f7(Re,qn,Vn,r.getBody())&&((H=qn.firstChild)===null||H===void 0||H.unwrap()),d7(qn);let pr=qn.lastChild;if(pr&&pr.attr("id")==="mce_marker"){const Tr=pr;for(pr=pr.prev;pr;pr=pr.walk(!0))if(pr.type===3||!Re.isBlock(pr.name)){pr.parent&&r.schema.isValidChild(pr.parent.name,"span")&&pr.parent.insert(Tr,pr,pr.name==="br");break}}if(r._selectionOverrides.showBlockCaretContainer(Vn),!Rn.invalid&&!n1(Re,Vn,qn))g=kt.serialize(qn),nY(r,g,Vn);else{r.selection.setContent(Wt);let Tr=be.getNode(),wr;const Ur=r.getBody();for(pn(Tr)?Tr=wr=Ur:wr=Tr;wr&&wr!==Ur;)Tr=wr,wr=wr.parentNode;g=Tr===Ur?Ur.innerHTML:Re.getOuterHTML(Tr);const wo=Ke.parse(g),jo=R5(wo),di=jo.bind(ZW).getOr(wo);jo.each(bi=>bi.replace(qn));const lo=qn.children(),eo=(re=qn.parent)!==null&&re!==void 0?re:wo;qn.unwrap();const xo=Te(lo,bi=>vz(r.schema,bi,eo));pv(xo,r.schema,di),l7(Ke.getNodeFilters(),Ke.getAttributeFilters(),wo),g=kt.serialize(wo),Tr===Ur?Re.setHTML(Ur,g):Re.setOuterHTML(Tr,g)}return Q6(r,ct),iY(r,Re.get("mce_marker")),rY(r.getBody()),P5(Re,be.getStart(),r.schema),Wf(r.schema,r.getBody(),be.getStart()),g},Ks=r=>r instanceof yp,Y3=r=>{Mw(r)&&lh(r.getBody()).each(g=>{const B=g.getNode(),H=Et(B)?lh(B).getOr(g):g;r.selection.setRng(H.toRange())})},X3=(r,g,B)=>{r.dom.setHTML(r.getBody(),g),B!==!0&&Y3(r)},Oz=(r,g,B,H)=>{if(B=vd(B),B.length===0||/^\s+$/.test(B)){const re='
';g.nodeName==="TABLE"?B=""+re+"":/^(UL|OL)$/.test(g.nodeName)&&(B="

  • "+re+"
  • ");const be=dc(r);return r.schema.isValidChild(g.nodeName.toLowerCase(),be.toLowerCase())?(B=re,B=r.dom.createHTML(be,Jf(r),B)):B||(B=re),X3(r,B,H.no_selection),{content:B,html:B}}else{H.format!=="raw"&&(B=Wb({validate:!1},r.schema).serialize(r.parser.parse(B,{isRootContent:!0,insert:!0})));const re=iy(sr.fromDom(g))?B:mo.trim(B);return X3(r,re,H.no_selection),{content:re,html:re}}},h7=(r,g,B,H)=>{l7(r.parser.getNodeFilters(),r.parser.getAttributeFilters(),B);const re=Wb({validate:!1},r.schema).serialize(B),be=vd(iy(sr.fromDom(g))?re:mo.trim(re));return X3(r,be,H.no_selection),{content:B,html:be}},p7=(r,g,B)=>Y.from(r.getBody()).map(H=>Ks(g)?h7(r,H,g,B):Oz(r,H,g,B)).getOr({content:g,html:Ks(B.content)?"":B.content}),Sz=r=>C(r)?r:oe,m7=(r,g,B)=>{let H=r.dom;const re=Sz(B);for(;H.parentNode;){H=H.parentNode;const be=sr.fromDom(H),Re=g(be);if(Re.isSome())return Re;if(re(be))break}return Y.none()},g7=(r,g,B)=>{const H=g(r),re=Sz(B);return H.orThunk(()=>re(r)?Y.none():m7(r,g,re))},H6=w3,v7=(r,g,B)=>{const H=r.formatter.get(B);if(H)for(let re=0;re{const be=r.dom.getRoot();if(g===be)return!1;const Re=r.dom.getParent(g,Ke=>v7(r,Ke,B)?!0:Ke.parentNode===be||!!Py(r,Ke,B,H,!0));return!!Py(r,Re,B,H,re)},I5=(r,g,B)=>Mf(B)&&H6(g,B.inline)||fv(B)&&H6(g,B.block)?!0:$m(B)?ne(g)&&r.is(g,B.selector):!1,D5=(r,g,B,H,re,be)=>{const Re=B[H],Ke=H==="attributes";if(C(B.onmatch))return B.onmatch(g,B,H);if(Re){if(mn(Re)){for(let ct=0;ct{const be=r.formatter.get(B),Re=r.dom;if(be&&ne(g))for(let Ke=0;Ke{if(H)return L5(r,H,g,B,re);if(H=r.selection.getNode(),L5(r,H,g,B,re))return!0;const be=r.selection.getStart();return!!(be!==H&&L5(r,be,g,B,re))},sY=(r,g,B)=>{const H=[],re={},be=r.selection.getStart();return r.dom.getParent(be,Re=>{for(let Ke=0;Ke{const B=re=>Fa(re,sr.fromDom(r.getBody())),H=(re,be)=>Py(r,re.dom,be)?Y.some(be):Y.none();return Y.from(r.selection.getStart(!0)).bind(re=>g7(sr.fromDom(re),be=>Ne(g,Re=>H(be,Re)),B)).getOrNull()},cY=(r,g)=>{const B=r.formatter.get(g),H=r.dom;if(B&&r.selection.isEditable()){const re=r.selection.getStart(),be=x2(H,re);for(let Re=B.length-1;Re>=0;Re--){const Ke=B[Re];if(!$m(Ke))return!0;for(let ct=be.length-1;ct>=0;ct--)if(H.is(be[ct],Ke.selector))return!0}}return!1},kz=(r,g,B)=>Ie(B,(H,re)=>{const be=YM(r,re);return r.formatter.matchNode(g,re,{},be)?H.concat([re]):H},[]),B5=nc,uY=(r,g)=>r.importNode(g,!0),b7=r=>{if(r){const g=new kc(r,r);for(let B=g.current();B;B=g.next())if(Nt(B))return B}return null},Z6=r=>{const g=sr.fromTag("span");return ef(g,{id:v3,"data-mce-bogus":"1","data-mce-type":"format-caret"}),r&&Ps(g,sr.fromText(B5)),g},fY=r=>{const g=b7(r);return g&&g.data.charAt(0)===B5&&g.deleteData(0,1),g},x7=(r,g,B)=>{const H=r.dom,re=r.selection;if(XT(g))Ew(r,!1,sr.fromDom(g),B,!0);else{const be=re.getRng(),Re=H.getParent(g,H.isBlock),Ke=be.startContainer,ct=be.startOffset,kt=be.endContainer,Wt=be.endOffset,Jt=fY(g);H.remove(g,!0),Ke===Jt&&ct>0&&be.setStart(Jt,ct-1),kt===Jt&&Wt>0&&be.setEnd(Jt,Wt-1),Re&&H.isEmpty(Re)&&rh(sr.fromDom(Re)),re.setRng(be)}},q6=(r,g,B)=>{const H=r.dom,re=r.selection;if(g)x7(r,g,B);else if(g=$b(r.getBody(),re.getStart()),!g)for(;g=H.get(v3);)x7(r,g,B)},dY=(r,g,B)=>{var H,re;const be=r.dom,Re=be.getParent(B,U(JS,r.schema));Re&&be.isEmpty(Re)?(H=B.parentNode)===null||H===void 0||H.replaceChild(g,B):(_S(sr.fromDom(B)),be.isEmpty(B)?(re=B.parentNode)===null||re===void 0||re.replaceChild(g,B):be.insertAfter(g,B))},_7=(r,g)=>(r.appendChild(g),g),Cg=(r,g)=>{var B;const H=Pe(r,(be,Re)=>_7(be,Re.cloneNode(!1)),g),re=(B=H.ownerDocument)!==null&&B!==void 0?B:document;return _7(H,re.createTextNode(B5))},hY=(r,g,B,H,re,be)=>{const Re=r.formatter,Ke=r.dom,ct=Te(nt(Re.get()),Jt=>Jt!==H&&!Un(Jt,"removeformat")),kt=kz(r,B,ct);if(Te(kt,Jt=>!k3(r,Jt,H)).length>0){const Jt=B.cloneNode(!1);return Ke.add(g,Jt),Re.remove(H,re,Jt,be),Ke.remove(Jt),Y.some(Jt)}else return Y.none()},Tz=(r,g,B)=>{let H;const re=r.selection,be=r.formatter.get(g);if(!be)return;const Re=re.getRng();let Ke=Re.startOffset;const kt=Re.startContainer.nodeValue;H=$b(r.getBody(),re.getStart());const Wt=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(kt&&Ke>0&&Ke{const re=r.dom,be=r.selection;let Re=!1;const Ke=r.formatter.get(g);if(!Ke)return;const ct=be.getRng(),kt=ct.startContainer,Wt=ct.startOffset;let Jt=kt;Nt(kt)&&(Wt!==kt.data.length&&(Re=!0),Jt=Jt.parentNode);const ln=[];let kn;for(;Jt;){if(Py(r,Jt,g,B,H)){kn=Jt;break}Jt.nextSibling&&(Re=!0),ln.push(Jt),Jt=Jt.parentNode}if(kn)if(Re){const Vn=be.getBookmark();ct.collapse(!0);let Rn=Oy(re,ct,Ke,!0);Rn=_i(Rn),r.formatter.remove(g,B,Rn,H),be.moveToBookmark(Vn)}else{const Vn=$b(r.getBody(),kn),Rn=E(Vn)?re.getParents(kn.parentNode,q,Vn):[],qn=Z6(!1).dom;dY(r,qn,Vn??kn);const pr=hY(r,qn,kn,g,B,H),Tr=Cg([...ln,...pr.toArray(),...Rn],qn);Vn&&x7(r,Vn,E(Vn)),be.setCursorLocation(Tr,1),re.isEmpty(kn)&&re.remove(kn)}},O7=(r,g,B)=>{const H=r.selection,re=r.getBody();q6(r,null,B),(g===8||g===46)&&H.isCollapsed()&&H.getStart().innerHTML===B5&&q6(r,$b(re,H.getStart()),!0),(g===37||g===39)&&q6(r,$b(re,H.getStart()),!0)},Cz=r=>Nt(r)&&Sr(r.data,Ea),Az=r=>{r.on("mouseup keydown",g=>{O7(r,g.keyCode,Cz(r.selection.getRng().endContainer))})},Mz=r=>{const g=Z6(!1),B=Cg(r,g.dom);return{caretContainer:g,caretPosition:qr(B,0)}},Ez=(r,g)=>{const{caretContainer:B,caretPosition:H}=Mz(g);return Fc(sr.fromDom(r),B),ja(sr.fromDom(r)),H},S7=(r,g)=>{const{caretContainer:B,caretPosition:H}=Mz(g);return r.insertNode(B.dom),H},k7=(r,g)=>{if(Gp(g.dom))return!1;const B=r.schema.getTextInlineElements();return _t(B,sa(g))&&!Gp(g.dom)&&!dt(g.dom)},em={},Pz=Fe(["pre"]),pY=(r,g)=>{em[r]||(em[r]=[]),em[r].push(g)},que=(r,g)=>{_t(em,r)&&ye(em[r],B=>{B(g)})};pY("pre",r=>{const g=r.selection.getRng(),B=re=>be=>{const Re=be.previousSibling;return Pz(Re)&&ce(re,Re)},H=(re,be)=>{const Re=sr.fromDom(be),Ke=Bc(Re).dom;ja(Re),mu(sr.fromDom(re),[sr.fromTag("br",Ke),sr.fromTag("br",Ke),...Oc(Re)])};if(!g.collapsed){const re=r.selection.getSelectedBlocks(),be=Te(Te(re,Pz),B(re));ye(be,Re=>{H(Re.previousSibling,Re)})}});const W6=["fontWeight","fontStyle","color","fontSize","fontFamily"],mY=r=>_(r.styles)&&de(nt(r.styles),g=>ce(W6,g)),Wue=r=>De(r,g=>Mf(g)&&g.inline==="span"&&mY(g)),Rz=(r,g)=>{const B=r.get(g);return A(B)?Wue(B):Y.none()},Y6=(r,g)=>mp(g,qr.fromRangeStart(r)).isNone(),r1=(r,g)=>sh(g,qr.fromRangeEnd(r)).exists(B=>!On(B.getNode())||sh(g,B).isSome())===!1,X6=r=>g=>Mo(g)&&r.isEditable(g),G6=r=>{const g=r.getSelectedBlocks(),B=r.getRng();if(r.isCollapsed())return[];if(g.length===1)return Y6(B,g[0])&&r1(B,g[0])?g:[];{const H=Xe(g).filter(Re=>Y6(B,Re)).toArray(),re=tt(g).filter(Re=>r1(B,Re)).toArray(),be=g.slice(1,-1);return H.concat(be).concat(re)}},T7=r=>Te(G6(r),X6(r.dom)),Lz=r=>Te(r.getSelectedBlocks(),X6(r.dom)),K6=mo.each,C7=r=>ne(r)&&!Kp(r)&&!Gp(r)&&!dt(r),A7=(r,g)=>{for(let B=r;B;B=B[g]){if(Nt(B)&&Kn(B.data))return r;if(ne(B)&&!Kp(B))return B}return r},J6=(r,g,B)=>{const H=C5(r),re=ge(g)&&r.dom.isEditable(g),be=ge(B)&&r.dom.isEditable(B);if(re&&be){const Re=A7(g,"previousSibling"),Ke=A7(B,"nextSibling");if(H.compare(Re,Ke)){for(let ct=Re.nextSibling;ct&&ct!==Ke;){const kt=ct;ct=ct.nextSibling,Re.appendChild(kt)}return r.dom.remove(Ke),mo.each(mo.grep(Ke.childNodes),ct=>{Re.appendChild(ct)}),Re}}return B},Iz=(r,g,B,H)=>{var re;if(H&&g.merge_siblings!==!1){const be=(re=J6(r,pw(H),H))!==null&&re!==void 0?re:H;J6(r,be,pw(be,!0))}},Dz=(r,g,B)=>{if(g.clear_child_styles){const H=g.links?"*:not(a)":"*";K6(r.select(H,B),re=>{C7(re)&&r.isEditable(re)&&K6(g.styles,(be,Re)=>{r.setStyle(re,Re,"")})})}},M7=(r,g,B)=>{K6(r.childNodes,H=>{C7(H)&&(g(H)&&B(H),H.hasChildNodes()&&M7(H,g,B))})},Fw=(r,g)=>{g.nodeName==="SPAN"&&r.getAttribs(g).length===0&&r.remove(g,!0)},E7=(r,g)=>B=>!!(B&&O3(r,B,g)),Bz=(r,g,B)=>H=>{r.setStyle(H,g,B),H.getAttribute("style")===""&&H.removeAttribute("style"),Fw(r,H)},A2=aa.generate([{keep:[]},{rename:["name"]},{removed:[]}]),gY=/^(src|href|style)$/,P7=mo.each,eC=w3,vY=r=>/^(TR|TH|TD)$/.test(r.nodeName),zz=(r,g,B)=>r.isChildOf(g,B)&&g!==B&&!r.isBlock(B),R7=(r,g,B)=>{let H=g[B?"startContainer":"endContainer"],re=g[B?"startOffset":"endOffset"];if(ne(H)){const be=H.childNodes.length-1;!B&&re&&re--,H=H.childNodes[re>be?be:re]}return Nt(H)&&B&&re>=H.data.length&&(H=new kc(H,r.getBody()).next()||H),Nt(H)&&!B&&re===0&&(H=new kc(H,r.getBody()).prev()||H),H},Fz=(r,g)=>{const B=g?"firstChild":"lastChild",H=r[B];return vY(r)&&H?r.nodeName==="TR"&&H[B]||H:r},z5=(r,g,B,H)=>{var re;const be=r.create(B,H);return(re=g.parentNode)===null||re===void 0||re.insertBefore(be,g),be.appendChild(g),be},M2=(r,g,B,H,re)=>{const be=sr.fromDom(g),Re=sr.fromDom(r.create(H,re)),Ke=B?Pu(be):vh(be);return mu(Re,Ke),B?(Fc(be,Re),Hh(Re,be)):(si(be,Re),Ps(Re,be)),Re.dom},yY=(r,g)=>g.links&&r.nodeName==="A",Nz=(r,g,B)=>{const H=g.parentNode;let re;const be=r.dom,Re=dc(r);fv(B)&&H===be.getRoot()&&(!B.list_block||!eC(g,B.list_block))&&ye(Ee(g.childNodes),Ke=>{uv(r,Re,Ke.nodeName.toLowerCase())?re?re.appendChild(Ke):(re=z5(be,Ke,Re),be.setAttribs(re,Jf(r))):re=null}),!(GM(B)&&!eC(B.inline,g))&&be.remove(g,!0)},F5=(r,g,B)=>L(r)?{name:g,value:null}:{name:r,value:Qb(g,B)},L7=(r,g)=>{r.getAttrib(g,"style")===""&&(g.removeAttribute("style"),g.removeAttribute("data-mce-style"))},I7=(r,g,B,H,re)=>{let be=!1;P7(B.styles,(Re,Ke)=>{const{name:ct,value:kt}=F5(Ke,Re,H),Wt=Hb(kt,ct);(B.remove_similar||x(kt)||!ne(re)||eC(O3(r,re,ct),Wt))&&r.setStyle(g,ct,""),be=!0}),be&&L7(r,g)},bY=(r,g,B)=>{g==="removeformat"?ye(Lz(r.selection),H=>{ye(W6,re=>r.dom.setStyle(H,re,"")),L7(r.dom,H)}):Rz(r.formatter,g).each(H=>{ye(Lz(r.selection),re=>I7(r.dom,re,H,B,null))})},D7=(r,g,B,H,re)=>{const be=r.dom,Re=C5(r),Ke=r.schema;if(Mf(g)&&lg(Ke,g.inline)&&xm(Ke,H)&&H.parentElement===r.getBody())return Nz(r,H,g),A2.removed();if(!g.ceFalseOverride&&H&&be.getContentEditableParent(H)==="false"||H&&!I5(be,H,g)&&!yY(H,g))return A2.keep();const ct=H,kt=g.preserve_attributes;if(Mf(g)&&g.remove==="all"&&A(kt)){const Wt=Te(be.getAttribs(ct),Jt=>ce(kt,Jt.name.toLowerCase()));if(be.removeAllAttribs(ct),ye(Wt,Jt=>be.setAttrib(ct,Jt.name,Jt.value)),Wt.length>0)return A2.rename("span")}if(g.remove!=="all"){I7(be,ct,g,B,re),P7(g.attributes,(Jt,ln)=>{const{name:kn,value:Vn}=F5(ln,Jt,B);if(g.remove_similar||x(Vn)||!ne(re)||eC(be.getAttrib(re,kn),Vn)){if(kn==="class"){const Rn=be.getAttrib(ct,kn);if(Rn){let qn="";if(ye(Rn.split(/\s+/),pr=>{/mce\-\w+/.test(pr)&&(qn+=(qn?" ":"")+pr)}),qn){be.setAttrib(ct,kn,qn);return}}}if(gY.test(kn)&&ct.removeAttribute("data-mce-"+kn),kn==="style"&&Fe(["li"])(ct)&&be.getStyle(ct,"list-style-type")==="none"){ct.removeAttribute(kn),be.setStyle(ct,"list-style-type","none");return}kn==="class"&&ct.removeAttribute("className"),ct.removeAttribute(kn)}}),P7(g.classes,Jt=>{Jt=Qb(Jt,B),(!ne(re)||be.hasClass(re,Jt))&&be.removeClass(ct,Jt)});const Wt=be.getAttribs(ct);for(let Jt=0;Jt{let be;return g.parentNode&&ye(x2(r.dom,g.parentNode).reverse(),Re=>{if(!be&&ne(Re)&&Re.id!=="_start"&&Re.id!=="_end"){const Ke=Py(r,Re,B,H,re);Ke&&Ke.split!==!1&&(be=Re)}}),be},Nw=(r,g,B,H)=>D7(r,g,B,H,H).fold($(H),re=>(r.dom.createFragment().appendChild(H),r.dom.rename(H,re)),$(null)),$z=(r,g,B,H,re,be,Re,Ke)=>{var ct,kt;let Wt,Jt;const ln=r.dom;if(B){const kn=B.parentNode;for(let Vn=H.parentNode;Vn&&Vn!==kn;Vn=Vn.parentNode){let Rn=ln.clone(Vn,!1);for(let qn=0;qn{const be=r.formatter.get(g),Re=be[0],Ke=r.dom,ct=r.selection,kt=Rn=>{const qn=xY(r,Rn,g,B,re);return $z(r,be,qn,Rn,Rn,!0,Re,B)},Wt=Rn=>Kp(Rn)&&ne(Rn)&&(Rn.id==="_start"||Rn.id==="_end"),Jt=Rn=>de(be,qn=>E2(r,qn,B,Rn,Rn)),ln=Rn=>{const qn=Ee(Rn.childNodes),Tr=Jt(Rn)||de(be,wo=>I5(Ke,Rn,wo)),wr=Rn.parentNode;if(!Tr&&E(wr)&&u0(Re)&&Jt(wr),Re.deep&&qn.length)for(let wo=0;wo{ne(Rn)&&r.dom.getStyle(Rn,"text-decoration")===wo&&Rn.parentNode&&YT(Ke,Rn.parentNode)===wo&&E2(r,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:wo}},void 0,Rn)})},kn=Rn=>{const qn=Ke.get(Rn?"_start":"_end");if(qn){let pr=qn[Rn?"firstChild":"lastChild"];return Wt(pr)&&(pr=pr[Rn?"firstChild":"lastChild"]),Nt(pr)&&pr.data.length===0&&(pr=Rn?qn.previousSibling||qn.nextSibling:qn.nextSibling||qn.previousSibling),Ke.remove(qn,!0),pr}else return null},Vn=Rn=>{let qn,pr,Tr=Oy(Ke,Rn,be,Rn.collapsed);if(Re.split){if(Tr=_i(Tr),qn=R7(r,Tr,!0),pr=R7(r,Tr),qn!==pr){if(qn=Fz(qn,!0),pr=Fz(pr,!1),zz(Ke,qn,pr)){const Ur=Y.from(qn.firstChild).getOr(qn);kt(M2(Ke,Ur,!0,"span",{id:"_start","data-mce-type":"bookmark"})),kn(!0);return}if(zz(Ke,pr,qn)){const Ur=Y.from(pr.lastChild).getOr(pr);kt(M2(Ke,Ur,!1,"span",{id:"_end","data-mce-type":"bookmark"})),kn(!1);return}qn=z5(Ke,qn,"span",{id:"_start","data-mce-type":"bookmark"}),pr=z5(Ke,pr,"span",{id:"_end","data-mce-type":"bookmark"});const wr=Ke.createRng();wr.setStartAfter(qn),wr.setEndBefore(pr),yw(Ke,wr,Ur=>{ye(Ur,wo=>{!Kp(wo)&&!Kp(wo.parentNode)&&kt(wo)})}),kt(qn),kt(pr),qn=kn(!0),pr=kn()}else qn=pr=kt(qn);Tr.startContainer=qn.parentNode?qn.parentNode:qn,Tr.startOffset=Ke.nodeIndex(qn),Tr.endContainer=pr.parentNode?pr.parentNode:pr,Tr.endOffset=Ke.nodeIndex(pr)+1}yw(Ke,Tr,wr=>{ye(wr,ln)})};if(H){if(b2(H)){const Rn=Ke.createRng();Rn.setStartBefore(H),Rn.setEndAfter(H),Vn(Rn)}else Vn(H);Jp(r,g,H,B);return}!ct.isCollapsed()||!Mf(Re)||g2(r).length?(K0(r,()=>y2(r,Vn),Rn=>Mf(Re)&&y7(r,g,B,Rn)),r.nodeChanged()):w7(r,g,B,re),bY(r,g,B),Jp(r,g,H,B)},B7=(r,g,B,H,re)=>{(H||r.selection.isEditable())&&Vz(r,g,B,H,re)},E2=(r,g,B,H,re)=>D7(r,g,B,H,re).fold(oe,be=>(r.dom.rename(H,be),!0),q),z7=mo.each,_Y=(r,g,B,H)=>{const re=be=>{if(ge(be)&&ne(be.parentNode)&&r.isEditable(be)){const Re=YT(r,be.parentNode);r.getStyle(be,"color")&&Re?r.setStyle(be,"text-decoration",Re):r.getStyle(be,"text-decoration")===Re&&r.setStyle(be,"text-decoration",null)}};g.styles&&(g.styles.color||g.styles.textDecoration)&&(mo.walk(H,re,"childNodes"),re(H))},Uz=(r,g,B,H)=>{if(g.styles&&g.styles.backgroundColor){const re=E7(r,"fontSize");M7(H,be=>re(be)&&r.isEditable(be),Bz(r,"backgroundColor",Qb(g.styles.backgroundColor,B)))}},wY=(r,g,B,H)=>{if(Mf(g)&&(g.inline==="sub"||g.inline==="sup")){const re=E7(r,"fontSize");M7(H,Re=>re(Re)&&r.isEditable(Re),Bz(r,"fontSize",""));const be=Te(r.select(g.inline==="sup"?"sub":"sup",H),r.isEditable);r.remove(be,!0)}},OY=(r,g,B,H)=>{z7(g,re=>{Mf(re)&&z7(r.dom.select(re.inline,H),be=>{C7(be)&&E2(r,re,B,be,re.exact?be:null)}),Dz(r.dom,re,H)})},tC=(r,g,B,H,re)=>{const be=re.parentNode;Py(r,be,B,H)&&E2(r,g,H,re)||g.merge_with_parents&&be&&r.dom.getParent(be,Re=>Py(r,Re,B,H)?(E2(r,g,H,re),!0):!1)},N5=mo.each,F7=(r,g,B,H)=>{if(hy(r)&&Mf(g)&&B.parentNode){const re=db(r.schema),be=Bd(sr.fromDom(B),Re=>Gp(Re.dom));return nn(re,H)&&ba(r.schema,B.parentNode,{skipBogus:!1,includeZwsp:!0})&&!be}else return!1},jz=(r,g,B,H)=>{if(N5(B.styles,(re,be)=>{r.setStyle(g,be,Qb(re,H))}),B.styles){const re=r.getAttrib(g,"style");re&&r.setAttrib(g,"data-mce-style",re)}},SY=(r,g,B,H)=>{const re=r.formatter.get(g),be=re[0],Re=!H&&r.selection.isCollapsed(),Ke=r.dom,ct=r.selection,kt=(Vn,Rn=be)=>{C(Rn.onformat)&&Rn.onformat(Vn,Rn,B,H),jz(Ke,Vn,Rn,B),N5(Rn.attributes,(qn,pr)=>{Ke.setAttrib(Vn,pr,Qb(qn,B))}),N5(Rn.classes,qn=>{const pr=Qb(qn,B);Ke.hasClass(Vn,pr)||Ke.addClass(Vn,pr)})},Wt=(Vn,Rn)=>{let qn=!1;return N5(Vn,pr=>$m(pr)?Ke.getContentEditable(Rn)==="false"&&!pr.ceFalseOverride||E(pr.collapsed)&&pr.collapsed!==Re?!0:Ke.is(Rn,pr.selector)&&!Gp(Rn)?(kt(Rn,pr),qn=!0,!1):!0:!1),qn},Jt=Vn=>{if(v(Vn)){const Rn=Ke.create(Vn);return kt(Rn),Rn}else return null},ln=(Vn,Rn,qn)=>{const pr=[];let Tr=!0;const wr=be.inline||be.block,Ur=Jt(wr),wo=lo=>XM(be)&&Py(r,lo,g,B),jo=(lo,eo,xo)=>{const bi=mw(be)&&JS(r.schema,lo)&&uv(r,eo,wr);return xo&&bi},di=(lo,eo,xo,bi)=>{const Bi=lo.nodeName.toLowerCase(),$a=uv(r,wr,Bi)&&uv(r,eo,wr),Ia=!qn&&Nt(lo)&&$0(lo.data),Us=Gp(lo),sl=!Mf(be)||!Vn.isBlock(lo);return(xo||bi)&&$a&&!Ia&&!Us&&sl};yw(Vn,Rn,lo=>{let eo;const xo=bi=>{let Bi=!1,$a=Tr,Ia=!1;const Us=bi.parentNode,sl=Us.nodeName.toLowerCase(),nu=Vn.getContentEditable(bi);E(nu)&&($a=Tr,Tr=nu==="true",Bi=!0,Ia=n5(r,bi));const jd=Tr&&!Bi;if(On(bi)&&!F7(r,be,bi,sl)){eo=null,fv(be)&&Vn.remove(bi);return}if(wo(bi)){eo=null;return}if(jo(bi,sl,jd)){const ml=Vn.rename(bi,wr);kt(ml),pr.push(ml),eo=null;return}if($m(be)){let ml=Wt(re,bi);if(!ml&&E(Us)&&u0(be)&&(ml=Wt(re,Us)),!Mf(be)||ml){eo=null;return}}E(Ur)&&di(bi,sl,jd,Ia)?(eo||(eo=Vn.clone(Ur,!1),Us.insertBefore(eo,bi),pr.push(eo)),Ia&&Bi&&(Tr=$a),eo.appendChild(bi)):(eo=null,ye(Ee(bi.childNodes),xo),Bi&&(Tr=$a),eo=null)};ye(lo,xo)}),be.links===!0&&ye(pr,lo=>{const eo=xo=>{xo.nodeName==="A"&&kt(xo,be),ye(Ee(xo.childNodes),eo)};eo(lo)}),ye(pr,lo=>{const eo=Bi=>{let $a=0;return ye(Bi.childNodes,Ia=>{!_3(Ia)&&!Kp(Ia)&&$a++}),$a},xo=Bi=>De(Bi.childNodes,KS).filter(Ia=>Vn.getContentEditable(Ia)!=="false"&&I5(Vn,Ia,be)).map(Ia=>{const Us=Vn.clone(Ia,!1);return kt(Us),Vn.replace(Us,Bi,!0),Vn.remove(Ia,!0),Us}).getOr(Bi),bi=eo(lo);if((pr.length>1||!Vn.isBlock(lo))&&bi===0){Vn.remove(lo,!0);return}(Mf(be)||fv(be)&&be.wrapper)&&(!be.exact&&bi===1&&(lo=xo(lo)),OY(r,re,B,lo),tC(r,be,g,B,lo),Uz(Vn,be,B,lo),_Y(Vn,be,B,lo),wY(Vn,be,B,lo),Iz(r,be,B,lo))})},kn=b2(H)?H:ct.getNode();if(Ke.getContentEditable(kn)==="false"&&!n5(r,kn)){H=kn,Wt(re,H),Um(r,g,H,B);return}if(be){if(H)if(b2(H)){if(!Wt(re,H)){const Vn=Ke.createRng();Vn.setStartBefore(H),Vn.setEndAfter(H),ln(Ke,Oy(Ke,Vn,re),!0)}}else ln(Ke,H,!0);else!Re||!Mf(be)||g2(r).length?(ct.setRng(Wl(ct.getRng())),K0(r,()=>{y2(r,(Vn,Rn)=>{const qn=Rn?Vn:Oy(Ke,Vn,re);ln(Ke,qn,!1)})},q),r.nodeChanged()):Tz(r,g,B),Rz(r.formatter,g).each(Vn=>{ye(T7(r.selection),Rn=>jz(Ke,Rn,Vn,B))});que(g,r)}Um(r,g,H,B)},N7=(r,g,B,H)=>{(H||r.selection.isEditable())&&SY(r,g,B,H)},nC=r=>_t(r,"vars"),Qz=(r,g)=>{r.set({}),g.on("NodeChange",B=>{$5(g,B.element,r.get())}),g.on("FormatApply FormatRemove",B=>{const H=Y.from(B.node).map(re=>b2(re)?re:re.startContainer).bind(re=>ne(re)?Y.some(re):Y.from(re.parentElement)).getOrThunk(()=>Hz(g));$5(g,H,r.get())})},Hz=r=>r.selection.getStart(),Zz=(r,g,B,H,re)=>ze(g,Ke=>{const ct=r.formatter.matchNode(Ke,B,re??{},H);return!M(ct)},Ke=>v7(r,Ke,B)?!0:H?!1:E(r.formatter.matchNode(Ke,B,re,!0))),qz=(r,g)=>{const B=g??Hz(r);return Te(x2(r.dom,B),H=>ne(H)&&!dt(H))},$5=(r,g,B)=>{const H=qz(r,g);Ge(B,(re,be)=>{const Re=Ke=>{const ct=Zz(r,H,be,Ke.similar,nC(Ke)?Ke.vars:void 0),kt=ct.isSome();if(Ke.state.get()!==kt){Ke.state.set(kt);const Wt=ct.getOr(g);nC(Ke)?Ke.callback(kt,{node:Wt,format:be,parents:H}):ye(Ke.callbacks,Jt=>Jt(kt,{node:Wt,format:be,parents:H}))}};ye([re.withSimilar,re.withoutSimilar],Re),ye(re.withVars,Re)})},Jb=(r,g,B,H,re,be)=>{const Re=g.get();ye(B.split(","),Ke=>{const ct=Ct(Re,Ke).getOrThunk(()=>{const Wt={withSimilar:{state:mr(!1),similar:!0,callbacks:[]},withoutSimilar:{state:mr(!1),similar:!1,callbacks:[]},withVars:[]};return Re[Ke]=Wt,Wt}),kt=()=>{const Wt=qz(r);return Zz(r,Wt,Ke,re,be).isSome()};if(M(be)){const Wt=re?ct.withSimilar:ct.withoutSimilar;Wt.callbacks.push(H),Wt.callbacks.length===1&&Wt.state.set(kt())}else ct.withVars.push({state:mr(kt()),similar:re,vars:be,callback:H})}),g.set(Re)},kY=(r,g,B)=>{const H=r.get();ye(g.split(","),re=>Ct(H,re).each(be=>{H[re]={withSimilar:{...be.withSimilar,callbacks:Te(be.withSimilar.callbacks,Re=>Re!==B)},withoutSimilar:{...be.withoutSimilar,callbacks:Te(be.withoutSimilar.callbacks,Re=>Re!==B)},withVars:Te(be.withVars,Re=>Re.callback!==B)}})),r.set(H)},$7=(r,g,B,H,re,be)=>(Jb(r,g,B,H,re,be),{unbind:()=>kY(g,B,H)}),Fu=(r,g,B,H)=>{const re=r.formatter.get(g);re&&(y7(r,g,B,H)&&(!("toggle"in re[0])||re[0].toggle)?B7(r,g,B,H):N7(r,g,B,H))},rC=mo.explode,oC=()=>{const r={};return{addFilter:(re,be)=>{ye(rC(re),Re=>{_t(r,Re)||(r[Re]={name:Re,callbacks:[]}),r[Re].callbacks.push(be)})},getFilters:()=>Gt(r),removeFilter:(re,be)=>{ye(rC(re),Re=>{if(_t(r,Re))if(E(be)){const Ke=r[Re],ct=Te(Ke.callbacks,kt=>kt!==be);ct.length>0?Ke.callbacks=ct:delete r[Re]}else delete r[Re]})}}},ex=(r,g)=>{ye(g,B=>{r.attr(B,null)})},Wz=(r,g,B)=>{r.addNodeFilter("font",H=>{ye(H,re=>{const be=g.parse(re.attr("style")),Re=re.attr("color"),Ke=re.attr("face"),ct=re.attr("size");Re&&(be.color=Re),Ke&&(be["font-family"]=Ke),ct&&zr(ct).each(kt=>{be["font-size"]=B[kt-1]}),re.name="span",re.attr("style",g.serialize(be)),ex(re,["color","face","size"])})})},Yz=(r,g,B)=>{r.addNodeFilter("strike",H=>{const re=g.type!=="html4";ye(H,be=>{if(re)be.name="s";else{const Re=B.parse(be.attr("style"));Re["text-decoration"]="line-through",be.name="span",be.attr("style",B.serialize(Re))}})})},V5=(r,g,B)=>{var H;const re=I_();g.convert_fonts_to_spans&&Wz(r,re,mo.explode((H=g.font_size_legacy_values)!==null&&H!==void 0?H:"")),Yz(r,B,re)},TY=(r,g,B)=>{g.inline_styles&&V5(r,g,B)},CY=r=>fetch(r).then(g=>g.ok?g.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${r} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),G3=r=>{const g=/([a-z0-9+\/=\s]+)/i.exec(r);return g?g[1]:""},V7=r=>{const[g,...B]=r.split(","),H=B.join(","),re=/data:([^/]+\/[^;]+)(;.+)?/.exec(g);if(re){const be=re[2]===";base64",Re=be?G3(H):decodeURIComponent(H);return Y.some({type:re[1],data:Re,base64Encoded:be})}else return Y.none()},P2=(r,g,B=!0)=>{let H=g;if(B)try{H=atob(g)}catch{return Y.none()}const re=new Uint8Array(H.length);for(let be=0;benew Promise((g,B)=>{V7(r).bind(({type:H,data:re,base64Encoded:be})=>P2(H,re,be)).fold(()=>B("Invalid data URI"),g)}),R2=r=>xr(r,"blob:")?CY(r):xr(r,"data:")?AY(r):Promise.reject("Unknown URI format"),Xz=r=>new Promise((g,B)=>{const H=new FileReader;H.onloadend=()=>{g(H.result)},H.onerror=()=>{var re;B((re=H.error)===null||re===void 0?void 0:re.message)},H.readAsDataURL(r)});let d0=0;const U5=r=>(r||"blobid")+d0++,iC=(r,g,B)=>V7(r).bind(({data:H,type:re,base64Encoded:be})=>{if(g&&!be)return Y.none();{const Re=be?H:btoa(H);return B(Re,re)}}),aC=(r,g,B)=>{const H=r.create(U5(),g,B);return r.add(H),H},Gz=(r,g,B=!1)=>iC(g,B,(H,re)=>Y.from(r.getByData(H,re)).orThunk(()=>P2(re,H).map(be=>aC(r,be,H)))),sC=(r,g)=>{const B=()=>Promise.reject("Invalid data URI");if(xr(g,"blob:")){const H=r.getByUri(g);return E(H)?Promise.resolve(H):R2(g).then(re=>Xz(re).then(be=>iC(be,!1,Re=>Y.some(aC(r,re,Re))).getOrThunk(B)))}else return xr(g,"data:")?Gz(r,g).fold(B,H=>Promise.resolve(H)):Promise.reject("Unknown image data format")},MY=/^(?:(?:(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)([A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*))(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?)$/,o1=r=>Y.from(r.match(MY)).bind(g=>Ze(g,1)).map(g=>xr(g,"www.")?g.substring(4):g),j5=(r,g)=>{Y.from(r.attr("src")).bind(o1).forall(B=>!ce(g,B))&&r.attr("sandbox","")},lC=(r,g)=>xr(r,`${g}/`),U7=r=>M(r)?"iframe":lC(r,"image")?"img":lC(r,"video")?"video":lC(r,"audio")?"audio":"iframe",j7=({type:r,src:g,width:B,height:H}={},re,be)=>{const Re=U7(r),Ke=new yp(Re,1);return Ke.attr(Re==="audio"?{src:g}:{src:g,width:B,height:H}),(Re==="audio"||Re==="video")&&Ke.attr("controls",""),Re==="iframe"&&re&&j5(Ke,be),Ke},$w=r=>E(r.attr("data-mce-bogus")),Q7=r=>r.attr("src")===fr.transparentSrc||E(r.attr("data-mce-placeholder")),EY=(r,g)=>{const{blob_cache:B}=g;if(B){const H=re=>{const be=re.attr("src");Q7(re)||$w(re)||T(be)||Gz(B,be,!0).each(Re=>{re.attr("src",Re.blobUri())})};r.addAttributeFilter("src",re=>ye(re,H))}},Kz=(r,g)=>{var B,H;const re=r.schema;r.addAttributeFilter("href",ct=>{let kt=ct.length;const Wt=ln=>ln.split(" ").filter(Vn=>Vn.length>0).concat(["noopener"]).sort().join(" "),Jt=ln=>{const kn=ln?mo.trim(ln):"";return/\b(noopener)\b/g.test(kn)?kn:Wt(kn)};if(!g.allow_unsafe_link_target)for(;kt--;){const ln=ct[kt];ln.name==="a"&&ln.attr("target")==="_blank"&&ln.attr("rel",Jt(ln.attr("rel")))}}),g.allow_html_in_named_anchor||r.addAttributeFilter("id,name",ct=>{let kt=ct.length,Wt,Jt,ln,kn;for(;kt--;)if(kn=ct[kt],kn.name==="a"&&kn.firstChild&&!kn.attr("href"))for(ln=kn.parent,Wt=kn.lastChild;Wt&&ln;)Jt=Wt.prev,ln.insert(Wt,kn),Wt=Jt}),g.fix_list_elements&&r.addNodeFilter("ul,ol",ct=>{let kt=ct.length,Wt,Jt;for(;kt--;)if(Wt=ct[kt],Jt=Wt.parent,Jt&&(Jt.name==="ul"||Jt.name==="ol"))if(Wt.prev&&Wt.prev.name==="li")Wt.prev.append(Wt);else{const ln=new yp("li",1);ln.attr("style","list-style-type: none"),Wt.wrap(ln)}});const be=re.getValidClasses();g.validate&&be&&r.addAttributeFilter("class",ct=>{var kt;let Wt=ct.length;for(;Wt--;){const Jt=ct[Wt],ln=(kt=Jt.attr("class"))!==null&&kt!==void 0?kt:"",kn=mo.explode(ln," ");let Vn="";for(let Rn=0;Rnye(ct,kt=>{kt.replace(j7({type:kt.attr("type"),src:kt.name==="object"?kt.attr("data"):kt.attr("src"),width:kt.attr("width"),height:kt.attr("height")},Re,Ke))})),Re&&r.addNodeFilter("iframe",ct=>ye(ct,kt=>j5(kt,Ke)))},{entries:Jz,setPrototypeOf:eF,isFrozen:PY,getPrototypeOf:RY,getOwnPropertyDescriptor:Q5}=Object;let{freeze:qm,seal:i1,create:H7}=Object,{apply:Z7,construct:cC}=typeof Reflect<"u"&&Reflect;Z7||(Z7=function(g,B,H){return g.apply(B,H)}),qm||(qm=function(g){return g}),i1||(i1=function(g){return g}),cC||(cC=function(g,B){return new g(...B)});const tF=a1(Array.prototype.forEach),LY=a1(Array.prototype.pop),H5=a1(Array.prototype.push),uC=a1(String.prototype.toLowerCase),q7=a1(String.prototype.toString),IY=a1(String.prototype.match),vv=a1(String.prototype.replace),DY=a1(String.prototype.indexOf),BY=a1(String.prototype.trim),h0=a1(RegExp.prototype.test),Z5=zY(TypeError);function a1(r){return function(g){for(var B=arguments.length,H=new Array(B>1?B-1:0),re=1;re/gm),VY=i1(/\${[\w\W]*}/gm),UY=i1(/^data-[\-\w.\u00B7-\uFFFF]/),jY=i1(/^aria-[\-\w]+$/),hC=i1(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aF=i1(/^(?:\w+script|data):/i),Yue=i1(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K3=i1(/^html$/i);var sF=Object.freeze({__proto__:null,MUSTACHE_EXPR:NY,ERB_EXPR:$Y,TMPLIT_EXPR:VY,DATA_ATTR:UY,ARIA_ATTR:jY,IS_ALLOWED_URI:hC,IS_SCRIPT_OR_DATA:aF,ATTR_WHITESPACE:Yue,DOCTYPE_NAME:K3});const lF=()=>typeof window>"u"?null:window,QY=function(g,B){if(typeof g!="object"||typeof g.createPolicy!="function")return null;let H=null;const re="data-tt-policy-suffix";B&&B.hasAttribute(re)&&(H=B.getAttribute(re));const be="dompurify"+(H?"#"+H:"");try{return g.createPolicy(be,{createHTML(Re){return Re},createScriptURL(Re){return Re}})}catch{return console.warn("TrustedTypes policy "+be+" could not be created."),null}};function q5(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lF();const g=Ga=>q5(Ga);if(g.version="3.0.5",g.removed=[],!r||!r.document||r.document.nodeType!==9)return g.isSupported=!1,g;const B=r.document,H=B.currentScript;let{document:re}=r;const{DocumentFragment:be,HTMLTemplateElement:Re,Node:Ke,Element:ct,NodeFilter:kt,NamedNodeMap:Wt=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:Jt,DOMParser:ln,trustedTypes:kn}=r,Vn=ct.prototype,Rn=fC(Vn,"cloneNode"),qn=fC(Vn,"nextSibling"),pr=fC(Vn,"childNodes"),Tr=fC(Vn,"parentNode");if(typeof Re=="function"){const Ga=re.createElement("template");Ga.content&&Ga.content.ownerDocument&&(re=Ga.content.ownerDocument)}let wr,Ur="";const{implementation:wo,createNodeIterator:jo,createDocumentFragment:di,getElementsByTagName:lo}=re,{importNode:eo}=B;let xo={};g.isSupported=typeof Jz=="function"&&typeof Tr=="function"&&wo&&wo.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:bi,ERB_EXPR:Bi,TMPLIT_EXPR:$a,DATA_ATTR:Ia,ARIA_ATTR:Us,IS_SCRIPT_OR_DATA:sl,ATTR_WHITESPACE:nu}=sF;let{IS_ALLOWED_URI:jd}=sF,ml=null;const Wo=Sl({},[...Uw,...W7,...Y7,...X7,...rF]);let Ei=null;const ws=Sl({},[...oF,...G7,...iF,...dC]);let ii=Object.seal(Object.create(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}})),Qi=null,Qa=null,ci=!0,Va=!0,Xa=!1,If=!0,el=!1,Yu=!1,Pg=!1,m1=!1,Dh=!1,om=!1,Rg=!1,xp=!0,Lg=!1;const zi="user-content-";let ss=!0,Rc=!1,cu={},Nu=null;const nd=Sl({},["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"]);let wu=null;const Ou=Sl({},["audio","video","img","source","image","track"]);let fh=null;const Ig=Sl({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xm="http://www.w3.org/1998/Math/MathML",x0="http://www.w3.org/2000/svg",Dg="http://www.w3.org/1999/xhtml";let ux=Dg,Z2=!1,hO=null;const xA=Sl({},[Xm,x0,Dg],q7);let fx;const $k=["application/xhtml+xml","text/html"],lQ="text/html";let Bh,pO=null;const wL=re.createElement("form"),OL=function(no){return no instanceof RegExp||no instanceof Function},kv=function(no){if(!(pO&&pO===no)){if((!no||typeof no!="object")&&(no={}),no=Vw(no),fx=$k.indexOf(no.PARSER_MEDIA_TYPE)===-1?fx=lQ:fx=no.PARSER_MEDIA_TYPE,Bh=fx==="application/xhtml+xml"?q7:uC,ml="ALLOWED_TAGS"in no?Sl({},no.ALLOWED_TAGS,Bh):Wo,Ei="ALLOWED_ATTR"in no?Sl({},no.ALLOWED_ATTR,Bh):ws,hO="ALLOWED_NAMESPACES"in no?Sl({},no.ALLOWED_NAMESPACES,q7):xA,fh="ADD_URI_SAFE_ATTR"in no?Sl(Vw(Ig),no.ADD_URI_SAFE_ATTR,Bh):Ig,wu="ADD_DATA_URI_TAGS"in no?Sl(Vw(Ou),no.ADD_DATA_URI_TAGS,Bh):Ou,Nu="FORBID_CONTENTS"in no?Sl({},no.FORBID_CONTENTS,Bh):nd,Qi="FORBID_TAGS"in no?Sl({},no.FORBID_TAGS,Bh):{},Qa="FORBID_ATTR"in no?Sl({},no.FORBID_ATTR,Bh):{},cu="USE_PROFILES"in no?no.USE_PROFILES:!1,ci=no.ALLOW_ARIA_ATTR!==!1,Va=no.ALLOW_DATA_ATTR!==!1,Xa=no.ALLOW_UNKNOWN_PROTOCOLS||!1,If=no.ALLOW_SELF_CLOSE_IN_ATTR!==!1,el=no.SAFE_FOR_TEMPLATES||!1,Yu=no.WHOLE_DOCUMENT||!1,Dh=no.RETURN_DOM||!1,om=no.RETURN_DOM_FRAGMENT||!1,Rg=no.RETURN_TRUSTED_TYPE||!1,m1=no.FORCE_BODY||!1,xp=no.SANITIZE_DOM!==!1,Lg=no.SANITIZE_NAMED_PROPS||!1,ss=no.KEEP_CONTENT!==!1,Rc=no.IN_PLACE||!1,jd=no.ALLOWED_URI_REGEXP||hC,ux=no.NAMESPACE||Dg,ii=no.CUSTOM_ELEMENT_HANDLING||{},no.CUSTOM_ELEMENT_HANDLING&&OL(no.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ii.tagNameCheck=no.CUSTOM_ELEMENT_HANDLING.tagNameCheck),no.CUSTOM_ELEMENT_HANDLING&&OL(no.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ii.attributeNameCheck=no.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),no.CUSTOM_ELEMENT_HANDLING&&typeof no.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ii.allowCustomizedBuiltInElements=no.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),el&&(Va=!1),om&&(Dh=!0),cu&&(ml=Sl({},[...rF]),Ei=[],cu.html===!0&&(Sl(ml,Uw),Sl(Ei,oF)),cu.svg===!0&&(Sl(ml,W7),Sl(Ei,G7),Sl(Ei,dC)),cu.svgFilters===!0&&(Sl(ml,Y7),Sl(Ei,G7),Sl(Ei,dC)),cu.mathMl===!0&&(Sl(ml,X7),Sl(Ei,iF),Sl(Ei,dC))),no.ADD_TAGS&&(ml===Wo&&(ml=Vw(ml)),Sl(ml,no.ADD_TAGS,Bh)),no.ADD_ATTR&&(Ei===ws&&(Ei=Vw(Ei)),Sl(Ei,no.ADD_ATTR,Bh)),no.ADD_URI_SAFE_ATTR&&Sl(fh,no.ADD_URI_SAFE_ATTR,Bh),no.FORBID_CONTENTS&&(Nu===nd&&(Nu=Vw(Nu)),Sl(Nu,no.FORBID_CONTENTS,Bh)),ss&&(ml["#text"]=!0),Yu&&Sl(ml,["html","head","body"]),ml.table&&(Sl(ml,["tbody"]),delete Qi.tbody),no.TRUSTED_TYPES_POLICY){if(typeof no.TRUSTED_TYPES_POLICY.createHTML!="function")throw Z5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof no.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Z5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');wr=no.TRUSTED_TYPES_POLICY,Ur=wr.createHTML("")}else wr===void 0&&(wr=QY(kn,H)),wr!==null&&typeof Ur=="string"&&(Ur=wr.createHTML(""));qm&&qm(no),pO=no}},q2=Sl({},["mi","mo","mn","ms","mtext"]),Yr=Sl({},["foreignobject","desc","title","annotation-xml"]),Gr=Sl({},["title","style","font","a","script"]),Xo=Sl({},W7);Sl(Xo,Y7),Sl(Xo,FY);const Vo=Sl({},X7);Sl(Vo,nF);const Gi=function(no){let s=Tr(no);(!s||!s.tagName)&&(s={namespaceURI:ux,tagName:"template"});const F=uC(no.tagName),Z=uC(s.tagName);return hO[no.namespaceURI]?no.namespaceURI===x0?s.namespaceURI===Dg?F==="svg":s.namespaceURI===Xm?F==="svg"&&(Z==="annotation-xml"||q2[Z]):!!Xo[F]:no.namespaceURI===Xm?s.namespaceURI===Dg?F==="math":s.namespaceURI===x0?F==="math"&&Yr[Z]:!!Vo[F]:no.namespaceURI===Dg?s.namespaceURI===x0&&!Yr[Z]||s.namespaceURI===Xm&&!q2[Z]?!1:!Vo[F]&&(Gr[F]||!Xo[F]):!!(fx==="application/xhtml+xml"&&hO[no.namespaceURI]):!1},ts=function(no){H5(g.removed,{element:no});try{no.parentNode.removeChild(no)}catch{no.remove()}},Lc=function(no,s){try{H5(g.removed,{attribute:s.getAttributeNode(no),from:s})}catch{H5(g.removed,{attribute:null,from:s})}if(s.removeAttribute(no),no==="is"&&!Ei[no])if(Dh||om)try{ts(s)}catch{}else try{s.setAttribute(no,"")}catch{}},_0=function(no){let s,F;if(m1)no=""+no;else{const we=IY(no,/^[\r\n\t ]+/);F=we&&we[0]}fx==="application/xhtml+xml"&&ux===Dg&&(no=''+no+"");const Z=wr?wr.createHTML(no):no;if(ux===Dg)try{s=new ln().parseFromString(Z,fx)}catch{}if(!s||!s.documentElement){s=wo.createDocument(ux,"template",null);try{s.documentElement.innerHTML=Z2?Ur:Z}catch{}}const ue=s.body||s.documentElement;return no&&F&&ue.insertBefore(re.createTextNode(F),ue.childNodes[0]||null),ux===Dg?lo.call(s,Yu?"html":"body")[0]:Yu?s.documentElement:ue},_A=function(no){return jo.call(no.ownerDocument||no,no,kt.SHOW_ELEMENT|kt.SHOW_COMMENT|kt.SHOW_TEXT,null,!1)},Noe=function(no){return no instanceof Jt&&(typeof no.nodeName!="string"||typeof no.textContent!="string"||typeof no.removeChild!="function"||!(no.attributes instanceof Wt)||typeof no.removeAttribute!="function"||typeof no.setAttribute!="function"||typeof no.namespaceURI!="string"||typeof no.insertBefore!="function"||typeof no.hasChildNodes!="function")},wA=function(no){return typeof Ke=="object"?no instanceof Ke:no&&typeof no=="object"&&typeof no.nodeType=="number"&&typeof no.nodeName=="string"},dx=function(no,s,F){xo[no]&&tF(xo[no],Z=>{Z.call(g,s,F,pO)})},cQ=function(no){let s;if(dx("beforeSanitizeElements",no,null),Noe(no))return ts(no),!0;const F=Bh(no.nodeName);if(dx("uponSanitizeElement",no,{tagName:F,allowedTags:ml}),no.hasChildNodes()&&!wA(no.firstElementChild)&&(!wA(no.content)||!wA(no.content.firstElementChild))&&h0(/<[/\w]/g,no.innerHTML)&&h0(/<[/\w]/g,no.textContent))return ts(no),!0;if(!ml[F]||Qi[F]){if(!Qi[F]&&kL(F)&&(ii.tagNameCheck instanceof RegExp&&h0(ii.tagNameCheck,F)||ii.tagNameCheck instanceof Function&&ii.tagNameCheck(F)))return!1;if(ss&&!Nu[F]){const Z=Tr(no)||no.parentNode,ue=pr(no)||no.childNodes;if(ue&&Z){const we=ue.length;for(let Be=we-1;Be>=0;--Be)Z.insertBefore(Rn(ue[Be],!0),qn(no))}}return ts(no),!0}return no instanceof ct&&!Gi(no)||(F==="noscript"||F==="noembed"||F==="noframes")&&h0(/<\/no(script|embed|frames)/i,no.innerHTML)?(ts(no),!0):(el&&no.nodeType===3&&(s=no.textContent,s=vv(s,bi," "),s=vv(s,Bi," "),s=vv(s,$a," "),no.textContent!==s&&(H5(g.removed,{element:no.cloneNode()}),no.textContent=s)),dx("afterSanitizeElements",no,null),!1)},SL=function(no,s,F){if(xp&&(s==="id"||s==="name")&&(F in re||F in wL))return!1;if(!(Va&&!Qa[s]&&h0(Ia,s))){if(!(ci&&h0(Us,s))){if(!Ei[s]||Qa[s]){if(!(kL(no)&&(ii.tagNameCheck instanceof RegExp&&h0(ii.tagNameCheck,no)||ii.tagNameCheck instanceof Function&&ii.tagNameCheck(no))&&(ii.attributeNameCheck instanceof RegExp&&h0(ii.attributeNameCheck,s)||ii.attributeNameCheck instanceof Function&&ii.attributeNameCheck(s))||s==="is"&&ii.allowCustomizedBuiltInElements&&(ii.tagNameCheck instanceof RegExp&&h0(ii.tagNameCheck,F)||ii.tagNameCheck instanceof Function&&ii.tagNameCheck(F))))return!1}else if(!fh[s]){if(!h0(jd,vv(F,nu,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&no!=="script"&&DY(F,"data:")===0&&wu[no])){if(!(Xa&&!h0(sl,vv(F,nu,"")))){if(F)return!1}}}}}}return!0},kL=function(no){return no.indexOf("-")>0},uQ=function(no){let s,F,Z,ue;dx("beforeSanitizeAttributes",no,null);const{attributes:we}=no;if(!we)return;const Be={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ei};for(ue=we.length;ue--;){s=we[ue];const{name:qe,namespaceURI:ft}=s;F=qe==="value"?s.value:BY(s.value);const gt=F;if(Z=Bh(qe),Be.attrName=Z,Be.attrValue=F,Be.keepAttr=!0,Be.forceKeepAttr=void 0,dx("uponSanitizeAttribute",no,Be),F=Be.attrValue,Be.forceKeepAttr)continue;if(!Be.keepAttr){Lc(qe,no);continue}if(!If&&h0(/\/>/i,F)){Lc(qe,no);continue}el&&(F=vv(F,bi," "),F=vv(F,Bi," "),F=vv(F,$a," "));const At=Bh(no.nodeName);if(!SL(At,Z,F)){Lc(qe,no);continue}if(Lg&&(Z==="id"||Z==="name")&&(Lc(qe,no),F=zi+F),wr&&typeof kn=="object"&&typeof kn.getAttributeType=="function"&&!ft)switch(kn.getAttributeType(At,Z)){case"TrustedHTML":{F=wr.createHTML(F);break}case"TrustedScriptURL":{F=wr.createScriptURL(F);break}}if(F!==gt)try{ft?no.setAttributeNS(ft,qe,F):no.setAttribute(qe,F)}catch{Lc(qe,no)}}dx("afterSanitizeAttributes",no,null)},$oe=function Ga(no){let s;const F=_A(no);for(dx("beforeSanitizeShadowDOM",no,null);s=F.nextNode();)dx("uponSanitizeShadowNode",s,null),!cQ(s)&&(s.content instanceof be&&Ga(s.content),uQ(s));dx("afterSanitizeShadowDOM",no,null)};return g.sanitize=function(Ga){let no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,F,Z,ue;if(Z2=!Ga,Z2&&(Ga=""),typeof Ga!="string"&&!wA(Ga))if(typeof Ga.toString=="function"){if(Ga=Ga.toString(),typeof Ga!="string")throw Z5("dirty is not a string, aborting")}else throw Z5("toString is not a function");if(!g.isSupported)return Ga;if(Pg||kv(no),g.removed=[],typeof Ga=="string"&&(Rc=!1),Rc){if(Ga.nodeName){const qe=Bh(Ga.nodeName);if(!ml[qe]||Qi[qe])throw Z5("root node is forbidden and cannot be sanitized in-place")}}else if(Ga instanceof Ke)s=_0(""),F=s.ownerDocument.importNode(Ga,!0),F.nodeType===1&&F.nodeName==="BODY"||F.nodeName==="HTML"?s=F:s.appendChild(F);else{if(!Dh&&!el&&!Yu&&Ga.indexOf("<")===-1)return wr&&Rg?wr.createHTML(Ga):Ga;if(s=_0(Ga),!s)return Dh?null:Rg?Ur:""}s&&m1&&ts(s.firstChild);const we=_A(Rc?Ga:s);for(;Z=we.nextNode();)cQ(Z)||(Z.content instanceof be&&$oe(Z.content),uQ(Z));if(Rc)return Ga;if(Dh){if(om)for(ue=di.call(s.ownerDocument);s.firstChild;)ue.appendChild(s.firstChild);else ue=s;return(Ei.shadowroot||Ei.shadowrootmode)&&(ue=eo.call(B,ue,!0)),ue}let Be=Yu?s.outerHTML:s.innerHTML;return Yu&&ml["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&h0(K3,s.ownerDocument.doctype.name)&&(Be=" -`+Be),el&&(Be=vv(Be,bi," "),Be=vv(Be,Bi," "),Be=vv(Be,$a," ")),wr&&Rg?wr.createHTML(Be):Be},g.setConfig=function(Ga){kv(Ga),Pg=!0},g.clearConfig=function(){pO=null,Pg=!1},g.isValidAttribute=function(Ga,no,s){pO||kv({});const F=Bh(Ga),Z=Bh(no);return SL(F,Z,s)},g.addHook=function(Ga,no){typeof no=="function"&&(xo[Ga]=xo[Ga]||[],H5(xo[Ga],no))},g.removeHook=function(Ga){if(xo[Ga])return LY(xo[Ga])},g.removeHooks=function(Ga){xo[Ga]&&(xo[Ga]=[])},g.removeAllHooks=function(){xo={}},g}var pC=q5();const df=mo.each,Xue=mo.trim,Gue=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],Kue={ftp:21,http:80,https:443,mailto:25},Jue=["img","video"],s1=(r,g)=>E(r)?!r:E(g)?!ce(Jue,g):!0,mC=r=>{try{return decodeURIComponent(r)}catch{return unescape(r)}},tx=(r,g,B)=>{const H=mC(g).replace(/\s/g,"");return r.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(H)?!0:r.allow_html_data_urls?!1:/^data:image\//i.test(H)?s1(r.allow_svg_data_urls,B)&&/^data:image\/svg\+xml/i.test(H):/^data:/i.test(H)};class Ih{static parseDataUri(g){let B;const H=decodeURIComponent(g).split(","),re=/data:([^;]+)/.exec(H[0]);return re&&(B=re[1]),{type:B,data:H[1]}}static isDomSafe(g,B,H={}){if(H.allow_script_urls)return!0;{const re=up.decode(g).replace(/[\s\u0000-\u001F]+/g,"");return!tx(H,re,B)}}static getDocumentBaseUrl(g){var B;let H;return g.protocol.indexOf("http")!==0&&g.protocol!=="file:"?H=(B=g.href)!==null&&B!==void 0?B:"":H=g.protocol+"//"+g.host+g.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/")),H}constructor(g,B={}){this.path="",this.directory="",g=Xue(g),this.settings=B;const H=B.base_uri,re=this;if(/^([\w\-]+):([^\/]{2})/i.test(g)||/^\s*#/.test(g)){re.source=g;return}const be=g.indexOf("//")===0;if(g.indexOf("/")===0&&!be&&(g=(H&&H.protocol||"http")+"://mce_host"+g),!/^[\w\-]*:?\/\//.test(g)){const Ke=H?H.path:new Ih(document.location.href).directory;if((H==null?void 0:H.protocol)==="")g="//mce_host"+re.toAbsPath(Ke,g);else{const ct=/([^#?]*)([#?]?.*)/.exec(g);ct&&(g=(H&&H.protocol||"http")+"://mce_host"+re.toAbsPath(Ke,ct[1])+ct[2])}}g=g.replace(/@@/g,"(mce_at)");const Re=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(g);Re&&df(Gue,(Ke,ct)=>{let kt=Re[ct];kt&&(kt=kt.replace(/\(mce_at\)/g,"@@")),re[Ke]=kt}),H&&(re.protocol||(re.protocol=H.protocol),re.userInfo||(re.userInfo=H.userInfo),!re.port&&re.host==="mce_host"&&(re.port=H.port),(!re.host||re.host==="mce_host")&&(re.host=H.host),re.source=""),be&&(re.protocol="")}setPath(g){const B=/^(.*?)\/?(\w+)?$/.exec(g);B&&(this.path=B[0],this.directory=B[1],this.file=B[2]),this.source="",this.getURI()}toRelative(g){if(g==="./")return g;const B=new Ih(g,{base_uri:this});if(B.host!=="mce_host"&&this.host!==B.host&&B.host||this.port!==B.port||this.protocol!==B.protocol&&B.protocol!=="")return B.getURI();const H=this.getURI(),re=B.getURI();if(H===re||H.charAt(H.length-1)==="/"&&H.substr(0,H.length-1)===re)return H;let be=this.toRelPath(this.path,B.path);return B.query&&(be+="?"+B.query),B.anchor&&(be+="#"+B.anchor),be}toAbsolute(g,B){const H=new Ih(g,{base_uri:this});return H.getURI(B&&this.isSameOrigin(H))}isSameOrigin(g){if(this.host==g.host&&this.protocol==g.protocol){if(this.port==g.port)return!0;const B=this.protocol?Kue[this.protocol]:null;if(B&&(this.port||B)==(g.port||B))return!0}return!1}toRelPath(g,B){let H=0,re="",be,Re;const Ke=g.substring(0,g.lastIndexOf("/")).split("/"),ct=B.split("/");if(Ke.length>=ct.length){for(be=0,Re=Ke.length;be=ct.length||Ke[be]!==ct[be]){H=be+1;break}}if(Ke.length=Ke.length||Ke[be]!==ct[be]){H=be+1;break}}if(H===1)return B;for(be=0,Re=Ke.length-(H-1);be{Jt&&Ke.push(Jt)});const ct=[];for(let Jt=Re.length-1;Jt>=0;Jt--)if(!(Re[Jt].length===0||Re[Jt]===".")){if(Re[Jt]===".."){H++;continue}if(H>0){H--;continue}ct.push(Re[Jt])}const kt=Ke.length-H;let Wt;return kt<=0?Wt=ke(ct).join("/"):Wt=Ke.slice(0,kt).join("/")+"/"+ke(ct).join("/"),Wt.indexOf("/")!==0&&(Wt="/"+Wt),re&&Wt.lastIndexOf("/")!==Wt.length-1&&(Wt+=re),Wt}getURI(g=!1){let B;return(!this.source||g)&&(B="",g||(this.protocol?B+=this.protocol+"://":B+="//",this.userInfo&&(B+=this.userInfo+"@"),this.host&&(B+=this.host),this.port&&(B+=":"+this.port)),this.path&&(B+=this.path),this.query&&(B+="?"+this.query),this.anchor&&(B+="#"+this.anchor),this.source=B),this.source}}const HY=mo.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),K7="data-mce-type";let jw=0;const Qw=(r,g,B,H,re)=>{var be,Re,Ke,ct;const kt=g.validate,Wt=B.getSpecialElements();r.nodeType===gm&&!g.allow_conditional_comments&&/^\[if/i.test((be=r.nodeValue)!==null&&be!==void 0?be:"")&&(r.nodeValue=" "+r.nodeValue);const Jt=(Re=re==null?void 0:re.tagName)!==null&&Re!==void 0?Re:r.nodeName.toLowerCase();if(H!=="html"&&B.isValid(H)){E(re)&&(re.allowedTags[Jt]=!0);return}if(r.nodeType!==Cu||Jt==="body")return;const ln=sr.fromDom(r),kn=Vf(ln,K7),Vn=uc(ln,"data-mce-bogus");if(!kn&&v(Vn)){Vn==="all"?ja(ln):vu(ln);return}const Rn=B.getElementRule(Jt);if(kt&&!Rn){_t(Wt,Jt)?ja(ln):vu(ln);return}else E(re)&&(re.allowedTags[Jt]=!0);if(kt&&Rn&&!kn){if(ye((Ke=Rn.attributesForced)!==null&&Ke!==void 0?Ke:[],qn=>{Es(ln,qn.name,qn.value==="{$uid}"?`mce_${jw++}`:qn.value)}),ye((ct=Rn.attributesDefault)!==null&&ct!==void 0?ct:[],qn=>{Vf(ln,qn.name)||Es(ln,qn.name,qn.value==="{$uid}"?`mce_${jw++}`:qn.value)}),Rn.attributesRequired&&!de(Rn.attributesRequired,qn=>Vf(ln,qn))){vu(ln);return}if(Rn.removeEmptyAttrs&&sd(ln)){vu(ln);return}Rn.outputName&&Rn.outputName!==Jt&&I1(ln,Rn.outputName)}},J3=(r,g,B,H,re)=>{const be=r.tagName.toLowerCase(),{attrName:Re,attrValue:Ke}=re;re.keepAttr=gC(g,B,H,be,Re,Ke),re.keepAttr?(re.allowedAttributes[Re]=!0,J7(Re,B)&&(re.attrValue=Re),g.allow_svg_data_urls&&xr(Ke,"data:image/svg+xml")&&(re.forceKeepAttr=!0)):vC(r,Re)&&(re.forceKeepAttr=!0)},gC=(r,g,B,H,re,be)=>B!=="html"&&!ds(H)?!0:!(re in HY&&tx(r,be,H))&&(!r.validate||g.isValid(H,re)||xr(re,"data-")||xr(re,"aria-")),vC=(r,g)=>r.hasAttribute(K7)&&(g==="id"||g==="class"||g==="style"),J7=(r,g)=>r in g.getBoolAttrs(),cF=(r,g,B,H)=>{const{attributes:re}=r;for(let be=re.length-1;be>=0;be--){const Re=re[be],Ke=Re.name,ct=Re.value;!gC(g,B,H,r.tagName.toLowerCase(),Ke,ct)&&!vC(r,Ke)?r.removeAttribute(Ke):J7(Ke,B)&&r.setAttribute(Ke,Ke)}},ZY=(r,g,B)=>{const H=pC();return H.addHook("uponSanitizeElement",(re,be)=>{Qw(re,r,g,B.track(re),be)}),H.addHook("uponSanitizeAttribute",(re,be)=>{J3(re,r,g,B.current(),be)}),H},qY=(r,g)=>{const H={...{IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]}};return H.PARSER_MEDIA_TYPE=g,r.allow_script_urls?H.ALLOWED_URI_REGEXP=/.*/:r.allow_html_data_urls&&(H.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),H},uF=r=>{const g=Rs(r);if(g==="svg"){const B=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(re=>`xlink:${re}`),H={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:B};pC().sanitize(r,H)}else if(g==="math"){const B={IN_PLACE:!0,USE_PROFILES:{mathMl:!0}};pC().sanitize(r,B)}else throw new Error("Not a namespace element")},WY=(r,g)=>{const B=ol();if(r.sanitize){const H=ZY(r,g,B);return{sanitizeHtmlElement:(be,Re)=>{H.sanitize(be,qY(r,Re)),H.removed=[],B.reset()},sanitizeNamespaceElement:uF}}else return{sanitizeHtmlElement:(be,Re)=>{const Ke=document.createNodeIterator(be,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let ct;for(;ct=Ke.nextNode();){const kt=B.track(ct);Qw(ct,r,g,kt),ne(ct)&&cF(ct,r,g,kt)}B.reset()},sanitizeNamespaceElement:k}},fF=mo.makeMap,dF=mo.extend,hF=(r,g,B,H)=>{const re=r.name,be=re in B&&re!=="title"&&re!=="textarea"&&re!=="noscript",Re=g.childNodes;for(let Ke=0,ct=Re.length;Ke{const H=[];for(let re=r,be=re;re;be=re,re=re.walk()){const Re=re;ye(g,Ke=>Ke(Re)),T(Re.parent)&&Re!==r?re=be:H.push(Re)}for(let re=H.length-1;re>=0;re--){const be=H[re];ye(B,Re=>Re(be))}},pF=(r,g,B,H)=>{const re=B.validate,be=g.getNonEmptyElements(),Re=g.getWhitespaceElements(),Ke=dF(fF("script,style,head,html,body,title,meta,param"),g.getBlockElements()),ct=db(g),kt=/[ \t\r\n]+/g,Wt=/^[ \t\r\n]+/,Jt=/[ \t\r\n]+$/,ln=Tr=>{let wr=Tr.parent;for(;E(wr);){if(wr.name in Re)return!0;wr=wr.parent}return!1},kn=Tr=>{let wr=Tr;for(;E(wr);){if(wr.name in ct)return V6(g,be,Re,wr);wr=wr.parent}return!1},Vn=Tr=>Tr.name in Ke||eh(g,Tr)||ds(Tr.name)&&Tr.parent===r,Rn=(Tr,wr)=>{const Ur=wr?Tr.prev:Tr.next;return E(Ur)||T(Tr.parent)?!1:Vn(Tr.parent)&&(Tr.parent!==r||H.isRootContent===!0)};return[Tr=>{var wr;if(Tr.type===3&&!ln(Tr)){let Ur=(wr=Tr.value)!==null&&wr!==void 0?wr:"";Ur=Ur.replace(kt," "),(Vd(Tr.prev,Vn)||Rn(Tr,!0))&&(Ur=Ur.replace(Wt,"")),Ur.length===0?Tr.remove():Tr.value=Ur}},Tr=>{var wr;if(Tr.type===1){const Ur=g.getElementRule(Tr.name);if(re&&Ur){const wo=V6(g,be,Re,Tr);Ur.paddInEmptyBlock&&wo&&kn(Tr)?$6(B,H,Vn,Tr):Ur.removeEmpty&&wo?Vn(Tr)?Tr.remove():Tr.unwrap():Ur.paddEmpty&&(wo||HW(Tr))&&$6(B,H,Vn,Tr)}}else if(Tr.type===3&&!ln(Tr)){let Ur=(wr=Tr.value)!==null&&wr!==void 0?wr:"";(Tr.next&&Vn(Tr.next)||Rn(Tr,!1))&&(Ur=Ur.replace(Jt,"")),Ur.length===0?Tr.remove():Tr.value=Ur}}]},XY=(r,g)=>{var B;const H=(B=g.forced_root_block)!==null&&B!==void 0?B:r.forced_root_block;return H===!1?"":H===!0?"p":H},Ry=(r={},g=Np())=>{const B=oC(),H=oC(),re={validate:!0,root_name:"body",sanitize:!0,...r},be=new DOMParser,Re=WY(re,g),Ke=(wr,Ur,wo="html")=>{const jo=wo==="xhtml"?"application/xhtml+xml":"text/html",di=_t(g.getSpecialElements(),Ur.toLowerCase()),lo=di?`<${Ur}>${wr}`:wr,eo=wo==="xhtml"?`${lo}`:`${lo}`,xo=be.parseFromString(eo,jo).body;return Re.sanitizeHtmlElement(xo,jo),di?xo.firstChild:xo},ct=B.addFilter,kt=B.getFilters,Wt=B.removeFilter,Jt=H.addFilter,ln=H.getFilters,kn=H.removeFilter,Vn=(wr,Ur)=>{vz(g,wr)&&Ur.push(wr)},Rn=(wr,Ur)=>{const wo=v(Ur.attr(K7)),jo=Ur.type===1&&!_t(wr,Ur.name)&&!eh(g,Ur)&&!ds(Ur.name);return Ur.type===3||jo&&!wo},qn=(wr,Ur)=>{const wo=dF(fF("script,style,head,html,body,title,meta,param"),g.getBlockElements()),jo=/^[ \t\r\n]+/,di=/[ \t\r\n]+$/;let lo=wr.firstChild,eo=null;const xo=bi=>{var Bi,$a;bi&&(lo=bi.firstChild,lo&&lo.type===3&&(lo.value=(Bi=lo.value)===null||Bi===void 0?void 0:Bi.replace(jo,"")),lo=bi.lastChild,lo&&lo.type===3&&(lo.value=($a=lo.value)===null||$a===void 0?void 0:$a.replace(di,"")))};if(g.isValidChild(wr.name,Ur.toLowerCase())){for(;lo;){const bi=lo.next;Rn(wo,lo)?(eo||(eo=new yp(Ur,1),eo.attr(re.forced_root_block_attrs),wr.insert(eo,lo)),eo.append(lo)):(xo(eo),eo=null),lo=bi}xo(eo)}},Tr={schema:g,addAttributeFilter:Jt,getAttributeFilters:ln,removeAttributeFilter:kn,addNodeFilter:ct,getNodeFilters:kt,removeNodeFilter:Wt,parse:(wr,Ur={})=>{var wo;const jo=re.validate,di=(wo=Ur.context)!==null&&wo!==void 0?wo:re.root_name,lo=Ke(wr,di,Ur.format);qf(g,lo);const eo=new yp(di,11);hF(eo,lo,g.getSpecialElements(),Re.sanitizeNamespaceElement),lo.innerHTML="";const[xo,bi]=pF(eo,g,re,Ur),Bi=[],$a=jo?nu=>Vn(nu,Bi):k,Ia={nodes:{},attributes:{}},Us=nu=>s7(kt(),ln(),nu,Ia);if(YY(eo,[xo,Us],[bi,$a]),Bi.reverse(),jo&&Bi.length>0)if(Ur.context){const{pass:nu,fail:jd}=Se(Bi,ml=>ml.parent===eo);pv(jd,g,eo,Us),Ur.invalid=nu.length>0}else pv(Bi,g,eo,Us);const sl=XY(re,Ur);return sl&&(eo.name==="body"||Ur.isRootContent)&&qn(eo,sl),Ur.invalid||gz(Ia,Ur),eo}};return Kz(Tr,re),TY(Tr,re,g),Tr},mF=r=>Ks(r)?Wb({validate:!1}).serialize(r):r,gF=(r,g,B)=>{const H=mF(r),re=g(H);if(re.isDefaultPrevented())return re;if(Ks(r))if(re.content!==H){const be=Ry({validate:!1,forced_root_block:!1,...B}).parse(re.content,{context:r.name});return{...re,content:be}}else return{...re,content:r};else return re},eP=r=>({sanitize:Rb(r),sandbox_iframes:o2(r),sandbox_iframes_exclusions:i2(r)}),vF=(r,g)=>{if(g.no_events)return gs.value(g);{const B=r6(r,g);return B.isDefaultPrevented()?gs.error(o5(r,{content:"",...B}).content):gs.value(B)}},tP=(r,g,B)=>B.no_events?g:gF(g,re=>o5(r,{...B,content:re}),eP(r)).content,nP=(r,g)=>{if(g.no_events)return gs.value(g);{const B=gF(g.content,H=>R3(r,{...g,content:H}),eP(r));return B.isDefaultPrevented()?(L3(r,B),gs.error(void 0)):gs.value(B)}},rP=(r,g,B)=>{B.no_events||L3(r,{...B,content:g})},yC=(r,g,B)=>({element:r,width:g,rows:B}),oP=(r,g)=>({element:r,cells:g}),yF=(r,g)=>({x:r,y:g}),iP=(r,g)=>ad(r,g).bind(zr).getOr(1),bF=(r,g,B,H,re)=>{const be=iP(re,"rowspan"),Re=iP(re,"colspan"),Ke=r.rows;for(let ct=B;ct{const H=r.rows;return!!(H[B]?H[B].cells:[])[g]},GY=(r,g,B)=>{for(;xF(r,g,B);)g++;return g},_F=r=>Ie(r,(g,B)=>B.cells.length>g?B.cells.length:g,0),wF=(r,g)=>{const B=r.rows;for(let H=0;H{const be=[],Re=r.rows;for(let Ke=B;Ke<=re;Ke++){const ct=Re[Ke].cells,kt=g{const H=g.x,re=g.y,be=B.x,Re=B.y,Ke=re{const B=Th(r.element),H=sr.fromTag("tbody");return mu(H,g),Ps(B,H),B},SF=r=>ve(r.rows,g=>{const B=ve(g.cells,re=>{const be=Kf(re);return gc(be,"colspan"),gc(be,"rowspan"),be}),H=Th(g.element);return mu(H,B),H}),xC=r=>{const g=yC(Th(r),0,[]);return ye(Zl(r,"tr"),(B,H)=>{ye(Zl(B,"td,th"),(re,be)=>{bF(g,GY(g,be,H),H,B,re)})}),yC(g.element,_F(g.rows),g.rows)},KY=r=>OF(r,SF(r)),JY=(r,g,B)=>wF(r,g).bind(H=>wF(r,B).map(re=>W5(r,H,re))),Hw=r=>De(r,g=>sa(g)==="ul"||sa(g)==="ol"),aP=(r,g)=>De(r,B=>sa(B)==="li"&&x3(B,g)).fold($([]),B=>Hw(r).map(H=>{const re=sr.fromTag(sa(H)),be=qt(vc(H),(Re,Ke)=>xr(Ke,"list-style"));return Hi(re,be),[sr.fromTag("li"),re]}).getOr([])),kF=(r,g)=>{const B=Ie(g,(H,re)=>(Ps(re,H),re),r);return g.length>0?ea([B]):B},Y5=r=>nh(r)?Hu(r).filter(Vp).fold($([]),g=>[r,g]):Vp(r)?[r]:[],TF=(r,g,B)=>{const H=sr.fromDom(g.commonAncestorContainer),re=Yb(H,r),be=Te(re,ct=>B.isWrapper(sa(ct))),Re=aP(re,g),Ke=be.concat(Re.length?Re:Y5(H));return ve(Ke,Th)},_C=()=>ea([]),CF=(r,g,B)=>kF(sr.fromDom(g.cloneContents()),TF(r,g,B)),AF=(r,g)=>xl(g,"table",U(Fa,r)),eX=(r,g)=>AF(r,g[0]).bind(B=>{const H=g[0],re=g[g.length-1],be=xC(B);return JY(be,H,re).map(Re=>ea([KY(Re)]))}).getOrThunk(_C),tX=(r,g,B)=>g.length>0&&g[0].collapsed?_C():CF(r,g[0],B),nX=(r,g,B)=>{const H=wy(g,r);return H.length>0?eX(r,H):tX(r,g,B)},e4=(r,g)=>g>=0&&gvd(r.innerText),EF=r=>r.map(g=>g.nodeName).getOr("div").toLowerCase(),rX=r=>Y.from(r.selection.getRng()).map(g=>{var B;const H=Y.from(r.dom.getParent(g.commonAncestorContainer,r.dom.isBlock)),re=r.getBody(),be=EF(H),Re=sr.fromDom(g.cloneContents());mB(Re),gB(Re);const Ke=r.dom.add(re,be,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},Re.dom),ct=MF(Ke),kt=vd((B=Ke.textContent)!==null&&B!==void 0?B:"");if(r.dom.remove(Ke),e4(kt,0)||e4(kt,kt.length-1)){const Wt=H.getOr(re),Jt=MF(Wt),ln=Jt.indexOf(ct);if(ln===-1)return ct;{const kn=e4(Jt,ln-1),Vn=e4(Jt,ln+ct.length);return(kn?" ":"")+ct+(Vn?" ":"")}}else return ct}).getOr(""),oX=(r,g)=>{const B=r.selection.getRng(),H=r.dom.create("body"),re=r.selection.getSel(),be=$3(r,b3(re)),Re=g.contextual?nX(sr.fromDom(r.getBody()),be,r.schema).dom:B.cloneContents();return Re&&H.appendChild(Re),r.selection.serializer.serialize(H,g)},iX=(r,g)=>{if(g.format==="text")return rX(r);{const B=oX(r,g);return g.format==="tree"?B:r.selection.isCollapsed()?"":B}},aX=(r,g)=>({...r,format:g,get:!0,selection:!0,getInner:!0}),sX=(r,g,B={})=>{const H=aX(B,g);return vF(r,H).fold(Q,re=>{const be=iX(r,re);return tP(r,be,re)})},sP=0,PF=1,RF=2,lX=(r,g)=>{const B=r.length+g.length+2,H=new Array(B),re=new Array(B),be=(Wt,Jt,ln)=>({start:Wt,end:Jt,diag:ln}),Re=(Wt,Jt,ln,kn,Vn)=>{const Rn=ct(Wt,Jt,ln,kn);if(Rn===null||Rn.start===Jt&&Rn.diag===Jt-kn||Rn.end===Wt&&Rn.diag===Wt-ln){let qn=Wt,pr=ln;for(;qnkn-ln?(Vn.push([RF,r[qn]]),++qn):(Vn.push([PF,g[pr]]),++pr)}else{Re(Wt,Rn.start,ln,Rn.start-Rn.diag,Vn);for(let qn=Rn.start;qn{let Vn=Wt;for(;Vn-Jt{const Vn=Jt-Wt,Rn=kn-ln;if(Vn===0||Rn===0)return null;const qn=Vn-Rn,pr=Rn+Vn,Tr=(pr%2===0?pr:pr+1)/2;H[1+Tr]=Wt,re[1+Tr]=Jt+1;let wr,Ur,wo,jo,di;for(wr=0;wr<=Tr;++wr){for(Ur=-wr;Ur<=wr;Ur+=2){for(wo=Ur+Tr,Ur===-wr||Ur!==wr&&H[wo-1]=Wt&&di>=ln&&r[jo]===g[di];)re[wo]=jo--,di--;if(qn%2===0&&-wr<=Ur&&Ur<=wr&&re[wo]<=H[wo+qn])return Ke(re[wo],Ur+Wt-ln,Jt,kn)}}return null},kt=[];return Re(0,r.length,0,g.length,kt),kt},t4=r=>ne(r)?r.outerHTML:Nt(r)?up.encodeRaw(r.data,!1):xn(r)?"":"",Gh=r=>{let g;const B=document.createElement("div"),H=document.createDocumentFragment();for(r&&(B.innerHTML=r);g=B.firstChild;)H.appendChild(g);return H},cX=(r,g,B)=>{const H=Gh(g);if(r.hasChildNodes()&&B{if(r.hasChildNodes()&&g{let B=0;ye(r,H=>{H[0]===sP?B++:H[0]===PF?(cX(g,H[1],B),B++):H[0]===RF&&wC(g,B)})},LF=(r,g)=>Te(ve(Ee(r.childNodes),g?I(vd,t4):t4),B=>B.length>0),Wm=(r,g)=>{const B=ve(Ee(g.childNodes),t4);return Zw(lX(B,r),g),g},qw=xt(()=>document.implementation.createHTMLDocument("undo")),IF=r=>r.querySelector("iframe")!==null,uX=r=>({type:"fragmented",fragments:r,content:"",bookmark:null,beforeBookmark:null}),DF=r=>({type:"complete",fragments:null,content:r,bookmark:null,beforeBookmark:null}),OC=r=>{const g=r.serializer.getTempAttrs(),B=LE(r.getBody(),g);return IF(B)?uX(LF(B,!0)):DF(vd(B.innerHTML))},SC=(r,g,B)=>{const H=B?g.beforeBookmark:g.bookmark;g.type==="fragmented"?Wm(g.fragments,r.getBody()):r.setContent(g.content,{format:"raw",no_selection:E(H)&&QT(H)?!H.isFakeCaret:!0}),H&&(r.selection.moveToBookmark(H),r.selection.scrollIntoView())},Ww=r=>r.type==="fragmented"?r.fragments.join(""):r.content,kC=r=>{const g=sr.fromTag("body",qw());return Id(g,Ww(r)),ye(Zl(g,"*[data-mce-bogus]"),vu),nl(g)},fX=(r,g)=>Ww(r)===Ww(g),BF=(r,g)=>kC(r)===kC(g),lP=(r,g)=>!r||!g?!1:fX(r,g)?!0:BF(r,g),X5=r=>r.get()===0,n4=(r,g,B)=>{X5(B)&&(r.typing=g)},zF=(r,g)=>{r.typing&&(n4(r,!1,g),r.add())},dX=r=>{r.typing&&(r.typing=!1,r.add())},Ly=(r,g,B)=>{X5(g)&&B.set(Ja(r.selection))},cP=(r,g,B,H,re,be,Re)=>{const Ke=OC(r),ct=mo.extend(be||{},Ke);if(!X5(H)||r.removed)return null;const kt=g.data[B.get()];if(r.dispatch("BeforeAddUndo",{level:ct,lastLevel:kt,originalEvent:Re}).isDefaultPrevented()||kt&&lP(kt,ct))return null;g.data[B.get()]&&re.get().each(ln=>{g.data[B.get()].beforeBookmark=ln});const Wt=_g(r);if(Wt&&g.data.length>Wt){for(let ln=0;ln0?(r.setDirty(!0),r.dispatch("AddUndo",Jt),r.dispatch("change",Jt)):r.dispatch("AddUndo",Jt),ct},hX=(r,g,B)=>{g.data=[],B.set(0),g.typing=!1,r.dispatch("ClearUndos")},TC=(r,g,B,H,re)=>{if(g.transact(H)){const be=g.data[B.get()].bookmark,Re=g.data[B.get()-1];SC(r,Re,!0),g.transact(re)&&(g.data[B.get()-1].beforeBookmark=be)}},uP=(r,g,B)=>{let H;return g.get(){let re;return g.typing&&(g.add(),g.typing=!1,n4(g,!1,B)),H.get()>0&&(H.set(H.get()-1),re=g.data[H.get()],SC(r,re,!0),r.setDirty(!0),r.dispatch("Undo",{level:re})),re},NF=r=>{r.clear(),r.add()},$F=(r,g,B)=>B.get()>0||g.typing&&g.data[0]&&!lP(OC(r),g.data[0]),pX=(r,g)=>g.get()(zF(r,g),r.beforeChange(),r.ignore(B),r.add()),gX=(r,g)=>{try{r.set(r.get()+1),g()}finally{r.set(r.get()-1)}},vX=(r,g)=>{const B=r.dom,H=E(g)?g:r.getBody();ye(B.select("table,a",H),re=>{switch(re.nodeName){case"TABLE":const be=Kx(r),Re=B.getAttrib(re,"border");(!Re||Re==="0")&&r.hasVisual?B.addClass(re,be):B.removeClass(re,be);break;case"A":if(!B.getAttrib(re,"href")){const Ke=B.getAttrib(re,"name")||re.id,ct=Jx(r);Ke&&r.hasVisual?B.addClass(re,ct):B.removeClass(re,ct)}break}}),r.dispatch("VisualAid",{element:g,hasVisual:r.hasVisual})},VF=r=>({init:{bindEvents:k},undoManager:{beforeChange:(g,B)=>Ly(r,g,B),add:(g,B,H,re,be,Re)=>cP(r,g,B,H,re,be,Re),undo:(g,B,H)=>FF(r,g,B,H),redo:(g,B)=>uP(r,g,B),clear:(g,B)=>hX(r,g,B),reset:g=>NF(g),hasUndo:(g,B)=>$F(r,g,B),hasRedo:(g,B)=>pX(g,B),transact:(g,B,H)=>mX(g,B,H),ignore:(g,B)=>gX(g,B),extra:(g,B,H,re)=>TC(r,g,B,H,re)},formatter:{match:(g,B,H,re)=>y7(r,g,B,H,re),matchAll:(g,B)=>sY(r,g,B),matchNode:(g,B,H,re)=>Py(r,g,B,H,re),canApply:g=>cY(r,g),closest:g=>lY(r,g),apply:(g,B,H)=>N7(r,g,B,H),remove:(g,B,H,re)=>B7(r,g,B,H,re),toggle:(g,B,H)=>Fu(r,g,B,H),formatChanged:(g,B,H,re,be)=>$7(r,g,B,H,re,be)},editor:{getContent:g=>cW(r,g),setContent:(g,B)=>p7(r,g,B),insertContent:(g,B)=>aY(r,g,B),addVisual:g=>vX(r,g)},selection:{getContent:(g,B)=>sX(r,g,B)},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:()=>Y.none()}}),UF=r=>{const g=kt=>_(kt)?kt:{},{init:B,undoManager:H,formatter:re,editor:be,selection:Re,autocompleter:Ke,raw:ct}=r;return{init:{bindEvents:B.bindEvents},undoManager:{beforeChange:H.beforeChange,add:H.add,undo:H.undo,redo:H.redo,clear:H.clear,reset:H.reset,hasUndo:H.hasUndo,hasRedo:H.hasRedo,transact:(kt,Wt,Jt)=>H.transact(Jt),ignore:(kt,Wt)=>H.ignore(Wt),extra:(kt,Wt,Jt,ln)=>H.extra(Jt,ln)},formatter:{match:(kt,Wt,Jt,ln)=>re.match(kt,g(Wt),ln),matchAll:re.matchAll,matchNode:re.matchNode,canApply:kt=>re.canApply(kt),closest:kt=>re.closest(kt),apply:(kt,Wt,Jt)=>re.apply(kt,g(Wt)),remove:(kt,Wt,Jt,ln)=>re.remove(kt,g(Wt)),toggle:(kt,Wt,Jt)=>re.toggle(kt,g(Wt)),formatChanged:(kt,Wt,Jt,ln,kn)=>re.formatChanged(Wt,Jt,ln,kn)},editor:{getContent:kt=>be.getContent(kt),setContent:(kt,Wt)=>({content:be.setContent(kt,Wt),html:""}),insertContent:(kt,Wt)=>(be.insertContent(kt),""),addVisual:be.addVisual},selection:{getContent:(kt,Wt)=>Re.getContent(Wt)},autocompleter:{addDecoration:Ke.addDecoration,removeDecoration:Ke.removeDecoration},raw:{getModel:()=>Y.some(ct.getRawModel())}}},yX=()=>{const r=$(null),g=$("");return{init:{bindEvents:k},undoManager:{beforeChange:k,add:r,undo:r,redo:r,clear:k,reset:k,hasUndo:oe,hasRedo:oe,transact:r,ignore:k,extra:k},formatter:{match:oe,matchAll:$([]),matchNode:$(void 0),canApply:oe,closest:g,apply:k,remove:k,toggle:k,formatChanged:$({unbind:k})},editor:{getContent:g,setContent:$({content:"",html:""}),insertContent:$(""),addVisual:k},selection:{getContent:g},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:$(Y.none())}}},Iy=r=>_t(r.plugins,"rtc"),bX=r=>Ct(r.plugins,"rtc").bind(g=>Y.from(g.setup)),jF=r=>{const g=r;return bX(r).fold(()=>(g.rtcInstance=VF(r),Y.none()),B=>(g.rtcInstance=yX(),Y.some(()=>B().then(H=>(g.rtcInstance=UF(H),H.rtc.isRemote)))))},G5=r=>r.rtcInstance?r.rtcInstance:VF(r),hf=r=>{const g=r.rtcInstance;if(g)return g;throw new Error("Failed to get RTC instance not yet initialized.")},QF=(r,g,B)=>{hf(r).undoManager.beforeChange(g,B)},fP=(r,g,B,H,re,be,Re)=>hf(r).undoManager.add(g,B,H,re,be,Re),HF=(r,g,B,H)=>hf(r).undoManager.undo(g,B,H),ZF=(r,g,B)=>hf(r).undoManager.redo(g,B),dP=(r,g,B)=>{hf(r).undoManager.clear(g,B)},qF=(r,g)=>{hf(r).undoManager.reset(g)},WF=(r,g,B)=>hf(r).undoManager.hasUndo(g,B),YF=(r,g,B)=>hf(r).undoManager.hasRedo(g,B),xX=(r,g,B,H)=>hf(r).undoManager.transact(g,B,H),hP=(r,g,B)=>{hf(r).undoManager.ignore(g,B)},_X=(r,g,B,H,re)=>{hf(r).undoManager.extra(g,B,H,re)},CC=(r,g,B,H,re)=>hf(r).formatter.match(g,B,H,re),wX=(r,g,B)=>hf(r).formatter.matchAll(g,B),OX=(r,g,B,H,re)=>hf(r).formatter.matchNode(g,B,H,re),SX=(r,g)=>hf(r).formatter.canApply(g),XF=(r,g)=>hf(r).formatter.closest(g),GF=(r,g,B,H)=>{hf(r).formatter.apply(g,B,H)},kX=(r,g,B,H,re)=>{hf(r).formatter.remove(g,B,H,re)},TX=(r,g,B,H)=>{hf(r).formatter.toggle(g,B,H)},CX=(r,g,B,H,re,be)=>hf(r).formatter.formatChanged(g,B,H,re,be),AX=(r,g)=>G5(r).editor.getContent(g),MX=(r,g,B)=>G5(r).editor.setContent(g,B),KF=(r,g,B)=>G5(r).editor.insertContent(g,B),efe=(r,g,B)=>hf(r).selection.getContent(g,B),EX=(r,g)=>hf(r).editor.addVisual(g),JF=r=>hf(r).init.bindEvents(),PX=(r,g={})=>{const B=g.format?g.format:"html";return efe(r,B,g)},eN=r=>r.dom.length===0?(ja(r),Y.none()):Y.some(r),RX=(r,g)=>r.filter(B=>ky.isBookmarkNode(B.dom)).bind(g?ud:Eu),LX=(r,g,B,H,re)=>{const be=r.dom,Re=g.dom,Ke=H?be.length:Re.length;H?(HE(be,Re,re,!1,!H),B.setStart(Re,Ke)):(HE(Re,be,re,!1,!H),B.setEnd(Re,Ke))},IX=(r,g,B)=>{Hu(r).each(H=>{const re=r.dom;g&&x5(H,qr(re,0),B)?w5(re,0,B):!g&&_5(H,qr(re,re.length),B)&&QE(re,re.length,B)})},pP=(r,g,B,H,re)=>{r.bind(be=>((H?QE:w5)(be.dom,H?be.dom.length:0,re),g.filter(Ss).map(Ke=>LX(be,Ke,B,H,re)))).orThunk(()=>RX(g,H).or(g).filter(Ss).map(Re=>IX(Re,H,re)))},DX=(r,g,B)=>{const H=Y.from(g.firstChild).map(sr.fromDom),re=Y.from(g.lastChild).map(sr.fromDom);r.deleteContents(),r.insertNode(g);const be=H.bind(Eu).filter(Ss).bind(eN),Re=re.bind(ud).filter(Ss).bind(eN);pP(be,H,r,!0,B),pP(Re,re,r,!1,B),r.collapse(!1)},BX=(r,g)=>({format:"html",...r,set:!0,selection:!0,content:g}),zX=(r,g)=>{if(g.format!=="raw"){const B=r.selection.getRng(),H=r.dom.getParent(B.commonAncestorContainer,r.dom.isBlock),re=H?{context:H.nodeName.toLowerCase()}:{},be=r.parser.parse(g.content,{forced_root_block:!1,...re,...g});return Wb({validate:!1},r.schema).serialize(be)}else return g.content},FX=(r,g,B={})=>{const H=BX(B,g);nP(r,H).each(re=>{const be=zX(r,re),Re=r.selection.getRng();DX(Re,Re.createContextualFragment(be),r.schema),r.selection.setRng(Re),m5(r,Re),rP(r,be,re)})},tN=(r,g,B)=>{if(_t(r,g)){const H=Te(r[g],re=>re!==B);H.length===0?delete r[g]:r[g]=H}};var tfe=(r,g)=>{let B,H;const re=(Ke,ct)=>De(ct,kt=>r.is(kt,Ke)),be=Ke=>r.getParents(Ke,void 0,r.getRoot()),Re=()=>{B={},H={},g.on("NodeChange",Ke=>{const ct=Ke.element,kt=be(ct),Wt={};Ge(B,(Jt,ln)=>{re(ln,kt).each(kn=>{H[ln]||(ye(Jt,Vn=>{Vn(!0,{node:kn,selector:ln,parents:kt})}),H[ln]=Jt),Wt[ln]=Jt})}),Ge(H,(Jt,ln)=>{Wt[ln]||(delete H[ln],ye(Jt,kn=>{kn(!1,{node:ct,selector:ln,parents:kt})}))})})};return{selectorChangedWithUnbind:(Ke,ct)=>(B||Re(),B[Ke]||(B[Ke]=[]),B[Ke].push(ct),re(Ke,be(g.selection.getStart())).each(()=>{H[Ke]=B[Ke]}),{unbind:()=>{tN(B,Ke,ct),tN(H,Ke,ct)}})}};const NX=r=>!!(r&&r.ownerDocument)&&Qu(sr.fromDom(r.ownerDocument),sr.fromDom(r)),$X=r=>r?NX(r.startContainer)&&NX(r.endContainer):!1,nN=(r,g,B,H)=>{let re,be;const{selectorChangedWithUnbind:Re}=tfe(r,H),Ke=(Wo,Ei)=>{const ws=r.createRng();E(Wo)&&E(Ei)?(ws.setStart(Wo,Ei),ws.setEnd(Wo,Ei),Ur(ws),pr(!1)):(YS(r,ws,H.getBody(),!0),Ur(ws))},ct=Wo=>PX(H,Wo),kt=(Wo,Ei)=>FX(H,Wo,Ei),Wt=Wo=>EE(H.getBody(),wr(),Wo),Jt=Wo=>PE(H.getBody(),wr(),Wo),ln=(Wo,Ei)=>jd.getBookmark(Wo,Ei),kn=Wo=>jd.moveToBookmark(Wo),Vn=(Wo,Ei)=>(Jq(r,Wo,Ei).each(Ur),Wo),Rn=()=>{const Wo=wr(),Ei=Tr();return!Wo||Wo.item?!1:Wo.compareEndPoints?Wo.compareEndPoints("StartToEnd",Wo)===0:!Ei||Wo.collapsed},qn=()=>{const Wo=wr(),Ei=H.getBody().querySelectorAll('[data-mce-selected="1"]');return Ei.length>0?Oe(Ei,ws=>r.isEditable(ws.parentElement)):iB(r,Wo)},pr=Wo=>{const Ei=wr();Ei.collapse(!!Wo),Ur(Ei)},Tr=()=>g.getSelection?g.getSelection():g.document.selection,wr=()=>{let Wo;const Ei=(ii,Qi,Qa)=>{try{return Qi.compareBoundaryPoints(ii,Qa)}catch{return-1}},ws=g.document;if(E(H.bookmark)&&!Mw(H)){const ii=y6(H);if(ii.isSome())return ii.map(Qi=>$3(H,[Qi])[0]).getOr(ws.createRange())}try{const ii=Tr();ii&&!V(ii.anchorNode)&&(ii.rangeCount>0?Wo=ii.getRangeAt(0):Wo=ws.createRange(),Wo=$3(H,[Wo])[0])}catch{}if(Wo||(Wo=ws.createRange()),pn(Wo.startContainer)&&Wo.collapsed){const ii=r.getRoot();Wo.setStart(ii,0),Wo.setEnd(ii,0)}return re&&be&&(Ei(Wo.START_TO_START,Wo,re)===0&&Ei(Wo.END_TO_END,Wo,re)===0?Wo=be:(re=null,be=null)),Wo},Ur=(Wo,Ei)=>{if(!$X(Wo))return;const ws=Tr();if(Wo=H.dispatch("SetSelectionRange",{range:Wo,forward:Ei}).range,ws){be=Wo;try{ws.removeAllRanges(),ws.addRange(Wo)}catch{}Ei===!1&&ws.extend&&(ws.collapse(Wo.endContainer,Wo.endOffset),ws.extend(Wo.startContainer,Wo.startOffset)),re=ws.rangeCount>0?ws.getRangeAt(0):null}if(!Wo.collapsed&&Wo.startContainer===Wo.endContainer&&(ws!=null&&ws.setBaseAndExtent)&&Wo.endOffset-Wo.startOffset<2&&Wo.startContainer.hasChildNodes()){const Qi=Wo.startContainer.childNodes[Wo.startOffset];Qi&&Qi.nodeName==="IMG"&&(ws.setBaseAndExtent(Wo.startContainer,Wo.startOffset,Wo.endContainer,Wo.endOffset),(ws.anchorNode!==Wo.startContainer||ws.focusNode!==Wo.endContainer)&&ws.setBaseAndExtent(Qi,0,Qi,1))}H.dispatch("AfterSetSelectionRange",{range:Wo,forward:Ei})},wo=Wo=>(kt(r.getOuterHTML(Wo)),Wo),jo=()=>Gq(H.getBody(),wr()),di=(Wo,Ei)=>Kq(r,wr(),Wo,Ei),lo=()=>{const Wo=Tr(),Ei=Wo==null?void 0:Wo.anchorNode,ws=Wo==null?void 0:Wo.focusNode;if(!Wo||!Ei||!ws||V(Ei)||V(ws))return!0;const ii=r.createRng(),Qi=r.createRng();try{ii.setStart(Ei,Wo.anchorOffset),ii.collapse(!0),Qi.setStart(ws,Wo.focusOffset),Qi.collapse(!0)}catch{return!0}return ii.compareBoundaryPoints(ii.START_TO_START,Qi)<=0},nu={dom:r,win:g,serializer:B,editor:H,expand:(Wo={type:"word"})=>Ur(To(r).expand(wr(),Wo)),collapse:pr,setCursorLocation:Ke,getContent:ct,setContent:kt,getBookmark:ln,moveToBookmark:kn,select:Vn,isCollapsed:Rn,isEditable:qn,isForward:lo,setNode:wo,getNode:jo,getSel:Tr,setRng:Ur,getRng:wr,getStart:Wt,getEnd:Jt,getSelectedBlocks:di,normalize:()=>{const Wo=wr(),Ei=Tr();if(!HM(Ei)&&XS(H)){const ws=Ko(r,Wo);return ws.each(ii=>{Ur(ii,lo())}),ws.getOr(Wo)}return Wo},selectorChanged:(Wo,Ei)=>(Re(Wo,Ei),nu),selectorChangedWithUnbind:Re,getScrollContainer:()=>{let Wo,Ei=r.getRoot();for(;Ei&&Ei.nodeName!=="BODY";){if(Ei.scrollHeight>Ei.clientHeight){Wo=Ei;break}Ei=Ei.parentNode}return Wo},scrollIntoView:(Wo,Ei)=>{E(Wo)?Nq(H,Wo,Ei):m5(H,wr(),Ei)},placeCaretAt:(Wo,Ei)=>Ur(Ye(Wo,Ei,H.getDoc())),getBoundingClientRect:()=>{const Wo=wr();return Wo.collapsed?qr.fromRangeStart(Wo).getClientRects()[0]:Wo.getBoundingClientRect()},destroy:()=>{g=re=be=null,ml.destroy()}},jd=ky(nu),ml=Ow(nu,H);return nu.bookmarkManager=jd,nu.controlSelection=ml,nu},nfe=(r,g,B)=>{g.addNodeFilter("br",(H,re,be)=>{const Re=mo.extend({},B.getBlockElements()),Ke=B.getNonEmptyElements(),ct=B.getWhitespaceElements();Re.body=1;const kt=Wt=>Wt.name in Re||eh(B,Wt);for(let Wt=0,Jt=H.length;Wt{r.addAttributeFilter("data-mce-tabindex",(H,re)=>{let be=H.length;for(;be--;){const Re=H[be];Re.attr("tabindex",Re.attr("data-mce-tabindex")),Re.attr(re,null)}}),r.addAttributeFilter("src,href,style",(H,re)=>{const be="data-mce-"+re,Re=g.url_converter,Ke=g.url_converter_scope;let ct=H.length;for(;ct--;){const kt=H[ct];let Wt=kt.attr(be);Wt!==void 0?(kt.attr(re,Wt.length>0?Wt:null),kt.attr(be,null)):(Wt=kt.attr(re),re==="style"?Wt=B.serializeStyle(B.parseStyle(Wt),kt.name):Re&&(Wt=Re.call(Ke,Wt,re,kt.name)),kt.attr(re,Wt.length>0?Wt:null))}}),r.addAttributeFilter("class",H=>{let re=H.length;for(;re--;){const be=H[re];let Re=be.attr("class");Re&&(Re=Re.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),be.attr("class",Re.length>0?Re:null))}}),r.addAttributeFilter("data-mce-type",(H,re,be)=>{let Re=H.length;for(;Re--;){const Ke=H[Re];Ke.attr("data-mce-type")==="bookmark"&&!be.cleanup&&(Y.from(Ke.firstChild).exists(kt=>{var Wt;return!$0((Wt=kt.value)!==null&&Wt!==void 0?Wt:"")})?Ke.unwrap():Ke.remove())}}),r.addNodeFilter("script,style",(H,re)=>{var be;const Re=ct=>ct.replace(/()/g,` +`,!0);do Ke(Vn);while(Vn=Vn.next)}B.end(Jt)}}};return re.type===1&&!r.inner?Ke(re):re.type===3?Re[3](re):Re[11](re),B.getContent()}}},BE=new Set;ye(["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"],g=>{BE.add(g)});const yB=new Set;ye(["background-color"],g=>{yB.add(g)});const bB=["font","text-decoration","text-emphasis"],uW=(r,g)=>r.parseStyle(r.getAttrib(g,"style")),V3=(r,g)=>nt(uW(r,g)),fW=r=>BE.has(r),dW=r=>yB.has(r),xB=(r,g)=>de(V3(r,g),B=>fW(B)),hW=(r,g)=>xB(r,g)&&de(V3(r,g),B=>dW(B)),pW=r=>Te(r,g=>de(bB,B=>xr(g,B))),mW=(r,g,B)=>{const H=V3(r,g),re=V3(r,B),be=Re=>{var Ke,ct;const kt=(Ke=r.getStyle(g,Re))!==null&&Ke!==void 0?Ke:"",Wt=(ct=r.getStyle(B,Re))!==null&&ct!==void 0?ct:"";return Kn(kt)&&Kn(Wt)&&kt!==Wt};return de(H,Re=>{const Ke=ct=>de(ct,kt=>kt===Re);if(!Ke(re)&&Ke(bB)){const ct=pW(re);return de(ct,be)}else return be(Re)})},_B=(r,g,B)=>Y.from(B.container()).filter(Nt).exists(H=>{const re=r?0:-1;return g(H.data.charAt(B.offset()+re))}),zE=U(_B,!0,jb),FE=U(_B,!1,jb),gW=r=>{const g=r.container();return Nt(g)&&(g.data.length===0||$0(g.data)&&ky.isBookmarkNode(g.parentNode))},S2=(r,g)=>B=>u3(r?0:-1,B).filter(g).isSome(),wB=r=>An(r)&&pi(sr.fromDom(r),"display")==="block",OB=r=>rr(r)&&!mt(r),vW=S2(!0,wB),yW=S2(!1,wB),Li=S2(!0,Zr),U3=S2(!1,Zr),NE=S2(!0,Et),$E=S2(!1,Et),Ey=S2(!0,OB),k2=S2(!1,OB),bW=r=>r.slice(0,-1),xW=(r,g,B)=>Qu(g,r)?bW(Uh(r,H=>B(H)||Fa(H,g))):[],SB=(r,g)=>xW(r,g,oe),Xb=(r,g)=>[r].concat(SB(r,g)),j3=(r,g,B)=>UT(r,g,B,gW),kB=r=>g=>r.isBlock(la(g)),_W=(r,g,B)=>De(Xb(sr.fromDom(g.container()),r),kB(B)),TB=(r,g,B,H)=>j3(r,g.dom,B).forall(re=>_W(g,B,H).fold(()=>!Wp(re,B,g.dom),be=>!Wp(re,B,g.dom)&&Qu(be,sr.fromDom(re.container())))),da=(r,g,B,H)=>_W(g,B,H).fold(()=>j3(r,g.dom,B).forall(re=>!Wp(re,B,g.dom)),re=>j3(r,re.dom,B).isNone()),VE=U(da,!1),Ca=U(da,!0),CB=U(TB,!1),Vue=U(TB,!0),Uue=r=>d3(r).exists(N0),O6=(r,g,B,H)=>{const re=Te(Xb(sr.fromDom(B.container()),g),Re=>H.isBlock(la(Re))),be=Xe(re).getOr(g);return Yp(r,be.dom,B).filter(Uue)},AB=(r,g,B)=>d3(g).exists(N0)||O6(!0,r,g,B).isSome(),UE=(r,g,B)=>BT(g).exists(N0)||O6(!1,r,g,B).isSome(),MB=U(O6,!1),wW=U(O6,!0),oa=r=>qr.isTextPosition(r)&&!r.isAtStart()&&!r.isAtEnd(),EB=(r,g,B)=>{const H=Te(Xb(sr.fromDom(g.container()),r),re=>B.isBlock(la(re)));return Xe(H).getOr(r)},PB=(r,g,B)=>oa(g)?FE(g):FE(g)||mp(EB(r,g,B).dom,g).exists(FE),RB=(r,g,B)=>oa(g)?zE(g):zE(g)||sh(EB(r,g,B).dom,g).exists(zE),x5=r=>ce(["pre","pre-wrap"],r),S6=r=>d3(r).bind(g=>Ya(g,mc)).exists(g=>x5(pi(g,"white-space"))),OW=(r,g)=>mp(r.dom,g).isNone(),SW=(r,g)=>sh(r.dom,g).isNone(),kW=(r,g,B)=>OW(r,g)||SW(r,g)||VE(r,g,B)||Ca(r,g,B)||UE(r,g,B)||AB(r,g,B),LB=r=>E(r)&&rr(r)&&IS(r),IB=(r,g)=>B=>LB(new kc(B,r)[g]()),jue=(r,g)=>{const B=sh(r.dom,g).getOr(g),H=IB(r.dom,"next");return g.isAtEnd()&&(H(g.container())||H(B.container()))},Que=(r,g)=>{const B=mp(r.dom,g).getOr(g),H=IB(r.dom,"prev");return g.isAtStart()&&(H(g.container())||H(B.container()))},DB=(r,g,B)=>S6(g)?!1:kW(r,g,B)||PB(r,g,B)||RB(r,g,B),_5=(r,g,B)=>S6(g)?!1:VE(r,g,B)||CB(r,g,B)||UE(r,g,B)||PB(r,g,B)||Que(r,g),TW=r=>{const g=r.container(),B=r.offset();return Nt(g)&&BS6(g)?!1:Ca(r,g,B)||Vue(r,g,B)||AB(r,g,B)||RB(r,g,B)||jue(r,g),k6=(r,g,B)=>_5(r,g,B)||w5(r,TW(g),B),BB=(r,g)=>G0(r.charAt(g)),za=(r,g)=>jb(r.charAt(g)),zB=r=>{const g=r.container();return Nt(g)&&jn(g.data,Ea)},T6=r=>{const g=r.split("");return ve(g,(B,H)=>G0(B)&&H>0&&H{const re=g.data,be=qr(g,0);return!B&&BB(re,0)&&!k6(r,be,H)?(g.data=" "+re.slice(1),!0):B&&za(re,0)&&_5(r,be,H)?(g.data=Ea+re.slice(1),!0):!1},FB=r=>{const g=r.data,B=T6(g);return B!==g?(r.data=B,!0):!1},QE=(r,g,B,H)=>{const re=g.data,be=qr(g,re.length-1);return!B&&BB(re,re.length-1)&&!k6(r,be,H)?(g.data=re.slice(0,-1)+" ",!0):B&&za(re,re.length-1)&&w5(r,be,H)?(g.data=re.slice(0,-1)+Ea,!0):!1},NB=(r,g,B)=>{const H=g.container();if(!Nt(H))return Y.none();if(zB(g)){const re=jE(r,H,!1,B)||FB(H)||QE(r,H,!1,B);return ga(re,g)}else if(k6(r,g,B)){const re=jE(r,H,!0,B)||QE(r,H,!0,B);return ga(re,g)}else return Y.none()},$B=r=>{const g=sr.fromDom(r.getBody());r.selection.isCollapsed()&&NB(g,qr.fromRangeStart(r.selection.getRng()),r.schema).each(B=>{r.selection.setRng(B.toRange())})},VB=(r,g,B,H)=>{if(B===0)return;const re=sr.fromDom(r),be=ms(re,kt=>H.isBlock(la(kt))).getOr(re),Re=r.data.slice(g,g+B),Ke=g+B>=r.data.length&&w5(be,qr(r,r.data.length),H),ct=g===0&&_5(be,qr(r,0),H);r.replaceData(g,B,le(Re,4,ct,Ke))},O5=(r,g,B)=>{const H=r.data.slice(g),re=H.length-ir(H).length;VB(r,g,re,B)},HE=(r,g,B)=>{const H=r.data.slice(0,g),re=H.length-Wn(H).length;VB(r,g-re,re,B)},ZE=(r,g,B,H,re=!0)=>{const be=Wn(r.data).length,Re=re?r:g,Ke=re?g:r;return re?Re.appendData(Ke.data):Re.insertData(0,Ke.data),ja(sr.fromDom(Ke)),H&&O5(Re,be,B),Re},CW=(r,g)=>{const B=r.container(),H=r.offset();return!qr.isTextPosition(r)&&B===g.parentNode&&H>qr.before(g).offset()},AW=(r,g)=>CW(g,r)?qr(g.container(),g.offset()-1):g,MW=r=>Nt(r)?qr(r,0):qr.before(r),EW=r=>Nt(r)?qr(r,r.data.length):qr.after(r),UB=r=>ih(r.previousSibling)?Y.some(EW(r.previousSibling)):r.previousSibling?Xp(r.previousSibling):Y.none(),jB=r=>ih(r.nextSibling)?Y.some(MW(r.nextSibling)):r.nextSibling?lh(r.nextSibling):Y.none(),qE=(r,g)=>Y.from(g.previousSibling?g.previousSibling:g.parentNode).bind(B=>mp(r,qr.before(B))).orThunk(()=>sh(r,qr.after(g))),WE=(r,g)=>sh(r,qr.after(g)).orThunk(()=>mp(r,qr.before(g))),PW=(r,g)=>UB(g).orThunk(()=>jB(g)).orThunk(()=>qE(r,g)),RW=(r,g)=>jB(g).orThunk(()=>UB(g)).orThunk(()=>WE(r,g)),LW=(r,g,B)=>r?RW(g,B):PW(g,B),IW=(r,g,B)=>LW(r,g,B).map(U(AW,B)),QB=(r,g,B)=>{B.fold(()=>{r.focus()},H=>{r.selection.setRng(H.toRange(),g)})},DW=r=>g=>g.dom===r,BW=(r,g)=>g&&_t(r.schema.getBlockElements(),la(g)),zW=(r,g,B)=>{if(Pi(r,g)){const H=sr.fromHtml('
    ');return B?ye(Oc(g),re=>{gw(re)||ja(re)}):vu(g),Ps(g,H),Y.some(qr.before(H.dom))}else return Y.none()},HB=(r,g,B,H)=>{const re=Eu(r).filter(ks),be=fd(r).filter(ks);return ja(r),wc(re,be,g,(Re,Ke,ct)=>{const kt=Re.dom,Wt=Ke.dom,Jt=kt.data.length;return ZE(kt,Wt,B,H),ct.container()===Wt?qr(kt,Jt):ct}).orThunk(()=>(H&&(re.each(Re=>HE(Re.dom,Re.dom.length,B)),be.each(Re=>O5(Re.dom,0,B))),g))},FW=(r,g)=>_t(r.schema.getTextInlineElements(),la(g)),Ew=(r,g,B,H=!0,re=!1)=>{const be=IW(g,r.getBody(),B.dom),Re=ms(B,U(BW,r),DW(r.getBody())),Ke=HB(B,be,r.schema,FW(r,B));r.dom.isEmpty(r.getBody())?(r.setContent(""),r.selection.setCursorLocation()):Re.bind(ct=>zW(r.schema,ct,re)).fold(()=>{H&&QB(r,g,Ke)},ct=>{H&&QB(r,g,Y.some(ct))})},Pw=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,NW=r=>Pw.test(r),T2=(r,g)=>wf(sr.fromDom(g),J1(r))&&!xm(r.schema,g)&&r.dom.isEditable(g),ZB=r=>{var g;return Nl.DOM.getStyle(r,"direction",!0)==="rtl"||NW((g=r.textContent)!==null&&g!==void 0?g:"")},$W=(r,g,B)=>Te(Nl.DOM.getParents(B.container(),"*",g),r),Gb=(r,g,B)=>{const H=$W(r,g,B);return Y.from(H[H.length-1])},qB=(r,g,B)=>{const H=c0(g,r),re=c0(B,r);return E(H)&&H===re},WB=r=>V0(r)||Up(r),Cg=(r,g)=>{const B=g.container(),H=g.offset();return r?oh(B)?Nt(B.nextSibling)?qr(B.nextSibling,0):qr.after(B):V0(g)?qr(B,H+1):g:oh(B)?Nt(B.previousSibling)?qr(B.previousSibling,B.previousSibling.data.length):qr.before(B):Up(g)?qr(B,H-1):g},Xh=U(Cg,!0),YB=U(Cg,!1),XB=(r,g)=>{const B=H=>H.stopImmediatePropagation();r.on("beforeinput input",B,!0),r.getDoc().execCommand(g),r.off("beforeinput input",B)},VW=r=>{r.execCommand("delete")},C6=r=>XB(r,"Delete"),GB=r=>XB(r,"ForwardDelete"),Rw=r=>g=>Aa(Hu(g),r,Fa),UW=r=>Q_(r)||nh(r),A6=(r,g)=>Qu(r,g)?Ya(g,UW,Rw(r)):Y.none(),hc=(r,g=!0)=>{r.dom.isEmpty(r.getBody())&&r.setContent("",{no_selection:!g})},S5=(r,g,B)=>us(lh(B),Xp(B),(H,re)=>{const be=Cg(!0,H),Re=Cg(!1,re),Ke=Cg(!1,g);return r?sh(B,Ke).exists(ct=>ct.isEqual(Re)&&g.isEqual(be)):mp(B,Ke).exists(ct=>ct.isEqual(be)&&g.isEqual(Re))}).getOr(!0),Lw=r=>(ju(r)?Eu(r):zl(r)).bind(Lw).orThunk(()=>Y.some(r)),KB=(r,g,B,H=!0)=>{var re;g.deleteContents();const be=Lw(B).getOr(B),Re=sr.fromDom((re=r.dom.getParent(be.dom,r.dom.isBlock))!==null&&re!==void 0?re:B.dom);if(Re.dom===r.getBody()?hc(r,H):Pi(r.schema,Re,{checkRootAsContent:!1})&&(rh(Re),H&&r.selection.setCursorLocation(Re.dom,0)),!Fa(B,Re)){const Ke=Aa(Hu(Re),B)?[]:jh(Re);ye(Ke.concat(Oc(B)),ct=>{!Fa(ct,Re)&&!Qu(ct,Re)&&Pi(r.schema,ct)&&ja(ct)})}},Q3=r=>g=>Fa(r,g),Hm=r=>Zl(r,"td,th"),H3=(r,g)=>hw(sr.fromDom(r),g),Ul=r=>us(r.startTable,r.endTable,(g,B)=>{const H=Qs(g,be=>Fa(be,B)),re=Qs(B,be=>Fa(be,g));return!H&&!re?r:{...r,startTable:H?Y.none():r.startTable,endTable:re?Y.none():r.endTable,isSameTable:!1,isMultiTable:!1}}).getOr(r),k5=r=>Ul(r),JB=(r,g)=>{const B=H3(r.startContainer,g),H=H3(r.endContainer,g),re=B.isSome(),be=H.isSome(),Re=us(B,H,Fa).getOr(!1);return k5({startTable:B,endTable:H,isStartInTable:re,isEndInTable:be,isSameTable:Re,isMultiTable:!Re&&re&&be})},M6=(r,g)=>({start:r,end:g}),YE=(r,g,B)=>({rng:r,table:g,cells:B}),Iw=aa.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),Z3=(r,g)=>mu(sr.fromDom(r),"td,th",g),E6=r=>!Fa(r.start,r.end),T5=(r,g)=>hw(r.start,g).bind(B=>hw(r.end,g).bind(H=>ga(Fa(B,H),B))),XE=(r,g)=>!E6(r)&&T5(r,g).exists(B=>{const H=B.dom.rows;return H.length===1&&H[0].cells.length===1}),ez=(r,g)=>{const B=Z3(r.startContainer,g),H=Z3(r.endContainer,g);return us(B,H,M6)},tz=r=>g=>hw(g,r).bind(B=>tt(Hm(B)).map(H=>M6(g,H))),nz=r=>g=>hw(g,r).bind(B=>Xe(Hm(B)).map(H=>M6(H,g))),P6=r=>g=>T5(g,r).map(B=>YE(g,B,Hm(B))),GE=(r,g,B,H)=>{if(B.collapsed||!r.forall(E6))return Y.none();if(g.isSameTable){const re=r.bind(P6(H));return Y.some({start:re,end:re})}else{const re=Z3(B.startContainer,H),be=Z3(B.endContainer,H),Re=re.bind(tz(H)).bind(P6(H)),Ke=be.bind(nz(H)).bind(P6(H));return Y.some({start:Re,end:Ke})}},Dw=(r,g)=>He(r,B=>Fa(B,g)),R6=r=>us(Dw(r.cells,r.rng.start),Dw(r.cells,r.rng.end),(g,B)=>r.cells.slice(g,B+1)),KE=(r,g,B)=>r.exists(H=>XE(H,B)&&x3(H.start,g)),rz=(r,g)=>{const{startTable:B,endTable:H}=g,re=r.cloneRange();return B.each(be=>re.setStartAfter(be.dom)),H.each(be=>re.setEndBefore(be.dom)),re},jW=(r,g,B,H)=>GE(r,g,B,H).bind(({start:re,end:be})=>re.or(be)).bind(re=>{const{isSameTable:be}=g,Re=R6(re).getOr([]);if(be&&re.cells.length===Re.length)return Y.some(Iw.fullTable(re.table));if(Re.length>0){if(be)return Y.some(Iw.partialTable(Re,Y.none()));{const Ke=rz(B,g);return Y.some(Iw.partialTable(Re,Y.some({...g,rng:Ke})))}}else return Y.none()}),oz=(r,g,B,H)=>GE(r,g,B,H).bind(({start:re,end:be})=>{const Re=re.bind(R6).getOr([]),Ke=be.bind(R6).getOr([]);if(Re.length>0&&Ke.length>0){const ct=rz(B,g);return Y.some(Iw.multiTable(Re,Ke,ct))}else return Y.none()}),iz=(r,g)=>{const B=Q3(r),H=ez(g,B),re=JB(g,B);return KE(H,g,B)?H.map(be=>Iw.singleCellTable(g,be.start)):re.isMultiTable?oz(H,re,g,B):jW(H,re,g,B)},JE=r=>ye(r,g=>{gc(g,"contenteditable"),rh(g)}),L6=(r,g)=>Y.from(r.dom.getParent(g,r.dom.isBlock)).map(sr.fromDom),az=(r,g,B)=>{B.each(H=>{g?ja(H):(rh(H),r.selection.setCursorLocation(H.dom,0))})},I6=(r,g,B,H)=>{const re=B.cloneRange();H?(re.setStart(B.startContainer,B.startOffset),re.setEndAfter(g.dom.lastChild)):(re.setStartBefore(g.dom.firstChild),re.setEnd(B.endContainer,B.endOffset)),D6(r,re,g,!1).each(be=>be())},e7=r=>{const g=g2(r),B=sr.fromDom(r.selection.getNode());Dr(B.dom)&&Pi(r.schema,B)?r.selection.setCursorLocation(B.dom,0):r.selection.collapse(!0),g.length>1&&de(g,H=>Fa(H,B))&&Es(B,"data-mce-selected","1")},t7=(r,g,B)=>Y.some(()=>{const H=r.selection.getRng(),re=B.bind(({rng:be,isStartInTable:Re})=>{const Ke=L6(r,Re?be.endContainer:be.startContainer);be.deleteContents(),az(r,Re,Ke.filter(U(Pi,r.schema)));const ct=Re?g[0]:g[g.length-1];return I6(r,ct,H,Re),Pi(r.schema,ct)?Y.none():Y.some(Re?g.slice(1):g.slice(0,-1))}).getOr(g);JE(re),e7(r)}),sz=(r,g,B,H)=>Y.some(()=>{const re=r.selection.getRng(),be=g[0],Re=B[B.length-1];I6(r,be,re,!0),I6(r,Re,re,!1);const Ke=Pi(r.schema,be)?g:g.slice(1),ct=Pi(r.schema,Re)?B:B.slice(0,-1);JE(Ke.concat(ct)),H.deleteContents(),e7(r)}),D6=(r,g,B,H=!0)=>Y.some(()=>{KB(r,g,B,H)}),lz=(r,g)=>Y.some(()=>Ew(r,!1,g)),cz=(r,g,B)=>iz(g,B).bind(H=>H.fold(U(D6,r),U(lz,r),U(t7,r),U(sz,r))),uz=(r,g)=>C5(r,g),fz=(r,g,B,H)=>B6(g,H).fold(()=>cz(r,g,B),re=>uz(r,re)),n7=(r,g,B)=>{const H=sr.fromDom(r.getBody()),re=r.selection.getRng();return B.length!==0?t7(r,B,Y.none()):fz(r,H,re,g)},r7=(r,g)=>De(Xb(g,r),N1),B6=(r,g)=>De(Xb(g,r),Ju("caption")),dz=(r,g,B,H,re)=>uv(B,r.getBody(),re).bind(be=>r7(g,sr.fromDom(be.getNode())).bind(Re=>Fa(Re,H)?Y.none():Y.some(k))),C5=(r,g)=>Y.some(()=>{rh(g),r.selection.setCursorLocation(g.dom,0)}),hz=(r,g,B,H)=>lh(r.dom).bind(re=>Xp(r.dom).map(be=>g?B.isEqual(re)&&H.isEqual(be):B.isEqual(be)&&H.isEqual(re))).getOr(!0),pz=(r,g)=>C5(r,g),o7=(r,g,B)=>B6(r,sr.fromDom(B.getNode())).fold(()=>Y.some(k),H=>ga(!Fa(H,g),k)),z6=(r,g,B,H,re)=>uv(B,r.getBody(),re).fold(()=>Y.some(k),be=>hz(H,B,re,be)?pz(r,H):o7(g,H,be)),i7=(r,g,B,H)=>{const re=qr.fromRangeStart(r.selection.getRng());return r7(B,H).bind(be=>Pi(r.schema,be,{checkRootAsContent:!1})?C5(r,be):dz(r,B,g,be,re))},F6=(r,g,B,H)=>{const re=qr.fromRangeStart(r.selection.getRng());return Pi(r.schema,H)?C5(r,H):z6(r,B,g,H,re)},a7=(r,g)=>r?NE(g):$E(g),N6=(r,g)=>{const B=qr.fromRangeStart(r.selection.getRng());return a7(g,B)||Yp(g,r.getBody(),B).exists(H=>a7(g,H))},s7=(r,g,B)=>{const H=sr.fromDom(r.getBody());return B6(H,B).fold(()=>i7(r,g,H,B).orThunk(()=>ga(N6(r,g),k)),re=>F6(r,g,H,re))},Bw=(r,g)=>{const B=sr.fromDom(r.selection.getStart(!0)),H=g2(r);return r.selection.isCollapsed()&&H.length===0?s7(r,g,B):n7(r,B,H)},Kb=(r,g)=>{let B=g;for(;B&&B!==r;){if(Sn(B)||rr(B))return B;B=B.parentNode}return null},mz=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],q3=mo.each,A5=r=>{const g=r.dom,B=new Set(r.serializer.getTempAttrs()),H=(be,Re)=>{if(be.nodeName!==Re.nodeName||be.nodeType!==Re.nodeType)return!1;const Ke=kt=>{const Wt={};return q3(g.getAttribs(kt),Jt=>{const ln=Jt.nodeName.toLowerCase();ln!=="style"&&!re(ln)&&(Wt[ln]=g.getAttrib(kt,ln))}),Wt},ct=(kt,Wt)=>{for(const Jt in kt)if(_t(kt,Jt)){const ln=Wt[Jt];if(M(ln)||kt[Jt]!==ln)return!1;delete Wt[Jt]}for(const Jt in Wt)if(_t(Wt,Jt))return!1;return!0};return ne(be)&&ne(Re)&&(!ct(Ke(be),Ke(Re))||!ct(g.parseStyle(g.getAttrib(be,"style")),g.parseStyle(g.getAttrib(Re,"style"))))?!1:!Kp(be)&&!Kp(Re)},re=be=>de(mz,Re=>xr(be,Re))||B.has(be);return{compare:H,isAttributeInternal:re}},$6=r=>["h1","h2","h3","h4","h5","h6"].includes(r.name),W3=r=>r.name==="summary",C2=(r,g)=>{let B=r;for(;B=B.walk();)g(B)},l7=(r,g,B,H)=>{const re=B.name;for(let be=0,Re=r.length;be{const H={nodes:{},attributes:{}};return B.firstChild&&C2(B,re=>{l7(r,g,re,H)}),H},gz=(r,g)=>{const B=(H,re)=>{Ge(H,be=>{const Re=Ee(be.nodes);ye(be.filter.callbacks,Ke=>{for(let ct=Re.length-1;ct>=0;ct--){const kt=Re[ct];(!(re?kt.attr(be.filter.name)!==void 0:kt.name===be.filter.name)||T(kt.parent))&&Re.splice(ct,1)}Re.length>0&&Ke(Re,be.filter.name,g)})})};B(r.nodes,!1),B(r.attributes,!0)},c7=(r,g,B,H={})=>{const re=QW(r,g,B);gz(re,H)},V6=(r,g,B,H)=>{if((r.pad_empty_with_br||g.insert)&&B(H)){const be=new yp("br",1);g.insert&&be.attr("data-mce-bogus","1"),H.empty().append(be)}else H.empty().append(new yp("#text",3)).value=Ea},HW=r=>{var g;return Jb(r,"#text")&&((g=r==null?void 0:r.firstChild)===null||g===void 0?void 0:g.value)===Ea},Jb=(r,g)=>{const B=r==null?void 0:r.firstChild;return E(B)&&B===r.lastChild&&B.name===g},zw=(r,g)=>{const B=r.getElementRule(g.name);return(B==null?void 0:B.paddEmpty)===!0},U6=(r,g,B,H)=>H.isEmpty(g,B,re=>zw(r,re)),Vd=(r,g)=>E(r)&&(g(r)||r.name==="br"),ZW=r=>{let g;for(let B=r;B;B=B.parent){const H=B.attr("contenteditable");if(H==="false")break;H==="true"&&(g=B)}return Y.from(g)},u7=(r,g,B=r.parent)=>{if(g.getSpecialElements()[r.name])r.empty().remove();else{const H=r.children();for(const re of H)B&&!g.isValidChild(B.name,re.name)&&u7(re,g,B);r.unwrap()}},gv=(r,g,B,H=k)=>{const re=g.getTextBlockElements(),be=g.getNonEmptyElements(),Re=g.getWhitespaceElements(),Ke=mo.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),ct=new Set,kt=Wt=>Wt!==B&&!Ke[Wt.name];for(let Wt=0;Wt1)if(vz(g,Jt,ln))u7(Jt,g);else{Rn.reverse(),kn=Rn[0].clone(),H(kn);let qn=kn;for(let pr=0;pr0?(Vn=Rn[pr].clone(),H(Vn),qn.append(Vn)):Vn=qn;for(let Tr=Rn[pr].firstChild;Tr&&Tr!==Rn[pr+1];){const wr=Tr.next;Vn.append(Tr),Tr=wr}qn=Vn}U6(g,be,Re,kn)?ln.insert(Jt,Rn[0],!0):(ln.insert(kn,Rn[0],!0),ln.insert(Jt,kn)),ln=Rn[0],(U6(g,be,Re,ln)||Jb(ln,"br"))&&ln.empty().remove()}else if(Jt.parent){if(Jt.name==="li"){let qn=Jt.prev;if(qn&&(qn.name==="ul"||qn.name==="ol")){qn.append(Jt);continue}if(qn=Jt.next,qn&&(qn.name==="ul"||qn.name==="ol")&&qn.firstChild){qn.insert(Jt,qn.firstChild,!0);continue}const pr=new yp("ul",1);H(pr),Jt.wrap(pr);continue}if(g.isValidChild(Jt.parent.name,"div")&&g.isValidChild("div",Jt.name)){const qn=new yp("div",1);H(qn),Jt.wrap(qn)}else u7(Jt,g)}}},qs=(r,g)=>{let B=r;for(;B;){if(B.name===g)return!0;B=B.parent}return!1},vz=(r,g,B=g.parent)=>B?r.children[g.name]&&!r.isValidChild(B.name,g.name)||g.name==="a"&&qs(B,"a")?!0:W3(B)&&$6(g)?!((B==null?void 0:B.firstChild)===g&&(B==null?void 0:B.lastChild)===g):!1:!1,qW=(r,g,B,H)=>{const re=document.createRange();return re.setStart(r,g),re.setEnd(B,H),re},WW=r=>{const g=qr.fromRangeStart(r),B=qr.fromRangeEnd(r),H=r.commonAncestorContainer;return Yp(!1,H,B).map(re=>!Wp(g,B,H)&&Wp(g,re,H)?qW(g.container(),g.offset(),re.container(),re.offset()):r).getOr(r)},Wl=r=>r.collapsed?r:WW(r),yz=r=>E(r.firstChild)&&r.firstChild===r.lastChild,M5=r=>r.name==="br"||r.value===Ea,E5=(r,g)=>r.getBlockElements()[g.name]&&yz(g)&&M5(g.firstChild),j6=(r,g)=>{const B=r.getNonEmptyElements();return E(g)&&(g.isEmpty(B)||E5(r,g))},Q6=(r,g)=>{let B=g.firstChild,H=g.lastChild;return B&&B.name==="meta"&&(B=B.next),H&&H.attr("id")==="mce_marker"&&(H=H.prev),j6(r,H)&&(H=H==null?void 0:H.prev),!B||B!==H?!1:B.name==="ul"||B.name==="ol"},bz=r=>{var g,B;const H=r.firstChild,re=r.lastChild;return H&&H.nodeName==="META"&&((g=H.parentNode)===null||g===void 0||g.removeChild(H)),re&&re.id==="mce_marker"&&((B=re.parentNode)===null||B===void 0||B.removeChild(re)),r},Hue=(r,g,B)=>{const H=g.serialize(B),re=r.createFragment(H);return bz(re)},YW=r=>{var g;return Te((g=r==null?void 0:r.childNodes)!==null&&g!==void 0?g:[],B=>B.nodeName==="LI")},Zue=r=>r.data===Ea||On(r),XW=r=>E(r==null?void 0:r.firstChild)&&r.firstChild===r.lastChild&&Zue(r.firstChild),GW=r=>!r.firstChild||XW(r),que=r=>r.length>0&&GW(r[r.length-1])?r.slice(0,-1):r,f7=(r,g)=>{const B=r.getParent(g,r.isBlock);return B&&B.nodeName==="LI"?B:null},Td=(r,g)=>!!f7(r,g),xz=(r,g)=>{const B=g.cloneRange(),H=g.cloneRange();return B.setStartBefore(r),H.setEndAfter(r),[B.cloneContents(),H.cloneContents()]},_z=(r,g)=>{const B=qr.before(r),re=Sd(g).next(B);return re?re.toRange():null},wz=(r,g)=>{const B=qr.after(r),re=Sd(g).prev(B);return re?re.toRange():null},KW=(r,g,B,H)=>{const re=xz(r,H),be=r.parentNode;return be&&(be.insertBefore(re[0],r),mo.each(g,Re=>{be.insertBefore(Re,r)}),be.insertBefore(re[1],r),be.removeChild(r)),wz(g[g.length-1],B)},JW=(r,g,B)=>{const H=r.parentNode;return H&&mo.each(g,re=>{H.insertBefore(re,r)}),_z(r,B)},Zm=(r,g,B,H)=>(H.insertAfter(g.reverse(),r),wz(g[0],B)),vv=(r,g,B,H)=>{const re=Hue(g,r,H),be=f7(g,B.startContainer),Re=que(YW(re.firstChild)),Ke=1,ct=2,kt=g.getRoot(),Wt=Jt=>{const ln=qr.fromRangeStart(B),kn=Sd(g.getRoot()),Vn=Jt===Ke?kn.prev(ln):kn.next(ln),Rn=Vn==null?void 0:Vn.getNode();return Rn?f7(g,Rn)!==be:!0};return be?Wt(Ke)?JW(be,Re,kt):Wt(ct)?Zm(be,Re,kt,g):KW(be,Re,kt,B):null},eY=["pre"],d7=(r,g,B,H)=>{var re;const be=g.firstChild,Re=g.lastChild,Ke=Re.attr("data-mce-type")==="bookmark"?Re.prev:Re,ct=be===Ke,kt=ce(eY,be.name);if(ct&&kt){const Wt=be.attr("contenteditable")!=="false",Jt=((re=r.getParent(B,r.isBlock))===null||re===void 0?void 0:re.nodeName.toLowerCase())===be.name,ln=Y.from(Kb(H,B)).forall(Sn);return Wt&&Jt&&ln}else return!1},P5=Dr,tY=(r,g,B)=>{if(E(B)){const H=r.getParent(g.endContainer,P5);return B===H&&x3(sr.fromDom(B),g)}else return!1},nY=(r,g,B)=>{var H;if(B.getAttribute("data-mce-bogus")==="all")(H=B.parentNode)===null||H===void 0||H.insertBefore(r.dom.createFragment(g),B);else{const re=B.firstChild,be=B.lastChild;!re||re===be&&re.nodeName==="BR"?r.dom.setHTML(B,g):r.selection.setContent(g,{no_events:!0})}},R5=(r,g,B)=>{Y.from(r.getParent(g,"td,th")).map(sr.fromDom).each(H=>H_(H,B))},H6=(r,g)=>{const B=r.schema.getTextInlineElements(),H=r.dom;if(g){const re=r.getBody(),be=A5(r),Re="*[data-mce-fragment]",Ke=H.select(Re);mo.each(Ke,ct=>{const kt=ln=>E(B[ln.nodeName.toLowerCase()]),Wt=ln=>ln.childNodes.length===1;if((ln=>!(xB(H,ln)||hW(H,ln)))(ct)&&kt(ct)&&Wt(ct)){const ln=V3(H,ct),kn=(pr,Tr)=>Oe(pr,wr=>ce(Tr,wr)),Vn=pr=>Wt(ct)&&H.is(pr,Re)&&kt(pr)&&(pr.nodeName===ct.nodeName&&kn(ln,V3(H,pr))||Vn(pr.children[0])),Rn=pr=>E(pr)&&pr!==re&&(be.compare(ct,pr)||Rn(pr.parentElement)),qn=pr=>E(pr)&&pr!==re&&H.is(pr,Re)&&(mW(H,ct,pr)||qn(pr.parentElement));(Vn(ct.children[0])||Rn(ct.parentElement)&&!qn(ct.parentElement))&&H.remove(ct,!0)}})}},h7=r=>{let g=r;for(;g=g.walk();)g.type===1&&g.attr("data-mce-fragment","1")},rY=r=>{mo.each(r.getElementsByTagName("*"),g=>{g.removeAttribute("data-mce-fragment")})},yv=r=>!!r.getAttribute("data-mce-fragment"),oY=(r,g)=>E(g)&&!r.schema.getVoidElements()[g.nodeName],iY=(r,g)=>{var B,H,re;let be;const Re=r.dom,Ke=r.selection;if(!g)return;Ke.scrollIntoView(g);const ct=Kb(r.getBody(),g);if(ct&&Re.getContentEditable(ct)==="false"){Re.remove(g),Ke.select(ct);return}let kt=Re.createRng();const Wt=g.previousSibling;if(Nt(Wt)){kt.setStart(Wt,(H=(B=Wt.nodeValue)===null||B===void 0?void 0:B.length)!==null&&H!==void 0?H:0);const kn=g.nextSibling;Nt(kn)&&(Wt.appendData(kn.data),(re=kn.parentNode)===null||re===void 0||re.removeChild(kn))}else kt.setStartBefore(g),kt.setEndBefore(g);const Jt=kn=>{let Vn=qr.fromRangeStart(kn);return Vn=Sd(r.getBody()).next(Vn),Vn==null?void 0:Vn.toRange()},ln=Re.getParent(g,Re.isBlock);if(Re.remove(g),ln&&Re.isEmpty(ln)){const kn=P5(ln);vu(sr.fromDom(ln)),kt.setStart(ln,0),kt.setEnd(ln,0),!kn&&!yv(ln)&&(be=Jt(kt))?(kt=be,Re.remove(ln)):Re.add(ln,Re.create("br",kn?{}:{"data-mce-bogus":"1"}))}Ke.setRng(kt)},f0=r=>{const g=r.dom,B=Wl(r.selection.getRng());r.selection.setRng(B);const H=g.getParent(B.startContainer,P5);tY(g,B,H)?D6(r,B,sr.fromDom(H)):B.startContainer===B.endContainer&&B.endOffset-B.startOffset===1&&Nt(B.startContainer.childNodes[B.startOffset])?B.deleteContents():r.getDoc().execCommand("Delete",!1)},L5=r=>{for(let g=r;g;g=g.walk())if(g.attr("id")==="mce_marker")return Y.some(g);return Y.none()},n1=(r,g,B)=>{var H;return de(B.children(),$6)&&((H=r.getParent(g,r.isBlock))===null||H===void 0?void 0:H.nodeName)==="SUMMARY"},aY=(r,g,B)=>{var H,re;const be=r.selection,Re=r.dom,Ke=r.parser,ct=B.merge,kt=Yb({validate:!0},r.schema),Wt='';B.preserve_zwsp||(g=yd(g)),g.indexOf("{$caret}")===-1&&(g+="{$caret}"),g=g.replace(/\{\$caret\}/,Wt);let Jt=be.getRng();const ln=Jt.startContainer,kn=r.getBody();ln===kn&&be.isCollapsed()&&Re.isBlock(kn.firstChild)&&oY(r,kn.firstChild)&&Re.isEmpty(kn.firstChild)&&(Jt=Re.createRng(),Jt.setStart(kn.firstChild,0),Jt.setEnd(kn.firstChild,0),be.setRng(Jt)),be.isCollapsed()||f0(r);const Vn=be.getNode(),Rn={context:Vn.nodeName.toLowerCase(),data:B.data,insert:!0},qn=Ke.parse(g,Rn);if(B.paste===!0&&Q6(r.schema,qn)&&Td(Re,Vn))return Jt=vv(kt,Re,be.getRng(),qn),Jt&&be.setRng(Jt),g;B.paste===!0&&d7(Re,qn,Vn,r.getBody())&&((H=qn.firstChild)===null||H===void 0||H.unwrap()),h7(qn);let pr=qn.lastChild;if(pr&&pr.attr("id")==="mce_marker"){const Tr=pr;for(pr=pr.prev;pr;pr=pr.walk(!0))if(pr.type===3||!Re.isBlock(pr.name)){pr.parent&&r.schema.isValidChild(pr.parent.name,"span")&&pr.parent.insert(Tr,pr,pr.name==="br");break}}if(r._selectionOverrides.showBlockCaretContainer(Vn),!Rn.invalid&&!n1(Re,Vn,qn))g=kt.serialize(qn),nY(r,g,Vn);else{r.selection.setContent(Wt);let Tr=be.getNode(),wr;const Ur=r.getBody();for(pn(Tr)?Tr=wr=Ur:wr=Tr;wr&&wr!==Ur;)Tr=wr,wr=wr.parentNode;g=Tr===Ur?Ur.innerHTML:Re.getOuterHTML(Tr);const wo=Ke.parse(g),jo=L5(wo),di=jo.bind(ZW).getOr(wo);jo.each(bi=>bi.replace(qn));const lo=qn.children(),eo=(re=qn.parent)!==null&&re!==void 0?re:wo;qn.unwrap();const xo=Te(lo,bi=>vz(r.schema,bi,eo));gv(xo,r.schema,di),c7(Ke.getNodeFilters(),Ke.getAttributeFilters(),wo),g=kt.serialize(wo),Tr===Ur?Re.setHTML(Ur,g):Re.setOuterHTML(Tr,g)}return H6(r,ct),iY(r,Re.get("mce_marker")),rY(r.getBody()),R5(Re,be.getStart(),r.schema),Wf(r.schema,r.getBody(),be.getStart()),g},Ks=r=>r instanceof yp,Y3=r=>{Mw(r)&&lh(r.getBody()).each(g=>{const B=g.getNode(),H=Et(B)?lh(B).getOr(g):g;r.selection.setRng(H.toRange())})},X3=(r,g,B)=>{r.dom.setHTML(r.getBody(),g),B!==!0&&Y3(r)},Oz=(r,g,B,H)=>{if(B=yd(B),B.length===0||/^\s+$/.test(B)){const re='
    ';g.nodeName==="TABLE"?B=""+re+"":/^(UL|OL)$/.test(g.nodeName)&&(B="
  • "+re+"
  • ");const be=dc(r);return r.schema.isValidChild(g.nodeName.toLowerCase(),be.toLowerCase())?(B=re,B=r.dom.createHTML(be,Jf(r),B)):B||(B=re),X3(r,B,H.no_selection),{content:B,html:B}}else{H.format!=="raw"&&(B=Yb({validate:!1},r.schema).serialize(r.parser.parse(B,{isRootContent:!0,insert:!0})));const re=iy(sr.fromDom(g))?B:mo.trim(B);return X3(r,re,H.no_selection),{content:re,html:re}}},p7=(r,g,B,H)=>{c7(r.parser.getNodeFilters(),r.parser.getAttributeFilters(),B);const re=Yb({validate:!1},r.schema).serialize(B),be=yd(iy(sr.fromDom(g))?re:mo.trim(re));return X3(r,be,H.no_selection),{content:B,html:be}},m7=(r,g,B)=>Y.from(r.getBody()).map(H=>Ks(g)?p7(r,H,g,B):Oz(r,H,g,B)).getOr({content:g,html:Ks(B.content)?"":B.content}),Sz=r=>C(r)?r:oe,g7=(r,g,B)=>{let H=r.dom;const re=Sz(B);for(;H.parentNode;){H=H.parentNode;const be=sr.fromDom(H),Re=g(be);if(Re.isSome())return Re;if(re(be))break}return Y.none()},v7=(r,g,B)=>{const H=g(r),re=Sz(B);return H.orThunk(()=>re(r)?Y.none():g7(r,g,re))},Z6=w3,y7=(r,g,B)=>{const H=r.formatter.get(B);if(H)for(let re=0;re{const be=r.dom.getRoot();if(g===be)return!1;const Re=r.dom.getParent(g,Ke=>y7(r,Ke,B)?!0:Ke.parentNode===be||!!Py(r,Ke,B,H,!0));return!!Py(r,Re,B,H,re)},D5=(r,g,B)=>Ef(B)&&Z6(g,B.inline)||hv(B)&&Z6(g,B.block)?!0:$m(B)?ne(g)&&r.is(g,B.selector):!1,B5=(r,g,B,H,re,be)=>{const Re=B[H],Ke=H==="attributes";if(C(B.onmatch))return B.onmatch(g,B,H);if(Re){if(mn(Re)){for(let ct=0;ct{const be=r.formatter.get(B),Re=r.dom;if(be&&ne(g))for(let Ke=0;Ke{if(H)return I5(r,H,g,B,re);if(H=r.selection.getNode(),I5(r,H,g,B,re))return!0;const be=r.selection.getStart();return!!(be!==H&&I5(r,be,g,B,re))},sY=(r,g,B)=>{const H=[],re={},be=r.selection.getStart();return r.dom.getParent(be,Re=>{for(let Ke=0;Ke{const B=re=>Fa(re,sr.fromDom(r.getBody())),H=(re,be)=>Py(r,re.dom,be)?Y.some(be):Y.none();return Y.from(r.selection.getStart(!0)).bind(re=>v7(sr.fromDom(re),be=>Ne(g,Re=>H(be,Re)),B)).getOrNull()},cY=(r,g)=>{const B=r.formatter.get(g),H=r.dom;if(B&&r.selection.isEditable()){const re=r.selection.getStart(),be=x2(H,re);for(let Re=B.length-1;Re>=0;Re--){const Ke=B[Re];if(!$m(Ke))return!0;for(let ct=be.length-1;ct>=0;ct--)if(H.is(be[ct],Ke.selector))return!0}}return!1},kz=(r,g,B)=>Ie(B,(H,re)=>{const be=XM(r,re);return r.formatter.matchNode(g,re,{},be)?H.concat([re]):H},[]),z5=nc,uY=(r,g)=>r.importNode(g,!0),x7=r=>{if(r){const g=new kc(r,r);for(let B=g.current();B;B=g.next())if(Nt(B))return B}return null},q6=r=>{const g=sr.fromTag("span");return ef(g,{id:v3,"data-mce-bogus":"1","data-mce-type":"format-caret"}),r&&Ps(g,sr.fromText(z5)),g},fY=r=>{const g=x7(r);return g&&g.data.charAt(0)===z5&&g.deleteData(0,1),g},_7=(r,g,B)=>{const H=r.dom,re=r.selection;if(GT(g))Ew(r,!1,sr.fromDom(g),B,!0);else{const be=re.getRng(),Re=H.getParent(g,H.isBlock),Ke=be.startContainer,ct=be.startOffset,kt=be.endContainer,Wt=be.endOffset,Jt=fY(g);H.remove(g,!0),Ke===Jt&&ct>0&&be.setStart(Jt,ct-1),kt===Jt&&Wt>0&&be.setEnd(Jt,Wt-1),Re&&H.isEmpty(Re)&&rh(sr.fromDom(Re)),re.setRng(be)}},W6=(r,g,B)=>{const H=r.dom,re=r.selection;if(g)_7(r,g,B);else if(g=Vb(r.getBody(),re.getStart()),!g)for(;g=H.get(v3);)_7(r,g,B)},dY=(r,g,B)=>{var H,re;const be=r.dom,Re=be.getParent(B,U(e5,r.schema));Re&&be.isEmpty(Re)?(H=B.parentNode)===null||H===void 0||H.replaceChild(g,B):(wS(sr.fromDom(B)),be.isEmpty(B)?(re=B.parentNode)===null||re===void 0||re.replaceChild(g,B):be.insertAfter(g,B))},w7=(r,g)=>(r.appendChild(g),g),Ag=(r,g)=>{var B;const H=Pe(r,(be,Re)=>w7(be,Re.cloneNode(!1)),g),re=(B=H.ownerDocument)!==null&&B!==void 0?B:document;return w7(H,re.createTextNode(z5))},hY=(r,g,B,H,re,be)=>{const Re=r.formatter,Ke=r.dom,ct=Te(nt(Re.get()),Jt=>Jt!==H&&!jn(Jt,"removeformat")),kt=kz(r,B,ct);if(Te(kt,Jt=>!k3(r,Jt,H)).length>0){const Jt=B.cloneNode(!1);return Ke.add(g,Jt),Re.remove(H,re,Jt,be),Ke.remove(Jt),Y.some(Jt)}else return Y.none()},Tz=(r,g,B)=>{let H;const re=r.selection,be=r.formatter.get(g);if(!be)return;const Re=re.getRng();let Ke=Re.startOffset;const kt=Re.startContainer.nodeValue;H=Vb(r.getBody(),re.getStart());const Wt=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(kt&&Ke>0&&Ke{const re=r.dom,be=r.selection;let Re=!1;const Ke=r.formatter.get(g);if(!Ke)return;const ct=be.getRng(),kt=ct.startContainer,Wt=ct.startOffset;let Jt=kt;Nt(kt)&&(Wt!==kt.data.length&&(Re=!0),Jt=Jt.parentNode);const ln=[];let kn;for(;Jt;){if(Py(r,Jt,g,B,H)){kn=Jt;break}Jt.nextSibling&&(Re=!0),ln.push(Jt),Jt=Jt.parentNode}if(kn)if(Re){const Vn=be.getBookmark();ct.collapse(!0);let Rn=Oy(re,ct,Ke,!0);Rn=_i(Rn),r.formatter.remove(g,B,Rn,H),be.moveToBookmark(Vn)}else{const Vn=Vb(r.getBody(),kn),Rn=E(Vn)?re.getParents(kn.parentNode,q,Vn):[],qn=q6(!1).dom;dY(r,qn,Vn??kn);const pr=hY(r,qn,kn,g,B,H),Tr=Ag([...ln,...pr.toArray(),...Rn],qn);Vn&&_7(r,Vn,E(Vn)),be.setCursorLocation(Tr,1),re.isEmpty(kn)&&re.remove(kn)}},S7=(r,g,B)=>{const H=r.selection,re=r.getBody();W6(r,null,B),(g===8||g===46)&&H.isCollapsed()&&H.getStart().innerHTML===z5&&W6(r,Vb(re,H.getStart()),!0),(g===37||g===39)&&W6(r,Vb(re,H.getStart()),!0)},Cz=r=>Nt(r)&&Sr(r.data,Ea),Az=r=>{r.on("mouseup keydown",g=>{S7(r,g.keyCode,Cz(r.selection.getRng().endContainer))})},Mz=r=>{const g=q6(!1),B=Ag(r,g.dom);return{caretContainer:g,caretPosition:qr(B,0)}},Ez=(r,g)=>{const{caretContainer:B,caretPosition:H}=Mz(g);return Fc(sr.fromDom(r),B),ja(sr.fromDom(r)),H},k7=(r,g)=>{const{caretContainer:B,caretPosition:H}=Mz(g);return r.insertNode(B.dom),H},T7=(r,g)=>{if(Gp(g.dom))return!1;const B=r.schema.getTextInlineElements();return _t(B,la(g))&&!Gp(g.dom)&&!dt(g.dom)},em={},Pz=Fe(["pre"]),pY=(r,g)=>{em[r]||(em[r]=[]),em[r].push(g)},Wue=(r,g)=>{_t(em,r)&&ye(em[r],B=>{B(g)})};pY("pre",r=>{const g=r.selection.getRng(),B=re=>be=>{const Re=be.previousSibling;return Pz(Re)&&ce(re,Re)},H=(re,be)=>{const Re=sr.fromDom(be),Ke=Bc(Re).dom;ja(Re),gu(sr.fromDom(re),[sr.fromTag("br",Ke),sr.fromTag("br",Ke),...Oc(Re)])};if(!g.collapsed){const re=r.selection.getSelectedBlocks(),be=Te(Te(re,Pz),B(re));ye(be,Re=>{H(Re.previousSibling,Re)})}});const Y6=["fontWeight","fontStyle","color","fontSize","fontFamily"],mY=r=>_(r.styles)&&de(nt(r.styles),g=>ce(Y6,g)),Yue=r=>De(r,g=>Ef(g)&&g.inline==="span"&&mY(g)),Rz=(r,g)=>{const B=r.get(g);return A(B)?Yue(B):Y.none()},X6=(r,g)=>mp(g,qr.fromRangeStart(r)).isNone(),r1=(r,g)=>sh(g,qr.fromRangeEnd(r)).exists(B=>!On(B.getNode())||sh(g,B).isSome())===!1,G6=r=>g=>Mo(g)&&r.isEditable(g),K6=r=>{const g=r.getSelectedBlocks(),B=r.getRng();if(r.isCollapsed())return[];if(g.length===1)return X6(B,g[0])&&r1(B,g[0])?g:[];{const H=Xe(g).filter(Re=>X6(B,Re)).toArray(),re=tt(g).filter(Re=>r1(B,Re)).toArray(),be=g.slice(1,-1);return H.concat(be).concat(re)}},C7=r=>Te(K6(r),G6(r.dom)),Lz=r=>Te(r.getSelectedBlocks(),G6(r.dom)),J6=mo.each,A7=r=>ne(r)&&!Kp(r)&&!Gp(r)&&!dt(r),M7=(r,g)=>{for(let B=r;B;B=B[g]){if(Nt(B)&&Kn(B.data))return r;if(ne(B)&&!Kp(B))return B}return r},eC=(r,g,B)=>{const H=A5(r),re=ge(g)&&r.dom.isEditable(g),be=ge(B)&&r.dom.isEditable(B);if(re&&be){const Re=M7(g,"previousSibling"),Ke=M7(B,"nextSibling");if(H.compare(Re,Ke)){for(let ct=Re.nextSibling;ct&&ct!==Ke;){const kt=ct;ct=ct.nextSibling,Re.appendChild(kt)}return r.dom.remove(Ke),mo.each(mo.grep(Ke.childNodes),ct=>{Re.appendChild(ct)}),Re}}return B},Iz=(r,g,B,H)=>{var re;if(H&&g.merge_siblings!==!1){const be=(re=eC(r,pw(H),H))!==null&&re!==void 0?re:H;eC(r,be,pw(be,!0))}},Dz=(r,g,B)=>{if(g.clear_child_styles){const H=g.links?"*:not(a)":"*";J6(r.select(H,B),re=>{A7(re)&&r.isEditable(re)&&J6(g.styles,(be,Re)=>{r.setStyle(re,Re,"")})})}},E7=(r,g,B)=>{J6(r.childNodes,H=>{A7(H)&&(g(H)&&B(H),H.hasChildNodes()&&E7(H,g,B))})},Fw=(r,g)=>{g.nodeName==="SPAN"&&r.getAttribs(g).length===0&&r.remove(g,!0)},P7=(r,g)=>B=>!!(B&&O3(r,B,g)),Bz=(r,g,B)=>H=>{r.setStyle(H,g,B),H.getAttribute("style")===""&&H.removeAttribute("style"),Fw(r,H)},A2=aa.generate([{keep:[]},{rename:["name"]},{removed:[]}]),gY=/^(src|href|style)$/,R7=mo.each,tC=w3,vY=r=>/^(TR|TH|TD)$/.test(r.nodeName),zz=(r,g,B)=>r.isChildOf(g,B)&&g!==B&&!r.isBlock(B),L7=(r,g,B)=>{let H=g[B?"startContainer":"endContainer"],re=g[B?"startOffset":"endOffset"];if(ne(H)){const be=H.childNodes.length-1;!B&&re&&re--,H=H.childNodes[re>be?be:re]}return Nt(H)&&B&&re>=H.data.length&&(H=new kc(H,r.getBody()).next()||H),Nt(H)&&!B&&re===0&&(H=new kc(H,r.getBody()).prev()||H),H},Fz=(r,g)=>{const B=g?"firstChild":"lastChild",H=r[B];return vY(r)&&H?r.nodeName==="TR"&&H[B]||H:r},F5=(r,g,B,H)=>{var re;const be=r.create(B,H);return(re=g.parentNode)===null||re===void 0||re.insertBefore(be,g),be.appendChild(g),be},M2=(r,g,B,H,re)=>{const be=sr.fromDom(g),Re=sr.fromDom(r.create(H,re)),Ke=B?Pu(be):vh(be);return gu(Re,Ke),B?(Fc(be,Re),Hh(Re,be)):(si(be,Re),Ps(Re,be)),Re.dom},yY=(r,g)=>g.links&&r.nodeName==="A",Nz=(r,g,B)=>{const H=g.parentNode;let re;const be=r.dom,Re=dc(r);hv(B)&&H===be.getRoot()&&(!B.list_block||!tC(g,B.list_block))&&ye(Ee(g.childNodes),Ke=>{dv(r,Re,Ke.nodeName.toLowerCase())?re?re.appendChild(Ke):(re=F5(be,Ke,Re),be.setAttribs(re,Jf(r))):re=null}),!(KM(B)&&!tC(B.inline,g))&&be.remove(g,!0)},N5=(r,g,B)=>L(r)?{name:g,value:null}:{name:r,value:Hb(g,B)},I7=(r,g)=>{r.getAttrib(g,"style")===""&&(g.removeAttribute("style"),g.removeAttribute("data-mce-style"))},D7=(r,g,B,H,re)=>{let be=!1;R7(B.styles,(Re,Ke)=>{const{name:ct,value:kt}=N5(Ke,Re,H),Wt=Zb(kt,ct);(B.remove_similar||x(kt)||!ne(re)||tC(O3(r,re,ct),Wt))&&r.setStyle(g,ct,""),be=!0}),be&&I7(r,g)},bY=(r,g,B)=>{g==="removeformat"?ye(Lz(r.selection),H=>{ye(Y6,re=>r.dom.setStyle(H,re,"")),I7(r.dom,H)}):Rz(r.formatter,g).each(H=>{ye(Lz(r.selection),re=>D7(r.dom,re,H,B,null))})},B7=(r,g,B,H,re)=>{const be=r.dom,Re=A5(r),Ke=r.schema;if(Ef(g)&&cg(Ke,g.inline)&&xm(Ke,H)&&H.parentElement===r.getBody())return Nz(r,H,g),A2.removed();if(!g.ceFalseOverride&&H&&be.getContentEditableParent(H)==="false"||H&&!D5(be,H,g)&&!yY(H,g))return A2.keep();const ct=H,kt=g.preserve_attributes;if(Ef(g)&&g.remove==="all"&&A(kt)){const Wt=Te(be.getAttribs(ct),Jt=>ce(kt,Jt.name.toLowerCase()));if(be.removeAllAttribs(ct),ye(Wt,Jt=>be.setAttrib(ct,Jt.name,Jt.value)),Wt.length>0)return A2.rename("span")}if(g.remove!=="all"){D7(be,ct,g,B,re),R7(g.attributes,(Jt,ln)=>{const{name:kn,value:Vn}=N5(ln,Jt,B);if(g.remove_similar||x(Vn)||!ne(re)||tC(be.getAttrib(re,kn),Vn)){if(kn==="class"){const Rn=be.getAttrib(ct,kn);if(Rn){let qn="";if(ye(Rn.split(/\s+/),pr=>{/mce\-\w+/.test(pr)&&(qn+=(qn?" ":"")+pr)}),qn){be.setAttrib(ct,kn,qn);return}}}if(gY.test(kn)&&ct.removeAttribute("data-mce-"+kn),kn==="style"&&Fe(["li"])(ct)&&be.getStyle(ct,"list-style-type")==="none"){ct.removeAttribute(kn),be.setStyle(ct,"list-style-type","none");return}kn==="class"&&ct.removeAttribute("className"),ct.removeAttribute(kn)}}),R7(g.classes,Jt=>{Jt=Hb(Jt,B),(!ne(re)||be.hasClass(re,Jt))&&be.removeClass(ct,Jt)});const Wt=be.getAttribs(ct);for(let Jt=0;Jt{let be;return g.parentNode&&ye(x2(r.dom,g.parentNode).reverse(),Re=>{if(!be&&ne(Re)&&Re.id!=="_start"&&Re.id!=="_end"){const Ke=Py(r,Re,B,H,re);Ke&&Ke.split!==!1&&(be=Re)}}),be},Nw=(r,g,B,H)=>B7(r,g,B,H,H).fold($(H),re=>(r.dom.createFragment().appendChild(H),r.dom.rename(H,re)),$(null)),$z=(r,g,B,H,re,be,Re,Ke)=>{var ct,kt;let Wt,Jt;const ln=r.dom;if(B){const kn=B.parentNode;for(let Vn=H.parentNode;Vn&&Vn!==kn;Vn=Vn.parentNode){let Rn=ln.clone(Vn,!1);for(let qn=0;qn{const be=r.formatter.get(g),Re=be[0],Ke=r.dom,ct=r.selection,kt=Rn=>{const qn=xY(r,Rn,g,B,re);return $z(r,be,qn,Rn,Rn,!0,Re,B)},Wt=Rn=>Kp(Rn)&&ne(Rn)&&(Rn.id==="_start"||Rn.id==="_end"),Jt=Rn=>de(be,qn=>E2(r,qn,B,Rn,Rn)),ln=Rn=>{const qn=Ee(Rn.childNodes),Tr=Jt(Rn)||de(be,wo=>D5(Ke,Rn,wo)),wr=Rn.parentNode;if(!Tr&&E(wr)&&u0(Re)&&Jt(wr),Re.deep&&qn.length)for(let wo=0;wo{ne(Rn)&&r.dom.getStyle(Rn,"text-decoration")===wo&&Rn.parentNode&&XT(Ke,Rn.parentNode)===wo&&E2(r,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:wo}},void 0,Rn)})},kn=Rn=>{const qn=Ke.get(Rn?"_start":"_end");if(qn){let pr=qn[Rn?"firstChild":"lastChild"];return Wt(pr)&&(pr=pr[Rn?"firstChild":"lastChild"]),Nt(pr)&&pr.data.length===0&&(pr=Rn?qn.previousSibling||qn.nextSibling:qn.nextSibling||qn.previousSibling),Ke.remove(qn,!0),pr}else return null},Vn=Rn=>{let qn,pr,Tr=Oy(Ke,Rn,be,Rn.collapsed);if(Re.split){if(Tr=_i(Tr),qn=L7(r,Tr,!0),pr=L7(r,Tr),qn!==pr){if(qn=Fz(qn,!0),pr=Fz(pr,!1),zz(Ke,qn,pr)){const Ur=Y.from(qn.firstChild).getOr(qn);kt(M2(Ke,Ur,!0,"span",{id:"_start","data-mce-type":"bookmark"})),kn(!0);return}if(zz(Ke,pr,qn)){const Ur=Y.from(pr.lastChild).getOr(pr);kt(M2(Ke,Ur,!1,"span",{id:"_end","data-mce-type":"bookmark"})),kn(!1);return}qn=F5(Ke,qn,"span",{id:"_start","data-mce-type":"bookmark"}),pr=F5(Ke,pr,"span",{id:"_end","data-mce-type":"bookmark"});const wr=Ke.createRng();wr.setStartAfter(qn),wr.setEndBefore(pr),yw(Ke,wr,Ur=>{ye(Ur,wo=>{!Kp(wo)&&!Kp(wo.parentNode)&&kt(wo)})}),kt(qn),kt(pr),qn=kn(!0),pr=kn()}else qn=pr=kt(qn);Tr.startContainer=qn.parentNode?qn.parentNode:qn,Tr.startOffset=Ke.nodeIndex(qn),Tr.endContainer=pr.parentNode?pr.parentNode:pr,Tr.endOffset=Ke.nodeIndex(pr)+1}yw(Ke,Tr,wr=>{ye(wr,ln)})};if(H){if(b2(H)){const Rn=Ke.createRng();Rn.setStartBefore(H),Rn.setEndAfter(H),Vn(Rn)}else Vn(H);Jp(r,g,H,B);return}!ct.isCollapsed()||!Ef(Re)||g2(r).length?(K0(r,()=>y2(r,Vn),Rn=>Ef(Re)&&b7(r,g,B,Rn)),r.nodeChanged()):O7(r,g,B,re),bY(r,g,B),Jp(r,g,H,B)},z7=(r,g,B,H,re)=>{(H||r.selection.isEditable())&&Vz(r,g,B,H,re)},E2=(r,g,B,H,re)=>B7(r,g,B,H,re).fold(oe,be=>(r.dom.rename(H,be),!0),q),F7=mo.each,_Y=(r,g,B,H)=>{const re=be=>{if(ge(be)&&ne(be.parentNode)&&r.isEditable(be)){const Re=XT(r,be.parentNode);r.getStyle(be,"color")&&Re?r.setStyle(be,"text-decoration",Re):r.getStyle(be,"text-decoration")===Re&&r.setStyle(be,"text-decoration",null)}};g.styles&&(g.styles.color||g.styles.textDecoration)&&(mo.walk(H,re,"childNodes"),re(H))},Uz=(r,g,B,H)=>{if(g.styles&&g.styles.backgroundColor){const re=P7(r,"fontSize");E7(H,be=>re(be)&&r.isEditable(be),Bz(r,"backgroundColor",Hb(g.styles.backgroundColor,B)))}},wY=(r,g,B,H)=>{if(Ef(g)&&(g.inline==="sub"||g.inline==="sup")){const re=P7(r,"fontSize");E7(H,Re=>re(Re)&&r.isEditable(Re),Bz(r,"fontSize",""));const be=Te(r.select(g.inline==="sup"?"sub":"sup",H),r.isEditable);r.remove(be,!0)}},OY=(r,g,B,H)=>{F7(g,re=>{Ef(re)&&F7(r.dom.select(re.inline,H),be=>{A7(be)&&E2(r,re,B,be,re.exact?be:null)}),Dz(r.dom,re,H)})},nC=(r,g,B,H,re)=>{const be=re.parentNode;Py(r,be,B,H)&&E2(r,g,H,re)||g.merge_with_parents&&be&&r.dom.getParent(be,Re=>Py(r,Re,B,H)?(E2(r,g,H,re),!0):!1)},$5=mo.each,N7=(r,g,B,H)=>{if(hy(r)&&Ef(g)&&B.parentNode){const re=hb(r.schema),be=Bd(sr.fromDom(B),Re=>Gp(Re.dom));return nn(re,H)&&ba(r.schema,B.parentNode,{skipBogus:!1,includeZwsp:!0})&&!be}else return!1},jz=(r,g,B,H)=>{if($5(B.styles,(re,be)=>{r.setStyle(g,be,Hb(re,H))}),B.styles){const re=r.getAttrib(g,"style");re&&r.setAttrib(g,"data-mce-style",re)}},SY=(r,g,B,H)=>{const re=r.formatter.get(g),be=re[0],Re=!H&&r.selection.isCollapsed(),Ke=r.dom,ct=r.selection,kt=(Vn,Rn=be)=>{C(Rn.onformat)&&Rn.onformat(Vn,Rn,B,H),jz(Ke,Vn,Rn,B),$5(Rn.attributes,(qn,pr)=>{Ke.setAttrib(Vn,pr,Hb(qn,B))}),$5(Rn.classes,qn=>{const pr=Hb(qn,B);Ke.hasClass(Vn,pr)||Ke.addClass(Vn,pr)})},Wt=(Vn,Rn)=>{let qn=!1;return $5(Vn,pr=>$m(pr)?Ke.getContentEditable(Rn)==="false"&&!pr.ceFalseOverride||E(pr.collapsed)&&pr.collapsed!==Re?!0:Ke.is(Rn,pr.selector)&&!Gp(Rn)?(kt(Rn,pr),qn=!0,!1):!0:!1),qn},Jt=Vn=>{if(v(Vn)){const Rn=Ke.create(Vn);return kt(Rn),Rn}else return null},ln=(Vn,Rn,qn)=>{const pr=[];let Tr=!0;const wr=be.inline||be.block,Ur=Jt(wr),wo=lo=>GM(be)&&Py(r,lo,g,B),jo=(lo,eo,xo)=>{const bi=mw(be)&&e5(r.schema,lo)&&dv(r,eo,wr);return xo&&bi},di=(lo,eo,xo,bi)=>{const Bi=lo.nodeName.toLowerCase(),$a=dv(r,wr,Bi)&&dv(r,eo,wr),Ia=!qn&&Nt(lo)&&$0(lo.data),Us=Gp(lo),sl=!Ef(be)||!Vn.isBlock(lo);return(xo||bi)&&$a&&!Ia&&!Us&&sl};yw(Vn,Rn,lo=>{let eo;const xo=bi=>{let Bi=!1,$a=Tr,Ia=!1;const Us=bi.parentNode,sl=Us.nodeName.toLowerCase(),nu=Vn.getContentEditable(bi);E(nu)&&($a=Tr,Tr=nu==="true",Bi=!0,Ia=r5(r,bi));const jd=Tr&&!Bi;if(On(bi)&&!N7(r,be,bi,sl)){eo=null,hv(be)&&Vn.remove(bi);return}if(wo(bi)){eo=null;return}if(jo(bi,sl,jd)){const vl=Vn.rename(bi,wr);kt(vl),pr.push(vl),eo=null;return}if($m(be)){let vl=Wt(re,bi);if(!vl&&E(Us)&&u0(be)&&(vl=Wt(re,Us)),!Ef(be)||vl){eo=null;return}}E(Ur)&&di(bi,sl,jd,Ia)?(eo||(eo=Vn.clone(Ur,!1),Us.insertBefore(eo,bi),pr.push(eo)),Ia&&Bi&&(Tr=$a),eo.appendChild(bi)):(eo=null,ye(Ee(bi.childNodes),xo),Bi&&(Tr=$a),eo=null)};ye(lo,xo)}),be.links===!0&&ye(pr,lo=>{const eo=xo=>{xo.nodeName==="A"&&kt(xo,be),ye(Ee(xo.childNodes),eo)};eo(lo)}),ye(pr,lo=>{const eo=Bi=>{let $a=0;return ye(Bi.childNodes,Ia=>{!_3(Ia)&&!Kp(Ia)&&$a++}),$a},xo=Bi=>De(Bi.childNodes,JS).filter(Ia=>Vn.getContentEditable(Ia)!=="false"&&D5(Vn,Ia,be)).map(Ia=>{const Us=Vn.clone(Ia,!1);return kt(Us),Vn.replace(Us,Bi,!0),Vn.remove(Ia,!0),Us}).getOr(Bi),bi=eo(lo);if((pr.length>1||!Vn.isBlock(lo))&&bi===0){Vn.remove(lo,!0);return}(Ef(be)||hv(be)&&be.wrapper)&&(!be.exact&&bi===1&&(lo=xo(lo)),OY(r,re,B,lo),nC(r,be,g,B,lo),Uz(Vn,be,B,lo),_Y(Vn,be,B,lo),wY(Vn,be,B,lo),Iz(r,be,B,lo))})},kn=b2(H)?H:ct.getNode();if(Ke.getContentEditable(kn)==="false"&&!r5(r,kn)){H=kn,Wt(re,H),Um(r,g,H,B);return}if(be){if(H)if(b2(H)){if(!Wt(re,H)){const Vn=Ke.createRng();Vn.setStartBefore(H),Vn.setEndAfter(H),ln(Ke,Oy(Ke,Vn,re),!0)}}else ln(Ke,H,!0);else!Re||!Ef(be)||g2(r).length?(ct.setRng(Wl(ct.getRng())),K0(r,()=>{y2(r,(Vn,Rn)=>{const qn=Rn?Vn:Oy(Ke,Vn,re);ln(Ke,qn,!1)})},q),r.nodeChanged()):Tz(r,g,B),Rz(r.formatter,g).each(Vn=>{ye(C7(r.selection),Rn=>jz(Ke,Rn,Vn,B))});Wue(g,r)}Um(r,g,H,B)},$7=(r,g,B,H)=>{(H||r.selection.isEditable())&&SY(r,g,B,H)},rC=r=>_t(r,"vars"),Qz=(r,g)=>{r.set({}),g.on("NodeChange",B=>{V5(g,B.element,r.get())}),g.on("FormatApply FormatRemove",B=>{const H=Y.from(B.node).map(re=>b2(re)?re:re.startContainer).bind(re=>ne(re)?Y.some(re):Y.from(re.parentElement)).getOrThunk(()=>Hz(g));V5(g,H,r.get())})},Hz=r=>r.selection.getStart(),Zz=(r,g,B,H,re)=>ze(g,Ke=>{const ct=r.formatter.matchNode(Ke,B,re??{},H);return!M(ct)},Ke=>y7(r,Ke,B)?!0:H?!1:E(r.formatter.matchNode(Ke,B,re,!0))),qz=(r,g)=>{const B=g??Hz(r);return Te(x2(r.dom,B),H=>ne(H)&&!dt(H))},V5=(r,g,B)=>{const H=qz(r,g);Ge(B,(re,be)=>{const Re=Ke=>{const ct=Zz(r,H,be,Ke.similar,rC(Ke)?Ke.vars:void 0),kt=ct.isSome();if(Ke.state.get()!==kt){Ke.state.set(kt);const Wt=ct.getOr(g);rC(Ke)?Ke.callback(kt,{node:Wt,format:be,parents:H}):ye(Ke.callbacks,Jt=>Jt(kt,{node:Wt,format:be,parents:H}))}};ye([re.withSimilar,re.withoutSimilar],Re),ye(re.withVars,Re)})},ex=(r,g,B,H,re,be)=>{const Re=g.get();ye(B.split(","),Ke=>{const ct=Ct(Re,Ke).getOrThunk(()=>{const Wt={withSimilar:{state:mr(!1),similar:!0,callbacks:[]},withoutSimilar:{state:mr(!1),similar:!1,callbacks:[]},withVars:[]};return Re[Ke]=Wt,Wt}),kt=()=>{const Wt=qz(r);return Zz(r,Wt,Ke,re,be).isSome()};if(M(be)){const Wt=re?ct.withSimilar:ct.withoutSimilar;Wt.callbacks.push(H),Wt.callbacks.length===1&&Wt.state.set(kt())}else ct.withVars.push({state:mr(kt()),similar:re,vars:be,callback:H})}),g.set(Re)},kY=(r,g,B)=>{const H=r.get();ye(g.split(","),re=>Ct(H,re).each(be=>{H[re]={withSimilar:{...be.withSimilar,callbacks:Te(be.withSimilar.callbacks,Re=>Re!==B)},withoutSimilar:{...be.withoutSimilar,callbacks:Te(be.withoutSimilar.callbacks,Re=>Re!==B)},withVars:Te(be.withVars,Re=>Re.callback!==B)}})),r.set(H)},V7=(r,g,B,H,re,be)=>(ex(r,g,B,H,re,be),{unbind:()=>kY(g,B,H)}),Fu=(r,g,B,H)=>{const re=r.formatter.get(g);re&&(b7(r,g,B,H)&&(!("toggle"in re[0])||re[0].toggle)?z7(r,g,B,H):$7(r,g,B,H))},oC=mo.explode,iC=()=>{const r={};return{addFilter:(re,be)=>{ye(oC(re),Re=>{_t(r,Re)||(r[Re]={name:Re,callbacks:[]}),r[Re].callbacks.push(be)})},getFilters:()=>Gt(r),removeFilter:(re,be)=>{ye(oC(re),Re=>{if(_t(r,Re))if(E(be)){const Ke=r[Re],ct=Te(Ke.callbacks,kt=>kt!==be);ct.length>0?Ke.callbacks=ct:delete r[Re]}else delete r[Re]})}}},tx=(r,g)=>{ye(g,B=>{r.attr(B,null)})},Wz=(r,g,B)=>{r.addNodeFilter("font",H=>{ye(H,re=>{const be=g.parse(re.attr("style")),Re=re.attr("color"),Ke=re.attr("face"),ct=re.attr("size");Re&&(be.color=Re),Ke&&(be["font-family"]=Ke),ct&&zr(ct).each(kt=>{be["font-size"]=B[kt-1]}),re.name="span",re.attr("style",g.serialize(be)),tx(re,["color","face","size"])})})},Yz=(r,g,B)=>{r.addNodeFilter("strike",H=>{const re=g.type!=="html4";ye(H,be=>{if(re)be.name="s";else{const Re=B.parse(be.attr("style"));Re["text-decoration"]="line-through",be.name="span",be.attr("style",B.serialize(Re))}})})},U5=(r,g,B)=>{var H;const re=I_();g.convert_fonts_to_spans&&Wz(r,re,mo.explode((H=g.font_size_legacy_values)!==null&&H!==void 0?H:"")),Yz(r,B,re)},TY=(r,g,B)=>{g.inline_styles&&U5(r,g,B)},CY=r=>fetch(r).then(g=>g.ok?g.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${r} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),G3=r=>{const g=/([a-z0-9+\/=\s]+)/i.exec(r);return g?g[1]:""},U7=r=>{const[g,...B]=r.split(","),H=B.join(","),re=/data:([^/]+\/[^;]+)(;.+)?/.exec(g);if(re){const be=re[2]===";base64",Re=be?G3(H):decodeURIComponent(H);return Y.some({type:re[1],data:Re,base64Encoded:be})}else return Y.none()},P2=(r,g,B=!0)=>{let H=g;if(B)try{H=atob(g)}catch{return Y.none()}const re=new Uint8Array(H.length);for(let be=0;benew Promise((g,B)=>{U7(r).bind(({type:H,data:re,base64Encoded:be})=>P2(H,re,be)).fold(()=>B("Invalid data URI"),g)}),R2=r=>xr(r,"blob:")?CY(r):xr(r,"data:")?AY(r):Promise.reject("Unknown URI format"),Xz=r=>new Promise((g,B)=>{const H=new FileReader;H.onloadend=()=>{g(H.result)},H.onerror=()=>{var re;B((re=H.error)===null||re===void 0?void 0:re.message)},H.readAsDataURL(r)});let d0=0;const j5=r=>(r||"blobid")+d0++,aC=(r,g,B)=>U7(r).bind(({data:H,type:re,base64Encoded:be})=>{if(g&&!be)return Y.none();{const Re=be?H:btoa(H);return B(Re,re)}}),sC=(r,g,B)=>{const H=r.create(j5(),g,B);return r.add(H),H},Gz=(r,g,B=!1)=>aC(g,B,(H,re)=>Y.from(r.getByData(H,re)).orThunk(()=>P2(re,H).map(be=>sC(r,be,H)))),lC=(r,g)=>{const B=()=>Promise.reject("Invalid data URI");if(xr(g,"blob:")){const H=r.getByUri(g);return E(H)?Promise.resolve(H):R2(g).then(re=>Xz(re).then(be=>aC(be,!1,Re=>Y.some(sC(r,re,Re))).getOrThunk(B)))}else return xr(g,"data:")?Gz(r,g).fold(B,H=>Promise.resolve(H)):Promise.reject("Unknown image data format")},MY=/^(?:(?:(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)([A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*))(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?)$/,o1=r=>Y.from(r.match(MY)).bind(g=>Ze(g,1)).map(g=>xr(g,"www.")?g.substring(4):g),Q5=(r,g)=>{Y.from(r.attr("src")).bind(o1).forall(B=>!ce(g,B))&&r.attr("sandbox","")},cC=(r,g)=>xr(r,`${g}/`),j7=r=>M(r)?"iframe":cC(r,"image")?"img":cC(r,"video")?"video":cC(r,"audio")?"audio":"iframe",Q7=({type:r,src:g,width:B,height:H}={},re,be)=>{const Re=j7(r),Ke=new yp(Re,1);return Ke.attr(Re==="audio"?{src:g}:{src:g,width:B,height:H}),(Re==="audio"||Re==="video")&&Ke.attr("controls",""),Re==="iframe"&&re&&Q5(Ke,be),Ke},$w=r=>E(r.attr("data-mce-bogus")),H7=r=>r.attr("src")===fr.transparentSrc||E(r.attr("data-mce-placeholder")),EY=(r,g)=>{const{blob_cache:B}=g;if(B){const H=re=>{const be=re.attr("src");H7(re)||$w(re)||T(be)||Gz(B,be,!0).each(Re=>{re.attr("src",Re.blobUri())})};r.addAttributeFilter("src",re=>ye(re,H))}},Kz=(r,g)=>{var B,H;const re=r.schema;r.addAttributeFilter("href",ct=>{let kt=ct.length;const Wt=ln=>ln.split(" ").filter(Vn=>Vn.length>0).concat(["noopener"]).sort().join(" "),Jt=ln=>{const kn=ln?mo.trim(ln):"";return/\b(noopener)\b/g.test(kn)?kn:Wt(kn)};if(!g.allow_unsafe_link_target)for(;kt--;){const ln=ct[kt];ln.name==="a"&&ln.attr("target")==="_blank"&&ln.attr("rel",Jt(ln.attr("rel")))}}),g.allow_html_in_named_anchor||r.addAttributeFilter("id,name",ct=>{let kt=ct.length,Wt,Jt,ln,kn;for(;kt--;)if(kn=ct[kt],kn.name==="a"&&kn.firstChild&&!kn.attr("href"))for(ln=kn.parent,Wt=kn.lastChild;Wt&&ln;)Jt=Wt.prev,ln.insert(Wt,kn),Wt=Jt}),g.fix_list_elements&&r.addNodeFilter("ul,ol",ct=>{let kt=ct.length,Wt,Jt;for(;kt--;)if(Wt=ct[kt],Jt=Wt.parent,Jt&&(Jt.name==="ul"||Jt.name==="ol"))if(Wt.prev&&Wt.prev.name==="li")Wt.prev.append(Wt);else{const ln=new yp("li",1);ln.attr("style","list-style-type: none"),Wt.wrap(ln)}});const be=re.getValidClasses();g.validate&&be&&r.addAttributeFilter("class",ct=>{var kt;let Wt=ct.length;for(;Wt--;){const Jt=ct[Wt],ln=(kt=Jt.attr("class"))!==null&&kt!==void 0?kt:"",kn=mo.explode(ln," ");let Vn="";for(let Rn=0;Rnye(ct,kt=>{kt.replace(Q7({type:kt.attr("type"),src:kt.name==="object"?kt.attr("data"):kt.attr("src"),width:kt.attr("width"),height:kt.attr("height")},Re,Ke))})),Re&&r.addNodeFilter("iframe",ct=>ye(ct,kt=>Q5(kt,Ke)))},{entries:Jz,setPrototypeOf:eF,isFrozen:PY,getPrototypeOf:RY,getOwnPropertyDescriptor:H5}=Object;let{freeze:qm,seal:i1,create:Z7}=Object,{apply:q7,construct:uC}=typeof Reflect<"u"&&Reflect;q7||(q7=function(g,B,H){return g.apply(B,H)}),qm||(qm=function(g){return g}),i1||(i1=function(g){return g}),uC||(uC=function(g,B){return new g(...B)});const tF=a1(Array.prototype.forEach),LY=a1(Array.prototype.pop),Z5=a1(Array.prototype.push),fC=a1(String.prototype.toLowerCase),W7=a1(String.prototype.toString),IY=a1(String.prototype.match),bv=a1(String.prototype.replace),DY=a1(String.prototype.indexOf),BY=a1(String.prototype.trim),h0=a1(RegExp.prototype.test),q5=zY(TypeError);function a1(r){return function(g){for(var B=arguments.length,H=new Array(B>1?B-1:0),re=1;re/gm),VY=i1(/\${[\w\W]*}/gm),UY=i1(/^data-[\-\w.\u00B7-\uFFFF]/),jY=i1(/^aria-[\-\w]+$/),pC=i1(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aF=i1(/^(?:\w+script|data):/i),Xue=i1(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K3=i1(/^html$/i);var sF=Object.freeze({__proto__:null,MUSTACHE_EXPR:NY,ERB_EXPR:$Y,TMPLIT_EXPR:VY,DATA_ATTR:UY,ARIA_ATTR:jY,IS_ALLOWED_URI:pC,IS_SCRIPT_OR_DATA:aF,ATTR_WHITESPACE:Xue,DOCTYPE_NAME:K3});const lF=()=>typeof window>"u"?null:window,QY=function(g,B){if(typeof g!="object"||typeof g.createPolicy!="function")return null;let H=null;const re="data-tt-policy-suffix";B&&B.hasAttribute(re)&&(H=B.getAttribute(re));const be="dompurify"+(H?"#"+H:"");try{return g.createPolicy(be,{createHTML(Re){return Re},createScriptURL(Re){return Re}})}catch{return console.warn("TrustedTypes policy "+be+" could not be created."),null}};function W5(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lF();const g=Ga=>W5(Ga);if(g.version="3.0.5",g.removed=[],!r||!r.document||r.document.nodeType!==9)return g.isSupported=!1,g;const B=r.document,H=B.currentScript;let{document:re}=r;const{DocumentFragment:be,HTMLTemplateElement:Re,Node:Ke,Element:ct,NodeFilter:kt,NamedNodeMap:Wt=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:Jt,DOMParser:ln,trustedTypes:kn}=r,Vn=ct.prototype,Rn=dC(Vn,"cloneNode"),qn=dC(Vn,"nextSibling"),pr=dC(Vn,"childNodes"),Tr=dC(Vn,"parentNode");if(typeof Re=="function"){const Ga=re.createElement("template");Ga.content&&Ga.content.ownerDocument&&(re=Ga.content.ownerDocument)}let wr,Ur="";const{implementation:wo,createNodeIterator:jo,createDocumentFragment:di,getElementsByTagName:lo}=re,{importNode:eo}=B;let xo={};g.isSupported=typeof Jz=="function"&&typeof Tr=="function"&&wo&&wo.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:bi,ERB_EXPR:Bi,TMPLIT_EXPR:$a,DATA_ATTR:Ia,ARIA_ATTR:Us,IS_SCRIPT_OR_DATA:sl,ATTR_WHITESPACE:nu}=sF;let{IS_ALLOWED_URI:jd}=sF,vl=null;const Wo=Tl({},[...Uw,...Y7,...X7,...G7,...rF]);let Ei=null;const ws=Tl({},[...oF,...K7,...iF,...hC]);let ii=Object.seal(Object.create(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}})),Qi=null,Qa=null,ci=!0,Va=!0,Xa=!1,Df=!0,el=!1,Yu=!1,Rg=!1,m1=!1,Dh=!1,om=!1,Lg=!1,xp=!0,Ig=!1;const zi="user-content-";let ss=!0,Rc=!1,cu={},Nu=null;const nd=Tl({},["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"]);let Ou=null;const Su=Tl({},["audio","video","img","source","image","track"]);let fh=null;const Dg=Tl({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xm="http://www.w3.org/1998/Math/MathML",x0="http://www.w3.org/2000/svg",Bg="http://www.w3.org/1999/xhtml";let fx=Bg,Z2=!1,hO=null;const _A=Tl({},[Xm,x0,Bg],W7);let dx;const Vk=["application/xhtml+xml","text/html"],lQ="text/html";let Bh,pO=null;const OL=re.createElement("form"),SL=function(no){return no instanceof RegExp||no instanceof Function},Cv=function(no){if(!(pO&&pO===no)){if((!no||typeof no!="object")&&(no={}),no=Vw(no),dx=Vk.indexOf(no.PARSER_MEDIA_TYPE)===-1?dx=lQ:dx=no.PARSER_MEDIA_TYPE,Bh=dx==="application/xhtml+xml"?W7:fC,vl="ALLOWED_TAGS"in no?Tl({},no.ALLOWED_TAGS,Bh):Wo,Ei="ALLOWED_ATTR"in no?Tl({},no.ALLOWED_ATTR,Bh):ws,hO="ALLOWED_NAMESPACES"in no?Tl({},no.ALLOWED_NAMESPACES,W7):_A,fh="ADD_URI_SAFE_ATTR"in no?Tl(Vw(Dg),no.ADD_URI_SAFE_ATTR,Bh):Dg,Ou="ADD_DATA_URI_TAGS"in no?Tl(Vw(Su),no.ADD_DATA_URI_TAGS,Bh):Su,Nu="FORBID_CONTENTS"in no?Tl({},no.FORBID_CONTENTS,Bh):nd,Qi="FORBID_TAGS"in no?Tl({},no.FORBID_TAGS,Bh):{},Qa="FORBID_ATTR"in no?Tl({},no.FORBID_ATTR,Bh):{},cu="USE_PROFILES"in no?no.USE_PROFILES:!1,ci=no.ALLOW_ARIA_ATTR!==!1,Va=no.ALLOW_DATA_ATTR!==!1,Xa=no.ALLOW_UNKNOWN_PROTOCOLS||!1,Df=no.ALLOW_SELF_CLOSE_IN_ATTR!==!1,el=no.SAFE_FOR_TEMPLATES||!1,Yu=no.WHOLE_DOCUMENT||!1,Dh=no.RETURN_DOM||!1,om=no.RETURN_DOM_FRAGMENT||!1,Lg=no.RETURN_TRUSTED_TYPE||!1,m1=no.FORCE_BODY||!1,xp=no.SANITIZE_DOM!==!1,Ig=no.SANITIZE_NAMED_PROPS||!1,ss=no.KEEP_CONTENT!==!1,Rc=no.IN_PLACE||!1,jd=no.ALLOWED_URI_REGEXP||pC,fx=no.NAMESPACE||Bg,ii=no.CUSTOM_ELEMENT_HANDLING||{},no.CUSTOM_ELEMENT_HANDLING&&SL(no.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ii.tagNameCheck=no.CUSTOM_ELEMENT_HANDLING.tagNameCheck),no.CUSTOM_ELEMENT_HANDLING&&SL(no.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ii.attributeNameCheck=no.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),no.CUSTOM_ELEMENT_HANDLING&&typeof no.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ii.allowCustomizedBuiltInElements=no.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),el&&(Va=!1),om&&(Dh=!0),cu&&(vl=Tl({},[...rF]),Ei=[],cu.html===!0&&(Tl(vl,Uw),Tl(Ei,oF)),cu.svg===!0&&(Tl(vl,Y7),Tl(Ei,K7),Tl(Ei,hC)),cu.svgFilters===!0&&(Tl(vl,X7),Tl(Ei,K7),Tl(Ei,hC)),cu.mathMl===!0&&(Tl(vl,G7),Tl(Ei,iF),Tl(Ei,hC))),no.ADD_TAGS&&(vl===Wo&&(vl=Vw(vl)),Tl(vl,no.ADD_TAGS,Bh)),no.ADD_ATTR&&(Ei===ws&&(Ei=Vw(Ei)),Tl(Ei,no.ADD_ATTR,Bh)),no.ADD_URI_SAFE_ATTR&&Tl(fh,no.ADD_URI_SAFE_ATTR,Bh),no.FORBID_CONTENTS&&(Nu===nd&&(Nu=Vw(Nu)),Tl(Nu,no.FORBID_CONTENTS,Bh)),ss&&(vl["#text"]=!0),Yu&&Tl(vl,["html","head","body"]),vl.table&&(Tl(vl,["tbody"]),delete Qi.tbody),no.TRUSTED_TYPES_POLICY){if(typeof no.TRUSTED_TYPES_POLICY.createHTML!="function")throw q5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof no.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw q5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');wr=no.TRUSTED_TYPES_POLICY,Ur=wr.createHTML("")}else wr===void 0&&(wr=QY(kn,H)),wr!==null&&typeof Ur=="string"&&(Ur=wr.createHTML(""));qm&&qm(no),pO=no}},q2=Tl({},["mi","mo","mn","ms","mtext"]),Yr=Tl({},["foreignobject","desc","title","annotation-xml"]),Gr=Tl({},["title","style","font","a","script"]),Xo=Tl({},Y7);Tl(Xo,X7),Tl(Xo,FY);const Vo=Tl({},G7);Tl(Vo,nF);const Gi=function(no){let s=Tr(no);(!s||!s.tagName)&&(s={namespaceURI:fx,tagName:"template"});const F=fC(no.tagName),Z=fC(s.tagName);return hO[no.namespaceURI]?no.namespaceURI===x0?s.namespaceURI===Bg?F==="svg":s.namespaceURI===Xm?F==="svg"&&(Z==="annotation-xml"||q2[Z]):!!Xo[F]:no.namespaceURI===Xm?s.namespaceURI===Bg?F==="math":s.namespaceURI===x0?F==="math"&&Yr[Z]:!!Vo[F]:no.namespaceURI===Bg?s.namespaceURI===x0&&!Yr[Z]||s.namespaceURI===Xm&&!q2[Z]?!1:!Vo[F]&&(Gr[F]||!Xo[F]):!!(dx==="application/xhtml+xml"&&hO[no.namespaceURI]):!1},ts=function(no){Z5(g.removed,{element:no});try{no.parentNode.removeChild(no)}catch{no.remove()}},Lc=function(no,s){try{Z5(g.removed,{attribute:s.getAttributeNode(no),from:s})}catch{Z5(g.removed,{attribute:null,from:s})}if(s.removeAttribute(no),no==="is"&&!Ei[no])if(Dh||om)try{ts(s)}catch{}else try{s.setAttribute(no,"")}catch{}},_0=function(no){let s,F;if(m1)no=""+no;else{const we=IY(no,/^[\r\n\t ]+/);F=we&&we[0]}dx==="application/xhtml+xml"&&fx===Bg&&(no=''+no+"");const Z=wr?wr.createHTML(no):no;if(fx===Bg)try{s=new ln().parseFromString(Z,dx)}catch{}if(!s||!s.documentElement){s=wo.createDocument(fx,"template",null);try{s.documentElement.innerHTML=Z2?Ur:Z}catch{}}const ue=s.body||s.documentElement;return no&&F&&ue.insertBefore(re.createTextNode(F),ue.childNodes[0]||null),fx===Bg?lo.call(s,Yu?"html":"body")[0]:Yu?s.documentElement:ue},wA=function(no){return jo.call(no.ownerDocument||no,no,kt.SHOW_ELEMENT|kt.SHOW_COMMENT|kt.SHOW_TEXT,null,!1)},Noe=function(no){return no instanceof Jt&&(typeof no.nodeName!="string"||typeof no.textContent!="string"||typeof no.removeChild!="function"||!(no.attributes instanceof Wt)||typeof no.removeAttribute!="function"||typeof no.setAttribute!="function"||typeof no.namespaceURI!="string"||typeof no.insertBefore!="function"||typeof no.hasChildNodes!="function")},OA=function(no){return typeof Ke=="object"?no instanceof Ke:no&&typeof no=="object"&&typeof no.nodeType=="number"&&typeof no.nodeName=="string"},hx=function(no,s,F){xo[no]&&tF(xo[no],Z=>{Z.call(g,s,F,pO)})},cQ=function(no){let s;if(hx("beforeSanitizeElements",no,null),Noe(no))return ts(no),!0;const F=Bh(no.nodeName);if(hx("uponSanitizeElement",no,{tagName:F,allowedTags:vl}),no.hasChildNodes()&&!OA(no.firstElementChild)&&(!OA(no.content)||!OA(no.content.firstElementChild))&&h0(/<[/\w]/g,no.innerHTML)&&h0(/<[/\w]/g,no.textContent))return ts(no),!0;if(!vl[F]||Qi[F]){if(!Qi[F]&&TL(F)&&(ii.tagNameCheck instanceof RegExp&&h0(ii.tagNameCheck,F)||ii.tagNameCheck instanceof Function&&ii.tagNameCheck(F)))return!1;if(ss&&!Nu[F]){const Z=Tr(no)||no.parentNode,ue=pr(no)||no.childNodes;if(ue&&Z){const we=ue.length;for(let Be=we-1;Be>=0;--Be)Z.insertBefore(Rn(ue[Be],!0),qn(no))}}return ts(no),!0}return no instanceof ct&&!Gi(no)||(F==="noscript"||F==="noembed"||F==="noframes")&&h0(/<\/no(script|embed|frames)/i,no.innerHTML)?(ts(no),!0):(el&&no.nodeType===3&&(s=no.textContent,s=bv(s,bi," "),s=bv(s,Bi," "),s=bv(s,$a," "),no.textContent!==s&&(Z5(g.removed,{element:no.cloneNode()}),no.textContent=s)),hx("afterSanitizeElements",no,null),!1)},kL=function(no,s,F){if(xp&&(s==="id"||s==="name")&&(F in re||F in OL))return!1;if(!(Va&&!Qa[s]&&h0(Ia,s))){if(!(ci&&h0(Us,s))){if(!Ei[s]||Qa[s]){if(!(TL(no)&&(ii.tagNameCheck instanceof RegExp&&h0(ii.tagNameCheck,no)||ii.tagNameCheck instanceof Function&&ii.tagNameCheck(no))&&(ii.attributeNameCheck instanceof RegExp&&h0(ii.attributeNameCheck,s)||ii.attributeNameCheck instanceof Function&&ii.attributeNameCheck(s))||s==="is"&&ii.allowCustomizedBuiltInElements&&(ii.tagNameCheck instanceof RegExp&&h0(ii.tagNameCheck,F)||ii.tagNameCheck instanceof Function&&ii.tagNameCheck(F))))return!1}else if(!fh[s]){if(!h0(jd,bv(F,nu,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&no!=="script"&&DY(F,"data:")===0&&Ou[no])){if(!(Xa&&!h0(sl,bv(F,nu,"")))){if(F)return!1}}}}}}return!0},TL=function(no){return no.indexOf("-")>0},uQ=function(no){let s,F,Z,ue;hx("beforeSanitizeAttributes",no,null);const{attributes:we}=no;if(!we)return;const Be={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ei};for(ue=we.length;ue--;){s=we[ue];const{name:qe,namespaceURI:ft}=s;F=qe==="value"?s.value:BY(s.value);const gt=F;if(Z=Bh(qe),Be.attrName=Z,Be.attrValue=F,Be.keepAttr=!0,Be.forceKeepAttr=void 0,hx("uponSanitizeAttribute",no,Be),F=Be.attrValue,Be.forceKeepAttr)continue;if(!Be.keepAttr){Lc(qe,no);continue}if(!Df&&h0(/\/>/i,F)){Lc(qe,no);continue}el&&(F=bv(F,bi," "),F=bv(F,Bi," "),F=bv(F,$a," "));const At=Bh(no.nodeName);if(!kL(At,Z,F)){Lc(qe,no);continue}if(Ig&&(Z==="id"||Z==="name")&&(Lc(qe,no),F=zi+F),wr&&typeof kn=="object"&&typeof kn.getAttributeType=="function"&&!ft)switch(kn.getAttributeType(At,Z)){case"TrustedHTML":{F=wr.createHTML(F);break}case"TrustedScriptURL":{F=wr.createScriptURL(F);break}}if(F!==gt)try{ft?no.setAttributeNS(ft,qe,F):no.setAttribute(qe,F)}catch{Lc(qe,no)}}hx("afterSanitizeAttributes",no,null)},$oe=function Ga(no){let s;const F=wA(no);for(hx("beforeSanitizeShadowDOM",no,null);s=F.nextNode();)hx("uponSanitizeShadowNode",s,null),!cQ(s)&&(s.content instanceof be&&Ga(s.content),uQ(s));hx("afterSanitizeShadowDOM",no,null)};return g.sanitize=function(Ga){let no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,F,Z,ue;if(Z2=!Ga,Z2&&(Ga=""),typeof Ga!="string"&&!OA(Ga))if(typeof Ga.toString=="function"){if(Ga=Ga.toString(),typeof Ga!="string")throw q5("dirty is not a string, aborting")}else throw q5("toString is not a function");if(!g.isSupported)return Ga;if(Rg||Cv(no),g.removed=[],typeof Ga=="string"&&(Rc=!1),Rc){if(Ga.nodeName){const qe=Bh(Ga.nodeName);if(!vl[qe]||Qi[qe])throw q5("root node is forbidden and cannot be sanitized in-place")}}else if(Ga instanceof Ke)s=_0(""),F=s.ownerDocument.importNode(Ga,!0),F.nodeType===1&&F.nodeName==="BODY"||F.nodeName==="HTML"?s=F:s.appendChild(F);else{if(!Dh&&!el&&!Yu&&Ga.indexOf("<")===-1)return wr&&Lg?wr.createHTML(Ga):Ga;if(s=_0(Ga),!s)return Dh?null:Lg?Ur:""}s&&m1&&ts(s.firstChild);const we=wA(Rc?Ga:s);for(;Z=we.nextNode();)cQ(Z)||(Z.content instanceof be&&$oe(Z.content),uQ(Z));if(Rc)return Ga;if(Dh){if(om)for(ue=di.call(s.ownerDocument);s.firstChild;)ue.appendChild(s.firstChild);else ue=s;return(Ei.shadowroot||Ei.shadowrootmode)&&(ue=eo.call(B,ue,!0)),ue}let Be=Yu?s.outerHTML:s.innerHTML;return Yu&&vl["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&h0(K3,s.ownerDocument.doctype.name)&&(Be=" +`+Be),el&&(Be=bv(Be,bi," "),Be=bv(Be,Bi," "),Be=bv(Be,$a," ")),wr&&Lg?wr.createHTML(Be):Be},g.setConfig=function(Ga){Cv(Ga),Rg=!0},g.clearConfig=function(){pO=null,Rg=!1},g.isValidAttribute=function(Ga,no,s){pO||Cv({});const F=Bh(Ga),Z=Bh(no);return kL(F,Z,s)},g.addHook=function(Ga,no){typeof no=="function"&&(xo[Ga]=xo[Ga]||[],Z5(xo[Ga],no))},g.removeHook=function(Ga){if(xo[Ga])return LY(xo[Ga])},g.removeHooks=function(Ga){xo[Ga]&&(xo[Ga]=[])},g.removeAllHooks=function(){xo={}},g}var mC=W5();const df=mo.each,Gue=mo.trim,Kue=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],Jue={ftp:21,http:80,https:443,mailto:25},efe=["img","video"],s1=(r,g)=>E(r)?!r:E(g)?!ce(efe,g):!0,gC=r=>{try{return decodeURIComponent(r)}catch{return unescape(r)}},nx=(r,g,B)=>{const H=gC(g).replace(/\s/g,"");return r.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(H)?!0:r.allow_html_data_urls?!1:/^data:image\//i.test(H)?s1(r.allow_svg_data_urls,B)&&/^data:image\/svg\+xml/i.test(H):/^data:/i.test(H)};class Ih{static parseDataUri(g){let B;const H=decodeURIComponent(g).split(","),re=/data:([^;]+)/.exec(H[0]);return re&&(B=re[1]),{type:B,data:H[1]}}static isDomSafe(g,B,H={}){if(H.allow_script_urls)return!0;{const re=up.decode(g).replace(/[\s\u0000-\u001F]+/g,"");return!nx(H,re,B)}}static getDocumentBaseUrl(g){var B;let H;return g.protocol.indexOf("http")!==0&&g.protocol!=="file:"?H=(B=g.href)!==null&&B!==void 0?B:"":H=g.protocol+"//"+g.host+g.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/")),H}constructor(g,B={}){this.path="",this.directory="",g=Gue(g),this.settings=B;const H=B.base_uri,re=this;if(/^([\w\-]+):([^\/]{2})/i.test(g)||/^\s*#/.test(g)){re.source=g;return}const be=g.indexOf("//")===0;if(g.indexOf("/")===0&&!be&&(g=(H&&H.protocol||"http")+"://mce_host"+g),!/^[\w\-]*:?\/\//.test(g)){const Ke=H?H.path:new Ih(document.location.href).directory;if((H==null?void 0:H.protocol)==="")g="//mce_host"+re.toAbsPath(Ke,g);else{const ct=/([^#?]*)([#?]?.*)/.exec(g);ct&&(g=(H&&H.protocol||"http")+"://mce_host"+re.toAbsPath(Ke,ct[1])+ct[2])}}g=g.replace(/@@/g,"(mce_at)");const Re=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(g);Re&&df(Kue,(Ke,ct)=>{let kt=Re[ct];kt&&(kt=kt.replace(/\(mce_at\)/g,"@@")),re[Ke]=kt}),H&&(re.protocol||(re.protocol=H.protocol),re.userInfo||(re.userInfo=H.userInfo),!re.port&&re.host==="mce_host"&&(re.port=H.port),(!re.host||re.host==="mce_host")&&(re.host=H.host),re.source=""),be&&(re.protocol="")}setPath(g){const B=/^(.*?)\/?(\w+)?$/.exec(g);B&&(this.path=B[0],this.directory=B[1],this.file=B[2]),this.source="",this.getURI()}toRelative(g){if(g==="./")return g;const B=new Ih(g,{base_uri:this});if(B.host!=="mce_host"&&this.host!==B.host&&B.host||this.port!==B.port||this.protocol!==B.protocol&&B.protocol!=="")return B.getURI();const H=this.getURI(),re=B.getURI();if(H===re||H.charAt(H.length-1)==="/"&&H.substr(0,H.length-1)===re)return H;let be=this.toRelPath(this.path,B.path);return B.query&&(be+="?"+B.query),B.anchor&&(be+="#"+B.anchor),be}toAbsolute(g,B){const H=new Ih(g,{base_uri:this});return H.getURI(B&&this.isSameOrigin(H))}isSameOrigin(g){if(this.host==g.host&&this.protocol==g.protocol){if(this.port==g.port)return!0;const B=this.protocol?Jue[this.protocol]:null;if(B&&(this.port||B)==(g.port||B))return!0}return!1}toRelPath(g,B){let H=0,re="",be,Re;const Ke=g.substring(0,g.lastIndexOf("/")).split("/"),ct=B.split("/");if(Ke.length>=ct.length){for(be=0,Re=Ke.length;be=ct.length||Ke[be]!==ct[be]){H=be+1;break}}if(Ke.length=Ke.length||Ke[be]!==ct[be]){H=be+1;break}}if(H===1)return B;for(be=0,Re=Ke.length-(H-1);be{Jt&&Ke.push(Jt)});const ct=[];for(let Jt=Re.length-1;Jt>=0;Jt--)if(!(Re[Jt].length===0||Re[Jt]===".")){if(Re[Jt]===".."){H++;continue}if(H>0){H--;continue}ct.push(Re[Jt])}const kt=Ke.length-H;let Wt;return kt<=0?Wt=ke(ct).join("/"):Wt=Ke.slice(0,kt).join("/")+"/"+ke(ct).join("/"),Wt.indexOf("/")!==0&&(Wt="/"+Wt),re&&Wt.lastIndexOf("/")!==Wt.length-1&&(Wt+=re),Wt}getURI(g=!1){let B;return(!this.source||g)&&(B="",g||(this.protocol?B+=this.protocol+"://":B+="//",this.userInfo&&(B+=this.userInfo+"@"),this.host&&(B+=this.host),this.port&&(B+=":"+this.port)),this.path&&(B+=this.path),this.query&&(B+="?"+this.query),this.anchor&&(B+="#"+this.anchor),this.source=B),this.source}}const HY=mo.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),J7="data-mce-type";let jw=0;const Qw=(r,g,B,H,re)=>{var be,Re,Ke,ct;const kt=g.validate,Wt=B.getSpecialElements();r.nodeType===gm&&!g.allow_conditional_comments&&/^\[if/i.test((be=r.nodeValue)!==null&&be!==void 0?be:"")&&(r.nodeValue=" "+r.nodeValue);const Jt=(Re=re==null?void 0:re.tagName)!==null&&Re!==void 0?Re:r.nodeName.toLowerCase();if(H!=="html"&&B.isValid(H)){E(re)&&(re.allowedTags[Jt]=!0);return}if(r.nodeType!==Cu||Jt==="body")return;const ln=sr.fromDom(r),kn=Vf(ln,J7),Vn=uc(ln,"data-mce-bogus");if(!kn&&v(Vn)){Vn==="all"?ja(ln):yu(ln);return}const Rn=B.getElementRule(Jt);if(kt&&!Rn){_t(Wt,Jt)?ja(ln):yu(ln);return}else E(re)&&(re.allowedTags[Jt]=!0);if(kt&&Rn&&!kn){if(ye((Ke=Rn.attributesForced)!==null&&Ke!==void 0?Ke:[],qn=>{Es(ln,qn.name,qn.value==="{$uid}"?`mce_${jw++}`:qn.value)}),ye((ct=Rn.attributesDefault)!==null&&ct!==void 0?ct:[],qn=>{Vf(ln,qn.name)||Es(ln,qn.name,qn.value==="{$uid}"?`mce_${jw++}`:qn.value)}),Rn.attributesRequired&&!de(Rn.attributesRequired,qn=>Vf(ln,qn))){yu(ln);return}if(Rn.removeEmptyAttrs&&ld(ln)){yu(ln);return}Rn.outputName&&Rn.outputName!==Jt&&B1(ln,Rn.outputName)}},J3=(r,g,B,H,re)=>{const be=r.tagName.toLowerCase(),{attrName:Re,attrValue:Ke}=re;re.keepAttr=vC(g,B,H,be,Re,Ke),re.keepAttr?(re.allowedAttributes[Re]=!0,eP(Re,B)&&(re.attrValue=Re),g.allow_svg_data_urls&&xr(Ke,"data:image/svg+xml")&&(re.forceKeepAttr=!0)):yC(r,Re)&&(re.forceKeepAttr=!0)},vC=(r,g,B,H,re,be)=>B!=="html"&&!hs(H)?!0:!(re in HY&&nx(r,be,H))&&(!r.validate||g.isValid(H,re)||xr(re,"data-")||xr(re,"aria-")),yC=(r,g)=>r.hasAttribute(J7)&&(g==="id"||g==="class"||g==="style"),eP=(r,g)=>r in g.getBoolAttrs(),cF=(r,g,B,H)=>{const{attributes:re}=r;for(let be=re.length-1;be>=0;be--){const Re=re[be],Ke=Re.name,ct=Re.value;!vC(g,B,H,r.tagName.toLowerCase(),Ke,ct)&&!yC(r,Ke)?r.removeAttribute(Ke):eP(Ke,B)&&r.setAttribute(Ke,Ke)}},ZY=(r,g,B)=>{const H=mC();return H.addHook("uponSanitizeElement",(re,be)=>{Qw(re,r,g,B.track(re),be)}),H.addHook("uponSanitizeAttribute",(re,be)=>{J3(re,r,g,B.current(),be)}),H},qY=(r,g)=>{const H={...{IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]}};return H.PARSER_MEDIA_TYPE=g,r.allow_script_urls?H.ALLOWED_URI_REGEXP=/.*/:r.allow_html_data_urls&&(H.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),H},uF=r=>{const g=Rs(r);if(g==="svg"){const B=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(re=>`xlink:${re}`),H={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:B};mC().sanitize(r,H)}else if(g==="math"){const B={IN_PLACE:!0,USE_PROFILES:{mathMl:!0}};mC().sanitize(r,B)}else throw new Error("Not a namespace element")},WY=(r,g)=>{const B=ol();if(r.sanitize){const H=ZY(r,g,B);return{sanitizeHtmlElement:(be,Re)=>{H.sanitize(be,qY(r,Re)),H.removed=[],B.reset()},sanitizeNamespaceElement:uF}}else return{sanitizeHtmlElement:(be,Re)=>{const Ke=document.createNodeIterator(be,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let ct;for(;ct=Ke.nextNode();){const kt=B.track(ct);Qw(ct,r,g,kt),ne(ct)&&cF(ct,r,g,kt)}B.reset()},sanitizeNamespaceElement:k}},fF=mo.makeMap,dF=mo.extend,hF=(r,g,B,H)=>{const re=r.name,be=re in B&&re!=="title"&&re!=="textarea"&&re!=="noscript",Re=g.childNodes;for(let Ke=0,ct=Re.length;Ke{const H=[];for(let re=r,be=re;re;be=re,re=re.walk()){const Re=re;ye(g,Ke=>Ke(Re)),T(Re.parent)&&Re!==r?re=be:H.push(Re)}for(let re=H.length-1;re>=0;re--){const be=H[re];ye(B,Re=>Re(be))}},pF=(r,g,B,H)=>{const re=B.validate,be=g.getNonEmptyElements(),Re=g.getWhitespaceElements(),Ke=dF(fF("script,style,head,html,body,title,meta,param"),g.getBlockElements()),ct=hb(g),kt=/[ \t\r\n]+/g,Wt=/^[ \t\r\n]+/,Jt=/[ \t\r\n]+$/,ln=Tr=>{let wr=Tr.parent;for(;E(wr);){if(wr.name in Re)return!0;wr=wr.parent}return!1},kn=Tr=>{let wr=Tr;for(;E(wr);){if(wr.name in ct)return U6(g,be,Re,wr);wr=wr.parent}return!1},Vn=Tr=>Tr.name in Ke||eh(g,Tr)||hs(Tr.name)&&Tr.parent===r,Rn=(Tr,wr)=>{const Ur=wr?Tr.prev:Tr.next;return E(Ur)||T(Tr.parent)?!1:Vn(Tr.parent)&&(Tr.parent!==r||H.isRootContent===!0)};return[Tr=>{var wr;if(Tr.type===3&&!ln(Tr)){let Ur=(wr=Tr.value)!==null&&wr!==void 0?wr:"";Ur=Ur.replace(kt," "),(Vd(Tr.prev,Vn)||Rn(Tr,!0))&&(Ur=Ur.replace(Wt,"")),Ur.length===0?Tr.remove():Tr.value=Ur}},Tr=>{var wr;if(Tr.type===1){const Ur=g.getElementRule(Tr.name);if(re&&Ur){const wo=U6(g,be,Re,Tr);Ur.paddInEmptyBlock&&wo&&kn(Tr)?V6(B,H,Vn,Tr):Ur.removeEmpty&&wo?Vn(Tr)?Tr.remove():Tr.unwrap():Ur.paddEmpty&&(wo||HW(Tr))&&V6(B,H,Vn,Tr)}}else if(Tr.type===3&&!ln(Tr)){let Ur=(wr=Tr.value)!==null&&wr!==void 0?wr:"";(Tr.next&&Vn(Tr.next)||Rn(Tr,!1))&&(Ur=Ur.replace(Jt,"")),Ur.length===0?Tr.remove():Tr.value=Ur}}]},XY=(r,g)=>{var B;const H=(B=g.forced_root_block)!==null&&B!==void 0?B:r.forced_root_block;return H===!1?"":H===!0?"p":H},Ry=(r={},g=Np())=>{const B=iC(),H=iC(),re={validate:!0,root_name:"body",sanitize:!0,...r},be=new DOMParser,Re=WY(re,g),Ke=(wr,Ur,wo="html")=>{const jo=wo==="xhtml"?"application/xhtml+xml":"text/html",di=_t(g.getSpecialElements(),Ur.toLowerCase()),lo=di?`<${Ur}>${wr}`:wr,eo=wo==="xhtml"?`${lo}`:`${lo}`,xo=be.parseFromString(eo,jo).body;return Re.sanitizeHtmlElement(xo,jo),di?xo.firstChild:xo},ct=B.addFilter,kt=B.getFilters,Wt=B.removeFilter,Jt=H.addFilter,ln=H.getFilters,kn=H.removeFilter,Vn=(wr,Ur)=>{vz(g,wr)&&Ur.push(wr)},Rn=(wr,Ur)=>{const wo=v(Ur.attr(J7)),jo=Ur.type===1&&!_t(wr,Ur.name)&&!eh(g,Ur)&&!hs(Ur.name);return Ur.type===3||jo&&!wo},qn=(wr,Ur)=>{const wo=dF(fF("script,style,head,html,body,title,meta,param"),g.getBlockElements()),jo=/^[ \t\r\n]+/,di=/[ \t\r\n]+$/;let lo=wr.firstChild,eo=null;const xo=bi=>{var Bi,$a;bi&&(lo=bi.firstChild,lo&&lo.type===3&&(lo.value=(Bi=lo.value)===null||Bi===void 0?void 0:Bi.replace(jo,"")),lo=bi.lastChild,lo&&lo.type===3&&(lo.value=($a=lo.value)===null||$a===void 0?void 0:$a.replace(di,"")))};if(g.isValidChild(wr.name,Ur.toLowerCase())){for(;lo;){const bi=lo.next;Rn(wo,lo)?(eo||(eo=new yp(Ur,1),eo.attr(re.forced_root_block_attrs),wr.insert(eo,lo)),eo.append(lo)):(xo(eo),eo=null),lo=bi}xo(eo)}},Tr={schema:g,addAttributeFilter:Jt,getAttributeFilters:ln,removeAttributeFilter:kn,addNodeFilter:ct,getNodeFilters:kt,removeNodeFilter:Wt,parse:(wr,Ur={})=>{var wo;const jo=re.validate,di=(wo=Ur.context)!==null&&wo!==void 0?wo:re.root_name,lo=Ke(wr,di,Ur.format);qf(g,lo);const eo=new yp(di,11);hF(eo,lo,g.getSpecialElements(),Re.sanitizeNamespaceElement),lo.innerHTML="";const[xo,bi]=pF(eo,g,re,Ur),Bi=[],$a=jo?nu=>Vn(nu,Bi):k,Ia={nodes:{},attributes:{}},Us=nu=>l7(kt(),ln(),nu,Ia);if(YY(eo,[xo,Us],[bi,$a]),Bi.reverse(),jo&&Bi.length>0)if(Ur.context){const{pass:nu,fail:jd}=Se(Bi,vl=>vl.parent===eo);gv(jd,g,eo,Us),Ur.invalid=nu.length>0}else gv(Bi,g,eo,Us);const sl=XY(re,Ur);return sl&&(eo.name==="body"||Ur.isRootContent)&&qn(eo,sl),Ur.invalid||gz(Ia,Ur),eo}};return Kz(Tr,re),TY(Tr,re,g),Tr},mF=r=>Ks(r)?Yb({validate:!1}).serialize(r):r,gF=(r,g,B)=>{const H=mF(r),re=g(H);if(re.isDefaultPrevented())return re;if(Ks(r))if(re.content!==H){const be=Ry({validate:!1,forced_root_block:!1,...B}).parse(re.content,{context:r.name});return{...re,content:be}}else return{...re,content:r};else return re},tP=r=>({sanitize:Lb(r),sandbox_iframes:o2(r),sandbox_iframes_exclusions:i2(r)}),vF=(r,g)=>{if(g.no_events)return gs.value(g);{const B=o6(r,g);return B.isDefaultPrevented()?gs.error(i5(r,{content:"",...B}).content):gs.value(B)}},nP=(r,g,B)=>B.no_events?g:gF(g,re=>i5(r,{...B,content:re}),tP(r)).content,rP=(r,g)=>{if(g.no_events)return gs.value(g);{const B=gF(g.content,H=>R3(r,{...g,content:H}),tP(r));return B.isDefaultPrevented()?(L3(r,B),gs.error(void 0)):gs.value(B)}},oP=(r,g,B)=>{B.no_events||L3(r,{...B,content:g})},bC=(r,g,B)=>({element:r,width:g,rows:B}),iP=(r,g)=>({element:r,cells:g}),yF=(r,g)=>({x:r,y:g}),aP=(r,g)=>sd(r,g).bind(zr).getOr(1),bF=(r,g,B,H,re)=>{const be=aP(re,"rowspan"),Re=aP(re,"colspan"),Ke=r.rows;for(let ct=B;ct{const H=r.rows;return!!(H[B]?H[B].cells:[])[g]},GY=(r,g,B)=>{for(;xF(r,g,B);)g++;return g},_F=r=>Ie(r,(g,B)=>B.cells.length>g?B.cells.length:g,0),wF=(r,g)=>{const B=r.rows;for(let H=0;H{const be=[],Re=r.rows;for(let Ke=B;Ke<=re;Ke++){const ct=Re[Ke].cells,kt=g{const H=g.x,re=g.y,be=B.x,Re=B.y,Ke=re{const B=Th(r.element),H=sr.fromTag("tbody");return gu(H,g),Ps(B,H),B},SF=r=>ve(r.rows,g=>{const B=ve(g.cells,re=>{const be=Kf(re);return gc(be,"colspan"),gc(be,"rowspan"),be}),H=Th(g.element);return gu(H,B),H}),_C=r=>{const g=bC(Th(r),0,[]);return ye(Zl(r,"tr"),(B,H)=>{ye(Zl(B,"td,th"),(re,be)=>{bF(g,GY(g,be,H),H,B,re)})}),bC(g.element,_F(g.rows),g.rows)},KY=r=>OF(r,SF(r)),JY=(r,g,B)=>wF(r,g).bind(H=>wF(r,B).map(re=>Y5(r,H,re))),Hw=r=>De(r,g=>la(g)==="ul"||la(g)==="ol"),sP=(r,g)=>De(r,B=>la(B)==="li"&&x3(B,g)).fold($([]),B=>Hw(r).map(H=>{const re=sr.fromTag(la(H)),be=qt(vc(H),(Re,Ke)=>xr(Ke,"list-style"));return Hi(re,be),[sr.fromTag("li"),re]}).getOr([])),kF=(r,g)=>{const B=Ie(g,(H,re)=>(Ps(re,H),re),r);return g.length>0?ta([B]):B},X5=r=>nh(r)?Hu(r).filter(Vp).fold($([]),g=>[r,g]):Vp(r)?[r]:[],TF=(r,g,B)=>{const H=sr.fromDom(g.commonAncestorContainer),re=Xb(H,r),be=Te(re,ct=>B.isWrapper(la(ct))),Re=sP(re,g),Ke=be.concat(Re.length?Re:X5(H));return ve(Ke,Th)},wC=()=>ta([]),CF=(r,g,B)=>kF(sr.fromDom(g.cloneContents()),TF(r,g,B)),AF=(r,g)=>wl(g,"table",U(Fa,r)),eX=(r,g)=>AF(r,g[0]).bind(B=>{const H=g[0],re=g[g.length-1],be=_C(B);return JY(be,H,re).map(Re=>ta([KY(Re)]))}).getOrThunk(wC),tX=(r,g,B)=>g.length>0&&g[0].collapsed?wC():CF(r,g[0],B),nX=(r,g,B)=>{const H=wy(g,r);return H.length>0?eX(r,H):tX(r,g,B)},e4=(r,g)=>g>=0&&gyd(r.innerText),EF=r=>r.map(g=>g.nodeName).getOr("div").toLowerCase(),rX=r=>Y.from(r.selection.getRng()).map(g=>{var B;const H=Y.from(r.dom.getParent(g.commonAncestorContainer,r.dom.isBlock)),re=r.getBody(),be=EF(H),Re=sr.fromDom(g.cloneContents());mB(Re),gB(Re);const Ke=r.dom.add(re,be,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},Re.dom),ct=MF(Ke),kt=yd((B=Ke.textContent)!==null&&B!==void 0?B:"");if(r.dom.remove(Ke),e4(kt,0)||e4(kt,kt.length-1)){const Wt=H.getOr(re),Jt=MF(Wt),ln=Jt.indexOf(ct);if(ln===-1)return ct;{const kn=e4(Jt,ln-1),Vn=e4(Jt,ln+ct.length);return(kn?" ":"")+ct+(Vn?" ":"")}}else return ct}).getOr(""),oX=(r,g)=>{const B=r.selection.getRng(),H=r.dom.create("body"),re=r.selection.getSel(),be=$3(r,b3(re)),Re=g.contextual?nX(sr.fromDom(r.getBody()),be,r.schema).dom:B.cloneContents();return Re&&H.appendChild(Re),r.selection.serializer.serialize(H,g)},iX=(r,g)=>{if(g.format==="text")return rX(r);{const B=oX(r,g);return g.format==="tree"?B:r.selection.isCollapsed()?"":B}},aX=(r,g)=>({...r,format:g,get:!0,selection:!0,getInner:!0}),sX=(r,g,B={})=>{const H=aX(B,g);return vF(r,H).fold(Q,re=>{const be=iX(r,re);return nP(r,be,re)})},lP=0,PF=1,RF=2,lX=(r,g)=>{const B=r.length+g.length+2,H=new Array(B),re=new Array(B),be=(Wt,Jt,ln)=>({start:Wt,end:Jt,diag:ln}),Re=(Wt,Jt,ln,kn,Vn)=>{const Rn=ct(Wt,Jt,ln,kn);if(Rn===null||Rn.start===Jt&&Rn.diag===Jt-kn||Rn.end===Wt&&Rn.diag===Wt-ln){let qn=Wt,pr=ln;for(;qnkn-ln?(Vn.push([RF,r[qn]]),++qn):(Vn.push([PF,g[pr]]),++pr)}else{Re(Wt,Rn.start,ln,Rn.start-Rn.diag,Vn);for(let qn=Rn.start;qn{let Vn=Wt;for(;Vn-Jt{const Vn=Jt-Wt,Rn=kn-ln;if(Vn===0||Rn===0)return null;const qn=Vn-Rn,pr=Rn+Vn,Tr=(pr%2===0?pr:pr+1)/2;H[1+Tr]=Wt,re[1+Tr]=Jt+1;let wr,Ur,wo,jo,di;for(wr=0;wr<=Tr;++wr){for(Ur=-wr;Ur<=wr;Ur+=2){for(wo=Ur+Tr,Ur===-wr||Ur!==wr&&H[wo-1]=Wt&&di>=ln&&r[jo]===g[di];)re[wo]=jo--,di--;if(qn%2===0&&-wr<=Ur&&Ur<=wr&&re[wo]<=H[wo+qn])return Ke(re[wo],Ur+Wt-ln,Jt,kn)}}return null},kt=[];return Re(0,r.length,0,g.length,kt),kt},t4=r=>ne(r)?r.outerHTML:Nt(r)?up.encodeRaw(r.data,!1):xn(r)?"":"",Gh=r=>{let g;const B=document.createElement("div"),H=document.createDocumentFragment();for(r&&(B.innerHTML=r);g=B.firstChild;)H.appendChild(g);return H},cX=(r,g,B)=>{const H=Gh(g);if(r.hasChildNodes()&&B{if(r.hasChildNodes()&&g{let B=0;ye(r,H=>{H[0]===lP?B++:H[0]===PF?(cX(g,H[1],B),B++):H[0]===RF&&OC(g,B)})},LF=(r,g)=>Te(ve(Ee(r.childNodes),g?I(yd,t4):t4),B=>B.length>0),Wm=(r,g)=>{const B=ve(Ee(g.childNodes),t4);return Zw(lX(B,r),g),g},qw=xt(()=>document.implementation.createHTMLDocument("undo")),IF=r=>r.querySelector("iframe")!==null,uX=r=>({type:"fragmented",fragments:r,content:"",bookmark:null,beforeBookmark:null}),DF=r=>({type:"complete",fragments:null,content:r,bookmark:null,beforeBookmark:null}),SC=r=>{const g=r.serializer.getTempAttrs(),B=IE(r.getBody(),g);return IF(B)?uX(LF(B,!0)):DF(yd(B.innerHTML))},kC=(r,g,B)=>{const H=B?g.beforeBookmark:g.bookmark;g.type==="fragmented"?Wm(g.fragments,r.getBody()):r.setContent(g.content,{format:"raw",no_selection:E(H)&&HT(H)?!H.isFakeCaret:!0}),H&&(r.selection.moveToBookmark(H),r.selection.scrollIntoView())},Ww=r=>r.type==="fragmented"?r.fragments.join(""):r.content,TC=r=>{const g=sr.fromTag("body",qw());return Id(g,Ww(r)),ye(Zl(g,"*[data-mce-bogus]"),yu),nl(g)},fX=(r,g)=>Ww(r)===Ww(g),BF=(r,g)=>TC(r)===TC(g),cP=(r,g)=>!r||!g?!1:fX(r,g)?!0:BF(r,g),G5=r=>r.get()===0,n4=(r,g,B)=>{G5(B)&&(r.typing=g)},zF=(r,g)=>{r.typing&&(n4(r,!1,g),r.add())},dX=r=>{r.typing&&(r.typing=!1,r.add())},Ly=(r,g,B)=>{G5(g)&&B.set(Ja(r.selection))},uP=(r,g,B,H,re,be,Re)=>{const Ke=SC(r),ct=mo.extend(be||{},Ke);if(!G5(H)||r.removed)return null;const kt=g.data[B.get()];if(r.dispatch("BeforeAddUndo",{level:ct,lastLevel:kt,originalEvent:Re}).isDefaultPrevented()||kt&&cP(kt,ct))return null;g.data[B.get()]&&re.get().each(ln=>{g.data[B.get()].beforeBookmark=ln});const Wt=wg(r);if(Wt&&g.data.length>Wt){for(let ln=0;ln0?(r.setDirty(!0),r.dispatch("AddUndo",Jt),r.dispatch("change",Jt)):r.dispatch("AddUndo",Jt),ct},hX=(r,g,B)=>{g.data=[],B.set(0),g.typing=!1,r.dispatch("ClearUndos")},CC=(r,g,B,H,re)=>{if(g.transact(H)){const be=g.data[B.get()].bookmark,Re=g.data[B.get()-1];kC(r,Re,!0),g.transact(re)&&(g.data[B.get()-1].beforeBookmark=be)}},fP=(r,g,B)=>{let H;return g.get(){let re;return g.typing&&(g.add(),g.typing=!1,n4(g,!1,B)),H.get()>0&&(H.set(H.get()-1),re=g.data[H.get()],kC(r,re,!0),r.setDirty(!0),r.dispatch("Undo",{level:re})),re},NF=r=>{r.clear(),r.add()},$F=(r,g,B)=>B.get()>0||g.typing&&g.data[0]&&!cP(SC(r),g.data[0]),pX=(r,g)=>g.get()(zF(r,g),r.beforeChange(),r.ignore(B),r.add()),gX=(r,g)=>{try{r.set(r.get()+1),g()}finally{r.set(r.get()-1)}},vX=(r,g)=>{const B=r.dom,H=E(g)?g:r.getBody();ye(B.select("table,a",H),re=>{switch(re.nodeName){case"TABLE":const be=Kx(r),Re=B.getAttrib(re,"border");(!Re||Re==="0")&&r.hasVisual?B.addClass(re,be):B.removeClass(re,be);break;case"A":if(!B.getAttrib(re,"href")){const Ke=B.getAttrib(re,"name")||re.id,ct=Jx(r);Ke&&r.hasVisual?B.addClass(re,ct):B.removeClass(re,ct)}break}}),r.dispatch("VisualAid",{element:g,hasVisual:r.hasVisual})},VF=r=>({init:{bindEvents:k},undoManager:{beforeChange:(g,B)=>Ly(r,g,B),add:(g,B,H,re,be,Re)=>uP(r,g,B,H,re,be,Re),undo:(g,B,H)=>FF(r,g,B,H),redo:(g,B)=>fP(r,g,B),clear:(g,B)=>hX(r,g,B),reset:g=>NF(g),hasUndo:(g,B)=>$F(r,g,B),hasRedo:(g,B)=>pX(g,B),transact:(g,B,H)=>mX(g,B,H),ignore:(g,B)=>gX(g,B),extra:(g,B,H,re)=>CC(r,g,B,H,re)},formatter:{match:(g,B,H,re)=>b7(r,g,B,H,re),matchAll:(g,B)=>sY(r,g,B),matchNode:(g,B,H,re)=>Py(r,g,B,H,re),canApply:g=>cY(r,g),closest:g=>lY(r,g),apply:(g,B,H)=>$7(r,g,B,H),remove:(g,B,H,re)=>z7(r,g,B,H,re),toggle:(g,B,H)=>Fu(r,g,B,H),formatChanged:(g,B,H,re,be)=>V7(r,g,B,H,re,be)},editor:{getContent:g=>cW(r,g),setContent:(g,B)=>m7(r,g,B),insertContent:(g,B)=>aY(r,g,B),addVisual:g=>vX(r,g)},selection:{getContent:(g,B)=>sX(r,g,B)},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:()=>Y.none()}}),UF=r=>{const g=kt=>_(kt)?kt:{},{init:B,undoManager:H,formatter:re,editor:be,selection:Re,autocompleter:Ke,raw:ct}=r;return{init:{bindEvents:B.bindEvents},undoManager:{beforeChange:H.beforeChange,add:H.add,undo:H.undo,redo:H.redo,clear:H.clear,reset:H.reset,hasUndo:H.hasUndo,hasRedo:H.hasRedo,transact:(kt,Wt,Jt)=>H.transact(Jt),ignore:(kt,Wt)=>H.ignore(Wt),extra:(kt,Wt,Jt,ln)=>H.extra(Jt,ln)},formatter:{match:(kt,Wt,Jt,ln)=>re.match(kt,g(Wt),ln),matchAll:re.matchAll,matchNode:re.matchNode,canApply:kt=>re.canApply(kt),closest:kt=>re.closest(kt),apply:(kt,Wt,Jt)=>re.apply(kt,g(Wt)),remove:(kt,Wt,Jt,ln)=>re.remove(kt,g(Wt)),toggle:(kt,Wt,Jt)=>re.toggle(kt,g(Wt)),formatChanged:(kt,Wt,Jt,ln,kn)=>re.formatChanged(Wt,Jt,ln,kn)},editor:{getContent:kt=>be.getContent(kt),setContent:(kt,Wt)=>({content:be.setContent(kt,Wt),html:""}),insertContent:(kt,Wt)=>(be.insertContent(kt),""),addVisual:be.addVisual},selection:{getContent:(kt,Wt)=>Re.getContent(Wt)},autocompleter:{addDecoration:Ke.addDecoration,removeDecoration:Ke.removeDecoration},raw:{getModel:()=>Y.some(ct.getRawModel())}}},yX=()=>{const r=$(null),g=$("");return{init:{bindEvents:k},undoManager:{beforeChange:k,add:r,undo:r,redo:r,clear:k,reset:k,hasUndo:oe,hasRedo:oe,transact:r,ignore:k,extra:k},formatter:{match:oe,matchAll:$([]),matchNode:$(void 0),canApply:oe,closest:g,apply:k,remove:k,toggle:k,formatChanged:$({unbind:k})},editor:{getContent:g,setContent:$({content:"",html:""}),insertContent:$(""),addVisual:k},selection:{getContent:g},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:$(Y.none())}}},Iy=r=>_t(r.plugins,"rtc"),bX=r=>Ct(r.plugins,"rtc").bind(g=>Y.from(g.setup)),jF=r=>{const g=r;return bX(r).fold(()=>(g.rtcInstance=VF(r),Y.none()),B=>(g.rtcInstance=yX(),Y.some(()=>B().then(H=>(g.rtcInstance=UF(H),H.rtc.isRemote)))))},K5=r=>r.rtcInstance?r.rtcInstance:VF(r),hf=r=>{const g=r.rtcInstance;if(g)return g;throw new Error("Failed to get RTC instance not yet initialized.")},QF=(r,g,B)=>{hf(r).undoManager.beforeChange(g,B)},dP=(r,g,B,H,re,be,Re)=>hf(r).undoManager.add(g,B,H,re,be,Re),HF=(r,g,B,H)=>hf(r).undoManager.undo(g,B,H),ZF=(r,g,B)=>hf(r).undoManager.redo(g,B),hP=(r,g,B)=>{hf(r).undoManager.clear(g,B)},qF=(r,g)=>{hf(r).undoManager.reset(g)},WF=(r,g,B)=>hf(r).undoManager.hasUndo(g,B),YF=(r,g,B)=>hf(r).undoManager.hasRedo(g,B),xX=(r,g,B,H)=>hf(r).undoManager.transact(g,B,H),pP=(r,g,B)=>{hf(r).undoManager.ignore(g,B)},_X=(r,g,B,H,re)=>{hf(r).undoManager.extra(g,B,H,re)},AC=(r,g,B,H,re)=>hf(r).formatter.match(g,B,H,re),wX=(r,g,B)=>hf(r).formatter.matchAll(g,B),OX=(r,g,B,H,re)=>hf(r).formatter.matchNode(g,B,H,re),SX=(r,g)=>hf(r).formatter.canApply(g),XF=(r,g)=>hf(r).formatter.closest(g),GF=(r,g,B,H)=>{hf(r).formatter.apply(g,B,H)},kX=(r,g,B,H,re)=>{hf(r).formatter.remove(g,B,H,re)},TX=(r,g,B,H)=>{hf(r).formatter.toggle(g,B,H)},CX=(r,g,B,H,re,be)=>hf(r).formatter.formatChanged(g,B,H,re,be),AX=(r,g)=>K5(r).editor.getContent(g),MX=(r,g,B)=>K5(r).editor.setContent(g,B),KF=(r,g,B)=>K5(r).editor.insertContent(g,B),tfe=(r,g,B)=>hf(r).selection.getContent(g,B),EX=(r,g)=>hf(r).editor.addVisual(g),JF=r=>hf(r).init.bindEvents(),PX=(r,g={})=>{const B=g.format?g.format:"html";return tfe(r,B,g)},eN=r=>r.dom.length===0?(ja(r),Y.none()):Y.some(r),RX=(r,g)=>r.filter(B=>ky.isBookmarkNode(B.dom)).bind(g?fd:Eu),LX=(r,g,B,H,re)=>{const be=r.dom,Re=g.dom,Ke=H?be.length:Re.length;H?(ZE(be,Re,re,!1,!H),B.setStart(Re,Ke)):(ZE(Re,be,re,!1,!H),B.setEnd(Re,Ke))},IX=(r,g,B)=>{Hu(r).each(H=>{const re=r.dom;g&&_5(H,qr(re,0),B)?O5(re,0,B):!g&&w5(H,qr(re,re.length),B)&&HE(re,re.length,B)})},mP=(r,g,B,H,re)=>{r.bind(be=>((H?HE:O5)(be.dom,H?be.dom.length:0,re),g.filter(ks).map(Ke=>LX(be,Ke,B,H,re)))).orThunk(()=>RX(g,H).or(g).filter(ks).map(Re=>IX(Re,H,re)))},DX=(r,g,B)=>{const H=Y.from(g.firstChild).map(sr.fromDom),re=Y.from(g.lastChild).map(sr.fromDom);r.deleteContents(),r.insertNode(g);const be=H.bind(Eu).filter(ks).bind(eN),Re=re.bind(fd).filter(ks).bind(eN);mP(be,H,r,!0,B),mP(Re,re,r,!1,B),r.collapse(!1)},BX=(r,g)=>({format:"html",...r,set:!0,selection:!0,content:g}),zX=(r,g)=>{if(g.format!=="raw"){const B=r.selection.getRng(),H=r.dom.getParent(B.commonAncestorContainer,r.dom.isBlock),re=H?{context:H.nodeName.toLowerCase()}:{},be=r.parser.parse(g.content,{forced_root_block:!1,...re,...g});return Yb({validate:!1},r.schema).serialize(be)}else return g.content},FX=(r,g,B={})=>{const H=BX(B,g);rP(r,H).each(re=>{const be=zX(r,re),Re=r.selection.getRng();DX(Re,Re.createContextualFragment(be),r.schema),r.selection.setRng(Re),g5(r,Re),oP(r,be,re)})},tN=(r,g,B)=>{if(_t(r,g)){const H=Te(r[g],re=>re!==B);H.length===0?delete r[g]:r[g]=H}};var nfe=(r,g)=>{let B,H;const re=(Ke,ct)=>De(ct,kt=>r.is(kt,Ke)),be=Ke=>r.getParents(Ke,void 0,r.getRoot()),Re=()=>{B={},H={},g.on("NodeChange",Ke=>{const ct=Ke.element,kt=be(ct),Wt={};Ge(B,(Jt,ln)=>{re(ln,kt).each(kn=>{H[ln]||(ye(Jt,Vn=>{Vn(!0,{node:kn,selector:ln,parents:kt})}),H[ln]=Jt),Wt[ln]=Jt})}),Ge(H,(Jt,ln)=>{Wt[ln]||(delete H[ln],ye(Jt,kn=>{kn(!1,{node:ct,selector:ln,parents:kt})}))})})};return{selectorChangedWithUnbind:(Ke,ct)=>(B||Re(),B[Ke]||(B[Ke]=[]),B[Ke].push(ct),re(Ke,be(g.selection.getStart())).each(()=>{H[Ke]=B[Ke]}),{unbind:()=>{tN(B,Ke,ct),tN(H,Ke,ct)}})}};const NX=r=>!!(r&&r.ownerDocument)&&Qu(sr.fromDom(r.ownerDocument),sr.fromDom(r)),$X=r=>r?NX(r.startContainer)&&NX(r.endContainer):!1,nN=(r,g,B,H)=>{let re,be;const{selectorChangedWithUnbind:Re}=nfe(r,H),Ke=(Wo,Ei)=>{const ws=r.createRng();E(Wo)&&E(Ei)?(ws.setStart(Wo,Ei),ws.setEnd(Wo,Ei),Ur(ws),pr(!1)):(XS(r,ws,H.getBody(),!0),Ur(ws))},ct=Wo=>PX(H,Wo),kt=(Wo,Ei)=>FX(H,Wo,Ei),Wt=Wo=>PE(H.getBody(),wr(),Wo),Jt=Wo=>RE(H.getBody(),wr(),Wo),ln=(Wo,Ei)=>jd.getBookmark(Wo,Ei),kn=Wo=>jd.moveToBookmark(Wo),Vn=(Wo,Ei)=>(Jq(r,Wo,Ei).each(Ur),Wo),Rn=()=>{const Wo=wr(),Ei=Tr();return!Wo||Wo.item?!1:Wo.compareEndPoints?Wo.compareEndPoints("StartToEnd",Wo)===0:!Ei||Wo.collapsed},qn=()=>{const Wo=wr(),Ei=H.getBody().querySelectorAll('[data-mce-selected="1"]');return Ei.length>0?Oe(Ei,ws=>r.isEditable(ws.parentElement)):iB(r,Wo)},pr=Wo=>{const Ei=wr();Ei.collapse(!!Wo),Ur(Ei)},Tr=()=>g.getSelection?g.getSelection():g.document.selection,wr=()=>{let Wo;const Ei=(ii,Qi,Qa)=>{try{return Qi.compareBoundaryPoints(ii,Qa)}catch{return-1}},ws=g.document;if(E(H.bookmark)&&!Mw(H)){const ii=b6(H);if(ii.isSome())return ii.map(Qi=>$3(H,[Qi])[0]).getOr(ws.createRange())}try{const ii=Tr();ii&&!V(ii.anchorNode)&&(ii.rangeCount>0?Wo=ii.getRangeAt(0):Wo=ws.createRange(),Wo=$3(H,[Wo])[0])}catch{}if(Wo||(Wo=ws.createRange()),pn(Wo.startContainer)&&Wo.collapsed){const ii=r.getRoot();Wo.setStart(ii,0),Wo.setEnd(ii,0)}return re&&be&&(Ei(Wo.START_TO_START,Wo,re)===0&&Ei(Wo.END_TO_END,Wo,re)===0?Wo=be:(re=null,be=null)),Wo},Ur=(Wo,Ei)=>{if(!$X(Wo))return;const ws=Tr();if(Wo=H.dispatch("SetSelectionRange",{range:Wo,forward:Ei}).range,ws){be=Wo;try{ws.removeAllRanges(),ws.addRange(Wo)}catch{}Ei===!1&&ws.extend&&(ws.collapse(Wo.endContainer,Wo.endOffset),ws.extend(Wo.startContainer,Wo.startOffset)),re=ws.rangeCount>0?ws.getRangeAt(0):null}if(!Wo.collapsed&&Wo.startContainer===Wo.endContainer&&(ws!=null&&ws.setBaseAndExtent)&&Wo.endOffset-Wo.startOffset<2&&Wo.startContainer.hasChildNodes()){const Qi=Wo.startContainer.childNodes[Wo.startOffset];Qi&&Qi.nodeName==="IMG"&&(ws.setBaseAndExtent(Wo.startContainer,Wo.startOffset,Wo.endContainer,Wo.endOffset),(ws.anchorNode!==Wo.startContainer||ws.focusNode!==Wo.endContainer)&&ws.setBaseAndExtent(Qi,0,Qi,1))}H.dispatch("AfterSetSelectionRange",{range:Wo,forward:Ei})},wo=Wo=>(kt(r.getOuterHTML(Wo)),Wo),jo=()=>Gq(H.getBody(),wr()),di=(Wo,Ei)=>Kq(r,wr(),Wo,Ei),lo=()=>{const Wo=Tr(),Ei=Wo==null?void 0:Wo.anchorNode,ws=Wo==null?void 0:Wo.focusNode;if(!Wo||!Ei||!ws||V(Ei)||V(ws))return!0;const ii=r.createRng(),Qi=r.createRng();try{ii.setStart(Ei,Wo.anchorOffset),ii.collapse(!0),Qi.setStart(ws,Wo.focusOffset),Qi.collapse(!0)}catch{return!0}return ii.compareBoundaryPoints(ii.START_TO_START,Qi)<=0},nu={dom:r,win:g,serializer:B,editor:H,expand:(Wo={type:"word"})=>Ur(To(r).expand(wr(),Wo)),collapse:pr,setCursorLocation:Ke,getContent:ct,setContent:kt,getBookmark:ln,moveToBookmark:kn,select:Vn,isCollapsed:Rn,isEditable:qn,isForward:lo,setNode:wo,getNode:jo,getSel:Tr,setRng:Ur,getRng:wr,getStart:Wt,getEnd:Jt,getSelectedBlocks:di,normalize:()=>{const Wo=wr(),Ei=Tr();if(!ZM(Ei)&&GS(H)){const ws=Ko(r,Wo);return ws.each(ii=>{Ur(ii,lo())}),ws.getOr(Wo)}return Wo},selectorChanged:(Wo,Ei)=>(Re(Wo,Ei),nu),selectorChangedWithUnbind:Re,getScrollContainer:()=>{let Wo,Ei=r.getRoot();for(;Ei&&Ei.nodeName!=="BODY";){if(Ei.scrollHeight>Ei.clientHeight){Wo=Ei;break}Ei=Ei.parentNode}return Wo},scrollIntoView:(Wo,Ei)=>{E(Wo)?Nq(H,Wo,Ei):g5(H,wr(),Ei)},placeCaretAt:(Wo,Ei)=>Ur(Ye(Wo,Ei,H.getDoc())),getBoundingClientRect:()=>{const Wo=wr();return Wo.collapsed?qr.fromRangeStart(Wo).getClientRects()[0]:Wo.getBoundingClientRect()},destroy:()=>{g=re=be=null,vl.destroy()}},jd=ky(nu),vl=Ow(nu,H);return nu.bookmarkManager=jd,nu.controlSelection=vl,nu},rfe=(r,g,B)=>{g.addNodeFilter("br",(H,re,be)=>{const Re=mo.extend({},B.getBlockElements()),Ke=B.getNonEmptyElements(),ct=B.getWhitespaceElements();Re.body=1;const kt=Wt=>Wt.name in Re||eh(B,Wt);for(let Wt=0,Jt=H.length;Wt{r.addAttributeFilter("data-mce-tabindex",(H,re)=>{let be=H.length;for(;be--;){const Re=H[be];Re.attr("tabindex",Re.attr("data-mce-tabindex")),Re.attr(re,null)}}),r.addAttributeFilter("src,href,style",(H,re)=>{const be="data-mce-"+re,Re=g.url_converter,Ke=g.url_converter_scope;let ct=H.length;for(;ct--;){const kt=H[ct];let Wt=kt.attr(be);Wt!==void 0?(kt.attr(re,Wt.length>0?Wt:null),kt.attr(be,null)):(Wt=kt.attr(re),re==="style"?Wt=B.serializeStyle(B.parseStyle(Wt),kt.name):Re&&(Wt=Re.call(Ke,Wt,re,kt.name)),kt.attr(re,Wt.length>0?Wt:null))}}),r.addAttributeFilter("class",H=>{let re=H.length;for(;re--;){const be=H[re];let Re=be.attr("class");Re&&(Re=Re.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),be.attr("class",Re.length>0?Re:null))}}),r.addAttributeFilter("data-mce-type",(H,re,be)=>{let Re=H.length;for(;Re--;){const Ke=H[Re];Ke.attr("data-mce-type")==="bookmark"&&!be.cleanup&&(Y.from(Ke.firstChild).exists(kt=>{var Wt;return!$0((Wt=kt.value)!==null&&Wt!==void 0?Wt:"")})?Ke.unwrap():Ke.remove())}}),r.addNodeFilter("script,style",(H,re)=>{var be;const Re=ct=>ct.replace(/()/g,` `).replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"");let Ke=H.length;for(;Ke--;){const ct=H[Ke],kt=ct.firstChild,Wt=(be=kt==null?void 0:kt.value)!==null&&be!==void 0?be:"";if(re==="script"){const Jt=ct.attr("type");Jt&&ct.attr("type",Jt==="mce-no/type"?null:Jt.replace(/^mce\-/,"")),g.element_format==="xhtml"&&kt&&Wt.length>0&&(kt.value=`// `)}else g.element_format==="xhtml"&&kt&&Wt.length>0&&(kt.value=``)}}),r.addNodeFilter("#comment",H=>{let re=H.length;for(;re--;){const be=H[re],Re=be.value;g.preserve_cdata&&(Re==null?void 0:Re.indexOf("[CDATA["))===0?(be.name="#cdata",be.type=4,be.value=B.decode(Re.replace(/^\[CDATA\[|\]\]$/g,""))):(Re==null?void 0:Re.indexOf("mce:protected "))===0&&(be.name="#text",be.type=3,be.raw=!0,be.value=unescape(Re).substr(14))}}),r.addNodeFilter("xml:namespace,input",(H,re)=>{let be=H.length;for(;be--;){const Re=H[be];Re.type===7?Re.remove():Re.type===1&&re==="input"&&!Re.attr("type")&&Re.attr("type","text")}}),r.addAttributeFilter("data-mce-type",H=>{ye(H,re=>{re.attr("data-mce-type")==="format-caret"&&(re.isEmpty(r.schema.getNonEmptyElements())?re.remove():re.unwrap())})}),r.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(H,re)=>{let be=H.length;for(;be--;)H[be].attr(re,null)}),g.remove_trailing_brs&&nfe(g,r,r.schema)},lu=r=>{const g=H=>(H==null?void 0:H.name)==="br",B=r.lastChild;if(g(B)){const H=B.prev;g(H)&&(B.remove(),H.remove())}},mP=(r,g,B)=>{let H;const re=r.dom;let be=g.cloneNode(!0);const Re=document.implementation;if(Re.createHTMLDocument){const Ke=Re.createHTMLDocument("");mo.each(be.nodeName==="BODY"?be.childNodes:[be],ct=>{Ke.body.appendChild(Ke.importNode(ct,!0))}),be.nodeName!=="BODY"?be=Ke.body.firstChild:be=Ke.body,H=re.doc,re.doc=Ke}return nE(r,{...B,node:be}),H&&(re.doc=H),be},rfe=(r,g)=>E(r)&&r.hasEventListeners("PreProcess")&&!g.no_events,UX=(r,g,B)=>rfe(r,B)?mP(r,g,B):g,jX=(r,g,B)=>{mo.inArray(g,B)===-1&&(r.addAttributeFilter(B,(H,re)=>{let be=H.length;for(;be--;)H[be].attr(re,null)}),g.push(B))},r4=(r,g,B)=>!g.no_events&&r?A3(r,{...g,content:B}).content:B,ofe=(r,g,B)=>{const H=vd(B.getInner?g.innerHTML:r.getOuterHTML(g));return B.selection||iy(sr.fromDom(g))?H:mo.trim(H)},ife=(r,g,B)=>{const H=B.selection?{forced_root_block:!1,...B}:B,re=r.parse(g,H);return lu(re),re},uh=(r,g,B)=>Wb(r,g).serialize(B),rN=(r,g,B,H,re)=>{const be=uh(g,B,H);return r4(r,re,be)},oN=(r,g)=>{const B=["data-mce-selected"],H={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...r},re=g&&g.dom?g.dom:Nl.DOM,be=g&&g.schema?g.schema:Np(H),Re=Ry(H,be);VX(Re,H,re);const Ke=(ct,kt={})=>{const Wt={format:"html",...kt},Jt=UX(g,ct,Wt),ln=ofe(re,Jt,Wt),kn=ife(Re,ln,Wt);return Wt.format==="tree"?kn:rN(g,H,be,kn,Wt)};return{schema:be,addNodeFilter:Re.addNodeFilter,addAttributeFilter:Re.addAttributeFilter,serialize:Ke,addRules:be.addValidElements,setRules:be.setValidElements,addTempAttr:U(jX,Re,B),getTempAttrs:$(B),getNodeFilters:Re.getNodeFilters,getAttributeFilters:Re.getAttributeFilters,removeNodeFilter:Re.removeNodeFilter,removeAttributeFilter:Re.removeAttributeFilter}},gP=(r,g)=>{const B=oN(r,g);return{schema:B.schema,addNodeFilter:B.addNodeFilter,addAttributeFilter:B.addAttributeFilter,serialize:B.serialize,addRules:B.addRules,setRules:B.setRules,addTempAttr:B.addTempAttr,getTempAttrs:B.getTempAttrs,getNodeFilters:B.getNodeFilters,getAttributeFilters:B.getAttributeFilters,removeNodeFilter:B.removeNodeFilter,removeAttributeFilter:B.removeAttributeFilter}},QX="html",HX=(r,g)=>({...r,format:g,get:!0,getInner:!0}),AC=(r,g={})=>{const B=g.format?g.format:QX,H=HX(g,B);return vF(r,H).fold(Q,re=>{const be=AX(r,re);return tP(r,be,re)})},ZX="html",vP=(r,g)=>({format:ZX,...r,set:!0,content:g}),yP=(r,g,B={})=>{const H=vP(B,g);return nP(r,H).map(re=>{const be=MX(r,re.content,re);return rP(r,be.html,re),be.content}).getOr(g)},iN="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists,template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),aN=[],bP="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,template,textcolor,rtc".split(","),xP=[],MC=(r,g)=>{const B=Te(g,H=>_t(r,H));return Ue(B)},qX=r=>{const g=MC(r,iN),B=r.forced_root_block;return(B===!1||B==="")&&g.push("forced_root_block (false only)"),Ue(g)},WX=r=>MC(r,aN),sN=(r,g)=>{const B=mo.makeMap(r.plugins," "),re=Te(g,be=>_t(B,be));return Ue(re)},p0=r=>sN(r,bP),YX=r=>sN(r,xP.map(g=>g.name)),XX=(r,g)=>{const B=qX(r),H=p0(g),re=H.length>0,be=B.length>0,Re=g.theme==="mobile";if(re||be||Re){const Ke=` +-->`)}}),r.addNodeFilter("#comment",H=>{let re=H.length;for(;re--;){const be=H[re],Re=be.value;g.preserve_cdata&&(Re==null?void 0:Re.indexOf("[CDATA["))===0?(be.name="#cdata",be.type=4,be.value=B.decode(Re.replace(/^\[CDATA\[|\]\]$/g,""))):(Re==null?void 0:Re.indexOf("mce:protected "))===0&&(be.name="#text",be.type=3,be.raw=!0,be.value=unescape(Re).substr(14))}}),r.addNodeFilter("xml:namespace,input",(H,re)=>{let be=H.length;for(;be--;){const Re=H[be];Re.type===7?Re.remove():Re.type===1&&re==="input"&&!Re.attr("type")&&Re.attr("type","text")}}),r.addAttributeFilter("data-mce-type",H=>{ye(H,re=>{re.attr("data-mce-type")==="format-caret"&&(re.isEmpty(r.schema.getNonEmptyElements())?re.remove():re.unwrap())})}),r.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(H,re)=>{let be=H.length;for(;be--;)H[be].attr(re,null)}),g.remove_trailing_brs&&rfe(g,r,r.schema)},lu=r=>{const g=H=>(H==null?void 0:H.name)==="br",B=r.lastChild;if(g(B)){const H=B.prev;g(H)&&(B.remove(),H.remove())}},gP=(r,g,B)=>{let H;const re=r.dom;let be=g.cloneNode(!0);const Re=document.implementation;if(Re.createHTMLDocument){const Ke=Re.createHTMLDocument("");mo.each(be.nodeName==="BODY"?be.childNodes:[be],ct=>{Ke.body.appendChild(Ke.importNode(ct,!0))}),be.nodeName!=="BODY"?be=Ke.body.firstChild:be=Ke.body,H=re.doc,re.doc=Ke}return rE(r,{...B,node:be}),H&&(re.doc=H),be},ofe=(r,g)=>E(r)&&r.hasEventListeners("PreProcess")&&!g.no_events,UX=(r,g,B)=>ofe(r,B)?gP(r,g,B):g,jX=(r,g,B)=>{mo.inArray(g,B)===-1&&(r.addAttributeFilter(B,(H,re)=>{let be=H.length;for(;be--;)H[be].attr(re,null)}),g.push(B))},r4=(r,g,B)=>!g.no_events&&r?A3(r,{...g,content:B}).content:B,ife=(r,g,B)=>{const H=yd(B.getInner?g.innerHTML:r.getOuterHTML(g));return B.selection||iy(sr.fromDom(g))?H:mo.trim(H)},afe=(r,g,B)=>{const H=B.selection?{forced_root_block:!1,...B}:B,re=r.parse(g,H);return lu(re),re},uh=(r,g,B)=>Yb(r,g).serialize(B),rN=(r,g,B,H,re)=>{const be=uh(g,B,H);return r4(r,re,be)},oN=(r,g)=>{const B=["data-mce-selected"],H={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...r},re=g&&g.dom?g.dom:Nl.DOM,be=g&&g.schema?g.schema:Np(H),Re=Ry(H,be);VX(Re,H,re);const Ke=(ct,kt={})=>{const Wt={format:"html",...kt},Jt=UX(g,ct,Wt),ln=ife(re,Jt,Wt),kn=afe(Re,ln,Wt);return Wt.format==="tree"?kn:rN(g,H,be,kn,Wt)};return{schema:be,addNodeFilter:Re.addNodeFilter,addAttributeFilter:Re.addAttributeFilter,serialize:Ke,addRules:be.addValidElements,setRules:be.setValidElements,addTempAttr:U(jX,Re,B),getTempAttrs:$(B),getNodeFilters:Re.getNodeFilters,getAttributeFilters:Re.getAttributeFilters,removeNodeFilter:Re.removeNodeFilter,removeAttributeFilter:Re.removeAttributeFilter}},vP=(r,g)=>{const B=oN(r,g);return{schema:B.schema,addNodeFilter:B.addNodeFilter,addAttributeFilter:B.addAttributeFilter,serialize:B.serialize,addRules:B.addRules,setRules:B.setRules,addTempAttr:B.addTempAttr,getTempAttrs:B.getTempAttrs,getNodeFilters:B.getNodeFilters,getAttributeFilters:B.getAttributeFilters,removeNodeFilter:B.removeNodeFilter,removeAttributeFilter:B.removeAttributeFilter}},QX="html",HX=(r,g)=>({...r,format:g,get:!0,getInner:!0}),MC=(r,g={})=>{const B=g.format?g.format:QX,H=HX(g,B);return vF(r,H).fold(Q,re=>{const be=AX(r,re);return nP(r,be,re)})},ZX="html",yP=(r,g)=>({format:ZX,...r,set:!0,content:g}),bP=(r,g,B={})=>{const H=yP(B,g);return rP(r,H).map(re=>{const be=MX(r,re.content,re);return oP(r,be.html,re),be.content}).getOr(g)},iN="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists,template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),aN=[],xP="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,template,textcolor,rtc".split(","),_P=[],EC=(r,g)=>{const B=Te(g,H=>_t(r,H));return Ue(B)},qX=r=>{const g=EC(r,iN),B=r.forced_root_block;return(B===!1||B==="")&&g.push("forced_root_block (false only)"),Ue(g)},WX=r=>EC(r,aN),sN=(r,g)=>{const B=mo.makeMap(r.plugins," "),re=Te(g,be=>_t(B,be));return Ue(re)},p0=r=>sN(r,xP),YX=r=>sN(r,_P.map(g=>g.name)),XX=(r,g)=>{const B=qX(r),H=p0(g),re=H.length>0,be=B.length>0,Re=g.theme==="mobile";if(re||be||Re){const Ke=` - `,ct=Re?` Themes:${Ke}mobile`:"",kt=re?` Plugins:${Ke}${H.join(Ke)}`:"",Wt=be?` -Options:${Ke}${B.join(Ke)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 7.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/7/migration-from-6x/ for more information."+ct+kt+Wt)}},GX=r=>De(xP,g=>g.name===r).fold(()=>r,g=>g.replacedWith?`${r}, replaced by ${g.replacedWith}`:r),KX=(r,g)=>{const B=WX(r),H=YX(g),re=H.length>0,be=B.length>0;if(re||be){const Re=` +Options:${Ke}${B.join(Ke)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 7.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/7/migration-from-6x/ for more information."+ct+kt+Wt)}},GX=r=>De(_P,g=>g.name===r).fold(()=>r,g=>g.replacedWith?`${r}, replaced by ${g.replacedWith}`:r),KX=(r,g)=>{const B=WX(r),H=YX(g),re=H.length>0,be=B.length>0;if(re||be){const Re=` - `,Ke=re?` Plugins:${Re}${H.map(GX).join(Re)}`:"",ct=be?` -Options:${Re}${B.join(Re)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+Ke+ct)}},JX=(r,g)=>{XX(r,g),KX(r,g)},K5=Nl.DOM,eG=r=>{K5.setStyle(r.id,"display",r.orgDisplay)},EC=r=>Y.from(r).each(g=>g.destroy()),tG=r=>{const g=r;g.contentAreaContainer=g.formElement=g.container=g.editorContainer=null,g.bodyElement=g.contentDocument=g.contentWindow=null,g.iframeElement=g.targetElm=null;const B=r.selection;if(B){const H=B.dom;g.selection=B.win=B.dom=H.doc=null}},PC=r=>{const g=r.formElement;g&&(g._mceOldSubmit&&(g.submit=g._mceOldSubmit,delete g._mceOldSubmit),K5.unbind(g,"submit reset",r.formEventDelegate))},nG=r=>{if(!r.removed){const{_selectionOverrides:g,editorUpload:B}=r,H=r.getBody(),re=r.getElement();H&&r.save({is_removing:!0}),r.removed=!0,r.unbindAllNativeEvents(),r.hasHiddenInput&&E(re==null?void 0:re.nextSibling)&&K5.remove(re.nextSibling),M3(r),r.editorManager.remove(r),!r.inline&&H&&eG(r),rE(r),K5.remove(r.getContainer()),EC(g),EC(B),r.destroy()}},rG=(r,g)=>{const{selection:B,dom:H}=r;if(!r.destroyed){if(!g&&!r.removed){r.remove();return}g||(r.editorManager.off("beforeunload",r._beforeUnload),r.theme&&r.theme.destroy&&r.theme.destroy(),EC(B),EC(H)),PC(r),tG(r),r.destroyed=!0}},o4=(()=>{const r={};return{add:(re,be)=>{r[re]=be},get:re=>r[re]?r[re]:{icons:{}},has:re=>_t(r,re)}})(),i4=su.ModelManager,lN=(r,g)=>g.dom[r],iG=(r,g)=>parseInt(pi(g,r),10),aG=U(lN,"clientWidth"),J5=U(lN,"clientHeight"),cN=U(iG,"margin-top"),uN=U(iG,"margin-left"),sG=r=>r.dom.getBoundingClientRect(),fN=(r,g,B)=>{const H=aG(r),re=J5(r);return g>=0&&B>=0&&g<=H&&B<=re},lG=(r,g,B,H)=>{const re=sG(g),be=r?re.left+g.dom.clientLeft+uN(g):0,Re=r?re.top+g.dom.clientTop+cN(g):0,Ke=B-be,ct=H-Re;return{x:Ke,y:ct}},cG=(r,g,B)=>{const H=sr.fromDom(r.getBody()),re=r.inline?H:ym(H),be=lG(r.inline,re,g,B);return fN(re,be.x,be.y)},uG=r=>Y.from(r).map(sr.fromDom),fG=r=>{const g=r.inline?r.getBody():r.getContentAreaContainer();return uG(g).map(zc).getOr(!1)};var dN=()=>{const r=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:r,close:r,getArgs:r}};const hN=r=>{const g=[],B=()=>{const ln=r.theme;return ln&&ln.getNotificationManagerImpl?ln.getNotificationManagerImpl():dN()},H=()=>Y.from(g[0]),re=(ln,kn)=>ln.type===kn.type&&ln.text===kn.text&&!ln.progressBar&&!ln.timeout&&!kn.progressBar&&!kn.timeout,be=()=>{H().each(ln=>{ln.reposition()})},Re=ln=>{g.push(ln)},Ke=ln=>{He(g,kn=>kn===ln).each(kn=>{g.splice(kn,1)})},ct=(ln,kn=!0)=>r.removed||!fG(r)?{}:(kn&&r.dispatch("BeforeOpenNotification",{notification:ln}),De(g,Vn=>re(B().getArgs(Vn),ln)).getOrThunk(()=>{r.editorManager.setActive(r);const Vn=B().open(ln,()=>{Ke(Vn)},()=>v5(r));return Re(Vn),be(),r.dispatch("OpenNotification",{notification:{...Vn}}),Vn})),kt=()=>{H().each(ln=>{B().close(ln),Ke(ln),be()})},Wt=$(g);return(ln=>{ln.on("SkinLoaded",()=>{const kn=xd(ln);kn&&ct({text:kn,type:"warning",timeout:0},!1),be()}),ln.on("show ResizeEditor NodeChange",()=>{requestAnimationFrame(be)}),ln.on("remove",()=>{ye(g.slice(),kn=>{B().close(kn)})}),ln.addShortcut("alt+F12","Focus to notification",()=>H().map(kn=>sr.fromDom(kn.getEl())).each(kn=>F3(kn)))})(r),{open:ct,close:kt,getNotifications:Wt}},a4=su.PluginManager,yv=su.ThemeManager;var pN=()=>{const r=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:r,openUrl:r,alert:r,confirm:r,close:r}};const _P=r=>{let g=[];const B=()=>{const Rn=r.theme;return Rn&&Rn.getWindowManagerImpl?Rn.getWindowManagerImpl():pN()},H=(Rn,qn)=>(...pr)=>qn?qn.apply(Rn,pr):void 0,re=Rn=>{r.dispatch("OpenWindow",{dialog:Rn})},be=Rn=>{r.dispatch("CloseWindow",{dialog:Rn})},Re=Rn=>{g.push(Rn),re(Rn)},Ke=Rn=>{be(Rn),g=Te(g,qn=>qn!==Rn),g.length===0&&r.focus()},ct=()=>Y.from(g[g.length-1]),kt=Rn=>{r.editorManager.setActive(r),g5(r),r.ui.show();const qn=Rn();return Re(qn),qn},Wt=(Rn,qn)=>kt(()=>B().open(Rn,qn,Ke)),Jt=Rn=>kt(()=>B().openUrl(Rn,Ke)),ln=(Rn,qn,pr)=>{const Tr=B();Tr.alert(Rn,H(pr||Tr,qn))},kn=(Rn,qn,pr)=>{const Tr=B();Tr.confirm(Rn,H(pr||Tr,qn))},Vn=()=>{ct().each(Rn=>{B().close(Rn),Ke(Rn)})};return r.on("remove",()=>{ye(g,Rn=>{B().close(Rn)})}),{open:Wt,openUrl:Jt,alert:ln,confirm:kn,close:Vn}},mN=(r,g)=>{r.notificationManager.open({type:"error",text:g})},RC=(r,g)=>{r._skinLoaded?mN(r,g):r.on("SkinLoaded",()=>{mN(r,g)})},dG=(r,g)=>{RC(r,Du.translate(["Failed to upload image: {0}",g]))},s4=(r,g,B)=>{Sd(r,g,{message:B}),console.error(B)},ek=(r,g,B)=>B?`Failed to load ${r}: ${B} from url ${g}`:`Failed to load ${r} url: ${g}`,hG=(r,g,B)=>{s4(r,"PluginLoadError",ek("plugin",g,B))},pG=(r,g,B)=>{s4(r,"IconsLoadError",ek("icons",g,B))},mG=(r,g,B)=>{s4(r,"LanguageLoadError",ek("language",g,B))},afe=(r,g,B)=>{s4(r,"ThemeLoadError",ek("theme",g,B))},bv=(r,g,B)=>{s4(r,"ModelLoadError",ek("model",g,B))},wP=(r,g,B)=>{const H=Du.translate(["Failed to initialize plugin: {0}",g]);Sd(r,"PluginLoadError",{message:H}),LC(H,B),RC(r,H)},LC=(r,...g)=>{const B=window.console;B&&(B.error?B.error(r,...g):B.log(r,...g))},gG=r=>/^[a-z0-9\-]+$/i.test(r),OP=r=>"content/"+r+"/content.css",vG=r=>tinymce.Resource.has(OP(r)),Js=r=>l4(r,Bm(r)),yG=r=>l4(r,Wu(r)),l4=(r,g)=>{const B=r.editorManager.baseURL+"/skins/content",re=`content${r.editorManager.suffix}.css`;return ve(g,be=>vG(be)?be:gG(be)&&!r.inline?`${B}/${be}/${re}`:r.documentBaseURI.toAbsolute(be))},bG=r=>{r.contentCSS=r.contentCSS.concat(Js(r),yG(r))},xG=r=>r?Ee(r.getElementsByTagName("img")):[],_G=(r,g)=>{const B={};return{findAll:(re,be=q)=>{const Re=Te(xG(re),ct=>{const kt=ct.src;return ct.hasAttribute("data-mce-bogus")||ct.hasAttribute("data-mce-placeholder")||!kt||kt===fr.transparentSrc?!1:xr(kt,"blob:")?!r.isUploaded(kt)&&be(ct):xr(kt,"data:")?be(ct):!1}),Ke=ve(Re,ct=>{const kt=ct.src;if(_t(B,kt))return B[kt].then(Wt=>v(Wt)?Wt:{image:ct,blobInfo:Wt.blobInfo});{const Wt=sC(g,kt).then(Jt=>(delete B[kt],{image:ct,blobInfo:Jt})).catch(Jt=>(delete B[kt],Jt));return B[kt]=Wt,Wt}});return Promise.all(Ke)}}},SP=()=>{let B={};const H=(ln,kn)=>({status:ln,resultUri:kn}),re=ln=>ln in B;return{hasBlobUri:re,getResultUri:ln=>{const kn=B[ln];return kn?kn.resultUri:null},isPending:ln=>re(ln)?B[ln].status===1:!1,isUploaded:ln=>re(ln)?B[ln].status===2:!1,markPending:ln=>{B[ln]=H(1,null)},markUploaded:(ln,kn)=>{B[ln]=H(2,kn)},removeFailed:ln=>{delete B[ln]},destroy:()=>{B={}}}};let L2=0;const tm=()=>{const r=()=>Math.round(Math.random()*4294967295).toString(36);return"s"+new Date().getTime().toString(36)+r()+r()+r()},tk=r=>r+L2+++tm(),I2=()=>{let r=[];const g=Jt=>({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"})[Jt.toLowerCase()]||"dat",B=(Jt,ln,kn,Vn,Rn)=>{if(v(Jt))return H({id:Jt,name:Vn,filename:Rn,blob:ln,base64:kn});if(_(Jt))return H(Jt);throw new Error("Unknown input type")},H=Jt=>{if(!Jt.blob||!Jt.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const ln=Jt.id||tk("blobid"),kn=Jt.name||ln,Vn=Jt.blob;return{id:$(ln),name:$(kn),filename:$(Jt.filename||kn+"."+g(Vn.type)),blob:$(Vn),base64:$(Jt.base64),blobUri:$(Jt.blobUri||URL.createObjectURL(Vn)),uri:$(Jt.uri)}},re=Jt=>{Re(Jt.id())||r.push(Jt)},be=Jt=>De(r,Jt).getOrUndefined(),Re=Jt=>be(ln=>ln.id()===Jt);return{create:B,add:re,get:Re,getByUri:Jt=>be(ln=>ln.blobUri()===Jt),getByData:(Jt,ln)=>be(kn=>kn.base64()===Jt&&kn.blob().type===ln),findFirst:be,removeByUri:Jt=>{r=Te(r,ln=>ln.blobUri()===Jt?(URL.revokeObjectURL(ln.blobUri()),!1):!0)},destroy:()=>{ye(r,Jt=>{URL.revokeObjectURL(Jt.blobUri())}),r=[]}}},Dy=(r,g)=>{const B={},H=(Rn,qn)=>Rn?Rn.replace(/\/$/,"")+"/"+qn.replace(/^\//,""):qn,re=(Rn,qn)=>new Promise((pr,Tr)=>{const wr=new XMLHttpRequest;wr.open("POST",g.url),wr.withCredentials=g.credentials,wr.upload.onprogress=wo=>{qn(wo.loaded/wo.total*100)},wr.onerror=()=>{Tr("Image upload failed due to a XHR Transport error. Code: "+wr.status)},wr.onload=()=>{if(wr.status<200||wr.status>=300){Tr("HTTP Error: "+wr.status);return}const wo=JSON.parse(wr.responseText);if(!wo||!v(wo.location)){Tr("Invalid JSON: "+wr.responseText);return}pr(H(g.basePath,wo.location))};const Ur=new FormData;Ur.append("file",Rn.blob(),Rn.filename()),wr.send(Ur)}),be=C(g.handler)?g.handler:re,Re=()=>new Promise(Rn=>{Rn([])}),Ke=(Rn,qn)=>({url:qn,blobInfo:Rn,status:!0}),ct=(Rn,qn)=>({url:"",blobInfo:Rn,status:!1,error:qn}),kt=(Rn,qn)=>{mo.each(B[Rn],pr=>{pr(qn)}),delete B[Rn]},Wt=(Rn,qn,pr)=>(r.markPending(Rn.blobUri()),new Promise(Tr=>{let wr,Ur;try{const wo=()=>{wr&&(wr.close(),Ur=k)},jo=lo=>{wo(),r.markUploaded(Rn.blobUri(),lo),kt(Rn.blobUri(),Ke(Rn,lo)),Tr(Ke(Rn,lo))},di=lo=>{wo(),r.removeFailed(Rn.blobUri()),kt(Rn.blobUri(),ct(Rn,lo)),Tr(ct(Rn,lo))};Ur=lo=>{lo<0||lo>100||Y.from(wr).orThunk(()=>Y.from(pr).map(W)).each(eo=>{wr=eo,eo.progressBar.value(lo)})},qn(Rn,Ur).then(jo,lo=>{di(v(lo)?{message:lo}:lo)})}catch(wo){Tr(ct(Rn,wo))}})),Jt=Rn=>Rn===re,ln=Rn=>{const qn=Rn.blobUri();return new Promise(pr=>{B[qn]=B[qn]||[],B[qn].push(pr)})},kn=(Rn,qn)=>(Rn=mo.grep(Rn,pr=>!r.isUploaded(pr.blobUri())),Promise.all(mo.map(Rn,pr=>r.isPending(pr.blobUri())?ln(pr):Wt(pr,be,qn))));return{upload:(Rn,qn)=>!g.url&&Jt(be)?Re():kn(Rn,qn)}},c4=r=>()=>r.notificationManager.open({text:r.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),IC=(r,g)=>Dy(g,{url:Z1(r),basePath:uy(r),credentials:q1(r),handler:H0(r)}),kP=r=>{const g=SP(),B=IC(r,g);return{upload:(H,re=!0)=>B.upload(H,re?c4(r):void 0)}},gN=(r,g)=>r.dom.isEmpty(g.dom)&&E(r.schema.getTextBlockElements()[sa(g)]),vN=r=>g=>{gN(r,g)&&Ps(g,sr.fromHtml('
    '))},wG=r=>{const g=I2();let B,H;const re=SP(),be=[],Re=wr=>Ur=>r.selection?wr(Ur):[],Ke=wr=>wr+(wr.indexOf("?")===-1?"?":"&")+new Date().getTime(),ct=(wr,Ur,wo)=>{let jo=0;do jo=wr.indexOf(Ur,jo),jo!==-1&&(wr=wr.substring(0,jo)+wo+wr.substr(jo+Ur.length),jo+=wo.length-Ur.length+1);while(jo!==-1);return wr},kt=(wr,Ur,wo)=>{const jo=`src="${wo}"${wo===fr.transparentSrc?' data-mce-placeholder="1"':""}`;return wr=ct(wr,`src="${Ur}"`,jo),wr=ct(wr,'data-mce-src="'+Ur+'"','data-mce-src="'+wo+'"'),wr},Wt=(wr,Ur)=>{ye(r.undoManager.data,wo=>{wo.type==="fragmented"?wo.fragments=ve(wo.fragments,jo=>kt(jo,wr,Ur)):wo.content=kt(wo.content,wr,Ur)})},Jt=(wr,Ur)=>{const wo=r.convertURL(Ur,"src");Wt(wr.src,Ur),ef(sr.fromDom(wr),{src:Hc(r)?Ke(Ur):Ur,"data-mce-src":wo})},ln=()=>(B||(B=IC(r,re)),qn().then(Re(wr=>{const Ur=ve(wr,wo=>wo.blobInfo);return B.upload(Ur,c4(r)).then(Re(wo=>{const jo=[];let di=!1;const lo=ve(wo,(eo,xo)=>{const{blobInfo:bi,image:Bi}=wr[xo];let $a=!1;return eo.status&&_s(r)?(eo.url&&!Un(Bi.src,eo.url)&&(di=!0),g.removeByUri(Bi.src),Iy(r)||Jt(Bi,eo.url)):eo.error&&(eo.error.remove&&(Wt(Bi.src,fr.transparentSrc),jo.push(Bi),$a=!0),dG(r,eo.error.message)),{element:Bi,status:eo.status,uploadUri:eo.url,blobInfo:bi,removed:$a}});return jo.length>0&&!Iy(r)?r.undoManager.transact(()=>{ye(Ld(jo),eo=>{const xo=Hu(eo);ja(eo),xo.each(vN(r)),g.removeByUri(eo.dom.src)})}):di&&r.undoManager.dispatchChange(),lo}))}))),kn=()=>Qc(r)?ln():Promise.resolve([]),Vn=wr=>Oe(be,Ur=>Ur(wr)),Rn=wr=>{be.push(wr)},qn=()=>(H||(H=_G(re,g)),H.findAll(r.getBody(),Vn).then(Re(wr=>{const Ur=Te(wr,wo=>v(wo)?(RC(r,wo),!1):wo.uriType!=="blob");return Iy(r)||ye(Ur,wo=>{Wt(wo.image.src,wo.blobInfo.blobUri()),wo.image.src=wo.blobInfo.blobUri(),wo.image.removeAttribute("data-mce-src")}),Ur}))),pr=()=>{g.destroy(),re.destroy(),H=B=null},Tr=wr=>wr.replace(/src="(blob:[^"]+)"/g,(Ur,wo)=>{const jo=re.getResultUri(wo);if(jo)return'src="'+jo+'"';let di=g.getByUri(wo);return di||(di=Ie(r.editorManager.get(),(lo,eo)=>lo||eo.editorUpload&&eo.editorUpload.blobCache.getByUri(wo),void 0)),di?'src="data:'+di.blob().type+";base64,"+di.base64()+'"':Ur});return r.on("SetContent",()=>{Qc(r)?kn():qn()}),r.on("RawSaveContent",wr=>{wr.content=Tr(wr.content)}),r.on("GetContent",wr=>{wr.source_view||wr.format==="raw"||wr.format==="tree"||(wr.content=Tr(wr.content))}),r.on("PostRender",()=>{r.parser.addNodeFilter("img",wr=>{ye(wr,Ur=>{const wo=Ur.attr("src");if(!wo||g.getByUri(wo))return;const jo=re.getResultUri(wo);jo&&Ur.attr("src",jo)})})}),{blobCache:g,addFilter:Rn,uploadImages:ln,uploadImagesAuto:kn,scanForImages:qn,destroy:pr}},OG=r=>{const g=r.dom,B=r.schema.type,H={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:re=>{g.setStyle(re,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:re=>{g.setStyle(re,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const re={inline:"span",styles:{textDecoration:"line-through"},exact:!0},be={inline:"strike",remove:"all",preserve_attributes:["class","style"]},Re={inline:"s",remove:"all",preserve_attributes:["class","style"]};return B!=="html4"?[Re,re,be]:[re,Re,be]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(re,be,Re)=>ne(re)&&re.hasAttribute("href"),onformat:(re,be,Re)=>{mo.each(Re,(Ke,ct)=>{g.setAttrib(re,ct,Ke)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":re=>{var be;return(be=re==null?void 0:re.customValue)!==null&&be!==void 0?be:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return mo.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),re=>{H[re]={block:re,remove:"all"}}),H},TP={remove_similar:!0,inherit:!1},Yw={selector:"td,th",...TP},yN={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...Yw},tablecellverticalalign:{styles:{"vertical-align":"%value"},...Yw},tablecellbordercolor:{styles:{borderColor:"%value"},...Yw},tablecellclass:{classes:["%value"],...Yw},tableclass:{selector:"table",classes:["%value"],...TP},tablecellborderstyle:{styles:{borderStyle:"%value"},...Yw},tablecellborderwidth:{styles:{borderWidth:"%value"},...Yw}},bN=$(yN),CP=r=>{const g={},B=Re=>E(Re)?g[Re]:g,H=Re=>_t(g,Re),re=(Re,Ke)=>{Re&&(v(Re)?(A(Ke)||(Ke=[Ke]),ye(Ke,ct=>{M(ct.deep)&&(ct.deep=!$m(ct)),M(ct.split)&&(ct.split=!$m(ct)||Mf(ct)),M(ct.remove)&&$m(ct)&&!Mf(ct)&&(ct.remove="none"),$m(ct)&&Mf(ct)&&(ct.mixed=!0,ct.block_expand=!0),v(ct.classes)&&(ct.classes=ct.classes.split(/\s+/))}),g[Re]=Ke):Ge(Re,(ct,kt)=>{re(kt,ct)}))},be=Re=>(Re&&g[Re]&&delete g[Re],g);return re(OG(r)),re(bN()),re(Tb(r)),{get:B,has:H,register:re,unregister:be}},AP=mo.each,m0=Nl.DOM,xN=r=>E(r)&&_(r),_N=(r,g)=>{const B=g&&g.schema||Np({}),H=(ct,kt)=>{kt.classes.length>0&&m0.addClass(ct,kt.classes.join(" ")),m0.setAttribs(ct,kt.attrs)},re=ct=>{const kt=v(ct)?{name:ct,classes:[],attrs:{}}:ct,Wt=m0.create(kt.name);return H(Wt,kt),Wt},be=(ct,kt)=>{const Wt=B.getElementRule(ct.nodeName.toLowerCase()),Jt=Wt==null?void 0:Wt.parentsRequired;return Jt&&Jt.length?kt&&ce(Jt,kt)?kt:Jt[0]:!1},Re=(ct,kt,Wt)=>{let Jt;const ln=kt[0],kn=xN(ln)?ln.name:void 0,Vn=be(ct,kn);if(Vn)kn===Vn?(Jt=ln,kt=kt.slice(1)):Jt=Vn;else if(ln)Jt=ln,kt=kt.slice(1);else if(!Wt)return ct;const Rn=Jt?re(Jt):m0.create("div");Rn.appendChild(ct),Wt&&mo.each(Wt,pr=>{const Tr=re(pr);Rn.insertBefore(Tr,ct)});const qn=xN(Jt)?Jt.siblings:void 0;return Re(Rn,kt,qn)},Ke=m0.create("div");if(r.length>0){const ct=r[0],kt=re(ct),Wt=xN(ct)?ct.siblings:void 0;Ke.appendChild(Re(kt,r.slice(1),Wt))}return Ke},SG=r=>{r=mo.trim(r);let g="div";const B={name:g,classes:[],attrs:{},selector:r};return r!=="*"&&(g=r.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(H,re,be,Re,Ke)=>{switch(re){case"#":B.attrs.id=be;break;case".":B.classes.push(be);break;case":":mo.inArray("checked disabled enabled read-only required".split(" "),be)!==-1&&(B.attrs[be]=be);break}if(Re==="["){const ct=Ke.match(/([\w\-]+)(?:\=\"([^\"]+))?/);ct&&(B.attrs[ct[1]]=ct[2])}return""})),B.name=g||"div",B},By=r=>v(r)?(r=r.split(/\s*,\s*/)[0],r=r.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),mo.map(r.split(/(?:>|\s+(?![^\[\]]+\]))/),g=>{const B=mo.map(g.split(/(?:~\+|~|\+)/),SG),H=B.pop();return B.length&&(H.siblings=B),H}).reverse()):[],sfe=(r,g)=>{let B="",H=tw(r);if(H==="")return"";const re=ln=>v(ln)?ln.replace(/%(\w+)/g,""):"",be=(ln,kn)=>m0.getStyle(kn??r.getBody(),ln,!0);if(v(g)){const ln=r.formatter.get(g);if(!ln)return"";g=ln[0]}if("preview"in g){const ln=g.preview;if(ln===!1)return"";H=ln||H}let Re=g.block||g.inline||"span",Ke;const ct=By(g.selector);ct.length>0?(ct[0].name||(ct[0].name=Re),Re=g.selector,Ke=_N(ct,r)):Ke=_N([Re],r);const kt=m0.select(Re,Ke)[0]||Ke.firstChild;AP(g.styles,(ln,kn)=>{const Vn=re(ln);Vn&&m0.setStyle(kt,kn,Vn)}),AP(g.attributes,(ln,kn)=>{const Vn=re(ln);Vn&&m0.setAttrib(kt,kn,Vn)}),AP(g.classes,ln=>{const kn=re(ln);m0.hasClass(kt,kn)||m0.addClass(kt,kn)}),r.dispatch("PreviewFormats"),m0.setStyles(Ke,{position:"absolute",left:-65535}),r.getBody().appendChild(Ke);const Wt=be("fontSize"),Jt=/px$/.test(Wt)?parseInt(Wt,10):0;return AP(H.split(" "),ln=>{let kn=be(ln,kt);if(!(ln==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(kn)&&(kn=be(ln),Am(kn).toLowerCase()==="#ffffff"))&&!(ln==="color"&&Am(kn).toLowerCase()==="#000000")){if(ln==="font-size"&&/em|%$/.test(kn)){if(Jt===0)return;kn=parseFloat(kn)/(/%$/.test(kn)?100:1)*Jt+"px"}ln==="border"&&kn&&(B+="padding:0 2px;"),B+=ln+":"+kn+";"}}),r.dispatch("AfterPreviewFormats"),m0.remove(Ke),B},lfe=r=>{r.addShortcut("meta+b","","Bold"),r.addShortcut("meta+i","","Italic"),r.addShortcut("meta+u","","Underline");for(let g=1;g<=6;g++)r.addShortcut("access+"+g,"",["FormatBlock",!1,"h"+g]);r.addShortcut("access+7","",["FormatBlock",!1,"p"]),r.addShortcut("access+8","",["FormatBlock",!1,"div"]),r.addShortcut("access+9","",["FormatBlock",!1,"address"])},wN=r=>{const g=CP(r),B=mr({});return lfe(r),Az(r),Iy(r)||Qz(B,r),{get:g.get,has:g.has,register:g.register,unregister:g.unregister,apply:(H,re,be)=>{GF(r,H,re,be)},remove:(H,re,be,Re)=>{kX(r,H,re,be,Re)},toggle:(H,re,be)=>{TX(r,H,re,be)},match:(H,re,be,Re)=>CC(r,H,re,be,Re),closest:H=>XF(r,H),matchAll:(H,re)=>wX(r,H,re),matchNode:(H,re,be,Re)=>OX(r,H,re,be,Re),canApply:H=>SX(r,H),formatChanged:(H,re,be,Re)=>CX(r,B,H,re,be,Re),getCssText:U(sfe,r)}},u4=r=>{switch(r.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},kG=(r,g,B)=>{const H=mr(!1),re=ct=>{n4(g,!1,B),g.add({},ct)};r.on("init",()=>{g.add()}),r.on("BeforeExecCommand",ct=>{const kt=ct.command;u4(kt)||(zF(g,B),g.beforeChange())}),r.on("ExecCommand",ct=>{const kt=ct.command;u4(kt)||re(ct)}),r.on("ObjectResizeStart cut",()=>{g.beforeChange()}),r.on("SaveContent ObjectResized blur",re),r.on("dragend",re),r.on("keyup",ct=>{const kt=ct.keyCode;if(ct.isDefaultPrevented())return;const Wt=fr.os.isMacOS()&&ct.key==="Meta";(kt>=33&&kt<=36||kt>=37&&kt<=40||kt===45||ct.ctrlKey||Wt)&&(re(),r.nodeChanged()),(kt===46||kt===8)&&r.nodeChanged(),H.get()&&g.typing&&!lP(OC(r),g.data[0])&&(r.isDirty()||r.setDirty(!0),r.dispatch("TypingUndo"),H.set(!1),r.nodeChanged())}),r.on("keydown",ct=>{const kt=ct.keyCode;if(ct.isDefaultPrevented())return;if(kt>=33&&kt<=36||kt>=37&&kt<=40||kt===45){g.typing&&re(ct);return}const Wt=ct.ctrlKey&&!ct.altKey||ct.metaKey;if((kt<16||kt>20)&&kt!==224&&kt!==91&&!g.typing&&!Wt){g.beforeChange(),n4(g,!0,B),g.add({},ct),H.set(!0);return}(fr.os.isMacOS()?ct.metaKey:ct.ctrlKey&&!ct.altKey)&&g.beforeChange()}),r.on("mousedown",ct=>{g.typing&&re(ct)});const be=ct=>ct.inputType==="insertReplacementText",Re=ct=>ct.inputType==="insertText"&&ct.data===null,Ke=ct=>ct.inputType==="insertFromPaste"||ct.inputType==="insertFromDrop";r.on("input",ct=>{ct.inputType&&(be(ct)||Re(ct)||Ke(ct))&&re(ct)}),r.on("AddUndo Undo Redo ClearUndos",ct=>{ct.isDefaultPrevented()||r.nodeChanged()})},ON=r=>{r.addShortcut("meta+z","","Undo"),r.addShortcut("meta+y,meta+shift+z","","Redo")},MP=r=>{const g=Ys(),B=mr(0),H=mr(0),re={data:[],typing:!1,beforeChange:()=>{QF(r,B,g)},add:(be,Re)=>fP(r,re,H,B,g,be,Re),dispatchChange:()=>{r.setDirty(!0);const be=OC(r);be.bookmark=Ja(r.selection),r.dispatch("change",{level:be,lastLevel:Ze(re.data,H.get()).getOrUndefined()})},undo:()=>HF(r,re,B,H),redo:()=>ZF(r,H,re.data),clear:()=>{dP(r,re,H)},reset:()=>{qF(r,re)},hasUndo:()=>WF(r,re,H),hasRedo:()=>YF(r,re,H),transact:be=>xX(r,re,B,be),ignore:be=>{hP(r,B,be)},extra:(be,Re)=>{_X(r,re,H,be,Re)}};return Iy(r)||kG(r,re,B),ON(r),re},SN=[9,27,Fo.HOME,Fo.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Fo.DOWN,Fo.UP,Fo.LEFT,Fo.RIGHT].concat(fr.browser.isFirefox()?[224]:[]),kN="data-mce-placeholder",TN=r=>r.type==="keydown"||r.type==="keyup",nx=r=>{const g=r.keyCode;return g===Fo.BACKSPACE||g===Fo.DELETE},TG=r=>{if(TN(r)){const g=r.keyCode;return!nx(r)&&(Fo.metaKeyPressed(r)||r.altKey||g>=112&&g<=123||ce(SN,g))}else return!1},CG=r=>TN(r)&&!(nx(r)||r.type==="keyup"&&r.keyCode===229),AG=(r,g,B)=>{if(r.isEmpty(g,void 0,{skipBogus:!1,includeZwsp:!0})){const H=g.firstElementChild;return H?r.getStyle(g.firstElementChild,"padding-left")||r.getStyle(g.firstElementChild,"padding-right")?!1:B===H.nodeName.toLowerCase():!0}else return!1},MG=r=>{var g;const B=r.dom,H=dc(r),re=(g=dy(r))!==null&&g!==void 0?g:"",be=(Re,Ke)=>{if(TG(Re))return;const ct=r.getBody(),kt=CG(Re)?!1:AG(B,ct,H);(B.getAttrib(ct,kN)!==""!==kt||Ke)&&(B.setAttrib(ct,kN,kt?re:null),P3(r,kt),r.on(kt?"keydown":"keyup",be),r.off(kt?"keyup":"keydown",be))};Kn(re)&&r.on("init",Re=>{be(Re,!0),r.on("change SetContent ExecCommand",be),r.on("paste",Ke=>kg.setEditorTimeout(r,()=>be(Ke)))})},EG=(r,g)=>({block:r,position:g}),PG=(r,g)=>({from:r,to:g}),EP=(r,g)=>{const B=sr.fromDom(r),H=sr.fromDom(g.container());return C6(B,H).map(re=>EG(re,g))},RG=r=>!(Qu(r.to.block,r.from.block)||Qu(r.from.block,r.to.block)),LG=r=>!Fa(r.from.block,r.to.block),nk=(r,g)=>Ya(g,re=>z1(re)||Sn(re.dom),re=>Fa(re,r)).filter(mc).getOr(r),IG=(r,g)=>{const B=sr.fromDom(r);return Fa(nk(B,g.from.block),nk(B,g.to.block))},DG=r=>rr(r.from.block.dom)===!1&&rr(r.to.block.dom)===!1,cfe=r=>{const g=B=>Q_(B)||Rl(B.dom)||nh(B);return g(r.from.block)&&g(r.to.block)},rk=(r,g,B,H)=>On(H.position.getNode())&&!Pi(r,H.block)?Nb(!1,H.block.dom).bind(re=>re.isEqual(H.position)?Yp(B,g,re).bind(be=>EP(g,be)):Y.some(H)).getOr(H):H,BG=(r,g,B,H)=>{const re=EP(g,qr.fromRangeStart(H)),be=re.bind(Re=>Yp(B,g,Re.position).bind(Ke=>EP(g,Ke).map(ct=>rk(r,g,B,ct))));return cs(re,be,PG).filter(Re=>LG(Re)&&IG(g,Re)&&DG(Re)&&cfe(Re)&&RG(Re))},PP=(r,g,B,H)=>H.collapsed?BG(r,g,B,H):Y.none(),zG=(r,g)=>{const B=Oc(r);return He(B,H=>g.isBlock(sa(H))).fold($(B),H=>B.slice(0,H))},CN=(r,g)=>{const B=zG(r,g);return ye(B,ja),B},AN=(r,g,B)=>{const H=Yb(B,g);return De(H.reverse(),re=>Pi(r,re)).each(ja)},FG=(r,g)=>Te(vh(g),B=>!Pi(r,B)).length===0,Xw=(r,g,B,H,re)=>{if(Pi(H,B))return rh(B),lh(B.dom);FG(H,re)&&Pi(H,g)&&Fc(re,sr.fromTag("br"));const be=mp(B.dom,qr.before(re.dom));return ye(CN(g,H),Re=>{Fc(re,Re)}),AN(H,r,g),be},Gw=(r,g)=>r.isInline(sa(g)),DC=(r,g,B,H)=>{if(Pi(H,B)){if(Pi(H,g)){const Re=Pe((Ke=>{const ct=(kt,Wt)=>Uf(kt).fold(()=>Wt,Jt=>Gw(H,Jt)?ct(Jt,Wt.concat(Th(Jt))):Wt);return ct(Ke,[])})(B),(Ke,ct)=>(Sc(Ke,ct),ct),F1());gu(g),Ps(g,Re)}return ja(B),lh(g.dom)}const re=Xp(B.dom);return ye(CN(g,H),be=>{Ps(B,be)}),AN(H,r,g),re},BC=(r,g)=>{const B=Yb(g,r);return Y.from(B[B.length-1])},Kw=(r,g)=>Qu(g,r)?BC(g,r):Y.none(),D2=(r,g)=>{Nb(r,g.dom).bind(B=>Y.from(B.getNode())).map(sr.fromDom).filter(N0).each(ja)},ok=(r,g,B,H)=>(D2(!0,g),D2(!1,B),Kw(g,B).fold(U(DC,r,g,B,H),U(Xw,r,g,B,H))),ik=(r,g,B,H,re)=>g?ok(r,H,B,re):ok(r,B,H,re),zC=(r,g)=>{const B=sr.fromDom(r.getBody());return PP(r.schema,B.dom,g,r.selection.getRng()).map(re=>()=>{ik(B,g,re.from.block,re.to.block,r.schema).each(be=>{r.selection.setRng(be.toRange())})})},RP=(r,g,B)=>{const H=g.getRng();return cs(C6(r,sr.fromDom(H.startContainer)),C6(r,sr.fromDom(H.endContainer)),(re,be)=>Fa(re,be)?Y.none():Y.some(()=>{H.deleteContents(),ik(r,!0,re,be,B).each(Re=>{g.setRng(Re.toRange())})})).getOr(Y.none())},FC=(r,g)=>{const B=sr.fromDom(g),H=U(Fa,r);return ms(B,z1,H).isSome()},MN=(r,g)=>FC(r,g.startContainer)||FC(r,g.endContainer),EN=(r,g)=>{const B=mp(r.dom,qr.fromRangeStart(g)).isNone(),H=sh(r.dom,qr.fromRangeEnd(g)).isNone();return!MN(r,g)&&B&&H},f4=r=>Y.some(()=>{r.setContent(""),r.selection.setCursorLocation()}),PN=r=>{const g=sr.fromDom(r.getBody()),B=r.selection.getRng();return EN(g,B)?f4(r):RP(g,r.selection,r.schema)},NC=(r,g)=>r.selection.isCollapsed()?Y.none():PN(r),zy=(r,g,B,H,re)=>Y.from(g._selectionOverrides.showCaret(r,B,H,re)),$C=r=>{const g=r.ownerDocument.createRange();return g.selectNode(r),g},d4=(r,g)=>r.dispatch("BeforeObjectSelected",{target:g}).isDefaultPrevented()?Y.none():Y.some($C(g)),RN=(r,g,B)=>{const H=$d(1,r.getBody(),g),re=qr.fromRangeStart(H),be=re.getNode();if(l3(be))return zy(1,r,be,!re.isAtEnd(),!1);const Re=re.getNode(!0);if(l3(Re))return zy(1,r,Re,!1,!1);const Ke=Gb(r.dom.getRoot(),re.getNode());return l3(Ke)?zy(1,r,Ke,!1,B):Y.none()},VC=(r,g,B)=>g.collapsed?RN(r,g,B).getOr(g):g,LN=r=>Ey(r)||Li(r),rx=r=>k2(r)||U3(r),B2=(r,g)=>{Nt(g)&&g.data.length===0&&r.remove(g)},g0=(r,g,B,H,re,be)=>{zy(H,r,be.getNode(!re),re,!0).each(Re=>{if(g.collapsed){const Ke=g.cloneRange();re?Ke.setEnd(Re.startContainer,Re.startOffset):Ke.setStart(Re.endContainer,Re.endOffset),Ke.deleteContents()}else g.deleteContents();r.selection.setRng(Re)}),B2(r.dom,B)},NG=(r,g)=>{const B=r.selection.getRng();if(!Nt(B.commonAncestorContainer))return Y.none();const H=g?Af.Forwards:Af.Backwards,re=Od(r.getBody()),be=U(IS,g?re.next:re.prev),Re=g?LN:rx,Ke=zb(H,r.getBody(),B),ct=be(Ke),kt=ct&&Tg(g,ct);if(!kt||!h3(Ke,kt))return Y.none();if(Re(kt))return Y.some(()=>g0(r,B,Ke.getNode(),H,g,kt));const Wt=be(kt);return Wt&&Re(Wt)&&h3(kt,Wt)?Y.some(()=>g0(r,B,Ke.getNode(),H,g,Wt)):Y.none()},LP=(r,g)=>NG(r,g),IP=(r,g)=>{const B=r.getBody();return g?lh(B).filter(Ey):Xp(B).filter(k2)},DP=r=>{const g=r.selection.getRng();return!g.collapsed&&(IP(r,!0).exists(B=>B.isEqual(qr.fromRangeStart(g)))||IP(r,!1).exists(B=>B.isEqual(qr.fromRangeEnd(g))))},$G=r=>E(r)&&(z1(sr.fromDom(r))||nh(sr.fromDom(r))),Ag=aa.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),VG=(r,g)=>{const B=g.getNode(!r),H=r?"after":"before";return ne(B)&&B.getAttribute("data-mce-caret")===H},UG=(r,g,B,H,re)=>{const be=Re=>re.isInline(Re.nodeName.toLowerCase())&&!Wp(B,H,r);return f3(!g,B).fold(()=>f3(g,H).fold(oe,be),be)},IN=(r,g,B,H,re)=>{const be=re.getNode(!B);return C6(sr.fromDom(g),sr.fromDom(H.getNode())).map(Re=>Pi(r,Re)?Ag.remove(Re.dom):Ag.moveToElement(be)).orThunk(()=>Y.some(Ag.moveToElement(be)))},DN=(r,g,B,H)=>Yp(g,r,B).bind(re=>$G(re.getNode())||UG(r,g,B,re,H)?Y.none():g&&rr(re.getNode())||!g&&rr(re.getNode(!0))?IN(H,r,g,B,re):g&&k2(B)||!g&&Ey(B)?Y.some(Ag.moveToPosition(re)):Y.none()),jG=(r,g)=>T(g)?Y.none():r&&rr(g.nextSibling)?Y.some(Ag.moveToElement(g.nextSibling)):!r&&rr(g.previousSibling)?Y.some(Ag.moveToElement(g.previousSibling)):Y.none(),QG=(r,g,B)=>B.fold(H=>Y.some(Ag.remove(H)),H=>Y.some(Ag.moveToElement(H)),H=>Wp(g,H,r)?Y.none():Y.some(Ag.moveToPosition(H))),BP=(r,g,B,H)=>VG(g,B)?jG(g,B.getNode(!g)).orThunk(()=>DN(r,g,B,H)):DN(r,g,B,H).bind(re=>QG(r,B,re)),zP=(r,g,B,H)=>{const re=$d(g?1:-1,r,B),be=qr.fromRangeStart(re),Re=sr.fromDom(r);return!g&&k2(be)?Y.some(Ag.remove(be.getNode(!0))):g&&Ey(be)?Y.some(Ag.remove(be.getNode())):!g&&Ey(be)&&VE(Re,be,H)?MB(Re,be,H).map(Ke=>Ag.remove(Ke.getNode())):g&&k2(be)&&AB(Re,be,H)?wW(Re,be,H).map(Ke=>Ag.remove(Ke.getNode())):BP(r,g,be,H)},BN=(r,g)=>B=>(r._selectionOverrides.hideFakeCaret(),Ew(r,g,sr.fromDom(B)),!0),HG=(r,g)=>B=>{const H=g?qr.before(B):qr.after(B);return r.selection.setRng(H.toRange()),!0},ZG=r=>g=>(r.selection.setRng(g.toRange()),!0),FP=(r,g)=>Y.from(Gb(r.getBody(),g)),zN=(r,g)=>{const B=r.selection.getNode();return FP(r,B).filter(rr).fold(()=>zP(r.getBody(),g,r.selection.getRng(),r.schema).map(H=>()=>H.fold(BN(r,g),HG(r,g),ZG(r))),()=>Y.some(k))},NP=r=>{ye(Zl(r,".mce-offscreen-selection"),ja)},FN=(r,g)=>{const B=r.selection.getNode();return rr(B)&&!Dr(B)?FP(r,B.parentNode).filter(rr).fold(()=>Y.some(()=>{NP(sr.fromDom(r.getBody())),Ew(r,g,sr.fromDom(r.selection.getNode())),hc(r)}),()=>Y.some(k)):DP(r)?Y.some(()=>{KB(r,r.selection.getRng(),sr.fromDom(r.getBody()))}):Y.none()},$P=r=>{const g=r.dom,B=r.selection,H=Gb(r.getBody(),B.getNode());if(Sn(H)&&g.isBlock(H)&&g.isEmpty(H)){const re=g.create("br",{"data-mce-bogus":"1"});g.setHTML(H,""),H.appendChild(re),B.setRng(qr.before(re).toRange())}return!0},ak=(r,g)=>r.selection.isCollapsed()?zN(r,g):FN(r,g),NN=r=>r.hasOwnProperty("text"),$N=r=>r.hasOwnProperty("marker"),xv=(r,g)=>{const B=(be,Re)=>{if(Nt(be))return{text:be,offset:Re};{const Ke=g(),ct=be.childNodes;return Re{var g,B;const{start:H,end:re}=r,be=new window.Range;return NN(H)?be.setStart(H.text,H.offset):$N(H)&&(H.before?be.setStartBefore(H.marker):be.setStartAfter(H.marker),(g=H.marker.parentNode)===null||g===void 0||g.removeChild(H.marker)),NN(re)?be.setEnd(re.text,re.offset):$N(re)&&(re.before?be.setEndBefore(re.marker):be.setEndAfter(re.marker),(B=re.marker.parentNode)===null||B===void 0||B.removeChild(re.marker)),be},h4=(r,g)=>{var B;const H=r.dom,re=H.getParent(r.selection.getStart(),H.isBlock),be=H.getParent(r.selection.getEnd(),H.isBlock),Re=r.getBody();if(((B=re==null?void 0:re.nodeName)===null||B===void 0?void 0:B.toLowerCase())==="div"&&re&&be&&re===Re.firstChild&&be===Re.lastChild&&!H.isEmpty(Re)){const ct=re.cloneNode(!1),kt=()=>{if(g?GB(r):T6(r),Re.firstChild!==re){const Wt=xv(r.selection.getRng(),()=>document.createElement("span"));Array.from(Re.childNodes).forEach(Jt=>ct.appendChild(Jt)),Re.appendChild(ct),r.selection.setRng(v0(Wt))}};return Y.some(kt)}return Y.none()},VN=(r,g)=>{const B=qr.fromRangeStart(r.selection.getRng());return Yp(g,r.getBody(),B).filter(H=>g?vW(H):yW(H)).bind(H=>u3(g?0:-1,H)).map(H=>()=>r.selection.select(H))},p4=(r,g)=>r.selection.isCollapsed()?VN(r,g):Y.none(),Jw=Nt,VP=r=>Jw(r)&&r.data[0]===nc,UP=r=>Jw(r)&&r.data[r.data.length-1]===nc,jP=r=>{var g;return((g=r.ownerDocument)!==null&&g!==void 0?g:document).createTextNode(nc)},UN=r=>{var g;if(Jw(r.previousSibling))return UP(r.previousSibling)||r.previousSibling.appendData(nc),r.previousSibling;if(Jw(r))return VP(r)||r.insertData(0,nc),r;{const B=jP(r);return(g=r.parentNode)===null||g===void 0||g.insertBefore(B,r),B}},jN=r=>{var g,B;if(Jw(r.nextSibling))return VP(r.nextSibling)||r.nextSibling.insertData(0,nc),r.nextSibling;if(Jw(r))return UP(r)||r.appendData(nc),r;{const H=jP(r);return r.nextSibling?(g=r.parentNode)===null||g===void 0||g.insertBefore(H,r.nextSibling):(B=r.parentNode)===null||B===void 0||B.appendChild(H),H}},eO=(r,g)=>r?UN(g):jN(g),QP=U(eO,!0),qG=U(eO,!1),QN=(r,g)=>Nt(r.container())?eO(g,r.container()):eO(g,r.getNode()),HN=(r,g)=>{const B=g.get();return B&&r.container()===B&&oh(B)},HP=(r,g)=>g.fold(B=>{by(r.get());const H=QP(B);return r.set(H),Y.some(qr(H,H.length-1))},B=>lh(B).map(H=>{if(HN(H,r)){const re=r.get();return qr(re,1)}else{by(r.get());const re=QN(H,!0);return r.set(re),qr(re,1)}}),B=>Xp(B).map(H=>{if(HN(H,r)){const re=r.get();return qr(re,re.length-1)}else{by(r.get());const re=QN(H,!1);return r.set(re),qr(re,re.length-1)}}),B=>{by(r.get());const H=qG(B);return r.set(H),Y.some(qr(H,1))}),ZP=(r,g)=>{for(let B=0;B{const B=c0(g,r);return B||r},qP=(r,g,B)=>{const H=Xh(B),re=ZN(g,H.container());return Xb(r,re,H).fold(()=>sh(re,H).bind(U(Xb,r,re)).map(be=>bp.before(be)),Y.none)},WG=(r,g)=>$b(r,g)===null,qN=(r,g,B)=>Xb(r,g,B).filter(U(WG,g)),YG=(r,g,B)=>{const H=YB(B);return qN(r,g,H).bind(re=>mp(re,H).isNone()?Y.some(bp.start(re)):Y.none())},XG=(r,g,B)=>{const H=Xh(B);return qN(r,g,H).bind(re=>sh(re,H).isNone()?Y.some(bp.end(re)):Y.none())},GG=(r,g,B)=>{const H=YB(B),re=ZN(g,H.container());return Xb(r,re,H).fold(()=>mp(re,H).bind(U(Xb,r,re)).map(be=>bp.after(be)),Y.none)},WN=r=>!ZB(m4(r)),Fy=(r,g,B)=>ZP([qP,YG,XG,GG],[r,g,B]).filter(WN),m4=r=>r.fold(Q,Q,Q,Q),UC=r=>r.fold($("before"),$("start"),$("end"),$("after")),jC=r=>r.fold(bp.before,bp.before,bp.after,bp.after),WP=r=>r.fold(bp.start,bp.start,bp.end,bp.end),KG=(r,g)=>UC(r)===UC(g)&&m4(r)===m4(g),JG=(r,g,B,H,re,be)=>cs(Xb(g,B,H),Xb(g,B,re),(Re,Ke)=>Re!==Ke&&qB(B,Re,Ke)?bp.after(r?Re:Ke):be).getOr(be),YN=(r,g)=>r.fold(q,B=>!KG(B,g)),eK=(r,g,B,H,re)=>{const be=Tg(r,re);return Yp(r,B,be).map(U(Tg,r)).fold(()=>H.map(jC),ct=>Fy(g,B,ct).map(U(JG,r,g,B,be,ct)).filter(U(YN,H))).filter(WN)},tK=(r,g)=>r?g.fold(I(Y.some,bp.start),Y.none,I(Y.some,bp.after),Y.none):g.fold(Y.none,I(Y.some,bp.before),Y.none,I(Y.some,bp.end)),YP=(r,g,B,H)=>{const re=Tg(r,H),be=Fy(g,B,re);return Fy(g,B,re).bind(U(tK,r)).orThunk(()=>eK(r,g,B,be,H))},nK=r=>C(r.selection.getSel().modify),XN=(r,g,B)=>{const H=r?1:-1;return g.setRng(qr(B.container(),B.offset()+H).toRange()),g.getSel().modify("move",r?"forward":"backward","word"),!0},rK=(r,g)=>{const B=g.selection.getRng(),H=r?qr.fromRangeEnd(B):qr.fromRangeStart(B);return nK(g)?r&&V0(H)?XN(!0,g.selection,H):!r&&Up(H)?XN(!1,g.selection,H):!1:!1};var Ny;(function(r){r[r.Br=0]="Br",r[r.Block=1]="Block",r[r.Wrap=2]="Wrap",r[r.Eol=3]="Eol"})(Ny||(Ny={}));const QC=(r,g)=>r===Af.Backwards?ke(g):g,oK=(r,g,B)=>r===Af.Forwards?g.next(B):g.prev(B),iK=(r,g,B,H)=>On(H.getNode(g===Af.Forwards))?Ny.Br:Wp(B,H)===!1?Ny.Block:Ny.Wrap,sk=(r,g,B,H)=>{const re=Od(B);let be=H;const Re=[];for(;be;){const Ke=oK(g,re,be);if(!Ke)break;if(On(Ke.getNode(!1)))return g===Af.Forwards?{positions:QC(g,Re).concat([Ke]),breakType:Ny.Br,breakAt:Y.some(Ke)}:{positions:QC(g,Re),breakType:Ny.Br,breakAt:Y.some(Ke)};if(!Ke.isVisible()){be=Ke;continue}if(r(be,Ke)){const ct=iK(B,g,be,Ke);return{positions:QC(g,Re),breakType:ct,breakAt:Y.some(Ke)}}Re.push(Ke),be=Ke}return{positions:QC(g,Re),breakType:Ny.Eol,breakAt:Y.none()}},lk=(r,g,B,H)=>g(B,H).breakAt.map(re=>{const be=g(B,re).positions;return r===Af.Backwards?be.concat(re):[re].concat(be)}).getOr([]),XP=(r,g)=>Ie(r,(B,H)=>B.fold(()=>Y.some(H),re=>cs(Xe(re.getClientRects()),Xe(H.getClientRects()),(be,Re)=>{const Ke=Math.abs(g-be.left);return Math.abs(g-Re.left)<=Ke?H:re}).or(B)),Y.none()),HC=(r,g)=>Xe(g.getClientRects()).bind(B=>XP(r,B.left)),z2=U(sk,qr.isAbove,-1),ck=U(sk,qr.isBelow,1),GN=U(lk,-1,z2),KN=U(lk,1,ck),JN=(r,g)=>z2(r,g).breakAt.isNone(),e$=(r,g)=>ck(r,g).breakAt.isNone(),aK=r=>lh(r).map(g=>[g].concat(ck(r,g).positions)).getOr([]),sK=r=>Xp(r).map(g=>z2(r,g).positions.concat(g)).getOr([]),lK=(r,g)=>HC(GN(r,g),g),cK=(r,g)=>HC(KN(r,g),g),uK=rr,t$=(r,g)=>Math.abs(r.left-g),fK=(r,g)=>Math.abs(r.right-g),l1=r=>nn(r,"node"),ZC=(r,g)=>it(r,(B,H)=>{const re=Math.min(t$(B,g),fK(B,g)),be=Math.min(t$(H,g),fK(H,g));return be===re&&l1(H)&&uK(H.node)||be{const g=B=>ve(B,H=>{const re=i0(H);return re.node=r,re});if(ne(r))return g(r.getClientRects());if(Nt(r)){const B=r.ownerDocument.createRange();return B.setStart(r,0),B.setEnd(r,r.data.length),g(B.getClientRects())}else return[]},GP=r=>$e(r,n$);var uk;(function(r){r[r.Up=-1]="Up",r[r.Down=1]="Down"})(uk||(uk={}));const r$=(r,g,B,H)=>{let re=H;for(;re=u2(re,r,Zx,g);)if(B(re))return},o$=(r,g,B,H,re,be)=>{let Re=0;const Ke=[],ct=Jt=>{let ln=GP([Jt]);r===-1&&(ln=ln.reverse());for(let kn=0;kn0&&g(Vn,Lt(Ke))&&Re++,Vn.line=Re,re(Vn))return!0;Ke.push(Vn)}}return!1},kt=Lt(be.getClientRects());if(!kt)return Ke;const Wt=be.getNode();return Wt&&(ct(Wt),r$(r,H,ct,Wt)),Ke},i$=(r,g)=>g.line>r,dK=(r,g)=>g.line===r,hK=U(o$,uk.Up,V1,Ux),pK=U(o$,uk.Down,Ux,V1),tO=r=>Lt(r.getClientRects()),a$=(r,g,B,H)=>{const re=Od(g);let be,Re,Ke,ct;const kt=[];let Wt=0;r===1?(be=re.next,Re=Ux,Ke=V1,ct=qr.after(H)):(be=re.prev,Re=V1,Ke=Ux,ct=qr.before(H));const Jt=tO(ct);do{if(!ct.isVisible())continue;const ln=tO(ct);if(Ke(ln,Jt))continue;kt.length>0&&Re(ln,Lt(kt))&&Wt++;const kn=i0(ln);if(kn.position=ct,kn.line=Wt,B(kn))return kt;kt.push(kn)}while(ct=be(ct));return kt},KP=r=>g=>i$(r,g),qC=r=>g=>dK(r,g),_v=(r,g)=>{r.selection.setRng(g),m5(r,r.selection.getRng())},JP=(r,g,B)=>Y.some(VC(r,g,B)),s$=(r,g,B,H,re,be)=>{const Re=g===Af.Forwards,Ke=Od(r.getBody()),ct=U(IS,Re?Ke.next:Ke.prev),kt=Re?H:re;if(!B.collapsed){const Vn=Pm(B);if(be(Vn))return zy(g,r,Vn,g===Af.Backwards,!1);if(DP(r)){const Rn=B.cloneRange();return Rn.collapse(g===Af.Backwards),Y.from(Rn)}}const Wt=zb(g,r.getBody(),B);if(kt(Wt))return d4(r,Wt.getNode(!Re));let Jt=ct(Wt);const ln=yd(B);if(Jt)Jt=Tg(Re,Jt);else return ln?Y.some(B):Y.none();if(kt(Jt))return zy(g,r,Jt.getNode(!Re),Re,!1);const kn=ct(Jt);return kn&&kt(kn)&&h3(Jt,kn)?zy(g,r,kn.getNode(!Re),Re,!1):ln?JP(r,Jt.toRange(),!1):Y.none()},l$=(r,g,B,H,re,be)=>{const Re=zb(g,r.getBody(),B),Ke=Lt(Re.getClientRects()),ct=g===uk.Down,kt=r.getBody();if(!Ke)return Y.none();if(DP(r)){const qn=ct?qr.fromRangeEnd(B):qr.fromRangeStart(B);return(ct?cK:lK)(kt,qn).orThunk(()=>Y.from(qn)).map(Tr=>Tr.toRange())}const Jt=(ct?pK:hK)(kt,KP(1),Re),ln=Te(Jt,qC(1)),kn=Ke.left,Vn=ZC(ln,kn);if(Vn&&be(Vn.node)){const qn=Math.abs(kn-Vn.left),pr=Math.abs(kn-Vn.right);return zy(g,r,Vn.node,qnVC(r,qn.toRange(),!1)):Y.none()},c$=(r,g)=>{const B=r.selection.getRng(),H=g?qr.fromRangeEnd(B):qr.fromRangeStart(B),re=VM(H.container(),r.getBody());if(g){const be=ck(re,H);return tt(be.positions)}else{const be=z2(re,H);return Xe(be.positions)}},mK=(r,g,B)=>c$(r,g).filter(B).exists(H=>(r.selection.setRng(H.toRange()),!0)),e9=(r,g)=>{const B=r.dom.createRng();B.setStart(g.container(),g.offset()),B.setEnd(g.container(),g.offset()),r.selection.setRng(B)},y0=(r,g)=>{r?g.setAttribute("data-mce-selected","inline-boundary"):g.removeAttribute("data-mce-selected")},u$=(r,g,B)=>HP(g,B).map(H=>(e9(r,H),B)),gK=(r,g,B)=>{const H=qr.fromRangeStart(r);if(r.collapsed)return H;{const re=qr.fromRangeEnd(r);return B?mp(g,re).getOr(re):sh(g,H).getOr(H)}},nO=(r,g,B)=>{const H=r.getBody(),re=gK(r.selection.getRng(),H,B),be=U(T2,r);return YP(B,be,H,re).bind(Ke=>u$(r,g,Ke))},f$=(r,g,B)=>{const H=ve(Zl(sr.fromDom(g.getRoot()),'*[data-mce-selected="inline-boundary"]'),Re=>Re.dom),re=Te(H,r),be=Te(B,r);ye(Le(re,be),U(y0,!1)),ye(Le(be,re),U(y0,!0))},vK=(r,g)=>{const B=g.get();if(r.selection.isCollapsed()&&!r.composing&&B){const H=qr.fromRangeStart(r.selection.getRng());qr.isTextPosition(H)&&!WB(H)&&(e9(r,zM(B,H)),g.set(null))}},WC=(r,g,B,H)=>{if(g.selection.isCollapsed()){const re=Te(H,r);ye(re,be=>{const Re=qr.fromRangeStart(g.selection.getRng());Fy(r,g.getBody(),Re).bind(Ke=>u$(g,B,Ke))})}},d$=(r,g,B)=>Z0(r)?nO(r,g,B).isSome():!1,h$=(r,g,B)=>Z0(g)?rK(r,g):!1,yK=r=>{const g=mr(null),B=U(T2,r);return r.on("NodeChange",H=>{Z0(r)&&(f$(B,r.dom,H.parents),vK(r,g),WC(B,r,g,H.parents))}),g},bK=U(h$,!0),p$=U(h$,!1),YC=(r,g,B)=>{if(Z0(r)){const H=c$(r,g).getOrThunk(()=>{const re=r.selection.getRng();return g?qr.fromRangeEnd(re):qr.fromRangeStart(re)});return Fy(U(T2,r),r.getBody(),H).exists(re=>{const be=jC(re);return HP(B,be).exists(Re=>(e9(r,Re),!0))})}else return!1},ox=(r,g)=>{const B=document.createRange();return B.setStart(r.container(),r.offset()),B.setEnd(g.container(),g.offset()),B},xK=r=>cs(lh(r),Xp(r),(g,B)=>{const H=Tg(!0,g),re=Tg(!1,B);return sh(r,H).forall(be=>be.isEqual(re))}).getOr(!0),m$=(r,g)=>B=>HP(g,B).map(H=>()=>e9(r,H)),g$=(r,g,B,H)=>{const re=r.getBody(),be=U(T2,r);r.undoManager.ignore(()=>{r.selection.setRng(ox(B,H)),T6(r),Fy(be,re,qr.fromRangeStart(r.selection.getRng())).map(WP).bind(m$(r,g)).each(K)}),r.nodeChanged()},_K=(r,g)=>{const B=c0(g,r);return B||r},wK=(r,g,B,H)=>{const re=_K(r.getBody(),H.container()),be=U(T2,r),Re=Fy(be,re,H);return Re.bind(ct=>B?ct.fold($(Y.some(WP(ct))),Y.none,$(Y.some(jC(ct))),Y.none):ct.fold(Y.none,$(Y.some(jC(ct))),Y.none,$(Y.some(WP(ct))))).map(m$(r,g)).getOrThunk(()=>{const ct=lv(B,re,H),kt=ct.bind(Wt=>Fy(be,re,Wt));return cs(Re,kt,()=>Xb(be,re,H).bind(Wt=>xK(Wt)?Y.some(()=>{Ew(r,B,sr.fromDom(Wt))}):Y.none())).getOrThunk(()=>kt.bind(()=>ct.map(Wt=>()=>{B?g$(r,g,H,Wt):g$(r,g,Wt,H)})))})},fk=(r,g,B)=>{if(r.selection.isCollapsed()&&Z0(r)){const H=qr.fromRangeStart(r.selection.getRng());return wK(r,g,B,H)}return Y.none()},t9=r=>Hl(r)>1,XC=(r,g)=>{const B=sr.fromDom(r.getBody()),H=sr.fromDom(r.selection.getStart()),re=Yb(H,B);return He(re,g).fold($(re),be=>re.slice(0,be))},v$=r=>Hl(r)===1,y$=r=>XC(r,g=>r.schema.isBlock(sa(g))||t9(g)),b$=r=>XC(r,g=>r.schema.isBlock(sa(g))),x$=(r,g)=>{const B=U(k7,r);return $e(g,H=>B(H)?[H.dom]:[])},g4=r=>{const g=b$(r);return x$(r,g)},GC=(r,g,B,H)=>{const re=x$(g,H);if(re.length===0)Ew(g,r,B);else{const be=Ez(B.dom,re);g.selection.setRng(be.toRange())}},_$=(r,g)=>{const B=Te(y$(r),v$);return tt(B).bind(H=>{const re=qr.fromRangeStart(r.selection.getRng());return O5(g,re,H.dom)&&!gw(H)?Y.some(()=>GC(g,r,H,B)):Y.none()})},w$=(r,g)=>{const B=g.parentElement;return On(g)&&!x(B)&&r.dom.isEmpty(B)},O$=r=>gw(sr.fromDom(r)),n9=(r,g)=>{const B=r.selection.getStart(),H=w$(r,B)||O$(B)?Ez(B,g):S7(r.selection.getRng(),g);r.selection.setRng(H.toRange())},KC=(r,g)=>{const B=Le(g,g4(r));B.length>0&&n9(r,B)},JC=r=>Nt(r.startContainer),dk=r=>r.startOffset===0&&JC(r),OK=(r,g)=>{const B=g.startContainer.parentElement;return!x(B)&&k7(r,sr.fromDom(B))},S$=r=>{const g=r.startContainer.parentNode,B=r.endContainer.parentNode;return!x(g)&&!x(B)&&g.isEqualNode(B)},SK=r=>{const g=r.endContainer;return r.endOffset===(Nt(g)?g.length:g.childNodes.length)},kK=r=>S$(r)&&SK(r),k$=r=>!r.endContainer.isEqualNode(r.commonAncestorContainer),TK=r=>kK(r)||k$(r),T$=r=>{const g=r.selection.getRng();return dk(g)&&OK(r,g)&&TK(g)},ufe=r=>{if(T$(r)){const g=g4(r);return Y.some(()=>{T6(r),KC(r,g)})}else return Y.none()},r9=(r,g)=>r.selection.isCollapsed()?_$(r,g):ufe(r),CK=(r,g)=>Jl(r,B=>Gp(B.dom),B=>g.isBlock(sa(B))),AK=r=>CK(sr.fromDom(r.selection.getStart()),r.schema),MK=r=>{const g=r.selection.getRng();return g.collapsed&&(JC(g)||r.dom.isEmpty(g.startContainer))&&!AK(r)},hk=r=>(MK(r)&&n9(r,[]),!0),o9=(r,g,B)=>E(B)?Y.some(()=>{r._selectionOverrides.hideFakeCaret(),Ew(r,g,sr.fromDom(B))}):Y.none(),EK=(r,g)=>{const B=g?Li:U3,H=g?Af.Forwards:Af.Backwards,re=zb(H,r.getBody(),r.selection.getRng());return B(re)?o9(r,g,re.getNode(!g)):Y.from(Tg(g,re)).filter(be=>B(be)&&h3(re,be)).bind(be=>o9(r,g,be.getNode(!g)))},PK=(r,g)=>{const B=r.selection.getNode();return Zr(B)?o9(r,g,B):Y.none()},e8=(r,g)=>r.selection.isCollapsed()?EK(r,g):PK(r,g),RK=r=>Ya(r,g=>Sn(g.dom)||rr(g.dom)).exists(g=>Sn(g.dom)),ix=r=>zr(r??"").getOr(0),i9=(r,g)=>{const B=r||dp(g)?"margin":"padding",H=pi(g,"direction")==="rtl"?"-right":"-left";return B+H},a9=(r,g,B,H,re,be)=>{const Re=i9(B,sr.fromDom(be)),Ke=ix(r.getStyle(be,Re));if(g==="outdent"){const ct=Math.max(0,Ke-H);r.setStyle(be,Re,ct?ct+re:"")}else{const ct=Ke+H+re;r.setStyle(be,Re,ct)}},C$=(r,g)=>Oe(g,B=>{const H=i9(fy(r),B),re=Ru(B,H).map(ix).getOr(0);return r.dom.getContentEditable(B.dom)!=="false"&&re>0}),t8=r=>{const g=Mg(r);return!r.mode.isReadOnly()&&(g.length>1||C$(r,g))},ax=r=>Vp(r)||nh(r),A$=r=>Hu(r).exists(ax),Mg=r=>Te(Ld(r.selection.getSelectedBlocks()),g=>!ax(g)&&!A$(g)&&RK(g)),F2=(r,g)=>{var B,H;const{dom:re}=r,be=JO(r),Re=(H=(B=/[a-z%]+$/i.exec(be))===null||B===void 0?void 0:B[0])!==null&&H!==void 0?H:"px",Ke=ix(be),ct=fy(r);ye(Mg(r),kt=>{a9(re,g,ct,Ke,Re,kt.dom)})},s9=r=>F2(r,"indent"),M$=r=>F2(r,"outdent"),l9=r=>{if(r.selection.isCollapsed()&&t8(r)){const g=r.dom,B=r.selection.getRng(),H=qr.fromRangeStart(B),re=g.getParent(B.startContainer,g.isBlock);if(re!==null&&$E(sr.fromDom(re),H,r.schema))return Y.some(()=>M$(r))}return Y.none()},E$=(r,g,B)=>Ne([l9,ak,LP,(H,re)=>fk(H,g,re),zC,Bw,p4,e8,NC,r9,h4],H=>H(r,B)).filter(H=>r.selection.isEditable()),LK=(r,g)=>{E$(r,g,!1).fold(()=>{r.selection.isEditable()&&(T6(r),hc(r))},K)},IK=(r,g)=>{E$(r,g,!0).fold(()=>{r.selection.isEditable()&&GB(r)},K)},DK=(r,g)=>{r.addCommand("delete",()=>{LK(r,g)}),r.addCommand("forwardDelete",()=>{IK(r,g)})},P$=5,R$=400,L$=r=>r.touches===void 0||r.touches.length!==1?Y.none():Y.some(r.touches[0]),BK=(r,g)=>{const B=Math.abs(r.clientX-g.x),H=Math.abs(r.clientY-g.y);return B>P$||H>P$},v4=r=>{const g=Ys(),B=mr(!1),H=n0(re=>{r.dispatch("longpress",{...re,type:"longpress"}),B.set(!0)},R$);r.on("touchstart",re=>{L$(re).each(be=>{H.cancel();const Re={x:be.clientX,y:be.clientY,target:re.target};H.throttle(re),B.set(!1),g.set(Re)})},!0),r.on("touchmove",re=>{H.cancel(),L$(re).each(be=>{g.on(Re=>{BK(be,Re)&&(g.clear(),B.set(!1),r.dispatch("longpresscancel"))})})},!0),r.on("touchend touchcancel",re=>{H.cancel(),re.type!=="touchcancel"&&g.get().filter(be=>be.target.isEqualNode(re.target)).each(()=>{B.get()?re.preventDefault():r.dispatch("tap",{...re,type:"tap"})})},!0)},y4=(r,g)=>_t(r,g.nodeName),I$=(r,g)=>Nt(g)?!0:ne(g)?!y4(r.getBlockElements(),g)&&!Kp(g)&&!xm(r,g)&&!Pa(g):!1,D$=(r,g,B)=>de(SB(sr.fromDom(B),sr.fromDom(g)),H=>y4(r,H.dom)),c9=(r,g)=>{if(Nt(g)){if(g.data.length===0)return!0;if(/^\s+$/.test(g.data))return!g.nextSibling||y4(r,g.nextSibling)||Pa(g.nextSibling)}return!1},u9=r=>r.dom.create(dc(r),Jf(r)),zK=r=>{const g=r.dom,B=r.selection,H=r.schema,re=H.getBlockElements(),be=B.getStart(),Re=r.getBody();let Ke,ct,kt=null;const Wt=dc(r);if(!be||!ne(be))return;const Jt=Re.nodeName.toLowerCase();if(!H.isValidChild(Jt,Wt.toLowerCase())||D$(re,Re,be))return;if(Re.firstChild===Re.lastChild&&On(Re.firstChild)){Ke=u9(r),Ke.appendChild(F1().dom),Re.replaceChild(Ke,Re.firstChild),r.selection.setCursorLocation(Ke,0),r.nodeChanged();return}let ln=Re.firstChild;for(;ln;)if(ne(ln)&&tc(H,ln),I$(H,ln)){if(c9(re,ln)){ct=ln,ln=ln.nextSibling,g.remove(ct);continue}if(!Ke){if(!kt&&r.hasFocus()&&(kt=xv(r.selection.getRng(),()=>document.createElement("span"))),!ln.parentNode){ln=null;break}Ke=u9(r),Re.insertBefore(Ke,ln)}ct=ln,ln=ln.nextSibling,Ke.appendChild(ct)}else Ke=null,ln=ln.nextSibling;kt&&(r.selection.setRng(v0(kt)),r.nodeChanged())},B$=(r,g,B)=>{const H=sr.fromDom(u9(r)),re=F1();Ps(H,re),B(g,H);const be=document.createRange();return be.setStartBefore(re.dom),be.setEndBefore(re.dom),be},FK=r=>{r.on("NodeChange",()=>zK(r))},z$=r=>g=>(" "+g.attr("class")+" ").indexOf(r)!==-1,NK=(r,g,B)=>function(H){const re=arguments,be=re[re.length-2],Re=be>0?g.charAt(be-1):"";if(Re==='"')return H;if(Re===">"){const Ke=g.lastIndexOf("<",be);if(Ke!==-1&&g.substring(Ke,be).indexOf('contenteditable="false"')!==-1)return H}return''+r.dom.encode(typeof re[1]=="string"?re[1]:re[0])+""},$K=(r,g,B)=>{let H=g.length,re=B.content;if(B.format!=="raw"){for(;H--;)re=re.replace(g[H],NK(r,re,vy(r)));B.content=re}},F$=(r,g)=>Oe(r,B=>{const H=g.match(B);return H!==null&&H[0].length===g.length}),VK=r=>{const g="contenteditable",B=" "+mo.trim(sw(r))+" ",H=" "+mo.trim(vy(r))+" ",re=z$(B),be=z$(H),Re=pp(r);Re.length>0&&r.on("BeforeSetContent",Ke=>{$K(r,Re,Ke)}),r.parser.addAttributeFilter("class",Ke=>{let ct=Ke.length;for(;ct--;){const kt=Ke[ct];re(kt)?kt.attr(g,"true"):be(kt)&&kt.attr(g,"false")}}),r.serializer.addAttributeFilter(g,Ke=>{let ct=Ke.length;for(;ct--;){const kt=Ke[ct];if(!re(kt)&&!be(kt))continue;const Wt=kt.attr("data-mce-content");Re.length>0&&Wt?F$(Re,Wt)?(kt.name="#text",kt.type=3,kt.raw=!0,kt.value=Wt):kt.remove():kt.attr(g,null)}})},UK=r=>xi(sr.fromDom(r.getBody()),"*[data-mce-caret]").map(g=>g.dom).getOrNull(),Ym=(r,g)=>{g.hasAttribute("data-mce-caret")&&(Ra(g),r.selection.setRng(r.selection.getRng()),r.selection.scrollIntoView(g))},jK=(r,g)=>{const B=UK(r);if(B){if(g.type==="compositionstart"){g.preventDefault(),g.stopPropagation(),Ym(r,B);return}Z_(B)&&(Ym(r,B),r.undoManager.add())}},f9=r=>{r.on("keyup compositionstart",U(jK,r))},d9=rr,h9=(r,g,B)=>s$(g,r,B,Ey,k2,d9),QK=(r,g,B)=>l$(g,r,B,be=>Ey(be)||FE(be),be=>k2(be)||NE(be),d9),HK=r=>{const g=r.dom.create(dc(r));return g.innerHTML='
    ',g},N$=(r,g,B)=>{const H=Od(r.getBody()),re=U(IS,g===1?H.next:H.prev);if(B.collapsed){const be=r.dom.getParent(B.startContainer,"PRE");if(!be)return;if(!re(qr.fromRangeStart(B))){const Ke=sr.fromDom(HK(r));g===1?si(sr.fromDom(be),Ke):Fc(sr.fromDom(be),Ke),r.selection.select(Ke.dom,!0),r.selection.collapse()}}},ZK=(r,g)=>{const B=g?Af.Forwards:Af.Backwards,H=r.selection.getRng();return h9(B,r,H).orThunk(()=>(N$(r,B,H),Y.none()))},qK=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return QK(B,r,H).orThunk(()=>(N$(r,B,H),Y.none()))},$$=(r,g)=>{const B=g?r.getEnd(!0):r.getStart(!0);return ZB(B)?!g:g},V$=(r,g)=>ZK(r,$$(r.selection,g)).exists(B=>(_v(r,B),!0)),U$=(r,g)=>qK(r,g).exists(B=>(_v(r,B),!0)),b4=(r,g)=>mK(r,g,g?k2:Ey),c1=(r,g)=>IP(r,!g).map(B=>{const H=B.toRange(),re=r.selection.getRng();return g?H.setStart(re.startContainer,re.startOffset):H.setEnd(re.endContainer,re.endOffset),H}).exists(B=>(_v(r,B),!0)),rO=r=>ce(["figcaption"],sa(r)),n8=(r,g,B)=>{const H=U(Fa,g);return Ya(sr.fromDom(r.container()),re=>B.isBlock(sa(re)),H).filter(rO)},p9=(r,g,B)=>g?e$(r.dom,B):JN(r.dom,B),m9=(r,g)=>{const B=sr.fromDom(r.getBody()),H=qr.fromRangeStart(r.selection.getRng());return n8(H,B,r.schema).exists(()=>{if(p9(B,g,H)){const be=B$(r,B,g?Ps:Hh);return r.selection.setRng(be),!0}else return!1})},g9=(r,g)=>r.selection.isCollapsed()?m9(r,g):!1,WK=(r,g,B)=>{const H=r.selection.getRng(),re=qr.fromRangeStart(H);return r.getBody().firstChild===g&&JN(B,re)?(r.execCommand("InsertNewBlockBefore"),!0):!1},j$=(r,g)=>{const B=r.selection.getRng(),H=qr.fromRangeStart(B);return r.getBody().lastChild===g&&e$(g,H)?(r.execCommand("InsertNewBlockAfter"),!0):!1},Q$=(r,g)=>g?Y.from(r.dom.getParent(r.selection.getNode(),"details")).map(B=>j$(r,B)).getOr(!1):Y.from(r.dom.getParent(r.selection.getNode(),"summary")).bind(B=>Y.from(r.dom.getParent(B,"details")).map(H=>WK(r,H,B))).getOr(!1),H$=(r,g)=>Q$(r,g),Z$={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},YK=r=>ve(r,g=>({...Z$,...g})),XK=r=>ve(r,g=>({...Z$,...g})),q$=(r,g)=>g.keyCode===r.keyCode&&g.shiftKey===r.shiftKey&&g.altKey===r.altKey&&g.ctrlKey===r.ctrlKey&&g.metaKey===r.metaKey,GK=(r,g)=>$e(YK(r),B=>q$(B,g)?[B]:[]),W$=(r,g)=>$e(XK(r),B=>q$(B,g)?[B]:[]),ua=(r,...g)=>()=>r.apply(null,g),r8=(r,g)=>De(GK(r,g),B=>B.action()),KK=(r,g)=>Ne(W$(r,g),B=>B.action()),JK=(r,g)=>{const B=g?Af.Forwards:Af.Backwards,H=r.selection.getRng();return s$(r,B,H,Li,U3,Zr).exists(re=>(_v(r,re),!0))},Y$=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return l$(r,B,H,Li,U3,Zr).exists(re=>(_v(r,re),!0))},eJ=(r,g)=>mK(r,g,g?U3:Li),tJ=aa.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),pk={...tJ,none:r=>tJ.none(r)},dfe=(r,g)=>X$(r,g,q),X$=(r,g,B)=>$e(Oc(r),H=>_f(H,g)?B(H)?[H]:[]:X$(H,g,B)),nm=(r,g,B=oe)=>{if(B(g))return Y.none();if(ce(r,sa(g)))return Y.some(g);const H=re=>_f(re,"table")||B(re);return xl(g,r.join(","),H)},G$=(r,g)=>nm(["td","th"],r,g),mk=r=>dfe(r,"th,td"),K$=(r,g)=>pu(r,"table",g),o8=(r,g,B,H,re=q)=>{const be=H===1;if(!be&&B<=0)return pk.first(r[0]);if(be&&B>=r.length-1)return pk.last(r[r.length-1]);{const Re=B+H,Ke=r[Re];return re(Ke)?pk.middle(g,Ke):o8(r,g,Re,H,re)}},v9=(r,g)=>K$(r,g).bind(B=>{const H=mk(B);return He(H,be=>Fa(r,be)).map(be=>({index:be,all:H}))}),y9=(r,g,B)=>v9(r,B).fold(()=>pk.none(r),re=>o8(re.all,r,re.index,1,g)),nJ=(r,g,B)=>v9(r,B).fold(()=>pk.none(),re=>o8(re.all,r,re.index,-1,g)),rJ=r=>HO(r).filter(g=>g.trim().length!==0||g.indexOf(Ea)>-1).isSome(),J$=r=>iu(r)&&uc(r,"contenteditable")==="false",oJ=["img","br"],iJ=r=>rJ(r)||ce(oJ,sa(r))||J$(r),aJ=r=>Wc(r,iJ),b9=(r,g)=>({left:r.left-g,top:r.top-g,right:r.right+g*2,bottom:r.bottom+g*2,width:r.width+g,height:r.height+g}),sJ=(r,g)=>$e(g,B=>{const H=b9(i0(B.getBoundingClientRect()),-1);return[{x:H.left,y:r(H),cell:B},{x:H.right,y:r(H),cell:B}]}),lJ=(r,g,B)=>Ie(r,(H,re)=>H.fold(()=>Y.some(re),be=>{const Re=Math.sqrt(Math.abs(be.x-g)+Math.abs(be.y-B)),Ke=Math.sqrt(Math.abs(re.x-g)+Math.abs(re.y-B));return Y.some(Ke{const be=Zl(sr.fromDom(B),"td,th,caption").map(Ke=>Ke.dom),Re=Te(sJ(r,be),Ke=>g(Ke,re));return lJ(Re,H,re).map(Ke=>Ke.cell)},uJ=r=>r.bottom,eV=r=>r.top,hfe=(r,g)=>r.yr.y>g,dJ=U(cJ,uJ,hfe),hJ=U(cJ,eV,fJ),x9=(r,g)=>Xe(g.getClientRects()).bind(B=>dJ(r,B.left,B.top)).bind(B=>HC(sK(B),g)),i8=(r,g)=>tt(g.getClientRects()).bind(B=>hJ(r,B.left,B.top)).bind(B=>HC(aK(B),g)),tV=(r,g,B)=>B.breakAt.exists(H=>r(g,H).breakAt.isSome()),nV=r=>r.breakType===Ny.Wrap&&r.positions.length===0,pJ=r=>r.breakType===Ny.Br&&r.positions.length===1,rV=(r,g,B)=>{const H=r(g,B);return nV(H)||!On(B.getNode())&&pJ(H)?!tV(r,g,H):H.breakAt.isNone()},_9=U(rV,z2),mJ=U(rV,ck),gJ=(r,g,B)=>{const H=qr.fromRangeStart(g);return Nb(!r,B).exists(re=>re.isEqual(H))},vJ=(r,g,B,H)=>{const re=r.selection.getRng(),be=g?1:-1;return NM()&&gJ(g,re,B)?(zy(be,r,B,!g,!1).each(Re=>{_v(r,Re)}),!0):!1},yJ=(r,g,B)=>x9(g,B).orThunk(()=>Xe(B.getClientRects()).bind(H=>XP(GN(r,qr.before(g)),H.left))).getOr(qr.before(g)),u1=(r,g,B)=>i8(g,B).orThunk(()=>Xe(B.getClientRects()).bind(H=>XP(KN(r,qr.after(g)),H.left))).getOr(qr.after(g)),w9=(r,g)=>{const B=g.getNode(r);return Et(B)?Y.some(B):Y.none()},oV=(r,g,B)=>{g.undoManager.transact(()=>{const H=r?si:Fc,re=B$(g,sr.fromDom(B),H);_v(g,re)})},bJ=(r,g,B)=>{const H=w9(!!g,B),re=g===!1;H.fold(()=>_v(r,B.toRange()),be=>Nb(re,r.getBody()).filter(Re=>Re.isEqual(B)).fold(()=>_v(r,B.toRange()),Re=>oV(g,r,be)))},pfe=(r,g,B,H)=>{const re=r.selection.getRng(),be=qr.fromRangeStart(re),Re=r.getBody();if(!g&&_9(H,be)){const Ke=yJ(Re,B,be);return bJ(r,g,Ke),!0}else if(g&&mJ(H,be)){const Ke=u1(Re,B,be);return bJ(r,g,Ke),!0}else return!1},xJ=(r,g,B)=>Y.from(r.dom.getParent(r.selection.getNode(),"td,th")).bind(H=>Y.from(r.dom.getParent(H,"table")).map(re=>B(r,g,re,H))).getOr(!1),_J=(r,g)=>xJ(r,g,vJ),O9=(r,g)=>xJ(r,g,pfe),a8=r=>{const g=O2.exact(r,0,r,0);return pe(g)},iV=(r,g,B)=>B.fold(Y.none,Y.none,(H,re)=>aJ(re).map(be=>a8(be)),H=>(r.execCommand("mceTableInsertRowAfter"),s8(r,g,H))),s8=(r,g,B)=>iV(r,g,y9(B,js)),aV=(r,g,B)=>iV(r,g,nJ(B,js)),S9=(r,g)=>{const B=["table","li","dl"],H=sr.fromDom(r.getBody()),re=Ke=>{const ct=sa(Ke);return Fa(Ke,H)||ce(B,ct)},be=r.selection.getRng(),Re=sr.fromDom(g?be.endContainer:be.startContainer);return G$(Re,re).map(Ke=>(K$(Ke,re).each(Wt=>{r.model.table.clearSelectedCells(Wt.dom)}),r.selection.collapse(!g),(g?s8:aV)(r,re,Ke).each(Wt=>{r.selection.setRng(Wt)}),!0)).getOr(!1)},sV=(r,g,B)=>{const H=fr.os.isMacOS()||fr.os.isiOS();r8([{keyCode:Fo.RIGHT,action:ua(V$,r,!0)},{keyCode:Fo.LEFT,action:ua(V$,r,!1)},{keyCode:Fo.UP,action:ua(U$,r,!1)},{keyCode:Fo.DOWN,action:ua(U$,r,!0)},...H?[{keyCode:Fo.UP,action:ua(c1,r,!1),metaKey:!0,shiftKey:!0},{keyCode:Fo.DOWN,action:ua(c1,r,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Fo.RIGHT,action:ua(_J,r,!0)},{keyCode:Fo.LEFT,action:ua(_J,r,!1)},{keyCode:Fo.UP,action:ua(O9,r,!1)},{keyCode:Fo.DOWN,action:ua(O9,r,!0)},{keyCode:Fo.UP,action:ua(O9,r,!1)},{keyCode:Fo.UP,action:ua(H$,r,!1)},{keyCode:Fo.DOWN,action:ua(H$,r,!0)},{keyCode:Fo.RIGHT,action:ua(JK,r,!0)},{keyCode:Fo.LEFT,action:ua(JK,r,!1)},{keyCode:Fo.UP,action:ua(Y$,r,!1)},{keyCode:Fo.DOWN,action:ua(Y$,r,!0)},{keyCode:Fo.RIGHT,action:ua(d$,r,g,!0)},{keyCode:Fo.LEFT,action:ua(d$,r,g,!1)},{keyCode:Fo.RIGHT,ctrlKey:!H,altKey:H,action:ua(bK,r,g)},{keyCode:Fo.LEFT,ctrlKey:!H,altKey:H,action:ua(p$,r,g)},{keyCode:Fo.UP,action:ua(g9,r,!1)},{keyCode:Fo.DOWN,action:ua(g9,r,!0)}],B).each(re=>{B.preventDefault()})},wJ=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||sV(r,g,B)})},wv=(r,g)=>({container:r,offset:g}),l8=Nl.DOM,c8=r=>g=>r===g?-1:0,u8=r=>g=>r.isBlock(g)||ce(["BR","IMG","HR","INPUT"],g.nodeName)||r.getContentEditable(g)==="false",k9=(r,g,B)=>{if(Nt(r)&&g>=0)return Y.some(wv(r,g));{const H=Em(l8);return Y.from(H.backwards(r,g,c8(r),B)).map(re=>wv(re.container,re.container.data.length))}},OJ=(r,g,B)=>{if(Nt(r)&&g>=r.length)return Y.some(wv(r,g));{const H=Em(l8);return Y.from(H.forwards(r,g,c8(r),B)).map(re=>wv(re.container,0))}},T9=(r,g,B)=>{if(!Nt(r))return Y.none();const H=r.data;if(g>=0&&g<=H.length)return Y.some(wv(r,g));{const re=Em(l8);return Y.from(re.backwards(r,g,c8(r),B)).bind(be=>{const Re=be.container.data;return T9(be.container,g+Re.length,B)})}},f8=(r,g,B)=>{if(!Nt(r))return Y.none();const H=r.data;if(g<=H.length)return Y.some(wv(r,g));{const re=Em(l8);return Y.from(re.forwards(r,g,c8(r),B)).bind(be=>f8(be.container,g-H.length,B))}},C9=(r,g,B,H,re)=>{const be=Em(r,u8(r));return Y.from(be.backwards(g,B,H,re))},SJ=r=>r.collapsed&&Nt(r.startContainer),lV=r=>vd(r.toString().replace(/\u00A0/g," ")),cV=r=>r!==""&&`  \f -\r \v`.indexOf(r)!==-1,kJ=(r,g)=>r.substring(g.length),TJ=(r,g,B,H=!1)=>{let re;const be=B.charAt(0);for(re=g-1;re>=0;re--){const Re=r.charAt(re);if(!H&&cV(Re))return Y.none();if(be===Re&&Un(r,B,re,g))break}return Y.some(re)},A9=(r,g,B,H=!1)=>{if(!SJ(g))return Y.none();const re={text:"",offset:0},be=(Ke,ct,kt)=>(re.text=kt+re.text,re.offset+=ct,TJ(re.text,re.offset,B,H).getOr(ct)),Re=r.getParent(g.startContainer,r.isBlock)||r.getRoot();return C9(r,g.startContainer,g.startOffset,be,Re).bind(Ke=>{const ct=g.cloneRange();if(ct.setStart(Ke.container,Ke.offset),ct.setEnd(g.endContainer,g.endOffset),ct.collapsed)return Y.none();const kt=lV(ct);return kt.lastIndexOf(B)!==0?Y.none():Y.some({text:kJ(kt,B),range:ct,trigger:B})})},CJ=r=>r.nodeType===yl,AJ=r=>r.nodeType===Cu,d8=r=>{if(CJ(r))return wv(r,r.data.length);{const g=r.childNodes;return g.length>0?d8(g[g.length-1]):wv(r,g.length)}},uV=(r,g)=>{const B=r.childNodes;return B.length>0&&g0&&AJ(r)&&B.length===g?d8(B[B.length-1]):wv(r,g)},fV=(r,g)=>{var B;const H=(B=r.getParent(g.container,r.isBlock))!==null&&B!==void 0?B:r.getRoot();return C9(r,g.container,g.offset,(re,be)=>be===0?-1:be,H).filter(re=>{const be=re.container.data.charAt(re.offset-1);return!cV(be)}).isSome()},MJ=r=>g=>{const B=uV(g.startContainer,g.startOffset);return!fV(r,B)},EJ=(r,g,B)=>Ne(B.triggers,H=>A9(r,g,H)),PJ=(r,g)=>{const B=g(),H=r.selection.getRng();return EJ(r.dom,H,B).bind(re=>dV(r,g,re))},dV=(r,g,B,H={})=>{var re;const be=g(),Ke=(re=r.selection.getRng().startContainer.nodeValue)!==null&&re!==void 0?re:"",ct=Te(be.lookupByTrigger(B.trigger),Wt=>B.text.length>=Wt.minChars&&Wt.matches.getOrThunk(()=>MJ(r.dom))(B.range,Ke,B.text));if(ct.length===0)return Y.none();const kt=Promise.all(ve(ct,Wt=>Wt.fetch(B.text,Wt.maxResults,H).then(ln=>({matchText:B.text,items:ln,columns:Wt.columns,onAction:Wt.onAction,highlightOn:Wt.highlightOn}))));return Y.some({lookupData:kt,context:B})};var Ov;(function(r){r[r.Error=0]="Error",r[r.Value=1]="Value"})(Ov||(Ov={}));const M9=(r,g,B)=>r.stype===Ov.Error?g(r.serror):B(r.svalue),Rf=r=>{const g=[],B=[];return ye(r,H=>{M9(H,re=>B.push(re),re=>g.push(re))}),{values:g,errors:B}},RJ=(r,g)=>r.stype===Ov.Error?{stype:Ov.Error,serror:g(r.serror)}:r,LJ=(r,g)=>r.stype===Ov.Value?{stype:Ov.Value,svalue:g(r.svalue)}:r,IJ=(r,g)=>r.stype===Ov.Value?g(r.svalue):r,hV=(r,g)=>r.stype===Ov.Error?g(r.serror):r,h8=r=>({stype:Ov.Value,svalue:r}),E9=r=>({stype:Ov.Error,serror:r}),Ud={fromResult:r=>r.fold(E9,h8),toResult:r=>M9(r,gs.error,gs.value),svalue:h8,partition:Rf,serror:E9,bind:IJ,bindError:hV,map:LJ,mapError:RJ,fold:M9},gk=r=>_(r)&&nt(r).length>100?" removed due to size":JSON.stringify(r,null,2),P9=r=>{const g=r.length>10?r.slice(0,10).concat([{path:[],getErrorInfo:$("... (only showing first ten failures)")}]):r;return ve(g,B=>"Failed path: ("+B.path.join(" > ")+`) -`+B.getErrorInfo())},x4=(r,g)=>Ud.serror([{path:r,getErrorInfo:g}]),mV=(r,g,B)=>x4(r,()=>'Could not find valid *required* value for "'+g+'" in '+gk(B)),p8=(r,g)=>x4(r,()=>'Choice schema did not contain choice key: "'+g+'"'),m8=(r,g,B)=>x4(r,()=>'The chosen schema: "'+B+'" did not exist in branches: '+gk(g)),vk=(r,g)=>x4(r,$(g)),yk=(r,g,B,H)=>Ct(B,H).fold(()=>m8(r,B,H),be=>be.extract(r.concat(["branch: "+H]),g)),f1=(r,g)=>({extract:(re,be)=>Ct(be,r).fold(()=>p8(re,r),Ke=>yk(re,be,g,Ke)),toString:()=>"chooseOn("+r+"). Possible values: "+nt(g)}),bk=(r,g)=>g,gV=(r,g)=>S(r)&&S(g)?g8(r,g):g,R9=r=>(...g)=>{if(g.length===0)throw new Error("Can't merge zero objects");const B={};for(let H=0;H({tag:"required",process:{}}),DJ=r=>({tag:"defaultedThunk",process:r}),_4=r=>DJ($(r)),BJ=()=>({tag:"option",process:{}}),zJ=(r,g)=>r.length>0?Ud.svalue(g8(g,L9.apply(void 0,r))):Ud.svalue(g),yV=r=>I(Ud.serror,Ve)(r),FJ={consolidateObj:(r,g)=>{const B=Ud.partition(r);return B.errors.length>0?yV(B.errors):zJ(B.values,g)},consolidateArr:r=>{const g=Ud.partition(r);return g.errors.length>0?yV(g.errors):Ud.svalue(g.values)}},NJ=(r,g,B,H)=>({tag:"field",key:r,newKey:g,presence:B,prop:H}),$J=(r,g)=>({tag:"custom",newKey:r,instantiator:g}),bV=(r,g,B)=>{switch(r.tag){case"field":return g(r.key,r.newKey,r.presence,r.prop);case"custom":return B(r.newKey,r.instantiator)}},I9=r=>{const g=(H,re)=>Ud.bindError(r(re),be=>vk(H,be)),B=$("val");return{extract:g,toString:B}},VJ=I9(Ud.svalue),UJ=(r,g,B,H)=>Ct(g,B).fold(()=>mV(r,B,g),H),xV=(r,g,B,H)=>{const re=Ct(r,g).getOrThunk(()=>B(r));return H(re)},jJ=(r,g,B)=>B(Ct(r,g)),_V=(r,g,B,H)=>{const re=Ct(r,g).map(be=>be===!0?B(r):be);return H(re)},wV=(r,g,B,H,re)=>{const be=Ke=>re.extract(g.concat([H]),Ke),Re=Ke=>Ke.fold(()=>Ud.svalue(Y.none()),ct=>{const kt=re.extract(g.concat([H]),ct);return Ud.map(kt,Y.some)});switch(r.tag){case"required":return UJ(g,B,H,be);case"defaultedThunk":return xV(B,H,r.process,be);case"option":return jJ(B,H,Re);case"defaultedOptionThunk":return _V(B,H,r.process,Re);case"mergeWithThunk":return xV(B,H,$({}),Ke=>{const ct=g8(r.process(B),Ke);return be(ct)})}},OV=(r,g,B)=>{const H={},re=[];for(const be of B)bV(be,(Re,Ke,ct,kt)=>{const Wt=wV(ct,r,g,Re,kt);Ud.fold(Wt,Jt=>{re.push(...Jt)},Jt=>{H[Ke]=Jt})},(Re,Ke)=>{H[Re]=Ke(g)});return re.length>0?Ud.serror(re):Ud.svalue(H)},D9=r=>({extract:(H,re)=>OV(H,re,r),toString:()=>`obj{ +Options:${Re}${B.join(Re)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+Ke+ct)}},JX=(r,g)=>{XX(r,g),KX(r,g)},J5=Nl.DOM,eG=r=>{J5.setStyle(r.id,"display",r.orgDisplay)},PC=r=>Y.from(r).each(g=>g.destroy()),tG=r=>{const g=r;g.contentAreaContainer=g.formElement=g.container=g.editorContainer=null,g.bodyElement=g.contentDocument=g.contentWindow=null,g.iframeElement=g.targetElm=null;const B=r.selection;if(B){const H=B.dom;g.selection=B.win=B.dom=H.doc=null}},RC=r=>{const g=r.formElement;g&&(g._mceOldSubmit&&(g.submit=g._mceOldSubmit,delete g._mceOldSubmit),J5.unbind(g,"submit reset",r.formEventDelegate))},nG=r=>{if(!r.removed){const{_selectionOverrides:g,editorUpload:B}=r,H=r.getBody(),re=r.getElement();H&&r.save({is_removing:!0}),r.removed=!0,r.unbindAllNativeEvents(),r.hasHiddenInput&&E(re==null?void 0:re.nextSibling)&&J5.remove(re.nextSibling),M3(r),r.editorManager.remove(r),!r.inline&&H&&eG(r),oE(r),J5.remove(r.getContainer()),PC(g),PC(B),r.destroy()}},rG=(r,g)=>{const{selection:B,dom:H}=r;if(!r.destroyed){if(!g&&!r.removed){r.remove();return}g||(r.editorManager.off("beforeunload",r._beforeUnload),r.theme&&r.theme.destroy&&r.theme.destroy(),PC(B),PC(H)),RC(r),tG(r),r.destroyed=!0}},o4=(()=>{const r={};return{add:(re,be)=>{r[re]=be},get:re=>r[re]?r[re]:{icons:{}},has:re=>_t(r,re)}})(),i4=su.ModelManager,lN=(r,g)=>g.dom[r],iG=(r,g)=>parseInt(pi(g,r),10),aG=U(lN,"clientWidth"),ek=U(lN,"clientHeight"),cN=U(iG,"margin-top"),uN=U(iG,"margin-left"),sG=r=>r.dom.getBoundingClientRect(),fN=(r,g,B)=>{const H=aG(r),re=ek(r);return g>=0&&B>=0&&g<=H&&B<=re},lG=(r,g,B,H)=>{const re=sG(g),be=r?re.left+g.dom.clientLeft+uN(g):0,Re=r?re.top+g.dom.clientTop+cN(g):0,Ke=B-be,ct=H-Re;return{x:Ke,y:ct}},cG=(r,g,B)=>{const H=sr.fromDom(r.getBody()),re=r.inline?H:ym(H),be=lG(r.inline,re,g,B);return fN(re,be.x,be.y)},uG=r=>Y.from(r).map(sr.fromDom),fG=r=>{const g=r.inline?r.getBody():r.getContentAreaContainer();return uG(g).map(zc).getOr(!1)};var dN=()=>{const r=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:r,close:r,getArgs:r}};const hN=r=>{const g=[],B=()=>{const ln=r.theme;return ln&&ln.getNotificationManagerImpl?ln.getNotificationManagerImpl():dN()},H=()=>Y.from(g[0]),re=(ln,kn)=>ln.type===kn.type&&ln.text===kn.text&&!ln.progressBar&&!ln.timeout&&!kn.progressBar&&!kn.timeout,be=()=>{H().each(ln=>{ln.reposition()})},Re=ln=>{g.push(ln)},Ke=ln=>{He(g,kn=>kn===ln).each(kn=>{g.splice(kn,1)})},ct=(ln,kn=!0)=>r.removed||!fG(r)?{}:(kn&&r.dispatch("BeforeOpenNotification",{notification:ln}),De(g,Vn=>re(B().getArgs(Vn),ln)).getOrThunk(()=>{r.editorManager.setActive(r);const Vn=B().open(ln,()=>{Ke(Vn)},()=>y5(r));return Re(Vn),be(),r.dispatch("OpenNotification",{notification:{...Vn}}),Vn})),kt=()=>{H().each(ln=>{B().close(ln),Ke(ln),be()})},Wt=$(g);return(ln=>{ln.on("SkinLoaded",()=>{const kn=_d(ln);kn&&ct({text:kn,type:"warning",timeout:0},!1),be()}),ln.on("show ResizeEditor NodeChange",()=>{requestAnimationFrame(be)}),ln.on("remove",()=>{ye(g.slice(),kn=>{B().close(kn)})}),ln.addShortcut("alt+F12","Focus to notification",()=>H().map(kn=>sr.fromDom(kn.getEl())).each(kn=>F3(kn)))})(r),{open:ct,close:kt,getNotifications:Wt}},a4=su.PluginManager,xv=su.ThemeManager;var pN=()=>{const r=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:r,openUrl:r,alert:r,confirm:r,close:r}};const wP=r=>{let g=[];const B=()=>{const Rn=r.theme;return Rn&&Rn.getWindowManagerImpl?Rn.getWindowManagerImpl():pN()},H=(Rn,qn)=>(...pr)=>qn?qn.apply(Rn,pr):void 0,re=Rn=>{r.dispatch("OpenWindow",{dialog:Rn})},be=Rn=>{r.dispatch("CloseWindow",{dialog:Rn})},Re=Rn=>{g.push(Rn),re(Rn)},Ke=Rn=>{be(Rn),g=Te(g,qn=>qn!==Rn),g.length===0&&r.focus()},ct=()=>Y.from(g[g.length-1]),kt=Rn=>{r.editorManager.setActive(r),v5(r),r.ui.show();const qn=Rn();return Re(qn),qn},Wt=(Rn,qn)=>kt(()=>B().open(Rn,qn,Ke)),Jt=Rn=>kt(()=>B().openUrl(Rn,Ke)),ln=(Rn,qn,pr)=>{const Tr=B();Tr.alert(Rn,H(pr||Tr,qn))},kn=(Rn,qn,pr)=>{const Tr=B();Tr.confirm(Rn,H(pr||Tr,qn))},Vn=()=>{ct().each(Rn=>{B().close(Rn),Ke(Rn)})};return r.on("remove",()=>{ye(g,Rn=>{B().close(Rn)})}),{open:Wt,openUrl:Jt,alert:ln,confirm:kn,close:Vn}},mN=(r,g)=>{r.notificationManager.open({type:"error",text:g})},LC=(r,g)=>{r._skinLoaded?mN(r,g):r.on("SkinLoaded",()=>{mN(r,g)})},dG=(r,g)=>{LC(r,Du.translate(["Failed to upload image: {0}",g]))},s4=(r,g,B)=>{kd(r,g,{message:B}),console.error(B)},tk=(r,g,B)=>B?`Failed to load ${r}: ${B} from url ${g}`:`Failed to load ${r} url: ${g}`,hG=(r,g,B)=>{s4(r,"PluginLoadError",tk("plugin",g,B))},pG=(r,g,B)=>{s4(r,"IconsLoadError",tk("icons",g,B))},mG=(r,g,B)=>{s4(r,"LanguageLoadError",tk("language",g,B))},sfe=(r,g,B)=>{s4(r,"ThemeLoadError",tk("theme",g,B))},_v=(r,g,B)=>{s4(r,"ModelLoadError",tk("model",g,B))},OP=(r,g,B)=>{const H=Du.translate(["Failed to initialize plugin: {0}",g]);kd(r,"PluginLoadError",{message:H}),IC(H,B),LC(r,H)},IC=(r,...g)=>{const B=window.console;B&&(B.error?B.error(r,...g):B.log(r,...g))},gG=r=>/^[a-z0-9\-]+$/i.test(r),SP=r=>"content/"+r+"/content.css",vG=r=>tinymce.Resource.has(SP(r)),Js=r=>l4(r,Bm(r)),yG=r=>l4(r,Wu(r)),l4=(r,g)=>{const B=r.editorManager.baseURL+"/skins/content",re=`content${r.editorManager.suffix}.css`;return ve(g,be=>vG(be)?be:gG(be)&&!r.inline?`${B}/${be}/${re}`:r.documentBaseURI.toAbsolute(be))},bG=r=>{r.contentCSS=r.contentCSS.concat(Js(r),yG(r))},xG=r=>r?Ee(r.getElementsByTagName("img")):[],_G=(r,g)=>{const B={};return{findAll:(re,be=q)=>{const Re=Te(xG(re),ct=>{const kt=ct.src;return ct.hasAttribute("data-mce-bogus")||ct.hasAttribute("data-mce-placeholder")||!kt||kt===fr.transparentSrc?!1:xr(kt,"blob:")?!r.isUploaded(kt)&&be(ct):xr(kt,"data:")?be(ct):!1}),Ke=ve(Re,ct=>{const kt=ct.src;if(_t(B,kt))return B[kt].then(Wt=>v(Wt)?Wt:{image:ct,blobInfo:Wt.blobInfo});{const Wt=lC(g,kt).then(Jt=>(delete B[kt],{image:ct,blobInfo:Jt})).catch(Jt=>(delete B[kt],Jt));return B[kt]=Wt,Wt}});return Promise.all(Ke)}}},kP=()=>{let B={};const H=(ln,kn)=>({status:ln,resultUri:kn}),re=ln=>ln in B;return{hasBlobUri:re,getResultUri:ln=>{const kn=B[ln];return kn?kn.resultUri:null},isPending:ln=>re(ln)?B[ln].status===1:!1,isUploaded:ln=>re(ln)?B[ln].status===2:!1,markPending:ln=>{B[ln]=H(1,null)},markUploaded:(ln,kn)=>{B[ln]=H(2,kn)},removeFailed:ln=>{delete B[ln]},destroy:()=>{B={}}}};let L2=0;const tm=()=>{const r=()=>Math.round(Math.random()*4294967295).toString(36);return"s"+new Date().getTime().toString(36)+r()+r()+r()},nk=r=>r+L2+++tm(),I2=()=>{let r=[];const g=Jt=>({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"})[Jt.toLowerCase()]||"dat",B=(Jt,ln,kn,Vn,Rn)=>{if(v(Jt))return H({id:Jt,name:Vn,filename:Rn,blob:ln,base64:kn});if(_(Jt))return H(Jt);throw new Error("Unknown input type")},H=Jt=>{if(!Jt.blob||!Jt.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const ln=Jt.id||nk("blobid"),kn=Jt.name||ln,Vn=Jt.blob;return{id:$(ln),name:$(kn),filename:$(Jt.filename||kn+"."+g(Vn.type)),blob:$(Vn),base64:$(Jt.base64),blobUri:$(Jt.blobUri||URL.createObjectURL(Vn)),uri:$(Jt.uri)}},re=Jt=>{Re(Jt.id())||r.push(Jt)},be=Jt=>De(r,Jt).getOrUndefined(),Re=Jt=>be(ln=>ln.id()===Jt);return{create:B,add:re,get:Re,getByUri:Jt=>be(ln=>ln.blobUri()===Jt),getByData:(Jt,ln)=>be(kn=>kn.base64()===Jt&&kn.blob().type===ln),findFirst:be,removeByUri:Jt=>{r=Te(r,ln=>ln.blobUri()===Jt?(URL.revokeObjectURL(ln.blobUri()),!1):!0)},destroy:()=>{ye(r,Jt=>{URL.revokeObjectURL(Jt.blobUri())}),r=[]}}},Dy=(r,g)=>{const B={},H=(Rn,qn)=>Rn?Rn.replace(/\/$/,"")+"/"+qn.replace(/^\//,""):qn,re=(Rn,qn)=>new Promise((pr,Tr)=>{const wr=new XMLHttpRequest;wr.open("POST",g.url),wr.withCredentials=g.credentials,wr.upload.onprogress=wo=>{qn(wo.loaded/wo.total*100)},wr.onerror=()=>{Tr("Image upload failed due to a XHR Transport error. Code: "+wr.status)},wr.onload=()=>{if(wr.status<200||wr.status>=300){Tr("HTTP Error: "+wr.status);return}const wo=JSON.parse(wr.responseText);if(!wo||!v(wo.location)){Tr("Invalid JSON: "+wr.responseText);return}pr(H(g.basePath,wo.location))};const Ur=new FormData;Ur.append("file",Rn.blob(),Rn.filename()),wr.send(Ur)}),be=C(g.handler)?g.handler:re,Re=()=>new Promise(Rn=>{Rn([])}),Ke=(Rn,qn)=>({url:qn,blobInfo:Rn,status:!0}),ct=(Rn,qn)=>({url:"",blobInfo:Rn,status:!1,error:qn}),kt=(Rn,qn)=>{mo.each(B[Rn],pr=>{pr(qn)}),delete B[Rn]},Wt=(Rn,qn,pr)=>(r.markPending(Rn.blobUri()),new Promise(Tr=>{let wr,Ur;try{const wo=()=>{wr&&(wr.close(),Ur=k)},jo=lo=>{wo(),r.markUploaded(Rn.blobUri(),lo),kt(Rn.blobUri(),Ke(Rn,lo)),Tr(Ke(Rn,lo))},di=lo=>{wo(),r.removeFailed(Rn.blobUri()),kt(Rn.blobUri(),ct(Rn,lo)),Tr(ct(Rn,lo))};Ur=lo=>{lo<0||lo>100||Y.from(wr).orThunk(()=>Y.from(pr).map(W)).each(eo=>{wr=eo,eo.progressBar.value(lo)})},qn(Rn,Ur).then(jo,lo=>{di(v(lo)?{message:lo}:lo)})}catch(wo){Tr(ct(Rn,wo))}})),Jt=Rn=>Rn===re,ln=Rn=>{const qn=Rn.blobUri();return new Promise(pr=>{B[qn]=B[qn]||[],B[qn].push(pr)})},kn=(Rn,qn)=>(Rn=mo.grep(Rn,pr=>!r.isUploaded(pr.blobUri())),Promise.all(mo.map(Rn,pr=>r.isPending(pr.blobUri())?ln(pr):Wt(pr,be,qn))));return{upload:(Rn,qn)=>!g.url&&Jt(be)?Re():kn(Rn,qn)}},c4=r=>()=>r.notificationManager.open({text:r.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),DC=(r,g)=>Dy(g,{url:W1(r),basePath:uy(r),credentials:Y1(r),handler:H0(r)}),TP=r=>{const g=kP(),B=DC(r,g);return{upload:(H,re=!0)=>B.upload(H,re?c4(r):void 0)}},gN=(r,g)=>r.dom.isEmpty(g.dom)&&E(r.schema.getTextBlockElements()[la(g)]),vN=r=>g=>{gN(r,g)&&Ps(g,sr.fromHtml('
    '))},wG=r=>{const g=I2();let B,H;const re=kP(),be=[],Re=wr=>Ur=>r.selection?wr(Ur):[],Ke=wr=>wr+(wr.indexOf("?")===-1?"?":"&")+new Date().getTime(),ct=(wr,Ur,wo)=>{let jo=0;do jo=wr.indexOf(Ur,jo),jo!==-1&&(wr=wr.substring(0,jo)+wo+wr.substr(jo+Ur.length),jo+=wo.length-Ur.length+1);while(jo!==-1);return wr},kt=(wr,Ur,wo)=>{const jo=`src="${wo}"${wo===fr.transparentSrc?' data-mce-placeholder="1"':""}`;return wr=ct(wr,`src="${Ur}"`,jo),wr=ct(wr,'data-mce-src="'+Ur+'"','data-mce-src="'+wo+'"'),wr},Wt=(wr,Ur)=>{ye(r.undoManager.data,wo=>{wo.type==="fragmented"?wo.fragments=ve(wo.fragments,jo=>kt(jo,wr,Ur)):wo.content=kt(wo.content,wr,Ur)})},Jt=(wr,Ur)=>{const wo=r.convertURL(Ur,"src");Wt(wr.src,Ur),ef(sr.fromDom(wr),{src:Hc(r)?Ke(Ur):Ur,"data-mce-src":wo})},ln=()=>(B||(B=DC(r,re)),qn().then(Re(wr=>{const Ur=ve(wr,wo=>wo.blobInfo);return B.upload(Ur,c4(r)).then(Re(wo=>{const jo=[];let di=!1;const lo=ve(wo,(eo,xo)=>{const{blobInfo:bi,image:Bi}=wr[xo];let $a=!1;return eo.status&&_s(r)?(eo.url&&!jn(Bi.src,eo.url)&&(di=!0),g.removeByUri(Bi.src),Iy(r)||Jt(Bi,eo.url)):eo.error&&(eo.error.remove&&(Wt(Bi.src,fr.transparentSrc),jo.push(Bi),$a=!0),dG(r,eo.error.message)),{element:Bi,status:eo.status,uploadUri:eo.url,blobInfo:bi,removed:$a}});return jo.length>0&&!Iy(r)?r.undoManager.transact(()=>{ye(Ld(jo),eo=>{const xo=Hu(eo);ja(eo),xo.each(vN(r)),g.removeByUri(eo.dom.src)})}):di&&r.undoManager.dispatchChange(),lo}))}))),kn=()=>Qc(r)?ln():Promise.resolve([]),Vn=wr=>Oe(be,Ur=>Ur(wr)),Rn=wr=>{be.push(wr)},qn=()=>(H||(H=_G(re,g)),H.findAll(r.getBody(),Vn).then(Re(wr=>{const Ur=Te(wr,wo=>v(wo)?(LC(r,wo),!1):wo.uriType!=="blob");return Iy(r)||ye(Ur,wo=>{Wt(wo.image.src,wo.blobInfo.blobUri()),wo.image.src=wo.blobInfo.blobUri(),wo.image.removeAttribute("data-mce-src")}),Ur}))),pr=()=>{g.destroy(),re.destroy(),H=B=null},Tr=wr=>wr.replace(/src="(blob:[^"]+)"/g,(Ur,wo)=>{const jo=re.getResultUri(wo);if(jo)return'src="'+jo+'"';let di=g.getByUri(wo);return di||(di=Ie(r.editorManager.get(),(lo,eo)=>lo||eo.editorUpload&&eo.editorUpload.blobCache.getByUri(wo),void 0)),di?'src="data:'+di.blob().type+";base64,"+di.base64()+'"':Ur});return r.on("SetContent",()=>{Qc(r)?kn():qn()}),r.on("RawSaveContent",wr=>{wr.content=Tr(wr.content)}),r.on("GetContent",wr=>{wr.source_view||wr.format==="raw"||wr.format==="tree"||(wr.content=Tr(wr.content))}),r.on("PostRender",()=>{r.parser.addNodeFilter("img",wr=>{ye(wr,Ur=>{const wo=Ur.attr("src");if(!wo||g.getByUri(wo))return;const jo=re.getResultUri(wo);jo&&Ur.attr("src",jo)})})}),{blobCache:g,addFilter:Rn,uploadImages:ln,uploadImagesAuto:kn,scanForImages:qn,destroy:pr}},OG=r=>{const g=r.dom,B=r.schema.type,H={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:re=>{g.setStyle(re,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:re=>{g.setStyle(re,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const re={inline:"span",styles:{textDecoration:"line-through"},exact:!0},be={inline:"strike",remove:"all",preserve_attributes:["class","style"]},Re={inline:"s",remove:"all",preserve_attributes:["class","style"]};return B!=="html4"?[Re,re,be]:[re,Re,be]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(re,be,Re)=>ne(re)&&re.hasAttribute("href"),onformat:(re,be,Re)=>{mo.each(Re,(Ke,ct)=>{g.setAttrib(re,ct,Ke)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":re=>{var be;return(be=re==null?void 0:re.customValue)!==null&&be!==void 0?be:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return mo.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),re=>{H[re]={block:re,remove:"all"}}),H},CP={remove_similar:!0,inherit:!1},Yw={selector:"td,th",...CP},yN={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...Yw},tablecellverticalalign:{styles:{"vertical-align":"%value"},...Yw},tablecellbordercolor:{styles:{borderColor:"%value"},...Yw},tablecellclass:{classes:["%value"],...Yw},tableclass:{selector:"table",classes:["%value"],...CP},tablecellborderstyle:{styles:{borderStyle:"%value"},...Yw},tablecellborderwidth:{styles:{borderWidth:"%value"},...Yw}},bN=$(yN),AP=r=>{const g={},B=Re=>E(Re)?g[Re]:g,H=Re=>_t(g,Re),re=(Re,Ke)=>{Re&&(v(Re)?(A(Ke)||(Ke=[Ke]),ye(Ke,ct=>{M(ct.deep)&&(ct.deep=!$m(ct)),M(ct.split)&&(ct.split=!$m(ct)||Ef(ct)),M(ct.remove)&&$m(ct)&&!Ef(ct)&&(ct.remove="none"),$m(ct)&&Ef(ct)&&(ct.mixed=!0,ct.block_expand=!0),v(ct.classes)&&(ct.classes=ct.classes.split(/\s+/))}),g[Re]=Ke):Ge(Re,(ct,kt)=>{re(kt,ct)}))},be=Re=>(Re&&g[Re]&&delete g[Re],g);return re(OG(r)),re(bN()),re(Cb(r)),{get:B,has:H,register:re,unregister:be}},MP=mo.each,m0=Nl.DOM,xN=r=>E(r)&&_(r),_N=(r,g)=>{const B=g&&g.schema||Np({}),H=(ct,kt)=>{kt.classes.length>0&&m0.addClass(ct,kt.classes.join(" ")),m0.setAttribs(ct,kt.attrs)},re=ct=>{const kt=v(ct)?{name:ct,classes:[],attrs:{}}:ct,Wt=m0.create(kt.name);return H(Wt,kt),Wt},be=(ct,kt)=>{const Wt=B.getElementRule(ct.nodeName.toLowerCase()),Jt=Wt==null?void 0:Wt.parentsRequired;return Jt&&Jt.length?kt&&ce(Jt,kt)?kt:Jt[0]:!1},Re=(ct,kt,Wt)=>{let Jt;const ln=kt[0],kn=xN(ln)?ln.name:void 0,Vn=be(ct,kn);if(Vn)kn===Vn?(Jt=ln,kt=kt.slice(1)):Jt=Vn;else if(ln)Jt=ln,kt=kt.slice(1);else if(!Wt)return ct;const Rn=Jt?re(Jt):m0.create("div");Rn.appendChild(ct),Wt&&mo.each(Wt,pr=>{const Tr=re(pr);Rn.insertBefore(Tr,ct)});const qn=xN(Jt)?Jt.siblings:void 0;return Re(Rn,kt,qn)},Ke=m0.create("div");if(r.length>0){const ct=r[0],kt=re(ct),Wt=xN(ct)?ct.siblings:void 0;Ke.appendChild(Re(kt,r.slice(1),Wt))}return Ke},SG=r=>{r=mo.trim(r);let g="div";const B={name:g,classes:[],attrs:{},selector:r};return r!=="*"&&(g=r.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(H,re,be,Re,Ke)=>{switch(re){case"#":B.attrs.id=be;break;case".":B.classes.push(be);break;case":":mo.inArray("checked disabled enabled read-only required".split(" "),be)!==-1&&(B.attrs[be]=be);break}if(Re==="["){const ct=Ke.match(/([\w\-]+)(?:\=\"([^\"]+))?/);ct&&(B.attrs[ct[1]]=ct[2])}return""})),B.name=g||"div",B},By=r=>v(r)?(r=r.split(/\s*,\s*/)[0],r=r.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),mo.map(r.split(/(?:>|\s+(?![^\[\]]+\]))/),g=>{const B=mo.map(g.split(/(?:~\+|~|\+)/),SG),H=B.pop();return B.length&&(H.siblings=B),H}).reverse()):[],lfe=(r,g)=>{let B="",H=tw(r);if(H==="")return"";const re=ln=>v(ln)?ln.replace(/%(\w+)/g,""):"",be=(ln,kn)=>m0.getStyle(kn??r.getBody(),ln,!0);if(v(g)){const ln=r.formatter.get(g);if(!ln)return"";g=ln[0]}if("preview"in g){const ln=g.preview;if(ln===!1)return"";H=ln||H}let Re=g.block||g.inline||"span",Ke;const ct=By(g.selector);ct.length>0?(ct[0].name||(ct[0].name=Re),Re=g.selector,Ke=_N(ct,r)):Ke=_N([Re],r);const kt=m0.select(Re,Ke)[0]||Ke.firstChild;MP(g.styles,(ln,kn)=>{const Vn=re(ln);Vn&&m0.setStyle(kt,kn,Vn)}),MP(g.attributes,(ln,kn)=>{const Vn=re(ln);Vn&&m0.setAttrib(kt,kn,Vn)}),MP(g.classes,ln=>{const kn=re(ln);m0.hasClass(kt,kn)||m0.addClass(kt,kn)}),r.dispatch("PreviewFormats"),m0.setStyles(Ke,{position:"absolute",left:-65535}),r.getBody().appendChild(Ke);const Wt=be("fontSize"),Jt=/px$/.test(Wt)?parseInt(Wt,10):0;return MP(H.split(" "),ln=>{let kn=be(ln,kt);if(!(ln==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(kn)&&(kn=be(ln),Am(kn).toLowerCase()==="#ffffff"))&&!(ln==="color"&&Am(kn).toLowerCase()==="#000000")){if(ln==="font-size"&&/em|%$/.test(kn)){if(Jt===0)return;kn=parseFloat(kn)/(/%$/.test(kn)?100:1)*Jt+"px"}ln==="border"&&kn&&(B+="padding:0 2px;"),B+=ln+":"+kn+";"}}),r.dispatch("AfterPreviewFormats"),m0.remove(Ke),B},cfe=r=>{r.addShortcut("meta+b","","Bold"),r.addShortcut("meta+i","","Italic"),r.addShortcut("meta+u","","Underline");for(let g=1;g<=6;g++)r.addShortcut("access+"+g,"",["FormatBlock",!1,"h"+g]);r.addShortcut("access+7","",["FormatBlock",!1,"p"]),r.addShortcut("access+8","",["FormatBlock",!1,"div"]),r.addShortcut("access+9","",["FormatBlock",!1,"address"])},wN=r=>{const g=AP(r),B=mr({});return cfe(r),Az(r),Iy(r)||Qz(B,r),{get:g.get,has:g.has,register:g.register,unregister:g.unregister,apply:(H,re,be)=>{GF(r,H,re,be)},remove:(H,re,be,Re)=>{kX(r,H,re,be,Re)},toggle:(H,re,be)=>{TX(r,H,re,be)},match:(H,re,be,Re)=>AC(r,H,re,be,Re),closest:H=>XF(r,H),matchAll:(H,re)=>wX(r,H,re),matchNode:(H,re,be,Re)=>OX(r,H,re,be,Re),canApply:H=>SX(r,H),formatChanged:(H,re,be,Re)=>CX(r,B,H,re,be,Re),getCssText:U(lfe,r)}},u4=r=>{switch(r.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},kG=(r,g,B)=>{const H=mr(!1),re=ct=>{n4(g,!1,B),g.add({},ct)};r.on("init",()=>{g.add()}),r.on("BeforeExecCommand",ct=>{const kt=ct.command;u4(kt)||(zF(g,B),g.beforeChange())}),r.on("ExecCommand",ct=>{const kt=ct.command;u4(kt)||re(ct)}),r.on("ObjectResizeStart cut",()=>{g.beforeChange()}),r.on("SaveContent ObjectResized blur",re),r.on("dragend",re),r.on("keyup",ct=>{const kt=ct.keyCode;if(ct.isDefaultPrevented())return;const Wt=fr.os.isMacOS()&&ct.key==="Meta";(kt>=33&&kt<=36||kt>=37&&kt<=40||kt===45||ct.ctrlKey||Wt)&&(re(),r.nodeChanged()),(kt===46||kt===8)&&r.nodeChanged(),H.get()&&g.typing&&!cP(SC(r),g.data[0])&&(r.isDirty()||r.setDirty(!0),r.dispatch("TypingUndo"),H.set(!1),r.nodeChanged())}),r.on("keydown",ct=>{const kt=ct.keyCode;if(ct.isDefaultPrevented())return;if(kt>=33&&kt<=36||kt>=37&&kt<=40||kt===45){g.typing&&re(ct);return}const Wt=ct.ctrlKey&&!ct.altKey||ct.metaKey;if((kt<16||kt>20)&&kt!==224&&kt!==91&&!g.typing&&!Wt){g.beforeChange(),n4(g,!0,B),g.add({},ct),H.set(!0);return}(fr.os.isMacOS()?ct.metaKey:ct.ctrlKey&&!ct.altKey)&&g.beforeChange()}),r.on("mousedown",ct=>{g.typing&&re(ct)});const be=ct=>ct.inputType==="insertReplacementText",Re=ct=>ct.inputType==="insertText"&&ct.data===null,Ke=ct=>ct.inputType==="insertFromPaste"||ct.inputType==="insertFromDrop";r.on("input",ct=>{ct.inputType&&(be(ct)||Re(ct)||Ke(ct))&&re(ct)}),r.on("AddUndo Undo Redo ClearUndos",ct=>{ct.isDefaultPrevented()||r.nodeChanged()})},ON=r=>{r.addShortcut("meta+z","","Undo"),r.addShortcut("meta+y,meta+shift+z","","Redo")},EP=r=>{const g=Ys(),B=mr(0),H=mr(0),re={data:[],typing:!1,beforeChange:()=>{QF(r,B,g)},add:(be,Re)=>dP(r,re,H,B,g,be,Re),dispatchChange:()=>{r.setDirty(!0);const be=SC(r);be.bookmark=Ja(r.selection),r.dispatch("change",{level:be,lastLevel:Ze(re.data,H.get()).getOrUndefined()})},undo:()=>HF(r,re,B,H),redo:()=>ZF(r,H,re.data),clear:()=>{hP(r,re,H)},reset:()=>{qF(r,re)},hasUndo:()=>WF(r,re,H),hasRedo:()=>YF(r,re,H),transact:be=>xX(r,re,B,be),ignore:be=>{pP(r,B,be)},extra:(be,Re)=>{_X(r,re,H,be,Re)}};return Iy(r)||kG(r,re,B),ON(r),re},SN=[9,27,Fo.HOME,Fo.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Fo.DOWN,Fo.UP,Fo.LEFT,Fo.RIGHT].concat(fr.browser.isFirefox()?[224]:[]),kN="data-mce-placeholder",TN=r=>r.type==="keydown"||r.type==="keyup",rx=r=>{const g=r.keyCode;return g===Fo.BACKSPACE||g===Fo.DELETE},TG=r=>{if(TN(r)){const g=r.keyCode;return!rx(r)&&(Fo.metaKeyPressed(r)||r.altKey||g>=112&&g<=123||ce(SN,g))}else return!1},CG=r=>TN(r)&&!(rx(r)||r.type==="keyup"&&r.keyCode===229),AG=(r,g,B)=>{if(r.isEmpty(g,void 0,{skipBogus:!1,includeZwsp:!0})){const H=g.firstElementChild;return H?r.getStyle(g.firstElementChild,"padding-left")||r.getStyle(g.firstElementChild,"padding-right")?!1:B===H.nodeName.toLowerCase():!0}else return!1},MG=r=>{var g;const B=r.dom,H=dc(r),re=(g=dy(r))!==null&&g!==void 0?g:"",be=(Re,Ke)=>{if(TG(Re))return;const ct=r.getBody(),kt=CG(Re)?!1:AG(B,ct,H);(B.getAttrib(ct,kN)!==""!==kt||Ke)&&(B.setAttrib(ct,kN,kt?re:null),P3(r,kt),r.on(kt?"keydown":"keyup",be),r.off(kt?"keyup":"keydown",be))};Kn(re)&&r.on("init",Re=>{be(Re,!0),r.on("change SetContent ExecCommand",be),r.on("paste",Ke=>Tg.setEditorTimeout(r,()=>be(Ke)))})},EG=(r,g)=>({block:r,position:g}),PG=(r,g)=>({from:r,to:g}),PP=(r,g)=>{const B=sr.fromDom(r),H=sr.fromDom(g.container());return A6(B,H).map(re=>EG(re,g))},RG=r=>!(Qu(r.to.block,r.from.block)||Qu(r.from.block,r.to.block)),LG=r=>!Fa(r.from.block,r.to.block),rk=(r,g)=>Ya(g,re=>N1(re)||Sn(re.dom),re=>Fa(re,r)).filter(mc).getOr(r),IG=(r,g)=>{const B=sr.fromDom(r);return Fa(rk(B,g.from.block),rk(B,g.to.block))},DG=r=>rr(r.from.block.dom)===!1&&rr(r.to.block.dom)===!1,ufe=r=>{const g=B=>Q_(B)||Rl(B.dom)||nh(B);return g(r.from.block)&&g(r.to.block)},ok=(r,g,B,H)=>On(H.position.getNode())&&!Pi(r,H.block)?$b(!1,H.block.dom).bind(re=>re.isEqual(H.position)?Yp(B,g,re).bind(be=>PP(g,be)):Y.some(H)).getOr(H):H,BG=(r,g,B,H)=>{const re=PP(g,qr.fromRangeStart(H)),be=re.bind(Re=>Yp(B,g,Re.position).bind(Ke=>PP(g,Ke).map(ct=>ok(r,g,B,ct))));return us(re,be,PG).filter(Re=>LG(Re)&&IG(g,Re)&&DG(Re)&&ufe(Re)&&RG(Re))},RP=(r,g,B,H)=>H.collapsed?BG(r,g,B,H):Y.none(),zG=(r,g)=>{const B=Oc(r);return He(B,H=>g.isBlock(la(H))).fold($(B),H=>B.slice(0,H))},CN=(r,g)=>{const B=zG(r,g);return ye(B,ja),B},AN=(r,g,B)=>{const H=Xb(B,g);return De(H.reverse(),re=>Pi(r,re)).each(ja)},FG=(r,g)=>Te(vh(g),B=>!Pi(r,B)).length===0,Xw=(r,g,B,H,re)=>{if(Pi(H,B))return rh(B),lh(B.dom);FG(H,re)&&Pi(H,g)&&Fc(re,sr.fromTag("br"));const be=mp(B.dom,qr.before(re.dom));return ye(CN(g,H),Re=>{Fc(re,Re)}),AN(H,r,g),be},Gw=(r,g)=>r.isInline(la(g)),BC=(r,g,B,H)=>{if(Pi(H,B)){if(Pi(H,g)){const Re=Pe((Ke=>{const ct=(kt,Wt)=>Uf(kt).fold(()=>Wt,Jt=>Gw(H,Jt)?ct(Jt,Wt.concat(Th(Jt))):Wt);return ct(Ke,[])})(B),(Ke,ct)=>(Sc(Ke,ct),ct),$1());vu(g),Ps(g,Re)}return ja(B),lh(g.dom)}const re=Xp(B.dom);return ye(CN(g,H),be=>{Ps(B,be)}),AN(H,r,g),re},zC=(r,g)=>{const B=Xb(g,r);return Y.from(B[B.length-1])},Kw=(r,g)=>Qu(g,r)?zC(g,r):Y.none(),D2=(r,g)=>{$b(r,g.dom).bind(B=>Y.from(B.getNode())).map(sr.fromDom).filter(N0).each(ja)},ik=(r,g,B,H)=>(D2(!0,g),D2(!1,B),Kw(g,B).fold(U(BC,r,g,B,H),U(Xw,r,g,B,H))),ak=(r,g,B,H,re)=>g?ik(r,H,B,re):ik(r,B,H,re),FC=(r,g)=>{const B=sr.fromDom(r.getBody());return RP(r.schema,B.dom,g,r.selection.getRng()).map(re=>()=>{ak(B,g,re.from.block,re.to.block,r.schema).each(be=>{r.selection.setRng(be.toRange())})})},LP=(r,g,B)=>{const H=g.getRng();return us(A6(r,sr.fromDom(H.startContainer)),A6(r,sr.fromDom(H.endContainer)),(re,be)=>Fa(re,be)?Y.none():Y.some(()=>{H.deleteContents(),ak(r,!0,re,be,B).each(Re=>{g.setRng(Re.toRange())})})).getOr(Y.none())},NC=(r,g)=>{const B=sr.fromDom(g),H=U(Fa,r);return ms(B,N1,H).isSome()},MN=(r,g)=>NC(r,g.startContainer)||NC(r,g.endContainer),EN=(r,g)=>{const B=mp(r.dom,qr.fromRangeStart(g)).isNone(),H=sh(r.dom,qr.fromRangeEnd(g)).isNone();return!MN(r,g)&&B&&H},f4=r=>Y.some(()=>{r.setContent(""),r.selection.setCursorLocation()}),PN=r=>{const g=sr.fromDom(r.getBody()),B=r.selection.getRng();return EN(g,B)?f4(r):LP(g,r.selection,r.schema)},$C=(r,g)=>r.selection.isCollapsed()?Y.none():PN(r),zy=(r,g,B,H,re)=>Y.from(g._selectionOverrides.showCaret(r,B,H,re)),VC=r=>{const g=r.ownerDocument.createRange();return g.selectNode(r),g},d4=(r,g)=>r.dispatch("BeforeObjectSelected",{target:g}).isDefaultPrevented()?Y.none():Y.some(VC(g)),RN=(r,g,B)=>{const H=$d(1,r.getBody(),g),re=qr.fromRangeStart(H),be=re.getNode();if(l3(be))return zy(1,r,be,!re.isAtEnd(),!1);const Re=re.getNode(!0);if(l3(Re))return zy(1,r,Re,!1,!1);const Ke=Kb(r.dom.getRoot(),re.getNode());return l3(Ke)?zy(1,r,Ke,!1,B):Y.none()},UC=(r,g,B)=>g.collapsed?RN(r,g,B).getOr(g):g,LN=r=>Ey(r)||Li(r),ox=r=>k2(r)||U3(r),B2=(r,g)=>{Nt(g)&&g.data.length===0&&r.remove(g)},g0=(r,g,B,H,re,be)=>{zy(H,r,be.getNode(!re),re,!0).each(Re=>{if(g.collapsed){const Ke=g.cloneRange();re?Ke.setEnd(Re.startContainer,Re.startOffset):Ke.setStart(Re.endContainer,Re.endOffset),Ke.deleteContents()}else g.deleteContents();r.selection.setRng(Re)}),B2(r.dom,B)},NG=(r,g)=>{const B=r.selection.getRng();if(!Nt(B.commonAncestorContainer))return Y.none();const H=g?Mf.Forwards:Mf.Backwards,re=Sd(r.getBody()),be=U(DS,g?re.next:re.prev),Re=g?LN:ox,Ke=Fb(H,r.getBody(),B),ct=be(Ke),kt=ct&&Cg(g,ct);if(!kt||!h3(Ke,kt))return Y.none();if(Re(kt))return Y.some(()=>g0(r,B,Ke.getNode(),H,g,kt));const Wt=be(kt);return Wt&&Re(Wt)&&h3(kt,Wt)?Y.some(()=>g0(r,B,Ke.getNode(),H,g,Wt)):Y.none()},IP=(r,g)=>NG(r,g),DP=(r,g)=>{const B=r.getBody();return g?lh(B).filter(Ey):Xp(B).filter(k2)},BP=r=>{const g=r.selection.getRng();return!g.collapsed&&(DP(r,!0).exists(B=>B.isEqual(qr.fromRangeStart(g)))||DP(r,!1).exists(B=>B.isEqual(qr.fromRangeEnd(g))))},$G=r=>E(r)&&(N1(sr.fromDom(r))||nh(sr.fromDom(r))),Mg=aa.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),VG=(r,g)=>{const B=g.getNode(!r),H=r?"after":"before";return ne(B)&&B.getAttribute("data-mce-caret")===H},UG=(r,g,B,H,re)=>{const be=Re=>re.isInline(Re.nodeName.toLowerCase())&&!Wp(B,H,r);return f3(!g,B).fold(()=>f3(g,H).fold(oe,be),be)},IN=(r,g,B,H,re)=>{const be=re.getNode(!B);return A6(sr.fromDom(g),sr.fromDom(H.getNode())).map(Re=>Pi(r,Re)?Mg.remove(Re.dom):Mg.moveToElement(be)).orThunk(()=>Y.some(Mg.moveToElement(be)))},DN=(r,g,B,H)=>Yp(g,r,B).bind(re=>$G(re.getNode())||UG(r,g,B,re,H)?Y.none():g&&rr(re.getNode())||!g&&rr(re.getNode(!0))?IN(H,r,g,B,re):g&&k2(B)||!g&&Ey(B)?Y.some(Mg.moveToPosition(re)):Y.none()),jG=(r,g)=>T(g)?Y.none():r&&rr(g.nextSibling)?Y.some(Mg.moveToElement(g.nextSibling)):!r&&rr(g.previousSibling)?Y.some(Mg.moveToElement(g.previousSibling)):Y.none(),QG=(r,g,B)=>B.fold(H=>Y.some(Mg.remove(H)),H=>Y.some(Mg.moveToElement(H)),H=>Wp(g,H,r)?Y.none():Y.some(Mg.moveToPosition(H))),zP=(r,g,B,H)=>VG(g,B)?jG(g,B.getNode(!g)).orThunk(()=>DN(r,g,B,H)):DN(r,g,B,H).bind(re=>QG(r,B,re)),FP=(r,g,B,H)=>{const re=$d(g?1:-1,r,B),be=qr.fromRangeStart(re),Re=sr.fromDom(r);return!g&&k2(be)?Y.some(Mg.remove(be.getNode(!0))):g&&Ey(be)?Y.some(Mg.remove(be.getNode())):!g&&Ey(be)&&UE(Re,be,H)?MB(Re,be,H).map(Ke=>Mg.remove(Ke.getNode())):g&&k2(be)&&AB(Re,be,H)?wW(Re,be,H).map(Ke=>Mg.remove(Ke.getNode())):zP(r,g,be,H)},BN=(r,g)=>B=>(r._selectionOverrides.hideFakeCaret(),Ew(r,g,sr.fromDom(B)),!0),HG=(r,g)=>B=>{const H=g?qr.before(B):qr.after(B);return r.selection.setRng(H.toRange()),!0},ZG=r=>g=>(r.selection.setRng(g.toRange()),!0),NP=(r,g)=>Y.from(Kb(r.getBody(),g)),zN=(r,g)=>{const B=r.selection.getNode();return NP(r,B).filter(rr).fold(()=>FP(r.getBody(),g,r.selection.getRng(),r.schema).map(H=>()=>H.fold(BN(r,g),HG(r,g),ZG(r))),()=>Y.some(k))},$P=r=>{ye(Zl(r,".mce-offscreen-selection"),ja)},FN=(r,g)=>{const B=r.selection.getNode();return rr(B)&&!Dr(B)?NP(r,B.parentNode).filter(rr).fold(()=>Y.some(()=>{$P(sr.fromDom(r.getBody())),Ew(r,g,sr.fromDom(r.selection.getNode())),hc(r)}),()=>Y.some(k)):BP(r)?Y.some(()=>{KB(r,r.selection.getRng(),sr.fromDom(r.getBody()))}):Y.none()},VP=r=>{const g=r.dom,B=r.selection,H=Kb(r.getBody(),B.getNode());if(Sn(H)&&g.isBlock(H)&&g.isEmpty(H)){const re=g.create("br",{"data-mce-bogus":"1"});g.setHTML(H,""),H.appendChild(re),B.setRng(qr.before(re).toRange())}return!0},sk=(r,g)=>r.selection.isCollapsed()?zN(r,g):FN(r,g),NN=r=>r.hasOwnProperty("text"),$N=r=>r.hasOwnProperty("marker"),wv=(r,g)=>{const B=(be,Re)=>{if(Nt(be))return{text:be,offset:Re};{const Ke=g(),ct=be.childNodes;return Re{var g,B;const{start:H,end:re}=r,be=new window.Range;return NN(H)?be.setStart(H.text,H.offset):$N(H)&&(H.before?be.setStartBefore(H.marker):be.setStartAfter(H.marker),(g=H.marker.parentNode)===null||g===void 0||g.removeChild(H.marker)),NN(re)?be.setEnd(re.text,re.offset):$N(re)&&(re.before?be.setEndBefore(re.marker):be.setEndAfter(re.marker),(B=re.marker.parentNode)===null||B===void 0||B.removeChild(re.marker)),be},h4=(r,g)=>{var B;const H=r.dom,re=H.getParent(r.selection.getStart(),H.isBlock),be=H.getParent(r.selection.getEnd(),H.isBlock),Re=r.getBody();if(((B=re==null?void 0:re.nodeName)===null||B===void 0?void 0:B.toLowerCase())==="div"&&re&&be&&re===Re.firstChild&&be===Re.lastChild&&!H.isEmpty(Re)){const ct=re.cloneNode(!1),kt=()=>{if(g?GB(r):C6(r),Re.firstChild!==re){const Wt=wv(r.selection.getRng(),()=>document.createElement("span"));Array.from(Re.childNodes).forEach(Jt=>ct.appendChild(Jt)),Re.appendChild(ct),r.selection.setRng(v0(Wt))}};return Y.some(kt)}return Y.none()},VN=(r,g)=>{const B=qr.fromRangeStart(r.selection.getRng());return Yp(g,r.getBody(),B).filter(H=>g?vW(H):yW(H)).bind(H=>u3(g?0:-1,H)).map(H=>()=>r.selection.select(H))},p4=(r,g)=>r.selection.isCollapsed()?VN(r,g):Y.none(),Jw=Nt,UP=r=>Jw(r)&&r.data[0]===nc,jP=r=>Jw(r)&&r.data[r.data.length-1]===nc,QP=r=>{var g;return((g=r.ownerDocument)!==null&&g!==void 0?g:document).createTextNode(nc)},UN=r=>{var g;if(Jw(r.previousSibling))return jP(r.previousSibling)||r.previousSibling.appendData(nc),r.previousSibling;if(Jw(r))return UP(r)||r.insertData(0,nc),r;{const B=QP(r);return(g=r.parentNode)===null||g===void 0||g.insertBefore(B,r),B}},jN=r=>{var g,B;if(Jw(r.nextSibling))return UP(r.nextSibling)||r.nextSibling.insertData(0,nc),r.nextSibling;if(Jw(r))return jP(r)||r.appendData(nc),r;{const H=QP(r);return r.nextSibling?(g=r.parentNode)===null||g===void 0||g.insertBefore(H,r.nextSibling):(B=r.parentNode)===null||B===void 0||B.appendChild(H),H}},eO=(r,g)=>r?UN(g):jN(g),HP=U(eO,!0),qG=U(eO,!1),QN=(r,g)=>Nt(r.container())?eO(g,r.container()):eO(g,r.getNode()),HN=(r,g)=>{const B=g.get();return B&&r.container()===B&&oh(B)},ZP=(r,g)=>g.fold(B=>{by(r.get());const H=HP(B);return r.set(H),Y.some(qr(H,H.length-1))},B=>lh(B).map(H=>{if(HN(H,r)){const re=r.get();return qr(re,1)}else{by(r.get());const re=QN(H,!0);return r.set(re),qr(re,1)}}),B=>Xp(B).map(H=>{if(HN(H,r)){const re=r.get();return qr(re,re.length-1)}else{by(r.get());const re=QN(H,!1);return r.set(re),qr(re,re.length-1)}}),B=>{by(r.get());const H=qG(B);return r.set(H),Y.some(qr(H,1))}),qP=(r,g)=>{for(let B=0;B{const B=c0(g,r);return B||r},WP=(r,g,B)=>{const H=Xh(B),re=ZN(g,H.container());return Gb(r,re,H).fold(()=>sh(re,H).bind(U(Gb,r,re)).map(be=>bp.before(be)),Y.none)},WG=(r,g)=>Vb(r,g)===null,qN=(r,g,B)=>Gb(r,g,B).filter(U(WG,g)),YG=(r,g,B)=>{const H=YB(B);return qN(r,g,H).bind(re=>mp(re,H).isNone()?Y.some(bp.start(re)):Y.none())},XG=(r,g,B)=>{const H=Xh(B);return qN(r,g,H).bind(re=>sh(re,H).isNone()?Y.some(bp.end(re)):Y.none())},GG=(r,g,B)=>{const H=YB(B),re=ZN(g,H.container());return Gb(r,re,H).fold(()=>mp(re,H).bind(U(Gb,r,re)).map(be=>bp.after(be)),Y.none)},WN=r=>!ZB(m4(r)),Fy=(r,g,B)=>qP([WP,YG,XG,GG],[r,g,B]).filter(WN),m4=r=>r.fold(Q,Q,Q,Q),jC=r=>r.fold($("before"),$("start"),$("end"),$("after")),QC=r=>r.fold(bp.before,bp.before,bp.after,bp.after),YP=r=>r.fold(bp.start,bp.start,bp.end,bp.end),KG=(r,g)=>jC(r)===jC(g)&&m4(r)===m4(g),JG=(r,g,B,H,re,be)=>us(Gb(g,B,H),Gb(g,B,re),(Re,Ke)=>Re!==Ke&&qB(B,Re,Ke)?bp.after(r?Re:Ke):be).getOr(be),YN=(r,g)=>r.fold(q,B=>!KG(B,g)),eK=(r,g,B,H,re)=>{const be=Cg(r,re);return Yp(r,B,be).map(U(Cg,r)).fold(()=>H.map(QC),ct=>Fy(g,B,ct).map(U(JG,r,g,B,be,ct)).filter(U(YN,H))).filter(WN)},tK=(r,g)=>r?g.fold(I(Y.some,bp.start),Y.none,I(Y.some,bp.after),Y.none):g.fold(Y.none,I(Y.some,bp.before),Y.none,I(Y.some,bp.end)),XP=(r,g,B,H)=>{const re=Cg(r,H),be=Fy(g,B,re);return Fy(g,B,re).bind(U(tK,r)).orThunk(()=>eK(r,g,B,be,H))},nK=r=>C(r.selection.getSel().modify),XN=(r,g,B)=>{const H=r?1:-1;return g.setRng(qr(B.container(),B.offset()+H).toRange()),g.getSel().modify("move",r?"forward":"backward","word"),!0},rK=(r,g)=>{const B=g.selection.getRng(),H=r?qr.fromRangeEnd(B):qr.fromRangeStart(B);return nK(g)?r&&V0(H)?XN(!0,g.selection,H):!r&&Up(H)?XN(!1,g.selection,H):!1:!1};var Ny;(function(r){r[r.Br=0]="Br",r[r.Block=1]="Block",r[r.Wrap=2]="Wrap",r[r.Eol=3]="Eol"})(Ny||(Ny={}));const HC=(r,g)=>r===Mf.Backwards?ke(g):g,oK=(r,g,B)=>r===Mf.Forwards?g.next(B):g.prev(B),iK=(r,g,B,H)=>On(H.getNode(g===Mf.Forwards))?Ny.Br:Wp(B,H)===!1?Ny.Block:Ny.Wrap,lk=(r,g,B,H)=>{const re=Sd(B);let be=H;const Re=[];for(;be;){const Ke=oK(g,re,be);if(!Ke)break;if(On(Ke.getNode(!1)))return g===Mf.Forwards?{positions:HC(g,Re).concat([Ke]),breakType:Ny.Br,breakAt:Y.some(Ke)}:{positions:HC(g,Re),breakType:Ny.Br,breakAt:Y.some(Ke)};if(!Ke.isVisible()){be=Ke;continue}if(r(be,Ke)){const ct=iK(B,g,be,Ke);return{positions:HC(g,Re),breakType:ct,breakAt:Y.some(Ke)}}Re.push(Ke),be=Ke}return{positions:HC(g,Re),breakType:Ny.Eol,breakAt:Y.none()}},ck=(r,g,B,H)=>g(B,H).breakAt.map(re=>{const be=g(B,re).positions;return r===Mf.Backwards?be.concat(re):[re].concat(be)}).getOr([]),GP=(r,g)=>Ie(r,(B,H)=>B.fold(()=>Y.some(H),re=>us(Xe(re.getClientRects()),Xe(H.getClientRects()),(be,Re)=>{const Ke=Math.abs(g-be.left);return Math.abs(g-Re.left)<=Ke?H:re}).or(B)),Y.none()),ZC=(r,g)=>Xe(g.getClientRects()).bind(B=>GP(r,B.left)),z2=U(lk,qr.isAbove,-1),uk=U(lk,qr.isBelow,1),GN=U(ck,-1,z2),KN=U(ck,1,uk),JN=(r,g)=>z2(r,g).breakAt.isNone(),e$=(r,g)=>uk(r,g).breakAt.isNone(),aK=r=>lh(r).map(g=>[g].concat(uk(r,g).positions)).getOr([]),sK=r=>Xp(r).map(g=>z2(r,g).positions.concat(g)).getOr([]),lK=(r,g)=>ZC(GN(r,g),g),cK=(r,g)=>ZC(KN(r,g),g),uK=rr,t$=(r,g)=>Math.abs(r.left-g),fK=(r,g)=>Math.abs(r.right-g),l1=r=>nn(r,"node"),qC=(r,g)=>it(r,(B,H)=>{const re=Math.min(t$(B,g),fK(B,g)),be=Math.min(t$(H,g),fK(H,g));return be===re&&l1(H)&&uK(H.node)||be{const g=B=>ve(B,H=>{const re=i0(H);return re.node=r,re});if(ne(r))return g(r.getClientRects());if(Nt(r)){const B=r.ownerDocument.createRange();return B.setStart(r,0),B.setEnd(r,r.data.length),g(B.getClientRects())}else return[]},KP=r=>$e(r,n$);var fk;(function(r){r[r.Up=-1]="Up",r[r.Down=1]="Down"})(fk||(fk={}));const r$=(r,g,B,H)=>{let re=H;for(;re=u2(re,r,Zx,g);)if(B(re))return},o$=(r,g,B,H,re,be)=>{let Re=0;const Ke=[],ct=Jt=>{let ln=KP([Jt]);r===-1&&(ln=ln.reverse());for(let kn=0;kn0&&g(Vn,Lt(Ke))&&Re++,Vn.line=Re,re(Vn))return!0;Ke.push(Vn)}}return!1},kt=Lt(be.getClientRects());if(!kt)return Ke;const Wt=be.getNode();return Wt&&(ct(Wt),r$(r,H,ct,Wt)),Ke},i$=(r,g)=>g.line>r,dK=(r,g)=>g.line===r,hK=U(o$,fk.Up,j1,Ux),pK=U(o$,fk.Down,Ux,j1),tO=r=>Lt(r.getClientRects()),a$=(r,g,B,H)=>{const re=Sd(g);let be,Re,Ke,ct;const kt=[];let Wt=0;r===1?(be=re.next,Re=Ux,Ke=j1,ct=qr.after(H)):(be=re.prev,Re=j1,Ke=Ux,ct=qr.before(H));const Jt=tO(ct);do{if(!ct.isVisible())continue;const ln=tO(ct);if(Ke(ln,Jt))continue;kt.length>0&&Re(ln,Lt(kt))&&Wt++;const kn=i0(ln);if(kn.position=ct,kn.line=Wt,B(kn))return kt;kt.push(kn)}while(ct=be(ct));return kt},JP=r=>g=>i$(r,g),WC=r=>g=>dK(r,g),Ov=(r,g)=>{r.selection.setRng(g),g5(r,r.selection.getRng())},e9=(r,g,B)=>Y.some(UC(r,g,B)),s$=(r,g,B,H,re,be)=>{const Re=g===Mf.Forwards,Ke=Sd(r.getBody()),ct=U(DS,Re?Ke.next:Ke.prev),kt=Re?H:re;if(!B.collapsed){const Vn=Pm(B);if(be(Vn))return zy(g,r,Vn,g===Mf.Backwards,!1);if(BP(r)){const Rn=B.cloneRange();return Rn.collapse(g===Mf.Backwards),Y.from(Rn)}}const Wt=Fb(g,r.getBody(),B);if(kt(Wt))return d4(r,Wt.getNode(!Re));let Jt=ct(Wt);const ln=bd(B);if(Jt)Jt=Cg(Re,Jt);else return ln?Y.some(B):Y.none();if(kt(Jt))return zy(g,r,Jt.getNode(!Re),Re,!1);const kn=ct(Jt);return kn&&kt(kn)&&h3(Jt,kn)?zy(g,r,kn.getNode(!Re),Re,!1):ln?e9(r,Jt.toRange(),!1):Y.none()},l$=(r,g,B,H,re,be)=>{const Re=Fb(g,r.getBody(),B),Ke=Lt(Re.getClientRects()),ct=g===fk.Down,kt=r.getBody();if(!Ke)return Y.none();if(BP(r)){const qn=ct?qr.fromRangeEnd(B):qr.fromRangeStart(B);return(ct?cK:lK)(kt,qn).orThunk(()=>Y.from(qn)).map(Tr=>Tr.toRange())}const Jt=(ct?pK:hK)(kt,JP(1),Re),ln=Te(Jt,WC(1)),kn=Ke.left,Vn=qC(ln,kn);if(Vn&&be(Vn.node)){const qn=Math.abs(kn-Vn.left),pr=Math.abs(kn-Vn.right);return zy(g,r,Vn.node,qnUC(r,qn.toRange(),!1)):Y.none()},c$=(r,g)=>{const B=r.selection.getRng(),H=g?qr.fromRangeEnd(B):qr.fromRangeStart(B),re=UM(H.container(),r.getBody());if(g){const be=uk(re,H);return tt(be.positions)}else{const be=z2(re,H);return Xe(be.positions)}},mK=(r,g,B)=>c$(r,g).filter(B).exists(H=>(r.selection.setRng(H.toRange()),!0)),t9=(r,g)=>{const B=r.dom.createRng();B.setStart(g.container(),g.offset()),B.setEnd(g.container(),g.offset()),r.selection.setRng(B)},y0=(r,g)=>{r?g.setAttribute("data-mce-selected","inline-boundary"):g.removeAttribute("data-mce-selected")},u$=(r,g,B)=>ZP(g,B).map(H=>(t9(r,H),B)),gK=(r,g,B)=>{const H=qr.fromRangeStart(r);if(r.collapsed)return H;{const re=qr.fromRangeEnd(r);return B?mp(g,re).getOr(re):sh(g,H).getOr(H)}},nO=(r,g,B)=>{const H=r.getBody(),re=gK(r.selection.getRng(),H,B),be=U(T2,r);return XP(B,be,H,re).bind(Ke=>u$(r,g,Ke))},f$=(r,g,B)=>{const H=ve(Zl(sr.fromDom(g.getRoot()),'*[data-mce-selected="inline-boundary"]'),Re=>Re.dom),re=Te(H,r),be=Te(B,r);ye(Le(re,be),U(y0,!1)),ye(Le(be,re),U(y0,!0))},vK=(r,g)=>{const B=g.get();if(r.selection.isCollapsed()&&!r.composing&&B){const H=qr.fromRangeStart(r.selection.getRng());qr.isTextPosition(H)&&!WB(H)&&(t9(r,FM(B,H)),g.set(null))}},YC=(r,g,B,H)=>{if(g.selection.isCollapsed()){const re=Te(H,r);ye(re,be=>{const Re=qr.fromRangeStart(g.selection.getRng());Fy(r,g.getBody(),Re).bind(Ke=>u$(g,B,Ke))})}},d$=(r,g,B)=>Z0(r)?nO(r,g,B).isSome():!1,h$=(r,g,B)=>Z0(g)?rK(r,g):!1,yK=r=>{const g=mr(null),B=U(T2,r);return r.on("NodeChange",H=>{Z0(r)&&(f$(B,r.dom,H.parents),vK(r,g),YC(B,r,g,H.parents))}),g},bK=U(h$,!0),p$=U(h$,!1),XC=(r,g,B)=>{if(Z0(r)){const H=c$(r,g).getOrThunk(()=>{const re=r.selection.getRng();return g?qr.fromRangeEnd(re):qr.fromRangeStart(re)});return Fy(U(T2,r),r.getBody(),H).exists(re=>{const be=QC(re);return ZP(B,be).exists(Re=>(t9(r,Re),!0))})}else return!1},ix=(r,g)=>{const B=document.createRange();return B.setStart(r.container(),r.offset()),B.setEnd(g.container(),g.offset()),B},xK=r=>us(lh(r),Xp(r),(g,B)=>{const H=Cg(!0,g),re=Cg(!1,B);return sh(r,H).forall(be=>be.isEqual(re))}).getOr(!0),m$=(r,g)=>B=>ZP(g,B).map(H=>()=>t9(r,H)),g$=(r,g,B,H)=>{const re=r.getBody(),be=U(T2,r);r.undoManager.ignore(()=>{r.selection.setRng(ix(B,H)),C6(r),Fy(be,re,qr.fromRangeStart(r.selection.getRng())).map(YP).bind(m$(r,g)).each(K)}),r.nodeChanged()},_K=(r,g)=>{const B=c0(g,r);return B||r},wK=(r,g,B,H)=>{const re=_K(r.getBody(),H.container()),be=U(T2,r),Re=Fy(be,re,H);return Re.bind(ct=>B?ct.fold($(Y.some(YP(ct))),Y.none,$(Y.some(QC(ct))),Y.none):ct.fold(Y.none,$(Y.some(QC(ct))),Y.none,$(Y.some(YP(ct))))).map(m$(r,g)).getOrThunk(()=>{const ct=uv(B,re,H),kt=ct.bind(Wt=>Fy(be,re,Wt));return us(Re,kt,()=>Gb(be,re,H).bind(Wt=>xK(Wt)?Y.some(()=>{Ew(r,B,sr.fromDom(Wt))}):Y.none())).getOrThunk(()=>kt.bind(()=>ct.map(Wt=>()=>{B?g$(r,g,H,Wt):g$(r,g,Wt,H)})))})},dk=(r,g,B)=>{if(r.selection.isCollapsed()&&Z0(r)){const H=qr.fromRangeStart(r.selection.getRng());return wK(r,g,B,H)}return Y.none()},n9=r=>Hl(r)>1,GC=(r,g)=>{const B=sr.fromDom(r.getBody()),H=sr.fromDom(r.selection.getStart()),re=Xb(H,B);return He(re,g).fold($(re),be=>re.slice(0,be))},v$=r=>Hl(r)===1,y$=r=>GC(r,g=>r.schema.isBlock(la(g))||n9(g)),b$=r=>GC(r,g=>r.schema.isBlock(la(g))),x$=(r,g)=>{const B=U(T7,r);return $e(g,H=>B(H)?[H.dom]:[])},g4=r=>{const g=b$(r);return x$(r,g)},KC=(r,g,B,H)=>{const re=x$(g,H);if(re.length===0)Ew(g,r,B);else{const be=Ez(B.dom,re);g.selection.setRng(be.toRange())}},_$=(r,g)=>{const B=Te(y$(r),v$);return tt(B).bind(H=>{const re=qr.fromRangeStart(r.selection.getRng());return S5(g,re,H.dom)&&!gw(H)?Y.some(()=>KC(g,r,H,B)):Y.none()})},w$=(r,g)=>{const B=g.parentElement;return On(g)&&!x(B)&&r.dom.isEmpty(B)},O$=r=>gw(sr.fromDom(r)),r9=(r,g)=>{const B=r.selection.getStart(),H=w$(r,B)||O$(B)?Ez(B,g):k7(r.selection.getRng(),g);r.selection.setRng(H.toRange())},JC=(r,g)=>{const B=Le(g,g4(r));B.length>0&&r9(r,B)},e8=r=>Nt(r.startContainer),hk=r=>r.startOffset===0&&e8(r),OK=(r,g)=>{const B=g.startContainer.parentElement;return!x(B)&&T7(r,sr.fromDom(B))},S$=r=>{const g=r.startContainer.parentNode,B=r.endContainer.parentNode;return!x(g)&&!x(B)&&g.isEqualNode(B)},SK=r=>{const g=r.endContainer;return r.endOffset===(Nt(g)?g.length:g.childNodes.length)},kK=r=>S$(r)&&SK(r),k$=r=>!r.endContainer.isEqualNode(r.commonAncestorContainer),TK=r=>kK(r)||k$(r),T$=r=>{const g=r.selection.getRng();return hk(g)&&OK(r,g)&&TK(g)},ffe=r=>{if(T$(r)){const g=g4(r);return Y.some(()=>{C6(r),JC(r,g)})}else return Y.none()},o9=(r,g)=>r.selection.isCollapsed()?_$(r,g):ffe(r),CK=(r,g)=>Jl(r,B=>Gp(B.dom),B=>g.isBlock(la(B))),AK=r=>CK(sr.fromDom(r.selection.getStart()),r.schema),MK=r=>{const g=r.selection.getRng();return g.collapsed&&(e8(g)||r.dom.isEmpty(g.startContainer))&&!AK(r)},pk=r=>(MK(r)&&r9(r,[]),!0),i9=(r,g,B)=>E(B)?Y.some(()=>{r._selectionOverrides.hideFakeCaret(),Ew(r,g,sr.fromDom(B))}):Y.none(),EK=(r,g)=>{const B=g?Li:U3,H=g?Mf.Forwards:Mf.Backwards,re=Fb(H,r.getBody(),r.selection.getRng());return B(re)?i9(r,g,re.getNode(!g)):Y.from(Cg(g,re)).filter(be=>B(be)&&h3(re,be)).bind(be=>i9(r,g,be.getNode(!g)))},PK=(r,g)=>{const B=r.selection.getNode();return Zr(B)?i9(r,g,B):Y.none()},t8=(r,g)=>r.selection.isCollapsed()?EK(r,g):PK(r,g),RK=r=>Ya(r,g=>Sn(g.dom)||rr(g.dom)).exists(g=>Sn(g.dom)),ax=r=>zr(r??"").getOr(0),a9=(r,g)=>{const B=r||dp(g)?"margin":"padding",H=pi(g,"direction")==="rtl"?"-right":"-left";return B+H},s9=(r,g,B,H,re,be)=>{const Re=a9(B,sr.fromDom(be)),Ke=ax(r.getStyle(be,Re));if(g==="outdent"){const ct=Math.max(0,Ke-H);r.setStyle(be,Re,ct?ct+re:"")}else{const ct=Ke+H+re;r.setStyle(be,Re,ct)}},C$=(r,g)=>Oe(g,B=>{const H=a9(fy(r),B),re=Ru(B,H).map(ax).getOr(0);return r.dom.getContentEditable(B.dom)!=="false"&&re>0}),n8=r=>{const g=Eg(r);return!r.mode.isReadOnly()&&(g.length>1||C$(r,g))},sx=r=>Vp(r)||nh(r),A$=r=>Hu(r).exists(sx),Eg=r=>Te(Ld(r.selection.getSelectedBlocks()),g=>!sx(g)&&!A$(g)&&RK(g)),F2=(r,g)=>{var B,H;const{dom:re}=r,be=JO(r),Re=(H=(B=/[a-z%]+$/i.exec(be))===null||B===void 0?void 0:B[0])!==null&&H!==void 0?H:"px",Ke=ax(be),ct=fy(r);ye(Eg(r),kt=>{s9(re,g,ct,Ke,Re,kt.dom)})},l9=r=>F2(r,"indent"),M$=r=>F2(r,"outdent"),c9=r=>{if(r.selection.isCollapsed()&&n8(r)){const g=r.dom,B=r.selection.getRng(),H=qr.fromRangeStart(B),re=g.getParent(B.startContainer,g.isBlock);if(re!==null&&VE(sr.fromDom(re),H,r.schema))return Y.some(()=>M$(r))}return Y.none()},E$=(r,g,B)=>Ne([c9,sk,IP,(H,re)=>dk(H,g,re),FC,Bw,p4,t8,$C,o9,h4],H=>H(r,B)).filter(H=>r.selection.isEditable()),LK=(r,g)=>{E$(r,g,!1).fold(()=>{r.selection.isEditable()&&(C6(r),hc(r))},K)},IK=(r,g)=>{E$(r,g,!0).fold(()=>{r.selection.isEditable()&&GB(r)},K)},DK=(r,g)=>{r.addCommand("delete",()=>{LK(r,g)}),r.addCommand("forwardDelete",()=>{IK(r,g)})},P$=5,R$=400,L$=r=>r.touches===void 0||r.touches.length!==1?Y.none():Y.some(r.touches[0]),BK=(r,g)=>{const B=Math.abs(r.clientX-g.x),H=Math.abs(r.clientY-g.y);return B>P$||H>P$},v4=r=>{const g=Ys(),B=mr(!1),H=n0(re=>{r.dispatch("longpress",{...re,type:"longpress"}),B.set(!0)},R$);r.on("touchstart",re=>{L$(re).each(be=>{H.cancel();const Re={x:be.clientX,y:be.clientY,target:re.target};H.throttle(re),B.set(!1),g.set(Re)})},!0),r.on("touchmove",re=>{H.cancel(),L$(re).each(be=>{g.on(Re=>{BK(be,Re)&&(g.clear(),B.set(!1),r.dispatch("longpresscancel"))})})},!0),r.on("touchend touchcancel",re=>{H.cancel(),re.type!=="touchcancel"&&g.get().filter(be=>be.target.isEqualNode(re.target)).each(()=>{B.get()?re.preventDefault():r.dispatch("tap",{...re,type:"tap"})})},!0)},y4=(r,g)=>_t(r,g.nodeName),I$=(r,g)=>Nt(g)?!0:ne(g)?!y4(r.getBlockElements(),g)&&!Kp(g)&&!xm(r,g)&&!Pa(g):!1,D$=(r,g,B)=>de(SB(sr.fromDom(B),sr.fromDom(g)),H=>y4(r,H.dom)),u9=(r,g)=>{if(Nt(g)){if(g.data.length===0)return!0;if(/^\s+$/.test(g.data))return!g.nextSibling||y4(r,g.nextSibling)||Pa(g.nextSibling)}return!1},f9=r=>r.dom.create(dc(r),Jf(r)),zK=r=>{const g=r.dom,B=r.selection,H=r.schema,re=H.getBlockElements(),be=B.getStart(),Re=r.getBody();let Ke,ct,kt=null;const Wt=dc(r);if(!be||!ne(be))return;const Jt=Re.nodeName.toLowerCase();if(!H.isValidChild(Jt,Wt.toLowerCase())||D$(re,Re,be))return;if(Re.firstChild===Re.lastChild&&On(Re.firstChild)){Ke=f9(r),Ke.appendChild($1().dom),Re.replaceChild(Ke,Re.firstChild),r.selection.setCursorLocation(Ke,0),r.nodeChanged();return}let ln=Re.firstChild;for(;ln;)if(ne(ln)&&tc(H,ln),I$(H,ln)){if(u9(re,ln)){ct=ln,ln=ln.nextSibling,g.remove(ct);continue}if(!Ke){if(!kt&&r.hasFocus()&&(kt=wv(r.selection.getRng(),()=>document.createElement("span"))),!ln.parentNode){ln=null;break}Ke=f9(r),Re.insertBefore(Ke,ln)}ct=ln,ln=ln.nextSibling,Ke.appendChild(ct)}else Ke=null,ln=ln.nextSibling;kt&&(r.selection.setRng(v0(kt)),r.nodeChanged())},B$=(r,g,B)=>{const H=sr.fromDom(f9(r)),re=$1();Ps(H,re),B(g,H);const be=document.createRange();return be.setStartBefore(re.dom),be.setEndBefore(re.dom),be},FK=r=>{r.on("NodeChange",()=>zK(r))},z$=r=>g=>(" "+g.attr("class")+" ").indexOf(r)!==-1,NK=(r,g,B)=>function(H){const re=arguments,be=re[re.length-2],Re=be>0?g.charAt(be-1):"";if(Re==='"')return H;if(Re===">"){const Ke=g.lastIndexOf("<",be);if(Ke!==-1&&g.substring(Ke,be).indexOf('contenteditable="false"')!==-1)return H}return''+r.dom.encode(typeof re[1]=="string"?re[1]:re[0])+""},$K=(r,g,B)=>{let H=g.length,re=B.content;if(B.format!=="raw"){for(;H--;)re=re.replace(g[H],NK(r,re,vy(r)));B.content=re}},F$=(r,g)=>Oe(r,B=>{const H=g.match(B);return H!==null&&H[0].length===g.length}),VK=r=>{const g="contenteditable",B=" "+mo.trim(sw(r))+" ",H=" "+mo.trim(vy(r))+" ",re=z$(B),be=z$(H),Re=pp(r);Re.length>0&&r.on("BeforeSetContent",Ke=>{$K(r,Re,Ke)}),r.parser.addAttributeFilter("class",Ke=>{let ct=Ke.length;for(;ct--;){const kt=Ke[ct];re(kt)?kt.attr(g,"true"):be(kt)&&kt.attr(g,"false")}}),r.serializer.addAttributeFilter(g,Ke=>{let ct=Ke.length;for(;ct--;){const kt=Ke[ct];if(!re(kt)&&!be(kt))continue;const Wt=kt.attr("data-mce-content");Re.length>0&&Wt?F$(Re,Wt)?(kt.name="#text",kt.type=3,kt.raw=!0,kt.value=Wt):kt.remove():kt.attr(g,null)}})},UK=r=>xi(sr.fromDom(r.getBody()),"*[data-mce-caret]").map(g=>g.dom).getOrNull(),Ym=(r,g)=>{g.hasAttribute("data-mce-caret")&&(Ra(g),r.selection.setRng(r.selection.getRng()),r.selection.scrollIntoView(g))},jK=(r,g)=>{const B=UK(r);if(B){if(g.type==="compositionstart"){g.preventDefault(),g.stopPropagation(),Ym(r,B);return}Z_(B)&&(Ym(r,B),r.undoManager.add())}},d9=r=>{r.on("keyup compositionstart",U(jK,r))},h9=rr,p9=(r,g,B)=>s$(g,r,B,Ey,k2,h9),QK=(r,g,B)=>l$(g,r,B,be=>Ey(be)||NE(be),be=>k2(be)||$E(be),h9),HK=r=>{const g=r.dom.create(dc(r));return g.innerHTML='
    ',g},N$=(r,g,B)=>{const H=Sd(r.getBody()),re=U(DS,g===1?H.next:H.prev);if(B.collapsed){const be=r.dom.getParent(B.startContainer,"PRE");if(!be)return;if(!re(qr.fromRangeStart(B))){const Ke=sr.fromDom(HK(r));g===1?si(sr.fromDom(be),Ke):Fc(sr.fromDom(be),Ke),r.selection.select(Ke.dom,!0),r.selection.collapse()}}},ZK=(r,g)=>{const B=g?Mf.Forwards:Mf.Backwards,H=r.selection.getRng();return p9(B,r,H).orThunk(()=>(N$(r,B,H),Y.none()))},qK=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return QK(B,r,H).orThunk(()=>(N$(r,B,H),Y.none()))},$$=(r,g)=>{const B=g?r.getEnd(!0):r.getStart(!0);return ZB(B)?!g:g},V$=(r,g)=>ZK(r,$$(r.selection,g)).exists(B=>(Ov(r,B),!0)),U$=(r,g)=>qK(r,g).exists(B=>(Ov(r,B),!0)),b4=(r,g)=>mK(r,g,g?k2:Ey),c1=(r,g)=>DP(r,!g).map(B=>{const H=B.toRange(),re=r.selection.getRng();return g?H.setStart(re.startContainer,re.startOffset):H.setEnd(re.endContainer,re.endOffset),H}).exists(B=>(Ov(r,B),!0)),rO=r=>ce(["figcaption"],la(r)),r8=(r,g,B)=>{const H=U(Fa,g);return Ya(sr.fromDom(r.container()),re=>B.isBlock(la(re)),H).filter(rO)},m9=(r,g,B)=>g?e$(r.dom,B):JN(r.dom,B),g9=(r,g)=>{const B=sr.fromDom(r.getBody()),H=qr.fromRangeStart(r.selection.getRng());return r8(H,B,r.schema).exists(()=>{if(m9(B,g,H)){const be=B$(r,B,g?Ps:Hh);return r.selection.setRng(be),!0}else return!1})},v9=(r,g)=>r.selection.isCollapsed()?g9(r,g):!1,WK=(r,g,B)=>{const H=r.selection.getRng(),re=qr.fromRangeStart(H);return r.getBody().firstChild===g&&JN(B,re)?(r.execCommand("InsertNewBlockBefore"),!0):!1},j$=(r,g)=>{const B=r.selection.getRng(),H=qr.fromRangeStart(B);return r.getBody().lastChild===g&&e$(g,H)?(r.execCommand("InsertNewBlockAfter"),!0):!1},Q$=(r,g)=>g?Y.from(r.dom.getParent(r.selection.getNode(),"details")).map(B=>j$(r,B)).getOr(!1):Y.from(r.dom.getParent(r.selection.getNode(),"summary")).bind(B=>Y.from(r.dom.getParent(B,"details")).map(H=>WK(r,H,B))).getOr(!1),H$=(r,g)=>Q$(r,g),Z$={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},YK=r=>ve(r,g=>({...Z$,...g})),XK=r=>ve(r,g=>({...Z$,...g})),q$=(r,g)=>g.keyCode===r.keyCode&&g.shiftKey===r.shiftKey&&g.altKey===r.altKey&&g.ctrlKey===r.ctrlKey&&g.metaKey===r.metaKey,GK=(r,g)=>$e(YK(r),B=>q$(B,g)?[B]:[]),W$=(r,g)=>$e(XK(r),B=>q$(B,g)?[B]:[]),ua=(r,...g)=>()=>r.apply(null,g),o8=(r,g)=>De(GK(r,g),B=>B.action()),KK=(r,g)=>Ne(W$(r,g),B=>B.action()),JK=(r,g)=>{const B=g?Mf.Forwards:Mf.Backwards,H=r.selection.getRng();return s$(r,B,H,Li,U3,Zr).exists(re=>(Ov(r,re),!0))},Y$=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return l$(r,B,H,Li,U3,Zr).exists(re=>(Ov(r,re),!0))},eJ=(r,g)=>mK(r,g,g?U3:Li),tJ=aa.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),mk={...tJ,none:r=>tJ.none(r)},hfe=(r,g)=>X$(r,g,q),X$=(r,g,B)=>$e(Oc(r),H=>wf(H,g)?B(H)?[H]:[]:X$(H,g,B)),nm=(r,g,B=oe)=>{if(B(g))return Y.none();if(ce(r,la(g)))return Y.some(g);const H=re=>wf(re,"table")||B(re);return wl(g,r.join(","),H)},G$=(r,g)=>nm(["td","th"],r,g),gk=r=>hfe(r,"th,td"),K$=(r,g)=>mu(r,"table",g),i8=(r,g,B,H,re=q)=>{const be=H===1;if(!be&&B<=0)return mk.first(r[0]);if(be&&B>=r.length-1)return mk.last(r[r.length-1]);{const Re=B+H,Ke=r[Re];return re(Ke)?mk.middle(g,Ke):i8(r,g,Re,H,re)}},y9=(r,g)=>K$(r,g).bind(B=>{const H=gk(B);return He(H,be=>Fa(r,be)).map(be=>({index:be,all:H}))}),b9=(r,g,B)=>y9(r,B).fold(()=>mk.none(r),re=>i8(re.all,r,re.index,1,g)),nJ=(r,g,B)=>y9(r,B).fold(()=>mk.none(),re=>i8(re.all,r,re.index,-1,g)),rJ=r=>HO(r).filter(g=>g.trim().length!==0||g.indexOf(Ea)>-1).isSome(),J$=r=>iu(r)&&uc(r,"contenteditable")==="false",oJ=["img","br"],iJ=r=>rJ(r)||ce(oJ,la(r))||J$(r),aJ=r=>Wc(r,iJ),x9=(r,g)=>({left:r.left-g,top:r.top-g,right:r.right+g*2,bottom:r.bottom+g*2,width:r.width+g,height:r.height+g}),sJ=(r,g)=>$e(g,B=>{const H=x9(i0(B.getBoundingClientRect()),-1);return[{x:H.left,y:r(H),cell:B},{x:H.right,y:r(H),cell:B}]}),lJ=(r,g,B)=>Ie(r,(H,re)=>H.fold(()=>Y.some(re),be=>{const Re=Math.sqrt(Math.abs(be.x-g)+Math.abs(be.y-B)),Ke=Math.sqrt(Math.abs(re.x-g)+Math.abs(re.y-B));return Y.some(Ke{const be=Zl(sr.fromDom(B),"td,th,caption").map(Ke=>Ke.dom),Re=Te(sJ(r,be),Ke=>g(Ke,re));return lJ(Re,H,re).map(Ke=>Ke.cell)},uJ=r=>r.bottom,eV=r=>r.top,pfe=(r,g)=>r.yr.y>g,dJ=U(cJ,uJ,pfe),hJ=U(cJ,eV,fJ),_9=(r,g)=>Xe(g.getClientRects()).bind(B=>dJ(r,B.left,B.top)).bind(B=>ZC(sK(B),g)),a8=(r,g)=>tt(g.getClientRects()).bind(B=>hJ(r,B.left,B.top)).bind(B=>ZC(aK(B),g)),tV=(r,g,B)=>B.breakAt.exists(H=>r(g,H).breakAt.isSome()),nV=r=>r.breakType===Ny.Wrap&&r.positions.length===0,pJ=r=>r.breakType===Ny.Br&&r.positions.length===1,rV=(r,g,B)=>{const H=r(g,B);return nV(H)||!On(B.getNode())&&pJ(H)?!tV(r,g,H):H.breakAt.isNone()},w9=U(rV,z2),mJ=U(rV,uk),gJ=(r,g,B)=>{const H=qr.fromRangeStart(g);return $b(!r,B).exists(re=>re.isEqual(H))},vJ=(r,g,B,H)=>{const re=r.selection.getRng(),be=g?1:-1;return $M()&&gJ(g,re,B)?(zy(be,r,B,!g,!1).each(Re=>{Ov(r,Re)}),!0):!1},yJ=(r,g,B)=>_9(g,B).orThunk(()=>Xe(B.getClientRects()).bind(H=>GP(GN(r,qr.before(g)),H.left))).getOr(qr.before(g)),u1=(r,g,B)=>a8(g,B).orThunk(()=>Xe(B.getClientRects()).bind(H=>GP(KN(r,qr.after(g)),H.left))).getOr(qr.after(g)),O9=(r,g)=>{const B=g.getNode(r);return Et(B)?Y.some(B):Y.none()},oV=(r,g,B)=>{g.undoManager.transact(()=>{const H=r?si:Fc,re=B$(g,sr.fromDom(B),H);Ov(g,re)})},bJ=(r,g,B)=>{const H=O9(!!g,B),re=g===!1;H.fold(()=>Ov(r,B.toRange()),be=>$b(re,r.getBody()).filter(Re=>Re.isEqual(B)).fold(()=>Ov(r,B.toRange()),Re=>oV(g,r,be)))},mfe=(r,g,B,H)=>{const re=r.selection.getRng(),be=qr.fromRangeStart(re),Re=r.getBody();if(!g&&w9(H,be)){const Ke=yJ(Re,B,be);return bJ(r,g,Ke),!0}else if(g&&mJ(H,be)){const Ke=u1(Re,B,be);return bJ(r,g,Ke),!0}else return!1},xJ=(r,g,B)=>Y.from(r.dom.getParent(r.selection.getNode(),"td,th")).bind(H=>Y.from(r.dom.getParent(H,"table")).map(re=>B(r,g,re,H))).getOr(!1),_J=(r,g)=>xJ(r,g,vJ),S9=(r,g)=>xJ(r,g,mfe),s8=r=>{const g=O2.exact(r,0,r,0);return pe(g)},iV=(r,g,B)=>B.fold(Y.none,Y.none,(H,re)=>aJ(re).map(be=>s8(be)),H=>(r.execCommand("mceTableInsertRowAfter"),l8(r,g,H))),l8=(r,g,B)=>iV(r,g,b9(B,js)),aV=(r,g,B)=>iV(r,g,nJ(B,js)),k9=(r,g)=>{const B=["table","li","dl"],H=sr.fromDom(r.getBody()),re=Ke=>{const ct=la(Ke);return Fa(Ke,H)||ce(B,ct)},be=r.selection.getRng(),Re=sr.fromDom(g?be.endContainer:be.startContainer);return G$(Re,re).map(Ke=>(K$(Ke,re).each(Wt=>{r.model.table.clearSelectedCells(Wt.dom)}),r.selection.collapse(!g),(g?l8:aV)(r,re,Ke).each(Wt=>{r.selection.setRng(Wt)}),!0)).getOr(!1)},sV=(r,g,B)=>{const H=fr.os.isMacOS()||fr.os.isiOS();o8([{keyCode:Fo.RIGHT,action:ua(V$,r,!0)},{keyCode:Fo.LEFT,action:ua(V$,r,!1)},{keyCode:Fo.UP,action:ua(U$,r,!1)},{keyCode:Fo.DOWN,action:ua(U$,r,!0)},...H?[{keyCode:Fo.UP,action:ua(c1,r,!1),metaKey:!0,shiftKey:!0},{keyCode:Fo.DOWN,action:ua(c1,r,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Fo.RIGHT,action:ua(_J,r,!0)},{keyCode:Fo.LEFT,action:ua(_J,r,!1)},{keyCode:Fo.UP,action:ua(S9,r,!1)},{keyCode:Fo.DOWN,action:ua(S9,r,!0)},{keyCode:Fo.UP,action:ua(S9,r,!1)},{keyCode:Fo.UP,action:ua(H$,r,!1)},{keyCode:Fo.DOWN,action:ua(H$,r,!0)},{keyCode:Fo.RIGHT,action:ua(JK,r,!0)},{keyCode:Fo.LEFT,action:ua(JK,r,!1)},{keyCode:Fo.UP,action:ua(Y$,r,!1)},{keyCode:Fo.DOWN,action:ua(Y$,r,!0)},{keyCode:Fo.RIGHT,action:ua(d$,r,g,!0)},{keyCode:Fo.LEFT,action:ua(d$,r,g,!1)},{keyCode:Fo.RIGHT,ctrlKey:!H,altKey:H,action:ua(bK,r,g)},{keyCode:Fo.LEFT,ctrlKey:!H,altKey:H,action:ua(p$,r,g)},{keyCode:Fo.UP,action:ua(v9,r,!1)},{keyCode:Fo.DOWN,action:ua(v9,r,!0)}],B).each(re=>{B.preventDefault()})},wJ=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||sV(r,g,B)})},Sv=(r,g)=>({container:r,offset:g}),c8=Nl.DOM,u8=r=>g=>r===g?-1:0,f8=r=>g=>r.isBlock(g)||ce(["BR","IMG","HR","INPUT"],g.nodeName)||r.getContentEditable(g)==="false",T9=(r,g,B)=>{if(Nt(r)&&g>=0)return Y.some(Sv(r,g));{const H=Em(c8);return Y.from(H.backwards(r,g,u8(r),B)).map(re=>Sv(re.container,re.container.data.length))}},OJ=(r,g,B)=>{if(Nt(r)&&g>=r.length)return Y.some(Sv(r,g));{const H=Em(c8);return Y.from(H.forwards(r,g,u8(r),B)).map(re=>Sv(re.container,0))}},C9=(r,g,B)=>{if(!Nt(r))return Y.none();const H=r.data;if(g>=0&&g<=H.length)return Y.some(Sv(r,g));{const re=Em(c8);return Y.from(re.backwards(r,g,u8(r),B)).bind(be=>{const Re=be.container.data;return C9(be.container,g+Re.length,B)})}},d8=(r,g,B)=>{if(!Nt(r))return Y.none();const H=r.data;if(g<=H.length)return Y.some(Sv(r,g));{const re=Em(c8);return Y.from(re.forwards(r,g,u8(r),B)).bind(be=>d8(be.container,g-H.length,B))}},A9=(r,g,B,H,re)=>{const be=Em(r,f8(r));return Y.from(be.backwards(g,B,H,re))},SJ=r=>r.collapsed&&Nt(r.startContainer),lV=r=>yd(r.toString().replace(/\u00A0/g," ")),cV=r=>r!==""&&`  \f +\r \v`.indexOf(r)!==-1,kJ=(r,g)=>r.substring(g.length),TJ=(r,g,B,H=!1)=>{let re;const be=B.charAt(0);for(re=g-1;re>=0;re--){const Re=r.charAt(re);if(!H&&cV(Re))return Y.none();if(be===Re&&jn(r,B,re,g))break}return Y.some(re)},M9=(r,g,B,H=!1)=>{if(!SJ(g))return Y.none();const re={text:"",offset:0},be=(Ke,ct,kt)=>(re.text=kt+re.text,re.offset+=ct,TJ(re.text,re.offset,B,H).getOr(ct)),Re=r.getParent(g.startContainer,r.isBlock)||r.getRoot();return A9(r,g.startContainer,g.startOffset,be,Re).bind(Ke=>{const ct=g.cloneRange();if(ct.setStart(Ke.container,Ke.offset),ct.setEnd(g.endContainer,g.endOffset),ct.collapsed)return Y.none();const kt=lV(ct);return kt.lastIndexOf(B)!==0?Y.none():Y.some({text:kJ(kt,B),range:ct,trigger:B})})},CJ=r=>r.nodeType===xl,AJ=r=>r.nodeType===Cu,h8=r=>{if(CJ(r))return Sv(r,r.data.length);{const g=r.childNodes;return g.length>0?h8(g[g.length-1]):Sv(r,g.length)}},uV=(r,g)=>{const B=r.childNodes;return B.length>0&&g0&&AJ(r)&&B.length===g?h8(B[B.length-1]):Sv(r,g)},fV=(r,g)=>{var B;const H=(B=r.getParent(g.container,r.isBlock))!==null&&B!==void 0?B:r.getRoot();return A9(r,g.container,g.offset,(re,be)=>be===0?-1:be,H).filter(re=>{const be=re.container.data.charAt(re.offset-1);return!cV(be)}).isSome()},MJ=r=>g=>{const B=uV(g.startContainer,g.startOffset);return!fV(r,B)},EJ=(r,g,B)=>Ne(B.triggers,H=>M9(r,g,H)),PJ=(r,g)=>{const B=g(),H=r.selection.getRng();return EJ(r.dom,H,B).bind(re=>dV(r,g,re))},dV=(r,g,B,H={})=>{var re;const be=g(),Ke=(re=r.selection.getRng().startContainer.nodeValue)!==null&&re!==void 0?re:"",ct=Te(be.lookupByTrigger(B.trigger),Wt=>B.text.length>=Wt.minChars&&Wt.matches.getOrThunk(()=>MJ(r.dom))(B.range,Ke,B.text));if(ct.length===0)return Y.none();const kt=Promise.all(ve(ct,Wt=>Wt.fetch(B.text,Wt.maxResults,H).then(ln=>({matchText:B.text,items:ln,columns:Wt.columns,onAction:Wt.onAction,highlightOn:Wt.highlightOn}))));return Y.some({lookupData:kt,context:B})};var kv;(function(r){r[r.Error=0]="Error",r[r.Value=1]="Value"})(kv||(kv={}));const E9=(r,g,B)=>r.stype===kv.Error?g(r.serror):B(r.svalue),Lf=r=>{const g=[],B=[];return ye(r,H=>{E9(H,re=>B.push(re),re=>g.push(re))}),{values:g,errors:B}},RJ=(r,g)=>r.stype===kv.Error?{stype:kv.Error,serror:g(r.serror)}:r,LJ=(r,g)=>r.stype===kv.Value?{stype:kv.Value,svalue:g(r.svalue)}:r,IJ=(r,g)=>r.stype===kv.Value?g(r.svalue):r,hV=(r,g)=>r.stype===kv.Error?g(r.serror):r,p8=r=>({stype:kv.Value,svalue:r}),P9=r=>({stype:kv.Error,serror:r}),Ud={fromResult:r=>r.fold(P9,p8),toResult:r=>E9(r,gs.error,gs.value),svalue:p8,partition:Lf,serror:P9,bind:IJ,bindError:hV,map:LJ,mapError:RJ,fold:E9},vk=r=>_(r)&&nt(r).length>100?" removed due to size":JSON.stringify(r,null,2),R9=r=>{const g=r.length>10?r.slice(0,10).concat([{path:[],getErrorInfo:$("... (only showing first ten failures)")}]):r;return ve(g,B=>"Failed path: ("+B.path.join(" > ")+`) +`+B.getErrorInfo())},x4=(r,g)=>Ud.serror([{path:r,getErrorInfo:g}]),mV=(r,g,B)=>x4(r,()=>'Could not find valid *required* value for "'+g+'" in '+vk(B)),m8=(r,g)=>x4(r,()=>'Choice schema did not contain choice key: "'+g+'"'),g8=(r,g,B)=>x4(r,()=>'The chosen schema: "'+B+'" did not exist in branches: '+vk(g)),yk=(r,g)=>x4(r,$(g)),bk=(r,g,B,H)=>Ct(B,H).fold(()=>g8(r,B,H),be=>be.extract(r.concat(["branch: "+H]),g)),f1=(r,g)=>({extract:(re,be)=>Ct(be,r).fold(()=>m8(re,r),Ke=>bk(re,be,g,Ke)),toString:()=>"chooseOn("+r+"). Possible values: "+nt(g)}),xk=(r,g)=>g,gV=(r,g)=>S(r)&&S(g)?v8(r,g):g,L9=r=>(...g)=>{if(g.length===0)throw new Error("Can't merge zero objects");const B={};for(let H=0;H({tag:"required",process:{}}),DJ=r=>({tag:"defaultedThunk",process:r}),_4=r=>DJ($(r)),BJ=()=>({tag:"option",process:{}}),zJ=(r,g)=>r.length>0?Ud.svalue(v8(g,I9.apply(void 0,r))):Ud.svalue(g),yV=r=>I(Ud.serror,Ve)(r),FJ={consolidateObj:(r,g)=>{const B=Ud.partition(r);return B.errors.length>0?yV(B.errors):zJ(B.values,g)},consolidateArr:r=>{const g=Ud.partition(r);return g.errors.length>0?yV(g.errors):Ud.svalue(g.values)}},NJ=(r,g,B,H)=>({tag:"field",key:r,newKey:g,presence:B,prop:H}),$J=(r,g)=>({tag:"custom",newKey:r,instantiator:g}),bV=(r,g,B)=>{switch(r.tag){case"field":return g(r.key,r.newKey,r.presence,r.prop);case"custom":return B(r.newKey,r.instantiator)}},D9=r=>{const g=(H,re)=>Ud.bindError(r(re),be=>yk(H,be)),B=$("val");return{extract:g,toString:B}},VJ=D9(Ud.svalue),UJ=(r,g,B,H)=>Ct(g,B).fold(()=>mV(r,B,g),H),xV=(r,g,B,H)=>{const re=Ct(r,g).getOrThunk(()=>B(r));return H(re)},jJ=(r,g,B)=>B(Ct(r,g)),_V=(r,g,B,H)=>{const re=Ct(r,g).map(be=>be===!0?B(r):be);return H(re)},wV=(r,g,B,H,re)=>{const be=Ke=>re.extract(g.concat([H]),Ke),Re=Ke=>Ke.fold(()=>Ud.svalue(Y.none()),ct=>{const kt=re.extract(g.concat([H]),ct);return Ud.map(kt,Y.some)});switch(r.tag){case"required":return UJ(g,B,H,be);case"defaultedThunk":return xV(B,H,r.process,be);case"option":return jJ(B,H,Re);case"defaultedOptionThunk":return _V(B,H,r.process,Re);case"mergeWithThunk":return xV(B,H,$({}),Ke=>{const ct=v8(r.process(B),Ke);return be(ct)})}},OV=(r,g,B)=>{const H={},re=[];for(const be of B)bV(be,(Re,Ke,ct,kt)=>{const Wt=wV(ct,r,g,Re,kt);Ud.fold(Wt,Jt=>{re.push(...Jt)},Jt=>{H[Ke]=Jt})},(Re,Ke)=>{H[Re]=Ke(g)});return re.length>0?Ud.serror(re):Ud.svalue(H)},B9=r=>({extract:(H,re)=>OV(H,re,r),toString:()=>`obj{ `+ve(r,re=>bV(re,(be,Re,Ke,ct)=>be+" -> "+ct.toString(),(be,Re)=>"state("+be+")")).join(` -`)+"}"}),SV=r=>({extract:(H,re)=>{const be=ve(re,(Re,Ke)=>r.extract(H.concat(["["+Ke+"]"]),Re));return FJ.consolidateArr(be)},toString:()=>"array("+r.toString()+")"}),QJ=r=>I9(g=>r(g).fold(Ud.serror,Ud.svalue)),HJ=(r,g,B)=>{const H=g.extract([r],B);return Ud.mapError(H,re=>({input:B,errors:re}))},kV=(r,g,B)=>Ud.toResult(HJ(r,g,B)),ZJ=r=>`Errors: -`+P9(r.errors).join(` +`)+"}"}),SV=r=>({extract:(H,re)=>{const be=ve(re,(Re,Ke)=>r.extract(H.concat(["["+Ke+"]"]),Re));return FJ.consolidateArr(be)},toString:()=>"array("+r.toString()+")"}),QJ=r=>D9(g=>r(g).fold(Ud.serror,Ud.svalue)),HJ=(r,g,B)=>{const H=g.extract([r],B);return Ud.mapError(H,re=>({input:B,errors:re}))},kV=(r,g,B)=>Ud.toResult(HJ(r,g,B)),ZJ=r=>`Errors: +`+R9(r.errors).join(` `)+` -Input object: `+gk(r.input),B9=(r,g)=>f1(r,ht(g,D9)),qJ=$(VJ),xk=(r,g)=>I9(B=>{const H=typeof B;return r(B)?Ud.svalue(B):Ud.serror(`Expected type: ${g} but got: ${H}`)}),TV=xk(L,"number"),v8=xk(v,"string"),WJ=xk(R,"boolean"),z9=xk(C,"function"),_k=NJ,F9=$J,YJ=r=>QJ(g=>ce(r,g)?gs.value(g):gs.error(`Unsupported value: "${g}", choose one of "${r.join(", ")}".`)),CV=(r,g)=>_k(r,r,vV(),g),N9=r=>CV(r,v8),AV=r=>CV(r,z9),XJ=(r,g)=>_k(r,r,vV(),SV(g)),y8=(r,g)=>_k(r,r,BJ(),g),b8=r=>y8(r,v8),GJ=r=>y8(r,z9),KJ=(r,g)=>_k(r,r,_4(g),qJ()),iO=(r,g,B)=>_k(r,r,_4(g),B),$9=(r,g)=>iO(r,g,TV),JJ=(r,g)=>iO(r,g,v8),MV=(r,g,B)=>iO(r,g,YJ(B)),V9=(r,g)=>iO(r,g,WJ),U9=(r,g)=>iO(r,g,z9),eee=(r,g,B)=>iO(r,g,SV(B)),tee=N9("type"),nee=AV("fetch"),j9=AV("onAction"),vfe=U9("onSetup",()=>k),ree=b8("text"),x8=b8("icon"),EV=b8("tooltip"),PV=b8("label"),oee=V9("active",!1),RV=V9("enabled",!0),Q9=V9("primary",!1),iee=r=>KJ("columns",r),wk=r=>JJ("type",r),aee=D9([tee,N9("trigger"),$9("minChars",1),iee(1),$9("maxResults",10),GJ("matches"),nee,j9,eee("highlightOn",[],v8)]),LV=r=>kV("Autocompleter",aee,r),H9=[RV,EV,x8,ree,vfe],_8=[oee].concat(H9),see=[U9("predicate",oe),MV("scope","node",["node","editor"]),MV("position","selection",["node","selection","line"])],lee=H9.concat([wk("contextformbutton"),Q9,j9,F9("original",Q)]),cee=_8.concat([wk("contextformbutton"),Q9,j9,F9("original",Q)]),IV=H9.concat([wk("contextformbutton")]),uee=_8.concat([wk("contextformtogglebutton")]),fee=B9("type",{contextformbutton:lee,contextformtogglebutton:cee});D9([wk("contextform"),U9("initValue",$("")),PV,XJ("commands",fee),y8("launch",B9("type",{contextformbutton:IV,contextformtogglebutton:uee}))].concat(see));const dee=r=>{const g=r.ui.registry.getAll().popups,B=ht(g,Re=>LV(Re).fold(Ke=>{throw new Error(ZJ(Ke))},Q)),H=bn(en(B,Re=>Re.trigger)),re=Gt(B);return{dataset:B,triggers:H,lookupByTrigger:Re=>Te(re,Ke=>Ke.trigger===Re)}},hee=(r,g)=>{const B=n0(g.load,50);r.on("input",H=>{H.inputType==="insertCompositionText"&&!r.composing||B.throttle()}),r.on("keydown",H=>{const re=H.which;re===8?B.throttle():re===27?(B.cancel(),g.cancelIfNecessary()):(re===38||re===40)&&B.cancel()},!0),r.on("remove",B.cancel)},pee=r=>{const g=Ys(),B=mr(!1),H=g.isSet,re=()=>{H()&&(a6(r),B.set(!1),g.clear())},be=Jt=>{H()||g.set({trigger:Jt.trigger,matchLength:Jt.text.length})},Re=xt(()=>dee(r)),Ke=Jt=>g.get().map(ln=>A9(r.dom,r.selection.getRng(),ln.trigger,!0).bind(kn=>dV(r,Re,kn,Jt))).getOrThunk(()=>PJ(r,Re)),ct=Jt=>{Ke(Jt).fold(re,ln=>{be(ln.context),ln.lookupData.then(kn=>{g.get().map(Vn=>{const Rn=ln.context;Vn.trigger===Rn.trigger&&(g.set({...Vn,matchLength:Rn.text.length}),B.get()?(i6(r,{range:Rn.range}),i5(r,{lookupData:kn})):(B.set(!0),i6(r,{range:Rn.range}),o6(r,{lookupData:kn})))})})})},kt=(Jt,ln)=>{const kn=Jt.compareBoundaryPoints(window.Range.START_TO_START,ln),Vn=Jt.compareBoundaryPoints(window.Range.END_TO_END,ln);return kn>=0&&Vn<=0},Wt=()=>g.get().bind(({trigger:Jt})=>{const ln=r.selection.getRng();return A9(r.dom,ln,Jt,B.get()).filter(({range:kn})=>kt(ln,kn)).map(({range:kn})=>kn)});r.addCommand("mceAutocompleterReload",(Jt,ln)=>{const kn=_(ln)?ln.fetchOptions:{};ct(kn)}),r.addCommand("mceAutocompleterClose",re),r.addCommand("mceAutocompleterRefreshActiveRange",()=>{Wt().each(Jt=>{i6(r,{range:Jt})})}),r.editorCommands.addQueryStateHandler("mceAutoCompleterInRange",()=>Wt().isSome()),hee(r,{cancelIfNecessary:re,load:ct})},$y=tr().browser.isSafari(),DV=r=>rh(sr.fromDom(r)),mee=(r,g)=>{var B;return r.startOffset===0&&r.endOffset===((B=g.textContent)===null||B===void 0?void 0:B.length)},w8=(r,g)=>Y.from(r.getParent(g.container(),"details")),BV=(r,g)=>w8(r,g).isSome(),gee=(r,g)=>{const B=Y.from(r.getParent(g.startContainer,"details")),H=Y.from(r.getParent(g.endContainer,"details"));if(B.isSome()||H.isSome()){const re=B.bind(be=>Y.from(r.select("summary",be)[0]));return Y.some({startSummary:re,startDetails:B,endDetails:H})}else return Y.none()},vee=(r,g)=>lh(g).exists(B=>B.isEqual(r)),zV=(r,g)=>Xp(g).exists(B=>On(B.getNode())&&mp(g,B).exists(H=>H.isEqual(r))||B.isEqual(r)),w4=(r,g)=>g.startSummary.exists(B=>vee(r,B)),yfe=(r,g)=>g.startSummary.exists(B=>zV(r,B)),yee=(r,g)=>g.startDetails.exists(B=>mp(B,r).forall(H=>g.startSummary.exists(re=>!re.contains(r.container())&&re.contains(H.container())))),bee=(r,g,B)=>B.startDetails.exists(H=>sh(r,g).forall(re=>!H.contains(re.container()))),d1=(r,g)=>{const B=g.getNode();M(B)||r.selection.setCursorLocation(B,g.offset())},FV=(r,g,B)=>{const H=r.dom.getParent(g.container(),"details");if(H&&!H.open){const re=r.dom.select("summary",H)[0];re&&(B?lh(re):Xp(re)).each(Re=>d1(r,Re))}else d1(r,g)},xee=(r,g)=>{const B=ct=>ct.contains(r.startContainer),H=ct=>ct.contains(r.endContainer),re=g.startSummary.exists(B),be=g.startSummary.exists(H),Re=g.startDetails.forall(ct=>g.endDetails.forall(kt=>ct!==kt));return(re||be)&&!(re&&be)||Re},Z9=(r,g,B)=>{const{dom:H,selection:re}=r,be=r.getBody();if(B==="character"){const Re=qr.fromRangeStart(re.getRng()),Ke=H.getParent(Re.container(),H.isBlock),ct=w8(H,Re),kt=Ke&&H.isEmpty(Ke),Wt=x(Ke==null?void 0:Ke.previousSibling),Jt=x(Ke==null?void 0:Ke.nextSibling);return kt&&(g?Jt:Wt)&&lv(!g,be,Re).exists(Vn=>BV(H,Vn)&&!Xl(ct,w8(H,Vn)))?!0:lv(g,be,Re).fold(oe,ln=>{const kn=w8(H,ln);if(BV(H,ln)&&!Xl(ct,kn)){if(g||FV(r,ln,!1),Ke&&kt){if(g&&Wt)return!0;if(!g&&Jt)return!0;FV(r,ln,g),r.dom.remove(Ke)}return!0}else return!1})}else return!1},_ee=(r,g,B,H)=>{const be=r.selection.getRng(),Re=qr.fromRangeStart(be),Ke=r.getBody();return H==="selection"?xee(be,g):B?yfe(Re,g)||bee(Ke,Re,g):w4(Re,g)||yee(Re,g)},q9=(r,g,B)=>gee(r.dom,r.selection.getRng()).fold(()=>Z9(r,g,B),H=>_ee(r,H,g,B)||Z9(r,g,B)),Vy=(r,g,B)=>{const H=r.selection,re=H.getNode(),be=H.getRng(),Re=qr.fromRangeStart(be);return vo(re)?(B==="selection"&&mee(be,re)||O5(g,Re,re)?DV(re):r.undoManager.transact(()=>{const Ke=H.getSel();let{anchorNode:ct,anchorOffset:kt,focusNode:Wt,focusOffset:Jt}=Ke??{};const ln=()=>{E(ct)&&E(kt)&&E(Wt)&&E(Jt)&&(Ke==null||Ke.setBaseAndExtent(ct,kt,Wt,Jt))},kn=()=>{ct=Ke==null?void 0:Ke.anchorNode,kt=Ke==null?void 0:Ke.anchorOffset,Wt=Ke==null?void 0:Ke.focusNode,Jt=Ke==null?void 0:Ke.focusOffset},Vn=(qn,pr)=>{ye(qn.childNodes,Tr=>{b2(Tr)&&pr.appendChild(Tr)})},Rn=r.dom.create("span",{"data-mce-bogus":"1"});Vn(re,Rn),re.appendChild(Rn),ln(),(B==="word"||B==="line")&&(Ke==null||Ke.modify("extend",g?"right":"left",B)),!H.isCollapsed()&&mee(H.getRng(),Rn)?DV(re):(r.execCommand(g?"ForwardDelete":"Delete"),kn(),Vn(Rn,re),ln()),r.dom.remove(Rn)}),!0):!1},N2=(r,g,B)=>q9(r,g,B)||$y&&Vy(r,g,B)?Y.some(k):Y.none(),W9=r=>(g,B,H={})=>{const re=g.getBody(),be={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:re,currentTarget:re,eventPhase:Event.AT_TARGET,originalTarget:re,explicitOriginalTarget:re,isTrusted:!1,srcElement:re,cancelable:!1,preventDefault:k,inputType:B},Re=$p(new InputEvent(r));return g.dispatch(r,{...Re,...be,...H})},Ok=W9("input"),aO=W9("beforeinput"),O8=tr(),Y9=O8.os,X9=Y9.isMacOS()||Y9.isiOS(),wee=O8.browser.isFirefox(),Oee=(r,g,B)=>{const H=B.keyCode===Fo.BACKSPACE?"deleteContentBackward":"deleteContentForward",re=r.selection.isCollapsed(),be=re?"character":"selection",Re=Ke=>re?Ke?"word":"line":"selection";KK([{keyCode:Fo.BACKSPACE,action:ua(l9,r)},{keyCode:Fo.BACKSPACE,action:ua(ak,r,!1)},{keyCode:Fo.DELETE,action:ua(ak,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(LP,r,!1)},{keyCode:Fo.DELETE,action:ua(LP,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(fk,r,g,!1)},{keyCode:Fo.DELETE,action:ua(fk,r,g,!0)},{keyCode:Fo.BACKSPACE,action:ua(Bw,r,!1)},{keyCode:Fo.DELETE,action:ua(Bw,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(N2,r,!1,be)},{keyCode:Fo.DELETE,action:ua(N2,r,!0,be)},...X9?[{keyCode:Fo.BACKSPACE,altKey:!0,action:ua(N2,r,!1,Re(!0))},{keyCode:Fo.DELETE,altKey:!0,action:ua(N2,r,!0,Re(!0))},{keyCode:Fo.BACKSPACE,metaKey:!0,action:ua(N2,r,!1,Re(!1))}]:[{keyCode:Fo.BACKSPACE,ctrlKey:!0,action:ua(N2,r,!1,Re(!0))},{keyCode:Fo.DELETE,ctrlKey:!0,action:ua(N2,r,!0,Re(!0))}],{keyCode:Fo.BACKSPACE,action:ua(p4,r,!1)},{keyCode:Fo.DELETE,action:ua(p4,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(e8,r,!1)},{keyCode:Fo.DELETE,action:ua(e8,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(NC,r,!1)},{keyCode:Fo.DELETE,action:ua(NC,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(zC,r,!1)},{keyCode:Fo.DELETE,action:ua(zC,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(r9,r,!1)},{keyCode:Fo.DELETE,action:ua(r9,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(h4,r,!1)},{keyCode:Fo.DELETE,action:ua(h4,r,!0)}],B).filter(Ke=>r.selection.isEditable()).each(Ke=>{B.preventDefault(),aO(r,H).isDefaultPrevented()||(Ke(),Ok(r,H))})},See=(r,g,B)=>r8([{keyCode:Fo.BACKSPACE,action:ua($P,r)},{keyCode:Fo.DELETE,action:ua($P,r)},...X9?[{keyCode:Fo.BACKSPACE,altKey:!0,action:ua(hk,r)},{keyCode:Fo.DELETE,altKey:!0,action:ua(hk,r)},...B?[{keyCode:wee?224:91,action:ua(hk,r)}]:[]]:[{keyCode:Fo.BACKSPACE,ctrlKey:!0,action:ua(hk,r)},{keyCode:Fo.DELETE,ctrlKey:!0,action:ua(hk,r)}]],g),kee=(r,g)=>{let B=!1;r.on("keydown",H=>{B=H.keyCode===Fo.BACKSPACE,H.isDefaultPrevented()||Oee(r,g,H)}),r.on("keyup",H=>{H.isDefaultPrevented()||See(r,H,B),B=!1})},NV=r=>{for(;r;){if(ne(r)||Nt(r)&&r.data&&/[\r\n\s]/.test(r.data))return r;r=r.nextSibling}return null},O4=(r,g)=>{const B=r.dom,H=r.schema.getMoveCaretBeforeOnEnterElements();if(!g)return;if(/^(LI|DT|DD)$/.test(g.nodeName)){const be=NV(g.firstChild);be&&/^(UL|OL|DL)$/.test(be.nodeName)&&g.insertBefore(B.doc.createTextNode(Ea),g.firstChild)}const re=B.createRng();if(g.normalize(),g.hasChildNodes()){const be=new kc(g,g);let Re=g,Ke;for(;Ke=be.current();){if(Nt(Ke)){re.setStart(Ke,0),re.setEnd(Ke,0);break}if(H[Ke.nodeName.toLowerCase()]){re.setStartBefore(Ke),re.setEndBefore(Ke);break}Re=Ke,Ke=be.next()}Ke||(re.setStart(Re,0),re.setEnd(Re,0))}else On(g)?g.nextSibling&&B.isBlock(g.nextSibling)?(re.setStartBefore(g),re.setEndBefore(g)):(re.setStartAfter(g),re.setEndAfter(g)):(re.setStart(g,0),re.setEnd(g,0));r.selection.setRng(re),m5(r,re)},Sk=(r,g)=>{const B=r.getRoot();let H,re=g;for(;re!==B&&re&&r.getContentEditable(re)!=="false";){if(r.getContentEditable(re)==="true"){H=re;break}re=re.parentNode}return re!==B?H:B},G9=r=>Y.from(r.dom.getParent(r.selection.getStart(!0),r.dom.isBlock)),Tee=r=>G9(r).fold($(""),g=>g.nodeName.toUpperCase()),Cee=r=>G9(r).filter(g=>nh(sr.fromDom(g))).isSome(),S8=r=>{r.innerHTML='
    '},$V=(r,g,B)=>{const H=r.dom;Y.from(B.style).map(H.parseStyle).each(ct=>{const Wt={...vc(sr.fromDom(g)),...ct};H.setStyles(g,Wt)});const re=Y.from(B.class).map(ct=>ct.split(/\s+/)),be=Y.from(g.className).map(ct=>Te(ct.split(/\s+/),kt=>kt!==""));cs(re,be,(ct,kt)=>{const Wt=Te(kt,ln=>!ce(ct,ln)),Jt=[...ct,...Wt];H.setAttrib(g,"class",Jt.join(" "))});const Re=["style","class"],Ke=qt(B,(ct,kt)=>!ce(Re,kt));H.setAttribs(g,Ke)},kk=(r,g)=>{if(dc(r).toLowerCase()===g.tagName.toLowerCase()){const H=Jf(r);$V(r,g,H)}},VV=(r,g,B,H,re=!0,be,Re)=>{const Ke=r.dom,ct=r.schema,kt=dc(r),Wt=B?B.nodeName.toUpperCase():"";let Jt=g;const ln=ct.getTextInlineElements();let kn;be||Wt==="TABLE"||Wt==="HR"?kn=Ke.create(be||kt,Re||{}):kn=B.cloneNode(!1);let Vn=kn;if(!re)Ke.setAttrib(kn,"style",null),Ke.setAttrib(kn,"class",null);else do if(ln[Jt.nodeName]){if(Gp(Jt)||Kp(Jt))continue;const Rn=Jt.cloneNode(!1);Ke.setAttrib(Rn,"id",""),kn.hasChildNodes()?(Rn.appendChild(kn.firstChild),kn.appendChild(Rn)):(Vn=Rn,kn.appendChild(Rn))}while((Jt=Jt.parentNode)&&Jt!==H);return kk(r,kn),S8(Vn),kn},xfe=(r,g)=>r.dom.getParent(g,$o),K9=(r,g,B)=>{let H=g;for(;H&&H!==r&&x(H.nextSibling);){const re=H.parentElement;if(!re||!B(re))return $o(re);H=re}return!1},Aee=(r,g,B)=>!g&&B.nodeName.toLowerCase()===dc(r)&&r.dom.isEmpty(B)&&K9(r.getBody(),B,H=>_t(r.schema.getTextBlockElements(),H.nodeName.toLowerCase())),Mee=(r,g,B)=>{var H,re,be;const Re=g(dc(r)),Ke=xfe(r,B);Ke&&(r.dom.insertAfter(Re,Ke),O4(r,Re),((be=(re=(H=B.parentElement)===null||H===void 0?void 0:H.childNodes)===null||re===void 0?void 0:re.length)!==null&&be!==void 0?be:0)>1&&r.dom.remove(B))},Eee=(r,g)=>r.firstChild&&r.firstChild.nodeName===g,UV=r=>{var g;return((g=r.parentNode)===null||g===void 0?void 0:g.firstChild)===r},jV=(r,g)=>{const B=r==null?void 0:r.parentNode;return E(B)&&B.nodeName===g},J9=r=>E(r)&&/^(OL|UL|LI)$/.test(r.nodeName),eR=r=>E(r)&&/^(LI|DT|DD)$/.test(r.nodeName),Pee=r=>J9(r)&&J9(r.parentNode),tR=r=>{const g=r.parentNode;return eR(g)?g:r},Cd=(r,g,B)=>{let H=r[B?"firstChild":"lastChild"];for(;H&&!ne(H);)H=H[B?"nextSibling":"previousSibling"];return H===g},QV=r=>Ie(en(vc(sr.fromDom(r)),(g,B)=>`${B}: ${g};`),(g,B)=>g+B,""),Ree=(r,g,B,H,re)=>{const be=r.dom,Re=r.selection.getRng(),Ke=B.parentNode;if(B===r.getBody()||!Ke)return;Pee(B)&&(re="LI");const ct=eR(H)?QV(H):void 0;let kt=eR(H)&&ct?g(re,{style:QV(H)}):g(re);if(Cd(B,H,!0)&&Cd(B,H,!1))if(jV(B,"LI")){const Wt=tR(B);be.insertAfter(kt,Wt),UV(B)?be.remove(Wt):be.remove(B)}else be.replace(kt,B);else if(Cd(B,H,!0))jV(B,"LI")?(be.insertAfter(kt,tR(B)),kt.appendChild(be.doc.createTextNode(" ")),kt.appendChild(B)):Ke.insertBefore(kt,B),be.remove(H);else if(Cd(B,H,!1))be.insertAfter(kt,tR(B)),be.remove(H);else{B=tR(B);const Wt=Re.cloneRange();Wt.setStartAfter(H),Wt.setEndAfter(B);const Jt=Wt.extractContents();if(re==="LI"&&Eee(Jt,"LI")){const ln=Te(ve(kt.children,sr.fromDom),X(Ju("br")));kt=Jt.firstChild,be.insertAfter(Jt,B),ye(ln,kn=>Hh(sr.fromDom(kt),kn)),ct&&kt.setAttribute("style",ct)}else be.insertAfter(Jt,B),be.insertAfter(kt,B);be.remove(H)}O4(r,kt)},Lee=r=>{ye(Zf(sr.fromDom(r),Ss),g=>{const B=g.dom;B.nodeValue=vd(B.data)})},Iee=(r,g)=>{const B=r.dom.getParent(g,"ol,ul,dl");return B!==null&&r.dom.getContentEditableParent(B)==="false"},Dee=(r,g)=>g&&g.nodeName==="A"&&r.isEmpty(g),nR=(r,g)=>r.nodeName===g||r.previousSibling&&r.previousSibling.nodeName===g,rR=(r,g)=>E(g)&&r.isBlock(g)&&!/^(TD|TH|CAPTION|FORM)$/.test(g.nodeName)&&!/^(fixed|absolute)/i.test(g.style.position)&&r.isEditable(g.parentNode)&&r.getContentEditable(g)!=="false",k8=(r,g,B)=>{var H;const re=[];if(!B)return;let be=B;for(;be=be.firstChild;){if(r.isBlock(be))return;ne(be)&&!g[be.nodeName.toLowerCase()]&&re.push(be)}let Re=re.length;for(;Re--;)be=re[Re],(!be.hasChildNodes()||be.firstChild===be.lastChild&&((H=be.firstChild)===null||H===void 0?void 0:H.nodeValue)===""||Dee(r,be))&&r.remove(be)},oR=(r,g,B)=>Nt(g)?r?B===1&&g.data.charAt(B-1)===nc?0:B:B===g.data.length-1&&g.data.charAt(B)===nc?g.data.length:B:B,Bee=r=>{const g=r.cloneRange();return g.setStart(r.startContainer,oR(!0,r.startContainer,r.startOffset)),g.setEnd(r.endContainer,oR(!1,r.endContainer,r.endOffset)),g},iR=r=>{let g=r;do Nt(g)&&(g.data=g.data.replace(/^[\r\n]+/,"")),g=g.firstChild;while(g)},aR=(r,g,B,H,re)=>{var be,Re;const Ke=r.dom,ct=(be=Sk(Ke,H))!==null&&be!==void 0?be:Ke.getRoot();let kt=Ke.getParent(H,Ke.isBlock);if(!kt||!rR(Ke,kt)){if(kt=kt||ct,!kt.hasChildNodes()){const kn=Ke.create(g);return kk(r,kn),kt.appendChild(kn),B.setStart(kn,0),B.setEnd(kn,0),kn}let Wt=H;for(;Wt&&Wt.parentNode!==kt;)Wt=Wt.parentNode;let Jt;for(;Wt&&!Ke.isBlock(Wt);)Jt=Wt,Wt=Wt.previousSibling;const ln=(Re=Jt==null?void 0:Jt.parentElement)===null||Re===void 0?void 0:Re.nodeName;if(Jt&&ln&&r.schema.isValidChild(ln,g.toLowerCase())){const kn=Jt.parentNode,Vn=Ke.create(g);for(kk(r,Vn),kn.insertBefore(Vn,Jt),Wt=Jt;Wt&&!Ke.isBlock(Wt);){const Rn=Wt.nextSibling;Vn.appendChild(Wt),Wt=Rn}B.setStart(H,re),B.setEnd(H,re)}}return H},zee=(r,g)=>{g.normalize();const B=g.lastChild;(!B||ne(B)&&/^(left|right)$/gi.test(r.getStyle(B,"float",!0)))&&r.add(g,"br")},_fe=(r,g)=>{const B=Ec(r);return T(g)?!1:v(B)?ce(mo.explode(B),g.nodeName.toLowerCase()):B},HV={insert:(r,g)=>{let B,H,re,be,Re=!1;const Ke=r.dom,ct=r.schema,kt=ct.getNonEmptyElements(),Wt=r.selection.getRng(),Jt=dc(r),ln=sr.fromDom(Wt.startContainer),kn=ks(ln,Wt.startOffset),Vn=kn.exists(xo=>iu(xo)&&!js(xo)),Rn=Wt.collapsed&&Vn,qn=(xo,bi)=>VV(r,B,jo,wo,Wx(r),xo,bi),pr=xo=>{const bi=oR(xo,B,H);if(Nt(B)&&(xo?bi>0:bi{let xo;return/^(H[1-6]|PRE|FIGURE)$/.test(re)&&di!=="HGROUP"?xo=qn(Jt):xo=qn(),_fe(r,be)&&rR(Ke,be)&&Ke.isEmpty(jo,void 0,{includeZwsp:!0})?xo=Ke.split(be,jo):Ke.insertAfter(xo,jo),O4(r,xo),xo};Ko(Ke,Wt).each(xo=>{Wt.setStart(xo.startContainer,xo.startOffset),Wt.setEnd(xo.endContainer,xo.endOffset)}),B=Wt.startContainer,H=Wt.startOffset;const wr=!!(g&&g.shiftKey),Ur=!!(g&&g.ctrlKey);ne(B)&&B.hasChildNodes()&&!Rn&&(Re=H>B.childNodes.length-1,B=B.childNodes[Math.min(H,B.childNodes.length-1)]||B,Re&&Nt(B)?H=B.data.length:H=0);const wo=Sk(Ke,B);if(!wo||Iee(r,B))return;wr||(B=aR(r,Jt,Wt,B,H));let jo=Ke.getParent(B,Ke.isBlock)||Ke.getRoot();be=E(jo==null?void 0:jo.parentNode)?Ke.getParent(jo.parentNode,Ke.isBlock):null,re=jo?jo.nodeName.toUpperCase():"";const di=be?be.nodeName.toUpperCase():"";if(di==="LI"&&!Ur){const xo=be;jo=xo,be=xo.parentNode,re=di}if(ne(be)&&Aee(r,wr,jo))return Mee(r,qn,jo);if(/^(LI|DT|DD)$/.test(re)&&ne(be)&&Ke.isEmpty(jo)){Ree(r,qn,be,jo,Jt);return}if(!Rn&&(jo===r.getBody()||!rR(Ke,jo)))return;const lo=jo.parentNode;let eo;if(Rn)eo=qn(Jt),kn.fold(()=>{Ps(ln,sr.fromDom(eo))},xo=>{Fc(xo,sr.fromDom(eo))}),r.selection.setCursorLocation(eo,0);else if(gg(jo))eo=Ra(jo),Ke.isEmpty(jo)&&S8(jo),kk(r,eo),O4(r,eo);else if(pr(!1))eo=Tr();else if(pr(!0)&&lo){const xo=qr.fromRangeStart(Wt),bi=NE(xo),Bi=sr.fromDom(jo),Ia=VE(Bi,xo,r.schema)?MB(Bi,xo,r.schema).bind(sl=>Y.from(sl.getNode())):Y.none();eo=lo.insertBefore(qn(),jo);const Us=nR(jo,"HR")||bi?eo:Ia.getOr(jo);O4(r,Us)}else{const xo=Bee(Wt).cloneRange();xo.setEndAfter(jo);const bi=xo.extractContents();Lee(bi),iR(bi),eo=bi.firstChild,Ke.insertAfter(bi,jo),k8(Ke,kt,eo),zee(Ke,jo),Ke.isEmpty(jo)&&S8(jo),eo.normalize(),Ke.isEmpty(eo)?(Ke.remove(eo),Tr()):(kk(r,eo),O4(r,eo))}Ke.setAttrib(eo,"id",""),r.dispatch("NewBlock",{newBlock:eo})},fakeEventName:"insertParagraph"},Fee=(r,g,B)=>{const H=new kc(g,B);let re;const be=r.getNonEmptyElements();for(;re=H.next();)if(be[re.nodeName.toLowerCase()]||Nt(re)&&re.length>0)return!0;return!1},Nee=(r,g,B)=>{const H=r.dom.createRng();B?(H.setStartBefore(g),H.setEndBefore(g)):(H.setStartAfter(g),H.setEndAfter(g)),r.selection.setRng(H),m5(r,H)},$ee=(r,g)=>{const B=r.selection,H=r.dom,re=B.getRng();let be,Re=!1;Ko(H,re).each(kn=>{re.setStart(kn.startContainer,kn.startOffset),re.setEnd(kn.endContainer,kn.endOffset)});let Ke=re.startOffset,ct=re.startContainer;if(ne(ct)&&ct.hasChildNodes()){const kn=Ke>ct.childNodes.length-1;ct=ct.childNodes[Math.min(Ke,ct.childNodes.length-1)]||ct,kn&&Nt(ct)?Ke=ct.data.length:Ke=0}let kt=H.getParent(ct,H.isBlock);const Wt=kt&&kt.parentNode?H.getParent(kt.parentNode,H.isBlock):null,Jt=Wt?Wt.nodeName.toUpperCase():"",ln=!!(g&&g.ctrlKey);Jt==="LI"&&!ln&&(kt=Wt),Nt(ct)&&Ke>=ct.data.length&&(Fee(r.schema,ct,kt||H.getRoot())||(be=H.create("br"),re.insertNode(be),re.setStartAfter(be),re.setEndAfter(be),Re=!0)),be=H.create("br"),Ae(H,re,be),Nee(r,be,Re),r.undoManager.add()},Sv=(r,g)=>{const B=sr.fromTag("br");Fc(sr.fromDom(g),B),r.undoManager.add()},Vee=(r,g)=>{Uee(r.getBody(),g)||si(sr.fromDom(g),sr.fromTag("br"));const B=sr.fromTag("br");si(sr.fromDom(g),B),Nee(r,B.dom,!1),r.undoManager.add()},ZV=r=>On(r.getNode()),Uee=(r,g)=>ZV(qr.after(g))?!0:sh(r,qr.after(g)).map(B=>On(B.getNode())).getOr(!1),qV=r=>r&&r.nodeName==="A"&&"href"in r,jee=r=>r.fold(oe,qV,qV,oe),Qee=r=>{const g=U(T2,r),B=qr.fromRangeStart(r.selection.getRng());return Fy(g,r.getBody(),B).filter(jee)},Hee=(r,g)=>{g.fold(k,U(Sv,r),U(Vee,r),k)},T8={insert:(r,g)=>{const B=Qee(r);B.isSome()?B.each(U(Hee,r)):$ee(r,g)},fakeEventName:"insertLineBreak"},sR=(r,g)=>G9(r).filter(B=>g.length>0&&_f(sr.fromDom(B),g)).isSome(),C8=r=>sR(r,Dm(r)),Zee=r=>sR(r,H1(r)),Eg=aa.generate([{br:[]},{block:[]},{none:[]}]),qee=(r,g)=>Zee(r),WV=r=>(g,B)=>Cee(g)===r,YV=(r,g)=>(B,H)=>Tee(B)===r.toUpperCase()===g,XV=r=>{const g=Sk(r.dom,r.selection.getStart());return T(g)},Tk=r=>YV("pre",r),GV=()=>YV("summary",!0),Ck=r=>(g,B)=>Hp(g)===r,Wee=(r,g)=>C8(r),A8=(r,g)=>g,lR=r=>{const g=dc(r),B=Sk(r.dom,r.selection.getStart());return E(B)&&r.schema.isValidChild(B.nodeName,g)},Yee=r=>{const g=r.selection.getRng(),B=sr.fromDom(g.startContainer),re=ks(B,g.startOffset).map(be=>iu(be)&&!js(be));return g.collapsed&&re.getOr(!0)},b0=(r,g)=>(B,H)=>Ie(r,(be,Re)=>be&&Re(B,H),!0)?Y.some(g):Y.none(),M8=(r,g)=>ZP([b0([qee],Eg.none()),b0([Tk(!0),XV],Eg.none()),b0([GV()],Eg.br()),b0([Tk(!0),Ck(!1),A8],Eg.br()),b0([Tk(!0),Ck(!1)],Eg.block()),b0([Tk(!0),Ck(!0),A8],Eg.block()),b0([Tk(!0),Ck(!0)],Eg.br()),b0([WV(!0),A8],Eg.br()),b0([WV(!0)],Eg.block()),b0([Wee],Eg.br()),b0([A8],Eg.br()),b0([lR],Eg.block()),b0([Yee],Eg.block())],[r,!!(g&&g.shiftKey)]).getOr(Eg.none()),E8=(r,g,B)=>{g.selection.isCollapsed()||VW(g),!(E(B)&&aO(g,r.fakeEventName).isDefaultPrevented())&&(r.insert(g,B),E(B)&&Ok(g,r.fakeEventName))},P8=(r,g)=>{const B=()=>E8(T8,r,g),H=()=>E8(HV,r,g),re=M8(r,g);switch(yg(r)){case"linebreak":re.fold(B,B,k);break;case"block":re.fold(H,H,k);break;case"invert":re.fold(H,B,k);break;default:re.fold(B,H,k);break}},R8=tr(),KV=R8.os.isiOS()&&R8.browser.isSafari(),JV=(r,g)=>{g.isDefaultPrevented()||(g.preventDefault(),dX(r.undoManager),r.undoManager.transact(()=>{P8(r,g)}))},Sfe=r=>{if(!r.collapsed)return!1;const g=r.startContainer;if(Nt(g)){const B=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,H=g.data.charAt(r.startOffset-1);return B.test(H)}else return!1},$2=r=>{let g=Y.none();const B=re=>{g=Y.some(re.selection.getBookmark()),re.undoManager.add()},H=(re,be)=>{re.undoManager.undo(),g.fold(k,Re=>re.selection.moveToBookmark(Re)),JV(re,be),g=Y.none()};r.on("keydown",re=>{re.keyCode===Fo.ENTER&&(KV&&Sfe(r.selection.getRng())?B(r):JV(r,re))}),r.on("keyup",re=>{re.keyCode===Fo.ENTER&&g.each(()=>H(r,re))})},Xee=(r,g,B)=>{const H=fr.os.isMacOS()||fr.os.isiOS();r8([{keyCode:Fo.END,action:ua(b4,r,!0)},{keyCode:Fo.HOME,action:ua(b4,r,!1)},...H?[]:[{keyCode:Fo.HOME,action:ua(c1,r,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Fo.END,action:ua(c1,r,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Fo.END,action:ua(eJ,r,!0)},{keyCode:Fo.HOME,action:ua(eJ,r,!1)},{keyCode:Fo.END,action:ua(YC,r,!0,g)},{keyCode:Fo.HOME,action:ua(YC,r,!1,g)}],B).each(re=>{B.preventDefault()})},Gee=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||Xee(r,g,B)})},Kee=r=>{r.on("input",g=>{g.isComposing||$B(r)})},L8=tr(),eU=(r,g,B)=>{r8([{keyCode:Fo.PAGE_UP,action:ua(YC,r,!1,g)},{keyCode:Fo.PAGE_DOWN,action:ua(YC,r,!0,g)}],B)},cR=r=>r.stopImmediatePropagation(),tU=r=>r.keyCode===Fo.PAGE_UP||r.keyCode===Fo.PAGE_DOWN,uR=(r,g,B)=>{B&&!r.get()?g.on("NodeChange",cR,!0):!B&&r.get()&&g.off("NodeChange",cR),r.set(B)},Jee=(r,g)=>{if(L8.os.isMacOS())return;const B=mr(!1);r.on("keydown",H=>{tU(H)&&uR(B,r,!0)}),r.on("keyup",H=>{H.isDefaultPrevented()||eU(r,g,H),tU(H)&&B.get()&&(uR(B,r,!1),r.nodeChanged())})},ete=r=>{r.on("beforeinput",g=>{(!r.selection.isEditable()||de(g.getTargetRanges(),B=>!iB(r.dom,B)))&&g.preventDefault()})},nU=(r,g)=>{const B=g.container(),H=g.offset();return Nt(B)?(B.insertData(H,r),Y.some(qr(B,H+r.length))):d3(g).map(re=>{const be=sr.fromText(r);return g.isAtEnd()?si(re,be):Fc(re,be),qr(be.dom,r.length)})},I8=U(nU,Ea),D8=U(nU," "),tte=(r,g,B)=>DB(r,g,B)?I8(g):D8(g),fR=r=>g=>g.fold(B=>mp(r.dom,qr.before(B)),B=>lh(B),B=>Xp(B),B=>sh(r.dom,qr.after(B))),rU=(r,g,B)=>H=>DB(r,H,B)?I8(g):D8(g),Ak=r=>g=>{r.selection.setRng(g.toRange()),r.nodeChanged()},oU=(r,g)=>r.isEditable(r.getParent(g,"summary")),iU=r=>{const g=qr.fromRangeStart(r.selection.getRng()),B=sr.fromDom(r.getBody());if(r.selection.isCollapsed()){const H=U(T2,r),re=qr.fromRangeStart(r.selection.getRng());return Fy(H,r.getBody(),re).bind(fR(B)).map(be=>()=>rU(B,g,r.schema)(be).each(Ak(r)))}else return Y.none()},nte=r=>{const g=()=>{const B=sr.fromDom(r.getBody());r.selection.isCollapsed()||r.getDoc().execCommand("Delete");const H=qr.fromRangeStart(r.selection.getRng());tte(B,H,r.schema).each(Ak(r))};return ma(fr.browser.isFirefox()&&r.selection.isEditable()&&oU(r.dom,r.selection.getRng().startContainer),g)},rte=(r,g)=>{KK([{keyCode:Fo.SPACEBAR,action:ua(iU,r)},{keyCode:Fo.SPACEBAR,action:ua(nte,r)}],g).each(B=>{g.preventDefault(),aO(r,"insertText",{data:" "}).isDefaultPrevented()||(B(),Ok(r,"insertText",{data:" "}))})},B8=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||rte(r,g)})},aU=r=>CS(r)?[{keyCode:Fo.TAB,action:ua(S9,r,!0)},{keyCode:Fo.TAB,shiftKey:!0,action:ua(S9,r,!1)}]:[],ote=(r,g)=>{r8([...aU(r)],g).each(B=>{g.preventDefault()})},ite=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||ote(r,g)})},sU=r=>{if(r.addShortcut("Meta+P","","mcePrint"),pee(r),Iy(r))return mr(null);{const g=yK(r);return ete(r),f9(r),wJ(r,g),kee(r,g),$2(r),B8(r),Kee(r),ite(r),Gee(r,g),Jee(r,g),g}};class ate{constructor(g){this.lastPath=[],this.editor=g;let B;const H=this;"onselectionchange"in g.getDoc()||g.on("NodeChange click mouseup keyup focus",re=>{const be=g.selection.getRng(),Re={startContainer:be.startContainer,startOffset:be.startOffset,endContainer:be.endContainer,endOffset:be.endOffset};(re.type==="nodechange"||!st(Re,B))&&g.dispatch("SelectionChange"),B=Re}),g.on("contextmenu",()=>{g5(g),g.dispatch("SelectionChange")}),g.on("SelectionChange",()=>{const re=g.selection.getStart(!0);re&&XS(g)&&!H.isSameElementPath(re)&&g.dom.isChildOf(re,g.getBody())&&g.nodeChanged({selectionChange:!0})}),g.on("mouseup",re=>{!re.isDefaultPrevented()&&XS(g)&&(g.selection.getNode().nodeName==="IMG"?kg.setEditorTimeout(g,()=>{g.nodeChanged()}):g.nodeChanged())})}nodeChanged(g={}){const B=this.editor.selection;let H;if(this.editor.initialized&&B&&!J1(this.editor)&&!this.editor.mode.isReadOnly()){const re=this.editor.getBody();H=B.getStart(!0)||re,(H.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(H,re))&&(H=re);const be=[];this.editor.dom.getParent(H,Re=>Re===re?!0:(be.push(Re),!1)),this.editor.dispatch("NodeChange",{...g,element:H,parents:be})}}isSameElementPath(g){let B;const H=this.editor,re=ke(H.dom.getParents(g,q,H.getBody()));if(re.length===this.lastPath.length){for(B=re.length;B>=0&&re[B]===this.lastPath[B];B--);if(B===-1)return this.lastPath=re,!0}return this.lastPath=re,!1}}const lU=L1("image"),ste=r=>{const g=r;return Y.from(g[lU])},lte=(r,g)=>{const B=r;B[lU]=g},dR=L1("event"),cU=r=>{const g=r;return Y.from(g[dR])},z8=r=>g=>{const B=g;B[dR]=r},uU=(r,g)=>z8(g)(r),fU=z8(0),cte=z8(2),ute=z8(1),fte=(r=>g=>{const B=g;return Y.from(B[dR]).exists(H=>H===r)})(0),S4=()=>Object.freeze({length:0,item:r=>null}),hR=L1("mode"),dte=r=>{const g=r;return Y.from(g[hR])},Mk=r=>g=>{const B=g;B[hR]=r},dU=(r,g)=>Mk(g)(r),hU=Mk(0),pR=Mk(2),pU=Mk(1),mU=r=>g=>{const B=g;return Y.from(B[hR]).exists(H=>H===r)},k4=mU(0),hte=mU(1),F8=(r,g)=>({...g,get length(){return g.length},add:(B,H)=>{if(k4(r))if(v(B)){if(!M(H))return g.add(B,H)}else return g.add(B);return null},remove:B=>{k4(r)&&g.remove(B)},clear:()=>{k4(r)&&g.clear()}}),pte=["none","copy","link","move"],mte=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],mR=()=>{const r=new window.DataTransfer;let g="move",B="all";const H={get dropEffect(){return g},set dropEffect(re){ce(pte,re)&&(g=re)},get effectAllowed(){return B},set effectAllowed(re){fte(H)&&ce(mte,re)&&(B=re)},get items(){return F8(H,r.items)},get files(){return hte(H)?S4():r.files},get types(){return r.types},setDragImage:(re,be,Re)=>{k4(H)&&(lte(H,{image:re,x:be,y:Re}),r.setDragImage(re,be,Re))},getData:re=>hte(H)?"":r.getData(re),setData:(re,be)=>{k4(H)&&r.setData(re,be)},clearData:re=>{k4(H)&&r.clearData(re)}};return hU(H),H},gte=r=>{const g=mR(),B=dte(r);return pR(r),fU(g),g.dropEffect=r.dropEffect,g.effectAllowed=r.effectAllowed,ste(r).each(H=>g.setDragImage(H.image,H.x,H.y)),ye(r.types,H=>{H!=="Files"&&g.setData(H,r.getData(H))}),ye(r.files,H=>g.items.add(H)),cU(r).each(H=>{uU(g,H)}),B.each(H=>{dU(r,H),dU(g,H)}),g},vte=r=>{const g=r.getData("text/html");return g===""?Y.none():Y.some(g)},gU=(r,g)=>r.setData("text/html",g),vU="x-tinymce/html",N8=$(vU),gR="",yte=r=>gR+r,bte=r=>r.replace(gR,""),yU=r=>r.indexOf(gR)!==-1,xte=r=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(r),Yl=(r,g)=>{let B="<"+r;const H=en(g,(re,be)=>be+'="'+up.encodeAllRaw(re)+'"');return H.length&&(B+=" "+H.join(" ")),B+">"},_te=(r,g,B)=>{const H=r.split(/\n\n/),re=Yl(g,B),be="",Re=ve(H,ct=>ct.split(/\n/).join("
    ")),Ke=ct=>re+ct+be;return Re.length===1?Re[0]:ve(Re,Ke).join("")},vR="%MCEPASTEBIN%",wte=(r,g)=>{const{dom:B,selection:H}=r,re=r.getBody();g.set(H.getRng());const be=B.add(r.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},vR);fr.browser.isFirefox()&&B.setStyle(be,"left",B.getStyle(re,"direction",!0)==="rtl"?65535:-65535),B.bind(be,"beforedeactivate focusin focusout",Re=>{Re.stopPropagation()}),be.focus(),H.select(be,!0)},yR=(r,g)=>{const B=r.dom;if($8(r)){let H;const re=g.get();for(;H=$8(r);)B.remove(H),B.unbind(H);re&&r.selection.setRng(re)}g.set(null)},$8=r=>r.dom.get("mcepastebin"),Ote=r=>E(r)&&r.id==="mcepastebin",Ste=r=>{const g=r.dom,B=(Re,Ke)=>{Re.appendChild(Ke),g.remove(Ke,!0)},[H,...re]=Te(r.getBody().childNodes,Ote);ye(re,Re=>{B(H,Re)});const be=g.select("div[id=mcepastebin]",H);for(let Re=be.length-1;Re>=0;Re--){const Ke=g.create("div");H.insertBefore(Ke,be[Re]),B(Ke,be[Re])}return H?H.innerHTML:""},bR=r=>r===vR,xR=r=>{const g=mr(null);return{create:()=>wte(r,g),remove:()=>yR(r,g),getEl:()=>$8(r),getHtml:()=>Ste(r),getLastRng:g.get}},bU=(r,g)=>(mo.each(g,B=>{m(B,RegExp)?r=r.replace(B,""):r=r.replace(B[0],B[1])}),r),kte=r=>{const g=Np(),B=Ry({},g);let H="";const re=g.getVoidElements(),be=mo.makeMap("script noscript style textarea video audio iframe object"," "),Re=g.getBlockElements(),Ke=ct=>{const kt=ct.name,Wt=ct;if(kt==="br"){H+=` +Input object: `+vk(r.input),z9=(r,g)=>f1(r,ht(g,B9)),qJ=$(VJ),_k=(r,g)=>D9(B=>{const H=typeof B;return r(B)?Ud.svalue(B):Ud.serror(`Expected type: ${g} but got: ${H}`)}),TV=_k(L,"number"),y8=_k(v,"string"),WJ=_k(R,"boolean"),F9=_k(C,"function"),wk=NJ,N9=$J,YJ=r=>QJ(g=>ce(r,g)?gs.value(g):gs.error(`Unsupported value: "${g}", choose one of "${r.join(", ")}".`)),CV=(r,g)=>wk(r,r,vV(),g),$9=r=>CV(r,y8),AV=r=>CV(r,F9),XJ=(r,g)=>wk(r,r,vV(),SV(g)),b8=(r,g)=>wk(r,r,BJ(),g),x8=r=>b8(r,y8),GJ=r=>b8(r,F9),KJ=(r,g)=>wk(r,r,_4(g),qJ()),iO=(r,g,B)=>wk(r,r,_4(g),B),V9=(r,g)=>iO(r,g,TV),JJ=(r,g)=>iO(r,g,y8),MV=(r,g,B)=>iO(r,g,YJ(B)),U9=(r,g)=>iO(r,g,WJ),j9=(r,g)=>iO(r,g,F9),eee=(r,g,B)=>iO(r,g,SV(B)),tee=$9("type"),nee=AV("fetch"),Q9=AV("onAction"),yfe=j9("onSetup",()=>k),ree=x8("text"),_8=x8("icon"),EV=x8("tooltip"),PV=x8("label"),oee=U9("active",!1),RV=U9("enabled",!0),H9=U9("primary",!1),iee=r=>KJ("columns",r),Ok=r=>JJ("type",r),aee=B9([tee,$9("trigger"),V9("minChars",1),iee(1),V9("maxResults",10),GJ("matches"),nee,Q9,eee("highlightOn",[],y8)]),LV=r=>kV("Autocompleter",aee,r),Z9=[RV,EV,_8,ree,yfe],w8=[oee].concat(Z9),see=[j9("predicate",oe),MV("scope","node",["node","editor"]),MV("position","selection",["node","selection","line"])],lee=Z9.concat([Ok("contextformbutton"),H9,Q9,N9("original",Q)]),cee=w8.concat([Ok("contextformbutton"),H9,Q9,N9("original",Q)]),IV=Z9.concat([Ok("contextformbutton")]),uee=w8.concat([Ok("contextformtogglebutton")]),fee=z9("type",{contextformbutton:lee,contextformtogglebutton:cee});B9([Ok("contextform"),j9("initValue",$("")),PV,XJ("commands",fee),b8("launch",z9("type",{contextformbutton:IV,contextformtogglebutton:uee}))].concat(see));const dee=r=>{const g=r.ui.registry.getAll().popups,B=ht(g,Re=>LV(Re).fold(Ke=>{throw new Error(ZJ(Ke))},Q)),H=bn(en(B,Re=>Re.trigger)),re=Gt(B);return{dataset:B,triggers:H,lookupByTrigger:Re=>Te(re,Ke=>Ke.trigger===Re)}},hee=(r,g)=>{const B=n0(g.load,50);r.on("input",H=>{H.inputType==="insertCompositionText"&&!r.composing||B.throttle()}),r.on("keydown",H=>{const re=H.which;re===8?B.throttle():re===27?(B.cancel(),g.cancelIfNecessary()):(re===38||re===40)&&B.cancel()},!0),r.on("remove",B.cancel)},pee=r=>{const g=Ys(),B=mr(!1),H=g.isSet,re=()=>{H()&&(s6(r),B.set(!1),g.clear())},be=Jt=>{H()||g.set({trigger:Jt.trigger,matchLength:Jt.text.length})},Re=xt(()=>dee(r)),Ke=Jt=>g.get().map(ln=>M9(r.dom,r.selection.getRng(),ln.trigger,!0).bind(kn=>dV(r,Re,kn,Jt))).getOrThunk(()=>PJ(r,Re)),ct=Jt=>{Ke(Jt).fold(re,ln=>{be(ln.context),ln.lookupData.then(kn=>{g.get().map(Vn=>{const Rn=ln.context;Vn.trigger===Rn.trigger&&(g.set({...Vn,matchLength:Rn.text.length}),B.get()?(a6(r,{range:Rn.range}),a5(r,{lookupData:kn})):(B.set(!0),a6(r,{range:Rn.range}),i6(r,{lookupData:kn})))})})})},kt=(Jt,ln)=>{const kn=Jt.compareBoundaryPoints(window.Range.START_TO_START,ln),Vn=Jt.compareBoundaryPoints(window.Range.END_TO_END,ln);return kn>=0&&Vn<=0},Wt=()=>g.get().bind(({trigger:Jt})=>{const ln=r.selection.getRng();return M9(r.dom,ln,Jt,B.get()).filter(({range:kn})=>kt(ln,kn)).map(({range:kn})=>kn)});r.addCommand("mceAutocompleterReload",(Jt,ln)=>{const kn=_(ln)?ln.fetchOptions:{};ct(kn)}),r.addCommand("mceAutocompleterClose",re),r.addCommand("mceAutocompleterRefreshActiveRange",()=>{Wt().each(Jt=>{a6(r,{range:Jt})})}),r.editorCommands.addQueryStateHandler("mceAutoCompleterInRange",()=>Wt().isSome()),hee(r,{cancelIfNecessary:re,load:ct})},$y=tr().browser.isSafari(),DV=r=>rh(sr.fromDom(r)),mee=(r,g)=>{var B;return r.startOffset===0&&r.endOffset===((B=g.textContent)===null||B===void 0?void 0:B.length)},O8=(r,g)=>Y.from(r.getParent(g.container(),"details")),BV=(r,g)=>O8(r,g).isSome(),gee=(r,g)=>{const B=Y.from(r.getParent(g.startContainer,"details")),H=Y.from(r.getParent(g.endContainer,"details"));if(B.isSome()||H.isSome()){const re=B.bind(be=>Y.from(r.select("summary",be)[0]));return Y.some({startSummary:re,startDetails:B,endDetails:H})}else return Y.none()},vee=(r,g)=>lh(g).exists(B=>B.isEqual(r)),zV=(r,g)=>Xp(g).exists(B=>On(B.getNode())&&mp(g,B).exists(H=>H.isEqual(r))||B.isEqual(r)),w4=(r,g)=>g.startSummary.exists(B=>vee(r,B)),bfe=(r,g)=>g.startSummary.exists(B=>zV(r,B)),yee=(r,g)=>g.startDetails.exists(B=>mp(B,r).forall(H=>g.startSummary.exists(re=>!re.contains(r.container())&&re.contains(H.container())))),bee=(r,g,B)=>B.startDetails.exists(H=>sh(r,g).forall(re=>!H.contains(re.container()))),d1=(r,g)=>{const B=g.getNode();M(B)||r.selection.setCursorLocation(B,g.offset())},FV=(r,g,B)=>{const H=r.dom.getParent(g.container(),"details");if(H&&!H.open){const re=r.dom.select("summary",H)[0];re&&(B?lh(re):Xp(re)).each(Re=>d1(r,Re))}else d1(r,g)},xee=(r,g)=>{const B=ct=>ct.contains(r.startContainer),H=ct=>ct.contains(r.endContainer),re=g.startSummary.exists(B),be=g.startSummary.exists(H),Re=g.startDetails.forall(ct=>g.endDetails.forall(kt=>ct!==kt));return(re||be)&&!(re&&be)||Re},q9=(r,g,B)=>{const{dom:H,selection:re}=r,be=r.getBody();if(B==="character"){const Re=qr.fromRangeStart(re.getRng()),Ke=H.getParent(Re.container(),H.isBlock),ct=O8(H,Re),kt=Ke&&H.isEmpty(Ke),Wt=x(Ke==null?void 0:Ke.previousSibling),Jt=x(Ke==null?void 0:Ke.nextSibling);return kt&&(g?Jt:Wt)&&uv(!g,be,Re).exists(Vn=>BV(H,Vn)&&!Xl(ct,O8(H,Vn)))?!0:uv(g,be,Re).fold(oe,ln=>{const kn=O8(H,ln);if(BV(H,ln)&&!Xl(ct,kn)){if(g||FV(r,ln,!1),Ke&&kt){if(g&&Wt)return!0;if(!g&&Jt)return!0;FV(r,ln,g),r.dom.remove(Ke)}return!0}else return!1})}else return!1},_ee=(r,g,B,H)=>{const be=r.selection.getRng(),Re=qr.fromRangeStart(be),Ke=r.getBody();return H==="selection"?xee(be,g):B?bfe(Re,g)||bee(Ke,Re,g):w4(Re,g)||yee(Re,g)},W9=(r,g,B)=>gee(r.dom,r.selection.getRng()).fold(()=>q9(r,g,B),H=>_ee(r,H,g,B)||q9(r,g,B)),Vy=(r,g,B)=>{const H=r.selection,re=H.getNode(),be=H.getRng(),Re=qr.fromRangeStart(be);return vo(re)?(B==="selection"&&mee(be,re)||S5(g,Re,re)?DV(re):r.undoManager.transact(()=>{const Ke=H.getSel();let{anchorNode:ct,anchorOffset:kt,focusNode:Wt,focusOffset:Jt}=Ke??{};const ln=()=>{E(ct)&&E(kt)&&E(Wt)&&E(Jt)&&(Ke==null||Ke.setBaseAndExtent(ct,kt,Wt,Jt))},kn=()=>{ct=Ke==null?void 0:Ke.anchorNode,kt=Ke==null?void 0:Ke.anchorOffset,Wt=Ke==null?void 0:Ke.focusNode,Jt=Ke==null?void 0:Ke.focusOffset},Vn=(qn,pr)=>{ye(qn.childNodes,Tr=>{b2(Tr)&&pr.appendChild(Tr)})},Rn=r.dom.create("span",{"data-mce-bogus":"1"});Vn(re,Rn),re.appendChild(Rn),ln(),(B==="word"||B==="line")&&(Ke==null||Ke.modify("extend",g?"right":"left",B)),!H.isCollapsed()&&mee(H.getRng(),Rn)?DV(re):(r.execCommand(g?"ForwardDelete":"Delete"),kn(),Vn(Rn,re),ln()),r.dom.remove(Rn)}),!0):!1},N2=(r,g,B)=>W9(r,g,B)||$y&&Vy(r,g,B)?Y.some(k):Y.none(),Y9=r=>(g,B,H={})=>{const re=g.getBody(),be={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:re,currentTarget:re,eventPhase:Event.AT_TARGET,originalTarget:re,explicitOriginalTarget:re,isTrusted:!1,srcElement:re,cancelable:!1,preventDefault:k,inputType:B},Re=$p(new InputEvent(r));return g.dispatch(r,{...Re,...be,...H})},Sk=Y9("input"),aO=Y9("beforeinput"),S8=tr(),X9=S8.os,G9=X9.isMacOS()||X9.isiOS(),wee=S8.browser.isFirefox(),Oee=(r,g,B)=>{const H=B.keyCode===Fo.BACKSPACE?"deleteContentBackward":"deleteContentForward",re=r.selection.isCollapsed(),be=re?"character":"selection",Re=Ke=>re?Ke?"word":"line":"selection";KK([{keyCode:Fo.BACKSPACE,action:ua(c9,r)},{keyCode:Fo.BACKSPACE,action:ua(sk,r,!1)},{keyCode:Fo.DELETE,action:ua(sk,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(IP,r,!1)},{keyCode:Fo.DELETE,action:ua(IP,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(dk,r,g,!1)},{keyCode:Fo.DELETE,action:ua(dk,r,g,!0)},{keyCode:Fo.BACKSPACE,action:ua(Bw,r,!1)},{keyCode:Fo.DELETE,action:ua(Bw,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(N2,r,!1,be)},{keyCode:Fo.DELETE,action:ua(N2,r,!0,be)},...G9?[{keyCode:Fo.BACKSPACE,altKey:!0,action:ua(N2,r,!1,Re(!0))},{keyCode:Fo.DELETE,altKey:!0,action:ua(N2,r,!0,Re(!0))},{keyCode:Fo.BACKSPACE,metaKey:!0,action:ua(N2,r,!1,Re(!1))}]:[{keyCode:Fo.BACKSPACE,ctrlKey:!0,action:ua(N2,r,!1,Re(!0))},{keyCode:Fo.DELETE,ctrlKey:!0,action:ua(N2,r,!0,Re(!0))}],{keyCode:Fo.BACKSPACE,action:ua(p4,r,!1)},{keyCode:Fo.DELETE,action:ua(p4,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(t8,r,!1)},{keyCode:Fo.DELETE,action:ua(t8,r,!0)},{keyCode:Fo.BACKSPACE,action:ua($C,r,!1)},{keyCode:Fo.DELETE,action:ua($C,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(FC,r,!1)},{keyCode:Fo.DELETE,action:ua(FC,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(o9,r,!1)},{keyCode:Fo.DELETE,action:ua(o9,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(h4,r,!1)},{keyCode:Fo.DELETE,action:ua(h4,r,!0)}],B).filter(Ke=>r.selection.isEditable()).each(Ke=>{B.preventDefault(),aO(r,H).isDefaultPrevented()||(Ke(),Sk(r,H))})},See=(r,g,B)=>o8([{keyCode:Fo.BACKSPACE,action:ua(VP,r)},{keyCode:Fo.DELETE,action:ua(VP,r)},...G9?[{keyCode:Fo.BACKSPACE,altKey:!0,action:ua(pk,r)},{keyCode:Fo.DELETE,altKey:!0,action:ua(pk,r)},...B?[{keyCode:wee?224:91,action:ua(pk,r)}]:[]]:[{keyCode:Fo.BACKSPACE,ctrlKey:!0,action:ua(pk,r)},{keyCode:Fo.DELETE,ctrlKey:!0,action:ua(pk,r)}]],g),kee=(r,g)=>{let B=!1;r.on("keydown",H=>{B=H.keyCode===Fo.BACKSPACE,H.isDefaultPrevented()||Oee(r,g,H)}),r.on("keyup",H=>{H.isDefaultPrevented()||See(r,H,B),B=!1})},NV=r=>{for(;r;){if(ne(r)||Nt(r)&&r.data&&/[\r\n\s]/.test(r.data))return r;r=r.nextSibling}return null},O4=(r,g)=>{const B=r.dom,H=r.schema.getMoveCaretBeforeOnEnterElements();if(!g)return;if(/^(LI|DT|DD)$/.test(g.nodeName)){const be=NV(g.firstChild);be&&/^(UL|OL|DL)$/.test(be.nodeName)&&g.insertBefore(B.doc.createTextNode(Ea),g.firstChild)}const re=B.createRng();if(g.normalize(),g.hasChildNodes()){const be=new kc(g,g);let Re=g,Ke;for(;Ke=be.current();){if(Nt(Ke)){re.setStart(Ke,0),re.setEnd(Ke,0);break}if(H[Ke.nodeName.toLowerCase()]){re.setStartBefore(Ke),re.setEndBefore(Ke);break}Re=Ke,Ke=be.next()}Ke||(re.setStart(Re,0),re.setEnd(Re,0))}else On(g)?g.nextSibling&&B.isBlock(g.nextSibling)?(re.setStartBefore(g),re.setEndBefore(g)):(re.setStartAfter(g),re.setEndAfter(g)):(re.setStart(g,0),re.setEnd(g,0));r.selection.setRng(re),g5(r,re)},kk=(r,g)=>{const B=r.getRoot();let H,re=g;for(;re!==B&&re&&r.getContentEditable(re)!=="false";){if(r.getContentEditable(re)==="true"){H=re;break}re=re.parentNode}return re!==B?H:B},K9=r=>Y.from(r.dom.getParent(r.selection.getStart(!0),r.dom.isBlock)),Tee=r=>K9(r).fold($(""),g=>g.nodeName.toUpperCase()),Cee=r=>K9(r).filter(g=>nh(sr.fromDom(g))).isSome(),k8=r=>{r.innerHTML='
    '},$V=(r,g,B)=>{const H=r.dom;Y.from(B.style).map(H.parseStyle).each(ct=>{const Wt={...vc(sr.fromDom(g)),...ct};H.setStyles(g,Wt)});const re=Y.from(B.class).map(ct=>ct.split(/\s+/)),be=Y.from(g.className).map(ct=>Te(ct.split(/\s+/),kt=>kt!==""));us(re,be,(ct,kt)=>{const Wt=Te(kt,ln=>!ce(ct,ln)),Jt=[...ct,...Wt];H.setAttrib(g,"class",Jt.join(" "))});const Re=["style","class"],Ke=qt(B,(ct,kt)=>!ce(Re,kt));H.setAttribs(g,Ke)},Tk=(r,g)=>{if(dc(r).toLowerCase()===g.tagName.toLowerCase()){const H=Jf(r);$V(r,g,H)}},VV=(r,g,B,H,re=!0,be,Re)=>{const Ke=r.dom,ct=r.schema,kt=dc(r),Wt=B?B.nodeName.toUpperCase():"";let Jt=g;const ln=ct.getTextInlineElements();let kn;be||Wt==="TABLE"||Wt==="HR"?kn=Ke.create(be||kt,Re||{}):kn=B.cloneNode(!1);let Vn=kn;if(!re)Ke.setAttrib(kn,"style",null),Ke.setAttrib(kn,"class",null);else do if(ln[Jt.nodeName]){if(Gp(Jt)||Kp(Jt))continue;const Rn=Jt.cloneNode(!1);Ke.setAttrib(Rn,"id",""),kn.hasChildNodes()?(Rn.appendChild(kn.firstChild),kn.appendChild(Rn)):(Vn=Rn,kn.appendChild(Rn))}while((Jt=Jt.parentNode)&&Jt!==H);return Tk(r,kn),k8(Vn),kn},_fe=(r,g)=>r.dom.getParent(g,$o),J9=(r,g,B)=>{let H=g;for(;H&&H!==r&&x(H.nextSibling);){const re=H.parentElement;if(!re||!B(re))return $o(re);H=re}return!1},Aee=(r,g,B)=>!g&&B.nodeName.toLowerCase()===dc(r)&&r.dom.isEmpty(B)&&J9(r.getBody(),B,H=>_t(r.schema.getTextBlockElements(),H.nodeName.toLowerCase())),Mee=(r,g,B)=>{var H,re,be;const Re=g(dc(r)),Ke=_fe(r,B);Ke&&(r.dom.insertAfter(Re,Ke),O4(r,Re),((be=(re=(H=B.parentElement)===null||H===void 0?void 0:H.childNodes)===null||re===void 0?void 0:re.length)!==null&&be!==void 0?be:0)>1&&r.dom.remove(B))},Eee=(r,g)=>r.firstChild&&r.firstChild.nodeName===g,UV=r=>{var g;return((g=r.parentNode)===null||g===void 0?void 0:g.firstChild)===r},jV=(r,g)=>{const B=r==null?void 0:r.parentNode;return E(B)&&B.nodeName===g},eR=r=>E(r)&&/^(OL|UL|LI)$/.test(r.nodeName),tR=r=>E(r)&&/^(LI|DT|DD)$/.test(r.nodeName),Pee=r=>eR(r)&&eR(r.parentNode),nR=r=>{const g=r.parentNode;return tR(g)?g:r},Ad=(r,g,B)=>{let H=r[B?"firstChild":"lastChild"];for(;H&&!ne(H);)H=H[B?"nextSibling":"previousSibling"];return H===g},QV=r=>Ie(en(vc(sr.fromDom(r)),(g,B)=>`${B}: ${g};`),(g,B)=>g+B,""),Ree=(r,g,B,H,re)=>{const be=r.dom,Re=r.selection.getRng(),Ke=B.parentNode;if(B===r.getBody()||!Ke)return;Pee(B)&&(re="LI");const ct=tR(H)?QV(H):void 0;let kt=tR(H)&&ct?g(re,{style:QV(H)}):g(re);if(Ad(B,H,!0)&&Ad(B,H,!1))if(jV(B,"LI")){const Wt=nR(B);be.insertAfter(kt,Wt),UV(B)?be.remove(Wt):be.remove(B)}else be.replace(kt,B);else if(Ad(B,H,!0))jV(B,"LI")?(be.insertAfter(kt,nR(B)),kt.appendChild(be.doc.createTextNode(" ")),kt.appendChild(B)):Ke.insertBefore(kt,B),be.remove(H);else if(Ad(B,H,!1))be.insertAfter(kt,nR(B)),be.remove(H);else{B=nR(B);const Wt=Re.cloneRange();Wt.setStartAfter(H),Wt.setEndAfter(B);const Jt=Wt.extractContents();if(re==="LI"&&Eee(Jt,"LI")){const ln=Te(ve(kt.children,sr.fromDom),X(Ju("br")));kt=Jt.firstChild,be.insertAfter(Jt,B),ye(ln,kn=>Hh(sr.fromDom(kt),kn)),ct&&kt.setAttribute("style",ct)}else be.insertAfter(Jt,B),be.insertAfter(kt,B);be.remove(H)}O4(r,kt)},Lee=r=>{ye(Zf(sr.fromDom(r),ks),g=>{const B=g.dom;B.nodeValue=yd(B.data)})},Iee=(r,g)=>{const B=r.dom.getParent(g,"ol,ul,dl");return B!==null&&r.dom.getContentEditableParent(B)==="false"},Dee=(r,g)=>g&&g.nodeName==="A"&&r.isEmpty(g),rR=(r,g)=>r.nodeName===g||r.previousSibling&&r.previousSibling.nodeName===g,oR=(r,g)=>E(g)&&r.isBlock(g)&&!/^(TD|TH|CAPTION|FORM)$/.test(g.nodeName)&&!/^(fixed|absolute)/i.test(g.style.position)&&r.isEditable(g.parentNode)&&r.getContentEditable(g)!=="false",T8=(r,g,B)=>{var H;const re=[];if(!B)return;let be=B;for(;be=be.firstChild;){if(r.isBlock(be))return;ne(be)&&!g[be.nodeName.toLowerCase()]&&re.push(be)}let Re=re.length;for(;Re--;)be=re[Re],(!be.hasChildNodes()||be.firstChild===be.lastChild&&((H=be.firstChild)===null||H===void 0?void 0:H.nodeValue)===""||Dee(r,be))&&r.remove(be)},iR=(r,g,B)=>Nt(g)?r?B===1&&g.data.charAt(B-1)===nc?0:B:B===g.data.length-1&&g.data.charAt(B)===nc?g.data.length:B:B,Bee=r=>{const g=r.cloneRange();return g.setStart(r.startContainer,iR(!0,r.startContainer,r.startOffset)),g.setEnd(r.endContainer,iR(!1,r.endContainer,r.endOffset)),g},aR=r=>{let g=r;do Nt(g)&&(g.data=g.data.replace(/^[\r\n]+/,"")),g=g.firstChild;while(g)},sR=(r,g,B,H,re)=>{var be,Re;const Ke=r.dom,ct=(be=kk(Ke,H))!==null&&be!==void 0?be:Ke.getRoot();let kt=Ke.getParent(H,Ke.isBlock);if(!kt||!oR(Ke,kt)){if(kt=kt||ct,!kt.hasChildNodes()){const kn=Ke.create(g);return Tk(r,kn),kt.appendChild(kn),B.setStart(kn,0),B.setEnd(kn,0),kn}let Wt=H;for(;Wt&&Wt.parentNode!==kt;)Wt=Wt.parentNode;let Jt;for(;Wt&&!Ke.isBlock(Wt);)Jt=Wt,Wt=Wt.previousSibling;const ln=(Re=Jt==null?void 0:Jt.parentElement)===null||Re===void 0?void 0:Re.nodeName;if(Jt&&ln&&r.schema.isValidChild(ln,g.toLowerCase())){const kn=Jt.parentNode,Vn=Ke.create(g);for(Tk(r,Vn),kn.insertBefore(Vn,Jt),Wt=Jt;Wt&&!Ke.isBlock(Wt);){const Rn=Wt.nextSibling;Vn.appendChild(Wt),Wt=Rn}B.setStart(H,re),B.setEnd(H,re)}}return H},zee=(r,g)=>{g.normalize();const B=g.lastChild;(!B||ne(B)&&/^(left|right)$/gi.test(r.getStyle(B,"float",!0)))&&r.add(g,"br")},wfe=(r,g)=>{const B=Ec(r);return T(g)?!1:v(B)?ce(mo.explode(B),g.nodeName.toLowerCase()):B},HV={insert:(r,g)=>{let B,H,re,be,Re=!1;const Ke=r.dom,ct=r.schema,kt=ct.getNonEmptyElements(),Wt=r.selection.getRng(),Jt=dc(r),ln=sr.fromDom(Wt.startContainer),kn=Ts(ln,Wt.startOffset),Vn=kn.exists(xo=>iu(xo)&&!js(xo)),Rn=Wt.collapsed&&Vn,qn=(xo,bi)=>VV(r,B,jo,wo,Wx(r),xo,bi),pr=xo=>{const bi=iR(xo,B,H);if(Nt(B)&&(xo?bi>0:bi{let xo;return/^(H[1-6]|PRE|FIGURE)$/.test(re)&&di!=="HGROUP"?xo=qn(Jt):xo=qn(),wfe(r,be)&&oR(Ke,be)&&Ke.isEmpty(jo,void 0,{includeZwsp:!0})?xo=Ke.split(be,jo):Ke.insertAfter(xo,jo),O4(r,xo),xo};Ko(Ke,Wt).each(xo=>{Wt.setStart(xo.startContainer,xo.startOffset),Wt.setEnd(xo.endContainer,xo.endOffset)}),B=Wt.startContainer,H=Wt.startOffset;const wr=!!(g&&g.shiftKey),Ur=!!(g&&g.ctrlKey);ne(B)&&B.hasChildNodes()&&!Rn&&(Re=H>B.childNodes.length-1,B=B.childNodes[Math.min(H,B.childNodes.length-1)]||B,Re&&Nt(B)?H=B.data.length:H=0);const wo=kk(Ke,B);if(!wo||Iee(r,B))return;wr||(B=sR(r,Jt,Wt,B,H));let jo=Ke.getParent(B,Ke.isBlock)||Ke.getRoot();be=E(jo==null?void 0:jo.parentNode)?Ke.getParent(jo.parentNode,Ke.isBlock):null,re=jo?jo.nodeName.toUpperCase():"";const di=be?be.nodeName.toUpperCase():"";if(di==="LI"&&!Ur){const xo=be;jo=xo,be=xo.parentNode,re=di}if(ne(be)&&Aee(r,wr,jo))return Mee(r,qn,jo);if(/^(LI|DT|DD)$/.test(re)&&ne(be)&&Ke.isEmpty(jo)){Ree(r,qn,be,jo,Jt);return}if(!Rn&&(jo===r.getBody()||!oR(Ke,jo)))return;const lo=jo.parentNode;let eo;if(Rn)eo=qn(Jt),kn.fold(()=>{Ps(ln,sr.fromDom(eo))},xo=>{Fc(xo,sr.fromDom(eo))}),r.selection.setCursorLocation(eo,0);else if(vg(jo))eo=Ra(jo),Ke.isEmpty(jo)&&k8(jo),Tk(r,eo),O4(r,eo);else if(pr(!1))eo=Tr();else if(pr(!0)&&lo){const xo=qr.fromRangeStart(Wt),bi=$E(xo),Bi=sr.fromDom(jo),Ia=UE(Bi,xo,r.schema)?MB(Bi,xo,r.schema).bind(sl=>Y.from(sl.getNode())):Y.none();eo=lo.insertBefore(qn(),jo);const Us=rR(jo,"HR")||bi?eo:Ia.getOr(jo);O4(r,Us)}else{const xo=Bee(Wt).cloneRange();xo.setEndAfter(jo);const bi=xo.extractContents();Lee(bi),aR(bi),eo=bi.firstChild,Ke.insertAfter(bi,jo),T8(Ke,kt,eo),zee(Ke,jo),Ke.isEmpty(jo)&&k8(jo),eo.normalize(),Ke.isEmpty(eo)?(Ke.remove(eo),Tr()):(Tk(r,eo),O4(r,eo))}Ke.setAttrib(eo,"id",""),r.dispatch("NewBlock",{newBlock:eo})},fakeEventName:"insertParagraph"},Fee=(r,g,B)=>{const H=new kc(g,B);let re;const be=r.getNonEmptyElements();for(;re=H.next();)if(be[re.nodeName.toLowerCase()]||Nt(re)&&re.length>0)return!0;return!1},Nee=(r,g,B)=>{const H=r.dom.createRng();B?(H.setStartBefore(g),H.setEndBefore(g)):(H.setStartAfter(g),H.setEndAfter(g)),r.selection.setRng(H),g5(r,H)},$ee=(r,g)=>{const B=r.selection,H=r.dom,re=B.getRng();let be,Re=!1;Ko(H,re).each(kn=>{re.setStart(kn.startContainer,kn.startOffset),re.setEnd(kn.endContainer,kn.endOffset)});let Ke=re.startOffset,ct=re.startContainer;if(ne(ct)&&ct.hasChildNodes()){const kn=Ke>ct.childNodes.length-1;ct=ct.childNodes[Math.min(Ke,ct.childNodes.length-1)]||ct,kn&&Nt(ct)?Ke=ct.data.length:Ke=0}let kt=H.getParent(ct,H.isBlock);const Wt=kt&&kt.parentNode?H.getParent(kt.parentNode,H.isBlock):null,Jt=Wt?Wt.nodeName.toUpperCase():"",ln=!!(g&&g.ctrlKey);Jt==="LI"&&!ln&&(kt=Wt),Nt(ct)&&Ke>=ct.data.length&&(Fee(r.schema,ct,kt||H.getRoot())||(be=H.create("br"),re.insertNode(be),re.setStartAfter(be),re.setEndAfter(be),Re=!0)),be=H.create("br"),Ae(H,re,be),Nee(r,be,Re),r.undoManager.add()},Tv=(r,g)=>{const B=sr.fromTag("br");Fc(sr.fromDom(g),B),r.undoManager.add()},Vee=(r,g)=>{Uee(r.getBody(),g)||si(sr.fromDom(g),sr.fromTag("br"));const B=sr.fromTag("br");si(sr.fromDom(g),B),Nee(r,B.dom,!1),r.undoManager.add()},ZV=r=>On(r.getNode()),Uee=(r,g)=>ZV(qr.after(g))?!0:sh(r,qr.after(g)).map(B=>On(B.getNode())).getOr(!1),qV=r=>r&&r.nodeName==="A"&&"href"in r,jee=r=>r.fold(oe,qV,qV,oe),Qee=r=>{const g=U(T2,r),B=qr.fromRangeStart(r.selection.getRng());return Fy(g,r.getBody(),B).filter(jee)},Hee=(r,g)=>{g.fold(k,U(Tv,r),U(Vee,r),k)},C8={insert:(r,g)=>{const B=Qee(r);B.isSome()?B.each(U(Hee,r)):$ee(r,g)},fakeEventName:"insertLineBreak"},lR=(r,g)=>K9(r).filter(B=>g.length>0&&wf(sr.fromDom(B),g)).isSome(),A8=r=>lR(r,Dm(r)),Zee=r=>lR(r,q1(r)),Pg=aa.generate([{br:[]},{block:[]},{none:[]}]),qee=(r,g)=>Zee(r),WV=r=>(g,B)=>Cee(g)===r,YV=(r,g)=>(B,H)=>Tee(B)===r.toUpperCase()===g,XV=r=>{const g=kk(r.dom,r.selection.getStart());return T(g)},Ck=r=>YV("pre",r),GV=()=>YV("summary",!0),Ak=r=>(g,B)=>Hp(g)===r,Wee=(r,g)=>A8(r),M8=(r,g)=>g,cR=r=>{const g=dc(r),B=kk(r.dom,r.selection.getStart());return E(B)&&r.schema.isValidChild(B.nodeName,g)},Yee=r=>{const g=r.selection.getRng(),B=sr.fromDom(g.startContainer),re=Ts(B,g.startOffset).map(be=>iu(be)&&!js(be));return g.collapsed&&re.getOr(!0)},b0=(r,g)=>(B,H)=>Ie(r,(be,Re)=>be&&Re(B,H),!0)?Y.some(g):Y.none(),E8=(r,g)=>qP([b0([qee],Pg.none()),b0([Ck(!0),XV],Pg.none()),b0([GV()],Pg.br()),b0([Ck(!0),Ak(!1),M8],Pg.br()),b0([Ck(!0),Ak(!1)],Pg.block()),b0([Ck(!0),Ak(!0),M8],Pg.block()),b0([Ck(!0),Ak(!0)],Pg.br()),b0([WV(!0),M8],Pg.br()),b0([WV(!0)],Pg.block()),b0([Wee],Pg.br()),b0([M8],Pg.br()),b0([cR],Pg.block()),b0([Yee],Pg.block())],[r,!!(g&&g.shiftKey)]).getOr(Pg.none()),P8=(r,g,B)=>{g.selection.isCollapsed()||VW(g),!(E(B)&&aO(g,r.fakeEventName).isDefaultPrevented())&&(r.insert(g,B),E(B)&&Sk(g,r.fakeEventName))},R8=(r,g)=>{const B=()=>P8(C8,r,g),H=()=>P8(HV,r,g),re=E8(r,g);switch(bg(r)){case"linebreak":re.fold(B,B,k);break;case"block":re.fold(H,H,k);break;case"invert":re.fold(H,B,k);break;default:re.fold(B,H,k);break}},L8=tr(),KV=L8.os.isiOS()&&L8.browser.isSafari(),JV=(r,g)=>{g.isDefaultPrevented()||(g.preventDefault(),dX(r.undoManager),r.undoManager.transact(()=>{R8(r,g)}))},kfe=r=>{if(!r.collapsed)return!1;const g=r.startContainer;if(Nt(g)){const B=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,H=g.data.charAt(r.startOffset-1);return B.test(H)}else return!1},$2=r=>{let g=Y.none();const B=re=>{g=Y.some(re.selection.getBookmark()),re.undoManager.add()},H=(re,be)=>{re.undoManager.undo(),g.fold(k,Re=>re.selection.moveToBookmark(Re)),JV(re,be),g=Y.none()};r.on("keydown",re=>{re.keyCode===Fo.ENTER&&(KV&&kfe(r.selection.getRng())?B(r):JV(r,re))}),r.on("keyup",re=>{re.keyCode===Fo.ENTER&&g.each(()=>H(r,re))})},Xee=(r,g,B)=>{const H=fr.os.isMacOS()||fr.os.isiOS();o8([{keyCode:Fo.END,action:ua(b4,r,!0)},{keyCode:Fo.HOME,action:ua(b4,r,!1)},...H?[]:[{keyCode:Fo.HOME,action:ua(c1,r,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Fo.END,action:ua(c1,r,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Fo.END,action:ua(eJ,r,!0)},{keyCode:Fo.HOME,action:ua(eJ,r,!1)},{keyCode:Fo.END,action:ua(XC,r,!0,g)},{keyCode:Fo.HOME,action:ua(XC,r,!1,g)}],B).each(re=>{B.preventDefault()})},Gee=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||Xee(r,g,B)})},Kee=r=>{r.on("input",g=>{g.isComposing||$B(r)})},I8=tr(),eU=(r,g,B)=>{o8([{keyCode:Fo.PAGE_UP,action:ua(XC,r,!1,g)},{keyCode:Fo.PAGE_DOWN,action:ua(XC,r,!0,g)}],B)},uR=r=>r.stopImmediatePropagation(),tU=r=>r.keyCode===Fo.PAGE_UP||r.keyCode===Fo.PAGE_DOWN,fR=(r,g,B)=>{B&&!r.get()?g.on("NodeChange",uR,!0):!B&&r.get()&&g.off("NodeChange",uR),r.set(B)},Jee=(r,g)=>{if(I8.os.isMacOS())return;const B=mr(!1);r.on("keydown",H=>{tU(H)&&fR(B,r,!0)}),r.on("keyup",H=>{H.isDefaultPrevented()||eU(r,g,H),tU(H)&&B.get()&&(fR(B,r,!1),r.nodeChanged())})},ete=r=>{r.on("beforeinput",g=>{(!r.selection.isEditable()||de(g.getTargetRanges(),B=>!iB(r.dom,B)))&&g.preventDefault()})},nU=(r,g)=>{const B=g.container(),H=g.offset();return Nt(B)?(B.insertData(H,r),Y.some(qr(B,H+r.length))):d3(g).map(re=>{const be=sr.fromText(r);return g.isAtEnd()?si(re,be):Fc(re,be),qr(be.dom,r.length)})},D8=U(nU,Ea),B8=U(nU," "),tte=(r,g,B)=>DB(r,g,B)?D8(g):B8(g),dR=r=>g=>g.fold(B=>mp(r.dom,qr.before(B)),B=>lh(B),B=>Xp(B),B=>sh(r.dom,qr.after(B))),rU=(r,g,B)=>H=>DB(r,H,B)?D8(g):B8(g),Mk=r=>g=>{r.selection.setRng(g.toRange()),r.nodeChanged()},oU=(r,g)=>r.isEditable(r.getParent(g,"summary")),iU=r=>{const g=qr.fromRangeStart(r.selection.getRng()),B=sr.fromDom(r.getBody());if(r.selection.isCollapsed()){const H=U(T2,r),re=qr.fromRangeStart(r.selection.getRng());return Fy(H,r.getBody(),re).bind(dR(B)).map(be=>()=>rU(B,g,r.schema)(be).each(Mk(r)))}else return Y.none()},nte=r=>{const g=()=>{const B=sr.fromDom(r.getBody());r.selection.isCollapsed()||r.getDoc().execCommand("Delete");const H=qr.fromRangeStart(r.selection.getRng());tte(B,H,r.schema).each(Mk(r))};return ga(fr.browser.isFirefox()&&r.selection.isEditable()&&oU(r.dom,r.selection.getRng().startContainer),g)},rte=(r,g)=>{KK([{keyCode:Fo.SPACEBAR,action:ua(iU,r)},{keyCode:Fo.SPACEBAR,action:ua(nte,r)}],g).each(B=>{g.preventDefault(),aO(r,"insertText",{data:" "}).isDefaultPrevented()||(B(),Sk(r,"insertText",{data:" "}))})},z8=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||rte(r,g)})},aU=r=>AS(r)?[{keyCode:Fo.TAB,action:ua(k9,r,!0)},{keyCode:Fo.TAB,shiftKey:!0,action:ua(k9,r,!1)}]:[],ote=(r,g)=>{o8([...aU(r)],g).each(B=>{g.preventDefault()})},ite=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||ote(r,g)})},sU=r=>{if(r.addShortcut("Meta+P","","mcePrint"),pee(r),Iy(r))return mr(null);{const g=yK(r);return ete(r),d9(r),wJ(r,g),kee(r,g),$2(r),z8(r),Kee(r),ite(r),Gee(r,g),Jee(r,g),g}};class ate{constructor(g){this.lastPath=[],this.editor=g;let B;const H=this;"onselectionchange"in g.getDoc()||g.on("NodeChange click mouseup keyup focus",re=>{const be=g.selection.getRng(),Re={startContainer:be.startContainer,startOffset:be.startOffset,endContainer:be.endContainer,endOffset:be.endOffset};(re.type==="nodechange"||!st(Re,B))&&g.dispatch("SelectionChange"),B=Re}),g.on("contextmenu",()=>{v5(g),g.dispatch("SelectionChange")}),g.on("SelectionChange",()=>{const re=g.selection.getStart(!0);re&&GS(g)&&!H.isSameElementPath(re)&&g.dom.isChildOf(re,g.getBody())&&g.nodeChanged({selectionChange:!0})}),g.on("mouseup",re=>{!re.isDefaultPrevented()&&GS(g)&&(g.selection.getNode().nodeName==="IMG"?Tg.setEditorTimeout(g,()=>{g.nodeChanged()}):g.nodeChanged())})}nodeChanged(g={}){const B=this.editor.selection;let H;if(this.editor.initialized&&B&&!tv(this.editor)&&!this.editor.mode.isReadOnly()){const re=this.editor.getBody();H=B.getStart(!0)||re,(H.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(H,re))&&(H=re);const be=[];this.editor.dom.getParent(H,Re=>Re===re?!0:(be.push(Re),!1)),this.editor.dispatch("NodeChange",{...g,element:H,parents:be})}}isSameElementPath(g){let B;const H=this.editor,re=ke(H.dom.getParents(g,q,H.getBody()));if(re.length===this.lastPath.length){for(B=re.length;B>=0&&re[B]===this.lastPath[B];B--);if(B===-1)return this.lastPath=re,!0}return this.lastPath=re,!1}}const lU=D1("image"),ste=r=>{const g=r;return Y.from(g[lU])},lte=(r,g)=>{const B=r;B[lU]=g},hR=D1("event"),cU=r=>{const g=r;return Y.from(g[hR])},F8=r=>g=>{const B=g;B[hR]=r},uU=(r,g)=>F8(g)(r),fU=F8(0),cte=F8(2),ute=F8(1),fte=(r=>g=>{const B=g;return Y.from(B[hR]).exists(H=>H===r)})(0),S4=()=>Object.freeze({length:0,item:r=>null}),pR=D1("mode"),dte=r=>{const g=r;return Y.from(g[pR])},Ek=r=>g=>{const B=g;B[pR]=r},dU=(r,g)=>Ek(g)(r),hU=Ek(0),mR=Ek(2),pU=Ek(1),mU=r=>g=>{const B=g;return Y.from(B[pR]).exists(H=>H===r)},k4=mU(0),hte=mU(1),N8=(r,g)=>({...g,get length(){return g.length},add:(B,H)=>{if(k4(r))if(v(B)){if(!M(H))return g.add(B,H)}else return g.add(B);return null},remove:B=>{k4(r)&&g.remove(B)},clear:()=>{k4(r)&&g.clear()}}),pte=["none","copy","link","move"],mte=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],gR=()=>{const r=new window.DataTransfer;let g="move",B="all";const H={get dropEffect(){return g},set dropEffect(re){ce(pte,re)&&(g=re)},get effectAllowed(){return B},set effectAllowed(re){fte(H)&&ce(mte,re)&&(B=re)},get items(){return N8(H,r.items)},get files(){return hte(H)?S4():r.files},get types(){return r.types},setDragImage:(re,be,Re)=>{k4(H)&&(lte(H,{image:re,x:be,y:Re}),r.setDragImage(re,be,Re))},getData:re=>hte(H)?"":r.getData(re),setData:(re,be)=>{k4(H)&&r.setData(re,be)},clearData:re=>{k4(H)&&r.clearData(re)}};return hU(H),H},gte=r=>{const g=gR(),B=dte(r);return mR(r),fU(g),g.dropEffect=r.dropEffect,g.effectAllowed=r.effectAllowed,ste(r).each(H=>g.setDragImage(H.image,H.x,H.y)),ye(r.types,H=>{H!=="Files"&&g.setData(H,r.getData(H))}),ye(r.files,H=>g.items.add(H)),cU(r).each(H=>{uU(g,H)}),B.each(H=>{dU(r,H),dU(g,H)}),g},vte=r=>{const g=r.getData("text/html");return g===""?Y.none():Y.some(g)},gU=(r,g)=>r.setData("text/html",g),vU="x-tinymce/html",$8=$(vU),vR="",yte=r=>vR+r,bte=r=>r.replace(vR,""),yU=r=>r.indexOf(vR)!==-1,xte=r=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(r),Yl=(r,g)=>{let B="<"+r;const H=en(g,(re,be)=>be+'="'+up.encodeAllRaw(re)+'"');return H.length&&(B+=" "+H.join(" ")),B+">"},_te=(r,g,B)=>{const H=r.split(/\n\n/),re=Yl(g,B),be="",Re=ve(H,ct=>ct.split(/\n/).join("
    ")),Ke=ct=>re+ct+be;return Re.length===1?Re[0]:ve(Re,Ke).join("")},yR="%MCEPASTEBIN%",wte=(r,g)=>{const{dom:B,selection:H}=r,re=r.getBody();g.set(H.getRng());const be=B.add(r.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},yR);fr.browser.isFirefox()&&B.setStyle(be,"left",B.getStyle(re,"direction",!0)==="rtl"?65535:-65535),B.bind(be,"beforedeactivate focusin focusout",Re=>{Re.stopPropagation()}),be.focus(),H.select(be,!0)},bR=(r,g)=>{const B=r.dom;if(V8(r)){let H;const re=g.get();for(;H=V8(r);)B.remove(H),B.unbind(H);re&&r.selection.setRng(re)}g.set(null)},V8=r=>r.dom.get("mcepastebin"),Ote=r=>E(r)&&r.id==="mcepastebin",Ste=r=>{const g=r.dom,B=(Re,Ke)=>{Re.appendChild(Ke),g.remove(Ke,!0)},[H,...re]=Te(r.getBody().childNodes,Ote);ye(re,Re=>{B(H,Re)});const be=g.select("div[id=mcepastebin]",H);for(let Re=be.length-1;Re>=0;Re--){const Ke=g.create("div");H.insertBefore(Ke,be[Re]),B(Ke,be[Re])}return H?H.innerHTML:""},xR=r=>r===yR,_R=r=>{const g=mr(null);return{create:()=>wte(r,g),remove:()=>bR(r,g),getEl:()=>V8(r),getHtml:()=>Ste(r),getLastRng:g.get}},bU=(r,g)=>(mo.each(g,B=>{m(B,RegExp)?r=r.replace(B,""):r=r.replace(B[0],B[1])}),r),kte=r=>{const g=Np(),B=Ry({},g);let H="";const re=g.getVoidElements(),be=mo.makeMap("script noscript style textarea video audio iframe object"," "),Re=g.getBlockElements(),Ke=ct=>{const kt=ct.name,Wt=ct;if(kt==="br"){H+=` `;return}if(kt!=="wbr"){if(re[kt]&&(H+=" "),be[kt]){H+=" ";return}if(ct.type===3&&(H+=ct.value),!(ct.name in g.getVoidElements())){let Jt=ct.firstChild;if(Jt)do Ke(Jt);while(Jt=Jt.next)}Re[kt]&&Wt.next&&(H+=` `,kt==="p"&&(H+=` -`))}};return r=bU(r,[//g]),Ke(B.parse(r)),H},xU=r=>(r=bU(r,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(B,H,re)=>!H&&!re?" ":Ea],/
    /g,/
    $/i]),r),_U=r=>{let g=0;return()=>r+g++},Tte=r=>{const g=r.toLowerCase(),B={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return mo.hasOwn(B,g)?"image/"+B[g]:"image/"+g},Cte=(r,g)=>{const B=Ry({sanitize:Rb(r),sandbox_iframes:o2(r),sandbox_iframes_exclusions:i2(r),convert_unsafe_embeds:AS(r)},r.schema);B.addNodeFilter("meta",re=>{mo.each(re,be=>{be.remove()})});const H=B.parse(g,{forced_root_block:!1,isRootContent:!0});return Wb({validate:!0},r.schema).serialize(H)},sO=(r,g)=>({content:r,cancelled:g}),Ate=(r,g,B)=>{const H=r.dom.create("div",{style:"display:none"},g),re=cE(r,H,B);return sO(re.node.innerHTML,re.isDefaultPrevented())},T4=(r,g,B)=>{const H=lE(r,g,B),re=Cte(r,H.content);return r.hasEventListeners("PastePostProcess")&&!H.isDefaultPrevented()?Ate(r,re,B):sO(re,H.isDefaultPrevented())},Ek=(r,g,B)=>T4(r,g,B),_R=(r,g)=>(r.insertContent(g,{merge:ow(r),paste:!0}),!0),wR=r=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(r),C4=(r,g)=>wR(g)&&de(Y0(r),B=>Sr(g.toLowerCase(),`.${B.toLowerCase()}`)),Mte=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.insertContent('')}),!0),OR=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.execCommand("mceInsertLink",!1,g)}),!0),Ete=(r,g,B)=>!r.selection.isCollapsed()&&wR(g)?OR(r,g,B):!1,wU=(r,g,B)=>C4(r,g)?Mte(r,g,B):!1,OU=(r,g)=>{mo.each([Ete,wU,_R],B=>!B(r,g,_R))},SR=(r,g,B)=>{B||!iw(r)?_R(r,g):OU(r,g)},SU=_U("mceclip"),Pte=r=>{const g=mR();return gU(g,r),pR(g),g},kU=(r,g,B,H,re)=>{const be=Ek(r,g,B);if(!be.cancelled){const Re=be.content,Ke=()=>SR(r,Re,H);re?aO(r,"insertFromPaste",{dataTransfer:Pte(Re)}).isDefaultPrevented()||(Ke(),Ok(r,"insertFromPaste")):Ke()}},Pk=(r,g,B,H)=>{const re=B||yU(g);kU(r,bte(g),re,!1,H)},kR=(r,g,B)=>{const H=r.dom.encode(g).replace(/\r\n/g,` -`),re=le(H,gy(r)),be=_te(re,dc(r),Jf(r));kU(r,be,!1,!0,B)},TR=r=>{const g={};if(r&&r.types)for(let B=0;Bg in r&&r[g].length>0,CR=r=>Uy(r,"text/html")||Uy(r,"text/plain"),Rte=(r,g)=>{const B=g.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return E(B)?r.dom.encode(B[1]):void 0},Lte=(r,g,B,H)=>{const re=SU(),be=Hc(r)&&E(B.name),Re=be?Rte(r,B.name):re,Ke=be?B.name:void 0,ct=g.create(re,B,H,Re,Ke);return g.add(ct),ct},Ite=(r,g)=>{V7(g.uri).each(({data:B,type:H,base64Encoded:re})=>{const be=re?B:btoa(B),Re=g.file,Ke=r.editorUpload.blobCache,ct=Ke.getByData(be,H),kt=ct??Lte(r,Ke,Re,be);Pk(r,``,!1,!0)})},TU=r=>r.type==="paste",AR=r=>Promise.all(ve(r,g=>Xz(g).then(B=>({file:g,uri:B})))),Dte=r=>{const g=Y0(r);return B=>xr(B.type,"image/")&&de(g,H=>Tte(H)===B.type)},CU=(r,g)=>{const B=g.items?$e(Ee(g.items),re=>re.kind==="file"?[re.getAsFile()]:[]):[],H=g.files?Ee(g.files):[];return Te(B.length>0?B:H,Dte(r))},MR=(r,g,B)=>{const H=TU(g)?g.clipboardData:g.dataTransfer;if(Fm(r)&&H){const re=CU(r,H);if(re.length>0)return g.preventDefault(),AR(re).then(be=>{B&&r.selection.setRng(B),ye(be,Re=>{Ite(r,Re)})}),!0}return!1},Bte=r=>{var g,B;return fr.os.isAndroid()&&((B=(g=r.clipboardData)===null||g===void 0?void 0:g.items)===null||B===void 0?void 0:B.length)===0},AU=r=>Fo.metaKeyPressed(r)&&r.keyCode===86||r.shiftKey&&r.keyCode===45,ER=(r,g,B,H,re)=>{let be=xU(B);const Re=Uy(g,N8())||yU(B),Ke=!Re&&xte(be),ct=wR(be);(bR(be)||!be.length||Ke&&!ct)&&(H=!0),(H||ct)&&(Uy(g,"text/plain")&&Ke?be=g["text/plain"]:be=kte(be)),!bR(be)&&(H?kR(r,be,re):Pk(r,be,Re,re))},zte=(r,g,B)=>{let H;const re=()=>g.getLastRng()||r.selection.getRng();r.on("keydown",be=>{AU(be)&&!be.isDefaultPrevented()&&(H=be.shiftKey&&be.keyCode===86)}),r.on("paste",be=>{if(be.isDefaultPrevented()||Bte(be))return;const Re=B.get()==="text"||H;H=!1;const Ke=TR(be.clipboardData);!CR(Ke)&&MR(r,be,re())||(Uy(Ke,"text/html")?(be.preventDefault(),ER(r,Ke,Ke["text/html"],Re,!0)):Uy(Ke,"text/plain")&&Uy(Ke,"text/uri-list")?(be.preventDefault(),ER(r,Ke,Ke["text/plain"],Re,!0)):(g.create(),kg.setEditorTimeout(r,()=>{const ct=g.getHtml();g.remove(),ER(r,Ke,ct,Re,!1)},0)))})},Fte=r=>{const g=re=>xr(re,"webkit-fake-url"),B=re=>xr(re,"data:"),H=re=>{var be;return((be=re.data)===null||be===void 0?void 0:be.paste)===!0};r.parser.addNodeFilter("img",(re,be,Re)=>{if(!Fm(r)&&H(Re))for(const Ke of re){const ct=Ke.attr("src");v(ct)&&!Ke.attr("data-mce-object")&&ct!==fr.transparentSrc&&(g(ct)||!W0(r)&&B(ct))&&Ke.remove()}})},Nte=(r,g,B)=>{zte(r,g,B),Fte(r)},$te=(r,g)=>{g.get()==="text"?(g.set("html"),I3(r,!1)):(g.set("text"),I3(r,!0)),r.focus()},V8=(r,g)=>{r.addCommand("mceTogglePlainTextPaste",()=>{$te(r,g)}),r.addCommand("mceInsertClipboardContent",(B,H)=>{H.html&&Pk(r,H.html,H.internal,!1),H.text&&kR(r,H.text,!1)})},Vte=(r,g,B)=>{if(r)try{return r.clearData(),r.setData("text/html",g),r.setData("text/plain",B),r.setData(N8(),g),!0}catch{return!1}else return!1},PR=(r,g,B,H)=>{Vte(r.clipboardData,g.html,g.text)?(r.preventDefault(),H()):B(g.html,H)},MU=r=>(g,B)=>{const{dom:H,selection:re}=r,be=H.create("div",{contenteditable:"false","data-mce-bogus":"all"}),Re=H.create("div",{contenteditable:"true"},g);H.setStyles(be,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),be.appendChild(Re),H.add(r.getBody(),be);const Ke=re.getRng();Re.focus();const ct=H.createRng();ct.selectNodeContents(Re),re.setRng(ct),kg.setEditorTimeout(r,()=>{re.setRng(Ke),H.remove(be),B()},0)},EU=r=>({html:yte(r.selection.getContent({contextual:!0})),text:r.selection.getContent({format:"text"})}),PU=r=>!!r.dom.getParent(r.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",r.getBody()),RR=r=>!r.selection.isCollapsed()||PU(r),Ute=r=>g=>{!g.isDefaultPrevented()&&RR(r)&&r.selection.isEditable()&&PR(g,EU(r),MU(r),()=>{if(fr.browser.isChromium()||fr.browser.isFirefox()){const B=r.selection.getRng();kg.setEditorTimeout(r,()=>{r.selection.setRng(B),r.execCommand("Delete")},0)}else r.execCommand("Delete")})},jte=r=>g=>{!g.isDefaultPrevented()&&RR(r)&&PR(g,EU(r),MU(r),k)},Qte=r=>{r.on("cut",Ute(r)),r.on("copy",jte(r))},RU=(r,g)=>{var B,H;return To.getCaretRangeFromPoint((B=g.clientX)!==null&&B!==void 0?B:0,(H=g.clientY)!==null&&H!==void 0?H:0,r.getDoc())},Hte=r=>{const g=r["text/plain"];return g?g.indexOf("file://")===0:!1},LR=(r,g)=>{r.focus(),g&&r.selection.setRng(g)},Zte=r=>de(r.files,g=>/^image\//.test(g.type)),qte=(r,g,B,H)=>{const re=r.getParent(B,Re=>xm(g,Re));if(!x(r.getParent(B,"summary")))return!0;if(re&&_t(H,"text/html")){const Re=new DOMParser().parseFromString(H["text/html"],"text/html").body;return!x(Re.querySelector(re.nodeName.toLowerCase()))}else return!1},Wte=r=>{r.on("input",g=>{const B=H=>x(H.querySelector("summary"));if(g.inputType==="deleteByDrag"){const H=Te(r.dom.select("details"),B);ye(H,re=>{On(re.firstChild)&&re.firstChild.remove();const be=r.dom.create("summary");be.appendChild(F1().dom),re.prepend(be)})}})},Yte=(r,g)=>{n2(r)&&r.on("dragend dragover draggesture dragdrop drop drag",B=>{B.preventDefault(),B.stopPropagation()}),Fm(r)||r.on("drop",B=>{const H=B.dataTransfer;H&&Zte(H)&&B.preventDefault()}),r.on("drop",B=>{if(B.isDefaultPrevented())return;const H=RU(r,B);if(T(H))return;const re=TR(B.dataTransfer),be=Uy(re,N8());if((!CR(re)||Hte(re))&&MR(r,B,H))return;const Re=re[N8()],Ke=Re||re["text/html"]||re["text/plain"],ct=qte(r.dom,r.schema,H.startContainer,re),kt=g.get();kt&&!ct||Ke&&(B.preventDefault(),kg.setEditorTimeout(r,()=>{r.undoManager.transact(()=>{(Re||kt&&ct)&&r.execCommand("Delete"),LR(r,H);const Wt=xU(Ke);re["text/html"]?Pk(r,Wt,be,!0):kR(r,Wt,!0)})}))}),r.on("dragstart",B=>{g.set(!0)}),r.on("dragover dragend",B=>{Fm(r)&&!g.get()&&(B.preventDefault(),LR(r,RU(r,B))),B.type==="dragend"&&g.set(!1)}),Wte(r)},Xte=r=>{const g=re=>be=>{re(r,be)},B=q0(r);C(B)&&r.on("PastePreProcess",g(B));const H=tv(r);C(H)&&r.on("PastePostProcess",g(H))},Gte=(r,g)=>{r.on("PastePreProcess",B=>{B.content=g(r,B.content,B.internal)})},Kte=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,LU=r=>mo.trim(r).replace(Kte,Am).toLowerCase(),IU=(r,g,B)=>{const H=rv(r);if(B||H==="all"||!t3(r))return g;const re=H?H.split(/[, ]/):[];if(re&&H!=="none"){const be=r.dom,Re=r.selection.getNode();g=g.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(Ke,ct,kt,Wt)=>{const Jt=be.parseStyle(be.decode(kt)),ln={};for(let Vn=0;Vn]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return g=g.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(be,Re,Ke,ct)=>Re+' style="'+Ke+'"'+ct),g},DU=r=>{(fr.browser.isChromium()||fr.browser.isSafari())&&Gte(r,IU)},Jte=r=>{const g=mr(!1),B=mr(aw(r)?"text":"html"),H=xR(r);DU(r),V8(r,B),Xte(r),r.addQueryStateHandler("mceTogglePlainTextPaste",()=>B.get()==="text"),r.on("PreInit",()=>{Qte(r),Yte(r,g),Nte(r,H,B)})},ene=r=>{r.on("click",g=>{r.dom.getParent(g.target,"details")&&g.preventDefault()})},tne=r=>{r.parser.addNodeFilter("details",g=>{const B=r3(r);ye(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})}),r.serializer.addNodeFilter("details",g=>{const B=o3(r);ye(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})})},nne=r=>{ene(r),tne(r)},rne=On,BU=Nt,one=r=>rr(r.dom),U8=r=>Sn(r.dom),IR=r=>g=>Fa(sr.fromDom(r),g),ine=(r,g,B)=>Ya(sr.fromDom(r),H=>U8(H)||B.isBlock(sa(H)),IR(g)).getOr(sr.fromDom(g)).dom,DR=(r,g)=>Ya(sr.fromDom(r),one,IR(g)),BR=(r,g,B)=>{const H=new kc(r,g),re=B?H.next.bind(H):H.prev.bind(H);let be=r;for(let Re=B?r:re();Re&&!rne(Re);Re=re())ih(Re)&&(be=Re);return be},zR=(r,g,B)=>{const re=qr.fromRangeStart(r).getNode(),be=ine(re,g,B),Re=BR(re,be,!1),Ke=BR(re,be,!0),ct=document.createRange();return DR(Re,be).fold(()=>{BU(Re)?ct.setStart(Re,0):ct.setStartBefore(Re)},kt=>ct.setStartBefore(kt.dom)),DR(Ke,be).fold(()=>{BU(Ke)?ct.setEnd(Ke,Ke.data.length):ct.setEndAfter(Ke)},kt=>ct.setEndAfter(kt.dom)),ct},ane=r=>{const g=zR(r.selection.getRng(),r.getBody(),r.schema);r.selection.setRng(Wl(g))},zU=r=>{r.on("mousedown",g=>{g.detail>=3&&(g.preventDefault(),ane(r))})};var A4;(function(r){r.Before="before",r.After="after"})(A4||(A4={}));const FU=(r,g)=>Math.abs(r.left-g),sne=(r,g)=>Math.abs(r.right-g),NU=(r,g)=>r>=g.top&&r<=g.bottom,lne=(r,g)=>r.topg.top,cne=(r,g)=>{const B=OS(r,g)/Math.min(r.height,g.height);return lne(r,g)&&B>.5},une=(r,g)=>{const B=Te(r,H=>NU(g,H));return Dl(B).fold(()=>[[],r],H=>{const{pass:re,fail:be}=Se(r,Re=>cne(Re,H));return[re,be]})},Rk=(r,g)=>({node:r.node,position:FU(r,g)g>r.left&&g{const re=Jt=>ih(Jt.node)?Y.some(Jt):ne(Jt.node)?FR(Ee(Jt.node.childNodes),g,B,!1):Y.none(),be=(Jt,ln,kn)=>re(ln).filter(Vn=>Math.abs(kn(Jt,g,B)-kn(Vn,g,B))<2&&Nt(Vn.node)),Re=(Jt,ln)=>{const kn=Ue(Jt,(Vn,Rn)=>ln(Vn,g,B)-ln(Rn,g,B));return Ne(kn,re).map(Vn=>H&&!Nt(Vn.node)&&kn.length>1?be(Vn,kn[1],ln).getOr(Vn):Vn)},[Ke,ct]=une(GP(r),B),{pass:kt,fail:Wt}=Se(ct,Jt=>Jt.topRe(Wt,Ol)).orThunk(()=>Re(kt,Ol))},$U=(r,g,B,H)=>{const re=(be,Re)=>{const Ke=kt=>ne(kt)&&kt.classList.contains("mce-drag-container"),ct=Te(be.dom.childNodes,X(Ke));return Re.fold(()=>FR(ct,B,H,!0),kt=>{const Wt=Te(ct,Jt=>Jt!==kt.dom);return FR(Wt,B,H,!0)}).orThunk(()=>(Fa(be,r)?Y.none():Lp(be)).bind(Wt=>re(Wt,Y.some(be))))};return re(g,Y.none())},dne=(r,g,B)=>{const H=sr.fromDom(r),re=Bc(H),Re=sr.fromPoint(re,g,B).filter(Ke=>Qu(H,Ke)).getOr(H);return $U(H,Re,g,B)},VU=(r,g,B)=>dne(r,g,B).filter(H=>iv(H.node)).map(H=>Rk(H,g)),UU=r=>{var g,B;const H=r.getBoundingClientRect(),re=r.ownerDocument,be=re.documentElement,Re=re.defaultView;return{top:H.top+((g=Re==null?void 0:Re.scrollY)!==null&&g!==void 0?g:0)-be.clientTop,left:H.left+((B=Re==null?void 0:Re.scrollX)!==null&&B!==void 0?B:0)-be.clientLeft}},hne=r=>r.inline?UU(r.getBody()):{left:0,top:0},pne=r=>{const g=r.getBody();return r.inline?{left:g.scrollLeft,top:g.scrollTop}:{left:0,top:0}},j8=r=>{const g=r.getBody(),B=r.getDoc().documentElement,H={left:g.scrollLeft,top:g.scrollTop},re={left:g.scrollLeft||B.scrollLeft,top:g.scrollTop||B.scrollTop};return r.inline?H:re},jU=(r,g)=>{if(g.target.ownerDocument!==r.getDoc()){const B=UU(r.getContentAreaContainer()),H=j8(r);return{left:g.pageX-B.left+H.left,top:g.pageY-B.top+H.top}}return{left:g.pageX,top:g.pageY}},QU=(r,g,B)=>({pageX:B.left-r.left+g.left,pageY:B.top-r.top+g.top}),mne=(r,g)=>QU(hne(r),pne(r),jU(r,g)),HU=r=>({target:r,srcElement:r}),gne=(r,g,B,H)=>({...g,dataTransfer:H,type:r,...HU(B)}),Tfe=(r,g,B)=>{const H=te("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:r,composedPath:H,initEvent:H,preventDefault:k,stopImmediatePropagation:k,stopPropagation:k,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:H,initMouseEvent:H,getModifierState:H,dataTransfer:B,...HU(g)}},vne=(r,g)=>{const B=gte(r);return g==="dragstart"?(fU(B),hU(B)):g==="drop"?(cte(B),pR(B)):(ute(B),pU(B)),B},ZU=(r,g,B,H)=>{const re=vne(B,r);return M(H)?Tfe(r,g,re):gne(r,H,g,re)},M4=32,Q8=100,H8=8,Z8=16,NR=rr,yne=X_(NR,Sn),$R=(r,g,B)=>NR(B)&&B!==g&&r.isEditable(B.parentElement),qU=(r,g,B)=>T(g)||g===B||r.dom.isChildOf(g,B)?!1:r.dom.isEditable(g),bne=(r,g,B,H)=>{const re=r.dom,be=g.cloneNode(!0);re.setStyles(be,{width:B,height:H}),re.setAttrib(be,"data-mce-selected",null);const Re=re.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return re.setStyles(Re,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:B,height:H}),re.setStyles(be,{margin:0,boxSizing:"border-box"}),Re.appendChild(be),Re},xne=(r,g)=>{r.parentNode!==g&&g.appendChild(r)},Lk=(r,g)=>B=>()=>{const H=r==="left"?B.scrollX:B.scrollY;B.scroll({[r]:H+g,behavior:"smooth"})},WU=Lk("left",-M4),_ne=Lk("left",M4),YU=Lk("top",-M4),XU=Lk("top",M4),wne=(r,g,B,H,re,be,Re,Ke,ct,kt,Wt,Jt)=>{let ln=0,kn=0;r.style.left=g.pageX+"px",r.style.top=g.pageY+"px",g.pageX+B>re&&(ln=g.pageX+B-re),g.pageY+H>be&&(kn=g.pageY+H-be),r.style.width=B-ln+"px",r.style.height=H-kn+"px";const Vn=ct.clientHeight,Rn=ct.clientWidth,qn=Re+ct.getBoundingClientRect().top,pr=Ke+ct.getBoundingClientRect().left;Wt.on(Tr=>{Tr.intervalId.clear(),Tr.dragging&&Jt&&(Re+H8>=Vn?Tr.intervalId.set(XU(kt)):Re-H8<=0?Tr.intervalId.set(YU(kt)):Ke+H8>=Rn?Tr.intervalId.set(_ne(kt)):Ke-H8<=0?Tr.intervalId.set(WU(kt)):qn+Z8>=window.innerHeight?Tr.intervalId.set(XU(window)):qn-Z8<=0?Tr.intervalId.set(YU(window)):pr+Z8>=window.innerWidth?Tr.intervalId.set(_ne(window)):pr-Z8<=0&&Tr.intervalId.set(WU(window)))})},VR=r=>{r&&r.parentNode&&r.parentNode.removeChild(r)},One=(r,g)=>{const B=r.getParent(g.parentNode,r.isBlock);VR(g),B&&B!==r.getRoot()&&r.isEmpty(B)&&rh(sr.fromDom(B))},GU=r=>r.button===0,Sne=(r,g)=>({pageX:g.pageX-r.relX,pageY:g.pageY+5}),kne=(r,g)=>B=>{if(GU(B)){const H=De(g.dom.getParents(B.target),yne).getOr(null);if(E(H)&&$R(g.dom,g.getBody(),H)){const re=g.dom.getPos(H),be=g.getBody(),Re=g.getDoc().documentElement;r.set({element:H,dataTransfer:mR(),dragging:!1,screenX:B.screenX,screenY:B.screenY,maxX:(g.inline?be.scrollWidth:Re.offsetWidth)-2,maxY:(g.inline?be.scrollHeight:Re.offsetHeight)-2,relX:B.pageX-re.x,relY:B.pageY-re.y,width:H.offsetWidth,height:H.offsetHeight,ghost:bne(g,H,H.offsetWidth,H.offsetHeight),intervalId:Pl(Q8)})}}},Tne=(r,g,B)=>{r._selectionOverrides.hideFakeCaret(),VU(r.getBody(),g,B).fold(()=>r.selection.placeCaretAt(g,B),H=>{const re=r._selectionOverrides.showCaret(1,H.node,H.position===A4.Before,!1);re?r.selection.setRng(re):r.selection.placeCaretAt(g,B)})},Ik=(r,g,B,H,re)=>{g==="dragstart"&&gU(H,r.dom.getOuterHTML(B));const be=ZU(g,B,H,re);return r.dispatch(g,be)},Cne=(r,g)=>{const B=dg((re,be)=>Tne(g,re,be),0);g.on("remove",B.cancel);const H=r;return re=>r.on(be=>{const Re=Math.max(Math.abs(re.screenX-be.screenX),Math.abs(re.screenY-be.screenY));if(!be.dragging&&Re>10){const Ke=Ik(g,"dragstart",be.element,be.dataTransfer,re);if(E(Ke.dataTransfer)&&(be.dataTransfer=Ke.dataTransfer),Ke.isDefaultPrevented())return;be.dragging=!0,g.focus()}if(be.dragging){const Ke=re.currentTarget===g.getDoc().documentElement,ct=Sne(be,mne(g,re));xne(be.ghost,g.getBody()),wne(be.ghost,ct,be.width,be.height,be.maxX,be.maxY,re.clientY,re.clientX,g.getContentAreaContainer(),g.getWin(),H,Ke),B.throttle(re.clientX,re.clientY)}})},KU=r=>{const g=r.getSel();if(E(g)){const H=g.getRangeAt(0).startContainer;return Nt(H)?H.parentNode:H}else return null},Cfe=(r,g)=>B=>{r.on(H=>{var re;if(H.intervalId.clear(),H.dragging){if(qU(g,KU(g.selection),H.element)){const be=(re=g.getDoc().elementFromPoint(B.clientX,B.clientY))!==null&&re!==void 0?re:g.getBody();Ik(g,"drop",be,H.dataTransfer,B).isDefaultPrevented()||g.undoManager.transact(()=>{One(g.dom,H.element),vte(H.dataTransfer).each(Ke=>g.insertContent(Ke)),g._selectionOverrides.hideFakeCaret()})}Ik(g,"dragend",g.getBody(),H.dataTransfer,B)}}),tj(r)},JU=(r,g,B)=>{r.on(H=>{H.intervalId.clear(),H.dragging&&B.fold(()=>Ik(g,"dragend",H.element,H.dataTransfer),re=>Ik(g,"dragend",H.element,H.dataTransfer,re))}),tj(r)},ej=(r,g)=>B=>JU(r,g,Y.some(B)),tj=r=>{r.on(g=>{g.intervalId.clear(),VR(g.ghost)}),r.clear()},UR=r=>{const g=Ys(),B=Nl.DOM,H=document,re=kne(g,r),be=Cne(g,r),Re=Cfe(g,r),Ke=ej(g,r);r.on("mousedown",re),r.on("mousemove",be),r.on("mouseup",Re),B.bind(H,"mousemove",be),B.bind(H,"mouseup",Ke),r.on("remove",()=>{B.unbind(H,"mousemove",be),B.unbind(H,"mouseup",Ke)}),r.on("keydown",ct=>{ct.keyCode===Fo.ESC&&JU(g,r,Y.none())})},Ane=r=>{const g=re=>{if(!re.isDefaultPrevented()){const be=re.dataTransfer;be&&(ce(be.types,"Files")||be.files.length>0)&&(re.preventDefault(),re.type==="drop"&&RC(r,"Dropped file type is not supported"))}},B=re=>{b6(r,re.target)&&g(re)},H=()=>{const re=Nl.DOM,be=r.dom,Re=document,Ke=r.inline?r.getBody():r.getDoc(),ct=["drop","dragover"];ye(ct,kt=>{re.bind(Re,kt,B),be.bind(Ke,kt,g)}),r.on("remove",()=>{ye(ct,kt=>{re.unbind(Re,kt,B),be.unbind(Ke,kt,g)})})};r.on("init",()=>{kg.setEditorTimeout(r,H,0)})},Mne=r=>{UR(r),my(r)&&Ane(r)},Ene=r=>{const g=dg(()=>{if(!r.removed&&r.getBody().contains(document.activeElement)){const B=r.selection.getRng();if(B.collapsed){const H=VC(r,B,!1);r.selection.setRng(H)}}},0);r.on("focus",()=>{g.throttle()}),r.on("blur",()=>{g.cancel()})},nj=r=>{r.on("init",()=>{r.on("focusin",g=>{const B=g.target;if(Zr(B)){const H=Gb(r.getBody(),B),re=rr(H)?H:B;r.selection.getNode()!==re&&d4(r,re).each(be=>r.selection.setRng(be))}})})},V2=rr,jR=(r,g)=>Gb(r.getBody(),g),rj=r=>{const g=r.selection,B=r.dom,H=r.getBody(),re=PT(r,H,B.isBlock,()=>Mw(r)),be="sel-"+B.uniqueId(),Re="data-mce-selected";let Ke;const ct=di=>E(di)&&B.hasClass(di,"mce-offscreen-selection"),kt=di=>di!==H&&(V2(di)||Zr(di))&&B.isChildOf(di,H)&&B.isEditable(di.parentNode),Wt=di=>{di&&g.setRng(di)},Jt=(di,lo,eo,xo=!0)=>r.dispatch("ShowCaret",{target:lo,direction:di,before:eo}).isDefaultPrevented()?null:(xo&&g.scrollIntoView(lo,di===-1),re.show(eo,lo)),ln=di=>{di.hasAttribute("data-mce-caret")&&(Ra(di),g.scrollIntoView(di))},kn=()=>{r.on("click",lo=>{B.isEditable(lo.target)||(lo.preventDefault(),r.focus())}),r.on("blur NewBlock",Ur),r.on("ResizeWindow FullscreenStateChanged",re.reposition),r.on("tap",lo=>{const eo=lo.target,xo=jR(r,eo);V2(xo)?(lo.preventDefault(),d4(r,xo).each(wr)):kt(eo)&&d4(r,eo).each(wr)},!0),r.on("mousedown",lo=>{const eo=lo.target;if(eo!==H&&eo.nodeName!=="HTML"&&!B.isChildOf(eo,H)||!cG(r,lo.clientX,lo.clientY))return;Ur(),jo();const xo=jR(r,eo);V2(xo)?(lo.preventDefault(),d4(r,xo).each(wr)):VU(H,lo.clientX,lo.clientY).each(bi=>{lo.preventDefault();const Bi=Jt(1,bi.node,bi.position===A4.Before,!1);Wt(Bi),ge(xo)?xo.focus():r.getBody().focus()})}),r.on("keypress",lo=>{Fo.modifierPressed(lo)||V2(g.getNode())&&lo.preventDefault()}),r.on("GetSelectionRange",lo=>{let eo=lo.range;if(Ke){if(!Ke.parentNode){Ke=null;return}eo=eo.cloneRange(),eo.selectNode(Ke),lo.range=eo}}),r.on("SetSelectionRange",lo=>{lo.range=qn(lo.range);const eo=wr(lo.range,lo.forward);eo&&(lo.range=eo)});const di=lo=>ne(lo)&&lo.id==="mcepastebin";r.on("AfterSetSelectionRange",lo=>{const eo=lo.range,xo=eo.startContainer.parentElement;!Rn(eo)&&!di(xo)&&jo(),ct(xo)||Ur()}),Mne(r),Ene(r),nj(r)},Vn=di=>Ch(di)||U0(di)||jp(di),Rn=di=>Vn(di.startContainer)||Vn(di.endContainer),qn=di=>{const lo=r.schema.getVoidElements(),eo=B.createRng(),xo=di.startContainer,bi=di.startOffset,Bi=di.endContainer,$a=di.endOffset;return _t(lo,xo.nodeName.toLowerCase())?bi===0?eo.setStartBefore(xo):eo.setStartAfter(xo):eo.setStart(xo,bi),_t(lo,Bi.nodeName.toLowerCase())?$a===0?eo.setEndBefore(Bi):eo.setEndAfter(Bi):eo.setEnd(Bi,$a),eo},pr=(di,lo)=>{const eo=sr.fromDom(r.getBody()),xo=r.getDoc(),bi=xi(eo,"#"+be).getOrThunk(()=>{const Ia=sr.fromHtml('
    ',xo);return Es(Ia,"id",be),Ps(eo,Ia),Ia}),Bi=B.createRng();gu(bi),mu(bi,[sr.fromText(Ea,xo),sr.fromDom(lo),sr.fromText(Ea,xo)]),Bi.setStart(bi.dom.firstChild,1),Bi.setEnd(bi.dom.lastChild,0),Hi(bi,{top:B.getPos(di,r.getBody()).y+"px"}),F3(bi);const $a=g.getSel();return $a&&($a.removeAllRanges(),$a.addRange(Bi)),Bi},Tr=di=>{const lo=di.cloneNode(!0),eo=r.dispatch("ObjectSelected",{target:di,targetClone:lo});if(eo.isDefaultPrevented())return null;const xo=pr(di,eo.targetClone),bi=sr.fromDom(di);return ye(Zl(sr.fromDom(r.getBody()),`*[${Re}]`),Bi=>{Fa(bi,Bi)||gc(Bi,Re)}),B.getAttrib(di,Re)||di.setAttribute(Re,"1"),Ke=di,jo(),xo},wr=(di,lo)=>{if(!di)return null;if(di.collapsed){if(!Rn(di)){const Bi=lo?1:-1,$a=zb(Bi,H,di),Ia=$a.getNode(!lo);if(E(Ia)){if(iv(Ia))return Jt(Bi,Ia,lo?!$a.isAtEnd():!1,!1);if(oh(Ia)&&rr(Ia.nextSibling)){const sl=B.createRng();return sl.setStart(Ia,0),sl.setEnd(Ia,0),sl}}const Us=$a.getNode(lo);if(E(Us)){if(iv(Us))return Jt(Bi,Us,lo?!1:!$a.isAtEnd(),!1);if(oh(Us)&&rr(Us.previousSibling)){const sl=B.createRng();return sl.setStart(Us,1),sl.setEnd(Us,1),sl}}}return null}let eo=di.startContainer,xo=di.startOffset;const bi=di.endOffset;if(Nt(eo)&&xo===0&&V2(eo.parentNode)&&(eo=eo.parentNode,xo=B.nodeIndex(eo),eo=eo.parentNode),!ne(eo))return null;if(bi===xo+1&&eo===di.endContainer){const Bi=eo.childNodes[xo];if(kt(Bi))return Tr(Bi)}return null},Ur=()=>{Ke&&Ke.removeAttribute(Re),xi(sr.fromDom(r.getBody()),"#"+be).each(ja),Ke=null},wo=()=>{re.destroy(),Ke=null},jo=()=>{re.hide()};return Iy(r)||kn(),{showCaret:Jt,showBlockCaretContainer:ln,hideFakeCaret:jo,destroy:wo}},Pne=(r,g)=>{let B=g;for(let H=r.previousSibling;Nt(H);H=H.previousSibling)B+=H.data.length;return B},oj=(r,g,B,H,re)=>{if(Nt(B)&&(H<0||H>B.data.length))return[];const be=re&&Nt(B)?[Pne(B,H)]:[H];let Re=B;for(;Re!==g&&Re.parentNode;)be.push(r.nodeIndex(Re,re)),Re=Re.parentNode;return Re===g?be.reverse():[]},q8=(r,g,B,H,re,be,Re=!1)=>{const Ke=oj(r,g,B,H,Re),ct=oj(r,g,re,be,Re);return{start:Ke,end:ct}},ij=(r,g)=>{const B=g.slice(),H=B.pop();return L(H)?Ie(B,(be,Re)=>be.bind(Ke=>Y.from(Ke.childNodes[Re])),Y.some(r)).bind(be=>Nt(be)&&(H<0||H>be.data.length)?Y.none():Y.some({node:be,offset:H})):Y.none()},aj=(r,g)=>ij(r,g.start).bind(({node:B,offset:H})=>ij(r,g.end).map(({node:re,offset:be})=>{const Re=document.createRange();return Re.setStart(B,H),Re.setEnd(re,be),Re})),Rne=(r,g,B,H=!1)=>q8(r,g,B.startContainer,B.startOffset,B.endContainer,B.endOffset,H),U2=(r,g,B)=>{if(g&&r.isEmpty(g)&&!B(g)){const H=g.parentNode;r.remove(g,Nt(g.firstChild)&&Sf(g.firstChild.data)),U2(r,H,B)}},W8=(r,g,B,H=!0)=>{const re=g.startContainer.parentNode,be=g.endContainer.parentNode;g.deleteContents(),H&&!B(g.startContainer)&&(Nt(g.startContainer)&&g.startContainer.data.length===0&&r.remove(g.startContainer),Nt(g.endContainer)&&g.endContainer.data.length===0&&r.remove(g.endContainer),U2(r,re,B),re!==be&&U2(r,be,B))},Y8=(r,g)=>Y.from(r.dom.getParent(g.startContainer,r.dom.isBlock)),QR=(r,g,B)=>{const H=r.dynamicPatternsLookup({text:B,block:g});return{...r,blockPatterns:Vc(H).concat(r.blockPatterns),inlinePatterns:pl(H).concat(r.inlinePatterns)}},HR=(r,g,B,H)=>{const re=r.createRng();return re.setStart(g,0),re.setEnd(B,H),re.toString()},sj=(r,g)=>r.create("span",{"data-mce-type":"bookmark",id:g}),X8=(r,g)=>{const B=r.createRng();return B.setStartAfter(g.start),B.setEndBefore(g.end),B},ZR=(r,g,B)=>{const H=aj(r.getRoot(),B).getOrDie("Unable to resolve path range"),re=H.startContainer,be=H.endContainer,Re=H.endOffset===0?be:be.splitText(H.endOffset),Ke=H.startOffset===0?re:re.splitText(H.startOffset),ct=Ke.parentNode,kt=Re.parentNode;return{prefix:g,end:kt.insertBefore(sj(r,g+"-end"),Re),start:ct.insertBefore(sj(r,g+"-start"),Ke)}},qR=(r,g,B)=>{U2(r,r.get(g.prefix+"-end"),B),U2(r,r.get(g.prefix+"-start"),B)},Dk=r=>r.start.length===0,WR=r=>(g,B)=>{const re=g.data.substring(0,B),be=re.lastIndexOf(r.charAt(r.length-1)),Re=re.lastIndexOf(r);return Re!==-1?Re+r.length:be!==-1?be+1:-1},lj=(r,g,B,H)=>{const re=g.start;return C9(r,H.container,H.offset,WR(re),B).bind(Re=>{var Ke,ct;const kt=(ct=(Ke=B.textContent)===null||Ke===void 0?void 0:Ke.indexOf(re))!==null&&ct!==void 0?ct:-1;if(kt!==-1&&Re.offset>=kt+re.length){const Jt=r.createRng();return Jt.setStart(Re.container,Re.offset-re.length),Jt.setEnd(Re.container,Re.offset),Y.some(Jt)}else{const Jt=Re.offset-re.length;return T9(Re.container,Jt,B).map(ln=>{const kn=r.createRng();return kn.setStart(ln.container,ln.offset),kn.setEnd(Re.container,Re.offset),kn}).filter(ln=>ln.toString()===re).orThunk(()=>lj(r,g,B,wv(Re.container,0)))}})},YR=(r,g,B,H,re,be=!1)=>{if(g.start.length===0&&!be){const Re=r.createRng();return Re.setStart(B,H),Re.setEnd(B,H),Y.some(Re)}return k9(B,H,re).bind(Re=>lj(r,g,re,Re).bind(ct=>{var kt;if(be){if(ct.endContainer===Re.container&&ct.endOffset===Re.offset)return Y.none();if(Re.offset===0&&((kt=ct.endContainer.textContent)===null||kt===void 0?void 0:kt.length)===ct.endOffset)return Y.none()}return Y.some(ct)}))},Lne=(r,g,B,H)=>{const re=r.dom,be=re.getRoot(),Re=B.pattern,Ke=B.position.container,ct=B.position.offset;return T9(Ke,ct-B.pattern.end.length,g).bind(kt=>{const Wt=q8(re,be,kt.container,kt.offset,Ke,ct,H);if(Dk(Re))return Y.some({matches:[{pattern:Re,startRng:Wt,endRng:Wt}],position:kt});{const Jt=G8(r,B.remainingPatterns,kt.container,kt.offset,g,H),ln=Jt.getOr({matches:[],position:kt}),kn=ln.position;return YR(re,Re,kn.container,kn.offset,g,Jt.isNone()).map(Rn=>{const qn=Rne(re,be,Rn,H);return{matches:ln.matches.concat([{pattern:Re,startRng:qn,endRng:Wt}]),position:wv(Rn.startContainer,Rn.startOffset)}})}})},G8=(r,g,B,H,re,be)=>{const Re=r.dom;return k9(B,H,Re.getRoot()).bind(Ke=>{const ct=HR(Re,re,B,H);for(let kt=0;kt0)return G8(r,g,B,H-1,re,be);if(ln.isSome())return ln}return Y.none()})},XR=(r,g,B)=>{r.selection.setRng(B),g.type==="inline-format"?ye(g.format,H=>{r.formatter.apply(H)}):r.execCommand(g.cmd,!1,g.value)},Ine=(r,g,B,H)=>{const re=X8(r.dom,B);W8(r.dom,re,H),XR(r,g,re)},Dne=(r,g,B,H,re)=>{const be=r.dom,Re=X8(be,H),Ke=X8(be,B);W8(be,Ke,re),W8(be,Re,re);const ct={prefix:B.prefix,start:B.end,end:H.start},kt=X8(be,ct);XR(r,g,kt)},Bne=(r,g)=>{const B=L1("mce_textpattern"),H=Pe(g,(re,be)=>{const Re=ZR(r,B+`_end${re.length}`,be.endRng);return re.concat([{...be,endMarker:Re}])},[]);return Pe(H,(re,be)=>{const Re=H.length-re.length-1,Ke=Dk(be.pattern)?be.endMarker:ZR(r,B+`_start${Re}`,be.startRng);return re.concat([{...be,startMarker:Ke}])},[])},zne=r=>Ue(r,(g,B)=>B.end.length-g.end.length),Fne=(r,g)=>{const B=Oe(r,H=>de(g,re=>H.pattern.start===re.pattern.start&&H.pattern.end===re.pattern.end));return r.length===g.length?B?r:g:r.length>g.length?r:g},cj=(r,g,B,H,re,be)=>{const Re=G8(r,re.inlinePatterns,B,H,g,be).fold(()=>[],ct=>ct.matches),Ke=G8(r,zne(re.inlinePatterns),B,H,g,be).fold(()=>[],ct=>ct.matches);return Fne(Re,Ke)},uj=(r,g)=>{if(g.length===0)return;const B=r.dom,H=r.selection.getBookmark(),re=Bne(B,g);ye(re,be=>{const Re=B.getParent(be.startMarker.start,B.isBlock),Ke=ct=>ct===Re;Dk(be.pattern)?Ine(r,be.pattern,be.endMarker,Ke):Dne(r,be.pattern,be.startMarker,be.endMarker,Ke),qR(B,be.endMarker,Ke),qR(B,be.startMarker,Ke)}),r.selection.moveToBookmark(H)},GR=(r,g,B)=>OJ(g,0,g).map(H=>{const re=H.container;return f8(re,B.start.length,g).each(be=>{const Re=r.createRng();Re.setStart(re,0),Re.setEnd(be.container,be.offset),W8(r,Re,Ke=>Ke===g)}),re}),fj=r=>(g,B)=>{const H=g.dom,re=B.pattern,be=aj(H.getRoot(),B.range).getOrDie("Unable to resolve path range"),Re=(Ke,ct)=>{const kt=ct.get(Ke);return A(kt)&&Xe(kt).exists(Wt=>_t(Wt,"block"))};return Y8(g,be).each(Ke=>{re.type==="block-format"?Re(re.format,g.formatter)&&g.undoManager.transact(()=>{r(g.dom,Ke,re),g.formatter.apply(re.format)}):re.type==="block-command"&&g.undoManager.transact(()=>{r(g.dom,Ke,re),g.execCommand(re.cmd,!1,re.value)})}),!0},KR=r=>Ue(r,(g,B)=>B.start.length-g.start.length),dj=r=>(g,B)=>{const H=KR(g),re=B.replace(Ea," ");return De(H,be=>r(be,B,re))},hj=(r,g)=>(B,H,re,be,Re)=>{var Ke;Re===void 0&&(Re=(Ke=H.textContent)!==null&&Ke!==void 0?Ke:"");const ct=B.dom,kt=dc(B);return ct.is(H,kt)?r(re.blockPatterns,Re).map(Wt=>g&&mo.trim(Re).length===Wt.start.length?[]:[{pattern:Wt,range:q8(ct,ct.getRoot(),H,0,H,0,be)}]).getOr([]):[]},Nne=r=>/^\s[^\s]/.test(r),$ne=fj((r,g,B)=>{GR(r,g,B).each(H=>{const re=sr.fromDom(H),be=ry(re);Nne(be)&&Vx(re,be.slice(1))})}),Vne=dj((r,g,B)=>g.indexOf(r.start)===0||B.indexOf(r.start)===0),K8=hj(Vne,!0),Une=(r,g)=>{const B=r.selection.getRng();return Y8(r,B).map(H=>{var re;const be=Math.max(0,B.startOffset),Re=QR(g,H,(re=H.textContent)!==null&&re!==void 0?re:""),Ke=cj(r,H,B.startContainer,be,Re,!0),ct=K8(r,H,Re,!0);return{inlineMatches:Ke,blockMatches:ct}}).filter(({inlineMatches:H,blockMatches:re})=>re.length>0||H.length>0)},jne=(r,g)=>{if(g.length===0)return;const B=r.selection.getBookmark();ye(g,H=>$ne(r,H)),r.selection.moveToBookmark(B)},Qne=fj(GR),Hne=dj((r,g,B)=>g===r.start||B===r.start),Zne=hj(Hne,!1),qne=(r,g)=>{const B=r.selection.getRng();return Y8(r,B).map(H=>{const re=Math.max(0,B.startOffset),be=HR(r.dom,H,B.startContainer,re),Re=QR(g,H,be);return Zne(r,H,Re,!1,be)}).filter(H=>H.length>0)},Wne=(r,g)=>{ye(g,B=>Qne(r,B))},Yne=(r,g)=>Une(r,g).fold(oe,({inlineMatches:B,blockMatches:H})=>(r.undoManager.add(),r.undoManager.extra(()=>{r.execCommand("mceInsertNewLine")},()=>{wS(r),uj(r,B),jne(r,H);const re=r.selection.getRng(),be=k9(re.startContainer,re.startOffset,r.dom.getRoot());r.execCommand("mceInsertNewLine"),be.each(Re=>{const Ke=Re.container;Ke.data.charAt(Re.offset-1)===Iu&&(Ke.deleteData(Re.offset-1,1),U2(r.dom,Ke.parentNode,ct=>ct===r.dom.getRoot()))})}),!0)),Xne=(r,g)=>{const B=r.selection.getRng();Y8(r,B).map(H=>{const re=Math.max(0,B.startOffset-1),be=HR(r.dom,H,B.startContainer,re),Re=QR(g,H,be),Ke=cj(r,H,B.startContainer,re,Re,!1);Ke.length>0&&r.undoManager.transact(()=>{uj(r,Ke)})})},pj=(r,g)=>qne(r,g).fold(oe,B=>(r.undoManager.transact(()=>{Wne(r,B)}),!0)),mj=(r,g,B)=>{for(let H=0;Hmj(r,g,(B,H)=>B===H.keyCode&&!Fo.modifierPressed(H)),Gne=(r,g)=>mj(r,g,(B,H)=>B.charCodeAt(0)===H.charCode),Kne=r=>{const g=[",",".",";",":","!","?"],B=[32],H=()=>Uc(wg(r),n3(r)),re=()=>Og(r);r.on("keydown",Re=>{if(Re.keyCode===13&&!Fo.modifierPressed(Re)&&r.selection.isCollapsed()){const Ke=_u(H(),"enter");(Ke.inlinePatterns.length>0||Ke.blockPatterns.length>0||re())&&Yne(r,Ke)&&Re.preventDefault()}},!0),r.on("keydown",Re=>{if(Re.keyCode===32&&r.selection.isCollapsed()){const Ke=_u(H(),"space");(Ke.blockPatterns.length>0||re())&&pj(r,Ke)&&Re.preventDefault()}},!0);const be=()=>{if(r.selection.isCollapsed()){const Re=_u(H(),"space");(Re.inlinePatterns.length>0||re())&&Xne(r,Re)}};r.on("keyup",Re=>{gj(B,Re)&&be()}),r.on("keypress",Re=>{Gne(g,Re)&&kg.setEditorTimeout(r,be)})},vj=r=>{Kne(r)},Bk=r=>{const g=mo.each,B=Fo.BACKSPACE,H=Fo.DELETE,re=r.dom,be=r.selection,Re=r.parser,Ke=fr.browser,ct=Ke.isFirefox(),kt=Ke.isChromium()||Ke.isSafari(),Wt=fr.deviceType.isiPhone()||fr.deviceType.isiPad(),Jt=fr.os.isMacOS()||fr.os.isiOS(),ln=(ii,Qi)=>{try{r.getDoc().execCommand(ii,!1,String(Qi))}catch{}},kn=ii=>ii.isDefaultPrevented(),Vn=()=>{const ii=Qa=>{const ci=re.create("body"),Va=Qa.cloneContents();return ci.appendChild(Va),be.serializer.serialize(ci,{format:"html"})},Qi=Qa=>{const ci=ii(Qa),Va=re.createRng();Va.selectNode(r.getBody());const Xa=ii(Va);return ci===Xa};r.on("keydown",Qa=>{const ci=Qa.keyCode;if(!kn(Qa)&&(ci===H||ci===B)&&r.selection.isEditable()){const Va=r.selection.isCollapsed(),Xa=r.getBody();if(Va&&!ba(r.schema,Xa)||!Va&&!Qi(r.selection.getRng()))return;Qa.preventDefault(),r.setContent(""),Xa.firstChild&&re.isBlock(Xa.firstChild)?r.selection.setCursorLocation(Xa.firstChild,0):r.selection.setCursorLocation(Xa,0),r.nodeChanged()}})},Rn=()=>{r.shortcuts.add("meta+a",null,"SelectAll")},qn=()=>{r.inline||re.bind(r.getDoc(),"mousedown mouseup",ii=>{let Qi;if(ii.target===r.getDoc().documentElement)if(Qi=be.getRng(),r.getBody().focus(),ii.type==="mousedown"){if(Ch(Qi.startContainer))return;be.placeCaretAt(ii.clientX,ii.clientY)}else be.setRng(Qi)})},pr=()=>{r.on("keydown",ii=>{if(!kn(ii)&&ii.keyCode===B){if(!r.getBody().getElementsByTagName("hr").length)return;if(be.isCollapsed()&&be.getRng().startOffset===0){const Qi=be.getNode(),Qa=Qi.previousSibling;if(Qi.nodeName==="HR"){re.remove(Qi),ii.preventDefault();return}Qa&&Qa.nodeName&&Qa.nodeName.toLowerCase()==="hr"&&(re.remove(Qa),ii.preventDefault())}}})},Tr=()=>{Range.prototype.getClientRects||r.on("mousedown",ii=>{if(!kn(ii)&&ii.target.nodeName==="HTML"){const Qi=r.getBody();Qi.blur(),kg.setEditorTimeout(r,()=>{Qi.focus()})}})},wr=()=>{const ii=Jx(r);r.on("click",Qi=>{const Qa=Qi.target;/^(IMG|HR)$/.test(Qa.nodeName)&&re.isEditable(Qa)&&(Qi.preventDefault(),r.selection.select(Qa),r.nodeChanged()),Qa.nodeName==="A"&&re.hasClass(Qa,ii)&&Qa.childNodes.length===0&&re.isEditable(Qa.parentNode)&&(Qi.preventDefault(),be.select(Qa))})},Ur=()=>{const ii=()=>{const Qa=re.getAttribs(be.getStart().cloneNode(!1));return()=>{const ci=be.getStart();ci!==r.getBody()&&(re.setAttrib(ci,"style",null),g(Qa,Va=>{ci.setAttributeNode(Va.cloneNode(!0))}))}},Qi=()=>!be.isCollapsed()&&re.getParent(be.getStart(),re.isBlock)!==re.getParent(be.getEnd(),re.isBlock);r.on("keypress",Qa=>{let ci;return!kn(Qa)&&(Qa.keyCode===8||Qa.keyCode===46)&&Qi()?(ci=ii(),r.getDoc().execCommand("delete",!1),ci(),Qa.preventDefault(),!1):!0}),re.bind(r.getDoc(),"cut",Qa=>{if(!kn(Qa)&&Qi()){const ci=ii();kg.setEditorTimeout(r,()=>{ci()})}})},wo=()=>{r.on("keydown",ii=>{if(!kn(ii)&&ii.keyCode===B&&be.isCollapsed()&&be.getRng().startOffset===0){const Qi=be.getNode().previousSibling;if(Qi&&Qi.nodeName&&Qi.nodeName.toLowerCase()==="table")return ii.preventDefault(),!1}return!0})},jo=()=>{r.on("keydown",ii=>{if(kn(ii)||ii.keyCode!==Fo.BACKSPACE)return;let Qi=be.getRng();const Qa=Qi.startContainer,ci=Qi.startOffset,Va=re.getRoot();let Xa=Qa;if(!(!Qi.collapsed||ci!==0)){for(;Xa.parentNode&&Xa.parentNode.firstChild===Xa&&Xa.parentNode!==Va;)Xa=Xa.parentNode;Xa.nodeName==="BLOCKQUOTE"&&(r.formatter.toggle("blockquote",void 0,Xa),Qi=re.createRng(),Qi.setStart(Qa,0),Qi.setEnd(Qa,0),be.setRng(Qi))}})},di=()=>{const ii=()=>{ln("StyleWithCSS",!1),ln("enableInlineTableEditing",!1),bd(r)||ln("enableObjectResizing",!1)};py(r)||r.on("BeforeExecCommand mousedown",ii)},lo=()=>{const ii=()=>{g(re.select("a:not([data-mce-block])"),Qi=>{var Qa;let ci=Qi.parentNode;const Va=re.getRoot();if((ci==null?void 0:ci.lastChild)===Qi){for(;ci&&!re.isBlock(ci);){if(((Qa=ci.parentNode)===null||Qa===void 0?void 0:Qa.lastChild)!==ci||ci===Va)return;ci=ci.parentNode}re.add(ci,"br",{"data-mce-bogus":1})}})};r.on("SetContent ExecCommand",Qi=>{(Qi.type==="setcontent"||Qi.command==="mceInsertLink")&&ii()})},eo=()=>{r.on("init",()=>{ln("DefaultParagraphSeparator",dc(r))})},xo=ii=>{const Qi=ii.getBody(),Qa=ii.selection.getRng();return Qa.startContainer===Qa.endContainer&&Qa.startContainer===Qi&&Qa.startOffset===0&&Qa.endOffset===Qi.childNodes.length},bi=()=>{r.on("keyup focusin mouseup",ii=>{!Fo.modifierPressed(ii)&&!xo(r)&&be.normalize()},!0)},Bi=()=>{r.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},$a=()=>{r.inline||r.on("keydown",()=>{document.activeElement===document.body&&r.getWin().focus()})},Ia=()=>{r.inline||(r.contentStyles.push("body {min-height: 150px}"),r.on("click",ii=>{let Qi;ii.target.nodeName==="HTML"&&(Qi=r.selection.getRng(),r.getBody().focus(),r.selection.setRng(Qi),r.selection.normalize(),r.nodeChanged())}))},Us=()=>{Jt&&r.on("keydown",ii=>{Fo.metaKeyPressed(ii)&&!ii.shiftKey&&(ii.keyCode===37||ii.keyCode===39)&&(ii.preventDefault(),r.selection.getSel().modify("move",ii.keyCode===37?"backward":"forward","lineboundary"))})},sl=()=>{r.on("click",ii=>{let Qi=ii.target;do if(Qi.tagName==="A"){ii.preventDefault();return}while(Qi=Qi.parentNode)}),r.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},nu=()=>{r.on("init",()=>{r.dom.bind(r.getBody(),"submit",ii=>{ii.preventDefault()})})},jd=()=>{Re.addNodeFilter("br",ii=>{let Qi=ii.length;for(;Qi--;)ii[Qi].attr("class")==="Apple-interchange-newline"&&ii[Qi].remove()})},ml=k,Wo=()=>{if(!ct||r.removed)return!1;const ii=r.selection.getSel();return!ii||!ii.rangeCount||ii.rangeCount===0},Ei=()=>{kt&&(qn(),wr(),nu(),Rn(),Wt&&($a(),Ia(),sl())),ct&&(Tr(),di(),Bi(),Us())},ws=()=>{jo(),Vn(),fr.windowsPhone||bi(),kt&&(qn(),wr(),eo(),nu(),wo(),jd(),Wt?($a(),Ia(),sl()):Rn()),ct&&(pr(),Tr(),Ur(),di(),lo(),Bi(),Us(),wo())};return Iy(r)?Ei():ws(),{refreshContentEditable:ml,isHidden:Wo}},Jne=r=>r.toLowerCase()==="gpl",yj=r=>r.length>=64&&r.length<=255,ere=r=>Jne(r)||yj(r)?"VALID":"INVALID",tre=r=>{const g=Ib(r);!v(lw(r))&&(M(g)||ere(g)==="INVALID")&&console.warn("TinyMCE is running in evaluation mode. Provide a valid license key or add license_key: 'gpl' to the init config to agree to the open source license terms. Read more at https://www.tiny.cloud/license-key/")},JR=Nl.DOM,nre=(r,g)=>{const B=sr.fromDom(r.getBody()),H=tp(of(B)),re=sr.fromTag("style");Es(re,"type","text/css"),Ps(re,sr.fromText(g)),Ps(H,re),r.on("remove",()=>{ja(re)})},bj=r=>r.inline?r.getElement().nodeName.toLowerCase():void 0,eL=r=>qt(r,g=>M(g)===!1),tL=r=>{const g=r.options.get,B=r.editorUpload.blobCache;return eL({allow_conditional_comments:g("allow_conditional_comments"),allow_html_data_urls:g("allow_html_data_urls"),allow_svg_data_urls:g("allow_svg_data_urls"),allow_html_in_named_anchor:g("allow_html_in_named_anchor"),allow_script_urls:g("allow_script_urls"),allow_unsafe_link_target:g("allow_unsafe_link_target"),convert_unsafe_embeds:g("convert_unsafe_embeds"),convert_fonts_to_spans:g("convert_fonts_to_spans"),fix_list_elements:g("fix_list_elements"),font_size_legacy_values:g("font_size_legacy_values"),forced_root_block:g("forced_root_block"),forced_root_block_attrs:g("forced_root_block_attrs"),preserve_cdata:g("preserve_cdata"),inline_styles:g("inline_styles"),root_name:bj(r),sandbox_iframes:g("sandbox_iframes"),sandbox_iframes_exclusions:i2(r),sanitize:g("xss_sanitization"),validate:!0,blob_cache:B,document:r.getDoc()})},xj=r=>{const g=r.options.get;return eL({custom_elements:g("custom_elements"),extended_valid_elements:g("extended_valid_elements"),invalid_elements:g("invalid_elements"),invalid_styles:g("invalid_styles"),schema:g("schema"),valid_children:g("valid_children"),valid_classes:g("valid_classes"),valid_elements:g("valid_elements"),valid_styles:g("valid_styles"),verify_html:g("verify_html"),padd_empty_block_inline_children:g("format_empty_lines")})},rre=r=>{const g=r.options.get;return{...tL(r),...xj(r),...eL({remove_trailing_brs:g("remove_trailing_brs"),pad_empty_with_br:g("pad_empty_with_br"),url_converter:g("url_converter"),url_converter_scope:g("url_converter_scope"),element_format:g("element_format"),entities:g("entities"),entity_encoding:g("entity_encoding"),indent:g("indent"),indent_after:g("indent_after"),indent_before:g("indent_before")})}},ore=r=>{const g=Ry(tL(r),r.schema);return g.addAttributeFilter("src,href,style,tabindex",(B,H)=>{const re=r.dom,be="data-mce-"+H;let Re=B.length;for(;Re--;){const Ke=B[Re];let ct=Ke.attr(H);if(ct&&!Ke.attr(be)){if(ct.indexOf("data:")===0||ct.indexOf("blob:")===0)continue;H==="style"?(ct=re.serializeStyle(re.parseStyle(ct),Ke.name),ct.length||(ct=null),Ke.attr(be,ct),Ke.attr(H,ct)):H==="tabindex"?(Ke.attr(be,ct),Ke.attr(H,null)):Ke.attr(be,r.convertURL(ct,H,Ke.name))}}}),g.addNodeFilter("script",B=>{let H=B.length;for(;H--;){const re=B[H],be=re.attr("type")||"no/type";be.indexOf("mce-")!==0&&re.attr("type","mce-"+be)}}),r2(r)&&g.addNodeFilter("#cdata",B=>{var H;let re=B.length;for(;re--;){const be=B[re];be.type=8,be.name="#comment",be.value="[CDATA["+r.dom.encode((H=be.value)!==null&&H!==void 0?H:"")+"]]"}}),g.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",B=>{let H=B.length;const re=r.schema.getNonEmptyElements();for(;H--;){const be=B[H];be.isEmpty(re)&&be.getAll("br").length===0&&be.append(new yp("br",1))}}),g},ire=r=>{const g=Pb(r);g&&kg.setEditorTimeout(r,()=>{let B;g===!0?B=r:B=r.editorManager.get(g),B&&!B.destroyed&&(B.focus(),B.selection.scrollIntoView())},100)},are=r=>{const g=r.dom.getRoot();!r.inline&&(!XS(r)||r.selection.getStart(!0)===g)&&lh(g).each(B=>{const H=B.getNode(),re=Et(H)?lh(H).getOr(B):B;r.selection.setRng(re.toRange())})},sre=r=>{r.bindPendingEventDelegates(),r.initialized=!0,sE(r),r.focus(!0),are(r),r.nodeChanged({initial:!0});const g=Wh(r);C(g)&&g.call(r,r),ire(r)},nL=r=>r.inline?r.ui.styleSheetLoader:r.dom.styleSheetLoader,lre=(r,g,B)=>{const{pass:H,fail:re}=Se(g,Ke=>tinymce.Resource.has(OP(Ke))),Re=[...H.map(Ke=>{const ct=tinymce.Resource.get(OP(Ke));return v(ct)?Promise.resolve(nL(r).loadRawCss(Ke,ct)):Promise.resolve()}),nL(r).loadAll(re)];return r.inline?Re:Re.concat([r.ui.styleSheetLoader.loadAll(B)])},_j=r=>{const g=nL(r),B=Wu(r),H=r.contentCSS,re=()=>{g.unloadAll(H),r.inline||r.ui.styleSheetLoader.unloadAll(B)},be=()=>{r.removed?re():r.on("remove",re)};if(r.contentStyles.length>0){let ct="";mo.each(r.contentStyles,kt=>{ct+=kt+`\r -`}),r.dom.addStyle(ct)}const Re=Promise.all(lre(r,H,B)).then(be).catch(be),Ke=Ob(r);return Ke&&nre(r,Ke),Re},wj=r=>{const g=r.getDoc(),B=r.getBody();n6(r),zm(r)||(g.body.spellcheck=!1,JR.setAttrib(B,"spellcheck","false")),r.quirks=Bk(r),E3(r);const H=Yx(r);H!==void 0&&(B.dir=H);const re=rw(r);re&&r.on("BeforeSetContent",be=>{mo.each(re,Re=>{be.content=be.content.replace(Re,Ke=>"")})}),r.on("SetContent",()=>{r.addVisual(r.getBody())}),r.on("compositionstart compositionend",be=>{r.composing=be.type==="compositionstart"})},rL=r=>{Iy(r)||r.load({initial:!0,format:"html"}),r.startContent=r.getContent({format:"raw"})},J8=r=>{r.removed!==!0&&(rL(r),sre(r))},Oj=r=>{let g=!1;const B=setTimeout(()=>{g||r.setProgressState(!0)},500);return()=>{clearTimeout(B),g=!0,r.setProgressState(!1)}},Sj=r=>{const g=r.getElement();let B=r.getDoc();r.inline&&(JR.addClass(g,"mce-content-body"),r.contentDocument=B=document,r.contentWindow=window,r.bodyElement=g,r.contentAreaContainer=g);const H=r.getBody();H.disabled=!0,r.readonly=py(r),r._editableRoot=Gx(r),!r.readonly&&r.hasEditableRoot()&&(r.inline&&JR.getStyle(H,"position",!0)==="static"&&(H.style.position="relative"),H.contentEditable="true"),H.disabled=!1,r.editorUpload=wG(r),r.schema=Np(xj(r)),r.dom=Nl(B,{keep_values:!0,url_converter:r.convertURL,url_converter_scope:r,update_styles:!0,root_element:r.inline?r.getBody():null,collect:r.inline,schema:r.schema,contentCssCors:W1(r),referrerPolicy:Y1(r),onSetAttrib:Re=>{r.dispatch("SetAttrib",Re)}}),r.parser=ore(r),r.serializer=gP(rre(r),r),r.selection=nN(r.dom,r.getWin(),r.serializer,r),r.annotator=J0(r),r.formatter=wN(r),r.undoManager=MP(r),r._nodeChangeDispatcher=new ate(r),r._selectionOverrides=rj(r),v4(r),nne(r),VK(r),Iy(r)||(zU(r),vj(r));const re=sU(r);DK(r,re),FK(r),MG(r),Jte(r);const be=jF(r);wj(r),tre(r),be.fold(()=>{const Re=Oj(r);_j(r).then(()=>{J8(r),Re()})},Re=>{r.setProgressState(!0),_j(r).then(()=>{Re().then(Ke=>{r.setProgressState(!1),J8(r),JF(r)},Ke=>{r.notificationManager.open({type:"error",text:String(Ke)}),J8(r),JF(r)})})})},cre=q,ure=(r,g,B)=>Dp(r,g,cre,B),eA=Nl.DOM,kj=(r,g,B,H)=>{const re=sr.fromTag("iframe");return H.each(be=>Es(re,"tabindex",be)),ef(re,B),ef(re,{id:r+"_ifr",frameBorder:"0",allowTransparency:"true",title:g}),xf(re,"tox-edit-area__iframe"),re},fre=r=>{let g=Mh(r)+"";il(r)!==r.documentBaseUrl&&(g+=''),g+='';const B=Im(r),H=ah(r),re=r.translate(e2(r));return Bu(r)&&(g+=''),g+=`
    `,g},dre=(r,g)=>{const B=fr.browser.isFirefox()?e2(r):"Rich Text Area",H=r.translate(B),re=ad(sr.fromDom(r.getElement()),"tabindex").bind(zr),be=kj(r.id,H,Mc(r),re).dom;be.onload=()=>{be.onload=null,r.dispatch("load")},r.contentAreaContainer=g.iframeContainer,r.iframeElement=be,r.iframeHTML=fre(r),eA.add(g.iframeContainer,be)},oL=r=>{const g=r.iframeElement,B=()=>{r.contentDocument=g.contentDocument,Sj(r)};if(wd(r)||fr.browser.isFirefox()){const H=r.getDoc();H.open(),H.write(r.iframeHTML),H.close(),B()}else{const H=ure(sr.fromDom(g),"load",()=>{H.unbind(),B()});g.srcdoc=r.iframeHTML}},tA=(r,g)=>{dre(r,g),g.editorContainer&&(g.editorContainer.style.display=r.orgDisplay,r.hidden=eA.isHidden(g.editorContainer)),r.getElement().style.display="none",eA.setAttrib(r.id,"aria-hidden","true"),r.getElement().style.visibility=r.orgVisibility,oL(r)},zk=Nl.DOM,sx=(r,g,B)=>{const H=a4.get(B),re=a4.urls[B]||r.documentBaseUrl.replace(/\/$/,"");if(B=mo.trim(B),H&&mo.inArray(g,B)===-1){if(r.plugins[B])return;try{const be=H(r,re)||{};r.plugins[B]=be,C(be.init)&&(be.init(r,re),g.push(B))}catch(be){wP(r,B,be)}}},nA=r=>r.replace(/^\-/,""),E4=r=>{const g=[];ye(ev(r),B=>{sx(r,g,nA(B))})},Tj=r=>{const g=mo.trim(Jc(r)),B=r.ui.registry.getAll().icons,H={...o4.get("default").icons,...o4.get(g).icons};Ge(H,(re,be)=>{_t(B,be)||r.ui.registry.addIcon(be,re)})},hre=r=>{const g=bg(r);if(v(g)){const B=yv.get(g);r.theme=B(r,yv.urls[g])||{},C(r.theme.init)&&r.theme.init(r,yv.urls[g]||r.documentBaseUrl.replace(/\/$/,""))}else r.theme={}},pre=r=>{const g=kb(r),B=i4.get(g);r.model=B(r,i4.urls[g])},Cj=r=>{const g=r.theme.renderUI;return g?g():lx(r)},mre=r=>{const g=r.getElement(),H=bg(r)(r,g);return H.editorContainer.nodeType&&(H.editorContainer.id=H.editorContainer.id||r.id+"_parent"),H.iframeContainer&&H.iframeContainer.nodeType&&(H.iframeContainer.id=H.iframeContainer.id||r.id+"_iframecontainer"),H.height=H.iframeHeight?H.iframeHeight:g.offsetHeight,H},rA=(r,g)=>({editorContainer:r,iframeContainer:g,api:{}}),oA=r=>{const g=zk.create("div");return zk.insertAfter(g,r),rA(g,g)},lx=r=>{const g=r.getElement();return r.inline?rA(null):oA(g)},lO=r=>{const g=r.getElement();return r.orgDisplay=g.style.display,v(bg(r))?Cj(r):C(bg(r))?mre(r):lx(r)},Aj=(r,g)=>{const B={show:Y.from(g.show).getOr(k),hide:Y.from(g.hide).getOr(k),isEnabled:Y.from(g.isEnabled).getOr(q),setEnabled:H=>{r.mode.isReadOnly()||Y.from(g.setEnabled).each(re=>re(H))}};r.ui={...r.ui,...B}},gre=async r=>{r.dispatch("ScriptsLoaded"),Tj(r),hre(r),pre(r),E4(r);const g=await lO(r);Aj(r,Y.from(g.api).getOr({})),r.editorContainer=g.editorContainer,bG(r),r.inline?Sj(r):tA(r,{editorContainer:g.editorContainer,iframeContainer:g.iframeContainer})},cO=Nl.DOM,Mj=r=>r.charAt(0)==="-",vre=(r,g)=>{const B=X1(g),H=Zp(g);if(!Du.hasCode(B)&&B!=="en"){const re=Kn(H)?H:`${g.editorManager.baseURL}/langs/${B}.js`;r.add(re).catch(()=>{mG(g,re,B)})}},yre=(r,g)=>{const B=bg(r);if(v(B)&&!Mj(B)&&!_t(yv.urls,B)){const H=Sb(r),re=H?r.documentBaseURI.toAbsolute(H):`themes/${B}/theme${g}.js`;yv.load(B,re).catch(()=>{afe(r,re,B)})}},bre=(r,g)=>{const B=kb(r);if(B!=="plugin"&&!_t(i4.urls,B)){const H=Xx(r),re=v(H)?r.documentBaseURI.toAbsolute(H):`models/${B}/model${g}.js`;i4.load(B,re).catch(()=>{bv(r,re,B)})}},Ej=r=>Y.from(Pc(r)).filter(Kn).map(g=>({url:g,name:Y.none()})),Pj=(r,g,B)=>Y.from(g).filter(H=>Kn(H)&&!o4.has(H)).map(H=>({url:`${r.editorManager.baseURL}/icons/${H}/icons${B}.js`,name:Y.some(H)})),xre=(r,g,B)=>{const H=Pj(g,"default",B),re=Ej(g).orThunk(()=>Pj(g,Jc(g),""));ye(Na([H,re]),be=>{r.add(be.url).catch(()=>{pG(g,be.url,be.name.getOrUndefined())})})},_re=(r,g)=>{const B=(H,re)=>{a4.load(H,re).catch(()=>{hG(r,re,H)})};Ge(e3(r),(H,re)=>{B(re,H),r.options.set("plugins",ev(r).concat(re))}),ye(ev(r),H=>{H=mo.trim(H),H&&!a4.urls[H]&&!Mj(H)&&B(H,`plugins/${H}/plugin${g}.js`)})},Mfe=r=>{const g=bg(r);return!v(g)||E(yv.get(g))},wre=r=>{const g=kb(r);return E(i4.get(g))},iL=(r,g)=>{const B=Mm.ScriptLoader,H=()=>{!r.removed&&Mfe(r)&&wre(r)&&gre(r)};yre(r,g),bre(r,g),vre(B,r),xre(B,r,g),_re(r,g),B.loadQueue().then(H,H)},Ore=(r,g)=>wm.forElement(r,{contentCssCors:Mb(g),referrerPolicy:Y1(g)}),Sre=r=>{const g=r.id;Du.setCode(X1(r));const B=()=>{cO.unbind(window,"ready",B),r.render()};if(!pd.Event.domLoaded){cO.bind(window,"ready",B);return}if(!r.getElement())return;const H=sr.fromDom(r.getElement()),re=Mp(H);r.on("remove",()=>{_e(H.dom.attributes,Re=>gc(H,Re.name)),ef(H,re)}),r.ui.styleSheetLoader=Ore(H,r),K1(r)?r.inline=!0:(r.orgVisibility=r.getElement().style.visibility,r.getElement().style.visibility="hidden");const be=r.getElement().form||cO.getParent(g,"form");be&&(r.formElement=be,xg(r)&&!jt(r.getElement())&&(cO.insertAfter(cO.create("input",{type:"hidden",name:g}),g),r.hasHiddenInput=!0),r.formEventDelegate=Re=>{r.dispatch(Re.type,Re)},cO.bind(be,"submit reset",r.formEventDelegate),r.on("reset",()=>{r.resetContent()}),Cb(r)&&!be.submit.nodeType&&!be.submit.length&&!be._mceOldSubmit&&(be._mceOldSubmit=be.submit,be.submit=()=>(r.editorManager.triggerSave(),r.setDirty(!1),be._mceOldSubmit(be)))),r.windowManager=_P(r),r.notificationManager=hN(r),l0(r)&&r.on("GetContent",Re=>{Re.save&&(Re.content=cO.encode(Re.content))}),nw(r)&&r.on("submit",()=>{r.initialized&&r.save()}),Ab(r)&&(r._beforeUnload=()=>{r.initialized&&!r.destroyed&&!r.isHidden()&&r.save({format:"raw",no_events:!0,set_dirty:!1})},r.editorManager.on("BeforeUnload",r._beforeUnload)),r.editorManager.add(r),iL(r,r.suffix)},Rj=(r,g)=>{r._editableRoot!==g&&(r._editableRoot=g,r.readonly||(r.getBody().contentEditable=String(r.hasEditableRoot()),r.nodeChanged()),a5(r,g))},kre=r=>r._editableRoot,Lj=(r,g)=>({sections:$(r),options:$(g)}),Ij=tr().deviceType,iA=Ij.isPhone(),Tre=Ij.isTablet(),Fk=r=>{if(T(r))return[];{const g=A(r)?r:r.split(/[ ,]/),B=ve(g,Fn);return Te(B,Kn)}},Cre=(r,g)=>{const B=It(g,(H,re)=>ce(r,re));return Lj(B.t,B.f)},Are=(r,g,B={})=>{const H=r.sections(),re=Ct(H,g).getOr({});return mo.extend({},B,re)},aA=(r,g)=>_t(r.sections(),g),aL=(r,g)=>aA(r,g)?r.sections()[g]:{},Dj=(r,g)=>({...{table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:Ct(r,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},...g?{menubar:!1}:{}}),sL=(r,g)=>{var B;const H=(B=g.external_plugins)!==null&&B!==void 0?B:{};return r&&r.external_plugins?mo.extend({},r.external_plugins,H):H},Mre=(r,g)=>[...Fk(r),...Fk(g)],Efe=(r,g,B,H)=>r&&aA(g,"mobile")?H:B,Pfe=(r,g,B,H)=>{const re=Fk(B.forced_plugins),be=Fk(H.plugins),Re=aL(g,"mobile"),Ke=Re.plugins?Fk(Re.plugins):be,ct=Efe(r,g,be,Ke),kt=Mre(re,ct);return mo.extend(H,{forced_plugins:re,plugins:kt})},Ere=(r,g)=>r&&aA(g,"mobile"),Bj=(r,g,B,H,re)=>{var be;const Re=r?{mobile:Dj((be=re.mobile)!==null&&be!==void 0?be:{},g)}:{},Ke=Cre(["mobile"],g8(Re,re)),ct=mo.extend(B,H,Ke.options(),Ere(r,Ke)?Are(Ke,"mobile"):{},{external_plugins:sL(H,Ke.options())});return Pfe(r,Ke,H,ct)},Pre=(r,g)=>{const B=L9(g);return Bj(iA||Tre,iA,B,r,B)},Rre=(r,g)=>EX(r,g),Lre=r=>{const g=(H,re)=>{r.formatter.toggle(H,re),r.nodeChanged()},B=H=>()=>{ye("left,center,right,justify".split(","),re=>{H!==re&&r.formatter.remove("align"+re)}),H!=="none"&&g("align"+H)};r.editorCommands.addCommands({JustifyLeft:B("left"),JustifyCenter:B("center"),JustifyRight:B("right"),JustifyFull:B("justify"),JustifyNone:B("none")})},Rfe=r=>{const g=B=>()=>{const H=r.selection,re=H.isCollapsed()?[r.dom.getParent(H.getNode(),r.dom.isBlock)]:H.getSelectedBlocks();return de(re,be=>E(r.formatter.matchNode(be,B)))};r.editorCommands.addCommands({JustifyLeft:g("alignleft"),JustifyCenter:g("aligncenter"),JustifyRight:g("alignright"),JustifyFull:g("alignjustify")},"state")},Lfe=r=>{Lre(r),Rfe(r)},zj=r=>{r.editorCommands.addCommands({"Cut,Copy,Paste":g=>{const B=r.getDoc();let H;try{B.execCommand(g)}catch{H=!0}if(g==="paste"&&!B.queryCommandEnabled(g)&&(H=!0),H||!B.queryCommandSupported(g)){let re=r.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(fr.os.isMacOS()||fr.os.isiOS())&&(re=re.replace(/Ctrl\+/g,"⌘+")),r.notificationManager.open({text:re,type:"error"})}}})},Fj=(r,g,B,H)=>{const re=sr.fromDom(r.getRoot());return x5(re,qr.fromRangeStart(g),H)?B=B.replace(/^ /," "):B=B.replace(/^ /," "),_5(re,qr.fromRangeEnd(g),H)?B=B.replace(/( | )()?$/," "):B=B.replace(/ ()?$/," "),B},Ire=r=>{if(typeof r!="string"){const g=mo.extend({paste:r.paste,data:{paste:r.paste}},r);return{content:r.content,details:g}}return{content:r,details:{}}},Dre=(r,g)=>{const B=r.selection,H=r.dom;return/^ | $/.test(g)?Fj(H,B.getRng(),g,r.schema):g},sA=(r,g)=>{if(r.selection.isEditable()){const{content:B,details:H}=Ire(g);nP(r,{...H,content:Dre(r,B),format:"html",set:!1,selection:!0}).each(re=>{const be=KF(r,re.content,H);rP(r,be,re),r.addVisual()})}},Ife=r=>{r.editorCommands.addCommands({mceCleanup:()=>{const g=r.selection.getBookmark();r.setContent(r.getContent()),r.selection.moveToBookmark(g)},insertImage:(g,B,H)=>{sA(r,r.dom.createHTML("img",{src:H}))},insertHorizontalRule:()=>{r.execCommand("mceInsertContent",!1,"
    ")},insertText:(g,B,H)=>{sA(r,r.dom.encode(H))},insertHTML:(g,B,H)=>{sA(r,H)},mceInsertContent:(g,B,H)=>{sA(r,H)},mceSetContent:(g,B,H)=>{r.setContent(H)},mceReplaceContent:(g,B,H)=>{r.execCommand("mceInsertContent",!1,H.replace(/\{\$selection\}/g,r.selection.getContent({format:"text"})))},mceNewDocument:()=>{r.setContent(nv(r))}})},Dfe={"font-size":"size","font-family":"face"},Bfe=Ju("font"),Bre=(r,g,B)=>{const H=be=>Ru(be,r).orThunk(()=>Bfe(be)?Ct(Dfe,r).bind(Re=>ad(be,Re)):Y.none()),re=be=>Fa(sr.fromDom(g),be);return g7(sr.fromDom(B),be=>H(be),re)},zfe=r=>r.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),zre=(r,g)=>Y.from(Nl.DOM.getStyle(g,r,!0)),j2=r=>(g,B)=>Y.from(B).map(sr.fromDom).filter(mc).bind(H=>Bre(r,g,H.dom).or(zre(r,H.dom))).getOr(""),lL=j2("font-size"),lA=I(zfe,j2("font-family")),Nj=r=>lh(r.getBody()).bind(g=>{const B=g.container();return Y.from(Nt(B)?B.parentNode:B)}),$j=r=>Y.from(r.selection.getRng()).bind(g=>{const B=r.getBody();return g.startContainer===B&&g.startOffset===0?Y.none():Y.from(r.selection.getStart(!0))}),Vj=(r,g)=>$j(r).orThunk(U(Nj,r)).map(sr.fromDom).filter(mc).bind(g),cL=(r,g)=>Vj(r,z(Y.some,g)),Uj=(r,g)=>{if(/^[0-9.]+$/.test(g)){const B=parseInt(g,10);if(B>=1&&B<=7){const H=s0(r),re=Lb(r);return re.length>0?re[B-1]||g:H[B-1]||g}else return g}else return g},Fre=r=>{const g=r.split(/\s*,\s*/);return ve(g,B=>B.indexOf(" ")!==-1&&!(xr(B,'"')||xr(B,"'"))?`'${B}'`:B).join(",")},Nre=(r,g)=>{const B=Uj(r,g);r.formatter.toggle("fontname",{value:Fre(B)}),r.nodeChanged()},$re=r=>cL(r,g=>lA(r.getBody(),g.dom)).getOr(""),Vre=(r,g)=>{r.formatter.toggle("fontsize",{value:Uj(r,g)}),r.nodeChanged()},Q2=r=>cL(r,g=>lL(r.getBody(),g.dom)).getOr(""),Ure=r=>cL(r,g=>{const B=sr.fromDom(r.getBody()),H=g7(g,be=>Ru(be,"line-height"),U(Fa,B)),re=()=>{const be=parseFloat(pi(g,"line-height")),Re=parseFloat(pi(g,"font-size"));return String(be/Re)};return H.getOrThunk(re)}).getOr(""),jj=(r,g)=>{r.formatter.toggle("lineheight",{value:String(g)}),r.nodeChanged()},jre=r=>{const g=(B,H)=>{r.formatter.toggle(B,H),r.nodeChanged()};r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>{g(B)},"ForeColor,HiliteColor":(B,H,re)=>{g(B,{value:re})},BackColor:(B,H,re)=>{g("hilitecolor",{value:re})},FontName:(B,H,re)=>{Nre(r,re)},FontSize:(B,H,re)=>{Vre(r,re)},LineHeight:(B,H,re)=>{jj(r,re)},Lang:(B,H,re)=>{var be;g(B,{value:re.code,customValue:(be=re.customCode)!==null&&be!==void 0?be:null})},RemoveFormat:B=>{r.formatter.remove(B)},mceBlockQuote:()=>{g("blockquote")},FormatBlock:(B,H,re)=>{g(v(re)?re:"p")},mceToggleFormat:(B,H,re)=>{g(re)}})},cA=r=>{const g=B=>r.formatter.match(B);r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>g(B),mceBlockQuote:()=>g("blockquote")},"state"),r.editorCommands.addQueryValueHandler("FontName",()=>$re(r)),r.editorCommands.addQueryValueHandler("FontSize",()=>Q2(r)),r.editorCommands.addQueryValueHandler("LineHeight",()=>Ure(r))},Qre=r=>{jre(r),cA(r)},Hre=r=>{r.editorCommands.addCommands({mceAddUndoLevel:()=>{r.undoManager.add()},mceEndUndoLevel:()=>{r.undoManager.add()},Undo:()=>{r.undoManager.undo()},Redo:()=>{r.undoManager.redo()}})},Zre=r=>{r.editorCommands.addCommands({Indent:()=>{s9(r)},Outdent:()=>{M$(r)}}),r.editorCommands.addCommands({Outdent:()=>t8(r)},"state")},Qj=r=>{const g=(B,H,re)=>{const be=v(re)?{href:re}:re,Re=r.dom.getParent(r.selection.getNode(),"a");_(be)&&v(be.href)&&(be.href=be.href.replace(/ /g,"%20"),(!Re||!be.href)&&r.formatter.remove("link"),be.href&&r.formatter.apply("link",be,Re))};r.editorCommands.addCommands({unlink:()=>{if(r.selection.isEditable()){if(r.selection.isCollapsed()){const B=r.dom.getParent(r.selection.getStart(),"a");B&&r.dom.remove(B,!0);return}r.formatter.remove("link")}},mceInsertLink:g,createLink:g})},qre=(r,g,B,H)=>{const re=r.dom,be=Ke=>re.isBlock(Ke)&&Ke.parentElement===B,Re=be(g)?g:re.getParent(H,be,B);return Y.from(Re).map(sr.fromDom)},Hj=(r,g)=>{const B=r.dom,H=r.selection.getRng(),re=g?r.selection.getStart():r.selection.getEnd(),be=g?H.startContainer:H.endContainer,Re=Sk(B,be);if(!Re||!Re.isContentEditable)return;const Ke=g?Fc:si,ct=dc(r);qre(r,re,Re,be).each(kt=>{const Wt=VV(r,be,kt.dom,Re,!1,ct);Ke(kt,sr.fromDom(Wt)),r.selection.setCursorLocation(Wt,0),r.dispatch("NewBlock",{newBlock:Wt}),Ok(r,"insertParagraph")})},Wre=r=>Hj(r,!0),Yre=r=>Hj(r,!1),uL=r=>{r.editorCommands.addCommands({InsertNewBlockBefore:()=>{Wre(r)},InsertNewBlockAfter:()=>{Yre(r)}})},Xre=r=>{r.editorCommands.addCommands({insertParagraph:()=>{E8(HV,r)},mceInsertNewLine:(g,B,H)=>{P8(r,H)},InsertLineBreak:(g,B,H)=>{E8(T8,r)}})},Gre=r=>{r.editorCommands.addCommands({mceSelectNodeDepth:(g,B,H)=>{let re=0;r.dom.getParent(r.selection.getNode(),be=>ne(be)&&re++===H?(r.selection.select(be),!1):!0,r.getBody())},mceSelectNode:(g,B,H)=>{r.selection.select(H)},selectAll:()=>{const g=r.dom.getParent(r.selection.getStart(),Sn);if(g){const B=r.dom.createRng();B.selectNodeContents(g),r.selection.setRng(B)}}})},Lf=r=>{r.editorCommands.addCommands({mceRemoveNode:(g,B,H)=>{const re=H??r.selection.getNode();if(re!==r.getBody()){const be=r.selection.getBookmark();r.dom.remove(re,!0),r.selection.moveToBookmark(be)}},mcePrint:()=>{r.getWin().print()},mceFocus:(g,B,H)=>{AE(r,H===!0)},mceToggleVisualAid:()=>{r.hasVisual=!r.hasVisual,r.addVisual()}})},Kre=r=>{Lfe(r),zj(r),Hre(r),Gre(r),Ife(r),Qj(r),Zre(r),uL(r),Xre(r),Qre(r),Lf(r)},Jre=["toggleview"],uA=r=>ce(Jre,r.toLowerCase());class fL{constructor(g){this.commands={state:{},exec:{},value:{}},this.editor=g}execCommand(g,B=!1,H,re){const be=this.editor,Re=g.toLowerCase(),Ke=re==null?void 0:re.skip_focus;if(be.removed||(Re!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(Re)&&!Ke?be.focus():qD(be)),be.dispatch("BeforeExecCommand",{command:g,ui:B,value:H}).isDefaultPrevented()))return!1;const kt=this.commands.exec[Re];return C(kt)?(kt(Re,B,H),be.dispatch("ExecCommand",{command:g,ui:B,value:H}),!0):!1}queryCommandState(g){if(!uA(g)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const B=g.toLowerCase(),H=this.commands.state[B];return C(H)?H(B):!1}queryCommandValue(g){if(!uA(g)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const B=g.toLowerCase(),H=this.commands.value[B];return C(H)?H(B):""}addCommands(g,B="exec"){const H=this.commands;Ge(g,(re,be)=>{ye(be.toLowerCase().split(","),Re=>{H[B][Re]=re})})}addCommand(g,B,H){const re=g.toLowerCase();this.commands.exec[re]=(be,Re,Ke)=>B.call(H??this.editor,Re,Ke)}queryCommandSupported(g){const B=g.toLowerCase();return!!this.commands.exec[B]}addQueryStateHandler(g,B,H){this.commands.state[g.toLowerCase()]=()=>B.call(H??this.editor)}addQueryValueHandler(g,B,H){this.commands.value[g.toLowerCase()]=()=>B.call(H??this.editor)}}const cx="data-mce-contenteditable",eoe=(r,g,B)=>{rs(r,g)&&!B?nf(r,g):B&&xf(r,g)},dL=(r,g,B)=>{try{r.getDoc().execCommand(g,!1,String(B))}catch{}},fA=(r,g)=>{r.dom.contentEditable=g?"true":"false"},toe=r=>{ye(Zl(r,'*[contenteditable="true"]'),g=>{Es(g,cx,"true"),fA(g,!1)})},noe=r=>{ye(Zl(r,`*[${cx}="true"]`),g=>{gc(g,cx),fA(g,!0)})},roe=r=>{Y.from(r.selection.getNode()).each(g=>{g.removeAttribute("data-mce-selected")})},ooe=r=>{r.selection.setRng(r.selection.getRng())},ioe=(r,g)=>{const B=sr.fromDom(r.getBody());eoe(B,"mce-content-readonly",g),g?(r.selection.controlSelection.hideResizeRect(),r._selectionOverrides.hideFakeCaret(),roe(r),r.readonly=!0,fA(B,!1),toe(B)):(r.readonly=!1,r.hasEditableRoot()&&fA(B,!0),noe(B),dL(r,"StyleWithCSS",!1),dL(r,"enableInlineTableEditing",!1),dL(r,"enableObjectResizing",!1),v5(r)&&r.focus(),ooe(r),r.nodeChanged())},h1=r=>r.readonly,p1=r=>{r.parser.addAttributeFilter("contenteditable",g=>{h1(r)&&ye(g,B=>{B.attr(cx,B.attr("contenteditable")),B.attr("contenteditable","false")})}),r.serializer.addAttributeFilter(cx,g=>{h1(r)&&ye(g,B=>{B.attr("contenteditable",B.attr(cx))})}),r.serializer.addTempAttr(cx)},aoe=r=>{r.serializer?p1(r):r.on("PreInit",()=>{p1(r)})},soe=r=>r.type==="click",loe=["copy"],coe=r=>ce(loe,r.type),uoe=(r,g)=>pu(g,"a",H=>Fa(H,sr.fromDom(r.getBody()))).bind(H=>ad(H,"href")),foe=(r,g)=>{if(soe(g)&&!Fo.metaKeyPressed(g)){const B=sr.fromDom(g.target);uoe(r,B).each(H=>{if(g.preventDefault(),/^#/.test(H)){const re=r.dom.select(`${H},[name="${In(H,"#")}"]`);re.length&&r.selection.scrollIntoView(re[0],!0)}else window.open(H,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else coe(g)&&r.dispatch(g.type,g)},doe=r=>{r.on("ShowCaret",g=>{h1(r)&&g.preventDefault()}),r.on("ObjectSelected",g=>{h1(r)&&g.preventDefault()})},hoe=mo.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class hL{static isNative(g){return!!hoe[g.toLowerCase()]}constructor(g){this.bindings={},this.settings=g||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||oe}fire(g,B){return this.dispatch(g,B)}dispatch(g,B){const H=g.toLowerCase(),re=Lx(H,B??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(re);const be=this.bindings[H];if(be)for(let Re=0,Ke=be.length;Re{this.toggleEvent(ct,!1),delete this.bindings[ct]}),this;if(Re){if(!B)Re.length=0;else{const Ke=Se(Re,ct=>ct.func===B);Re=Ke.fail,this.bindings[be]=Re,ye(Ke.pass,ct=>{ct.removed=!0})}Re.length||(this.toggleEvent(g,!1),delete this.bindings[be])}}}else Ge(this.bindings,(H,re)=>{this.toggleEvent(re,!1)}),this.bindings={};return this}once(g,B,H){return this.on(g,B,H,{once:!0})}has(g){g=g.toLowerCase();const B=this.bindings[g];return!(!B||B.length===0)}}const dA=r=>(r._eventDispatcher||(r._eventDispatcher=new hL({scope:r,toggleEvent:(g,B)=>{hL.isNative(g)&&r.toggleNativeEvent&&r.toggleNativeEvent(g,B)}})),r._eventDispatcher),pL={fire(r,g,B){return this.dispatch(r,g,B)},dispatch(r,g,B){const H=this;if(H.removed&&r!=="remove"&&r!=="detach")return Lx(r.toLowerCase(),g??{},H);const re=dA(H).dispatch(r,g);if(B!==!1&&H.parent){let be=H.parent();for(;be&&!re.isPropagationStopped();)be.dispatch(r,re,!1),be=be.parent?be.parent():void 0}return re},on(r,g,B){return dA(this).on(r,g,B)},off(r,g){return dA(this).off(r,g)},once(r,g){return dA(this).once(r,g)},hasEventListeners(r){return dA(this).has(r)}},hA=Nl.DOM;let uO;const pA=(r,g)=>{if(g==="selectionchange")return r.getDoc();if(!r.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(g))return r.getDoc().documentElement;const B=hp(r);return B?(r.eventRoot||(r.eventRoot=hA.select(B)[0]),r.eventRoot):r.getBody()},poe=r=>!r.hidden&&!h1(r),Zj=(r,g,B)=>{poe(r)?r.dispatch(g,B):h1(r)&&foe(r,B)},moe=(r,g)=>{if(r.delegates||(r.delegates={}),r.delegates[g]||r.removed)return;const B=pA(r,g);if(hp(r)){if(uO||(uO={},r.editorManager.on("removeEditor",()=>{r.editorManager.activeEditor||uO&&(Ge(uO,(re,be)=>{r.dom.unbind(pA(r,be))}),uO=null)})),uO[g])return;const H=re=>{const be=re.target,Re=r.editorManager.get();let Ke=Re.length;for(;Ke--;){const ct=Re[Ke].getBody();(ct===be||hA.isChildOf(be,ct))&&Zj(Re[Ke],g,re)}};uO[g]=H,hA.bind(B,g,H)}else{const H=re=>{Zj(r,g,re)};hA.bind(B,g,H),r.delegates[g]=H}},qj={...pL,bindPendingEventDelegates(){const r=this;mo.each(r._pendingNativeEvents,g=>{moe(r,g)})},toggleNativeEvent(r,g){const B=this;r==="focus"||r==="blur"||B.removed||(g?B.initialized?moe(B,r):B._pendingNativeEvents?B._pendingNativeEvents.push(r):B._pendingNativeEvents=[r]:B.initialized&&B.delegates&&(B.dom.unbind(pA(B,r),r,B.delegates[r]),delete B.delegates[r]))},unbindAllNativeEvents(){const r=this,g=r.getBody(),B=r.dom;r.delegates&&(Ge(r.delegates,(H,re)=>{r.dom.unbind(pA(r,re),re,H)}),delete r.delegates),!r.inline&&g&&B&&(g.onload=null,B.unbind(r.getWin()),B.unbind(r.getDoc())),B&&(B.unbind(g),B.unbind(r.getContainer()))}},goe=r=>v(r)?{value:r.split(/[ ,]/),valid:!0}:D(r,v)?{value:r,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},voe=r=>{const g=(()=>{switch(r){case"array":return A;case"boolean":return R;case"function":return C;case"number":return L;case"object":return _;case"string":return v;case"string[]":return goe;case"object[]":return B=>D(B,_);case"regexp":return B=>m(B,RegExp);default:return q}})();return B=>mL(B,g,`The value must be a ${r}.`)},yoe=r=>v(r.processor),Wj=(r,g)=>{const B=_r(g.message)?"":`. ${g.message}`;return r+B},Yj=r=>r.valid,mL=(r,g,B="")=>{const H=g(r);return R(H)?H?{value:r,valid:!0}:{valid:!1,message:B}:H},boe=(r,g,B)=>{if(!M(g)){const H=mL(g,B);if(Yj(H))return H.value;console.error(Wj(`Invalid default value passed for the "${r}" option`,H))}},xoe=(r,g,B=g)=>{const H={},re={},be=(kn,Vn,Rn)=>{const qn=mL(Vn,Rn);return Yj(qn)?(re[kn]=qn.value,!0):(console.warn(Wj(`Invalid value passed for the ${kn} option`,qn)),!1)},Re=(kn,Vn)=>{const Rn=yoe(Vn)?voe(Vn.processor):Vn.processor,qn=boe(kn,Vn.default,Rn);H[kn]={...Vn,default:qn,processor:Rn},Ct(re,kn).orThunk(()=>Ct(g,kn)).each(Tr=>be(kn,Tr,Rn))},Ke=kn=>_t(H,kn);return{register:Re,isRegistered:Ke,get:kn=>Ct(re,kn).orThunk(()=>Ct(H,kn).map(Vn=>Vn.default)).getOrUndefined(),set:(kn,Vn)=>{if(Ke(kn)){const Rn=H[kn];return Rn.immutable?(console.error(`"${kn}" is an immutable option and cannot be updated`),!1):be(kn,Vn,Rn.processor)}else return console.warn(`"${kn}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:kn=>{const Vn=Ke(kn);return Vn&&delete re[kn],Vn},isSet:kn=>_t(re,kn),debug:()=>{try{console.log(JSON.parse(JSON.stringify(B,(kn,Vn)=>R(Vn)||L(Vn)||v(Vn)||x(Vn)||A(Vn)||S(Vn)?Vn:Object.prototype.toString.call(Vn))))}catch(kn){console.error(kn)}}}},_oe=["design","readonly"],Xj=(r,g,B,H)=>{const re=B[g.get()],be=B[H];try{be.activate()}catch(Re){console.error(`problem while activating editor mode ${H}:`,Re);return}re.deactivate(),re.editorReadOnly!==be.editorReadOnly&&ioe(r,be.editorReadOnly),g.set(H),oE(r,H)},woe=(r,g,B,H)=>{if(H!==B.get()){if(!_t(g,H))throw new Error(`Editor mode '${H}' is invalid`);r.initialized?Xj(r,B,g,H):r.on("init",()=>Xj(r,B,g,H))}},Ooe=(r,g,B)=>{if(ce(_oe,g))throw new Error(`Cannot override default mode ${g}`);return{...r,[g]:{...B,deactivate:()=>{try{B.deactivate()}catch(H){console.error(`problem while deactivating editor mode ${g}:`,H)}}}}},Soe=r=>{const g=mr("design"),B=mr({design:{activate:k,deactivate:k,editorReadOnly:!1},readonly:{activate:k,deactivate:k,editorReadOnly:!0}});return aoe(r),doe(r),{isReadOnly:()=>h1(r),set:H=>woe(r,B.get(),g,H),get:()=>g.get(),register:(H,re)=>{B.set(Ooe(B.get(),H,re))}}},gL=mo.each,vL=mo.explode,Gj={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Kj=mo.makeMap("alt,ctrl,shift,meta,access"),koe=r=>r in Kj,Toe=r=>{const g={},B=fr.os.isMacOS()||fr.os.isiOS();gL(vL(r.toLowerCase(),"+"),be=>{koe(be)?g[be]=!0:/^[0-9]{2,}$/.test(be)?g.keyCode=parseInt(be,10):(g.charCode=be.charCodeAt(0),g.keyCode=Gj[be]||be.toUpperCase().charCodeAt(0))});const H=[g.keyCode];let re;for(re in Kj)g[re]?H.push(re):g[re]=!1;return g.id=H.join(","),g.access&&(g.alt=!0,B?g.ctrl=!0:g.shift=!0),g.meta&&(B?g.meta=!0:(g.ctrl=!0,g.meta=!1)),g};class Jj{constructor(g){this.shortcuts={},this.pendingPatterns=[],this.editor=g;const B=this;g.on("keyup keypress keydown",H=>{(B.hasModifier(H)||B.isFunctionKey(H))&&!H.isDefaultPrevented()&&(gL(B.shortcuts,re=>{B.matchShortcut(H,re)&&(B.pendingPatterns=re.subpatterns.slice(0),H.type==="keydown"&&B.executeShortcutAction(re))}),B.matchShortcut(H,B.pendingPatterns[0])&&(B.pendingPatterns.length===1&&H.type==="keydown"&&B.executeShortcutAction(B.pendingPatterns[0]),B.pendingPatterns.shift()))})}add(g,B,H,re){const be=this,Re=be.normalizeCommandFunc(H);return gL(vL(mo.trim(g)),Ke=>{const ct=be.createShortcut(Ke,B,Re,re);be.shortcuts[ct.id]=ct}),!0}remove(g){const B=this.createShortcut(g);return this.shortcuts[B.id]?(delete this.shortcuts[B.id],!0):!1}normalizeCommandFunc(g){const B=this,H=g;return typeof H=="string"?()=>{B.editor.execCommand(H,!1,null)}:mo.isArray(H)?()=>{B.editor.execCommand(H[0],H[1],H[2])}:H}createShortcut(g,B,H,re){const be=mo.map(vL(g,">"),Toe);return be[be.length-1]=mo.extend(be[be.length-1],{func:H,scope:re||this.editor}),mo.extend(be[0],{desc:this.editor.translate(B),subpatterns:be.slice(1)})}hasModifier(g){return g.altKey||g.ctrlKey||g.metaKey}isFunctionKey(g){return g.type==="keydown"&&g.keyCode>=112&&g.keyCode<=123}matchShortcut(g,B){return!B||B.ctrl!==g.ctrlKey||B.meta!==g.metaKey||B.alt!==g.altKey||B.shift!==g.shiftKey?!1:g.keyCode===B.keyCode||g.charCode&&g.charCode===B.charCode?(g.preventDefault(),!0):!1}executeShortcutAction(g){return g.func?g.func.call(g.scope):null}}const Coe=()=>{const r={},g={},B={},H={},re={},be={},Re={},Ke={},ct=(Wt,Jt)=>(ln,kn)=>{Wt[ln.toLowerCase()]={...kn,type:Jt}},kt=(Wt,Jt)=>H[Wt.toLowerCase()]=Jt;return{addButton:ct(r,"button"),addGroupToolbarButton:ct(r,"grouptoolbarbutton"),addToggleButton:ct(r,"togglebutton"),addMenuButton:ct(r,"menubutton"),addSplitButton:ct(r,"splitbutton"),addMenuItem:ct(g,"menuitem"),addNestedMenuItem:ct(g,"nestedmenuitem"),addToggleMenuItem:ct(g,"togglemenuitem"),addAutocompleter:ct(B,"autocompleter"),addContextMenu:ct(re,"contextmenu"),addContextToolbar:ct(be,"contexttoolbar"),addContextForm:ct(be,"contextform"),addSidebar:ct(Re,"sidebar"),addView:ct(Ke,"views"),addIcon:kt,getAll:()=>({buttons:r,menuItems:g,icons:H,popups:B,contextMenus:re,contextToolbars:be,sidebars:Re,views:Ke})}},Aoe=()=>{const r=Coe();return{addAutocompleter:r.addAutocompleter,addButton:r.addButton,addContextForm:r.addContextForm,addContextMenu:r.addContextMenu,addContextToolbar:r.addContextToolbar,addIcon:r.addIcon,addMenuButton:r.addMenuButton,addMenuItem:r.addMenuItem,addNestedMenuItem:r.addNestedMenuItem,addSidebar:r.addSidebar,addSplitButton:r.addSplitButton,addToggleButton:r.addToggleButton,addGroupToolbarButton:r.addGroupToolbarButton,addToggleMenuItem:r.addToggleMenuItem,addView:r.addView,getAll:r.getAll}},fO=Nl.DOM,eQ=mo.extend,tQ=mo.each;class mA{constructor(g,B,H){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=H,this.documentBaseUrl=H.documentBaseURL,eQ(this,qj);const re=this;this.id=g,this.hidden=!1;const be=Pre(H.defaultOptions,B);this.options=xoe(re,be,B),ac(re);const Re=this.options.get;Re("deprecation_warnings")&&JX(B,be);const Ke=Re("suffix");Ke&&(H.suffix=Ke),this.suffix=H.suffix;const ct=Re("base_url");ct&&H._setBaseUrl(ct),this.baseUri=H.baseURI;const kt=Y1(re);kt&&(Mm.ScriptLoader._setReferrerPolicy(kt),Nl.DOM.styleSheetLoader._setReferrerPolicy(kt));const Wt=Mb(re);E(Wt)&&Nl.DOM.styleSheetLoader._setContentCssCors(Wt),su.languageLoad=Re("language_load"),su.baseURL=H.baseURL,this.setDirty(!1),this.documentBaseURI=new Ih(il(re),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=K1(re),this.hasVisual=_d(re),this.shortcuts=new Jj(this),this.editorCommands=new fL(this),Kre(this);const Jt=Re("cache_suffix");Jt&&(fr.cacheSuffix=Jt.replace(/^[\?\&]+/,"")),this.ui={registry:Aoe(),styleSheetLoader:void 0,show:k,hide:k,setEnabled:k,isEnabled:q},this.mode=Soe(re),H.dispatch("SetupEditor",{editor:this});const ln=Eb(re);C(ln)&&ln.call(re,re)}render(){Sre(this)}focus(g){this.execCommand("mceFocus",!1,g)}hasFocus(){return Mw(this)}translate(g){return Du.translate(g)}getParam(g,B,H){const re=this.options;return re.isRegistered(g)||(E(H)?re.register(g,{processor:H,default:B}):re.register(g,{processor:q,default:B})),!re.isSet(g)&&!M(B)?B:re.get(g)}hasPlugin(g,B){return ce(ev(this),g)?B?a4.get(g)!==void 0:!0:!1}nodeChanged(g){this._nodeChangeDispatcher.nodeChanged(g)}addCommand(g,B,H){this.editorCommands.addCommand(g,B,H)}addQueryStateHandler(g,B,H){this.editorCommands.addQueryStateHandler(g,B,H)}addQueryValueHandler(g,B,H){this.editorCommands.addQueryValueHandler(g,B,H)}addShortcut(g,B,H,re){this.shortcuts.add(g,B,H,re)}execCommand(g,B,H,re){return this.editorCommands.execCommand(g,B,H,re)}queryCommandState(g){return this.editorCommands.queryCommandState(g)}queryCommandValue(g){return this.editorCommands.queryCommandValue(g)}queryCommandSupported(g){return this.editorCommands.queryCommandSupported(g)}show(){const g=this;g.hidden&&(g.hidden=!1,g.inline?g.getBody().contentEditable="true":(fO.show(g.getContainer()),fO.hide(g.id)),g.load(),g.dispatch("show"))}hide(){const g=this;g.hidden||(g.save(),g.inline?(g.getBody().contentEditable="false",g===g.editorManager.focusedEditor&&(g.editorManager.focusedEditor=null)):(fO.hide(g.getContainer()),fO.setStyle(g.id,"display",g.orgDisplay)),g.hidden=!0,g.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(g,B){this.dispatch("ProgressState",{state:g,time:B})}load(g={}){const B=this,H=B.getElement();if(B.removed)return"";if(H){const re={...g,load:!0},be=jt(H)?H.value:H.innerHTML,Re=B.setContent(be,re);return re.no_events||B.dispatch("LoadContent",{...re,element:H}),Re}else return""}save(g={}){const B=this;let H=B.getElement();if(!H||!B.initialized||B.removed)return"";const re={...g,save:!0,element:H};let be=B.getContent(re);const Re={...re,content:be};if(Re.no_events||B.dispatch("SaveContent",Re),Re.format==="raw"&&B.dispatch("RawSaveContent",Re),be=Re.content,jt(H))H.value=be;else{(g.is_removing||!B.inline)&&(H.innerHTML=be);const Ke=fO.getParent(B.id,"form");Ke&&tQ(Ke.elements,ct=>ct.name===B.id?(ct.value=be,!1):!0)}return Re.element=re.element=H=null,Re.set_dirty!==!1&&B.setDirty(!1),be}setContent(g,B){return yP(this,g,B)}getContent(g){return AC(this,g)}insertContent(g,B){B&&(g=eQ({content:g},B)),this.execCommand("mceInsertContent",!1,g)}resetContent(g){g===void 0?yP(this,this.startContent,{format:"raw"}):yP(this,g),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(g){const B=!this.isNotDirty;this.isNotDirty=!g,g&&g!==B&&this.dispatch("dirty")}getContainer(){const g=this;return g.container||(g.container=g.editorContainer||fO.get(g.id+"_parent")),g.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=fO.get(this.id)),this.targetElm}getWin(){const g=this;if(!g.contentWindow){const B=g.iframeElement;B&&(g.contentWindow=B.contentWindow)}return g.contentWindow}getDoc(){const g=this;if(!g.contentDocument){const B=g.getWin();B&&(g.contentDocument=B.document)}return g.contentDocument}getBody(){var g,B;const H=this.getDoc();return(B=(g=this.bodyElement)!==null&&g!==void 0?g:H==null?void 0:H.body)!==null&&B!==void 0?B:null}convertURL(g,B,H){const re=this,be=re.options.get,Re=t2(re);if(C(Re))return Re.call(re,g,H,!0,B);if(!be("convert_urls")||H==="link"||_(H)&&H.nodeName==="LINK"||g.indexOf("file:")===0||g.length===0)return g;const Ke=new Ih(g);return Ke.protocol!=="http"&&Ke.protocol!=="https"&&Ke.protocol!==""?g:be("relative_urls")?re.documentBaseURI.toRelative(g):(g=re.documentBaseURI.toAbsolute(g,be("remove_script_host")),g)}addVisual(g){Rre(this,g)}setEditableRoot(g){Rj(this,g)}hasEditableRoot(){return kre(this)}remove(){nG(this)}destroy(g){rG(this,g)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const P4=Nl.DOM,gA=mo.each;let nQ=!1,vA,rm=[];const yA=r=>{const g=r.type;gA(H2.get(),B=>{switch(g){case"scroll":B.dispatch("ScrollWindow",r);break;case"resize":B.dispatch("ResizeWindow",r);break}})},rQ=r=>{if(r!==nQ){const g=Nl.DOM;r?(g.bind(window,"resize",yA),g.bind(window,"scroll",yA)):(g.unbind(window,"resize",yA),g.unbind(window,"scroll",yA)),nQ=r}},yL=r=>{const g=rm;return rm=Te(rm,B=>r!==B),H2.activeEditor===r&&(H2.activeEditor=rm.length>0?rm[0]:null),H2.focusedEditor===r&&(H2.focusedEditor=null),g.length!==rm.length},Ffe=r=>{r&&r.initialized&&!(r.getContainer()||r.getBody()).parentNode&&(yL(r),r.unbindAllNativeEvents(),r.destroy(!0),r.removed=!0)},oQ=document.compatMode!=="CSS1Compat",H2={...pL,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"7",minorVersion:"2.0",releaseDate:"2024-06-19",i18n:Du,activeEditor:null,focusedEditor:null,setup(){const r=this;let g="",B="",H=Ih.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/"));const re=window.tinymce||window.tinyMCEPreInit;if(re)g=re.base||re.baseURL,B=re.suffix;else{const be=document.getElementsByTagName("script");for(let Re=0;Re{su.PluginManager.urls[be]=re})},init(r){const g=this;let B;const H=mo.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),re=(Wt,Jt)=>Wt.inline&&Jt.tagName.toLowerCase()in H,be=Wt=>{let Jt=Wt.id;return Jt||(Jt=Ct(Wt,"name").filter(ln=>!P4.get(ln)).getOrThunk(P4.uniqueId),Wt.setAttribute("id",Jt)),Jt},Re=Wt=>{const Jt=r[Wt];if(Jt)return Jt.apply(g,[])},Ke=Wt=>fr.browser.isIE()||fr.browser.isEdge()?(LC("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/7/support/#supportedwebbrowsers"),[]):oQ?(LC("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):v(Wt.selector)?P4.select(Wt.selector):E(Wt.target)?[Wt.target]:[];let ct=Wt=>{B=Wt};const kt=()=>{let Wt=0;const Jt=[];let ln;const kn=(Vn,Rn,qn)=>{const pr=new mA(Vn,Rn,g);Jt.push(pr),pr.on("init",()=>{++Wt===ln.length&&ct(Jt)}),pr.targetElm=pr.targetElm||qn,pr.render()};P4.unbind(window,"ready",kt),Re("onpageload"),ln=je(Ke(r)),mo.each(ln,Vn=>{Ffe(g.get(Vn.id))}),ln=mo.grep(ln,Vn=>!g.get(Vn.id)),ln.length===0?ct([]):gA(ln,Vn=>{re(r,Vn)?LC("Could not initialize inline editor on invalid inline target element",Vn):kn(be(Vn),r,Vn)})};return P4.bind(window,"ready",kt),new Promise(Wt=>{B?Wt(B):ct=Jt=>{Wt(Jt)}})},get(r){return arguments.length===0?rm.slice(0):v(r)?De(rm,g=>g.id===r).getOr(null):L(r)&&rm[r]?rm[r]:null},add(r){const g=this,B=g.get(r.id);return B===r||(B===null&&rm.push(r),rQ(!0),g.activeEditor=r,g.dispatch("AddEditor",{editor:r}),vA||(vA=H=>{const re=g.dispatch("BeforeUnload");if(re.returnValue)return H.preventDefault(),H.returnValue=re.returnValue,re.returnValue},window.addEventListener("beforeunload",vA))),r},createEditor(r,g){return this.add(new mA(r,g,this))},remove(r){const g=this;let B;if(!r){for(let H=rm.length-1;H>=0;H--)g.remove(rm[H]);return}if(v(r)){gA(P4.select(r),H=>{B=g.get(H.id),B&&g.remove(B)});return}return B=r,x(g.get(B.id))?null:(yL(B)&&g.dispatch("RemoveEditor",{editor:B}),rm.length===0&&window.removeEventListener("beforeunload",vA),B.remove(),rQ(rm.length>0),B)},execCommand(r,g,B){var H;const re=this,be=_(B)?(H=B.id)!==null&&H!==void 0?H:B.index:B;switch(r){case"mceAddEditor":{if(!re.get(be)){const Re=B.options;new mA(be,Re,re).render()}return!0}case"mceRemoveEditor":{const Re=re.get(be);return Re&&Re.remove(),!0}case"mceToggleEditor":{const Re=re.get(be);return Re?(Re.isHidden()?Re.show():Re.hide(),!0):(re.execCommand("mceAddEditor",!1,B),!0)}}return re.activeEditor?re.activeEditor.execCommand(r,g,B):!1},triggerSave:()=>{gA(rm,r=>{r.save()})},addI18n:(r,g)=>{Du.add(r,g)},translate:r=>Du.translate(r),setActive(r){const g=this.activeEditor;this.activeEditor!==r&&(g&&g.dispatch("deactivate",{relatedTarget:r}),r.dispatch("activate",{relatedTarget:g})),this.activeEditor=r},_setBaseUrl(r){this.baseURL=new Ih(this.documentBaseURL).toAbsolute(r.replace(/\/+$/,"")),this.baseURI=new Ih(this.baseURL)}};H2.setup();const Eoe=(()=>{const r=Ys(),g=be=>({items:be,types:nt(be),getType:Re=>Ct(be,Re).getOrUndefined()}),B=be=>{r.set(be)},H=()=>r.get().getOrUndefined(),re=r.clear;return{FakeClipboardItem:g,write:B,read:H,clear:re}})(),iQ=Math.min,R4=Math.max,bA=Math.round,aQ=(r,g,B)=>{let H=g.x,re=g.y;const be=r.w,Re=r.h,Ke=g.w,ct=g.h,kt=(B||"").split("");return kt[0]==="b"&&(re+=ct),kt[1]==="r"&&(H+=Ke),kt[0]==="c"&&(re+=bA(ct/2)),kt[1]==="c"&&(H+=bA(Ke/2)),kt[3]==="b"&&(re-=Re),kt[4]==="r"&&(H-=be),kt[3]==="c"&&(re-=bA(Re/2)),kt[4]==="c"&&(H-=bA(be/2)),dO(H,re,be,Re)},Poe=(r,g,B,H)=>{for(let re=0;re=B.x&&be.x+be.w<=B.w+B.x&&be.y>=B.y&&be.y+be.h<=B.h+B.y)return H[re]}return null},bL=(r,g,B)=>dO(r.x-g,r.y-B,r.w+g*2,r.h+B*2),xL=(r,g)=>{const B=R4(r.x,g.x),H=R4(r.y,g.y),re=iQ(r.x+r.w,g.x+g.w),be=iQ(r.y+r.h,g.y+g.h);return re-B<0||be-H<0?null:dO(B,H,re-B,be-H)},Roe=(r,g,B)=>{let H=r.x,re=r.y,be=r.x+r.w,Re=r.y+r.h;const Ke=g.x+g.w,ct=g.y+g.h,kt=R4(0,g.x-H),Wt=R4(0,g.y-re),Jt=R4(0,be-Ke),ln=R4(0,Re-ct);return H+=kt,re+=Wt,B&&(be+=kt,Re+=Wt,H-=Jt,re-=ln),be-=Jt,Re-=ln,dO(H,re,be-H,Re-re)},dO=(r,g,B,H)=>({x:r,y:g,w:B,h:H}),Loe={inflate:bL,relativePosition:aQ,findBestRelativePosition:Poe,intersect:xL,clamp:Roe,create:dO,fromClientRect:r=>dO(r.left,r.top,r.width,r.height)},Ioe=(r,g,B=1e3)=>{let H=!1,re=null;const be=kt=>(...Wt)=>{H||(H=!0,re!==null&&(clearTimeout(re),re=null),kt.apply(null,Wt))},Re=be(r),Ke=be(g);return{start:(...kt)=>{!H&&re===null&&(re=setTimeout(()=>Ke.apply(null,kt),B))},resolve:Re,reject:Ke}},Doe=(()=>{const r={},g={},B={};return{load:(ct,kt)=>{const Wt=`Script at URL "${kt}" failed to load`,Jt=`Script at URL "${kt}" did not call \`tinymce.Resource.add('${ct}', data)\` within 1 second`;if(r[ct]!==void 0)return r[ct];{const ln=new Promise((kn,Vn)=>{const Rn=Ioe(kn,Vn);g[ct]=Rn.resolve,Mm.ScriptLoader.loadScript(kt).then(()=>Rn.start(Jt),()=>Rn.reject(Wt))});return r[ct]=ln,ln}},add:(ct,kt)=>{g[ct]!==void 0&&(g[ct](kt),delete g[ct]),r[ct]=Promise.resolve(kt),B[ct]=kt},has:ct=>ct in B,get:ct=>B[ct],unload:ct=>{delete r[ct],delete B[ct]}}})(),Boe=()=>(()=>{let r={},g=[];const B={getItem:H=>{const re=r[H];return re||null},setItem:(H,re)=>{g.push(H),r[H]=String(re)},key:H=>g[H],removeItem:H=>{g=g.filter(re=>re===H),delete r[H]},clear:()=>{g=[],r={}},length:0};return Object.defineProperty(B,"length",{get:()=>g.length,configurable:!1,enumerable:!1}),B})();let Nk;try{const r="__storage_test__";Nk=window.localStorage,Nk.setItem(r,r),Nk.removeItem(r)}catch{Nk=Boe()}var zoe=Nk;const Foe={geom:{Rect:Loe},util:{Delay:kg,Tools:mo,VK:Fo,URI:Ih,EventDispatcher:hL,Observable:pL,I18n:Du,LocalStorage:zoe,ImageUploader:kP},dom:{EventUtils:pd,TreeWalker:kc,TextSeeker:Em,DOMUtils:Nl,ScriptLoader:Mm,RangeUtils:To,Serializer:gP,StyleSheetLoader:_m,ControlSelection:Ow,BookmarkManager:ky,Selection:nN,Event:pd.Event},html:{Styles:I_,Entities:up,Node:yp,Schema:Np,DomParser:Ry,Writer:vB,Serializer:Wb},Env:fr,AddOnManager:su,Annotator:J0,Formatter:wN,UndoManager:MP,EditorCommands:fL,WindowManager:_P,NotificationManager:hN,EditorObservable:qj,Shortcuts:Jj,Editor:mA,FocusManager:WD,EditorManager:H2,DOM:Nl.DOM,ScriptLoader:Mm.ScriptLoader,PluginManager:a4,ThemeManager:yv,ModelManager:i4,IconManager:o4,Resource:Doe,FakeClipboard:Eoe,trim:mo.trim,isArray:mo.isArray,is:mo.is,toArray:mo.toArray,makeMap:mo.makeMap,each:mo.each,map:mo.map,grep:mo.grep,inArray:mo.inArray,extend:mo.extend,walk:mo.walk,resolve:mo.resolve,explode:mo.explode,_addCacheSuffix:mo._addCacheSuffix},sQ=mo.extend(H2,Foe),_L=r=>{try{t.exports=r}catch{}};(r=>{window.tinymce=r,window.tinyMCE=r})(sQ),_L(sQ)})()})(GNe);(function(){var t=tinymce.util.Tools.resolve("tinymce.ModelManager");const e=(pe,Ce,Ye)=>{var st;return Ye(pe,Ce.prototype)?!0:((st=pe.constructor)===null||st===void 0?void 0:st.name)===Ce.name},o=pe=>{const Ce=typeof pe;return pe===null?"null":Ce==="object"&&Array.isArray(pe)?"array":Ce==="object"&&e(pe,String,(Ye,st)=>st.isPrototypeOf(Ye))?"string":Ce},f=pe=>Ce=>o(Ce)===pe,P=pe=>Ce=>typeof Ce===pe,d=pe=>Ce=>pe===Ce,l=f("string"),n=f("object"),c=f("array"),b=d(null),i=P("boolean"),O=d(void 0),w=pe=>pe==null,y=pe=>!w(pe),p=P("function"),a=P("number"),u=()=>{},h=(pe,Ce)=>(...Ye)=>pe(Ce.apply(null,Ye)),m=(pe,Ce)=>Ye=>pe(Ce(Ye)),v=pe=>()=>pe,_=pe=>pe,S=(pe,Ce)=>pe===Ce;function A(pe,...Ce){return(...Ye)=>{const st=Ce.concat(Ye);return pe.apply(null,st)}}const x=pe=>Ce=>!pe(Ce),R=pe=>()=>{throw new Error(pe)},M=pe=>pe(),T=v(!1),E=v(!0);class C{constructor(Ce,Ye){this.tag=Ce,this.value=Ye}static some(Ce){return new C(!0,Ce)}static none(){return C.singletonNone}fold(Ce,Ye){return this.tag?Ye(this.value):Ce()}isSome(){return this.tag}isNone(){return!this.tag}map(Ce){return this.tag?C.some(Ce(this.value)):C.none()}bind(Ce){return this.tag?Ce(this.value):C.none()}exists(Ce){return this.tag&&Ce(this.value)}forall(Ce){return!this.tag||Ce(this.value)}filter(Ce){return!this.tag||Ce(this.value)?this:C.none()}getOr(Ce){return this.tag?this.value:Ce}or(Ce){return this.tag?this:Ce}getOrThunk(Ce){return this.tag?this.value:Ce()}orThunk(Ce){return this.tag?this:Ce()}getOrDie(Ce){if(this.tag)return this.value;throw new Error(Ce??"Called getOrDie on None")}static from(Ce){return y(Ce)?C.some(Ce):C.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Ce){this.tag&&Ce(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}C.singletonNone=new C(!1);const L=Array.prototype.slice,D=Array.prototype.indexOf,k=Array.prototype.push,I=(pe,Ce)=>D.call(pe,Ce),z=(pe,Ce)=>I(pe,Ce)>-1,$=(pe,Ce)=>{for(let Ye=0,st=pe.length;Ye{const Ye=[];for(let st=0;st{const Ye=pe.length,st=new Array(Ye);for(let St=0;St{for(let Ye=0,st=pe.length;Ye{for(let Ye=pe.length-1;Ye>=0;Ye--){const st=pe[Ye];Ce(st,Ye)}},te=(pe,Ce)=>{const Ye=[],st=[];for(let St=0,Ut=pe.length;St{const Ye=[];for(let st=0,St=pe.length;st(X(pe,(st,St)=>{Ye=Ce(Ye,st,St)}),Ye),oe=(pe,Ce,Ye)=>(U(pe,(st,St)=>{Ye=Ce(Ye,st,St)}),Ye),q=(pe,Ce,Ye)=>{for(let st=0,St=pe.length;stq(pe,Ce,T),ee=(pe,Ce)=>{for(let Ye=0,st=pe.length;Ye{const Ce=[];for(let Ye=0,st=pe.length;Yeme(j(pe,Ce)),se=(pe,Ce)=>{for(let Ye=0,st=pe.length;Ye{const Ce=L.call(pe,0);return Ce.reverse(),Ce},ce=(pe,Ce)=>{const Ye={};for(let st=0,St=pe.length;st{const Ye=L.call(pe,0);return Ye.sort(Ce),Ye},ve=(pe,Ce)=>Ce>=0&&Ceve(pe,0),_e=pe=>ve(pe,pe.length-1),Se=(pe,Ce)=>{for(let Ye=0;Ye{const Ye=Te(pe);for(let st=0,St=Ye.length;stDe(pe,(Ye,st)=>({k:st,v:Ce(Ye,st)})),De=(pe,Ce)=>{const Ye={};return Ie(pe,(st,St)=>{const Ut=Ce(st,St);Ye[Ut.k]=Ut.v}),Ye},He=pe=>(Ce,Ye)=>{pe[Ye]=Ce},Ve=(pe,Ce,Ye,st)=>{Ie(pe,(St,Ut)=>{(Ce(St,Ut)?Ye:st)(St,Ut)})},$e=(pe,Ce)=>{const Ye={};return Ve(pe,Ce,He(Ye),u),Ye},Oe=(pe,Ce)=>{const Ye=[];return Ie(pe,(st,St)=>{Ye.push(Ce(st,St))}),Ye},ke=pe=>Oe(pe,_),Le=(pe,Ce)=>We(pe,Ce)?C.from(pe[Ce]):C.none(),We=(pe,Ce)=>Pe.call(pe,Ce),Ue=(pe,Ce)=>We(pe,Ce)&&pe[Ce]!==void 0&&pe[Ce]!==null,Ze=pe=>{for(const Ce in pe)if(Pe.call(pe,Ce))return!1;return!0},Xe=typeof window<"u"?window:Function("return this;")(),tt=(pe,Ce)=>{let Ye=Ce??Xe;for(let st=0;st{const Ye=pe.split(".");return tt(Ye,Ce)},Ne=(pe,Ce)=>Ee(pe,Ce),je=(pe,Ce)=>{const Ye=Ne(pe,Ce);if(Ye==null)throw new Error(pe+" not available on this browser");return Ye},nt=Object.getPrototypeOf,ot=pe=>je("HTMLElement",pe),Ge=pe=>{const Ce=Ee("ownerDocument.defaultView",pe);return n(pe)&&(ot(Ce).prototype.isPrototypeOf(pe)||/^HTML\w*Element$/.test(nt(pe).constructor.name))},ht=8,pt=9,wt=11,Dt=1,It=3,qt=pe=>pe.dom.nodeName.toLowerCase(),en=pe=>pe.dom.nodeType,Gt=pe=>Ce=>en(Ce)===pe,Ct=pe=>en(pe)===ht||qt(pe)==="#comment",_t=pe=>nn(pe)&&Ge(pe.dom),nn=Gt(Dt),gn=Gt(It),bn=Gt(pt),mn=Gt(wt),vt=pe=>Ce=>nn(Ce)&&qt(Ce)===pe,bt=(pe,Ce,Ye)=>{if(l(Ye)||i(Ye)||a(Ye))pe.setAttribute(Ce,Ye+"");else throw console.error("Invalid call to Attribute.set. Key ",Ce,":: Value ",Ye,":: Element ",pe),new Error("Attribute value was not simple")},lt=(pe,Ce,Ye)=>{bt(pe.dom,Ce,Ye)},yt=(pe,Ce)=>{const Ye=pe.dom;Ie(Ce,(st,St)=>{bt(Ye,St,st)})},zt=(pe,Ce)=>{Ie(Ce,(Ye,st)=>{Ye.fold(()=>{at(pe,st)},St=>{bt(pe.dom,st,St)})})},Rt=(pe,Ce)=>{const Ye=pe.dom.getAttribute(Ce);return Ye===null?void 0:Ye},it=(pe,Ce)=>C.from(Rt(pe,Ce)),at=(pe,Ce)=>{pe.dom.removeAttribute(Ce)},Lt=pe=>oe(pe.dom.attributes,(Ce,Ye)=>(Ce[Ye.name]=Ye.value,Ce),{}),xt=(pe,Ce)=>{const st=(Ce||document).createElement("div");if(st.innerHTML=pe,!st.hasChildNodes()||st.childNodes.length>1){const St="HTML does not have a single root node";throw console.error(St,pe),new Error(St)}return Yt(st.childNodes[0])},Ht=(pe,Ce)=>{const st=(Ce||document).createElement(pe);return Yt(st)},Xt=(pe,Ce)=>{const st=(Ce||document).createTextNode(pe);return Yt(st)},Yt=pe=>{if(pe==null)throw new Error("Node cannot be null or undefined");return{dom:pe}},Pt={fromHtml:xt,fromTag:Ht,fromText:Xt,fromDom:Yt,fromPoint:(pe,Ce,Ye)=>C.from(pe.dom.elementFromPoint(Ce,Ye)).map(Yt)},tn=(pe,Ce)=>{const Ye=pe.dom;if(Ye.nodeType!==Dt)return!1;{const st=Ye;if(st.matches!==void 0)return st.matches(Ce);if(st.msMatchesSelector!==void 0)return st.msMatchesSelector(Ce);if(st.webkitMatchesSelector!==void 0)return st.webkitMatchesSelector(Ce);if(st.mozMatchesSelector!==void 0)return st.mozMatchesSelector(Ce);throw new Error("Browser lacks native selectors")}},Kt=pe=>pe.nodeType!==Dt&&pe.nodeType!==pt&&pe.nodeType!==wt||pe.childElementCount===0,fn=(pe,Ce)=>{const Ye=Ce===void 0?document:Ce.dom;return Kt(Ye)?[]:j(Ye.querySelectorAll(pe),Pt.fromDom)},dn=(pe,Ce)=>{const Ye=Ce===void 0?document:Ce.dom;return Kt(Ye)?C.none():C.from(Ye.querySelector(pe)).map(Pt.fromDom)},vn=(pe,Ce)=>pe.dom===Ce.dom,Nn=(pe,Ce)=>{const Ye=pe.dom,st=Ce.dom;return Ye===st?!1:Ye.contains(st)},er=tn,En=pe=>Pt.fromDom(pe.dom.ownerDocument),In=pe=>bn(pe)?pe:En(pe),Un=pe=>Pt.fromDom(In(pe).dom.documentElement),xr=pe=>Pt.fromDom(In(pe).dom.defaultView),Sr=pe=>C.from(pe.dom.parentNode).map(Pt.fromDom),ar=pe=>C.from(pe.dom.parentElement).map(Pt.fromDom),Fn=(pe,Ce)=>{const Ye=p(Ce)?Ce:T;let st=pe.dom;const St=[];for(;st.parentNode!==null&&st.parentNode!==void 0;){const Ut=st.parentNode,un=Pt.fromDom(Ut);if(St.push(un),Ye(un)===!0)break;st=Ut}return St},ir=pe=>C.from(pe.dom.previousSibling).map(Pt.fromDom),Wn=pe=>C.from(pe.dom.nextSibling).map(Pt.fromDom),Kn=pe=>j(pe.dom.childNodes,Pt.fromDom),_r=(pe,Ce)=>{const Ye=pe.dom.childNodes;return C.from(Ye[Ce]).map(Pt.fromDom)},Ir=pe=>_r(pe,0),zr=(pe,Ce)=>{Sr(pe).each(st=>{st.dom.insertBefore(Ce.dom,pe.dom)})},Fr=(pe,Ce)=>{Wn(pe).fold(()=>{Sr(pe).each(St=>{$r(St,Ce)})},st=>{zr(st,Ce)})},Rr=(pe,Ce)=>{Ir(pe).fold(()=>{$r(pe,Ce)},st=>{pe.dom.insertBefore(Ce.dom,st.dom)})},$r=(pe,Ce)=>{pe.dom.appendChild(Ce.dom)},Kr=(pe,Ce,Ye)=>{_r(pe,Ye).fold(()=>{$r(pe,Ce)},st=>{zr(st,Ce)})},Co=(pe,Ce)=>{zr(pe,Ce),$r(Ce,pe)},so=(pe,Ce)=>{U(Ce,(Ye,st)=>{const St=st===0?pe:Ce[st-1];Fr(St,Ye)})},So=(pe,Ce)=>{U(Ce,Ye=>{$r(pe,Ye)})},go=pe=>{pe.dom.textContent="",U(Kn(pe),Ce=>{li(Ce)})},li=pe=>{const Ce=pe.dom;Ce.parentNode!==null&&Ce.parentNode.removeChild(Ce)},Pn=pe=>{const Ce=Kn(pe);Ce.length>0&&so(pe,Ce),li(pe)},Yn=(pe,Ce)=>Pt.fromDom(pe.dom.cloneNode(Ce)),br=pe=>Yn(pe,!1),dr=pe=>Yn(pe,!0),Cr=(pe,Ce)=>{const Ye=Pt.fromTag(Ce),st=Lt(pe);return yt(Ye,st),Ye},io=(pe,Ce)=>{const Ye=Cr(pe,Ce),st=Kn(dr(pe));return So(Ye,st),Ye},Qr=(pe,Ce)=>{const Ye=Cr(pe,Ce);Fr(pe,Ye);const st=Kn(pe);return So(Ye,st),li(pe),Ye},Wr=["tfoot","thead","tbody","colgroup"],bo=pe=>z(Wr,pe),Bn=(pe,Ce)=>({rows:pe,columns:Ce}),hr=(pe,Ce)=>({row:pe,column:Ce}),hn=(pe,Ce,Ye)=>({element:pe,rowspan:Ce,colspan:Ye}),zn=(pe,Ce,Ye,st)=>({element:pe,rowspan:Ce,colspan:Ye,isNew:st}),Zn=(pe,Ce,Ye,st,St,Ut)=>({element:pe,rowspan:Ce,colspan:Ye,row:st,column:St,isLocked:Ut}),yr=(pe,Ce,Ye)=>({element:pe,cells:Ce,section:Ye}),gr=(pe,Ce,Ye,st)=>({element:pe,cells:Ce,section:Ye,isNew:st}),vr=(pe,Ce,Ye)=>({element:pe,isNew:Ce,isLocked:Ye}),nr=(pe,Ce,Ye,st)=>({element:pe,cells:Ce,section:Ye,isNew:st}),Qn=(pe,Ce,Ye,st)=>({startRow:pe,startCol:Ce,finishRow:Ye,finishCol:st}),Hn=(pe,Ce,Ye)=>({element:pe,colspan:Ce,column:Ye}),tr=(pe,Ce)=>({element:pe,columns:Ce}),cr=pe=>mn(pe)&&y(pe.dom.host),Lr=p(Element.prototype.attachShadow)&&p(Node.prototype.getRootNode),Er=v(Lr),Vr=Lr?pe=>Pt.fromDom(pe.dom.getRootNode()):In,to=pe=>{const Ce=Vr(pe);return cr(Ce)?C.some(Ce):C.none()},_o=pe=>Pt.fromDom(pe.dom.host),fr=pe=>{if(Er()&&y(pe.target)){const Ce=Pt.fromDom(pe.target);if(nn(Ce)&&Eo(Ce)&&pe.composed&&pe.composedPath){const Ye=pe.composedPath();if(Ye)return ye(Ye)}}return C.from(pe.target)},Eo=pe=>y(pe.dom.shadowRoot),ao=pe=>{const Ce=gn(pe)?pe.dom.parentNode:pe.dom;if(Ce==null||Ce.ownerDocument===null)return!1;const Ye=Ce.ownerDocument;return to(Pt.fromDom(Ce)).fold(()=>Ye.body.contains(Ce),m(ao,_o))},co=()=>Go(Pt.fromDom(document)),Go=pe=>{const Ce=pe.dom.body;if(Ce==null)throw new Error("Body is not available yet");return Pt.fromDom(Ce)},po=(pe,Ce,Ye)=>W(Fn(pe,Ye),Ce),qo=(pe,Ce)=>W(Kn(pe),Ce),Ao=(pe,Ce)=>{let Ye=[];return U(Kn(pe),st=>{Ce(st)&&(Ye=Ye.concat([st])),Ye=Ye.concat(Ao(st,Ce))}),Ye},oi=(pe,Ce,Ye)=>po(pe,st=>tn(st,Ce),Ye),ko=(pe,Ce)=>qo(pe,Ye=>tn(Ye,Ce)),ra=(pe,Ce)=>fn(Ce,pe);var mo=(pe,Ce,Ye,st,St)=>pe(Ye,st)?C.some(Ye):p(St)&&St(Ye)?C.none():Ce(Ye,st,St);const Aa=(pe,Ce,Ye)=>{let st=pe.dom;const St=p(Ye)?Ye:T;for(;st.parentNode;){st=st.parentNode;const Ut=Pt.fromDom(st);if(Ce(Ut))return C.some(Ut);if(St(Ut))break}return C.none()},Xl=(pe,Ce,Ye)=>mo((St,Ut)=>Ut(St),Aa,pe,Ce,Ye),Na=(pe,Ce)=>{const Ye=St=>Ce(Pt.fromDom(St));return Y(pe.dom.childNodes,Ye).map(Pt.fromDom)},cs=(pe,Ce)=>{const Ye=st=>{for(let St=0;StAa(pe,st=>tn(st,Ce),Ye),ma=(pe,Ce)=>Na(pe,Ye=>tn(Ye,Ce)),Ku=(pe,Ce)=>dn(Ce,pe),qc=(pe,Ce,Ye)=>mo((St,Ut)=>tn(St,Ut),wc,pe,Ce,Ye),Yd=(pe,Ce,Ye=S)=>pe.exists(st=>Ye(st,Ce)),Ql=pe=>{const Ce=[],Ye=st=>{Ce.push(st)};for(let st=0;stpe!=null?Ce(pe):C.none(),Nf=(pe,Ce)=>pe?C.some(Ce):C.none(),mm=(pe,Ce)=>pe.substring(Ce),Ws=(pe,Ce,Ye)=>Ce===""||pe.length>=Ce.length&&pe.substr(Ye,Ye+Ce.length)===Ce,gm=(pe,Ce)=>pc(pe,Ce)?mm(pe,Ce.length):pe,Gl=(pe,Ce,Ye=0,st)=>{const St=pe.indexOf(Ce,Ye);return St!==-1?O(st)?!0:St+Ce.length<=st:!1},pc=(pe,Ce)=>Ws(pe,Ce,0),Cu=(pe,Ce)=>Ws(pe,Ce,pe.length-Ce.length),sa=(pe=>Ce=>Ce.replace(pe,""))(/^\s+|\s+$/g),cc=pe=>pe.length>0,hu=pe=>{const Ce=parseFloat(pe);return isNaN(Ce)?C.none():C.some(Ce)},ju=pe=>pe.style!==void 0&&p(pe.style.getPropertyValue),iu=(pe,Ce,Ye)=>{if(!l(Ye))throw console.error("Invalid call to CSS.set. Property ",Ce,":: Value ",Ye,":: Element ",pe),new Error("CSS value must be a string: "+Ye);ju(pe)&&pe.style.setProperty(Ce,Ye)},mc=(pe,Ce)=>{ju(pe)&&pe.style.removeProperty(Ce)},Ss=(pe,Ce,Ye)=>{const st=pe.dom;iu(st,Ce,Ye)},$f=(pe,Ce)=>{const Ye=pe.dom;Ie(Ce,(st,St)=>{iu(Ye,St,st)})},vf=(pe,Ce)=>{const Ye=pe.dom,St=window.getComputedStyle(Ye).getPropertyValue(Ce);return St===""&&!ao(pe)?Ju(Ye,Ce):St},Ju=(pe,Ce)=>ju(pe)?pe.style.getPropertyValue(Ce):"",$h=(pe,Ce)=>{const Ye=pe.dom,st=Ju(Ye,Ce);return C.from(st).filter(St=>St.length>0)},Es=(pe,Ce)=>{const Ye=pe.dom;mc(Ye,Ce),Yd(it(pe,"style").map(sa),"")&&at(pe,"style")},ef=(pe,Ce)=>{const Ye=pe.dom,st=Ce.dom;ju(Ye)&&ju(st)&&(st.style.cssText=Ye.style.cssText)},uc=(pe,Ce,Ye=0)=>it(pe,Ce).map(st=>parseInt(st,10)).getOr(Ye),ad=(pe,Ce)=>uc(pe,Ce,1),Vf=pe=>vt("col")(pe)?uc(pe,"span",1)>1:ad(pe,"colspan")>1,gc=pe=>ad(pe,"rowspan")>1,sd=(pe,Ce)=>parseInt(vf(pe,Ce),10),Mp=v(10),Xd=v(10),yf=(pe,Ce)=>mh(pe,Ce,E),mh=(pe,Ce,Ye)=>he(Kn(pe),st=>tn(st,Ce)?Ye(st)?[st]:[]:mh(st,Ce,Ye)),ld=(pe,Ce,Ye=T)=>{if(Ye(Ce))return C.none();if(z(pe,qt(Ce)))return C.some(Ce);const st=St=>tn(St,"table")||Ye(St);return wc(Ce,pe.join(","),st)},Vh=(pe,Ce)=>ld(["td","th"],pe,Ce),bf=pe=>yf(pe,"th,td"),tf=pe=>tn(pe,"colgroup")?ko(pe,"col"):he(cd(pe),Ce=>ko(Ce,"col")),Au=(pe,Ce)=>qc(pe,"table",Ce),xf=pe=>yf(pe,"tr"),cd=pe=>Au(pe).fold(v([]),Ce=>ko(Ce,"colgroup")),nf=(pe,Ce)=>j(pe,Ye=>{if(qt(Ye)==="colgroup"){const st=j(tf(Ye),St=>{const Ut=uc(St,"span",1);return hn(St,1,Ut)});return yr(Ye,st,"colgroup")}else{const st=j(bf(Ye),St=>{const Ut=uc(St,"rowspan",1),un=uc(St,"colspan",1);return hn(St,Ut,un)});return yr(Ye,st,Ce(Ye))}}),gh=pe=>Sr(pe).map(Ce=>{const Ye=qt(Ce);return bo(Ye)?Ye:"tbody"}).getOr("tbody"),rs=pe=>{const Ce=xf(pe),st=[...cd(pe),...Ce];return nf(st,gh)},ep=(pe,Ce)=>nf(pe,()=>Ce),Ep=pe=>{let Ce=!1,Ye;return(...st)=>(Ce||(Ce=!0,Ye=pe.apply(null,st)),Ye)},vm=(pe,Ce,Ye,st)=>{const St=pe.isiOS()&&/ipad/i.test(Ye)===!0,Ut=pe.isiOS()&&!St,un=pe.isiOS()||pe.isAndroid(),Tn=un||st("(pointer:coarse)"),$n=St||!Ut&&un&&st("(min-device-width:768px)"),ur=Ut||un&&!$n,Nr=Ce.isSafari()&&pe.isiOS()&&/safari/i.test(Ye)===!1,Ro=!ur&&!$n&&!Nr;return{isiPad:v(St),isiPhone:v(Ut),isTablet:v($n),isPhone:v(ur),isTouch:v(Tn),isAndroid:pe.isAndroid,isiOS:pe.isiOS,isWebView:v(Nr),isDesktop:v(Ro)}},Pd=(pe,Ce)=>{for(let Ye=0;Ye{const Ye=Pd(pe,Ce);if(!Ye)return{major:0,minor:0};const st=St=>Number(Ce.replace(Ye,"$"+St));return _f(st(1),st(2))},sr=(pe,Ce)=>{const Ye=String(Ce).toLowerCase();return pe.length===0?Pp():M0(pe,Ye)},Pp=()=>_f(0,0),_f=(pe,Ce)=>({major:pe,minor:Ce}),wf={nu:_f,detect:sr,unknown:Pp},Rp=(pe,Ce)=>Se(Ce.brands,Ye=>{const st=Ye.brand.toLowerCase();return Y(pe,St=>{var Ut;return st===((Ut=St.brand)===null||Ut===void 0?void 0:Ut.toLowerCase())}).map(St=>({current:St.name,version:wf.nu(parseInt(Ye.version,10),0)}))}),Gd=(pe,Ce)=>{const Ye=String(Ce).toLowerCase();return Y(pe,st=>st.search(Ye))},Fa=(pe,Ce)=>Gd(pe,Ce).map(Ye=>{const st=wf.detect(Ye.versionRegexes,Ce);return{current:Ye.name,version:st}}),Qu=(pe,Ce)=>Gd(pe,Ce).map(Ye=>{const st=wf.detect(Ye.versionRegexes,Ce);return{current:Ye.name,version:st}}),rf=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Bc=pe=>Ce=>Gl(Ce,pe),ym=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:pe=>Gl(pe,"edge/")&&Gl(pe,"chrome")&&Gl(pe,"safari")&&Gl(pe,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,rf],search:pe=>Gl(pe,"chrome")&&!Gl(pe,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:pe=>Gl(pe,"msie")||Gl(pe,"trident")},{name:"Opera",versionRegexes:[rf,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Bc("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Bc("firefox")},{name:"Safari",versionRegexes:[rf,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:pe=>(Gl(pe,"safari")||Gl(pe,"mobile/"))&&Gl(pe,"applewebkit")}],Mu=[{name:"Windows",search:Bc("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:pe=>Gl(pe,"iphone")||Gl(pe,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Bc("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Bc("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Bc("linux"),versionRegexes:[]},{name:"Solaris",search:Bc("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Bc("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Bc("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Hu={browsers:v(ym),oses:v(Mu)},Lp="Edge",Uh="Chromium",jh="IE",Eu="Opera",ud="Firefox",vh="Safari",Pu=()=>Oc({current:void 0,version:wf.unknown()}),Oc=pe=>{const Ce=pe.current,Ye=pe.version,st=St=>()=>Ce===St;return{current:Ce,version:Ye,isEdge:st(Lp),isChromium:st(Uh),isIE:st(jh),isOpera:st(Eu),isFirefox:st(ud),isSafari:st(vh)}},ks={unknown:Pu,nu:Oc,edge:v(Lp),chromium:v(Uh),ie:v(jh),opera:v(Eu),firefox:v(ud),safari:v(vh)},Uf="Windows",zl="iOS",Hl="Android",Ts="Linux",$s="macOS",Zu="Solaris",yh="FreeBSD",of="ChromeOS",tp=()=>Ip({current:void 0,version:wf.unknown()}),Ip=pe=>{const Ce=pe.current,Ye=pe.version,st=St=>()=>Ce===St;return{current:Ce,version:Ye,isWindows:st(Uf),isiOS:st(zl),isAndroid:st(Hl),isMacOS:st($s),isLinux:st(Ts),isSolaris:st(Zu),isFreeBSD:st(yh),isChromeOS:st(of)}},bm={unknown:tp,nu:Ip,windows:v(Uf),ios:v(zl),android:v(Hl),linux:v(Ts),macos:v($s),solaris:v(Zu),freebsd:v(yh),chromeos:v(of)},bh={detect:(pe,Ce,Ye)=>{const st=Hu.browsers(),St=Hu.oses(),Ut=Ce.bind($n=>Rp(st,$n)).orThunk(()=>Fa(st,pe)).fold(ks.unknown,ks.nu),un=Qu(St,pe).fold(bm.unknown,bm.nu),Tn=vm(un,Ut,pe,Ye);return{browser:Ut,os:un,deviceType:Tn}}},Jd=pe=>window.matchMedia(pe).matches;let zc=Ep(()=>bh.detect(navigator.userAgent,C.from(navigator.userAgentData),Jd));const np=()=>zc(),ms=(pe,Ce)=>{const Ye=(Tn,$n)=>{if(!a($n)&&!$n.match(/^[0-9]+$/))throw new Error(pe+".set accepts only positive integer values. Value was "+$n);const ur=Tn.dom;ju(ur)&&(ur.style[pe]=$n+"px")},st=Tn=>{const $n=Ce(Tn);if($n<=0||$n===null){const ur=vf(Tn,pe);return parseFloat(ur)||0}return $n},St=st,Ut=(Tn,$n)=>oe($n,(ur,Nr)=>{const Ro=vf(Tn,Nr),ai=Ro===void 0?0:parseInt(Ro,10);return isNaN(ai)?ur:ur+ai},0);return{set:Ye,get:st,getOuter:St,aggregate:Ut,max:(Tn,$n,ur)=>{const Nr=Ut(Tn,ur);return $n>Nr?$n-Nr:0}}},Ya=(pe,Ce)=>hu(pe).getOr(Ce),bl=(pe,Ce,Ye)=>Ya(vf(pe,Ce),Ye),fl=(pe,Ce,Ye,st)=>{const St=bl(pe,`padding-${Ye}`,0),Ut=bl(pe,`padding-${st}`,0),un=bl(pe,`border-${Ye}-width`,0),Tn=bl(pe,`border-${st}-width`,0);return Ce-St-Ut-un-Tn},Wc=(pe,Ce)=>{const Ye=pe.dom,st=Ye.getBoundingClientRect().width||Ye.offsetWidth;return Ce==="border-box"?st:fl(pe,st,"left","right")},xl=pe=>bl(pe,"height",pe.dom.offsetHeight),xi=pe=>bl(pe,"width",pe.dom.offsetWidth),pu=pe=>Wc(pe,"content-box"),xh=ms("width",pe=>pe.dom.offsetWidth),js=pe=>xh.get(pe),os=pe=>xh.getOuter(pe),af=pu,Of=xi,sf=(pe,Ce,Ye)=>{const st=pe.cells,St=st.slice(0,Ce),Ut=st.slice(Ce),un=St.concat(Ye).concat(Ut);return pi(pe,un)},Ml=(pe,Ce,Ye)=>sf(pe,Ce,[Ye]),Hi=(pe,Ce,Ye)=>{const st=pe.cells;st[Ce]=Ye},pi=(pe,Ce)=>nr(pe.element,Ce,pe.section,pe.isNew),Qh=(pe,Ce)=>{const Ye=pe.cells,st=j(Ye,Ce);return nr(pe.element,st,pe.section,pe.isNew)},Ru=(pe,Ce)=>pe.cells[Ce],vc=(pe,Ce)=>Ru(pe,Ce).element,Yc=pe=>pe.cells.length,Kl=pe=>{const Ce=te(pe,Ye=>Ye.section==="colgroup");return{rows:Ce.fail,cols:Ce.pass}},Fc=(pe,Ce,Ye)=>{const st=j(pe.cells,Ye);return nr(Ce(pe.element),st,pe.section,!0)},si="data-snooker-locked-cols",Hh=pe=>it(pe,si).bind(Ce=>C.from(Ce.match(/\d+/g))).map(Ce=>ce(Ce,E)),Ps=pe=>{const Ce=oe(Kl(pe).rows,(st,St)=>(U(St.cells,(Ut,un)=>{Ut.isLocked&&(st[un]=!0)}),st),{}),Ye=Oe(Ce,(st,St)=>parseInt(St,10));return de(Ye)},Sc=(pe,Ce)=>pe+","+Ce,tl=(pe,Ce,Ye)=>C.from(pe.access[Sc(Ce,Ye)]),mu=(pe,Ce,Ye)=>{const st=gu(pe,St=>Ye(Ce,St.element));return st.length>0?C.some(st[0]):C.none()},gu=(pe,Ce)=>{const Ye=he(pe.all,st=>st.cells);return W(Ye,Ce)},ja=pe=>{const Ce={};let Ye=0;return U(pe.cells,st=>{const St=st.colspan;Q(St,Ut=>{const un=Ye+Ut;Ce[un]=Hn(st.element,St,un)}),Ye+=St}),Ce},vu=pe=>{const Ce={},Ye=[],St=ye(pe).map(Ko=>Ko.element).bind(Au).bind(Hh).getOr({});let Ut=0,un=0,Tn=0;const{pass:$n,fail:ur}=te(pe,Ko=>Ko.section==="colgroup");U(ur,Ko=>{const Qo=[];U(Ko.cells,_i=>{let To=0;for(;Ce[Sc(Tn,To)]!==void 0;)To++;const Zo=Ue(St,To.toString()),Yi=Zn(_i.element,_i.rowspan,_i.colspan,Tn,To,Zo);for(let ri=0;ri<_i.colspan;ri++)for(let Ms=0;Ms<_i.rowspan;Ms++){const al=Tn+Ms,Gs=To+ri,td=Sc(al,Gs);Ce[td]=Yi,un=Math.max(un,Gs+1)}Qo.push(Yi)}),Ut++,Ye.push(yr(Ko.element,Qo,Ko.section)),Tn++});const{columns:Nr,colgroups:Ro}=_e($n).map(Ko=>{const Qo=ja(Ko);return{colgroups:[tr(Ko.element,ke(Qo))],columns:Qo}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:Bn(Ut,un),access:Ce,all:Ye,columns:Nr,colgroups:Ro}},Xi={fromTable:pe=>{const Ce=rs(pe);return vu(Ce)},generate:vu,getAt:tl,findItem:mu,filterItems:gu,justCells:pe=>he(pe.all,Ce=>Ce.cells),justColumns:pe=>ke(pe.columns),hasColumns:pe=>Te(pe.columns).length>0,getColumnAt:(pe,Ce)=>C.from(pe.columns[Ce])},Xc=(pe,Ce=E)=>{const Ye=pe.grid,st=Q(Ye.columns,_),St=Q(Ye.rows,_);return j(st,Ut=>jf(()=>he(St,ur=>Xi.getAt(pe,ur,Ut).filter(Nr=>Nr.column===Ut).toArray()),ur=>ur.colspan===1&&Ce(ur.element),()=>Xi.getAt(pe,0,Ut)))},jf=(pe,Ce,Ye)=>{const st=pe();return Y(st,Ce).orThunk(()=>C.from(st[0]).orThunk(Ye)).map(un=>un.element)},yu=pe=>{const Ce=pe.grid,Ye=Q(Ce.rows,_),st=Q(Ce.columns,_);return j(Ye,St=>jf(()=>he(st,$n=>Xi.getAt(pe,St,$n).filter(ur=>ur.row===St).fold(v([]),ur=>[ur])),$n=>$n.rowspan===1,()=>Xi.getAt(pe,St,0)))},Dp=(pe,Ce)=>{if(Ce<0||Ce>=pe.length-1)return C.none();const Ye=pe[Ce].fold(()=>{const St=ae(pe.slice(0,Ce));return Se(St,(Ut,un)=>Ut.map(Tn=>({value:Tn,delta:un+1})))},St=>C.some({value:St,delta:0})),st=pe[Ce+1].fold(()=>{const St=pe.slice(Ce+1);return Se(St,(Ut,un)=>Ut.map(Tn=>({value:Tn,delta:un+1})))},St=>C.some({value:St,delta:1}));return Ye.bind(St=>st.map(Ut=>{const un=Ut.delta+St.delta;return Math.abs(Ut.value-St.value)/un}))},rp=(pe,Ce)=>Ye=>Lu(Ye)==="rtl"?Ce:pe,Lu=pe=>vf(pe,"direction")==="rtl"?"rtl":"ltr",us=ms("height",pe=>{const Ce=pe.dom;return ao(pe)?Ce.getBoundingClientRect().height:Ce.offsetHeight}),Qf=pe=>us.get(pe),fd=pe=>us.getOuter(pe),Hf=xl,_h=(pe,Ce)=>({left:pe,top:Ce,translate:(st,St)=>_h(pe+st,Ce+St)}),Gc=_h,dd=pe=>{const Ce=pe.getBoundingClientRect();return Gc(Ce.left,Ce.top)},rl=(pe,Ce)=>pe!==void 0?pe:Ce!==void 0?Ce:0,Dd=pe=>{const Ce=pe.dom.ownerDocument,Ye=Ce.body,st=Ce.defaultView,St=Ce.documentElement;if(Ye===pe.dom)return Gc(Ye.offsetLeft,Ye.offsetTop);const Ut=rl(st==null?void 0:st.pageYOffset,St.scrollTop),un=rl(st==null?void 0:st.pageXOffset,St.scrollLeft),Tn=rl(St.clientTop,Ye.clientTop),$n=rl(St.clientLeft,Ye.clientLeft);return Vi(pe).translate(un-$n,Ut-Tn)},Vi=pe=>{const Ce=pe.dom,st=Ce.ownerDocument.body;return st===Ce?Gc(st.offsetLeft,st.offsetTop):ao(pe)?dd(Ce):Gc(0,0)},fa=(pe,Ce)=>({row:pe,y:Ce}),au=(pe,Ce)=>({col:pe,x:Ce}),Zf=pe=>Dd(pe).left+os(pe),Zl=pe=>Dd(pe).left,Jl=(pe,Ce)=>au(pe,Zl(Ce)),Bd=(pe,Ce)=>au(pe,Zf(Ce)),Qs=pe=>Dd(pe).top,kc=(pe,Ce)=>fa(pe,Qs(Ce)),Iu=(pe,Ce)=>fa(pe,Qs(Ce)+fd(Ce)),Ea=(pe,Ce,Ye)=>{if(Ye.length===0)return[];const st=j(Ye.slice(1),(Ut,un)=>Ut.map(Tn=>pe(un,Tn))),St=Ye[Ye.length-1].map(Ut=>Ce(Ye.length-1,Ut));return st.concat([St])},El=pe=>-pe,_l={delta:_,positions:pe=>Ea(kc,Iu,pe),edge:Qs},Ot=rp({delta:_,edge:Zl,positions:pe=>Ea(Jl,Bd,pe)},{delta:El,edge:Zf,positions:pe=>Ea(Bd,Jl,pe)}),Mt={delta:(pe,Ce)=>Ot(Ce).delta(pe,Ce),positions:(pe,Ce)=>Ot(Ce).positions(pe,Ce),edge:pe=>Ot(pe).edge(pe)},Ft={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},J=(()=>{const pe="[0-9]+",Ye="[eE]"+("[+-]?"+pe),st="\\.",St=Tn=>`(?:${Tn})?`,un=`[+-]?(?:${["Infinity",pe+st+St(pe)+St(Ye),st+pe+St(Ye),pe+St(Ye)].join("|")})`;return new RegExp(`^(${un})(.*)$`)})(),le=(pe,Ce)=>$(Ce,Ye=>$(Ft[Ye],st=>pe===st)),ie=(pe,Ce)=>C.from(J.exec(pe)).bind(st=>{const St=Number(st[1]),Ut=st[2];return le(Ut,Ce)?C.some({value:St,unit:Ut}):C.none()}),V=/(\d+(\.\d+)?)%/,ne=/(\d+(\.\d+)?)px|em/,ge=vt("col"),xe=vt("tr"),Me=(pe,Ce,Ye)=>{const st=ar(pe).getOrThunk(()=>Go(En(pe)));return Ce(pe)/Ye(st)*100},Fe=(pe,Ce)=>{Ss(pe,"width",Ce+"px")},Je=(pe,Ce)=>{Ss(pe,"width",Ce+"%")},rt=(pe,Ce)=>{Ss(pe,"height",Ce+"px")},dt=pe=>{Es(pe,"height")},mt=pe=>Hf(pe)+"px",Et=(pe,Ce,Ye,st)=>{const St=Au(pe).map(Ut=>{const un=Ye(Ut);return Math.floor(Ce/100*un)}).getOr(Ce);return st(pe,St),St},Vt=(pe,Ce,Ye,st)=>{const St=parseFloat(pe);return Cu(pe,"%")&&qt(Ce)!=="table"?Et(Ce,St,Ye,st):St},jt=pe=>{const Ce=mt(pe);return Ce?Vt(Ce,pe,Qf,rt):Qf(pe)},Nt=(pe,Ce,Ye)=>{const st=Ye(pe),St=ad(pe,Ce);return st/St},cn=(pe,Ce)=>$h(pe,Ce).orThunk(()=>it(pe,Ce).map(Ye=>Ye+"px")),sn=pe=>cn(pe,"width"),xn=pe=>cn(pe,"height"),pn=pe=>Me(pe,js,af),Ln=pe=>ge(pe)?js(pe):Of(pe),On=pe=>xe(pe)?Qf(pe):Nt(pe,"rowspan",jt),An=pe=>sn(pe).bind(Ye=>ie(Ye,["fixed","relative","empty"])),Sn=(pe,Ce,Ye)=>{Ss(pe,"width",Ce+Ye)},rr=pe=>js(pe)+"px",Dr=pe=>Qf(pe)+"px",Pr=pe=>Me(pe,js,af)+"%",Zr=pe=>sn(pe).exists(Ce=>V.test(Ce)),Mo=pe=>sn(pe).exists(Ce=>ne.test(Ce)),$o=pe=>sn(pe).isNone(),vo=v(V),zo=vt("col"),yi=pe=>sn(pe).getOrThunk(()=>Ln(pe)+"px"),Si=pe=>xn(pe).getOrThunk(()=>On(pe)+"px"),Hr=pe=>j(Xi.justColumns(pe),Ce=>C.from(Ce.element)),Lo=pe=>{const Ce=np().browser,Ye=Ce.isChromium()||Ce.isFirefox();return zo(pe)?Ye:!0},ki=(pe,Ce,Ye,st,St,Ut)=>pe.filter(st).fold(()=>Ut(Dp(Ye,Ce)),un=>St(un)),Io=(pe,Ce,Ye,st)=>{const St=Xc(pe),Ut=Xi.hasColumns(pe)?Hr(pe):St,un=[C.some(Mt.edge(Ce))].concat(j(Mt.positions(St,Ce),$n=>$n.map(ur=>ur.x))),Tn=x(Vf);return j(Ut,($n,ur)=>ki($n,ur,un,Tn,Nr=>{if(Lo(Nr))return Ye(Nr);{const Ro=Ed(St[ur],_);return ki(Ro,ur,un,Tn,ai=>st(C.some(js(ai))),st)}},st))},$i=pe=>pe.map(Ce=>Ce+"px").getOr(""),Ui=(pe,Ce)=>Io(pe,Ce,yi,$i),ba=(pe,Ce,Ye)=>Io(pe,Ce,pn,st=>st.fold(()=>Ye.minCellWidth(),St=>St/Ye.pixelWidth()*100)),Pi=(pe,Ce,Ye)=>Io(pe,Ce,Ln,st=>st.getOrThunk(Ye.minCellWidth)),fs=(pe,Ce,Ye,st)=>{const St=yu(pe),Ut=j(pe.all,Tn=>C.some(Tn.element)),un=[C.some(_l.edge(Ce))].concat(j(_l.positions(St,Ce),Tn=>Tn.map($n=>$n.y)));return j(Ut,(Tn,$n)=>ki(Tn,$n,un,E,Ye,st))},mr=(pe,Ce)=>fs(pe,Ce,On,Ye=>Ye.getOrThunk(Xd)),ys=(pe,Ce)=>fs(pe,Ce,Si,$i),Pl=(pe,Ce)=>()=>ao(pe)?Ce(pe):parseFloat($h(pe,"width").getOr("0")),Ys=pe=>{const Ce=Pl(pe,js),Ye=v(0);return{width:Ce,pixelWidth:Ce,getWidths:(St,Ut)=>Pi(St,pe,Ut),getCellDelta:Ye,singleColumnWidth:v([0]),minCellWidth:Ye,setElementWidth:u,adjustTableWidth:u,isRelative:!0,label:"none"}},dl=pe=>{const Ce=Pl(pe,$n=>parseFloat(Pr($n))),Ye=Pl(pe,js);return{width:Ce,pixelWidth:Ye,getWidths:($n,ur)=>ba($n,pe,ur),getCellDelta:$n=>$n/Ye()*100,singleColumnWidth:($n,ur)=>[100-$n],minCellWidth:()=>Mp()/Ye()*100,setElementWidth:Je,adjustTableWidth:$n=>{const ur=Ce(),Nr=$n/100*ur,Ro=ur+Nr;Je(pe,Ro)},isRelative:!0,label:"percent"}},ds=pe=>{const Ce=Pl(pe,js);return{width:Ce,pixelWidth:Ce,getWidths:(un,Tn)=>Pi(un,pe,Tn),getCellDelta:_,singleColumnWidth:(un,Tn)=>[Math.max(Mp(),un+Tn)-un],minCellWidth:Mp,setElementWidth:Fe,adjustTableWidth:un=>{const Tn=Ce()+un;Fe(pe,Tn)},isRelative:!1,label:"pixel"}},Pa=(pe,Ce)=>vo().exec(Ce)!==null?dl(pe):ds(pe),Ls={getTableSize:pe=>sn(pe).fold(()=>Ys(pe),Ye=>Pa(pe,Ye)),pixelSize:ds,percentageSize:dl,noneSize:Ys},ol=(pe,Ce,Ye,st,St,Ut)=>({minRow:pe,minCol:Ce,maxRow:Ye,maxCol:st,allCells:St,selectedCells:Ut}),Is=(pe,Ce)=>{const Ye=pe.grid.columns;let St=pe.grid.rows,Ut=Ye,un=0,Tn=0;const $n=[],ur=[];return Ie(pe.access,Nr=>{if($n.push(Nr),Ce(Nr)){ur.push(Nr);const Ro=Nr.row,ai=Ro+Nr.rowspan-1,Ko=Nr.column,Qo=Ko+Nr.colspan-1;Roun&&(un=ai),KoTn&&(Tn=Qo)}}),ol(St,Ut,un,Tn,$n,ur)},Ds=(pe,Ce,Ye)=>{const st=pe[Ye].element,St=Pt.fromTag("td");$r(St,Pt.fromTag("br")),(Ce?$r:Rr)(st,St)},ec=(pe,Ce,Ye,st)=>{const St=W(pe,Tn=>Tn.section!=="colgroup"),Ut=Ce.grid.columns,un=Ce.grid.rows;for(let Tn=0;TnYe.maxRow||urYe.maxCol||(Xi.getAt(Ce,Tn,ur).filter(st).isNone()?Ds(St,$n,Tn):$n=!0)}},Tc=(pe,Ce,Ye,st)=>{Ie(Ye.columns,un=>{(un.columnCe.maxCol)&&li(un.element)});const St=W(yf(pe,"tr"),un=>un.dom.childElementCount===0);U(St,li),(Ce.minCol===Ce.maxCol||Ce.minRow===Ce.maxRow)&&U(yf(pe,"th,td"),un=>{at(un,"rowspan"),at(un,"colspan")}),at(pe,si),at(pe,"data-snooker-col-series"),Ls.getTableSize(pe).adjustTableWidth(st)},op=(pe,Ce,Ye,st)=>{if(st.minCol===0&&Ce.grid.columns===st.maxCol+1)return 0;const St=Pi(Ce,pe,Ye),Ut=oe(St,(ur,Nr)=>ur+Nr,0),$n=oe(St.slice(st.minCol,st.maxCol+1),(ur,Nr)=>ur+Nr,0)/Ut*Ye.pixelWidth()-Ye.pixelWidth();return Ye.getCellDelta($n)},ip=(pe,Ce)=>{const Ye=ai=>tn(ai.element,Ce),st=dr(pe),St=rs(st),Ut=Ls.getTableSize(pe),un=Xi.generate(St),Tn=Is(un,Ye),$n="th:not("+Ce+"),td:not("+Ce+")",ur=mh(st,"th,td",ai=>tn(ai,$n));U(ur,li),ec(St,un,Tn,Ye);const Nr=Xi.fromTable(pe),Ro=op(pe,Nr,Ut,Tn);return Tc(st,Tn,un,Ro),st},Hs=" ",hd=((pe,Ce)=>{const Ye=Ut=>{if(!pe(Ut))throw new Error("Can only get "+Ce+" value of a "+Ce+" node");return st(Ut).getOr("")},st=Ut=>pe(Ut)?C.from(Ut.dom.nodeValue):C.none();return{get:Ye,getOption:st,set:(Ut,un)=>{if(!pe(Ut))throw new Error("Can only set raw "+Ce+" value of a "+Ce+" node");Ut.dom.nodeValue=un}}})(gn,"text"),qf=pe=>hd.get(pe),tc=pe=>hd.getOption(pe),Wf=(pe,Ce)=>hd.set(pe,Ce),Rl=pe=>qt(pe)==="img"?1:tc(pe).fold(()=>Kn(pe).length,Ce=>Ce.length),lg=pe=>tc(pe).filter(Ce=>Ce.trim().length!==0||Ce.indexOf(Hs)>-1).isSome(),E0=pe=>_t(pe)&&Rt(pe,"contenteditable")==="false",xm=["img","br"],Cx=pe=>lg(pe)||z(xm,qt(pe))||E0(pe),eh=pe=>cs(pe,Cx),Ax=pe=>Wg(pe,Cx),Wg=(pe,Ce)=>{const Ye=st=>{const St=Kn(st);for(let Ut=St.length-1;Ut>=0;Ut--){const un=St[Ut];if(Ce(un))return C.some(un);const Tn=Ye(un);if(Tn.isSome())return Tn}return C.none()};return Ye(pe)},Mx={scope:["row","col"]},O1=pe=>()=>{const Ce=Pt.fromTag("td",pe.dom);return $r(Ce,Pt.fromTag("br",pe.dom)),Ce},oc=pe=>()=>Pt.fromTag("col",pe.dom),_m=pe=>()=>Pt.fromTag("colgroup",pe.dom),Yg=pe=>()=>Pt.fromTag("tr",pe.dom),wm=(pe,Ce,Ye)=>{const st=io(pe,Ce);return Ie(Ye,(St,Ut)=>{St===null?at(st,Ut):lt(st,Ut,St)}),st},cb=pe=>pe,Oh=(pe,Ce,Ye)=>eh(pe).map(St=>{const Ut=Ye.join(","),un=oi(St,Ut,Tn=>vn(Tn,pe));return K(un,(Tn,$n)=>{const ur=br($n);return $r(Tn,ur),ur},Ce)}).getOr(Ce),Ex=(pe,Ce)=>{Ie(Mx,(Ye,st)=>it(pe,st).filter(St=>z(Ye,St)).each(St=>lt(Ce,st,St)))},kf=(pe,Ce,Ye)=>{const st=(un,Tn)=>{ef(un.element,Tn),Es(Tn,"height"),un.colspan!==1&&Es(Tn,"width")},St=un=>{const Tn=Pt.fromTag(qt(un.element),Ce.dom),$n=Ye.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),ur=$n.length>0?Oh(un.element,Tn,$n):Tn;return $r(ur,Pt.fromTag("br")),st(un,Tn),Ex(un.element,Tn),pe(un.element,Tn),Tn};return{col:un=>{const Tn=Pt.fromTag(qt(un.element),Ce.dom);return st(un,Tn),pe(un.element,Tn),Tn},colgroup:_m(Ce),row:Yg(Ce),cell:St,replace:wm,colGap:oc(Ce),gap:O1(Ce)}},Hv=pe=>({col:oc(pe),colgroup:_m(pe),row:Yg(pe),cell:O1(pe),replace:cb,colGap:oc(pe),gap:O1(pe)}),Om=(pe,Ce)=>{const st=(Ce||document).createElement("div");return st.innerHTML=pe,Kn(Pt.fromDom(st))},Sm=pe=>j(pe,Pt.fromDom),ap=pe=>Ce=>Ce.options.get(pe),Bp="100%",P0=pe=>{var Ce;const Ye=pe.dom,st=(Ce=Ye.getParent(pe.selection.getStart(),Ye.isBlock))!==null&&Ce!==void 0?Ce:pe.getBody();return af(Pt.fromDom(st))+"px"},cg=(pe,Ce)=>lp(pe)||!fb(pe)?Ce:Gg(pe)?{...Ce,width:P0(pe)}:{...Ce,width:Bp},Zv=(pe,Ce)=>lp(pe)||fb(pe)?Ce:Gg(pe)?{...Ce,width:P0(pe)}:{...Ce,width:Bp},R0=pe=>{const Ce=pe.options.register;Ce("table_clone_elements",{processor:"string[]"}),Ce("table_use_colgroups",{processor:"boolean",default:!0}),Ce("table_header_type",{processor:Ye=>{const st=z(["section","cells","sectionCells","auto"],Ye);return st?{value:Ye,valid:st}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),Ce("table_sizing_mode",{processor:"string",default:"auto"}),Ce("table_default_attributes",{processor:"object",default:{border:"1"}}),Ce("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),Ce("table_column_resizing",{processor:Ye=>{const st=z(["preservetable","resizetable"],Ye);return st?{value:Ye,valid:st}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),Ce("table_resize_bars",{processor:"boolean",default:!0}),Ce("table_style_by_css",{processor:"boolean",default:!0}),Ce("table_merge_content_on_paste",{processor:"boolean",default:!0})},C_=pe=>C.from(pe.options.get("table_clone_elements")),sp=pe=>{const Ce=pe.options.get("object_resizing");return z(Ce.split(","),"table")},A_=ap("table_header_type"),ub=ap("table_column_resizing"),Fl=pe=>ub(pe)==="preservetable",Yf=pe=>ub(pe)==="resizetable",km=ap("table_sizing_mode"),Xg=pe=>km(pe)==="relative",Gg=pe=>km(pe)==="fixed",lp=pe=>km(pe)==="responsive",cp=ap("table_resize_bars"),fb=ap("table_style_by_css"),up=ap("table_merge_content_on_paste"),Xf=pe=>{const Ce=pe.options,Ye=Ce.get("table_default_attributes");return Ce.isSet("table_default_attributes")?Ye:Zv(pe,Ye)},L0=pe=>{const Ce=pe.options,Ye=Ce.get("table_default_styles");return Ce.isSet("table_default_styles")?Ye:cg(pe,Ye)},Px=ap("table_use_colgroups"),zp=pe=>qc(pe,"[contenteditable]"),Kg=(pe,Ce=!1)=>ao(pe)?pe.dom.isContentEditable:zp(pe).fold(v(Ce),Ye=>M_(Ye)==="true"),M_=pe=>pe.dom.contentEditable,S1=pe=>Pt.fromDom(pe.getBody()),Tm=pe=>Ce=>vn(Ce,S1(pe)),zd=pe=>{at(pe,"data-mce-style");const Ce=Ye=>at(Ye,"data-mce-style");U(bf(pe),Ce),U(tf(pe),Ce),U(xf(pe),Ce)},fp=pe=>Pt.fromDom(pe.selection.getStart()),I0=pe=>pe.getBoundingClientRect().width,E_=pe=>pe.getBoundingClientRect().height,Jg=pe=>(Ce,Ye)=>{const st=Ce.dom.getStyle(Ye,pe)||Ce.dom.getAttrib(Ye,pe);return C.from(st).filter(cc)},P_=Jg("width"),k1=Jg("height"),zO=pe=>/^(\d+(\.\d+)?)%$/.test(pe),bu=pe=>/^(\d+(\.\d+)?)px$/.test(pe),Cm=pe=>Xl(pe,vt("table")).exists(Kg),D0=(pe,Ce)=>{const Ye=Ce.column,st=Ce.column+Ce.colspan-1,St=Ce.row,Ut=Ce.row+Ce.rowspan-1;return Ye<=pe.finishCol&&st>=pe.startCol&&St<=pe.finishRow&&Ut>=pe.startRow},Sa=(pe,Ce)=>Ce.column>=pe.startCol&&Ce.column+Ce.colspan-1<=pe.finishCol&&Ce.row>=pe.startRow&&Ce.row+Ce.rowspan-1<=pe.finishRow,Ri=(pe,Ce)=>{let Ye=!0;const st=A(Sa,Ce);for(let St=Ce.startRow;St<=Ce.finishRow;St++)for(let Ut=Ce.startCol;Ut<=Ce.finishCol;Ut++)Ye=Ye&&Xi.getAt(pe,St,Ut).exists(st);return Ye?C.some(Ce):C.none()},Fp=(pe,Ce)=>Qn(Math.min(pe.row,Ce.row),Math.min(pe.column,Ce.column),Math.max(pe.row+pe.rowspan-1,Ce.row+Ce.rowspan-1),Math.max(pe.column+pe.colspan-1,Ce.column+Ce.colspan-1)),qv=(pe,Ce,Ye)=>{const st=Xi.findItem(pe,Ce,vn),St=Xi.findItem(pe,Ye,vn);return st.bind(Ut=>St.map(un=>Fp(Ut,un)))},db=(pe,Ce,Ye)=>qv(pe,Ce,Ye).bind(st=>Ri(pe,st)),T1=(pe,Ce,Ye,st)=>Xi.findItem(pe,Ce,vn).bind(St=>{const Ut=Ye>0?St.row+St.rowspan-1:St.row,un=st>0?St.column+St.colspan-1:St.column;return Xi.getAt(pe,Ut+Ye,un+st).map($n=>$n.element)}),Np=(pe,Ce,Ye)=>qv(pe,Ce,Ye).map(st=>{const St=Xi.filterItems(pe,A(D0,st));return j(St,Ut=>Ut.element)}),hl=(pe,Ce)=>{const Ye=(st,St)=>Nn(St,st);return Xi.findItem(pe,Ce,Ye).map(st=>st.element)},FO=(pe,Ce,Ye)=>Au(pe).bind(st=>{const St=e0(st);return T1(St,pe,Ce,Ye)}),Rx=(pe,Ce,Ye)=>{const st=e0(pe);return Np(st,Ce,Ye)},B0=(pe,Ce,Ye,st,St)=>{const Ut=e0(pe),un=vn(pe,Ye)?C.some(Ce):hl(Ut,Ce),Tn=vn(pe,St)?C.some(st):hl(Ut,st);return un.bind($n=>Tn.bind(ur=>Np(Ut,$n,ur)))},fo=(pe,Ce,Ye)=>{const st=e0(pe);return db(st,Ce,Ye)},e0=Xi.fromTable;var xS=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],ug=()=>{const pe=ur=>Pt.fromDom(ur.dom.cloneNode(!1)),Ce=ur=>In(ur).dom,Ye=ur=>nn(ur)?qt(ur)==="body"?!0:z(xS,qt(ur)):!1,st=ur=>nn(ur)?z(["br","img","hr","input"],qt(ur)):!1,St=ur=>nn(ur)&&Rt(ur,"contenteditable")==="false",Ut=(ur,Nr)=>ur.dom.compareDocumentPosition(Nr.dom),un=(ur,Nr)=>{const Ro=Lt(ur);yt(Nr,Ro)},Tn=ur=>{const Nr=qt(ur);return z(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],Nr)},$n=ur=>nn(ur)?it(ur,"lang"):C.none();return{up:v({selector:wc,closest:qc,predicate:Aa,all:Fn}),down:v({selector:ra,predicate:Ao}),styles:v({get:vf,getRaw:$h,set:Ss,remove:Es}),attrs:v({get:Rt,set:lt,remove:at,copyTo:un}),insert:v({before:zr,after:Fr,afterAll:so,append:$r,appendAll:So,prepend:Rr,wrap:Co}),remove:v({unwrap:Pn,remove:li}),create:v({nu:Pt.fromTag,clone:pe,text:Pt.fromText}),query:v({comparePosition:Ut,prevSibling:ir,nextSibling:Wn}),property:v({children:Kn,name:qt,parent:Sr,document:Ce,isText:gn,isComment:Ct,isElement:nn,isSpecial:Tn,getLanguage:$n,getText:qf,setText:Wf,isBoundary:Ye,isEmptyTag:st,isNonEditable:St}),eq:vn,is:er}};const R_=(pe,Ce,Ye,st)=>{const St=Ye[0],Ut=Ye.slice(1);return st(pe,Ce,St,Ut)},Fd=(pe,Ce,Ye)=>Ye.length>0?R_(pe,Ce,Ye,L_):C.none(),L_=(pe,Ce,Ye,st)=>{const St=Ce(pe,Ye);return K(st,(Ut,un)=>{const Tn=Ce(pe,un);return Am(pe,Ut,Tn)},St)},Am=(pe,Ce,Ye)=>Ce.bind(st=>Ye.filter(A(pe.eq,st))),I_=(pe,Ce)=>A(pe.eq,Ce),Wv=(pe,Ce,Ye,st=T)=>{const St=[Ce].concat(pe.up().all(Ce)),Ut=[Ye].concat(pe.up().all(Ye)),un=Nr=>ee(Nr,st).fold(()=>Nr,ai=>Nr.slice(0,ai+1)),Tn=un(St),$n=un(Ut),ur=Y(Tn,Nr=>$($n,I_(pe,Nr)));return{firstpath:Tn,secondpath:$n,shared:ur}},Ll=Fd,Sh=Wv,NO=ug(),$p=(pe,Ce)=>Ll(NO,(Ye,st)=>pe(st),Ce),Lx=(pe,Ce,Ye)=>Sh(NO,pe,Ce,Ye),Yv=pe=>wc(pe,"table"),Xv=(pe,Ce,Ye)=>{const st=St=>Ut=>Ye!==void 0&&Ye(Ut)||vn(Ut,St);return vn(pe,Ce)?C.some({boxes:C.some([pe]),start:pe,finish:Ce}):Yv(pe).bind(St=>Yv(Ce).bind(Ut=>{if(vn(St,Ut))return C.some({boxes:Rx(St,pe,Ce),start:pe,finish:Ce});if(Nn(St,Ut)){const un=oi(Ce,"td,th",st(St)),Tn=un.length>0?un[un.length-1]:Ce;return C.some({boxes:B0(St,pe,St,Ce,Ut),start:pe,finish:Tn})}else if(Nn(Ut,St)){const un=oi(pe,"td,th",st(Ut)),Tn=un.length>0?un[un.length-1]:pe;return C.some({boxes:B0(Ut,pe,St,Ce,Ut),start:pe,finish:Tn})}else return Lx(pe,Ce).shared.bind(un=>qc(un,"table",Ye).bind(Tn=>{const $n=oi(Ce,"td,th",st(Tn)),ur=$n.length>0?$n[$n.length-1]:Ce,Nr=oi(pe,"td,th",st(Tn)),Ro=Nr.length>0?Nr[Nr.length-1]:pe;return C.some({boxes:B0(Tn,pe,St,Ce,Ut),start:Ro,finish:ur})}))}))},hb=(pe,Ce)=>{const Ye=ra(pe,Ce);return Ye.length>0?C.some(Ye):C.none()},Tf=(pe,Ce)=>Y(pe,Ye=>tn(Ye,Ce)),$O=(pe,Ce,Ye)=>Ku(pe,Ce).bind(st=>Ku(pe,Ye).bind(St=>$p(Yv,[st,St]).map(Ut=>({first:st,last:St,table:Ut})))),C1=(pe,Ce)=>wc(pe,"table").bind(Ye=>Ku(Ye,Ce).bind(st=>Xv(st,pe).bind(St=>St.boxes.map(Ut=>({boxes:Ut,start:St.start,finish:St.finish}))))),A1=(pe,Ce,Ye,st,St)=>Tf(pe,St).bind(Ut=>FO(Ut,Ce,Ye).bind(un=>C1(un,st))),pd=(pe,Ce)=>hb(pe,Ce),D_=(pe,Ce,Ye)=>$O(pe,Ce,Ye).bind(st=>{const St=$n=>vn(pe,$n),Ut="thead,tfoot,tbody,table",un=wc(st.first,Ut,St),Tn=wc(st.last,Ut,St);return un.bind($n=>Tn.bind(ur=>vn($n,ur)?fo(st.table,st.first,st.last):C.none()))}),VO=_,B_=pe=>{const Ce=(st,St)=>it(st,St).exists(Ut=>parseInt(Ut,10)>1),Ye=st=>Ce(st,"rowspan")||Ce(st,"colspan");return pe.length>0&&se(pe,Ye)?C.some(pe):C.none()},Gv=(pe,Ce,Ye)=>Ce.length<=1?C.none():D_(pe,Ye.firstSelectedSelector,Ye.lastSelectedSelector).map(st=>({bounds:st,cells:Ce})),Gf="data-mce-selected",kh="td["+Gf+"],th["+Gf+"]",Do="["+Gf+"]",Ix="data-mce-first-selected",lf="td["+Ix+"],th["+Ix+"]",pb="data-mce-last-selected",md="td["+pb+"],th["+pb+"]",Nl=Do,fg={selected:Gf,selectedSelector:kh,firstSelected:Ix,firstSelectedSelector:lf,lastSelected:pb,lastSelectedSelector:md},Dx=(pe,Ce,Ye)=>({element:Ye,mergable:Gv(Ce,pe,fg),unmergable:B_(pe),selection:VO(pe)}),UO=(pe,Ce,Ye)=>({element:pe,clipboard:Ce,generators:Ye}),t0=(pe,Ce,Ye,st)=>({selection:VO(pe),clipboard:Ye,generators:st}),mb=pe=>Au(pe).bind(Ce=>pd(Ce,fg.firstSelectedSelector)).fold(v(pe),Ce=>Ce[0]),Mm=pe=>(Ce,Ye)=>{const st=qt(Ce),St=st==="col"||st==="colgroup"?mb(Ce):Ce;return qc(St,pe,Ye)},jO=Mm("th,td,caption"),z_=Mm("th,td"),wl=pe=>Sm(pe.model.table.getSelectedCells()),Kv=pe=>W(wl(pe),Ce=>tn(Ce,fg.selectedSelector)),fc=pe=>Au(pe[0]).map(Ce=>{const Ye=ip(Ce,Nl);return zd(Ye),[Ye]}),Jv=(pe,Ce)=>j(Ce,Ye=>pe.selection.serializer.serialize(Ye.dom,{})).join(""),$l=pe=>j(pe,Ce=>Ce.dom.innerText).join(""),M1=(pe,Ce)=>{pe.on("BeforeGetContent",Ye=>{const st=St=>{Ye.preventDefault(),fc(St).each(Ut=>{Ye.content=Ye.format==="text"?$l(Ut):Jv(pe,Ut)})};if(Ye.selection===!0){const St=Kv(pe);St.length>=1&&st(St)}}),pe.on("BeforeSetContent",Ye=>{if(Ye.selection===!0&&Ye.paste===!0){const st=wl(pe);ye(st).each(St=>{Au(St).each(Ut=>{const un=W(Om(Ye.content),$n=>qt($n)!=="meta"),Tn=vt("table");if(up(pe)&&un.length===1&&Tn(un[0])){Ye.preventDefault();const $n=Pt.fromDom(pe.getDoc()),ur=Hv($n),Nr=UO(St,un[0],ur);Ce.pasteCells(Ut,Nr).each(()=>{pe.focus()})}})})}})},th=(pe,Ce)=>({element:pe,offset:Ce}),Bx=(pe,Ce,Ye)=>pe.property().isText(Ce)&&pe.property().getText(Ce).trim().length===0||pe.property().isComment(Ce)?Ye(Ce).bind(st=>Bx(pe,st,Ye).orThunk(()=>C.some(st))):C.none(),ic=(pe,Ce)=>pe.property().isText(Ce)?pe.property().getText(Ce).length:pe.property().children(Ce).length,F_=(pe,Ce)=>{const Ye=Bx(pe,Ce,pe.query().prevSibling).getOr(Ce);if(pe.property().isText(Ye))return th(Ye,ic(pe,Ye));const st=pe.property().children(Ye);return st.length>0?F_(pe,st[st.length-1]):th(Ye,ic(pe,Ye))},QO=F_,Du=ug(),su=pe=>QO(Du,pe),dg=(pe,Ce)=>{Vf(pe)||An(pe).each(st=>{const St=st.value/2;Sn(pe,St,st.unit),Sn(Ce,St,st.unit)})},n0=pe=>j(pe,v(0)),N_=(pe,Ce,Ye,st,St)=>St(pe.slice(0,Ce)).concat(st).concat(St(pe.slice(Ye))),ey=pe=>(Ce,Ye,st,St)=>{if(pe(st)){const Ut=Math.max(St,Ce[Ye]-Math.abs(st)),un=Math.abs(Ut-Ce[Ye]);return st>=0?un:-un}else return st},hg=ey(pe=>pe<0),ty=ey(E),E1=()=>{const pe=(Tn,$n,ur,Nr,Ro)=>{const ai=hg(Tn,$n,Nr,Ro);return N_(Tn,$n,ur+1,[ai,0],n0)},Ce=(Tn,$n,ur,Nr)=>{const Ro=(100+ur)/100,ai=Math.max(Nr,(Tn[$n]+ur)/Ro);return j(Tn,(Ko,Qo)=>(Qo===$n?ai:Ko/Ro)-Ko)},Ye=(Tn,$n,ur,Nr,Ro,ai)=>ai?Ce(Tn,$n,Nr,Ro):pe(Tn,$n,ur,Nr,Ro);return{resizeTable:(Tn,$n)=>Tn($n),clampTableDelta:hg,calcLeftEdgeDeltas:Ye,calcMiddleDeltas:(Tn,$n,ur,Nr,Ro,ai,Ko)=>Ye(Tn,ur,Nr,Ro,ai,Ko),calcRightEdgeDeltas:(Tn,$n,ur,Nr,Ro,ai)=>{if(ai)return Ce(Tn,ur,Nr,Ro);{const Ko=hg(Tn,ur,Nr,Ro);return n0(Tn.slice(0,ur)).concat([Ko])}},calcRedestributedWidths:(Tn,$n,ur,Nr)=>{if(Nr){const ai=($n+ur)/$n,Ko=j(Tn,Qo=>Qo/ai);return{delta:ai*100-100,newSizes:Ko}}else return{delta:ur,newSizes:Tn}}}},z0=()=>{const pe=(un,Tn,$n,ur,Nr)=>{const Ro=ur>=0?$n:Tn,ai=ty(un,Ro,ur,Nr);return N_(un,Tn,$n+1,[ai,-ai],n0)};return{resizeTable:(un,Tn,$n)=>{$n&&un(Tn)},clampTableDelta:(un,Tn,$n,ur,Nr)=>{if(Nr){if($n>=0)return $n;{const Ro=oe(un,(ai,Ko)=>ai+Ko-ur,0);return Math.max(-Ro,$n)}}else return hg(un,Tn,$n,ur)},calcLeftEdgeDeltas:pe,calcMiddleDeltas:(un,Tn,$n,ur,Nr,Ro)=>pe(un,$n,ur,Nr,Ro),calcRightEdgeDeltas:(un,Tn,$n,ur,Nr,Ro)=>{if(Ro)return n0(un);{const ai=ur/un.length;return j(un,v(ai))}},calcRedestributedWidths:(un,Tn,$n,ur)=>({delta:0,newSizes:un})}},pg=pe=>Xi.fromTable(pe).grid,P1=vt("th"),R1=pe=>se(pe,Ce=>P1(Ce.element)),zx=(pe,Ce)=>pe&&Ce?"sectionCells":pe?"section":"cells",F0=pe=>{const Ce=pe.section==="thead",Ye=Yd(gb(pe.cells),"th");return pe.section==="tfoot"?{type:"footer"}:Ce||Ye?{type:"header",subType:zx(Ce,Ye)}:{type:"body"}},gb=pe=>{const Ce=W(pe,Ye=>P1(Ye.element));return Ce.length===0?C.some("td"):Ce.length===pe.length?C.some("th"):C.none()},Fx=pe=>{const Ce=j(pe,St=>F0(St).type),Ye=z(Ce,"header"),st=z(Ce,"footer");if(!Ye&&!st)return C.some("body");{const St=z(Ce,"body");return Ye&&!St&&!st?C.some("header"):!Ye&&!St&&st?C.some("footer"):C.none()}},$_=pe=>Se(pe.all,Ce=>{const Ye=F0(Ce);return Ye.type==="header"?C.from(Ye.subType):C.none()}),Nx=(pe,Ce,Ye)=>vr(Ye(pe.element,Ce),!0,pe.isLocked),V_=(pe,Ce)=>pe.section!==Ce?nr(pe.element,pe.cells,Ce,pe.isNew):pe,vb=()=>({transformRow:V_,transformCell:(pe,Ce,Ye)=>{const st=Ye(pe.element,Ce),St=qt(st)!=="td"?Qr(st,"td"):st;return vr(St,pe.isNew,pe.isLocked)}}),L1=()=>({transformRow:V_,transformCell:Nx}),gd=()=>({transformRow:(pe,Ce)=>V_(pe,Ce==="thead"?"tbody":Ce),transformCell:Nx}),Th={getTableSectionType:(pe,Ce)=>{const Ye=Xi.fromTable(pe);switch($_(Ye).getOr(Ce)){case"section":return vb();case"sectionCells":return L1();case"cells":return gd()}},section:vb,sectionCells:L1,cells:gd,fallback:()=>({transformRow:_,transformCell:Nx})},Kf=(pe,Ce,Ye,st)=>{Ye===st?at(pe,Ce):lt(pe,Ce,Ye)},ny=(pe,Ce,Ye)=>{_e(ko(pe,Ce)).fold(()=>Rr(pe,Ye),st=>Fr(st,Ye))},I1=(pe,Ce)=>{const Ye=ma(pe,Ce).getOrThunk(()=>{const st=Pt.fromTag(Ce,En(pe).dom);return Ce==="thead"?ny(pe,"caption,colgroup",st):Ce==="colgroup"?ny(pe,"caption",st):$r(pe,st),st});return go(Ye),Ye},cf=(pe,Ce)=>{const Ye=[],st=[],St=Ko=>j(Ko,Qo=>{Qo.isNew&&Ye.push(Qo.element);const _i=Qo.element;return go(_i),U(Qo.cells,To=>{To.isNew&&st.push(To.element),Kf(To.element,"colspan",To.colspan,1),Kf(To.element,"rowspan",To.rowspan,1),$r(_i,To.element)}),_i}),Ut=Ko=>he(Ko,Qo=>j(Qo.cells,_i=>(Kf(_i.element,"span",_i.colspan,1),_i.element))),un=(Ko,Qo)=>{const _i=I1(pe,Qo),Zo=(Qo==="colgroup"?Ut:St)(Ko);So(_i,Zo)},Tn=Ko=>{ma(pe,Ko).each(li)},$n=(Ko,Qo)=>{Ko.length>0?un(Ko,Qo):Tn(Qo)},ur=[],Nr=[],Ro=[],ai=[];return U(Ce,Ko=>{switch(Ko.section){case"thead":ur.push(Ko);break;case"tbody":Nr.push(Ko);break;case"tfoot":Ro.push(Ko);break;case"colgroup":ai.push(Ko);break}}),$n(ai,"colgroup"),$n(ur,"thead"),$n(Nr,"tbody"),$n(Ro,"tfoot"),{newRows:Ye,newCells:st}},Em=pe=>j(pe,Ce=>{const Ye=br(Ce.element);return U(Ce.cells,st=>{const St=dr(st.element);Kf(St,"colspan",st.colspan,1),Kf(St,"rowspan",st.rowspan,1),$r(Ye,St)}),Ye}),$x=(pe,Ce)=>j(pe,Ye=>Ru(Ye,Ce)),Nd=(pe,Ce)=>pe[Ce],ry=(pe,Ce)=>{if(pe.length===0)return 0;const Ye=pe[0];return ee(pe,St=>!Ce(Ye.element,St.element)).getOr(pe.length)},HO=(pe,Ce,Ye,st)=>{const St=Nd(pe,Ce),Ut=St.section==="colgroup",un=ry(St.cells.slice(Ye),st),Tn=Ut?1:ry($x(pe.slice(Ce),Ye),st);return{colspan:un,rowspan:Tn}},Vx=(pe,Ce)=>{const Ye=j(pe,St=>j(St.cells,T)),st=(St,Ut,un,Tn)=>{for(let $n=St;$n{const un=he(St.cells,(Tn,$n)=>{if(Ye[Ut][$n]===!1){const ur=HO(pe,Ut,$n,Ce);return st(Ut,$n,ur.rowspan,ur.colspan),[zn(Tn.element,ur.rowspan,ur.colspan,Tn.isNew)]}else return[]});return gr(St.element,un,St.section,St.isNew)})},D1=(pe,Ce,Ye)=>{const st=[];U(pe.colgroups,St=>{const Ut=[];for(let un=0;unvr($n.element,Ye,!1)).getOrThunk(()=>vr(Ce.colGap(),!0,!1));Ut.push(Tn)}st.push(nr(St.element,Ut,"colgroup",Ye))});for(let St=0;Stvr(Nr.element,Ye,Nr.isLocked)).getOrThunk(()=>vr(Ce.gap(),!0,!1));Ut.push(ur)}const un=pe.all[St],Tn=nr(un.element,Ut,un.section,Ye);st.push(Tn)}return st},j_=(pe,Ce)=>D1(pe,Ce,!1),oy=pe=>Vx(pe,vn),bb=(pe,Ce)=>Se(pe.all,Ye=>Y(Ye.cells,st=>vn(Ce,st.element))),ZO=(pe,Ce,Ye)=>{const st=j(Ce.selection,Ut=>Vh(Ut).bind(un=>bb(pe,un)).filter(Ye)),St=Ql(st);return Nf(St.length>0,St)},Cf=(pe,Ce,Ye,st,St)=>(Ut,un,Tn,$n)=>{const ur=Xi.fromTable(Ut),Nr=C.from($n==null?void 0:$n.section).getOrThunk(Th.fallback);return Ce(ur,un).map(ai=>{const Ko=j_(ur,Tn),Qo=pe(Ko,ai,vn,St(Tn),Nr),_i=Ps(Qo.grid),To=oy(Qo.grid);return{info:ai,grid:To,cursor:Qo.cursor,lockedColumns:_i}}).bind(ai=>{const Ko=cf(Ut,ai.grid),Qo=C.from($n==null?void 0:$n.sizing).getOrThunk(()=>Ls.getTableSize(Ut)),_i=C.from($n==null?void 0:$n.resize).getOrThunk(z0);return Ye(Ut,ai.grid,ai.info,{sizing:Qo,resize:_i,section:Nr}),st(Ut),at(Ut,si),ai.lockedColumns.length>0&<(Ut,si,ai.lockedColumns.join(",")),C.some({cursor:ai.cursor,newRows:Ko.newRows,newCells:Ko.newCells})})},mg=(pe,Ce)=>Vh(Ce.element).bind(Ye=>bb(pe,Ye).map(st=>({...st,generators:Ce.generators,clipboard:Ce.clipboard}))),dp=(pe,Ce)=>ZO(pe,Ce,E).map(Ye=>({cells:Ye,generators:Ce.generators,clipboard:Ce.clipboard})),N0=(pe,Ce)=>Ce.mergable,Q_=(pe,Ce)=>Ce.unmergable,Vp=(pe,Ce)=>ZO(pe,Ce,E),nh=(pe,Ce)=>ZO(pe,Ce,Ye=>!Ye.isLocked),B1=(pe,Ce)=>bb(pe,Ce).exists(Ye=>!Ye.isLocked),z1=(pe,Ce)=>se(Ce,Ye=>B1(pe,Ye)),iy=(pe,Ce)=>N0(pe,Ce).filter(Ye=>z1(pe,Ye.cells)),qO=(pe,Ce)=>Q_(pe,Ce).filter(Ye=>z1(pe,Ye)),_S=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows;if(St.length===0)return pe;for(let Ut=Ce.startRow;Ut<=Ce.finishRow;Ut++)for(let un=Ce.startCol;un<=Ce.finishCol;un++){const Tn=St[Ut],$n=Ru(Tn,un).isLocked;Hi(Tn,un,vr(st(),!1,$n))}return pe},F1=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows;let Ut=!0;for(let un=0;unoe(pe,(Ye,st)=>$(Ye,St=>Ce(St.element,st.element))?Ye:Ye.concat([st]),[]),H_=(pe,Ce,Ye,st)=>(Ce>0&&Ce{const Ut=St.cells[Ce-1];let un=0;const Tn=st();for(;St.cells.length>Ce+un&&Ye(Ut.element,St.cells[Ce+un].element);)Hi(St,Ce+un,vr(Tn,!0,St.cells[Ce+un].isLocked)),un++}),pe),nc=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows;if(Ce>0&&Ce{let $n=C.none();for(let ur=Ce;ur{Hi(Ro,Nr,vr(Qo,!0,ai.isLocked))}))}})}return pe},$0=pe=>{const Ce=Ut=>Ut(pe),Ye=v(pe),st=()=>St,St={tag:!0,inner:pe,fold:(Ut,un)=>un(pe),isValue:E,isError:T,map:Ut=>N1.value(Ut(pe)),mapError:st,bind:Ce,exists:Ce,forall:Ce,getOr:Ye,or:st,getOrThunk:Ye,orThunk:st,getOrDie:Ye,each:Ut=>{Ut(pe)},toOptional:()=>C.some(pe)};return St},vd=pe=>{const Ce=()=>Ye,Ye={tag:!1,inner:pe,fold:(st,St)=>st(pe),isValue:T,isError:E,map:Ce,mapError:st=>N1.error(st(pe)),bind:Ce,exists:T,forall:E,getOr:_,or:_,getOrThunk:M,orThunk:M,getOrDie:R(String(pe)),each:u,toOptional:C.none};return Ye},N1={value:$0,error:vd,fromOption:(pe,Ce)=>pe.fold(()=>vd(Ce),$0)},r0=(pe,Ce,Ye)=>{if(pe.row>=Ce.length||pe.column>Yc(Ce[0]))return N1.error("invalid start address out of table bounds, row: "+pe.row+", column: "+pe.column);const st=Ce.slice(pe.row),St=st[0].cells.slice(pe.column),Ut=Yc(Ye[0]),un=Ye.length;return N1.value({rowDelta:st.length-un,colDelta:St.length-Ut})},gg=(pe,Ce)=>{const Ye=Yc(pe[0]),st=Yc(Ce[0]);return{rowDelta:0,colDelta:Ye-st}},oh=(pe,Ce)=>{const Ye=pe.length,st=Ce.length;return{rowDelta:Ye-st,colDelta:0}},Ch=(pe,Ce,Ye,st)=>{const St=Ce.section==="colgroup"?Ye.col:Ye.cell;return Q(pe,Ut=>vr(St(),!0,st(Ut)))},Z_=(pe,Ce,Ye,st)=>{const St=pe[pe.length-1];return pe.concat(Q(Ce,()=>{const Ut=St.section==="colgroup"?Ye.colgroup:Ye.row,un=Fc(St,Ut,_),Tn=Ch(un.cells.length,un,Ye,$n=>We(st,$n.toString()));return pi(un,Tn)}))},q_=(pe,Ce,Ye,st)=>j(pe,St=>{const Ut=Ch(Ce,St,Ye,T);return sf(St,st,Ut)}),V0=(pe,Ce,Ye)=>j(pe,st=>oe(Ye,(St,Ut)=>{const un=Ch(1,st,Ce,E)[0];return Ml(St,Ut,un)},st)),Up=(pe,Ce,Ye)=>{const st=Ce.colDelta<0?q_:_,St=Ce.rowDelta<0?Z_:_,Ut=Ps(pe),un=Yc(pe[0]),Tn=$(Ut,Nr=>Nr===un-1),$n=st(pe,Math.abs(Ce.colDelta),Ye,Tn?un-1:un),ur=Ps($n);return St($n,Math.abs(Ce.rowDelta),Ye,ce(ur,E))},W_=(pe,Ce,Ye,st)=>{const St=Ru(pe[Ce],Ye),Ut=A(st,St.element),un=pe[Ce];return pe.length>1&&Yc(un)>1&&(Ye>0&&Ut(vc(un,Ye-1))||Ye0&&Ut(vc(pe[Ce-1],Ye))||Ce{const un=pe.row,Tn=pe.column,$n=Ye.length,ur=Yc(Ye[0]),Nr=un+$n,Ro=Tn+ur+Ut.length,ai=ce(Ut,E);for(let Ko=un;Ko{const st=Yc(Ce[0]),St=Kl(Ce).cols.length+pe.row,Ut=Q(st-pe.column,Tn=>Tn+pe.column),un=Y(Ut,Tn=>se(Ye,$n=>$n!==Tn)).getOr(st-1);return{row:St,column:un}},o0=(pe,Ce,Ye)=>W(Ye,st=>st>=pe.column&&st<=Yc(Ce[0])+pe.column),Ra=(pe,Ce,Ye,st,St)=>{const Ut=Ps(Ce),un=jp(pe,Ce,Ut),Tn=Kl(Ye).rows,$n=o0(un,Tn,Ut);return r0(un,Ce,Tn).map(Nr=>{const Ro={...Nr,colDelta:Nr.colDelta-$n.length},ai=Up(Ce,Ro,st),Ko=Ps(ai),Qo=o0(un,Tn,Ko);return U0(un,ai,Tn,st,St,Qo)})},yd=(pe,Ce,Ye,st,St)=>{H_(Ce,pe,St,st.cell);const Ut=oh(Ye,Ce),un=Up(Ye,Ut,st),Tn=oh(Ce,un),$n=Up(Ce,Tn,st);return j($n,(ur,Nr)=>sf(ur,pe,un[Nr].cells))},Zh=(pe,Ce,Ye,st,St)=>{nc(Ce,pe,St,st.cell);const Ut=Ps(Ce),un=gg(Ce,Ye),Tn={...un,colDelta:un.colDelta-Ut.length},$n=Up(Ce,Tn,st),{cols:ur,rows:Nr}=Kl($n),Ro=Ps($n),ai=gg(Ye,Ce),Ko={...ai,colDelta:ai.colDelta+Ro.length},Qo=V0(Ye,st,Ro),_i=Up(Qo,Ko,st);return[...ur,...Nr.slice(0,pe),..._i,...Nr.slice(pe,Nr.length)]},i0=(pe,Ce,Ye,st)=>Fc(pe,St=>st(St,Ye),Ce),Il=(pe,Ce,Ye,st,St)=>{const{rows:Ut,cols:un}=Kl(pe),Tn=Ut.slice(0,Ce),$n=Ut.slice(Ce),ur=i0(Ut[Ye],(Nr,Ro)=>Ce>0&&Ce{if(Ye==="colgroup"||!st){const Tn=Ru(pe,St);return vr(un(Tn.element,Ut),!0,!1)}else return Ru(pe,Ce)},$1=(pe,Ce,Ye,st,St)=>j(pe,Ut=>{const un=Ce>0&&Cehe(pe,Ye=>{const st=Ye.cells,St=K(Ce,(Ut,un)=>un>=0&&un0?[nr(Ye.element,St,Ye.section,Ye.isNew)]:[]}),Ux=(pe,Ce,Ye)=>{const{rows:st,cols:St}=Kl(pe);return[...St,...st.slice(0,Ce),...st.slice(Ye+1)]},ay=(pe,Ce,Ye,st)=>vc(pe[Ce],Ye)!==void 0&&Ce>0&&st(vc(pe[Ce-1],Ye),vc(pe[Ce],Ye)),Dl=(pe,Ce,Ye)=>Ce>0&&Ye(vc(pe,Ce-1),vc(pe,Ce)),Ol=(pe,Ce,Ye,st)=>ay(pe,Ce,Ye,st)||Dl(pe[Ce],Ye,st),OS=(pe,Ce)=>se(Ce,_)&&R1(pe.cells)?E:(st,St,Ut)=>!(qt(st.element)==="th"&&Ce[Ut]),Y_=(pe,Ce)=>se(Ce,_)&&R1(pe)?E:(st,St,Ut)=>!(qt(st.element)==="th"&&Ce[St]),Pm=(pe,Ce,Ye,st)=>{const St=un=>un==="row"?gc(Ce):Vf(Ce),Ut=un=>St(un)?`${un}group`:un;return pe?P1(Ce)?Ut(Ye):null:st&&P1(Ce)?Ut(Ye==="row"?"col":"row"):null},fi=(pe,Ce)=>(Ye,st,St)=>C.some(Pm(pe,Ye.element,"col",Ce[St])),SS=(pe,Ce)=>(Ye,st)=>C.some(Pm(pe,Ye.element,"row",Ce[st])),YO=(pe,Ce,Ye)=>vr(Ye(pe.element,Ce),!0,pe.isLocked),jx=(pe,Ce,Ye,st,St,Ut,un)=>{const Tn=$n=>$(Ce,ur=>Ye($n.element,ur.element));return j(pe,($n,ur)=>Qh($n,(Nr,Ro)=>{if(Tn(Nr)){const ai=un(Nr,ur,Ro)?St(Nr,Ye,st):Nr;return Ut(ai,ur,Ro).each(Ko=>{zt(ai.element,{scope:C.from(Ko)})}),ai}else return Nr}))},X_=(pe,Ce,Ye)=>he(pe,(st,St)=>Ol(pe,St,Ce,Ye)?[]:[Ru(st,Ce)]),kS=(pe,Ce,Ye)=>{const st=pe[Ce];return he(st.cells,(St,Ut)=>Ol(pe,Ce,Ut,Ye)?[]:[St])},xb=(pe,Ce,Ye,st,St)=>{const Ut=Kl(pe).rows,un=he(Ce,Nr=>X_(Ut,Nr,st)),Tn=j(Ut,Nr=>R1(Nr.cells)),$n=Y_(un,Tn),ur=SS(Ye,Tn);return jx(pe,un,st,St,YO,ur,$n)},sy=(pe,Ce,Ye,st,St,Ut,un)=>{const{cols:Tn,rows:$n}=Kl(pe),ur=$n[Ce[0]],Nr=he(Ce,To=>kS($n,To,St)),Ro=j(ur.cells,(To,Zo)=>R1(X_($n,Zo,St))),ai=[...$n];U(Ce,To=>{ai[To]=un.transformRow($n[To],Ye)});const Ko=[...Tn,...ai],Qo=OS(ur,Ro),_i=fi(st,Ro);return jx(Ko,Nr,St,Ut,un.transformCell,_i,Qo)},j0=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=j(Ce,un=>Ru(St[un.row],un.column));return jx(pe,Ut,Ye,st,YO,C.none,E)},Rm={generate:pe=>{if(!c(pe))throw new Error("cases must be an array");if(pe.length===0)throw new Error("there must be at least one case");const Ce=[],Ye={};return U(pe,(st,St)=>{const Ut=Te(st);if(Ut.length!==1)throw new Error("one and only one name per case");const un=Ut[0],Tn=st[un];if(Ye[un]!==void 0)throw new Error("duplicate key detected:"+un);if(un==="cata")throw new Error("cannot have a case named cata (sorry)");if(!c(Tn))throw new Error("case arguments must be an array");Ce.push(un),Ye[un]=(...$n)=>{const ur=$n.length;if(ur!==Tn.length)throw new Error("Wrong number of arguments to case "+un+". Expected "+Tn.length+" ("+Tn+"), got "+ur);return{fold:(...Ro)=>{if(Ro.length!==pe.length)throw new Error("Wrong number of arguments to fold. Expected "+pe.length+", got "+Ro.length);return Ro[St].apply(null,$n)},match:Ro=>{const ai=Te(Ro);if(Ce.length!==ai.length)throw new Error("Wrong number of arguments to match. Expected: "+Ce.join(",")+` +`))}};return r=bU(r,[//g]),Ke(B.parse(r)),H},xU=r=>(r=bU(r,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(B,H,re)=>!H&&!re?" ":Ea],/
    /g,/
    $/i]),r),_U=r=>{let g=0;return()=>r+g++},Tte=r=>{const g=r.toLowerCase(),B={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return mo.hasOwn(B,g)?"image/"+B[g]:"image/"+g},Cte=(r,g)=>{const B=Ry({sanitize:Lb(r),sandbox_iframes:o2(r),sandbox_iframes_exclusions:i2(r),convert_unsafe_embeds:MS(r)},r.schema);B.addNodeFilter("meta",re=>{mo.each(re,be=>{be.remove()})});const H=B.parse(g,{forced_root_block:!1,isRootContent:!0});return Yb({validate:!0},r.schema).serialize(H)},sO=(r,g)=>({content:r,cancelled:g}),Ate=(r,g,B)=>{const H=r.dom.create("div",{style:"display:none"},g),re=uE(r,H,B);return sO(re.node.innerHTML,re.isDefaultPrevented())},T4=(r,g,B)=>{const H=cE(r,g,B),re=Cte(r,H.content);return r.hasEventListeners("PastePostProcess")&&!H.isDefaultPrevented()?Ate(r,re,B):sO(re,H.isDefaultPrevented())},Pk=(r,g,B)=>T4(r,g,B),wR=(r,g)=>(r.insertContent(g,{merge:ow(r),paste:!0}),!0),OR=r=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(r),C4=(r,g)=>OR(g)&&de(Y0(r),B=>Sr(g.toLowerCase(),`.${B.toLowerCase()}`)),Mte=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.insertContent('')}),!0),SR=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.execCommand("mceInsertLink",!1,g)}),!0),Ete=(r,g,B)=>!r.selection.isCollapsed()&&OR(g)?SR(r,g,B):!1,wU=(r,g,B)=>C4(r,g)?Mte(r,g,B):!1,OU=(r,g)=>{mo.each([Ete,wU,wR],B=>!B(r,g,wR))},kR=(r,g,B)=>{B||!iw(r)?wR(r,g):OU(r,g)},SU=_U("mceclip"),Pte=r=>{const g=gR();return gU(g,r),mR(g),g},kU=(r,g,B,H,re)=>{const be=Pk(r,g,B);if(!be.cancelled){const Re=be.content,Ke=()=>kR(r,Re,H);re?aO(r,"insertFromPaste",{dataTransfer:Pte(Re)}).isDefaultPrevented()||(Ke(),Sk(r,"insertFromPaste")):Ke()}},Rk=(r,g,B,H)=>{const re=B||yU(g);kU(r,bte(g),re,!1,H)},TR=(r,g,B)=>{const H=r.dom.encode(g).replace(/\r\n/g,` +`),re=le(H,gy(r)),be=_te(re,dc(r),Jf(r));kU(r,be,!1,!0,B)},CR=r=>{const g={};if(r&&r.types)for(let B=0;Bg in r&&r[g].length>0,AR=r=>Uy(r,"text/html")||Uy(r,"text/plain"),Rte=(r,g)=>{const B=g.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return E(B)?r.dom.encode(B[1]):void 0},Lte=(r,g,B,H)=>{const re=SU(),be=Hc(r)&&E(B.name),Re=be?Rte(r,B.name):re,Ke=be?B.name:void 0,ct=g.create(re,B,H,Re,Ke);return g.add(ct),ct},Ite=(r,g)=>{U7(g.uri).each(({data:B,type:H,base64Encoded:re})=>{const be=re?B:btoa(B),Re=g.file,Ke=r.editorUpload.blobCache,ct=Ke.getByData(be,H),kt=ct??Lte(r,Ke,Re,be);Rk(r,``,!1,!0)})},TU=r=>r.type==="paste",MR=r=>Promise.all(ve(r,g=>Xz(g).then(B=>({file:g,uri:B})))),Dte=r=>{const g=Y0(r);return B=>xr(B.type,"image/")&&de(g,H=>Tte(H)===B.type)},CU=(r,g)=>{const B=g.items?$e(Ee(g.items),re=>re.kind==="file"?[re.getAsFile()]:[]):[],H=g.files?Ee(g.files):[];return Te(B.length>0?B:H,Dte(r))},ER=(r,g,B)=>{const H=TU(g)?g.clipboardData:g.dataTransfer;if(Fm(r)&&H){const re=CU(r,H);if(re.length>0)return g.preventDefault(),MR(re).then(be=>{B&&r.selection.setRng(B),ye(be,Re=>{Ite(r,Re)})}),!0}return!1},Bte=r=>{var g,B;return fr.os.isAndroid()&&((B=(g=r.clipboardData)===null||g===void 0?void 0:g.items)===null||B===void 0?void 0:B.length)===0},AU=r=>Fo.metaKeyPressed(r)&&r.keyCode===86||r.shiftKey&&r.keyCode===45,PR=(r,g,B,H,re)=>{let be=xU(B);const Re=Uy(g,$8())||yU(B),Ke=!Re&&xte(be),ct=OR(be);(xR(be)||!be.length||Ke&&!ct)&&(H=!0),(H||ct)&&(Uy(g,"text/plain")&&Ke?be=g["text/plain"]:be=kte(be)),!xR(be)&&(H?TR(r,be,re):Rk(r,be,Re,re))},zte=(r,g,B)=>{let H;const re=()=>g.getLastRng()||r.selection.getRng();r.on("keydown",be=>{AU(be)&&!be.isDefaultPrevented()&&(H=be.shiftKey&&be.keyCode===86)}),r.on("paste",be=>{if(be.isDefaultPrevented()||Bte(be))return;const Re=B.get()==="text"||H;H=!1;const Ke=CR(be.clipboardData);!AR(Ke)&&ER(r,be,re())||(Uy(Ke,"text/html")?(be.preventDefault(),PR(r,Ke,Ke["text/html"],Re,!0)):Uy(Ke,"text/plain")&&Uy(Ke,"text/uri-list")?(be.preventDefault(),PR(r,Ke,Ke["text/plain"],Re,!0)):(g.create(),Tg.setEditorTimeout(r,()=>{const ct=g.getHtml();g.remove(),PR(r,Ke,ct,Re,!1)},0)))})},Fte=r=>{const g=re=>xr(re,"webkit-fake-url"),B=re=>xr(re,"data:"),H=re=>{var be;return((be=re.data)===null||be===void 0?void 0:be.paste)===!0};r.parser.addNodeFilter("img",(re,be,Re)=>{if(!Fm(r)&&H(Re))for(const Ke of re){const ct=Ke.attr("src");v(ct)&&!Ke.attr("data-mce-object")&&ct!==fr.transparentSrc&&(g(ct)||!W0(r)&&B(ct))&&Ke.remove()}})},Nte=(r,g,B)=>{zte(r,g,B),Fte(r)},$te=(r,g)=>{g.get()==="text"?(g.set("html"),I3(r,!1)):(g.set("text"),I3(r,!0)),r.focus()},U8=(r,g)=>{r.addCommand("mceTogglePlainTextPaste",()=>{$te(r,g)}),r.addCommand("mceInsertClipboardContent",(B,H)=>{H.html&&Rk(r,H.html,H.internal,!1),H.text&&TR(r,H.text,!1)})},Vte=(r,g,B)=>{if(r)try{return r.clearData(),r.setData("text/html",g),r.setData("text/plain",B),r.setData($8(),g),!0}catch{return!1}else return!1},RR=(r,g,B,H)=>{Vte(r.clipboardData,g.html,g.text)?(r.preventDefault(),H()):B(g.html,H)},MU=r=>(g,B)=>{const{dom:H,selection:re}=r,be=H.create("div",{contenteditable:"false","data-mce-bogus":"all"}),Re=H.create("div",{contenteditable:"true"},g);H.setStyles(be,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),be.appendChild(Re),H.add(r.getBody(),be);const Ke=re.getRng();Re.focus();const ct=H.createRng();ct.selectNodeContents(Re),re.setRng(ct),Tg.setEditorTimeout(r,()=>{re.setRng(Ke),H.remove(be),B()},0)},EU=r=>({html:yte(r.selection.getContent({contextual:!0})),text:r.selection.getContent({format:"text"})}),PU=r=>!!r.dom.getParent(r.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",r.getBody()),LR=r=>!r.selection.isCollapsed()||PU(r),Ute=r=>g=>{!g.isDefaultPrevented()&&LR(r)&&r.selection.isEditable()&&RR(g,EU(r),MU(r),()=>{if(fr.browser.isChromium()||fr.browser.isFirefox()){const B=r.selection.getRng();Tg.setEditorTimeout(r,()=>{r.selection.setRng(B),r.execCommand("Delete")},0)}else r.execCommand("Delete")})},jte=r=>g=>{!g.isDefaultPrevented()&&LR(r)&&RR(g,EU(r),MU(r),k)},Qte=r=>{r.on("cut",Ute(r)),r.on("copy",jte(r))},RU=(r,g)=>{var B,H;return To.getCaretRangeFromPoint((B=g.clientX)!==null&&B!==void 0?B:0,(H=g.clientY)!==null&&H!==void 0?H:0,r.getDoc())},Hte=r=>{const g=r["text/plain"];return g?g.indexOf("file://")===0:!1},IR=(r,g)=>{r.focus(),g&&r.selection.setRng(g)},Zte=r=>de(r.files,g=>/^image\//.test(g.type)),qte=(r,g,B,H)=>{const re=r.getParent(B,Re=>xm(g,Re));if(!x(r.getParent(B,"summary")))return!0;if(re&&_t(H,"text/html")){const Re=new DOMParser().parseFromString(H["text/html"],"text/html").body;return!x(Re.querySelector(re.nodeName.toLowerCase()))}else return!1},Wte=r=>{r.on("input",g=>{const B=H=>x(H.querySelector("summary"));if(g.inputType==="deleteByDrag"){const H=Te(r.dom.select("details"),B);ye(H,re=>{On(re.firstChild)&&re.firstChild.remove();const be=r.dom.create("summary");be.appendChild($1().dom),re.prepend(be)})}})},Yte=(r,g)=>{n2(r)&&r.on("dragend dragover draggesture dragdrop drop drag",B=>{B.preventDefault(),B.stopPropagation()}),Fm(r)||r.on("drop",B=>{const H=B.dataTransfer;H&&Zte(H)&&B.preventDefault()}),r.on("drop",B=>{if(B.isDefaultPrevented())return;const H=RU(r,B);if(T(H))return;const re=CR(B.dataTransfer),be=Uy(re,$8());if((!AR(re)||Hte(re))&&ER(r,B,H))return;const Re=re[$8()],Ke=Re||re["text/html"]||re["text/plain"],ct=qte(r.dom,r.schema,H.startContainer,re),kt=g.get();kt&&!ct||Ke&&(B.preventDefault(),Tg.setEditorTimeout(r,()=>{r.undoManager.transact(()=>{(Re||kt&&ct)&&r.execCommand("Delete"),IR(r,H);const Wt=xU(Ke);re["text/html"]?Rk(r,Wt,be,!0):TR(r,Wt,!0)})}))}),r.on("dragstart",B=>{g.set(!0)}),r.on("dragover dragend",B=>{Fm(r)&&!g.get()&&(B.preventDefault(),IR(r,RU(r,B))),B.type==="dragend"&&g.set(!1)}),Wte(r)},Xte=r=>{const g=re=>be=>{re(r,be)},B=q0(r);C(B)&&r.on("PastePreProcess",g(B));const H=rv(r);C(H)&&r.on("PastePostProcess",g(H))},Gte=(r,g)=>{r.on("PastePreProcess",B=>{B.content=g(r,B.content,B.internal)})},Kte=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,LU=r=>mo.trim(r).replace(Kte,Am).toLowerCase(),IU=(r,g,B)=>{const H=iv(r);if(B||H==="all"||!t3(r))return g;const re=H?H.split(/[, ]/):[];if(re&&H!=="none"){const be=r.dom,Re=r.selection.getNode();g=g.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(Ke,ct,kt,Wt)=>{const Jt=be.parseStyle(be.decode(kt)),ln={};for(let Vn=0;Vn]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return g=g.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(be,Re,Ke,ct)=>Re+' style="'+Ke+'"'+ct),g},DU=r=>{(fr.browser.isChromium()||fr.browser.isSafari())&&Gte(r,IU)},Jte=r=>{const g=mr(!1),B=mr(aw(r)?"text":"html"),H=_R(r);DU(r),U8(r,B),Xte(r),r.addQueryStateHandler("mceTogglePlainTextPaste",()=>B.get()==="text"),r.on("PreInit",()=>{Qte(r),Yte(r,g),Nte(r,H,B)})},ene=r=>{r.on("click",g=>{r.dom.getParent(g.target,"details")&&g.preventDefault()})},tne=r=>{r.parser.addNodeFilter("details",g=>{const B=r3(r);ye(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})}),r.serializer.addNodeFilter("details",g=>{const B=o3(r);ye(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})})},nne=r=>{ene(r),tne(r)},rne=On,BU=Nt,one=r=>rr(r.dom),j8=r=>Sn(r.dom),DR=r=>g=>Fa(sr.fromDom(r),g),ine=(r,g,B)=>Ya(sr.fromDom(r),H=>j8(H)||B.isBlock(la(H)),DR(g)).getOr(sr.fromDom(g)).dom,BR=(r,g)=>Ya(sr.fromDom(r),one,DR(g)),zR=(r,g,B)=>{const H=new kc(r,g),re=B?H.next.bind(H):H.prev.bind(H);let be=r;for(let Re=B?r:re();Re&&!rne(Re);Re=re())ih(Re)&&(be=Re);return be},FR=(r,g,B)=>{const re=qr.fromRangeStart(r).getNode(),be=ine(re,g,B),Re=zR(re,be,!1),Ke=zR(re,be,!0),ct=document.createRange();return BR(Re,be).fold(()=>{BU(Re)?ct.setStart(Re,0):ct.setStartBefore(Re)},kt=>ct.setStartBefore(kt.dom)),BR(Ke,be).fold(()=>{BU(Ke)?ct.setEnd(Ke,Ke.data.length):ct.setEndAfter(Ke)},kt=>ct.setEndAfter(kt.dom)),ct},ane=r=>{const g=FR(r.selection.getRng(),r.getBody(),r.schema);r.selection.setRng(Wl(g))},zU=r=>{r.on("mousedown",g=>{g.detail>=3&&(g.preventDefault(),ane(r))})};var A4;(function(r){r.Before="before",r.After="after"})(A4||(A4={}));const FU=(r,g)=>Math.abs(r.left-g),sne=(r,g)=>Math.abs(r.right-g),NU=(r,g)=>r>=g.top&&r<=g.bottom,lne=(r,g)=>r.topg.top,cne=(r,g)=>{const B=SS(r,g)/Math.min(r.height,g.height);return lne(r,g)&&B>.5},une=(r,g)=>{const B=Te(r,H=>NU(g,H));return Dl(B).fold(()=>[[],r],H=>{const{pass:re,fail:be}=Se(r,Re=>cne(Re,H));return[re,be]})},Lk=(r,g)=>({node:r.node,position:FU(r,g)g>r.left&&g{const re=Jt=>ih(Jt.node)?Y.some(Jt):ne(Jt.node)?NR(Ee(Jt.node.childNodes),g,B,!1):Y.none(),be=(Jt,ln,kn)=>re(ln).filter(Vn=>Math.abs(kn(Jt,g,B)-kn(Vn,g,B))<2&&Nt(Vn.node)),Re=(Jt,ln)=>{const kn=Ue(Jt,(Vn,Rn)=>ln(Vn,g,B)-ln(Rn,g,B));return Ne(kn,re).map(Vn=>H&&!Nt(Vn.node)&&kn.length>1?be(Vn,kn[1],ln).getOr(Vn):Vn)},[Ke,ct]=une(KP(r),B),{pass:kt,fail:Wt}=Se(ct,Jt=>Jt.topRe(Wt,kl)).orThunk(()=>Re(kt,kl))},$U=(r,g,B,H)=>{const re=(be,Re)=>{const Ke=kt=>ne(kt)&&kt.classList.contains("mce-drag-container"),ct=Te(be.dom.childNodes,X(Ke));return Re.fold(()=>NR(ct,B,H,!0),kt=>{const Wt=Te(ct,Jt=>Jt!==kt.dom);return NR(Wt,B,H,!0)}).orThunk(()=>(Fa(be,r)?Y.none():Lp(be)).bind(Wt=>re(Wt,Y.some(be))))};return re(g,Y.none())},dne=(r,g,B)=>{const H=sr.fromDom(r),re=Bc(H),Re=sr.fromPoint(re,g,B).filter(Ke=>Qu(H,Ke)).getOr(H);return $U(H,Re,g,B)},VU=(r,g,B)=>dne(r,g,B).filter(H=>sv(H.node)).map(H=>Lk(H,g)),UU=r=>{var g,B;const H=r.getBoundingClientRect(),re=r.ownerDocument,be=re.documentElement,Re=re.defaultView;return{top:H.top+((g=Re==null?void 0:Re.scrollY)!==null&&g!==void 0?g:0)-be.clientTop,left:H.left+((B=Re==null?void 0:Re.scrollX)!==null&&B!==void 0?B:0)-be.clientLeft}},hne=r=>r.inline?UU(r.getBody()):{left:0,top:0},pne=r=>{const g=r.getBody();return r.inline?{left:g.scrollLeft,top:g.scrollTop}:{left:0,top:0}},Q8=r=>{const g=r.getBody(),B=r.getDoc().documentElement,H={left:g.scrollLeft,top:g.scrollTop},re={left:g.scrollLeft||B.scrollLeft,top:g.scrollTop||B.scrollTop};return r.inline?H:re},jU=(r,g)=>{if(g.target.ownerDocument!==r.getDoc()){const B=UU(r.getContentAreaContainer()),H=Q8(r);return{left:g.pageX-B.left+H.left,top:g.pageY-B.top+H.top}}return{left:g.pageX,top:g.pageY}},QU=(r,g,B)=>({pageX:B.left-r.left+g.left,pageY:B.top-r.top+g.top}),mne=(r,g)=>QU(hne(r),pne(r),jU(r,g)),HU=r=>({target:r,srcElement:r}),gne=(r,g,B,H)=>({...g,dataTransfer:H,type:r,...HU(B)}),Cfe=(r,g,B)=>{const H=te("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:r,composedPath:H,initEvent:H,preventDefault:k,stopImmediatePropagation:k,stopPropagation:k,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:H,initMouseEvent:H,getModifierState:H,dataTransfer:B,...HU(g)}},vne=(r,g)=>{const B=gte(r);return g==="dragstart"?(fU(B),hU(B)):g==="drop"?(cte(B),mR(B)):(ute(B),pU(B)),B},ZU=(r,g,B,H)=>{const re=vne(B,r);return M(H)?Cfe(r,g,re):gne(r,H,g,re)},M4=32,H8=100,Z8=8,q8=16,$R=rr,yne=X_($R,Sn),VR=(r,g,B)=>$R(B)&&B!==g&&r.isEditable(B.parentElement),qU=(r,g,B)=>T(g)||g===B||r.dom.isChildOf(g,B)?!1:r.dom.isEditable(g),bne=(r,g,B,H)=>{const re=r.dom,be=g.cloneNode(!0);re.setStyles(be,{width:B,height:H}),re.setAttrib(be,"data-mce-selected",null);const Re=re.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return re.setStyles(Re,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:B,height:H}),re.setStyles(be,{margin:0,boxSizing:"border-box"}),Re.appendChild(be),Re},xne=(r,g)=>{r.parentNode!==g&&g.appendChild(r)},Ik=(r,g)=>B=>()=>{const H=r==="left"?B.scrollX:B.scrollY;B.scroll({[r]:H+g,behavior:"smooth"})},WU=Ik("left",-M4),_ne=Ik("left",M4),YU=Ik("top",-M4),XU=Ik("top",M4),wne=(r,g,B,H,re,be,Re,Ke,ct,kt,Wt,Jt)=>{let ln=0,kn=0;r.style.left=g.pageX+"px",r.style.top=g.pageY+"px",g.pageX+B>re&&(ln=g.pageX+B-re),g.pageY+H>be&&(kn=g.pageY+H-be),r.style.width=B-ln+"px",r.style.height=H-kn+"px";const Vn=ct.clientHeight,Rn=ct.clientWidth,qn=Re+ct.getBoundingClientRect().top,pr=Ke+ct.getBoundingClientRect().left;Wt.on(Tr=>{Tr.intervalId.clear(),Tr.dragging&&Jt&&(Re+Z8>=Vn?Tr.intervalId.set(XU(kt)):Re-Z8<=0?Tr.intervalId.set(YU(kt)):Ke+Z8>=Rn?Tr.intervalId.set(_ne(kt)):Ke-Z8<=0?Tr.intervalId.set(WU(kt)):qn+q8>=window.innerHeight?Tr.intervalId.set(XU(window)):qn-q8<=0?Tr.intervalId.set(YU(window)):pr+q8>=window.innerWidth?Tr.intervalId.set(_ne(window)):pr-q8<=0&&Tr.intervalId.set(WU(window)))})},UR=r=>{r&&r.parentNode&&r.parentNode.removeChild(r)},One=(r,g)=>{const B=r.getParent(g.parentNode,r.isBlock);UR(g),B&&B!==r.getRoot()&&r.isEmpty(B)&&rh(sr.fromDom(B))},GU=r=>r.button===0,Sne=(r,g)=>({pageX:g.pageX-r.relX,pageY:g.pageY+5}),kne=(r,g)=>B=>{if(GU(B)){const H=De(g.dom.getParents(B.target),yne).getOr(null);if(E(H)&&VR(g.dom,g.getBody(),H)){const re=g.dom.getPos(H),be=g.getBody(),Re=g.getDoc().documentElement;r.set({element:H,dataTransfer:gR(),dragging:!1,screenX:B.screenX,screenY:B.screenY,maxX:(g.inline?be.scrollWidth:Re.offsetWidth)-2,maxY:(g.inline?be.scrollHeight:Re.offsetHeight)-2,relX:B.pageX-re.x,relY:B.pageY-re.y,width:H.offsetWidth,height:H.offsetHeight,ghost:bne(g,H,H.offsetWidth,H.offsetHeight),intervalId:Pl(H8)})}}},Tne=(r,g,B)=>{r._selectionOverrides.hideFakeCaret(),VU(r.getBody(),g,B).fold(()=>r.selection.placeCaretAt(g,B),H=>{const re=r._selectionOverrides.showCaret(1,H.node,H.position===A4.Before,!1);re?r.selection.setRng(re):r.selection.placeCaretAt(g,B)})},Dk=(r,g,B,H,re)=>{g==="dragstart"&&gU(H,r.dom.getOuterHTML(B));const be=ZU(g,B,H,re);return r.dispatch(g,be)},Cne=(r,g)=>{const B=hg((re,be)=>Tne(g,re,be),0);g.on("remove",B.cancel);const H=r;return re=>r.on(be=>{const Re=Math.max(Math.abs(re.screenX-be.screenX),Math.abs(re.screenY-be.screenY));if(!be.dragging&&Re>10){const Ke=Dk(g,"dragstart",be.element,be.dataTransfer,re);if(E(Ke.dataTransfer)&&(be.dataTransfer=Ke.dataTransfer),Ke.isDefaultPrevented())return;be.dragging=!0,g.focus()}if(be.dragging){const Ke=re.currentTarget===g.getDoc().documentElement,ct=Sne(be,mne(g,re));xne(be.ghost,g.getBody()),wne(be.ghost,ct,be.width,be.height,be.maxX,be.maxY,re.clientY,re.clientX,g.getContentAreaContainer(),g.getWin(),H,Ke),B.throttle(re.clientX,re.clientY)}})},KU=r=>{const g=r.getSel();if(E(g)){const H=g.getRangeAt(0).startContainer;return Nt(H)?H.parentNode:H}else return null},Afe=(r,g)=>B=>{r.on(H=>{var re;if(H.intervalId.clear(),H.dragging){if(qU(g,KU(g.selection),H.element)){const be=(re=g.getDoc().elementFromPoint(B.clientX,B.clientY))!==null&&re!==void 0?re:g.getBody();Dk(g,"drop",be,H.dataTransfer,B).isDefaultPrevented()||g.undoManager.transact(()=>{One(g.dom,H.element),vte(H.dataTransfer).each(Ke=>g.insertContent(Ke)),g._selectionOverrides.hideFakeCaret()})}Dk(g,"dragend",g.getBody(),H.dataTransfer,B)}}),tj(r)},JU=(r,g,B)=>{r.on(H=>{H.intervalId.clear(),H.dragging&&B.fold(()=>Dk(g,"dragend",H.element,H.dataTransfer),re=>Dk(g,"dragend",H.element,H.dataTransfer,re))}),tj(r)},ej=(r,g)=>B=>JU(r,g,Y.some(B)),tj=r=>{r.on(g=>{g.intervalId.clear(),UR(g.ghost)}),r.clear()},jR=r=>{const g=Ys(),B=Nl.DOM,H=document,re=kne(g,r),be=Cne(g,r),Re=Afe(g,r),Ke=ej(g,r);r.on("mousedown",re),r.on("mousemove",be),r.on("mouseup",Re),B.bind(H,"mousemove",be),B.bind(H,"mouseup",Ke),r.on("remove",()=>{B.unbind(H,"mousemove",be),B.unbind(H,"mouseup",Ke)}),r.on("keydown",ct=>{ct.keyCode===Fo.ESC&&JU(g,r,Y.none())})},Ane=r=>{const g=re=>{if(!re.isDefaultPrevented()){const be=re.dataTransfer;be&&(ce(be.types,"Files")||be.files.length>0)&&(re.preventDefault(),re.type==="drop"&&LC(r,"Dropped file type is not supported"))}},B=re=>{x6(r,re.target)&&g(re)},H=()=>{const re=Nl.DOM,be=r.dom,Re=document,Ke=r.inline?r.getBody():r.getDoc(),ct=["drop","dragover"];ye(ct,kt=>{re.bind(Re,kt,B),be.bind(Ke,kt,g)}),r.on("remove",()=>{ye(ct,kt=>{re.unbind(Re,kt,B),be.unbind(Ke,kt,g)})})};r.on("init",()=>{Tg.setEditorTimeout(r,H,0)})},Mne=r=>{jR(r),my(r)&&Ane(r)},Ene=r=>{const g=hg(()=>{if(!r.removed&&r.getBody().contains(document.activeElement)){const B=r.selection.getRng();if(B.collapsed){const H=UC(r,B,!1);r.selection.setRng(H)}}},0);r.on("focus",()=>{g.throttle()}),r.on("blur",()=>{g.cancel()})},nj=r=>{r.on("init",()=>{r.on("focusin",g=>{const B=g.target;if(Zr(B)){const H=Kb(r.getBody(),B),re=rr(H)?H:B;r.selection.getNode()!==re&&d4(r,re).each(be=>r.selection.setRng(be))}})})},V2=rr,QR=(r,g)=>Kb(r.getBody(),g),rj=r=>{const g=r.selection,B=r.dom,H=r.getBody(),re=RT(r,H,B.isBlock,()=>Mw(r)),be="sel-"+B.uniqueId(),Re="data-mce-selected";let Ke;const ct=di=>E(di)&&B.hasClass(di,"mce-offscreen-selection"),kt=di=>di!==H&&(V2(di)||Zr(di))&&B.isChildOf(di,H)&&B.isEditable(di.parentNode),Wt=di=>{di&&g.setRng(di)},Jt=(di,lo,eo,xo=!0)=>r.dispatch("ShowCaret",{target:lo,direction:di,before:eo}).isDefaultPrevented()?null:(xo&&g.scrollIntoView(lo,di===-1),re.show(eo,lo)),ln=di=>{di.hasAttribute("data-mce-caret")&&(Ra(di),g.scrollIntoView(di))},kn=()=>{r.on("click",lo=>{B.isEditable(lo.target)||(lo.preventDefault(),r.focus())}),r.on("blur NewBlock",Ur),r.on("ResizeWindow FullscreenStateChanged",re.reposition),r.on("tap",lo=>{const eo=lo.target,xo=QR(r,eo);V2(xo)?(lo.preventDefault(),d4(r,xo).each(wr)):kt(eo)&&d4(r,eo).each(wr)},!0),r.on("mousedown",lo=>{const eo=lo.target;if(eo!==H&&eo.nodeName!=="HTML"&&!B.isChildOf(eo,H)||!cG(r,lo.clientX,lo.clientY))return;Ur(),jo();const xo=QR(r,eo);V2(xo)?(lo.preventDefault(),d4(r,xo).each(wr)):VU(H,lo.clientX,lo.clientY).each(bi=>{lo.preventDefault();const Bi=Jt(1,bi.node,bi.position===A4.Before,!1);Wt(Bi),ge(xo)?xo.focus():r.getBody().focus()})}),r.on("keypress",lo=>{Fo.modifierPressed(lo)||V2(g.getNode())&&lo.preventDefault()}),r.on("GetSelectionRange",lo=>{let eo=lo.range;if(Ke){if(!Ke.parentNode){Ke=null;return}eo=eo.cloneRange(),eo.selectNode(Ke),lo.range=eo}}),r.on("SetSelectionRange",lo=>{lo.range=qn(lo.range);const eo=wr(lo.range,lo.forward);eo&&(lo.range=eo)});const di=lo=>ne(lo)&&lo.id==="mcepastebin";r.on("AfterSetSelectionRange",lo=>{const eo=lo.range,xo=eo.startContainer.parentElement;!Rn(eo)&&!di(xo)&&jo(),ct(xo)||Ur()}),Mne(r),Ene(r),nj(r)},Vn=di=>Ch(di)||U0(di)||jp(di),Rn=di=>Vn(di.startContainer)||Vn(di.endContainer),qn=di=>{const lo=r.schema.getVoidElements(),eo=B.createRng(),xo=di.startContainer,bi=di.startOffset,Bi=di.endContainer,$a=di.endOffset;return _t(lo,xo.nodeName.toLowerCase())?bi===0?eo.setStartBefore(xo):eo.setStartAfter(xo):eo.setStart(xo,bi),_t(lo,Bi.nodeName.toLowerCase())?$a===0?eo.setEndBefore(Bi):eo.setEndAfter(Bi):eo.setEnd(Bi,$a),eo},pr=(di,lo)=>{const eo=sr.fromDom(r.getBody()),xo=r.getDoc(),bi=xi(eo,"#"+be).getOrThunk(()=>{const Ia=sr.fromHtml('
    ',xo);return Es(Ia,"id",be),Ps(eo,Ia),Ia}),Bi=B.createRng();vu(bi),gu(bi,[sr.fromText(Ea,xo),sr.fromDom(lo),sr.fromText(Ea,xo)]),Bi.setStart(bi.dom.firstChild,1),Bi.setEnd(bi.dom.lastChild,0),Hi(bi,{top:B.getPos(di,r.getBody()).y+"px"}),F3(bi);const $a=g.getSel();return $a&&($a.removeAllRanges(),$a.addRange(Bi)),Bi},Tr=di=>{const lo=di.cloneNode(!0),eo=r.dispatch("ObjectSelected",{target:di,targetClone:lo});if(eo.isDefaultPrevented())return null;const xo=pr(di,eo.targetClone),bi=sr.fromDom(di);return ye(Zl(sr.fromDom(r.getBody()),`*[${Re}]`),Bi=>{Fa(bi,Bi)||gc(Bi,Re)}),B.getAttrib(di,Re)||di.setAttribute(Re,"1"),Ke=di,jo(),xo},wr=(di,lo)=>{if(!di)return null;if(di.collapsed){if(!Rn(di)){const Bi=lo?1:-1,$a=Fb(Bi,H,di),Ia=$a.getNode(!lo);if(E(Ia)){if(sv(Ia))return Jt(Bi,Ia,lo?!$a.isAtEnd():!1,!1);if(oh(Ia)&&rr(Ia.nextSibling)){const sl=B.createRng();return sl.setStart(Ia,0),sl.setEnd(Ia,0),sl}}const Us=$a.getNode(lo);if(E(Us)){if(sv(Us))return Jt(Bi,Us,lo?!1:!$a.isAtEnd(),!1);if(oh(Us)&&rr(Us.previousSibling)){const sl=B.createRng();return sl.setStart(Us,1),sl.setEnd(Us,1),sl}}}return null}let eo=di.startContainer,xo=di.startOffset;const bi=di.endOffset;if(Nt(eo)&&xo===0&&V2(eo.parentNode)&&(eo=eo.parentNode,xo=B.nodeIndex(eo),eo=eo.parentNode),!ne(eo))return null;if(bi===xo+1&&eo===di.endContainer){const Bi=eo.childNodes[xo];if(kt(Bi))return Tr(Bi)}return null},Ur=()=>{Ke&&Ke.removeAttribute(Re),xi(sr.fromDom(r.getBody()),"#"+be).each(ja),Ke=null},wo=()=>{re.destroy(),Ke=null},jo=()=>{re.hide()};return Iy(r)||kn(),{showCaret:Jt,showBlockCaretContainer:ln,hideFakeCaret:jo,destroy:wo}},Pne=(r,g)=>{let B=g;for(let H=r.previousSibling;Nt(H);H=H.previousSibling)B+=H.data.length;return B},oj=(r,g,B,H,re)=>{if(Nt(B)&&(H<0||H>B.data.length))return[];const be=re&&Nt(B)?[Pne(B,H)]:[H];let Re=B;for(;Re!==g&&Re.parentNode;)be.push(r.nodeIndex(Re,re)),Re=Re.parentNode;return Re===g?be.reverse():[]},W8=(r,g,B,H,re,be,Re=!1)=>{const Ke=oj(r,g,B,H,Re),ct=oj(r,g,re,be,Re);return{start:Ke,end:ct}},ij=(r,g)=>{const B=g.slice(),H=B.pop();return L(H)?Ie(B,(be,Re)=>be.bind(Ke=>Y.from(Ke.childNodes[Re])),Y.some(r)).bind(be=>Nt(be)&&(H<0||H>be.data.length)?Y.none():Y.some({node:be,offset:H})):Y.none()},aj=(r,g)=>ij(r,g.start).bind(({node:B,offset:H})=>ij(r,g.end).map(({node:re,offset:be})=>{const Re=document.createRange();return Re.setStart(B,H),Re.setEnd(re,be),Re})),Rne=(r,g,B,H=!1)=>W8(r,g,B.startContainer,B.startOffset,B.endContainer,B.endOffset,H),U2=(r,g,B)=>{if(g&&r.isEmpty(g)&&!B(g)){const H=g.parentNode;r.remove(g,Nt(g.firstChild)&&kf(g.firstChild.data)),U2(r,H,B)}},Y8=(r,g,B,H=!0)=>{const re=g.startContainer.parentNode,be=g.endContainer.parentNode;g.deleteContents(),H&&!B(g.startContainer)&&(Nt(g.startContainer)&&g.startContainer.data.length===0&&r.remove(g.startContainer),Nt(g.endContainer)&&g.endContainer.data.length===0&&r.remove(g.endContainer),U2(r,re,B),re!==be&&U2(r,be,B))},X8=(r,g)=>Y.from(r.dom.getParent(g.startContainer,r.dom.isBlock)),HR=(r,g,B)=>{const H=r.dynamicPatternsLookup({text:B,block:g});return{...r,blockPatterns:Vc(H).concat(r.blockPatterns),inlinePatterns:ml(H).concat(r.inlinePatterns)}},ZR=(r,g,B,H)=>{const re=r.createRng();return re.setStart(g,0),re.setEnd(B,H),re.toString()},sj=(r,g)=>r.create("span",{"data-mce-type":"bookmark",id:g}),G8=(r,g)=>{const B=r.createRng();return B.setStartAfter(g.start),B.setEndBefore(g.end),B},qR=(r,g,B)=>{const H=aj(r.getRoot(),B).getOrDie("Unable to resolve path range"),re=H.startContainer,be=H.endContainer,Re=H.endOffset===0?be:be.splitText(H.endOffset),Ke=H.startOffset===0?re:re.splitText(H.startOffset),ct=Ke.parentNode,kt=Re.parentNode;return{prefix:g,end:kt.insertBefore(sj(r,g+"-end"),Re),start:ct.insertBefore(sj(r,g+"-start"),Ke)}},WR=(r,g,B)=>{U2(r,r.get(g.prefix+"-end"),B),U2(r,r.get(g.prefix+"-start"),B)},Bk=r=>r.start.length===0,YR=r=>(g,B)=>{const re=g.data.substring(0,B),be=re.lastIndexOf(r.charAt(r.length-1)),Re=re.lastIndexOf(r);return Re!==-1?Re+r.length:be!==-1?be+1:-1},lj=(r,g,B,H)=>{const re=g.start;return A9(r,H.container,H.offset,YR(re),B).bind(Re=>{var Ke,ct;const kt=(ct=(Ke=B.textContent)===null||Ke===void 0?void 0:Ke.indexOf(re))!==null&&ct!==void 0?ct:-1;if(kt!==-1&&Re.offset>=kt+re.length){const Jt=r.createRng();return Jt.setStart(Re.container,Re.offset-re.length),Jt.setEnd(Re.container,Re.offset),Y.some(Jt)}else{const Jt=Re.offset-re.length;return C9(Re.container,Jt,B).map(ln=>{const kn=r.createRng();return kn.setStart(ln.container,ln.offset),kn.setEnd(Re.container,Re.offset),kn}).filter(ln=>ln.toString()===re).orThunk(()=>lj(r,g,B,Sv(Re.container,0)))}})},XR=(r,g,B,H,re,be=!1)=>{if(g.start.length===0&&!be){const Re=r.createRng();return Re.setStart(B,H),Re.setEnd(B,H),Y.some(Re)}return T9(B,H,re).bind(Re=>lj(r,g,re,Re).bind(ct=>{var kt;if(be){if(ct.endContainer===Re.container&&ct.endOffset===Re.offset)return Y.none();if(Re.offset===0&&((kt=ct.endContainer.textContent)===null||kt===void 0?void 0:kt.length)===ct.endOffset)return Y.none()}return Y.some(ct)}))},Lne=(r,g,B,H)=>{const re=r.dom,be=re.getRoot(),Re=B.pattern,Ke=B.position.container,ct=B.position.offset;return C9(Ke,ct-B.pattern.end.length,g).bind(kt=>{const Wt=W8(re,be,kt.container,kt.offset,Ke,ct,H);if(Bk(Re))return Y.some({matches:[{pattern:Re,startRng:Wt,endRng:Wt}],position:kt});{const Jt=K8(r,B.remainingPatterns,kt.container,kt.offset,g,H),ln=Jt.getOr({matches:[],position:kt}),kn=ln.position;return XR(re,Re,kn.container,kn.offset,g,Jt.isNone()).map(Rn=>{const qn=Rne(re,be,Rn,H);return{matches:ln.matches.concat([{pattern:Re,startRng:qn,endRng:Wt}]),position:Sv(Rn.startContainer,Rn.startOffset)}})}})},K8=(r,g,B,H,re,be)=>{const Re=r.dom;return T9(B,H,Re.getRoot()).bind(Ke=>{const ct=ZR(Re,re,B,H);for(let kt=0;kt0)return K8(r,g,B,H-1,re,be);if(ln.isSome())return ln}return Y.none()})},GR=(r,g,B)=>{r.selection.setRng(B),g.type==="inline-format"?ye(g.format,H=>{r.formatter.apply(H)}):r.execCommand(g.cmd,!1,g.value)},Ine=(r,g,B,H)=>{const re=G8(r.dom,B);Y8(r.dom,re,H),GR(r,g,re)},Dne=(r,g,B,H,re)=>{const be=r.dom,Re=G8(be,H),Ke=G8(be,B);Y8(be,Ke,re),Y8(be,Re,re);const ct={prefix:B.prefix,start:B.end,end:H.start},kt=G8(be,ct);GR(r,g,kt)},Bne=(r,g)=>{const B=D1("mce_textpattern"),H=Pe(g,(re,be)=>{const Re=qR(r,B+`_end${re.length}`,be.endRng);return re.concat([{...be,endMarker:Re}])},[]);return Pe(H,(re,be)=>{const Re=H.length-re.length-1,Ke=Bk(be.pattern)?be.endMarker:qR(r,B+`_start${Re}`,be.startRng);return re.concat([{...be,startMarker:Ke}])},[])},zne=r=>Ue(r,(g,B)=>B.end.length-g.end.length),Fne=(r,g)=>{const B=Oe(r,H=>de(g,re=>H.pattern.start===re.pattern.start&&H.pattern.end===re.pattern.end));return r.length===g.length?B?r:g:r.length>g.length?r:g},cj=(r,g,B,H,re,be)=>{const Re=K8(r,re.inlinePatterns,B,H,g,be).fold(()=>[],ct=>ct.matches),Ke=K8(r,zne(re.inlinePatterns),B,H,g,be).fold(()=>[],ct=>ct.matches);return Fne(Re,Ke)},uj=(r,g)=>{if(g.length===0)return;const B=r.dom,H=r.selection.getBookmark(),re=Bne(B,g);ye(re,be=>{const Re=B.getParent(be.startMarker.start,B.isBlock),Ke=ct=>ct===Re;Bk(be.pattern)?Ine(r,be.pattern,be.endMarker,Ke):Dne(r,be.pattern,be.startMarker,be.endMarker,Ke),WR(B,be.endMarker,Ke),WR(B,be.startMarker,Ke)}),r.selection.moveToBookmark(H)},KR=(r,g,B)=>OJ(g,0,g).map(H=>{const re=H.container;return d8(re,B.start.length,g).each(be=>{const Re=r.createRng();Re.setStart(re,0),Re.setEnd(be.container,be.offset),Y8(r,Re,Ke=>Ke===g)}),re}),fj=r=>(g,B)=>{const H=g.dom,re=B.pattern,be=aj(H.getRoot(),B.range).getOrDie("Unable to resolve path range"),Re=(Ke,ct)=>{const kt=ct.get(Ke);return A(kt)&&Xe(kt).exists(Wt=>_t(Wt,"block"))};return X8(g,be).each(Ke=>{re.type==="block-format"?Re(re.format,g.formatter)&&g.undoManager.transact(()=>{r(g.dom,Ke,re),g.formatter.apply(re.format)}):re.type==="block-command"&&g.undoManager.transact(()=>{r(g.dom,Ke,re),g.execCommand(re.cmd,!1,re.value)})}),!0},JR=r=>Ue(r,(g,B)=>B.start.length-g.start.length),dj=r=>(g,B)=>{const H=JR(g),re=B.replace(Ea," ");return De(H,be=>r(be,B,re))},hj=(r,g)=>(B,H,re,be,Re)=>{var Ke;Re===void 0&&(Re=(Ke=H.textContent)!==null&&Ke!==void 0?Ke:"");const ct=B.dom,kt=dc(B);return ct.is(H,kt)?r(re.blockPatterns,Re).map(Wt=>g&&mo.trim(Re).length===Wt.start.length?[]:[{pattern:Wt,range:W8(ct,ct.getRoot(),H,0,H,0,be)}]).getOr([]):[]},Nne=r=>/^\s[^\s]/.test(r),$ne=fj((r,g,B)=>{KR(r,g,B).each(H=>{const re=sr.fromDom(H),be=ry(re);Nne(be)&&Vx(re,be.slice(1))})}),Vne=dj((r,g,B)=>g.indexOf(r.start)===0||B.indexOf(r.start)===0),J8=hj(Vne,!0),Une=(r,g)=>{const B=r.selection.getRng();return X8(r,B).map(H=>{var re;const be=Math.max(0,B.startOffset),Re=HR(g,H,(re=H.textContent)!==null&&re!==void 0?re:""),Ke=cj(r,H,B.startContainer,be,Re,!0),ct=J8(r,H,Re,!0);return{inlineMatches:Ke,blockMatches:ct}}).filter(({inlineMatches:H,blockMatches:re})=>re.length>0||H.length>0)},jne=(r,g)=>{if(g.length===0)return;const B=r.selection.getBookmark();ye(g,H=>$ne(r,H)),r.selection.moveToBookmark(B)},Qne=fj(KR),Hne=dj((r,g,B)=>g===r.start||B===r.start),Zne=hj(Hne,!1),qne=(r,g)=>{const B=r.selection.getRng();return X8(r,B).map(H=>{const re=Math.max(0,B.startOffset),be=ZR(r.dom,H,B.startContainer,re),Re=HR(g,H,be);return Zne(r,H,Re,!1,be)}).filter(H=>H.length>0)},Wne=(r,g)=>{ye(g,B=>Qne(r,B))},Yne=(r,g)=>Une(r,g).fold(oe,({inlineMatches:B,blockMatches:H})=>(r.undoManager.add(),r.undoManager.extra(()=>{r.execCommand("mceInsertNewLine")},()=>{OS(r),uj(r,B),jne(r,H);const re=r.selection.getRng(),be=T9(re.startContainer,re.startOffset,r.dom.getRoot());r.execCommand("mceInsertNewLine"),be.each(Re=>{const Ke=Re.container;Ke.data.charAt(Re.offset-1)===Iu&&(Ke.deleteData(Re.offset-1,1),U2(r.dom,Ke.parentNode,ct=>ct===r.dom.getRoot()))})}),!0)),Xne=(r,g)=>{const B=r.selection.getRng();X8(r,B).map(H=>{const re=Math.max(0,B.startOffset-1),be=ZR(r.dom,H,B.startContainer,re),Re=HR(g,H,be),Ke=cj(r,H,B.startContainer,re,Re,!1);Ke.length>0&&r.undoManager.transact(()=>{uj(r,Ke)})})},pj=(r,g)=>qne(r,g).fold(oe,B=>(r.undoManager.transact(()=>{Wne(r,B)}),!0)),mj=(r,g,B)=>{for(let H=0;Hmj(r,g,(B,H)=>B===H.keyCode&&!Fo.modifierPressed(H)),Gne=(r,g)=>mj(r,g,(B,H)=>B.charCodeAt(0)===H.charCode),Kne=r=>{const g=[",",".",";",":","!","?"],B=[32],H=()=>Uc(Og(r),n3(r)),re=()=>Sg(r);r.on("keydown",Re=>{if(Re.keyCode===13&&!Fo.modifierPressed(Re)&&r.selection.isCollapsed()){const Ke=wu(H(),"enter");(Ke.inlinePatterns.length>0||Ke.blockPatterns.length>0||re())&&Yne(r,Ke)&&Re.preventDefault()}},!0),r.on("keydown",Re=>{if(Re.keyCode===32&&r.selection.isCollapsed()){const Ke=wu(H(),"space");(Ke.blockPatterns.length>0||re())&&pj(r,Ke)&&Re.preventDefault()}},!0);const be=()=>{if(r.selection.isCollapsed()){const Re=wu(H(),"space");(Re.inlinePatterns.length>0||re())&&Xne(r,Re)}};r.on("keyup",Re=>{gj(B,Re)&&be()}),r.on("keypress",Re=>{Gne(g,Re)&&Tg.setEditorTimeout(r,be)})},vj=r=>{Kne(r)},zk=r=>{const g=mo.each,B=Fo.BACKSPACE,H=Fo.DELETE,re=r.dom,be=r.selection,Re=r.parser,Ke=fr.browser,ct=Ke.isFirefox(),kt=Ke.isChromium()||Ke.isSafari(),Wt=fr.deviceType.isiPhone()||fr.deviceType.isiPad(),Jt=fr.os.isMacOS()||fr.os.isiOS(),ln=(ii,Qi)=>{try{r.getDoc().execCommand(ii,!1,String(Qi))}catch{}},kn=ii=>ii.isDefaultPrevented(),Vn=()=>{const ii=Qa=>{const ci=re.create("body"),Va=Qa.cloneContents();return ci.appendChild(Va),be.serializer.serialize(ci,{format:"html"})},Qi=Qa=>{const ci=ii(Qa),Va=re.createRng();Va.selectNode(r.getBody());const Xa=ii(Va);return ci===Xa};r.on("keydown",Qa=>{const ci=Qa.keyCode;if(!kn(Qa)&&(ci===H||ci===B)&&r.selection.isEditable()){const Va=r.selection.isCollapsed(),Xa=r.getBody();if(Va&&!ba(r.schema,Xa)||!Va&&!Qi(r.selection.getRng()))return;Qa.preventDefault(),r.setContent(""),Xa.firstChild&&re.isBlock(Xa.firstChild)?r.selection.setCursorLocation(Xa.firstChild,0):r.selection.setCursorLocation(Xa,0),r.nodeChanged()}})},Rn=()=>{r.shortcuts.add("meta+a",null,"SelectAll")},qn=()=>{r.inline||re.bind(r.getDoc(),"mousedown mouseup",ii=>{let Qi;if(ii.target===r.getDoc().documentElement)if(Qi=be.getRng(),r.getBody().focus(),ii.type==="mousedown"){if(Ch(Qi.startContainer))return;be.placeCaretAt(ii.clientX,ii.clientY)}else be.setRng(Qi)})},pr=()=>{r.on("keydown",ii=>{if(!kn(ii)&&ii.keyCode===B){if(!r.getBody().getElementsByTagName("hr").length)return;if(be.isCollapsed()&&be.getRng().startOffset===0){const Qi=be.getNode(),Qa=Qi.previousSibling;if(Qi.nodeName==="HR"){re.remove(Qi),ii.preventDefault();return}Qa&&Qa.nodeName&&Qa.nodeName.toLowerCase()==="hr"&&(re.remove(Qa),ii.preventDefault())}}})},Tr=()=>{Range.prototype.getClientRects||r.on("mousedown",ii=>{if(!kn(ii)&&ii.target.nodeName==="HTML"){const Qi=r.getBody();Qi.blur(),Tg.setEditorTimeout(r,()=>{Qi.focus()})}})},wr=()=>{const ii=Jx(r);r.on("click",Qi=>{const Qa=Qi.target;/^(IMG|HR)$/.test(Qa.nodeName)&&re.isEditable(Qa)&&(Qi.preventDefault(),r.selection.select(Qa),r.nodeChanged()),Qa.nodeName==="A"&&re.hasClass(Qa,ii)&&Qa.childNodes.length===0&&re.isEditable(Qa.parentNode)&&(Qi.preventDefault(),be.select(Qa))})},Ur=()=>{const ii=()=>{const Qa=re.getAttribs(be.getStart().cloneNode(!1));return()=>{const ci=be.getStart();ci!==r.getBody()&&(re.setAttrib(ci,"style",null),g(Qa,Va=>{ci.setAttributeNode(Va.cloneNode(!0))}))}},Qi=()=>!be.isCollapsed()&&re.getParent(be.getStart(),re.isBlock)!==re.getParent(be.getEnd(),re.isBlock);r.on("keypress",Qa=>{let ci;return!kn(Qa)&&(Qa.keyCode===8||Qa.keyCode===46)&&Qi()?(ci=ii(),r.getDoc().execCommand("delete",!1),ci(),Qa.preventDefault(),!1):!0}),re.bind(r.getDoc(),"cut",Qa=>{if(!kn(Qa)&&Qi()){const ci=ii();Tg.setEditorTimeout(r,()=>{ci()})}})},wo=()=>{r.on("keydown",ii=>{if(!kn(ii)&&ii.keyCode===B&&be.isCollapsed()&&be.getRng().startOffset===0){const Qi=be.getNode().previousSibling;if(Qi&&Qi.nodeName&&Qi.nodeName.toLowerCase()==="table")return ii.preventDefault(),!1}return!0})},jo=()=>{r.on("keydown",ii=>{if(kn(ii)||ii.keyCode!==Fo.BACKSPACE)return;let Qi=be.getRng();const Qa=Qi.startContainer,ci=Qi.startOffset,Va=re.getRoot();let Xa=Qa;if(!(!Qi.collapsed||ci!==0)){for(;Xa.parentNode&&Xa.parentNode.firstChild===Xa&&Xa.parentNode!==Va;)Xa=Xa.parentNode;Xa.nodeName==="BLOCKQUOTE"&&(r.formatter.toggle("blockquote",void 0,Xa),Qi=re.createRng(),Qi.setStart(Qa,0),Qi.setEnd(Qa,0),be.setRng(Qi))}})},di=()=>{const ii=()=>{ln("StyleWithCSS",!1),ln("enableInlineTableEditing",!1),xd(r)||ln("enableObjectResizing",!1)};py(r)||r.on("BeforeExecCommand mousedown",ii)},lo=()=>{const ii=()=>{g(re.select("a:not([data-mce-block])"),Qi=>{var Qa;let ci=Qi.parentNode;const Va=re.getRoot();if((ci==null?void 0:ci.lastChild)===Qi){for(;ci&&!re.isBlock(ci);){if(((Qa=ci.parentNode)===null||Qa===void 0?void 0:Qa.lastChild)!==ci||ci===Va)return;ci=ci.parentNode}re.add(ci,"br",{"data-mce-bogus":1})}})};r.on("SetContent ExecCommand",Qi=>{(Qi.type==="setcontent"||Qi.command==="mceInsertLink")&&ii()})},eo=()=>{r.on("init",()=>{ln("DefaultParagraphSeparator",dc(r))})},xo=ii=>{const Qi=ii.getBody(),Qa=ii.selection.getRng();return Qa.startContainer===Qa.endContainer&&Qa.startContainer===Qi&&Qa.startOffset===0&&Qa.endOffset===Qi.childNodes.length},bi=()=>{r.on("keyup focusin mouseup",ii=>{!Fo.modifierPressed(ii)&&!xo(r)&&be.normalize()},!0)},Bi=()=>{r.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},$a=()=>{r.inline||r.on("keydown",()=>{document.activeElement===document.body&&r.getWin().focus()})},Ia=()=>{r.inline||(r.contentStyles.push("body {min-height: 150px}"),r.on("click",ii=>{let Qi;ii.target.nodeName==="HTML"&&(Qi=r.selection.getRng(),r.getBody().focus(),r.selection.setRng(Qi),r.selection.normalize(),r.nodeChanged())}))},Us=()=>{Jt&&r.on("keydown",ii=>{Fo.metaKeyPressed(ii)&&!ii.shiftKey&&(ii.keyCode===37||ii.keyCode===39)&&(ii.preventDefault(),r.selection.getSel().modify("move",ii.keyCode===37?"backward":"forward","lineboundary"))})},sl=()=>{r.on("click",ii=>{let Qi=ii.target;do if(Qi.tagName==="A"){ii.preventDefault();return}while(Qi=Qi.parentNode)}),r.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},nu=()=>{r.on("init",()=>{r.dom.bind(r.getBody(),"submit",ii=>{ii.preventDefault()})})},jd=()=>{Re.addNodeFilter("br",ii=>{let Qi=ii.length;for(;Qi--;)ii[Qi].attr("class")==="Apple-interchange-newline"&&ii[Qi].remove()})},vl=k,Wo=()=>{if(!ct||r.removed)return!1;const ii=r.selection.getSel();return!ii||!ii.rangeCount||ii.rangeCount===0},Ei=()=>{kt&&(qn(),wr(),nu(),Rn(),Wt&&($a(),Ia(),sl())),ct&&(Tr(),di(),Bi(),Us())},ws=()=>{jo(),Vn(),fr.windowsPhone||bi(),kt&&(qn(),wr(),eo(),nu(),wo(),jd(),Wt?($a(),Ia(),sl()):Rn()),ct&&(pr(),Tr(),Ur(),di(),lo(),Bi(),Us(),wo())};return Iy(r)?Ei():ws(),{refreshContentEditable:vl,isHidden:Wo}},Jne=r=>r.toLowerCase()==="gpl",yj=r=>r.length>=64&&r.length<=255,ere=r=>Jne(r)||yj(r)?"VALID":"INVALID",tre=r=>{const g=Db(r);!v(lw(r))&&(M(g)||ere(g)==="INVALID")&&console.warn("TinyMCE is running in evaluation mode. Provide a valid license key or add license_key: 'gpl' to the init config to agree to the open source license terms. Read more at https://www.tiny.cloud/license-key/")},eL=Nl.DOM,nre=(r,g)=>{const B=sr.fromDom(r.getBody()),H=tp(of(B)),re=sr.fromTag("style");Es(re,"type","text/css"),Ps(re,sr.fromText(g)),Ps(H,re),r.on("remove",()=>{ja(re)})},bj=r=>r.inline?r.getElement().nodeName.toLowerCase():void 0,tL=r=>qt(r,g=>M(g)===!1),nL=r=>{const g=r.options.get,B=r.editorUpload.blobCache;return tL({allow_conditional_comments:g("allow_conditional_comments"),allow_html_data_urls:g("allow_html_data_urls"),allow_svg_data_urls:g("allow_svg_data_urls"),allow_html_in_named_anchor:g("allow_html_in_named_anchor"),allow_script_urls:g("allow_script_urls"),allow_unsafe_link_target:g("allow_unsafe_link_target"),convert_unsafe_embeds:g("convert_unsafe_embeds"),convert_fonts_to_spans:g("convert_fonts_to_spans"),fix_list_elements:g("fix_list_elements"),font_size_legacy_values:g("font_size_legacy_values"),forced_root_block:g("forced_root_block"),forced_root_block_attrs:g("forced_root_block_attrs"),preserve_cdata:g("preserve_cdata"),inline_styles:g("inline_styles"),root_name:bj(r),sandbox_iframes:g("sandbox_iframes"),sandbox_iframes_exclusions:i2(r),sanitize:g("xss_sanitization"),validate:!0,blob_cache:B,document:r.getDoc()})},xj=r=>{const g=r.options.get;return tL({custom_elements:g("custom_elements"),extended_valid_elements:g("extended_valid_elements"),invalid_elements:g("invalid_elements"),invalid_styles:g("invalid_styles"),schema:g("schema"),valid_children:g("valid_children"),valid_classes:g("valid_classes"),valid_elements:g("valid_elements"),valid_styles:g("valid_styles"),verify_html:g("verify_html"),padd_empty_block_inline_children:g("format_empty_lines")})},rre=r=>{const g=r.options.get;return{...nL(r),...xj(r),...tL({remove_trailing_brs:g("remove_trailing_brs"),pad_empty_with_br:g("pad_empty_with_br"),url_converter:g("url_converter"),url_converter_scope:g("url_converter_scope"),element_format:g("element_format"),entities:g("entities"),entity_encoding:g("entity_encoding"),indent:g("indent"),indent_after:g("indent_after"),indent_before:g("indent_before")})}},ore=r=>{const g=Ry(nL(r),r.schema);return g.addAttributeFilter("src,href,style,tabindex",(B,H)=>{const re=r.dom,be="data-mce-"+H;let Re=B.length;for(;Re--;){const Ke=B[Re];let ct=Ke.attr(H);if(ct&&!Ke.attr(be)){if(ct.indexOf("data:")===0||ct.indexOf("blob:")===0)continue;H==="style"?(ct=re.serializeStyle(re.parseStyle(ct),Ke.name),ct.length||(ct=null),Ke.attr(be,ct),Ke.attr(H,ct)):H==="tabindex"?(Ke.attr(be,ct),Ke.attr(H,null)):Ke.attr(be,r.convertURL(ct,H,Ke.name))}}}),g.addNodeFilter("script",B=>{let H=B.length;for(;H--;){const re=B[H],be=re.attr("type")||"no/type";be.indexOf("mce-")!==0&&re.attr("type","mce-"+be)}}),r2(r)&&g.addNodeFilter("#cdata",B=>{var H;let re=B.length;for(;re--;){const be=B[re];be.type=8,be.name="#comment",be.value="[CDATA["+r.dom.encode((H=be.value)!==null&&H!==void 0?H:"")+"]]"}}),g.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",B=>{let H=B.length;const re=r.schema.getNonEmptyElements();for(;H--;){const be=B[H];be.isEmpty(re)&&be.getAll("br").length===0&&be.append(new yp("br",1))}}),g},ire=r=>{const g=Rb(r);g&&Tg.setEditorTimeout(r,()=>{let B;g===!0?B=r:B=r.editorManager.get(g),B&&!B.destroyed&&(B.focus(),B.selection.scrollIntoView())},100)},are=r=>{const g=r.dom.getRoot();!r.inline&&(!GS(r)||r.selection.getStart(!0)===g)&&lh(g).each(B=>{const H=B.getNode(),re=Et(H)?lh(H).getOr(B):B;r.selection.setRng(re.toRange())})},sre=r=>{r.bindPendingEventDelegates(),r.initialized=!0,lE(r),r.focus(!0),are(r),r.nodeChanged({initial:!0});const g=Wh(r);C(g)&&g.call(r,r),ire(r)},rL=r=>r.inline?r.ui.styleSheetLoader:r.dom.styleSheetLoader,lre=(r,g,B)=>{const{pass:H,fail:re}=Se(g,Ke=>tinymce.Resource.has(SP(Ke))),Re=[...H.map(Ke=>{const ct=tinymce.Resource.get(SP(Ke));return v(ct)?Promise.resolve(rL(r).loadRawCss(Ke,ct)):Promise.resolve()}),rL(r).loadAll(re)];return r.inline?Re:Re.concat([r.ui.styleSheetLoader.loadAll(B)])},_j=r=>{const g=rL(r),B=Wu(r),H=r.contentCSS,re=()=>{g.unloadAll(H),r.inline||r.ui.styleSheetLoader.unloadAll(B)},be=()=>{r.removed?re():r.on("remove",re)};if(r.contentStyles.length>0){let ct="";mo.each(r.contentStyles,kt=>{ct+=kt+`\r +`}),r.dom.addStyle(ct)}const Re=Promise.all(lre(r,H,B)).then(be).catch(be),Ke=Sb(r);return Ke&&nre(r,Ke),Re},wj=r=>{const g=r.getDoc(),B=r.getBody();r6(r),zm(r)||(g.body.spellcheck=!1,eL.setAttrib(B,"spellcheck","false")),r.quirks=zk(r),E3(r);const H=Yx(r);H!==void 0&&(B.dir=H);const re=rw(r);re&&r.on("BeforeSetContent",be=>{mo.each(re,Re=>{be.content=be.content.replace(Re,Ke=>"")})}),r.on("SetContent",()=>{r.addVisual(r.getBody())}),r.on("compositionstart compositionend",be=>{r.composing=be.type==="compositionstart"})},oL=r=>{Iy(r)||r.load({initial:!0,format:"html"}),r.startContent=r.getContent({format:"raw"})},eA=r=>{r.removed!==!0&&(oL(r),sre(r))},Oj=r=>{let g=!1;const B=setTimeout(()=>{g||r.setProgressState(!0)},500);return()=>{clearTimeout(B),g=!0,r.setProgressState(!1)}},Sj=r=>{const g=r.getElement();let B=r.getDoc();r.inline&&(eL.addClass(g,"mce-content-body"),r.contentDocument=B=document,r.contentWindow=window,r.bodyElement=g,r.contentAreaContainer=g);const H=r.getBody();H.disabled=!0,r.readonly=py(r),r._editableRoot=Gx(r),!r.readonly&&r.hasEditableRoot()&&(r.inline&&eL.getStyle(H,"position",!0)==="static"&&(H.style.position="relative"),H.contentEditable="true"),H.disabled=!1,r.editorUpload=wG(r),r.schema=Np(xj(r)),r.dom=Nl(B,{keep_values:!0,url_converter:r.convertURL,url_converter_scope:r,update_styles:!0,root_element:r.inline?r.getBody():null,collect:r.inline,schema:r.schema,contentCssCors:X1(r),referrerPolicy:G1(r),onSetAttrib:Re=>{r.dispatch("SetAttrib",Re)}}),r.parser=ore(r),r.serializer=vP(rre(r),r),r.selection=nN(r.dom,r.getWin(),r.serializer,r),r.annotator=J0(r),r.formatter=wN(r),r.undoManager=EP(r),r._nodeChangeDispatcher=new ate(r),r._selectionOverrides=rj(r),v4(r),nne(r),VK(r),Iy(r)||(zU(r),vj(r));const re=sU(r);DK(r,re),FK(r),MG(r),Jte(r);const be=jF(r);wj(r),tre(r),be.fold(()=>{const Re=Oj(r);_j(r).then(()=>{eA(r),Re()})},Re=>{r.setProgressState(!0),_j(r).then(()=>{Re().then(Ke=>{r.setProgressState(!1),eA(r),JF(r)},Ke=>{r.notificationManager.open({type:"error",text:String(Ke)}),eA(r),JF(r)})})})},cre=q,ure=(r,g,B)=>Dp(r,g,cre,B),tA=Nl.DOM,kj=(r,g,B,H)=>{const re=sr.fromTag("iframe");return H.each(be=>Es(re,"tabindex",be)),ef(re,B),ef(re,{id:r+"_ifr",frameBorder:"0",allowTransparency:"true",title:g}),_f(re,"tox-edit-area__iframe"),re},fre=r=>{let g=Mh(r)+"";il(r)!==r.documentBaseUrl&&(g+=''),g+='';const B=Im(r),H=ah(r),re=r.translate(e2(r));return Bu(r)&&(g+=''),g+=`
    `,g},dre=(r,g)=>{const B=fr.browser.isFirefox()?e2(r):"Rich Text Area",H=r.translate(B),re=sd(sr.fromDom(r.getElement()),"tabindex").bind(zr),be=kj(r.id,H,Mc(r),re).dom;be.onload=()=>{be.onload=null,r.dispatch("load")},r.contentAreaContainer=g.iframeContainer,r.iframeElement=be,r.iframeHTML=fre(r),tA.add(g.iframeContainer,be)},iL=r=>{const g=r.iframeElement,B=()=>{r.contentDocument=g.contentDocument,Sj(r)};if(Od(r)||fr.browser.isFirefox()){const H=r.getDoc();H.open(),H.write(r.iframeHTML),H.close(),B()}else{const H=ure(sr.fromDom(g),"load",()=>{H.unbind(),B()});g.srcdoc=r.iframeHTML}},nA=(r,g)=>{dre(r,g),g.editorContainer&&(g.editorContainer.style.display=r.orgDisplay,r.hidden=tA.isHidden(g.editorContainer)),r.getElement().style.display="none",tA.setAttrib(r.id,"aria-hidden","true"),r.getElement().style.visibility=r.orgVisibility,iL(r)},Fk=Nl.DOM,lx=(r,g,B)=>{const H=a4.get(B),re=a4.urls[B]||r.documentBaseUrl.replace(/\/$/,"");if(B=mo.trim(B),H&&mo.inArray(g,B)===-1){if(r.plugins[B])return;try{const be=H(r,re)||{};r.plugins[B]=be,C(be.init)&&(be.init(r,re),g.push(B))}catch(be){OP(r,B,be)}}},rA=r=>r.replace(/^\-/,""),E4=r=>{const g=[];ye(nv(r),B=>{lx(r,g,rA(B))})},Tj=r=>{const g=mo.trim(Jc(r)),B=r.ui.registry.getAll().icons,H={...o4.get("default").icons,...o4.get(g).icons};Ge(H,(re,be)=>{_t(B,be)||r.ui.registry.addIcon(be,re)})},hre=r=>{const g=xg(r);if(v(g)){const B=xv.get(g);r.theme=B(r,xv.urls[g])||{},C(r.theme.init)&&r.theme.init(r,xv.urls[g]||r.documentBaseUrl.replace(/\/$/,""))}else r.theme={}},pre=r=>{const g=Tb(r),B=i4.get(g);r.model=B(r,i4.urls[g])},Cj=r=>{const g=r.theme.renderUI;return g?g():cx(r)},mre=r=>{const g=r.getElement(),H=xg(r)(r,g);return H.editorContainer.nodeType&&(H.editorContainer.id=H.editorContainer.id||r.id+"_parent"),H.iframeContainer&&H.iframeContainer.nodeType&&(H.iframeContainer.id=H.iframeContainer.id||r.id+"_iframecontainer"),H.height=H.iframeHeight?H.iframeHeight:g.offsetHeight,H},oA=(r,g)=>({editorContainer:r,iframeContainer:g,api:{}}),iA=r=>{const g=Fk.create("div");return Fk.insertAfter(g,r),oA(g,g)},cx=r=>{const g=r.getElement();return r.inline?oA(null):iA(g)},lO=r=>{const g=r.getElement();return r.orgDisplay=g.style.display,v(xg(r))?Cj(r):C(xg(r))?mre(r):cx(r)},Aj=(r,g)=>{const B={show:Y.from(g.show).getOr(k),hide:Y.from(g.hide).getOr(k),isEnabled:Y.from(g.isEnabled).getOr(q),setEnabled:H=>{r.mode.isReadOnly()||Y.from(g.setEnabled).each(re=>re(H))}};r.ui={...r.ui,...B}},gre=async r=>{r.dispatch("ScriptsLoaded"),Tj(r),hre(r),pre(r),E4(r);const g=await lO(r);Aj(r,Y.from(g.api).getOr({})),r.editorContainer=g.editorContainer,bG(r),r.inline?Sj(r):nA(r,{editorContainer:g.editorContainer,iframeContainer:g.iframeContainer})},cO=Nl.DOM,Mj=r=>r.charAt(0)==="-",vre=(r,g)=>{const B=K1(g),H=Zp(g);if(!Du.hasCode(B)&&B!=="en"){const re=Kn(H)?H:`${g.editorManager.baseURL}/langs/${B}.js`;r.add(re).catch(()=>{mG(g,re,B)})}},yre=(r,g)=>{const B=xg(r);if(v(B)&&!Mj(B)&&!_t(xv.urls,B)){const H=kb(r),re=H?r.documentBaseURI.toAbsolute(H):`themes/${B}/theme${g}.js`;xv.load(B,re).catch(()=>{sfe(r,re,B)})}},bre=(r,g)=>{const B=Tb(r);if(B!=="plugin"&&!_t(i4.urls,B)){const H=Xx(r),re=v(H)?r.documentBaseURI.toAbsolute(H):`models/${B}/model${g}.js`;i4.load(B,re).catch(()=>{_v(r,re,B)})}},Ej=r=>Y.from(Pc(r)).filter(Kn).map(g=>({url:g,name:Y.none()})),Pj=(r,g,B)=>Y.from(g).filter(H=>Kn(H)&&!o4.has(H)).map(H=>({url:`${r.editorManager.baseURL}/icons/${H}/icons${B}.js`,name:Y.some(H)})),xre=(r,g,B)=>{const H=Pj(g,"default",B),re=Ej(g).orThunk(()=>Pj(g,Jc(g),""));ye(Na([H,re]),be=>{r.add(be.url).catch(()=>{pG(g,be.url,be.name.getOrUndefined())})})},_re=(r,g)=>{const B=(H,re)=>{a4.load(H,re).catch(()=>{hG(r,re,H)})};Ge(e3(r),(H,re)=>{B(re,H),r.options.set("plugins",nv(r).concat(re))}),ye(nv(r),H=>{H=mo.trim(H),H&&!a4.urls[H]&&!Mj(H)&&B(H,`plugins/${H}/plugin${g}.js`)})},Efe=r=>{const g=xg(r);return!v(g)||E(xv.get(g))},wre=r=>{const g=Tb(r);return E(i4.get(g))},aL=(r,g)=>{const B=Mm.ScriptLoader,H=()=>{!r.removed&&Efe(r)&&wre(r)&&gre(r)};yre(r,g),bre(r,g),vre(B,r),xre(B,r,g),_re(r,g),B.loadQueue().then(H,H)},Ore=(r,g)=>wm.forElement(r,{contentCssCors:Eb(g),referrerPolicy:G1(g)}),Sre=r=>{const g=r.id;Du.setCode(K1(r));const B=()=>{cO.unbind(window,"ready",B),r.render()};if(!md.Event.domLoaded){cO.bind(window,"ready",B);return}if(!r.getElement())return;const H=sr.fromDom(r.getElement()),re=Mp(H);r.on("remove",()=>{_e(H.dom.attributes,Re=>gc(H,Re.name)),ef(H,re)}),r.ui.styleSheetLoader=Ore(H,r),ev(r)?r.inline=!0:(r.orgVisibility=r.getElement().style.visibility,r.getElement().style.visibility="hidden");const be=r.getElement().form||cO.getParent(g,"form");be&&(r.formElement=be,_g(r)&&!jt(r.getElement())&&(cO.insertAfter(cO.create("input",{type:"hidden",name:g}),g),r.hasHiddenInput=!0),r.formEventDelegate=Re=>{r.dispatch(Re.type,Re)},cO.bind(be,"submit reset",r.formEventDelegate),r.on("reset",()=>{r.resetContent()}),Ab(r)&&!be.submit.nodeType&&!be.submit.length&&!be._mceOldSubmit&&(be._mceOldSubmit=be.submit,be.submit=()=>(r.editorManager.triggerSave(),r.setDirty(!1),be._mceOldSubmit(be)))),r.windowManager=wP(r),r.notificationManager=hN(r),l0(r)&&r.on("GetContent",Re=>{Re.save&&(Re.content=cO.encode(Re.content))}),nw(r)&&r.on("submit",()=>{r.initialized&&r.save()}),Mb(r)&&(r._beforeUnload=()=>{r.initialized&&!r.destroyed&&!r.isHidden()&&r.save({format:"raw",no_events:!0,set_dirty:!1})},r.editorManager.on("BeforeUnload",r._beforeUnload)),r.editorManager.add(r),aL(r,r.suffix)},Rj=(r,g)=>{r._editableRoot!==g&&(r._editableRoot=g,r.readonly||(r.getBody().contentEditable=String(r.hasEditableRoot()),r.nodeChanged()),s5(r,g))},kre=r=>r._editableRoot,Lj=(r,g)=>({sections:$(r),options:$(g)}),Ij=tr().deviceType,aA=Ij.isPhone(),Tre=Ij.isTablet(),Nk=r=>{if(T(r))return[];{const g=A(r)?r:r.split(/[ ,]/),B=ve(g,Fn);return Te(B,Kn)}},Cre=(r,g)=>{const B=It(g,(H,re)=>ce(r,re));return Lj(B.t,B.f)},Are=(r,g,B={})=>{const H=r.sections(),re=Ct(H,g).getOr({});return mo.extend({},B,re)},sA=(r,g)=>_t(r.sections(),g),sL=(r,g)=>sA(r,g)?r.sections()[g]:{},Dj=(r,g)=>({...{table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:Ct(r,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},...g?{menubar:!1}:{}}),lL=(r,g)=>{var B;const H=(B=g.external_plugins)!==null&&B!==void 0?B:{};return r&&r.external_plugins?mo.extend({},r.external_plugins,H):H},Mre=(r,g)=>[...Nk(r),...Nk(g)],Pfe=(r,g,B,H)=>r&&sA(g,"mobile")?H:B,Rfe=(r,g,B,H)=>{const re=Nk(B.forced_plugins),be=Nk(H.plugins),Re=sL(g,"mobile"),Ke=Re.plugins?Nk(Re.plugins):be,ct=Pfe(r,g,be,Ke),kt=Mre(re,ct);return mo.extend(H,{forced_plugins:re,plugins:kt})},Ere=(r,g)=>r&&sA(g,"mobile"),Bj=(r,g,B,H,re)=>{var be;const Re=r?{mobile:Dj((be=re.mobile)!==null&&be!==void 0?be:{},g)}:{},Ke=Cre(["mobile"],v8(Re,re)),ct=mo.extend(B,H,Ke.options(),Ere(r,Ke)?Are(Ke,"mobile"):{},{external_plugins:lL(H,Ke.options())});return Rfe(r,Ke,H,ct)},Pre=(r,g)=>{const B=I9(g);return Bj(aA||Tre,aA,B,r,B)},Rre=(r,g)=>EX(r,g),Lre=r=>{const g=(H,re)=>{r.formatter.toggle(H,re),r.nodeChanged()},B=H=>()=>{ye("left,center,right,justify".split(","),re=>{H!==re&&r.formatter.remove("align"+re)}),H!=="none"&&g("align"+H)};r.editorCommands.addCommands({JustifyLeft:B("left"),JustifyCenter:B("center"),JustifyRight:B("right"),JustifyFull:B("justify"),JustifyNone:B("none")})},Lfe=r=>{const g=B=>()=>{const H=r.selection,re=H.isCollapsed()?[r.dom.getParent(H.getNode(),r.dom.isBlock)]:H.getSelectedBlocks();return de(re,be=>E(r.formatter.matchNode(be,B)))};r.editorCommands.addCommands({JustifyLeft:g("alignleft"),JustifyCenter:g("aligncenter"),JustifyRight:g("alignright"),JustifyFull:g("alignjustify")},"state")},Ife=r=>{Lre(r),Lfe(r)},zj=r=>{r.editorCommands.addCommands({"Cut,Copy,Paste":g=>{const B=r.getDoc();let H;try{B.execCommand(g)}catch{H=!0}if(g==="paste"&&!B.queryCommandEnabled(g)&&(H=!0),H||!B.queryCommandSupported(g)){let re=r.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(fr.os.isMacOS()||fr.os.isiOS())&&(re=re.replace(/Ctrl\+/g,"⌘+")),r.notificationManager.open({text:re,type:"error"})}}})},Fj=(r,g,B,H)=>{const re=sr.fromDom(r.getRoot());return _5(re,qr.fromRangeStart(g),H)?B=B.replace(/^ /," "):B=B.replace(/^ /," "),w5(re,qr.fromRangeEnd(g),H)?B=B.replace(/( | )()?$/," "):B=B.replace(/ ()?$/," "),B},Ire=r=>{if(typeof r!="string"){const g=mo.extend({paste:r.paste,data:{paste:r.paste}},r);return{content:r.content,details:g}}return{content:r,details:{}}},Dre=(r,g)=>{const B=r.selection,H=r.dom;return/^ | $/.test(g)?Fj(H,B.getRng(),g,r.schema):g},lA=(r,g)=>{if(r.selection.isEditable()){const{content:B,details:H}=Ire(g);rP(r,{...H,content:Dre(r,B),format:"html",set:!1,selection:!0}).each(re=>{const be=KF(r,re.content,H);oP(r,be,re),r.addVisual()})}},Dfe=r=>{r.editorCommands.addCommands({mceCleanup:()=>{const g=r.selection.getBookmark();r.setContent(r.getContent()),r.selection.moveToBookmark(g)},insertImage:(g,B,H)=>{lA(r,r.dom.createHTML("img",{src:H}))},insertHorizontalRule:()=>{r.execCommand("mceInsertContent",!1,"
    ")},insertText:(g,B,H)=>{lA(r,r.dom.encode(H))},insertHTML:(g,B,H)=>{lA(r,H)},mceInsertContent:(g,B,H)=>{lA(r,H)},mceSetContent:(g,B,H)=>{r.setContent(H)},mceReplaceContent:(g,B,H)=>{r.execCommand("mceInsertContent",!1,H.replace(/\{\$selection\}/g,r.selection.getContent({format:"text"})))},mceNewDocument:()=>{r.setContent(ov(r))}})},Bfe={"font-size":"size","font-family":"face"},zfe=Ju("font"),Bre=(r,g,B)=>{const H=be=>Ru(be,r).orThunk(()=>zfe(be)?Ct(Bfe,r).bind(Re=>sd(be,Re)):Y.none()),re=be=>Fa(sr.fromDom(g),be);return v7(sr.fromDom(B),be=>H(be),re)},Ffe=r=>r.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),zre=(r,g)=>Y.from(Nl.DOM.getStyle(g,r,!0)),j2=r=>(g,B)=>Y.from(B).map(sr.fromDom).filter(mc).bind(H=>Bre(r,g,H.dom).or(zre(r,H.dom))).getOr(""),cL=j2("font-size"),cA=I(Ffe,j2("font-family")),Nj=r=>lh(r.getBody()).bind(g=>{const B=g.container();return Y.from(Nt(B)?B.parentNode:B)}),$j=r=>Y.from(r.selection.getRng()).bind(g=>{const B=r.getBody();return g.startContainer===B&&g.startOffset===0?Y.none():Y.from(r.selection.getStart(!0))}),Vj=(r,g)=>$j(r).orThunk(U(Nj,r)).map(sr.fromDom).filter(mc).bind(g),uL=(r,g)=>Vj(r,z(Y.some,g)),Uj=(r,g)=>{if(/^[0-9.]+$/.test(g)){const B=parseInt(g,10);if(B>=1&&B<=7){const H=s0(r),re=Ib(r);return re.length>0?re[B-1]||g:H[B-1]||g}else return g}else return g},Fre=r=>{const g=r.split(/\s*,\s*/);return ve(g,B=>B.indexOf(" ")!==-1&&!(xr(B,'"')||xr(B,"'"))?`'${B}'`:B).join(",")},Nre=(r,g)=>{const B=Uj(r,g);r.formatter.toggle("fontname",{value:Fre(B)}),r.nodeChanged()},$re=r=>uL(r,g=>cA(r.getBody(),g.dom)).getOr(""),Vre=(r,g)=>{r.formatter.toggle("fontsize",{value:Uj(r,g)}),r.nodeChanged()},Q2=r=>uL(r,g=>cL(r.getBody(),g.dom)).getOr(""),Ure=r=>uL(r,g=>{const B=sr.fromDom(r.getBody()),H=v7(g,be=>Ru(be,"line-height"),U(Fa,B)),re=()=>{const be=parseFloat(pi(g,"line-height")),Re=parseFloat(pi(g,"font-size"));return String(be/Re)};return H.getOrThunk(re)}).getOr(""),jj=(r,g)=>{r.formatter.toggle("lineheight",{value:String(g)}),r.nodeChanged()},jre=r=>{const g=(B,H)=>{r.formatter.toggle(B,H),r.nodeChanged()};r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>{g(B)},"ForeColor,HiliteColor":(B,H,re)=>{g(B,{value:re})},BackColor:(B,H,re)=>{g("hilitecolor",{value:re})},FontName:(B,H,re)=>{Nre(r,re)},FontSize:(B,H,re)=>{Vre(r,re)},LineHeight:(B,H,re)=>{jj(r,re)},Lang:(B,H,re)=>{var be;g(B,{value:re.code,customValue:(be=re.customCode)!==null&&be!==void 0?be:null})},RemoveFormat:B=>{r.formatter.remove(B)},mceBlockQuote:()=>{g("blockquote")},FormatBlock:(B,H,re)=>{g(v(re)?re:"p")},mceToggleFormat:(B,H,re)=>{g(re)}})},uA=r=>{const g=B=>r.formatter.match(B);r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>g(B),mceBlockQuote:()=>g("blockquote")},"state"),r.editorCommands.addQueryValueHandler("FontName",()=>$re(r)),r.editorCommands.addQueryValueHandler("FontSize",()=>Q2(r)),r.editorCommands.addQueryValueHandler("LineHeight",()=>Ure(r))},Qre=r=>{jre(r),uA(r)},Hre=r=>{r.editorCommands.addCommands({mceAddUndoLevel:()=>{r.undoManager.add()},mceEndUndoLevel:()=>{r.undoManager.add()},Undo:()=>{r.undoManager.undo()},Redo:()=>{r.undoManager.redo()}})},Zre=r=>{r.editorCommands.addCommands({Indent:()=>{l9(r)},Outdent:()=>{M$(r)}}),r.editorCommands.addCommands({Outdent:()=>n8(r)},"state")},Qj=r=>{const g=(B,H,re)=>{const be=v(re)?{href:re}:re,Re=r.dom.getParent(r.selection.getNode(),"a");_(be)&&v(be.href)&&(be.href=be.href.replace(/ /g,"%20"),(!Re||!be.href)&&r.formatter.remove("link"),be.href&&r.formatter.apply("link",be,Re))};r.editorCommands.addCommands({unlink:()=>{if(r.selection.isEditable()){if(r.selection.isCollapsed()){const B=r.dom.getParent(r.selection.getStart(),"a");B&&r.dom.remove(B,!0);return}r.formatter.remove("link")}},mceInsertLink:g,createLink:g})},qre=(r,g,B,H)=>{const re=r.dom,be=Ke=>re.isBlock(Ke)&&Ke.parentElement===B,Re=be(g)?g:re.getParent(H,be,B);return Y.from(Re).map(sr.fromDom)},Hj=(r,g)=>{const B=r.dom,H=r.selection.getRng(),re=g?r.selection.getStart():r.selection.getEnd(),be=g?H.startContainer:H.endContainer,Re=kk(B,be);if(!Re||!Re.isContentEditable)return;const Ke=g?Fc:si,ct=dc(r);qre(r,re,Re,be).each(kt=>{const Wt=VV(r,be,kt.dom,Re,!1,ct);Ke(kt,sr.fromDom(Wt)),r.selection.setCursorLocation(Wt,0),r.dispatch("NewBlock",{newBlock:Wt}),Sk(r,"insertParagraph")})},Wre=r=>Hj(r,!0),Yre=r=>Hj(r,!1),fL=r=>{r.editorCommands.addCommands({InsertNewBlockBefore:()=>{Wre(r)},InsertNewBlockAfter:()=>{Yre(r)}})},Xre=r=>{r.editorCommands.addCommands({insertParagraph:()=>{P8(HV,r)},mceInsertNewLine:(g,B,H)=>{R8(r,H)},InsertLineBreak:(g,B,H)=>{P8(C8,r)}})},Gre=r=>{r.editorCommands.addCommands({mceSelectNodeDepth:(g,B,H)=>{let re=0;r.dom.getParent(r.selection.getNode(),be=>ne(be)&&re++===H?(r.selection.select(be),!1):!0,r.getBody())},mceSelectNode:(g,B,H)=>{r.selection.select(H)},selectAll:()=>{const g=r.dom.getParent(r.selection.getStart(),Sn);if(g){const B=r.dom.createRng();B.selectNodeContents(g),r.selection.setRng(B)}}})},If=r=>{r.editorCommands.addCommands({mceRemoveNode:(g,B,H)=>{const re=H??r.selection.getNode();if(re!==r.getBody()){const be=r.selection.getBookmark();r.dom.remove(re,!0),r.selection.moveToBookmark(be)}},mcePrint:()=>{r.getWin().print()},mceFocus:(g,B,H)=>{ME(r,H===!0)},mceToggleVisualAid:()=>{r.hasVisual=!r.hasVisual,r.addVisual()}})},Kre=r=>{Ife(r),zj(r),Hre(r),Gre(r),Dfe(r),Qj(r),Zre(r),fL(r),Xre(r),Qre(r),If(r)},Jre=["toggleview"],fA=r=>ce(Jre,r.toLowerCase());class dL{constructor(g){this.commands={state:{},exec:{},value:{}},this.editor=g}execCommand(g,B=!1,H,re){const be=this.editor,Re=g.toLowerCase(),Ke=re==null?void 0:re.skip_focus;if(be.removed||(Re!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(Re)&&!Ke?be.focus():qD(be)),be.dispatch("BeforeExecCommand",{command:g,ui:B,value:H}).isDefaultPrevented()))return!1;const kt=this.commands.exec[Re];return C(kt)?(kt(Re,B,H),be.dispatch("ExecCommand",{command:g,ui:B,value:H}),!0):!1}queryCommandState(g){if(!fA(g)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const B=g.toLowerCase(),H=this.commands.state[B];return C(H)?H(B):!1}queryCommandValue(g){if(!fA(g)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const B=g.toLowerCase(),H=this.commands.value[B];return C(H)?H(B):""}addCommands(g,B="exec"){const H=this.commands;Ge(g,(re,be)=>{ye(be.toLowerCase().split(","),Re=>{H[B][Re]=re})})}addCommand(g,B,H){const re=g.toLowerCase();this.commands.exec[re]=(be,Re,Ke)=>B.call(H??this.editor,Re,Ke)}queryCommandSupported(g){const B=g.toLowerCase();return!!this.commands.exec[B]}addQueryStateHandler(g,B,H){this.commands.state[g.toLowerCase()]=()=>B.call(H??this.editor)}addQueryValueHandler(g,B,H){this.commands.value[g.toLowerCase()]=()=>B.call(H??this.editor)}}const ux="data-mce-contenteditable",eoe=(r,g,B)=>{rs(r,g)&&!B?nf(r,g):B&&_f(r,g)},hL=(r,g,B)=>{try{r.getDoc().execCommand(g,!1,String(B))}catch{}},dA=(r,g)=>{r.dom.contentEditable=g?"true":"false"},toe=r=>{ye(Zl(r,'*[contenteditable="true"]'),g=>{Es(g,ux,"true"),dA(g,!1)})},noe=r=>{ye(Zl(r,`*[${ux}="true"]`),g=>{gc(g,ux),dA(g,!0)})},roe=r=>{Y.from(r.selection.getNode()).each(g=>{g.removeAttribute("data-mce-selected")})},ooe=r=>{r.selection.setRng(r.selection.getRng())},ioe=(r,g)=>{const B=sr.fromDom(r.getBody());eoe(B,"mce-content-readonly",g),g?(r.selection.controlSelection.hideResizeRect(),r._selectionOverrides.hideFakeCaret(),roe(r),r.readonly=!0,dA(B,!1),toe(B)):(r.readonly=!1,r.hasEditableRoot()&&dA(B,!0),noe(B),hL(r,"StyleWithCSS",!1),hL(r,"enableInlineTableEditing",!1),hL(r,"enableObjectResizing",!1),y5(r)&&r.focus(),ooe(r),r.nodeChanged())},h1=r=>r.readonly,p1=r=>{r.parser.addAttributeFilter("contenteditable",g=>{h1(r)&&ye(g,B=>{B.attr(ux,B.attr("contenteditable")),B.attr("contenteditable","false")})}),r.serializer.addAttributeFilter(ux,g=>{h1(r)&&ye(g,B=>{B.attr("contenteditable",B.attr(ux))})}),r.serializer.addTempAttr(ux)},aoe=r=>{r.serializer?p1(r):r.on("PreInit",()=>{p1(r)})},soe=r=>r.type==="click",loe=["copy"],coe=r=>ce(loe,r.type),uoe=(r,g)=>mu(g,"a",H=>Fa(H,sr.fromDom(r.getBody()))).bind(H=>sd(H,"href")),foe=(r,g)=>{if(soe(g)&&!Fo.metaKeyPressed(g)){const B=sr.fromDom(g.target);uoe(r,B).each(H=>{if(g.preventDefault(),/^#/.test(H)){const re=r.dom.select(`${H},[name="${In(H,"#")}"]`);re.length&&r.selection.scrollIntoView(re[0],!0)}else window.open(H,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else coe(g)&&r.dispatch(g.type,g)},doe=r=>{r.on("ShowCaret",g=>{h1(r)&&g.preventDefault()}),r.on("ObjectSelected",g=>{h1(r)&&g.preventDefault()})},hoe=mo.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class pL{static isNative(g){return!!hoe[g.toLowerCase()]}constructor(g){this.bindings={},this.settings=g||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||oe}fire(g,B){return this.dispatch(g,B)}dispatch(g,B){const H=g.toLowerCase(),re=Lx(H,B??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(re);const be=this.bindings[H];if(be)for(let Re=0,Ke=be.length;Re{this.toggleEvent(ct,!1),delete this.bindings[ct]}),this;if(Re){if(!B)Re.length=0;else{const Ke=Se(Re,ct=>ct.func===B);Re=Ke.fail,this.bindings[be]=Re,ye(Ke.pass,ct=>{ct.removed=!0})}Re.length||(this.toggleEvent(g,!1),delete this.bindings[be])}}}else Ge(this.bindings,(H,re)=>{this.toggleEvent(re,!1)}),this.bindings={};return this}once(g,B,H){return this.on(g,B,H,{once:!0})}has(g){g=g.toLowerCase();const B=this.bindings[g];return!(!B||B.length===0)}}const hA=r=>(r._eventDispatcher||(r._eventDispatcher=new pL({scope:r,toggleEvent:(g,B)=>{pL.isNative(g)&&r.toggleNativeEvent&&r.toggleNativeEvent(g,B)}})),r._eventDispatcher),mL={fire(r,g,B){return this.dispatch(r,g,B)},dispatch(r,g,B){const H=this;if(H.removed&&r!=="remove"&&r!=="detach")return Lx(r.toLowerCase(),g??{},H);const re=hA(H).dispatch(r,g);if(B!==!1&&H.parent){let be=H.parent();for(;be&&!re.isPropagationStopped();)be.dispatch(r,re,!1),be=be.parent?be.parent():void 0}return re},on(r,g,B){return hA(this).on(r,g,B)},off(r,g){return hA(this).off(r,g)},once(r,g){return hA(this).once(r,g)},hasEventListeners(r){return hA(this).has(r)}},pA=Nl.DOM;let uO;const mA=(r,g)=>{if(g==="selectionchange")return r.getDoc();if(!r.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(g))return r.getDoc().documentElement;const B=hp(r);return B?(r.eventRoot||(r.eventRoot=pA.select(B)[0]),r.eventRoot):r.getBody()},poe=r=>!r.hidden&&!h1(r),Zj=(r,g,B)=>{poe(r)?r.dispatch(g,B):h1(r)&&foe(r,B)},moe=(r,g)=>{if(r.delegates||(r.delegates={}),r.delegates[g]||r.removed)return;const B=mA(r,g);if(hp(r)){if(uO||(uO={},r.editorManager.on("removeEditor",()=>{r.editorManager.activeEditor||uO&&(Ge(uO,(re,be)=>{r.dom.unbind(mA(r,be))}),uO=null)})),uO[g])return;const H=re=>{const be=re.target,Re=r.editorManager.get();let Ke=Re.length;for(;Ke--;){const ct=Re[Ke].getBody();(ct===be||pA.isChildOf(be,ct))&&Zj(Re[Ke],g,re)}};uO[g]=H,pA.bind(B,g,H)}else{const H=re=>{Zj(r,g,re)};pA.bind(B,g,H),r.delegates[g]=H}},qj={...mL,bindPendingEventDelegates(){const r=this;mo.each(r._pendingNativeEvents,g=>{moe(r,g)})},toggleNativeEvent(r,g){const B=this;r==="focus"||r==="blur"||B.removed||(g?B.initialized?moe(B,r):B._pendingNativeEvents?B._pendingNativeEvents.push(r):B._pendingNativeEvents=[r]:B.initialized&&B.delegates&&(B.dom.unbind(mA(B,r),r,B.delegates[r]),delete B.delegates[r]))},unbindAllNativeEvents(){const r=this,g=r.getBody(),B=r.dom;r.delegates&&(Ge(r.delegates,(H,re)=>{r.dom.unbind(mA(r,re),re,H)}),delete r.delegates),!r.inline&&g&&B&&(g.onload=null,B.unbind(r.getWin()),B.unbind(r.getDoc())),B&&(B.unbind(g),B.unbind(r.getContainer()))}},goe=r=>v(r)?{value:r.split(/[ ,]/),valid:!0}:D(r,v)?{value:r,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},voe=r=>{const g=(()=>{switch(r){case"array":return A;case"boolean":return R;case"function":return C;case"number":return L;case"object":return _;case"string":return v;case"string[]":return goe;case"object[]":return B=>D(B,_);case"regexp":return B=>m(B,RegExp);default:return q}})();return B=>gL(B,g,`The value must be a ${r}.`)},yoe=r=>v(r.processor),Wj=(r,g)=>{const B=_r(g.message)?"":`. ${g.message}`;return r+B},Yj=r=>r.valid,gL=(r,g,B="")=>{const H=g(r);return R(H)?H?{value:r,valid:!0}:{valid:!1,message:B}:H},boe=(r,g,B)=>{if(!M(g)){const H=gL(g,B);if(Yj(H))return H.value;console.error(Wj(`Invalid default value passed for the "${r}" option`,H))}},xoe=(r,g,B=g)=>{const H={},re={},be=(kn,Vn,Rn)=>{const qn=gL(Vn,Rn);return Yj(qn)?(re[kn]=qn.value,!0):(console.warn(Wj(`Invalid value passed for the ${kn} option`,qn)),!1)},Re=(kn,Vn)=>{const Rn=yoe(Vn)?voe(Vn.processor):Vn.processor,qn=boe(kn,Vn.default,Rn);H[kn]={...Vn,default:qn,processor:Rn},Ct(re,kn).orThunk(()=>Ct(g,kn)).each(Tr=>be(kn,Tr,Rn))},Ke=kn=>_t(H,kn);return{register:Re,isRegistered:Ke,get:kn=>Ct(re,kn).orThunk(()=>Ct(H,kn).map(Vn=>Vn.default)).getOrUndefined(),set:(kn,Vn)=>{if(Ke(kn)){const Rn=H[kn];return Rn.immutable?(console.error(`"${kn}" is an immutable option and cannot be updated`),!1):be(kn,Vn,Rn.processor)}else return console.warn(`"${kn}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:kn=>{const Vn=Ke(kn);return Vn&&delete re[kn],Vn},isSet:kn=>_t(re,kn),debug:()=>{try{console.log(JSON.parse(JSON.stringify(B,(kn,Vn)=>R(Vn)||L(Vn)||v(Vn)||x(Vn)||A(Vn)||S(Vn)?Vn:Object.prototype.toString.call(Vn))))}catch(kn){console.error(kn)}}}},_oe=["design","readonly"],Xj=(r,g,B,H)=>{const re=B[g.get()],be=B[H];try{be.activate()}catch(Re){console.error(`problem while activating editor mode ${H}:`,Re);return}re.deactivate(),re.editorReadOnly!==be.editorReadOnly&&ioe(r,be.editorReadOnly),g.set(H),iE(r,H)},woe=(r,g,B,H)=>{if(H!==B.get()){if(!_t(g,H))throw new Error(`Editor mode '${H}' is invalid`);r.initialized?Xj(r,B,g,H):r.on("init",()=>Xj(r,B,g,H))}},Ooe=(r,g,B)=>{if(ce(_oe,g))throw new Error(`Cannot override default mode ${g}`);return{...r,[g]:{...B,deactivate:()=>{try{B.deactivate()}catch(H){console.error(`problem while deactivating editor mode ${g}:`,H)}}}}},Soe=r=>{const g=mr("design"),B=mr({design:{activate:k,deactivate:k,editorReadOnly:!1},readonly:{activate:k,deactivate:k,editorReadOnly:!0}});return aoe(r),doe(r),{isReadOnly:()=>h1(r),set:H=>woe(r,B.get(),g,H),get:()=>g.get(),register:(H,re)=>{B.set(Ooe(B.get(),H,re))}}},vL=mo.each,yL=mo.explode,Gj={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Kj=mo.makeMap("alt,ctrl,shift,meta,access"),koe=r=>r in Kj,Toe=r=>{const g={},B=fr.os.isMacOS()||fr.os.isiOS();vL(yL(r.toLowerCase(),"+"),be=>{koe(be)?g[be]=!0:/^[0-9]{2,}$/.test(be)?g.keyCode=parseInt(be,10):(g.charCode=be.charCodeAt(0),g.keyCode=Gj[be]||be.toUpperCase().charCodeAt(0))});const H=[g.keyCode];let re;for(re in Kj)g[re]?H.push(re):g[re]=!1;return g.id=H.join(","),g.access&&(g.alt=!0,B?g.ctrl=!0:g.shift=!0),g.meta&&(B?g.meta=!0:(g.ctrl=!0,g.meta=!1)),g};class Jj{constructor(g){this.shortcuts={},this.pendingPatterns=[],this.editor=g;const B=this;g.on("keyup keypress keydown",H=>{(B.hasModifier(H)||B.isFunctionKey(H))&&!H.isDefaultPrevented()&&(vL(B.shortcuts,re=>{B.matchShortcut(H,re)&&(B.pendingPatterns=re.subpatterns.slice(0),H.type==="keydown"&&B.executeShortcutAction(re))}),B.matchShortcut(H,B.pendingPatterns[0])&&(B.pendingPatterns.length===1&&H.type==="keydown"&&B.executeShortcutAction(B.pendingPatterns[0]),B.pendingPatterns.shift()))})}add(g,B,H,re){const be=this,Re=be.normalizeCommandFunc(H);return vL(yL(mo.trim(g)),Ke=>{const ct=be.createShortcut(Ke,B,Re,re);be.shortcuts[ct.id]=ct}),!0}remove(g){const B=this.createShortcut(g);return this.shortcuts[B.id]?(delete this.shortcuts[B.id],!0):!1}normalizeCommandFunc(g){const B=this,H=g;return typeof H=="string"?()=>{B.editor.execCommand(H,!1,null)}:mo.isArray(H)?()=>{B.editor.execCommand(H[0],H[1],H[2])}:H}createShortcut(g,B,H,re){const be=mo.map(yL(g,">"),Toe);return be[be.length-1]=mo.extend(be[be.length-1],{func:H,scope:re||this.editor}),mo.extend(be[0],{desc:this.editor.translate(B),subpatterns:be.slice(1)})}hasModifier(g){return g.altKey||g.ctrlKey||g.metaKey}isFunctionKey(g){return g.type==="keydown"&&g.keyCode>=112&&g.keyCode<=123}matchShortcut(g,B){return!B||B.ctrl!==g.ctrlKey||B.meta!==g.metaKey||B.alt!==g.altKey||B.shift!==g.shiftKey?!1:g.keyCode===B.keyCode||g.charCode&&g.charCode===B.charCode?(g.preventDefault(),!0):!1}executeShortcutAction(g){return g.func?g.func.call(g.scope):null}}const Coe=()=>{const r={},g={},B={},H={},re={},be={},Re={},Ke={},ct=(Wt,Jt)=>(ln,kn)=>{Wt[ln.toLowerCase()]={...kn,type:Jt}},kt=(Wt,Jt)=>H[Wt.toLowerCase()]=Jt;return{addButton:ct(r,"button"),addGroupToolbarButton:ct(r,"grouptoolbarbutton"),addToggleButton:ct(r,"togglebutton"),addMenuButton:ct(r,"menubutton"),addSplitButton:ct(r,"splitbutton"),addMenuItem:ct(g,"menuitem"),addNestedMenuItem:ct(g,"nestedmenuitem"),addToggleMenuItem:ct(g,"togglemenuitem"),addAutocompleter:ct(B,"autocompleter"),addContextMenu:ct(re,"contextmenu"),addContextToolbar:ct(be,"contexttoolbar"),addContextForm:ct(be,"contextform"),addSidebar:ct(Re,"sidebar"),addView:ct(Ke,"views"),addIcon:kt,getAll:()=>({buttons:r,menuItems:g,icons:H,popups:B,contextMenus:re,contextToolbars:be,sidebars:Re,views:Ke})}},Aoe=()=>{const r=Coe();return{addAutocompleter:r.addAutocompleter,addButton:r.addButton,addContextForm:r.addContextForm,addContextMenu:r.addContextMenu,addContextToolbar:r.addContextToolbar,addIcon:r.addIcon,addMenuButton:r.addMenuButton,addMenuItem:r.addMenuItem,addNestedMenuItem:r.addNestedMenuItem,addSidebar:r.addSidebar,addSplitButton:r.addSplitButton,addToggleButton:r.addToggleButton,addGroupToolbarButton:r.addGroupToolbarButton,addToggleMenuItem:r.addToggleMenuItem,addView:r.addView,getAll:r.getAll}},fO=Nl.DOM,eQ=mo.extend,tQ=mo.each;class gA{constructor(g,B,H){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=H,this.documentBaseUrl=H.documentBaseURL,eQ(this,qj);const re=this;this.id=g,this.hidden=!1;const be=Pre(H.defaultOptions,B);this.options=xoe(re,be,B),ac(re);const Re=this.options.get;Re("deprecation_warnings")&&JX(B,be);const Ke=Re("suffix");Ke&&(H.suffix=Ke),this.suffix=H.suffix;const ct=Re("base_url");ct&&H._setBaseUrl(ct),this.baseUri=H.baseURI;const kt=G1(re);kt&&(Mm.ScriptLoader._setReferrerPolicy(kt),Nl.DOM.styleSheetLoader._setReferrerPolicy(kt));const Wt=Eb(re);E(Wt)&&Nl.DOM.styleSheetLoader._setContentCssCors(Wt),su.languageLoad=Re("language_load"),su.baseURL=H.baseURL,this.setDirty(!1),this.documentBaseURI=new Ih(il(re),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=ev(re),this.hasVisual=wd(re),this.shortcuts=new Jj(this),this.editorCommands=new dL(this),Kre(this);const Jt=Re("cache_suffix");Jt&&(fr.cacheSuffix=Jt.replace(/^[\?\&]+/,"")),this.ui={registry:Aoe(),styleSheetLoader:void 0,show:k,hide:k,setEnabled:k,isEnabled:q},this.mode=Soe(re),H.dispatch("SetupEditor",{editor:this});const ln=Pb(re);C(ln)&&ln.call(re,re)}render(){Sre(this)}focus(g){this.execCommand("mceFocus",!1,g)}hasFocus(){return Mw(this)}translate(g){return Du.translate(g)}getParam(g,B,H){const re=this.options;return re.isRegistered(g)||(E(H)?re.register(g,{processor:H,default:B}):re.register(g,{processor:q,default:B})),!re.isSet(g)&&!M(B)?B:re.get(g)}hasPlugin(g,B){return ce(nv(this),g)?B?a4.get(g)!==void 0:!0:!1}nodeChanged(g){this._nodeChangeDispatcher.nodeChanged(g)}addCommand(g,B,H){this.editorCommands.addCommand(g,B,H)}addQueryStateHandler(g,B,H){this.editorCommands.addQueryStateHandler(g,B,H)}addQueryValueHandler(g,B,H){this.editorCommands.addQueryValueHandler(g,B,H)}addShortcut(g,B,H,re){this.shortcuts.add(g,B,H,re)}execCommand(g,B,H,re){return this.editorCommands.execCommand(g,B,H,re)}queryCommandState(g){return this.editorCommands.queryCommandState(g)}queryCommandValue(g){return this.editorCommands.queryCommandValue(g)}queryCommandSupported(g){return this.editorCommands.queryCommandSupported(g)}show(){const g=this;g.hidden&&(g.hidden=!1,g.inline?g.getBody().contentEditable="true":(fO.show(g.getContainer()),fO.hide(g.id)),g.load(),g.dispatch("show"))}hide(){const g=this;g.hidden||(g.save(),g.inline?(g.getBody().contentEditable="false",g===g.editorManager.focusedEditor&&(g.editorManager.focusedEditor=null)):(fO.hide(g.getContainer()),fO.setStyle(g.id,"display",g.orgDisplay)),g.hidden=!0,g.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(g,B){this.dispatch("ProgressState",{state:g,time:B})}load(g={}){const B=this,H=B.getElement();if(B.removed)return"";if(H){const re={...g,load:!0},be=jt(H)?H.value:H.innerHTML,Re=B.setContent(be,re);return re.no_events||B.dispatch("LoadContent",{...re,element:H}),Re}else return""}save(g={}){const B=this;let H=B.getElement();if(!H||!B.initialized||B.removed)return"";const re={...g,save:!0,element:H};let be=B.getContent(re);const Re={...re,content:be};if(Re.no_events||B.dispatch("SaveContent",Re),Re.format==="raw"&&B.dispatch("RawSaveContent",Re),be=Re.content,jt(H))H.value=be;else{(g.is_removing||!B.inline)&&(H.innerHTML=be);const Ke=fO.getParent(B.id,"form");Ke&&tQ(Ke.elements,ct=>ct.name===B.id?(ct.value=be,!1):!0)}return Re.element=re.element=H=null,Re.set_dirty!==!1&&B.setDirty(!1),be}setContent(g,B){return bP(this,g,B)}getContent(g){return MC(this,g)}insertContent(g,B){B&&(g=eQ({content:g},B)),this.execCommand("mceInsertContent",!1,g)}resetContent(g){g===void 0?bP(this,this.startContent,{format:"raw"}):bP(this,g),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(g){const B=!this.isNotDirty;this.isNotDirty=!g,g&&g!==B&&this.dispatch("dirty")}getContainer(){const g=this;return g.container||(g.container=g.editorContainer||fO.get(g.id+"_parent")),g.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=fO.get(this.id)),this.targetElm}getWin(){const g=this;if(!g.contentWindow){const B=g.iframeElement;B&&(g.contentWindow=B.contentWindow)}return g.contentWindow}getDoc(){const g=this;if(!g.contentDocument){const B=g.getWin();B&&(g.contentDocument=B.document)}return g.contentDocument}getBody(){var g,B;const H=this.getDoc();return(B=(g=this.bodyElement)!==null&&g!==void 0?g:H==null?void 0:H.body)!==null&&B!==void 0?B:null}convertURL(g,B,H){const re=this,be=re.options.get,Re=t2(re);if(C(Re))return Re.call(re,g,H,!0,B);if(!be("convert_urls")||H==="link"||_(H)&&H.nodeName==="LINK"||g.indexOf("file:")===0||g.length===0)return g;const Ke=new Ih(g);return Ke.protocol!=="http"&&Ke.protocol!=="https"&&Ke.protocol!==""?g:be("relative_urls")?re.documentBaseURI.toRelative(g):(g=re.documentBaseURI.toAbsolute(g,be("remove_script_host")),g)}addVisual(g){Rre(this,g)}setEditableRoot(g){Rj(this,g)}hasEditableRoot(){return kre(this)}remove(){nG(this)}destroy(g){rG(this,g)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const P4=Nl.DOM,vA=mo.each;let nQ=!1,yA,rm=[];const bA=r=>{const g=r.type;vA(H2.get(),B=>{switch(g){case"scroll":B.dispatch("ScrollWindow",r);break;case"resize":B.dispatch("ResizeWindow",r);break}})},rQ=r=>{if(r!==nQ){const g=Nl.DOM;r?(g.bind(window,"resize",bA),g.bind(window,"scroll",bA)):(g.unbind(window,"resize",bA),g.unbind(window,"scroll",bA)),nQ=r}},bL=r=>{const g=rm;return rm=Te(rm,B=>r!==B),H2.activeEditor===r&&(H2.activeEditor=rm.length>0?rm[0]:null),H2.focusedEditor===r&&(H2.focusedEditor=null),g.length!==rm.length},Nfe=r=>{r&&r.initialized&&!(r.getContainer()||r.getBody()).parentNode&&(bL(r),r.unbindAllNativeEvents(),r.destroy(!0),r.removed=!0)},oQ=document.compatMode!=="CSS1Compat",H2={...mL,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"7",minorVersion:"2.0",releaseDate:"2024-06-19",i18n:Du,activeEditor:null,focusedEditor:null,setup(){const r=this;let g="",B="",H=Ih.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/"));const re=window.tinymce||window.tinyMCEPreInit;if(re)g=re.base||re.baseURL,B=re.suffix;else{const be=document.getElementsByTagName("script");for(let Re=0;Re{su.PluginManager.urls[be]=re})},init(r){const g=this;let B;const H=mo.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),re=(Wt,Jt)=>Wt.inline&&Jt.tagName.toLowerCase()in H,be=Wt=>{let Jt=Wt.id;return Jt||(Jt=Ct(Wt,"name").filter(ln=>!P4.get(ln)).getOrThunk(P4.uniqueId),Wt.setAttribute("id",Jt)),Jt},Re=Wt=>{const Jt=r[Wt];if(Jt)return Jt.apply(g,[])},Ke=Wt=>fr.browser.isIE()||fr.browser.isEdge()?(IC("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/7/support/#supportedwebbrowsers"),[]):oQ?(IC("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):v(Wt.selector)?P4.select(Wt.selector):E(Wt.target)?[Wt.target]:[];let ct=Wt=>{B=Wt};const kt=()=>{let Wt=0;const Jt=[];let ln;const kn=(Vn,Rn,qn)=>{const pr=new gA(Vn,Rn,g);Jt.push(pr),pr.on("init",()=>{++Wt===ln.length&&ct(Jt)}),pr.targetElm=pr.targetElm||qn,pr.render()};P4.unbind(window,"ready",kt),Re("onpageload"),ln=je(Ke(r)),mo.each(ln,Vn=>{Nfe(g.get(Vn.id))}),ln=mo.grep(ln,Vn=>!g.get(Vn.id)),ln.length===0?ct([]):vA(ln,Vn=>{re(r,Vn)?IC("Could not initialize inline editor on invalid inline target element",Vn):kn(be(Vn),r,Vn)})};return P4.bind(window,"ready",kt),new Promise(Wt=>{B?Wt(B):ct=Jt=>{Wt(Jt)}})},get(r){return arguments.length===0?rm.slice(0):v(r)?De(rm,g=>g.id===r).getOr(null):L(r)&&rm[r]?rm[r]:null},add(r){const g=this,B=g.get(r.id);return B===r||(B===null&&rm.push(r),rQ(!0),g.activeEditor=r,g.dispatch("AddEditor",{editor:r}),yA||(yA=H=>{const re=g.dispatch("BeforeUnload");if(re.returnValue)return H.preventDefault(),H.returnValue=re.returnValue,re.returnValue},window.addEventListener("beforeunload",yA))),r},createEditor(r,g){return this.add(new gA(r,g,this))},remove(r){const g=this;let B;if(!r){for(let H=rm.length-1;H>=0;H--)g.remove(rm[H]);return}if(v(r)){vA(P4.select(r),H=>{B=g.get(H.id),B&&g.remove(B)});return}return B=r,x(g.get(B.id))?null:(bL(B)&&g.dispatch("RemoveEditor",{editor:B}),rm.length===0&&window.removeEventListener("beforeunload",yA),B.remove(),rQ(rm.length>0),B)},execCommand(r,g,B){var H;const re=this,be=_(B)?(H=B.id)!==null&&H!==void 0?H:B.index:B;switch(r){case"mceAddEditor":{if(!re.get(be)){const Re=B.options;new gA(be,Re,re).render()}return!0}case"mceRemoveEditor":{const Re=re.get(be);return Re&&Re.remove(),!0}case"mceToggleEditor":{const Re=re.get(be);return Re?(Re.isHidden()?Re.show():Re.hide(),!0):(re.execCommand("mceAddEditor",!1,B),!0)}}return re.activeEditor?re.activeEditor.execCommand(r,g,B):!1},triggerSave:()=>{vA(rm,r=>{r.save()})},addI18n:(r,g)=>{Du.add(r,g)},translate:r=>Du.translate(r),setActive(r){const g=this.activeEditor;this.activeEditor!==r&&(g&&g.dispatch("deactivate",{relatedTarget:r}),r.dispatch("activate",{relatedTarget:g})),this.activeEditor=r},_setBaseUrl(r){this.baseURL=new Ih(this.documentBaseURL).toAbsolute(r.replace(/\/+$/,"")),this.baseURI=new Ih(this.baseURL)}};H2.setup();const Eoe=(()=>{const r=Ys(),g=be=>({items:be,types:nt(be),getType:Re=>Ct(be,Re).getOrUndefined()}),B=be=>{r.set(be)},H=()=>r.get().getOrUndefined(),re=r.clear;return{FakeClipboardItem:g,write:B,read:H,clear:re}})(),iQ=Math.min,R4=Math.max,xA=Math.round,aQ=(r,g,B)=>{let H=g.x,re=g.y;const be=r.w,Re=r.h,Ke=g.w,ct=g.h,kt=(B||"").split("");return kt[0]==="b"&&(re+=ct),kt[1]==="r"&&(H+=Ke),kt[0]==="c"&&(re+=xA(ct/2)),kt[1]==="c"&&(H+=xA(Ke/2)),kt[3]==="b"&&(re-=Re),kt[4]==="r"&&(H-=be),kt[3]==="c"&&(re-=xA(Re/2)),kt[4]==="c"&&(H-=xA(be/2)),dO(H,re,be,Re)},Poe=(r,g,B,H)=>{for(let re=0;re=B.x&&be.x+be.w<=B.w+B.x&&be.y>=B.y&&be.y+be.h<=B.h+B.y)return H[re]}return null},xL=(r,g,B)=>dO(r.x-g,r.y-B,r.w+g*2,r.h+B*2),_L=(r,g)=>{const B=R4(r.x,g.x),H=R4(r.y,g.y),re=iQ(r.x+r.w,g.x+g.w),be=iQ(r.y+r.h,g.y+g.h);return re-B<0||be-H<0?null:dO(B,H,re-B,be-H)},Roe=(r,g,B)=>{let H=r.x,re=r.y,be=r.x+r.w,Re=r.y+r.h;const Ke=g.x+g.w,ct=g.y+g.h,kt=R4(0,g.x-H),Wt=R4(0,g.y-re),Jt=R4(0,be-Ke),ln=R4(0,Re-ct);return H+=kt,re+=Wt,B&&(be+=kt,Re+=Wt,H-=Jt,re-=ln),be-=Jt,Re-=ln,dO(H,re,be-H,Re-re)},dO=(r,g,B,H)=>({x:r,y:g,w:B,h:H}),Loe={inflate:xL,relativePosition:aQ,findBestRelativePosition:Poe,intersect:_L,clamp:Roe,create:dO,fromClientRect:r=>dO(r.left,r.top,r.width,r.height)},Ioe=(r,g,B=1e3)=>{let H=!1,re=null;const be=kt=>(...Wt)=>{H||(H=!0,re!==null&&(clearTimeout(re),re=null),kt.apply(null,Wt))},Re=be(r),Ke=be(g);return{start:(...kt)=>{!H&&re===null&&(re=setTimeout(()=>Ke.apply(null,kt),B))},resolve:Re,reject:Ke}},Doe=(()=>{const r={},g={},B={};return{load:(ct,kt)=>{const Wt=`Script at URL "${kt}" failed to load`,Jt=`Script at URL "${kt}" did not call \`tinymce.Resource.add('${ct}', data)\` within 1 second`;if(r[ct]!==void 0)return r[ct];{const ln=new Promise((kn,Vn)=>{const Rn=Ioe(kn,Vn);g[ct]=Rn.resolve,Mm.ScriptLoader.loadScript(kt).then(()=>Rn.start(Jt),()=>Rn.reject(Wt))});return r[ct]=ln,ln}},add:(ct,kt)=>{g[ct]!==void 0&&(g[ct](kt),delete g[ct]),r[ct]=Promise.resolve(kt),B[ct]=kt},has:ct=>ct in B,get:ct=>B[ct],unload:ct=>{delete r[ct],delete B[ct]}}})(),Boe=()=>(()=>{let r={},g=[];const B={getItem:H=>{const re=r[H];return re||null},setItem:(H,re)=>{g.push(H),r[H]=String(re)},key:H=>g[H],removeItem:H=>{g=g.filter(re=>re===H),delete r[H]},clear:()=>{g=[],r={}},length:0};return Object.defineProperty(B,"length",{get:()=>g.length,configurable:!1,enumerable:!1}),B})();let $k;try{const r="__storage_test__";$k=window.localStorage,$k.setItem(r,r),$k.removeItem(r)}catch{$k=Boe()}var zoe=$k;const Foe={geom:{Rect:Loe},util:{Delay:Tg,Tools:mo,VK:Fo,URI:Ih,EventDispatcher:pL,Observable:mL,I18n:Du,LocalStorage:zoe,ImageUploader:TP},dom:{EventUtils:md,TreeWalker:kc,TextSeeker:Em,DOMUtils:Nl,ScriptLoader:Mm,RangeUtils:To,Serializer:vP,StyleSheetLoader:_m,ControlSelection:Ow,BookmarkManager:ky,Selection:nN,Event:md.Event},html:{Styles:I_,Entities:up,Node:yp,Schema:Np,DomParser:Ry,Writer:vB,Serializer:Yb},Env:fr,AddOnManager:su,Annotator:J0,Formatter:wN,UndoManager:EP,EditorCommands:dL,WindowManager:wP,NotificationManager:hN,EditorObservable:qj,Shortcuts:Jj,Editor:gA,FocusManager:WD,EditorManager:H2,DOM:Nl.DOM,ScriptLoader:Mm.ScriptLoader,PluginManager:a4,ThemeManager:xv,ModelManager:i4,IconManager:o4,Resource:Doe,FakeClipboard:Eoe,trim:mo.trim,isArray:mo.isArray,is:mo.is,toArray:mo.toArray,makeMap:mo.makeMap,each:mo.each,map:mo.map,grep:mo.grep,inArray:mo.inArray,extend:mo.extend,walk:mo.walk,resolve:mo.resolve,explode:mo.explode,_addCacheSuffix:mo._addCacheSuffix},sQ=mo.extend(H2,Foe),wL=r=>{try{t.exports=r}catch{}};(r=>{window.tinymce=r,window.tinyMCE=r})(sQ),wL(sQ)})()})(e$e);(function(){var t=tinymce.util.Tools.resolve("tinymce.ModelManager");const e=(pe,Ce,Ye)=>{var st;return Ye(pe,Ce.prototype)?!0:((st=pe.constructor)===null||st===void 0?void 0:st.name)===Ce.name},o=pe=>{const Ce=typeof pe;return pe===null?"null":Ce==="object"&&Array.isArray(pe)?"array":Ce==="object"&&e(pe,String,(Ye,st)=>st.isPrototypeOf(Ye))?"string":Ce},f=pe=>Ce=>o(Ce)===pe,P=pe=>Ce=>typeof Ce===pe,d=pe=>Ce=>pe===Ce,l=f("string"),n=f("object"),c=f("array"),b=d(null),i=P("boolean"),O=d(void 0),w=pe=>pe==null,y=pe=>!w(pe),p=P("function"),a=P("number"),u=()=>{},h=(pe,Ce)=>(...Ye)=>pe(Ce.apply(null,Ye)),m=(pe,Ce)=>Ye=>pe(Ce(Ye)),v=pe=>()=>pe,_=pe=>pe,S=(pe,Ce)=>pe===Ce;function A(pe,...Ce){return(...Ye)=>{const st=Ce.concat(Ye);return pe.apply(null,st)}}const x=pe=>Ce=>!pe(Ce),R=pe=>()=>{throw new Error(pe)},M=pe=>pe(),T=v(!1),E=v(!0);class C{constructor(Ce,Ye){this.tag=Ce,this.value=Ye}static some(Ce){return new C(!0,Ce)}static none(){return C.singletonNone}fold(Ce,Ye){return this.tag?Ye(this.value):Ce()}isSome(){return this.tag}isNone(){return!this.tag}map(Ce){return this.tag?C.some(Ce(this.value)):C.none()}bind(Ce){return this.tag?Ce(this.value):C.none()}exists(Ce){return this.tag&&Ce(this.value)}forall(Ce){return!this.tag||Ce(this.value)}filter(Ce){return!this.tag||Ce(this.value)?this:C.none()}getOr(Ce){return this.tag?this.value:Ce}or(Ce){return this.tag?this:Ce}getOrThunk(Ce){return this.tag?this.value:Ce()}orThunk(Ce){return this.tag?this:Ce()}getOrDie(Ce){if(this.tag)return this.value;throw new Error(Ce??"Called getOrDie on None")}static from(Ce){return y(Ce)?C.some(Ce):C.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Ce){this.tag&&Ce(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}C.singletonNone=new C(!1);const L=Array.prototype.slice,D=Array.prototype.indexOf,k=Array.prototype.push,I=(pe,Ce)=>D.call(pe,Ce),z=(pe,Ce)=>I(pe,Ce)>-1,$=(pe,Ce)=>{for(let Ye=0,st=pe.length;Ye{const Ye=[];for(let st=0;st{const Ye=pe.length,st=new Array(Ye);for(let St=0;St{for(let Ye=0,st=pe.length;Ye{for(let Ye=pe.length-1;Ye>=0;Ye--){const st=pe[Ye];Ce(st,Ye)}},te=(pe,Ce)=>{const Ye=[],st=[];for(let St=0,Ut=pe.length;St{const Ye=[];for(let st=0,St=pe.length;st(X(pe,(st,St)=>{Ye=Ce(Ye,st,St)}),Ye),oe=(pe,Ce,Ye)=>(U(pe,(st,St)=>{Ye=Ce(Ye,st,St)}),Ye),q=(pe,Ce,Ye)=>{for(let st=0,St=pe.length;stq(pe,Ce,T),ee=(pe,Ce)=>{for(let Ye=0,st=pe.length;Ye{const Ce=[];for(let Ye=0,st=pe.length;Yeme(j(pe,Ce)),se=(pe,Ce)=>{for(let Ye=0,st=pe.length;Ye{const Ce=L.call(pe,0);return Ce.reverse(),Ce},ce=(pe,Ce)=>{const Ye={};for(let st=0,St=pe.length;st{const Ye=L.call(pe,0);return Ye.sort(Ce),Ye},ve=(pe,Ce)=>Ce>=0&&Ceve(pe,0),_e=pe=>ve(pe,pe.length-1),Se=(pe,Ce)=>{for(let Ye=0;Ye{const Ye=Te(pe);for(let st=0,St=Ye.length;stDe(pe,(Ye,st)=>({k:st,v:Ce(Ye,st)})),De=(pe,Ce)=>{const Ye={};return Ie(pe,(st,St)=>{const Ut=Ce(st,St);Ye[Ut.k]=Ut.v}),Ye},He=pe=>(Ce,Ye)=>{pe[Ye]=Ce},Ve=(pe,Ce,Ye,st)=>{Ie(pe,(St,Ut)=>{(Ce(St,Ut)?Ye:st)(St,Ut)})},$e=(pe,Ce)=>{const Ye={};return Ve(pe,Ce,He(Ye),u),Ye},Oe=(pe,Ce)=>{const Ye=[];return Ie(pe,(st,St)=>{Ye.push(Ce(st,St))}),Ye},ke=pe=>Oe(pe,_),Le=(pe,Ce)=>We(pe,Ce)?C.from(pe[Ce]):C.none(),We=(pe,Ce)=>Pe.call(pe,Ce),Ue=(pe,Ce)=>We(pe,Ce)&&pe[Ce]!==void 0&&pe[Ce]!==null,Ze=pe=>{for(const Ce in pe)if(Pe.call(pe,Ce))return!1;return!0},Xe=typeof window<"u"?window:Function("return this;")(),tt=(pe,Ce)=>{let Ye=Ce??Xe;for(let st=0;st{const Ye=pe.split(".");return tt(Ye,Ce)},Ne=(pe,Ce)=>Ee(pe,Ce),je=(pe,Ce)=>{const Ye=Ne(pe,Ce);if(Ye==null)throw new Error(pe+" not available on this browser");return Ye},nt=Object.getPrototypeOf,ot=pe=>je("HTMLElement",pe),Ge=pe=>{const Ce=Ee("ownerDocument.defaultView",pe);return n(pe)&&(ot(Ce).prototype.isPrototypeOf(pe)||/^HTML\w*Element$/.test(nt(pe).constructor.name))},ht=8,pt=9,wt=11,Dt=1,It=3,qt=pe=>pe.dom.nodeName.toLowerCase(),en=pe=>pe.dom.nodeType,Gt=pe=>Ce=>en(Ce)===pe,Ct=pe=>en(pe)===ht||qt(pe)==="#comment",_t=pe=>nn(pe)&&Ge(pe.dom),nn=Gt(Dt),gn=Gt(It),bn=Gt(pt),mn=Gt(wt),vt=pe=>Ce=>nn(Ce)&&qt(Ce)===pe,bt=(pe,Ce,Ye)=>{if(l(Ye)||i(Ye)||a(Ye))pe.setAttribute(Ce,Ye+"");else throw console.error("Invalid call to Attribute.set. Key ",Ce,":: Value ",Ye,":: Element ",pe),new Error("Attribute value was not simple")},lt=(pe,Ce,Ye)=>{bt(pe.dom,Ce,Ye)},yt=(pe,Ce)=>{const Ye=pe.dom;Ie(Ce,(st,St)=>{bt(Ye,St,st)})},zt=(pe,Ce)=>{Ie(Ce,(Ye,st)=>{Ye.fold(()=>{at(pe,st)},St=>{bt(pe.dom,st,St)})})},Rt=(pe,Ce)=>{const Ye=pe.dom.getAttribute(Ce);return Ye===null?void 0:Ye},it=(pe,Ce)=>C.from(Rt(pe,Ce)),at=(pe,Ce)=>{pe.dom.removeAttribute(Ce)},Lt=pe=>oe(pe.dom.attributes,(Ce,Ye)=>(Ce[Ye.name]=Ye.value,Ce),{}),xt=(pe,Ce)=>{const st=(Ce||document).createElement("div");if(st.innerHTML=pe,!st.hasChildNodes()||st.childNodes.length>1){const St="HTML does not have a single root node";throw console.error(St,pe),new Error(St)}return Yt(st.childNodes[0])},Zt=(pe,Ce)=>{const st=(Ce||document).createElement(pe);return Yt(st)},Xt=(pe,Ce)=>{const st=(Ce||document).createTextNode(pe);return Yt(st)},Yt=pe=>{if(pe==null)throw new Error("Node cannot be null or undefined");return{dom:pe}},Pt={fromHtml:xt,fromTag:Zt,fromText:Xt,fromDom:Yt,fromPoint:(pe,Ce,Ye)=>C.from(pe.dom.elementFromPoint(Ce,Ye)).map(Yt)},tn=(pe,Ce)=>{const Ye=pe.dom;if(Ye.nodeType!==Dt)return!1;{const st=Ye;if(st.matches!==void 0)return st.matches(Ce);if(st.msMatchesSelector!==void 0)return st.msMatchesSelector(Ce);if(st.webkitMatchesSelector!==void 0)return st.webkitMatchesSelector(Ce);if(st.mozMatchesSelector!==void 0)return st.mozMatchesSelector(Ce);throw new Error("Browser lacks native selectors")}},Kt=pe=>pe.nodeType!==Dt&&pe.nodeType!==pt&&pe.nodeType!==wt||pe.childElementCount===0,fn=(pe,Ce)=>{const Ye=Ce===void 0?document:Ce.dom;return Kt(Ye)?[]:j(Ye.querySelectorAll(pe),Pt.fromDom)},dn=(pe,Ce)=>{const Ye=Ce===void 0?document:Ce.dom;return Kt(Ye)?C.none():C.from(Ye.querySelector(pe)).map(Pt.fromDom)},vn=(pe,Ce)=>pe.dom===Ce.dom,Nn=(pe,Ce)=>{const Ye=pe.dom,st=Ce.dom;return Ye===st?!1:Ye.contains(st)},er=tn,En=pe=>Pt.fromDom(pe.dom.ownerDocument),In=pe=>bn(pe)?pe:En(pe),jn=pe=>Pt.fromDom(In(pe).dom.documentElement),xr=pe=>Pt.fromDom(In(pe).dom.defaultView),Sr=pe=>C.from(pe.dom.parentNode).map(Pt.fromDom),ar=pe=>C.from(pe.dom.parentElement).map(Pt.fromDom),Fn=(pe,Ce)=>{const Ye=p(Ce)?Ce:T;let st=pe.dom;const St=[];for(;st.parentNode!==null&&st.parentNode!==void 0;){const Ut=st.parentNode,un=Pt.fromDom(Ut);if(St.push(un),Ye(un)===!0)break;st=Ut}return St},ir=pe=>C.from(pe.dom.previousSibling).map(Pt.fromDom),Wn=pe=>C.from(pe.dom.nextSibling).map(Pt.fromDom),Kn=pe=>j(pe.dom.childNodes,Pt.fromDom),_r=(pe,Ce)=>{const Ye=pe.dom.childNodes;return C.from(Ye[Ce]).map(Pt.fromDom)},Ir=pe=>_r(pe,0),zr=(pe,Ce)=>{Sr(pe).each(st=>{st.dom.insertBefore(Ce.dom,pe.dom)})},Fr=(pe,Ce)=>{Wn(pe).fold(()=>{Sr(pe).each(St=>{$r(St,Ce)})},st=>{zr(st,Ce)})},Rr=(pe,Ce)=>{Ir(pe).fold(()=>{$r(pe,Ce)},st=>{pe.dom.insertBefore(Ce.dom,st.dom)})},$r=(pe,Ce)=>{pe.dom.appendChild(Ce.dom)},Kr=(pe,Ce,Ye)=>{_r(pe,Ye).fold(()=>{$r(pe,Ce)},st=>{zr(st,Ce)})},Co=(pe,Ce)=>{zr(pe,Ce),$r(Ce,pe)},so=(pe,Ce)=>{U(Ce,(Ye,st)=>{const St=st===0?pe:Ce[st-1];Fr(St,Ye)})},So=(pe,Ce)=>{U(Ce,Ye=>{$r(pe,Ye)})},go=pe=>{pe.dom.textContent="",U(Kn(pe),Ce=>{li(Ce)})},li=pe=>{const Ce=pe.dom;Ce.parentNode!==null&&Ce.parentNode.removeChild(Ce)},Pn=pe=>{const Ce=Kn(pe);Ce.length>0&&so(pe,Ce),li(pe)},Yn=(pe,Ce)=>Pt.fromDom(pe.dom.cloneNode(Ce)),br=pe=>Yn(pe,!1),dr=pe=>Yn(pe,!0),Cr=(pe,Ce)=>{const Ye=Pt.fromTag(Ce),st=Lt(pe);return yt(Ye,st),Ye},io=(pe,Ce)=>{const Ye=Cr(pe,Ce),st=Kn(dr(pe));return So(Ye,st),Ye},Qr=(pe,Ce)=>{const Ye=Cr(pe,Ce);Fr(pe,Ye);const st=Kn(pe);return So(Ye,st),li(pe),Ye},Wr=["tfoot","thead","tbody","colgroup"],bo=pe=>z(Wr,pe),Bn=(pe,Ce)=>({rows:pe,columns:Ce}),hr=(pe,Ce)=>({row:pe,column:Ce}),hn=(pe,Ce,Ye)=>({element:pe,rowspan:Ce,colspan:Ye}),zn=(pe,Ce,Ye,st)=>({element:pe,rowspan:Ce,colspan:Ye,isNew:st}),Zn=(pe,Ce,Ye,st,St,Ut)=>({element:pe,rowspan:Ce,colspan:Ye,row:st,column:St,isLocked:Ut}),yr=(pe,Ce,Ye)=>({element:pe,cells:Ce,section:Ye}),gr=(pe,Ce,Ye,st)=>({element:pe,cells:Ce,section:Ye,isNew:st}),vr=(pe,Ce,Ye)=>({element:pe,isNew:Ce,isLocked:Ye}),nr=(pe,Ce,Ye,st)=>({element:pe,cells:Ce,section:Ye,isNew:st}),Qn=(pe,Ce,Ye,st)=>({startRow:pe,startCol:Ce,finishRow:Ye,finishCol:st}),Hn=(pe,Ce,Ye)=>({element:pe,colspan:Ce,column:Ye}),tr=(pe,Ce)=>({element:pe,columns:Ce}),cr=pe=>mn(pe)&&y(pe.dom.host),Lr=p(Element.prototype.attachShadow)&&p(Node.prototype.getRootNode),Er=v(Lr),Vr=Lr?pe=>Pt.fromDom(pe.dom.getRootNode()):In,to=pe=>{const Ce=Vr(pe);return cr(Ce)?C.some(Ce):C.none()},_o=pe=>Pt.fromDom(pe.dom.host),fr=pe=>{if(Er()&&y(pe.target)){const Ce=Pt.fromDom(pe.target);if(nn(Ce)&&Eo(Ce)&&pe.composed&&pe.composedPath){const Ye=pe.composedPath();if(Ye)return ye(Ye)}}return C.from(pe.target)},Eo=pe=>y(pe.dom.shadowRoot),ao=pe=>{const Ce=gn(pe)?pe.dom.parentNode:pe.dom;if(Ce==null||Ce.ownerDocument===null)return!1;const Ye=Ce.ownerDocument;return to(Pt.fromDom(Ce)).fold(()=>Ye.body.contains(Ce),m(ao,_o))},co=()=>Go(Pt.fromDom(document)),Go=pe=>{const Ce=pe.dom.body;if(Ce==null)throw new Error("Body is not available yet");return Pt.fromDom(Ce)},po=(pe,Ce,Ye)=>W(Fn(pe,Ye),Ce),qo=(pe,Ce)=>W(Kn(pe),Ce),Ao=(pe,Ce)=>{let Ye=[];return U(Kn(pe),st=>{Ce(st)&&(Ye=Ye.concat([st])),Ye=Ye.concat(Ao(st,Ce))}),Ye},oi=(pe,Ce,Ye)=>po(pe,st=>tn(st,Ce),Ye),ko=(pe,Ce)=>qo(pe,Ye=>tn(Ye,Ce)),ra=(pe,Ce)=>fn(Ce,pe);var mo=(pe,Ce,Ye,st,St)=>pe(Ye,st)?C.some(Ye):p(St)&&St(Ye)?C.none():Ce(Ye,st,St);const Aa=(pe,Ce,Ye)=>{let st=pe.dom;const St=p(Ye)?Ye:T;for(;st.parentNode;){st=st.parentNode;const Ut=Pt.fromDom(st);if(Ce(Ut))return C.some(Ut);if(St(Ut))break}return C.none()},Xl=(pe,Ce,Ye)=>mo((St,Ut)=>Ut(St),Aa,pe,Ce,Ye),Na=(pe,Ce)=>{const Ye=St=>Ce(Pt.fromDom(St));return Y(pe.dom.childNodes,Ye).map(Pt.fromDom)},us=(pe,Ce)=>{const Ye=st=>{for(let St=0;StAa(pe,st=>tn(st,Ce),Ye),ga=(pe,Ce)=>Na(pe,Ye=>tn(Ye,Ce)),Ku=(pe,Ce)=>dn(Ce,pe),qc=(pe,Ce,Ye)=>mo((St,Ut)=>tn(St,Ut),wc,pe,Ce,Ye),Yd=(pe,Ce,Ye=S)=>pe.exists(st=>Ye(st,Ce)),Ql=pe=>{const Ce=[],Ye=st=>{Ce.push(st)};for(let st=0;stpe!=null?Ce(pe):C.none(),Nf=(pe,Ce)=>pe?C.some(Ce):C.none(),mm=(pe,Ce)=>pe.substring(Ce),Ws=(pe,Ce,Ye)=>Ce===""||pe.length>=Ce.length&&pe.substr(Ye,Ye+Ce.length)===Ce,gm=(pe,Ce)=>pc(pe,Ce)?mm(pe,Ce.length):pe,Gl=(pe,Ce,Ye=0,st)=>{const St=pe.indexOf(Ce,Ye);return St!==-1?O(st)?!0:St+Ce.length<=st:!1},pc=(pe,Ce)=>Ws(pe,Ce,0),Cu=(pe,Ce)=>Ws(pe,Ce,pe.length-Ce.length),la=(pe=>Ce=>Ce.replace(pe,""))(/^\s+|\s+$/g),cc=pe=>pe.length>0,pu=pe=>{const Ce=parseFloat(pe);return isNaN(Ce)?C.none():C.some(Ce)},ju=pe=>pe.style!==void 0&&p(pe.style.getPropertyValue),iu=(pe,Ce,Ye)=>{if(!l(Ye))throw console.error("Invalid call to CSS.set. Property ",Ce,":: Value ",Ye,":: Element ",pe),new Error("CSS value must be a string: "+Ye);ju(pe)&&pe.style.setProperty(Ce,Ye)},mc=(pe,Ce)=>{ju(pe)&&pe.style.removeProperty(Ce)},ks=(pe,Ce,Ye)=>{const st=pe.dom;iu(st,Ce,Ye)},$f=(pe,Ce)=>{const Ye=pe.dom;Ie(Ce,(st,St)=>{iu(Ye,St,st)})},yf=(pe,Ce)=>{const Ye=pe.dom,St=window.getComputedStyle(Ye).getPropertyValue(Ce);return St===""&&!ao(pe)?Ju(Ye,Ce):St},Ju=(pe,Ce)=>ju(pe)?pe.style.getPropertyValue(Ce):"",$h=(pe,Ce)=>{const Ye=pe.dom,st=Ju(Ye,Ce);return C.from(st).filter(St=>St.length>0)},Es=(pe,Ce)=>{const Ye=pe.dom;mc(Ye,Ce),Yd(it(pe,"style").map(la),"")&&at(pe,"style")},ef=(pe,Ce)=>{const Ye=pe.dom,st=Ce.dom;ju(Ye)&&ju(st)&&(st.style.cssText=Ye.style.cssText)},uc=(pe,Ce,Ye=0)=>it(pe,Ce).map(st=>parseInt(st,10)).getOr(Ye),sd=(pe,Ce)=>uc(pe,Ce,1),Vf=pe=>vt("col")(pe)?uc(pe,"span",1)>1:sd(pe,"colspan")>1,gc=pe=>sd(pe,"rowspan")>1,ld=(pe,Ce)=>parseInt(yf(pe,Ce),10),Mp=v(10),Xd=v(10),bf=(pe,Ce)=>mh(pe,Ce,E),mh=(pe,Ce,Ye)=>he(Kn(pe),st=>tn(st,Ce)?Ye(st)?[st]:[]:mh(st,Ce,Ye)),cd=(pe,Ce,Ye=T)=>{if(Ye(Ce))return C.none();if(z(pe,qt(Ce)))return C.some(Ce);const st=St=>tn(St,"table")||Ye(St);return wc(Ce,pe.join(","),st)},Vh=(pe,Ce)=>cd(["td","th"],pe,Ce),xf=pe=>bf(pe,"th,td"),tf=pe=>tn(pe,"colgroup")?ko(pe,"col"):he(ud(pe),Ce=>ko(Ce,"col")),Au=(pe,Ce)=>qc(pe,"table",Ce),_f=pe=>bf(pe,"tr"),ud=pe=>Au(pe).fold(v([]),Ce=>ko(Ce,"colgroup")),nf=(pe,Ce)=>j(pe,Ye=>{if(qt(Ye)==="colgroup"){const st=j(tf(Ye),St=>{const Ut=uc(St,"span",1);return hn(St,1,Ut)});return yr(Ye,st,"colgroup")}else{const st=j(xf(Ye),St=>{const Ut=uc(St,"rowspan",1),un=uc(St,"colspan",1);return hn(St,Ut,un)});return yr(Ye,st,Ce(Ye))}}),gh=pe=>Sr(pe).map(Ce=>{const Ye=qt(Ce);return bo(Ye)?Ye:"tbody"}).getOr("tbody"),rs=pe=>{const Ce=_f(pe),st=[...ud(pe),...Ce];return nf(st,gh)},ep=(pe,Ce)=>nf(pe,()=>Ce),Ep=pe=>{let Ce=!1,Ye;return(...st)=>(Ce||(Ce=!0,Ye=pe.apply(null,st)),Ye)},vm=(pe,Ce,Ye,st)=>{const St=pe.isiOS()&&/ipad/i.test(Ye)===!0,Ut=pe.isiOS()&&!St,un=pe.isiOS()||pe.isAndroid(),Tn=un||st("(pointer:coarse)"),$n=St||!Ut&&un&&st("(min-device-width:768px)"),ur=Ut||un&&!$n,Nr=Ce.isSafari()&&pe.isiOS()&&/safari/i.test(Ye)===!1,Ro=!ur&&!$n&&!Nr;return{isiPad:v(St),isiPhone:v(Ut),isTablet:v($n),isPhone:v(ur),isTouch:v(Tn),isAndroid:pe.isAndroid,isiOS:pe.isiOS,isWebView:v(Nr),isDesktop:v(Ro)}},Pd=(pe,Ce)=>{for(let Ye=0;Ye{const Ye=Pd(pe,Ce);if(!Ye)return{major:0,minor:0};const st=St=>Number(Ce.replace(Ye,"$"+St));return wf(st(1),st(2))},sr=(pe,Ce)=>{const Ye=String(Ce).toLowerCase();return pe.length===0?Pp():M0(pe,Ye)},Pp=()=>wf(0,0),wf=(pe,Ce)=>({major:pe,minor:Ce}),Of={nu:wf,detect:sr,unknown:Pp},Rp=(pe,Ce)=>Se(Ce.brands,Ye=>{const st=Ye.brand.toLowerCase();return Y(pe,St=>{var Ut;return st===((Ut=St.brand)===null||Ut===void 0?void 0:Ut.toLowerCase())}).map(St=>({current:St.name,version:Of.nu(parseInt(Ye.version,10),0)}))}),Gd=(pe,Ce)=>{const Ye=String(Ce).toLowerCase();return Y(pe,st=>st.search(Ye))},Fa=(pe,Ce)=>Gd(pe,Ce).map(Ye=>{const st=Of.detect(Ye.versionRegexes,Ce);return{current:Ye.name,version:st}}),Qu=(pe,Ce)=>Gd(pe,Ce).map(Ye=>{const st=Of.detect(Ye.versionRegexes,Ce);return{current:Ye.name,version:st}}),rf=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Bc=pe=>Ce=>Gl(Ce,pe),ym=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:pe=>Gl(pe,"edge/")&&Gl(pe,"chrome")&&Gl(pe,"safari")&&Gl(pe,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,rf],search:pe=>Gl(pe,"chrome")&&!Gl(pe,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:pe=>Gl(pe,"msie")||Gl(pe,"trident")},{name:"Opera",versionRegexes:[rf,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Bc("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Bc("firefox")},{name:"Safari",versionRegexes:[rf,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:pe=>(Gl(pe,"safari")||Gl(pe,"mobile/"))&&Gl(pe,"applewebkit")}],Mu=[{name:"Windows",search:Bc("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:pe=>Gl(pe,"iphone")||Gl(pe,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Bc("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Bc("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Bc("linux"),versionRegexes:[]},{name:"Solaris",search:Bc("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Bc("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Bc("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Hu={browsers:v(ym),oses:v(Mu)},Lp="Edge",Uh="Chromium",jh="IE",Eu="Opera",fd="Firefox",vh="Safari",Pu=()=>Oc({current:void 0,version:Of.unknown()}),Oc=pe=>{const Ce=pe.current,Ye=pe.version,st=St=>()=>Ce===St;return{current:Ce,version:Ye,isEdge:st(Lp),isChromium:st(Uh),isIE:st(jh),isOpera:st(Eu),isFirefox:st(fd),isSafari:st(vh)}},Ts={unknown:Pu,nu:Oc,edge:v(Lp),chromium:v(Uh),ie:v(jh),opera:v(Eu),firefox:v(fd),safari:v(vh)},Uf="Windows",zl="iOS",Hl="Android",Cs="Linux",$s="macOS",Zu="Solaris",yh="FreeBSD",of="ChromeOS",tp=()=>Ip({current:void 0,version:Of.unknown()}),Ip=pe=>{const Ce=pe.current,Ye=pe.version,st=St=>()=>Ce===St;return{current:Ce,version:Ye,isWindows:st(Uf),isiOS:st(zl),isAndroid:st(Hl),isMacOS:st($s),isLinux:st(Cs),isSolaris:st(Zu),isFreeBSD:st(yh),isChromeOS:st(of)}},bm={unknown:tp,nu:Ip,windows:v(Uf),ios:v(zl),android:v(Hl),linux:v(Cs),macos:v($s),solaris:v(Zu),freebsd:v(yh),chromeos:v(of)},bh={detect:(pe,Ce,Ye)=>{const st=Hu.browsers(),St=Hu.oses(),Ut=Ce.bind($n=>Rp(st,$n)).orThunk(()=>Fa(st,pe)).fold(Ts.unknown,Ts.nu),un=Qu(St,pe).fold(bm.unknown,bm.nu),Tn=vm(un,Ut,pe,Ye);return{browser:Ut,os:un,deviceType:Tn}}},Jd=pe=>window.matchMedia(pe).matches;let zc=Ep(()=>bh.detect(navigator.userAgent,C.from(navigator.userAgentData),Jd));const np=()=>zc(),ms=(pe,Ce)=>{const Ye=(Tn,$n)=>{if(!a($n)&&!$n.match(/^[0-9]+$/))throw new Error(pe+".set accepts only positive integer values. Value was "+$n);const ur=Tn.dom;ju(ur)&&(ur.style[pe]=$n+"px")},st=Tn=>{const $n=Ce(Tn);if($n<=0||$n===null){const ur=yf(Tn,pe);return parseFloat(ur)||0}return $n},St=st,Ut=(Tn,$n)=>oe($n,(ur,Nr)=>{const Ro=yf(Tn,Nr),ai=Ro===void 0?0:parseInt(Ro,10);return isNaN(ai)?ur:ur+ai},0);return{set:Ye,get:st,getOuter:St,aggregate:Ut,max:(Tn,$n,ur)=>{const Nr=Ut(Tn,ur);return $n>Nr?$n-Nr:0}}},Ya=(pe,Ce)=>pu(pe).getOr(Ce),_l=(pe,Ce,Ye)=>Ya(yf(pe,Ce),Ye),dl=(pe,Ce,Ye,st)=>{const St=_l(pe,`padding-${Ye}`,0),Ut=_l(pe,`padding-${st}`,0),un=_l(pe,`border-${Ye}-width`,0),Tn=_l(pe,`border-${st}-width`,0);return Ce-St-Ut-un-Tn},Wc=(pe,Ce)=>{const Ye=pe.dom,st=Ye.getBoundingClientRect().width||Ye.offsetWidth;return Ce==="border-box"?st:dl(pe,st,"left","right")},wl=pe=>_l(pe,"height",pe.dom.offsetHeight),xi=pe=>_l(pe,"width",pe.dom.offsetWidth),mu=pe=>Wc(pe,"content-box"),xh=ms("width",pe=>pe.dom.offsetWidth),js=pe=>xh.get(pe),os=pe=>xh.getOuter(pe),af=mu,Sf=xi,sf=(pe,Ce,Ye)=>{const st=pe.cells,St=st.slice(0,Ce),Ut=st.slice(Ce),un=St.concat(Ye).concat(Ut);return pi(pe,un)},Ml=(pe,Ce,Ye)=>sf(pe,Ce,[Ye]),Hi=(pe,Ce,Ye)=>{const st=pe.cells;st[Ce]=Ye},pi=(pe,Ce)=>nr(pe.element,Ce,pe.section,pe.isNew),Qh=(pe,Ce)=>{const Ye=pe.cells,st=j(Ye,Ce);return nr(pe.element,st,pe.section,pe.isNew)},Ru=(pe,Ce)=>pe.cells[Ce],vc=(pe,Ce)=>Ru(pe,Ce).element,Yc=pe=>pe.cells.length,Kl=pe=>{const Ce=te(pe,Ye=>Ye.section==="colgroup");return{rows:Ce.fail,cols:Ce.pass}},Fc=(pe,Ce,Ye)=>{const st=j(pe.cells,Ye);return nr(Ce(pe.element),st,pe.section,!0)},si="data-snooker-locked-cols",Hh=pe=>it(pe,si).bind(Ce=>C.from(Ce.match(/\d+/g))).map(Ce=>ce(Ce,E)),Ps=pe=>{const Ce=oe(Kl(pe).rows,(st,St)=>(U(St.cells,(Ut,un)=>{Ut.isLocked&&(st[un]=!0)}),st),{}),Ye=Oe(Ce,(st,St)=>parseInt(St,10));return de(Ye)},Sc=(pe,Ce)=>pe+","+Ce,tl=(pe,Ce,Ye)=>C.from(pe.access[Sc(Ce,Ye)]),gu=(pe,Ce,Ye)=>{const st=vu(pe,St=>Ye(Ce,St.element));return st.length>0?C.some(st[0]):C.none()},vu=(pe,Ce)=>{const Ye=he(pe.all,st=>st.cells);return W(Ye,Ce)},ja=pe=>{const Ce={};let Ye=0;return U(pe.cells,st=>{const St=st.colspan;Q(St,Ut=>{const un=Ye+Ut;Ce[un]=Hn(st.element,St,un)}),Ye+=St}),Ce},yu=pe=>{const Ce={},Ye=[],St=ye(pe).map(Ko=>Ko.element).bind(Au).bind(Hh).getOr({});let Ut=0,un=0,Tn=0;const{pass:$n,fail:ur}=te(pe,Ko=>Ko.section==="colgroup");U(ur,Ko=>{const Qo=[];U(Ko.cells,_i=>{let To=0;for(;Ce[Sc(Tn,To)]!==void 0;)To++;const Zo=Ue(St,To.toString()),Yi=Zn(_i.element,_i.rowspan,_i.colspan,Tn,To,Zo);for(let ri=0;ri<_i.colspan;ri++)for(let Ms=0;Ms<_i.rowspan;Ms++){const al=Tn+Ms,Gs=To+ri,td=Sc(al,Gs);Ce[td]=Yi,un=Math.max(un,Gs+1)}Qo.push(Yi)}),Ut++,Ye.push(yr(Ko.element,Qo,Ko.section)),Tn++});const{columns:Nr,colgroups:Ro}=_e($n).map(Ko=>{const Qo=ja(Ko);return{colgroups:[tr(Ko.element,ke(Qo))],columns:Qo}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:Bn(Ut,un),access:Ce,all:Ye,columns:Nr,colgroups:Ro}},Xi={fromTable:pe=>{const Ce=rs(pe);return yu(Ce)},generate:yu,getAt:tl,findItem:gu,filterItems:vu,justCells:pe=>he(pe.all,Ce=>Ce.cells),justColumns:pe=>ke(pe.columns),hasColumns:pe=>Te(pe.columns).length>0,getColumnAt:(pe,Ce)=>C.from(pe.columns[Ce])},Xc=(pe,Ce=E)=>{const Ye=pe.grid,st=Q(Ye.columns,_),St=Q(Ye.rows,_);return j(st,Ut=>jf(()=>he(St,ur=>Xi.getAt(pe,ur,Ut).filter(Nr=>Nr.column===Ut).toArray()),ur=>ur.colspan===1&&Ce(ur.element),()=>Xi.getAt(pe,0,Ut)))},jf=(pe,Ce,Ye)=>{const st=pe();return Y(st,Ce).orThunk(()=>C.from(st[0]).orThunk(Ye)).map(un=>un.element)},bu=pe=>{const Ce=pe.grid,Ye=Q(Ce.rows,_),st=Q(Ce.columns,_);return j(Ye,St=>jf(()=>he(st,$n=>Xi.getAt(pe,St,$n).filter(ur=>ur.row===St).fold(v([]),ur=>[ur])),$n=>$n.rowspan===1,()=>Xi.getAt(pe,St,0)))},Dp=(pe,Ce)=>{if(Ce<0||Ce>=pe.length-1)return C.none();const Ye=pe[Ce].fold(()=>{const St=ae(pe.slice(0,Ce));return Se(St,(Ut,un)=>Ut.map(Tn=>({value:Tn,delta:un+1})))},St=>C.some({value:St,delta:0})),st=pe[Ce+1].fold(()=>{const St=pe.slice(Ce+1);return Se(St,(Ut,un)=>Ut.map(Tn=>({value:Tn,delta:un+1})))},St=>C.some({value:St,delta:1}));return Ye.bind(St=>st.map(Ut=>{const un=Ut.delta+St.delta;return Math.abs(Ut.value-St.value)/un}))},rp=(pe,Ce)=>Ye=>Lu(Ye)==="rtl"?Ce:pe,Lu=pe=>yf(pe,"direction")==="rtl"?"rtl":"ltr",fs=ms("height",pe=>{const Ce=pe.dom;return ao(pe)?Ce.getBoundingClientRect().height:Ce.offsetHeight}),Qf=pe=>fs.get(pe),dd=pe=>fs.getOuter(pe),Hf=wl,_h=(pe,Ce)=>({left:pe,top:Ce,translate:(st,St)=>_h(pe+st,Ce+St)}),Gc=_h,hd=pe=>{const Ce=pe.getBoundingClientRect();return Gc(Ce.left,Ce.top)},rl=(pe,Ce)=>pe!==void 0?pe:Ce!==void 0?Ce:0,Dd=pe=>{const Ce=pe.dom.ownerDocument,Ye=Ce.body,st=Ce.defaultView,St=Ce.documentElement;if(Ye===pe.dom)return Gc(Ye.offsetLeft,Ye.offsetTop);const Ut=rl(st==null?void 0:st.pageYOffset,St.scrollTop),un=rl(st==null?void 0:st.pageXOffset,St.scrollLeft),Tn=rl(St.clientTop,Ye.clientTop),$n=rl(St.clientLeft,Ye.clientLeft);return Vi(pe).translate(un-$n,Ut-Tn)},Vi=pe=>{const Ce=pe.dom,st=Ce.ownerDocument.body;return st===Ce?Gc(st.offsetLeft,st.offsetTop):ao(pe)?hd(Ce):Gc(0,0)},fa=(pe,Ce)=>({row:pe,y:Ce}),au=(pe,Ce)=>({col:pe,x:Ce}),Zf=pe=>Dd(pe).left+os(pe),Zl=pe=>Dd(pe).left,Jl=(pe,Ce)=>au(pe,Zl(Ce)),Bd=(pe,Ce)=>au(pe,Zf(Ce)),Qs=pe=>Dd(pe).top,kc=(pe,Ce)=>fa(pe,Qs(Ce)),Iu=(pe,Ce)=>fa(pe,Qs(Ce)+dd(Ce)),Ea=(pe,Ce,Ye)=>{if(Ye.length===0)return[];const st=j(Ye.slice(1),(Ut,un)=>Ut.map(Tn=>pe(un,Tn))),St=Ye[Ye.length-1].map(Ut=>Ce(Ye.length-1,Ut));return st.concat([St])},El=pe=>-pe,Ol={delta:_,positions:pe=>Ea(kc,Iu,pe),edge:Qs},Ot=rp({delta:_,edge:Zl,positions:pe=>Ea(Jl,Bd,pe)},{delta:El,edge:Zf,positions:pe=>Ea(Bd,Jl,pe)}),Mt={delta:(pe,Ce)=>Ot(Ce).delta(pe,Ce),positions:(pe,Ce)=>Ot(Ce).positions(pe,Ce),edge:pe=>Ot(pe).edge(pe)},Ft={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},J=(()=>{const pe="[0-9]+",Ye="[eE]"+("[+-]?"+pe),st="\\.",St=Tn=>`(?:${Tn})?`,un=`[+-]?(?:${["Infinity",pe+st+St(pe)+St(Ye),st+pe+St(Ye),pe+St(Ye)].join("|")})`;return new RegExp(`^(${un})(.*)$`)})(),le=(pe,Ce)=>$(Ce,Ye=>$(Ft[Ye],st=>pe===st)),ie=(pe,Ce)=>C.from(J.exec(pe)).bind(st=>{const St=Number(st[1]),Ut=st[2];return le(Ut,Ce)?C.some({value:St,unit:Ut}):C.none()}),V=/(\d+(\.\d+)?)%/,ne=/(\d+(\.\d+)?)px|em/,ge=vt("col"),xe=vt("tr"),Me=(pe,Ce,Ye)=>{const st=ar(pe).getOrThunk(()=>Go(En(pe)));return Ce(pe)/Ye(st)*100},Fe=(pe,Ce)=>{ks(pe,"width",Ce+"px")},Je=(pe,Ce)=>{ks(pe,"width",Ce+"%")},rt=(pe,Ce)=>{ks(pe,"height",Ce+"px")},dt=pe=>{Es(pe,"height")},mt=pe=>Hf(pe)+"px",Et=(pe,Ce,Ye,st)=>{const St=Au(pe).map(Ut=>{const un=Ye(Ut);return Math.floor(Ce/100*un)}).getOr(Ce);return st(pe,St),St},Vt=(pe,Ce,Ye,st)=>{const St=parseFloat(pe);return Cu(pe,"%")&&qt(Ce)!=="table"?Et(Ce,St,Ye,st):St},jt=pe=>{const Ce=mt(pe);return Ce?Vt(Ce,pe,Qf,rt):Qf(pe)},Nt=(pe,Ce,Ye)=>{const st=Ye(pe),St=sd(pe,Ce);return st/St},cn=(pe,Ce)=>$h(pe,Ce).orThunk(()=>it(pe,Ce).map(Ye=>Ye+"px")),sn=pe=>cn(pe,"width"),xn=pe=>cn(pe,"height"),pn=pe=>Me(pe,js,af),Ln=pe=>ge(pe)?js(pe):Sf(pe),On=pe=>xe(pe)?Qf(pe):Nt(pe,"rowspan",jt),An=pe=>sn(pe).bind(Ye=>ie(Ye,["fixed","relative","empty"])),Sn=(pe,Ce,Ye)=>{ks(pe,"width",Ce+Ye)},rr=pe=>js(pe)+"px",Dr=pe=>Qf(pe)+"px",Pr=pe=>Me(pe,js,af)+"%",Zr=pe=>sn(pe).exists(Ce=>V.test(Ce)),Mo=pe=>sn(pe).exists(Ce=>ne.test(Ce)),$o=pe=>sn(pe).isNone(),vo=v(V),zo=vt("col"),yi=pe=>sn(pe).getOrThunk(()=>Ln(pe)+"px"),Si=pe=>xn(pe).getOrThunk(()=>On(pe)+"px"),Hr=pe=>j(Xi.justColumns(pe),Ce=>C.from(Ce.element)),Lo=pe=>{const Ce=np().browser,Ye=Ce.isChromium()||Ce.isFirefox();return zo(pe)?Ye:!0},ki=(pe,Ce,Ye,st,St,Ut)=>pe.filter(st).fold(()=>Ut(Dp(Ye,Ce)),un=>St(un)),Io=(pe,Ce,Ye,st)=>{const St=Xc(pe),Ut=Xi.hasColumns(pe)?Hr(pe):St,un=[C.some(Mt.edge(Ce))].concat(j(Mt.positions(St,Ce),$n=>$n.map(ur=>ur.x))),Tn=x(Vf);return j(Ut,($n,ur)=>ki($n,ur,un,Tn,Nr=>{if(Lo(Nr))return Ye(Nr);{const Ro=Ed(St[ur],_);return ki(Ro,ur,un,Tn,ai=>st(C.some(js(ai))),st)}},st))},$i=pe=>pe.map(Ce=>Ce+"px").getOr(""),Ui=(pe,Ce)=>Io(pe,Ce,yi,$i),ba=(pe,Ce,Ye)=>Io(pe,Ce,pn,st=>st.fold(()=>Ye.minCellWidth(),St=>St/Ye.pixelWidth()*100)),Pi=(pe,Ce,Ye)=>Io(pe,Ce,Ln,st=>st.getOrThunk(Ye.minCellWidth)),ds=(pe,Ce,Ye,st)=>{const St=bu(pe),Ut=j(pe.all,Tn=>C.some(Tn.element)),un=[C.some(Ol.edge(Ce))].concat(j(Ol.positions(St,Ce),Tn=>Tn.map($n=>$n.y)));return j(Ut,(Tn,$n)=>ki(Tn,$n,un,E,Ye,st))},mr=(pe,Ce)=>ds(pe,Ce,On,Ye=>Ye.getOrThunk(Xd)),bs=(pe,Ce)=>ds(pe,Ce,Si,$i),Pl=(pe,Ce)=>()=>ao(pe)?Ce(pe):parseFloat($h(pe,"width").getOr("0")),Ys=pe=>{const Ce=Pl(pe,js),Ye=v(0);return{width:Ce,pixelWidth:Ce,getWidths:(St,Ut)=>Pi(St,pe,Ut),getCellDelta:Ye,singleColumnWidth:v([0]),minCellWidth:Ye,setElementWidth:u,adjustTableWidth:u,isRelative:!0,label:"none"}},hl=pe=>{const Ce=Pl(pe,$n=>parseFloat(Pr($n))),Ye=Pl(pe,js);return{width:Ce,pixelWidth:Ye,getWidths:($n,ur)=>ba($n,pe,ur),getCellDelta:$n=>$n/Ye()*100,singleColumnWidth:($n,ur)=>[100-$n],minCellWidth:()=>Mp()/Ye()*100,setElementWidth:Je,adjustTableWidth:$n=>{const ur=Ce(),Nr=$n/100*ur,Ro=ur+Nr;Je(pe,Ro)},isRelative:!0,label:"percent"}},hs=pe=>{const Ce=Pl(pe,js);return{width:Ce,pixelWidth:Ce,getWidths:(un,Tn)=>Pi(un,pe,Tn),getCellDelta:_,singleColumnWidth:(un,Tn)=>[Math.max(Mp(),un+Tn)-un],minCellWidth:Mp,setElementWidth:Fe,adjustTableWidth:un=>{const Tn=Ce()+un;Fe(pe,Tn)},isRelative:!1,label:"pixel"}},Pa=(pe,Ce)=>vo().exec(Ce)!==null?hl(pe):hs(pe),Ls={getTableSize:pe=>sn(pe).fold(()=>Ys(pe),Ye=>Pa(pe,Ye)),pixelSize:hs,percentageSize:hl,noneSize:Ys},ol=(pe,Ce,Ye,st,St,Ut)=>({minRow:pe,minCol:Ce,maxRow:Ye,maxCol:st,allCells:St,selectedCells:Ut}),Is=(pe,Ce)=>{const Ye=pe.grid.columns;let St=pe.grid.rows,Ut=Ye,un=0,Tn=0;const $n=[],ur=[];return Ie(pe.access,Nr=>{if($n.push(Nr),Ce(Nr)){ur.push(Nr);const Ro=Nr.row,ai=Ro+Nr.rowspan-1,Ko=Nr.column,Qo=Ko+Nr.colspan-1;Roun&&(un=ai),KoTn&&(Tn=Qo)}}),ol(St,Ut,un,Tn,$n,ur)},Ds=(pe,Ce,Ye)=>{const st=pe[Ye].element,St=Pt.fromTag("td");$r(St,Pt.fromTag("br")),(Ce?$r:Rr)(st,St)},ec=(pe,Ce,Ye,st)=>{const St=W(pe,Tn=>Tn.section!=="colgroup"),Ut=Ce.grid.columns,un=Ce.grid.rows;for(let Tn=0;TnYe.maxRow||urYe.maxCol||(Xi.getAt(Ce,Tn,ur).filter(st).isNone()?Ds(St,$n,Tn):$n=!0)}},Tc=(pe,Ce,Ye,st)=>{Ie(Ye.columns,un=>{(un.columnCe.maxCol)&&li(un.element)});const St=W(bf(pe,"tr"),un=>un.dom.childElementCount===0);U(St,li),(Ce.minCol===Ce.maxCol||Ce.minRow===Ce.maxRow)&&U(bf(pe,"th,td"),un=>{at(un,"rowspan"),at(un,"colspan")}),at(pe,si),at(pe,"data-snooker-col-series"),Ls.getTableSize(pe).adjustTableWidth(st)},op=(pe,Ce,Ye,st)=>{if(st.minCol===0&&Ce.grid.columns===st.maxCol+1)return 0;const St=Pi(Ce,pe,Ye),Ut=oe(St,(ur,Nr)=>ur+Nr,0),$n=oe(St.slice(st.minCol,st.maxCol+1),(ur,Nr)=>ur+Nr,0)/Ut*Ye.pixelWidth()-Ye.pixelWidth();return Ye.getCellDelta($n)},ip=(pe,Ce)=>{const Ye=ai=>tn(ai.element,Ce),st=dr(pe),St=rs(st),Ut=Ls.getTableSize(pe),un=Xi.generate(St),Tn=Is(un,Ye),$n="th:not("+Ce+"),td:not("+Ce+")",ur=mh(st,"th,td",ai=>tn(ai,$n));U(ur,li),ec(St,un,Tn,Ye);const Nr=Xi.fromTable(pe),Ro=op(pe,Nr,Ut,Tn);return Tc(st,Tn,un,Ro),st},Hs=" ",pd=((pe,Ce)=>{const Ye=Ut=>{if(!pe(Ut))throw new Error("Can only get "+Ce+" value of a "+Ce+" node");return st(Ut).getOr("")},st=Ut=>pe(Ut)?C.from(Ut.dom.nodeValue):C.none();return{get:Ye,getOption:st,set:(Ut,un)=>{if(!pe(Ut))throw new Error("Can only set raw "+Ce+" value of a "+Ce+" node");Ut.dom.nodeValue=un}}})(gn,"text"),qf=pe=>pd.get(pe),tc=pe=>pd.getOption(pe),Wf=(pe,Ce)=>pd.set(pe,Ce),Rl=pe=>qt(pe)==="img"?1:tc(pe).fold(()=>Kn(pe).length,Ce=>Ce.length),cg=pe=>tc(pe).filter(Ce=>Ce.trim().length!==0||Ce.indexOf(Hs)>-1).isSome(),E0=pe=>_t(pe)&&Rt(pe,"contenteditable")==="false",xm=["img","br"],Cx=pe=>cg(pe)||z(xm,qt(pe))||E0(pe),eh=pe=>us(pe,Cx),Ax=pe=>Wg(pe,Cx),Wg=(pe,Ce)=>{const Ye=st=>{const St=Kn(st);for(let Ut=St.length-1;Ut>=0;Ut--){const un=St[Ut];if(Ce(un))return C.some(un);const Tn=Ye(un);if(Tn.isSome())return Tn}return C.none()};return Ye(pe)},Mx={scope:["row","col"]},k1=pe=>()=>{const Ce=Pt.fromTag("td",pe.dom);return $r(Ce,Pt.fromTag("br",pe.dom)),Ce},oc=pe=>()=>Pt.fromTag("col",pe.dom),_m=pe=>()=>Pt.fromTag("colgroup",pe.dom),Yg=pe=>()=>Pt.fromTag("tr",pe.dom),wm=(pe,Ce,Ye)=>{const st=io(pe,Ce);return Ie(Ye,(St,Ut)=>{St===null?at(st,Ut):lt(st,Ut,St)}),st},ub=pe=>pe,Oh=(pe,Ce,Ye)=>eh(pe).map(St=>{const Ut=Ye.join(","),un=oi(St,Ut,Tn=>vn(Tn,pe));return K(un,(Tn,$n)=>{const ur=br($n);return $r(Tn,ur),ur},Ce)}).getOr(Ce),Ex=(pe,Ce)=>{Ie(Mx,(Ye,st)=>it(pe,st).filter(St=>z(Ye,St)).each(St=>lt(Ce,st,St)))},Tf=(pe,Ce,Ye)=>{const st=(un,Tn)=>{ef(un.element,Tn),Es(Tn,"height"),un.colspan!==1&&Es(Tn,"width")},St=un=>{const Tn=Pt.fromTag(qt(un.element),Ce.dom),$n=Ye.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),ur=$n.length>0?Oh(un.element,Tn,$n):Tn;return $r(ur,Pt.fromTag("br")),st(un,Tn),Ex(un.element,Tn),pe(un.element,Tn),Tn};return{col:un=>{const Tn=Pt.fromTag(qt(un.element),Ce.dom);return st(un,Tn),pe(un.element,Tn),Tn},colgroup:_m(Ce),row:Yg(Ce),cell:St,replace:wm,colGap:oc(Ce),gap:k1(Ce)}},Hv=pe=>({col:oc(pe),colgroup:_m(pe),row:Yg(pe),cell:k1(pe),replace:ub,colGap:oc(pe),gap:k1(pe)}),Om=(pe,Ce)=>{const st=(Ce||document).createElement("div");return st.innerHTML=pe,Kn(Pt.fromDom(st))},Sm=pe=>j(pe,Pt.fromDom),ap=pe=>Ce=>Ce.options.get(pe),Bp="100%",P0=pe=>{var Ce;const Ye=pe.dom,st=(Ce=Ye.getParent(pe.selection.getStart(),Ye.isBlock))!==null&&Ce!==void 0?Ce:pe.getBody();return af(Pt.fromDom(st))+"px"},ug=(pe,Ce)=>lp(pe)||!db(pe)?Ce:Gg(pe)?{...Ce,width:P0(pe)}:{...Ce,width:Bp},Zv=(pe,Ce)=>lp(pe)||db(pe)?Ce:Gg(pe)?{...Ce,width:P0(pe)}:{...Ce,width:Bp},R0=pe=>{const Ce=pe.options.register;Ce("table_clone_elements",{processor:"string[]"}),Ce("table_use_colgroups",{processor:"boolean",default:!0}),Ce("table_header_type",{processor:Ye=>{const st=z(["section","cells","sectionCells","auto"],Ye);return st?{value:Ye,valid:st}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),Ce("table_sizing_mode",{processor:"string",default:"auto"}),Ce("table_default_attributes",{processor:"object",default:{border:"1"}}),Ce("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),Ce("table_column_resizing",{processor:Ye=>{const st=z(["preservetable","resizetable"],Ye);return st?{value:Ye,valid:st}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),Ce("table_resize_bars",{processor:"boolean",default:!0}),Ce("table_style_by_css",{processor:"boolean",default:!0}),Ce("table_merge_content_on_paste",{processor:"boolean",default:!0})},C_=pe=>C.from(pe.options.get("table_clone_elements")),sp=pe=>{const Ce=pe.options.get("object_resizing");return z(Ce.split(","),"table")},A_=ap("table_header_type"),fb=ap("table_column_resizing"),Fl=pe=>fb(pe)==="preservetable",Yf=pe=>fb(pe)==="resizetable",km=ap("table_sizing_mode"),Xg=pe=>km(pe)==="relative",Gg=pe=>km(pe)==="fixed",lp=pe=>km(pe)==="responsive",cp=ap("table_resize_bars"),db=ap("table_style_by_css"),up=ap("table_merge_content_on_paste"),Xf=pe=>{const Ce=pe.options,Ye=Ce.get("table_default_attributes");return Ce.isSet("table_default_attributes")?Ye:Zv(pe,Ye)},L0=pe=>{const Ce=pe.options,Ye=Ce.get("table_default_styles");return Ce.isSet("table_default_styles")?Ye:ug(pe,Ye)},Px=ap("table_use_colgroups"),zp=pe=>qc(pe,"[contenteditable]"),Kg=(pe,Ce=!1)=>ao(pe)?pe.dom.isContentEditable:zp(pe).fold(v(Ce),Ye=>M_(Ye)==="true"),M_=pe=>pe.dom.contentEditable,T1=pe=>Pt.fromDom(pe.getBody()),Tm=pe=>Ce=>vn(Ce,T1(pe)),zd=pe=>{at(pe,"data-mce-style");const Ce=Ye=>at(Ye,"data-mce-style");U(xf(pe),Ce),U(tf(pe),Ce),U(_f(pe),Ce)},fp=pe=>Pt.fromDom(pe.selection.getStart()),I0=pe=>pe.getBoundingClientRect().width,E_=pe=>pe.getBoundingClientRect().height,Jg=pe=>(Ce,Ye)=>{const st=Ce.dom.getStyle(Ye,pe)||Ce.dom.getAttrib(Ye,pe);return C.from(st).filter(cc)},P_=Jg("width"),C1=Jg("height"),zO=pe=>/^(\d+(\.\d+)?)%$/.test(pe),xu=pe=>/^(\d+(\.\d+)?)px$/.test(pe),Cm=pe=>Xl(pe,vt("table")).exists(Kg),D0=(pe,Ce)=>{const Ye=Ce.column,st=Ce.column+Ce.colspan-1,St=Ce.row,Ut=Ce.row+Ce.rowspan-1;return Ye<=pe.finishCol&&st>=pe.startCol&&St<=pe.finishRow&&Ut>=pe.startRow},Sa=(pe,Ce)=>Ce.column>=pe.startCol&&Ce.column+Ce.colspan-1<=pe.finishCol&&Ce.row>=pe.startRow&&Ce.row+Ce.rowspan-1<=pe.finishRow,Ri=(pe,Ce)=>{let Ye=!0;const st=A(Sa,Ce);for(let St=Ce.startRow;St<=Ce.finishRow;St++)for(let Ut=Ce.startCol;Ut<=Ce.finishCol;Ut++)Ye=Ye&&Xi.getAt(pe,St,Ut).exists(st);return Ye?C.some(Ce):C.none()},Fp=(pe,Ce)=>Qn(Math.min(pe.row,Ce.row),Math.min(pe.column,Ce.column),Math.max(pe.row+pe.rowspan-1,Ce.row+Ce.rowspan-1),Math.max(pe.column+pe.colspan-1,Ce.column+Ce.colspan-1)),qv=(pe,Ce,Ye)=>{const st=Xi.findItem(pe,Ce,vn),St=Xi.findItem(pe,Ye,vn);return st.bind(Ut=>St.map(un=>Fp(Ut,un)))},hb=(pe,Ce,Ye)=>qv(pe,Ce,Ye).bind(st=>Ri(pe,st)),A1=(pe,Ce,Ye,st)=>Xi.findItem(pe,Ce,vn).bind(St=>{const Ut=Ye>0?St.row+St.rowspan-1:St.row,un=st>0?St.column+St.colspan-1:St.column;return Xi.getAt(pe,Ut+Ye,un+st).map($n=>$n.element)}),Np=(pe,Ce,Ye)=>qv(pe,Ce,Ye).map(st=>{const St=Xi.filterItems(pe,A(D0,st));return j(St,Ut=>Ut.element)}),pl=(pe,Ce)=>{const Ye=(st,St)=>Nn(St,st);return Xi.findItem(pe,Ce,Ye).map(st=>st.element)},FO=(pe,Ce,Ye)=>Au(pe).bind(st=>{const St=e0(st);return A1(St,pe,Ce,Ye)}),Rx=(pe,Ce,Ye)=>{const st=e0(pe);return Np(st,Ce,Ye)},B0=(pe,Ce,Ye,st,St)=>{const Ut=e0(pe),un=vn(pe,Ye)?C.some(Ce):pl(Ut,Ce),Tn=vn(pe,St)?C.some(st):pl(Ut,st);return un.bind($n=>Tn.bind(ur=>Np(Ut,$n,ur)))},fo=(pe,Ce,Ye)=>{const st=e0(pe);return hb(st,Ce,Ye)},e0=Xi.fromTable;var _S=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],fg=()=>{const pe=ur=>Pt.fromDom(ur.dom.cloneNode(!1)),Ce=ur=>In(ur).dom,Ye=ur=>nn(ur)?qt(ur)==="body"?!0:z(_S,qt(ur)):!1,st=ur=>nn(ur)?z(["br","img","hr","input"],qt(ur)):!1,St=ur=>nn(ur)&&Rt(ur,"contenteditable")==="false",Ut=(ur,Nr)=>ur.dom.compareDocumentPosition(Nr.dom),un=(ur,Nr)=>{const Ro=Lt(ur);yt(Nr,Ro)},Tn=ur=>{const Nr=qt(ur);return z(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],Nr)},$n=ur=>nn(ur)?it(ur,"lang"):C.none();return{up:v({selector:wc,closest:qc,predicate:Aa,all:Fn}),down:v({selector:ra,predicate:Ao}),styles:v({get:yf,getRaw:$h,set:ks,remove:Es}),attrs:v({get:Rt,set:lt,remove:at,copyTo:un}),insert:v({before:zr,after:Fr,afterAll:so,append:$r,appendAll:So,prepend:Rr,wrap:Co}),remove:v({unwrap:Pn,remove:li}),create:v({nu:Pt.fromTag,clone:pe,text:Pt.fromText}),query:v({comparePosition:Ut,prevSibling:ir,nextSibling:Wn}),property:v({children:Kn,name:qt,parent:Sr,document:Ce,isText:gn,isComment:Ct,isElement:nn,isSpecial:Tn,getLanguage:$n,getText:qf,setText:Wf,isBoundary:Ye,isEmptyTag:st,isNonEditable:St}),eq:vn,is:er}};const R_=(pe,Ce,Ye,st)=>{const St=Ye[0],Ut=Ye.slice(1);return st(pe,Ce,St,Ut)},Fd=(pe,Ce,Ye)=>Ye.length>0?R_(pe,Ce,Ye,L_):C.none(),L_=(pe,Ce,Ye,st)=>{const St=Ce(pe,Ye);return K(st,(Ut,un)=>{const Tn=Ce(pe,un);return Am(pe,Ut,Tn)},St)},Am=(pe,Ce,Ye)=>Ce.bind(st=>Ye.filter(A(pe.eq,st))),I_=(pe,Ce)=>A(pe.eq,Ce),Wv=(pe,Ce,Ye,st=T)=>{const St=[Ce].concat(pe.up().all(Ce)),Ut=[Ye].concat(pe.up().all(Ye)),un=Nr=>ee(Nr,st).fold(()=>Nr,ai=>Nr.slice(0,ai+1)),Tn=un(St),$n=un(Ut),ur=Y(Tn,Nr=>$($n,I_(pe,Nr)));return{firstpath:Tn,secondpath:$n,shared:ur}},Ll=Fd,Sh=Wv,NO=fg(),$p=(pe,Ce)=>Ll(NO,(Ye,st)=>pe(st),Ce),Lx=(pe,Ce,Ye)=>Sh(NO,pe,Ce,Ye),Yv=pe=>wc(pe,"table"),Xv=(pe,Ce,Ye)=>{const st=St=>Ut=>Ye!==void 0&&Ye(Ut)||vn(Ut,St);return vn(pe,Ce)?C.some({boxes:C.some([pe]),start:pe,finish:Ce}):Yv(pe).bind(St=>Yv(Ce).bind(Ut=>{if(vn(St,Ut))return C.some({boxes:Rx(St,pe,Ce),start:pe,finish:Ce});if(Nn(St,Ut)){const un=oi(Ce,"td,th",st(St)),Tn=un.length>0?un[un.length-1]:Ce;return C.some({boxes:B0(St,pe,St,Ce,Ut),start:pe,finish:Tn})}else if(Nn(Ut,St)){const un=oi(pe,"td,th",st(Ut)),Tn=un.length>0?un[un.length-1]:pe;return C.some({boxes:B0(Ut,pe,St,Ce,Ut),start:pe,finish:Tn})}else return Lx(pe,Ce).shared.bind(un=>qc(un,"table",Ye).bind(Tn=>{const $n=oi(Ce,"td,th",st(Tn)),ur=$n.length>0?$n[$n.length-1]:Ce,Nr=oi(pe,"td,th",st(Tn)),Ro=Nr.length>0?Nr[Nr.length-1]:pe;return C.some({boxes:B0(Tn,pe,St,Ce,Ut),start:Ro,finish:ur})}))}))},pb=(pe,Ce)=>{const Ye=ra(pe,Ce);return Ye.length>0?C.some(Ye):C.none()},Cf=(pe,Ce)=>Y(pe,Ye=>tn(Ye,Ce)),$O=(pe,Ce,Ye)=>Ku(pe,Ce).bind(st=>Ku(pe,Ye).bind(St=>$p(Yv,[st,St]).map(Ut=>({first:st,last:St,table:Ut})))),M1=(pe,Ce)=>wc(pe,"table").bind(Ye=>Ku(Ye,Ce).bind(st=>Xv(st,pe).bind(St=>St.boxes.map(Ut=>({boxes:Ut,start:St.start,finish:St.finish}))))),E1=(pe,Ce,Ye,st,St)=>Cf(pe,St).bind(Ut=>FO(Ut,Ce,Ye).bind(un=>M1(un,st))),md=(pe,Ce)=>pb(pe,Ce),D_=(pe,Ce,Ye)=>$O(pe,Ce,Ye).bind(st=>{const St=$n=>vn(pe,$n),Ut="thead,tfoot,tbody,table",un=wc(st.first,Ut,St),Tn=wc(st.last,Ut,St);return un.bind($n=>Tn.bind(ur=>vn($n,ur)?fo(st.table,st.first,st.last):C.none()))}),VO=_,B_=pe=>{const Ce=(st,St)=>it(st,St).exists(Ut=>parseInt(Ut,10)>1),Ye=st=>Ce(st,"rowspan")||Ce(st,"colspan");return pe.length>0&&se(pe,Ye)?C.some(pe):C.none()},Gv=(pe,Ce,Ye)=>Ce.length<=1?C.none():D_(pe,Ye.firstSelectedSelector,Ye.lastSelectedSelector).map(st=>({bounds:st,cells:Ce})),Gf="data-mce-selected",kh="td["+Gf+"],th["+Gf+"]",Bo="["+Gf+"]",Ix="data-mce-first-selected",lf="td["+Ix+"],th["+Ix+"]",mb="data-mce-last-selected",gd="td["+mb+"],th["+mb+"]",Nl=Bo,dg={selected:Gf,selectedSelector:kh,firstSelected:Ix,firstSelectedSelector:lf,lastSelected:mb,lastSelectedSelector:gd},Dx=(pe,Ce,Ye)=>({element:Ye,mergable:Gv(Ce,pe,dg),unmergable:B_(pe),selection:VO(pe)}),UO=(pe,Ce,Ye)=>({element:pe,clipboard:Ce,generators:Ye}),t0=(pe,Ce,Ye,st)=>({selection:VO(pe),clipboard:Ye,generators:st}),gb=pe=>Au(pe).bind(Ce=>md(Ce,dg.firstSelectedSelector)).fold(v(pe),Ce=>Ce[0]),Mm=pe=>(Ce,Ye)=>{const st=qt(Ce),St=st==="col"||st==="colgroup"?gb(Ce):Ce;return qc(St,pe,Ye)},jO=Mm("th,td,caption"),z_=Mm("th,td"),Sl=pe=>Sm(pe.model.table.getSelectedCells()),Kv=pe=>W(Sl(pe),Ce=>tn(Ce,dg.selectedSelector)),fc=pe=>Au(pe[0]).map(Ce=>{const Ye=ip(Ce,Nl);return zd(Ye),[Ye]}),Jv=(pe,Ce)=>j(Ce,Ye=>pe.selection.serializer.serialize(Ye.dom,{})).join(""),$l=pe=>j(pe,Ce=>Ce.dom.innerText).join(""),P1=(pe,Ce)=>{pe.on("BeforeGetContent",Ye=>{const st=St=>{Ye.preventDefault(),fc(St).each(Ut=>{Ye.content=Ye.format==="text"?$l(Ut):Jv(pe,Ut)})};if(Ye.selection===!0){const St=Kv(pe);St.length>=1&&st(St)}}),pe.on("BeforeSetContent",Ye=>{if(Ye.selection===!0&&Ye.paste===!0){const st=Sl(pe);ye(st).each(St=>{Au(St).each(Ut=>{const un=W(Om(Ye.content),$n=>qt($n)!=="meta"),Tn=vt("table");if(up(pe)&&un.length===1&&Tn(un[0])){Ye.preventDefault();const $n=Pt.fromDom(pe.getDoc()),ur=Hv($n),Nr=UO(St,un[0],ur);Ce.pasteCells(Ut,Nr).each(()=>{pe.focus()})}})})}})},th=(pe,Ce)=>({element:pe,offset:Ce}),Bx=(pe,Ce,Ye)=>pe.property().isText(Ce)&&pe.property().getText(Ce).trim().length===0||pe.property().isComment(Ce)?Ye(Ce).bind(st=>Bx(pe,st,Ye).orThunk(()=>C.some(st))):C.none(),ic=(pe,Ce)=>pe.property().isText(Ce)?pe.property().getText(Ce).length:pe.property().children(Ce).length,F_=(pe,Ce)=>{const Ye=Bx(pe,Ce,pe.query().prevSibling).getOr(Ce);if(pe.property().isText(Ye))return th(Ye,ic(pe,Ye));const st=pe.property().children(Ye);return st.length>0?F_(pe,st[st.length-1]):th(Ye,ic(pe,Ye))},QO=F_,Du=fg(),su=pe=>QO(Du,pe),hg=(pe,Ce)=>{Vf(pe)||An(pe).each(st=>{const St=st.value/2;Sn(pe,St,st.unit),Sn(Ce,St,st.unit)})},n0=pe=>j(pe,v(0)),N_=(pe,Ce,Ye,st,St)=>St(pe.slice(0,Ce)).concat(st).concat(St(pe.slice(Ye))),ey=pe=>(Ce,Ye,st,St)=>{if(pe(st)){const Ut=Math.max(St,Ce[Ye]-Math.abs(st)),un=Math.abs(Ut-Ce[Ye]);return st>=0?un:-un}else return st},pg=ey(pe=>pe<0),ty=ey(E),R1=()=>{const pe=(Tn,$n,ur,Nr,Ro)=>{const ai=pg(Tn,$n,Nr,Ro);return N_(Tn,$n,ur+1,[ai,0],n0)},Ce=(Tn,$n,ur,Nr)=>{const Ro=(100+ur)/100,ai=Math.max(Nr,(Tn[$n]+ur)/Ro);return j(Tn,(Ko,Qo)=>(Qo===$n?ai:Ko/Ro)-Ko)},Ye=(Tn,$n,ur,Nr,Ro,ai)=>ai?Ce(Tn,$n,Nr,Ro):pe(Tn,$n,ur,Nr,Ro);return{resizeTable:(Tn,$n)=>Tn($n),clampTableDelta:pg,calcLeftEdgeDeltas:Ye,calcMiddleDeltas:(Tn,$n,ur,Nr,Ro,ai,Ko)=>Ye(Tn,ur,Nr,Ro,ai,Ko),calcRightEdgeDeltas:(Tn,$n,ur,Nr,Ro,ai)=>{if(ai)return Ce(Tn,ur,Nr,Ro);{const Ko=pg(Tn,ur,Nr,Ro);return n0(Tn.slice(0,ur)).concat([Ko])}},calcRedestributedWidths:(Tn,$n,ur,Nr)=>{if(Nr){const ai=($n+ur)/$n,Ko=j(Tn,Qo=>Qo/ai);return{delta:ai*100-100,newSizes:Ko}}else return{delta:ur,newSizes:Tn}}}},z0=()=>{const pe=(un,Tn,$n,ur,Nr)=>{const Ro=ur>=0?$n:Tn,ai=ty(un,Ro,ur,Nr);return N_(un,Tn,$n+1,[ai,-ai],n0)};return{resizeTable:(un,Tn,$n)=>{$n&&un(Tn)},clampTableDelta:(un,Tn,$n,ur,Nr)=>{if(Nr){if($n>=0)return $n;{const Ro=oe(un,(ai,Ko)=>ai+Ko-ur,0);return Math.max(-Ro,$n)}}else return pg(un,Tn,$n,ur)},calcLeftEdgeDeltas:pe,calcMiddleDeltas:(un,Tn,$n,ur,Nr,Ro)=>pe(un,$n,ur,Nr,Ro),calcRightEdgeDeltas:(un,Tn,$n,ur,Nr,Ro)=>{if(Ro)return n0(un);{const ai=ur/un.length;return j(un,v(ai))}},calcRedestributedWidths:(un,Tn,$n,ur)=>({delta:0,newSizes:un})}},mg=pe=>Xi.fromTable(pe).grid,L1=vt("th"),I1=pe=>se(pe,Ce=>L1(Ce.element)),zx=(pe,Ce)=>pe&&Ce?"sectionCells":pe?"section":"cells",F0=pe=>{const Ce=pe.section==="thead",Ye=Yd(vb(pe.cells),"th");return pe.section==="tfoot"?{type:"footer"}:Ce||Ye?{type:"header",subType:zx(Ce,Ye)}:{type:"body"}},vb=pe=>{const Ce=W(pe,Ye=>L1(Ye.element));return Ce.length===0?C.some("td"):Ce.length===pe.length?C.some("th"):C.none()},Fx=pe=>{const Ce=j(pe,St=>F0(St).type),Ye=z(Ce,"header"),st=z(Ce,"footer");if(!Ye&&!st)return C.some("body");{const St=z(Ce,"body");return Ye&&!St&&!st?C.some("header"):!Ye&&!St&&st?C.some("footer"):C.none()}},$_=pe=>Se(pe.all,Ce=>{const Ye=F0(Ce);return Ye.type==="header"?C.from(Ye.subType):C.none()}),Nx=(pe,Ce,Ye)=>vr(Ye(pe.element,Ce),!0,pe.isLocked),V_=(pe,Ce)=>pe.section!==Ce?nr(pe.element,pe.cells,Ce,pe.isNew):pe,yb=()=>({transformRow:V_,transformCell:(pe,Ce,Ye)=>{const st=Ye(pe.element,Ce),St=qt(st)!=="td"?Qr(st,"td"):st;return vr(St,pe.isNew,pe.isLocked)}}),D1=()=>({transformRow:V_,transformCell:Nx}),vd=()=>({transformRow:(pe,Ce)=>V_(pe,Ce==="thead"?"tbody":Ce),transformCell:Nx}),Th={getTableSectionType:(pe,Ce)=>{const Ye=Xi.fromTable(pe);switch($_(Ye).getOr(Ce)){case"section":return yb();case"sectionCells":return D1();case"cells":return vd()}},section:yb,sectionCells:D1,cells:vd,fallback:()=>({transformRow:_,transformCell:Nx})},Kf=(pe,Ce,Ye,st)=>{Ye===st?at(pe,Ce):lt(pe,Ce,Ye)},ny=(pe,Ce,Ye)=>{_e(ko(pe,Ce)).fold(()=>Rr(pe,Ye),st=>Fr(st,Ye))},B1=(pe,Ce)=>{const Ye=ga(pe,Ce).getOrThunk(()=>{const st=Pt.fromTag(Ce,En(pe).dom);return Ce==="thead"?ny(pe,"caption,colgroup",st):Ce==="colgroup"?ny(pe,"caption",st):$r(pe,st),st});return go(Ye),Ye},cf=(pe,Ce)=>{const Ye=[],st=[],St=Ko=>j(Ko,Qo=>{Qo.isNew&&Ye.push(Qo.element);const _i=Qo.element;return go(_i),U(Qo.cells,To=>{To.isNew&&st.push(To.element),Kf(To.element,"colspan",To.colspan,1),Kf(To.element,"rowspan",To.rowspan,1),$r(_i,To.element)}),_i}),Ut=Ko=>he(Ko,Qo=>j(Qo.cells,_i=>(Kf(_i.element,"span",_i.colspan,1),_i.element))),un=(Ko,Qo)=>{const _i=B1(pe,Qo),Zo=(Qo==="colgroup"?Ut:St)(Ko);So(_i,Zo)},Tn=Ko=>{ga(pe,Ko).each(li)},$n=(Ko,Qo)=>{Ko.length>0?un(Ko,Qo):Tn(Qo)},ur=[],Nr=[],Ro=[],ai=[];return U(Ce,Ko=>{switch(Ko.section){case"thead":ur.push(Ko);break;case"tbody":Nr.push(Ko);break;case"tfoot":Ro.push(Ko);break;case"colgroup":ai.push(Ko);break}}),$n(ai,"colgroup"),$n(ur,"thead"),$n(Nr,"tbody"),$n(Ro,"tfoot"),{newRows:Ye,newCells:st}},Em=pe=>j(pe,Ce=>{const Ye=br(Ce.element);return U(Ce.cells,st=>{const St=dr(st.element);Kf(St,"colspan",st.colspan,1),Kf(St,"rowspan",st.rowspan,1),$r(Ye,St)}),Ye}),$x=(pe,Ce)=>j(pe,Ye=>Ru(Ye,Ce)),Nd=(pe,Ce)=>pe[Ce],ry=(pe,Ce)=>{if(pe.length===0)return 0;const Ye=pe[0];return ee(pe,St=>!Ce(Ye.element,St.element)).getOr(pe.length)},HO=(pe,Ce,Ye,st)=>{const St=Nd(pe,Ce),Ut=St.section==="colgroup",un=ry(St.cells.slice(Ye),st),Tn=Ut?1:ry($x(pe.slice(Ce),Ye),st);return{colspan:un,rowspan:Tn}},Vx=(pe,Ce)=>{const Ye=j(pe,St=>j(St.cells,T)),st=(St,Ut,un,Tn)=>{for(let $n=St;$n{const un=he(St.cells,(Tn,$n)=>{if(Ye[Ut][$n]===!1){const ur=HO(pe,Ut,$n,Ce);return st(Ut,$n,ur.rowspan,ur.colspan),[zn(Tn.element,ur.rowspan,ur.colspan,Tn.isNew)]}else return[]});return gr(St.element,un,St.section,St.isNew)})},z1=(pe,Ce,Ye)=>{const st=[];U(pe.colgroups,St=>{const Ut=[];for(let un=0;unvr($n.element,Ye,!1)).getOrThunk(()=>vr(Ce.colGap(),!0,!1));Ut.push(Tn)}st.push(nr(St.element,Ut,"colgroup",Ye))});for(let St=0;Stvr(Nr.element,Ye,Nr.isLocked)).getOrThunk(()=>vr(Ce.gap(),!0,!1));Ut.push(ur)}const un=pe.all[St],Tn=nr(un.element,Ut,un.section,Ye);st.push(Tn)}return st},j_=(pe,Ce)=>z1(pe,Ce,!1),oy=pe=>Vx(pe,vn),xb=(pe,Ce)=>Se(pe.all,Ye=>Y(Ye.cells,st=>vn(Ce,st.element))),ZO=(pe,Ce,Ye)=>{const st=j(Ce.selection,Ut=>Vh(Ut).bind(un=>xb(pe,un)).filter(Ye)),St=Ql(st);return Nf(St.length>0,St)},Af=(pe,Ce,Ye,st,St)=>(Ut,un,Tn,$n)=>{const ur=Xi.fromTable(Ut),Nr=C.from($n==null?void 0:$n.section).getOrThunk(Th.fallback);return Ce(ur,un).map(ai=>{const Ko=j_(ur,Tn),Qo=pe(Ko,ai,vn,St(Tn),Nr),_i=Ps(Qo.grid),To=oy(Qo.grid);return{info:ai,grid:To,cursor:Qo.cursor,lockedColumns:_i}}).bind(ai=>{const Ko=cf(Ut,ai.grid),Qo=C.from($n==null?void 0:$n.sizing).getOrThunk(()=>Ls.getTableSize(Ut)),_i=C.from($n==null?void 0:$n.resize).getOrThunk(z0);return Ye(Ut,ai.grid,ai.info,{sizing:Qo,resize:_i,section:Nr}),st(Ut),at(Ut,si),ai.lockedColumns.length>0&<(Ut,si,ai.lockedColumns.join(",")),C.some({cursor:ai.cursor,newRows:Ko.newRows,newCells:Ko.newCells})})},gg=(pe,Ce)=>Vh(Ce.element).bind(Ye=>xb(pe,Ye).map(st=>({...st,generators:Ce.generators,clipboard:Ce.clipboard}))),dp=(pe,Ce)=>ZO(pe,Ce,E).map(Ye=>({cells:Ye,generators:Ce.generators,clipboard:Ce.clipboard})),N0=(pe,Ce)=>Ce.mergable,Q_=(pe,Ce)=>Ce.unmergable,Vp=(pe,Ce)=>ZO(pe,Ce,E),nh=(pe,Ce)=>ZO(pe,Ce,Ye=>!Ye.isLocked),F1=(pe,Ce)=>xb(pe,Ce).exists(Ye=>!Ye.isLocked),N1=(pe,Ce)=>se(Ce,Ye=>F1(pe,Ye)),iy=(pe,Ce)=>N0(pe,Ce).filter(Ye=>N1(pe,Ye.cells)),qO=(pe,Ce)=>Q_(pe,Ce).filter(Ye=>N1(pe,Ye)),wS=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows;if(St.length===0)return pe;for(let Ut=Ce.startRow;Ut<=Ce.finishRow;Ut++)for(let un=Ce.startCol;un<=Ce.finishCol;un++){const Tn=St[Ut],$n=Ru(Tn,un).isLocked;Hi(Tn,un,vr(st(),!1,$n))}return pe},$1=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows;let Ut=!0;for(let un=0;unoe(pe,(Ye,st)=>$(Ye,St=>Ce(St.element,st.element))?Ye:Ye.concat([st]),[]),H_=(pe,Ce,Ye,st)=>(Ce>0&&Ce{const Ut=St.cells[Ce-1];let un=0;const Tn=st();for(;St.cells.length>Ce+un&&Ye(Ut.element,St.cells[Ce+un].element);)Hi(St,Ce+un,vr(Tn,!0,St.cells[Ce+un].isLocked)),un++}),pe),nc=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows;if(Ce>0&&Ce{let $n=C.none();for(let ur=Ce;ur{Hi(Ro,Nr,vr(Qo,!0,ai.isLocked))}))}})}return pe},$0=pe=>{const Ce=Ut=>Ut(pe),Ye=v(pe),st=()=>St,St={tag:!0,inner:pe,fold:(Ut,un)=>un(pe),isValue:E,isError:T,map:Ut=>V1.value(Ut(pe)),mapError:st,bind:Ce,exists:Ce,forall:Ce,getOr:Ye,or:st,getOrThunk:Ye,orThunk:st,getOrDie:Ye,each:Ut=>{Ut(pe)},toOptional:()=>C.some(pe)};return St},yd=pe=>{const Ce=()=>Ye,Ye={tag:!1,inner:pe,fold:(st,St)=>st(pe),isValue:T,isError:E,map:Ce,mapError:st=>V1.error(st(pe)),bind:Ce,exists:T,forall:E,getOr:_,or:_,getOrThunk:M,orThunk:M,getOrDie:R(String(pe)),each:u,toOptional:C.none};return Ye},V1={value:$0,error:yd,fromOption:(pe,Ce)=>pe.fold(()=>yd(Ce),$0)},r0=(pe,Ce,Ye)=>{if(pe.row>=Ce.length||pe.column>Yc(Ce[0]))return V1.error("invalid start address out of table bounds, row: "+pe.row+", column: "+pe.column);const st=Ce.slice(pe.row),St=st[0].cells.slice(pe.column),Ut=Yc(Ye[0]),un=Ye.length;return V1.value({rowDelta:st.length-un,colDelta:St.length-Ut})},vg=(pe,Ce)=>{const Ye=Yc(pe[0]),st=Yc(Ce[0]);return{rowDelta:0,colDelta:Ye-st}},oh=(pe,Ce)=>{const Ye=pe.length,st=Ce.length;return{rowDelta:Ye-st,colDelta:0}},Ch=(pe,Ce,Ye,st)=>{const St=Ce.section==="colgroup"?Ye.col:Ye.cell;return Q(pe,Ut=>vr(St(),!0,st(Ut)))},Z_=(pe,Ce,Ye,st)=>{const St=pe[pe.length-1];return pe.concat(Q(Ce,()=>{const Ut=St.section==="colgroup"?Ye.colgroup:Ye.row,un=Fc(St,Ut,_),Tn=Ch(un.cells.length,un,Ye,$n=>We(st,$n.toString()));return pi(un,Tn)}))},q_=(pe,Ce,Ye,st)=>j(pe,St=>{const Ut=Ch(Ce,St,Ye,T);return sf(St,st,Ut)}),V0=(pe,Ce,Ye)=>j(pe,st=>oe(Ye,(St,Ut)=>{const un=Ch(1,st,Ce,E)[0];return Ml(St,Ut,un)},st)),Up=(pe,Ce,Ye)=>{const st=Ce.colDelta<0?q_:_,St=Ce.rowDelta<0?Z_:_,Ut=Ps(pe),un=Yc(pe[0]),Tn=$(Ut,Nr=>Nr===un-1),$n=st(pe,Math.abs(Ce.colDelta),Ye,Tn?un-1:un),ur=Ps($n);return St($n,Math.abs(Ce.rowDelta),Ye,ce(ur,E))},W_=(pe,Ce,Ye,st)=>{const St=Ru(pe[Ce],Ye),Ut=A(st,St.element),un=pe[Ce];return pe.length>1&&Yc(un)>1&&(Ye>0&&Ut(vc(un,Ye-1))||Ye0&&Ut(vc(pe[Ce-1],Ye))||Ce{const un=pe.row,Tn=pe.column,$n=Ye.length,ur=Yc(Ye[0]),Nr=un+$n,Ro=Tn+ur+Ut.length,ai=ce(Ut,E);for(let Ko=un;Ko{const st=Yc(Ce[0]),St=Kl(Ce).cols.length+pe.row,Ut=Q(st-pe.column,Tn=>Tn+pe.column),un=Y(Ut,Tn=>se(Ye,$n=>$n!==Tn)).getOr(st-1);return{row:St,column:un}},o0=(pe,Ce,Ye)=>W(Ye,st=>st>=pe.column&&st<=Yc(Ce[0])+pe.column),Ra=(pe,Ce,Ye,st,St)=>{const Ut=Ps(Ce),un=jp(pe,Ce,Ut),Tn=Kl(Ye).rows,$n=o0(un,Tn,Ut);return r0(un,Ce,Tn).map(Nr=>{const Ro={...Nr,colDelta:Nr.colDelta-$n.length},ai=Up(Ce,Ro,st),Ko=Ps(ai),Qo=o0(un,Tn,Ko);return U0(un,ai,Tn,st,St,Qo)})},bd=(pe,Ce,Ye,st,St)=>{H_(Ce,pe,St,st.cell);const Ut=oh(Ye,Ce),un=Up(Ye,Ut,st),Tn=oh(Ce,un),$n=Up(Ce,Tn,st);return j($n,(ur,Nr)=>sf(ur,pe,un[Nr].cells))},Zh=(pe,Ce,Ye,st,St)=>{nc(Ce,pe,St,st.cell);const Ut=Ps(Ce),un=vg(Ce,Ye),Tn={...un,colDelta:un.colDelta-Ut.length},$n=Up(Ce,Tn,st),{cols:ur,rows:Nr}=Kl($n),Ro=Ps($n),ai=vg(Ye,Ce),Ko={...ai,colDelta:ai.colDelta+Ro.length},Qo=V0(Ye,st,Ro),_i=Up(Qo,Ko,st);return[...ur,...Nr.slice(0,pe),..._i,...Nr.slice(pe,Nr.length)]},i0=(pe,Ce,Ye,st)=>Fc(pe,St=>st(St,Ye),Ce),Il=(pe,Ce,Ye,st,St)=>{const{rows:Ut,cols:un}=Kl(pe),Tn=Ut.slice(0,Ce),$n=Ut.slice(Ce),ur=i0(Ut[Ye],(Nr,Ro)=>Ce>0&&Ce{if(Ye==="colgroup"||!st){const Tn=Ru(pe,St);return vr(un(Tn.element,Ut),!0,!1)}else return Ru(pe,Ce)},U1=(pe,Ce,Ye,st,St)=>j(pe,Ut=>{const un=Ce>0&&Cehe(pe,Ye=>{const st=Ye.cells,St=K(Ce,(Ut,un)=>un>=0&&un0?[nr(Ye.element,St,Ye.section,Ye.isNew)]:[]}),Ux=(pe,Ce,Ye)=>{const{rows:st,cols:St}=Kl(pe);return[...St,...st.slice(0,Ce),...st.slice(Ye+1)]},ay=(pe,Ce,Ye,st)=>vc(pe[Ce],Ye)!==void 0&&Ce>0&&st(vc(pe[Ce-1],Ye),vc(pe[Ce],Ye)),Dl=(pe,Ce,Ye)=>Ce>0&&Ye(vc(pe,Ce-1),vc(pe,Ce)),kl=(pe,Ce,Ye,st)=>ay(pe,Ce,Ye,st)||Dl(pe[Ce],Ye,st),SS=(pe,Ce)=>se(Ce,_)&&I1(pe.cells)?E:(st,St,Ut)=>!(qt(st.element)==="th"&&Ce[Ut]),Y_=(pe,Ce)=>se(Ce,_)&&I1(pe)?E:(st,St,Ut)=>!(qt(st.element)==="th"&&Ce[St]),Pm=(pe,Ce,Ye,st)=>{const St=un=>un==="row"?gc(Ce):Vf(Ce),Ut=un=>St(un)?`${un}group`:un;return pe?L1(Ce)?Ut(Ye):null:st&&L1(Ce)?Ut(Ye==="row"?"col":"row"):null},fi=(pe,Ce)=>(Ye,st,St)=>C.some(Pm(pe,Ye.element,"col",Ce[St])),kS=(pe,Ce)=>(Ye,st)=>C.some(Pm(pe,Ye.element,"row",Ce[st])),YO=(pe,Ce,Ye)=>vr(Ye(pe.element,Ce),!0,pe.isLocked),jx=(pe,Ce,Ye,st,St,Ut,un)=>{const Tn=$n=>$(Ce,ur=>Ye($n.element,ur.element));return j(pe,($n,ur)=>Qh($n,(Nr,Ro)=>{if(Tn(Nr)){const ai=un(Nr,ur,Ro)?St(Nr,Ye,st):Nr;return Ut(ai,ur,Ro).each(Ko=>{zt(ai.element,{scope:C.from(Ko)})}),ai}else return Nr}))},X_=(pe,Ce,Ye)=>he(pe,(st,St)=>kl(pe,St,Ce,Ye)?[]:[Ru(st,Ce)]),TS=(pe,Ce,Ye)=>{const st=pe[Ce];return he(st.cells,(St,Ut)=>kl(pe,Ce,Ut,Ye)?[]:[St])},_b=(pe,Ce,Ye,st,St)=>{const Ut=Kl(pe).rows,un=he(Ce,Nr=>X_(Ut,Nr,st)),Tn=j(Ut,Nr=>I1(Nr.cells)),$n=Y_(un,Tn),ur=kS(Ye,Tn);return jx(pe,un,st,St,YO,ur,$n)},sy=(pe,Ce,Ye,st,St,Ut,un)=>{const{cols:Tn,rows:$n}=Kl(pe),ur=$n[Ce[0]],Nr=he(Ce,To=>TS($n,To,St)),Ro=j(ur.cells,(To,Zo)=>I1(X_($n,Zo,St))),ai=[...$n];U(Ce,To=>{ai[To]=un.transformRow($n[To],Ye)});const Ko=[...Tn,...ai],Qo=SS(ur,Ro),_i=fi(st,Ro);return jx(Ko,Nr,St,Ut,un.transformCell,_i,Qo)},j0=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=j(Ce,un=>Ru(St[un.row],un.column));return jx(pe,Ut,Ye,st,YO,C.none,E)},Rm={generate:pe=>{if(!c(pe))throw new Error("cases must be an array");if(pe.length===0)throw new Error("there must be at least one case");const Ce=[],Ye={};return U(pe,(st,St)=>{const Ut=Te(st);if(Ut.length!==1)throw new Error("one and only one name per case");const un=Ut[0],Tn=st[un];if(Ye[un]!==void 0)throw new Error("duplicate key detected:"+un);if(un==="cata")throw new Error("cannot have a case named cata (sorry)");if(!c(Tn))throw new Error("case arguments must be an array");Ce.push(un),Ye[un]=(...$n)=>{const ur=$n.length;if(ur!==Tn.length)throw new Error("Wrong number of arguments to case "+un+". Expected "+Tn.length+" ("+Tn+"), got "+ur);return{fold:(...Ro)=>{if(Ro.length!==pe.length)throw new Error("Wrong number of arguments to fold. Expected "+pe.length+", got "+Ro.length);return Ro[St].apply(null,$n)},match:Ro=>{const ai=Te(Ro);if(Ce.length!==ai.length)throw new Error("Wrong number of arguments to match. Expected: "+Ce.join(",")+` Actual: `+ai.join(","));if(!se(Ce,Qo=>z(ai,Qo)))throw new Error("Not all branches were specified when using match. Specified: "+ai.join(", ")+` -Required: `+Ce.join(", "));return Ro[un].apply(null,$n)},log:Ro=>{console.log(Ro,{constructors:Ce,constructor:un,params:$n})}}}}),Ye}},Ah={...Rm.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},Hx=(pe,Ce)=>pe.length===0?Ah.none():pe.length===1?Ah.only(0):Ce===0?Ah.left(0,1):Ce===pe.length-1?Ah.right(Ce-1,Ce):Ce>0&&Ce{const Ut=pe.slice(0),un=Hx(pe,Ce),Tn=v(j(Ut,v(0))),$n=ai=>st.singleColumnWidth(Ut[ai],Ye),ur=(ai,Ko)=>St.calcLeftEdgeDeltas(Ut,ai,Ko,Ye,st.minCellWidth(),st.isRelative),Nr=(ai,Ko,Qo)=>St.calcMiddleDeltas(Ut,ai,Ko,Qo,Ye,st.minCellWidth(),st.isRelative),Ro=(ai,Ko)=>St.calcRightEdgeDeltas(Ut,ai,Ko,Ye,st.minCellWidth(),st.isRelative);return un.fold(Tn,$n,ur,Nr,Ro)},G_=(pe,Ce,Ye)=>{let st=0;for(let St=pe;St{const Ye=Xi.justCells(pe);return j(Ye,st=>{const St=G_(st.column,st.column+st.colspan,Ce);return{element:st.element,width:St,colspan:st.colspan}})},XO=(pe,Ce)=>{const Ye=Xi.justColumns(pe);return j(Ye,(st,St)=>({element:st.element,width:Ce[St],colspan:st.colspan}))},yc=(pe,Ce)=>j(pe.all,(Ye,st)=>({element:Ye.element,height:Ce[st]})),GO=pe=>K(pe,(Ce,Ye)=>Ce+Ye,0),Zx=(pe,Ce)=>Xi.hasColumns(pe)?XO(pe,Ce):Cc(pe,Ce),_b=(pe,Ce,Ye)=>{const st=Zx(pe,Ce);U(st,St=>{Ye.setElementWidth(St.element,St.width)})},K_=(pe,Ce,Ye,st,St)=>{const Ut=Xi.fromTable(pe),un=St.getCellDelta(Ce),Tn=St.getWidths(Ut,St),$n=Ye===Ut.grid.columns-1,ur=st.clampTableDelta(Tn,Ye,un,St.minCellWidth(),$n),Nr=ih(Tn,Ye,ur,St,st),Ro=j(Nr,(ai,Ko)=>ai+Tn[Ko]);_b(Ut,Ro,St),st.resizeTable(St.adjustTableWidth,ur,$n)},qx=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe),St=mr(st,pe),Ut=j(St,($n,ur)=>Ye===ur?Math.max(Ce+$n,Xd()):$n),un=yc(st,Ut);U(un,$n=>{rt($n.element,$n.height)}),U(Xi.justCells(st),$n=>{dt($n.element)});const Tn=GO(Ut);rt(pe,Tn)},J_=(pe,Ce,Ye,st,St)=>{const Ut=Xi.generate(Ce),un=st.getWidths(Ut,st),Tn=st.pixelWidth(),{newSizes:$n,delta:ur}=St.calcRedestributedWidths(un,Tn,Ye.pixelDelta,st.isRelative);_b(Ut,$n,st),st.adjustTableWidth(ur)},Lm=(pe,Ce,Ye,st)=>{const St=Xi.generate(Ce),Ut=st.getWidths(St,st);_b(St,Ut,st)},qh=pe=>oe(pe,(Ye,st)=>$(Ye,Ut=>Ut.column===st.column)?Ye:Ye.concat([st]),[]).sort((Ye,st)=>Ye.column-st.column),U1=vt("col"),Kc=vt("colgroup"),j1=pe=>qt(pe)==="tr"||Kc(pe),Qp=pe=>{const Ce=uc(pe,"colspan",1),Ye=uc(pe,"rowspan",1);return{element:pe,colspan:Ce,rowspan:Ye}},ly=(pe,Ce=Qp)=>{const Ye=Tn=>U1(Tn.element)?pe.col(Tn):pe.cell(Tn),st=Tn=>Kc(Tn.element)?pe.colgroup(Tn):pe.row(Tn),St=Tn=>{if(j1(Tn))return st({element:Tn});{const $n=Tn,ur=Ye(Ce($n));return Ut=C.some({item:$n,replacement:ur}),ur}};let Ut=C.none();return{getOrInit:(Tn,$n)=>Ut.fold(()=>St(Tn),ur=>$n(Tn,ur.item)?ur.replacement:St(Tn))}},cy=pe=>Ce=>{const Ye=[],st=(un,Tn)=>Y(Ye,$n=>Tn($n.item,un)),St=un=>{const Tn=pe==="td"?{scope:null}:{},$n=Ce.replace(un,pe,Tn);return Ye.push({item:un,sub:$n}),$n};return{replaceOrInit:(un,Tn)=>{if(j1(un)||U1(un))return un;{const $n=un;return st($n,Tn).fold(()=>St($n),ur=>Tn(un,ur.item)?ur.sub:St($n))}}}},wb=pe=>it(pe,"scope").map(Ce=>Ce.substr(0,3)),bc={modification:ly,transform:cy,merging:pe=>({unmerge:st=>{const St=wb(st);return St.each(Ut=>lt(st,"scope",Ut)),()=>{const Ut=pe.cell({element:st,colspan:1,rowspan:1});return Es(Ut,"width"),Es(st,"width"),St.each(un=>lt(Ut,"scope",un)),Ut}},merge:st=>{const St=()=>{const Ut=Ql(j(st,wb));if(Ut.length===0)return C.none();{const un=Ut[0],Tn=["row","col"];return $(Ut,ur=>ur!==un&&z(Tn,ur))?C.none():C.from(un)}};return Es(st[0],"width"),St().fold(()=>at(st[0],"scope"),Ut=>lt(st[0],"scope",Ut+"group")),v(st[0])}})},KO=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],ew=(pe,Ce)=>{const Ye=pe.property().name(Ce);return z(["ol","ul"],Ye)},Q0=(pe,Ce)=>{const Ye=pe.property().name(Ce);return z(KO,Ye)},Nc=(pe,Ce)=>z(["br","img","hr","input"],pe.property().name(Ce)),vg=ug(),qr=pe=>Q0(vg,pe),N=pe=>ew(vg,pe),G=pe=>Nc(vg,pe),fe=pe=>{const Ce=vt("br"),Ye=$n=>se($n,ur=>Ce(ur)||gn(ur)&&qf(ur).trim().length===0),st=$n=>qt($n)==="li"||Aa($n,N).isSome(),St=$n=>Wn($n).map(ur=>qr(ur)?!0:G(ur)?qt(ur)!=="img":!1).getOr(!1),Ut=$n=>Ax($n).bind(ur=>{const Nr=St(ur);return Sr(ur).map(Ro=>Nr===!0||st(Ro)||Ce(ur)||qr(Ro)&&!vn($n,Ro)?[]:[Pt.fromTag("br")])}).getOr([]),Tn=(()=>{const $n=he(pe,ur=>{const Nr=Kn(ur);return Ye(Nr)?[]:Nr.concat(Ut(ur))});return $n.length===0?[Pt.fromTag("br")]:$n})();go(pe[0]),So(pe[0],Tn)},Ae=pe=>Kg(pe,!0),Qe=pe=>{bf(pe).length===0&&li(pe)},et=(pe,Ce)=>({grid:pe,cursor:Ce}),ut=pe=>Se(pe,Ce=>Se(Ce.cells,Ye=>{const st=Ye.element;return Nf(Ae(st),st)})),Tt=(pe,Ce,Ye)=>{var st,St;const Ut=Kl(pe).rows;return C.from((St=(st=Ut[Ce])===null||st===void 0?void 0:st.cells[Ye])===null||St===void 0?void 0:St.element).filter(Ae).orThunk(()=>ut(Ut))},Bt=(pe,Ce,Ye)=>{const st=Tt(pe,Ce,Ye);return et(pe,st)},rn=pe=>oe(pe,(Ye,st)=>$(Ye,Ut=>Ut.row===st.row)?Ye:Ye.concat([st]),[]).sort((Ye,st)=>Ye.row-st.row),an=(pe,Ce,Ye,st)=>{const St=Ce[0].row,Ut=rn(Ce),un=K(Ut,(Tn,$n)=>({grid:Il(Tn.grid,St,$n.row+Tn.delta,Ye,st.getOrInit),delta:Tn.delta+1}),{grid:pe,delta:0}).grid;return Bt(un,St,Ce[0].column)},_n=(pe,Ce,Ye,st)=>{const St=rn(Ce),Ut=St[St.length-1],un=Ut.row+Ut.rowspan,Tn=K(St,($n,ur)=>Il($n,un,ur.row,Ye,st.getOrInit),pe);return Bt(Tn,un,Ce[0].column)},Dn=(pe,Ce,Ye,st)=>{const St=Ce.details,Ut=qh(St),un=Ut[0].column,Tn=K(Ut,($n,ur)=>({grid:$1($n.grid,un,ur.column+$n.delta,Ye,st.getOrInit),delta:$n.delta+1}),{grid:pe,delta:0}).grid;return Bt(Tn,St[0].row,un)},Cn=(pe,Ce,Ye,st)=>{const St=Ce.details,Ut=St[St.length-1],un=Ut.column+Ut.colspan,Tn=qh(St),$n=K(Tn,(ur,Nr)=>$1(ur,un,Nr.column,Ye,st.getOrInit),pe);return Bt($n,St[0].row,un)},Jn=(pe,Ce,Ye,st)=>{const St=qh(Ce),Ut=j(St,Tn=>Tn.column),un=xb(pe,Ut,!0,Ye,st.replaceOrInit);return Bt(un,Ce[0].row,Ce[0].column)},lr=(pe,Ce,Ye,st)=>{const St=j0(pe,Ce,Ye,st.replaceOrInit);return Bt(St,Ce[0].row,Ce[0].column)},Ar=(pe,Ce,Ye,st)=>{const St=qh(Ce),Ut=j(St,Tn=>Tn.column),un=xb(pe,Ut,!1,Ye,st.replaceOrInit);return Bt(un,Ce[0].row,Ce[0].column)},Or=(pe,Ce,Ye,st)=>{const St=j0(pe,Ce,Ye,st.replaceOrInit);return Bt(St,Ce[0].row,Ce[0].column)},jr=(pe,Ce)=>(Ye,st,St,Ut,un)=>{const Tn=rn(st),$n=j(Tn,Nr=>Nr.row),ur=sy(Ye,$n,pe,Ce,St,Ut.replaceOrInit,un);return Bt(ur,st[0].row,st[0].column)},Jr=jr("thead",!0),uo=jr("tbody",!1),ro=jr("tfoot",!1),Po=(pe,Ce,Ye,st)=>{const St=qh(Ce.details),Ut=V1(pe,j(St,Tn=>Tn.column)),un=Ut.length>0?Ut[0].cells.length-1:0;return Bt(Ut,St[0].row,Math.min(St[0].column,un))},gi=(pe,Ce,Ye,st)=>{const St=rn(Ce),Ut=Ux(pe,St[0].row,St[St.length-1].row),un=Math.max(Kl(Ut).rows.length-1,0);return Bt(Ut,Math.min(Ce[0].row,un),Ce[0].column)},ni=(pe,Ce,Ye,st)=>{const St=Ce.cells;fe(St);const Ut=_S(pe,Ce.bounds,Ye,st.merge(St));return et(Ut,C.from(St[0]))},Ti=(pe,Ce,Ye,st)=>{const Ut=K(Ce,(un,Tn)=>F1(un,Tn,Ye,st.unmerge(Tn)),pe);return et(Ut,C.from(Ce[0]))},vi=(pe,Ce,Ye,st)=>{const Ut=(($n,ur)=>{const Nr=Xi.fromTable($n);return D1(Nr,ur,!0)})(Ce.clipboard,Ce.generators),un=hr(Ce.row,Ce.column);return Ra(un,pe,Ut,Ce.generators,Ye).fold(()=>et(pe,C.some(Ce.element)),$n=>Bt($n,Ce.row,Ce.column))},na=(pe,Ce,Ye)=>{const st=ep(pe,Ye.section),St=Xi.generate(st);return D1(St,Ce,!0)},Ji=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[0].column,un=St[Ce.cells[0].row],Tn=na(Ce.clipboard,Ce.generators,un),$n=yd(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ce.cells[0].row,Ce.cells[0].column)},La=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[Ce.cells.length-1].column+Ce.cells[Ce.cells.length-1].colspan,un=St[Ce.cells[0].row],Tn=na(Ce.clipboard,Ce.generators,un),$n=yd(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ce.cells[0].row,Ut)},ca=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[0].row,un=St[Ut],Tn=na(Ce.clipboard,Ce.generators,un),$n=Zh(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ce.cells[0].row,Ce.cells[0].column)},Zi=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[Ce.cells.length-1].row+Ce.cells[Ce.cells.length-1].rowspan,un=St[Ce.cells[0].row],Tn=na(Ce.clipboard,Ce.generators,un),$n=Zh(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ut,Ce.cells[0].column)},Bs=(pe,Ce)=>{const Ye=Xi.fromTable(pe);return Vp(Ye,Ce).bind(St=>{const Ut=St[St.length-1],un=St[0].column,Tn=Ut.column+Ut.colspan,$n=me(j(Ye.all,ur=>W(ur.cells,Nr=>Nr.column>=un&&Nr.column{const Ye=Xi.fromTable(pe);return Vp(Ye,Ce).bind(gb).getOr("")},Vl=(pe,Ce)=>{const Ye=Xi.fromTable(pe);return Vp(Ye,Ce).bind(St=>{const Ut=St[St.length-1],un=St[0].row,Tn=Ut.row+Ut.rowspan,$n=Ye.all.slice(un,Tn);return Fx($n)}).getOr("")},ka=(pe,Ce,Ye,st)=>Lm(pe,Ce,Ye,st.sizing),zs=(pe,Ce,Ye,st)=>J_(pe,Ce,Ye,st.sizing,st.resize),gs=(pe,Ce)=>$(Ce,Ye=>Ye.column===0&&Ye.isLocked),rc=(pe,Ce)=>$(Ce,Ye=>Ye.column+Ye.colspan>=pe.grid.columns&&Ye.isLocked),aa=(pe,Ce)=>{const Ye=Xc(pe),st=qh(Ce);return oe(st,(St,Ut)=>{const Tn=Ye[Ut.column].map(os).getOr(0);return St+Tn},0)},Fs=pe=>(Ce,Ye)=>Vp(Ce,Ye).filter(st=>!(pe?gs:rc)(Ce,st)).map(st=>({details:st,pixelDelta:aa(Ce,st)})),$c=(pe,Ce)=>nh(pe,Ce).map(Ye=>({details:Ye,pixelDelta:-aa(pe,Ye)})),xc=pe=>(Ce,Ye)=>dp(Ce,Ye).filter(st=>!(pe?gs:rc)(Ce,st.cells)),xu=bc.transform("th"),qu=bc.transform("td"),Vc=Cf(an,Vp,u,u,bc.modification),pl=Cf(_n,Vp,u,u,bc.modification),Uc=Cf(Dn,Fs(!0),zs,u,bc.modification),_u=Cf(Cn,Fs(!1),zs,u,bc.modification),uf=Cf(Po,$c,zs,Qe,bc.modification),ff=Cf(gi,Vp,u,Qe,bc.modification),jc=Cf(Jn,nh,u,u,xu),is=Cf(Ar,nh,u,u,qu),Vs=Cf(Jr,nh,u,u,xu),Ac=Cf(uo,nh,u,u,qu),Bl=Cf(ro,nh,u,u,qu),Uo=Cf(lr,nh,u,u,xu),ql=Cf(Or,nh,u,u,qu),Xs=Cf(ni,iy,ka,u,bc.merging),ac=Cf(Ti,qO,ka,u,bc.merging),Mc=Cf(vi,mg,ka,u,bc.modification),Mh=Cf(Ji,xc(!0),u,u,bc.modification),il=Cf(La,xc(!1),u,u,bc.modification),Im=Cf(ca,dp,u,u,bc.modification),ah=Cf(Zi,dp,u,u,bc.modification),Bu=Bs,Hp=Ja,dc=Vl,Jf=(pe,Ce)=>pe.dispatch("NewRow",{node:Ce}),yg=(pe,Ce)=>pe.dispatch("NewCell",{node:Ce}),Dm=(pe,Ce,Ye)=>{pe.dispatch("TableModified",{...Ye,table:Ce})},H1=(pe,Ce,Ye,st,St)=>{pe.dispatch("TableSelectionChange",{cells:Ce,start:Ye,finish:st,otherCells:St})},Wx=pe=>{pe.dispatch("TableSelectionClear")},Ec=(pe,Ce,Ye,st,St)=>{pe.dispatch("ObjectResizeStart",{target:Ce,width:Ye,height:st,origin:St})},Qc=(pe,Ce,Ye,st,St)=>{pe.dispatch("ObjectResized",{target:Ce,width:Ye,height:st,origin:St})},Hc={structure:!1,style:!0},_s={structure:!0,style:!1},Jc={structure:!0,style:!0},Pc=(pe,Ce)=>Xg(pe)?Ls.percentageSize(Ce):Gg(pe)?Ls.pixelSize(Ce):Ls.getTableSize(Ce),Z1=(pe,Ce,Ye)=>{const st=tu=>qt(S1(tu))==="table",St=tu=>!st(pe)||pg(tu).rows>1,Ut=tu=>!st(pe)||pg(tu).columns>1,un=C_(pe),Tn=Yf(pe)?u:dg,$n=tu=>{switch(A_(pe)){case"section":return Th.section();case"sectionCells":return Th.sectionCells();case"cells":return Th.cells();default:return Th.getTableSectionType(tu,"section")}},ur=(tu,t1)=>t1.cursor.fold(()=>{const Tw=bf(tu);return ye(Tw).filter(ao).map(vp=>{Ye.clearSelectedCells(tu.dom);const xa=pe.dom.createRng();return xa.selectNode(vp.dom),pe.selection.setRng(xa),lt(vp,"data-mce-selected","1"),xa})},Tw=>{const vp=su(Tw),xa=pe.dom.createRng();return xa.setStart(vp.element.dom,vp.offset),xa.setEnd(vp.element.dom,vp.offset),pe.selection.setRng(xa),Ye.clearSelectedCells(tu.dom),C.some(xa)}),Nr=(tu,t1,Tw,vp)=>(xa,h5,p5=!1)=>{zd(xa);const z3=Pt.fromDom(pe.getDoc()),g6=kf(Tw,z3,un),qb={sizing:Pc(pe,xa),resize:Yf(pe)?E1():z0(),section:$n(xa)};return t1(xa)?tu(xa,h5,g6,qb).bind(hv=>{Ce.refresh(xa.dom),U(hv.newRows,Cw=>{Jf(pe,Cw.dom)}),U(hv.newCells,Cw=>{yg(pe,Cw.dom)});const v6=ur(xa,hv);return ao(xa)&&(zd(xa),p5||Dm(pe,xa.dom,vp)),v6.map(Cw=>({rng:Cw,effect:vp}))}):C.none()},Ro=Nr(ff,St,u,_s),ai=Nr(uf,Ut,u,_s),Ko=Nr(Vc,E,u,_s),Qo=Nr(pl,E,u,_s),_i=Nr(Uc,E,Tn,_s),To=Nr(_u,E,Tn,_s),Zo=Nr(Xs,E,u,_s),Yi=Nr(ac,E,u,_s),ri=Nr(Mh,E,u,_s),Ms=Nr(il,E,u,_s),al=Nr(Im,E,u,_s),Gs=Nr(ah,E,u,_s),td=Nr(Mc,E,u,Jc),zu=Nr(Uo,E,u,_s),e1=Nr(ql,E,u,_s),Ay=Nr(jc,E,u,_s),My=Nr(is,E,u,_s),Zs=Nr(Vs,E,u,_s),Rh=Nr(Ac,E,u,_s),Lh=Nr(Bl,E,u,_s);return{deleteRow:Ro,deleteColumn:ai,insertRowsBefore:Ko,insertRowsAfter:Qo,insertColumnsBefore:_i,insertColumnsAfter:To,mergeCells:Zo,unmergeCells:Yi,pasteColsBefore:ri,pasteColsAfter:Ms,pasteRowsBefore:al,pasteRowsAfter:Gs,pasteCells:td,makeCellsHeader:zu,unmakeCellsHeader:e1,makeColumnsHeader:Ay,unmakeColumnsHeader:My,makeRowsHeader:Zs,makeRowsBody:Rh,makeRowsFooter:Lh,getTableRowType:dc,getTableCellType:Hp,getTableColType:Bu}},uy=(pe,Ce,Ye)=>{const st=uc(pe,Ce,1);Ye===1||st<=1?at(pe,Ce):lt(pe,Ce,Math.min(Ye,st))},q1=(pe,Ce)=>Ye=>{const st=Ye.column+Ye.colspan-1,St=Ye.column;return st>=pe&&St{if(Xi.hasColumns(pe)){const st=W(Xi.justColumns(pe),q1(Ce,Ye)),St=j(st,un=>{const Tn=dr(un.element);return uy(Tn,"span",Ye-Ce),Tn}),Ut=Pt.fromTag("colgroup");return So(Ut,St),[Ut]}else return[]},W1=(pe,Ce,Ye)=>j(pe.all,st=>{const St=W(st.cells,q1(Ce,Ye)),Ut=j(St,Tn=>{const $n=dr(Tn.element);return uy($n,"colspan",Ye-Ce),$n}),un=Pt.fromTag("tr");return So(un,Ut),un}),Y1=(pe,Ce)=>{const Ye=Xi.fromTable(pe);return nh(Ye,Ce).map(St=>{const Ut=St[St.length-1],un=St[0].column,Tn=Ut.column+Ut.colspan,$n=H0(Ye,un,Tn),ur=W1(Ye,un,Tn);return[...$n,...ur]})},X1=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe);return Vp(st,Ce).bind(Ut=>{const un=D1(st,Ye,!1),$n=Kl(un).rows.slice(Ut[0].row,Ut[Ut.length-1].row+Ut[Ut.length-1].rowspan),ur=he($n,Ro=>{const ai=W(Ro.cells,Ko=>!Ko.isLocked);return ai.length>0?[{...Ro,cells:ai}]:[]}),Nr=oy(ur);return Nf(Nr.length>0,Nr)}).map(Ut=>Em(Ut))},Zp=Rm.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),fy=(pe,Ce,Ye)=>{const st=Ye.substring(0,Ye.length-pe.length),St=parseFloat(st);return st===St.toString()?Ce(St):Zp.invalid(Ye)},Bm={...Zp,from:pe=>Cu(pe,"%")?fy("%",Zp.percent,pe):Cu(pe,"px")?fy("px",Zp.pixels,pe):Zp.invalid(pe)},Ob=(pe,Ce)=>j(pe,Ye=>Bm.from(Ye).fold(()=>Ye,St=>St/Ce*100+"%",St=>St+"%")),Wu=(pe,Ce,Ye)=>{const st=Ye/Ce;return j(pe,St=>Bm.from(St).fold(()=>St,un=>un*st+"px",un=>un/100*Ye+"px"))},Yx=(pe,Ce)=>{const Ye=pe.fold(()=>v(""),st=>{const St=st/Ce;return v(St+"px")},()=>{const st=100/Ce;return v(st+"%")});return Q(Ce,Ye)},G1=(pe,Ce,Ye)=>pe.fold(()=>Ce,st=>Wu(Ce,Ye,st),st=>Ob(Ce,Ye)),bd=(pe,Ce,Ye)=>{const st=Bm.from(Ye),St=se(pe,Ut=>Ut==="0px")?Yx(st,pe.length):G1(st,pe,Ce);return xd(St)},a0=(pe,Ce)=>pe.length===0?Ce:K(pe,(Ye,st)=>Bm.from(st).fold(v(0),_,_)+Ye,0),dy=(pe,Ce)=>{const Ye=Math.floor(pe);return{value:Ye+Ce,remainder:pe-Ye}},hp=(pe,Ce)=>Bm.from(pe).fold(v(pe),Ye=>Ye+Ce+"px",Ye=>Ye+Ce+"%"),xd=pe=>{if(pe.length===0)return pe;const Ce=K(pe,(st,St)=>{const Ut=Bm.from(St).fold(()=>({value:St,remainder:0}),un=>dy(un,"px"),un=>({value:un+"%",remainder:0}));return{output:[Ut.value].concat(st.output),remainder:st.remainder+Ut.remainder}},{output:[],remainder:0}),Ye=Ce.output;return Ye.slice(0,Ye.length-1).concat([hp(Ye[Ye.length-1],Math.round(Ce.remainder))])},bg=Bm.from,Sb=(pe,Ce,Ye)=>{U(Ce,st=>{const St=pe.slice(st.column,st.colspan+st.column),Ut=a0(St,Mp());Ss(st.element,"width",Ut+Ye)})},kb=(pe,Ce,Ye)=>{U(Ce,(st,St)=>{const Ut=a0([pe[St]],Mp());Ss(st.element,"width",Ut+Ye)})},Xx=(pe,Ce,Ye)=>{U(Ye,st=>{Es(st.element,"height")}),U(Ce,(st,St)=>{Ss(st.element,"height",pe[St])})},Z0=pe=>bg(pe).fold(v("px"),v("px"),v("%")),Tb=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe),St=st.all,Ut=Xi.justCells(st),un=Xi.justColumns(st);Ce.each(Tn=>{const $n=Z0(Tn),ur=js(pe),Nr=Ui(st,pe),Ro=bd(Nr,ur,Tn);Xi.hasColumns(st)?kb(Ro,un,$n):Sb(Ro,Ut,$n),Ss(pe,"width",Tn)}),Ye.each(Tn=>{const $n=Qf(pe),ur=ys(st,pe),Nr=bd(ur,$n,Tn);Xx(Nr,St,Ut),Ss(pe,"height",Tn)})},tw=Zr,hy=Mo,eu=$o,Eh=pe=>{at(pe,"width"),at(pe,"height")},K1=pe=>{const Ce=Pr(pe);Tb(pe,C.some(Ce),C.none()),Eh(pe)},xg=pe=>{const Ce=rr(pe);Tb(pe,C.some(Ce),C.none()),Eh(pe)},Cb=pe=>{const Ce=Dr(pe);Tb(pe,C.none(),C.some(Ce)),Eh(pe)},nw=pe=>{Es(pe,"width");const Ce=tf(pe),Ye=Ce.length>0?Ce:bf(pe);U(Ye,st=>{Es(st,"width"),Eh(st)}),Eh(pe)},Ab={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},_g=()=>Pt.fromTag("th"),J1=()=>Pt.fromTag("td"),py=()=>Pt.fromTag("col"),Gx=(pe,Ce,Ye,st)=>{const St=Pt.fromTag("tr");for(let Ut=0;Ut{const Ce=Pt.fromTag("colgroup");return Q(pe,()=>$r(Ce,py())),Ce},ev=(pe,Ce,Ye,st)=>Q(pe,St=>Gx(Ce,Ye,st,St)),e3=(pe,Ce,Ye,st,St,Ut=Ab)=>{const un=Pt.fromTag("table"),Tn=St!=="cells";$f(un,Ut.styles),yt(un,Ut.attributes),Ut.colGroups&&$r(un,Mb(Ce));const $n=Math.min(pe,Ye);if(Tn&&Ye>0){const Ko=Pt.fromTag("thead");$r(un,Ko);const _i=ev(Ye,Ce,St==="sectionCells"?$n:0,st);So(Ko,_i)}const ur=Pt.fromTag("tbody");$r(un,ur);const Nr=Tn?pe-$n:pe,ai=ev(Nr,Ce,Tn?0:Ye,st);return So(ur,ai),un},my=pe=>pe.dom.innerHTML,_d=pe=>{const Ce=Pt.fromTag("div"),Ye=Pt.fromDom(pe.dom.cloneNode(!0));return $r(Ce,Ye),my(Ce)},Kx=(pe,Ce)=>{pe.selection.select(Ce.dom,!0),pe.selection.collapse(!0)},Jx=(pe,Ce)=>{Ku(Ce,"td,th").each(A(Kx,pe))},e2=(pe,Ce)=>{U(ra(Ce,"tr"),Ye=>{Jf(pe,Ye.dom),U(ra(Ye,"th,td"),st=>{yg(pe,st.dom)})})},Eb=pe=>l(pe)&&pe.indexOf("%")!==-1,Wh=(pe,Ce,Ye,st,St)=>{const Ut=L0(pe),un={styles:Ut,attributes:Xf(pe),colGroups:Px(pe)};return pe.undoManager.ignore(()=>{const Tn=e3(Ye,Ce,St,st,A_(pe),un);lt(Tn,"data-mce-id","__mce");const $n=_d(Tn);pe.insertContent($n),pe.addVisual()}),Ku(S1(pe),'table[data-mce-id="__mce"]').map(Tn=>(Gg(pe)?xg(Tn):lp(pe)?nw(Tn):(Xg(pe)||Eb(Ut.width))&&K1(Tn),zd(Tn),at(Tn,"data-mce-id"),e2(pe,Tn),Jx(pe,Tn),Tn.dom)).getOrNull()},t2=(pe,Ce,Ye,st={})=>{const St=Ut=>a(Ut)&&Ut>0;if(St(Ce)&&St(Ye)){const Ut=st.headerRows||0,un=st.headerColumns||0;return Wh(pe,Ye,Ce,un,Ut)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var Pb=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const zm="x-tinymce/dom-table-",rw=zm+"rows",n2=zm+"columns",Fm=pe=>{const Ce=Pb.FakeClipboardItem(pe);Pb.write([Ce])},q0=pe=>{var Ce;const Ye=(Ce=Pb.read())!==null&&Ce!==void 0?Ce:[];return Se(Ye,st=>C.from(st.getType(pe)))},tv=pe=>{q0(pe).isSome()&&Pb.clear()},nv=pe=>{pe.fold(t3,Ce=>Fm({[rw]:Ce}))},rv=()=>q0(rw),t3=()=>tv(rw),ow=pe=>{pe.fold(aw,Ce=>Fm({[n2]:Ce}))},iw=()=>q0(n2),aw=()=>tv(n2),gy=pe=>jO(fp(pe),Tm(pe)).filter(Cm),W0=pe=>z_(fp(pe),Tm(pe)).filter(Cm),wg=(pe,Ce)=>{const Ye=Tm(pe),st=()=>gy(pe).each(To=>{Au(To,Ye).filter(x(Ye)).each(Zo=>{const Yi=Pt.fromText("");if(Fr(Zo,Yi),li(Zo),pe.dom.isEmpty(pe.getBody()))pe.setContent(""),pe.selection.setCursorLocation();else{const ri=pe.dom.createRng();ri.setStart(Yi.dom,0),ri.setEnd(Yi.dom,0),pe.selection.setRng(ri),pe.nodeChanged()}})}),St=To=>gy(pe).each(Zo=>{lp(pe)||Gg(pe)||Xg(pe)||Au(Zo,Ye).each(ri=>{To==="relative"&&!tw(ri)?K1(ri):To==="fixed"&&!hy(ri)?xg(ri):To==="responsive"&&!eu(ri)&&nw(ri),zd(ri),Dm(pe,ri.dom,_s)})}),Ut=To=>Au(To,Ye),un=To=>W0(pe).bind(Zo=>Ut(Zo).map(Yi=>To(Yi,Zo))),Tn=(To,Zo)=>{un(Yi=>{pe.formatter.toggle("tableclass",{value:Zo},Yi.dom),Dm(pe,Yi.dom,Hc)})},$n=(To,Zo)=>{un(Yi=>{const ri=wl(pe),al=se(ri,Gs=>pe.formatter.match("tablecellclass",{value:Zo},Gs.dom))?pe.formatter.remove:pe.formatter.apply;U(ri,Gs=>al("tablecellclass",{value:Zo},Gs.dom)),Dm(pe,Yi.dom,Hc)})},ur=()=>{gy(pe).each(To=>{Au(To,Ye).each(Zo=>{ma(Zo,"caption").fold(()=>{const Yi=Pt.fromTag("caption");$r(Yi,Pt.fromText("Caption")),Kr(Zo,Yi,0),pe.selection.setCursorLocation(Yi.dom,0)},Yi=>{vt("caption")(To)&&dn("td",Zo).each(ri=>pe.selection.setCursorLocation(ri.dom,0)),li(Yi)}),Dm(pe,Zo.dom,_s)})})},Nr=To=>{pe.focus()},Ro=(To,Zo=!1)=>un((Yi,ri)=>{const Ms=Dx(wl(pe),Yi,ri);To(Yi,Ms,Zo).each(Nr)}),ai=()=>un((To,Zo)=>{const Yi=Dx(wl(pe),To,Zo),ri=kf(u,Pt.fromDom(pe.getDoc()),C.none());return X1(To,Yi,ri)}),Ko=()=>un((To,Zo)=>{const Yi=Dx(wl(pe),To,Zo);return Y1(To,Yi)}),Qo=(To,Zo)=>Zo().each(Yi=>{const ri=j(Yi,Ms=>dr(Ms));un((Ms,al)=>{const Gs=Hv(Pt.fromDom(pe.getDoc())),td=t0(wl(pe),al,ri,Gs);To(Ms,td).each(Nr)})}),_i=To=>(Zo,Yi)=>Le(Yi,"type").each(ri=>{Ro(To(ri),Yi.no_events)});Ie({mceTableSplitCells:()=>Ro(Ce.unmergeCells),mceTableMergeCells:()=>Ro(Ce.mergeCells),mceTableInsertRowBefore:()=>Ro(Ce.insertRowsBefore),mceTableInsertRowAfter:()=>Ro(Ce.insertRowsAfter),mceTableInsertColBefore:()=>Ro(Ce.insertColumnsBefore),mceTableInsertColAfter:()=>Ro(Ce.insertColumnsAfter),mceTableDeleteCol:()=>Ro(Ce.deleteColumn),mceTableDeleteRow:()=>Ro(Ce.deleteRow),mceTableCutCol:()=>Ko().each(To=>{ow(To),Ro(Ce.deleteColumn)}),mceTableCutRow:()=>ai().each(To=>{nv(To),Ro(Ce.deleteRow)}),mceTableCopyCol:()=>Ko().each(To=>ow(To)),mceTableCopyRow:()=>ai().each(To=>nv(To)),mceTablePasteColBefore:()=>Qo(Ce.pasteColsBefore,iw),mceTablePasteColAfter:()=>Qo(Ce.pasteColsAfter,iw),mceTablePasteRowBefore:()=>Qo(Ce.pasteRowsBefore,rv),mceTablePasteRowAfter:()=>Qo(Ce.pasteRowsAfter,rv),mceTableDelete:st,mceTableCellToggleClass:$n,mceTableToggleClass:Tn,mceTableToggleCaption:ur,mceTableSizingMode:(To,Zo)=>St(Zo),mceTableCellType:_i(To=>To==="th"?Ce.makeCellsHeader:Ce.unmakeCellsHeader),mceTableColType:_i(To=>To==="th"?Ce.makeColumnsHeader:Ce.unmakeColumnsHeader),mceTableRowType:_i(To=>{switch(To){case"header":return Ce.makeRowsHeader;case"footer":return Ce.makeRowsFooter;default:return Ce.makeRowsBody}})},(To,Zo)=>pe.addCommand(Zo,To)),pe.addCommand("mceInsertTable",(To,Zo)=>{t2(pe,Zo.rows,Zo.columns,Zo.options)}),pe.addCommand("mceTableApplyCellStyle",(To,Zo)=>{const Yi=al=>"tablecell"+al.toLowerCase().replace("-","");if(!n(Zo))return;const ri=W(wl(pe),Cm);if(ri.length===0)return;const Ms=$e(Zo,(al,Gs)=>pe.formatter.has(Yi(Gs))&&l(al));Ze(Ms)||(Ie(Ms,(al,Gs)=>{const td=Yi(Gs);U(ri,zu=>{al===""?pe.formatter.remove(td,{value:null},zu.dom,!0):pe.formatter.apply(td,{value:al},zu.dom)})}),Ut(ri[0]).each(al=>Dm(pe,al.dom,Hc)))})},n3=(pe,Ce)=>{const Ye=Tm(pe),st=St=>z_(fp(pe)).bind(Ut=>Au(Ut,Ye).map(un=>{const Tn=Dx(wl(pe),un,Ut);return St(un,Tn)})).getOr("");Ie({mceTableRowType:()=>st(Ce.getTableRowType),mceTableCellType:()=>st(Ce.getTableCellType),mceTableColType:()=>st(Ce.getTableColType)},(St,Ut)=>pe.addQueryValueHandler(Ut,St))},vy=Rm.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),sw=(pe,Ce,Ye,st)=>pe.fold(Ce,Ye,st),pp=pe=>pe.fold(_,_,_),r2=vy.before,yy=vy.on,Rb=vy.after,wd={before:r2,on:yy,after:Rb,cata:sw,getStart:pp},s0={create:(pe,Ce)=>({selection:pe,kill:Ce})},Lb=(pe,Ce)=>{const Ye=pe.document.createRange();return Ye.selectNode(Ce.dom),Ye},l0=(pe,Ce)=>{const Ye=pe.document.createRange();return Y0(Ye,Ce),Ye},Y0=(pe,Ce)=>pe.selectNodeContents(Ce.dom),CS=(pe,Ce)=>{Ce.fold(Ye=>{pe.setStartBefore(Ye.dom)},(Ye,st)=>{pe.setStart(Ye.dom,st)},Ye=>{pe.setStartAfter(Ye.dom)})},r3=(pe,Ce)=>{Ce.fold(Ye=>{pe.setEndBefore(Ye.dom)},(Ye,st)=>{pe.setEnd(Ye.dom,st)},Ye=>{pe.setEndAfter(Ye.dom)})},o3=(pe,Ce,Ye)=>{const st=pe.document.createRange();return CS(st,Ce),r3(st,Ye),st},o2=(pe,Ce,Ye,st,St)=>{const Ut=pe.document.createRange();return Ut.setStart(Ce.dom,Ye),Ut.setEnd(st.dom,St),Ut},i2=pe=>({left:pe.left,top:pe.top,right:pe.right,bottom:pe.bottom,width:pe.width,height:pe.height}),AS=pe=>{const Ce=pe.getClientRects(),Ye=Ce.length>0?Ce[0]:pe.getBoundingClientRect();return Ye.width>0||Ye.height>0?C.some(Ye).map(i2):C.none()},Ib=Rm.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),lw=(pe,Ce,Ye)=>Ce(Pt.fromDom(Ye.startContainer),Ye.startOffset,Pt.fromDom(Ye.endContainer),Ye.endOffset),MS=(pe,Ce)=>Ce.match({domRange:Ye=>({ltr:v(Ye),rtl:C.none}),relative:(Ye,st)=>({ltr:Ep(()=>o3(pe,Ye,st)),rtl:Ep(()=>C.some(o3(pe,st,Ye)))}),exact:(Ye,st,St,Ut)=>({ltr:Ep(()=>o2(pe,Ye,st,St,Ut)),rtl:Ep(()=>C.some(o2(pe,St,Ut,Ye,st)))})}),cw=(pe,Ce)=>{const Ye=Ce.ltr();return Ye.collapsed?Ce.rtl().filter(St=>St.collapsed===!1).map(St=>Ib.rtl(Pt.fromDom(St.endContainer),St.endOffset,Pt.fromDom(St.startContainer),St.startOffset)).getOrThunk(()=>lw(pe,Ib.ltr,Ye)):lw(pe,Ib.ltr,Ye)},qp=(pe,Ce)=>{const Ye=MS(pe,Ce);return cw(pe,Ye)},ov=(pe,Ce)=>qp(pe,Ce).match({ltr:(st,St,Ut,un)=>{const Tn=pe.document.createRange();return Tn.setStart(st.dom,St),Tn.setEnd(Ut.dom,un),Tn},rtl:(st,St,Ut,un)=>{const Tn=pe.document.createRange();return Tn.setStart(Ut.dom,un),Tn.setEnd(st.dom,St),Tn}});Ib.ltr,Ib.rtl;const Nm={create:(pe,Ce,Ye,st)=>({start:pe,soffset:Ce,finish:Ye,foffset:st})},ES={create:(pe,Ce,Ye,st)=>({start:wd.on(pe,Ce),finish:wd.on(Ye,st)})},ET=(pe,Ce)=>{const Ye=ov(pe,Ce);return Nm.create(Pt.fromDom(Ye.startContainer),Ye.startOffset,Pt.fromDom(Ye.endContainer),Ye.endOffset)},a3=ES.create,zM=(pe,Ce,Ye,st,St,Ut,un)=>vn(Ye,St)&&st===Ut?C.none():qc(Ye,"td,th",Ce).bind(Tn=>qc(St,"td,th",Ce).bind($n=>by(pe,Ce,Tn,$n,un))),by=(pe,Ce,Ye,st,St)=>vn(Ye,st)?C.none():Xv(Ye,st,Ce).bind(Ut=>{const un=Ut.boxes.getOr([]);return un.length>1?(St(pe,un,Ut.start,Ut.finish),C.some(s0.create(C.some(a3(Ye,0,Ye,Rl(Ye))),!0))):C.none()}),ID=(pe,Ce,Ye,st,St)=>{const Ut=un=>(St.clearBeforeUpdate(Ye),St.selectRange(Ye,un.boxes,un.start,un.finish),un.boxes);return A1(st,pe,Ce,St.firstSelectedSelector,St.lastSelectedSelector).map(Ut)},a2=(pe,Ce)=>({item:pe,mode:Ce}),s3=(pe,Ce,Ye,st=s2)=>pe.property().parent(Ce).map(St=>a2(St,st)),s2=(pe,Ce,Ye,st=l2)=>Ye.sibling(pe,Ce).map(St=>a2(St,st)),l2=(pe,Ce,Ye,st=l2)=>{const St=pe.property().children(Ce);return Ye.first(St).map(un=>a2(un,st))},FM=[{current:s3,next:s2,fallback:C.none()},{current:s2,next:l2,fallback:C.some(s3)},{current:l2,next:l2,fallback:C.some(s2)}],PT=(pe,Ce,Ye,st,St=FM)=>Y(St,un=>un.current===Ye).bind(un=>un.current(pe,Ce,st,un.next).orThunk(()=>un.fallback.bind(Tn=>PT(pe,Ce,Tn,st)))),iv={left:()=>({sibling:(Ye,st)=>Ye.query().prevSibling(st),first:Ye=>Ye.length>0?C.some(Ye[Ye.length-1]):C.none()}),right:()=>({sibling:(Ye,st)=>Ye.query().nextSibling(st),first:Ye=>Ye.length>0?C.some(Ye[0]):C.none()})},PS=(pe,Ce,Ye,st,St,Ut)=>PT(pe,Ce,st,St).bind(Tn=>Ut(Tn.item)?C.none():Ye(Tn.item)?C.some(Tn.item):PS(pe,Tn.item,Ye,Tn.mode,St,Ut)),RS=(pe,Ce,Ye,st)=>PS(pe,Ce,Ye,s2,iv.left(),st),$M=(pe,Ce,Ye,st)=>PS(pe,Ce,Ye,s2,iv.right(),st),LS=pe=>Ce=>pe.property().children(Ce).length===0,RT=(pe,Ce,Ye)=>IT(pe,Ce,LS(pe),Ye),LT=(pe,Ce,Ye)=>c2(pe,Ce,LS(pe),Ye),IT=RS,c2=$M,c3=ug(),Db=(pe,Ce)=>RT(c3,pe,Ce),av=(pe,Ce)=>LT(c3,pe,Ce),fw=(pe,Ce,Ye)=>IT(c3,pe,Ce,Ye),u2=(pe,Ce,Ye)=>c2(c3,pe,Ce,Ye),VM=(pe,Ce,Ye)=>Aa(pe,Ce,Ye).isSome(),c0=Rm.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Wp=(pe,Ce,Ye)=>{const st=pe.getRect(Ce),St=pe.getRect(Ye);return St.right>st.left&&St.leftqc(pe,"tr"),Bb={...c0,verify:(pe,Ce,Ye,st,St,Ut,un)=>qc(st,"td,th",un).bind(Tn=>qc(Ce,"td,th",un).map($n=>vn(Tn,$n)?vn(st,Tn)&&Rl(Tn)===St?Ut($n):c0.none("in same cell"):$p(u3,[Tn,$n]).fold(()=>Wp(pe,$n,Tn)?c0.success():Ut($n),ur=>Ut($n)))).getOr(c0.none("default")),cata:(pe,Ce,Ye,st,St)=>pe.fold(Ce,Ye,st,St)},f2=(pe,Ce,Ye,st)=>({parent:pe,children:Ce,element:Ye,index:st}),d2=pe=>Sr(pe).bind(Ce=>{const Ye=Kn(Ce);return $d(Ye,pe).map(st=>f2(Ce,Ye,pe,st))}),$d=(pe,Ce)=>ee(pe,A(vn,Ce)),f3=vt("br"),zb=(pe,Ce,Ye)=>Ce(pe,Ye).bind(st=>gn(st)&&qf(st).trim().length===0?zb(st,Ce,Ye):C.some(st)),d3=(pe,Ce,Ye)=>Ye.traverse(Ce).orThunk(()=>zb(Ce,Ye.gather,pe)).map(Ye.relative),DT=(pe,Ce)=>_r(pe,Ce).filter(f3).orThunk(()=>_r(pe,Ce-1).filter(f3)),IS=(pe,Ce,Ye,st)=>DT(Ce,Ye).bind(St=>st.traverse(St).fold(()=>zb(St,st.gather,pe).map(st.relative),Ut=>d2(Ut).map(un=>wd.on(un.parent,un.index)))),h3=(pe,Ce,Ye,st)=>(f3(Ce)?d3(pe,Ce,st):IS(pe,Ce,Ye,st)).map(Ut=>({start:Ut,finish:Ut})),Af=pe=>Bb.cata(pe,Ce=>C.none(),()=>C.none(),Ce=>C.some(th(Ce,0)),Ce=>C.some(th(Ce,Rl(Ce)))),p3=(pe,Ce)=>({left:pe.left,top:pe.top+Ce,right:pe.right,bottom:pe.bottom+Ce}),Sg=(pe,Ce)=>({left:pe.left,top:pe.top-Ce,right:pe.right,bottom:pe.bottom-Ce}),DS=(pe,Ce,Ye)=>({left:pe.left+Ce,top:pe.top+Ye,right:pe.right+Ce,bottom:pe.bottom+Ye}),BS=pe=>pe.top,sv=pe=>pe.bottom,BT=(pe,Ce,Ye)=>Ye>=0&&Ye0?pe.getRangedRect(Ce,Ye-1,Ce,Ye):C.none(),xy=pe=>({left:pe.left,top:pe.top,right:pe.right,bottom:pe.bottom}),m3=(pe,Ce)=>C.some(pe.getRect(Ce)),g3=(pe,Ce,Ye)=>nn(Ce)?m3(pe,Ce).map(xy):gn(Ce)?BT(pe,Ce,Ye).map(xy):C.none(),zS=(pe,Ce)=>nn(Ce)?m3(pe,Ce).map(xy):gn(Ce)?pe.getRangedRect(Ce,0,Ce,Rl(Ce)).map(xy):C.none(),Fb=5,h2=100,Od=Rm.generate([{none:[]},{retry:["caret"]}]),zT=(pe,Ce)=>pe.leftCe.right,FS=(pe,Ce,Ye)=>Xl(Ce,qr).fold(T,st=>zS(pe,st).exists(St=>zT(Ye,St))),NS=(pe,Ce,Ye,st,St)=>{const Ut=p3(St,Fb);return Math.abs(Ye.bottom-st.bottom)<1||Ye.top>St.bottom?Od.retry(Ut):Ye.top===St.bottom?Od.retry(p3(St,1)):FS(pe,Ce,St)?Od.retry(DS(Ut,Fb,0)):Od.none()},$S={point:BS,adjuster:(pe,Ce,Ye,st,St)=>{const Ut=Sg(St,Fb);return Math.abs(Ye.top-st.top)<1||Ye.bottompe.elementFromPoint(Ce,Ye).filter(st=>qt(st)==="table").isSome(),Yp=(pe,Ce,Ye,st,St)=>lv(pe,Ce,Ye,Ce.move(st,Fb),St),lv=(pe,Ce,Ye,st,St)=>St===0?C.some(st):$T(pe,st.left,Ce.point(st))?Yp(pe,Ce,Ye,st,St-1):pe.situsFromPoint(st.left,Ce.point(st)).bind(Ut=>Ut.start.fold(C.none,un=>zS(pe,un).bind(Tn=>Ce.adjuster(pe,un,Tn,Ye,st).fold(C.none,$n=>lv(pe,Ce,Ye,$n,St-1))).orThunk(()=>C.some(st)),C.none)),VT=(pe,Ce,Ye)=>pe.point(Ce)>Ye.getInnerHeight()?C.some(pe.point(Ce)-Ye.getInnerHeight()):pe.point(Ce)<0?C.some(-pe.point(Ce)):C.none(),Nb=(pe,Ce,Ye)=>{const st=pe.move(Ye,Fb),St=lv(Ce,pe,Ye,st,h2).getOr(st);return VT(pe,St,Ce).fold(()=>Ce.situsFromPoint(St.left,pe.point(St)),Ut=>(Ce.scrollBy(0,Ut),Ce.situsFromPoint(St.left,pe.point(St)-Ut)))},sh={tryUp:A(Nb,$S),tryDown:A(Nb,NT),getJumpSize:v(Fb)},mp=20,lh=(pe,Ce,Ye)=>pe.getSelection().bind(st=>h3(Ce,st.finish,st.foffset,Ye).fold(()=>C.some(th(st.finish,st.foffset)),St=>{const Ut=pe.fromSitus(St),un=Bb.verify(pe,st.finish,st.foffset,Ut.finish,Ut.foffset,Ye.failure,Ce);return Af(un)})),Xp=(pe,Ce,Ye,st,St,Ut)=>Ut===0?C.none():$b(pe,Ce,Ye,st,St).bind(un=>{const Tn=pe.fromSitus(un),$n=Bb.verify(pe,Ye,st,Tn.finish,Tn.foffset,St.failure,Ce);return Bb.cata($n,()=>C.none(),()=>C.some(un),ur=>vn(Ye,ur)&&st===0?v3(pe,Ye,st,Sg,St):Xp(pe,Ce,ur,0,St,Ut-1),ur=>vn(Ye,ur)&&st===Rl(ur)?v3(pe,Ye,st,p3,St):Xp(pe,Ce,ur,Rl(ur),St,Ut-1))}),v3=(pe,Ce,Ye,st,St)=>g3(pe,Ce,Ye).bind(Ut=>Gp(pe,St,st(Ut,sh.getJumpSize()))),Gp=(pe,Ce,Ye)=>{const st=np().browser;return st.isChromium()||st.isSafari()||st.isFirefox()?Ce.retry(pe,Ye):C.none()},$b=(pe,Ce,Ye,st,St)=>g3(pe,Ye,st).bind(Ut=>Gp(pe,St,Ut)),jM=(pe,Ce,Ye)=>lh(pe,Ce,Ye).bind(st=>Xp(pe,Ce,st.element,st.offset,Ye,mp).map(pe.fromSitus)),UT=(pe,Ce)=>VM(pe,Ye=>Sr(Ye).exists(st=>vn(st,Ce))),QM=(pe,Ce,Ye,st,St)=>qc(st,"td,th",Ce).bind(Ut=>qc(Ut,"table",Ce).bind(un=>UT(St,un)?jM(pe,Ce,Ye).bind(Tn=>qc(Tn.finish,"td,th",Ce).map($n=>({start:Ut,finish:$n,range:Tn}))):C.none())),jT=(pe,Ce,Ye,st,St,Ut)=>Ut(st,Ce).orThunk(()=>QM(pe,Ce,Ye,st,St).map(un=>{const Tn=un.range;return s0.create(C.some(a3(Tn.start,Tn.soffset,Tn.finish,Tn.foffset)),!0)})),QT=(pe,Ce)=>qc(pe,"tr",Ce).bind(Ye=>qc(Ye,"table",Ce).bind(st=>{const St=ra(st,"tr");return vn(Ye,St[0])?fw(st,Ut=>Ax(Ut).isSome(),Ce).map(Ut=>{const un=Rl(Ut);return s0.create(C.some(a3(Ut,un,Ut,un)),!0)}):C.none()})),VS=(pe,Ce)=>qc(pe,"tr",Ce).bind(Ye=>qc(Ye,"table",Ce).bind(st=>{const St=ra(st,"tr");return vn(Ye,St[St.length-1])?u2(st,Ut=>eh(Ut).isSome(),Ce).map(Ut=>s0.create(C.some(a3(Ut,0,Ut,0)),!0)):C.none()})),US=(pe,Ce,Ye,st,St,Ut,un)=>QM(pe,Ye,st,St,Ut).bind(Tn=>by(Ce,Ye,Tn.start,Tn.finish,un)),ed=pe=>{let Ce=pe;return{get:()=>Ce,set:St=>{Ce=St}}},jS=pe=>{const Ce=ed(C.none()),Ye=()=>Ce.get().each(pe);return{clear:()=>{Ye(),Ce.set(C.none())},isSet:()=>Ce.get().isSome(),get:()=>Ce.get(),set:Tn=>{Ye(),Ce.set(C.some(Tn))}}},_y=()=>{const pe=jS(u);return{...pe,on:Ye=>pe.get().each(Ye)}},p2=(pe,Ce)=>qc(pe,"td,th",Ce),QS=pe=>ar(pe).exists(Kg),y3=(pe,Ce,Ye,st)=>{const St=_y(),Ut=St.clear,un=Nr=>{St.on(Ro=>{st.clearBeforeUpdate(Ce),p2(Nr.target,Ye).each(ai=>{Xv(Ro,ai,Ye).each(Ko=>{const Qo=Ko.boxes.getOr([]);if(Qo.length===1){const _i=Qo[0],To=M_(_i)==="false",Zo=Yd(zp(Nr.target),_i,vn);To&&Zo&&(st.selectRange(Ce,Qo,_i,_i),pe.selectContents(_i))}else Qo.length>1&&(st.selectRange(Ce,Qo,Ko.start,Ko.finish),pe.selectContents(ai))})})})};return{clearstate:Ut,mousedown:Nr=>{st.clear(Ce),p2(Nr.target,Ye).filter(QS).each(St.set)},mouseover:Nr=>{un(Nr)},mouseup:Nr=>{un(Nr),Ut()}}},dw={traverse:Wn,gather:av,relative:wd.before,retry:sh.tryDown,failure:Bb.failedDown},HS={traverse:ir,gather:Db,relative:wd.before,retry:sh.tryUp,failure:Bb.failedUp},m2=pe=>Ce=>Ce===pe,ZS=m2(38),X0=m2(40),Vb=pe=>pe>=37&&pe<=40,HT={isBackward:m2(37),isForward:m2(39)},cv={isBackward:m2(39),isForward:m2(37)},Kp=pe=>{const Ce=pe!==void 0?pe.dom:document,Ye=Ce.body.scrollLeft||Ce.documentElement.scrollLeft,st=Ce.body.scrollTop||Ce.documentElement.scrollTop;return Gc(Ye,st)},ZT=(pe,Ce,Ye)=>{const St=(Ye!==void 0?Ye.dom:document).defaultView;St&&St.scrollBy(pe,Ce)},G0=Rm.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Ub=pe=>G0.exact(pe.start,pe.soffset,pe.finish,pe.foffset),qS=pe=>pe.match({domRange:Ce=>Pt.fromDom(Ce.startContainer),relative:(Ce,Ye)=>wd.getStart(Ce),exact:(Ce,Ye,st,St)=>Ce}),b3=G0.domRange,qT=G0.relative,HM=G0.exact,ZM=pe=>{const Ce=qS(pe);return xr(Ce)},WT=Nm.create,wy={domRange:b3,relative:qT,exact:HM,exactFromRange:Ub,getWin:ZM,range:WT},g2=(pe,Ce,Ye)=>{var st,St;return C.from((St=(st=pe.dom).caretPositionFromPoint)===null||St===void 0?void 0:St.call(st,Ce,Ye)).bind(Ut=>{if(Ut.offsetNode===null)return C.none();const un=pe.dom.createRange();return un.setStart(Ut.offsetNode,Ut.offset),un.collapse(),C.some(un)})},hw=(pe,Ce,Ye)=>{var st,St;return C.from((St=(st=pe.dom).caretRangeFromPoint)===null||St===void 0?void 0:St.call(st,Ce,Ye))},qM=(()=>document.caretPositionFromPoint?g2:document.caretRangeFromPoint?hw:C.none)(),WM=(pe,Ce,Ye)=>{const st=Pt.fromDom(pe.document);return qM(st,Ce,Ye).map(St=>Nm.create(Pt.fromDom(St.startContainer),St.startOffset,Pt.fromDom(St.endContainer),St.endOffset))},v2=(pe,Ce)=>{const Ye=qt(pe);return Ye==="input"?wd.after(pe):z(["br","img"],Ye)?Ce===0?wd.before(pe):wd.after(pe):wd.on(pe,Ce)},WS=(pe,Ce)=>{const Ye=pe.fold(wd.before,v2,wd.after),st=Ce.fold(wd.before,v2,wd.after);return wy.relative(Ye,st)},x3=(pe,Ce,Ye,st)=>{const St=v2(pe,Ce),Ut=v2(Ye,st);return wy.relative(St,Ut)},YS=(pe,Ce,Ye,st)=>{const Ut=En(pe).dom.createRange();return Ut.setStart(pe.dom,Ce),Ut.setEnd(Ye.dom,st),Ut},XS=(pe,Ce,Ye,st)=>{const St=YS(pe,Ce,Ye,st),Ut=vn(pe,Ye)&&Ce===st;return St.collapsed&&!Ut},y2=pe=>C.from(pe.getSelection()),GS=(pe,Ce)=>{y2(pe).each(Ye=>{Ye.removeAllRanges(),Ye.addRange(Ce)})},b2=(pe,Ce,Ye,st,St)=>{const Ut=o2(pe,Ce,Ye,st,St);GS(pe,Ut)},KS=(pe,Ce,Ye,st,St,Ut)=>{Ce.collapse(Ye.dom,st),Ce.extend(St.dom,Ut)},hs=(pe,Ce)=>qp(pe,Ce).match({ltr:(Ye,st,St,Ut)=>{b2(pe,Ye,st,St,Ut)},rtl:(Ye,st,St,Ut)=>{y2(pe).each(un=>{if(un.setBaseAndExtent)un.setBaseAndExtent(Ye.dom,st,St.dom,Ut);else if(un.extend)try{KS(pe,un,Ye,st,St,Ut)}catch{b2(pe,St,Ut,Ye,st)}else b2(pe,St,Ut,Ye,st)})}}),K0=(pe,Ce,Ye,st,St)=>{const Ut=x3(Ce,Ye,st,St);hs(pe,Ut)},jb=(pe,Ce,Ye)=>{const st=WS(Ce,Ye);hs(pe,st)},pw=pe=>{if(pe.rangeCount>0){const Ce=pe.getRangeAt(0),Ye=pe.getRangeAt(pe.rangeCount-1);return C.some(Nm.create(Pt.fromDom(Ce.startContainer),Ce.startOffset,Pt.fromDom(Ye.endContainer),Ye.endOffset))}else return C.none()},JS=pe=>{if(pe.anchorNode===null||pe.focusNode===null)return pw(pe);{const Ce=Pt.fromDom(pe.anchorNode),Ye=Pt.fromDom(pe.focusNode);return XS(Ce,pe.anchorOffset,Ye,pe.focusOffset)?C.some(Nm.create(Ce,pe.anchorOffset,Ye,pe.focusOffset)):pw(pe)}},uv=(pe,Ce,Ye=!0)=>{const St=(Ye?l0:Lb)(pe,Ce);GS(pe,St)},e5=pe=>y2(pe).filter(Ce=>Ce.rangeCount>0).bind(JS),_3=pe=>e5(pe).map(Ce=>wy.exact(Ce.start,Ce.soffset,Ce.finish,Ce.foffset)),t5=(pe,Ce)=>{const Ye=ov(pe,Ce);return AS(Ye)},n5=(pe,Ce,Ye)=>WM(pe,Ce,Ye),Qb=pe=>{y2(pe).each(Ce=>Ce.removeAllRanges())},w3=pe=>({elementFromPoint:(To,Zo)=>Pt.fromPoint(Pt.fromDom(pe.document),To,Zo),getRect:To=>To.dom.getBoundingClientRect(),getRangedRect:(To,Zo,Yi,ri)=>{const Ms=wy.exact(To,Zo,Yi,ri);return t5(pe,Ms)},getSelection:()=>_3(pe).map(To=>ET(pe,To)),fromSitus:To=>{const Zo=wy.relative(To.start,To.finish);return ET(pe,Zo)},situsFromPoint:(To,Zo)=>n5(pe,To,Zo).map(Yi=>ES.create(Yi.start,Yi.soffset,Yi.finish,Yi.foffset)),clearSelection:()=>{Qb(pe)},collapseSelection:(To=!1)=>{_3(pe).each(Zo=>Zo.fold(Yi=>Yi.collapse(To),(Yi,ri)=>{const Ms=To?Yi:ri;jb(pe,Ms,Ms)},(Yi,ri,Ms,al)=>{const Gs=To?Yi:Ms,td=To?ri:al;K0(pe,Gs,td,Gs,td)}))},setSelection:To=>{K0(pe,To.start,To.soffset,To.finish,To.foffset)},setRelativeSelection:(To,Zo)=>{jb(pe,To,Zo)},selectNode:To=>{uv(pe,To,!1)},selectContents:To=>{uv(pe,To)},getInnerHeight:()=>pe.innerHeight,getScrollY:()=>Kp(Pt.fromDom(pe.document)).top,scrollBy:(To,Zo)=>{ZT(To,Zo,Pt.fromDom(pe.document))}}),Hb=(pe,Ce)=>({rows:pe,cols:Ce}),O3=(pe,Ce,Ye,st)=>{const St=w3(pe),Ut=y3(St,Ce,Ye,st);return{clearstate:Ut.clearstate,mousedown:Ut.mousedown,mouseover:Ut.mouseover,mouseup:Ut.mouseup}},YT=pe=>Xl(pe,_t).exists(Kg),x2=(pe,Ce)=>YT(pe)||YT(Ce),S3=(pe,Ce,Ye,st)=>{const St=w3(pe),Ut=()=>(st.clear(Ce),C.none());return{keydown:($n,ur,Nr,Ro,ai,Ko)=>{const Qo=$n.raw,_i=Qo.which,To=Qo.shiftKey===!0;return hb(Ce,st.selectedSelector).fold(()=>(Vb(_i)&&!To&&st.clearBeforeUpdate(Ce),Vb(_i)&&To&&!x2(ur,Ro)?C.none:X0(_i)&&To?A(US,St,Ce,Ye,dw,Ro,ur,st.selectRange):ZS(_i)&&To?A(US,St,Ce,Ye,HS,Ro,ur,st.selectRange):X0(_i)?A(jT,St,Ye,dw,Ro,ur,VS):ZS(_i)?A(jT,St,Ye,HS,Ro,ur,QT):C.none),Yi=>{const ri=Ms=>()=>Se(Ms,Gs=>ID(Gs.rows,Gs.cols,Ce,Yi,st)).fold(()=>$O(Ce,st.firstSelectedSelector,st.lastSelectedSelector).map(Gs=>{const td=X0(_i)||Ko.isForward(_i)?wd.after:wd.before;return St.setRelativeSelection(wd.on(Gs.first,0),td(Gs.table)),st.clear(Ce),s0.create(C.none(),!0)}),Gs=>C.some(s0.create(C.none(),!0)));return Vb(_i)&&To&&!x2(ur,Ro)?C.none:X0(_i)&&To?ri([Hb(1,0)]):ZS(_i)&&To?ri([Hb(-1,0)]):Ko.isBackward(_i)&&To?ri([Hb(0,-1),Hb(-1,0)]):Ko.isForward(_i)&&To?ri([Hb(0,1),Hb(1,0)]):Vb(_i)&&!To?Ut:C.none})()},keyup:($n,ur,Nr,Ro,ai)=>hb(Ce,st.selectedSelector).fold(()=>{const Ko=$n.raw,Qo=Ko.which;return Ko.shiftKey===!0&&Vb(Qo)&&x2(ur,Ro)?zM(Ce,Ye,ur,Nr,Ro,ai,st.selectRange):C.none()},C.none)}},YM=(pe,Ce,Ye,st)=>{const St=w3(pe);return(Ut,un)=>{st.clearBeforeUpdate(Ce),Xv(Ut,un,Ye).each(Tn=>{const $n=Tn.boxes.getOr([]);st.selectRange(Ce,$n,Tn.start,Tn.finish),St.selectContents(un),St.collapseSelection()})}},k3=(pe,Ce)=>{const Ye=Rt(pe,Ce);return Ye===void 0||Ye===""?[]:Ye.split(" ")},fv=(pe,Ce,Ye)=>{const St=k3(pe,Ce).concat([Ye]);return lt(pe,Ce,St.join(" ")),!0},XM=(pe,Ce,Ye)=>{const st=W(k3(pe,Ce),St=>St!==Ye);return st.length>0?lt(pe,Ce,st.join(" ")):at(pe,Ce),!1},mw=pe=>pe.dom.classList!==void 0,$m=pe=>k3(pe,"class"),Mf=(pe,Ce)=>fv(pe,"class",Ce),GM=(pe,Ce)=>XM(pe,"class",Ce),u0=(pe,Ce)=>{mw(pe)?pe.dom.classList.add(Ce):Mf(pe,Ce)},KM=pe=>{(mw(pe)?pe.dom.classList:$m(pe)).length===0&&at(pe,"class")},XT=(pe,Ce)=>{mw(pe)?pe.dom.classList.remove(Ce):GM(pe,Ce),KM(pe)},gw=(pe,Ce)=>mw(pe)&&pe.dom.classList.contains(Ce),_2=(pe,Ce)=>{U(Ce,Ye=>{XT(pe,Ye)})},GT=pe=>Ce=>{u0(Ce,pe)},KT=pe=>Ce=>{_2(Ce,pe)},JT={byClass:pe=>{const Ce=GT(pe.selected),Ye=KT([pe.selected,pe.lastSelected,pe.firstSelected]),st=Ut=>{const un=ra(Ut,pe.selectedSelector);U(un,Ye)};return{clearBeforeUpdate:st,clear:st,selectRange:(Ut,un,Tn,$n)=>{st(Ut),U(un,Ce),u0(Tn,pe.firstSelected),u0($n,pe.lastSelected)},selectedSelector:pe.selectedSelector,firstSelectedSelector:pe.firstSelectedSelector,lastSelectedSelector:pe.lastSelectedSelector}},byAttr:(pe,Ce,Ye)=>{const st=$n=>{at($n,pe.selected),at($n,pe.firstSelected),at($n,pe.lastSelected)},St=$n=>{lt($n,pe.selected,"1")},Ut=$n=>{un($n),Ye()},un=$n=>{const ur=ra($n,`${pe.selectedSelector},${pe.firstSelectedSelector},${pe.lastSelectedSelector}`);U(ur,st)};return{clearBeforeUpdate:un,clear:Ut,selectRange:($n,ur,Nr,Ro)=>{Ut($n),U(ur,St),lt(Nr,pe.firstSelected,"1"),lt(Ro,pe.lastSelected,"1"),Ce(ur,Nr,Ro)},selectedSelector:pe.selectedSelector,firstSelectedSelector:pe.firstSelectedSelector,lastSelectedSelector:pe.lastSelectedSelector}}},e6=(pe,Ce,Ye,st)=>{switch(pe.tag){case"none":return Ce();case"single":return st(pe.element);case"multiple":return Ye(pe.elements)}},hi=()=>({tag:"none"}),Ef=pe=>({tag:"multiple",elements:pe}),vw=pe=>({tag:"single",element:pe}),Pf=(pe,Ce,Ye)=>({get:()=>pd(pe(),Ye).fold(()=>Ce().fold(hi,vw),Ef)}),Vm=(pe,Ce)=>{const Ye=pe.slice(0,Ce[Ce.length-1].row+1),st=oy(Ye);return he(st,St=>{const Ut=St.cells.slice(0,Ce[Ce.length-1].column+1);return j(Ut,un=>un.element)})},r5=(pe,Ce)=>{const Ye=pe.slice(Ce[0].row+Ce[0].rowspan-1,pe.length),st=oy(Ye);return he(st,St=>{const Ut=St.cells.slice(Ce[0].column+Ce[0].colspan-1,St.cells.length);return j(Ut,un=>un.element)})},Zb=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe);return Vp(st,Ce).map(Ut=>{const un=D1(st,Ye,!1),{rows:Tn}=Kl(un),$n=Vm(Tn,Ut),ur=r5(Tn,Ut);return{upOrLeftCells:$n,downOrRightCells:ur}})},T3=(pe,Ce,Ye,st,St,Ut,un)=>({target:pe,x:Ce,y:Ye,stop:st,prevent:St,kill:Ut,raw:un}),Oy=pe=>{const Ce=Pt.fromDom(fr(pe).getOr(pe.target)),Ye=()=>pe.stopPropagation(),st=()=>pe.preventDefault(),St=h(st,Ye);return T3(Ce,pe.clientX,pe.clientY,Ye,st,St,pe)},yw=(pe,Ce)=>Ye=>{pe(Ye)&&Ce(Oy(Ye))},t6=(pe,Ce,Ye,st,St)=>{const Ut=yw(Ye,st);return pe.dom.addEventListener(Ce,Ut,St),{unbind:A(eE,pe,Ce,Ut,St)}},JM=(pe,Ce,Ye,st)=>t6(pe,Ce,Ye,st,!1),eE=(pe,Ce,Ye,st)=>{pe.dom.removeEventListener(Ce,Ye,st)},tE=E,Sy=(pe,Ce,Ye)=>JM(pe,Ce,tE,Ye),bw=Oy,xw=pe=>!gw(Pt.fromDom(pe.target),"ephox-snooker-resizer-bar"),C3=(pe,Ce)=>{const Ye=Pf(()=>Pt.fromDom(pe.getBody()),()=>z_(fp(pe),Tm(pe)),fg.selectedSelector),st=($n,ur,Nr)=>{Au(ur).each(ai=>{const Ko=j($n,Yi=>Yi.dom),Qo=C_(pe),_i=kf(u,Pt.fromDom(pe.getDoc()),Qo),To=wl(pe),Zo=Zb(ai,{selection:To},_i).map(Yi=>ze(Yi,ri=>j(ri,Ms=>Ms.dom))).getOrUndefined();H1(pe,Ko,ur.dom,Nr.dom,Zo)})},St=()=>Wx(pe),Ut=JT.byAttr(fg,st,St);return pe.on("init",$n=>{const ur=pe.getWin(),Nr=S1(pe),Ro=Tm(pe),ai=()=>{const Zs=pe.selection,Rh=Pt.fromDom(Zs.getStart()),Lh=Pt.fromDom(Zs.getEnd());$p(Au,[Rh,Lh]).fold(()=>Ut.clear(Nr),u)},Ko=O3(ur,Nr,Ro,Ut),Qo=S3(ur,Nr,Ro,Ut),_i=YM(ur,Nr,Ro,Ut),To=Zs=>Zs.raw.shiftKey===!0;pe.on("TableSelectorChange",Zs=>_i(Zs.start,Zs.finish));const Zo=(Zs,Rh)=>{To(Zs)&&(Rh.kill&&Zs.kill(),Rh.selection.each(Lh=>{const jm=wy.relative(Lh.start,Lh.finish),Qm=ov(ur,jm);pe.selection.setRng(Qm)}))},Yi=Zs=>{const Rh=bw(Zs);if(Rh.raw.shiftKey&&Vb(Rh.raw.which)){const Lh=pe.selection.getRng(),jm=Pt.fromDom(Lh.startContainer),Qm=Pt.fromDom(Lh.endContainer);Qo.keyup(Rh,jm,Lh.startOffset,Qm,Lh.endOffset).each(Za=>{Zo(Rh,Za)})}},ri=Zs=>{const Rh=bw(Zs);Ce.hide();const Lh=pe.selection.getRng(),jm=Pt.fromDom(Lh.startContainer),Qm=Pt.fromDom(Lh.endContainer),Za=rp(HT,cv)(Pt.fromDom(pe.selection.getStart()));Qo.keydown(Rh,jm,Lh.startOffset,Qm,Lh.endOffset,Za).each(tu=>{Zo(Rh,tu)}),Ce.show()},Ms=Zs=>Zs.button===0,al=Zs=>Zs.buttons===void 0?!0:(Zs.buttons&1)!==0,Gs=Zs=>{Ko.clearstate()},td=Zs=>{Ms(Zs)&&xw(Zs)&&Ko.mousedown(bw(Zs))},zu=Zs=>{al(Zs)&&xw(Zs)&&Ko.mouseover(bw(Zs))},e1=Zs=>{Ms(Zs)&&xw(Zs)&&Ko.mouseup(bw(Zs))},My=(()=>{const Zs=ed(Pt.fromDom(Nr)),Rh=ed(0);return{touchEnd:jm=>{const Qm=Pt.fromDom(jm.target);if(vt("td")(Qm)||vt("th")(Qm)){const Za=Zs.get(),tu=Rh.get();vn(Za,Qm)&&jm.timeStamp-tu<300&&(jm.preventDefault(),_i(Qm,Qm))}Zs.set(Qm),Rh.set(jm.timeStamp)}}})();pe.on("dragstart",Gs),pe.on("mousedown",td),pe.on("mouseover",zu),pe.on("mouseup",e1),pe.on("touchend",My.touchEnd),pe.on("keyup",Yi),pe.on("keydown",ri),pe.on("NodeChange",ai)}),pe.on("PreInit",()=>{pe.serializer.addTempAttr(fg.firstSelected),pe.serializer.addTempAttr(fg.lastSelected)}),{getSelectedCells:()=>e6(Ye.get(),v([]),$n=>j($n,ur=>ur.dom),$n=>[$n.dom]),clearSelectedCells:$n=>Ut.clear(Pt.fromDom($n))}},gp=pe=>{let Ce=[];return{bind:Ut=>{if(Ut===void 0)throw new Error("Event bind error: undefined handler");Ce.push(Ut)},unbind:Ut=>{Ce=W(Ce,un=>un!==Ut)},trigger:(...Ut)=>{const un={};U(pe,(Tn,$n)=>{un[Tn]=Ut[$n]}),U(Ce,Tn=>{Tn(un)})}}},J0=pe=>{const Ce=ze(pe,st=>({bind:st.bind,unbind:st.unbind})),Ye=ze(pe,st=>st.trigger);return{registry:Ce,trigger:Ye}},ky=(pe,Ce)=>{let Ye=null;const st=()=>{b(Ye)||(clearTimeout(Ye),Ye=null)};return{cancel:st,throttle:(...Ut)=>{st(),Ye=setTimeout(()=>{Ye=null,pe.apply(null,Ut)},Ce)}}},Ty=pe=>pe.slice(0).sort(),nE=(pe,Ce)=>{throw new Error("All required keys ("+Ty(pe).join(", ")+") were not specified. Specified keys were: "+Ty(Ce).join(", ")+".")},A3=pe=>{throw new Error("Unsupported keys for object: "+Ty(pe).join(", "))},M3=(pe,Ce)=>{if(!c(Ce))throw new Error("The "+pe+" fields must be an array. Was: "+Ce+".");U(Ce,Ye=>{if(!l(Ye))throw new Error("The value "+Ye+" in the "+pe+" fields was not a string.")})},rE=(pe,Ce)=>{throw new Error("All values need to be of type: "+Ce+". Keys ("+Ty(pe).join(", ")+") were not.")},oE=pe=>{const Ce=Ty(pe);Y(Ce,(st,St)=>St{throw new Error("The field: "+st+" occurs more than once in the combined fields: ["+Ce.join(", ")+"].")})},iE=(pe,Ce)=>aE(pe,Ce,{validate:p,label:"function"}),aE=(pe,Ce,Ye)=>{if(Ce.length===0)throw new Error("You must specify at least one required field.");return M3("required",Ce),oE(Ce),st=>{const St=Te(st);se(Ce,Tn=>z(St,Tn))||nE(Ce,St),pe(Ce,St);const un=W(Ce,Tn=>!Ye.validate(st[Tn],Tn));return un.length>0&&rE(un,Ye.label),st}},n6=(pe,Ce)=>{const Ye=W(Ce,st=>!z(pe,st));Ye.length>0&&A3(Ye)},E3=pe=>iE(n6,pe),sE=E3(["compare","extract","mutate","sink"]),P3=E3(["element","start","stop","destroy"]),Sd=E3(["forceDrop","drop","move","delayDrop"]),Um=()=>{let pe=C.none();const Ce=()=>{pe=C.none()},Ye=(Ut,un)=>{const Tn=pe.map($n=>Ut.compare($n,un));return pe=C.some(un),Tn},st=(Ut,un)=>{un.extract(Ut).each($n=>{Ye(un,$n).each(Nr=>{St.trigger.move(Nr)})})},St=J0({move:gp(["info"])});return{onEvent:st,reset:Ce,events:St.registry}},Jp=()=>{const pe=J0({move:gp(["info"])});return{onEvent:u,reset:u,events:pe.registry}},R3=()=>{const pe=Jp(),Ce=Um();let Ye=pe;return{on:()=>{Ye.reset(),Ye=Ce},off:()=>{Ye.reset(),Ye=pe},isOn:()=>Ye===Ce,onEvent:(Tn,$n)=>{Ye.onEvent(Tn,$n)},events:Ce.events}},L3=(pe,Ce,Ye)=>{let st=!1;const St=J0({start:gp([]),stop:gp([])}),Ut=R3(),un=()=>{Qo.stop(),Ut.isOn()&&(Ut.off(),St.trigger.stop())},Tn=ky(un,200),$n=To=>{Qo.start(To),Ut.on(),St.trigger.start()},ur=To=>{Tn.cancel(),Ut.onEvent(To,Ce)};Ut.events.move.bind(To=>{Ce.mutate(pe,To.info)});const Nr=()=>{st=!0},Ro=()=>{st=!1},ai=()=>st,Ko=To=>(...Zo)=>{st&&To.apply(null,Zo)},Qo=Ce.sink(Sd({forceDrop:un,drop:Ko(un),move:Ko(ur),delayDrop:Ko(Tn.throttle)}),Ye),_i=()=>{Qo.destroy()};return{element:Qo.element,go:$n,on:Nr,off:Ro,isActive:ai,destroy:_i,events:St.registry}},r6=pe=>{const Ce=pe.replace(/\./g,"-");return{resolve:st=>Ce+"-"+st}},o6=r6("ephox-dragster").resolve,i5=pe=>{const Ce={layerClass:o6("blocker"),...pe},Ye=Pt.fromTag("div");return lt(Ye,"role","presentation"),$f(Ye,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),u0(Ye,o6("blocker")),u0(Ye,Ce.layerClass),{element:v(Ye),destroy:()=>{li(Ye)}}};var I3=sE({compare:(pe,Ce)=>Gc(Ce.left-pe.left,Ce.top-pe.top),extract:pe=>C.some(Gc(pe.x,pe.y)),sink:(pe,Ce)=>{const Ye=i5(Ce),st=Sy(Ye.element(),"mousedown",pe.forceDrop),St=Sy(Ye.element(),"mouseup",pe.drop),Ut=Sy(Ye.element(),"mousemove",pe.move),un=Sy(Ye.element(),"mouseout",pe.delayDrop),Tn=()=>{Ye.destroy(),St.unbind(),Ut.unbind(),un.unbind(),st.unbind()},$n=Nr=>{$r(Nr,Ye.element())},ur=()=>{li(Ye.element())};return P3({element:Ye.element,start:$n,stop:ur,destroy:Tn})},mutate:(pe,Ce)=>{pe.mutate(Ce.left,Ce.top)}});const a5=(pe,Ce={})=>{var Ye;const st=(Ye=Ce.mode)!==null&&Ye!==void 0?Ye:I3;return L3(pe,st,Ce)},Ph=r6("ephox-snooker").resolve,s6=()=>{const pe=J0({drag:gp(["xDelta","yDelta"])});return{mutate:(Ye,st)=>{pe.trigger.drag(Ye,st)},events:pe.registry}},s5=()=>{const pe=J0({drag:gp(["xDelta","yDelta","target"])});let Ce=C.none();const Ye=s6();return Ye.events.drag.bind(Ut=>{Ce.each(un=>{pe.trigger.drag(Ut.xDelta,Ut.yDelta,un)})}),{assign:Ut=>{Ce=C.some(Ut)},get:()=>Ce,mutate:Ye.mutate,events:pe.registry}},_w=(pe,Ce,Ye,st,St)=>{const Ut=Pt.fromTag("div");return $f(Ut,{position:"absolute",left:Ce-st/2+"px",top:Ye+"px",height:St+"px",width:st+"px"}),yt(Ut,{"data-column":pe,role:"presentation"}),Ut},ww=(pe,Ce,Ye,st,St)=>{const Ut=Pt.fromTag("div");return $f(Ut,{position:"absolute",left:Ce+"px",top:Ye-St/2+"px",height:St+"px",width:st+"px"}),yt(Ut,{"data-row":pe,role:"presentation"}),Ut},D3=Ph("resizer-bar"),Ow=Ph("resizer-rows"),l6=Ph("resizer-cols"),c6=7,l5=(pe,Ce)=>he(pe.all,(Ye,st)=>Ce(Ye.element)?[st]:[]),c5=(pe,Ce)=>{const Ye=[];return Q(pe.grid.columns,st=>{Xi.getColumnAt(pe,st).map(Ut=>Ut.element).forall(Ce)&&Ye.push(st)}),W(Ye,st=>{const St=Xi.filterItems(pe,Ut=>Ut.column===st);return se(St,Ut=>Ce(Ut.element))})},dv=pe=>{const Ce=ra(pe.parent(),"."+D3);U(Ce,li)},u5=(pe,Ce,Ye)=>{const st=pe.origin();U(Ce,St=>{St.each(Ut=>{const un=Ye(st,Ut);u0(un,D3),$r(pe.parent(),un)})})},u6=(pe,Ce,Ye,st)=>{u5(pe,Ce,(St,Ut)=>{const un=_w(Ut.col,Ut.x-St.left,Ye.top-St.top,c6,st);return u0(un,l6),un})},uE=(pe,Ce,Ye,st)=>{u5(pe,Ce,(St,Ut)=>{const un=ww(Ut.row,Ye.left-St.left,Ut.y-St.top,st,c6);return u0(un,Ow),un})},fE=(pe,Ce,Ye,st,St)=>{const Ut=Dd(Ye),un=Ce.isResizable,Tn=st.length>0?_l.positions(st,Ye):[],$n=Tn.length>0?l5(pe,un):[],ur=W(Tn,(Ko,Qo)=>$($n,_i=>Qo===_i));uE(Ce,ur,Ut,os(Ye));const Nr=St.length>0?Mt.positions(St,Ye):[],Ro=Nr.length>0?c5(pe,un):[],ai=W(Nr,(Ko,Qo)=>$(Ro,_i=>Qo===_i));u6(Ce,ai,Ut,fd(Ye))},f6=(pe,Ce)=>{if(dv(pe),pe.isResizable(Ce)){const Ye=Xi.fromTable(Ce),st=yu(Ye),St=Xc(Ye);fE(Ye,pe,Ce,st,St)}},Yh=(pe,Ce)=>{const Ye=ra(pe.parent(),"."+D3);U(Ye,Ce)},ch=pe=>{Yh(pe,Ce=>{Ss(Ce,"display","none")})},w2=pe=>{Yh(pe,Ce=>{Ss(Ce,"display","block")})},FD=pe=>gw(pe,Ow),dE=pe=>gw(pe,l6),f5=Ph("resizer-bar-dragging"),as=pe=>{const Ce=s5(),Ye=a5(Ce,{});let st=C.none();const St=(Qo,_i)=>C.from(Rt(Qo,_i));Ce.events.drag.bind(Qo=>{St(Qo.target,"data-row").each(_i=>{const To=sd(Qo.target,"top");Ss(Qo.target,"top",To+Qo.yDelta+"px")}),St(Qo.target,"data-column").each(_i=>{const To=sd(Qo.target,"left");Ss(Qo.target,"left",To+Qo.xDelta+"px")})});const Ut=(Qo,_i)=>{const To=sd(Qo,_i),Zo=uc(Qo,"data-initial-"+_i,0);return To-Zo};Ye.events.stop.bind(()=>{Ce.get().each(Qo=>{st.each(_i=>{St(Qo,"data-row").each(To=>{const Zo=Ut(Qo,"top");at(Qo,"data-initial-top"),Ko.trigger.adjustHeight(_i,Zo,parseInt(To,10))}),St(Qo,"data-column").each(To=>{const Zo=Ut(Qo,"left");at(Qo,"data-initial-left"),Ko.trigger.adjustWidth(_i,Zo,parseInt(To,10))}),f6(pe,_i)})})});const un=(Qo,_i)=>{Ko.trigger.startAdjust(),Ce.assign(Qo),lt(Qo,"data-initial-"+_i,sd(Qo,_i)),u0(Qo,f5),Ss(Qo,"opacity","0.2"),Ye.go(pe.parent())},Tn=Sy(pe.parent(),"mousedown",Qo=>{FD(Qo.target)&&un(Qo.target,"top"),dE(Qo.target)&&un(Qo.target,"left")}),$n=Qo=>vn(Qo,pe.view()),ur=Qo=>qc(Qo,"table",$n).filter(Kg),Nr=Sy(pe.view(),"mouseover",Qo=>{ur(Qo.target).fold(()=>{ao(Qo.target)&&dv(pe)},_i=>{Ye.isActive()&&(st=C.some(_i),f6(pe,_i))})}),Ro=()=>{Tn.unbind(),Nr.unbind(),Ye.destroy(),dv(pe)},ai=Qo=>{f6(pe,Qo)},Ko=J0({adjustHeight:gp(["table","delta","row"]),adjustWidth:gp(["table","delta","column"]),startAdjust:gp([])});return{destroy:Ro,refresh:ai,on:Ye.on,off:Ye.off,hideBars:A(ch,pe),showBars:A(w2,pe),events:Ko.registry}},d6={create:(pe,Ce,Ye)=>{const st=_l,St=Mt,Ut=as(pe),un=J0({beforeResize:gp(["table","type"]),afterResize:gp(["table","type"]),startDrag:gp([])});return Ut.events.adjustHeight.bind(Tn=>{const $n=Tn.table;un.trigger.beforeResize($n,"row");const ur=st.delta(Tn.delta,$n);qx($n,ur,Tn.row),un.trigger.afterResize($n,"row")}),Ut.events.startAdjust.bind(Tn=>{un.trigger.startDrag()}),Ut.events.adjustWidth.bind(Tn=>{const $n=Tn.table;un.trigger.beforeResize($n,"col");const ur=St.delta(Tn.delta,$n),Nr=Ye($n);K_($n,ur,Tn.column,Ce,Nr),un.trigger.afterResize($n,"col")}),{on:Ut.on,off:Ut.off,refreshBars:Ut.refresh,hideBars:Ut.hideBars,showBars:Ut.showBars,destroy:Ut.destroy,events:un.registry}}},Sw={only:(pe,Ce)=>{const Ye=bn(pe)?Un(pe):pe;return{parent:v(Ye),view:v(pe),origin:v(Gc(0,0)),isResizable:Ce}},detached:(pe,Ce,Ye)=>{const st=()=>Dd(Ce);return{parent:v(Ce),view:v(pe),origin:st,isResizable:Ye}},body:(pe,Ce,Ye)=>({parent:v(Ce),view:v(pe),origin:v(Gc(0,0)),isResizable:Ye})},hE=()=>{const pe=Pt.fromTag("div");return $f(pe,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),$r(co(),pe),pe},pE=(pe,Ce)=>pe.inline?Sw.body(Pt.fromDom(pe.getBody()),hE(),Ce):Sw.only(Pt.fromDom(pe.getDoc()),Ce),mE=(pe,Ce)=>{pe.inline&&li(Ce.parent())},B3=pe=>y(pe)&&pe.nodeName==="TABLE",kw="bar-",p6=pe=>Rt(pe,"data-mce-resize")!=="false",VD=pe=>{const Ce=Xi.fromTable(pe);Xi.hasColumns(Ce)||U(bf(pe),Ye=>{const st=vf(Ye,"width");Ss(Ye,"width",st),at(Ye,"width")})},O2=pe=>pc(pe,"corner-"),d5=pe=>gm(pe,"corner-"),UD=pe=>{const Ce=_y(),Ye=_y(),st=_y();let St,Ut,un,Tn;const $n=Zo=>Pc(pe,Zo),ur=()=>Fl(pe)?z0():E1(),Nr=Zo=>pg(Zo).columns,Ro=Zo=>pg(Zo).rows,ai=(Zo,Yi,ri,Ms)=>{const al=d5(Yi),Gs=Cu(al,"e"),td=pc(al,"n");if(Ut===""&&K1(Zo),Tn===""&&Cb(Zo),ri!==St&&Ut!==""){Ss(Zo,"width",Ut);const zu=ur(),e1=$n(Zo),Ay=Fl(pe)||Gs?Nr(Zo)-1:0;K_(Zo,ri-St,Ay,zu,e1)}else if(zO(Ut)){const zu=parseFloat(Ut.replace("%","")),e1=ri*zu/St;Ss(Zo,"width",e1+"%")}if(bu(Ut)&&VD(Zo),Ms!==un&&Tn!==""){Ss(Zo,"height",Tn);const zu=td?0:Ro(Zo)-1;qx(Zo,Ms-un,zu)}},Ko=()=>{Ye.on(Zo=>{Zo.destroy()}),st.on(Zo=>{mE(pe,Zo)})};return pe.on("init",()=>{const Zo=pE(pe,p6);if(st.set(Zo),sp(pe)&&cp(pe)){const Yi=ur(),ri=d6.create(Zo,Yi,$n);ri.on(),ri.events.startDrag.bind(Ms=>{Ce.set(pe.selection.getRng())}),ri.events.beforeResize.bind(Ms=>{const al=Ms.table.dom;Ec(pe,al,I0(al),E_(al),kw+Ms.type)}),ri.events.afterResize.bind(Ms=>{const al=Ms.table,Gs=al.dom;zd(al),Ce.on(td=>{pe.selection.setRng(td),pe.focus()}),Qc(pe,Gs,I0(Gs),E_(Gs),kw+Ms.type),pe.undoManager.add()}),Ye.set(ri)}}),pe.on("ObjectResizeStart",Zo=>{const Yi=Zo.target;if(B3(Yi)){const ri=Pt.fromDom(Yi);U(pe.dom.select(".mce-clonedresizable"),Ms=>{pe.dom.addClass(Ms,"mce-"+ub(pe)+"-columns")}),!hy(ri)&&Gg(pe)?xg(ri):!tw(ri)&&Xg(pe)&&K1(ri),eu(ri)&&pc(Zo.origin,kw)&&K1(ri),St=Zo.width,Ut=lp(pe)?"":P_(pe,Yi).getOr(""),un=Zo.height,Tn=k1(pe,Yi).getOr("")}}),pe.on("ObjectResized",Zo=>{const Yi=Zo.target;if(B3(Yi)){const ri=Pt.fromDom(Yi),Ms=Zo.origin;O2(Ms)&&ai(ri,Ms,Zo.width,Zo.height),zd(ri),Dm(pe,ri.dom,Hc)}}),pe.on("SwitchMode",()=>{Ye.on(Zo=>{pe.mode.isReadOnly()?Zo.hideBars():Zo.showBars()})}),pe.on("dragstart dragend",Zo=>{Ye.on(Yi=>{Zo.type==="dragstart"?(Yi.hideBars(),Yi.off()):(Yi.on(),Yi.showBars())})}),pe.on("remove",()=>{Ko()}),{refresh:Zo=>{Ye.on(Yi=>Yi.refreshBars(Pt.fromDom(Zo)))},hide:()=>{Ye.on(Zo=>Zo.hideBars())},show:()=>{Ye.on(Zo=>Zo.showBars())}}},m6=pe=>{R0(pe);const Ce=UD(pe),Ye=C3(pe,Ce),st=Z1(pe,Ce,Ye);return wg(pe,st),n3(pe,st),M1(pe,st),{getSelectedCells:Ye.getSelectedCells,clearSelectedCells:Ye.clearSelectedCells}},gE=pe=>({table:m6(pe)});var ea=()=>{t.add("dom",gE)};ea()})();(function(){const t=Object.getPrototypeOf,e=(s,F,Z)=>{var ue;return Z(s,F.prototype)?!0:((ue=s.constructor)===null||ue===void 0?void 0:ue.name)===F.name},o=s=>{const F=typeof s;return s===null?"null":F==="object"&&Array.isArray(s)?"array":F==="object"&&e(s,String,(Z,ue)=>ue.isPrototypeOf(Z))?"string":F},f=s=>F=>o(F)===s,P=s=>F=>typeof F===s,d=s=>F=>s===F,l=(s,F)=>c(s)&&e(s,F,(Z,ue)=>t(Z)===ue),n=f("string"),c=f("object"),b=s=>l(s,Object),i=f("array"),O=d(null),w=P("boolean"),y=d(void 0),p=s=>s==null,a=s=>!p(s),u=P("function"),h=P("number"),m=(s,F)=>{if(i(s)){for(let Z=0,ue=s.length;Z{},_=s=>()=>s(),S=(s,F)=>(...Z)=>s(F.apply(null,Z)),A=(s,F)=>Z=>s(F(Z)),x=s=>()=>s,R=s=>s,M=(s,F)=>s===F;function T(s,...F){return(...Z)=>{const ue=F.concat(Z);return s.apply(null,ue)}}const E=s=>F=>!s(F),C=s=>()=>{throw new Error(s)},L=s=>s(),D=x(!1),k=x(!0);class I{constructor(F,Z){this.tag=F,this.value=Z}static some(F){return new I(!0,F)}static none(){return I.singletonNone}fold(F,Z){return this.tag?Z(this.value):F()}isSome(){return this.tag}isNone(){return!this.tag}map(F){return this.tag?I.some(F(this.value)):I.none()}bind(F){return this.tag?F(this.value):I.none()}exists(F){return this.tag&&F(this.value)}forall(F){return!this.tag||F(this.value)}filter(F){return!this.tag||F(this.value)?this:I.none()}getOr(F){return this.tag?this.value:F}or(F){return this.tag?this:F}getOrThunk(F){return this.tag?this.value:F()}orThunk(F){return this.tag?this:F()}getOrDie(F){if(this.tag)return this.value;throw new Error(F??"Called getOrDie on None")}static from(F){return a(F)?I.some(F):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(F){this.tag&&F(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const z=Array.prototype.slice,$=Array.prototype.indexOf,Q=Array.prototype.push,j=(s,F)=>$.call(s,F),U=(s,F)=>{const Z=j(s,F);return Z===-1?I.none():I.some(Z)},X=(s,F)=>j(s,F)>-1,te=(s,F)=>{for(let Z=0,ue=s.length;Z{const Z=[];for(let ue=0;ue{const Z=[];for(let ue=0;ue{const Z=s.length,ue=new Array(Z);for(let we=0;we{for(let Z=0,ue=s.length;Z{for(let Z=s.length-1;Z>=0;Z--){const ue=s[Z];F(ue,Z)}},ee=(s,F)=>{const Z=[],ue=[];for(let we=0,Be=s.length;we{const Z=[];for(let ue=0,we=s.length;ue(Y(s,(ue,we)=>{Z=F(Z,ue,we)}),Z),se=(s,F,Z)=>(q(s,(ue,we)=>{Z=F(Z,ue,we)}),Z),ae=(s,F,Z)=>{for(let ue=0,we=s.length;ueae(s,F,D),de=(s,F)=>{for(let Z=0,ue=s.length;Z{const F=[];for(let Z=0,ue=s.length;Zve(oe(s,F)),_e=(s,F)=>{for(let Z=0,ue=s.length;Z{const F=z.call(s,0);return F.reverse(),F},Te=(s,F)=>me(s,Z=>!X(F,Z)),Pe=(s,F)=>{const Z={};for(let ue=0,we=s.length;ue[s],ze=(s,F)=>{const Z=z.call(s,0);return Z.sort(F),Z},De=(s,F)=>F>=0&&FDe(s,0),Ve=s=>De(s,s.length-1),$e=u(Array.from)?Array.from:s=>z.call(s),Oe=(s,F)=>{for(let Z=0;Z{const Z=ke(s);for(let ue=0,we=Z.length;ueZe(s,(Z,ue)=>({k:ue,v:F(Z,ue)})),Ze=(s,F)=>{const Z={};return We(s,(ue,we)=>{const Be=F(ue,we);Z[Be.k]=Be.v}),Z},Xe=s=>(F,Z)=>{s[Z]=F},tt=(s,F,Z,ue)=>{We(s,(we,Be)=>{(F(we,Be)?Z:ue)(we,Be)})},Ee=(s,F)=>{const Z={},ue={};return tt(s,F,Xe(Z),Xe(ue)),{t:Z,f:ue}},Ne=(s,F)=>{const Z={};return tt(s,F,Xe(Z),v),Z},je=(s,F)=>{const Z=[];return We(s,(ue,we)=>{Z.push(F(ue,we))}),Z},nt=(s,F)=>{const Z=ke(s);for(let ue=0,we=Z.length;ueje(s,R),Ge=(s,F)=>ht(s,F)?I.from(s[F]):I.none(),ht=(s,F)=>Le.call(s,F),pt=(s,F)=>ht(s,F)&&s[F]!==void 0&&s[F]!==null,wt=(s,F,Z=M)=>s.exists(ue=>Z(ue,F)),Dt=(s,F,Z=M)=>en(s,F,Z).getOr(s.isNone()&&F.isNone()),It=s=>{const F=[],Z=ue=>{F.push(ue)};for(let ue=0;ue{const F=[];for(let Z=0;Zs.isSome()&&F.isSome()?I.some(Z(s.getOrDie(),F.getOrDie())):I.none(),Gt=(s,F,Z,ue)=>s.isSome()&&F.isSome()&&Z.isSome()?I.some(ue(s.getOrDie(),F.getOrDie(),Z.getOrDie())):I.none(),Ct=(s,F)=>s!=null?I.some(F(s)):I.none(),_t=(s,F)=>s?I.some(F):I.none(),nn=(s,F)=>s+F,gn=(s,F)=>s.substring(F),bn=(s,F,Z)=>F===""||s.length>=F.length&&s.substr(Z,Z+F.length)===F,mn=(s,F)=>lt(s,F)?gn(s,F.length):s,vt=(s,F)=>yt(s,F)?s:nn(s,F),bt=(s,F,Z=0,ue)=>{const we=s.indexOf(F,Z);return we!==-1?y(ue)?!0:we+F.length<=ue:!1},lt=(s,F)=>bn(s,F,0),yt=(s,F)=>bn(s,F,s.length-F.length),Rt=(s=>F=>F.replace(s,""))(/^\s+|\s+$/g),it=s=>s.length>0,at=s=>!it(s),Lt=s=>s.style!==void 0&&u(s.style.getPropertyValue),xt=(s,F)=>{const ue=(F||document).createElement("div");if(ue.innerHTML=s,!ue.hasChildNodes()||ue.childNodes.length>1){const we="HTML does not have a single root node";throw console.error(we,s),new Error(we)}return Yt(ue.childNodes[0])},Ht=(s,F)=>{const ue=(F||document).createElement(s);return Yt(ue)},Xt=(s,F)=>{const ue=(F||document).createTextNode(s);return Yt(ue)},Yt=s=>{if(s==null)throw new Error("Node cannot be null or undefined");return{dom:s}},Pt={fromHtml:xt,fromTag:Ht,fromText:Xt,fromDom:Yt,fromPoint:(s,F,Z)=>I.from(s.dom.elementFromPoint(F,Z)).map(Yt)},tn=typeof window<"u"?window:Function("return this;")(),Kt=(s,F)=>{let Z=F??tn;for(let ue=0;ue{const Z=s.split(".");return Kt(Z,F)},dn=(s,F)=>fn(s,F),vn=(s,F)=>{const Z=dn(s,F);if(Z==null)throw new Error(s+" not available on this browser");return Z},Nn=Object.getPrototypeOf,er=s=>vn("HTMLElement",s),En=s=>{const F=fn("ownerDocument.defaultView",s);return c(s)&&(er(F).prototype.isPrototypeOf(s)||/^HTML\w*Element$/.test(Nn(s).constructor.name))},In=9,Un=11,xr=1,Sr=3,ar=s=>s.dom.nodeName.toLowerCase(),Fn=s=>s.dom.nodeType,ir=s=>F=>Fn(F)===s,Wn=s=>Kn(s)&&En(s.dom),Kn=ir(xr),_r=ir(Sr),Ir=ir(In),zr=ir(Un),Fr=s=>F=>Kn(F)&&ar(F)===s,Rr=(s,F)=>{const Z=s.dom;if(Z.nodeType!==xr)return!1;{const ue=Z;if(ue.matches!==void 0)return ue.matches(F);if(ue.msMatchesSelector!==void 0)return ue.msMatchesSelector(F);if(ue.webkitMatchesSelector!==void 0)return ue.webkitMatchesSelector(F);if(ue.mozMatchesSelector!==void 0)return ue.mozMatchesSelector(F);throw new Error("Browser lacks native selectors")}},$r=s=>s.nodeType!==xr&&s.nodeType!==In&&s.nodeType!==Un||s.childElementCount===0,Kr=(s,F)=>{const Z=F===void 0?document:F.dom;return $r(Z)?[]:oe(Z.querySelectorAll(s),Pt.fromDom)},Co=(s,F)=>{const Z=F===void 0?document:F.dom;return $r(Z)?I.none():I.from(Z.querySelector(s)).map(Pt.fromDom)},so=(s,F)=>s.dom===F.dom,So=(s,F)=>{const Z=s.dom,ue=F.dom;return Z===ue?!1:Z.contains(ue)},go=s=>Pt.fromDom(s.dom.ownerDocument),li=s=>Ir(s)?s:go(s),Pn=s=>Pt.fromDom(li(s).dom.documentElement),Yn=s=>Pt.fromDom(li(s).dom.defaultView),br=s=>I.from(s.dom.parentNode).map(Pt.fromDom),dr=s=>br(s),Cr=s=>I.from(s.dom.parentElement).map(Pt.fromDom),io=(s,F)=>{const Z=u(F)?F:D;let ue=s.dom;const we=[];for(;ue.parentNode!==null&&ue.parentNode!==void 0;){const Be=ue.parentNode,qe=Pt.fromDom(Be);if(we.push(qe),Z(qe)===!0)break;ue=Be}return we},Qr=s=>I.from(s.dom.offsetParent).map(Pt.fromDom),Wr=s=>I.from(s.dom.nextSibling).map(Pt.fromDom),bo=s=>oe(s.dom.childNodes,Pt.fromDom),Bn=(s,F)=>{const Z=s.dom.childNodes;return I.from(Z[F]).map(Pt.fromDom)},hr=s=>Bn(s,0),hn=(s,F)=>({element:s,offset:F}),zn=(s,F)=>{const Z=bo(s);return Z.length>0&&Fzr(s)&&a(s.dom.host),yr=u(Element.prototype.attachShadow)&&u(Node.prototype.getRootNode),gr=x(yr),vr=yr?s=>Pt.fromDom(s.dom.getRootNode()):li,nr=s=>Zn(s)?s:Pt.fromDom(li(s).dom.body),Qn=s=>Hn(s).isSome(),Hn=s=>{const F=vr(s);return Zn(F)?I.some(F):I.none()},tr=s=>Pt.fromDom(s.dom.host),cr=s=>{if(gr()&&a(s.target)){const F=Pt.fromDom(s.target);if(Kn(F)&&Lr(F)&&s.composed&&s.composedPath){const Z=s.composedPath();if(Z)return He(Z)}}return I.from(s.target)},Lr=s=>a(s.dom.shadowRoot),Er=s=>{const F=_r(s)?s.dom.parentNode:s.dom;if(F==null||F.ownerDocument===null)return!1;const Z=F.ownerDocument;return Hn(Pt.fromDom(F)).fold(()=>Z.body.contains(F),A(Er,tr))},Vr=()=>to(Pt.fromDom(document)),to=s=>{const F=s.dom.body;if(F==null)throw new Error("Body is not available yet");return Pt.fromDom(F)},_o=(s,F,Z)=>{if(n(Z)||w(Z)||h(Z))s.setAttribute(F,Z+"");else throw console.error("Invalid call to Attribute.set. Key ",F,":: Value ",Z,":: Element ",s),new Error("Attribute value was not simple")},fr=(s,F,Z)=>{_o(s.dom,F,Z)},Eo=(s,F)=>{const Z=s.dom;We(F,(ue,we)=>{_o(Z,we,ue)})},ao=(s,F)=>{const Z=s.dom.getAttribute(F);return Z===null?void 0:Z},co=(s,F)=>I.from(ao(s,F)),Go=(s,F)=>{const Z=s.dom;return Z&&Z.hasAttribute?Z.hasAttribute(F):!1},po=(s,F)=>{s.dom.removeAttribute(F)},qo=s=>se(s.dom.attributes,(F,Z)=>(F[Z.name]=Z.value,F),{}),Ao=(s,F,Z)=>{if(!n(Z))throw console.error("Invalid call to CSS.set. Property ",F,":: Value ",Z,":: Element ",s),new Error("CSS value must be a string: "+Z);Lt(s)&&s.style.setProperty(F,Z)},oi=(s,F)=>{Lt(s)&&s.style.removeProperty(F)},ko=(s,F,Z)=>{const ue=s.dom;Ao(ue,F,Z)},ra=(s,F)=>{const Z=s.dom;We(F,(ue,we)=>{Ao(Z,we,ue)})},mo=(s,F)=>{const Z=s.dom;We(F,(ue,we)=>{ue.fold(()=>{oi(Z,we)},Be=>{Ao(Z,we,Be)})})},Aa=(s,F)=>{const Z=s.dom,we=window.getComputedStyle(Z).getPropertyValue(F);return we===""&&!Er(s)?Xl(Z,F):we},Xl=(s,F)=>Lt(s)?s.style.getPropertyValue(F):"",Na=(s,F)=>{const Z=s.dom,ue=Xl(Z,F);return I.from(ue).filter(we=>we.length>0)},cs=s=>{const F={},Z=s.dom;if(Lt(Z))for(let ue=0;ue{const ue=Pt.fromTag(s);return ko(ue,F,Z),Na(ue,F).isSome()},ma=(s,F)=>{const Z=s.dom;oi(Z,F),wt(co(s,"style").map(Rt),"")&&po(s,"style")},Ku=s=>s.dom.offsetWidth,qc=(s,F)=>{const Z=(ft,gt)=>{if(!h(gt)&&!gt.match(/^[0-9]+$/))throw new Error(s+".set accepts only positive integer values. Value was "+gt);const At=ft.dom;Lt(At)&&(At.style[s]=gt+"px")},ue=ft=>{const gt=F(ft);if(gt<=0||gt===null){const At=Aa(ft,s);return parseFloat(At)||0}return gt},we=ue,Be=(ft,gt)=>se(gt,(At,$t)=>{const on=Aa(ft,$t),yn=on===void 0?0:parseInt(on,10);return isNaN(yn)?At:At+yn},0);return{set:Z,get:ue,getOuter:we,aggregate:Be,max:(ft,gt,At)=>{const $t=Be(ft,At);return gt>$t?gt-$t:0}}},Yd=qc("height",s=>{const F=s.dom;return Er(s)?F.getBoundingClientRect().height:F.offsetHeight}),Ql=s=>Yd.get(s),Ed=s=>Yd.getOuter(s),Nf=(s,F)=>{const Z=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],ue=Yd.max(s,F,Z);ko(s,"max-height",ue+"px")},mm=(s,F)=>({left:s,top:F,translate:(ue,we)=>mm(s+ue,F+we)}),Ws=mm,gm=s=>{const F=s.getBoundingClientRect();return Ws(F.left,F.top)},Gl=(s,F)=>s!==void 0?s:F!==void 0?F:0,pc=s=>{const F=s.dom.ownerDocument,Z=F.body,ue=F.defaultView,we=F.documentElement;if(Z===s.dom)return Ws(Z.offsetLeft,Z.offsetTop);const Be=Gl(ue==null?void 0:ue.pageYOffset,we.scrollTop),qe=Gl(ue==null?void 0:ue.pageXOffset,we.scrollLeft),ft=Gl(we.clientTop,Z.clientTop),gt=Gl(we.clientLeft,Z.clientLeft);return Cu(s).translate(qe-gt,Be-ft)},Cu=s=>{const F=s.dom,ue=F.ownerDocument.body;return ue===F?Ws(ue.offsetLeft,ue.offsetTop):Er(s)?gm(F):Ws(0,0)},yl=qc("width",s=>s.dom.offsetWidth),sa=(s,F)=>yl.set(s,F),cc=s=>yl.get(s),hu=s=>yl.getOuter(s),ju=(s,F)=>{const Z=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],ue=yl.max(s,F,Z);ko(s,"max-width",ue+"px")},iu=s=>{let F=!1,Z;return(...ue)=>(F||(F=!0,Z=s.apply(null,ue)),Z)},mc=(s,F,Z,ue)=>{const we=s.isiOS()&&/ipad/i.test(Z)===!0,Be=s.isiOS()&&!we,qe=s.isiOS()||s.isAndroid(),ft=qe||ue("(pointer:coarse)"),gt=we||!Be&&qe&&ue("(min-device-width:768px)"),At=Be||qe&&!gt,$t=F.isSafari()&&s.isiOS()&&/safari/i.test(Z)===!1,on=!At&&!gt&&!$t;return{isiPad:x(we),isiPhone:x(Be),isTablet:x(gt),isPhone:x(At),isTouch:x(ft),isAndroid:s.isAndroid,isiOS:s.isiOS,isWebView:x($t),isDesktop:x(on)}},Ss=(s,F)=>{for(let Z=0;Z{const Z=Ss(s,F);if(!Z)return{major:0,minor:0};const ue=we=>Number(F.replace(Z,"$"+we));return $h(ue(1),ue(2))},vf=(s,F)=>{const Z=String(F).toLowerCase();return s.length===0?Ju():$f(s,Z)},Ju=()=>$h(0,0),$h=(s,F)=>({major:s,minor:F}),Es={nu:$h,detect:vf,unknown:Ju},ef=(s,F)=>Oe(F.brands,Z=>{const ue=Z.brand.toLowerCase();return ce(s,we=>{var Be;return ue===((Be=we.brand)===null||Be===void 0?void 0:Be.toLowerCase())}).map(we=>({current:we.name,version:Es.nu(parseInt(Z.version,10),0)}))}),uc=(s,F)=>{const Z=String(F).toLowerCase();return ce(s,ue=>ue.search(Z))},ad=(s,F)=>uc(s,F).map(Z=>{const ue=Es.detect(Z.versionRegexes,F);return{current:Z.name,version:ue}}),Vf=(s,F)=>uc(s,F).map(Z=>{const ue=Es.detect(Z.versionRegexes,F);return{current:Z.name,version:ue}}),gc=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,sd=s=>F=>bt(F,s),Mp=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:s=>bt(s,"edge/")&&bt(s,"chrome")&&bt(s,"safari")&&bt(s,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,gc],search:s=>bt(s,"chrome")&&!bt(s,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:s=>bt(s,"msie")||bt(s,"trident")},{name:"Opera",versionRegexes:[gc,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:sd("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:sd("firefox")},{name:"Safari",versionRegexes:[gc,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:s=>(bt(s,"safari")||bt(s,"mobile/"))&&bt(s,"applewebkit")}],Xd=[{name:"Windows",search:sd("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:s=>bt(s,"iphone")||bt(s,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:sd("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:sd("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:sd("linux"),versionRegexes:[]},{name:"Solaris",search:sd("sunos"),versionRegexes:[]},{name:"FreeBSD",search:sd("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:sd("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],yf={browsers:x(Mp),oses:x(Xd)},mh="Edge",ld="Chromium",Vh="IE",bf="Opera",tf="Firefox",Au="Safari",xf=()=>cd({current:void 0,version:Es.unknown()}),cd=s=>{const F=s.current,Z=s.version,ue=we=>()=>F===we;return{current:F,version:Z,isEdge:ue(mh),isChromium:ue(ld),isIE:ue(Vh),isOpera:ue(bf),isFirefox:ue(tf),isSafari:ue(Au)}},nf={unknown:xf,nu:cd,edge:x(mh),chromium:x(ld),ie:x(Vh),opera:x(bf),firefox:x(tf),safari:x(Au)},gh="Windows",rs="iOS",ep="Android",Ep="Linux",vm="macOS",Pd="Solaris",M0="FreeBSD",sr="ChromeOS",Pp=()=>_f({current:void 0,version:Es.unknown()}),_f=s=>{const F=s.current,Z=s.version,ue=we=>()=>F===we;return{current:F,version:Z,isWindows:ue(gh),isiOS:ue(rs),isAndroid:ue(ep),isMacOS:ue(vm),isLinux:ue(Ep),isSolaris:ue(Pd),isFreeBSD:ue(M0),isChromeOS:ue(sr)}},wf={unknown:Pp,nu:_f,windows:x(gh),ios:x(rs),android:x(ep),linux:x(Ep),macos:x(vm),solaris:x(Pd),freebsd:x(M0),chromeos:x(sr)},Gd={detect:(s,F,Z)=>{const ue=yf.browsers(),we=yf.oses(),Be=F.bind(gt=>ef(ue,gt)).orThunk(()=>ad(ue,s)).fold(nf.unknown,nf.nu),qe=Vf(we,s).fold(wf.unknown,wf.nu),ft=mc(qe,Be,s,Z);return{browser:Be,os:qe,deviceType:ft}}},Fa=s=>window.matchMedia(s).matches;let Qu=iu(()=>Gd.detect(navigator.userAgent,I.from(navigator.userAgentData),Fa));const rf=()=>Qu(),Bc=(s,F,Z,ue,we,Be,qe)=>({target:s,x:F,y:Z,stop:ue,prevent:we,kill:Be,raw:qe}),ym=s=>{const F=Pt.fromDom(cr(s).getOr(s.target)),Z=()=>s.stopPropagation(),ue=()=>s.preventDefault(),we=S(ue,Z);return Bc(F,s.clientX,s.clientY,Z,ue,we,s)},Mu=(s,F)=>Z=>{s(Z)&&F(ym(Z))},Hu=(s,F,Z,ue,we)=>{const Be=Mu(Z,ue);return s.dom.addEventListener(F,Be,we),{unbind:T(jh,s,F,Be,we)}},Lp=(s,F,Z,ue)=>Hu(s,F,Z,ue,!1),Uh=(s,F,Z,ue)=>Hu(s,F,Z,ue,!0),jh=(s,F,Z,ue)=>{s.dom.removeEventListener(F,Z,ue)},Eu=(s,F)=>{br(s).each(ue=>{ue.dom.insertBefore(F.dom,s.dom)})},ud=(s,F)=>{Wr(s).fold(()=>{br(s).each(we=>{Pu(we,F)})},ue=>{Eu(ue,F)})},vh=(s,F)=>{hr(s).fold(()=>{Pu(s,F)},ue=>{s.dom.insertBefore(F.dom,ue.dom)})},Pu=(s,F)=>{s.dom.appendChild(F.dom)},Oc=(s,F,Z)=>{Bn(s,Z).fold(()=>{Pu(s,F)},ue=>{Eu(ue,F)})},ks=(s,F)=>{q(F,Z=>{Pu(s,Z)})},Uf=s=>{s.dom.textContent="",q(bo(s),F=>{zl(F)})},zl=s=>{const F=s.dom;F.parentNode!==null&&F.parentNode.removeChild(F)},Hl=s=>{const F=s!==void 0?s.dom:document,Z=F.body.scrollLeft||F.documentElement.scrollLeft,ue=F.body.scrollTop||F.documentElement.scrollTop;return Ws(Z,ue)},Ts=(s,F,Z)=>{const we=(Z!==void 0?Z.dom:document).defaultView;we&&we.scrollTo(s,F)},$s=s=>{const F=s===void 0?window:s;return rf().browser.isFirefox()?I.none():I.from(F.visualViewport)},Zu=(s,F,Z,ue)=>({x:s,y:F,width:Z,height:ue,right:s+Z,bottom:F+ue}),yh=s=>{const F=s===void 0?window:s,Z=F.document,ue=Hl(Pt.fromDom(Z));return $s(F).fold(()=>{const we=F.document.documentElement,Be=we.clientWidth,qe=we.clientHeight;return Zu(ue.left,ue.top,Be,qe)},we=>Zu(Math.max(we.pageLeft,ue.left),Math.max(we.pageTop,ue.top),we.width,we.height))},of=()=>Pt.fromDom(document),tp=(s,F)=>s.view(F).fold(x([]),ue=>{const we=s.owner(ue),Be=tp(s,we);return[ue].concat(Be)}),Ip=(s,F)=>{const Z=F.owner(s),ue=tp(F,Z);return I.some(ue)};var bh=Object.freeze({__proto__:null,view:s=>{var F;return(s.dom===document?I.none():I.from((F=s.dom.defaultView)===null||F===void 0?void 0:F.frameElement)).map(Pt.fromDom)},owner:s=>go(s)});const Jd=s=>{const F=of(),Z=Hl(F);return Ip(s,bh).fold(T(pc,s),we=>{const Be=Cu(s),qe=he(we,(ft,gt)=>{const At=Cu(gt);return{left:ft.left+At.left,top:ft.top+At.top}},{left:0,top:0});return Ws(qe.left+Be.left+Z.left,qe.top+Be.top+Z.top)})},zc=(s,F,Z)=>({point:s,width:F,height:Z}),np=(s,F,Z,ue)=>({x:s,y:F,width:Z,height:ue}),ms=(s,F,Z,ue)=>({x:s,y:F,width:Z,height:ue,right:s+Z,bottom:F+ue}),Ya=s=>{const F=pc(s),Z=hu(s),ue=Ed(s);return ms(F.left,F.top,Z,ue)},bl=s=>{const F=Jd(s),Z=hu(s),ue=Ed(s);return ms(F.left,F.top,Z,ue)},fl=(s,F)=>{const Z=Math.max(s.x,F.x),ue=Math.max(s.y,F.y),we=Math.min(s.right,F.right),Be=Math.min(s.bottom,F.bottom),qe=we-Z,ft=Be-ue;return ms(Z,ue,qe,ft)},Wc=(s,F)=>se(F,(Z,ue)=>fl(Z,ue),s),xl=()=>yh(window),xi=s=>{let F=s;return{get:()=>F,set:we=>{F=we}}},pu=s=>{const F=xi(I.none()),Z=()=>F.get().each(s);return{clear:()=>{Z(),F.set(I.none())},isSet:()=>F.get().isSome(),get:()=>F.get(),set:ft=>{Z(),F.set(I.some(ft))}}},xh=()=>pu(s=>s.destroy()),js=()=>pu(s=>s.unbind()),os=()=>{const s=pu(v);return{...s,on:Z=>s.get().each(Z)}};var af=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Of=s=>{const F=Be=>Be(s),Z=x(s),ue=()=>we,we={tag:!0,inner:s,fold:(Be,qe)=>qe(s),isValue:k,isError:D,map:Be=>Hi.value(Be(s)),mapError:ue,bind:F,exists:F,forall:F,getOr:Z,or:ue,getOrThunk:Z,orThunk:ue,getOrDie:Z,each:Be=>{Be(s)},toOptional:()=>I.some(s)};return we},sf=s=>{const F=()=>Z,Z={tag:!1,inner:s,fold:(ue,we)=>ue(s),isValue:D,isError:k,map:F,mapError:ue=>Hi.error(ue(s)),bind:F,exists:D,forall:k,getOr:R,or:R,getOrThunk:L,orThunk:L,getOrDie:C(String(s)),each:v,toOptional:I.none};return Z},Hi={value:Of,error:sf,fromOption:(s,F)=>s.fold(()=>sf(F),Of)};var pi;(function(s){s[s.Error=0]="Error",s[s.Value=1]="Value"})(pi||(pi={}));const Qh=(s,F,Z)=>s.stype===pi.Error?F(s.serror):Z(s.svalue),Ru=s=>{const F=[],Z=[];return q(s,ue=>{Qh(ue,we=>Z.push(we),we=>F.push(we))}),{values:F,errors:Z}},vc=(s,F)=>s.stype===pi.Error?{stype:pi.Error,serror:F(s.serror)}:s,Yc=(s,F)=>s.stype===pi.Value?{stype:pi.Value,svalue:F(s.svalue)}:s,Kl=(s,F)=>s.stype===pi.Value?F(s.svalue):s,Fc=(s,F)=>s.stype===pi.Error?F(s.serror):s,si=s=>({stype:pi.Value,svalue:s}),Hh=s=>({stype:pi.Error,serror:s}),tl={fromResult:s=>s.fold(Hh,si),toResult:s=>Qh(s,Hi.error,Hi.value),svalue:si,partition:Ru,serror:Hh,bind:Kl,bindError:Fc,map:Yc,mapError:vc,fold:Qh},mu=(s,F,Z,ue)=>({tag:"field",key:s,newKey:F,presence:Z,prop:ue}),gu=(s,F)=>({tag:"custom",newKey:s,instantiator:F}),ja=(s,F,Z)=>{switch(s.tag){case"field":return F(s.key,s.newKey,s.presence,s.prop);case"custom":return Z(s.newKey,s.instantiator)}},vu=(s,F)=>F,Rd=(s,F)=>b(s)&&b(F)?nl(s,F):F,Ld=s=>(...F)=>{if(F.length===0)throw new Error("Can't merge zero objects");const Z={};for(let ue=0;ue({tag:"required",process:{}}),Xi=s=>({tag:"defaultedThunk",process:s}),Xc=s=>Xi(x(s)),jf=()=>({tag:"option",process:{}}),yu=s=>({tag:"mergeWithThunk",process:s}),Dp=s=>yu(x(s)),rp=(s,F)=>s.length>0?tl.svalue(nl(F,Id.apply(void 0,s))):tl.svalue(F),Lu=s=>S(tl.serror,ve)(s),fd={consolidateObj:(s,F)=>{const Z=tl.partition(s);return Z.errors.length>0?Lu(Z.errors):rp(Z.values,F)},consolidateArr:s=>{const F=tl.partition(s);return F.errors.length>0?Lu(F.errors):tl.svalue(F.values)}},Hf=s=>c(s)&&ke(s).length>100?" removed due to size":JSON.stringify(s,null,2),_h=s=>{const F=s.length>10?s.slice(0,10).concat([{path:[],getErrorInfo:x("... (only showing first ten failures)")}]):s;return oe(F,Z=>"Failed path: ("+Z.path.join(" > ")+`) -`+Z.getErrorInfo())},Gc=(s,F)=>tl.serror([{path:s,getErrorInfo:F}]),dd=(s,F,Z)=>Gc(s,()=>'Could not find valid *required* value for "'+F+'" in '+Hf(Z)),rl=(s,F)=>Gc(s,()=>'Choice schema did not contain choice key: "'+F+'"'),Dd=(s,F,Z)=>Gc(s,()=>'The chosen schema: "'+Z+'" did not exist in branches: '+Hf(F)),Vi=(s,F)=>Gc(s,()=>"There are unsupported fields: ["+F.join(", ")+"] specified"),fa=(s,F)=>Gc(s,x(F)),au=s=>{const F=(ue,we)=>tl.bindError(s(we),Be=>fa(ue,Be)),Z=x("val");return{extract:F,toString:Z}},Zf=au(tl.svalue),Zl=(s,F,Z,ue)=>Ge(F,Z).fold(()=>dd(s,Z,F),ue),Jl=(s,F,Z,ue)=>{const we=Ge(s,F).getOrThunk(()=>Z(s));return ue(we)},Bd=(s,F,Z)=>Z(Ge(s,F)),Qs=(s,F,Z,ue)=>{const we=Ge(s,F).map(Be=>Be===!0?Z(s):Be);return ue(we)},kc=(s,F,Z,ue,we)=>{const Be=ft=>we.extract(F.concat([ue]),ft),qe=ft=>ft.fold(()=>tl.svalue(I.none()),gt=>{const At=we.extract(F.concat([ue]),gt);return tl.map(At,I.some)});switch(s.tag){case"required":return Zl(F,Z,ue,Be);case"defaultedThunk":return Jl(Z,ue,s.process,Be);case"option":return Bd(Z,ue,qe);case"defaultedOptionThunk":return Qs(Z,ue,s.process,qe);case"mergeWithThunk":return Jl(Z,ue,x({}),ft=>{const gt=nl(s.process(Z),ft);return Be(gt)})}},Iu=(s,F,Z)=>{const ue={},we=[];for(const Be of Z)ja(Be,(qe,ft,gt,At)=>{const $t=kc(gt,s,F,qe,At);tl.fold($t,on=>{we.push(...on)},on=>{ue[ft]=on})},(qe,ft)=>{ue[qe]=ft(F)});return we.length>0?tl.serror(we):tl.svalue(ue)},Ea=s=>({extract:(ue,we)=>s().extract(ue,we),toString:()=>s().toString()}),El=s=>ke(Ne(s,a)),_l=s=>{const F=Mi(s),Z=he(s,(we,Be)=>ja(Be,qe=>nl(we,{[qe]:!0}),x(we)),{});return{extract:(we,Be)=>{const qe=w(Be)?[]:El(Be),ft=me(qe,gt=>!pt(Z,gt));return ft.length===0?F.extract(we,Be):Vi(we,ft)},toString:F.toString}},Mi=s=>({extract:(ue,we)=>Iu(ue,we,s),toString:()=>`obj{ +Required: `+Ce.join(", "));return Ro[un].apply(null,$n)},log:Ro=>{console.log(Ro,{constructors:Ce,constructor:un,params:$n})}}}}),Ye}},Ah={...Rm.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},Hx=(pe,Ce)=>pe.length===0?Ah.none():pe.length===1?Ah.only(0):Ce===0?Ah.left(0,1):Ce===pe.length-1?Ah.right(Ce-1,Ce):Ce>0&&Ce{const Ut=pe.slice(0),un=Hx(pe,Ce),Tn=v(j(Ut,v(0))),$n=ai=>st.singleColumnWidth(Ut[ai],Ye),ur=(ai,Ko)=>St.calcLeftEdgeDeltas(Ut,ai,Ko,Ye,st.minCellWidth(),st.isRelative),Nr=(ai,Ko,Qo)=>St.calcMiddleDeltas(Ut,ai,Ko,Qo,Ye,st.minCellWidth(),st.isRelative),Ro=(ai,Ko)=>St.calcRightEdgeDeltas(Ut,ai,Ko,Ye,st.minCellWidth(),st.isRelative);return un.fold(Tn,$n,ur,Nr,Ro)},G_=(pe,Ce,Ye)=>{let st=0;for(let St=pe;St{const Ye=Xi.justCells(pe);return j(Ye,st=>{const St=G_(st.column,st.column+st.colspan,Ce);return{element:st.element,width:St,colspan:st.colspan}})},XO=(pe,Ce)=>{const Ye=Xi.justColumns(pe);return j(Ye,(st,St)=>({element:st.element,width:Ce[St],colspan:st.colspan}))},yc=(pe,Ce)=>j(pe.all,(Ye,st)=>({element:Ye.element,height:Ce[st]})),GO=pe=>K(pe,(Ce,Ye)=>Ce+Ye,0),Zx=(pe,Ce)=>Xi.hasColumns(pe)?XO(pe,Ce):Cc(pe,Ce),wb=(pe,Ce,Ye)=>{const st=Zx(pe,Ce);U(st,St=>{Ye.setElementWidth(St.element,St.width)})},K_=(pe,Ce,Ye,st,St)=>{const Ut=Xi.fromTable(pe),un=St.getCellDelta(Ce),Tn=St.getWidths(Ut,St),$n=Ye===Ut.grid.columns-1,ur=st.clampTableDelta(Tn,Ye,un,St.minCellWidth(),$n),Nr=ih(Tn,Ye,ur,St,st),Ro=j(Nr,(ai,Ko)=>ai+Tn[Ko]);wb(Ut,Ro,St),st.resizeTable(St.adjustTableWidth,ur,$n)},qx=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe),St=mr(st,pe),Ut=j(St,($n,ur)=>Ye===ur?Math.max(Ce+$n,Xd()):$n),un=yc(st,Ut);U(un,$n=>{rt($n.element,$n.height)}),U(Xi.justCells(st),$n=>{dt($n.element)});const Tn=GO(Ut);rt(pe,Tn)},J_=(pe,Ce,Ye,st,St)=>{const Ut=Xi.generate(Ce),un=st.getWidths(Ut,st),Tn=st.pixelWidth(),{newSizes:$n,delta:ur}=St.calcRedestributedWidths(un,Tn,Ye.pixelDelta,st.isRelative);wb(Ut,$n,st),st.adjustTableWidth(ur)},Lm=(pe,Ce,Ye,st)=>{const St=Xi.generate(Ce),Ut=st.getWidths(St,st);wb(St,Ut,st)},qh=pe=>oe(pe,(Ye,st)=>$(Ye,Ut=>Ut.column===st.column)?Ye:Ye.concat([st]),[]).sort((Ye,st)=>Ye.column-st.column),Q1=vt("col"),Kc=vt("colgroup"),H1=pe=>qt(pe)==="tr"||Kc(pe),Qp=pe=>{const Ce=uc(pe,"colspan",1),Ye=uc(pe,"rowspan",1);return{element:pe,colspan:Ce,rowspan:Ye}},ly=(pe,Ce=Qp)=>{const Ye=Tn=>Q1(Tn.element)?pe.col(Tn):pe.cell(Tn),st=Tn=>Kc(Tn.element)?pe.colgroup(Tn):pe.row(Tn),St=Tn=>{if(H1(Tn))return st({element:Tn});{const $n=Tn,ur=Ye(Ce($n));return Ut=C.some({item:$n,replacement:ur}),ur}};let Ut=C.none();return{getOrInit:(Tn,$n)=>Ut.fold(()=>St(Tn),ur=>$n(Tn,ur.item)?ur.replacement:St(Tn))}},cy=pe=>Ce=>{const Ye=[],st=(un,Tn)=>Y(Ye,$n=>Tn($n.item,un)),St=un=>{const Tn=pe==="td"?{scope:null}:{},$n=Ce.replace(un,pe,Tn);return Ye.push({item:un,sub:$n}),$n};return{replaceOrInit:(un,Tn)=>{if(H1(un)||Q1(un))return un;{const $n=un;return st($n,Tn).fold(()=>St($n),ur=>Tn(un,ur.item)?ur.sub:St($n))}}}},Ob=pe=>it(pe,"scope").map(Ce=>Ce.substr(0,3)),bc={modification:ly,transform:cy,merging:pe=>({unmerge:st=>{const St=Ob(st);return St.each(Ut=>lt(st,"scope",Ut)),()=>{const Ut=pe.cell({element:st,colspan:1,rowspan:1});return Es(Ut,"width"),Es(st,"width"),St.each(un=>lt(Ut,"scope",un)),Ut}},merge:st=>{const St=()=>{const Ut=Ql(j(st,Ob));if(Ut.length===0)return C.none();{const un=Ut[0],Tn=["row","col"];return $(Ut,ur=>ur!==un&&z(Tn,ur))?C.none():C.from(un)}};return Es(st[0],"width"),St().fold(()=>at(st[0],"scope"),Ut=>lt(st[0],"scope",Ut+"group")),v(st[0])}})},KO=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],ew=(pe,Ce)=>{const Ye=pe.property().name(Ce);return z(["ol","ul"],Ye)},Q0=(pe,Ce)=>{const Ye=pe.property().name(Ce);return z(KO,Ye)},Nc=(pe,Ce)=>z(["br","img","hr","input"],pe.property().name(Ce)),yg=fg(),qr=pe=>Q0(yg,pe),N=pe=>ew(yg,pe),G=pe=>Nc(yg,pe),fe=pe=>{const Ce=vt("br"),Ye=$n=>se($n,ur=>Ce(ur)||gn(ur)&&qf(ur).trim().length===0),st=$n=>qt($n)==="li"||Aa($n,N).isSome(),St=$n=>Wn($n).map(ur=>qr(ur)?!0:G(ur)?qt(ur)!=="img":!1).getOr(!1),Ut=$n=>Ax($n).bind(ur=>{const Nr=St(ur);return Sr(ur).map(Ro=>Nr===!0||st(Ro)||Ce(ur)||qr(Ro)&&!vn($n,Ro)?[]:[Pt.fromTag("br")])}).getOr([]),Tn=(()=>{const $n=he(pe,ur=>{const Nr=Kn(ur);return Ye(Nr)?[]:Nr.concat(Ut(ur))});return $n.length===0?[Pt.fromTag("br")]:$n})();go(pe[0]),So(pe[0],Tn)},Ae=pe=>Kg(pe,!0),Qe=pe=>{xf(pe).length===0&&li(pe)},et=(pe,Ce)=>({grid:pe,cursor:Ce}),ut=pe=>Se(pe,Ce=>Se(Ce.cells,Ye=>{const st=Ye.element;return Nf(Ae(st),st)})),Tt=(pe,Ce,Ye)=>{var st,St;const Ut=Kl(pe).rows;return C.from((St=(st=Ut[Ce])===null||st===void 0?void 0:st.cells[Ye])===null||St===void 0?void 0:St.element).filter(Ae).orThunk(()=>ut(Ut))},Bt=(pe,Ce,Ye)=>{const st=Tt(pe,Ce,Ye);return et(pe,st)},rn=pe=>oe(pe,(Ye,st)=>$(Ye,Ut=>Ut.row===st.row)?Ye:Ye.concat([st]),[]).sort((Ye,st)=>Ye.row-st.row),an=(pe,Ce,Ye,st)=>{const St=Ce[0].row,Ut=rn(Ce),un=K(Ut,(Tn,$n)=>({grid:Il(Tn.grid,St,$n.row+Tn.delta,Ye,st.getOrInit),delta:Tn.delta+1}),{grid:pe,delta:0}).grid;return Bt(un,St,Ce[0].column)},_n=(pe,Ce,Ye,st)=>{const St=rn(Ce),Ut=St[St.length-1],un=Ut.row+Ut.rowspan,Tn=K(St,($n,ur)=>Il($n,un,ur.row,Ye,st.getOrInit),pe);return Bt(Tn,un,Ce[0].column)},Dn=(pe,Ce,Ye,st)=>{const St=Ce.details,Ut=qh(St),un=Ut[0].column,Tn=K(Ut,($n,ur)=>({grid:U1($n.grid,un,ur.column+$n.delta,Ye,st.getOrInit),delta:$n.delta+1}),{grid:pe,delta:0}).grid;return Bt(Tn,St[0].row,un)},Cn=(pe,Ce,Ye,st)=>{const St=Ce.details,Ut=St[St.length-1],un=Ut.column+Ut.colspan,Tn=qh(St),$n=K(Tn,(ur,Nr)=>U1(ur,un,Nr.column,Ye,st.getOrInit),pe);return Bt($n,St[0].row,un)},Jn=(pe,Ce,Ye,st)=>{const St=qh(Ce),Ut=j(St,Tn=>Tn.column),un=_b(pe,Ut,!0,Ye,st.replaceOrInit);return Bt(un,Ce[0].row,Ce[0].column)},lr=(pe,Ce,Ye,st)=>{const St=j0(pe,Ce,Ye,st.replaceOrInit);return Bt(St,Ce[0].row,Ce[0].column)},Ar=(pe,Ce,Ye,st)=>{const St=qh(Ce),Ut=j(St,Tn=>Tn.column),un=_b(pe,Ut,!1,Ye,st.replaceOrInit);return Bt(un,Ce[0].row,Ce[0].column)},Or=(pe,Ce,Ye,st)=>{const St=j0(pe,Ce,Ye,st.replaceOrInit);return Bt(St,Ce[0].row,Ce[0].column)},jr=(pe,Ce)=>(Ye,st,St,Ut,un)=>{const Tn=rn(st),$n=j(Tn,Nr=>Nr.row),ur=sy(Ye,$n,pe,Ce,St,Ut.replaceOrInit,un);return Bt(ur,st[0].row,st[0].column)},Jr=jr("thead",!0),uo=jr("tbody",!1),ro=jr("tfoot",!1),Po=(pe,Ce,Ye,st)=>{const St=qh(Ce.details),Ut=j1(pe,j(St,Tn=>Tn.column)),un=Ut.length>0?Ut[0].cells.length-1:0;return Bt(Ut,St[0].row,Math.min(St[0].column,un))},gi=(pe,Ce,Ye,st)=>{const St=rn(Ce),Ut=Ux(pe,St[0].row,St[St.length-1].row),un=Math.max(Kl(Ut).rows.length-1,0);return Bt(Ut,Math.min(Ce[0].row,un),Ce[0].column)},ni=(pe,Ce,Ye,st)=>{const St=Ce.cells;fe(St);const Ut=wS(pe,Ce.bounds,Ye,st.merge(St));return et(Ut,C.from(St[0]))},Ti=(pe,Ce,Ye,st)=>{const Ut=K(Ce,(un,Tn)=>$1(un,Tn,Ye,st.unmerge(Tn)),pe);return et(Ut,C.from(Ce[0]))},vi=(pe,Ce,Ye,st)=>{const Ut=(($n,ur)=>{const Nr=Xi.fromTable($n);return z1(Nr,ur,!0)})(Ce.clipboard,Ce.generators),un=hr(Ce.row,Ce.column);return Ra(un,pe,Ut,Ce.generators,Ye).fold(()=>et(pe,C.some(Ce.element)),$n=>Bt($n,Ce.row,Ce.column))},na=(pe,Ce,Ye)=>{const st=ep(pe,Ye.section),St=Xi.generate(st);return z1(St,Ce,!0)},ea=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[0].column,un=St[Ce.cells[0].row],Tn=na(Ce.clipboard,Ce.generators,un),$n=bd(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ce.cells[0].row,Ce.cells[0].column)},La=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[Ce.cells.length-1].column+Ce.cells[Ce.cells.length-1].colspan,un=St[Ce.cells[0].row],Tn=na(Ce.clipboard,Ce.generators,un),$n=bd(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ce.cells[0].row,Ut)},ca=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[0].row,un=St[Ut],Tn=na(Ce.clipboard,Ce.generators,un),$n=Zh(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ce.cells[0].row,Ce.cells[0].column)},Zi=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[Ce.cells.length-1].row+Ce.cells[Ce.cells.length-1].rowspan,un=St[Ce.cells[0].row],Tn=na(Ce.clipboard,Ce.generators,un),$n=Zh(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ut,Ce.cells[0].column)},Bs=(pe,Ce)=>{const Ye=Xi.fromTable(pe);return Vp(Ye,Ce).bind(St=>{const Ut=St[St.length-1],un=St[0].column,Tn=Ut.column+Ut.colspan,$n=me(j(Ye.all,ur=>W(ur.cells,Nr=>Nr.column>=un&&Nr.column{const Ye=Xi.fromTable(pe);return Vp(Ye,Ce).bind(vb).getOr("")},Vl=(pe,Ce)=>{const Ye=Xi.fromTable(pe);return Vp(Ye,Ce).bind(St=>{const Ut=St[St.length-1],un=St[0].row,Tn=Ut.row+Ut.rowspan,$n=Ye.all.slice(un,Tn);return Fx($n)}).getOr("")},Ta=(pe,Ce,Ye,st)=>Lm(pe,Ce,Ye,st.sizing),zs=(pe,Ce,Ye,st)=>J_(pe,Ce,Ye,st.sizing,st.resize),gs=(pe,Ce)=>$(Ce,Ye=>Ye.column===0&&Ye.isLocked),rc=(pe,Ce)=>$(Ce,Ye=>Ye.column+Ye.colspan>=pe.grid.columns&&Ye.isLocked),aa=(pe,Ce)=>{const Ye=Xc(pe),st=qh(Ce);return oe(st,(St,Ut)=>{const Tn=Ye[Ut.column].map(os).getOr(0);return St+Tn},0)},Fs=pe=>(Ce,Ye)=>Vp(Ce,Ye).filter(st=>!(pe?gs:rc)(Ce,st)).map(st=>({details:st,pixelDelta:aa(Ce,st)})),$c=(pe,Ce)=>nh(pe,Ce).map(Ye=>({details:Ye,pixelDelta:-aa(pe,Ye)})),xc=pe=>(Ce,Ye)=>dp(Ce,Ye).filter(st=>!(pe?gs:rc)(Ce,st.cells)),_u=bc.transform("th"),qu=bc.transform("td"),Vc=Af(an,Vp,u,u,bc.modification),ml=Af(_n,Vp,u,u,bc.modification),Uc=Af(Dn,Fs(!0),zs,u,bc.modification),wu=Af(Cn,Fs(!1),zs,u,bc.modification),uf=Af(Po,$c,zs,Qe,bc.modification),ff=Af(gi,Vp,u,Qe,bc.modification),jc=Af(Jn,nh,u,u,_u),is=Af(Ar,nh,u,u,qu),Vs=Af(Jr,nh,u,u,_u),Ac=Af(uo,nh,u,u,qu),Bl=Af(ro,nh,u,u,qu),Uo=Af(lr,nh,u,u,_u),ql=Af(Or,nh,u,u,qu),Xs=Af(ni,iy,Ta,u,bc.merging),ac=Af(Ti,qO,Ta,u,bc.merging),Mc=Af(vi,gg,Ta,u,bc.modification),Mh=Af(ea,xc(!0),u,u,bc.modification),il=Af(La,xc(!1),u,u,bc.modification),Im=Af(ca,dp,u,u,bc.modification),ah=Af(Zi,dp,u,u,bc.modification),Bu=Bs,Hp=Ja,dc=Vl,Jf=(pe,Ce)=>pe.dispatch("NewRow",{node:Ce}),bg=(pe,Ce)=>pe.dispatch("NewCell",{node:Ce}),Dm=(pe,Ce,Ye)=>{pe.dispatch("TableModified",{...Ye,table:Ce})},q1=(pe,Ce,Ye,st,St)=>{pe.dispatch("TableSelectionChange",{cells:Ce,start:Ye,finish:st,otherCells:St})},Wx=pe=>{pe.dispatch("TableSelectionClear")},Ec=(pe,Ce,Ye,st,St)=>{pe.dispatch("ObjectResizeStart",{target:Ce,width:Ye,height:st,origin:St})},Qc=(pe,Ce,Ye,st,St)=>{pe.dispatch("ObjectResized",{target:Ce,width:Ye,height:st,origin:St})},Hc={structure:!1,style:!0},_s={structure:!0,style:!1},Jc={structure:!0,style:!0},Pc=(pe,Ce)=>Xg(pe)?Ls.percentageSize(Ce):Gg(pe)?Ls.pixelSize(Ce):Ls.getTableSize(Ce),W1=(pe,Ce,Ye)=>{const st=tu=>qt(T1(tu))==="table",St=tu=>!st(pe)||mg(tu).rows>1,Ut=tu=>!st(pe)||mg(tu).columns>1,un=C_(pe),Tn=Yf(pe)?u:hg,$n=tu=>{switch(A_(pe)){case"section":return Th.section();case"sectionCells":return Th.sectionCells();case"cells":return Th.cells();default:return Th.getTableSectionType(tu,"section")}},ur=(tu,t1)=>t1.cursor.fold(()=>{const Tw=xf(tu);return ye(Tw).filter(ao).map(vp=>{Ye.clearSelectedCells(tu.dom);const xa=pe.dom.createRng();return xa.selectNode(vp.dom),pe.selection.setRng(xa),lt(vp,"data-mce-selected","1"),xa})},Tw=>{const vp=su(Tw),xa=pe.dom.createRng();return xa.setStart(vp.element.dom,vp.offset),xa.setEnd(vp.element.dom,vp.offset),pe.selection.setRng(xa),Ye.clearSelectedCells(tu.dom),C.some(xa)}),Nr=(tu,t1,Tw,vp)=>(xa,p5,m5=!1)=>{zd(xa);const z3=Pt.fromDom(pe.getDoc()),v6=Tf(Tw,z3,un),Wb={sizing:Pc(pe,xa),resize:Yf(pe)?R1():z0(),section:$n(xa)};return t1(xa)?tu(xa,p5,v6,Wb).bind(mv=>{Ce.refresh(xa.dom),U(mv.newRows,Cw=>{Jf(pe,Cw.dom)}),U(mv.newCells,Cw=>{bg(pe,Cw.dom)});const y6=ur(xa,mv);return ao(xa)&&(zd(xa),m5||Dm(pe,xa.dom,vp)),y6.map(Cw=>({rng:Cw,effect:vp}))}):C.none()},Ro=Nr(ff,St,u,_s),ai=Nr(uf,Ut,u,_s),Ko=Nr(Vc,E,u,_s),Qo=Nr(ml,E,u,_s),_i=Nr(Uc,E,Tn,_s),To=Nr(wu,E,Tn,_s),Zo=Nr(Xs,E,u,_s),Yi=Nr(ac,E,u,_s),ri=Nr(Mh,E,u,_s),Ms=Nr(il,E,u,_s),al=Nr(Im,E,u,_s),Gs=Nr(ah,E,u,_s),td=Nr(Mc,E,u,Jc),zu=Nr(Uo,E,u,_s),e1=Nr(ql,E,u,_s),Ay=Nr(jc,E,u,_s),My=Nr(is,E,u,_s),Zs=Nr(Vs,E,u,_s),Rh=Nr(Ac,E,u,_s),Lh=Nr(Bl,E,u,_s);return{deleteRow:Ro,deleteColumn:ai,insertRowsBefore:Ko,insertRowsAfter:Qo,insertColumnsBefore:_i,insertColumnsAfter:To,mergeCells:Zo,unmergeCells:Yi,pasteColsBefore:ri,pasteColsAfter:Ms,pasteRowsBefore:al,pasteRowsAfter:Gs,pasteCells:td,makeCellsHeader:zu,unmakeCellsHeader:e1,makeColumnsHeader:Ay,unmakeColumnsHeader:My,makeRowsHeader:Zs,makeRowsBody:Rh,makeRowsFooter:Lh,getTableRowType:dc,getTableCellType:Hp,getTableColType:Bu}},uy=(pe,Ce,Ye)=>{const st=uc(pe,Ce,1);Ye===1||st<=1?at(pe,Ce):lt(pe,Ce,Math.min(Ye,st))},Y1=(pe,Ce)=>Ye=>{const st=Ye.column+Ye.colspan-1,St=Ye.column;return st>=pe&&St{if(Xi.hasColumns(pe)){const st=W(Xi.justColumns(pe),Y1(Ce,Ye)),St=j(st,un=>{const Tn=dr(un.element);return uy(Tn,"span",Ye-Ce),Tn}),Ut=Pt.fromTag("colgroup");return So(Ut,St),[Ut]}else return[]},X1=(pe,Ce,Ye)=>j(pe.all,st=>{const St=W(st.cells,Y1(Ce,Ye)),Ut=j(St,Tn=>{const $n=dr(Tn.element);return uy($n,"colspan",Ye-Ce),$n}),un=Pt.fromTag("tr");return So(un,Ut),un}),G1=(pe,Ce)=>{const Ye=Xi.fromTable(pe);return nh(Ye,Ce).map(St=>{const Ut=St[St.length-1],un=St[0].column,Tn=Ut.column+Ut.colspan,$n=H0(Ye,un,Tn),ur=X1(Ye,un,Tn);return[...$n,...ur]})},K1=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe);return Vp(st,Ce).bind(Ut=>{const un=z1(st,Ye,!1),$n=Kl(un).rows.slice(Ut[0].row,Ut[Ut.length-1].row+Ut[Ut.length-1].rowspan),ur=he($n,Ro=>{const ai=W(Ro.cells,Ko=>!Ko.isLocked);return ai.length>0?[{...Ro,cells:ai}]:[]}),Nr=oy(ur);return Nf(Nr.length>0,Nr)}).map(Ut=>Em(Ut))},Zp=Rm.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),fy=(pe,Ce,Ye)=>{const st=Ye.substring(0,Ye.length-pe.length),St=parseFloat(st);return st===St.toString()?Ce(St):Zp.invalid(Ye)},Bm={...Zp,from:pe=>Cu(pe,"%")?fy("%",Zp.percent,pe):Cu(pe,"px")?fy("px",Zp.pixels,pe):Zp.invalid(pe)},Sb=(pe,Ce)=>j(pe,Ye=>Bm.from(Ye).fold(()=>Ye,St=>St/Ce*100+"%",St=>St+"%")),Wu=(pe,Ce,Ye)=>{const st=Ye/Ce;return j(pe,St=>Bm.from(St).fold(()=>St,un=>un*st+"px",un=>un/100*Ye+"px"))},Yx=(pe,Ce)=>{const Ye=pe.fold(()=>v(""),st=>{const St=st/Ce;return v(St+"px")},()=>{const st=100/Ce;return v(st+"%")});return Q(Ce,Ye)},J1=(pe,Ce,Ye)=>pe.fold(()=>Ce,st=>Wu(Ce,Ye,st),st=>Sb(Ce,Ye)),xd=(pe,Ce,Ye)=>{const st=Bm.from(Ye),St=se(pe,Ut=>Ut==="0px")?Yx(st,pe.length):J1(st,pe,Ce);return _d(St)},a0=(pe,Ce)=>pe.length===0?Ce:K(pe,(Ye,st)=>Bm.from(st).fold(v(0),_,_)+Ye,0),dy=(pe,Ce)=>{const Ye=Math.floor(pe);return{value:Ye+Ce,remainder:pe-Ye}},hp=(pe,Ce)=>Bm.from(pe).fold(v(pe),Ye=>Ye+Ce+"px",Ye=>Ye+Ce+"%"),_d=pe=>{if(pe.length===0)return pe;const Ce=K(pe,(st,St)=>{const Ut=Bm.from(St).fold(()=>({value:St,remainder:0}),un=>dy(un,"px"),un=>({value:un+"%",remainder:0}));return{output:[Ut.value].concat(st.output),remainder:st.remainder+Ut.remainder}},{output:[],remainder:0}),Ye=Ce.output;return Ye.slice(0,Ye.length-1).concat([hp(Ye[Ye.length-1],Math.round(Ce.remainder))])},xg=Bm.from,kb=(pe,Ce,Ye)=>{U(Ce,st=>{const St=pe.slice(st.column,st.colspan+st.column),Ut=a0(St,Mp());ks(st.element,"width",Ut+Ye)})},Tb=(pe,Ce,Ye)=>{U(Ce,(st,St)=>{const Ut=a0([pe[St]],Mp());ks(st.element,"width",Ut+Ye)})},Xx=(pe,Ce,Ye)=>{U(Ye,st=>{Es(st.element,"height")}),U(Ce,(st,St)=>{ks(st.element,"height",pe[St])})},Z0=pe=>xg(pe).fold(v("px"),v("px"),v("%")),Cb=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe),St=st.all,Ut=Xi.justCells(st),un=Xi.justColumns(st);Ce.each(Tn=>{const $n=Z0(Tn),ur=js(pe),Nr=Ui(st,pe),Ro=xd(Nr,ur,Tn);Xi.hasColumns(st)?Tb(Ro,un,$n):kb(Ro,Ut,$n),ks(pe,"width",Tn)}),Ye.each(Tn=>{const $n=Qf(pe),ur=bs(st,pe),Nr=xd(ur,$n,Tn);Xx(Nr,St,Ut),ks(pe,"height",Tn)})},tw=Zr,hy=Mo,eu=$o,Eh=pe=>{at(pe,"width"),at(pe,"height")},ev=pe=>{const Ce=Pr(pe);Cb(pe,C.some(Ce),C.none()),Eh(pe)},_g=pe=>{const Ce=rr(pe);Cb(pe,C.some(Ce),C.none()),Eh(pe)},Ab=pe=>{const Ce=Dr(pe);Cb(pe,C.none(),C.some(Ce)),Eh(pe)},nw=pe=>{Es(pe,"width");const Ce=tf(pe),Ye=Ce.length>0?Ce:xf(pe);U(Ye,st=>{Es(st,"width"),Eh(st)}),Eh(pe)},Mb={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},wg=()=>Pt.fromTag("th"),tv=()=>Pt.fromTag("td"),py=()=>Pt.fromTag("col"),Gx=(pe,Ce,Ye,st)=>{const St=Pt.fromTag("tr");for(let Ut=0;Ut{const Ce=Pt.fromTag("colgroup");return Q(pe,()=>$r(Ce,py())),Ce},nv=(pe,Ce,Ye,st)=>Q(pe,St=>Gx(Ce,Ye,st,St)),e3=(pe,Ce,Ye,st,St,Ut=Mb)=>{const un=Pt.fromTag("table"),Tn=St!=="cells";$f(un,Ut.styles),yt(un,Ut.attributes),Ut.colGroups&&$r(un,Eb(Ce));const $n=Math.min(pe,Ye);if(Tn&&Ye>0){const Ko=Pt.fromTag("thead");$r(un,Ko);const _i=nv(Ye,Ce,St==="sectionCells"?$n:0,st);So(Ko,_i)}const ur=Pt.fromTag("tbody");$r(un,ur);const Nr=Tn?pe-$n:pe,ai=nv(Nr,Ce,Tn?0:Ye,st);return So(ur,ai),un},my=pe=>pe.dom.innerHTML,wd=pe=>{const Ce=Pt.fromTag("div"),Ye=Pt.fromDom(pe.dom.cloneNode(!0));return $r(Ce,Ye),my(Ce)},Kx=(pe,Ce)=>{pe.selection.select(Ce.dom,!0),pe.selection.collapse(!0)},Jx=(pe,Ce)=>{Ku(Ce,"td,th").each(A(Kx,pe))},e2=(pe,Ce)=>{U(ra(Ce,"tr"),Ye=>{Jf(pe,Ye.dom),U(ra(Ye,"th,td"),st=>{bg(pe,st.dom)})})},Pb=pe=>l(pe)&&pe.indexOf("%")!==-1,Wh=(pe,Ce,Ye,st,St)=>{const Ut=L0(pe),un={styles:Ut,attributes:Xf(pe),colGroups:Px(pe)};return pe.undoManager.ignore(()=>{const Tn=e3(Ye,Ce,St,st,A_(pe),un);lt(Tn,"data-mce-id","__mce");const $n=wd(Tn);pe.insertContent($n),pe.addVisual()}),Ku(T1(pe),'table[data-mce-id="__mce"]').map(Tn=>(Gg(pe)?_g(Tn):lp(pe)?nw(Tn):(Xg(pe)||Pb(Ut.width))&&ev(Tn),zd(Tn),at(Tn,"data-mce-id"),e2(pe,Tn),Jx(pe,Tn),Tn.dom)).getOrNull()},t2=(pe,Ce,Ye,st={})=>{const St=Ut=>a(Ut)&&Ut>0;if(St(Ce)&&St(Ye)){const Ut=st.headerRows||0,un=st.headerColumns||0;return Wh(pe,Ye,Ce,un,Ut)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var Rb=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const zm="x-tinymce/dom-table-",rw=zm+"rows",n2=zm+"columns",Fm=pe=>{const Ce=Rb.FakeClipboardItem(pe);Rb.write([Ce])},q0=pe=>{var Ce;const Ye=(Ce=Rb.read())!==null&&Ce!==void 0?Ce:[];return Se(Ye,st=>C.from(st.getType(pe)))},rv=pe=>{q0(pe).isSome()&&Rb.clear()},ov=pe=>{pe.fold(t3,Ce=>Fm({[rw]:Ce}))},iv=()=>q0(rw),t3=()=>rv(rw),ow=pe=>{pe.fold(aw,Ce=>Fm({[n2]:Ce}))},iw=()=>q0(n2),aw=()=>rv(n2),gy=pe=>jO(fp(pe),Tm(pe)).filter(Cm),W0=pe=>z_(fp(pe),Tm(pe)).filter(Cm),Og=(pe,Ce)=>{const Ye=Tm(pe),st=()=>gy(pe).each(To=>{Au(To,Ye).filter(x(Ye)).each(Zo=>{const Yi=Pt.fromText("");if(Fr(Zo,Yi),li(Zo),pe.dom.isEmpty(pe.getBody()))pe.setContent(""),pe.selection.setCursorLocation();else{const ri=pe.dom.createRng();ri.setStart(Yi.dom,0),ri.setEnd(Yi.dom,0),pe.selection.setRng(ri),pe.nodeChanged()}})}),St=To=>gy(pe).each(Zo=>{lp(pe)||Gg(pe)||Xg(pe)||Au(Zo,Ye).each(ri=>{To==="relative"&&!tw(ri)?ev(ri):To==="fixed"&&!hy(ri)?_g(ri):To==="responsive"&&!eu(ri)&&nw(ri),zd(ri),Dm(pe,ri.dom,_s)})}),Ut=To=>Au(To,Ye),un=To=>W0(pe).bind(Zo=>Ut(Zo).map(Yi=>To(Yi,Zo))),Tn=(To,Zo)=>{un(Yi=>{pe.formatter.toggle("tableclass",{value:Zo},Yi.dom),Dm(pe,Yi.dom,Hc)})},$n=(To,Zo)=>{un(Yi=>{const ri=Sl(pe),al=se(ri,Gs=>pe.formatter.match("tablecellclass",{value:Zo},Gs.dom))?pe.formatter.remove:pe.formatter.apply;U(ri,Gs=>al("tablecellclass",{value:Zo},Gs.dom)),Dm(pe,Yi.dom,Hc)})},ur=()=>{gy(pe).each(To=>{Au(To,Ye).each(Zo=>{ga(Zo,"caption").fold(()=>{const Yi=Pt.fromTag("caption");$r(Yi,Pt.fromText("Caption")),Kr(Zo,Yi,0),pe.selection.setCursorLocation(Yi.dom,0)},Yi=>{vt("caption")(To)&&dn("td",Zo).each(ri=>pe.selection.setCursorLocation(ri.dom,0)),li(Yi)}),Dm(pe,Zo.dom,_s)})})},Nr=To=>{pe.focus()},Ro=(To,Zo=!1)=>un((Yi,ri)=>{const Ms=Dx(Sl(pe),Yi,ri);To(Yi,Ms,Zo).each(Nr)}),ai=()=>un((To,Zo)=>{const Yi=Dx(Sl(pe),To,Zo),ri=Tf(u,Pt.fromDom(pe.getDoc()),C.none());return K1(To,Yi,ri)}),Ko=()=>un((To,Zo)=>{const Yi=Dx(Sl(pe),To,Zo);return G1(To,Yi)}),Qo=(To,Zo)=>Zo().each(Yi=>{const ri=j(Yi,Ms=>dr(Ms));un((Ms,al)=>{const Gs=Hv(Pt.fromDom(pe.getDoc())),td=t0(Sl(pe),al,ri,Gs);To(Ms,td).each(Nr)})}),_i=To=>(Zo,Yi)=>Le(Yi,"type").each(ri=>{Ro(To(ri),Yi.no_events)});Ie({mceTableSplitCells:()=>Ro(Ce.unmergeCells),mceTableMergeCells:()=>Ro(Ce.mergeCells),mceTableInsertRowBefore:()=>Ro(Ce.insertRowsBefore),mceTableInsertRowAfter:()=>Ro(Ce.insertRowsAfter),mceTableInsertColBefore:()=>Ro(Ce.insertColumnsBefore),mceTableInsertColAfter:()=>Ro(Ce.insertColumnsAfter),mceTableDeleteCol:()=>Ro(Ce.deleteColumn),mceTableDeleteRow:()=>Ro(Ce.deleteRow),mceTableCutCol:()=>Ko().each(To=>{ow(To),Ro(Ce.deleteColumn)}),mceTableCutRow:()=>ai().each(To=>{ov(To),Ro(Ce.deleteRow)}),mceTableCopyCol:()=>Ko().each(To=>ow(To)),mceTableCopyRow:()=>ai().each(To=>ov(To)),mceTablePasteColBefore:()=>Qo(Ce.pasteColsBefore,iw),mceTablePasteColAfter:()=>Qo(Ce.pasteColsAfter,iw),mceTablePasteRowBefore:()=>Qo(Ce.pasteRowsBefore,iv),mceTablePasteRowAfter:()=>Qo(Ce.pasteRowsAfter,iv),mceTableDelete:st,mceTableCellToggleClass:$n,mceTableToggleClass:Tn,mceTableToggleCaption:ur,mceTableSizingMode:(To,Zo)=>St(Zo),mceTableCellType:_i(To=>To==="th"?Ce.makeCellsHeader:Ce.unmakeCellsHeader),mceTableColType:_i(To=>To==="th"?Ce.makeColumnsHeader:Ce.unmakeColumnsHeader),mceTableRowType:_i(To=>{switch(To){case"header":return Ce.makeRowsHeader;case"footer":return Ce.makeRowsFooter;default:return Ce.makeRowsBody}})},(To,Zo)=>pe.addCommand(Zo,To)),pe.addCommand("mceInsertTable",(To,Zo)=>{t2(pe,Zo.rows,Zo.columns,Zo.options)}),pe.addCommand("mceTableApplyCellStyle",(To,Zo)=>{const Yi=al=>"tablecell"+al.toLowerCase().replace("-","");if(!n(Zo))return;const ri=W(Sl(pe),Cm);if(ri.length===0)return;const Ms=$e(Zo,(al,Gs)=>pe.formatter.has(Yi(Gs))&&l(al));Ze(Ms)||(Ie(Ms,(al,Gs)=>{const td=Yi(Gs);U(ri,zu=>{al===""?pe.formatter.remove(td,{value:null},zu.dom,!0):pe.formatter.apply(td,{value:al},zu.dom)})}),Ut(ri[0]).each(al=>Dm(pe,al.dom,Hc)))})},n3=(pe,Ce)=>{const Ye=Tm(pe),st=St=>z_(fp(pe)).bind(Ut=>Au(Ut,Ye).map(un=>{const Tn=Dx(Sl(pe),un,Ut);return St(un,Tn)})).getOr("");Ie({mceTableRowType:()=>st(Ce.getTableRowType),mceTableCellType:()=>st(Ce.getTableCellType),mceTableColType:()=>st(Ce.getTableColType)},(St,Ut)=>pe.addQueryValueHandler(Ut,St))},vy=Rm.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),sw=(pe,Ce,Ye,st)=>pe.fold(Ce,Ye,st),pp=pe=>pe.fold(_,_,_),r2=vy.before,yy=vy.on,Lb=vy.after,Od={before:r2,on:yy,after:Lb,cata:sw,getStart:pp},s0={create:(pe,Ce)=>({selection:pe,kill:Ce})},Ib=(pe,Ce)=>{const Ye=pe.document.createRange();return Ye.selectNode(Ce.dom),Ye},l0=(pe,Ce)=>{const Ye=pe.document.createRange();return Y0(Ye,Ce),Ye},Y0=(pe,Ce)=>pe.selectNodeContents(Ce.dom),AS=(pe,Ce)=>{Ce.fold(Ye=>{pe.setStartBefore(Ye.dom)},(Ye,st)=>{pe.setStart(Ye.dom,st)},Ye=>{pe.setStartAfter(Ye.dom)})},r3=(pe,Ce)=>{Ce.fold(Ye=>{pe.setEndBefore(Ye.dom)},(Ye,st)=>{pe.setEnd(Ye.dom,st)},Ye=>{pe.setEndAfter(Ye.dom)})},o3=(pe,Ce,Ye)=>{const st=pe.document.createRange();return AS(st,Ce),r3(st,Ye),st},o2=(pe,Ce,Ye,st,St)=>{const Ut=pe.document.createRange();return Ut.setStart(Ce.dom,Ye),Ut.setEnd(st.dom,St),Ut},i2=pe=>({left:pe.left,top:pe.top,right:pe.right,bottom:pe.bottom,width:pe.width,height:pe.height}),MS=pe=>{const Ce=pe.getClientRects(),Ye=Ce.length>0?Ce[0]:pe.getBoundingClientRect();return Ye.width>0||Ye.height>0?C.some(Ye).map(i2):C.none()},Db=Rm.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),lw=(pe,Ce,Ye)=>Ce(Pt.fromDom(Ye.startContainer),Ye.startOffset,Pt.fromDom(Ye.endContainer),Ye.endOffset),ES=(pe,Ce)=>Ce.match({domRange:Ye=>({ltr:v(Ye),rtl:C.none}),relative:(Ye,st)=>({ltr:Ep(()=>o3(pe,Ye,st)),rtl:Ep(()=>C.some(o3(pe,st,Ye)))}),exact:(Ye,st,St,Ut)=>({ltr:Ep(()=>o2(pe,Ye,st,St,Ut)),rtl:Ep(()=>C.some(o2(pe,St,Ut,Ye,st)))})}),cw=(pe,Ce)=>{const Ye=Ce.ltr();return Ye.collapsed?Ce.rtl().filter(St=>St.collapsed===!1).map(St=>Db.rtl(Pt.fromDom(St.endContainer),St.endOffset,Pt.fromDom(St.startContainer),St.startOffset)).getOrThunk(()=>lw(pe,Db.ltr,Ye)):lw(pe,Db.ltr,Ye)},qp=(pe,Ce)=>{const Ye=ES(pe,Ce);return cw(pe,Ye)},av=(pe,Ce)=>qp(pe,Ce).match({ltr:(st,St,Ut,un)=>{const Tn=pe.document.createRange();return Tn.setStart(st.dom,St),Tn.setEnd(Ut.dom,un),Tn},rtl:(st,St,Ut,un)=>{const Tn=pe.document.createRange();return Tn.setStart(Ut.dom,un),Tn.setEnd(st.dom,St),Tn}});Db.ltr,Db.rtl;const Nm={create:(pe,Ce,Ye,st)=>({start:pe,soffset:Ce,finish:Ye,foffset:st})},PS={create:(pe,Ce,Ye,st)=>({start:Od.on(pe,Ce),finish:Od.on(Ye,st)})},PT=(pe,Ce)=>{const Ye=av(pe,Ce);return Nm.create(Pt.fromDom(Ye.startContainer),Ye.startOffset,Pt.fromDom(Ye.endContainer),Ye.endOffset)},a3=PS.create,FM=(pe,Ce,Ye,st,St,Ut,un)=>vn(Ye,St)&&st===Ut?C.none():qc(Ye,"td,th",Ce).bind(Tn=>qc(St,"td,th",Ce).bind($n=>by(pe,Ce,Tn,$n,un))),by=(pe,Ce,Ye,st,St)=>vn(Ye,st)?C.none():Xv(Ye,st,Ce).bind(Ut=>{const un=Ut.boxes.getOr([]);return un.length>1?(St(pe,un,Ut.start,Ut.finish),C.some(s0.create(C.some(a3(Ye,0,Ye,Rl(Ye))),!0))):C.none()}),ID=(pe,Ce,Ye,st,St)=>{const Ut=un=>(St.clearBeforeUpdate(Ye),St.selectRange(Ye,un.boxes,un.start,un.finish),un.boxes);return E1(st,pe,Ce,St.firstSelectedSelector,St.lastSelectedSelector).map(Ut)},a2=(pe,Ce)=>({item:pe,mode:Ce}),s3=(pe,Ce,Ye,st=s2)=>pe.property().parent(Ce).map(St=>a2(St,st)),s2=(pe,Ce,Ye,st=l2)=>Ye.sibling(pe,Ce).map(St=>a2(St,st)),l2=(pe,Ce,Ye,st=l2)=>{const St=pe.property().children(Ce);return Ye.first(St).map(un=>a2(un,st))},NM=[{current:s3,next:s2,fallback:C.none()},{current:s2,next:l2,fallback:C.some(s3)},{current:l2,next:l2,fallback:C.some(s2)}],RT=(pe,Ce,Ye,st,St=NM)=>Y(St,un=>un.current===Ye).bind(un=>un.current(pe,Ce,st,un.next).orThunk(()=>un.fallback.bind(Tn=>RT(pe,Ce,Tn,st)))),sv={left:()=>({sibling:(Ye,st)=>Ye.query().prevSibling(st),first:Ye=>Ye.length>0?C.some(Ye[Ye.length-1]):C.none()}),right:()=>({sibling:(Ye,st)=>Ye.query().nextSibling(st),first:Ye=>Ye.length>0?C.some(Ye[0]):C.none()})},RS=(pe,Ce,Ye,st,St,Ut)=>RT(pe,Ce,st,St).bind(Tn=>Ut(Tn.item)?C.none():Ye(Tn.item)?C.some(Tn.item):RS(pe,Tn.item,Ye,Tn.mode,St,Ut)),LS=(pe,Ce,Ye,st)=>RS(pe,Ce,Ye,s2,sv.left(),st),VM=(pe,Ce,Ye,st)=>RS(pe,Ce,Ye,s2,sv.right(),st),IS=pe=>Ce=>pe.property().children(Ce).length===0,LT=(pe,Ce,Ye)=>DT(pe,Ce,IS(pe),Ye),IT=(pe,Ce,Ye)=>c2(pe,Ce,IS(pe),Ye),DT=LS,c2=VM,c3=fg(),Bb=(pe,Ce)=>LT(c3,pe,Ce),lv=(pe,Ce)=>IT(c3,pe,Ce),fw=(pe,Ce,Ye)=>DT(c3,pe,Ce,Ye),u2=(pe,Ce,Ye)=>c2(c3,pe,Ce,Ye),UM=(pe,Ce,Ye)=>Aa(pe,Ce,Ye).isSome(),c0=Rm.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Wp=(pe,Ce,Ye)=>{const st=pe.getRect(Ce),St=pe.getRect(Ye);return St.right>st.left&&St.leftqc(pe,"tr"),zb={...c0,verify:(pe,Ce,Ye,st,St,Ut,un)=>qc(st,"td,th",un).bind(Tn=>qc(Ce,"td,th",un).map($n=>vn(Tn,$n)?vn(st,Tn)&&Rl(Tn)===St?Ut($n):c0.none("in same cell"):$p(u3,[Tn,$n]).fold(()=>Wp(pe,$n,Tn)?c0.success():Ut($n),ur=>Ut($n)))).getOr(c0.none("default")),cata:(pe,Ce,Ye,st,St)=>pe.fold(Ce,Ye,st,St)},f2=(pe,Ce,Ye,st)=>({parent:pe,children:Ce,element:Ye,index:st}),d2=pe=>Sr(pe).bind(Ce=>{const Ye=Kn(Ce);return $d(Ye,pe).map(st=>f2(Ce,Ye,pe,st))}),$d=(pe,Ce)=>ee(pe,A(vn,Ce)),f3=vt("br"),Fb=(pe,Ce,Ye)=>Ce(pe,Ye).bind(st=>gn(st)&&qf(st).trim().length===0?Fb(st,Ce,Ye):C.some(st)),d3=(pe,Ce,Ye)=>Ye.traverse(Ce).orThunk(()=>Fb(Ce,Ye.gather,pe)).map(Ye.relative),BT=(pe,Ce)=>_r(pe,Ce).filter(f3).orThunk(()=>_r(pe,Ce-1).filter(f3)),DS=(pe,Ce,Ye,st)=>BT(Ce,Ye).bind(St=>st.traverse(St).fold(()=>Fb(St,st.gather,pe).map(st.relative),Ut=>d2(Ut).map(un=>Od.on(un.parent,un.index)))),h3=(pe,Ce,Ye,st)=>(f3(Ce)?d3(pe,Ce,st):DS(pe,Ce,Ye,st)).map(Ut=>({start:Ut,finish:Ut})),Mf=pe=>zb.cata(pe,Ce=>C.none(),()=>C.none(),Ce=>C.some(th(Ce,0)),Ce=>C.some(th(Ce,Rl(Ce)))),p3=(pe,Ce)=>({left:pe.left,top:pe.top+Ce,right:pe.right,bottom:pe.bottom+Ce}),kg=(pe,Ce)=>({left:pe.left,top:pe.top-Ce,right:pe.right,bottom:pe.bottom-Ce}),BS=(pe,Ce,Ye)=>({left:pe.left+Ce,top:pe.top+Ye,right:pe.right+Ce,bottom:pe.bottom+Ye}),zS=pe=>pe.top,cv=pe=>pe.bottom,zT=(pe,Ce,Ye)=>Ye>=0&&Ye0?pe.getRangedRect(Ce,Ye-1,Ce,Ye):C.none(),xy=pe=>({left:pe.left,top:pe.top,right:pe.right,bottom:pe.bottom}),m3=(pe,Ce)=>C.some(pe.getRect(Ce)),g3=(pe,Ce,Ye)=>nn(Ce)?m3(pe,Ce).map(xy):gn(Ce)?zT(pe,Ce,Ye).map(xy):C.none(),FS=(pe,Ce)=>nn(Ce)?m3(pe,Ce).map(xy):gn(Ce)?pe.getRangedRect(Ce,0,Ce,Rl(Ce)).map(xy):C.none(),Nb=5,h2=100,Sd=Rm.generate([{none:[]},{retry:["caret"]}]),FT=(pe,Ce)=>pe.leftCe.right,NS=(pe,Ce,Ye)=>Xl(Ce,qr).fold(T,st=>FS(pe,st).exists(St=>FT(Ye,St))),$S=(pe,Ce,Ye,st,St)=>{const Ut=p3(St,Nb);return Math.abs(Ye.bottom-st.bottom)<1||Ye.top>St.bottom?Sd.retry(Ut):Ye.top===St.bottom?Sd.retry(p3(St,1)):NS(pe,Ce,St)?Sd.retry(BS(Ut,Nb,0)):Sd.none()},VS={point:zS,adjuster:(pe,Ce,Ye,st,St)=>{const Ut=kg(St,Nb);return Math.abs(Ye.top-st.top)<1||Ye.bottompe.elementFromPoint(Ce,Ye).filter(st=>qt(st)==="table").isSome(),Yp=(pe,Ce,Ye,st,St)=>uv(pe,Ce,Ye,Ce.move(st,Nb),St),uv=(pe,Ce,Ye,st,St)=>St===0?C.some(st):VT(pe,st.left,Ce.point(st))?Yp(pe,Ce,Ye,st,St-1):pe.situsFromPoint(st.left,Ce.point(st)).bind(Ut=>Ut.start.fold(C.none,un=>FS(pe,un).bind(Tn=>Ce.adjuster(pe,un,Tn,Ye,st).fold(C.none,$n=>uv(pe,Ce,Ye,$n,St-1))).orThunk(()=>C.some(st)),C.none)),UT=(pe,Ce,Ye)=>pe.point(Ce)>Ye.getInnerHeight()?C.some(pe.point(Ce)-Ye.getInnerHeight()):pe.point(Ce)<0?C.some(-pe.point(Ce)):C.none(),$b=(pe,Ce,Ye)=>{const st=pe.move(Ye,Nb),St=uv(Ce,pe,Ye,st,h2).getOr(st);return UT(pe,St,Ce).fold(()=>Ce.situsFromPoint(St.left,pe.point(St)),Ut=>(Ce.scrollBy(0,Ut),Ce.situsFromPoint(St.left,pe.point(St)-Ut)))},sh={tryUp:A($b,VS),tryDown:A($b,$T),getJumpSize:v(Nb)},mp=20,lh=(pe,Ce,Ye)=>pe.getSelection().bind(st=>h3(Ce,st.finish,st.foffset,Ye).fold(()=>C.some(th(st.finish,st.foffset)),St=>{const Ut=pe.fromSitus(St),un=zb.verify(pe,st.finish,st.foffset,Ut.finish,Ut.foffset,Ye.failure,Ce);return Mf(un)})),Xp=(pe,Ce,Ye,st,St,Ut)=>Ut===0?C.none():Vb(pe,Ce,Ye,st,St).bind(un=>{const Tn=pe.fromSitus(un),$n=zb.verify(pe,Ye,st,Tn.finish,Tn.foffset,St.failure,Ce);return zb.cata($n,()=>C.none(),()=>C.some(un),ur=>vn(Ye,ur)&&st===0?v3(pe,Ye,st,kg,St):Xp(pe,Ce,ur,0,St,Ut-1),ur=>vn(Ye,ur)&&st===Rl(ur)?v3(pe,Ye,st,p3,St):Xp(pe,Ce,ur,Rl(ur),St,Ut-1))}),v3=(pe,Ce,Ye,st,St)=>g3(pe,Ce,Ye).bind(Ut=>Gp(pe,St,st(Ut,sh.getJumpSize()))),Gp=(pe,Ce,Ye)=>{const st=np().browser;return st.isChromium()||st.isSafari()||st.isFirefox()?Ce.retry(pe,Ye):C.none()},Vb=(pe,Ce,Ye,st,St)=>g3(pe,Ye,st).bind(Ut=>Gp(pe,St,Ut)),QM=(pe,Ce,Ye)=>lh(pe,Ce,Ye).bind(st=>Xp(pe,Ce,st.element,st.offset,Ye,mp).map(pe.fromSitus)),jT=(pe,Ce)=>UM(pe,Ye=>Sr(Ye).exists(st=>vn(st,Ce))),HM=(pe,Ce,Ye,st,St)=>qc(st,"td,th",Ce).bind(Ut=>qc(Ut,"table",Ce).bind(un=>jT(St,un)?QM(pe,Ce,Ye).bind(Tn=>qc(Tn.finish,"td,th",Ce).map($n=>({start:Ut,finish:$n,range:Tn}))):C.none())),QT=(pe,Ce,Ye,st,St,Ut)=>Ut(st,Ce).orThunk(()=>HM(pe,Ce,Ye,st,St).map(un=>{const Tn=un.range;return s0.create(C.some(a3(Tn.start,Tn.soffset,Tn.finish,Tn.foffset)),!0)})),HT=(pe,Ce)=>qc(pe,"tr",Ce).bind(Ye=>qc(Ye,"table",Ce).bind(st=>{const St=ra(st,"tr");return vn(Ye,St[0])?fw(st,Ut=>Ax(Ut).isSome(),Ce).map(Ut=>{const un=Rl(Ut);return s0.create(C.some(a3(Ut,un,Ut,un)),!0)}):C.none()})),US=(pe,Ce)=>qc(pe,"tr",Ce).bind(Ye=>qc(Ye,"table",Ce).bind(st=>{const St=ra(st,"tr");return vn(Ye,St[St.length-1])?u2(st,Ut=>eh(Ut).isSome(),Ce).map(Ut=>s0.create(C.some(a3(Ut,0,Ut,0)),!0)):C.none()})),jS=(pe,Ce,Ye,st,St,Ut,un)=>HM(pe,Ye,st,St,Ut).bind(Tn=>by(Ce,Ye,Tn.start,Tn.finish,un)),ed=pe=>{let Ce=pe;return{get:()=>Ce,set:St=>{Ce=St}}},QS=pe=>{const Ce=ed(C.none()),Ye=()=>Ce.get().each(pe);return{clear:()=>{Ye(),Ce.set(C.none())},isSet:()=>Ce.get().isSome(),get:()=>Ce.get(),set:Tn=>{Ye(),Ce.set(C.some(Tn))}}},_y=()=>{const pe=QS(u);return{...pe,on:Ye=>pe.get().each(Ye)}},p2=(pe,Ce)=>qc(pe,"td,th",Ce),HS=pe=>ar(pe).exists(Kg),y3=(pe,Ce,Ye,st)=>{const St=_y(),Ut=St.clear,un=Nr=>{St.on(Ro=>{st.clearBeforeUpdate(Ce),p2(Nr.target,Ye).each(ai=>{Xv(Ro,ai,Ye).each(Ko=>{const Qo=Ko.boxes.getOr([]);if(Qo.length===1){const _i=Qo[0],To=M_(_i)==="false",Zo=Yd(zp(Nr.target),_i,vn);To&&Zo&&(st.selectRange(Ce,Qo,_i,_i),pe.selectContents(_i))}else Qo.length>1&&(st.selectRange(Ce,Qo,Ko.start,Ko.finish),pe.selectContents(ai))})})})};return{clearstate:Ut,mousedown:Nr=>{st.clear(Ce),p2(Nr.target,Ye).filter(HS).each(St.set)},mouseover:Nr=>{un(Nr)},mouseup:Nr=>{un(Nr),Ut()}}},dw={traverse:Wn,gather:lv,relative:Od.before,retry:sh.tryDown,failure:zb.failedDown},ZS={traverse:ir,gather:Bb,relative:Od.before,retry:sh.tryUp,failure:zb.failedUp},m2=pe=>Ce=>Ce===pe,qS=m2(38),X0=m2(40),Ub=pe=>pe>=37&&pe<=40,ZT={isBackward:m2(37),isForward:m2(39)},fv={isBackward:m2(39),isForward:m2(37)},Kp=pe=>{const Ce=pe!==void 0?pe.dom:document,Ye=Ce.body.scrollLeft||Ce.documentElement.scrollLeft,st=Ce.body.scrollTop||Ce.documentElement.scrollTop;return Gc(Ye,st)},qT=(pe,Ce,Ye)=>{const St=(Ye!==void 0?Ye.dom:document).defaultView;St&&St.scrollBy(pe,Ce)},G0=Rm.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),jb=pe=>G0.exact(pe.start,pe.soffset,pe.finish,pe.foffset),WS=pe=>pe.match({domRange:Ce=>Pt.fromDom(Ce.startContainer),relative:(Ce,Ye)=>Od.getStart(Ce),exact:(Ce,Ye,st,St)=>Ce}),b3=G0.domRange,WT=G0.relative,ZM=G0.exact,qM=pe=>{const Ce=WS(pe);return xr(Ce)},YT=Nm.create,wy={domRange:b3,relative:WT,exact:ZM,exactFromRange:jb,getWin:qM,range:YT},g2=(pe,Ce,Ye)=>{var st,St;return C.from((St=(st=pe.dom).caretPositionFromPoint)===null||St===void 0?void 0:St.call(st,Ce,Ye)).bind(Ut=>{if(Ut.offsetNode===null)return C.none();const un=pe.dom.createRange();return un.setStart(Ut.offsetNode,Ut.offset),un.collapse(),C.some(un)})},hw=(pe,Ce,Ye)=>{var st,St;return C.from((St=(st=pe.dom).caretRangeFromPoint)===null||St===void 0?void 0:St.call(st,Ce,Ye))},WM=(()=>document.caretPositionFromPoint?g2:document.caretRangeFromPoint?hw:C.none)(),YM=(pe,Ce,Ye)=>{const st=Pt.fromDom(pe.document);return WM(st,Ce,Ye).map(St=>Nm.create(Pt.fromDom(St.startContainer),St.startOffset,Pt.fromDom(St.endContainer),St.endOffset))},v2=(pe,Ce)=>{const Ye=qt(pe);return Ye==="input"?Od.after(pe):z(["br","img"],Ye)?Ce===0?Od.before(pe):Od.after(pe):Od.on(pe,Ce)},YS=(pe,Ce)=>{const Ye=pe.fold(Od.before,v2,Od.after),st=Ce.fold(Od.before,v2,Od.after);return wy.relative(Ye,st)},x3=(pe,Ce,Ye,st)=>{const St=v2(pe,Ce),Ut=v2(Ye,st);return wy.relative(St,Ut)},XS=(pe,Ce,Ye,st)=>{const Ut=En(pe).dom.createRange();return Ut.setStart(pe.dom,Ce),Ut.setEnd(Ye.dom,st),Ut},GS=(pe,Ce,Ye,st)=>{const St=XS(pe,Ce,Ye,st),Ut=vn(pe,Ye)&&Ce===st;return St.collapsed&&!Ut},y2=pe=>C.from(pe.getSelection()),KS=(pe,Ce)=>{y2(pe).each(Ye=>{Ye.removeAllRanges(),Ye.addRange(Ce)})},b2=(pe,Ce,Ye,st,St)=>{const Ut=o2(pe,Ce,Ye,st,St);KS(pe,Ut)},JS=(pe,Ce,Ye,st,St,Ut)=>{Ce.collapse(Ye.dom,st),Ce.extend(St.dom,Ut)},ps=(pe,Ce)=>qp(pe,Ce).match({ltr:(Ye,st,St,Ut)=>{b2(pe,Ye,st,St,Ut)},rtl:(Ye,st,St,Ut)=>{y2(pe).each(un=>{if(un.setBaseAndExtent)un.setBaseAndExtent(Ye.dom,st,St.dom,Ut);else if(un.extend)try{JS(pe,un,Ye,st,St,Ut)}catch{b2(pe,St,Ut,Ye,st)}else b2(pe,St,Ut,Ye,st)})}}),K0=(pe,Ce,Ye,st,St)=>{const Ut=x3(Ce,Ye,st,St);ps(pe,Ut)},Qb=(pe,Ce,Ye)=>{const st=YS(Ce,Ye);ps(pe,st)},pw=pe=>{if(pe.rangeCount>0){const Ce=pe.getRangeAt(0),Ye=pe.getRangeAt(pe.rangeCount-1);return C.some(Nm.create(Pt.fromDom(Ce.startContainer),Ce.startOffset,Pt.fromDom(Ye.endContainer),Ye.endOffset))}else return C.none()},e5=pe=>{if(pe.anchorNode===null||pe.focusNode===null)return pw(pe);{const Ce=Pt.fromDom(pe.anchorNode),Ye=Pt.fromDom(pe.focusNode);return GS(Ce,pe.anchorOffset,Ye,pe.focusOffset)?C.some(Nm.create(Ce,pe.anchorOffset,Ye,pe.focusOffset)):pw(pe)}},dv=(pe,Ce,Ye=!0)=>{const St=(Ye?l0:Ib)(pe,Ce);KS(pe,St)},t5=pe=>y2(pe).filter(Ce=>Ce.rangeCount>0).bind(e5),_3=pe=>t5(pe).map(Ce=>wy.exact(Ce.start,Ce.soffset,Ce.finish,Ce.foffset)),n5=(pe,Ce)=>{const Ye=av(pe,Ce);return MS(Ye)},r5=(pe,Ce,Ye)=>YM(pe,Ce,Ye),Hb=pe=>{y2(pe).each(Ce=>Ce.removeAllRanges())},w3=pe=>({elementFromPoint:(To,Zo)=>Pt.fromPoint(Pt.fromDom(pe.document),To,Zo),getRect:To=>To.dom.getBoundingClientRect(),getRangedRect:(To,Zo,Yi,ri)=>{const Ms=wy.exact(To,Zo,Yi,ri);return n5(pe,Ms)},getSelection:()=>_3(pe).map(To=>PT(pe,To)),fromSitus:To=>{const Zo=wy.relative(To.start,To.finish);return PT(pe,Zo)},situsFromPoint:(To,Zo)=>r5(pe,To,Zo).map(Yi=>PS.create(Yi.start,Yi.soffset,Yi.finish,Yi.foffset)),clearSelection:()=>{Hb(pe)},collapseSelection:(To=!1)=>{_3(pe).each(Zo=>Zo.fold(Yi=>Yi.collapse(To),(Yi,ri)=>{const Ms=To?Yi:ri;Qb(pe,Ms,Ms)},(Yi,ri,Ms,al)=>{const Gs=To?Yi:Ms,td=To?ri:al;K0(pe,Gs,td,Gs,td)}))},setSelection:To=>{K0(pe,To.start,To.soffset,To.finish,To.foffset)},setRelativeSelection:(To,Zo)=>{Qb(pe,To,Zo)},selectNode:To=>{dv(pe,To,!1)},selectContents:To=>{dv(pe,To)},getInnerHeight:()=>pe.innerHeight,getScrollY:()=>Kp(Pt.fromDom(pe.document)).top,scrollBy:(To,Zo)=>{qT(To,Zo,Pt.fromDom(pe.document))}}),Zb=(pe,Ce)=>({rows:pe,cols:Ce}),O3=(pe,Ce,Ye,st)=>{const St=w3(pe),Ut=y3(St,Ce,Ye,st);return{clearstate:Ut.clearstate,mousedown:Ut.mousedown,mouseover:Ut.mouseover,mouseup:Ut.mouseup}},XT=pe=>Xl(pe,_t).exists(Kg),x2=(pe,Ce)=>XT(pe)||XT(Ce),S3=(pe,Ce,Ye,st)=>{const St=w3(pe),Ut=()=>(st.clear(Ce),C.none());return{keydown:($n,ur,Nr,Ro,ai,Ko)=>{const Qo=$n.raw,_i=Qo.which,To=Qo.shiftKey===!0;return pb(Ce,st.selectedSelector).fold(()=>(Ub(_i)&&!To&&st.clearBeforeUpdate(Ce),Ub(_i)&&To&&!x2(ur,Ro)?C.none:X0(_i)&&To?A(jS,St,Ce,Ye,dw,Ro,ur,st.selectRange):qS(_i)&&To?A(jS,St,Ce,Ye,ZS,Ro,ur,st.selectRange):X0(_i)?A(QT,St,Ye,dw,Ro,ur,US):qS(_i)?A(QT,St,Ye,ZS,Ro,ur,HT):C.none),Yi=>{const ri=Ms=>()=>Se(Ms,Gs=>ID(Gs.rows,Gs.cols,Ce,Yi,st)).fold(()=>$O(Ce,st.firstSelectedSelector,st.lastSelectedSelector).map(Gs=>{const td=X0(_i)||Ko.isForward(_i)?Od.after:Od.before;return St.setRelativeSelection(Od.on(Gs.first,0),td(Gs.table)),st.clear(Ce),s0.create(C.none(),!0)}),Gs=>C.some(s0.create(C.none(),!0)));return Ub(_i)&&To&&!x2(ur,Ro)?C.none:X0(_i)&&To?ri([Zb(1,0)]):qS(_i)&&To?ri([Zb(-1,0)]):Ko.isBackward(_i)&&To?ri([Zb(0,-1),Zb(-1,0)]):Ko.isForward(_i)&&To?ri([Zb(0,1),Zb(1,0)]):Ub(_i)&&!To?Ut:C.none})()},keyup:($n,ur,Nr,Ro,ai)=>pb(Ce,st.selectedSelector).fold(()=>{const Ko=$n.raw,Qo=Ko.which;return Ko.shiftKey===!0&&Ub(Qo)&&x2(ur,Ro)?FM(Ce,Ye,ur,Nr,Ro,ai,st.selectRange):C.none()},C.none)}},XM=(pe,Ce,Ye,st)=>{const St=w3(pe);return(Ut,un)=>{st.clearBeforeUpdate(Ce),Xv(Ut,un,Ye).each(Tn=>{const $n=Tn.boxes.getOr([]);st.selectRange(Ce,$n,Tn.start,Tn.finish),St.selectContents(un),St.collapseSelection()})}},k3=(pe,Ce)=>{const Ye=Rt(pe,Ce);return Ye===void 0||Ye===""?[]:Ye.split(" ")},hv=(pe,Ce,Ye)=>{const St=k3(pe,Ce).concat([Ye]);return lt(pe,Ce,St.join(" ")),!0},GM=(pe,Ce,Ye)=>{const st=W(k3(pe,Ce),St=>St!==Ye);return st.length>0?lt(pe,Ce,st.join(" ")):at(pe,Ce),!1},mw=pe=>pe.dom.classList!==void 0,$m=pe=>k3(pe,"class"),Ef=(pe,Ce)=>hv(pe,"class",Ce),KM=(pe,Ce)=>GM(pe,"class",Ce),u0=(pe,Ce)=>{mw(pe)?pe.dom.classList.add(Ce):Ef(pe,Ce)},JM=pe=>{(mw(pe)?pe.dom.classList:$m(pe)).length===0&&at(pe,"class")},GT=(pe,Ce)=>{mw(pe)?pe.dom.classList.remove(Ce):KM(pe,Ce),JM(pe)},gw=(pe,Ce)=>mw(pe)&&pe.dom.classList.contains(Ce),_2=(pe,Ce)=>{U(Ce,Ye=>{GT(pe,Ye)})},KT=pe=>Ce=>{u0(Ce,pe)},JT=pe=>Ce=>{_2(Ce,pe)},e6={byClass:pe=>{const Ce=KT(pe.selected),Ye=JT([pe.selected,pe.lastSelected,pe.firstSelected]),st=Ut=>{const un=ra(Ut,pe.selectedSelector);U(un,Ye)};return{clearBeforeUpdate:st,clear:st,selectRange:(Ut,un,Tn,$n)=>{st(Ut),U(un,Ce),u0(Tn,pe.firstSelected),u0($n,pe.lastSelected)},selectedSelector:pe.selectedSelector,firstSelectedSelector:pe.firstSelectedSelector,lastSelectedSelector:pe.lastSelectedSelector}},byAttr:(pe,Ce,Ye)=>{const st=$n=>{at($n,pe.selected),at($n,pe.firstSelected),at($n,pe.lastSelected)},St=$n=>{lt($n,pe.selected,"1")},Ut=$n=>{un($n),Ye()},un=$n=>{const ur=ra($n,`${pe.selectedSelector},${pe.firstSelectedSelector},${pe.lastSelectedSelector}`);U(ur,st)};return{clearBeforeUpdate:un,clear:Ut,selectRange:($n,ur,Nr,Ro)=>{Ut($n),U(ur,St),lt(Nr,pe.firstSelected,"1"),lt(Ro,pe.lastSelected,"1"),Ce(ur,Nr,Ro)},selectedSelector:pe.selectedSelector,firstSelectedSelector:pe.firstSelectedSelector,lastSelectedSelector:pe.lastSelectedSelector}}},t6=(pe,Ce,Ye,st)=>{switch(pe.tag){case"none":return Ce();case"single":return st(pe.element);case"multiple":return Ye(pe.elements)}},hi=()=>({tag:"none"}),Pf=pe=>({tag:"multiple",elements:pe}),vw=pe=>({tag:"single",element:pe}),Rf=(pe,Ce,Ye)=>({get:()=>md(pe(),Ye).fold(()=>Ce().fold(hi,vw),Pf)}),Vm=(pe,Ce)=>{const Ye=pe.slice(0,Ce[Ce.length-1].row+1),st=oy(Ye);return he(st,St=>{const Ut=St.cells.slice(0,Ce[Ce.length-1].column+1);return j(Ut,un=>un.element)})},o5=(pe,Ce)=>{const Ye=pe.slice(Ce[0].row+Ce[0].rowspan-1,pe.length),st=oy(Ye);return he(st,St=>{const Ut=St.cells.slice(Ce[0].column+Ce[0].colspan-1,St.cells.length);return j(Ut,un=>un.element)})},qb=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe);return Vp(st,Ce).map(Ut=>{const un=z1(st,Ye,!1),{rows:Tn}=Kl(un),$n=Vm(Tn,Ut),ur=o5(Tn,Ut);return{upOrLeftCells:$n,downOrRightCells:ur}})},T3=(pe,Ce,Ye,st,St,Ut,un)=>({target:pe,x:Ce,y:Ye,stop:st,prevent:St,kill:Ut,raw:un}),Oy=pe=>{const Ce=Pt.fromDom(fr(pe).getOr(pe.target)),Ye=()=>pe.stopPropagation(),st=()=>pe.preventDefault(),St=h(st,Ye);return T3(Ce,pe.clientX,pe.clientY,Ye,st,St,pe)},yw=(pe,Ce)=>Ye=>{pe(Ye)&&Ce(Oy(Ye))},n6=(pe,Ce,Ye,st,St)=>{const Ut=yw(Ye,st);return pe.dom.addEventListener(Ce,Ut,St),{unbind:A(tE,pe,Ce,Ut,St)}},eE=(pe,Ce,Ye,st)=>n6(pe,Ce,Ye,st,!1),tE=(pe,Ce,Ye,st)=>{pe.dom.removeEventListener(Ce,Ye,st)},nE=E,Sy=(pe,Ce,Ye)=>eE(pe,Ce,nE,Ye),bw=Oy,xw=pe=>!gw(Pt.fromDom(pe.target),"ephox-snooker-resizer-bar"),C3=(pe,Ce)=>{const Ye=Rf(()=>Pt.fromDom(pe.getBody()),()=>z_(fp(pe),Tm(pe)),dg.selectedSelector),st=($n,ur,Nr)=>{Au(ur).each(ai=>{const Ko=j($n,Yi=>Yi.dom),Qo=C_(pe),_i=Tf(u,Pt.fromDom(pe.getDoc()),Qo),To=Sl(pe),Zo=qb(ai,{selection:To},_i).map(Yi=>ze(Yi,ri=>j(ri,Ms=>Ms.dom))).getOrUndefined();q1(pe,Ko,ur.dom,Nr.dom,Zo)})},St=()=>Wx(pe),Ut=e6.byAttr(dg,st,St);return pe.on("init",$n=>{const ur=pe.getWin(),Nr=T1(pe),Ro=Tm(pe),ai=()=>{const Zs=pe.selection,Rh=Pt.fromDom(Zs.getStart()),Lh=Pt.fromDom(Zs.getEnd());$p(Au,[Rh,Lh]).fold(()=>Ut.clear(Nr),u)},Ko=O3(ur,Nr,Ro,Ut),Qo=S3(ur,Nr,Ro,Ut),_i=XM(ur,Nr,Ro,Ut),To=Zs=>Zs.raw.shiftKey===!0;pe.on("TableSelectorChange",Zs=>_i(Zs.start,Zs.finish));const Zo=(Zs,Rh)=>{To(Zs)&&(Rh.kill&&Zs.kill(),Rh.selection.each(Lh=>{const jm=wy.relative(Lh.start,Lh.finish),Qm=av(ur,jm);pe.selection.setRng(Qm)}))},Yi=Zs=>{const Rh=bw(Zs);if(Rh.raw.shiftKey&&Ub(Rh.raw.which)){const Lh=pe.selection.getRng(),jm=Pt.fromDom(Lh.startContainer),Qm=Pt.fromDom(Lh.endContainer);Qo.keyup(Rh,jm,Lh.startOffset,Qm,Lh.endOffset).each(qa=>{Zo(Rh,qa)})}},ri=Zs=>{const Rh=bw(Zs);Ce.hide();const Lh=pe.selection.getRng(),jm=Pt.fromDom(Lh.startContainer),Qm=Pt.fromDom(Lh.endContainer),qa=rp(ZT,fv)(Pt.fromDom(pe.selection.getStart()));Qo.keydown(Rh,jm,Lh.startOffset,Qm,Lh.endOffset,qa).each(tu=>{Zo(Rh,tu)}),Ce.show()},Ms=Zs=>Zs.button===0,al=Zs=>Zs.buttons===void 0?!0:(Zs.buttons&1)!==0,Gs=Zs=>{Ko.clearstate()},td=Zs=>{Ms(Zs)&&xw(Zs)&&Ko.mousedown(bw(Zs))},zu=Zs=>{al(Zs)&&xw(Zs)&&Ko.mouseover(bw(Zs))},e1=Zs=>{Ms(Zs)&&xw(Zs)&&Ko.mouseup(bw(Zs))},My=(()=>{const Zs=ed(Pt.fromDom(Nr)),Rh=ed(0);return{touchEnd:jm=>{const Qm=Pt.fromDom(jm.target);if(vt("td")(Qm)||vt("th")(Qm)){const qa=Zs.get(),tu=Rh.get();vn(qa,Qm)&&jm.timeStamp-tu<300&&(jm.preventDefault(),_i(Qm,Qm))}Zs.set(Qm),Rh.set(jm.timeStamp)}}})();pe.on("dragstart",Gs),pe.on("mousedown",td),pe.on("mouseover",zu),pe.on("mouseup",e1),pe.on("touchend",My.touchEnd),pe.on("keyup",Yi),pe.on("keydown",ri),pe.on("NodeChange",ai)}),pe.on("PreInit",()=>{pe.serializer.addTempAttr(dg.firstSelected),pe.serializer.addTempAttr(dg.lastSelected)}),{getSelectedCells:()=>t6(Ye.get(),v([]),$n=>j($n,ur=>ur.dom),$n=>[$n.dom]),clearSelectedCells:$n=>Ut.clear(Pt.fromDom($n))}},gp=pe=>{let Ce=[];return{bind:Ut=>{if(Ut===void 0)throw new Error("Event bind error: undefined handler");Ce.push(Ut)},unbind:Ut=>{Ce=W(Ce,un=>un!==Ut)},trigger:(...Ut)=>{const un={};U(pe,(Tn,$n)=>{un[Tn]=Ut[$n]}),U(Ce,Tn=>{Tn(un)})}}},J0=pe=>{const Ce=ze(pe,st=>({bind:st.bind,unbind:st.unbind})),Ye=ze(pe,st=>st.trigger);return{registry:Ce,trigger:Ye}},ky=(pe,Ce)=>{let Ye=null;const st=()=>{b(Ye)||(clearTimeout(Ye),Ye=null)};return{cancel:st,throttle:(...Ut)=>{st(),Ye=setTimeout(()=>{Ye=null,pe.apply(null,Ut)},Ce)}}},Ty=pe=>pe.slice(0).sort(),rE=(pe,Ce)=>{throw new Error("All required keys ("+Ty(pe).join(", ")+") were not specified. Specified keys were: "+Ty(Ce).join(", ")+".")},A3=pe=>{throw new Error("Unsupported keys for object: "+Ty(pe).join(", "))},M3=(pe,Ce)=>{if(!c(Ce))throw new Error("The "+pe+" fields must be an array. Was: "+Ce+".");U(Ce,Ye=>{if(!l(Ye))throw new Error("The value "+Ye+" in the "+pe+" fields was not a string.")})},oE=(pe,Ce)=>{throw new Error("All values need to be of type: "+Ce+". Keys ("+Ty(pe).join(", ")+") were not.")},iE=pe=>{const Ce=Ty(pe);Y(Ce,(st,St)=>St{throw new Error("The field: "+st+" occurs more than once in the combined fields: ["+Ce.join(", ")+"].")})},aE=(pe,Ce)=>sE(pe,Ce,{validate:p,label:"function"}),sE=(pe,Ce,Ye)=>{if(Ce.length===0)throw new Error("You must specify at least one required field.");return M3("required",Ce),iE(Ce),st=>{const St=Te(st);se(Ce,Tn=>z(St,Tn))||rE(Ce,St),pe(Ce,St);const un=W(Ce,Tn=>!Ye.validate(st[Tn],Tn));return un.length>0&&oE(un,Ye.label),st}},r6=(pe,Ce)=>{const Ye=W(Ce,st=>!z(pe,st));Ye.length>0&&A3(Ye)},E3=pe=>aE(r6,pe),lE=E3(["compare","extract","mutate","sink"]),P3=E3(["element","start","stop","destroy"]),kd=E3(["forceDrop","drop","move","delayDrop"]),Um=()=>{let pe=C.none();const Ce=()=>{pe=C.none()},Ye=(Ut,un)=>{const Tn=pe.map($n=>Ut.compare($n,un));return pe=C.some(un),Tn},st=(Ut,un)=>{un.extract(Ut).each($n=>{Ye(un,$n).each(Nr=>{St.trigger.move(Nr)})})},St=J0({move:gp(["info"])});return{onEvent:st,reset:Ce,events:St.registry}},Jp=()=>{const pe=J0({move:gp(["info"])});return{onEvent:u,reset:u,events:pe.registry}},R3=()=>{const pe=Jp(),Ce=Um();let Ye=pe;return{on:()=>{Ye.reset(),Ye=Ce},off:()=>{Ye.reset(),Ye=pe},isOn:()=>Ye===Ce,onEvent:(Tn,$n)=>{Ye.onEvent(Tn,$n)},events:Ce.events}},L3=(pe,Ce,Ye)=>{let st=!1;const St=J0({start:gp([]),stop:gp([])}),Ut=R3(),un=()=>{Qo.stop(),Ut.isOn()&&(Ut.off(),St.trigger.stop())},Tn=ky(un,200),$n=To=>{Qo.start(To),Ut.on(),St.trigger.start()},ur=To=>{Tn.cancel(),Ut.onEvent(To,Ce)};Ut.events.move.bind(To=>{Ce.mutate(pe,To.info)});const Nr=()=>{st=!0},Ro=()=>{st=!1},ai=()=>st,Ko=To=>(...Zo)=>{st&&To.apply(null,Zo)},Qo=Ce.sink(kd({forceDrop:un,drop:Ko(un),move:Ko(ur),delayDrop:Ko(Tn.throttle)}),Ye),_i=()=>{Qo.destroy()};return{element:Qo.element,go:$n,on:Nr,off:Ro,isActive:ai,destroy:_i,events:St.registry}},o6=pe=>{const Ce=pe.replace(/\./g,"-");return{resolve:st=>Ce+"-"+st}},i6=o6("ephox-dragster").resolve,a5=pe=>{const Ce={layerClass:i6("blocker"),...pe},Ye=Pt.fromTag("div");return lt(Ye,"role","presentation"),$f(Ye,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),u0(Ye,i6("blocker")),u0(Ye,Ce.layerClass),{element:v(Ye),destroy:()=>{li(Ye)}}};var I3=lE({compare:(pe,Ce)=>Gc(Ce.left-pe.left,Ce.top-pe.top),extract:pe=>C.some(Gc(pe.x,pe.y)),sink:(pe,Ce)=>{const Ye=a5(Ce),st=Sy(Ye.element(),"mousedown",pe.forceDrop),St=Sy(Ye.element(),"mouseup",pe.drop),Ut=Sy(Ye.element(),"mousemove",pe.move),un=Sy(Ye.element(),"mouseout",pe.delayDrop),Tn=()=>{Ye.destroy(),St.unbind(),Ut.unbind(),un.unbind(),st.unbind()},$n=Nr=>{$r(Nr,Ye.element())},ur=()=>{li(Ye.element())};return P3({element:Ye.element,start:$n,stop:ur,destroy:Tn})},mutate:(pe,Ce)=>{pe.mutate(Ce.left,Ce.top)}});const s5=(pe,Ce={})=>{var Ye;const st=(Ye=Ce.mode)!==null&&Ye!==void 0?Ye:I3;return L3(pe,st,Ce)},Ph=o6("ephox-snooker").resolve,l6=()=>{const pe=J0({drag:gp(["xDelta","yDelta"])});return{mutate:(Ye,st)=>{pe.trigger.drag(Ye,st)},events:pe.registry}},l5=()=>{const pe=J0({drag:gp(["xDelta","yDelta","target"])});let Ce=C.none();const Ye=l6();return Ye.events.drag.bind(Ut=>{Ce.each(un=>{pe.trigger.drag(Ut.xDelta,Ut.yDelta,un)})}),{assign:Ut=>{Ce=C.some(Ut)},get:()=>Ce,mutate:Ye.mutate,events:pe.registry}},_w=(pe,Ce,Ye,st,St)=>{const Ut=Pt.fromTag("div");return $f(Ut,{position:"absolute",left:Ce-st/2+"px",top:Ye+"px",height:St+"px",width:st+"px"}),yt(Ut,{"data-column":pe,role:"presentation"}),Ut},ww=(pe,Ce,Ye,st,St)=>{const Ut=Pt.fromTag("div");return $f(Ut,{position:"absolute",left:Ce+"px",top:Ye-St/2+"px",height:St+"px",width:st+"px"}),yt(Ut,{"data-row":pe,role:"presentation"}),Ut},D3=Ph("resizer-bar"),Ow=Ph("resizer-rows"),c6=Ph("resizer-cols"),u6=7,c5=(pe,Ce)=>he(pe.all,(Ye,st)=>Ce(Ye.element)?[st]:[]),u5=(pe,Ce)=>{const Ye=[];return Q(pe.grid.columns,st=>{Xi.getColumnAt(pe,st).map(Ut=>Ut.element).forall(Ce)&&Ye.push(st)}),W(Ye,st=>{const St=Xi.filterItems(pe,Ut=>Ut.column===st);return se(St,Ut=>Ce(Ut.element))})},pv=pe=>{const Ce=ra(pe.parent(),"."+D3);U(Ce,li)},f5=(pe,Ce,Ye)=>{const st=pe.origin();U(Ce,St=>{St.each(Ut=>{const un=Ye(st,Ut);u0(un,D3),$r(pe.parent(),un)})})},f6=(pe,Ce,Ye,st)=>{f5(pe,Ce,(St,Ut)=>{const un=_w(Ut.col,Ut.x-St.left,Ye.top-St.top,u6,st);return u0(un,c6),un})},fE=(pe,Ce,Ye,st)=>{f5(pe,Ce,(St,Ut)=>{const un=ww(Ut.row,Ye.left-St.left,Ut.y-St.top,st,u6);return u0(un,Ow),un})},dE=(pe,Ce,Ye,st,St)=>{const Ut=Dd(Ye),un=Ce.isResizable,Tn=st.length>0?Ol.positions(st,Ye):[],$n=Tn.length>0?c5(pe,un):[],ur=W(Tn,(Ko,Qo)=>$($n,_i=>Qo===_i));fE(Ce,ur,Ut,os(Ye));const Nr=St.length>0?Mt.positions(St,Ye):[],Ro=Nr.length>0?u5(pe,un):[],ai=W(Nr,(Ko,Qo)=>$(Ro,_i=>Qo===_i));f6(Ce,ai,Ut,dd(Ye))},d6=(pe,Ce)=>{if(pv(pe),pe.isResizable(Ce)){const Ye=Xi.fromTable(Ce),st=bu(Ye),St=Xc(Ye);dE(Ye,pe,Ce,st,St)}},Yh=(pe,Ce)=>{const Ye=ra(pe.parent(),"."+D3);U(Ye,Ce)},ch=pe=>{Yh(pe,Ce=>{ks(Ce,"display","none")})},w2=pe=>{Yh(pe,Ce=>{ks(Ce,"display","block")})},FD=pe=>gw(pe,Ow),hE=pe=>gw(pe,c6),d5=Ph("resizer-bar-dragging"),as=pe=>{const Ce=l5(),Ye=s5(Ce,{});let st=C.none();const St=(Qo,_i)=>C.from(Rt(Qo,_i));Ce.events.drag.bind(Qo=>{St(Qo.target,"data-row").each(_i=>{const To=ld(Qo.target,"top");ks(Qo.target,"top",To+Qo.yDelta+"px")}),St(Qo.target,"data-column").each(_i=>{const To=ld(Qo.target,"left");ks(Qo.target,"left",To+Qo.xDelta+"px")})});const Ut=(Qo,_i)=>{const To=ld(Qo,_i),Zo=uc(Qo,"data-initial-"+_i,0);return To-Zo};Ye.events.stop.bind(()=>{Ce.get().each(Qo=>{st.each(_i=>{St(Qo,"data-row").each(To=>{const Zo=Ut(Qo,"top");at(Qo,"data-initial-top"),Ko.trigger.adjustHeight(_i,Zo,parseInt(To,10))}),St(Qo,"data-column").each(To=>{const Zo=Ut(Qo,"left");at(Qo,"data-initial-left"),Ko.trigger.adjustWidth(_i,Zo,parseInt(To,10))}),d6(pe,_i)})})});const un=(Qo,_i)=>{Ko.trigger.startAdjust(),Ce.assign(Qo),lt(Qo,"data-initial-"+_i,ld(Qo,_i)),u0(Qo,d5),ks(Qo,"opacity","0.2"),Ye.go(pe.parent())},Tn=Sy(pe.parent(),"mousedown",Qo=>{FD(Qo.target)&&un(Qo.target,"top"),hE(Qo.target)&&un(Qo.target,"left")}),$n=Qo=>vn(Qo,pe.view()),ur=Qo=>qc(Qo,"table",$n).filter(Kg),Nr=Sy(pe.view(),"mouseover",Qo=>{ur(Qo.target).fold(()=>{ao(Qo.target)&&pv(pe)},_i=>{Ye.isActive()&&(st=C.some(_i),d6(pe,_i))})}),Ro=()=>{Tn.unbind(),Nr.unbind(),Ye.destroy(),pv(pe)},ai=Qo=>{d6(pe,Qo)},Ko=J0({adjustHeight:gp(["table","delta","row"]),adjustWidth:gp(["table","delta","column"]),startAdjust:gp([])});return{destroy:Ro,refresh:ai,on:Ye.on,off:Ye.off,hideBars:A(ch,pe),showBars:A(w2,pe),events:Ko.registry}},h6={create:(pe,Ce,Ye)=>{const st=Ol,St=Mt,Ut=as(pe),un=J0({beforeResize:gp(["table","type"]),afterResize:gp(["table","type"]),startDrag:gp([])});return Ut.events.adjustHeight.bind(Tn=>{const $n=Tn.table;un.trigger.beforeResize($n,"row");const ur=st.delta(Tn.delta,$n);qx($n,ur,Tn.row),un.trigger.afterResize($n,"row")}),Ut.events.startAdjust.bind(Tn=>{un.trigger.startDrag()}),Ut.events.adjustWidth.bind(Tn=>{const $n=Tn.table;un.trigger.beforeResize($n,"col");const ur=St.delta(Tn.delta,$n),Nr=Ye($n);K_($n,ur,Tn.column,Ce,Nr),un.trigger.afterResize($n,"col")}),{on:Ut.on,off:Ut.off,refreshBars:Ut.refresh,hideBars:Ut.hideBars,showBars:Ut.showBars,destroy:Ut.destroy,events:un.registry}}},Sw={only:(pe,Ce)=>{const Ye=bn(pe)?jn(pe):pe;return{parent:v(Ye),view:v(pe),origin:v(Gc(0,0)),isResizable:Ce}},detached:(pe,Ce,Ye)=>{const st=()=>Dd(Ce);return{parent:v(Ce),view:v(pe),origin:st,isResizable:Ye}},body:(pe,Ce,Ye)=>({parent:v(Ce),view:v(pe),origin:v(Gc(0,0)),isResizable:Ye})},pE=()=>{const pe=Pt.fromTag("div");return $f(pe,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),$r(co(),pe),pe},mE=(pe,Ce)=>pe.inline?Sw.body(Pt.fromDom(pe.getBody()),pE(),Ce):Sw.only(Pt.fromDom(pe.getDoc()),Ce),gE=(pe,Ce)=>{pe.inline&&li(Ce.parent())},B3=pe=>y(pe)&&pe.nodeName==="TABLE",kw="bar-",m6=pe=>Rt(pe,"data-mce-resize")!=="false",VD=pe=>{const Ce=Xi.fromTable(pe);Xi.hasColumns(Ce)||U(xf(pe),Ye=>{const st=yf(Ye,"width");ks(Ye,"width",st),at(Ye,"width")})},O2=pe=>pc(pe,"corner-"),h5=pe=>gm(pe,"corner-"),UD=pe=>{const Ce=_y(),Ye=_y(),st=_y();let St,Ut,un,Tn;const $n=Zo=>Pc(pe,Zo),ur=()=>Fl(pe)?z0():R1(),Nr=Zo=>mg(Zo).columns,Ro=Zo=>mg(Zo).rows,ai=(Zo,Yi,ri,Ms)=>{const al=h5(Yi),Gs=Cu(al,"e"),td=pc(al,"n");if(Ut===""&&ev(Zo),Tn===""&&Ab(Zo),ri!==St&&Ut!==""){ks(Zo,"width",Ut);const zu=ur(),e1=$n(Zo),Ay=Fl(pe)||Gs?Nr(Zo)-1:0;K_(Zo,ri-St,Ay,zu,e1)}else if(zO(Ut)){const zu=parseFloat(Ut.replace("%","")),e1=ri*zu/St;ks(Zo,"width",e1+"%")}if(xu(Ut)&&VD(Zo),Ms!==un&&Tn!==""){ks(Zo,"height",Tn);const zu=td?0:Ro(Zo)-1;qx(Zo,Ms-un,zu)}},Ko=()=>{Ye.on(Zo=>{Zo.destroy()}),st.on(Zo=>{gE(pe,Zo)})};return pe.on("init",()=>{const Zo=mE(pe,m6);if(st.set(Zo),sp(pe)&&cp(pe)){const Yi=ur(),ri=h6.create(Zo,Yi,$n);ri.on(),ri.events.startDrag.bind(Ms=>{Ce.set(pe.selection.getRng())}),ri.events.beforeResize.bind(Ms=>{const al=Ms.table.dom;Ec(pe,al,I0(al),E_(al),kw+Ms.type)}),ri.events.afterResize.bind(Ms=>{const al=Ms.table,Gs=al.dom;zd(al),Ce.on(td=>{pe.selection.setRng(td),pe.focus()}),Qc(pe,Gs,I0(Gs),E_(Gs),kw+Ms.type),pe.undoManager.add()}),Ye.set(ri)}}),pe.on("ObjectResizeStart",Zo=>{const Yi=Zo.target;if(B3(Yi)){const ri=Pt.fromDom(Yi);U(pe.dom.select(".mce-clonedresizable"),Ms=>{pe.dom.addClass(Ms,"mce-"+fb(pe)+"-columns")}),!hy(ri)&&Gg(pe)?_g(ri):!tw(ri)&&Xg(pe)&&ev(ri),eu(ri)&&pc(Zo.origin,kw)&&ev(ri),St=Zo.width,Ut=lp(pe)?"":P_(pe,Yi).getOr(""),un=Zo.height,Tn=C1(pe,Yi).getOr("")}}),pe.on("ObjectResized",Zo=>{const Yi=Zo.target;if(B3(Yi)){const ri=Pt.fromDom(Yi),Ms=Zo.origin;O2(Ms)&&ai(ri,Ms,Zo.width,Zo.height),zd(ri),Dm(pe,ri.dom,Hc)}}),pe.on("SwitchMode",()=>{Ye.on(Zo=>{pe.mode.isReadOnly()?Zo.hideBars():Zo.showBars()})}),pe.on("dragstart dragend",Zo=>{Ye.on(Yi=>{Zo.type==="dragstart"?(Yi.hideBars(),Yi.off()):(Yi.on(),Yi.showBars())})}),pe.on("remove",()=>{Ko()}),{refresh:Zo=>{Ye.on(Yi=>Yi.refreshBars(Pt.fromDom(Zo)))},hide:()=>{Ye.on(Zo=>Zo.hideBars())},show:()=>{Ye.on(Zo=>Zo.showBars())}}},g6=pe=>{R0(pe);const Ce=UD(pe),Ye=C3(pe,Ce),st=W1(pe,Ce,Ye);return Og(pe,st),n3(pe,st),P1(pe,st),{getSelectedCells:Ye.getSelectedCells,clearSelectedCells:Ye.clearSelectedCells}},vE=pe=>({table:g6(pe)});var ta=()=>{t.add("dom",vE)};ta()})();(function(){const t=Object.getPrototypeOf,e=(s,F,Z)=>{var ue;return Z(s,F.prototype)?!0:((ue=s.constructor)===null||ue===void 0?void 0:ue.name)===F.name},o=s=>{const F=typeof s;return s===null?"null":F==="object"&&Array.isArray(s)?"array":F==="object"&&e(s,String,(Z,ue)=>ue.isPrototypeOf(Z))?"string":F},f=s=>F=>o(F)===s,P=s=>F=>typeof F===s,d=s=>F=>s===F,l=(s,F)=>c(s)&&e(s,F,(Z,ue)=>t(Z)===ue),n=f("string"),c=f("object"),b=s=>l(s,Object),i=f("array"),O=d(null),w=P("boolean"),y=d(void 0),p=s=>s==null,a=s=>!p(s),u=P("function"),h=P("number"),m=(s,F)=>{if(i(s)){for(let Z=0,ue=s.length;Z{},_=s=>()=>s(),S=(s,F)=>(...Z)=>s(F.apply(null,Z)),A=(s,F)=>Z=>s(F(Z)),x=s=>()=>s,R=s=>s,M=(s,F)=>s===F;function T(s,...F){return(...Z)=>{const ue=F.concat(Z);return s.apply(null,ue)}}const E=s=>F=>!s(F),C=s=>()=>{throw new Error(s)},L=s=>s(),D=x(!1),k=x(!0);class I{constructor(F,Z){this.tag=F,this.value=Z}static some(F){return new I(!0,F)}static none(){return I.singletonNone}fold(F,Z){return this.tag?Z(this.value):F()}isSome(){return this.tag}isNone(){return!this.tag}map(F){return this.tag?I.some(F(this.value)):I.none()}bind(F){return this.tag?F(this.value):I.none()}exists(F){return this.tag&&F(this.value)}forall(F){return!this.tag||F(this.value)}filter(F){return!this.tag||F(this.value)?this:I.none()}getOr(F){return this.tag?this.value:F}or(F){return this.tag?this:F}getOrThunk(F){return this.tag?this.value:F()}orThunk(F){return this.tag?this:F()}getOrDie(F){if(this.tag)return this.value;throw new Error(F??"Called getOrDie on None")}static from(F){return a(F)?I.some(F):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(F){this.tag&&F(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const z=Array.prototype.slice,$=Array.prototype.indexOf,Q=Array.prototype.push,j=(s,F)=>$.call(s,F),U=(s,F)=>{const Z=j(s,F);return Z===-1?I.none():I.some(Z)},X=(s,F)=>j(s,F)>-1,te=(s,F)=>{for(let Z=0,ue=s.length;Z{const Z=[];for(let ue=0;ue{const Z=[];for(let ue=0;ue{const Z=s.length,ue=new Array(Z);for(let we=0;we{for(let Z=0,ue=s.length;Z{for(let Z=s.length-1;Z>=0;Z--){const ue=s[Z];F(ue,Z)}},ee=(s,F)=>{const Z=[],ue=[];for(let we=0,Be=s.length;we{const Z=[];for(let ue=0,we=s.length;ue(Y(s,(ue,we)=>{Z=F(Z,ue,we)}),Z),se=(s,F,Z)=>(q(s,(ue,we)=>{Z=F(Z,ue,we)}),Z),ae=(s,F,Z)=>{for(let ue=0,we=s.length;ueae(s,F,D),de=(s,F)=>{for(let Z=0,ue=s.length;Z{const F=[];for(let Z=0,ue=s.length;Zve(oe(s,F)),_e=(s,F)=>{for(let Z=0,ue=s.length;Z{const F=z.call(s,0);return F.reverse(),F},Te=(s,F)=>me(s,Z=>!X(F,Z)),Pe=(s,F)=>{const Z={};for(let ue=0,we=s.length;ue[s],ze=(s,F)=>{const Z=z.call(s,0);return Z.sort(F),Z},De=(s,F)=>F>=0&&FDe(s,0),Ve=s=>De(s,s.length-1),$e=u(Array.from)?Array.from:s=>z.call(s),Oe=(s,F)=>{for(let Z=0;Z{const Z=ke(s);for(let ue=0,we=Z.length;ueZe(s,(Z,ue)=>({k:ue,v:F(Z,ue)})),Ze=(s,F)=>{const Z={};return We(s,(ue,we)=>{const Be=F(ue,we);Z[Be.k]=Be.v}),Z},Xe=s=>(F,Z)=>{s[Z]=F},tt=(s,F,Z,ue)=>{We(s,(we,Be)=>{(F(we,Be)?Z:ue)(we,Be)})},Ee=(s,F)=>{const Z={},ue={};return tt(s,F,Xe(Z),Xe(ue)),{t:Z,f:ue}},Ne=(s,F)=>{const Z={};return tt(s,F,Xe(Z),v),Z},je=(s,F)=>{const Z=[];return We(s,(ue,we)=>{Z.push(F(ue,we))}),Z},nt=(s,F)=>{const Z=ke(s);for(let ue=0,we=Z.length;ueje(s,R),Ge=(s,F)=>ht(s,F)?I.from(s[F]):I.none(),ht=(s,F)=>Le.call(s,F),pt=(s,F)=>ht(s,F)&&s[F]!==void 0&&s[F]!==null,wt=(s,F,Z=M)=>s.exists(ue=>Z(ue,F)),Dt=(s,F,Z=M)=>en(s,F,Z).getOr(s.isNone()&&F.isNone()),It=s=>{const F=[],Z=ue=>{F.push(ue)};for(let ue=0;ue{const F=[];for(let Z=0;Zs.isSome()&&F.isSome()?I.some(Z(s.getOrDie(),F.getOrDie())):I.none(),Gt=(s,F,Z,ue)=>s.isSome()&&F.isSome()&&Z.isSome()?I.some(ue(s.getOrDie(),F.getOrDie(),Z.getOrDie())):I.none(),Ct=(s,F)=>s!=null?I.some(F(s)):I.none(),_t=(s,F)=>s?I.some(F):I.none(),nn=(s,F)=>s+F,gn=(s,F)=>s.substring(F),bn=(s,F,Z)=>F===""||s.length>=F.length&&s.substr(Z,Z+F.length)===F,mn=(s,F)=>lt(s,F)?gn(s,F.length):s,vt=(s,F)=>yt(s,F)?s:nn(s,F),bt=(s,F,Z=0,ue)=>{const we=s.indexOf(F,Z);return we!==-1?y(ue)?!0:we+F.length<=ue:!1},lt=(s,F)=>bn(s,F,0),yt=(s,F)=>bn(s,F,s.length-F.length),Rt=(s=>F=>F.replace(s,""))(/^\s+|\s+$/g),it=s=>s.length>0,at=s=>!it(s),Lt=s=>s.style!==void 0&&u(s.style.getPropertyValue),xt=(s,F)=>{const ue=(F||document).createElement("div");if(ue.innerHTML=s,!ue.hasChildNodes()||ue.childNodes.length>1){const we="HTML does not have a single root node";throw console.error(we,s),new Error(we)}return Yt(ue.childNodes[0])},Zt=(s,F)=>{const ue=(F||document).createElement(s);return Yt(ue)},Xt=(s,F)=>{const ue=(F||document).createTextNode(s);return Yt(ue)},Yt=s=>{if(s==null)throw new Error("Node cannot be null or undefined");return{dom:s}},Pt={fromHtml:xt,fromTag:Zt,fromText:Xt,fromDom:Yt,fromPoint:(s,F,Z)=>I.from(s.dom.elementFromPoint(F,Z)).map(Yt)},tn=typeof window<"u"?window:Function("return this;")(),Kt=(s,F)=>{let Z=F??tn;for(let ue=0;ue{const Z=s.split(".");return Kt(Z,F)},dn=(s,F)=>fn(s,F),vn=(s,F)=>{const Z=dn(s,F);if(Z==null)throw new Error(s+" not available on this browser");return Z},Nn=Object.getPrototypeOf,er=s=>vn("HTMLElement",s),En=s=>{const F=fn("ownerDocument.defaultView",s);return c(s)&&(er(F).prototype.isPrototypeOf(s)||/^HTML\w*Element$/.test(Nn(s).constructor.name))},In=9,jn=11,xr=1,Sr=3,ar=s=>s.dom.nodeName.toLowerCase(),Fn=s=>s.dom.nodeType,ir=s=>F=>Fn(F)===s,Wn=s=>Kn(s)&&En(s.dom),Kn=ir(xr),_r=ir(Sr),Ir=ir(In),zr=ir(jn),Fr=s=>F=>Kn(F)&&ar(F)===s,Rr=(s,F)=>{const Z=s.dom;if(Z.nodeType!==xr)return!1;{const ue=Z;if(ue.matches!==void 0)return ue.matches(F);if(ue.msMatchesSelector!==void 0)return ue.msMatchesSelector(F);if(ue.webkitMatchesSelector!==void 0)return ue.webkitMatchesSelector(F);if(ue.mozMatchesSelector!==void 0)return ue.mozMatchesSelector(F);throw new Error("Browser lacks native selectors")}},$r=s=>s.nodeType!==xr&&s.nodeType!==In&&s.nodeType!==jn||s.childElementCount===0,Kr=(s,F)=>{const Z=F===void 0?document:F.dom;return $r(Z)?[]:oe(Z.querySelectorAll(s),Pt.fromDom)},Co=(s,F)=>{const Z=F===void 0?document:F.dom;return $r(Z)?I.none():I.from(Z.querySelector(s)).map(Pt.fromDom)},so=(s,F)=>s.dom===F.dom,So=(s,F)=>{const Z=s.dom,ue=F.dom;return Z===ue?!1:Z.contains(ue)},go=s=>Pt.fromDom(s.dom.ownerDocument),li=s=>Ir(s)?s:go(s),Pn=s=>Pt.fromDom(li(s).dom.documentElement),Yn=s=>Pt.fromDom(li(s).dom.defaultView),br=s=>I.from(s.dom.parentNode).map(Pt.fromDom),dr=s=>br(s),Cr=s=>I.from(s.dom.parentElement).map(Pt.fromDom),io=(s,F)=>{const Z=u(F)?F:D;let ue=s.dom;const we=[];for(;ue.parentNode!==null&&ue.parentNode!==void 0;){const Be=ue.parentNode,qe=Pt.fromDom(Be);if(we.push(qe),Z(qe)===!0)break;ue=Be}return we},Qr=s=>I.from(s.dom.offsetParent).map(Pt.fromDom),Wr=s=>I.from(s.dom.nextSibling).map(Pt.fromDom),bo=s=>oe(s.dom.childNodes,Pt.fromDom),Bn=(s,F)=>{const Z=s.dom.childNodes;return I.from(Z[F]).map(Pt.fromDom)},hr=s=>Bn(s,0),hn=(s,F)=>({element:s,offset:F}),zn=(s,F)=>{const Z=bo(s);return Z.length>0&&Fzr(s)&&a(s.dom.host),yr=u(Element.prototype.attachShadow)&&u(Node.prototype.getRootNode),gr=x(yr),vr=yr?s=>Pt.fromDom(s.dom.getRootNode()):li,nr=s=>Zn(s)?s:Pt.fromDom(li(s).dom.body),Qn=s=>Hn(s).isSome(),Hn=s=>{const F=vr(s);return Zn(F)?I.some(F):I.none()},tr=s=>Pt.fromDom(s.dom.host),cr=s=>{if(gr()&&a(s.target)){const F=Pt.fromDom(s.target);if(Kn(F)&&Lr(F)&&s.composed&&s.composedPath){const Z=s.composedPath();if(Z)return He(Z)}}return I.from(s.target)},Lr=s=>a(s.dom.shadowRoot),Er=s=>{const F=_r(s)?s.dom.parentNode:s.dom;if(F==null||F.ownerDocument===null)return!1;const Z=F.ownerDocument;return Hn(Pt.fromDom(F)).fold(()=>Z.body.contains(F),A(Er,tr))},Vr=()=>to(Pt.fromDom(document)),to=s=>{const F=s.dom.body;if(F==null)throw new Error("Body is not available yet");return Pt.fromDom(F)},_o=(s,F,Z)=>{if(n(Z)||w(Z)||h(Z))s.setAttribute(F,Z+"");else throw console.error("Invalid call to Attribute.set. Key ",F,":: Value ",Z,":: Element ",s),new Error("Attribute value was not simple")},fr=(s,F,Z)=>{_o(s.dom,F,Z)},Eo=(s,F)=>{const Z=s.dom;We(F,(ue,we)=>{_o(Z,we,ue)})},ao=(s,F)=>{const Z=s.dom.getAttribute(F);return Z===null?void 0:Z},co=(s,F)=>I.from(ao(s,F)),Go=(s,F)=>{const Z=s.dom;return Z&&Z.hasAttribute?Z.hasAttribute(F):!1},po=(s,F)=>{s.dom.removeAttribute(F)},qo=s=>se(s.dom.attributes,(F,Z)=>(F[Z.name]=Z.value,F),{}),Ao=(s,F,Z)=>{if(!n(Z))throw console.error("Invalid call to CSS.set. Property ",F,":: Value ",Z,":: Element ",s),new Error("CSS value must be a string: "+Z);Lt(s)&&s.style.setProperty(F,Z)},oi=(s,F)=>{Lt(s)&&s.style.removeProperty(F)},ko=(s,F,Z)=>{const ue=s.dom;Ao(ue,F,Z)},ra=(s,F)=>{const Z=s.dom;We(F,(ue,we)=>{Ao(Z,we,ue)})},mo=(s,F)=>{const Z=s.dom;We(F,(ue,we)=>{ue.fold(()=>{oi(Z,we)},Be=>{Ao(Z,we,Be)})})},Aa=(s,F)=>{const Z=s.dom,we=window.getComputedStyle(Z).getPropertyValue(F);return we===""&&!Er(s)?Xl(Z,F):we},Xl=(s,F)=>Lt(s)?s.style.getPropertyValue(F):"",Na=(s,F)=>{const Z=s.dom,ue=Xl(Z,F);return I.from(ue).filter(we=>we.length>0)},us=s=>{const F={},Z=s.dom;if(Lt(Z))for(let ue=0;ue{const ue=Pt.fromTag(s);return ko(ue,F,Z),Na(ue,F).isSome()},ga=(s,F)=>{const Z=s.dom;oi(Z,F),wt(co(s,"style").map(Rt),"")&&po(s,"style")},Ku=s=>s.dom.offsetWidth,qc=(s,F)=>{const Z=(ft,gt)=>{if(!h(gt)&&!gt.match(/^[0-9]+$/))throw new Error(s+".set accepts only positive integer values. Value was "+gt);const At=ft.dom;Lt(At)&&(At.style[s]=gt+"px")},ue=ft=>{const gt=F(ft);if(gt<=0||gt===null){const At=Aa(ft,s);return parseFloat(At)||0}return gt},we=ue,Be=(ft,gt)=>se(gt,(At,$t)=>{const on=Aa(ft,$t),yn=on===void 0?0:parseInt(on,10);return isNaN(yn)?At:At+yn},0);return{set:Z,get:ue,getOuter:we,aggregate:Be,max:(ft,gt,At)=>{const $t=Be(ft,At);return gt>$t?gt-$t:0}}},Yd=qc("height",s=>{const F=s.dom;return Er(s)?F.getBoundingClientRect().height:F.offsetHeight}),Ql=s=>Yd.get(s),Ed=s=>Yd.getOuter(s),Nf=(s,F)=>{const Z=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],ue=Yd.max(s,F,Z);ko(s,"max-height",ue+"px")},mm=(s,F)=>({left:s,top:F,translate:(ue,we)=>mm(s+ue,F+we)}),Ws=mm,gm=s=>{const F=s.getBoundingClientRect();return Ws(F.left,F.top)},Gl=(s,F)=>s!==void 0?s:F!==void 0?F:0,pc=s=>{const F=s.dom.ownerDocument,Z=F.body,ue=F.defaultView,we=F.documentElement;if(Z===s.dom)return Ws(Z.offsetLeft,Z.offsetTop);const Be=Gl(ue==null?void 0:ue.pageYOffset,we.scrollTop),qe=Gl(ue==null?void 0:ue.pageXOffset,we.scrollLeft),ft=Gl(we.clientTop,Z.clientTop),gt=Gl(we.clientLeft,Z.clientLeft);return Cu(s).translate(qe-gt,Be-ft)},Cu=s=>{const F=s.dom,ue=F.ownerDocument.body;return ue===F?Ws(ue.offsetLeft,ue.offsetTop):Er(s)?gm(F):Ws(0,0)},xl=qc("width",s=>s.dom.offsetWidth),la=(s,F)=>xl.set(s,F),cc=s=>xl.get(s),pu=s=>xl.getOuter(s),ju=(s,F)=>{const Z=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],ue=xl.max(s,F,Z);ko(s,"max-width",ue+"px")},iu=s=>{let F=!1,Z;return(...ue)=>(F||(F=!0,Z=s.apply(null,ue)),Z)},mc=(s,F,Z,ue)=>{const we=s.isiOS()&&/ipad/i.test(Z)===!0,Be=s.isiOS()&&!we,qe=s.isiOS()||s.isAndroid(),ft=qe||ue("(pointer:coarse)"),gt=we||!Be&&qe&&ue("(min-device-width:768px)"),At=Be||qe&&!gt,$t=F.isSafari()&&s.isiOS()&&/safari/i.test(Z)===!1,on=!At&&!gt&&!$t;return{isiPad:x(we),isiPhone:x(Be),isTablet:x(gt),isPhone:x(At),isTouch:x(ft),isAndroid:s.isAndroid,isiOS:s.isiOS,isWebView:x($t),isDesktop:x(on)}},ks=(s,F)=>{for(let Z=0;Z{const Z=ks(s,F);if(!Z)return{major:0,minor:0};const ue=we=>Number(F.replace(Z,"$"+we));return $h(ue(1),ue(2))},yf=(s,F)=>{const Z=String(F).toLowerCase();return s.length===0?Ju():$f(s,Z)},Ju=()=>$h(0,0),$h=(s,F)=>({major:s,minor:F}),Es={nu:$h,detect:yf,unknown:Ju},ef=(s,F)=>Oe(F.brands,Z=>{const ue=Z.brand.toLowerCase();return ce(s,we=>{var Be;return ue===((Be=we.brand)===null||Be===void 0?void 0:Be.toLowerCase())}).map(we=>({current:we.name,version:Es.nu(parseInt(Z.version,10),0)}))}),uc=(s,F)=>{const Z=String(F).toLowerCase();return ce(s,ue=>ue.search(Z))},sd=(s,F)=>uc(s,F).map(Z=>{const ue=Es.detect(Z.versionRegexes,F);return{current:Z.name,version:ue}}),Vf=(s,F)=>uc(s,F).map(Z=>{const ue=Es.detect(Z.versionRegexes,F);return{current:Z.name,version:ue}}),gc=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ld=s=>F=>bt(F,s),Mp=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:s=>bt(s,"edge/")&&bt(s,"chrome")&&bt(s,"safari")&&bt(s,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,gc],search:s=>bt(s,"chrome")&&!bt(s,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:s=>bt(s,"msie")||bt(s,"trident")},{name:"Opera",versionRegexes:[gc,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ld("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ld("firefox")},{name:"Safari",versionRegexes:[gc,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:s=>(bt(s,"safari")||bt(s,"mobile/"))&&bt(s,"applewebkit")}],Xd=[{name:"Windows",search:ld("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:s=>bt(s,"iphone")||bt(s,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ld("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:ld("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ld("linux"),versionRegexes:[]},{name:"Solaris",search:ld("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ld("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ld("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],bf={browsers:x(Mp),oses:x(Xd)},mh="Edge",cd="Chromium",Vh="IE",xf="Opera",tf="Firefox",Au="Safari",_f=()=>ud({current:void 0,version:Es.unknown()}),ud=s=>{const F=s.current,Z=s.version,ue=we=>()=>F===we;return{current:F,version:Z,isEdge:ue(mh),isChromium:ue(cd),isIE:ue(Vh),isOpera:ue(xf),isFirefox:ue(tf),isSafari:ue(Au)}},nf={unknown:_f,nu:ud,edge:x(mh),chromium:x(cd),ie:x(Vh),opera:x(xf),firefox:x(tf),safari:x(Au)},gh="Windows",rs="iOS",ep="Android",Ep="Linux",vm="macOS",Pd="Solaris",M0="FreeBSD",sr="ChromeOS",Pp=()=>wf({current:void 0,version:Es.unknown()}),wf=s=>{const F=s.current,Z=s.version,ue=we=>()=>F===we;return{current:F,version:Z,isWindows:ue(gh),isiOS:ue(rs),isAndroid:ue(ep),isMacOS:ue(vm),isLinux:ue(Ep),isSolaris:ue(Pd),isFreeBSD:ue(M0),isChromeOS:ue(sr)}},Of={unknown:Pp,nu:wf,windows:x(gh),ios:x(rs),android:x(ep),linux:x(Ep),macos:x(vm),solaris:x(Pd),freebsd:x(M0),chromeos:x(sr)},Gd={detect:(s,F,Z)=>{const ue=bf.browsers(),we=bf.oses(),Be=F.bind(gt=>ef(ue,gt)).orThunk(()=>sd(ue,s)).fold(nf.unknown,nf.nu),qe=Vf(we,s).fold(Of.unknown,Of.nu),ft=mc(qe,Be,s,Z);return{browser:Be,os:qe,deviceType:ft}}},Fa=s=>window.matchMedia(s).matches;let Qu=iu(()=>Gd.detect(navigator.userAgent,I.from(navigator.userAgentData),Fa));const rf=()=>Qu(),Bc=(s,F,Z,ue,we,Be,qe)=>({target:s,x:F,y:Z,stop:ue,prevent:we,kill:Be,raw:qe}),ym=s=>{const F=Pt.fromDom(cr(s).getOr(s.target)),Z=()=>s.stopPropagation(),ue=()=>s.preventDefault(),we=S(ue,Z);return Bc(F,s.clientX,s.clientY,Z,ue,we,s)},Mu=(s,F)=>Z=>{s(Z)&&F(ym(Z))},Hu=(s,F,Z,ue,we)=>{const Be=Mu(Z,ue);return s.dom.addEventListener(F,Be,we),{unbind:T(jh,s,F,Be,we)}},Lp=(s,F,Z,ue)=>Hu(s,F,Z,ue,!1),Uh=(s,F,Z,ue)=>Hu(s,F,Z,ue,!0),jh=(s,F,Z,ue)=>{s.dom.removeEventListener(F,Z,ue)},Eu=(s,F)=>{br(s).each(ue=>{ue.dom.insertBefore(F.dom,s.dom)})},fd=(s,F)=>{Wr(s).fold(()=>{br(s).each(we=>{Pu(we,F)})},ue=>{Eu(ue,F)})},vh=(s,F)=>{hr(s).fold(()=>{Pu(s,F)},ue=>{s.dom.insertBefore(F.dom,ue.dom)})},Pu=(s,F)=>{s.dom.appendChild(F.dom)},Oc=(s,F,Z)=>{Bn(s,Z).fold(()=>{Pu(s,F)},ue=>{Eu(ue,F)})},Ts=(s,F)=>{q(F,Z=>{Pu(s,Z)})},Uf=s=>{s.dom.textContent="",q(bo(s),F=>{zl(F)})},zl=s=>{const F=s.dom;F.parentNode!==null&&F.parentNode.removeChild(F)},Hl=s=>{const F=s!==void 0?s.dom:document,Z=F.body.scrollLeft||F.documentElement.scrollLeft,ue=F.body.scrollTop||F.documentElement.scrollTop;return Ws(Z,ue)},Cs=(s,F,Z)=>{const we=(Z!==void 0?Z.dom:document).defaultView;we&&we.scrollTo(s,F)},$s=s=>{const F=s===void 0?window:s;return rf().browser.isFirefox()?I.none():I.from(F.visualViewport)},Zu=(s,F,Z,ue)=>({x:s,y:F,width:Z,height:ue,right:s+Z,bottom:F+ue}),yh=s=>{const F=s===void 0?window:s,Z=F.document,ue=Hl(Pt.fromDom(Z));return $s(F).fold(()=>{const we=F.document.documentElement,Be=we.clientWidth,qe=we.clientHeight;return Zu(ue.left,ue.top,Be,qe)},we=>Zu(Math.max(we.pageLeft,ue.left),Math.max(we.pageTop,ue.top),we.width,we.height))},of=()=>Pt.fromDom(document),tp=(s,F)=>s.view(F).fold(x([]),ue=>{const we=s.owner(ue),Be=tp(s,we);return[ue].concat(Be)}),Ip=(s,F)=>{const Z=F.owner(s),ue=tp(F,Z);return I.some(ue)};var bh=Object.freeze({__proto__:null,view:s=>{var F;return(s.dom===document?I.none():I.from((F=s.dom.defaultView)===null||F===void 0?void 0:F.frameElement)).map(Pt.fromDom)},owner:s=>go(s)});const Jd=s=>{const F=of(),Z=Hl(F);return Ip(s,bh).fold(T(pc,s),we=>{const Be=Cu(s),qe=he(we,(ft,gt)=>{const At=Cu(gt);return{left:ft.left+At.left,top:ft.top+At.top}},{left:0,top:0});return Ws(qe.left+Be.left+Z.left,qe.top+Be.top+Z.top)})},zc=(s,F,Z)=>({point:s,width:F,height:Z}),np=(s,F,Z,ue)=>({x:s,y:F,width:Z,height:ue}),ms=(s,F,Z,ue)=>({x:s,y:F,width:Z,height:ue,right:s+Z,bottom:F+ue}),Ya=s=>{const F=pc(s),Z=pu(s),ue=Ed(s);return ms(F.left,F.top,Z,ue)},_l=s=>{const F=Jd(s),Z=pu(s),ue=Ed(s);return ms(F.left,F.top,Z,ue)},dl=(s,F)=>{const Z=Math.max(s.x,F.x),ue=Math.max(s.y,F.y),we=Math.min(s.right,F.right),Be=Math.min(s.bottom,F.bottom),qe=we-Z,ft=Be-ue;return ms(Z,ue,qe,ft)},Wc=(s,F)=>se(F,(Z,ue)=>dl(Z,ue),s),wl=()=>yh(window),xi=s=>{let F=s;return{get:()=>F,set:we=>{F=we}}},mu=s=>{const F=xi(I.none()),Z=()=>F.get().each(s);return{clear:()=>{Z(),F.set(I.none())},isSet:()=>F.get().isSome(),get:()=>F.get(),set:ft=>{Z(),F.set(I.some(ft))}}},xh=()=>mu(s=>s.destroy()),js=()=>mu(s=>s.unbind()),os=()=>{const s=mu(v);return{...s,on:Z=>s.get().each(Z)}};var af=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Sf=s=>{const F=Be=>Be(s),Z=x(s),ue=()=>we,we={tag:!0,inner:s,fold:(Be,qe)=>qe(s),isValue:k,isError:D,map:Be=>Hi.value(Be(s)),mapError:ue,bind:F,exists:F,forall:F,getOr:Z,or:ue,getOrThunk:Z,orThunk:ue,getOrDie:Z,each:Be=>{Be(s)},toOptional:()=>I.some(s)};return we},sf=s=>{const F=()=>Z,Z={tag:!1,inner:s,fold:(ue,we)=>ue(s),isValue:D,isError:k,map:F,mapError:ue=>Hi.error(ue(s)),bind:F,exists:D,forall:k,getOr:R,or:R,getOrThunk:L,orThunk:L,getOrDie:C(String(s)),each:v,toOptional:I.none};return Z},Hi={value:Sf,error:sf,fromOption:(s,F)=>s.fold(()=>sf(F),Sf)};var pi;(function(s){s[s.Error=0]="Error",s[s.Value=1]="Value"})(pi||(pi={}));const Qh=(s,F,Z)=>s.stype===pi.Error?F(s.serror):Z(s.svalue),Ru=s=>{const F=[],Z=[];return q(s,ue=>{Qh(ue,we=>Z.push(we),we=>F.push(we))}),{values:F,errors:Z}},vc=(s,F)=>s.stype===pi.Error?{stype:pi.Error,serror:F(s.serror)}:s,Yc=(s,F)=>s.stype===pi.Value?{stype:pi.Value,svalue:F(s.svalue)}:s,Kl=(s,F)=>s.stype===pi.Value?F(s.svalue):s,Fc=(s,F)=>s.stype===pi.Error?F(s.serror):s,si=s=>({stype:pi.Value,svalue:s}),Hh=s=>({stype:pi.Error,serror:s}),tl={fromResult:s=>s.fold(Hh,si),toResult:s=>Qh(s,Hi.error,Hi.value),svalue:si,partition:Ru,serror:Hh,bind:Kl,bindError:Fc,map:Yc,mapError:vc,fold:Qh},gu=(s,F,Z,ue)=>({tag:"field",key:s,newKey:F,presence:Z,prop:ue}),vu=(s,F)=>({tag:"custom",newKey:s,instantiator:F}),ja=(s,F,Z)=>{switch(s.tag){case"field":return F(s.key,s.newKey,s.presence,s.prop);case"custom":return Z(s.newKey,s.instantiator)}},yu=(s,F)=>F,Rd=(s,F)=>b(s)&&b(F)?nl(s,F):F,Ld=s=>(...F)=>{if(F.length===0)throw new Error("Can't merge zero objects");const Z={};for(let ue=0;ue({tag:"required",process:{}}),Xi=s=>({tag:"defaultedThunk",process:s}),Xc=s=>Xi(x(s)),jf=()=>({tag:"option",process:{}}),bu=s=>({tag:"mergeWithThunk",process:s}),Dp=s=>bu(x(s)),rp=(s,F)=>s.length>0?tl.svalue(nl(F,Id.apply(void 0,s))):tl.svalue(F),Lu=s=>S(tl.serror,ve)(s),dd={consolidateObj:(s,F)=>{const Z=tl.partition(s);return Z.errors.length>0?Lu(Z.errors):rp(Z.values,F)},consolidateArr:s=>{const F=tl.partition(s);return F.errors.length>0?Lu(F.errors):tl.svalue(F.values)}},Hf=s=>c(s)&&ke(s).length>100?" removed due to size":JSON.stringify(s,null,2),_h=s=>{const F=s.length>10?s.slice(0,10).concat([{path:[],getErrorInfo:x("... (only showing first ten failures)")}]):s;return oe(F,Z=>"Failed path: ("+Z.path.join(" > ")+`) +`+Z.getErrorInfo())},Gc=(s,F)=>tl.serror([{path:s,getErrorInfo:F}]),hd=(s,F,Z)=>Gc(s,()=>'Could not find valid *required* value for "'+F+'" in '+Hf(Z)),rl=(s,F)=>Gc(s,()=>'Choice schema did not contain choice key: "'+F+'"'),Dd=(s,F,Z)=>Gc(s,()=>'The chosen schema: "'+Z+'" did not exist in branches: '+Hf(F)),Vi=(s,F)=>Gc(s,()=>"There are unsupported fields: ["+F.join(", ")+"] specified"),fa=(s,F)=>Gc(s,x(F)),au=s=>{const F=(ue,we)=>tl.bindError(s(we),Be=>fa(ue,Be)),Z=x("val");return{extract:F,toString:Z}},Zf=au(tl.svalue),Zl=(s,F,Z,ue)=>Ge(F,Z).fold(()=>hd(s,Z,F),ue),Jl=(s,F,Z,ue)=>{const we=Ge(s,F).getOrThunk(()=>Z(s));return ue(we)},Bd=(s,F,Z)=>Z(Ge(s,F)),Qs=(s,F,Z,ue)=>{const we=Ge(s,F).map(Be=>Be===!0?Z(s):Be);return ue(we)},kc=(s,F,Z,ue,we)=>{const Be=ft=>we.extract(F.concat([ue]),ft),qe=ft=>ft.fold(()=>tl.svalue(I.none()),gt=>{const At=we.extract(F.concat([ue]),gt);return tl.map(At,I.some)});switch(s.tag){case"required":return Zl(F,Z,ue,Be);case"defaultedThunk":return Jl(Z,ue,s.process,Be);case"option":return Bd(Z,ue,qe);case"defaultedOptionThunk":return Qs(Z,ue,s.process,qe);case"mergeWithThunk":return Jl(Z,ue,x({}),ft=>{const gt=nl(s.process(Z),ft);return Be(gt)})}},Iu=(s,F,Z)=>{const ue={},we=[];for(const Be of Z)ja(Be,(qe,ft,gt,At)=>{const $t=kc(gt,s,F,qe,At);tl.fold($t,on=>{we.push(...on)},on=>{ue[ft]=on})},(qe,ft)=>{ue[qe]=ft(F)});return we.length>0?tl.serror(we):tl.svalue(ue)},Ea=s=>({extract:(ue,we)=>s().extract(ue,we),toString:()=>s().toString()}),El=s=>ke(Ne(s,a)),Ol=s=>{const F=Mi(s),Z=he(s,(we,Be)=>ja(Be,qe=>nl(we,{[qe]:!0}),x(we)),{});return{extract:(we,Be)=>{const qe=w(Be)?[]:El(Be),ft=me(qe,gt=>!pt(Z,gt));return ft.length===0?F.extract(we,Be):Vi(we,ft)},toString:F.toString}},Mi=s=>({extract:(ue,we)=>Iu(ue,we,s),toString:()=>`obj{ `+oe(s,we=>ja(we,(Be,qe,ft,gt)=>Be+" -> "+gt.toString(),(Be,qe)=>"state("+Be+")")).join(` -`)+"}"}),Sf=s=>({extract:(ue,we)=>{const Be=oe(we,(qe,ft)=>s.extract(ue.concat(["["+ft+"]"]),qe));return fd.consolidateArr(Be)},toString:()=>"array("+s.toString()+")"}),Ot=(s,F)=>{const Z=F!==void 0?F:R;return{extract:(Be,qe)=>{const ft=[];for(const gt of s){const At=gt.extract(Be,qe);if(At.stype===pi.Value)return{stype:pi.Value,svalue:Z(At.svalue)};ft.push(At)}return fd.consolidateArr(ft)},toString:()=>"oneOf("+oe(s,Be=>Be.toString()).join(", ")+")"}},Mt=(s,F)=>{const Z=(Be,qe)=>Sf(au(s)).extract(Be,qe);return{extract:(Be,qe)=>{const ft=ke(qe),gt=Z(Be,ft);return tl.bind(gt,At=>{const $t=oe(At,on=>mu(on,on,Ka(),F));return Mi($t).extract(Be,qe)})},toString:()=>"setOf("+F.toString()+")"}},Ft=(s,F)=>{const Z=iu(F);return{extract:(Be,qe)=>Z().extract(Be,qe),toString:()=>Z().toString()}},J=S(Sf,Mi),le=x(Zf),ie=(s,F)=>au(Z=>{const ue=typeof Z;return s(Z)?tl.svalue(Z):tl.serror(`Expected type: ${F} but got: ${ue}`)}),V=ie(h,"number"),ne=ie(n,"string"),ge=ie(w,"boolean"),xe=ie(u,"function"),Me=s=>{if(Object(s)!==s)return!0;switch({}.toString.call(s).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(s).every(F=>Me(s[F]));default:return!1}},Fe=au(s=>Me(s)?tl.svalue(s):tl.serror("Expected value to be acceptable for sending via postMessage")),Je=(s,F,Z,ue)=>Ge(Z,ue).fold(()=>Dd(s,Z,ue),Be=>Be.extract(s.concat(["branch: "+ue]),F)),rt=(s,F)=>({extract:(we,Be)=>Ge(Be,s).fold(()=>rl(we,s),ft=>Je(we,Be,F,ft)),toString:()=>"chooseOn("+s+"). Possible values: "+ke(F)}),dt=()=>Sf(Zf),mt=s=>au(F=>s(F).fold(tl.serror,tl.svalue)),Et=(s,F)=>Mt(Z=>tl.fromResult(s(Z)),F),Vt=(s,F,Z)=>{const ue=F.extract([s],Z);return tl.mapError(ue,we=>({input:Z,errors:we}))},jt=(s,F,Z)=>tl.toResult(Vt(s,F,Z)),Nt=s=>s.fold(F=>{throw new Error(sn(F))},R),cn=(s,F,Z)=>Nt(jt(s,F,Z)),sn=s=>`Errors: +`)+"}"}),kf=s=>({extract:(ue,we)=>{const Be=oe(we,(qe,ft)=>s.extract(ue.concat(["["+ft+"]"]),qe));return dd.consolidateArr(Be)},toString:()=>"array("+s.toString()+")"}),Ot=(s,F)=>{const Z=F!==void 0?F:R;return{extract:(Be,qe)=>{const ft=[];for(const gt of s){const At=gt.extract(Be,qe);if(At.stype===pi.Value)return{stype:pi.Value,svalue:Z(At.svalue)};ft.push(At)}return dd.consolidateArr(ft)},toString:()=>"oneOf("+oe(s,Be=>Be.toString()).join(", ")+")"}},Mt=(s,F)=>{const Z=(Be,qe)=>kf(au(s)).extract(Be,qe);return{extract:(Be,qe)=>{const ft=ke(qe),gt=Z(Be,ft);return tl.bind(gt,At=>{const $t=oe(At,on=>gu(on,on,Ka(),F));return Mi($t).extract(Be,qe)})},toString:()=>"setOf("+F.toString()+")"}},Ft=(s,F)=>{const Z=iu(F);return{extract:(Be,qe)=>Z().extract(Be,qe),toString:()=>Z().toString()}},J=S(kf,Mi),le=x(Zf),ie=(s,F)=>au(Z=>{const ue=typeof Z;return s(Z)?tl.svalue(Z):tl.serror(`Expected type: ${F} but got: ${ue}`)}),V=ie(h,"number"),ne=ie(n,"string"),ge=ie(w,"boolean"),xe=ie(u,"function"),Me=s=>{if(Object(s)!==s)return!0;switch({}.toString.call(s).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(s).every(F=>Me(s[F]));default:return!1}},Fe=au(s=>Me(s)?tl.svalue(s):tl.serror("Expected value to be acceptable for sending via postMessage")),Je=(s,F,Z,ue)=>Ge(Z,ue).fold(()=>Dd(s,Z,ue),Be=>Be.extract(s.concat(["branch: "+ue]),F)),rt=(s,F)=>({extract:(we,Be)=>Ge(Be,s).fold(()=>rl(we,s),ft=>Je(we,Be,F,ft)),toString:()=>"chooseOn("+s+"). Possible values: "+ke(F)}),dt=()=>kf(Zf),mt=s=>au(F=>s(F).fold(tl.serror,tl.svalue)),Et=(s,F)=>Mt(Z=>tl.fromResult(s(Z)),F),Vt=(s,F,Z)=>{const ue=F.extract([s],Z);return tl.mapError(ue,we=>({input:Z,errors:we}))},jt=(s,F,Z)=>tl.toResult(Vt(s,F,Z)),Nt=s=>s.fold(F=>{throw new Error(sn(F))},R),cn=(s,F,Z)=>Nt(jt(s,F,Z)),sn=s=>`Errors: `+_h(s.errors).join(` `)+` -Input object: `+Hf(s.input),xn=(s,F)=>rt(s,Ue(F,Mi)),pn=(s,F)=>Ft(s,F),Ln=mu,On=gu,An=s=>mt(F=>X(s,F)?Hi.value(F):Hi.error(`Unsupported value: "${F}", choose one of "${s.join(", ")}".`)),Sn=s=>Ln(s,s,Ka(),le()),rr=(s,F)=>Ln(s,s,Ka(),F),Dr=s=>rr(s,V),Pr=s=>rr(s,ne),Zr=(s,F)=>Ln(s,s,Ka(),An(F)),Mo=s=>rr(s,ge),$o=s=>rr(s,xe),vo=(s,F)=>Ln(s,s,jf(),au(Z=>tl.serror("The field: "+s+" is forbidden. "+F))),zo=(s,F)=>Ln(s,s,Ka(),Mi(F)),yi=(s,F)=>Ln(s,s,Ka(),J(F)),Si=(s,F)=>Ln(s,s,Ka(),Sf(F)),Hr=s=>Ln(s,s,jf(),le()),Lo=(s,F)=>Ln(s,s,jf(),F),ki=s=>Lo(s,V),Io=s=>Lo(s,ne),$i=(s,F)=>Lo(s,An(F)),Ui=s=>Lo(s,xe),ba=(s,F)=>Lo(s,Sf(F)),Pi=(s,F)=>Lo(s,Mi(F)),fs=(s,F)=>Lo(s,_l(F)),mr=(s,F)=>Ln(s,s,Xc(F),le()),ys=(s,F,Z)=>Ln(s,s,Xc(F),Z),Pl=(s,F)=>ys(s,F,V),Ys=(s,F)=>ys(s,F,ne),dl=(s,F,Z)=>ys(s,F,An(Z)),ds=(s,F)=>ys(s,F,ge),Pa=(s,F)=>ys(s,F,xe),Rs=(s,F)=>ys(s,F,Fe),Ls=(s,F,Z)=>ys(s,F,Sf(Z)),ol=(s,F,Z)=>ys(s,F,Mi(Z)),Ds={generate:s=>{if(!i(s))throw new Error("cases must be an array");if(s.length===0)throw new Error("there must be at least one case");const F=[],Z={};return q(s,(ue,we)=>{const Be=ke(ue);if(Be.length!==1)throw new Error("one and only one name per case");const qe=Be[0],ft=ue[qe];if(Z[qe]!==void 0)throw new Error("duplicate key detected:"+qe);if(qe==="cata")throw new Error("cannot have a case named cata (sorry)");if(!i(ft))throw new Error("case arguments must be an array");F.push(qe),Z[qe]=(...gt)=>{const At=gt.length;if(At!==ft.length)throw new Error("Wrong number of arguments to case "+qe+". Expected "+ft.length+" ("+ft+"), got "+At);return{fold:(...on)=>{if(on.length!==s.length)throw new Error("Wrong number of arguments to fold. Expected "+s.length+", got "+on.length);return on[we].apply(null,gt)},match:on=>{const yn=ke(on);if(F.length!==yn.length)throw new Error("Wrong number of arguments to match. Expected: "+F.join(",")+` +Input object: `+Hf(s.input),xn=(s,F)=>rt(s,Ue(F,Mi)),pn=(s,F)=>Ft(s,F),Ln=gu,On=vu,An=s=>mt(F=>X(s,F)?Hi.value(F):Hi.error(`Unsupported value: "${F}", choose one of "${s.join(", ")}".`)),Sn=s=>Ln(s,s,Ka(),le()),rr=(s,F)=>Ln(s,s,Ka(),F),Dr=s=>rr(s,V),Pr=s=>rr(s,ne),Zr=(s,F)=>Ln(s,s,Ka(),An(F)),Mo=s=>rr(s,ge),$o=s=>rr(s,xe),vo=(s,F)=>Ln(s,s,jf(),au(Z=>tl.serror("The field: "+s+" is forbidden. "+F))),zo=(s,F)=>Ln(s,s,Ka(),Mi(F)),yi=(s,F)=>Ln(s,s,Ka(),J(F)),Si=(s,F)=>Ln(s,s,Ka(),kf(F)),Hr=s=>Ln(s,s,jf(),le()),Lo=(s,F)=>Ln(s,s,jf(),F),ki=s=>Lo(s,V),Io=s=>Lo(s,ne),$i=(s,F)=>Lo(s,An(F)),Ui=s=>Lo(s,xe),ba=(s,F)=>Lo(s,kf(F)),Pi=(s,F)=>Lo(s,Mi(F)),ds=(s,F)=>Lo(s,Ol(F)),mr=(s,F)=>Ln(s,s,Xc(F),le()),bs=(s,F,Z)=>Ln(s,s,Xc(F),Z),Pl=(s,F)=>bs(s,F,V),Ys=(s,F)=>bs(s,F,ne),hl=(s,F,Z)=>bs(s,F,An(Z)),hs=(s,F)=>bs(s,F,ge),Pa=(s,F)=>bs(s,F,xe),Rs=(s,F)=>bs(s,F,Fe),Ls=(s,F,Z)=>bs(s,F,kf(Z)),ol=(s,F,Z)=>bs(s,F,Mi(Z)),Ds={generate:s=>{if(!i(s))throw new Error("cases must be an array");if(s.length===0)throw new Error("there must be at least one case");const F=[],Z={};return q(s,(ue,we)=>{const Be=ke(ue);if(Be.length!==1)throw new Error("one and only one name per case");const qe=Be[0],ft=ue[qe];if(Z[qe]!==void 0)throw new Error("duplicate key detected:"+qe);if(qe==="cata")throw new Error("cannot have a case named cata (sorry)");if(!i(ft))throw new Error("case arguments must be an array");F.push(qe),Z[qe]=(...gt)=>{const At=gt.length;if(At!==ft.length)throw new Error("Wrong number of arguments to case "+qe+". Expected "+ft.length+" ("+ft+"), got "+At);return{fold:(...on)=>{if(on.length!==s.length)throw new Error("Wrong number of arguments to fold. Expected "+s.length+", got "+on.length);return on[we].apply(null,gt)},match:on=>{const yn=ke(on);if(F.length!==yn.length)throw new Error("Wrong number of arguments to match. Expected: "+F.join(",")+` Actual: `+yn.join(","));if(!_e(F,Mn=>X(yn,Mn)))throw new Error("Not all branches were specified when using match. Specified: "+yn.join(", ")+` -Required: `+F.join(", "));return on[qe].apply(null,gt)},log:on=>{console.log(on,{constructors:F,constructor:qe,params:gt})}}}}),Z}};Ds.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const ec=s=>{const F=[],Z=[];return q(s,ue=>{ue.fold(we=>{F.push(we)},we=>{Z.push(we)})}),{errors:F,values:Z}},Tc=(s,F)=>{const Z={};return We(s,(ue,we)=>{X(F,we)||(Z[we]=ue)}),Z},op=(s,F)=>({[s]:F}),ip=s=>{const F={};return q(s,Z=>{F[Z.key]=Z.value}),F},Hs=(s,F)=>Tc(s,F),wh=(s,F)=>op(s,F),hd=s=>ip(s),qf=(s,F)=>s.length===0?Hi.value(F):Hi.value(nl(F,Id.apply(void 0,s))),tc=s=>Hi.error(ve(s)),Wf=(s,F)=>{const Z=ec(s);return Z.errors.length>0?tc(Z.errors):qf(Z.values,F)},Rl=s=>u(s)?s:D,lg=(s,F,Z)=>{let ue=s.dom;const we=Rl(Z);for(;ue.parentNode;){ue=ue.parentNode;const Be=Pt.fromDom(ue),qe=F(Be);if(qe.isSome())return qe;if(we(Be))break}return I.none()},E0=(s,F,Z)=>{const ue=F(s),we=Rl(Z);return ue.orThunk(()=>we(s)?I.none():lg(s,F,we))},xm=(s,F)=>so(s.element,F.event.target),Cx={can:k,abort:D,run:v},eh=s=>{if(!pt(s,"can")&&!pt(s,"abort")&&!pt(s,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(s,null,2)+" does not have can, abort, or run!");return{...Cx,...s}},Ax=(s,F)=>(...Z)=>se(s,(ue,we)=>ue&&F(we).apply(void 0,Z),!0),Wg=(s,F)=>(...Z)=>se(s,(ue,we)=>ue||F(we).apply(void 0,Z),!1),Mx=s=>u(s)?{can:k,abort:D,run:s}:s,O1=s=>{const F=Ax(s,we=>we.can),Z=Wg(s,we=>we.abort);return{can:F,abort:Z,run:(...we)=>{q(s,Be=>{Be.run.apply(void 0,we)})}}},oc=x,_m=oc("touchstart"),Yg=oc("touchmove"),wm=oc("touchend"),cb=oc("touchcancel"),Oh=oc("mousedown"),Ex=oc("mousemove"),kf=oc("mouseout"),Hv=oc("mouseup"),Om=oc("mouseover"),Sm=oc("focusin"),ap=oc("focusout"),Bp=oc("keydown"),P0=oc("keyup"),cg=oc("input"),Zv=oc("change"),R0=oc("click"),C_=oc("transitioncancel"),sp=oc("transitionend"),A_=oc("transitionstart"),ub=oc("selectstart"),Fl=s=>x("alloy."+s),Yf={tap:Fl("tap")},km=Fl("focus"),Xg=Fl("blur.post"),Gg=Fl("paste.post"),lp=Fl("receive"),cp=Fl("execute"),fb=Fl("focus.item"),up=Yf.tap,Xf=Fl("longpress"),L0=Fl("sandbox.close"),Px=Fl("typeahead.cancel"),zp=Fl("system.init"),Kg=Fl("system.touchmove"),M_=Fl("system.touchend"),S1=Fl("system.scroll"),Tm=Fl("system.resize"),zd=Fl("system.attached"),fp=Fl("system.detached"),I0=Fl("system.dismissRequested"),E_=Fl("system.repositionRequested"),Jg=Fl("focusmanager.shifted"),P_=Fl("slotcontainer.visibility"),k1=Fl("system.external.element.scroll"),zO=Fl("change.tab"),bu=Fl("dismiss.tab"),Cm=Fl("highlight"),D0=Fl("dehighlight"),Sa=(s,F)=>{db(s,s.element,F,{})},Ri=(s,F,Z)=>{db(s,s.element,F,Z)},Fp=s=>{Sa(s,cp())},qv=(s,F,Z)=>{db(s,F,Z,{})},db=(s,F,Z,ue)=>{const we={target:F,...ue};s.getSystem().triggerEvent(Z,F,we)},T1=(s,F,Z,ue)=>{const we={...ue,target:F};s.getSystem().triggerEvent(Z,F,we)},Np=(s,F,Z,ue)=>{s.getSystem().triggerEvent(Z,F,ue.event)},hl=s=>hd(s),FO=(s,F)=>({key:s,value:eh({abort:F})}),Rx=(s,F)=>({key:s,value:eh({can:F})}),B0=s=>({key:s,value:eh({run:(F,Z)=>{Z.event.prevent()}})}),fo=(s,F)=>({key:s,value:eh({run:F})}),e0=(s,F,Z)=>({key:s,value:eh({run:(ue,we)=>{F.apply(void 0,[ue,we].concat(Z))}})}),xS=s=>F=>fo(s,F),ug=s=>F=>({key:s,value:eh({run:(Z,ue)=>{xm(Z,ue)&&F(Z,ue)}})}),R_=(s,F)=>fo(s,(Z,ue)=>{Z.getSystem().getByUid(F).each(we=>{Np(we,we.element,s,ue)})}),Fd=(s,F,Z)=>{const ue=F.partUids[Z];return R_(s,ue)},L_=(s,F)=>fo(s,(Z,ue)=>{const we=ue.event,Be=Z.getSystem().getByDom(we.target).getOrThunk(()=>E0(we.target,ft=>Z.getSystem().getByDom(ft).toOptional(),D).getOr(Z));F(Z,Be,ue)}),Am=s=>fo(s,(F,Z)=>{Z.cut()}),I_=s=>fo(s,(F,Z)=>{Z.stop()}),Wv=(s,F)=>ug(s)(F),Ll=ug(zd()),Sh=ug(fp()),NO=ug(zp()),$p=xS(cp()),Lx=(s,F,Z)=>{const ue=Z.toString(),we=ue.indexOf(")")+1,Be=ue.indexOf("("),qe=ue.substring(Be+1,we-1).split(/,\s*/);return s.toFunctionAnnotation=()=>({name:F,parameters:Yv(qe.slice(0,1).concat(qe.slice(3)))}),s},Yv=s=>oe(s,F=>yt(F,"/*")?F.substring(0,F.length-2):F),Xv=(s,F)=>{const Z=s.toString(),ue=Z.indexOf(")")+1,we=Z.indexOf("("),Be=Z.substring(we+1,ue-1).split(/,\s*/);return s.toFunctionAnnotation=()=>({name:F,parameters:Yv(Be)}),s},hb=(s,F)=>{const Z=F.toString(),ue=Z.indexOf(")")+1,we=Z.indexOf("("),Be=Z.substring(we+1,ue-1).split(/,\s*/);return s.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:Yv(Be.slice(1))}),s},Tf=s=>({classes:y(s.classes)?[]:s.classes,attributes:y(s.attributes)?{}:s.attributes,styles:y(s.styles)?{}:s.styles}),$O=(s,F)=>({...s,attributes:{...s.attributes,...F.attributes},styles:{...s.styles,...F.styles},classes:s.classes.concat(F.classes)}),C1=(s,F,Z)=>$p(ue=>{Z(ue,s,F)}),A1=(s,F,Z)=>NO((ue,we)=>{Z(ue,s,F)}),pd=(s,F,Z,ue,we,Be)=>{const qe=_l(s),ft=Pi(F,[fs("config",s)]);return Gv(qe,ft,F,Z,ue,we,Be)},D_=(s,F,Z,ue,we,Be)=>{const qe=s,ft=Pi(F,[Lo("config",s)]);return Gv(qe,ft,F,Z,ue,we,Be)},VO=(s,F,Z)=>Lx((we,...Be)=>{const qe=[we].concat(Be);return we.config({name:x(s)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+s+". Using API: "+Z)},ft=>{const gt=Array.prototype.slice.call(qe,1);return F.apply(void 0,[we,ft.config,ft.state].concat(gt))})},Z,F),B_=s=>({key:s,value:void 0}),Gv=(s,F,Z,ue,we,Be,qe)=>{const ft=on=>pt(on,Z)?on[Z]():I.none(),gt=Ue(we,(on,yn)=>VO(Z,on,yn)),$t={...Ue(Be,(on,yn)=>Xv(on,yn)),...gt,revoke:T(B_,Z),config:on=>{const yn=cn(Z+"-config",s,on);return{key:Z,value:{config:yn,me:$t,configAsRaw:iu(()=>cn(Z+"-config",s,on)),initialConfig:on,state:qe}}},schema:x(F),exhibit:(on,yn)=>en(ft(on),Ge(ue,"exhibit"),(wn,Mn)=>Mn(yn,wn.config,wn.state)).getOrThunk(()=>Tf({})),name:x(Z),handlers:on=>ft(on).map(yn=>Ge(ue,"events").getOr(()=>({}))(yn.config,yn.state)).getOr({})};return $t},Gf={init:()=>kh({readState:x("No State required")})},kh=s=>s,Do=s=>hd(s),Ix=_l([Sn("fields"),Sn("name"),mr("active",{}),mr("apis",{}),mr("state",Gf),mr("extra",{})]),lf=s=>{const F=cn("Creating behaviour: "+s.name,Ix,s);return pd(F.fields,F.name,F.active,F.apis,F.extra,F.state)},pb=_l([Sn("branchKey"),Sn("branches"),Sn("name"),mr("active",{}),mr("apis",{}),mr("state",Gf),mr("extra",{})]),md=s=>{const F=cn("Creating behaviour: "+s.name,pb,s);return D_(xn(F.branchKey,F.branches),F.name,F.active,F.apis,F.extra,F.state)},Nl=x(void 0),fg=(s,F)=>{const Z=ao(s,F);return Z===void 0||Z===""?[]:Z.split(" ")},Dx=(s,F,Z)=>{const we=fg(s,F).concat([Z]);return fr(s,F,we.join(" ")),!0},UO=(s,F,Z)=>{const ue=me(fg(s,F),we=>we!==Z);return ue.length>0?fr(s,F,ue.join(" ")):po(s,F),!1},t0=s=>s.dom.classList!==void 0,mb=s=>fg(s,"class"),Mm=(s,F)=>Dx(s,"class",F),jO=(s,F)=>UO(s,"class",F),z_=(s,F)=>X(mb(s),F)?jO(s,F):Mm(s,F),wl=(s,F)=>{t0(s)?s.dom.classList.add(F):Mm(s,F)},Kv=s=>{(t0(s)?s.dom.classList:mb(s)).length===0&&po(s,"class")},fc=(s,F)=>{t0(s)?s.dom.classList.remove(F):jO(s,F),Kv(s)},Jv=(s,F)=>{const Z=t0(s)?s.dom.classList.toggle(F):z_(s,F);return Kv(s),Z},$l=(s,F)=>t0(s)&&s.dom.classList.contains(F),M1=(s,F)=>{q(F,Z=>{wl(s,Z)})},th=(s,F)=>{q(F,Z=>{fc(s,Z)})},Bx=(s,F)=>{q(F,Z=>{Jv(s,Z)})},ic=(s,F)=>_e(F,Z=>$l(s,Z)),F_=s=>{const F=s.dom.classList,Z=new Array(F.length);for(let ue=0;uet0(s)?F_(s):mb(s),Du=(s,F,Z,ue,we)=>{const Be=qe=>qe+"px";return{position:s,left:F.map(Be),top:Z.map(Be),right:ue.map(Be),bottom:we.map(Be)}},su=s=>({...s,position:I.some(s.position)}),dg=(s,F)=>{mo(s,su(F))},n0=s=>(wt(Na(s,"position"),"fixed")?I.none():Qr(s)).orThunk(()=>{const ue=Pt.fromTag("span");return br(s).bind(we=>{Pu(we,ue);const Be=Qr(ue);return zl(ue),Be})}),N_=s=>n0(s).map(pc).getOrThunk(()=>Ws(0,0)),ey=(s,F)=>{const Z=s.element;wl(Z,F.transitionClass),fc(Z,F.fadeOutClass),wl(Z,F.fadeInClass),F.onShow(s)},hg=(s,F)=>{const Z=s.element;wl(Z,F.transitionClass),fc(Z,F.fadeInClass),wl(Z,F.fadeOutClass),F.onHide(s)},ty=(s,F)=>s.yF.y,E1=(s,F)=>s.y>=F.y,z0=(s,F)=>s.bottom<=F.bottom,pg=(s,F,Z)=>({location:"top",leftX:F,topY:Z.bounds.y-s.y}),P1=(s,F,Z)=>({location:"bottom",leftX:F,bottomY:s.bottom-Z.bounds.bottom}),R1=s=>s.box.x-s.win.x,zx=(s,F,Z)=>{const ue=F.win,we=F.box,Be=R1(F);return Oe(s,qe=>{switch(qe){case"bottom":return z0(we,Z.bounds)?I.none():I.some(P1(ue,Be,Z));case"top":return E1(we,Z.bounds)?I.none():I.some(pg(ue,Be,Z));default:return I.none()}}).getOr({location:"no-dock"})},F0=(s,F,Z)=>_e(s,ue=>{switch(ue){case"bottom":return z0(F,Z.bounds);case"top":return E1(F,Z.bounds)}}),gb=(s,F)=>{const Z=F.optScrollEnv.fold(x(s.bounds.y),ue=>ue.scrollElmTop+(s.bounds.y-ue.currentScrollTop));return Ws(s.bounds.x,Z)},Fx=(s,F)=>{const Z=F.optScrollEnv.fold(x(s.y),ue=>s.y+ue.currentScrollTop-ue.scrollElmTop);return Ws(s.x,Z)},$_=(s,F,Z)=>Z.getInitialPos().map(ue=>{const we=gb(ue,F);return{box:ms(we.left,we.top,cc(s),Ql(s)),location:ue.location}}),Nx=(s,F,Z,ue,we)=>{const Be=Fx(F,Z),qe=ms(Be.left,Be.top,F.width,F.height);ue.setInitialPos({style:cs(s),position:Aa(s,"position")||"static",bounds:qe,location:we.location})},V_=(s,F,Z,ue,we)=>{ue.getInitialPos().fold(()=>Nx(s,F,Z,ue,we),()=>v)},vb=(s,F,Z)=>Z.getInitialPos().bind(ue=>{var we;switch(Z.clearInitialPos(),ue.position){case"static":return I.some({morph:"static"});case"absolute":const Be=n0(s).getOr(Vr()),qe=Ya(Be),ft=(we=Be.dom.scrollTop)!==null&&we!==void 0?we:0;return I.some({morph:"absolute",positionCss:Du("absolute",Ge(ue.style,"left").map(gt=>F.x-qe.x),Ge(ue.style,"top").map(gt=>F.y-qe.y+ft),Ge(ue.style,"right").map(gt=>qe.right-F.right),Ge(ue.style,"bottom").map(gt=>qe.bottom-F.bottom))});default:return I.none()}}),L1=(s,F,Z)=>$_(s,F,Z).filter(({box:ue})=>F0(Z.getModes(),ue,F)).bind(({box:ue})=>vb(s,ue,Z)),gd=s=>{switch(s.location){case"top":return I.some({morph:"fixed",positionCss:Du("fixed",I.some(s.leftX),I.some(s.topY),I.none(),I.none())});case"bottom":return I.some({morph:"fixed",positionCss:Du("fixed",I.some(s.leftX),I.none(),I.none(),I.some(s.bottomY))});default:return I.none()}},U_=(s,F,Z)=>{const ue=Ya(s),we=xl(),Be=zx(Z.getModes(),{win:we,box:ue},F);return Be.location==="top"||Be.location==="bottom"?(Nx(s,ue,F,Z,Be),gd(Be)):I.none()},yb=(s,F,Z)=>L1(s,F,Z).orThunk(()=>F.optScrollEnv.bind(ue=>$_(s,F,Z)).bind(({box:ue,location:we})=>{const Be=xl(),qe=R1({win:Be,box:ue}),ft=we==="top"?pg(Be,qe,F):P1(Be,qe,F);return gd(ft)})),Th=(s,F,Z)=>{const ue=s.element;return wt(Na(ue,"position"),"fixed")?yb(ue,F,Z):U_(ue,F,Z)},Kf=(s,F,Z)=>{const ue=s.element;return $_(ue,F,Z).bind(({box:we})=>vb(ue,we,Z))},ny=(s,F,Z,ue)=>{const we=Ya(s),Be=xl(),qe=R1({win:Be,box:we}),ft=ue(Be,qe,F);return ft.location==="bottom"||ft.location==="top"?(V_(s,we,F,Z,ft),gd(ft)):I.none()},I1=(s,F,Z)=>{Z.setDocked(!1),q(["left","right","top","bottom","position"],ue=>ma(s.element,ue)),F.onUndocked(s)},cf=(s,F,Z,ue)=>{const we=ue.position==="fixed";Z.setDocked(we),dg(s.element,ue),(we?F.onDocked:F.onUndocked)(s)},Em=(s,F,Z,ue,we=!1)=>{F.contextual.each(Be=>{Be.lazyContext(s).each(qe=>{const ft=ty(qe,ue.bounds);ft!==Z.isVisible()&&(Z.setVisible(ft),we&&!ft?(M1(s.element,[Be.fadeOutClass]),Be.onHide(s)):(ft?ey:hg)(s,Be))})})},$x=(s,F,Z,ue,we)=>{Em(s,F,Z,ue,!0),cf(s,F,Z,we.positionCss)},Nd=(s,F,Z,ue,we)=>{switch(we.morph){case"static":return I1(s,F,Z);case"absolute":return cf(s,F,Z,we.positionCss);case"fixed":return $x(s,F,Z,ue,we)}},ry=(s,F,Z)=>{const ue=F.lazyViewport(s);Em(s,F,Z,ue),Th(s,ue,Z).each(we=>{Nd(s,F,Z,ue,we)})},HO=(s,F,Z)=>{const ue=s.element;Z.setDocked(!1);const we=F.lazyViewport(s);Kf(s,we,Z).each(Be=>{switch(Be.morph){case"static":{I1(s,F,Z);break}case"absolute":{cf(s,F,Z,Be.positionCss);break}}}),Z.setVisible(!0),F.contextual.each(Be=>{th(ue,[Be.fadeInClass,Be.fadeOutClass,Be.transitionClass]),Be.onShow(s)}),Vx(s,F,Z)},Vx=(s,F,Z)=>{s.getSystem().isConnected()&&ry(s,F,Z)},D1=(s,F,Z)=>{Z.isDocked()&&HO(s,F,Z)},j_=s=>(F,Z,ue)=>{const we=Z.lazyViewport(F);ny(F.element,we,ue,s).each(qe=>{$x(F,Z,ue,we,qe)})},oy=j_(pg),bb=j_(P1);var dp=Object.freeze({__proto__:null,refresh:Vx,reset:D1,isDocked:(s,F,Z)=>Z.isDocked(),getModes:(s,F,Z)=>Z.getModes(),setModes:(s,F,Z,ue)=>Z.setModes(ue),forceDockToTop:oy,forceDockToBottom:bb}),Q_=Object.freeze({__proto__:null,events:(s,F)=>hl([Wv(sp(),(Z,ue)=>{s.contextual.each(we=>{$l(Z.element,we.transitionClass)&&(th(Z.element,[we.transitionClass,we.fadeInClass]),(F.isVisible()?we.onShown:we.onHidden)(Z)),ue.stop()})}),fo(S1(),(Z,ue)=>{Vx(Z,s,F)}),fo(k1(),(Z,ue)=>{Vx(Z,s,F)}),fo(Tm(),(Z,ue)=>{D1(Z,s,F)})])});const Vp=(s,F)=>{const ue=(F||document).createElement("div");return ue.innerHTML=s,bo(Pt.fromDom(ue))},nh=s=>s.dom.innerHTML,B1=(s,F)=>{const ue=go(s).dom,we=Pt.fromDom(ue.createDocumentFragment()),Be=Vp(F,ue);ks(we,Be),Uf(s),Pu(s,we)},z1=s=>{const F=Pt.fromTag("div"),Z=Pt.fromDom(s.dom.cloneNode(!0));return Pu(F,Z),nh(F)},iy=(s,F)=>Pt.fromDom(s.dom.cloneNode(F)),qO=s=>iy(s,!1),_S=s=>iy(s,!0),F1=s=>{if(Zn(s))return"#shadow-root";{const F=qO(s);return z1(F)}},rh=s=>F1(s),H_="unknown";var nc;(function(s){s[s.STOP=0]="STOP",s[s.NORMAL=1]="NORMAL",s[s.LOGGING=2]="LOGGING"})(nc||(nc={}));const $0=xi({}),vd=(s,F)=>{const Z=[],ue=new Date().getTime();return{logEventCut:(we,Be,qe)=>{Z.push({outcome:"cut",target:Be,purpose:qe})},logEventStopped:(we,Be,qe)=>{Z.push({outcome:"stopped",target:Be,purpose:qe})},logNoParent:(we,Be,qe)=>{Z.push({outcome:"no-parent",target:Be,purpose:qe})},logEventNoHandlers:(we,Be)=>{Z.push({outcome:"no-handlers-left",target:Be})},logEventResponse:(we,Be,qe)=>{Z.push({outcome:"response",purpose:qe,target:Be})},write:()=>{const we=new Date().getTime();X(["mousemove","mouseover","mouseout",zp()],s)||console.log(s,{event:s,time:we-ue,target:F.dom,sequence:oe(Z,Be=>X(["cut","stopped","response"],Be.outcome)?"{"+Be.purpose+"} "+Be.outcome+" at ("+rh(Be.target)+")":Be.outcome)})}}},wS=(s,F,Z)=>{switch(Ge($0.get(),s).orThunk(()=>{const we=ke($0.get());return Oe(we,Be=>s.indexOf(Be)>-1?I.some($0.get()[Be]):I.none())}).getOr(nc.NORMAL)){case nc.NORMAL:return Z(Ch());case nc.LOGGING:{const we=vd(s,F),Be=Z(we);return we.write(),Be}case nc.STOP:return!0}},N1=["alloy/data/Fields","alloy/debugging/Debugging"],r0=()=>{const s=new Error;if(s.stack!==void 0){const F=s.stack.split(` -`);return ce(F,Z=>Z.indexOf("alloy")>0&&!te(N1,ue=>Z.indexOf(ue)>-1)).getOr(H_)}else return H_},gg={logEventCut:v,logEventStopped:v,logNoParent:v,logEventNoHandlers:v,logEventResponse:v,write:v},oh=(s,F,Z)=>wS(s,F,Z),Ch=x(gg),Z_=x([Sn("menu"),Sn("selectedMenu")]),q_=x([Sn("item"),Sn("selectedItem")]);x(Mi(q_().concat(Z_())));const V0=x(Mi(q_())),Up=zo("initSize",[Sn("numColumns"),Sn("numRows")]),W_=()=>rr("markers",V0()),U0=()=>zo("markers",[Sn("backgroundMenu")].concat(Z_()).concat(q_())),jp=s=>zo("markers",oe(s,Sn)),o0=(s,F,Z)=>(r0(),Ln(F,F,Z,mt(ue=>Hi.value((...we)=>ue.apply(void 0,we))))),Ra=s=>o0("onHandler",s,Xc(v)),yd=s=>o0("onKeyboardHandler",s,Xc(I.none)),Zh=s=>o0("onHandler",s,Ka()),i0=s=>o0("onKeyboardHandler",s,Ka()),Il=(s,F)=>On(s,x(F)),WO=s=>On(s,R),$1=x(Up);var V1=[Pi("contextual",[Pr("fadeInClass"),Pr("fadeOutClass"),Pr("transitionClass"),$o("lazyContext"),Ra("onShow"),Ra("onShown"),Ra("onHide"),Ra("onHidden")]),Pa("lazyViewport",()=>({bounds:xl(),optScrollEnv:I.none()})),Ls("modes",["top","bottom"],ne),Ra("onDocked"),Ra("onUndocked")],ay=Object.freeze({__proto__:null,init:s=>{const F=xi(!1),Z=xi(!0),ue=os(),we=xi(s.modes),Be=()=>`docked: ${F.get()}, visible: ${Z.get()}, modes: ${we.get().join(",")}`;return kh({isDocked:F.get,setDocked:F.set,getInitialPos:ue.get,setInitialPos:ue.set,clearInitialPos:ue.clear,isVisible:Z.get,setVisible:Z.set,getModes:we.get,setModes:we.set,readState:Be})}});const Dl=lf({fields:V1,name:"docking",active:Q_,apis:dp,state:ay}),Ol=(s,F,Z)=>so(F,s.element)&&!so(F,Z),OS=hl([Rx(km(),(s,F)=>{const Z=F.event,ue=Z.originator,we=Z.target;return Ol(s,ue,we)?(console.warn(km()+` did not get interpreted by the desired target. +Required: `+F.join(", "));return on[qe].apply(null,gt)},log:on=>{console.log(on,{constructors:F,constructor:qe,params:gt})}}}}),Z}};Ds.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const ec=s=>{const F=[],Z=[];return q(s,ue=>{ue.fold(we=>{F.push(we)},we=>{Z.push(we)})}),{errors:F,values:Z}},Tc=(s,F)=>{const Z={};return We(s,(ue,we)=>{X(F,we)||(Z[we]=ue)}),Z},op=(s,F)=>({[s]:F}),ip=s=>{const F={};return q(s,Z=>{F[Z.key]=Z.value}),F},Hs=(s,F)=>Tc(s,F),wh=(s,F)=>op(s,F),pd=s=>ip(s),qf=(s,F)=>s.length===0?Hi.value(F):Hi.value(nl(F,Id.apply(void 0,s))),tc=s=>Hi.error(ve(s)),Wf=(s,F)=>{const Z=ec(s);return Z.errors.length>0?tc(Z.errors):qf(Z.values,F)},Rl=s=>u(s)?s:D,cg=(s,F,Z)=>{let ue=s.dom;const we=Rl(Z);for(;ue.parentNode;){ue=ue.parentNode;const Be=Pt.fromDom(ue),qe=F(Be);if(qe.isSome())return qe;if(we(Be))break}return I.none()},E0=(s,F,Z)=>{const ue=F(s),we=Rl(Z);return ue.orThunk(()=>we(s)?I.none():cg(s,F,we))},xm=(s,F)=>so(s.element,F.event.target),Cx={can:k,abort:D,run:v},eh=s=>{if(!pt(s,"can")&&!pt(s,"abort")&&!pt(s,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(s,null,2)+" does not have can, abort, or run!");return{...Cx,...s}},Ax=(s,F)=>(...Z)=>se(s,(ue,we)=>ue&&F(we).apply(void 0,Z),!0),Wg=(s,F)=>(...Z)=>se(s,(ue,we)=>ue||F(we).apply(void 0,Z),!1),Mx=s=>u(s)?{can:k,abort:D,run:s}:s,k1=s=>{const F=Ax(s,we=>we.can),Z=Wg(s,we=>we.abort);return{can:F,abort:Z,run:(...we)=>{q(s,Be=>{Be.run.apply(void 0,we)})}}},oc=x,_m=oc("touchstart"),Yg=oc("touchmove"),wm=oc("touchend"),ub=oc("touchcancel"),Oh=oc("mousedown"),Ex=oc("mousemove"),Tf=oc("mouseout"),Hv=oc("mouseup"),Om=oc("mouseover"),Sm=oc("focusin"),ap=oc("focusout"),Bp=oc("keydown"),P0=oc("keyup"),ug=oc("input"),Zv=oc("change"),R0=oc("click"),C_=oc("transitioncancel"),sp=oc("transitionend"),A_=oc("transitionstart"),fb=oc("selectstart"),Fl=s=>x("alloy."+s),Yf={tap:Fl("tap")},km=Fl("focus"),Xg=Fl("blur.post"),Gg=Fl("paste.post"),lp=Fl("receive"),cp=Fl("execute"),db=Fl("focus.item"),up=Yf.tap,Xf=Fl("longpress"),L0=Fl("sandbox.close"),Px=Fl("typeahead.cancel"),zp=Fl("system.init"),Kg=Fl("system.touchmove"),M_=Fl("system.touchend"),T1=Fl("system.scroll"),Tm=Fl("system.resize"),zd=Fl("system.attached"),fp=Fl("system.detached"),I0=Fl("system.dismissRequested"),E_=Fl("system.repositionRequested"),Jg=Fl("focusmanager.shifted"),P_=Fl("slotcontainer.visibility"),C1=Fl("system.external.element.scroll"),zO=Fl("change.tab"),xu=Fl("dismiss.tab"),Cm=Fl("highlight"),D0=Fl("dehighlight"),Sa=(s,F)=>{hb(s,s.element,F,{})},Ri=(s,F,Z)=>{hb(s,s.element,F,Z)},Fp=s=>{Sa(s,cp())},qv=(s,F,Z)=>{hb(s,F,Z,{})},hb=(s,F,Z,ue)=>{const we={target:F,...ue};s.getSystem().triggerEvent(Z,F,we)},A1=(s,F,Z,ue)=>{const we={...ue,target:F};s.getSystem().triggerEvent(Z,F,we)},Np=(s,F,Z,ue)=>{s.getSystem().triggerEvent(Z,F,ue.event)},pl=s=>pd(s),FO=(s,F)=>({key:s,value:eh({abort:F})}),Rx=(s,F)=>({key:s,value:eh({can:F})}),B0=s=>({key:s,value:eh({run:(F,Z)=>{Z.event.prevent()}})}),fo=(s,F)=>({key:s,value:eh({run:F})}),e0=(s,F,Z)=>({key:s,value:eh({run:(ue,we)=>{F.apply(void 0,[ue,we].concat(Z))}})}),_S=s=>F=>fo(s,F),fg=s=>F=>({key:s,value:eh({run:(Z,ue)=>{xm(Z,ue)&&F(Z,ue)}})}),R_=(s,F)=>fo(s,(Z,ue)=>{Z.getSystem().getByUid(F).each(we=>{Np(we,we.element,s,ue)})}),Fd=(s,F,Z)=>{const ue=F.partUids[Z];return R_(s,ue)},L_=(s,F)=>fo(s,(Z,ue)=>{const we=ue.event,Be=Z.getSystem().getByDom(we.target).getOrThunk(()=>E0(we.target,ft=>Z.getSystem().getByDom(ft).toOptional(),D).getOr(Z));F(Z,Be,ue)}),Am=s=>fo(s,(F,Z)=>{Z.cut()}),I_=s=>fo(s,(F,Z)=>{Z.stop()}),Wv=(s,F)=>fg(s)(F),Ll=fg(zd()),Sh=fg(fp()),NO=fg(zp()),$p=_S(cp()),Lx=(s,F,Z)=>{const ue=Z.toString(),we=ue.indexOf(")")+1,Be=ue.indexOf("("),qe=ue.substring(Be+1,we-1).split(/,\s*/);return s.toFunctionAnnotation=()=>({name:F,parameters:Yv(qe.slice(0,1).concat(qe.slice(3)))}),s},Yv=s=>oe(s,F=>yt(F,"/*")?F.substring(0,F.length-2):F),Xv=(s,F)=>{const Z=s.toString(),ue=Z.indexOf(")")+1,we=Z.indexOf("("),Be=Z.substring(we+1,ue-1).split(/,\s*/);return s.toFunctionAnnotation=()=>({name:F,parameters:Yv(Be)}),s},pb=(s,F)=>{const Z=F.toString(),ue=Z.indexOf(")")+1,we=Z.indexOf("("),Be=Z.substring(we+1,ue-1).split(/,\s*/);return s.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:Yv(Be.slice(1))}),s},Cf=s=>({classes:y(s.classes)?[]:s.classes,attributes:y(s.attributes)?{}:s.attributes,styles:y(s.styles)?{}:s.styles}),$O=(s,F)=>({...s,attributes:{...s.attributes,...F.attributes},styles:{...s.styles,...F.styles},classes:s.classes.concat(F.classes)}),M1=(s,F,Z)=>$p(ue=>{Z(ue,s,F)}),E1=(s,F,Z)=>NO((ue,we)=>{Z(ue,s,F)}),md=(s,F,Z,ue,we,Be)=>{const qe=Ol(s),ft=Pi(F,[ds("config",s)]);return Gv(qe,ft,F,Z,ue,we,Be)},D_=(s,F,Z,ue,we,Be)=>{const qe=s,ft=Pi(F,[Lo("config",s)]);return Gv(qe,ft,F,Z,ue,we,Be)},VO=(s,F,Z)=>Lx((we,...Be)=>{const qe=[we].concat(Be);return we.config({name:x(s)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+s+". Using API: "+Z)},ft=>{const gt=Array.prototype.slice.call(qe,1);return F.apply(void 0,[we,ft.config,ft.state].concat(gt))})},Z,F),B_=s=>({key:s,value:void 0}),Gv=(s,F,Z,ue,we,Be,qe)=>{const ft=on=>pt(on,Z)?on[Z]():I.none(),gt=Ue(we,(on,yn)=>VO(Z,on,yn)),$t={...Ue(Be,(on,yn)=>Xv(on,yn)),...gt,revoke:T(B_,Z),config:on=>{const yn=cn(Z+"-config",s,on);return{key:Z,value:{config:yn,me:$t,configAsRaw:iu(()=>cn(Z+"-config",s,on)),initialConfig:on,state:qe}}},schema:x(F),exhibit:(on,yn)=>en(ft(on),Ge(ue,"exhibit"),(wn,Mn)=>Mn(yn,wn.config,wn.state)).getOrThunk(()=>Cf({})),name:x(Z),handlers:on=>ft(on).map(yn=>Ge(ue,"events").getOr(()=>({}))(yn.config,yn.state)).getOr({})};return $t},Gf={init:()=>kh({readState:x("No State required")})},kh=s=>s,Bo=s=>pd(s),Ix=Ol([Sn("fields"),Sn("name"),mr("active",{}),mr("apis",{}),mr("state",Gf),mr("extra",{})]),lf=s=>{const F=cn("Creating behaviour: "+s.name,Ix,s);return md(F.fields,F.name,F.active,F.apis,F.extra,F.state)},mb=Ol([Sn("branchKey"),Sn("branches"),Sn("name"),mr("active",{}),mr("apis",{}),mr("state",Gf),mr("extra",{})]),gd=s=>{const F=cn("Creating behaviour: "+s.name,mb,s);return D_(xn(F.branchKey,F.branches),F.name,F.active,F.apis,F.extra,F.state)},Nl=x(void 0),dg=(s,F)=>{const Z=ao(s,F);return Z===void 0||Z===""?[]:Z.split(" ")},Dx=(s,F,Z)=>{const we=dg(s,F).concat([Z]);return fr(s,F,we.join(" ")),!0},UO=(s,F,Z)=>{const ue=me(dg(s,F),we=>we!==Z);return ue.length>0?fr(s,F,ue.join(" ")):po(s,F),!1},t0=s=>s.dom.classList!==void 0,gb=s=>dg(s,"class"),Mm=(s,F)=>Dx(s,"class",F),jO=(s,F)=>UO(s,"class",F),z_=(s,F)=>X(gb(s),F)?jO(s,F):Mm(s,F),Sl=(s,F)=>{t0(s)?s.dom.classList.add(F):Mm(s,F)},Kv=s=>{(t0(s)?s.dom.classList:gb(s)).length===0&&po(s,"class")},fc=(s,F)=>{t0(s)?s.dom.classList.remove(F):jO(s,F),Kv(s)},Jv=(s,F)=>{const Z=t0(s)?s.dom.classList.toggle(F):z_(s,F);return Kv(s),Z},$l=(s,F)=>t0(s)&&s.dom.classList.contains(F),P1=(s,F)=>{q(F,Z=>{Sl(s,Z)})},th=(s,F)=>{q(F,Z=>{fc(s,Z)})},Bx=(s,F)=>{q(F,Z=>{Jv(s,Z)})},ic=(s,F)=>_e(F,Z=>$l(s,Z)),F_=s=>{const F=s.dom.classList,Z=new Array(F.length);for(let ue=0;uet0(s)?F_(s):gb(s),Du=(s,F,Z,ue,we)=>{const Be=qe=>qe+"px";return{position:s,left:F.map(Be),top:Z.map(Be),right:ue.map(Be),bottom:we.map(Be)}},su=s=>({...s,position:I.some(s.position)}),hg=(s,F)=>{mo(s,su(F))},n0=s=>(wt(Na(s,"position"),"fixed")?I.none():Qr(s)).orThunk(()=>{const ue=Pt.fromTag("span");return br(s).bind(we=>{Pu(we,ue);const Be=Qr(ue);return zl(ue),Be})}),N_=s=>n0(s).map(pc).getOrThunk(()=>Ws(0,0)),ey=(s,F)=>{const Z=s.element;Sl(Z,F.transitionClass),fc(Z,F.fadeOutClass),Sl(Z,F.fadeInClass),F.onShow(s)},pg=(s,F)=>{const Z=s.element;Sl(Z,F.transitionClass),fc(Z,F.fadeInClass),Sl(Z,F.fadeOutClass),F.onHide(s)},ty=(s,F)=>s.yF.y,R1=(s,F)=>s.y>=F.y,z0=(s,F)=>s.bottom<=F.bottom,mg=(s,F,Z)=>({location:"top",leftX:F,topY:Z.bounds.y-s.y}),L1=(s,F,Z)=>({location:"bottom",leftX:F,bottomY:s.bottom-Z.bounds.bottom}),I1=s=>s.box.x-s.win.x,zx=(s,F,Z)=>{const ue=F.win,we=F.box,Be=I1(F);return Oe(s,qe=>{switch(qe){case"bottom":return z0(we,Z.bounds)?I.none():I.some(L1(ue,Be,Z));case"top":return R1(we,Z.bounds)?I.none():I.some(mg(ue,Be,Z));default:return I.none()}}).getOr({location:"no-dock"})},F0=(s,F,Z)=>_e(s,ue=>{switch(ue){case"bottom":return z0(F,Z.bounds);case"top":return R1(F,Z.bounds)}}),vb=(s,F)=>{const Z=F.optScrollEnv.fold(x(s.bounds.y),ue=>ue.scrollElmTop+(s.bounds.y-ue.currentScrollTop));return Ws(s.bounds.x,Z)},Fx=(s,F)=>{const Z=F.optScrollEnv.fold(x(s.y),ue=>s.y+ue.currentScrollTop-ue.scrollElmTop);return Ws(s.x,Z)},$_=(s,F,Z)=>Z.getInitialPos().map(ue=>{const we=vb(ue,F);return{box:ms(we.left,we.top,cc(s),Ql(s)),location:ue.location}}),Nx=(s,F,Z,ue,we)=>{const Be=Fx(F,Z),qe=ms(Be.left,Be.top,F.width,F.height);ue.setInitialPos({style:us(s),position:Aa(s,"position")||"static",bounds:qe,location:we.location})},V_=(s,F,Z,ue,we)=>{ue.getInitialPos().fold(()=>Nx(s,F,Z,ue,we),()=>v)},yb=(s,F,Z)=>Z.getInitialPos().bind(ue=>{var we;switch(Z.clearInitialPos(),ue.position){case"static":return I.some({morph:"static"});case"absolute":const Be=n0(s).getOr(Vr()),qe=Ya(Be),ft=(we=Be.dom.scrollTop)!==null&&we!==void 0?we:0;return I.some({morph:"absolute",positionCss:Du("absolute",Ge(ue.style,"left").map(gt=>F.x-qe.x),Ge(ue.style,"top").map(gt=>F.y-qe.y+ft),Ge(ue.style,"right").map(gt=>qe.right-F.right),Ge(ue.style,"bottom").map(gt=>qe.bottom-F.bottom))});default:return I.none()}}),D1=(s,F,Z)=>$_(s,F,Z).filter(({box:ue})=>F0(Z.getModes(),ue,F)).bind(({box:ue})=>yb(s,ue,Z)),vd=s=>{switch(s.location){case"top":return I.some({morph:"fixed",positionCss:Du("fixed",I.some(s.leftX),I.some(s.topY),I.none(),I.none())});case"bottom":return I.some({morph:"fixed",positionCss:Du("fixed",I.some(s.leftX),I.none(),I.none(),I.some(s.bottomY))});default:return I.none()}},U_=(s,F,Z)=>{const ue=Ya(s),we=wl(),Be=zx(Z.getModes(),{win:we,box:ue},F);return Be.location==="top"||Be.location==="bottom"?(Nx(s,ue,F,Z,Be),vd(Be)):I.none()},bb=(s,F,Z)=>D1(s,F,Z).orThunk(()=>F.optScrollEnv.bind(ue=>$_(s,F,Z)).bind(({box:ue,location:we})=>{const Be=wl(),qe=I1({win:Be,box:ue}),ft=we==="top"?mg(Be,qe,F):L1(Be,qe,F);return vd(ft)})),Th=(s,F,Z)=>{const ue=s.element;return wt(Na(ue,"position"),"fixed")?bb(ue,F,Z):U_(ue,F,Z)},Kf=(s,F,Z)=>{const ue=s.element;return $_(ue,F,Z).bind(({box:we})=>yb(ue,we,Z))},ny=(s,F,Z,ue)=>{const we=Ya(s),Be=wl(),qe=I1({win:Be,box:we}),ft=ue(Be,qe,F);return ft.location==="bottom"||ft.location==="top"?(V_(s,we,F,Z,ft),vd(ft)):I.none()},B1=(s,F,Z)=>{Z.setDocked(!1),q(["left","right","top","bottom","position"],ue=>ga(s.element,ue)),F.onUndocked(s)},cf=(s,F,Z,ue)=>{const we=ue.position==="fixed";Z.setDocked(we),hg(s.element,ue),(we?F.onDocked:F.onUndocked)(s)},Em=(s,F,Z,ue,we=!1)=>{F.contextual.each(Be=>{Be.lazyContext(s).each(qe=>{const ft=ty(qe,ue.bounds);ft!==Z.isVisible()&&(Z.setVisible(ft),we&&!ft?(P1(s.element,[Be.fadeOutClass]),Be.onHide(s)):(ft?ey:pg)(s,Be))})})},$x=(s,F,Z,ue,we)=>{Em(s,F,Z,ue,!0),cf(s,F,Z,we.positionCss)},Nd=(s,F,Z,ue,we)=>{switch(we.morph){case"static":return B1(s,F,Z);case"absolute":return cf(s,F,Z,we.positionCss);case"fixed":return $x(s,F,Z,ue,we)}},ry=(s,F,Z)=>{const ue=F.lazyViewport(s);Em(s,F,Z,ue),Th(s,ue,Z).each(we=>{Nd(s,F,Z,ue,we)})},HO=(s,F,Z)=>{const ue=s.element;Z.setDocked(!1);const we=F.lazyViewport(s);Kf(s,we,Z).each(Be=>{switch(Be.morph){case"static":{B1(s,F,Z);break}case"absolute":{cf(s,F,Z,Be.positionCss);break}}}),Z.setVisible(!0),F.contextual.each(Be=>{th(ue,[Be.fadeInClass,Be.fadeOutClass,Be.transitionClass]),Be.onShow(s)}),Vx(s,F,Z)},Vx=(s,F,Z)=>{s.getSystem().isConnected()&&ry(s,F,Z)},z1=(s,F,Z)=>{Z.isDocked()&&HO(s,F,Z)},j_=s=>(F,Z,ue)=>{const we=Z.lazyViewport(F);ny(F.element,we,ue,s).each(qe=>{$x(F,Z,ue,we,qe)})},oy=j_(mg),xb=j_(L1);var dp=Object.freeze({__proto__:null,refresh:Vx,reset:z1,isDocked:(s,F,Z)=>Z.isDocked(),getModes:(s,F,Z)=>Z.getModes(),setModes:(s,F,Z,ue)=>Z.setModes(ue),forceDockToTop:oy,forceDockToBottom:xb}),Q_=Object.freeze({__proto__:null,events:(s,F)=>pl([Wv(sp(),(Z,ue)=>{s.contextual.each(we=>{$l(Z.element,we.transitionClass)&&(th(Z.element,[we.transitionClass,we.fadeInClass]),(F.isVisible()?we.onShown:we.onHidden)(Z)),ue.stop()})}),fo(T1(),(Z,ue)=>{Vx(Z,s,F)}),fo(C1(),(Z,ue)=>{Vx(Z,s,F)}),fo(Tm(),(Z,ue)=>{z1(Z,s,F)})])});const Vp=(s,F)=>{const ue=(F||document).createElement("div");return ue.innerHTML=s,bo(Pt.fromDom(ue))},nh=s=>s.dom.innerHTML,F1=(s,F)=>{const ue=go(s).dom,we=Pt.fromDom(ue.createDocumentFragment()),Be=Vp(F,ue);Ts(we,Be),Uf(s),Pu(s,we)},N1=s=>{const F=Pt.fromTag("div"),Z=Pt.fromDom(s.dom.cloneNode(!0));return Pu(F,Z),nh(F)},iy=(s,F)=>Pt.fromDom(s.dom.cloneNode(F)),qO=s=>iy(s,!1),wS=s=>iy(s,!0),$1=s=>{if(Zn(s))return"#shadow-root";{const F=qO(s);return N1(F)}},rh=s=>$1(s),H_="unknown";var nc;(function(s){s[s.STOP=0]="STOP",s[s.NORMAL=1]="NORMAL",s[s.LOGGING=2]="LOGGING"})(nc||(nc={}));const $0=xi({}),yd=(s,F)=>{const Z=[],ue=new Date().getTime();return{logEventCut:(we,Be,qe)=>{Z.push({outcome:"cut",target:Be,purpose:qe})},logEventStopped:(we,Be,qe)=>{Z.push({outcome:"stopped",target:Be,purpose:qe})},logNoParent:(we,Be,qe)=>{Z.push({outcome:"no-parent",target:Be,purpose:qe})},logEventNoHandlers:(we,Be)=>{Z.push({outcome:"no-handlers-left",target:Be})},logEventResponse:(we,Be,qe)=>{Z.push({outcome:"response",purpose:qe,target:Be})},write:()=>{const we=new Date().getTime();X(["mousemove","mouseover","mouseout",zp()],s)||console.log(s,{event:s,time:we-ue,target:F.dom,sequence:oe(Z,Be=>X(["cut","stopped","response"],Be.outcome)?"{"+Be.purpose+"} "+Be.outcome+" at ("+rh(Be.target)+")":Be.outcome)})}}},OS=(s,F,Z)=>{switch(Ge($0.get(),s).orThunk(()=>{const we=ke($0.get());return Oe(we,Be=>s.indexOf(Be)>-1?I.some($0.get()[Be]):I.none())}).getOr(nc.NORMAL)){case nc.NORMAL:return Z(Ch());case nc.LOGGING:{const we=yd(s,F),Be=Z(we);return we.write(),Be}case nc.STOP:return!0}},V1=["alloy/data/Fields","alloy/debugging/Debugging"],r0=()=>{const s=new Error;if(s.stack!==void 0){const F=s.stack.split(` +`);return ce(F,Z=>Z.indexOf("alloy")>0&&!te(V1,ue=>Z.indexOf(ue)>-1)).getOr(H_)}else return H_},vg={logEventCut:v,logEventStopped:v,logNoParent:v,logEventNoHandlers:v,logEventResponse:v,write:v},oh=(s,F,Z)=>OS(s,F,Z),Ch=x(vg),Z_=x([Sn("menu"),Sn("selectedMenu")]),q_=x([Sn("item"),Sn("selectedItem")]);x(Mi(q_().concat(Z_())));const V0=x(Mi(q_())),Up=zo("initSize",[Sn("numColumns"),Sn("numRows")]),W_=()=>rr("markers",V0()),U0=()=>zo("markers",[Sn("backgroundMenu")].concat(Z_()).concat(q_())),jp=s=>zo("markers",oe(s,Sn)),o0=(s,F,Z)=>(r0(),Ln(F,F,Z,mt(ue=>Hi.value((...we)=>ue.apply(void 0,we))))),Ra=s=>o0("onHandler",s,Xc(v)),bd=s=>o0("onKeyboardHandler",s,Xc(I.none)),Zh=s=>o0("onHandler",s,Ka()),i0=s=>o0("onKeyboardHandler",s,Ka()),Il=(s,F)=>On(s,x(F)),WO=s=>On(s,R),U1=x(Up);var j1=[Pi("contextual",[Pr("fadeInClass"),Pr("fadeOutClass"),Pr("transitionClass"),$o("lazyContext"),Ra("onShow"),Ra("onShown"),Ra("onHide"),Ra("onHidden")]),Pa("lazyViewport",()=>({bounds:wl(),optScrollEnv:I.none()})),Ls("modes",["top","bottom"],ne),Ra("onDocked"),Ra("onUndocked")],ay=Object.freeze({__proto__:null,init:s=>{const F=xi(!1),Z=xi(!0),ue=os(),we=xi(s.modes),Be=()=>`docked: ${F.get()}, visible: ${Z.get()}, modes: ${we.get().join(",")}`;return kh({isDocked:F.get,setDocked:F.set,getInitialPos:ue.get,setInitialPos:ue.set,clearInitialPos:ue.clear,isVisible:Z.get,setVisible:Z.set,getModes:we.get,setModes:we.set,readState:Be})}});const Dl=lf({fields:j1,name:"docking",active:Q_,apis:dp,state:ay}),kl=(s,F,Z)=>so(F,s.element)&&!so(F,Z),SS=pl([Rx(km(),(s,F)=>{const Z=F.event,ue=Z.originator,we=Z.target;return kl(s,ue,we)?(console.warn(km()+` did not get interpreted by the desired target. Originator: `+rh(ue)+` Target: `+rh(we)+` -Check the `+km()+" event handlers"),!1):!0})]);var Y_=Object.freeze({__proto__:null,events:OS});let Pm=0;const fi=s=>{const Z=new Date().getTime(),ue=Math.floor(Math.random()*1e9);return Pm++,s+"_"+ue+Pm+String(Z)},SS=x("alloy-id-"),YO=x("data-alloy-id"),jx=SS(),X_=YO(),kS=(s,F)=>{const Z=fi(jx+s);return xb(F,Z),Z},xb=(s,F)=>{Object.defineProperty(s.dom,X_,{value:F,writable:!0})},sy=s=>{const F=Kn(s)?s.dom[X_]:null;return I.from(F)},j0=s=>fi(s),TS=R,Rm=s=>{const F=we=>`The component must be in a context to execute: ${we}`+(s?` -`+rh(s().element)+" is not in context.":""),Z=we=>()=>{throw new Error(F(we))},ue=we=>()=>{console.warn(F(we))};return{debugInfo:x("fake"),triggerEvent:ue("triggerEvent"),triggerFocus:ue("triggerFocus"),triggerEscape:ue("triggerEscape"),broadcast:ue("broadcast"),broadcastOn:ue("broadcastOn"),broadcastEvent:ue("broadcastEvent"),build:Z("build"),buildOrPatch:Z("buildOrPatch"),addToWorld:Z("addToWorld"),removeFromWorld:Z("removeFromWorld"),addToGui:Z("addToGui"),removeFromGui:Z("removeFromGui"),getByUid:Z("getByUid"),getByDom:Z("getByDom"),isConnected:D}},Qx=Rm(),Ah=fi("alloy-premade"),Hx=s=>(Object.defineProperty(s.element.dom,Ah,{value:s.uid,writable:!0}),wh(Ah,s)),ih=s=>ht(s.dom,Ah),G_=s=>Ge(s,Ah),Cc=s=>hb((F,...Z)=>s(F.getApis(),F,...Z),s),XO=(s,F)=>{const Z=oe(F,we=>Pi(we.name(),[Sn("config"),mr("state",Gf)])),ue=jt("component.behaviours",Mi(Z),s.behaviours).fold(we=>{throw new Error(sn(we)+` +Check the `+km()+" event handlers"),!1):!0})]);var Y_=Object.freeze({__proto__:null,events:SS});let Pm=0;const fi=s=>{const Z=new Date().getTime(),ue=Math.floor(Math.random()*1e9);return Pm++,s+"_"+ue+Pm+String(Z)},kS=x("alloy-id-"),YO=x("data-alloy-id"),jx=kS(),X_=YO(),TS=(s,F)=>{const Z=fi(jx+s);return _b(F,Z),Z},_b=(s,F)=>{Object.defineProperty(s.dom,X_,{value:F,writable:!0})},sy=s=>{const F=Kn(s)?s.dom[X_]:null;return I.from(F)},j0=s=>fi(s),CS=R,Rm=s=>{const F=we=>`The component must be in a context to execute: ${we}`+(s?` +`+rh(s().element)+" is not in context.":""),Z=we=>()=>{throw new Error(F(we))},ue=we=>()=>{console.warn(F(we))};return{debugInfo:x("fake"),triggerEvent:ue("triggerEvent"),triggerFocus:ue("triggerFocus"),triggerEscape:ue("triggerEscape"),broadcast:ue("broadcast"),broadcastOn:ue("broadcastOn"),broadcastEvent:ue("broadcastEvent"),build:Z("build"),buildOrPatch:Z("buildOrPatch"),addToWorld:Z("addToWorld"),removeFromWorld:Z("removeFromWorld"),addToGui:Z("addToGui"),removeFromGui:Z("removeFromGui"),getByUid:Z("getByUid"),getByDom:Z("getByDom"),isConnected:D}},Qx=Rm(),Ah=fi("alloy-premade"),Hx=s=>(Object.defineProperty(s.element.dom,Ah,{value:s.uid,writable:!0}),wh(Ah,s)),ih=s=>ht(s.dom,Ah),G_=s=>Ge(s,Ah),Cc=s=>pb((F,...Z)=>s(F.getApis(),F,...Z),s),XO=(s,F)=>{const Z=oe(F,we=>Pi(we.name(),[Sn("config"),mr("state",Gf)])),ue=jt("component.behaviours",Mi(Z),s.behaviours).fold(we=>{throw new Error(sn(we)+` Complete spec: -`+JSON.stringify(s,null,2))},R);return{list:F,data:Ue(ue,we=>{const Be=we.map(qe=>({config:qe.config,state:qe.state.init(qe.config)}));return x(Be)})}},yc=s=>s.list,GO=s=>s.data,Zx=(s,F)=>{const Z={};return We(s,(ue,we)=>{We(ue,(Be,qe)=>{const ft=Ge(Z,qe).getOr([]);Z[qe]=ft.concat([F(we,Be)])})}),Z},_b=(s,F,Z,ue)=>{const we={...F};q(Z,$t=>{we[$t.name()]=$t.exhibit(s,ue)});const Be=Zx(we,($t,on)=>({name:$t,modification:on})),qe=$t=>he($t,(on,yn)=>({...yn.modification,...on}),{}),ft=he(Be.classes,($t,on)=>on.modification.concat($t),[]),gt=qe(Be.attributes),At=qe(Be.styles);return Tf({classes:ft,attributes:gt,styles:At})},K_=(s,F,Z,ue)=>{try{const we=ze(Z,(Be,qe)=>{const ft=Be[F],gt=qe[F],At=ue.indexOf(ft),$t=ue.indexOf(gt);if(At===-1)throw new Error("The ordering for "+s+" does not have an entry for "+ft+`. +`+JSON.stringify(s,null,2))},R);return{list:F,data:Ue(ue,we=>{const Be=we.map(qe=>({config:qe.config,state:qe.state.init(qe.config)}));return x(Be)})}},yc=s=>s.list,GO=s=>s.data,Zx=(s,F)=>{const Z={};return We(s,(ue,we)=>{We(ue,(Be,qe)=>{const ft=Ge(Z,qe).getOr([]);Z[qe]=ft.concat([F(we,Be)])})}),Z},wb=(s,F,Z,ue)=>{const we={...F};q(Z,$t=>{we[$t.name()]=$t.exhibit(s,ue)});const Be=Zx(we,($t,on)=>({name:$t,modification:on})),qe=$t=>he($t,(on,yn)=>({...yn.modification,...on}),{}),ft=he(Be.classes,($t,on)=>on.modification.concat($t),[]),gt=qe(Be.attributes),At=qe(Be.styles);return Cf({classes:ft,attributes:gt,styles:At})},K_=(s,F,Z,ue)=>{try{const we=ze(Z,(Be,qe)=>{const ft=Be[F],gt=qe[F],At=ue.indexOf(ft),$t=ue.indexOf(gt);if(At===-1)throw new Error("The ordering for "+s+" does not have an entry for "+ft+`. Order specified: `+JSON.stringify(ue,null,2));if($t===-1)throw new Error("The ordering for "+s+" does not have an entry for "+gt+`. -Order specified: `+JSON.stringify(ue,null,2));return At<$t?-1:$t({handler:s,purpose:F}),J_=(s,F)=>({cHandler:s,purpose:F}),Lm=(s,F)=>J_(T.apply(void 0,[s.handler].concat(F)),s.purpose),qh=s=>s.cHandler,U1=(s,F)=>({name:s,handler:F}),Kc=(s,F)=>{const Z={};return q(s,ue=>{Z[ue.name()]=ue.handlers(F)}),Z},j1=(s,F,Z)=>{const ue={...Z,...Kc(F,s)};return Zx(ue,U1)},Qp=(s,F,Z,ue)=>{const we=j1(s,Z,ue);return Q1(we,F)},ly=s=>{const F=Mx(s);return(Z,ue,...we)=>{const Be=[Z,ue].concat(we);F.abort.apply(void 0,Be)?ue.stop():F.can.apply(void 0,Be)&&F.run.apply(void 0,Be)}},cy=(s,F)=>Hi.error(["The event ("+s+`) has more than one behaviour that listens to it. +Order specified: `+JSON.stringify(ue,null,2));return At<$t?-1:$t({handler:s,purpose:F}),J_=(s,F)=>({cHandler:s,purpose:F}),Lm=(s,F)=>J_(T.apply(void 0,[s.handler].concat(F)),s.purpose),qh=s=>s.cHandler,Q1=(s,F)=>({name:s,handler:F}),Kc=(s,F)=>{const Z={};return q(s,ue=>{Z[ue.name()]=ue.handlers(F)}),Z},H1=(s,F,Z)=>{const ue={...Z,...Kc(F,s)};return Zx(ue,Q1)},Qp=(s,F,Z,ue)=>{const we=H1(s,Z,ue);return Z1(we,F)},ly=s=>{const F=Mx(s);return(Z,ue,...we)=>{const Be=[Z,ue].concat(we);F.abort.apply(void 0,Be)?ue.stop():F.can.apply(void 0,Be)&&F.run.apply(void 0,Be)}},cy=(s,F)=>Hi.error(["The event ("+s+`) has more than one behaviour that listens to it. When this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]). -The behaviours that can trigger it are: `+JSON.stringify(oe(F,Z=>Z.name),null,2)]),wb=(s,F,Z)=>{const ue=F[Z];return ue?K_("Event: "+Z,"name",s,ue).map(we=>{const Be=oe(we,qe=>qe.handler);return O1(Be)}):cy(Z,s)},Q1=(s,F)=>{const Z=je(s,(ue,we)=>(ue.length===1?Hi.value(ue[0].handler):wb(ue,F,we)).map(qe=>{const ft=ly(qe),gt=ue.length>1?me(F[we],At=>te(ue,$t=>$t.name===At)).join(" > "):ue[0].name;return wh(we,qx(ft,gt))}));return Wf(Z,{})},bc="alloy.base.behaviour",KO=Mi([Ln("dom","dom",Ka(),Mi([Sn("tag"),mr("styles",{}),mr("classes",[]),mr("attributes",{}),Hr("value"),Hr("innerHtml")])),Sn("components"),Sn("uid"),mr("events",{}),mr("apis",{}),Ln("eventOrder","eventOrder",Dp({[cp()]:["disabling",bc,"toggling","typeaheadevents"],[km()]:[bc,"focusing","keying"],[zp()]:[bc,"disabling","toggling","representing"],[cg()]:[bc,"representing","streaming","invalidating"],[fp()]:[bc,"representing","item-events","toolbar-button-events","tooltipping"],[Oh()]:["focusing",bc,"item-type-events"],[_m()]:["focusing",bc,"item-type-events"],[Om()]:["item-type-events","tooltipping"],[lp()]:["receiving","reflecting","tooltipping"]}),le()),Hr("domModification")]),ew=s=>jt("custom.definition",KO,s),Q0=s=>({...s.dom,uid:s.uid,domChildren:oe(s.components,F=>F.element)}),Nc=s=>s.domModification.fold(()=>Tf({}),Tf),vg=s=>s.events,qr=s=>s.dom.value,N=(s,F)=>{if(F===void 0)throw new Error("Value.set was undefined");s.dom.value=F},G=(s,F,Z)=>Bn(s,F).map(we=>{if(Z.exists(qe=>!so(qe,we))){const qe=Z.map(ar).getOr("span"),ft=Pt.fromTag(qe);return Eu(we,ft),ft}else return we}),fe=(s,F,Z)=>{Z.fold(()=>Pu(s,F),ue=>{so(ue,F)||(Eu(ue,F),zl(ue))})},Ae=(s,F,Z)=>{const ue=oe(F,Z),we=bo(s);return q(we.slice(ue.length),zl),ue},Qe=(s,F,Z,ue)=>{const we=Bn(s,F),Be=ue(Z,we),qe=G(s,F,we);return fe(s,Be.element,qe),Be},et=(s,F,Z)=>Ae(s,F,(ue,we)=>Qe(s,we,ue,Z)),ut=(s,F)=>Ae(s,F,(Z,ue)=>{const we=Bn(s,ue);return fe(s,Z,we),Z}),Tt=(s,F)=>{const Z=ke(s),ue=ke(F),we=Te(ue,Z),Be=Ee(s,(qe,ft)=>!ht(F,ft)||qe!==F[ft]).t;return{toRemove:we,toSet:Be}},Bt=(s,F)=>{const{class:Z,style:ue,...we}=qo(F),{toSet:Be,toRemove:qe}=Tt(s.attributes,we),ft=()=>{q(qe,kr=>po(F,kr)),Eo(F,Be)},gt=cs(F),{toSet:At,toRemove:$t}=Tt(s.styles,gt),on=()=>{q($t,kr=>ma(F,kr)),ra(F,At)},yn=QO(F),wn=Te(yn,s.classes),Mn=Te(s.classes,yn),Xn=()=>{M1(F,Mn),th(F,wn)},Br=kr=>{B1(F,kr)},or=()=>{const kr=s.domChildren;ut(F,kr)},Mr=()=>{const kr=F,yo=s.value.getOrUndefined();yo!==qr(kr)&&N(kr,yo??"")};return ft(),Xn(),on(),s.innerHtml.fold(or,Br),Mr(),F},rn=s=>{const F=Pt.fromTag(s.tag);Eo(F,s.attributes),M1(F,s.classes),ra(F,s.styles),s.innerHtml.each(ue=>B1(F,ue));const Z=s.domChildren;return ks(F,Z),s.value.each(ue=>{N(F,ue)}),F},an=(s,F)=>{try{const Z=Bt(s,F);return I.some(Z)}catch{return I.none()}},_n=s=>s.innerHtml.isSome()&&s.domChildren.length>0,Dn=(s,F)=>{const Z=we=>ar(we)===s.tag&&!_n(s)&&!ih(we),ue=F.filter(Z).bind(we=>an(s,we)).getOrThunk(()=>rn(s));return xb(ue,s.uid),ue},Cn=s=>{const F=Ge(s,"behaviours").getOr({});return ye(ke(F),Z=>{const ue=F[Z];return a(ue)?[ue.me]:[]})},Jn=(s,F)=>XO(s,F),lr=s=>{const F=Cn(s);return Jn(s,F)},Ar=(s,F,Z)=>{const ue=Q0(s),we=Nc(s),Be={"alloy.base.modification":we},qe=F.length>0?_b(Z,Be,F,ue):we;return $O(ue,qe)},Or=(s,F,Z)=>{const ue={"alloy.base.behaviour":vg(s)};return Qp(Z,s.eventOrder,F,ue).getOrDie()},jr=(s,F)=>{const Z=()=>kr,ue=xi(Qx),we=Nt(ew(s)),Be=lr(s),qe=yc(Be),ft=GO(Be),gt=Ar(we,qe,ft),At=Dn(gt,F),$t=Or(we,qe,ft),on=xi(we.components),yn=yo=>{ue.set(yo)},wn=()=>{ue.set(Rm(Z))},Mn=()=>{const yo=bo(At),Xr=ye(yo,No=>ue.get().getByDom(No).fold(()=>[],Ie));on.set(Xr)},Xn=yo=>{const Xr=ft;return(u(Xr[yo.name()])?Xr[yo.name()]:()=>{throw new Error("Could not find "+yo.name()+" in "+JSON.stringify(s,null,2))})()},Br=yo=>u(ft[yo.name()]),or=()=>we.apis,Mr=yo=>ft[yo]().map(Xr=>Xr.state.readState()).getOr("not enabled"),kr={uid:s.uid,getSystem:ue.get,config:Xn,hasConfigured:Br,spec:s,readState:Mr,getApis:or,connect:yn,disconnect:wn,element:At,syncComponents:Mn,components:on.get,events:$t};return kr},Jr=(s,F)=>{const Z=Ge(s,"components").getOr([]);return F.fold(()=>oe(Z,vi),ue=>oe(Z,(we,Be)=>Ti(we,Bn(ue,Be))))},uo=(s,F)=>{const{events:Z,...ue}=TS(s),we=Jr(ue,F),Be={...ue,events:{...Y_,...Z},components:we};return Hi.value(jr(Be,F))},ro=s=>{const F=Pt.fromText(s);return Po({element:F})},Po=s=>{const F=cn("external.component",_l([Sn("element"),Hr("uid")]),s),Z=xi(Rm()),ue=ft=>{Z.set(ft)},we=()=>{Z.set(Rm(()=>qe))},Be=F.uid.getOrThunk(()=>j0("external"));xb(F.element,Be);const qe={uid:Be,getSystem:Z.get,config:I.none,hasConfigured:D,connect:ue,disconnect:we,getApis:()=>({}),element:F.element,spec:s,readState:x("No state"),syncComponents:v,components:x([]),events:{}};return Hx(qe)},gi=j0,ni=s=>ht(s,"uid"),Ti=(s,F)=>G_(s).getOrThunk(()=>{const Z=ni(s)?s:{uid:gi(""),...s};return uo(Z,F).getOrDie()}),vi=s=>Ti(s,I.none()),na=Hx;var Ji=(s,F,Z,ue,we)=>s(Z,ue)?I.some(Z):u(we)&&we(Z)?I.none():F(Z,ue,we);const La=(s,F,Z)=>{let ue=s.dom;const we=u(Z)?Z:D;for(;ue.parentNode;){ue=ue.parentNode;const Be=Pt.fromDom(ue);if(F(Be))return I.some(Be);if(we(Be))break}return I.none()},ca=(s,F,Z)=>Ji((we,Be)=>Be(we),La,s,F,Z),Zi=(s,F)=>{const Z=s.dom;return Z.parentNode?Bs(Pt.fromDom(Z.parentNode),ue=>!so(s,ue)&&F(ue)):I.none()},Bs=(s,F)=>{const Z=we=>F(Pt.fromDom(we));return ce(s.dom.childNodes,Z).map(Pt.fromDom)},Ja=(s,F)=>{const Z=ue=>{for(let we=0;weca(s,F,Z).isSome(),ka=s=>Co(s),zs=(s,F,Z)=>La(s,ue=>Rr(ue,F),Z),gs=(s,F)=>Zi(s,Z=>Rr(Z,F)),rc=(s,F)=>Bs(s,Z=>Rr(Z,F)),aa=(s,F)=>Co(F,s),Fs=(s,F,Z)=>Ji((we,Be)=>Rr(we,Be),zs,s,F,Z),$c="aria-controls",xc=s=>ca(s,Z=>{if(!Kn(Z))return!1;const ue=ao(Z,"id");return ue!==void 0&&ue.indexOf($c)>-1}).bind(Z=>{const ue=ao(Z,"id"),we=vr(Z);return aa(we,`[${$c}="${ue}"]`)}),xu=()=>{const s=fi($c);return{id:s,link:ue=>{fr(ue,$c,s)},unlink:ue=>{po(ue,$c)}}},qu=(s,F)=>xc(F).exists(Z=>Vc(s,Z)),Vc=(s,F)=>Vl(F,Z=>so(Z,s.element),D)||qu(s,F),pl=(s,F,Z,ue,we,Be,qe,ft=!1)=>({x:s,y:F,bubble:Z,direction:ue,placement:we,restriction:Be,label:`${qe}-${we}`,alwaysFit:ft}),Uc=Ds.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),_u=(s,F,Z,ue,we,Be,qe,ft,gt)=>s.fold(F,Z,ue,we,Be,qe,ft,gt),uf=(s,F,Z,ue)=>s.fold(F,F,ue,ue,F,ue,Z,Z),ff=(s,F,Z,ue)=>s.fold(F,ue,F,ue,Z,Z,F,ue),jc=Uc.southeast,is=Uc.southwest,Vs=Uc.northeast,Ac=Uc.northwest,Bl=Uc.south,Uo=Uc.north,ql=Uc.east,Xs=Uc.west,ac=(s,F,Z,ue)=>{const we=s+F;return we>ue?Z:weMath.min(Math.max(s,F),Z),Mh=(s,F)=>{switch(F){case 1:return s.x;case 0:return s.x+s.width;case 2:return s.y;case 3:return s.y+s.height}},il=(s,F)=>Pe(["left","right","top","bottom"],Z=>Ge(F,Z).map(ue=>Mh(s,ue))),Im=(s,F,Z)=>{const ue=(gt,At)=>F[gt].map($t=>{const on=gt==="top"||gt==="bottom",yn=on?Z.top:Z.left,Mn=(gt==="left"||gt==="top"?Math.max:Math.min)($t,At)+yn;return on?Mc(Mn,s.y,s.bottom):Mc(Mn,s.x,s.right)}).getOr(At),we=ue("left",s.x),Be=ue("top",s.y),qe=ue("right",s.right),ft=ue("bottom",s.bottom);return ms(we,Be,qe-we,ft-Be)},ah="layout",Bu=s=>s.x,Hp=(s,F)=>s.x+s.width/2-F.width/2,dc=(s,F)=>s.x+s.width-F.width,Jf=(s,F)=>s.y-F.height,yg=s=>s.y+s.height,Dm=(s,F)=>s.y+s.height/2-F.height/2,H1=s=>s.x+s.width,Wx=(s,F)=>s.x-F.width,Ec=(s,F,Z)=>pl(Bu(s),yg(s),Z.southeast(),jc(),"southeast",il(s,{left:1,top:3}),ah),Qc=(s,F,Z)=>pl(dc(s,F),yg(s),Z.southwest(),is(),"southwest",il(s,{right:0,top:3}),ah),Hc=(s,F,Z)=>pl(Bu(s),Jf(s,F),Z.northeast(),Vs(),"northeast",il(s,{left:1,bottom:2}),ah),_s=(s,F,Z)=>pl(dc(s,F),Jf(s,F),Z.northwest(),Ac(),"northwest",il(s,{right:0,bottom:2}),ah),Jc=(s,F,Z)=>pl(Hp(s,F),Jf(s,F),Z.north(),Uo(),"north",il(s,{bottom:2}),ah),Pc=(s,F,Z)=>pl(Hp(s,F),yg(s),Z.south(),Bl(),"south",il(s,{top:3}),ah),Z1=(s,F,Z)=>pl(H1(s),Dm(s,F),Z.east(),ql(),"east",il(s,{left:0}),ah),uy=(s,F,Z)=>pl(Wx(s,F),Dm(s,F),Z.west(),Xs(),"west",il(s,{right:1}),ah),q1=()=>[Ec,Qc,Hc,_s,Pc,Jc,Z1,uy],H0=()=>[Qc,Ec,_s,Hc,Pc,Jc,Z1,uy],W1=()=>[Hc,_s,Ec,Qc,Jc,Pc],Y1=()=>[_s,Hc,Qc,Ec,Jc,Pc],X1=()=>[Ec,Qc,Hc,_s,Pc,Jc],Zp=()=>[Qc,Ec,_s,Hc,Pc,Jc],fy=(s,F)=>F.universal?s:me(s,Z=>X(F.channels,Z));var Bm=Object.freeze({__proto__:null,events:s=>hl([fo(lp(),(F,Z)=>{const ue=s.channels,we=ke(ue),Be=Z,qe=fy(we,Be);q(qe,ft=>{const gt=ue[ft],At=gt.schema,$t=cn("channel["+ft+`] data -Receiver: `+rh(F.element),At,Be.data);gt.onReceive(F,$t)})})])}),Ob=[rr("channels",Et(Hi.value,_l([Zh("onReceive"),mr("schema",le())])))];const Wu=lf({fields:Ob,name:"receiving",active:Bm});var G1=Object.freeze({__proto__:null,exhibit:(s,F)=>Tf({classes:[],styles:F.useFixed()?{}:{position:"relative"}})});const bd=(s,F=!1)=>s.dom.focus({preventScroll:F}),a0=s=>s.dom.blur(),dy=s=>{const F=vr(s).dom;return s.dom===F.activeElement},hp=(s=of())=>I.from(s.dom.activeElement).map(Pt.fromDom),xd=s=>hp(vr(s)).filter(F=>s.dom.contains(F.dom)),bg=(s,F)=>{const Z=vr(F),ue=hp(Z).bind(Be=>{const qe=ft=>so(Be,ft);return qe(F)?I.some(F):Ja(F,qe)}),we=s(F);return ue.each(Be=>{hp(Z).filter(qe=>so(qe,Be)).fold(()=>{bd(Be)},v)}),we},Sb=Ds.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),kb=(s,F,Z,ue,we,Be)=>{const qe=F.rect,ft=qe.x-Z,gt=qe.y-ue,At=qe.width,$t=qe.height,on=we-(ft+At),yn=Be-(gt+$t),wn=I.some(ft),Mn=I.some(gt),Xn=I.some(on),Br=I.some(yn),or=I.none();return _u(F.direction,()=>Du(s,wn,Mn,or,or),()=>Du(s,or,Mn,Xn,or),()=>Du(s,wn,or,or,Br),()=>Du(s,or,or,Xn,Br),()=>Du(s,wn,Mn,or,or),()=>Du(s,wn,or,or,Br),()=>Du(s,wn,Mn,or,or),()=>Du(s,or,Mn,Xn,or))},Xx=(s,F)=>s.fold(()=>{const Z=F.rect;return Du("absolute",I.some(Z.x),I.some(Z.y),I.none(),I.none())},(Z,ue,we,Be)=>kb("absolute",F,Z,ue,we,Be),(Z,ue,we,Be)=>kb("fixed",F,Z,ue,we,Be)),Z0=(s,F)=>{const Z=T(Jd,F),ue=s.fold(Z,Z,()=>{const qe=Hl();return Jd(F).translate(-qe.left,-qe.top)}),we=hu(F),Be=Ed(F);return ms(ue.left,ue.top,we,Be)},Tb=(s,F)=>F.fold(()=>s.fold(xl,xl,ms),Z=>s.fold(x(Z),x(Z),()=>{const ue=tw(s,Z.x,Z.y);return ms(ue.left,ue.top,Z.width,Z.height)})),tw=(s,F,Z)=>{const ue=Ws(F,Z),we=()=>{const Be=Hl();return ue.translate(-Be.left,-Be.top)};return s.fold(x(ue),x(ue),we)},hy=(s,F,Z,ue)=>s.fold(F,Z,ue);Sb.none;const eu=Sb.relative,Eh=Sb.fixed,K1=(s,F)=>({anchorBox:s,origin:F}),xg=(s,F)=>K1(s,F),Cb="data-alloy-placement",nw=(s,F)=>{fr(s,Cb,F)},Ab=s=>co(s,Cb),_g=s=>po(s,Cb),J1=Ds.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),py=(s,F)=>{const{x:Z,y:ue,right:we,bottom:Be}=F,{x:qe,y:ft,right:gt,bottom:At,width:$t,height:on}=s,yn=qe>=Z&&qe<=we,wn=ft>=ue&&ft<=Be,Mn=yn&&wn,Xn=gt<=we&>>=Z,Br=At<=Be&&At>=ue,or=Xn&&Br,Mr=Math.min($t,qe>=Z?we-qe:gt-Z),kr=Math.min(on,ft>=ue?Be-ft:At-ue);return{originInBounds:Mn,sizeInBounds:or,visibleW:Mr,visibleH:kr}},Gx=(s,F)=>{const{x:Z,y:ue,right:we,bottom:Be}=F,{x:qe,y:ft,width:gt,height:At}=s,$t=Math.max(Z,we-gt),on=Math.max(ue,Be-At),yn=Mc(qe,Z,$t),wn=Mc(ft,ue,on),Mn=Math.min(yn+gt,we)-yn,Xn=Math.min(wn+At,Be)-wn;return ms(yn,wn,Mn,Xn)},Mb=(s,F,Z)=>{const ue=x(F.bottom-Z.y),we=x(Z.bottom-F.y),Be=uf(s,we,we,ue),qe=x(F.right-Z.x),ft=x(Z.right-F.x);return{maxWidth:ff(s,ft,ft,qe),maxHeight:Be}},ev=(s,F,Z,ue)=>{const we=s.bubble,Be=we.offset,qe=Im(ue,s.restriction,Be),ft=s.x+Be.left,gt=s.y+Be.top,At=ms(ft,gt,F,Z),{originInBounds:$t,sizeInBounds:on,visibleW:yn,visibleH:wn}=py(At,qe),Mn=$t&&on,Xn=Mn?At:Gx(At,qe),Br=Xn.width>0&&Xn.height>0,{maxWidth:or,maxHeight:Mr}=Mb(s.direction,Xn,ue),kr={rect:Xn,maxHeight:Mr,maxWidth:or,direction:s.direction,placement:s.placement,classes:{on:we.classesOn,off:we.classesOff},layout:s.label,testY:gt};return Mn||s.alwaysFit?J1.fit(kr):J1.nofit(kr,yn,wn,Br)},e3=(s,F,Z,ue,we,Be)=>{const qe=ue.width,ft=ue.height,gt=($t,on,yn,wn,Mn)=>{const Xn=$t(Z,ue,we,s,Be),Br=ev(Xn,qe,ft,Be);return Br.fold(x(Br),(or,Mr,kr,yo)=>(Mn===yo?kr>wn||Mr>yn:!Mn&&yo)?Br:J1.nofit(on,yn,wn,Mn))};return se(F,($t,on)=>{const yn=T(gt,on);return $t.fold(x($t),yn)},J1.nofit({rect:Z,maxHeight:ue.height,maxWidth:ue.width,direction:jc(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:Z.y},-1,-1,!1)).fold(R,R)},my=k,_d=(s,F,Z)=>Lp(s,F,my,Z),Kx=(s,F,Z)=>Uh(s,F,my,Z),Jx=ym,e2=["top","bottom","right","left"],Eb="data-alloy-transition-timer",Wh=(s,F)=>ic(s,F.classes),t2=(s,F,Z)=>Z.exists(ue=>{const we=s.mode;return we==="all"?!0:ue[we]!==F[we]}),Pb=(s,F)=>{const Z=ue=>parseFloat(ue).toFixed(3);return nt(F,(ue,we)=>{const Be=s[we].map(Z),qe=ue.map(Z);return!Dt(Be,qe)}).isSome()},zm=s=>{const F=Be=>{const ft=Aa(s,Be).split(/\s*,\s*/);return me(ft,it)},Z=Be=>{if(n(Be)&&/^[\d.]+/.test(Be)){const qe=parseFloat(Be);return yt(Be,"ms")?qe:qe*1e3}else return 0},ue=F("transition-delay"),we=F("transition-duration");return se(we,(Be,qe,ft)=>{const gt=Z(ue[ft])+Z(qe);return Math.max(Be,gt)},0)},rw=(s,F)=>{const Z=js(),ue=js();let we;const Be=At=>{var $t;const on=($t=At.raw.pseudoElement)!==null&&$t!==void 0?$t:"";return so(At.target,s)&&at(on)&&X(e2,At.raw.propertyName)},qe=At=>{if(p(At)||Be(At)){Z.clear(),ue.clear();const $t=At==null?void 0:At.raw.type;(p($t)||$t===sp())&&(clearTimeout(we),po(s,Eb),th(s,F.classes))}},ft=_d(s,A_(),At=>{Be(At)&&(ft.unbind(),Z.set(_d(s,sp(),qe)),ue.set(_d(s,C_(),qe)))}),gt=zm(s);requestAnimationFrame(()=>{we=setTimeout(qe,gt+17),fr(s,Eb,we)})},n2=(s,F)=>{M1(s,F.classes),co(s,Eb).each(Z=>{clearTimeout(parseInt(Z,10)),po(s,Eb)}),rw(s,F)},Fm=(s,F,Z,ue,we,Be)=>{const qe=t2(ue,we,Be);if(qe||Wh(s,ue)){ko(s,"position",Z.position);const ft=Z0(F,s),gt=Xx(F,{...we,rect:ft}),At=Pe(e2,$t=>gt[$t]);Pb(Z,At)&&(mo(s,At),qe&&n2(s,ue),Ku(s))}else th(s,ue.classes)},q0=s=>({width:hu(s),height:Ed(s)}),tv=(s,F,Z,ue)=>{ma(F,"max-height"),ma(F,"max-width");const we=q0(F);return e3(F,ue.preference,s,we,Z,ue.bounds)},nv=(s,F)=>{const Z=F.classes;th(s,Z.off),M1(s,Z.on)},rv=(s,F,Z)=>{const ue=Z.maxHeightFunction;ue(s,F.maxHeight)},t3=(s,F,Z)=>{const ue=Z.maxWidthFunction;ue(s,F.maxWidth)},ow=(s,F,Z)=>{const ue=Xx(Z.origin,F);Z.transition.each(we=>{Fm(s,Z.origin,ue,we,F,Z.lastPlacement)}),dg(s,ue)},iw=(s,F)=>{nw(s,F.placement)},aw=(s,F)=>{Nf(s,Math.floor(F))},gy=x((s,F)=>{aw(s,F),ra(s,{"overflow-x":"hidden","overflow-y":"auto"})}),W0=x((s,F)=>{aw(s,F)}),wg=(s,F,Z)=>s[F]===void 0?Z:s[F],n3=(s,F,Z,ue,we,Be,qe,ft)=>{const gt=wg(qe,"maxHeightFunction",gy()),At=wg(qe,"maxWidthFunction",v),$t=s.anchorBox,on=s.origin,yn={bounds:Tb(on,Be),origin:on,preference:ue,maxHeightFunction:gt,maxWidthFunction:At,lastPlacement:we,transition:ft};return vy($t,F,Z,yn)},vy=(s,F,Z,ue)=>{const we=tv(s,F,Z,ue);return ow(F,we,ue),iw(F,we),nv(F,we),rv(F,we,ue),t3(F,we,ue),{layout:we.layout,placement:we.placement}},sw=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],pp=(s,F,Z,ue=1)=>{const we=s*ue,Be=F*ue,qe=gt=>Ge(Z,gt).getOr([]),ft=(gt,At,$t)=>{const on=Te(sw,$t);return{offset:Ws(gt,At),classesOn:ye($t,qe),classesOff:ye(on,qe)}};return{southeast:()=>ft(-s,F,["top","alignLeft"]),southwest:()=>ft(s,F,["top","alignRight"]),south:()=>ft(-s/2,F,["top","alignCentre"]),northeast:()=>ft(-s,-F,["bottom","alignLeft"]),northwest:()=>ft(s,-F,["bottom","alignRight"]),north:()=>ft(-s/2,-F,["bottom","alignCentre"]),east:()=>ft(s,-F/2,["valignCentre","left"]),west:()=>ft(-s,-F/2,["valignCentre","right"]),insetNortheast:()=>ft(we,Be,["top","alignLeft","inset"]),insetNorthwest:()=>ft(-we,Be,["top","alignRight","inset"]),insetNorth:()=>ft(-we/2,Be,["top","alignCentre","inset"]),insetSoutheast:()=>ft(we,-Be,["bottom","alignLeft","inset"]),insetSouthwest:()=>ft(-we,-Be,["bottom","alignRight","inset"]),insetSouth:()=>ft(-we/2,-Be,["bottom","alignCentre","inset"]),insetEast:()=>ft(-we,-Be/2,["valignCentre","right","inset"]),insetWest:()=>ft(we,-Be/2,["valignCentre","left","inset"])}},r2=()=>pp(0,0,{}),yy=R,Rb=(s,F)=>Z=>wd(Z)==="rtl"?F:s,wd=s=>Aa(s,"direction")==="rtl"?"rtl":"ltr";var Og;(function(s){s.TopToBottom="toptobottom",s.BottomToTop="bottomtotop"})(Og||(Og={}));const s0="data-alloy-vertical-dir",Lb=s=>Vl(s,F=>Kn(F)&&ao(F,"data-alloy-vertical-dir")===Og.BottomToTop),l0=()=>Pi("layouts",[Sn("onLtr"),Sn("onRtl"),Hr("onBottomLtr"),Hr("onBottomRtl")]),Y0=(s,F,Z,ue,we,Be,qe)=>{const ft=qe.map(Lb).getOr(!1),gt=F.layouts.map(wn=>wn.onLtr(s)),At=F.layouts.map(wn=>wn.onRtl(s)),$t=ft?F.layouts.bind(wn=>wn.onBottomLtr.map(Mn=>Mn(s))).or(gt).getOr(we):gt.getOr(Z),on=ft?F.layouts.bind(wn=>wn.onBottomRtl.map(Mn=>Mn(s))).or(At).getOr(Be):At.getOr(ue);return Rb($t,on)(s)},CS=(s,F,Z)=>{const ue=F.hotspot,we=Z0(Z,ue.element),Be=Y0(s.element,F,X1(),Zp(),W1(),Y1(),I.some(F.hotspot.element));return I.some(yy({anchorBox:we,bubble:F.bubble.getOr(r2()),overrides:F.overrides,layouts:Be}))};var r3=[Sn("hotspot"),Hr("bubble"),mr("overrides",{}),l0(),Il("placement",CS)];const o3=(s,F,Z)=>{const ue=tw(Z,F.x,F.y),we=ms(ue.left,ue.top,F.width,F.height),Be=Y0(s.element,F,q1(),H0(),q1(),H0(),I.none());return I.some(yy({anchorBox:we,bubble:F.bubble,overrides:F.overrides,layouts:Be}))};var o2=[Sn("x"),Sn("y"),mr("height",0),mr("width",0),mr("bubble",r2()),mr("overrides",{}),l0(),Il("placement",o3)];const i2=Ds.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),AS=s=>s.fold(R,(F,Z,ue)=>F.translate(-Z,-ue)),Ib=s=>s.fold(R,R),lw=s=>se(s,(F,Z)=>F.translate(Z.left,Z.top),Ws(0,0)),MS=s=>{const F=oe(s,AS);return lw(F)},cw=s=>{const F=oe(s,Ib);return lw(F)},qp=i2.screen,ov=i2.absolute,i3=(s,F,Z)=>{const ue=Yn(Z.root).dom,we=Be=>{const qe=go(Be),ft=go(s.element);return so(qe,ft)};return I.from(ue.frameElement).map(Pt.fromDom).filter(we).map(pc)},Nm=(s,F,Z)=>{const ue=go(s.element),we=Hl(ue),Be=i3(s,F,Z).getOr(we);return ov(Be,we.left,we.top)},uw=(s,F,Z,ue)=>{const we=qp(Ws(s,F));return I.some(zc(we,Z,ue))},ES=(s,F,Z,ue,we)=>s.map(Be=>{const qe=[F,Be.point],ft=hy(ue,()=>cw(qe),()=>cw(qe),()=>MS(qe)),gt=np(ft.left,ft.top,Be.width,Be.height),At=Z.showAbove?W1():X1(),$t=Z.showAbove?Y1():Zp(),on=Y0(we,Z,At,$t,At,$t,I.none());return yy({anchorBox:gt,bubble:Z.bubble.getOr(r2()),overrides:Z.overrides,layouts:on})}),ET=(s,F,Z)=>{const ue=Nm(s,Z,F);return F.node.filter(Er).bind(we=>{const Be=we.dom.getBoundingClientRect(),qe=uw(Be.left,Be.top,Be.width,Be.height),ft=F.node.getOr(s.element);return ES(qe,ue,F,Z,ft)})};var a3=[Sn("node"),Sn("root"),Hr("bubble"),l0(),mr("overrides",{}),mr("showAbove",!1),Il("placement",ET)];const zM="\uFEFF",by=" ",a2={create:(s,F,Z,ue)=>({start:s,soffset:F,finish:Z,foffset:ue})},s3=Ds.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),s2=(s,F,Z,ue)=>s.fold(F,Z,ue),l2=s=>s.fold(R,R,R),FM=s3.before,PT=s3.on,NM=s3.after,l3={before:FM,on:PT,after:NM,cata:s2,getStart:l2},iv=Ds.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),PS=s=>iv.exact(s.start,s.soffset,s.finish,s.foffset),RS=s=>s.match({domRange:F=>Pt.fromDom(F.startContainer),relative:(F,Z)=>l3.getStart(F),exact:(F,Z,ue,we)=>F}),$M=iv.domRange,LS=iv.relative,RT=iv.exact,LT=s=>{const F=RS(s);return Yn(F)},IT=a2.create,c2={domRange:$M,relative:LS,exact:RT,exactFromRange:PS,getWin:LT,range:IT},c3=(s,F)=>{F.fold(Z=>{s.setStartBefore(Z.dom)},(Z,ue)=>{s.setStart(Z.dom,ue)},Z=>{s.setStartAfter(Z.dom)})},Db=(s,F)=>{F.fold(Z=>{s.setEndBefore(Z.dom)},(Z,ue)=>{s.setEnd(Z.dom,ue)},Z=>{s.setEndAfter(Z.dom)})},av=(s,F,Z)=>{const ue=s.document.createRange();return c3(ue,F),Db(ue,Z),ue},fw=(s,F,Z,ue,we)=>{const Be=s.document.createRange();return Be.setStart(F.dom,Z),Be.setEnd(ue.dom,we),Be},u2=s=>({left:s.left,top:s.top,right:s.right,bottom:s.bottom,width:s.width,height:s.height}),VM=s=>{const F=s.getClientRects(),Z=F.length>0?F[0]:s.getBoundingClientRect();return Z.width>0||Z.height>0?I.some(Z).map(u2):I.none()},c0=s=>{const F=s.getBoundingClientRect();return F.width>0||F.height>0?I.some(F).map(u2):I.none()},Wp=Ds.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),u3=(s,F,Z)=>F(Pt.fromDom(Z.startContainer),Z.startOffset,Pt.fromDom(Z.endContainer),Z.endOffset),UM=(s,F)=>F.match({domRange:Z=>({ltr:x(Z),rtl:I.none}),relative:(Z,ue)=>({ltr:iu(()=>av(s,Z,ue)),rtl:iu(()=>I.some(av(s,ue,Z)))}),exact:(Z,ue,we,Be)=>({ltr:iu(()=>fw(s,Z,ue,we,Be)),rtl:iu(()=>I.some(fw(s,we,Be,Z,ue)))})}),DD=(s,F)=>{const Z=F.ltr();return Z.collapsed?F.rtl().filter(we=>we.collapsed===!1).map(we=>Wp.rtl(Pt.fromDom(we.endContainer),we.endOffset,Pt.fromDom(we.startContainer),we.startOffset)).getOrThunk(()=>u3(s,Wp.ltr,Z)):u3(s,Wp.ltr,Z)},Bb=(s,F)=>{const Z=UM(s,F);return DD(s,Z)},f2=(s,F)=>Bb(s,F).match({ltr:(ue,we,Be,qe)=>{const ft=s.document.createRange();return ft.setStart(ue.dom,we),ft.setEnd(Be.dom,qe),ft},rtl:(ue,we,Be,qe)=>{const ft=s.document.createRange();return ft.setStart(Be.dom,qe),ft.setEnd(ue.dom,we),ft}});Wp.ltr,Wp.rtl;const d2=(s,F,Z)=>me(io(s,Z),F),$d=(s,F)=>Kr(F,s),f3=(s,F,Z,ue)=>{const Be=go(s).dom.createRange();return Be.setStart(s.dom,F),Be.setEnd(Z.dom,ue),Be},zb=(s,F,Z,ue)=>{const we=f3(s,F,Z,ue),Be=so(s,Z)&&F===ue;return we.collapsed&&!Be},d3=s=>I.from(s.getSelection()),DT=s=>{if(s.rangeCount>0){const F=s.getRangeAt(0),Z=s.getRangeAt(s.rangeCount-1);return I.some(a2.create(Pt.fromDom(F.startContainer),F.startOffset,Pt.fromDom(Z.endContainer),Z.endOffset))}else return I.none()},IS=s=>{if(s.anchorNode===null||s.focusNode===null)return DT(s);{const F=Pt.fromDom(s.anchorNode),Z=Pt.fromDom(s.focusNode);return zb(F,s.anchorOffset,Z,s.focusOffset)?I.some(a2.create(F,s.anchorOffset,Z,s.focusOffset)):DT(s)}},h3=s=>d3(s).filter(F=>F.rangeCount>0).bind(IS),Af=(s,F)=>{const Z=f2(s,F);return VM(Z)},p3=(s,F)=>{const Z=f2(s,F);return c0(Z)},DS=((s,F)=>{const Z=Be=>{if(!s(Be))throw new Error("Can only get "+F+" value of a "+F+" node");return ue(Be).getOr("")},ue=Be=>s(Be)?I.from(Be.dom.nodeValue):I.none();return{get:Z,getOption:ue,set:(Be,qe)=>{if(!s(Be))throw new Error("Can only set raw "+F+" value of a "+F+" node");Be.dom.nodeValue=qe}}})(_r,"text"),BS=s=>DS.get(s),sv=(s,F)=>({element:s,offset:F}),BT=(s,F)=>{const Z=bo(s);if(Z.length===0)return sv(s,F);if(F_r(s)?sv(s,F):BT(s,F),m3=s=>s.foffset!==void 0,g3=(s,F)=>F.getSelection.getOrThunk(()=>()=>h3(s))().map(ue=>{if(m3(ue)){const we=xy(ue.start,ue.soffset),Be=xy(ue.finish,ue.foffset);return c2.range(we.element,we.offset,Be.element,Be.offset)}else return ue}),zS=(s,F,Z)=>{const ue=Yn(F.root).dom,we=Nm(s,Z,F),Be=g3(ue,F).bind(gt=>{if(m3(gt))return p3(ue,c2.exactFromRange(gt)).orThunk(()=>{const $t=Pt.fromText(zM);Eu(gt.start,$t);const on=Af(ue,c2.exact($t,0,$t,1));return zl($t),on}).bind($t=>uw($t.left,$t.top,$t.width,$t.height));{const At=Ue(gt,on=>on.dom.getBoundingClientRect()),$t={left:Math.min(At.firstCell.left,At.lastCell.left),right:Math.max(At.firstCell.right,At.lastCell.right),top:Math.min(At.firstCell.top,At.lastCell.top),bottom:Math.max(At.firstCell.bottom,At.lastCell.bottom)};return uw($t.left,$t.top,$t.right-$t.left,$t.bottom-$t.top)}}),ft=g3(ue,F).bind(gt=>m3(gt)?Kn(gt.start)?I.some(gt.start):Cr(gt.start):I.some(gt.firstCell)).getOr(s.element);return ES(Be,we,F,Z,ft)};var Fb=[Hr("getSelection"),Sn("root"),Hr("bubble"),l0(),mr("overrides",{}),mr("showAbove",!1),Il("placement",zS)];const h2="link-layout",Od=s=>s.x+s.width,zT=(s,F)=>s.x-F.width,FS=(s,F)=>s.y-F.height+s.height,NS=s=>s.y,FT=(s,F,Z)=>pl(Od(s),NS(s),Z.southeast(),jc(),"southeast",il(s,{left:0,top:2}),h2),$S=(s,F,Z)=>pl(zT(s,F),NS(s),Z.southwest(),is(),"southwest",il(s,{right:1,top:2}),h2),NT=(s,F,Z)=>pl(Od(s),FS(s,F),Z.northeast(),Vs(),"northeast",il(s,{left:0,bottom:3}),h2),$T=(s,F,Z)=>pl(zT(s,F),FS(s,F),Z.northwest(),Ac(),"northwest",il(s,{right:1,bottom:3}),h2),Yp=()=>[FT,$S,NT,$T],lv=()=>[$S,FT,$T,NT],VT=(s,F,Z)=>{const ue=Z0(Z,F.item.element),we=Y0(s.element,F,Yp(),lv(),Yp(),lv(),I.none());return I.some(yy({anchorBox:ue,bubble:r2(),overrides:F.overrides,layouts:we}))};var Nb=[Sn("item"),l0(),mr("overrides",{}),Il("placement",VT)],sh=xn("type",{selection:Fb,node:a3,hotspot:r3,submenu:Nb,makeshift:o2});const mp=[Si("classes",ne),dl("mode","all",["all","layout","placement"])],lh=[mr("useFixed",D),Hr("getBounds")],Xp=[rr("anchor",sh),Pi("transition",mp)],v3=()=>{const s=document.documentElement;return Eh(0,0,s.clientWidth,s.clientHeight)},Gp=s=>{const F=pc(s.element),Z=s.element.dom.getBoundingClientRect();return eu(F.left,F.top,Z.width,Z.height)},$b=(s,F,Z,ue,we,Be)=>{const qe=xg(F.anchorBox,s);return n3(qe,ue.element,F.bubble,F.layouts,we,Z,F.overrides,Be)},jM=(s,F,Z,ue,we)=>{const Be=I.none();UT(s,F,Z,ue,we,Be)},UT=(s,F,Z,ue,we,Be)=>{const qe=cn("placement.info",Mi(Xp),we),ft=qe.anchor,gt=ue.element,At=Z.get(ue.uid);bg(()=>{ko(gt,"position","fixed");const $t=Na(gt,"visibility");ko(gt,"visibility","hidden");const on=F.useFixed()?v3():Gp(s);ft.placement(s,ft,on).each(yn=>{const wn=Be.orThunk(()=>F.getBounds.map(L)),Mn=$b(on,yn,wn,ue,At,qe.transition);Z.set(ue.uid,Mn)}),$t.fold(()=>{ma(gt,"visibility")},yn=>{ko(gt,"visibility",yn)}),Na(gt,"left").isNone()&&Na(gt,"top").isNone()&&Na(gt,"right").isNone()&&Na(gt,"bottom").isNone()&&wt(Na(gt,"position"),"fixed")&&ma(gt,"position")},gt)};var QT=Object.freeze({__proto__:null,position:jM,positionWithinBounds:UT,getMode:(s,F,Z)=>F.useFixed()?"fixed":"absolute",reset:(s,F,Z,ue)=>{const we=ue.element;q(["position","left","right","top","bottom"],Be=>ma(we,Be)),_g(we),Z.clear(ue.uid)}}),US=Object.freeze({__proto__:null,init:()=>{let s={};return kh({readState:()=>s,clear:we=>{a(we)?delete s[we]:s={}},set:(we,Be)=>{s[we]=Be},get:we=>Ge(s,we)})}});const ed=lf({fields:lh,name:"positioning",active:G1,apis:QT,state:US}),jS=s=>s.getSystem().isConnected(),_y=s=>{Sa(s,fp());const F=s.components();q(F,_y)},p2=s=>{const F=s.components();q(F,p2),Sa(s,zd())},QS=(s,F)=>{s.getSystem().addToWorld(F),Er(s.element)&&p2(F)},y3=s=>{_y(s),s.getSystem().removeFromWorld(s)},dw=(s,F)=>{Pu(s.element,F.element)},HS=s=>{q(s.components(),F=>zl(F.element)),Uf(s.element),s.syncComponents()},m2=(s,F,Z)=>{const ue=s.components();HS(s);const we=Z(F),Be=Te(ue,we);q(Be,qe=>{_y(qe),s.getSystem().removeFromWorld(qe)}),q(we,qe=>{jS(qe)?dw(s,qe):(s.getSystem().addToWorld(qe),dw(s,qe),Er(s.element)&&p2(qe))}),s.syncComponents()},ZS=(s,F,Z)=>{const ue=s.components(),we=ye(F,ft=>G_(ft).toArray());q(ue,ft=>{X(we,ft)||y3(ft)});const Be=Z(F),qe=Te(ue,Be);q(qe,ft=>{jS(ft)&&y3(ft)}),q(Be,ft=>{jS(ft)||QS(s,ft)}),s.syncComponents()},X0=(s,F)=>{Vb(s,F,Pu)},Vb=(s,F,Z)=>{s.getSystem().addToWorld(F),Z(s.element,F.element),Er(s.element)&&p2(F),s.syncComponents()},HT=s=>{_y(s),zl(s.element),s.getSystem().removeFromWorld(s)},cv=s=>{const F=br(s.element).bind(Z=>s.getSystem().getByDom(Z).toOptional());HT(s),F.each(Z=>{Z.syncComponents()})},Kp=s=>{const F=s.components();q(F,HT),Uf(s.element),s.syncComponents()},ZT=(s,F)=>{Ub(s,F,Pu)},G0=(s,F)=>{Ub(s,F,ud)},Ub=(s,F,Z)=>{Z(s,F.element);const ue=bo(F.element);q(ue,we=>{F.getByDom(we).each(p2)})},qS=s=>{const F=bo(s.element);q(F,Z=>{s.getByDom(Z).each(_y)}),zl(s.element)},b3=(s,F,Z,ue)=>{Z.get().each(qe=>{Kp(s)});const we=F.getAttachPoint(s);X0(we,s);const Be=s.getSystem().build(ue);return X0(s,Be),Z.set(Be),Be},qT=(s,F,Z,ue)=>{const we=b3(s,F,Z,ue);return F.onOpen(s,we),we},HM=(s,F,Z,ue)=>Z.get().map(()=>b3(s,F,Z,ue)),ZM=(s,F,Z,ue,we)=>{v2(s,F),qT(s,F,Z,ue),we(),x3(s,F)},WT=(s,F,Z)=>{Z.get().each(ue=>{Kp(s),cv(s),F.onClose(s,ue),Z.clear()})},wy=(s,F,Z)=>Z.isOpen(),g2=(s,F,Z,ue)=>wy(s,F,Z)&&Z.get().exists(we=>F.isPartOf(s,we,ue)),hw=(s,F,Z)=>Z.get(),qM=(s,F,Z,ue)=>{Na(s.element,F).fold(()=>{po(s.element,Z)},we=>{fr(s.element,Z,we)}),ko(s.element,F,ue)},WM=(s,F,Z)=>{co(s.element,Z).fold(()=>ma(s.element,F),ue=>ko(s.element,F,ue))},v2=(s,F,Z)=>{const ue=F.getAttachPoint(s);ko(s.element,"position",ed.getMode(ue)),qM(s,"visibility",F.cloakVisibilityAttr,"hidden")},WS=s=>te(["top","left","right","bottom"],F=>Na(s,F).isSome()),x3=(s,F,Z)=>{WS(s.element)||ma(s.element,"position"),WM(s,"visibility",F.cloakVisibilityAttr)};var YS=Object.freeze({__proto__:null,cloak:v2,decloak:x3,open:qT,openWhileCloaked:ZM,close:WT,isOpen:wy,isPartOf:g2,getState:hw,setContent:HM}),y2=Object.freeze({__proto__:null,events:(s,F)=>hl([fo(L0(),(Z,ue)=>{WT(Z,s,F)})])}),GS=[Ra("onOpen"),Ra("onClose"),Sn("isPartOf"),Sn("getAttachPoint"),mr("cloakVisibilityAttr","data-precloak-visibility")],KS=Object.freeze({__proto__:null,init:()=>{const s=os(),F=x("not-implemented");return kh({readState:F,isOpen:s.isSet,clear:s.clear,set:s.set,get:s.get})}});const hs=lf({fields:GS,name:"sandboxing",active:y2,apis:YS,state:KS}),K0=x("dismiss.popups"),jb=x("reposition.popups"),pw=x("mouse.released"),JS=_l([mr("isExtraPart",D),Pi("fireEventInstead",[mr("event",I0())])]),uv=s=>{const F=cn("Dismissal",JS,s);return{[K0()]:{schema:_l([Sn("target")]),onReceive:(Z,ue)=>{hs.isOpen(Z)&&(hs.isPartOf(Z,ue.target)||F.isExtraPart(Z,ue.target)||F.fireEventInstead.fold(()=>hs.close(Z),Be=>Sa(Z,Be.event)))}}}},e5=_l([Pi("fireEventInstead",[mr("event",E_())]),$o("doReposition")]),_3=s=>{const F=cn("Reposition",e5,s);return{[jb()]:{onReceive:Z=>{hs.isOpen(Z)&&F.fireEventInstead.fold(()=>F.doReposition(Z),ue=>Sa(Z,ue.event))}}}},t5=(s,F,Z)=>{F.store.manager.onLoad(s,F,Z)},n5=(s,F,Z)=>{F.store.manager.onUnload(s,F,Z)};var O3=Object.freeze({__proto__:null,onLoad:t5,onUnload:n5,setValue:(s,F,Z,ue)=>{F.store.manager.setValue(s,F,Z,ue)},getValue:(s,F,Z)=>F.store.manager.getValue(s,F,Z),getState:(s,F,Z)=>Z}),x2=Object.freeze({__proto__:null,events:(s,F)=>{const Z=s.resetOnDom?[Ll((ue,we)=>{t5(ue,s,F)}),Sh((ue,we)=>{n5(ue,s,F)})]:[A1(s,F,t5)];return hl(Z)}});const S3=()=>{const s=xi(null),F=()=>({mode:"memory",value:s.get()}),Z=()=>s.get()===null,ue=()=>{s.set(null)};return kh({set:s.set,get:s.get,isNotSet:Z,clear:ue,readState:F})},YM=()=>kh({readState:v}),k3=()=>{const s=xi({}),F=xi({});return kh({readState:()=>({mode:"dataset",dataByValue:s.get(),dataByText:F.get()}),lookup:qe=>Ge(s.get(),qe).orThunk(()=>Ge(F.get(),qe)),update:qe=>{const ft=s.get(),gt=F.get(),At={},$t={};q(qe,on=>{At[on.value]=on,Ge(on,"meta").each(yn=>{Ge(yn,"text").each(wn=>{$t[wn]=on})})}),s.set({...ft,...At}),F.set({...gt,...$t})},clear:()=>{s.set({}),F.set({})}})};var XM=Object.freeze({__proto__:null,memory:S3,dataset:k3,manual:YM,init:s=>s.store.manager.state(s)});const mw=(s,F,Z,ue)=>{const we=F.store;Z.update([ue]),we.setValue(s,ue),F.onSetValue(s,ue)},$m=(s,F,Z)=>{const ue=F.store,we=ue.getDataKey(s);return Z.lookup(we).getOrThunk(()=>ue.getFallbackEntry(we))},Mf=(s,F,Z)=>{F.store.initialValue.each(we=>{mw(s,F,Z,we)})},GM=(s,F,Z)=>{Z.clear()};var u0=[Hr("initialValue"),Sn("getFallbackEntry"),Sn("getDataKey"),Sn("setValue"),Il("manager",{setValue:mw,getValue:$m,onLoad:Mf,onUnload:GM,state:k3})];const KM=(s,F,Z)=>F.store.getValue(s),XT=(s,F,Z,ue)=>{F.store.setValue(s,ue),F.onSetValue(s,ue)},gw=(s,F,Z)=>{F.store.initialValue.each(ue=>{F.store.setValue(s,ue)})};var _2=[Sn("getValue"),mr("setValue",v),Hr("initialValue"),Il("manager",{setValue:XT,getValue:KM,onLoad:gw,onUnload:v,state:Gf.init})];const GT=(s,F,Z,ue)=>{Z.set(ue),F.onSetValue(s,ue)},KT=(s,F,Z)=>Z.get(),BD=(s,F,Z)=>{F.store.initialValue.each(ue=>{Z.isNotSet()&&Z.set(ue)})},zD=(s,F,Z)=>{Z.clear()};var JT=[Hr("initialValue"),Il("manager",{setValue:GT,getValue:KT,onLoad:BD,onUnload:zD,state:S3})],e6=[ys("store",{mode:"memory"},xn("mode",{memory:JT,manual:_2,dataset:u0})),Ra("onSetValue"),mr("resetOnDom",!1)];const hi=lf({fields:e6,name:"representing",active:x2,apis:O3,extra:{setValueFrom:(s,F)=>{const Z=hi.getValue(F);hi.setValue(s,Z)}},state:XM}),Ef=(s,F)=>ol(s,{},oe(F,Z=>vo(Z.name(),"Cannot configure "+Z.name()+" for "+s)).concat([On("dump",R)])),vw=s=>s.dump,Pf=(s,F)=>({...Do(F),...s.dump}),Vm={field:Ef,augment:Pf,get:vw},r5="placeholder",Zb=Ds.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),T3=s=>ht(s,"uiType"),Oy=(s,F,Z,ue)=>s.exists(we=>we!==Z.owner)?Zb.single(!0,x(Z)):Ge(ue,Z.name).fold(()=>{throw new Error("Unknown placeholder component: "+Z.name+` +The behaviours that can trigger it are: `+JSON.stringify(oe(F,Z=>Z.name),null,2)]),Ob=(s,F,Z)=>{const ue=F[Z];return ue?K_("Event: "+Z,"name",s,ue).map(we=>{const Be=oe(we,qe=>qe.handler);return k1(Be)}):cy(Z,s)},Z1=(s,F)=>{const Z=je(s,(ue,we)=>(ue.length===1?Hi.value(ue[0].handler):Ob(ue,F,we)).map(qe=>{const ft=ly(qe),gt=ue.length>1?me(F[we],At=>te(ue,$t=>$t.name===At)).join(" > "):ue[0].name;return wh(we,qx(ft,gt))}));return Wf(Z,{})},bc="alloy.base.behaviour",KO=Mi([Ln("dom","dom",Ka(),Mi([Sn("tag"),mr("styles",{}),mr("classes",[]),mr("attributes",{}),Hr("value"),Hr("innerHtml")])),Sn("components"),Sn("uid"),mr("events",{}),mr("apis",{}),Ln("eventOrder","eventOrder",Dp({[cp()]:["disabling",bc,"toggling","typeaheadevents"],[km()]:[bc,"focusing","keying"],[zp()]:[bc,"disabling","toggling","representing"],[ug()]:[bc,"representing","streaming","invalidating"],[fp()]:[bc,"representing","item-events","toolbar-button-events","tooltipping"],[Oh()]:["focusing",bc,"item-type-events"],[_m()]:["focusing",bc,"item-type-events"],[Om()]:["item-type-events","tooltipping"],[lp()]:["receiving","reflecting","tooltipping"]}),le()),Hr("domModification")]),ew=s=>jt("custom.definition",KO,s),Q0=s=>({...s.dom,uid:s.uid,domChildren:oe(s.components,F=>F.element)}),Nc=s=>s.domModification.fold(()=>Cf({}),Cf),yg=s=>s.events,qr=s=>s.dom.value,N=(s,F)=>{if(F===void 0)throw new Error("Value.set was undefined");s.dom.value=F},G=(s,F,Z)=>Bn(s,F).map(we=>{if(Z.exists(qe=>!so(qe,we))){const qe=Z.map(ar).getOr("span"),ft=Pt.fromTag(qe);return Eu(we,ft),ft}else return we}),fe=(s,F,Z)=>{Z.fold(()=>Pu(s,F),ue=>{so(ue,F)||(Eu(ue,F),zl(ue))})},Ae=(s,F,Z)=>{const ue=oe(F,Z),we=bo(s);return q(we.slice(ue.length),zl),ue},Qe=(s,F,Z,ue)=>{const we=Bn(s,F),Be=ue(Z,we),qe=G(s,F,we);return fe(s,Be.element,qe),Be},et=(s,F,Z)=>Ae(s,F,(ue,we)=>Qe(s,we,ue,Z)),ut=(s,F)=>Ae(s,F,(Z,ue)=>{const we=Bn(s,ue);return fe(s,Z,we),Z}),Tt=(s,F)=>{const Z=ke(s),ue=ke(F),we=Te(ue,Z),Be=Ee(s,(qe,ft)=>!ht(F,ft)||qe!==F[ft]).t;return{toRemove:we,toSet:Be}},Bt=(s,F)=>{const{class:Z,style:ue,...we}=qo(F),{toSet:Be,toRemove:qe}=Tt(s.attributes,we),ft=()=>{q(qe,kr=>po(F,kr)),Eo(F,Be)},gt=us(F),{toSet:At,toRemove:$t}=Tt(s.styles,gt),on=()=>{q($t,kr=>ga(F,kr)),ra(F,At)},yn=QO(F),wn=Te(yn,s.classes),Mn=Te(s.classes,yn),Xn=()=>{P1(F,Mn),th(F,wn)},Br=kr=>{F1(F,kr)},or=()=>{const kr=s.domChildren;ut(F,kr)},Mr=()=>{const kr=F,yo=s.value.getOrUndefined();yo!==qr(kr)&&N(kr,yo??"")};return ft(),Xn(),on(),s.innerHtml.fold(or,Br),Mr(),F},rn=s=>{const F=Pt.fromTag(s.tag);Eo(F,s.attributes),P1(F,s.classes),ra(F,s.styles),s.innerHtml.each(ue=>F1(F,ue));const Z=s.domChildren;return Ts(F,Z),s.value.each(ue=>{N(F,ue)}),F},an=(s,F)=>{try{const Z=Bt(s,F);return I.some(Z)}catch{return I.none()}},_n=s=>s.innerHtml.isSome()&&s.domChildren.length>0,Dn=(s,F)=>{const Z=we=>ar(we)===s.tag&&!_n(s)&&!ih(we),ue=F.filter(Z).bind(we=>an(s,we)).getOrThunk(()=>rn(s));return _b(ue,s.uid),ue},Cn=s=>{const F=Ge(s,"behaviours").getOr({});return ye(ke(F),Z=>{const ue=F[Z];return a(ue)?[ue.me]:[]})},Jn=(s,F)=>XO(s,F),lr=s=>{const F=Cn(s);return Jn(s,F)},Ar=(s,F,Z)=>{const ue=Q0(s),we=Nc(s),Be={"alloy.base.modification":we},qe=F.length>0?wb(Z,Be,F,ue):we;return $O(ue,qe)},Or=(s,F,Z)=>{const ue={"alloy.base.behaviour":yg(s)};return Qp(Z,s.eventOrder,F,ue).getOrDie()},jr=(s,F)=>{const Z=()=>kr,ue=xi(Qx),we=Nt(ew(s)),Be=lr(s),qe=yc(Be),ft=GO(Be),gt=Ar(we,qe,ft),At=Dn(gt,F),$t=Or(we,qe,ft),on=xi(we.components),yn=yo=>{ue.set(yo)},wn=()=>{ue.set(Rm(Z))},Mn=()=>{const yo=bo(At),Xr=ye(yo,No=>ue.get().getByDom(No).fold(()=>[],Ie));on.set(Xr)},Xn=yo=>{const Xr=ft;return(u(Xr[yo.name()])?Xr[yo.name()]:()=>{throw new Error("Could not find "+yo.name()+" in "+JSON.stringify(s,null,2))})()},Br=yo=>u(ft[yo.name()]),or=()=>we.apis,Mr=yo=>ft[yo]().map(Xr=>Xr.state.readState()).getOr("not enabled"),kr={uid:s.uid,getSystem:ue.get,config:Xn,hasConfigured:Br,spec:s,readState:Mr,getApis:or,connect:yn,disconnect:wn,element:At,syncComponents:Mn,components:on.get,events:$t};return kr},Jr=(s,F)=>{const Z=Ge(s,"components").getOr([]);return F.fold(()=>oe(Z,vi),ue=>oe(Z,(we,Be)=>Ti(we,Bn(ue,Be))))},uo=(s,F)=>{const{events:Z,...ue}=CS(s),we=Jr(ue,F),Be={...ue,events:{...Y_,...Z},components:we};return Hi.value(jr(Be,F))},ro=s=>{const F=Pt.fromText(s);return Po({element:F})},Po=s=>{const F=cn("external.component",Ol([Sn("element"),Hr("uid")]),s),Z=xi(Rm()),ue=ft=>{Z.set(ft)},we=()=>{Z.set(Rm(()=>qe))},Be=F.uid.getOrThunk(()=>j0("external"));_b(F.element,Be);const qe={uid:Be,getSystem:Z.get,config:I.none,hasConfigured:D,connect:ue,disconnect:we,getApis:()=>({}),element:F.element,spec:s,readState:x("No state"),syncComponents:v,components:x([]),events:{}};return Hx(qe)},gi=j0,ni=s=>ht(s,"uid"),Ti=(s,F)=>G_(s).getOrThunk(()=>{const Z=ni(s)?s:{uid:gi(""),...s};return uo(Z,F).getOrDie()}),vi=s=>Ti(s,I.none()),na=Hx;var ea=(s,F,Z,ue,we)=>s(Z,ue)?I.some(Z):u(we)&&we(Z)?I.none():F(Z,ue,we);const La=(s,F,Z)=>{let ue=s.dom;const we=u(Z)?Z:D;for(;ue.parentNode;){ue=ue.parentNode;const Be=Pt.fromDom(ue);if(F(Be))return I.some(Be);if(we(Be))break}return I.none()},ca=(s,F,Z)=>ea((we,Be)=>Be(we),La,s,F,Z),Zi=(s,F)=>{const Z=s.dom;return Z.parentNode?Bs(Pt.fromDom(Z.parentNode),ue=>!so(s,ue)&&F(ue)):I.none()},Bs=(s,F)=>{const Z=we=>F(Pt.fromDom(we));return ce(s.dom.childNodes,Z).map(Pt.fromDom)},Ja=(s,F)=>{const Z=ue=>{for(let we=0;weca(s,F,Z).isSome(),Ta=s=>Co(s),zs=(s,F,Z)=>La(s,ue=>Rr(ue,F),Z),gs=(s,F)=>Zi(s,Z=>Rr(Z,F)),rc=(s,F)=>Bs(s,Z=>Rr(Z,F)),aa=(s,F)=>Co(F,s),Fs=(s,F,Z)=>ea((we,Be)=>Rr(we,Be),zs,s,F,Z),$c="aria-controls",xc=s=>ca(s,Z=>{if(!Kn(Z))return!1;const ue=ao(Z,"id");return ue!==void 0&&ue.indexOf($c)>-1}).bind(Z=>{const ue=ao(Z,"id"),we=vr(Z);return aa(we,`[${$c}="${ue}"]`)}),_u=()=>{const s=fi($c);return{id:s,link:ue=>{fr(ue,$c,s)},unlink:ue=>{po(ue,$c)}}},qu=(s,F)=>xc(F).exists(Z=>Vc(s,Z)),Vc=(s,F)=>Vl(F,Z=>so(Z,s.element),D)||qu(s,F),ml=(s,F,Z,ue,we,Be,qe,ft=!1)=>({x:s,y:F,bubble:Z,direction:ue,placement:we,restriction:Be,label:`${qe}-${we}`,alwaysFit:ft}),Uc=Ds.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),wu=(s,F,Z,ue,we,Be,qe,ft,gt)=>s.fold(F,Z,ue,we,Be,qe,ft,gt),uf=(s,F,Z,ue)=>s.fold(F,F,ue,ue,F,ue,Z,Z),ff=(s,F,Z,ue)=>s.fold(F,ue,F,ue,Z,Z,F,ue),jc=Uc.southeast,is=Uc.southwest,Vs=Uc.northeast,Ac=Uc.northwest,Bl=Uc.south,Uo=Uc.north,ql=Uc.east,Xs=Uc.west,ac=(s,F,Z,ue)=>{const we=s+F;return we>ue?Z:weMath.min(Math.max(s,F),Z),Mh=(s,F)=>{switch(F){case 1:return s.x;case 0:return s.x+s.width;case 2:return s.y;case 3:return s.y+s.height}},il=(s,F)=>Pe(["left","right","top","bottom"],Z=>Ge(F,Z).map(ue=>Mh(s,ue))),Im=(s,F,Z)=>{const ue=(gt,At)=>F[gt].map($t=>{const on=gt==="top"||gt==="bottom",yn=on?Z.top:Z.left,Mn=(gt==="left"||gt==="top"?Math.max:Math.min)($t,At)+yn;return on?Mc(Mn,s.y,s.bottom):Mc(Mn,s.x,s.right)}).getOr(At),we=ue("left",s.x),Be=ue("top",s.y),qe=ue("right",s.right),ft=ue("bottom",s.bottom);return ms(we,Be,qe-we,ft-Be)},ah="layout",Bu=s=>s.x,Hp=(s,F)=>s.x+s.width/2-F.width/2,dc=(s,F)=>s.x+s.width-F.width,Jf=(s,F)=>s.y-F.height,bg=s=>s.y+s.height,Dm=(s,F)=>s.y+s.height/2-F.height/2,q1=s=>s.x+s.width,Wx=(s,F)=>s.x-F.width,Ec=(s,F,Z)=>ml(Bu(s),bg(s),Z.southeast(),jc(),"southeast",il(s,{left:1,top:3}),ah),Qc=(s,F,Z)=>ml(dc(s,F),bg(s),Z.southwest(),is(),"southwest",il(s,{right:0,top:3}),ah),Hc=(s,F,Z)=>ml(Bu(s),Jf(s,F),Z.northeast(),Vs(),"northeast",il(s,{left:1,bottom:2}),ah),_s=(s,F,Z)=>ml(dc(s,F),Jf(s,F),Z.northwest(),Ac(),"northwest",il(s,{right:0,bottom:2}),ah),Jc=(s,F,Z)=>ml(Hp(s,F),Jf(s,F),Z.north(),Uo(),"north",il(s,{bottom:2}),ah),Pc=(s,F,Z)=>ml(Hp(s,F),bg(s),Z.south(),Bl(),"south",il(s,{top:3}),ah),W1=(s,F,Z)=>ml(q1(s),Dm(s,F),Z.east(),ql(),"east",il(s,{left:0}),ah),uy=(s,F,Z)=>ml(Wx(s,F),Dm(s,F),Z.west(),Xs(),"west",il(s,{right:1}),ah),Y1=()=>[Ec,Qc,Hc,_s,Pc,Jc,W1,uy],H0=()=>[Qc,Ec,_s,Hc,Pc,Jc,W1,uy],X1=()=>[Hc,_s,Ec,Qc,Jc,Pc],G1=()=>[_s,Hc,Qc,Ec,Jc,Pc],K1=()=>[Ec,Qc,Hc,_s,Pc,Jc],Zp=()=>[Qc,Ec,_s,Hc,Pc,Jc],fy=(s,F)=>F.universal?s:me(s,Z=>X(F.channels,Z));var Bm=Object.freeze({__proto__:null,events:s=>pl([fo(lp(),(F,Z)=>{const ue=s.channels,we=ke(ue),Be=Z,qe=fy(we,Be);q(qe,ft=>{const gt=ue[ft],At=gt.schema,$t=cn("channel["+ft+`] data +Receiver: `+rh(F.element),At,Be.data);gt.onReceive(F,$t)})})])}),Sb=[rr("channels",Et(Hi.value,Ol([Zh("onReceive"),mr("schema",le())])))];const Wu=lf({fields:Sb,name:"receiving",active:Bm});var J1=Object.freeze({__proto__:null,exhibit:(s,F)=>Cf({classes:[],styles:F.useFixed()?{}:{position:"relative"}})});const xd=(s,F=!1)=>s.dom.focus({preventScroll:F}),a0=s=>s.dom.blur(),dy=s=>{const F=vr(s).dom;return s.dom===F.activeElement},hp=(s=of())=>I.from(s.dom.activeElement).map(Pt.fromDom),_d=s=>hp(vr(s)).filter(F=>s.dom.contains(F.dom)),xg=(s,F)=>{const Z=vr(F),ue=hp(Z).bind(Be=>{const qe=ft=>so(Be,ft);return qe(F)?I.some(F):Ja(F,qe)}),we=s(F);return ue.each(Be=>{hp(Z).filter(qe=>so(qe,Be)).fold(()=>{xd(Be)},v)}),we},kb=Ds.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Tb=(s,F,Z,ue,we,Be)=>{const qe=F.rect,ft=qe.x-Z,gt=qe.y-ue,At=qe.width,$t=qe.height,on=we-(ft+At),yn=Be-(gt+$t),wn=I.some(ft),Mn=I.some(gt),Xn=I.some(on),Br=I.some(yn),or=I.none();return wu(F.direction,()=>Du(s,wn,Mn,or,or),()=>Du(s,or,Mn,Xn,or),()=>Du(s,wn,or,or,Br),()=>Du(s,or,or,Xn,Br),()=>Du(s,wn,Mn,or,or),()=>Du(s,wn,or,or,Br),()=>Du(s,wn,Mn,or,or),()=>Du(s,or,Mn,Xn,or))},Xx=(s,F)=>s.fold(()=>{const Z=F.rect;return Du("absolute",I.some(Z.x),I.some(Z.y),I.none(),I.none())},(Z,ue,we,Be)=>Tb("absolute",F,Z,ue,we,Be),(Z,ue,we,Be)=>Tb("fixed",F,Z,ue,we,Be)),Z0=(s,F)=>{const Z=T(Jd,F),ue=s.fold(Z,Z,()=>{const qe=Hl();return Jd(F).translate(-qe.left,-qe.top)}),we=pu(F),Be=Ed(F);return ms(ue.left,ue.top,we,Be)},Cb=(s,F)=>F.fold(()=>s.fold(wl,wl,ms),Z=>s.fold(x(Z),x(Z),()=>{const ue=tw(s,Z.x,Z.y);return ms(ue.left,ue.top,Z.width,Z.height)})),tw=(s,F,Z)=>{const ue=Ws(F,Z),we=()=>{const Be=Hl();return ue.translate(-Be.left,-Be.top)};return s.fold(x(ue),x(ue),we)},hy=(s,F,Z,ue)=>s.fold(F,Z,ue);kb.none;const eu=kb.relative,Eh=kb.fixed,ev=(s,F)=>({anchorBox:s,origin:F}),_g=(s,F)=>ev(s,F),Ab="data-alloy-placement",nw=(s,F)=>{fr(s,Ab,F)},Mb=s=>co(s,Ab),wg=s=>po(s,Ab),tv=Ds.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),py=(s,F)=>{const{x:Z,y:ue,right:we,bottom:Be}=F,{x:qe,y:ft,right:gt,bottom:At,width:$t,height:on}=s,yn=qe>=Z&&qe<=we,wn=ft>=ue&&ft<=Be,Mn=yn&&wn,Xn=gt<=we&>>=Z,Br=At<=Be&&At>=ue,or=Xn&&Br,Mr=Math.min($t,qe>=Z?we-qe:gt-Z),kr=Math.min(on,ft>=ue?Be-ft:At-ue);return{originInBounds:Mn,sizeInBounds:or,visibleW:Mr,visibleH:kr}},Gx=(s,F)=>{const{x:Z,y:ue,right:we,bottom:Be}=F,{x:qe,y:ft,width:gt,height:At}=s,$t=Math.max(Z,we-gt),on=Math.max(ue,Be-At),yn=Mc(qe,Z,$t),wn=Mc(ft,ue,on),Mn=Math.min(yn+gt,we)-yn,Xn=Math.min(wn+At,Be)-wn;return ms(yn,wn,Mn,Xn)},Eb=(s,F,Z)=>{const ue=x(F.bottom-Z.y),we=x(Z.bottom-F.y),Be=uf(s,we,we,ue),qe=x(F.right-Z.x),ft=x(Z.right-F.x);return{maxWidth:ff(s,ft,ft,qe),maxHeight:Be}},nv=(s,F,Z,ue)=>{const we=s.bubble,Be=we.offset,qe=Im(ue,s.restriction,Be),ft=s.x+Be.left,gt=s.y+Be.top,At=ms(ft,gt,F,Z),{originInBounds:$t,sizeInBounds:on,visibleW:yn,visibleH:wn}=py(At,qe),Mn=$t&&on,Xn=Mn?At:Gx(At,qe),Br=Xn.width>0&&Xn.height>0,{maxWidth:or,maxHeight:Mr}=Eb(s.direction,Xn,ue),kr={rect:Xn,maxHeight:Mr,maxWidth:or,direction:s.direction,placement:s.placement,classes:{on:we.classesOn,off:we.classesOff},layout:s.label,testY:gt};return Mn||s.alwaysFit?tv.fit(kr):tv.nofit(kr,yn,wn,Br)},e3=(s,F,Z,ue,we,Be)=>{const qe=ue.width,ft=ue.height,gt=($t,on,yn,wn,Mn)=>{const Xn=$t(Z,ue,we,s,Be),Br=nv(Xn,qe,ft,Be);return Br.fold(x(Br),(or,Mr,kr,yo)=>(Mn===yo?kr>wn||Mr>yn:!Mn&&yo)?Br:tv.nofit(on,yn,wn,Mn))};return se(F,($t,on)=>{const yn=T(gt,on);return $t.fold(x($t),yn)},tv.nofit({rect:Z,maxHeight:ue.height,maxWidth:ue.width,direction:jc(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:Z.y},-1,-1,!1)).fold(R,R)},my=k,wd=(s,F,Z)=>Lp(s,F,my,Z),Kx=(s,F,Z)=>Uh(s,F,my,Z),Jx=ym,e2=["top","bottom","right","left"],Pb="data-alloy-transition-timer",Wh=(s,F)=>ic(s,F.classes),t2=(s,F,Z)=>Z.exists(ue=>{const we=s.mode;return we==="all"?!0:ue[we]!==F[we]}),Rb=(s,F)=>{const Z=ue=>parseFloat(ue).toFixed(3);return nt(F,(ue,we)=>{const Be=s[we].map(Z),qe=ue.map(Z);return!Dt(Be,qe)}).isSome()},zm=s=>{const F=Be=>{const ft=Aa(s,Be).split(/\s*,\s*/);return me(ft,it)},Z=Be=>{if(n(Be)&&/^[\d.]+/.test(Be)){const qe=parseFloat(Be);return yt(Be,"ms")?qe:qe*1e3}else return 0},ue=F("transition-delay"),we=F("transition-duration");return se(we,(Be,qe,ft)=>{const gt=Z(ue[ft])+Z(qe);return Math.max(Be,gt)},0)},rw=(s,F)=>{const Z=js(),ue=js();let we;const Be=At=>{var $t;const on=($t=At.raw.pseudoElement)!==null&&$t!==void 0?$t:"";return so(At.target,s)&&at(on)&&X(e2,At.raw.propertyName)},qe=At=>{if(p(At)||Be(At)){Z.clear(),ue.clear();const $t=At==null?void 0:At.raw.type;(p($t)||$t===sp())&&(clearTimeout(we),po(s,Pb),th(s,F.classes))}},ft=wd(s,A_(),At=>{Be(At)&&(ft.unbind(),Z.set(wd(s,sp(),qe)),ue.set(wd(s,C_(),qe)))}),gt=zm(s);requestAnimationFrame(()=>{we=setTimeout(qe,gt+17),fr(s,Pb,we)})},n2=(s,F)=>{P1(s,F.classes),co(s,Pb).each(Z=>{clearTimeout(parseInt(Z,10)),po(s,Pb)}),rw(s,F)},Fm=(s,F,Z,ue,we,Be)=>{const qe=t2(ue,we,Be);if(qe||Wh(s,ue)){ko(s,"position",Z.position);const ft=Z0(F,s),gt=Xx(F,{...we,rect:ft}),At=Pe(e2,$t=>gt[$t]);Rb(Z,At)&&(mo(s,At),qe&&n2(s,ue),Ku(s))}else th(s,ue.classes)},q0=s=>({width:pu(s),height:Ed(s)}),rv=(s,F,Z,ue)=>{ga(F,"max-height"),ga(F,"max-width");const we=q0(F);return e3(F,ue.preference,s,we,Z,ue.bounds)},ov=(s,F)=>{const Z=F.classes;th(s,Z.off),P1(s,Z.on)},iv=(s,F,Z)=>{const ue=Z.maxHeightFunction;ue(s,F.maxHeight)},t3=(s,F,Z)=>{const ue=Z.maxWidthFunction;ue(s,F.maxWidth)},ow=(s,F,Z)=>{const ue=Xx(Z.origin,F);Z.transition.each(we=>{Fm(s,Z.origin,ue,we,F,Z.lastPlacement)}),hg(s,ue)},iw=(s,F)=>{nw(s,F.placement)},aw=(s,F)=>{Nf(s,Math.floor(F))},gy=x((s,F)=>{aw(s,F),ra(s,{"overflow-x":"hidden","overflow-y":"auto"})}),W0=x((s,F)=>{aw(s,F)}),Og=(s,F,Z)=>s[F]===void 0?Z:s[F],n3=(s,F,Z,ue,we,Be,qe,ft)=>{const gt=Og(qe,"maxHeightFunction",gy()),At=Og(qe,"maxWidthFunction",v),$t=s.anchorBox,on=s.origin,yn={bounds:Cb(on,Be),origin:on,preference:ue,maxHeightFunction:gt,maxWidthFunction:At,lastPlacement:we,transition:ft};return vy($t,F,Z,yn)},vy=(s,F,Z,ue)=>{const we=rv(s,F,Z,ue);return ow(F,we,ue),iw(F,we),ov(F,we),iv(F,we,ue),t3(F,we,ue),{layout:we.layout,placement:we.placement}},sw=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],pp=(s,F,Z,ue=1)=>{const we=s*ue,Be=F*ue,qe=gt=>Ge(Z,gt).getOr([]),ft=(gt,At,$t)=>{const on=Te(sw,$t);return{offset:Ws(gt,At),classesOn:ye($t,qe),classesOff:ye(on,qe)}};return{southeast:()=>ft(-s,F,["top","alignLeft"]),southwest:()=>ft(s,F,["top","alignRight"]),south:()=>ft(-s/2,F,["top","alignCentre"]),northeast:()=>ft(-s,-F,["bottom","alignLeft"]),northwest:()=>ft(s,-F,["bottom","alignRight"]),north:()=>ft(-s/2,-F,["bottom","alignCentre"]),east:()=>ft(s,-F/2,["valignCentre","left"]),west:()=>ft(-s,-F/2,["valignCentre","right"]),insetNortheast:()=>ft(we,Be,["top","alignLeft","inset"]),insetNorthwest:()=>ft(-we,Be,["top","alignRight","inset"]),insetNorth:()=>ft(-we/2,Be,["top","alignCentre","inset"]),insetSoutheast:()=>ft(we,-Be,["bottom","alignLeft","inset"]),insetSouthwest:()=>ft(-we,-Be,["bottom","alignRight","inset"]),insetSouth:()=>ft(-we/2,-Be,["bottom","alignCentre","inset"]),insetEast:()=>ft(-we,-Be/2,["valignCentre","right","inset"]),insetWest:()=>ft(we,-Be/2,["valignCentre","left","inset"])}},r2=()=>pp(0,0,{}),yy=R,Lb=(s,F)=>Z=>Od(Z)==="rtl"?F:s,Od=s=>Aa(s,"direction")==="rtl"?"rtl":"ltr";var Sg;(function(s){s.TopToBottom="toptobottom",s.BottomToTop="bottomtotop"})(Sg||(Sg={}));const s0="data-alloy-vertical-dir",Ib=s=>Vl(s,F=>Kn(F)&&ao(F,"data-alloy-vertical-dir")===Sg.BottomToTop),l0=()=>Pi("layouts",[Sn("onLtr"),Sn("onRtl"),Hr("onBottomLtr"),Hr("onBottomRtl")]),Y0=(s,F,Z,ue,we,Be,qe)=>{const ft=qe.map(Ib).getOr(!1),gt=F.layouts.map(wn=>wn.onLtr(s)),At=F.layouts.map(wn=>wn.onRtl(s)),$t=ft?F.layouts.bind(wn=>wn.onBottomLtr.map(Mn=>Mn(s))).or(gt).getOr(we):gt.getOr(Z),on=ft?F.layouts.bind(wn=>wn.onBottomRtl.map(Mn=>Mn(s))).or(At).getOr(Be):At.getOr(ue);return Lb($t,on)(s)},AS=(s,F,Z)=>{const ue=F.hotspot,we=Z0(Z,ue.element),Be=Y0(s.element,F,K1(),Zp(),X1(),G1(),I.some(F.hotspot.element));return I.some(yy({anchorBox:we,bubble:F.bubble.getOr(r2()),overrides:F.overrides,layouts:Be}))};var r3=[Sn("hotspot"),Hr("bubble"),mr("overrides",{}),l0(),Il("placement",AS)];const o3=(s,F,Z)=>{const ue=tw(Z,F.x,F.y),we=ms(ue.left,ue.top,F.width,F.height),Be=Y0(s.element,F,Y1(),H0(),Y1(),H0(),I.none());return I.some(yy({anchorBox:we,bubble:F.bubble,overrides:F.overrides,layouts:Be}))};var o2=[Sn("x"),Sn("y"),mr("height",0),mr("width",0),mr("bubble",r2()),mr("overrides",{}),l0(),Il("placement",o3)];const i2=Ds.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),MS=s=>s.fold(R,(F,Z,ue)=>F.translate(-Z,-ue)),Db=s=>s.fold(R,R),lw=s=>se(s,(F,Z)=>F.translate(Z.left,Z.top),Ws(0,0)),ES=s=>{const F=oe(s,MS);return lw(F)},cw=s=>{const F=oe(s,Db);return lw(F)},qp=i2.screen,av=i2.absolute,i3=(s,F,Z)=>{const ue=Yn(Z.root).dom,we=Be=>{const qe=go(Be),ft=go(s.element);return so(qe,ft)};return I.from(ue.frameElement).map(Pt.fromDom).filter(we).map(pc)},Nm=(s,F,Z)=>{const ue=go(s.element),we=Hl(ue),Be=i3(s,F,Z).getOr(we);return av(Be,we.left,we.top)},uw=(s,F,Z,ue)=>{const we=qp(Ws(s,F));return I.some(zc(we,Z,ue))},PS=(s,F,Z,ue,we)=>s.map(Be=>{const qe=[F,Be.point],ft=hy(ue,()=>cw(qe),()=>cw(qe),()=>ES(qe)),gt=np(ft.left,ft.top,Be.width,Be.height),At=Z.showAbove?X1():K1(),$t=Z.showAbove?G1():Zp(),on=Y0(we,Z,At,$t,At,$t,I.none());return yy({anchorBox:gt,bubble:Z.bubble.getOr(r2()),overrides:Z.overrides,layouts:on})}),PT=(s,F,Z)=>{const ue=Nm(s,Z,F);return F.node.filter(Er).bind(we=>{const Be=we.dom.getBoundingClientRect(),qe=uw(Be.left,Be.top,Be.width,Be.height),ft=F.node.getOr(s.element);return PS(qe,ue,F,Z,ft)})};var a3=[Sn("node"),Sn("root"),Hr("bubble"),l0(),mr("overrides",{}),mr("showAbove",!1),Il("placement",PT)];const FM="\uFEFF",by=" ",a2={create:(s,F,Z,ue)=>({start:s,soffset:F,finish:Z,foffset:ue})},s3=Ds.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),s2=(s,F,Z,ue)=>s.fold(F,Z,ue),l2=s=>s.fold(R,R,R),NM=s3.before,RT=s3.on,$M=s3.after,l3={before:NM,on:RT,after:$M,cata:s2,getStart:l2},sv=Ds.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),RS=s=>sv.exact(s.start,s.soffset,s.finish,s.foffset),LS=s=>s.match({domRange:F=>Pt.fromDom(F.startContainer),relative:(F,Z)=>l3.getStart(F),exact:(F,Z,ue,we)=>F}),VM=sv.domRange,IS=sv.relative,LT=sv.exact,IT=s=>{const F=LS(s);return Yn(F)},DT=a2.create,c2={domRange:VM,relative:IS,exact:LT,exactFromRange:RS,getWin:IT,range:DT},c3=(s,F)=>{F.fold(Z=>{s.setStartBefore(Z.dom)},(Z,ue)=>{s.setStart(Z.dom,ue)},Z=>{s.setStartAfter(Z.dom)})},Bb=(s,F)=>{F.fold(Z=>{s.setEndBefore(Z.dom)},(Z,ue)=>{s.setEnd(Z.dom,ue)},Z=>{s.setEndAfter(Z.dom)})},lv=(s,F,Z)=>{const ue=s.document.createRange();return c3(ue,F),Bb(ue,Z),ue},fw=(s,F,Z,ue,we)=>{const Be=s.document.createRange();return Be.setStart(F.dom,Z),Be.setEnd(ue.dom,we),Be},u2=s=>({left:s.left,top:s.top,right:s.right,bottom:s.bottom,width:s.width,height:s.height}),UM=s=>{const F=s.getClientRects(),Z=F.length>0?F[0]:s.getBoundingClientRect();return Z.width>0||Z.height>0?I.some(Z).map(u2):I.none()},c0=s=>{const F=s.getBoundingClientRect();return F.width>0||F.height>0?I.some(F).map(u2):I.none()},Wp=Ds.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),u3=(s,F,Z)=>F(Pt.fromDom(Z.startContainer),Z.startOffset,Pt.fromDom(Z.endContainer),Z.endOffset),jM=(s,F)=>F.match({domRange:Z=>({ltr:x(Z),rtl:I.none}),relative:(Z,ue)=>({ltr:iu(()=>lv(s,Z,ue)),rtl:iu(()=>I.some(lv(s,ue,Z)))}),exact:(Z,ue,we,Be)=>({ltr:iu(()=>fw(s,Z,ue,we,Be)),rtl:iu(()=>I.some(fw(s,we,Be,Z,ue)))})}),DD=(s,F)=>{const Z=F.ltr();return Z.collapsed?F.rtl().filter(we=>we.collapsed===!1).map(we=>Wp.rtl(Pt.fromDom(we.endContainer),we.endOffset,Pt.fromDom(we.startContainer),we.startOffset)).getOrThunk(()=>u3(s,Wp.ltr,Z)):u3(s,Wp.ltr,Z)},zb=(s,F)=>{const Z=jM(s,F);return DD(s,Z)},f2=(s,F)=>zb(s,F).match({ltr:(ue,we,Be,qe)=>{const ft=s.document.createRange();return ft.setStart(ue.dom,we),ft.setEnd(Be.dom,qe),ft},rtl:(ue,we,Be,qe)=>{const ft=s.document.createRange();return ft.setStart(Be.dom,qe),ft.setEnd(ue.dom,we),ft}});Wp.ltr,Wp.rtl;const d2=(s,F,Z)=>me(io(s,Z),F),$d=(s,F)=>Kr(F,s),f3=(s,F,Z,ue)=>{const Be=go(s).dom.createRange();return Be.setStart(s.dom,F),Be.setEnd(Z.dom,ue),Be},Fb=(s,F,Z,ue)=>{const we=f3(s,F,Z,ue),Be=so(s,Z)&&F===ue;return we.collapsed&&!Be},d3=s=>I.from(s.getSelection()),BT=s=>{if(s.rangeCount>0){const F=s.getRangeAt(0),Z=s.getRangeAt(s.rangeCount-1);return I.some(a2.create(Pt.fromDom(F.startContainer),F.startOffset,Pt.fromDom(Z.endContainer),Z.endOffset))}else return I.none()},DS=s=>{if(s.anchorNode===null||s.focusNode===null)return BT(s);{const F=Pt.fromDom(s.anchorNode),Z=Pt.fromDom(s.focusNode);return Fb(F,s.anchorOffset,Z,s.focusOffset)?I.some(a2.create(F,s.anchorOffset,Z,s.focusOffset)):BT(s)}},h3=s=>d3(s).filter(F=>F.rangeCount>0).bind(DS),Mf=(s,F)=>{const Z=f2(s,F);return UM(Z)},p3=(s,F)=>{const Z=f2(s,F);return c0(Z)},BS=((s,F)=>{const Z=Be=>{if(!s(Be))throw new Error("Can only get "+F+" value of a "+F+" node");return ue(Be).getOr("")},ue=Be=>s(Be)?I.from(Be.dom.nodeValue):I.none();return{get:Z,getOption:ue,set:(Be,qe)=>{if(!s(Be))throw new Error("Can only set raw "+F+" value of a "+F+" node");Be.dom.nodeValue=qe}}})(_r,"text"),zS=s=>BS.get(s),cv=(s,F)=>({element:s,offset:F}),zT=(s,F)=>{const Z=bo(s);if(Z.length===0)return cv(s,F);if(F_r(s)?cv(s,F):zT(s,F),m3=s=>s.foffset!==void 0,g3=(s,F)=>F.getSelection.getOrThunk(()=>()=>h3(s))().map(ue=>{if(m3(ue)){const we=xy(ue.start,ue.soffset),Be=xy(ue.finish,ue.foffset);return c2.range(we.element,we.offset,Be.element,Be.offset)}else return ue}),FS=(s,F,Z)=>{const ue=Yn(F.root).dom,we=Nm(s,Z,F),Be=g3(ue,F).bind(gt=>{if(m3(gt))return p3(ue,c2.exactFromRange(gt)).orThunk(()=>{const $t=Pt.fromText(FM);Eu(gt.start,$t);const on=Mf(ue,c2.exact($t,0,$t,1));return zl($t),on}).bind($t=>uw($t.left,$t.top,$t.width,$t.height));{const At=Ue(gt,on=>on.dom.getBoundingClientRect()),$t={left:Math.min(At.firstCell.left,At.lastCell.left),right:Math.max(At.firstCell.right,At.lastCell.right),top:Math.min(At.firstCell.top,At.lastCell.top),bottom:Math.max(At.firstCell.bottom,At.lastCell.bottom)};return uw($t.left,$t.top,$t.right-$t.left,$t.bottom-$t.top)}}),ft=g3(ue,F).bind(gt=>m3(gt)?Kn(gt.start)?I.some(gt.start):Cr(gt.start):I.some(gt.firstCell)).getOr(s.element);return PS(Be,we,F,Z,ft)};var Nb=[Hr("getSelection"),Sn("root"),Hr("bubble"),l0(),mr("overrides",{}),mr("showAbove",!1),Il("placement",FS)];const h2="link-layout",Sd=s=>s.x+s.width,FT=(s,F)=>s.x-F.width,NS=(s,F)=>s.y-F.height+s.height,$S=s=>s.y,NT=(s,F,Z)=>ml(Sd(s),$S(s),Z.southeast(),jc(),"southeast",il(s,{left:0,top:2}),h2),VS=(s,F,Z)=>ml(FT(s,F),$S(s),Z.southwest(),is(),"southwest",il(s,{right:1,top:2}),h2),$T=(s,F,Z)=>ml(Sd(s),NS(s,F),Z.northeast(),Vs(),"northeast",il(s,{left:0,bottom:3}),h2),VT=(s,F,Z)=>ml(FT(s,F),NS(s,F),Z.northwest(),Ac(),"northwest",il(s,{right:1,bottom:3}),h2),Yp=()=>[NT,VS,$T,VT],uv=()=>[VS,NT,VT,$T],UT=(s,F,Z)=>{const ue=Z0(Z,F.item.element),we=Y0(s.element,F,Yp(),uv(),Yp(),uv(),I.none());return I.some(yy({anchorBox:ue,bubble:r2(),overrides:F.overrides,layouts:we}))};var $b=[Sn("item"),l0(),mr("overrides",{}),Il("placement",UT)],sh=xn("type",{selection:Nb,node:a3,hotspot:r3,submenu:$b,makeshift:o2});const mp=[Si("classes",ne),hl("mode","all",["all","layout","placement"])],lh=[mr("useFixed",D),Hr("getBounds")],Xp=[rr("anchor",sh),Pi("transition",mp)],v3=()=>{const s=document.documentElement;return Eh(0,0,s.clientWidth,s.clientHeight)},Gp=s=>{const F=pc(s.element),Z=s.element.dom.getBoundingClientRect();return eu(F.left,F.top,Z.width,Z.height)},Vb=(s,F,Z,ue,we,Be)=>{const qe=_g(F.anchorBox,s);return n3(qe,ue.element,F.bubble,F.layouts,we,Z,F.overrides,Be)},QM=(s,F,Z,ue,we)=>{const Be=I.none();jT(s,F,Z,ue,we,Be)},jT=(s,F,Z,ue,we,Be)=>{const qe=cn("placement.info",Mi(Xp),we),ft=qe.anchor,gt=ue.element,At=Z.get(ue.uid);xg(()=>{ko(gt,"position","fixed");const $t=Na(gt,"visibility");ko(gt,"visibility","hidden");const on=F.useFixed()?v3():Gp(s);ft.placement(s,ft,on).each(yn=>{const wn=Be.orThunk(()=>F.getBounds.map(L)),Mn=Vb(on,yn,wn,ue,At,qe.transition);Z.set(ue.uid,Mn)}),$t.fold(()=>{ga(gt,"visibility")},yn=>{ko(gt,"visibility",yn)}),Na(gt,"left").isNone()&&Na(gt,"top").isNone()&&Na(gt,"right").isNone()&&Na(gt,"bottom").isNone()&&wt(Na(gt,"position"),"fixed")&&ga(gt,"position")},gt)};var HT=Object.freeze({__proto__:null,position:QM,positionWithinBounds:jT,getMode:(s,F,Z)=>F.useFixed()?"fixed":"absolute",reset:(s,F,Z,ue)=>{const we=ue.element;q(["position","left","right","top","bottom"],Be=>ga(we,Be)),wg(we),Z.clear(ue.uid)}}),jS=Object.freeze({__proto__:null,init:()=>{let s={};return kh({readState:()=>s,clear:we=>{a(we)?delete s[we]:s={}},set:(we,Be)=>{s[we]=Be},get:we=>Ge(s,we)})}});const ed=lf({fields:lh,name:"positioning",active:J1,apis:HT,state:jS}),QS=s=>s.getSystem().isConnected(),_y=s=>{Sa(s,fp());const F=s.components();q(F,_y)},p2=s=>{const F=s.components();q(F,p2),Sa(s,zd())},HS=(s,F)=>{s.getSystem().addToWorld(F),Er(s.element)&&p2(F)},y3=s=>{_y(s),s.getSystem().removeFromWorld(s)},dw=(s,F)=>{Pu(s.element,F.element)},ZS=s=>{q(s.components(),F=>zl(F.element)),Uf(s.element),s.syncComponents()},m2=(s,F,Z)=>{const ue=s.components();ZS(s);const we=Z(F),Be=Te(ue,we);q(Be,qe=>{_y(qe),s.getSystem().removeFromWorld(qe)}),q(we,qe=>{QS(qe)?dw(s,qe):(s.getSystem().addToWorld(qe),dw(s,qe),Er(s.element)&&p2(qe))}),s.syncComponents()},qS=(s,F,Z)=>{const ue=s.components(),we=ye(F,ft=>G_(ft).toArray());q(ue,ft=>{X(we,ft)||y3(ft)});const Be=Z(F),qe=Te(ue,Be);q(qe,ft=>{QS(ft)&&y3(ft)}),q(Be,ft=>{QS(ft)||HS(s,ft)}),s.syncComponents()},X0=(s,F)=>{Ub(s,F,Pu)},Ub=(s,F,Z)=>{s.getSystem().addToWorld(F),Z(s.element,F.element),Er(s.element)&&p2(F),s.syncComponents()},ZT=s=>{_y(s),zl(s.element),s.getSystem().removeFromWorld(s)},fv=s=>{const F=br(s.element).bind(Z=>s.getSystem().getByDom(Z).toOptional());ZT(s),F.each(Z=>{Z.syncComponents()})},Kp=s=>{const F=s.components();q(F,ZT),Uf(s.element),s.syncComponents()},qT=(s,F)=>{jb(s,F,Pu)},G0=(s,F)=>{jb(s,F,fd)},jb=(s,F,Z)=>{Z(s,F.element);const ue=bo(F.element);q(ue,we=>{F.getByDom(we).each(p2)})},WS=s=>{const F=bo(s.element);q(F,Z=>{s.getByDom(Z).each(_y)}),zl(s.element)},b3=(s,F,Z,ue)=>{Z.get().each(qe=>{Kp(s)});const we=F.getAttachPoint(s);X0(we,s);const Be=s.getSystem().build(ue);return X0(s,Be),Z.set(Be),Be},WT=(s,F,Z,ue)=>{const we=b3(s,F,Z,ue);return F.onOpen(s,we),we},ZM=(s,F,Z,ue)=>Z.get().map(()=>b3(s,F,Z,ue)),qM=(s,F,Z,ue,we)=>{v2(s,F),WT(s,F,Z,ue),we(),x3(s,F)},YT=(s,F,Z)=>{Z.get().each(ue=>{Kp(s),fv(s),F.onClose(s,ue),Z.clear()})},wy=(s,F,Z)=>Z.isOpen(),g2=(s,F,Z,ue)=>wy(s,F,Z)&&Z.get().exists(we=>F.isPartOf(s,we,ue)),hw=(s,F,Z)=>Z.get(),WM=(s,F,Z,ue)=>{Na(s.element,F).fold(()=>{po(s.element,Z)},we=>{fr(s.element,Z,we)}),ko(s.element,F,ue)},YM=(s,F,Z)=>{co(s.element,Z).fold(()=>ga(s.element,F),ue=>ko(s.element,F,ue))},v2=(s,F,Z)=>{const ue=F.getAttachPoint(s);ko(s.element,"position",ed.getMode(ue)),WM(s,"visibility",F.cloakVisibilityAttr,"hidden")},YS=s=>te(["top","left","right","bottom"],F=>Na(s,F).isSome()),x3=(s,F,Z)=>{YS(s.element)||ga(s.element,"position"),YM(s,"visibility",F.cloakVisibilityAttr)};var XS=Object.freeze({__proto__:null,cloak:v2,decloak:x3,open:WT,openWhileCloaked:qM,close:YT,isOpen:wy,isPartOf:g2,getState:hw,setContent:ZM}),y2=Object.freeze({__proto__:null,events:(s,F)=>pl([fo(L0(),(Z,ue)=>{YT(Z,s,F)})])}),KS=[Ra("onOpen"),Ra("onClose"),Sn("isPartOf"),Sn("getAttachPoint"),mr("cloakVisibilityAttr","data-precloak-visibility")],JS=Object.freeze({__proto__:null,init:()=>{const s=os(),F=x("not-implemented");return kh({readState:F,isOpen:s.isSet,clear:s.clear,set:s.set,get:s.get})}});const ps=lf({fields:KS,name:"sandboxing",active:y2,apis:XS,state:JS}),K0=x("dismiss.popups"),Qb=x("reposition.popups"),pw=x("mouse.released"),e5=Ol([mr("isExtraPart",D),Pi("fireEventInstead",[mr("event",I0())])]),dv=s=>{const F=cn("Dismissal",e5,s);return{[K0()]:{schema:Ol([Sn("target")]),onReceive:(Z,ue)=>{ps.isOpen(Z)&&(ps.isPartOf(Z,ue.target)||F.isExtraPart(Z,ue.target)||F.fireEventInstead.fold(()=>ps.close(Z),Be=>Sa(Z,Be.event)))}}}},t5=Ol([Pi("fireEventInstead",[mr("event",E_())]),$o("doReposition")]),_3=s=>{const F=cn("Reposition",t5,s);return{[Qb()]:{onReceive:Z=>{ps.isOpen(Z)&&F.fireEventInstead.fold(()=>F.doReposition(Z),ue=>Sa(Z,ue.event))}}}},n5=(s,F,Z)=>{F.store.manager.onLoad(s,F,Z)},r5=(s,F,Z)=>{F.store.manager.onUnload(s,F,Z)};var O3=Object.freeze({__proto__:null,onLoad:n5,onUnload:r5,setValue:(s,F,Z,ue)=>{F.store.manager.setValue(s,F,Z,ue)},getValue:(s,F,Z)=>F.store.manager.getValue(s,F,Z),getState:(s,F,Z)=>Z}),x2=Object.freeze({__proto__:null,events:(s,F)=>{const Z=s.resetOnDom?[Ll((ue,we)=>{n5(ue,s,F)}),Sh((ue,we)=>{r5(ue,s,F)})]:[E1(s,F,n5)];return pl(Z)}});const S3=()=>{const s=xi(null),F=()=>({mode:"memory",value:s.get()}),Z=()=>s.get()===null,ue=()=>{s.set(null)};return kh({set:s.set,get:s.get,isNotSet:Z,clear:ue,readState:F})},XM=()=>kh({readState:v}),k3=()=>{const s=xi({}),F=xi({});return kh({readState:()=>({mode:"dataset",dataByValue:s.get(),dataByText:F.get()}),lookup:qe=>Ge(s.get(),qe).orThunk(()=>Ge(F.get(),qe)),update:qe=>{const ft=s.get(),gt=F.get(),At={},$t={};q(qe,on=>{At[on.value]=on,Ge(on,"meta").each(yn=>{Ge(yn,"text").each(wn=>{$t[wn]=on})})}),s.set({...ft,...At}),F.set({...gt,...$t})},clear:()=>{s.set({}),F.set({})}})};var GM=Object.freeze({__proto__:null,memory:S3,dataset:k3,manual:XM,init:s=>s.store.manager.state(s)});const mw=(s,F,Z,ue)=>{const we=F.store;Z.update([ue]),we.setValue(s,ue),F.onSetValue(s,ue)},$m=(s,F,Z)=>{const ue=F.store,we=ue.getDataKey(s);return Z.lookup(we).getOrThunk(()=>ue.getFallbackEntry(we))},Ef=(s,F,Z)=>{F.store.initialValue.each(we=>{mw(s,F,Z,we)})},KM=(s,F,Z)=>{Z.clear()};var u0=[Hr("initialValue"),Sn("getFallbackEntry"),Sn("getDataKey"),Sn("setValue"),Il("manager",{setValue:mw,getValue:$m,onLoad:Ef,onUnload:KM,state:k3})];const JM=(s,F,Z)=>F.store.getValue(s),GT=(s,F,Z,ue)=>{F.store.setValue(s,ue),F.onSetValue(s,ue)},gw=(s,F,Z)=>{F.store.initialValue.each(ue=>{F.store.setValue(s,ue)})};var _2=[Sn("getValue"),mr("setValue",v),Hr("initialValue"),Il("manager",{setValue:GT,getValue:JM,onLoad:gw,onUnload:v,state:Gf.init})];const KT=(s,F,Z,ue)=>{Z.set(ue),F.onSetValue(s,ue)},JT=(s,F,Z)=>Z.get(),BD=(s,F,Z)=>{F.store.initialValue.each(ue=>{Z.isNotSet()&&Z.set(ue)})},zD=(s,F,Z)=>{Z.clear()};var e6=[Hr("initialValue"),Il("manager",{setValue:KT,getValue:JT,onLoad:BD,onUnload:zD,state:S3})],t6=[bs("store",{mode:"memory"},xn("mode",{memory:e6,manual:_2,dataset:u0})),Ra("onSetValue"),mr("resetOnDom",!1)];const hi=lf({fields:t6,name:"representing",active:x2,apis:O3,extra:{setValueFrom:(s,F)=>{const Z=hi.getValue(F);hi.setValue(s,Z)}},state:GM}),Pf=(s,F)=>ol(s,{},oe(F,Z=>vo(Z.name(),"Cannot configure "+Z.name()+" for "+s)).concat([On("dump",R)])),vw=s=>s.dump,Rf=(s,F)=>({...Bo(F),...s.dump}),Vm={field:Pf,augment:Rf,get:vw},o5="placeholder",qb=Ds.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),T3=s=>ht(s,"uiType"),Oy=(s,F,Z,ue)=>s.exists(we=>we!==Z.owner)?qb.single(!0,x(Z)):Ge(ue,Z.name).fold(()=>{throw new Error("Unknown placeholder component: "+Z.name+` Known: [`+ke(ue)+`] Namespace: `+s.getOr("none")+` -Spec: `+JSON.stringify(Z,null,2))},we=>we.replace()),yw=(s,F,Z,ue)=>T3(Z)&&Z.uiType===r5?Oy(s,F,Z,ue):Zb.single(!1,x(Z)),t6=(s,F,Z,ue)=>yw(s,F,Z,ue).fold((Be,qe)=>{const ft=T3(Z)?qe(F,Z.config,Z.validated):qe(F),gt=Ge(ft,"components").getOr([]),At=ye(gt,$t=>t6(s,F,$t,ue));return[{...ft,components:At}]},(Be,qe)=>{if(T3(Z)){const ft=qe(F,Z.config,Z.validated);return Z.validated.preprocess.getOr(R)(ft)}else return qe(F)}),JM=(s,F,Z,ue)=>ye(Z,we=>t6(s,F,we,ue)),eE=(s,F)=>{let Z=!1;const ue=()=>Z,we=()=>{if(Z)throw new Error("Trying to use the same placeholder more than once: "+s);return Z=!0,F},Be=()=>F.fold((qe,ft)=>qe,(qe,ft)=>qe);return{name:x(s),required:Be,used:ue,replace:we}},tE=(s,F,Z,ue)=>{const we=Ue(ue,(qe,ft)=>eE(ft,qe)),Be=JM(s,F,Z,we);return We(we,qe=>{if(qe.used()===!1&&qe.required())throw new Error("Placeholder: "+qe.name()+` was not found in components list +Spec: `+JSON.stringify(Z,null,2))},we=>we.replace()),yw=(s,F,Z,ue)=>T3(Z)&&Z.uiType===o5?Oy(s,F,Z,ue):qb.single(!1,x(Z)),n6=(s,F,Z,ue)=>yw(s,F,Z,ue).fold((Be,qe)=>{const ft=T3(Z)?qe(F,Z.config,Z.validated):qe(F),gt=Ge(ft,"components").getOr([]),At=ye(gt,$t=>n6(s,F,$t,ue));return[{...ft,components:At}]},(Be,qe)=>{if(T3(Z)){const ft=qe(F,Z.config,Z.validated);return Z.validated.preprocess.getOr(R)(ft)}else return qe(F)}),eE=(s,F,Z,ue)=>ye(Z,we=>n6(s,F,we,ue)),tE=(s,F)=>{let Z=!1;const ue=()=>Z,we=()=>{if(Z)throw new Error("Trying to use the same placeholder more than once: "+s);return Z=!0,F},Be=()=>F.fold((qe,ft)=>qe,(qe,ft)=>qe);return{name:x(s),required:Be,used:ue,replace:we}},nE=(s,F,Z,ue)=>{const we=Ue(ue,(qe,ft)=>tE(ft,qe)),Be=eE(s,F,Z,we);return We(we,qe=>{if(qe.used()===!1&&qe.required())throw new Error("Placeholder: "+qe.name()+` was not found in components list Namespace: `+s.getOr("none")+` -Components: `+JSON.stringify(F.components,null,2))}),Be},Sy=Zb.single,bw=Zb.multiple,xw=x(r5),C3=Ds.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),gp=mr("factory",{sketch:R}),J0=mr("schema",[]),ky=Sn("name"),Ty=Ln("pname","pname",Xi(s=>""),le()),nE=On("schema",()=>[Hr("preprocess")]),A3=mr("defaults",x({})),M3=mr("overrides",x({})),rE=Mi([gp,J0,ky,Ty,A3,M3]),oE=Mi([gp,J0,ky,A3,M3]),iE=Mi([gp,J0,ky,Ty,A3,M3]),aE=Mi([gp,nE,ky,Sn("unit"),Ty,A3,M3]),n6=s=>s.fold(I.some,I.none,I.some,I.some),E3=s=>{const F=Z=>Z.name;return s.fold(F,F,F,F)},sE=s=>s.fold(R,R,R,R),P3=(s,F)=>Z=>{const ue=cn("Converting part type",F,Z);return s(ue)},Sd=P3(C3.required,rE),Um=P3(C3.external,oE),Jp=P3(C3.optional,iE),R3=P3(C3.group,aE),L3=x("entirety");var r6=Object.freeze({__proto__:null,required:Sd,external:Um,optional:Jp,group:R3,asNamedPart:n6,name:E3,asCommon:sE,original:L3});const o5=(s,F,Z,ue)=>nl(F.defaults(s,Z,ue),Z,{uid:s.partUids[F.name]},F.overrides(s,Z,ue)),o6=(s,F,Z)=>{const ue={},we={};return q(Z,Be=>{Be.fold(qe=>{ue[qe.pname]=Sy(!0,(ft,gt,At)=>qe.factory.sketch(o5(ft,qe,gt,At)))},qe=>{const ft=F.parts[qe.name];we[qe.name]=x(qe.factory.sketch(o5(F,qe,ft[L3()]),ft))},qe=>{ue[qe.pname]=Sy(!1,(ft,gt,At)=>qe.factory.sketch(o5(ft,qe,gt,At)))},qe=>{ue[qe.pname]=bw(!0,(ft,gt,At)=>{const $t=ft[qe.name];return oe($t,on=>qe.factory.sketch(nl(qe.defaults(ft,on,At),on,qe.overrides(ft,on))))})})}),{internals:x(ue),externals:x(we)}},i5=(s,F)=>{const Z={};return q(F,ue=>{n6(ue).each(we=>{const Be=i6(s,we.pname);Z[we.name]=qe=>{const ft=cn("Part: "+we.name+" in "+s,Mi(we.schema),qe);return{...Be,config:qe,validated:ft}}})}),Z},i6=(s,F)=>({uiType:xw(),owner:s,name:F}),a6=(s,F,Z)=>({uiType:xw(),owner:s,name:F,config:Z,validated:{}}),lE=s=>ye(s,F=>F.fold(I.none,I.some,I.none,I.none).map(Z=>zo(Z.name,Z.schema.concat([WO(L3())]))).toArray()),cE=s=>oe(s,E3),I3=(s,F,Z)=>o6(s,F,Z),a5=(s,F,Z)=>tE(I.some(s),F,F.components,Z),Fo=(s,F,Z)=>{const ue=F.partUids[Z];return s.getSystem().getByUid(ue).toOptional()},Ph=(s,F,Z)=>Fo(s,F,Z).getOrDie("Could not find part: "+Z),s6=(s,F,Z)=>{const ue={},we=F.partUids,Be=s.getSystem();return q(Z,qe=>{ue[qe]=x(Be.getByUid(we[qe]))}),ue},s5=(s,F)=>{const Z=s.getSystem();return Ue(F.partUids,(ue,we)=>x(Z.getByUid(ue)))},_w=s=>ke(s.partUids),ww=(s,F,Z)=>{const ue={},we=F.partUids,Be=s.getSystem();return q(Z,qe=>{ue[qe]=x(Be.getByUid(we[qe]).getOrDie())}),ue},D3=(s,F)=>{const Z=cE(F);return hd(oe(Z,ue=>({key:ue,value:s+"-"+ue})))},Ow=s=>Ln("partUids","partUids",yu(F=>D3(F.uid,s)),le());var l6=Object.freeze({__proto__:null,generate:i5,generateOne:a6,schemas:lE,names:cE,substitutes:I3,components:a5,defaultUids:D3,defaultUidsSchema:Ow,getAllParts:s5,getAllPartNames:_w,getPart:Fo,getPartOrDie:Ph,getParts:s6,getPartsOrDie:ww});const c6=(s,F)=>(s.length>0?[zo("parts",s)]:[]).concat([Sn("uid"),mr("dom",{}),mr("components",[]),WO("originalSpec"),mr("debug.sketcher",{})]).concat(F),l5=(s,F,Z,ue,we)=>{const Be=c6(ue,we);return cn(s+" [SpecSchema]",_l(Be.concat(F)),Z)},c5=(s,F,Z,ue)=>{const we=u6(ue),Be=l5(s,F,we,[],[]);return Z(Be,we)},dv=(s,F,Z,ue,we)=>{const Be=u6(we),qe=lE(Z),ft=Ow(Z),gt=l5(s,F,Be,qe,[ft]),At=I3(s,gt,Z),$t=a5(s,gt,At.internals());return ue(gt,$t,Be,At.externals())},u5=s=>ht(s,"uid"),u6=s=>u5(s)?s:{...s,uid:j0("uid")},uE=s=>s.uid!==void 0,fE=_l([Sn("name"),Sn("factory"),Sn("configFields"),mr("apis",{}),mr("extraApis",{})]),f6=_l([Sn("name"),Sn("factory"),Sn("configFields"),Sn("partFields"),mr("apis",{}),mr("extraApis",{})]),Yh=s=>{const F=cn("Sketcher for "+s.name,fE,s),Z=Be=>c5(F.name,F.configFields,F.factory,Be),ue=Ue(F.apis,Cc),we=Ue(F.extraApis,(Be,qe)=>Xv(Be,qe));return{name:F.name,configFields:F.configFields,sketch:Z,...ue,...we}},ch=s=>{const F=cn("Sketcher for "+s.name,f6,s),Z=qe=>dv(F.name,F.configFields,F.partFields,F.factory,qe),ue=i5(F.name,F.partFields),we=Ue(F.apis,Cc),Be=Ue(F.extraApis,(qe,ft)=>Xv(qe,ft));return{name:F.name,partFields:F.partFields,configFields:F.configFields,sketch:Z,parts:ue,...we,...Be}},w2=s=>Fr("input")(s)&&ao(s,"type")!=="radio"||Fr("textarea")(s);var dE=Object.freeze({__proto__:null,getCurrent:(s,F,Z)=>F.find(s)});const f5=[Sn("find")],as=lf({fields:f5,name:"composing",apis:dE}),ND=["input","button","textarea","select"],d6=(s,F,Z)=>{(F.disabled()?B3:kw)(s,F)},h6=(s,F)=>F.useNative===!0&&X(ND,ar(s.element)),$D=s=>Go(s.element,"disabled"),Cy=s=>{fr(s.element,"disabled","disabled")},Sw=s=>{po(s.element,"disabled")},hE=s=>ao(s.element,"aria-disabled")==="true",pE=s=>{fr(s.element,"aria-disabled","true")},mE=s=>{fr(s.element,"aria-disabled","false")},B3=(s,F,Z)=>{F.disableClass.each(we=>{wl(s.element,we)}),(h6(s,F)?Cy:pE)(s),F.onDisabled(s)},kw=(s,F,Z)=>{F.disableClass.each(we=>{fc(s.element,we)}),(h6(s,F)?Sw:mE)(s),F.onEnabled(s)},p6=(s,F)=>h6(s,F)?$D(s):hE(s);var O2=Object.freeze({__proto__:null,enable:kw,disable:B3,isDisabled:p6,onLoad:d6,set:(s,F,Z,ue)=>{(ue?B3:kw)(s,F)}}),m6=Object.freeze({__proto__:null,exhibit:(s,F)=>Tf({classes:F.disabled()?F.disableClass.toArray():[]}),events:(s,F)=>hl([FO(cp(),(Z,ue)=>p6(Z,s)),A1(s,F,d6)])}),gE=[Pa("disabled",D),mr("useNative",!0),Hr("disableClass"),Ra("onDisabled"),Ra("onEnabled")];const ea=lf({fields:gE,name:"disabling",active:m6,apis:O2}),pe=(s,F,Z,ue)=>{const we=$d(s.element,"."+F.highlightClass);q(we,Be=>{te(ue,ft=>so(ft.element,Be))||(fc(Be,F.highlightClass),s.getSystem().getByDom(Be).each(ft=>{F.onDehighlight(s,ft),Sa(ft,D0())}))})},Ce=(s,F,Z)=>pe(s,F,Z,[]),Ye=(s,F,Z,ue)=>{$n(s,F,Z,ue)&&(fc(ue.element,F.highlightClass),F.onDehighlight(s,ue),Sa(ue,D0()))},st=(s,F,Z,ue)=>{pe(s,F,Z,[ue]),$n(s,F,Z,ue)||(wl(ue.element,F.highlightClass),F.onHighlight(s,ue),Sa(ue,Cm()))},St=(s,F,Z)=>{Ro(s,F).each(ue=>{st(s,F,Z,ue)})},Ut=(s,F,Z)=>{ai(s,F).each(ue=>{st(s,F,Z,ue)})},un=(s,F,Z,ue)=>{Nr(s,F,Z,ue).fold(we=>{throw we},we=>{st(s,F,Z,we)})},Tn=(s,F,Z,ue)=>{const we=To(s,F);ce(we,ue).each(qe=>{st(s,F,Z,qe)})},$n=(s,F,Z,ue)=>$l(ue.element,F.highlightClass),ur=(s,F,Z)=>aa(s.element,"."+F.highlightClass).bind(ue=>s.getSystem().getByDom(ue).toOptional()),Nr=(s,F,Z,ue)=>{const we=$d(s.element,"."+F.itemClass);return I.from(we[ue]).fold(()=>Hi.error(new Error("No element found with index "+ue)),s.getSystem().getByDom)},Ro=(s,F,Z)=>aa(s.element,"."+F.itemClass).bind(ue=>s.getSystem().getByDom(ue).toOptional()),ai=(s,F,Z)=>{const ue=$d(s.element,"."+F.itemClass);return(ue.length>0?I.some(ue[ue.length-1]):I.none()).bind(Be=>s.getSystem().getByDom(Be).toOptional())},Ko=(s,F,Z,ue)=>{const we=$d(s.element,"."+F.itemClass);return de(we,qe=>$l(qe,F.highlightClass)).bind(qe=>{const ft=ac(qe,ue,0,we.length-1);return s.getSystem().getByDom(we[ft]).toOptional()})},Qo=(s,F,Z)=>Ko(s,F,Z,-1),_i=(s,F,Z)=>Ko(s,F,Z,1),To=(s,F,Z)=>{const ue=$d(s.element,"."+F.itemClass);return It(oe(ue,we=>s.getSystem().getByDom(we).toOptional()))};var Zo=Object.freeze({__proto__:null,dehighlightAll:Ce,dehighlight:Ye,highlight:st,highlightFirst:St,highlightLast:Ut,highlightAt:un,highlightBy:Tn,isHighlighted:$n,getHighlighted:ur,getFirst:Ro,getLast:ai,getPrevious:Qo,getNext:_i,getCandidates:To}),Yi=[Sn("highlightClass"),Sn("itemClass"),Ra("onHighlight"),Ra("onDehighlight")];const ri=lf({fields:Yi,name:"highlighting",apis:Zo}),Ms=[8],al=[9],Gs=[13],td=[27],zu=[32],e1=[37],Ay=[38],My=[39],Zs=[40],Rh=(s,F,Z)=>{const ue=Se(s.slice(0,F)),we=Se(s.slice(F+1));return ce(ue.concat(we),Z)},Lh=(s,F,Z)=>{const ue=Se(s.slice(0,F));return ce(ue,Z)},jm=(s,F,Z)=>{const ue=s.slice(0,F),we=s.slice(F+1);return ce(we.concat(ue),Z)},Qm=(s,F,Z)=>{const ue=s.slice(F+1);return ce(ue,Z)},Za=s=>F=>{const Z=F.raw;return X(s,Z.which)},tu=s=>F=>_e(s,Z=>Z(F)),t1=s=>s.raw.shiftKey===!0,Tw=s=>s.raw.ctrlKey===!0,vp=E(t1),xa=(s,F)=>({matches:s,classification:F}),h5=(s,F)=>ce(s,ue=>ue.matches(F)).map(ue=>ue.classification),p5=(s,F,Z)=>{F.exists(we=>Z.exists(Be=>so(Be,we)))||Ri(s,Jg(),{prevFocus:F,newFocus:Z})},z3=()=>{const s=Z=>xd(Z.element);return{get:s,set:(Z,ue)=>{const we=s(Z);Z.getSystem().triggerFocus(ue,Z.element);const Be=s(Z);p5(Z,we,Be)}}},g6=()=>{const s=Z=>ri.getHighlighted(Z).map(ue=>ue.element);return{get:s,set:(Z,ue)=>{const we=s(Z);Z.getSystem().getByDom(ue).fold(v,qe=>{ri.highlight(Z,qe)});const Be=s(Z);p5(Z,we,Be)}}};var qb;(function(s){s.OnFocusMode="onFocus",s.OnEnterOrSpaceMode="onEnterOrSpace",s.OnApiMode="onApi"})(qb||(qb={}));const hv=(s,F,Z,ue,we)=>{const Be=()=>s.concat([mr("focusManager",z3()),ys("focusInside","onFocus",mt(At=>X(["onFocus","onEnterOrSpace","onApi"],At)?Hi.value(At):Hi.error("Invalid value for focusInside"))),Il("handler",gt),Il("state",F),Il("sendFocusIn",we)]),qe=(At,$t,on,yn,wn)=>{const Mn=on(At,$t,yn,wn);return h5(Mn,$t.event).bind(Xn=>Xn(At,$t,yn,wn))},gt={schema:Be,processKey:qe,toEvents:(At,$t)=>{const on=At.focusInside!==qb.OnFocusMode?I.none():we(At).map(Mn=>fo(km(),(Xn,Br)=>{Mn(Xn,At,$t),Br.stop()})),yn=(Mn,Xn)=>{const Br=Za(zu.concat(Gs))(Xn.event);At.focusInside===qb.OnEnterOrSpaceMode&&Br&&xm(Mn,Xn)&&we(At).each(or=>{or(Mn,At,$t),Xn.stop()})},wn=[fo(Bp(),(Mn,Xn)=>{qe(Mn,Xn,Z,At,$t).fold(()=>{yn(Mn,Xn)},Br=>{Xn.stop()})}),fo(P0(),(Mn,Xn)=>{qe(Mn,Xn,ue,At,$t).each(Br=>{Xn.stop()})})];return hl(on.toArray().concat(wn))}};return gt},v6=s=>{const F=[Hr("onEscape"),Hr("onEnter"),mr("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),mr("firstTabstop",0),mr("useTabstopAt",k),Hr("visibilitySelector")].concat([s]),Z=(or,Mr)=>{const kr=or.visibilitySelector.bind(yo=>Fs(Mr,yo)).getOr(Mr);return Ql(kr)>0},ue=(or,Mr)=>{const kr=$d(or.element,Mr.selector),yo=me(kr,Xr=>Z(Mr,Xr));return I.from(yo[Mr.firstTabstop])},we=(or,Mr)=>Mr.focusManager.get(or).bind(kr=>Fs(kr,Mr.selector)),Be=(or,Mr)=>Z(or,Mr)&&or.useTabstopAt(Mr),qe=(or,Mr,kr)=>{ue(or,Mr).each(yo=>{Mr.focusManager.set(or,yo)})},ft=(or,Mr,kr,yo,Xr)=>Xr(Mr,kr,No=>Be(yo,No)).fold(()=>yo.cyclic?I.some(!0):I.none(),No=>(yo.focusManager.set(or,No),I.some(!0))),gt=(or,Mr,kr,yo)=>{const Xr=$d(or.element,kr.selector);return we(or,kr).bind(No=>de(Xr,T(so,No)).bind(ho=>ft(or,Xr,ho,kr,yo)))},At=(or,Mr,kr)=>{const yo=kr.cyclic?Rh:Lh;return gt(or,Mr,kr,yo)},$t=(or,Mr,kr)=>{const yo=kr.cyclic?jm:Qm;return gt(or,Mr,kr,yo)},on=or=>dr(or).bind(hr).exists(Mr=>so(Mr,or)),yn=(or,Mr,kr)=>we(or,kr).filter(yo=>!kr.useTabstopAt(yo)).bind(yo=>(on(yo)?At:$t)(or,Mr,kr)),wn=(or,Mr,kr)=>kr.onEnter.bind(yo=>yo(or,Mr)),Mn=(or,Mr,kr)=>kr.onEscape.bind(yo=>yo(or,Mr)),Xn=x([xa(tu([t1,Za(al)]),At),xa(Za(al),$t),xa(tu([vp,Za(Gs)]),wn)]),Br=x([xa(Za(td),Mn),xa(Za(al),yn)]);return hv(F,Gf.init,Xn,Br,()=>I.some(qe))};var Cw=v6(On("cyclic",D)),Nq=v6(On("cyclic",k));const m5=(s,F,Z)=>(qv(s,Z,cp()),I.some(!0)),F3=(s,F,Z)=>w2(Z)&&Za(zu)(F.event)?I.none():m5(s,F,Z),Aw=(s,F)=>I.some(!0),vE=[mr("execute",F3),mr("useSpace",!1),mr("useEnter",!0),mr("useControlEnter",!1),mr("useDown",!1)],jD=(s,F,Z)=>Z.execute(s,F,s.element),QD=(s,F,Z,ue)=>{const we=Z.useSpace&&!w2(s.element)?zu:[],Be=Z.useEnter?Gs:[],qe=Z.useDown?Zs:[],ft=we.concat(Be).concat(qe);return[xa(Za(ft),jD)].concat(Z.useControlEnter?[xa(tu([Tw,Za(Gs)]),jD)]:[])},$q=(s,F,Z,ue)=>Z.useSpace&&!w2(s.element)?[xa(Za(zu),Aw)]:[];var HD=hv(vE,Gf.init,QD,$q,()=>I.none());const yE=()=>{const s=os();return kh({readState:()=>s.get().map(we=>({numRows:String(we.numRows),numColumns:String(we.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(we,Be)=>{s.set({numRows:we,numColumns:Be})},getNumRows:()=>s.get().map(we=>we.numRows),getNumColumns:()=>s.get().map(we=>we.numColumns)})};var Vq=Object.freeze({__proto__:null,flatgrid:yE,init:s=>s.state(s)});const ZD=s=>(F,Z,ue,we)=>{const Be=s(F.element);return g5(Be,F,Z,ue,we)},bE=(s,F)=>{const Z=Rb(s,F);return ZD(Z)},xE=(s,F)=>{const Z=Rb(F,s);return ZD(Z)},_E=s=>(F,Z,ue,we)=>g5(s,F,Z,ue,we),g5=(s,F,Z,ue,we)=>ue.focusManager.get(F).bind(qe=>s(F.element,qe,ue,we)).map(qe=>(ue.focusManager.set(F,qe),!0)),y6=_E,qD=_E,wE=_E,WD=s=>s.offsetWidth<=0&&s.offsetHeight<=0,YD=s=>!WD(s.dom),Uq=(s,F)=>de(s,F).map(Z=>({index:Z,candidates:s})),kg=(s,F,Z)=>{const ue=qe=>so(qe,F),we=$d(s,Z),Be=me(we,YD);return Uq(Be,ue)},XD=(s,F)=>de(s,Z=>so(F,Z)),GD=(s,F,Z,ue)=>{const we=Math.floor(F/Z),Be=F%Z;return ue(we,Be).bind(qe=>{const ft=qe.row*Z+qe.column;return ft>=0&&ftGD(s,F,ue,(Be,qe)=>{const gt=Be===Z-1?s.length-Be*ue:ue,At=ac(qe,we,0,gt-1);return I.some({row:Be,column:At})}),JD=(s,F,Z,ue,we)=>GD(s,F,ue,(Be,qe)=>{const ft=ac(Be,we,0,Z-1),At=ft===Z-1?s.length-ft*ue:ue,$t=Mc(qe,0,At-1);return I.some({row:ft,column:$t})}),jq=(s,F,Z,ue)=>KD(s,F,Z,ue,1),N3=(s,F,Z,ue)=>KD(s,F,Z,ue,-1),OE=(s,F,Z,ue)=>JD(s,F,Z,ue,-1),Qq=(s,F,Z,ue)=>JD(s,F,Z,ue,1),SE=[Sn("selector"),mr("execute",F3),yd("onEscape"),mr("captureTab",!1),$1()],b6=(s,F,Z)=>{aa(s.element,F.selector).each(ue=>{F.focusManager.set(s,ue)})},kE=(s,F)=>F.focusManager.get(s).bind(Z=>Fs(Z,F.selector)),Hq=(s,F,Z,ue)=>kE(s,Z).bind(we=>Z.execute(s,F,we)),x6=s=>(F,Z,ue,we)=>kg(F,Z,ue.selector).bind(Be=>s(Be.candidates,Be.index,we.getNumRows().getOr(ue.initSize.numRows),we.getNumColumns().getOr(ue.initSize.numColumns))),eB=(s,F,Z)=>Z.captureTab?I.some(!0):I.none(),Zq=(s,F,Z)=>Z.onEscape(s,F),tB=x6(N3),nB=x6(jq),rB=x6(OE),TE=x6(Qq),qq=x([xa(Za(e1),bE(tB,nB)),xa(Za(My),xE(tB,nB)),xa(Za(Ay),y6(rB)),xa(Za(Zs),qD(TE)),xa(tu([t1,Za(al)]),eB),xa(tu([vp,Za(al)]),eB),xa(Za(zu.concat(Gs)),Hq)]),Wq=x([xa(Za(td),Zq),xa(Za(zu),Aw)]);var Yq=hv(SE,yE,qq,Wq,()=>I.some(b6));const oB=(s,F,Z,ue,we)=>{const Be=ft=>ar(ft)==="button"&&ao(ft,"disabled")==="disabled",qe=(ft,gt,At)=>we(ft,gt,ue,0,At.length-1,At[gt],$t=>Be(At[$t])?qe(ft,$t,At):I.from(At[$t]));return kg(s,Z,F).bind(ft=>{const gt=ft.index,At=ft.candidates;return qe(gt,gt,At)})},Mw=(s,F,Z,ue)=>oB(s,F,Z,ue,(we,Be,qe,ft,gt,At,$t)=>{const on=Mc(Be+qe,ft,gt);return on===we?I.from(At):$t(on)}),v5=(s,F,Z,ue)=>oB(s,F,Z,ue,(we,Be,qe,ft,gt,At,$t)=>{const on=ac(Be,qe,ft,gt);return on===we?I.none():$t(on)}),Xq=[Sn("selector"),mr("getInitial",I.none),mr("execute",F3),yd("onEscape"),mr("executeOnMove",!1),mr("allowVertical",!0),mr("allowHorizontal",!0),mr("cycles",!0)],CE=(s,F)=>F.focusManager.get(s).bind(Z=>Fs(Z,F.selector)),AE=(s,F,Z)=>CE(s,Z).bind(ue=>Z.execute(s,F,ue)),iB=(s,F,Z)=>{F.getInitial(s).orThunk(()=>aa(s.element,F.selector)).each(ue=>{F.focusManager.set(s,ue)})},ME=(s,F,Z)=>(Z.cycles?v5:Mw)(s,Z.selector,F,-1),EE=(s,F,Z)=>(Z.cycles?v5:Mw)(s,Z.selector,F,1),PE=s=>(F,Z,ue,we)=>s(F,Z,ue,we).bind(()=>ue.executeOnMove?AE(F,Z,ue):I.some(!0)),aB=(s,F,Z)=>Z.onEscape(s,F),Gq=(s,F,Z,ue)=>{const we=[...Z.allowHorizontal?e1:[]].concat(Z.allowVertical?Ay:[]),Be=[...Z.allowHorizontal?My:[]].concat(Z.allowVertical?Zs:[]);return[xa(Za(we),PE(bE(ME,EE))),xa(Za(Be),PE(xE(ME,EE))),xa(Za(Gs),AE),xa(Za(zu),AE)]},Kq=x([xa(Za(zu),Aw),xa(Za(td),aB)]);var Jq=hv(Xq,Gf.init,Gq,Kq,()=>I.some(iB));const $3=(s,F,Z)=>I.from(s[F]).bind(ue=>I.from(ue[Z]).map(we=>({rowIndex:F,columnIndex:Z,cell:we}))),sB=(s,F,Z,ue)=>{const Be=s[F].length,qe=ac(Z,ue,0,Be-1);return $3(s,F,qe)},y5=(s,F,Z,ue)=>{const we=ac(Z,ue,0,s.length-1),Be=s[we].length,qe=Mc(F,0,Be-1);return $3(s,we,qe)},lB=(s,F,Z,ue)=>{const Be=s[F].length,qe=Mc(Z+ue,0,Be-1);return $3(s,F,qe)},RE=(s,F,Z,ue)=>{const we=Mc(Z+ue,0,s.length-1),Be=s[we].length,qe=Mc(F,0,Be-1);return $3(s,we,qe)},yp=(s,F,Z)=>sB(s,F,Z,1),eW=(s,F,Z)=>sB(s,F,Z,-1),cB=(s,F,Z)=>y5(s,Z,F,-1),uB=(s,F,Z)=>y5(s,Z,F,1),tW=(s,F,Z)=>lB(s,F,Z,-1),fB=(s,F,Z)=>lB(s,F,Z,1),dB=(s,F,Z)=>RE(s,Z,F,-1),nW=(s,F,Z)=>RE(s,Z,F,1),rW=[zo("selectors",[Sn("row"),Sn("cell")]),mr("cycles",!0),mr("previousSelector",I.none),mr("execute",F3)],oW=(s,F,Z)=>{F.previousSelector(s).orThunk(()=>{const we=F.selectors;return aa(s.element,we.cell)}).each(we=>{F.focusManager.set(s,we)})},iW=(s,F,Z)=>xd(s.element).bind(ue=>Z.execute(s,F,ue)),hB=(s,F)=>oe(s,Z=>$d(Z,F.selectors.cell)),_6=(s,F)=>(Z,ue,we)=>{const Be=we.cycles?s:F;return Fs(ue,we.selectors.row).bind(qe=>{const ft=$d(qe,we.selectors.cell);return XD(ft,ue).bind(gt=>{const At=$d(Z,we.selectors.row);return XD(At,qe).bind($t=>{const on=hB(At,we);return Be(on,$t,gt).map(yn=>yn.cell)})})})},pB=_6(eW,tW),LE=_6(yp,fB),mB=_6(cB,dB),gB=_6(uB,nW),aW=x([xa(Za(e1),bE(pB,LE)),xa(Za(My),xE(pB,LE)),xa(Za(Ay),y6(mB)),xa(Za(Zs),qD(gB)),xa(Za(zu.concat(Gs)),iW)]),sW=x([xa(Za(zu),Aw)]);var lW=hv(rW,Gf.init,aW,sW,()=>I.some(oW));const cW=[Sn("selector"),mr("execute",F3),mr("moveOnTab",!1)],IE=(s,F,Z)=>Z.focusManager.get(s).bind(ue=>Z.execute(s,F,ue)),vB=(s,F,Z)=>{aa(s.element,F.selector).each(ue=>{F.focusManager.set(s,ue)})},Wb=(s,F,Z)=>v5(s,Z.selector,F,-1),DE=(s,F,Z)=>v5(s,Z.selector,F,1),yB=(s,F,Z,ue)=>Z.moveOnTab?wE(Wb)(s,F,Z,ue):I.none(),bB=(s,F,Z,ue)=>Z.moveOnTab?wE(DE)(s,F,Z,ue):I.none(),uW=x([xa(Za(Ay),wE(Wb)),xa(Za(Zs),wE(DE)),xa(tu([t1,Za(al)]),yB),xa(tu([vp,Za(al)]),bB),xa(Za(Gs),IE),xa(Za(zu),IE)]),V3=x([xa(Za(zu),Aw)]);var fW=hv(cW,Gf.init,uW,V3,()=>I.some(vB));const dW=[yd("onSpace"),yd("onEnter"),yd("onShiftEnter"),yd("onLeft"),yd("onRight"),yd("onTab"),yd("onShiftTab"),yd("onUp"),yd("onDown"),yd("onEscape"),mr("stopSpaceKeyup",!1),Hr("focusIn")],xB=(s,F,Z)=>[xa(Za(zu),Z.onSpace),xa(tu([vp,Za(Gs)]),Z.onEnter),xa(tu([t1,Za(Gs)]),Z.onShiftEnter),xa(tu([t1,Za(al)]),Z.onShiftTab),xa(tu([vp,Za(al)]),Z.onTab),xa(Za(Ay),Z.onUp),xa(Za(Zs),Z.onDown),xa(Za(e1),Z.onLeft),xa(Za(My),Z.onRight),xa(Za(zu),Z.onSpace)],hW=(s,F,Z)=>[...Z.stopSpaceKeyup?[xa(Za(zu),Aw)]:[],xa(Za(td),Z.onEscape)];var pW=hv(dW,Gf.init,xB,hW,s=>s.focusIn);const mW=Cw.schema(),_B=Nq.schema(),BE=Jq.schema(),zE=Yq.schema(),gW=lW.schema(),S2=HD.schema(),wB=fW.schema(),OB=pW.schema();var vW=Object.freeze({__proto__:null,acyclic:mW,cyclic:_B,flow:BE,flatgrid:zE,matrix:gW,execution:S2,menu:wB,special:OB});const yW=s=>pt(s,"setGridSize"),Li=md({branchKey:"mode",branches:vW,name:"keying",active:{events:(s,F)=>s.handler.toEvents(s,F)},apis:{focusIn:(s,F,Z)=>{F.sendFocusIn(F).fold(()=>{s.getSystem().triggerFocus(s.element,s.element)},ue=>{ue(s,F,Z)})},setGridSize:(s,F,Z,ue,we)=>{yW(Z)?Z.setGridSize(ue,we):console.error("Layout does not support setGridSize")}},state:Vq}),U3=(s,F)=>{bg(()=>{m2(s,F,()=>oe(F,s.getSystem().build))},s.element)},FE=(s,F)=>{bg(()=>{ZS(s,F,()=>et(s.element,F,s.getSystem().buildOrPatch))},s.element)},NE=(s,F,Z,ue)=>{y3(F);const we=Qe(s.element,Z,ue,s.getSystem().buildOrPatch);QS(s,we),s.syncComponents()},Ey=(s,F,Z)=>{const ue=s.getSystem().build(Z);Vb(s,ue,F)},k2=(s,F,Z,ue)=>{cv(F),Ey(s,(we,Be)=>Oc(we,Be,Z),ue)},bW=(s,F,Z,ue)=>(F.reuseDom?FE:U3)(s,ue),xW=(s,F,Z,ue)=>{Ey(s,Pu,ue)},SB=(s,F,Z,ue)=>{Ey(s,vh,ue)},Yb=(s,F,Z,ue)=>{const we=j3(s);ce(we,qe=>so(ue.element,qe.element)).each(cv)},j3=(s,F)=>s.components(),kB=(s,F,Z,ue,we)=>{const Be=j3(s);return I.from(Be[ue]).map(qe=>(we.fold(()=>cv(qe),ft=>{(F.reuseDom?NE:k2)(s,qe,ue,ft)}),qe))};var TB=Object.freeze({__proto__:null,append:xW,prepend:SB,remove:Yb,replaceAt:kB,replaceBy:(s,F,Z,ue,we)=>{const Be=j3(s);return de(Be,ue).bind(qe=>kB(s,F,Z,qe,we))},set:bW,contents:j3});const da=lf({fields:[ds("reuseDom",!0)],name:"replacing",apis:TB}),$E=(s,F)=>{const Z=hl(F);return lf({fields:[Sn("enabled")],name:s,active:{events:x(Z)}})},Ta=(s,F)=>{const Z=$E(s,F);return{key:s,value:{config:{},me:Z,configAsRaw:x({}),initialConfig:{},state:Gf}}},CB=(s,F)=>{F.ignore||(bd(s.element),F.onFocus(s))};var w6=Object.freeze({__proto__:null,focus:CB,blur:(s,F)=>{F.ignore||a0(s.element)},isFocused:s=>dy(s.element)}),MB=Object.freeze({__proto__:null,exhibit:(s,F)=>{const Z=F.ignore?{}:{attributes:{tabindex:"-1"}};return Tf(Z)},events:s=>hl([fo(km(),(F,Z)=>{CB(F,s),Z.stop()})].concat(s.stopMousedown?[fo(Oh(),(F,Z)=>{Z.event.prevent()})]:[]))}),wW=[Ra("onFocus"),mr("stopMousedown",!1),mr("ignore",!1)];const oa=lf({fields:wW,name:"focusing",active:MB,apis:w6}),EB=s=>({init:()=>{const Z=xi(s);return{get:()=>Z.get(),set:ft=>Z.set(ft),clear:()=>Z.set(s),readState:()=>Z.get()}}}),PB=(s,F,Z)=>{const ue=F.aria;ue.update(s,ue,Z.get())},RB=(s,F,Z)=>{F.toggleClass.each(ue=>{Z.get()?wl(s.element,ue):fc(s.element,ue)})},b5=(s,F,Z,ue)=>{const we=Z.get();Z.set(ue),RB(s,F,Z),PB(s,F,Z),we!==ue&&F.onToggled(s,ue)},O6=(s,F,Z)=>{b5(s,F,Z,!Z.get())},OW=(s,F,Z)=>{b5(s,F,Z,!0)},SW=(s,F,Z)=>{b5(s,F,Z,!1)},kW=(s,F,Z)=>Z.get(),LB=(s,F,Z)=>{b5(s,F,Z,F.selected)};var IB=Object.freeze({__proto__:null,onLoad:LB,toggle:O6,isOn:kW,on:OW,off:SW,set:b5}),DB=Object.freeze({__proto__:null,exhibit:()=>Tf({}),events:(s,F)=>{const Z=C1(s,F,O6),ue=A1(s,F,LB);return hl(ve([s.toggleOnExecute?[Z]:[],[ue]]))}});const x5=(s,F,Z)=>{fr(s.element,"aria-pressed",Z),F.syncWithExpanded&&S6(s,F,Z)},TW=(s,F,Z)=>{fr(s.element,"aria-selected",Z)},_5=(s,F,Z)=>{fr(s.element,"aria-checked",Z)},S6=(s,F,Z)=>{fr(s.element,"aria-expanded",Z)};var BB=[mr("selected",!1),Hr("toggleClass"),mr("toggleOnExecute",!0),Ra("onToggled"),ys("aria",{mode:"none"},xn("mode",{pressed:[mr("syncWithExpanded",!1),Il("update",x5)],checked:[Il("update",_5)],expanded:[Il("update",S6)],selected:[Il("update",TW)],none:[Il("update",v)]}))];const za=lf({fields:BB,name:"toggling",active:DB,apis:IB,state:EB(!1)}),zB=()=>{const s=(F,Z)=>{Z.stop(),Fp(F)};return[fo(R0(),s),fo(up(),s),Am(_m()),Am(Oh())]},k6=s=>{const F=Z=>$p((ue,we)=>{Z(ue),we.stop()});return hl(ve([s.map(F).toArray(),zB()]))},UE="alloy.item-hover",FB="alloy.item-focus",jE="alloy.item-toggled",NB=s=>{(xd(s.element).isNone()||oa.isFocused(s))&&(oa.isFocused(s)||oa.focus(s),Ri(s,UE,{item:s}))},$B=s=>{Ri(s,FB,{item:s})},VB=(s,F)=>{Ri(s,jE,{item:s,state:F})},w5=x(UE),QE=x(FB),HE=x(jE),CW=s=>s.role.fold(()=>s.toggling.map(F=>F.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),R),AW=(s,F)=>({aria:{mode:F?"selected":"checked"},...Ne(s,(Z,ue)=>ue!=="exclusive"),onToggled:(Z,ue)=>{u(s.onToggled)&&s.onToggled(Z,ue),VB(Z,ue)}}),MW=s=>({dom:s.dom,domModification:{...s.domModification,attributes:{role:CW(s),...s.domModification.attributes,"aria-haspopup":s.hasSubmenu,...s.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:Vm.augment(s.itemBehaviours,[s.toggling.fold(za.revoke,F=>za.config(AW(F,s.role.exists(Z=>Z==="option")))),oa.config({ignore:s.ignoreFocus,stopMousedown:s.ignoreFocus,onFocus:F=>{$B(F)}}),Li.config({mode:"execution"}),hi.config({store:{mode:"memory",initialValue:s.data}}),Ta("item-type-events",[...zB(),fo(Om(),NB),fo(fb(),oa.focus)])]),components:s.components,eventOrder:s.eventOrder}),EW=[Sn("data"),Sn("components"),Sn("dom"),mr("hasSubmenu",!1),Hr("toggling"),Hr("role"),Vm.field("itemBehaviours",[za,oa,Li,hi]),mr("ignoreFocus",!1),mr("domModification",{}),Il("builder",MW),mr("eventOrder",{})],UB=s=>({dom:s.dom,components:s.components,events:hl([I_(fb())])}),jB=[Sn("dom"),Sn("components"),Il("builder",UB)],ZE=x("item-widget"),qE=x([Sd({name:"widget",overrides:s=>({behaviours:Do([hi.config({store:{mode:"manual",getValue:F=>s.data,setValue:v}})])})})]),PW=s=>{const F=I3(ZE(),s,qE()),Z=a5(ZE(),s,F.internals()),ue=Be=>Fo(Be,s,"widget").map(qe=>(Li.focusIn(qe),qe)),we=(Be,qe)=>w2(qe.event.target)?I.none():(()=>(s.autofocus&&qe.setSource(Be.element),I.none()))();return{dom:s.dom,components:Z,domModification:s.domModification,events:hl([$p((Be,qe)=>{ue(Be).each(ft=>{qe.stop()})}),fo(Om(),NB),fo(fb(),(Be,qe)=>{s.autofocus?ue(Be):oa.focus(Be)})]),behaviours:Vm.augment(s.widgetBehaviours,[hi.config({store:{mode:"memory",initialValue:s.data}}),oa.config({ignore:s.ignoreFocus,onFocus:Be=>{$B(Be)}}),Li.config({mode:"special",focusIn:s.autofocus?Be=>{ue(Be)}:Nl(),onLeft:we,onRight:we,onEscape:(Be,qe)=>!oa.isFocused(Be)&&!s.autofocus?(oa.focus(Be),I.some(!0)):(s.autofocus&&qe.setSource(Be.element),I.none())})])}},RW=[Sn("uid"),Sn("data"),Sn("components"),Sn("dom"),mr("autofocus",!1),mr("ignoreFocus",!1),Vm.field("widgetBehaviours",[hi,oa,Li]),mr("domModification",{}),Ow(qE()),Il("builder",PW)],LW=xn("type",{widget:RW,item:EW,separator:jB}),IW=(s,F)=>({mode:"flatgrid",selector:"."+s.markers.item,initSize:{numColumns:F.initSize.numColumns,numRows:F.initSize.numRows},focusManager:s.focusManager}),QB=(s,F)=>({mode:"matrix",selectors:{row:F.rowSelector,cell:"."+s.markers.item},previousSelector:F.previousSelector,focusManager:s.focusManager}),DW=(s,F)=>({mode:"menu",selector:"."+s.markers.item,moveOnTab:F.moveOnTab,focusManager:s.focusManager}),BW=x([R3({factory:{sketch:s=>{const F=cn("menu.spec item",LW,s);return F.builder(F)}},name:"items",unit:"item",defaults:(s,F)=>ht(F,"uid")?F:{...F,uid:j0("item")},overrides:(s,F)=>({type:F.type,ignoreFocus:s.fakeFocus,domModification:{classes:[s.markers.item]}})})]),zW=x([Io("role"),Sn("value"),Sn("items"),Sn("dom"),Sn("components"),mr("eventOrder",{}),Ef("menuBehaviours",[ri,hi,as,Li]),ys("movement",{mode:"menu",moveOnTab:!0},xn("mode",{grid:[$1(),Il("config",IW)],matrix:[Il("config",QB),Sn("rowSelector"),mr("previousSelector",I.none)],menu:[mr("moveOnTab",!0),Il("config",DW)]})),W_(),mr("fakeFocus",!1),mr("focusManager",z3()),Ra("onHighlight"),Ra("onDehighlight"),mr("showMenuRole",!0)]),HB=x("alloy.menu-focus"),FW=(s,F)=>{const Z=$d(s.element,'[role="menuitemradio"][aria-checked="true"]');q(Z,ue=>{so(ue,F.element)||s.getSystem().getByDom(ue).each(we=>{za.off(we)})})},Ew=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,markers:s.markers,behaviours:Pf(s.menuBehaviours,[ri.config({highlightClass:s.markers.selectedItem,itemClass:s.markers.item,onHighlight:s.onHighlight,onDehighlight:s.onDehighlight}),hi.config({store:{mode:"memory",initialValue:s.value}}),as.config({find:I.some}),Li.config(s.movement.config(s,s.movement))]),events:hl([fo(QE(),(we,Be)=>{const qe=Be.event;we.getSystem().getByDom(qe.target).each(ft=>{ri.highlight(we,ft),Be.stop(),Ri(we,HB(),{menu:we,item:ft})})}),fo(w5(),(we,Be)=>{const qe=Be.event.item;ri.highlight(we,qe)}),fo(HE(),(we,Be)=>{const{item:qe,state:ft}=Be.event;ft&&ao(qe.element,"role")==="menuitemradio"&&FW(we,qe)})]),components:F,eventOrder:s.eventOrder,...s.showMenuRole?{domModification:{attributes:{role:s.role.getOr("menu")}}}:{}}),Pw=ch({name:"Menu",configFields:zW(),partFields:BW(),factory:Ew}),NW=s=>Ze(s,(F,Z)=>({k:F,v:Z})),T2=(s,F,Z,ue)=>Ge(Z,ue).bind(we=>Ge(s,we).bind(Be=>{const qe=T2(s,F,Z,Be);return I.some([Be].concat(qe))})).getOr([]),ZB=(s,F)=>{const Z={};We(s,(qe,ft)=>{q(qe,gt=>{Z[gt]=ft})});const ue=F,we=NW(F),Be=Ue(we,(qe,ft)=>[ft].concat(T2(Z,ue,we,ft)));return Ue(Z,qe=>Ge(Be,qe).getOr([qe]))},$W=()=>{const s=xi({}),F=xi({}),Z=xi({}),ue=os(),we=xi({}),Be=()=>{s.set({}),F.set({}),Z.set({}),ue.clear()},qe=()=>ue.get().isNone(),ft=(Xr,No)=>{F.set({...F.get(),[Xr]:{type:"prepared",menu:No}})},gt=(Xr,No,Jo,ho)=>{ue.set(Xr),s.set(Jo),F.set(No),we.set(ho);const Ci=ZB(ho,Jo);Z.set(Ci)},At=Xr=>nt(s.get(),(No,Jo)=>No===Xr),$t=(Xr,No,Jo)=>Xn(Xr).bind(ho=>At(Xr).bind(Ci=>No(Ci).map(mi=>({triggeredMenu:ho,triggeringItem:mi,triggeringPath:Jo})))),on=(Xr,No)=>{const Jo=me(or(Xr).toArray(),ho=>Xn(ho).isSome());return Ge(Z.get(),Xr).bind(ho=>{const Ci=Se(Jo.concat(ho)),mi=ye(Ci,(qi,Fi)=>$t(qi,No,Ci.slice(0,Fi+1)).fold(()=>wt(ue.get(),qi)?[]:[I.none()],Os=>[I.some(Os)]));return qt(mi)})},yn=Xr=>Ge(s.get(),Xr).map(No=>{const Jo=Ge(Z.get(),Xr).getOr([]);return[No].concat(Jo)}),wn=Xr=>Ge(Z.get(),Xr).bind(No=>No.length>1?I.some(No.slice(1)):I.none()),Mn=Xr=>Ge(Z.get(),Xr),Xn=Xr=>Br(Xr).bind(Xb),Br=Xr=>Ge(F.get(),Xr),or=Xr=>Ge(s.get(),Xr);return{setMenuBuilt:ft,setContents:gt,expand:yn,refresh:Mn,collapse:wn,lookupMenu:Br,lookupItem:or,otherMenus:Xr=>{const No=we.get();return Te(ke(No),Xr)},getPrimary:()=>ue.get().bind(Xn),getMenus:()=>F.get(),clear:Be,isClear:qe,getTriggeringPath:on}},Xb=s=>s.type==="prepared"?I.some(s.menu):I.none(),qB={init:$W,extractPreparedMenu:Xb},WB=fi("tiered-menu-item-highlight"),Tg=fi("tiered-menu-item-dehighlight");var Xh;(function(s){s[s.HighlightMenuAndItem=0]="HighlightMenuAndItem",s[s.HighlightJustMenu=1]="HighlightJustMenu",s[s.HighlightNone=2]="HighlightNone"})(Xh||(Xh={}));const YB=(s,F)=>{const Z=os(),ue=(Ho,wi,_a)=>Ue(_a,(Ki,ji)=>{const ga=()=>Pw.sketch({...Ki,value:ji,markers:s.markers,fakeFocus:s.fakeFocus,onHighlight:(kl,Ns)=>{Ri(kl,WB,{menuComp:kl,itemComp:Ns})},onDehighlight:(kl,Ns)=>{Ri(kl,Tg,{menuComp:kl,itemComp:Ns})},focusManager:s.fakeFocus?g6():z3()});return ji===wi?{type:"prepared",menu:Ho.getSystem().build(ga())}:{type:"notbuilt",nbMenu:ga}}),we=qB.init(),Be=Ho=>{const wi=ue(Ho,s.data.primary,s.data.menus),_a=gt();return we.setContents(s.data.primary,wi,s.data.expansions,_a),we.getPrimary()},qe=Ho=>hi.getValue(Ho).value,ft=(Ho,wi,_a)=>Oe(wi,Ki=>{if(!Ki.getSystem().isConnected())return I.none();const ji=ri.getCandidates(Ki);return ce(ji,ga=>qe(ga)===_a)}),gt=Ho=>Ue(s.data.menus,(wi,_a)=>ye(wi.items,Ki=>Ki.type==="separator"?[]:[Ki.data.value])),At=ri.highlight,$t=(Ho,wi)=>{At(Ho,wi),ri.getHighlighted(wi).orThunk(()=>ri.getFirst(wi)).each(_a=>{s.fakeFocus?ri.highlight(wi,_a):qv(Ho,_a.element,fb())})},on=(Ho,wi)=>It(oe(wi,_a=>Ho.lookupMenu(_a).bind(Ki=>Ki.type==="prepared"?I.some(Ki.menu):I.none()))),yn=(Ho,wi,_a)=>{const Ki=on(wi,wi.otherMenus(_a));q(Ki,ji=>{th(ji.element,[s.markers.backgroundMenu]),s.stayInDom||da.remove(Ho,ji)})},wn=Ho=>Z.get().getOrThunk(()=>{const wi={},_a=$d(Ho.element,`.${s.markers.item}`),Ki=me(_a,ji=>ao(ji,"aria-haspopup")==="true");return q(Ki,ji=>{Ho.getSystem().getByDom(ji).each(ga=>{const kl=qe(ga);wi[kl]=ga})}),Z.set(wi),wi}),Mn=(Ho,wi)=>{const _a=wn(Ho);We(_a,(Ki,ji)=>{const ga=X(wi,ji);fr(Ki.element,"aria-expanded",ga)})},Xn=(Ho,wi,_a)=>I.from(_a[0]).bind(Ki=>wi.lookupMenu(Ki).bind(ji=>{if(ji.type==="notbuilt")return I.none();{const ga=ji.menu,kl=on(wi,_a.slice(1));return q(kl,Ns=>{wl(Ns.element,s.markers.backgroundMenu)}),Er(ga.element)||da.append(Ho,na(ga)),th(ga.element,[s.markers.backgroundMenu]),$t(Ho,ga),yn(Ho,wi,_a),I.some(ga)}}));let Br;(function(Ho){Ho[Ho.HighlightSubmenu=0]="HighlightSubmenu",Ho[Ho.HighlightParent=1]="HighlightParent"})(Br||(Br={}));const or=(Ho,wi,_a)=>{if(_a.type==="notbuilt"){const Ki=Ho.getSystem().build(_a.nbMenu());return we.setMenuBuilt(wi,Ki),Ki}else return _a.menu},Mr=(Ho,wi,_a=Br.HighlightSubmenu)=>{if(wi.hasConfigured(ea)&&ea.isDisabled(wi))return I.some(wi);{const Ki=qe(wi);return we.expand(Ki).bind(ji=>(Mn(Ho,ji),I.from(ji[0]).bind(ga=>we.lookupMenu(ga).bind(kl=>{const Ns=or(Ho,ga,kl);return Er(Ns.element)||da.append(Ho,na(Ns)),s.onOpenSubmenu(Ho,wi,Ns,Se(ji)),_a===Br.HighlightSubmenu?(ri.highlightFirst(Ns),Xn(Ho,we,ji)):(ri.dehighlightAll(Ns),I.some(wi))}))))}},kr=(Ho,wi)=>{const _a=qe(wi);return we.collapse(_a).bind(Ki=>(Mn(Ho,Ki),Xn(Ho,we,Ki).map(ji=>(s.onCollapseMenu(Ho,wi,ji),ji))))},yo=(Ho,wi)=>{const _a=qe(wi);return we.refresh(_a).bind(Ki=>(Mn(Ho,Ki),Xn(Ho,we,Ki)))},Xr=(Ho,wi)=>w2(wi.element)?I.none():Mr(Ho,wi,Br.HighlightSubmenu),No=(Ho,wi)=>w2(wi.element)?I.none():kr(Ho,wi),Jo=(Ho,wi)=>kr(Ho,wi).orThunk(()=>s.onEscape(Ho,wi).map(()=>Ho)),ho=Ho=>(wi,_a)=>Fs(_a.getSource(),`.${s.markers.item}`).bind(Ki=>wi.getSystem().getByDom(Ki).toOptional().bind(ji=>Ho(wi,ji).map(k))),Ci=hl([fo(HB(),(Ho,wi)=>{const _a=wi.event.item;we.lookupItem(qe(_a)).each(()=>{const Ki=wi.event.menu;ri.highlight(Ho,Ki);const ji=qe(wi.event.item);we.refresh(ji).each(ga=>yn(Ho,we,ga))})}),$p((Ho,wi)=>{const _a=wi.event.target;Ho.getSystem().getByDom(_a).each(Ki=>{qe(Ki).indexOf("collapse-item")===0&&kr(Ho,Ki),Mr(Ho,Ki,Br.HighlightSubmenu).fold(()=>{s.onExecute(Ho,Ki)},v)})}),Ll((Ho,wi)=>{Be(Ho).each(_a=>{da.append(Ho,na(_a)),s.onOpenMenu(Ho,_a),s.highlightOnOpen===Xh.HighlightMenuAndItem?$t(Ho,_a):s.highlightOnOpen===Xh.HighlightJustMenu&&At(Ho,_a)})}),fo(WB,(Ho,wi)=>{s.onHighlightItem(Ho,wi.event.menuComp,wi.event.itemComp)}),fo(Tg,(Ho,wi)=>{s.onDehighlightItem(Ho,wi.event.menuComp,wi.event.itemComp)}),...s.navigateOnHover?[fo(w5(),(Ho,wi)=>{const _a=wi.event.item;yo(Ho,_a),Mr(Ho,_a,Br.HighlightParent),s.onHover(Ho,_a)})]:[]]),mi=Ho=>ri.getHighlighted(Ho).bind(ri.getHighlighted),qi=Ho=>{mi(Ho).each(wi=>{kr(Ho,wi)})},Fi=Ho=>{we.getPrimary().each(wi=>{$t(Ho,wi)})},Os=Ho=>I.from(Ho.components()[0]).filter(wi=>ao(wi.element,"role")==="menu"),Ha={collapseMenu:qi,highlightPrimary:Fi,repositionMenus:Ho=>{we.getPrimary().bind(_a=>mi(Ho).bind(Ki=>{const ji=qe(Ki),ga=ot(we.getMenus()),kl=It(oe(ga,qB.extractPreparedMenu));return we.getTriggeringPath(ji,Ns=>ft(Ho,kl,Ns))}).map(Ki=>({primary:_a,triggeringPath:Ki}))).fold(()=>{Os(Ho).each(_a=>{s.onRepositionMenu(Ho,_a,[])})},({primary:_a,triggeringPath:Ki})=>{s.onRepositionMenu(Ho,_a,Ki)})}};return{uid:s.uid,dom:s.dom,markers:s.markers,behaviours:Pf(s.tmenuBehaviours,[Li.config({mode:"special",onRight:ho(Xr),onLeft:ho(No),onEscape:ho(Jo),focusIn:(Ho,wi)=>{we.getPrimary().each(_a=>{qv(Ho,_a.element,fb())})}}),ri.config({highlightClass:s.markers.selectedMenu,itemClass:s.markers.menu}),as.config({find:Ho=>ri.getHighlighted(Ho)}),da.config({})]),eventOrder:s.eventOrder,apis:Ha,events:Ci}},XB=x("collapse-item"),VW=(s,F,Z)=>({primary:s,menus:F,expansions:Z}),T6=(s,F)=>({primary:s,menus:wh(s,F),expansions:{}}),GB=s=>({value:fi(XB()),meta:{text:s}}),Rw=Yh({name:"TieredMenu",configFields:[i0("onExecute"),i0("onEscape"),Zh("onOpenMenu"),Zh("onOpenSubmenu"),Ra("onRepositionMenu"),Ra("onCollapseMenu"),mr("highlightOnOpen",Xh.HighlightMenuAndItem),zo("data",[Sn("primary"),Sn("menus"),Sn("expansions")]),mr("fakeFocus",!1),Ra("onHighlightItem"),Ra("onDehighlightItem"),Ra("onHover"),U0(),Sn("dom"),mr("navigateOnHover",!0),mr("stayInDom",!1),Ef("tmenuBehaviours",[Li,ri,as,da]),mr("eventOrder",{})],apis:{collapseMenu:(s,F)=>{s.collapseMenu(F)},highlightPrimary:(s,F)=>{s.highlightPrimary(F)},repositionMenus:(s,F)=>{s.repositionMenus(F)}},factory:YB,extraApis:{tieredData:VW,singleData:T6,collapseItem:GB}}),UW=(s,F,Z,ue,we)=>{const Be=()=>s.lazySink(F),qe=ue.type==="horizontal"?{layouts:{onLtr:()=>X1(),onRtl:()=>Zp()}}:{},ft=At=>At.length===2,gt=At=>ft(At)?qe:{};return Rw.sketch({dom:{tag:"div"},data:ue.data,markers:ue.menu.markers,highlightOnOpen:ue.menu.highlightOnOpen,fakeFocus:ue.menu.fakeFocus,onEscape:()=>(hs.close(F),s.onEscape.map(At=>At(F)),I.some(!0)),onExecute:()=>I.some(!0),onOpenMenu:(At,$t)=>{ed.positionWithinBounds(Be().getOrDie(),$t,Z,we())},onOpenSubmenu:(At,$t,on,yn)=>{const wn=Be().getOrDie();ed.position(wn,on,{anchor:{type:"submenu",item:$t,...gt(yn)}})},onRepositionMenu:(At,$t,on)=>{const yn=Be().getOrDie();ed.positionWithinBounds(yn,$t,Z,we()),q(on,wn=>{const Mn=gt(wn.triggeringPath);ed.position(yn,wn.triggeredMenu,{anchor:{type:"submenu",item:wn.triggeringItem,...Mn}})})}})},C6=(s,F)=>{const Z=(yn,wn)=>s.getRelated(yn).exists(Xn=>Vc(Xn,wn)),ue=(yn,wn)=>{hs.setContent(yn,wn)},we=(yn,wn,Mn)=>{const Xn=I.none;Be(yn,wn,Mn,Xn)},Be=(yn,wn,Mn,Xn)=>{const Br=s.lazySink(yn).getOrDie();hs.openWhileCloaked(yn,wn,()=>ed.positionWithinBounds(Br,yn,Mn,Xn())),hi.setValue(yn,I.some({mode:"position",config:Mn,getBounds:Xn}))},qe=(yn,wn,Mn)=>{ft(yn,wn,Mn,I.none)},ft=(yn,wn,Mn,Xn)=>{const Br=UW(s,yn,wn,Mn,Xn);hs.open(yn,Br),hi.setValue(yn,I.some({mode:"menu",menu:Br}))},gt=yn=>{hs.isOpen(yn)&&(hi.setValue(yn,I.none()),hs.close(yn))},At=yn=>hs.getState(yn),$t=yn=>{hs.isOpen(yn)&&hi.getValue(yn).each(wn=>{switch(wn.mode){case"menu":hs.getState(yn).each(Rw.repositionMenus);break;case"position":const Mn=s.lazySink(yn).getOrDie();ed.positionWithinBounds(Mn,yn,wn.config,wn.getBounds());break}})},on={setContent:ue,showAt:we,showWithinBounds:Be,showMenuAt:qe,showMenuWithinBounds:ft,hide:gt,getContent:At,reposition:$t,isOpen:hs.isOpen};return{uid:s.uid,dom:s.dom,behaviours:Pf(s.inlineBehaviours,[hs.config({isPartOf:(yn,wn,Mn)=>Vc(wn,Mn)||Z(yn,Mn),getAttachPoint:yn=>s.lazySink(yn).getOrDie(),onOpen:yn=>{s.onShow(yn)},onClose:yn=>{s.onHide(yn)}}),hi.config({store:{mode:"memory",initialValue:I.none()}}),Wu.config({channels:{...uv({isExtraPart:F.isExtraPart,...s.fireDismissalEventInstead.map(yn=>({fireEventInstead:{event:yn.event}})).getOr({})}),..._3({...s.fireRepositionEventInstead.map(yn=>({fireEventInstead:{event:yn.event}})).getOr({}),doReposition:$t})}})]),eventOrder:s.eventOrder,apis:on}},hc=Yh({name:"InlineView",configFields:[Sn("lazySink"),Ra("onShow"),Ra("onHide"),Ui("onEscape"),Ef("inlineBehaviours",[hs,hi,Wu]),Pi("fireDismissalEventInstead",[mr("event",I0())]),Pi("fireRepositionEventInstead",[mr("event",E_())]),mr("getRelated",I.none),mr("isExtraPart",D),mr("eventOrder",I.none)],factory:C6,apis:{showAt:(s,F,Z,ue)=>{s.showAt(F,Z,ue)},showWithinBounds:(s,F,Z,ue,we)=>{s.showWithinBounds(F,Z,ue,we)},showMenuAt:(s,F,Z,ue)=>{s.showMenuAt(F,Z,ue)},showMenuWithinBounds:(s,F,Z,ue,we)=>{s.showMenuWithinBounds(F,Z,ue,we)},hide:(s,F)=>{s.hide(F)},isOpen:(s,F)=>s.isOpen(F),getContent:(s,F)=>s.getContent(F),setContent:(s,F,Z)=>{s.setContent(F,Z)},reposition:(s,F)=>{s.reposition(F)}}});var O5=tinymce.util.Tools.resolve("tinymce.util.Delay"),Lw=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),KB=tinymce.util.Tools.resolve("tinymce.EditorManager"),Q3=tinymce.util.Tools.resolve("tinymce.Env"),Hm;(function(s){s.default="wrap",s.floating="floating",s.sliding="sliding",s.scrolling="scrolling"})(Hm||(Hm={}));var H3;(function(s){s.auto="auto",s.top="top",s.bottom="bottom"})(H3||(H3={}));const Ul=s=>F=>F.options.get(s),S5=s=>F=>I.from(s(F)),JB=s=>{const F=Q3.deviceType.isPhone(),Z=Q3.deviceType.isTablet()||F,ue=s.options.register,we=qe=>n(qe)||qe===!1,Be=qe=>n(qe)||h(qe);ue("skin",{processor:qe=>n(qe)||qe===!1,default:"oxide"}),ue("skin_url",{processor:"string"}),ue("height",{processor:Be,default:Math.max(s.getElement().offsetHeight,400)}),ue("width",{processor:Be,default:Lw.DOM.getStyle(s.getElement(),"width")}),ue("min_height",{processor:"number",default:100}),ue("min_width",{processor:"number"}),ue("max_height",{processor:"number"}),ue("max_width",{processor:"number"}),ue("style_formats",{processor:"object[]"}),ue("style_formats_merge",{processor:"boolean",default:!1}),ue("style_formats_autohide",{processor:"boolean",default:!1}),ue("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),ue("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),ue("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),ue("font_size_input_default_unit",{processor:"string",default:"pt"}),ue("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),ue("content_langs",{processor:"object[]"}),ue("removed_menuitems",{processor:"string",default:""}),ue("menubar",{processor:qe=>n(qe)||w(qe),default:!F}),ue("menu",{processor:"object",default:{}}),ue("toolbar",{processor:qe=>w(qe)||n(qe)||i(qe)?{value:qe,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),W(9,qe=>{ue("toolbar"+(qe+1),{processor:"string"})}),ue("toolbar_mode",{processor:"string",default:Z?"scrolling":"floating"}),ue("toolbar_groups",{processor:"object",default:{}}),ue("toolbar_location",{processor:"string",default:H3.auto}),ue("toolbar_persist",{processor:"boolean",default:!1}),ue("toolbar_sticky",{processor:"boolean",default:s.inline}),ue("toolbar_sticky_offset",{processor:"number",default:0}),ue("fixed_toolbar_container",{processor:"string",default:""}),ue("fixed_toolbar_container_target",{processor:"object"}),ue("ui_mode",{processor:"string",default:"combined"}),ue("file_picker_callback",{processor:"function"}),ue("file_picker_validator_handler",{processor:"function"}),ue("file_picker_types",{processor:"string"}),ue("typeahead_urls",{processor:"boolean",default:!0}),ue("anchor_top",{processor:we,default:"#top"}),ue("anchor_bottom",{processor:we,default:"#bottom"}),ue("draggable_modal",{processor:"boolean",default:!1}),ue("statusbar",{processor:"boolean",default:!0}),ue("elementpath",{processor:"boolean",default:!0}),ue("branding",{processor:"boolean",default:!0}),ue("promotion",{processor:"boolean",default:!0}),ue("resize",{processor:qe=>qe==="both"||w(qe),default:!Q3.deviceType.isTouch()}),ue("sidebar_show",{processor:"string"}),ue("help_accessibility",{processor:"boolean",default:s.hasPlugin("help")}),ue("default_font_stack",{processor:"string[]",default:[]})},A6=Ul("readonly"),WE=Ul("height"),Iw=Ul("width"),Z3=S5(Ul("min_width")),M6=S5(Ul("min_height")),k5=S5(Ul("max_width")),YE=S5(Ul("max_height")),ez=S5(Ul("style_formats")),tz=Ul("style_formats_merge"),nz=Ul("style_formats_autohide"),E6=Ul("content_langs"),XE=Ul("removed_menuitems"),Dw=Ul("toolbar_mode"),P6=Ul("toolbar_groups"),GE=Ul("toolbar_location"),rz=Ul("fixed_toolbar_container"),jW=Ul("fixed_toolbar_container_target"),oz=Ul("toolbar_persist"),iz=Ul("toolbar_sticky_offset"),KE=Ul("menubar"),R6=Ul("toolbar"),az=Ul("file_picker_callback"),L6=Ul("file_picker_validator_handler"),JE=Ul("font_size_input_default_unit"),e7=Ul("file_picker_types"),sz=Ul("typeahead_urls"),I6=Ul("anchor_top"),lz=Ul("anchor_bottom"),cz=Ul("draggable_modal"),uz=Ul("statusbar"),fz=Ul("elementpath"),t7=Ul("branding"),n7=Ul("resize"),D6=Ul("paste_as_text"),dz=Ul("sidebar_show"),T5=Ul("promotion"),hz=Ul("help_accessibility"),pz=Ul("default_font_stack"),r7=s=>s.options.get("skin")===!1,B6=s=>s.options.get("menubar")!==!1,o7=s=>{const F=s.options.get("skin_url");if(r7(s))return F;if(F)return s.documentBaseURI.toAbsolute(F);{const Z=s.options.get("skin");return KB.baseURL+"/skins/ui/"+Z}},z6=s=>I.from(s.options.get("skin_url")),i7=s=>s.options.get("line_height_formats").split(" "),F6=s=>{const F=R6(s),Z=n(F),ue=i(F)&&F.length>0;return!Bw(s)&&(ue||Z||F===!0)},a7=s=>{const F=W(9,ue=>s.options.get("toolbar"+(ue+1))),Z=me(F,n);return _t(Z.length>0,Z)},Bw=s=>a7(s).fold(()=>{const F=R6(s);return m(F,n)&&F.length>0},k),Gb=s=>GE(s)===H3.bottom,mz=s=>{var F;if(!s.inline)return I.none();const Z=(F=rz(s))!==null&&F!==void 0?F:"";if(Z.length>0)return aa(Vr(),Z);const ue=jW(s);return a(ue)?I.some(Pt.fromDom(ue)):I.none()},q3=s=>s.inline&&mz(s).isSome(),C5=s=>mz(s).getOrThunk(()=>nr(vr(Pt.fromDom(s.getElement())))),N6=s=>s.inline&&!B6(s)&&!F6(s)&&!Bw(s),W3=s=>(s.options.get("toolbar_sticky")||s.inline)&&!q3(s)&&!N6(s),C2=s=>!q3(s)&&s.options.get("ui_mode")==="split",s7=s=>{const F=s.options.get("menu");return Ue(F,Z=>({...Z,items:Z.items}))};var QW=Object.freeze({__proto__:null,get ToolbarMode(){return Hm},get ToolbarLocation(){return H3},register:JB,getSkinUrl:o7,getSkinUrlOption:z6,isReadOnly:A6,isSkinDisabled:r7,getHeightOption:WE,getWidthOption:Iw,getMinWidthOption:Z3,getMinHeightOption:M6,getMaxWidthOption:k5,getMaxHeightOption:YE,getUserStyleFormats:ez,shouldMergeStyleFormats:tz,shouldAutoHideStyleFormats:nz,getLineHeightFormats:i7,getContentLanguages:E6,getRemovedMenuItems:XE,isMenubarEnabled:B6,isMultipleToolbars:Bw,isToolbarEnabled:F6,isToolbarPersist:oz,getMultipleToolbarsOption:a7,getUiContainer:C5,useFixedContainer:q3,isSplitUiMode:C2,getToolbarMode:Dw,isDraggableModal:cz,isDistractionFree:N6,isStickyToolbar:W3,getStickyToolbarOffset:iz,getToolbarLocation:GE,isToolbarLocationBottom:Gb,getToolbarGroups:P6,getMenus:s7,getMenubar:KE,getToolbar:R6,getFilePickerCallback:az,getFilePickerTypes:e7,useTypeaheadUrls:sz,getAnchorTop:I6,getAnchorBottom:lz,getFilePickerValidatorHandler:L6,getFontSizeInputDefaultUnit:JE,useStatusBar:uz,useElementPath:fz,promotionEnabled:T5,useBranding:t7,getResize:n7,getPasteAsText:D6,getSidebarShow:dz,useHelpAccessibility:hz,getDefaultFontStack:pz});const gz=["visible","hidden","clip"],l7=s=>Rt(s).length>0&&!X(gz,s),$6=s=>{if(Wn(s)){const F=Aa(s,"overflow-x"),Z=Aa(s,"overflow-y");return l7(F)||l7(Z)}else return!1},HW=s=>{const F=d2(s,$6),Z=F.length===0?Hn(s).map(tr).map(ue=>d2(ue,$6)).getOr([]):F;return He(Z).map(ue=>({element:ue,others:Z.slice(1)}))},Kb=(s,F)=>C2(s)?HW(F):I.none(),zw=s=>{const F=[...oe(s.others,Ya),xl()];return Wc(Ya(s.element),F)},Vd=Yh({name:"Button",factory:s=>{const F=k6(s.action),Z=s.dom.tag,ue=Be=>Ge(s.dom,"attributes").bind(qe=>Ge(qe,Be)),we=()=>{if(Z==="button"){const Be=ue("type").getOr("button"),qe=ue("role").map(ft=>({role:ft})).getOr({});return{type:Be,...qe}}else return{role:s.role.getOr(ue("role").getOr("button"))}};return{uid:s.uid,dom:s.dom,components:s.components,events:F,behaviours:Vm.augment(s.buttonBehaviours,[oa.config({}),Li.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:we()},eventOrder:s.eventOrder}},configFields:[mr("uid",void 0),Sn("dom"),mr("components",[]),Vm.field("buttonBehaviours",[oa,Li]),Hr("action"),Hr("role"),mr("eventOrder",{})]}),ZW=s=>{const F=s.dom.attributes!==void 0?s.dom.attributes:[];return se(F,(Z,ue)=>ue.name==="class"?Z:{...Z,[ue.name]:ue.value},{})},c7=s=>Array.prototype.slice.call(s.dom.classList,0),pv=s=>{const F=Pt.fromHtml(s),Z=bo(F),ue=ZW(F),we=c7(F),Be=Z.length===0?{}:{innerHtml:nh(F)};return{tag:ar(F),classes:we,attributes:ue,...Be}},qs=s=>{const F=uE(s)&&pt(s,"uid")?s.uid:j0("memento");return{get:Be=>Be.getSystem().getByUid(F).getOrDie(),getOpt:Be=>Be.getSystem().getByUid(F).toOptional(),asSpec:()=>({...s,uid:F})}};var qW=Object.freeze({__proto__:null,exhibit:(s,F)=>Tf({attributes:hd([{key:F.tabAttr,value:"true"}])})}),WW=[mr("tabAttr","data-alloy-tabstop")];const Wl=lf({fields:WW,name:"tabstopping",active:qW}),yz=fi("tooltip.exclusive"),A5=fi("tooltip.show"),M5=fi("tooltip.hide"),U6=fi("tooltip.immediateHide"),j6=fi("tooltip.immediateShow"),bz=(s,F,Z)=>{s.getSystem().broadcastOn([yz],{})};var YW=Object.freeze({__proto__:null,hideAllExclusive:bz,setComponents:(s,F,Z,ue)=>{Z.getTooltip().each(we=>{we.getSystem().isConnected()&&da.set(we,ue)})}}),XW=Object.freeze({__proto__:null,events:(s,F)=>{const Z=qe=>{F.getTooltip().each(ft=>{ft.getSystem().isConnected()&&(cv(ft),s.onHide(qe,ft),F.clearTooltip())}),F.clearTimer()},ue=qe=>{if(!F.isShowing()){bz(qe);const ft=s.lazySink(qe).getOrDie(),gt=qe.getSystem().build({dom:s.tooltipDom,components:s.tooltipComponents,events:hl(s.mode==="normal"?[fo(Om(),At=>{Sa(qe,A5)}),fo(kf(),At=>{Sa(qe,M5)})]:[]),behaviours:Do([da.config({})])});F.setTooltip(gt),X0(ft,gt),s.onShow(qe,gt),ed.position(ft,gt,{anchor:s.anchor(qe)})}},we=qe=>{F.getTooltip().each(ft=>{const gt=s.lazySink(qe).getOrDie();ed.position(gt,ft,{anchor:s.anchor(qe)})})},Be=()=>{switch(s.mode){case"normal":return[fo(Sm(),qe=>{Sa(qe,j6)}),fo(Xg(),qe=>{Sa(qe,U6)}),fo(Om(),qe=>{Sa(qe,A5)}),fo(kf(),qe=>{Sa(qe,M5)})];case"follow-highlight":return[fo(Cm(),(qe,ft)=>{Sa(qe,A5)}),fo(D0(),qe=>{Sa(qe,M5)})];case"children-normal":return[fo(Sm(),(qe,ft)=>{xd(qe.element).each(gt=>{Rr(ft.event.target,"[data-mce-tooltip]")&&F.getTooltip().fold(()=>{Sa(qe,j6)},At=>{F.isShowing()&&(s.onShow(qe,At),we(qe))})})}),fo(Xg(),qe=>{xd(qe.element).fold(()=>{Sa(qe,U6)},v)}),fo(Om(),qe=>{aa(qe.element,"[data-mce-tooltip]:hover").each(ft=>{F.getTooltip().fold(()=>{Sa(qe,A5)},gt=>{F.isShowing()&&(s.onShow(qe,gt),we(qe))})})}),fo(kf(),qe=>{aa(qe.element,"[data-mce-tooltip]:hover").fold(()=>{Sa(qe,M5)},v)})];default:return[fo(Sm(),(qe,ft)=>{xd(qe.element).each(gt=>{Rr(ft.event.target,"[data-mce-tooltip]")&&F.getTooltip().fold(()=>{Sa(qe,j6)},At=>{F.isShowing()&&(s.onShow(qe,At),we(qe))})})}),fo(Xg(),qe=>{xd(qe.element).fold(()=>{Sa(qe,U6)},v)})]}};return hl(ve([[fo(A5,qe=>{F.resetTimer(()=>{ue(qe)},s.delayForShow())}),fo(M5,qe=>{F.resetTimer(()=>{Z(qe)},s.delayForHide())}),fo(j6,qe=>{F.resetTimer(()=>{ue(qe)},0)}),fo(U6,qe=>{F.resetTimer(()=>{Z(qe)},0)}),fo(lp(),(qe,ft)=>{const gt=ft;gt.universal||X(gt.channels,yz)&&Z(qe)}),Sh(qe=>{Z(qe)})],Be()]))}}),GW=[Sn("lazySink"),Sn("tooltipDom"),mr("exclusive",!0),mr("tooltipComponents",[]),Pa("delayForShow",x(300)),Pa("delayForHide",x(300)),dl("mode","normal",["normal","follow-highlight","children-keyboard-focus","children-normal"]),mr("anchor",s=>({type:"hotspot",hotspot:s,layouts:{onLtr:x([Pc,Jc,Ec,Hc,Qc,_s]),onRtl:x([Pc,Jc,Ec,Hc,Qc,_s])},bubble:pp(0,-2,{})})),Ra("onHide"),Ra("onShow")],u7=Object.freeze({__proto__:null,init:()=>{const s=os(),F=os(),Z=()=>{s.on(clearTimeout)},ue=(Be,qe)=>{Z(),s.set(setTimeout(Be,qe))},we=x("not-implemented");return kh({getTooltip:F.get,isShowing:F.isSet,setTooltip:F.set,clearTooltip:F.clear,clearTimer:Z,resetTimer:ue,readState:we})}});const kd=lf({fields:GW,name:"tooltipping",active:XW,state:u7,apis:YW}),{entries:xz,setPrototypeOf:_z,isFrozen:wz,getPrototypeOf:KW,getOwnPropertyDescriptor:JW}=Object;let{freeze:Zm,seal:mv,create:eY}=Object,{apply:f7,construct:E5}=typeof Reflect<"u"&&Reflect;f7||(f7=function(F,Z,ue){return F.apply(Z,ue)}),Zm||(Zm=function(F){return F}),mv||(mv=function(F){return F}),E5||(E5=function(F,Z){return new F(...Z)});const tY=n1(Array.prototype.forEach),nY=n1(Array.prototype.pop),P5=n1(Array.prototype.push),Q6=n1(String.prototype.toLowerCase),d7=n1(String.prototype.toString),rY=n1(String.prototype.match),gv=n1(String.prototype.replace),oY=n1(String.prototype.indexOf),iY=n1(String.prototype.trim),f0=n1(RegExp.prototype.test),R5=aY(TypeError);function n1(s){return function(F){for(var Z=arguments.length,ue=new Array(Z>1?Z-1:0),we=1;we/gm),sY=mv(/\${[\w\W]*}/gm),lY=mv(/^data-[\-\w.\u00B7-\uFFFF]/),cY=mv(/^aria-[\-\w]+$/),kz=mv(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),B5=mv(/^(?:\w+script|data):/i),uY=mv(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),b7=mv(/^html$/i);var Z6=Object.freeze({__proto__:null,MUSTACHE_EXPR:Py,ERB_EXPR:y7,TMPLIT_EXPR:sY,DATA_ATTR:lY,ARIA_ATTR:cY,IS_ALLOWED_URI:kz,IS_SCRIPT_OR_DATA:B5,ATTR_WHITESPACE:uY,DOCTYPE_NAME:b7});const fY=()=>typeof window>"u"?null:window,x7=function(F,Z){if(typeof F!="object"||typeof F.createPolicy!="function")return null;let ue=null;const we="data-tt-policy-suffix";Z&&Z.hasAttribute(we)&&(ue=Z.getAttribute(we));const Be="dompurify"+(ue?"#"+ue:"");try{return F.createPolicy(Be,{createHTML(qe){return qe},createScriptURL(qe){return qe}})}catch{return console.warn("TrustedTypes policy "+Be+" could not be created."),null}};function q6(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fY();const F=ns=>q6(ns);if(F.version="3.0.5",F.removed=[],!s||!s.document||s.document.nodeType!==9)return F.isSupported=!1,F;const Z=s.document,ue=Z.currentScript;let{document:we}=s;const{DocumentFragment:Be,HTMLTemplateElement:qe,Node:ft,Element:gt,NodeFilter:At,NamedNodeMap:$t=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:on,DOMParser:yn,trustedTypes:wn}=s,Mn=gt.prototype,Xn=X3(Mn,"cloneNode"),Br=X3(Mn,"nextSibling"),or=X3(Mn,"childNodes"),Mr=X3(Mn,"parentNode");if(typeof qe=="function"){const ns=we.createElement("template");ns.content&&ns.content.ownerDocument&&(we=ns.content.ownerDocument)}let kr,yo="";const{implementation:Xr,createNodeIterator:No,createDocumentFragment:Jo,getElementsByTagName:ho}=we,{importNode:Ci}=Z;let mi={};F.isSupported=typeof xz=="function"&&typeof Mr=="function"&&Xr&&Xr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:qi,ERB_EXPR:Fi,TMPLIT_EXPR:Os,DATA_ATTR:vs,ARIA_ATTR:Ha,IS_SCRIPT_OR_DATA:Ho,ATTR_WHITESPACE:wi}=Z6;let{IS_ALLOWED_URI:_a}=Z6,Ki=null;const ji=Ks({},[...Oz,...h7,...p7,...m7,...H6]);let ga=null;const kl=Ks({},[...v7,...L5,...I5,...D5]);let Ns=Object.seal(Object.create(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}})),zh=null,Bg=null,Tv=!0,dh=!0,zg=!1,w0=!0,im=!1,jy=!1,mO=!1,TL=!1,L4=!1,OA=!1,fQ=!1,Ufe=!0,jfe=!1;const POe="user-content-";let Voe=!0,CL=!1,SA={},kA=null;const Qfe=Ks({},["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"]);let Hfe=null;const Zfe=Ks({},["audio","video","img","source","image","track"]);let Uoe=null;const qfe=Ks({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dQ="http://www.w3.org/1998/Math/MathML",hQ="http://www.w3.org/2000/svg",gO="http://www.w3.org/1999/xhtml";let TA=gO,joe=!1,Qoe=null;const ROe=Ks({},[dQ,hQ,gO],d7);let Vk;const LOe=["application/xhtml+xml","text/html"],IOe="text/html";let am,CA=null;const DOe=we.createElement("form"),Wfe=function(oo){return oo instanceof RegExp||oo instanceof Function},Hoe=function(oo){if(!(CA&&CA===oo)){if((!oo||typeof oo!="object")&&(oo={}),oo=Y3(oo),Vk=LOe.indexOf(oo.PARSER_MEDIA_TYPE)===-1?Vk=IOe:Vk=oo.PARSER_MEDIA_TYPE,am=Vk==="application/xhtml+xml"?d7:Q6,Ki="ALLOWED_TAGS"in oo?Ks({},oo.ALLOWED_TAGS,am):ji,ga="ALLOWED_ATTR"in oo?Ks({},oo.ALLOWED_ATTR,am):kl,Qoe="ALLOWED_NAMESPACES"in oo?Ks({},oo.ALLOWED_NAMESPACES,d7):ROe,Uoe="ADD_URI_SAFE_ATTR"in oo?Ks(Y3(qfe),oo.ADD_URI_SAFE_ATTR,am):qfe,Hfe="ADD_DATA_URI_TAGS"in oo?Ks(Y3(Zfe),oo.ADD_DATA_URI_TAGS,am):Zfe,kA="FORBID_CONTENTS"in oo?Ks({},oo.FORBID_CONTENTS,am):Qfe,zh="FORBID_TAGS"in oo?Ks({},oo.FORBID_TAGS,am):{},Bg="FORBID_ATTR"in oo?Ks({},oo.FORBID_ATTR,am):{},SA="USE_PROFILES"in oo?oo.USE_PROFILES:!1,Tv=oo.ALLOW_ARIA_ATTR!==!1,dh=oo.ALLOW_DATA_ATTR!==!1,zg=oo.ALLOW_UNKNOWN_PROTOCOLS||!1,w0=oo.ALLOW_SELF_CLOSE_IN_ATTR!==!1,im=oo.SAFE_FOR_TEMPLATES||!1,jy=oo.WHOLE_DOCUMENT||!1,L4=oo.RETURN_DOM||!1,OA=oo.RETURN_DOM_FRAGMENT||!1,fQ=oo.RETURN_TRUSTED_TYPE||!1,TL=oo.FORCE_BODY||!1,Ufe=oo.SANITIZE_DOM!==!1,jfe=oo.SANITIZE_NAMED_PROPS||!1,Voe=oo.KEEP_CONTENT!==!1,CL=oo.IN_PLACE||!1,_a=oo.ALLOWED_URI_REGEXP||kz,TA=oo.NAMESPACE||gO,Ns=oo.CUSTOM_ELEMENT_HANDLING||{},oo.CUSTOM_ELEMENT_HANDLING&&Wfe(oo.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ns.tagNameCheck=oo.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oo.CUSTOM_ELEMENT_HANDLING&&Wfe(oo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ns.attributeNameCheck=oo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oo.CUSTOM_ELEMENT_HANDLING&&typeof oo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ns.allowCustomizedBuiltInElements=oo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),im&&(dh=!1),OA&&(L4=!0),SA&&(Ki=Ks({},[...H6]),ga=[],SA.html===!0&&(Ks(Ki,Oz),Ks(ga,v7)),SA.svg===!0&&(Ks(Ki,h7),Ks(ga,L5),Ks(ga,D5)),SA.svgFilters===!0&&(Ks(Ki,p7),Ks(ga,L5),Ks(ga,D5)),SA.mathMl===!0&&(Ks(Ki,m7),Ks(ga,I5),Ks(ga,D5))),oo.ADD_TAGS&&(Ki===ji&&(Ki=Y3(Ki)),Ks(Ki,oo.ADD_TAGS,am)),oo.ADD_ATTR&&(ga===kl&&(ga=Y3(ga)),Ks(ga,oo.ADD_ATTR,am)),oo.ADD_URI_SAFE_ATTR&&Ks(Uoe,oo.ADD_URI_SAFE_ATTR,am),oo.FORBID_CONTENTS&&(kA===Qfe&&(kA=Y3(kA)),Ks(kA,oo.FORBID_CONTENTS,am)),Voe&&(Ki["#text"]=!0),jy&&Ks(Ki,["html","head","body"]),Ki.table&&(Ks(Ki,["tbody"]),delete zh.tbody),oo.TRUSTED_TYPES_POLICY){if(typeof oo.TRUSTED_TYPES_POLICY.createHTML!="function")throw R5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof oo.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw R5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');kr=oo.TRUSTED_TYPES_POLICY,yo=kr.createHTML("")}else kr===void 0&&(kr=x7(wn,ue)),kr!==null&&typeof yo=="string"&&(yo=kr.createHTML(""));Zm&&Zm(oo),CA=oo}},Yfe=Ks({},["mi","mo","mn","ms","mtext"]),Xfe=Ks({},["foreignobject","desc","title","annotation-xml"]),BOe=Ks({},["title","style","font","a","script"]),pQ=Ks({},h7);Ks(pQ,p7),Ks(pQ,Sz);const Zoe=Ks({},m7);Ks(Zoe,g7);const zOe=function(oo){let Ii=Mr(oo);(!Ii||!Ii.tagName)&&(Ii={namespaceURI:TA,tagName:"template"});const ha=Q6(oo.tagName),Xu=Q6(Ii.tagName);return Qoe[oo.namespaceURI]?oo.namespaceURI===hQ?Ii.namespaceURI===gO?ha==="svg":Ii.namespaceURI===dQ?ha==="svg"&&(Xu==="annotation-xml"||Yfe[Xu]):!!pQ[ha]:oo.namespaceURI===dQ?Ii.namespaceURI===gO?ha==="math":Ii.namespaceURI===hQ?ha==="math"&&Xfe[Xu]:!!Zoe[ha]:oo.namespaceURI===gO?Ii.namespaceURI===hQ&&!Xfe[Xu]||Ii.namespaceURI===dQ&&!Yfe[Xu]?!1:!Zoe[ha]&&(BOe[ha]||!pQ[ha]):!!(Vk==="application/xhtml+xml"&&Qoe[oo.namespaceURI]):!1},Uk=function(oo){P5(F.removed,{element:oo});try{oo.parentNode.removeChild(oo)}catch{oo.remove()}},AL=function(oo,Ii){try{P5(F.removed,{attribute:Ii.getAttributeNode(oo),from:Ii})}catch{P5(F.removed,{attribute:null,from:Ii})}if(Ii.removeAttribute(oo),oo==="is"&&!ga[oo])if(L4||OA)try{Uk(Ii)}catch{}else try{Ii.setAttribute(oo,"")}catch{}},Gfe=function(oo){let Ii,ha;if(TL)oo=""+oo;else{const Qy=rY(oo,/^[\r\n\t ]+/);ha=Qy&&Qy[0]}Vk==="application/xhtml+xml"&&TA===gO&&(oo=''+oo+"");const Xu=kr?kr.createHTML(oo):oo;if(TA===gO)try{Ii=new yn().parseFromString(Xu,Vk)}catch{}if(!Ii||!Ii.documentElement){Ii=Xr.createDocument(TA,"template",null);try{Ii.documentElement.innerHTML=joe?yo:Xu}catch{}}const sm=Ii.body||Ii.documentElement;return oo&&ha&&sm.insertBefore(we.createTextNode(ha),sm.childNodes[0]||null),TA===gO?ho.call(Ii,jy?"html":"body")[0]:jy?Ii.documentElement:sm},Kfe=function(oo){return No.call(oo.ownerDocument||oo,oo,At.SHOW_ELEMENT|At.SHOW_COMMENT|At.SHOW_TEXT,null,!1)},FOe=function(oo){return oo instanceof on&&(typeof oo.nodeName!="string"||typeof oo.textContent!="string"||typeof oo.removeChild!="function"||!(oo.attributes instanceof $t)||typeof oo.removeAttribute!="function"||typeof oo.setAttribute!="function"||typeof oo.namespaceURI!="string"||typeof oo.insertBefore!="function"||typeof oo.hasChildNodes!="function")},mQ=function(oo){return typeof ft=="object"?oo instanceof ft:oo&&typeof oo=="object"&&typeof oo.nodeType=="number"&&typeof oo.nodeName=="string"},vO=function(oo,Ii,ha){mi[oo]&&tY(mi[oo],Xu=>{Xu.call(F,Ii,ha,CA)})},Jfe=function(oo){let Ii;if(vO("beforeSanitizeElements",oo,null),FOe(oo))return Uk(oo),!0;const ha=am(oo.nodeName);if(vO("uponSanitizeElement",oo,{tagName:ha,allowedTags:Ki}),oo.hasChildNodes()&&!mQ(oo.firstElementChild)&&(!mQ(oo.content)||!mQ(oo.content.firstElementChild))&&f0(/<[/\w]/g,oo.innerHTML)&&f0(/<[/\w]/g,oo.textContent))return Uk(oo),!0;if(!Ki[ha]||zh[ha]){if(!zh[ha]&&tde(ha)&&(Ns.tagNameCheck instanceof RegExp&&f0(Ns.tagNameCheck,ha)||Ns.tagNameCheck instanceof Function&&Ns.tagNameCheck(ha)))return!1;if(Voe&&!kA[ha]){const Xu=Mr(oo)||oo.parentNode,sm=or(oo)||oo.childNodes;if(sm&&Xu){const Qy=sm.length;for(let Qd=Qy-1;Qd>=0;--Qd)Xu.insertBefore(Xn(sm[Qd],!0),Br(oo))}}return Uk(oo),!0}return oo instanceof gt&&!zOe(oo)||(ha==="noscript"||ha==="noembed"||ha==="noframes")&&f0(/<\/no(script|embed|frames)/i,oo.innerHTML)?(Uk(oo),!0):(im&&oo.nodeType===3&&(Ii=oo.textContent,Ii=gv(Ii,qi," "),Ii=gv(Ii,Fi," "),Ii=gv(Ii,Os," "),oo.textContent!==Ii&&(P5(F.removed,{element:oo.cloneNode()}),oo.textContent=Ii)),vO("afterSanitizeElements",oo,null),!1)},ede=function(oo,Ii,ha){if(Ufe&&(Ii==="id"||Ii==="name")&&(ha in we||ha in DOe))return!1;if(!(dh&&!Bg[Ii]&&f0(vs,Ii))){if(!(Tv&&f0(Ha,Ii))){if(!ga[Ii]||Bg[Ii]){if(!(tde(oo)&&(Ns.tagNameCheck instanceof RegExp&&f0(Ns.tagNameCheck,oo)||Ns.tagNameCheck instanceof Function&&Ns.tagNameCheck(oo))&&(Ns.attributeNameCheck instanceof RegExp&&f0(Ns.attributeNameCheck,Ii)||Ns.attributeNameCheck instanceof Function&&Ns.attributeNameCheck(Ii))||Ii==="is"&&Ns.allowCustomizedBuiltInElements&&(Ns.tagNameCheck instanceof RegExp&&f0(Ns.tagNameCheck,ha)||Ns.tagNameCheck instanceof Function&&Ns.tagNameCheck(ha))))return!1}else if(!Uoe[Ii]){if(!f0(_a,gv(ha,wi,""))){if(!((Ii==="src"||Ii==="xlink:href"||Ii==="href")&&oo!=="script"&&oY(ha,"data:")===0&&Hfe[oo])){if(!(zg&&!f0(Ho,gv(ha,wi,"")))){if(ha)return!1}}}}}}return!0},tde=function(oo){return oo.indexOf("-")>0},nde=function(oo){let Ii,ha,Xu,sm;vO("beforeSanitizeAttributes",oo,null);const{attributes:Qy}=oo;if(!Qy)return;const Qd={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ga};for(sm=Qy.length;sm--;){Ii=Qy[sm];const{name:Hy,namespaceURI:qoe}=Ii;ha=Hy==="value"?Ii.value:iY(Ii.value);const $Oe=ha;if(Xu=am(Hy),Qd.attrName=Xu,Qd.attrValue=ha,Qd.keepAttr=!0,Qd.forceKeepAttr=void 0,vO("uponSanitizeAttribute",oo,Qd),ha=Qd.attrValue,Qd.forceKeepAttr)continue;if(!Qd.keepAttr){AL(Hy,oo);continue}if(!w0&&f0(/\/>/i,ha)){AL(Hy,oo);continue}im&&(ha=gv(ha,qi," "),ha=gv(ha,Fi," "),ha=gv(ha,Os," "));const rde=am(oo.nodeName);if(!ede(rde,Xu,ha)){AL(Hy,oo);continue}if(jfe&&(Xu==="id"||Xu==="name")&&(AL(Hy,oo),ha=POe+ha),kr&&typeof wn=="object"&&typeof wn.getAttributeType=="function"&&!qoe)switch(wn.getAttributeType(rde,Xu)){case"TrustedHTML":{ha=kr.createHTML(ha);break}case"TrustedScriptURL":{ha=kr.createScriptURL(ha);break}}if(ha!==$Oe)try{qoe?oo.setAttributeNS(qoe,Hy,ha):oo.setAttribute(Hy,ha)}catch{AL(Hy,oo)}}vO("afterSanitizeAttributes",oo,null)},NOe=function ns(oo){let Ii;const ha=Kfe(oo);for(vO("beforeSanitizeShadowDOM",oo,null);Ii=ha.nextNode();)vO("uponSanitizeShadowNode",Ii,null),!Jfe(Ii)&&(Ii.content instanceof Be&&ns(Ii.content),nde(Ii));vO("afterSanitizeShadowDOM",oo,null)};return F.sanitize=function(ns){let oo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ii,ha,Xu,sm;if(joe=!ns,joe&&(ns=""),typeof ns!="string"&&!mQ(ns))if(typeof ns.toString=="function"){if(ns=ns.toString(),typeof ns!="string")throw R5("dirty is not a string, aborting")}else throw R5("toString is not a function");if(!F.isSupported)return ns;if(mO||Hoe(oo),F.removed=[],typeof ns=="string"&&(CL=!1),CL){if(ns.nodeName){const Hy=am(ns.nodeName);if(!Ki[Hy]||zh[Hy])throw R5("root node is forbidden and cannot be sanitized in-place")}}else if(ns instanceof ft)Ii=Gfe(""),ha=Ii.ownerDocument.importNode(ns,!0),ha.nodeType===1&&ha.nodeName==="BODY"||ha.nodeName==="HTML"?Ii=ha:Ii.appendChild(ha);else{if(!L4&&!im&&!jy&&ns.indexOf("<")===-1)return kr&&fQ?kr.createHTML(ns):ns;if(Ii=Gfe(ns),!Ii)return L4?null:fQ?yo:""}Ii&&TL&&Uk(Ii.firstChild);const Qy=Kfe(CL?ns:Ii);for(;Xu=Qy.nextNode();)Jfe(Xu)||(Xu.content instanceof Be&&NOe(Xu.content),nde(Xu));if(CL)return ns;if(L4){if(OA)for(sm=Jo.call(Ii.ownerDocument);Ii.firstChild;)sm.appendChild(Ii.firstChild);else sm=Ii;return(ga.shadowroot||ga.shadowrootmode)&&(sm=Ci.call(Z,sm,!0)),sm}let Qd=jy?Ii.outerHTML:Ii.innerHTML;return jy&&Ki["!doctype"]&&Ii.ownerDocument&&Ii.ownerDocument.doctype&&Ii.ownerDocument.doctype.name&&f0(b7,Ii.ownerDocument.doctype.name)&&(Qd=" -`+Qd),im&&(Qd=gv(Qd,qi," "),Qd=gv(Qd,Fi," "),Qd=gv(Qd,Os," ")),kr&&fQ?kr.createHTML(Qd):Qd},F.setConfig=function(ns){Hoe(ns),mO=!0},F.clearConfig=function(){CA=null,mO=!1},F.isValidAttribute=function(ns,oo,Ii){CA||Hoe({});const ha=am(ns),Xu=am(oo);return ede(ha,Xu,Ii)},F.addHook=function(ns,oo){typeof oo=="function"&&(mi[ns]=mi[ns]||[],P5(mi[ns],oo))},F.removeHook=function(ns){if(mi[ns])return nY(mi[ns])},F.removeHooks=function(ns){mi[ns]&&(mi[ns]=[])},F.removeAllHooks=function(){mi={}},F}var dY=q6();const _7=s=>dY().sanitize(s);var Cg=tinymce.util.Tools.resolve("tinymce.util.I18n");const hY={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},Tz="temporary-placeholder",w7=s=>()=>Ge(s,Tz).getOr("!not found!"),O7=(s,F)=>{const Z=s.toLowerCase();if(Cg.isRtl()){const ue=vt(Z,"-rtl");return ht(F,ue)?ue:Z}else return Z},Cz=(s,F)=>Ge(F,O7(s,F)),Az=(s,F)=>{const Z=F();return Cz(s,Z).getOrThunk(w7(Z))},Mz=(s,F,Z)=>{const ue=F();return Cz(s,ue).or(Z).getOrThunk(w7(ue))},Ez=s=>Cg.isRtl()?ht(hY,s):!1,S7=()=>Ta("add-focusable",[Ll(s=>{rc(s.element,"svg").each(F=>fr(F,"focusable","false"))})]),k7=(s,F,Z,ue)=>{var we,Be;const qe=Ez(F)?["tox-icon--flip"]:[],ft=Ge(Z,O7(F,Z)).or(ue).getOrThunk(w7(Z));return{dom:{tag:s.tag,attributes:(we=s.attributes)!==null&&we!==void 0?we:{},classes:s.classes.concat(qe),innerHtml:ft},behaviours:Do([...(Be=s.behaviours)!==null&&Be!==void 0?Be:[],S7()])}},em=(s,F,Z,ue=I.none())=>k7(F,s,Z(),ue),Pz=(s,F,Z)=>{const ue=Z(),we=ce(s,Be=>ht(ue,O7(Be,ue)));return k7(F,we.getOr(Tz),ue,I.none())},pY={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},W6=Yh({name:"Notification",factory:s=>{const F=fi("notification-text"),Z=qs({dom:pv(`

    ${_7(s.backstageProvider.translate(s.text))}

    `),behaviours:Do([da.config({})])}),ue=Mn=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${Mn}%`}}}),we=Mn=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${Mn}%`}}),Be=qs({dom:{tag:"div",classes:s.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[ue(0)]},we(0)],behaviours:Do([da.config({})])}),gt={updateProgress:(Mn,Xn)=>{Mn.getSystem().isConnected()&&Be.getOpt(Mn).each(Br=>{da.set(Br,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[ue(Xn)]},we(Xn)])})},updateText:(Mn,Xn)=>{if(Mn.getSystem().isConnected()){const Br=Z.get(Mn);da.set(Br,[ro(Xn)])}}},At=ve([s.icon.toArray(),s.level.toArray(),s.level.bind(Mn=>I.from(pY[Mn])).toArray()]),$t=qs(Vd.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":s.backstageProvider.translate("Close")}},components:[em("close",{tag:"span",classes:["tox-icon"]},s.iconProvider)],buttonBehaviours:Do([Wl.config({}),kd.config({...s.backstageProvider.tooltips.getConfig({tooltipText:s.backstageProvider.translate("Close")})})]),action:Mn=>{s.onAction(Mn)}})),on=Pz(At,{tag:"div",classes:["tox-notification__icon"]},s.iconProvider),yn={dom:{tag:"div",classes:["tox-notification__body"]},components:[Z.asSpec()],behaviours:Do([da.config({})])},wn=[on,yn];return{uid:s.uid,dom:{tag:"div",attributes:{role:"alert","aria-labelledby":F},classes:s.level.map(Mn=>["tox-notification","tox-notification--in",`tox-notification--${Mn}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:Do([Wl.config({}),oa.config({}),Li.config({mode:"special",onEscape:Mn=>(s.onAction(Mn),I.some(!0))})]),components:wn.concat(s.progress?[Be.asSpec()]:[]).concat([$t.asSpec()]),apis:gt}},configFields:[Hr("level"),Sn("progress"),Hr("icon"),Sn("onAction"),Sn("text"),Sn("iconProvider"),Sn("backstageProvider")],apis:{updateProgress:(s,F,Z)=>{s.updateProgress(F,Z)},updateText:(s,F,Z)=>{s.updateText(F,Z)}}});var mY=(s,F,Z,ue)=>{const we=F.backstage.shared,Be=()=>{const $t=Ya(Pt.fromDom(s.getContentAreaContainer()));return I.some($t)},qe=$t=>{Be().each(on=>{q($t,yn=>{cc(yn.element)>on.width&&ko(yn.element,"width",on.width+"px")})})};return{open:($t,on,yn)=>{const wn=()=>{const or=Xr=>{da.remove(Xr,Mn),Xn()},Mr=(Xr,No)=>{bo(Xr.element).length===0?kr(Xr,No):yo(Xr,No)},kr=(Xr,No)=>{hc.hide(Xr),ue.clear(),No&&s.focus()},yo=(Xr,No)=>{No&&Li.focusIn(Xr)};ue.on(Xr=>{on();const No=yn();or(Xr),Mr(Xr,No)})},Mn=vi(W6.sketch({text:$t.text,level:X(["success","error","warning","warn","info"],$t.type)?$t.type:void 0,progress:$t.progressBar===!0,icon:$t.icon,onAction:wn,iconProvider:we.providers.icons,backstageProvider:we.providers}));if(ue.isSet()){const or=na(Mn);ue.on(Mr=>{da.append(Mr,or),hc.reposition(Mr),Dl.refresh(Mr),qe(Mr.components())})}else{const or=vi(hc.sketch({dom:{tag:"div",classes:["tox-notifications-container"],attributes:{"aria-label":"Notifications",role:"region"}},lazySink:we.getSink,fireDismissalEventInstead:{},...we.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Do([Li.config({mode:"cyclic",selector:".tox-notification, .tox-notification a, .tox-notification button"}),da.config({}),...W3(s)&&!we.header.isPositionedAtTop()?[]:[Dl.config({contextual:{lazyContext:()=>I.some(Ya(Pt.fromDom(s.getContentAreaContainer()))),fadeInClass:"tox-notification-container-dock-fadein",fadeOutClass:"tox-notification-container-dock-fadeout",transitionClass:"tox-notification-container-dock-transition"},modes:["top"],lazyViewport:Xr=>Kb(s,Xr.element).map(Jo=>({bounds:zw(Jo),optScrollEnv:I.some({currentScrollTop:Jo.element.dom.scrollTop,scrollElmTop:pc(Jo.element).top})})).getOrThunk(()=>({bounds:xl(),optScrollEnv:I.none()}))})]])})),Mr=na(Mn),kr={maxHeightFunction:W0()},yo={...we.anchors.banner(),overrides:kr};ue.set(or),Z.add(or),hc.showWithinBounds(or,Mr,{anchor:yo},Be)}h($t.timeout)&&$t.timeout>0&&O5.setEditorTimeout(s,()=>{wn()},$t.timeout);const Xn=()=>{ue.on(or=>{hc.reposition(or),Dl.refresh(or),qe(or.components())})};return{close:wn,reposition:Xn,text:or=>{W6.updateText(Mn,or)},settings:$t,getEl:()=>Mn.element.dom,progressBar:{value:or=>{W6.updateProgress(Mn,or)}}}},close:$t=>{$t.close()},getArgs:$t=>$t.settings}};const Rz={setup:(s,F)=>{const Z=(we,Be)=>{Ri(we,Bp(),{raw:Be})},ue=()=>s.getMenu().bind(ri.getHighlighted);F.on("keydown",we=>{const Be=we.which;s.isActive()&&(s.isMenuOpen()?Be===13?(ue().each(Fp),we.preventDefault()):Be===40?(ue().fold(()=>{s.getMenu().each(ri.highlightFirst)},qe=>{Z(qe,we)}),we.preventDefault(),we.stopImmediatePropagation()):(Be===37||Be===38||Be===39)&&ue().each(qe=>{Z(qe,we),we.preventDefault(),we.stopImmediatePropagation()}):(Be===13||Be===38||Be===40)&&s.cancelIfNecessary())}),F.on("NodeChange",()=>{s.isActive()&&!s.isProcessingAction()&&!F.queryCommandState("mceAutoCompleterInRange")&&s.cancelIfNecessary()})}};var Y6;(function(s){s[s.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",s[s.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(Y6||(Y6={}));var r1=Y6;const X6="tox-menu-nav__js",G6="tox-collection__item",T7="tox-swatch",Lz={normal:X6,color:T7},K6="tox-collection__item--enabled",C7="tox-collection__group-heading",A7="tox-collection__item-icon",J6="tox-collection__item-label",Iz="tox-collection__item-accessory",Dz="tox-collection__item-caret",M7="tox-collection__item-checkmark",Fw="tox-collection__item--active",E7="tox-collection__item-container",Bz="tox-collection__item-container--column",A2="tox-collection__item-container--row",gY="tox-collection__item-container--align-right",P7="tox-collection__item-container--align-left",eC="tox-collection__item-container--valign-top",vY="tox-collection__item-container--valign-middle",zz="tox-collection__item-container--valign-bottom",R7=s=>Ge(Lz,s).getOr(X6),Fz=s=>s==="color"?"tox-swatches":"tox-menu",z5=s=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:Fz(s),tieredMenu:"tox-tiered-menu"}),M2=s=>{const F=z5(s);return{backgroundMenu:F.backgroundMenu,selectedMenu:F.selectedMenu,menu:F.menu,selectedItem:F.selectedItem,item:R7(s)}},yY=(s,F,Z)=>{const ue=z5(Z);return{tag:"div",classes:ve([[ue.menu,`tox-menu-${F}-column`],s?[ue.hasIcons]:[]])}},Nz=[Pw.parts.items({})],F5=(s,F,Z)=>{const ue=z5(Z);return{dom:{tag:"div",classes:ve([[ue.tieredMenu]])},markers:M2(Z)}},L7=x([Hr("data"),mr("inputAttributes",{}),mr("inputStyles",{}),mr("tag","input"),mr("inputClasses",[]),Ra("onSetValue"),mr("styles",{}),mr("eventOrder",{}),Ef("inputBehaviours",[hi,oa]),mr("selectOnFocus",!0)]),I7=s=>Do([oa.config({onFocus:s.selectOnFocus?F=>{const Z=F.element,ue=qr(Z);Z.dom.setSelectionRange(0,ue.length)}:v})]),bY=s=>({...I7(s),...Pf(s.inputBehaviours,[hi.config({store:{mode:"manual",...s.data.map(F=>({initialValue:F})).getOr({}),getValue:F=>qr(F.element),setValue:(F,Z)=>{qr(F.element)!==Z&&N(F.element,Z)}},onSetValue:s.onSetValue})])}),D7=s=>({tag:s.tag,attributes:{type:"text",...s.inputAttributes},styles:s.inputStyles,classes:s.inputClasses}),xY=(s,F)=>({uid:s.uid,dom:D7(s),components:[],behaviours:bY(s),eventOrder:s.eventOrder}),Nw=Yh({name:"Input",configFields:L7(),factory:xY}),$z=fi("refetch-trigger-event"),Vz=fi("redirect-menu-item-interaction"),B7="tox-menu__searcher",E2=s=>aa(s.element,`.${B7}`).bind(F=>s.getSystem().getByDom(F).toOptional()),z7=E2,_Y=(s,F)=>{hi.setValue(s,F.fetchPattern),s.element.dom.selectionStart=F.selectionStart,s.element.dom.selectionEnd=F.selectionEnd},Uz=s=>{const F=hi.getValue(s),Z=s.element.dom.selectionStart,ue=s.element.dom.selectionEnd;return{fetchPattern:F,selectionStart:Z,selectionEnd:ue}},wY=(s,F)=>{co(F.element,"id").each(Z=>fr(s.element,"aria-activedescendant",Z))},OY=s=>{const F=(we,Be)=>(Be.cut(),I.none()),Z=(we,Be)=>{const qe={interactionEvent:Be.event,eventType:Be.event.raw.type};return Ri(we,Vz,qe),I.some(!0)},ue="searcher-events";return{dom:{tag:"div",classes:[G6]},components:[Nw.sketch({inputClasses:[B7,"tox-textfield"],inputAttributes:{...s.placeholder.map(we=>({placeholder:s.i18n(we)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:Do([Ta(ue,[fo(cg(),we=>{Sa(we,$z)}),fo(Bp(),(we,Be)=>{Be.event.raw.key==="Escape"&&Be.stop()})]),Li.config({mode:"special",onLeft:F,onRight:F,onSpace:F,onEnter:Z,onEscape:Z,onUp:Z,onDown:Z})]),eventOrder:{keydown:[ue,Li.name()]}})]}},tC="tox-collection--results__js",N5=s=>{var F;return s.dom?{...s,dom:{...s.dom,attributes:{...(F=s.dom.attributes)!==null&&F!==void 0?F:{},id:fi("aria-item-search-result-id"),"aria-selected":"false"}}}:s},F7=(s,F)=>Z=>{const ue=K(Z,F);return oe(ue,we=>({dom:s,components:we}))},jz=s=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[Pw.parts.items({preprocess:s!=="auto"?F7({tag:"div",classes:["tox-swatches__row"]},s):R})]}]}),SY=s=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[Pw.parts.items({preprocess:F7({tag:"div",classes:["tox-collection__group"]},s)})]}),N7=(s,F)=>{const Z=[];let ue=[];return q(s,(we,Be)=>{F(we,Be)?(ue.length>0&&Z.push(ue),ue=[],(ht(we.dom,"innerHtml")||we.components&&we.components.length>0)&&ue.push(we)):ue.push(we)}),ue.length>0&&Z.push(ue),oe(Z,we=>({dom:{tag:"div",classes:["tox-collection__group"]},components:we}))},nC=(s,F,Z)=>Pw.parts.items({preprocess:ue=>{const we=oe(ue,Z);return s!=="auto"&&s>1?F7({tag:"div",classes:["tox-collection__group"]},s)(we):N7(we,(Be,qe)=>F[qe].type==="separator")}}),Qz=(s,F,Z=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(s===1?["tox-collection--list"]:["tox-collection--grid"])},components:[nC(s,F,R)]}),Hz=(s,F,Z=!0)=>{const ue=fi("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",tC].concat(s===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:ue}},components:[nC(s,F,N5)]}},Zz=(s,F,Z)=>{const ue=fi("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(s===1?["tox-collection--list"]:["tox-collection--grid"])},components:[OY({i18n:Cg.translate,placeholder:Z.placeholder}),{dom:{tag:"div",classes:[...s===1?["tox-collection--list"]:["tox-collection--grid"],tC],attributes:{id:ue}},components:[nC(s,F,N5)]}]}},qz=(s,F=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[Pw.parts.items({preprocess:Z=>N7(Z,(ue,we)=>s[we].type==="separator")})]}),$5=s=>te(s,F=>"icon"in F&&F.icon!==void 0),Jb=s=>(console.error(sn(s)),console.log(s),I.none()),kY=(s,F,Z,ue,we)=>{const Be=qz(Z);return{value:s,dom:Be.dom,components:Be.components,items:Z}},$7=(s,F,Z,ue,we)=>{const Be=()=>we.menuType!=="searchable"?Qz(ue,Z):we.searchMode.searchMode==="search-with-field"?Zz(ue,Z,we.searchMode):Hz(ue,Z);if(we.menuType==="color"){const qe=jz(ue);return{value:s,dom:qe.dom,components:qe.components,items:Z}}else if(we.menuType==="normal"&&ue==="auto"){const qe=Qz(ue,Z);return{value:s,dom:qe.dom,components:qe.components,items:Z}}else if(we.menuType==="normal"||we.menuType==="searchable"){const qe=Be();return{value:s,dom:qe.dom,components:qe.components,items:Z}}else if(we.menuType==="listpreview"&&ue!=="auto"){const qe=SY(ue);return{value:s,dom:qe.dom,components:qe.components,items:Z}}else return{value:s,dom:yY(F,ue,we.menuType),components:Nz,items:Z}},Fu=Pr("type"),rC=Pr("name"),oC=Pr("label"),ex=Pr("text"),Wz=Pr("title"),Yz=Pr("icon"),V5=Pr("value"),TY=$o("fetch"),CY=$o("getSubmenuItems"),G3=$o("onAction"),V7=$o("onItemAction"),P2=Pa("onSetup",()=>v),AY=Io("name"),R2=Io("text"),Xz=Io("role"),d0=Io("icon"),U5=Io("tooltip"),iC=Io("label"),aC=Io("shortcut"),Gz=Ui("select"),sC=ds("active",!1),MY=ds("borderless",!1),o1=ds("enabled",!0),j5=ds("primary",!1),lC=s=>mr("columns",s),U7=mr("meta",{}),j7=Pa("onAction",v),$w=s=>Ys("type",s),Q7=s=>Ln("name","name",Xi(()=>fi(`${s}-name`)),ne),EY=s=>Ln("value","value",Xi(()=>fi(`${s}-value`)),le()),Kz=Mi([Fu,R2]),Jz=s=>jt("separatormenuitem",Kz,s),eF=Mi([$w("autocompleteitem"),sC,o1,U7,V5,R2,d0]),PY=s=>jt("Autocompleter.Separator",Kz,s),RY=s=>jt("Autocompleter.Item",eF,s),Q5=[o1,U5,d0,R2,P2],qm=Mi([Fu,G3,aC].concat(Q5)),i1=s=>jt("toolbarbutton",qm,s),H7=[sC].concat(Q5),Z7=Mi(H7.concat([Fu,G3,aC])),cC=s=>jt("ToggleButton",Z7,s),tF=[Pa("predicate",D),dl("scope","node",["node","editor"]),dl("position","selection",["node","selection","line"])],LY=Q5.concat([$w("contextformbutton"),j5,G3,On("original",R)]),H5=H7.concat([$w("contextformbutton"),j5,G3,On("original",R)]),uC=Q5.concat([$w("contextformbutton")]),q7=H7.concat([$w("contextformtogglebutton")]),IY=xn("type",{contextformbutton:LY,contextformtogglebutton:H5}),vv=Mi([$w("contextform"),Pa("initValue",x("")),iC,Si("commands",IY),Lo("launch",xn("type",{contextformbutton:uC,contextformtogglebutton:q7}))].concat(tF)),DY=s=>jt("ContextForm",vv,s),BY=Mi([$w("contexttoolbar"),Pr("items")].concat(tF)),h0=s=>jt("ContextToolbar",BY,s),Z5=[Fu,Pr("src"),Io("alt"),Ls("classes",[],ne)],a1=Mi(Z5),zY=[Fu,ex,AY,Ls("classes",["tox-collection__item-label"],ne)],Sl=Mi(zY),Vw=Ea(()=>rt("type",{cardimage:a1,cardtext:Sl,cardcontainer:fC})),fC=Mi([Fu,Ys("direction","horizontal"),Ys("align","left"),Ys("valign","middle"),Si("items",Vw)]),Uw=[o1,R2,Xz,aC,EY("menuitem"),U7],W7=Mi([Fu,iC,Si("items",Vw),P2,j7].concat(Uw)),Y7=s=>jt("cardmenuitem",W7,s),FY=Mi([Fu,sC,d0].concat(Uw)),X7=s=>jt("choicemenuitem",FY,s),nF=[Fu,Pr("fancytype"),j7],rF=[mr("initData",{})].concat(nF),oF=[Ui("select"),ol("initData",{},[ds("allowCustomColors",!0),Ys("storageKey","default"),ba("colors",le())])].concat(nF),G7=xn("fancytype",{inserttable:rF,colorswatch:oF}),iF=s=>jt("fancymenuitem",G7,s),dC=Mi([Fu,P2,j7,d0].concat(Uw)),NY=s=>jt("menuitem",dC,s),$Y=Mi([Fu,CY,P2,d0].concat(Uw)),VY=s=>jt("nestedmenuitem",$Y,s),UY=Mi([Fu,d0,sC,P2,G3].concat(Uw)),jY=s=>jt("togglemenuitem",UY,s),hC=(s,F,Z)=>{const ue=$d(s.element,"."+Z);if(ue.length>0){const we=de(ue,Be=>{const qe=Be.dom.getBoundingClientRect().top,ft=ue[0].dom.getBoundingClientRect().top;return Math.abs(qe-ft)>F}).getOr(ue.length);return I.some({numColumns:we,numRows:Math.ceil(ue.length/we)})}else return I.none()},aF=(s,F)=>Do([Ta(s,F)]),K3={namedEvents:aF,unnamedEvents:s=>aF(fi("unnamed-events"),s)},sF=s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),lF="silver.readonly",QY=Mi([Mo("readonly")]),q5=(s,F)=>{const ue=s.mainUi.outerContainer.element,we=[s.mainUi.mothership,...s.uiMotherships];F&&q(we,Be=>{Be.broadcastOn([K0()],{target:ue})}),q(we,Be=>{Be.broadcastOn([lF],{readonly:F})})},pC=(s,F)=>{s.on("init",()=>{s.mode.isReadOnly()&&q5(F,!0)}),s.on("SwitchMode",()=>q5(F,s.mode.isReadOnly())),A6(s)&&s.mode.set("readonly")},df=()=>Wu.config({channels:{[lF]:{schema:QY,onReceive:(s,F)=>{ea.set(s,F.readonly)}}}}),s1={item:s=>ea.config({disabled:s,disableClass:"tox-collection__item--state-disabled"}),button:s=>ea.config({disabled:s}),splitButton:s=>ea.config({disabled:s,disableClass:"tox-tbtn--disabled"}),toolbarButton:s=>ea.config({disabled:s,disableClass:"tox-tbtn--disabled",useNative:!1})},mC=(s,F)=>{const Z=s.getApi(F);return ue=>{ue(Z)}},tx=(s,F)=>Ll(Z=>{mC(s,Z)(we=>{const Be=s.onSetup(we);u(Be)&&F.set(Be)})}),Ih=(s,F)=>Sh(Z=>mC(s,Z)(F.get())),HY=(s,F)=>$p((Z,ue)=>{mC(s,Z)(s.onAction),!s.triggersSubmenu&&F===r1.CLOSE_ON_EXECUTE&&(Z.getSystem().isConnected()&&Sa(Z,L0()),ue.stop())}),K7={[cp()]:["disabling","alloy.base.behaviour","toggling","item-events"]},jw=It,Qw=(s,F,Z,ue)=>{const we=xi(v);return{type:"item",dom:F.dom,components:jw(F.optComponents),data:s.data,eventOrder:K7,hasSubmenu:s.triggersSubmenu,itemBehaviours:Do([Ta("item-events",[HY(s,Z),tx(s,we),Ih(s,we)]),s1.item(()=>!s.enabled||ue.isDisabled()),df(),da.config({})].concat(s.itemBehaviours))}},J3=s=>({value:s.value,meta:{text:s.text.getOr(""),...s.meta}}),gC=s=>{const F=Q3.os.isMacOS()||Q3.os.isiOS(),we=F?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},Be=s.split("+"),qe=oe(Be,ft=>{const gt=ft.toLowerCase().trim();return ht(we,gt)?we[gt]:ft});return F?qe.join(""):qe.join("+")},vC=(s,F,Z=[A7])=>em(s,{tag:"div",classes:Z},F),J7=s=>({dom:{tag:"div",classes:[J6]},components:[ro(Cg.translate(s))]}),cF=(s,F)=>({dom:{tag:"div",classes:F,innerHtml:s}}),ZY=(s,F)=>({dom:{tag:"div",classes:[J6]},components:[{dom:{tag:s.tag,styles:s.styles},components:[ro(Cg.translate(F))]}]}),qY=s=>({dom:{tag:"div",classes:[Iz]},components:[ro(gC(s))]}),uF=s=>vC("checkmark",s,[M7]),WY=s=>vC("chevron-right",s,[Dz]),fF=s=>vC("chevron-down",s,[Dz]),dF=(s,F)=>{const Z=s.direction==="vertical"?Bz:A2,ue=s.align==="left"?P7:gY;return{dom:{tag:"div",classes:[E7,Z,ue,(()=>{switch(s.valign){case"top":return eC;case"middle":return vY;case"bottom":return zz}})()]},components:F}},hF=(s,F,Z)=>({dom:{tag:"img",classes:F,attributes:{src:s,alt:Z.getOr("")}}}),YY=(s,F,Z)=>{const ue="custom",we="remove",Be=s.value,qe=s.iconContent.map(At=>Mz(At,F.icons,Z)),ft=s.ariaLabel.map(At=>({"aria-label":F.translate(At),"data-mce-name":At})).getOr({});return{dom:(()=>{const At=T7,$t=qe.getOr(""),on={tag:"div",attributes:ft,classes:[At]};return Be===ue?{...on,tag:"button",classes:[...on.classes,"tox-swatches__picker-btn"],innerHtml:$t}:Be===we?{...on,classes:[...on.classes,"tox-swatch--remove"],innerHtml:$t}:a(Be)?{...on,attributes:{...on.attributes,"data-mce-color":Be},styles:{"background-color":Be},innerHtml:$t}:on})(),optComponents:[]}},pF=s=>{const F=s.map(Z=>({attributes:{id:fi("menu-item"),"aria-label":Cg.translate(Z)}})).getOr({});return{tag:"div",classes:[X6,G6],...F}},XY=(s,F,Z,ue)=>{const we={tag:"div",classes:[A7]},Be=yn=>em(yn,we,F.icons,ue),qe=()=>I.some({dom:we}),ft=Z?s.iconContent.map(Be).orThunk(qe):I.none(),gt=s.checkMark,At=I.from(s.meta).fold(()=>J7,yn=>ht(yn,"style")?T(ZY,yn.style):J7),$t=s.htmlContent.fold(()=>s.textContent.map(At),yn=>I.some(cF(yn,[J6])));return{dom:pF(s.ariaLabel),optComponents:[ft,$t,s.shortcutContent.map(qY),gt,s.caret]}},Ry=(s,F,Z,ue=I.none())=>s.presets==="color"?YY(s,F,ue):XY(s,F,Z,ue),mF=(s,F,Z)=>Ge(s,"tooltipWorker").map(ue=>[kd.config({lazySink:F.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:we=>({type:"submenu",item:we,overrides:{maxHeightFunction:W0}}),mode:"follow-highlight",onShow:(we,Be)=>{ue(qe=>{kd.setComponents(we,[Po({element:Pt.fromDom(qe)})])})}})]).getOrThunk(()=>Z.map(ue=>[kd.config({...F.providers.tooltips.getConfig({tooltipText:ue}),mode:"follow-highlight"})]).getOr([])),gF=s=>Lw.DOM.encode(s),eP=(s,F)=>{const Z=Cg.translate(s),ue=gF(Z);if(F.length>0){const we=new RegExp(sF(F),"gi");return ue.replace(we,Be=>`${Be}`)}else return ue},vF=(s,F,Z,ue,we,Be,qe,ft=!0)=>{const gt=Ry({presets:ue,textContent:I.none(),htmlContent:Z?s.text.map($t=>eP($t,F)):I.none(),ariaLabel:s.text,iconContent:s.icon,shortcutContent:I.none(),checkMark:I.none(),caret:I.none(),value:s.value},qe.providers,ft,s.icon),At=s.text.filter($t=>!Z&&$t!=="");return Qw({data:J3(s),enabled:s.enabled,getApi:x({}),onAction:$t=>we(s.value,s.meta),onSetup:x(v),triggersSubmenu:!1,itemBehaviours:mF(s,qe,At)},gt,Be,qe.providers)},tP=(s,F)=>oe(s,Z=>{switch(Z.type){case"cardcontainer":return dF(Z,tP(Z.items,F));case"cardimage":return hF(Z.src,Z.classes,Z.alt);case"cardtext":const we=Z.name.exists(Be=>X(F.cardText.highlightOn,Be))?I.from(F.cardText.matchText).getOr(""):"";return cF(eP(Z.text,we),Z.classes)}}),nP=(s,F,Z,ue)=>{const we=qe=>({isEnabled:()=>!ea.isDisabled(qe),setEnabled:ft=>{ea.set(qe,!ft),q($d(qe.element,"*"),gt=>{qe.getSystem().getByDom(gt).each(At=>{At.hasConfigured(ea)&&ea.set(At,!ft)})})}}),Be={dom:pF(s.label),optComponents:[I.some({dom:{tag:"div",classes:[E7,A2]},components:tP(s.items,ue)})]};return Qw({data:J3({text:I.none(),...s}),enabled:s.enabled,getApi:we,onAction:s.onAction,onSetup:s.onSetup,triggersSubmenu:!1,itemBehaviours:I.from(ue.itemBehaviours).getOr([])},Be,F,Z.providers)},rP=(s,F,Z,ue,we,Be,qe,ft=!0)=>{const gt=on=>({setActive:yn=>{za.set(on,yn)},isActive:()=>za.isOn(on),isEnabled:()=>!ea.isDisabled(on),setEnabled:yn=>ea.set(on,!yn)}),At=Ry({presets:Z,textContent:F?s.text:I.none(),htmlContent:I.none(),ariaLabel:s.text,iconContent:s.icon,shortcutContent:F?s.shortcut:I.none(),checkMark:F?I.some(uF(qe.icons)):I.none(),caret:I.none(),value:s.value},qe,ft),$t=s.text.filter(x(!F)).map(on=>kd.config(qe.tooltips.getConfig({tooltipText:qe.translate(on)})));return nl(Qw({data:J3(s),enabled:s.enabled,getApi:gt,onAction:on=>ue(s.value),onSetup:on=>(on.setActive(we),v),triggersSubmenu:!1,itemBehaviours:[...$t.toArray()]},At,Be,qe),{toggling:{toggleClass:K6,toggleOnExecute:!1,selected:s.active,exclusive:!0}})},yC=i5(ZE(),qE()),oP=s=>({value:xF(s)}),yF=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,iP=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,bF=s=>yF.test(s)||iP.test(s),xF=s=>mn(s,"#").toUpperCase(),GY=s=>bF(s)?I.some({value:xF(s)}):I.none(),_F=s=>({value:s.value.replace(yF,(Z,ue,we,Be)=>ue+ue+we+we+Be+Be)}),wF=s=>{const F=_F(s),Z=iP.exec(F.value);return Z===null?["FFFFFF","FF","FF","FF"]:Z},bC=s=>{const F=s.toString(16);return(F.length===1?"0"+F:F).toUpperCase()},W5=s=>{const F=bC(s.red)+bC(s.green)+bC(s.blue);return oP(F)},OF=Math.min,SF=Math.max,xC=Math.round,KY=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,JY=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,Hw=(s,F,Z,ue)=>({red:s,green:F,blue:Z,alpha:ue}),aP=s=>{const F=parseInt(s,10);return F.toString()===s&&F>=0&&F<=255},kF=s=>{let F,Z,ue;const we=(s.hue||0)%360;let Be=s.saturation/100,qe=s.value/100;if(Be=SF(0,OF(Be,1)),qe=SF(0,OF(qe,1)),Be===0)return F=Z=ue=xC(255*qe),Hw(F,Z,ue,1);const ft=we/60,gt=qe*Be,At=gt*(1-Math.abs(ft%2-1)),$t=qe-gt;switch(Math.floor(ft)){case 0:F=gt,Z=At,ue=0;break;case 1:F=At,Z=gt,ue=0;break;case 2:F=0,Z=gt,ue=At;break;case 3:F=0,Z=At,ue=gt;break;case 4:F=At,Z=0,ue=gt;break;case 5:F=gt,Z=0,ue=At;break;default:F=Z=ue=0}return F=xC(255*(F+$t)),Z=xC(255*(Z+$t)),ue=xC(255*(ue+$t)),Hw(F,Z,ue,1)},Y5=s=>{const F=wF(s),Z=parseInt(F[1],16),ue=parseInt(F[2],16),we=parseInt(F[3],16);return Hw(Z,ue,we,1)},TF=(s,F,Z,ue)=>{const we=parseInt(s,10),Be=parseInt(F,10),qe=parseInt(Z,10),ft=parseFloat(ue);return Hw(we,Be,qe,ft)},_C=s=>{const F=KY.exec(s);if(F!==null)return I.some(TF(F[1],F[2],F[3],"1"));const Z=JY.exec(s);return Z!==null?I.some(TF(Z[1],Z[2],Z[3],Z[4])):I.none()},CF=s=>`rgba(${s.red},${s.green},${s.blue},${s.alpha})`,AF=Hw(255,0,0,1),eX=s=>{s.dispatch("SkinLoaded")},tX=(s,F)=>{s.dispatch("SkinLoadError",F)},nX=s=>{s.dispatch("ResizeEditor")},e4=(s,F)=>{s.dispatch("ResizeContent",F)},MF=(s,F)=>{s.dispatch("ScrollContent",F)},EF=(s,F)=>{s.dispatch("TextColorChange",F)},rX=(s,F)=>{s.dispatch("AfterProgressState",{state:F})},oX=(s,F)=>s.dispatch("ResolveName",{name:F.nodeName.toLowerCase(),target:F}),iX=(s,F)=>{s.dispatch("ToggleToolbarDrawer",{state:F})},aX=(s,F)=>{s.dispatch("StylesTextUpdate",F)},sX=(s,F)=>{s.dispatch("AlignTextUpdate",F)},sP=(s,F)=>{s.dispatch("FontSizeTextUpdate",F)},PF=(s,F)=>{s.dispatch("FontSizeInputTextUpdate",F)},RF=(s,F)=>{s.dispatch("BlocksTextUpdate",F)},lX=(s,F)=>{s.dispatch("FontFamilyTextUpdate",F)},t4=(s,F)=>()=>{s(),F()},Gh=s=>Zw(s,"NodeChange",F=>{F.setEnabled(s.selection.isEditable())}),cX=(s,F)=>Z=>{const ue=js(),we=()=>{Z.setActive(s.formatter.match(F));const Be=s.formatter.formatChanged(F,Z.setActive);ue.set(Be)};return s.initialized?we():s.once("init",we),()=>{s.off("init",we),ue.clear()}},wC=(s,F)=>Z=>{const ue=Gh(s)(Z),we=cX(s,F)(Z);return()=>{ue(),we()}},Zw=(s,F,Z)=>ue=>{const we=()=>Z(ue),Be=()=>{Z(ue),s.on(F,we)};return s.initialized?Be():s.once("init",Be),()=>{s.off("init",Be),s.off(F,we)}},LF=s=>F=>()=>{s.undoManager.transact(()=>{s.focus(),s.execCommand("mceToggleFormat",!1,F.format)})},Wm=(s,F)=>()=>s.execCommand(F);var qw=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const IF={},uX=(s,F=10)=>{const Z=qw.getItem(s),ue=n(Z)?JSON.parse(Z):[],Be=(At=>F-At.length<0?At.slice(0,F):At)(ue),qe=At=>{U(Be,At).each(ft),Be.unshift(At),Be.length>F&&Be.pop(),qw.setItem(s,JSON.stringify(Be))},ft=At=>{Be.splice(At,1)};return{add:qe,state:()=>Be.slice(0)}},DF=s=>Ge(IF,s).getOrThunk(()=>{const F=`tinymce-custom-colors-${s}`,Z=qw.getItem(F);if(p(Z)){const we=qw.getItem("tinymce-custom-colors");qw.setItem(F,a(we)?we:"[]")}const ue=uX(F,10);return IF[s]=ue,ue}),OC=s=>oe(DF(s).state(),F=>({type:"choiceitem",text:F,icon:"checkmark",value:F})),SC=(s,F)=>{DF(s).add(F)},Ww=(s,F,Z)=>({hue:s,saturation:F,value:Z}),kC=s=>{let F=0,Z=0,ue=0;const we=s.red/255,Be=s.green/255,qe=s.blue/255,ft=Math.min(we,Math.min(Be,qe)),gt=Math.max(we,Math.max(Be,qe));if(ft===gt)return ue=ft,Ww(0,0,ue*100);const At=we===ft?Be-qe:qe===ft?we-Be:qe-we;return F=we===ft?3:qe===ft?1:5,F=60*(F-At/(gt-ft)),Z=(gt-ft)/gt,ue=gt,Ww(Math.round(F),Math.round(Z*100),Math.round(ue*100))},fX=s=>kC(Y5(s)),BF=s=>W5(kF(s)),lP=s=>GY(s).orThunk(()=>_C(s).map(W5)).getOrThunk(()=>{const F=document.createElement("canvas");F.height=1,F.width=1;const Z=F.getContext("2d");Z.clearRect(0,0,F.width,F.height),Z.fillStyle="#FFFFFF",Z.fillStyle=s,Z.fillRect(0,0,1,1);const ue=Z.getImageData(0,0,1,1).data,we=ue[0],Be=ue[1],qe=ue[2],ft=ue[3];return W5(Hw(we,Be,qe,ft))}),X5="forecolor",n4="hilitecolor",zF=5,dX=s=>{const F=[];for(let Z=0;ZF=>F.options.get(s),cP="#000000",hX=s=>{const F=s.options.register,Z=we=>m(we,n)?{value:dX(we),valid:!0}:{valid:!1,message:"Must be an array of strings."},ue=we=>h(we)&&we>0?{value:we,valid:!0}:{valid:!1,message:"Must be a positive number."};F("color_map",{processor:Z,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),F("color_map_background",{processor:Z}),F("color_map_foreground",{processor:Z}),F("color_cols",{processor:ue,default:uP(s)}),F("color_cols_foreground",{processor:ue,default:FF(s,X5)}),F("color_cols_background",{processor:ue,default:FF(s,n4)}),F("custom_colors",{processor:"boolean",default:!0}),F("color_default_foreground",{processor:"string",default:cP}),F("color_default_background",{processor:"string",default:cP})},TC=(s,F)=>F===X5&&s.options.isSet("color_map_foreground")?Ly("color_map_foreground")(s):F===n4&&s.options.isSet("color_map_background")?Ly("color_map_background")(s):Ly("color_map")(s),uP=(s,F="default")=>Math.max(zF,Math.ceil(Math.sqrt(TC(s,F).length))),FF=(s,F)=>{const Z=Ly("color_cols")(s),ue=uP(s,F);return Z===uP(s)?ue:Z},NF=(s,F="default")=>Math.round((()=>F===X5?Ly("color_cols_foreground")(s):F===n4?Ly("color_cols_background")(s):Ly("color_cols")(s))()),$F=Ly("custom_colors"),pX=Ly("color_default_foreground"),mX=Ly("color_default_background"),gX="rgba(0, 0, 0, 0)",vX=s=>_C(s).exists(F=>F.alpha!==0),VF=s=>E0(s,F=>{if(Kn(F)){const Z=Aa(F,"background-color");return _t(vX(Z),Z)}else return I.none()}).getOr(gX),UF=(s,F)=>{const Z=Pt.fromDom(s.selection.getStart()),ue=F==="hilitecolor"?VF(Z):Aa(Z,"color");return _C(ue).map(we=>"#"+W5(we).value)},yX=(s,F,Z)=>{s.undoManager.transact(()=>{s.focus(),s.formatter.apply(F,{value:Z}),s.nodeChanged()})},Iy=(s,F)=>{s.undoManager.transact(()=>{s.focus(),s.formatter.remove(F,{value:null},void 0,!0),s.nodeChanged()})},bX=s=>{s.addCommand("mceApplyTextcolor",(F,Z)=>{yX(s,F,Z)}),s.addCommand("mceRemoveTextcolor",F=>{Iy(s,F)})},jF=s=>{const F="choiceitem",Z={type:F,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return s?[Z,{type:F,text:"Custom color",icon:"color-picker",value:"custom"}]:[Z]},G5=(s,F,Z,ue)=>{Z==="custom"?YF(s)(Be=>{Be.each(qe=>{SC(F,qe),s.execCommand("mceApplyTextcolor",F,qe),ue(qe)})},UF(s,F).getOr(cP)):Z==="remove"?(ue(""),s.execCommand("mceRemoveTextcolor",F)):(ue(Z),s.execCommand("mceApplyTextcolor",F,Z))},hf=(s,F,Z)=>s.concat(OC(F).concat(jF(Z))),QF=(s,F,Z)=>ue=>{ue(hf(s,F,Z))},fP=(s,F,Z)=>{const ue=F==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";s.setIconFill(ue,Z)},HF=(s,F)=>{s.setTooltip(F)},ZF=(s,F)=>Z=>{const ue=UF(s,F);return wt(ue,Z.toUpperCase())},dP=(s,F,Z)=>{if(at(Z))return F==="forecolor"?"Text color":"Background color";const ue=F==="forecolor"?"Text color {0}":"Background color {0}",we=hf(TC(s,F),F,!1),Be=ce(we,qe=>qe.value===Z).getOr({text:""}).text;return s.translate([ue,s.translate(Be)])},qF=(s,F,Z,ue)=>{s.ui.registry.addSplitButton(F,{tooltip:dP(s,Z,ue.get()),presets:"color",icon:F==="forecolor"?"text-color":"highlight-bg-color",select:ZF(s,Z),columns:NF(s,Z),fetch:QF(TC(s,Z),Z,$F(s)),onAction:we=>{G5(s,Z,ue.get(),v)},onItemAction:(we,Be)=>{G5(s,Z,Be,qe=>{ue.set(qe),EF(s,{name:F,color:qe})})},onSetup:we=>{fP(we,F,ue.get());const Be=qe=>{qe.name===F&&(fP(we,qe.name,qe.color),HF(we,dP(s,Z,qe.color)))};return s.on("TextColorChange",Be),t4(Gh(s)(we),()=>{s.off("TextColorChange",Be)})}})},WF=(s,F,Z,ue,we)=>{s.ui.registry.addNestedMenuItem(F,{text:ue,icon:F==="forecolor"?"text-color":"highlight-bg-color",onSetup:Be=>(HF(Be,dP(s,Z,we.get())),fP(Be,F,we.get()),Gh(s)(Be)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:ZF(s,Z),initData:{storageKey:Z},onAction:Be=>{G5(s,Z,Be.value,qe=>{we.set(qe),EF(s,{name:F,color:qe})})}}]})},YF=s=>(F,Z)=>{let ue=!1;const we=ft=>{const At=ft.getData().colorpicker;ue?(F(I.from(At)),ft.close()):s.windowManager.alert(s.translate(["Invalid hex color code: {0}",At]))},Be=(ft,gt)=>{gt.name==="hex-valid"&&(ue=gt.value)},qe={colorpicker:Z};s.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:qe,onAction:Be,onSubmit:we,onClose:v,onCancel:()=>{F(I.none())}})},xX=s=>{bX(s);const F=pX(s),Z=mX(s),ue=xi(F),we=xi(Z);qF(s,"forecolor","forecolor",ue),qF(s,"backcolor","hilitecolor",we),WF(s,"forecolor","forecolor","Text color",ue),WF(s,"backcolor","hilitecolor","Background color",we)},hP=(s,F,Z,ue,we,Be,qe,ft)=>{const gt=$5(F),$t=_X(F,Z,ue,we!=="color"?"normal":"color",Be,qe,ft);return $7(s,gt,$t,ue,{menuType:we})},_X=(s,F,Z,ue,we,Be,qe)=>It(oe(s,ft=>ft.type==="choiceitem"?X7(ft).fold(Jb,gt=>I.some(rP(gt,Z===1,ue,F,Be(gt.value),we,qe,$5(s)))):I.none())),CC=(s,F)=>{const Z=M2(F);return s===1?{mode:"menu",moveOnTab:!0}:s==="auto"?{mode:"grid",selector:"."+Z.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(F==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:we=>F==="color"?aa(we.element,"[aria-checked=true]"):I.none()}},wX=(s,F)=>s===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:s==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:F==="color"?".tox-swatches__row":".tox-collection__group",cell:F==="color"?`.${T7}`:`.${G6}`}},OX=(s,F)=>{const Z=SX(s,F),ue=F.colorinput.getColorCols(s.initData.storageKey),we="color",qe={...hP(fi("menu-value"),Z,ft=>{s.onAction({value:ft})},ue,we,r1.CLOSE_ON_EXECUTE,s.select.getOr(D),F.shared.providers),markers:M2(we),movement:CC(ue,we),showMenuRole:!1};return{type:"widget",data:{value:fi("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[yC.widget(Pw.sketch(qe))]}},SX=(s,F)=>{const Z=s.initData.allowCustomColors&&F.colorinput.hasCustomColors();return s.initData.colors.fold(()=>hf(F.colorinput.getColors(s.initData.storageKey),s.initData.storageKey,Z),ue=>ue.concat(jF(Z)))},XF=fi("cell-over"),GF=fi("cell-execute"),kX=s=>(F,Z)=>s.shared.providers.translate(["{0} columns, {1} rows",Z,F]),TX=(s,F,Z)=>{const ue=qe=>Ri(qe,XF,{row:s,col:F}),we=qe=>Ri(qe,GF,{row:s,col:F}),Be=(qe,ft)=>{ft.stop(),we(qe)};return vi({dom:{tag:"div",attributes:{role:"button","aria-label":Z}},behaviours:Do([Ta("insert-table-picker-cell",[fo(Om(),oa.focus),fo(cp(),we),fo(R0(),Be),fo(up(),Be)]),za.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),oa.config({onFocus:ue})])})},CX=(s,F,Z)=>{const ue=[];for(let we=0;we{for(let Be=0;Beye(s,F=>oe(F,na)),KF=(s,F)=>ro(`${F}x${s}`),EX={inserttable:(s,F)=>{const we=kX(F),Be=CX(we,10,10),qe=KF(0,0),ft=qs({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[qe],behaviours:Do([da.config({})])});return{type:"widget",data:{value:fi("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[yC.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:MX(Be).concat(ft.asSpec()),behaviours:Do([Ta("insert-table-picker",[Ll(gt=>{da.set(ft.get(gt),[qe])}),L_(XF,(gt,At,$t)=>{const{row:on,col:yn}=$t.event;AX(Be,on,yn,10,10),da.set(ft.get(gt),[KF(on+1,yn+1)])}),L_(GF,(gt,At,$t)=>{const{row:on,col:yn}=$t.event;s.onAction({numRows:on+1,numColumns:yn+1}),Sa(gt,L0())})]),Li.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:OX},JF=(s,F)=>Ge(EX,s.fancytype).map(Z=>Z(s,F)),PX=(s,F,Z,ue=!0,we=!1)=>{const Be=we?fF(Z.icons):WY(Z.icons),qe=gt=>({isEnabled:()=>!ea.isDisabled(gt),setEnabled:At=>ea.set(gt,!At),setIconFill:(At,$t)=>{aa(gt.element,`svg path[class="${At}"], rect[class="${At}"]`).each(on=>{fr(on,"fill",$t)})},setTooltip:At=>{const $t=Z.translate(At);fr(gt.element,"aria-label",$t)}}),ft=Ry({presets:"normal",iconContent:s.icon,textContent:s.text,htmlContent:I.none(),ariaLabel:s.text,caret:I.some(Be),checkMark:I.none(),shortcutContent:s.shortcut},Z,ue);return Qw({data:J3(s),getApi:qe,enabled:s.enabled,onAction:v,onSetup:s.onSetup,triggersSubmenu:!0,itemBehaviours:[]},ft,F,Z)},eN=(s,F,Z,ue=!0)=>{const we=qe=>({isEnabled:()=>!ea.isDisabled(qe),setEnabled:ft=>ea.set(qe,!ft)}),Be=Ry({presets:"normal",iconContent:s.icon,textContent:s.text,htmlContent:I.none(),ariaLabel:s.text,caret:I.none(),checkMark:I.none(),shortcutContent:s.shortcut},Z,ue);return Qw({data:J3(s),getApi:we,enabled:s.enabled,onAction:s.onAction,onSetup:s.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,F,Z)},RX=s=>({type:"separator",dom:{tag:"div",classes:[G6,C7]},components:s.text.map(ro).toArray()}),LX=(s,F,Z,ue=!0)=>{const we=qe=>({setActive:ft=>{za.set(qe,ft)},isActive:()=>za.isOn(qe),isEnabled:()=>!ea.isDisabled(qe),setEnabled:ft=>ea.set(qe,!ft)}),Be=Ry({iconContent:s.icon,textContent:s.text,htmlContent:I.none(),ariaLabel:s.text,checkMark:I.some(uF(Z.icons)),caret:I.none(),shortcutContent:s.shortcut,presets:"normal",meta:s.meta},Z,ue);return nl(Qw({data:J3(s),enabled:s.enabled,getApi:we,onAction:s.onAction,onSetup:s.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,F,Z),{toggling:{toggleClass:K6,toggleOnExecute:!1,selected:s.active},role:s.role.getOrUndefined()})},IX=vF,pP=RX,DX=eN,BX=PX,zX=LX,FX=JF,tN=nP;var $X=Object.freeze({__proto__:null,getCoupled:(s,F,Z,ue)=>Z.getOrCreate(s,F,ue),getExistingCoupled:(s,F,Z,ue)=>Z.getExisting(s,F,ue)}),nN=[rr("others",Et(Hi.value,le()))],VX=Object.freeze({__proto__:null,init:()=>{const s={},F=(Be,qe)=>{if(ke(Be.others).length===0)throw new Error("Cannot find any known coupled components");return Ge(s,qe)},Z=(Be,qe,ft)=>F(qe,ft).getOrThunk(()=>{const At=Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft)(Be),$t=Be.getSystem().build(At);return s[ft]=$t,$t}),ue=(Be,qe,ft)=>F(qe,ft).orThunk(()=>(Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft),I.none())),we=x({});return kh({readState:we,getExisting:ue,getOrCreate:Z})}});const lu=lf({fields:nN,name:"coupling",apis:$X,state:VX}),mP=s=>{let F=I.none(),Z=[];const ue=At=>mP($t=>{we(on=>{$t(At(on))})}),we=At=>{qe()?gt(At):Z.push(At)},Be=At=>{qe()||(F=I.some(At),ft(Z),Z=[])},qe=()=>F.isSome(),ft=At=>{q(At,gt)},gt=At=>{F.each($t=>{setTimeout(()=>{At($t)},0)})};return s(Be),{get:we,map:ue,isReady:qe}},UX={nu:mP,pure:s=>mP(F=>{F(s)})},jX=s=>{setTimeout(()=>{throw s},0)},r4=s=>{const F=gt=>{s().then(gt,jX)};return{map:gt=>r4(()=>s().then(gt)),bind:gt=>r4(()=>s().then(At=>gt(At).toPromise())),anonBind:gt=>r4(()=>s().then(()=>gt.toPromise())),toLazy:()=>UX.nu(F),toCached:()=>{let gt=null;return r4(()=>(gt===null&&(gt=s()),gt))},toPromise:s,get:F}},uh={nu:s=>r4(()=>new Promise(s)),pure:s=>r4(()=>Promise.resolve(s))},rN=x("sink"),oN=x(Jp({name:rN(),overrides:x({dom:{tag:"div"},behaviours:Do([ed.config({useFixed:k})]),events:hl([Am(Bp()),Am(Oh()),Am(R0())])})})),gP=(s,F)=>{const Z=s.getHotspot(F).getOr(F),ue="hotspot",we=s.getAnchorOverrides();return s.layouts.fold(()=>({type:ue,hotspot:Z,overrides:we}),Be=>({type:ue,hotspot:Z,overrides:we,layouts:Be}))},QX=(s,F,Z)=>{const ue=s.fetch;return ue(Z).map(F)},HX=(s,F,Z,ue,we,Be,qe)=>{const ft=QX(s,F,ue),gt=iN(ue,s);return ft.map(At=>At.bind($t=>{const on=$t.menus[$t.primary];return I.from(on).each(yn=>{s.listRole.each(wn=>{yn.role=wn})}),I.from(Rw.sketch({...Be.menu(),uid:j0(""),data:$t,highlightOnOpen:qe,onOpenMenu:(yn,wn)=>{const Mn=gt().getOrDie();ed.position(Mn,wn,{anchor:Z}),hs.decloak(we)},onOpenSubmenu:(yn,wn,Mn)=>{const Xn=gt().getOrDie();ed.position(Xn,Mn,{anchor:{type:"submenu",item:wn}}),hs.decloak(we)},onRepositionMenu:(yn,wn,Mn)=>{const Xn=gt().getOrDie();ed.position(Xn,wn,{anchor:Z}),q(Mn,Br=>{ed.position(Xn,Br.triggeredMenu,{anchor:{type:"submenu",item:Br.triggeringItem}})})},onEscape:()=>(oa.focus(ue),hs.close(we),I.some(!0))}))}))},AC=(s,F,Z,ue,we,Be,qe)=>{const ft=gP(s,Z);return HX(s,F,ft,Z,ue,we,qe).map(At=>(At.fold(()=>{hs.isOpen(ue)&&hs.close(ue)},$t=>{hs.cloak(ue),hs.open(ue,$t),Be(ue)}),ue))},ZX=(s,F,Z,ue,we,Be,qe)=>(hs.close(ue),uh.pure(ue)),vP=(s,F,Z,ue,we,Be)=>{const qe=lu.getCoupled(Z,"sandbox");return(hs.isOpen(qe)?ZX:AC)(s,F,Z,qe,ue,we,Be)},yP=(s,F,Z)=>{const ue=as.getCurrent(F).getOr(F),we=cc(s.element);Z?ko(ue.element,"min-width",we+"px"):sa(ue.element,we)},iN=(s,F)=>s.getSystem().getByUid(F.uid+"-"+rN()).map(Z=>()=>Hi.value(Z)).getOrThunk(()=>F.lazySink.fold(()=>()=>Hi.error(new Error("No internal sink is specified, nor could an external sink be found")),Z=>()=>Z(s))),aN=s=>{hs.getState(s).each(F=>{Rw.repositionMenus(F)})},bP=(s,F,Z)=>{const ue=xu(),we=(ft,gt)=>{const At=gP(s,F);ue.link(F.element),s.matchWidth&&yP(At.hotspot,gt,s.useMinWidth),s.onOpen(At,ft,gt),Z!==void 0&&Z.onOpen!==void 0&&Z.onOpen(ft,gt)},Be=(ft,gt)=>{ue.unlink(F.element),qe().getOr(gt).element.dom.dispatchEvent(new window.FocusEvent("focusout")),Z!==void 0&&Z.onClose!==void 0&&Z.onClose(ft,gt)},qe=iN(F,s);return{dom:{tag:"div",classes:s.sandboxClasses,attributes:{id:ue.id}},behaviours:Vm.augment(s.sandboxBehaviours,[hi.config({store:{mode:"memory",initialValue:F}}),hs.config({onOpen:we,onClose:Be,isPartOf:(ft,gt,At)=>Vc(gt,At)||Vc(F,At),getAttachPoint:()=>qe().getOrDie()}),as.config({find:ft=>hs.getState(ft).bind(gt=>as.getCurrent(gt))}),Wu.config({channels:{...uv({isExtraPart:D}),..._3({doReposition:aN})}})])}},xP=s=>{const F=lu.getCoupled(s,"sandbox");aN(F)},MC=()=>[mr("sandboxClasses",[]),Vm.field("sandboxBehaviours",[as,Wu,hs,hi])],qX=x([Sn("dom"),Sn("fetch"),Ra("onOpen"),yd("onExecute"),mr("getHotspot",I.some),mr("getAnchorOverrides",x({})),l0(),Ef("dropdownBehaviours",[za,lu,Li,oa]),Sn("toggleClass"),mr("eventOrder",{}),Hr("lazySink"),mr("matchWidth",!1),mr("useMinWidth",!1),Hr("role"),Hr("listRole")].concat(MC())),WX=x([Um({schema:[U0(),mr("fakeFocus",!1)],name:"menu",defaults:s=>({onExecute:s.onExecute})}),oN()]),sN=(s,F,Z,ue)=>{const we=$t=>Ge(s.dom,"attributes").bind(on=>Ge(on,$t)),Be=$t=>{hs.getState($t).each(on=>{Rw.highlightPrimary(on)})},qe=($t,on,yn)=>vP(s,R,$t,ue,on,yn),ft=$t=>{qe($t,Be,Xh.HighlightMenuAndItem).get(v)},gt={expand:$t=>{za.isOn($t)||qe($t,v,Xh.HighlightNone).get(v)},open:$t=>{za.isOn($t)||qe($t,v,Xh.HighlightMenuAndItem).get(v)},refetch:$t=>lu.getExistingCoupled($t,"sandbox").fold(()=>qe($t,v,Xh.HighlightMenuAndItem).map(v),yn=>AC(s,R,$t,yn,ue,v,Xh.HighlightMenuAndItem).map(v)),isOpen:za.isOn,close:$t=>{za.isOn($t)&&qe($t,v,Xh.HighlightMenuAndItem).get(v)},repositionMenus:$t=>{za.isOn($t)&&xP($t)}},At=($t,on)=>(Fp($t),I.some(!0));return{uid:s.uid,dom:s.dom,components:F,behaviours:Pf(s.dropdownBehaviours,[za.config({toggleClass:s.toggleClass,aria:{mode:"expanded"}}),lu.config({others:{sandbox:$t=>bP(s,$t,{onOpen:()=>za.on($t),onClose:()=>za.off($t)})}}),Li.config({mode:"special",onSpace:At,onEnter:At,onDown:($t,on)=>{if(p0.isOpen($t)){const yn=lu.getCoupled($t,"sandbox");Be(yn)}else p0.open($t);return I.some(!0)},onEscape:($t,on)=>p0.isOpen($t)?(p0.close($t),I.some(!0)):I.none()}),oa.config({})]),events:k6(I.some(ft)),eventOrder:{...s.eventOrder,[cp()]:["disabling","toggling","alloy.base.behaviour"]},apis:gt,domModification:{attributes:{"aria-haspopup":s.listRole.getOr("true"),...s.role.fold(()=>({}),$t=>({role:$t})),...s.dom.tag==="button"?{type:we("type").getOr("button")}:{}}}}},p0=ch({name:"Dropdown",configFields:qX(),partFields:WX(),factory:sN,apis:{open:(s,F)=>s.open(F),refetch:(s,F)=>s.refetch(F),expand:(s,F)=>s.expand(F),close:(s,F)=>s.close(F),isOpen:(s,F)=>s.isOpen(F),repositionMenus:(s,F)=>s.repositionMenus(F)}}),YX=s=>{switch(s.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:s}}},XX=s=>{const F=hi.getValue(s),Z=E2(s).map(Uz);p0.refetch(F).get(()=>{const ue=lu.getCoupled(F,"sandbox");Z.each(we=>E2(ue).each(Be=>_Y(Be,we)))})},GX=(s,F)=>{KX(s).each(Z=>{T1(s,Z.element,F.event.eventType,F.event.interactionEvent)})},KX=s=>hs.getState(s).bind(ri.getHighlighted).bind(ri.getHighlighted),JX=s=>$l(s.element,tC)?I.some(s.element):aa(s.element,"."+tC),K5=(s,F,Z)=>{z7(s).each(ue=>{wY(ue,Z),JX(F).each(Be=>{co(Be,"id").each(qe=>fr(ue.element,"aria-controls",qe))})}),fr(Z.element,"aria-selected","true")},eG=(s,F,Z)=>{fr(Z.element,"aria-selected","false")},EC=s=>{z7(s).each(F=>oa.focus(F))},tG=s=>lu.getExistingCoupled(s,"sandbox").bind(E2).map(Uz).map(Z=>Z.fetchPattern).getOr("");var PC;(function(s){s[s.ContentFocus=0]="ContentFocus",s[s.UiFocus=1]="UiFocus"})(PC||(PC={}));const nG=(s,F,Z,ue,we)=>{const Be=Z.shared.providers,qe=ft=>we?{...ft,shortcut:I.none(),icon:ft.text.isSome()?I.none():ft.icon}:ft;switch(s.type){case"menuitem":return NY(s).fold(Jb,ft=>I.some(DX(qe(ft),F,Be,ue)));case"nestedmenuitem":return VY(s).fold(Jb,ft=>I.some(BX(qe(ft),F,Be,ue,we)));case"togglemenuitem":return jY(s).fold(Jb,ft=>I.some(zX(qe(ft),F,Be,ue)));case"separator":return Jz(s).fold(Jb,ft=>I.some(pP(ft)));case"fancymenuitem":return iF(s).fold(Jb,ft=>FX(ft,Z));default:return console.error("Unknown item in general menu",s),I.none()}},rG=(s,F,Z,ue,we,Be,qe)=>{const ft=ue===1,gt=!ft||$5(s);return It(oe(s,At=>{switch(At.type){case"separator":return PY(At).fold(Jb,$t=>I.some(pP($t)));case"cardmenuitem":return Y7(At).fold(Jb,$t=>I.some(tN({...$t,onAction:on=>{$t.onAction(on),Z($t.value,$t.meta)}},we,Be,{itemBehaviours:mF($t.meta,Be,I.none()),cardText:{matchText:F,highlightOn:qe}})));case"autocompleteitem":default:return RY(At).fold(Jb,$t=>I.some(IX($t,F,ft,"normal",Z,we,Be,gt)))}}))},oG=(s,F,Z,ue,we,Be)=>{const qe=$5(F),ft=It(oe(F,$t=>{const on=wn=>we?!ht(wn,"text"):qe,yn=wn=>nG(wn,Z,ue,on(wn),we);return $t.type==="nestedmenuitem"&&$t.getSubmenuItems().length<=0?yn({...$t,enabled:!1}):yn($t)})),gt=YX(Be);return(we?kY:$7)(s,qe,ft,1,gt)},o4=s=>Rw.singleData(s.value,s),i4=(s,F,Z,ue)=>{const we=CC(F,ue),Be=M2(ue);return{data:o4({...s,movement:we,menuBehaviours:K3.unnamedEvents(F!=="auto"?[]:[Ll((qe,ft)=>{hC(qe,4,Be.item).each(({numColumns:gt,numRows:At})=>{Li.setGridSize(qe,At,gt)})})])}),menu:{markers:M2(ue),fakeFocus:Z===PC.ContentFocus}}},lN=s=>a2.create(Pt.fromDom(s.startContainer),s.startOffset,Pt.fromDom(s.endContainer),s.endOffset),aG={register:(s,F)=>{const Z=fi("autocompleter"),ue=xi(!1),we=xi(!1),Be=os(),qe=vi(hc.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:Z}},components:[],fireDismissalEventInstead:{},inlineBehaviours:Do([Ta("dismissAutocompleter",[fo(I0(),()=>on()),fo(Cm(),(or,Mr)=>{co(Mr.event.target,"id").each(kr=>fr(Pt.fromDom(s.getBody()),"aria-activedescendant",kr))})])]),lazySink:F.getSink})),ft=()=>hc.isOpen(qe),gt=we.get,At=()=>{if(ft()){hc.hide(qe),s.dom.remove(Z,!1);const or=Pt.fromDom(s.getBody());co(or,"aria-owns").filter(Mr=>Mr===Z).each(()=>{po(or,"aria-owns"),po(or,"aria-activedescendant")})}},$t=()=>hc.getContent(qe).bind(or=>De(or.components(),0)),on=()=>s.execCommand("mceAutocompleterClose"),yn=or=>{const Mr=Oe(or,kr=>I.from(kr.columns)).getOr(1);return ye(or,kr=>{const yo=kr.items;return rG(yo,kr.matchText,(Xr,No)=>{const Jo={hide:()=>on(),reload:ho=>{At(),s.execCommand("mceAutocompleterReload",!1,{fetchOptions:ho})}};s.execCommand("mceAutocompleterRefreshActiveRange"),Be.get().each(ho=>{ue.set(!0),kr.onAction(Jo,ho,Xr,No),ue.set(!1)})},Mr,r1.BUBBLE_TO_SANDBOX,F,kr.highlightOn)})},wn=(or,Mr)=>{const kr=Oe(or,yo=>I.from(yo.columns)).getOr(1);hc.showMenuAt(qe,{anchor:{type:"selection",getSelection:()=>Be.get().map(lN),root:Pt.fromDom(s.getBody())}},i4($7("autocompleter-value",!0,Mr,kr,{menuType:"normal"}),kr,PC.ContentFocus,"normal")),$t().each(ri.highlightFirst)},Mn=or=>{const Mr=yn(or);Mr.length>0?(wn(or,Mr),fr(Pt.fromDom(s.getBody()),"aria-owns",Z),s.inline||Xn()):At()},Xn=()=>{s.dom.get(Z)&&s.dom.remove(Z,!1);const or=s.getDoc().documentElement,Mr=s.selection.getNode(),kr=_S(qe.element);ra(kr,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${Mr.offsetTop}px`,left:`${Mr.offsetLeft}px`}),s.dom.add(or,kr.dom),aa(kr,'[role="menu"]').each(yo=>{ma(yo,"position"),ma(yo,"max-height")})};s.on("AutocompleterStart",({lookupData:or})=>{we.set(!0),ue.set(!1),Mn(or)}),s.on("AutocompleterUpdate",({lookupData:or})=>Mn(or)),s.on("AutocompleterUpdateActiveRange",({range:or})=>Be.set(or)),s.on("AutocompleterEnd",()=>{At(),we.set(!1),ue.set(!1),Be.clear()});const Br={cancelIfNecessary:on,isMenuOpen:ft,isActive:gt,isProcessingAction:ue.get,getMenu:$t};Rz.setup(Br,s)}},J5=(s,F,Z)=>Fs(s,F,Z).isSome(),cN=(s,F)=>{let Z=null;return{cancel:()=>{Z!==null&&(clearTimeout(Z),Z=null)},schedule:(...Be)=>{Z=setTimeout(()=>{s.apply(null,Be),Z=null},F)}}},uN=5,sG=400,fN=s=>{const F=s.raw;return F.touches===void 0||F.touches.length!==1?I.none():I.some(F.touches[0])},lG=(s,F)=>{const Z=Math.abs(s.clientX-F.x),ue=Math.abs(s.clientY-F.y);return Z>uN||ue>uN},cG=s=>{const F=os(),Z=xi(!1),ue=cN(At=>{s.triggerEvent(Xf(),At),Z.set(!0)},sG),we=At=>(fN(At).each($t=>{ue.cancel();const on={x:$t.clientX,y:$t.clientY,target:At.target};ue.schedule(At),Z.set(!1),F.set(on)}),I.none()),Be=At=>(ue.cancel(),fN(At).each($t=>{F.on(on=>{lG($t,on)&&F.clear()})}),I.none()),qe=At=>{ue.cancel();const $t=on=>so(on.target,At.target);return F.get().filter($t).map(on=>Z.get()?(At.prevent(),!1):s.triggerEvent(up(),At))},ft=hd([{key:_m(),value:we},{key:Yg(),value:Be},{key:wm(),value:qe}]);return{fireIfReady:(At,$t)=>Ge(ft,$t).bind(on=>on(At))}},uG=s=>s.raw.which===Ms[0]&&!X(["input","textarea"],ar(s.target))&&!J5(s.target,'[contenteditable="true"]'),fG=(s,F)=>{const Z={stopBackspace:!0,...F},ue=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],we=cG(Z),Be=oe(ue.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),wn=>_d(s,wn,Mn=>{we.fireIfReady(Mn,wn).each(Br=>{Br&&Mn.kill()}),Z.triggerEvent(wn,Mn)&&Mn.kill()})),qe=os(),ft=_d(s,"paste",wn=>{we.fireIfReady(wn,"paste").each(Xn=>{Xn&&wn.kill()}),Z.triggerEvent("paste",wn)&&wn.kill(),qe.set(setTimeout(()=>{Z.triggerEvent(Gg(),wn)},0))}),gt=_d(s,"keydown",wn=>{Z.triggerEvent("keydown",wn)?wn.kill():Z.stopBackspace&&uG(wn)&&wn.prevent()}),At=_d(s,"focusin",wn=>{Z.triggerEvent("focusin",wn)&&wn.kill()}),$t=os(),on=_d(s,"focusout",wn=>{Z.triggerEvent("focusout",wn)&&wn.kill(),$t.set(setTimeout(()=>{Z.triggerEvent(Xg(),wn)},0))});return{unbind:()=>{q(Be,wn=>{wn.unbind()}),gt.unbind(),At.unbind(),on.unbind(),ft.unbind(),qe.on(clearTimeout),$t.on(clearTimeout)}}},dN=(s,F)=>{const Z=Ge(s,"target").getOr(F);return xi(Z)},hN=(s,F)=>{const Z=xi(!1),ue=xi(!1);return{stop:()=>{Z.set(!0)},cut:()=>{ue.set(!0)},isStopped:Z.get,isCut:ue.get,event:s,setSource:F.set,getSource:F.get}},a4=s=>{const F=xi(!1);return{stop:()=>{F.set(!0)},cut:v,isStopped:F.get,isCut:D,event:s,setSource:C("Cannot set source of a broadcasted event"),getSource:C("Cannot get source of a broadcasted event")}},yv=Ds.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),pN=(s,F,Z,ue,we,Be)=>{const qe=s(F,ue),ft=hN(Z,we);return qe.fold(()=>(Be.logEventNoHandlers(F,ue),yv.complete()),gt=>{const At=gt.descHandler;return qh(At)(ft),ft.isStopped()?(Be.logEventStopped(F,gt.element,At.purpose),yv.stopped()):ft.isCut()?(Be.logEventCut(F,gt.element,At.purpose),yv.complete()):br(gt.element).fold(()=>(Be.logNoParent(F,gt.element,At.purpose),yv.complete()),on=>(Be.logEventResponse(F,gt.element,At.purpose),yv.resume(on)))})},_P=(s,F,Z,ue,we,Be)=>pN(s,F,Z,ue,we,Be).fold(k,qe=>_P(s,F,Z,qe,we,Be),D),mN=(s,F,Z,ue,we)=>{const Be=dN(Z,ue);return pN(s,F,Z,ue,Be,we)},RC=(s,F,Z)=>{const ue=a4(F);return q(s,we=>{const Be=we.descHandler;qh(Be)(ue)}),ue.isStopped()},dG=(s,F,Z,ue)=>s4(s,F,Z,Z.target,ue),s4=(s,F,Z,ue,we)=>{const Be=dN(Z,ue);return _P(s,F,Z,ue,Be,we)},ek=(s,F)=>({element:s,descHandler:F}),hG=(s,F)=>({id:s,descHandler:F}),pG=()=>{const s={},F=(qe,ft,gt)=>{We(gt,(At,$t)=>{const on=s[$t]!==void 0?s[$t]:{};on[ft]=Lm(At,qe),s[$t]=on})},Z=(qe,ft)=>sy(ft).bind(gt=>Ge(qe,gt)).map(gt=>ek(ft,gt));return{registerId:F,unregisterId:qe=>{We(s,(ft,gt)=>{ht(ft,qe)&&delete ft[qe]})},filterByType:qe=>Ge(s,qe).map(ft=>je(ft,(gt,At)=>hG(At,gt))).getOr([]),find:(qe,ft,gt)=>Ge(s,ft).bind(At=>E0(gt,$t=>Z(At,$t),qe))}},mG=()=>{const s=pG(),F={},Z=At=>{const $t=At.element;return sy($t).getOrThunk(()=>kS("uid-",At.element))},ue=(At,$t)=>{const on=F[$t];if(on===At)Be(At);else throw new Error('The tagId "'+$t+'" is already used by: '+rh(on.element)+` +Components: `+JSON.stringify(F.components,null,2))}),Be},Sy=qb.single,bw=qb.multiple,xw=x(o5),C3=Ds.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),gp=mr("factory",{sketch:R}),J0=mr("schema",[]),ky=Sn("name"),Ty=Ln("pname","pname",Xi(s=>""),le()),rE=On("schema",()=>[Hr("preprocess")]),A3=mr("defaults",x({})),M3=mr("overrides",x({})),oE=Mi([gp,J0,ky,Ty,A3,M3]),iE=Mi([gp,J0,ky,A3,M3]),aE=Mi([gp,J0,ky,Ty,A3,M3]),sE=Mi([gp,rE,ky,Sn("unit"),Ty,A3,M3]),r6=s=>s.fold(I.some,I.none,I.some,I.some),E3=s=>{const F=Z=>Z.name;return s.fold(F,F,F,F)},lE=s=>s.fold(R,R,R,R),P3=(s,F)=>Z=>{const ue=cn("Converting part type",F,Z);return s(ue)},kd=P3(C3.required,oE),Um=P3(C3.external,iE),Jp=P3(C3.optional,aE),R3=P3(C3.group,sE),L3=x("entirety");var o6=Object.freeze({__proto__:null,required:kd,external:Um,optional:Jp,group:R3,asNamedPart:r6,name:E3,asCommon:lE,original:L3});const i5=(s,F,Z,ue)=>nl(F.defaults(s,Z,ue),Z,{uid:s.partUids[F.name]},F.overrides(s,Z,ue)),i6=(s,F,Z)=>{const ue={},we={};return q(Z,Be=>{Be.fold(qe=>{ue[qe.pname]=Sy(!0,(ft,gt,At)=>qe.factory.sketch(i5(ft,qe,gt,At)))},qe=>{const ft=F.parts[qe.name];we[qe.name]=x(qe.factory.sketch(i5(F,qe,ft[L3()]),ft))},qe=>{ue[qe.pname]=Sy(!1,(ft,gt,At)=>qe.factory.sketch(i5(ft,qe,gt,At)))},qe=>{ue[qe.pname]=bw(!0,(ft,gt,At)=>{const $t=ft[qe.name];return oe($t,on=>qe.factory.sketch(nl(qe.defaults(ft,on,At),on,qe.overrides(ft,on))))})})}),{internals:x(ue),externals:x(we)}},a5=(s,F)=>{const Z={};return q(F,ue=>{r6(ue).each(we=>{const Be=a6(s,we.pname);Z[we.name]=qe=>{const ft=cn("Part: "+we.name+" in "+s,Mi(we.schema),qe);return{...Be,config:qe,validated:ft}}})}),Z},a6=(s,F)=>({uiType:xw(),owner:s,name:F}),s6=(s,F,Z)=>({uiType:xw(),owner:s,name:F,config:Z,validated:{}}),cE=s=>ye(s,F=>F.fold(I.none,I.some,I.none,I.none).map(Z=>zo(Z.name,Z.schema.concat([WO(L3())]))).toArray()),uE=s=>oe(s,E3),I3=(s,F,Z)=>i6(s,F,Z),s5=(s,F,Z)=>nE(I.some(s),F,F.components,Z),Fo=(s,F,Z)=>{const ue=F.partUids[Z];return s.getSystem().getByUid(ue).toOptional()},Ph=(s,F,Z)=>Fo(s,F,Z).getOrDie("Could not find part: "+Z),l6=(s,F,Z)=>{const ue={},we=F.partUids,Be=s.getSystem();return q(Z,qe=>{ue[qe]=x(Be.getByUid(we[qe]))}),ue},l5=(s,F)=>{const Z=s.getSystem();return Ue(F.partUids,(ue,we)=>x(Z.getByUid(ue)))},_w=s=>ke(s.partUids),ww=(s,F,Z)=>{const ue={},we=F.partUids,Be=s.getSystem();return q(Z,qe=>{ue[qe]=x(Be.getByUid(we[qe]).getOrDie())}),ue},D3=(s,F)=>{const Z=uE(F);return pd(oe(Z,ue=>({key:ue,value:s+"-"+ue})))},Ow=s=>Ln("partUids","partUids",bu(F=>D3(F.uid,s)),le());var c6=Object.freeze({__proto__:null,generate:a5,generateOne:s6,schemas:cE,names:uE,substitutes:I3,components:s5,defaultUids:D3,defaultUidsSchema:Ow,getAllParts:l5,getAllPartNames:_w,getPart:Fo,getPartOrDie:Ph,getParts:l6,getPartsOrDie:ww});const u6=(s,F)=>(s.length>0?[zo("parts",s)]:[]).concat([Sn("uid"),mr("dom",{}),mr("components",[]),WO("originalSpec"),mr("debug.sketcher",{})]).concat(F),c5=(s,F,Z,ue,we)=>{const Be=u6(ue,we);return cn(s+" [SpecSchema]",Ol(Be.concat(F)),Z)},u5=(s,F,Z,ue)=>{const we=f6(ue),Be=c5(s,F,we,[],[]);return Z(Be,we)},pv=(s,F,Z,ue,we)=>{const Be=f6(we),qe=cE(Z),ft=Ow(Z),gt=c5(s,F,Be,qe,[ft]),At=I3(s,gt,Z),$t=s5(s,gt,At.internals());return ue(gt,$t,Be,At.externals())},f5=s=>ht(s,"uid"),f6=s=>f5(s)?s:{...s,uid:j0("uid")},fE=s=>s.uid!==void 0,dE=Ol([Sn("name"),Sn("factory"),Sn("configFields"),mr("apis",{}),mr("extraApis",{})]),d6=Ol([Sn("name"),Sn("factory"),Sn("configFields"),Sn("partFields"),mr("apis",{}),mr("extraApis",{})]),Yh=s=>{const F=cn("Sketcher for "+s.name,dE,s),Z=Be=>u5(F.name,F.configFields,F.factory,Be),ue=Ue(F.apis,Cc),we=Ue(F.extraApis,(Be,qe)=>Xv(Be,qe));return{name:F.name,configFields:F.configFields,sketch:Z,...ue,...we}},ch=s=>{const F=cn("Sketcher for "+s.name,d6,s),Z=qe=>pv(F.name,F.configFields,F.partFields,F.factory,qe),ue=a5(F.name,F.partFields),we=Ue(F.apis,Cc),Be=Ue(F.extraApis,(qe,ft)=>Xv(qe,ft));return{name:F.name,partFields:F.partFields,configFields:F.configFields,sketch:Z,parts:ue,...we,...Be}},w2=s=>Fr("input")(s)&&ao(s,"type")!=="radio"||Fr("textarea")(s);var hE=Object.freeze({__proto__:null,getCurrent:(s,F,Z)=>F.find(s)});const d5=[Sn("find")],as=lf({fields:d5,name:"composing",apis:hE}),ND=["input","button","textarea","select"],h6=(s,F,Z)=>{(F.disabled()?B3:kw)(s,F)},p6=(s,F)=>F.useNative===!0&&X(ND,ar(s.element)),$D=s=>Go(s.element,"disabled"),Cy=s=>{fr(s.element,"disabled","disabled")},Sw=s=>{po(s.element,"disabled")},pE=s=>ao(s.element,"aria-disabled")==="true",mE=s=>{fr(s.element,"aria-disabled","true")},gE=s=>{fr(s.element,"aria-disabled","false")},B3=(s,F,Z)=>{F.disableClass.each(we=>{Sl(s.element,we)}),(p6(s,F)?Cy:mE)(s),F.onDisabled(s)},kw=(s,F,Z)=>{F.disableClass.each(we=>{fc(s.element,we)}),(p6(s,F)?Sw:gE)(s),F.onEnabled(s)},m6=(s,F)=>p6(s,F)?$D(s):pE(s);var O2=Object.freeze({__proto__:null,enable:kw,disable:B3,isDisabled:m6,onLoad:h6,set:(s,F,Z,ue)=>{(ue?B3:kw)(s,F)}}),g6=Object.freeze({__proto__:null,exhibit:(s,F)=>Cf({classes:F.disabled()?F.disableClass.toArray():[]}),events:(s,F)=>pl([FO(cp(),(Z,ue)=>m6(Z,s)),E1(s,F,h6)])}),vE=[Pa("disabled",D),mr("useNative",!0),Hr("disableClass"),Ra("onDisabled"),Ra("onEnabled")];const ta=lf({fields:vE,name:"disabling",active:g6,apis:O2}),pe=(s,F,Z,ue)=>{const we=$d(s.element,"."+F.highlightClass);q(we,Be=>{te(ue,ft=>so(ft.element,Be))||(fc(Be,F.highlightClass),s.getSystem().getByDom(Be).each(ft=>{F.onDehighlight(s,ft),Sa(ft,D0())}))})},Ce=(s,F,Z)=>pe(s,F,Z,[]),Ye=(s,F,Z,ue)=>{$n(s,F,Z,ue)&&(fc(ue.element,F.highlightClass),F.onDehighlight(s,ue),Sa(ue,D0()))},st=(s,F,Z,ue)=>{pe(s,F,Z,[ue]),$n(s,F,Z,ue)||(Sl(ue.element,F.highlightClass),F.onHighlight(s,ue),Sa(ue,Cm()))},St=(s,F,Z)=>{Ro(s,F).each(ue=>{st(s,F,Z,ue)})},Ut=(s,F,Z)=>{ai(s,F).each(ue=>{st(s,F,Z,ue)})},un=(s,F,Z,ue)=>{Nr(s,F,Z,ue).fold(we=>{throw we},we=>{st(s,F,Z,we)})},Tn=(s,F,Z,ue)=>{const we=To(s,F);ce(we,ue).each(qe=>{st(s,F,Z,qe)})},$n=(s,F,Z,ue)=>$l(ue.element,F.highlightClass),ur=(s,F,Z)=>aa(s.element,"."+F.highlightClass).bind(ue=>s.getSystem().getByDom(ue).toOptional()),Nr=(s,F,Z,ue)=>{const we=$d(s.element,"."+F.itemClass);return I.from(we[ue]).fold(()=>Hi.error(new Error("No element found with index "+ue)),s.getSystem().getByDom)},Ro=(s,F,Z)=>aa(s.element,"."+F.itemClass).bind(ue=>s.getSystem().getByDom(ue).toOptional()),ai=(s,F,Z)=>{const ue=$d(s.element,"."+F.itemClass);return(ue.length>0?I.some(ue[ue.length-1]):I.none()).bind(Be=>s.getSystem().getByDom(Be).toOptional())},Ko=(s,F,Z,ue)=>{const we=$d(s.element,"."+F.itemClass);return de(we,qe=>$l(qe,F.highlightClass)).bind(qe=>{const ft=ac(qe,ue,0,we.length-1);return s.getSystem().getByDom(we[ft]).toOptional()})},Qo=(s,F,Z)=>Ko(s,F,Z,-1),_i=(s,F,Z)=>Ko(s,F,Z,1),To=(s,F,Z)=>{const ue=$d(s.element,"."+F.itemClass);return It(oe(ue,we=>s.getSystem().getByDom(we).toOptional()))};var Zo=Object.freeze({__proto__:null,dehighlightAll:Ce,dehighlight:Ye,highlight:st,highlightFirst:St,highlightLast:Ut,highlightAt:un,highlightBy:Tn,isHighlighted:$n,getHighlighted:ur,getFirst:Ro,getLast:ai,getPrevious:Qo,getNext:_i,getCandidates:To}),Yi=[Sn("highlightClass"),Sn("itemClass"),Ra("onHighlight"),Ra("onDehighlight")];const ri=lf({fields:Yi,name:"highlighting",apis:Zo}),Ms=[8],al=[9],Gs=[13],td=[27],zu=[32],e1=[37],Ay=[38],My=[39],Zs=[40],Rh=(s,F,Z)=>{const ue=Se(s.slice(0,F)),we=Se(s.slice(F+1));return ce(ue.concat(we),Z)},Lh=(s,F,Z)=>{const ue=Se(s.slice(0,F));return ce(ue,Z)},jm=(s,F,Z)=>{const ue=s.slice(0,F),we=s.slice(F+1);return ce(we.concat(ue),Z)},Qm=(s,F,Z)=>{const ue=s.slice(F+1);return ce(ue,Z)},qa=s=>F=>{const Z=F.raw;return X(s,Z.which)},tu=s=>F=>_e(s,Z=>Z(F)),t1=s=>s.raw.shiftKey===!0,Tw=s=>s.raw.ctrlKey===!0,vp=E(t1),xa=(s,F)=>({matches:s,classification:F}),p5=(s,F)=>ce(s,ue=>ue.matches(F)).map(ue=>ue.classification),m5=(s,F,Z)=>{F.exists(we=>Z.exists(Be=>so(Be,we)))||Ri(s,Jg(),{prevFocus:F,newFocus:Z})},z3=()=>{const s=Z=>_d(Z.element);return{get:s,set:(Z,ue)=>{const we=s(Z);Z.getSystem().triggerFocus(ue,Z.element);const Be=s(Z);m5(Z,we,Be)}}},v6=()=>{const s=Z=>ri.getHighlighted(Z).map(ue=>ue.element);return{get:s,set:(Z,ue)=>{const we=s(Z);Z.getSystem().getByDom(ue).fold(v,qe=>{ri.highlight(Z,qe)});const Be=s(Z);m5(Z,we,Be)}}};var Wb;(function(s){s.OnFocusMode="onFocus",s.OnEnterOrSpaceMode="onEnterOrSpace",s.OnApiMode="onApi"})(Wb||(Wb={}));const mv=(s,F,Z,ue,we)=>{const Be=()=>s.concat([mr("focusManager",z3()),bs("focusInside","onFocus",mt(At=>X(["onFocus","onEnterOrSpace","onApi"],At)?Hi.value(At):Hi.error("Invalid value for focusInside"))),Il("handler",gt),Il("state",F),Il("sendFocusIn",we)]),qe=(At,$t,on,yn,wn)=>{const Mn=on(At,$t,yn,wn);return p5(Mn,$t.event).bind(Xn=>Xn(At,$t,yn,wn))},gt={schema:Be,processKey:qe,toEvents:(At,$t)=>{const on=At.focusInside!==Wb.OnFocusMode?I.none():we(At).map(Mn=>fo(km(),(Xn,Br)=>{Mn(Xn,At,$t),Br.stop()})),yn=(Mn,Xn)=>{const Br=qa(zu.concat(Gs))(Xn.event);At.focusInside===Wb.OnEnterOrSpaceMode&&Br&&xm(Mn,Xn)&&we(At).each(or=>{or(Mn,At,$t),Xn.stop()})},wn=[fo(Bp(),(Mn,Xn)=>{qe(Mn,Xn,Z,At,$t).fold(()=>{yn(Mn,Xn)},Br=>{Xn.stop()})}),fo(P0(),(Mn,Xn)=>{qe(Mn,Xn,ue,At,$t).each(Br=>{Xn.stop()})})];return pl(on.toArray().concat(wn))}};return gt},y6=s=>{const F=[Hr("onEscape"),Hr("onEnter"),mr("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),mr("firstTabstop",0),mr("useTabstopAt",k),Hr("visibilitySelector")].concat([s]),Z=(or,Mr)=>{const kr=or.visibilitySelector.bind(yo=>Fs(Mr,yo)).getOr(Mr);return Ql(kr)>0},ue=(or,Mr)=>{const kr=$d(or.element,Mr.selector),yo=me(kr,Xr=>Z(Mr,Xr));return I.from(yo[Mr.firstTabstop])},we=(or,Mr)=>Mr.focusManager.get(or).bind(kr=>Fs(kr,Mr.selector)),Be=(or,Mr)=>Z(or,Mr)&&or.useTabstopAt(Mr),qe=(or,Mr,kr)=>{ue(or,Mr).each(yo=>{Mr.focusManager.set(or,yo)})},ft=(or,Mr,kr,yo,Xr)=>Xr(Mr,kr,No=>Be(yo,No)).fold(()=>yo.cyclic?I.some(!0):I.none(),No=>(yo.focusManager.set(or,No),I.some(!0))),gt=(or,Mr,kr,yo)=>{const Xr=$d(or.element,kr.selector);return we(or,kr).bind(No=>de(Xr,T(so,No)).bind(ho=>ft(or,Xr,ho,kr,yo)))},At=(or,Mr,kr)=>{const yo=kr.cyclic?Rh:Lh;return gt(or,Mr,kr,yo)},$t=(or,Mr,kr)=>{const yo=kr.cyclic?jm:Qm;return gt(or,Mr,kr,yo)},on=or=>dr(or).bind(hr).exists(Mr=>so(Mr,or)),yn=(or,Mr,kr)=>we(or,kr).filter(yo=>!kr.useTabstopAt(yo)).bind(yo=>(on(yo)?At:$t)(or,Mr,kr)),wn=(or,Mr,kr)=>kr.onEnter.bind(yo=>yo(or,Mr)),Mn=(or,Mr,kr)=>kr.onEscape.bind(yo=>yo(or,Mr)),Xn=x([xa(tu([t1,qa(al)]),At),xa(qa(al),$t),xa(tu([vp,qa(Gs)]),wn)]),Br=x([xa(qa(td),Mn),xa(qa(al),yn)]);return mv(F,Gf.init,Xn,Br,()=>I.some(qe))};var Cw=y6(On("cyclic",D)),Nq=y6(On("cyclic",k));const g5=(s,F,Z)=>(qv(s,Z,cp()),I.some(!0)),F3=(s,F,Z)=>w2(Z)&&qa(zu)(F.event)?I.none():g5(s,F,Z),Aw=(s,F)=>I.some(!0),yE=[mr("execute",F3),mr("useSpace",!1),mr("useEnter",!0),mr("useControlEnter",!1),mr("useDown",!1)],jD=(s,F,Z)=>Z.execute(s,F,s.element),QD=(s,F,Z,ue)=>{const we=Z.useSpace&&!w2(s.element)?zu:[],Be=Z.useEnter?Gs:[],qe=Z.useDown?Zs:[],ft=we.concat(Be).concat(qe);return[xa(qa(ft),jD)].concat(Z.useControlEnter?[xa(tu([Tw,qa(Gs)]),jD)]:[])},$q=(s,F,Z,ue)=>Z.useSpace&&!w2(s.element)?[xa(qa(zu),Aw)]:[];var HD=mv(yE,Gf.init,QD,$q,()=>I.none());const bE=()=>{const s=os();return kh({readState:()=>s.get().map(we=>({numRows:String(we.numRows),numColumns:String(we.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(we,Be)=>{s.set({numRows:we,numColumns:Be})},getNumRows:()=>s.get().map(we=>we.numRows),getNumColumns:()=>s.get().map(we=>we.numColumns)})};var Vq=Object.freeze({__proto__:null,flatgrid:bE,init:s=>s.state(s)});const ZD=s=>(F,Z,ue,we)=>{const Be=s(F.element);return v5(Be,F,Z,ue,we)},xE=(s,F)=>{const Z=Lb(s,F);return ZD(Z)},_E=(s,F)=>{const Z=Lb(F,s);return ZD(Z)},wE=s=>(F,Z,ue,we)=>v5(s,F,Z,ue,we),v5=(s,F,Z,ue,we)=>ue.focusManager.get(F).bind(qe=>s(F.element,qe,ue,we)).map(qe=>(ue.focusManager.set(F,qe),!0)),b6=wE,qD=wE,OE=wE,WD=s=>s.offsetWidth<=0&&s.offsetHeight<=0,YD=s=>!WD(s.dom),Uq=(s,F)=>de(s,F).map(Z=>({index:Z,candidates:s})),Tg=(s,F,Z)=>{const ue=qe=>so(qe,F),we=$d(s,Z),Be=me(we,YD);return Uq(Be,ue)},XD=(s,F)=>de(s,Z=>so(F,Z)),GD=(s,F,Z,ue)=>{const we=Math.floor(F/Z),Be=F%Z;return ue(we,Be).bind(qe=>{const ft=qe.row*Z+qe.column;return ft>=0&&ftGD(s,F,ue,(Be,qe)=>{const gt=Be===Z-1?s.length-Be*ue:ue,At=ac(qe,we,0,gt-1);return I.some({row:Be,column:At})}),JD=(s,F,Z,ue,we)=>GD(s,F,ue,(Be,qe)=>{const ft=ac(Be,we,0,Z-1),At=ft===Z-1?s.length-ft*ue:ue,$t=Mc(qe,0,At-1);return I.some({row:ft,column:$t})}),jq=(s,F,Z,ue)=>KD(s,F,Z,ue,1),N3=(s,F,Z,ue)=>KD(s,F,Z,ue,-1),SE=(s,F,Z,ue)=>JD(s,F,Z,ue,-1),Qq=(s,F,Z,ue)=>JD(s,F,Z,ue,1),kE=[Sn("selector"),mr("execute",F3),bd("onEscape"),mr("captureTab",!1),U1()],x6=(s,F,Z)=>{aa(s.element,F.selector).each(ue=>{F.focusManager.set(s,ue)})},TE=(s,F)=>F.focusManager.get(s).bind(Z=>Fs(Z,F.selector)),Hq=(s,F,Z,ue)=>TE(s,Z).bind(we=>Z.execute(s,F,we)),_6=s=>(F,Z,ue,we)=>Tg(F,Z,ue.selector).bind(Be=>s(Be.candidates,Be.index,we.getNumRows().getOr(ue.initSize.numRows),we.getNumColumns().getOr(ue.initSize.numColumns))),eB=(s,F,Z)=>Z.captureTab?I.some(!0):I.none(),Zq=(s,F,Z)=>Z.onEscape(s,F),tB=_6(N3),nB=_6(jq),rB=_6(SE),CE=_6(Qq),qq=x([xa(qa(e1),xE(tB,nB)),xa(qa(My),_E(tB,nB)),xa(qa(Ay),b6(rB)),xa(qa(Zs),qD(CE)),xa(tu([t1,qa(al)]),eB),xa(tu([vp,qa(al)]),eB),xa(qa(zu.concat(Gs)),Hq)]),Wq=x([xa(qa(td),Zq),xa(qa(zu),Aw)]);var Yq=mv(kE,bE,qq,Wq,()=>I.some(x6));const oB=(s,F,Z,ue,we)=>{const Be=ft=>ar(ft)==="button"&&ao(ft,"disabled")==="disabled",qe=(ft,gt,At)=>we(ft,gt,ue,0,At.length-1,At[gt],$t=>Be(At[$t])?qe(ft,$t,At):I.from(At[$t]));return Tg(s,Z,F).bind(ft=>{const gt=ft.index,At=ft.candidates;return qe(gt,gt,At)})},Mw=(s,F,Z,ue)=>oB(s,F,Z,ue,(we,Be,qe,ft,gt,At,$t)=>{const on=Mc(Be+qe,ft,gt);return on===we?I.from(At):$t(on)}),y5=(s,F,Z,ue)=>oB(s,F,Z,ue,(we,Be,qe,ft,gt,At,$t)=>{const on=ac(Be,qe,ft,gt);return on===we?I.none():$t(on)}),Xq=[Sn("selector"),mr("getInitial",I.none),mr("execute",F3),bd("onEscape"),mr("executeOnMove",!1),mr("allowVertical",!0),mr("allowHorizontal",!0),mr("cycles",!0)],AE=(s,F)=>F.focusManager.get(s).bind(Z=>Fs(Z,F.selector)),ME=(s,F,Z)=>AE(s,Z).bind(ue=>Z.execute(s,F,ue)),iB=(s,F,Z)=>{F.getInitial(s).orThunk(()=>aa(s.element,F.selector)).each(ue=>{F.focusManager.set(s,ue)})},EE=(s,F,Z)=>(Z.cycles?y5:Mw)(s,Z.selector,F,-1),PE=(s,F,Z)=>(Z.cycles?y5:Mw)(s,Z.selector,F,1),RE=s=>(F,Z,ue,we)=>s(F,Z,ue,we).bind(()=>ue.executeOnMove?ME(F,Z,ue):I.some(!0)),aB=(s,F,Z)=>Z.onEscape(s,F),Gq=(s,F,Z,ue)=>{const we=[...Z.allowHorizontal?e1:[]].concat(Z.allowVertical?Ay:[]),Be=[...Z.allowHorizontal?My:[]].concat(Z.allowVertical?Zs:[]);return[xa(qa(we),RE(xE(EE,PE))),xa(qa(Be),RE(_E(EE,PE))),xa(qa(Gs),ME),xa(qa(zu),ME)]},Kq=x([xa(qa(zu),Aw),xa(qa(td),aB)]);var Jq=mv(Xq,Gf.init,Gq,Kq,()=>I.some(iB));const $3=(s,F,Z)=>I.from(s[F]).bind(ue=>I.from(ue[Z]).map(we=>({rowIndex:F,columnIndex:Z,cell:we}))),sB=(s,F,Z,ue)=>{const Be=s[F].length,qe=ac(Z,ue,0,Be-1);return $3(s,F,qe)},b5=(s,F,Z,ue)=>{const we=ac(Z,ue,0,s.length-1),Be=s[we].length,qe=Mc(F,0,Be-1);return $3(s,we,qe)},lB=(s,F,Z,ue)=>{const Be=s[F].length,qe=Mc(Z+ue,0,Be-1);return $3(s,F,qe)},LE=(s,F,Z,ue)=>{const we=Mc(Z+ue,0,s.length-1),Be=s[we].length,qe=Mc(F,0,Be-1);return $3(s,we,qe)},yp=(s,F,Z)=>sB(s,F,Z,1),eW=(s,F,Z)=>sB(s,F,Z,-1),cB=(s,F,Z)=>b5(s,Z,F,-1),uB=(s,F,Z)=>b5(s,Z,F,1),tW=(s,F,Z)=>lB(s,F,Z,-1),fB=(s,F,Z)=>lB(s,F,Z,1),dB=(s,F,Z)=>LE(s,Z,F,-1),nW=(s,F,Z)=>LE(s,Z,F,1),rW=[zo("selectors",[Sn("row"),Sn("cell")]),mr("cycles",!0),mr("previousSelector",I.none),mr("execute",F3)],oW=(s,F,Z)=>{F.previousSelector(s).orThunk(()=>{const we=F.selectors;return aa(s.element,we.cell)}).each(we=>{F.focusManager.set(s,we)})},iW=(s,F,Z)=>_d(s.element).bind(ue=>Z.execute(s,F,ue)),hB=(s,F)=>oe(s,Z=>$d(Z,F.selectors.cell)),w6=(s,F)=>(Z,ue,we)=>{const Be=we.cycles?s:F;return Fs(ue,we.selectors.row).bind(qe=>{const ft=$d(qe,we.selectors.cell);return XD(ft,ue).bind(gt=>{const At=$d(Z,we.selectors.row);return XD(At,qe).bind($t=>{const on=hB(At,we);return Be(on,$t,gt).map(yn=>yn.cell)})})})},pB=w6(eW,tW),IE=w6(yp,fB),mB=w6(cB,dB),gB=w6(uB,nW),aW=x([xa(qa(e1),xE(pB,IE)),xa(qa(My),_E(pB,IE)),xa(qa(Ay),b6(mB)),xa(qa(Zs),qD(gB)),xa(qa(zu.concat(Gs)),iW)]),sW=x([xa(qa(zu),Aw)]);var lW=mv(rW,Gf.init,aW,sW,()=>I.some(oW));const cW=[Sn("selector"),mr("execute",F3),mr("moveOnTab",!1)],DE=(s,F,Z)=>Z.focusManager.get(s).bind(ue=>Z.execute(s,F,ue)),vB=(s,F,Z)=>{aa(s.element,F.selector).each(ue=>{F.focusManager.set(s,ue)})},Yb=(s,F,Z)=>y5(s,Z.selector,F,-1),BE=(s,F,Z)=>y5(s,Z.selector,F,1),yB=(s,F,Z,ue)=>Z.moveOnTab?OE(Yb)(s,F,Z,ue):I.none(),bB=(s,F,Z,ue)=>Z.moveOnTab?OE(BE)(s,F,Z,ue):I.none(),uW=x([xa(qa(Ay),OE(Yb)),xa(qa(Zs),OE(BE)),xa(tu([t1,qa(al)]),yB),xa(tu([vp,qa(al)]),bB),xa(qa(Gs),DE),xa(qa(zu),DE)]),V3=x([xa(qa(zu),Aw)]);var fW=mv(cW,Gf.init,uW,V3,()=>I.some(vB));const dW=[bd("onSpace"),bd("onEnter"),bd("onShiftEnter"),bd("onLeft"),bd("onRight"),bd("onTab"),bd("onShiftTab"),bd("onUp"),bd("onDown"),bd("onEscape"),mr("stopSpaceKeyup",!1),Hr("focusIn")],xB=(s,F,Z)=>[xa(qa(zu),Z.onSpace),xa(tu([vp,qa(Gs)]),Z.onEnter),xa(tu([t1,qa(Gs)]),Z.onShiftEnter),xa(tu([t1,qa(al)]),Z.onShiftTab),xa(tu([vp,qa(al)]),Z.onTab),xa(qa(Ay),Z.onUp),xa(qa(Zs),Z.onDown),xa(qa(e1),Z.onLeft),xa(qa(My),Z.onRight),xa(qa(zu),Z.onSpace)],hW=(s,F,Z)=>[...Z.stopSpaceKeyup?[xa(qa(zu),Aw)]:[],xa(qa(td),Z.onEscape)];var pW=mv(dW,Gf.init,xB,hW,s=>s.focusIn);const mW=Cw.schema(),_B=Nq.schema(),zE=Jq.schema(),FE=Yq.schema(),gW=lW.schema(),S2=HD.schema(),wB=fW.schema(),OB=pW.schema();var vW=Object.freeze({__proto__:null,acyclic:mW,cyclic:_B,flow:zE,flatgrid:FE,matrix:gW,execution:S2,menu:wB,special:OB});const yW=s=>pt(s,"setGridSize"),Li=gd({branchKey:"mode",branches:vW,name:"keying",active:{events:(s,F)=>s.handler.toEvents(s,F)},apis:{focusIn:(s,F,Z)=>{F.sendFocusIn(F).fold(()=>{s.getSystem().triggerFocus(s.element,s.element)},ue=>{ue(s,F,Z)})},setGridSize:(s,F,Z,ue,we)=>{yW(Z)?Z.setGridSize(ue,we):console.error("Layout does not support setGridSize")}},state:Vq}),U3=(s,F)=>{xg(()=>{m2(s,F,()=>oe(F,s.getSystem().build))},s.element)},NE=(s,F)=>{xg(()=>{qS(s,F,()=>et(s.element,F,s.getSystem().buildOrPatch))},s.element)},$E=(s,F,Z,ue)=>{y3(F);const we=Qe(s.element,Z,ue,s.getSystem().buildOrPatch);HS(s,we),s.syncComponents()},Ey=(s,F,Z)=>{const ue=s.getSystem().build(Z);Ub(s,ue,F)},k2=(s,F,Z,ue)=>{fv(F),Ey(s,(we,Be)=>Oc(we,Be,Z),ue)},bW=(s,F,Z,ue)=>(F.reuseDom?NE:U3)(s,ue),xW=(s,F,Z,ue)=>{Ey(s,Pu,ue)},SB=(s,F,Z,ue)=>{Ey(s,vh,ue)},Xb=(s,F,Z,ue)=>{const we=j3(s);ce(we,qe=>so(ue.element,qe.element)).each(fv)},j3=(s,F)=>s.components(),kB=(s,F,Z,ue,we)=>{const Be=j3(s);return I.from(Be[ue]).map(qe=>(we.fold(()=>fv(qe),ft=>{(F.reuseDom?$E:k2)(s,qe,ue,ft)}),qe))};var TB=Object.freeze({__proto__:null,append:xW,prepend:SB,remove:Xb,replaceAt:kB,replaceBy:(s,F,Z,ue,we)=>{const Be=j3(s);return de(Be,ue).bind(qe=>kB(s,F,Z,qe,we))},set:bW,contents:j3});const da=lf({fields:[hs("reuseDom",!0)],name:"replacing",apis:TB}),VE=(s,F)=>{const Z=pl(F);return lf({fields:[Sn("enabled")],name:s,active:{events:x(Z)}})},Ca=(s,F)=>{const Z=VE(s,F);return{key:s,value:{config:{},me:Z,configAsRaw:x({}),initialConfig:{},state:Gf}}},CB=(s,F)=>{F.ignore||(xd(s.element),F.onFocus(s))};var O6=Object.freeze({__proto__:null,focus:CB,blur:(s,F)=>{F.ignore||a0(s.element)},isFocused:s=>dy(s.element)}),MB=Object.freeze({__proto__:null,exhibit:(s,F)=>{const Z=F.ignore?{}:{attributes:{tabindex:"-1"}};return Cf(Z)},events:s=>pl([fo(km(),(F,Z)=>{CB(F,s),Z.stop()})].concat(s.stopMousedown?[fo(Oh(),(F,Z)=>{Z.event.prevent()})]:[]))}),wW=[Ra("onFocus"),mr("stopMousedown",!1),mr("ignore",!1)];const oa=lf({fields:wW,name:"focusing",active:MB,apis:O6}),EB=s=>({init:()=>{const Z=xi(s);return{get:()=>Z.get(),set:ft=>Z.set(ft),clear:()=>Z.set(s),readState:()=>Z.get()}}}),PB=(s,F,Z)=>{const ue=F.aria;ue.update(s,ue,Z.get())},RB=(s,F,Z)=>{F.toggleClass.each(ue=>{Z.get()?Sl(s.element,ue):fc(s.element,ue)})},x5=(s,F,Z,ue)=>{const we=Z.get();Z.set(ue),RB(s,F,Z),PB(s,F,Z),we!==ue&&F.onToggled(s,ue)},S6=(s,F,Z)=>{x5(s,F,Z,!Z.get())},OW=(s,F,Z)=>{x5(s,F,Z,!0)},SW=(s,F,Z)=>{x5(s,F,Z,!1)},kW=(s,F,Z)=>Z.get(),LB=(s,F,Z)=>{x5(s,F,Z,F.selected)};var IB=Object.freeze({__proto__:null,onLoad:LB,toggle:S6,isOn:kW,on:OW,off:SW,set:x5}),DB=Object.freeze({__proto__:null,exhibit:()=>Cf({}),events:(s,F)=>{const Z=M1(s,F,S6),ue=E1(s,F,LB);return pl(ve([s.toggleOnExecute?[Z]:[],[ue]]))}});const _5=(s,F,Z)=>{fr(s.element,"aria-pressed",Z),F.syncWithExpanded&&k6(s,F,Z)},TW=(s,F,Z)=>{fr(s.element,"aria-selected",Z)},w5=(s,F,Z)=>{fr(s.element,"aria-checked",Z)},k6=(s,F,Z)=>{fr(s.element,"aria-expanded",Z)};var BB=[mr("selected",!1),Hr("toggleClass"),mr("toggleOnExecute",!0),Ra("onToggled"),bs("aria",{mode:"none"},xn("mode",{pressed:[mr("syncWithExpanded",!1),Il("update",_5)],checked:[Il("update",w5)],expanded:[Il("update",k6)],selected:[Il("update",TW)],none:[Il("update",v)]}))];const za=lf({fields:BB,name:"toggling",active:DB,apis:IB,state:EB(!1)}),zB=()=>{const s=(F,Z)=>{Z.stop(),Fp(F)};return[fo(R0(),s),fo(up(),s),Am(_m()),Am(Oh())]},T6=s=>{const F=Z=>$p((ue,we)=>{Z(ue),we.stop()});return pl(ve([s.map(F).toArray(),zB()]))},jE="alloy.item-hover",FB="alloy.item-focus",QE="alloy.item-toggled",NB=s=>{(_d(s.element).isNone()||oa.isFocused(s))&&(oa.isFocused(s)||oa.focus(s),Ri(s,jE,{item:s}))},$B=s=>{Ri(s,FB,{item:s})},VB=(s,F)=>{Ri(s,QE,{item:s,state:F})},O5=x(jE),HE=x(FB),ZE=x(QE),CW=s=>s.role.fold(()=>s.toggling.map(F=>F.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),R),AW=(s,F)=>({aria:{mode:F?"selected":"checked"},...Ne(s,(Z,ue)=>ue!=="exclusive"),onToggled:(Z,ue)=>{u(s.onToggled)&&s.onToggled(Z,ue),VB(Z,ue)}}),MW=s=>({dom:s.dom,domModification:{...s.domModification,attributes:{role:CW(s),...s.domModification.attributes,"aria-haspopup":s.hasSubmenu,...s.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:Vm.augment(s.itemBehaviours,[s.toggling.fold(za.revoke,F=>za.config(AW(F,s.role.exists(Z=>Z==="option")))),oa.config({ignore:s.ignoreFocus,stopMousedown:s.ignoreFocus,onFocus:F=>{$B(F)}}),Li.config({mode:"execution"}),hi.config({store:{mode:"memory",initialValue:s.data}}),Ca("item-type-events",[...zB(),fo(Om(),NB),fo(db(),oa.focus)])]),components:s.components,eventOrder:s.eventOrder}),EW=[Sn("data"),Sn("components"),Sn("dom"),mr("hasSubmenu",!1),Hr("toggling"),Hr("role"),Vm.field("itemBehaviours",[za,oa,Li,hi]),mr("ignoreFocus",!1),mr("domModification",{}),Il("builder",MW),mr("eventOrder",{})],UB=s=>({dom:s.dom,components:s.components,events:pl([I_(db())])}),jB=[Sn("dom"),Sn("components"),Il("builder",UB)],qE=x("item-widget"),WE=x([kd({name:"widget",overrides:s=>({behaviours:Bo([hi.config({store:{mode:"manual",getValue:F=>s.data,setValue:v}})])})})]),PW=s=>{const F=I3(qE(),s,WE()),Z=s5(qE(),s,F.internals()),ue=Be=>Fo(Be,s,"widget").map(qe=>(Li.focusIn(qe),qe)),we=(Be,qe)=>w2(qe.event.target)?I.none():(()=>(s.autofocus&&qe.setSource(Be.element),I.none()))();return{dom:s.dom,components:Z,domModification:s.domModification,events:pl([$p((Be,qe)=>{ue(Be).each(ft=>{qe.stop()})}),fo(Om(),NB),fo(db(),(Be,qe)=>{s.autofocus?ue(Be):oa.focus(Be)})]),behaviours:Vm.augment(s.widgetBehaviours,[hi.config({store:{mode:"memory",initialValue:s.data}}),oa.config({ignore:s.ignoreFocus,onFocus:Be=>{$B(Be)}}),Li.config({mode:"special",focusIn:s.autofocus?Be=>{ue(Be)}:Nl(),onLeft:we,onRight:we,onEscape:(Be,qe)=>!oa.isFocused(Be)&&!s.autofocus?(oa.focus(Be),I.some(!0)):(s.autofocus&&qe.setSource(Be.element),I.none())})])}},RW=[Sn("uid"),Sn("data"),Sn("components"),Sn("dom"),mr("autofocus",!1),mr("ignoreFocus",!1),Vm.field("widgetBehaviours",[hi,oa,Li]),mr("domModification",{}),Ow(WE()),Il("builder",PW)],LW=xn("type",{widget:RW,item:EW,separator:jB}),IW=(s,F)=>({mode:"flatgrid",selector:"."+s.markers.item,initSize:{numColumns:F.initSize.numColumns,numRows:F.initSize.numRows},focusManager:s.focusManager}),QB=(s,F)=>({mode:"matrix",selectors:{row:F.rowSelector,cell:"."+s.markers.item},previousSelector:F.previousSelector,focusManager:s.focusManager}),DW=(s,F)=>({mode:"menu",selector:"."+s.markers.item,moveOnTab:F.moveOnTab,focusManager:s.focusManager}),BW=x([R3({factory:{sketch:s=>{const F=cn("menu.spec item",LW,s);return F.builder(F)}},name:"items",unit:"item",defaults:(s,F)=>ht(F,"uid")?F:{...F,uid:j0("item")},overrides:(s,F)=>({type:F.type,ignoreFocus:s.fakeFocus,domModification:{classes:[s.markers.item]}})})]),zW=x([Io("role"),Sn("value"),Sn("items"),Sn("dom"),Sn("components"),mr("eventOrder",{}),Pf("menuBehaviours",[ri,hi,as,Li]),bs("movement",{mode:"menu",moveOnTab:!0},xn("mode",{grid:[U1(),Il("config",IW)],matrix:[Il("config",QB),Sn("rowSelector"),mr("previousSelector",I.none)],menu:[mr("moveOnTab",!0),Il("config",DW)]})),W_(),mr("fakeFocus",!1),mr("focusManager",z3()),Ra("onHighlight"),Ra("onDehighlight"),mr("showMenuRole",!0)]),HB=x("alloy.menu-focus"),FW=(s,F)=>{const Z=$d(s.element,'[role="menuitemradio"][aria-checked="true"]');q(Z,ue=>{so(ue,F.element)||s.getSystem().getByDom(ue).each(we=>{za.off(we)})})},Ew=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,markers:s.markers,behaviours:Rf(s.menuBehaviours,[ri.config({highlightClass:s.markers.selectedItem,itemClass:s.markers.item,onHighlight:s.onHighlight,onDehighlight:s.onDehighlight}),hi.config({store:{mode:"memory",initialValue:s.value}}),as.config({find:I.some}),Li.config(s.movement.config(s,s.movement))]),events:pl([fo(HE(),(we,Be)=>{const qe=Be.event;we.getSystem().getByDom(qe.target).each(ft=>{ri.highlight(we,ft),Be.stop(),Ri(we,HB(),{menu:we,item:ft})})}),fo(O5(),(we,Be)=>{const qe=Be.event.item;ri.highlight(we,qe)}),fo(ZE(),(we,Be)=>{const{item:qe,state:ft}=Be.event;ft&&ao(qe.element,"role")==="menuitemradio"&&FW(we,qe)})]),components:F,eventOrder:s.eventOrder,...s.showMenuRole?{domModification:{attributes:{role:s.role.getOr("menu")}}}:{}}),Pw=ch({name:"Menu",configFields:zW(),partFields:BW(),factory:Ew}),NW=s=>Ze(s,(F,Z)=>({k:F,v:Z})),T2=(s,F,Z,ue)=>Ge(Z,ue).bind(we=>Ge(s,we).bind(Be=>{const qe=T2(s,F,Z,Be);return I.some([Be].concat(qe))})).getOr([]),ZB=(s,F)=>{const Z={};We(s,(qe,ft)=>{q(qe,gt=>{Z[gt]=ft})});const ue=F,we=NW(F),Be=Ue(we,(qe,ft)=>[ft].concat(T2(Z,ue,we,ft)));return Ue(Z,qe=>Ge(Be,qe).getOr([qe]))},$W=()=>{const s=xi({}),F=xi({}),Z=xi({}),ue=os(),we=xi({}),Be=()=>{s.set({}),F.set({}),Z.set({}),ue.clear()},qe=()=>ue.get().isNone(),ft=(Xr,No)=>{F.set({...F.get(),[Xr]:{type:"prepared",menu:No}})},gt=(Xr,No,Jo,ho)=>{ue.set(Xr),s.set(Jo),F.set(No),we.set(ho);const Ci=ZB(ho,Jo);Z.set(Ci)},At=Xr=>nt(s.get(),(No,Jo)=>No===Xr),$t=(Xr,No,Jo)=>Xn(Xr).bind(ho=>At(Xr).bind(Ci=>No(Ci).map(mi=>({triggeredMenu:ho,triggeringItem:mi,triggeringPath:Jo})))),on=(Xr,No)=>{const Jo=me(or(Xr).toArray(),ho=>Xn(ho).isSome());return Ge(Z.get(),Xr).bind(ho=>{const Ci=Se(Jo.concat(ho)),mi=ye(Ci,(qi,Fi)=>$t(qi,No,Ci.slice(0,Fi+1)).fold(()=>wt(ue.get(),qi)?[]:[I.none()],Os=>[I.some(Os)]));return qt(mi)})},yn=Xr=>Ge(s.get(),Xr).map(No=>{const Jo=Ge(Z.get(),Xr).getOr([]);return[No].concat(Jo)}),wn=Xr=>Ge(Z.get(),Xr).bind(No=>No.length>1?I.some(No.slice(1)):I.none()),Mn=Xr=>Ge(Z.get(),Xr),Xn=Xr=>Br(Xr).bind(Gb),Br=Xr=>Ge(F.get(),Xr),or=Xr=>Ge(s.get(),Xr);return{setMenuBuilt:ft,setContents:gt,expand:yn,refresh:Mn,collapse:wn,lookupMenu:Br,lookupItem:or,otherMenus:Xr=>{const No=we.get();return Te(ke(No),Xr)},getPrimary:()=>ue.get().bind(Xn),getMenus:()=>F.get(),clear:Be,isClear:qe,getTriggeringPath:on}},Gb=s=>s.type==="prepared"?I.some(s.menu):I.none(),qB={init:$W,extractPreparedMenu:Gb},WB=fi("tiered-menu-item-highlight"),Cg=fi("tiered-menu-item-dehighlight");var Xh;(function(s){s[s.HighlightMenuAndItem=0]="HighlightMenuAndItem",s[s.HighlightJustMenu=1]="HighlightJustMenu",s[s.HighlightNone=2]="HighlightNone"})(Xh||(Xh={}));const YB=(s,F)=>{const Z=os(),ue=(Ho,wi,_a)=>Ue(_a,(Ki,ji)=>{const va=()=>Pw.sketch({...Ki,value:ji,markers:s.markers,fakeFocus:s.fakeFocus,onHighlight:(Cl,Ns)=>{Ri(Cl,WB,{menuComp:Cl,itemComp:Ns})},onDehighlight:(Cl,Ns)=>{Ri(Cl,Cg,{menuComp:Cl,itemComp:Ns})},focusManager:s.fakeFocus?v6():z3()});return ji===wi?{type:"prepared",menu:Ho.getSystem().build(va())}:{type:"notbuilt",nbMenu:va}}),we=qB.init(),Be=Ho=>{const wi=ue(Ho,s.data.primary,s.data.menus),_a=gt();return we.setContents(s.data.primary,wi,s.data.expansions,_a),we.getPrimary()},qe=Ho=>hi.getValue(Ho).value,ft=(Ho,wi,_a)=>Oe(wi,Ki=>{if(!Ki.getSystem().isConnected())return I.none();const ji=ri.getCandidates(Ki);return ce(ji,va=>qe(va)===_a)}),gt=Ho=>Ue(s.data.menus,(wi,_a)=>ye(wi.items,Ki=>Ki.type==="separator"?[]:[Ki.data.value])),At=ri.highlight,$t=(Ho,wi)=>{At(Ho,wi),ri.getHighlighted(wi).orThunk(()=>ri.getFirst(wi)).each(_a=>{s.fakeFocus?ri.highlight(wi,_a):qv(Ho,_a.element,db())})},on=(Ho,wi)=>It(oe(wi,_a=>Ho.lookupMenu(_a).bind(Ki=>Ki.type==="prepared"?I.some(Ki.menu):I.none()))),yn=(Ho,wi,_a)=>{const Ki=on(wi,wi.otherMenus(_a));q(Ki,ji=>{th(ji.element,[s.markers.backgroundMenu]),s.stayInDom||da.remove(Ho,ji)})},wn=Ho=>Z.get().getOrThunk(()=>{const wi={},_a=$d(Ho.element,`.${s.markers.item}`),Ki=me(_a,ji=>ao(ji,"aria-haspopup")==="true");return q(Ki,ji=>{Ho.getSystem().getByDom(ji).each(va=>{const Cl=qe(va);wi[Cl]=va})}),Z.set(wi),wi}),Mn=(Ho,wi)=>{const _a=wn(Ho);We(_a,(Ki,ji)=>{const va=X(wi,ji);fr(Ki.element,"aria-expanded",va)})},Xn=(Ho,wi,_a)=>I.from(_a[0]).bind(Ki=>wi.lookupMenu(Ki).bind(ji=>{if(ji.type==="notbuilt")return I.none();{const va=ji.menu,Cl=on(wi,_a.slice(1));return q(Cl,Ns=>{Sl(Ns.element,s.markers.backgroundMenu)}),Er(va.element)||da.append(Ho,na(va)),th(va.element,[s.markers.backgroundMenu]),$t(Ho,va),yn(Ho,wi,_a),I.some(va)}}));let Br;(function(Ho){Ho[Ho.HighlightSubmenu=0]="HighlightSubmenu",Ho[Ho.HighlightParent=1]="HighlightParent"})(Br||(Br={}));const or=(Ho,wi,_a)=>{if(_a.type==="notbuilt"){const Ki=Ho.getSystem().build(_a.nbMenu());return we.setMenuBuilt(wi,Ki),Ki}else return _a.menu},Mr=(Ho,wi,_a=Br.HighlightSubmenu)=>{if(wi.hasConfigured(ta)&&ta.isDisabled(wi))return I.some(wi);{const Ki=qe(wi);return we.expand(Ki).bind(ji=>(Mn(Ho,ji),I.from(ji[0]).bind(va=>we.lookupMenu(va).bind(Cl=>{const Ns=or(Ho,va,Cl);return Er(Ns.element)||da.append(Ho,na(Ns)),s.onOpenSubmenu(Ho,wi,Ns,Se(ji)),_a===Br.HighlightSubmenu?(ri.highlightFirst(Ns),Xn(Ho,we,ji)):(ri.dehighlightAll(Ns),I.some(wi))}))))}},kr=(Ho,wi)=>{const _a=qe(wi);return we.collapse(_a).bind(Ki=>(Mn(Ho,Ki),Xn(Ho,we,Ki).map(ji=>(s.onCollapseMenu(Ho,wi,ji),ji))))},yo=(Ho,wi)=>{const _a=qe(wi);return we.refresh(_a).bind(Ki=>(Mn(Ho,Ki),Xn(Ho,we,Ki)))},Xr=(Ho,wi)=>w2(wi.element)?I.none():Mr(Ho,wi,Br.HighlightSubmenu),No=(Ho,wi)=>w2(wi.element)?I.none():kr(Ho,wi),Jo=(Ho,wi)=>kr(Ho,wi).orThunk(()=>s.onEscape(Ho,wi).map(()=>Ho)),ho=Ho=>(wi,_a)=>Fs(_a.getSource(),`.${s.markers.item}`).bind(Ki=>wi.getSystem().getByDom(Ki).toOptional().bind(ji=>Ho(wi,ji).map(k))),Ci=pl([fo(HB(),(Ho,wi)=>{const _a=wi.event.item;we.lookupItem(qe(_a)).each(()=>{const Ki=wi.event.menu;ri.highlight(Ho,Ki);const ji=qe(wi.event.item);we.refresh(ji).each(va=>yn(Ho,we,va))})}),$p((Ho,wi)=>{const _a=wi.event.target;Ho.getSystem().getByDom(_a).each(Ki=>{qe(Ki).indexOf("collapse-item")===0&&kr(Ho,Ki),Mr(Ho,Ki,Br.HighlightSubmenu).fold(()=>{s.onExecute(Ho,Ki)},v)})}),Ll((Ho,wi)=>{Be(Ho).each(_a=>{da.append(Ho,na(_a)),s.onOpenMenu(Ho,_a),s.highlightOnOpen===Xh.HighlightMenuAndItem?$t(Ho,_a):s.highlightOnOpen===Xh.HighlightJustMenu&&At(Ho,_a)})}),fo(WB,(Ho,wi)=>{s.onHighlightItem(Ho,wi.event.menuComp,wi.event.itemComp)}),fo(Cg,(Ho,wi)=>{s.onDehighlightItem(Ho,wi.event.menuComp,wi.event.itemComp)}),...s.navigateOnHover?[fo(O5(),(Ho,wi)=>{const _a=wi.event.item;yo(Ho,_a),Mr(Ho,_a,Br.HighlightParent),s.onHover(Ho,_a)})]:[]]),mi=Ho=>ri.getHighlighted(Ho).bind(ri.getHighlighted),qi=Ho=>{mi(Ho).each(wi=>{kr(Ho,wi)})},Fi=Ho=>{we.getPrimary().each(wi=>{$t(Ho,wi)})},Os=Ho=>I.from(Ho.components()[0]).filter(wi=>ao(wi.element,"role")==="menu"),Ha={collapseMenu:qi,highlightPrimary:Fi,repositionMenus:Ho=>{we.getPrimary().bind(_a=>mi(Ho).bind(Ki=>{const ji=qe(Ki),va=ot(we.getMenus()),Cl=It(oe(va,qB.extractPreparedMenu));return we.getTriggeringPath(ji,Ns=>ft(Ho,Cl,Ns))}).map(Ki=>({primary:_a,triggeringPath:Ki}))).fold(()=>{Os(Ho).each(_a=>{s.onRepositionMenu(Ho,_a,[])})},({primary:_a,triggeringPath:Ki})=>{s.onRepositionMenu(Ho,_a,Ki)})}};return{uid:s.uid,dom:s.dom,markers:s.markers,behaviours:Rf(s.tmenuBehaviours,[Li.config({mode:"special",onRight:ho(Xr),onLeft:ho(No),onEscape:ho(Jo),focusIn:(Ho,wi)=>{we.getPrimary().each(_a=>{qv(Ho,_a.element,db())})}}),ri.config({highlightClass:s.markers.selectedMenu,itemClass:s.markers.menu}),as.config({find:Ho=>ri.getHighlighted(Ho)}),da.config({})]),eventOrder:s.eventOrder,apis:Ha,events:Ci}},XB=x("collapse-item"),VW=(s,F,Z)=>({primary:s,menus:F,expansions:Z}),C6=(s,F)=>({primary:s,menus:wh(s,F),expansions:{}}),GB=s=>({value:fi(XB()),meta:{text:s}}),Rw=Yh({name:"TieredMenu",configFields:[i0("onExecute"),i0("onEscape"),Zh("onOpenMenu"),Zh("onOpenSubmenu"),Ra("onRepositionMenu"),Ra("onCollapseMenu"),mr("highlightOnOpen",Xh.HighlightMenuAndItem),zo("data",[Sn("primary"),Sn("menus"),Sn("expansions")]),mr("fakeFocus",!1),Ra("onHighlightItem"),Ra("onDehighlightItem"),Ra("onHover"),U0(),Sn("dom"),mr("navigateOnHover",!0),mr("stayInDom",!1),Pf("tmenuBehaviours",[Li,ri,as,da]),mr("eventOrder",{})],apis:{collapseMenu:(s,F)=>{s.collapseMenu(F)},highlightPrimary:(s,F)=>{s.highlightPrimary(F)},repositionMenus:(s,F)=>{s.repositionMenus(F)}},factory:YB,extraApis:{tieredData:VW,singleData:C6,collapseItem:GB}}),UW=(s,F,Z,ue,we)=>{const Be=()=>s.lazySink(F),qe=ue.type==="horizontal"?{layouts:{onLtr:()=>K1(),onRtl:()=>Zp()}}:{},ft=At=>At.length===2,gt=At=>ft(At)?qe:{};return Rw.sketch({dom:{tag:"div"},data:ue.data,markers:ue.menu.markers,highlightOnOpen:ue.menu.highlightOnOpen,fakeFocus:ue.menu.fakeFocus,onEscape:()=>(ps.close(F),s.onEscape.map(At=>At(F)),I.some(!0)),onExecute:()=>I.some(!0),onOpenMenu:(At,$t)=>{ed.positionWithinBounds(Be().getOrDie(),$t,Z,we())},onOpenSubmenu:(At,$t,on,yn)=>{const wn=Be().getOrDie();ed.position(wn,on,{anchor:{type:"submenu",item:$t,...gt(yn)}})},onRepositionMenu:(At,$t,on)=>{const yn=Be().getOrDie();ed.positionWithinBounds(yn,$t,Z,we()),q(on,wn=>{const Mn=gt(wn.triggeringPath);ed.position(yn,wn.triggeredMenu,{anchor:{type:"submenu",item:wn.triggeringItem,...Mn}})})}})},A6=(s,F)=>{const Z=(yn,wn)=>s.getRelated(yn).exists(Xn=>Vc(Xn,wn)),ue=(yn,wn)=>{ps.setContent(yn,wn)},we=(yn,wn,Mn)=>{const Xn=I.none;Be(yn,wn,Mn,Xn)},Be=(yn,wn,Mn,Xn)=>{const Br=s.lazySink(yn).getOrDie();ps.openWhileCloaked(yn,wn,()=>ed.positionWithinBounds(Br,yn,Mn,Xn())),hi.setValue(yn,I.some({mode:"position",config:Mn,getBounds:Xn}))},qe=(yn,wn,Mn)=>{ft(yn,wn,Mn,I.none)},ft=(yn,wn,Mn,Xn)=>{const Br=UW(s,yn,wn,Mn,Xn);ps.open(yn,Br),hi.setValue(yn,I.some({mode:"menu",menu:Br}))},gt=yn=>{ps.isOpen(yn)&&(hi.setValue(yn,I.none()),ps.close(yn))},At=yn=>ps.getState(yn),$t=yn=>{ps.isOpen(yn)&&hi.getValue(yn).each(wn=>{switch(wn.mode){case"menu":ps.getState(yn).each(Rw.repositionMenus);break;case"position":const Mn=s.lazySink(yn).getOrDie();ed.positionWithinBounds(Mn,yn,wn.config,wn.getBounds());break}})},on={setContent:ue,showAt:we,showWithinBounds:Be,showMenuAt:qe,showMenuWithinBounds:ft,hide:gt,getContent:At,reposition:$t,isOpen:ps.isOpen};return{uid:s.uid,dom:s.dom,behaviours:Rf(s.inlineBehaviours,[ps.config({isPartOf:(yn,wn,Mn)=>Vc(wn,Mn)||Z(yn,Mn),getAttachPoint:yn=>s.lazySink(yn).getOrDie(),onOpen:yn=>{s.onShow(yn)},onClose:yn=>{s.onHide(yn)}}),hi.config({store:{mode:"memory",initialValue:I.none()}}),Wu.config({channels:{...dv({isExtraPart:F.isExtraPart,...s.fireDismissalEventInstead.map(yn=>({fireEventInstead:{event:yn.event}})).getOr({})}),..._3({...s.fireRepositionEventInstead.map(yn=>({fireEventInstead:{event:yn.event}})).getOr({}),doReposition:$t})}})]),eventOrder:s.eventOrder,apis:on}},hc=Yh({name:"InlineView",configFields:[Sn("lazySink"),Ra("onShow"),Ra("onHide"),Ui("onEscape"),Pf("inlineBehaviours",[ps,hi,Wu]),Pi("fireDismissalEventInstead",[mr("event",I0())]),Pi("fireRepositionEventInstead",[mr("event",E_())]),mr("getRelated",I.none),mr("isExtraPart",D),mr("eventOrder",I.none)],factory:A6,apis:{showAt:(s,F,Z,ue)=>{s.showAt(F,Z,ue)},showWithinBounds:(s,F,Z,ue,we)=>{s.showWithinBounds(F,Z,ue,we)},showMenuAt:(s,F,Z,ue)=>{s.showMenuAt(F,Z,ue)},showMenuWithinBounds:(s,F,Z,ue,we)=>{s.showMenuWithinBounds(F,Z,ue,we)},hide:(s,F)=>{s.hide(F)},isOpen:(s,F)=>s.isOpen(F),getContent:(s,F)=>s.getContent(F),setContent:(s,F,Z)=>{s.setContent(F,Z)},reposition:(s,F)=>{s.reposition(F)}}});var S5=tinymce.util.Tools.resolve("tinymce.util.Delay"),Lw=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),KB=tinymce.util.Tools.resolve("tinymce.EditorManager"),Q3=tinymce.util.Tools.resolve("tinymce.Env"),Hm;(function(s){s.default="wrap",s.floating="floating",s.sliding="sliding",s.scrolling="scrolling"})(Hm||(Hm={}));var H3;(function(s){s.auto="auto",s.top="top",s.bottom="bottom"})(H3||(H3={}));const Ul=s=>F=>F.options.get(s),k5=s=>F=>I.from(s(F)),JB=s=>{const F=Q3.deviceType.isPhone(),Z=Q3.deviceType.isTablet()||F,ue=s.options.register,we=qe=>n(qe)||qe===!1,Be=qe=>n(qe)||h(qe);ue("skin",{processor:qe=>n(qe)||qe===!1,default:"oxide"}),ue("skin_url",{processor:"string"}),ue("height",{processor:Be,default:Math.max(s.getElement().offsetHeight,400)}),ue("width",{processor:Be,default:Lw.DOM.getStyle(s.getElement(),"width")}),ue("min_height",{processor:"number",default:100}),ue("min_width",{processor:"number"}),ue("max_height",{processor:"number"}),ue("max_width",{processor:"number"}),ue("style_formats",{processor:"object[]"}),ue("style_formats_merge",{processor:"boolean",default:!1}),ue("style_formats_autohide",{processor:"boolean",default:!1}),ue("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),ue("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),ue("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),ue("font_size_input_default_unit",{processor:"string",default:"pt"}),ue("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),ue("content_langs",{processor:"object[]"}),ue("removed_menuitems",{processor:"string",default:""}),ue("menubar",{processor:qe=>n(qe)||w(qe),default:!F}),ue("menu",{processor:"object",default:{}}),ue("toolbar",{processor:qe=>w(qe)||n(qe)||i(qe)?{value:qe,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),W(9,qe=>{ue("toolbar"+(qe+1),{processor:"string"})}),ue("toolbar_mode",{processor:"string",default:Z?"scrolling":"floating"}),ue("toolbar_groups",{processor:"object",default:{}}),ue("toolbar_location",{processor:"string",default:H3.auto}),ue("toolbar_persist",{processor:"boolean",default:!1}),ue("toolbar_sticky",{processor:"boolean",default:s.inline}),ue("toolbar_sticky_offset",{processor:"number",default:0}),ue("fixed_toolbar_container",{processor:"string",default:""}),ue("fixed_toolbar_container_target",{processor:"object"}),ue("ui_mode",{processor:"string",default:"combined"}),ue("file_picker_callback",{processor:"function"}),ue("file_picker_validator_handler",{processor:"function"}),ue("file_picker_types",{processor:"string"}),ue("typeahead_urls",{processor:"boolean",default:!0}),ue("anchor_top",{processor:we,default:"#top"}),ue("anchor_bottom",{processor:we,default:"#bottom"}),ue("draggable_modal",{processor:"boolean",default:!1}),ue("statusbar",{processor:"boolean",default:!0}),ue("elementpath",{processor:"boolean",default:!0}),ue("branding",{processor:"boolean",default:!0}),ue("promotion",{processor:"boolean",default:!0}),ue("resize",{processor:qe=>qe==="both"||w(qe),default:!Q3.deviceType.isTouch()}),ue("sidebar_show",{processor:"string"}),ue("help_accessibility",{processor:"boolean",default:s.hasPlugin("help")}),ue("default_font_stack",{processor:"string[]",default:[]})},M6=Ul("readonly"),YE=Ul("height"),Iw=Ul("width"),Z3=k5(Ul("min_width")),E6=k5(Ul("min_height")),T5=k5(Ul("max_width")),XE=k5(Ul("max_height")),ez=k5(Ul("style_formats")),tz=Ul("style_formats_merge"),nz=Ul("style_formats_autohide"),P6=Ul("content_langs"),GE=Ul("removed_menuitems"),Dw=Ul("toolbar_mode"),R6=Ul("toolbar_groups"),KE=Ul("toolbar_location"),rz=Ul("fixed_toolbar_container"),jW=Ul("fixed_toolbar_container_target"),oz=Ul("toolbar_persist"),iz=Ul("toolbar_sticky_offset"),JE=Ul("menubar"),L6=Ul("toolbar"),az=Ul("file_picker_callback"),I6=Ul("file_picker_validator_handler"),e7=Ul("font_size_input_default_unit"),t7=Ul("file_picker_types"),sz=Ul("typeahead_urls"),D6=Ul("anchor_top"),lz=Ul("anchor_bottom"),cz=Ul("draggable_modal"),uz=Ul("statusbar"),fz=Ul("elementpath"),n7=Ul("branding"),r7=Ul("resize"),B6=Ul("paste_as_text"),dz=Ul("sidebar_show"),C5=Ul("promotion"),hz=Ul("help_accessibility"),pz=Ul("default_font_stack"),o7=s=>s.options.get("skin")===!1,z6=s=>s.options.get("menubar")!==!1,i7=s=>{const F=s.options.get("skin_url");if(o7(s))return F;if(F)return s.documentBaseURI.toAbsolute(F);{const Z=s.options.get("skin");return KB.baseURL+"/skins/ui/"+Z}},F6=s=>I.from(s.options.get("skin_url")),a7=s=>s.options.get("line_height_formats").split(" "),N6=s=>{const F=L6(s),Z=n(F),ue=i(F)&&F.length>0;return!Bw(s)&&(ue||Z||F===!0)},s7=s=>{const F=W(9,ue=>s.options.get("toolbar"+(ue+1))),Z=me(F,n);return _t(Z.length>0,Z)},Bw=s=>s7(s).fold(()=>{const F=L6(s);return m(F,n)&&F.length>0},k),Kb=s=>KE(s)===H3.bottom,mz=s=>{var F;if(!s.inline)return I.none();const Z=(F=rz(s))!==null&&F!==void 0?F:"";if(Z.length>0)return aa(Vr(),Z);const ue=jW(s);return a(ue)?I.some(Pt.fromDom(ue)):I.none()},q3=s=>s.inline&&mz(s).isSome(),A5=s=>mz(s).getOrThunk(()=>nr(vr(Pt.fromDom(s.getElement())))),$6=s=>s.inline&&!z6(s)&&!N6(s)&&!Bw(s),W3=s=>(s.options.get("toolbar_sticky")||s.inline)&&!q3(s)&&!$6(s),C2=s=>!q3(s)&&s.options.get("ui_mode")==="split",l7=s=>{const F=s.options.get("menu");return Ue(F,Z=>({...Z,items:Z.items}))};var QW=Object.freeze({__proto__:null,get ToolbarMode(){return Hm},get ToolbarLocation(){return H3},register:JB,getSkinUrl:i7,getSkinUrlOption:F6,isReadOnly:M6,isSkinDisabled:o7,getHeightOption:YE,getWidthOption:Iw,getMinWidthOption:Z3,getMinHeightOption:E6,getMaxWidthOption:T5,getMaxHeightOption:XE,getUserStyleFormats:ez,shouldMergeStyleFormats:tz,shouldAutoHideStyleFormats:nz,getLineHeightFormats:a7,getContentLanguages:P6,getRemovedMenuItems:GE,isMenubarEnabled:z6,isMultipleToolbars:Bw,isToolbarEnabled:N6,isToolbarPersist:oz,getMultipleToolbarsOption:s7,getUiContainer:A5,useFixedContainer:q3,isSplitUiMode:C2,getToolbarMode:Dw,isDraggableModal:cz,isDistractionFree:$6,isStickyToolbar:W3,getStickyToolbarOffset:iz,getToolbarLocation:KE,isToolbarLocationBottom:Kb,getToolbarGroups:R6,getMenus:l7,getMenubar:JE,getToolbar:L6,getFilePickerCallback:az,getFilePickerTypes:t7,useTypeaheadUrls:sz,getAnchorTop:D6,getAnchorBottom:lz,getFilePickerValidatorHandler:I6,getFontSizeInputDefaultUnit:e7,useStatusBar:uz,useElementPath:fz,promotionEnabled:C5,useBranding:n7,getResize:r7,getPasteAsText:B6,getSidebarShow:dz,useHelpAccessibility:hz,getDefaultFontStack:pz});const gz=["visible","hidden","clip"],c7=s=>Rt(s).length>0&&!X(gz,s),V6=s=>{if(Wn(s)){const F=Aa(s,"overflow-x"),Z=Aa(s,"overflow-y");return c7(F)||c7(Z)}else return!1},HW=s=>{const F=d2(s,V6),Z=F.length===0?Hn(s).map(tr).map(ue=>d2(ue,V6)).getOr([]):F;return He(Z).map(ue=>({element:ue,others:Z.slice(1)}))},Jb=(s,F)=>C2(s)?HW(F):I.none(),zw=s=>{const F=[...oe(s.others,Ya),wl()];return Wc(Ya(s.element),F)},Vd=Yh({name:"Button",factory:s=>{const F=T6(s.action),Z=s.dom.tag,ue=Be=>Ge(s.dom,"attributes").bind(qe=>Ge(qe,Be)),we=()=>{if(Z==="button"){const Be=ue("type").getOr("button"),qe=ue("role").map(ft=>({role:ft})).getOr({});return{type:Be,...qe}}else return{role:s.role.getOr(ue("role").getOr("button"))}};return{uid:s.uid,dom:s.dom,components:s.components,events:F,behaviours:Vm.augment(s.buttonBehaviours,[oa.config({}),Li.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:we()},eventOrder:s.eventOrder}},configFields:[mr("uid",void 0),Sn("dom"),mr("components",[]),Vm.field("buttonBehaviours",[oa,Li]),Hr("action"),Hr("role"),mr("eventOrder",{})]}),ZW=s=>{const F=s.dom.attributes!==void 0?s.dom.attributes:[];return se(F,(Z,ue)=>ue.name==="class"?Z:{...Z,[ue.name]:ue.value},{})},u7=s=>Array.prototype.slice.call(s.dom.classList,0),gv=s=>{const F=Pt.fromHtml(s),Z=bo(F),ue=ZW(F),we=u7(F),Be=Z.length===0?{}:{innerHtml:nh(F)};return{tag:ar(F),classes:we,attributes:ue,...Be}},qs=s=>{const F=fE(s)&&pt(s,"uid")?s.uid:j0("memento");return{get:Be=>Be.getSystem().getByUid(F).getOrDie(),getOpt:Be=>Be.getSystem().getByUid(F).toOptional(),asSpec:()=>({...s,uid:F})}};var qW=Object.freeze({__proto__:null,exhibit:(s,F)=>Cf({attributes:pd([{key:F.tabAttr,value:"true"}])})}),WW=[mr("tabAttr","data-alloy-tabstop")];const Wl=lf({fields:WW,name:"tabstopping",active:qW}),yz=fi("tooltip.exclusive"),M5=fi("tooltip.show"),E5=fi("tooltip.hide"),j6=fi("tooltip.immediateHide"),Q6=fi("tooltip.immediateShow"),bz=(s,F,Z)=>{s.getSystem().broadcastOn([yz],{})};var YW=Object.freeze({__proto__:null,hideAllExclusive:bz,setComponents:(s,F,Z,ue)=>{Z.getTooltip().each(we=>{we.getSystem().isConnected()&&da.set(we,ue)})}}),XW=Object.freeze({__proto__:null,events:(s,F)=>{const Z=qe=>{F.getTooltip().each(ft=>{ft.getSystem().isConnected()&&(fv(ft),s.onHide(qe,ft),F.clearTooltip())}),F.clearTimer()},ue=qe=>{if(!F.isShowing()){bz(qe);const ft=s.lazySink(qe).getOrDie(),gt=qe.getSystem().build({dom:s.tooltipDom,components:s.tooltipComponents,events:pl(s.mode==="normal"?[fo(Om(),At=>{Sa(qe,M5)}),fo(Tf(),At=>{Sa(qe,E5)})]:[]),behaviours:Bo([da.config({})])});F.setTooltip(gt),X0(ft,gt),s.onShow(qe,gt),ed.position(ft,gt,{anchor:s.anchor(qe)})}},we=qe=>{F.getTooltip().each(ft=>{const gt=s.lazySink(qe).getOrDie();ed.position(gt,ft,{anchor:s.anchor(qe)})})},Be=()=>{switch(s.mode){case"normal":return[fo(Sm(),qe=>{Sa(qe,Q6)}),fo(Xg(),qe=>{Sa(qe,j6)}),fo(Om(),qe=>{Sa(qe,M5)}),fo(Tf(),qe=>{Sa(qe,E5)})];case"follow-highlight":return[fo(Cm(),(qe,ft)=>{Sa(qe,M5)}),fo(D0(),qe=>{Sa(qe,E5)})];case"children-normal":return[fo(Sm(),(qe,ft)=>{_d(qe.element).each(gt=>{Rr(ft.event.target,"[data-mce-tooltip]")&&F.getTooltip().fold(()=>{Sa(qe,Q6)},At=>{F.isShowing()&&(s.onShow(qe,At),we(qe))})})}),fo(Xg(),qe=>{_d(qe.element).fold(()=>{Sa(qe,j6)},v)}),fo(Om(),qe=>{aa(qe.element,"[data-mce-tooltip]:hover").each(ft=>{F.getTooltip().fold(()=>{Sa(qe,M5)},gt=>{F.isShowing()&&(s.onShow(qe,gt),we(qe))})})}),fo(Tf(),qe=>{aa(qe.element,"[data-mce-tooltip]:hover").fold(()=>{Sa(qe,E5)},v)})];default:return[fo(Sm(),(qe,ft)=>{_d(qe.element).each(gt=>{Rr(ft.event.target,"[data-mce-tooltip]")&&F.getTooltip().fold(()=>{Sa(qe,Q6)},At=>{F.isShowing()&&(s.onShow(qe,At),we(qe))})})}),fo(Xg(),qe=>{_d(qe.element).fold(()=>{Sa(qe,j6)},v)})]}};return pl(ve([[fo(M5,qe=>{F.resetTimer(()=>{ue(qe)},s.delayForShow())}),fo(E5,qe=>{F.resetTimer(()=>{Z(qe)},s.delayForHide())}),fo(Q6,qe=>{F.resetTimer(()=>{ue(qe)},0)}),fo(j6,qe=>{F.resetTimer(()=>{Z(qe)},0)}),fo(lp(),(qe,ft)=>{const gt=ft;gt.universal||X(gt.channels,yz)&&Z(qe)}),Sh(qe=>{Z(qe)})],Be()]))}}),GW=[Sn("lazySink"),Sn("tooltipDom"),mr("exclusive",!0),mr("tooltipComponents",[]),Pa("delayForShow",x(300)),Pa("delayForHide",x(300)),hl("mode","normal",["normal","follow-highlight","children-keyboard-focus","children-normal"]),mr("anchor",s=>({type:"hotspot",hotspot:s,layouts:{onLtr:x([Pc,Jc,Ec,Hc,Qc,_s]),onRtl:x([Pc,Jc,Ec,Hc,Qc,_s])},bubble:pp(0,-2,{})})),Ra("onHide"),Ra("onShow")],f7=Object.freeze({__proto__:null,init:()=>{const s=os(),F=os(),Z=()=>{s.on(clearTimeout)},ue=(Be,qe)=>{Z(),s.set(setTimeout(Be,qe))},we=x("not-implemented");return kh({getTooltip:F.get,isShowing:F.isSet,setTooltip:F.set,clearTooltip:F.clear,clearTimer:Z,resetTimer:ue,readState:we})}});const Td=lf({fields:GW,name:"tooltipping",active:XW,state:f7,apis:YW}),{entries:xz,setPrototypeOf:_z,isFrozen:wz,getPrototypeOf:KW,getOwnPropertyDescriptor:JW}=Object;let{freeze:Zm,seal:vv,create:eY}=Object,{apply:d7,construct:P5}=typeof Reflect<"u"&&Reflect;d7||(d7=function(F,Z,ue){return F.apply(Z,ue)}),Zm||(Zm=function(F){return F}),vv||(vv=function(F){return F}),P5||(P5=function(F,Z){return new F(...Z)});const tY=n1(Array.prototype.forEach),nY=n1(Array.prototype.pop),R5=n1(Array.prototype.push),H6=n1(String.prototype.toLowerCase),h7=n1(String.prototype.toString),rY=n1(String.prototype.match),yv=n1(String.prototype.replace),oY=n1(String.prototype.indexOf),iY=n1(String.prototype.trim),f0=n1(RegExp.prototype.test),L5=aY(TypeError);function n1(s){return function(F){for(var Z=arguments.length,ue=new Array(Z>1?Z-1:0),we=1;we/gm),sY=vv(/\${[\w\W]*}/gm),lY=vv(/^data-[\-\w.\u00B7-\uFFFF]/),cY=vv(/^aria-[\-\w]+$/),kz=vv(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z5=vv(/^(?:\w+script|data):/i),uY=vv(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),x7=vv(/^html$/i);var q6=Object.freeze({__proto__:null,MUSTACHE_EXPR:Py,ERB_EXPR:b7,TMPLIT_EXPR:sY,DATA_ATTR:lY,ARIA_ATTR:cY,IS_ALLOWED_URI:kz,IS_SCRIPT_OR_DATA:z5,ATTR_WHITESPACE:uY,DOCTYPE_NAME:x7});const fY=()=>typeof window>"u"?null:window,_7=function(F,Z){if(typeof F!="object"||typeof F.createPolicy!="function")return null;let ue=null;const we="data-tt-policy-suffix";Z&&Z.hasAttribute(we)&&(ue=Z.getAttribute(we));const Be="dompurify"+(ue?"#"+ue:"");try{return F.createPolicy(Be,{createHTML(qe){return qe},createScriptURL(qe){return qe}})}catch{return console.warn("TrustedTypes policy "+Be+" could not be created."),null}};function W6(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fY();const F=ns=>W6(ns);if(F.version="3.0.5",F.removed=[],!s||!s.document||s.document.nodeType!==9)return F.isSupported=!1,F;const Z=s.document,ue=Z.currentScript;let{document:we}=s;const{DocumentFragment:Be,HTMLTemplateElement:qe,Node:ft,Element:gt,NodeFilter:At,NamedNodeMap:$t=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:on,DOMParser:yn,trustedTypes:wn}=s,Mn=gt.prototype,Xn=X3(Mn,"cloneNode"),Br=X3(Mn,"nextSibling"),or=X3(Mn,"childNodes"),Mr=X3(Mn,"parentNode");if(typeof qe=="function"){const ns=we.createElement("template");ns.content&&ns.content.ownerDocument&&(we=ns.content.ownerDocument)}let kr,yo="";const{implementation:Xr,createNodeIterator:No,createDocumentFragment:Jo,getElementsByTagName:ho}=we,{importNode:Ci}=Z;let mi={};F.isSupported=typeof xz=="function"&&typeof Mr=="function"&&Xr&&Xr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:qi,ERB_EXPR:Fi,TMPLIT_EXPR:Os,DATA_ATTR:vs,ARIA_ATTR:Ha,IS_SCRIPT_OR_DATA:Ho,ATTR_WHITESPACE:wi}=q6;let{IS_ALLOWED_URI:_a}=q6,Ki=null;const ji=Ks({},[...Oz,...p7,...m7,...g7,...Z6]);let va=null;const Cl=Ks({},[...y7,...I5,...D5,...B5]);let Ns=Object.seal(Object.create(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}})),zh=null,zg=null,Av=!0,dh=!0,Fg=!1,w0=!0,im=!1,jy=!1,mO=!1,CL=!1,L4=!1,SA=!1,fQ=!1,jfe=!0,Qfe=!1;const ROe="user-content-";let Voe=!0,AL=!1,kA={},TA=null;const Hfe=Ks({},["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"]);let Zfe=null;const qfe=Ks({},["audio","video","img","source","image","track"]);let Uoe=null;const Wfe=Ks({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dQ="http://www.w3.org/1998/Math/MathML",hQ="http://www.w3.org/2000/svg",gO="http://www.w3.org/1999/xhtml";let CA=gO,joe=!1,Qoe=null;const LOe=Ks({},[dQ,hQ,gO],h7);let Uk;const IOe=["application/xhtml+xml","text/html"],DOe="text/html";let am,AA=null;const BOe=we.createElement("form"),Yfe=function(oo){return oo instanceof RegExp||oo instanceof Function},Hoe=function(oo){if(!(AA&&AA===oo)){if((!oo||typeof oo!="object")&&(oo={}),oo=Y3(oo),Uk=IOe.indexOf(oo.PARSER_MEDIA_TYPE)===-1?Uk=DOe:Uk=oo.PARSER_MEDIA_TYPE,am=Uk==="application/xhtml+xml"?h7:H6,Ki="ALLOWED_TAGS"in oo?Ks({},oo.ALLOWED_TAGS,am):ji,va="ALLOWED_ATTR"in oo?Ks({},oo.ALLOWED_ATTR,am):Cl,Qoe="ALLOWED_NAMESPACES"in oo?Ks({},oo.ALLOWED_NAMESPACES,h7):LOe,Uoe="ADD_URI_SAFE_ATTR"in oo?Ks(Y3(Wfe),oo.ADD_URI_SAFE_ATTR,am):Wfe,Zfe="ADD_DATA_URI_TAGS"in oo?Ks(Y3(qfe),oo.ADD_DATA_URI_TAGS,am):qfe,TA="FORBID_CONTENTS"in oo?Ks({},oo.FORBID_CONTENTS,am):Hfe,zh="FORBID_TAGS"in oo?Ks({},oo.FORBID_TAGS,am):{},zg="FORBID_ATTR"in oo?Ks({},oo.FORBID_ATTR,am):{},kA="USE_PROFILES"in oo?oo.USE_PROFILES:!1,Av=oo.ALLOW_ARIA_ATTR!==!1,dh=oo.ALLOW_DATA_ATTR!==!1,Fg=oo.ALLOW_UNKNOWN_PROTOCOLS||!1,w0=oo.ALLOW_SELF_CLOSE_IN_ATTR!==!1,im=oo.SAFE_FOR_TEMPLATES||!1,jy=oo.WHOLE_DOCUMENT||!1,L4=oo.RETURN_DOM||!1,SA=oo.RETURN_DOM_FRAGMENT||!1,fQ=oo.RETURN_TRUSTED_TYPE||!1,CL=oo.FORCE_BODY||!1,jfe=oo.SANITIZE_DOM!==!1,Qfe=oo.SANITIZE_NAMED_PROPS||!1,Voe=oo.KEEP_CONTENT!==!1,AL=oo.IN_PLACE||!1,_a=oo.ALLOWED_URI_REGEXP||kz,CA=oo.NAMESPACE||gO,Ns=oo.CUSTOM_ELEMENT_HANDLING||{},oo.CUSTOM_ELEMENT_HANDLING&&Yfe(oo.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ns.tagNameCheck=oo.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oo.CUSTOM_ELEMENT_HANDLING&&Yfe(oo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ns.attributeNameCheck=oo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oo.CUSTOM_ELEMENT_HANDLING&&typeof oo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ns.allowCustomizedBuiltInElements=oo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),im&&(dh=!1),SA&&(L4=!0),kA&&(Ki=Ks({},[...Z6]),va=[],kA.html===!0&&(Ks(Ki,Oz),Ks(va,y7)),kA.svg===!0&&(Ks(Ki,p7),Ks(va,I5),Ks(va,B5)),kA.svgFilters===!0&&(Ks(Ki,m7),Ks(va,I5),Ks(va,B5)),kA.mathMl===!0&&(Ks(Ki,g7),Ks(va,D5),Ks(va,B5))),oo.ADD_TAGS&&(Ki===ji&&(Ki=Y3(Ki)),Ks(Ki,oo.ADD_TAGS,am)),oo.ADD_ATTR&&(va===Cl&&(va=Y3(va)),Ks(va,oo.ADD_ATTR,am)),oo.ADD_URI_SAFE_ATTR&&Ks(Uoe,oo.ADD_URI_SAFE_ATTR,am),oo.FORBID_CONTENTS&&(TA===Hfe&&(TA=Y3(TA)),Ks(TA,oo.FORBID_CONTENTS,am)),Voe&&(Ki["#text"]=!0),jy&&Ks(Ki,["html","head","body"]),Ki.table&&(Ks(Ki,["tbody"]),delete zh.tbody),oo.TRUSTED_TYPES_POLICY){if(typeof oo.TRUSTED_TYPES_POLICY.createHTML!="function")throw L5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof oo.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw L5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');kr=oo.TRUSTED_TYPES_POLICY,yo=kr.createHTML("")}else kr===void 0&&(kr=_7(wn,ue)),kr!==null&&typeof yo=="string"&&(yo=kr.createHTML(""));Zm&&Zm(oo),AA=oo}},Xfe=Ks({},["mi","mo","mn","ms","mtext"]),Gfe=Ks({},["foreignobject","desc","title","annotation-xml"]),zOe=Ks({},["title","style","font","a","script"]),pQ=Ks({},p7);Ks(pQ,m7),Ks(pQ,Sz);const Zoe=Ks({},g7);Ks(Zoe,v7);const FOe=function(oo){let Di=Mr(oo);(!Di||!Di.tagName)&&(Di={namespaceURI:CA,tagName:"template"});const pa=H6(oo.tagName),Xu=H6(Di.tagName);return Qoe[oo.namespaceURI]?oo.namespaceURI===hQ?Di.namespaceURI===gO?pa==="svg":Di.namespaceURI===dQ?pa==="svg"&&(Xu==="annotation-xml"||Xfe[Xu]):!!pQ[pa]:oo.namespaceURI===dQ?Di.namespaceURI===gO?pa==="math":Di.namespaceURI===hQ?pa==="math"&&Gfe[Xu]:!!Zoe[pa]:oo.namespaceURI===gO?Di.namespaceURI===hQ&&!Gfe[Xu]||Di.namespaceURI===dQ&&!Xfe[Xu]?!1:!Zoe[pa]&&(zOe[pa]||!pQ[pa]):!!(Uk==="application/xhtml+xml"&&Qoe[oo.namespaceURI]):!1},jk=function(oo){R5(F.removed,{element:oo});try{oo.parentNode.removeChild(oo)}catch{oo.remove()}},ML=function(oo,Di){try{R5(F.removed,{attribute:Di.getAttributeNode(oo),from:Di})}catch{R5(F.removed,{attribute:null,from:Di})}if(Di.removeAttribute(oo),oo==="is"&&!va[oo])if(L4||SA)try{jk(Di)}catch{}else try{Di.setAttribute(oo,"")}catch{}},Kfe=function(oo){let Di,pa;if(CL)oo=""+oo;else{const Qy=rY(oo,/^[\r\n\t ]+/);pa=Qy&&Qy[0]}Uk==="application/xhtml+xml"&&CA===gO&&(oo=''+oo+"");const Xu=kr?kr.createHTML(oo):oo;if(CA===gO)try{Di=new yn().parseFromString(Xu,Uk)}catch{}if(!Di||!Di.documentElement){Di=Xr.createDocument(CA,"template",null);try{Di.documentElement.innerHTML=joe?yo:Xu}catch{}}const sm=Di.body||Di.documentElement;return oo&&pa&&sm.insertBefore(we.createTextNode(pa),sm.childNodes[0]||null),CA===gO?ho.call(Di,jy?"html":"body")[0]:jy?Di.documentElement:sm},Jfe=function(oo){return No.call(oo.ownerDocument||oo,oo,At.SHOW_ELEMENT|At.SHOW_COMMENT|At.SHOW_TEXT,null,!1)},NOe=function(oo){return oo instanceof on&&(typeof oo.nodeName!="string"||typeof oo.textContent!="string"||typeof oo.removeChild!="function"||!(oo.attributes instanceof $t)||typeof oo.removeAttribute!="function"||typeof oo.setAttribute!="function"||typeof oo.namespaceURI!="string"||typeof oo.insertBefore!="function"||typeof oo.hasChildNodes!="function")},mQ=function(oo){return typeof ft=="object"?oo instanceof ft:oo&&typeof oo=="object"&&typeof oo.nodeType=="number"&&typeof oo.nodeName=="string"},vO=function(oo,Di,pa){mi[oo]&&tY(mi[oo],Xu=>{Xu.call(F,Di,pa,AA)})},ede=function(oo){let Di;if(vO("beforeSanitizeElements",oo,null),NOe(oo))return jk(oo),!0;const pa=am(oo.nodeName);if(vO("uponSanitizeElement",oo,{tagName:pa,allowedTags:Ki}),oo.hasChildNodes()&&!mQ(oo.firstElementChild)&&(!mQ(oo.content)||!mQ(oo.content.firstElementChild))&&f0(/<[/\w]/g,oo.innerHTML)&&f0(/<[/\w]/g,oo.textContent))return jk(oo),!0;if(!Ki[pa]||zh[pa]){if(!zh[pa]&&nde(pa)&&(Ns.tagNameCheck instanceof RegExp&&f0(Ns.tagNameCheck,pa)||Ns.tagNameCheck instanceof Function&&Ns.tagNameCheck(pa)))return!1;if(Voe&&!TA[pa]){const Xu=Mr(oo)||oo.parentNode,sm=or(oo)||oo.childNodes;if(sm&&Xu){const Qy=sm.length;for(let Qd=Qy-1;Qd>=0;--Qd)Xu.insertBefore(Xn(sm[Qd],!0),Br(oo))}}return jk(oo),!0}return oo instanceof gt&&!FOe(oo)||(pa==="noscript"||pa==="noembed"||pa==="noframes")&&f0(/<\/no(script|embed|frames)/i,oo.innerHTML)?(jk(oo),!0):(im&&oo.nodeType===3&&(Di=oo.textContent,Di=yv(Di,qi," "),Di=yv(Di,Fi," "),Di=yv(Di,Os," "),oo.textContent!==Di&&(R5(F.removed,{element:oo.cloneNode()}),oo.textContent=Di)),vO("afterSanitizeElements",oo,null),!1)},tde=function(oo,Di,pa){if(jfe&&(Di==="id"||Di==="name")&&(pa in we||pa in BOe))return!1;if(!(dh&&!zg[Di]&&f0(vs,Di))){if(!(Av&&f0(Ha,Di))){if(!va[Di]||zg[Di]){if(!(nde(oo)&&(Ns.tagNameCheck instanceof RegExp&&f0(Ns.tagNameCheck,oo)||Ns.tagNameCheck instanceof Function&&Ns.tagNameCheck(oo))&&(Ns.attributeNameCheck instanceof RegExp&&f0(Ns.attributeNameCheck,Di)||Ns.attributeNameCheck instanceof Function&&Ns.attributeNameCheck(Di))||Di==="is"&&Ns.allowCustomizedBuiltInElements&&(Ns.tagNameCheck instanceof RegExp&&f0(Ns.tagNameCheck,pa)||Ns.tagNameCheck instanceof Function&&Ns.tagNameCheck(pa))))return!1}else if(!Uoe[Di]){if(!f0(_a,yv(pa,wi,""))){if(!((Di==="src"||Di==="xlink:href"||Di==="href")&&oo!=="script"&&oY(pa,"data:")===0&&Zfe[oo])){if(!(Fg&&!f0(Ho,yv(pa,wi,"")))){if(pa)return!1}}}}}}return!0},nde=function(oo){return oo.indexOf("-")>0},rde=function(oo){let Di,pa,Xu,sm;vO("beforeSanitizeAttributes",oo,null);const{attributes:Qy}=oo;if(!Qy)return;const Qd={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:va};for(sm=Qy.length;sm--;){Di=Qy[sm];const{name:Hy,namespaceURI:qoe}=Di;pa=Hy==="value"?Di.value:iY(Di.value);const VOe=pa;if(Xu=am(Hy),Qd.attrName=Xu,Qd.attrValue=pa,Qd.keepAttr=!0,Qd.forceKeepAttr=void 0,vO("uponSanitizeAttribute",oo,Qd),pa=Qd.attrValue,Qd.forceKeepAttr)continue;if(!Qd.keepAttr){ML(Hy,oo);continue}if(!w0&&f0(/\/>/i,pa)){ML(Hy,oo);continue}im&&(pa=yv(pa,qi," "),pa=yv(pa,Fi," "),pa=yv(pa,Os," "));const ode=am(oo.nodeName);if(!tde(ode,Xu,pa)){ML(Hy,oo);continue}if(Qfe&&(Xu==="id"||Xu==="name")&&(ML(Hy,oo),pa=ROe+pa),kr&&typeof wn=="object"&&typeof wn.getAttributeType=="function"&&!qoe)switch(wn.getAttributeType(ode,Xu)){case"TrustedHTML":{pa=kr.createHTML(pa);break}case"TrustedScriptURL":{pa=kr.createScriptURL(pa);break}}if(pa!==VOe)try{qoe?oo.setAttributeNS(qoe,Hy,pa):oo.setAttribute(Hy,pa)}catch{ML(Hy,oo)}}vO("afterSanitizeAttributes",oo,null)},$Oe=function ns(oo){let Di;const pa=Jfe(oo);for(vO("beforeSanitizeShadowDOM",oo,null);Di=pa.nextNode();)vO("uponSanitizeShadowNode",Di,null),!ede(Di)&&(Di.content instanceof Be&&ns(Di.content),rde(Di));vO("afterSanitizeShadowDOM",oo,null)};return F.sanitize=function(ns){let oo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Di,pa,Xu,sm;if(joe=!ns,joe&&(ns=""),typeof ns!="string"&&!mQ(ns))if(typeof ns.toString=="function"){if(ns=ns.toString(),typeof ns!="string")throw L5("dirty is not a string, aborting")}else throw L5("toString is not a function");if(!F.isSupported)return ns;if(mO||Hoe(oo),F.removed=[],typeof ns=="string"&&(AL=!1),AL){if(ns.nodeName){const Hy=am(ns.nodeName);if(!Ki[Hy]||zh[Hy])throw L5("root node is forbidden and cannot be sanitized in-place")}}else if(ns instanceof ft)Di=Kfe(""),pa=Di.ownerDocument.importNode(ns,!0),pa.nodeType===1&&pa.nodeName==="BODY"||pa.nodeName==="HTML"?Di=pa:Di.appendChild(pa);else{if(!L4&&!im&&!jy&&ns.indexOf("<")===-1)return kr&&fQ?kr.createHTML(ns):ns;if(Di=Kfe(ns),!Di)return L4?null:fQ?yo:""}Di&&CL&&jk(Di.firstChild);const Qy=Jfe(AL?ns:Di);for(;Xu=Qy.nextNode();)ede(Xu)||(Xu.content instanceof Be&&$Oe(Xu.content),rde(Xu));if(AL)return ns;if(L4){if(SA)for(sm=Jo.call(Di.ownerDocument);Di.firstChild;)sm.appendChild(Di.firstChild);else sm=Di;return(va.shadowroot||va.shadowrootmode)&&(sm=Ci.call(Z,sm,!0)),sm}let Qd=jy?Di.outerHTML:Di.innerHTML;return jy&&Ki["!doctype"]&&Di.ownerDocument&&Di.ownerDocument.doctype&&Di.ownerDocument.doctype.name&&f0(x7,Di.ownerDocument.doctype.name)&&(Qd=" +`+Qd),im&&(Qd=yv(Qd,qi," "),Qd=yv(Qd,Fi," "),Qd=yv(Qd,Os," ")),kr&&fQ?kr.createHTML(Qd):Qd},F.setConfig=function(ns){Hoe(ns),mO=!0},F.clearConfig=function(){AA=null,mO=!1},F.isValidAttribute=function(ns,oo,Di){AA||Hoe({});const pa=am(ns),Xu=am(oo);return tde(pa,Xu,Di)},F.addHook=function(ns,oo){typeof oo=="function"&&(mi[ns]=mi[ns]||[],R5(mi[ns],oo))},F.removeHook=function(ns){if(mi[ns])return nY(mi[ns])},F.removeHooks=function(ns){mi[ns]&&(mi[ns]=[])},F.removeAllHooks=function(){mi={}},F}var dY=W6();const w7=s=>dY().sanitize(s);var Ag=tinymce.util.Tools.resolve("tinymce.util.I18n");const hY={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},Tz="temporary-placeholder",O7=s=>()=>Ge(s,Tz).getOr("!not found!"),S7=(s,F)=>{const Z=s.toLowerCase();if(Ag.isRtl()){const ue=vt(Z,"-rtl");return ht(F,ue)?ue:Z}else return Z},Cz=(s,F)=>Ge(F,S7(s,F)),Az=(s,F)=>{const Z=F();return Cz(s,Z).getOrThunk(O7(Z))},Mz=(s,F,Z)=>{const ue=F();return Cz(s,ue).or(Z).getOrThunk(O7(ue))},Ez=s=>Ag.isRtl()?ht(hY,s):!1,k7=()=>Ca("add-focusable",[Ll(s=>{rc(s.element,"svg").each(F=>fr(F,"focusable","false"))})]),T7=(s,F,Z,ue)=>{var we,Be;const qe=Ez(F)?["tox-icon--flip"]:[],ft=Ge(Z,S7(F,Z)).or(ue).getOrThunk(O7(Z));return{dom:{tag:s.tag,attributes:(we=s.attributes)!==null&&we!==void 0?we:{},classes:s.classes.concat(qe),innerHtml:ft},behaviours:Bo([...(Be=s.behaviours)!==null&&Be!==void 0?Be:[],k7()])}},em=(s,F,Z,ue=I.none())=>T7(F,s,Z(),ue),Pz=(s,F,Z)=>{const ue=Z(),we=ce(s,Be=>ht(ue,S7(Be,ue)));return T7(F,we.getOr(Tz),ue,I.none())},pY={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},Y6=Yh({name:"Notification",factory:s=>{const F=fi("notification-text"),Z=qs({dom:gv(`

    ${w7(s.backstageProvider.translate(s.text))}

    `),behaviours:Bo([da.config({})])}),ue=Mn=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${Mn}%`}}}),we=Mn=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${Mn}%`}}),Be=qs({dom:{tag:"div",classes:s.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[ue(0)]},we(0)],behaviours:Bo([da.config({})])}),gt={updateProgress:(Mn,Xn)=>{Mn.getSystem().isConnected()&&Be.getOpt(Mn).each(Br=>{da.set(Br,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[ue(Xn)]},we(Xn)])})},updateText:(Mn,Xn)=>{if(Mn.getSystem().isConnected()){const Br=Z.get(Mn);da.set(Br,[ro(Xn)])}}},At=ve([s.icon.toArray(),s.level.toArray(),s.level.bind(Mn=>I.from(pY[Mn])).toArray()]),$t=qs(Vd.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":s.backstageProvider.translate("Close")}},components:[em("close",{tag:"span",classes:["tox-icon"]},s.iconProvider)],buttonBehaviours:Bo([Wl.config({}),Td.config({...s.backstageProvider.tooltips.getConfig({tooltipText:s.backstageProvider.translate("Close")})})]),action:Mn=>{s.onAction(Mn)}})),on=Pz(At,{tag:"div",classes:["tox-notification__icon"]},s.iconProvider),yn={dom:{tag:"div",classes:["tox-notification__body"]},components:[Z.asSpec()],behaviours:Bo([da.config({})])},wn=[on,yn];return{uid:s.uid,dom:{tag:"div",attributes:{role:"alert","aria-labelledby":F},classes:s.level.map(Mn=>["tox-notification","tox-notification--in",`tox-notification--${Mn}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:Bo([Wl.config({}),oa.config({}),Li.config({mode:"special",onEscape:Mn=>(s.onAction(Mn),I.some(!0))})]),components:wn.concat(s.progress?[Be.asSpec()]:[]).concat([$t.asSpec()]),apis:gt}},configFields:[Hr("level"),Sn("progress"),Hr("icon"),Sn("onAction"),Sn("text"),Sn("iconProvider"),Sn("backstageProvider")],apis:{updateProgress:(s,F,Z)=>{s.updateProgress(F,Z)},updateText:(s,F,Z)=>{s.updateText(F,Z)}}});var mY=(s,F,Z,ue)=>{const we=F.backstage.shared,Be=()=>{const $t=Ya(Pt.fromDom(s.getContentAreaContainer()));return I.some($t)},qe=$t=>{Be().each(on=>{q($t,yn=>{cc(yn.element)>on.width&&ko(yn.element,"width",on.width+"px")})})};return{open:($t,on,yn)=>{const wn=()=>{const or=Xr=>{da.remove(Xr,Mn),Xn()},Mr=(Xr,No)=>{bo(Xr.element).length===0?kr(Xr,No):yo(Xr,No)},kr=(Xr,No)=>{hc.hide(Xr),ue.clear(),No&&s.focus()},yo=(Xr,No)=>{No&&Li.focusIn(Xr)};ue.on(Xr=>{on();const No=yn();or(Xr),Mr(Xr,No)})},Mn=vi(Y6.sketch({text:$t.text,level:X(["success","error","warning","warn","info"],$t.type)?$t.type:void 0,progress:$t.progressBar===!0,icon:$t.icon,onAction:wn,iconProvider:we.providers.icons,backstageProvider:we.providers}));if(ue.isSet()){const or=na(Mn);ue.on(Mr=>{da.append(Mr,or),hc.reposition(Mr),Dl.refresh(Mr),qe(Mr.components())})}else{const or=vi(hc.sketch({dom:{tag:"div",classes:["tox-notifications-container"],attributes:{"aria-label":"Notifications",role:"region"}},lazySink:we.getSink,fireDismissalEventInstead:{},...we.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Bo([Li.config({mode:"cyclic",selector:".tox-notification, .tox-notification a, .tox-notification button"}),da.config({}),...W3(s)&&!we.header.isPositionedAtTop()?[]:[Dl.config({contextual:{lazyContext:()=>I.some(Ya(Pt.fromDom(s.getContentAreaContainer()))),fadeInClass:"tox-notification-container-dock-fadein",fadeOutClass:"tox-notification-container-dock-fadeout",transitionClass:"tox-notification-container-dock-transition"},modes:["top"],lazyViewport:Xr=>Jb(s,Xr.element).map(Jo=>({bounds:zw(Jo),optScrollEnv:I.some({currentScrollTop:Jo.element.dom.scrollTop,scrollElmTop:pc(Jo.element).top})})).getOrThunk(()=>({bounds:wl(),optScrollEnv:I.none()}))})]])})),Mr=na(Mn),kr={maxHeightFunction:W0()},yo={...we.anchors.banner(),overrides:kr};ue.set(or),Z.add(or),hc.showWithinBounds(or,Mr,{anchor:yo},Be)}h($t.timeout)&&$t.timeout>0&&S5.setEditorTimeout(s,()=>{wn()},$t.timeout);const Xn=()=>{ue.on(or=>{hc.reposition(or),Dl.refresh(or),qe(or.components())})};return{close:wn,reposition:Xn,text:or=>{Y6.updateText(Mn,or)},settings:$t,getEl:()=>Mn.element.dom,progressBar:{value:or=>{Y6.updateProgress(Mn,or)}}}},close:$t=>{$t.close()},getArgs:$t=>$t.settings}};const Rz={setup:(s,F)=>{const Z=(we,Be)=>{Ri(we,Bp(),{raw:Be})},ue=()=>s.getMenu().bind(ri.getHighlighted);F.on("keydown",we=>{const Be=we.which;s.isActive()&&(s.isMenuOpen()?Be===13?(ue().each(Fp),we.preventDefault()):Be===40?(ue().fold(()=>{s.getMenu().each(ri.highlightFirst)},qe=>{Z(qe,we)}),we.preventDefault(),we.stopImmediatePropagation()):(Be===37||Be===38||Be===39)&&ue().each(qe=>{Z(qe,we),we.preventDefault(),we.stopImmediatePropagation()}):(Be===13||Be===38||Be===40)&&s.cancelIfNecessary())}),F.on("NodeChange",()=>{s.isActive()&&!s.isProcessingAction()&&!F.queryCommandState("mceAutoCompleterInRange")&&s.cancelIfNecessary()})}};var X6;(function(s){s[s.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",s[s.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(X6||(X6={}));var r1=X6;const G6="tox-menu-nav__js",K6="tox-collection__item",C7="tox-swatch",Lz={normal:G6,color:C7},J6="tox-collection__item--enabled",A7="tox-collection__group-heading",M7="tox-collection__item-icon",eC="tox-collection__item-label",Iz="tox-collection__item-accessory",Dz="tox-collection__item-caret",E7="tox-collection__item-checkmark",Fw="tox-collection__item--active",P7="tox-collection__item-container",Bz="tox-collection__item-container--column",A2="tox-collection__item-container--row",gY="tox-collection__item-container--align-right",R7="tox-collection__item-container--align-left",tC="tox-collection__item-container--valign-top",vY="tox-collection__item-container--valign-middle",zz="tox-collection__item-container--valign-bottom",L7=s=>Ge(Lz,s).getOr(G6),Fz=s=>s==="color"?"tox-swatches":"tox-menu",F5=s=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:Fz(s),tieredMenu:"tox-tiered-menu"}),M2=s=>{const F=F5(s);return{backgroundMenu:F.backgroundMenu,selectedMenu:F.selectedMenu,menu:F.menu,selectedItem:F.selectedItem,item:L7(s)}},yY=(s,F,Z)=>{const ue=F5(Z);return{tag:"div",classes:ve([[ue.menu,`tox-menu-${F}-column`],s?[ue.hasIcons]:[]])}},Nz=[Pw.parts.items({})],N5=(s,F,Z)=>{const ue=F5(Z);return{dom:{tag:"div",classes:ve([[ue.tieredMenu]])},markers:M2(Z)}},I7=x([Hr("data"),mr("inputAttributes",{}),mr("inputStyles",{}),mr("tag","input"),mr("inputClasses",[]),Ra("onSetValue"),mr("styles",{}),mr("eventOrder",{}),Pf("inputBehaviours",[hi,oa]),mr("selectOnFocus",!0)]),D7=s=>Bo([oa.config({onFocus:s.selectOnFocus?F=>{const Z=F.element,ue=qr(Z);Z.dom.setSelectionRange(0,ue.length)}:v})]),bY=s=>({...D7(s),...Rf(s.inputBehaviours,[hi.config({store:{mode:"manual",...s.data.map(F=>({initialValue:F})).getOr({}),getValue:F=>qr(F.element),setValue:(F,Z)=>{qr(F.element)!==Z&&N(F.element,Z)}},onSetValue:s.onSetValue})])}),B7=s=>({tag:s.tag,attributes:{type:"text",...s.inputAttributes},styles:s.inputStyles,classes:s.inputClasses}),xY=(s,F)=>({uid:s.uid,dom:B7(s),components:[],behaviours:bY(s),eventOrder:s.eventOrder}),Nw=Yh({name:"Input",configFields:I7(),factory:xY}),$z=fi("refetch-trigger-event"),Vz=fi("redirect-menu-item-interaction"),z7="tox-menu__searcher",E2=s=>aa(s.element,`.${z7}`).bind(F=>s.getSystem().getByDom(F).toOptional()),F7=E2,_Y=(s,F)=>{hi.setValue(s,F.fetchPattern),s.element.dom.selectionStart=F.selectionStart,s.element.dom.selectionEnd=F.selectionEnd},Uz=s=>{const F=hi.getValue(s),Z=s.element.dom.selectionStart,ue=s.element.dom.selectionEnd;return{fetchPattern:F,selectionStart:Z,selectionEnd:ue}},wY=(s,F)=>{co(F.element,"id").each(Z=>fr(s.element,"aria-activedescendant",Z))},OY=s=>{const F=(we,Be)=>(Be.cut(),I.none()),Z=(we,Be)=>{const qe={interactionEvent:Be.event,eventType:Be.event.raw.type};return Ri(we,Vz,qe),I.some(!0)},ue="searcher-events";return{dom:{tag:"div",classes:[K6]},components:[Nw.sketch({inputClasses:[z7,"tox-textfield"],inputAttributes:{...s.placeholder.map(we=>({placeholder:s.i18n(we)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:Bo([Ca(ue,[fo(ug(),we=>{Sa(we,$z)}),fo(Bp(),(we,Be)=>{Be.event.raw.key==="Escape"&&Be.stop()})]),Li.config({mode:"special",onLeft:F,onRight:F,onSpace:F,onEnter:Z,onEscape:Z,onUp:Z,onDown:Z})]),eventOrder:{keydown:[ue,Li.name()]}})]}},nC="tox-collection--results__js",$5=s=>{var F;return s.dom?{...s,dom:{...s.dom,attributes:{...(F=s.dom.attributes)!==null&&F!==void 0?F:{},id:fi("aria-item-search-result-id"),"aria-selected":"false"}}}:s},N7=(s,F)=>Z=>{const ue=K(Z,F);return oe(ue,we=>({dom:s,components:we}))},jz=s=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[Pw.parts.items({preprocess:s!=="auto"?N7({tag:"div",classes:["tox-swatches__row"]},s):R})]}]}),SY=s=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[Pw.parts.items({preprocess:N7({tag:"div",classes:["tox-collection__group"]},s)})]}),$7=(s,F)=>{const Z=[];let ue=[];return q(s,(we,Be)=>{F(we,Be)?(ue.length>0&&Z.push(ue),ue=[],(ht(we.dom,"innerHtml")||we.components&&we.components.length>0)&&ue.push(we)):ue.push(we)}),ue.length>0&&Z.push(ue),oe(Z,we=>({dom:{tag:"div",classes:["tox-collection__group"]},components:we}))},rC=(s,F,Z)=>Pw.parts.items({preprocess:ue=>{const we=oe(ue,Z);return s!=="auto"&&s>1?N7({tag:"div",classes:["tox-collection__group"]},s)(we):$7(we,(Be,qe)=>F[qe].type==="separator")}}),Qz=(s,F,Z=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(s===1?["tox-collection--list"]:["tox-collection--grid"])},components:[rC(s,F,R)]}),Hz=(s,F,Z=!0)=>{const ue=fi("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",nC].concat(s===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:ue}},components:[rC(s,F,$5)]}},Zz=(s,F,Z)=>{const ue=fi("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(s===1?["tox-collection--list"]:["tox-collection--grid"])},components:[OY({i18n:Ag.translate,placeholder:Z.placeholder}),{dom:{tag:"div",classes:[...s===1?["tox-collection--list"]:["tox-collection--grid"],nC],attributes:{id:ue}},components:[rC(s,F,$5)]}]}},qz=(s,F=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[Pw.parts.items({preprocess:Z=>$7(Z,(ue,we)=>s[we].type==="separator")})]}),V5=s=>te(s,F=>"icon"in F&&F.icon!==void 0),ex=s=>(console.error(sn(s)),console.log(s),I.none()),kY=(s,F,Z,ue,we)=>{const Be=qz(Z);return{value:s,dom:Be.dom,components:Be.components,items:Z}},V7=(s,F,Z,ue,we)=>{const Be=()=>we.menuType!=="searchable"?Qz(ue,Z):we.searchMode.searchMode==="search-with-field"?Zz(ue,Z,we.searchMode):Hz(ue,Z);if(we.menuType==="color"){const qe=jz(ue);return{value:s,dom:qe.dom,components:qe.components,items:Z}}else if(we.menuType==="normal"&&ue==="auto"){const qe=Qz(ue,Z);return{value:s,dom:qe.dom,components:qe.components,items:Z}}else if(we.menuType==="normal"||we.menuType==="searchable"){const qe=Be();return{value:s,dom:qe.dom,components:qe.components,items:Z}}else if(we.menuType==="listpreview"&&ue!=="auto"){const qe=SY(ue);return{value:s,dom:qe.dom,components:qe.components,items:Z}}else return{value:s,dom:yY(F,ue,we.menuType),components:Nz,items:Z}},Fu=Pr("type"),oC=Pr("name"),iC=Pr("label"),tx=Pr("text"),Wz=Pr("title"),Yz=Pr("icon"),U5=Pr("value"),TY=$o("fetch"),CY=$o("getSubmenuItems"),G3=$o("onAction"),U7=$o("onItemAction"),P2=Pa("onSetup",()=>v),AY=Io("name"),R2=Io("text"),Xz=Io("role"),d0=Io("icon"),j5=Io("tooltip"),aC=Io("label"),sC=Io("shortcut"),Gz=Ui("select"),lC=hs("active",!1),MY=hs("borderless",!1),o1=hs("enabled",!0),Q5=hs("primary",!1),cC=s=>mr("columns",s),j7=mr("meta",{}),Q7=Pa("onAction",v),$w=s=>Ys("type",s),H7=s=>Ln("name","name",Xi(()=>fi(`${s}-name`)),ne),EY=s=>Ln("value","value",Xi(()=>fi(`${s}-value`)),le()),Kz=Mi([Fu,R2]),Jz=s=>jt("separatormenuitem",Kz,s),eF=Mi([$w("autocompleteitem"),lC,o1,j7,U5,R2,d0]),PY=s=>jt("Autocompleter.Separator",Kz,s),RY=s=>jt("Autocompleter.Item",eF,s),H5=[o1,j5,d0,R2,P2],qm=Mi([Fu,G3,sC].concat(H5)),i1=s=>jt("toolbarbutton",qm,s),Z7=[lC].concat(H5),q7=Mi(Z7.concat([Fu,G3,sC])),uC=s=>jt("ToggleButton",q7,s),tF=[Pa("predicate",D),hl("scope","node",["node","editor"]),hl("position","selection",["node","selection","line"])],LY=H5.concat([$w("contextformbutton"),Q5,G3,On("original",R)]),Z5=Z7.concat([$w("contextformbutton"),Q5,G3,On("original",R)]),fC=H5.concat([$w("contextformbutton")]),W7=Z7.concat([$w("contextformtogglebutton")]),IY=xn("type",{contextformbutton:LY,contextformtogglebutton:Z5}),bv=Mi([$w("contextform"),Pa("initValue",x("")),aC,Si("commands",IY),Lo("launch",xn("type",{contextformbutton:fC,contextformtogglebutton:W7}))].concat(tF)),DY=s=>jt("ContextForm",bv,s),BY=Mi([$w("contexttoolbar"),Pr("items")].concat(tF)),h0=s=>jt("ContextToolbar",BY,s),q5=[Fu,Pr("src"),Io("alt"),Ls("classes",[],ne)],a1=Mi(q5),zY=[Fu,tx,AY,Ls("classes",["tox-collection__item-label"],ne)],Tl=Mi(zY),Vw=Ea(()=>rt("type",{cardimage:a1,cardtext:Tl,cardcontainer:dC})),dC=Mi([Fu,Ys("direction","horizontal"),Ys("align","left"),Ys("valign","middle"),Si("items",Vw)]),Uw=[o1,R2,Xz,sC,EY("menuitem"),j7],Y7=Mi([Fu,aC,Si("items",Vw),P2,Q7].concat(Uw)),X7=s=>jt("cardmenuitem",Y7,s),FY=Mi([Fu,lC,d0].concat(Uw)),G7=s=>jt("choicemenuitem",FY,s),nF=[Fu,Pr("fancytype"),Q7],rF=[mr("initData",{})].concat(nF),oF=[Ui("select"),ol("initData",{},[hs("allowCustomColors",!0),Ys("storageKey","default"),ba("colors",le())])].concat(nF),K7=xn("fancytype",{inserttable:rF,colorswatch:oF}),iF=s=>jt("fancymenuitem",K7,s),hC=Mi([Fu,P2,Q7,d0].concat(Uw)),NY=s=>jt("menuitem",hC,s),$Y=Mi([Fu,CY,P2,d0].concat(Uw)),VY=s=>jt("nestedmenuitem",$Y,s),UY=Mi([Fu,d0,lC,P2,G3].concat(Uw)),jY=s=>jt("togglemenuitem",UY,s),pC=(s,F,Z)=>{const ue=$d(s.element,"."+Z);if(ue.length>0){const we=de(ue,Be=>{const qe=Be.dom.getBoundingClientRect().top,ft=ue[0].dom.getBoundingClientRect().top;return Math.abs(qe-ft)>F}).getOr(ue.length);return I.some({numColumns:we,numRows:Math.ceil(ue.length/we)})}else return I.none()},aF=(s,F)=>Bo([Ca(s,F)]),K3={namedEvents:aF,unnamedEvents:s=>aF(fi("unnamed-events"),s)},sF=s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),lF="silver.readonly",QY=Mi([Mo("readonly")]),W5=(s,F)=>{const ue=s.mainUi.outerContainer.element,we=[s.mainUi.mothership,...s.uiMotherships];F&&q(we,Be=>{Be.broadcastOn([K0()],{target:ue})}),q(we,Be=>{Be.broadcastOn([lF],{readonly:F})})},mC=(s,F)=>{s.on("init",()=>{s.mode.isReadOnly()&&W5(F,!0)}),s.on("SwitchMode",()=>W5(F,s.mode.isReadOnly())),M6(s)&&s.mode.set("readonly")},df=()=>Wu.config({channels:{[lF]:{schema:QY,onReceive:(s,F)=>{ta.set(s,F.readonly)}}}}),s1={item:s=>ta.config({disabled:s,disableClass:"tox-collection__item--state-disabled"}),button:s=>ta.config({disabled:s}),splitButton:s=>ta.config({disabled:s,disableClass:"tox-tbtn--disabled"}),toolbarButton:s=>ta.config({disabled:s,disableClass:"tox-tbtn--disabled",useNative:!1})},gC=(s,F)=>{const Z=s.getApi(F);return ue=>{ue(Z)}},nx=(s,F)=>Ll(Z=>{gC(s,Z)(we=>{const Be=s.onSetup(we);u(Be)&&F.set(Be)})}),Ih=(s,F)=>Sh(Z=>gC(s,Z)(F.get())),HY=(s,F)=>$p((Z,ue)=>{gC(s,Z)(s.onAction),!s.triggersSubmenu&&F===r1.CLOSE_ON_EXECUTE&&(Z.getSystem().isConnected()&&Sa(Z,L0()),ue.stop())}),J7={[cp()]:["disabling","alloy.base.behaviour","toggling","item-events"]},jw=It,Qw=(s,F,Z,ue)=>{const we=xi(v);return{type:"item",dom:F.dom,components:jw(F.optComponents),data:s.data,eventOrder:J7,hasSubmenu:s.triggersSubmenu,itemBehaviours:Bo([Ca("item-events",[HY(s,Z),nx(s,we),Ih(s,we)]),s1.item(()=>!s.enabled||ue.isDisabled()),df(),da.config({})].concat(s.itemBehaviours))}},J3=s=>({value:s.value,meta:{text:s.text.getOr(""),...s.meta}}),vC=s=>{const F=Q3.os.isMacOS()||Q3.os.isiOS(),we=F?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},Be=s.split("+"),qe=oe(Be,ft=>{const gt=ft.toLowerCase().trim();return ht(we,gt)?we[gt]:ft});return F?qe.join(""):qe.join("+")},yC=(s,F,Z=[M7])=>em(s,{tag:"div",classes:Z},F),eP=s=>({dom:{tag:"div",classes:[eC]},components:[ro(Ag.translate(s))]}),cF=(s,F)=>({dom:{tag:"div",classes:F,innerHtml:s}}),ZY=(s,F)=>({dom:{tag:"div",classes:[eC]},components:[{dom:{tag:s.tag,styles:s.styles},components:[ro(Ag.translate(F))]}]}),qY=s=>({dom:{tag:"div",classes:[Iz]},components:[ro(vC(s))]}),uF=s=>yC("checkmark",s,[E7]),WY=s=>yC("chevron-right",s,[Dz]),fF=s=>yC("chevron-down",s,[Dz]),dF=(s,F)=>{const Z=s.direction==="vertical"?Bz:A2,ue=s.align==="left"?R7:gY;return{dom:{tag:"div",classes:[P7,Z,ue,(()=>{switch(s.valign){case"top":return tC;case"middle":return vY;case"bottom":return zz}})()]},components:F}},hF=(s,F,Z)=>({dom:{tag:"img",classes:F,attributes:{src:s,alt:Z.getOr("")}}}),YY=(s,F,Z)=>{const ue="custom",we="remove",Be=s.value,qe=s.iconContent.map(At=>Mz(At,F.icons,Z)),ft=s.ariaLabel.map(At=>({"aria-label":F.translate(At),"data-mce-name":At})).getOr({});return{dom:(()=>{const At=C7,$t=qe.getOr(""),on={tag:"div",attributes:ft,classes:[At]};return Be===ue?{...on,tag:"button",classes:[...on.classes,"tox-swatches__picker-btn"],innerHtml:$t}:Be===we?{...on,classes:[...on.classes,"tox-swatch--remove"],innerHtml:$t}:a(Be)?{...on,attributes:{...on.attributes,"data-mce-color":Be},styles:{"background-color":Be},innerHtml:$t}:on})(),optComponents:[]}},pF=s=>{const F=s.map(Z=>({attributes:{id:fi("menu-item"),"aria-label":Ag.translate(Z)}})).getOr({});return{tag:"div",classes:[G6,K6],...F}},XY=(s,F,Z,ue)=>{const we={tag:"div",classes:[M7]},Be=yn=>em(yn,we,F.icons,ue),qe=()=>I.some({dom:we}),ft=Z?s.iconContent.map(Be).orThunk(qe):I.none(),gt=s.checkMark,At=I.from(s.meta).fold(()=>eP,yn=>ht(yn,"style")?T(ZY,yn.style):eP),$t=s.htmlContent.fold(()=>s.textContent.map(At),yn=>I.some(cF(yn,[eC])));return{dom:pF(s.ariaLabel),optComponents:[ft,$t,s.shortcutContent.map(qY),gt,s.caret]}},Ry=(s,F,Z,ue=I.none())=>s.presets==="color"?YY(s,F,ue):XY(s,F,Z,ue),mF=(s,F,Z)=>Ge(s,"tooltipWorker").map(ue=>[Td.config({lazySink:F.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:we=>({type:"submenu",item:we,overrides:{maxHeightFunction:W0}}),mode:"follow-highlight",onShow:(we,Be)=>{ue(qe=>{Td.setComponents(we,[Po({element:Pt.fromDom(qe)})])})}})]).getOrThunk(()=>Z.map(ue=>[Td.config({...F.providers.tooltips.getConfig({tooltipText:ue}),mode:"follow-highlight"})]).getOr([])),gF=s=>Lw.DOM.encode(s),tP=(s,F)=>{const Z=Ag.translate(s),ue=gF(Z);if(F.length>0){const we=new RegExp(sF(F),"gi");return ue.replace(we,Be=>`${Be}`)}else return ue},vF=(s,F,Z,ue,we,Be,qe,ft=!0)=>{const gt=Ry({presets:ue,textContent:I.none(),htmlContent:Z?s.text.map($t=>tP($t,F)):I.none(),ariaLabel:s.text,iconContent:s.icon,shortcutContent:I.none(),checkMark:I.none(),caret:I.none(),value:s.value},qe.providers,ft,s.icon),At=s.text.filter($t=>!Z&&$t!=="");return Qw({data:J3(s),enabled:s.enabled,getApi:x({}),onAction:$t=>we(s.value,s.meta),onSetup:x(v),triggersSubmenu:!1,itemBehaviours:mF(s,qe,At)},gt,Be,qe.providers)},nP=(s,F)=>oe(s,Z=>{switch(Z.type){case"cardcontainer":return dF(Z,nP(Z.items,F));case"cardimage":return hF(Z.src,Z.classes,Z.alt);case"cardtext":const we=Z.name.exists(Be=>X(F.cardText.highlightOn,Be))?I.from(F.cardText.matchText).getOr(""):"";return cF(tP(Z.text,we),Z.classes)}}),rP=(s,F,Z,ue)=>{const we=qe=>({isEnabled:()=>!ta.isDisabled(qe),setEnabled:ft=>{ta.set(qe,!ft),q($d(qe.element,"*"),gt=>{qe.getSystem().getByDom(gt).each(At=>{At.hasConfigured(ta)&&ta.set(At,!ft)})})}}),Be={dom:pF(s.label),optComponents:[I.some({dom:{tag:"div",classes:[P7,A2]},components:nP(s.items,ue)})]};return Qw({data:J3({text:I.none(),...s}),enabled:s.enabled,getApi:we,onAction:s.onAction,onSetup:s.onSetup,triggersSubmenu:!1,itemBehaviours:I.from(ue.itemBehaviours).getOr([])},Be,F,Z.providers)},oP=(s,F,Z,ue,we,Be,qe,ft=!0)=>{const gt=on=>({setActive:yn=>{za.set(on,yn)},isActive:()=>za.isOn(on),isEnabled:()=>!ta.isDisabled(on),setEnabled:yn=>ta.set(on,!yn)}),At=Ry({presets:Z,textContent:F?s.text:I.none(),htmlContent:I.none(),ariaLabel:s.text,iconContent:s.icon,shortcutContent:F?s.shortcut:I.none(),checkMark:F?I.some(uF(qe.icons)):I.none(),caret:I.none(),value:s.value},qe,ft),$t=s.text.filter(x(!F)).map(on=>Td.config(qe.tooltips.getConfig({tooltipText:qe.translate(on)})));return nl(Qw({data:J3(s),enabled:s.enabled,getApi:gt,onAction:on=>ue(s.value),onSetup:on=>(on.setActive(we),v),triggersSubmenu:!1,itemBehaviours:[...$t.toArray()]},At,Be,qe),{toggling:{toggleClass:J6,toggleOnExecute:!1,selected:s.active,exclusive:!0}})},bC=a5(qE(),WE()),iP=s=>({value:xF(s)}),yF=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,aP=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,bF=s=>yF.test(s)||aP.test(s),xF=s=>mn(s,"#").toUpperCase(),GY=s=>bF(s)?I.some({value:xF(s)}):I.none(),_F=s=>({value:s.value.replace(yF,(Z,ue,we,Be)=>ue+ue+we+we+Be+Be)}),wF=s=>{const F=_F(s),Z=aP.exec(F.value);return Z===null?["FFFFFF","FF","FF","FF"]:Z},xC=s=>{const F=s.toString(16);return(F.length===1?"0"+F:F).toUpperCase()},Y5=s=>{const F=xC(s.red)+xC(s.green)+xC(s.blue);return iP(F)},OF=Math.min,SF=Math.max,_C=Math.round,KY=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,JY=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,Hw=(s,F,Z,ue)=>({red:s,green:F,blue:Z,alpha:ue}),sP=s=>{const F=parseInt(s,10);return F.toString()===s&&F>=0&&F<=255},kF=s=>{let F,Z,ue;const we=(s.hue||0)%360;let Be=s.saturation/100,qe=s.value/100;if(Be=SF(0,OF(Be,1)),qe=SF(0,OF(qe,1)),Be===0)return F=Z=ue=_C(255*qe),Hw(F,Z,ue,1);const ft=we/60,gt=qe*Be,At=gt*(1-Math.abs(ft%2-1)),$t=qe-gt;switch(Math.floor(ft)){case 0:F=gt,Z=At,ue=0;break;case 1:F=At,Z=gt,ue=0;break;case 2:F=0,Z=gt,ue=At;break;case 3:F=0,Z=At,ue=gt;break;case 4:F=At,Z=0,ue=gt;break;case 5:F=gt,Z=0,ue=At;break;default:F=Z=ue=0}return F=_C(255*(F+$t)),Z=_C(255*(Z+$t)),ue=_C(255*(ue+$t)),Hw(F,Z,ue,1)},X5=s=>{const F=wF(s),Z=parseInt(F[1],16),ue=parseInt(F[2],16),we=parseInt(F[3],16);return Hw(Z,ue,we,1)},TF=(s,F,Z,ue)=>{const we=parseInt(s,10),Be=parseInt(F,10),qe=parseInt(Z,10),ft=parseFloat(ue);return Hw(we,Be,qe,ft)},wC=s=>{const F=KY.exec(s);if(F!==null)return I.some(TF(F[1],F[2],F[3],"1"));const Z=JY.exec(s);return Z!==null?I.some(TF(Z[1],Z[2],Z[3],Z[4])):I.none()},CF=s=>`rgba(${s.red},${s.green},${s.blue},${s.alpha})`,AF=Hw(255,0,0,1),eX=s=>{s.dispatch("SkinLoaded")},tX=(s,F)=>{s.dispatch("SkinLoadError",F)},nX=s=>{s.dispatch("ResizeEditor")},e4=(s,F)=>{s.dispatch("ResizeContent",F)},MF=(s,F)=>{s.dispatch("ScrollContent",F)},EF=(s,F)=>{s.dispatch("TextColorChange",F)},rX=(s,F)=>{s.dispatch("AfterProgressState",{state:F})},oX=(s,F)=>s.dispatch("ResolveName",{name:F.nodeName.toLowerCase(),target:F}),iX=(s,F)=>{s.dispatch("ToggleToolbarDrawer",{state:F})},aX=(s,F)=>{s.dispatch("StylesTextUpdate",F)},sX=(s,F)=>{s.dispatch("AlignTextUpdate",F)},lP=(s,F)=>{s.dispatch("FontSizeTextUpdate",F)},PF=(s,F)=>{s.dispatch("FontSizeInputTextUpdate",F)},RF=(s,F)=>{s.dispatch("BlocksTextUpdate",F)},lX=(s,F)=>{s.dispatch("FontFamilyTextUpdate",F)},t4=(s,F)=>()=>{s(),F()},Gh=s=>Zw(s,"NodeChange",F=>{F.setEnabled(s.selection.isEditable())}),cX=(s,F)=>Z=>{const ue=js(),we=()=>{Z.setActive(s.formatter.match(F));const Be=s.formatter.formatChanged(F,Z.setActive);ue.set(Be)};return s.initialized?we():s.once("init",we),()=>{s.off("init",we),ue.clear()}},OC=(s,F)=>Z=>{const ue=Gh(s)(Z),we=cX(s,F)(Z);return()=>{ue(),we()}},Zw=(s,F,Z)=>ue=>{const we=()=>Z(ue),Be=()=>{Z(ue),s.on(F,we)};return s.initialized?Be():s.once("init",Be),()=>{s.off("init",Be),s.off(F,we)}},LF=s=>F=>()=>{s.undoManager.transact(()=>{s.focus(),s.execCommand("mceToggleFormat",!1,F.format)})},Wm=(s,F)=>()=>s.execCommand(F);var qw=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const IF={},uX=(s,F=10)=>{const Z=qw.getItem(s),ue=n(Z)?JSON.parse(Z):[],Be=(At=>F-At.length<0?At.slice(0,F):At)(ue),qe=At=>{U(Be,At).each(ft),Be.unshift(At),Be.length>F&&Be.pop(),qw.setItem(s,JSON.stringify(Be))},ft=At=>{Be.splice(At,1)};return{add:qe,state:()=>Be.slice(0)}},DF=s=>Ge(IF,s).getOrThunk(()=>{const F=`tinymce-custom-colors-${s}`,Z=qw.getItem(F);if(p(Z)){const we=qw.getItem("tinymce-custom-colors");qw.setItem(F,a(we)?we:"[]")}const ue=uX(F,10);return IF[s]=ue,ue}),SC=s=>oe(DF(s).state(),F=>({type:"choiceitem",text:F,icon:"checkmark",value:F})),kC=(s,F)=>{DF(s).add(F)},Ww=(s,F,Z)=>({hue:s,saturation:F,value:Z}),TC=s=>{let F=0,Z=0,ue=0;const we=s.red/255,Be=s.green/255,qe=s.blue/255,ft=Math.min(we,Math.min(Be,qe)),gt=Math.max(we,Math.max(Be,qe));if(ft===gt)return ue=ft,Ww(0,0,ue*100);const At=we===ft?Be-qe:qe===ft?we-Be:qe-we;return F=we===ft?3:qe===ft?1:5,F=60*(F-At/(gt-ft)),Z=(gt-ft)/gt,ue=gt,Ww(Math.round(F),Math.round(Z*100),Math.round(ue*100))},fX=s=>TC(X5(s)),BF=s=>Y5(kF(s)),cP=s=>GY(s).orThunk(()=>wC(s).map(Y5)).getOrThunk(()=>{const F=document.createElement("canvas");F.height=1,F.width=1;const Z=F.getContext("2d");Z.clearRect(0,0,F.width,F.height),Z.fillStyle="#FFFFFF",Z.fillStyle=s,Z.fillRect(0,0,1,1);const ue=Z.getImageData(0,0,1,1).data,we=ue[0],Be=ue[1],qe=ue[2],ft=ue[3];return Y5(Hw(we,Be,qe,ft))}),G5="forecolor",n4="hilitecolor",zF=5,dX=s=>{const F=[];for(let Z=0;ZF=>F.options.get(s),uP="#000000",hX=s=>{const F=s.options.register,Z=we=>m(we,n)?{value:dX(we),valid:!0}:{valid:!1,message:"Must be an array of strings."},ue=we=>h(we)&&we>0?{value:we,valid:!0}:{valid:!1,message:"Must be a positive number."};F("color_map",{processor:Z,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),F("color_map_background",{processor:Z}),F("color_map_foreground",{processor:Z}),F("color_cols",{processor:ue,default:fP(s)}),F("color_cols_foreground",{processor:ue,default:FF(s,G5)}),F("color_cols_background",{processor:ue,default:FF(s,n4)}),F("custom_colors",{processor:"boolean",default:!0}),F("color_default_foreground",{processor:"string",default:uP}),F("color_default_background",{processor:"string",default:uP})},CC=(s,F)=>F===G5&&s.options.isSet("color_map_foreground")?Ly("color_map_foreground")(s):F===n4&&s.options.isSet("color_map_background")?Ly("color_map_background")(s):Ly("color_map")(s),fP=(s,F="default")=>Math.max(zF,Math.ceil(Math.sqrt(CC(s,F).length))),FF=(s,F)=>{const Z=Ly("color_cols")(s),ue=fP(s,F);return Z===fP(s)?ue:Z},NF=(s,F="default")=>Math.round((()=>F===G5?Ly("color_cols_foreground")(s):F===n4?Ly("color_cols_background")(s):Ly("color_cols")(s))()),$F=Ly("custom_colors"),pX=Ly("color_default_foreground"),mX=Ly("color_default_background"),gX="rgba(0, 0, 0, 0)",vX=s=>wC(s).exists(F=>F.alpha!==0),VF=s=>E0(s,F=>{if(Kn(F)){const Z=Aa(F,"background-color");return _t(vX(Z),Z)}else return I.none()}).getOr(gX),UF=(s,F)=>{const Z=Pt.fromDom(s.selection.getStart()),ue=F==="hilitecolor"?VF(Z):Aa(Z,"color");return wC(ue).map(we=>"#"+Y5(we).value)},yX=(s,F,Z)=>{s.undoManager.transact(()=>{s.focus(),s.formatter.apply(F,{value:Z}),s.nodeChanged()})},Iy=(s,F)=>{s.undoManager.transact(()=>{s.focus(),s.formatter.remove(F,{value:null},void 0,!0),s.nodeChanged()})},bX=s=>{s.addCommand("mceApplyTextcolor",(F,Z)=>{yX(s,F,Z)}),s.addCommand("mceRemoveTextcolor",F=>{Iy(s,F)})},jF=s=>{const F="choiceitem",Z={type:F,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return s?[Z,{type:F,text:"Custom color",icon:"color-picker",value:"custom"}]:[Z]},K5=(s,F,Z,ue)=>{Z==="custom"?YF(s)(Be=>{Be.each(qe=>{kC(F,qe),s.execCommand("mceApplyTextcolor",F,qe),ue(qe)})},UF(s,F).getOr(uP)):Z==="remove"?(ue(""),s.execCommand("mceRemoveTextcolor",F)):(ue(Z),s.execCommand("mceApplyTextcolor",F,Z))},hf=(s,F,Z)=>s.concat(SC(F).concat(jF(Z))),QF=(s,F,Z)=>ue=>{ue(hf(s,F,Z))},dP=(s,F,Z)=>{const ue=F==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";s.setIconFill(ue,Z)},HF=(s,F)=>{s.setTooltip(F)},ZF=(s,F)=>Z=>{const ue=UF(s,F);return wt(ue,Z.toUpperCase())},hP=(s,F,Z)=>{if(at(Z))return F==="forecolor"?"Text color":"Background color";const ue=F==="forecolor"?"Text color {0}":"Background color {0}",we=hf(CC(s,F),F,!1),Be=ce(we,qe=>qe.value===Z).getOr({text:""}).text;return s.translate([ue,s.translate(Be)])},qF=(s,F,Z,ue)=>{s.ui.registry.addSplitButton(F,{tooltip:hP(s,Z,ue.get()),presets:"color",icon:F==="forecolor"?"text-color":"highlight-bg-color",select:ZF(s,Z),columns:NF(s,Z),fetch:QF(CC(s,Z),Z,$F(s)),onAction:we=>{K5(s,Z,ue.get(),v)},onItemAction:(we,Be)=>{K5(s,Z,Be,qe=>{ue.set(qe),EF(s,{name:F,color:qe})})},onSetup:we=>{dP(we,F,ue.get());const Be=qe=>{qe.name===F&&(dP(we,qe.name,qe.color),HF(we,hP(s,Z,qe.color)))};return s.on("TextColorChange",Be),t4(Gh(s)(we),()=>{s.off("TextColorChange",Be)})}})},WF=(s,F,Z,ue,we)=>{s.ui.registry.addNestedMenuItem(F,{text:ue,icon:F==="forecolor"?"text-color":"highlight-bg-color",onSetup:Be=>(HF(Be,hP(s,Z,we.get())),dP(Be,F,we.get()),Gh(s)(Be)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:ZF(s,Z),initData:{storageKey:Z},onAction:Be=>{K5(s,Z,Be.value,qe=>{we.set(qe),EF(s,{name:F,color:qe})})}}]})},YF=s=>(F,Z)=>{let ue=!1;const we=ft=>{const At=ft.getData().colorpicker;ue?(F(I.from(At)),ft.close()):s.windowManager.alert(s.translate(["Invalid hex color code: {0}",At]))},Be=(ft,gt)=>{gt.name==="hex-valid"&&(ue=gt.value)},qe={colorpicker:Z};s.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:qe,onAction:Be,onSubmit:we,onClose:v,onCancel:()=>{F(I.none())}})},xX=s=>{bX(s);const F=pX(s),Z=mX(s),ue=xi(F),we=xi(Z);qF(s,"forecolor","forecolor",ue),qF(s,"backcolor","hilitecolor",we),WF(s,"forecolor","forecolor","Text color",ue),WF(s,"backcolor","hilitecolor","Background color",we)},pP=(s,F,Z,ue,we,Be,qe,ft)=>{const gt=V5(F),$t=_X(F,Z,ue,we!=="color"?"normal":"color",Be,qe,ft);return V7(s,gt,$t,ue,{menuType:we})},_X=(s,F,Z,ue,we,Be,qe)=>It(oe(s,ft=>ft.type==="choiceitem"?G7(ft).fold(ex,gt=>I.some(oP(gt,Z===1,ue,F,Be(gt.value),we,qe,V5(s)))):I.none())),AC=(s,F)=>{const Z=M2(F);return s===1?{mode:"menu",moveOnTab:!0}:s==="auto"?{mode:"grid",selector:"."+Z.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(F==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:we=>F==="color"?aa(we.element,"[aria-checked=true]"):I.none()}},wX=(s,F)=>s===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:s==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:F==="color"?".tox-swatches__row":".tox-collection__group",cell:F==="color"?`.${C7}`:`.${K6}`}},OX=(s,F)=>{const Z=SX(s,F),ue=F.colorinput.getColorCols(s.initData.storageKey),we="color",qe={...pP(fi("menu-value"),Z,ft=>{s.onAction({value:ft})},ue,we,r1.CLOSE_ON_EXECUTE,s.select.getOr(D),F.shared.providers),markers:M2(we),movement:AC(ue,we),showMenuRole:!1};return{type:"widget",data:{value:fi("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[bC.widget(Pw.sketch(qe))]}},SX=(s,F)=>{const Z=s.initData.allowCustomColors&&F.colorinput.hasCustomColors();return s.initData.colors.fold(()=>hf(F.colorinput.getColors(s.initData.storageKey),s.initData.storageKey,Z),ue=>ue.concat(jF(Z)))},XF=fi("cell-over"),GF=fi("cell-execute"),kX=s=>(F,Z)=>s.shared.providers.translate(["{0} columns, {1} rows",Z,F]),TX=(s,F,Z)=>{const ue=qe=>Ri(qe,XF,{row:s,col:F}),we=qe=>Ri(qe,GF,{row:s,col:F}),Be=(qe,ft)=>{ft.stop(),we(qe)};return vi({dom:{tag:"div",attributes:{role:"button","aria-label":Z}},behaviours:Bo([Ca("insert-table-picker-cell",[fo(Om(),oa.focus),fo(cp(),we),fo(R0(),Be),fo(up(),Be)]),za.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),oa.config({onFocus:ue})])})},CX=(s,F,Z)=>{const ue=[];for(let we=0;we{for(let Be=0;Beye(s,F=>oe(F,na)),KF=(s,F)=>ro(`${F}x${s}`),EX={inserttable:(s,F)=>{const we=kX(F),Be=CX(we,10,10),qe=KF(0,0),ft=qs({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[qe],behaviours:Bo([da.config({})])});return{type:"widget",data:{value:fi("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[bC.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:MX(Be).concat(ft.asSpec()),behaviours:Bo([Ca("insert-table-picker",[Ll(gt=>{da.set(ft.get(gt),[qe])}),L_(XF,(gt,At,$t)=>{const{row:on,col:yn}=$t.event;AX(Be,on,yn,10,10),da.set(ft.get(gt),[KF(on+1,yn+1)])}),L_(GF,(gt,At,$t)=>{const{row:on,col:yn}=$t.event;s.onAction({numRows:on+1,numColumns:yn+1}),Sa(gt,L0())})]),Li.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:OX},JF=(s,F)=>Ge(EX,s.fancytype).map(Z=>Z(s,F)),PX=(s,F,Z,ue=!0,we=!1)=>{const Be=we?fF(Z.icons):WY(Z.icons),qe=gt=>({isEnabled:()=>!ta.isDisabled(gt),setEnabled:At=>ta.set(gt,!At),setIconFill:(At,$t)=>{aa(gt.element,`svg path[class="${At}"], rect[class="${At}"]`).each(on=>{fr(on,"fill",$t)})},setTooltip:At=>{const $t=Z.translate(At);fr(gt.element,"aria-label",$t)}}),ft=Ry({presets:"normal",iconContent:s.icon,textContent:s.text,htmlContent:I.none(),ariaLabel:s.text,caret:I.some(Be),checkMark:I.none(),shortcutContent:s.shortcut},Z,ue);return Qw({data:J3(s),getApi:qe,enabled:s.enabled,onAction:v,onSetup:s.onSetup,triggersSubmenu:!0,itemBehaviours:[]},ft,F,Z)},eN=(s,F,Z,ue=!0)=>{const we=qe=>({isEnabled:()=>!ta.isDisabled(qe),setEnabled:ft=>ta.set(qe,!ft)}),Be=Ry({presets:"normal",iconContent:s.icon,textContent:s.text,htmlContent:I.none(),ariaLabel:s.text,caret:I.none(),checkMark:I.none(),shortcutContent:s.shortcut},Z,ue);return Qw({data:J3(s),getApi:we,enabled:s.enabled,onAction:s.onAction,onSetup:s.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,F,Z)},RX=s=>({type:"separator",dom:{tag:"div",classes:[K6,A7]},components:s.text.map(ro).toArray()}),LX=(s,F,Z,ue=!0)=>{const we=qe=>({setActive:ft=>{za.set(qe,ft)},isActive:()=>za.isOn(qe),isEnabled:()=>!ta.isDisabled(qe),setEnabled:ft=>ta.set(qe,!ft)}),Be=Ry({iconContent:s.icon,textContent:s.text,htmlContent:I.none(),ariaLabel:s.text,checkMark:I.some(uF(Z.icons)),caret:I.none(),shortcutContent:s.shortcut,presets:"normal",meta:s.meta},Z,ue);return nl(Qw({data:J3(s),enabled:s.enabled,getApi:we,onAction:s.onAction,onSetup:s.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,F,Z),{toggling:{toggleClass:J6,toggleOnExecute:!1,selected:s.active},role:s.role.getOrUndefined()})},IX=vF,mP=RX,DX=eN,BX=PX,zX=LX,FX=JF,tN=rP;var $X=Object.freeze({__proto__:null,getCoupled:(s,F,Z,ue)=>Z.getOrCreate(s,F,ue),getExistingCoupled:(s,F,Z,ue)=>Z.getExisting(s,F,ue)}),nN=[rr("others",Et(Hi.value,le()))],VX=Object.freeze({__proto__:null,init:()=>{const s={},F=(Be,qe)=>{if(ke(Be.others).length===0)throw new Error("Cannot find any known coupled components");return Ge(s,qe)},Z=(Be,qe,ft)=>F(qe,ft).getOrThunk(()=>{const At=Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft)(Be),$t=Be.getSystem().build(At);return s[ft]=$t,$t}),ue=(Be,qe,ft)=>F(qe,ft).orThunk(()=>(Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft),I.none())),we=x({});return kh({readState:we,getExisting:ue,getOrCreate:Z})}});const lu=lf({fields:nN,name:"coupling",apis:$X,state:VX}),gP=s=>{let F=I.none(),Z=[];const ue=At=>gP($t=>{we(on=>{$t(At(on))})}),we=At=>{qe()?gt(At):Z.push(At)},Be=At=>{qe()||(F=I.some(At),ft(Z),Z=[])},qe=()=>F.isSome(),ft=At=>{q(At,gt)},gt=At=>{F.each($t=>{setTimeout(()=>{At($t)},0)})};return s(Be),{get:we,map:ue,isReady:qe}},UX={nu:gP,pure:s=>gP(F=>{F(s)})},jX=s=>{setTimeout(()=>{throw s},0)},r4=s=>{const F=gt=>{s().then(gt,jX)};return{map:gt=>r4(()=>s().then(gt)),bind:gt=>r4(()=>s().then(At=>gt(At).toPromise())),anonBind:gt=>r4(()=>s().then(()=>gt.toPromise())),toLazy:()=>UX.nu(F),toCached:()=>{let gt=null;return r4(()=>(gt===null&&(gt=s()),gt))},toPromise:s,get:F}},uh={nu:s=>r4(()=>new Promise(s)),pure:s=>r4(()=>Promise.resolve(s))},rN=x("sink"),oN=x(Jp({name:rN(),overrides:x({dom:{tag:"div"},behaviours:Bo([ed.config({useFixed:k})]),events:pl([Am(Bp()),Am(Oh()),Am(R0())])})})),vP=(s,F)=>{const Z=s.getHotspot(F).getOr(F),ue="hotspot",we=s.getAnchorOverrides();return s.layouts.fold(()=>({type:ue,hotspot:Z,overrides:we}),Be=>({type:ue,hotspot:Z,overrides:we,layouts:Be}))},QX=(s,F,Z)=>{const ue=s.fetch;return ue(Z).map(F)},HX=(s,F,Z,ue,we,Be,qe)=>{const ft=QX(s,F,ue),gt=iN(ue,s);return ft.map(At=>At.bind($t=>{const on=$t.menus[$t.primary];return I.from(on).each(yn=>{s.listRole.each(wn=>{yn.role=wn})}),I.from(Rw.sketch({...Be.menu(),uid:j0(""),data:$t,highlightOnOpen:qe,onOpenMenu:(yn,wn)=>{const Mn=gt().getOrDie();ed.position(Mn,wn,{anchor:Z}),ps.decloak(we)},onOpenSubmenu:(yn,wn,Mn)=>{const Xn=gt().getOrDie();ed.position(Xn,Mn,{anchor:{type:"submenu",item:wn}}),ps.decloak(we)},onRepositionMenu:(yn,wn,Mn)=>{const Xn=gt().getOrDie();ed.position(Xn,wn,{anchor:Z}),q(Mn,Br=>{ed.position(Xn,Br.triggeredMenu,{anchor:{type:"submenu",item:Br.triggeringItem}})})},onEscape:()=>(oa.focus(ue),ps.close(we),I.some(!0))}))}))},MC=(s,F,Z,ue,we,Be,qe)=>{const ft=vP(s,Z);return HX(s,F,ft,Z,ue,we,qe).map(At=>(At.fold(()=>{ps.isOpen(ue)&&ps.close(ue)},$t=>{ps.cloak(ue),ps.open(ue,$t),Be(ue)}),ue))},ZX=(s,F,Z,ue,we,Be,qe)=>(ps.close(ue),uh.pure(ue)),yP=(s,F,Z,ue,we,Be)=>{const qe=lu.getCoupled(Z,"sandbox");return(ps.isOpen(qe)?ZX:MC)(s,F,Z,qe,ue,we,Be)},bP=(s,F,Z)=>{const ue=as.getCurrent(F).getOr(F),we=cc(s.element);Z?ko(ue.element,"min-width",we+"px"):la(ue.element,we)},iN=(s,F)=>s.getSystem().getByUid(F.uid+"-"+rN()).map(Z=>()=>Hi.value(Z)).getOrThunk(()=>F.lazySink.fold(()=>()=>Hi.error(new Error("No internal sink is specified, nor could an external sink be found")),Z=>()=>Z(s))),aN=s=>{ps.getState(s).each(F=>{Rw.repositionMenus(F)})},xP=(s,F,Z)=>{const ue=_u(),we=(ft,gt)=>{const At=vP(s,F);ue.link(F.element),s.matchWidth&&bP(At.hotspot,gt,s.useMinWidth),s.onOpen(At,ft,gt),Z!==void 0&&Z.onOpen!==void 0&&Z.onOpen(ft,gt)},Be=(ft,gt)=>{ue.unlink(F.element),qe().getOr(gt).element.dom.dispatchEvent(new window.FocusEvent("focusout")),Z!==void 0&&Z.onClose!==void 0&&Z.onClose(ft,gt)},qe=iN(F,s);return{dom:{tag:"div",classes:s.sandboxClasses,attributes:{id:ue.id}},behaviours:Vm.augment(s.sandboxBehaviours,[hi.config({store:{mode:"memory",initialValue:F}}),ps.config({onOpen:we,onClose:Be,isPartOf:(ft,gt,At)=>Vc(gt,At)||Vc(F,At),getAttachPoint:()=>qe().getOrDie()}),as.config({find:ft=>ps.getState(ft).bind(gt=>as.getCurrent(gt))}),Wu.config({channels:{...dv({isExtraPart:D}),..._3({doReposition:aN})}})])}},_P=s=>{const F=lu.getCoupled(s,"sandbox");aN(F)},EC=()=>[mr("sandboxClasses",[]),Vm.field("sandboxBehaviours",[as,Wu,ps,hi])],qX=x([Sn("dom"),Sn("fetch"),Ra("onOpen"),bd("onExecute"),mr("getHotspot",I.some),mr("getAnchorOverrides",x({})),l0(),Pf("dropdownBehaviours",[za,lu,Li,oa]),Sn("toggleClass"),mr("eventOrder",{}),Hr("lazySink"),mr("matchWidth",!1),mr("useMinWidth",!1),Hr("role"),Hr("listRole")].concat(EC())),WX=x([Um({schema:[U0(),mr("fakeFocus",!1)],name:"menu",defaults:s=>({onExecute:s.onExecute})}),oN()]),sN=(s,F,Z,ue)=>{const we=$t=>Ge(s.dom,"attributes").bind(on=>Ge(on,$t)),Be=$t=>{ps.getState($t).each(on=>{Rw.highlightPrimary(on)})},qe=($t,on,yn)=>yP(s,R,$t,ue,on,yn),ft=$t=>{qe($t,Be,Xh.HighlightMenuAndItem).get(v)},gt={expand:$t=>{za.isOn($t)||qe($t,v,Xh.HighlightNone).get(v)},open:$t=>{za.isOn($t)||qe($t,v,Xh.HighlightMenuAndItem).get(v)},refetch:$t=>lu.getExistingCoupled($t,"sandbox").fold(()=>qe($t,v,Xh.HighlightMenuAndItem).map(v),yn=>MC(s,R,$t,yn,ue,v,Xh.HighlightMenuAndItem).map(v)),isOpen:za.isOn,close:$t=>{za.isOn($t)&&qe($t,v,Xh.HighlightMenuAndItem).get(v)},repositionMenus:$t=>{za.isOn($t)&&_P($t)}},At=($t,on)=>(Fp($t),I.some(!0));return{uid:s.uid,dom:s.dom,components:F,behaviours:Rf(s.dropdownBehaviours,[za.config({toggleClass:s.toggleClass,aria:{mode:"expanded"}}),lu.config({others:{sandbox:$t=>xP(s,$t,{onOpen:()=>za.on($t),onClose:()=>za.off($t)})}}),Li.config({mode:"special",onSpace:At,onEnter:At,onDown:($t,on)=>{if(p0.isOpen($t)){const yn=lu.getCoupled($t,"sandbox");Be(yn)}else p0.open($t);return I.some(!0)},onEscape:($t,on)=>p0.isOpen($t)?(p0.close($t),I.some(!0)):I.none()}),oa.config({})]),events:T6(I.some(ft)),eventOrder:{...s.eventOrder,[cp()]:["disabling","toggling","alloy.base.behaviour"]},apis:gt,domModification:{attributes:{"aria-haspopup":s.listRole.getOr("true"),...s.role.fold(()=>({}),$t=>({role:$t})),...s.dom.tag==="button"?{type:we("type").getOr("button")}:{}}}}},p0=ch({name:"Dropdown",configFields:qX(),partFields:WX(),factory:sN,apis:{open:(s,F)=>s.open(F),refetch:(s,F)=>s.refetch(F),expand:(s,F)=>s.expand(F),close:(s,F)=>s.close(F),isOpen:(s,F)=>s.isOpen(F),repositionMenus:(s,F)=>s.repositionMenus(F)}}),YX=s=>{switch(s.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:s}}},XX=s=>{const F=hi.getValue(s),Z=E2(s).map(Uz);p0.refetch(F).get(()=>{const ue=lu.getCoupled(F,"sandbox");Z.each(we=>E2(ue).each(Be=>_Y(Be,we)))})},GX=(s,F)=>{KX(s).each(Z=>{A1(s,Z.element,F.event.eventType,F.event.interactionEvent)})},KX=s=>ps.getState(s).bind(ri.getHighlighted).bind(ri.getHighlighted),JX=s=>$l(s.element,nC)?I.some(s.element):aa(s.element,"."+nC),J5=(s,F,Z)=>{F7(s).each(ue=>{wY(ue,Z),JX(F).each(Be=>{co(Be,"id").each(qe=>fr(ue.element,"aria-controls",qe))})}),fr(Z.element,"aria-selected","true")},eG=(s,F,Z)=>{fr(Z.element,"aria-selected","false")},PC=s=>{F7(s).each(F=>oa.focus(F))},tG=s=>lu.getExistingCoupled(s,"sandbox").bind(E2).map(Uz).map(Z=>Z.fetchPattern).getOr("");var RC;(function(s){s[s.ContentFocus=0]="ContentFocus",s[s.UiFocus=1]="UiFocus"})(RC||(RC={}));const nG=(s,F,Z,ue,we)=>{const Be=Z.shared.providers,qe=ft=>we?{...ft,shortcut:I.none(),icon:ft.text.isSome()?I.none():ft.icon}:ft;switch(s.type){case"menuitem":return NY(s).fold(ex,ft=>I.some(DX(qe(ft),F,Be,ue)));case"nestedmenuitem":return VY(s).fold(ex,ft=>I.some(BX(qe(ft),F,Be,ue,we)));case"togglemenuitem":return jY(s).fold(ex,ft=>I.some(zX(qe(ft),F,Be,ue)));case"separator":return Jz(s).fold(ex,ft=>I.some(mP(ft)));case"fancymenuitem":return iF(s).fold(ex,ft=>FX(ft,Z));default:return console.error("Unknown item in general menu",s),I.none()}},rG=(s,F,Z,ue,we,Be,qe)=>{const ft=ue===1,gt=!ft||V5(s);return It(oe(s,At=>{switch(At.type){case"separator":return PY(At).fold(ex,$t=>I.some(mP($t)));case"cardmenuitem":return X7(At).fold(ex,$t=>I.some(tN({...$t,onAction:on=>{$t.onAction(on),Z($t.value,$t.meta)}},we,Be,{itemBehaviours:mF($t.meta,Be,I.none()),cardText:{matchText:F,highlightOn:qe}})));case"autocompleteitem":default:return RY(At).fold(ex,$t=>I.some(IX($t,F,ft,"normal",Z,we,Be,gt)))}}))},oG=(s,F,Z,ue,we,Be)=>{const qe=V5(F),ft=It(oe(F,$t=>{const on=wn=>we?!ht(wn,"text"):qe,yn=wn=>nG(wn,Z,ue,on(wn),we);return $t.type==="nestedmenuitem"&&$t.getSubmenuItems().length<=0?yn({...$t,enabled:!1}):yn($t)})),gt=YX(Be);return(we?kY:V7)(s,qe,ft,1,gt)},o4=s=>Rw.singleData(s.value,s),i4=(s,F,Z,ue)=>{const we=AC(F,ue),Be=M2(ue);return{data:o4({...s,movement:we,menuBehaviours:K3.unnamedEvents(F!=="auto"?[]:[Ll((qe,ft)=>{pC(qe,4,Be.item).each(({numColumns:gt,numRows:At})=>{Li.setGridSize(qe,At,gt)})})])}),menu:{markers:M2(ue),fakeFocus:Z===RC.ContentFocus}}},lN=s=>a2.create(Pt.fromDom(s.startContainer),s.startOffset,Pt.fromDom(s.endContainer),s.endOffset),aG={register:(s,F)=>{const Z=fi("autocompleter"),ue=xi(!1),we=xi(!1),Be=os(),qe=vi(hc.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:Z}},components:[],fireDismissalEventInstead:{},inlineBehaviours:Bo([Ca("dismissAutocompleter",[fo(I0(),()=>on()),fo(Cm(),(or,Mr)=>{co(Mr.event.target,"id").each(kr=>fr(Pt.fromDom(s.getBody()),"aria-activedescendant",kr))})])]),lazySink:F.getSink})),ft=()=>hc.isOpen(qe),gt=we.get,At=()=>{if(ft()){hc.hide(qe),s.dom.remove(Z,!1);const or=Pt.fromDom(s.getBody());co(or,"aria-owns").filter(Mr=>Mr===Z).each(()=>{po(or,"aria-owns"),po(or,"aria-activedescendant")})}},$t=()=>hc.getContent(qe).bind(or=>De(or.components(),0)),on=()=>s.execCommand("mceAutocompleterClose"),yn=or=>{const Mr=Oe(or,kr=>I.from(kr.columns)).getOr(1);return ye(or,kr=>{const yo=kr.items;return rG(yo,kr.matchText,(Xr,No)=>{const Jo={hide:()=>on(),reload:ho=>{At(),s.execCommand("mceAutocompleterReload",!1,{fetchOptions:ho})}};s.execCommand("mceAutocompleterRefreshActiveRange"),Be.get().each(ho=>{ue.set(!0),kr.onAction(Jo,ho,Xr,No),ue.set(!1)})},Mr,r1.BUBBLE_TO_SANDBOX,F,kr.highlightOn)})},wn=(or,Mr)=>{const kr=Oe(or,yo=>I.from(yo.columns)).getOr(1);hc.showMenuAt(qe,{anchor:{type:"selection",getSelection:()=>Be.get().map(lN),root:Pt.fromDom(s.getBody())}},i4(V7("autocompleter-value",!0,Mr,kr,{menuType:"normal"}),kr,RC.ContentFocus,"normal")),$t().each(ri.highlightFirst)},Mn=or=>{const Mr=yn(or);Mr.length>0?(wn(or,Mr),fr(Pt.fromDom(s.getBody()),"aria-owns",Z),s.inline||Xn()):At()},Xn=()=>{s.dom.get(Z)&&s.dom.remove(Z,!1);const or=s.getDoc().documentElement,Mr=s.selection.getNode(),kr=wS(qe.element);ra(kr,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${Mr.offsetTop}px`,left:`${Mr.offsetLeft}px`}),s.dom.add(or,kr.dom),aa(kr,'[role="menu"]').each(yo=>{ga(yo,"position"),ga(yo,"max-height")})};s.on("AutocompleterStart",({lookupData:or})=>{we.set(!0),ue.set(!1),Mn(or)}),s.on("AutocompleterUpdate",({lookupData:or})=>Mn(or)),s.on("AutocompleterUpdateActiveRange",({range:or})=>Be.set(or)),s.on("AutocompleterEnd",()=>{At(),we.set(!1),ue.set(!1),Be.clear()});const Br={cancelIfNecessary:on,isMenuOpen:ft,isActive:gt,isProcessingAction:ue.get,getMenu:$t};Rz.setup(Br,s)}},ek=(s,F,Z)=>Fs(s,F,Z).isSome(),cN=(s,F)=>{let Z=null;return{cancel:()=>{Z!==null&&(clearTimeout(Z),Z=null)},schedule:(...Be)=>{Z=setTimeout(()=>{s.apply(null,Be),Z=null},F)}}},uN=5,sG=400,fN=s=>{const F=s.raw;return F.touches===void 0||F.touches.length!==1?I.none():I.some(F.touches[0])},lG=(s,F)=>{const Z=Math.abs(s.clientX-F.x),ue=Math.abs(s.clientY-F.y);return Z>uN||ue>uN},cG=s=>{const F=os(),Z=xi(!1),ue=cN(At=>{s.triggerEvent(Xf(),At),Z.set(!0)},sG),we=At=>(fN(At).each($t=>{ue.cancel();const on={x:$t.clientX,y:$t.clientY,target:At.target};ue.schedule(At),Z.set(!1),F.set(on)}),I.none()),Be=At=>(ue.cancel(),fN(At).each($t=>{F.on(on=>{lG($t,on)&&F.clear()})}),I.none()),qe=At=>{ue.cancel();const $t=on=>so(on.target,At.target);return F.get().filter($t).map(on=>Z.get()?(At.prevent(),!1):s.triggerEvent(up(),At))},ft=pd([{key:_m(),value:we},{key:Yg(),value:Be},{key:wm(),value:qe}]);return{fireIfReady:(At,$t)=>Ge(ft,$t).bind(on=>on(At))}},uG=s=>s.raw.which===Ms[0]&&!X(["input","textarea"],ar(s.target))&&!ek(s.target,'[contenteditable="true"]'),fG=(s,F)=>{const Z={stopBackspace:!0,...F},ue=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],we=cG(Z),Be=oe(ue.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),wn=>wd(s,wn,Mn=>{we.fireIfReady(Mn,wn).each(Br=>{Br&&Mn.kill()}),Z.triggerEvent(wn,Mn)&&Mn.kill()})),qe=os(),ft=wd(s,"paste",wn=>{we.fireIfReady(wn,"paste").each(Xn=>{Xn&&wn.kill()}),Z.triggerEvent("paste",wn)&&wn.kill(),qe.set(setTimeout(()=>{Z.triggerEvent(Gg(),wn)},0))}),gt=wd(s,"keydown",wn=>{Z.triggerEvent("keydown",wn)?wn.kill():Z.stopBackspace&&uG(wn)&&wn.prevent()}),At=wd(s,"focusin",wn=>{Z.triggerEvent("focusin",wn)&&wn.kill()}),$t=os(),on=wd(s,"focusout",wn=>{Z.triggerEvent("focusout",wn)&&wn.kill(),$t.set(setTimeout(()=>{Z.triggerEvent(Xg(),wn)},0))});return{unbind:()=>{q(Be,wn=>{wn.unbind()}),gt.unbind(),At.unbind(),on.unbind(),ft.unbind(),qe.on(clearTimeout),$t.on(clearTimeout)}}},dN=(s,F)=>{const Z=Ge(s,"target").getOr(F);return xi(Z)},hN=(s,F)=>{const Z=xi(!1),ue=xi(!1);return{stop:()=>{Z.set(!0)},cut:()=>{ue.set(!0)},isStopped:Z.get,isCut:ue.get,event:s,setSource:F.set,getSource:F.get}},a4=s=>{const F=xi(!1);return{stop:()=>{F.set(!0)},cut:v,isStopped:F.get,isCut:D,event:s,setSource:C("Cannot set source of a broadcasted event"),getSource:C("Cannot get source of a broadcasted event")}},xv=Ds.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),pN=(s,F,Z,ue,we,Be)=>{const qe=s(F,ue),ft=hN(Z,we);return qe.fold(()=>(Be.logEventNoHandlers(F,ue),xv.complete()),gt=>{const At=gt.descHandler;return qh(At)(ft),ft.isStopped()?(Be.logEventStopped(F,gt.element,At.purpose),xv.stopped()):ft.isCut()?(Be.logEventCut(F,gt.element,At.purpose),xv.complete()):br(gt.element).fold(()=>(Be.logNoParent(F,gt.element,At.purpose),xv.complete()),on=>(Be.logEventResponse(F,gt.element,At.purpose),xv.resume(on)))})},wP=(s,F,Z,ue,we,Be)=>pN(s,F,Z,ue,we,Be).fold(k,qe=>wP(s,F,Z,qe,we,Be),D),mN=(s,F,Z,ue,we)=>{const Be=dN(Z,ue);return pN(s,F,Z,ue,Be,we)},LC=(s,F,Z)=>{const ue=a4(F);return q(s,we=>{const Be=we.descHandler;qh(Be)(ue)}),ue.isStopped()},dG=(s,F,Z,ue)=>s4(s,F,Z,Z.target,ue),s4=(s,F,Z,ue,we)=>{const Be=dN(Z,ue);return wP(s,F,Z,ue,Be,we)},tk=(s,F)=>({element:s,descHandler:F}),hG=(s,F)=>({id:s,descHandler:F}),pG=()=>{const s={},F=(qe,ft,gt)=>{We(gt,(At,$t)=>{const on=s[$t]!==void 0?s[$t]:{};on[ft]=Lm(At,qe),s[$t]=on})},Z=(qe,ft)=>sy(ft).bind(gt=>Ge(qe,gt)).map(gt=>tk(ft,gt));return{registerId:F,unregisterId:qe=>{We(s,(ft,gt)=>{ht(ft,qe)&&delete ft[qe]})},filterByType:qe=>Ge(s,qe).map(ft=>je(ft,(gt,At)=>hG(At,gt))).getOr([]),find:(qe,ft,gt)=>Ge(s,ft).bind(At=>E0(gt,$t=>Z(At,$t),qe))}},mG=()=>{const s=pG(),F={},Z=At=>{const $t=At.element;return sy($t).getOrThunk(()=>TS("uid-",At.element))},ue=(At,$t)=>{const on=F[$t];if(on===At)Be(At);else throw new Error('The tagId "'+$t+'" is already used by: '+rh(on.element)+` Cannot use it for: `+rh(At.element)+` -The conflicting element is`+(Er(on.element)?" ":" not ")+"already in the DOM")},we=At=>{const $t=Z(At);pt(F,$t)&&ue(At,$t);const on=[At];s.registerId(on,$t,At.events),F[$t]=At},Be=At=>{sy(At.element).each($t=>{delete F[$t],s.unregisterId($t)})};return{find:(At,$t,on)=>s.find(At,$t,on),filter:At=>s.filterByType(At),register:we,unregister:Be,getById:At=>Ge(F,At)}},bv=Yh({name:"Container",factory:s=>{const{attributes:F,...Z}=s.dom;return{uid:s.uid,dom:{tag:"div",attributes:{role:"presentation",...F},...Z},components:s.components,behaviours:vw(s.containerBehaviours),events:s.events,domModification:s.domModification,eventOrder:s.eventOrder}},configFields:[mr("components",[]),Ef("containerBehaviours",[]),mr("events",{}),mr("domModification",{}),mr("eventOrder",{})]}),wP=s=>{const F=or=>br(s.element).fold(k,Mr=>so(or,Mr)),Z=mG(),ue=(or,Mr)=>Z.find(F,or,Mr),we=fG(s.element,{triggerEvent:(or,Mr)=>oh(or,Mr.target,kr=>dG(ue,or,Mr,kr))}),Be={debugInfo:x("real"),triggerEvent:(or,Mr,kr)=>{oh(or,Mr,yo=>s4(ue,or,kr,Mr,yo))},triggerFocus:(or,Mr)=>{sy(or).fold(()=>{bd(or)},kr=>{oh(km(),or,yo=>(mN(ue,km(),{originator:Mr,kill:v,prevent:v,target:or},or,yo),!1))})},triggerEscape:(or,Mr)=>{Be.triggerEvent("keydown",or.element,Mr.event)},getByUid:or=>Xn(or),getByDom:or=>Br(or),build:vi,buildOrPatch:Ti,addToGui:or=>{gt(or)},removeFromGui:or=>{At(or)},addToWorld:or=>{qe(or)},removeFromWorld:or=>{ft(or)},broadcast:or=>{yn(or)},broadcastOn:(or,Mr)=>{wn(or,Mr)},broadcastEvent:(or,Mr)=>{Mn(or,Mr)},isConnected:k},qe=or=>{or.connect(Be),_r(or.element)||(Z.register(or),q(or.components(),qe),Be.triggerEvent(zp(),or.element,{target:or.element}))},ft=or=>{_r(or.element)||(q(or.components(),ft),Z.unregister(or)),or.disconnect()},gt=or=>{X0(s,or)},At=or=>{cv(or)},$t=()=>{we.unbind(),zl(s.element)},on=or=>{const Mr=Z.filter(lp());q(Mr,kr=>{const yo=kr.descHandler;qh(yo)(or)})},yn=or=>{on({universal:!0,data:or})},wn=(or,Mr)=>{on({universal:!1,channels:or,data:Mr})},Mn=(or,Mr)=>{const kr=Z.filter(or);return RC(kr,Mr)},Xn=or=>Z.getById(or).fold(()=>Hi.error(new Error('Could not find component with uid: "'+or+'" in system.')),Hi.value),Br=or=>{const Mr=sy(or).getOr("not found");return Xn(Mr)};return qe(s),{root:s,element:s.element,destroy:$t,add:gt,remove:At,getByUid:Xn,getByDom:Br,addToWorld:qe,removeFromWorld:ft,broadcast:yn,broadcastOn:wn,broadcastEvent:Mn}},LC=(s,F)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:oe(s.items,F.interpreter)}),gG=x([mr("prefix","form-field"),Ef("fieldBehaviours",[as,hi])]),OP=x([Jp({schema:[Sn("dom")],name:"label"}),Jp({factory:{sketch:s=>({uid:s.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:s.text}})},schema:[Sn("text")],name:"aria-descriptor"}),Sd({factory:{sketch:s=>{const F=Hs(s,["factory"]);return s.factory.sketch(F)}},schema:[Sn("factory")],name:"field"})]),vG=(s,F,Z,ue)=>{const we=Pf(s.fieldBehaviours,[as.config({find:ft=>Fo(ft,s,"field")}),hi.config({store:{mode:"manual",getValue:ft=>as.getCurrent(ft).bind(hi.getValue),setValue:(ft,gt)=>{as.getCurrent(ft).each(At=>{hi.setValue(At,gt)})}}})]),Be=hl([Ll((ft,gt)=>{const At=s6(ft,s,["label","field","aria-descriptor"]);At.field().each($t=>{const on=fi(s.prefix);At.label().each(yn=>{fr(yn.element,"for",on),fr($t.element,"id",on)}),At["aria-descriptor"]().each(yn=>{const wn=fi(s.prefix);fr(yn.element,"id",wn),fr($t.element,"aria-describedby",wn)})})})]),qe={getField:ft=>Fo(ft,s,"field"),getLabel:ft=>Fo(ft,s,"label")};return{uid:s.uid,dom:s.dom,components:F,behaviours:we,events:Be,apis:qe}},Js=ch({name:"FormField",configFields:gG(),partFields:OP(),factory:vG,apis:{getField:(s,F)=>s.getField(F),getLabel:(s,F)=>s.getLabel(F)}});var yG=tinymce.util.Tools.resolve("tinymce.html.Entities");const l4=(s,F,Z,ue)=>{const we=xG(s,F,Z,ue);return Js.sketch(we)},bG=(s,F)=>l4(s,F,[],[]),xG=(s,F,Z,ue)=>({dom:SP(Z),components:s.toArray().concat([F]),fieldBehaviours:Do(ue)}),_G=()=>SP([]),SP=s=>({tag:"div",classes:["tox-form__group"].concat(s)}),L2=(s,F)=>Js.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[ro(F.translate(s))]}),tm=fi("form-component-change"),tk=fi("form-close"),I2=fi("form-cancel"),Dy=fi("form-action"),c4=fi("form-submit"),IC=fi("form-block"),kP=fi("form-unblock"),gN=fi("form-tabchange"),vN=fi("form-resize"),wG=(s,F,Z)=>{const ue=s.label.map(wn=>L2(wn,F)),we=F.icons(),Be=wn=>{var Mn;return(Mn=we[wn])!==null&&Mn!==void 0?Mn:wn},qe=wn=>(Mn,Xn)=>{Fs(Xn.event.target,"[data-collection-item-value]").each(Br=>{wn(Mn,Xn,Br,ao(Br,"data-collection-item-value"))})},ft=(wn,Mn)=>{const Xn=oe(Mn,Mr=>{const kr=Cg.translate(Mr.text),yo=s.columns===1?`
    ${kr}
    `:"",Xr=`
    ${Be(Mr.icon)}
    `,No={_:" "," - ":" ","-":" "},Jo=kr.replace(/\_| \- |\-/g,Ci=>No[Ci]),ho=F.isDisabled()?" tox-collection__item--state-disabled":"";return`
    ${Xr}${yo}
    `}),Br=s.columns!=="auto"&&s.columns>1?K(Xn,s.columns):[Xn],or=oe(Br,Mr=>`
    ${Mr.join("")}
    `);B1(wn.element,or.join(""))},gt=qe((wn,Mn,Xn,Br)=>{Mn.stop(),F.isDisabled()||Ri(wn,Dy,{name:s.name,value:Br})}),At=[fo(Om(),qe((wn,Mn,Xn)=>{bd(Xn)})),fo(R0(),gt),fo(up(),gt),fo(Sm(),qe((wn,Mn,Xn)=>{aa(wn.element,"."+Fw).each(Br=>{fc(Br,Fw)}),wl(Xn,Fw)})),fo(ap(),qe(wn=>{aa(wn.element,"."+Fw).each(Mn=>{fc(Mn,Fw),a0(Mn)})})),$p(qe((wn,Mn,Xn,Br)=>{Ri(wn,Dy,{name:s.name,value:Br})}))],$t=(wn,Mn)=>oe($d(wn.element,".tox-collection__item"),Mn),on=Js.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(s.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:R},behaviours:Do([ea.config({disabled:F.isDisabled,onDisabled:wn=>{$t(wn,Mn=>{wl(Mn,"tox-collection__item--state-disabled"),fr(Mn,"aria-disabled",!0)})},onEnabled:wn=>{$t(wn,Mn=>{fc(Mn,"tox-collection__item--state-disabled"),po(Mn,"aria-disabled")})}}),df(),da.config({}),kd.config({...F.tooltips.getConfig({tooltipText:"",onShow:wn=>{aa(wn.element,"."+Fw+"[data-mce-tooltip]").each(Mn=>{co(Mn,"data-mce-tooltip").each(Xn=>{kd.setComponents(wn,F.tooltips.getComponents({tooltipText:Xn}))})})}}),mode:"children-keyboard-focus",anchor:wn=>({type:"node",node:aa(wn.element,"."+Fw).orThunk(()=>ka(".tox-collection__item")),root:wn.element,layouts:{onLtr:x([Pc,Jc,Ec,Hc,Qc,_s]),onRtl:x([Pc,Jc,Ec,Hc,Qc,_s])},bubble:pp(0,-2,{})})}),hi.config({store:{mode:"memory",initialValue:Z.getOr([])},onSetValue:(wn,Mn)=>{ft(wn,Mn),s.columns==="auto"&&hC(wn,5,"tox-collection__item").each(({numRows:Xn,numColumns:Br})=>{Li.setGridSize(wn,Xn,Br)}),Sa(wn,vN)}}),Wl.config({}),Li.config(wX(s.columns,"normal")),Ta("collection-events",At)]),eventOrder:{[cp()]:["disabling","alloy.base.behaviour","collection-events"],[Sm()]:["collection-events","tooltipping"]}});return l4(ue,on,["tox-form__group--collection"],[])},OG=["input","textarea"],TP=s=>{const F=ar(s);return X(OG,F)},Yw=(s,F)=>{const Z=F.getRoot(s).getOr(s.element);fc(Z,F.invalidClass),F.notify.each(ue=>{TP(s.element)&&fr(s.element,"aria-invalid",!1),ue.getContainer(s).each(we=>{B1(we,ue.validHtml)}),ue.onValid(s)})},yN=(s,F,Z,ue)=>{const we=F.getRoot(s).getOr(s.element);wl(we,F.invalidClass),F.notify.each(Be=>{TP(s.element)&&fr(s.element,"aria-invalid",!0),Be.getContainer(s).each(qe=>{B1(qe,ue)}),Be.onInvalid(s,ue)})},bN=(s,F,Z)=>F.validator.fold(()=>uh.pure(Hi.value(!0)),ue=>ue.validate(s)),CP=(s,F,Z)=>(F.notify.each(ue=>{ue.onValidate(s)}),bN(s,F).map(ue=>s.getSystem().isConnected()?ue.fold(we=>(yN(s,F,Z,we),Hi.error(we)),we=>(Yw(s,F),Hi.value(we))):Hi.error("No longer in system")));var m0=Object.freeze({__proto__:null,markValid:Yw,markInvalid:yN,query:bN,run:CP,isInvalid:(s,F)=>{const Z=F.getRoot(s).getOr(s.element);return $l(Z,F.invalidClass)}}),_N=Object.freeze({__proto__:null,events:(s,F)=>s.validator.map(Z=>hl([fo(Z.onEvent,ue=>{CP(ue,s,F).get(R)})].concat(Z.validateOnLoad?[Ll(ue=>{CP(ue,s,F).get(v)})]:[]))).getOr({})}),SG=[Sn("invalidClass"),mr("getRoot",I.none),Pi("notify",[mr("aria","alert"),mr("getContainer",I.none),mr("validHtml",""),Ra("onValid"),Ra("onInvalid"),Ra("onValidate")]),Pi("validator",[Sn("validate"),mr("onEvent","input"),mr("validateOnLoad",!0)])];const By=lf({fields:SG,name:"invalidating",active:_N,apis:m0,extra:{validation:s=>F=>{const Z=hi.getValue(F);return uh.pure(s(Z))}}});var wN=Object.freeze({__proto__:null,events:()=>hl([FO(ub(),k)]),exhibit:()=>Tf({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})});const u4=lf({fields:[],name:"unselecting",active:wN}),kG=(s,F)=>p0.sketch({dom:s.dom,components:s.components,toggleClass:"mce-active",dropdownBehaviours:Do([s1.button(F.providers.isDisabled),df(),u4.config({}),Wl.config({})]),layouts:s.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:F.getSink,fetch:Z=>uh.nu(ue=>s.fetch(ue)).map(ue=>I.from(o4(nl(hP(fi("menu-value"),ue,we=>{s.onItemAction(Z,we)},s.columns,s.presets,r1.CLOSE_ON_EXECUTE,D,F.providers),{movement:CC(s.columns,s.presets)})))),parts:{menu:F5(!1,1,s.presets)}}),ON=fi("color-input-change"),MP=fi("color-swatch-change"),SN=fi("color-picker-cancel"),kN=(s,F,Z,ue)=>{const we=Js.parts.field({factory:Nw,inputClasses:["tox-textfield"],data:ue,onSetValue:At=>By.run(At).get(v),inputBehaviours:Do([ea.config({disabled:F.providers.isDisabled}),df(),Wl.config({}),By.config({invalidClass:"tox-textbox-field-invalid",getRoot:At=>Cr(At.element),notify:{onValid:At=>{const $t=hi.getValue(At);Ri(At,ON,{color:$t})}},validator:{validateOnLoad:!1,validate:At=>{const $t=hi.getValue(At);if($t.length===0)return uh.pure(Hi.value(!0));{const on=Pt.fromTag("span");ko(on,"background-color",$t);const yn=Na(on,"background-color").fold(()=>Hi.error("blah"),wn=>Hi.value($t));return uh.pure(yn)}}}})]),selectOnFocus:!1}),Be=s.label.map(At=>L2(At,F.providers)),qe=(At,$t)=>{Ri(At,MP,{value:$t})},ft=(At,$t)=>{gt.getOpt(At).each(on=>{$t==="custom"?Z.colorPicker(yn=>{yn.fold(()=>Sa(on,SN),wn=>{qe(on,wn),SC(s.storageKey,wn)})},"#ffffff"):$t==="remove"?qe(on,""):qe(on,$t)})},gt=qs(kG({dom:{tag:"span",attributes:{"aria-label":F.providers.translate("Color swatch")}},layouts:{onRtl:()=>[Qc,Ec,Pc],onLtr:()=>[Ec,Qc,Pc]},components:[],fetch:QF(Z.getColors(s.storageKey),s.storageKey,Z.hasCustomColors()),columns:Z.getColorCols(s.storageKey),presets:"color",onItemAction:ft},F));return Js.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Be.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[we,gt.asSpec()]}]),fieldBehaviours:Do([Ta("form-field-events",[fo(ON,(At,$t)=>{gt.getOpt(At).each(on=>{ko(on.element,"background-color",$t.event.color)}),Ri(At,tm,{name:s.name})}),fo(MP,(At,$t)=>{Js.getField(At).each(on=>{hi.setValue(on,$t.event.value),as.getCurrent(At).each(oa.focus)})}),fo(SN,(At,$t)=>{Js.getField(At).each(on=>{as.getCurrent(At).each(oa.focus)})})])])})},TN=Jp({schema:[Sn("dom")],name:"label"}),nx=s=>Jp({name:""+s+"-edge",overrides:F=>F.model.manager.edgeActions[s].fold(()=>({}),ue=>({events:hl([e0(_m(),(we,Be,qe)=>ue(we,qe),[F]),e0(Oh(),(we,Be,qe)=>ue(we,qe),[F]),e0(Ex(),(we,Be,qe)=>{qe.mouseIsDown.get()&&ue(we,qe)},[F])])}))}),TG=nx("top-left"),CG=nx("top"),AG=nx("top-right"),MG=nx("right"),EG=nx("bottom-right"),PG=nx("bottom"),EP=nx("bottom-left"),RG=nx("left"),LG=Sd({name:"thumb",defaults:x({dom:{styles:{position:"absolute"}}}),overrides:s=>({events:hl([Fd(_m(),s,"spectrum"),Fd(Yg(),s,"spectrum"),Fd(wm(),s,"spectrum"),Fd(Oh(),s,"spectrum"),Fd(Ex(),s,"spectrum"),Fd(Hv(),s,"spectrum")])})}),nk=s=>t1(s.event),IG=Sd({schema:[On("mouseIsDown",()=>xi(!1))],name:"spectrum",overrides:s=>{const Z=s.model.manager,ue=(we,Be)=>Z.getValueFromEvent(Be).map(qe=>Z.setValueFrom(we,s,qe));return{behaviours:Do([Li.config({mode:"special",onLeft:(we,Be)=>Z.onLeft(we,s,nk(Be)),onRight:(we,Be)=>Z.onRight(we,s,nk(Be)),onUp:(we,Be)=>Z.onUp(we,s,nk(Be)),onDown:(we,Be)=>Z.onDown(we,s,nk(Be))}),Wl.config({}),oa.config({})]),events:hl([fo(_m(),ue),fo(Yg(),ue),fo(Oh(),ue),fo(Ex(),(we,Be)=>{s.mouseIsDown.get()&&ue(we,Be)})])}}});var DG=[TN,RG,MG,CG,PG,TG,AG,EP,EG,LG,IG];const rk=x("slider.change.value"),BG=s=>s.type.indexOf("touch")!==-1,PP=s=>{const F=s.event.raw;if(BG(F)){const Z=F;return Z.touches!==void 0&&Z.touches.length===1?I.some(Z.touches[0]).map(ue=>Ws(ue.clientX,ue.clientY)):I.none()}else{const Z=F;return Z.clientX!==void 0?I.some(Z).map(ue=>Ws(ue.clientX,ue.clientY)):I.none()}},zG="top",CN="right",AN="bottom",FG="left",Xw=s=>s.model.minX,Gw=s=>s.model.minY,DC=s=>s.model.minX-1,BC=s=>s.model.minY-1,Kw=s=>s.model.maxX,D2=s=>s.model.maxY,ok=s=>s.model.maxX+1,ik=s=>s.model.maxY+1,zC=(s,F,Z)=>F(s)-Z(s),RP=s=>zC(s,Kw,Xw),FC=s=>zC(s,D2,Gw),MN=s=>RP(s)/2,EN=s=>FC(s)/2,f4=(s,F)=>F?s.stepSize*s.speedMultiplier:s.stepSize,PN=s=>s.snapToGrid,NC=s=>s.snapStart,zy=s=>s.rounded,$C=(s,F)=>s[F+"-edge"]!==void 0,d4=s=>$C(s,FG),RN=s=>$C(s,CN),VC=s=>$C(s,zG),LN=s=>$C(s,AN),rx=s=>s.model.value.get(),B2=(s,F)=>({x:s,y:F}),g0=(s,F)=>{Ri(s,rk(),{value:F})},NG=(s,F)=>{g0(s,B2(DC(F),BC(F)))},LP=(s,F)=>{g0(s,BC(F))},IP=(s,F)=>{g0(s,B2(MN(F),BC(F)))},DP=(s,F)=>{g0(s,B2(ok(F),BC(F)))},$G=(s,F)=>{g0(s,ok(F))},Ag=(s,F)=>{g0(s,B2(ok(F),EN(F)))},VG=(s,F)=>{g0(s,B2(ok(F),ik(F)))},UG=(s,F)=>{g0(s,ik(F))},IN=(s,F)=>{g0(s,B2(MN(F),ik(F)))},DN=(s,F)=>{g0(s,B2(DC(F),ik(F)))},jG=(s,F)=>{g0(s,DC(F))},QG=(s,F)=>{g0(s,B2(DC(F),EN(F)))},BP=(s,F,Z,ue)=>sZ?Z:s===F?F-1:Math.max(F,s-ue),zP=(s,F,Z,ue)=>s>Z?s:sMath.max(F,Math.min(Z,s)),HG=(s,F,Z,ue,we)=>we.fold(()=>{const Be=s-F,qe=Math.round(Be/ue)*ue;return BN(F+qe,F-1,Z+1)},Be=>{const qe=(s-Be)%ue,ft=Math.round(qe/ue),gt=Math.floor((s-Be)/ue),At=Math.floor((Z-Be)/ue),$t=Math.min(At,gt+ft),on=Be+$t*ue;return Math.max(Be,on)}),ZG=(s,F,Z)=>Math.min(Z,Math.max(s,F))-F,FP=s=>{const{min:F,max:Z,range:ue,value:we,step:Be,snap:qe,snapStart:ft,rounded:gt,hasMinEdge:At,hasMaxEdge:$t,minBound:on,maxBound:yn,screenRange:wn}=s,Mn=At?F-1:F,Xn=$t?Z+1:Z;if(weyn)return Xn;{const Br=ZG(we,on,yn),or=BN(Br/wn*ue+F,Mn,Xn);return qe&&or>=F&&or<=Z?HG(or,F,Z,Be,ft):gt?Math.round(or):or}},zN=s=>{const{min:F,max:Z,range:ue,value:we,hasMinEdge:Be,hasMaxEdge:qe,maxBound:ft,maxOffset:gt,centerMinEdge:At,centerMaxEdge:$t}=s;return weZ?qe?ft:$t:(we-F)/ue*gt},NP="top",FN="right",$P="bottom",ak="left",NN="width",$N="height",xv=s=>s.element.dom.getBoundingClientRect(),v0=(s,F)=>s[F],h4=s=>{const F=xv(s);return v0(F,ak)},VN=s=>{const F=xv(s);return v0(F,FN)},p4=s=>{const F=xv(s);return v0(F,NP)},Jw=s=>{const F=xv(s);return v0(F,$P)},VP=s=>{const F=xv(s);return v0(F,NN)},UP=s=>{const F=xv(s);return v0(F,$N)},jP=(s,F,Z)=>(s+F)/2-Z,UN=(s,F)=>{const Z=xv(s),ue=xv(F),we=v0(Z,ak),Be=v0(Z,FN),qe=v0(ue,ak);return jP(we,Be,qe)},jN=(s,F)=>{const Z=xv(s),ue=xv(F),we=v0(Z,NP),Be=v0(Z,$P),qe=v0(ue,NP);return jP(we,Be,qe)},eO=(s,F)=>{Ri(s,rk(),{value:F})},QP=(s,F,Z)=>{const ue={min:Xw(F),max:Kw(F),range:RP(F),value:Z,step:f4(F),snap:PN(F),snapStart:NC(F),rounded:zy(F),hasMinEdge:d4(F),hasMaxEdge:RN(F),minBound:h4(s),maxBound:VN(s),screenRange:VP(s)};return FP(ue)},qG=(s,F,Z)=>{const ue=QP(s,F,Z);return eO(s,ue),ue},QN=(s,F)=>{const Z=Xw(F);eO(s,Z)},HN=(s,F)=>{const Z=Kw(F);eO(s,Z)},HP=(s,F,Z,ue)=>{const Be=(s>0?zP:BP)(rx(Z),Xw(Z),Kw(Z),f4(Z,ue));return eO(F,Be),I.some(Be)},ZP=s=>(F,Z,ue)=>HP(s,F,Z,ue).map(k),bp=s=>PP(s).map(Z=>Z.left),ZN=(s,F,Z,ue,we)=>{const qe=VP(s),ft=ue.bind($t=>I.some(UN($t,s))).getOr(0),gt=we.bind($t=>I.some(UN($t,s))).getOr(qe),At={min:Xw(F),max:Kw(F),range:RP(F),value:Z,hasMinEdge:d4(F),hasMaxEdge:RN(F),minBound:h4(s),minOffset:0,maxBound:VN(s),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:gt};return zN(At)},qP=(s,F,Z,ue,we,Be)=>{const qe=ZN(F,Be,Z,ue,we);return h4(F)-h4(s)+qe},WG=(s,F,Z,ue)=>{const we=rx(Z),Be=qP(s,ue.getSpectrum(s),we,ue.getLeftEdge(s),ue.getRightEdge(s),Z),qe=cc(F.element)/2;ko(F.element,"left",Be-qe+"px")},qN=ZP(-1),YG=ZP(1),XG=I.none,GG=I.none,WN={"top-left":I.none(),top:I.none(),"top-right":I.none(),right:I.some($G),"bottom-right":I.none(),bottom:I.none(),"bottom-left":I.none(),left:I.some(jG)};var Fy=Object.freeze({__proto__:null,setValueFrom:qG,setToMin:QN,setToMax:HN,findValueOfOffset:QP,getValueFromEvent:bp,findPositionOfValue:qP,setPositionFromValue:WG,onLeft:qN,onRight:YG,onUp:XG,onDown:GG,edgeActions:WN});const m4=(s,F)=>{Ri(s,rk(),{value:F})},UC=(s,F,Z)=>{const ue={min:Gw(F),max:D2(F),range:FC(F),value:Z,step:f4(F),snap:PN(F),snapStart:NC(F),rounded:zy(F),hasMinEdge:VC(F),hasMaxEdge:LN(F),minBound:p4(s),maxBound:Jw(s),screenRange:UP(s)};return FP(ue)},jC=(s,F,Z)=>{const ue=UC(s,F,Z);return m4(s,ue),ue},WP=(s,F)=>{const Z=Gw(F);m4(s,Z)},KG=(s,F)=>{const Z=D2(F);m4(s,Z)},JG=(s,F,Z,ue)=>{const Be=(s>0?zP:BP)(rx(Z),Gw(Z),D2(Z),f4(Z,ue));return m4(F,Be),I.some(Be)},YN=s=>(F,Z,ue)=>JG(s,F,Z,ue).map(k),eK=s=>PP(s).map(Z=>Z.top),tK=(s,F,Z,ue,we)=>{const qe=UP(s),ft=ue.bind($t=>I.some(jN($t,s))).getOr(0),gt=we.bind($t=>I.some(jN($t,s))).getOr(qe),At={min:Gw(F),max:D2(F),range:FC(F),value:Z,hasMinEdge:VC(F),hasMaxEdge:LN(F),minBound:p4(s),minOffset:0,maxBound:Jw(s),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:gt};return zN(At)},YP=(s,F,Z,ue,we,Be)=>{const qe=tK(F,Be,Z,ue,we);return p4(F)-p4(s)+qe},nK=(s,F,Z,ue)=>{const we=rx(Z),Be=YP(s,ue.getSpectrum(s),we,ue.getTopEdge(s),ue.getBottomEdge(s),Z),qe=Ql(F.element)/2;ko(F.element,"top",Be-qe+"px")},XN=I.none,rK=I.none,Ny=YN(-1),QC=YN(1),oK={"top-left":I.none(),top:I.some(LP),"top-right":I.none(),right:I.none(),"bottom-right":I.none(),bottom:I.some(UG),"bottom-left":I.none(),left:I.none()};var iK=Object.freeze({__proto__:null,setValueFrom:jC,setToMin:WP,setToMax:KG,findValueOfOffset:UC,getValueFromEvent:eK,findPositionOfValue:YP,setPositionFromValue:nK,onLeft:XN,onRight:rK,onUp:Ny,onDown:QC,edgeActions:oK});const sk=(s,F)=>{Ri(s,rk(),{value:F})},lk=(s,F)=>({x:s,y:F}),XP=(s,F,Z)=>{const ue=QP(s,F,Z.left),we=UC(s,F,Z.top),Be=lk(ue,we);return sk(s,Be),Be},HC=(s,F,Z,ue,we)=>{const Be=s>0?zP:BP,qe=F?rx(ue).x:Be(rx(ue).x,Xw(ue),Kw(ue),f4(ue,we)),ft=F?Be(rx(ue).y,Gw(ue),D2(ue),f4(ue,we)):rx(ue).y;return sk(Z,lk(qe,ft)),I.some(qe)},z2=(s,F)=>(Z,ue,we)=>HC(s,F,Z,ue,we).map(k),ck=(s,F)=>{const Z=Xw(F),ue=Gw(F);sk(s,lk(Z,ue))},GN=(s,F)=>{const Z=Kw(F),ue=D2(F);sk(s,lk(Z,ue))},KN=s=>PP(s),JN=(s,F,Z,ue)=>{const we=rx(Z),Be=qP(s,ue.getSpectrum(s),we.x,ue.getLeftEdge(s),ue.getRightEdge(s),Z),qe=YP(s,ue.getSpectrum(s),we.y,ue.getTopEdge(s),ue.getBottomEdge(s),Z),ft=cc(F.element)/2,gt=Ql(F.element)/2;ko(F.element,"left",Be-ft+"px"),ko(F.element,"top",qe-gt+"px")},e$=z2(-1,!1),aK=z2(1,!1),sK=z2(-1,!0),lK=z2(1,!0),cK={"top-left":I.some(NG),top:I.some(IP),"top-right":I.some(DP),right:I.some(Ag),"bottom-right":I.some(VG),bottom:I.some(IN),"bottom-left":I.some(DN),left:I.some(QG)};var uK=Object.freeze({__proto__:null,setValueFrom:XP,setToMin:ck,setToMax:GN,getValueFromEvent:KN,setPositionFromValue:JN,onLeft:e$,onRight:aK,onUp:sK,onDown:lK,edgeActions:cK});const t$=[mr("stepSize",1),mr("speedMultiplier",10),mr("onChange",v),mr("onChoose",v),mr("onInit",v),mr("onDragStart",v),mr("onDragEnd",v),mr("snapToGrid",!1),mr("rounded",!0),Hr("snapStart"),rr("model",xn("mode",{x:[mr("minX",0),mr("maxX",100),On("value",s=>xi(s.mode.minX)),Sn("getInitialValue"),Il("manager",Fy)],y:[mr("minY",0),mr("maxY",100),On("value",s=>xi(s.mode.minY)),Sn("getInitialValue"),Il("manager",iK)],xy:[mr("minX",0),mr("maxX",100),mr("minY",0),mr("maxY",100),On("value",s=>xi({x:s.mode.minX,y:s.mode.minY})),Sn("getInitialValue"),Il("manager",uK)]})),Ef("sliderBehaviours",[Li,hi]),On("mouseIsDown",()=>xi(!1))],l1=ch({name:"Slider",configFields:t$,partFields:DG,factory:(s,F,Z,ue)=>{const we=Xr=>Ph(Xr,s,"thumb"),Be=Xr=>Ph(Xr,s,"spectrum"),qe=Xr=>Fo(Xr,s,"left-edge"),ft=Xr=>Fo(Xr,s,"right-edge"),gt=Xr=>Fo(Xr,s,"top-edge"),At=Xr=>Fo(Xr,s,"bottom-edge"),$t=s.model,on=$t.manager,yn=(Xr,No)=>{on.setPositionFromValue(Xr,No,s,{getLeftEdge:qe,getRightEdge:ft,getTopEdge:gt,getBottomEdge:At,getSpectrum:Be})},wn=(Xr,No)=>{$t.value.set(No);const Jo=we(Xr);yn(Xr,Jo)},Mn=(Xr,No)=>{wn(Xr,No);const Jo=we(Xr);return s.onChange(Xr,Jo,No),I.some(!0)},Xn=Xr=>{on.setToMin(Xr,s)},Br=Xr=>{on.setToMax(Xr,s)},or=Xr=>{const No=()=>{Fo(Xr,s,"thumb").each(ho=>{const Ci=$t.value.get();s.onChoose(Xr,ho,Ci)})},Jo=s.mouseIsDown.get();s.mouseIsDown.set(!1),Jo&&No()},Mr=(Xr,No)=>{No.stop(),s.mouseIsDown.set(!0),s.onDragStart(Xr,we(Xr))},kr=(Xr,No)=>{No.stop(),s.onDragEnd(Xr,we(Xr)),or(Xr)},yo=Xr=>{Fo(Xr,s,"spectrum").map(Li.focusIn)};return{uid:s.uid,dom:s.dom,components:F,behaviours:Pf(s.sliderBehaviours,[Li.config({mode:"special",focusIn:yo}),hi.config({store:{mode:"manual",getValue:Xr=>$t.value.get(),setValue:wn}}),Wu.config({channels:{[pw()]:{onReceive:or}}})]),events:hl([fo(rk(),(Xr,No)=>{Mn(Xr,No.event.value)}),Ll((Xr,No)=>{const Jo=$t.getInitialValue();$t.value.set(Jo);const ho=we(Xr);yn(Xr,ho);const Ci=Be(Xr);s.onInit(Xr,ho,Ci,$t.value.get())}),fo(_m(),Mr),fo(wm(),kr),fo(Oh(),(Xr,No)=>{yo(Xr),Mr(Xr,No)}),fo(Hv(),kr)]),apis:{resetToMin:Xn,resetToMax:Br,setValue:wn,refresh:yn},domModification:{styles:{position:"relative"}}}},apis:{setValue:(s,F,Z)=>{s.setValue(F,Z)},resetToMin:(s,F)=>{s.resetToMin(F)},resetToMax:(s,F)=>{s.resetToMax(F)},refresh:(s,F)=>{s.refresh(F)}}}),ZC=fi("rgb-hex-update"),n$=fi("slider-update"),GP=fi("palette-update"),uk=(s,F)=>{const Z=l1.parts.spectrum({dom:{tag:"div",classes:[F("hue-slider-spectrum")],attributes:{role:"presentation"}}}),ue=l1.parts.thumb({dom:{tag:"div",classes:[F("hue-slider-thumb")],attributes:{role:"presentation"}}});return l1.sketch({dom:{tag:"div",classes:[F("hue-slider")],attributes:{role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":120}},rounded:!1,model:{mode:"y",getInitialValue:x(0)},components:[Z,ue],sliderBehaviours:Do([oa.config({})]),onChange:(we,Be,qe)=>{fr(we.element,"aria-valuenow",Math.floor(360-qe*3.6)),Ri(we,n$,{value:qe})}})},r$="form",o$=[Ef("formBehaviours",[hi])],i$=s=>"",dK=s=>{const F=(()=>{const Be=[];return{field:(ft,gt)=>(Be.push(ft),a6(r$,i$(ft),gt)),record:x(Be)}})(),Z=s(F),ue=F.record(),we=oe(ue,Be=>Sd({name:Be,pname:i$(Be)}));return dv(r$,o$,we,pK,Z)},hK=(s,F)=>s.fold(()=>Hi.error(F),Hi.value),pK=(s,F)=>({uid:s.uid,dom:s.dom,components:F,behaviours:Pf(s.formBehaviours,[hi.config({store:{mode:"manual",getValue:Z=>{const ue=s5(Z,s);return Ue(ue,(we,Be)=>we().bind(qe=>{const ft=as.getCurrent(qe);return hK(ft,new Error(`Cannot find a current component to extract the value from for form part '${Be}': `+rh(qe.element)))}).map(hi.getValue))},setValue:(Z,ue)=>{We(ue,(we,Be)=>{Fo(Z,s,Be).each(qe=>{as.getCurrent(qe).each(ft=>{hi.setValue(ft,we)})})})}}})]),apis:{getField:(Z,ue)=>Fo(Z,s,ue).bind(as.getCurrent)}}),tO={getField:Cc((s,F,Z)=>s.getField(F,Z)),sketch:dK},a$=fi("valid-input"),KP=fi("invalid-input"),qC=fi("validating-input"),_v="colorcustom.rgb.",JP=(s,F,Z,ue)=>{const we=(yn,wn)=>By.config({invalidClass:F("invalid"),notify:{onValidate:Mn=>{Ri(Mn,qC,{type:yn})},onValid:Mn=>{Ri(Mn,a$,{type:yn,value:hi.getValue(Mn)})},onInvalid:Mn=>{Ri(Mn,KP,{type:yn,value:hi.getValue(Mn)})}},validator:{validate:Mn=>{const Xn=hi.getValue(Mn),Br=wn(Xn)?Hi.value(!0):Hi.error(s("aria.input.invalid"));return uh.pure(Br)},validateOnLoad:!1}}),Be=(yn,wn,Mn,Xn,Br)=>{const or=s(_v+"range"),Mr=Js.parts.label({dom:{tag:"label",attributes:{"aria-label":Xn}},components:[ro(Mn)]}),kr=Js.parts.field({data:Br,factory:Nw,inputAttributes:{type:"text",...wn==="hex"?{"aria-live":"polite"}:{}},inputClasses:[F("textfield")],inputBehaviours:Do([we(wn,yn),Wl.config({})]),onSetValue:Jo=>{By.isInvalid(Jo)&&By.run(Jo).get(v)}}),yo=[Mr,kr],Xr=wn!=="hex"?[Js.parts["aria-descriptor"]({text:or})]:[],No=yo.concat(Xr);return{dom:{tag:"div",attributes:{role:"presentation"}},components:No}},qe=(yn,wn)=>{const Mn=W5(wn);return tO.getField(yn,"hex").each(Xn=>{oa.isFocused(Xn)||hi.setValue(yn,{hex:Mn.value})}),Mn},ft=(yn,wn)=>{const Mn=wn.red,Xn=wn.green,Br=wn.blue;hi.setValue(yn,{red:Mn,green:Xn,blue:Br})},gt=qs({dom:{tag:"div",classes:[F("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),At=(yn,wn)=>{gt.getOpt(yn).each(Mn=>{ko(Mn.element,"background-color","#"+wn.value)})};return Yh({factory:()=>{const yn={red:xi(I.some(255)),green:xi(I.some(255)),blue:xi(I.some(255)),hex:xi(I.some("ffffff"))},wn=(Fi,Os)=>{const vs=Y5(Os);ft(Fi,vs),or(vs)},Mn=Fi=>yn[Fi].get(),Xn=(Fi,Os)=>{yn[Fi].set(Os)},Br=()=>Mn("red").bind(Fi=>Mn("green").bind(Os=>Mn("blue").map(vs=>Hw(Fi,Os,vs,1)))),or=Fi=>{const Os=Fi.red,vs=Fi.green,Ha=Fi.blue;Xn("red",I.some(Os)),Xn("green",I.some(vs)),Xn("blue",I.some(Ha))},Mr=(Fi,Os)=>{const vs=Os.event;vs.type!=="hex"?Xn(vs.type,I.none()):ue(Fi)},kr=(Fi,Os)=>{Z(Fi);const vs=oP(Os);Xn("hex",I.some(vs.value));const Ha=Y5(vs);ft(Fi,Ha),or(Ha),Ri(Fi,ZC,{hex:vs}),At(Fi,vs)},yo=(Fi,Os,vs)=>{const Ha=parseInt(vs,10);Xn(Os,I.some(Ha)),Br().each(Ho=>{const wi=qe(Fi,Ho);Ri(Fi,ZC,{hex:wi}),At(Fi,wi)})},Xr=Fi=>Fi.type==="hex",No=(Fi,Os)=>{const vs=Os.event;Xr(vs)?kr(Fi,vs.value):yo(Fi,vs.type,vs.value)},Jo=Fi=>({label:s(_v+Fi+".label"),description:s(_v+Fi+".description")}),ho=Jo("red"),Ci=Jo("green"),mi=Jo("blue"),qi=Jo("hex");return nl(tO.sketch(Fi=>({dom:{tag:"form",classes:[F("rgb-form")],attributes:{"aria-label":s("aria.color.picker")}},components:[Fi.field("red",Js.sketch(Be(aP,"red",ho.label,ho.description,255))),Fi.field("green",Js.sketch(Be(aP,"green",Ci.label,Ci.description,255))),Fi.field("blue",Js.sketch(Be(aP,"blue",mi.label,mi.description,255))),Fi.field("hex",Js.sketch(Be(bF,"hex",qi.label,qi.description,"ffffff"))),gt.asSpec()],formBehaviours:Do([By.config({invalidClass:F("form-invalid")}),Ta("rgb-form-events",[fo(a$,No),fo(KP,Mr),fo(qC,Mr)])])})),{apis:{updateHex:(Fi,Os)=>{hi.setValue(Fi,{hex:Os.value}),wn(Fi,Os),At(Fi,Os)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(yn,wn,Mn)=>{yn.updateHex(wn,Mn)}},extraApis:{}})},s$=(s,F)=>{const Z=l1.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[F("sv-palette-spectrum")]}}),ue=l1.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[F("sv-palette-thumb")],innerHtml:``}}),we=(At,$t)=>{const{width:on,height:yn}=At,wn=At.getContext("2d");if(wn===null)return;wn.fillStyle=$t,wn.fillRect(0,0,on,yn);const Mn=wn.createLinearGradient(0,0,on,0);Mn.addColorStop(0,"rgba(255,255,255,1)"),Mn.addColorStop(1,"rgba(255,255,255,0)"),wn.fillStyle=Mn,wn.fillRect(0,0,on,yn);const Xn=wn.createLinearGradient(0,0,0,yn);Xn.addColorStop(0,"rgba(0,0,0,0)"),Xn.addColorStop(1,"rgba(0,0,0,1)"),wn.fillStyle=Xn,wn.fillRect(0,0,on,yn)},Be=(At,$t)=>{const on=At.components()[0].element.dom,yn=Ww($t,100,100),wn=kF(yn);we(on,CF(wn))},qe=(At,$t)=>{const on=kC(Y5($t));l1.setValue(At,{x:on.saturation,y:100-on.value}),fr(At.element,"aria-valuetext",s(["Saturation {0}%, Brightness {1}%",on.saturation,on.value]))};return Yh({factory:At=>{const $t=x({x:0,y:0}),on=(Mn,Xn,Br)=>{h(Br)||fr(Mn.element,"aria-valuetext",s(["Saturation {0}%, Brightness {1}%",Math.floor(Br.x),Math.floor(100-Br.y)])),Ri(Mn,GP,{value:Br})},yn=(Mn,Xn,Br,or)=>{we(Br.element.dom,CF(AF))},wn=Do([as.config({find:I.some}),oa.config({})]);return l1.sketch({dom:{tag:"div",attributes:{role:"slider","aria-valuetext":s(["Saturation {0}%, Brightness {1}%",0,0])},classes:[F("sv-palette")]},model:{mode:"xy",getInitialValue:$t},rounded:!1,components:[Z,ue],onChange:on,onInit:yn,sliderBehaviours:wn})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(At,$t,on)=>{Be($t,on)},setThumb:(At,$t,on)=>{qe($t,on)}},extraApis:{}})},l$=(s,F)=>{const Z=we=>{const Be=JP(s,F,we.onValidHex,we.onInvalidHex),qe=s$(s,F),ft=No=>(100-No)/100*360,gt=No=>100-No/360*100,At={paletteRgba:xi(AF),paletteHue:xi(0)},$t=qs(uk(s,F)),on=qs(qe.sketch({})),yn=qs(Be.sketch({})),wn=(No,Jo,ho)=>{on.getOpt(No).each(Ci=>{qe.setHue(Ci,ho)})},Mn=(No,Jo)=>{yn.getOpt(No).each(ho=>{Be.updateHex(ho,Jo)})},Xn=(No,Jo,ho)=>{$t.getOpt(No).each(Ci=>{l1.setValue(Ci,gt(ho))})},Br=(No,Jo)=>{on.getOpt(No).each(ho=>{qe.setThumb(ho,Jo)})},or=(No,Jo)=>{const ho=Y5(No);At.paletteRgba.set(ho),At.paletteHue.set(Jo)},Mr=(No,Jo,ho,Ci)=>{or(Jo,ho),q(Ci,mi=>{mi(No,Jo,ho)})},kr=()=>{const No=[Mn];return(Jo,ho)=>{const Ci=ho.event.value,mi=At.paletteHue.get(),qi=Ww(mi,Ci.x,100-Ci.y),Fi=BF(qi);Mr(Jo,Fi,mi,No)}},yo=()=>{const No=[wn,Mn];return(Jo,ho)=>{const Ci=ft(ho.event.value),mi=At.paletteRgba.get(),qi=kC(mi),Fi=Ww(Ci,qi.saturation,qi.value),Os=BF(Fi);Mr(Jo,Os,Ci,No)}},Xr=()=>{const No=[wn,Xn,Br];return(Jo,ho)=>{const Ci=ho.event.hex,mi=fX(Ci);Mr(Jo,Ci,mi.hue,No)}};return{uid:we.uid,dom:we.dom,components:[on.asSpec(),$t.asSpec(),yn.asSpec()],behaviours:Do([Ta("colour-picker-events",[fo(ZC,Xr()),fo(GP,kr()),fo(n$,yo())]),as.config({find:No=>yn.getOpt(No)}),Li.config({mode:"acyclic"})])}};return Yh({name:"ColourPicker",configFields:[Sn("dom"),mr("onValidHex",v),mr("onInvalidHex",v)],factory:Z})},y0={self:()=>as.config({find:I.some}),memento:s=>as.config({find:s.getOpt}),childAt:s=>as.config({find:F=>Bn(F.element,s).bind(Z=>F.getSystem().getByDom(Z).toOptional())})},u$=Mi([mr("preprocess",R),mr("postprocess",R)]),gK=(s,F)=>{const Z=cn("RepresentingConfigs.memento processors",u$,F);return hi.config({store:{mode:"manual",getValue:ue=>{const we=s.get(ue),Be=hi.getValue(we);return Z.postprocess(Be)},setValue:(ue,we)=>{const Be=Z.preprocess(we),qe=s.get(ue);hi.setValue(qe,Be)}}})},nO=(s,F,Z)=>hi.config({store:{mode:"manual",...s.map(ue=>({initialValue:ue})).getOr({}),getValue:F,setValue:Z}}),f$=(s,F,Z)=>nO(s,ue=>F(ue.element),(ue,we)=>Z(ue.element,we)),vK=s=>f$(s,nh,B1),WC=s=>hi.config({store:{mode:"memory",initialValue:s}}),d$={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},h$=s=>F=>n(F)?s.translate(d$[F]):s.translate(F),yK=(s,F,Z)=>{const ue=gt=>"tox-"+gt,we=l$(h$(F),ue),Be=gt=>{Ri(gt,Dy,{name:"hex-valid",value:!0})},qe=gt=>{Ri(gt,Dy,{name:"hex-valid",value:!1})},ft=qs(we.sketch({dom:{tag:"div",classes:[ue("color-picker-container")],attributes:{role:"presentation"}},onValidHex:Be,onInvalidHex:qe}));return{dom:{tag:"div"},components:[ft.asSpec()],behaviours:Do([nO(Z,gt=>{const At=ft.get(gt);return as.getCurrent(At).bind(yn=>hi.getValue(yn).hex).map(yn=>"#"+mn(yn,"#")).getOr("")},(gt,At)=>{const $t=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,on=I.from($t.exec(At)).bind(Mn=>De(Mn,1)),yn=ft.get(gt);as.getCurrent(yn).fold(()=>{console.log("Can not find form")},Mn=>{hi.setValue(Mn,{hex:on.getOr("")}),tO.getField(Mn,"hex").each(Xn=>{Sa(Xn,cg())})})}),y0.self()])}};var bK=tinymce.util.Tools.resolve("tinymce.Resource");const p$=s=>ht(s,"init"),YC=s=>{const F=os(),Z=qs({dom:{tag:s.tag}}),ue=os(),we=!p$(s)&&s.onFocus.isSome()?[oa.config({onFocus:Be=>{s.onFocus.each(qe=>{qe(Be.element.dom)})}}),Wl.config({})]:[];return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:Do([Ta("custom-editor-events",[Ll(Be=>{Z.getOpt(Be).each(qe=>{(p$(s)?s.init(qe.element.dom):bK.load(s.scriptId,s.scriptUrl).then(ft=>ft(qe.element.dom,s.settings))).then(ft=>{ue.on(gt=>{ft.setValue(gt)}),ue.clear(),F.set(ft)})})})]),nO(I.none(),()=>F.get().fold(()=>ue.get().getOr(""),Be=>Be.getValue()),(Be,qe)=>{F.get().fold(()=>ue.set(qe),ft=>ft.setValue(qe))}),y0.self()].concat(we)),components:[Z.asSpec()]}};var ox=tinymce.util.Tools.resolve("tinymce.util.Tools");const xK=(s,F)=>{const Z=ox.explode(F.getOption("images_file_types")),ue=we=>te(Z,Be=>yt(we.name.toLowerCase(),`.${Be.toLowerCase()}`));return me($e(s),ue)},m$=(s,F,Z)=>{const ue=(yn,wn)=>{wn.stop()},we=yn=>(wn,Mn)=>{q(yn,Xn=>{Xn(wn,Mn)})},Be=(yn,wn)=>{var Mn;if(!ea.isDisabled(yn)){const Xn=wn.event.raw;ft(yn,(Mn=Xn.dataTransfer)===null||Mn===void 0?void 0:Mn.files)}},qe=(yn,wn)=>{const Mn=wn.event.raw.target;ft(yn,Mn.files)},ft=(yn,wn)=>{wn&&(hi.setValue(yn,xK(wn,F)),Ri(yn,tm,{name:s.name}))},gt=qs({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:Do([Ta("input-file-events",[Am(R0()),Am(up())])])}),At=yn=>({uid:yn.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:Do([WC(Z.getOr([])),y0.self(),ea.config({}),za.config({toggleClass:"dragenter",toggleOnExecute:!1}),Ta("dropzone-events",[fo("dragenter",we([ue,za.toggle])),fo("dragleave",we([ue,za.toggle])),fo("dragover",ue),fo("drop",we([ue,Be])),fo(Zv(),qe)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[ro(F.translate("Drop an image here"))]},Vd.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[ro(F.translate("Browse for an image")),gt.asSpec()],action:wn=>{gt.get(wn).element.dom.click()},buttonBehaviours:Do([Wl.config({}),s1.button(F.isDisabled),df()])})]}]}),$t=s.label.map(yn=>L2(yn,F)),on=Js.parts.field({factory:{sketch:At}});return l4($t,on,["tox-form__group--stretched"],[])},g$=(s,F)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${s.columns}col`]},components:oe(s.items,F.interpreter)}),_K=(s,F)=>{let Z=null,ue=null;return{cancel:()=>{O(Z)||(clearTimeout(Z),Z=null,ue=null)},throttle:(...qe)=>{ue=qe,O(Z)&&(Z=setTimeout(()=>{const ft=ue;Z=null,ue=null,s.apply(null,ft)},F))}}},wK=(s,F)=>{let Z=null;return{cancel:()=>{O(Z)||(clearTimeout(Z),Z=null)},throttle:(...Be)=>{O(Z)&&(Z=setTimeout(()=>{Z=null,s.apply(null,Be)},F))}}},fk=(s,F)=>{let Z=null;const ue=()=>{O(Z)||(clearTimeout(Z),Z=null)};return{cancel:ue,throttle:(...Be)=>{ue(),Z=setTimeout(()=>{Z=null,s.apply(null,Be)},F)}}},t9=fi("alloy-fake-before-tabstop"),XC=fi("alloy-fake-after-tabstop"),v$=s=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:s},behaviours:Do([oa.config({ignore:!0}),Wl.config({})])}),y$=(s,F)=>({dom:{tag:"div",classes:["tox-navobj",...s.getOr([])]},components:[v$([t9]),F,v$([XC])],behaviours:Do([y0.childAt(1)])}),b$=(s,F)=>{Ri(s,Bp(),{raw:{which:9,shiftKey:F}})},x$=(s,F)=>{const Z=F.element;$l(Z,t9)?b$(s,!0):$l(Z,XC)&&b$(s,!1)},g4=s=>J5(s,["."+t9,"."+XC].join(","),D),GC=fi("update-dialog"),_$=fi("update-title"),w$=fi("update-body"),O$=fi("update-footer"),n9=fi("body-send-message"),KC=fi("dialog-focus-shifted"),JC=rf().browser,dk=JC.isSafari(),OK=JC.isFirefox(),S$=dk||OK,SK=JC.isChromium(),kK=({scrollTop:s,scrollHeight:F,clientHeight:Z})=>Math.ceil(s)+Z>=F,k$=(s,F)=>s.scrollTo(0,F==="bottom"?99999999:F),TK=(s,F)=>{const Z=s.body;return I.from(!/^1))?Z:s.documentElement)},T$=(s,F,Z)=>{const ue=s.dom;I.from(ue.contentDocument).fold(Z,we=>{let Be=0;const qe=TK(we,F).map(gt=>(Be=gt.scrollTop,gt)).forall(kK),ft=()=>{const gt=ue.contentWindow;a(gt)&&(qe?k$(gt,"bottom"):!qe&&S$&&Be!==0&&k$(gt,Be))};dk&&ue.addEventListener("load",ft,{once:!0}),we.open(),we.write(F),we.close(),dk||ft()})},r9=_t(S$,dk?500:200).map(s=>_K(T$,s)),CK=(s,F)=>{const Z=xi(s.getOr(""));return{getValue:ue=>Z.get(),setValue:(ue,we)=>{if(Z.get()!==we){const Be=ue.element,qe=()=>fr(Be,"srcdoc",we);F?r9.fold(x(T$),ft=>ft.throttle)(Be,we,qe):qe()}Z.set(we)}}},AK=(s,F,Z)=>{const ue="tox-dialog__iframe",we=s.transparent?[]:[`${ue}--opaque`],Be=s.border?["tox-navobj-bordered"]:[],qe={...s.label.map(on=>({title:on})).getOr({}),...Z.map(on=>({srcdoc:on})).getOr({}),...s.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},ft=CK(Z,s.streamContent),gt=s.label.map(on=>L2(on,F)),At=on=>y$(I.from(Be),{uid:on.uid,dom:{tag:"iframe",attributes:qe,classes:[ue,...we]},behaviours:Do([Wl.config({}),oa.config({}),nO(Z,ft.getValue,ft.setValue),Wu.config({channels:{[KC]:{onReceive:(yn,wn)=>{wn.newFocus.each(Mn=>{Cr(yn.element).each(Xn=>{(so(yn.element,Mn)?wl:fc)(Xn,"tox-navobj-bordered-focus")})})}}}})])}),$t=Js.parts.field({factory:{sketch:At}});return l4(gt,$t,["tox-form__group--stretched"],[])},MK=s=>new Promise((F,Z)=>{const ue=()=>{Be(),F(s)},we=[_d(s,"load",ue),_d(s,"error",()=>{Be(),Z("Unable to load data from image: "+s.dom.src)})],Be=()=>q(we,qe=>qe.unbind());s.dom.complete&&ue()}),hk=(s,F,Z,ue,we)=>{const Be=Z*we,qe=ue*we,ft=Math.max(0,s/2-Be/2),gt=Math.max(0,F/2-qe/2);return{left:ft.toString()+"px",top:gt.toString()+"px",width:Be.toString()+"px",height:qe.toString()+"px"}},o9=(s,F,Z)=>{const ue=cc(s),we=Ql(s);return Math.min(ue/F,we/Z,1)},EK=(s,F)=>{const Z=xi(F.getOr({url:""})),ue=qs({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:F.map(gt=>({src:gt.url})).getOr({})}}),we=qs({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[ue.asSpec()]}),Be=(gt,At)=>{const $t={url:At.url};At.zoom.each(yn=>$t.zoom=yn),At.cachedWidth.each(yn=>$t.cachedWidth=yn),At.cachedHeight.each(yn=>$t.cachedHeight=yn),Z.set($t);const on=()=>{const{cachedWidth:yn,cachedHeight:wn,zoom:Mn}=$t;if(!y(yn)&&!y(wn)){if(y(Mn)){const Br=o9(gt.element,yn,wn);$t.zoom=Br}const Xn=hk(cc(gt.element),Ql(gt.element),yn,wn,$t.zoom);we.getOpt(gt).each(Br=>{ra(Br.element,Xn)})}};ue.getOpt(gt).each(yn=>{const wn=yn.element;At.url!==ao(wn,"src")&&(fr(wn,"src",At.url),fc(gt.element,"tox-imagepreview__loaded")),on(),MK(wn).then(Mn=>{gt.getSystem().isConnected()&&(wl(gt.element,"tox-imagepreview__loaded"),$t.cachedWidth=Mn.dom.naturalWidth,$t.cachedHeight=Mn.dom.naturalHeight,on())})})},qe={};s.height.each(gt=>qe.height=gt);const ft=F.map(gt=>({url:gt.url,zoom:I.from(gt.zoom),cachedWidth:I.from(gt.cachedWidth),cachedHeight:I.from(gt.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:qe,attributes:{role:"presentation"}},components:[we.asSpec()],behaviours:Do([y0.self(),nO(ft,()=>Z.get(),Be)])}},PK=(s,F,Z)=>{const ue="tox-label",we=s.align==="center"?[`${ue}--center`]:[],Be=s.align==="end"?[`${ue}--end`]:[],qe=qs({dom:{tag:"label",classes:[ue,...we,...Be]},components:[ro(F.providers.translate(s.label))]}),ft=oe(s.items,F.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[qe.asSpec(),...ft],behaviours:Do([y0.self(),da.config({}),vK(I.none()),Li.config({mode:"acyclic"}),Ta("label",[Ll(gt=>{s.for.each(At=>{Z(At).each($t=>{qe.getOpt(gt).each(on=>{var yn;const wn=(yn=ao($t.element,"id"))!==null&&yn!==void 0?yn:fi("form-field");fr($t.element,"id",wn),fr(on.element,"for",wn)})})})})])])}},e8=fi("toolbar.button.execute"),RK=s=>$p((F,Z)=>{mC(s,F)(ue=>{Ri(F,e8,{buttonApi:ue}),s.onAction(ue)})}),ix=fi("common-button-display-events"),i9={[cp()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events","tooltipping"],[zd()]:["toolbar-button-events",ix],[fp()]:["toolbar-button-events","dropdown-events","tooltipping"],[Oh()]:["focusing","alloy.base.behaviour",ix]},a9=s=>ko(s.element,"width",Aa(s.element,"width")),C$=(s,F,Z)=>em(s,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:Z},F),t8=(s,F)=>C$(s,F,[]),ax=(s,F)=>C$(s,F,[da.config({})]),A$=(s,F,Z)=>({dom:{tag:"span",classes:[`${F}__select-label`]},components:[ro(Z.translate(s))],behaviours:Do([da.config({})])}),Mg=fi("update-menu-text"),F2=fi("update-menu-icon"),s9=(s,F,Z,ue)=>{const we=xi(v),Be=s.text.map(Xn=>qs(A$(Xn,F,Z.providers))),qe=s.icon.map(Xn=>qs(ax(Xn,Z.providers.icons))),ft=(Xn,Br)=>{const or=hi.getValue(Xn);return oa.focus(or),Ri(or,"keydown",{raw:Br.event.raw}),p0.close(or),I.some(!0)},gt=s.role.fold(()=>({}),Xn=>({role:Xn})),At=I.from(s.listRole).map(Xn=>({listRole:Xn})).getOr({}),$t=s.ariaLabel.fold(()=>({}),Xn=>({"aria-label":Z.providers.translate(Xn)})),on=em("chevron-down",{tag:"div",classes:[`${F}__select-chevron`]},Z.providers.icons),yn=fi("common-button-display-events"),wn="dropdown-events";return qs(p0.sketch({...s.uid?{uid:s.uid}:{},...gt,...At,dom:{tag:"button",classes:[F,`${F}--select`].concat(oe(s.classes,Xn=>`${F}--${Xn}`)),attributes:{...$t,...a(ue)?{"data-mce-name":ue}:{}}},components:jw([qe.map(Xn=>Xn.asSpec()),Be.map(Xn=>Xn.asSpec()),I.some(on)]),matchWidth:!0,useMinWidth:!0,onOpen:(Xn,Br,or)=>{s.searchable&&EC(or)},dropdownBehaviours:Do([...s.dropdownBehaviours,s1.button(()=>s.disabled||Z.providers.isDisabled()),df(),u4.config({}),da.config({}),...s.tooltip.map(Xn=>kd.config(Z.providers.tooltips.getConfig({tooltipText:Z.providers.translate(Xn)}))).toArray(),Ta(wn,[tx(s,we),Ih(s,we)]),Ta(yn,[Ll((Xn,Br)=>a9(Xn))]),Ta("menubutton-update-display-text",[fo(Mg,(Xn,Br)=>{Be.bind(or=>or.getOpt(Xn)).each(or=>{da.set(or,[ro(Z.providers.translate(Br.event.text))])})}),fo(F2,(Xn,Br)=>{qe.bind(or=>or.getOpt(Xn)).each(or=>{da.set(or,[ax(Br.event.icon,Z.providers.icons)])})})])]),eventOrder:nl(i9,{[Oh()]:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[zd()]:["toolbar-button-events",kd.name(),wn,yn]}),sandboxBehaviours:Do([Li.config({mode:"special",onLeft:ft,onRight:ft}),Ta("dropdown-sandbox-events",[fo($z,(Xn,Br)=>{XX(Xn),Br.stop()}),fo(Vz,(Xn,Br)=>{GX(Xn,Br),Br.stop()})])]),lazySink:Z.getSink,toggleClass:`${F}--active`,parts:{menu:{...F5(!1,s.columns,s.presets),fakeFocus:s.searchable,...s.listRole==="listbox"?{}:{onHighlightItem:K5,onCollapseMenu:(Xn,Br,or)=>{ri.getHighlighted(or).each(Mr=>{K5(Xn,or,Mr)})},onDehighlightItem:eG}}},getAnchorOverrides:()=>({maxHeightFunction:(Xn,Br)=>{gy()(Xn,Br-10)}}),fetch:Xn=>uh.nu(T(s.fetch,Xn))})).asSpec()},M$=s=>n(s),l9=s=>s.type==="separator",E$=s=>ht(s,"getSubmenuItems"),LK={type:"separator"},IK=(s,F)=>{const Z=se(s,(ue,we)=>M$(we)?we===""?ue:we==="|"?ue.length>0&&!l9(ue[ue.length-1])?ue.concat([LK]):ue:ht(F,we.toLowerCase())?ue.concat([F[we.toLowerCase()]]):ue:ue.concat([we]),[]);return Z.length>0&&l9(Z[Z.length-1])&&Z.pop(),Z},DK=(s,F)=>{const Z=s.getSubmenuItems(),ue=R$(Z,F),we=nl(ue.menus,{[s.value]:ue.items}),Be=nl(ue.expansions,{[s.value]:s.value});return{item:s,menus:we,expansions:Be}},P$=s=>{const F=Ge(s,"value").getOrThunk(()=>fi("generated-menu-item"));return nl({value:F},s)},R$=(s,F)=>{const Z=IK(n(s)?s.split(" "):s,F);return he(Z,(ue,we)=>{if(E$(we)){const Be=P$(we),qe=DK(Be,F);return{menus:nl(ue.menus,qe.menus),items:[qe.item,...ue.items],expansions:nl(ue.expansions,qe.expansions)}}else return{...ue,items:[we,...ue.items]}},{menus:{},expansions:{},items:[]})},L$=s=>s.search.fold(()=>({searchMode:"no-search"}),F=>({searchMode:"search-with-field",placeholder:F.placeholder})),BK=s=>s.search.fold(()=>({searchMode:"no-search"}),F=>({searchMode:"search-with-results"})),v4=(s,F,Z,ue)=>{const we=fi("primary-menu"),Be=R$(s,Z.shared.providers.menuItems());if(Be.items.length===0)return I.none();const qe=L$(ue),ft=oG(we,Be.items,F,Z,ue.isHorizontalMenu,qe),gt=BK(ue),At=Ue(Be.menus,(on,yn)=>oG(yn,on,F,Z,!1,gt)),$t=nl(At,wh(we,ft));return I.from(Rw.tieredData(we,$t,Be.expansions))},y4=s=>!ht(s,"items"),I$="data-value",D$=(s,F,Z,ue,we)=>oe(Z,Be=>y4(Be)?{type:"togglemenuitem",...we?{}:{role:"option"},text:Be.text,value:Be.value,active:Be.value===ue,onAction:()=>{hi.setValue(s,Be.value),Ri(s,tm,{name:F}),oa.focus(s)}}:{type:"nestedmenuitem",text:Be.text,getSubmenuItems:()=>D$(s,F,Be.items,ue,we)}),c9=(s,F)=>Oe(s,Z=>y4(Z)?_t(Z.value===F,Z):c9(Z.items,F)),u9=(s,F,Z)=>{const ue=te(s.items,At=>!y4(At)),we=F.shared.providers,Be=Z.bind(At=>c9(s.items,At)).orThunk(()=>He(s.items).filter(y4)),qe=s.label.map(At=>L2(At,we)),ft=Js.parts.field({dom:{},factory:{sketch:At=>s9({uid:At.uid,text:Be.map($t=>$t.text),icon:I.none(),tooltip:I.none(),role:_t(!ue,"combobox"),...ue?{}:{listRole:"listbox"},ariaLabel:s.label,fetch:($t,on)=>{const yn=D$($t,s.name,s.items,hi.getValue($t),ue);on(v4(yn,r1.CLOSE_ON_EXECUTE,F,{isHorizontalMenu:!1,search:I.none()}))},onSetup:x(v),getApi:x({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Wl.config({}),nO(Be.map($t=>$t.value),$t=>ao($t.element,I$),($t,on)=>{c9(s.items,on).each(yn=>{fr($t.element,I$,yn.value),Ri($t,Mg,{text:yn.text})})})]},"tox-listbox",F.shared)}}),gt={dom:{tag:"div",classes:["tox-listboxfield"]},components:[ft]};return Js.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ve([qe.toArray(),[gt]]),fieldBehaviours:Do([ea.config({disabled:x(!s.enabled),onDisabled:At=>{Js.getField(At).each(ea.disable)},onEnabled:At=>{Js.getField(At).each(ea.enable)}})])})},zK=(s,F)=>({dom:{tag:"div",classes:s.classes},components:oe(s.items,F.shared.interpreter)}),B$=(s,F)=>{const Z=oe(s.options,we=>({dom:{tag:"option",value:we.value,innerHtml:we.text}})),ue=s.data.map(we=>wh("initialValue",we)).getOr({});return{uid:s.uid,dom:{tag:"select",classes:s.selectClasses,attributes:s.selectAttributes},components:Z,behaviours:Pf(s.selectBehaviours,[oa.config({}),hi.config({store:{mode:"manual",getValue:we=>qr(we.element),setValue:(we,Be)=>{const qe=He(s.options);ce(s.options,gt=>gt.value===Be).isSome()?N(we.element,Be):we.element.dom.selectedIndex===-1&&Be===""&&qe.each(gt=>N(we.element,gt.value))},...ue}})])}},FK=Yh({name:"HtmlSelect",configFields:[Sn("options"),Ef("selectBehaviours",[oa,hi]),mr("selectClasses",[]),mr("selectAttributes",{}),Hr("data")],factory:B$}),z$=(s,F,Z)=>{const ue=oe(s.items,gt=>({text:F.translate(gt.text),value:gt.value})),we=s.label.map(gt=>L2(gt,F)),Be=Js.parts.field({dom:{},...Z.map(gt=>({data:gt})).getOr({}),selectAttributes:{size:s.size},options:ue,factory:FK,selectBehaviours:Do([ea.config({disabled:()=>!s.enabled||F.isDisabled()}),Wl.config({}),Ta("selectbox-change",[fo(Zv(),(gt,At)=>{Ri(gt,tm,{name:s.name})})])])}),qe=s.size>1?I.none():I.some(em("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},F.icons)),ft={dom:{tag:"div",classes:["tox-selectfield"]},components:ve([[Be],qe.toArray()])};return Js.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ve([we.toArray(),[ft]]),fieldBehaviours:Do([ea.config({disabled:()=>!s.enabled||F.isDisabled(),onDisabled:gt=>{Js.getField(gt).each(ea.disable)},onEnabled:gt=>{Js.getField(gt).each(ea.enable)}}),df()])})},NK=x([mr("field1Name","field1"),mr("field2Name","field2"),Zh("onLockedChange"),jp(["lockClass"]),mr("locked",!1),Vm.field("coupledFieldBehaviours",[as,hi])]),$K=(s,F,Z)=>Fo(s,F,Z).bind(as.getCurrent),F$=(s,F)=>Sd({factory:Js,name:s,overrides:Z=>({fieldBehaviours:Do([Ta("coupled-input-behaviour",[fo(cg(),ue=>{$K(ue,Z,F).each(we=>{Fo(ue,Z,"lock").each(Be=>{za.isOn(Be)&&Z.onLockedChange(ue,we,Be)})})})])])})}),VK=x([F$("field1","field2"),F$("field2","field1"),Sd({factory:Vd,schema:[Sn("dom")],name:"lock",overrides:s=>({buttonBehaviours:Do([za.config({selected:s.locked,toggleClass:s.markers.lockClass,aria:{mode:"pressed"}})])})})]),UK=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,components:F,behaviours:Vm.augment(s.coupledFieldBehaviours,[as.config({find:I.some}),hi.config({store:{mode:"manual",getValue:we=>{const Be=ww(we,s,["field1","field2"]);return{[s.field1Name]:hi.getValue(Be.field1()),[s.field2Name]:hi.getValue(Be.field2())}},setValue:(we,Be)=>{const qe=ww(we,s,["field1","field2"]);pt(Be,s.field1Name)&&hi.setValue(qe.field1(),Be[s.field1Name]),pt(Be,s.field2Name)&&hi.setValue(qe.field2(),Be[s.field2Name])}}})]),apis:{getField1:we=>Fo(we,s,"field1"),getField2:we=>Fo(we,s,"field2"),getLock:we=>Fo(we,s,"lock")}}),Ym=ch({name:"FormCoupledInputs",configFields:NK(),partFields:VK(),factory:UK,apis:{getField1:(s,F)=>s.getField1(F),getField2:(s,F)=>s.getField2(F),getLock:(s,F)=>s.getLock(F)}}),jK=s=>{const F={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},Z=we=>we in F?F[we]:1;let ue=s.value.toFixed(Z(s.unit));return ue.indexOf(".")!==-1&&(ue=ue.replace(/\.?0*$/,"")),ue+s.unit},f9=s=>{const Z=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(s);if(Z!==null){const ue=parseFloat(Z[1]),we=Z[2];return Hi.value({value:ue,unit:we})}else return Hi.error(s)},d9=(s,F)=>{const Z={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},ue=we=>ht(Z,we);return s.unit===F?I.some(s.value):ue(s.unit)&&ue(F)?Z[s.unit]===Z[F]?I.some(s.value):I.some(s.value/Z[s.unit]*Z[F]):I.none()},h9=s=>I.none(),QK=(s,F)=>Z=>d9(Z,F).map(ue=>({value:ue*s,unit:F})),HK=(s,F)=>{const Z=f9(s).toOptional(),ue=f9(F).toOptional();return en(Z,ue,(we,Be)=>d9(we,Be.unit).map(qe=>Be.value/qe).map(qe=>QK(qe,Be.unit)).getOr(h9)).getOr(h9)},N$=(s,F)=>{let Z=h9;const ue=fi("ratio-event"),we=wn=>em(wn,{tag:"span",classes:["tox-icon","tox-lock-icon__"+wn]},F.icons),Be=s.label.getOr("Constrain proportions"),qe=F.translate(Be),ft=Ym.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":qe,"data-mce-name":Be}},components:[we("lock"),we("unlock")],buttonBehaviours:Do([ea.config({disabled:()=>!s.enabled||F.isDisabled()}),df(),Wl.config({}),kd.config(F.tooltips.getConfig({tooltipText:qe}))])}),gt=wn=>({dom:{tag:"div",classes:["tox-form__group"]},components:wn}),At=wn=>Js.parts.field({factory:Nw,inputClasses:["tox-textfield"],inputBehaviours:Do([ea.config({disabled:()=>!s.enabled||F.isDisabled()}),df(),Wl.config({}),Ta("size-input-events",[fo(Sm(),(Mn,Xn)=>{Ri(Mn,ue,{isField1:wn})}),fo(Zv(),(Mn,Xn)=>{Ri(Mn,tm,{name:s.name})})])]),selectOnFocus:!1}),$t=wn=>({dom:{tag:"label",classes:["tox-label"]},components:[ro(F.translate(wn))]}),on=Ym.parts.field1(gt([Js.parts.label($t("Width")),At(!0)])),yn=Ym.parts.field2(gt([Js.parts.label($t("Height")),At(!1)]));return Ym.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[on,yn,gt([$t(by),ft])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(wn,Mn,Xn)=>{f9(hi.getValue(wn)).each(Br=>{Z(Br).each(or=>{hi.setValue(Mn,jK(or))})})},coupledFieldBehaviours:Do([ea.config({disabled:()=>!s.enabled||F.isDisabled(),onDisabled:wn=>{Ym.getField1(wn).bind(Js.getField).each(ea.disable),Ym.getField2(wn).bind(Js.getField).each(ea.disable),Ym.getLock(wn).each(ea.disable)},onEnabled:wn=>{Ym.getField1(wn).bind(Js.getField).each(ea.enable),Ym.getField2(wn).bind(Js.getField).each(ea.enable),Ym.getLock(wn).each(ea.enable)}}),df(),Ta("size-input-events2",[fo(ue,(wn,Mn)=>{const Xn=Mn.event.isField1,Br=Xn?Ym.getField1(wn):Ym.getField2(wn),or=Xn?Ym.getField2(wn):Ym.getField1(wn),Mr=Br.map(hi.getValue).getOr(""),kr=or.map(hi.getValue).getOr("");Z=HK(Mr,kr)})])])})},ZK=(s,F,Z)=>{const ue=l1.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[ro(F.translate(s.label))]}),we=l1.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),Be=l1.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return l1.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:s.min,maxX:s.max,getInitialValue:x(Z.getOrThunk(()=>(Math.abs(s.max)-Math.abs(s.min))/2))},components:[ue,we,Be],sliderBehaviours:Do([y0.self(),oa.config({})]),onChoose:(qe,ft,gt)=>{Ri(qe,tm,{name:s.name,value:gt})},onChange:(qe,ft,gt)=>{Ri(qe,tm,{name:s.name,value:gt})}})},qK=(s,F)=>{const Z=ft=>({dom:{tag:"th",innerHtml:F.translate(ft)}}),ue=ft=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:oe(ft,Z)}]}),we=ft=>({dom:{tag:"td",innerHtml:F.translate(ft)}}),Be=ft=>({dom:{tag:"tr"},components:oe(ft,we)}),qe=ft=>({dom:{tag:"tbody"},components:oe(ft,Be)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[ue(s.header),qe(s.cells)],behaviours:Do([Wl.config({}),oa.config({})])}},$$=(s,F)=>{const Z=s.label.map(wn=>L2(wn,F)),ue=[ea.config({disabled:()=>s.disabled||F.isDisabled()}),df(),Li.config({mode:"execution",useEnter:s.multiline!==!0,useControlEnter:s.multiline===!0,execute:wn=>(Sa(wn,c4),I.some(!0))}),Ta("textfield-change",[fo(cg(),(wn,Mn)=>{Ri(wn,tm,{name:s.name})}),fo(Gg(),(wn,Mn)=>{Ri(wn,tm,{name:s.name})})]),Wl.config({})],we=s.validation.map(wn=>By.config({getRoot:Mn=>Cr(Mn.element),invalidClass:"tox-invalid",validator:{validate:Mn=>{const Xn=hi.getValue(Mn),Br=wn.validator(Xn);return uh.pure(Br===!0?Hi.value(Xn):Hi.error(Br))},validateOnLoad:wn.validateOnLoad}})).toArray(),Be=s.placeholder.fold(x({}),wn=>({placeholder:F.translate(wn)})),qe=s.inputMode.fold(x({}),wn=>({inputmode:wn})),ft={...Be,...qe},gt=Js.parts.field({tag:s.multiline===!0?"textarea":"input",...s.data.map(wn=>({data:wn})).getOr({}),inputAttributes:ft,inputClasses:[s.classname],inputBehaviours:Do(ve([ue,we])),selectOnFocus:!1,factory:Nw}),At=s.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[gt]}:gt,on=(s.flex?["tox-form__group--stretched"]:[]).concat(s.maximized?["tox-form-group--maximize"]:[]),yn=[ea.config({disabled:()=>s.disabled||F.isDisabled(),onDisabled:wn=>{Js.getField(wn).each(ea.disable)},onEnabled:wn=>{Js.getField(wn).each(ea.enable)}}),df()];return l4(Z,At,on,yn)},V$=(s,F,Z)=>$$({name:s.name,multiline:!1,label:s.label,inputMode:s.inputMode,placeholder:s.placeholder,flex:!1,disabled:!s.enabled,classname:"tox-textfield",validation:I.none(),maximized:s.maximized,data:Z},F),U$=(s,F,Z)=>$$({name:s.name,multiline:!0,label:s.label,inputMode:I.none(),placeholder:s.placeholder,flex:!0,disabled:!s.enabled,classname:"tox-textarea",validation:I.none(),maximized:s.maximized,data:Z},F),b4=(s,F)=>F.getAnimationRoot.fold(()=>s.element,Z=>Z(s)),c1=s=>s.dimension.property,rO=(s,F)=>s.dimension.getDimension(F),n8=(s,F)=>{const Z=b4(s,F);th(Z,[F.shrinkingClass,F.growingClass])},p9=(s,F)=>{fc(s.element,F.openClass),wl(s.element,F.closedClass),ko(s.element,c1(F),"0px"),Ku(s.element)},m9=(s,F)=>{fc(s.element,F.closedClass),wl(s.element,F.openClass),ma(s.element,c1(F))},g9=(s,F,Z,ue)=>{Z.setCollapsed(),ko(s.element,c1(F),rO(F,s.element)),n8(s,F),p9(s,F),F.onStartShrink(s),F.onShrunk(s)},WK=(s,F,Z,ue)=>{const we=ue.getOrThunk(()=>rO(F,s.element));Z.setCollapsed(),ko(s.element,c1(F),we),Ku(s.element);const Be=b4(s,F);fc(Be,F.growingClass),wl(Be,F.shrinkingClass),p9(s,F),F.onStartShrink(s)},j$=(s,F,Z)=>{const ue=rO(F,s.element);(ue==="0px"?g9:WK)(s,F,Z,I.some(ue))},Q$=(s,F,Z)=>{const ue=b4(s,F),we=$l(ue,F.shrinkingClass),Be=rO(F,s.element);m9(s,F);const qe=rO(F,s.element);(we?()=>{ko(s.element,c1(F),Be),Ku(s.element)}:()=>{p9(s,F)})(),fc(ue,F.shrinkingClass),wl(ue,F.growingClass),m9(s,F),ko(s.element,c1(F),qe),Z.setExpanded(),F.onStartGrow(s)},H$=(s,F,Z)=>{if(Z.isExpanded()){ma(s.element,c1(F));const ue=rO(F,s.element);ko(s.element,c1(F),ue)}},Z$=(s,F,Z)=>{Z.isExpanded()||Q$(s,F,Z)},YK=(s,F,Z)=>{Z.isExpanded()&&j$(s,F,Z)},XK=(s,F,Z)=>{Z.isExpanded()&&g9(s,F,Z)},q$=(s,F,Z)=>Z.isExpanded(),GK=(s,F,Z)=>Z.isCollapsed(),W$=(s,F,Z)=>{const ue=b4(s,F);return $l(ue,F.growingClass)===!0},ua=(s,F,Z)=>{const ue=b4(s,F);return $l(ue,F.shrinkingClass)===!0};var Y$=Object.freeze({__proto__:null,refresh:H$,grow:Z$,shrink:YK,immediateShrink:XK,hasGrown:q$,hasShrunk:GK,isGrowing:W$,isShrinking:ua,isTransitioning:(s,F,Z)=>W$(s,F)||ua(s,F),toggleGrow:(s,F,Z)=>{(Z.isExpanded()?j$:Q$)(s,F,Z)},disableTransitions:n8,immediateGrow:(s,F,Z)=>{Z.isExpanded()||(m9(s,F),ko(s.element,c1(F),rO(F,s.element)),n8(s,F),Z.setExpanded(),F.onStartGrow(s),F.onGrown(s))}}),ffe=Object.freeze({__proto__:null,exhibit:(s,F,Z)=>{const ue=F.expanded;return Tf(ue?{classes:[F.openClass],styles:{}}:{classes:[F.closedClass],styles:wh(F.dimension.property,"0px")})},events:(s,F)=>hl([Wv(sp(),(Z,ue)=>{ue.event.raw.propertyName===s.dimension.property&&(n8(Z,s),F.isExpanded()&&ma(Z.element,s.dimension.property),(F.isExpanded()?s.onGrown:s.onShrunk)(Z))})])}),pk=[Sn("closedClass"),Sn("openClass"),Sn("shrinkingClass"),Sn("growingClass"),Hr("getAnimationRoot"),Ra("onShrunk"),Ra("onStartShrink"),Ra("onGrown"),Ra("onStartGrow"),mr("expanded",!1),rr("dimension",xn("property",{width:[Il("property","width"),Il("getDimension",s=>cc(s)+"px")],height:[Il("property","height"),Il("getDimension",s=>Ql(s)+"px")]}))],X$=Object.freeze({__proto__:null,init:s=>{const F=xi(s.expanded),Z=()=>"expanded: "+F.get();return kh({isExpanded:()=>F.get()===!0,isCollapsed:()=>F.get()===!1,setCollapsed:T(F.set,!1),setExpanded:T(F.set,!0),readState:Z})}});const nm=lf({fields:pk,name:"sliding",active:ffe,apis:Y$,state:X$}),G$=s=>({isEnabled:()=>!ea.isDisabled(s),setEnabled:F=>ea.set(s,!F),setActive:F=>{const Z=s.element;F?(wl(Z,"tox-tbtn--enabled"),fr(Z,"aria-pressed",!0)):(fc(Z,"tox-tbtn--enabled"),po(Z,"aria-pressed"))},isActive:()=>$l(s.element,"tox-tbtn--enabled"),setText:F=>{Ri(s,Mg,{text:F})},setIcon:F=>Ri(s,F2,{icon:F})}),mk=(s,F,Z,ue,we=!0,Be)=>s9({text:s.text,icon:s.icon,tooltip:s.tooltip,ariaLabel:s.tooltip,searchable:s.search.isSome(),role:ue,fetch:(qe,ft)=>{const gt={pattern:s.search.isSome()?tG(qe):""};s.fetch(At=>{ft(v4(At,r1.CLOSE_ON_EXECUTE,Z,{isHorizontalMenu:!1,search:s.search}))},gt,G$(qe))},onSetup:s.onSetup,getApi:G$,columns:1,presets:"normal",classes:[],dropdownBehaviours:[...we?[Wl.config({})]:[]]},F,Z.shared,Be),K$=(s,F,Z)=>{const ue=Be=>qe=>{const ft=!qe.isActive();qe.setActive(ft),Be.storage.set(ft),Z.shared.getSink().each(gt=>{F().getOpt(gt).each(At=>{bd(At.element),Ri(At,Dy,{name:Be.name,value:Be.storage.get()})})})},we=Be=>qe=>{qe.setActive(Be.storage.get())};return Be=>{Be(oe(s,qe=>{const ft=qe.text.fold(()=>({}),gt=>({text:gt}));return{type:qe.type,active:!1,...ft,onAction:ue(qe),onSetup:we(qe)}}))}},o8=s=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{"aria-label":s}},components:[ro(s)]}),v9=fi("leaf-label-event-id"),y9=({leaf:s,onLeafAction:F,visible:Z,treeId:ue,selectedId:we,backstage:Be})=>{const qe=s.menu.map(gt=>mk(gt,"tox-mbtn",Be,I.none(),Z)),ft=[o8(s.title)];return qe.each(gt=>ft.push(gt)),Vd.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(Z?["tox-tree--leaf__label--visible"]:[])},components:ft,role:"treeitem",action:gt=>{F(s.id),gt.getSystem().broadcastOn([`update-active-item-${ue}`],{value:s.id})},eventOrder:{[Bp()]:[v9,"keying"]},buttonBehaviours:Do([...Z?[Wl.config({})]:[],za.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),Wu.config({channels:{[`update-active-item-${ue}`]:{onReceive:(gt,At)=>{(At.value===s.id?za.on:za.off)(gt)}}}}),Ta(v9,[Ll((gt,At)=>{we.each($t=>{($t===s.id?za.on:za.off)(gt)})}),fo(Bp(),(gt,At)=>{const $t=At.event.raw.code==="ArrowLeft",on=At.event.raw.code==="ArrowRight";$t?(zs(gt.element,".tox-tree--directory").each(yn=>{gt.getSystem().getByDom(yn).each(wn=>{rc(yn,".tox-tree--directory__label").each(Mn=>{wn.getSystem().getByDom(Mn).each(oa.focus)})})}),At.stop()):on&&At.stop()})])])})},nJ=(s,F,Z)=>em(s,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:Z},F),rJ=(s,F)=>nJ(s,F,[]),J$=fi("directory-label-event-id"),oJ=({directory:s,visible:F,noChildren:Z,backstage:ue})=>{const we=s.menu.map(ft=>mk(ft,"tox-mbtn",ue,I.none())),Be=[{dom:{tag:"div",classes:["tox-chevron"]},components:[rJ("chevron-right",ue.shared.providers.icons)]},o8(s.title)];we.each(ft=>{Be.push(ft)});const qe=ft=>{zs(ft.element,".tox-tree--directory").each(gt=>{ft.getSystem().getByDom(gt).each(At=>{const $t=!za.isOn(At);za.toggle(At),Ri(ft,"expand-tree-node",{expanded:$t,node:s.id})})})};return Vd.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(F?["tox-tree--directory__label--visible"]:[])},components:Be,action:qe,eventOrder:{[Bp()]:[J$,"keying"]},buttonBehaviours:Do([...F?[Wl.config({})]:[],Ta(J$,[fo(Bp(),(ft,gt)=>{const At=gt.event.raw.code==="ArrowRight",$t=gt.event.raw.code==="ArrowLeft";At&&Z&>.stop(),(At||$t)&&zs(ft.element,".tox-tree--directory").each(on=>{ft.getSystem().getByDom(on).each(yn=>{!za.isOn(yn)&&At||za.isOn(yn)&&$t?(qe(ft),gt.stop()):$t&&!za.isOn(yn)&&(zs(yn.element,".tox-tree--directory").each(wn=>{rc(wn,".tox-tree--directory__label").each(Mn=>{yn.getSystem().getByDom(Mn).each(oa.focus)})}),gt.stop())})})})])])})},iJ=({children:s,onLeafAction:F,visible:Z,treeId:ue,expandedIds:we,selectedId:Be,backstage:qe})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:s.map(ft=>ft.type==="leaf"?y9({leaf:ft,selectedId:Be,onLeafAction:F,visible:Z,treeId:ue,backstage:qe}):b9({directory:ft,expandedIds:we,selectedId:Be,onLeafAction:F,labelTabstopping:Z,treeId:ue,backstage:qe})),behaviours:Do([nm.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:Z}),da.config({})])}),aJ=fi("directory-event-id"),b9=({directory:s,onLeafAction:F,labelTabstopping:Z,treeId:ue,backstage:we,expandedIds:Be,selectedId:qe})=>{const{children:ft}=s,gt=xi(Be),At=on=>ft.map(yn=>yn.type==="leaf"?y9({leaf:yn,selectedId:qe,onLeafAction:F,visible:on,treeId:ue,backstage:we}):b9({directory:yn,expandedIds:gt.get(),selectedId:qe,onLeafAction:F,labelTabstopping:on,treeId:ue,backstage:we})),$t=Be.includes(s.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[oJ({directory:s,visible:Z,noChildren:s.children.length===0,backstage:we}),iJ({children:ft,expandedIds:Be,selectedId:qe,onLeafAction:F,visible:$t,treeId:ue,backstage:we})],behaviours:Do([Ta(aJ,[Ll((on,yn)=>{za.set(on,$t)}),fo("expand-tree-node",(on,yn)=>{const{expanded:wn,node:Mn}=yn.event;gt.set(wn?[...gt.get(),Mn]:gt.get().filter(Xn=>Xn!==Mn))})]),za.config({...s.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(on,yn)=>{const wn=on.components()[1],Mn=At(yn);yn?nm.grow(wn):nm.shrink(wn),da.set(wn,Mn)}})])}},sJ=fi("tree-event-id"),lJ=(s,F)=>{const Z=s.onLeafAction.getOr(v),ue=s.onToggleExpand.getOr(v),we=s.defaultExpandedIds,Be=xi(we),qe=xi(s.defaultSelectedId),ft=fi("tree-id"),gt=(At,$t)=>s.items.map(on=>on.type==="leaf"?y9({leaf:on,selectedId:At,onLeafAction:Z,visible:!0,treeId:ft,backstage:F}):b9({directory:on,selectedId:At,onLeafAction:Z,expandedIds:$t,labelTabstopping:!0,treeId:ft,backstage:F}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:gt(qe.get(),Be.get()),behaviours:Do([Li.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),Ta(sJ,[fo("expand-tree-node",(At,$t)=>{const{expanded:on,node:yn}=$t.event;Be.set(on?[...Be.get(),yn]:Be.get().filter(wn=>wn!==yn)),ue(Be.get(),{expanded:on,node:yn})})]),Wu.config({channels:{[`update-active-item-${ft}`]:{onReceive:(At,$t)=>{qe.set(I.some($t.value)),da.set(At,gt(I.some($t.value),Be.get()))}}}}),da.config({})])}};var uJ=Object.freeze({__proto__:null,events:(s,F)=>{const ue=s.stream.streams.setup(s,F);return hl([fo(s.event,ue),Sh(()=>F.cancel())].concat(s.cancelEvent.map(we=>[fo(we,()=>F.cancel())]).getOr([])))}});const eV=s=>{const F=xi(null);return kh({readState:()=>({timer:F.get()!==null?"set":"unset"}),setTimer:Be=>{F.set(Be)},cancel:()=>{const Be=F.get();Be!==null&&Be.cancel()}})};var fJ=Object.freeze({__proto__:null,throttle:eV,init:s=>s.stream.streams.state(s)});const dJ=(s,F)=>{const Z=s.stream,ue=fk(s.onStream,Z.delay);return F.setTimer(ue),(we,Be)=>{ue.throttle(we,Be),Z.stopEvent&&Be.stop()}};var hJ=[rr("stream",xn("mode",{throttle:[Sn("delay"),mr("stopEvent",!0),Il("streams",{setup:dJ,state:eV})]})),mr("event","input"),Hr("cancelEvent"),Zh("onStream")];const x9=lf({fields:hJ,name:"streaming",active:uJ,state:fJ}),i8=(s,F,Z)=>{const ue=hi.getValue(Z);hi.setValue(F,ue),nV(F)},tV=(s,F)=>{const Z=s.element,ue=qr(Z),we=Z.dom;ao(Z,"type")!=="number"&&F(we,ue)},nV=s=>{tV(s,(F,Z)=>F.setSelectionRange(Z.length,Z.length))},pJ=(s,F)=>{tV(s,(Z,ue)=>Z.setSelectionRange(F,ue.length))},rV=(s,F,Z)=>{if(s.selectsOver){const ue=hi.getValue(F),we=s.getDisplayText(ue),Be=hi.getValue(Z);return s.getDisplayText(Be).indexOf(we)===0?I.some(()=>{i8(s,F,Z),pJ(F,we.length)}):I.none()}else return I.none()},_9=x("alloy.typeahead.itemexecute"),mJ=(s,F,Z,ue)=>{const we=(on,yn,wn)=>{s.previewing.set(!1);const Mn=lu.getCoupled(on,"sandbox");if(hs.isOpen(Mn))as.getCurrent(Mn).each(Xn=>{ri.getHighlighted(Xn).fold(()=>{wn(Xn)},()=>{Np(Mn,Xn.element,"keydown",yn)})});else{const Xn=Br=>{as.getCurrent(Br).each(wn)};AC(s,qe(on),on,Mn,ue,Xn,Xh.HighlightMenuAndItem).get(v)}},Be=I7(s),qe=on=>yn=>yn.map(wn=>{const Mn=ot(wn.menus),Xn=ye(Mn,or=>me(or.items,Mr=>Mr.type==="item"));return hi.getState(on).update(oe(Xn,or=>or.data)),wn}),ft=on=>as.getCurrent(on),gt="typeaheadevents",At=[oa.config({}),hi.config({onSetValue:s.onSetValue,store:{mode:"dataset",getDataKey:on=>qr(on.element),getFallbackEntry:on=>({value:on,meta:{}}),setValue:(on,yn)=>{N(on.element,s.model.getDisplayText(yn))},...s.initialData.map(on=>wh("initialValue",on)).getOr({})}}),x9.config({stream:{mode:"throttle",delay:s.responseTime,stopEvent:!1},onStream:(on,yn)=>{const wn=lu.getCoupled(on,"sandbox");if(oa.isFocused(on)&&qr(on.element).length>=s.minChars){const Xn=ft(wn).bind(or=>ri.getHighlighted(or).map(hi.getValue));s.previewing.set(!0);const Br=or=>{ft(wn).each(Mr=>{Xn.fold(()=>{s.model.selectsOver&&ri.highlightFirst(Mr)},kr=>{ri.highlightBy(Mr,yo=>hi.getValue(yo).value===kr.value),ri.getHighlighted(Mr).orThunk(()=>(ri.highlightFirst(Mr),I.none()))})})};AC(s,qe(on),on,wn,ue,Br,Xh.HighlightJustMenu).get(v)}},cancelEvent:Px()}),Li.config({mode:"special",onDown:(on,yn)=>(we(on,yn,ri.highlightFirst),I.some(!0)),onEscape:on=>{const yn=lu.getCoupled(on,"sandbox");return hs.isOpen(yn)?(hs.close(yn),I.some(!0)):I.none()},onUp:(on,yn)=>(we(on,yn,ri.highlightLast),I.some(!0)),onEnter:on=>{const yn=lu.getCoupled(on,"sandbox"),wn=hs.isOpen(yn);if(wn&&!s.previewing.get())return ft(yn).bind(Mn=>ri.getHighlighted(Mn)).map(Mn=>(Ri(on,_9(),{item:Mn}),!0));{const Mn=hi.getValue(on);return Sa(on,Px()),s.onExecute(yn,on,Mn),wn&&hs.close(yn),I.some(!0)}}}),za.config({toggleClass:s.markers.openClass,aria:{mode:"expanded"}}),lu.config({others:{sandbox:on=>bP(s,on,{onOpen:()=>za.on(on),onClose:()=>{s.lazyTypeaheadComp.get().each(yn=>po(yn.element,"aria-activedescendant")),za.off(on)}})}}),Ta(gt,[Ll(on=>{s.lazyTypeaheadComp.set(I.some(on))}),Sh(on=>{s.lazyTypeaheadComp.set(I.none())}),$p(on=>{const yn=v;vP(s,qe(on),on,ue,yn,Xh.HighlightMenuAndItem).get(v)}),fo(_9(),(on,yn)=>{const wn=lu.getCoupled(on,"sandbox");i8(s.model,on,yn.event.item),Sa(on,Px()),s.onItemExecute(on,wn,yn.event.item,hi.getValue(on)),hs.close(wn),nV(on)})].concat(s.dismissOnBlur?[fo(Xg(),on=>{const yn=lu.getCoupled(on,"sandbox");xd(yn.element).isNone()&&hs.close(yn)})]:[]))],$t={[fp()]:[hi.name(),x9.name(),gt],...s.eventOrder};return{uid:s.uid,dom:D7(nl(s,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...Be,...Pf(s.typeaheadBehaviours,At)},eventOrder:$t}},gJ=x([Hr("lazySink"),Sn("fetch"),mr("minChars",5),mr("responseTime",1e3),Ra("onOpen"),mr("getHotspot",I.some),mr("getAnchorOverrides",x({})),mr("layouts",I.none()),mr("eventOrder",{}),ol("model",{},[mr("getDisplayText",s=>s.meta!==void 0&&s.meta.text!==void 0?s.meta.text:s.value),mr("selectsOver",!0),mr("populateFromBrowse",!0)]),Ra("onSetValue"),yd("onExecute"),Ra("onItemExecute"),mr("inputClasses",[]),mr("inputAttributes",{}),mr("inputStyles",{}),mr("matchWidth",!0),mr("useMinWidth",!1),mr("dismissOnBlur",!0),jp(["openClass"]),Hr("initialData"),Hr("listRole"),Ef("typeaheadBehaviours",[oa,hi,x9,Li,za,lu]),On("lazyTypeaheadComp",()=>xi(I.none)),On("previewing",()=>xi(!0))].concat(L7()).concat(MC())),vJ=x([Um({schema:[U0()],name:"menu",overrides:s=>({fakeFocus:!0,onHighlightItem:(F,Z,ue)=>{s.previewing.get()?s.lazyTypeaheadComp.get().each(we=>{rV(s.model,we,ue).fold(()=>{s.model.selectsOver?(ri.dehighlight(Z,ue),s.previewing.set(!0)):s.previewing.set(!1)},Be=>{Be(),s.previewing.set(!1)})}):s.lazyTypeaheadComp.get().each(we=>{s.model.populateFromBrowse&&i8(s.model,we,ue),co(ue.element,"id").each(Be=>fr(we.element,"aria-activedescendant",Be))})},onExecute:(F,Z)=>s.lazyTypeaheadComp.get().map(ue=>(Ri(ue,_9(),{item:Z}),!0)),onHover:(F,Z)=>{s.previewing.set(!1),s.lazyTypeaheadComp.get().each(ue=>{s.model.populateFromBrowse&&i8(s.model,ue,Z)})}})})]),yJ=ch({name:"Typeahead",configFields:gJ(),partFields:vJ(),factory:mJ}),u1=s=>({...s,toCached:()=>u1(s.toCached()),bindFuture:gt=>u1(s.bind(At=>At.fold($t=>uh.pure(Hi.error($t)),$t=>gt($t)))),bindResult:gt=>u1(s.map(At=>At.bind(gt))),mapResult:gt=>u1(s.map(At=>At.map(gt))),mapError:gt=>u1(s.map(At=>At.mapError(gt))),foldResult:(gt,At)=>s.map($t=>$t.fold(gt,At)),withTimeout:(gt,At)=>u1(uh.nu($t=>{let on=!1;const yn=setTimeout(()=>{on=!0,$t(Hi.error(At()))},gt);s.get(wn=>{on||(clearTimeout(yn),$t(wn))})}))}),w9=s=>u1(uh.nu(s)),oV=s=>u1(uh.pure(Hi.value(s))),O9={nu:w9,wrap:u1,pure:oV,value:oV,error:s=>u1(uh.pure(Hi.error(s))),fromResult:s=>u1(uh.pure(s)),fromFuture:s=>u1(s.map(Hi.value)),fromPromise:s=>w9(F=>{s.then(Z=>{F(Hi.value(Z))},Z=>{F(Hi.error(Z))})})},a8=(s,F,Z=[],ue,we,Be,qe)=>{const ft=F.fold(()=>({}),$t=>({action:$t})),gt={buttonBehaviours:Do([s1.button(()=>!s.enabled||qe.isDisabled()),df(),Wl.config({}),...Be.map($t=>kd.config(qe.tooltips.getConfig({tooltipText:qe.translate($t)}))).toArray(),Ta("button press",[B0("click"),B0("mousedown")])].concat(Z)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...ft},At=nl(gt,{dom:ue});return nl(At,{components:we})},iV=(s,F,Z,ue=[],we)=>{const Be=s.tooltip.map(At=>({"aria-label":Z.translate(At)})).getOr({}),qe={tag:"button",classes:["tox-tbtn"],attributes:{...Be,"data-mce-name":we}},ft=s.icon.map(At=>t8(At,Z.icons)),gt=jw([ft]);return a8(s,F,ue,qe,gt,s.tooltip,Z)},s8=s=>{switch(s){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},aV=(s,F,Z,ue=[],we=[])=>{const Be=Z.translate(s.text),qe=s.icon.map(wn=>t8(wn,Z.icons)),ft=[qe.getOrThunk(()=>ro(Be))],gt=s.buttonType.getOr(!s.primary&&!s.borderless?"secondary":"primary"),on={tag:"button",classes:[...s8(gt),...qe.isSome()?["tox-button--icon"]:[],...s.borderless?["tox-button--naked"]:[],...we],attributes:{"aria-label":Be,"data-mce-name":s.text}},yn=s.icon.map(x(Be));return a8(s,F,ue,on,ft,yn,Z)},S9=(s,F,Z,ue=[],we=[])=>{const Be=aV(s,I.some(F),Z,ue,we);return Vd.sketch(Be)},sV=(s,F)=>Z=>{F==="custom"?Ri(Z,Dy,{name:s,value:{}}):F==="submit"?Sa(Z,c4):F==="cancel"?Sa(Z,I2):console.error("Unknown button type: ",F)},wJ=(s,F)=>F==="menu",wv=(s,F)=>F==="custom"||F==="cancel"||F==="submit",l8=(s,F)=>F==="togglebutton",c8=(s,F,Z)=>{var ue,we;const Be=s.icon.map(kr=>ax(kr,F.icons)).map(qs),qe=kr=>{Ri(kr,Dy,{name:s.name,value:{setIcon:yo=>{Be.map(Xr=>Xr.getOpt(kr).each(No=>{da.set(No,[ax(yo,F.icons)])}))}}})},ft=s.buttonType.getOr(s.primary?"primary":"secondary"),gt={...s,name:(ue=s.name)!==null&&ue!==void 0?ue:"",primary:ft==="primary",tooltip:s.tooltip,enabled:(we=s.enabled)!==null&&we!==void 0?we:!1,borderless:!1},At=gt.tooltip.or(s.text).map(kr=>({"aria-label":F.translate(kr)})).getOr({}),$t=s8(ft??"secondary"),on=s.icon.isSome()&&s.text.isSome(),yn={tag:"button",classes:[...$t.concat(s.icon.isSome()?["tox-button--icon"]:[]),...s.active?["tox-button--enabled"]:[],...on?["tox-button--icon-and-text"]:[]],attributes:{...At,...a(Z)?{"data-mce-name":Z}:{}}},wn=[],Mn=F.translate(s.text.getOr("")),Xn=ro(Mn),or=[...jw([Be.map(kr=>kr.asSpec())]),...s.text.isSome()?[Xn]:[]],Mr=a8(gt,I.some(qe),wn,yn,or,s.tooltip,F);return Vd.sketch(Mr)},u8=(s,F,Z)=>{if(wJ(s,F)){const ue=()=>qe,we=s,Be={...s,type:"menubutton",search:I.none(),onSetup:ft=>(ft.setEnabled(s.enabled),v),fetch:K$(we.items,ue,Z)},qe=qs(mk(Be,"tox-tbtn",Z,I.none(),!0,s.text.or(s.tooltip).getOrUndefined()));return qe.asSpec()}else if(wv(s,F)){const ue=sV(s.name,F),we={...s,borderless:!1};return S9(we,ue,Z.shared.providers,[])}else{if(l8(s,F))return c8(s,Z.shared.providers,s.text.or(s.tooltip).getOrUndefined());throw console.error("Unknown footer button type: ",F),new Error("Unknown footer button type")}},k9=(s,F)=>{const Z=sV(s.name,"custom");return bG(I.none(),Js.parts.field({factory:Vd,...aV(s,I.some(Z),F,[WC(""),y0.self()])}))},OJ={type:"separator"},T9=s=>({type:"menuitem",value:s.url,text:s.title,meta:{attach:s.attach},onAction:v}),f8=(s,F)=>({type:"menuitem",value:F,text:s,meta:{attach:void 0},onAction:v}),C9=s=>oe(s,T9),SJ=(s,F)=>me(F,Z=>Z.type===s),lV=(s,F)=>C9(SJ(s,F)),cV=s=>lV("header",s.targets),kJ=s=>lV("anchor",s.targets),TJ=s=>I.from(s.anchorTop).map(F=>f8("",F)).toArray(),A9=s=>I.from(s.anchorBottom).map(F=>f8("",F)).toArray(),CJ=s=>oe(s,F=>f8(F,F)),AJ=s=>se(s,(F,Z)=>F.length===0||Z.length===0?F.concat(Z):F.concat(OJ,Z),[]),d8=(s,F)=>{const Z=s.toLowerCase();return me(F,ue=>{var we;const Be=ue.meta!==void 0&&ue.meta.text!==void 0?ue.meta.text:ue.text,qe=(we=ue.value)!==null&&we!==void 0?we:"";return bt(Be.toLowerCase(),Z)||bt(qe.toLowerCase(),Z)})},uV=(s,F,Z)=>{var ue,we;const Be=hi.getValue(F),qe=(we=(ue=Be==null?void 0:Be.meta)===null||ue===void 0?void 0:ue.text)!==null&&we!==void 0?we:Be.value;return Z.getLinkInformation().fold(()=>[],gt=>{const At=d8(qe,CJ(Z.getHistory(s)));return s==="file"?AJ([At,d8(qe,cV(gt)),d8(qe,ve([TJ(gt),kJ(gt),A9(gt)]))]):At})},fV=fi("aria-invalid"),MJ=(s,F,Z,ue)=>{const we=F.shared.providers,Be=Mr=>{const kr=hi.getValue(Mr);Z.addToHistory(kr.value,s.filetype)},qe={...ue.map(Mr=>({initialData:Mr})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":fV,type:"url"},minChars:0,responseTime:0,fetch:Mr=>{const kr=uV(s.filetype,Mr,Z),yo=v4(kr,r1.BUBBLE_TO_SANDBOX,F,{isHorizontalMenu:!1,search:I.none()});return uh.pure(yo)},getHotspot:Mr=>Mn.getOpt(Mr),onSetValue:(Mr,kr)=>{Mr.hasConfigured(By)&&By.run(Mr).get(v)},typeaheadBehaviours:Do([...Z.getValidationHandler().map(Mr=>By.config({getRoot:kr=>Cr(kr.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(kr,yo)=>{$t.getOpt(kr).each(Xr=>{fr(Xr.element,"title",we.translate(yo))})}},validator:{validate:kr=>{const yo=hi.getValue(kr);return O9.nu(Xr=>{Mr({type:s.filetype,url:yo.value},No=>{if(No.status==="invalid"){const Jo=Hi.error(No.message);Xr(Jo)}else{const Jo=Hi.value(No.message);Xr(Jo)}})})},validateOnLoad:!1}})).toArray(),ea.config({disabled:()=>!s.enabled||we.isDisabled()}),Wl.config({}),Ta("urlinput-events",[fo(cg(),Mr=>{const kr=qr(Mr.element),yo=kr.trim();yo!==kr&&N(Mr.element,yo),s.filetype==="file"&&Ri(Mr,tm,{name:s.name})}),fo(Zv(),Mr=>{Ri(Mr,tm,{name:s.name}),Be(Mr)}),fo(Gg(),Mr=>{Ri(Mr,tm,{name:s.name}),Be(Mr)})])]),eventOrder:{[cg()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:Mr=>Mr.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:F.shared.getSink,parts:{menu:F5(!1,1,"normal")},onExecute:(Mr,kr,yo)=>{Ri(kr,c4,{})},onItemExecute:(Mr,kr,yo,Xr)=>{Be(Mr),Ri(Mr,tm,{name:s.name})}},ft=Js.parts.field({...qe,factory:yJ}),gt=s.label.map(Mr=>L2(Mr,we)),$t=qs(((Mr,kr,yo=Mr,Xr=Mr)=>em(yo,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Mr],attributes:{title:we.translate(Xr),"aria-live":"polite",...kr.fold(()=>({}),No=>({id:No}))}},we.icons))("invalid",I.some(fV),"warning")),on=qs({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[$t.asSpec()]}),yn=Z.getUrlPicker(s.filetype),wn=fi("browser.url.event"),Mn=qs({dom:{tag:"div",classes:["tox-control-wrap"]},components:[ft,on.asSpec()],behaviours:Do([ea.config({disabled:()=>!s.enabled||we.isDisabled()})])}),Xn=qs(S9({name:s.name,icon:I.some("browse"),text:s.picker_text.or(s.label).getOr(""),enabled:s.enabled,primary:!1,buttonType:I.none(),borderless:!0},Mr=>Sa(Mr,wn),we,[],["tox-browse-url"])),Br=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ve([[Mn.asSpec()],yn.map(()=>Xn.asSpec()).toArray()])}),or=Mr=>{as.getCurrent(Mr).each(kr=>{const yo=hi.getValue(kr),Xr={fieldname:s.name,...yo};yn.each(No=>{No(Xr).get(Jo=>{hi.setValue(kr,Jo),Ri(Mr,tm,{name:s.name})})})})};return Js.sketch({dom:_G(),components:gt.toArray().concat([Br()]),fieldBehaviours:Do([ea.config({disabled:()=>!s.enabled||we.isDisabled(),onDisabled:Mr=>{Js.getField(Mr).each(ea.disable),Xn.getOpt(Mr).each(ea.disable)},onEnabled:Mr=>{Js.getField(Mr).each(ea.enable),Xn.getOpt(Mr).each(ea.enable)}}),df(),Ta("url-input-events",[fo(wn,or)])])})},EJ=(s,F)=>{const Z=Az(s.icon,F.icons);return bv.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${s.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:s.url?void 0:Z},components:s.url?[Vd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:Z,attributes:{title:F.translate(s.iconTooltip)}},action:ue=>Ri(ue,Dy,{name:"alert-banner",value:s.url}),buttonBehaviours:Do([S7()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:F.translate(s.text)}}]})},PJ=(s,F)=>{s.dom.checked=F},dV=s=>s.dom.checked,Ov=(s,F,Z)=>{const ue=gt=>(gt.element.dom.click(),I.some(!0)),we=Js.parts.field({factory:{sketch:R},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:Do([y0.self(),ea.config({disabled:()=>!s.enabled||F.isDisabled(),onDisabled:gt=>{Cr(gt.element).each(At=>wl(At,"tox-checkbox--disabled"))},onEnabled:gt=>{Cr(gt.element).each(At=>fc(At,"tox-checkbox--disabled"))}}),Wl.config({}),oa.config({}),f$(Z,dV,PJ),Li.config({mode:"special",onEnter:ue,onSpace:ue,stopSpaceKeyup:!0}),Ta("checkbox-events",[fo(Zv(),(gt,At)=>{Ri(gt,tm,{name:s.name})})])])}),Be=Js.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[ro(F.translate(s.label))],behaviours:Do([u4.config({})])}),qe=gt=>em(gt==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+gt]},F.icons),ft=qs({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[qe("checked"),qe("unchecked")]});return Js.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[we,ft.asSpec(),Be],fieldBehaviours:Do([ea.config({disabled:()=>!s.enabled||F.isDisabled()}),df()])})},M9=(s,F)=>{const Z=["tox-form__group",...s.stretched?["tox-form__group--stretched"]:[]],ue=Ta("htmlpanel",[Ll(we=>{s.onInit(we.element.dom)})]);return s.presets==="presentation"?bv.sketch({dom:{tag:"div",classes:Z,innerHtml:s.html},containerBehaviours:Do([kd.config({...F.tooltips.getConfig({tooltipText:"",onShow:we=>{aa(we.element,"[data-mce-tooltip]:hover").orThunk(()=>xd(we.element)).each(Be=>{co(Be,"data-mce-tooltip").each(qe=>{kd.setComponents(we,F.tooltips.getComponents({tooltipText:qe}))})})}}),mode:"children-normal",anchor:we=>({type:"node",node:aa(we.element,"[data-mce-tooltip]:hover").orThunk(()=>xd(we.element).filter(Be=>co(Be,"data-mce-tooltip").isSome())),root:we.element,layouts:{onLtr:x([Pc,Jc,Ec,Hc,Qc,_s]),onRtl:x([Pc,Jc,Ec,Hc,Qc,_s])},bubble:pp(0,-2,{})})}),ue])}):bv.sketch({dom:{tag:"div",classes:Z,innerHtml:s.html,attributes:{role:"document"}},containerBehaviours:Do([Wl.config({}),oa.config({}),ue])})},Rf=s=>(F,Z,ue,we,Be)=>Ge(Z,"name").fold(()=>s(Z,we,I.none(),Be),qe=>F.field(qe,s(Z,we,Ge(ue,qe),Be))),RJ=s=>(F,Z,ue,we,Be)=>{const qe=nl(Z,{source:"dynamic"});return Rf(s)(F,qe,ue,we,Be)},LJ={bar:Rf((s,F)=>LC(s,F.shared)),collection:Rf((s,F,Z)=>wG(s,F.shared.providers,Z)),alertbanner:Rf((s,F)=>EJ(s,F.shared.providers)),input:Rf((s,F,Z)=>V$(s,F.shared.providers,Z)),textarea:Rf((s,F,Z)=>U$(s,F.shared.providers,Z)),label:Rf((s,F,Z,ue)=>PK(s,F.shared,ue)),iframe:RJ((s,F,Z)=>AK(s,F.shared.providers,Z)),button:Rf((s,F)=>k9(s,F.shared.providers)),checkbox:Rf((s,F,Z)=>Ov(s,F.shared.providers,Z)),colorinput:Rf((s,F,Z)=>kN(s,F.shared,F.colorinput,Z)),colorpicker:Rf((s,F,Z)=>yK(s,F.shared.providers,Z)),dropzone:Rf((s,F,Z)=>m$(s,F.shared.providers,Z)),grid:Rf((s,F)=>g$(s,F.shared)),listbox:Rf((s,F,Z)=>u9(s,F,Z)),selectbox:Rf((s,F,Z)=>z$(s,F.shared.providers,Z)),sizeinput:Rf((s,F)=>N$(s,F.shared.providers)),slider:Rf((s,F,Z)=>ZK(s,F.shared.providers,Z)),urlinput:Rf((s,F,Z)=>MJ(s,F,F.urlinput,Z)),customeditor:Rf(YC),htmlpanel:Rf((s,F)=>M9(s,F.shared.providers)),imagepreview:Rf((s,F,Z)=>EK(s,Z)),table:Rf((s,F)=>qK(s,F.shared.providers)),tree:Rf((s,F)=>lJ(s,F)),panel:Rf((s,F)=>zK(s,F))},IJ={field:(s,F)=>F,record:x([])},hV=(s,F,Z,ue,we)=>{const Be=nl(ue,{shared:{interpreter:qe=>h8(s,qe,Z,Be,we)}});return h8(s,F,Z,Be,we)},h8=(s,F,Z,ue,we)=>Ge(LJ,F.type).fold(()=>(console.error(`Unknown factory type "${F.type}", defaulting to container: `,F),F),Be=>Be(s,F,Z,ue,we)),E9=(s,F,Z,ue)=>h8(IJ,s,F,Z,ue),oO="layout-inset",pV=s=>s.x,Ud=(s,F)=>s.x+s.width/2-F.width/2,gk=(s,F)=>s.x+s.width-F.width,P9=s=>s.y,x4=(s,F)=>s.y+s.height-F.height,mV=(s,F)=>s.y+s.height/2-F.height/2,p8=(s,F,Z)=>pl(gk(s,F),x4(s,F),Z.insetSouthwest(),Ac(),"southwest",il(s,{right:0,bottom:3}),oO),m8=(s,F,Z)=>pl(pV(s),x4(s,F),Z.insetSoutheast(),Vs(),"southeast",il(s,{left:1,bottom:3}),oO),vk=(s,F,Z)=>pl(gk(s,F),P9(s),Z.insetNorthwest(),is(),"northwest",il(s,{right:0,top:2}),oO),yk=(s,F,Z)=>pl(pV(s),P9(s),Z.insetNortheast(),jc(),"northeast",il(s,{left:1,top:2}),oO),f1=(s,F,Z)=>pl(Ud(s,F),P9(s),Z.insetNorth(),Bl(),"north",il(s,{top:2}),oO),bk=(s,F,Z)=>pl(Ud(s,F),x4(s,F),Z.insetSouth(),Uo(),"south",il(s,{bottom:3}),oO),gV=(s,F,Z)=>pl(gk(s,F),mV(s,F),Z.insetEast(),Xs(),"east",il(s,{right:0}),oO),R9=(s,F,Z)=>pl(pV(s),mV(s,F),Z.insetWest(),ql(),"west",il(s,{left:1}),oO),g8=s=>{switch(s){case"north":return f1;case"northeast":return yk;case"northwest":return vk;case"south":return bk;case"southeast":return m8;case"southwest":return p8;case"east":return gV;case"west":return R9}},L9=(s,F,Z,ue,we)=>Ab(ue).map(g8).getOr(f1)(s,F,Z,ue,we),vV=s=>{switch(s){case"north":return bk;case"northeast":return m8;case"northwest":return p8;case"south":return f1;case"southeast":return yk;case"southwest":return vk;case"east":return R9;case"west":return gV}},DJ=(s,F,Z,ue,we)=>Ab(ue).map(vV).getOr(f1)(s,F,Z,ue,we),_4={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},BJ=(s,F,Z)=>{const we={maxHeightFunction:W0()},Be=()=>({type:"node",root:nr(vr(s())),node:I.from(s()),bubble:pp(12,12,_4),layouts:{onRtl:()=>[yk],onLtr:()=>[vk]},overrides:we}),qe=()=>({type:"hotspot",hotspot:F(),bubble:pp(-12,12,_4),layouts:{onRtl:()=>[Ec,Qc,Pc],onLtr:()=>[Qc,Ec,Pc]},overrides:we});return()=>Z()?Be():qe()},zJ=(s,F,Z,ue)=>{const Be={maxHeightFunction:W0()},qe=()=>({type:"node",root:nr(vr(F())),node:I.from(F()),bubble:pp(12,12,_4),layouts:{onRtl:()=>[f1],onLtr:()=>[f1]},overrides:Be}),ft=()=>s?{type:"node",root:nr(vr(F())),node:I.from(F()),bubble:pp(0,-Ed(F()),_4),layouts:{onRtl:()=>[Jc],onLtr:()=>[Jc]},overrides:Be}:{type:"hotspot",hotspot:Z(),bubble:pp(0,0,_4),layouts:{onRtl:()=>[Jc],onLtr:()=>[Jc]},overrides:Be};return()=>ue()?qe():ft()},yV=(s,F,Z)=>{const ue=()=>({type:"node",root:nr(vr(s())),node:I.from(s()),layouts:{onRtl:()=>[f1],onLtr:()=>[f1]}}),we=()=>({type:"hotspot",hotspot:F(),layouts:{onRtl:()=>[Pc],onLtr:()=>[Pc]}});return()=>Z()?ue():we()},mfe=(s,F)=>()=>({type:"selection",root:F(),getSelection:()=>{const Z=s.selection.getRng(),ue=s.model.table.getSelectedCells();if(ue.length>1){const we=ue[0],Be=ue[ue.length-1],qe={firstCell:Pt.fromDom(we),lastCell:Pt.fromDom(Be)};return I.some(qe)}return I.some(c2.range(Pt.fromDom(Z.startContainer),Z.startOffset,Pt.fromDom(Z.endContainer),Z.endOffset))}}),gfe=s=>F=>({type:"node",root:s(),node:F}),FJ=(s,F,Z,ue)=>{const we=q3(s),Be=()=>Pt.fromDom(s.getBody()),qe=()=>Pt.fromDom(s.getContentAreaContainer()),ft=()=>we||!ue();return{inlineDialog:BJ(qe,F,ft),inlineBottomDialog:zJ(s.inline,qe,Z,ft),banner:yV(qe,F,ft),cursor:mfe(s,Be),node:gfe(Be)}},NJ=s=>(F,Z)=>{YF(s)(F,Z)},$J=s=>()=>$F(s),bV=s=>F=>TC(s,F),I9=s=>F=>NF(s,F),VJ=s=>({colorPicker:NJ(s),hasCustomColors:$J(s),getColors:bV(s),getColorCols:I9(s)}),UJ=s=>()=>cz(s),xV=s=>({isDraggableModal:UJ(s)}),jJ=s=>{const F=xi(Gb(s)?"bottom":"top");return{isPositionedAtTop:()=>F.get()==="top",getDockingMode:F.get,setDockingMode:F.set}},_V=s=>pt(s,"items"),wV=s=>pt(s,"format"),OV=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],D9=s=>ht(s,"items"),SV=s=>ht(s,"block"),QJ=s=>ht(s,"inline"),HJ=s=>ht(s,"selector"),kV=s=>se(s,(F,Z)=>{if(D9(Z)){const ue=kV(Z.items);return{customFormats:F.customFormats.concat(ue.customFormats),formats:F.formats.concat([{title:Z.title,items:ue.formats}])}}else if(QJ(Z)||SV(Z)||HJ(Z)){const we=`custom-${n(Z.name)?Z.name:Z.title.toLowerCase()}`;return{customFormats:F.customFormats.concat([{name:we,format:Z}]),formats:F.formats.concat([{title:Z.title,format:we,icon:Z.icon}])}}else return{...F,formats:F.formats.concat(Z)}},{customFormats:[],formats:[]}),ZJ=(s,F)=>{const Z=kV(F),ue=we=>{q(we,Be=>{s.formatter.has(Be.name)||s.formatter.register(Be.name,Be.format)})};return s.formatter?ue(Z.customFormats):s.on("init",()=>{ue(Z.customFormats)}),Z.formats},B9=s=>ez(s).map(F=>{const Z=ZJ(s,F);return tz(s)?OV.concat(Z):Z}).getOr(OV),qJ=s=>{const F=ke(s);return F.length===1&&X(F,"title")},xk=(s,F,Z)=>({...s,type:"formatter",isSelected:F(s.format),getStylePreview:Z(s.format)}),TV=(s,F,Z,ue)=>{const we=gt=>xk(gt,Z,ue),Be=gt=>{const At=ft(gt.items);return{...gt,type:"submenu",getStyleItems:x(At)}},qe=gt=>{const At=n(gt.name)?gt.name:fi(gt.title),$t=`custom-${At}`,on={...gt,type:"formatter",format:$t,isSelected:Z($t),getStylePreview:ue($t)};return s.formatter.register(At,on),on},ft=gt=>oe(gt,At=>_V(At)?Be(At):wV(At)?we(At):qJ(At)?{...At,type:"separator"}:qe(At));return ft(F)},v8=s=>{const F=ft=>()=>s.formatter.match(ft),Z=ft=>()=>{const gt=s.formatter.get(ft);return gt!==void 0?I.some({tag:gt.length>0&&(gt[0].inline||gt[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(ft))}):I.none()},ue=xi([]),we=xi([]),Be=xi(!1);return s.on("PreInit",ft=>{const gt=B9(s),At=TV(s,gt,F,Z);ue.set(At)}),s.on("addStyleModifications",ft=>{const gt=TV(s,ft.items,F,Z);we.set(gt),Be.set(ft.replace)}),{getData:()=>{const ft=Be.get()?[]:ue.get(),gt=we.get();return ft.concat(gt)}}},WJ=s=>{let ue=0;const we=()=>ue>0,Be=ft=>[{dom:{tag:"div",classes:["tox-tooltip__body"]},components:[ro(ft.tooltipText)]}];return{getConfig:ft=>({delayForShow:()=>we()?60:300,delayForHide:x(300),exclusive:!0,lazySink:s,tooltipDom:{tag:"div",classes:["tox-tooltip","tox-tooltip--up"]},tooltipComponents:Be(ft),onShow:(gt,At)=>{ue++,ft.onShow&&ft.onShow(gt,At)},onHide:(gt,At)=>{ue--,ft.onHide&&ft.onHide(gt,At)}}),getComponents:Be}},z9=s=>a(s)&&s.nodeType===1,_k=ox.trim,F9=s=>F=>!!(z9(F)&&(F.contentEditable===s||F.getAttribute("data-mce-contenteditable")===s)),YJ=F9("true"),CV=F9("false"),N9=(s,F,Z,ue,we)=>({type:s,title:F,url:Z,level:ue,attach:we}),AV=s=>{let F=s;for(;F=F.parentNode;){const Z=F.contentEditable;if(Z&&Z!=="inherit")return YJ(F)}return!1},XJ=(s,F)=>oe($d(Pt.fromDom(F),s),Z=>Z.dom),y8=s=>s.innerText||s.textContent,b8=s=>s.id?s.id:fi("h"),GJ=s=>s&&s.nodeName==="A"&&(s.id||s.name)!==void 0,KJ=s=>GJ(s)&&$9(s),iO=s=>s&&/^(H[1-6])$/.test(s.nodeName),$9=s=>AV(s)&&!CV(s),JJ=s=>iO(s)&&$9(s),MV=s=>iO(s)?parseInt(s.nodeName.substr(1),10):0,V9=s=>{var F;const Z=b8(s),ue=()=>{s.id=Z};return N9("header",(F=y8(s))!==null&&F!==void 0?F:"","#"+Z,MV(s),ue)},U9=s=>{const F=s.id||s.name,Z=y8(s);return N9("anchor",Z||"#"+F,"#"+F,0,v)},eee=s=>oe(me(s,JJ),V9),tee=s=>oe(me(s,KJ),U9),nee=s=>XJ("h1,h2,h3,h4,h5,h6,a:not([href])",s),j9=s=>_k(s.title).length>0,ree={find:s=>{const F=nee(s);return me(eee(F).concat(tee(F)),j9)}},x8="tinymce-url-history",EV=5,PV=s=>n(s)&&/^https?/.test(s),oee=s=>i(s)&&s.length<=EV&&_e(s,PV),RV=s=>c(s)&&nt(s,F=>!oee(F)).isNone(),Q9=()=>{const s=qw.getItem(x8);if(s===null)return{};let F;try{F=JSON.parse(s)}catch(Z){if(Z instanceof SyntaxError)return console.log("Local storage "+x8+" was not valid JSON",Z),{};throw Z}return RV(F)?F:(console.log("Local storage "+x8+" was not valid format",F),{})},iee=s=>{if(!RV(s))throw new Error(`Bad format for history: -`+JSON.stringify(s));qw.setItem(x8,JSON.stringify(s))},wk=s=>{const F=Q9();return Ge(F,s).getOr([])},aee=(s,F)=>{if(!PV(s))return;const Z=Q9(),ue=Ge(Z,F).getOr([]),we=me(ue,Be=>Be!==s);Z[F]=[s].concat(we).slice(0,EV),iee(Z)},LV=s=>!!s,H9=s=>Ue(ox.makeMap(s,/[, ]/),LV),_8=s=>I.from(az(s)),see=s=>{const F=I.from(e7(s)).filter(LV).map(H9);return _8(s).fold(D,Z=>F.fold(k,ue=>ke(ue).length>0?ue:!1))},lee=(s,F)=>{const Z=see(s);return w(Z)?Z?_8(s):I.none():Z[F]?_8(s):I.none()},cee=(s,F)=>lee(s,F).map(Z=>ue=>uh.nu(we=>{const Be=(ft,gt)=>{if(!n(ft))throw new Error("Expected value to be string");if(gt!==void 0&&!c(gt))throw new Error("Expected meta to be a object");we({value:ft,meta:gt})},qe={filetype:F,fieldname:ue.fieldname,...I.from(ue.meta).getOr({})};Z.call(s,Be,ue.value,qe)})),IV=s=>I.from(s).filter(n).getOrUndefined(),uee=s=>sz(s)?I.some({targets:ree.find(s.getBody()),anchorTop:IV(I6(s)),anchorBottom:IV(lz(s))}):I.none(),fee=s=>I.from(L6(s)),dee=s=>({getHistory:wk,addToHistory:aee,getLinkInformation:()=>uee(s),getValidationHandler:()=>fee(s),getUrlPicker:F=>cee(s,F)}),hee=(s,F,Z,ue)=>{const we=xi(!1),Be=jJ(F),qe={icons:()=>F.ui.registry.getAll().icons,menuItems:()=>F.ui.registry.getAll().menuItems,translate:Cg.translate,isDisabled:()=>F.mode.isReadOnly()||!F.ui.isEnabled(),getOption:F.options.get,tooltips:WJ(s.dialog)},ft=dee(F),gt=v8(F),At=VJ(F),$t=xV(F),on=()=>we.get(),yn=or=>we.set(or),wn={shared:{providers:qe,anchors:FJ(F,Z,ue,Be.isPositionedAtTop),header:Be},urlinput:ft,styles:gt,colorinput:At,dialog:$t,isContextMenuOpen:on,setContextMenuState:yn},Mn=or=>I.none(),Xn={...wn,shared:{...wn.shared,interpreter:or=>E9(or,{},Xn,Mn),getSink:s.popup}},Br={...wn,shared:{...wn.shared,interpreter:or=>E9(or,{},Br,Mn),getSink:s.dialog}};return{popup:Xn,dialog:Br}},pee=(s,F,Z)=>{const ue=(ho,Ci)=>{q([F,...Z],mi=>{mi.broadcastEvent(ho,Ci)})},we=(ho,Ci)=>{q([F,...Z],mi=>{mi.broadcastOn([ho],Ci)})},Be=ho=>we(K0(),{target:ho.target}),qe=of(),ft=_d(qe,"touchstart",Be),gt=_d(qe,"touchmove",ho=>ue(Kg(),ho)),At=_d(qe,"touchend",ho=>ue(M_(),ho)),$t=_d(qe,"mousedown",Be),on=_d(qe,"mouseup",ho=>{ho.raw.button===0&&we(pw(),{target:ho.target})}),yn=ho=>we(K0(),{target:Pt.fromDom(ho.target)}),wn=ho=>{ho.button===0&&we(pw(),{target:Pt.fromDom(ho.target)})},Mn=()=>{q(s.editorManager.get(),ho=>{s!==ho&&ho.dispatch("DismissPopups",{relatedTarget:s})})},Xn=ho=>ue(S1(),Jx(ho)),Br=ho=>{we(jb(),{}),ue(Tm(),Jx(ho))},or=vr(Pt.fromDom(s.getElement())),Mr=Kx(or,"scroll",ho=>{requestAnimationFrame(()=>{const Ci=s.getContainer();if(Ci!=null){const qi=Kb(s,F.element).map(Fi=>[Fi.element,...Fi.others]).getOr([]);te(qi,Fi=>so(Fi,ho.target))&&(s.dispatch("ElementScroll",{target:ho.target.dom}),ue(k1(),ho))}})}),kr=()=>we(jb(),{}),yo=ho=>{ho.state&&we(K0(),{target:Pt.fromDom(s.getContainer())})},Xr=ho=>{we(K0(),{target:Pt.fromDom(ho.relatedTarget.getContainer())})},No=ho=>s.dispatch("focusin",ho),Jo=ho=>s.dispatch("focusout",ho);s.on("PostRender",()=>{s.on("click",yn),s.on("tap",yn),s.on("mouseup",wn),s.on("mousedown",Mn),s.on("ScrollWindow",Xn),s.on("ResizeWindow",Br),s.on("ResizeEditor",kr),s.on("AfterProgressState",yo),s.on("DismissPopups",Xr),q([F,...Z],ho=>{ho.element.dom.addEventListener("focusin",No),ho.element.dom.addEventListener("focusout",Jo)})}),s.on("remove",()=>{s.off("click",yn),s.off("tap",yn),s.off("mouseup",wn),s.off("mousedown",Mn),s.off("ScrollWindow",Xn),s.off("ResizeWindow",Br),s.off("ResizeEditor",kr),s.off("AfterProgressState",yo),s.off("DismissPopups",Xr),q([F,...Z],ho=>{ho.element.dom.removeEventListener("focusin",No),ho.element.dom.removeEventListener("focusout",Jo)}),$t.unbind(),ft.unbind(),gt.unbind(),At.unbind(),on.unbind(),Mr.unbind()}),s.on("detach",()=>{q([F,...Z],qS),q([F,...Z],ho=>ho.destroy())})},Td=l6,$y=r6,DV=x([mr("shell",!1),Sn("makeItem"),mr("setupItem",v),Vm.field("listBehaviours",[da])]),w8=Jp({name:"items",overrides:()=>({behaviours:Do([da.config({})])})}),BV=x([w8]),gee=x("CustomList"),vee=(s,F,Z,ue)=>{const we=(ft,gt)=>{qe(ft).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},At=>{const $t=da.contents(At),on=gt.length,yn=on-$t.length,wn=yn>0?W(yn,()=>s.makeItem()):[],Mn=$t.slice(on);q(Mn,Br=>da.remove(At,Br)),q(wn,Br=>da.append(At,Br));const Xn=da.contents(At);q(Xn,(Br,or)=>{s.setupItem(ft,Br,gt[or],or)})})},Be=s.shell?{behaviours:[da.config({})],components:[]}:{behaviours:[],components:F},qe=ft=>s.shell?I.some(ft):Fo(ft,s,"items");return{uid:s.uid,dom:s.dom,components:Be.components,behaviours:Pf(s.listBehaviours,Be.behaviours),apis:{setItems:we}}},zV=ch({name:gee(),configFields:DV(),partFields:BV(),factory:vee,apis:{setItems:(s,F,Z)=>{s.setItems(F,Z)}}}),w4=x([Sn("dom"),mr("shell",!0),Ef("toolbarBehaviours",[da])]),yee=x([Jp({name:"groups",overrides:()=>({behaviours:Do([da.config({})])})})]),bee=(s,F,Z,ue)=>{const we=(ft,gt)=>{Be(ft).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},At=>{da.set(At,gt)})},Be=ft=>s.shell?I.some(ft):Fo(ft,s,"groups"),qe=s.shell?{behaviours:[da.config({})],components:[]}:{behaviours:[],components:F};return{uid:s.uid,dom:s.dom,components:qe.components,behaviours:Pf(s.toolbarBehaviours,qe.behaviours),apis:{setGroups:we,refresh:v},domModification:{attributes:{role:"group"}}}},d1=ch({name:"Toolbar",configFields:w4(),partFields:yee(),factory:bee,apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)}}}),FV=v,xee=D,Z9=x([]);var _ee=Object.freeze({__proto__:null,setup:FV,isDocked:xee,getBehaviours:Z9});const q9=x(fi("toolbar-height-change")),Vy={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},N2="tox-tinymce--toolbar-sticky-on",W9="tox-tinymce--toolbar-sticky-off",Ok=(s,F)=>{const Z=go(F),we=Yn(F).dom.innerHeight,Be=Hl(Z),qe=Pt.fromDom(s.elm),ft=bl(qe),gt=Ql(qe),At=ft.y,$t=At+gt,on=pc(F),yn=Ql(F),wn=on.top,Mn=wn+yn,Xn=Math.abs(wn-Be.top)<2,Br=Math.abs(Mn-(Be.top+we))<2;if(Xn&&Atwn){const or=At-we+gt+yn;Ts(Be.left,or,Z)}},aO=(s,F)=>X(Dl.getModes(s),F),O8=s=>{const F=ue=>Ed(ue)+(parseInt(Aa(ue,"margin-top"),10)||0)+(parseInt(Aa(ue,"margin-bottom"),10)||0),Z=s.element;Cr(Z).each(ue=>{const we="padding-"+Dl.getModes(s)[0];if(Dl.isDocked(s)){const Be=cc(ue);ko(Z,"width",Be+"px"),ko(ue,we,F(Z)+"px")}else ma(Z,"width"),ma(ue,we)})},Y9=(s,F)=>{F?(fc(s,Vy.fadeOutClass),M1(s,[Vy.transitionClass,Vy.fadeInClass])):(fc(s,Vy.fadeInClass),M1(s,[Vy.fadeOutClass,Vy.transitionClass]))},X9=(s,F)=>{const Z=Pt.fromDom(s.getContainer());F?(wl(Z,N2),fc(Z,W9)):(wl(Z,W9),fc(Z,N2))},bfe=(s,F)=>{const Z=go(F);hp(Z).filter(ue=>!so(F,ue)).filter(ue=>so(ue,Pt.fromDom(Z.dom.body))||So(s,ue)).each(()=>bd(F))},wee=(s,F)=>xd(s).orThunk(()=>F().toOptional().bind(Z=>xd(Z.element))),Oee=(s,F,Z)=>{s.inline||(F.header.isPositionedAtTop()||s.on("ResizeEditor",()=>{Z().each(Dl.reset)}),s.on("ResizeWindow ResizeEditor",()=>{Z().each(O8)}),s.on("SkinLoaded",()=>{Z().each(ue=>{Dl.isDocked(ue)?Dl.reset(ue):Dl.refresh(ue)})}),s.on("FullscreenStateChanged",()=>{Z().each(Dl.reset)})),s.on("AfterScrollIntoView",ue=>{Z().each(we=>{Dl.refresh(we);const Be=we.element;YD(Be)&&Ok(ue,Be)})}),s.on("PostRender",()=>{X9(s,!1)})},See=s=>s().map(Dl.isDocked).getOr(!1),kee=()=>[Wu.config({channels:{[q9()]:{onReceive:O8}}})],NV=(s,F)=>{const Z=os(),ue=F.getSink,we=ft=>{ue().each(gt=>ft(gt.element))},Be=ft=>{s.inline||O8(ft),X9(s,Dl.isDocked(ft)),ft.getSystem().broadcastOn([jb()],{}),ue().each(gt=>gt.getSystem().broadcastOn([jb()],{}))},qe=s.inline?[]:kee();return[oa.config({}),Dl.config({contextual:{lazyContext:ft=>{const gt=Ed(ft.element),At=s.inline?s.getContentAreaContainer():s.getContainer();return I.from(At).map($t=>{const on=Ya(Pt.fromDom($t));return Kb(s,ft.element).fold(()=>{const wn=on.height-gt,Mn=on.y+(aO(ft,"top")?0:gt);return ms(on.x,Mn,on.width,wn)},wn=>{const Mn=fl(on,zw(wn)),Xn=aO(ft,"top")?Mn.y:Mn.y+gt;return ms(Mn.x,Xn,Mn.width,Mn.height-gt)})})},onShow:()=>{we(ft=>Y9(ft,!0))},onShown:ft=>{we(gt=>th(gt,[Vy.transitionClass,Vy.fadeInClass])),Z.get().each(gt=>{bfe(ft.element,gt),Z.clear()})},onHide:ft=>{wee(ft.element,ue).fold(Z.clear,Z.set),we(gt=>Y9(gt,!1))},onHidden:()=>{we(ft=>th(ft,[Vy.transitionClass]))},...Vy},lazyViewport:ft=>Kb(s,ft.element).fold(()=>{const At=xl(),$t=iz(s),on=At.y+(aO(ft,"top")?$t:0),yn=At.height-(aO(ft,"bottom")?$t:0);return{bounds:ms(At.x,on,At.width,yn),optScrollEnv:I.none()}},At=>({bounds:zw(At),optScrollEnv:I.some({currentScrollTop:At.element.dom.scrollTop,scrollElmTop:pc(At.element).top})})),modes:[F.header.getDockingMode()],onDocked:Be,onUndocked:Be}),...qe]};var O4=Object.freeze({__proto__:null,setup:Oee,isDocked:See,getBehaviours:NV});const Sk=s=>{const F=s.editor,Z=s.sticky?NV:Z9;return{uid:s.uid,dom:s.dom,components:s.components,behaviours:Do(Z(F,s.sharedBackstage))}},G9=Mi([Fu,rr("items",Ot([J([rC,Si("items",ne)]),ne]))].concat(Q5)),Tee=s=>jt("GroupToolbarButton",G9,s),Cee=[Io("text"),Io("tooltip"),Io("icon"),ys("search",!1,Ot([ge,Mi([Io("placeholder")])],s=>w(s)?s?I.some({placeholder:I.none()}):I.none():I.some(s))),$o("fetch"),Pa("onSetup",()=>v)],S8=Mi([Fu,...Cee]),$V=s=>jt("menubutton",S8,s),kk=Mi([Fu,U5,d0,R2,Gz,TY,P2,dl("presets","normal",["normal","color","listpreview"]),lC(1),G3,V7]),VV=s=>jt("SplitButton",kk,s);var K9=Yh({factory:(s,F)=>{const Z=(we,Be)=>{const qe=oe(Be,ft=>{const gt={type:"menubutton",text:ft.text,fetch:$t=>{$t(ft.getItems())}},At=$V(gt).mapError($t=>sn($t)).getOrDie();return mk(At,"tox-mbtn",F.backstage,I.some("menuitem"))});da.set(we,qe)},ue={focus:Li.focusIn,setMenus:Z};return{uid:s.uid,dom:s.dom,components:[],behaviours:Do([da.config({}),Ta("menubar-events",[Ll(we=>{s.onSetup(we)}),fo(Om(),(we,Be)=>{aa(we.element,".tox-mbtn--active").each(qe=>{Fs(Be.event.target,".tox-mbtn").each(ft=>{so(qe,ft)||we.getSystem().getByDom(qe).each(gt=>{we.getSystem().getByDom(ft).each(At=>{p0.expand(At),p0.close(gt),oa.focus(At)})})})})}),fo(Jg(),(we,Be)=>{Be.event.prevFocus.bind(qe=>we.getSystem().getByDom(qe).toOptional()).each(qe=>{Be.event.newFocus.bind(ft=>we.getSystem().getByDom(ft).toOptional()).each(ft=>{p0.isOpen(qe)&&(p0.expand(ft),p0.close(qe))})})})]),Li.config({mode:"flow",selector:".tox-mbtn",onEscape:we=>(s.onEscape(we),I.some(!0))}),Wl.config({})]),apis:ue,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[Sn("dom"),Sn("uid"),Sn("onEscape"),Sn("backstage"),mr("onSetup",v)],apis:{focus:(s,F)=>{s.focus(F)},setMenus:(s,F,Z)=>{s.setMenus(F,Z)}}});const Aee="⚡️Upgrade",Mee="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_campaign=self_hosted_upgrade_promo&utm_source=tiny&utm_medium=referral",Eee=s=>({uid:s.uid,dom:s.dom,components:[{dom:{tag:"a",attributes:{href:Mee,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:Aee}}]}),UV="container",jV=[Ef("slotBehaviours",[])],J9=s=>"",eR=s=>{const F=(()=>{const Be=[];return{slot:(ft,gt)=>(Be.push(ft),a6(UV,J9(ft),gt)),record:x(Be)}})(),Z=s(F),ue=F.record(),we=oe(ue,Be=>Sd({name:Be,pname:J9(Be)}));return dv(UV,jV,we,Pee,Z)},Pee=(s,F)=>{const Z=Xn=>_w(s),ue=(Xn,Br)=>Fo(Xn,s,Br),we=(Xn,Br)=>(or,Mr)=>Fo(or,s,Mr).map(kr=>Xn(kr,Mr)).getOr(Br),Be=Xn=>(Br,or)=>{q(or,Mr=>Xn(Br,Mr))},qe=(Xn,Br)=>ao(Xn.element,"aria-hidden")!=="true",ft=(Xn,Br)=>{if(!qe(Xn)){const or=Xn.element;ma(or,"display"),po(or,"aria-hidden"),Ri(Xn,P_(),{name:Br,visible:!0})}},gt=(Xn,Br)=>{if(qe(Xn)){const or=Xn.element;ko(or,"display","none"),fr(or,"aria-hidden","true"),Ri(Xn,P_(),{name:Br,visible:!1})}},At=we(qe,!1),$t=we(gt),on=Be($t),yn=Xn=>on(Xn,Z()),wn=we(ft),Mn={getSlotNames:Z,getSlot:ue,isShowing:At,hideSlot:$t,hideAllSlots:yn,showSlot:wn};return{uid:s.uid,dom:s.dom,components:F,behaviours:vw(s.slotBehaviours),apis:Mn}},Cd={...Ue({getSlotNames:(s,F)=>s.getSlotNames(F),getSlot:(s,F,Z)=>s.getSlot(F,Z),isShowing:(s,F,Z)=>s.isShowing(F,Z),hideSlot:(s,F,Z)=>s.hideSlot(F,Z),hideAllSlots:(s,F)=>s.hideAllSlots(F),showSlot:(s,F,Z)=>s.showSlot(F,Z)},s=>Cc(s)),sketch:eR},QV=Mi([d0,U5,Pa("onShow",v),Pa("onHide",v),P2]),Ree=s=>jt("sidebar",QV,s),Lee=s=>{const{sidebars:F}=s.ui.registry.getAll();q(ke(F),Z=>{const ue=F[Z],we=()=>wt(I.from(s.queryCommandValue("ToggleSidebar")),Z);s.ui.registry.addToggleButton(Z,{icon:ue.icon,tooltip:ue.tooltip,onAction:Be=>{s.execCommand("ToggleSidebar",!1,Z),Be.setActive(we())},onSetup:Be=>{Be.setActive(we());const qe=()=>Be.setActive(we());return s.on("ToggleSidebar",qe),()=>{s.off("ToggleSidebar",qe)}}})})},Iee=s=>({element:()=>s.element.dom}),Dee=(s,F)=>{const Z=oe(ke(F),ue=>{const we=F[ue],Be=Nt(Ree(we));return{name:ue,getApi:Iee,onSetup:Be.onSetup,onShow:Be.onShow,onHide:Be.onHide}});return oe(Z,ue=>{const we=xi(v);return s.slot(ue.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:K3.unnamedEvents([tx(ue,we),Ih(ue,we),fo(P_(),(Be,qe)=>{const ft=qe.event;ce(Z,At=>At.name===ft.name).each(At=>{(ft.visible?At.onShow:At.onHide)(At.getApi(Be))})})])})})},nR=s=>Cd.sketch(F=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:Dee(F,s),slotBehaviours:K3.unnamedEvents([Ll(Z=>Cd.hideAllSlots(Z))])})),rR=(s,F,Z)=>{as.getCurrent(s).each(we=>{da.set(we,[nR(F)]);const Be=Z==null?void 0:Z.toLowerCase();n(Be)&&ht(F,Be)&&as.getCurrent(we).each(qe=>{Cd.showSlot(qe,Be),nm.immediateGrow(we),ma(we.element,"width"),k8(s.element,"region")})})},k8=(s,F)=>{fr(s,"role",F)},oR=(s,F)=>{as.getCurrent(s).each(ue=>{as.getCurrent(ue).each(Be=>{nm.hasGrown(ue)?Cd.isShowing(Be,F)?(nm.shrink(ue),k8(s.element,"presentation")):(Cd.hideAllSlots(Be),Cd.showSlot(Be,F),k8(s.element,"region")):(Cd.hideAllSlots(Be),Cd.showSlot(Be,F),nm.grow(ue),k8(s.element,"region"))})})},Bee=s=>as.getCurrent(s).bind(Z=>nm.isGrowing(Z)||nm.hasGrown(Z)?as.getCurrent(Z).bind(Be=>ce(Cd.getSlotNames(Be),qe=>Cd.isShowing(Be,qe))):I.none()),iR=fi("FixSizeEvent"),aR=fi("AutoSizeEvent"),zee=s=>({uid:s.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:Do([Wl.config({}),oa.config({}),nm.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:F=>{as.getCurrent(F).each(Cd.hideAllSlots),Sa(F,aR)},onGrown:F=>{Sa(F,aR)},onStartGrow:F=>{Ri(F,iR,{width:Na(F.element,"width").getOr("")})},onStartShrink:F=>{Ri(F,iR,{width:cc(F.element)+"px"})}}),da.config({}),as.config({find:F=>{const Z=da.contents(F);return He(Z)}})])}],behaviours:Do([y0.childAt(0),Ta("sidebar-sliding-events",[fo(iR,(F,Z)=>{ko(F.element,"width",Z.event.width)}),fo(aR,(F,Z)=>{ma(F.element,"width")})])])});var HV=Object.freeze({__proto__:null,block:(s,F,Z,ue)=>{fr(s.element,"aria-busy",!0);const we=F.getRoot(s).getOr(s),Be=Do([Li.config({mode:"special",onTab:()=>I.some(!0),onShiftTab:()=>I.some(!0)}),oa.config({})]),qe=ue(we,Be),ft=we.getSystem().build(qe);da.append(we,na(ft)),ft.hasConfigured(Li)&&F.focus&&Li.focusIn(ft),Z.isBlocked()||F.onBlock(s),Z.blockWith(()=>da.remove(we,ft))},unblock:(s,F,Z)=>{po(s.element,"aria-busy"),Z.isBlocked()&&F.onUnblock(s),Z.clear()},isBlocked:(s,F,Z)=>Z.isBlocked()}),Fee=[Pa("getRoot",I.none),ds("focus",!0),Ra("onBlock"),Ra("onUnblock")],$ee=Object.freeze({__proto__:null,init:()=>{const s=xh(),F=Z=>{s.set({destroy:Z})};return kh({readState:s.isSet,blockWith:F,clear:s.clear,isBlocked:s.isSet})}});const Sv=lf({fields:Fee,name:"blocking",apis:HV,state:$ee}),Vee=s=>(F,Z)=>({dom:{tag:"div",attributes:{"aria-label":s.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:pv('
    ')}]}),ZV=s=>as.getCurrent(s).each(F=>bd(F.element,!0)),Uee=(s,F)=>{const Z="tabindex",ue=`data-mce-${Z}`;I.from(s.iframeElement).map(Pt.fromDom).each(we=>{F?(co(we,Z).each(Be=>fr(we,ue,Be)),fr(we,Z,-1)):(po(we,Z),co(we,ue).each(Be=>{fr(we,Z,Be),po(we,ue)}))})},qV=(s,F,Z,ue)=>{const we=F.element;if(Uee(s,Z),Z)Sv.block(F,Vee(ue)),ma(we,"display"),po(we,"aria-hidden"),s.hasFocus()&&ZV(F);else{const Be=as.getCurrent(F).exists(qe=>dy(qe.element));Sv.unblock(F),ko(we,"display","none"),fr(we,"aria-hidden","true"),Be&&s.focus()}},jee=s=>({uid:s.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:Do([da.config({}),Sv.config({focus:!1}),as.config({find:F=>He(F.components())})]),components:[]}),Qee=s=>s.type==="focusin",Hee=s=>Qee(s)?(s.composed?He(s.composedPath()):I.from(s.target)).map(Pt.fromDom).filter(Kn).exists(Z=>$l(Z,"mce-pastebin")):!1,wfe=(s,F,Z)=>{const ue=xi(!1),we=os(),Be=ft=>{ue.get()&&!Hee(ft)&&(ft.preventDefault(),ZV(F()),s.editorManager.setActive(s))};s.inline||s.on("PreInit",()=>{s.dom.bind(s.getWin(),"focusin",Be),s.on("BeforeExecCommand",ft=>{ft.command.toLowerCase()==="mcefocus"&&ft.value!==!0&&Be(ft)})});const qe=ft=>{ft!==ue.get()&&(ue.set(ft),qV(s,F(),ft,Z.providers),rX(s,ft))};s.on("ProgressState",ft=>{if(we.on(clearTimeout),h(ft.time)){const gt=O5.setEditorTimeout(s,()=>qe(ft.state),ft.time);we.set(gt)}else qe(ft.state),we.clear()})},Ofe=(s,F)=>se(s,(we,Be)=>F(Be,we.len).fold(x(we),ft=>({len:ft.finish,list:we.list.concat([ft])})),{len:0,list:[]}).list,T8=(s,F,Z)=>({within:s,extra:F,withinWidth:Z}),sR=(s,F,Z)=>{const ue=Ofe(s,(ft,gt)=>{const At=Z(ft);return I.some({element:ft,start:gt,finish:gt+At,width:At})}),we=me(ue,ft=>ft.finish<=F),Be=he(we,(ft,gt)=>ft+gt.width,0),qe=ue.slice(we.length);return{within:we,extra:qe,withinWidth:Be}},C8=s=>oe(s,F=>F.element),Zee=(s,F,Z)=>{const ue=C8(s.concat(F));return T8(ue,[],Z)},Eg=(s,F,Z,ue)=>{const we=C8(s).concat([Z]);return T8(we,C8(F),ue)},qee=(s,F,Z)=>T8(C8(s),[],Z),WV=(s,F,Z)=>{const ue=sR(F,s,Z);return ue.extra.length===0?I.some(ue):I.none()},YV=(s,F,Z,ue)=>{const we=WV(s,F,Z).getOrThunk(()=>sR(F,s-Z(ue),Z)),Be=we.within,qe=we.extra,ft=we.withinWidth;return qe.length===1&&qe[0].width<=Z(ue)?Zee(Be,qe,ft):qe.length>=1?Eg(Be,qe,ue,ft):qee(Be,qe,ft)},XV=(s,F)=>{const Z=oe(F,ue=>na(ue));d1.setGroups(s,Z)},Tk=s=>Oe(s,F=>xd(F.element).bind(Z=>F.getSystem().getByDom(Z).toOptional())),GV=(s,F,Z)=>{const ue=F.builtGroups.get();if(ue.length===0)return;const we=Ph(s,F,"primary"),Be=lu.getCoupled(s,"overflowGroup");ko(we.element,"visibility","hidden");const qe=ue.concat([Be]),ft=Tk(qe);Z([]),XV(we,qe);const gt=cc(we.element),At=YV(gt,F.builtGroups.get(),$t=>Math.ceil($t.element.dom.getBoundingClientRect().width),Be);At.extra.length===0?(da.remove(we,Be),Z([])):(XV(we,At.within),Z(At.extra)),ma(we.element,"visibility"),Ku(we.element),ft.each(oa.focus)},Ck=x([Ef("splitToolbarBehaviours",[lu]),On("builtGroups",()=>xi([]))]),Wee=x([jp(["overflowToggledClass"]),Ui("getOverflowBounds"),Sn("lazySink"),On("overflowGroups",()=>xi([])),Ra("onOpened"),Ra("onClosed")].concat(Ck())),A8=x([Sd({factory:d1,schema:w4(),name:"primary"}),Um({schema:w4(),name:"overflow"}),Um({name:"overflow-button"}),Um({name:"overflow-group"})]),lR=x((s,F)=>{ju(s,Math.floor(F))}),Yee=x([jp(["toggledClass"]),Sn("lazySink"),$o("fetch"),Ui("getBounds"),Pi("fireDismissalEventInstead",[mr("event",I0())]),l0(),Ra("onToggled")]),b0=x([Um({name:"button",overrides:s=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:Do([za.config({toggleClass:s.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:s.onToggled})])})}),Um({factory:d1,schema:w4(),name:"toolbar",overrides:s=>({toolbarBehaviours:Do([Li.config({mode:"cyclic",onEscape:F=>(Fo(F,s,"button").each(oa.focus),I.none())})])})})]),M8=os(),E8=(s,F)=>{M8.set(!0),P8(s,F),M8.clear()},P8=(s,F)=>{const Z=lu.getCoupled(s,"toolbarSandbox");hs.isOpen(Z)?hs.close(Z):hs.open(Z,F.toolbar())},R8=(s,F,Z,ue)=>{const we=Z.getBounds.map(qe=>qe()),Be=Z.lazySink(s).getOrDie();ed.positionWithinBounds(Be,F,{anchor:{type:"hotspot",hotspot:s,layouts:ue,overrides:{maxWidthFunction:lR()}}},we)},KV=(s,F,Z,ue,we)=>{d1.setGroups(F,we),R8(s,F,Z,ue),za.on(s)},JV=(s,F,Z)=>{const ue=xu(),we=(qe,ft)=>{const gt=M8.get().getOr(!1);Z.fetch().get(At=>{KV(s,ft,Z,F.layouts,At),ue.link(s.element),gt||Li.focusIn(ft)})},Be=()=>{za.off(s),M8.get().getOr(!1)||oa.focus(s),ue.unlink(s.element)};return{dom:{tag:"div",attributes:{id:ue.id}},behaviours:Do([Li.config({mode:"special",onEscape:qe=>(hs.close(qe),I.some(!0))}),hs.config({onOpen:we,onClose:Be,isPartOf:(qe,ft,gt)=>Vc(ft,gt)||Vc(s,gt),getAttachPoint:()=>Z.lazySink(s).getOrDie()}),Wu.config({channels:{...uv({isExtraPart:D,...Z.fireDismissalEventInstead.map(qe=>({fireEventInstead:{event:qe.event}})).getOr({})}),..._3({doReposition:()=>{hs.getState(lu.getCoupled(s,"toolbarSandbox")).each(qe=>{R8(s,qe,Z,F.layouts)})}})}})])}},$2=ch({name:"FloatingToolbarButton",factory:(s,F,Z,ue)=>({...Vd.sketch({...ue.button(),action:we=>{P8(we,ue)},buttonBehaviours:Vm.augment({dump:ue.button().buttonBehaviours},[lu.config({others:{toolbarSandbox:we=>JV(we,Z,s)}})])}),apis:{setGroups:(we,Be)=>{hs.getState(lu.getCoupled(we,"toolbarSandbox")).each(qe=>{KV(we,qe,s,Z.layouts,Be)})},reposition:we=>{hs.getState(lu.getCoupled(we,"toolbarSandbox")).each(Be=>{R8(we,Be,s,Z.layouts)})},toggle:we=>{P8(we,ue)},toggleWithoutFocusing:we=>{E8(we,ue)},getToolbar:we=>hs.getState(lu.getCoupled(we,"toolbarSandbox")),isOpen:we=>hs.isOpen(lu.getCoupled(we,"toolbarSandbox"))}}),configFields:Yee(),partFields:b0(),apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)},reposition:(s,F)=>{s.reposition(F)},toggle:(s,F)=>{s.toggle(F)},toggleWithoutFocusing:(s,F)=>{s.toggleWithoutFocusing(F)},getToolbar:(s,F)=>s.getToolbar(F),isOpen:(s,F)=>s.isOpen(F)}}),Xee=x([Sn("items"),jp(["itemSelector"]),Ef("tgroupBehaviours",[Li])]),Gee=x([R3({name:"items",unit:"item"})]),Kee=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,components:F,behaviours:Pf(s.tgroupBehaviours,[Li.config({mode:"flow",selector:s.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),L8=ch({name:"ToolbarGroup",configFields:Xee(),partFields:Gee(),factory:Kee}),eU=s=>oe(s,F=>na(F)),cR=(s,F,Z)=>{GV(s,Z,ue=>{Z.overflowGroups.set(ue),F.getOpt(s).each(we=>{$2.setGroups(we,eU(ue))})})},tU=(s,F,Z,ue)=>{const we=qs($2.sketch({fetch:()=>uh.nu(Be=>{Be(eU(s.overflowGroups.get()))}),layouts:{onLtr:()=>[Qc,Ec],onRtl:()=>[Ec,Qc],onBottomLtr:()=>[_s,Hc],onBottomRtl:()=>[Hc,_s]},getBounds:Z.getOverflowBounds,lazySink:s.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:s.markers.overflowToggledClass},parts:{button:ue["overflow-button"](),toolbar:ue.overflow()},onToggled:(Be,qe)=>s[qe?"onOpened":"onClosed"](Be)}));return{uid:s.uid,dom:s.dom,components:F,behaviours:Pf(s.splitToolbarBehaviours,[lu.config({others:{overflowGroup:()=>L8.sketch({...ue["overflow-group"](),items:[we.asSpec()]})}})]),apis:{setGroups:(Be,qe)=>{s.builtGroups.set(oe(qe,Be.getSystem().build)),cR(Be,we,s)},refresh:Be=>cR(Be,we,s),toggle:Be=>{we.getOpt(Be).each(qe=>{$2.toggle(qe)})},toggleWithoutFocusing:Be=>{we.getOpt(Be).each($2.toggleWithoutFocusing)},isOpen:Be=>we.getOpt(Be).map($2.isOpen).getOr(!1),reposition:Be=>{we.getOpt(Be).each(qe=>{$2.reposition(qe)})},getOverflow:Be=>we.getOpt(Be).bind($2.getToolbar)},domModification:{attributes:{role:"group"}}}},uR=ch({name:"SplitFloatingToolbar",configFields:Wee(),partFields:A8(),factory:tU,apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)},refresh:(s,F)=>{s.refresh(F)},reposition:(s,F)=>{s.reposition(F)},toggle:(s,F)=>{s.toggle(F)},toggleWithoutFocusing:(s,F)=>{s.toggle(F)},isOpen:(s,F)=>s.isOpen(F),getOverflow:(s,F)=>s.getOverflow(F)}}),Jee=x([jp(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Ra("onOpened"),Ra("onClosed")].concat(Ck())),ete=x([Sd({factory:d1,schema:w4(),name:"primary"}),Sd({factory:d1,schema:w4(),name:"overflow",overrides:s=>({toolbarBehaviours:Do([nm.config({dimension:{property:"height"},closedClass:s.markers.closedClass,openClass:s.markers.openClass,shrinkingClass:s.markers.shrinkingClass,growingClass:s.markers.growingClass,onShrunk:F=>{Fo(F,s,"overflow-button").each(Z=>{za.off(Z)}),s.onClosed(F)},onGrown:F=>{s.onOpened(F)},onStartGrow:F=>{Fo(F,s,"overflow-button").each(za.on)}}),Li.config({mode:"acyclic",onEscape:F=>(Fo(F,s,"overflow-button").each(oa.focus),I.some(!0))})])})}),Um({name:"overflow-button",overrides:s=>({buttonBehaviours:Do([za.config({toggleClass:s.markers.overflowToggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])})}),Um({name:"overflow-group"})]),nU=(s,F)=>Fo(s,F,"overflow").map(nm.hasGrown).getOr(!1),I8=(s,F,Z)=>{Fo(s,F,"overflow-button").each(ue=>{Fo(s,F,"overflow").each(we=>{if(D8(s,F),nm.hasShrunk(we)){const Be=F.onOpened;F.onOpened=qe=>{Z||Li.focusIn(we),Be(qe),F.onOpened=Be}}else{const Be=F.onClosed;F.onClosed=qe=>{Z||oa.focus(ue),Be(qe),F.onClosed=Be}}nm.toggleGrow(we)})})},D8=(s,F)=>{Fo(s,F,"overflow").each(Z=>{GV(s,F,ue=>{const we=oe(ue,Be=>na(Be));d1.setGroups(Z,we)}),Fo(s,F,"overflow-button").each(ue=>{nm.hasGrown(Z)&&za.on(ue)}),nm.refresh(Z)})},tte=(s,F,Z,ue)=>{const we="alloy.toolbar.toggle",Be=(qe,ft)=>{const gt=oe(ft,qe.getSystem().build);s.builtGroups.set(gt)};return{uid:s.uid,dom:s.dom,components:F,behaviours:Pf(s.splitToolbarBehaviours,[lu.config({others:{overflowGroup:qe=>L8.sketch({...ue["overflow-group"](),items:[Vd.sketch({...ue["overflow-button"](),action:ft=>{Sa(qe,we)}})]})}}),Ta("toolbar-toggle-events",[fo(we,qe=>{I8(qe,s,!1)})])]),apis:{setGroups:(qe,ft)=>{Be(qe,ft),D8(qe,s)},refresh:qe=>D8(qe,s),toggle:qe=>{I8(qe,s,!1)},toggleWithoutFocusing:qe=>{I8(qe,s,!0)},isOpen:qe=>nU(qe,s)},domModification:{attributes:{role:"group"}}}},fR=ch({name:"SplitSlidingToolbar",configFields:Jee(),partFields:ete(),factory:tte,apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)},refresh:(s,F)=>{s.refresh(F)},toggle:(s,F)=>{s.toggle(F)},isOpen:(s,F)=>s.isOpen(F)}}),rU=s=>{const F=s.title.fold(()=>({}),Z=>({attributes:{title:Z}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...F},components:[L8.parts.items({})],items:s.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:Do([Wl.config({}),oa.config({})])}},Ak=s=>L8.sketch(rU(s)),oU=(s,F)=>{const Z=Ll(ue=>{const we=oe(s.initGroups,Ak);d1.setGroups(ue,we)});return Do([s1.toolbarButton(s.providers.isDisabled),df(),Li.config({mode:F,onEscape:s.onEscape,selector:".tox-toolbar__group"}),Ta("toolbar-events",[Z])])},iU=s=>{const F=s.cyclicKeying?"cyclic":"acyclic";return{uid:s.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":rU({title:I.none(),items:[]}),"overflow-button":iV({name:"more",icon:I.some("more-drawer"),enabled:!0,tooltip:I.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:I.none(),borderless:!1},I.none(),s.providers,[],"overflow-button")},splitToolbarBehaviours:oU(s,F)}},nte=s=>{const F=iU(s),Z=4,ue=uR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return uR.sketch({...F,lazySink:s.getSink,getOverflowBounds:()=>{const we=s.moreDrawerData.lazyHeader().element,Be=bl(we),qe=Pn(we),ft=bl(qe),gt=Math.max(qe.dom.scrollHeight,ft.height);return ms(Be.x+Z,ft.y,Be.width-Z*2,gt)},parts:{...F.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:s.attributes}}},components:[ue],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:we=>s.onToggled(we,!0),onClosed:we=>s.onToggled(we,!1)})},rte=s=>{const F=fR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),Z=fR.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),ue=iU(s);return fR.sketch({...ue,components:[F,Z],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:we=>{we.getSystem().broadcastOn([q9()],{type:"opened"}),s.onToggled(we,!0)},onClosed:we=>{we.getSystem().broadcastOn([q9()],{type:"closed"}),s.onToggled(we,!1)}})},B8=s=>{const F=s.cyclicKeying?"cyclic":"acyclic";return d1.sketch({uid:s.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(s.type===Hm.scrolling?["tox-toolbar--scrolling"]:[])},components:[d1.parts.groups({})],toolbarBehaviours:oU(s,F)})},aU=[R2,d0,Io("tooltip"),dl("buttonType","secondary",["primary","secondary"]),ds("borderless",!1),$o("onAction")],ote=[...aU,ex,Zr("type",["button"])],ite=[...aU,ds("active",!1),Zr("type",["togglebutton"])],sU={button:ote,togglebutton:ite},ate=[Zr("type",["group"]),Ls("buttons",[],xn("type",sU))],lU=xn("type",{...sU,group:ate}),ste=Mi([Ls("buttons",[],lU),$o("onShow"),$o("onHide")]),lte=s=>jt("view",ste,s),dR=(s,F)=>{var Z,ue;const we=s.type==="togglebutton",Be=s.icon.map(kr=>ax(kr,F.icons)).map(qs),ft=(()=>kr=>{const yo=Jo=>{Be.map(ho=>ho.getOpt(kr).each(Ci=>{da.set(Ci,[ax(Jo,F.icons)])}))},Xr=Jo=>{const ho=kr.element;Jo?(wl(ho,"tox-button--enabled"),fr(ho,"aria-pressed",!0)):(fc(ho,"tox-button--enabled"),po(ho,"aria-pressed"))},No=()=>$l(kr.element,"tox-button--enabled");if(we)return s.onAction({setIcon:yo,setActive:Xr,isActive:No});if(s.type==="button")return s.onAction({setIcon:yo})})(),gt={...s,name:we?s.text.getOr(s.icon.getOr("")):(Z=s.text)!==null&&Z!==void 0?Z:s.icon.getOr(""),primary:s.buttonType==="primary",buttonType:I.from(s.buttonType),tooltip:s.tooltip,icon:s.icon,enabled:!0,borderless:s.borderless},At=s8((ue=s.buttonType)!==null&&ue!==void 0?ue:"secondary"),$t=we?s.text.map(F.translate):I.some(F.translate(s.text)),on=$t.map(ro),yn=gt.tooltip.or($t).map(kr=>({"aria-label":F.translate(kr)})).getOr({}),wn=Be.map(kr=>kr.asSpec()),Mn=jw([wn,on]),Xn=s.icon.isSome()&&on.isSome(),Br={tag:"button",classes:At.concat(...s.icon.isSome()&&!Xn?["tox-button--icon"]:[]).concat(...Xn?["tox-button--icon-and-text"]:[]).concat(...s.borderless?["tox-button--naked"]:[]).concat(...s.type==="togglebutton"&&s.active?["tox-button--enabled"]:[]),attributes:yn},or=[],Mr=a8(gt,I.some(ft),or,Br,Mn,s.tooltip,F);return Vd.sketch(Mr)},cU=(s,F)=>dR(s,F),z8=(s,F)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:oe(s.buttons,Z=>cU(Z,F))}),uU=rf().deviceType,fU=uU.isPhone(),cte=uU.isTablet(),ute=s=>{let F=!1;const Z=oe(s.buttons,ue=>ue.type==="group"?(F=!0,z8(ue,s.providers)):cU(ue,s.providers));return{uid:s.uid,dom:{tag:"div",classes:[F?"tox-view__toolbar":"tox-view__header",...fU||cte?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:Do([oa.config({}),Li.config({mode:"flow",selector:"button, .tox-button",focusInside:qb.OnEnterOrSpaceMode})]),components:F?Z:[bv.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),bv.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:Z})]}},kfe=s=>({uid:s.uid,behaviours:Do([oa.config({}),Wl.config({})]),dom:{tag:"div",classes:["tox-view__pane"]}}),fte=(s,F,Z,ue)=>{const we={getPane:Be=>Td.getPart(Be,s,"pane"),getOnShow:Be=>s.viewConfig.onShow,getOnHide:Be=>s.viewConfig.onHide};return{uid:s.uid,dom:s.dom,components:F,behaviours:Do([oa.config({}),Li.config({mode:"cyclic",focusInside:qb.OnEnterOrSpaceMode})]),apis:we}};var S4=ch({name:"silver.View",configFields:[Sn("viewConfig")],partFields:[Jp({factory:{sketch:ute},schema:[Sn("buttons"),Sn("providers")],name:"header"}),Jp({factory:{sketch:kfe},schema:[],name:"pane"})],factory:fte,apis:{getPane:(s,F)=>s.getPane(F),getOnShow:(s,F)=>s.getOnShow(F),getOnHide:(s,F)=>s.getOnHide(F)}});const hR=(s,F,Z)=>je(F,(ue,we)=>{const Be=Nt(lte(ue));return s.slot(we,S4.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:Be,components:[...Be.buttons.length>0?[S4.parts.header({buttons:Be.buttons,providers:Z})]:[],S4.parts.pane({})]}))}),dte=(s,F)=>Cd.sketch(Z=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:hR(Z,s,F),slotBehaviours:K3.unnamedEvents([Ll(ue=>Cd.hideAllSlots(ue))])})),Mk=s=>ce(Cd.getSlotNames(s),F=>Cd.isShowing(s,F)),dU=s=>{const F=s.element;ko(F,"display","none"),fr(F,"aria-hidden","true")},hU=s=>{const F=s.element;ma(F,"display"),po(F,"aria-hidden")},pR=s=>({getContainer:x(s)}),pU=(s,F,Z)=>{Cd.getSlot(s,F).each(ue=>{S4.getPane(ue).each(we=>{Z(ue)(pR(we.element.dom))})})},mU=(s,F)=>pU(s,F,S4.getOnShow),k4=(s,F)=>pU(s,F,S4.getOnHide);var F8=Yh({factory:(s,F)=>{const Be={setViews:(qe,ft)=>{da.set(qe,[dte(ft,F.backstage.shared.providers)])},whichView:qe=>as.getCurrent(qe).bind(Mk),toggleView:(qe,ft,gt,At)=>as.getCurrent(qe).exists($t=>{const on=Mk($t),yn=on.exists(Mn=>At===Mn),wn=Cd.getSlot($t,At).isSome();return wn&&(Cd.hideAllSlots($t),yn?(dU(qe),ft()):(gt(),hU(qe),Cd.showSlot($t,At),mU($t,At)),on.each(Mn=>k4($t,Mn))),wn})};return{uid:s.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:Do([da.config({}),as.config({find:qe=>{const ft=da.contents(qe);return He(ft)}})]),apis:Be}},name:"silver.ViewWrapper",configFields:[Sn("backstage")],apis:{setViews:(s,F,Z)=>s.setViews(F,Z),toggleView:(s,F,Z,ue,we)=>s.toggleView(F,Z,ue,we),whichView:(s,F)=>s.whichView(F)}});const pte=(s,F,Z)=>{let ue=!1;const we=qe=>{gs(qe,".tox-statusbar").each(ft=>{Aa(ft,"display")==="none"&&ao(ft,"aria-hidden")==="true"?(ma(ft,"display"),po(ft,"aria-hidden")):(ko(ft,"display","none"),fr(ft,"aria-hidden","true"))})},Be={getSocket:qe=>Td.getPart(qe,s,"socket"),setSidebar:(qe,ft,gt)=>{Td.getPart(qe,s,"sidebar").each(At=>rR(At,ft,gt))},toggleSidebar:(qe,ft)=>{Td.getPart(qe,s,"sidebar").each(gt=>oR(gt,ft))},whichSidebar:qe=>Td.getPart(qe,s,"sidebar").bind(Bee).getOrNull(),getHeader:qe=>Td.getPart(qe,s,"header"),getToolbar:qe=>Td.getPart(qe,s,"toolbar"),setToolbar:(qe,ft)=>{Td.getPart(qe,s,"toolbar").each(gt=>{const At=oe(ft,Ak);gt.getApis().setGroups(gt,At)})},setToolbars:(qe,ft)=>{Td.getPart(qe,s,"multiple-toolbar").each(gt=>{const At=oe(ft,$t=>oe($t,Ak));zV.setItems(gt,At)})},refreshToolbar:qe=>{Td.getPart(qe,s,"toolbar").each(gt=>gt.getApis().refresh(gt))},toggleToolbarDrawer:qe=>{Td.getPart(qe,s,"toolbar").each(ft=>{Ct(ft.getApis().toggle,gt=>gt(ft))})},toggleToolbarDrawerWithoutFocusing:qe=>{Td.getPart(qe,s,"toolbar").each(ft=>{Ct(ft.getApis().toggleWithoutFocusing,gt=>gt(ft))})},isToolbarDrawerToggled:qe=>Td.getPart(qe,s,"toolbar").bind(ft=>I.from(ft.getApis().isOpen).map(gt=>gt(ft))).getOr(!1),getThrobber:qe=>Td.getPart(qe,s,"throbber"),focusToolbar:qe=>{Td.getPart(qe,s,"toolbar").orThunk(()=>Td.getPart(qe,s,"multiple-toolbar")).each(gt=>{Li.focusIn(gt)})},setMenubar:(qe,ft)=>{Td.getPart(qe,s,"menubar").each(gt=>{K9.setMenus(gt,ft)})},focusMenubar:qe=>{Td.getPart(qe,s,"menubar").each(ft=>{K9.focus(ft)})},setViews:(qe,ft)=>{Td.getPart(qe,s,"viewWrapper").each(gt=>{F8.setViews(gt,ft)})},toggleView:(qe,ft)=>Td.getPart(qe,s,"viewWrapper").exists(gt=>F8.toggleView(gt,()=>Be.showMainView(qe),()=>Be.hideMainView(qe),ft)),whichView:qe=>Td.getPart(qe,s,"viewWrapper").bind(F8.whichView).getOrNull(),hideMainView:qe=>{ue=Be.isToolbarDrawerToggled(qe),ue&&Be.toggleToolbarDrawer(qe),Td.getPart(qe,s,"editorContainer").each(ft=>{const gt=ft.element;we(gt),ko(gt,"display","none"),fr(gt,"aria-hidden","true")})},showMainView:qe=>{ue&&Be.toggleToolbarDrawer(qe),Td.getPart(qe,s,"editorContainer").each(ft=>{const gt=ft.element;we(gt),ma(gt,"display"),po(gt,"aria-hidden")})}};return{uid:s.uid,dom:s.dom,components:F,apis:Be,behaviours:s.behaviours}},mte=$y.optional({factory:K9,name:"menubar",schema:[Sn("backstage")]}),mR=s=>s.type===Hm.sliding?rte:s.type===Hm.floating?nte:B8,gte=$y.optional({factory:{sketch:s=>zV.sketch({uid:s.uid,dom:s.dom,listBehaviours:Do([Li.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>B8({type:s.type,uid:fi("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:s.providers,onEscape:()=>(s.onEscape(),I.some(!0))}),setupItem:(F,Z,ue,we)=>{d1.setGroups(Z,ue)},shell:!0})},name:"multiple-toolbar",schema:[Sn("dom"),Sn("onEscape")]}),vte=$y.optional({factory:{sketch:s=>{const F=mR(s),Z={type:s.type,uid:s.uid,onEscape:()=>(s.onEscape(),I.some(!0)),onToggled:(ue,we)=>s.onToolbarToggled(we),cyclicKeying:!1,initGroups:[],getSink:s.getSink,providers:s.providers,moreDrawerData:{lazyToolbar:s.lazyToolbar,lazyMoreButton:s.lazyMoreButton,lazyHeader:s.lazyHeader},attributes:s.attributes};return F(Z)}},name:"toolbar",schema:[Sn("dom"),Sn("onEscape"),Sn("getSink")]}),gU=$y.optional({factory:{sketch:Sk},name:"header",schema:[Sn("dom")]}),vU=$y.optional({factory:{sketch:Eee},name:"promotion",schema:[Sn("dom")]}),N8=$y.optional({name:"socket",schema:[Sn("dom")]}),gR=$y.optional({factory:{sketch:zee},name:"sidebar",schema:[Sn("dom")]}),yte=$y.optional({factory:{sketch:jee},name:"throbber",schema:[Sn("dom")]}),bte=$y.optional({factory:F8,name:"viewWrapper",schema:[Sn("backstage")]}),yU=s=>({uid:s.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:s.components}),xte=$y.optional({factory:{sketch:yU},name:"editorContainer",schema:[]});var Yl=ch({name:"OuterContainer",factory:pte,configFields:[Sn("dom"),Sn("behaviours")],partFields:[gU,mte,vte,gte,N8,gR,vU,yte,bte,xte],apis:{getSocket:(s,F)=>s.getSocket(F),setSidebar:(s,F,Z,ue)=>{s.setSidebar(F,Z,ue)},toggleSidebar:(s,F,Z)=>{s.toggleSidebar(F,Z)},whichSidebar:(s,F)=>s.whichSidebar(F),getHeader:(s,F)=>s.getHeader(F),getToolbar:(s,F)=>s.getToolbar(F),setToolbar:(s,F,Z)=>{s.setToolbar(F,Z)},setToolbars:(s,F,Z)=>{s.setToolbars(F,Z)},refreshToolbar:(s,F)=>s.refreshToolbar(F),toggleToolbarDrawer:(s,F)=>{s.toggleToolbarDrawer(F)},toggleToolbarDrawerWithoutFocusing:(s,F)=>{s.toggleToolbarDrawerWithoutFocusing(F)},isToolbarDrawerToggled:(s,F)=>s.isToolbarDrawerToggled(F),getThrobber:(s,F)=>s.getThrobber(F),setMenubar:(s,F,Z)=>{s.setMenubar(F,Z)},focusMenubar:(s,F)=>{s.focusMenubar(F)},focusToolbar:(s,F)=>{s.focusToolbar(F)},setViews:(s,F,Z)=>{s.setViews(F,Z)},toggleView:(s,F,Z)=>s.toggleView(F,Z),whichView:(s,F)=>s.whichView(F)}});const _te="file edit view insert format tools table help",vR={file:{title:"File",items:"newdocument restoredraft | preview | importword exportpdf exportword | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code revisionhistory | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed inserttemplate codesample inserttable accordion math | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},wte=(s,F,Z)=>{const ue=XE(Z).split(/[ ,]/);return{text:s.title,getItems:()=>ye(s.items,we=>{const Be=we.toLowerCase();return Be.trim().length===0?[]:te(ue,qe=>qe===Be)?[]:Be==="separator"||Be==="|"?[{type:"separator"}]:F.menuItems[Be]?[F.menuItems[Be]]:[]})}},yR=s=>s.split(" "),$8=(s,F)=>{const Z={...vR,...F.menus},ue=ke(F.menus).length>0,we=F.menubar===void 0||F.menubar===!0?yR(_te):yR(F.menubar===!1?"":F.menubar),Be=me(we,ft=>{const gt=ht(vR,ft);return ue?gt||Ge(F.menus,ft).exists(At=>ht(At,"items")):gt}),qe=oe(Be,ft=>{const gt=Z[ft];return wte({title:gt.title,items:yR(gt.items)},F,s)});return me(qe,ft=>{const gt=At=>n(At)||At.type!=="separator";return ft.getItems().length>0&&te(ft.getItems(),gt)})},Ote=s=>{const F=()=>{s._skinLoaded=!0,eX(s)};return()=>{s.initialized?F():s.on("init",F)}},Ste=(s,F)=>()=>tX(s,{message:F}),bR=(s,F,Z)=>(s.on("remove",()=>Z.unload(F)),Z.load(F)),xR=(s,F,Z,ue)=>(s.on("remove",()=>ue.unloadRawCss(F)),ue.loadRawCss(F,Z)),bU=async(s,F)=>{const ue="ui/"+z6(s).getOr("default")+"/skin.css",we=tinymce.Resource.get(ue);if(n(we))xR(s,ue,we,s.ui.styleSheetLoader);else{const Be=s.editorManager.suffix,qe=F+`/skin${Be}.css`;return bR(s,qe,s.ui.styleSheetLoader)}},kte=async(s,F)=>{if(Qn(Pt.fromDom(s.getElement()))){const we="ui/"+z6(s).getOr("default")+"/skin.shadowdom.css",Be=tinymce.Resource.get(we);if(n(Be))xR(s,we,Be,Lw.DOM.styleSheetLoader);else{const qe=s.editorManager.suffix,ft=F+`/skin.shadowdom${qe}.css`;return bR(s,ft,Lw.DOM.styleSheetLoader)}}},xU=async(s,F)=>{const Z=()=>{const we=o7(F),Be=F.editorManager.suffix;we&&F.contentCSS.push(we+(s?"/content.inline":"/content")+`${Be}.css`)};z6(F).fold(Z,we=>{const Be="ui/"+we+(s?"/content.inline":"/content")+".css",qe=tinymce.Resource.get(Be);n(qe)?xR(F,Be,qe,F.ui.styleSheetLoader):Z()});const ue=o7(F);if(!r7(F)&&n(ue))return Promise.all([bU(F,ue),kte(F,ue)]).then()},_U=(s,F)=>xU(s,F).then(Ote(F),Ste(F,"Skin could not be loaded")),Tte=T(_U,!1),Cte=T(_U,!0),sO=(s,F,Z)=>at(Z)?s.translate(F):s.translate([F,s.translate(Z)]),Ate=(s,F)=>{const Z=(qe,ft,gt,At)=>{const $t=s.shared.providers.translate(qe.title);if(qe.type==="separator")return I.some({type:"separator",text:$t});if(qe.type==="submenu"){const on=ye(qe.getStyleItems(),yn=>ue(yn,ft,At));return ft===0&&on.length<=0?I.none():I.some({type:"nestedmenuitem",text:$t,enabled:on.length>0,getSubmenuItems:()=>ye(qe.getStyleItems(),yn=>ue(yn,ft,At))})}else return I.some({type:"togglemenuitem",text:$t,icon:qe.icon,active:qe.isSelected(At),enabled:!gt,onAction:F.onAction(qe),...qe.getStylePreview().fold(()=>({}),on=>({meta:{style:on}}))})},ue=(qe,ft,gt)=>{const At=qe.type==="formatter"&&F.isInvalid(qe);return ft===0?At?[]:Z(qe,ft,!1,gt).toArray():Z(qe,ft,At,gt).toArray()},we=qe=>{const ft=F.getCurrentValue(),gt=F.shouldHide?0:1;return ye(qe,At=>ue(At,gt,ft))};return{validateItems:we,getFetch:(qe,ft)=>(gt,At)=>{const $t=ft(),on=we($t),yn=v4(on,r1.CLOSE_ON_EXECUTE,qe,{isHorizontalMenu:!1,search:I.none()});At(yn)}}},T4=(s,F)=>{const Z=F.dataset,ue=Z.type==="basic"?()=>oe(Z.data,we=>xk(we,F.isSelectedFor,F.getPreviewFor)):Z.getData;return{items:Ate(s,F),getStyleItems:ue}},Ek=(s,F,Z,ue,we,Be)=>{const{items:qe,getStyleItems:ft}=T4(F,Z),gt=xi(Z.tooltip),At=on=>({getComponent:x(on),setTooltip:yn=>{const wn=F.shared.providers.translate(yn);fr(on.element,"aria-label",wn),gt.set(yn)}}),$t=on=>{const yn=wn=>on.setTooltip(sO(s,ue(wn.value),wn.value));return s.on(we,yn),t4(Zw(s,"NodeChange",wn=>{const Mn=wn.getComponent();Z.updateText(Mn),ea.set(wn.getComponent(),!s.selection.isEditable())})(on),()=>s.off(we,yn))};return s9({text:Z.icon.isSome()?I.none():Z.text,icon:Z.icon,ariaLabel:I.some(Z.tooltip),tooltip:I.none(),role:I.none(),fetch:qe.getFetch(F,ft),onSetup:$t,getApi:At,columns:1,presets:"normal",classes:Z.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[kd.config({...F.shared.providers.tooltips.getConfig({tooltipText:F.shared.providers.translate(Z.tooltip),onShow:on=>{if(Z.tooltip!==gt.get()){const yn=F.shared.providers.translate(gt.get());kd.setComponents(on,F.shared.providers.tooltips.getComponents({tooltipText:yn}))}}})})]},"tox-tbtn",F.shared,Be)},_R=s=>oe(s,F=>{let Z=F,ue=F;const we=F.split("=");return we.length>1&&(Z=we[0],ue=we[1]),{title:Z,format:ue}}),wR=s=>({type:"basic",data:s});var C4;(function(s){s[s.SemiColon=0]="SemiColon",s[s.Space=1]="Space"})(C4||(C4={}));const Mte=(s,F)=>F===C4.SemiColon?s.replace(/;$/,"").split(";"):s.split(" "),OR=(s,F,Z)=>{const ue=s.options.get(F);return{type:"basic",data:_R(Mte(ue,Z))}},Ete="Align",wU=x("Alignment {0}"),OU="left",SR=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],SU=s=>{const F=()=>ce(SR,ft=>s.formatter.match(ft.format)),Z=ft=>()=>s.formatter.match(ft),ue=ft=>I.none,we=ft=>{const At=F().fold(x(OU),$t=>$t.title.toLowerCase());Ri(ft,F2,{icon:`align-${At}`}),sX(s,{value:At})},Be=wR(SR),qe=ft=>()=>ce(SR,gt=>gt.format===ft.format).each(gt=>s.execCommand(gt.command));return{tooltip:sO(s,wU(),OU),text:I.none(),icon:I.some("align-left"),isSelectedFor:Z,getCurrentValue:I.none,getPreviewFor:ue,onAction:qe,updateText:we,dataset:Be,shouldHide:!1,isInvalid:ft=>!s.formatter.canApply(ft.format)}},Pte=(s,F)=>Ek(s,F,SU(s),wU,"AlignTextUpdate","align"),kU=(s,F)=>{const Z=T4(F,SU(s));s.ui.registry.addNestedMenuItem("align",{text:F.shared.providers.translate(Ete),onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},Pk=(s,F)=>{const Z=F(),ue=oe(Z,we=>we.format);return I.from(s.formatter.closest(ue)).bind(we=>ce(Z,Be=>Be.format===we))},kR="Blocks",TR=x("Block {0}"),Uy="Paragraph",CR=s=>{const F=Be=>()=>s.formatter.match(Be),Z=Be=>()=>{const qe=s.formatter.get(Be);return qe?I.some({tag:qe.length>0&&(qe[0].inline||qe[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(Be))}):I.none()},ue=Be=>{const ft=Pk(s,()=>we.data).fold(x(Uy),gt=>gt.title);Ri(Be,Mg,{text:ft}),RF(s,{value:ft})},we=OR(s,"block_formats",C4.SemiColon);return{tooltip:sO(s,TR(),Uy),text:I.some(Uy),icon:I.none(),isSelectedFor:F,getCurrentValue:I.none,getPreviewFor:Z,onAction:LF(s),updateText:ue,dataset:we,shouldHide:!1,isInvalid:Be=>!s.formatter.canApply(Be.format)}},Rte=(s,F)=>Ek(s,F,CR(s),TR,"BlocksTextUpdate","blocks"),Lte=(s,F)=>{const Z=T4(F,CR(s));s.ui.registry.addNestedMenuItem("blocks",{text:kR,onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},Ite="Fonts",TU=x("Font {0}"),AR="System Font",Dte=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],CU=s=>{const F=s.split(/\s*,\s*/);return oe(F,Z=>Z.replace(/^['"]+|['"]+$/g,""))},MR=(s,F)=>F.length>0&&_e(F,Z=>s.indexOf(Z.toLowerCase())>-1),Bte=(s,F)=>{if(s.indexOf("-apple-system")===0||F.length>0){const Z=CU(s.toLowerCase());return MR(Z,Dte)||MR(Z,F)}else return!1},AU=s=>{const F=()=>{const gt=Mn=>Mn?CU(Mn)[0]:"",At=s.queryCommandValue("FontName"),$t=ft.data,on=At?At.toLowerCase():"",yn=pz(s);return{matchOpt:ce($t,Mn=>{const Xn=Mn.format;return Xn.toLowerCase()===on||gt(Xn).toLowerCase()===gt(on).toLowerCase()}).orThunk(()=>_t(Bte(on,yn),{title:AR,format:on})),font:At}},Z=gt=>At=>At.exists($t=>$t.format===gt),ue=()=>{const{matchOpt:gt}=F();return gt},we=gt=>()=>I.some({tag:"div",styles:gt.indexOf("dings")===-1?{"font-family":gt}:{}}),Be=gt=>()=>{s.undoManager.transact(()=>{s.focus(),s.execCommand("FontName",!1,gt.format)})},qe=gt=>{const{matchOpt:At,font:$t}=F(),on=At.fold(x($t),yn=>yn.title);Ri(gt,Mg,{text:on}),lX(s,{value:on})},ft=OR(s,"font_family_formats",C4.SemiColon);return{tooltip:sO(s,TU(),AR),text:I.some(AR),icon:I.none(),isSelectedFor:Z,getCurrentValue:ue,getPreviewFor:we,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},ER=(s,F)=>Ek(s,F,AU(s),TU,"FontFamilyTextUpdate","fontfamily"),zte=(s,F)=>{const Z=T4(F,AU(s));s.ui.registry.addNestedMenuItem("fontfamily",{text:F.shared.providers.translate(Ite),onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},Fte={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Nte=(()=>{const s="[0-9]+",Z="[eE]"+("[+-]?"+s),ue="\\.",we=ft=>`(?:${ft})?`,qe=`[+-]?(?:${["Infinity",s+ue+we(s)+we(Z),ue+s+we(Z),s+we(Z)].join("|")})`;return new RegExp(`^(${qe})(.*)$`)})(),$te=(s,F)=>te(F,Z=>te(Fte[Z],ue=>s===ue)),V8=(s,F)=>I.from(Nte.exec(s)).bind(ue=>{const we=Number(ue[1]),Be=ue[2];return $te(Be,F)?I.some({value:we,unit:Be}):I.none()}),Vte=(s,F)=>V8(s,F).map(({value:Z,unit:ue})=>Z+ue),PR={tab:x(9),escape:x(27),enter:x(13),backspace:x(8),delete:x(46),left:x(37),up:x(38),right:x(39),down:x(40),space:x(32),home:x(36),end:x(35),pageUp:x(33),pageDown:x(34)},MU=(s,F,Z,ue)=>{let we=I.none();const Be=kr=>kr.map(yo=>hi.getValue(yo)).getOr(""),qe=Zw(s,"NodeChange SwitchMode",kr=>{const yo=kr.getComponent();we=I.some(yo),Z.updateInputValue(yo),ea.set(yo,!s.selection.isEditable())}),ft=kr=>({getComponent:x(kr)}),gt=xi(v),At=fi("custom-number-input-events"),$t=(kr,yo,Xr)=>{const No=Be(we),Jo=Z.getNewValue(No,kr),ho=No.length-`${Jo}`.length,Ci=we.map(qi=>qi.element.dom.selectionStart-ho),mi=we.map(qi=>qi.element.dom.selectionEnd-ho);Z.onAction(Jo,Xr),we.each(qi=>{hi.setValue(qi,Jo),yo&&(Ci.each(Fi=>qi.element.dom.selectionStart=Fi),mi.each(Fi=>qi.element.dom.selectionEnd=Fi))})},on=(kr,yo)=>$t((Xr,No)=>Xr-No,kr,yo),yn=(kr,yo)=>$t((Xr,No)=>Xr+No,kr,yo),wn=kr=>Cr(kr.element).fold(I.none,yo=>(bd(yo),I.some(!0))),Mn=kr=>dy(kr.element)?(hr(kr.element).each(yo=>bd(yo)),I.some(!0)):I.none(),Xn=(kr,yo,Xr,No)=>{const Jo=xi(v),ho=F.shared.providers.translate(Xr),Ci=fi("altExecuting"),mi=Zw(s,"NodeChange SwitchMode",Fi=>{ea.set(Fi.getComponent(),!s.selection.isEditable())}),qi=Fi=>{ea.isDisabled(Fi)||kr(!0)};return Vd.sketch({dom:{tag:"button",attributes:{"aria-label":ho,"data-mce-name":yo},classes:No.concat(yo)},components:[t8(yo,F.shared.providers.icons)],buttonBehaviours:Do([ea.config({}),kd.config(F.shared.providers.tooltips.getConfig({tooltipText:ho})),Ta(Ci,[tx({onSetup:mi,getApi:ft},Jo),Ih({getApi:ft},Jo),fo(Bp(),(Fi,Os)=>{(Os.event.raw.keyCode===PR.space()||Os.event.raw.keyCode===PR.enter())&&(ea.isDisabled(Fi)||kr(!1))}),fo(R0(),qi),fo(wm(),qi)])]),eventOrder:{[Bp()]:[Ci,"keying"],[R0()]:[Ci,"alloy.base.behaviour"],[wm()]:[Ci,"alloy.base.behaviour"],[zd()]:["alloy.base.behaviour",Ci,"tooltipping"],[fp()]:[Ci,"tooltipping"]}})},Br=qs(Xn(kr=>on(!1,kr),"minus","Decrease font size",[])),or=qs(Xn(kr=>yn(!1,kr),"plus","Increase font size",[])),Mr=qs({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[Nw.sketch({inputBehaviours:Do([ea.config({}),Ta(At,[tx({onSetup:qe,getApi:ft},gt),Ih({getApi:ft},gt)]),Ta("input-update-display-text",[fo(Mg,(kr,yo)=>{hi.setValue(kr,yo.event.text)}),fo(ap(),kr=>{Z.onAction(hi.getValue(kr))}),fo(Zv(),kr=>{Z.onAction(hi.getValue(kr))})]),Li.config({mode:"special",onEnter:kr=>($t(R,!0,!0),I.some(!0)),onEscape:wn,onUp:kr=>(yn(!0,!1),I.some(!0)),onDown:kr=>(on(!0,!1),I.some(!0)),onLeft:(kr,yo)=>(yo.cut(),I.none()),onRight:(kr,yo)=>(yo.cut(),I.none())})])})],behaviours:Do([oa.config({}),Li.config({mode:"special",onEnter:Mn,onSpace:Mn,onEscape:wn}),Ta("input-wrapper-events",[fo(Om(),kr=>{q([Br,or],yo=>{const Xr=Pt.fromDom(yo.get(kr).element.dom);dy(Xr)&&a0(Xr)})})])])});return{dom:{tag:"div",classes:["tox-number-input"],attributes:{...a(ue)?{"data-mce-name":ue}:{}}},components:[Br.asSpec(),Mr.asSpec(),or.asSpec()],behaviours:Do([oa.config({}),Li.config({mode:"flow",focusInside:qb.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:kr=>dy(kr.element)?I.none():(bd(kr.element),I.some(!0))})])}},EU="Font sizes",PU=x("Font size {0}"),RR="12pt",Ute={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},jte={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},Qte=(s,F)=>{const Z=Math.pow(10,F);return Math.round(s*Z)/Z},RU=(s,F)=>/[0-9.]+px$/.test(s)?Qte(parseInt(s,10)*72/96,F||0)+"pt":Ge(jte,s).getOr(s),Hte=s=>Ge(Ute,s).getOr(""),LR=s=>{const F=()=>{let gt=I.none();const At=ft.data,$t=s.queryCommandValue("FontSize");if($t)for(let on=3;gt.isNone()&&on>=0;on--){const yn=RU($t,on),wn=Hte(yn);gt=ce(At,Mn=>Mn.format===$t||Mn.format===yn||Mn.format===wn)}return{matchOpt:gt,size:$t}},Z=gt=>At=>At.exists($t=>$t.format===gt),ue=()=>{const{matchOpt:gt}=F();return gt},we=x(I.none),Be=gt=>()=>{s.undoManager.transact(()=>{s.focus(),s.execCommand("FontSize",!1,gt.format)})},qe=gt=>{const{matchOpt:At,size:$t}=F(),on=At.fold(x($t),yn=>yn.title);Ri(gt,Mg,{text:on}),sP(s,{value:on})},ft=OR(s,"font_size_formats",C4.Space);return{tooltip:sO(s,PU(),RR),text:I.some(RR),icon:I.none(),isSelectedFor:Z,getPreviewFor:we,getCurrentValue:ue,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},Zte=(s,F)=>Ek(s,F,LR(s),PU,"FontSizeTextUpdate","fontsize"),qte=s=>{var F;const Z={step:1};return(F={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[s])!==null&&F!==void 0?F:Z},Wte=16,Yte=s=>s>=0,Xte=s=>{const F=()=>s.queryCommandValue("FontSize");return{updateInputValue:ue=>Ri(ue,Mg,{text:F()}),onAction:(ue,we)=>s.execCommand("FontSize",!1,ue,{skip_focus:!we}),getNewValue:(ue,we)=>{V8(ue,["unsupportedLength","empty"]);const Be=F(),qe=V8(ue,["unsupportedLength","empty"]).or(V8(Be,["unsupportedLength","empty"])),ft=qe.map(yn=>yn.value).getOr(Wte),gt=JE(s),At=qe.map(yn=>yn.unit).filter(yn=>yn!=="").getOr(gt),$t=we(ft,qte(At).step),on=`${Yte($t)?$t:ft}${At}`;return on!==Be&&PF(s,{value:on}),on}}},Gte=(s,F)=>MU(s,F,Xte(s),"fontsizeinput"),Kte=(s,F)=>{const Z=T4(F,LR(s));s.ui.registry.addNestedMenuItem("fontsize",{text:EU,onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},LU="Formats",IU=s=>at(s)?"Formats":"Format {0}",DU=(s,F)=>{const Z="Formats",ue=qe=>()=>s.formatter.match(qe),we=qe=>()=>{const ft=s.formatter.get(qe);return ft!==void 0?I.some({tag:ft.length>0&&(ft[0].inline||ft[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(qe))}):I.none()},Be=qe=>{const ft=on=>_V(on)?ye(on.items,ft):wV(on)?[{title:on.title,format:on.format}]:[],gt=ye(B9(s),ft),$t=Pk(s,x(gt)).fold(x({title:Z,tooltipLabel:""}),on=>({title:on.title,tooltipLabel:on.title}));Ri(qe,Mg,{text:$t.title}),aX(s,{value:$t.tooltipLabel})};return{tooltip:sO(s,IU(""),""),text:I.some(Z),icon:I.none(),isSelectedFor:ue,getCurrentValue:I.none,getPreviewFor:we,onAction:LF(s),updateText:Be,shouldHide:nz(s),isInvalid:qe=>!s.formatter.canApply(qe.format),dataset:F}},Jte=(s,F)=>{const Z={type:"advanced",...F.styles};return Ek(s,F,DU(s,Z),IU,"StylesTextUpdate","styles")},ene=(s,F)=>{const Z={type:"advanced",...F.styles},ue=T4(F,DU(s,Z));s.ui.registry.addNestedMenuItem("styles",{text:LU,onSetup:Gh(s),getSubmenuItems:()=>ue.items.validateItems(ue.getStyleItems())})},tne=x([Sn("toggleClass"),Sn("fetch"),Zh("onExecute"),mr("getHotspot",I.some),mr("getAnchorOverrides",x({})),l0(),Zh("onItemExecute"),Hr("lazySink"),Sn("dom"),Ra("onOpen"),Ef("splitDropdownBehaviours",[lu,Li,oa]),mr("matchWidth",!1),mr("useMinWidth",!1),mr("eventOrder",{}),Hr("role"),Hr("listRole")].concat(MC())),nne=Sd({factory:Vd,schema:[Sn("dom")],name:"arrow",defaults:()=>({buttonBehaviours:Do([oa.revoke()])}),overrides:s=>({dom:{tag:"span",attributes:{role:"presentation"}},action:F=>{F.getSystem().getByUid(s.uid).each(Fp)},buttonBehaviours:Do([za.config({toggleOnExecute:!1,toggleClass:s.toggleClass})])})}),rne=Sd({factory:Vd,schema:[Sn("dom")],name:"button",defaults:()=>({buttonBehaviours:Do([oa.revoke()])}),overrides:s=>({dom:{tag:"span",attributes:{role:"presentation"}},action:F=>{F.getSystem().getByUid(s.uid).each(Z=>{s.onExecute(Z,F)})}})}),BU=x([nne,rne,Jp({factory:{sketch:s=>({uid:s.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:s.text}})},schema:[Sn("text")],name:"aria-descriptor"}),Um({schema:[U0()],name:"menu",defaults:s=>({onExecute:(F,Z)=>{F.getSystem().getByUid(s.uid).each(ue=>{s.onItemExecute(ue,F,Z)})}})}),oN()]),one=(s,F,Z,ue)=>{const we=$t=>{as.getCurrent($t).each(on=>{ri.highlightFirst(on),Li.focusIn(on)})},Be=$t=>{vP(s,R,$t,ue,we,Xh.HighlightMenuAndItem).get(v)},qe=$t=>(Be($t),I.some(!0)),ft=$t=>{const on=Ph($t,s,"button");return Fp(on),I.some(!0)},gt={...hl([Ll(($t,on)=>{Fo($t,s,"aria-descriptor").each(wn=>{const Mn=fi("aria");fr(wn.element,"id",Mn),fr($t.element,"aria-describedby",Mn)})})]),...k6(I.some(Be))},At={repositionMenus:$t=>{za.isOn($t)&&xP($t)}};return{uid:s.uid,dom:s.dom,components:F,apis:At,eventOrder:{...s.eventOrder,[cp()]:["disabling","toggling","alloy.base.behaviour"]},events:gt,behaviours:Pf(s.splitDropdownBehaviours,[lu.config({others:{sandbox:$t=>{const on=Ph($t,s,"arrow");return bP(s,$t,{onOpen:()=>{za.on(on),za.on($t)},onClose:()=>{za.off(on),za.off($t)}})}}}),Li.config({mode:"special",onSpace:ft,onEnter:ft,onDown:qe}),oa.config({}),za.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:s.role.getOr("button"),"aria-haspopup":!0}}}},U8=ch({name:"SplitDropdown",configFields:tne(),partFields:BU(),factory:one,apis:{repositionMenus:(s,F)=>s.repositionMenus(F)}}),IR=s=>({isEnabled:()=>!ea.isDisabled(s),setEnabled:F=>ea.set(s,!F),setText:F=>Ri(s,Mg,{text:F}),setIcon:F=>Ri(s,F2,{icon:F})}),ine=s=>({setActive:F=>{za.set(s,F)},isActive:()=>za.isOn(s),isEnabled:()=>!ea.isDisabled(s),setEnabled:F=>ea.set(s,!F),setText:F=>Ri(s,Mg,{text:F}),setIcon:F=>Ri(s,F2,{icon:F})}),DR=(s,F)=>s.map(Z=>({"aria-label":F.translate(Z)})).getOr({}),BR=fi("focus-button"),zR=(s,F,Z,ue,we,Be)=>{const qe=F.map(gt=>qs(A$(gt,"tox-tbtn",we))),ft=s.map(gt=>qs(ax(gt,we.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(F.isSome()?["tox-tbtn--select"]:[]),attributes:{...DR(Z,we),...a(Be)?{"data-mce-name":Be}:{}}},components:jw([ft.map(gt=>gt.asSpec()),qe.map(gt=>gt.asSpec())]),eventOrder:{[Oh()]:["focusing","alloy.base.behaviour",ix],[zd()]:[ix,"toolbar-group-button-events"]},buttonBehaviours:Do([s1.toolbarButton(we.isDisabled),df(),Ta(ix,[Ll((gt,At)=>a9(gt)),fo(Mg,(gt,At)=>{qe.bind($t=>$t.getOpt(gt)).each($t=>{da.set($t,[ro(we.translate(At.event.text))])})}),fo(F2,(gt,At)=>{ft.bind($t=>$t.getOpt(gt)).each($t=>{da.set($t,[ax(At.event.icon,we.icons)])})}),fo(Oh(),(gt,At)=>{At.event.prevent(),Sa(gt,BR)})])].concat(ue.getOr([])))}},ane=(s,F,Z,ue,we)=>{const Be=F.shared,qe=xi(v),ft={toolbarButtonBehaviours:[],getApi:IR,onSetup:s.onSetup},gt=[Ta("toolbar-group-button-events",[tx(ft,qe),Ih(ft,qe)])];return $2.sketch({lazySink:Be.getSink,fetch:()=>uh.nu(At=>{At(oe(Z(s.items),Ak))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:zR(s.icon,s.text,s.tooltip,I.some(gt),Be.providers,we),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:ue}}}})},zU=(s,F,Z,ue)=>{var we;const Be=xi(v),qe=zR(s.icon,s.text,s.tooltip,I.none(),Z,ue);return Vd.sketch({dom:qe.dom,components:qe.components,eventOrder:i9,buttonBehaviours:{...Do([Ta("toolbar-button-events",[RK({onAction:s.onAction,getApi:F.getApi}),tx(F,Be),Ih(F,Be)]),...s.tooltip.map(ft=>kd.config(Z.tooltips.getConfig({tooltipText:Z.translate(ft)+s.shortcut.map(gt=>` (${gC(gt)})`).getOr("")}))).toArray(),s1.toolbarButton(()=>!s.enabled||Z.isDisabled()),df()].concat(F.toolbarButtonBehaviours)),[ix]:(we=qe.buttonBehaviours)===null||we===void 0?void 0:we[ix]}})},A4=(s,F,Z)=>FU(s,F,[],Z),FU=(s,F,Z,ue)=>zU(s,{toolbarButtonBehaviours:Z.length>0?[Ta("toolbarButtonWith",Z)]:[],getApi:IR,onSetup:s.onSetup},F,ue),sne=(s,F,Z)=>NU(s,F,[],Z),NU=(s,F,Z,ue)=>zU(s,{toolbarButtonBehaviours:[da.config({}),za.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(Z.length>0?[Ta("toolbarToggleButtonWith",Z)]:[]),getApi:ine,onSetup:s.onSetup},F,ue),lne=(s,F,Z)=>ue=>uh.nu(we=>F.fetch(we)).map(we=>I.from(o4(nl(hP(fi("menu-value"),we,Be=>{F.onItemAction(s(ue),Be)},F.columns,F.presets,r1.CLOSE_ON_EXECUTE,F.select.getOr(D),Z),{movement:CC(F.columns,F.presets),menuBehaviours:K3.unnamedEvents(F.columns!=="auto"?[]:[Ll((Be,qe)=>{hC(Be,4,R7(F.presets)).each(({numRows:ft,numColumns:gt})=>{Li.setGridSize(Be,ft,gt)})})])})))),cne=(s,F,Z)=>{const ue=xi(s.tooltip.getOr("")),we=ft=>({isEnabled:()=>!ea.isDisabled(ft),setEnabled:gt=>ea.set(ft,!gt),setIconFill:(gt,At)=>{aa(ft.element,`svg path[class="${gt}"], rect[class="${gt}"]`).each($t=>{fr($t,"fill",At)})},setActive:gt=>{fr(ft.element,"aria-pressed",gt),aa(ft.element,"span").each(At=>{ft.getSystem().getByDom(At).each($t=>za.set($t,gt))})},isActive:()=>aa(ft.element,"span").exists(gt=>ft.getSystem().getByDom(gt).exists(za.isOn)),setText:gt=>aa(ft.element,"span").each(At=>ft.getSystem().getByDom(At).each($t=>Ri($t,Mg,{text:gt}))),setIcon:gt=>aa(ft.element,"span").each(At=>ft.getSystem().getByDom(At).each($t=>Ri($t,F2,{icon:gt}))),setTooltip:gt=>{const At=F.providers.translate(gt);fr(ft.element,"aria-label",At),ue.set(gt)}}),Be=xi(v),qe={getApi:we,onSetup:s.onSetup};return U8.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...DR(s.tooltip,F.providers),...a(Z)?{"data-mce-name":Z}:{}}},onExecute:ft=>{const gt=we(ft);gt.isEnabled()&&s.onAction(gt)},onItemExecute:(ft,gt,At)=>{},splitDropdownBehaviours:Do([s1.splitButton(F.providers.isDisabled),df(),Ta("split-dropdown-events",[Ll((ft,gt)=>a9(ft)),fo(BR,oa.focus),tx(qe,Be),Ih(qe,Be)]),u4.config({}),...s.tooltip.map(ft=>kd.config({...F.providers.tooltips.getConfig({tooltipText:F.providers.translate(ft),onShow:gt=>{if(ue.get()!==ft){const At=F.providers.translate(ue.get());kd.setComponents(gt,F.providers.tooltips.getComponents({tooltipText:At}))}}})})).toArray()]),eventOrder:{[zd()]:["alloy.base.behaviour","split-dropdown-events","tooltipping"],[fp()]:["split-dropdown-events","tooltipping"]},toggleClass:"tox-tbtn--enabled",lazySink:F.getSink,fetch:lne(we,s,F.providers),parts:{menu:F5(!1,s.columns,s.presets)},components:[U8.parts.button(zR(s.icon,s.text,I.none(),I.some([za.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),F.providers)),U8.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:Az("chevron-down",F.providers.icons)},buttonBehaviours:Do([s1.splitButton(F.providers.isDisabled),df(),S7()])}),U8.parts["aria-descriptor"]({text:F.providers.translate("To open the popup, press Shift+Enter")})]})},une=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],Rk=(s,F)=>(Z,ue,we,Be)=>{const qe=s(Z).mapError(ft=>sn(ft)).getOrDie();return F(qe,ue,we,Be)},fne={button:Rk(i1,(s,F,Z,ue)=>A4(s,F.shared.providers,ue)),togglebutton:Rk(cC,(s,F,Z,ue)=>sne(s,F.shared.providers,ue)),menubutton:Rk($V,(s,F,Z,ue)=>mk(s,"tox-tbtn",F,I.none(),!1,ue)),splitbutton:Rk(VV,(s,F,Z,ue)=>cne(s,F.shared,ue)),grouptoolbarbutton:Rk(Tee,(s,F,Z,ue)=>{const we=Z.ui.registry.getAll().buttons,Be=ft=>j8(Z,{buttons:we,toolbar:ft,allowToolbarGroups:!1},F,I.none()),qe={[s0]:F.shared.header.isPositionedAtTop()?Og.TopToBottom:Og.BottomToTop};switch(Dw(Z)){case Hm.floating:return ane(s,F,Be,qe,ue);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},FR=(s,F,Z,ue)=>Ge(fne,s.type).fold(()=>(console.error("skipping button defined by",s),I.none()),we=>I.some(we(s,F,Z,ue))),$U={styles:Jte,fontsize:Zte,fontsizeinput:Gte,fontfamily:ER,blocks:Rte,align:Pte},dne=s=>{const F=oe(une,Z=>{const ue=me(Z.items,we=>ht(s,we)||ht($U,we));return{name:Z.name,items:ue}});return me(F,Z=>Z.items.length>0)},VU=s=>{const F=s.split("|");return oe(F,Z=>({items:Z.trim().split(" ")}))},UU=s=>m(s,F=>ht(F,"name")&&ht(F,"items")),hne=s=>{const F=s.toolbar,Z=s.buttons;return F===!1?[]:F===void 0||F===!0?dne(Z):n(F)?VU(F):UU(F)?F:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},pne=(s,F,Z,ue,we,Be)=>Ge(F,Z.toLowerCase()).orThunk(()=>Be.bind(qe=>Oe(qe,ft=>Ge(F,ft+Z.toLowerCase())))).fold(()=>Ge($U,Z.toLowerCase()).map(qe=>qe(s,we)),qe=>qe.type==="grouptoolbarbutton"&&!ue?(console.warn(`Ignoring the '${Z}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),I.none()):FR(qe,we,s,Z.toLowerCase())),j8=(s,F,Z,ue)=>{const we=hne(F),Be=oe(we,qe=>{const ft=ye(qe.items,gt=>gt.trim().length===0?[]:pne(s,F.buttons,gt,F.allowToolbarGroups,Z,ue).toArray());return{title:I.from(s.translate(qe.name)),items:ft}});return me(Be,qe=>qe.items.length>0)},jU=(s,F,Z,ue)=>{const we=F.mainUi.outerContainer,Be=Z.toolbar,qe=Z.buttons;if(m(Be,n)){const ft=Be.map(gt=>{const At={toolbar:gt,buttons:qe,allowToolbarGroups:Z.allowToolbarGroups};return j8(s,At,ue,I.none())});Yl.setToolbars(we,ft)}else Yl.setToolbar(we,j8(s,Z,ue,I.none()))},QU=rf(),mne=QU.os.isiOS()&&QU.os.version.major<=12,HU=(s,F)=>{const{uiMotherships:Z}=F,ue=s.dom;let we=s.getWin();const Be=s.getDoc().documentElement,qe=xi(Ws(we.innerWidth,we.innerHeight)),ft=xi(Ws(Be.offsetWidth,Be.offsetHeight)),gt=()=>{const yn=qe.get();(yn.left!==we.innerWidth||yn.top!==we.innerHeight)&&(qe.set(Ws(we.innerWidth,we.innerHeight)),e4(s))},At=()=>{const yn=s.getDoc().documentElement,wn=ft.get();(wn.left!==yn.offsetWidth||wn.top!==yn.offsetHeight)&&(ft.set(Ws(yn.offsetWidth,yn.offsetHeight)),e4(s))},$t=yn=>{MF(s,yn)};ue.bind(we,"resize",gt),ue.bind(we,"scroll",$t);const on=Kx(Pt.fromDom(s.getBody()),"load",At);s.on("hide",()=>{q(Z,yn=>{ko(yn.element,"display","none")})}),s.on("show",()=>{q(Z,yn=>{ma(yn.element,"display")})}),s.on("NodeChange",At),s.on("remove",()=>{on.unbind(),ue.unbind(we,"resize",gt),ue.unbind(we,"scroll",$t),we=null})},gne=(s,F,Z)=>{C2(s)&&G0(Z.mainUi.mothership.element,Z.popupUi.mothership),ZT(F,Z.dialogUi.mothership)};var vne=Object.freeze({__proto__:null,render:(s,F,Z,ue,we)=>{const{mainUi:Be,uiMotherships:qe}=F,ft=xi(0),gt=Be.outerContainer;Tte(s);const At=Pt.fromDom(we.targetNode),$t=nr(vr(At));G0(At,Be.mothership),gne(s,$t,F),s.on("SkinLoaded",()=>{Yl.setSidebar(gt,Z.sidebar,dz(s)),jU(s,F,Z,ue),ft.set(s.getWin().innerWidth),Yl.setMenubar(gt,$8(s,Z)),Yl.setViews(gt,Z.views),HU(s,F)});const on=Yl.getSocket(gt).getOrDie("Could not find expected socket element");if(mne){ra(on.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const Xn=wK(()=>{s.dispatch("ScrollContent")},20),Br=_d(on.element,"scroll",Xn.throttle);s.on("remove",Br.unbind)}pC(s,F),s.addCommand("ToggleSidebar",(Xn,Br)=>{Yl.toggleSidebar(gt,Br),s.dispatch("ToggleSidebar")}),s.addQueryValueHandler("ToggleSidebar",()=>{var Xn;return(Xn=Yl.whichSidebar(gt))!==null&&Xn!==void 0?Xn:""}),s.addCommand("ToggleView",(Xn,Br)=>{if(Yl.toggleView(gt,Br)){const or=gt.element;Be.mothership.broadcastOn([K0()],{target:or}),q(qe,Mr=>{Mr.broadcastOn([K0()],{target:or})}),O(Yl.whichView(gt))&&(s.focus(),s.nodeChanged(),Yl.refreshToolbar(gt))}}),s.addQueryValueHandler("ToggleView",()=>{var Xn;return(Xn=Yl.whichView(gt))!==null&&Xn!==void 0?Xn:""});const yn=Dw(s),wn=()=>{Yl.refreshToolbar(F.mainUi.outerContainer)};(yn===Hm.sliding||yn===Hm.floating)&&s.on("ResizeWindow ResizeEditor ResizeContent",()=>{const Xn=s.getWin().innerWidth;Xn!==ft.get()&&(wn(),ft.set(Xn))});const Mn={setEnabled:Xn=>{q5(F,!Xn)},isEnabled:()=>!ea.isDisabled(gt)};return{iframeContainer:on.element.dom,editorContainer:gt.element.dom,api:Mn}}});const ZU=s=>/^[0-9\.]+(|px)$/i.test(""+s)?I.some(parseInt(""+s,10)):I.none(),M4=s=>h(s)?s+"px":s,Q8=(s,F,Z)=>{const ue=F.filter(Be=>ss>Be);return ue.or(we).getOr(s)},H8=s=>{const F=WE(s),Z=M6(s),ue=YE(s);return ZU(F).map(we=>Q8(we,Z,ue))},Z8=s=>H8(s).getOr(WE(s)),NR=s=>{const F=Iw(s),Z=Z3(s),ue=k5(s);return ZU(F).map(we=>Q8(we,Z,ue))},yne=s=>NR(s).getOr(Iw(s)),{ToolbarLocation:$R,ToolbarMode:qU}=QW,bne=40,xne=(s,F,Z,ue,we)=>{const{mainUi:Be,uiMotherships:qe}=Z,ft=Lw.DOM,gt=q3(s),At=W3(s),$t=k5(s).or(NR(s)),on=ue.shared.header,yn=on.isPositionedAtTop,wn=150,Mn=Dw(s),Xn=Mn===qU.sliding||Mn===qU.floating,Br=xi(!1),or=()=>Br.get()&&!s.removed,Mr=Ha=>Xn?Ha.fold(x(0),Ho=>Ho.components().length>1?Ql(Ho.components()[1].element):0):0,kr=Ha=>{switch(GE(s)){case $R.auto:const Ho=Yl.getToolbar(Be.outerContainer),wi=Mr(Ho),_a=Ql(Ha.element)-wi,Ki=Ya(F);if(Ki.y>_a)return"top";{const ga=Pn(F),kl=Math.max(ga.dom.scrollHeight,Ql(ga));return Ki.bottom{we.on(Ho=>{Dl.setModes(Ho,[Ha]),on.setDockingMode(Ha);const wi=yn()?Og.TopToBottom:Og.BottomToTop;fr(Ho.element,s0,wi)})},Xr=()=>{we.on(Ha=>{const Ho=$t.getOrThunk(()=>yh().width-Cu(F).left-10);ko(Ha.element,"max-width",Ho+"px")})},No=(Ha,Ho)=>{we.on(wi=>{const _a=Yl.getToolbar(Be.outerContainer),Ki=Mr(_a),ji=Ya(F),ga=Jo(s,Be.outerContainer.element),kl=()=>ga.fold(()=>ji.x,dh=>{const zg=Ya(dh);return so(dh,Vr())?ji.x:ji.x-zg.x}),Ns=()=>ga.fold(()=>yn()?Math.max(ji.y-Ql(wi.element)+Ki,0):ji.bottom,dh=>{var zg;const w0=Ya(dh),im=(zg=dh.dom.scrollTop)!==null&&zg!==void 0?zg:0,mO=so(dh,Vr())?Math.max(ji.y-Ql(wi.element)+Ki,0):ji.y-w0.y+im-Ql(wi.element)+Ki;return yn()?mO:ji.bottom}),zh=kl(),Bg=_t(Ha,Math.ceil(Be.outerContainer.element.dom.getBoundingClientRect().width)).filter(dh=>dh>wn).map(dh=>{const zg=Ho.getOr(Hl()),w0=window.innerWidth-(zh-zg.left),im=Math.max(Math.min(dh,w0),wn);return w0C2(Ha)?n0(Ho):I.none(),ho=()=>{q(qe,Ha=>{Ha.broadcastOn([jb()],{})})},Ci=()=>!gt&&(pc(Be.outerContainer.element).left+hu(Be.outerContainer.element)>=window.innerWidth-bne||Na(Be.outerContainer.element,"width").isSome())?(ko(Be.outerContainer.element,"position","absolute"),ko(Be.outerContainer.element,"left","0px"),ma(Be.outerContainer.element,"width"),!0):!1,mi=Ha=>{if(!or())return;gt||Xr();const Ho=Hl(),wi=gt?!1:Ci();if(Xn&&Yl.refreshToolbar(Be.outerContainer),!gt){const _a=Hl(),Ki=_t(Ho.left!==_a.left,Ho);No(wi,Ki),Ki.each(ji=>{Ts(ji.left,_a.top)})}At&&we.on(Ha),ho()},qi=()=>gt||!At||!or()?!1:we.get().exists(Ha=>{const Ho=on.getDockingMode(),wi=kr(Ha);return wi!==Ho?(yo(wi),!0):!1});return{isVisible:or,isPositionedAtTop:yn,show:()=>{Br.set(!0),ko(Be.outerContainer.element,"display","flex"),ft.addClass(s.getBody(),"mce-edit-focus"),q(qe,Ha=>{ma(Ha.element,"display")}),qi(),C2(s)?mi(Ha=>Dl.isDocked(Ha)?Dl.reset(Ha):Dl.refresh(Ha)):mi(Dl.refresh)},hide:()=>{Br.set(!1),ko(Be.outerContainer.element,"display","none"),ft.removeClass(s.getBody(),"mce-edit-focus"),q(qe,Ha=>{ko(Ha.element,"display","none")})},update:mi,updateMode:()=>{qi()&&mi(Dl.reset)},repositionPopups:ho}},Lk=(s,F)=>{const Z=Ya(s);return{pos:F?Z.y:Z.bottom,bounds:Z}},WU=(s,F,Z,ue)=>{const we=xi(Lk(F,Z.isPositionedAtTop())),Be=At=>{const{pos:$t,bounds:on}=Lk(F,Z.isPositionedAtTop()),{pos:yn,bounds:wn}=we.get(),Mn=on.height!==wn.height||on.width!==wn.width;we.set({pos:$t,bounds:on}),Mn&&e4(s,At),Z.isVisible()&&(yn!==$t?Z.update(Dl.reset):Mn&&(Z.updateMode(),Z.repositionPopups()))};ue||(s.on("activate",Z.show),s.on("deactivate",Z.hide)),s.on("SkinLoaded ResizeWindow",()=>Z.update(Dl.reset)),s.on("NodeChange keydown",At=>{requestAnimationFrame(()=>Be(At))});let qe=0;const ft=fk(()=>Z.update(Dl.refresh),33);s.on("ScrollWindow",()=>{const At=Hl().left;At!==qe&&(qe=At,ft.throttle()),Z.updateMode()}),C2(s)&&s.on("ElementScroll",At=>{Z.update(Dl.refresh)});const gt=js();gt.set(Kx(Pt.fromDom(s.getBody()),"load",At=>Be(At.raw))),s.on("remove",()=>{gt.clear()})};var YU=Object.freeze({__proto__:null,render:(s,F,Z,ue,we)=>{const{mainUi:Be}=F,qe=os(),ft=Pt.fromDom(we.targetNode),gt=xne(s,ft,F,ue,qe),At=oz(s);Cte(s);const $t=()=>{if(qe.isSet()){gt.show();return}qe.set(Yl.getHeader(Be.outerContainer).getOrDie());const yn=C5(s);C2(s)?(G0(ft,Be.mothership),G0(ft,F.popupUi.mothership)):ZT(yn,Be.mothership),ZT(yn,F.dialogUi.mothership);const wn=()=>{jU(s,F,Z,ue),Yl.setMenubar(Be.outerContainer,$8(s,Z)),gt.show(),WU(s,ft,gt,At),s.nodeChanged()};At?s.once("SkinLoaded",wn):wn()};s.on("show",$t),s.on("hide",gt.hide),At||(s.on("focus",$t),s.on("blur",gt.hide)),s.on("init",()=>{(s.hasFocus()||At)&&$t()}),pC(s,F);const on={show:$t,hide:gt.hide,setEnabled:yn=>{q5(F,!yn)},isEnabled:()=>!ea.isDisabled(Be.outerContainer)};return{editorContainer:Be.outerContainer.element.dom,api:on}}});const XU=()=>{const s=os(),F=os(),Z=os();return{dialogUi:s,popupUi:F,mainUi:Z,getUiMotherships:()=>{const Be=s.get().map(ft=>ft.mothership),qe=F.get().map(ft=>ft.mothership);return Be.fold(()=>qe.toArray(),ft=>qe.fold(()=>[ft],gt=>so(ft.element,gt.element)?[ft]:[ft,gt]))},lazyGetInOuterOrDie:(Be,qe)=>()=>Z.get().bind(ft=>qe(ft.outerContainer)).getOrDie(`Could not find ${Be} element in OuterContainer`)}},wne="contexttoolbar-show",VR="contexttoolbar-hide",One=s=>({hide:()=>Sa(s,L0()),getValue:()=>hi.getValue(s)}),GU=(s,F)=>fo(e8,(Z,ue)=>{const we=s.get(Z),Be=One(we);F.onAction(Be,ue.event.buttonApi)}),Sne=(s,F,Z)=>{const{primary:ue,...we}=F.original,Be=Nt(i1({...we,type:"button",onAction:v}));return FU(Be,Z,[GU(s,F)])},kne=(s,F,Z)=>{const{primary:ue,...we}=F.original,Be=Nt(cC({...we,type:"togglebutton",onAction:v}));return NU(Be,Z,[GU(s,F)])},Tne=s=>s.type==="contextformtogglebutton",Ik=(s,F,Z)=>Tne(F)?kne(s,F,Z):Sne(s,F,Z),Cne=(s,F,Z)=>{const ue=oe(F,qe=>qs(Ik(s,qe,Z)));return{asSpecs:()=>oe(ue,qe=>qe.asSpec()),findPrimary:qe=>Oe(F,(ft,gt)=>ft.primary?I.from(ue[gt]).bind(At=>At.getOpt(qe)).filter(E(ea.isDisabled)):I.none())}},KU=(s,F)=>{const Z=s.label.fold(()=>({}),Be=>({"aria-label":Be})),ue=qs(Nw.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:s.initValue(),inputAttributes:Z,selectOnFocus:!0,inputBehaviours:Do([Li.config({mode:"special",onEnter:Be=>we.findPrimary(Be).map(qe=>(Fp(qe),!0)),onLeft:(Be,qe)=>(qe.cut(),I.none()),onRight:(Be,qe)=>(qe.cut(),I.none())})])})),we=Cne(ue,s.commands,F);return[{title:I.none(),items:[ue.asSpec()]},{title:I.none(),items:we.asSpecs()}]},JU={renderContextForm:(s,F,Z)=>B8({type:s,uid:fi("context-toolbar"),initGroups:KU(F,Z),onEscape:I.none,cyclicKeying:!0,providers:Z}),buildInitGroups:KU},ej=(s,F,Z)=>F.bottom-s.y>=Z&&s.bottom-F.y>=Z,tj=s=>{const F=s.getBoundingClientRect();if(F.height<=0&&F.width<=0){const Z=zn(Pt.fromDom(s.startContainer),s.startOffset).element;return(_r(Z)?br(Z):I.some(Z)).filter(Kn).map(we=>we.dom.getBoundingClientRect()).getOr(F)}else return F},UR=s=>{const F=s.selection.getRng(),Z=tj(F);if(s.inline){const ue=Hl();return ms(ue.left+Z.left,ue.top+Z.top,Z.width,Z.height)}else{const ue=bl(Pt.fromDom(s.getBody()));return ms(ue.x+Z.left,ue.y+Z.top,Z.width,Z.height)}},Ane=(s,F)=>F.filter(Z=>Er(Z)&&Wn(Z)).map(bl).getOrThunk(()=>UR(s)),Mne=(s,F,Z)=>{const ue=Math.max(s.x+Z,F.x),we=Math.min(s.right-Z,F.right);return{x:ue,width:we-ue}},Ene=(s,F,Z,ue,we,Be)=>{const qe=Pt.fromDom(s.getContainer()),ft=aa(qe,".tox-editor-header").getOr(qe),gt=Ya(ft),At=gt.y>=F.bottom,$t=ue&&!At;if(s.inline&&$t)return{y:Math.max(gt.bottom+Be,Z.y),bottom:Z.bottom};if(s.inline&&!$t)return{y:Z.y,bottom:Math.min(gt.y-Be,Z.bottom)};const on=we==="line"?Ya(qe):F;return $t?{y:Math.max(gt.bottom+Be,Z.y),bottom:Math.min(on.bottom-Be,Z.bottom)}:{y:Math.max(on.y+Be,Z.y),bottom:Math.min(gt.y-Be,Z.bottom)}},nj=(s,F,Z,ue=0)=>{const we=yh(window),Be=Ya(Pt.fromDom(s.getContentAreaContainer())),qe=B6(s)||F6(s)||Bw(s),{x:ft,width:gt}=Mne(Be,we,ue);if(s.inline&&!qe)return ms(ft,we.y,gt,we.height);{const At=F.header.isPositionedAtTop(),{y:$t,bottom:on}=Ene(s,Be,we,At,Z,ue);return ms(ft,$t,gt,on-$t)}},V2=12,jR={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},rj={maxHeightFunction:W0(),maxWidthFunction:lR()},Pne=(s,F)=>{const Z=s.selection.getRng(),ue=zn(Pt.fromDom(Z.startContainer),Z.startOffset);return Z.startContainer===Z.endContainer&&Z.startOffset===Z.endOffset-1&&so(ue.element,F)},oj=(s,F,Z)=>{const ue=Na(s,"position");ko(s,"position",F);const we=Z(s);return ue.each(Be=>ko(s,"position",Be)),we},q8=s=>s==="node",ij=(s,F,Z,ue,we)=>{const Be=UR(s),qe=ue.lastElement().exists(ft=>so(Z,ft));if(Pne(s,Z))return qe?L9:f1;if(qe)return oj(F,ue.getMode(),()=>ej(Be,Ya(F),-20)&&!ue.isReposition()?DJ:L9);{const ft=ue.getMode()==="fixed"?we.y+Hl().top:we.y,gt=Ql(F)+V2;return ft+gt<=Be.y?f1:bk}},aj=(s,F,Z,ue)=>{const we=gt=>(At,$t,on,yn,wn)=>{const Mn=ij(s,yn,gt,Z,wn),Xn={...At,y:wn.y,height:wn.height};return{...Mn(Xn,$t,on,yn,wn),alwaysFit:!0}},Be=gt=>q8(ue)?[we(gt)]:[];return F?{onLtr:gt=>[Pc,Ec,Qc,Hc,_s,Jc].concat(Be(gt)),onRtl:gt=>[Pc,Qc,Ec,_s,Hc,Jc].concat(Be(gt))}:{onLtr:gt=>[Jc,Pc,Hc,Ec,_s,Qc].concat(Be(gt)),onRtl:gt=>[Jc,Pc,_s,Qc,Hc,Ec].concat(Be(gt))}},Rne=(s,F,Z,ue)=>F==="line"?{bubble:pp(V2,0,jR),layouts:{onLtr:()=>[Z1],onRtl:()=>[uy]},overrides:rj}:{bubble:pp(0,V2,jR,1/V2),layouts:aj(s,Z,ue,F),overrides:rj},U2=(s,F)=>{const Z=me(F,Be=>Be.predicate(s.dom)),{pass:ue,fail:we}=ee(Z,Be=>Be.type==="contexttoolbar");return{contextToolbars:ue,contextForms:we}},W8=s=>{if(s.length<=1)return s;{const F=Be=>te(s,qe=>qe.position===Be),Z=Be=>me(s,qe=>qe.position===Be),ue=F("selection"),we=F("node");if(ue||we)if(we&&ue){const Be=Z("node"),qe=oe(Z("selection"),ft=>({...ft,position:"node"}));return Be.concat(qe)}else return Z(ue?"selection":"node");else return Z("line")}},Y8=s=>{if(s.length<=1)return s;{const F=ue=>ce(s,we=>we.position===ue);return F("selection").orThunk(()=>F("node")).orThunk(()=>F("line")).map(ue=>ue.position).fold(()=>[],ue=>me(s,we=>we.position===ue))}},QR=(s,F,Z)=>{const ue=U2(s,F);if(ue.contextForms.length>0)return I.some({elem:s,toolbars:[ue.contextForms[0]]});{const we=U2(s,Z);if(we.contextForms.length>0)return I.some({elem:s,toolbars:[we.contextForms[0]]});if(ue.contextToolbars.length>0||we.contextToolbars.length>0){const Be=W8(ue.contextToolbars.concat(we.contextToolbars));return I.some({elem:s,toolbars:Be})}else return I.none()}},HR=(s,F,Z)=>s(F)?I.none():lg(F,ue=>{if(Kn(ue)){const{contextToolbars:we,contextForms:Be}=U2(ue,Z.inNodeScope),qe=Be.length>0?Be:Y8(we);return qe.length>0?I.some({elem:ue,toolbars:qe}):I.none()}else return I.none()},s),sj=(s,F)=>{const Z=Pt.fromDom(F.getBody()),ue=qe=>so(qe,Z),we=qe=>!ue(qe)&&!So(Z,qe),Be=Pt.fromDom(F.selection.getNode());return we(Be)?I.none():QR(Be,s.inNodeScope,s.inEditorScope).orThunk(()=>HR(ue,Be,s))},X8=(s,F)=>{const Z={},ue=[],we=[],Be={},qe={},ft=($t,on)=>{const yn=Nt(DY(on));Z[$t]=yn,yn.launch.map(wn=>{Be["form:"+$t]={...on.launch,type:wn.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{F(yn)}}}),yn.scope==="editor"?we.push(yn):ue.push(yn),qe[$t]=yn},gt=($t,on)=>{h0(on).each(yn=>{on.scope==="editor"?we.push(yn):ue.push(yn),qe[$t]=yn})},At=ke(s);return q(At,$t=>{const on=s[$t];on.type==="contextform"?ft($t,on):on.type==="contexttoolbar"&>($t,on)}),{forms:Z,inNodeScope:ue,inEditorScope:we,lookupTable:qe,formNavigators:Be}},ZR=fi("forward-slide"),qR=fi("backward-slide"),Dk=fi("change-slide-event"),WR="tox-pop--resizing",lj=s=>{const F=xi([]);return hc.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:Z=>{F.set([]),hc.getContent(Z).each(ue=>{ma(ue.element,"visibility")}),fc(Z.element,WR),ma(Z.element,"width")},inlineBehaviours:Do([Ta("context-toolbar-events",[Wv(sp(),(Z,ue)=>{ue.event.raw.propertyName==="width"&&(fc(Z.element,WR),ma(Z.element,"width"))}),fo(Dk,(Z,ue)=>{const we=Z.element;ma(we,"width");const Be=cc(we);hc.setContent(Z,ue.event.contents),wl(we,WR);const qe=cc(we);ko(we,"width",Be+"px"),hc.getContent(Z).each(ft=>{ue.event.focus.bind(gt=>(bd(gt),xd(we))).orThunk(()=>(Li.focusIn(ft),hp(vr(we))))}),setTimeout(()=>{ko(Z.element,"width",qe+"px")},0)}),fo(ZR,(Z,ue)=>{hc.getContent(Z).each(we=>{F.set(F.get().concat([{bar:we,focus:hp(vr(Z.element))}]))}),Ri(Z,Dk,{contents:ue.event.forwardContents,focus:I.none()})}),fo(qR,(Z,ue)=>{Ve(F.get()).each(we=>{F.set(F.get().slice(0,F.get().length-1)),Ri(Z,Dk,{contents:na(we.bar),focus:we.focus})})})]),Li.config({mode:"special",onEscape:Z=>Ve(F.get()).fold(()=>s.onEscape(),ue=>(Sa(Z,qR),I.some(!0)))})]),lazySink:()=>Hi.value(s.sink)})},YR="tox-pop--transition",Lne=(s,F,Z,ue)=>{const we=ue.backstage,Be=we.shared,qe=rf().deviceType.isTouch,ft=os(),gt=os(),At=os(),$t=vi(lj({sink:Z,onEscape:()=>(s.focus(),I.some(!0))})),on=()=>{const mi=At.get().getOr("node"),qi=q8(mi)?1:0;return nj(s,Be,mi,qi)},yn=()=>!s.removed&&!(qe()&&we.isContextMenuOpen()),wn=mi=>wt(en(mi,ft.get(),so),!0),Mn=()=>{if(yn()){const mi=on(),qi=wt(At.get(),"node")?Ane(s,ft.get()):UR(s);return mi.height<=0||!ej(qi,mi,.01)}else return!0},Xn=()=>{ft.clear(),gt.clear(),At.clear(),hc.hide($t)},Br=()=>{if(hc.isOpen($t)){const mi=$t.element;ma(mi,"display"),Mn()?ko(mi,"display","none"):(gt.set(0),hc.reposition($t))}},or=mi=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[mi],behaviours:Do([Li.config({mode:"acyclic"}),Ta("pop-dialog-wrap-events",[Ll(qi=>{s.shortcuts.add("ctrl+F9","focus statusbar",()=>Li.focusIn(qi))}),Sh(qi=>{s.shortcuts.remove("ctrl+F9")})])])}),Mr=iu(()=>X8(F,mi=>{const qi=Xr([mi]);Ri($t,ZR,{forwardContents:or(qi)})})),kr=(mi,qi)=>j8(s,{buttons:mi,toolbar:qi.items,allowToolbarGroups:!1},ue.backstage,I.some(["form:"])),yo=(mi,qi)=>JU.buildInitGroups(mi,qi),Xr=mi=>{const{buttons:qi}=s.ui.registry.getAll(),Fi=Mr(),Os={...qi,...Fi.formNavigators},vs=Dw(s)===Hm.scrolling?Hm.scrolling:Hm.default,Ha=ve(oe(mi,Ho=>Ho.type==="contexttoolbar"?kr(Os,Ho):yo(Ho,Be.providers)));return B8({type:vs,uid:fi("context-toolbar"),initGroups:Ha,onEscape:I.none,cyclicKeying:!0,providers:Be.providers})},No=(mi,qi)=>{const Fi=mi==="node"?Be.anchors.node(qi):Be.anchors.cursor(),Os=Rne(s,mi,qe(),{lastElement:ft.get,isReposition:()=>wt(gt.get(),0),getMode:()=>ed.getMode(Z)});return nl(Fi,Os)},Jo=(mi,qi)=>{if(Ci.cancel(),!yn())return;const Fi=Xr(mi),Os=mi[0].position,vs=No(Os,qi);At.set(Os),gt.set(1);const Ha=$t.element;ma(Ha,"display"),wn(qi)||(fc(Ha,YR),ed.reset(Z,$t)),hc.showWithinBounds($t,or(Fi),{anchor:vs,transition:{classes:[YR],mode:"placement"}},()=>I.some(on())),qi.fold(ft.clear,ft.set),Mn()&&ko(Ha,"display","none")};let ho=!1;const Ci=fk(()=>{if(!(!s.hasFocus()||s.removed||ho))if($l($t.element,YR))Ci.throttle();else{const mi=Mr();sj(mi,s).fold(Xn,qi=>{Jo(qi.toolbars,I.some(qi.elem))})}},17);s.on("init",()=>{s.on("remove",Xn),s.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",Br),s.on("click keyup focus SetContent",Ci.throttle),s.on(VR,Xn),s.on(wne,mi=>{const qi=Mr();Ge(qi.lookupTable,mi.toolbarKey).each(Fi=>{Jo([Fi],_t(mi.target!==s,mi.target)),hc.getContent($t).each(Li.focusIn)})}),s.on("focusout",mi=>{O5.setEditorTimeout(s,()=>{xd(Z.element).isNone()&&xd($t.element).isNone()&&Xn()},0)}),s.on("SwitchMode",()=>{s.mode.isReadOnly()&&Xn()}),s.on("ExecCommand",({command:mi})=>{mi.toLowerCase()==="toggleview"&&Xn()}),s.on("AfterProgressState",mi=>{mi.state?Xn():s.hasFocus()&&Ci.throttle()}),s.on("dragstart",()=>{ho=!0}),s.on("dragend drop",()=>{ho=!1}),s.on("NodeChange",mi=>{xd($t.element).fold(Ci.throttle,v)})})},G8=s=>{q([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],Z=>{s.ui.registry.addToggleButton(Z.name,{tooltip:Z.text,icon:Z.icon,onAction:Wm(s,Z.cmd),onSetup:wC(s,Z.name)})}),s.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:Gh(s),onAction:Wm(s,"JustifyNone")})},XR=(s,F)=>{const Z=()=>{const ue=F.getOptions(s),we=F.getCurrent(s).map(F.hash),Be=os();return oe(ue,qe=>({type:"togglemenuitem",text:F.display(qe),onSetup:ft=>{const gt=$t=>{$t&&(Be.on(on=>on.setActive(!1)),Be.set(ft)),ft.setActive($t)};gt(wt(we,F.hash(qe)));const At=F.watcher(s,qe,gt);return()=>{Be.clear(),At()}},onAction:()=>F.setCurrent(s,qe)}))};s.ui.registry.addMenuButton(F.name,{tooltip:F.text,icon:F.icon,fetch:ue=>ue(Z()),onSetup:F.onToolbarSetup}),s.ui.registry.addNestedMenuItem(F.name,{type:"nestedmenuitem",text:F.text,getSubmenuItems:Z,onSetup:F.onMenuSetup})},Ine=s=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:i7,hash:F=>Vte(F,["fixed","relative","empty"]).getOr(F),display:R,watcher:(F,Z,ue)=>F.formatter.formatChanged("lineheight",ue,!1,{value:Z}).unbind,getCurrent:F=>I.from(F.queryCommandValue("LineHeight")),setCurrent:(F,Z)=>F.execCommand("LineHeight",!1,Z),onToolbarSetup:Gh(s),onMenuSetup:Gh(s)}),Dne=s=>I.from(E6(s)).map(Z=>({name:"language",text:"Language",icon:"language",getOptions:x(Z),hash:ue=>y(ue.customCode)?ue.code:`${ue.code}/${ue.customCode}`,display:ue=>ue.title,watcher:(ue,we,Be)=>{var qe;return ue.formatter.formatChanged("lang",Be,!1,{value:we.code,customValue:(qe=we.customCode)!==null&&qe!==void 0?qe:null}).unbind},getCurrent:ue=>{const we=Pt.fromDom(ue.selection.getNode());return E0(we,Be=>I.some(Be).filter(Kn).bind(qe=>co(qe,"lang").map(gt=>{const At=co(qe,"data-mce-lang").getOrUndefined();return{code:gt,customCode:At,title:""}})))},setCurrent:(ue,we)=>ue.execCommand("Lang",!1,we),onToolbarSetup:ue=>{const we=js();return ue.setActive(s.formatter.match("lang",{},void 0,!0)),we.set(s.formatter.formatChanged("lang",ue.setActive,!0)),t4(we.clear,Gh(s)(ue))},onMenuSetup:Gh(s)})),Bne=s=>{XR(s,Ine(s)),Dne(s).each(F=>XR(s,F))},zne=(s,F)=>{kU(s,F),zte(s,F),ene(s,F),Lte(s,F),Kte(s,F)},Fne=s=>Zw(s,"NodeChange",F=>{F.setEnabled(s.queryCommandState("outdent")&&s.selection.isEditable())}),cj=s=>{s.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:Fne(s),onAction:Wm(s,"outdent")}),s.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:Gh(s),onAction:Wm(s,"indent")})},uj=s=>{cj(s)},GR=(s,F)=>Z=>{Z.setActive(F.get());const ue=we=>{F.set(we.state),Z.setActive(we.state)};return s.on("PastePlainTextToggle",ue),t4(()=>s.off("PastePlainTextToggle",ue),Gh(s)(Z))},fj=s=>{const F=xi(D6(s)),Z=()=>s.execCommand("mceTogglePlainTextPaste");s.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:Z,onSetup:GR(s,F)}),s.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:Z,onSetup:GR(s,F)})},KR=(s,F)=>()=>{s.execCommand("mceToggleFormat",!1,F)},dj=s=>{ox.each([{name:"bold",text:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(F,Z)=>{s.ui.registry.addToggleButton(F.name,{tooltip:F.text,icon:F.icon,onSetup:wC(s,F.name),onAction:KR(s,F.name),shortcut:F.shortcut})});for(let F=1;F<=6;F++){const Z="h"+F,ue=`Access+${F}`;s.ui.registry.addToggleButton(Z,{text:Z.toUpperCase(),tooltip:"Heading "+F,onSetup:wC(s,Z),onAction:KR(s,Z),shortcut:ue})}},hj=s=>{ox.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help",shortcut:"Alt+0"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],F=>{s.ui.registry.addButton(F.name,{tooltip:F.text,icon:F.icon,onAction:Wm(s,F.action),shortcut:F.shortcut})}),ox.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],F=>{s.ui.registry.addButton(F.name,{tooltip:F.text,icon:F.icon,onSetup:Gh(s),onAction:Wm(s,F.action)})})},Nne=s=>{ox.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],F=>{s.ui.registry.addToggleButton(F.name,{tooltip:F.text,icon:F.icon,onAction:Wm(s,F.action),onSetup:wC(s,F.name)})})},Afe=s=>{dj(s),hj(s),Nne(s)},$ne=s=>{ox.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],F=>{s.ui.registry.addMenuItem(F.name,{text:F.text,icon:F.icon,shortcut:F.shortcut,onAction:Wm(s,F.action)})}),ox.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],F=>{s.ui.registry.addMenuItem(F.name,{text:F.text,icon:F.icon,shortcut:F.shortcut,onSetup:Gh(s),onAction:Wm(s,F.action)})}),s.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:Gh(s),onAction:KR(s,"code")})},Vne=s=>{Afe(s),$ne(s)},K8=(s,F)=>Zw(s,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",Z=>{Z.setEnabled(!s.mode.isReadOnly()&&s.undoManager[F]())}),Une=s=>{s.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:K8(s,"hasUndo"),onAction:Wm(s,"undo")}),s.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:K8(s,"hasRedo"),onAction:Wm(s,"redo")})},jne=s=>{s.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:K8(s,"hasUndo"),onAction:Wm(s,"undo"),shortcut:"Meta+Z"}),s.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:K8(s,"hasRedo"),onAction:Wm(s,"redo"),shortcut:"Meta+Y"})},Qne=s=>{Une(s),jne(s)},Hne=s=>Zw(s,"VisualAid",F=>{F.setActive(s.hasVisual)}),Zne=s=>{s.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:Hne(s),onAction:Wm(s,"mceToggleVisualAid")})},qne=s=>{s.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:Wm(s,"mceToggleVisualAid")})},Wne=s=>{qne(s),Zne(s)},Yne=(s,F)=>{G8(s),Vne(s),zne(s,F),Qne(s),xX(s),Wne(s),uj(s),Bne(s),fj(s)},Xne=s=>n(s)?s.split(/[ ,]/):s,pj=s=>F=>F.options.get(s),mj=s=>{const F=s.options.register;F("contextmenu_avoid_overlap",{processor:"string",default:""}),F("contextmenu_never_use_native",{processor:"boolean",default:!1}),F("contextmenu",{processor:Z=>Z===!1?{value:[],valid:!0}:n(Z)||m(Z,n)?{value:Xne(Z),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},gj=pj("contextmenu_never_use_native"),Gne=pj("contextmenu_avoid_overlap"),Kne=s=>vj(s).length===0,vj=s=>{const F=s.ui.registry.getAll().contextMenus,Z=s.options.get("contextmenu");return s.options.isSet("contextmenu")?Z:me(Z,ue=>ht(F,ue))},Bk=(s,F)=>({type:"makeshift",x:s,y:F}),Jne=(s,F,Z)=>Bk(s.x+F,s.y+Z),yj=s=>s.type==="longpress"||s.type.indexOf("touch")===0,ere=s=>{if(yj(s)){const F=s.touches[0];return Bk(F.pageX,F.pageY)}else return Bk(s.pageX,s.pageY)},tre=s=>{if(yj(s)){const F=s.touches[0];return Bk(F.clientX,F.clientY)}else return Bk(s.clientX,s.clientY)},JR=(s,F)=>{const Z=Lw.DOM.getPos(s);return Jne(F,Z.x,Z.y)},nre=(s,F)=>F.type==="contextmenu"||F.type==="longpress"?s.inline?ere(F):JR(s.getContentAreaContainer(),tre(F)):bj(s),bj=s=>({type:"selection",root:Pt.fromDom(s.selection.getNode())}),eL=s=>({type:"node",node:I.some(Pt.fromDom(s.selection.getNode())),root:Pt.fromDom(s.getBody())}),tL=(s,F,Z)=>{switch(Z){case"node":return eL(s);case"point":return nre(s,F);case"selection":return bj(s)}},xj=(s,F,Z,ue,we,Be)=>{const qe=Z(),ft=tL(s,F,Be);v4(qe,r1.CLOSE_ON_EXECUTE,ue,{isHorizontalMenu:!1,search:I.none()}).map(gt=>{F.preventDefault(),hc.showMenuAt(we,{anchor:ft},{menu:{markers:M2("normal")},data:gt})})},rre={onLtr:()=>[Pc,Ec,Qc,Hc,_s,Jc,f1,bk,yk,m8,vk,p8],onRtl:()=>[Pc,Qc,Ec,_s,Hc,Jc,f1,bk,vk,p8,yk,m8]},ore=12,ire={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},are=(s,F)=>{const Z=s.selection;if(Z.isCollapsed()||F.touches.length<1)return!1;{const ue=F.touches[0],we=Z.getRng();return Af(s.getWin(),c2.domRange(we)).exists(qe=>qe.left<=ue.clientX&&qe.right>=ue.clientX&&qe.top<=ue.clientY&&qe.bottom>=ue.clientY)}},sre=s=>{const F=s.selection.getRng(),Z=()=>{O5.setEditorTimeout(s,()=>{s.selection.setRng(F)},10),Be()};s.once("touchend",Z);const ue=qe=>{qe.preventDefault(),qe.stopImmediatePropagation()};s.on("mousedown",ue,!0);const we=()=>Be();s.once("longpresscancel",we);const Be=()=>{s.off("touchend",Z),s.off("longpresscancel",we),s.off("mousedown",ue)}},nL=(s,F,Z)=>{const ue=tL(s,F,Z);return{bubble:pp(0,Z==="point"?ore:0,ire),layouts:rre,overrides:{maxWidthFunction:lR(),maxHeightFunction:W0()},...ue}},lre=(s,F,Z,ue,we,Be,qe)=>{const ft=nL(s,F,Be);v4(Z,r1.CLOSE_ON_EXECUTE,ue,{isHorizontalMenu:!0,search:I.none()}).map(gt=>{F.preventDefault();const At=qe?Xh.HighlightMenuAndItem:Xh.HighlightNone;hc.showMenuWithinBounds(we,{anchor:ft},{menu:{markers:M2("normal"),highlightOnOpen:At},data:gt,type:"horizontal"},()=>I.some(nj(s,ue.shared,Be==="node"?"node":"selection"))),s.dispatch(VR)})},_j=(s,F,Z,ue,we,Be)=>{const qe=rf(),ft=qe.os.isiOS(),gt=qe.os.isMacOS(),At=qe.os.isAndroid(),$t=qe.deviceType.isTouch(),on=()=>!(At||ft||gt&&$t),yn=()=>{const wn=Z();lre(s,F,wn,ue,we,Be,on())};if((gt||ft)&&Be!=="node"){const wn=()=>{sre(s),yn()};are(s,F)?wn():(s.once("selectionchange",wn),s.once("touchend",()=>s.off("selectionchange",wn)))}else yn()},wj=s=>n(s)?s==="|":s.type==="separator",rL={type:"separator"},J8=s=>{const F=Z=>({text:Z.text,icon:Z.icon,enabled:Z.enabled,shortcut:Z.shortcut});if(n(s))return s;switch(s.type){case"separator":return rL;case"submenu":return{type:"nestedmenuitem",...F(s),getSubmenuItems:()=>{const ue=s.getSubmenuItems();return n(ue)?ue:oe(ue,J8)}};default:const Z=s;return{type:"menuitem",...F(Z),onAction:_(Z.onAction)}}},Oj=(s,F)=>{if(F.length===0)return s;const ue=Ve(s).filter(we=>!wj(we)).fold(()=>[],we=>[rL]);return s.concat(ue).concat(F).concat([rL])},Sj=(s,F,Z)=>{const ue=se(F,(we,Be)=>Ge(s,Be.toLowerCase()).map(qe=>{const ft=qe.update(Z);if(n(ft)&&it(Rt(ft)))return Oj(we,ft.split(" "));if(i(ft)&&ft.length>0){const gt=oe(ft,J8);return Oj(we,gt)}else return we}).getOrThunk(()=>we.concat([Be])),[]);return ue.length>0&&wj(ue[ue.length-1])&&ue.pop(),ue},cre=(s,F)=>F.ctrlKey&&!gj(s),ure=s=>s.type==="longpress"||ht(s,"touches"),eA=(s,F)=>!ure(F)&&(F.button!==2||F.target===s.getBody()&&F.pointerType===""),kj=(s,F)=>eA(s,F)?s.selection.getStart(!0):F.target,fre=(s,F)=>{const Z=Gne(s),ue=eA(s,F)?"selection":"point";if(it(Z)){const we=kj(s,F);return J5(Pt.fromDom(we),Z)?"node":ue}else return ue},dre=(s,F,Z)=>{const we=rf().deviceType.isTouch,Be=vi(hc.sketch({dom:{tag:"div"},lazySink:F,onEscape:()=>s.focus(),onShow:()=>Z.setContextMenuState(!0),onHide:()=>Z.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:Do([Ta("dismissContextMenu",[fo(I0(),(gt,At)=>{hs.close(gt),s.focus()})])])})),qe=()=>hc.hide(Be),ft=gt=>{if(gj(s)&>.preventDefault(),cre(s,gt)||Kne(s))return;const At=fre(s,gt),$t=()=>{const yn=kj(s,gt),wn=s.ui.registry.getAll(),Mn=vj(s);return Sj(wn.contextMenus,Mn,yn)};(we()?_j:xj)(s,gt,$t,Z,Be,At)};s.on("init",()=>{const gt="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(we()?"":" ResizeWindow");s.on(gt,qe),s.on("longpress contextmenu",ft)})},oL=Ds.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),tA=s=>F=>F.translate(-s.left,-s.top),zk=s=>F=>F.translate(s.left,s.top),sx=s=>(F,Z)=>se(s,(ue,we)=>we(ue),Ws(F,Z)),nA=(s,F,Z)=>s.fold(sx([zk(Z),tA(F)]),sx([tA(F)]),sx([])),E4=(s,F,Z)=>s.fold(sx([zk(Z)]),sx([]),sx([zk(F)])),Tj=(s,F,Z)=>s.fold(sx([]),sx([tA(Z)]),sx([zk(F),tA(Z)])),hre=(s,F,Z,ue,we,Be)=>{const qe=E4(s,we,Be),ft=E4(F,we,Be);return Math.abs(qe.left-ft.left)<=Z&&Math.abs(qe.top-ft.top)<=ue},pre=(s,F,Z,ue,we,Be)=>{const qe=E4(s,we,Be),ft=E4(F,we,Be),gt=Math.abs(qe.left-ft.left),At=Math.abs(qe.top-ft.top);return Ws(gt,At)},Cj=(s,F,Z)=>{const ue=s.fold((we,Be)=>({position:I.some("absolute"),left:I.some(we+"px"),top:I.some(Be+"px")}),(we,Be)=>({position:I.some("absolute"),left:I.some(we-Z.left+"px"),top:I.some(Be-Z.top+"px")}),(we,Be)=>({position:I.some("fixed"),left:I.some(we+"px"),top:I.some(Be+"px")}));return{right:I.none(),bottom:I.none(),...ue}},mre=(s,F,Z)=>s.fold((ue,we)=>oA(ue+F,we+Z),(ue,we)=>lx(ue+F,we+Z),(ue,we)=>lO(ue+F,we+Z)),rA=(s,F,Z,ue)=>{const we=(Be,qe)=>(ft,gt)=>{const At=Be(F,Z,ue);return qe(ft.getOr(At.left),gt.getOr(At.top))};return s.fold(we(Tj,oA),we(E4,lx),we(nA,lO))},oA=oL.offset,lx=oL.absolute,lO=oL.fixed,Aj=(s,F)=>{const Z=ao(s,F);return y(Z)?NaN:parseInt(Z,10)},gre=(s,F)=>{const Z=s.element,ue=Aj(Z,F.leftAttr),we=Aj(Z,F.topAttr);return isNaN(ue)||isNaN(we)?I.none():I.some(Ws(ue,we))},cO=(s,F,Z)=>{const ue=s.element;fr(ue,F.leftAttr,Z.left+"px"),fr(ue,F.topAttr,Z.top+"px")},Mj=(s,F)=>{const Z=s.element;po(Z,F.leftAttr),po(Z,F.topAttr)},vre=(s,F,Z,ue)=>gre(s,F).fold(()=>Z,we=>lO(we.left+ue.left,we.top+ue.top)),yre=(s,F,Z,ue,we,Be)=>{const qe=vre(s,F,Z,ue),ft=F.mustSnap?Pj(s,F,qe,we,Be):xre(s,F,qe,we,Be),gt=nA(qe,we,Be);return cO(s,F,gt),ft.fold(()=>({coord:lO(gt.left,gt.top),extra:I.none()}),At=>({coord:At.output,extra:At.extra}))},bre=(s,F)=>{Mj(s,F)},Ej=(s,F,Z,ue)=>Oe(s,we=>{const Be=we.sensor;return hre(F,Be,we.range.left,we.range.top,Z,ue)?I.some({output:rA(we.output,F,Z,ue),extra:we.extra}):I.none()}),Pj=(s,F,Z,ue,we)=>{const Be=F.getSnapPoints(s);return Ej(Be,Z,ue,we).orThunk(()=>se(Be,(gt,At)=>{const $t=At.sensor,on=pre(Z,$t,At.range.left,At.range.top,ue,we);return gt.deltas.fold(()=>({deltas:I.some(on),snap:I.some(At)}),yn=>{const wn=(on.left+on.top)/2,Mn=(yn.left+yn.top)/2;return wn<=Mn?{deltas:I.some(on),snap:I.some(At)}:gt})},{deltas:I.none(),snap:I.none()}).snap.map(gt=>({output:rA(gt.output,Z,ue,we),extra:gt.extra})))},xre=(s,F,Z,ue,we)=>{const Be=F.getSnapPoints(s);return Ej(Be,Z,ue,we)},_re=(s,F,Z)=>({coord:rA(s.output,s.output,F,Z),extra:s.extra});var wre=Object.freeze({__proto__:null,snapTo:(s,F,Z,ue)=>{const we=F.getTarget(s.element);if(F.repositionTarget){const Be=go(s.element),qe=Hl(Be),ft=N_(we),gt=_re(ue,qe,ft),At=Cj(gt.coord,qe,ft);mo(we,At)}}});const iL="data-initial-z-index",Ore=s=>{br(s.element).filter(Kn).each(F=>{co(F,iL).fold(()=>ma(F,"z-index"),Z=>ko(F,"z-index",Z)),po(F,iL)})},Sre=s=>{br(s.element).filter(Kn).each(F=>{Na(F,"z-index").each(Z=>{fr(F,iL,Z)}),ko(F,"z-index",Aa(s.element,"z-index"))})},Rj=(s,F)=>{s.getSystem().addToGui(F),Sre(F)},kre=s=>{Ore(s),s.getSystem().removeFromGui(s)},Lj=(s,F,Z)=>s.getSystem().build(bv.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[F]},events:Z}));var Ij=Pi("snaps",[Sn("getSnapPoints"),Ra("onSensor"),Sn("leftAttr"),Sn("topAttr"),mr("lazyViewport",xl),mr("mustSnap",!1)]);const iA=[mr("useFixed",D),Sn("blockerClass"),mr("getTarget",R),mr("onDrag",v),mr("repositionTarget",!0),mr("onDrop",v),Pa("getBounds",xl),Ij],Tre=s=>Gt(Na(s,"left"),Na(s,"top"),Na(s,"position"),(F,Z,ue)=>(ue==="fixed"?lO:oA)(parseInt(F,10),parseInt(Z,10))).getOrThunk(()=>{const F=pc(s);return lx(F.left,F.top)}),Fk=(s,F,Z,ue,we)=>{const Be=we.bounds,qe=E4(F,Z,ue),ft=Mc(qe.left,Be.x,Be.x+Be.width-we.width),gt=Mc(qe.top,Be.y,Be.y+Be.height-we.height),At=lx(ft,gt);return F.fold(()=>{const $t=Tj(At,Z,ue);return oA($t.left,$t.top)},x(At),()=>{const $t=nA(At,Z,ue);return lO($t.left,$t.top)})},Cre=(s,F,Z,ue,we,Be,qe)=>{const ft=F.fold(()=>{const gt=mre(Z,Be.left,Be.top),At=nA(gt,ue,we);return lO(At.left,At.top)},gt=>{const At=yre(s,gt,Z,Be,ue,we);return At.extra.each($t=>{gt.onSensor(s,$t)}),At.coord});return Fk(s,ft,ue,we,qe)},Are=(s,F,Z,ue)=>{const we=F.getTarget(s.element);if(F.repositionTarget){const Be=go(s.element),qe=Hl(Be),ft=N_(we),gt=Tre(we),At=Cre(s,F.snaps,gt,qe,ft,ue,Z),$t=Cj(At,qe,ft);mo(we,$t)}F.onDrag(s,we,ue)},aA=(s,F)=>({bounds:s.getBounds(),height:Ed(F.element),width:hu(F.element)}),aL=(s,F,Z,ue,we)=>{const Be=Z.update(ue,we),qe=Z.getStartData().getOrThunk(()=>aA(F,s));Be.each(ft=>{Are(s,F,qe,ft)})},Dj=(s,F,Z,ue)=>{F.each(kre),Z.snaps.each(Be=>{bre(s,Be)});const we=Z.getTarget(s.element);ue.reset(),Z.onDrop(s,we)},sL=s=>(F,Z)=>{const ue=we=>{Z.setStartData(aA(F,we))};return hl([fo(S1(),we=>{Z.getStartData().each(()=>ue(we))}),...s(F,Z,ue)])},Mre=s=>hl([fo(Oh(),s.forceDrop),fo(Hv(),s.drop),fo(Ex(),(F,Z)=>{s.move(Z.event)}),fo(kf(),s.delayDrop)]);var Ere=Object.freeze({__proto__:null,getData:s=>I.from(Ws(s.x,s.y)),getDelta:(s,F)=>Ws(F.left-s.left,F.top-s.top)});const Bj=(s,F,Z)=>[fo(Oh(),(ue,we)=>{if(we.event.raw.button!==0)return;we.stop();const qe=()=>Dj(ue,I.some(At),s,F),ft=cN(qe,200),gt={drop:qe,delayDrop:ft.schedule,forceDrop:qe,move:on=>{ft.cancel(),aL(ue,s,F,Ere,on)}},At=Lj(ue,s.blockerClass,Mre(gt));(()=>{Z(ue),Rj(ue,At)})()})],Pre=[...iA,Il("dragger",{handlers:sL(Bj)})],Rre=s=>hl([fo(_m(),s.forceDrop),fo(wm(),s.drop),fo(cb(),s.drop),fo(Yg(),(F,Z)=>{s.move(Z.event)})]),Lre=s=>{const F=s[0];return I.some(Ws(F.clientX,F.clientY))};var zj=Object.freeze({__proto__:null,getData:s=>{const Z=s.raw.touches;return Z.length===1?Lre(Z):I.none()},getDelta:(s,F)=>Ws(F.left-s.left,F.top-s.top)});const Fj=(s,F,Z)=>{const ue=os(),we=Be=>{Dj(Be,ue.get(),s,F),ue.clear()};return[fo(_m(),(Be,qe)=>{qe.stop();const ft=()=>we(Be),gt={drop:ft,delayDrop:v,forceDrop:ft,move:on=>{aL(Be,s,F,zj,on)}},At=Lj(Be,s.blockerClass,Rre(gt));ue.set(At),(()=>{Z(Be),Rj(Be,At)})()}),fo(Yg(),(Be,qe)=>{qe.stop(),aL(Be,s,F,zj,qe.event)}),fo(wm(),(Be,qe)=>{qe.stop(),we(Be)}),fo(cb(),we)]},Ire=[...iA,Il("dragger",{handlers:sL(Fj)})],Dre=(s,F,Z)=>[...Bj(s,F,Z),...Fj(s,F,Z)],sA=[...iA,Il("dragger",{handlers:sL(Dre)})];var Bre=Object.freeze({__proto__:null,mouse:Pre,touch:Ire,mouseOrTouch:sA}),zre=Object.freeze({__proto__:null,init:()=>{let s=I.none(),F=I.none();const Z=()=>{s=I.none(),F=I.none()},ue=(gt,At)=>{const $t=s.map(on=>gt.getDelta(on,At));return s=I.some(At),$t},we=(gt,At)=>gt.getData(At).bind($t=>ue(gt,$t)),Be=gt=>{F=I.some(gt)},qe=()=>F,ft=x({});return kh({readState:ft,reset:Z,update:we,getStartData:qe,setStartData:Be})}});const j2=md({branchKey:"mode",branches:Bre,name:"dragging",active:{events:(s,F)=>s.dragger.handlers(s,F)},extra:{snap:s=>({sensor:s.sensor,range:s.range,output:s.output,extra:I.from(s.extra)})},state:zre,apis:wre}),lL=40,lA=lL/2,Nj=(s,F,Z,ue,we,Be)=>s.fold(()=>j2.snap({sensor:lx(Z-lA,ue-lA),range:Ws(we,Be),output:lx(I.some(Z),I.some(ue)),extra:{td:F}}),qe=>{const ft=Z-lA,gt=ue-lA,At=lL,$t=lL,on=qe.element.dom.getBoundingClientRect();return j2.snap({sensor:lx(ft,gt),range:Ws(At,$t),output:lx(I.some(Z-on.width/2),I.some(ue-on.height/2)),extra:{td:F}})}),$j=(s,F,Z)=>{const ue=(we,Be)=>we.exists(qe=>so(qe,Be));return{getSnapPoints:s,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(we,Be)=>{const qe=Be.td;ue(F.get(),qe)||(F.set(qe),Z(qe))},mustSnap:!0}},Vj=s=>qs(Vd.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:Do([j2.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:s}),u4.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),cL=(s,F)=>{const Z=xi([]),ue=xi([]),we=xi(!1),Be=os(),qe=os(),ft=Jo=>{const ho=bl(Jo);return Nj(wn.getOpt(F),Jo,ho.x,ho.y,ho.width,ho.height)},gt=()=>oe(Z.get(),Jo=>ft(Jo)),At=Jo=>{const ho=bl(Jo);return Nj(Mn.getOpt(F),Jo,ho.right,ho.bottom,ho.width,ho.height)},$t=()=>oe(ue.get(),Jo=>At(Jo)),on=$j(gt,Be,Jo=>{qe.get().each(ho=>{s.dispatch("TableSelectorChange",{start:Jo,finish:ho})})}),yn=$j($t,qe,Jo=>{Be.get().each(ho=>{s.dispatch("TableSelectorChange",{start:ho,finish:Jo})})}),wn=Vj(on),Mn=Vj(yn),Xn=vi(wn.asSpec()),Br=vi(Mn.asSpec()),or=(Jo,ho,Ci,mi)=>{const qi=ho.dom.getBoundingClientRect();ma(Jo.element,"display");const Fi=Yn(Pt.fromDom(s.getBody())).dom.innerHeight,Os=Ci(qi),vs=mi(qi,Fi);(Os||vs)&&ko(Jo.element,"display","none")},Mr=(Jo,ho,Ci,mi)=>{const qi=Ci(ho);j2.snapTo(Jo,qi),or(Jo,ho,vs=>vs[mi]<0,(vs,Ha)=>vs[mi]>Ha)},kr=Jo=>Mr(Xn,Jo,ft,"top"),yo=()=>Be.get().each(kr),Xr=Jo=>Mr(Br,Jo,At,"bottom"),No=()=>qe.get().each(Xr);if(rf().deviceType.isTouch()){const Jo=ho=>oe(ho,Pt.fromDom);s.on("TableSelectionChange",ho=>{we.get()||(X0(F,Xn),X0(F,Br),we.set(!0));const Ci=Pt.fromDom(ho.start),mi=Pt.fromDom(ho.finish);Be.set(Ci),qe.set(mi),I.from(ho.otherCells).each(qi=>{Z.set(Jo(qi.upOrLeftCells)),ue.set(Jo(qi.downOrRightCells)),kr(Ci),Xr(mi)})}),s.on("ResizeEditor ResizeWindow ScrollContent",()=>{yo(),No()}),s.on("TableSelectionClear",()=>{we.get()&&(cv(Xn),cv(Br),we.set(!1)),Be.clear(),qe.clear()})}};var Uj=` -`;const Fre=(s,F)=>{const Z=I.from(ao(s,"id")).getOrThunk(()=>{const ue=fi("aria");return fr(F,"id",ue),ue});fr(s,"aria-describedby",Z)},Nre=s=>{po(s,"aria-describedby")},$re=s=>s.nodeName==="BR"||!!s.getAttribute("data-mce-bogus")||s.getAttribute("data-mce-type")==="bookmark",Vre=(s,F,Z)=>{var ue;const we=(ue=F.delimiter)!==null&&ue!==void 0?ue:"›",Be=(At,$t,on)=>Vd.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":on}},components:[ro(At)],action:yn=>{s.focus(),s.selection.select($t),s.nodeChanged()},buttonBehaviours:Do([kd.config({...Z.tooltips.getConfig({tooltipText:Z.translate(["Select the {0} element",$t.nodeName.toLowerCase()]),onShow:(yn,wn)=>{Fre(yn.element,wn.element)},onHide:yn=>{Nre(yn.element)}})}),s1.button(Z.isDisabled),df()])}),qe=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[ro(` ${we} `)]}),ft=At=>se(At,($t,on,yn)=>{const wn=Be(on.name,on.element,yn);return yn===0?$t.concat([wn]):$t.concat([qe(),wn])},[]),gt=At=>{const $t=[];let on=At.length;for(;on-- >0;){const yn=At[on];if(yn.nodeType===1&&!$re(yn)){const wn=oX(s,yn);if(wn.isDefaultPrevented()||$t.push({name:wn.name,element:yn}),wn.isPropagationStopped())break}}return $t};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:Do([Li.config({mode:"flow",selector:"div[role=button]"}),ea.config({disabled:Z.isDisabled}),df(),Wl.config({}),da.config({}),Ta("elementPathEvents",[Ll((At,$t)=>{s.shortcuts.add("alt+F11","focus statusbar elementpath",()=>Li.focusIn(At)),s.on("NodeChange",on=>{const yn=gt(on.parents),wn=yn.length>0?ft(yn):[];da.set(At,wn)})})])]),components:[]}};var Q2;(function(s){s[s.None=0]="None",s[s.Both=1]="Both",s[s.Vertical=2]="Vertical"})(Q2||(Q2={}));const Ure=(s,F,Z,ue,we)=>{const Be={height:Q8(ue+F.top,M6(s),YE(s))};return Z===Q2.Both&&(Be.width=Q8(we+F.left,Z3(s),k5(s))),Be},jj=(s,F,Z)=>{const ue=Pt.fromDom(s.getContainer()),we=Ure(s,F,Z,Ql(ue),cc(ue));We(we,(Be,qe)=>{h(Be)&&ko(ue,qe,M4(Be))}),nX(s)},jre=s=>{const F=n7(s);return F===!1?Q2.None:F==="both"?Q2.Both:Q2.Vertical},cA=(s,F,Z,ue)=>{const Be=Ws(Z*20,ue*20);return jj(s,Be,F),I.some(!0)},Qre=(s,F)=>{const Z=jre(s);if(Z===Q2.None)return I.none();const ue=Z===Q2.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return I.some(em("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{"aria-label":F.translate(ue),"data-mce-name":"resize-handle"},behaviours:[j2.config({mode:"mouse",repositionTarget:!1,onDrag:(we,Be,qe)=>jj(s,qe,Z),blockerClass:"tox-blocker"}),Li.config({mode:"special",onLeft:()=>cA(s,Z,-1,0),onRight:()=>cA(s,Z,1,0),onUp:()=>cA(s,Z,0,-1),onDown:()=>cA(s,Z,0,1)}),Wl.config({}),oa.config({}),kd.config(F.tooltips.getConfig({tooltipText:F.translate("Resize")}))]},F.icons))},Hre=(s,F)=>{const Z=(ue,we,Be)=>da.set(ue,[ro(F.translate(["{0} "+Be,we[Be]]))]);return Vd.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:Do([s1.button(F.isDisabled),df(),Wl.config({}),da.config({}),hi.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Ta("wordcount-events",[$p(ue=>{const we=hi.getValue(ue),Be=we.mode==="words"?"characters":"words";hi.setValue(ue,{mode:Be,count:we.count}),Z(ue,we.count,Be)}),Ll(ue=>{s.on("wordCountUpdate",we=>{const{mode:Be}=hi.getValue(ue);hi.setValue(ue,{mode:Be,count:we.wordCount}),Z(ue,we.wordCount,Be)})})])]),eventOrder:{[cp()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},Zre=(s,F)=>{const Z=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=poweredby&utm_source=tiny&utm_medium=referral&utm_content=v7",rel:"noopener",target:"_blank","aria-label":s.translate(["Build with {0}","TinyMCE"])},innerHtml:s.translate(["Build with {0}",Uj.trim()])},behaviours:Do([oa.config({})])}]}),ue=()=>{const ft=gC("Alt+0"),gt="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[ro(Cg.translate([gt,ft]))]}},we=()=>{const ft=[];return s.hasPlugin("wordcount")&&ft.push(Hre(s,F)),t7(s)&&ft.push(Z()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:ft}},Be=()=>{const ft=[],gt=hz(s),At=fz(s),$t=t7(s)||s.hasPlugin("wordcount"),on=()=>{const yn="tox-statusbar__text-container--flex-start",wn="tox-statusbar__text-container--flex-end",Mn="tox-statusbar__text-container--space-around";if(gt){const Xn="tox-statusbar__text-container-3-cols";return!$t&&!At?[Xn,Mn]:$t&&!At?[Xn,wn]:[Xn,yn]}return[$t&&!At?wn:yn]};return At&&ft.push(Vre(s,{},F)),gt&&ft.push(ue()),$t&&ft.push(we()),ft.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...on()]},components:ft}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const ft=Be(),gt=Qre(s,F);return ft.concat(gt.toArray())})()}},Qj=(s,F)=>F.get().getOrDie(`UI for ${s} has not been rendered`),qre=(s,F)=>{const Z=s.inline,ue=Z?YU:vne,we=W3(s)?O4:_ee,Be=XU(),qe=os(),ft=os(),gt=os(),yn=rf().deviceType.isTouch()?["tox-platform-touch"]:[],wn=Gb(s),Mn=Dw(s),Xn=qs({dom:{tag:"div",classes:["tox-anchorbar"]}}),Br=qs({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),or=()=>Be.mainUi.get().map(ji=>ji.outerContainer).bind(Yl.getHeader),Mr=()=>Hi.fromOption(Be.dialogUi.get().map(ji=>ji.sink),"UI has not been rendered"),kr=()=>Hi.fromOption(Be.popupUi.get().map(ji=>ji.sink),"(popup) UI has not been rendered"),yo=Be.lazyGetInOuterOrDie("anchor bar",Xn.getOpt),Xr=Be.lazyGetInOuterOrDie("bottom anchor bar",Br.getOpt),No=Be.lazyGetInOuterOrDie("toolbar",Yl.getToolbar),Jo=Be.lazyGetInOuterOrDie("throbber",Yl.getThrobber),ho=hee({popup:kr,dialog:Mr},s,yo,Xr),Ci=()=>{const ji={attributes:{[s0]:wn?Og.BottomToTop:Og.TopToBottom}},ga=Yl.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:ho.popup,onEscape:()=>{s.focus()}}),kl=Yl.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:ho.popup.shared.getSink,providers:ho.popup.shared.providers,onEscape:()=>{s.focus()},onToolbarToggled:mO=>{iX(s,mO)},type:Mn,lazyToolbar:No,lazyHeader:()=>or().getOrDie("Could not find header element"),...ji}),Ns=Yl.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:ho.popup.shared.providers,onEscape:()=>{s.focus()},type:Mn}),zh=Bw(s),Bg=F6(s),Tv=B6(s),dh=T5(s),zg=mi(),w0=zh||Bg||Tv,im=()=>zh?[Ns]:Bg?[kl]:[],jy=dh?[zg,ga]:[ga];return Yl.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(w0?[]:["tox-editor-header--empty"]),...ji},components:ve([Tv?jy:[],im(),q3(s)?[]:[Xn.asSpec()]]),sticky:W3(s),editor:s,sharedBackstage:ho.popup.shared})},mi=()=>Yl.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),qi=()=>{const ji=Yl.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),ga=Yl.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[ji,ga]}},Fi=()=>{const ji=C5(s),ga=so(Vr(),ji)&&Aa(ji,"display")==="grid",kl={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(yn),attributes:{...Cg.isRtl()?{dir:"rtl"}:{}}},behaviours:Do([ed.config({useFixed:()=>we.isDocked(or)})])},Ns={dom:{styles:{width:document.body.clientWidth+"px"}},events:hl([fo(Tm(),Tv=>{ko(Tv.element,"width",document.body.clientWidth+"px")})])},zh=vi(nl(kl,ga?Ns:{})),Bg=wP(zh);return ft.set(Bg),{sink:zh,mothership:Bg}},Os=()=>{const ji={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(yn),attributes:{...Cg.isRtl()?{dir:"rtl"}:{}}},behaviours:Do([ed.config({useFixed:()=>we.isDocked(or),getBounds:()=>F.getPopupSinkBounds()})])},ga=vi(ji),kl=wP(ga);return gt.set(kl),{sink:ga,mothership:kl}},vs=()=>{const ji=Ci(),ga=qi(),kl=Yl.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:ho.popup}),Ns=Yl.parts.viewWrapper({backstage:ho.popup}),zh=uz(s)&&!Z?I.some(Zre(s,ho.popup.shared.providers)):I.none(),Bg=ve([wn?[]:[ji],Z?[]:[ga],wn?[ji]:[]]),Tv=Yl.parts.editorContainer({components:ve([Bg,Z?[]:[Br.asSpec()]])}),dh=N6(s),zg={role:"application",...Cg.isRtl()?{dir:"rtl"}:{},...dh?{"aria-hidden":"true"}:{}},w0=vi(Yl.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(Z?["tox-tinymce-inline"]:[]).concat(wn?["tox-tinymce--toolbar-bottom"]:[]).concat(yn),styles:{visibility:"hidden",...dh?{opacity:"0",border:"0"}:{}},attributes:zg},components:[Tv,...Z?[]:[Ns,...zh.toArray()],kl],behaviours:Do([df(),ea.config({disableClass:"tox-tinymce--disabled"}),Li.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),im=wP(w0);return qe.set(im),{mothership:im,outerContainer:w0}},Ha=ji=>{const ga=M4(Z8(s)),kl=M4(yne(s));return s.inline||(wc("div","width",kl)&&ko(ji.element,"width",kl),wc("div","height",ga)?ko(ji.element,"height",ga):ko(ji.element,"height","400px")),ga},Ho=ji=>{s.addShortcut("alt+F9","focus menubar",()=>{Yl.focusMenubar(ji)}),s.addShortcut("alt+F10","focus toolbar",()=>{Yl.focusToolbar(ji)}),s.addCommand("ToggleToolbarDrawer",(ga,kl)=>{kl!=null&&kl.skipFocus?Yl.toggleToolbarDrawerWithoutFocusing(ji):Yl.toggleToolbarDrawer(ji)}),s.addQueryStateHandler("ToggleToolbarDrawer",()=>Yl.isToolbarDrawerToggled(ji))},wi=ji=>{const{mainUi:ga,popupUi:kl,uiMotherships:Ns}=ji;Ue(P6(s),(L4,OA)=>{s.ui.registry.addGroupToolbarButton(OA,L4)});const{buttons:zh,menuItems:Bg,contextToolbars:Tv,sidebars:dh,views:zg}=s.ui.registry.getAll(),w0=a7(s),im={menuItems:Bg,menus:s7(s),menubar:KE(s),toolbar:w0.getOrThunk(()=>R6(s)),allowToolbarGroups:Mn===Hm.floating,buttons:zh,sidebar:dh,views:zg};Ho(ga.outerContainer),pee(s,ga.mothership,Ns),we.setup(s,ho.popup.shared,or),Yne(s,ho.popup),dre(s,ho.popup.shared.getSink,ho.popup),Lee(s),wfe(s,Jo,ho.popup.shared),Lne(s,Tv,kl.sink,{backstage:ho.popup}),cL(s,kl.sink);const jy=s.getElement(),mO=Ha(ga.outerContainer),TL={targetNode:jy,height:mO};return ue.render(s,ji,im,ho.popup,TL)},_a=ji=>(gt.set(ji.mothership),ji),Ki=()=>{const ji=vs(),ga=Fi(),kl=C2(s)?Os():_a(ga);Be.dialogUi.set(ga),Be.popupUi.set(kl),Be.mainUi.set(ji);const Ns={popupUi:kl,dialogUi:ga,mainUi:ji,uiMotherships:Be.getUiMotherships()};return wi(Ns)};return{popups:{backstage:ho.popup,getMothership:()=>Qj("popups",gt)},dialogs:{backstage:ho.dialog,getMothership:()=>Qj("dialogs",ft)},renderUI:Ki}},Hj=s=>s.dom.textContent,Wre=(s,F)=>{const Z=co(s,"id").fold(()=>{const ue=fi("dialog-label");return fr(F,"id",ue),ue},R);fr(s,"aria-labelledby",Z)},Yre=x([Sn("lazySink"),Hr("dragBlockClass"),Pa("getBounds",xl),mr("useTabstopAt",k),mr("firstTabstop",0),mr("eventOrder",{}),Ef("modalBehaviours",[Li]),yd("onExecute"),i0("onEscape")]),uL={sketch:R},Xre=x([Jp({name:"draghandle",overrides:(s,F)=>({behaviours:Do([j2.config({mode:"mouse",getTarget:Z=>zs(Z,'[role="dialog"]').getOr(Z),blockerClass:s.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: -`+JSON.stringify(F,null,2)).message),getBounds:s.getDragBounds})])})}),Sd({schema:[Sn("dom")],name:"title"}),Sd({factory:uL,schema:[Sn("dom")],name:"close"}),Sd({factory:uL,schema:[Sn("dom")],name:"body"}),Jp({factory:uL,schema:[Sn("dom")],name:"footer"}),Um({factory:{sketch:(s,F)=>({...s,dom:F.dom,components:F.components})},schema:[mr("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),mr("components",[])],name:"blocker"})]),Gre=(s,F,Z,ue)=>{const we=os(),Be=Mn=>{we.set(Mn);const Xn=s.lazySink(Mn).getOrDie(),Br=ue.blocker(),or=Xn.getSystem().build({...Br,components:Br.components.concat([na(Mn)]),behaviours:Do([oa.config({}),Ta("dialog-blocker-events",[Wv(Sm(),()=>{Sv.isBlocked(Mn)?v():Li.focusIn(Mn)})])])});X0(Xn,or),Li.focusIn(Mn)},qe=Mn=>{we.clear(),br(Mn.element).each(Xn=>{Mn.getSystem().getByDom(Xn).each(Br=>{cv(Br)})})},ft=Mn=>Ph(Mn,s,"body"),gt=Mn=>Fo(Mn,s,"footer"),At=(Mn,Xn)=>{Sv.block(Mn,Xn)},$t=Mn=>{Sv.unblock(Mn)},on=fi("modal-events"),yn={...s.eventOrder,[zd()]:[on].concat(s.eventOrder["alloy.system.attached"]||[])},wn=rf();return{uid:s.uid,dom:s.dom,components:F,apis:{show:Be,hide:qe,getBody:ft,getFooter:gt,setIdle:$t,setBusy:At},eventOrder:yn,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Pf(s.modalBehaviours,[da.config({}),Li.config({mode:"cyclic",onEnter:s.onExecute,onEscape:s.onEscape,useTabstopAt:s.useTabstopAt,firstTabstop:s.firstTabstop}),Sv.config({getRoot:we.get}),Ta(on,[Ll(Mn=>{const Xn=Ph(Mn,s,"title").element,Br=Hj(Xn);wn.os.isMacOS()&&a(Br)?fr(Mn.element,"aria-label",Br):Wre(Mn.element,Xn)})])])}},Lf=ch({name:"ModalDialog",configFields:Yre(),partFields:Xre(),factory:Gre,apis:{show:(s,F)=>{s.show(F)},hide:(s,F)=>{s.hide(F)},getBody:(s,F)=>s.getBody(F),getFooter:(s,F)=>s.getFooter(F),setBusy:(s,F,Z)=>{s.setBusy(F,Z)},setIdle:(s,F)=>{s.setIdle(F)}}}),Kre=Mi([Fu,rC].concat(Uw)),Jre=ge,uA=[Q7("button"),d0,dl("align","end",["start","end"]),j5,o1,$i("buttonType",["primary","secondary"])],fL=[...uA,ex],cx=[Zr("type",["submit","cancel","custom"]),...fL],eoe=[Zr("type",["menu"]),R2,U5,d0,Si("items",Kre),...uA],dL=[...uA,Zr("type",["togglebutton"]),U5,d0,R2,ds("active",!1)],fA=xn("type",{submit:cx,cancel:cx,custom:cx,menu:eoe,togglebutton:dL}),toe=[Fu,ex,Zr("level",["info","warn","error","success"]),Yz,mr("url","")],noe=Mi(toe),roe=s=>[Fu,s],ooe=[Fu,ex,o1,Q7("button"),d0,MY,$i("buttonType",["primary","secondary","toolbar"]),j5],ioe=Mi(ooe),h1=[Fu,rC],p1=h1.concat([iC]),aoe=h1.concat([oC,o1]),soe=Mi(aoe),loe=ge,coe=p1.concat([lC("auto")]),uoe=Mi(coe),foe=J([V5,ex,Yz]),doe=p1.concat([Ys("storageKey","default")]),hoe=Mi(doe),hL=ne,pL=Mi(p1),hA=ne,uO=h1.concat([Ys("tag","textarea"),Pr("scriptId"),Pr("scriptUrl"),Ui("onFocus"),Rs("settings",void 0)]),pA=h1.concat([Ys("tag","textarea"),$o("init")]),poe=mt(s=>jt("customeditor.old",_l(pA),s).orThunk(()=>jt("customeditor.new",_l(uO),s))),Zj=ne,qj=Mi(p1),goe=dt(),voe=s=>[Fu,Dr("columns"),s],yoe=[Fu,Pr("html"),dl("presets","presentation",["presentation","document"]),Pa("onInit",v),ds("stretched",!1)],Wj=Mi(yoe),Yj=p1.concat([ds("border",!1),ds("sandboxed",!0),ds("streamContent",!1),ds("transparent",!0)]),mL=Mi(Yj),boe=ne,xoe=Mi(h1.concat([Io("height")])),_oe=Mi([Pr("url"),ki("zoom"),ki("cachedWidth"),ki("cachedHeight")]),Xj=p1.concat([Io("inputMode"),Io("placeholder"),ds("maximized",!1),o1]),woe=Mi(Xj),Ooe=ne,Soe=s=>[Fu,oC,s,dl("align","start",["start","center","end"]),Io("for")],gL=[ex,V5],vL=[ex,Si("items",pn("items",()=>Gj))],Gj=Ot([Mi(gL),Mi(vL)]),Kj=p1.concat([Si("items",Gj),o1]),koe=Mi(Kj),Toe=ne,Jj=p1.concat([yi("items",[ex,V5]),Pl("size",1),o1]),Coe=Mi(Jj),Aoe=ne,fO=p1.concat([ds("constrain",!0),o1]),eQ=Mi(fO),tQ=Mi([Pr("width"),Pr("height")]),mA=h1.concat([oC,Pl("min",0),Pl("max",0)]),P4=Mi(mA),gA=V,nQ=[Fu,Si("header",ne),Si("cells",Sf(ne))],vA=Mi(nQ),rm=p1.concat([Io("placeholder"),ds("maximized",!1),o1]),yA=Mi(rm),rQ=ne,yL=[Zr("type",["directory","leaf"]),Wz,Pr("id"),Lo("menu",S8)],oQ=Mi(yL),H2=yL.concat([Si("children",pn("children",()=>rt("type",{directory:Moe,leaf:oQ})))]),Moe=Mi(H2),Eoe=rt("type",{directory:Moe,leaf:oQ}),iQ=[Fu,Si("items",Eoe),Ui("onLeafAction"),Ui("onToggleExpand"),Ls("defaultExpandedIds",[],ne),Io("defaultSelectedId")],R4=Mi(iQ),bA=p1.concat([dl("filetype","file",["image","media","file"]),o1,Io("picker_text")]),aQ=Mi(bA),Poe=Mi([V5,U7]),bL=s=>Ln("items","items",Ka(),Sf(mt(F=>jt(`Checking item of ${s}`,xL,F).fold(Z=>Hi.error(sn(Z)),Z=>Hi.value(Z))))),xL=Ea(()=>rt("type",{alertbanner:noe,bar:Mi(roe(bL("bar"))),button:ioe,checkbox:soe,colorinput:hoe,colorpicker:pL,dropzone:qj,grid:Mi(voe(bL("grid"))),iframe:mL,input:woe,listbox:koe,selectbox:Coe,sizeinput:eQ,slider:P4,textarea:yA,urlinput:aQ,customeditor:poe,htmlpanel:Wj,imagepreview:xoe,collection:uoe,label:Mi(Soe(bL("label"))),table:vA,tree:R4,panel:dO})),Roe=[Fu,mr("classes",[]),Si("items",xL)],dO=Mi(Roe),Nfe=[Q7("tab"),Wz,Si("items",xL)],Loe=[Fu,yi("tabs",Nfe)],Ioe=Mi(Loe),$fe=fL,Doe=fA,Boe=Mi([Pr("title"),rr("body",rt("type",{panel:dO,tabpanel:Ioe})),Ys("size","normal"),Ls("buttons",[],Doe),mr("initialData",{}),Pa("onAction",v),Pa("onChange",v),Pa("onSubmit",v),Pa("onClose",v),Pa("onCancel",v),Pa("onTabChange",v)]),Nk=s=>jt("dialog",Boe,s),zoe=Mi([Zr("type",["cancel","custom"]),...$fe]),Foe=Mi([Pr("title"),Pr("url"),ki("height"),ki("width"),ba("buttons",zoe),Pa("onAction",v),Pa("onCancel",v),Pa("onClose",v),Pa("onMessage",v)]),sQ=s=>jt("dialog",Foe,s),_L=s=>c(s)?[s].concat(ye(ot(s),_L)):i(s)?ye(s,_L):[],Vfe=s=>n(s.type)&&n(s.name),r={checkbox:loe,colorinput:hL,colorpicker:hA,dropzone:goe,input:Ooe,iframe:boe,imagepreview:_oe,selectbox:Aoe,sizeinput:tQ,slider:gA,listbox:Toe,size:tQ,textarea:rQ,urlinput:Poe,customeditor:Zj,collection:foe,togglemenuitem:Jre},g=s=>I.from(r[s.type]),B=s=>me(_L(s),Vfe),H=s=>{const F=B(s),Z=ye(F,ue=>g(ue).fold(()=>[],we=>[rr(ue.name,we)]));return Mi(Z)},re=s=>{var F;const Z=Nt(Nk(s)),ue=H(s),we=(F=s.initialData)!==null&&F!==void 0?F:{};return{internalDialog:Z,dataValidator:ue,initialData:we}},be={open:(s,F)=>{const Z=re(F);return s(Z.internalDialog,Z.initialData,Z.dataValidator)},openUrl:(s,F)=>{const Z=Nt(sQ(F));return s(Z)},redial:s=>re(s)};var Ke=Object.freeze({__proto__:null,events:(s,F)=>{const Z=(ue,we)=>{s.updateState.each(Be=>{const qe=Be(ue,we);F.set(qe)}),s.renderComponents.each(Be=>{const qe=Be(we,F.get());(s.reuseDom?FE:U3)(ue,qe)})};return hl([fo(lp(),(ue,we)=>{const Be=we;if(!Be.universal){const qe=s.channel;X(Be.channels,qe)&&Z(ue,Be.data)}}),Ll((ue,we)=>{s.initialData.each(Be=>{Z(ue,Be)})})])}}),kt=Object.freeze({__proto__:null,getState:(s,F,Z)=>Z}),Wt=[Sn("channel"),Hr("renderComponents"),Hr("updateState"),Hr("initialData"),ds("reuseDom",!0)],ln=Object.freeze({__proto__:null,init:()=>{const s=xi(I.none()),F=()=>s.set(I.none());return{readState:()=>s.get().getOr("none"),get:s.get,set:s.set,clear:F}}});const kn=lf({fields:Wt,name:"reflecting",active:Ke,apis:kt,state:ln}),Vn=s=>{const F=[],Z={};return We(s,(ue,we)=>{ue.fold(()=>{F.push(we)},Be=>{Z[we]=Be})}),F.length>0?Hi.error(F):Hi.value(Z)},Rn=(s,F,Z,ue)=>{const we=qs(tO.sketch(Be=>({dom:{tag:"div",classes:["tox-form"].concat(s.classes)},components:oe(s.items,qe=>hV(Be,qe,F,Z,ue))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[we.asSpec()]}],behaviours:Do([Li.config({mode:"acyclic",useTabstopAt:E(g4)}),y0.memento(we),gK(we,{postprocess:Be=>Vn(Be).fold(qe=>(console.error(qe),{}),R)}),Ta("dialog-body-panel",[fo(Sm(),(Be,qe)=>{Be.getSystem().broadcastOn([KC],{newFocus:I.some(qe.event.target)})})])])}},qn=(s,F)=>({uid:s.uid,dom:s.dom,components:s.components,events:k6(s.action),behaviours:Pf(s.tabButtonBehaviours,[oa.config({}),Li.config({mode:"execution",useSpace:!0,useEnter:!0}),hi.config({store:{mode:"memory",initialValue:s.value}})]),domModification:s.domModification}),pr=Yh({name:"TabButton",configFields:[mr("uid",void 0),Sn("value"),Ln("dom","dom",yu(()=>({attributes:{role:"tab",id:fi("aria"),"aria-selected":"false"}})),le()),Hr("action"),mr("domModification",{}),Ef("tabButtonBehaviours",[oa,Li,hi]),Sn("view")],factory:qn}),Tr=x([Sn("tabs"),Sn("dom"),mr("clickToDismiss",!1),Ef("tabbarBehaviours",[ri,Li]),jp(["tabClass","selectedClass"])]),wr=R3({factory:pr,name:"tabs",unit:"tab",overrides:s=>{const F=(ue,we)=>{ri.dehighlight(ue,we),Ri(ue,bu(),{tabbar:ue,button:we})},Z=(ue,we)=>{ri.highlight(ue,we),Ri(ue,zO(),{tabbar:ue,button:we})};return{action:ue=>{const we=ue.getSystem().getByUid(s.uid).getOrDie(),Be=ri.isHighlighted(we,ue);(()=>Be&&s.clickToDismiss?F:Be?v:Z)()(we,ue)},domModification:{classes:[s.markers.tabClass]}}}}),Ur=x([wr]),wo=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,components:F,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Pf(s.tabbarBehaviours,[ri.config({highlightClass:s.markers.selectedClass,itemClass:s.markers.tabClass,onHighlight:(we,Be)=>{fr(Be.element,"aria-selected","true")},onDehighlight:(we,Be)=>{fr(Be.element,"aria-selected","false")}}),Li.config({mode:"flow",getInitial:we=>ri.getHighlighted(we).map(Be=>Be.element),selector:"."+s.markers.tabClass,executeOnMove:!0})])}),jo=ch({name:"Tabbar",configFields:Tr(),partFields:Ur(),factory:wo}),di=(s,F)=>({uid:s.uid,dom:s.dom,behaviours:Pf(s.tabviewBehaviours,[da.config({})]),domModification:{attributes:{role:"tabpanel"}}}),lo=Yh({name:"Tabview",configFields:[Ef("tabviewBehaviours",[da])],factory:di}),eo=x([mr("selectFirst",!0),Ra("onChangeTab"),Ra("onDismissTab"),mr("tabs",[]),Ef("tabSectionBehaviours",[])]),xo=Sd({factory:jo,schema:[Sn("dom"),zo("markers",[Sn("tabClass"),Sn("selectedClass")])],name:"tabbar",defaults:s=>({tabs:s.tabs})}),bi=Sd({factory:lo,name:"tabview"}),Bi=x([xo,bi]),$a=(s,F,Z,ue)=>{const we=qe=>{const ft=hi.getValue(qe);Fo(qe,s,"tabview").each(gt=>{ce(s.tabs,$t=>$t.value===ft).each($t=>{const on=$t.view();co(qe.element,"id").each(yn=>{fr(gt.element,"aria-labelledby",yn)}),da.set(gt,on),s.onChangeTab(gt,qe,on)})})},Be=(qe,ft)=>{Fo(qe,s,"tabbar").each(gt=>{ft(gt).each(Fp)})};return{uid:s.uid,dom:s.dom,components:F,behaviours:vw(s.tabSectionBehaviours),events:hl(ve([s.selectFirst?[Ll((qe,ft)=>{Be(qe,ri.getFirst)})]:[],[fo(zO(),(qe,ft)=>{const gt=ft.event.button;we(gt)}),fo(bu(),(qe,ft)=>{const gt=ft.event.button;s.onDismissTab(qe,gt)})]])),apis:{getViewItems:qe=>Fo(qe,s,"tabview").map(ft=>da.contents(ft)).getOr([]),showTab:(qe,ft)=>{Be(qe,At=>{const $t=ri.getCandidates(At);return ce($t,yn=>hi.getValue(yn)===ft).filter(yn=>!ri.isHighlighted(At,yn))})}}}},Ia=ch({name:"TabSection",configFields:eo(),partFields:Bi(),factory:$a,apis:{getViewItems:(s,F)=>s.getViewItems(F),showTab:(s,F,Z)=>{s.showTab(F,Z)}}}),Us=(s,F,Z)=>oe(s,(ue,we)=>{da.set(Z,s[we].view());const Be=F.dom.getBoundingClientRect();return da.set(Z,[]),Be.height}),sl=s=>He(ze(s,(F,Z)=>F>Z?-1:F{const ue=Pn(s).dom,we=zs(s,".tox-dialog-wrap").getOr(s),Be=Aa(we,"position")==="fixed";let qe;Be?qe=Math.max(ue.clientHeight,window.innerHeight):qe=Math.max(ue.offsetHeight,ue.scrollHeight);const ft=Ql(F),At=F.dom.offsetLeft>=Z.dom.offsetLeft+cc(Z)?Math.max(Ql(Z),ft):ft,$t=parseInt(Aa(s,"margin-top"),10)||0,on=parseInt(Aa(s,"margin-bottom"),10)||0,wn=Ql(s)+$t+on-At;return qe-wn},jd=(s,F)=>{He(s).each(Z=>Ia.showTab(F,Z.value))},ml=(s,F)=>{ko(s,"height",F+"px"),ko(s,"flex-basis",F+"px")},Wo=(s,F,Z)=>{zs(s,'[role="dialog"]').each(ue=>{aa(ue,'[role="tablist"]').each(we=>{Z.get().map(Be=>(ko(F,"height","0"),ko(F,"flex-basis","0"),Math.min(Be,nu(ue,F,we)))).each(Be=>{ml(F,Be)})})})},Ei=s=>aa(s,'[role="tabpanel"]'),ws=s=>{const F=os();return{extraEvents:[Ll(we=>{const Be=we.element;Ei(Be).each(qe=>{ko(qe,"visibility","hidden"),we.getSystem().getByDom(qe).toOptional().each(ft=>{const gt=Us(s,qe,ft);sl(gt).fold(F.clear,F.set)}),Wo(Be,qe,F),ma(qe,"visibility"),jd(s,we),requestAnimationFrame(()=>{Wo(Be,qe,F)})})}),fo(Tm(),we=>{const Be=we.element;Ei(Be).each(qe=>{Wo(Be,qe,F)})}),fo(vN,(we,Be)=>{const qe=we.element;Ei(qe).each(ft=>{const gt=hp(vr(ft));ko(ft,"visibility","hidden");const At=Na(ft,"height").map(yn=>parseInt(yn,10));ma(ft,"height"),ma(ft,"flex-basis");const $t=ft.dom.getBoundingClientRect().height;At.forall(yn=>$t>yn)?(F.set($t),Wo(qe,ft,F)):At.each(yn=>{ml(ft,yn)}),ma(ft,"visibility"),gt.each(bd)})})],selectFirst:!1}},ii="send-data-to-section",Qi="send-data-to-view",Qa=(s,F,Z,ue)=>{const we=xi({}),Be=$t=>{const on=hi.getValue($t),yn=Vn(on).getOr({}),wn=we.get(),Mn=nl(wn,yn);we.set(Mn)},qe=$t=>{const on=we.get();hi.setValue($t,on)},ft=xi(null),gt=oe(s.tabs,$t=>({value:$t.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[ro(Z.shared.providers.translate($t.title))],view:()=>[tO.sketch(on=>({dom:{tag:"div",classes:["tox-form"]},components:oe($t.items,yn=>hV(on,yn,F,Z,ue)),formBehaviours:Do([Li.config({mode:"acyclic",useTabstopAt:E(g4)}),Ta("TabView.form.events",[Ll(qe),Sh(Be)]),Wu.config({channels:hd([{key:ii,value:{onReceive:Be}},{key:Qi,value:{onReceive:qe}}])})])}))]})),At=ws(gt);return Ia.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:($t,on,yn)=>{const wn=hi.getValue(on);Ri($t,gN,{name:wn,oldName:ft.get()}),ft.set(wn)},tabs:gt,components:[Ia.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[jo.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:Do([Wl.config({})])}),Ia.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:At.selectFirst,tabSectionBehaviours:Do([Ta("tabpanel",At.extraEvents),Li.config({mode:"acyclic"}),as.config({find:$t=>He(Ia.getViewItems($t))}),nO(I.none(),$t=>($t.getSystem().broadcastOn([ii],{}),we.get()),($t,on)=>{we.set(on),$t.getSystem().broadcastOn([Qi],{})})])})},ci=(s,F,Z,ue,we,Be)=>{const qe=At=>{const $t=At.body;switch($t.type){case"tabpanel":return[Qa($t,At.initialData,ue,Be)];default:return[Rn($t,At.initialData,ue,Be)]}},ft=(At,$t)=>I.some({isTabPanel:()=>$t.body.type==="tabpanel"}),gt={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...Z.map(At=>({id:At})).getOr({}),...we?gt:{}}},components:[],behaviours:Do([y0.childAt(0),kn.config({channel:`${w$}-${F}`,updateState:ft,renderComponents:qe,initialData:s})])}},Va=(s,F,Z,ue,we,Be)=>ci(s,F,I.some(Z),ue,we,Be),Xa=(s,F,Z,ue)=>{const we=ci(s,F,I.none(),Z,!1,ue);return Lf.parts.body(we)},If=s=>{const F={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[y$(I.none(),{dom:{tag:"iframe",attributes:{src:s.url}},behaviours:Do([Wl.config({}),oa.config({})])})]}],behaviours:Do([Li.config({mode:"acyclic",useTabstopAt:E(g4)})])};return Lf.parts.body(F)},el=Q3.deviceType.isTouch(),Yu=(s,F)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[s,F]}),Pg=(s,F)=>Lf.parts.close(Vd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":F.translate("Close")}},action:s,buttonBehaviours:Do([Wl.config({})])})),m1=()=>Lf.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),Dh=(s,F)=>Lf.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:pv(`

    ${_7(F.translate(s))}

    `)}]}]}),om=s=>Lf.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:s}),Rg=(s,F)=>[bv.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:s}),bv.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:F})],xp=s=>{const F="tox-dialog",Z=F+"-wrap",ue=Z+"__backdrop",we=F+"__disable-scroll";return Lf.sketch({lazySink:s.lazySink,onEscape:Be=>(s.onEscape(Be),I.some(!0)),useTabstopAt:Be=>!g4(Be),firstTabstop:s.firstTabstop,dom:{tag:"div",classes:[F].concat(s.extraClasses),styles:{position:"relative",...s.extraStyles}},components:[s.header,s.body,...s.footer.toArray()],parts:{blocker:{dom:pv(`
    `),components:[{dom:{tag:"div",classes:el?[ue,ue+"--opaque"]:[ue]}}]}},dragBlockClass:Z,modalBehaviours:Do([oa.config({}),Ta("dialog-events",s.dialogEvents.concat([Wv(Sm(),(Be,qe)=>{Sv.isBlocked(Be)?v():Li.focusIn(Be)}),fo(Jg(),(Be,qe)=>{Be.getSystem().broadcastOn([KC],{newFocus:qe.event.newFocus})})])),Ta("scroll-lock",[Ll(()=>{wl(Vr(),we)}),Sh(()=>{fc(Vr(),we)})]),...s.extraBehaviours]),eventOrder:{[cp()]:["dialog-events"],[zd()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[fp()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...s.eventOrder}})},Lg=s=>Vd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":s.translate("Close"),"data-mce-name":"close"}},buttonBehaviours:Do([Wl.config({}),kd.config(s.tooltips.getConfig({tooltipText:s.translate("Close")}))]),components:[em("close",{tag:"span",classes:["tox-icon"]},s.icons)],action:F=>{Sa(F,I2)}}),zi=(s,F,Z,ue)=>{const we=Be=>[ro(ue.translate(Be.title))];return{dom:{tag:"h1",classes:["tox-dialog__title"],attributes:{...Z.map(Be=>({id:Be})).getOr({})}},components:[],behaviours:Do([kn.config({channel:`${_$}-${F}`,initialData:s,renderComponents:we})])}},ss=()=>({dom:pv('
    ')}),Rc=(s,F,Z,ue)=>bv.sketch({dom:pv('
    '),components:[zi(s,F,I.some(Z),ue),ss(),Lg(ue)],containerBehaviours:Do([j2.config({mode:"mouse",blockerClass:"blocker",getTarget:we=>Fs(we,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),cu=(s,F,Z)=>{const ue=Lf.parts.title(zi(s,F,I.none(),Z)),we=Lf.parts.draghandle(ss()),Be=Lf.parts.close(Lg(Z)),qe=[ue].concat(s.draggable?[we]:[]).concat([Be]);return bv.sketch({dom:pv('
    '),components:qe})},Nu=(s,F,Z)=>cu({title:Z.shared.providers.translate(s),draggable:Z.dialog.isDraggableModal()},F,Z.shared.providers),nd=(s,F,Z,ue)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":Z.translate(s)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${ue.getOr(0)}px`,position:"absolute"}},behaviours:F,components:[{dom:pv('
    ')}]}),wu=(s,F,Z)=>({onClose:()=>Z.closeWindow(),onBlock:ue=>{const we=aa(s().element,".tox-dialog__header").map(Be=>Ql(Be));Lf.setBusy(s(),(Be,qe)=>nd(ue.message,qe,F,we))},onUnblock:()=>{Lf.setIdle(s())}}),Ou="tox-dialog--fullscreen",fh="tox-dialog--width-lg",Ig="tox-dialog--width-md",Xm=s=>{switch(s){case"large":return I.some(fh);case"medium":return I.some(Ig);default:return I.none()}},x0=(s,F)=>{const Z=Pt.fromDom(F.element.dom);$l(Z,Ou)||(th(Z,[fh,Ig]),Xm(s).each(ue=>wl(Z,ue)))},Dg=(s,F)=>{const Z=Pt.fromDom(s.element.dom),ue=QO(Z),we=ce(ue,Be=>Be===fh||Be===Ig).or(Xm(F));Bx(Z,[Ou,...we.toArray()])},ux=(s,F,Z)=>vi(xp({...s,firstTabstop:1,lazySink:Z.shared.getSink,extraBehaviours:[WC({}),...s.extraBehaviours],onEscape:ue=>{Sa(ue,I2)},dialogEvents:F,eventOrder:{[lp()]:[kn.name(),Wu.name()],[zd()]:["scroll-lock",kn.name(),"messages","dialog-events","alloy.base.behaviour"],[fp()]:["alloy.base.behaviour","dialog-events","messages",kn.name(),"scroll-lock"]}})),Z2=(s,F={})=>{const Z=ue=>{const we=oe(ue.items,Be=>{const qe=Ge(F,Be.name).getOr(xi(!1));return{...Be,storage:qe}});return{...ue,items:we}};return oe(s,ue=>ue.type==="menu"?Z(ue):ue)},hO=s=>se(s,(F,Z)=>Z.type==="menu"?se(Z.items,(we,Be)=>(we[Be.name]=Be.storage,we),F):F,{}),xA=(s,F)=>[L_(Sm(),x$),s(tk,(Z,ue,we,Be)=>{hp(vr(Be.element)).fold(v,a0),F.onClose(),ue.onClose()}),s(I2,(Z,ue,we,Be)=>{ue.onCancel(Z),Sa(Be,tk)}),fo(kP,(Z,ue)=>F.onUnblock()),fo(IC,(Z,ue)=>F.onBlock(ue.event))],fx=(s,F)=>{const Z=(we,Be)=>fo(we,(qe,ft)=>{ue(qe,(gt,At)=>{Be(s(),gt,ft.event,qe)})}),ue=(we,Be)=>{kn.getState(we).get().each(qe=>{Be(qe,we)})};return[...xA(Z,F),Z(Dy,(we,Be,qe)=>{Be.onAction(we,{name:qe.name})})]},$k=(s,F,Z)=>{const ue=(Be,qe)=>fo(Be,(ft,gt)=>{we(ft,(At,$t)=>{qe(s(),At,gt.event,ft)})}),we=(Be,qe)=>{kn.getState(Be).get().each(ft=>{qe(ft.internalDialog,Be)})};return[...xA(ue,F),ue(c4,(Be,qe)=>qe.onSubmit(Be)),ue(tm,(Be,qe,ft)=>{qe.onChange(Be,{name:ft.name})}),ue(Dy,(Be,qe,ft,gt)=>{const At=()=>gt.getSystem().isConnected()?Li.focusIn(gt):void 0,$t=wn=>Go(wn,"disabled")||co(wn,"aria-disabled").exists(Mn=>Mn==="true"),on=vr(gt.element),yn=hp(on);qe.onAction(Be,{name:ft.name,value:ft.value}),hp(on).fold(At,wn=>{$t(wn)||yn.exists(Mn=>So(wn,Mn)&&$t(Mn))?At():Z().toOptional().filter(Mn=>!So(Mn.element,wn)).each(At)})}),ue(gN,(Be,qe,ft)=>{qe.onTabChange(Be,{newTabName:ft.name,oldTabName:ft.oldName})}),Sh(Be=>{const qe=s();hi.setValue(Be,qe.getData())})]},lQ=(s,F)=>u8(s,s.type,F),Bh=(s,F,Z)=>ce(F,ue=>ue.name===Z).bind(ue=>ue.memento.getOpt(s)),pO=(s,F)=>{const Z=F.map(ft=>ft.footerButtons).getOr([]),ue=ee(Z,ft=>ft.align==="start"),we=(ft,gt)=>bv.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${ft}`]},components:oe(gt,At=>At.memento.asSpec())}),Be=we("start",ue.pass),qe=we("end",ue.fail);return[Be,qe]},wL=(s,F,Z)=>{const ue=(we,Be)=>{const qe=oe(Be.buttons,gt=>{const At=qs(lQ(gt,Z));return{name:gt.name,align:gt.align,memento:At}}),ft=gt=>Bh(we,qe,gt);return I.some({lookupByName:ft,footerButtons:qe})};return{dom:pv(''),components:[],behaviours:Do([kn.config({channel:`${O$}-${F}`,initialData:s,updateState:ue,renderComponents:pO})])}},OL=(s,F,Z)=>wL(s,F,Z),kv=(s,F,Z)=>Lf.parts.footer(wL(s,F,Z)),q2=(s,F)=>{if(s.getRoot().getSystem().isConnected()){const ue=as.getCurrent(s.getFormWrapper()).getOr(s.getFormWrapper());return tO.getField(ue,F).orThunk(()=>s.getFooter().bind(qe=>kn.getState(qe).get()).bind(qe=>qe.lookupByName(F)))}else return I.none()},Yr=(s,F)=>{const Z=s.getRoot();return kn.getState(Z).get().map(ue=>Nt(jt("data",ue.dataValidator,F))).getOr(F)},Gr=(s,F,Z)=>{const ue=Mn=>{const Xn=s.getRoot();Xn.getSystem().isConnected()&&Mn(Xn)},wn={getData:()=>{const Mn=s.getRoot(),Xn=Mn.getSystem().isConnected()?s.getFormWrapper():Mn,Br=hi.getValue(Xn),or=Ue(Z,Mr=>Mr.get());return{...Br,...or}},setData:Mn=>{ue(Xn=>{const Br=wn.getData(),or=nl(Br,Mn),Mr=Yr(s,or),kr=s.getFormWrapper();hi.setValue(kr,Mr),We(Z,(yo,Xr)=>{ht(or,Xr)&&yo.set(or[Xr])})})},setEnabled:(Mn,Xn)=>{q2(s,Mn).each(Xn?ea.enable:ea.disable)},focus:Mn=>{q2(s,Mn).each(oa.focus)},block:Mn=>{if(!n(Mn))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");ue(Xn=>{Ri(Xn,IC,{message:Mn})})},unblock:()=>{ue(Mn=>{Sa(Mn,kP)})},showTab:Mn=>{ue(Xn=>{const Br=s.getBody();kn.getState(Br).get().exists(Mr=>Mr.isTabPanel())&&as.getCurrent(Br).each(Mr=>{Ia.showTab(Mr,Mn)})})},redial:Mn=>{ue(Xn=>{const Br=s.getId(),or=F(Mn),Mr=Z2(or.internalDialog.buttons,Z);Xn.getSystem().broadcastOn([`${GC}-${Br}`],or),Xn.getSystem().broadcastOn([`${_$}-${Br}`],or.internalDialog),Xn.getSystem().broadcastOn([`${w$}-${Br}`],or.internalDialog),Xn.getSystem().broadcastOn([`${O$}-${Br}`],{...or.internalDialog,buttons:Mr}),wn.setData(or.initialData)})},close:()=>{ue(Mn=>{Sa(Mn,tk)})},toggleFullscreen:s.toggleFullscreen};return wn},Xo=(s,F,Z)=>{const ue=fi("dialog"),we=s.internalDialog,Be=Nu(we.title,ue,Z),qe=xi(we.size),ft=kr=>q2(or,kr),gt=Xm(qe.get()).toArray(),At=(kr,yo)=>(qe.set(yo.internalDialog.size),x0(yo.internalDialog.size,kr),I.some(yo)),$t=Xa({body:we.body,initialData:we.initialData},ue,Z,ft),on=Z2(we.buttons),yn=hO(on),wn=_t(on.length!==0,kv({buttons:on},ue,Z)),Mn=$k(()=>Mr,wu(()=>Br,Z.shared.providers,F),Z.shared.getSink),Xn={id:ue,header:Be,body:$t,footer:wn,extraClasses:gt,extraBehaviours:[kn.config({channel:`${GC}-${ue}`,updateState:At,initialData:s})],extraStyles:{}},Br=ux(Xn,Mn,Z),or=(()=>{const kr=()=>{const Xr=Lf.getBody(Br);return as.getCurrent(Xr).getOr(Xr)},yo=()=>{Dg(Br,qe.get())};return{getId:x(ue),getRoot:x(Br),getBody:()=>Lf.getBody(Br),getFooter:()=>Lf.getFooter(Br),getFormWrapper:kr,toggleFullscreen:yo}})(),Mr=Gr(or,F.redial,yn);return{dialog:Br,instanceApi:Mr}},Vo=(s,F,Z,ue=!1,we)=>{const Be=fi("dialog"),qe=fi("dialog-label"),ft=fi("dialog-content"),gt=s.internalDialog,At=Ci=>q2(Jo,Ci),$t=xi(gt.size),on=Xm($t.get()).toArray(),yn=(Ci,mi)=>($t.set(mi.internalDialog.size),x0(mi.internalDialog.size,Ci),we(),I.some(mi)),wn=qs(Rc({title:gt.title,draggable:!0},Be,qe,Z.shared.providers)),Mn=qs(Va({body:gt.body,initialData:gt.initialData},Be,ft,Z,ue,At)),Xn=Z2(gt.buttons),Br=hO(Xn),or=_t(Xn.length!==0,qs(OL({buttons:Xn},Be,Z))),Mr=$k(()=>ho,{onBlock:Ci=>{Sv.block(Xr,(mi,qi)=>{const Fi=wn.getOpt(Xr).map(Os=>Ql(Os.element));return nd(Ci.message,qi,Z.shared.providers,Fi)})},onUnblock:()=>{Sv.unblock(Xr)},onClose:()=>F.closeWindow()},Z.shared.getSink),kr="tox-dialog-inline",yo=rf().os,Xr=vi({dom:{tag:"div",classes:["tox-dialog",kr,...on],attributes:{role:"dialog",...yo.isMacOS()?{"aria-label":gt.title}:{"aria-labelledby":qe}}},eventOrder:{[lp()]:[kn.name(),Wu.name()],[cp()]:["execute-on-form"],[zd()]:["reflecting","execute-on-form"]},behaviours:Do([Li.config({mode:"cyclic",onEscape:Ci=>(Sa(Ci,tk),I.some(!0)),useTabstopAt:Ci=>!g4(Ci)&&(ar(Ci)!=="button"||ao(Ci,"disabled")!=="disabled"),firstTabstop:1}),kn.config({channel:`${GC}-${Be}`,updateState:yn,initialData:s}),oa.config({}),Ta("execute-on-form",Mr.concat([Wv(Sm(),(Ci,mi)=>{Li.focusIn(Ci)}),fo(Jg(),(Ci,mi)=>{Ci.getSystem().broadcastOn([KC],{newFocus:mi.event.newFocus})})])),Sv.config({getRoot:()=>I.some(Xr)}),da.config({}),WC({})]),components:[wn.asSpec(),Mn.asSpec(),...or.map(Ci=>Ci.asSpec()).toArray()]}),No=()=>{Dg(Xr,$t.get())},Jo={getId:x(Be),getRoot:x(Xr),getFooter:()=>or.map(Ci=>Ci.get(Xr)),getBody:()=>Mn.get(Xr),getFormWrapper:()=>{const Ci=Mn.get(Xr);return as.getCurrent(Ci).getOr(Ci)},toggleFullscreen:No},ho=Gr(Jo,F.redial,Br);return{dialog:Xr,instanceApi:ho}};var Gi=tinymce.util.Tools.resolve("tinymce.util.URI");const ts=s=>{const F=qe=>{s.getSystem().isConnected()&&qe(s)};return{block:qe=>{if(!n(qe))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");F(ft=>{Ri(ft,IC,{message:qe})})},unblock:()=>{F(qe=>{Sa(qe,kP)})},close:()=>{F(qe=>{Sa(qe,tk)})},sendMessage:qe=>{F(ft=>{ft.getSystem().broadcastOn([n9],qe)})}}},Lc=["insertContent","setContent","execCommand","close","block","unblock"],_0=s=>c(s)&&Lc.indexOf(s.mceAction)!==-1,_A=s=>!_0(s)&&c(s)&&ht(s,"mceAction"),Noe=(s,F,Z)=>{switch(Z.mceAction){case"insertContent":s.insertContent(Z.content);break;case"setContent":s.setContent(Z.content);break;case"execCommand":const ue=w(Z.ui)?Z.ui:!1;s.execCommand(Z.cmd,ue,Z.value);break;case"close":F.close();break;case"block":F.block(Z.message);break;case"unblock":F.unblock();break}},wA=(s,F,Z,ue)=>{const we=fi("dialog"),Be=Nu(s.title,we,ue),qe=If(s),ft=s.buttons.bind(kr=>kr.length===0?I.none():I.some(kv({buttons:kr},we,ue))),gt=fx(()=>Mr,wu(()=>or,ue.shared.providers,F)),At={...s.height.fold(()=>({}),kr=>({height:kr+"px","max-height":kr+"px"})),...s.width.fold(()=>({}),kr=>({width:kr+"px","max-width":kr+"px"}))},$t=s.width.isNone()&&s.height.isNone()?["tox-dialog--width-lg"]:[],on=new Gi(s.url,{base_uri:new Gi(window.location.href)}),yn=`${on.protocol}://${on.host}${on.port?":"+on.port:""}`,wn=js(),Mn=(kr,yo)=>I.some(yo),Xn=[kn.config({channel:`${GC}-${we}`,updateState:Mn,initialData:s}),Ta("messages",[Ll(()=>{const kr=_d(Pt.fromDom(window),"message",yo=>{if(on.isSameOrigin(new Gi(yo.raw.origin))){const Xr=yo.raw.data;_0(Xr)?Noe(Z,Mr,Xr):_A(Xr)&&s.onMessage(Mr,Xr)}});wn.set(kr)}),Sh(wn.clear)]),Wu.config({channels:{[n9]:{onReceive:(kr,yo)=>{aa(kr.element,"iframe").each(Xr=>{const No=Xr.dom.contentWindow;a(No)&&No.postMessage(yo,yn)})}}}})],or=ux({id:we,header:Be,body:qe,footer:ft,extraClasses:$t,extraBehaviours:Xn,extraStyles:At},gt,ue),Mr=ts(or);return{dialog:or,instanceApi:Mr}},dx=s=>{const F=s.shared;return{open:(ue,we)=>{const Be=()=>{Lf.hide(At),we()},qe=qs(u8({name:"close-alert",text:"OK",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"cancel",s)),ft=m1(),gt=Pg(Be,F.providers),At=vi(xp({lazySink:()=>F.getSink(),header:Yu(ft,gt),body:Dh(ue,F.providers),footer:I.some(om(Rg([],[qe.asSpec()]))),onEscape:Be,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[fo(I2,Be)],eventOrder:{}}));Lf.show(At);const $t=qe.get(At);oa.focus($t)}}},cQ=s=>{const F=s.shared;return{open:(ue,we)=>{const Be=yn=>{Lf.hide($t),we(yn)},qe=qs(u8({name:"yes",text:"Yes",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"submit",s)),ft=u8({name:"no",text:"No",primary:!1,buttonType:I.some("secondary"),align:"end",enabled:!0,icon:I.none()},"cancel",s),gt=m1(),At=Pg(()=>Be(!1),F.providers),$t=vi(xp({lazySink:()=>F.getSink(),header:Yu(gt,At),body:Dh(ue,F.providers),footer:I.some(om(Rg([],[ft,qe.asSpec()]))),onEscape:()=>Be(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[fo(I2,()=>Be(!1)),fo(c4,()=>Be(!0))],eventOrder:{}}));Lf.show($t);const on=qe.get($t);oa.focus(on)}}},SL=(s,F)=>Nt(jt("data",F,s)),kL=s=>J5(s,".tox-alert-dialog")||J5(s,".tox-confirm-dialog"),uQ=(s,F,Z)=>F&&Z?[]:[Dl.config({contextual:{lazyContext:()=>I.some(Ya(Pt.fromDom(s.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:ue=>Kb(s,ue.element).map(Be=>({bounds:zw(Be),optScrollEnv:I.some({currentScrollTop:Be.element.dom.scrollTop,scrollElmTop:pc(Be.element).top})})).getOrThunk(()=>({bounds:xl(),optScrollEnv:I.none()}))})],$oe=s=>{const F=s.editor,Z=W3(F),ue=dx(s.backstages.dialog),we=cQ(s.backstages.dialog),Be=(Mn,Xn,Br)=>{if(!y(Xn)){if(Xn.inline==="toolbar")return At(Mn,s.backstages.popup.shared.anchors.inlineDialog(),Br,Xn);if(Xn.inline==="bottom")return $t(Mn,s.backstages.popup.shared.anchors.inlineBottomDialog(),Br,Xn);if(Xn.inline==="cursor")return At(Mn,s.backstages.popup.shared.anchors.cursor(),Br,Xn)}return gt(Mn,Br)},qe=(Mn,Xn)=>ft(Mn,Xn),ft=(Mn,Xn)=>{const Br=or=>{const Mr=wA(or,{closeWindow:()=>{Lf.hide(Mr.dialog),Xn(Mr.instanceApi)}},F,s.backstages.dialog);return Lf.show(Mr.dialog),Mr.instanceApi};return be.openUrl(Br,Mn)},gt=(Mn,Xn)=>{const Br=(or,Mr,kr)=>{const yo=Mr,No=Xo({dataValidator:kr,initialData:yo,internalDialog:or},{redial:be.redial,closeWindow:()=>{Lf.hide(No.dialog),Xn(No.instanceApi)}},s.backstages.dialog);return Lf.show(No.dialog),No.instanceApi.setData(yo),No.instanceApi};return be.open(Br,Mn)},At=(Mn,Xn,Br,or)=>{const Mr=(kr,yo,Xr)=>{const No=SL(yo,Xr),Jo=os(),ho=s.backstages.popup.shared.header.isPositionedAtTop(),Ci={dataValidator:Xr,initialData:No,internalDialog:kr},mi=()=>Jo.on(vs=>{hc.reposition(vs),(!Z||!ho)&&Dl.refresh(vs)}),qi=Vo(Ci,{redial:be.redial,closeWindow:()=>{Jo.on(hc.hide),F.off("ResizeEditor",mi),Jo.clear(),Br(qi.instanceApi)}},s.backstages.popup,or.ariaAttrs,mi),Fi=vi(hc.sketch({lazySink:s.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:or.persistent?{event:"doNotDismissYet"}:{},...ho?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Do([Ta("window-manager-inline-events",[fo(I0(),(vs,Ha)=>{Sa(qi.dialog,I2)})]),...uQ(F,Z,ho)]),isExtraPart:(vs,Ha)=>kL(Ha)}));Jo.set(Fi);const Os=()=>{const vs=F.inline?Vr():Pt.fromDom(F.getContainer()),Ha=Ya(vs);return I.some(Ha)};return hc.showWithinBounds(Fi,na(qi.dialog),{anchor:Xn},Os),(!Z||!ho)&&(Dl.refresh(Fi),F.on("ResizeEditor",mi)),qi.instanceApi.setData(No),Li.focusIn(qi.dialog),qi.instanceApi};return be.open(Mr,Mn)},$t=(Mn,Xn,Br,or)=>{const Mr=(kr,yo,Xr)=>{const No=SL(yo,Xr),Jo=os(),ho=s.backstages.popup.shared.header.isPositionedAtTop(),Ci={dataValidator:Xr,initialData:No,internalDialog:kr},mi=()=>Jo.on(vs=>{hc.reposition(vs),Dl.refresh(vs)}),qi=Vo(Ci,{redial:be.redial,closeWindow:()=>{Jo.on(hc.hide),F.off("ResizeEditor ScrollWindow ElementScroll",mi),Jo.clear(),Br(qi.instanceApi)}},s.backstages.popup,or.ariaAttrs,mi),Fi=vi(hc.sketch({lazySink:s.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:or.persistent?{event:"doNotDismissYet"}:{},...ho?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Do([Ta("window-manager-inline-events",[fo(I0(),(vs,Ha)=>{Sa(qi.dialog,I2)})]),Dl.config({contextual:{lazyContext:()=>I.some(Ya(Pt.fromDom(F.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:vs=>Kb(F,vs.element).map(Ho=>({bounds:zw(Ho),optScrollEnv:I.some({currentScrollTop:Ho.element.dom.scrollTop,scrollElmTop:pc(Ho.element).top})})).getOrThunk(()=>({bounds:xl(),optScrollEnv:I.none()}))})]),isExtraPart:(vs,Ha)=>kL(Ha)}));Jo.set(Fi);const Os=()=>s.backstages.popup.shared.getSink().toOptional().bind(vs=>{const Ha=Kb(F,vs.element),Ho=15,wi=Ha.map(ji=>zw(ji)).getOr(xl()),_a=Ya(Pt.fromDom(F.getContentAreaContainer())),Ki=fl(_a,wi);return I.some(ms(Ki.x,Ki.y,Ki.width,Ki.height-Ho))});return hc.showWithinBounds(Fi,na(qi.dialog),{anchor:Xn},Os),Dl.refresh(Fi),F.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",mi),qi.instanceApi.setData(No),Li.focusIn(qi.dialog),qi.instanceApi};return be.open(Mr,Mn)};return{open:Be,openUrl:qe,alert:(Mn,Xn)=>{ue.open(Mn,Xn)},close:Mn=>{Mn.close()},confirm:(Mn,Xn)=>{we.open(Mn,Xn)}}},Ga=s=>{JB(s),hX(s),mj(s)};var no=()=>{af.add("silver",s=>{Ga(s);let F=()=>xl();const{dialogs:Z,popups:ue,renderUI:we}=qre(s,{getPopupSinkBounds:()=>F()}),Be=()=>{const At=we();return Kb(s,ue.getMothership().element).each(on=>{F=()=>zw(on)}),At};aG.register(s,ue.backstage.shared);const qe=$oe({editor:s,backstages:{popup:ue.backstage,dialog:Z.backstage}}),ft=os(),gt=()=>mY(s,{backstage:ue.backstage},ue.getMothership(),ft);return{renderUI:Be,getWindowManagerImpl:x(qe),getNotificationManagerImpl:gt}})};no()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"math-equation":'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"revision-history":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":'',"export-pdf":'',"export-word":'',"import-word":''}});(function(){const t=m=>{let v=m;return{get:()=>v,set:A=>{v=A}}};var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.Env");const f=m=>m.dispatch("ResizeEditor"),P=m=>v=>v.options.get(m),d=m=>{const v=m.options.register;v("autoresize_overflow_padding",{processor:"number",default:1}),v("autoresize_bottom_margin",{processor:"number",default:50})},l=P("min_height"),n=P("max_height"),c=P("autoresize_overflow_padding"),b=P("autoresize_bottom_margin"),i=m=>m.plugins.fullscreen&&m.plugins.fullscreen.isFullscreen(),O=(m,v)=>{const _=m.getBody();_&&(_.style.overflowY=v?"":"hidden",v||(_.scrollTop=0))},w=(m,v,_,S)=>{var A;const x=parseInt((A=m.getStyle(v,_,S))!==null&&A!==void 0?A:"",10);return isNaN(x)?0:x},y=m=>{if((m==null?void 0:m.type.toLowerCase())==="setcontent"){const v=m;return v.selection===!0||v.paste===!0}else return!1},p=(m,v,_,S)=>{var A;const x=m.dom,R=m.getDoc();if(!R)return;if(i(m)){O(m,!0);return}const M=R.documentElement,T=S?S():c(m),E=(A=l(m))!==null&&A!==void 0?A:m.getElement().offsetHeight;let C=E;const L=w(x,M,"margin-top",!0),D=w(x,M,"margin-bottom",!0);let k=M.offsetHeight+L+D+T;k<0&&(k=0);const I=m.getContainer().offsetHeight,z=m.getContentAreaContainer().offsetHeight,$=I-z;k+$>E&&(C=k+$);const Q=n(m);Q&&C>Q?(C=Q,O(m,!0)):O(m,!1);const j=v.get();if(j.set&&(m.dom.setStyles(m.getDoc().documentElement,{"min-height":0}),m.dom.setStyles(m.getBody(),{"min-height":"inherit"})),C!==j.totalHeight&&(k-T!==j.contentHeight||!j.set)){const U=C-j.totalHeight;if(x.setStyle(m.getContainer(),"height",C+"px"),v.set({totalHeight:C,contentHeight:k,set:!0}),f(m),o.browser.isSafari()&&(o.os.isMacOS()||o.os.isiOS())){const X=m.getWin();X.scrollTo(X.pageXOffset,X.pageYOffset)}m.hasFocus()&&y(_)&&m.selection.scrollIntoView(),(o.browser.isSafari()||o.browser.isChromium())&&U<0&&p(m,v,_,S)}},a=(m,v)=>{const _=()=>b(m);m.on("init",S=>{const A=c(m),x=m.dom;x.setStyles(m.getDoc().documentElement,{height:"auto"}),o.browser.isEdge()||o.browser.isIE()?x.setStyles(m.getBody(),{paddingLeft:A,paddingRight:A,"min-height":0}):x.setStyles(m.getBody(),{paddingLeft:A,paddingRight:A}),p(m,v,S,_)}),m.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",S=>{p(m,v,S,_)})},u=(m,v)=>{m.addCommand("mceAutoResize",()=>{p(m,v)})};var h=()=>{e.add("autoresize",m=>{if(d(m),m.options.isSet("resize")||m.options.set("resize",!1),!m.inline){const v=t({totalHeight:0,contentHeight:0,set:!1});u(m,v),a(m,v)}})};h()})();var KNe=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],JNe=function(t){return KNe.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},e$e=function(t,e,o){Object.keys(e).filter(JNe).forEach(function(f){var P=e[f];typeof P=="function"&&(f==="onInit"?P(t,o):o.on(f.substring(2),function(d){return P(d,o)}))})},t$e=function(t,e,o,f){var P=t.modelEvents?t.modelEvents:null,d=Array.isArray(P)?P.join(" "):P;Ni(f,function(l,n){o&&typeof l=="string"&&l!==n&&l!==o.getContent({format:t.outputFormat})&&o.setContent(l)}),o.on(d||"change input undo redo",function(){e.emit("update:modelValue",o.getContent({format:t.outputFormat}))})},n$e=function(t,e,o,f,P,d){f.setContent(d()),o.attrs["onUpdate:modelValue"]&&t$e(e,o,f,P),e$e(t,o.attrs,f)},b0e=0,pOe=function(t){var e=Date.now(),o=Math.floor(Math.random()*1e9);return b0e++,t+"_"+o+b0e+String(e)},r$e=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},x0e=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},o$e=function(t,e){return x0e(t).concat(x0e(e))},i$e=function(t){return t==null},_0e=function(){return{listeners:[],scriptId:pOe("tiny-script"),scriptLoaded:!1}},a$e=function(){var t=_0e(),e=function(P,d,l,n){var c=d.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=P,c.src=l;var b=function(){c.removeEventListener("load",b),n()};c.addEventListener("load",b),d.head&&d.head.appendChild(c)},o=function(P,d,l){t.scriptLoaded?l():(t.listeners.push(l),P.getElementById(t.scriptId)||e(t.scriptId,P,d,function(){t.listeners.forEach(function(n){return n()}),t.scriptLoaded=!0}))},f=function(){t=_0e()};return{load:o,reinitialize:f}},s$e=a$e(),l$e=function(){return typeof window<"u"?window:global},Xk=function(){var t=l$e();return t&&t.tinymce?t.tinymce:null},c$e={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},J2=globalThis&&globalThis.__assign||function(){return J2=Object.assign||function(t){for(var e,o=1,f=arguments.length;od.createCell(c))},V1e({code:Oo(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Bo(),la(l,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=c=>o.cellData.code=c),init:P.init,onKeyUp:d.saveCell},null,8,["modelValue","init","onKeyUp"])):Wa("",!0)]),_:2},[t.$devMode&&d.isAppRoute||!t.$devMode?{name:"outcome",fn:Oo(()=>[Zt(l,{modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=c=>o.cellData.code=c),init:P.app_init,disabled:!0},null,8,["modelValue","init"])]),key:"0"}:void 0]),1032,["cell-id","is-dev-mode","hide-cell","cell-name","onSave","onDelete"])}const mOe=hm(h$e,[["render",p$e]]),m$e=36,w0e=1,g$e=2,QL=3,aae=4,v$e=5,y$e=6,b$e=7,x$e=8,_$e=9,w$e=10,O$e=11,S$e=12,k$e=13,T$e=14,C$e=15,A$e=16,M$e=17,O0e=18,E$e=19,gOe=20,vOe=21,S0e=22,P$e=23,R$e=24;function ile(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57}function L$e(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function Kk(t,e,o){for(let f=!1;;){if(t.next<0)return;if(t.next==e&&!f){t.advance();return}f=o&&!f&&t.next==92,t.advance()}}function I$e(t){for(;;){if(t.next<0||t.peek(1)<0)return;if(t.next==36&&t.peek(1)==36){t.advance(2);return}t.advance()}}function D$e(t,e){let o="[{<(".indexOf(String.fromCharCode(e)),f=o<0?e:"]}>)".charCodeAt(o);for(;;){if(t.next<0)return;if(t.next==f&&t.peek(1)==39){t.advance(2);return}t.advance()}}function yOe(t,e){for(;!(t.next!=95&&!ile(t.next));)e!=null&&(e+=String.fromCharCode(t.next)),t.advance();return e}function B$e(t){if(t.next==39||t.next==34||t.next==96){let e=t.next;t.advance(),Kk(t,e,!1)}else yOe(t)}function k0e(t,e){for(;t.next==48||t.next==49;)t.advance();e&&t.next==e&&t.advance()}function T0e(t,e){for(;;){if(t.next==46){if(e)break;e=!0}else if(t.next<48||t.next>57)break;t.advance()}if(t.next==69||t.next==101)for(t.advance(),(t.next==43||t.next==45)&&t.advance();t.next>=48&&t.next<=57;)t.advance()}function C0e(t){for(;!(t.next<0||t.next==10);)t.advance()}function Gk(t,e){for(let o=0;o!=&|~^/",specialVar:"?",identifierQuotes:'"',words:bOe(F$e,z$e)};function N$e(t,e,o,f){let P={};for(let d in ale)P[d]=(t.hasOwnProperty(d)?t:ale)[d];return e&&(P.words=bOe(e,o||"",f)),P}function xOe(t){return new A0(e=>{var o;let{next:f}=e;if(e.advance(),Gk(f,sae)){for(;Gk(e.next,sae);)e.advance();e.acceptToken(m$e)}else if(f==36&&e.next==36&&t.doubleDollarQuotedStrings)I$e(e),e.acceptToken(QL);else if(f==39||f==34&&t.doubleQuotedStrings)Kk(e,f,t.backslashEscapes),e.acceptToken(QL);else if(f==35&&t.hashComments||f==47&&e.next==47&&t.slashComments)C0e(e),e.acceptToken(w0e);else if(f==45&&e.next==45&&(!t.spaceAfterDashes||e.peek(1)==32))C0e(e),e.acceptToken(w0e);else if(f==47&&e.next==42){e.advance();for(let P=1;;){let d=e.next;if(e.next<0)break;if(e.advance(),d==42&&e.next==47){if(P--,e.advance(),!P)break}else d==47&&e.next==42&&(P++,e.advance())}e.acceptToken(g$e)}else if((f==101||f==69)&&e.next==39)e.advance(),Kk(e,39,!0);else if((f==110||f==78)&&e.next==39&&t.charSetCasts)e.advance(),Kk(e,39,t.backslashEscapes),e.acceptToken(QL);else if(f==95&&t.charSetCasts)for(let P=0;;P++){if(e.next==39&&P>1){e.advance(),Kk(e,39,t.backslashEscapes),e.acceptToken(QL);break}if(!ile(e.next))break;e.advance()}else if(t.plsqlQuotingMechanism&&(f==113||f==81)&&e.next==39&&e.peek(1)>0&&!Gk(e.peek(1),sae)){let P=e.peek(1);e.advance(2),D$e(e,P),e.acceptToken(QL)}else if(f==40)e.acceptToken(b$e);else if(f==41)e.acceptToken(x$e);else if(f==123)e.acceptToken(_$e);else if(f==125)e.acceptToken(w$e);else if(f==91)e.acceptToken(O$e);else if(f==93)e.acceptToken(S$e);else if(f==59)e.acceptToken(k$e);else if(t.unquotedBitLiterals&&f==48&&e.next==98)e.advance(),k0e(e),e.acceptToken(S0e);else if((f==98||f==66)&&(e.next==39||e.next==34)){const P=e.next;e.advance(),t.treatBitsAsBytes?(Kk(e,P,t.backslashEscapes),e.acceptToken(P$e)):(k0e(e,P),e.acceptToken(S0e))}else if(f==48&&(e.next==120||e.next==88)||(f==120||f==88)&&e.next==39){let P=e.next==39;for(e.advance();L$e(e.next);)e.advance();P&&e.next==39&&e.advance(),e.acceptToken(aae)}else if(f==46&&e.next>=48&&e.next<=57)T0e(e,!0),e.acceptToken(aae);else if(f==46)e.acceptToken(T$e);else if(f>=48&&f<=57)T0e(e,!1),e.acceptToken(aae);else if(Gk(f,t.operatorChars)){for(;Gk(e.next,t.operatorChars);)e.advance();e.acceptToken(C$e)}else if(Gk(f,t.specialVar))e.next==f&&e.advance(),B$e(e),e.acceptToken(M$e);else if(Gk(f,t.identifierQuotes))Kk(e,f,!1),e.acceptToken(E$e);else if(f==58||f==44)e.acceptToken(A$e);else if(ile(f)){let P=yOe(e,String.fromCharCode(f));e.acceptToken(e.next==46?O0e:(o=t.words[P.toLowerCase()])!==null&&o!==void 0?o:O0e)}})}const _Oe=xOe(ale),$$e=uS.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,_Oe],topRules:{Script:[0,25]},tokenPrec:0});function sle(t){let e=t.cursor().moveTo(t.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function oD(t,e){let o=t.sliceString(e.from,e.to),f=/^([`'"])(.*)\1$/.exec(o);return f?f[2]:o}function EZ(t){return t&&(t.name=="Identifier"||t.name=="QuotedIdentifier")}function V$e(t,e){if(e.name=="CompositeIdentifier"){let o=[];for(let f=e.firstChild;f;f=f.nextSibling)EZ(f)&&o.push(oD(t,f));return o}return[oD(t,e)]}function A0e(t,e){for(let o=[];;){if(!e||e.name!=".")return o;let f=sle(e);if(!EZ(f))return o;o.unshift(oD(t,f)),e=sle(f)}}function U$e(t,e){let o=Gu(t).resolveInner(e,-1),f=Q$e(t.doc,o);return o.name=="Identifier"||o.name=="QuotedIdentifier"||o.name=="Keyword"?{from:o.from,quoted:o.name=="QuotedIdentifier"?t.doc.sliceString(o.from,o.from+1):null,parents:A0e(t.doc,sle(o)),aliases:f}:o.name=="."?{from:e,quoted:null,parents:A0e(t.doc,o),aliases:f}:{from:e,quoted:null,parents:[],empty:!0,aliases:f}}const j$e=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function Q$e(t,e){let o;for(let P=e;!o;P=P.parent){if(!P)return null;P.name=="Statement"&&(o=P)}let f=null;for(let P=o.firstChild,d=!1,l=null;P;P=P.nextSibling){let n=P.name=="Keyword"?t.sliceString(P.from,P.to).toLowerCase():null,c=null;if(!d)d=n=="from";else if(n=="as"&&l&&EZ(P.nextSibling))c=oD(t,P.nextSibling);else{if(n&&j$e.has(n))break;l&&EZ(P)&&(c=oD(t,P))}c&&(f||(f=Object.create(null)),f[c]=V$e(t,l)),l=/Identifier$/.test(P.name)?P:null}return f}function H$e(t,e){return t?e.map(o=>Object.assign(Object.assign({},o),{label:t+o.label+t,apply:void 0})):e}const Z$e=/^\w*$/,q$e=/^[`'"]?\w*[`'"]?$/;class Due{constructor(){this.list=[],this.children=void 0}child(e,o){let f=this.children||(this.children=Object.create(null)),P=f[e];return P||(e&&this.list.push(wOe(e,"type",o)),f[e]=new Due)}addCompletions(e){for(let o of e){let f=this.list.findIndex(P=>P.label==o.label);f>-1?this.list[f]=o:this.list.push(o)}}}function wOe(t,e,o){return/[^\w\xb5-\uffff]/.test(t)?{label:t,type:e,apply:o+t+o}:{label:t,type:e}}function W$e(t,e,o,f,P,d){var l;let n=new Due,c=((l=d==null?void 0:d.spec.identifierQuotes)===null||l===void 0?void 0:l[0])||'"',b=n.child(P||"",c);for(let i in t){let O=i.replace(/\\?\./g,y=>y=="."?"\0":y).split("\0"),w=O.length==1?b:n;for(let y of O)w=w.child(y.replace(/\\\./g,"."),c);for(let y of t[i])y&&w.list.push(typeof y=="string"?wOe(y,"property",c):y)}return e&&b.addCompletions(e),o&&n.addCompletions(o),n.addCompletions(b.list),f&&n.addCompletions(b.child(f,c).list),i=>{let{parents:O,from:w,quoted:y,empty:p,aliases:a}=U$e(i.state,i.pos);if(p&&!i.explicit)return null;a&&O.length==1&&(O=a[O[0]]||O);let u=n;for(let v of O){for(;!u.children||!u.children[v];)if(u==n)u=b;else if(u==b&&f)u=u.child(f,c);else return null;u=u.child(v,c)}let h=y&&i.state.sliceDoc(i.pos,i.pos+1)==y,m=u.list;return u==n&&a&&(m=m.concat(Object.keys(a).map(v=>({label:v,type:"constant"})))),{from:w,to:h?i.pos+1:void 0,options:H$e(y,m),validFor:y?q$e:Z$e}}}function Y$e(t,e){let o=Object.keys(t).map(f=>({label:e?f.toUpperCase():f,type:t[f]==vOe?"type":t[f]==gOe?"keyword":"variable",boost:-1}));return Mce(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],oq(o))}let X$e=$$e.configure({props:[OT.add({Statement:fI()}),gS.add({Statement(t){return{from:t.firstChild.to,to:t.to}},BlockComment(t){return{from:t.from+2,to:t.to-2}}}),mS({Keyword:Gn.keyword,Type:Gn.typeName,Builtin:Gn.standard(Gn.name),Bits:Gn.number,Bytes:Gn.string,Bool:Gn.bool,Null:Gn.null,Number:Gn.number,String:Gn.string,Identifier:Gn.name,QuotedIdentifier:Gn.special(Gn.string),SpecialVar:Gn.special(Gn.name),LineComment:Gn.lineComment,BlockComment:Gn.blockComment,Operator:Gn.operator,"Semi Punctuation":Gn.punctuation,"( )":Gn.paren,"{ }":Gn.brace,"[ ]":Gn.squareBracket})]});class Bue{constructor(e,o,f){this.dialect=e,this.language=o,this.spec=f}get extension(){return this.language.extension}static define(e){let o=N$e(e,e.keywords,e.types,e.builtin),f=lS.define({name:"sql",parser:X$e.configure({tokenizers:[{from:_Oe,to:xOe(o)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new Bue(o,f,e)}}function G$e(t,e=!1){return Y$e(t.dialect.words,e)}function K$e(t,e=!1){return t.language.data.of({autocomplete:G$e(t,e)})}function J$e(t){return t.schema?W$e(t.schema,t.tables,t.schemas,t.defaultTable,t.defaultSchema,t.dialect||zue):()=>null}function eVe(t){return t.schema?(t.dialect||zue).language.data.of({autocomplete:J$e(t)}):[]}function M0e(t={}){let e=t.dialect||zue;return new gT(e.language,[eVe(t),K$e(e,!!t.upperCaseKeywords)])}const zue=Bue.define({}),tVe={components:{cell:zq,codemirror:sq,"v-data-table":Iq},computed:{isAppRoute(){return _T().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode()},e=IO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)}]);return this.$devMode&&!this.isAppRoute?[Nv.highest(e),M0e(),mM,hM({override:[]})]:[jl.readOnly.of(!0),Nv.highest(e),M0e(),mM,hM({override:[]})]},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},inheritAttrs:!1,emits:["runCode","deleteCell","createCell","saveCell"],data(){return{isFocused:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0}},setup(){const t=Ai(null);return{view:t,handleReady:o=>{t.value=o.view}}},mounted(){},methods:{runCode(){this.$emit("runCode",this.cellData.id,this.cellData.nonReactive)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){this.$devMode&&this.$emit("saveCell",this.cellData.id,this.cellData.code,"","")},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},updateShowTable(t){this.cellData.showTable=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const nVe={key:2},rVe={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},oVe={class:"text-ellipsis app-static-name"},iVe={key:3},aVe={class:"text-caption text-disabled text-right"},sVe={class:"text-p"};function lVe(t,e,o,f,P,d){const l=Zd("codemirror"),n=Zd("cell");return Bo(),la(n,{"cell-type":"sql","cell-id":o.cellData.id,"hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,showTable:o.cellData.showTable,"cell-name":o.cellData.cellName,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:d.runCode,onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=c=>d.expandCodeUpdate(c)),onHideCode:e[6]||(e[6]=c=>d.hideCode(c)),onUpdateReactivity:e[7]||(e[7]=c=>d.updateReactivity(c)),onUpdateShowTable:e[8]||(e[8]=c=>d.updateShowTable(c)),onRenameCell:e[9]||(e[9]=c=>d.renameCell(c)),onAddCell:e[10]||(e[10]=c=>d.createCell(c))},{code:Oo(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Bo(),la(um,{key:0,modelValue:o.cellData.variable_name,"onUpdate:modelValue":e[0]||(e[0]=c=>o.cellData.variable_name=c),label:"Enter SQL variable name",density:"compact"},null,8,["modelValue"])):Wa("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Bo(),la(l,{key:1,modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=c=>o.cellData.code=c),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):(Bo(),Da("div",nVe,[o.cellData.hideCode?(Bo(),Da("h4",rVe,sc(o.cellData.cellName),1)):(Bo(),la(H_e,{key:1,modelValue:P.expanded,"onUpdate:modelValue":e[4]||(e[4]=c=>P.expanded=c)},{default:Oo(()=>[Zt(Q_e,{modelValue:P.expanded,"onUpdate:modelValue":e[3]||(e[3]=c=>P.expanded=c),"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Zt(_Z,{class:"text-bluegrey-darken-1"},{default:Oo(()=>[pa("h4",oVe,sc(o.cellData.cellName),1)]),_:1}),Zt(xZ,null,{default:Oo(()=>[Zt(l,{modelValue:o.cellData.code,"onUpdate:modelValue":e[2]||(e[2]=c=>o.cellData.code=c),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Bo(),Da("div",iVe,[pa("p",aVe,sc(d.shortcutText)+" to run",1)])):Wa("",!0)]),outcome:Oo(()=>[t.$devMode&&!d.isAppRoute||o.cellData.showTable?(Bo(!0),Da(ya,{key:0},ob(o.cellData.components,c=>(Bo(),la(bM,{key:c.id},{default:Oo(()=>[(Bo(),la(SI(c.component),Di(c,{modelValue:c.value,"onUpdate:modelValue":b=>c.value=b},{[eI(c.triggerEvent)]:d.runCode}),null,16,["modelValue","onUpdate:modelValue"]))]),_:2},1024))),128)):Wa("",!0),pa("div",sVe,sc(o.cellData.output),1)]),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","showTable","cell-name","is-dev-mode","onPlay","onDelete"])}const OOe=hm(tVe,[["render",lVe],["__scopeId","data-v-c042122a"]]),cVe={components:{codemirror:sq},data:()=>({updatingDependencies:!1,ztAliases:Kh}),emits:["updateDependencies"],props:{dependencies:{type:Object,required:!0},dependencyOutput:{type:Object,required:!0}},computed:{extensions(){return[jl.readOnly.of(!0),dOe(),mM]}},methods:{async updateDependencies(){this.dependencyOutput.isLoading=!0,this.$emit("updateDependencies",this.dependencies)}}},uVe=pa("span",{class:"text-h5"},"Add Dependencies",-1),fVe=pa("a",{href:"https://pip.pypa.io/en/stable/reference/requirements-file-format/",target:"_blank"},"pip requirements file specification",-1),dVe={class:"d-flex justify-center"};function hVe(t,e,o,f,P,d){const l=Zd("codemirror");return Bo(),la(Eq,{modelValue:t.updatingDependencies,"onUpdate:modelValue":e[3]||(e[3]=n=>t.updatingDependencies=n),width:"1024"},{activator:Oo(({props:n})=>[Zt(ps,Di({color:"bluegrey-darken-4"},n,{icon:"mdi-package",class:"text-bluegrey"}),null,16)]),default:Oo(()=>[Zt(BO,null,{default:Oo(()=>[Zt(PD,null,{default:Oo(()=>[uVe]),_:1}),Zt(n_e,null,{default:Oo(()=>[Cs(" Versions must adhere to "),fVe,Cs(". Examples: '==1.0.0' '!=1.5.0,>=1.4.1' etc. ")]),_:1}),Zt(m_,null,{default:Oo(()=>[(Bo(!0),Da(ya,null,ob(o.dependencies.dependencies,n=>(Bo(),la(Bf,null,{default:Oo(()=>[Zt(Dq,null,{default:Oo(()=>[Zt(hT,null,{default:Oo(()=>[Zt(um,{modelValue:n.package,"onUpdate:modelValue":c=>n.package=c,label:"Package (required)"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),Zt(hT,null,{default:Oo(()=>[Zt(um,{modelValue:n.version,"onUpdate:modelValue":c=>n.version=c,label:"Version"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),Zt(hT,{cols:"1"},{default:Oo(()=>[Zt(ps,{icon:"",color:"primary"},{default:Oo(()=>[Zt(Tl,{color:"black",onClick:c=>{var b;return(b=o.dependencies.dependencies)==null?void 0:b.splice(o.dependencies.dependencies.indexOf(n),1)}},{default:Oo(()=>[Cs("mdi-delete")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256)),Zt(Bf,{class:"d-flex justify-center align-center"},{default:Oo(()=>[Zt(ps,{icon:"mdi-plus",variant:"text",onClick:e[0]||(e[0]=n=>{var c;return(c=o.dependencies.dependencies)==null?void 0:c.push({package:"",version:""})}),text:"Add Dependency",class:"black--text"})]),_:1}),o.dependencyOutput.output?(Bo(),la(Bf,{key:0},{default:Oo(()=>[Zt(l,{modelValue:o.dependencyOutput.output,"onUpdate:modelValue":e[1]||(e[1]=n=>o.dependencyOutput.output=n),style:{height:"400px"},"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})):Wa("",!0)]),_:1}),Zt(t_e,null,{default:Oo(()=>[o.dependencyOutput.isLoading?Wa("",!0):(Bo(),la(ps,{key:0,color:"primary",variant:"flat",onClick:d.updateDependencies,text:"Install"},null,8,["onClick"])),pa("div",dVe,[o.dependencyOutput.isLoading?(Bo(),la(SD,{key:0,indeterminate:"",color:"primary"})):Wa("",!0)]),Zt($_e),Zt(ps,{color:"error",variant:"text",onClick:e[2]||(e[2]=n=>t.updatingDependencies=!1),text:"Close"})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const SOe=hm(cVe,[["render",hVe]]),E0e=Hg({__name:"CommentMenu",emits:["deleteComment","editComment"],setup(t,{emit:e}){const o=LD();return(f,P)=>(Bo(),la(hS,null,{activator:Oo(({props:d})=>[Zt(ps,Di({icon:`ztIcon:${wa(Kh).more}`},d,{variant:"plain",size:"small"}),null,16,["icon"])]),default:Oo(()=>[Zt(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Zt(Bf,{disabled:!wa(o).editorAvailable,onClick:P[0]||(P[0]=d=>e("editComment"))},{prepend:Oo(()=>[Zt(Tl,{icon:`ztIcon:${wa(Kh).edit}`},null,8,["icon"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Edit")]),_:1})]),_:1},8,["disabled"]),Zt(Bf,{"base-color":"error",onClick:P[1]||(P[1]=d=>e("deleteComment"))},{prepend:Oo(()=>[Zt(Tl,{icon:`ztIcon:${wa(Kh).delete}`},null,8,["icon"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Delete")]),_:1})]),_:1})]),_:1})]),_:1}))}}),pVe={class:"d-flex justify-end"},lae=Hg({__name:"CommentTextarea",props:{isSaving:Boolean,modelValue:String},emits:["cancel","submit","update:modelValue"],setup(t,{emit:e}){const o=ei(null),f=ei(null);return ag(()=>{var P,d;(P=f.value)==null||P.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(d=o.value)==null||d.focus()}),(P,d)=>(Bo(),Da("div",{class:"d-flex flex-column",style:{flex:"1"},ref_key:"commentEditContainer",ref:f},[Zt(RD,{"model-value":t.modelValue,ref_key:"commentEditTextArea",ref:o,"onUpdate:modelValue":d[0]||(d[0]=l=>e("update:modelValue",l)),variant:"outlined"},null,8,["model-value"]),pa("div",pVe,[Zt(ps,{variant:"text",onClick:d[1]||(d[1]=l=>e("cancel"))},{default:Oo(()=>[Cs("Cancel")]),_:1}),Zt(ps,{color:"primary",class:"ml-2",loading:t.isSaving,disabled:!t.modelValue||t.isSaving,onClick:d[2]||(d[2]=l=>e("submit"))},{default:Oo(()=>[Cs("Submit")]),_:1},8,["loading","disabled"])])],512))}});var Gm=[];for(var cae=0;cae<256;++cae)Gm.push((cae+256).toString(16).slice(1));function mVe(t,e=0){return(Gm[t[e+0]]+Gm[t[e+1]]+Gm[t[e+2]]+Gm[t[e+3]]+"-"+Gm[t[e+4]]+Gm[t[e+5]]+"-"+Gm[t[e+6]]+Gm[t[e+7]]+"-"+Gm[t[e+8]]+Gm[t[e+9]]+"-"+Gm[t[e+10]]+Gm[t[e+11]]+Gm[t[e+12]]+Gm[t[e+13]]+Gm[t[e+14]]+Gm[t[e+15]]).toLowerCase()}var oH,gVe=new Uint8Array(16);function vVe(){if(!oH&&(oH=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!oH))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oH(gVe)}var yVe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const P0e={randomUUID:yVe};function kOe(t,e,o){if(P0e.randomUUID&&!e&&!t)return P0e.randomUUID();t=t||{};var f=t.random||(t.rng||vVe)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,e){o=o||0;for(var P=0;P<16;++P)e[o+P]=f[P];return e}return mVe(f)}const bVe={class:"messages"},xVe={class:"message mb-4"},_Ve={class:"d-flex justify-space-between align-start"},wVe={key:1,class:"message__content"},OVe={class:"d-flex align-center"},SVe={class:"d-flex align-center"},kVe={class:"message__timestamp"},TVe={class:"message mb-4 d-flex"},CVe={class:"ml-6 flex-1-1"},AVe={class:"d-flex justify-space-between align-start"},MVe={key:1,class:"message__content"},EVe={class:"d-flex align-center"},PVe={class:"d-flex align-center"},RVe={class:"message__timestamp"},LVe={key:0,class:"text-box"},IVe=Hg({__name:"Comment",props:{comment:{type:Object,required:!0}},setup(t){const e=t,o=LD(),f=Ai(""),P=Ai(!1),d=Ai(!1),l=Ai(void 0),n=Ai(""),c=Ai(!1);function b(a){o.editorAvailable=!1,l.value=a.id,n.value=a.comment}function i(){o.editorAvailable=!0,l.value=void 0}async function O(a,u){l.value&&(c.value=!0,await o.editComment(l.value,a,n.value,u),c.value=!1,l.value=void 0,n.value="",o.editorAvailable=!0)}async function w(a,u,h){await o.deleteComment(a,u,h)}async function y(){d.value=!0;const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},u=Intl.DateTimeFormat("en-US",a).format(new Date),h={id:kOe(),cell:e.comment.cell,userName:"",date:u,comment:f.value,replies:[],resolved:!1};await o.replyComment(e.comment.id,h),d.value=!1,f.value="",P.value=!1,o.editorAvailable=!0}async function p(a,u){await o.resolveComment(a,u)}return(a,u)=>(Bo(),Da("div",bVe,[pa("div",xVe,[pa("div",_Ve,[wa(l)===t.comment.id?(Bo(),la(lae,{key:0,modelValue:wa(n),"onUpdate:modelValue":u[0]||(u[0]=h=>Dc(n)?n.value=h:null),isSaving:wa(c),onCancel:i,onSubmit:u[1]||(u[1]=h=>O(t.comment.cell.cellId??""))},null,8,["modelValue","isSaving"])):(Bo(),Da("p",wVe,sc(t.comment.comment),1)),pa("div",OVe,[!t.comment.resolved&&!wa(l)?(Bo(),la(ps,{key:0,icon:"$success",variant:"plain",ripple:!1,onClick:u[2]||(u[2]=()=>p(t.comment.id,t.comment.cell.cellId??""))})):Wa("",!0),wa(l)?Wa("",!0):(Bo(),la(E0e,{key:1,onEditComment:u[3]||(u[3]=()=>{t.comment.resolved||b(t.comment)}),onDeleteComment:u[4]||(u[4]=()=>w(t.comment.id,t.comment.cell.cellId??""))}))])]),pa("div",SVe,[pa("p",kVe,sc(t.comment.date),1)])]),(Bo(!0),Da(ya,null,ob(t.comment.replies,h=>(Bo(),Da("div",TVe,[Zt(yM,{class:"indicator",vertical:"",color:"bluegrey",thickness:1}),pa("div",CVe,[pa("div",AVe,[wa(l)===h.id?(Bo(),la(lae,{key:0,modelValue:wa(n),"onUpdate:modelValue":u[5]||(u[5]=m=>Dc(n)?n.value=m:null),isSaving:wa(c),onCancel:i,onSubmit:u[6]||(u[6]=()=>O(t.comment.cell.cellId??"",t.comment.id))},null,8,["modelValue","isSaving"])):(Bo(),Da("p",MVe,sc(h.comment),1)),pa("div",EVe,[pa("div",null,[wa(l)?Wa("",!0):(Bo(),la(E0e,{key:0,onEditComment:()=>{t.comment.resolved||b(h)},onDeleteComment:()=>w(h.id,t.comment.cell.cellId??"",t.comment.id)},null,8,["onEditComment","onDeleteComment"]))])])]),pa("div",PVe,[pa("p",RVe,sc(h.date),1)])])]))),256)),wa(P)?(Bo(),Da("div",LVe,[Zt(lae,{modelValue:wa(f),"onUpdate:modelValue":u[7]||(u[7]=h=>Dc(f)?f.value=h:null),"is-saving":wa(d),onCancel:u[8]||(u[8]=()=>{wa(o).editorAvailable=!0,P.value=!1}),onSubmit:y},null,8,["modelValue","is-saving"])])):Wa("",!0),!wa(P)&&!t.comment.resolved?(Bo(),la(ps,{key:1,variant:"text",slim:"",disabled:!wa(o).editorAvailable,onClick:u[9]||(u[9]=()=>{wa(o).editorAvailable=!1,P.value=!0})},{default:Oo(()=>[Cs("Reply")]),_:1},8,["disabled"])):Wa("",!0)]))}});const DVe=hm(IVe,[["__scopeId","data-v-588566c2"]]),TOe=t=>(Mle("data-v-793087b5"),t=t(),Ele(),t),BVe={key:0,class:"d-flex justify-space-between align-center pa-4"},zVe={class:"d-flex align-center"},FVe={class:"justify-right"},NVe={class:"content ma-4"},$Ve={class:"d-flex justify-space-between align-center"},VVe={class:"mt-6 flex-1-1"},UVe={key:0,class:"empty-state"},jVe=TOe(()=>pa("p",null,"No comments yet",-1)),QVe=TOe(()=>pa("p",{class:"empty-state__text mt-2"}," Add a comment by clicking on the cell you want to add a comment to. ",-1)),HVe={key:1,class:"comments-wrapper"},ZVe={class:"d-flex justify-end"},qVe=Hg({__name:"Comments",setup(t){const e=LD(),{addComment:o,closeComments:f}=e,{selectedCell:P}=Sue(e),d=ei(null),l=ei(null),n=jn(()=>{var u;return(u=P.value)==null?void 0:u.cellType}),c=jn(()=>{var u;switch((u=P.value)==null?void 0:u.cellType){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),b=Ai(!1),i=Ai(!1),O=Ai(""),w=Ai(!1),y=jn(()=>e.displayedComments.filter(u=>b.value?u.resolved:!u.resolved));Ni(P,()=>{b.value=!1,i.value=!1,O.value="",w.value=!1});function p(){i.value=!i.value,e.editorAvailable=!1,lc(()=>{var u,h;(u=d.value)==null||u.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(h=d.value)==null||h.focus()})}async function a(){w.value=!0;const u={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},h=Intl.DateTimeFormat("en-US",u).format(new Date),m={id:kOe(),cell:e.selectedCell,userName:"",date:h,comment:O.value,replies:[],resolved:!1};await o(m),w.value=!1,O.value="",i.value=!1,e.editorAvailable=!0}return(u,h)=>(Bo(),la(BO,{class:"card"},{default:Oo(()=>[wa(P)?(Bo(),Da("div",BVe,[pa("div",zVe,[Zt(Tl,{icon:`ztIcon:${wa(Kh)[wa(n)??"code"]}`,color:wa(c),class:"mr-2"},null,8,["icon","color"]),pa("p",{class:"mb-0 font-weight-bold",style:lD({color:wa(c)})},sc(wa(P).cellName),5)]),pa("div",FVe,[wa(b)?Wa("",!0):(Bo(),la(ps,{key:0,icon:"mdi-comment-plus-outline",color:"bluegrey-darken-4",disabled:!wa(e).editorAvailable,onClick:p},null,8,["disabled"])),Zt(ps,{icon:"mdi:mdi-close",variant:"text",ripple:!1,onClick:h[0]||(h[0]=m=>wa(f)())})])])):Wa("",!0),pa("div",NVe,[pa("div",$Ve,[Zt(s2e,{modelValue:wa(b),"onUpdate:modelValue":h[1]||(h[1]=m=>Dc(b)?b.value=m:null),border:!1,mandatory:"force",color:"primary",rounded:"pill"},{default:Oo(()=>[Zt(ps,{value:!1,class:"mr-4"},{default:Oo(()=>[Cs("Open")]),_:1}),Zt(ps,{value:!0,class:"mr-4"},{default:Oo(()=>[Cs("Resolved")]),_:1})]),_:1},8,["modelValue"])]),pa("div",VVe,[!wa(e).displayedComments.length&&!wa(i)?(Bo(),Da("div",UVe,[Zt(Tl,{icon:`ztIcon:${wa(Kh).message}`},null,8,["icon"]),jVe,QVe])):(Bo(),Da("div",HVe,[(Bo(!0),Da(ya,null,ob(wa(y),m=>(Bo(),la(DVe,{comment:m},null,8,["comment"]))),256)),wa(i)?(Bo(),Da("div",{key:0,class:"text-box",ref_key:"addCommentContainer",ref:l},[Zt(RD,{variant:"outlined",modelValue:wa(O),"onUpdate:modelValue":h[2]||(h[2]=m=>Dc(O)?O.value=m:null),ref_key:"addCommentTextArea",ref:d},null,8,["modelValue"]),pa("div",ZVe,[Zt(ps,{variant:"text",onClick:h[3]||(h[3]=()=>{wa(e).editorAvailable=!0,i.value=!1})},{default:Oo(()=>[Cs("Cancel")]),_:1}),Zt(ps,{color:"primary",class:"ml-2",disabled:!wa(O)||wa(w),loading:wa(w),onClick:h[4]||(h[4]=m=>a())},{default:Oo(()=>[Cs("Submit")]),_:1},8,["disabled","loading"])])],512)):Wa("",!0)]))])])]),_:1}))}});const WVe=hm(qVe,[["__scopeId","data-v-793087b5"]]),YVe={props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0}},inheritAttrs:!1,emits:["runCode","deleteCell","saveCell","createCell","componentValueChange","copilotCompletion","updateTimers"],components:{"add-cell":Oue,CodeComponent:twe,MarkdownComponent:hOe,EditorComponent:mOe,SQLComponent:OOe,PackageComponent:SOe},data(){return{menu_items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],concatenatedCodeCache:{lastCellId:"",code:"",length:0}}},computed:{isAppRoute(){return _T().path==="/app"}},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},runCode(t,e,o){this.$emit("runCode",t,e,o)},deleteCell(t){this.$emit("deleteCell",t)},saveCell(t,e,o,f){this.$emit("saveCell",t,e,o,f)},createCodeCell(t,e){this.$emit("createCell",t,e)},componentValueChange(t,e,o,f){this.$emit("componentValueChange",t,e,o,f)},copilotCompletion(t,e,o,f){this.$emit("copilotCompletion",t,e,o,f)},updateTimers(t,e){this.$emit("updateTimers",t,e)}}};function XVe(t,e,o,f,P,d){const l=Zd("add-cell");return Bo(),Da(ya,null,[Zt(bM,{style:{"margin-top":"12px"}},{default:Oo(()=>[t.$devMode&&!d.isAppRoute?(Bo(),la(l,{key:0,onCreateCodeCell:e[0]||(e[0]=n=>d.createCodeCell("",n))})):Wa("",!0)]),_:1}),(Bo(!0),Da(ya,null,ob(o.notebook.cells,n=>(Bo(),la(bM,{class:zv(["cell-container",{"cell-container--app":!t.$devMode||d.isAppRoute}])},{default:Oo(()=>[n.cellType==="code"?(Bo(),la(SI(d.getComponent(n.cellType)),{key:0,cellData:n,completions:o.completions[n.id],onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.updateTimers},null,40,["cellData","completions","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])):(Bo(),la(SI(d.getComponent(n.cellType)),{key:1,cellData:n,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell},null,40,["cellData","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell"]))]),_:2},1032,["class"]))),256))],64)}const GVe=hm(YVe,[["render",XVe]]),KVe=Hg({name:"SignInDialogComponent",setup(){const t=ei(!1),e=ei(!1),o=ei(!1),f=ei(null),P=async()=>{try{const O=await fu.post("copilot/start_node_server",{});console.log("Copilot started successfully")}catch(O){console.error("Error during starting the Node server:",O)}},d=async()=>{try{const O=await fu.post("copilot/check_status",{});b(O.data)}catch(O){console.error("Error during initial status check:",O)}},l=async()=>{try{const O=await fu.post("copilot/sign_in_initiate",{});b(O.data)}catch(O){console.error("Error during sign in initiation:",O)}},n=async()=>{try{const O=await fu.post("copilot/sign_in_confirm",{userCode:f.value.userCode});b(O.data)}catch(O){console.error("Error during sign in confirmation:",O)}},c=async()=>{try{await fu.post("copilot/sign_out",{}),o.value=!1,f.value=null,Pv.copilot_active=!1}catch(O){console.error("Error during sign out:",O)}},b=O=>{f.value=O,O.status==="OK"||O.status==="AlreadySignedIn"?(o.value=!0,Pv.copilot_active=!0):O.status==="NotSignedIn"&&(o.value=!1)};return{dialog:t,isSignedIn:o,serverStarted:e,signInData:f,signInInitiate:l,confirmSignIn:n,signOut:c,startServerAndCheckStatus:async()=>{try{await P(),setTimeout(async()=>{await d()},2500),e.value=!0}catch(O){console.error("Error during starting the server or checking status:",O)}},ztAliases:Kh}}}),JVe=pa("span",{class:"text-h4"},"GitHub Copilot ",-1),eUe={key:1},tUe={key:0},nUe=pa("p",null,"Please go to the following URL and enter the code to sign in:",-1),rUe=pa("strong",null,"URL:",-1),oUe=["href"],iUe=pa("strong",null,"Code:",-1),aUe={key:1},sUe={key:2};function lUe(t,e,o,f,P,d){return Bo(),la(Eq,{modelValue:t.dialog,"onUpdate:modelValue":e[1]||(e[1]=l=>t.dialog=l),"max-width":"400px"},{activator:Oo(({props:l})=>[Zt(ps,Di({color:"bluegrey-darken-4"},l,{icon:`ztIcon:${t.ztAliases.copilot}`}),null,16,["icon"])]),default:Oo(()=>[Zt(BO,null,{default:Oo(()=>[Zt(PD,null,{default:Oo(()=>[JVe]),_:1}),Zt(pue,null,{default:Oo(()=>[t.serverStarted?t.serverStarted&&!t.isSignedIn?(Bo(),Da("div",eUe,[t.signInData&&t.signInData.verificationUri&&t.signInData.userCode?(Bo(),Da("div",tUe,[nUe,pa("p",null,[rUe,pa("a",{href:t.signInData.verificationUri,target:"_blank"},sc(t.signInData.verificationUri),9,oUe)]),pa("p",null,[iUe,Cs(" "+sc(t.signInData.userCode),1)]),Zt(ps,{color:"primary",onClick:t.confirmSignIn},{default:Oo(()=>[Cs("I Signed In")]),_:1},8,["onClick"])])):t.signInData&&t.signInData.status&&t.signInData.user?(Bo(),Da("div",aUe,[pa("p",null,"Status: "+sc(t.signInData.status),1),pa("p",null,"User: "+sc(t.signInData.user),1)])):(Bo(),Da("div",sUe,[Zt(ps,{color:"primary",onClick:t.signInInitiate},{default:Oo(()=>[Cs("Sign In")]),_:1},8,["onClick"])]))])):t.isSignedIn?(Bo(),la(ps,{key:2,color:"primary",onClick:t.signOut},{default:Oo(()=>[Cs("Sign Out")]),_:1},8,["onClick"])):Wa("",!0):(Bo(),la(ps,{key:0,color:"primary",onClick:t.startServerAndCheckStatus},{default:Oo(()=>[Cs("Start Server ")]),_:1},8,["onClick"]))]),_:1}),Zt(ps,{class:"ma-2",icon:"mdi:mdi-close",variant:"plain",position:"absolute",location:"top right",onClick:e[0]||(e[0]=l=>t.dialog=!1)})]),_:1})]),_:1},8,["modelValue"])}const cUe=hm(KVe,[["render",lUe]]),uUe=pa("span",{class:"text-h5"},"Publish Notebook",-1),fUe=pa("span",null,[Cs("Need an API Key? Create an account "),pa("a",{href:"https://www.zero-true.com/contact",target:"_blank"},"here")],-1),dUe=pa("br",null,null,-1),hUe=pa("br",null,null,-1),pUe={class:"d-flex justify-center"},mUe=Hg({__name:"ShareComponent",setup(t){const e=ei(!1),o=ei({userName:"",projectName:"",apiKey:"",teamName:""}),f=ei(!1),P={required:n=>!!n||"Required."},d=ei(!1),l=async()=>{if(f.value){d.value=!0;try{await fu.post("api/share_notebook",o.value),console.log("Share request submitted successfully"),e.value=!1}catch(n){console.error("Error submitting share request:",n)}d.value=!1}};return(n,c)=>(Bo(),la(Eq,{modelValue:e.value,"onUpdate:modelValue":c[6]||(c[6]=b=>e.value=b),"max-width":"600px"},{activator:Oo(({props:b})=>[Zt(ps,Di(b,{"prepend-icon":`ztIcon:${wa(Kh).share}`,variant:"flat",ripple:"",color:"primary",class:"text-bluegrey-darken-4"}),{default:Oo(()=>[Cs(" Publish ")]),_:2},1040,["prepend-icon"])]),default:Oo(()=>[Zt(BO,null,{default:Oo(()=>[Zt(PD,null,{default:Oo(()=>[uUe]),_:1}),Zt(pue,null,{default:Oo(()=>[Zt(FDe,{ref:"form",modelValue:f.value,"onUpdate:modelValue":c[5]||(c[5]=b=>f.value=b),onSubmit:DH(l,["prevent"])},{default:Oo(()=>[Zt(um,{label:"User Name",modelValue:o.value.userName,"onUpdate:modelValue":c[0]||(c[0]=b=>o.value.userName=b),rules:[P.required],required:""},null,8,["modelValue","rules"]),Zt(um,{label:"Project Name",modelValue:o.value.projectName,"onUpdate:modelValue":c[1]||(c[1]=b=>o.value.projectName=b),rules:[P.required],required:""},null,8,["modelValue","rules"]),Zt(um,{label:"API Key",modelValue:o.value.apiKey,"onUpdate:modelValue":c[2]||(c[2]=b=>o.value.apiKey=b),rules:[P.required],required:""},null,8,["modelValue","rules"]),Zt(um,{label:"Team Name (Optional)",modelValue:o.value.teamName,"onUpdate:modelValue":c[3]||(c[3]=b=>o.value.teamName=b)},null,8,["modelValue"]),fUe,dUe,hUe,Zt(Dq,{justify:"space-between"},{default:Oo(()=>[Zt(hT,{cols:"auto"},{default:Oo(()=>[d.value?Wa("",!0):(Bo(),la(ps,{key:0,type:"submit",color:"primary"},{default:Oo(()=>[Cs("Publish")]),_:1})),pa("div",pUe,[d.value?(Bo(),la(SD,{key:0,indeterminate:"",color:"primary"})):Wa("",!0)])]),_:1}),Zt(hT,{cols:"auto"},{default:Oo(()=>[Zt(ps,{onClick:c[4]||(c[4]=b=>e.value=!1),color:"error"},{default:Oo(()=>[Cs("Cancel")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onSubmit"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});class R0e{constructor(e){_c(this,"timerId",null);_c(this,"duration");this.duration=e}start(e){this.timerId===null&&(this.timerId=window.setTimeout(()=>{e(),this.timerId=null},this.duration))}stop(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}}const gUe={props:{currentPath:{type:String,required:!0}},emits:["file-uploaded"],data:()=>({uploadingFile:!1,fileInput:null,formData:null,fileName:"",snackbar:!1,snackbarText:"",ztAliases:Kh}),methods:{onDrop(t){var o;t.preventDefault();const e=(o=t.dataTransfer)==null?void 0:o.files;e&&e.length>0?this.handleFileUpload(e[0]):console.error("No file dropped")},onClickBrowseFiles(){this.$refs.fileInput&&this.$refs.fileInput.click()},handleFileChange(t){const e=t.target.files;e&&e.length>0?this.handleFileUpload(e[0]):console.error("No file selected")},handleFileUpload(t){this.formData=new FormData,this.formData.append("file",t),this.fileName=t.name,console.log(t)},async submitFile(){if(this.formData)try{this.formData.append("path",this.currentPath);const t=await fu.post("api/upload_file",this.formData,{headers:{"Content-Type":"multipart/form-data"}});console.log("File processed",t.data),this.snackbarText="File uploaded successfully",this.snackbar=!0,this.uploadingFile=!1,this.$emit("file-uploaded")}catch(t){console.error("Error processing file:",t),this.snackbarText="Error uploading file",this.snackbar=!0}else console.error("No file to submit"),this.snackbarText="No file selected",this.snackbar=!0},cleanUp(){this.formData=null,this.fileName="",this.snackbarText=""}}};const COe=t=>(Mle("data-v-7dd18b31"),t=t(),Ele(),t),vUe=COe(()=>pa("div",{class:"mb-1"},"or",-1)),yUe={key:0,class:"my-4"},bUe=COe(()=>pa("strong",null,"File selected:",-1));function xUe(t,e,o,f,P,d){return Bo(),la(Eq,{modelValue:t.uploadingFile,"onUpdate:modelValue":e[3]||(e[3]=l=>t.uploadingFile=l),width:"444",class:"text-center mb-8",rounded:"lg"},{activator:Oo(({props:l})=>[Zt(ps,Di(l,{class:"mb-2",icon:"mdi-upload",color:"bluegrey-darken-4"}),null,16)]),default:Oo(()=>[Zt(BO,{onDrop:d.onDrop,onDragover:e[2]||(e[2]=DH(()=>{},["prevent"]))},{default:Oo(()=>[pa("input",{class:"d-none",type:"file",ref:"fileInput",onChange:e[0]||(e[0]=(...l)=>d.handleFileChange&&d.handleFileChange(...l))},null,544),Zt(PD,{class:"pb-0"},{default:Oo(()=>[Cs("Drag files to upload")]),_:1}),vUe,Zt(ps,{class:"mb-2",color:"primary",variant:"outlined",size:"large",text:"Browse files",rounded:"pill",onClick:d.onClickBrowseFiles},{default:Oo(()=>[Cs(" Browse files ")]),_:1},8,["onClick"]),t.fileName?(Bo(),Da("div",yUe,[bUe,Cs(" "+sc(t.fileName),1)])):Wa("",!0),Zt(ps,{onClick:d.submitFile,color:"primary",class:"mt-4"},{default:Oo(()=>[Cs("Submit")]),_:1},8,["onClick"]),Zt(KDe,{modelValue:t.snackbar,"onUpdate:modelValue":e[1]||(e[1]=l=>t.snackbar=l),timeout:3e3,top:""},{default:Oo(()=>[Cs(sc(t.snackbarText),1)]),_:1},8,["modelValue"])]),_:1},8,["onDrop"])]),_:1},8,["modelValue"])}const _Ue=hm(gUe,[["render",xUe],["__scopeId","data-v-7dd18b31"]]),wUe=Hg({name:"SidebarComponent",components:{FileUploader:_Ue},props:{drawer:Boolean,items:Array,handleFileChange:Function,isMobile:Boolean,isAppRoute:Boolean},emits:["update:drawer","update:items"],setup(t,{emit:e}){const o=ei(t.drawer),f=ei(t.items||[]),P=ei("."),d=ei([]);Ni(()=>t.drawer,O=>{o.value=O}),Ni(o,O=>{e("update:drawer",O)});const l=async O=>{try{const w=await fu.get("api/get_children",{params:{path:O}});f.value=w.data.files,e("update:items",w.data.files)}catch(w){console.error("Failed to load files:",w)}};return ag(()=>{l(P.value)}),{localDrawer:o,localItems:f,handleItemClick:O=>{O.file==="folder"&&(d.value.push(P.value),P.value=O.id,l(P.value))},goBack:()=>{d.value.length>0&&(P.value=d.value.pop()||".",l(P.value))},pathStack:d,currentPath:P,refreshFiles:()=>{l(P.value)},fileIcon:O=>{switch(O){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}}}}}),OUe={class:"d-flex"};function SUe(t,e,o,f,P,d){const l=Zd("FileUploader");return t.$devMode&&!t.isMobile&&!t.isAppRoute?(Bo(),la(Z_e,{key:0,modelValue:t.localDrawer,"onUpdate:modelValue":e[1]||(e[1]=n=>t.localDrawer=n),app:"",class:"sidebar",color:"bluegrey-darken-4"},{default:Oo(()=>[pa("div",OUe,[t.pathStack.length>0?(Bo(),la(ps,{key:0,onClick:t.goBack,color:"bluegrey-darken-4",icon:"mdi-arrow-left"},null,8,["onClick"])):Wa("",!0),Zt($_e),Zt(l,{"current-path":t.currentPath,onFileUploaded:t.refreshFiles},null,8,["current-path","onFileUploaded"]),Zt(ps,{color:"bluegrey-darken-4",icon:"mdi-close",onClick:e[0]||(e[0]=n=>t.localDrawer=!1)})]),Zt(m_,null,{default:Oo(()=>[(Bo(!0),Da(ya,null,ob(t.localItems,n=>(Bo(),la(Bf,{key:n.id,onClick:c=>t.handleItemClick(n)},{default:Oo(()=>[n.file==="folder"?(Bo(),la(Tl,{key:0},{default:Oo(()=>[Cs(sc("mdi-folder"))]),_:1})):(Bo(),la(Tl,{key:1},{default:Oo(()=>[Cs(sc(t.fileIcon(n.file)),1)]),_:2},1024)),Zt(qy,null,{default:Oo(()=>[Cs(sc(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue"])):Wa("",!0)}const kUe=hm(wUe,[["render",SUe]]);class HL{constructor(e,o={}){_c(this,"socket");_c(this,"pingInterval");_c(this,"pingTimeout");_c(this,"url");_c(this,"options");_c(this,"reconnectAttempts",0);_c(this,"maxReconnectAttempts",3);_c(this,"connected",!1);this.url=e,this.options=o}initializeSocket(){return this.socket=new WebSocket(this.url),this.socket.onclose=e=>{var o,f;console.log(`WebSocket closed: ${this.url}, Code: ${e.code}, Reason: ${e.reason}`),this.stopPing(),(f=(o=this.options).onClose)==null||f.call(o,e),this.connected&&(this.reconnectSocket(),this.connected=!1)},this.socket.onmessage=e=>{var o,f;e.data==="pong"?clearTimeout(this.pingTimeout):(f=(o=this.options).onMessage)==null||f.call(o,e)},new Promise((e,o)=>{this.socket.onopen=()=>{var f,P;console.log(`WebSocket connected: ${this.url}`),this.connected=!0,this.startPing(),(P=(f=this.options).onOpen)==null||P.call(f),e("")},this.socket.onerror=f=>{var P,d;console.error(`WebSocket error: ${this.url}`,f),(d=(P=this.options).onError)==null||d.call(P,f),o(f)}})}startPing(){const e=this.options.pingInterval||3e4;this.pingInterval=window.setInterval(()=>{this.socket.readyState===WebSocket.OPEN&&(this.socket.send(JSON.stringify({type:"ping"})),this.pingTimeout=window.setTimeout(()=>{console.log(`Ping timeout: ${this.url}`),this.socket.close()},5e3))},e)}stopPing(){clearInterval(this.pingInterval),clearTimeout(this.pingTimeout)}reconnectSocket(){const e=this.options.reconnectDelay||2e3;this.reconnectAttempts{try{await this.initializeSocket(),this.reconnectAttempts=0,console.log(`WebSocket reconnected successfully: ${this.url}`)}catch(o){console.error(`Reconnect attempt failed for WebSocket: ${this.url}`,o),this.reconnectAttempts++,this.reconnectSocket()}},e)):(console.error(`Max reconnect attempts reached for WebSocket: ${this.url}. Giving up.`),Pv.connection_lost=!0)}send(e){this.socket.readyState===WebSocket.OPEN?this.socket.send(e):console.warn(`WebSocket not open: ${this.url}`)}close(){this.stopPing(),this.socket.close()}}const TUe={components:{CodeComponent:twe,MarkdownComponent:hOe,EditorComponent:mOe,SQLComponent:OOe,PackageComponent:SOe,CodeCellManager:GVe,CopilotComponent:cUe,ShareComponent:mUe,SidebarComponent:kUe,Comments:WVe},data(){return{editingProjectName:!1,errorMessage:"",notebook:{},notebookName:"",notebookEditName:"",dependencies:{},completions:{},ws_url:"",pythonVersion:"",ztVersion:"",notebook_socket:null,save_socket:null,run_socket:null,stop_socket:null,dependency_socket:null,timer:0,startTime:0,timerInterval:null,isCodeRunning:!1,requestQueue:[],componentChangeQueue:[],drawer:!1,files:[],tree:[],items:[],openFolders:[],reactiveMode:!0,showComments:!1,concatenatedCodeCache:{lastCellId:"",code:"",followingCode:"",length:0},dependencyOutput:{output:"",isLoading:!1},ztAliases:Kh}},setup(){const t=LD(),{showAllComments:e,loadComments:o}=t,{showComments:f}=Sue(t);return{showComments:f,loadComments:o,showAllComments:e}},beforeMount(){window.addEventListener("beforeunload",this.clearState),window.addEventListener("unload",this.clearState)},beforeUnmount(){window.removeEventListener("beforeunload",this.clearState),window.removeEventListener("unload",this.clearState)},async mounted(){await this.get_env_data(),await this.connectSockets(),this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:""}))},computed:{isAppRoute(){return _T().path==="/app"},isMobile(){return this.$vuetify.display.mobile},cellLength(){return this.notebook.cells?Object.keys(this.notebook.cells).length:0},runningQueue(){return this.$devMode?this.requestQueue:this.componentChangeQueue},queueLength(){return this.runningQueue.length},socketsDisconnected(){return Pv.connection_lost}},methods:{async connectSockets(){this.notebook_socket=new HL(this.ws_url+"ws/notebook",{onMessage:t=>this.notebookOnMessage(t)}),this.run_socket=new HL(this.$devMode?this.ws_url+"ws/run_code":this.ws_url+"ws/component_run",{onMessage:t=>this.runOnMessage(t)}),this.stop_socket=new HL(this.ws_url+"ws/stop_execution"),await this.notebook_socket.initializeSocket(),await this.run_socket.initializeSocket(),await this.stop_socket.initializeSocket(),this.$devMode&&(this.save_socket=new HL(this.ws_url+"ws/save_text",{onMessage:t=>this.saveOnMessage(t)}),this.dependency_socket=new HL(this.ws_url+"ws/dependency_update",{onMessage:t=>this.dependencyOnMessage(t)}),await this.save_socket.initializeSocket(),await this.dependency_socket.initializeSocket())},toggleProjectName(){this.editingProjectName=!this.editingProjectName,this.editingProjectName&&(this.notebookEditName=this.notebookName,lc(()=>{this.$refs.projectNameField.focus()}))},async saveProjectName(){if(this.editingProjectName){const t={notebookName:this.notebookEditName};await fu.post("api/notebook_name_update",t),this.notebookName=this.notebookEditName,document.title=this.notebookName,this.editingProjectName=!1}},startTimer(){this.startTime=Date.now(),this.timer=0,this.timerInterval=setInterval(()=>{const t=Date.now();this.timer=t-this.startTime},99)},stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)},async get_env_data(){const e=(await fu.get("env_data")).data;this.ws_url=e.ws_url||"ws://localhost:2613/",this.pythonVersion=e.python_version,this.ztVersion=e.zt_version},updateDrawer(t){this.drawer=t},updateItems(t){this.items=t},handleFileChange(t,e){const o=e.target.files;if(o&&o.length>0){const f=new FormData;f.append("file",o[0]),fu.post("api/upload_file",f,{headers:{"Content-Type":"multipart/form-data"}}).then(P=>console.log("File processed",P.data)).catch(P=>console.error("Error processing file:",P.response))}else console.error("No file selected")},fileIcon(t){switch(t){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}},async runCode(t){const e=[],o={};for(let P in this.notebook.cells){const d={id:P,code:this.notebook.cells[P].code,variable_name:this.notebook.cells[P].variable_name||"",nonReactive:this.notebook.cells[P].nonReactive,showTable:this.notebook.cells[P].showTable,cellType:this.notebook.cells[P].cellType};for(const l of this.notebook.cells[P].components)l.component==="v-data-table"?o[l.id]="":o[l.id]=l.value;e.push(d)}const f={originId:t,reactiveMode:this.reactiveMode,cells:e,components:o};if(this.isCodeRunning){const P=this.requestQueue.findIndex(d=>d.originId===t);P!==-1?this.requestQueue[P]=f:this.requestQueue.push(f);return}this.sendRunCodeRequest(f)},sendRunCodeRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},notebookOnMessage(t){const e=JSON.parse(t.data);if(e.notebook_name)this.notebookName=e.notebook_name,document.title=this.notebookName;else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.env_stale)this.errorMessage="Some dependencies are not installed in the current environment. Open dependency manager to install missing dependencies";else if(e.complete)this.isCodeRunning=!1,this.stopTimer();else{const o=typeof e=="string"?JSON.parse(e):e;if(o.notebook){this.notebook=o.notebook;for(let f in this.notebook.cells)this.notebook.cells[f].cellType==="code"&&(this.completions[f]=[]),this.loadComments(this.notebook.cells[f].comments??{},f,this.notebook.cells[f].cellType,this.notebook.cells[f].cellName??"");this.dependencies=o.dependencies}else this.notebook.cells&&this.notebook.cells[o.id]&&(this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout)}},runOnMessage(t){const e=JSON.parse(t.data);if(!this.$devMode&&e.refresh)this.notebookRefresh();else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.complete){if(this.isCodeRunning=!1,this.stopTimer(),this.$devMode&&this.requestQueue.length>0){const o=this.requestQueue.shift()||{};this.sendRunCodeRequest(o)}else if(!this.$devMode&&this.componentChangeQueue.length>0){const o=this.componentChangeQueue.shift()||{},f={originId:o.originId,components:o.components,userId:o.userId};this.sendComponentRequest(f)}}else{const o=JSON.parse(e);this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout}},saveOnMessage(t){try{const e=JSON.parse(t.data);this.completions[e.cell_id]=Array.isArray(e.completions)?e.completions:[]}catch(e){console.error("Error parsing server message:",e)}},dependencyOnMessage(t){try{const e=JSON.parse(t.data);e.output?this.dependencyOutput.output=this.dependencyOutput.output.concat(e.output):(this.dependencies=JSON.parse(e),this.dependencyOutput.isLoading=!1),this.errorMessage=""}catch(e){console.error("Error parsing server message:",e)}},async componentValueChange(t,e,o){const f={};for(let l in this.notebook.cells)for(const n of this.notebook.cells[l].components)n.component==="v-data-table"?f[n.id]="":f[n.id]=n.value;const P={originId:t,componentId:e,components:f,userId:this.notebook.userId};if(this.isCodeRunning){const l=this.componentChangeQueue.findIndex(n=>n.componentId===e);l!==-1?this.componentChangeQueue[l]=P:this.componentChangeQueue.push(P);return}const d={originId:P.originId,components:P.components,userId:P.userId};this.sendComponentRequest(d)},async sendComponentRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},async notebookRefresh(){this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:"start"}))},navigateToApp(){window.open("https://zero-true.com/")},clearState:function(){const e={userId:this.notebook.userId};fu.post("api/clear_state",e)},async createCodeCell(t,e){const o={cellType:e.toLowerCase(),position_key:t},P=(await fu.post("api/create_cell",o)).data;let d={};t||(d[P.id]=P);for(let l in this.notebook.cells)d[l]=this.notebook.cells[l],t===l&&(d[P.id]=P);P.cellType==="code"&&(this.completions[P.id]=[]),this.notebook.cells=d},async deleteCell(t){const e={cellId:t};await fu.post("api/delete_cell",e),this.notebook.cells[t].cellType==="code"&&delete this.completions[t],delete this.notebook.cells[t]},async saveCell(t,e,o,f){if(this.notebook.cells[t].cellType==="code"&&this.concatenatedCodeCache.lastCellId!==t){let d="",l="",n=0,c=!0;for(let b in this.notebook.cells){if(b===t){c=!1;continue}this.notebook.cells[b].cellType==="code"&&(c?(d+=this.notebook.cells[b].code+` +The conflicting element is`+(Er(on.element)?" ":" not ")+"already in the DOM")},we=At=>{const $t=Z(At);pt(F,$t)&&ue(At,$t);const on=[At];s.registerId(on,$t,At.events),F[$t]=At},Be=At=>{sy(At.element).each($t=>{delete F[$t],s.unregisterId($t)})};return{find:(At,$t,on)=>s.find(At,$t,on),filter:At=>s.filterByType(At),register:we,unregister:Be,getById:At=>Ge(F,At)}},_v=Yh({name:"Container",factory:s=>{const{attributes:F,...Z}=s.dom;return{uid:s.uid,dom:{tag:"div",attributes:{role:"presentation",...F},...Z},components:s.components,behaviours:vw(s.containerBehaviours),events:s.events,domModification:s.domModification,eventOrder:s.eventOrder}},configFields:[mr("components",[]),Pf("containerBehaviours",[]),mr("events",{}),mr("domModification",{}),mr("eventOrder",{})]}),OP=s=>{const F=or=>br(s.element).fold(k,Mr=>so(or,Mr)),Z=mG(),ue=(or,Mr)=>Z.find(F,or,Mr),we=fG(s.element,{triggerEvent:(or,Mr)=>oh(or,Mr.target,kr=>dG(ue,or,Mr,kr))}),Be={debugInfo:x("real"),triggerEvent:(or,Mr,kr)=>{oh(or,Mr,yo=>s4(ue,or,kr,Mr,yo))},triggerFocus:(or,Mr)=>{sy(or).fold(()=>{xd(or)},kr=>{oh(km(),or,yo=>(mN(ue,km(),{originator:Mr,kill:v,prevent:v,target:or},or,yo),!1))})},triggerEscape:(or,Mr)=>{Be.triggerEvent("keydown",or.element,Mr.event)},getByUid:or=>Xn(or),getByDom:or=>Br(or),build:vi,buildOrPatch:Ti,addToGui:or=>{gt(or)},removeFromGui:or=>{At(or)},addToWorld:or=>{qe(or)},removeFromWorld:or=>{ft(or)},broadcast:or=>{yn(or)},broadcastOn:(or,Mr)=>{wn(or,Mr)},broadcastEvent:(or,Mr)=>{Mn(or,Mr)},isConnected:k},qe=or=>{or.connect(Be),_r(or.element)||(Z.register(or),q(or.components(),qe),Be.triggerEvent(zp(),or.element,{target:or.element}))},ft=or=>{_r(or.element)||(q(or.components(),ft),Z.unregister(or)),or.disconnect()},gt=or=>{X0(s,or)},At=or=>{fv(or)},$t=()=>{we.unbind(),zl(s.element)},on=or=>{const Mr=Z.filter(lp());q(Mr,kr=>{const yo=kr.descHandler;qh(yo)(or)})},yn=or=>{on({universal:!0,data:or})},wn=(or,Mr)=>{on({universal:!1,channels:or,data:Mr})},Mn=(or,Mr)=>{const kr=Z.filter(or);return LC(kr,Mr)},Xn=or=>Z.getById(or).fold(()=>Hi.error(new Error('Could not find component with uid: "'+or+'" in system.')),Hi.value),Br=or=>{const Mr=sy(or).getOr("not found");return Xn(Mr)};return qe(s),{root:s,element:s.element,destroy:$t,add:gt,remove:At,getByUid:Xn,getByDom:Br,addToWorld:qe,removeFromWorld:ft,broadcast:yn,broadcastOn:wn,broadcastEvent:Mn}},IC=(s,F)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:oe(s.items,F.interpreter)}),gG=x([mr("prefix","form-field"),Pf("fieldBehaviours",[as,hi])]),SP=x([Jp({schema:[Sn("dom")],name:"label"}),Jp({factory:{sketch:s=>({uid:s.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:s.text}})},schema:[Sn("text")],name:"aria-descriptor"}),kd({factory:{sketch:s=>{const F=Hs(s,["factory"]);return s.factory.sketch(F)}},schema:[Sn("factory")],name:"field"})]),vG=(s,F,Z,ue)=>{const we=Rf(s.fieldBehaviours,[as.config({find:ft=>Fo(ft,s,"field")}),hi.config({store:{mode:"manual",getValue:ft=>as.getCurrent(ft).bind(hi.getValue),setValue:(ft,gt)=>{as.getCurrent(ft).each(At=>{hi.setValue(At,gt)})}}})]),Be=pl([Ll((ft,gt)=>{const At=l6(ft,s,["label","field","aria-descriptor"]);At.field().each($t=>{const on=fi(s.prefix);At.label().each(yn=>{fr(yn.element,"for",on),fr($t.element,"id",on)}),At["aria-descriptor"]().each(yn=>{const wn=fi(s.prefix);fr(yn.element,"id",wn),fr($t.element,"aria-describedby",wn)})})})]),qe={getField:ft=>Fo(ft,s,"field"),getLabel:ft=>Fo(ft,s,"label")};return{uid:s.uid,dom:s.dom,components:F,behaviours:we,events:Be,apis:qe}},Js=ch({name:"FormField",configFields:gG(),partFields:SP(),factory:vG,apis:{getField:(s,F)=>s.getField(F),getLabel:(s,F)=>s.getLabel(F)}});var yG=tinymce.util.Tools.resolve("tinymce.html.Entities");const l4=(s,F,Z,ue)=>{const we=xG(s,F,Z,ue);return Js.sketch(we)},bG=(s,F)=>l4(s,F,[],[]),xG=(s,F,Z,ue)=>({dom:kP(Z),components:s.toArray().concat([F]),fieldBehaviours:Bo(ue)}),_G=()=>kP([]),kP=s=>({tag:"div",classes:["tox-form__group"].concat(s)}),L2=(s,F)=>Js.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[ro(F.translate(s))]}),tm=fi("form-component-change"),nk=fi("form-close"),I2=fi("form-cancel"),Dy=fi("form-action"),c4=fi("form-submit"),DC=fi("form-block"),TP=fi("form-unblock"),gN=fi("form-tabchange"),vN=fi("form-resize"),wG=(s,F,Z)=>{const ue=s.label.map(wn=>L2(wn,F)),we=F.icons(),Be=wn=>{var Mn;return(Mn=we[wn])!==null&&Mn!==void 0?Mn:wn},qe=wn=>(Mn,Xn)=>{Fs(Xn.event.target,"[data-collection-item-value]").each(Br=>{wn(Mn,Xn,Br,ao(Br,"data-collection-item-value"))})},ft=(wn,Mn)=>{const Xn=oe(Mn,Mr=>{const kr=Ag.translate(Mr.text),yo=s.columns===1?`
    ${kr}
    `:"",Xr=`
    ${Be(Mr.icon)}
    `,No={_:" "," - ":" ","-":" "},Jo=kr.replace(/\_| \- |\-/g,Ci=>No[Ci]),ho=F.isDisabled()?" tox-collection__item--state-disabled":"";return`
    ${Xr}${yo}
    `}),Br=s.columns!=="auto"&&s.columns>1?K(Xn,s.columns):[Xn],or=oe(Br,Mr=>`
    ${Mr.join("")}
    `);F1(wn.element,or.join(""))},gt=qe((wn,Mn,Xn,Br)=>{Mn.stop(),F.isDisabled()||Ri(wn,Dy,{name:s.name,value:Br})}),At=[fo(Om(),qe((wn,Mn,Xn)=>{xd(Xn)})),fo(R0(),gt),fo(up(),gt),fo(Sm(),qe((wn,Mn,Xn)=>{aa(wn.element,"."+Fw).each(Br=>{fc(Br,Fw)}),Sl(Xn,Fw)})),fo(ap(),qe(wn=>{aa(wn.element,"."+Fw).each(Mn=>{fc(Mn,Fw),a0(Mn)})})),$p(qe((wn,Mn,Xn,Br)=>{Ri(wn,Dy,{name:s.name,value:Br})}))],$t=(wn,Mn)=>oe($d(wn.element,".tox-collection__item"),Mn),on=Js.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(s.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:R},behaviours:Bo([ta.config({disabled:F.isDisabled,onDisabled:wn=>{$t(wn,Mn=>{Sl(Mn,"tox-collection__item--state-disabled"),fr(Mn,"aria-disabled",!0)})},onEnabled:wn=>{$t(wn,Mn=>{fc(Mn,"tox-collection__item--state-disabled"),po(Mn,"aria-disabled")})}}),df(),da.config({}),Td.config({...F.tooltips.getConfig({tooltipText:"",onShow:wn=>{aa(wn.element,"."+Fw+"[data-mce-tooltip]").each(Mn=>{co(Mn,"data-mce-tooltip").each(Xn=>{Td.setComponents(wn,F.tooltips.getComponents({tooltipText:Xn}))})})}}),mode:"children-keyboard-focus",anchor:wn=>({type:"node",node:aa(wn.element,"."+Fw).orThunk(()=>Ta(".tox-collection__item")),root:wn.element,layouts:{onLtr:x([Pc,Jc,Ec,Hc,Qc,_s]),onRtl:x([Pc,Jc,Ec,Hc,Qc,_s])},bubble:pp(0,-2,{})})}),hi.config({store:{mode:"memory",initialValue:Z.getOr([])},onSetValue:(wn,Mn)=>{ft(wn,Mn),s.columns==="auto"&&pC(wn,5,"tox-collection__item").each(({numRows:Xn,numColumns:Br})=>{Li.setGridSize(wn,Xn,Br)}),Sa(wn,vN)}}),Wl.config({}),Li.config(wX(s.columns,"normal")),Ca("collection-events",At)]),eventOrder:{[cp()]:["disabling","alloy.base.behaviour","collection-events"],[Sm()]:["collection-events","tooltipping"]}});return l4(ue,on,["tox-form__group--collection"],[])},OG=["input","textarea"],CP=s=>{const F=ar(s);return X(OG,F)},Yw=(s,F)=>{const Z=F.getRoot(s).getOr(s.element);fc(Z,F.invalidClass),F.notify.each(ue=>{CP(s.element)&&fr(s.element,"aria-invalid",!1),ue.getContainer(s).each(we=>{F1(we,ue.validHtml)}),ue.onValid(s)})},yN=(s,F,Z,ue)=>{const we=F.getRoot(s).getOr(s.element);Sl(we,F.invalidClass),F.notify.each(Be=>{CP(s.element)&&fr(s.element,"aria-invalid",!0),Be.getContainer(s).each(qe=>{F1(qe,ue)}),Be.onInvalid(s,ue)})},bN=(s,F,Z)=>F.validator.fold(()=>uh.pure(Hi.value(!0)),ue=>ue.validate(s)),AP=(s,F,Z)=>(F.notify.each(ue=>{ue.onValidate(s)}),bN(s,F).map(ue=>s.getSystem().isConnected()?ue.fold(we=>(yN(s,F,Z,we),Hi.error(we)),we=>(Yw(s,F),Hi.value(we))):Hi.error("No longer in system")));var m0=Object.freeze({__proto__:null,markValid:Yw,markInvalid:yN,query:bN,run:AP,isInvalid:(s,F)=>{const Z=F.getRoot(s).getOr(s.element);return $l(Z,F.invalidClass)}}),_N=Object.freeze({__proto__:null,events:(s,F)=>s.validator.map(Z=>pl([fo(Z.onEvent,ue=>{AP(ue,s,F).get(R)})].concat(Z.validateOnLoad?[Ll(ue=>{AP(ue,s,F).get(v)})]:[]))).getOr({})}),SG=[Sn("invalidClass"),mr("getRoot",I.none),Pi("notify",[mr("aria","alert"),mr("getContainer",I.none),mr("validHtml",""),Ra("onValid"),Ra("onInvalid"),Ra("onValidate")]),Pi("validator",[Sn("validate"),mr("onEvent","input"),mr("validateOnLoad",!0)])];const By=lf({fields:SG,name:"invalidating",active:_N,apis:m0,extra:{validation:s=>F=>{const Z=hi.getValue(F);return uh.pure(s(Z))}}});var wN=Object.freeze({__proto__:null,events:()=>pl([FO(fb(),k)]),exhibit:()=>Cf({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})});const u4=lf({fields:[],name:"unselecting",active:wN}),kG=(s,F)=>p0.sketch({dom:s.dom,components:s.components,toggleClass:"mce-active",dropdownBehaviours:Bo([s1.button(F.providers.isDisabled),df(),u4.config({}),Wl.config({})]),layouts:s.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:F.getSink,fetch:Z=>uh.nu(ue=>s.fetch(ue)).map(ue=>I.from(o4(nl(pP(fi("menu-value"),ue,we=>{s.onItemAction(Z,we)},s.columns,s.presets,r1.CLOSE_ON_EXECUTE,D,F.providers),{movement:AC(s.columns,s.presets)})))),parts:{menu:N5(!1,1,s.presets)}}),ON=fi("color-input-change"),EP=fi("color-swatch-change"),SN=fi("color-picker-cancel"),kN=(s,F,Z,ue)=>{const we=Js.parts.field({factory:Nw,inputClasses:["tox-textfield"],data:ue,onSetValue:At=>By.run(At).get(v),inputBehaviours:Bo([ta.config({disabled:F.providers.isDisabled}),df(),Wl.config({}),By.config({invalidClass:"tox-textbox-field-invalid",getRoot:At=>Cr(At.element),notify:{onValid:At=>{const $t=hi.getValue(At);Ri(At,ON,{color:$t})}},validator:{validateOnLoad:!1,validate:At=>{const $t=hi.getValue(At);if($t.length===0)return uh.pure(Hi.value(!0));{const on=Pt.fromTag("span");ko(on,"background-color",$t);const yn=Na(on,"background-color").fold(()=>Hi.error("blah"),wn=>Hi.value($t));return uh.pure(yn)}}}})]),selectOnFocus:!1}),Be=s.label.map(At=>L2(At,F.providers)),qe=(At,$t)=>{Ri(At,EP,{value:$t})},ft=(At,$t)=>{gt.getOpt(At).each(on=>{$t==="custom"?Z.colorPicker(yn=>{yn.fold(()=>Sa(on,SN),wn=>{qe(on,wn),kC(s.storageKey,wn)})},"#ffffff"):$t==="remove"?qe(on,""):qe(on,$t)})},gt=qs(kG({dom:{tag:"span",attributes:{"aria-label":F.providers.translate("Color swatch")}},layouts:{onRtl:()=>[Qc,Ec,Pc],onLtr:()=>[Ec,Qc,Pc]},components:[],fetch:QF(Z.getColors(s.storageKey),s.storageKey,Z.hasCustomColors()),columns:Z.getColorCols(s.storageKey),presets:"color",onItemAction:ft},F));return Js.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Be.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[we,gt.asSpec()]}]),fieldBehaviours:Bo([Ca("form-field-events",[fo(ON,(At,$t)=>{gt.getOpt(At).each(on=>{ko(on.element,"background-color",$t.event.color)}),Ri(At,tm,{name:s.name})}),fo(EP,(At,$t)=>{Js.getField(At).each(on=>{hi.setValue(on,$t.event.value),as.getCurrent(At).each(oa.focus)})}),fo(SN,(At,$t)=>{Js.getField(At).each(on=>{as.getCurrent(At).each(oa.focus)})})])])})},TN=Jp({schema:[Sn("dom")],name:"label"}),rx=s=>Jp({name:""+s+"-edge",overrides:F=>F.model.manager.edgeActions[s].fold(()=>({}),ue=>({events:pl([e0(_m(),(we,Be,qe)=>ue(we,qe),[F]),e0(Oh(),(we,Be,qe)=>ue(we,qe),[F]),e0(Ex(),(we,Be,qe)=>{qe.mouseIsDown.get()&&ue(we,qe)},[F])])}))}),TG=rx("top-left"),CG=rx("top"),AG=rx("top-right"),MG=rx("right"),EG=rx("bottom-right"),PG=rx("bottom"),PP=rx("bottom-left"),RG=rx("left"),LG=kd({name:"thumb",defaults:x({dom:{styles:{position:"absolute"}}}),overrides:s=>({events:pl([Fd(_m(),s,"spectrum"),Fd(Yg(),s,"spectrum"),Fd(wm(),s,"spectrum"),Fd(Oh(),s,"spectrum"),Fd(Ex(),s,"spectrum"),Fd(Hv(),s,"spectrum")])})}),rk=s=>t1(s.event),IG=kd({schema:[On("mouseIsDown",()=>xi(!1))],name:"spectrum",overrides:s=>{const Z=s.model.manager,ue=(we,Be)=>Z.getValueFromEvent(Be).map(qe=>Z.setValueFrom(we,s,qe));return{behaviours:Bo([Li.config({mode:"special",onLeft:(we,Be)=>Z.onLeft(we,s,rk(Be)),onRight:(we,Be)=>Z.onRight(we,s,rk(Be)),onUp:(we,Be)=>Z.onUp(we,s,rk(Be)),onDown:(we,Be)=>Z.onDown(we,s,rk(Be))}),Wl.config({}),oa.config({})]),events:pl([fo(_m(),ue),fo(Yg(),ue),fo(Oh(),ue),fo(Ex(),(we,Be)=>{s.mouseIsDown.get()&&ue(we,Be)})])}}});var DG=[TN,RG,MG,CG,PG,TG,AG,PP,EG,LG,IG];const ok=x("slider.change.value"),BG=s=>s.type.indexOf("touch")!==-1,RP=s=>{const F=s.event.raw;if(BG(F)){const Z=F;return Z.touches!==void 0&&Z.touches.length===1?I.some(Z.touches[0]).map(ue=>Ws(ue.clientX,ue.clientY)):I.none()}else{const Z=F;return Z.clientX!==void 0?I.some(Z).map(ue=>Ws(ue.clientX,ue.clientY)):I.none()}},zG="top",CN="right",AN="bottom",FG="left",Xw=s=>s.model.minX,Gw=s=>s.model.minY,BC=s=>s.model.minX-1,zC=s=>s.model.minY-1,Kw=s=>s.model.maxX,D2=s=>s.model.maxY,ik=s=>s.model.maxX+1,ak=s=>s.model.maxY+1,FC=(s,F,Z)=>F(s)-Z(s),LP=s=>FC(s,Kw,Xw),NC=s=>FC(s,D2,Gw),MN=s=>LP(s)/2,EN=s=>NC(s)/2,f4=(s,F)=>F?s.stepSize*s.speedMultiplier:s.stepSize,PN=s=>s.snapToGrid,$C=s=>s.snapStart,zy=s=>s.rounded,VC=(s,F)=>s[F+"-edge"]!==void 0,d4=s=>VC(s,FG),RN=s=>VC(s,CN),UC=s=>VC(s,zG),LN=s=>VC(s,AN),ox=s=>s.model.value.get(),B2=(s,F)=>({x:s,y:F}),g0=(s,F)=>{Ri(s,ok(),{value:F})},NG=(s,F)=>{g0(s,B2(BC(F),zC(F)))},IP=(s,F)=>{g0(s,zC(F))},DP=(s,F)=>{g0(s,B2(MN(F),zC(F)))},BP=(s,F)=>{g0(s,B2(ik(F),zC(F)))},$G=(s,F)=>{g0(s,ik(F))},Mg=(s,F)=>{g0(s,B2(ik(F),EN(F)))},VG=(s,F)=>{g0(s,B2(ik(F),ak(F)))},UG=(s,F)=>{g0(s,ak(F))},IN=(s,F)=>{g0(s,B2(MN(F),ak(F)))},DN=(s,F)=>{g0(s,B2(BC(F),ak(F)))},jG=(s,F)=>{g0(s,BC(F))},QG=(s,F)=>{g0(s,B2(BC(F),EN(F)))},zP=(s,F,Z,ue)=>sZ?Z:s===F?F-1:Math.max(F,s-ue),FP=(s,F,Z,ue)=>s>Z?s:sMath.max(F,Math.min(Z,s)),HG=(s,F,Z,ue,we)=>we.fold(()=>{const Be=s-F,qe=Math.round(Be/ue)*ue;return BN(F+qe,F-1,Z+1)},Be=>{const qe=(s-Be)%ue,ft=Math.round(qe/ue),gt=Math.floor((s-Be)/ue),At=Math.floor((Z-Be)/ue),$t=Math.min(At,gt+ft),on=Be+$t*ue;return Math.max(Be,on)}),ZG=(s,F,Z)=>Math.min(Z,Math.max(s,F))-F,NP=s=>{const{min:F,max:Z,range:ue,value:we,step:Be,snap:qe,snapStart:ft,rounded:gt,hasMinEdge:At,hasMaxEdge:$t,minBound:on,maxBound:yn,screenRange:wn}=s,Mn=At?F-1:F,Xn=$t?Z+1:Z;if(weyn)return Xn;{const Br=ZG(we,on,yn),or=BN(Br/wn*ue+F,Mn,Xn);return qe&&or>=F&&or<=Z?HG(or,F,Z,Be,ft):gt?Math.round(or):or}},zN=s=>{const{min:F,max:Z,range:ue,value:we,hasMinEdge:Be,hasMaxEdge:qe,maxBound:ft,maxOffset:gt,centerMinEdge:At,centerMaxEdge:$t}=s;return weZ?qe?ft:$t:(we-F)/ue*gt},$P="top",FN="right",VP="bottom",sk="left",NN="width",$N="height",wv=s=>s.element.dom.getBoundingClientRect(),v0=(s,F)=>s[F],h4=s=>{const F=wv(s);return v0(F,sk)},VN=s=>{const F=wv(s);return v0(F,FN)},p4=s=>{const F=wv(s);return v0(F,$P)},Jw=s=>{const F=wv(s);return v0(F,VP)},UP=s=>{const F=wv(s);return v0(F,NN)},jP=s=>{const F=wv(s);return v0(F,$N)},QP=(s,F,Z)=>(s+F)/2-Z,UN=(s,F)=>{const Z=wv(s),ue=wv(F),we=v0(Z,sk),Be=v0(Z,FN),qe=v0(ue,sk);return QP(we,Be,qe)},jN=(s,F)=>{const Z=wv(s),ue=wv(F),we=v0(Z,$P),Be=v0(Z,VP),qe=v0(ue,$P);return QP(we,Be,qe)},eO=(s,F)=>{Ri(s,ok(),{value:F})},HP=(s,F,Z)=>{const ue={min:Xw(F),max:Kw(F),range:LP(F),value:Z,step:f4(F),snap:PN(F),snapStart:$C(F),rounded:zy(F),hasMinEdge:d4(F),hasMaxEdge:RN(F),minBound:h4(s),maxBound:VN(s),screenRange:UP(s)};return NP(ue)},qG=(s,F,Z)=>{const ue=HP(s,F,Z);return eO(s,ue),ue},QN=(s,F)=>{const Z=Xw(F);eO(s,Z)},HN=(s,F)=>{const Z=Kw(F);eO(s,Z)},ZP=(s,F,Z,ue)=>{const Be=(s>0?FP:zP)(ox(Z),Xw(Z),Kw(Z),f4(Z,ue));return eO(F,Be),I.some(Be)},qP=s=>(F,Z,ue)=>ZP(s,F,Z,ue).map(k),bp=s=>RP(s).map(Z=>Z.left),ZN=(s,F,Z,ue,we)=>{const qe=UP(s),ft=ue.bind($t=>I.some(UN($t,s))).getOr(0),gt=we.bind($t=>I.some(UN($t,s))).getOr(qe),At={min:Xw(F),max:Kw(F),range:LP(F),value:Z,hasMinEdge:d4(F),hasMaxEdge:RN(F),minBound:h4(s),minOffset:0,maxBound:VN(s),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:gt};return zN(At)},WP=(s,F,Z,ue,we,Be)=>{const qe=ZN(F,Be,Z,ue,we);return h4(F)-h4(s)+qe},WG=(s,F,Z,ue)=>{const we=ox(Z),Be=WP(s,ue.getSpectrum(s),we,ue.getLeftEdge(s),ue.getRightEdge(s),Z),qe=cc(F.element)/2;ko(F.element,"left",Be-qe+"px")},qN=qP(-1),YG=qP(1),XG=I.none,GG=I.none,WN={"top-left":I.none(),top:I.none(),"top-right":I.none(),right:I.some($G),"bottom-right":I.none(),bottom:I.none(),"bottom-left":I.none(),left:I.some(jG)};var Fy=Object.freeze({__proto__:null,setValueFrom:qG,setToMin:QN,setToMax:HN,findValueOfOffset:HP,getValueFromEvent:bp,findPositionOfValue:WP,setPositionFromValue:WG,onLeft:qN,onRight:YG,onUp:XG,onDown:GG,edgeActions:WN});const m4=(s,F)=>{Ri(s,ok(),{value:F})},jC=(s,F,Z)=>{const ue={min:Gw(F),max:D2(F),range:NC(F),value:Z,step:f4(F),snap:PN(F),snapStart:$C(F),rounded:zy(F),hasMinEdge:UC(F),hasMaxEdge:LN(F),minBound:p4(s),maxBound:Jw(s),screenRange:jP(s)};return NP(ue)},QC=(s,F,Z)=>{const ue=jC(s,F,Z);return m4(s,ue),ue},YP=(s,F)=>{const Z=Gw(F);m4(s,Z)},KG=(s,F)=>{const Z=D2(F);m4(s,Z)},JG=(s,F,Z,ue)=>{const Be=(s>0?FP:zP)(ox(Z),Gw(Z),D2(Z),f4(Z,ue));return m4(F,Be),I.some(Be)},YN=s=>(F,Z,ue)=>JG(s,F,Z,ue).map(k),eK=s=>RP(s).map(Z=>Z.top),tK=(s,F,Z,ue,we)=>{const qe=jP(s),ft=ue.bind($t=>I.some(jN($t,s))).getOr(0),gt=we.bind($t=>I.some(jN($t,s))).getOr(qe),At={min:Gw(F),max:D2(F),range:NC(F),value:Z,hasMinEdge:UC(F),hasMaxEdge:LN(F),minBound:p4(s),minOffset:0,maxBound:Jw(s),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:gt};return zN(At)},XP=(s,F,Z,ue,we,Be)=>{const qe=tK(F,Be,Z,ue,we);return p4(F)-p4(s)+qe},nK=(s,F,Z,ue)=>{const we=ox(Z),Be=XP(s,ue.getSpectrum(s),we,ue.getTopEdge(s),ue.getBottomEdge(s),Z),qe=Ql(F.element)/2;ko(F.element,"top",Be-qe+"px")},XN=I.none,rK=I.none,Ny=YN(-1),HC=YN(1),oK={"top-left":I.none(),top:I.some(IP),"top-right":I.none(),right:I.none(),"bottom-right":I.none(),bottom:I.some(UG),"bottom-left":I.none(),left:I.none()};var iK=Object.freeze({__proto__:null,setValueFrom:QC,setToMin:YP,setToMax:KG,findValueOfOffset:jC,getValueFromEvent:eK,findPositionOfValue:XP,setPositionFromValue:nK,onLeft:XN,onRight:rK,onUp:Ny,onDown:HC,edgeActions:oK});const lk=(s,F)=>{Ri(s,ok(),{value:F})},ck=(s,F)=>({x:s,y:F}),GP=(s,F,Z)=>{const ue=HP(s,F,Z.left),we=jC(s,F,Z.top),Be=ck(ue,we);return lk(s,Be),Be},ZC=(s,F,Z,ue,we)=>{const Be=s>0?FP:zP,qe=F?ox(ue).x:Be(ox(ue).x,Xw(ue),Kw(ue),f4(ue,we)),ft=F?Be(ox(ue).y,Gw(ue),D2(ue),f4(ue,we)):ox(ue).y;return lk(Z,ck(qe,ft)),I.some(qe)},z2=(s,F)=>(Z,ue,we)=>ZC(s,F,Z,ue,we).map(k),uk=(s,F)=>{const Z=Xw(F),ue=Gw(F);lk(s,ck(Z,ue))},GN=(s,F)=>{const Z=Kw(F),ue=D2(F);lk(s,ck(Z,ue))},KN=s=>RP(s),JN=(s,F,Z,ue)=>{const we=ox(Z),Be=WP(s,ue.getSpectrum(s),we.x,ue.getLeftEdge(s),ue.getRightEdge(s),Z),qe=XP(s,ue.getSpectrum(s),we.y,ue.getTopEdge(s),ue.getBottomEdge(s),Z),ft=cc(F.element)/2,gt=Ql(F.element)/2;ko(F.element,"left",Be-ft+"px"),ko(F.element,"top",qe-gt+"px")},e$=z2(-1,!1),aK=z2(1,!1),sK=z2(-1,!0),lK=z2(1,!0),cK={"top-left":I.some(NG),top:I.some(DP),"top-right":I.some(BP),right:I.some(Mg),"bottom-right":I.some(VG),bottom:I.some(IN),"bottom-left":I.some(DN),left:I.some(QG)};var uK=Object.freeze({__proto__:null,setValueFrom:GP,setToMin:uk,setToMax:GN,getValueFromEvent:KN,setPositionFromValue:JN,onLeft:e$,onRight:aK,onUp:sK,onDown:lK,edgeActions:cK});const t$=[mr("stepSize",1),mr("speedMultiplier",10),mr("onChange",v),mr("onChoose",v),mr("onInit",v),mr("onDragStart",v),mr("onDragEnd",v),mr("snapToGrid",!1),mr("rounded",!0),Hr("snapStart"),rr("model",xn("mode",{x:[mr("minX",0),mr("maxX",100),On("value",s=>xi(s.mode.minX)),Sn("getInitialValue"),Il("manager",Fy)],y:[mr("minY",0),mr("maxY",100),On("value",s=>xi(s.mode.minY)),Sn("getInitialValue"),Il("manager",iK)],xy:[mr("minX",0),mr("maxX",100),mr("minY",0),mr("maxY",100),On("value",s=>xi({x:s.mode.minX,y:s.mode.minY})),Sn("getInitialValue"),Il("manager",uK)]})),Pf("sliderBehaviours",[Li,hi]),On("mouseIsDown",()=>xi(!1))],l1=ch({name:"Slider",configFields:t$,partFields:DG,factory:(s,F,Z,ue)=>{const we=Xr=>Ph(Xr,s,"thumb"),Be=Xr=>Ph(Xr,s,"spectrum"),qe=Xr=>Fo(Xr,s,"left-edge"),ft=Xr=>Fo(Xr,s,"right-edge"),gt=Xr=>Fo(Xr,s,"top-edge"),At=Xr=>Fo(Xr,s,"bottom-edge"),$t=s.model,on=$t.manager,yn=(Xr,No)=>{on.setPositionFromValue(Xr,No,s,{getLeftEdge:qe,getRightEdge:ft,getTopEdge:gt,getBottomEdge:At,getSpectrum:Be})},wn=(Xr,No)=>{$t.value.set(No);const Jo=we(Xr);yn(Xr,Jo)},Mn=(Xr,No)=>{wn(Xr,No);const Jo=we(Xr);return s.onChange(Xr,Jo,No),I.some(!0)},Xn=Xr=>{on.setToMin(Xr,s)},Br=Xr=>{on.setToMax(Xr,s)},or=Xr=>{const No=()=>{Fo(Xr,s,"thumb").each(ho=>{const Ci=$t.value.get();s.onChoose(Xr,ho,Ci)})},Jo=s.mouseIsDown.get();s.mouseIsDown.set(!1),Jo&&No()},Mr=(Xr,No)=>{No.stop(),s.mouseIsDown.set(!0),s.onDragStart(Xr,we(Xr))},kr=(Xr,No)=>{No.stop(),s.onDragEnd(Xr,we(Xr)),or(Xr)},yo=Xr=>{Fo(Xr,s,"spectrum").map(Li.focusIn)};return{uid:s.uid,dom:s.dom,components:F,behaviours:Rf(s.sliderBehaviours,[Li.config({mode:"special",focusIn:yo}),hi.config({store:{mode:"manual",getValue:Xr=>$t.value.get(),setValue:wn}}),Wu.config({channels:{[pw()]:{onReceive:or}}})]),events:pl([fo(ok(),(Xr,No)=>{Mn(Xr,No.event.value)}),Ll((Xr,No)=>{const Jo=$t.getInitialValue();$t.value.set(Jo);const ho=we(Xr);yn(Xr,ho);const Ci=Be(Xr);s.onInit(Xr,ho,Ci,$t.value.get())}),fo(_m(),Mr),fo(wm(),kr),fo(Oh(),(Xr,No)=>{yo(Xr),Mr(Xr,No)}),fo(Hv(),kr)]),apis:{resetToMin:Xn,resetToMax:Br,setValue:wn,refresh:yn},domModification:{styles:{position:"relative"}}}},apis:{setValue:(s,F,Z)=>{s.setValue(F,Z)},resetToMin:(s,F)=>{s.resetToMin(F)},resetToMax:(s,F)=>{s.resetToMax(F)},refresh:(s,F)=>{s.refresh(F)}}}),qC=fi("rgb-hex-update"),n$=fi("slider-update"),KP=fi("palette-update"),fk=(s,F)=>{const Z=l1.parts.spectrum({dom:{tag:"div",classes:[F("hue-slider-spectrum")],attributes:{role:"presentation"}}}),ue=l1.parts.thumb({dom:{tag:"div",classes:[F("hue-slider-thumb")],attributes:{role:"presentation"}}});return l1.sketch({dom:{tag:"div",classes:[F("hue-slider")],attributes:{role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":120}},rounded:!1,model:{mode:"y",getInitialValue:x(0)},components:[Z,ue],sliderBehaviours:Bo([oa.config({})]),onChange:(we,Be,qe)=>{fr(we.element,"aria-valuenow",Math.floor(360-qe*3.6)),Ri(we,n$,{value:qe})}})},r$="form",o$=[Pf("formBehaviours",[hi])],i$=s=>"",dK=s=>{const F=(()=>{const Be=[];return{field:(ft,gt)=>(Be.push(ft),s6(r$,i$(ft),gt)),record:x(Be)}})(),Z=s(F),ue=F.record(),we=oe(ue,Be=>kd({name:Be,pname:i$(Be)}));return pv(r$,o$,we,pK,Z)},hK=(s,F)=>s.fold(()=>Hi.error(F),Hi.value),pK=(s,F)=>({uid:s.uid,dom:s.dom,components:F,behaviours:Rf(s.formBehaviours,[hi.config({store:{mode:"manual",getValue:Z=>{const ue=l5(Z,s);return Ue(ue,(we,Be)=>we().bind(qe=>{const ft=as.getCurrent(qe);return hK(ft,new Error(`Cannot find a current component to extract the value from for form part '${Be}': `+rh(qe.element)))}).map(hi.getValue))},setValue:(Z,ue)=>{We(ue,(we,Be)=>{Fo(Z,s,Be).each(qe=>{as.getCurrent(qe).each(ft=>{hi.setValue(ft,we)})})})}}})]),apis:{getField:(Z,ue)=>Fo(Z,s,ue).bind(as.getCurrent)}}),tO={getField:Cc((s,F,Z)=>s.getField(F,Z)),sketch:dK},a$=fi("valid-input"),JP=fi("invalid-input"),WC=fi("validating-input"),Ov="colorcustom.rgb.",e9=(s,F,Z,ue)=>{const we=(yn,wn)=>By.config({invalidClass:F("invalid"),notify:{onValidate:Mn=>{Ri(Mn,WC,{type:yn})},onValid:Mn=>{Ri(Mn,a$,{type:yn,value:hi.getValue(Mn)})},onInvalid:Mn=>{Ri(Mn,JP,{type:yn,value:hi.getValue(Mn)})}},validator:{validate:Mn=>{const Xn=hi.getValue(Mn),Br=wn(Xn)?Hi.value(!0):Hi.error(s("aria.input.invalid"));return uh.pure(Br)},validateOnLoad:!1}}),Be=(yn,wn,Mn,Xn,Br)=>{const or=s(Ov+"range"),Mr=Js.parts.label({dom:{tag:"label",attributes:{"aria-label":Xn}},components:[ro(Mn)]}),kr=Js.parts.field({data:Br,factory:Nw,inputAttributes:{type:"text",...wn==="hex"?{"aria-live":"polite"}:{}},inputClasses:[F("textfield")],inputBehaviours:Bo([we(wn,yn),Wl.config({})]),onSetValue:Jo=>{By.isInvalid(Jo)&&By.run(Jo).get(v)}}),yo=[Mr,kr],Xr=wn!=="hex"?[Js.parts["aria-descriptor"]({text:or})]:[],No=yo.concat(Xr);return{dom:{tag:"div",attributes:{role:"presentation"}},components:No}},qe=(yn,wn)=>{const Mn=Y5(wn);return tO.getField(yn,"hex").each(Xn=>{oa.isFocused(Xn)||hi.setValue(yn,{hex:Mn.value})}),Mn},ft=(yn,wn)=>{const Mn=wn.red,Xn=wn.green,Br=wn.blue;hi.setValue(yn,{red:Mn,green:Xn,blue:Br})},gt=qs({dom:{tag:"div",classes:[F("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),At=(yn,wn)=>{gt.getOpt(yn).each(Mn=>{ko(Mn.element,"background-color","#"+wn.value)})};return Yh({factory:()=>{const yn={red:xi(I.some(255)),green:xi(I.some(255)),blue:xi(I.some(255)),hex:xi(I.some("ffffff"))},wn=(Fi,Os)=>{const vs=X5(Os);ft(Fi,vs),or(vs)},Mn=Fi=>yn[Fi].get(),Xn=(Fi,Os)=>{yn[Fi].set(Os)},Br=()=>Mn("red").bind(Fi=>Mn("green").bind(Os=>Mn("blue").map(vs=>Hw(Fi,Os,vs,1)))),or=Fi=>{const Os=Fi.red,vs=Fi.green,Ha=Fi.blue;Xn("red",I.some(Os)),Xn("green",I.some(vs)),Xn("blue",I.some(Ha))},Mr=(Fi,Os)=>{const vs=Os.event;vs.type!=="hex"?Xn(vs.type,I.none()):ue(Fi)},kr=(Fi,Os)=>{Z(Fi);const vs=iP(Os);Xn("hex",I.some(vs.value));const Ha=X5(vs);ft(Fi,Ha),or(Ha),Ri(Fi,qC,{hex:vs}),At(Fi,vs)},yo=(Fi,Os,vs)=>{const Ha=parseInt(vs,10);Xn(Os,I.some(Ha)),Br().each(Ho=>{const wi=qe(Fi,Ho);Ri(Fi,qC,{hex:wi}),At(Fi,wi)})},Xr=Fi=>Fi.type==="hex",No=(Fi,Os)=>{const vs=Os.event;Xr(vs)?kr(Fi,vs.value):yo(Fi,vs.type,vs.value)},Jo=Fi=>({label:s(Ov+Fi+".label"),description:s(Ov+Fi+".description")}),ho=Jo("red"),Ci=Jo("green"),mi=Jo("blue"),qi=Jo("hex");return nl(tO.sketch(Fi=>({dom:{tag:"form",classes:[F("rgb-form")],attributes:{"aria-label":s("aria.color.picker")}},components:[Fi.field("red",Js.sketch(Be(sP,"red",ho.label,ho.description,255))),Fi.field("green",Js.sketch(Be(sP,"green",Ci.label,Ci.description,255))),Fi.field("blue",Js.sketch(Be(sP,"blue",mi.label,mi.description,255))),Fi.field("hex",Js.sketch(Be(bF,"hex",qi.label,qi.description,"ffffff"))),gt.asSpec()],formBehaviours:Bo([By.config({invalidClass:F("form-invalid")}),Ca("rgb-form-events",[fo(a$,No),fo(JP,Mr),fo(WC,Mr)])])})),{apis:{updateHex:(Fi,Os)=>{hi.setValue(Fi,{hex:Os.value}),wn(Fi,Os),At(Fi,Os)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(yn,wn,Mn)=>{yn.updateHex(wn,Mn)}},extraApis:{}})},s$=(s,F)=>{const Z=l1.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[F("sv-palette-spectrum")]}}),ue=l1.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[F("sv-palette-thumb")],innerHtml:``}}),we=(At,$t)=>{const{width:on,height:yn}=At,wn=At.getContext("2d");if(wn===null)return;wn.fillStyle=$t,wn.fillRect(0,0,on,yn);const Mn=wn.createLinearGradient(0,0,on,0);Mn.addColorStop(0,"rgba(255,255,255,1)"),Mn.addColorStop(1,"rgba(255,255,255,0)"),wn.fillStyle=Mn,wn.fillRect(0,0,on,yn);const Xn=wn.createLinearGradient(0,0,0,yn);Xn.addColorStop(0,"rgba(0,0,0,0)"),Xn.addColorStop(1,"rgba(0,0,0,1)"),wn.fillStyle=Xn,wn.fillRect(0,0,on,yn)},Be=(At,$t)=>{const on=At.components()[0].element.dom,yn=Ww($t,100,100),wn=kF(yn);we(on,CF(wn))},qe=(At,$t)=>{const on=TC(X5($t));l1.setValue(At,{x:on.saturation,y:100-on.value}),fr(At.element,"aria-valuetext",s(["Saturation {0}%, Brightness {1}%",on.saturation,on.value]))};return Yh({factory:At=>{const $t=x({x:0,y:0}),on=(Mn,Xn,Br)=>{h(Br)||fr(Mn.element,"aria-valuetext",s(["Saturation {0}%, Brightness {1}%",Math.floor(Br.x),Math.floor(100-Br.y)])),Ri(Mn,KP,{value:Br})},yn=(Mn,Xn,Br,or)=>{we(Br.element.dom,CF(AF))},wn=Bo([as.config({find:I.some}),oa.config({})]);return l1.sketch({dom:{tag:"div",attributes:{role:"slider","aria-valuetext":s(["Saturation {0}%, Brightness {1}%",0,0])},classes:[F("sv-palette")]},model:{mode:"xy",getInitialValue:$t},rounded:!1,components:[Z,ue],onChange:on,onInit:yn,sliderBehaviours:wn})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(At,$t,on)=>{Be($t,on)},setThumb:(At,$t,on)=>{qe($t,on)}},extraApis:{}})},l$=(s,F)=>{const Z=we=>{const Be=e9(s,F,we.onValidHex,we.onInvalidHex),qe=s$(s,F),ft=No=>(100-No)/100*360,gt=No=>100-No/360*100,At={paletteRgba:xi(AF),paletteHue:xi(0)},$t=qs(fk(s,F)),on=qs(qe.sketch({})),yn=qs(Be.sketch({})),wn=(No,Jo,ho)=>{on.getOpt(No).each(Ci=>{qe.setHue(Ci,ho)})},Mn=(No,Jo)=>{yn.getOpt(No).each(ho=>{Be.updateHex(ho,Jo)})},Xn=(No,Jo,ho)=>{$t.getOpt(No).each(Ci=>{l1.setValue(Ci,gt(ho))})},Br=(No,Jo)=>{on.getOpt(No).each(ho=>{qe.setThumb(ho,Jo)})},or=(No,Jo)=>{const ho=X5(No);At.paletteRgba.set(ho),At.paletteHue.set(Jo)},Mr=(No,Jo,ho,Ci)=>{or(Jo,ho),q(Ci,mi=>{mi(No,Jo,ho)})},kr=()=>{const No=[Mn];return(Jo,ho)=>{const Ci=ho.event.value,mi=At.paletteHue.get(),qi=Ww(mi,Ci.x,100-Ci.y),Fi=BF(qi);Mr(Jo,Fi,mi,No)}},yo=()=>{const No=[wn,Mn];return(Jo,ho)=>{const Ci=ft(ho.event.value),mi=At.paletteRgba.get(),qi=TC(mi),Fi=Ww(Ci,qi.saturation,qi.value),Os=BF(Fi);Mr(Jo,Os,Ci,No)}},Xr=()=>{const No=[wn,Xn,Br];return(Jo,ho)=>{const Ci=ho.event.hex,mi=fX(Ci);Mr(Jo,Ci,mi.hue,No)}};return{uid:we.uid,dom:we.dom,components:[on.asSpec(),$t.asSpec(),yn.asSpec()],behaviours:Bo([Ca("colour-picker-events",[fo(qC,Xr()),fo(KP,kr()),fo(n$,yo())]),as.config({find:No=>yn.getOpt(No)}),Li.config({mode:"acyclic"})])}};return Yh({name:"ColourPicker",configFields:[Sn("dom"),mr("onValidHex",v),mr("onInvalidHex",v)],factory:Z})},y0={self:()=>as.config({find:I.some}),memento:s=>as.config({find:s.getOpt}),childAt:s=>as.config({find:F=>Bn(F.element,s).bind(Z=>F.getSystem().getByDom(Z).toOptional())})},u$=Mi([mr("preprocess",R),mr("postprocess",R)]),gK=(s,F)=>{const Z=cn("RepresentingConfigs.memento processors",u$,F);return hi.config({store:{mode:"manual",getValue:ue=>{const we=s.get(ue),Be=hi.getValue(we);return Z.postprocess(Be)},setValue:(ue,we)=>{const Be=Z.preprocess(we),qe=s.get(ue);hi.setValue(qe,Be)}}})},nO=(s,F,Z)=>hi.config({store:{mode:"manual",...s.map(ue=>({initialValue:ue})).getOr({}),getValue:F,setValue:Z}}),f$=(s,F,Z)=>nO(s,ue=>F(ue.element),(ue,we)=>Z(ue.element,we)),vK=s=>f$(s,nh,F1),YC=s=>hi.config({store:{mode:"memory",initialValue:s}}),d$={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},h$=s=>F=>n(F)?s.translate(d$[F]):s.translate(F),yK=(s,F,Z)=>{const ue=gt=>"tox-"+gt,we=l$(h$(F),ue),Be=gt=>{Ri(gt,Dy,{name:"hex-valid",value:!0})},qe=gt=>{Ri(gt,Dy,{name:"hex-valid",value:!1})},ft=qs(we.sketch({dom:{tag:"div",classes:[ue("color-picker-container")],attributes:{role:"presentation"}},onValidHex:Be,onInvalidHex:qe}));return{dom:{tag:"div"},components:[ft.asSpec()],behaviours:Bo([nO(Z,gt=>{const At=ft.get(gt);return as.getCurrent(At).bind(yn=>hi.getValue(yn).hex).map(yn=>"#"+mn(yn,"#")).getOr("")},(gt,At)=>{const $t=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,on=I.from($t.exec(At)).bind(Mn=>De(Mn,1)),yn=ft.get(gt);as.getCurrent(yn).fold(()=>{console.log("Can not find form")},Mn=>{hi.setValue(Mn,{hex:on.getOr("")}),tO.getField(Mn,"hex").each(Xn=>{Sa(Xn,ug())})})}),y0.self()])}};var bK=tinymce.util.Tools.resolve("tinymce.Resource");const p$=s=>ht(s,"init"),XC=s=>{const F=os(),Z=qs({dom:{tag:s.tag}}),ue=os(),we=!p$(s)&&s.onFocus.isSome()?[oa.config({onFocus:Be=>{s.onFocus.each(qe=>{qe(Be.element.dom)})}}),Wl.config({})]:[];return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:Bo([Ca("custom-editor-events",[Ll(Be=>{Z.getOpt(Be).each(qe=>{(p$(s)?s.init(qe.element.dom):bK.load(s.scriptId,s.scriptUrl).then(ft=>ft(qe.element.dom,s.settings))).then(ft=>{ue.on(gt=>{ft.setValue(gt)}),ue.clear(),F.set(ft)})})})]),nO(I.none(),()=>F.get().fold(()=>ue.get().getOr(""),Be=>Be.getValue()),(Be,qe)=>{F.get().fold(()=>ue.set(qe),ft=>ft.setValue(qe))}),y0.self()].concat(we)),components:[Z.asSpec()]}};var ix=tinymce.util.Tools.resolve("tinymce.util.Tools");const xK=(s,F)=>{const Z=ix.explode(F.getOption("images_file_types")),ue=we=>te(Z,Be=>yt(we.name.toLowerCase(),`.${Be.toLowerCase()}`));return me($e(s),ue)},m$=(s,F,Z)=>{const ue=(yn,wn)=>{wn.stop()},we=yn=>(wn,Mn)=>{q(yn,Xn=>{Xn(wn,Mn)})},Be=(yn,wn)=>{var Mn;if(!ta.isDisabled(yn)){const Xn=wn.event.raw;ft(yn,(Mn=Xn.dataTransfer)===null||Mn===void 0?void 0:Mn.files)}},qe=(yn,wn)=>{const Mn=wn.event.raw.target;ft(yn,Mn.files)},ft=(yn,wn)=>{wn&&(hi.setValue(yn,xK(wn,F)),Ri(yn,tm,{name:s.name}))},gt=qs({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:Bo([Ca("input-file-events",[Am(R0()),Am(up())])])}),At=yn=>({uid:yn.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:Bo([YC(Z.getOr([])),y0.self(),ta.config({}),za.config({toggleClass:"dragenter",toggleOnExecute:!1}),Ca("dropzone-events",[fo("dragenter",we([ue,za.toggle])),fo("dragleave",we([ue,za.toggle])),fo("dragover",ue),fo("drop",we([ue,Be])),fo(Zv(),qe)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[ro(F.translate("Drop an image here"))]},Vd.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[ro(F.translate("Browse for an image")),gt.asSpec()],action:wn=>{gt.get(wn).element.dom.click()},buttonBehaviours:Bo([Wl.config({}),s1.button(F.isDisabled),df()])})]}]}),$t=s.label.map(yn=>L2(yn,F)),on=Js.parts.field({factory:{sketch:At}});return l4($t,on,["tox-form__group--stretched"],[])},g$=(s,F)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${s.columns}col`]},components:oe(s.items,F.interpreter)}),_K=(s,F)=>{let Z=null,ue=null;return{cancel:()=>{O(Z)||(clearTimeout(Z),Z=null,ue=null)},throttle:(...qe)=>{ue=qe,O(Z)&&(Z=setTimeout(()=>{const ft=ue;Z=null,ue=null,s.apply(null,ft)},F))}}},wK=(s,F)=>{let Z=null;return{cancel:()=>{O(Z)||(clearTimeout(Z),Z=null)},throttle:(...Be)=>{O(Z)&&(Z=setTimeout(()=>{Z=null,s.apply(null,Be)},F))}}},dk=(s,F)=>{let Z=null;const ue=()=>{O(Z)||(clearTimeout(Z),Z=null)};return{cancel:ue,throttle:(...Be)=>{ue(),Z=setTimeout(()=>{Z=null,s.apply(null,Be)},F)}}},n9=fi("alloy-fake-before-tabstop"),GC=fi("alloy-fake-after-tabstop"),v$=s=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:s},behaviours:Bo([oa.config({ignore:!0}),Wl.config({})])}),y$=(s,F)=>({dom:{tag:"div",classes:["tox-navobj",...s.getOr([])]},components:[v$([n9]),F,v$([GC])],behaviours:Bo([y0.childAt(1)])}),b$=(s,F)=>{Ri(s,Bp(),{raw:{which:9,shiftKey:F}})},x$=(s,F)=>{const Z=F.element;$l(Z,n9)?b$(s,!0):$l(Z,GC)&&b$(s,!1)},g4=s=>ek(s,["."+n9,"."+GC].join(","),D),KC=fi("update-dialog"),_$=fi("update-title"),w$=fi("update-body"),O$=fi("update-footer"),r9=fi("body-send-message"),JC=fi("dialog-focus-shifted"),e8=rf().browser,hk=e8.isSafari(),OK=e8.isFirefox(),S$=hk||OK,SK=e8.isChromium(),kK=({scrollTop:s,scrollHeight:F,clientHeight:Z})=>Math.ceil(s)+Z>=F,k$=(s,F)=>s.scrollTo(0,F==="bottom"?99999999:F),TK=(s,F)=>{const Z=s.body;return I.from(!/^1))?Z:s.documentElement)},T$=(s,F,Z)=>{const ue=s.dom;I.from(ue.contentDocument).fold(Z,we=>{let Be=0;const qe=TK(we,F).map(gt=>(Be=gt.scrollTop,gt)).forall(kK),ft=()=>{const gt=ue.contentWindow;a(gt)&&(qe?k$(gt,"bottom"):!qe&&S$&&Be!==0&&k$(gt,Be))};hk&&ue.addEventListener("load",ft,{once:!0}),we.open(),we.write(F),we.close(),hk||ft()})},o9=_t(S$,hk?500:200).map(s=>_K(T$,s)),CK=(s,F)=>{const Z=xi(s.getOr(""));return{getValue:ue=>Z.get(),setValue:(ue,we)=>{if(Z.get()!==we){const Be=ue.element,qe=()=>fr(Be,"srcdoc",we);F?o9.fold(x(T$),ft=>ft.throttle)(Be,we,qe):qe()}Z.set(we)}}},AK=(s,F,Z)=>{const ue="tox-dialog__iframe",we=s.transparent?[]:[`${ue}--opaque`],Be=s.border?["tox-navobj-bordered"]:[],qe={...s.label.map(on=>({title:on})).getOr({}),...Z.map(on=>({srcdoc:on})).getOr({}),...s.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},ft=CK(Z,s.streamContent),gt=s.label.map(on=>L2(on,F)),At=on=>y$(I.from(Be),{uid:on.uid,dom:{tag:"iframe",attributes:qe,classes:[ue,...we]},behaviours:Bo([Wl.config({}),oa.config({}),nO(Z,ft.getValue,ft.setValue),Wu.config({channels:{[JC]:{onReceive:(yn,wn)=>{wn.newFocus.each(Mn=>{Cr(yn.element).each(Xn=>{(so(yn.element,Mn)?Sl:fc)(Xn,"tox-navobj-bordered-focus")})})}}}})])}),$t=Js.parts.field({factory:{sketch:At}});return l4(gt,$t,["tox-form__group--stretched"],[])},MK=s=>new Promise((F,Z)=>{const ue=()=>{Be(),F(s)},we=[wd(s,"load",ue),wd(s,"error",()=>{Be(),Z("Unable to load data from image: "+s.dom.src)})],Be=()=>q(we,qe=>qe.unbind());s.dom.complete&&ue()}),pk=(s,F,Z,ue,we)=>{const Be=Z*we,qe=ue*we,ft=Math.max(0,s/2-Be/2),gt=Math.max(0,F/2-qe/2);return{left:ft.toString()+"px",top:gt.toString()+"px",width:Be.toString()+"px",height:qe.toString()+"px"}},i9=(s,F,Z)=>{const ue=cc(s),we=Ql(s);return Math.min(ue/F,we/Z,1)},EK=(s,F)=>{const Z=xi(F.getOr({url:""})),ue=qs({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:F.map(gt=>({src:gt.url})).getOr({})}}),we=qs({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[ue.asSpec()]}),Be=(gt,At)=>{const $t={url:At.url};At.zoom.each(yn=>$t.zoom=yn),At.cachedWidth.each(yn=>$t.cachedWidth=yn),At.cachedHeight.each(yn=>$t.cachedHeight=yn),Z.set($t);const on=()=>{const{cachedWidth:yn,cachedHeight:wn,zoom:Mn}=$t;if(!y(yn)&&!y(wn)){if(y(Mn)){const Br=i9(gt.element,yn,wn);$t.zoom=Br}const Xn=pk(cc(gt.element),Ql(gt.element),yn,wn,$t.zoom);we.getOpt(gt).each(Br=>{ra(Br.element,Xn)})}};ue.getOpt(gt).each(yn=>{const wn=yn.element;At.url!==ao(wn,"src")&&(fr(wn,"src",At.url),fc(gt.element,"tox-imagepreview__loaded")),on(),MK(wn).then(Mn=>{gt.getSystem().isConnected()&&(Sl(gt.element,"tox-imagepreview__loaded"),$t.cachedWidth=Mn.dom.naturalWidth,$t.cachedHeight=Mn.dom.naturalHeight,on())})})},qe={};s.height.each(gt=>qe.height=gt);const ft=F.map(gt=>({url:gt.url,zoom:I.from(gt.zoom),cachedWidth:I.from(gt.cachedWidth),cachedHeight:I.from(gt.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:qe,attributes:{role:"presentation"}},components:[we.asSpec()],behaviours:Bo([y0.self(),nO(ft,()=>Z.get(),Be)])}},PK=(s,F,Z)=>{const ue="tox-label",we=s.align==="center"?[`${ue}--center`]:[],Be=s.align==="end"?[`${ue}--end`]:[],qe=qs({dom:{tag:"label",classes:[ue,...we,...Be]},components:[ro(F.providers.translate(s.label))]}),ft=oe(s.items,F.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[qe.asSpec(),...ft],behaviours:Bo([y0.self(),da.config({}),vK(I.none()),Li.config({mode:"acyclic"}),Ca("label",[Ll(gt=>{s.for.each(At=>{Z(At).each($t=>{qe.getOpt(gt).each(on=>{var yn;const wn=(yn=ao($t.element,"id"))!==null&&yn!==void 0?yn:fi("form-field");fr($t.element,"id",wn),fr(on.element,"for",wn)})})})})])])}},t8=fi("toolbar.button.execute"),RK=s=>$p((F,Z)=>{gC(s,F)(ue=>{Ri(F,t8,{buttonApi:ue}),s.onAction(ue)})}),ax=fi("common-button-display-events"),a9={[cp()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events","tooltipping"],[zd()]:["toolbar-button-events",ax],[fp()]:["toolbar-button-events","dropdown-events","tooltipping"],[Oh()]:["focusing","alloy.base.behaviour",ax]},s9=s=>ko(s.element,"width",Aa(s.element,"width")),C$=(s,F,Z)=>em(s,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:Z},F),n8=(s,F)=>C$(s,F,[]),sx=(s,F)=>C$(s,F,[da.config({})]),A$=(s,F,Z)=>({dom:{tag:"span",classes:[`${F}__select-label`]},components:[ro(Z.translate(s))],behaviours:Bo([da.config({})])}),Eg=fi("update-menu-text"),F2=fi("update-menu-icon"),l9=(s,F,Z,ue)=>{const we=xi(v),Be=s.text.map(Xn=>qs(A$(Xn,F,Z.providers))),qe=s.icon.map(Xn=>qs(sx(Xn,Z.providers.icons))),ft=(Xn,Br)=>{const or=hi.getValue(Xn);return oa.focus(or),Ri(or,"keydown",{raw:Br.event.raw}),p0.close(or),I.some(!0)},gt=s.role.fold(()=>({}),Xn=>({role:Xn})),At=I.from(s.listRole).map(Xn=>({listRole:Xn})).getOr({}),$t=s.ariaLabel.fold(()=>({}),Xn=>({"aria-label":Z.providers.translate(Xn)})),on=em("chevron-down",{tag:"div",classes:[`${F}__select-chevron`]},Z.providers.icons),yn=fi("common-button-display-events"),wn="dropdown-events";return qs(p0.sketch({...s.uid?{uid:s.uid}:{},...gt,...At,dom:{tag:"button",classes:[F,`${F}--select`].concat(oe(s.classes,Xn=>`${F}--${Xn}`)),attributes:{...$t,...a(ue)?{"data-mce-name":ue}:{}}},components:jw([qe.map(Xn=>Xn.asSpec()),Be.map(Xn=>Xn.asSpec()),I.some(on)]),matchWidth:!0,useMinWidth:!0,onOpen:(Xn,Br,or)=>{s.searchable&&PC(or)},dropdownBehaviours:Bo([...s.dropdownBehaviours,s1.button(()=>s.disabled||Z.providers.isDisabled()),df(),u4.config({}),da.config({}),...s.tooltip.map(Xn=>Td.config(Z.providers.tooltips.getConfig({tooltipText:Z.providers.translate(Xn)}))).toArray(),Ca(wn,[nx(s,we),Ih(s,we)]),Ca(yn,[Ll((Xn,Br)=>s9(Xn))]),Ca("menubutton-update-display-text",[fo(Eg,(Xn,Br)=>{Be.bind(or=>or.getOpt(Xn)).each(or=>{da.set(or,[ro(Z.providers.translate(Br.event.text))])})}),fo(F2,(Xn,Br)=>{qe.bind(or=>or.getOpt(Xn)).each(or=>{da.set(or,[sx(Br.event.icon,Z.providers.icons)])})})])]),eventOrder:nl(a9,{[Oh()]:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[zd()]:["toolbar-button-events",Td.name(),wn,yn]}),sandboxBehaviours:Bo([Li.config({mode:"special",onLeft:ft,onRight:ft}),Ca("dropdown-sandbox-events",[fo($z,(Xn,Br)=>{XX(Xn),Br.stop()}),fo(Vz,(Xn,Br)=>{GX(Xn,Br),Br.stop()})])]),lazySink:Z.getSink,toggleClass:`${F}--active`,parts:{menu:{...N5(!1,s.columns,s.presets),fakeFocus:s.searchable,...s.listRole==="listbox"?{}:{onHighlightItem:J5,onCollapseMenu:(Xn,Br,or)=>{ri.getHighlighted(or).each(Mr=>{J5(Xn,or,Mr)})},onDehighlightItem:eG}}},getAnchorOverrides:()=>({maxHeightFunction:(Xn,Br)=>{gy()(Xn,Br-10)}}),fetch:Xn=>uh.nu(T(s.fetch,Xn))})).asSpec()},M$=s=>n(s),c9=s=>s.type==="separator",E$=s=>ht(s,"getSubmenuItems"),LK={type:"separator"},IK=(s,F)=>{const Z=se(s,(ue,we)=>M$(we)?we===""?ue:we==="|"?ue.length>0&&!c9(ue[ue.length-1])?ue.concat([LK]):ue:ht(F,we.toLowerCase())?ue.concat([F[we.toLowerCase()]]):ue:ue.concat([we]),[]);return Z.length>0&&c9(Z[Z.length-1])&&Z.pop(),Z},DK=(s,F)=>{const Z=s.getSubmenuItems(),ue=R$(Z,F),we=nl(ue.menus,{[s.value]:ue.items}),Be=nl(ue.expansions,{[s.value]:s.value});return{item:s,menus:we,expansions:Be}},P$=s=>{const F=Ge(s,"value").getOrThunk(()=>fi("generated-menu-item"));return nl({value:F},s)},R$=(s,F)=>{const Z=IK(n(s)?s.split(" "):s,F);return he(Z,(ue,we)=>{if(E$(we)){const Be=P$(we),qe=DK(Be,F);return{menus:nl(ue.menus,qe.menus),items:[qe.item,...ue.items],expansions:nl(ue.expansions,qe.expansions)}}else return{...ue,items:[we,...ue.items]}},{menus:{},expansions:{},items:[]})},L$=s=>s.search.fold(()=>({searchMode:"no-search"}),F=>({searchMode:"search-with-field",placeholder:F.placeholder})),BK=s=>s.search.fold(()=>({searchMode:"no-search"}),F=>({searchMode:"search-with-results"})),v4=(s,F,Z,ue)=>{const we=fi("primary-menu"),Be=R$(s,Z.shared.providers.menuItems());if(Be.items.length===0)return I.none();const qe=L$(ue),ft=oG(we,Be.items,F,Z,ue.isHorizontalMenu,qe),gt=BK(ue),At=Ue(Be.menus,(on,yn)=>oG(yn,on,F,Z,!1,gt)),$t=nl(At,wh(we,ft));return I.from(Rw.tieredData(we,$t,Be.expansions))},y4=s=>!ht(s,"items"),I$="data-value",D$=(s,F,Z,ue,we)=>oe(Z,Be=>y4(Be)?{type:"togglemenuitem",...we?{}:{role:"option"},text:Be.text,value:Be.value,active:Be.value===ue,onAction:()=>{hi.setValue(s,Be.value),Ri(s,tm,{name:F}),oa.focus(s)}}:{type:"nestedmenuitem",text:Be.text,getSubmenuItems:()=>D$(s,F,Be.items,ue,we)}),u9=(s,F)=>Oe(s,Z=>y4(Z)?_t(Z.value===F,Z):u9(Z.items,F)),f9=(s,F,Z)=>{const ue=te(s.items,At=>!y4(At)),we=F.shared.providers,Be=Z.bind(At=>u9(s.items,At)).orThunk(()=>He(s.items).filter(y4)),qe=s.label.map(At=>L2(At,we)),ft=Js.parts.field({dom:{},factory:{sketch:At=>l9({uid:At.uid,text:Be.map($t=>$t.text),icon:I.none(),tooltip:I.none(),role:_t(!ue,"combobox"),...ue?{}:{listRole:"listbox"},ariaLabel:s.label,fetch:($t,on)=>{const yn=D$($t,s.name,s.items,hi.getValue($t),ue);on(v4(yn,r1.CLOSE_ON_EXECUTE,F,{isHorizontalMenu:!1,search:I.none()}))},onSetup:x(v),getApi:x({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Wl.config({}),nO(Be.map($t=>$t.value),$t=>ao($t.element,I$),($t,on)=>{u9(s.items,on).each(yn=>{fr($t.element,I$,yn.value),Ri($t,Eg,{text:yn.text})})})]},"tox-listbox",F.shared)}}),gt={dom:{tag:"div",classes:["tox-listboxfield"]},components:[ft]};return Js.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ve([qe.toArray(),[gt]]),fieldBehaviours:Bo([ta.config({disabled:x(!s.enabled),onDisabled:At=>{Js.getField(At).each(ta.disable)},onEnabled:At=>{Js.getField(At).each(ta.enable)}})])})},zK=(s,F)=>({dom:{tag:"div",classes:s.classes},components:oe(s.items,F.shared.interpreter)}),B$=(s,F)=>{const Z=oe(s.options,we=>({dom:{tag:"option",value:we.value,innerHtml:we.text}})),ue=s.data.map(we=>wh("initialValue",we)).getOr({});return{uid:s.uid,dom:{tag:"select",classes:s.selectClasses,attributes:s.selectAttributes},components:Z,behaviours:Rf(s.selectBehaviours,[oa.config({}),hi.config({store:{mode:"manual",getValue:we=>qr(we.element),setValue:(we,Be)=>{const qe=He(s.options);ce(s.options,gt=>gt.value===Be).isSome()?N(we.element,Be):we.element.dom.selectedIndex===-1&&Be===""&&qe.each(gt=>N(we.element,gt.value))},...ue}})])}},FK=Yh({name:"HtmlSelect",configFields:[Sn("options"),Pf("selectBehaviours",[oa,hi]),mr("selectClasses",[]),mr("selectAttributes",{}),Hr("data")],factory:B$}),z$=(s,F,Z)=>{const ue=oe(s.items,gt=>({text:F.translate(gt.text),value:gt.value})),we=s.label.map(gt=>L2(gt,F)),Be=Js.parts.field({dom:{},...Z.map(gt=>({data:gt})).getOr({}),selectAttributes:{size:s.size},options:ue,factory:FK,selectBehaviours:Bo([ta.config({disabled:()=>!s.enabled||F.isDisabled()}),Wl.config({}),Ca("selectbox-change",[fo(Zv(),(gt,At)=>{Ri(gt,tm,{name:s.name})})])])}),qe=s.size>1?I.none():I.some(em("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},F.icons)),ft={dom:{tag:"div",classes:["tox-selectfield"]},components:ve([[Be],qe.toArray()])};return Js.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ve([we.toArray(),[ft]]),fieldBehaviours:Bo([ta.config({disabled:()=>!s.enabled||F.isDisabled(),onDisabled:gt=>{Js.getField(gt).each(ta.disable)},onEnabled:gt=>{Js.getField(gt).each(ta.enable)}}),df()])})},NK=x([mr("field1Name","field1"),mr("field2Name","field2"),Zh("onLockedChange"),jp(["lockClass"]),mr("locked",!1),Vm.field("coupledFieldBehaviours",[as,hi])]),$K=(s,F,Z)=>Fo(s,F,Z).bind(as.getCurrent),F$=(s,F)=>kd({factory:Js,name:s,overrides:Z=>({fieldBehaviours:Bo([Ca("coupled-input-behaviour",[fo(ug(),ue=>{$K(ue,Z,F).each(we=>{Fo(ue,Z,"lock").each(Be=>{za.isOn(Be)&&Z.onLockedChange(ue,we,Be)})})})])])})}),VK=x([F$("field1","field2"),F$("field2","field1"),kd({factory:Vd,schema:[Sn("dom")],name:"lock",overrides:s=>({buttonBehaviours:Bo([za.config({selected:s.locked,toggleClass:s.markers.lockClass,aria:{mode:"pressed"}})])})})]),UK=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,components:F,behaviours:Vm.augment(s.coupledFieldBehaviours,[as.config({find:I.some}),hi.config({store:{mode:"manual",getValue:we=>{const Be=ww(we,s,["field1","field2"]);return{[s.field1Name]:hi.getValue(Be.field1()),[s.field2Name]:hi.getValue(Be.field2())}},setValue:(we,Be)=>{const qe=ww(we,s,["field1","field2"]);pt(Be,s.field1Name)&&hi.setValue(qe.field1(),Be[s.field1Name]),pt(Be,s.field2Name)&&hi.setValue(qe.field2(),Be[s.field2Name])}}})]),apis:{getField1:we=>Fo(we,s,"field1"),getField2:we=>Fo(we,s,"field2"),getLock:we=>Fo(we,s,"lock")}}),Ym=ch({name:"FormCoupledInputs",configFields:NK(),partFields:VK(),factory:UK,apis:{getField1:(s,F)=>s.getField1(F),getField2:(s,F)=>s.getField2(F),getLock:(s,F)=>s.getLock(F)}}),jK=s=>{const F={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},Z=we=>we in F?F[we]:1;let ue=s.value.toFixed(Z(s.unit));return ue.indexOf(".")!==-1&&(ue=ue.replace(/\.?0*$/,"")),ue+s.unit},d9=s=>{const Z=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(s);if(Z!==null){const ue=parseFloat(Z[1]),we=Z[2];return Hi.value({value:ue,unit:we})}else return Hi.error(s)},h9=(s,F)=>{const Z={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},ue=we=>ht(Z,we);return s.unit===F?I.some(s.value):ue(s.unit)&&ue(F)?Z[s.unit]===Z[F]?I.some(s.value):I.some(s.value/Z[s.unit]*Z[F]):I.none()},p9=s=>I.none(),QK=(s,F)=>Z=>h9(Z,F).map(ue=>({value:ue*s,unit:F})),HK=(s,F)=>{const Z=d9(s).toOptional(),ue=d9(F).toOptional();return en(Z,ue,(we,Be)=>h9(we,Be.unit).map(qe=>Be.value/qe).map(qe=>QK(qe,Be.unit)).getOr(p9)).getOr(p9)},N$=(s,F)=>{let Z=p9;const ue=fi("ratio-event"),we=wn=>em(wn,{tag:"span",classes:["tox-icon","tox-lock-icon__"+wn]},F.icons),Be=s.label.getOr("Constrain proportions"),qe=F.translate(Be),ft=Ym.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":qe,"data-mce-name":Be}},components:[we("lock"),we("unlock")],buttonBehaviours:Bo([ta.config({disabled:()=>!s.enabled||F.isDisabled()}),df(),Wl.config({}),Td.config(F.tooltips.getConfig({tooltipText:qe}))])}),gt=wn=>({dom:{tag:"div",classes:["tox-form__group"]},components:wn}),At=wn=>Js.parts.field({factory:Nw,inputClasses:["tox-textfield"],inputBehaviours:Bo([ta.config({disabled:()=>!s.enabled||F.isDisabled()}),df(),Wl.config({}),Ca("size-input-events",[fo(Sm(),(Mn,Xn)=>{Ri(Mn,ue,{isField1:wn})}),fo(Zv(),(Mn,Xn)=>{Ri(Mn,tm,{name:s.name})})])]),selectOnFocus:!1}),$t=wn=>({dom:{tag:"label",classes:["tox-label"]},components:[ro(F.translate(wn))]}),on=Ym.parts.field1(gt([Js.parts.label($t("Width")),At(!0)])),yn=Ym.parts.field2(gt([Js.parts.label($t("Height")),At(!1)]));return Ym.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[on,yn,gt([$t(by),ft])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(wn,Mn,Xn)=>{d9(hi.getValue(wn)).each(Br=>{Z(Br).each(or=>{hi.setValue(Mn,jK(or))})})},coupledFieldBehaviours:Bo([ta.config({disabled:()=>!s.enabled||F.isDisabled(),onDisabled:wn=>{Ym.getField1(wn).bind(Js.getField).each(ta.disable),Ym.getField2(wn).bind(Js.getField).each(ta.disable),Ym.getLock(wn).each(ta.disable)},onEnabled:wn=>{Ym.getField1(wn).bind(Js.getField).each(ta.enable),Ym.getField2(wn).bind(Js.getField).each(ta.enable),Ym.getLock(wn).each(ta.enable)}}),df(),Ca("size-input-events2",[fo(ue,(wn,Mn)=>{const Xn=Mn.event.isField1,Br=Xn?Ym.getField1(wn):Ym.getField2(wn),or=Xn?Ym.getField2(wn):Ym.getField1(wn),Mr=Br.map(hi.getValue).getOr(""),kr=or.map(hi.getValue).getOr("");Z=HK(Mr,kr)})])])})},ZK=(s,F,Z)=>{const ue=l1.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[ro(F.translate(s.label))]}),we=l1.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),Be=l1.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return l1.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:s.min,maxX:s.max,getInitialValue:x(Z.getOrThunk(()=>(Math.abs(s.max)-Math.abs(s.min))/2))},components:[ue,we,Be],sliderBehaviours:Bo([y0.self(),oa.config({})]),onChoose:(qe,ft,gt)=>{Ri(qe,tm,{name:s.name,value:gt})},onChange:(qe,ft,gt)=>{Ri(qe,tm,{name:s.name,value:gt})}})},qK=(s,F)=>{const Z=ft=>({dom:{tag:"th",innerHtml:F.translate(ft)}}),ue=ft=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:oe(ft,Z)}]}),we=ft=>({dom:{tag:"td",innerHtml:F.translate(ft)}}),Be=ft=>({dom:{tag:"tr"},components:oe(ft,we)}),qe=ft=>({dom:{tag:"tbody"},components:oe(ft,Be)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[ue(s.header),qe(s.cells)],behaviours:Bo([Wl.config({}),oa.config({})])}},$$=(s,F)=>{const Z=s.label.map(wn=>L2(wn,F)),ue=[ta.config({disabled:()=>s.disabled||F.isDisabled()}),df(),Li.config({mode:"execution",useEnter:s.multiline!==!0,useControlEnter:s.multiline===!0,execute:wn=>(Sa(wn,c4),I.some(!0))}),Ca("textfield-change",[fo(ug(),(wn,Mn)=>{Ri(wn,tm,{name:s.name})}),fo(Gg(),(wn,Mn)=>{Ri(wn,tm,{name:s.name})})]),Wl.config({})],we=s.validation.map(wn=>By.config({getRoot:Mn=>Cr(Mn.element),invalidClass:"tox-invalid",validator:{validate:Mn=>{const Xn=hi.getValue(Mn),Br=wn.validator(Xn);return uh.pure(Br===!0?Hi.value(Xn):Hi.error(Br))},validateOnLoad:wn.validateOnLoad}})).toArray(),Be=s.placeholder.fold(x({}),wn=>({placeholder:F.translate(wn)})),qe=s.inputMode.fold(x({}),wn=>({inputmode:wn})),ft={...Be,...qe},gt=Js.parts.field({tag:s.multiline===!0?"textarea":"input",...s.data.map(wn=>({data:wn})).getOr({}),inputAttributes:ft,inputClasses:[s.classname],inputBehaviours:Bo(ve([ue,we])),selectOnFocus:!1,factory:Nw}),At=s.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[gt]}:gt,on=(s.flex?["tox-form__group--stretched"]:[]).concat(s.maximized?["tox-form-group--maximize"]:[]),yn=[ta.config({disabled:()=>s.disabled||F.isDisabled(),onDisabled:wn=>{Js.getField(wn).each(ta.disable)},onEnabled:wn=>{Js.getField(wn).each(ta.enable)}}),df()];return l4(Z,At,on,yn)},V$=(s,F,Z)=>$$({name:s.name,multiline:!1,label:s.label,inputMode:s.inputMode,placeholder:s.placeholder,flex:!1,disabled:!s.enabled,classname:"tox-textfield",validation:I.none(),maximized:s.maximized,data:Z},F),U$=(s,F,Z)=>$$({name:s.name,multiline:!0,label:s.label,inputMode:I.none(),placeholder:s.placeholder,flex:!0,disabled:!s.enabled,classname:"tox-textarea",validation:I.none(),maximized:s.maximized,data:Z},F),b4=(s,F)=>F.getAnimationRoot.fold(()=>s.element,Z=>Z(s)),c1=s=>s.dimension.property,rO=(s,F)=>s.dimension.getDimension(F),r8=(s,F)=>{const Z=b4(s,F);th(Z,[F.shrinkingClass,F.growingClass])},m9=(s,F)=>{fc(s.element,F.openClass),Sl(s.element,F.closedClass),ko(s.element,c1(F),"0px"),Ku(s.element)},g9=(s,F)=>{fc(s.element,F.closedClass),Sl(s.element,F.openClass),ga(s.element,c1(F))},v9=(s,F,Z,ue)=>{Z.setCollapsed(),ko(s.element,c1(F),rO(F,s.element)),r8(s,F),m9(s,F),F.onStartShrink(s),F.onShrunk(s)},WK=(s,F,Z,ue)=>{const we=ue.getOrThunk(()=>rO(F,s.element));Z.setCollapsed(),ko(s.element,c1(F),we),Ku(s.element);const Be=b4(s,F);fc(Be,F.growingClass),Sl(Be,F.shrinkingClass),m9(s,F),F.onStartShrink(s)},j$=(s,F,Z)=>{const ue=rO(F,s.element);(ue==="0px"?v9:WK)(s,F,Z,I.some(ue))},Q$=(s,F,Z)=>{const ue=b4(s,F),we=$l(ue,F.shrinkingClass),Be=rO(F,s.element);g9(s,F);const qe=rO(F,s.element);(we?()=>{ko(s.element,c1(F),Be),Ku(s.element)}:()=>{m9(s,F)})(),fc(ue,F.shrinkingClass),Sl(ue,F.growingClass),g9(s,F),ko(s.element,c1(F),qe),Z.setExpanded(),F.onStartGrow(s)},H$=(s,F,Z)=>{if(Z.isExpanded()){ga(s.element,c1(F));const ue=rO(F,s.element);ko(s.element,c1(F),ue)}},Z$=(s,F,Z)=>{Z.isExpanded()||Q$(s,F,Z)},YK=(s,F,Z)=>{Z.isExpanded()&&j$(s,F,Z)},XK=(s,F,Z)=>{Z.isExpanded()&&v9(s,F,Z)},q$=(s,F,Z)=>Z.isExpanded(),GK=(s,F,Z)=>Z.isCollapsed(),W$=(s,F,Z)=>{const ue=b4(s,F);return $l(ue,F.growingClass)===!0},ua=(s,F,Z)=>{const ue=b4(s,F);return $l(ue,F.shrinkingClass)===!0};var Y$=Object.freeze({__proto__:null,refresh:H$,grow:Z$,shrink:YK,immediateShrink:XK,hasGrown:q$,hasShrunk:GK,isGrowing:W$,isShrinking:ua,isTransitioning:(s,F,Z)=>W$(s,F)||ua(s,F),toggleGrow:(s,F,Z)=>{(Z.isExpanded()?j$:Q$)(s,F,Z)},disableTransitions:r8,immediateGrow:(s,F,Z)=>{Z.isExpanded()||(g9(s,F),ko(s.element,c1(F),rO(F,s.element)),r8(s,F),Z.setExpanded(),F.onStartGrow(s),F.onGrown(s))}}),dfe=Object.freeze({__proto__:null,exhibit:(s,F,Z)=>{const ue=F.expanded;return Cf(ue?{classes:[F.openClass],styles:{}}:{classes:[F.closedClass],styles:wh(F.dimension.property,"0px")})},events:(s,F)=>pl([Wv(sp(),(Z,ue)=>{ue.event.raw.propertyName===s.dimension.property&&(r8(Z,s),F.isExpanded()&&ga(Z.element,s.dimension.property),(F.isExpanded()?s.onGrown:s.onShrunk)(Z))})])}),mk=[Sn("closedClass"),Sn("openClass"),Sn("shrinkingClass"),Sn("growingClass"),Hr("getAnimationRoot"),Ra("onShrunk"),Ra("onStartShrink"),Ra("onGrown"),Ra("onStartGrow"),mr("expanded",!1),rr("dimension",xn("property",{width:[Il("property","width"),Il("getDimension",s=>cc(s)+"px")],height:[Il("property","height"),Il("getDimension",s=>Ql(s)+"px")]}))],X$=Object.freeze({__proto__:null,init:s=>{const F=xi(s.expanded),Z=()=>"expanded: "+F.get();return kh({isExpanded:()=>F.get()===!0,isCollapsed:()=>F.get()===!1,setCollapsed:T(F.set,!1),setExpanded:T(F.set,!0),readState:Z})}});const nm=lf({fields:mk,name:"sliding",active:dfe,apis:Y$,state:X$}),G$=s=>({isEnabled:()=>!ta.isDisabled(s),setEnabled:F=>ta.set(s,!F),setActive:F=>{const Z=s.element;F?(Sl(Z,"tox-tbtn--enabled"),fr(Z,"aria-pressed",!0)):(fc(Z,"tox-tbtn--enabled"),po(Z,"aria-pressed"))},isActive:()=>$l(s.element,"tox-tbtn--enabled"),setText:F=>{Ri(s,Eg,{text:F})},setIcon:F=>Ri(s,F2,{icon:F})}),gk=(s,F,Z,ue,we=!0,Be)=>l9({text:s.text,icon:s.icon,tooltip:s.tooltip,ariaLabel:s.tooltip,searchable:s.search.isSome(),role:ue,fetch:(qe,ft)=>{const gt={pattern:s.search.isSome()?tG(qe):""};s.fetch(At=>{ft(v4(At,r1.CLOSE_ON_EXECUTE,Z,{isHorizontalMenu:!1,search:s.search}))},gt,G$(qe))},onSetup:s.onSetup,getApi:G$,columns:1,presets:"normal",classes:[],dropdownBehaviours:[...we?[Wl.config({})]:[]]},F,Z.shared,Be),K$=(s,F,Z)=>{const ue=Be=>qe=>{const ft=!qe.isActive();qe.setActive(ft),Be.storage.set(ft),Z.shared.getSink().each(gt=>{F().getOpt(gt).each(At=>{xd(At.element),Ri(At,Dy,{name:Be.name,value:Be.storage.get()})})})},we=Be=>qe=>{qe.setActive(Be.storage.get())};return Be=>{Be(oe(s,qe=>{const ft=qe.text.fold(()=>({}),gt=>({text:gt}));return{type:qe.type,active:!1,...ft,onAction:ue(qe),onSetup:we(qe)}}))}},i8=s=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{"aria-label":s}},components:[ro(s)]}),y9=fi("leaf-label-event-id"),b9=({leaf:s,onLeafAction:F,visible:Z,treeId:ue,selectedId:we,backstage:Be})=>{const qe=s.menu.map(gt=>gk(gt,"tox-mbtn",Be,I.none(),Z)),ft=[i8(s.title)];return qe.each(gt=>ft.push(gt)),Vd.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(Z?["tox-tree--leaf__label--visible"]:[])},components:ft,role:"treeitem",action:gt=>{F(s.id),gt.getSystem().broadcastOn([`update-active-item-${ue}`],{value:s.id})},eventOrder:{[Bp()]:[y9,"keying"]},buttonBehaviours:Bo([...Z?[Wl.config({})]:[],za.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),Wu.config({channels:{[`update-active-item-${ue}`]:{onReceive:(gt,At)=>{(At.value===s.id?za.on:za.off)(gt)}}}}),Ca(y9,[Ll((gt,At)=>{we.each($t=>{($t===s.id?za.on:za.off)(gt)})}),fo(Bp(),(gt,At)=>{const $t=At.event.raw.code==="ArrowLeft",on=At.event.raw.code==="ArrowRight";$t?(zs(gt.element,".tox-tree--directory").each(yn=>{gt.getSystem().getByDom(yn).each(wn=>{rc(yn,".tox-tree--directory__label").each(Mn=>{wn.getSystem().getByDom(Mn).each(oa.focus)})})}),At.stop()):on&&At.stop()})])])})},nJ=(s,F,Z)=>em(s,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:Z},F),rJ=(s,F)=>nJ(s,F,[]),J$=fi("directory-label-event-id"),oJ=({directory:s,visible:F,noChildren:Z,backstage:ue})=>{const we=s.menu.map(ft=>gk(ft,"tox-mbtn",ue,I.none())),Be=[{dom:{tag:"div",classes:["tox-chevron"]},components:[rJ("chevron-right",ue.shared.providers.icons)]},i8(s.title)];we.each(ft=>{Be.push(ft)});const qe=ft=>{zs(ft.element,".tox-tree--directory").each(gt=>{ft.getSystem().getByDom(gt).each(At=>{const $t=!za.isOn(At);za.toggle(At),Ri(ft,"expand-tree-node",{expanded:$t,node:s.id})})})};return Vd.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(F?["tox-tree--directory__label--visible"]:[])},components:Be,action:qe,eventOrder:{[Bp()]:[J$,"keying"]},buttonBehaviours:Bo([...F?[Wl.config({})]:[],Ca(J$,[fo(Bp(),(ft,gt)=>{const At=gt.event.raw.code==="ArrowRight",$t=gt.event.raw.code==="ArrowLeft";At&&Z&>.stop(),(At||$t)&&zs(ft.element,".tox-tree--directory").each(on=>{ft.getSystem().getByDom(on).each(yn=>{!za.isOn(yn)&&At||za.isOn(yn)&&$t?(qe(ft),gt.stop()):$t&&!za.isOn(yn)&&(zs(yn.element,".tox-tree--directory").each(wn=>{rc(wn,".tox-tree--directory__label").each(Mn=>{yn.getSystem().getByDom(Mn).each(oa.focus)})}),gt.stop())})})})])])})},iJ=({children:s,onLeafAction:F,visible:Z,treeId:ue,expandedIds:we,selectedId:Be,backstage:qe})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:s.map(ft=>ft.type==="leaf"?b9({leaf:ft,selectedId:Be,onLeafAction:F,visible:Z,treeId:ue,backstage:qe}):x9({directory:ft,expandedIds:we,selectedId:Be,onLeafAction:F,labelTabstopping:Z,treeId:ue,backstage:qe})),behaviours:Bo([nm.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:Z}),da.config({})])}),aJ=fi("directory-event-id"),x9=({directory:s,onLeafAction:F,labelTabstopping:Z,treeId:ue,backstage:we,expandedIds:Be,selectedId:qe})=>{const{children:ft}=s,gt=xi(Be),At=on=>ft.map(yn=>yn.type==="leaf"?b9({leaf:yn,selectedId:qe,onLeafAction:F,visible:on,treeId:ue,backstage:we}):x9({directory:yn,expandedIds:gt.get(),selectedId:qe,onLeafAction:F,labelTabstopping:on,treeId:ue,backstage:we})),$t=Be.includes(s.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[oJ({directory:s,visible:Z,noChildren:s.children.length===0,backstage:we}),iJ({children:ft,expandedIds:Be,selectedId:qe,onLeafAction:F,visible:$t,treeId:ue,backstage:we})],behaviours:Bo([Ca(aJ,[Ll((on,yn)=>{za.set(on,$t)}),fo("expand-tree-node",(on,yn)=>{const{expanded:wn,node:Mn}=yn.event;gt.set(wn?[...gt.get(),Mn]:gt.get().filter(Xn=>Xn!==Mn))})]),za.config({...s.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(on,yn)=>{const wn=on.components()[1],Mn=At(yn);yn?nm.grow(wn):nm.shrink(wn),da.set(wn,Mn)}})])}},sJ=fi("tree-event-id"),lJ=(s,F)=>{const Z=s.onLeafAction.getOr(v),ue=s.onToggleExpand.getOr(v),we=s.defaultExpandedIds,Be=xi(we),qe=xi(s.defaultSelectedId),ft=fi("tree-id"),gt=(At,$t)=>s.items.map(on=>on.type==="leaf"?b9({leaf:on,selectedId:At,onLeafAction:Z,visible:!0,treeId:ft,backstage:F}):x9({directory:on,selectedId:At,onLeafAction:Z,expandedIds:$t,labelTabstopping:!0,treeId:ft,backstage:F}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:gt(qe.get(),Be.get()),behaviours:Bo([Li.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),Ca(sJ,[fo("expand-tree-node",(At,$t)=>{const{expanded:on,node:yn}=$t.event;Be.set(on?[...Be.get(),yn]:Be.get().filter(wn=>wn!==yn)),ue(Be.get(),{expanded:on,node:yn})})]),Wu.config({channels:{[`update-active-item-${ft}`]:{onReceive:(At,$t)=>{qe.set(I.some($t.value)),da.set(At,gt(I.some($t.value),Be.get()))}}}}),da.config({})])}};var uJ=Object.freeze({__proto__:null,events:(s,F)=>{const ue=s.stream.streams.setup(s,F);return pl([fo(s.event,ue),Sh(()=>F.cancel())].concat(s.cancelEvent.map(we=>[fo(we,()=>F.cancel())]).getOr([])))}});const eV=s=>{const F=xi(null);return kh({readState:()=>({timer:F.get()!==null?"set":"unset"}),setTimer:Be=>{F.set(Be)},cancel:()=>{const Be=F.get();Be!==null&&Be.cancel()}})};var fJ=Object.freeze({__proto__:null,throttle:eV,init:s=>s.stream.streams.state(s)});const dJ=(s,F)=>{const Z=s.stream,ue=dk(s.onStream,Z.delay);return F.setTimer(ue),(we,Be)=>{ue.throttle(we,Be),Z.stopEvent&&Be.stop()}};var hJ=[rr("stream",xn("mode",{throttle:[Sn("delay"),mr("stopEvent",!0),Il("streams",{setup:dJ,state:eV})]})),mr("event","input"),Hr("cancelEvent"),Zh("onStream")];const _9=lf({fields:hJ,name:"streaming",active:uJ,state:fJ}),a8=(s,F,Z)=>{const ue=hi.getValue(Z);hi.setValue(F,ue),nV(F)},tV=(s,F)=>{const Z=s.element,ue=qr(Z),we=Z.dom;ao(Z,"type")!=="number"&&F(we,ue)},nV=s=>{tV(s,(F,Z)=>F.setSelectionRange(Z.length,Z.length))},pJ=(s,F)=>{tV(s,(Z,ue)=>Z.setSelectionRange(F,ue.length))},rV=(s,F,Z)=>{if(s.selectsOver){const ue=hi.getValue(F),we=s.getDisplayText(ue),Be=hi.getValue(Z);return s.getDisplayText(Be).indexOf(we)===0?I.some(()=>{a8(s,F,Z),pJ(F,we.length)}):I.none()}else return I.none()},w9=x("alloy.typeahead.itemexecute"),mJ=(s,F,Z,ue)=>{const we=(on,yn,wn)=>{s.previewing.set(!1);const Mn=lu.getCoupled(on,"sandbox");if(ps.isOpen(Mn))as.getCurrent(Mn).each(Xn=>{ri.getHighlighted(Xn).fold(()=>{wn(Xn)},()=>{Np(Mn,Xn.element,"keydown",yn)})});else{const Xn=Br=>{as.getCurrent(Br).each(wn)};MC(s,qe(on),on,Mn,ue,Xn,Xh.HighlightMenuAndItem).get(v)}},Be=D7(s),qe=on=>yn=>yn.map(wn=>{const Mn=ot(wn.menus),Xn=ye(Mn,or=>me(or.items,Mr=>Mr.type==="item"));return hi.getState(on).update(oe(Xn,or=>or.data)),wn}),ft=on=>as.getCurrent(on),gt="typeaheadevents",At=[oa.config({}),hi.config({onSetValue:s.onSetValue,store:{mode:"dataset",getDataKey:on=>qr(on.element),getFallbackEntry:on=>({value:on,meta:{}}),setValue:(on,yn)=>{N(on.element,s.model.getDisplayText(yn))},...s.initialData.map(on=>wh("initialValue",on)).getOr({})}}),_9.config({stream:{mode:"throttle",delay:s.responseTime,stopEvent:!1},onStream:(on,yn)=>{const wn=lu.getCoupled(on,"sandbox");if(oa.isFocused(on)&&qr(on.element).length>=s.minChars){const Xn=ft(wn).bind(or=>ri.getHighlighted(or).map(hi.getValue));s.previewing.set(!0);const Br=or=>{ft(wn).each(Mr=>{Xn.fold(()=>{s.model.selectsOver&&ri.highlightFirst(Mr)},kr=>{ri.highlightBy(Mr,yo=>hi.getValue(yo).value===kr.value),ri.getHighlighted(Mr).orThunk(()=>(ri.highlightFirst(Mr),I.none()))})})};MC(s,qe(on),on,wn,ue,Br,Xh.HighlightJustMenu).get(v)}},cancelEvent:Px()}),Li.config({mode:"special",onDown:(on,yn)=>(we(on,yn,ri.highlightFirst),I.some(!0)),onEscape:on=>{const yn=lu.getCoupled(on,"sandbox");return ps.isOpen(yn)?(ps.close(yn),I.some(!0)):I.none()},onUp:(on,yn)=>(we(on,yn,ri.highlightLast),I.some(!0)),onEnter:on=>{const yn=lu.getCoupled(on,"sandbox"),wn=ps.isOpen(yn);if(wn&&!s.previewing.get())return ft(yn).bind(Mn=>ri.getHighlighted(Mn)).map(Mn=>(Ri(on,w9(),{item:Mn}),!0));{const Mn=hi.getValue(on);return Sa(on,Px()),s.onExecute(yn,on,Mn),wn&&ps.close(yn),I.some(!0)}}}),za.config({toggleClass:s.markers.openClass,aria:{mode:"expanded"}}),lu.config({others:{sandbox:on=>xP(s,on,{onOpen:()=>za.on(on),onClose:()=>{s.lazyTypeaheadComp.get().each(yn=>po(yn.element,"aria-activedescendant")),za.off(on)}})}}),Ca(gt,[Ll(on=>{s.lazyTypeaheadComp.set(I.some(on))}),Sh(on=>{s.lazyTypeaheadComp.set(I.none())}),$p(on=>{const yn=v;yP(s,qe(on),on,ue,yn,Xh.HighlightMenuAndItem).get(v)}),fo(w9(),(on,yn)=>{const wn=lu.getCoupled(on,"sandbox");a8(s.model,on,yn.event.item),Sa(on,Px()),s.onItemExecute(on,wn,yn.event.item,hi.getValue(on)),ps.close(wn),nV(on)})].concat(s.dismissOnBlur?[fo(Xg(),on=>{const yn=lu.getCoupled(on,"sandbox");_d(yn.element).isNone()&&ps.close(yn)})]:[]))],$t={[fp()]:[hi.name(),_9.name(),gt],...s.eventOrder};return{uid:s.uid,dom:B7(nl(s,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...Be,...Rf(s.typeaheadBehaviours,At)},eventOrder:$t}},gJ=x([Hr("lazySink"),Sn("fetch"),mr("minChars",5),mr("responseTime",1e3),Ra("onOpen"),mr("getHotspot",I.some),mr("getAnchorOverrides",x({})),mr("layouts",I.none()),mr("eventOrder",{}),ol("model",{},[mr("getDisplayText",s=>s.meta!==void 0&&s.meta.text!==void 0?s.meta.text:s.value),mr("selectsOver",!0),mr("populateFromBrowse",!0)]),Ra("onSetValue"),bd("onExecute"),Ra("onItemExecute"),mr("inputClasses",[]),mr("inputAttributes",{}),mr("inputStyles",{}),mr("matchWidth",!0),mr("useMinWidth",!1),mr("dismissOnBlur",!0),jp(["openClass"]),Hr("initialData"),Hr("listRole"),Pf("typeaheadBehaviours",[oa,hi,_9,Li,za,lu]),On("lazyTypeaheadComp",()=>xi(I.none)),On("previewing",()=>xi(!0))].concat(I7()).concat(EC())),vJ=x([Um({schema:[U0()],name:"menu",overrides:s=>({fakeFocus:!0,onHighlightItem:(F,Z,ue)=>{s.previewing.get()?s.lazyTypeaheadComp.get().each(we=>{rV(s.model,we,ue).fold(()=>{s.model.selectsOver?(ri.dehighlight(Z,ue),s.previewing.set(!0)):s.previewing.set(!1)},Be=>{Be(),s.previewing.set(!1)})}):s.lazyTypeaheadComp.get().each(we=>{s.model.populateFromBrowse&&a8(s.model,we,ue),co(ue.element,"id").each(Be=>fr(we.element,"aria-activedescendant",Be))})},onExecute:(F,Z)=>s.lazyTypeaheadComp.get().map(ue=>(Ri(ue,w9(),{item:Z}),!0)),onHover:(F,Z)=>{s.previewing.set(!1),s.lazyTypeaheadComp.get().each(ue=>{s.model.populateFromBrowse&&a8(s.model,ue,Z)})}})})]),yJ=ch({name:"Typeahead",configFields:gJ(),partFields:vJ(),factory:mJ}),u1=s=>({...s,toCached:()=>u1(s.toCached()),bindFuture:gt=>u1(s.bind(At=>At.fold($t=>uh.pure(Hi.error($t)),$t=>gt($t)))),bindResult:gt=>u1(s.map(At=>At.bind(gt))),mapResult:gt=>u1(s.map(At=>At.map(gt))),mapError:gt=>u1(s.map(At=>At.mapError(gt))),foldResult:(gt,At)=>s.map($t=>$t.fold(gt,At)),withTimeout:(gt,At)=>u1(uh.nu($t=>{let on=!1;const yn=setTimeout(()=>{on=!0,$t(Hi.error(At()))},gt);s.get(wn=>{on||(clearTimeout(yn),$t(wn))})}))}),O9=s=>u1(uh.nu(s)),oV=s=>u1(uh.pure(Hi.value(s))),S9={nu:O9,wrap:u1,pure:oV,value:oV,error:s=>u1(uh.pure(Hi.error(s))),fromResult:s=>u1(uh.pure(s)),fromFuture:s=>u1(s.map(Hi.value)),fromPromise:s=>O9(F=>{s.then(Z=>{F(Hi.value(Z))},Z=>{F(Hi.error(Z))})})},s8=(s,F,Z=[],ue,we,Be,qe)=>{const ft=F.fold(()=>({}),$t=>({action:$t})),gt={buttonBehaviours:Bo([s1.button(()=>!s.enabled||qe.isDisabled()),df(),Wl.config({}),...Be.map($t=>Td.config(qe.tooltips.getConfig({tooltipText:qe.translate($t)}))).toArray(),Ca("button press",[B0("click"),B0("mousedown")])].concat(Z)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...ft},At=nl(gt,{dom:ue});return nl(At,{components:we})},iV=(s,F,Z,ue=[],we)=>{const Be=s.tooltip.map(At=>({"aria-label":Z.translate(At)})).getOr({}),qe={tag:"button",classes:["tox-tbtn"],attributes:{...Be,"data-mce-name":we}},ft=s.icon.map(At=>n8(At,Z.icons)),gt=jw([ft]);return s8(s,F,ue,qe,gt,s.tooltip,Z)},l8=s=>{switch(s){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},aV=(s,F,Z,ue=[],we=[])=>{const Be=Z.translate(s.text),qe=s.icon.map(wn=>n8(wn,Z.icons)),ft=[qe.getOrThunk(()=>ro(Be))],gt=s.buttonType.getOr(!s.primary&&!s.borderless?"secondary":"primary"),on={tag:"button",classes:[...l8(gt),...qe.isSome()?["tox-button--icon"]:[],...s.borderless?["tox-button--naked"]:[],...we],attributes:{"aria-label":Be,"data-mce-name":s.text}},yn=s.icon.map(x(Be));return s8(s,F,ue,on,ft,yn,Z)},k9=(s,F,Z,ue=[],we=[])=>{const Be=aV(s,I.some(F),Z,ue,we);return Vd.sketch(Be)},sV=(s,F)=>Z=>{F==="custom"?Ri(Z,Dy,{name:s,value:{}}):F==="submit"?Sa(Z,c4):F==="cancel"?Sa(Z,I2):console.error("Unknown button type: ",F)},wJ=(s,F)=>F==="menu",Sv=(s,F)=>F==="custom"||F==="cancel"||F==="submit",c8=(s,F)=>F==="togglebutton",u8=(s,F,Z)=>{var ue,we;const Be=s.icon.map(kr=>sx(kr,F.icons)).map(qs),qe=kr=>{Ri(kr,Dy,{name:s.name,value:{setIcon:yo=>{Be.map(Xr=>Xr.getOpt(kr).each(No=>{da.set(No,[sx(yo,F.icons)])}))}}})},ft=s.buttonType.getOr(s.primary?"primary":"secondary"),gt={...s,name:(ue=s.name)!==null&&ue!==void 0?ue:"",primary:ft==="primary",tooltip:s.tooltip,enabled:(we=s.enabled)!==null&&we!==void 0?we:!1,borderless:!1},At=gt.tooltip.or(s.text).map(kr=>({"aria-label":F.translate(kr)})).getOr({}),$t=l8(ft??"secondary"),on=s.icon.isSome()&&s.text.isSome(),yn={tag:"button",classes:[...$t.concat(s.icon.isSome()?["tox-button--icon"]:[]),...s.active?["tox-button--enabled"]:[],...on?["tox-button--icon-and-text"]:[]],attributes:{...At,...a(Z)?{"data-mce-name":Z}:{}}},wn=[],Mn=F.translate(s.text.getOr("")),Xn=ro(Mn),or=[...jw([Be.map(kr=>kr.asSpec())]),...s.text.isSome()?[Xn]:[]],Mr=s8(gt,I.some(qe),wn,yn,or,s.tooltip,F);return Vd.sketch(Mr)},f8=(s,F,Z)=>{if(wJ(s,F)){const ue=()=>qe,we=s,Be={...s,type:"menubutton",search:I.none(),onSetup:ft=>(ft.setEnabled(s.enabled),v),fetch:K$(we.items,ue,Z)},qe=qs(gk(Be,"tox-tbtn",Z,I.none(),!0,s.text.or(s.tooltip).getOrUndefined()));return qe.asSpec()}else if(Sv(s,F)){const ue=sV(s.name,F),we={...s,borderless:!1};return k9(we,ue,Z.shared.providers,[])}else{if(c8(s,F))return u8(s,Z.shared.providers,s.text.or(s.tooltip).getOrUndefined());throw console.error("Unknown footer button type: ",F),new Error("Unknown footer button type")}},T9=(s,F)=>{const Z=sV(s.name,"custom");return bG(I.none(),Js.parts.field({factory:Vd,...aV(s,I.some(Z),F,[YC(""),y0.self()])}))},OJ={type:"separator"},C9=s=>({type:"menuitem",value:s.url,text:s.title,meta:{attach:s.attach},onAction:v}),d8=(s,F)=>({type:"menuitem",value:F,text:s,meta:{attach:void 0},onAction:v}),A9=s=>oe(s,C9),SJ=(s,F)=>me(F,Z=>Z.type===s),lV=(s,F)=>A9(SJ(s,F)),cV=s=>lV("header",s.targets),kJ=s=>lV("anchor",s.targets),TJ=s=>I.from(s.anchorTop).map(F=>d8("",F)).toArray(),M9=s=>I.from(s.anchorBottom).map(F=>d8("",F)).toArray(),CJ=s=>oe(s,F=>d8(F,F)),AJ=s=>se(s,(F,Z)=>F.length===0||Z.length===0?F.concat(Z):F.concat(OJ,Z),[]),h8=(s,F)=>{const Z=s.toLowerCase();return me(F,ue=>{var we;const Be=ue.meta!==void 0&&ue.meta.text!==void 0?ue.meta.text:ue.text,qe=(we=ue.value)!==null&&we!==void 0?we:"";return bt(Be.toLowerCase(),Z)||bt(qe.toLowerCase(),Z)})},uV=(s,F,Z)=>{var ue,we;const Be=hi.getValue(F),qe=(we=(ue=Be==null?void 0:Be.meta)===null||ue===void 0?void 0:ue.text)!==null&&we!==void 0?we:Be.value;return Z.getLinkInformation().fold(()=>[],gt=>{const At=h8(qe,CJ(Z.getHistory(s)));return s==="file"?AJ([At,h8(qe,cV(gt)),h8(qe,ve([TJ(gt),kJ(gt),M9(gt)]))]):At})},fV=fi("aria-invalid"),MJ=(s,F,Z,ue)=>{const we=F.shared.providers,Be=Mr=>{const kr=hi.getValue(Mr);Z.addToHistory(kr.value,s.filetype)},qe={...ue.map(Mr=>({initialData:Mr})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":fV,type:"url"},minChars:0,responseTime:0,fetch:Mr=>{const kr=uV(s.filetype,Mr,Z),yo=v4(kr,r1.BUBBLE_TO_SANDBOX,F,{isHorizontalMenu:!1,search:I.none()});return uh.pure(yo)},getHotspot:Mr=>Mn.getOpt(Mr),onSetValue:(Mr,kr)=>{Mr.hasConfigured(By)&&By.run(Mr).get(v)},typeaheadBehaviours:Bo([...Z.getValidationHandler().map(Mr=>By.config({getRoot:kr=>Cr(kr.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(kr,yo)=>{$t.getOpt(kr).each(Xr=>{fr(Xr.element,"title",we.translate(yo))})}},validator:{validate:kr=>{const yo=hi.getValue(kr);return S9.nu(Xr=>{Mr({type:s.filetype,url:yo.value},No=>{if(No.status==="invalid"){const Jo=Hi.error(No.message);Xr(Jo)}else{const Jo=Hi.value(No.message);Xr(Jo)}})})},validateOnLoad:!1}})).toArray(),ta.config({disabled:()=>!s.enabled||we.isDisabled()}),Wl.config({}),Ca("urlinput-events",[fo(ug(),Mr=>{const kr=qr(Mr.element),yo=kr.trim();yo!==kr&&N(Mr.element,yo),s.filetype==="file"&&Ri(Mr,tm,{name:s.name})}),fo(Zv(),Mr=>{Ri(Mr,tm,{name:s.name}),Be(Mr)}),fo(Gg(),Mr=>{Ri(Mr,tm,{name:s.name}),Be(Mr)})])]),eventOrder:{[ug()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:Mr=>Mr.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:F.shared.getSink,parts:{menu:N5(!1,1,"normal")},onExecute:(Mr,kr,yo)=>{Ri(kr,c4,{})},onItemExecute:(Mr,kr,yo,Xr)=>{Be(Mr),Ri(Mr,tm,{name:s.name})}},ft=Js.parts.field({...qe,factory:yJ}),gt=s.label.map(Mr=>L2(Mr,we)),$t=qs(((Mr,kr,yo=Mr,Xr=Mr)=>em(yo,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Mr],attributes:{title:we.translate(Xr),"aria-live":"polite",...kr.fold(()=>({}),No=>({id:No}))}},we.icons))("invalid",I.some(fV),"warning")),on=qs({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[$t.asSpec()]}),yn=Z.getUrlPicker(s.filetype),wn=fi("browser.url.event"),Mn=qs({dom:{tag:"div",classes:["tox-control-wrap"]},components:[ft,on.asSpec()],behaviours:Bo([ta.config({disabled:()=>!s.enabled||we.isDisabled()})])}),Xn=qs(k9({name:s.name,icon:I.some("browse"),text:s.picker_text.or(s.label).getOr(""),enabled:s.enabled,primary:!1,buttonType:I.none(),borderless:!0},Mr=>Sa(Mr,wn),we,[],["tox-browse-url"])),Br=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ve([[Mn.asSpec()],yn.map(()=>Xn.asSpec()).toArray()])}),or=Mr=>{as.getCurrent(Mr).each(kr=>{const yo=hi.getValue(kr),Xr={fieldname:s.name,...yo};yn.each(No=>{No(Xr).get(Jo=>{hi.setValue(kr,Jo),Ri(Mr,tm,{name:s.name})})})})};return Js.sketch({dom:_G(),components:gt.toArray().concat([Br()]),fieldBehaviours:Bo([ta.config({disabled:()=>!s.enabled||we.isDisabled(),onDisabled:Mr=>{Js.getField(Mr).each(ta.disable),Xn.getOpt(Mr).each(ta.disable)},onEnabled:Mr=>{Js.getField(Mr).each(ta.enable),Xn.getOpt(Mr).each(ta.enable)}}),df(),Ca("url-input-events",[fo(wn,or)])])})},EJ=(s,F)=>{const Z=Az(s.icon,F.icons);return _v.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${s.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:s.url?void 0:Z},components:s.url?[Vd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:Z,attributes:{title:F.translate(s.iconTooltip)}},action:ue=>Ri(ue,Dy,{name:"alert-banner",value:s.url}),buttonBehaviours:Bo([k7()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:F.translate(s.text)}}]})},PJ=(s,F)=>{s.dom.checked=F},dV=s=>s.dom.checked,kv=(s,F,Z)=>{const ue=gt=>(gt.element.dom.click(),I.some(!0)),we=Js.parts.field({factory:{sketch:R},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:Bo([y0.self(),ta.config({disabled:()=>!s.enabled||F.isDisabled(),onDisabled:gt=>{Cr(gt.element).each(At=>Sl(At,"tox-checkbox--disabled"))},onEnabled:gt=>{Cr(gt.element).each(At=>fc(At,"tox-checkbox--disabled"))}}),Wl.config({}),oa.config({}),f$(Z,dV,PJ),Li.config({mode:"special",onEnter:ue,onSpace:ue,stopSpaceKeyup:!0}),Ca("checkbox-events",[fo(Zv(),(gt,At)=>{Ri(gt,tm,{name:s.name})})])])}),Be=Js.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[ro(F.translate(s.label))],behaviours:Bo([u4.config({})])}),qe=gt=>em(gt==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+gt]},F.icons),ft=qs({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[qe("checked"),qe("unchecked")]});return Js.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[we,ft.asSpec(),Be],fieldBehaviours:Bo([ta.config({disabled:()=>!s.enabled||F.isDisabled()}),df()])})},E9=(s,F)=>{const Z=["tox-form__group",...s.stretched?["tox-form__group--stretched"]:[]],ue=Ca("htmlpanel",[Ll(we=>{s.onInit(we.element.dom)})]);return s.presets==="presentation"?_v.sketch({dom:{tag:"div",classes:Z,innerHtml:s.html},containerBehaviours:Bo([Td.config({...F.tooltips.getConfig({tooltipText:"",onShow:we=>{aa(we.element,"[data-mce-tooltip]:hover").orThunk(()=>_d(we.element)).each(Be=>{co(Be,"data-mce-tooltip").each(qe=>{Td.setComponents(we,F.tooltips.getComponents({tooltipText:qe}))})})}}),mode:"children-normal",anchor:we=>({type:"node",node:aa(we.element,"[data-mce-tooltip]:hover").orThunk(()=>_d(we.element).filter(Be=>co(Be,"data-mce-tooltip").isSome())),root:we.element,layouts:{onLtr:x([Pc,Jc,Ec,Hc,Qc,_s]),onRtl:x([Pc,Jc,Ec,Hc,Qc,_s])},bubble:pp(0,-2,{})})}),ue])}):_v.sketch({dom:{tag:"div",classes:Z,innerHtml:s.html,attributes:{role:"document"}},containerBehaviours:Bo([Wl.config({}),oa.config({}),ue])})},Lf=s=>(F,Z,ue,we,Be)=>Ge(Z,"name").fold(()=>s(Z,we,I.none(),Be),qe=>F.field(qe,s(Z,we,Ge(ue,qe),Be))),RJ=s=>(F,Z,ue,we,Be)=>{const qe=nl(Z,{source:"dynamic"});return Lf(s)(F,qe,ue,we,Be)},LJ={bar:Lf((s,F)=>IC(s,F.shared)),collection:Lf((s,F,Z)=>wG(s,F.shared.providers,Z)),alertbanner:Lf((s,F)=>EJ(s,F.shared.providers)),input:Lf((s,F,Z)=>V$(s,F.shared.providers,Z)),textarea:Lf((s,F,Z)=>U$(s,F.shared.providers,Z)),label:Lf((s,F,Z,ue)=>PK(s,F.shared,ue)),iframe:RJ((s,F,Z)=>AK(s,F.shared.providers,Z)),button:Lf((s,F)=>T9(s,F.shared.providers)),checkbox:Lf((s,F,Z)=>kv(s,F.shared.providers,Z)),colorinput:Lf((s,F,Z)=>kN(s,F.shared,F.colorinput,Z)),colorpicker:Lf((s,F,Z)=>yK(s,F.shared.providers,Z)),dropzone:Lf((s,F,Z)=>m$(s,F.shared.providers,Z)),grid:Lf((s,F)=>g$(s,F.shared)),listbox:Lf((s,F,Z)=>f9(s,F,Z)),selectbox:Lf((s,F,Z)=>z$(s,F.shared.providers,Z)),sizeinput:Lf((s,F)=>N$(s,F.shared.providers)),slider:Lf((s,F,Z)=>ZK(s,F.shared.providers,Z)),urlinput:Lf((s,F,Z)=>MJ(s,F,F.urlinput,Z)),customeditor:Lf(XC),htmlpanel:Lf((s,F)=>E9(s,F.shared.providers)),imagepreview:Lf((s,F,Z)=>EK(s,Z)),table:Lf((s,F)=>qK(s,F.shared.providers)),tree:Lf((s,F)=>lJ(s,F)),panel:Lf((s,F)=>zK(s,F))},IJ={field:(s,F)=>F,record:x([])},hV=(s,F,Z,ue,we)=>{const Be=nl(ue,{shared:{interpreter:qe=>p8(s,qe,Z,Be,we)}});return p8(s,F,Z,Be,we)},p8=(s,F,Z,ue,we)=>Ge(LJ,F.type).fold(()=>(console.error(`Unknown factory type "${F.type}", defaulting to container: `,F),F),Be=>Be(s,F,Z,ue,we)),P9=(s,F,Z,ue)=>p8(IJ,s,F,Z,ue),oO="layout-inset",pV=s=>s.x,Ud=(s,F)=>s.x+s.width/2-F.width/2,vk=(s,F)=>s.x+s.width-F.width,R9=s=>s.y,x4=(s,F)=>s.y+s.height-F.height,mV=(s,F)=>s.y+s.height/2-F.height/2,m8=(s,F,Z)=>ml(vk(s,F),x4(s,F),Z.insetSouthwest(),Ac(),"southwest",il(s,{right:0,bottom:3}),oO),g8=(s,F,Z)=>ml(pV(s),x4(s,F),Z.insetSoutheast(),Vs(),"southeast",il(s,{left:1,bottom:3}),oO),yk=(s,F,Z)=>ml(vk(s,F),R9(s),Z.insetNorthwest(),is(),"northwest",il(s,{right:0,top:2}),oO),bk=(s,F,Z)=>ml(pV(s),R9(s),Z.insetNortheast(),jc(),"northeast",il(s,{left:1,top:2}),oO),f1=(s,F,Z)=>ml(Ud(s,F),R9(s),Z.insetNorth(),Bl(),"north",il(s,{top:2}),oO),xk=(s,F,Z)=>ml(Ud(s,F),x4(s,F),Z.insetSouth(),Uo(),"south",il(s,{bottom:3}),oO),gV=(s,F,Z)=>ml(vk(s,F),mV(s,F),Z.insetEast(),Xs(),"east",il(s,{right:0}),oO),L9=(s,F,Z)=>ml(pV(s),mV(s,F),Z.insetWest(),ql(),"west",il(s,{left:1}),oO),v8=s=>{switch(s){case"north":return f1;case"northeast":return bk;case"northwest":return yk;case"south":return xk;case"southeast":return g8;case"southwest":return m8;case"east":return gV;case"west":return L9}},I9=(s,F,Z,ue,we)=>Mb(ue).map(v8).getOr(f1)(s,F,Z,ue,we),vV=s=>{switch(s){case"north":return xk;case"northeast":return g8;case"northwest":return m8;case"south":return f1;case"southeast":return bk;case"southwest":return yk;case"east":return L9;case"west":return gV}},DJ=(s,F,Z,ue,we)=>Mb(ue).map(vV).getOr(f1)(s,F,Z,ue,we),_4={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},BJ=(s,F,Z)=>{const we={maxHeightFunction:W0()},Be=()=>({type:"node",root:nr(vr(s())),node:I.from(s()),bubble:pp(12,12,_4),layouts:{onRtl:()=>[bk],onLtr:()=>[yk]},overrides:we}),qe=()=>({type:"hotspot",hotspot:F(),bubble:pp(-12,12,_4),layouts:{onRtl:()=>[Ec,Qc,Pc],onLtr:()=>[Qc,Ec,Pc]},overrides:we});return()=>Z()?Be():qe()},zJ=(s,F,Z,ue)=>{const Be={maxHeightFunction:W0()},qe=()=>({type:"node",root:nr(vr(F())),node:I.from(F()),bubble:pp(12,12,_4),layouts:{onRtl:()=>[f1],onLtr:()=>[f1]},overrides:Be}),ft=()=>s?{type:"node",root:nr(vr(F())),node:I.from(F()),bubble:pp(0,-Ed(F()),_4),layouts:{onRtl:()=>[Jc],onLtr:()=>[Jc]},overrides:Be}:{type:"hotspot",hotspot:Z(),bubble:pp(0,0,_4),layouts:{onRtl:()=>[Jc],onLtr:()=>[Jc]},overrides:Be};return()=>ue()?qe():ft()},yV=(s,F,Z)=>{const ue=()=>({type:"node",root:nr(vr(s())),node:I.from(s()),layouts:{onRtl:()=>[f1],onLtr:()=>[f1]}}),we=()=>({type:"hotspot",hotspot:F(),layouts:{onRtl:()=>[Pc],onLtr:()=>[Pc]}});return()=>Z()?ue():we()},gfe=(s,F)=>()=>({type:"selection",root:F(),getSelection:()=>{const Z=s.selection.getRng(),ue=s.model.table.getSelectedCells();if(ue.length>1){const we=ue[0],Be=ue[ue.length-1],qe={firstCell:Pt.fromDom(we),lastCell:Pt.fromDom(Be)};return I.some(qe)}return I.some(c2.range(Pt.fromDom(Z.startContainer),Z.startOffset,Pt.fromDom(Z.endContainer),Z.endOffset))}}),vfe=s=>F=>({type:"node",root:s(),node:F}),FJ=(s,F,Z,ue)=>{const we=q3(s),Be=()=>Pt.fromDom(s.getBody()),qe=()=>Pt.fromDom(s.getContentAreaContainer()),ft=()=>we||!ue();return{inlineDialog:BJ(qe,F,ft),inlineBottomDialog:zJ(s.inline,qe,Z,ft),banner:yV(qe,F,ft),cursor:gfe(s,Be),node:vfe(Be)}},NJ=s=>(F,Z)=>{YF(s)(F,Z)},$J=s=>()=>$F(s),bV=s=>F=>CC(s,F),D9=s=>F=>NF(s,F),VJ=s=>({colorPicker:NJ(s),hasCustomColors:$J(s),getColors:bV(s),getColorCols:D9(s)}),UJ=s=>()=>cz(s),xV=s=>({isDraggableModal:UJ(s)}),jJ=s=>{const F=xi(Kb(s)?"bottom":"top");return{isPositionedAtTop:()=>F.get()==="top",getDockingMode:F.get,setDockingMode:F.set}},_V=s=>pt(s,"items"),wV=s=>pt(s,"format"),OV=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],B9=s=>ht(s,"items"),SV=s=>ht(s,"block"),QJ=s=>ht(s,"inline"),HJ=s=>ht(s,"selector"),kV=s=>se(s,(F,Z)=>{if(B9(Z)){const ue=kV(Z.items);return{customFormats:F.customFormats.concat(ue.customFormats),formats:F.formats.concat([{title:Z.title,items:ue.formats}])}}else if(QJ(Z)||SV(Z)||HJ(Z)){const we=`custom-${n(Z.name)?Z.name:Z.title.toLowerCase()}`;return{customFormats:F.customFormats.concat([{name:we,format:Z}]),formats:F.formats.concat([{title:Z.title,format:we,icon:Z.icon}])}}else return{...F,formats:F.formats.concat(Z)}},{customFormats:[],formats:[]}),ZJ=(s,F)=>{const Z=kV(F),ue=we=>{q(we,Be=>{s.formatter.has(Be.name)||s.formatter.register(Be.name,Be.format)})};return s.formatter?ue(Z.customFormats):s.on("init",()=>{ue(Z.customFormats)}),Z.formats},z9=s=>ez(s).map(F=>{const Z=ZJ(s,F);return tz(s)?OV.concat(Z):Z}).getOr(OV),qJ=s=>{const F=ke(s);return F.length===1&&X(F,"title")},_k=(s,F,Z)=>({...s,type:"formatter",isSelected:F(s.format),getStylePreview:Z(s.format)}),TV=(s,F,Z,ue)=>{const we=gt=>_k(gt,Z,ue),Be=gt=>{const At=ft(gt.items);return{...gt,type:"submenu",getStyleItems:x(At)}},qe=gt=>{const At=n(gt.name)?gt.name:fi(gt.title),$t=`custom-${At}`,on={...gt,type:"formatter",format:$t,isSelected:Z($t),getStylePreview:ue($t)};return s.formatter.register(At,on),on},ft=gt=>oe(gt,At=>_V(At)?Be(At):wV(At)?we(At):qJ(At)?{...At,type:"separator"}:qe(At));return ft(F)},y8=s=>{const F=ft=>()=>s.formatter.match(ft),Z=ft=>()=>{const gt=s.formatter.get(ft);return gt!==void 0?I.some({tag:gt.length>0&&(gt[0].inline||gt[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(ft))}):I.none()},ue=xi([]),we=xi([]),Be=xi(!1);return s.on("PreInit",ft=>{const gt=z9(s),At=TV(s,gt,F,Z);ue.set(At)}),s.on("addStyleModifications",ft=>{const gt=TV(s,ft.items,F,Z);we.set(gt),Be.set(ft.replace)}),{getData:()=>{const ft=Be.get()?[]:ue.get(),gt=we.get();return ft.concat(gt)}}},WJ=s=>{let ue=0;const we=()=>ue>0,Be=ft=>[{dom:{tag:"div",classes:["tox-tooltip__body"]},components:[ro(ft.tooltipText)]}];return{getConfig:ft=>({delayForShow:()=>we()?60:300,delayForHide:x(300),exclusive:!0,lazySink:s,tooltipDom:{tag:"div",classes:["tox-tooltip","tox-tooltip--up"]},tooltipComponents:Be(ft),onShow:(gt,At)=>{ue++,ft.onShow&&ft.onShow(gt,At)},onHide:(gt,At)=>{ue--,ft.onHide&&ft.onHide(gt,At)}}),getComponents:Be}},F9=s=>a(s)&&s.nodeType===1,wk=ix.trim,N9=s=>F=>!!(F9(F)&&(F.contentEditable===s||F.getAttribute("data-mce-contenteditable")===s)),YJ=N9("true"),CV=N9("false"),$9=(s,F,Z,ue,we)=>({type:s,title:F,url:Z,level:ue,attach:we}),AV=s=>{let F=s;for(;F=F.parentNode;){const Z=F.contentEditable;if(Z&&Z!=="inherit")return YJ(F)}return!1},XJ=(s,F)=>oe($d(Pt.fromDom(F),s),Z=>Z.dom),b8=s=>s.innerText||s.textContent,x8=s=>s.id?s.id:fi("h"),GJ=s=>s&&s.nodeName==="A"&&(s.id||s.name)!==void 0,KJ=s=>GJ(s)&&V9(s),iO=s=>s&&/^(H[1-6])$/.test(s.nodeName),V9=s=>AV(s)&&!CV(s),JJ=s=>iO(s)&&V9(s),MV=s=>iO(s)?parseInt(s.nodeName.substr(1),10):0,U9=s=>{var F;const Z=x8(s),ue=()=>{s.id=Z};return $9("header",(F=b8(s))!==null&&F!==void 0?F:"","#"+Z,MV(s),ue)},j9=s=>{const F=s.id||s.name,Z=b8(s);return $9("anchor",Z||"#"+F,"#"+F,0,v)},eee=s=>oe(me(s,JJ),U9),tee=s=>oe(me(s,KJ),j9),nee=s=>XJ("h1,h2,h3,h4,h5,h6,a:not([href])",s),Q9=s=>wk(s.title).length>0,ree={find:s=>{const F=nee(s);return me(eee(F).concat(tee(F)),Q9)}},_8="tinymce-url-history",EV=5,PV=s=>n(s)&&/^https?/.test(s),oee=s=>i(s)&&s.length<=EV&&_e(s,PV),RV=s=>c(s)&&nt(s,F=>!oee(F)).isNone(),H9=()=>{const s=qw.getItem(_8);if(s===null)return{};let F;try{F=JSON.parse(s)}catch(Z){if(Z instanceof SyntaxError)return console.log("Local storage "+_8+" was not valid JSON",Z),{};throw Z}return RV(F)?F:(console.log("Local storage "+_8+" was not valid format",F),{})},iee=s=>{if(!RV(s))throw new Error(`Bad format for history: +`+JSON.stringify(s));qw.setItem(_8,JSON.stringify(s))},Ok=s=>{const F=H9();return Ge(F,s).getOr([])},aee=(s,F)=>{if(!PV(s))return;const Z=H9(),ue=Ge(Z,F).getOr([]),we=me(ue,Be=>Be!==s);Z[F]=[s].concat(we).slice(0,EV),iee(Z)},LV=s=>!!s,Z9=s=>Ue(ix.makeMap(s,/[, ]/),LV),w8=s=>I.from(az(s)),see=s=>{const F=I.from(t7(s)).filter(LV).map(Z9);return w8(s).fold(D,Z=>F.fold(k,ue=>ke(ue).length>0?ue:!1))},lee=(s,F)=>{const Z=see(s);return w(Z)?Z?w8(s):I.none():Z[F]?w8(s):I.none()},cee=(s,F)=>lee(s,F).map(Z=>ue=>uh.nu(we=>{const Be=(ft,gt)=>{if(!n(ft))throw new Error("Expected value to be string");if(gt!==void 0&&!c(gt))throw new Error("Expected meta to be a object");we({value:ft,meta:gt})},qe={filetype:F,fieldname:ue.fieldname,...I.from(ue.meta).getOr({})};Z.call(s,Be,ue.value,qe)})),IV=s=>I.from(s).filter(n).getOrUndefined(),uee=s=>sz(s)?I.some({targets:ree.find(s.getBody()),anchorTop:IV(D6(s)),anchorBottom:IV(lz(s))}):I.none(),fee=s=>I.from(I6(s)),dee=s=>({getHistory:Ok,addToHistory:aee,getLinkInformation:()=>uee(s),getValidationHandler:()=>fee(s),getUrlPicker:F=>cee(s,F)}),hee=(s,F,Z,ue)=>{const we=xi(!1),Be=jJ(F),qe={icons:()=>F.ui.registry.getAll().icons,menuItems:()=>F.ui.registry.getAll().menuItems,translate:Ag.translate,isDisabled:()=>F.mode.isReadOnly()||!F.ui.isEnabled(),getOption:F.options.get,tooltips:WJ(s.dialog)},ft=dee(F),gt=y8(F),At=VJ(F),$t=xV(F),on=()=>we.get(),yn=or=>we.set(or),wn={shared:{providers:qe,anchors:FJ(F,Z,ue,Be.isPositionedAtTop),header:Be},urlinput:ft,styles:gt,colorinput:At,dialog:$t,isContextMenuOpen:on,setContextMenuState:yn},Mn=or=>I.none(),Xn={...wn,shared:{...wn.shared,interpreter:or=>P9(or,{},Xn,Mn),getSink:s.popup}},Br={...wn,shared:{...wn.shared,interpreter:or=>P9(or,{},Br,Mn),getSink:s.dialog}};return{popup:Xn,dialog:Br}},pee=(s,F,Z)=>{const ue=(ho,Ci)=>{q([F,...Z],mi=>{mi.broadcastEvent(ho,Ci)})},we=(ho,Ci)=>{q([F,...Z],mi=>{mi.broadcastOn([ho],Ci)})},Be=ho=>we(K0(),{target:ho.target}),qe=of(),ft=wd(qe,"touchstart",Be),gt=wd(qe,"touchmove",ho=>ue(Kg(),ho)),At=wd(qe,"touchend",ho=>ue(M_(),ho)),$t=wd(qe,"mousedown",Be),on=wd(qe,"mouseup",ho=>{ho.raw.button===0&&we(pw(),{target:ho.target})}),yn=ho=>we(K0(),{target:Pt.fromDom(ho.target)}),wn=ho=>{ho.button===0&&we(pw(),{target:Pt.fromDom(ho.target)})},Mn=()=>{q(s.editorManager.get(),ho=>{s!==ho&&ho.dispatch("DismissPopups",{relatedTarget:s})})},Xn=ho=>ue(T1(),Jx(ho)),Br=ho=>{we(Qb(),{}),ue(Tm(),Jx(ho))},or=vr(Pt.fromDom(s.getElement())),Mr=Kx(or,"scroll",ho=>{requestAnimationFrame(()=>{const Ci=s.getContainer();if(Ci!=null){const qi=Jb(s,F.element).map(Fi=>[Fi.element,...Fi.others]).getOr([]);te(qi,Fi=>so(Fi,ho.target))&&(s.dispatch("ElementScroll",{target:ho.target.dom}),ue(C1(),ho))}})}),kr=()=>we(Qb(),{}),yo=ho=>{ho.state&&we(K0(),{target:Pt.fromDom(s.getContainer())})},Xr=ho=>{we(K0(),{target:Pt.fromDom(ho.relatedTarget.getContainer())})},No=ho=>s.dispatch("focusin",ho),Jo=ho=>s.dispatch("focusout",ho);s.on("PostRender",()=>{s.on("click",yn),s.on("tap",yn),s.on("mouseup",wn),s.on("mousedown",Mn),s.on("ScrollWindow",Xn),s.on("ResizeWindow",Br),s.on("ResizeEditor",kr),s.on("AfterProgressState",yo),s.on("DismissPopups",Xr),q([F,...Z],ho=>{ho.element.dom.addEventListener("focusin",No),ho.element.dom.addEventListener("focusout",Jo)})}),s.on("remove",()=>{s.off("click",yn),s.off("tap",yn),s.off("mouseup",wn),s.off("mousedown",Mn),s.off("ScrollWindow",Xn),s.off("ResizeWindow",Br),s.off("ResizeEditor",kr),s.off("AfterProgressState",yo),s.off("DismissPopups",Xr),q([F,...Z],ho=>{ho.element.dom.removeEventListener("focusin",No),ho.element.dom.removeEventListener("focusout",Jo)}),$t.unbind(),ft.unbind(),gt.unbind(),At.unbind(),on.unbind(),Mr.unbind()}),s.on("detach",()=>{q([F,...Z],WS),q([F,...Z],ho=>ho.destroy())})},Cd=c6,$y=o6,DV=x([mr("shell",!1),Sn("makeItem"),mr("setupItem",v),Vm.field("listBehaviours",[da])]),O8=Jp({name:"items",overrides:()=>({behaviours:Bo([da.config({})])})}),BV=x([O8]),gee=x("CustomList"),vee=(s,F,Z,ue)=>{const we=(ft,gt)=>{qe(ft).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},At=>{const $t=da.contents(At),on=gt.length,yn=on-$t.length,wn=yn>0?W(yn,()=>s.makeItem()):[],Mn=$t.slice(on);q(Mn,Br=>da.remove(At,Br)),q(wn,Br=>da.append(At,Br));const Xn=da.contents(At);q(Xn,(Br,or)=>{s.setupItem(ft,Br,gt[or],or)})})},Be=s.shell?{behaviours:[da.config({})],components:[]}:{behaviours:[],components:F},qe=ft=>s.shell?I.some(ft):Fo(ft,s,"items");return{uid:s.uid,dom:s.dom,components:Be.components,behaviours:Rf(s.listBehaviours,Be.behaviours),apis:{setItems:we}}},zV=ch({name:gee(),configFields:DV(),partFields:BV(),factory:vee,apis:{setItems:(s,F,Z)=>{s.setItems(F,Z)}}}),w4=x([Sn("dom"),mr("shell",!0),Pf("toolbarBehaviours",[da])]),yee=x([Jp({name:"groups",overrides:()=>({behaviours:Bo([da.config({})])})})]),bee=(s,F,Z,ue)=>{const we=(ft,gt)=>{Be(ft).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},At=>{da.set(At,gt)})},Be=ft=>s.shell?I.some(ft):Fo(ft,s,"groups"),qe=s.shell?{behaviours:[da.config({})],components:[]}:{behaviours:[],components:F};return{uid:s.uid,dom:s.dom,components:qe.components,behaviours:Rf(s.toolbarBehaviours,qe.behaviours),apis:{setGroups:we,refresh:v},domModification:{attributes:{role:"group"}}}},d1=ch({name:"Toolbar",configFields:w4(),partFields:yee(),factory:bee,apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)}}}),FV=v,xee=D,q9=x([]);var _ee=Object.freeze({__proto__:null,setup:FV,isDocked:xee,getBehaviours:q9});const W9=x(fi("toolbar-height-change")),Vy={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},N2="tox-tinymce--toolbar-sticky-on",Y9="tox-tinymce--toolbar-sticky-off",Sk=(s,F)=>{const Z=go(F),we=Yn(F).dom.innerHeight,Be=Hl(Z),qe=Pt.fromDom(s.elm),ft=_l(qe),gt=Ql(qe),At=ft.y,$t=At+gt,on=pc(F),yn=Ql(F),wn=on.top,Mn=wn+yn,Xn=Math.abs(wn-Be.top)<2,Br=Math.abs(Mn-(Be.top+we))<2;if(Xn&&Atwn){const or=At-we+gt+yn;Cs(Be.left,or,Z)}},aO=(s,F)=>X(Dl.getModes(s),F),S8=s=>{const F=ue=>Ed(ue)+(parseInt(Aa(ue,"margin-top"),10)||0)+(parseInt(Aa(ue,"margin-bottom"),10)||0),Z=s.element;Cr(Z).each(ue=>{const we="padding-"+Dl.getModes(s)[0];if(Dl.isDocked(s)){const Be=cc(ue);ko(Z,"width",Be+"px"),ko(ue,we,F(Z)+"px")}else ga(Z,"width"),ga(ue,we)})},X9=(s,F)=>{F?(fc(s,Vy.fadeOutClass),P1(s,[Vy.transitionClass,Vy.fadeInClass])):(fc(s,Vy.fadeInClass),P1(s,[Vy.fadeOutClass,Vy.transitionClass]))},G9=(s,F)=>{const Z=Pt.fromDom(s.getContainer());F?(Sl(Z,N2),fc(Z,Y9)):(Sl(Z,Y9),fc(Z,N2))},xfe=(s,F)=>{const Z=go(F);hp(Z).filter(ue=>!so(F,ue)).filter(ue=>so(ue,Pt.fromDom(Z.dom.body))||So(s,ue)).each(()=>xd(F))},wee=(s,F)=>_d(s).orThunk(()=>F().toOptional().bind(Z=>_d(Z.element))),Oee=(s,F,Z)=>{s.inline||(F.header.isPositionedAtTop()||s.on("ResizeEditor",()=>{Z().each(Dl.reset)}),s.on("ResizeWindow ResizeEditor",()=>{Z().each(S8)}),s.on("SkinLoaded",()=>{Z().each(ue=>{Dl.isDocked(ue)?Dl.reset(ue):Dl.refresh(ue)})}),s.on("FullscreenStateChanged",()=>{Z().each(Dl.reset)})),s.on("AfterScrollIntoView",ue=>{Z().each(we=>{Dl.refresh(we);const Be=we.element;YD(Be)&&Sk(ue,Be)})}),s.on("PostRender",()=>{G9(s,!1)})},See=s=>s().map(Dl.isDocked).getOr(!1),kee=()=>[Wu.config({channels:{[W9()]:{onReceive:S8}}})],NV=(s,F)=>{const Z=os(),ue=F.getSink,we=ft=>{ue().each(gt=>ft(gt.element))},Be=ft=>{s.inline||S8(ft),G9(s,Dl.isDocked(ft)),ft.getSystem().broadcastOn([Qb()],{}),ue().each(gt=>gt.getSystem().broadcastOn([Qb()],{}))},qe=s.inline?[]:kee();return[oa.config({}),Dl.config({contextual:{lazyContext:ft=>{const gt=Ed(ft.element),At=s.inline?s.getContentAreaContainer():s.getContainer();return I.from(At).map($t=>{const on=Ya(Pt.fromDom($t));return Jb(s,ft.element).fold(()=>{const wn=on.height-gt,Mn=on.y+(aO(ft,"top")?0:gt);return ms(on.x,Mn,on.width,wn)},wn=>{const Mn=dl(on,zw(wn)),Xn=aO(ft,"top")?Mn.y:Mn.y+gt;return ms(Mn.x,Xn,Mn.width,Mn.height-gt)})})},onShow:()=>{we(ft=>X9(ft,!0))},onShown:ft=>{we(gt=>th(gt,[Vy.transitionClass,Vy.fadeInClass])),Z.get().each(gt=>{xfe(ft.element,gt),Z.clear()})},onHide:ft=>{wee(ft.element,ue).fold(Z.clear,Z.set),we(gt=>X9(gt,!1))},onHidden:()=>{we(ft=>th(ft,[Vy.transitionClass]))},...Vy},lazyViewport:ft=>Jb(s,ft.element).fold(()=>{const At=wl(),$t=iz(s),on=At.y+(aO(ft,"top")?$t:0),yn=At.height-(aO(ft,"bottom")?$t:0);return{bounds:ms(At.x,on,At.width,yn),optScrollEnv:I.none()}},At=>({bounds:zw(At),optScrollEnv:I.some({currentScrollTop:At.element.dom.scrollTop,scrollElmTop:pc(At.element).top})})),modes:[F.header.getDockingMode()],onDocked:Be,onUndocked:Be}),...qe]};var O4=Object.freeze({__proto__:null,setup:Oee,isDocked:See,getBehaviours:NV});const kk=s=>{const F=s.editor,Z=s.sticky?NV:q9;return{uid:s.uid,dom:s.dom,components:s.components,behaviours:Bo(Z(F,s.sharedBackstage))}},K9=Mi([Fu,rr("items",Ot([J([oC,Si("items",ne)]),ne]))].concat(H5)),Tee=s=>jt("GroupToolbarButton",K9,s),Cee=[Io("text"),Io("tooltip"),Io("icon"),bs("search",!1,Ot([ge,Mi([Io("placeholder")])],s=>w(s)?s?I.some({placeholder:I.none()}):I.none():I.some(s))),$o("fetch"),Pa("onSetup",()=>v)],k8=Mi([Fu,...Cee]),$V=s=>jt("menubutton",k8,s),Tk=Mi([Fu,j5,d0,R2,Gz,TY,P2,hl("presets","normal",["normal","color","listpreview"]),cC(1),G3,U7]),VV=s=>jt("SplitButton",Tk,s);var J9=Yh({factory:(s,F)=>{const Z=(we,Be)=>{const qe=oe(Be,ft=>{const gt={type:"menubutton",text:ft.text,fetch:$t=>{$t(ft.getItems())}},At=$V(gt).mapError($t=>sn($t)).getOrDie();return gk(At,"tox-mbtn",F.backstage,I.some("menuitem"))});da.set(we,qe)},ue={focus:Li.focusIn,setMenus:Z};return{uid:s.uid,dom:s.dom,components:[],behaviours:Bo([da.config({}),Ca("menubar-events",[Ll(we=>{s.onSetup(we)}),fo(Om(),(we,Be)=>{aa(we.element,".tox-mbtn--active").each(qe=>{Fs(Be.event.target,".tox-mbtn").each(ft=>{so(qe,ft)||we.getSystem().getByDom(qe).each(gt=>{we.getSystem().getByDom(ft).each(At=>{p0.expand(At),p0.close(gt),oa.focus(At)})})})})}),fo(Jg(),(we,Be)=>{Be.event.prevFocus.bind(qe=>we.getSystem().getByDom(qe).toOptional()).each(qe=>{Be.event.newFocus.bind(ft=>we.getSystem().getByDom(ft).toOptional()).each(ft=>{p0.isOpen(qe)&&(p0.expand(ft),p0.close(qe))})})})]),Li.config({mode:"flow",selector:".tox-mbtn",onEscape:we=>(s.onEscape(we),I.some(!0))}),Wl.config({})]),apis:ue,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[Sn("dom"),Sn("uid"),Sn("onEscape"),Sn("backstage"),mr("onSetup",v)],apis:{focus:(s,F)=>{s.focus(F)},setMenus:(s,F,Z)=>{s.setMenus(F,Z)}}});const Aee="⚡️Upgrade",Mee="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_campaign=self_hosted_upgrade_promo&utm_source=tiny&utm_medium=referral",Eee=s=>({uid:s.uid,dom:s.dom,components:[{dom:{tag:"a",attributes:{href:Mee,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:Aee}}]}),UV="container",jV=[Pf("slotBehaviours",[])],eR=s=>"",tR=s=>{const F=(()=>{const Be=[];return{slot:(ft,gt)=>(Be.push(ft),s6(UV,eR(ft),gt)),record:x(Be)}})(),Z=s(F),ue=F.record(),we=oe(ue,Be=>kd({name:Be,pname:eR(Be)}));return pv(UV,jV,we,Pee,Z)},Pee=(s,F)=>{const Z=Xn=>_w(s),ue=(Xn,Br)=>Fo(Xn,s,Br),we=(Xn,Br)=>(or,Mr)=>Fo(or,s,Mr).map(kr=>Xn(kr,Mr)).getOr(Br),Be=Xn=>(Br,or)=>{q(or,Mr=>Xn(Br,Mr))},qe=(Xn,Br)=>ao(Xn.element,"aria-hidden")!=="true",ft=(Xn,Br)=>{if(!qe(Xn)){const or=Xn.element;ga(or,"display"),po(or,"aria-hidden"),Ri(Xn,P_(),{name:Br,visible:!0})}},gt=(Xn,Br)=>{if(qe(Xn)){const or=Xn.element;ko(or,"display","none"),fr(or,"aria-hidden","true"),Ri(Xn,P_(),{name:Br,visible:!1})}},At=we(qe,!1),$t=we(gt),on=Be($t),yn=Xn=>on(Xn,Z()),wn=we(ft),Mn={getSlotNames:Z,getSlot:ue,isShowing:At,hideSlot:$t,hideAllSlots:yn,showSlot:wn};return{uid:s.uid,dom:s.dom,components:F,behaviours:vw(s.slotBehaviours),apis:Mn}},Ad={...Ue({getSlotNames:(s,F)=>s.getSlotNames(F),getSlot:(s,F,Z)=>s.getSlot(F,Z),isShowing:(s,F,Z)=>s.isShowing(F,Z),hideSlot:(s,F,Z)=>s.hideSlot(F,Z),hideAllSlots:(s,F)=>s.hideAllSlots(F),showSlot:(s,F,Z)=>s.showSlot(F,Z)},s=>Cc(s)),sketch:tR},QV=Mi([d0,j5,Pa("onShow",v),Pa("onHide",v),P2]),Ree=s=>jt("sidebar",QV,s),Lee=s=>{const{sidebars:F}=s.ui.registry.getAll();q(ke(F),Z=>{const ue=F[Z],we=()=>wt(I.from(s.queryCommandValue("ToggleSidebar")),Z);s.ui.registry.addToggleButton(Z,{icon:ue.icon,tooltip:ue.tooltip,onAction:Be=>{s.execCommand("ToggleSidebar",!1,Z),Be.setActive(we())},onSetup:Be=>{Be.setActive(we());const qe=()=>Be.setActive(we());return s.on("ToggleSidebar",qe),()=>{s.off("ToggleSidebar",qe)}}})})},Iee=s=>({element:()=>s.element.dom}),Dee=(s,F)=>{const Z=oe(ke(F),ue=>{const we=F[ue],Be=Nt(Ree(we));return{name:ue,getApi:Iee,onSetup:Be.onSetup,onShow:Be.onShow,onHide:Be.onHide}});return oe(Z,ue=>{const we=xi(v);return s.slot(ue.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:K3.unnamedEvents([nx(ue,we),Ih(ue,we),fo(P_(),(Be,qe)=>{const ft=qe.event;ce(Z,At=>At.name===ft.name).each(At=>{(ft.visible?At.onShow:At.onHide)(At.getApi(Be))})})])})})},rR=s=>Ad.sketch(F=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:Dee(F,s),slotBehaviours:K3.unnamedEvents([Ll(Z=>Ad.hideAllSlots(Z))])})),oR=(s,F,Z)=>{as.getCurrent(s).each(we=>{da.set(we,[rR(F)]);const Be=Z==null?void 0:Z.toLowerCase();n(Be)&&ht(F,Be)&&as.getCurrent(we).each(qe=>{Ad.showSlot(qe,Be),nm.immediateGrow(we),ga(we.element,"width"),T8(s.element,"region")})})},T8=(s,F)=>{fr(s,"role",F)},iR=(s,F)=>{as.getCurrent(s).each(ue=>{as.getCurrent(ue).each(Be=>{nm.hasGrown(ue)?Ad.isShowing(Be,F)?(nm.shrink(ue),T8(s.element,"presentation")):(Ad.hideAllSlots(Be),Ad.showSlot(Be,F),T8(s.element,"region")):(Ad.hideAllSlots(Be),Ad.showSlot(Be,F),nm.grow(ue),T8(s.element,"region"))})})},Bee=s=>as.getCurrent(s).bind(Z=>nm.isGrowing(Z)||nm.hasGrown(Z)?as.getCurrent(Z).bind(Be=>ce(Ad.getSlotNames(Be),qe=>Ad.isShowing(Be,qe))):I.none()),aR=fi("FixSizeEvent"),sR=fi("AutoSizeEvent"),zee=s=>({uid:s.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:Bo([Wl.config({}),oa.config({}),nm.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:F=>{as.getCurrent(F).each(Ad.hideAllSlots),Sa(F,sR)},onGrown:F=>{Sa(F,sR)},onStartGrow:F=>{Ri(F,aR,{width:Na(F.element,"width").getOr("")})},onStartShrink:F=>{Ri(F,aR,{width:cc(F.element)+"px"})}}),da.config({}),as.config({find:F=>{const Z=da.contents(F);return He(Z)}})])}],behaviours:Bo([y0.childAt(0),Ca("sidebar-sliding-events",[fo(aR,(F,Z)=>{ko(F.element,"width",Z.event.width)}),fo(sR,(F,Z)=>{ga(F.element,"width")})])])});var HV=Object.freeze({__proto__:null,block:(s,F,Z,ue)=>{fr(s.element,"aria-busy",!0);const we=F.getRoot(s).getOr(s),Be=Bo([Li.config({mode:"special",onTab:()=>I.some(!0),onShiftTab:()=>I.some(!0)}),oa.config({})]),qe=ue(we,Be),ft=we.getSystem().build(qe);da.append(we,na(ft)),ft.hasConfigured(Li)&&F.focus&&Li.focusIn(ft),Z.isBlocked()||F.onBlock(s),Z.blockWith(()=>da.remove(we,ft))},unblock:(s,F,Z)=>{po(s.element,"aria-busy"),Z.isBlocked()&&F.onUnblock(s),Z.clear()},isBlocked:(s,F,Z)=>Z.isBlocked()}),Fee=[Pa("getRoot",I.none),hs("focus",!0),Ra("onBlock"),Ra("onUnblock")],$ee=Object.freeze({__proto__:null,init:()=>{const s=xh(),F=Z=>{s.set({destroy:Z})};return kh({readState:s.isSet,blockWith:F,clear:s.clear,isBlocked:s.isSet})}});const Tv=lf({fields:Fee,name:"blocking",apis:HV,state:$ee}),Vee=s=>(F,Z)=>({dom:{tag:"div",attributes:{"aria-label":s.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:gv('
    ')}]}),ZV=s=>as.getCurrent(s).each(F=>xd(F.element,!0)),Uee=(s,F)=>{const Z="tabindex",ue=`data-mce-${Z}`;I.from(s.iframeElement).map(Pt.fromDom).each(we=>{F?(co(we,Z).each(Be=>fr(we,ue,Be)),fr(we,Z,-1)):(po(we,Z),co(we,ue).each(Be=>{fr(we,Z,Be),po(we,ue)}))})},qV=(s,F,Z,ue)=>{const we=F.element;if(Uee(s,Z),Z)Tv.block(F,Vee(ue)),ga(we,"display"),po(we,"aria-hidden"),s.hasFocus()&&ZV(F);else{const Be=as.getCurrent(F).exists(qe=>dy(qe.element));Tv.unblock(F),ko(we,"display","none"),fr(we,"aria-hidden","true"),Be&&s.focus()}},jee=s=>({uid:s.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:Bo([da.config({}),Tv.config({focus:!1}),as.config({find:F=>He(F.components())})]),components:[]}),Qee=s=>s.type==="focusin",Hee=s=>Qee(s)?(s.composed?He(s.composedPath()):I.from(s.target)).map(Pt.fromDom).filter(Kn).exists(Z=>$l(Z,"mce-pastebin")):!1,Ofe=(s,F,Z)=>{const ue=xi(!1),we=os(),Be=ft=>{ue.get()&&!Hee(ft)&&(ft.preventDefault(),ZV(F()),s.editorManager.setActive(s))};s.inline||s.on("PreInit",()=>{s.dom.bind(s.getWin(),"focusin",Be),s.on("BeforeExecCommand",ft=>{ft.command.toLowerCase()==="mcefocus"&&ft.value!==!0&&Be(ft)})});const qe=ft=>{ft!==ue.get()&&(ue.set(ft),qV(s,F(),ft,Z.providers),rX(s,ft))};s.on("ProgressState",ft=>{if(we.on(clearTimeout),h(ft.time)){const gt=S5.setEditorTimeout(s,()=>qe(ft.state),ft.time);we.set(gt)}else qe(ft.state),we.clear()})},Sfe=(s,F)=>se(s,(we,Be)=>F(Be,we.len).fold(x(we),ft=>({len:ft.finish,list:we.list.concat([ft])})),{len:0,list:[]}).list,C8=(s,F,Z)=>({within:s,extra:F,withinWidth:Z}),lR=(s,F,Z)=>{const ue=Sfe(s,(ft,gt)=>{const At=Z(ft);return I.some({element:ft,start:gt,finish:gt+At,width:At})}),we=me(ue,ft=>ft.finish<=F),Be=he(we,(ft,gt)=>ft+gt.width,0),qe=ue.slice(we.length);return{within:we,extra:qe,withinWidth:Be}},A8=s=>oe(s,F=>F.element),Zee=(s,F,Z)=>{const ue=A8(s.concat(F));return C8(ue,[],Z)},Pg=(s,F,Z,ue)=>{const we=A8(s).concat([Z]);return C8(we,A8(F),ue)},qee=(s,F,Z)=>C8(A8(s),[],Z),WV=(s,F,Z)=>{const ue=lR(F,s,Z);return ue.extra.length===0?I.some(ue):I.none()},YV=(s,F,Z,ue)=>{const we=WV(s,F,Z).getOrThunk(()=>lR(F,s-Z(ue),Z)),Be=we.within,qe=we.extra,ft=we.withinWidth;return qe.length===1&&qe[0].width<=Z(ue)?Zee(Be,qe,ft):qe.length>=1?Pg(Be,qe,ue,ft):qee(Be,qe,ft)},XV=(s,F)=>{const Z=oe(F,ue=>na(ue));d1.setGroups(s,Z)},Ck=s=>Oe(s,F=>_d(F.element).bind(Z=>F.getSystem().getByDom(Z).toOptional())),GV=(s,F,Z)=>{const ue=F.builtGroups.get();if(ue.length===0)return;const we=Ph(s,F,"primary"),Be=lu.getCoupled(s,"overflowGroup");ko(we.element,"visibility","hidden");const qe=ue.concat([Be]),ft=Ck(qe);Z([]),XV(we,qe);const gt=cc(we.element),At=YV(gt,F.builtGroups.get(),$t=>Math.ceil($t.element.dom.getBoundingClientRect().width),Be);At.extra.length===0?(da.remove(we,Be),Z([])):(XV(we,At.within),Z(At.extra)),ga(we.element,"visibility"),Ku(we.element),ft.each(oa.focus)},Ak=x([Pf("splitToolbarBehaviours",[lu]),On("builtGroups",()=>xi([]))]),Wee=x([jp(["overflowToggledClass"]),Ui("getOverflowBounds"),Sn("lazySink"),On("overflowGroups",()=>xi([])),Ra("onOpened"),Ra("onClosed")].concat(Ak())),M8=x([kd({factory:d1,schema:w4(),name:"primary"}),Um({schema:w4(),name:"overflow"}),Um({name:"overflow-button"}),Um({name:"overflow-group"})]),cR=x((s,F)=>{ju(s,Math.floor(F))}),Yee=x([jp(["toggledClass"]),Sn("lazySink"),$o("fetch"),Ui("getBounds"),Pi("fireDismissalEventInstead",[mr("event",I0())]),l0(),Ra("onToggled")]),b0=x([Um({name:"button",overrides:s=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:Bo([za.config({toggleClass:s.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:s.onToggled})])})}),Um({factory:d1,schema:w4(),name:"toolbar",overrides:s=>({toolbarBehaviours:Bo([Li.config({mode:"cyclic",onEscape:F=>(Fo(F,s,"button").each(oa.focus),I.none())})])})})]),E8=os(),P8=(s,F)=>{E8.set(!0),R8(s,F),E8.clear()},R8=(s,F)=>{const Z=lu.getCoupled(s,"toolbarSandbox");ps.isOpen(Z)?ps.close(Z):ps.open(Z,F.toolbar())},L8=(s,F,Z,ue)=>{const we=Z.getBounds.map(qe=>qe()),Be=Z.lazySink(s).getOrDie();ed.positionWithinBounds(Be,F,{anchor:{type:"hotspot",hotspot:s,layouts:ue,overrides:{maxWidthFunction:cR()}}},we)},KV=(s,F,Z,ue,we)=>{d1.setGroups(F,we),L8(s,F,Z,ue),za.on(s)},JV=(s,F,Z)=>{const ue=_u(),we=(qe,ft)=>{const gt=E8.get().getOr(!1);Z.fetch().get(At=>{KV(s,ft,Z,F.layouts,At),ue.link(s.element),gt||Li.focusIn(ft)})},Be=()=>{za.off(s),E8.get().getOr(!1)||oa.focus(s),ue.unlink(s.element)};return{dom:{tag:"div",attributes:{id:ue.id}},behaviours:Bo([Li.config({mode:"special",onEscape:qe=>(ps.close(qe),I.some(!0))}),ps.config({onOpen:we,onClose:Be,isPartOf:(qe,ft,gt)=>Vc(ft,gt)||Vc(s,gt),getAttachPoint:()=>Z.lazySink(s).getOrDie()}),Wu.config({channels:{...dv({isExtraPart:D,...Z.fireDismissalEventInstead.map(qe=>({fireEventInstead:{event:qe.event}})).getOr({})}),..._3({doReposition:()=>{ps.getState(lu.getCoupled(s,"toolbarSandbox")).each(qe=>{L8(s,qe,Z,F.layouts)})}})}})])}},$2=ch({name:"FloatingToolbarButton",factory:(s,F,Z,ue)=>({...Vd.sketch({...ue.button(),action:we=>{R8(we,ue)},buttonBehaviours:Vm.augment({dump:ue.button().buttonBehaviours},[lu.config({others:{toolbarSandbox:we=>JV(we,Z,s)}})])}),apis:{setGroups:(we,Be)=>{ps.getState(lu.getCoupled(we,"toolbarSandbox")).each(qe=>{KV(we,qe,s,Z.layouts,Be)})},reposition:we=>{ps.getState(lu.getCoupled(we,"toolbarSandbox")).each(Be=>{L8(we,Be,s,Z.layouts)})},toggle:we=>{R8(we,ue)},toggleWithoutFocusing:we=>{P8(we,ue)},getToolbar:we=>ps.getState(lu.getCoupled(we,"toolbarSandbox")),isOpen:we=>ps.isOpen(lu.getCoupled(we,"toolbarSandbox"))}}),configFields:Yee(),partFields:b0(),apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)},reposition:(s,F)=>{s.reposition(F)},toggle:(s,F)=>{s.toggle(F)},toggleWithoutFocusing:(s,F)=>{s.toggleWithoutFocusing(F)},getToolbar:(s,F)=>s.getToolbar(F),isOpen:(s,F)=>s.isOpen(F)}}),Xee=x([Sn("items"),jp(["itemSelector"]),Pf("tgroupBehaviours",[Li])]),Gee=x([R3({name:"items",unit:"item"})]),Kee=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,components:F,behaviours:Rf(s.tgroupBehaviours,[Li.config({mode:"flow",selector:s.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),I8=ch({name:"ToolbarGroup",configFields:Xee(),partFields:Gee(),factory:Kee}),eU=s=>oe(s,F=>na(F)),uR=(s,F,Z)=>{GV(s,Z,ue=>{Z.overflowGroups.set(ue),F.getOpt(s).each(we=>{$2.setGroups(we,eU(ue))})})},tU=(s,F,Z,ue)=>{const we=qs($2.sketch({fetch:()=>uh.nu(Be=>{Be(eU(s.overflowGroups.get()))}),layouts:{onLtr:()=>[Qc,Ec],onRtl:()=>[Ec,Qc],onBottomLtr:()=>[_s,Hc],onBottomRtl:()=>[Hc,_s]},getBounds:Z.getOverflowBounds,lazySink:s.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:s.markers.overflowToggledClass},parts:{button:ue["overflow-button"](),toolbar:ue.overflow()},onToggled:(Be,qe)=>s[qe?"onOpened":"onClosed"](Be)}));return{uid:s.uid,dom:s.dom,components:F,behaviours:Rf(s.splitToolbarBehaviours,[lu.config({others:{overflowGroup:()=>I8.sketch({...ue["overflow-group"](),items:[we.asSpec()]})}})]),apis:{setGroups:(Be,qe)=>{s.builtGroups.set(oe(qe,Be.getSystem().build)),uR(Be,we,s)},refresh:Be=>uR(Be,we,s),toggle:Be=>{we.getOpt(Be).each(qe=>{$2.toggle(qe)})},toggleWithoutFocusing:Be=>{we.getOpt(Be).each($2.toggleWithoutFocusing)},isOpen:Be=>we.getOpt(Be).map($2.isOpen).getOr(!1),reposition:Be=>{we.getOpt(Be).each(qe=>{$2.reposition(qe)})},getOverflow:Be=>we.getOpt(Be).bind($2.getToolbar)},domModification:{attributes:{role:"group"}}}},fR=ch({name:"SplitFloatingToolbar",configFields:Wee(),partFields:M8(),factory:tU,apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)},refresh:(s,F)=>{s.refresh(F)},reposition:(s,F)=>{s.reposition(F)},toggle:(s,F)=>{s.toggle(F)},toggleWithoutFocusing:(s,F)=>{s.toggle(F)},isOpen:(s,F)=>s.isOpen(F),getOverflow:(s,F)=>s.getOverflow(F)}}),Jee=x([jp(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Ra("onOpened"),Ra("onClosed")].concat(Ak())),ete=x([kd({factory:d1,schema:w4(),name:"primary"}),kd({factory:d1,schema:w4(),name:"overflow",overrides:s=>({toolbarBehaviours:Bo([nm.config({dimension:{property:"height"},closedClass:s.markers.closedClass,openClass:s.markers.openClass,shrinkingClass:s.markers.shrinkingClass,growingClass:s.markers.growingClass,onShrunk:F=>{Fo(F,s,"overflow-button").each(Z=>{za.off(Z)}),s.onClosed(F)},onGrown:F=>{s.onOpened(F)},onStartGrow:F=>{Fo(F,s,"overflow-button").each(za.on)}}),Li.config({mode:"acyclic",onEscape:F=>(Fo(F,s,"overflow-button").each(oa.focus),I.some(!0))})])})}),Um({name:"overflow-button",overrides:s=>({buttonBehaviours:Bo([za.config({toggleClass:s.markers.overflowToggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])})}),Um({name:"overflow-group"})]),nU=(s,F)=>Fo(s,F,"overflow").map(nm.hasGrown).getOr(!1),D8=(s,F,Z)=>{Fo(s,F,"overflow-button").each(ue=>{Fo(s,F,"overflow").each(we=>{if(B8(s,F),nm.hasShrunk(we)){const Be=F.onOpened;F.onOpened=qe=>{Z||Li.focusIn(we),Be(qe),F.onOpened=Be}}else{const Be=F.onClosed;F.onClosed=qe=>{Z||oa.focus(ue),Be(qe),F.onClosed=Be}}nm.toggleGrow(we)})})},B8=(s,F)=>{Fo(s,F,"overflow").each(Z=>{GV(s,F,ue=>{const we=oe(ue,Be=>na(Be));d1.setGroups(Z,we)}),Fo(s,F,"overflow-button").each(ue=>{nm.hasGrown(Z)&&za.on(ue)}),nm.refresh(Z)})},tte=(s,F,Z,ue)=>{const we="alloy.toolbar.toggle",Be=(qe,ft)=>{const gt=oe(ft,qe.getSystem().build);s.builtGroups.set(gt)};return{uid:s.uid,dom:s.dom,components:F,behaviours:Rf(s.splitToolbarBehaviours,[lu.config({others:{overflowGroup:qe=>I8.sketch({...ue["overflow-group"](),items:[Vd.sketch({...ue["overflow-button"](),action:ft=>{Sa(qe,we)}})]})}}),Ca("toolbar-toggle-events",[fo(we,qe=>{D8(qe,s,!1)})])]),apis:{setGroups:(qe,ft)=>{Be(qe,ft),B8(qe,s)},refresh:qe=>B8(qe,s),toggle:qe=>{D8(qe,s,!1)},toggleWithoutFocusing:qe=>{D8(qe,s,!0)},isOpen:qe=>nU(qe,s)},domModification:{attributes:{role:"group"}}}},dR=ch({name:"SplitSlidingToolbar",configFields:Jee(),partFields:ete(),factory:tte,apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)},refresh:(s,F)=>{s.refresh(F)},toggle:(s,F)=>{s.toggle(F)},isOpen:(s,F)=>s.isOpen(F)}}),rU=s=>{const F=s.title.fold(()=>({}),Z=>({attributes:{title:Z}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...F},components:[I8.parts.items({})],items:s.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:Bo([Wl.config({}),oa.config({})])}},Mk=s=>I8.sketch(rU(s)),oU=(s,F)=>{const Z=Ll(ue=>{const we=oe(s.initGroups,Mk);d1.setGroups(ue,we)});return Bo([s1.toolbarButton(s.providers.isDisabled),df(),Li.config({mode:F,onEscape:s.onEscape,selector:".tox-toolbar__group"}),Ca("toolbar-events",[Z])])},iU=s=>{const F=s.cyclicKeying?"cyclic":"acyclic";return{uid:s.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":rU({title:I.none(),items:[]}),"overflow-button":iV({name:"more",icon:I.some("more-drawer"),enabled:!0,tooltip:I.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:I.none(),borderless:!1},I.none(),s.providers,[],"overflow-button")},splitToolbarBehaviours:oU(s,F)}},nte=s=>{const F=iU(s),Z=4,ue=fR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return fR.sketch({...F,lazySink:s.getSink,getOverflowBounds:()=>{const we=s.moreDrawerData.lazyHeader().element,Be=_l(we),qe=Pn(we),ft=_l(qe),gt=Math.max(qe.dom.scrollHeight,ft.height);return ms(Be.x+Z,ft.y,Be.width-Z*2,gt)},parts:{...F.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:s.attributes}}},components:[ue],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:we=>s.onToggled(we,!0),onClosed:we=>s.onToggled(we,!1)})},rte=s=>{const F=dR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),Z=dR.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),ue=iU(s);return dR.sketch({...ue,components:[F,Z],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:we=>{we.getSystem().broadcastOn([W9()],{type:"opened"}),s.onToggled(we,!0)},onClosed:we=>{we.getSystem().broadcastOn([W9()],{type:"closed"}),s.onToggled(we,!1)}})},z8=s=>{const F=s.cyclicKeying?"cyclic":"acyclic";return d1.sketch({uid:s.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(s.type===Hm.scrolling?["tox-toolbar--scrolling"]:[])},components:[d1.parts.groups({})],toolbarBehaviours:oU(s,F)})},aU=[R2,d0,Io("tooltip"),hl("buttonType","secondary",["primary","secondary"]),hs("borderless",!1),$o("onAction")],ote=[...aU,tx,Zr("type",["button"])],ite=[...aU,hs("active",!1),Zr("type",["togglebutton"])],sU={button:ote,togglebutton:ite},ate=[Zr("type",["group"]),Ls("buttons",[],xn("type",sU))],lU=xn("type",{...sU,group:ate}),ste=Mi([Ls("buttons",[],lU),$o("onShow"),$o("onHide")]),lte=s=>jt("view",ste,s),hR=(s,F)=>{var Z,ue;const we=s.type==="togglebutton",Be=s.icon.map(kr=>sx(kr,F.icons)).map(qs),ft=(()=>kr=>{const yo=Jo=>{Be.map(ho=>ho.getOpt(kr).each(Ci=>{da.set(Ci,[sx(Jo,F.icons)])}))},Xr=Jo=>{const ho=kr.element;Jo?(Sl(ho,"tox-button--enabled"),fr(ho,"aria-pressed",!0)):(fc(ho,"tox-button--enabled"),po(ho,"aria-pressed"))},No=()=>$l(kr.element,"tox-button--enabled");if(we)return s.onAction({setIcon:yo,setActive:Xr,isActive:No});if(s.type==="button")return s.onAction({setIcon:yo})})(),gt={...s,name:we?s.text.getOr(s.icon.getOr("")):(Z=s.text)!==null&&Z!==void 0?Z:s.icon.getOr(""),primary:s.buttonType==="primary",buttonType:I.from(s.buttonType),tooltip:s.tooltip,icon:s.icon,enabled:!0,borderless:s.borderless},At=l8((ue=s.buttonType)!==null&&ue!==void 0?ue:"secondary"),$t=we?s.text.map(F.translate):I.some(F.translate(s.text)),on=$t.map(ro),yn=gt.tooltip.or($t).map(kr=>({"aria-label":F.translate(kr)})).getOr({}),wn=Be.map(kr=>kr.asSpec()),Mn=jw([wn,on]),Xn=s.icon.isSome()&&on.isSome(),Br={tag:"button",classes:At.concat(...s.icon.isSome()&&!Xn?["tox-button--icon"]:[]).concat(...Xn?["tox-button--icon-and-text"]:[]).concat(...s.borderless?["tox-button--naked"]:[]).concat(...s.type==="togglebutton"&&s.active?["tox-button--enabled"]:[]),attributes:yn},or=[],Mr=s8(gt,I.some(ft),or,Br,Mn,s.tooltip,F);return Vd.sketch(Mr)},cU=(s,F)=>hR(s,F),F8=(s,F)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:oe(s.buttons,Z=>cU(Z,F))}),uU=rf().deviceType,fU=uU.isPhone(),cte=uU.isTablet(),ute=s=>{let F=!1;const Z=oe(s.buttons,ue=>ue.type==="group"?(F=!0,F8(ue,s.providers)):cU(ue,s.providers));return{uid:s.uid,dom:{tag:"div",classes:[F?"tox-view__toolbar":"tox-view__header",...fU||cte?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:Bo([oa.config({}),Li.config({mode:"flow",selector:"button, .tox-button",focusInside:Wb.OnEnterOrSpaceMode})]),components:F?Z:[_v.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),_v.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:Z})]}},Tfe=s=>({uid:s.uid,behaviours:Bo([oa.config({}),Wl.config({})]),dom:{tag:"div",classes:["tox-view__pane"]}}),fte=(s,F,Z,ue)=>{const we={getPane:Be=>Cd.getPart(Be,s,"pane"),getOnShow:Be=>s.viewConfig.onShow,getOnHide:Be=>s.viewConfig.onHide};return{uid:s.uid,dom:s.dom,components:F,behaviours:Bo([oa.config({}),Li.config({mode:"cyclic",focusInside:Wb.OnEnterOrSpaceMode})]),apis:we}};var S4=ch({name:"silver.View",configFields:[Sn("viewConfig")],partFields:[Jp({factory:{sketch:ute},schema:[Sn("buttons"),Sn("providers")],name:"header"}),Jp({factory:{sketch:Tfe},schema:[],name:"pane"})],factory:fte,apis:{getPane:(s,F)=>s.getPane(F),getOnShow:(s,F)=>s.getOnShow(F),getOnHide:(s,F)=>s.getOnHide(F)}});const pR=(s,F,Z)=>je(F,(ue,we)=>{const Be=Nt(lte(ue));return s.slot(we,S4.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:Be,components:[...Be.buttons.length>0?[S4.parts.header({buttons:Be.buttons,providers:Z})]:[],S4.parts.pane({})]}))}),dte=(s,F)=>Ad.sketch(Z=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:pR(Z,s,F),slotBehaviours:K3.unnamedEvents([Ll(ue=>Ad.hideAllSlots(ue))])})),Ek=s=>ce(Ad.getSlotNames(s),F=>Ad.isShowing(s,F)),dU=s=>{const F=s.element;ko(F,"display","none"),fr(F,"aria-hidden","true")},hU=s=>{const F=s.element;ga(F,"display"),po(F,"aria-hidden")},mR=s=>({getContainer:x(s)}),pU=(s,F,Z)=>{Ad.getSlot(s,F).each(ue=>{S4.getPane(ue).each(we=>{Z(ue)(mR(we.element.dom))})})},mU=(s,F)=>pU(s,F,S4.getOnShow),k4=(s,F)=>pU(s,F,S4.getOnHide);var N8=Yh({factory:(s,F)=>{const Be={setViews:(qe,ft)=>{da.set(qe,[dte(ft,F.backstage.shared.providers)])},whichView:qe=>as.getCurrent(qe).bind(Ek),toggleView:(qe,ft,gt,At)=>as.getCurrent(qe).exists($t=>{const on=Ek($t),yn=on.exists(Mn=>At===Mn),wn=Ad.getSlot($t,At).isSome();return wn&&(Ad.hideAllSlots($t),yn?(dU(qe),ft()):(gt(),hU(qe),Ad.showSlot($t,At),mU($t,At)),on.each(Mn=>k4($t,Mn))),wn})};return{uid:s.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:Bo([da.config({}),as.config({find:qe=>{const ft=da.contents(qe);return He(ft)}})]),apis:Be}},name:"silver.ViewWrapper",configFields:[Sn("backstage")],apis:{setViews:(s,F,Z)=>s.setViews(F,Z),toggleView:(s,F,Z,ue,we)=>s.toggleView(F,Z,ue,we),whichView:(s,F)=>s.whichView(F)}});const pte=(s,F,Z)=>{let ue=!1;const we=qe=>{gs(qe,".tox-statusbar").each(ft=>{Aa(ft,"display")==="none"&&ao(ft,"aria-hidden")==="true"?(ga(ft,"display"),po(ft,"aria-hidden")):(ko(ft,"display","none"),fr(ft,"aria-hidden","true"))})},Be={getSocket:qe=>Cd.getPart(qe,s,"socket"),setSidebar:(qe,ft,gt)=>{Cd.getPart(qe,s,"sidebar").each(At=>oR(At,ft,gt))},toggleSidebar:(qe,ft)=>{Cd.getPart(qe,s,"sidebar").each(gt=>iR(gt,ft))},whichSidebar:qe=>Cd.getPart(qe,s,"sidebar").bind(Bee).getOrNull(),getHeader:qe=>Cd.getPart(qe,s,"header"),getToolbar:qe=>Cd.getPart(qe,s,"toolbar"),setToolbar:(qe,ft)=>{Cd.getPart(qe,s,"toolbar").each(gt=>{const At=oe(ft,Mk);gt.getApis().setGroups(gt,At)})},setToolbars:(qe,ft)=>{Cd.getPart(qe,s,"multiple-toolbar").each(gt=>{const At=oe(ft,$t=>oe($t,Mk));zV.setItems(gt,At)})},refreshToolbar:qe=>{Cd.getPart(qe,s,"toolbar").each(gt=>gt.getApis().refresh(gt))},toggleToolbarDrawer:qe=>{Cd.getPart(qe,s,"toolbar").each(ft=>{Ct(ft.getApis().toggle,gt=>gt(ft))})},toggleToolbarDrawerWithoutFocusing:qe=>{Cd.getPart(qe,s,"toolbar").each(ft=>{Ct(ft.getApis().toggleWithoutFocusing,gt=>gt(ft))})},isToolbarDrawerToggled:qe=>Cd.getPart(qe,s,"toolbar").bind(ft=>I.from(ft.getApis().isOpen).map(gt=>gt(ft))).getOr(!1),getThrobber:qe=>Cd.getPart(qe,s,"throbber"),focusToolbar:qe=>{Cd.getPart(qe,s,"toolbar").orThunk(()=>Cd.getPart(qe,s,"multiple-toolbar")).each(gt=>{Li.focusIn(gt)})},setMenubar:(qe,ft)=>{Cd.getPart(qe,s,"menubar").each(gt=>{J9.setMenus(gt,ft)})},focusMenubar:qe=>{Cd.getPart(qe,s,"menubar").each(ft=>{J9.focus(ft)})},setViews:(qe,ft)=>{Cd.getPart(qe,s,"viewWrapper").each(gt=>{N8.setViews(gt,ft)})},toggleView:(qe,ft)=>Cd.getPart(qe,s,"viewWrapper").exists(gt=>N8.toggleView(gt,()=>Be.showMainView(qe),()=>Be.hideMainView(qe),ft)),whichView:qe=>Cd.getPart(qe,s,"viewWrapper").bind(N8.whichView).getOrNull(),hideMainView:qe=>{ue=Be.isToolbarDrawerToggled(qe),ue&&Be.toggleToolbarDrawer(qe),Cd.getPart(qe,s,"editorContainer").each(ft=>{const gt=ft.element;we(gt),ko(gt,"display","none"),fr(gt,"aria-hidden","true")})},showMainView:qe=>{ue&&Be.toggleToolbarDrawer(qe),Cd.getPart(qe,s,"editorContainer").each(ft=>{const gt=ft.element;we(gt),ga(gt,"display"),po(gt,"aria-hidden")})}};return{uid:s.uid,dom:s.dom,components:F,apis:Be,behaviours:s.behaviours}},mte=$y.optional({factory:J9,name:"menubar",schema:[Sn("backstage")]}),gR=s=>s.type===Hm.sliding?rte:s.type===Hm.floating?nte:z8,gte=$y.optional({factory:{sketch:s=>zV.sketch({uid:s.uid,dom:s.dom,listBehaviours:Bo([Li.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>z8({type:s.type,uid:fi("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:s.providers,onEscape:()=>(s.onEscape(),I.some(!0))}),setupItem:(F,Z,ue,we)=>{d1.setGroups(Z,ue)},shell:!0})},name:"multiple-toolbar",schema:[Sn("dom"),Sn("onEscape")]}),vte=$y.optional({factory:{sketch:s=>{const F=gR(s),Z={type:s.type,uid:s.uid,onEscape:()=>(s.onEscape(),I.some(!0)),onToggled:(ue,we)=>s.onToolbarToggled(we),cyclicKeying:!1,initGroups:[],getSink:s.getSink,providers:s.providers,moreDrawerData:{lazyToolbar:s.lazyToolbar,lazyMoreButton:s.lazyMoreButton,lazyHeader:s.lazyHeader},attributes:s.attributes};return F(Z)}},name:"toolbar",schema:[Sn("dom"),Sn("onEscape"),Sn("getSink")]}),gU=$y.optional({factory:{sketch:kk},name:"header",schema:[Sn("dom")]}),vU=$y.optional({factory:{sketch:Eee},name:"promotion",schema:[Sn("dom")]}),$8=$y.optional({name:"socket",schema:[Sn("dom")]}),vR=$y.optional({factory:{sketch:zee},name:"sidebar",schema:[Sn("dom")]}),yte=$y.optional({factory:{sketch:jee},name:"throbber",schema:[Sn("dom")]}),bte=$y.optional({factory:N8,name:"viewWrapper",schema:[Sn("backstage")]}),yU=s=>({uid:s.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:s.components}),xte=$y.optional({factory:{sketch:yU},name:"editorContainer",schema:[]});var Yl=ch({name:"OuterContainer",factory:pte,configFields:[Sn("dom"),Sn("behaviours")],partFields:[gU,mte,vte,gte,$8,vR,vU,yte,bte,xte],apis:{getSocket:(s,F)=>s.getSocket(F),setSidebar:(s,F,Z,ue)=>{s.setSidebar(F,Z,ue)},toggleSidebar:(s,F,Z)=>{s.toggleSidebar(F,Z)},whichSidebar:(s,F)=>s.whichSidebar(F),getHeader:(s,F)=>s.getHeader(F),getToolbar:(s,F)=>s.getToolbar(F),setToolbar:(s,F,Z)=>{s.setToolbar(F,Z)},setToolbars:(s,F,Z)=>{s.setToolbars(F,Z)},refreshToolbar:(s,F)=>s.refreshToolbar(F),toggleToolbarDrawer:(s,F)=>{s.toggleToolbarDrawer(F)},toggleToolbarDrawerWithoutFocusing:(s,F)=>{s.toggleToolbarDrawerWithoutFocusing(F)},isToolbarDrawerToggled:(s,F)=>s.isToolbarDrawerToggled(F),getThrobber:(s,F)=>s.getThrobber(F),setMenubar:(s,F,Z)=>{s.setMenubar(F,Z)},focusMenubar:(s,F)=>{s.focusMenubar(F)},focusToolbar:(s,F)=>{s.focusToolbar(F)},setViews:(s,F,Z)=>{s.setViews(F,Z)},toggleView:(s,F,Z)=>s.toggleView(F,Z),whichView:(s,F)=>s.whichView(F)}});const _te="file edit view insert format tools table help",yR={file:{title:"File",items:"newdocument restoredraft | preview | importword exportpdf exportword | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code revisionhistory | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed inserttemplate codesample inserttable accordion math | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},wte=(s,F,Z)=>{const ue=GE(Z).split(/[ ,]/);return{text:s.title,getItems:()=>ye(s.items,we=>{const Be=we.toLowerCase();return Be.trim().length===0?[]:te(ue,qe=>qe===Be)?[]:Be==="separator"||Be==="|"?[{type:"separator"}]:F.menuItems[Be]?[F.menuItems[Be]]:[]})}},bR=s=>s.split(" "),V8=(s,F)=>{const Z={...yR,...F.menus},ue=ke(F.menus).length>0,we=F.menubar===void 0||F.menubar===!0?bR(_te):bR(F.menubar===!1?"":F.menubar),Be=me(we,ft=>{const gt=ht(yR,ft);return ue?gt||Ge(F.menus,ft).exists(At=>ht(At,"items")):gt}),qe=oe(Be,ft=>{const gt=Z[ft];return wte({title:gt.title,items:bR(gt.items)},F,s)});return me(qe,ft=>{const gt=At=>n(At)||At.type!=="separator";return ft.getItems().length>0&&te(ft.getItems(),gt)})},Ote=s=>{const F=()=>{s._skinLoaded=!0,eX(s)};return()=>{s.initialized?F():s.on("init",F)}},Ste=(s,F)=>()=>tX(s,{message:F}),xR=(s,F,Z)=>(s.on("remove",()=>Z.unload(F)),Z.load(F)),_R=(s,F,Z,ue)=>(s.on("remove",()=>ue.unloadRawCss(F)),ue.loadRawCss(F,Z)),bU=async(s,F)=>{const ue="ui/"+F6(s).getOr("default")+"/skin.css",we=tinymce.Resource.get(ue);if(n(we))_R(s,ue,we,s.ui.styleSheetLoader);else{const Be=s.editorManager.suffix,qe=F+`/skin${Be}.css`;return xR(s,qe,s.ui.styleSheetLoader)}},kte=async(s,F)=>{if(Qn(Pt.fromDom(s.getElement()))){const we="ui/"+F6(s).getOr("default")+"/skin.shadowdom.css",Be=tinymce.Resource.get(we);if(n(Be))_R(s,we,Be,Lw.DOM.styleSheetLoader);else{const qe=s.editorManager.suffix,ft=F+`/skin.shadowdom${qe}.css`;return xR(s,ft,Lw.DOM.styleSheetLoader)}}},xU=async(s,F)=>{const Z=()=>{const we=i7(F),Be=F.editorManager.suffix;we&&F.contentCSS.push(we+(s?"/content.inline":"/content")+`${Be}.css`)};F6(F).fold(Z,we=>{const Be="ui/"+we+(s?"/content.inline":"/content")+".css",qe=tinymce.Resource.get(Be);n(qe)?_R(F,Be,qe,F.ui.styleSheetLoader):Z()});const ue=i7(F);if(!o7(F)&&n(ue))return Promise.all([bU(F,ue),kte(F,ue)]).then()},_U=(s,F)=>xU(s,F).then(Ote(F),Ste(F,"Skin could not be loaded")),Tte=T(_U,!1),Cte=T(_U,!0),sO=(s,F,Z)=>at(Z)?s.translate(F):s.translate([F,s.translate(Z)]),Ate=(s,F)=>{const Z=(qe,ft,gt,At)=>{const $t=s.shared.providers.translate(qe.title);if(qe.type==="separator")return I.some({type:"separator",text:$t});if(qe.type==="submenu"){const on=ye(qe.getStyleItems(),yn=>ue(yn,ft,At));return ft===0&&on.length<=0?I.none():I.some({type:"nestedmenuitem",text:$t,enabled:on.length>0,getSubmenuItems:()=>ye(qe.getStyleItems(),yn=>ue(yn,ft,At))})}else return I.some({type:"togglemenuitem",text:$t,icon:qe.icon,active:qe.isSelected(At),enabled:!gt,onAction:F.onAction(qe),...qe.getStylePreview().fold(()=>({}),on=>({meta:{style:on}}))})},ue=(qe,ft,gt)=>{const At=qe.type==="formatter"&&F.isInvalid(qe);return ft===0?At?[]:Z(qe,ft,!1,gt).toArray():Z(qe,ft,At,gt).toArray()},we=qe=>{const ft=F.getCurrentValue(),gt=F.shouldHide?0:1;return ye(qe,At=>ue(At,gt,ft))};return{validateItems:we,getFetch:(qe,ft)=>(gt,At)=>{const $t=ft(),on=we($t),yn=v4(on,r1.CLOSE_ON_EXECUTE,qe,{isHorizontalMenu:!1,search:I.none()});At(yn)}}},T4=(s,F)=>{const Z=F.dataset,ue=Z.type==="basic"?()=>oe(Z.data,we=>_k(we,F.isSelectedFor,F.getPreviewFor)):Z.getData;return{items:Ate(s,F),getStyleItems:ue}},Pk=(s,F,Z,ue,we,Be)=>{const{items:qe,getStyleItems:ft}=T4(F,Z),gt=xi(Z.tooltip),At=on=>({getComponent:x(on),setTooltip:yn=>{const wn=F.shared.providers.translate(yn);fr(on.element,"aria-label",wn),gt.set(yn)}}),$t=on=>{const yn=wn=>on.setTooltip(sO(s,ue(wn.value),wn.value));return s.on(we,yn),t4(Zw(s,"NodeChange",wn=>{const Mn=wn.getComponent();Z.updateText(Mn),ta.set(wn.getComponent(),!s.selection.isEditable())})(on),()=>s.off(we,yn))};return l9({text:Z.icon.isSome()?I.none():Z.text,icon:Z.icon,ariaLabel:I.some(Z.tooltip),tooltip:I.none(),role:I.none(),fetch:qe.getFetch(F,ft),onSetup:$t,getApi:At,columns:1,presets:"normal",classes:Z.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[Td.config({...F.shared.providers.tooltips.getConfig({tooltipText:F.shared.providers.translate(Z.tooltip),onShow:on=>{if(Z.tooltip!==gt.get()){const yn=F.shared.providers.translate(gt.get());Td.setComponents(on,F.shared.providers.tooltips.getComponents({tooltipText:yn}))}}})})]},"tox-tbtn",F.shared,Be)},wR=s=>oe(s,F=>{let Z=F,ue=F;const we=F.split("=");return we.length>1&&(Z=we[0],ue=we[1]),{title:Z,format:ue}}),OR=s=>({type:"basic",data:s});var C4;(function(s){s[s.SemiColon=0]="SemiColon",s[s.Space=1]="Space"})(C4||(C4={}));const Mte=(s,F)=>F===C4.SemiColon?s.replace(/;$/,"").split(";"):s.split(" "),SR=(s,F,Z)=>{const ue=s.options.get(F);return{type:"basic",data:wR(Mte(ue,Z))}},Ete="Align",wU=x("Alignment {0}"),OU="left",kR=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],SU=s=>{const F=()=>ce(kR,ft=>s.formatter.match(ft.format)),Z=ft=>()=>s.formatter.match(ft),ue=ft=>I.none,we=ft=>{const At=F().fold(x(OU),$t=>$t.title.toLowerCase());Ri(ft,F2,{icon:`align-${At}`}),sX(s,{value:At})},Be=OR(kR),qe=ft=>()=>ce(kR,gt=>gt.format===ft.format).each(gt=>s.execCommand(gt.command));return{tooltip:sO(s,wU(),OU),text:I.none(),icon:I.some("align-left"),isSelectedFor:Z,getCurrentValue:I.none,getPreviewFor:ue,onAction:qe,updateText:we,dataset:Be,shouldHide:!1,isInvalid:ft=>!s.formatter.canApply(ft.format)}},Pte=(s,F)=>Pk(s,F,SU(s),wU,"AlignTextUpdate","align"),kU=(s,F)=>{const Z=T4(F,SU(s));s.ui.registry.addNestedMenuItem("align",{text:F.shared.providers.translate(Ete),onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},Rk=(s,F)=>{const Z=F(),ue=oe(Z,we=>we.format);return I.from(s.formatter.closest(ue)).bind(we=>ce(Z,Be=>Be.format===we))},TR="Blocks",CR=x("Block {0}"),Uy="Paragraph",AR=s=>{const F=Be=>()=>s.formatter.match(Be),Z=Be=>()=>{const qe=s.formatter.get(Be);return qe?I.some({tag:qe.length>0&&(qe[0].inline||qe[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(Be))}):I.none()},ue=Be=>{const ft=Rk(s,()=>we.data).fold(x(Uy),gt=>gt.title);Ri(Be,Eg,{text:ft}),RF(s,{value:ft})},we=SR(s,"block_formats",C4.SemiColon);return{tooltip:sO(s,CR(),Uy),text:I.some(Uy),icon:I.none(),isSelectedFor:F,getCurrentValue:I.none,getPreviewFor:Z,onAction:LF(s),updateText:ue,dataset:we,shouldHide:!1,isInvalid:Be=>!s.formatter.canApply(Be.format)}},Rte=(s,F)=>Pk(s,F,AR(s),CR,"BlocksTextUpdate","blocks"),Lte=(s,F)=>{const Z=T4(F,AR(s));s.ui.registry.addNestedMenuItem("blocks",{text:TR,onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},Ite="Fonts",TU=x("Font {0}"),MR="System Font",Dte=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],CU=s=>{const F=s.split(/\s*,\s*/);return oe(F,Z=>Z.replace(/^['"]+|['"]+$/g,""))},ER=(s,F)=>F.length>0&&_e(F,Z=>s.indexOf(Z.toLowerCase())>-1),Bte=(s,F)=>{if(s.indexOf("-apple-system")===0||F.length>0){const Z=CU(s.toLowerCase());return ER(Z,Dte)||ER(Z,F)}else return!1},AU=s=>{const F=()=>{const gt=Mn=>Mn?CU(Mn)[0]:"",At=s.queryCommandValue("FontName"),$t=ft.data,on=At?At.toLowerCase():"",yn=pz(s);return{matchOpt:ce($t,Mn=>{const Xn=Mn.format;return Xn.toLowerCase()===on||gt(Xn).toLowerCase()===gt(on).toLowerCase()}).orThunk(()=>_t(Bte(on,yn),{title:MR,format:on})),font:At}},Z=gt=>At=>At.exists($t=>$t.format===gt),ue=()=>{const{matchOpt:gt}=F();return gt},we=gt=>()=>I.some({tag:"div",styles:gt.indexOf("dings")===-1?{"font-family":gt}:{}}),Be=gt=>()=>{s.undoManager.transact(()=>{s.focus(),s.execCommand("FontName",!1,gt.format)})},qe=gt=>{const{matchOpt:At,font:$t}=F(),on=At.fold(x($t),yn=>yn.title);Ri(gt,Eg,{text:on}),lX(s,{value:on})},ft=SR(s,"font_family_formats",C4.SemiColon);return{tooltip:sO(s,TU(),MR),text:I.some(MR),icon:I.none(),isSelectedFor:Z,getCurrentValue:ue,getPreviewFor:we,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},PR=(s,F)=>Pk(s,F,AU(s),TU,"FontFamilyTextUpdate","fontfamily"),zte=(s,F)=>{const Z=T4(F,AU(s));s.ui.registry.addNestedMenuItem("fontfamily",{text:F.shared.providers.translate(Ite),onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},Fte={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Nte=(()=>{const s="[0-9]+",Z="[eE]"+("[+-]?"+s),ue="\\.",we=ft=>`(?:${ft})?`,qe=`[+-]?(?:${["Infinity",s+ue+we(s)+we(Z),ue+s+we(Z),s+we(Z)].join("|")})`;return new RegExp(`^(${qe})(.*)$`)})(),$te=(s,F)=>te(F,Z=>te(Fte[Z],ue=>s===ue)),U8=(s,F)=>I.from(Nte.exec(s)).bind(ue=>{const we=Number(ue[1]),Be=ue[2];return $te(Be,F)?I.some({value:we,unit:Be}):I.none()}),Vte=(s,F)=>U8(s,F).map(({value:Z,unit:ue})=>Z+ue),RR={tab:x(9),escape:x(27),enter:x(13),backspace:x(8),delete:x(46),left:x(37),up:x(38),right:x(39),down:x(40),space:x(32),home:x(36),end:x(35),pageUp:x(33),pageDown:x(34)},MU=(s,F,Z,ue)=>{let we=I.none();const Be=kr=>kr.map(yo=>hi.getValue(yo)).getOr(""),qe=Zw(s,"NodeChange SwitchMode",kr=>{const yo=kr.getComponent();we=I.some(yo),Z.updateInputValue(yo),ta.set(yo,!s.selection.isEditable())}),ft=kr=>({getComponent:x(kr)}),gt=xi(v),At=fi("custom-number-input-events"),$t=(kr,yo,Xr)=>{const No=Be(we),Jo=Z.getNewValue(No,kr),ho=No.length-`${Jo}`.length,Ci=we.map(qi=>qi.element.dom.selectionStart-ho),mi=we.map(qi=>qi.element.dom.selectionEnd-ho);Z.onAction(Jo,Xr),we.each(qi=>{hi.setValue(qi,Jo),yo&&(Ci.each(Fi=>qi.element.dom.selectionStart=Fi),mi.each(Fi=>qi.element.dom.selectionEnd=Fi))})},on=(kr,yo)=>$t((Xr,No)=>Xr-No,kr,yo),yn=(kr,yo)=>$t((Xr,No)=>Xr+No,kr,yo),wn=kr=>Cr(kr.element).fold(I.none,yo=>(xd(yo),I.some(!0))),Mn=kr=>dy(kr.element)?(hr(kr.element).each(yo=>xd(yo)),I.some(!0)):I.none(),Xn=(kr,yo,Xr,No)=>{const Jo=xi(v),ho=F.shared.providers.translate(Xr),Ci=fi("altExecuting"),mi=Zw(s,"NodeChange SwitchMode",Fi=>{ta.set(Fi.getComponent(),!s.selection.isEditable())}),qi=Fi=>{ta.isDisabled(Fi)||kr(!0)};return Vd.sketch({dom:{tag:"button",attributes:{"aria-label":ho,"data-mce-name":yo},classes:No.concat(yo)},components:[n8(yo,F.shared.providers.icons)],buttonBehaviours:Bo([ta.config({}),Td.config(F.shared.providers.tooltips.getConfig({tooltipText:ho})),Ca(Ci,[nx({onSetup:mi,getApi:ft},Jo),Ih({getApi:ft},Jo),fo(Bp(),(Fi,Os)=>{(Os.event.raw.keyCode===RR.space()||Os.event.raw.keyCode===RR.enter())&&(ta.isDisabled(Fi)||kr(!1))}),fo(R0(),qi),fo(wm(),qi)])]),eventOrder:{[Bp()]:[Ci,"keying"],[R0()]:[Ci,"alloy.base.behaviour"],[wm()]:[Ci,"alloy.base.behaviour"],[zd()]:["alloy.base.behaviour",Ci,"tooltipping"],[fp()]:[Ci,"tooltipping"]}})},Br=qs(Xn(kr=>on(!1,kr),"minus","Decrease font size",[])),or=qs(Xn(kr=>yn(!1,kr),"plus","Increase font size",[])),Mr=qs({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[Nw.sketch({inputBehaviours:Bo([ta.config({}),Ca(At,[nx({onSetup:qe,getApi:ft},gt),Ih({getApi:ft},gt)]),Ca("input-update-display-text",[fo(Eg,(kr,yo)=>{hi.setValue(kr,yo.event.text)}),fo(ap(),kr=>{Z.onAction(hi.getValue(kr))}),fo(Zv(),kr=>{Z.onAction(hi.getValue(kr))})]),Li.config({mode:"special",onEnter:kr=>($t(R,!0,!0),I.some(!0)),onEscape:wn,onUp:kr=>(yn(!0,!1),I.some(!0)),onDown:kr=>(on(!0,!1),I.some(!0)),onLeft:(kr,yo)=>(yo.cut(),I.none()),onRight:(kr,yo)=>(yo.cut(),I.none())})])})],behaviours:Bo([oa.config({}),Li.config({mode:"special",onEnter:Mn,onSpace:Mn,onEscape:wn}),Ca("input-wrapper-events",[fo(Om(),kr=>{q([Br,or],yo=>{const Xr=Pt.fromDom(yo.get(kr).element.dom);dy(Xr)&&a0(Xr)})})])])});return{dom:{tag:"div",classes:["tox-number-input"],attributes:{...a(ue)?{"data-mce-name":ue}:{}}},components:[Br.asSpec(),Mr.asSpec(),or.asSpec()],behaviours:Bo([oa.config({}),Li.config({mode:"flow",focusInside:Wb.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:kr=>dy(kr.element)?I.none():(xd(kr.element),I.some(!0))})])}},EU="Font sizes",PU=x("Font size {0}"),LR="12pt",Ute={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},jte={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},Qte=(s,F)=>{const Z=Math.pow(10,F);return Math.round(s*Z)/Z},RU=(s,F)=>/[0-9.]+px$/.test(s)?Qte(parseInt(s,10)*72/96,F||0)+"pt":Ge(jte,s).getOr(s),Hte=s=>Ge(Ute,s).getOr(""),IR=s=>{const F=()=>{let gt=I.none();const At=ft.data,$t=s.queryCommandValue("FontSize");if($t)for(let on=3;gt.isNone()&&on>=0;on--){const yn=RU($t,on),wn=Hte(yn);gt=ce(At,Mn=>Mn.format===$t||Mn.format===yn||Mn.format===wn)}return{matchOpt:gt,size:$t}},Z=gt=>At=>At.exists($t=>$t.format===gt),ue=()=>{const{matchOpt:gt}=F();return gt},we=x(I.none),Be=gt=>()=>{s.undoManager.transact(()=>{s.focus(),s.execCommand("FontSize",!1,gt.format)})},qe=gt=>{const{matchOpt:At,size:$t}=F(),on=At.fold(x($t),yn=>yn.title);Ri(gt,Eg,{text:on}),lP(s,{value:on})},ft=SR(s,"font_size_formats",C4.Space);return{tooltip:sO(s,PU(),LR),text:I.some(LR),icon:I.none(),isSelectedFor:Z,getPreviewFor:we,getCurrentValue:ue,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},Zte=(s,F)=>Pk(s,F,IR(s),PU,"FontSizeTextUpdate","fontsize"),qte=s=>{var F;const Z={step:1};return(F={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[s])!==null&&F!==void 0?F:Z},Wte=16,Yte=s=>s>=0,Xte=s=>{const F=()=>s.queryCommandValue("FontSize");return{updateInputValue:ue=>Ri(ue,Eg,{text:F()}),onAction:(ue,we)=>s.execCommand("FontSize",!1,ue,{skip_focus:!we}),getNewValue:(ue,we)=>{U8(ue,["unsupportedLength","empty"]);const Be=F(),qe=U8(ue,["unsupportedLength","empty"]).or(U8(Be,["unsupportedLength","empty"])),ft=qe.map(yn=>yn.value).getOr(Wte),gt=e7(s),At=qe.map(yn=>yn.unit).filter(yn=>yn!=="").getOr(gt),$t=we(ft,qte(At).step),on=`${Yte($t)?$t:ft}${At}`;return on!==Be&&PF(s,{value:on}),on}}},Gte=(s,F)=>MU(s,F,Xte(s),"fontsizeinput"),Kte=(s,F)=>{const Z=T4(F,IR(s));s.ui.registry.addNestedMenuItem("fontsize",{text:EU,onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},LU="Formats",IU=s=>at(s)?"Formats":"Format {0}",DU=(s,F)=>{const Z="Formats",ue=qe=>()=>s.formatter.match(qe),we=qe=>()=>{const ft=s.formatter.get(qe);return ft!==void 0?I.some({tag:ft.length>0&&(ft[0].inline||ft[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(qe))}):I.none()},Be=qe=>{const ft=on=>_V(on)?ye(on.items,ft):wV(on)?[{title:on.title,format:on.format}]:[],gt=ye(z9(s),ft),$t=Rk(s,x(gt)).fold(x({title:Z,tooltipLabel:""}),on=>({title:on.title,tooltipLabel:on.title}));Ri(qe,Eg,{text:$t.title}),aX(s,{value:$t.tooltipLabel})};return{tooltip:sO(s,IU(""),""),text:I.some(Z),icon:I.none(),isSelectedFor:ue,getCurrentValue:I.none,getPreviewFor:we,onAction:LF(s),updateText:Be,shouldHide:nz(s),isInvalid:qe=>!s.formatter.canApply(qe.format),dataset:F}},Jte=(s,F)=>{const Z={type:"advanced",...F.styles};return Pk(s,F,DU(s,Z),IU,"StylesTextUpdate","styles")},ene=(s,F)=>{const Z={type:"advanced",...F.styles},ue=T4(F,DU(s,Z));s.ui.registry.addNestedMenuItem("styles",{text:LU,onSetup:Gh(s),getSubmenuItems:()=>ue.items.validateItems(ue.getStyleItems())})},tne=x([Sn("toggleClass"),Sn("fetch"),Zh("onExecute"),mr("getHotspot",I.some),mr("getAnchorOverrides",x({})),l0(),Zh("onItemExecute"),Hr("lazySink"),Sn("dom"),Ra("onOpen"),Pf("splitDropdownBehaviours",[lu,Li,oa]),mr("matchWidth",!1),mr("useMinWidth",!1),mr("eventOrder",{}),Hr("role"),Hr("listRole")].concat(EC())),nne=kd({factory:Vd,schema:[Sn("dom")],name:"arrow",defaults:()=>({buttonBehaviours:Bo([oa.revoke()])}),overrides:s=>({dom:{tag:"span",attributes:{role:"presentation"}},action:F=>{F.getSystem().getByUid(s.uid).each(Fp)},buttonBehaviours:Bo([za.config({toggleOnExecute:!1,toggleClass:s.toggleClass})])})}),rne=kd({factory:Vd,schema:[Sn("dom")],name:"button",defaults:()=>({buttonBehaviours:Bo([oa.revoke()])}),overrides:s=>({dom:{tag:"span",attributes:{role:"presentation"}},action:F=>{F.getSystem().getByUid(s.uid).each(Z=>{s.onExecute(Z,F)})}})}),BU=x([nne,rne,Jp({factory:{sketch:s=>({uid:s.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:s.text}})},schema:[Sn("text")],name:"aria-descriptor"}),Um({schema:[U0()],name:"menu",defaults:s=>({onExecute:(F,Z)=>{F.getSystem().getByUid(s.uid).each(ue=>{s.onItemExecute(ue,F,Z)})}})}),oN()]),one=(s,F,Z,ue)=>{const we=$t=>{as.getCurrent($t).each(on=>{ri.highlightFirst(on),Li.focusIn(on)})},Be=$t=>{yP(s,R,$t,ue,we,Xh.HighlightMenuAndItem).get(v)},qe=$t=>(Be($t),I.some(!0)),ft=$t=>{const on=Ph($t,s,"button");return Fp(on),I.some(!0)},gt={...pl([Ll(($t,on)=>{Fo($t,s,"aria-descriptor").each(wn=>{const Mn=fi("aria");fr(wn.element,"id",Mn),fr($t.element,"aria-describedby",Mn)})})]),...T6(I.some(Be))},At={repositionMenus:$t=>{za.isOn($t)&&_P($t)}};return{uid:s.uid,dom:s.dom,components:F,apis:At,eventOrder:{...s.eventOrder,[cp()]:["disabling","toggling","alloy.base.behaviour"]},events:gt,behaviours:Rf(s.splitDropdownBehaviours,[lu.config({others:{sandbox:$t=>{const on=Ph($t,s,"arrow");return xP(s,$t,{onOpen:()=>{za.on(on),za.on($t)},onClose:()=>{za.off(on),za.off($t)}})}}}),Li.config({mode:"special",onSpace:ft,onEnter:ft,onDown:qe}),oa.config({}),za.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:s.role.getOr("button"),"aria-haspopup":!0}}}},j8=ch({name:"SplitDropdown",configFields:tne(),partFields:BU(),factory:one,apis:{repositionMenus:(s,F)=>s.repositionMenus(F)}}),DR=s=>({isEnabled:()=>!ta.isDisabled(s),setEnabled:F=>ta.set(s,!F),setText:F=>Ri(s,Eg,{text:F}),setIcon:F=>Ri(s,F2,{icon:F})}),ine=s=>({setActive:F=>{za.set(s,F)},isActive:()=>za.isOn(s),isEnabled:()=>!ta.isDisabled(s),setEnabled:F=>ta.set(s,!F),setText:F=>Ri(s,Eg,{text:F}),setIcon:F=>Ri(s,F2,{icon:F})}),BR=(s,F)=>s.map(Z=>({"aria-label":F.translate(Z)})).getOr({}),zR=fi("focus-button"),FR=(s,F,Z,ue,we,Be)=>{const qe=F.map(gt=>qs(A$(gt,"tox-tbtn",we))),ft=s.map(gt=>qs(sx(gt,we.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(F.isSome()?["tox-tbtn--select"]:[]),attributes:{...BR(Z,we),...a(Be)?{"data-mce-name":Be}:{}}},components:jw([ft.map(gt=>gt.asSpec()),qe.map(gt=>gt.asSpec())]),eventOrder:{[Oh()]:["focusing","alloy.base.behaviour",ax],[zd()]:[ax,"toolbar-group-button-events"]},buttonBehaviours:Bo([s1.toolbarButton(we.isDisabled),df(),Ca(ax,[Ll((gt,At)=>s9(gt)),fo(Eg,(gt,At)=>{qe.bind($t=>$t.getOpt(gt)).each($t=>{da.set($t,[ro(we.translate(At.event.text))])})}),fo(F2,(gt,At)=>{ft.bind($t=>$t.getOpt(gt)).each($t=>{da.set($t,[sx(At.event.icon,we.icons)])})}),fo(Oh(),(gt,At)=>{At.event.prevent(),Sa(gt,zR)})])].concat(ue.getOr([])))}},ane=(s,F,Z,ue,we)=>{const Be=F.shared,qe=xi(v),ft={toolbarButtonBehaviours:[],getApi:DR,onSetup:s.onSetup},gt=[Ca("toolbar-group-button-events",[nx(ft,qe),Ih(ft,qe)])];return $2.sketch({lazySink:Be.getSink,fetch:()=>uh.nu(At=>{At(oe(Z(s.items),Mk))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:FR(s.icon,s.text,s.tooltip,I.some(gt),Be.providers,we),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:ue}}}})},zU=(s,F,Z,ue)=>{var we;const Be=xi(v),qe=FR(s.icon,s.text,s.tooltip,I.none(),Z,ue);return Vd.sketch({dom:qe.dom,components:qe.components,eventOrder:a9,buttonBehaviours:{...Bo([Ca("toolbar-button-events",[RK({onAction:s.onAction,getApi:F.getApi}),nx(F,Be),Ih(F,Be)]),...s.tooltip.map(ft=>Td.config(Z.tooltips.getConfig({tooltipText:Z.translate(ft)+s.shortcut.map(gt=>` (${vC(gt)})`).getOr("")}))).toArray(),s1.toolbarButton(()=>!s.enabled||Z.isDisabled()),df()].concat(F.toolbarButtonBehaviours)),[ax]:(we=qe.buttonBehaviours)===null||we===void 0?void 0:we[ax]}})},A4=(s,F,Z)=>FU(s,F,[],Z),FU=(s,F,Z,ue)=>zU(s,{toolbarButtonBehaviours:Z.length>0?[Ca("toolbarButtonWith",Z)]:[],getApi:DR,onSetup:s.onSetup},F,ue),sne=(s,F,Z)=>NU(s,F,[],Z),NU=(s,F,Z,ue)=>zU(s,{toolbarButtonBehaviours:[da.config({}),za.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(Z.length>0?[Ca("toolbarToggleButtonWith",Z)]:[]),getApi:ine,onSetup:s.onSetup},F,ue),lne=(s,F,Z)=>ue=>uh.nu(we=>F.fetch(we)).map(we=>I.from(o4(nl(pP(fi("menu-value"),we,Be=>{F.onItemAction(s(ue),Be)},F.columns,F.presets,r1.CLOSE_ON_EXECUTE,F.select.getOr(D),Z),{movement:AC(F.columns,F.presets),menuBehaviours:K3.unnamedEvents(F.columns!=="auto"?[]:[Ll((Be,qe)=>{pC(Be,4,L7(F.presets)).each(({numRows:ft,numColumns:gt})=>{Li.setGridSize(Be,ft,gt)})})])})))),cne=(s,F,Z)=>{const ue=xi(s.tooltip.getOr("")),we=ft=>({isEnabled:()=>!ta.isDisabled(ft),setEnabled:gt=>ta.set(ft,!gt),setIconFill:(gt,At)=>{aa(ft.element,`svg path[class="${gt}"], rect[class="${gt}"]`).each($t=>{fr($t,"fill",At)})},setActive:gt=>{fr(ft.element,"aria-pressed",gt),aa(ft.element,"span").each(At=>{ft.getSystem().getByDom(At).each($t=>za.set($t,gt))})},isActive:()=>aa(ft.element,"span").exists(gt=>ft.getSystem().getByDom(gt).exists(za.isOn)),setText:gt=>aa(ft.element,"span").each(At=>ft.getSystem().getByDom(At).each($t=>Ri($t,Eg,{text:gt}))),setIcon:gt=>aa(ft.element,"span").each(At=>ft.getSystem().getByDom(At).each($t=>Ri($t,F2,{icon:gt}))),setTooltip:gt=>{const At=F.providers.translate(gt);fr(ft.element,"aria-label",At),ue.set(gt)}}),Be=xi(v),qe={getApi:we,onSetup:s.onSetup};return j8.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...BR(s.tooltip,F.providers),...a(Z)?{"data-mce-name":Z}:{}}},onExecute:ft=>{const gt=we(ft);gt.isEnabled()&&s.onAction(gt)},onItemExecute:(ft,gt,At)=>{},splitDropdownBehaviours:Bo([s1.splitButton(F.providers.isDisabled),df(),Ca("split-dropdown-events",[Ll((ft,gt)=>s9(ft)),fo(zR,oa.focus),nx(qe,Be),Ih(qe,Be)]),u4.config({}),...s.tooltip.map(ft=>Td.config({...F.providers.tooltips.getConfig({tooltipText:F.providers.translate(ft),onShow:gt=>{if(ue.get()!==ft){const At=F.providers.translate(ue.get());Td.setComponents(gt,F.providers.tooltips.getComponents({tooltipText:At}))}}})})).toArray()]),eventOrder:{[zd()]:["alloy.base.behaviour","split-dropdown-events","tooltipping"],[fp()]:["split-dropdown-events","tooltipping"]},toggleClass:"tox-tbtn--enabled",lazySink:F.getSink,fetch:lne(we,s,F.providers),parts:{menu:N5(!1,s.columns,s.presets)},components:[j8.parts.button(FR(s.icon,s.text,I.none(),I.some([za.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),F.providers)),j8.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:Az("chevron-down",F.providers.icons)},buttonBehaviours:Bo([s1.splitButton(F.providers.isDisabled),df(),k7()])}),j8.parts["aria-descriptor"]({text:F.providers.translate("To open the popup, press Shift+Enter")})]})},une=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],Lk=(s,F)=>(Z,ue,we,Be)=>{const qe=s(Z).mapError(ft=>sn(ft)).getOrDie();return F(qe,ue,we,Be)},fne={button:Lk(i1,(s,F,Z,ue)=>A4(s,F.shared.providers,ue)),togglebutton:Lk(uC,(s,F,Z,ue)=>sne(s,F.shared.providers,ue)),menubutton:Lk($V,(s,F,Z,ue)=>gk(s,"tox-tbtn",F,I.none(),!1,ue)),splitbutton:Lk(VV,(s,F,Z,ue)=>cne(s,F.shared,ue)),grouptoolbarbutton:Lk(Tee,(s,F,Z,ue)=>{const we=Z.ui.registry.getAll().buttons,Be=ft=>Q8(Z,{buttons:we,toolbar:ft,allowToolbarGroups:!1},F,I.none()),qe={[s0]:F.shared.header.isPositionedAtTop()?Sg.TopToBottom:Sg.BottomToTop};switch(Dw(Z)){case Hm.floating:return ane(s,F,Be,qe,ue);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},NR=(s,F,Z,ue)=>Ge(fne,s.type).fold(()=>(console.error("skipping button defined by",s),I.none()),we=>I.some(we(s,F,Z,ue))),$U={styles:Jte,fontsize:Zte,fontsizeinput:Gte,fontfamily:PR,blocks:Rte,align:Pte},dne=s=>{const F=oe(une,Z=>{const ue=me(Z.items,we=>ht(s,we)||ht($U,we));return{name:Z.name,items:ue}});return me(F,Z=>Z.items.length>0)},VU=s=>{const F=s.split("|");return oe(F,Z=>({items:Z.trim().split(" ")}))},UU=s=>m(s,F=>ht(F,"name")&&ht(F,"items")),hne=s=>{const F=s.toolbar,Z=s.buttons;return F===!1?[]:F===void 0||F===!0?dne(Z):n(F)?VU(F):UU(F)?F:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},pne=(s,F,Z,ue,we,Be)=>Ge(F,Z.toLowerCase()).orThunk(()=>Be.bind(qe=>Oe(qe,ft=>Ge(F,ft+Z.toLowerCase())))).fold(()=>Ge($U,Z.toLowerCase()).map(qe=>qe(s,we)),qe=>qe.type==="grouptoolbarbutton"&&!ue?(console.warn(`Ignoring the '${Z}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),I.none()):NR(qe,we,s,Z.toLowerCase())),Q8=(s,F,Z,ue)=>{const we=hne(F),Be=oe(we,qe=>{const ft=ye(qe.items,gt=>gt.trim().length===0?[]:pne(s,F.buttons,gt,F.allowToolbarGroups,Z,ue).toArray());return{title:I.from(s.translate(qe.name)),items:ft}});return me(Be,qe=>qe.items.length>0)},jU=(s,F,Z,ue)=>{const we=F.mainUi.outerContainer,Be=Z.toolbar,qe=Z.buttons;if(m(Be,n)){const ft=Be.map(gt=>{const At={toolbar:gt,buttons:qe,allowToolbarGroups:Z.allowToolbarGroups};return Q8(s,At,ue,I.none())});Yl.setToolbars(we,ft)}else Yl.setToolbar(we,Q8(s,Z,ue,I.none()))},QU=rf(),mne=QU.os.isiOS()&&QU.os.version.major<=12,HU=(s,F)=>{const{uiMotherships:Z}=F,ue=s.dom;let we=s.getWin();const Be=s.getDoc().documentElement,qe=xi(Ws(we.innerWidth,we.innerHeight)),ft=xi(Ws(Be.offsetWidth,Be.offsetHeight)),gt=()=>{const yn=qe.get();(yn.left!==we.innerWidth||yn.top!==we.innerHeight)&&(qe.set(Ws(we.innerWidth,we.innerHeight)),e4(s))},At=()=>{const yn=s.getDoc().documentElement,wn=ft.get();(wn.left!==yn.offsetWidth||wn.top!==yn.offsetHeight)&&(ft.set(Ws(yn.offsetWidth,yn.offsetHeight)),e4(s))},$t=yn=>{MF(s,yn)};ue.bind(we,"resize",gt),ue.bind(we,"scroll",$t);const on=Kx(Pt.fromDom(s.getBody()),"load",At);s.on("hide",()=>{q(Z,yn=>{ko(yn.element,"display","none")})}),s.on("show",()=>{q(Z,yn=>{ga(yn.element,"display")})}),s.on("NodeChange",At),s.on("remove",()=>{on.unbind(),ue.unbind(we,"resize",gt),ue.unbind(we,"scroll",$t),we=null})},gne=(s,F,Z)=>{C2(s)&&G0(Z.mainUi.mothership.element,Z.popupUi.mothership),qT(F,Z.dialogUi.mothership)};var vne=Object.freeze({__proto__:null,render:(s,F,Z,ue,we)=>{const{mainUi:Be,uiMotherships:qe}=F,ft=xi(0),gt=Be.outerContainer;Tte(s);const At=Pt.fromDom(we.targetNode),$t=nr(vr(At));G0(At,Be.mothership),gne(s,$t,F),s.on("SkinLoaded",()=>{Yl.setSidebar(gt,Z.sidebar,dz(s)),jU(s,F,Z,ue),ft.set(s.getWin().innerWidth),Yl.setMenubar(gt,V8(s,Z)),Yl.setViews(gt,Z.views),HU(s,F)});const on=Yl.getSocket(gt).getOrDie("Could not find expected socket element");if(mne){ra(on.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const Xn=wK(()=>{s.dispatch("ScrollContent")},20),Br=wd(on.element,"scroll",Xn.throttle);s.on("remove",Br.unbind)}mC(s,F),s.addCommand("ToggleSidebar",(Xn,Br)=>{Yl.toggleSidebar(gt,Br),s.dispatch("ToggleSidebar")}),s.addQueryValueHandler("ToggleSidebar",()=>{var Xn;return(Xn=Yl.whichSidebar(gt))!==null&&Xn!==void 0?Xn:""}),s.addCommand("ToggleView",(Xn,Br)=>{if(Yl.toggleView(gt,Br)){const or=gt.element;Be.mothership.broadcastOn([K0()],{target:or}),q(qe,Mr=>{Mr.broadcastOn([K0()],{target:or})}),O(Yl.whichView(gt))&&(s.focus(),s.nodeChanged(),Yl.refreshToolbar(gt))}}),s.addQueryValueHandler("ToggleView",()=>{var Xn;return(Xn=Yl.whichView(gt))!==null&&Xn!==void 0?Xn:""});const yn=Dw(s),wn=()=>{Yl.refreshToolbar(F.mainUi.outerContainer)};(yn===Hm.sliding||yn===Hm.floating)&&s.on("ResizeWindow ResizeEditor ResizeContent",()=>{const Xn=s.getWin().innerWidth;Xn!==ft.get()&&(wn(),ft.set(Xn))});const Mn={setEnabled:Xn=>{W5(F,!Xn)},isEnabled:()=>!ta.isDisabled(gt)};return{iframeContainer:on.element.dom,editorContainer:gt.element.dom,api:Mn}}});const ZU=s=>/^[0-9\.]+(|px)$/i.test(""+s)?I.some(parseInt(""+s,10)):I.none(),M4=s=>h(s)?s+"px":s,H8=(s,F,Z)=>{const ue=F.filter(Be=>ss>Be);return ue.or(we).getOr(s)},Z8=s=>{const F=YE(s),Z=E6(s),ue=XE(s);return ZU(F).map(we=>H8(we,Z,ue))},q8=s=>Z8(s).getOr(YE(s)),$R=s=>{const F=Iw(s),Z=Z3(s),ue=T5(s);return ZU(F).map(we=>H8(we,Z,ue))},yne=s=>$R(s).getOr(Iw(s)),{ToolbarLocation:VR,ToolbarMode:qU}=QW,bne=40,xne=(s,F,Z,ue,we)=>{const{mainUi:Be,uiMotherships:qe}=Z,ft=Lw.DOM,gt=q3(s),At=W3(s),$t=T5(s).or($R(s)),on=ue.shared.header,yn=on.isPositionedAtTop,wn=150,Mn=Dw(s),Xn=Mn===qU.sliding||Mn===qU.floating,Br=xi(!1),or=()=>Br.get()&&!s.removed,Mr=Ha=>Xn?Ha.fold(x(0),Ho=>Ho.components().length>1?Ql(Ho.components()[1].element):0):0,kr=Ha=>{switch(KE(s)){case VR.auto:const Ho=Yl.getToolbar(Be.outerContainer),wi=Mr(Ho),_a=Ql(Ha.element)-wi,Ki=Ya(F);if(Ki.y>_a)return"top";{const va=Pn(F),Cl=Math.max(va.dom.scrollHeight,Ql(va));return Ki.bottom{we.on(Ho=>{Dl.setModes(Ho,[Ha]),on.setDockingMode(Ha);const wi=yn()?Sg.TopToBottom:Sg.BottomToTop;fr(Ho.element,s0,wi)})},Xr=()=>{we.on(Ha=>{const Ho=$t.getOrThunk(()=>yh().width-Cu(F).left-10);ko(Ha.element,"max-width",Ho+"px")})},No=(Ha,Ho)=>{we.on(wi=>{const _a=Yl.getToolbar(Be.outerContainer),Ki=Mr(_a),ji=Ya(F),va=Jo(s,Be.outerContainer.element),Cl=()=>va.fold(()=>ji.x,dh=>{const Fg=Ya(dh);return so(dh,Vr())?ji.x:ji.x-Fg.x}),Ns=()=>va.fold(()=>yn()?Math.max(ji.y-Ql(wi.element)+Ki,0):ji.bottom,dh=>{var Fg;const w0=Ya(dh),im=(Fg=dh.dom.scrollTop)!==null&&Fg!==void 0?Fg:0,mO=so(dh,Vr())?Math.max(ji.y-Ql(wi.element)+Ki,0):ji.y-w0.y+im-Ql(wi.element)+Ki;return yn()?mO:ji.bottom}),zh=Cl(),zg=_t(Ha,Math.ceil(Be.outerContainer.element.dom.getBoundingClientRect().width)).filter(dh=>dh>wn).map(dh=>{const Fg=Ho.getOr(Hl()),w0=window.innerWidth-(zh-Fg.left),im=Math.max(Math.min(dh,w0),wn);return w0C2(Ha)?n0(Ho):I.none(),ho=()=>{q(qe,Ha=>{Ha.broadcastOn([Qb()],{})})},Ci=()=>!gt&&(pc(Be.outerContainer.element).left+pu(Be.outerContainer.element)>=window.innerWidth-bne||Na(Be.outerContainer.element,"width").isSome())?(ko(Be.outerContainer.element,"position","absolute"),ko(Be.outerContainer.element,"left","0px"),ga(Be.outerContainer.element,"width"),!0):!1,mi=Ha=>{if(!or())return;gt||Xr();const Ho=Hl(),wi=gt?!1:Ci();if(Xn&&Yl.refreshToolbar(Be.outerContainer),!gt){const _a=Hl(),Ki=_t(Ho.left!==_a.left,Ho);No(wi,Ki),Ki.each(ji=>{Cs(ji.left,_a.top)})}At&&we.on(Ha),ho()},qi=()=>gt||!At||!or()?!1:we.get().exists(Ha=>{const Ho=on.getDockingMode(),wi=kr(Ha);return wi!==Ho?(yo(wi),!0):!1});return{isVisible:or,isPositionedAtTop:yn,show:()=>{Br.set(!0),ko(Be.outerContainer.element,"display","flex"),ft.addClass(s.getBody(),"mce-edit-focus"),q(qe,Ha=>{ga(Ha.element,"display")}),qi(),C2(s)?mi(Ha=>Dl.isDocked(Ha)?Dl.reset(Ha):Dl.refresh(Ha)):mi(Dl.refresh)},hide:()=>{Br.set(!1),ko(Be.outerContainer.element,"display","none"),ft.removeClass(s.getBody(),"mce-edit-focus"),q(qe,Ha=>{ko(Ha.element,"display","none")})},update:mi,updateMode:()=>{qi()&&mi(Dl.reset)},repositionPopups:ho}},Ik=(s,F)=>{const Z=Ya(s);return{pos:F?Z.y:Z.bottom,bounds:Z}},WU=(s,F,Z,ue)=>{const we=xi(Ik(F,Z.isPositionedAtTop())),Be=At=>{const{pos:$t,bounds:on}=Ik(F,Z.isPositionedAtTop()),{pos:yn,bounds:wn}=we.get(),Mn=on.height!==wn.height||on.width!==wn.width;we.set({pos:$t,bounds:on}),Mn&&e4(s,At),Z.isVisible()&&(yn!==$t?Z.update(Dl.reset):Mn&&(Z.updateMode(),Z.repositionPopups()))};ue||(s.on("activate",Z.show),s.on("deactivate",Z.hide)),s.on("SkinLoaded ResizeWindow",()=>Z.update(Dl.reset)),s.on("NodeChange keydown",At=>{requestAnimationFrame(()=>Be(At))});let qe=0;const ft=dk(()=>Z.update(Dl.refresh),33);s.on("ScrollWindow",()=>{const At=Hl().left;At!==qe&&(qe=At,ft.throttle()),Z.updateMode()}),C2(s)&&s.on("ElementScroll",At=>{Z.update(Dl.refresh)});const gt=js();gt.set(Kx(Pt.fromDom(s.getBody()),"load",At=>Be(At.raw))),s.on("remove",()=>{gt.clear()})};var YU=Object.freeze({__proto__:null,render:(s,F,Z,ue,we)=>{const{mainUi:Be}=F,qe=os(),ft=Pt.fromDom(we.targetNode),gt=xne(s,ft,F,ue,qe),At=oz(s);Cte(s);const $t=()=>{if(qe.isSet()){gt.show();return}qe.set(Yl.getHeader(Be.outerContainer).getOrDie());const yn=A5(s);C2(s)?(G0(ft,Be.mothership),G0(ft,F.popupUi.mothership)):qT(yn,Be.mothership),qT(yn,F.dialogUi.mothership);const wn=()=>{jU(s,F,Z,ue),Yl.setMenubar(Be.outerContainer,V8(s,Z)),gt.show(),WU(s,ft,gt,At),s.nodeChanged()};At?s.once("SkinLoaded",wn):wn()};s.on("show",$t),s.on("hide",gt.hide),At||(s.on("focus",$t),s.on("blur",gt.hide)),s.on("init",()=>{(s.hasFocus()||At)&&$t()}),mC(s,F);const on={show:$t,hide:gt.hide,setEnabled:yn=>{W5(F,!yn)},isEnabled:()=>!ta.isDisabled(Be.outerContainer)};return{editorContainer:Be.outerContainer.element.dom,api:on}}});const XU=()=>{const s=os(),F=os(),Z=os();return{dialogUi:s,popupUi:F,mainUi:Z,getUiMotherships:()=>{const Be=s.get().map(ft=>ft.mothership),qe=F.get().map(ft=>ft.mothership);return Be.fold(()=>qe.toArray(),ft=>qe.fold(()=>[ft],gt=>so(ft.element,gt.element)?[ft]:[ft,gt]))},lazyGetInOuterOrDie:(Be,qe)=>()=>Z.get().bind(ft=>qe(ft.outerContainer)).getOrDie(`Could not find ${Be} element in OuterContainer`)}},wne="contexttoolbar-show",UR="contexttoolbar-hide",One=s=>({hide:()=>Sa(s,L0()),getValue:()=>hi.getValue(s)}),GU=(s,F)=>fo(t8,(Z,ue)=>{const we=s.get(Z),Be=One(we);F.onAction(Be,ue.event.buttonApi)}),Sne=(s,F,Z)=>{const{primary:ue,...we}=F.original,Be=Nt(i1({...we,type:"button",onAction:v}));return FU(Be,Z,[GU(s,F)])},kne=(s,F,Z)=>{const{primary:ue,...we}=F.original,Be=Nt(uC({...we,type:"togglebutton",onAction:v}));return NU(Be,Z,[GU(s,F)])},Tne=s=>s.type==="contextformtogglebutton",Dk=(s,F,Z)=>Tne(F)?kne(s,F,Z):Sne(s,F,Z),Cne=(s,F,Z)=>{const ue=oe(F,qe=>qs(Dk(s,qe,Z)));return{asSpecs:()=>oe(ue,qe=>qe.asSpec()),findPrimary:qe=>Oe(F,(ft,gt)=>ft.primary?I.from(ue[gt]).bind(At=>At.getOpt(qe)).filter(E(ta.isDisabled)):I.none())}},KU=(s,F)=>{const Z=s.label.fold(()=>({}),Be=>({"aria-label":Be})),ue=qs(Nw.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:s.initValue(),inputAttributes:Z,selectOnFocus:!0,inputBehaviours:Bo([Li.config({mode:"special",onEnter:Be=>we.findPrimary(Be).map(qe=>(Fp(qe),!0)),onLeft:(Be,qe)=>(qe.cut(),I.none()),onRight:(Be,qe)=>(qe.cut(),I.none())})])})),we=Cne(ue,s.commands,F);return[{title:I.none(),items:[ue.asSpec()]},{title:I.none(),items:we.asSpecs()}]},JU={renderContextForm:(s,F,Z)=>z8({type:s,uid:fi("context-toolbar"),initGroups:KU(F,Z),onEscape:I.none,cyclicKeying:!0,providers:Z}),buildInitGroups:KU},ej=(s,F,Z)=>F.bottom-s.y>=Z&&s.bottom-F.y>=Z,tj=s=>{const F=s.getBoundingClientRect();if(F.height<=0&&F.width<=0){const Z=zn(Pt.fromDom(s.startContainer),s.startOffset).element;return(_r(Z)?br(Z):I.some(Z)).filter(Kn).map(we=>we.dom.getBoundingClientRect()).getOr(F)}else return F},jR=s=>{const F=s.selection.getRng(),Z=tj(F);if(s.inline){const ue=Hl();return ms(ue.left+Z.left,ue.top+Z.top,Z.width,Z.height)}else{const ue=_l(Pt.fromDom(s.getBody()));return ms(ue.x+Z.left,ue.y+Z.top,Z.width,Z.height)}},Ane=(s,F)=>F.filter(Z=>Er(Z)&&Wn(Z)).map(_l).getOrThunk(()=>jR(s)),Mne=(s,F,Z)=>{const ue=Math.max(s.x+Z,F.x),we=Math.min(s.right-Z,F.right);return{x:ue,width:we-ue}},Ene=(s,F,Z,ue,we,Be)=>{const qe=Pt.fromDom(s.getContainer()),ft=aa(qe,".tox-editor-header").getOr(qe),gt=Ya(ft),At=gt.y>=F.bottom,$t=ue&&!At;if(s.inline&&$t)return{y:Math.max(gt.bottom+Be,Z.y),bottom:Z.bottom};if(s.inline&&!$t)return{y:Z.y,bottom:Math.min(gt.y-Be,Z.bottom)};const on=we==="line"?Ya(qe):F;return $t?{y:Math.max(gt.bottom+Be,Z.y),bottom:Math.min(on.bottom-Be,Z.bottom)}:{y:Math.max(on.y+Be,Z.y),bottom:Math.min(gt.y-Be,Z.bottom)}},nj=(s,F,Z,ue=0)=>{const we=yh(window),Be=Ya(Pt.fromDom(s.getContentAreaContainer())),qe=z6(s)||N6(s)||Bw(s),{x:ft,width:gt}=Mne(Be,we,ue);if(s.inline&&!qe)return ms(ft,we.y,gt,we.height);{const At=F.header.isPositionedAtTop(),{y:$t,bottom:on}=Ene(s,Be,we,At,Z,ue);return ms(ft,$t,gt,on-$t)}},V2=12,QR={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},rj={maxHeightFunction:W0(),maxWidthFunction:cR()},Pne=(s,F)=>{const Z=s.selection.getRng(),ue=zn(Pt.fromDom(Z.startContainer),Z.startOffset);return Z.startContainer===Z.endContainer&&Z.startOffset===Z.endOffset-1&&so(ue.element,F)},oj=(s,F,Z)=>{const ue=Na(s,"position");ko(s,"position",F);const we=Z(s);return ue.each(Be=>ko(s,"position",Be)),we},W8=s=>s==="node",ij=(s,F,Z,ue,we)=>{const Be=jR(s),qe=ue.lastElement().exists(ft=>so(Z,ft));if(Pne(s,Z))return qe?I9:f1;if(qe)return oj(F,ue.getMode(),()=>ej(Be,Ya(F),-20)&&!ue.isReposition()?DJ:I9);{const ft=ue.getMode()==="fixed"?we.y+Hl().top:we.y,gt=Ql(F)+V2;return ft+gt<=Be.y?f1:xk}},aj=(s,F,Z,ue)=>{const we=gt=>(At,$t,on,yn,wn)=>{const Mn=ij(s,yn,gt,Z,wn),Xn={...At,y:wn.y,height:wn.height};return{...Mn(Xn,$t,on,yn,wn),alwaysFit:!0}},Be=gt=>W8(ue)?[we(gt)]:[];return F?{onLtr:gt=>[Pc,Ec,Qc,Hc,_s,Jc].concat(Be(gt)),onRtl:gt=>[Pc,Qc,Ec,_s,Hc,Jc].concat(Be(gt))}:{onLtr:gt=>[Jc,Pc,Hc,Ec,_s,Qc].concat(Be(gt)),onRtl:gt=>[Jc,Pc,_s,Qc,Hc,Ec].concat(Be(gt))}},Rne=(s,F,Z,ue)=>F==="line"?{bubble:pp(V2,0,QR),layouts:{onLtr:()=>[W1],onRtl:()=>[uy]},overrides:rj}:{bubble:pp(0,V2,QR,1/V2),layouts:aj(s,Z,ue,F),overrides:rj},U2=(s,F)=>{const Z=me(F,Be=>Be.predicate(s.dom)),{pass:ue,fail:we}=ee(Z,Be=>Be.type==="contexttoolbar");return{contextToolbars:ue,contextForms:we}},Y8=s=>{if(s.length<=1)return s;{const F=Be=>te(s,qe=>qe.position===Be),Z=Be=>me(s,qe=>qe.position===Be),ue=F("selection"),we=F("node");if(ue||we)if(we&&ue){const Be=Z("node"),qe=oe(Z("selection"),ft=>({...ft,position:"node"}));return Be.concat(qe)}else return Z(ue?"selection":"node");else return Z("line")}},X8=s=>{if(s.length<=1)return s;{const F=ue=>ce(s,we=>we.position===ue);return F("selection").orThunk(()=>F("node")).orThunk(()=>F("line")).map(ue=>ue.position).fold(()=>[],ue=>me(s,we=>we.position===ue))}},HR=(s,F,Z)=>{const ue=U2(s,F);if(ue.contextForms.length>0)return I.some({elem:s,toolbars:[ue.contextForms[0]]});{const we=U2(s,Z);if(we.contextForms.length>0)return I.some({elem:s,toolbars:[we.contextForms[0]]});if(ue.contextToolbars.length>0||we.contextToolbars.length>0){const Be=Y8(ue.contextToolbars.concat(we.contextToolbars));return I.some({elem:s,toolbars:Be})}else return I.none()}},ZR=(s,F,Z)=>s(F)?I.none():cg(F,ue=>{if(Kn(ue)){const{contextToolbars:we,contextForms:Be}=U2(ue,Z.inNodeScope),qe=Be.length>0?Be:X8(we);return qe.length>0?I.some({elem:ue,toolbars:qe}):I.none()}else return I.none()},s),sj=(s,F)=>{const Z=Pt.fromDom(F.getBody()),ue=qe=>so(qe,Z),we=qe=>!ue(qe)&&!So(Z,qe),Be=Pt.fromDom(F.selection.getNode());return we(Be)?I.none():HR(Be,s.inNodeScope,s.inEditorScope).orThunk(()=>ZR(ue,Be,s))},G8=(s,F)=>{const Z={},ue=[],we=[],Be={},qe={},ft=($t,on)=>{const yn=Nt(DY(on));Z[$t]=yn,yn.launch.map(wn=>{Be["form:"+$t]={...on.launch,type:wn.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{F(yn)}}}),yn.scope==="editor"?we.push(yn):ue.push(yn),qe[$t]=yn},gt=($t,on)=>{h0(on).each(yn=>{on.scope==="editor"?we.push(yn):ue.push(yn),qe[$t]=yn})},At=ke(s);return q(At,$t=>{const on=s[$t];on.type==="contextform"?ft($t,on):on.type==="contexttoolbar"&>($t,on)}),{forms:Z,inNodeScope:ue,inEditorScope:we,lookupTable:qe,formNavigators:Be}},qR=fi("forward-slide"),WR=fi("backward-slide"),Bk=fi("change-slide-event"),YR="tox-pop--resizing",lj=s=>{const F=xi([]);return hc.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:Z=>{F.set([]),hc.getContent(Z).each(ue=>{ga(ue.element,"visibility")}),fc(Z.element,YR),ga(Z.element,"width")},inlineBehaviours:Bo([Ca("context-toolbar-events",[Wv(sp(),(Z,ue)=>{ue.event.raw.propertyName==="width"&&(fc(Z.element,YR),ga(Z.element,"width"))}),fo(Bk,(Z,ue)=>{const we=Z.element;ga(we,"width");const Be=cc(we);hc.setContent(Z,ue.event.contents),Sl(we,YR);const qe=cc(we);ko(we,"width",Be+"px"),hc.getContent(Z).each(ft=>{ue.event.focus.bind(gt=>(xd(gt),_d(we))).orThunk(()=>(Li.focusIn(ft),hp(vr(we))))}),setTimeout(()=>{ko(Z.element,"width",qe+"px")},0)}),fo(qR,(Z,ue)=>{hc.getContent(Z).each(we=>{F.set(F.get().concat([{bar:we,focus:hp(vr(Z.element))}]))}),Ri(Z,Bk,{contents:ue.event.forwardContents,focus:I.none()})}),fo(WR,(Z,ue)=>{Ve(F.get()).each(we=>{F.set(F.get().slice(0,F.get().length-1)),Ri(Z,Bk,{contents:na(we.bar),focus:we.focus})})})]),Li.config({mode:"special",onEscape:Z=>Ve(F.get()).fold(()=>s.onEscape(),ue=>(Sa(Z,WR),I.some(!0)))})]),lazySink:()=>Hi.value(s.sink)})},XR="tox-pop--transition",Lne=(s,F,Z,ue)=>{const we=ue.backstage,Be=we.shared,qe=rf().deviceType.isTouch,ft=os(),gt=os(),At=os(),$t=vi(lj({sink:Z,onEscape:()=>(s.focus(),I.some(!0))})),on=()=>{const mi=At.get().getOr("node"),qi=W8(mi)?1:0;return nj(s,Be,mi,qi)},yn=()=>!s.removed&&!(qe()&&we.isContextMenuOpen()),wn=mi=>wt(en(mi,ft.get(),so),!0),Mn=()=>{if(yn()){const mi=on(),qi=wt(At.get(),"node")?Ane(s,ft.get()):jR(s);return mi.height<=0||!ej(qi,mi,.01)}else return!0},Xn=()=>{ft.clear(),gt.clear(),At.clear(),hc.hide($t)},Br=()=>{if(hc.isOpen($t)){const mi=$t.element;ga(mi,"display"),Mn()?ko(mi,"display","none"):(gt.set(0),hc.reposition($t))}},or=mi=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[mi],behaviours:Bo([Li.config({mode:"acyclic"}),Ca("pop-dialog-wrap-events",[Ll(qi=>{s.shortcuts.add("ctrl+F9","focus statusbar",()=>Li.focusIn(qi))}),Sh(qi=>{s.shortcuts.remove("ctrl+F9")})])])}),Mr=iu(()=>G8(F,mi=>{const qi=Xr([mi]);Ri($t,qR,{forwardContents:or(qi)})})),kr=(mi,qi)=>Q8(s,{buttons:mi,toolbar:qi.items,allowToolbarGroups:!1},ue.backstage,I.some(["form:"])),yo=(mi,qi)=>JU.buildInitGroups(mi,qi),Xr=mi=>{const{buttons:qi}=s.ui.registry.getAll(),Fi=Mr(),Os={...qi,...Fi.formNavigators},vs=Dw(s)===Hm.scrolling?Hm.scrolling:Hm.default,Ha=ve(oe(mi,Ho=>Ho.type==="contexttoolbar"?kr(Os,Ho):yo(Ho,Be.providers)));return z8({type:vs,uid:fi("context-toolbar"),initGroups:Ha,onEscape:I.none,cyclicKeying:!0,providers:Be.providers})},No=(mi,qi)=>{const Fi=mi==="node"?Be.anchors.node(qi):Be.anchors.cursor(),Os=Rne(s,mi,qe(),{lastElement:ft.get,isReposition:()=>wt(gt.get(),0),getMode:()=>ed.getMode(Z)});return nl(Fi,Os)},Jo=(mi,qi)=>{if(Ci.cancel(),!yn())return;const Fi=Xr(mi),Os=mi[0].position,vs=No(Os,qi);At.set(Os),gt.set(1);const Ha=$t.element;ga(Ha,"display"),wn(qi)||(fc(Ha,XR),ed.reset(Z,$t)),hc.showWithinBounds($t,or(Fi),{anchor:vs,transition:{classes:[XR],mode:"placement"}},()=>I.some(on())),qi.fold(ft.clear,ft.set),Mn()&&ko(Ha,"display","none")};let ho=!1;const Ci=dk(()=>{if(!(!s.hasFocus()||s.removed||ho))if($l($t.element,XR))Ci.throttle();else{const mi=Mr();sj(mi,s).fold(Xn,qi=>{Jo(qi.toolbars,I.some(qi.elem))})}},17);s.on("init",()=>{s.on("remove",Xn),s.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",Br),s.on("click keyup focus SetContent",Ci.throttle),s.on(UR,Xn),s.on(wne,mi=>{const qi=Mr();Ge(qi.lookupTable,mi.toolbarKey).each(Fi=>{Jo([Fi],_t(mi.target!==s,mi.target)),hc.getContent($t).each(Li.focusIn)})}),s.on("focusout",mi=>{S5.setEditorTimeout(s,()=>{_d(Z.element).isNone()&&_d($t.element).isNone()&&Xn()},0)}),s.on("SwitchMode",()=>{s.mode.isReadOnly()&&Xn()}),s.on("ExecCommand",({command:mi})=>{mi.toLowerCase()==="toggleview"&&Xn()}),s.on("AfterProgressState",mi=>{mi.state?Xn():s.hasFocus()&&Ci.throttle()}),s.on("dragstart",()=>{ho=!0}),s.on("dragend drop",()=>{ho=!1}),s.on("NodeChange",mi=>{_d($t.element).fold(Ci.throttle,v)})})},K8=s=>{q([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],Z=>{s.ui.registry.addToggleButton(Z.name,{tooltip:Z.text,icon:Z.icon,onAction:Wm(s,Z.cmd),onSetup:OC(s,Z.name)})}),s.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:Gh(s),onAction:Wm(s,"JustifyNone")})},GR=(s,F)=>{const Z=()=>{const ue=F.getOptions(s),we=F.getCurrent(s).map(F.hash),Be=os();return oe(ue,qe=>({type:"togglemenuitem",text:F.display(qe),onSetup:ft=>{const gt=$t=>{$t&&(Be.on(on=>on.setActive(!1)),Be.set(ft)),ft.setActive($t)};gt(wt(we,F.hash(qe)));const At=F.watcher(s,qe,gt);return()=>{Be.clear(),At()}},onAction:()=>F.setCurrent(s,qe)}))};s.ui.registry.addMenuButton(F.name,{tooltip:F.text,icon:F.icon,fetch:ue=>ue(Z()),onSetup:F.onToolbarSetup}),s.ui.registry.addNestedMenuItem(F.name,{type:"nestedmenuitem",text:F.text,getSubmenuItems:Z,onSetup:F.onMenuSetup})},Ine=s=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:a7,hash:F=>Vte(F,["fixed","relative","empty"]).getOr(F),display:R,watcher:(F,Z,ue)=>F.formatter.formatChanged("lineheight",ue,!1,{value:Z}).unbind,getCurrent:F=>I.from(F.queryCommandValue("LineHeight")),setCurrent:(F,Z)=>F.execCommand("LineHeight",!1,Z),onToolbarSetup:Gh(s),onMenuSetup:Gh(s)}),Dne=s=>I.from(P6(s)).map(Z=>({name:"language",text:"Language",icon:"language",getOptions:x(Z),hash:ue=>y(ue.customCode)?ue.code:`${ue.code}/${ue.customCode}`,display:ue=>ue.title,watcher:(ue,we,Be)=>{var qe;return ue.formatter.formatChanged("lang",Be,!1,{value:we.code,customValue:(qe=we.customCode)!==null&&qe!==void 0?qe:null}).unbind},getCurrent:ue=>{const we=Pt.fromDom(ue.selection.getNode());return E0(we,Be=>I.some(Be).filter(Kn).bind(qe=>co(qe,"lang").map(gt=>{const At=co(qe,"data-mce-lang").getOrUndefined();return{code:gt,customCode:At,title:""}})))},setCurrent:(ue,we)=>ue.execCommand("Lang",!1,we),onToolbarSetup:ue=>{const we=js();return ue.setActive(s.formatter.match("lang",{},void 0,!0)),we.set(s.formatter.formatChanged("lang",ue.setActive,!0)),t4(we.clear,Gh(s)(ue))},onMenuSetup:Gh(s)})),Bne=s=>{GR(s,Ine(s)),Dne(s).each(F=>GR(s,F))},zne=(s,F)=>{kU(s,F),zte(s,F),ene(s,F),Lte(s,F),Kte(s,F)},Fne=s=>Zw(s,"NodeChange",F=>{F.setEnabled(s.queryCommandState("outdent")&&s.selection.isEditable())}),cj=s=>{s.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:Fne(s),onAction:Wm(s,"outdent")}),s.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:Gh(s),onAction:Wm(s,"indent")})},uj=s=>{cj(s)},KR=(s,F)=>Z=>{Z.setActive(F.get());const ue=we=>{F.set(we.state),Z.setActive(we.state)};return s.on("PastePlainTextToggle",ue),t4(()=>s.off("PastePlainTextToggle",ue),Gh(s)(Z))},fj=s=>{const F=xi(B6(s)),Z=()=>s.execCommand("mceTogglePlainTextPaste");s.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:Z,onSetup:KR(s,F)}),s.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:Z,onSetup:KR(s,F)})},JR=(s,F)=>()=>{s.execCommand("mceToggleFormat",!1,F)},dj=s=>{ix.each([{name:"bold",text:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(F,Z)=>{s.ui.registry.addToggleButton(F.name,{tooltip:F.text,icon:F.icon,onSetup:OC(s,F.name),onAction:JR(s,F.name),shortcut:F.shortcut})});for(let F=1;F<=6;F++){const Z="h"+F,ue=`Access+${F}`;s.ui.registry.addToggleButton(Z,{text:Z.toUpperCase(),tooltip:"Heading "+F,onSetup:OC(s,Z),onAction:JR(s,Z),shortcut:ue})}},hj=s=>{ix.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help",shortcut:"Alt+0"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],F=>{s.ui.registry.addButton(F.name,{tooltip:F.text,icon:F.icon,onAction:Wm(s,F.action),shortcut:F.shortcut})}),ix.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],F=>{s.ui.registry.addButton(F.name,{tooltip:F.text,icon:F.icon,onSetup:Gh(s),onAction:Wm(s,F.action)})})},Nne=s=>{ix.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],F=>{s.ui.registry.addToggleButton(F.name,{tooltip:F.text,icon:F.icon,onAction:Wm(s,F.action),onSetup:OC(s,F.name)})})},Mfe=s=>{dj(s),hj(s),Nne(s)},$ne=s=>{ix.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],F=>{s.ui.registry.addMenuItem(F.name,{text:F.text,icon:F.icon,shortcut:F.shortcut,onAction:Wm(s,F.action)})}),ix.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],F=>{s.ui.registry.addMenuItem(F.name,{text:F.text,icon:F.icon,shortcut:F.shortcut,onSetup:Gh(s),onAction:Wm(s,F.action)})}),s.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:Gh(s),onAction:JR(s,"code")})},Vne=s=>{Mfe(s),$ne(s)},J8=(s,F)=>Zw(s,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",Z=>{Z.setEnabled(!s.mode.isReadOnly()&&s.undoManager[F]())}),Une=s=>{s.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:J8(s,"hasUndo"),onAction:Wm(s,"undo")}),s.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:J8(s,"hasRedo"),onAction:Wm(s,"redo")})},jne=s=>{s.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:J8(s,"hasUndo"),onAction:Wm(s,"undo"),shortcut:"Meta+Z"}),s.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:J8(s,"hasRedo"),onAction:Wm(s,"redo"),shortcut:"Meta+Y"})},Qne=s=>{Une(s),jne(s)},Hne=s=>Zw(s,"VisualAid",F=>{F.setActive(s.hasVisual)}),Zne=s=>{s.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:Hne(s),onAction:Wm(s,"mceToggleVisualAid")})},qne=s=>{s.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:Wm(s,"mceToggleVisualAid")})},Wne=s=>{qne(s),Zne(s)},Yne=(s,F)=>{K8(s),Vne(s),zne(s,F),Qne(s),xX(s),Wne(s),uj(s),Bne(s),fj(s)},Xne=s=>n(s)?s.split(/[ ,]/):s,pj=s=>F=>F.options.get(s),mj=s=>{const F=s.options.register;F("contextmenu_avoid_overlap",{processor:"string",default:""}),F("contextmenu_never_use_native",{processor:"boolean",default:!1}),F("contextmenu",{processor:Z=>Z===!1?{value:[],valid:!0}:n(Z)||m(Z,n)?{value:Xne(Z),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},gj=pj("contextmenu_never_use_native"),Gne=pj("contextmenu_avoid_overlap"),Kne=s=>vj(s).length===0,vj=s=>{const F=s.ui.registry.getAll().contextMenus,Z=s.options.get("contextmenu");return s.options.isSet("contextmenu")?Z:me(Z,ue=>ht(F,ue))},zk=(s,F)=>({type:"makeshift",x:s,y:F}),Jne=(s,F,Z)=>zk(s.x+F,s.y+Z),yj=s=>s.type==="longpress"||s.type.indexOf("touch")===0,ere=s=>{if(yj(s)){const F=s.touches[0];return zk(F.pageX,F.pageY)}else return zk(s.pageX,s.pageY)},tre=s=>{if(yj(s)){const F=s.touches[0];return zk(F.clientX,F.clientY)}else return zk(s.clientX,s.clientY)},eL=(s,F)=>{const Z=Lw.DOM.getPos(s);return Jne(F,Z.x,Z.y)},nre=(s,F)=>F.type==="contextmenu"||F.type==="longpress"?s.inline?ere(F):eL(s.getContentAreaContainer(),tre(F)):bj(s),bj=s=>({type:"selection",root:Pt.fromDom(s.selection.getNode())}),tL=s=>({type:"node",node:I.some(Pt.fromDom(s.selection.getNode())),root:Pt.fromDom(s.getBody())}),nL=(s,F,Z)=>{switch(Z){case"node":return tL(s);case"point":return nre(s,F);case"selection":return bj(s)}},xj=(s,F,Z,ue,we,Be)=>{const qe=Z(),ft=nL(s,F,Be);v4(qe,r1.CLOSE_ON_EXECUTE,ue,{isHorizontalMenu:!1,search:I.none()}).map(gt=>{F.preventDefault(),hc.showMenuAt(we,{anchor:ft},{menu:{markers:M2("normal")},data:gt})})},rre={onLtr:()=>[Pc,Ec,Qc,Hc,_s,Jc,f1,xk,bk,g8,yk,m8],onRtl:()=>[Pc,Qc,Ec,_s,Hc,Jc,f1,xk,yk,m8,bk,g8]},ore=12,ire={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},are=(s,F)=>{const Z=s.selection;if(Z.isCollapsed()||F.touches.length<1)return!1;{const ue=F.touches[0],we=Z.getRng();return Mf(s.getWin(),c2.domRange(we)).exists(qe=>qe.left<=ue.clientX&&qe.right>=ue.clientX&&qe.top<=ue.clientY&&qe.bottom>=ue.clientY)}},sre=s=>{const F=s.selection.getRng(),Z=()=>{S5.setEditorTimeout(s,()=>{s.selection.setRng(F)},10),Be()};s.once("touchend",Z);const ue=qe=>{qe.preventDefault(),qe.stopImmediatePropagation()};s.on("mousedown",ue,!0);const we=()=>Be();s.once("longpresscancel",we);const Be=()=>{s.off("touchend",Z),s.off("longpresscancel",we),s.off("mousedown",ue)}},rL=(s,F,Z)=>{const ue=nL(s,F,Z);return{bubble:pp(0,Z==="point"?ore:0,ire),layouts:rre,overrides:{maxWidthFunction:cR(),maxHeightFunction:W0()},...ue}},lre=(s,F,Z,ue,we,Be,qe)=>{const ft=rL(s,F,Be);v4(Z,r1.CLOSE_ON_EXECUTE,ue,{isHorizontalMenu:!0,search:I.none()}).map(gt=>{F.preventDefault();const At=qe?Xh.HighlightMenuAndItem:Xh.HighlightNone;hc.showMenuWithinBounds(we,{anchor:ft},{menu:{markers:M2("normal"),highlightOnOpen:At},data:gt,type:"horizontal"},()=>I.some(nj(s,ue.shared,Be==="node"?"node":"selection"))),s.dispatch(UR)})},_j=(s,F,Z,ue,we,Be)=>{const qe=rf(),ft=qe.os.isiOS(),gt=qe.os.isMacOS(),At=qe.os.isAndroid(),$t=qe.deviceType.isTouch(),on=()=>!(At||ft||gt&&$t),yn=()=>{const wn=Z();lre(s,F,wn,ue,we,Be,on())};if((gt||ft)&&Be!=="node"){const wn=()=>{sre(s),yn()};are(s,F)?wn():(s.once("selectionchange",wn),s.once("touchend",()=>s.off("selectionchange",wn)))}else yn()},wj=s=>n(s)?s==="|":s.type==="separator",oL={type:"separator"},eA=s=>{const F=Z=>({text:Z.text,icon:Z.icon,enabled:Z.enabled,shortcut:Z.shortcut});if(n(s))return s;switch(s.type){case"separator":return oL;case"submenu":return{type:"nestedmenuitem",...F(s),getSubmenuItems:()=>{const ue=s.getSubmenuItems();return n(ue)?ue:oe(ue,eA)}};default:const Z=s;return{type:"menuitem",...F(Z),onAction:_(Z.onAction)}}},Oj=(s,F)=>{if(F.length===0)return s;const ue=Ve(s).filter(we=>!wj(we)).fold(()=>[],we=>[oL]);return s.concat(ue).concat(F).concat([oL])},Sj=(s,F,Z)=>{const ue=se(F,(we,Be)=>Ge(s,Be.toLowerCase()).map(qe=>{const ft=qe.update(Z);if(n(ft)&&it(Rt(ft)))return Oj(we,ft.split(" "));if(i(ft)&&ft.length>0){const gt=oe(ft,eA);return Oj(we,gt)}else return we}).getOrThunk(()=>we.concat([Be])),[]);return ue.length>0&&wj(ue[ue.length-1])&&ue.pop(),ue},cre=(s,F)=>F.ctrlKey&&!gj(s),ure=s=>s.type==="longpress"||ht(s,"touches"),tA=(s,F)=>!ure(F)&&(F.button!==2||F.target===s.getBody()&&F.pointerType===""),kj=(s,F)=>tA(s,F)?s.selection.getStart(!0):F.target,fre=(s,F)=>{const Z=Gne(s),ue=tA(s,F)?"selection":"point";if(it(Z)){const we=kj(s,F);return ek(Pt.fromDom(we),Z)?"node":ue}else return ue},dre=(s,F,Z)=>{const we=rf().deviceType.isTouch,Be=vi(hc.sketch({dom:{tag:"div"},lazySink:F,onEscape:()=>s.focus(),onShow:()=>Z.setContextMenuState(!0),onHide:()=>Z.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:Bo([Ca("dismissContextMenu",[fo(I0(),(gt,At)=>{ps.close(gt),s.focus()})])])})),qe=()=>hc.hide(Be),ft=gt=>{if(gj(s)&>.preventDefault(),cre(s,gt)||Kne(s))return;const At=fre(s,gt),$t=()=>{const yn=kj(s,gt),wn=s.ui.registry.getAll(),Mn=vj(s);return Sj(wn.contextMenus,Mn,yn)};(we()?_j:xj)(s,gt,$t,Z,Be,At)};s.on("init",()=>{const gt="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(we()?"":" ResizeWindow");s.on(gt,qe),s.on("longpress contextmenu",ft)})},iL=Ds.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),nA=s=>F=>F.translate(-s.left,-s.top),Fk=s=>F=>F.translate(s.left,s.top),lx=s=>(F,Z)=>se(s,(ue,we)=>we(ue),Ws(F,Z)),rA=(s,F,Z)=>s.fold(lx([Fk(Z),nA(F)]),lx([nA(F)]),lx([])),E4=(s,F,Z)=>s.fold(lx([Fk(Z)]),lx([]),lx([Fk(F)])),Tj=(s,F,Z)=>s.fold(lx([]),lx([nA(Z)]),lx([Fk(F),nA(Z)])),hre=(s,F,Z,ue,we,Be)=>{const qe=E4(s,we,Be),ft=E4(F,we,Be);return Math.abs(qe.left-ft.left)<=Z&&Math.abs(qe.top-ft.top)<=ue},pre=(s,F,Z,ue,we,Be)=>{const qe=E4(s,we,Be),ft=E4(F,we,Be),gt=Math.abs(qe.left-ft.left),At=Math.abs(qe.top-ft.top);return Ws(gt,At)},Cj=(s,F,Z)=>{const ue=s.fold((we,Be)=>({position:I.some("absolute"),left:I.some(we+"px"),top:I.some(Be+"px")}),(we,Be)=>({position:I.some("absolute"),left:I.some(we-Z.left+"px"),top:I.some(Be-Z.top+"px")}),(we,Be)=>({position:I.some("fixed"),left:I.some(we+"px"),top:I.some(Be+"px")}));return{right:I.none(),bottom:I.none(),...ue}},mre=(s,F,Z)=>s.fold((ue,we)=>iA(ue+F,we+Z),(ue,we)=>cx(ue+F,we+Z),(ue,we)=>lO(ue+F,we+Z)),oA=(s,F,Z,ue)=>{const we=(Be,qe)=>(ft,gt)=>{const At=Be(F,Z,ue);return qe(ft.getOr(At.left),gt.getOr(At.top))};return s.fold(we(Tj,iA),we(E4,cx),we(rA,lO))},iA=iL.offset,cx=iL.absolute,lO=iL.fixed,Aj=(s,F)=>{const Z=ao(s,F);return y(Z)?NaN:parseInt(Z,10)},gre=(s,F)=>{const Z=s.element,ue=Aj(Z,F.leftAttr),we=Aj(Z,F.topAttr);return isNaN(ue)||isNaN(we)?I.none():I.some(Ws(ue,we))},cO=(s,F,Z)=>{const ue=s.element;fr(ue,F.leftAttr,Z.left+"px"),fr(ue,F.topAttr,Z.top+"px")},Mj=(s,F)=>{const Z=s.element;po(Z,F.leftAttr),po(Z,F.topAttr)},vre=(s,F,Z,ue)=>gre(s,F).fold(()=>Z,we=>lO(we.left+ue.left,we.top+ue.top)),yre=(s,F,Z,ue,we,Be)=>{const qe=vre(s,F,Z,ue),ft=F.mustSnap?Pj(s,F,qe,we,Be):xre(s,F,qe,we,Be),gt=rA(qe,we,Be);return cO(s,F,gt),ft.fold(()=>({coord:lO(gt.left,gt.top),extra:I.none()}),At=>({coord:At.output,extra:At.extra}))},bre=(s,F)=>{Mj(s,F)},Ej=(s,F,Z,ue)=>Oe(s,we=>{const Be=we.sensor;return hre(F,Be,we.range.left,we.range.top,Z,ue)?I.some({output:oA(we.output,F,Z,ue),extra:we.extra}):I.none()}),Pj=(s,F,Z,ue,we)=>{const Be=F.getSnapPoints(s);return Ej(Be,Z,ue,we).orThunk(()=>se(Be,(gt,At)=>{const $t=At.sensor,on=pre(Z,$t,At.range.left,At.range.top,ue,we);return gt.deltas.fold(()=>({deltas:I.some(on),snap:I.some(At)}),yn=>{const wn=(on.left+on.top)/2,Mn=(yn.left+yn.top)/2;return wn<=Mn?{deltas:I.some(on),snap:I.some(At)}:gt})},{deltas:I.none(),snap:I.none()}).snap.map(gt=>({output:oA(gt.output,Z,ue,we),extra:gt.extra})))},xre=(s,F,Z,ue,we)=>{const Be=F.getSnapPoints(s);return Ej(Be,Z,ue,we)},_re=(s,F,Z)=>({coord:oA(s.output,s.output,F,Z),extra:s.extra});var wre=Object.freeze({__proto__:null,snapTo:(s,F,Z,ue)=>{const we=F.getTarget(s.element);if(F.repositionTarget){const Be=go(s.element),qe=Hl(Be),ft=N_(we),gt=_re(ue,qe,ft),At=Cj(gt.coord,qe,ft);mo(we,At)}}});const aL="data-initial-z-index",Ore=s=>{br(s.element).filter(Kn).each(F=>{co(F,aL).fold(()=>ga(F,"z-index"),Z=>ko(F,"z-index",Z)),po(F,aL)})},Sre=s=>{br(s.element).filter(Kn).each(F=>{Na(F,"z-index").each(Z=>{fr(F,aL,Z)}),ko(F,"z-index",Aa(s.element,"z-index"))})},Rj=(s,F)=>{s.getSystem().addToGui(F),Sre(F)},kre=s=>{Ore(s),s.getSystem().removeFromGui(s)},Lj=(s,F,Z)=>s.getSystem().build(_v.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[F]},events:Z}));var Ij=Pi("snaps",[Sn("getSnapPoints"),Ra("onSensor"),Sn("leftAttr"),Sn("topAttr"),mr("lazyViewport",wl),mr("mustSnap",!1)]);const aA=[mr("useFixed",D),Sn("blockerClass"),mr("getTarget",R),mr("onDrag",v),mr("repositionTarget",!0),mr("onDrop",v),Pa("getBounds",wl),Ij],Tre=s=>Gt(Na(s,"left"),Na(s,"top"),Na(s,"position"),(F,Z,ue)=>(ue==="fixed"?lO:iA)(parseInt(F,10),parseInt(Z,10))).getOrThunk(()=>{const F=pc(s);return cx(F.left,F.top)}),Nk=(s,F,Z,ue,we)=>{const Be=we.bounds,qe=E4(F,Z,ue),ft=Mc(qe.left,Be.x,Be.x+Be.width-we.width),gt=Mc(qe.top,Be.y,Be.y+Be.height-we.height),At=cx(ft,gt);return F.fold(()=>{const $t=Tj(At,Z,ue);return iA($t.left,$t.top)},x(At),()=>{const $t=rA(At,Z,ue);return lO($t.left,$t.top)})},Cre=(s,F,Z,ue,we,Be,qe)=>{const ft=F.fold(()=>{const gt=mre(Z,Be.left,Be.top),At=rA(gt,ue,we);return lO(At.left,At.top)},gt=>{const At=yre(s,gt,Z,Be,ue,we);return At.extra.each($t=>{gt.onSensor(s,$t)}),At.coord});return Nk(s,ft,ue,we,qe)},Are=(s,F,Z,ue)=>{const we=F.getTarget(s.element);if(F.repositionTarget){const Be=go(s.element),qe=Hl(Be),ft=N_(we),gt=Tre(we),At=Cre(s,F.snaps,gt,qe,ft,ue,Z),$t=Cj(At,qe,ft);mo(we,$t)}F.onDrag(s,we,ue)},sA=(s,F)=>({bounds:s.getBounds(),height:Ed(F.element),width:pu(F.element)}),sL=(s,F,Z,ue,we)=>{const Be=Z.update(ue,we),qe=Z.getStartData().getOrThunk(()=>sA(F,s));Be.each(ft=>{Are(s,F,qe,ft)})},Dj=(s,F,Z,ue)=>{F.each(kre),Z.snaps.each(Be=>{bre(s,Be)});const we=Z.getTarget(s.element);ue.reset(),Z.onDrop(s,we)},lL=s=>(F,Z)=>{const ue=we=>{Z.setStartData(sA(F,we))};return pl([fo(T1(),we=>{Z.getStartData().each(()=>ue(we))}),...s(F,Z,ue)])},Mre=s=>pl([fo(Oh(),s.forceDrop),fo(Hv(),s.drop),fo(Ex(),(F,Z)=>{s.move(Z.event)}),fo(Tf(),s.delayDrop)]);var Ere=Object.freeze({__proto__:null,getData:s=>I.from(Ws(s.x,s.y)),getDelta:(s,F)=>Ws(F.left-s.left,F.top-s.top)});const Bj=(s,F,Z)=>[fo(Oh(),(ue,we)=>{if(we.event.raw.button!==0)return;we.stop();const qe=()=>Dj(ue,I.some(At),s,F),ft=cN(qe,200),gt={drop:qe,delayDrop:ft.schedule,forceDrop:qe,move:on=>{ft.cancel(),sL(ue,s,F,Ere,on)}},At=Lj(ue,s.blockerClass,Mre(gt));(()=>{Z(ue),Rj(ue,At)})()})],Pre=[...aA,Il("dragger",{handlers:lL(Bj)})],Rre=s=>pl([fo(_m(),s.forceDrop),fo(wm(),s.drop),fo(ub(),s.drop),fo(Yg(),(F,Z)=>{s.move(Z.event)})]),Lre=s=>{const F=s[0];return I.some(Ws(F.clientX,F.clientY))};var zj=Object.freeze({__proto__:null,getData:s=>{const Z=s.raw.touches;return Z.length===1?Lre(Z):I.none()},getDelta:(s,F)=>Ws(F.left-s.left,F.top-s.top)});const Fj=(s,F,Z)=>{const ue=os(),we=Be=>{Dj(Be,ue.get(),s,F),ue.clear()};return[fo(_m(),(Be,qe)=>{qe.stop();const ft=()=>we(Be),gt={drop:ft,delayDrop:v,forceDrop:ft,move:on=>{sL(Be,s,F,zj,on)}},At=Lj(Be,s.blockerClass,Rre(gt));ue.set(At),(()=>{Z(Be),Rj(Be,At)})()}),fo(Yg(),(Be,qe)=>{qe.stop(),sL(Be,s,F,zj,qe.event)}),fo(wm(),(Be,qe)=>{qe.stop(),we(Be)}),fo(ub(),we)]},Ire=[...aA,Il("dragger",{handlers:lL(Fj)})],Dre=(s,F,Z)=>[...Bj(s,F,Z),...Fj(s,F,Z)],lA=[...aA,Il("dragger",{handlers:lL(Dre)})];var Bre=Object.freeze({__proto__:null,mouse:Pre,touch:Ire,mouseOrTouch:lA}),zre=Object.freeze({__proto__:null,init:()=>{let s=I.none(),F=I.none();const Z=()=>{s=I.none(),F=I.none()},ue=(gt,At)=>{const $t=s.map(on=>gt.getDelta(on,At));return s=I.some(At),$t},we=(gt,At)=>gt.getData(At).bind($t=>ue(gt,$t)),Be=gt=>{F=I.some(gt)},qe=()=>F,ft=x({});return kh({readState:ft,reset:Z,update:we,getStartData:qe,setStartData:Be})}});const j2=gd({branchKey:"mode",branches:Bre,name:"dragging",active:{events:(s,F)=>s.dragger.handlers(s,F)},extra:{snap:s=>({sensor:s.sensor,range:s.range,output:s.output,extra:I.from(s.extra)})},state:zre,apis:wre}),cL=40,cA=cL/2,Nj=(s,F,Z,ue,we,Be)=>s.fold(()=>j2.snap({sensor:cx(Z-cA,ue-cA),range:Ws(we,Be),output:cx(I.some(Z),I.some(ue)),extra:{td:F}}),qe=>{const ft=Z-cA,gt=ue-cA,At=cL,$t=cL,on=qe.element.dom.getBoundingClientRect();return j2.snap({sensor:cx(ft,gt),range:Ws(At,$t),output:cx(I.some(Z-on.width/2),I.some(ue-on.height/2)),extra:{td:F}})}),$j=(s,F,Z)=>{const ue=(we,Be)=>we.exists(qe=>so(qe,Be));return{getSnapPoints:s,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(we,Be)=>{const qe=Be.td;ue(F.get(),qe)||(F.set(qe),Z(qe))},mustSnap:!0}},Vj=s=>qs(Vd.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:Bo([j2.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:s}),u4.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),uL=(s,F)=>{const Z=xi([]),ue=xi([]),we=xi(!1),Be=os(),qe=os(),ft=Jo=>{const ho=_l(Jo);return Nj(wn.getOpt(F),Jo,ho.x,ho.y,ho.width,ho.height)},gt=()=>oe(Z.get(),Jo=>ft(Jo)),At=Jo=>{const ho=_l(Jo);return Nj(Mn.getOpt(F),Jo,ho.right,ho.bottom,ho.width,ho.height)},$t=()=>oe(ue.get(),Jo=>At(Jo)),on=$j(gt,Be,Jo=>{qe.get().each(ho=>{s.dispatch("TableSelectorChange",{start:Jo,finish:ho})})}),yn=$j($t,qe,Jo=>{Be.get().each(ho=>{s.dispatch("TableSelectorChange",{start:ho,finish:Jo})})}),wn=Vj(on),Mn=Vj(yn),Xn=vi(wn.asSpec()),Br=vi(Mn.asSpec()),or=(Jo,ho,Ci,mi)=>{const qi=ho.dom.getBoundingClientRect();ga(Jo.element,"display");const Fi=Yn(Pt.fromDom(s.getBody())).dom.innerHeight,Os=Ci(qi),vs=mi(qi,Fi);(Os||vs)&&ko(Jo.element,"display","none")},Mr=(Jo,ho,Ci,mi)=>{const qi=Ci(ho);j2.snapTo(Jo,qi),or(Jo,ho,vs=>vs[mi]<0,(vs,Ha)=>vs[mi]>Ha)},kr=Jo=>Mr(Xn,Jo,ft,"top"),yo=()=>Be.get().each(kr),Xr=Jo=>Mr(Br,Jo,At,"bottom"),No=()=>qe.get().each(Xr);if(rf().deviceType.isTouch()){const Jo=ho=>oe(ho,Pt.fromDom);s.on("TableSelectionChange",ho=>{we.get()||(X0(F,Xn),X0(F,Br),we.set(!0));const Ci=Pt.fromDom(ho.start),mi=Pt.fromDom(ho.finish);Be.set(Ci),qe.set(mi),I.from(ho.otherCells).each(qi=>{Z.set(Jo(qi.upOrLeftCells)),ue.set(Jo(qi.downOrRightCells)),kr(Ci),Xr(mi)})}),s.on("ResizeEditor ResizeWindow ScrollContent",()=>{yo(),No()}),s.on("TableSelectionClear",()=>{we.get()&&(fv(Xn),fv(Br),we.set(!1)),Be.clear(),qe.clear()})}};var Uj=` +`;const Fre=(s,F)=>{const Z=I.from(ao(s,"id")).getOrThunk(()=>{const ue=fi("aria");return fr(F,"id",ue),ue});fr(s,"aria-describedby",Z)},Nre=s=>{po(s,"aria-describedby")},$re=s=>s.nodeName==="BR"||!!s.getAttribute("data-mce-bogus")||s.getAttribute("data-mce-type")==="bookmark",Vre=(s,F,Z)=>{var ue;const we=(ue=F.delimiter)!==null&&ue!==void 0?ue:"›",Be=(At,$t,on)=>Vd.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":on}},components:[ro(At)],action:yn=>{s.focus(),s.selection.select($t),s.nodeChanged()},buttonBehaviours:Bo([Td.config({...Z.tooltips.getConfig({tooltipText:Z.translate(["Select the {0} element",$t.nodeName.toLowerCase()]),onShow:(yn,wn)=>{Fre(yn.element,wn.element)},onHide:yn=>{Nre(yn.element)}})}),s1.button(Z.isDisabled),df()])}),qe=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[ro(` ${we} `)]}),ft=At=>se(At,($t,on,yn)=>{const wn=Be(on.name,on.element,yn);return yn===0?$t.concat([wn]):$t.concat([qe(),wn])},[]),gt=At=>{const $t=[];let on=At.length;for(;on-- >0;){const yn=At[on];if(yn.nodeType===1&&!$re(yn)){const wn=oX(s,yn);if(wn.isDefaultPrevented()||$t.push({name:wn.name,element:yn}),wn.isPropagationStopped())break}}return $t};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:Bo([Li.config({mode:"flow",selector:"div[role=button]"}),ta.config({disabled:Z.isDisabled}),df(),Wl.config({}),da.config({}),Ca("elementPathEvents",[Ll((At,$t)=>{s.shortcuts.add("alt+F11","focus statusbar elementpath",()=>Li.focusIn(At)),s.on("NodeChange",on=>{const yn=gt(on.parents),wn=yn.length>0?ft(yn):[];da.set(At,wn)})})])]),components:[]}};var Q2;(function(s){s[s.None=0]="None",s[s.Both=1]="Both",s[s.Vertical=2]="Vertical"})(Q2||(Q2={}));const Ure=(s,F,Z,ue,we)=>{const Be={height:H8(ue+F.top,E6(s),XE(s))};return Z===Q2.Both&&(Be.width=H8(we+F.left,Z3(s),T5(s))),Be},jj=(s,F,Z)=>{const ue=Pt.fromDom(s.getContainer()),we=Ure(s,F,Z,Ql(ue),cc(ue));We(we,(Be,qe)=>{h(Be)&&ko(ue,qe,M4(Be))}),nX(s)},jre=s=>{const F=r7(s);return F===!1?Q2.None:F==="both"?Q2.Both:Q2.Vertical},uA=(s,F,Z,ue)=>{const Be=Ws(Z*20,ue*20);return jj(s,Be,F),I.some(!0)},Qre=(s,F)=>{const Z=jre(s);if(Z===Q2.None)return I.none();const ue=Z===Q2.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return I.some(em("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{"aria-label":F.translate(ue),"data-mce-name":"resize-handle"},behaviours:[j2.config({mode:"mouse",repositionTarget:!1,onDrag:(we,Be,qe)=>jj(s,qe,Z),blockerClass:"tox-blocker"}),Li.config({mode:"special",onLeft:()=>uA(s,Z,-1,0),onRight:()=>uA(s,Z,1,0),onUp:()=>uA(s,Z,0,-1),onDown:()=>uA(s,Z,0,1)}),Wl.config({}),oa.config({}),Td.config(F.tooltips.getConfig({tooltipText:F.translate("Resize")}))]},F.icons))},Hre=(s,F)=>{const Z=(ue,we,Be)=>da.set(ue,[ro(F.translate(["{0} "+Be,we[Be]]))]);return Vd.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:Bo([s1.button(F.isDisabled),df(),Wl.config({}),da.config({}),hi.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Ca("wordcount-events",[$p(ue=>{const we=hi.getValue(ue),Be=we.mode==="words"?"characters":"words";hi.setValue(ue,{mode:Be,count:we.count}),Z(ue,we.count,Be)}),Ll(ue=>{s.on("wordCountUpdate",we=>{const{mode:Be}=hi.getValue(ue);hi.setValue(ue,{mode:Be,count:we.wordCount}),Z(ue,we.wordCount,Be)})})])]),eventOrder:{[cp()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},Zre=(s,F)=>{const Z=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=poweredby&utm_source=tiny&utm_medium=referral&utm_content=v7",rel:"noopener",target:"_blank","aria-label":s.translate(["Build with {0}","TinyMCE"])},innerHtml:s.translate(["Build with {0}",Uj.trim()])},behaviours:Bo([oa.config({})])}]}),ue=()=>{const ft=vC("Alt+0"),gt="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[ro(Ag.translate([gt,ft]))]}},we=()=>{const ft=[];return s.hasPlugin("wordcount")&&ft.push(Hre(s,F)),n7(s)&&ft.push(Z()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:ft}},Be=()=>{const ft=[],gt=hz(s),At=fz(s),$t=n7(s)||s.hasPlugin("wordcount"),on=()=>{const yn="tox-statusbar__text-container--flex-start",wn="tox-statusbar__text-container--flex-end",Mn="tox-statusbar__text-container--space-around";if(gt){const Xn="tox-statusbar__text-container-3-cols";return!$t&&!At?[Xn,Mn]:$t&&!At?[Xn,wn]:[Xn,yn]}return[$t&&!At?wn:yn]};return At&&ft.push(Vre(s,{},F)),gt&&ft.push(ue()),$t&&ft.push(we()),ft.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...on()]},components:ft}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const ft=Be(),gt=Qre(s,F);return ft.concat(gt.toArray())})()}},Qj=(s,F)=>F.get().getOrDie(`UI for ${s} has not been rendered`),qre=(s,F)=>{const Z=s.inline,ue=Z?YU:vne,we=W3(s)?O4:_ee,Be=XU(),qe=os(),ft=os(),gt=os(),yn=rf().deviceType.isTouch()?["tox-platform-touch"]:[],wn=Kb(s),Mn=Dw(s),Xn=qs({dom:{tag:"div",classes:["tox-anchorbar"]}}),Br=qs({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),or=()=>Be.mainUi.get().map(ji=>ji.outerContainer).bind(Yl.getHeader),Mr=()=>Hi.fromOption(Be.dialogUi.get().map(ji=>ji.sink),"UI has not been rendered"),kr=()=>Hi.fromOption(Be.popupUi.get().map(ji=>ji.sink),"(popup) UI has not been rendered"),yo=Be.lazyGetInOuterOrDie("anchor bar",Xn.getOpt),Xr=Be.lazyGetInOuterOrDie("bottom anchor bar",Br.getOpt),No=Be.lazyGetInOuterOrDie("toolbar",Yl.getToolbar),Jo=Be.lazyGetInOuterOrDie("throbber",Yl.getThrobber),ho=hee({popup:kr,dialog:Mr},s,yo,Xr),Ci=()=>{const ji={attributes:{[s0]:wn?Sg.BottomToTop:Sg.TopToBottom}},va=Yl.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:ho.popup,onEscape:()=>{s.focus()}}),Cl=Yl.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:ho.popup.shared.getSink,providers:ho.popup.shared.providers,onEscape:()=>{s.focus()},onToolbarToggled:mO=>{iX(s,mO)},type:Mn,lazyToolbar:No,lazyHeader:()=>or().getOrDie("Could not find header element"),...ji}),Ns=Yl.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:ho.popup.shared.providers,onEscape:()=>{s.focus()},type:Mn}),zh=Bw(s),zg=N6(s),Av=z6(s),dh=C5(s),Fg=mi(),w0=zh||zg||Av,im=()=>zh?[Ns]:zg?[Cl]:[],jy=dh?[Fg,va]:[va];return Yl.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(w0?[]:["tox-editor-header--empty"]),...ji},components:ve([Av?jy:[],im(),q3(s)?[]:[Xn.asSpec()]]),sticky:W3(s),editor:s,sharedBackstage:ho.popup.shared})},mi=()=>Yl.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),qi=()=>{const ji=Yl.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),va=Yl.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[ji,va]}},Fi=()=>{const ji=A5(s),va=so(Vr(),ji)&&Aa(ji,"display")==="grid",Cl={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(yn),attributes:{...Ag.isRtl()?{dir:"rtl"}:{}}},behaviours:Bo([ed.config({useFixed:()=>we.isDocked(or)})])},Ns={dom:{styles:{width:document.body.clientWidth+"px"}},events:pl([fo(Tm(),Av=>{ko(Av.element,"width",document.body.clientWidth+"px")})])},zh=vi(nl(Cl,va?Ns:{})),zg=OP(zh);return ft.set(zg),{sink:zh,mothership:zg}},Os=()=>{const ji={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(yn),attributes:{...Ag.isRtl()?{dir:"rtl"}:{}}},behaviours:Bo([ed.config({useFixed:()=>we.isDocked(or),getBounds:()=>F.getPopupSinkBounds()})])},va=vi(ji),Cl=OP(va);return gt.set(Cl),{sink:va,mothership:Cl}},vs=()=>{const ji=Ci(),va=qi(),Cl=Yl.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:ho.popup}),Ns=Yl.parts.viewWrapper({backstage:ho.popup}),zh=uz(s)&&!Z?I.some(Zre(s,ho.popup.shared.providers)):I.none(),zg=ve([wn?[]:[ji],Z?[]:[va],wn?[ji]:[]]),Av=Yl.parts.editorContainer({components:ve([zg,Z?[]:[Br.asSpec()]])}),dh=$6(s),Fg={role:"application",...Ag.isRtl()?{dir:"rtl"}:{},...dh?{"aria-hidden":"true"}:{}},w0=vi(Yl.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(Z?["tox-tinymce-inline"]:[]).concat(wn?["tox-tinymce--toolbar-bottom"]:[]).concat(yn),styles:{visibility:"hidden",...dh?{opacity:"0",border:"0"}:{}},attributes:Fg},components:[Av,...Z?[]:[Ns,...zh.toArray()],Cl],behaviours:Bo([df(),ta.config({disableClass:"tox-tinymce--disabled"}),Li.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),im=OP(w0);return qe.set(im),{mothership:im,outerContainer:w0}},Ha=ji=>{const va=M4(q8(s)),Cl=M4(yne(s));return s.inline||(wc("div","width",Cl)&&ko(ji.element,"width",Cl),wc("div","height",va)?ko(ji.element,"height",va):ko(ji.element,"height","400px")),va},Ho=ji=>{s.addShortcut("alt+F9","focus menubar",()=>{Yl.focusMenubar(ji)}),s.addShortcut("alt+F10","focus toolbar",()=>{Yl.focusToolbar(ji)}),s.addCommand("ToggleToolbarDrawer",(va,Cl)=>{Cl!=null&&Cl.skipFocus?Yl.toggleToolbarDrawerWithoutFocusing(ji):Yl.toggleToolbarDrawer(ji)}),s.addQueryStateHandler("ToggleToolbarDrawer",()=>Yl.isToolbarDrawerToggled(ji))},wi=ji=>{const{mainUi:va,popupUi:Cl,uiMotherships:Ns}=ji;Ue(R6(s),(L4,SA)=>{s.ui.registry.addGroupToolbarButton(SA,L4)});const{buttons:zh,menuItems:zg,contextToolbars:Av,sidebars:dh,views:Fg}=s.ui.registry.getAll(),w0=s7(s),im={menuItems:zg,menus:l7(s),menubar:JE(s),toolbar:w0.getOrThunk(()=>L6(s)),allowToolbarGroups:Mn===Hm.floating,buttons:zh,sidebar:dh,views:Fg};Ho(va.outerContainer),pee(s,va.mothership,Ns),we.setup(s,ho.popup.shared,or),Yne(s,ho.popup),dre(s,ho.popup.shared.getSink,ho.popup),Lee(s),Ofe(s,Jo,ho.popup.shared),Lne(s,Av,Cl.sink,{backstage:ho.popup}),uL(s,Cl.sink);const jy=s.getElement(),mO=Ha(va.outerContainer),CL={targetNode:jy,height:mO};return ue.render(s,ji,im,ho.popup,CL)},_a=ji=>(gt.set(ji.mothership),ji),Ki=()=>{const ji=vs(),va=Fi(),Cl=C2(s)?Os():_a(va);Be.dialogUi.set(va),Be.popupUi.set(Cl),Be.mainUi.set(ji);const Ns={popupUi:Cl,dialogUi:va,mainUi:ji,uiMotherships:Be.getUiMotherships()};return wi(Ns)};return{popups:{backstage:ho.popup,getMothership:()=>Qj("popups",gt)},dialogs:{backstage:ho.dialog,getMothership:()=>Qj("dialogs",ft)},renderUI:Ki}},Hj=s=>s.dom.textContent,Wre=(s,F)=>{const Z=co(s,"id").fold(()=>{const ue=fi("dialog-label");return fr(F,"id",ue),ue},R);fr(s,"aria-labelledby",Z)},Yre=x([Sn("lazySink"),Hr("dragBlockClass"),Pa("getBounds",wl),mr("useTabstopAt",k),mr("firstTabstop",0),mr("eventOrder",{}),Pf("modalBehaviours",[Li]),bd("onExecute"),i0("onEscape")]),fL={sketch:R},Xre=x([Jp({name:"draghandle",overrides:(s,F)=>({behaviours:Bo([j2.config({mode:"mouse",getTarget:Z=>zs(Z,'[role="dialog"]').getOr(Z),blockerClass:s.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: +`+JSON.stringify(F,null,2)).message),getBounds:s.getDragBounds})])})}),kd({schema:[Sn("dom")],name:"title"}),kd({factory:fL,schema:[Sn("dom")],name:"close"}),kd({factory:fL,schema:[Sn("dom")],name:"body"}),Jp({factory:fL,schema:[Sn("dom")],name:"footer"}),Um({factory:{sketch:(s,F)=>({...s,dom:F.dom,components:F.components})},schema:[mr("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),mr("components",[])],name:"blocker"})]),Gre=(s,F,Z,ue)=>{const we=os(),Be=Mn=>{we.set(Mn);const Xn=s.lazySink(Mn).getOrDie(),Br=ue.blocker(),or=Xn.getSystem().build({...Br,components:Br.components.concat([na(Mn)]),behaviours:Bo([oa.config({}),Ca("dialog-blocker-events",[Wv(Sm(),()=>{Tv.isBlocked(Mn)?v():Li.focusIn(Mn)})])])});X0(Xn,or),Li.focusIn(Mn)},qe=Mn=>{we.clear(),br(Mn.element).each(Xn=>{Mn.getSystem().getByDom(Xn).each(Br=>{fv(Br)})})},ft=Mn=>Ph(Mn,s,"body"),gt=Mn=>Fo(Mn,s,"footer"),At=(Mn,Xn)=>{Tv.block(Mn,Xn)},$t=Mn=>{Tv.unblock(Mn)},on=fi("modal-events"),yn={...s.eventOrder,[zd()]:[on].concat(s.eventOrder["alloy.system.attached"]||[])},wn=rf();return{uid:s.uid,dom:s.dom,components:F,apis:{show:Be,hide:qe,getBody:ft,getFooter:gt,setIdle:$t,setBusy:At},eventOrder:yn,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Rf(s.modalBehaviours,[da.config({}),Li.config({mode:"cyclic",onEnter:s.onExecute,onEscape:s.onEscape,useTabstopAt:s.useTabstopAt,firstTabstop:s.firstTabstop}),Tv.config({getRoot:we.get}),Ca(on,[Ll(Mn=>{const Xn=Ph(Mn,s,"title").element,Br=Hj(Xn);wn.os.isMacOS()&&a(Br)?fr(Mn.element,"aria-label",Br):Wre(Mn.element,Xn)})])])}},If=ch({name:"ModalDialog",configFields:Yre(),partFields:Xre(),factory:Gre,apis:{show:(s,F)=>{s.show(F)},hide:(s,F)=>{s.hide(F)},getBody:(s,F)=>s.getBody(F),getFooter:(s,F)=>s.getFooter(F),setBusy:(s,F,Z)=>{s.setBusy(F,Z)},setIdle:(s,F)=>{s.setIdle(F)}}}),Kre=Mi([Fu,oC].concat(Uw)),Jre=ge,fA=[H7("button"),d0,hl("align","end",["start","end"]),Q5,o1,$i("buttonType",["primary","secondary"])],dL=[...fA,tx],ux=[Zr("type",["submit","cancel","custom"]),...dL],eoe=[Zr("type",["menu"]),R2,j5,d0,Si("items",Kre),...fA],hL=[...fA,Zr("type",["togglebutton"]),j5,d0,R2,hs("active",!1)],dA=xn("type",{submit:ux,cancel:ux,custom:ux,menu:eoe,togglebutton:hL}),toe=[Fu,tx,Zr("level",["info","warn","error","success"]),Yz,mr("url","")],noe=Mi(toe),roe=s=>[Fu,s],ooe=[Fu,tx,o1,H7("button"),d0,MY,$i("buttonType",["primary","secondary","toolbar"]),Q5],ioe=Mi(ooe),h1=[Fu,oC],p1=h1.concat([aC]),aoe=h1.concat([iC,o1]),soe=Mi(aoe),loe=ge,coe=p1.concat([cC("auto")]),uoe=Mi(coe),foe=J([U5,tx,Yz]),doe=p1.concat([Ys("storageKey","default")]),hoe=Mi(doe),pL=ne,mL=Mi(p1),pA=ne,uO=h1.concat([Ys("tag","textarea"),Pr("scriptId"),Pr("scriptUrl"),Ui("onFocus"),Rs("settings",void 0)]),mA=h1.concat([Ys("tag","textarea"),$o("init")]),poe=mt(s=>jt("customeditor.old",Ol(mA),s).orThunk(()=>jt("customeditor.new",Ol(uO),s))),Zj=ne,qj=Mi(p1),goe=dt(),voe=s=>[Fu,Dr("columns"),s],yoe=[Fu,Pr("html"),hl("presets","presentation",["presentation","document"]),Pa("onInit",v),hs("stretched",!1)],Wj=Mi(yoe),Yj=p1.concat([hs("border",!1),hs("sandboxed",!0),hs("streamContent",!1),hs("transparent",!0)]),gL=Mi(Yj),boe=ne,xoe=Mi(h1.concat([Io("height")])),_oe=Mi([Pr("url"),ki("zoom"),ki("cachedWidth"),ki("cachedHeight")]),Xj=p1.concat([Io("inputMode"),Io("placeholder"),hs("maximized",!1),o1]),woe=Mi(Xj),Ooe=ne,Soe=s=>[Fu,iC,s,hl("align","start",["start","center","end"]),Io("for")],vL=[tx,U5],yL=[tx,Si("items",pn("items",()=>Gj))],Gj=Ot([Mi(vL),Mi(yL)]),Kj=p1.concat([Si("items",Gj),o1]),koe=Mi(Kj),Toe=ne,Jj=p1.concat([yi("items",[tx,U5]),Pl("size",1),o1]),Coe=Mi(Jj),Aoe=ne,fO=p1.concat([hs("constrain",!0),o1]),eQ=Mi(fO),tQ=Mi([Pr("width"),Pr("height")]),gA=h1.concat([iC,Pl("min",0),Pl("max",0)]),P4=Mi(gA),vA=V,nQ=[Fu,Si("header",ne),Si("cells",kf(ne))],yA=Mi(nQ),rm=p1.concat([Io("placeholder"),hs("maximized",!1),o1]),bA=Mi(rm),rQ=ne,bL=[Zr("type",["directory","leaf"]),Wz,Pr("id"),Lo("menu",k8)],oQ=Mi(bL),H2=bL.concat([Si("children",pn("children",()=>rt("type",{directory:Moe,leaf:oQ})))]),Moe=Mi(H2),Eoe=rt("type",{directory:Moe,leaf:oQ}),iQ=[Fu,Si("items",Eoe),Ui("onLeafAction"),Ui("onToggleExpand"),Ls("defaultExpandedIds",[],ne),Io("defaultSelectedId")],R4=Mi(iQ),xA=p1.concat([hl("filetype","file",["image","media","file"]),o1,Io("picker_text")]),aQ=Mi(xA),Poe=Mi([U5,j7]),xL=s=>Ln("items","items",Ka(),kf(mt(F=>jt(`Checking item of ${s}`,_L,F).fold(Z=>Hi.error(sn(Z)),Z=>Hi.value(Z))))),_L=Ea(()=>rt("type",{alertbanner:noe,bar:Mi(roe(xL("bar"))),button:ioe,checkbox:soe,colorinput:hoe,colorpicker:mL,dropzone:qj,grid:Mi(voe(xL("grid"))),iframe:gL,input:woe,listbox:koe,selectbox:Coe,sizeinput:eQ,slider:P4,textarea:bA,urlinput:aQ,customeditor:poe,htmlpanel:Wj,imagepreview:xoe,collection:uoe,label:Mi(Soe(xL("label"))),table:yA,tree:R4,panel:dO})),Roe=[Fu,mr("classes",[]),Si("items",_L)],dO=Mi(Roe),$fe=[H7("tab"),Wz,Si("items",_L)],Loe=[Fu,yi("tabs",$fe)],Ioe=Mi(Loe),Vfe=dL,Doe=dA,Boe=Mi([Pr("title"),rr("body",rt("type",{panel:dO,tabpanel:Ioe})),Ys("size","normal"),Ls("buttons",[],Doe),mr("initialData",{}),Pa("onAction",v),Pa("onChange",v),Pa("onSubmit",v),Pa("onClose",v),Pa("onCancel",v),Pa("onTabChange",v)]),$k=s=>jt("dialog",Boe,s),zoe=Mi([Zr("type",["cancel","custom"]),...Vfe]),Foe=Mi([Pr("title"),Pr("url"),ki("height"),ki("width"),ba("buttons",zoe),Pa("onAction",v),Pa("onCancel",v),Pa("onClose",v),Pa("onMessage",v)]),sQ=s=>jt("dialog",Foe,s),wL=s=>c(s)?[s].concat(ye(ot(s),wL)):i(s)?ye(s,wL):[],Ufe=s=>n(s.type)&&n(s.name),r={checkbox:loe,colorinput:pL,colorpicker:pA,dropzone:goe,input:Ooe,iframe:boe,imagepreview:_oe,selectbox:Aoe,sizeinput:tQ,slider:vA,listbox:Toe,size:tQ,textarea:rQ,urlinput:Poe,customeditor:Zj,collection:foe,togglemenuitem:Jre},g=s=>I.from(r[s.type]),B=s=>me(wL(s),Ufe),H=s=>{const F=B(s),Z=ye(F,ue=>g(ue).fold(()=>[],we=>[rr(ue.name,we)]));return Mi(Z)},re=s=>{var F;const Z=Nt($k(s)),ue=H(s),we=(F=s.initialData)!==null&&F!==void 0?F:{};return{internalDialog:Z,dataValidator:ue,initialData:we}},be={open:(s,F)=>{const Z=re(F);return s(Z.internalDialog,Z.initialData,Z.dataValidator)},openUrl:(s,F)=>{const Z=Nt(sQ(F));return s(Z)},redial:s=>re(s)};var Ke=Object.freeze({__proto__:null,events:(s,F)=>{const Z=(ue,we)=>{s.updateState.each(Be=>{const qe=Be(ue,we);F.set(qe)}),s.renderComponents.each(Be=>{const qe=Be(we,F.get());(s.reuseDom?NE:U3)(ue,qe)})};return pl([fo(lp(),(ue,we)=>{const Be=we;if(!Be.universal){const qe=s.channel;X(Be.channels,qe)&&Z(ue,Be.data)}}),Ll((ue,we)=>{s.initialData.each(Be=>{Z(ue,Be)})})])}}),kt=Object.freeze({__proto__:null,getState:(s,F,Z)=>Z}),Wt=[Sn("channel"),Hr("renderComponents"),Hr("updateState"),Hr("initialData"),hs("reuseDom",!0)],ln=Object.freeze({__proto__:null,init:()=>{const s=xi(I.none()),F=()=>s.set(I.none());return{readState:()=>s.get().getOr("none"),get:s.get,set:s.set,clear:F}}});const kn=lf({fields:Wt,name:"reflecting",active:Ke,apis:kt,state:ln}),Vn=s=>{const F=[],Z={};return We(s,(ue,we)=>{ue.fold(()=>{F.push(we)},Be=>{Z[we]=Be})}),F.length>0?Hi.error(F):Hi.value(Z)},Rn=(s,F,Z,ue)=>{const we=qs(tO.sketch(Be=>({dom:{tag:"div",classes:["tox-form"].concat(s.classes)},components:oe(s.items,qe=>hV(Be,qe,F,Z,ue))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[we.asSpec()]}],behaviours:Bo([Li.config({mode:"acyclic",useTabstopAt:E(g4)}),y0.memento(we),gK(we,{postprocess:Be=>Vn(Be).fold(qe=>(console.error(qe),{}),R)}),Ca("dialog-body-panel",[fo(Sm(),(Be,qe)=>{Be.getSystem().broadcastOn([JC],{newFocus:I.some(qe.event.target)})})])])}},qn=(s,F)=>({uid:s.uid,dom:s.dom,components:s.components,events:T6(s.action),behaviours:Rf(s.tabButtonBehaviours,[oa.config({}),Li.config({mode:"execution",useSpace:!0,useEnter:!0}),hi.config({store:{mode:"memory",initialValue:s.value}})]),domModification:s.domModification}),pr=Yh({name:"TabButton",configFields:[mr("uid",void 0),Sn("value"),Ln("dom","dom",bu(()=>({attributes:{role:"tab",id:fi("aria"),"aria-selected":"false"}})),le()),Hr("action"),mr("domModification",{}),Pf("tabButtonBehaviours",[oa,Li,hi]),Sn("view")],factory:qn}),Tr=x([Sn("tabs"),Sn("dom"),mr("clickToDismiss",!1),Pf("tabbarBehaviours",[ri,Li]),jp(["tabClass","selectedClass"])]),wr=R3({factory:pr,name:"tabs",unit:"tab",overrides:s=>{const F=(ue,we)=>{ri.dehighlight(ue,we),Ri(ue,xu(),{tabbar:ue,button:we})},Z=(ue,we)=>{ri.highlight(ue,we),Ri(ue,zO(),{tabbar:ue,button:we})};return{action:ue=>{const we=ue.getSystem().getByUid(s.uid).getOrDie(),Be=ri.isHighlighted(we,ue);(()=>Be&&s.clickToDismiss?F:Be?v:Z)()(we,ue)},domModification:{classes:[s.markers.tabClass]}}}}),Ur=x([wr]),wo=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,components:F,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Rf(s.tabbarBehaviours,[ri.config({highlightClass:s.markers.selectedClass,itemClass:s.markers.tabClass,onHighlight:(we,Be)=>{fr(Be.element,"aria-selected","true")},onDehighlight:(we,Be)=>{fr(Be.element,"aria-selected","false")}}),Li.config({mode:"flow",getInitial:we=>ri.getHighlighted(we).map(Be=>Be.element),selector:"."+s.markers.tabClass,executeOnMove:!0})])}),jo=ch({name:"Tabbar",configFields:Tr(),partFields:Ur(),factory:wo}),di=(s,F)=>({uid:s.uid,dom:s.dom,behaviours:Rf(s.tabviewBehaviours,[da.config({})]),domModification:{attributes:{role:"tabpanel"}}}),lo=Yh({name:"Tabview",configFields:[Pf("tabviewBehaviours",[da])],factory:di}),eo=x([mr("selectFirst",!0),Ra("onChangeTab"),Ra("onDismissTab"),mr("tabs",[]),Pf("tabSectionBehaviours",[])]),xo=kd({factory:jo,schema:[Sn("dom"),zo("markers",[Sn("tabClass"),Sn("selectedClass")])],name:"tabbar",defaults:s=>({tabs:s.tabs})}),bi=kd({factory:lo,name:"tabview"}),Bi=x([xo,bi]),$a=(s,F,Z,ue)=>{const we=qe=>{const ft=hi.getValue(qe);Fo(qe,s,"tabview").each(gt=>{ce(s.tabs,$t=>$t.value===ft).each($t=>{const on=$t.view();co(qe.element,"id").each(yn=>{fr(gt.element,"aria-labelledby",yn)}),da.set(gt,on),s.onChangeTab(gt,qe,on)})})},Be=(qe,ft)=>{Fo(qe,s,"tabbar").each(gt=>{ft(gt).each(Fp)})};return{uid:s.uid,dom:s.dom,components:F,behaviours:vw(s.tabSectionBehaviours),events:pl(ve([s.selectFirst?[Ll((qe,ft)=>{Be(qe,ri.getFirst)})]:[],[fo(zO(),(qe,ft)=>{const gt=ft.event.button;we(gt)}),fo(xu(),(qe,ft)=>{const gt=ft.event.button;s.onDismissTab(qe,gt)})]])),apis:{getViewItems:qe=>Fo(qe,s,"tabview").map(ft=>da.contents(ft)).getOr([]),showTab:(qe,ft)=>{Be(qe,At=>{const $t=ri.getCandidates(At);return ce($t,yn=>hi.getValue(yn)===ft).filter(yn=>!ri.isHighlighted(At,yn))})}}}},Ia=ch({name:"TabSection",configFields:eo(),partFields:Bi(),factory:$a,apis:{getViewItems:(s,F)=>s.getViewItems(F),showTab:(s,F,Z)=>{s.showTab(F,Z)}}}),Us=(s,F,Z)=>oe(s,(ue,we)=>{da.set(Z,s[we].view());const Be=F.dom.getBoundingClientRect();return da.set(Z,[]),Be.height}),sl=s=>He(ze(s,(F,Z)=>F>Z?-1:F{const ue=Pn(s).dom,we=zs(s,".tox-dialog-wrap").getOr(s),Be=Aa(we,"position")==="fixed";let qe;Be?qe=Math.max(ue.clientHeight,window.innerHeight):qe=Math.max(ue.offsetHeight,ue.scrollHeight);const ft=Ql(F),At=F.dom.offsetLeft>=Z.dom.offsetLeft+cc(Z)?Math.max(Ql(Z),ft):ft,$t=parseInt(Aa(s,"margin-top"),10)||0,on=parseInt(Aa(s,"margin-bottom"),10)||0,wn=Ql(s)+$t+on-At;return qe-wn},jd=(s,F)=>{He(s).each(Z=>Ia.showTab(F,Z.value))},vl=(s,F)=>{ko(s,"height",F+"px"),ko(s,"flex-basis",F+"px")},Wo=(s,F,Z)=>{zs(s,'[role="dialog"]').each(ue=>{aa(ue,'[role="tablist"]').each(we=>{Z.get().map(Be=>(ko(F,"height","0"),ko(F,"flex-basis","0"),Math.min(Be,nu(ue,F,we)))).each(Be=>{vl(F,Be)})})})},Ei=s=>aa(s,'[role="tabpanel"]'),ws=s=>{const F=os();return{extraEvents:[Ll(we=>{const Be=we.element;Ei(Be).each(qe=>{ko(qe,"visibility","hidden"),we.getSystem().getByDom(qe).toOptional().each(ft=>{const gt=Us(s,qe,ft);sl(gt).fold(F.clear,F.set)}),Wo(Be,qe,F),ga(qe,"visibility"),jd(s,we),requestAnimationFrame(()=>{Wo(Be,qe,F)})})}),fo(Tm(),we=>{const Be=we.element;Ei(Be).each(qe=>{Wo(Be,qe,F)})}),fo(vN,(we,Be)=>{const qe=we.element;Ei(qe).each(ft=>{const gt=hp(vr(ft));ko(ft,"visibility","hidden");const At=Na(ft,"height").map(yn=>parseInt(yn,10));ga(ft,"height"),ga(ft,"flex-basis");const $t=ft.dom.getBoundingClientRect().height;At.forall(yn=>$t>yn)?(F.set($t),Wo(qe,ft,F)):At.each(yn=>{vl(ft,yn)}),ga(ft,"visibility"),gt.each(xd)})})],selectFirst:!1}},ii="send-data-to-section",Qi="send-data-to-view",Qa=(s,F,Z,ue)=>{const we=xi({}),Be=$t=>{const on=hi.getValue($t),yn=Vn(on).getOr({}),wn=we.get(),Mn=nl(wn,yn);we.set(Mn)},qe=$t=>{const on=we.get();hi.setValue($t,on)},ft=xi(null),gt=oe(s.tabs,$t=>({value:$t.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[ro(Z.shared.providers.translate($t.title))],view:()=>[tO.sketch(on=>({dom:{tag:"div",classes:["tox-form"]},components:oe($t.items,yn=>hV(on,yn,F,Z,ue)),formBehaviours:Bo([Li.config({mode:"acyclic",useTabstopAt:E(g4)}),Ca("TabView.form.events",[Ll(qe),Sh(Be)]),Wu.config({channels:pd([{key:ii,value:{onReceive:Be}},{key:Qi,value:{onReceive:qe}}])})])}))]})),At=ws(gt);return Ia.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:($t,on,yn)=>{const wn=hi.getValue(on);Ri($t,gN,{name:wn,oldName:ft.get()}),ft.set(wn)},tabs:gt,components:[Ia.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[jo.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:Bo([Wl.config({})])}),Ia.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:At.selectFirst,tabSectionBehaviours:Bo([Ca("tabpanel",At.extraEvents),Li.config({mode:"acyclic"}),as.config({find:$t=>He(Ia.getViewItems($t))}),nO(I.none(),$t=>($t.getSystem().broadcastOn([ii],{}),we.get()),($t,on)=>{we.set(on),$t.getSystem().broadcastOn([Qi],{})})])})},ci=(s,F,Z,ue,we,Be)=>{const qe=At=>{const $t=At.body;switch($t.type){case"tabpanel":return[Qa($t,At.initialData,ue,Be)];default:return[Rn($t,At.initialData,ue,Be)]}},ft=(At,$t)=>I.some({isTabPanel:()=>$t.body.type==="tabpanel"}),gt={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...Z.map(At=>({id:At})).getOr({}),...we?gt:{}}},components:[],behaviours:Bo([y0.childAt(0),kn.config({channel:`${w$}-${F}`,updateState:ft,renderComponents:qe,initialData:s})])}},Va=(s,F,Z,ue,we,Be)=>ci(s,F,I.some(Z),ue,we,Be),Xa=(s,F,Z,ue)=>{const we=ci(s,F,I.none(),Z,!1,ue);return If.parts.body(we)},Df=s=>{const F={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[y$(I.none(),{dom:{tag:"iframe",attributes:{src:s.url}},behaviours:Bo([Wl.config({}),oa.config({})])})]}],behaviours:Bo([Li.config({mode:"acyclic",useTabstopAt:E(g4)})])};return If.parts.body(F)},el=Q3.deviceType.isTouch(),Yu=(s,F)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[s,F]}),Rg=(s,F)=>If.parts.close(Vd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":F.translate("Close")}},action:s,buttonBehaviours:Bo([Wl.config({})])})),m1=()=>If.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),Dh=(s,F)=>If.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:gv(`

    ${w7(F.translate(s))}

    `)}]}]}),om=s=>If.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:s}),Lg=(s,F)=>[_v.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:s}),_v.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:F})],xp=s=>{const F="tox-dialog",Z=F+"-wrap",ue=Z+"__backdrop",we=F+"__disable-scroll";return If.sketch({lazySink:s.lazySink,onEscape:Be=>(s.onEscape(Be),I.some(!0)),useTabstopAt:Be=>!g4(Be),firstTabstop:s.firstTabstop,dom:{tag:"div",classes:[F].concat(s.extraClasses),styles:{position:"relative",...s.extraStyles}},components:[s.header,s.body,...s.footer.toArray()],parts:{blocker:{dom:gv(`
    `),components:[{dom:{tag:"div",classes:el?[ue,ue+"--opaque"]:[ue]}}]}},dragBlockClass:Z,modalBehaviours:Bo([oa.config({}),Ca("dialog-events",s.dialogEvents.concat([Wv(Sm(),(Be,qe)=>{Tv.isBlocked(Be)?v():Li.focusIn(Be)}),fo(Jg(),(Be,qe)=>{Be.getSystem().broadcastOn([JC],{newFocus:qe.event.newFocus})})])),Ca("scroll-lock",[Ll(()=>{Sl(Vr(),we)}),Sh(()=>{fc(Vr(),we)})]),...s.extraBehaviours]),eventOrder:{[cp()]:["dialog-events"],[zd()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[fp()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...s.eventOrder}})},Ig=s=>Vd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":s.translate("Close"),"data-mce-name":"close"}},buttonBehaviours:Bo([Wl.config({}),Td.config(s.tooltips.getConfig({tooltipText:s.translate("Close")}))]),components:[em("close",{tag:"span",classes:["tox-icon"]},s.icons)],action:F=>{Sa(F,I2)}}),zi=(s,F,Z,ue)=>{const we=Be=>[ro(ue.translate(Be.title))];return{dom:{tag:"h1",classes:["tox-dialog__title"],attributes:{...Z.map(Be=>({id:Be})).getOr({})}},components:[],behaviours:Bo([kn.config({channel:`${_$}-${F}`,initialData:s,renderComponents:we})])}},ss=()=>({dom:gv('
    ')}),Rc=(s,F,Z,ue)=>_v.sketch({dom:gv('
    '),components:[zi(s,F,I.some(Z),ue),ss(),Ig(ue)],containerBehaviours:Bo([j2.config({mode:"mouse",blockerClass:"blocker",getTarget:we=>Fs(we,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),cu=(s,F,Z)=>{const ue=If.parts.title(zi(s,F,I.none(),Z)),we=If.parts.draghandle(ss()),Be=If.parts.close(Ig(Z)),qe=[ue].concat(s.draggable?[we]:[]).concat([Be]);return _v.sketch({dom:gv('
    '),components:qe})},Nu=(s,F,Z)=>cu({title:Z.shared.providers.translate(s),draggable:Z.dialog.isDraggableModal()},F,Z.shared.providers),nd=(s,F,Z,ue)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":Z.translate(s)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${ue.getOr(0)}px`,position:"absolute"}},behaviours:F,components:[{dom:gv('
    ')}]}),Ou=(s,F,Z)=>({onClose:()=>Z.closeWindow(),onBlock:ue=>{const we=aa(s().element,".tox-dialog__header").map(Be=>Ql(Be));If.setBusy(s(),(Be,qe)=>nd(ue.message,qe,F,we))},onUnblock:()=>{If.setIdle(s())}}),Su="tox-dialog--fullscreen",fh="tox-dialog--width-lg",Dg="tox-dialog--width-md",Xm=s=>{switch(s){case"large":return I.some(fh);case"medium":return I.some(Dg);default:return I.none()}},x0=(s,F)=>{const Z=Pt.fromDom(F.element.dom);$l(Z,Su)||(th(Z,[fh,Dg]),Xm(s).each(ue=>Sl(Z,ue)))},Bg=(s,F)=>{const Z=Pt.fromDom(s.element.dom),ue=QO(Z),we=ce(ue,Be=>Be===fh||Be===Dg).or(Xm(F));Bx(Z,[Su,...we.toArray()])},fx=(s,F,Z)=>vi(xp({...s,firstTabstop:1,lazySink:Z.shared.getSink,extraBehaviours:[YC({}),...s.extraBehaviours],onEscape:ue=>{Sa(ue,I2)},dialogEvents:F,eventOrder:{[lp()]:[kn.name(),Wu.name()],[zd()]:["scroll-lock",kn.name(),"messages","dialog-events","alloy.base.behaviour"],[fp()]:["alloy.base.behaviour","dialog-events","messages",kn.name(),"scroll-lock"]}})),Z2=(s,F={})=>{const Z=ue=>{const we=oe(ue.items,Be=>{const qe=Ge(F,Be.name).getOr(xi(!1));return{...Be,storage:qe}});return{...ue,items:we}};return oe(s,ue=>ue.type==="menu"?Z(ue):ue)},hO=s=>se(s,(F,Z)=>Z.type==="menu"?se(Z.items,(we,Be)=>(we[Be.name]=Be.storage,we),F):F,{}),_A=(s,F)=>[L_(Sm(),x$),s(nk,(Z,ue,we,Be)=>{hp(vr(Be.element)).fold(v,a0),F.onClose(),ue.onClose()}),s(I2,(Z,ue,we,Be)=>{ue.onCancel(Z),Sa(Be,nk)}),fo(TP,(Z,ue)=>F.onUnblock()),fo(DC,(Z,ue)=>F.onBlock(ue.event))],dx=(s,F)=>{const Z=(we,Be)=>fo(we,(qe,ft)=>{ue(qe,(gt,At)=>{Be(s(),gt,ft.event,qe)})}),ue=(we,Be)=>{kn.getState(we).get().each(qe=>{Be(qe,we)})};return[..._A(Z,F),Z(Dy,(we,Be,qe)=>{Be.onAction(we,{name:qe.name})})]},Vk=(s,F,Z)=>{const ue=(Be,qe)=>fo(Be,(ft,gt)=>{we(ft,(At,$t)=>{qe(s(),At,gt.event,ft)})}),we=(Be,qe)=>{kn.getState(Be).get().each(ft=>{qe(ft.internalDialog,Be)})};return[..._A(ue,F),ue(c4,(Be,qe)=>qe.onSubmit(Be)),ue(tm,(Be,qe,ft)=>{qe.onChange(Be,{name:ft.name})}),ue(Dy,(Be,qe,ft,gt)=>{const At=()=>gt.getSystem().isConnected()?Li.focusIn(gt):void 0,$t=wn=>Go(wn,"disabled")||co(wn,"aria-disabled").exists(Mn=>Mn==="true"),on=vr(gt.element),yn=hp(on);qe.onAction(Be,{name:ft.name,value:ft.value}),hp(on).fold(At,wn=>{$t(wn)||yn.exists(Mn=>So(wn,Mn)&&$t(Mn))?At():Z().toOptional().filter(Mn=>!So(Mn.element,wn)).each(At)})}),ue(gN,(Be,qe,ft)=>{qe.onTabChange(Be,{newTabName:ft.name,oldTabName:ft.oldName})}),Sh(Be=>{const qe=s();hi.setValue(Be,qe.getData())})]},lQ=(s,F)=>f8(s,s.type,F),Bh=(s,F,Z)=>ce(F,ue=>ue.name===Z).bind(ue=>ue.memento.getOpt(s)),pO=(s,F)=>{const Z=F.map(ft=>ft.footerButtons).getOr([]),ue=ee(Z,ft=>ft.align==="start"),we=(ft,gt)=>_v.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${ft}`]},components:oe(gt,At=>At.memento.asSpec())}),Be=we("start",ue.pass),qe=we("end",ue.fail);return[Be,qe]},OL=(s,F,Z)=>{const ue=(we,Be)=>{const qe=oe(Be.buttons,gt=>{const At=qs(lQ(gt,Z));return{name:gt.name,align:gt.align,memento:At}}),ft=gt=>Bh(we,qe,gt);return I.some({lookupByName:ft,footerButtons:qe})};return{dom:gv(''),components:[],behaviours:Bo([kn.config({channel:`${O$}-${F}`,initialData:s,updateState:ue,renderComponents:pO})])}},SL=(s,F,Z)=>OL(s,F,Z),Cv=(s,F,Z)=>If.parts.footer(OL(s,F,Z)),q2=(s,F)=>{if(s.getRoot().getSystem().isConnected()){const ue=as.getCurrent(s.getFormWrapper()).getOr(s.getFormWrapper());return tO.getField(ue,F).orThunk(()=>s.getFooter().bind(qe=>kn.getState(qe).get()).bind(qe=>qe.lookupByName(F)))}else return I.none()},Yr=(s,F)=>{const Z=s.getRoot();return kn.getState(Z).get().map(ue=>Nt(jt("data",ue.dataValidator,F))).getOr(F)},Gr=(s,F,Z)=>{const ue=Mn=>{const Xn=s.getRoot();Xn.getSystem().isConnected()&&Mn(Xn)},wn={getData:()=>{const Mn=s.getRoot(),Xn=Mn.getSystem().isConnected()?s.getFormWrapper():Mn,Br=hi.getValue(Xn),or=Ue(Z,Mr=>Mr.get());return{...Br,...or}},setData:Mn=>{ue(Xn=>{const Br=wn.getData(),or=nl(Br,Mn),Mr=Yr(s,or),kr=s.getFormWrapper();hi.setValue(kr,Mr),We(Z,(yo,Xr)=>{ht(or,Xr)&&yo.set(or[Xr])})})},setEnabled:(Mn,Xn)=>{q2(s,Mn).each(Xn?ta.enable:ta.disable)},focus:Mn=>{q2(s,Mn).each(oa.focus)},block:Mn=>{if(!n(Mn))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");ue(Xn=>{Ri(Xn,DC,{message:Mn})})},unblock:()=>{ue(Mn=>{Sa(Mn,TP)})},showTab:Mn=>{ue(Xn=>{const Br=s.getBody();kn.getState(Br).get().exists(Mr=>Mr.isTabPanel())&&as.getCurrent(Br).each(Mr=>{Ia.showTab(Mr,Mn)})})},redial:Mn=>{ue(Xn=>{const Br=s.getId(),or=F(Mn),Mr=Z2(or.internalDialog.buttons,Z);Xn.getSystem().broadcastOn([`${KC}-${Br}`],or),Xn.getSystem().broadcastOn([`${_$}-${Br}`],or.internalDialog),Xn.getSystem().broadcastOn([`${w$}-${Br}`],or.internalDialog),Xn.getSystem().broadcastOn([`${O$}-${Br}`],{...or.internalDialog,buttons:Mr}),wn.setData(or.initialData)})},close:()=>{ue(Mn=>{Sa(Mn,nk)})},toggleFullscreen:s.toggleFullscreen};return wn},Xo=(s,F,Z)=>{const ue=fi("dialog"),we=s.internalDialog,Be=Nu(we.title,ue,Z),qe=xi(we.size),ft=kr=>q2(or,kr),gt=Xm(qe.get()).toArray(),At=(kr,yo)=>(qe.set(yo.internalDialog.size),x0(yo.internalDialog.size,kr),I.some(yo)),$t=Xa({body:we.body,initialData:we.initialData},ue,Z,ft),on=Z2(we.buttons),yn=hO(on),wn=_t(on.length!==0,Cv({buttons:on},ue,Z)),Mn=Vk(()=>Mr,Ou(()=>Br,Z.shared.providers,F),Z.shared.getSink),Xn={id:ue,header:Be,body:$t,footer:wn,extraClasses:gt,extraBehaviours:[kn.config({channel:`${KC}-${ue}`,updateState:At,initialData:s})],extraStyles:{}},Br=fx(Xn,Mn,Z),or=(()=>{const kr=()=>{const Xr=If.getBody(Br);return as.getCurrent(Xr).getOr(Xr)},yo=()=>{Bg(Br,qe.get())};return{getId:x(ue),getRoot:x(Br),getBody:()=>If.getBody(Br),getFooter:()=>If.getFooter(Br),getFormWrapper:kr,toggleFullscreen:yo}})(),Mr=Gr(or,F.redial,yn);return{dialog:Br,instanceApi:Mr}},Vo=(s,F,Z,ue=!1,we)=>{const Be=fi("dialog"),qe=fi("dialog-label"),ft=fi("dialog-content"),gt=s.internalDialog,At=Ci=>q2(Jo,Ci),$t=xi(gt.size),on=Xm($t.get()).toArray(),yn=(Ci,mi)=>($t.set(mi.internalDialog.size),x0(mi.internalDialog.size,Ci),we(),I.some(mi)),wn=qs(Rc({title:gt.title,draggable:!0},Be,qe,Z.shared.providers)),Mn=qs(Va({body:gt.body,initialData:gt.initialData},Be,ft,Z,ue,At)),Xn=Z2(gt.buttons),Br=hO(Xn),or=_t(Xn.length!==0,qs(SL({buttons:Xn},Be,Z))),Mr=Vk(()=>ho,{onBlock:Ci=>{Tv.block(Xr,(mi,qi)=>{const Fi=wn.getOpt(Xr).map(Os=>Ql(Os.element));return nd(Ci.message,qi,Z.shared.providers,Fi)})},onUnblock:()=>{Tv.unblock(Xr)},onClose:()=>F.closeWindow()},Z.shared.getSink),kr="tox-dialog-inline",yo=rf().os,Xr=vi({dom:{tag:"div",classes:["tox-dialog",kr,...on],attributes:{role:"dialog",...yo.isMacOS()?{"aria-label":gt.title}:{"aria-labelledby":qe}}},eventOrder:{[lp()]:[kn.name(),Wu.name()],[cp()]:["execute-on-form"],[zd()]:["reflecting","execute-on-form"]},behaviours:Bo([Li.config({mode:"cyclic",onEscape:Ci=>(Sa(Ci,nk),I.some(!0)),useTabstopAt:Ci=>!g4(Ci)&&(ar(Ci)!=="button"||ao(Ci,"disabled")!=="disabled"),firstTabstop:1}),kn.config({channel:`${KC}-${Be}`,updateState:yn,initialData:s}),oa.config({}),Ca("execute-on-form",Mr.concat([Wv(Sm(),(Ci,mi)=>{Li.focusIn(Ci)}),fo(Jg(),(Ci,mi)=>{Ci.getSystem().broadcastOn([JC],{newFocus:mi.event.newFocus})})])),Tv.config({getRoot:()=>I.some(Xr)}),da.config({}),YC({})]),components:[wn.asSpec(),Mn.asSpec(),...or.map(Ci=>Ci.asSpec()).toArray()]}),No=()=>{Bg(Xr,$t.get())},Jo={getId:x(Be),getRoot:x(Xr),getFooter:()=>or.map(Ci=>Ci.get(Xr)),getBody:()=>Mn.get(Xr),getFormWrapper:()=>{const Ci=Mn.get(Xr);return as.getCurrent(Ci).getOr(Ci)},toggleFullscreen:No},ho=Gr(Jo,F.redial,Br);return{dialog:Xr,instanceApi:ho}};var Gi=tinymce.util.Tools.resolve("tinymce.util.URI");const ts=s=>{const F=qe=>{s.getSystem().isConnected()&&qe(s)};return{block:qe=>{if(!n(qe))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");F(ft=>{Ri(ft,DC,{message:qe})})},unblock:()=>{F(qe=>{Sa(qe,TP)})},close:()=>{F(qe=>{Sa(qe,nk)})},sendMessage:qe=>{F(ft=>{ft.getSystem().broadcastOn([r9],qe)})}}},Lc=["insertContent","setContent","execCommand","close","block","unblock"],_0=s=>c(s)&&Lc.indexOf(s.mceAction)!==-1,wA=s=>!_0(s)&&c(s)&&ht(s,"mceAction"),Noe=(s,F,Z)=>{switch(Z.mceAction){case"insertContent":s.insertContent(Z.content);break;case"setContent":s.setContent(Z.content);break;case"execCommand":const ue=w(Z.ui)?Z.ui:!1;s.execCommand(Z.cmd,ue,Z.value);break;case"close":F.close();break;case"block":F.block(Z.message);break;case"unblock":F.unblock();break}},OA=(s,F,Z,ue)=>{const we=fi("dialog"),Be=Nu(s.title,we,ue),qe=Df(s),ft=s.buttons.bind(kr=>kr.length===0?I.none():I.some(Cv({buttons:kr},we,ue))),gt=dx(()=>Mr,Ou(()=>or,ue.shared.providers,F)),At={...s.height.fold(()=>({}),kr=>({height:kr+"px","max-height":kr+"px"})),...s.width.fold(()=>({}),kr=>({width:kr+"px","max-width":kr+"px"}))},$t=s.width.isNone()&&s.height.isNone()?["tox-dialog--width-lg"]:[],on=new Gi(s.url,{base_uri:new Gi(window.location.href)}),yn=`${on.protocol}://${on.host}${on.port?":"+on.port:""}`,wn=js(),Mn=(kr,yo)=>I.some(yo),Xn=[kn.config({channel:`${KC}-${we}`,updateState:Mn,initialData:s}),Ca("messages",[Ll(()=>{const kr=wd(Pt.fromDom(window),"message",yo=>{if(on.isSameOrigin(new Gi(yo.raw.origin))){const Xr=yo.raw.data;_0(Xr)?Noe(Z,Mr,Xr):wA(Xr)&&s.onMessage(Mr,Xr)}});wn.set(kr)}),Sh(wn.clear)]),Wu.config({channels:{[r9]:{onReceive:(kr,yo)=>{aa(kr.element,"iframe").each(Xr=>{const No=Xr.dom.contentWindow;a(No)&&No.postMessage(yo,yn)})}}}})],or=fx({id:we,header:Be,body:qe,footer:ft,extraClasses:$t,extraBehaviours:Xn,extraStyles:At},gt,ue),Mr=ts(or);return{dialog:or,instanceApi:Mr}},hx=s=>{const F=s.shared;return{open:(ue,we)=>{const Be=()=>{If.hide(At),we()},qe=qs(f8({name:"close-alert",text:"OK",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"cancel",s)),ft=m1(),gt=Rg(Be,F.providers),At=vi(xp({lazySink:()=>F.getSink(),header:Yu(ft,gt),body:Dh(ue,F.providers),footer:I.some(om(Lg([],[qe.asSpec()]))),onEscape:Be,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[fo(I2,Be)],eventOrder:{}}));If.show(At);const $t=qe.get(At);oa.focus($t)}}},cQ=s=>{const F=s.shared;return{open:(ue,we)=>{const Be=yn=>{If.hide($t),we(yn)},qe=qs(f8({name:"yes",text:"Yes",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"submit",s)),ft=f8({name:"no",text:"No",primary:!1,buttonType:I.some("secondary"),align:"end",enabled:!0,icon:I.none()},"cancel",s),gt=m1(),At=Rg(()=>Be(!1),F.providers),$t=vi(xp({lazySink:()=>F.getSink(),header:Yu(gt,At),body:Dh(ue,F.providers),footer:I.some(om(Lg([],[ft,qe.asSpec()]))),onEscape:()=>Be(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[fo(I2,()=>Be(!1)),fo(c4,()=>Be(!0))],eventOrder:{}}));If.show($t);const on=qe.get($t);oa.focus(on)}}},kL=(s,F)=>Nt(jt("data",F,s)),TL=s=>ek(s,".tox-alert-dialog")||ek(s,".tox-confirm-dialog"),uQ=(s,F,Z)=>F&&Z?[]:[Dl.config({contextual:{lazyContext:()=>I.some(Ya(Pt.fromDom(s.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:ue=>Jb(s,ue.element).map(Be=>({bounds:zw(Be),optScrollEnv:I.some({currentScrollTop:Be.element.dom.scrollTop,scrollElmTop:pc(Be.element).top})})).getOrThunk(()=>({bounds:wl(),optScrollEnv:I.none()}))})],$oe=s=>{const F=s.editor,Z=W3(F),ue=hx(s.backstages.dialog),we=cQ(s.backstages.dialog),Be=(Mn,Xn,Br)=>{if(!y(Xn)){if(Xn.inline==="toolbar")return At(Mn,s.backstages.popup.shared.anchors.inlineDialog(),Br,Xn);if(Xn.inline==="bottom")return $t(Mn,s.backstages.popup.shared.anchors.inlineBottomDialog(),Br,Xn);if(Xn.inline==="cursor")return At(Mn,s.backstages.popup.shared.anchors.cursor(),Br,Xn)}return gt(Mn,Br)},qe=(Mn,Xn)=>ft(Mn,Xn),ft=(Mn,Xn)=>{const Br=or=>{const Mr=OA(or,{closeWindow:()=>{If.hide(Mr.dialog),Xn(Mr.instanceApi)}},F,s.backstages.dialog);return If.show(Mr.dialog),Mr.instanceApi};return be.openUrl(Br,Mn)},gt=(Mn,Xn)=>{const Br=(or,Mr,kr)=>{const yo=Mr,No=Xo({dataValidator:kr,initialData:yo,internalDialog:or},{redial:be.redial,closeWindow:()=>{If.hide(No.dialog),Xn(No.instanceApi)}},s.backstages.dialog);return If.show(No.dialog),No.instanceApi.setData(yo),No.instanceApi};return be.open(Br,Mn)},At=(Mn,Xn,Br,or)=>{const Mr=(kr,yo,Xr)=>{const No=kL(yo,Xr),Jo=os(),ho=s.backstages.popup.shared.header.isPositionedAtTop(),Ci={dataValidator:Xr,initialData:No,internalDialog:kr},mi=()=>Jo.on(vs=>{hc.reposition(vs),(!Z||!ho)&&Dl.refresh(vs)}),qi=Vo(Ci,{redial:be.redial,closeWindow:()=>{Jo.on(hc.hide),F.off("ResizeEditor",mi),Jo.clear(),Br(qi.instanceApi)}},s.backstages.popup,or.ariaAttrs,mi),Fi=vi(hc.sketch({lazySink:s.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:or.persistent?{event:"doNotDismissYet"}:{},...ho?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Bo([Ca("window-manager-inline-events",[fo(I0(),(vs,Ha)=>{Sa(qi.dialog,I2)})]),...uQ(F,Z,ho)]),isExtraPart:(vs,Ha)=>TL(Ha)}));Jo.set(Fi);const Os=()=>{const vs=F.inline?Vr():Pt.fromDom(F.getContainer()),Ha=Ya(vs);return I.some(Ha)};return hc.showWithinBounds(Fi,na(qi.dialog),{anchor:Xn},Os),(!Z||!ho)&&(Dl.refresh(Fi),F.on("ResizeEditor",mi)),qi.instanceApi.setData(No),Li.focusIn(qi.dialog),qi.instanceApi};return be.open(Mr,Mn)},$t=(Mn,Xn,Br,or)=>{const Mr=(kr,yo,Xr)=>{const No=kL(yo,Xr),Jo=os(),ho=s.backstages.popup.shared.header.isPositionedAtTop(),Ci={dataValidator:Xr,initialData:No,internalDialog:kr},mi=()=>Jo.on(vs=>{hc.reposition(vs),Dl.refresh(vs)}),qi=Vo(Ci,{redial:be.redial,closeWindow:()=>{Jo.on(hc.hide),F.off("ResizeEditor ScrollWindow ElementScroll",mi),Jo.clear(),Br(qi.instanceApi)}},s.backstages.popup,or.ariaAttrs,mi),Fi=vi(hc.sketch({lazySink:s.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:or.persistent?{event:"doNotDismissYet"}:{},...ho?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Bo([Ca("window-manager-inline-events",[fo(I0(),(vs,Ha)=>{Sa(qi.dialog,I2)})]),Dl.config({contextual:{lazyContext:()=>I.some(Ya(Pt.fromDom(F.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:vs=>Jb(F,vs.element).map(Ho=>({bounds:zw(Ho),optScrollEnv:I.some({currentScrollTop:Ho.element.dom.scrollTop,scrollElmTop:pc(Ho.element).top})})).getOrThunk(()=>({bounds:wl(),optScrollEnv:I.none()}))})]),isExtraPart:(vs,Ha)=>TL(Ha)}));Jo.set(Fi);const Os=()=>s.backstages.popup.shared.getSink().toOptional().bind(vs=>{const Ha=Jb(F,vs.element),Ho=15,wi=Ha.map(ji=>zw(ji)).getOr(wl()),_a=Ya(Pt.fromDom(F.getContentAreaContainer())),Ki=dl(_a,wi);return I.some(ms(Ki.x,Ki.y,Ki.width,Ki.height-Ho))});return hc.showWithinBounds(Fi,na(qi.dialog),{anchor:Xn},Os),Dl.refresh(Fi),F.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",mi),qi.instanceApi.setData(No),Li.focusIn(qi.dialog),qi.instanceApi};return be.open(Mr,Mn)};return{open:Be,openUrl:qe,alert:(Mn,Xn)=>{ue.open(Mn,Xn)},close:Mn=>{Mn.close()},confirm:(Mn,Xn)=>{we.open(Mn,Xn)}}},Ga=s=>{JB(s),hX(s),mj(s)};var no=()=>{af.add("silver",s=>{Ga(s);let F=()=>wl();const{dialogs:Z,popups:ue,renderUI:we}=qre(s,{getPopupSinkBounds:()=>F()}),Be=()=>{const At=we();return Jb(s,ue.getMothership().element).each(on=>{F=()=>zw(on)}),At};aG.register(s,ue.backstage.shared);const qe=$oe({editor:s,backstages:{popup:ue.backstage,dialog:Z.backstage}}),ft=os(),gt=()=>mY(s,{backstage:ue.backstage},ue.getMothership(),ft);return{renderUI:Be,getWindowManagerImpl:x(qe),getNotificationManagerImpl:gt}})};no()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"math-equation":'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"revision-history":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":'',"export-pdf":'',"export-word":'',"import-word":''}});(function(){const t=m=>{let v=m;return{get:()=>v,set:A=>{v=A}}};var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.Env");const f=m=>m.dispatch("ResizeEditor"),P=m=>v=>v.options.get(m),d=m=>{const v=m.options.register;v("autoresize_overflow_padding",{processor:"number",default:1}),v("autoresize_bottom_margin",{processor:"number",default:50})},l=P("min_height"),n=P("max_height"),c=P("autoresize_overflow_padding"),b=P("autoresize_bottom_margin"),i=m=>m.plugins.fullscreen&&m.plugins.fullscreen.isFullscreen(),O=(m,v)=>{const _=m.getBody();_&&(_.style.overflowY=v?"":"hidden",v||(_.scrollTop=0))},w=(m,v,_,S)=>{var A;const x=parseInt((A=m.getStyle(v,_,S))!==null&&A!==void 0?A:"",10);return isNaN(x)?0:x},y=m=>{if((m==null?void 0:m.type.toLowerCase())==="setcontent"){const v=m;return v.selection===!0||v.paste===!0}else return!1},p=(m,v,_,S)=>{var A;const x=m.dom,R=m.getDoc();if(!R)return;if(i(m)){O(m,!0);return}const M=R.documentElement,T=S?S():c(m),E=(A=l(m))!==null&&A!==void 0?A:m.getElement().offsetHeight;let C=E;const L=w(x,M,"margin-top",!0),D=w(x,M,"margin-bottom",!0);let k=M.offsetHeight+L+D+T;k<0&&(k=0);const I=m.getContainer().offsetHeight,z=m.getContentAreaContainer().offsetHeight,$=I-z;k+$>E&&(C=k+$);const Q=n(m);Q&&C>Q?(C=Q,O(m,!0)):O(m,!1);const j=v.get();if(j.set&&(m.dom.setStyles(m.getDoc().documentElement,{"min-height":0}),m.dom.setStyles(m.getBody(),{"min-height":"inherit"})),C!==j.totalHeight&&(k-T!==j.contentHeight||!j.set)){const U=C-j.totalHeight;if(x.setStyle(m.getContainer(),"height",C+"px"),v.set({totalHeight:C,contentHeight:k,set:!0}),f(m),o.browser.isSafari()&&(o.os.isMacOS()||o.os.isiOS())){const X=m.getWin();X.scrollTo(X.pageXOffset,X.pageYOffset)}m.hasFocus()&&y(_)&&m.selection.scrollIntoView(),(o.browser.isSafari()||o.browser.isChromium())&&U<0&&p(m,v,_,S)}},a=(m,v)=>{const _=()=>b(m);m.on("init",S=>{const A=c(m),x=m.dom;x.setStyles(m.getDoc().documentElement,{height:"auto"}),o.browser.isEdge()||o.browser.isIE()?x.setStyles(m.getBody(),{paddingLeft:A,paddingRight:A,"min-height":0}):x.setStyles(m.getBody(),{paddingLeft:A,paddingRight:A}),p(m,v,S,_)}),m.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",S=>{p(m,v,S,_)})},u=(m,v)=>{m.addCommand("mceAutoResize",()=>{p(m,v)})};var h=()=>{e.add("autoresize",m=>{if(d(m),m.options.isSet("resize")||m.options.set("resize",!1),!m.inline){const v=t({totalHeight:0,contentHeight:0,set:!1});u(m,v),a(m,v)}})};h()})();var t$e=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],n$e=function(t){return t$e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},r$e=function(t,e,o){Object.keys(e).filter(n$e).forEach(function(f){var P=e[f];typeof P=="function"&&(f==="onInit"?P(t,o):o.on(f.substring(2),function(d){return P(d,o)}))})},o$e=function(t,e,o,f){var P=t.modelEvents?t.modelEvents:null,d=Array.isArray(P)?P.join(" "):P;Ni(f,function(l,n){o&&typeof l=="string"&&l!==n&&l!==o.getContent({format:t.outputFormat})&&o.setContent(l)}),o.on(d||"change input undo redo",function(){e.emit("update:modelValue",o.getContent({format:t.outputFormat}))})},i$e=function(t,e,o,f,P,d){f.setContent(d()),o.attrs["onUpdate:modelValue"]&&o$e(e,o,f,P),r$e(t,o.attrs,f)},x0e=0,mOe=function(t){var e=Date.now(),o=Math.floor(Math.random()*1e9);return x0e++,t+"_"+o+x0e+String(e)},a$e=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},_0e=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},s$e=function(t,e){return _0e(t).concat(_0e(e))},l$e=function(t){return t==null},w0e=function(){return{listeners:[],scriptId:mOe("tiny-script"),scriptLoaded:!1}},c$e=function(){var t=w0e(),e=function(P,d,l,n){var c=d.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=P,c.src=l;var b=function(){c.removeEventListener("load",b),n()};c.addEventListener("load",b),d.head&&d.head.appendChild(c)},o=function(P,d,l){t.scriptLoaded?l():(t.listeners.push(l),P.getElementById(t.scriptId)||e(t.scriptId,P,d,function(){t.listeners.forEach(function(n){return n()}),t.scriptLoaded=!0}))},f=function(){t=w0e()};return{load:o,reinitialize:f}},u$e=c$e(),f$e=function(){return typeof window<"u"?window:global},Gk=function(){var t=f$e();return t&&t.tinymce?t.tinymce:null},d$e={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},J2=globalThis&&globalThis.__assign||function(){return J2=Object.assign||function(t){for(var e,o=1,f=arguments.length;od.createCell(c))},U1e({code:Oo(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Do(),sa(l,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=c=>o.cellData.code=c),init:P.init,onKeyUp:d.saveCell},null,8,["modelValue","init","onKeyUp"])):Za("",!0)]),_:2},[t.$devMode&&d.isAppRoute||!t.$devMode?{name:"outcome",fn:Oo(()=>[Ht(l,{modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=c=>o.cellData.code=c),init:P.app_init,disabled:!0},null,8,["modelValue","init"])]),key:"0"}:void 0]),1032,["cell-id","is-dev-mode","hide-cell","cell-name","onSave","onDelete"])}const gOe=hm(g$e,[["render",v$e]]),y$e=36,O0e=1,b$e=2,HL=3,aae=4,x$e=5,_$e=6,w$e=7,O$e=8,S$e=9,k$e=10,T$e=11,C$e=12,A$e=13,M$e=14,E$e=15,P$e=16,R$e=17,S0e=18,L$e=19,vOe=20,yOe=21,k0e=22,I$e=23,D$e=24;function ile(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57}function B$e(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function Jk(t,e,o){for(let f=!1;;){if(t.next<0)return;if(t.next==e&&!f){t.advance();return}f=o&&!f&&t.next==92,t.advance()}}function z$e(t){for(;;){if(t.next<0||t.peek(1)<0)return;if(t.next==36&&t.peek(1)==36){t.advance(2);return}t.advance()}}function F$e(t,e){let o="[{<(".indexOf(String.fromCharCode(e)),f=o<0?e:"]}>)".charCodeAt(o);for(;;){if(t.next<0)return;if(t.next==f&&t.peek(1)==39){t.advance(2);return}t.advance()}}function bOe(t,e){for(;!(t.next!=95&&!ile(t.next));)e!=null&&(e+=String.fromCharCode(t.next)),t.advance();return e}function N$e(t){if(t.next==39||t.next==34||t.next==96){let e=t.next;t.advance(),Jk(t,e,!1)}else bOe(t)}function T0e(t,e){for(;t.next==48||t.next==49;)t.advance();e&&t.next==e&&t.advance()}function C0e(t,e){for(;;){if(t.next==46){if(e)break;e=!0}else if(t.next<48||t.next>57)break;t.advance()}if(t.next==69||t.next==101)for(t.advance(),(t.next==43||t.next==45)&&t.advance();t.next>=48&&t.next<=57;)t.advance()}function A0e(t){for(;!(t.next<0||t.next==10);)t.advance()}function Kk(t,e){for(let o=0;o!=&|~^/",specialVar:"?",identifierQuotes:'"',words:xOe(V$e,$$e)};function U$e(t,e,o,f){let P={};for(let d in ale)P[d]=(t.hasOwnProperty(d)?t:ale)[d];return e&&(P.words=xOe(e,o||"",f)),P}function _Oe(t){return new A0(e=>{var o;let{next:f}=e;if(e.advance(),Kk(f,sae)){for(;Kk(e.next,sae);)e.advance();e.acceptToken(y$e)}else if(f==36&&e.next==36&&t.doubleDollarQuotedStrings)z$e(e),e.acceptToken(HL);else if(f==39||f==34&&t.doubleQuotedStrings)Jk(e,f,t.backslashEscapes),e.acceptToken(HL);else if(f==35&&t.hashComments||f==47&&e.next==47&&t.slashComments)A0e(e),e.acceptToken(O0e);else if(f==45&&e.next==45&&(!t.spaceAfterDashes||e.peek(1)==32))A0e(e),e.acceptToken(O0e);else if(f==47&&e.next==42){e.advance();for(let P=1;;){let d=e.next;if(e.next<0)break;if(e.advance(),d==42&&e.next==47){if(P--,e.advance(),!P)break}else d==47&&e.next==42&&(P++,e.advance())}e.acceptToken(b$e)}else if((f==101||f==69)&&e.next==39)e.advance(),Jk(e,39,!0);else if((f==110||f==78)&&e.next==39&&t.charSetCasts)e.advance(),Jk(e,39,t.backslashEscapes),e.acceptToken(HL);else if(f==95&&t.charSetCasts)for(let P=0;;P++){if(e.next==39&&P>1){e.advance(),Jk(e,39,t.backslashEscapes),e.acceptToken(HL);break}if(!ile(e.next))break;e.advance()}else if(t.plsqlQuotingMechanism&&(f==113||f==81)&&e.next==39&&e.peek(1)>0&&!Kk(e.peek(1),sae)){let P=e.peek(1);e.advance(2),F$e(e,P),e.acceptToken(HL)}else if(f==40)e.acceptToken(w$e);else if(f==41)e.acceptToken(O$e);else if(f==123)e.acceptToken(S$e);else if(f==125)e.acceptToken(k$e);else if(f==91)e.acceptToken(T$e);else if(f==93)e.acceptToken(C$e);else if(f==59)e.acceptToken(A$e);else if(t.unquotedBitLiterals&&f==48&&e.next==98)e.advance(),T0e(e),e.acceptToken(k0e);else if((f==98||f==66)&&(e.next==39||e.next==34)){const P=e.next;e.advance(),t.treatBitsAsBytes?(Jk(e,P,t.backslashEscapes),e.acceptToken(I$e)):(T0e(e,P),e.acceptToken(k0e))}else if(f==48&&(e.next==120||e.next==88)||(f==120||f==88)&&e.next==39){let P=e.next==39;for(e.advance();B$e(e.next);)e.advance();P&&e.next==39&&e.advance(),e.acceptToken(aae)}else if(f==46&&e.next>=48&&e.next<=57)C0e(e,!0),e.acceptToken(aae);else if(f==46)e.acceptToken(M$e);else if(f>=48&&f<=57)C0e(e,!1),e.acceptToken(aae);else if(Kk(f,t.operatorChars)){for(;Kk(e.next,t.operatorChars);)e.advance();e.acceptToken(E$e)}else if(Kk(f,t.specialVar))e.next==f&&e.advance(),N$e(e),e.acceptToken(R$e);else if(Kk(f,t.identifierQuotes))Jk(e,f,!1),e.acceptToken(L$e);else if(f==58||f==44)e.acceptToken(P$e);else if(ile(f)){let P=bOe(e,String.fromCharCode(f));e.acceptToken(e.next==46?S0e:(o=t.words[P.toLowerCase()])!==null&&o!==void 0?o:S0e)}})}const wOe=_Oe(ale),j$e=fS.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,wOe],topRules:{Script:[0,25]},tokenPrec:0});function sle(t){let e=t.cursor().moveTo(t.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function iD(t,e){let o=t.sliceString(e.from,e.to),f=/^([`'"])(.*)\1$/.exec(o);return f?f[2]:o}function EZ(t){return t&&(t.name=="Identifier"||t.name=="QuotedIdentifier")}function Q$e(t,e){if(e.name=="CompositeIdentifier"){let o=[];for(let f=e.firstChild;f;f=f.nextSibling)EZ(f)&&o.push(iD(t,f));return o}return[iD(t,e)]}function M0e(t,e){for(let o=[];;){if(!e||e.name!=".")return o;let f=sle(e);if(!EZ(f))return o;o.unshift(iD(t,f)),e=sle(f)}}function H$e(t,e){let o=Gu(t).resolveInner(e,-1),f=q$e(t.doc,o);return o.name=="Identifier"||o.name=="QuotedIdentifier"||o.name=="Keyword"?{from:o.from,quoted:o.name=="QuotedIdentifier"?t.doc.sliceString(o.from,o.from+1):null,parents:M0e(t.doc,sle(o)),aliases:f}:o.name=="."?{from:e,quoted:null,parents:M0e(t.doc,o),aliases:f}:{from:e,quoted:null,parents:[],empty:!0,aliases:f}}const Z$e=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function q$e(t,e){let o;for(let P=e;!o;P=P.parent){if(!P)return null;P.name=="Statement"&&(o=P)}let f=null;for(let P=o.firstChild,d=!1,l=null;P;P=P.nextSibling){let n=P.name=="Keyword"?t.sliceString(P.from,P.to).toLowerCase():null,c=null;if(!d)d=n=="from";else if(n=="as"&&l&&EZ(P.nextSibling))c=iD(t,P.nextSibling);else{if(n&&Z$e.has(n))break;l&&EZ(P)&&(c=iD(t,P))}c&&(f||(f=Object.create(null)),f[c]=Q$e(t,l)),l=/Identifier$/.test(P.name)?P:null}return f}function W$e(t,e){return t?e.map(o=>Object.assign(Object.assign({},o),{label:t+o.label+t,apply:void 0})):e}const Y$e=/^\w*$/,X$e=/^[`'"]?\w*[`'"]?$/;class Bue{constructor(){this.list=[],this.children=void 0}child(e,o){let f=this.children||(this.children=Object.create(null)),P=f[e];return P||(e&&this.list.push(OOe(e,"type",o)),f[e]=new Bue)}addCompletions(e){for(let o of e){let f=this.list.findIndex(P=>P.label==o.label);f>-1?this.list[f]=o:this.list.push(o)}}}function OOe(t,e,o){return/[^\w\xb5-\uffff]/.test(t)?{label:t,type:e,apply:o+t+o}:{label:t,type:e}}function G$e(t,e,o,f,P,d){var l;let n=new Bue,c=((l=d==null?void 0:d.spec.identifierQuotes)===null||l===void 0?void 0:l[0])||'"',b=n.child(P||"",c);for(let i in t){let O=i.replace(/\\?\./g,y=>y=="."?"\0":y).split("\0"),w=O.length==1?b:n;for(let y of O)w=w.child(y.replace(/\\\./g,"."),c);for(let y of t[i])y&&w.list.push(typeof y=="string"?OOe(y,"property",c):y)}return e&&b.addCompletions(e),o&&n.addCompletions(o),n.addCompletions(b.list),f&&n.addCompletions(b.child(f,c).list),i=>{let{parents:O,from:w,quoted:y,empty:p,aliases:a}=H$e(i.state,i.pos);if(p&&!i.explicit)return null;a&&O.length==1&&(O=a[O[0]]||O);let u=n;for(let v of O){for(;!u.children||!u.children[v];)if(u==n)u=b;else if(u==b&&f)u=u.child(f,c);else return null;u=u.child(v,c)}let h=y&&i.state.sliceDoc(i.pos,i.pos+1)==y,m=u.list;return u==n&&a&&(m=m.concat(Object.keys(a).map(v=>({label:v,type:"constant"})))),{from:w,to:h?i.pos+1:void 0,options:W$e(y,m),validFor:y?X$e:Y$e}}}function K$e(t,e){let o=Object.keys(t).map(f=>({label:e?f.toUpperCase():f,type:t[f]==yOe?"type":t[f]==vOe?"keyword":"variable",boost:-1}));return Mce(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],oq(o))}let J$e=j$e.configure({props:[OT.add({Statement:dI()}),vS.add({Statement(t){return{from:t.firstChild.to,to:t.to}},BlockComment(t){return{from:t.from+2,to:t.to-2}}}),gS({Keyword:Gn.keyword,Type:Gn.typeName,Builtin:Gn.standard(Gn.name),Bits:Gn.number,Bytes:Gn.string,Bool:Gn.bool,Null:Gn.null,Number:Gn.number,String:Gn.string,Identifier:Gn.name,QuotedIdentifier:Gn.special(Gn.string),SpecialVar:Gn.special(Gn.name),LineComment:Gn.lineComment,BlockComment:Gn.blockComment,Operator:Gn.operator,"Semi Punctuation":Gn.punctuation,"( )":Gn.paren,"{ }":Gn.brace,"[ ]":Gn.squareBracket})]});class zue{constructor(e,o,f){this.dialect=e,this.language=o,this.spec=f}get extension(){return this.language.extension}static define(e){let o=U$e(e,e.keywords,e.types,e.builtin),f=cS.define({name:"sql",parser:J$e.configure({tokenizers:[{from:wOe,to:_Oe(o)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new zue(o,f,e)}}function eVe(t,e=!1){return K$e(t.dialect.words,e)}function tVe(t,e=!1){return t.language.data.of({autocomplete:eVe(t,e)})}function nVe(t){return t.schema?G$e(t.schema,t.tables,t.schemas,t.defaultTable,t.defaultSchema,t.dialect||Fue):()=>null}function rVe(t){return t.schema?(t.dialect||Fue).language.data.of({autocomplete:nVe(t)}):[]}function E0e(t={}){let e=t.dialect||Fue;return new gT(e.language,[rVe(t),tVe(e,!!t.upperCaseKeywords)])}const Fue=zue.define({}),oVe={components:{cell:zq,codemirror:sq,"v-data-table":Iq},computed:{isAppRoute(){return _T().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode()},e=IO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)}]);return this.$devMode&&!this.isAppRoute?[Vv.highest(e),E0e(),gM,pM({override:[]})]:[jl.readOnly.of(!0),Vv.highest(e),E0e(),gM,pM({override:[]})]},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},inheritAttrs:!1,emits:["runCode","deleteCell","createCell","saveCell"],data(){return{isFocused:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},setup(){const t=Ai(null);return{view:t,handleReady:o=>{t.value=o.view}}},mounted(){},methods:{runCode(){this.$emit("runCode",this.cellData.id,this.cellData.nonReactive)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){this.$devMode&&this.$emit("saveCell",this.cellData.id,this.cellData.code,"","")},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},updateShowTable(t){this.cellData.showTable=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const iVe={key:2},aVe={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},sVe={class:"text-ellipsis app-static-name"},lVe={key:3},cVe={class:"text-caption text-disabled text-right"},uVe={class:"text-p"};function fVe(t,e,o,f,P,d){const l=Zd("codemirror"),n=Zd("cell");return Do(),sa(n,{"cell-type":"sql","cell-id":o.cellData.id,"hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,showTable:o.cellData.showTable,"cell-name":o.cellData.cellName,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:d.runCode,onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=c=>d.expandCodeUpdate(c)),onHideCode:e[6]||(e[6]=c=>d.hideCode(c)),onUpdateReactivity:e[7]||(e[7]=c=>d.updateReactivity(c)),onUpdateShowTable:e[8]||(e[8]=c=>d.updateShowTable(c)),onRenameCell:e[9]||(e[9]=c=>d.renameCell(c)),onAddCell:e[10]||(e[10]=c=>d.createCell(c))},{code:Oo(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Do(),sa(um,{key:0,modelValue:o.cellData.variable_name,"onUpdate:modelValue":e[0]||(e[0]=c=>o.cellData.variable_name=c),label:"Enter SQL variable name",density:"compact"},null,8,["modelValue"])):Za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Do(),sa(l,{key:1,modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=c=>o.cellData.code=c),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):(Do(),Da("div",iVe,[o.cellData.hideCode?(Do(),Da("h4",aVe,sc(o.cellData.cellName),1)):(Do(),sa(Z_e,{key:1,modelValue:P.expanded,"onUpdate:modelValue":e[4]||(e[4]=c=>P.expanded=c)},{default:Oo(()=>[Ht(H_e,{modelValue:P.expanded,"onUpdate:modelValue":e[3]||(e[3]=c=>P.expanded=c),"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Ht(_Z,{class:"text-bluegrey-darken-1"},{default:Oo(()=>[ha("h4",sVe,sc(o.cellData.cellName),1)]),_:1}),Ht(xZ,null,{default:Oo(()=>[Ht(l,{modelValue:o.cellData.code,"onUpdate:modelValue":e[2]||(e[2]=c=>o.cellData.code=c),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Do(),Da("div",lVe,[ha("p",cVe,sc(d.shortcutText)+" to run",1)])):Za("",!0)]),outcome:Oo(()=>[t.$devMode&&!d.isAppRoute||o.cellData.showTable?(Do(!0),Da(ma,{key:0},ob(o.cellData.components,c=>(Do(),sa(xM,{key:c.id},{default:Oo(()=>[(Do(),sa(kI(c.component),Ii(c,{modelValue:c.value,"onUpdate:modelValue":b=>c.value=b},{[tI(c.triggerEvent)]:d.runCode}),null,16,["modelValue","onUpdate:modelValue"]))]),_:2},1024))),128)):Za("",!0),ha("div",uVe,sc(o.cellData.output),1)]),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","showTable","cell-name","currentlyExecutingCell","isCodeRunning","is-dev-mode","onPlay","onDelete"])}const SOe=hm(oVe,[["render",fVe],["__scopeId","data-v-0948e122"]]),dVe={components:{codemirror:sq},data:()=>({updatingDependencies:!1,ztAliases:Kh}),emits:["updateDependencies"],props:{dependencies:{type:Object,required:!0},dependencyOutput:{type:Object,required:!0}},computed:{extensions(){return[jl.readOnly.of(!0),hOe(),gM]}},methods:{async updateDependencies(){this.dependencyOutput.isLoading=!0,this.$emit("updateDependencies",this.dependencies)}}},hVe=ha("span",{class:"text-h5"},"Add Dependencies",-1),pVe=ha("a",{href:"https://pip.pypa.io/en/stable/reference/requirements-file-format/",target:"_blank"},"pip requirements file specification",-1),mVe={class:"d-flex justify-center"};function gVe(t,e,o,f,P,d){const l=Zd("codemirror");return Do(),sa(Eq,{modelValue:t.updatingDependencies,"onUpdate:modelValue":e[3]||(e[3]=n=>t.updatingDependencies=n),width:"1024"},{activator:Oo(({props:n})=>[Ht(ls,Ii({color:"bluegrey-darken-4"},n,{icon:"mdi-package",class:"text-bluegrey"}),null,16)]),default:Oo(()=>[Ht(BO,null,{default:Oo(()=>[Ht(PD,null,{default:Oo(()=>[hVe]),_:1}),Ht(r_e,null,{default:Oo(()=>[Ss(" Versions must adhere to "),pVe,Ss(". Examples: '==1.0.0' '!=1.5.0,>=1.4.1' etc. ")]),_:1}),Ht(m_,null,{default:Oo(()=>[(Do(!0),Da(ma,null,ob(o.dependencies.dependencies,n=>(Do(),sa(zf,null,{default:Oo(()=>[Ht(Dq,null,{default:Oo(()=>[Ht(hT,null,{default:Oo(()=>[Ht(um,{modelValue:n.package,"onUpdate:modelValue":c=>n.package=c,label:"Package (required)"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),Ht(hT,null,{default:Oo(()=>[Ht(um,{modelValue:n.version,"onUpdate:modelValue":c=>n.version=c,label:"Version"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),Ht(hT,{cols:"1"},{default:Oo(()=>[Ht(ls,{icon:"",color:"primary"},{default:Oo(()=>[Ht(Al,{color:"black",onClick:c=>{var b;return(b=o.dependencies.dependencies)==null?void 0:b.splice(o.dependencies.dependencies.indexOf(n),1)}},{default:Oo(()=>[Ss("mdi-delete")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256)),Ht(zf,{class:"d-flex justify-center align-center"},{default:Oo(()=>[Ht(ls,{icon:"mdi-plus",variant:"text",onClick:e[0]||(e[0]=n=>{var c;return(c=o.dependencies.dependencies)==null?void 0:c.push({package:"",version:""})}),text:"Add Dependency",class:"black--text"})]),_:1}),o.dependencyOutput.output?(Do(),sa(zf,{key:0},{default:Oo(()=>[Ht(l,{modelValue:o.dependencyOutput.output,"onUpdate:modelValue":e[1]||(e[1]=n=>o.dependencyOutput.output=n),style:{height:"400px"},"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})):Za("",!0)]),_:1}),Ht(n_e,null,{default:Oo(()=>[o.dependencyOutput.isLoading?Za("",!0):(Do(),sa(ls,{key:0,color:"primary",variant:"flat",onClick:d.updateDependencies,text:"Install"},null,8,["onClick"])),ha("div",mVe,[o.dependencyOutput.isLoading?(Do(),sa(LM,{key:0,indeterminate:"",color:"primary"})):Za("",!0)]),Ht(V_e),Ht(ls,{color:"error",variant:"text",onClick:e[2]||(e[2]=n=>t.updatingDependencies=!1),text:"Close"})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const kOe=hm(dVe,[["render",gVe]]),P0e=Hg({__name:"CommentMenu",emits:["deleteComment","editComment"],setup(t,{emit:e}){const o=LD();return(f,P)=>(Do(),sa(pS,null,{activator:Oo(({props:d})=>[Ht(ls,Ii({icon:`ztIcon:${wa(Kh).more}`},d,{variant:"plain",size:"small"}),null,16,["icon"])]),default:Oo(()=>[Ht(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Ht(zf,{disabled:!wa(o).editorAvailable,onClick:P[0]||(P[0]=d=>e("editComment"))},{prepend:Oo(()=>[Ht(Al,{icon:`ztIcon:${wa(Kh).edit}`},null,8,["icon"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Edit")]),_:1})]),_:1},8,["disabled"]),Ht(zf,{"base-color":"error",onClick:P[1]||(P[1]=d=>e("deleteComment"))},{prepend:Oo(()=>[Ht(Al,{icon:`ztIcon:${wa(Kh).delete}`},null,8,["icon"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Delete")]),_:1})]),_:1})]),_:1})]),_:1}))}}),vVe={class:"d-flex justify-end"},lae=Hg({__name:"CommentTextarea",props:{isSaving:Boolean,modelValue:String},emits:["cancel","submit","update:modelValue"],setup(t,{emit:e}){const o=ti(null),f=ti(null);return sg(()=>{var P,d;(P=f.value)==null||P.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(d=o.value)==null||d.focus()}),(P,d)=>(Do(),Da("div",{class:"d-flex flex-column",style:{flex:"1"},ref_key:"commentEditContainer",ref:f},[Ht(RD,{"model-value":t.modelValue,ref_key:"commentEditTextArea",ref:o,"onUpdate:modelValue":d[0]||(d[0]=l=>e("update:modelValue",l)),variant:"outlined"},null,8,["model-value"]),ha("div",vVe,[Ht(ls,{variant:"text",onClick:d[1]||(d[1]=l=>e("cancel"))},{default:Oo(()=>[Ss("Cancel")]),_:1}),Ht(ls,{color:"primary",class:"ml-2",loading:t.isSaving,disabled:!t.modelValue||t.isSaving,onClick:d[2]||(d[2]=l=>e("submit"))},{default:Oo(()=>[Ss("Submit")]),_:1},8,["loading","disabled"])])],512))}});var Gm=[];for(var cae=0;cae<256;++cae)Gm.push((cae+256).toString(16).slice(1));function yVe(t,e=0){return(Gm[t[e+0]]+Gm[t[e+1]]+Gm[t[e+2]]+Gm[t[e+3]]+"-"+Gm[t[e+4]]+Gm[t[e+5]]+"-"+Gm[t[e+6]]+Gm[t[e+7]]+"-"+Gm[t[e+8]]+Gm[t[e+9]]+"-"+Gm[t[e+10]]+Gm[t[e+11]]+Gm[t[e+12]]+Gm[t[e+13]]+Gm[t[e+14]]+Gm[t[e+15]]).toLowerCase()}var oH,bVe=new Uint8Array(16);function xVe(){if(!oH&&(oH=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!oH))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oH(bVe)}var _Ve=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const R0e={randomUUID:_Ve};function TOe(t,e,o){if(R0e.randomUUID&&!e&&!t)return R0e.randomUUID();t=t||{};var f=t.random||(t.rng||xVe)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,e){o=o||0;for(var P=0;P<16;++P)e[o+P]=f[P];return e}return yVe(f)}const wVe={class:"messages"},OVe={class:"message mb-4"},SVe={class:"d-flex justify-space-between align-start"},kVe={key:1,class:"message__content"},TVe={class:"d-flex align-center"},CVe={class:"d-flex align-center"},AVe={class:"message__timestamp"},MVe={class:"message mb-4 d-flex"},EVe={class:"ml-6 flex-1-1"},PVe={class:"d-flex justify-space-between align-start"},RVe={key:1,class:"message__content"},LVe={class:"d-flex align-center"},IVe={class:"d-flex align-center"},DVe={class:"message__timestamp"},BVe={key:0,class:"text-box"},zVe=Hg({__name:"Comment",props:{comment:{type:Object,required:!0}},setup(t){const e=t,o=LD(),f=Ai(""),P=Ai(!1),d=Ai(!1),l=Ai(void 0),n=Ai(""),c=Ai(!1);function b(a){o.editorAvailable=!1,l.value=a.id,n.value=a.comment}function i(){o.editorAvailable=!0,l.value=void 0}async function O(a,u){l.value&&(c.value=!0,await o.editComment(l.value,a,n.value,u),c.value=!1,l.value=void 0,n.value="",o.editorAvailable=!0)}async function w(a,u,h){await o.deleteComment(a,u,h)}async function y(){d.value=!0;const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},u=Intl.DateTimeFormat("en-US",a).format(new Date),h={id:TOe(),cell:e.comment.cell,userName:"",date:u,comment:f.value,replies:[],resolved:!1};await o.replyComment(e.comment.id,h),d.value=!1,f.value="",P.value=!1,o.editorAvailable=!0}async function p(a,u){await o.resolveComment(a,u)}return(a,u)=>(Do(),Da("div",wVe,[ha("div",OVe,[ha("div",SVe,[wa(l)===t.comment.id?(Do(),sa(lae,{key:0,modelValue:wa(n),"onUpdate:modelValue":u[0]||(u[0]=h=>Dc(n)?n.value=h:null),isSaving:wa(c),onCancel:i,onSubmit:u[1]||(u[1]=h=>O(t.comment.cell.cellId??""))},null,8,["modelValue","isSaving"])):(Do(),Da("p",kVe,sc(t.comment.comment),1)),ha("div",TVe,[!t.comment.resolved&&!wa(l)?(Do(),sa(ls,{key:0,icon:"$success",variant:"plain",ripple:!1,onClick:u[2]||(u[2]=()=>p(t.comment.id,t.comment.cell.cellId??""))})):Za("",!0),wa(l)?Za("",!0):(Do(),sa(P0e,{key:1,onEditComment:u[3]||(u[3]=()=>{t.comment.resolved||b(t.comment)}),onDeleteComment:u[4]||(u[4]=()=>w(t.comment.id,t.comment.cell.cellId??""))}))])]),ha("div",CVe,[ha("p",AVe,sc(t.comment.date),1)])]),(Do(!0),Da(ma,null,ob(t.comment.replies,h=>(Do(),Da("div",MVe,[Ht(bM,{class:"indicator",vertical:"",color:"bluegrey",thickness:1}),ha("div",EVe,[ha("div",PVe,[wa(l)===h.id?(Do(),sa(lae,{key:0,modelValue:wa(n),"onUpdate:modelValue":u[5]||(u[5]=m=>Dc(n)?n.value=m:null),isSaving:wa(c),onCancel:i,onSubmit:u[6]||(u[6]=()=>O(t.comment.cell.cellId??"",t.comment.id))},null,8,["modelValue","isSaving"])):(Do(),Da("p",RVe,sc(h.comment),1)),ha("div",LVe,[ha("div",null,[wa(l)?Za("",!0):(Do(),sa(P0e,{key:0,onEditComment:()=>{t.comment.resolved||b(h)},onDeleteComment:()=>w(h.id,t.comment.cell.cellId??"",t.comment.id)},null,8,["onEditComment","onDeleteComment"]))])])]),ha("div",IVe,[ha("p",DVe,sc(h.date),1)])])]))),256)),wa(P)?(Do(),Da("div",BVe,[Ht(lae,{modelValue:wa(f),"onUpdate:modelValue":u[7]||(u[7]=h=>Dc(f)?f.value=h:null),"is-saving":wa(d),onCancel:u[8]||(u[8]=()=>{wa(o).editorAvailable=!0,P.value=!1}),onSubmit:y},null,8,["modelValue","is-saving"])])):Za("",!0),!wa(P)&&!t.comment.resolved?(Do(),sa(ls,{key:1,variant:"text",slim:"",disabled:!wa(o).editorAvailable,onClick:u[9]||(u[9]=()=>{wa(o).editorAvailable=!1,P.value=!0})},{default:Oo(()=>[Ss("Reply")]),_:1},8,["disabled"])):Za("",!0)]))}});const FVe=hm(zVe,[["__scopeId","data-v-588566c2"]]),COe=t=>(Mle("data-v-793087b5"),t=t(),Ele(),t),NVe={key:0,class:"d-flex justify-space-between align-center pa-4"},$Ve={class:"d-flex align-center"},VVe={class:"justify-right"},UVe={class:"content ma-4"},jVe={class:"d-flex justify-space-between align-center"},QVe={class:"mt-6 flex-1-1"},HVe={key:0,class:"empty-state"},ZVe=COe(()=>ha("p",null,"No comments yet",-1)),qVe=COe(()=>ha("p",{class:"empty-state__text mt-2"}," Add a comment by clicking on the cell you want to add a comment to. ",-1)),WVe={key:1,class:"comments-wrapper"},YVe={class:"d-flex justify-end"},XVe=Hg({__name:"Comments",setup(t){const e=LD(),{addComment:o,closeComments:f}=e,{selectedCell:P}=kue(e),d=ti(null),l=ti(null),n=Un(()=>{var u;return(u=P.value)==null?void 0:u.cellType}),c=Un(()=>{var u;switch((u=P.value)==null?void 0:u.cellType){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),b=Ai(!1),i=Ai(!1),O=Ai(""),w=Ai(!1),y=Un(()=>e.displayedComments.filter(u=>b.value?u.resolved:!u.resolved));Ni(P,()=>{b.value=!1,i.value=!1,O.value="",w.value=!1});function p(){i.value=!i.value,e.editorAvailable=!1,lc(()=>{var u,h;(u=d.value)==null||u.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(h=d.value)==null||h.focus()})}async function a(){w.value=!0;const u={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},h=Intl.DateTimeFormat("en-US",u).format(new Date),m={id:TOe(),cell:e.selectedCell,userName:"",date:h,comment:O.value,replies:[],resolved:!1};await o(m),w.value=!1,O.value="",i.value=!1,e.editorAvailable=!0}return(u,h)=>(Do(),sa(BO,{class:"card"},{default:Oo(()=>[wa(P)?(Do(),Da("div",NVe,[ha("div",$Ve,[Ht(Al,{icon:`ztIcon:${wa(Kh)[wa(n)??"code"]}`,color:wa(c),class:"mr-2"},null,8,["icon","color"]),ha("p",{class:"mb-0 font-weight-bold",style:cD({color:wa(c)})},sc(wa(P).cellName),5)]),ha("div",VVe,[wa(b)?Za("",!0):(Do(),sa(ls,{key:0,icon:"mdi-comment-plus-outline",color:"bluegrey-darken-4",disabled:!wa(e).editorAvailable,onClick:p},null,8,["disabled"])),Ht(ls,{icon:"mdi:mdi-close",variant:"text",ripple:!1,onClick:h[0]||(h[0]=m=>wa(f)())})])])):Za("",!0),ha("div",UVe,[ha("div",jVe,[Ht(l2e,{modelValue:wa(b),"onUpdate:modelValue":h[1]||(h[1]=m=>Dc(b)?b.value=m:null),border:!1,mandatory:"force",color:"primary",rounded:"pill"},{default:Oo(()=>[Ht(ls,{value:!1,class:"mr-4"},{default:Oo(()=>[Ss("Open")]),_:1}),Ht(ls,{value:!0,class:"mr-4"},{default:Oo(()=>[Ss("Resolved")]),_:1})]),_:1},8,["modelValue"])]),ha("div",QVe,[!wa(e).displayedComments.length&&!wa(i)?(Do(),Da("div",HVe,[Ht(Al,{icon:`ztIcon:${wa(Kh).message}`},null,8,["icon"]),ZVe,qVe])):(Do(),Da("div",WVe,[(Do(!0),Da(ma,null,ob(wa(y),m=>(Do(),sa(FVe,{comment:m},null,8,["comment"]))),256)),wa(i)?(Do(),Da("div",{key:0,class:"text-box",ref_key:"addCommentContainer",ref:l},[Ht(RD,{variant:"outlined",modelValue:wa(O),"onUpdate:modelValue":h[2]||(h[2]=m=>Dc(O)?O.value=m:null),ref_key:"addCommentTextArea",ref:d},null,8,["modelValue"]),ha("div",YVe,[Ht(ls,{variant:"text",onClick:h[3]||(h[3]=()=>{wa(e).editorAvailable=!0,i.value=!1})},{default:Oo(()=>[Ss("Cancel")]),_:1}),Ht(ls,{color:"primary",class:"ml-2",disabled:!wa(O)||wa(w),loading:wa(w),onClick:h[4]||(h[4]=m=>a())},{default:Oo(()=>[Ss("Submit")]),_:1},8,["disabled","loading"])])],512)):Za("",!0)]))])])]),_:1}))}});const GVe=hm(XVe,[["__scopeId","data-v-793087b5"]]),KVe={props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},inheritAttrs:!1,emits:["runCode","deleteCell","saveCell","createCell","componentValueChange","copilotCompletion","updateTimers"],components:{"add-cell":Sue,CodeComponent:nwe,MarkdownComponent:pOe,EditorComponent:gOe,SQLComponent:SOe,PackageComponent:kOe},data(){return{menu_items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],concatenatedCodeCache:{lastCellId:"",code:"",length:0}}},computed:{isAppRoute(){return _T().path==="/app"}},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},runCode(t,e,o){this.$emit("runCode",t,e,o)},deleteCell(t){this.$emit("deleteCell",t)},saveCell(t,e,o,f){this.$emit("saveCell",t,e,o,f)},createCodeCell(t,e){this.$emit("createCell",t,e)},componentValueChange(t,e,o,f){this.$emit("componentValueChange",t,e,o,f)},copilotCompletion(t,e,o,f){this.$emit("copilotCompletion",t,e,o,f)},updateTimers(t,e){this.$emit("updateTimers",t,e)}}};function JVe(t,e,o,f,P,d){const l=Zd("add-cell");return Do(),Da(ma,null,[Ht(xM,{style:{"margin-top":"12px"}},{default:Oo(()=>[t.$devMode&&!d.isAppRoute?(Do(),sa(l,{key:0,onCreateCodeCell:e[0]||(e[0]=n=>d.createCodeCell("",n))})):Za("",!0)]),_:1}),(Do(!0),Da(ma,null,ob(o.notebook.cells,n=>(Do(),sa(xM,{class:Nv(["cell-container",{"cell-container--app":!t.$devMode||d.isAppRoute}])},{default:Oo(()=>[n.cellType==="code"?(Do(),sa(kI(d.getComponent(n.cellType)),{key:0,cellData:n,completions:o.completions[n.id],currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.updateTimers},null,40,["cellData","completions","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])):(Do(),sa(kI(d.getComponent(n.cellType)),{key:1,cellData:n,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell},null,40,["cellData","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell"]))]),_:2},1032,["class"]))),256))],64)}const eUe=hm(KVe,[["render",JVe]]),tUe=Hg({name:"SignInDialogComponent",setup(){const t=ti(!1),e=ti(!1),o=ti(!1),f=ti(null),P=async()=>{try{const O=await fu.post("copilot/start_node_server",{});console.log("Copilot started successfully")}catch(O){console.error("Error during starting the Node server:",O)}},d=async()=>{try{const O=await fu.post("copilot/check_status",{});b(O.data)}catch(O){console.error("Error during initial status check:",O)}},l=async()=>{try{const O=await fu.post("copilot/sign_in_initiate",{});b(O.data)}catch(O){console.error("Error during sign in initiation:",O)}},n=async()=>{try{const O=await fu.post("copilot/sign_in_confirm",{userCode:f.value.userCode});b(O.data)}catch(O){console.error("Error during sign in confirmation:",O)}},c=async()=>{try{await fu.post("copilot/sign_out",{}),o.value=!1,f.value=null,Lv.copilot_active=!1}catch(O){console.error("Error during sign out:",O)}},b=O=>{f.value=O,O.status==="OK"||O.status==="AlreadySignedIn"?(o.value=!0,Lv.copilot_active=!0):O.status==="NotSignedIn"&&(o.value=!1)};return{dialog:t,isSignedIn:o,serverStarted:e,signInData:f,signInInitiate:l,confirmSignIn:n,signOut:c,startServerAndCheckStatus:async()=>{try{await P(),setTimeout(async()=>{await d()},2500),e.value=!0}catch(O){console.error("Error during starting the server or checking status:",O)}},ztAliases:Kh}}}),nUe=ha("span",{class:"text-h4"},"GitHub Copilot ",-1),rUe={key:1},oUe={key:0},iUe=ha("p",null,"Please go to the following URL and enter the code to sign in:",-1),aUe=ha("strong",null,"URL:",-1),sUe=["href"],lUe=ha("strong",null,"Code:",-1),cUe={key:1},uUe={key:2};function fUe(t,e,o,f,P,d){return Do(),sa(Eq,{modelValue:t.dialog,"onUpdate:modelValue":e[1]||(e[1]=l=>t.dialog=l),"max-width":"400px"},{activator:Oo(({props:l})=>[Ht(ls,Ii({color:"bluegrey-darken-4"},l,{icon:`ztIcon:${t.ztAliases.copilot}`}),null,16,["icon"])]),default:Oo(()=>[Ht(BO,null,{default:Oo(()=>[Ht(PD,null,{default:Oo(()=>[nUe]),_:1}),Ht(pue,null,{default:Oo(()=>[t.serverStarted?t.serverStarted&&!t.isSignedIn?(Do(),Da("div",rUe,[t.signInData&&t.signInData.verificationUri&&t.signInData.userCode?(Do(),Da("div",oUe,[iUe,ha("p",null,[aUe,ha("a",{href:t.signInData.verificationUri,target:"_blank"},sc(t.signInData.verificationUri),9,sUe)]),ha("p",null,[lUe,Ss(" "+sc(t.signInData.userCode),1)]),Ht(ls,{color:"primary",onClick:t.confirmSignIn},{default:Oo(()=>[Ss("I Signed In")]),_:1},8,["onClick"])])):t.signInData&&t.signInData.status&&t.signInData.user?(Do(),Da("div",cUe,[ha("p",null,"Status: "+sc(t.signInData.status),1),ha("p",null,"User: "+sc(t.signInData.user),1)])):(Do(),Da("div",uUe,[Ht(ls,{color:"primary",onClick:t.signInInitiate},{default:Oo(()=>[Ss("Sign In")]),_:1},8,["onClick"])]))])):t.isSignedIn?(Do(),sa(ls,{key:2,color:"primary",onClick:t.signOut},{default:Oo(()=>[Ss("Sign Out")]),_:1},8,["onClick"])):Za("",!0):(Do(),sa(ls,{key:0,color:"primary",onClick:t.startServerAndCheckStatus},{default:Oo(()=>[Ss("Start Server ")]),_:1},8,["onClick"]))]),_:1}),Ht(ls,{class:"ma-2",icon:"mdi:mdi-close",variant:"plain",position:"absolute",location:"top right",onClick:e[0]||(e[0]=l=>t.dialog=!1)})]),_:1})]),_:1},8,["modelValue"])}const dUe=hm(tUe,[["render",fUe]]),hUe=ha("span",{class:"text-h5"},"Publish Notebook",-1),pUe=ha("span",null,[Ss("Need an API Key? Create an account "),ha("a",{href:"https://www.zero-true.com/contact",target:"_blank"},"here")],-1),mUe=ha("br",null,null,-1),gUe=ha("br",null,null,-1),vUe={class:"d-flex justify-center"},yUe=Hg({__name:"ShareComponent",setup(t){const e=ti(!1),o=ti({userName:"",projectName:"",apiKey:"",teamName:""}),f=ti(!1),P={required:n=>!!n||"Required."},d=ti(!1),l=async()=>{if(f.value){d.value=!0;try{await fu.post("api/share_notebook",o.value),console.log("Share request submitted successfully"),e.value=!1}catch(n){console.error("Error submitting share request:",n)}d.value=!1}};return(n,c)=>(Do(),sa(Eq,{modelValue:e.value,"onUpdate:modelValue":c[6]||(c[6]=b=>e.value=b),"max-width":"600px"},{activator:Oo(({props:b})=>[Ht(ls,Ii(b,{"prepend-icon":`ztIcon:${wa(Kh).share}`,variant:"flat",ripple:"",color:"primary",class:"text-bluegrey-darken-4"}),{default:Oo(()=>[Ss(" Publish ")]),_:2},1040,["prepend-icon"])]),default:Oo(()=>[Ht(BO,null,{default:Oo(()=>[Ht(PD,null,{default:Oo(()=>[hUe]),_:1}),Ht(pue,null,{default:Oo(()=>[Ht(NDe,{ref:"form",modelValue:f.value,"onUpdate:modelValue":c[5]||(c[5]=b=>f.value=b),onSubmit:DH(l,["prevent"])},{default:Oo(()=>[Ht(um,{label:"User Name",modelValue:o.value.userName,"onUpdate:modelValue":c[0]||(c[0]=b=>o.value.userName=b),rules:[P.required],required:""},null,8,["modelValue","rules"]),Ht(um,{label:"Project Name",modelValue:o.value.projectName,"onUpdate:modelValue":c[1]||(c[1]=b=>o.value.projectName=b),rules:[P.required],required:""},null,8,["modelValue","rules"]),Ht(um,{label:"API Key",modelValue:o.value.apiKey,"onUpdate:modelValue":c[2]||(c[2]=b=>o.value.apiKey=b),rules:[P.required],required:""},null,8,["modelValue","rules"]),Ht(um,{label:"Team Name (Optional)",modelValue:o.value.teamName,"onUpdate:modelValue":c[3]||(c[3]=b=>o.value.teamName=b)},null,8,["modelValue"]),pUe,mUe,gUe,Ht(Dq,{justify:"space-between"},{default:Oo(()=>[Ht(hT,{cols:"auto"},{default:Oo(()=>[d.value?Za("",!0):(Do(),sa(ls,{key:0,type:"submit",color:"primary"},{default:Oo(()=>[Ss("Publish")]),_:1})),ha("div",vUe,[d.value?(Do(),sa(LM,{key:0,indeterminate:"",color:"primary"})):Za("",!0)])]),_:1}),Ht(hT,{cols:"auto"},{default:Oo(()=>[Ht(ls,{onClick:c[4]||(c[4]=b=>e.value=!1),color:"error"},{default:Oo(()=>[Ss("Cancel")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onSubmit"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});class L0e{constructor(e){_c(this,"timerId",null);_c(this,"duration");this.duration=e}start(e){this.timerId===null&&(this.timerId=window.setTimeout(()=>{e(),this.timerId=null},this.duration))}stop(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}}const bUe={props:{currentPath:{type:String,required:!0}},emits:["file-uploaded"],data:()=>({uploadingFile:!1,fileInput:null,formData:null,fileName:"",snackbar:!1,snackbarText:"",ztAliases:Kh}),methods:{onDrop(t){var o;t.preventDefault();const e=(o=t.dataTransfer)==null?void 0:o.files;e&&e.length>0?this.handleFileUpload(e[0]):console.error("No file dropped")},onClickBrowseFiles(){this.$refs.fileInput&&this.$refs.fileInput.click()},handleFileChange(t){const e=t.target.files;e&&e.length>0?this.handleFileUpload(e[0]):console.error("No file selected")},handleFileUpload(t){this.formData=new FormData,this.formData.append("file",t),this.fileName=t.name,console.log(t)},async submitFile(){if(this.formData)try{this.formData.append("path",this.currentPath);const t=await fu.post("api/upload_file",this.formData,{headers:{"Content-Type":"multipart/form-data"}});console.log("File processed",t.data),this.snackbarText="File uploaded successfully",this.snackbar=!0,this.uploadingFile=!1,this.$emit("file-uploaded")}catch(t){console.error("Error processing file:",t),this.snackbarText="Error uploading file",this.snackbar=!0}else console.error("No file to submit"),this.snackbarText="No file selected",this.snackbar=!0},cleanUp(){this.formData=null,this.fileName="",this.snackbarText=""}}};const AOe=t=>(Mle("data-v-7dd18b31"),t=t(),Ele(),t),xUe=AOe(()=>ha("div",{class:"mb-1"},"or",-1)),_Ue={key:0,class:"my-4"},wUe=AOe(()=>ha("strong",null,"File selected:",-1));function OUe(t,e,o,f,P,d){return Do(),sa(Eq,{modelValue:t.uploadingFile,"onUpdate:modelValue":e[3]||(e[3]=l=>t.uploadingFile=l),width:"444",class:"text-center mb-8",rounded:"lg"},{activator:Oo(({props:l})=>[Ht(ls,Ii(l,{class:"mb-2",icon:"mdi-upload",color:"bluegrey-darken-4"}),null,16)]),default:Oo(()=>[Ht(BO,{onDrop:d.onDrop,onDragover:e[2]||(e[2]=DH(()=>{},["prevent"]))},{default:Oo(()=>[ha("input",{class:"d-none",type:"file",ref:"fileInput",onChange:e[0]||(e[0]=(...l)=>d.handleFileChange&&d.handleFileChange(...l))},null,544),Ht(PD,{class:"pb-0"},{default:Oo(()=>[Ss("Drag files to upload")]),_:1}),xUe,Ht(ls,{class:"mb-2",color:"primary",variant:"outlined",size:"large",text:"Browse files",rounded:"pill",onClick:d.onClickBrowseFiles},{default:Oo(()=>[Ss(" Browse files ")]),_:1},8,["onClick"]),t.fileName?(Do(),Da("div",_Ue,[wUe,Ss(" "+sc(t.fileName),1)])):Za("",!0),Ht(ls,{onClick:d.submitFile,color:"primary",class:"mt-4"},{default:Oo(()=>[Ss("Submit")]),_:1},8,["onClick"]),Ht(eBe,{modelValue:t.snackbar,"onUpdate:modelValue":e[1]||(e[1]=l=>t.snackbar=l),timeout:3e3,top:""},{default:Oo(()=>[Ss(sc(t.snackbarText),1)]),_:1},8,["modelValue"])]),_:1},8,["onDrop"])]),_:1},8,["modelValue"])}const SUe=hm(bUe,[["render",OUe],["__scopeId","data-v-7dd18b31"]]),kUe=Hg({name:"SidebarComponent",components:{FileUploader:SUe},props:{drawer:Boolean,items:Array,handleFileChange:Function,isMobile:Boolean,isAppRoute:Boolean},emits:["update:drawer","update:items"],setup(t,{emit:e}){const o=ti(t.drawer),f=ti(t.items||[]),P=ti("."),d=ti([]);Ni(()=>t.drawer,O=>{o.value=O}),Ni(o,O=>{e("update:drawer",O)});const l=async O=>{try{const w=await fu.get("api/get_children",{params:{path:O}});f.value=w.data.files,e("update:items",w.data.files)}catch(w){console.error("Failed to load files:",w)}};return sg(()=>{l(P.value)}),{localDrawer:o,localItems:f,handleItemClick:O=>{O.file==="folder"&&(d.value.push(P.value),P.value=O.id,l(P.value))},goBack:()=>{d.value.length>0&&(P.value=d.value.pop()||".",l(P.value))},pathStack:d,currentPath:P,refreshFiles:()=>{l(P.value)},fileIcon:O=>{switch(O){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}}}}}),TUe={class:"d-flex"};function CUe(t,e,o,f,P,d){const l=Zd("FileUploader");return t.$devMode&&!t.isMobile&&!t.isAppRoute?(Do(),sa(q_e,{key:0,modelValue:t.localDrawer,"onUpdate:modelValue":e[1]||(e[1]=n=>t.localDrawer=n),app:"",class:"sidebar",color:"bluegrey-darken-4"},{default:Oo(()=>[ha("div",TUe,[t.pathStack.length>0?(Do(),sa(ls,{key:0,onClick:t.goBack,color:"bluegrey-darken-4",icon:"mdi-arrow-left"},null,8,["onClick"])):Za("",!0),Ht(V_e),Ht(l,{"current-path":t.currentPath,onFileUploaded:t.refreshFiles},null,8,["current-path","onFileUploaded"]),Ht(ls,{color:"bluegrey-darken-4",icon:"mdi-close",onClick:e[0]||(e[0]=n=>t.localDrawer=!1)})]),Ht(m_,null,{default:Oo(()=>[(Do(!0),Da(ma,null,ob(t.localItems,n=>(Do(),sa(zf,{key:n.id,onClick:c=>t.handleItemClick(n)},{default:Oo(()=>[n.file==="folder"?(Do(),sa(Al,{key:0},{default:Oo(()=>[Ss(sc("mdi-folder"))]),_:1})):(Do(),sa(Al,{key:1},{default:Oo(()=>[Ss(sc(t.fileIcon(n.file)),1)]),_:2},1024)),Ht(qy,null,{default:Oo(()=>[Ss(sc(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue"])):Za("",!0)}const AUe=hm(kUe,[["render",CUe]]);class ZL{constructor(e,o={}){_c(this,"socket");_c(this,"pingInterval");_c(this,"pingTimeout");_c(this,"url");_c(this,"options");_c(this,"reconnectAttempts",0);_c(this,"maxReconnectAttempts",3);_c(this,"connected",!1);this.url=e,this.options=o}initializeSocket(){return this.socket=new WebSocket(this.url),this.socket.onclose=e=>{var o,f;console.log(`WebSocket closed: ${this.url}, Code: ${e.code}, Reason: ${e.reason}`),this.stopPing(),(f=(o=this.options).onClose)==null||f.call(o,e),this.connected&&(this.reconnectSocket(),this.connected=!1)},this.socket.onmessage=e=>{var o,f;e.data==="pong"?clearTimeout(this.pingTimeout):(f=(o=this.options).onMessage)==null||f.call(o,e)},new Promise((e,o)=>{this.socket.onopen=()=>{var f,P;console.log(`WebSocket connected: ${this.url}`),this.connected=!0,this.startPing(),(P=(f=this.options).onOpen)==null||P.call(f),e("")},this.socket.onerror=f=>{var P,d;console.error(`WebSocket error: ${this.url}`,f),(d=(P=this.options).onError)==null||d.call(P,f),o(f)}})}startPing(){const e=this.options.pingInterval||3e4;this.pingInterval=window.setInterval(()=>{this.socket.readyState===WebSocket.OPEN&&(this.socket.send(JSON.stringify({type:"ping"})),this.pingTimeout=window.setTimeout(()=>{console.log(`Ping timeout: ${this.url}`),this.socket.close()},5e3))},e)}stopPing(){clearInterval(this.pingInterval),clearTimeout(this.pingTimeout)}reconnectSocket(){const e=this.options.reconnectDelay||2e3;this.reconnectAttempts{try{await this.initializeSocket(),this.reconnectAttempts=0,console.log(`WebSocket reconnected successfully: ${this.url}`)}catch(o){console.error(`Reconnect attempt failed for WebSocket: ${this.url}`,o),this.reconnectAttempts++,this.reconnectSocket()}},e)):(console.error(`Max reconnect attempts reached for WebSocket: ${this.url}. Giving up.`),Lv.connection_lost=!0)}send(e){this.socket.readyState===WebSocket.OPEN?this.socket.send(e):console.warn(`WebSocket not open: ${this.url}`)}close(){this.stopPing(),this.socket.close()}}const MUe={components:{CodeComponent:nwe,MarkdownComponent:pOe,EditorComponent:gOe,SQLComponent:SOe,PackageComponent:kOe,CodeCellManager:eUe,CopilotComponent:dUe,ShareComponent:yUe,SidebarComponent:AUe,Comments:GVe},data(){return{editingProjectName:!1,errorMessage:"",notebook:{},notebookName:"",notebookEditName:"",dependencies:{},completions:{},ws_url:"",pythonVersion:"",ztVersion:"",notebook_socket:null,save_socket:null,run_socket:null,stop_socket:null,dependency_socket:null,timer:0,startTime:0,timerInterval:null,isCodeRunning:!1,currentlyExecutingCell:void 0,requestQueue:[],componentChangeQueue:[],drawer:!1,files:[],tree:[],items:[],openFolders:[],reactiveMode:!0,showComments:!1,concatenatedCodeCache:{lastCellId:"",code:"",followingCode:"",length:0},dependencyOutput:{output:"",isLoading:!1},ztAliases:Kh}},setup(){const t=LD(),{showAllComments:e,loadComments:o}=t,{showComments:f}=kue(t);return{showComments:f,loadComments:o,showAllComments:e}},beforeMount(){window.addEventListener("beforeunload",this.clearState),window.addEventListener("unload",this.clearState)},beforeUnmount(){window.removeEventListener("beforeunload",this.clearState),window.removeEventListener("unload",this.clearState)},async mounted(){await this.get_env_data(),await this.connectSockets(),this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:""}))},computed:{isAppRoute(){return _T().path==="/app"},isMobile(){return this.$vuetify.display.mobile},cellLength(){return this.notebook.cells?Object.keys(this.notebook.cells).length:0},runningQueue(){return this.$devMode?this.requestQueue:this.componentChangeQueue},queueLength(){return this.runningQueue.length},socketsDisconnected(){return Lv.connection_lost}},methods:{async connectSockets(){this.notebook_socket=new ZL(this.ws_url+"ws/notebook",{onMessage:t=>this.notebookOnMessage(t)}),this.run_socket=new ZL(this.$devMode?this.ws_url+"ws/run_code":this.ws_url+"ws/component_run",{onMessage:t=>this.runOnMessage(t)}),this.stop_socket=new ZL(this.ws_url+"ws/stop_execution"),await this.notebook_socket.initializeSocket(),await this.run_socket.initializeSocket(),await this.stop_socket.initializeSocket(),this.$devMode&&(this.save_socket=new ZL(this.ws_url+"ws/save_text",{onMessage:t=>this.saveOnMessage(t)}),this.dependency_socket=new ZL(this.ws_url+"ws/dependency_update",{onMessage:t=>this.dependencyOnMessage(t)}),await this.save_socket.initializeSocket(),await this.dependency_socket.initializeSocket())},toggleProjectName(){this.editingProjectName=!this.editingProjectName,this.editingProjectName&&(this.notebookEditName=this.notebookName,lc(()=>{this.$refs.projectNameField.focus()}))},async saveProjectName(){if(this.editingProjectName){const t={notebookName:this.notebookEditName};await fu.post("api/notebook_name_update",t),this.notebookName=this.notebookEditName,document.title=this.notebookName,this.editingProjectName=!1}},startTimer(){this.startTime=Date.now(),this.timer=0,this.timerInterval=setInterval(()=>{const t=Date.now();this.timer=t-this.startTime},99)},stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)},async get_env_data(){const e=(await fu.get("env_data")).data;this.ws_url=e.ws_url||"ws://localhost:2613/",this.pythonVersion=e.python_version,this.ztVersion=e.zt_version},updateDrawer(t){this.drawer=t},updateItems(t){this.items=t},handleFileChange(t,e){const o=e.target.files;if(o&&o.length>0){const f=new FormData;f.append("file",o[0]),fu.post("api/upload_file",f,{headers:{"Content-Type":"multipart/form-data"}}).then(P=>console.log("File processed",P.data)).catch(P=>console.error("Error processing file:",P.response))}else console.error("No file selected")},fileIcon(t){switch(t){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}},async runCode(t){const e=[],o={};for(let P in this.notebook.cells){const d={id:P,code:this.notebook.cells[P].code,variable_name:this.notebook.cells[P].variable_name||"",nonReactive:this.notebook.cells[P].nonReactive,showTable:this.notebook.cells[P].showTable,cellType:this.notebook.cells[P].cellType};for(const l of this.notebook.cells[P].components)l.component==="v-data-table"?o[l.id]="":o[l.id]=l.value;e.push(d)}const f={originId:t,reactiveMode:this.reactiveMode,cells:e,components:o};if(this.isCodeRunning){const P=this.requestQueue.findIndex(d=>d.originId===t);P!==-1?this.requestQueue[P]=f:this.requestQueue.push(f);return}this.sendRunCodeRequest(f)},sendRunCodeRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},notebookOnMessage(t){const e=JSON.parse(t.data);if(e.notebook_name)this.notebookName=e.notebook_name,document.title=this.notebookName;else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.env_stale)this.errorMessage="Some dependencies are not installed in the current environment. Open dependency manager to install missing dependencies";else if(e.complete)this.isCodeRunning=!1,this.stopTimer();else{const o=typeof e=="string"?JSON.parse(e):e;if(o.notebook){this.notebook=o.notebook;for(let f in this.notebook.cells)this.notebook.cells[f].cellType==="code"&&(this.completions[f]=[]),this.loadComments(this.notebook.cells[f].comments??{},f,this.notebook.cells[f].cellType,this.notebook.cells[f].cellName??"");this.dependencies=o.dependencies}else this.notebook.cells&&this.notebook.cells[o.id]&&(this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout)}},runOnMessage(t){const e=JSON.parse(t.data);if(e.cell_executing!=null)this.currentlyExecutingCell=e.cell_executing;else if(!this.$devMode&&e.refresh)this.notebookRefresh();else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.complete){if(this.isCodeRunning=!1,this.stopTimer(),this.$devMode&&this.requestQueue.length>0){const o=this.requestQueue.shift()||{};this.sendRunCodeRequest(o)}else if(!this.$devMode&&this.componentChangeQueue.length>0){const o=this.componentChangeQueue.shift()||{},f={originId:o.originId,components:o.components,userId:o.userId};this.sendComponentRequest(f)}}else{const o=JSON.parse(e);this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout}},saveOnMessage(t){try{const e=JSON.parse(t.data);this.completions[e.cell_id]=Array.isArray(e.completions)?e.completions:[]}catch(e){console.error("Error parsing server message:",e)}},dependencyOnMessage(t){try{const e=JSON.parse(t.data);e.output?this.dependencyOutput.output=this.dependencyOutput.output.concat(e.output):(this.dependencies=JSON.parse(e),this.dependencyOutput.isLoading=!1),this.errorMessage=""}catch(e){console.error("Error parsing server message:",e)}},async componentValueChange(t,e,o){const f={};for(let l in this.notebook.cells)for(const n of this.notebook.cells[l].components)n.component==="v-data-table"?f[n.id]="":f[n.id]=n.value;const P={originId:t,componentId:e,components:f,userId:this.notebook.userId};if(this.isCodeRunning){const l=this.componentChangeQueue.findIndex(n=>n.componentId===e);l!==-1?this.componentChangeQueue[l]=P:this.componentChangeQueue.push(P);return}const d={originId:P.originId,components:P.components,userId:P.userId};this.sendComponentRequest(d)},async sendComponentRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},async notebookRefresh(){this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:"start"}))},navigateToApp(){window.open("https://zero-true.com/")},clearState:function(){const e={userId:this.notebook.userId};fu.post("api/clear_state",e)},async createCodeCell(t,e){const o={cellType:e.toLowerCase(),position_key:t},P=(await fu.post("api/create_cell",o)).data;let d={};t||(d[P.id]=P);for(let l in this.notebook.cells)d[l]=this.notebook.cells[l],t===l&&(d[P.id]=P);P.cellType==="code"&&(this.completions[P.id]=[]),this.notebook.cells=d},async deleteCell(t){const e={cellId:t};await fu.post("api/delete_cell",e),this.notebook.cells[t].cellType==="code"&&delete this.completions[t],delete this.notebook.cells[t]},async saveCell(t,e,o,f){if(this.notebook.cells[t].cellType==="code"&&this.concatenatedCodeCache.lastCellId!==t){let d="",l="",n=0,c=!0;for(let b in this.notebook.cells){if(b===t){c=!1;continue}this.notebook.cells[b].cellType==="code"&&(c?(d+=this.notebook.cells[b].code+` `,n+=this.notebook.cells[b].code.split(/\r\n|\r|\n/).length):l+=this.notebook.cells[b].code+` `)}this.concatenatedCodeCache={lastCellId:t,code:d,followingCode:l,length:n}}const P={id:t,text:e,cellType:this.notebook.cells[t].cellType,line:this.concatenatedCodeCache.length+o,column:f,code_w_context:this.concatenatedCodeCache.code+e+this.concatenatedCodeCache.followingCode};this.save_socket.send(JSON.stringify(P))},async copilotCompletion(t,e,o,f){if(this.concatenatedCodeCache.lastCellId!==t){let d="",l="",n=0,c=!0;for(let b in this.notebook.cells){if(b===t){c=!1;continue}this.notebook.cells[b].cellType==="code"&&(c?(d+=this.notebook.cells[b].code+` `,n+=this.notebook.cells[b].code.split(/\r\n|\r|\n/).length):l+=this.notebook.cells[b].code+` -`)}this.concatenatedCodeCache={lastCellId:t,code:d,followingCode:l,length:n}}const P=await fu.post("copilot/get_completions",{doc:{version:1,uri:"file:///notebook.ztnb",position:{line:this.concatenatedCodeCache.length+e,character:o}}});f(P)},async stopCodeExecution(){this.$devMode?(this.requestQueue=[],this.stop_socket.send(JSON.stringify({userId:""}))):(this.componentChangeQueue=[],this.stop_socket.send(JSON.stringify({userId:this.notebook.userId})));for(let t in this.notebook.cells)for(const e of this.notebook.cells[t].components)(e.component==="v-btn"||e.component==="v-timer")&&(e.value=!1);this.isCodeRunning=!1,this.stopTimer()},getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},async updateDependencies(t){this.dependencyOutput.output="";const e={dependencies:t};this.dependency_socket.send(JSON.stringify(e))},startTimerComponents(t,e){if(!Pv.timers[t])Pv.timers[t]={};else for(const o in Pv.timers[t])Pv.timers[t][o].stop(),delete Pv.timers[t][o];for(const o of e)this.startTimerComponent(t,o.id,o.interval)},startTimerComponent(t,e,o){const f=()=>{const P=new R0e(o);Pv.timers[t][e]=P,P.start(f),this.notebook.cells[t].components.find(d=>d.id===e).value=!0,this.$devMode?this.runCode(t):this.componentValueChange(t,e,!0)};if(!Pv.timers[t][e]){const P=new R0e(o);Pv.timers[t][e]=P,P.start(f)}}}};const Fue=t=>(Mle("data-v-4b6b6f0a"),t=t(),Ele(),t),CUe={key:0,class:"click-edit"},AUe={key:0,class:"click-edit__show-text"},MUe={key:1,class:"click-edit__edit-field-wrapper"},EUe={key:1,class:"text-ellipsis text-h5"},PUe={key:2,class:"toggle-group"},RUe={class:zv(["content","px-8","d-flex","justify-center"])},LUe={class:"content__cells flex-grow-1",transition:"slide-x-transition"},IUe={class:"footer__left-container"},DUe={class:"footer__right-container"},BUe={key:0,class:"footer__queue-length-wrapper"},zUe=Fue(()=>pa("span",{class:"text-bluegrey"},"Python #2",-1)),FUe={class:"footer__status-wrapper"},NUe={key:0,class:"footer__status"},$Ue=Fue(()=>pa("span",null,"Running",-1)),VUe={key:1,class:"footer__status footer__status--error"},UUe=Fue(()=>pa("span",null,"Stopped",-1));function jUe(t,e,o,f,P,d){const l=Zd("ShareComponent"),n=Zd("CopilotComponent"),c=Zd("PackageComponent"),b=Zd("SidebarComponent"),i=Zd("CodeCellManager"),O=Zd("Comments");return Bo(),la(x9e,null,{default:Oo(()=>[Zt(I9e,{app:"",color:"bluegrey-darken-4",height:"51",id:"appBar",class:"zt-app-bar"},{append:Oo(()=>[Zt(hT,{class:"d-flex justify-end"},{default:Oo(()=>[pa("div",null,[Zt(q_e,{text:"Run All",location:"bottom",color:"primary"},{activator:Oo(({props:w})=>[t.$devMode&&!d.isAppRoute?(Bo(),la(ps,Di({key:0,icon:`ztIcon:${P.ztAliases.play}`},w,{variant:"flat",ripple:"",color:"bluegrey-darken-4",onClick:e[3]||(e[3]=y=>d.runCode(""))}),null,16,["icon"])):Wa("",!0)]),_:1}),t.$devMode&&!d.isAppRoute?(Bo(),la(hS,{key:0,"close-on-content-click":!1},{activator:Oo(({props:w})=>[Zt(ps,Di({icon:`ztIcon:${P.ztAliases.settings}`},w),null,16,["icon"])]),default:Oo(()=>[Zt(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Zt(Bf,null,{prepend:Oo(()=>[Zt($A,{modelValue:P.reactiveMode,"onUpdate:modelValue":e[4]||(e[4]=w=>P.reactiveMode=w)},null,8,["modelValue"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Reactive Mode")]),_:1})]),_:1})]),_:1})]),_:1})):Wa("",!0),t.$devMode&&!d.isAppRoute?(Bo(),la(l,{key:1})):Wa("",!0)])]),_:1})]),default:Oo(()=>[Zt(ps,{size:"x-large",ripple:!1,icon:`ztIcon:${P.ztAliases.logo}`,variant:"plain",onClick:d.navigateToApp,id:"Navbutton",class:"logo-btn"},null,8,["icon","onClick"]),t.$devMode&&!d.isAppRoute?(Bo(),Da("div",CUe,[P.editingProjectName?Wa("",!0):(Bo(),Da("div",AUe,[pa("h5",{class:"click-edit__name text-ellipsis text-h5",onClick:e[0]||(e[0]=(...w)=>d.toggleProjectName&&d.toggleProjectName(...w))},sc(P.notebookName),1)])),P.editingProjectName?(Bo(),Da("div",MUe,[Zt(um,{modelValue:P.notebookEditName,"onUpdate:modelValue":e[1]||(e[1]=w=>P.notebookEditName=w),placeholder:"Zero True",density:"compact",variant:"plain","hide-details":"",ref:"projectNameField",class:"click-edit__edit-field",onKeydown:cve(d.saveProjectName,["enter"]),"onUpdate:focused":e[2]||(e[2]=w=>{w||d.saveProjectName()})},null,8,["modelValue","onKeydown"])])):Wa("",!0)])):(Bo(),Da("h5",EUe,sc(P.notebookName),1)),t.$devMode&&!d.isMobile?(Bo(),Da("div",PUe,[Zt(s2e,{multiple:!1,density:"compact",mandatory:""},{default:Oo(()=>[Zt(ps,{color:d.isAppRoute?"bluegrey-darken-1":"primary",variant:d.isAppRoute?"text":"flat",class:zv({"text-bluegrey-darken-4":!d.isAppRoute}),"prepend-icon":`ztIcon:${P.ztAliases.notebook}`,to:"/",id:"notebookBtn"},{default:Oo(()=>[Cs(" Notebook")]),_:1},8,["color","variant","class","prepend-icon"]),Zt(ps,{color:d.isAppRoute?"primary":"bluegrey-darken-1",variant:d.isAppRoute?"flat":"text",class:zv({"text-bluegrey-darken-4":d.isAppRoute}),"prepend-icon":`ztIcon:${P.ztAliases.monitor}`,to:"/app",id:"appBtn"},{default:Oo(()=>[Cs("App")]),_:1},8,["color","variant","class","prepend-icon"])]),_:1})])):Wa("",!0)]),_:1}),t.$devMode&&!d.isMobile&&!d.isAppRoute?(Bo(),la(Z_e,{key:0,rail:!0,color:"bluegrey-darken-4",style:{"padding-top":"12px","padding-bottom":"12px"}},{append:Oo(()=>[Zt(Bf,null,{default:Oo(()=>[t.$devMode&&!d.isAppRoute?(Bo(),la(n,{key:0})):Wa("",!0)]),_:1}),Zt(Bf,null,{default:Oo(()=>[Zt(ps,{color:"bluegrey-darken-4",icon:"mdi-folder-multiple",onClick:e[5]||(e[5]=w=>P.drawer=!0),class:"text-bluegrey"})]),_:1}),Zt(Bf,null,{default:Oo(()=>[t.$devMode&&!d.isAppRoute?(Bo(),la(c,{key:0,dependencies:P.dependencies,dependencyOutput:P.dependencyOutput,onUpdateDependencies:d.updateDependencies},null,8,["dependencies","dependencyOutput","onUpdateDependencies"])):Wa("",!0)]),_:1})]),_:1})):Wa("",!0),Zt(b,{drawer:P.drawer,items:P.items,tree:P.tree,fileIcon:d.fileIcon,isMobile:d.isMobile,isAppRoute:d.isAppRoute,"onUpdate:drawer":d.updateDrawer,"onUpdate:items":d.updateItems,onHandleFileChange:d.handleFileChange,style:{"padding-top":"12px","padding-bottom":"12px"}},null,8,["drawer","items","tree","fileIcon","isMobile","isAppRoute","onUpdate:drawer","onUpdate:items","onHandleFileChange"]),Zt($De,{scrollable:!1,class:"w-100 mx-auto"},{default:Oo(()=>[P.errorMessage?(Bo(),la(bM,{key:0},{default:Oo(()=>[Zt(sge,{type:"error"},{default:Oo(()=>[Cs(sc(P.errorMessage),1)]),_:1})]),_:1})):Wa("",!0),d.socketsDisconnected?(Bo(),la(bM,{key:1},{default:Oo(()=>[Zt(sge,{type:"error"},{default:Oo(()=>[Cs(" Connection to the server has been lost. Please refresh the page. ")]),_:1})]),_:1})):Wa("",!0),pa("div",RUe,[pa("div",LUe,[Zt(i,{notebook:P.notebook,completions:P.completions,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.startTimerComponents},null,8,["notebook","completions","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])]),pa("div",{class:zv(["content__comments",{"content__comments--show":f.showComments}])},[Zt(O)],2)])]),_:1}),d.isMobile?Wa("",!0):(Bo(),la(BDe,{key:1,app:"",class:"footer bg-bluegrey-darken-4 text-bluegrey"},{default:Oo(()=>[pa("div",IUe,[pa("span",null,[pa("span",null,"Python "+sc(P.pythonVersion),1)]),Zt(Tl,{class:"dot-divider",icon:`ztIcon:${P.ztAliases.dot}`},null,8,["icon"]),pa("span",null,"Zero-True "+sc(P.ztVersion),1),Zt(Tl,{class:"dot-divider",icon:`ztIcon:${P.ztAliases.dot}`},null,8,["icon"]),pa("span",null,sc(d.cellLength)+" cells",1)]),pa("div",DUe,[P.isCodeRunning?(Bo(),Da("div",BUe,[Zt(SD,{indeterminate:"",color:"bluegrey",size:"17",class:"footer__code-running-loader",id:"codeRunProgress"}),Zt(AD,{density:"comfortable"},{default:Oo(()=>[Cs(sc(P.timer)+"ms",1)]),_:1}),Zt(ps,{class:"footer__queue-length-btn",density:"compact","append-icon":"mdi:mdi-chevron-down",rounded:"",disabled:d.queueLength===0,variant:"flat"},{default:Oo(()=>[Cs(" Queue Length: "+sc(d.queueLength)+" ",1),Zt(hS,{activator:"parent"},{default:Oo(()=>[Zt(m_,{class:"footer__queue-list"},{default:Oo(()=>[(Bo(!0),Da(ya,null,ob(d.runningQueue,(w,y)=>(Bo(),la(Bf,{key:y,class:"footer__queue-list-item"},{append:Oo(()=>[Zt(Tl,{icon:"$done",color:"success"})]),default:Oo(()=>[zUe]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["disabled"])])):Wa("",!0),pa("div",FUe,[P.isCodeRunning?(Bo(),Da("div",NUe,[Zt(Tl,{icon:`ztIcon:${P.ztAliases.status}`},null,8,["icon"]),$Ue])):Wa("",!0),P.isCodeRunning?Wa("",!0):(Bo(),Da("div",VUe,[Zt(Tl,{icon:`ztIcon:${P.ztAliases.status}`},null,8,["icon"]),UUe])),P.isCodeRunning?(Bo(),la(ps,{key:2,density:"comfortable",icon:`ztIcon:${P.ztAliases.stop}`,color:"bluegrey",variant:"plain",ripple:!1,onClick:e[6]||(e[6]=w=>d.stopCodeExecution()),rounded:""},null,8,["icon"])):Wa("",!0)])])]),_:1}))]),_:1})}const QUe=hm(TUe,[["render",jUe],["__scopeId","data-v-4b6b6f0a"]]);const HUe="modulepreload",ZUe=function(t,e){return new URL(t,e).href},L0e={},lle=function(e,o,f){if(!o||o.length===0)return e();const P=document.getElementsByTagName("link");return Promise.all(o.map(d=>{if(d=ZUe(d,f),d in L0e)return;L0e[d]=!0;const l=d.endsWith(".css"),n=l?'[rel="stylesheet"]':"";if(!!f)for(let i=P.length-1;i>=0;i--){const O=P[i];if(O.href===d&&(!l||O.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${n}`))return;const b=document.createElement("link");if(b.rel=l?"stylesheet":HUe,l||(b.as="script",b.crossOrigin=""),b.href=d,document.head.appendChild(b),l)return new Promise((i,O)=>{b.addEventListener("load",i),b.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>e()).catch(d=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=d,window.dispatchEvent(l),!l.defaultPrevented)throw d})};async function qUe(){(await lle(()=>import("./webfontloader-fd1b90a2.js").then(e=>e.w),[],import.meta.url)).load({google:{families:["Pathway+Extreme:100,300,400,500,700,900&display=swap","Roboto:100,300,400,500,700,900&display=swap"]}})}function AOe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...o}=t,f=Ug(e,o),{aliases:P={},components:d={},directives:l={}}=f,n=e9e(f.defaults),c=yRe(f.display,f.ssr),b=y9e(f.theme),i=V9e(f.icons),O=p9e(f.locale),w=DIe(f.date,O),y=xRe(f.goTo,O);return{install:a=>{for(const u in l)a.directive(u,l[u]);for(const u in d)a.component(u,d[u]);for(const u in P)a.component(u,PM({...P[u],name:u,aliasName:P[u].name}));if(b.install(a),a.provide(vM,n),a.provide(Fse,c),a.provide(pZ,b),a.provide(Dse,i),a.provide(hZ,O),a.provide(IIe,w.options),a.provide(Oge,w.instance),a.provide(C2e,y),ou&&f.ssr)if(a.$nuxt)a.$nuxt.hook("app:suspense:resolve",()=>{c.update()});else{const{mount:u}=a;a.mount=function(){const h=u(...arguments);return lc(()=>c.update()),a.mount=u,h}}Vv.reset(),a.mixin({computed:{$vuetify(){return lm({defaults:IA.call(this,vM),display:IA.call(this,Fse),theme:IA.call(this,pZ),icons:IA.call(this,Dse),locale:IA.call(this,hZ),date:IA.call(this,Oge)})}}})},defaults:n,display:c,theme:b,icons:i,locale:O,date:w,goTo:y}}const WUe="3.6.14";AOe.version=WUe;function IA(t){var f,P;const e=this.$,o=((f=e.parent)==null?void 0:f.provides)??((P=e.vnode.appContext)==null?void 0:P.provides);if(o&&t in o)return o[t]}const YUe=AOe({display:{mobileBreakpoint:"md"},defaults:{global:{elevation:0},VAppBar:{VBtn:{color:"white",ripple:!1}},VBtn:{style:[{"text-transform":"capitalize"}],color:"bluegrey-darken-2",class:["text-bluegrey-darken-1"]},VBtnToggle:{density:"comfortable",VBtn:{style:[{borderRadius:"inherit"}],class:["text-bluegrey-darken-1"]}},VCard:{color:"bluegrey-darken-4"},VDivider:{class:"border-opacity-100"},VFooter:{VListItem:{minHeight:15}},VMenu:{contentClass:"zt-menu"},VSwitch:{baseColor:"bluegrey-darken-3",color:"primary",density:"compact",hideDetails:!0},VTextarea:{bgColor:"bluegrey-darken-3"}},theme:{defaultTheme:"dark",themes:{dark:{dark:!0,colors:{background:"#0d1316",primary:"#ae9ee8",secondary:"#424242",surface:"#1B2F3C",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}},light:{colors:{background:"#E7E8E9",primary:"#AE9FE8",secondary:"#5F7F93",surface:"#FFFFFF",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}}}},icons:{defaultSet:"mdi",aliases:l2e,sets:{mdi:c2e,ztIcon:gBe}}}),I0e=[{path:"/",name:"/",component:()=>lle(()=>import("./index-83338ca8.js"),[],import.meta.url)},{path:"/app",name:"/app",component:()=>lle(()=>import("./app-621ca417.js"),[],import.meta.url)}];function XUe(t){const{extendRoutes:e}=t;return Uke(Object.assign(t,{routes:typeof e=="function"?e(I0e):I0e}))}async function GUe(t){const o=(await fu.get("base_path")).data,f=XUe({history:oke(o)});qUe(),t.use(YUe).use(f)}const KUe=_Be(),AH=N5e(QUe);AH.use(KUe);GUe(AH).then(()=>{AH.config.globalProperties.$devMode=!1,AH.mount("#app")});export{GVe as C,hm as _,la as c,Qke as g,Bo as o,Zd as r}; +`)}this.concatenatedCodeCache={lastCellId:t,code:d,followingCode:l,length:n}}const P=await fu.post("copilot/get_completions",{doc:{version:1,uri:"file:///notebook.ztnb",position:{line:this.concatenatedCodeCache.length+e,character:o}}});f(P)},async stopCodeExecution(){this.$devMode?(this.requestQueue=[],this.stop_socket.send(JSON.stringify({userId:""}))):(this.componentChangeQueue=[],this.stop_socket.send(JSON.stringify({userId:this.notebook.userId})));for(let t in this.notebook.cells)for(const e of this.notebook.cells[t].components)(e.component==="v-btn"||e.component==="v-timer")&&(e.value=!1);this.isCodeRunning=!1,this.stopTimer()},getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},async updateDependencies(t){this.dependencyOutput.output="";const e={dependencies:t};this.dependency_socket.send(JSON.stringify(e))},startTimerComponents(t,e){if(!Lv.timers[t])Lv.timers[t]={};else for(const o in Lv.timers[t])Lv.timers[t][o].stop(),delete Lv.timers[t][o];for(const o of e)this.startTimerComponent(t,o.id,o.interval)},startTimerComponent(t,e,o){const f=()=>{const P=new L0e(o);Lv.timers[t][e]=P,P.start(f),this.notebook.cells[t].components.find(d=>d.id===e).value=!0,this.$devMode?this.runCode(t):this.componentValueChange(t,e,!0)};if(!Lv.timers[t][e]){const P=new L0e(o);Lv.timers[t][e]=P,P.start(f)}}}};const Nue=t=>(Mle("data-v-e40b79f1"),t=t(),Ele(),t),EUe={key:0,class:"click-edit"},PUe={key:0,class:"click-edit__show-text"},RUe={key:1,class:"click-edit__edit-field-wrapper"},LUe={key:1,class:"text-ellipsis text-h5"},IUe={key:2,class:"toggle-group"},DUe={class:Nv(["content","px-8","d-flex","justify-center"])},BUe={class:"content__cells flex-grow-1",transition:"slide-x-transition"},zUe={class:"footer__left-container"},FUe={class:"footer__right-container"},NUe={key:0,class:"footer__queue-length-wrapper"},$Ue=Nue(()=>ha("span",{class:"text-bluegrey"},"Python #2",-1)),VUe={class:"footer__status-wrapper"},UUe={key:0,class:"footer__status"},jUe=Nue(()=>ha("span",null,"Running",-1)),QUe={key:1,class:"footer__status footer__status--connected"},HUe=Nue(()=>ha("span",null,"Connected",-1));function ZUe(t,e,o,f,P,d){const l=Zd("ShareComponent"),n=Zd("CopilotComponent"),c=Zd("PackageComponent"),b=Zd("SidebarComponent"),i=Zd("CodeCellManager"),O=Zd("Comments");return Do(),sa(_9e,null,{default:Oo(()=>[Ht(D9e,{app:"",color:"bluegrey-darken-4",height:"51",id:"appBar",class:"zt-app-bar"},{append:Oo(()=>[Ht(hT,{class:"d-flex justify-end"},{default:Oo(()=>[ha("div",null,[Ht(W_e,{text:"Run All",location:"bottom",color:"primary"},{activator:Oo(({props:w})=>[t.$devMode&&!d.isAppRoute?(Do(),sa(ls,Ii({key:0,icon:`ztIcon:${P.ztAliases.play}`},w,{variant:"flat",ripple:"",color:"bluegrey-darken-4",onClick:e[3]||(e[3]=y=>d.runCode(""))}),null,16,["icon"])):Za("",!0)]),_:1}),t.$devMode&&!d.isAppRoute?(Do(),sa(pS,{key:0,"close-on-content-click":!1},{activator:Oo(({props:w})=>[Ht(ls,Ii({icon:`ztIcon:${P.ztAliases.settings}`},w),null,16,["icon"])]),default:Oo(()=>[Ht(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Ht(zf,null,{prepend:Oo(()=>[Ht(VA,{modelValue:P.reactiveMode,"onUpdate:modelValue":e[4]||(e[4]=w=>P.reactiveMode=w)},null,8,["modelValue"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Reactive Mode")]),_:1})]),_:1})]),_:1})]),_:1})):Za("",!0),t.$devMode&&!d.isAppRoute?(Do(),sa(l,{key:1})):Za("",!0)])]),_:1})]),default:Oo(()=>[Ht(ls,{size:"x-large",ripple:!1,icon:`ztIcon:${P.ztAliases.logo}`,variant:"plain",onClick:d.navigateToApp,id:"Navbutton",class:"logo-btn"},null,8,["icon","onClick"]),t.$devMode&&!d.isAppRoute?(Do(),Da("div",EUe,[P.editingProjectName?Za("",!0):(Do(),Da("div",PUe,[ha("h5",{class:"click-edit__name text-ellipsis text-h5",onClick:e[0]||(e[0]=(...w)=>d.toggleProjectName&&d.toggleProjectName(...w))},sc(P.notebookName),1)])),P.editingProjectName?(Do(),Da("div",RUe,[Ht(um,{modelValue:P.notebookEditName,"onUpdate:modelValue":e[1]||(e[1]=w=>P.notebookEditName=w),placeholder:"Zero True",density:"compact",variant:"plain","hide-details":"",ref:"projectNameField",class:"click-edit__edit-field",onKeydown:uve(d.saveProjectName,["enter"]),"onUpdate:focused":e[2]||(e[2]=w=>{w||d.saveProjectName()})},null,8,["modelValue","onKeydown"])])):Za("",!0)])):(Do(),Da("h5",LUe,sc(P.notebookName),1)),t.$devMode&&!d.isMobile?(Do(),Da("div",IUe,[Ht(l2e,{multiple:!1,density:"compact",mandatory:""},{default:Oo(()=>[Ht(ls,{color:d.isAppRoute?"bluegrey-darken-1":"primary",variant:d.isAppRoute?"text":"flat",class:Nv({"text-bluegrey-darken-4":!d.isAppRoute}),"prepend-icon":`ztIcon:${P.ztAliases.notebook}`,to:"/",id:"notebookBtn"},{default:Oo(()=>[Ss(" Notebook")]),_:1},8,["color","variant","class","prepend-icon"]),Ht(ls,{color:d.isAppRoute?"primary":"bluegrey-darken-1",variant:d.isAppRoute?"flat":"text",class:Nv({"text-bluegrey-darken-4":d.isAppRoute}),"prepend-icon":`ztIcon:${P.ztAliases.monitor}`,to:"/app",id:"appBtn"},{default:Oo(()=>[Ss("App")]),_:1},8,["color","variant","class","prepend-icon"])]),_:1})])):Za("",!0)]),_:1}),t.$devMode&&!d.isMobile&&!d.isAppRoute?(Do(),sa(q_e,{key:0,rail:!0,color:"bluegrey-darken-4",style:{"padding-top":"12px","padding-bottom":"12px"}},{append:Oo(()=>[Ht(zf,null,{default:Oo(()=>[t.$devMode&&!d.isAppRoute?(Do(),sa(n,{key:0})):Za("",!0)]),_:1}),Ht(zf,null,{default:Oo(()=>[Ht(ls,{color:"bluegrey-darken-4",icon:"mdi-folder-multiple",onClick:e[5]||(e[5]=w=>P.drawer=!0),class:"text-bluegrey"})]),_:1}),Ht(zf,null,{default:Oo(()=>[t.$devMode&&!d.isAppRoute?(Do(),sa(c,{key:0,dependencies:P.dependencies,dependencyOutput:P.dependencyOutput,onUpdateDependencies:d.updateDependencies},null,8,["dependencies","dependencyOutput","onUpdateDependencies"])):Za("",!0)]),_:1})]),_:1})):Za("",!0),Ht(b,{drawer:P.drawer,items:P.items,tree:P.tree,fileIcon:d.fileIcon,isMobile:d.isMobile,isAppRoute:d.isAppRoute,"onUpdate:drawer":d.updateDrawer,"onUpdate:items":d.updateItems,onHandleFileChange:d.handleFileChange,style:{"padding-top":"12px","padding-bottom":"12px"}},null,8,["drawer","items","tree","fileIcon","isMobile","isAppRoute","onUpdate:drawer","onUpdate:items","onHandleFileChange"]),Ht(VDe,{scrollable:!1,class:"w-100 mx-auto"},{default:Oo(()=>[P.errorMessage?(Do(),sa(xM,{key:0},{default:Oo(()=>[Ht(lge,{type:"error"},{default:Oo(()=>[Ss(sc(P.errorMessage),1)]),_:1})]),_:1})):Za("",!0),d.socketsDisconnected?(Do(),sa(xM,{key:1},{default:Oo(()=>[Ht(lge,{type:"error"},{default:Oo(()=>[Ss(" Connection to the server has been lost. Please refresh the page. ")]),_:1})]),_:1})):Za("",!0),ha("div",DUe,[ha("div",BUe,[Ht(i,{notebook:P.notebook,completions:P.completions,currentlyExecutingCell:P.currentlyExecutingCell,isCodeRunning:P.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.startTimerComponents},null,8,["notebook","completions","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])]),ha("div",{class:Nv(["content__comments",{"content__comments--show":f.showComments}])},[Ht(O)],2)])]),_:1}),d.isMobile?Za("",!0):(Do(),sa(zDe,{key:1,app:"",class:"footer bg-bluegrey-darken-4 text-bluegrey"},{default:Oo(()=>[ha("div",zUe,[ha("span",null,[ha("span",null,"Python "+sc(P.pythonVersion),1)]),Ht(Al,{class:"dot-divider",icon:`ztIcon:${P.ztAliases.dot}`},null,8,["icon"]),ha("span",null,"Zero-True "+sc(P.ztVersion),1),Ht(Al,{class:"dot-divider",icon:`ztIcon:${P.ztAliases.dot}`},null,8,["icon"]),ha("span",null,sc(d.cellLength)+" cells",1)]),ha("div",FUe,[P.isCodeRunning?(Do(),Da("div",NUe,[Ht(LM,{indeterminate:"",color:"bluegrey",size:"17",class:"footer__code-running-loader",id:"codeRunProgress"}),Ht(AD,{density:"comfortable"},{default:Oo(()=>[Ss(sc(P.timer)+"ms",1)]),_:1}),Ht(ls,{class:"footer__queue-length-btn",density:"compact","append-icon":"mdi:mdi-chevron-down",rounded:"",disabled:d.queueLength===0,variant:"flat"},{default:Oo(()=>[Ss(" Queue Length: "+sc(d.queueLength)+" ",1),Ht(pS,{activator:"parent"},{default:Oo(()=>[Ht(m_,{class:"footer__queue-list"},{default:Oo(()=>[(Do(!0),Da(ma,null,ob(d.runningQueue,(w,y)=>(Do(),sa(zf,{key:y,class:"footer__queue-list-item"},{append:Oo(()=>[Ht(Al,{icon:"$done",color:"success"})]),default:Oo(()=>[$Ue]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["disabled"])])):Za("",!0),ha("div",VUe,[P.isCodeRunning?(Do(),Da("div",UUe,[Ht(Al,{icon:`ztIcon:${P.ztAliases.status}`},null,8,["icon"]),jUe])):Za("",!0),P.isCodeRunning?Za("",!0):(Do(),Da("div",QUe,[Ht(Al,{icon:`ztIcon:${P.ztAliases.status}`},null,8,["icon"]),HUe])),P.isCodeRunning?(Do(),sa(ls,{key:2,density:"comfortable",icon:`ztIcon:${P.ztAliases.stop}`,color:"bluegrey",variant:"plain",ripple:!1,onClick:e[6]||(e[6]=w=>d.stopCodeExecution()),rounded:""},null,8,["icon"])):Za("",!0)])])]),_:1}))]),_:1})}const qUe=hm(MUe,[["render",ZUe],["__scopeId","data-v-e40b79f1"]]);const WUe="modulepreload",YUe=function(t,e){return new URL(t,e).href},I0e={},lle=function(e,o,f){if(!o||o.length===0)return e();const P=document.getElementsByTagName("link");return Promise.all(o.map(d=>{if(d=YUe(d,f),d in I0e)return;I0e[d]=!0;const l=d.endsWith(".css"),n=l?'[rel="stylesheet"]':"";if(!!f)for(let i=P.length-1;i>=0;i--){const O=P[i];if(O.href===d&&(!l||O.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${n}`))return;const b=document.createElement("link");if(b.rel=l?"stylesheet":WUe,l||(b.as="script",b.crossOrigin=""),b.href=d,document.head.appendChild(b),l)return new Promise((i,O)=>{b.addEventListener("load",i),b.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>e()).catch(d=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=d,window.dispatchEvent(l),!l.defaultPrevented)throw d})};async function XUe(){(await lle(()=>import("./webfontloader-bfd06eaa.js").then(e=>e.w),[],import.meta.url)).load({google:{families:["Pathway+Extreme:100,300,400,500,700,900&display=swap","Roboto:100,300,400,500,700,900&display=swap"]}})}function MOe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...o}=t,f=jg(e,o),{aliases:P={},components:d={},directives:l={}}=f,n=t9e(f.defaults),c=bRe(f.display,f.ssr),b=b9e(f.theme),i=U9e(f.icons),O=m9e(f.locale),w=BIe(f.date,O),y=_Re(f.goTo,O);return{install:a=>{for(const u in l)a.directive(u,l[u]);for(const u in d)a.component(u,d[u]);for(const u in P)a.component(u,RM({...P[u],name:u,aliasName:P[u].name}));if(b.install(a),a.provide(yM,n),a.provide(Fse,c),a.provide(pZ,b),a.provide(Dse,i),a.provide(hZ,O),a.provide(DIe,w.options),a.provide(Sge,w.instance),a.provide(A2e,y),ou&&f.ssr)if(a.$nuxt)a.$nuxt.hook("app:suspense:resolve",()=>{c.update()});else{const{mount:u}=a;a.mount=function(){const h=u(...arguments);return lc(()=>c.update()),a.mount=u,h}}O1.reset(),a.mixin({computed:{$vuetify(){return lm({defaults:DA.call(this,yM),display:DA.call(this,Fse),theme:DA.call(this,pZ),icons:DA.call(this,Dse),locale:DA.call(this,hZ),date:DA.call(this,Sge)})}}})},defaults:n,display:c,theme:b,icons:i,locale:O,date:w,goTo:y}}const GUe="3.6.14";MOe.version=GUe;function DA(t){var f,P;const e=this.$,o=((f=e.parent)==null?void 0:f.provides)??((P=e.vnode.appContext)==null?void 0:P.provides);if(o&&t in o)return o[t]}const KUe=MOe({display:{mobileBreakpoint:"md"},defaults:{global:{elevation:0},VAppBar:{VBtn:{color:"white",ripple:!1}},VBtn:{style:[{"text-transform":"capitalize"}],color:"bluegrey-darken-2",class:["text-bluegrey-darken-1"]},VBtnToggle:{density:"comfortable",VBtn:{style:[{borderRadius:"inherit"}],class:["text-bluegrey-darken-1"]}},VCard:{color:"bluegrey-darken-4"},VDivider:{class:"border-opacity-100"},VFooter:{VListItem:{minHeight:15}},VMenu:{contentClass:"zt-menu"},VSwitch:{baseColor:"bluegrey-darken-3",color:"primary",density:"compact",hideDetails:!0},VTextarea:{bgColor:"bluegrey-darken-3"}},theme:{defaultTheme:"dark",themes:{dark:{dark:!0,colors:{background:"#0d1316",primary:"#ae9ee8",secondary:"#424242",surface:"#1B2F3C",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}},light:{colors:{background:"#E7E8E9",primary:"#AE9FE8",secondary:"#5F7F93",surface:"#FFFFFF",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}}}},icons:{defaultSet:"mdi",aliases:c2e,sets:{mdi:u2e,ztIcon:yBe}}}),D0e=[{path:"/",name:"/",component:()=>lle(()=>import("./index-0bbbe38c.js"),[],import.meta.url)},{path:"/app",name:"/app",component:()=>lle(()=>import("./app-6e05d9fb.js"),[],import.meta.url)}];function JUe(t){const{extendRoutes:e}=t;return jke(Object.assign(t,{routes:typeof e=="function"?e(D0e):D0e}))}async function eje(t){const o=(await fu.get("base_path")).data,f=JUe({history:ike(o)});XUe(),t.use(KUe).use(f)}const tje=OBe(),AH=$5e(qUe);AH.use(tje);eje(AH).then(()=>{AH.config.globalProperties.$devMode=!1,AH.mount("#app")});export{eUe as C,hm as _,sa as c,Hke as g,Do as o,Zd as r}; diff --git a/zt_backend/dist_app/assets/webfontloader-fd1b90a2.js b/zt_backend/dist_app/assets/webfontloader-bfd06eaa.js similarity index 99% rename from zt_backend/dist_app/assets/webfontloader-fd1b90a2.js rename to zt_backend/dist_app/assets/webfontloader-bfd06eaa.js index 41172a34..81acdc3b 100644 --- a/zt_backend/dist_app/assets/webfontloader-fd1b90a2.js +++ b/zt_backend/dist_app/assets/webfontloader-bfd06eaa.js @@ -1 +1 @@ -import{g as Ft}from"./index-de12265c.js";function Pt(w,S){for(var _=0;_h[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;fh[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;f Zero-True - - + + diff --git a/zt_backend/dist_dev/assets/app-37f5afb6.js b/zt_backend/dist_dev/assets/app-9832ab9d.js similarity index 94% rename from zt_backend/dist_dev/assets/app-37f5afb6.js rename to zt_backend/dist_dev/assets/app-9832ab9d.js index 2fd20fc2..6f79ed1c 100644 --- a/zt_backend/dist_dev/assets/app-37f5afb6.js +++ b/zt_backend/dist_dev/assets/app-9832ab9d.js @@ -1 +1 @@ -import{C as n,_ as r,r as l,o as c,c as a}from"./index-91df5eb7.js";const u={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:n},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,C,e,m,s,i){const o=l("code-cell-manager");return c(),a(o,{notebook:e.notebook,completions:e.completions,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(u,[["render",d]]);export{_ as default}; +import{C as n,_ as r,r as l,o as c,c as a}from"./index-d744c0bc.js";const u={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:n},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,C,e,m,s,i){const o=l("code-cell-manager");return c(),a(o,{notebook:e.notebook,completions:e.completions,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(u,[["render",d]]);export{_ as default}; diff --git a/zt_backend/dist_app/assets/index-d94f5589.css b/zt_backend/dist_dev/assets/index-267af001.css similarity index 86% rename from zt_backend/dist_app/assets/index-d94f5589.css rename to zt_backend/dist_dev/assets/index-267af001.css index f047fdb6..781fa979 100644 --- a/zt_backend/dist_app/assets/index-d94f5589.css +++ b/zt_backend/dist_dev/assets/index-267af001.css @@ -1,4 +1,4 @@ -@charset "UTF-8";.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%}.v-toolbar{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar{border-radius:0}.v-toolbar{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden;border-end-end-radius:24px}.v-toolbar--collapse .v-toolbar-title{display:none}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content{overflow:hidden}.v-toolbar__content>.v-btn:first-child{margin-inline-start:4px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:4px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:20px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline:4px auto}.v-toolbar__append{margin-inline:auto 4px}.v-toolbar-title{flex:1 1;font-size:1.25rem;min-width:0}.v-toolbar-title{font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px}.v-toolbar--density-prominent .v-toolbar-title{font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0}.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img--rounded{border-radius:4px}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;vertical-align:middle;flex-shrink:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-btn .v-btn__underlay{position:absolute}@supports selector(:focus-visible){.v-btn:after{pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--slim{padding:0 8px}.v-btn--readonly{pointer-events:none}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn--stacked.v-btn--block{min-width:100%}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__loader>.v-progress-circular{width:1.5em;height:1.5em}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn--slim .v-btn__prepend{margin-inline-start:0}.v-btn__append{grid-area:append;margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--slim .v-btn__append{margin-inline-end:0}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{pointer-events:none}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-pagination .v-btn{border-radius:4px}.v-pagination .v-btn--rounded{border-radius:50%}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(0 * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((0 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle}.v-btn-group{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn-group{border-radius:4px}.v-btn-group{background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}@media (forced-colors: active){.v-progress-linear{border:thin solid buttontext}}.v-progress-linear__background,.v-progress-linear__buffer{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;width:100%;transition-property:width,left,right;transition:inherit}@media (forced-colors: active){.v-progress-linear__buffer{background-color:highlight;opacity:.3}}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}@media (forced-colors: active){.v-progress-linear__determinate,.v-progress-linear__indeterminate{background-color:highlight}}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-progress-linear--rounded-bar .v-progress-linear__determinate{border-start-start-radius:0;border-end-start-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-alert{display:grid;flex:1 1;grid-template-areas:"prepend content append close" ". content . .";grid-template-columns:max-content auto max-content max-content;position:relative;padding:16px;overflow:hidden;--v-border-color: currentColor}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert{border-radius:4px}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{background:transparent;color:inherit}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-alert--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-outlined{border:thin solid currentColor}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-alert .v-alert__underlay{position:absolute}.v-alert--prominent{grid-template-areas:"prepend content append close" "prepend content . ."}.v-alert.v-alert--border{--v-border-opacity: .38}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:.2s opacity cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-bottom:16px;padding-top:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-bottom:12px;padding-top:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-bottom:8px;padding-top:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert__border{border-radius:inherit;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;pointer-events:none;right:0;top:0;width:100%}.v-alert__border{border-color:currentColor;border-style:solid;border-width:0}.v-alert__border--border{border-width:8px;box-shadow:none}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 1 auto;grid-area:close}.v-alert__content{align-self:center;grid-area:content;overflow:hidden}.v-alert__append,.v-alert__close{align-self:flex-start;margin-inline-start:16px}.v-alert__append{align-self:flex-start;grid-area:append}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{align-self:flex-start;display:flex;align-items:center;grid-area:prepend;margin-inline-end:16px}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-alert-title{align-items:center;align-self:center;display:flex;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;line-height:1.75rem;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden}.v-autocomplete__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-autocomplete__content{border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-surface-light))}.v-autocomplete__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single:not(.v-autocomplete--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--active input{transition:none}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar{border-radius:50%}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-avatar .v-avatar__underlay{position:absolute}.v-avatar--rounded{border-radius:4px}.v-avatar--start{margin-inline-end:8px}.v-avatar--end{margin-inline-start:8px}.v-avatar .v-img{height:100%;width:100%}.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error .v-label,.v-selection-control--disabled .v-label{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-label{align-items:center;color:inherit;display:inline-flex;font-size:1rem;letter-spacing:.009375em;min-width:0;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-label--clickable{cursor:pointer}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.v-input{display:grid;flex:1 1 auto;font-size:1rem;font-weight:400;line-height:1.5}.v-input--disabled{pointer-events:none}.v-input--density-default{--v-input-control-height: 56px;--v-input-padding-top: 16px}.v-input--density-comfortable{--v-input-control-height: 48px;--v-input-padding-top: 12px}.v-input--density-compact{--v-input-control-height: 40px;--v-input-padding-top: 8px}.v-input--vertical{grid-template-areas:"append" "control" "prepend";grid-template-rows:max-content auto max-content;grid-template-columns:min-content}.v-input--vertical .v-input__prepend{margin-block-start:16px}.v-input--vertical .v-input__append{margin-block-end:16px}.v-input--horizontal{grid-template-areas:"prepend control append" "a messages b";grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto auto}.v-input--horizontal .v-input__prepend{margin-inline-end:16px}.v-input--horizontal .v-input__append{margin-inline-start:16px}.v-input__details{align-items:flex-end;display:flex;font-size:.75rem;font-weight:400;grid-area:messages;letter-spacing:.0333333333em;line-height:normal;min-height:22px;padding-top:6px;overflow:hidden;justify-content:space-between}.v-input__details>.v-icon,.v-input__prepend>.v-icon,.v-input__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-input--disabled .v-input__details>.v-icon,.v-input--disabled .v-input__details .v-messages,.v-input--error .v-input__details>.v-icon,.v-input--error .v-input__details .v-messages,.v-input--disabled .v-input__prepend>.v-icon,.v-input--disabled .v-input__prepend .v-messages,.v-input--error .v-input__prepend>.v-icon,.v-input--error .v-input__prepend .v-messages,.v-input--disabled .v-input__append>.v-icon,.v-input--disabled .v-input__append .v-messages,.v-input--error .v-input__append>.v-icon,.v-input--error .v-input__append .v-messages{opacity:1}.v-input--disabled .v-input__details,.v-input--disabled .v-input__prepend,.v-input--disabled .v-input__append{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-input__details>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__details .v-messages,.v-input--error:not(.v-input--disabled) .v-input__prepend>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__prepend .v-messages,.v-input--error:not(.v-input--disabled) .v-input__append>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__append .v-messages{color:rgb(var(--v-theme-error))}.v-input__prepend,.v-input__append{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top)}.v-input--center-affix .v-input__prepend,.v-input--center-affix .v-input__append{align-items:center;padding-top:0}.v-input__prepend{grid-area:prepend}.v-input__append{grid-area:append}.v-input__control{display:flex;grid-area:control}.v-input--hide-spin-buttons input::-webkit-outer-spin-button,.v-input--hide-spin-buttons input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.v-input--hide-spin-buttons input[type=number]{-moz-appearance:textfield}.v-input--plain-underlined .v-input__prepend,.v-input--plain-underlined .v-input__append{align-items:flex-start}.v-input--density-default.v-input--plain-underlined .v-input__prepend,.v-input--density-default.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 4px)}.v-input--density-comfortable.v-input--plain-underlined .v-input__prepend,.v-input--density-comfortable.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 2px)}.v-input--density-compact.v-input--plain-underlined .v-input__prepend,.v-input--density-compact.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 0px)}.v-messages{flex:1 1 auto;font-size:12px;min-height:14px;min-width:1px;opacity:var(--v-medium-emphasis-opacity);position:relative}.v-messages__message{line-height:12px;word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;transition-duration:.15s}.v-chip{align-items:center;display:inline-flex;font-weight:400;max-width:100%;min-width:0;overflow:hidden;position:relative;text-decoration:none;white-space:nowrap;vertical-align:middle}.v-chip .v-icon{--v-icon-size-multiplier: .8571428571}.v-chip.v-chip--size-x-small{--v-chip-size: .625rem;--v-chip-height: 20px;font-size:.625rem;padding:0 8px}.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 14px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 20px}.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-5.6px;margin-inline-end:4px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-8px}.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-start:4px;margin-inline-end:-5.6px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-end:-8px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-x-small .v-icon--start,.v-chip.v-chip--size-x-small .v-chip__filter{margin-inline-start:-4px;margin-inline-end:4px}.v-chip.v-chip--size-x-small .v-icon--end,.v-chip.v-chip--size-x-small .v-chip__close{margin-inline-start:4px;margin-inline-end:-4px}.v-chip.v-chip--size-x-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-chip__append+.v-chip__close{margin-inline-start:8px}.v-chip.v-chip--size-small{--v-chip-size: .75rem;--v-chip-height: 26px;font-size:.75rem;padding:0 10px}.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 20px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 26px}.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-7px;margin-inline-end:5px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-10px}.v-chip.v-chip--size-small .v-avatar--end{margin-inline-start:5px;margin-inline-end:-7px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end{margin-inline-end:-10px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close{margin-inline-start:15px}.v-chip.v-chip--size-small .v-icon--start,.v-chip.v-chip--size-small .v-chip__filter{margin-inline-start:-5px;margin-inline-end:5px}.v-chip.v-chip--size-small .v-icon--end,.v-chip.v-chip--size-small .v-chip__close{margin-inline-start:5px;margin-inline-end:-5px}.v-chip.v-chip--size-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-small .v-chip__append+.v-chip__close{margin-inline-start:10px}.v-chip.v-chip--size-default{--v-chip-size: .875rem;--v-chip-height: 32px;font-size:.875rem;padding:0 12px}.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 26px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 32px}.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-8.4px;margin-inline-end:6px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-12px}.v-chip.v-chip--size-default .v-avatar--end{margin-inline-start:6px;margin-inline-end:-8.4px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end{margin-inline-end:-12px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close{margin-inline-start:18px}.v-chip.v-chip--size-default .v-icon--start,.v-chip.v-chip--size-default .v-chip__filter{margin-inline-start:-6px;margin-inline-end:6px}.v-chip.v-chip--size-default .v-icon--end,.v-chip.v-chip--size-default .v-chip__close{margin-inline-start:6px;margin-inline-end:-6px}.v-chip.v-chip--size-default .v-icon--end+.v-chip__close,.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-default .v-chip__append+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-large{--v-chip-size: 1rem;--v-chip-height: 38px;font-size:1rem;padding:0 14px}.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 32px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 38px}.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-9.8px;margin-inline-end:7px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-14px}.v-chip.v-chip--size-large .v-avatar--end{margin-inline-start:7px;margin-inline-end:-9.8px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end{margin-inline-end:-14px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close{margin-inline-start:21px}.v-chip.v-chip--size-large .v-icon--start,.v-chip.v-chip--size-large .v-chip__filter{margin-inline-start:-7px;margin-inline-end:7px}.v-chip.v-chip--size-large .v-icon--end,.v-chip.v-chip--size-large .v-chip__close{margin-inline-start:7px;margin-inline-end:-7px}.v-chip.v-chip--size-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-large .v-chip__append+.v-chip__close{margin-inline-start:14px}.v-chip.v-chip--size-x-large{--v-chip-size: 1.125rem;--v-chip-height: 44px;font-size:1.125rem;padding:0 17px}.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 38px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 44px}.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-11.9px;margin-inline-end:8.5px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-17px}.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-start:8.5px;margin-inline-end:-11.9px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-end:-17px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close{margin-inline-start:25.5px}.v-chip.v-chip--size-x-large .v-icon--start,.v-chip.v-chip--size-x-large .v-chip__filter{margin-inline-start:-8.5px;margin-inline-end:8.5px}.v-chip.v-chip--size-x-large .v-icon--end,.v-chip.v-chip--size-x-large .v-chip__close{margin-inline-start:8.5px;margin-inline-end:-8.5px}.v-chip.v-chip--size-x-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-chip__append+.v-chip__close{margin-inline-start:17px}.v-chip.v-chip--density-default{height:calc(var(--v-chip-height) + 0px)}.v-chip.v-chip--density-comfortable{height:calc(var(--v-chip-height) + -4px)}.v-chip.v-chip--density-compact{height:calc(var(--v-chip-height) + -8px)}.v-chip{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-chip:hover>.v-chip__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-chip:focus-visible>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip:focus>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-chip--active>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]>.v-chip__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-chip--active:hover>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:hover>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-chip--active:focus-visible>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip--active:focus>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-chip{border-radius:9999px}.v-chip--variant-plain,.v-chip--variant-outlined,.v-chip--variant-text,.v-chip--variant-tonal{background:transparent;color:inherit}.v-chip--variant-plain{opacity:.26}.v-chip--variant-plain:focus,.v-chip--variant-plain:hover{opacity:1}.v-chip--variant-plain .v-chip__overlay{display:none}.v-chip--variant-elevated,.v-chip--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-chip--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-outlined{border:thin solid currentColor}.v-chip--variant-text .v-chip__overlay{background:currentColor}.v-chip--variant-tonal .v-chip__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-chip .v-chip__underlay{position:absolute}.v-chip--border{border-width:thin}.v-chip--link{cursor:pointer}.v-chip--link,.v-chip--filter{-webkit-user-select:none;user-select:none}.v-chip__content{align-items:center;display:inline-flex}.v-autocomplete__selection .v-chip__content,.v-combobox__selection .v-chip__content,.v-select__selection .v-chip__content{overflow:hidden}.v-chip__filter,.v-chip__prepend,.v-chip__append,.v-chip__close{align-items:center;display:inline-flex}.v-chip__close{cursor:pointer;flex:0 1 auto;font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;user-select:none}.v-chip__close .v-icon{font-size:inherit}.v-chip__filter{transition:.15s cubic-bezier(.4,0,.2,1)}.v-chip__overlay{background-color:currentColor;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-chip__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-chip--disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}.v-chip--label{border-radius:4px}.v-chip-group{display:flex;max-width:100%;min-width:0;overflow-x:auto;padding:4px 0}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip.v-chip--selected:not(.v-chip--disabled) .v-chip__overlay{opacity:var(--v-activated-opacity)}.v-chip-group--column .v-slide-group__content{white-space:normal;flex-wrap:wrap;max-width:100%}.v-slide-group{display:flex;overflow:hidden}.v-slide-group__next,.v-slide-group__prev{align-items:center;display:flex;flex:0 1 52px;justify-content:center;min-width:52px;cursor:pointer}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none;opacity:var(--v-disabled-opacity)}.v-slide-group__content{display:flex;flex:1 0 auto;position:relative;transition:.2s all cubic-bezier(.4,0,.2,1);white-space:nowrap}.v-slide-group__content>*{white-space:initial}.v-slide-group__container{contain:content;display:flex;flex:1 1 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scrollbar-color:rgba(0,0,0,0)}.v-slide-group__container::-webkit-scrollbar{display:none}.v-slide-group--vertical{max-height:inherit}.v-slide-group--vertical,.v-slide-group--vertical .v-slide-group__container,.v-slide-group--vertical .v-slide-group__content{flex-direction:column}.v-slide-group--vertical .v-slide-group__container{overflow-x:hidden;overflow-y:auto}.v-list{overflow:auto;padding:8px 0;position:relative;outline:none}.v-list{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list--border{border-width:thin;box-shadow:none}.v-list{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list{border-radius:0}.v-list{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-list--nav{padding-inline:8px}.v-list--rounded{border-radius:4px}.v-list--subheader{padding-top:0}.v-list-img{border-radius:inherit;display:flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-list-subheader{align-items:center;background:inherit;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.375rem;padding-inline-end:16px;min-height:40px;transition:.2s min-height cubic-bezier(.4,0,.2,1)}.v-list-subheader__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-list--density-default .v-list-subheader{min-height:40px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-comfortable .v-list-subheader{min-height:36px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-compact .v-list-subheader{min-height:32px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-subheader--inset{--indent-padding: 56px}.v-list--nav .v-list-subheader{font-size:.75rem}.v-list-subheader--sticky{background:inherit;left:0;position:sticky;top:0;z-index:1}.v-list__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content 1fr auto;outline:none;max-width:100%;padding:4px 16px;position:relative;text-decoration:none}.v-list-item{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list-item--border{border-width:thin;box-shadow:none}.v-list-item:hover>.v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item:focus-visible>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item:focus>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-list-item--active>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]>.v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--active:hover>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:hover>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-list-item--active:focus-visible>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item--active:focus>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-list-item{border-radius:0}.v-list-item--variant-plain,.v-list-item--variant-outlined,.v-list-item--variant-text,.v-list-item--variant-tonal{background:transparent;color:inherit}.v-list-item--variant-plain{opacity:.62}.v-list-item--variant-plain:focus,.v-list-item--variant-plain:hover{opacity:1}.v-list-item--variant-plain .v-list-item__overlay{display:none}.v-list-item--variant-elevated,.v-list-item--variant-flat{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list-item--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-outlined{border:thin solid currentColor}.v-list-item--variant-text .v-list-item__overlay{background:currentColor}.v-list-item--variant-tonal .v-list-item__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-list-item .v-list-item__underlay{position:absolute}@supports selector(:focus-visible){.v-list-item:after{pointer-events:none;border:2px solid currentColor;border-radius:4px;opacity:0;transition:opacity .2s ease-in-out}.v-list-item:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-list-item:focus-visible:after{opacity:calc(.15 * var(--v-theme-overlay-multiplier))}}.v-list-item__prepend>.v-badge .v-icon,.v-list-item__prepend>.v-icon,.v-list-item__append>.v-badge .v-icon,.v-list-item__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-list-item--active .v-list-item__prepend>.v-badge .v-icon,.v-list-item--active .v-list-item__prepend>.v-icon,.v-list-item--active .v-list-item__append>.v-badge .v-icon,.v-list-item--active .v-list-item__append>.v-icon{opacity:1}.v-list-item--active:not(.v-list-item--link) .v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--rounded{border-radius:4px}.v-list-item--disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.v-list-item--link{cursor:pointer}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item .v-avatar,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item .v-avatar{--v-avatar-height: 24px}.v-list-item__prepend{align-items:center;align-self:center;display:flex;grid-area:prepend}.v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:0}.v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__prepend{align-self:start}.v-list-item__append{align-self:center;display:flex;align-items:center;grid-area:append}.v-list-item__append .v-list-item__spacer{order:-1;transition:.15s width cubic-bezier(.4,0,.2,1)}.v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item__append>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__append>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__append>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__append{align-self:start}.v-list-item__content{align-self:center;grid-area:content;overflow:hidden}.v-list-item-action{align-self:center;display:flex;align-items:center;flex:none;transition:inherit;transition-property:height,width}.v-list-item-action--start{margin-inline-end:8px;margin-inline-start:-8px}.v-list-item-action--end{margin-inline-start:8px;margin-inline-end:-8px}.v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-media--start{margin-inline-end:16px}.v-list-item-media--end{margin-inline-start:16px}.v-list-item--two-line .v-list-item-media{margin-top:-4px;margin-bottom:-4px}.v-list-item--three-line .v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-subtitle{-webkit-box-orient:vertical;display:-webkit-box;opacity:var(--v-list-item-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0;text-overflow:ellipsis;overflow-wrap:break-word;word-break:initial}.v-list-item--one-line .v-list-item-subtitle{-webkit-line-clamp:1}.v-list-item--two-line .v-list-item-subtitle{-webkit-line-clamp:2}.v-list-item--three-line .v-list-item-subtitle{-webkit-line-clamp:3}.v-list-item-subtitle{font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem;text-transform:none}.v-list-item--nav .v-list-item-subtitle{font-size:.75rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem}.v-list-item-title{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:normal;overflow:hidden;padding:0;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word}.v-list-item-title{font-size:1rem;font-weight:400;letter-spacing:.009375em;line-height:1.5;text-transform:none}.v-list-item--nav .v-list-item-title{font-size:.8125rem;font-weight:500;letter-spacing:normal;line-height:1rem}.v-list-item--density-default{min-height:40px}.v-list-item--density-default.v-list-item--one-line{min-height:48px;padding-top:4px;padding-bottom:4px}.v-list-item--density-default.v-list-item--two-line{min-height:64px;padding-top:12px;padding-bottom:12px}.v-list-item--density-default.v-list-item--three-line{min-height:88px;padding-top:16px;padding-bottom:16px}.v-list-item--density-default.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-default.v-list-item--three-line .v-list-item__append{padding-top:8px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-comfortable{min-height:36px}.v-list-item--density-comfortable.v-list-item--one-line{min-height:44px}.v-list-item--density-comfortable.v-list-item--two-line{min-height:60px;padding-top:8px;padding-bottom:8px}.v-list-item--density-comfortable.v-list-item--three-line{min-height:84px;padding-top:12px;padding-bottom:12px}.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__append{padding-top:6px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-compact{min-height:32px}.v-list-item--density-compact.v-list-item--one-line{min-height:40px}.v-list-item--density-compact.v-list-item--two-line{min-height:56px;padding-top:4px;padding-bottom:4px}.v-list-item--density-compact.v-list-item--three-line{min-height:80px;padding-top:8px;padding-bottom:8px}.v-list-item--density-compact.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-compact.v-list-item--three-line .v-list-item__append{padding-top:4px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--nav{padding-inline:8px}.v-list .v-list-item--nav:not(:only-child){margin-bottom:4px}.v-list-item__underlay{position:absolute}.v-list-item__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item--active.v-list-item--variant-elevated .v-list-item__overlay{--v-theme-overlay-multiplier: 0}.v-list{--indent-padding: 0px}.v-list--nav{--indent-padding: -8px}.v-list-group{--list-indent-size: 16px;--parent-padding: var(--indent-padding);--prepend-width: 40px}.v-list--slim .v-list-group{--prepend-width: 28px}.v-list-group--fluid{--list-indent-size: 0px}.v-list-group--prepend{--parent-padding: calc(var(--indent-padding) + var(--prepend-width))}.v-list-group--fluid.v-list-group--prepend{--parent-padding: var(--indent-padding)}.v-list-group__items{--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))}.v-list-group__items .v-list-item{padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:not(:focus-visible) .v-list-item__overlay{opacity:0}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:hover .v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit}.v-divider{border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:auto;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-divider__content{padding:0 16px;text-wrap:nowrap}.v-divider__wrapper--vertical .v-divider__content{padding:4px 0}.v-divider__wrapper{display:flex;align-items:center;justify-content:center}.v-divider__wrapper--vertical{flex-direction:column;height:100%}.v-divider__wrapper--vertical .v-divider{margin:0 auto}.v-menu>.v-overlay__content{display:flex;flex-direction:column}.v-menu>.v-overlay__content{border-radius:4px}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{background:rgb(var(--v-theme-surface));border-radius:inherit;overflow:auto;height:100%}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;left:0;pointer-events:none;position:fixed;top:0;bottom:0;right:0}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;bottom:0;left:0;opacity:var(--v-overlay-opacity, .32);position:fixed;right:0;top:0}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden}.v-select__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-select__content{border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-text-field input{color:inherit;opacity:0;flex:1;transition:.15s opacity cubic-bezier(.4,0,.2,1);min-width:0}.v-text-field input:focus,.v-text-field input:active{outline:none}.v-text-field input:invalid{box-shadow:none}.v-text-field .v-field{cursor:text}.v-text-field--prefixed.v-text-field .v-field__input{--v-field-padding-start: 6px}.v-text-field--suffixed.v-text-field .v-field__input{--v-field-padding-end: 0}.v-text-field .v-input__details{padding-inline:16px}.v-input--plain-underlined.v-text-field .v-input__details{padding-inline:0}.v-text-field .v-field--no-label input,.v-text-field .v-field--active input{opacity:1}.v-text-field .v-field--single-line input{transition:none}.v-text-field__prefix,.v-text-field__suffix{align-items:center;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));cursor:default;display:flex;opacity:0;transition:inherit;white-space:nowrap;min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));padding-top:calc(var(--v-field-padding-top, 4px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 6px)}.v-field--active .v-text-field__prefix,.v-field--active .v-text-field__suffix{opacity:1}.v-field--disabled .v-text-field__prefix,.v-field--disabled .v-text-field__suffix{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-text-field__prefix{padding-inline-start:var(--v-field-padding-start)}.v-text-field__suffix{padding-inline-end:var(--v-field-padding-end)}.v-counter{color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));flex:0 1 auto;font-size:12px;transition-duration:.15s}.v-field{display:grid;grid-template-areas:"prepend-inner field clear append-inner";grid-template-columns:min-content minmax(0,1fr) min-content min-content;font-size:16px;letter-spacing:.009375em;max-width:100%;border-radius:4px;contain:layout;flex:1 0;grid-area:control;position:relative;--v-theme-overlay-multiplier: 1;--v-field-padding-start: 16px;--v-field-padding-end: 16px;--v-field-padding-top: 8px;--v-field-padding-bottom: 4px;--v-field-input-padding-top: calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));--v-field-input-padding-bottom: var(--v-field-padding-bottom, 4px)}.v-field--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-field .v-chip{--v-chip-height: 24px}.v-field--prepended{padding-inline-start:12px}.v-field--appended{padding-inline-end:12px}.v-field--variant-solo,.v-field--variant-solo-filled{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo,.v-field--variant-solo-filled{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo-inverted{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted.v-field--focused{color:rgb(var(--v-theme-on-surface-variant))}.v-field--variant-filled{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-input--density-default .v-field--variant-solo,.v-input--density-default .v-field--variant-solo-inverted,.v-input--density-default .v-field--variant-solo-filled,.v-input--density-default .v-field--variant-filled{--v-input-control-height: 56px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-solo,.v-input--density-comfortable .v-field--variant-solo-inverted,.v-input--density-comfortable .v-field--variant-solo-filled,.v-input--density-comfortable .v-field--variant-filled{--v-input-control-height: 48px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-solo,.v-input--density-compact .v-field--variant-solo-inverted,.v-input--density-compact .v-field--variant-solo-filled,.v-input--density-compact .v-field--variant-filled{--v-input-control-height: 40px;--v-field-padding-bottom: 0px}.v-field--variant-outlined,.v-field--single-line,.v-field--no-label{--v-field-padding-top: 0px}.v-input--density-default .v-field--variant-outlined,.v-input--density-default .v-field--single-line,.v-input--density-default .v-field--no-label{--v-field-padding-bottom: 16px}.v-input--density-comfortable .v-field--variant-outlined,.v-input--density-comfortable .v-field--single-line,.v-input--density-comfortable .v-field--no-label{--v-field-padding-bottom: 12px}.v-input--density-compact .v-field--variant-outlined,.v-input--density-compact .v-field--single-line,.v-input--density-compact .v-field--no-label{--v-field-padding-bottom: 8px}.v-field--variant-plain,.v-field--variant-underlined{border-radius:0;padding:0}.v-field--variant-plain.v-field,.v-field--variant-underlined.v-field{--v-field-padding-start: 0px;--v-field-padding-end: 0px}.v-input--density-default .v-field--variant-plain,.v-input--density-default .v-field--variant-underlined{--v-input-control-height: 48px;--v-field-padding-top: 4px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-plain,.v-input--density-comfortable .v-field--variant-underlined{--v-input-control-height: 40px;--v-field-padding-top: 2px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-plain,.v-input--density-compact .v-field--variant-underlined{--v-input-control-height: 32px;--v-field-padding-top: 0px;--v-field-padding-bottom: 0px}.v-field--flat{box-shadow:none}.v-field--rounded{border-radius:24px}.v-field.v-field--prepended{--v-field-padding-start: 6px}.v-field.v-field--appended{--v-field-padding-end: 6px}.v-field__input{align-items:center;color:inherit;column-gap:2px;display:flex;flex-wrap:wrap;letter-spacing:.009375em;opacity:var(--v-high-emphasis-opacity);min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));min-width:0;padding-inline:var(--v-field-padding-start) var(--v-field-padding-end);padding-top:var(--v-field-input-padding-top);padding-bottom:var(--v-field-input-padding-bottom);position:relative;width:100%}.v-input--density-default .v-field__input{row-gap:8px}.v-input--density-comfortable .v-field__input{row-gap:6px}.v-input--density-compact .v-field__input{row-gap:4px}.v-field__input input{letter-spacing:inherit}.v-field__input input::placeholder,input.v-field__input::placeholder,textarea.v-field__input::placeholder{color:currentColor;opacity:var(--v-disabled-opacity)}.v-field__input:focus,.v-field__input:active{outline:none}.v-field__input:invalid{box-shadow:none}.v-field__field{flex:1 0;grid-area:field;position:relative;align-items:flex-start;display:flex}.v-field__prepend-inner{grid-area:prepend-inner;padding-inline-end:var(--v-field-padding-after)}.v-field__clearable{grid-area:clear}.v-field__append-inner{grid-area:append-inner;padding-inline-start:var(--v-field-padding-after)}.v-field__append-inner,.v-field__clearable,.v-field__prepend-inner{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top, 8px)}.v-field--center-affix .v-field__append-inner,.v-field--center-affix .v-field__clearable,.v-field--center-affix .v-field__prepend-inner{align-items:center;padding-top:0}.v-field.v-field--variant-underlined .v-field__append-inner,.v-field.v-field--variant-underlined .v-field__clearable,.v-field.v-field--variant-underlined .v-field__prepend-inner,.v-field.v-field--variant-plain .v-field__append-inner,.v-field.v-field--variant-plain .v-field__clearable,.v-field.v-field--variant-plain .v-field__prepend-inner{align-items:flex-start;padding-top:calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 4px)}.v-field--focused .v-field__prepend-inner,.v-field--focused .v-field__append-inner{opacity:1}.v-field__prepend-inner>.v-icon,.v-field__append-inner>.v-icon,.v-field__clearable>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-field--disabled .v-field__prepend-inner>.v-icon,.v-field--error .v-field__prepend-inner>.v-icon,.v-field--disabled .v-field__append-inner>.v-icon,.v-field--error .v-field__append-inner>.v-icon,.v-field--disabled .v-field__clearable>.v-icon,.v-field--error .v-field__clearable>.v-icon{opacity:1}.v-field--error:not(.v-field--disabled) .v-field__prepend-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__append-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__clearable>.v-icon{color:rgb(var(--v-theme-error))}.v-field__clearable{cursor:pointer;opacity:0;overflow:hidden;margin-inline:4px;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,width}.v-field--focused .v-field__clearable,.v-field--persistent-clear .v-field__clearable{opacity:1}@media (hover: hover){.v-field:hover .v-field__clearable{opacity:1}}@media (hover: none){.v-field__clearable{opacity:1}}.v-label.v-field-label{contain:layout paint;display:block;margin-inline-start:var(--v-field-padding-start);margin-inline-end:var(--v-field-padding-end);max-width:calc(100% - var(--v-field-padding-start) - var(--v-field-padding-end));pointer-events:none;position:absolute;top:var(--v-input-padding-top);transform-origin:left center;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform;z-index:1}.v-field--variant-underlined .v-label.v-field-label,.v-field--variant-plain .v-label.v-field-label{top:calc(var(--v-input-padding-top) + var(--v-field-padding-top))}.v-field--center-affix .v-label.v-field-label{top:50%;transform:translateY(-50%)}.v-field--active .v-label.v-field-label{visibility:hidden}.v-field--focused .v-label.v-field-label,.v-field--error .v-label.v-field-label{opacity:1}.v-field--error:not(.v-field--disabled) .v-label.v-field-label{color:rgb(var(--v-theme-error))}.v-label.v-field-label--floating{--v-field-label-scale: .75em;font-size:var(--v-field-label-scale);visibility:hidden;max-width:100%}.v-field--center-affix .v-label.v-field-label--floating{transform:none}.v-field.v-field--active .v-label.v-field-label--floating{visibility:unset}.v-input--density-default .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-filled .v-label.v-field-label--floating{top:7px}.v-input--density-comfortable .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-filled .v-label.v-field-label--floating{top:5px}.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:3px}.v-field--variant-plain .v-label.v-field-label--floating,.v-field--variant-underlined .v-label.v-field-label--floating{transform:translateY(-16px);margin:0;top:var(--v-input-padding-top)}.v-field--variant-outlined .v-label.v-field-label--floating{transform:translateY(-50%);transform-origin:center;position:static;margin:0 4px}.v-field__outline{--v-field-border-width: 1px;--v-field-border-opacity: .38;align-items:stretch;contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%}@media (hover: hover){.v-field:hover .v-field__outline{--v-field-border-opacity: var(--v-high-emphasis-opacity)}}.v-field--error:not(.v-field--disabled) .v-field__outline{color:rgb(var(--v-theme-error))}.v-field.v-field--focused .v-field__outline,.v-input.v-input--error .v-field__outline{--v-field-border-opacity: 1}.v-field--variant-outlined.v-field--focused .v-field__outline{--v-field-border-width: 2px}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{border-color:currentColor;border-style:solid;border-width:0 0 var(--v-field-border-width);opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{border-color:currentColor;border-style:solid;border-width:0 0 2px;transform:scaleX(0);transition:transform .15s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--focused.v-field--variant-filled .v-field__outline:after,.v-field--focused.v-field--variant-underlined .v-field__outline:after{transform:scaleX(1)}.v-field--variant-outlined .v-field__outline{border-radius:inherit}.v-field--variant-outlined .v-field__outline__start,.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after,.v-field--variant-outlined .v-field__outline__end{border:0 solid currentColor;opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__start{flex:0 0 12px;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-start-width:var(--v-field-border-width);border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit}.v-field--rounded.v-field--variant-outlined .v-field__outline__start,[class^=rounded-].v-field--variant-outlined .v-field__outline__start,[class*=" rounded-"].v-field--variant-outlined .v-field__outline__start{flex-basis:calc(var(--v-input-control-height) / 2 + 2px)}.v-field--reverse.v-field--variant-outlined .v-field__outline__start{border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0;border-inline-end-width:var(--v-field-border-width);border-inline-start-width:0}.v-field--variant-outlined .v-field__outline__notch{flex:none;position:relative;max-width:calc(100% - 12px)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-outlined .v-field__outline__notch:before{border-width:var(--v-field-border-width) 0 0}.v-field--variant-outlined .v-field__outline__notch:after{bottom:0;border-width:0 0 var(--v-field-border-width)}.v-field--active.v-field--variant-outlined .v-field__outline__notch:before{opacity:0}.v-field--variant-outlined .v-field__outline__end{flex:1;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-end-width:var(--v-field-border-width);border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0}.v-field--reverse.v-field--variant-outlined .v-field__outline__end{border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit;border-inline-end-width:0;border-inline-start-width:var(--v-field-border-width)}.v-field__loader{top:calc(100% - 2px);left:0;position:absolute;right:0;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden}.v-field--variant-outlined .v-field__loader{top:calc(100% - 3px);width:calc(100% - 2px);left:1px}.v-field__overlay{border-radius:inherit;pointer-events:none}.v-field__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media (hover: hover){.v-field--variant-solo-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-inverted .v-field__overlay{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-solo-inverted.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-solo-inverted:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-inverted.v-field--focused .v-field__overlay{background-color:rgb(var(--v-theme-surface-variant));opacity:1}.v-field--reverse .v-field__field,.v-field--reverse .v-field__input,.v-field--reverse .v-field__outline{flex-direction:row-reverse}.v-field--reverse .v-field__input,.v-field--reverse input{text-align:end}.v-input--disabled .v-field--variant-filled .v-field__outline:before,.v-input--disabled .v-field--variant-underlined .v-field__outline:before{border-image:repeating-linear-gradient(to right,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 0px,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 2px,transparent 2px,transparent 4px) 1 repeat}.v-field--loading .v-field__outline:after,.v-field--loading .v-field__outline:before{opacity:0}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block}.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px}.v-dialog>.v-overlay__content,.v-dialog>.v-overlay__content>form{display:flex;flex-direction:column;min-height:0}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:16px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:0}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-actions,.v-dialog>.v-overlay__content>form>.v-card>.v-card-actions{justify-content:flex-end}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0}.v-card{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card{border-radius:4px}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-card .v-card__underlay{position:absolute}.v-card--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1}.v-card--hover:before{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0}.v-card--hover:after{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--hover:hover{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend,.v-card-item__append{align-items:center;display:flex}.v-card-item__prepend{grid-area:prepend;padding-inline-end:.5rem}.v-card-item__append{grid-area:append;padding-inline-start:.5rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:1.6}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.425}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-text-opacity, 1);padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.425}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{bottom:auto;top:0;left:0;position:absolute;right:0;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-slider .v-slider__container input{cursor:default;padding:0;width:100%;display:none}.v-slider>.v-input__append,.v-slider>.v-input__prepend{padding:0}.v-slider__container{position:relative;min-height:inherit;width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}.v-input--disabled .v-slider__container{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-slider__container{color:rgb(var(--v-theme-error))}.v-slider.v-input--horizontal{align-items:center;margin-inline:8px 8px}.v-slider.v-input--horizontal>.v-input__control{min-height:32px;display:flex;align-items:center}.v-slider.v-input--vertical{justify-content:center;margin-top:12px;margin-bottom:12px}.v-slider.v-input--vertical>.v-input__control{min-height:300px}.v-slider.v-input--disabled{pointer-events:none}.v-slider--has-labels>.v-input__control{margin-bottom:4px}.v-slider__label{margin-inline-end:12px}.v-slider-thumb{touch-action:none;color:rgb(var(--v-theme-surface-variant))}.v-input--error:not(.v-input--disabled) .v-slider-thumb{color:inherit}.v-slider-thumb__label{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant))}.v-slider-thumb__label:before{color:rgba(var(--v-theme-surface-variant),.7)}.v-slider-thumb{outline:none;position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider-thumb__surface{cursor:pointer;width:var(--v-slider-thumb-size);height:var(--v-slider-thumb-size);border-radius:50%;-webkit-user-select:none;user-select:none;background-color:currentColor}@media (forced-colors: active){.v-slider-thumb__surface{background-color:highlight}}.v-slider-thumb__surface:before{transition:.3s cubic-bezier(.4,0,.2,1);content:"";color:inherit;top:0;left:0;width:100%;height:100%;border-radius:50%;background:currentColor;position:absolute;pointer-events:none;opacity:0}.v-slider-thumb__surface:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.v-slider-thumb__label-container{position:absolute;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label{display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:35px;height:25px;border-radius:4px;padding:6px;position:absolute;-webkit-user-select:none;user-select:none;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label:before{content:"";width:0;height:0;position:absolute}.v-slider-thumb__ripple{position:absolute;left:calc(var(--v-slider-thumb-size) / -2);top:calc(var(--v-slider-thumb-size) / -2);width:calc(var(--v-slider-thumb-size) * 2);height:calc(var(--v-slider-thumb-size) * 2);background:inherit}.v-slider.v-input--horizontal .v-slider-thumb{top:50%;transform:translateY(-50%);inset-inline-start:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--horizontal .v-slider-thumb__label-container{left:calc(var(--v-slider-thumb-size) / 2);top:0}.v-slider.v-input--horizontal .v-slider-thumb__label{bottom:calc(var(--v-slider-thumb-size) / 2)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-thumb__label:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;bottom:-6px}.v-slider.v-input--vertical .v-slider-thumb{top:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label-container{top:calc(var(--v-slider-thumb-size) / 2);right:0}.v-slider.v-input--vertical .v-slider-thumb__label{top:-12.5px;left:calc(var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label:before{border-right:6px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px}.v-slider-thumb--focused .v-slider-thumb__surface:before{transform:scale(2);opacity:var(--v-focus-opacity)}.v-slider-thumb--pressed{transition:none}.v-slider-thumb--pressed .v-slider-thumb__surface:before{opacity:var(--v-pressed-opacity)}@media (hover: hover){.v-slider-thumb:hover .v-slider-thumb__surface:before{transform:scale(2)}.v-slider-thumb:hover:not(.v-slider-thumb--focused) .v-slider-thumb__surface:before{opacity:var(--v-hover-opacity)}}.v-slider-track__background{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__background{background-color:highlight}}.v-slider-track__fill{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__fill{background-color:highlight}}.v-slider-track__tick{background-color:rgb(var(--v-theme-surface-variant))}.v-slider-track__tick--filled{background-color:rgb(var(--v-theme-surface-light))}.v-slider-track{border-radius:6px}@media (forced-colors: active){.v-slider-track{border:thin solid buttontext}}.v-slider-track__background,.v-slider-track__fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:inherit}.v-slider--pressed .v-slider-track__background,.v-slider--pressed .v-slider-track__fill{transition:none}.v-input--error:not(.v-input--disabled) .v-slider-track__background,.v-input--error:not(.v-input--disabled) .v-slider-track__fill{background-color:currentColor}.v-slider-track__ticks{height:100%;width:100%;position:relative}.v-slider-track__tick{position:absolute;opacity:0;transition:.2s opacity cubic-bezier(.4,0,.2,1);border-radius:2px;width:var(--v-slider-tick-size);height:var(--v-slider-tick-size);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / -2))}.v-locale--is-ltr.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--first .v-slider-track__tick-label{transform:none}.v-locale--is-rtl.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(100%)}.v-locale--is-ltr.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--last .v-slider-track__tick-label{transform:none}.v-slider-track__tick-label{position:absolute;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-slider.v-input--horizontal .v-slider-track{display:flex;align-items:center;width:100%;height:calc(var(--v-slider-track-size) + 2px);touch-action:pan-y}.v-slider.v-input--horizontal .v-slider-track__background{height:var(--v-slider-track-size)}.v-slider.v-input--horizontal .v-slider-track__fill{height:inherit}.v-slider.v-input--horizontal .v-slider-track__tick{margin-top:calc(calc(var(--v-slider-track-size) + 2px) / 2)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / -2))}.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{margin-top:calc(var(--v-slider-track-size) / 2 + 8px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-track__tick--first{margin-inline-start:calc(var(--v-slider-tick-size) + 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(0)}.v-slider.v-input--horizontal .v-slider-track__tick--last{margin-inline-start:calc(100% - var(--v-slider-tick-size) - 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(100%)}.v-slider.v-input--vertical .v-slider-track{height:100%;display:flex;justify-content:center;width:calc(var(--v-slider-track-size) + 2px);touch-action:pan-x}.v-slider.v-input--vertical .v-slider-track__background{width:var(--v-slider-track-size)}.v-slider.v-input--vertical .v-slider-track__fill{width:inherit}.v-slider.v-input--vertical .v-slider-track__ticks{height:100%}.v-slider.v-input--vertical .v-slider-track__tick{margin-inline-start:calc(calc(var(--v-slider-track-size) + 2px) / 2);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / 2))}.v-locale--is-rtl.v-slider.v-input--vertical .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--vertical .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / 2))}.v-slider.v-input--vertical .v-slider-track__tick--first{bottom:calc(0% + var(--v-slider-tick-size) + 1px)}.v-slider.v-input--vertical .v-slider-track__tick--last{bottom:calc(100% - var(--v-slider-tick-size) - 1px)}.v-slider.v-input--vertical .v-slider-track__tick .v-slider-track__tick-label{margin-inline-start:calc(var(--v-slider-track-size) / 2 + 12px);transform:translateY(-50%)}.v-slider-track__ticks--always-show .v-slider-track__tick,.v-slider--focused .v-slider-track__tick{opacity:1}.v-slider-track__background--opacity{opacity:.38}.v-combobox .v-field .v-text-field__prefix,.v-combobox .v-field .v-text-field__suffix,.v-combobox .v-field .v-field__input,.v-combobox .v-field.v-field{cursor:text}.v-combobox .v-field .v-field__input>input{flex:1 1}.v-combobox .v-field input{min-width:64px}.v-combobox .v-field:not(.v-field--focused) input{min-width:0}.v-combobox .v-field--dirty .v-combobox__selection{margin-inline-end:2px}.v-combobox .v-combobox__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-combobox__content{overflow:hidden}.v-combobox__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-combobox__content{border-radius:4px}.v-combobox__mask{background:rgb(var(--v-theme-surface-light))}.v-combobox__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-combobox__selection:first-child{margin-inline-start:0}.v-combobox--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-combobox--selecting-index .v-combobox__selection{opacity:var(--v-medium-emphasis-opacity)}.v-combobox--selecting-index .v-combobox__selection--selected{opacity:1}.v-combobox--selecting-index .v-field__input>input{caret-color:transparent}.v-combobox--single:not(.v-combobox--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--active input{transition:none}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--focused .v-combobox__selection{opacity:0}.v-combobox__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-combobox--active-menu .v-combobox__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table__th--sticky{background:rgb(var(--v-theme-surface));position:sticky!important;left:0;z-index:1}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-progress__loader{position:relative}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table__tr--mobile>.v-data-table__td--expanded-row{grid-template-columns:0;justify-content:center}.v-data-table__tr--mobile>.v-data-table__td--select-row{grid-template-columns:0;justify-content:end}.v-data-table__tr--mobile>td{align-items:center;column-gap:4px;display:grid;grid-template-columns:repeat(2,1fr);min-height:var(--v-table-row-height)}.v-data-table__tr--mobile>td:not(:last-child){border-bottom:0!important}.v-data-table__td-title{font-weight:500;text-align:left}.v-data-table__td-value{text-align:right}.v-data-table__td-sort-icon{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-data-table__td-sort-icon-active{color:rgba(var(--v-theme-on-surface))}.v-data-table-footer{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:8px 4px}.v-data-table-footer__items-per-page{align-items:center;display:flex;justify-content:center}.v-data-table-footer__items-per-page>span{padding-inline-end:8px}.v-data-table-footer__items-per-page>.v-select{width:90px}.v-data-table-footer__info{display:flex;justify-content:flex-end;min-width:116px;padding:0 16px}.v-data-table-footer__paginationz{align-items:center;display:flex;margin-inline-start:16px}.v-data-table-footer__page{padding:0 8px}.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}.v-table{font-size:.875rem;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr>td{position:relative}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{background:rgba(var(--v-border-color),var(--v-hover-opacity));pointer-events:none}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px 0 rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px 0 rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{border-radius:inherit;line-height:1.5;max-width:100%;display:flex;flex-direction:column}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>td{height:var(--v-table-row-height)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{height:var(--v-table-header-height);font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default{--v-table-header-height: 56px;--v-table-row-height: 52px}.v-table--density-comfortable{--v-table-header-height: 48px;--v-table-row-height: 44px}.v-table--density-compact{--v-table-header-height: 40px;--v-table-row-height: 36px}.v-table__wrapper{border-radius:inherit;overflow:auto;flex:1 1 auto}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:2}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.offset-1{margin-inline-start:8.3333333333%}.offset-2{margin-inline-start:16.6666666667%}.offset-3{margin-inline-start:25%}.offset-4{margin-inline-start:33.3333333333%}.offset-5{margin-inline-start:41.6666666667%}.offset-6{margin-inline-start:50%}.offset-7{margin-inline-start:58.3333333333%}.offset-8{margin-inline-start:66.6666666667%}.offset-9{margin-inline-start:75%}.offset-10{margin-inline-start:83.3333333333%}.offset-11{margin-inline-start:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.offset-sm-0{margin-inline-start:0}.offset-sm-1{margin-inline-start:8.3333333333%}.offset-sm-2{margin-inline-start:16.6666666667%}.offset-sm-3{margin-inline-start:25%}.offset-sm-4{margin-inline-start:33.3333333333%}.offset-sm-5{margin-inline-start:41.6666666667%}.offset-sm-6{margin-inline-start:50%}.offset-sm-7{margin-inline-start:58.3333333333%}.offset-sm-8{margin-inline-start:66.6666666667%}.offset-sm-9{margin-inline-start:75%}.offset-sm-10{margin-inline-start:83.3333333333%}.offset-sm-11{margin-inline-start:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.offset-md-0{margin-inline-start:0}.offset-md-1{margin-inline-start:8.3333333333%}.offset-md-2{margin-inline-start:16.6666666667%}.offset-md-3{margin-inline-start:25%}.offset-md-4{margin-inline-start:33.3333333333%}.offset-md-5{margin-inline-start:41.6666666667%}.offset-md-6{margin-inline-start:50%}.offset-md-7{margin-inline-start:58.3333333333%}.offset-md-8{margin-inline-start:66.6666666667%}.offset-md-9{margin-inline-start:75%}.offset-md-10{margin-inline-start:83.3333333333%}.offset-md-11{margin-inline-start:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.offset-lg-0{margin-inline-start:0}.offset-lg-1{margin-inline-start:8.3333333333%}.offset-lg-2{margin-inline-start:16.6666666667%}.offset-lg-3{margin-inline-start:25%}.offset-lg-4{margin-inline-start:33.3333333333%}.offset-lg-5{margin-inline-start:41.6666666667%}.offset-lg-6{margin-inline-start:50%}.offset-lg-7{margin-inline-start:58.3333333333%}.offset-lg-8{margin-inline-start:66.6666666667%}.offset-lg-9{margin-inline-start:75%}.offset-lg-10{margin-inline-start:83.3333333333%}.offset-lg-11{margin-inline-start:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.offset-xl-0{margin-inline-start:0}.offset-xl-1{margin-inline-start:8.3333333333%}.offset-xl-2{margin-inline-start:16.6666666667%}.offset-xl-3{margin-inline-start:25%}.offset-xl-4{margin-inline-start:33.3333333333%}.offset-xl-5{margin-inline-start:41.6666666667%}.offset-xl-6{margin-inline-start:50%}.offset-xl-7{margin-inline-start:58.3333333333%}.offset-xl-8{margin-inline-start:66.6666666667%}.offset-xl-9{margin-inline-start:75%}.offset-xl-10{margin-inline-start:83.3333333333%}.offset-xl-11{margin-inline-start:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.offset-xxl-0{margin-inline-start:0}.offset-xxl-1{margin-inline-start:8.3333333333%}.offset-xxl-2{margin-inline-start:16.6666666667%}.offset-xxl-3{margin-inline-start:25%}.offset-xxl-4{margin-inline-start:33.3333333333%}.offset-xxl-5{margin-inline-start:41.6666666667%}.offset-xxl-6{margin-inline-start:50%}.offset-xxl-7{margin-inline-start:58.3333333333%}.offset-xxl-8{margin-inline-start:66.6666666667%}.offset-xxl-9{margin-inline-start:75%}.offset-xxl-10{margin-inline-start:83.3333333333%}.offset-xxl-11{margin-inline-start:91.6666666667%}}.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child:not(:last-child){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child) .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-expansion-panel--active>.v-expansion-panel-title:not(.v-expansion-panel-title--static){min-height:31px}.v-expansion-panel__shadow{border-radius:inherit;z-index:-1}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel__shadow{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:31px;outline:none;padding:8px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--focusable.v-expansion-panel-title--active .v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:hover .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus-visible .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title__overlay{background-color:currentColor;border-radius:inherit;opacity:0}.v-expansion-panel-title__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel-title__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;user-select:none;margin-inline-start:auto}.v-expansion-panel-text{display:flex}.v-expansion-panel-text__wrapper{padding:8px 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--variant-accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--variant-accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--variant-popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--variant-popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--variant-inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--variant-inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-expansion-panels--flat>.v-expansion-panel:after{border-top:none}.v-expansion-panels--flat>.v-expansion-panel .v-expansion-panel__shadow{display:none}.v-expansion-panels--tile{border-radius:0}.v-expansion-panels--tile>.v-expansion-panel{border-radius:0}.v-footer{align-items:center;display:flex;flex:1 1 auto;padding:8px 16px;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom}.v-footer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-footer--border{border-width:thin;box-shadow:none}.v-footer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-footer--absolute{position:absolute}.v-footer--fixed{position:fixed}.v-footer{border-radius:0}.v-footer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-footer--rounded{border-radius:4px}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex}.v-main--scrollable{position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-navigation-drawer{-webkit-overflow-scrolling:touch;background:rgb(var(--v-theme-surface));display:flex;flex-direction:column;height:100%;max-width:100%;pointer-events:auto;transition-duration:.2s;transition-property:box-shadow,transform,visibility,width,height,left,right,top,bottom;transition-timing-function:cubic-bezier(.4,0,.2,1);position:absolute}.v-navigation-drawer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-navigation-drawer--border{border-width:thin;box-shadow:none}.v-navigation-drawer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-navigation-drawer--rounded{border-radius:4px}.v-navigation-drawer--top,.v-navigation-drawer--bottom{max-height:-webkit-fill-available;overflow-y:auto}.v-navigation-drawer--top{top:0;border-bottom-width:thin}.v-navigation-drawer--bottom{left:0;border-top-width:thin}.v-navigation-drawer--left{top:0;left:0;right:auto;border-right-width:thin}.v-navigation-drawer--right{top:0;left:auto;right:0;border-left-width:thin}.v-navigation-drawer--floating{border:none}.v-navigation-drawer--temporary.v-navigation-drawer--active{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer--sticky{height:auto;transition:box-shadow,transform,visibility,width,height,left,right}.v-navigation-drawer .v-list{overflow:hidden}.v-navigation-drawer__content{flex:0 1 auto;height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}.v-navigation-drawer__img{height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.v-navigation-drawer__img img:not(.v-img__img){height:inherit;object-fit:cover;width:inherit}.v-navigation-drawer__scrim{position:absolute;top:0;left:0;width:100%;height:100%;background:black;opacity:.2;transition:opacity .2s cubic-bezier(.4,0,.2,1);z-index:1}.v-navigation-drawer__prepend,.v-navigation-drawer__append{flex:none;overflow:hidden}.v-snackbar{justify-content:center;z-index:10000;margin:8px;margin-inline-end:calc(8px + var(--v-scrollbar-offset));padding:var(--v-layout-top) var(--v-layout-right) var(--v-layout-bottom) var(--v-layout-left)}.v-snackbar:not(.v-snackbar--center):not(.v-snackbar--top){align-items:flex-end}.v-snackbar__wrapper{align-items:center;display:flex;max-width:672px;min-height:48px;min-width:344px;overflow:hidden;padding:0}.v-snackbar__wrapper{border-radius:4px}.v-snackbar--variant-plain,.v-snackbar--variant-outlined,.v-snackbar--variant-text,.v-snackbar--variant-tonal{background:transparent;color:inherit}.v-snackbar--variant-plain{opacity:.62}.v-snackbar--variant-plain:focus,.v-snackbar--variant-plain:hover{opacity:1}.v-snackbar--variant-plain .v-snackbar__overlay{display:none}.v-snackbar--variant-elevated,.v-snackbar--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-snackbar--variant-elevated{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-outlined{border:thin solid currentColor}.v-snackbar--variant-text .v-snackbar__overlay{background:currentColor}.v-snackbar--variant-tonal .v-snackbar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-snackbar .v-snackbar__underlay{position:absolute}.v-snackbar__content{flex-grow:1;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1.425;margin-right:auto;padding:14px 16px;text-align:initial}.v-snackbar__actions{align-items:center;align-self:center;display:flex;margin-inline-end:8px}.v-snackbar__actions>.v-btn{padding:0 8px;min-width:auto}.v-snackbar__timer{width:100%;position:absolute;top:0}.v-snackbar__timer .v-progress-linear{transition:.2s linear}.v-snackbar--absolute{position:absolute;z-index:1}.v-snackbar--multi-line .v-snackbar__wrapper{min-height:68px}.v-snackbar--vertical .v-snackbar__wrapper{flex-direction:column}.v-snackbar--vertical .v-snackbar__wrapper .v-snackbar__actions{align-self:flex-end;margin-bottom:8px}.v-snackbar--center{align-items:center;justify-content:center}.v-snackbar--top{align-items:flex-start}.v-snackbar--bottom{align-items:flex-end}.v-snackbar--left,.v-snackbar--start{justify-content:flex-start}.v-snackbar--right,.v-snackbar--end{justify-content:flex-end}.v-snackbar-transition-enter-active,.v-snackbar-transition-leave-active{transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-snackbar-transition-enter-active{transition-property:opacity,transform}.v-snackbar-transition-enter-from{opacity:0;transform:scale(.8)}.v-snackbar-transition-leave-active{transition-property:opacity}.v-snackbar-transition-leave-to{opacity:0}.v-switch .v-label{padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__loader .v-progress-circular{color:rgb(var(--v-theme-surface))}.v-switch__track,.v-switch__thumb{transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb{background-color:rgb(var(--v-theme-error));color:rgb(var(--v-theme-on-error))}.v-switch__track-true{margin-inline-end:auto}.v-selection-control:not(.v-selection-control--dirty) .v-switch__track-true{opacity:0}.v-switch__track-false{margin-inline-start:auto}.v-selection-control--dirty .v-switch__track-false{opacity:0}.v-switch__track{display:inline-flex;align-items:center;font-size:.5rem;padding:0 5px;background-color:rgb(var(--v-theme-surface-variant));border-radius:9999px;height:14px;opacity:.6;min-width:36px;cursor:pointer;transition:.2s background-color cubic-bezier(.4,0,.2,1)}.v-switch--inset .v-switch__track{border-radius:9999px;font-size:.75rem;height:32px;min-width:52px}.v-switch__thumb{align-items:center;background-color:rgb(var(--v-theme-surface-bright));color:rgb(var(--v-theme-on-surface-bright));border-radius:50%;display:flex;font-size:.75rem;height:20px;justify-content:center;width:20px;pointer-events:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1),.2s color cubic-bezier(.4,0,.2,1),.2s background-color cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.v-switch:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch--inset .v-switch__thumb{height:24px;width:24px;transform:scale(.6666666667)}.v-switch--inset .v-switch__thumb--filled{transform:none}.v-switch--inset .v-selection-control--dirty .v-switch__thumb{transform:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1)}.v-switch.v-input{flex:0 1 auto}.v-switch .v-selection-control{min-height:var(--v-input-control-height)}.v-switch .v-selection-control__input{border-radius:50%;transition:.2s transform cubic-bezier(.4,0,.2,1);position:absolute}.v-locale--is-ltr.v-switch .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control__input{transform:translate(-10px)}.v-locale--is-rtl.v-switch .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control__input{transform:translate(10px)}.v-switch .v-selection-control__input .v-icon{position:absolute}.v-locale--is-ltr.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(10px)}.v-locale--is-rtl.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(-10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.v-switch.v-switch--inset .v-selection-control__wrapper{width:auto}.v-switch.v-input--vertical .v-label{min-width:max-content}.v-switch.v-input--vertical .v-selection-control__wrapper{transform:rotate(-90deg)}@media (forced-colors: active){.v-switch .v-switch__loader .v-progress-circular{color:currentColor}.v-switch .v-switch__thumb{background-color:buttontext}.v-switch .v-switch__track,.v-switch .v-switch__thumb{border:1px solid;color:buttontext}.v-switch:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track,.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{color:highlight}.v-switch.v-switch--inset .v-switch__track{border-width:2px}.v-switch.v-switch--inset:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlighttext;color:highlighttext}.v-switch.v-input--disabled .v-switch__thumb{background-color:graytext}.v-switch.v-input--disabled .v-switch__track,.v-switch.v-input--disabled .v-switch__thumb{color:graytext}.v-switch.v-switch--loading .v-switch__thumb{background-color:canvas}.v-switch.v-switch--loading.v-switch--inset .v-switch__thumb,.v-switch.v-switch--loading.v-switch--indeterminate .v-switch__thumb{border-width:0}}.v-textarea .v-field{--v-textarea-control-height: var(--v-input-control-height)}.v-textarea .v-field__field{--v-input-control-height: var(--v-textarea-control-height)}.v-textarea .v-field__input{flex:1 1 auto;outline:none;-webkit-mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px));mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px))}.v-textarea .v-field__input.v-textarea__sizer{visibility:hidden;position:absolute;top:0;left:0;height:0!important;min-height:0!important;pointer-events:none}.v-textarea--no-resize .v-field__input{resize:none}.v-textarea .v-field--no-label textarea,.v-textarea .v-field--active textarea{opacity:1}.v-textarea textarea{opacity:0;flex:1;min-width:0;transition:.15s opacity cubic-bezier(.4,0,.2,1)}.v-textarea textarea:focus,.v-textarea textarea:active{outline:none}.v-textarea textarea:invalid{box-shadow:none}.v-tooltip>.v-overlay__content{background:rgb(var(--v-theme-bluegrey));color:rgb(var(--v-theme-on-surface-variant));border-radius:4px;font-size:.875rem;line-height:1.6;display:inline-block;padding:5px 16px;text-transform:initial;width:auto;opacity:1;pointer-events:none;transition-property:opacity,transform;overflow-wrap:break-word}.v-tooltip>.v-overlay__content[class*=enter-active]{transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s}.v-tooltip>.v-overlay__content[class*=leave-active]{transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:75ms}.divider[data-v-c00c2563]{position:relative;height:24px}.divider__divider-line[data-v-c00c2563]{position:absolute;top:50%;width:100%;transform:translateY(-50%)}.divider__btn[data-v-c00c2563]{position:absolute;top:0;left:50%;transform:translate(-50%);opacity:1}.divider[data-v-c00c2563]:hover{cursor:pointer}.divider:hover .divider__divider-line[data-v-c00c2563]{background-color:#fff}.divider:hover .divider__btn[data-v-c00c2563]{color:#fff!important}.cell[data-v-c84bd489]{padding:18px;display:flex;margin-bottom:2px}.cell--dev[data-v-c84bd489]{margin-bottom:16px}.message-btn--alert[data-v-c84bd489]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjQUU5RkU4Ij48cGF0aCBkPSJNMTMuMzA1IDIyLjVMMTIgMjEuNzVMMTUgMTYuNUgxOS41QzE5Ljg5NzggMTYuNSAyMC4yNzk0IDE2LjM0MiAyMC41NjA3IDE2LjA2MDdDMjAuODQyIDE1Ljc3OTQgMjEgMTUuMzk3OCAyMSAxNVY2QzIxIDUuNjAyMTggMjAuODQyIDUuMjIwNjQgMjAuNTYwNyA0LjkzOTM0QzIwLjI3OTQgNC42NTgwNCAxOS44OTc4IDQuNSAxOS41IDQuNUg0LjVDNC4xMDIxOCA0LjUgMy43MjA2NCA0LjY1ODA0IDMuNDM5MzQgNC45MzkzNEMzLjE1ODA0IDUuMjIwNjQgMyA1LjYwMjE4IDMgNlYxNUMzIDE1LjM5NzggMy4xNTgwNCAxNS43Nzk0IDMuNDM5MzQgMTYuMDYwN0MzLjcyMDY0IDE2LjM0MiA0LjEwMjE4IDE2LjUgNC41IDE2LjVIMTEuMjVWMThINC41QzMuNzA0MzUgMTggMi45NDEyOSAxNy42ODM5IDIuMzc4NjggMTcuMTIxM0MxLjgxNjA3IDE2LjU1ODcgMS41IDE1Ljc5NTYgMS41IDE1VjZDMS41IDUuMjA0MzUgMS44MTYwNyA0LjQ0MTI5IDIuMzc4NjggMy44Nzg2OEMyLjk0MTI5IDMuMzE2MDcgMy43MDQzNSAzIDQuNSAzSDE5LjVDMjAuMjk1NiAzIDIxLjA1ODcgMy4zMTYwNyAyMS42MjEzIDMuODc4NjhDMjIuMTgzOSA0LjQ0MTI5IDIyLjUgNS4yMDQzNSAyMi41IDZWMTVDMjIuNSAxNS43OTU2IDIyLjE4MzkgMTYuNTU4NyAyMS42MjEzIDE3LjEyMTNDMjEuMDU4NyAxNy42ODM5IDIwLjI5NTYgMTggMTkuNSAxOEgxNS44N0wxMy4zMDUgMjIuNVoiIGZpbGw9IiNBRTlGRTgiLz48L3N2Zz4=);background-position:center;background-repeat:no-repeat;transition:none}.message-btn__counter[data-v-c84bd489]{margin-bottom:4px}.delete-cell[data-v-c84bd489]:hover{background-color:#6e3d41}.content[data-v-c84bd489]{flex:1;margin-left:16px;margin-right:0;width:calc(100% - 36px)}.indicator[data-v-c84bd489]{border-radius:4px}.header[data-v-c84bd489]{display:flex;justify-content:space-between;margin-bottom:16px}.code[data-v-c84bd489],.outcome[data-v-c84bd489]{padding:0}.code--dev[data-v-c84bd489],.outcome--dev[data-v-c84bd489]{border:1px solid rgba(var(--v-theme-bluegrey));border-radius:4px;padding:12px}.code[data-v-c84bd489]{margin-bottom:16px}.click-edit[data-v-c84bd489]{width:calc(100% - 135px)}.click-edit__name[data-v-c84bd489]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__show-text[data-v-c84bd489],.click-edit__edit-field-wrapper[data-v-c84bd489]{height:100%;display:flex;align-items:center}.click-edit__name[data-v-c84bd489]:hover{cursor:text;padding-left:3px;padding-right:3px;border:1px solid #294455}.click-edit__static-name[data-v-c84bd489]{cursor:text;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__edit-field[data-v-c84bd489]{margin-top:-11px}.click-edit__edit-field[data-v-c84bd489] .v-field__input{font-size:1rem;letter-spacing:normal}.app-static-name[data-v-3780137e]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-3780137e] .plot-container{overflow:auto}.markdown-content[data-v-d5250b54]{font-family:Arial,sans-serif;line-height:1.6;color:#fff}.markdown-content h1[data-v-d5250b54],h2[data-v-d5250b54],h3[data-v-d5250b54],h4[data-v-d5250b54],h5[data-v-d5250b54],h6[data-v-d5250b54]{margin-top:1.5em;margin-bottom:.5em;font-weight:700;line-height:1.3}.markdown-content p[data-v-d5250b54]{margin-top:0;margin-bottom:1em}.markdown-content ul[data-v-d5250b54],ol[data-v-d5250b54]{padding-left:20px;margin-top:.5em;margin-bottom:.5em}.markdown-content ul[data-v-d5250b54]{list-style-type:disc}.markdown-content ol[data-v-d5250b54]{list-style-type:decimal}.markdown-content li[data-v-d5250b54]{margin-bottom:.25em}.markdown-content a[data-v-d5250b54]{color:#007bff;text-decoration:none}.markdown-content a[data-v-d5250b54]:hover{text-decoration:underline}.markdown-content img[data-v-d5250b54]{max-width:100%;height:auto}.markdown-content blockquote[data-v-d5250b54]{margin:0;padding-left:1em;color:#6a737d;border-left:.25em solid #dfe2e5}.tox{box-shadow:none;box-sizing:content-box;color:#2a3746;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){background:transparent;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #000000;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:1px solid #000000;border-radius:0;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:1300}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#1e71aa66;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#207ab7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus{background-color:#1c6ca1}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#185d8c}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa50080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus{background-color:#f2d574;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc000080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus{background-color:#e9a4a4;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab4680;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .mce-codemirror{background:#fff;bottom:0;font-size:13px;left:0;position:absolute;right:0;top:0;z-index:1}.tox .mce-codemirror.tox-inline-codemirror{margin:8px;position:absolute}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#000;border-radius:0;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar,.tox .tox-bottom-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button:before{border-radius:3px;bottom:-1px;box-shadow:inset 0 0 0 1px #fff,0 0 0 2px #207ab7;content:"";left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:focus:not(:disabled):before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#114060;background-image:none;border-color:#114060;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:none;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#264560;background-image:none;border-color:#264560;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:#3d546f;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--naked:hover:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:#2b3b4e;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#fff3}@media (forced-colors: active){.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:currentColor!important}}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:#ffffff80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#ffffff80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#1a1a1a;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#333;color:#fff;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{background-color:#757d87;color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#2b3b4e;position:relative}.tox .tox-collection--toolbar .tox-collection__item--active:hover{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border:2px solid highlight}}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#4a5562;color:#fff;position:relative;z-index:1}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent "inset";content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border:2px solid highlight}}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){border:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:currentColor;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:currentColor}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#ffffff80;cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:#ffffff80}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid #1a1a1a;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:3px 0 2px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #000000}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #000000}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}@media (forced-colors: active){.tox .tox-hue-slider,.tox .tox-rgb-form .tox-rgba-preview{background-color:currentColor!important;border:1px solid highlight!important;forced-color-adjust:none}}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}@media (forced-colors: active){.tox .tox-swatches__row{forced-color-adjust:none}}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#4a5562}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:3px;width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#ffffff80;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#ffffff80}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar svg,.tox:not([dir=rtl]) .tox-user__avatar img{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg,.tox[dir=rtl] .tox-user__avatar img{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:#222f3ebf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #2a374626,0 0 40px 1px #2a374626;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 16px);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px}@media only screen and (min-width: 768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#ffffff80;display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:#207ab71a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}@media (forced-colors: active){.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid highlight;color:highlight}}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#114060;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #207ab7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#092335;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dd{padding-inline-start:2.5rem}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl{margin-bottom:16px}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dt{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:1px solid #000000;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#222f3ebf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered:before{border:1px solid #000000;border-radius:3px;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered iframe{border-radius:3px}.tox .tox-navobj-bordered-focus.tox-navobj-bordered:before{border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #000000;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#ffffff80;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area:before{border:0 solid transparent;border-radius:4px;content:"";top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}@media (forced-colors: active){.tox .tox-edit-area:before{border:0 solid highlight}}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area:before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #000000}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:none;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #000000;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:0 4px 4px -3px #00000040;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:none;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-custom-preview{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;flex:1;padding:8px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#2a374633;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}@media (forced-colors: active){.tox .tox-color-input span{border-color:currentColor;border-width:2px!important;forced-color-adjust:none}}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:3px;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}@media (forced-colors: active){.tox .tox-color-input span:before{border:none}}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#ffffff80;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#222f3e;color:#ffffffd9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}@media (forced-colors: active){.tox .tox-listbox__select-chevron svg{fill:currentColor!important}}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{background-color:#222f3e;display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#000;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:0 -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#207ab780;border-color:#207ab780}@media (forced-colors: active){.tox .tox-insert-table-picker .tox-insert-table-picker__selected{border-color:Highlight;filter:contrast(50%)}}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}@media only screen and (min-width: 768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1 / -1;grid-row:1;padding:0 4px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#4a5562;border:0;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-mbtn:focus:not(:disabled):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-mbtn:focus:not(:disabled):after{border:2px solid highlight}}.tox .tox-mbtn--active,.tox .tox-mbtn:not(:disabled).tox-mbtn--active:focus{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-left:auto;margin-right:auto;margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in;width:-moz-max-content;width:max-content}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification:focus{border-color:#207ab7;box-shadow:none}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success a:hover,.tox .tox-notification--success a:focus{color:#82b153;text-decoration:underline}.tox .tox-notification--success a:focus-visible{border-radius:1px;outline:2px solid #b5d199;outline-offset:2px}.tox .tox-notification--success a:active{color:#689041;text-decoration:underline}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error a:hover,.tox .tox-notification--error a:focus{color:#d42b2b;text-decoration:underline}.tox .tox-notification--error a:focus-visible{border-radius:1px;outline:2px solid #e68080;outline-offset:2px}.tox .tox-notification--error a:active{color:#a22;text-decoration:underline}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:#000;color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn a:hover,.tox .tox-notification--warning a:hover,.tox .tox-notification--warn a:focus,.tox .tox-notification--warning a:focus{color:#997a00;text-decoration:underline}.tox .tox-notification--warn a:focus-visible,.tox .tox-notification--warning a:focus-visible{border-radius:1px;outline:2px solid #ffcc00;outline-offset:2px}.tox .tox-notification--warn a:active,.tox .tox-notification--warning a:active{color:#665200;text-decoration:underline}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info a:hover,.tox .tox-notification--info a:focus{color:#2681ea;text-decoration:underline}.tox .tox-notification--info a:focus-visible{border-radius:1px;outline:2px solid #83b7f3;outline-offset:2px}.tox .tox-notification--info a:active{color:#1368c9;text-decoration:underline}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-notification-container-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-notification-container-dock-fadein{opacity:1;visibility:visible}.tox .tox-notification-container-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-notification-container-dock-transition.tox-notification-container-dock-fadein{transition-delay:0s}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition:before,.tox .tox-pop--transition:after{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #000000;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;opacity:1;position:absolute;width:0}@media (forced-colors: active){.tox .tox-pop:before,.tox .tox-pop:after{content:none}}.tox .tox-pop.tox-pop--inset:before,.tox .tox-pop.tox-pop--inset:after{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#000000 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #000000 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #000000 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #000000;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #000000;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#ffffff80;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid #000000;color:#fff;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between}@media only screen and (min-width: 768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width: 767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#fff;position:relative;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border:2px solid highlight}}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin:3px -5px 3px 4px;padding-bottom:0;padding-left:0;padding-right:0;position:relative}.tox .tox-statusbar__resize-handle svg{display:block;fill:#ffffff80}.tox .tox-statusbar__resize-handle:hover svg,.tox .tox-statusbar__resize-handle:focus svg{fill:#fff}.tox .tox-statusbar__resize-handle:focus-visible{background-color:transparent;border-radius:1px 1px -4px;box-shadow:0 0 0 2px transparent}.tox .tox-statusbar__resize-handle:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar__resize-handle:focus-visible:after{border:2px solid highlight}}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#222f3e99;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:3px 0 2px;outline:none;padding:0;text-transform:none;width:34px}@media (forced-colors: active){.tox .tox-tbtn:hover,.tox .tox-tbtn.tox-tbtn:hover{outline:1px dashed currentColor}.tox .tox-tbtn.tox-tbtn--active,.tox .tox-tbtn.tox-tbtn--enabled,.tox .tox-tbtn.tox-tbtn--enabled:hover,.tox .tox-tbtn.tox-tbtn--enabled:focus,.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){outline:1px solid currentColor;position:relative}}.tox .tox-tbtn svg{display:block;fill:#fff}@media (forced-colors: active){.tox .tox-tbtn svg{fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--enabled,.tox .tox-tbtn svg:focus:not(.tox-tbtn--disabled){fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--disabled,.tox .tox-tbtn svg.tox-tbtn--disabled:hover,.tox .tox-tbtn svg .tox-tbtn:disabled,.tox .tox-tbtn svg .tox-tbtn:disabled:hover{filter:contrast(0%)}}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#4a5562;border:0;box-shadow:none;position:relative;z-index:1}.tox .tox-tbtn:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn:focus:after{border:2px solid highlight}}.tox .tox-tbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:#ffffff80}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tbtn--active,.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover,.tox .tox-tbtn--enabled:focus{background:#757d87;border:0;box-shadow:none;color:#fff;position:relative}.tox .tox-tbtn--active>*,.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled:focus>*{transform:none}.tox .tox-tbtn--active svg,.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg,.tox .tox-tbtn--enabled:focus svg{fill:#fff}.tox .tox-tbtn--active.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:focus.tox-tbtn--disabled svg{fill:#ffffff80}.tox .tox-tbtn--enabled:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn--enabled:focus:after{border:2px solid highlight}}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{background:transparent;border-radius:3px;display:flex;margin:3px 0 2px;position:relative;width:auto}.tox .tox-number-input:focus{background:#4a5562}.tox .tox-number-input:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper{display:flex;pointer-events:none;position:relative;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background-color:#4a5562;z-index:1}.tox .tox-number-input .tox-input-wrapper:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border:2px solid highlight}}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;position:relative;width:60px}.tox .tox-number-input input:hover{background:#4a5562;color:#fff}.tox .tox-number-input input:focus{background-color:#4a5562}.tox .tox-number-input input:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button{color:#fff;height:34px;position:relative;text-align:center;width:24px}@media (forced-colors: active){.tox .tox-number-input button:hover,.tox .tox-number-input button:focus,.tox .tox-number-input button:active{outline:1px solid currentColor!important}}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}@media (forced-colors: active){.tox .tox-number-input button svg,.tox .tox-number-input button svg:active,.tox .tox-number-input button svg:hover{fill:currentColor!important}.tox .tox-number-input button svg:disabled{filter:contrast(0)}}.tox .tox-number-input button:focus{background:#4a5562;z-index:1}.tox .tox-number-input button:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input button:focus:after{border:2px solid highlight}}.tox .tox-number-input button:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:#ffffff80}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>button,.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper{background:#4a5562}.tox .tox-tbtn--select{margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-tbtn__select-chevron svg{fill:currentColor}}.tox .tox-tbtn--bespoke{background:transparent}.tox .tox-tbtn--bespoke:focus{background:#4a5562}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:0}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:3px 0 2px}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #4a5562 inset}.tox .tox-split-button:focus{background:#4a5562;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-split-button:focus:after{pointer-events:none;border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-split-button:focus:after{border:2px solid highlight}}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button>*:nth-child(1){border-bottom-left-radius:3px;border-top-left-radius:3px}.tox .tox-split-button>*:nth-child(2){border-bottom-right-radius:3px;border-top-right-radius:3px}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-split-button__chevron svg{fill:currentColor}}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button:focus .tox-tbtn{background-color:transparent}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:#222f3e;box-shadow:none;color:#ffffff80}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(#000000 0px 1px,transparent 1px 39px);background-position:center top 39px;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 39px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__primary,.tox .tox-toolbar-overlord>.tox-toolbar__overflow{background-position:center top 0px;background-size:calc(100% - 8px) calc(100% + -0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-toolbar-overlord,.tox .tox-anchorbar{grid-column:1 / -1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid #000000;margin-top:-1px;padding-bottom:0;padding-top:0}@media (forced-colors: active){.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{outline:1px solid currentColor}}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 16px) calc(100% - 51px);border:none;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;overscroll-behavior:none;padding:4px 0}@media (forced-colors: active){.tox.tox-tinymce-aux .tox-toolbar__overflow{border:solid}}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 8px) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #000000}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #000000}.tox .tox-tooltip{display:inline-block;max-width:15em;padding:8px;pointer-events:none;position:relative;width:-moz-max-content;width:max-content;z-index:1150}.tox .tox-tooltip__body{background-color:#2a3746;border-radius:3px;box-shadow:none;color:#fff;font-size:12px;font-style:normal;font-weight:600;overflow-wrap:break-word;padding:4px 6px;text-transform:none}@media (forced-colors: active){.tox .tox-tooltip__body{outline:outset 1px}}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #2A3746;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #2A3746;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #2A3746;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #2A3746;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:transparent;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:none;overflow:hidden;padding:0 0 0 8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled>*,.tox .tox-tree .tox-trbtn--enabled:hover>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-revisionhistory__pane{padding:0!important}.tox .tox-revisionhistory__container{display:flex;flex-direction:column;height:100%}.tox .tox-revisionhistory{background-color:#2b3b4e;border-radius:4px;border-top:1px solid #000000;display:flex;flex:1;height:100%;margin-top:8px;overflow-x:auto;overflow-y:hidden;position:relative;width:100%}.tox .tox-revisionhistory--align-right{margin-left:auto}.tox .tox-revisionhistory__iframe{flex:1}.tox .tox-revisionhistory__sidebar{border-left:1px solid #000000;height:100%;max-width:360px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__sidebar-title{border-bottom:1px solid #000000;color:#fff;font-size:20px;font-weight:400;height:60px;min-width:192px;padding:16px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions{flex-direction:column;max-height:calc(100% - 60px);min-width:192px;overflow-y:auto;padding:8px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus{height:100%;position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{box-shadow:0 0 0 0 transparent;content:"";position:absolute;border-radius:3px;bottom:1px;left:1px;right:1px;top:1px}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card{border:1px solid #000000;border-radius:3px;color:#fff;cursor:pointer;font-size:14px;margin-bottom:8px;padding:8px;text-overflow:ellipsis;text-wrap:nowrap;width:100%}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:hover{background-color:#4a5562;box-shadow:none;color:#fff}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus{position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{border-radius:3px!important;border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected{background-color:#6ea9d0;box-shadow:none;color:#fff}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__norevision{color:#ffffff80;font-size:16px;line-height:24px;padding:5px 5.5px}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column;height:100%}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0;position:relative}.tox .tox-view__label{color:#fff;font-weight:700;line-height:24px;padding:4px 16px;text-align:center;white-space:nowrap}.tox .tox-view__label--normal{font-size:16px}.tox .tox-view__label--large{font-size:20px}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;overflow-x:auto;padding:8px 8px 0}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-start,.tox .tox-view__header-end{display:flex}.tox .tox-view__pane{height:100%;padding:8px;position:relative;width:100%}.tox .tox-view__pane_panel{border:1px solid #000000;border-radius:3px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-start>*,.tox[dir=rtl] .tox-view__header .tox-view__header-end>*{margin-right:8px}.tox .tox-well{border:1px solid #000000;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #000000;border-radius:3px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:none;padding:0}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce-inline .tox-editor-container{overflow:hidden}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:none;box-shadow:none}.tox.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:transparent;box-shadow:0 4px 4px -3px #00000040;padding:0}.tox.tox.tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-pop{box-shadow:none}.tox .tox-tbtn,.tox .tox-number-input,.tox .tox-tbtn--select,.tox .tox-split-button{margin:2px 0 3px}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0px #222f3e!important}.tox .tox-menubar+.tox-toolbar-overlord{border-top:none}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #000000;margin-top:-1px}.tox.tox-tinymce-aux .tox-toolbar__overflow{border:1px solid #000000;padding:0}.tox .tox-pop .tox-pop__dialog .tox-toolbar{padding:0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #000000}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #000000}.tox .tox-toolbar__group{padding:0 4px}.tox .tox-collection__item{border-radius:0;cursor:pointer}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff}.tox .tox-statusbar__branding svg{fill:#fffc;height:1em;margin-left:.3em;width:auto}@media (forced-colors: active){.tox .tox-statusbar__branding svg{fill:currentColor}}.tox .tox-statusbar__branding a{align-items:center;display:inline-flex}.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox[dir=rtl] .tox-statusbar__branding svg{margin-left:0;margin-right:.3em}.tox .tox-statusbar__resize-handle{padding-bottom:0;padding-right:0}.tox .tox-button:before{display:none}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#0e1b23!important}.tox-tinymce{border:none!important}.app-static-name[data-v-c042122a]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-name[data-v-588566c2]{position:sticky;top:100px}.message[data-v-588566c2]{padding-top:10px}.message__timestamp[data-v-588566c2]{font-size:.75rem;color:rgba(var(--v-theme-bluegrey))}.message__content[data-v-588566c2]{font-size:14px;word-break:break-word}.comment__actions[data-v-588566c2]{position:absolute;right:0}.card[data-v-793087b5]{position:sticky;height:87.5vh;top:3.9rem}.close-btn[data-v-793087b5]{position:absolute;top:0;right:0}.content[data-v-793087b5]{position:relative;height:100%}.empty-state[data-v-793087b5]{margin-top:200px;text-align:center}.empty-state__text[data-v-793087b5]{max-width:20em;margin:0 auto;line-height:1.8rem;color:rgb(var(--v-theme-bluegrey))}.comments-wrapper[data-v-793087b5]{max-height:66vh;overflow-y:auto}.cell-container{padding-top:0}.cell-container--app{padding-bottom:0}.cm-editor{height:auto!important}.zt-app-bar[data-v-4b6b6f0a]{padding-top:6px;padding-bottom:6px}.logo-btn[data-v-4b6b6f0a] .v-icon{width:1.5em;height:1.5em}.cm-editor[data-v-4b6b6f0a]{height:auto!important}.click-edit[data-v-4b6b6f0a]{max-width:200px;width:100%}.click-edit__name[data-v-4b6b6f0a]{font-weight:400;cursor:text}.click-edit__show-text[data-v-4b6b6f0a],.click-edit__edit-field-wrapper[data-v-4b6b6f0a]{display:flex;align-items:center}.click-edit__name[data-v-4b6b6f0a]:hover{padding-left:3px;padding-right:3px;cursor:text;border:1px solid #294455}.click-edit__edit-field[data-v-4b6b6f0a]{margin-top:-11px}.click-edit__edit-field[data-v-4b6b6f0a] .v-field__input{font-size:1.5rem;letter-spacing:normal}@media (min-width: 600px){.click-edit[data-v-4b6b6f0a]{max-width:250px}}@media (min-width: 1280px){.click-edit[data-v-4b6b6f0a]{max-width:450px}}@media (min-width: 1920px){.click-edit[data-v-4b6b6f0a]{max-width:600px}}.content[data-v-4b6b6f0a]{padding-left:0!important;padding-right:0!important}.content__comments[data-v-4b6b6f0a]{width:0;transition:width .15s ease}.content__comments--show[data-v-4b6b6f0a]{width:380px}.footer[data-v-4b6b6f0a]{display:flex;justify-content:space-between;flex-direction:column;padding:4px 16px}.footer__left-container[data-v-4b6b6f0a],.footer__right-container[data-v-4b6b6f0a]{display:flex;width:100%}@media (min-width: 960px){.footer__left-container[data-v-4b6b6f0a],.footer__right-container[data-v-4b6b6f0a]{align-items:center;width:auto}}.footer__right-container[data-v-4b6b6f0a]{align-items:center;flex-direction:column;justify-content:flex-start}@media (min-width: 600px){.footer__right-container[data-v-4b6b6f0a]{flex-direction:row}}.footer__left-container[data-v-4b6b6f0a]{flex-direction:column;margin:0 0 20px}@media (min-width: 600px){.footer__left-container[data-v-4b6b6f0a]{margin:0;flex-direction:row}}.footer__queue-length-wrapper[data-v-4b6b6f0a]{display:flex;justify-content:flex-start;width:100%}@media (min-width: 600px){.footer__queue-length-wrapper[data-v-4b6b6f0a]{width:auto}}.footer .dot-divider[data-v-4b6b6f0a]{display:none;margin:0 5px}@media (min-width: 600px){.footer .dot-divider[data-v-4b6b6f0a]{display:flex;margin:0 16px}}@media (min-width: 1280px){.footer .dot-divider[data-v-4b6b6f0a]{margin:0 16px}}@media (min-width: 1920px){.footer .dot-divider[data-v-4b6b6f0a]{margin:0 24px}}.footer__status-wrapper[data-v-4b6b6f0a]{display:flex;justify-content:flex-start;width:100%;align-items:center}.footer__status-wrapper .dot-divider[data-v-4b6b6f0a]{display:none}@media (min-width: 960px){.footer__status-wrapper .dot-divider[data-v-4b6b6f0a]{display:flex}}.footer__code-version-icon[data-v-4b6b6f0a]{margin-right:0;margin-left:-5px}@media (min-width: 600px){.footer__code-version-icon[data-v-4b6b6f0a]{margin-right:12px}}.footer__queue-length-btn[data-v-4b6b6f0a]{margin:0 2px}@media (min-width: 960px){.footer__queue-length-btn[data-v-4b6b6f0a]{margin:0 8px 0 24px}}.footer__code-running-loader[data-v-4b6b6f0a]{margin-right:10px}@media (min-width: 1280px){.footer__code-running-loader[data-v-4b6b6f0a]{margin-right:10px}}.footer__queue-list[data-v-4b6b6f0a]{font-size:.625rem}.footer__queue-list-item--pending[data-v-4b6b6f0a]{color:rgba(var(--v-theme-bluegrey-darken-2))}.footer__status[data-v-4b6b6f0a]{color:rgba(var(--v-theme-success))}.footer__status--error[data-v-4b6b6f0a]{color:rgba(var(--v-theme-error))}@media (min-width: 960px){.footer[data-v-4b6b6f0a]{flex-direction:row;height:34px}}.toggle-group[data-v-4b6b6f0a]{display:flex;justify-content:center;position:absolute;left:50%;transform:translate(-50%)}@font-face{font-family:Material Design Icons;src:url(./materialdesignicons-webfont-5159a347.eot?v=7.3.67);src:url(./materialdesignicons-webfont-5159a347.eot?#iefix&v=7.3.67) format("embedded-opentype"),url(./materialdesignicons-webfont-31010194.woff2?v=7.3.67) format("woff2"),url(./materialdesignicons-webfont-28c8f97f.woff?v=7.3.67) format("woff"),url(./materialdesignicons-webfont-be825c12.ttf?v=7.3.67) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-file:before{content:"󱲧"}.mdi-account-file-outline:before{content:"󱲨"}.mdi-account-file-text:before{content:"󱲩"}.mdi-account-file-text-outline:before{content:"󱲪"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-off-outline:before{content:"󱫲"}.mdi-account-network-outline:before{content:"󰯦"}.mdi-account-off:before{content:"󰀒"}.mdi-account-off-outline:before{content:"󰯧"}.mdi-account-outline:before{content:"󰀓"}.mdi-account-plus:before{content:"󰀔"}.mdi-account-plus-outline:before{content:"󰠁"}.mdi-account-question:before{content:"󰭙"}.mdi-account-question-outline:before{content:"󰭚"}.mdi-account-reactivate:before{content:"󱔫"}.mdi-account-reactivate-outline:before{content:"󱔬"}.mdi-account-remove:before{content:"󰀕"}.mdi-account-remove-outline:before{content:"󰫭"}.mdi-account-school:before{content:"󱨠"}.mdi-account-school-outline:before{content:"󱨡"}.mdi-account-search:before{content:"󰀖"}.mdi-account-search-outline:before{content:"󰤵"}.mdi-account-settings:before{content:"󰘰"}.mdi-account-settings-outline:before{content:"󱃉"}.mdi-account-star:before{content:"󰀗"}.mdi-account-star-outline:before{content:"󰯨"}.mdi-account-supervisor:before{content:"󰪋"}.mdi-account-supervisor-circle:before{content:"󰪌"}.mdi-account-supervisor-circle-outline:before{content:"󱓬"}.mdi-account-supervisor-outline:before{content:"󱄭"}.mdi-account-switch:before{content:"󰀙"}.mdi-account-switch-outline:before{content:"󰓋"}.mdi-account-sync:before{content:"󱤛"}.mdi-account-sync-outline:before{content:"󱤜"}.mdi-account-tag:before{content:"󱰛"}.mdi-account-tag-outline:before{content:"󱰜"}.mdi-account-tie:before{content:"󰳣"}.mdi-account-tie-hat:before{content:"󱢘"}.mdi-account-tie-hat-outline:before{content:"󱢙"}.mdi-account-tie-outline:before{content:"󱃊"}.mdi-account-tie-voice:before{content:"󱌈"}.mdi-account-tie-voice-off:before{content:"󱌊"}.mdi-account-tie-voice-off-outline:before{content:"󱌋"}.mdi-account-tie-voice-outline:before{content:"󱌉"}.mdi-account-tie-woman:before{content:"󱪌"}.mdi-account-voice:before{content:"󰗋"}.mdi-account-voice-off:before{content:"󰻔"}.mdi-account-wrench:before{content:"󱢚"}.mdi-account-wrench-outline:before{content:"󱢛"}.mdi-adjust:before{content:"󰀚"}.mdi-advertisements:before{content:"󱤪"}.mdi-advertisements-off:before{content:"󱤫"}.mdi-air-conditioner:before{content:"󰀛"}.mdi-air-filter:before{content:"󰵃"}.mdi-air-horn:before{content:"󰶬"}.mdi-air-humidifier:before{content:"󱂙"}.mdi-air-humidifier-off:before{content:"󱑦"}.mdi-air-purifier:before{content:"󰵄"}.mdi-air-purifier-off:before{content:"󱭗"}.mdi-airbag:before{content:"󰯩"}.mdi-airballoon:before{content:"󰀜"}.mdi-airballoon-outline:before{content:"󱀋"}.mdi-airplane:before{content:"󰀝"}.mdi-airplane-alert:before{content:"󱡺"}.mdi-airplane-check:before{content:"󱡻"}.mdi-airplane-clock:before{content:"󱡼"}.mdi-airplane-cog:before{content:"󱡽"}.mdi-airplane-edit:before{content:"󱡾"}.mdi-airplane-landing:before{content:"󰗔"}.mdi-airplane-marker:before{content:"󱡿"}.mdi-airplane-minus:before{content:"󱢀"}.mdi-airplane-off:before{content:"󰀞"}.mdi-airplane-plus:before{content:"󱢁"}.mdi-airplane-remove:before{content:"󱢂"}.mdi-airplane-search:before{content:"󱢃"}.mdi-airplane-settings:before{content:"󱢄"}.mdi-airplane-takeoff:before{content:"󰗕"}.mdi-airport:before{content:"󰡋"}.mdi-alarm:before{content:"󰀠"}.mdi-alarm-bell:before{content:"󰞎"}.mdi-alarm-check:before{content:"󰀡"}.mdi-alarm-light:before{content:"󰞏"}.mdi-alarm-light-off:before{content:"󱜞"}.mdi-alarm-light-off-outline:before{content:"󱜟"}.mdi-alarm-light-outline:before{content:"󰯪"}.mdi-alarm-multiple:before{content:"󰀢"}.mdi-alarm-note:before{content:"󰹱"}.mdi-alarm-note-off:before{content:"󰹲"}.mdi-alarm-off:before{content:"󰀣"}.mdi-alarm-panel:before{content:"󱗄"}.mdi-alarm-panel-outline:before{content:"󱗅"}.mdi-alarm-plus:before{content:"󰀤"}.mdi-alarm-snooze:before{content:"󰚎"}.mdi-album:before{content:"󰀥"}.mdi-alert:before{content:"󰀦"}.mdi-alert-box:before{content:"󰀧"}.mdi-alert-box-outline:before{content:"󰳤"}.mdi-alert-circle:before{content:"󰀨"}.mdi-alert-circle-check:before{content:"󱇭"}.mdi-alert-circle-check-outline:before{content:"󱇮"}.mdi-alert-circle-outline:before{content:"󰗖"}.mdi-alert-decagram:before{content:"󰚽"}.mdi-alert-decagram-outline:before{content:"󰳥"}.mdi-alert-minus:before{content:"󱒻"}.mdi-alert-minus-outline:before{content:"󱒾"}.mdi-alert-octagon:before{content:"󰀩"}.mdi-alert-octagon-outline:before{content:"󰳦"}.mdi-alert-octagram:before{content:"󰝧"}.mdi-alert-octagram-outline:before{content:"󰳧"}.mdi-alert-outline:before{content:"󰀪"}.mdi-alert-plus:before{content:"󱒺"}.mdi-alert-plus-outline:before{content:"󱒽"}.mdi-alert-remove:before{content:"󱒼"}.mdi-alert-remove-outline:before{content:"󱒿"}.mdi-alert-rhombus:before{content:"󱇎"}.mdi-alert-rhombus-outline:before{content:"󱇏"}.mdi-alien:before{content:"󰢚"}.mdi-alien-outline:before{content:"󱃋"}.mdi-align-horizontal-center:before{content:"󱇃"}.mdi-align-horizontal-distribute:before{content:"󱥢"}.mdi-align-horizontal-left:before{content:"󱇂"}.mdi-align-horizontal-right:before{content:"󱇄"}.mdi-align-vertical-bottom:before{content:"󱇅"}.mdi-align-vertical-center:before{content:"󱇆"}.mdi-align-vertical-distribute:before{content:"󱥣"}.mdi-align-vertical-top:before{content:"󱇇"}.mdi-all-inclusive:before{content:"󰚾"}.mdi-all-inclusive-box:before{content:"󱢍"}.mdi-all-inclusive-box-outline:before{content:"󱢎"}.mdi-allergy:before{content:"󱉘"}.mdi-alpha:before{content:"󰀫"}.mdi-alpha-a:before{content:"󰫮"}.mdi-alpha-a-box:before{content:"󰬈"}.mdi-alpha-a-box-outline:before{content:"󰯫"}.mdi-alpha-a-circle:before{content:"󰯬"}.mdi-alpha-a-circle-outline:before{content:"󰯭"}.mdi-alpha-b:before{content:"󰫯"}.mdi-alpha-b-box:before{content:"󰬉"}.mdi-alpha-b-box-outline:before{content:"󰯮"}.mdi-alpha-b-circle:before{content:"󰯯"}.mdi-alpha-b-circle-outline:before{content:"󰯰"}.mdi-alpha-c:before{content:"󰫰"}.mdi-alpha-c-box:before{content:"󰬊"}.mdi-alpha-c-box-outline:before{content:"󰯱"}.mdi-alpha-c-circle:before{content:"󰯲"}.mdi-alpha-c-circle-outline:before{content:"󰯳"}.mdi-alpha-d:before{content:"󰫱"}.mdi-alpha-d-box:before{content:"󰬋"}.mdi-alpha-d-box-outline:before{content:"󰯴"}.mdi-alpha-d-circle:before{content:"󰯵"}.mdi-alpha-d-circle-outline:before{content:"󰯶"}.mdi-alpha-e:before{content:"󰫲"}.mdi-alpha-e-box:before{content:"󰬌"}.mdi-alpha-e-box-outline:before{content:"󰯷"}.mdi-alpha-e-circle:before{content:"󰯸"}.mdi-alpha-e-circle-outline:before{content:"󰯹"}.mdi-alpha-f:before{content:"󰫳"}.mdi-alpha-f-box:before{content:"󰬍"}.mdi-alpha-f-box-outline:before{content:"󰯺"}.mdi-alpha-f-circle:before{content:"󰯻"}.mdi-alpha-f-circle-outline:before{content:"󰯼"}.mdi-alpha-g:before{content:"󰫴"}.mdi-alpha-g-box:before{content:"󰬎"}.mdi-alpha-g-box-outline:before{content:"󰯽"}.mdi-alpha-g-circle:before{content:"󰯾"}.mdi-alpha-g-circle-outline:before{content:"󰯿"}.mdi-alpha-h:before{content:"󰫵"}.mdi-alpha-h-box:before{content:"󰬏"}.mdi-alpha-h-box-outline:before{content:"󰰀"}.mdi-alpha-h-circle:before{content:"󰰁"}.mdi-alpha-h-circle-outline:before{content:"󰰂"}.mdi-alpha-i:before{content:"󰫶"}.mdi-alpha-i-box:before{content:"󰬐"}.mdi-alpha-i-box-outline:before{content:"󰰃"}.mdi-alpha-i-circle:before{content:"󰰄"}.mdi-alpha-i-circle-outline:before{content:"󰰅"}.mdi-alpha-j:before{content:"󰫷"}.mdi-alpha-j-box:before{content:"󰬑"}.mdi-alpha-j-box-outline:before{content:"󰰆"}.mdi-alpha-j-circle:before{content:"󰰇"}.mdi-alpha-j-circle-outline:before{content:"󰰈"}.mdi-alpha-k:before{content:"󰫸"}.mdi-alpha-k-box:before{content:"󰬒"}.mdi-alpha-k-box-outline:before{content:"󰰉"}.mdi-alpha-k-circle:before{content:"󰰊"}.mdi-alpha-k-circle-outline:before{content:"󰰋"}.mdi-alpha-l:before{content:"󰫹"}.mdi-alpha-l-box:before{content:"󰬓"}.mdi-alpha-l-box-outline:before{content:"󰰌"}.mdi-alpha-l-circle:before{content:"󰰍"}.mdi-alpha-l-circle-outline:before{content:"󰰎"}.mdi-alpha-m:before{content:"󰫺"}.mdi-alpha-m-box:before{content:"󰬔"}.mdi-alpha-m-box-outline:before{content:"󰰏"}.mdi-alpha-m-circle:before{content:"󰰐"}.mdi-alpha-m-circle-outline:before{content:"󰰑"}.mdi-alpha-n:before{content:"󰫻"}.mdi-alpha-n-box:before{content:"󰬕"}.mdi-alpha-n-box-outline:before{content:"󰰒"}.mdi-alpha-n-circle:before{content:"󰰓"}.mdi-alpha-n-circle-outline:before{content:"󰰔"}.mdi-alpha-o:before{content:"󰫼"}.mdi-alpha-o-box:before{content:"󰬖"}.mdi-alpha-o-box-outline:before{content:"󰰕"}.mdi-alpha-o-circle:before{content:"󰰖"}.mdi-alpha-o-circle-outline:before{content:"󰰗"}.mdi-alpha-p:before{content:"󰫽"}.mdi-alpha-p-box:before{content:"󰬗"}.mdi-alpha-p-box-outline:before{content:"󰰘"}.mdi-alpha-p-circle:before{content:"󰰙"}.mdi-alpha-p-circle-outline:before{content:"󰰚"}.mdi-alpha-q:before{content:"󰫾"}.mdi-alpha-q-box:before{content:"󰬘"}.mdi-alpha-q-box-outline:before{content:"󰰛"}.mdi-alpha-q-circle:before{content:"󰰜"}.mdi-alpha-q-circle-outline:before{content:"󰰝"}.mdi-alpha-r:before{content:"󰫿"}.mdi-alpha-r-box:before{content:"󰬙"}.mdi-alpha-r-box-outline:before{content:"󰰞"}.mdi-alpha-r-circle:before{content:"󰰟"}.mdi-alpha-r-circle-outline:before{content:"󰰠"}.mdi-alpha-s:before{content:"󰬀"}.mdi-alpha-s-box:before{content:"󰬚"}.mdi-alpha-s-box-outline:before{content:"󰰡"}.mdi-alpha-s-circle:before{content:"󰰢"}.mdi-alpha-s-circle-outline:before{content:"󰰣"}.mdi-alpha-t:before{content:"󰬁"}.mdi-alpha-t-box:before{content:"󰬛"}.mdi-alpha-t-box-outline:before{content:"󰰤"}.mdi-alpha-t-circle:before{content:"󰰥"}.mdi-alpha-t-circle-outline:before{content:"󰰦"}.mdi-alpha-u:before{content:"󰬂"}.mdi-alpha-u-box:before{content:"󰬜"}.mdi-alpha-u-box-outline:before{content:"󰰧"}.mdi-alpha-u-circle:before{content:"󰰨"}.mdi-alpha-u-circle-outline:before{content:"󰰩"}.mdi-alpha-v:before{content:"󰬃"}.mdi-alpha-v-box:before{content:"󰬝"}.mdi-alpha-v-box-outline:before{content:"󰰪"}.mdi-alpha-v-circle:before{content:"󰰫"}.mdi-alpha-v-circle-outline:before{content:"󰰬"}.mdi-alpha-w:before{content:"󰬄"}.mdi-alpha-w-box:before{content:"󰬞"}.mdi-alpha-w-box-outline:before{content:"󰰭"}.mdi-alpha-w-circle:before{content:"󰰮"}.mdi-alpha-w-circle-outline:before{content:"󰰯"}.mdi-alpha-x:before{content:"󰬅"}.mdi-alpha-x-box:before{content:"󰬟"}.mdi-alpha-x-box-outline:before{content:"󰰰"}.mdi-alpha-x-circle:before{content:"󰰱"}.mdi-alpha-x-circle-outline:before{content:"󰰲"}.mdi-alpha-y:before{content:"󰬆"}.mdi-alpha-y-box:before{content:"󰬠"}.mdi-alpha-y-box-outline:before{content:"󰰳"}.mdi-alpha-y-circle:before{content:"󰰴"}.mdi-alpha-y-circle-outline:before{content:"󰰵"}.mdi-alpha-z:before{content:"󰬇"}.mdi-alpha-z-box:before{content:"󰬡"}.mdi-alpha-z-box-outline:before{content:"󰰶"}.mdi-alpha-z-circle:before{content:"󰰷"}.mdi-alpha-z-circle-outline:before{content:"󰰸"}.mdi-alphabet-aurebesh:before{content:"󱌬"}.mdi-alphabet-cyrillic:before{content:"󱌭"}.mdi-alphabet-greek:before{content:"󱌮"}.mdi-alphabet-latin:before{content:"󱌯"}.mdi-alphabet-piqad:before{content:"󱌰"}.mdi-alphabet-tengwar:before{content:"󱌷"}.mdi-alphabetical:before{content:"󰀬"}.mdi-alphabetical-off:before{content:"󱀌"}.mdi-alphabetical-variant:before{content:"󱀍"}.mdi-alphabetical-variant-off:before{content:"󱀎"}.mdi-altimeter:before{content:"󰗗"}.mdi-ambulance:before{content:"󰀯"}.mdi-ammunition:before{content:"󰳨"}.mdi-ampersand:before{content:"󰪍"}.mdi-amplifier:before{content:"󰀰"}.mdi-amplifier-off:before{content:"󱆵"}.mdi-anchor:before{content:"󰀱"}.mdi-android:before{content:"󰀲"}.mdi-android-studio:before{content:"󰀴"}.mdi-angle-acute:before{content:"󰤷"}.mdi-angle-obtuse:before{content:"󰤸"}.mdi-angle-right:before{content:"󰤹"}.mdi-angular:before{content:"󰚲"}.mdi-angularjs:before{content:"󰚿"}.mdi-animation:before{content:"󰗘"}.mdi-animation-outline:before{content:"󰪏"}.mdi-animation-play:before{content:"󰤺"}.mdi-animation-play-outline:before{content:"󰪐"}.mdi-ansible:before{content:"󱂚"}.mdi-antenna:before{content:"󱄙"}.mdi-anvil:before{content:"󰢛"}.mdi-apache-kafka:before{content:"󱀏"}.mdi-api:before{content:"󱂛"}.mdi-api-off:before{content:"󱉗"}.mdi-apple:before{content:"󰀵"}.mdi-apple-finder:before{content:"󰀶"}.mdi-apple-icloud:before{content:"󰀸"}.mdi-apple-ios:before{content:"󰀷"}.mdi-apple-keyboard-caps:before{content:"󰘲"}.mdi-apple-keyboard-command:before{content:"󰘳"}.mdi-apple-keyboard-control:before{content:"󰘴"}.mdi-apple-keyboard-option:before{content:"󰘵"}.mdi-apple-keyboard-shift:before{content:"󰘶"}.mdi-apple-safari:before{content:"󰀹"}.mdi-application:before{content:"󰣆"}.mdi-application-array:before{content:"󱃵"}.mdi-application-array-outline:before{content:"󱃶"}.mdi-application-braces:before{content:"󱃷"}.mdi-application-braces-outline:before{content:"󱃸"}.mdi-application-brackets:before{content:"󰲋"}.mdi-application-brackets-outline:before{content:"󰲌"}.mdi-application-cog:before{content:"󰙵"}.mdi-application-cog-outline:before{content:"󱕷"}.mdi-application-edit:before{content:"󰂮"}.mdi-application-edit-outline:before{content:"󰘙"}.mdi-application-export:before{content:"󰶭"}.mdi-application-import:before{content:"󰶮"}.mdi-application-outline:before{content:"󰘔"}.mdi-application-parentheses:before{content:"󱃹"}.mdi-application-parentheses-outline:before{content:"󱃺"}.mdi-application-settings:before{content:"󰭠"}.mdi-application-settings-outline:before{content:"󱕕"}.mdi-application-variable:before{content:"󱃻"}.mdi-application-variable-outline:before{content:"󱃼"}.mdi-approximately-equal:before{content:"󰾞"}.mdi-approximately-equal-box:before{content:"󰾟"}.mdi-apps:before{content:"󰀻"}.mdi-apps-box:before{content:"󰵆"}.mdi-arch:before{content:"󰣇"}.mdi-archive:before{content:"󰀼"}.mdi-archive-alert:before{content:"󱓽"}.mdi-archive-alert-outline:before{content:"󱓾"}.mdi-archive-arrow-down:before{content:"󱉙"}.mdi-archive-arrow-down-outline:before{content:"󱉚"}.mdi-archive-arrow-up:before{content:"󱉛"}.mdi-archive-arrow-up-outline:before{content:"󱉜"}.mdi-archive-cancel:before{content:"󱝋"}.mdi-archive-cancel-outline:before{content:"󱝌"}.mdi-archive-check:before{content:"󱝍"}.mdi-archive-check-outline:before{content:"󱝎"}.mdi-archive-clock:before{content:"󱝏"}.mdi-archive-clock-outline:before{content:"󱝐"}.mdi-archive-cog:before{content:"󱝑"}.mdi-archive-cog-outline:before{content:"󱝒"}.mdi-archive-edit:before{content:"󱝓"}.mdi-archive-edit-outline:before{content:"󱝔"}.mdi-archive-eye:before{content:"󱝕"}.mdi-archive-eye-outline:before{content:"󱝖"}.mdi-archive-lock:before{content:"󱝗"}.mdi-archive-lock-open:before{content:"󱝘"}.mdi-archive-lock-open-outline:before{content:"󱝙"}.mdi-archive-lock-outline:before{content:"󱝚"}.mdi-archive-marker:before{content:"󱝛"}.mdi-archive-marker-outline:before{content:"󱝜"}.mdi-archive-minus:before{content:"󱝝"}.mdi-archive-minus-outline:before{content:"󱝞"}.mdi-archive-music:before{content:"󱝟"}.mdi-archive-music-outline:before{content:"󱝠"}.mdi-archive-off:before{content:"󱝡"}.mdi-archive-off-outline:before{content:"󱝢"}.mdi-archive-outline:before{content:"󱈎"}.mdi-archive-plus:before{content:"󱝣"}.mdi-archive-plus-outline:before{content:"󱝤"}.mdi-archive-refresh:before{content:"󱝥"}.mdi-archive-refresh-outline:before{content:"󱝦"}.mdi-archive-remove:before{content:"󱝧"}.mdi-archive-remove-outline:before{content:"󱝨"}.mdi-archive-search:before{content:"󱝩"}.mdi-archive-search-outline:before{content:"󱝪"}.mdi-archive-settings:before{content:"󱝫"}.mdi-archive-settings-outline:before{content:"󱝬"}.mdi-archive-star:before{content:"󱝭"}.mdi-archive-star-outline:before{content:"󱝮"}.mdi-archive-sync:before{content:"󱝯"}.mdi-archive-sync-outline:before{content:"󱝰"}.mdi-arm-flex:before{content:"󰿗"}.mdi-arm-flex-outline:before{content:"󰿖"}.mdi-arrange-bring-forward:before{content:"󰀽"}.mdi-arrange-bring-to-front:before{content:"󰀾"}.mdi-arrange-send-backward:before{content:"󰀿"}.mdi-arrange-send-to-back:before{content:"󰁀"}.mdi-arrow-all:before{content:"󰁁"}.mdi-arrow-bottom-left:before{content:"󰁂"}.mdi-arrow-bottom-left-bold-box:before{content:"󱥤"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"󱥥"}.mdi-arrow-bottom-left-bold-outline:before{content:"󰦷"}.mdi-arrow-bottom-left-thick:before{content:"󰦸"}.mdi-arrow-bottom-left-thin:before{content:"󱦶"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"󱖖"}.mdi-arrow-bottom-right:before{content:"󰁃"}.mdi-arrow-bottom-right-bold-box:before{content:"󱥦"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"󱥧"}.mdi-arrow-bottom-right-bold-outline:before{content:"󰦹"}.mdi-arrow-bottom-right-thick:before{content:"󰦺"}.mdi-arrow-bottom-right-thin:before{content:"󱦷"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"󱖕"}.mdi-arrow-collapse:before{content:"󰘕"}.mdi-arrow-collapse-all:before{content:"󰁄"}.mdi-arrow-collapse-down:before{content:"󰞒"}.mdi-arrow-collapse-horizontal:before{content:"󰡌"}.mdi-arrow-collapse-left:before{content:"󰞓"}.mdi-arrow-collapse-right:before{content:"󰞔"}.mdi-arrow-collapse-up:before{content:"󰞕"}.mdi-arrow-collapse-vertical:before{content:"󰡍"}.mdi-arrow-decision:before{content:"󰦻"}.mdi-arrow-decision-auto:before{content:"󰦼"}.mdi-arrow-decision-auto-outline:before{content:"󰦽"}.mdi-arrow-decision-outline:before{content:"󰦾"}.mdi-arrow-down:before{content:"󰁅"}.mdi-arrow-down-bold:before{content:"󰜮"}.mdi-arrow-down-bold-box:before{content:"󰜯"}.mdi-arrow-down-bold-box-outline:before{content:"󰜰"}.mdi-arrow-down-bold-circle:before{content:"󰁇"}.mdi-arrow-down-bold-circle-outline:before{content:"󰁈"}.mdi-arrow-down-bold-hexagon-outline:before{content:"󰁉"}.mdi-arrow-down-bold-outline:before{content:"󰦿"}.mdi-arrow-down-box:before{content:"󰛀"}.mdi-arrow-down-circle:before{content:"󰳛"}.mdi-arrow-down-circle-outline:before{content:"󰳜"}.mdi-arrow-down-drop-circle:before{content:"󰁊"}.mdi-arrow-down-drop-circle-outline:before{content:"󰁋"}.mdi-arrow-down-left:before{content:"󱞡"}.mdi-arrow-down-left-bold:before{content:"󱞢"}.mdi-arrow-down-right:before{content:"󱞣"}.mdi-arrow-down-right-bold:before{content:"󱞤"}.mdi-arrow-down-thick:before{content:"󰁆"}.mdi-arrow-down-thin:before{content:"󱦳"}.mdi-arrow-down-thin-circle-outline:before{content:"󱖙"}.mdi-arrow-expand:before{content:"󰘖"}.mdi-arrow-expand-all:before{content:"󰁌"}.mdi-arrow-expand-down:before{content:"󰞖"}.mdi-arrow-expand-horizontal:before{content:"󰡎"}.mdi-arrow-expand-left:before{content:"󰞗"}.mdi-arrow-expand-right:before{content:"󰞘"}.mdi-arrow-expand-up:before{content:"󰞙"}.mdi-arrow-expand-vertical:before{content:"󰡏"}.mdi-arrow-horizontal-lock:before{content:"󱅛"}.mdi-arrow-left:before{content:"󰁍"}.mdi-arrow-left-bold:before{content:"󰜱"}.mdi-arrow-left-bold-box:before{content:"󰜲"}.mdi-arrow-left-bold-box-outline:before{content:"󰜳"}.mdi-arrow-left-bold-circle:before{content:"󰁏"}.mdi-arrow-left-bold-circle-outline:before{content:"󰁐"}.mdi-arrow-left-bold-hexagon-outline:before{content:"󰁑"}.mdi-arrow-left-bold-outline:before{content:"󰧀"}.mdi-arrow-left-bottom:before{content:"󱞥"}.mdi-arrow-left-bottom-bold:before{content:"󱞦"}.mdi-arrow-left-box:before{content:"󰛁"}.mdi-arrow-left-circle:before{content:"󰳝"}.mdi-arrow-left-circle-outline:before{content:"󰳞"}.mdi-arrow-left-drop-circle:before{content:"󰁒"}.mdi-arrow-left-drop-circle-outline:before{content:"󰁓"}.mdi-arrow-left-right:before{content:"󰹳"}.mdi-arrow-left-right-bold:before{content:"󰹴"}.mdi-arrow-left-right-bold-outline:before{content:"󰧁"}.mdi-arrow-left-thick:before{content:"󰁎"}.mdi-arrow-left-thin:before{content:"󱦱"}.mdi-arrow-left-thin-circle-outline:before{content:"󱖚"}.mdi-arrow-left-top:before{content:"󱞧"}.mdi-arrow-left-top-bold:before{content:"󱞨"}.mdi-arrow-oscillating:before{content:"󱲑"}.mdi-arrow-oscillating-off:before{content:"󱲒"}.mdi-arrow-projectile:before{content:"󱡀"}.mdi-arrow-projectile-multiple:before{content:"󱠿"}.mdi-arrow-right:before{content:"󰁔"}.mdi-arrow-right-bold:before{content:"󰜴"}.mdi-arrow-right-bold-box:before{content:"󰜵"}.mdi-arrow-right-bold-box-outline:before{content:"󰜶"}.mdi-arrow-right-bold-circle:before{content:"󰁖"}.mdi-arrow-right-bold-circle-outline:before{content:"󰁗"}.mdi-arrow-right-bold-hexagon-outline:before{content:"󰁘"}.mdi-arrow-right-bold-outline:before{content:"󰧂"}.mdi-arrow-right-bottom:before{content:"󱞩"}.mdi-arrow-right-bottom-bold:before{content:"󱞪"}.mdi-arrow-right-box:before{content:"󰛂"}.mdi-arrow-right-circle:before{content:"󰳟"}.mdi-arrow-right-circle-outline:before{content:"󰳠"}.mdi-arrow-right-drop-circle:before{content:"󰁙"}.mdi-arrow-right-drop-circle-outline:before{content:"󰁚"}.mdi-arrow-right-thick:before{content:"󰁕"}.mdi-arrow-right-thin:before{content:"󱦰"}.mdi-arrow-right-thin-circle-outline:before{content:"󱖘"}.mdi-arrow-right-top:before{content:"󱞫"}.mdi-arrow-right-top-bold:before{content:"󱞬"}.mdi-arrow-split-horizontal:before{content:"󰤻"}.mdi-arrow-split-vertical:before{content:"󰤼"}.mdi-arrow-top-left:before{content:"󰁛"}.mdi-arrow-top-left-bold-box:before{content:"󱥨"}.mdi-arrow-top-left-bold-box-outline:before{content:"󱥩"}.mdi-arrow-top-left-bold-outline:before{content:"󰧃"}.mdi-arrow-top-left-bottom-right:before{content:"󰹵"}.mdi-arrow-top-left-bottom-right-bold:before{content:"󰹶"}.mdi-arrow-top-left-thick:before{content:"󰧄"}.mdi-arrow-top-left-thin:before{content:"󱦵"}.mdi-arrow-top-left-thin-circle-outline:before{content:"󱖓"}.mdi-arrow-top-right:before{content:"󰁜"}.mdi-arrow-top-right-bold-box:before{content:"󱥪"}.mdi-arrow-top-right-bold-box-outline:before{content:"󱥫"}.mdi-arrow-top-right-bold-outline:before{content:"󰧅"}.mdi-arrow-top-right-bottom-left:before{content:"󰹷"}.mdi-arrow-top-right-bottom-left-bold:before{content:"󰹸"}.mdi-arrow-top-right-thick:before{content:"󰧆"}.mdi-arrow-top-right-thin:before{content:"󱦴"}.mdi-arrow-top-right-thin-circle-outline:before{content:"󱖔"}.mdi-arrow-u-down-left:before{content:"󱞭"}.mdi-arrow-u-down-left-bold:before{content:"󱞮"}.mdi-arrow-u-down-right:before{content:"󱞯"}.mdi-arrow-u-down-right-bold:before{content:"󱞰"}.mdi-arrow-u-left-bottom:before{content:"󱞱"}.mdi-arrow-u-left-bottom-bold:before{content:"󱞲"}.mdi-arrow-u-left-top:before{content:"󱞳"}.mdi-arrow-u-left-top-bold:before{content:"󱞴"}.mdi-arrow-u-right-bottom:before{content:"󱞵"}.mdi-arrow-u-right-bottom-bold:before{content:"󱞶"}.mdi-arrow-u-right-top:before{content:"󱞷"}.mdi-arrow-u-right-top-bold:before{content:"󱞸"}.mdi-arrow-u-up-left:before{content:"󱞹"}.mdi-arrow-u-up-left-bold:before{content:"󱞺"}.mdi-arrow-u-up-right:before{content:"󱞻"}.mdi-arrow-u-up-right-bold:before{content:"󱞼"}.mdi-arrow-up:before{content:"󰁝"}.mdi-arrow-up-bold:before{content:"󰜷"}.mdi-arrow-up-bold-box:before{content:"󰜸"}.mdi-arrow-up-bold-box-outline:before{content:"󰜹"}.mdi-arrow-up-bold-circle:before{content:"󰁟"}.mdi-arrow-up-bold-circle-outline:before{content:"󰁠"}.mdi-arrow-up-bold-hexagon-outline:before{content:"󰁡"}.mdi-arrow-up-bold-outline:before{content:"󰧇"}.mdi-arrow-up-box:before{content:"󰛃"}.mdi-arrow-up-circle:before{content:"󰳡"}.mdi-arrow-up-circle-outline:before{content:"󰳢"}.mdi-arrow-up-down:before{content:"󰹹"}.mdi-arrow-up-down-bold:before{content:"󰹺"}.mdi-arrow-up-down-bold-outline:before{content:"󰧈"}.mdi-arrow-up-drop-circle:before{content:"󰁢"}.mdi-arrow-up-drop-circle-outline:before{content:"󰁣"}.mdi-arrow-up-left:before{content:"󱞽"}.mdi-arrow-up-left-bold:before{content:"󱞾"}.mdi-arrow-up-right:before{content:"󱞿"}.mdi-arrow-up-right-bold:before{content:"󱟀"}.mdi-arrow-up-thick:before{content:"󰁞"}.mdi-arrow-up-thin:before{content:"󱦲"}.mdi-arrow-up-thin-circle-outline:before{content:"󱖗"}.mdi-arrow-vertical-lock:before{content:"󱅜"}.mdi-artboard:before{content:"󱮚"}.mdi-artstation:before{content:"󰭛"}.mdi-aspect-ratio:before{content:"󰨤"}.mdi-assistant:before{content:"󰁤"}.mdi-asterisk:before{content:"󰛄"}.mdi-asterisk-circle-outline:before{content:"󱨧"}.mdi-at:before{content:"󰁥"}.mdi-atlassian:before{content:"󰠄"}.mdi-atm:before{content:"󰵇"}.mdi-atom:before{content:"󰝨"}.mdi-atom-variant:before{content:"󰹻"}.mdi-attachment:before{content:"󰁦"}.mdi-attachment-check:before{content:"󱫁"}.mdi-attachment-lock:before{content:"󱧄"}.mdi-attachment-minus:before{content:"󱫂"}.mdi-attachment-off:before{content:"󱫃"}.mdi-attachment-plus:before{content:"󱫄"}.mdi-attachment-remove:before{content:"󱫅"}.mdi-atv:before{content:"󱭰"}.mdi-audio-input-rca:before{content:"󱡫"}.mdi-audio-input-stereo-minijack:before{content:"󱡬"}.mdi-audio-input-xlr:before{content:"󱡭"}.mdi-audio-video:before{content:"󰤽"}.mdi-audio-video-off:before{content:"󱆶"}.mdi-augmented-reality:before{content:"󰡐"}.mdi-aurora:before{content:"󱮹"}.mdi-auto-download:before{content:"󱍾"}.mdi-auto-fix:before{content:"󰁨"}.mdi-auto-mode:before{content:"󱰠"}.mdi-auto-upload:before{content:"󰁩"}.mdi-autorenew:before{content:"󰁪"}.mdi-autorenew-off:before{content:"󱧧"}.mdi-av-timer:before{content:"󰁫"}.mdi-awning:before{content:"󱮇"}.mdi-awning-outline:before{content:"󱮈"}.mdi-aws:before{content:"󰸏"}.mdi-axe:before{content:"󰣈"}.mdi-axe-battle:before{content:"󱡂"}.mdi-axis:before{content:"󰵈"}.mdi-axis-arrow:before{content:"󰵉"}.mdi-axis-arrow-info:before{content:"󱐎"}.mdi-axis-arrow-lock:before{content:"󰵊"}.mdi-axis-lock:before{content:"󰵋"}.mdi-axis-x-arrow:before{content:"󰵌"}.mdi-axis-x-arrow-lock:before{content:"󰵍"}.mdi-axis-x-rotate-clockwise:before{content:"󰵎"}.mdi-axis-x-rotate-counterclockwise:before{content:"󰵏"}.mdi-axis-x-y-arrow-lock:before{content:"󰵐"}.mdi-axis-y-arrow:before{content:"󰵑"}.mdi-axis-y-arrow-lock:before{content:"󰵒"}.mdi-axis-y-rotate-clockwise:before{content:"󰵓"}.mdi-axis-y-rotate-counterclockwise:before{content:"󰵔"}.mdi-axis-z-arrow:before{content:"󰵕"}.mdi-axis-z-arrow-lock:before{content:"󰵖"}.mdi-axis-z-rotate-clockwise:before{content:"󰵗"}.mdi-axis-z-rotate-counterclockwise:before{content:"󰵘"}.mdi-babel:before{content:"󰨥"}.mdi-baby:before{content:"󰁬"}.mdi-baby-bottle:before{content:"󰼹"}.mdi-baby-bottle-outline:before{content:"󰼺"}.mdi-baby-buggy:before{content:"󱏠"}.mdi-baby-buggy-off:before{content:"󱫳"}.mdi-baby-carriage:before{content:"󰚏"}.mdi-baby-carriage-off:before{content:"󰾠"}.mdi-baby-face:before{content:"󰹼"}.mdi-baby-face-outline:before{content:"󰹽"}.mdi-backburger:before{content:"󰁭"}.mdi-backspace:before{content:"󰁮"}.mdi-backspace-outline:before{content:"󰭜"}.mdi-backspace-reverse:before{content:"󰹾"}.mdi-backspace-reverse-outline:before{content:"󰹿"}.mdi-backup-restore:before{content:"󰁯"}.mdi-bacteria:before{content:"󰻕"}.mdi-bacteria-outline:before{content:"󰻖"}.mdi-badge-account:before{content:"󰶧"}.mdi-badge-account-alert:before{content:"󰶨"}.mdi-badge-account-alert-outline:before{content:"󰶩"}.mdi-badge-account-horizontal:before{content:"󰸍"}.mdi-badge-account-horizontal-outline:before{content:"󰸎"}.mdi-badge-account-outline:before{content:"󰶪"}.mdi-badminton:before{content:"󰡑"}.mdi-bag-carry-on:before{content:"󰼻"}.mdi-bag-carry-on-check:before{content:"󰵥"}.mdi-bag-carry-on-off:before{content:"󰼼"}.mdi-bag-checked:before{content:"󰼽"}.mdi-bag-personal:before{content:"󰸐"}.mdi-bag-personal-off:before{content:"󰸑"}.mdi-bag-personal-off-outline:before{content:"󰸒"}.mdi-bag-personal-outline:before{content:"󰸓"}.mdi-bag-personal-plus:before{content:"󱲤"}.mdi-bag-personal-plus-outline:before{content:"󱲥"}.mdi-bag-personal-tag:before{content:"󱬌"}.mdi-bag-personal-tag-outline:before{content:"󱬍"}.mdi-bag-suitcase:before{content:"󱖋"}.mdi-bag-suitcase-off:before{content:"󱖍"}.mdi-bag-suitcase-off-outline:before{content:"󱖎"}.mdi-bag-suitcase-outline:before{content:"󱖌"}.mdi-baguette:before{content:"󰼾"}.mdi-balcony:before{content:"󱠗"}.mdi-balloon:before{content:"󰨦"}.mdi-ballot:before{content:"󰧉"}.mdi-ballot-outline:before{content:"󰧊"}.mdi-ballot-recount:before{content:"󰰹"}.mdi-ballot-recount-outline:before{content:"󰰺"}.mdi-bandage:before{content:"󰶯"}.mdi-bank:before{content:"󰁰"}.mdi-bank-check:before{content:"󱙕"}.mdi-bank-circle:before{content:"󱰃"}.mdi-bank-circle-outline:before{content:"󱰄"}.mdi-bank-minus:before{content:"󰶰"}.mdi-bank-off:before{content:"󱙖"}.mdi-bank-off-outline:before{content:"󱙗"}.mdi-bank-outline:before{content:"󰺀"}.mdi-bank-plus:before{content:"󰶱"}.mdi-bank-remove:before{content:"󰶲"}.mdi-bank-transfer:before{content:"󰨧"}.mdi-bank-transfer-in:before{content:"󰨨"}.mdi-bank-transfer-out:before{content:"󰨩"}.mdi-barcode:before{content:"󰁱"}.mdi-barcode-off:before{content:"󱈶"}.mdi-barcode-scan:before{content:"󰁲"}.mdi-barley:before{content:"󰁳"}.mdi-barley-off:before{content:"󰭝"}.mdi-barn:before{content:"󰭞"}.mdi-barrel:before{content:"󰁴"}.mdi-barrel-outline:before{content:"󱨨"}.mdi-baseball:before{content:"󰡒"}.mdi-baseball-bat:before{content:"󰡓"}.mdi-baseball-diamond:before{content:"󱗬"}.mdi-baseball-diamond-outline:before{content:"󱗭"}.mdi-baseball-outline:before{content:"󱱚"}.mdi-bash:before{content:"󱆃"}.mdi-basket:before{content:"󰁶"}.mdi-basket-check:before{content:"󱣥"}.mdi-basket-check-outline:before{content:"󱣦"}.mdi-basket-fill:before{content:"󰁷"}.mdi-basket-minus:before{content:"󱔣"}.mdi-basket-minus-outline:before{content:"󱔤"}.mdi-basket-off:before{content:"󱔥"}.mdi-basket-off-outline:before{content:"󱔦"}.mdi-basket-outline:before{content:"󱆁"}.mdi-basket-plus:before{content:"󱔧"}.mdi-basket-plus-outline:before{content:"󱔨"}.mdi-basket-remove:before{content:"󱔩"}.mdi-basket-remove-outline:before{content:"󱔪"}.mdi-basket-unfill:before{content:"󰁸"}.mdi-basketball:before{content:"󰠆"}.mdi-basketball-hoop:before{content:"󰰻"}.mdi-basketball-hoop-outline:before{content:"󰰼"}.mdi-bat:before{content:"󰭟"}.mdi-bathtub:before{content:"󱠘"}.mdi-bathtub-outline:before{content:"󱠙"}.mdi-battery:before{content:"󰁹"}.mdi-battery-10:before{content:"󰁺"}.mdi-battery-10-bluetooth:before{content:"󰤾"}.mdi-battery-20:before{content:"󰁻"}.mdi-battery-20-bluetooth:before{content:"󰤿"}.mdi-battery-30:before{content:"󰁼"}.mdi-battery-30-bluetooth:before{content:"󰥀"}.mdi-battery-40:before{content:"󰁽"}.mdi-battery-40-bluetooth:before{content:"󰥁"}.mdi-battery-50:before{content:"󰁾"}.mdi-battery-50-bluetooth:before{content:"󰥂"}.mdi-battery-60:before{content:"󰁿"}.mdi-battery-60-bluetooth:before{content:"󰥃"}.mdi-battery-70:before{content:"󰂀"}.mdi-battery-70-bluetooth:before{content:"󰥄"}.mdi-battery-80:before{content:"󰂁"}.mdi-battery-80-bluetooth:before{content:"󰥅"}.mdi-battery-90:before{content:"󰂂"}.mdi-battery-90-bluetooth:before{content:"󰥆"}.mdi-battery-alert:before{content:"󰂃"}.mdi-battery-alert-bluetooth:before{content:"󰥇"}.mdi-battery-alert-variant:before{content:"󱃌"}.mdi-battery-alert-variant-outline:before{content:"󱃍"}.mdi-battery-arrow-down:before{content:"󱟞"}.mdi-battery-arrow-down-outline:before{content:"󱟟"}.mdi-battery-arrow-up:before{content:"󱟠"}.mdi-battery-arrow-up-outline:before{content:"󱟡"}.mdi-battery-bluetooth:before{content:"󰥈"}.mdi-battery-bluetooth-variant:before{content:"󰥉"}.mdi-battery-charging:before{content:"󰂄"}.mdi-battery-charging-10:before{content:"󰢜"}.mdi-battery-charging-100:before{content:"󰂅"}.mdi-battery-charging-20:before{content:"󰂆"}.mdi-battery-charging-30:before{content:"󰂇"}.mdi-battery-charging-40:before{content:"󰂈"}.mdi-battery-charging-50:before{content:"󰢝"}.mdi-battery-charging-60:before{content:"󰂉"}.mdi-battery-charging-70:before{content:"󰢞"}.mdi-battery-charging-80:before{content:"󰂊"}.mdi-battery-charging-90:before{content:"󰂋"}.mdi-battery-charging-high:before{content:"󱊦"}.mdi-battery-charging-low:before{content:"󱊤"}.mdi-battery-charging-medium:before{content:"󱊥"}.mdi-battery-charging-outline:before{content:"󰢟"}.mdi-battery-charging-wireless:before{content:"󰠇"}.mdi-battery-charging-wireless-10:before{content:"󰠈"}.mdi-battery-charging-wireless-20:before{content:"󰠉"}.mdi-battery-charging-wireless-30:before{content:"󰠊"}.mdi-battery-charging-wireless-40:before{content:"󰠋"}.mdi-battery-charging-wireless-50:before{content:"󰠌"}.mdi-battery-charging-wireless-60:before{content:"󰠍"}.mdi-battery-charging-wireless-70:before{content:"󰠎"}.mdi-battery-charging-wireless-80:before{content:"󰠏"}.mdi-battery-charging-wireless-90:before{content:"󰠐"}.mdi-battery-charging-wireless-alert:before{content:"󰠑"}.mdi-battery-charging-wireless-outline:before{content:"󰠒"}.mdi-battery-check:before{content:"󱟢"}.mdi-battery-check-outline:before{content:"󱟣"}.mdi-battery-clock:before{content:"󱧥"}.mdi-battery-clock-outline:before{content:"󱧦"}.mdi-battery-heart:before{content:"󱈏"}.mdi-battery-heart-outline:before{content:"󱈐"}.mdi-battery-heart-variant:before{content:"󱈑"}.mdi-battery-high:before{content:"󱊣"}.mdi-battery-lock:before{content:"󱞜"}.mdi-battery-lock-open:before{content:"󱞝"}.mdi-battery-low:before{content:"󱊡"}.mdi-battery-medium:before{content:"󱊢"}.mdi-battery-minus:before{content:"󱟤"}.mdi-battery-minus-outline:before{content:"󱟥"}.mdi-battery-minus-variant:before{content:"󰂌"}.mdi-battery-negative:before{content:"󰂍"}.mdi-battery-off:before{content:"󱉝"}.mdi-battery-off-outline:before{content:"󱉞"}.mdi-battery-outline:before{content:"󰂎"}.mdi-battery-plus:before{content:"󱟦"}.mdi-battery-plus-outline:before{content:"󱟧"}.mdi-battery-plus-variant:before{content:"󰂏"}.mdi-battery-positive:before{content:"󰂐"}.mdi-battery-remove:before{content:"󱟨"}.mdi-battery-remove-outline:before{content:"󱟩"}.mdi-battery-sync:before{content:"󱠴"}.mdi-battery-sync-outline:before{content:"󱠵"}.mdi-battery-unknown:before{content:"󰂑"}.mdi-battery-unknown-bluetooth:before{content:"󰥊"}.mdi-beach:before{content:"󰂒"}.mdi-beaker:before{content:"󰳪"}.mdi-beaker-alert:before{content:"󱈩"}.mdi-beaker-alert-outline:before{content:"󱈪"}.mdi-beaker-check:before{content:"󱈫"}.mdi-beaker-check-outline:before{content:"󱈬"}.mdi-beaker-minus:before{content:"󱈭"}.mdi-beaker-minus-outline:before{content:"󱈮"}.mdi-beaker-outline:before{content:"󰚐"}.mdi-beaker-plus:before{content:"󱈯"}.mdi-beaker-plus-outline:before{content:"󱈰"}.mdi-beaker-question:before{content:"󱈱"}.mdi-beaker-question-outline:before{content:"󱈲"}.mdi-beaker-remove:before{content:"󱈳"}.mdi-beaker-remove-outline:before{content:"󱈴"}.mdi-bed:before{content:"󰋣"}.mdi-bed-clock:before{content:"󱮔"}.mdi-bed-double:before{content:"󰿔"}.mdi-bed-double-outline:before{content:"󰿓"}.mdi-bed-empty:before{content:"󰢠"}.mdi-bed-king:before{content:"󰿒"}.mdi-bed-king-outline:before{content:"󰿑"}.mdi-bed-outline:before{content:"󰂙"}.mdi-bed-queen:before{content:"󰿐"}.mdi-bed-queen-outline:before{content:"󰿛"}.mdi-bed-single:before{content:"󱁭"}.mdi-bed-single-outline:before{content:"󱁮"}.mdi-bee:before{content:"󰾡"}.mdi-bee-flower:before{content:"󰾢"}.mdi-beehive-off-outline:before{content:"󱏭"}.mdi-beehive-outline:before{content:"󱃎"}.mdi-beekeeper:before{content:"󱓢"}.mdi-beer:before{content:"󰂘"}.mdi-beer-outline:before{content:"󱌌"}.mdi-bell:before{content:"󰂚"}.mdi-bell-alert:before{content:"󰵙"}.mdi-bell-alert-outline:before{content:"󰺁"}.mdi-bell-badge:before{content:"󱅫"}.mdi-bell-badge-outline:before{content:"󰅸"}.mdi-bell-cancel:before{content:"󱏧"}.mdi-bell-cancel-outline:before{content:"󱏨"}.mdi-bell-check:before{content:"󱇥"}.mdi-bell-check-outline:before{content:"󱇦"}.mdi-bell-circle:before{content:"󰵚"}.mdi-bell-circle-outline:before{content:"󰵛"}.mdi-bell-cog:before{content:"󱨩"}.mdi-bell-cog-outline:before{content:"󱨪"}.mdi-bell-minus:before{content:"󱏩"}.mdi-bell-minus-outline:before{content:"󱏪"}.mdi-bell-off:before{content:"󰂛"}.mdi-bell-off-outline:before{content:"󰪑"}.mdi-bell-outline:before{content:"󰂜"}.mdi-bell-plus:before{content:"󰂝"}.mdi-bell-plus-outline:before{content:"󰪒"}.mdi-bell-remove:before{content:"󱏫"}.mdi-bell-remove-outline:before{content:"󱏬"}.mdi-bell-ring:before{content:"󰂞"}.mdi-bell-ring-outline:before{content:"󰂟"}.mdi-bell-sleep:before{content:"󰂠"}.mdi-bell-sleep-outline:before{content:"󰪓"}.mdi-bench:before{content:"󱰡"}.mdi-bench-back:before{content:"󱰢"}.mdi-beta:before{content:"󰂡"}.mdi-betamax:before{content:"󰧋"}.mdi-biathlon:before{content:"󰸔"}.mdi-bicycle:before{content:"󱂜"}.mdi-bicycle-basket:before{content:"󱈵"}.mdi-bicycle-cargo:before{content:"󱢜"}.mdi-bicycle-electric:before{content:"󱖴"}.mdi-bicycle-penny-farthing:before{content:"󱗩"}.mdi-bike:before{content:"󰂣"}.mdi-bike-fast:before{content:"󱄟"}.mdi-bike-pedal:before{content:"󱰣"}.mdi-bike-pedal-clipless:before{content:"󱰤"}.mdi-bike-pedal-mountain:before{content:"󱰥"}.mdi-billboard:before{content:"󱀐"}.mdi-billiards:before{content:"󰭡"}.mdi-billiards-rack:before{content:"󰭢"}.mdi-binoculars:before{content:"󰂥"}.mdi-bio:before{content:"󰂦"}.mdi-biohazard:before{content:"󰂧"}.mdi-bird:before{content:"󱗆"}.mdi-bitbucket:before{content:"󰂨"}.mdi-bitcoin:before{content:"󰠓"}.mdi-black-mesa:before{content:"󰂩"}.mdi-blender:before{content:"󰳫"}.mdi-blender-outline:before{content:"󱠚"}.mdi-blender-software:before{content:"󰂫"}.mdi-blinds:before{content:"󰂬"}.mdi-blinds-horizontal:before{content:"󱨫"}.mdi-blinds-horizontal-closed:before{content:"󱨬"}.mdi-blinds-open:before{content:"󱀑"}.mdi-blinds-vertical:before{content:"󱨭"}.mdi-blinds-vertical-closed:before{content:"󱨮"}.mdi-block-helper:before{content:"󰂭"}.mdi-blood-bag:before{content:"󰳬"}.mdi-bluetooth:before{content:"󰂯"}.mdi-bluetooth-audio:before{content:"󰂰"}.mdi-bluetooth-connect:before{content:"󰂱"}.mdi-bluetooth-off:before{content:"󰂲"}.mdi-bluetooth-settings:before{content:"󰂳"}.mdi-bluetooth-transfer:before{content:"󰂴"}.mdi-blur:before{content:"󰂵"}.mdi-blur-linear:before{content:"󰂶"}.mdi-blur-off:before{content:"󰂷"}.mdi-blur-radial:before{content:"󰂸"}.mdi-bolt:before{content:"󰶳"}.mdi-bomb:before{content:"󰚑"}.mdi-bomb-off:before{content:"󰛅"}.mdi-bone:before{content:"󰂹"}.mdi-bone-off:before{content:"󱧠"}.mdi-book:before{content:"󰂺"}.mdi-book-account:before{content:"󱎭"}.mdi-book-account-outline:before{content:"󱎮"}.mdi-book-alert:before{content:"󱙼"}.mdi-book-alert-outline:before{content:"󱙽"}.mdi-book-alphabet:before{content:"󰘝"}.mdi-book-arrow-down:before{content:"󱙾"}.mdi-book-arrow-down-outline:before{content:"󱙿"}.mdi-book-arrow-left:before{content:"󱚀"}.mdi-book-arrow-left-outline:before{content:"󱚁"}.mdi-book-arrow-right:before{content:"󱚂"}.mdi-book-arrow-right-outline:before{content:"󱚃"}.mdi-book-arrow-up:before{content:"󱚄"}.mdi-book-arrow-up-outline:before{content:"󱚅"}.mdi-book-cancel:before{content:"󱚆"}.mdi-book-cancel-outline:before{content:"󱚇"}.mdi-book-check:before{content:"󱓳"}.mdi-book-check-outline:before{content:"󱓴"}.mdi-book-clock:before{content:"󱚈"}.mdi-book-clock-outline:before{content:"󱚉"}.mdi-book-cog:before{content:"󱚊"}.mdi-book-cog-outline:before{content:"󱚋"}.mdi-book-cross:before{content:"󰂢"}.mdi-book-edit:before{content:"󱚌"}.mdi-book-edit-outline:before{content:"󱚍"}.mdi-book-education:before{content:"󱛉"}.mdi-book-education-outline:before{content:"󱛊"}.mdi-book-heart:before{content:"󱨝"}.mdi-book-heart-outline:before{content:"󱨞"}.mdi-book-information-variant:before{content:"󱁯"}.mdi-book-lock:before{content:"󰞚"}.mdi-book-lock-open:before{content:"󰞛"}.mdi-book-lock-open-outline:before{content:"󱚎"}.mdi-book-lock-outline:before{content:"󱚏"}.mdi-book-marker:before{content:"󱚐"}.mdi-book-marker-outline:before{content:"󱚑"}.mdi-book-minus:before{content:"󰗙"}.mdi-book-minus-multiple:before{content:"󰪔"}.mdi-book-minus-multiple-outline:before{content:"󰤋"}.mdi-book-minus-outline:before{content:"󱚒"}.mdi-book-multiple:before{content:"󰂻"}.mdi-book-multiple-outline:before{content:"󰐶"}.mdi-book-music:before{content:"󰁧"}.mdi-book-music-outline:before{content:"󱚓"}.mdi-book-off:before{content:"󱚔"}.mdi-book-off-outline:before{content:"󱚕"}.mdi-book-open:before{content:"󰂽"}.mdi-book-open-blank-variant:before{content:"󰂾"}.mdi-book-open-outline:before{content:"󰭣"}.mdi-book-open-page-variant:before{content:"󰗚"}.mdi-book-open-page-variant-outline:before{content:"󱗖"}.mdi-book-open-variant:before{content:"󱓷"}.mdi-book-outline:before{content:"󰭤"}.mdi-book-play:before{content:"󰺂"}.mdi-book-play-outline:before{content:"󰺃"}.mdi-book-plus:before{content:"󰗛"}.mdi-book-plus-multiple:before{content:"󰪕"}.mdi-book-plus-multiple-outline:before{content:"󰫞"}.mdi-book-plus-outline:before{content:"󱚖"}.mdi-book-refresh:before{content:"󱚗"}.mdi-book-refresh-outline:before{content:"󱚘"}.mdi-book-remove:before{content:"󰪗"}.mdi-book-remove-multiple:before{content:"󰪖"}.mdi-book-remove-multiple-outline:before{content:"󰓊"}.mdi-book-remove-outline:before{content:"󱚙"}.mdi-book-search:before{content:"󰺄"}.mdi-book-search-outline:before{content:"󰺅"}.mdi-book-settings:before{content:"󱚚"}.mdi-book-settings-outline:before{content:"󱚛"}.mdi-book-sync:before{content:"󱚜"}.mdi-book-sync-outline:before{content:"󱛈"}.mdi-book-variant:before{content:"󰂿"}.mdi-bookmark:before{content:"󰃀"}.mdi-bookmark-box:before{content:"󱭵"}.mdi-bookmark-box-multiple:before{content:"󱥬"}.mdi-bookmark-box-multiple-outline:before{content:"󱥭"}.mdi-bookmark-box-outline:before{content:"󱭶"}.mdi-bookmark-check:before{content:"󰃁"}.mdi-bookmark-check-outline:before{content:"󱍻"}.mdi-bookmark-minus:before{content:"󰧌"}.mdi-bookmark-minus-outline:before{content:"󰧍"}.mdi-bookmark-multiple:before{content:"󰸕"}.mdi-bookmark-multiple-outline:before{content:"󰸖"}.mdi-bookmark-music:before{content:"󰃂"}.mdi-bookmark-music-outline:before{content:"󱍹"}.mdi-bookmark-off:before{content:"󰧎"}.mdi-bookmark-off-outline:before{content:"󰧏"}.mdi-bookmark-outline:before{content:"󰃃"}.mdi-bookmark-plus:before{content:"󰃅"}.mdi-bookmark-plus-outline:before{content:"󰃄"}.mdi-bookmark-remove:before{content:"󰃆"}.mdi-bookmark-remove-outline:before{content:"󱍺"}.mdi-bookshelf:before{content:"󱉟"}.mdi-boom-gate:before{content:"󰺆"}.mdi-boom-gate-alert:before{content:"󰺇"}.mdi-boom-gate-alert-outline:before{content:"󰺈"}.mdi-boom-gate-arrow-down:before{content:"󰺉"}.mdi-boom-gate-arrow-down-outline:before{content:"󰺊"}.mdi-boom-gate-arrow-up:before{content:"󰺌"}.mdi-boom-gate-arrow-up-outline:before{content:"󰺍"}.mdi-boom-gate-outline:before{content:"󰺋"}.mdi-boom-gate-up:before{content:"󱟹"}.mdi-boom-gate-up-outline:before{content:"󱟺"}.mdi-boombox:before{content:"󰗜"}.mdi-boomerang:before{content:"󱃏"}.mdi-bootstrap:before{content:"󰛆"}.mdi-border-all:before{content:"󰃇"}.mdi-border-all-variant:before{content:"󰢡"}.mdi-border-bottom:before{content:"󰃈"}.mdi-border-bottom-variant:before{content:"󰢢"}.mdi-border-color:before{content:"󰃉"}.mdi-border-horizontal:before{content:"󰃊"}.mdi-border-inside:before{content:"󰃋"}.mdi-border-left:before{content:"󰃌"}.mdi-border-left-variant:before{content:"󰢣"}.mdi-border-none:before{content:"󰃍"}.mdi-border-none-variant:before{content:"󰢤"}.mdi-border-outside:before{content:"󰃎"}.mdi-border-radius:before{content:"󱫴"}.mdi-border-right:before{content:"󰃏"}.mdi-border-right-variant:before{content:"󰢥"}.mdi-border-style:before{content:"󰃐"}.mdi-border-top:before{content:"󰃑"}.mdi-border-top-variant:before{content:"󰢦"}.mdi-border-vertical:before{content:"󰃒"}.mdi-bottle-soda:before{content:"󱁰"}.mdi-bottle-soda-classic:before{content:"󱁱"}.mdi-bottle-soda-classic-outline:before{content:"󱍣"}.mdi-bottle-soda-outline:before{content:"󱁲"}.mdi-bottle-tonic:before{content:"󱄮"}.mdi-bottle-tonic-outline:before{content:"󱄯"}.mdi-bottle-tonic-plus:before{content:"󱄰"}.mdi-bottle-tonic-plus-outline:before{content:"󱄱"}.mdi-bottle-tonic-skull:before{content:"󱄲"}.mdi-bottle-tonic-skull-outline:before{content:"󱄳"}.mdi-bottle-wine:before{content:"󰡔"}.mdi-bottle-wine-outline:before{content:"󱌐"}.mdi-bow-arrow:before{content:"󱡁"}.mdi-bow-tie:before{content:"󰙸"}.mdi-bowl:before{content:"󰊎"}.mdi-bowl-mix:before{content:"󰘗"}.mdi-bowl-mix-outline:before{content:"󰋤"}.mdi-bowl-outline:before{content:"󰊩"}.mdi-bowling:before{content:"󰃓"}.mdi-box:before{content:"󰃔"}.mdi-box-cutter:before{content:"󰃕"}.mdi-box-cutter-off:before{content:"󰭊"}.mdi-box-shadow:before{content:"󰘷"}.mdi-boxing-glove:before{content:"󰭥"}.mdi-braille:before{content:"󰧐"}.mdi-brain:before{content:"󰧑"}.mdi-bread-slice:before{content:"󰳮"}.mdi-bread-slice-outline:before{content:"󰳯"}.mdi-bridge:before{content:"󰘘"}.mdi-briefcase:before{content:"󰃖"}.mdi-briefcase-account:before{content:"󰳰"}.mdi-briefcase-account-outline:before{content:"󰳱"}.mdi-briefcase-arrow-left-right:before{content:"󱪍"}.mdi-briefcase-arrow-left-right-outline:before{content:"󱪎"}.mdi-briefcase-arrow-up-down:before{content:"󱪏"}.mdi-briefcase-arrow-up-down-outline:before{content:"󱪐"}.mdi-briefcase-check:before{content:"󰃗"}.mdi-briefcase-check-outline:before{content:"󱌞"}.mdi-briefcase-clock:before{content:"󱃐"}.mdi-briefcase-clock-outline:before{content:"󱃑"}.mdi-briefcase-download:before{content:"󰃘"}.mdi-briefcase-download-outline:before{content:"󰰽"}.mdi-briefcase-edit:before{content:"󰪘"}.mdi-briefcase-edit-outline:before{content:"󰰾"}.mdi-briefcase-eye:before{content:"󱟙"}.mdi-briefcase-eye-outline:before{content:"󱟚"}.mdi-briefcase-minus:before{content:"󰨪"}.mdi-briefcase-minus-outline:before{content:"󰰿"}.mdi-briefcase-off:before{content:"󱙘"}.mdi-briefcase-off-outline:before{content:"󱙙"}.mdi-briefcase-outline:before{content:"󰠔"}.mdi-briefcase-plus:before{content:"󰨫"}.mdi-briefcase-plus-outline:before{content:"󰱀"}.mdi-briefcase-remove:before{content:"󰨬"}.mdi-briefcase-remove-outline:before{content:"󰱁"}.mdi-briefcase-search:before{content:"󰨭"}.mdi-briefcase-search-outline:before{content:"󰱂"}.mdi-briefcase-upload:before{content:"󰃙"}.mdi-briefcase-upload-outline:before{content:"󰱃"}.mdi-briefcase-variant:before{content:"󱒔"}.mdi-briefcase-variant-off:before{content:"󱙚"}.mdi-briefcase-variant-off-outline:before{content:"󱙛"}.mdi-briefcase-variant-outline:before{content:"󱒕"}.mdi-brightness-1:before{content:"󰃚"}.mdi-brightness-2:before{content:"󰃛"}.mdi-brightness-3:before{content:"󰃜"}.mdi-brightness-4:before{content:"󰃝"}.mdi-brightness-5:before{content:"󰃞"}.mdi-brightness-6:before{content:"󰃟"}.mdi-brightness-7:before{content:"󰃠"}.mdi-brightness-auto:before{content:"󰃡"}.mdi-brightness-percent:before{content:"󰳲"}.mdi-broadcast:before{content:"󱜠"}.mdi-broadcast-off:before{content:"󱜡"}.mdi-broom:before{content:"󰃢"}.mdi-brush:before{content:"󰃣"}.mdi-brush-off:before{content:"󱝱"}.mdi-brush-outline:before{content:"󱨍"}.mdi-brush-variant:before{content:"󱠓"}.mdi-bucket:before{content:"󱐕"}.mdi-bucket-outline:before{content:"󱐖"}.mdi-buffet:before{content:"󰕸"}.mdi-bug:before{content:"󰃤"}.mdi-bug-check:before{content:"󰨮"}.mdi-bug-check-outline:before{content:"󰨯"}.mdi-bug-outline:before{content:"󰨰"}.mdi-bug-pause:before{content:"󱫵"}.mdi-bug-pause-outline:before{content:"󱫶"}.mdi-bug-play:before{content:"󱫷"}.mdi-bug-play-outline:before{content:"󱫸"}.mdi-bug-stop:before{content:"󱫹"}.mdi-bug-stop-outline:before{content:"󱫺"}.mdi-bugle:before{content:"󰶴"}.mdi-bulkhead-light:before{content:"󱨯"}.mdi-bulldozer:before{content:"󰬢"}.mdi-bullet:before{content:"󰳳"}.mdi-bulletin-board:before{content:"󰃥"}.mdi-bullhorn:before{content:"󰃦"}.mdi-bullhorn-outline:before{content:"󰬣"}.mdi-bullhorn-variant:before{content:"󱥮"}.mdi-bullhorn-variant-outline:before{content:"󱥯"}.mdi-bullseye:before{content:"󰗝"}.mdi-bullseye-arrow:before{content:"󰣉"}.mdi-bulma:before{content:"󱋧"}.mdi-bunk-bed:before{content:"󱌂"}.mdi-bunk-bed-outline:before{content:"󰂗"}.mdi-bus:before{content:"󰃧"}.mdi-bus-alert:before{content:"󰪙"}.mdi-bus-articulated-end:before{content:"󰞜"}.mdi-bus-articulated-front:before{content:"󰞝"}.mdi-bus-clock:before{content:"󰣊"}.mdi-bus-double-decker:before{content:"󰞞"}.mdi-bus-electric:before{content:"󱤝"}.mdi-bus-marker:before{content:"󱈒"}.mdi-bus-multiple:before{content:"󰼿"}.mdi-bus-school:before{content:"󰞟"}.mdi-bus-side:before{content:"󰞠"}.mdi-bus-sign:before{content:"󱳁"}.mdi-bus-stop:before{content:"󱀒"}.mdi-bus-stop-covered:before{content:"󱀓"}.mdi-bus-stop-uncovered:before{content:"󱀔"}.mdi-bus-wrench:before{content:"󱳂"}.mdi-butterfly:before{content:"󱖉"}.mdi-butterfly-outline:before{content:"󱖊"}.mdi-button-cursor:before{content:"󱭏"}.mdi-button-pointer:before{content:"󱭐"}.mdi-cabin-a-frame:before{content:"󱢌"}.mdi-cable-data:before{content:"󱎔"}.mdi-cached:before{content:"󰃨"}.mdi-cactus:before{content:"󰶵"}.mdi-cake:before{content:"󰃩"}.mdi-cake-layered:before{content:"󰃪"}.mdi-cake-variant:before{content:"󰃫"}.mdi-cake-variant-outline:before{content:"󱟰"}.mdi-calculator:before{content:"󰃬"}.mdi-calculator-variant:before{content:"󰪚"}.mdi-calculator-variant-outline:before{content:"󱖦"}.mdi-calendar:before{content:"󰃭"}.mdi-calendar-account:before{content:"󰻗"}.mdi-calendar-account-outline:before{content:"󰻘"}.mdi-calendar-alert:before{content:"󰨱"}.mdi-calendar-alert-outline:before{content:"󱭢"}.mdi-calendar-arrow-left:before{content:"󱄴"}.mdi-calendar-arrow-right:before{content:"󱄵"}.mdi-calendar-badge:before{content:"󱮝"}.mdi-calendar-badge-outline:before{content:"󱮞"}.mdi-calendar-blank:before{content:"󰃮"}.mdi-calendar-blank-multiple:before{content:"󱁳"}.mdi-calendar-blank-outline:before{content:"󰭦"}.mdi-calendar-check:before{content:"󰃯"}.mdi-calendar-check-outline:before{content:"󰱄"}.mdi-calendar-clock:before{content:"󰃰"}.mdi-calendar-clock-outline:before{content:"󱛡"}.mdi-calendar-collapse-horizontal:before{content:"󱢝"}.mdi-calendar-collapse-horizontal-outline:before{content:"󱭣"}.mdi-calendar-cursor:before{content:"󱕻"}.mdi-calendar-cursor-outline:before{content:"󱭤"}.mdi-calendar-edit:before{content:"󰢧"}.mdi-calendar-edit-outline:before{content:"󱭥"}.mdi-calendar-end:before{content:"󱙬"}.mdi-calendar-end-outline:before{content:"󱭦"}.mdi-calendar-expand-horizontal:before{content:"󱢞"}.mdi-calendar-expand-horizontal-outline:before{content:"󱭧"}.mdi-calendar-export:before{content:"󰬤"}.mdi-calendar-export-outline:before{content:"󱭨"}.mdi-calendar-filter:before{content:"󱨲"}.mdi-calendar-filter-outline:before{content:"󱨳"}.mdi-calendar-heart:before{content:"󰧒"}.mdi-calendar-heart-outline:before{content:"󱭩"}.mdi-calendar-import:before{content:"󰬥"}.mdi-calendar-import-outline:before{content:"󱭪"}.mdi-calendar-lock:before{content:"󱙁"}.mdi-calendar-lock-open:before{content:"󱭛"}.mdi-calendar-lock-open-outline:before{content:"󱭜"}.mdi-calendar-lock-outline:before{content:"󱙂"}.mdi-calendar-minus:before{content:"󰵜"}.mdi-calendar-minus-outline:before{content:"󱭫"}.mdi-calendar-month:before{content:"󰸗"}.mdi-calendar-month-outline:before{content:"󰸘"}.mdi-calendar-multiple:before{content:"󰃱"}.mdi-calendar-multiple-check:before{content:"󰃲"}.mdi-calendar-multiselect:before{content:"󰨲"}.mdi-calendar-multiselect-outline:before{content:"󱭕"}.mdi-calendar-outline:before{content:"󰭧"}.mdi-calendar-plus:before{content:"󰃳"}.mdi-calendar-plus-outline:before{content:"󱭬"}.mdi-calendar-question:before{content:"󰚒"}.mdi-calendar-question-outline:before{content:"󱭭"}.mdi-calendar-range:before{content:"󰙹"}.mdi-calendar-range-outline:before{content:"󰭨"}.mdi-calendar-refresh:before{content:"󰇡"}.mdi-calendar-refresh-outline:before{content:"󰈃"}.mdi-calendar-remove:before{content:"󰃴"}.mdi-calendar-remove-outline:before{content:"󰱅"}.mdi-calendar-search:before{content:"󰥌"}.mdi-calendar-search-outline:before{content:"󱭮"}.mdi-calendar-star:before{content:"󰧓"}.mdi-calendar-star-four-points:before{content:"󱰟"}.mdi-calendar-star-outline:before{content:"󱭓"}.mdi-calendar-start:before{content:"󱙭"}.mdi-calendar-start-outline:before{content:"󱭯"}.mdi-calendar-sync:before{content:"󰺎"}.mdi-calendar-sync-outline:before{content:"󰺏"}.mdi-calendar-text:before{content:"󰃵"}.mdi-calendar-text-outline:before{content:"󰱆"}.mdi-calendar-today:before{content:"󰃶"}.mdi-calendar-today-outline:before{content:"󱨰"}.mdi-calendar-week:before{content:"󰨳"}.mdi-calendar-week-begin:before{content:"󰨴"}.mdi-calendar-week-begin-outline:before{content:"󱨱"}.mdi-calendar-week-outline:before{content:"󱨴"}.mdi-calendar-weekend:before{content:"󰻙"}.mdi-calendar-weekend-outline:before{content:"󰻚"}.mdi-call-made:before{content:"󰃷"}.mdi-call-merge:before{content:"󰃸"}.mdi-call-missed:before{content:"󰃹"}.mdi-call-received:before{content:"󰃺"}.mdi-call-split:before{content:"󰃻"}.mdi-camcorder:before{content:"󰃼"}.mdi-camcorder-off:before{content:"󰃿"}.mdi-camera:before{content:"󰄀"}.mdi-camera-account:before{content:"󰣋"}.mdi-camera-burst:before{content:"󰚓"}.mdi-camera-control:before{content:"󰭩"}.mdi-camera-document:before{content:"󱡱"}.mdi-camera-document-off:before{content:"󱡲"}.mdi-camera-enhance:before{content:"󰄁"}.mdi-camera-enhance-outline:before{content:"󰭪"}.mdi-camera-flip:before{content:"󱗙"}.mdi-camera-flip-outline:before{content:"󱗚"}.mdi-camera-front:before{content:"󰄂"}.mdi-camera-front-variant:before{content:"󰄃"}.mdi-camera-gopro:before{content:"󰞡"}.mdi-camera-image:before{content:"󰣌"}.mdi-camera-iris:before{content:"󰄄"}.mdi-camera-lock:before{content:"󱨔"}.mdi-camera-lock-open:before{content:"󱰍"}.mdi-camera-lock-open-outline:before{content:"󱰎"}.mdi-camera-lock-outline:before{content:"󱨕"}.mdi-camera-marker:before{content:"󱦧"}.mdi-camera-marker-outline:before{content:"󱦨"}.mdi-camera-metering-center:before{content:"󰞢"}.mdi-camera-metering-matrix:before{content:"󰞣"}.mdi-camera-metering-partial:before{content:"󰞤"}.mdi-camera-metering-spot:before{content:"󰞥"}.mdi-camera-off:before{content:"󰗟"}.mdi-camera-off-outline:before{content:"󱦿"}.mdi-camera-outline:before{content:"󰵝"}.mdi-camera-party-mode:before{content:"󰄅"}.mdi-camera-plus:before{content:"󰻛"}.mdi-camera-plus-outline:before{content:"󰻜"}.mdi-camera-rear:before{content:"󰄆"}.mdi-camera-rear-variant:before{content:"󰄇"}.mdi-camera-retake:before{content:"󰸙"}.mdi-camera-retake-outline:before{content:"󰸚"}.mdi-camera-switch:before{content:"󰄈"}.mdi-camera-switch-outline:before{content:"󰡊"}.mdi-camera-timer:before{content:"󰄉"}.mdi-camera-wireless:before{content:"󰶶"}.mdi-camera-wireless-outline:before{content:"󰶷"}.mdi-campfire:before{content:"󰻝"}.mdi-cancel:before{content:"󰜺"}.mdi-candelabra:before{content:"󱟒"}.mdi-candelabra-fire:before{content:"󱟓"}.mdi-candle:before{content:"󰗢"}.mdi-candy:before{content:"󱥰"}.mdi-candy-off:before{content:"󱥱"}.mdi-candy-off-outline:before{content:"󱥲"}.mdi-candy-outline:before{content:"󱥳"}.mdi-candycane:before{content:"󰄊"}.mdi-cannabis:before{content:"󰞦"}.mdi-cannabis-off:before{content:"󱙮"}.mdi-caps-lock:before{content:"󰪛"}.mdi-car:before{content:"󰄋"}.mdi-car-2-plus:before{content:"󱀕"}.mdi-car-3-plus:before{content:"󱀖"}.mdi-car-arrow-left:before{content:"󱎲"}.mdi-car-arrow-right:before{content:"󱎳"}.mdi-car-back:before{content:"󰸛"}.mdi-car-battery:before{content:"󰄌"}.mdi-car-brake-abs:before{content:"󰱇"}.mdi-car-brake-alert:before{content:"󰱈"}.mdi-car-brake-fluid-level:before{content:"󱤉"}.mdi-car-brake-hold:before{content:"󰵞"}.mdi-car-brake-low-pressure:before{content:"󱤊"}.mdi-car-brake-parking:before{content:"󰵟"}.mdi-car-brake-retarder:before{content:"󱀗"}.mdi-car-brake-temperature:before{content:"󱤋"}.mdi-car-brake-worn-linings:before{content:"󱤌"}.mdi-car-child-seat:before{content:"󰾣"}.mdi-car-clock:before{content:"󱥴"}.mdi-car-clutch:before{content:"󱀘"}.mdi-car-cog:before{content:"󱏌"}.mdi-car-connected:before{content:"󰄍"}.mdi-car-convertible:before{content:"󰞧"}.mdi-car-coolant-level:before{content:"󱀙"}.mdi-car-cruise-control:before{content:"󰵠"}.mdi-car-defrost-front:before{content:"󰵡"}.mdi-car-defrost-rear:before{content:"󰵢"}.mdi-car-door:before{content:"󰭫"}.mdi-car-door-lock:before{content:"󱂝"}.mdi-car-door-lock-open:before{content:"󱲁"}.mdi-car-electric:before{content:"󰭬"}.mdi-car-electric-outline:before{content:"󱖵"}.mdi-car-emergency:before{content:"󱘏"}.mdi-car-esp:before{content:"󰱉"}.mdi-car-estate:before{content:"󰞨"}.mdi-car-hatchback:before{content:"󰞩"}.mdi-car-info:before{content:"󱆾"}.mdi-car-key:before{content:"󰭭"}.mdi-car-lifted-pickup:before{content:"󱔭"}.mdi-car-light-alert:before{content:"󱤍"}.mdi-car-light-dimmed:before{content:"󰱊"}.mdi-car-light-fog:before{content:"󰱋"}.mdi-car-light-high:before{content:"󰱌"}.mdi-car-limousine:before{content:"󰣍"}.mdi-car-multiple:before{content:"󰭮"}.mdi-car-off:before{content:"󰸜"}.mdi-car-outline:before{content:"󱓭"}.mdi-car-parking-lights:before{content:"󰵣"}.mdi-car-pickup:before{content:"󰞪"}.mdi-car-search:before{content:"󱮍"}.mdi-car-search-outline:before{content:"󱮎"}.mdi-car-seat:before{content:"󰾤"}.mdi-car-seat-cooler:before{content:"󰾥"}.mdi-car-seat-heater:before{content:"󰾦"}.mdi-car-select:before{content:"󱡹"}.mdi-car-settings:before{content:"󱏍"}.mdi-car-shift-pattern:before{content:"󰽀"}.mdi-car-side:before{content:"󰞫"}.mdi-car-speed-limiter:before{content:"󱤎"}.mdi-car-sports:before{content:"󰞬"}.mdi-car-tire-alert:before{content:"󰱍"}.mdi-car-traction-control:before{content:"󰵤"}.mdi-car-turbocharger:before{content:"󱀚"}.mdi-car-wash:before{content:"󰄎"}.mdi-car-windshield:before{content:"󱀛"}.mdi-car-windshield-outline:before{content:"󱀜"}.mdi-car-wireless:before{content:"󱡸"}.mdi-car-wrench:before{content:"󱠔"}.mdi-carabiner:before{content:"󱓀"}.mdi-caravan:before{content:"󰞭"}.mdi-card:before{content:"󰭯"}.mdi-card-account-details:before{content:"󰗒"}.mdi-card-account-details-outline:before{content:"󰶫"}.mdi-card-account-details-star:before{content:"󰊣"}.mdi-card-account-details-star-outline:before{content:"󰛛"}.mdi-card-account-mail:before{content:"󰆎"}.mdi-card-account-mail-outline:before{content:"󰺘"}.mdi-card-account-phone:before{content:"󰺙"}.mdi-card-account-phone-outline:before{content:"󰺚"}.mdi-card-bulleted:before{content:"󰭰"}.mdi-card-bulleted-off:before{content:"󰭱"}.mdi-card-bulleted-off-outline:before{content:"󰭲"}.mdi-card-bulleted-outline:before{content:"󰭳"}.mdi-card-bulleted-settings:before{content:"󰭴"}.mdi-card-bulleted-settings-outline:before{content:"󰭵"}.mdi-card-minus:before{content:"󱘀"}.mdi-card-minus-outline:before{content:"󱘁"}.mdi-card-multiple:before{content:"󱟱"}.mdi-card-multiple-outline:before{content:"󱟲"}.mdi-card-off:before{content:"󱘂"}.mdi-card-off-outline:before{content:"󱘃"}.mdi-card-outline:before{content:"󰭶"}.mdi-card-plus:before{content:"󱇿"}.mdi-card-plus-outline:before{content:"󱈀"}.mdi-card-remove:before{content:"󱘄"}.mdi-card-remove-outline:before{content:"󱘅"}.mdi-card-search:before{content:"󱁴"}.mdi-card-search-outline:before{content:"󱁵"}.mdi-card-text:before{content:"󰭷"}.mdi-card-text-outline:before{content:"󰭸"}.mdi-cards:before{content:"󰘸"}.mdi-cards-club:before{content:"󰣎"}.mdi-cards-club-outline:before{content:"󱢟"}.mdi-cards-diamond:before{content:"󰣏"}.mdi-cards-diamond-outline:before{content:"󱀝"}.mdi-cards-heart:before{content:"󰣐"}.mdi-cards-heart-outline:before{content:"󱢠"}.mdi-cards-outline:before{content:"󰘹"}.mdi-cards-playing:before{content:"󱢡"}.mdi-cards-playing-club:before{content:"󱢢"}.mdi-cards-playing-club-multiple:before{content:"󱢣"}.mdi-cards-playing-club-multiple-outline:before{content:"󱢤"}.mdi-cards-playing-club-outline:before{content:"󱢥"}.mdi-cards-playing-diamond:before{content:"󱢦"}.mdi-cards-playing-diamond-multiple:before{content:"󱢧"}.mdi-cards-playing-diamond-multiple-outline:before{content:"󱢨"}.mdi-cards-playing-diamond-outline:before{content:"󱢩"}.mdi-cards-playing-heart:before{content:"󱢪"}.mdi-cards-playing-heart-multiple:before{content:"󱢫"}.mdi-cards-playing-heart-multiple-outline:before{content:"󱢬"}.mdi-cards-playing-heart-outline:before{content:"󱢭"}.mdi-cards-playing-outline:before{content:"󰘺"}.mdi-cards-playing-spade:before{content:"󱢮"}.mdi-cards-playing-spade-multiple:before{content:"󱢯"}.mdi-cards-playing-spade-multiple-outline:before{content:"󱢰"}.mdi-cards-playing-spade-outline:before{content:"󱢱"}.mdi-cards-spade:before{content:"󰣑"}.mdi-cards-spade-outline:before{content:"󱢲"}.mdi-cards-variant:before{content:"󰛇"}.mdi-carrot:before{content:"󰄏"}.mdi-cart:before{content:"󰄐"}.mdi-cart-arrow-down:before{content:"󰵦"}.mdi-cart-arrow-right:before{content:"󰱎"}.mdi-cart-arrow-up:before{content:"󰵧"}.mdi-cart-check:before{content:"󱗪"}.mdi-cart-heart:before{content:"󱣠"}.mdi-cart-minus:before{content:"󰵨"}.mdi-cart-off:before{content:"󰙫"}.mdi-cart-outline:before{content:"󰄑"}.mdi-cart-percent:before{content:"󱮮"}.mdi-cart-plus:before{content:"󰄒"}.mdi-cart-remove:before{content:"󰵩"}.mdi-cart-variant:before{content:"󱗫"}.mdi-case-sensitive-alt:before{content:"󰄓"}.mdi-cash:before{content:"󰄔"}.mdi-cash-100:before{content:"󰄕"}.mdi-cash-check:before{content:"󱓮"}.mdi-cash-clock:before{content:"󱪑"}.mdi-cash-edit:before{content:"󱲫"}.mdi-cash-fast:before{content:"󱡜"}.mdi-cash-lock:before{content:"󱓪"}.mdi-cash-lock-open:before{content:"󱓫"}.mdi-cash-marker:before{content:"󰶸"}.mdi-cash-minus:before{content:"󱉠"}.mdi-cash-multiple:before{content:"󰄖"}.mdi-cash-off:before{content:"󱱹"}.mdi-cash-plus:before{content:"󱉡"}.mdi-cash-refund:before{content:"󰪜"}.mdi-cash-register:before{content:"󰳴"}.mdi-cash-remove:before{content:"󱉢"}.mdi-cash-sync:before{content:"󱪒"}.mdi-cassette:before{content:"󰧔"}.mdi-cast:before{content:"󰄘"}.mdi-cast-audio:before{content:"󱀞"}.mdi-cast-audio-variant:before{content:"󱝉"}.mdi-cast-connected:before{content:"󰄙"}.mdi-cast-education:before{content:"󰸝"}.mdi-cast-off:before{content:"󰞊"}.mdi-cast-variant:before{content:"󰀟"}.mdi-castle:before{content:"󰄚"}.mdi-cat:before{content:"󰄛"}.mdi-cctv:before{content:"󰞮"}.mdi-cctv-off:before{content:"󱡟"}.mdi-ceiling-fan:before{content:"󱞗"}.mdi-ceiling-fan-light:before{content:"󱞘"}.mdi-ceiling-light:before{content:"󰝩"}.mdi-ceiling-light-multiple:before{content:"󱣝"}.mdi-ceiling-light-multiple-outline:before{content:"󱣞"}.mdi-ceiling-light-outline:before{content:"󱟇"}.mdi-cellphone:before{content:"󰄜"}.mdi-cellphone-arrow-down:before{content:"󰧕"}.mdi-cellphone-arrow-down-variant:before{content:"󱧅"}.mdi-cellphone-basic:before{content:"󰄞"}.mdi-cellphone-charging:before{content:"󱎗"}.mdi-cellphone-check:before{content:"󱟽"}.mdi-cellphone-cog:before{content:"󰥑"}.mdi-cellphone-dock:before{content:"󰄟"}.mdi-cellphone-information:before{content:"󰽁"}.mdi-cellphone-key:before{content:"󰥎"}.mdi-cellphone-link:before{content:"󰄡"}.mdi-cellphone-link-off:before{content:"󰄢"}.mdi-cellphone-lock:before{content:"󰥏"}.mdi-cellphone-marker:before{content:"󱠺"}.mdi-cellphone-message:before{content:"󰣓"}.mdi-cellphone-message-off:before{content:"󱃒"}.mdi-cellphone-nfc:before{content:"󰺐"}.mdi-cellphone-nfc-off:before{content:"󱋘"}.mdi-cellphone-off:before{content:"󰥐"}.mdi-cellphone-play:before{content:"󱀟"}.mdi-cellphone-remove:before{content:"󰥍"}.mdi-cellphone-screenshot:before{content:"󰨵"}.mdi-cellphone-settings:before{content:"󰄣"}.mdi-cellphone-sound:before{content:"󰥒"}.mdi-cellphone-text:before{content:"󰣒"}.mdi-cellphone-wireless:before{content:"󰠕"}.mdi-centos:before{content:"󱄚"}.mdi-certificate:before{content:"󰄤"}.mdi-certificate-outline:before{content:"󱆈"}.mdi-chair-rolling:before{content:"󰽈"}.mdi-chair-school:before{content:"󰄥"}.mdi-chandelier:before{content:"󱞓"}.mdi-charity:before{content:"󰱏"}.mdi-charity-search:before{content:"󱲂"}.mdi-chart-arc:before{content:"󰄦"}.mdi-chart-areaspline:before{content:"󰄧"}.mdi-chart-areaspline-variant:before{content:"󰺑"}.mdi-chart-bar:before{content:"󰄨"}.mdi-chart-bar-stacked:before{content:"󰝪"}.mdi-chart-bell-curve:before{content:"󰱐"}.mdi-chart-bell-curve-cumulative:before{content:"󰾧"}.mdi-chart-box:before{content:"󱕍"}.mdi-chart-box-outline:before{content:"󱕎"}.mdi-chart-box-plus-outline:before{content:"󱕏"}.mdi-chart-bubble:before{content:"󰗣"}.mdi-chart-donut:before{content:"󰞯"}.mdi-chart-donut-variant:before{content:"󰞰"}.mdi-chart-gantt:before{content:"󰙬"}.mdi-chart-histogram:before{content:"󰄩"}.mdi-chart-line:before{content:"󰄪"}.mdi-chart-line-stacked:before{content:"󰝫"}.mdi-chart-line-variant:before{content:"󰞱"}.mdi-chart-multiline:before{content:"󰣔"}.mdi-chart-multiple:before{content:"󱈓"}.mdi-chart-pie:before{content:"󰄫"}.mdi-chart-pie-outline:before{content:"󱯟"}.mdi-chart-ppf:before{content:"󱎀"}.mdi-chart-sankey:before{content:"󱇟"}.mdi-chart-sankey-variant:before{content:"󱇠"}.mdi-chart-scatter-plot:before{content:"󰺒"}.mdi-chart-scatter-plot-hexbin:before{content:"󰙭"}.mdi-chart-timeline:before{content:"󰙮"}.mdi-chart-timeline-variant:before{content:"󰺓"}.mdi-chart-timeline-variant-shimmer:before{content:"󱖶"}.mdi-chart-tree:before{content:"󰺔"}.mdi-chart-waterfall:before{content:"󱤘"}.mdi-chat:before{content:"󰭹"}.mdi-chat-alert:before{content:"󰭺"}.mdi-chat-alert-outline:before{content:"󱋉"}.mdi-chat-minus:before{content:"󱐐"}.mdi-chat-minus-outline:before{content:"󱐓"}.mdi-chat-outline:before{content:"󰻞"}.mdi-chat-plus:before{content:"󱐏"}.mdi-chat-plus-outline:before{content:"󱐒"}.mdi-chat-processing:before{content:"󰭻"}.mdi-chat-processing-outline:before{content:"󱋊"}.mdi-chat-question:before{content:"󱜸"}.mdi-chat-question-outline:before{content:"󱜹"}.mdi-chat-remove:before{content:"󱐑"}.mdi-chat-remove-outline:before{content:"󱐔"}.mdi-chat-sleep:before{content:"󱋑"}.mdi-chat-sleep-outline:before{content:"󱋒"}.mdi-check:before{content:"󰄬"}.mdi-check-all:before{content:"󰄭"}.mdi-check-bold:before{content:"󰸞"}.mdi-check-circle:before{content:"󰗠"}.mdi-check-circle-outline:before{content:"󰗡"}.mdi-check-decagram:before{content:"󰞑"}.mdi-check-decagram-outline:before{content:"󱝀"}.mdi-check-network:before{content:"󰱓"}.mdi-check-network-outline:before{content:"󰱔"}.mdi-check-outline:before{content:"󰡕"}.mdi-check-underline:before{content:"󰸟"}.mdi-check-underline-circle:before{content:"󰸠"}.mdi-check-underline-circle-outline:before{content:"󰸡"}.mdi-checkbook:before{content:"󰪝"}.mdi-checkbook-arrow-left:before{content:"󱰝"}.mdi-checkbook-arrow-right:before{content:"󱰞"}.mdi-checkbox-blank:before{content:"󰄮"}.mdi-checkbox-blank-badge:before{content:"󱅶"}.mdi-checkbox-blank-badge-outline:before{content:"󰄗"}.mdi-checkbox-blank-circle:before{content:"󰄯"}.mdi-checkbox-blank-circle-outline:before{content:"󰄰"}.mdi-checkbox-blank-off:before{content:"󱋬"}.mdi-checkbox-blank-off-outline:before{content:"󱋭"}.mdi-checkbox-blank-outline:before{content:"󰄱"}.mdi-checkbox-intermediate:before{content:"󰡖"}.mdi-checkbox-intermediate-variant:before{content:"󱭔"}.mdi-checkbox-marked:before{content:"󰄲"}.mdi-checkbox-marked-circle:before{content:"󰄳"}.mdi-checkbox-marked-circle-auto-outline:before{content:"󱰦"}.mdi-checkbox-marked-circle-minus-outline:before{content:"󱰧"}.mdi-checkbox-marked-circle-outline:before{content:"󰄴"}.mdi-checkbox-marked-circle-plus-outline:before{content:"󱤧"}.mdi-checkbox-marked-outline:before{content:"󰄵"}.mdi-checkbox-multiple-blank:before{content:"󰄶"}.mdi-checkbox-multiple-blank-circle:before{content:"󰘻"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"󰘼"}.mdi-checkbox-multiple-blank-outline:before{content:"󰄷"}.mdi-checkbox-multiple-marked:before{content:"󰄸"}.mdi-checkbox-multiple-marked-circle:before{content:"󰘽"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"󰘾"}.mdi-checkbox-multiple-marked-outline:before{content:"󰄹"}.mdi-checkbox-multiple-outline:before{content:"󰱑"}.mdi-checkbox-outline:before{content:"󰱒"}.mdi-checkerboard:before{content:"󰄺"}.mdi-checkerboard-minus:before{content:"󱈂"}.mdi-checkerboard-plus:before{content:"󱈁"}.mdi-checkerboard-remove:before{content:"󱈃"}.mdi-cheese:before{content:"󱊹"}.mdi-cheese-off:before{content:"󱏮"}.mdi-chef-hat:before{content:"󰭼"}.mdi-chemical-weapon:before{content:"󰄻"}.mdi-chess-bishop:before{content:"󰡜"}.mdi-chess-king:before{content:"󰡗"}.mdi-chess-knight:before{content:"󰡘"}.mdi-chess-pawn:before{content:"󰡙"}.mdi-chess-queen:before{content:"󰡚"}.mdi-chess-rook:before{content:"󰡛"}.mdi-chevron-double-down:before{content:"󰄼"}.mdi-chevron-double-left:before{content:"󰄽"}.mdi-chevron-double-right:before{content:"󰄾"}.mdi-chevron-double-up:before{content:"󰄿"}.mdi-chevron-down:before{content:"󰅀"}.mdi-chevron-down-box:before{content:"󰧖"}.mdi-chevron-down-box-outline:before{content:"󰧗"}.mdi-chevron-down-circle:before{content:"󰬦"}.mdi-chevron-down-circle-outline:before{content:"󰬧"}.mdi-chevron-left:before{content:"󰅁"}.mdi-chevron-left-box:before{content:"󰧘"}.mdi-chevron-left-box-outline:before{content:"󰧙"}.mdi-chevron-left-circle:before{content:"󰬨"}.mdi-chevron-left-circle-outline:before{content:"󰬩"}.mdi-chevron-right:before{content:"󰅂"}.mdi-chevron-right-box:before{content:"󰧚"}.mdi-chevron-right-box-outline:before{content:"󰧛"}.mdi-chevron-right-circle:before{content:"󰬪"}.mdi-chevron-right-circle-outline:before{content:"󰬫"}.mdi-chevron-triple-down:before{content:"󰶹"}.mdi-chevron-triple-left:before{content:"󰶺"}.mdi-chevron-triple-right:before{content:"󰶻"}.mdi-chevron-triple-up:before{content:"󰶼"}.mdi-chevron-up:before{content:"󰅃"}.mdi-chevron-up-box:before{content:"󰧜"}.mdi-chevron-up-box-outline:before{content:"󰧝"}.mdi-chevron-up-circle:before{content:"󰬬"}.mdi-chevron-up-circle-outline:before{content:"󰬭"}.mdi-chili-alert:before{content:"󱟪"}.mdi-chili-alert-outline:before{content:"󱟫"}.mdi-chili-hot:before{content:"󰞲"}.mdi-chili-hot-outline:before{content:"󱟬"}.mdi-chili-medium:before{content:"󰞳"}.mdi-chili-medium-outline:before{content:"󱟭"}.mdi-chili-mild:before{content:"󰞴"}.mdi-chili-mild-outline:before{content:"󱟮"}.mdi-chili-off:before{content:"󱑧"}.mdi-chili-off-outline:before{content:"󱟯"}.mdi-chip:before{content:"󰘚"}.mdi-church:before{content:"󰅄"}.mdi-church-outline:before{content:"󱬂"}.mdi-cigar:before{content:"󱆉"}.mdi-cigar-off:before{content:"󱐛"}.mdi-circle:before{content:"󰝥"}.mdi-circle-box:before{content:"󱗜"}.mdi-circle-box-outline:before{content:"󱗝"}.mdi-circle-double:before{content:"󰺕"}.mdi-circle-edit-outline:before{content:"󰣕"}.mdi-circle-expand:before{content:"󰺖"}.mdi-circle-half:before{content:"󱎕"}.mdi-circle-half-full:before{content:"󱎖"}.mdi-circle-medium:before{content:"󰧞"}.mdi-circle-multiple:before{content:"󰬸"}.mdi-circle-multiple-outline:before{content:"󰚕"}.mdi-circle-off-outline:before{content:"󱃓"}.mdi-circle-opacity:before{content:"󱡓"}.mdi-circle-outline:before{content:"󰝦"}.mdi-circle-slice-1:before{content:"󰪞"}.mdi-circle-slice-2:before{content:"󰪟"}.mdi-circle-slice-3:before{content:"󰪠"}.mdi-circle-slice-4:before{content:"󰪡"}.mdi-circle-slice-5:before{content:"󰪢"}.mdi-circle-slice-6:before{content:"󰪣"}.mdi-circle-slice-7:before{content:"󰪤"}.mdi-circle-slice-8:before{content:"󰪥"}.mdi-circle-small:before{content:"󰧟"}.mdi-circular-saw:before{content:"󰸢"}.mdi-city:before{content:"󰅆"}.mdi-city-switch:before{content:"󱰨"}.mdi-city-variant:before{content:"󰨶"}.mdi-city-variant-outline:before{content:"󰨷"}.mdi-clipboard:before{content:"󰅇"}.mdi-clipboard-account:before{content:"󰅈"}.mdi-clipboard-account-outline:before{content:"󰱕"}.mdi-clipboard-alert:before{content:"󰅉"}.mdi-clipboard-alert-outline:before{content:"󰳷"}.mdi-clipboard-arrow-down:before{content:"󰅊"}.mdi-clipboard-arrow-down-outline:before{content:"󰱖"}.mdi-clipboard-arrow-left:before{content:"󰅋"}.mdi-clipboard-arrow-left-outline:before{content:"󰳸"}.mdi-clipboard-arrow-right:before{content:"󰳹"}.mdi-clipboard-arrow-right-outline:before{content:"󰳺"}.mdi-clipboard-arrow-up:before{content:"󰱗"}.mdi-clipboard-arrow-up-outline:before{content:"󰱘"}.mdi-clipboard-check:before{content:"󰅎"}.mdi-clipboard-check-multiple:before{content:"󱉣"}.mdi-clipboard-check-multiple-outline:before{content:"󱉤"}.mdi-clipboard-check-outline:before{content:"󰢨"}.mdi-clipboard-clock:before{content:"󱛢"}.mdi-clipboard-clock-outline:before{content:"󱛣"}.mdi-clipboard-edit:before{content:"󱓥"}.mdi-clipboard-edit-outline:before{content:"󱓦"}.mdi-clipboard-file:before{content:"󱉥"}.mdi-clipboard-file-outline:before{content:"󱉦"}.mdi-clipboard-flow:before{content:"󰛈"}.mdi-clipboard-flow-outline:before{content:"󱄗"}.mdi-clipboard-list:before{content:"󱃔"}.mdi-clipboard-list-outline:before{content:"󱃕"}.mdi-clipboard-minus:before{content:"󱘘"}.mdi-clipboard-minus-outline:before{content:"󱘙"}.mdi-clipboard-multiple:before{content:"󱉧"}.mdi-clipboard-multiple-outline:before{content:"󱉨"}.mdi-clipboard-off:before{content:"󱘚"}.mdi-clipboard-off-outline:before{content:"󱘛"}.mdi-clipboard-outline:before{content:"󰅌"}.mdi-clipboard-play:before{content:"󰱙"}.mdi-clipboard-play-multiple:before{content:"󱉩"}.mdi-clipboard-play-multiple-outline:before{content:"󱉪"}.mdi-clipboard-play-outline:before{content:"󰱚"}.mdi-clipboard-plus:before{content:"󰝑"}.mdi-clipboard-plus-outline:before{content:"󱌟"}.mdi-clipboard-pulse:before{content:"󰡝"}.mdi-clipboard-pulse-outline:before{content:"󰡞"}.mdi-clipboard-remove:before{content:"󱘜"}.mdi-clipboard-remove-outline:before{content:"󱘝"}.mdi-clipboard-search:before{content:"󱘞"}.mdi-clipboard-search-outline:before{content:"󱘟"}.mdi-clipboard-text:before{content:"󰅍"}.mdi-clipboard-text-clock:before{content:"󱣹"}.mdi-clipboard-text-clock-outline:before{content:"󱣺"}.mdi-clipboard-text-multiple:before{content:"󱉫"}.mdi-clipboard-text-multiple-outline:before{content:"󱉬"}.mdi-clipboard-text-off:before{content:"󱘠"}.mdi-clipboard-text-off-outline:before{content:"󱘡"}.mdi-clipboard-text-outline:before{content:"󰨸"}.mdi-clipboard-text-play:before{content:"󰱛"}.mdi-clipboard-text-play-outline:before{content:"󰱜"}.mdi-clipboard-text-search:before{content:"󱘢"}.mdi-clipboard-text-search-outline:before{content:"󱘣"}.mdi-clippy:before{content:"󰅏"}.mdi-clock:before{content:"󰥔"}.mdi-clock-alert:before{content:"󰥕"}.mdi-clock-alert-outline:before{content:"󰗎"}.mdi-clock-check:before{content:"󰾨"}.mdi-clock-check-outline:before{content:"󰾩"}.mdi-clock-digital:before{content:"󰺗"}.mdi-clock-edit:before{content:"󱦺"}.mdi-clock-edit-outline:before{content:"󱦻"}.mdi-clock-end:before{content:"󰅑"}.mdi-clock-fast:before{content:"󰅒"}.mdi-clock-in:before{content:"󰅓"}.mdi-clock-minus:before{content:"󱡣"}.mdi-clock-minus-outline:before{content:"󱡤"}.mdi-clock-out:before{content:"󰅔"}.mdi-clock-outline:before{content:"󰅐"}.mdi-clock-plus:before{content:"󱡡"}.mdi-clock-plus-outline:before{content:"󱡢"}.mdi-clock-remove:before{content:"󱡥"}.mdi-clock-remove-outline:before{content:"󱡦"}.mdi-clock-star-four-points:before{content:"󱰩"}.mdi-clock-star-four-points-outline:before{content:"󱰪"}.mdi-clock-start:before{content:"󰅕"}.mdi-clock-time-eight:before{content:"󱑆"}.mdi-clock-time-eight-outline:before{content:"󱑒"}.mdi-clock-time-eleven:before{content:"󱑉"}.mdi-clock-time-eleven-outline:before{content:"󱑕"}.mdi-clock-time-five:before{content:"󱑃"}.mdi-clock-time-five-outline:before{content:"󱑏"}.mdi-clock-time-four:before{content:"󱑂"}.mdi-clock-time-four-outline:before{content:"󱑎"}.mdi-clock-time-nine:before{content:"󱑇"}.mdi-clock-time-nine-outline:before{content:"󱑓"}.mdi-clock-time-one:before{content:"󱐿"}.mdi-clock-time-one-outline:before{content:"󱑋"}.mdi-clock-time-seven:before{content:"󱑅"}.mdi-clock-time-seven-outline:before{content:"󱑑"}.mdi-clock-time-six:before{content:"󱑄"}.mdi-clock-time-six-outline:before{content:"󱑐"}.mdi-clock-time-ten:before{content:"󱑈"}.mdi-clock-time-ten-outline:before{content:"󱑔"}.mdi-clock-time-three:before{content:"󱑁"}.mdi-clock-time-three-outline:before{content:"󱑍"}.mdi-clock-time-twelve:before{content:"󱑊"}.mdi-clock-time-twelve-outline:before{content:"󱑖"}.mdi-clock-time-two:before{content:"󱑀"}.mdi-clock-time-two-outline:before{content:"󱑌"}.mdi-close:before{content:"󰅖"}.mdi-close-box:before{content:"󰅗"}.mdi-close-box-multiple:before{content:"󰱝"}.mdi-close-box-multiple-outline:before{content:"󰱞"}.mdi-close-box-outline:before{content:"󰅘"}.mdi-close-circle:before{content:"󰅙"}.mdi-close-circle-multiple:before{content:"󰘪"}.mdi-close-circle-multiple-outline:before{content:"󰢃"}.mdi-close-circle-outline:before{content:"󰅚"}.mdi-close-network:before{content:"󰅛"}.mdi-close-network-outline:before{content:"󰱟"}.mdi-close-octagon:before{content:"󰅜"}.mdi-close-octagon-outline:before{content:"󰅝"}.mdi-close-outline:before{content:"󰛉"}.mdi-close-thick:before{content:"󱎘"}.mdi-closed-caption:before{content:"󰅞"}.mdi-closed-caption-outline:before{content:"󰶽"}.mdi-cloud:before{content:"󰅟"}.mdi-cloud-alert:before{content:"󰧠"}.mdi-cloud-alert-outline:before{content:"󱯠"}.mdi-cloud-arrow-down:before{content:"󱯡"}.mdi-cloud-arrow-down-outline:before{content:"󱯢"}.mdi-cloud-arrow-left:before{content:"󱯣"}.mdi-cloud-arrow-left-outline:before{content:"󱯤"}.mdi-cloud-arrow-right:before{content:"󱯥"}.mdi-cloud-arrow-right-outline:before{content:"󱯦"}.mdi-cloud-arrow-up:before{content:"󱯧"}.mdi-cloud-arrow-up-outline:before{content:"󱯨"}.mdi-cloud-braces:before{content:"󰞵"}.mdi-cloud-cancel:before{content:"󱯩"}.mdi-cloud-cancel-outline:before{content:"󱯪"}.mdi-cloud-check:before{content:"󱯫"}.mdi-cloud-check-outline:before{content:"󱯬"}.mdi-cloud-check-variant:before{content:"󰅠"}.mdi-cloud-check-variant-outline:before{content:"󱋌"}.mdi-cloud-circle:before{content:"󰅡"}.mdi-cloud-circle-outline:before{content:"󱯭"}.mdi-cloud-clock:before{content:"󱯮"}.mdi-cloud-clock-outline:before{content:"󱯯"}.mdi-cloud-cog:before{content:"󱯰"}.mdi-cloud-cog-outline:before{content:"󱯱"}.mdi-cloud-download:before{content:"󰅢"}.mdi-cloud-download-outline:before{content:"󰭽"}.mdi-cloud-key:before{content:"󱲡"}.mdi-cloud-key-outline:before{content:"󱲢"}.mdi-cloud-lock:before{content:"󱇱"}.mdi-cloud-lock-open:before{content:"󱯲"}.mdi-cloud-lock-open-outline:before{content:"󱯳"}.mdi-cloud-lock-outline:before{content:"󱇲"}.mdi-cloud-minus:before{content:"󱯴"}.mdi-cloud-minus-outline:before{content:"󱯵"}.mdi-cloud-off:before{content:"󱯶"}.mdi-cloud-off-outline:before{content:"󰅤"}.mdi-cloud-outline:before{content:"󰅣"}.mdi-cloud-percent:before{content:"󱨵"}.mdi-cloud-percent-outline:before{content:"󱨶"}.mdi-cloud-plus:before{content:"󱯷"}.mdi-cloud-plus-outline:before{content:"󱯸"}.mdi-cloud-print:before{content:"󰅥"}.mdi-cloud-print-outline:before{content:"󰅦"}.mdi-cloud-question:before{content:"󰨹"}.mdi-cloud-question-outline:before{content:"󱯹"}.mdi-cloud-refresh:before{content:"󱯺"}.mdi-cloud-refresh-outline:before{content:"󱯻"}.mdi-cloud-refresh-variant:before{content:"󰔪"}.mdi-cloud-refresh-variant-outline:before{content:"󱯼"}.mdi-cloud-remove:before{content:"󱯽"}.mdi-cloud-remove-outline:before{content:"󱯾"}.mdi-cloud-search:before{content:"󰥖"}.mdi-cloud-search-outline:before{content:"󰥗"}.mdi-cloud-sync:before{content:"󰘿"}.mdi-cloud-sync-outline:before{content:"󱋖"}.mdi-cloud-tags:before{content:"󰞶"}.mdi-cloud-upload:before{content:"󰅧"}.mdi-cloud-upload-outline:before{content:"󰭾"}.mdi-clouds:before{content:"󱮕"}.mdi-clover:before{content:"󰠖"}.mdi-clover-outline:before{content:"󱱢"}.mdi-coach-lamp:before{content:"󱀠"}.mdi-coach-lamp-variant:before{content:"󱨷"}.mdi-coat-rack:before{content:"󱂞"}.mdi-code-array:before{content:"󰅨"}.mdi-code-block-braces:before{content:"󱲃"}.mdi-code-block-brackets:before{content:"󱲄"}.mdi-code-block-parentheses:before{content:"󱲅"}.mdi-code-block-tags:before{content:"󱲆"}.mdi-code-braces:before{content:"󰅩"}.mdi-code-braces-box:before{content:"󱃖"}.mdi-code-brackets:before{content:"󰅪"}.mdi-code-equal:before{content:"󰅫"}.mdi-code-greater-than:before{content:"󰅬"}.mdi-code-greater-than-or-equal:before{content:"󰅭"}.mdi-code-json:before{content:"󰘦"}.mdi-code-less-than:before{content:"󰅮"}.mdi-code-less-than-or-equal:before{content:"󰅯"}.mdi-code-not-equal:before{content:"󰅰"}.mdi-code-not-equal-variant:before{content:"󰅱"}.mdi-code-parentheses:before{content:"󰅲"}.mdi-code-parentheses-box:before{content:"󱃗"}.mdi-code-string:before{content:"󰅳"}.mdi-code-tags:before{content:"󰅴"}.mdi-code-tags-check:before{content:"󰚔"}.mdi-codepen:before{content:"󰅵"}.mdi-coffee:before{content:"󰅶"}.mdi-coffee-maker:before{content:"󱂟"}.mdi-coffee-maker-check:before{content:"󱤱"}.mdi-coffee-maker-check-outline:before{content:"󱤲"}.mdi-coffee-maker-outline:before{content:"󱠛"}.mdi-coffee-off:before{content:"󰾪"}.mdi-coffee-off-outline:before{content:"󰾫"}.mdi-coffee-outline:before{content:"󰛊"}.mdi-coffee-to-go:before{content:"󰅷"}.mdi-coffee-to-go-outline:before{content:"󱌎"}.mdi-coffin:before{content:"󰭿"}.mdi-cog:before{content:"󰒓"}.mdi-cog-box:before{content:"󰒔"}.mdi-cog-clockwise:before{content:"󱇝"}.mdi-cog-counterclockwise:before{content:"󱇞"}.mdi-cog-off:before{content:"󱏎"}.mdi-cog-off-outline:before{content:"󱏏"}.mdi-cog-outline:before{content:"󰢻"}.mdi-cog-pause:before{content:"󱤳"}.mdi-cog-pause-outline:before{content:"󱤴"}.mdi-cog-play:before{content:"󱤵"}.mdi-cog-play-outline:before{content:"󱤶"}.mdi-cog-refresh:before{content:"󱑞"}.mdi-cog-refresh-outline:before{content:"󱑟"}.mdi-cog-stop:before{content:"󱤷"}.mdi-cog-stop-outline:before{content:"󱤸"}.mdi-cog-sync:before{content:"󱑠"}.mdi-cog-sync-outline:before{content:"󱑡"}.mdi-cog-transfer:before{content:"󱁛"}.mdi-cog-transfer-outline:before{content:"󱁜"}.mdi-cogs:before{content:"󰣖"}.mdi-collage:before{content:"󰙀"}.mdi-collapse-all:before{content:"󰪦"}.mdi-collapse-all-outline:before{content:"󰪧"}.mdi-color-helper:before{content:"󰅹"}.mdi-comma:before{content:"󰸣"}.mdi-comma-box:before{content:"󰸫"}.mdi-comma-box-outline:before{content:"󰸤"}.mdi-comma-circle:before{content:"󰸥"}.mdi-comma-circle-outline:before{content:"󰸦"}.mdi-comment:before{content:"󰅺"}.mdi-comment-account:before{content:"󰅻"}.mdi-comment-account-outline:before{content:"󰅼"}.mdi-comment-alert:before{content:"󰅽"}.mdi-comment-alert-outline:before{content:"󰅾"}.mdi-comment-arrow-left:before{content:"󰧡"}.mdi-comment-arrow-left-outline:before{content:"󰧢"}.mdi-comment-arrow-right:before{content:"󰧣"}.mdi-comment-arrow-right-outline:before{content:"󰧤"}.mdi-comment-bookmark:before{content:"󱖮"}.mdi-comment-bookmark-outline:before{content:"󱖯"}.mdi-comment-check:before{content:"󰅿"}.mdi-comment-check-outline:before{content:"󰆀"}.mdi-comment-edit:before{content:"󱆿"}.mdi-comment-edit-outline:before{content:"󱋄"}.mdi-comment-eye:before{content:"󰨺"}.mdi-comment-eye-outline:before{content:"󰨻"}.mdi-comment-flash:before{content:"󱖰"}.mdi-comment-flash-outline:before{content:"󱖱"}.mdi-comment-minus:before{content:"󱗟"}.mdi-comment-minus-outline:before{content:"󱗠"}.mdi-comment-multiple:before{content:"󰡟"}.mdi-comment-multiple-outline:before{content:"󰆁"}.mdi-comment-off:before{content:"󱗡"}.mdi-comment-off-outline:before{content:"󱗢"}.mdi-comment-outline:before{content:"󰆂"}.mdi-comment-plus:before{content:"󰧥"}.mdi-comment-plus-outline:before{content:"󰆃"}.mdi-comment-processing:before{content:"󰆄"}.mdi-comment-processing-outline:before{content:"󰆅"}.mdi-comment-question:before{content:"󰠗"}.mdi-comment-question-outline:before{content:"󰆆"}.mdi-comment-quote:before{content:"󱀡"}.mdi-comment-quote-outline:before{content:"󱀢"}.mdi-comment-remove:before{content:"󰗞"}.mdi-comment-remove-outline:before{content:"󰆇"}.mdi-comment-search:before{content:"󰨼"}.mdi-comment-search-outline:before{content:"󰨽"}.mdi-comment-text:before{content:"󰆈"}.mdi-comment-text-multiple:before{content:"󰡠"}.mdi-comment-text-multiple-outline:before{content:"󰡡"}.mdi-comment-text-outline:before{content:"󰆉"}.mdi-compare:before{content:"󰆊"}.mdi-compare-horizontal:before{content:"󱒒"}.mdi-compare-remove:before{content:"󱢳"}.mdi-compare-vertical:before{content:"󱒓"}.mdi-compass:before{content:"󰆋"}.mdi-compass-off:before{content:"󰮀"}.mdi-compass-off-outline:before{content:"󰮁"}.mdi-compass-outline:before{content:"󰆌"}.mdi-compass-rose:before{content:"󱎂"}.mdi-compost:before{content:"󱨸"}.mdi-cone:before{content:"󱥌"}.mdi-cone-off:before{content:"󱥍"}.mdi-connection:before{content:"󱘖"}.mdi-console:before{content:"󰆍"}.mdi-console-line:before{content:"󰞷"}.mdi-console-network:before{content:"󰢩"}.mdi-console-network-outline:before{content:"󰱠"}.mdi-consolidate:before{content:"󱃘"}.mdi-contactless-payment:before{content:"󰵪"}.mdi-contactless-payment-circle:before{content:"󰌡"}.mdi-contactless-payment-circle-outline:before{content:"󰐈"}.mdi-contacts:before{content:"󰛋"}.mdi-contacts-outline:before{content:"󰖸"}.mdi-contain:before{content:"󰨾"}.mdi-contain-end:before{content:"󰨿"}.mdi-contain-start:before{content:"󰩀"}.mdi-content-copy:before{content:"󰆏"}.mdi-content-cut:before{content:"󰆐"}.mdi-content-duplicate:before{content:"󰆑"}.mdi-content-paste:before{content:"󰆒"}.mdi-content-save:before{content:"󰆓"}.mdi-content-save-alert:before{content:"󰽂"}.mdi-content-save-alert-outline:before{content:"󰽃"}.mdi-content-save-all:before{content:"󰆔"}.mdi-content-save-all-outline:before{content:"󰽄"}.mdi-content-save-check:before{content:"󱣪"}.mdi-content-save-check-outline:before{content:"󱣫"}.mdi-content-save-cog:before{content:"󱑛"}.mdi-content-save-cog-outline:before{content:"󱑜"}.mdi-content-save-edit:before{content:"󰳻"}.mdi-content-save-edit-outline:before{content:"󰳼"}.mdi-content-save-minus:before{content:"󱭃"}.mdi-content-save-minus-outline:before{content:"󱭄"}.mdi-content-save-move:before{content:"󰸧"}.mdi-content-save-move-outline:before{content:"󰸨"}.mdi-content-save-off:before{content:"󱙃"}.mdi-content-save-off-outline:before{content:"󱙄"}.mdi-content-save-outline:before{content:"󰠘"}.mdi-content-save-plus:before{content:"󱭁"}.mdi-content-save-plus-outline:before{content:"󱭂"}.mdi-content-save-settings:before{content:"󰘛"}.mdi-content-save-settings-outline:before{content:"󰬮"}.mdi-contrast:before{content:"󰆕"}.mdi-contrast-box:before{content:"󰆖"}.mdi-contrast-circle:before{content:"󰆗"}.mdi-controller:before{content:"󰊴"}.mdi-controller-classic:before{content:"󰮂"}.mdi-controller-classic-outline:before{content:"󰮃"}.mdi-controller-off:before{content:"󰊵"}.mdi-cookie:before{content:"󰆘"}.mdi-cookie-alert:before{content:"󱛐"}.mdi-cookie-alert-outline:before{content:"󱛑"}.mdi-cookie-check:before{content:"󱛒"}.mdi-cookie-check-outline:before{content:"󱛓"}.mdi-cookie-clock:before{content:"󱛤"}.mdi-cookie-clock-outline:before{content:"󱛥"}.mdi-cookie-cog:before{content:"󱛔"}.mdi-cookie-cog-outline:before{content:"󱛕"}.mdi-cookie-edit:before{content:"󱛦"}.mdi-cookie-edit-outline:before{content:"󱛧"}.mdi-cookie-lock:before{content:"󱛨"}.mdi-cookie-lock-outline:before{content:"󱛩"}.mdi-cookie-minus:before{content:"󱛚"}.mdi-cookie-minus-outline:before{content:"󱛛"}.mdi-cookie-off:before{content:"󱛪"}.mdi-cookie-off-outline:before{content:"󱛫"}.mdi-cookie-outline:before{content:"󱛞"}.mdi-cookie-plus:before{content:"󱛖"}.mdi-cookie-plus-outline:before{content:"󱛗"}.mdi-cookie-refresh:before{content:"󱛬"}.mdi-cookie-refresh-outline:before{content:"󱛭"}.mdi-cookie-remove:before{content:"󱛘"}.mdi-cookie-remove-outline:before{content:"󱛙"}.mdi-cookie-settings:before{content:"󱛜"}.mdi-cookie-settings-outline:before{content:"󱛝"}.mdi-coolant-temperature:before{content:"󰏈"}.mdi-copyleft:before{content:"󱤹"}.mdi-copyright:before{content:"󰗦"}.mdi-cordova:before{content:"󰥘"}.mdi-corn:before{content:"󰞸"}.mdi-corn-off:before{content:"󱏯"}.mdi-cosine-wave:before{content:"󱑹"}.mdi-counter:before{content:"󰆙"}.mdi-countertop:before{content:"󱠜"}.mdi-countertop-outline:before{content:"󱠝"}.mdi-cow:before{content:"󰆚"}.mdi-cow-off:before{content:"󱣼"}.mdi-cpu-32-bit:before{content:"󰻟"}.mdi-cpu-64-bit:before{content:"󰻠"}.mdi-cradle:before{content:"󱦋"}.mdi-cradle-outline:before{content:"󱦑"}.mdi-crane:before{content:"󰡢"}.mdi-creation:before{content:"󰙴"}.mdi-creation-outline:before{content:"󱰫"}.mdi-creative-commons:before{content:"󰵫"}.mdi-credit-card:before{content:"󰿯"}.mdi-credit-card-check:before{content:"󱏐"}.mdi-credit-card-check-outline:before{content:"󱏑"}.mdi-credit-card-chip:before{content:"󱤏"}.mdi-credit-card-chip-outline:before{content:"󱤐"}.mdi-credit-card-clock:before{content:"󰻡"}.mdi-credit-card-clock-outline:before{content:"󰻢"}.mdi-credit-card-edit:before{content:"󱟗"}.mdi-credit-card-edit-outline:before{content:"󱟘"}.mdi-credit-card-fast:before{content:"󱤑"}.mdi-credit-card-fast-outline:before{content:"󱤒"}.mdi-credit-card-lock:before{content:"󱣧"}.mdi-credit-card-lock-outline:before{content:"󱣨"}.mdi-credit-card-marker:before{content:"󰚨"}.mdi-credit-card-marker-outline:before{content:"󰶾"}.mdi-credit-card-minus:before{content:"󰾬"}.mdi-credit-card-minus-outline:before{content:"󰾭"}.mdi-credit-card-multiple:before{content:"󰿰"}.mdi-credit-card-multiple-outline:before{content:"󰆜"}.mdi-credit-card-off:before{content:"󰿱"}.mdi-credit-card-off-outline:before{content:"󰗤"}.mdi-credit-card-outline:before{content:"󰆛"}.mdi-credit-card-plus:before{content:"󰿲"}.mdi-credit-card-plus-outline:before{content:"󰙶"}.mdi-credit-card-refresh:before{content:"󱙅"}.mdi-credit-card-refresh-outline:before{content:"󱙆"}.mdi-credit-card-refund:before{content:"󰿳"}.mdi-credit-card-refund-outline:before{content:"󰪨"}.mdi-credit-card-remove:before{content:"󰾮"}.mdi-credit-card-remove-outline:before{content:"󰾯"}.mdi-credit-card-scan:before{content:"󰿴"}.mdi-credit-card-scan-outline:before{content:"󰆝"}.mdi-credit-card-search:before{content:"󱙇"}.mdi-credit-card-search-outline:before{content:"󱙈"}.mdi-credit-card-settings:before{content:"󰿵"}.mdi-credit-card-settings-outline:before{content:"󰣗"}.mdi-credit-card-sync:before{content:"󱙉"}.mdi-credit-card-sync-outline:before{content:"󱙊"}.mdi-credit-card-wireless:before{content:"󰠂"}.mdi-credit-card-wireless-off:before{content:"󰕺"}.mdi-credit-card-wireless-off-outline:before{content:"󰕻"}.mdi-credit-card-wireless-outline:before{content:"󰵬"}.mdi-cricket:before{content:"󰵭"}.mdi-crop:before{content:"󰆞"}.mdi-crop-free:before{content:"󰆟"}.mdi-crop-landscape:before{content:"󰆠"}.mdi-crop-portrait:before{content:"󰆡"}.mdi-crop-rotate:before{content:"󰚖"}.mdi-crop-square:before{content:"󰆢"}.mdi-cross:before{content:"󰥓"}.mdi-cross-bolnisi:before{content:"󰳭"}.mdi-cross-celtic:before{content:"󰳵"}.mdi-cross-outline:before{content:"󰳶"}.mdi-crosshairs:before{content:"󰆣"}.mdi-crosshairs-gps:before{content:"󰆤"}.mdi-crosshairs-off:before{content:"󰽅"}.mdi-crosshairs-question:before{content:"󱄶"}.mdi-crowd:before{content:"󱥵"}.mdi-crown:before{content:"󰆥"}.mdi-crown-circle:before{content:"󱟜"}.mdi-crown-circle-outline:before{content:"󱟝"}.mdi-crown-outline:before{content:"󱇐"}.mdi-cryengine:before{content:"󰥙"}.mdi-crystal-ball:before{content:"󰬯"}.mdi-cube:before{content:"󰆦"}.mdi-cube-off:before{content:"󱐜"}.mdi-cube-off-outline:before{content:"󱐝"}.mdi-cube-outline:before{content:"󰆧"}.mdi-cube-scan:before{content:"󰮄"}.mdi-cube-send:before{content:"󰆨"}.mdi-cube-unfolded:before{content:"󰆩"}.mdi-cup:before{content:"󰆪"}.mdi-cup-off:before{content:"󰗥"}.mdi-cup-off-outline:before{content:"󱍽"}.mdi-cup-outline:before{content:"󱌏"}.mdi-cup-water:before{content:"󰆫"}.mdi-cupboard:before{content:"󰽆"}.mdi-cupboard-outline:before{content:"󰽇"}.mdi-cupcake:before{content:"󰥚"}.mdi-curling:before{content:"󰡣"}.mdi-currency-bdt:before{content:"󰡤"}.mdi-currency-brl:before{content:"󰮅"}.mdi-currency-btc:before{content:"󰆬"}.mdi-currency-cny:before{content:"󰞺"}.mdi-currency-eth:before{content:"󰞻"}.mdi-currency-eur:before{content:"󰆭"}.mdi-currency-eur-off:before{content:"󱌕"}.mdi-currency-fra:before{content:"󱨹"}.mdi-currency-gbp:before{content:"󰆮"}.mdi-currency-ils:before{content:"󰱡"}.mdi-currency-inr:before{content:"󰆯"}.mdi-currency-jpy:before{content:"󰞼"}.mdi-currency-krw:before{content:"󰞽"}.mdi-currency-kzt:before{content:"󰡥"}.mdi-currency-mnt:before{content:"󱔒"}.mdi-currency-ngn:before{content:"󰆰"}.mdi-currency-php:before{content:"󰧦"}.mdi-currency-rial:before{content:"󰺜"}.mdi-currency-rub:before{content:"󰆱"}.mdi-currency-rupee:before{content:"󱥶"}.mdi-currency-sign:before{content:"󰞾"}.mdi-currency-thb:before{content:"󱰅"}.mdi-currency-try:before{content:"󰆲"}.mdi-currency-twd:before{content:"󰞿"}.mdi-currency-uah:before{content:"󱮛"}.mdi-currency-usd:before{content:"󰇁"}.mdi-currency-usd-off:before{content:"󰙺"}.mdi-current-ac:before{content:"󱒀"}.mdi-current-dc:before{content:"󰥜"}.mdi-cursor-default:before{content:"󰇀"}.mdi-cursor-default-click:before{content:"󰳽"}.mdi-cursor-default-click-outline:before{content:"󰳾"}.mdi-cursor-default-gesture:before{content:"󱄧"}.mdi-cursor-default-gesture-outline:before{content:"󱄨"}.mdi-cursor-default-outline:before{content:"󰆿"}.mdi-cursor-move:before{content:"󰆾"}.mdi-cursor-pointer:before{content:"󰆽"}.mdi-cursor-text:before{content:"󰗧"}.mdi-curtains:before{content:"󱡆"}.mdi-curtains-closed:before{content:"󱡇"}.mdi-cylinder:before{content:"󱥎"}.mdi-cylinder-off:before{content:"󱥏"}.mdi-dance-ballroom:before{content:"󱗻"}.mdi-dance-pole:before{content:"󱕸"}.mdi-data-matrix:before{content:"󱔼"}.mdi-data-matrix-edit:before{content:"󱔽"}.mdi-data-matrix-minus:before{content:"󱔾"}.mdi-data-matrix-plus:before{content:"󱔿"}.mdi-data-matrix-remove:before{content:"󱕀"}.mdi-data-matrix-scan:before{content:"󱕁"}.mdi-database:before{content:"󰆼"}.mdi-database-alert:before{content:"󱘺"}.mdi-database-alert-outline:before{content:"󱘤"}.mdi-database-arrow-down:before{content:"󱘻"}.mdi-database-arrow-down-outline:before{content:"󱘥"}.mdi-database-arrow-left:before{content:"󱘼"}.mdi-database-arrow-left-outline:before{content:"󱘦"}.mdi-database-arrow-right:before{content:"󱘽"}.mdi-database-arrow-right-outline:before{content:"󱘧"}.mdi-database-arrow-up:before{content:"󱘾"}.mdi-database-arrow-up-outline:before{content:"󱘨"}.mdi-database-check:before{content:"󰪩"}.mdi-database-check-outline:before{content:"󱘩"}.mdi-database-clock:before{content:"󱘿"}.mdi-database-clock-outline:before{content:"󱘪"}.mdi-database-cog:before{content:"󱙋"}.mdi-database-cog-outline:before{content:"󱙌"}.mdi-database-edit:before{content:"󰮆"}.mdi-database-edit-outline:before{content:"󱘫"}.mdi-database-export:before{content:"󰥞"}.mdi-database-export-outline:before{content:"󱘬"}.mdi-database-eye:before{content:"󱤟"}.mdi-database-eye-off:before{content:"󱤠"}.mdi-database-eye-off-outline:before{content:"󱤡"}.mdi-database-eye-outline:before{content:"󱤢"}.mdi-database-import:before{content:"󰥝"}.mdi-database-import-outline:before{content:"󱘭"}.mdi-database-lock:before{content:"󰪪"}.mdi-database-lock-outline:before{content:"󱘮"}.mdi-database-marker:before{content:"󱋶"}.mdi-database-marker-outline:before{content:"󱘯"}.mdi-database-minus:before{content:"󰆻"}.mdi-database-minus-outline:before{content:"󱘰"}.mdi-database-off:before{content:"󱙀"}.mdi-database-off-outline:before{content:"󱘱"}.mdi-database-outline:before{content:"󱘲"}.mdi-database-plus:before{content:"󰆺"}.mdi-database-plus-outline:before{content:"󱘳"}.mdi-database-refresh:before{content:"󰗂"}.mdi-database-refresh-outline:before{content:"󱘴"}.mdi-database-remove:before{content:"󰴀"}.mdi-database-remove-outline:before{content:"󱘵"}.mdi-database-search:before{content:"󰡦"}.mdi-database-search-outline:before{content:"󱘶"}.mdi-database-settings:before{content:"󰴁"}.mdi-database-settings-outline:before{content:"󱘷"}.mdi-database-sync:before{content:"󰳿"}.mdi-database-sync-outline:before{content:"󱘸"}.mdi-death-star:before{content:"󰣘"}.mdi-death-star-variant:before{content:"󰣙"}.mdi-deathly-hallows:before{content:"󰮇"}.mdi-debian:before{content:"󰣚"}.mdi-debug-step-into:before{content:"󰆹"}.mdi-debug-step-out:before{content:"󰆸"}.mdi-debug-step-over:before{content:"󰆷"}.mdi-decagram:before{content:"󰝬"}.mdi-decagram-outline:before{content:"󰝭"}.mdi-decimal:before{content:"󱂡"}.mdi-decimal-comma:before{content:"󱂢"}.mdi-decimal-comma-decrease:before{content:"󱂣"}.mdi-decimal-comma-increase:before{content:"󱂤"}.mdi-decimal-decrease:before{content:"󰆶"}.mdi-decimal-increase:before{content:"󰆵"}.mdi-delete:before{content:"󰆴"}.mdi-delete-alert:before{content:"󱂥"}.mdi-delete-alert-outline:before{content:"󱂦"}.mdi-delete-circle:before{content:"󰚃"}.mdi-delete-circle-outline:before{content:"󰮈"}.mdi-delete-clock:before{content:"󱕖"}.mdi-delete-clock-outline:before{content:"󱕗"}.mdi-delete-empty:before{content:"󰛌"}.mdi-delete-empty-outline:before{content:"󰺝"}.mdi-delete-forever:before{content:"󰗨"}.mdi-delete-forever-outline:before{content:"󰮉"}.mdi-delete-off:before{content:"󱂧"}.mdi-delete-off-outline:before{content:"󱂨"}.mdi-delete-outline:before{content:"󰧧"}.mdi-delete-restore:before{content:"󰠙"}.mdi-delete-sweep:before{content:"󰗩"}.mdi-delete-sweep-outline:before{content:"󰱢"}.mdi-delete-variant:before{content:"󰆳"}.mdi-delta:before{content:"󰇂"}.mdi-desk:before{content:"󱈹"}.mdi-desk-lamp:before{content:"󰥟"}.mdi-desk-lamp-off:before{content:"󱬟"}.mdi-desk-lamp-on:before{content:"󱬠"}.mdi-deskphone:before{content:"󰇃"}.mdi-desktop-classic:before{content:"󰟀"}.mdi-desktop-tower:before{content:"󰇅"}.mdi-desktop-tower-monitor:before{content:"󰪫"}.mdi-details:before{content:"󰇆"}.mdi-dev-to:before{content:"󰵮"}.mdi-developer-board:before{content:"󰚗"}.mdi-deviantart:before{content:"󰇇"}.mdi-devices:before{content:"󰾰"}.mdi-dharmachakra:before{content:"󰥋"}.mdi-diabetes:before{content:"󱄦"}.mdi-dialpad:before{content:"󰘜"}.mdi-diameter:before{content:"󰱣"}.mdi-diameter-outline:before{content:"󰱤"}.mdi-diameter-variant:before{content:"󰱥"}.mdi-diamond:before{content:"󰮊"}.mdi-diamond-outline:before{content:"󰮋"}.mdi-diamond-stone:before{content:"󰇈"}.mdi-dice-1:before{content:"󰇊"}.mdi-dice-1-outline:before{content:"󱅊"}.mdi-dice-2:before{content:"󰇋"}.mdi-dice-2-outline:before{content:"󱅋"}.mdi-dice-3:before{content:"󰇌"}.mdi-dice-3-outline:before{content:"󱅌"}.mdi-dice-4:before{content:"󰇍"}.mdi-dice-4-outline:before{content:"󱅍"}.mdi-dice-5:before{content:"󰇎"}.mdi-dice-5-outline:before{content:"󱅎"}.mdi-dice-6:before{content:"󰇏"}.mdi-dice-6-outline:before{content:"󱅏"}.mdi-dice-d10:before{content:"󱅓"}.mdi-dice-d10-outline:before{content:"󰝯"}.mdi-dice-d12:before{content:"󱅔"}.mdi-dice-d12-outline:before{content:"󰡧"}.mdi-dice-d20:before{content:"󱅕"}.mdi-dice-d20-outline:before{content:"󰗪"}.mdi-dice-d4:before{content:"󱅐"}.mdi-dice-d4-outline:before{content:"󰗫"}.mdi-dice-d6:before{content:"󱅑"}.mdi-dice-d6-outline:before{content:"󰗭"}.mdi-dice-d8:before{content:"󱅒"}.mdi-dice-d8-outline:before{content:"󰗬"}.mdi-dice-multiple:before{content:"󰝮"}.mdi-dice-multiple-outline:before{content:"󱅖"}.mdi-digital-ocean:before{content:"󱈷"}.mdi-dip-switch:before{content:"󰟁"}.mdi-directions:before{content:"󰇐"}.mdi-directions-fork:before{content:"󰙁"}.mdi-disc:before{content:"󰗮"}.mdi-disc-alert:before{content:"󰇑"}.mdi-disc-player:before{content:"󰥠"}.mdi-dishwasher:before{content:"󰪬"}.mdi-dishwasher-alert:before{content:"󱆸"}.mdi-dishwasher-off:before{content:"󱆹"}.mdi-disqus:before{content:"󰇒"}.mdi-distribute-horizontal-center:before{content:"󱇉"}.mdi-distribute-horizontal-left:before{content:"󱇈"}.mdi-distribute-horizontal-right:before{content:"󱇊"}.mdi-distribute-vertical-bottom:before{content:"󱇋"}.mdi-distribute-vertical-center:before{content:"󱇌"}.mdi-distribute-vertical-top:before{content:"󱇍"}.mdi-diversify:before{content:"󱡷"}.mdi-diving:before{content:"󱥷"}.mdi-diving-flippers:before{content:"󰶿"}.mdi-diving-helmet:before{content:"󰷀"}.mdi-diving-scuba:before{content:"󱭷"}.mdi-diving-scuba-flag:before{content:"󰷂"}.mdi-diving-scuba-mask:before{content:"󰷁"}.mdi-diving-scuba-tank:before{content:"󰷃"}.mdi-diving-scuba-tank-multiple:before{content:"󰷄"}.mdi-diving-snorkel:before{content:"󰷅"}.mdi-division:before{content:"󰇔"}.mdi-division-box:before{content:"󰇕"}.mdi-dlna:before{content:"󰩁"}.mdi-dna:before{content:"󰚄"}.mdi-dns:before{content:"󰇖"}.mdi-dns-outline:before{content:"󰮌"}.mdi-dock-bottom:before{content:"󱂩"}.mdi-dock-left:before{content:"󱂪"}.mdi-dock-right:before{content:"󱂫"}.mdi-dock-top:before{content:"󱔓"}.mdi-dock-window:before{content:"󱂬"}.mdi-docker:before{content:"󰡨"}.mdi-doctor:before{content:"󰩂"}.mdi-dog:before{content:"󰩃"}.mdi-dog-service:before{content:"󰪭"}.mdi-dog-side:before{content:"󰩄"}.mdi-dog-side-off:before{content:"󱛮"}.mdi-dolby:before{content:"󰚳"}.mdi-dolly:before{content:"󰺞"}.mdi-dolphin:before{content:"󱢴"}.mdi-domain:before{content:"󰇗"}.mdi-domain-off:before{content:"󰵯"}.mdi-domain-plus:before{content:"󱂭"}.mdi-domain-remove:before{content:"󱂮"}.mdi-domain-switch:before{content:"󱰬"}.mdi-dome-light:before{content:"󱐞"}.mdi-domino-mask:before{content:"󱀣"}.mdi-donkey:before{content:"󰟂"}.mdi-door:before{content:"󰠚"}.mdi-door-closed:before{content:"󰠛"}.mdi-door-closed-cancel:before{content:"󱲓"}.mdi-door-closed-lock:before{content:"󱂯"}.mdi-door-open:before{content:"󰠜"}.mdi-door-sliding:before{content:"󱠞"}.mdi-door-sliding-lock:before{content:"󱠟"}.mdi-door-sliding-open:before{content:"󱠠"}.mdi-doorbell:before{content:"󱋦"}.mdi-doorbell-video:before{content:"󰡩"}.mdi-dot-net:before{content:"󰪮"}.mdi-dots-circle:before{content:"󱥸"}.mdi-dots-grid:before{content:"󱗼"}.mdi-dots-hexagon:before{content:"󱗿"}.mdi-dots-horizontal:before{content:"󰇘"}.mdi-dots-horizontal-circle:before{content:"󰟃"}.mdi-dots-horizontal-circle-outline:before{content:"󰮍"}.mdi-dots-square:before{content:"󱗽"}.mdi-dots-triangle:before{content:"󱗾"}.mdi-dots-vertical:before{content:"󰇙"}.mdi-dots-vertical-circle:before{content:"󰟄"}.mdi-dots-vertical-circle-outline:before{content:"󰮎"}.mdi-download:before{content:"󰇚"}.mdi-download-box:before{content:"󱑢"}.mdi-download-box-outline:before{content:"󱑣"}.mdi-download-circle:before{content:"󱑤"}.mdi-download-circle-outline:before{content:"󱑥"}.mdi-download-lock:before{content:"󱌠"}.mdi-download-lock-outline:before{content:"󱌡"}.mdi-download-multiple:before{content:"󰧩"}.mdi-download-network:before{content:"󰛴"}.mdi-download-network-outline:before{content:"󰱦"}.mdi-download-off:before{content:"󱂰"}.mdi-download-off-outline:before{content:"󱂱"}.mdi-download-outline:before{content:"󰮏"}.mdi-drag:before{content:"󰇛"}.mdi-drag-horizontal:before{content:"󰇜"}.mdi-drag-horizontal-variant:before{content:"󱋰"}.mdi-drag-variant:before{content:"󰮐"}.mdi-drag-vertical:before{content:"󰇝"}.mdi-drag-vertical-variant:before{content:"󱋱"}.mdi-drama-masks:before{content:"󰴂"}.mdi-draw:before{content:"󰽉"}.mdi-draw-pen:before{content:"󱦹"}.mdi-drawing:before{content:"󰇞"}.mdi-drawing-box:before{content:"󰇟"}.mdi-dresser:before{content:"󰽊"}.mdi-dresser-outline:before{content:"󰽋"}.mdi-drone:before{content:"󰇢"}.mdi-dropbox:before{content:"󰇣"}.mdi-drupal:before{content:"󰇤"}.mdi-duck:before{content:"󰇥"}.mdi-dumbbell:before{content:"󰇦"}.mdi-dump-truck:before{content:"󰱧"}.mdi-ear-hearing:before{content:"󰟅"}.mdi-ear-hearing-loop:before{content:"󱫮"}.mdi-ear-hearing-off:before{content:"󰩅"}.mdi-earbuds:before{content:"󱡏"}.mdi-earbuds-off:before{content:"󱡐"}.mdi-earbuds-off-outline:before{content:"󱡑"}.mdi-earbuds-outline:before{content:"󱡒"}.mdi-earth:before{content:"󰇧"}.mdi-earth-arrow-down:before{content:"󱲇"}.mdi-earth-arrow-left:before{content:"󱲈"}.mdi-earth-arrow-right:before{content:"󱌑"}.mdi-earth-arrow-up:before{content:"󱲉"}.mdi-earth-box:before{content:"󰛍"}.mdi-earth-box-minus:before{content:"󱐇"}.mdi-earth-box-off:before{content:"󰛎"}.mdi-earth-box-plus:before{content:"󱐆"}.mdi-earth-box-remove:before{content:"󱐈"}.mdi-earth-minus:before{content:"󱐄"}.mdi-earth-off:before{content:"󰇨"}.mdi-earth-plus:before{content:"󱐃"}.mdi-earth-remove:before{content:"󱐅"}.mdi-egg:before{content:"󰪯"}.mdi-egg-easter:before{content:"󰪰"}.mdi-egg-fried:before{content:"󱡊"}.mdi-egg-off:before{content:"󱏰"}.mdi-egg-off-outline:before{content:"󱏱"}.mdi-egg-outline:before{content:"󱏲"}.mdi-eiffel-tower:before{content:"󱕫"}.mdi-eight-track:before{content:"󰧪"}.mdi-eject:before{content:"󰇪"}.mdi-eject-circle:before{content:"󱬣"}.mdi-eject-circle-outline:before{content:"󱬤"}.mdi-eject-outline:before{content:"󰮑"}.mdi-electric-switch:before{content:"󰺟"}.mdi-electric-switch-closed:before{content:"󱃙"}.mdi-electron-framework:before{content:"󱀤"}.mdi-elephant:before{content:"󰟆"}.mdi-elevation-decline:before{content:"󰇫"}.mdi-elevation-rise:before{content:"󰇬"}.mdi-elevator:before{content:"󰇭"}.mdi-elevator-down:before{content:"󱋂"}.mdi-elevator-passenger:before{content:"󱎁"}.mdi-elevator-passenger-off:before{content:"󱥹"}.mdi-elevator-passenger-off-outline:before{content:"󱥺"}.mdi-elevator-passenger-outline:before{content:"󱥻"}.mdi-elevator-up:before{content:"󱋁"}.mdi-ellipse:before{content:"󰺠"}.mdi-ellipse-outline:before{content:"󰺡"}.mdi-email:before{content:"󰇮"}.mdi-email-alert:before{content:"󰛏"}.mdi-email-alert-outline:before{content:"󰵂"}.mdi-email-arrow-left:before{content:"󱃚"}.mdi-email-arrow-left-outline:before{content:"󱃛"}.mdi-email-arrow-right:before{content:"󱃜"}.mdi-email-arrow-right-outline:before{content:"󱃝"}.mdi-email-box:before{content:"󰴃"}.mdi-email-check:before{content:"󰪱"}.mdi-email-check-outline:before{content:"󰪲"}.mdi-email-edit:before{content:"󰻣"}.mdi-email-edit-outline:before{content:"󰻤"}.mdi-email-fast:before{content:"󱡯"}.mdi-email-fast-outline:before{content:"󱡰"}.mdi-email-heart-outline:before{content:"󱱛"}.mdi-email-lock:before{content:"󰇱"}.mdi-email-lock-outline:before{content:"󱭡"}.mdi-email-mark-as-unread:before{content:"󰮒"}.mdi-email-minus:before{content:"󰻥"}.mdi-email-minus-outline:before{content:"󰻦"}.mdi-email-multiple:before{content:"󰻧"}.mdi-email-multiple-outline:before{content:"󰻨"}.mdi-email-newsletter:before{content:"󰾱"}.mdi-email-off:before{content:"󱏣"}.mdi-email-off-outline:before{content:"󱏤"}.mdi-email-open:before{content:"󰇯"}.mdi-email-open-heart-outline:before{content:"󱱜"}.mdi-email-open-multiple:before{content:"󰻩"}.mdi-email-open-multiple-outline:before{content:"󰻪"}.mdi-email-open-outline:before{content:"󰗯"}.mdi-email-outline:before{content:"󰇰"}.mdi-email-plus:before{content:"󰧫"}.mdi-email-plus-outline:before{content:"󰧬"}.mdi-email-remove:before{content:"󱙡"}.mdi-email-remove-outline:before{content:"󱙢"}.mdi-email-seal:before{content:"󱥛"}.mdi-email-seal-outline:before{content:"󱥜"}.mdi-email-search:before{content:"󰥡"}.mdi-email-search-outline:before{content:"󰥢"}.mdi-email-sync:before{content:"󱋇"}.mdi-email-sync-outline:before{content:"󱋈"}.mdi-email-variant:before{content:"󰗰"}.mdi-ember:before{content:"󰬰"}.mdi-emby:before{content:"󰚴"}.mdi-emoticon:before{content:"󰱨"}.mdi-emoticon-angry:before{content:"󰱩"}.mdi-emoticon-angry-outline:before{content:"󰱪"}.mdi-emoticon-confused:before{content:"󱃞"}.mdi-emoticon-confused-outline:before{content:"󱃟"}.mdi-emoticon-cool:before{content:"󰱫"}.mdi-emoticon-cool-outline:before{content:"󰇳"}.mdi-emoticon-cry:before{content:"󰱬"}.mdi-emoticon-cry-outline:before{content:"󰱭"}.mdi-emoticon-dead:before{content:"󰱮"}.mdi-emoticon-dead-outline:before{content:"󰚛"}.mdi-emoticon-devil:before{content:"󰱯"}.mdi-emoticon-devil-outline:before{content:"󰇴"}.mdi-emoticon-excited:before{content:"󰱰"}.mdi-emoticon-excited-outline:before{content:"󰚜"}.mdi-emoticon-frown:before{content:"󰽌"}.mdi-emoticon-frown-outline:before{content:"󰽍"}.mdi-emoticon-happy:before{content:"󰱱"}.mdi-emoticon-happy-outline:before{content:"󰇵"}.mdi-emoticon-kiss:before{content:"󰱲"}.mdi-emoticon-kiss-outline:before{content:"󰱳"}.mdi-emoticon-lol:before{content:"󱈔"}.mdi-emoticon-lol-outline:before{content:"󱈕"}.mdi-emoticon-minus:before{content:"󱲲"}.mdi-emoticon-minus-outline:before{content:"󱲳"}.mdi-emoticon-neutral:before{content:"󰱴"}.mdi-emoticon-neutral-outline:before{content:"󰇶"}.mdi-emoticon-outline:before{content:"󰇲"}.mdi-emoticon-plus:before{content:"󱲴"}.mdi-emoticon-plus-outline:before{content:"󱲵"}.mdi-emoticon-poop:before{content:"󰇷"}.mdi-emoticon-poop-outline:before{content:"󰱵"}.mdi-emoticon-remove:before{content:"󱲶"}.mdi-emoticon-remove-outline:before{content:"󱲷"}.mdi-emoticon-sad:before{content:"󰱶"}.mdi-emoticon-sad-outline:before{content:"󰇸"}.mdi-emoticon-sick:before{content:"󱕼"}.mdi-emoticon-sick-outline:before{content:"󱕽"}.mdi-emoticon-tongue:before{content:"󰇹"}.mdi-emoticon-tongue-outline:before{content:"󰱷"}.mdi-emoticon-wink:before{content:"󰱸"}.mdi-emoticon-wink-outline:before{content:"󰱹"}.mdi-engine:before{content:"󰇺"}.mdi-engine-off:before{content:"󰩆"}.mdi-engine-off-outline:before{content:"󰩇"}.mdi-engine-outline:before{content:"󰇻"}.mdi-epsilon:before{content:"󱃠"}.mdi-equal:before{content:"󰇼"}.mdi-equal-box:before{content:"󰇽"}.mdi-equalizer:before{content:"󰺢"}.mdi-equalizer-outline:before{content:"󰺣"}.mdi-eraser:before{content:"󰇾"}.mdi-eraser-variant:before{content:"󰙂"}.mdi-escalator:before{content:"󰇿"}.mdi-escalator-box:before{content:"󱎙"}.mdi-escalator-down:before{content:"󱋀"}.mdi-escalator-up:before{content:"󱊿"}.mdi-eslint:before{content:"󰱺"}.mdi-et:before{content:"󰪳"}.mdi-ethereum:before{content:"󰡪"}.mdi-ethernet:before{content:"󰈀"}.mdi-ethernet-cable:before{content:"󰈁"}.mdi-ethernet-cable-off:before{content:"󰈂"}.mdi-ev-plug-ccs1:before{content:"󱔙"}.mdi-ev-plug-ccs2:before{content:"󱔚"}.mdi-ev-plug-chademo:before{content:"󱔛"}.mdi-ev-plug-tesla:before{content:"󱔜"}.mdi-ev-plug-type1:before{content:"󱔝"}.mdi-ev-plug-type2:before{content:"󱔞"}.mdi-ev-station:before{content:"󰗱"}.mdi-evernote:before{content:"󰈄"}.mdi-excavator:before{content:"󱀥"}.mdi-exclamation:before{content:"󰈅"}.mdi-exclamation-thick:before{content:"󱈸"}.mdi-exit-run:before{content:"󰩈"}.mdi-exit-to-app:before{content:"󰈆"}.mdi-expand-all:before{content:"󰪴"}.mdi-expand-all-outline:before{content:"󰪵"}.mdi-expansion-card:before{content:"󰢮"}.mdi-expansion-card-variant:before{content:"󰾲"}.mdi-exponent:before{content:"󰥣"}.mdi-exponent-box:before{content:"󰥤"}.mdi-export:before{content:"󰈇"}.mdi-export-variant:before{content:"󰮓"}.mdi-eye:before{content:"󰈈"}.mdi-eye-arrow-left:before{content:"󱣽"}.mdi-eye-arrow-left-outline:before{content:"󱣾"}.mdi-eye-arrow-right:before{content:"󱣿"}.mdi-eye-arrow-right-outline:before{content:"󱤀"}.mdi-eye-check:before{content:"󰴄"}.mdi-eye-check-outline:before{content:"󰴅"}.mdi-eye-circle:before{content:"󰮔"}.mdi-eye-circle-outline:before{content:"󰮕"}.mdi-eye-closed:before{content:"󱲣"}.mdi-eye-lock:before{content:"󱰆"}.mdi-eye-lock-open:before{content:"󱰇"}.mdi-eye-lock-open-outline:before{content:"󱰈"}.mdi-eye-lock-outline:before{content:"󱰉"}.mdi-eye-minus:before{content:"󱀦"}.mdi-eye-minus-outline:before{content:"󱀧"}.mdi-eye-off:before{content:"󰈉"}.mdi-eye-off-outline:before{content:"󰛑"}.mdi-eye-outline:before{content:"󰛐"}.mdi-eye-plus:before{content:"󰡫"}.mdi-eye-plus-outline:before{content:"󰡬"}.mdi-eye-refresh:before{content:"󱥼"}.mdi-eye-refresh-outline:before{content:"󱥽"}.mdi-eye-remove:before{content:"󱗣"}.mdi-eye-remove-outline:before{content:"󱗤"}.mdi-eye-settings:before{content:"󰡭"}.mdi-eye-settings-outline:before{content:"󰡮"}.mdi-eyedropper:before{content:"󰈊"}.mdi-eyedropper-minus:before{content:"󱏝"}.mdi-eyedropper-off:before{content:"󱏟"}.mdi-eyedropper-plus:before{content:"󱏜"}.mdi-eyedropper-remove:before{content:"󱏞"}.mdi-eyedropper-variant:before{content:"󰈋"}.mdi-face-agent:before{content:"󰵰"}.mdi-face-man:before{content:"󰙃"}.mdi-face-man-outline:before{content:"󰮖"}.mdi-face-man-profile:before{content:"󰙄"}.mdi-face-man-shimmer:before{content:"󱗌"}.mdi-face-man-shimmer-outline:before{content:"󱗍"}.mdi-face-mask:before{content:"󱖆"}.mdi-face-mask-outline:before{content:"󱖇"}.mdi-face-recognition:before{content:"󰱻"}.mdi-face-woman:before{content:"󱁷"}.mdi-face-woman-outline:before{content:"󱁸"}.mdi-face-woman-profile:before{content:"󱁶"}.mdi-face-woman-shimmer:before{content:"󱗎"}.mdi-face-woman-shimmer-outline:before{content:"󱗏"}.mdi-facebook:before{content:"󰈌"}.mdi-facebook-gaming:before{content:"󰟝"}.mdi-facebook-messenger:before{content:"󰈎"}.mdi-facebook-workplace:before{content:"󰬱"}.mdi-factory:before{content:"󰈏"}.mdi-family-tree:before{content:"󱘎"}.mdi-fan:before{content:"󰈐"}.mdi-fan-alert:before{content:"󱑬"}.mdi-fan-auto:before{content:"󱜝"}.mdi-fan-chevron-down:before{content:"󱑭"}.mdi-fan-chevron-up:before{content:"󱑮"}.mdi-fan-clock:before{content:"󱨺"}.mdi-fan-minus:before{content:"󱑰"}.mdi-fan-off:before{content:"󰠝"}.mdi-fan-plus:before{content:"󱑯"}.mdi-fan-remove:before{content:"󱑱"}.mdi-fan-speed-1:before{content:"󱑲"}.mdi-fan-speed-2:before{content:"󱑳"}.mdi-fan-speed-3:before{content:"󱑴"}.mdi-fast-forward:before{content:"󰈑"}.mdi-fast-forward-10:before{content:"󰵱"}.mdi-fast-forward-15:before{content:"󱤺"}.mdi-fast-forward-30:before{content:"󰴆"}.mdi-fast-forward-45:before{content:"󱬒"}.mdi-fast-forward-5:before{content:"󱇸"}.mdi-fast-forward-60:before{content:"󱘋"}.mdi-fast-forward-outline:before{content:"󰛒"}.mdi-faucet:before{content:"󱬩"}.mdi-faucet-variant:before{content:"󱬪"}.mdi-fax:before{content:"󰈒"}.mdi-feather:before{content:"󰛓"}.mdi-feature-search:before{content:"󰩉"}.mdi-feature-search-outline:before{content:"󰩊"}.mdi-fedora:before{content:"󰣛"}.mdi-fence:before{content:"󱞚"}.mdi-fence-electric:before{content:"󱟶"}.mdi-fencing:before{content:"󱓁"}.mdi-ferris-wheel:before{content:"󰺤"}.mdi-ferry:before{content:"󰈓"}.mdi-file:before{content:"󰈔"}.mdi-file-account:before{content:"󰜻"}.mdi-file-account-outline:before{content:"󱀨"}.mdi-file-alert:before{content:"󰩋"}.mdi-file-alert-outline:before{content:"󰩌"}.mdi-file-arrow-left-right:before{content:"󱪓"}.mdi-file-arrow-left-right-outline:before{content:"󱪔"}.mdi-file-arrow-up-down:before{content:"󱪕"}.mdi-file-arrow-up-down-outline:before{content:"󱪖"}.mdi-file-cabinet:before{content:"󰪶"}.mdi-file-cad:before{content:"󰻫"}.mdi-file-cad-box:before{content:"󰻬"}.mdi-file-cancel:before{content:"󰷆"}.mdi-file-cancel-outline:before{content:"󰷇"}.mdi-file-certificate:before{content:"󱆆"}.mdi-file-certificate-outline:before{content:"󱆇"}.mdi-file-chart:before{content:"󰈕"}.mdi-file-chart-check:before{content:"󱧆"}.mdi-file-chart-check-outline:before{content:"󱧇"}.mdi-file-chart-outline:before{content:"󱀩"}.mdi-file-check:before{content:"󰈖"}.mdi-file-check-outline:before{content:"󰸩"}.mdi-file-clock:before{content:"󱋡"}.mdi-file-clock-outline:before{content:"󱋢"}.mdi-file-cloud:before{content:"󰈗"}.mdi-file-cloud-outline:before{content:"󱀪"}.mdi-file-code:before{content:"󰈮"}.mdi-file-code-outline:before{content:"󱀫"}.mdi-file-cog:before{content:"󱁻"}.mdi-file-cog-outline:before{content:"󱁼"}.mdi-file-compare:before{content:"󰢪"}.mdi-file-delimited:before{content:"󰈘"}.mdi-file-delimited-outline:before{content:"󰺥"}.mdi-file-document:before{content:"󰈙"}.mdi-file-document-alert:before{content:"󱪗"}.mdi-file-document-alert-outline:before{content:"󱪘"}.mdi-file-document-arrow-right:before{content:"󱰏"}.mdi-file-document-arrow-right-outline:before{content:"󱰐"}.mdi-file-document-check:before{content:"󱪙"}.mdi-file-document-check-outline:before{content:"󱪚"}.mdi-file-document-edit:before{content:"󰷈"}.mdi-file-document-edit-outline:before{content:"󰷉"}.mdi-file-document-minus:before{content:"󱪛"}.mdi-file-document-minus-outline:before{content:"󱪜"}.mdi-file-document-multiple:before{content:"󱔗"}.mdi-file-document-multiple-outline:before{content:"󱔘"}.mdi-file-document-outline:before{content:"󰧮"}.mdi-file-document-plus:before{content:"󱪝"}.mdi-file-document-plus-outline:before{content:"󱪞"}.mdi-file-document-refresh:before{content:"󱱺"}.mdi-file-document-refresh-outline:before{content:"󱱻"}.mdi-file-document-remove:before{content:"󱪟"}.mdi-file-document-remove-outline:before{content:"󱪠"}.mdi-file-download:before{content:"󰥥"}.mdi-file-download-outline:before{content:"󰥦"}.mdi-file-edit:before{content:"󱇧"}.mdi-file-edit-outline:before{content:"󱇨"}.mdi-file-excel:before{content:"󰈛"}.mdi-file-excel-box:before{content:"󰈜"}.mdi-file-excel-box-outline:before{content:"󱀬"}.mdi-file-excel-outline:before{content:"󱀭"}.mdi-file-export:before{content:"󰈝"}.mdi-file-export-outline:before{content:"󱀮"}.mdi-file-eye:before{content:"󰷊"}.mdi-file-eye-outline:before{content:"󰷋"}.mdi-file-find:before{content:"󰈞"}.mdi-file-find-outline:before{content:"󰮗"}.mdi-file-gif-box:before{content:"󰵸"}.mdi-file-hidden:before{content:"󰘓"}.mdi-file-image:before{content:"󰈟"}.mdi-file-image-marker:before{content:"󱝲"}.mdi-file-image-marker-outline:before{content:"󱝳"}.mdi-file-image-minus:before{content:"󱤻"}.mdi-file-image-minus-outline:before{content:"󱤼"}.mdi-file-image-outline:before{content:"󰺰"}.mdi-file-image-plus:before{content:"󱤽"}.mdi-file-image-plus-outline:before{content:"󱤾"}.mdi-file-image-remove:before{content:"󱤿"}.mdi-file-image-remove-outline:before{content:"󱥀"}.mdi-file-import:before{content:"󰈠"}.mdi-file-import-outline:before{content:"󱀯"}.mdi-file-jpg-box:before{content:"󰈥"}.mdi-file-key:before{content:"󱆄"}.mdi-file-key-outline:before{content:"󱆅"}.mdi-file-link:before{content:"󱅷"}.mdi-file-link-outline:before{content:"󱅸"}.mdi-file-lock:before{content:"󰈡"}.mdi-file-lock-open:before{content:"󱧈"}.mdi-file-lock-open-outline:before{content:"󱧉"}.mdi-file-lock-outline:before{content:"󱀰"}.mdi-file-marker:before{content:"󱝴"}.mdi-file-marker-outline:before{content:"󱝵"}.mdi-file-minus:before{content:"󱪡"}.mdi-file-minus-outline:before{content:"󱪢"}.mdi-file-move:before{content:"󰪹"}.mdi-file-move-outline:before{content:"󱀱"}.mdi-file-multiple:before{content:"󰈢"}.mdi-file-multiple-outline:before{content:"󱀲"}.mdi-file-music:before{content:"󰈣"}.mdi-file-music-outline:before{content:"󰸪"}.mdi-file-outline:before{content:"󰈤"}.mdi-file-pdf-box:before{content:"󰈦"}.mdi-file-percent:before{content:"󰠞"}.mdi-file-percent-outline:before{content:"󱀳"}.mdi-file-phone:before{content:"󱅹"}.mdi-file-phone-outline:before{content:"󱅺"}.mdi-file-plus:before{content:"󰝒"}.mdi-file-plus-outline:before{content:"󰻭"}.mdi-file-png-box:before{content:"󰸭"}.mdi-file-powerpoint:before{content:"󰈧"}.mdi-file-powerpoint-box:before{content:"󰈨"}.mdi-file-powerpoint-box-outline:before{content:"󱀴"}.mdi-file-powerpoint-outline:before{content:"󱀵"}.mdi-file-presentation-box:before{content:"󰈩"}.mdi-file-question:before{content:"󰡯"}.mdi-file-question-outline:before{content:"󱀶"}.mdi-file-refresh:before{content:"󰤘"}.mdi-file-refresh-outline:before{content:"󰕁"}.mdi-file-remove:before{content:"󰮘"}.mdi-file-remove-outline:before{content:"󱀷"}.mdi-file-replace:before{content:"󰬲"}.mdi-file-replace-outline:before{content:"󰬳"}.mdi-file-restore:before{content:"󰙰"}.mdi-file-restore-outline:before{content:"󱀸"}.mdi-file-rotate-left:before{content:"󱨻"}.mdi-file-rotate-left-outline:before{content:"󱨼"}.mdi-file-rotate-right:before{content:"󱨽"}.mdi-file-rotate-right-outline:before{content:"󱨾"}.mdi-file-search:before{content:"󰱼"}.mdi-file-search-outline:before{content:"󰱽"}.mdi-file-send:before{content:"󰈪"}.mdi-file-send-outline:before{content:"󱀹"}.mdi-file-settings:before{content:"󱁹"}.mdi-file-settings-outline:before{content:"󱁺"}.mdi-file-sign:before{content:"󱧃"}.mdi-file-star:before{content:"󱀺"}.mdi-file-star-four-points:before{content:"󱰭"}.mdi-file-star-four-points-outline:before{content:"󱰮"}.mdi-file-star-outline:before{content:"󱀻"}.mdi-file-swap:before{content:"󰾴"}.mdi-file-swap-outline:before{content:"󰾵"}.mdi-file-sync:before{content:"󱈖"}.mdi-file-sync-outline:before{content:"󱈗"}.mdi-file-table:before{content:"󰱾"}.mdi-file-table-box:before{content:"󱃡"}.mdi-file-table-box-multiple:before{content:"󱃢"}.mdi-file-table-box-multiple-outline:before{content:"󱃣"}.mdi-file-table-box-outline:before{content:"󱃤"}.mdi-file-table-outline:before{content:"󰱿"}.mdi-file-tree:before{content:"󰙅"}.mdi-file-tree-outline:before{content:"󱏒"}.mdi-file-undo:before{content:"󰣜"}.mdi-file-undo-outline:before{content:"󱀼"}.mdi-file-upload:before{content:"󰩍"}.mdi-file-upload-outline:before{content:"󰩎"}.mdi-file-video:before{content:"󰈫"}.mdi-file-video-outline:before{content:"󰸬"}.mdi-file-word:before{content:"󰈬"}.mdi-file-word-box:before{content:"󰈭"}.mdi-file-word-box-outline:before{content:"󱀽"}.mdi-file-word-outline:before{content:"󱀾"}.mdi-file-xml-box:before{content:"󱭋"}.mdi-film:before{content:"󰈯"}.mdi-filmstrip:before{content:"󰈰"}.mdi-filmstrip-box:before{content:"󰌲"}.mdi-filmstrip-box-multiple:before{content:"󰴘"}.mdi-filmstrip-off:before{content:"󰈱"}.mdi-filter:before{content:"󰈲"}.mdi-filter-check:before{content:"󱣬"}.mdi-filter-check-outline:before{content:"󱣭"}.mdi-filter-cog:before{content:"󱪣"}.mdi-filter-cog-outline:before{content:"󱪤"}.mdi-filter-menu:before{content:"󱃥"}.mdi-filter-menu-outline:before{content:"󱃦"}.mdi-filter-minus:before{content:"󰻮"}.mdi-filter-minus-outline:before{content:"󰻯"}.mdi-filter-multiple:before{content:"󱨿"}.mdi-filter-multiple-outline:before{content:"󱩀"}.mdi-filter-off:before{content:"󱓯"}.mdi-filter-off-outline:before{content:"󱓰"}.mdi-filter-outline:before{content:"󰈳"}.mdi-filter-plus:before{content:"󰻰"}.mdi-filter-plus-outline:before{content:"󰻱"}.mdi-filter-remove:before{content:"󰈴"}.mdi-filter-remove-outline:before{content:"󰈵"}.mdi-filter-settings:before{content:"󱪥"}.mdi-filter-settings-outline:before{content:"󱪦"}.mdi-filter-variant:before{content:"󰈶"}.mdi-filter-variant-minus:before{content:"󱄒"}.mdi-filter-variant-plus:before{content:"󱄓"}.mdi-filter-variant-remove:before{content:"󱀿"}.mdi-finance:before{content:"󰠟"}.mdi-find-replace:before{content:"󰛔"}.mdi-fingerprint:before{content:"󰈷"}.mdi-fingerprint-off:before{content:"󰺱"}.mdi-fire:before{content:"󰈸"}.mdi-fire-alert:before{content:"󱗗"}.mdi-fire-circle:before{content:"󱠇"}.mdi-fire-extinguisher:before{content:"󰻲"}.mdi-fire-hydrant:before{content:"󱄷"}.mdi-fire-hydrant-alert:before{content:"󱄸"}.mdi-fire-hydrant-off:before{content:"󱄹"}.mdi-fire-off:before{content:"󱜢"}.mdi-fire-station:before{content:"󱳃"}.mdi-fire-truck:before{content:"󰢫"}.mdi-firebase:before{content:"󰥧"}.mdi-firefox:before{content:"󰈹"}.mdi-fireplace:before{content:"󰸮"}.mdi-fireplace-off:before{content:"󰸯"}.mdi-firewire:before{content:"󰖾"}.mdi-firework:before{content:"󰸰"}.mdi-firework-off:before{content:"󱜣"}.mdi-fish:before{content:"󰈺"}.mdi-fish-off:before{content:"󱏳"}.mdi-fishbowl:before{content:"󰻳"}.mdi-fishbowl-outline:before{content:"󰻴"}.mdi-fit-to-page:before{content:"󰻵"}.mdi-fit-to-page-outline:before{content:"󰻶"}.mdi-fit-to-screen:before{content:"󱣴"}.mdi-fit-to-screen-outline:before{content:"󱣵"}.mdi-flag:before{content:"󰈻"}.mdi-flag-checkered:before{content:"󰈼"}.mdi-flag-minus:before{content:"󰮙"}.mdi-flag-minus-outline:before{content:"󱂲"}.mdi-flag-off:before{content:"󱣮"}.mdi-flag-off-outline:before{content:"󱣯"}.mdi-flag-outline:before{content:"󰈽"}.mdi-flag-plus:before{content:"󰮚"}.mdi-flag-plus-outline:before{content:"󱂳"}.mdi-flag-remove:before{content:"󰮛"}.mdi-flag-remove-outline:before{content:"󱂴"}.mdi-flag-triangle:before{content:"󰈿"}.mdi-flag-variant:before{content:"󰉀"}.mdi-flag-variant-minus:before{content:"󱮴"}.mdi-flag-variant-minus-outline:before{content:"󱮵"}.mdi-flag-variant-off:before{content:"󱮰"}.mdi-flag-variant-off-outline:before{content:"󱮱"}.mdi-flag-variant-outline:before{content:"󰈾"}.mdi-flag-variant-plus:before{content:"󱮲"}.mdi-flag-variant-plus-outline:before{content:"󱮳"}.mdi-flag-variant-remove:before{content:"󱮶"}.mdi-flag-variant-remove-outline:before{content:"󱮷"}.mdi-flare:before{content:"󰵲"}.mdi-flash:before{content:"󰉁"}.mdi-flash-alert:before{content:"󰻷"}.mdi-flash-alert-outline:before{content:"󰻸"}.mdi-flash-auto:before{content:"󰉂"}.mdi-flash-off:before{content:"󰉃"}.mdi-flash-off-outline:before{content:"󱭅"}.mdi-flash-outline:before{content:"󰛕"}.mdi-flash-red-eye:before{content:"󰙻"}.mdi-flash-triangle:before{content:"󱬝"}.mdi-flash-triangle-outline:before{content:"󱬞"}.mdi-flashlight:before{content:"󰉄"}.mdi-flashlight-off:before{content:"󰉅"}.mdi-flask:before{content:"󰂓"}.mdi-flask-empty:before{content:"󰂔"}.mdi-flask-empty-minus:before{content:"󱈺"}.mdi-flask-empty-minus-outline:before{content:"󱈻"}.mdi-flask-empty-off:before{content:"󱏴"}.mdi-flask-empty-off-outline:before{content:"󱏵"}.mdi-flask-empty-outline:before{content:"󰂕"}.mdi-flask-empty-plus:before{content:"󱈼"}.mdi-flask-empty-plus-outline:before{content:"󱈽"}.mdi-flask-empty-remove:before{content:"󱈾"}.mdi-flask-empty-remove-outline:before{content:"󱈿"}.mdi-flask-minus:before{content:"󱉀"}.mdi-flask-minus-outline:before{content:"󱉁"}.mdi-flask-off:before{content:"󱏶"}.mdi-flask-off-outline:before{content:"󱏷"}.mdi-flask-outline:before{content:"󰂖"}.mdi-flask-plus:before{content:"󱉂"}.mdi-flask-plus-outline:before{content:"󱉃"}.mdi-flask-remove:before{content:"󱉄"}.mdi-flask-remove-outline:before{content:"󱉅"}.mdi-flask-round-bottom:before{content:"󱉋"}.mdi-flask-round-bottom-empty:before{content:"󱉌"}.mdi-flask-round-bottom-empty-outline:before{content:"󱉍"}.mdi-flask-round-bottom-outline:before{content:"󱉎"}.mdi-fleur-de-lis:before{content:"󱌃"}.mdi-flip-horizontal:before{content:"󱃧"}.mdi-flip-to-back:before{content:"󰉇"}.mdi-flip-to-front:before{content:"󰉈"}.mdi-flip-vertical:before{content:"󱃨"}.mdi-floor-lamp:before{content:"󰣝"}.mdi-floor-lamp-dual:before{content:"󱁀"}.mdi-floor-lamp-dual-outline:before{content:"󱟎"}.mdi-floor-lamp-outline:before{content:"󱟈"}.mdi-floor-lamp-torchiere:before{content:"󱝇"}.mdi-floor-lamp-torchiere-outline:before{content:"󱟖"}.mdi-floor-lamp-torchiere-variant:before{content:"󱁁"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"󱟏"}.mdi-floor-plan:before{content:"󰠡"}.mdi-floppy:before{content:"󰉉"}.mdi-floppy-variant:before{content:"󰧯"}.mdi-flower:before{content:"󰉊"}.mdi-flower-outline:before{content:"󰧰"}.mdi-flower-pollen:before{content:"󱢅"}.mdi-flower-pollen-outline:before{content:"󱢆"}.mdi-flower-poppy:before{content:"󰴈"}.mdi-flower-tulip:before{content:"󰧱"}.mdi-flower-tulip-outline:before{content:"󰧲"}.mdi-focus-auto:before{content:"󰽎"}.mdi-focus-field:before{content:"󰽏"}.mdi-focus-field-horizontal:before{content:"󰽐"}.mdi-focus-field-vertical:before{content:"󰽑"}.mdi-folder:before{content:"󰉋"}.mdi-folder-account:before{content:"󰉌"}.mdi-folder-account-outline:before{content:"󰮜"}.mdi-folder-alert:before{content:"󰷌"}.mdi-folder-alert-outline:before{content:"󰷍"}.mdi-folder-arrow-down:before{content:"󱧨"}.mdi-folder-arrow-down-outline:before{content:"󱧩"}.mdi-folder-arrow-left:before{content:"󱧪"}.mdi-folder-arrow-left-outline:before{content:"󱧫"}.mdi-folder-arrow-left-right:before{content:"󱧬"}.mdi-folder-arrow-left-right-outline:before{content:"󱧭"}.mdi-folder-arrow-right:before{content:"󱧮"}.mdi-folder-arrow-right-outline:before{content:"󱧯"}.mdi-folder-arrow-up:before{content:"󱧰"}.mdi-folder-arrow-up-down:before{content:"󱧱"}.mdi-folder-arrow-up-down-outline:before{content:"󱧲"}.mdi-folder-arrow-up-outline:before{content:"󱧳"}.mdi-folder-cancel:before{content:"󱧴"}.mdi-folder-cancel-outline:before{content:"󱧵"}.mdi-folder-check:before{content:"󱥾"}.mdi-folder-check-outline:before{content:"󱥿"}.mdi-folder-clock:before{content:"󰪺"}.mdi-folder-clock-outline:before{content:"󰪻"}.mdi-folder-cog:before{content:"󱁿"}.mdi-folder-cog-outline:before{content:"󱂀"}.mdi-folder-download:before{content:"󰉍"}.mdi-folder-download-outline:before{content:"󱃩"}.mdi-folder-edit:before{content:"󰣞"}.mdi-folder-edit-outline:before{content:"󰷎"}.mdi-folder-eye:before{content:"󱞊"}.mdi-folder-eye-outline:before{content:"󱞋"}.mdi-folder-file:before{content:"󱧶"}.mdi-folder-file-outline:before{content:"󱧷"}.mdi-folder-google-drive:before{content:"󰉎"}.mdi-folder-heart:before{content:"󱃪"}.mdi-folder-heart-outline:before{content:"󱃫"}.mdi-folder-hidden:before{content:"󱞞"}.mdi-folder-home:before{content:"󱂵"}.mdi-folder-home-outline:before{content:"󱂶"}.mdi-folder-image:before{content:"󰉏"}.mdi-folder-information:before{content:"󱂷"}.mdi-folder-information-outline:before{content:"󱂸"}.mdi-folder-key:before{content:"󰢬"}.mdi-folder-key-network:before{content:"󰢭"}.mdi-folder-key-network-outline:before{content:"󰲀"}.mdi-folder-key-outline:before{content:"󱃬"}.mdi-folder-lock:before{content:"󰉐"}.mdi-folder-lock-open:before{content:"󰉑"}.mdi-folder-lock-open-outline:before{content:"󱪧"}.mdi-folder-lock-outline:before{content:"󱪨"}.mdi-folder-marker:before{content:"󱉭"}.mdi-folder-marker-outline:before{content:"󱉮"}.mdi-folder-minus:before{content:"󱭉"}.mdi-folder-minus-outline:before{content:"󱭊"}.mdi-folder-move:before{content:"󰉒"}.mdi-folder-move-outline:before{content:"󱉆"}.mdi-folder-multiple:before{content:"󰉓"}.mdi-folder-multiple-image:before{content:"󰉔"}.mdi-folder-multiple-outline:before{content:"󰉕"}.mdi-folder-multiple-plus:before{content:"󱑾"}.mdi-folder-multiple-plus-outline:before{content:"󱑿"}.mdi-folder-music:before{content:"󱍙"}.mdi-folder-music-outline:before{content:"󱍚"}.mdi-folder-network:before{content:"󰡰"}.mdi-folder-network-outline:before{content:"󰲁"}.mdi-folder-off:before{content:"󱧸"}.mdi-folder-off-outline:before{content:"󱧹"}.mdi-folder-open:before{content:"󰝰"}.mdi-folder-open-outline:before{content:"󰷏"}.mdi-folder-outline:before{content:"󰉖"}.mdi-folder-play:before{content:"󱧺"}.mdi-folder-play-outline:before{content:"󱧻"}.mdi-folder-plus:before{content:"󰉗"}.mdi-folder-plus-outline:before{content:"󰮝"}.mdi-folder-pound:before{content:"󰴉"}.mdi-folder-pound-outline:before{content:"󰴊"}.mdi-folder-question:before{content:"󱧊"}.mdi-folder-question-outline:before{content:"󱧋"}.mdi-folder-refresh:before{content:"󰝉"}.mdi-folder-refresh-outline:before{content:"󰕂"}.mdi-folder-remove:before{content:"󰉘"}.mdi-folder-remove-outline:before{content:"󰮞"}.mdi-folder-search:before{content:"󰥨"}.mdi-folder-search-outline:before{content:"󰥩"}.mdi-folder-settings:before{content:"󱁽"}.mdi-folder-settings-outline:before{content:"󱁾"}.mdi-folder-star:before{content:"󰚝"}.mdi-folder-star-multiple:before{content:"󱏓"}.mdi-folder-star-multiple-outline:before{content:"󱏔"}.mdi-folder-star-outline:before{content:"󰮟"}.mdi-folder-swap:before{content:"󰾶"}.mdi-folder-swap-outline:before{content:"󰾷"}.mdi-folder-sync:before{content:"󰴋"}.mdi-folder-sync-outline:before{content:"󰴌"}.mdi-folder-table:before{content:"󱋣"}.mdi-folder-table-outline:before{content:"󱋤"}.mdi-folder-text:before{content:"󰲂"}.mdi-folder-text-outline:before{content:"󰲃"}.mdi-folder-upload:before{content:"󰉙"}.mdi-folder-upload-outline:before{content:"󱃭"}.mdi-folder-wrench:before{content:"󱧼"}.mdi-folder-wrench-outline:before{content:"󱧽"}.mdi-folder-zip:before{content:"󰛫"}.mdi-folder-zip-outline:before{content:"󰞹"}.mdi-font-awesome:before{content:"󰀺"}.mdi-food:before{content:"󰉚"}.mdi-food-apple:before{content:"󰉛"}.mdi-food-apple-outline:before{content:"󰲄"}.mdi-food-croissant:before{content:"󰟈"}.mdi-food-drumstick:before{content:"󱐟"}.mdi-food-drumstick-off:before{content:"󱑨"}.mdi-food-drumstick-off-outline:before{content:"󱑩"}.mdi-food-drumstick-outline:before{content:"󱐠"}.mdi-food-fork-drink:before{content:"󰗲"}.mdi-food-halal:before{content:"󱕲"}.mdi-food-hot-dog:before{content:"󱡋"}.mdi-food-kosher:before{content:"󱕳"}.mdi-food-off:before{content:"󰗳"}.mdi-food-off-outline:before{content:"󱤕"}.mdi-food-outline:before{content:"󱤖"}.mdi-food-steak:before{content:"󱑪"}.mdi-food-steak-off:before{content:"󱑫"}.mdi-food-takeout-box:before{content:"󱠶"}.mdi-food-takeout-box-outline:before{content:"󱠷"}.mdi-food-turkey:before{content:"󱜜"}.mdi-food-variant:before{content:"󰉜"}.mdi-food-variant-off:before{content:"󱏥"}.mdi-foot-print:before{content:"󰽒"}.mdi-football:before{content:"󰉝"}.mdi-football-australian:before{content:"󰉞"}.mdi-football-helmet:before{content:"󰉟"}.mdi-forest:before{content:"󱢗"}.mdi-forest-outline:before{content:"󱱣"}.mdi-forklift:before{content:"󰟉"}.mdi-form-dropdown:before{content:"󱐀"}.mdi-form-select:before{content:"󱐁"}.mdi-form-textarea:before{content:"󱂕"}.mdi-form-textbox:before{content:"󰘎"}.mdi-form-textbox-lock:before{content:"󱍝"}.mdi-form-textbox-password:before{content:"󰟵"}.mdi-format-align-bottom:before{content:"󰝓"}.mdi-format-align-center:before{content:"󰉠"}.mdi-format-align-justify:before{content:"󰉡"}.mdi-format-align-left:before{content:"󰉢"}.mdi-format-align-middle:before{content:"󰝔"}.mdi-format-align-right:before{content:"󰉣"}.mdi-format-align-top:before{content:"󰝕"}.mdi-format-annotation-minus:before{content:"󰪼"}.mdi-format-annotation-plus:before{content:"󰙆"}.mdi-format-bold:before{content:"󰉤"}.mdi-format-clear:before{content:"󰉥"}.mdi-format-color-fill:before{content:"󰉦"}.mdi-format-color-highlight:before{content:"󰸱"}.mdi-format-color-marker-cancel:before{content:"󱌓"}.mdi-format-color-text:before{content:"󰚞"}.mdi-format-columns:before{content:"󰣟"}.mdi-format-float-center:before{content:"󰉧"}.mdi-format-float-left:before{content:"󰉨"}.mdi-format-float-none:before{content:"󰉩"}.mdi-format-float-right:before{content:"󰉪"}.mdi-format-font:before{content:"󰛖"}.mdi-format-font-size-decrease:before{content:"󰧳"}.mdi-format-font-size-increase:before{content:"󰧴"}.mdi-format-header-1:before{content:"󰉫"}.mdi-format-header-2:before{content:"󰉬"}.mdi-format-header-3:before{content:"󰉭"}.mdi-format-header-4:before{content:"󰉮"}.mdi-format-header-5:before{content:"󰉯"}.mdi-format-header-6:before{content:"󰉰"}.mdi-format-header-decrease:before{content:"󰉱"}.mdi-format-header-equal:before{content:"󰉲"}.mdi-format-header-increase:before{content:"󰉳"}.mdi-format-header-pound:before{content:"󰉴"}.mdi-format-horizontal-align-center:before{content:"󰘞"}.mdi-format-horizontal-align-left:before{content:"󰘟"}.mdi-format-horizontal-align-right:before{content:"󰘠"}.mdi-format-indent-decrease:before{content:"󰉵"}.mdi-format-indent-increase:before{content:"󰉶"}.mdi-format-italic:before{content:"󰉷"}.mdi-format-letter-case:before{content:"󰬴"}.mdi-format-letter-case-lower:before{content:"󰬵"}.mdi-format-letter-case-upper:before{content:"󰬶"}.mdi-format-letter-ends-with:before{content:"󰾸"}.mdi-format-letter-matches:before{content:"󰾹"}.mdi-format-letter-spacing:before{content:"󱥖"}.mdi-format-letter-spacing-variant:before{content:"󱫻"}.mdi-format-letter-starts-with:before{content:"󰾺"}.mdi-format-line-height:before{content:"󱫼"}.mdi-format-line-spacing:before{content:"󰉸"}.mdi-format-line-style:before{content:"󰗈"}.mdi-format-line-weight:before{content:"󰗉"}.mdi-format-list-bulleted:before{content:"󰉹"}.mdi-format-list-bulleted-square:before{content:"󰷐"}.mdi-format-list-bulleted-triangle:before{content:"󰺲"}.mdi-format-list-bulleted-type:before{content:"󰉺"}.mdi-format-list-checkbox:before{content:"󰥪"}.mdi-format-list-checks:before{content:"󰝖"}.mdi-format-list-group:before{content:"󱡠"}.mdi-format-list-group-plus:before{content:"󱭖"}.mdi-format-list-numbered:before{content:"󰉻"}.mdi-format-list-numbered-rtl:before{content:"󰴍"}.mdi-format-list-text:before{content:"󱉯"}.mdi-format-overline:before{content:"󰺳"}.mdi-format-page-break:before{content:"󰛗"}.mdi-format-page-split:before{content:"󱤗"}.mdi-format-paint:before{content:"󰉼"}.mdi-format-paragraph:before{content:"󰉽"}.mdi-format-paragraph-spacing:before{content:"󱫽"}.mdi-format-pilcrow:before{content:"󰛘"}.mdi-format-pilcrow-arrow-left:before{content:"󰊆"}.mdi-format-pilcrow-arrow-right:before{content:"󰊅"}.mdi-format-quote-close:before{content:"󰉾"}.mdi-format-quote-close-outline:before{content:"󱆨"}.mdi-format-quote-open:before{content:"󰝗"}.mdi-format-quote-open-outline:before{content:"󱆧"}.mdi-format-rotate-90:before{content:"󰚪"}.mdi-format-section:before{content:"󰚟"}.mdi-format-size:before{content:"󰉿"}.mdi-format-strikethrough:before{content:"󰊀"}.mdi-format-strikethrough-variant:before{content:"󰊁"}.mdi-format-subscript:before{content:"󰊂"}.mdi-format-superscript:before{content:"󰊃"}.mdi-format-text:before{content:"󰊄"}.mdi-format-text-rotation-angle-down:before{content:"󰾻"}.mdi-format-text-rotation-angle-up:before{content:"󰾼"}.mdi-format-text-rotation-down:before{content:"󰵳"}.mdi-format-text-rotation-down-vertical:before{content:"󰾽"}.mdi-format-text-rotation-none:before{content:"󰵴"}.mdi-format-text-rotation-up:before{content:"󰾾"}.mdi-format-text-rotation-vertical:before{content:"󰾿"}.mdi-format-text-variant:before{content:"󰸲"}.mdi-format-text-variant-outline:before{content:"󱔏"}.mdi-format-text-wrapping-clip:before{content:"󰴎"}.mdi-format-text-wrapping-overflow:before{content:"󰴏"}.mdi-format-text-wrapping-wrap:before{content:"󰴐"}.mdi-format-textbox:before{content:"󰴑"}.mdi-format-title:before{content:"󰗴"}.mdi-format-underline:before{content:"󰊇"}.mdi-format-underline-wavy:before{content:"󱣩"}.mdi-format-vertical-align-bottom:before{content:"󰘡"}.mdi-format-vertical-align-center:before{content:"󰘢"}.mdi-format-vertical-align-top:before{content:"󰘣"}.mdi-format-wrap-inline:before{content:"󰊈"}.mdi-format-wrap-square:before{content:"󰊉"}.mdi-format-wrap-tight:before{content:"󰊊"}.mdi-format-wrap-top-bottom:before{content:"󰊋"}.mdi-forum:before{content:"󰊌"}.mdi-forum-minus:before{content:"󱪩"}.mdi-forum-minus-outline:before{content:"󱪪"}.mdi-forum-outline:before{content:"󰠢"}.mdi-forum-plus:before{content:"󱪫"}.mdi-forum-plus-outline:before{content:"󱪬"}.mdi-forum-remove:before{content:"󱪭"}.mdi-forum-remove-outline:before{content:"󱪮"}.mdi-forward:before{content:"󰊍"}.mdi-forwardburger:before{content:"󰵵"}.mdi-fountain:before{content:"󰥫"}.mdi-fountain-pen:before{content:"󰴒"}.mdi-fountain-pen-tip:before{content:"󰴓"}.mdi-fraction-one-half:before{content:"󱦒"}.mdi-freebsd:before{content:"󰣠"}.mdi-french-fries:before{content:"󱥗"}.mdi-frequently-asked-questions:before{content:"󰺴"}.mdi-fridge:before{content:"󰊐"}.mdi-fridge-alert:before{content:"󱆱"}.mdi-fridge-alert-outline:before{content:"󱆲"}.mdi-fridge-bottom:before{content:"󰊒"}.mdi-fridge-industrial:before{content:"󱗮"}.mdi-fridge-industrial-alert:before{content:"󱗯"}.mdi-fridge-industrial-alert-outline:before{content:"󱗰"}.mdi-fridge-industrial-off:before{content:"󱗱"}.mdi-fridge-industrial-off-outline:before{content:"󱗲"}.mdi-fridge-industrial-outline:before{content:"󱗳"}.mdi-fridge-off:before{content:"󱆯"}.mdi-fridge-off-outline:before{content:"󱆰"}.mdi-fridge-outline:before{content:"󰊏"}.mdi-fridge-top:before{content:"󰊑"}.mdi-fridge-variant:before{content:"󱗴"}.mdi-fridge-variant-alert:before{content:"󱗵"}.mdi-fridge-variant-alert-outline:before{content:"󱗶"}.mdi-fridge-variant-off:before{content:"󱗷"}.mdi-fridge-variant-off-outline:before{content:"󱗸"}.mdi-fridge-variant-outline:before{content:"󱗹"}.mdi-fruit-cherries:before{content:"󱁂"}.mdi-fruit-cherries-off:before{content:"󱏸"}.mdi-fruit-citrus:before{content:"󱁃"}.mdi-fruit-citrus-off:before{content:"󱏹"}.mdi-fruit-grapes:before{content:"󱁄"}.mdi-fruit-grapes-outline:before{content:"󱁅"}.mdi-fruit-pear:before{content:"󱨎"}.mdi-fruit-pineapple:before{content:"󱁆"}.mdi-fruit-watermelon:before{content:"󱁇"}.mdi-fuel:before{content:"󰟊"}.mdi-fuel-cell:before{content:"󱢵"}.mdi-fullscreen:before{content:"󰊓"}.mdi-fullscreen-exit:before{content:"󰊔"}.mdi-function:before{content:"󰊕"}.mdi-function-variant:before{content:"󰡱"}.mdi-furigana-horizontal:before{content:"󱂁"}.mdi-furigana-vertical:before{content:"󱂂"}.mdi-fuse:before{content:"󰲅"}.mdi-fuse-alert:before{content:"󱐭"}.mdi-fuse-blade:before{content:"󰲆"}.mdi-fuse-off:before{content:"󱐬"}.mdi-gamepad:before{content:"󰊖"}.mdi-gamepad-circle:before{content:"󰸳"}.mdi-gamepad-circle-down:before{content:"󰸴"}.mdi-gamepad-circle-left:before{content:"󰸵"}.mdi-gamepad-circle-outline:before{content:"󰸶"}.mdi-gamepad-circle-right:before{content:"󰸷"}.mdi-gamepad-circle-up:before{content:"󰸸"}.mdi-gamepad-down:before{content:"󰸹"}.mdi-gamepad-left:before{content:"󰸺"}.mdi-gamepad-outline:before{content:"󱤙"}.mdi-gamepad-right:before{content:"󰸻"}.mdi-gamepad-round:before{content:"󰸼"}.mdi-gamepad-round-down:before{content:"󰸽"}.mdi-gamepad-round-left:before{content:"󰸾"}.mdi-gamepad-round-outline:before{content:"󰸿"}.mdi-gamepad-round-right:before{content:"󰹀"}.mdi-gamepad-round-up:before{content:"󰹁"}.mdi-gamepad-square:before{content:"󰺵"}.mdi-gamepad-square-outline:before{content:"󰺶"}.mdi-gamepad-up:before{content:"󰹂"}.mdi-gamepad-variant:before{content:"󰊗"}.mdi-gamepad-variant-outline:before{content:"󰺷"}.mdi-gamma:before{content:"󱃮"}.mdi-gantry-crane:before{content:"󰷑"}.mdi-garage:before{content:"󰛙"}.mdi-garage-alert:before{content:"󰡲"}.mdi-garage-alert-variant:before{content:"󱋕"}.mdi-garage-lock:before{content:"󱟻"}.mdi-garage-open:before{content:"󰛚"}.mdi-garage-open-variant:before{content:"󱋔"}.mdi-garage-variant:before{content:"󱋓"}.mdi-garage-variant-lock:before{content:"󱟼"}.mdi-gas-burner:before{content:"󱨛"}.mdi-gas-cylinder:before{content:"󰙇"}.mdi-gas-station:before{content:"󰊘"}.mdi-gas-station-in-use:before{content:"󱳄"}.mdi-gas-station-in-use-outline:before{content:"󱳅"}.mdi-gas-station-off:before{content:"󱐉"}.mdi-gas-station-off-outline:before{content:"󱐊"}.mdi-gas-station-outline:before{content:"󰺸"}.mdi-gate:before{content:"󰊙"}.mdi-gate-alert:before{content:"󱟸"}.mdi-gate-and:before{content:"󰣡"}.mdi-gate-arrow-left:before{content:"󱟷"}.mdi-gate-arrow-right:before{content:"󱅩"}.mdi-gate-buffer:before{content:"󱫾"}.mdi-gate-nand:before{content:"󰣢"}.mdi-gate-nor:before{content:"󰣣"}.mdi-gate-not:before{content:"󰣤"}.mdi-gate-open:before{content:"󱅪"}.mdi-gate-or:before{content:"󰣥"}.mdi-gate-xnor:before{content:"󰣦"}.mdi-gate-xor:before{content:"󰣧"}.mdi-gatsby:before{content:"󰹃"}.mdi-gauge:before{content:"󰊚"}.mdi-gauge-empty:before{content:"󰡳"}.mdi-gauge-full:before{content:"󰡴"}.mdi-gauge-low:before{content:"󰡵"}.mdi-gavel:before{content:"󰊛"}.mdi-gender-female:before{content:"󰊜"}.mdi-gender-male:before{content:"󰊝"}.mdi-gender-male-female:before{content:"󰊞"}.mdi-gender-male-female-variant:before{content:"󱄿"}.mdi-gender-non-binary:before{content:"󱅀"}.mdi-gender-transgender:before{content:"󰊟"}.mdi-generator-mobile:before{content:"󱲊"}.mdi-generator-portable:before{content:"󱲋"}.mdi-generator-stationary:before{content:"󱲌"}.mdi-gentoo:before{content:"󰣨"}.mdi-gesture:before{content:"󰟋"}.mdi-gesture-double-tap:before{content:"󰜼"}.mdi-gesture-pinch:before{content:"󰪽"}.mdi-gesture-spread:before{content:"󰪾"}.mdi-gesture-swipe:before{content:"󰵶"}.mdi-gesture-swipe-down:before{content:"󰜽"}.mdi-gesture-swipe-horizontal:before{content:"󰪿"}.mdi-gesture-swipe-left:before{content:"󰜾"}.mdi-gesture-swipe-right:before{content:"󰜿"}.mdi-gesture-swipe-up:before{content:"󰝀"}.mdi-gesture-swipe-vertical:before{content:"󰫀"}.mdi-gesture-tap:before{content:"󰝁"}.mdi-gesture-tap-box:before{content:"󱊩"}.mdi-gesture-tap-button:before{content:"󱊨"}.mdi-gesture-tap-hold:before{content:"󰵷"}.mdi-gesture-two-double-tap:before{content:"󰝂"}.mdi-gesture-two-tap:before{content:"󰝃"}.mdi-ghost:before{content:"󰊠"}.mdi-ghost-off:before{content:"󰧵"}.mdi-ghost-off-outline:before{content:"󱙜"}.mdi-ghost-outline:before{content:"󱙝"}.mdi-gift:before{content:"󰹄"}.mdi-gift-off:before{content:"󱛯"}.mdi-gift-off-outline:before{content:"󱛰"}.mdi-gift-open:before{content:"󱛱"}.mdi-gift-open-outline:before{content:"󱛲"}.mdi-gift-outline:before{content:"󰊡"}.mdi-git:before{content:"󰊢"}.mdi-github:before{content:"󰊤"}.mdi-gitlab:before{content:"󰮠"}.mdi-glass-cocktail:before{content:"󰍖"}.mdi-glass-cocktail-off:before{content:"󱗦"}.mdi-glass-flute:before{content:"󰊥"}.mdi-glass-fragile:before{content:"󱡳"}.mdi-glass-mug:before{content:"󰊦"}.mdi-glass-mug-off:before{content:"󱗧"}.mdi-glass-mug-variant:before{content:"󱄖"}.mdi-glass-mug-variant-off:before{content:"󱗨"}.mdi-glass-pint-outline:before{content:"󱌍"}.mdi-glass-stange:before{content:"󰊧"}.mdi-glass-tulip:before{content:"󰊨"}.mdi-glass-wine:before{content:"󰡶"}.mdi-glasses:before{content:"󰊪"}.mdi-globe-light:before{content:"󰙯"}.mdi-globe-light-outline:before{content:"󱋗"}.mdi-globe-model:before{content:"󰣩"}.mdi-gmail:before{content:"󰊫"}.mdi-gnome:before{content:"󰊬"}.mdi-go-kart:before{content:"󰵹"}.mdi-go-kart-track:before{content:"󰵺"}.mdi-gog:before{content:"󰮡"}.mdi-gold:before{content:"󱉏"}.mdi-golf:before{content:"󰠣"}.mdi-golf-cart:before{content:"󱆤"}.mdi-golf-tee:before{content:"󱂃"}.mdi-gondola:before{content:"󰚆"}.mdi-goodreads:before{content:"󰵻"}.mdi-google:before{content:"󰊭"}.mdi-google-ads:before{content:"󰲇"}.mdi-google-analytics:before{content:"󰟌"}.mdi-google-assistant:before{content:"󰟍"}.mdi-google-cardboard:before{content:"󰊮"}.mdi-google-chrome:before{content:"󰊯"}.mdi-google-circles:before{content:"󰊰"}.mdi-google-circles-communities:before{content:"󰊱"}.mdi-google-circles-extended:before{content:"󰊲"}.mdi-google-circles-group:before{content:"󰊳"}.mdi-google-classroom:before{content:"󰋀"}.mdi-google-cloud:before{content:"󱇶"}.mdi-google-downasaur:before{content:"󱍢"}.mdi-google-drive:before{content:"󰊶"}.mdi-google-earth:before{content:"󰊷"}.mdi-google-fit:before{content:"󰥬"}.mdi-google-glass:before{content:"󰊸"}.mdi-google-hangouts:before{content:"󰋉"}.mdi-google-keep:before{content:"󰛜"}.mdi-google-lens:before{content:"󰧶"}.mdi-google-maps:before{content:"󰗵"}.mdi-google-my-business:before{content:"󱁈"}.mdi-google-nearby:before{content:"󰊹"}.mdi-google-play:before{content:"󰊼"}.mdi-google-plus:before{content:"󰊽"}.mdi-google-podcast:before{content:"󰺹"}.mdi-google-spreadsheet:before{content:"󰧷"}.mdi-google-street-view:before{content:"󰲈"}.mdi-google-translate:before{content:"󰊿"}.mdi-gradient-horizontal:before{content:"󱝊"}.mdi-gradient-vertical:before{content:"󰚠"}.mdi-grain:before{content:"󰵼"}.mdi-graph:before{content:"󱁉"}.mdi-graph-outline:before{content:"󱁊"}.mdi-graphql:before{content:"󰡷"}.mdi-grass:before{content:"󱔐"}.mdi-grave-stone:before{content:"󰮢"}.mdi-grease-pencil:before{content:"󰙈"}.mdi-greater-than:before{content:"󰥭"}.mdi-greater-than-or-equal:before{content:"󰥮"}.mdi-greenhouse:before{content:"󰀭"}.mdi-grid:before{content:"󰋁"}.mdi-grid-large:before{content:"󰝘"}.mdi-grid-off:before{content:"󰋂"}.mdi-grill:before{content:"󰹅"}.mdi-grill-outline:before{content:"󱆊"}.mdi-group:before{content:"󰋃"}.mdi-guitar-acoustic:before{content:"󰝱"}.mdi-guitar-electric:before{content:"󰋄"}.mdi-guitar-pick:before{content:"󰋅"}.mdi-guitar-pick-outline:before{content:"󰋆"}.mdi-guy-fawkes-mask:before{content:"󰠥"}.mdi-gymnastics:before{content:"󱩁"}.mdi-hail:before{content:"󰫁"}.mdi-hair-dryer:before{content:"󱃯"}.mdi-hair-dryer-outline:before{content:"󱃰"}.mdi-halloween:before{content:"󰮣"}.mdi-hamburger:before{content:"󰚅"}.mdi-hamburger-check:before{content:"󱝶"}.mdi-hamburger-minus:before{content:"󱝷"}.mdi-hamburger-off:before{content:"󱝸"}.mdi-hamburger-plus:before{content:"󱝹"}.mdi-hamburger-remove:before{content:"󱝺"}.mdi-hammer:before{content:"󰣪"}.mdi-hammer-screwdriver:before{content:"󱌢"}.mdi-hammer-sickle:before{content:"󱢇"}.mdi-hammer-wrench:before{content:"󱌣"}.mdi-hand-back-left:before{content:"󰹆"}.mdi-hand-back-left-off:before{content:"󱠰"}.mdi-hand-back-left-off-outline:before{content:"󱠲"}.mdi-hand-back-left-outline:before{content:"󱠬"}.mdi-hand-back-right:before{content:"󰹇"}.mdi-hand-back-right-off:before{content:"󱠱"}.mdi-hand-back-right-off-outline:before{content:"󱠳"}.mdi-hand-back-right-outline:before{content:"󱠭"}.mdi-hand-clap:before{content:"󱥋"}.mdi-hand-clap-off:before{content:"󱩂"}.mdi-hand-coin:before{content:"󱢏"}.mdi-hand-coin-outline:before{content:"󱢐"}.mdi-hand-cycle:before{content:"󱮜"}.mdi-hand-extended:before{content:"󱢶"}.mdi-hand-extended-outline:before{content:"󱢷"}.mdi-hand-front-left:before{content:"󱠫"}.mdi-hand-front-left-outline:before{content:"󱠮"}.mdi-hand-front-right:before{content:"󰩏"}.mdi-hand-front-right-outline:before{content:"󱠯"}.mdi-hand-heart:before{content:"󱃱"}.mdi-hand-heart-outline:before{content:"󱕾"}.mdi-hand-okay:before{content:"󰩐"}.mdi-hand-peace:before{content:"󰩑"}.mdi-hand-peace-variant:before{content:"󰩒"}.mdi-hand-pointing-down:before{content:"󰩓"}.mdi-hand-pointing-left:before{content:"󰩔"}.mdi-hand-pointing-right:before{content:"󰋇"}.mdi-hand-pointing-up:before{content:"󰩕"}.mdi-hand-saw:before{content:"󰹈"}.mdi-hand-wash:before{content:"󱕿"}.mdi-hand-wash-outline:before{content:"󱖀"}.mdi-hand-water:before{content:"󱎟"}.mdi-hand-wave:before{content:"󱠡"}.mdi-hand-wave-outline:before{content:"󱠢"}.mdi-handball:before{content:"󰽓"}.mdi-handcuffs:before{content:"󱄾"}.mdi-hands-pray:before{content:"󰕹"}.mdi-handshake:before{content:"󱈘"}.mdi-handshake-outline:before{content:"󱖡"}.mdi-hanger:before{content:"󰋈"}.mdi-hard-hat:before{content:"󰥯"}.mdi-harddisk:before{content:"󰋊"}.mdi-harddisk-plus:before{content:"󱁋"}.mdi-harddisk-remove:before{content:"󱁌"}.mdi-hat-fedora:before{content:"󰮤"}.mdi-hazard-lights:before{content:"󰲉"}.mdi-hdmi-port:before{content:"󱮸"}.mdi-hdr:before{content:"󰵽"}.mdi-hdr-off:before{content:"󰵾"}.mdi-head:before{content:"󱍞"}.mdi-head-alert:before{content:"󱌸"}.mdi-head-alert-outline:before{content:"󱌹"}.mdi-head-check:before{content:"󱌺"}.mdi-head-check-outline:before{content:"󱌻"}.mdi-head-cog:before{content:"󱌼"}.mdi-head-cog-outline:before{content:"󱌽"}.mdi-head-dots-horizontal:before{content:"󱌾"}.mdi-head-dots-horizontal-outline:before{content:"󱌿"}.mdi-head-flash:before{content:"󱍀"}.mdi-head-flash-outline:before{content:"󱍁"}.mdi-head-heart:before{content:"󱍂"}.mdi-head-heart-outline:before{content:"󱍃"}.mdi-head-lightbulb:before{content:"󱍄"}.mdi-head-lightbulb-outline:before{content:"󱍅"}.mdi-head-minus:before{content:"󱍆"}.mdi-head-minus-outline:before{content:"󱍇"}.mdi-head-outline:before{content:"󱍟"}.mdi-head-plus:before{content:"󱍈"}.mdi-head-plus-outline:before{content:"󱍉"}.mdi-head-question:before{content:"󱍊"}.mdi-head-question-outline:before{content:"󱍋"}.mdi-head-remove:before{content:"󱍌"}.mdi-head-remove-outline:before{content:"󱍍"}.mdi-head-snowflake:before{content:"󱍎"}.mdi-head-snowflake-outline:before{content:"󱍏"}.mdi-head-sync:before{content:"󱍐"}.mdi-head-sync-outline:before{content:"󱍑"}.mdi-headphones:before{content:"󰋋"}.mdi-headphones-bluetooth:before{content:"󰥰"}.mdi-headphones-box:before{content:"󰋌"}.mdi-headphones-off:before{content:"󰟎"}.mdi-headphones-settings:before{content:"󰋍"}.mdi-headset:before{content:"󰋎"}.mdi-headset-dock:before{content:"󰋏"}.mdi-headset-off:before{content:"󰋐"}.mdi-heart:before{content:"󰋑"}.mdi-heart-box:before{content:"󰋒"}.mdi-heart-box-outline:before{content:"󰋓"}.mdi-heart-broken:before{content:"󰋔"}.mdi-heart-broken-outline:before{content:"󰴔"}.mdi-heart-circle:before{content:"󰥱"}.mdi-heart-circle-outline:before{content:"󰥲"}.mdi-heart-cog:before{content:"󱙣"}.mdi-heart-cog-outline:before{content:"󱙤"}.mdi-heart-flash:before{content:"󰻹"}.mdi-heart-half:before{content:"󰛟"}.mdi-heart-half-full:before{content:"󰛞"}.mdi-heart-half-outline:before{content:"󰛠"}.mdi-heart-minus:before{content:"󱐯"}.mdi-heart-minus-outline:before{content:"󱐲"}.mdi-heart-multiple:before{content:"󰩖"}.mdi-heart-multiple-outline:before{content:"󰩗"}.mdi-heart-off:before{content:"󰝙"}.mdi-heart-off-outline:before{content:"󱐴"}.mdi-heart-outline:before{content:"󰋕"}.mdi-heart-plus:before{content:"󱐮"}.mdi-heart-plus-outline:before{content:"󱐱"}.mdi-heart-pulse:before{content:"󰗶"}.mdi-heart-remove:before{content:"󱐰"}.mdi-heart-remove-outline:before{content:"󱐳"}.mdi-heart-search:before{content:"󱲍"}.mdi-heart-settings:before{content:"󱙥"}.mdi-heart-settings-outline:before{content:"󱙦"}.mdi-heat-pump:before{content:"󱩃"}.mdi-heat-pump-outline:before{content:"󱩄"}.mdi-heat-wave:before{content:"󱩅"}.mdi-heating-coil:before{content:"󱪯"}.mdi-helicopter:before{content:"󰫂"}.mdi-help:before{content:"󰋖"}.mdi-help-box:before{content:"󰞋"}.mdi-help-box-multiple:before{content:"󱰊"}.mdi-help-box-multiple-outline:before{content:"󱰋"}.mdi-help-box-outline:before{content:"󱰌"}.mdi-help-circle:before{content:"󰋗"}.mdi-help-circle-outline:before{content:"󰘥"}.mdi-help-network:before{content:"󰛵"}.mdi-help-network-outline:before{content:"󰲊"}.mdi-help-rhombus:before{content:"󰮥"}.mdi-help-rhombus-outline:before{content:"󰮦"}.mdi-hexadecimal:before{content:"󱊧"}.mdi-hexagon:before{content:"󰋘"}.mdi-hexagon-multiple:before{content:"󰛡"}.mdi-hexagon-multiple-outline:before{content:"󱃲"}.mdi-hexagon-outline:before{content:"󰋙"}.mdi-hexagon-slice-1:before{content:"󰫃"}.mdi-hexagon-slice-2:before{content:"󰫄"}.mdi-hexagon-slice-3:before{content:"󰫅"}.mdi-hexagon-slice-4:before{content:"󰫆"}.mdi-hexagon-slice-5:before{content:"󰫇"}.mdi-hexagon-slice-6:before{content:"󰫈"}.mdi-hexagram:before{content:"󰫉"}.mdi-hexagram-outline:before{content:"󰫊"}.mdi-high-definition:before{content:"󰟏"}.mdi-high-definition-box:before{content:"󰡸"}.mdi-highway:before{content:"󰗷"}.mdi-hiking:before{content:"󰵿"}.mdi-history:before{content:"󰋚"}.mdi-hockey-puck:before{content:"󰡹"}.mdi-hockey-sticks:before{content:"󰡺"}.mdi-hololens:before{content:"󰋛"}.mdi-home:before{content:"󰋜"}.mdi-home-account:before{content:"󰠦"}.mdi-home-alert:before{content:"󰡻"}.mdi-home-alert-outline:before{content:"󱗐"}.mdi-home-analytics:before{content:"󰺺"}.mdi-home-assistant:before{content:"󰟐"}.mdi-home-automation:before{content:"󰟑"}.mdi-home-battery:before{content:"󱤁"}.mdi-home-battery-outline:before{content:"󱤂"}.mdi-home-circle:before{content:"󰟒"}.mdi-home-circle-outline:before{content:"󱁍"}.mdi-home-city:before{content:"󰴕"}.mdi-home-city-outline:before{content:"󰴖"}.mdi-home-clock:before{content:"󱨒"}.mdi-home-clock-outline:before{content:"󱨓"}.mdi-home-edit:before{content:"󱅙"}.mdi-home-edit-outline:before{content:"󱅚"}.mdi-home-export-outline:before{content:"󰾛"}.mdi-home-flood:before{content:"󰻺"}.mdi-home-floor-0:before{content:"󰷒"}.mdi-home-floor-1:before{content:"󰶀"}.mdi-home-floor-2:before{content:"󰶁"}.mdi-home-floor-3:before{content:"󰶂"}.mdi-home-floor-a:before{content:"󰶃"}.mdi-home-floor-b:before{content:"󰶄"}.mdi-home-floor-g:before{content:"󰶅"}.mdi-home-floor-l:before{content:"󰶆"}.mdi-home-floor-negative-1:before{content:"󰷓"}.mdi-home-group:before{content:"󰷔"}.mdi-home-group-minus:before{content:"󱧁"}.mdi-home-group-plus:before{content:"󱧀"}.mdi-home-group-remove:before{content:"󱧂"}.mdi-home-heart:before{content:"󰠧"}.mdi-home-import-outline:before{content:"󰾜"}.mdi-home-lightbulb:before{content:"󱉑"}.mdi-home-lightbulb-outline:before{content:"󱉒"}.mdi-home-lightning-bolt:before{content:"󱤃"}.mdi-home-lightning-bolt-outline:before{content:"󱤄"}.mdi-home-lock:before{content:"󰣫"}.mdi-home-lock-open:before{content:"󰣬"}.mdi-home-map-marker:before{content:"󰗸"}.mdi-home-minus:before{content:"󰥴"}.mdi-home-minus-outline:before{content:"󱏕"}.mdi-home-modern:before{content:"󰋝"}.mdi-home-off:before{content:"󱩆"}.mdi-home-off-outline:before{content:"󱩇"}.mdi-home-outline:before{content:"󰚡"}.mdi-home-percent:before{content:"󱱼"}.mdi-home-percent-outline:before{content:"󱱽"}.mdi-home-plus:before{content:"󰥵"}.mdi-home-plus-outline:before{content:"󱏖"}.mdi-home-remove:before{content:"󱉇"}.mdi-home-remove-outline:before{content:"󱏗"}.mdi-home-roof:before{content:"󱄫"}.mdi-home-search:before{content:"󱎰"}.mdi-home-search-outline:before{content:"󱎱"}.mdi-home-silo:before{content:"󱮠"}.mdi-home-silo-outline:before{content:"󱮡"}.mdi-home-sound-in:before{content:"󱰯"}.mdi-home-sound-in-outline:before{content:"󱰰"}.mdi-home-sound-out:before{content:"󱰱"}.mdi-home-sound-out-outline:before{content:"󱰲"}.mdi-home-switch:before{content:"󱞔"}.mdi-home-switch-outline:before{content:"󱞕"}.mdi-home-thermometer:before{content:"󰽔"}.mdi-home-thermometer-outline:before{content:"󰽕"}.mdi-home-variant:before{content:"󰋞"}.mdi-home-variant-outline:before{content:"󰮧"}.mdi-hook:before{content:"󰛢"}.mdi-hook-off:before{content:"󰛣"}.mdi-hoop-house:before{content:"󰹖"}.mdi-hops:before{content:"󰋟"}.mdi-horizontal-rotate-clockwise:before{content:"󱃳"}.mdi-horizontal-rotate-counterclockwise:before{content:"󱃴"}.mdi-horse:before{content:"󱖿"}.mdi-horse-human:before{content:"󱗀"}.mdi-horse-variant:before{content:"󱗁"}.mdi-horse-variant-fast:before{content:"󱡮"}.mdi-horseshoe:before{content:"󰩘"}.mdi-hospital:before{content:"󰿶"}.mdi-hospital-box:before{content:"󰋠"}.mdi-hospital-box-outline:before{content:"󰿷"}.mdi-hospital-building:before{content:"󰋡"}.mdi-hospital-marker:before{content:"󰋢"}.mdi-hot-tub:before{content:"󰠨"}.mdi-hours-12:before{content:"󱲔"}.mdi-hours-24:before{content:"󱑸"}.mdi-hub:before{content:"󱲕"}.mdi-hub-outline:before{content:"󱲖"}.mdi-hubspot:before{content:"󰴗"}.mdi-hulu:before{content:"󰠩"}.mdi-human:before{content:"󰋦"}.mdi-human-baby-changing-table:before{content:"󱎋"}.mdi-human-cane:before{content:"󱖁"}.mdi-human-capacity-decrease:before{content:"󱖛"}.mdi-human-capacity-increase:before{content:"󱖜"}.mdi-human-child:before{content:"󰋧"}.mdi-human-dolly:before{content:"󱦀"}.mdi-human-edit:before{content:"󱓨"}.mdi-human-female:before{content:"󰙉"}.mdi-human-female-boy:before{content:"󰩙"}.mdi-human-female-dance:before{content:"󱗉"}.mdi-human-female-female:before{content:"󰩚"}.mdi-human-female-female-child:before{content:"󱲎"}.mdi-human-female-girl:before{content:"󰩛"}.mdi-human-greeting:before{content:"󱟄"}.mdi-human-greeting-proximity:before{content:"󱖝"}.mdi-human-greeting-variant:before{content:"󰙊"}.mdi-human-handsdown:before{content:"󰙋"}.mdi-human-handsup:before{content:"󰙌"}.mdi-human-male:before{content:"󰙍"}.mdi-human-male-board:before{content:"󰢐"}.mdi-human-male-board-poll:before{content:"󰡆"}.mdi-human-male-boy:before{content:"󰩜"}.mdi-human-male-child:before{content:"󱎌"}.mdi-human-male-female:before{content:"󰋨"}.mdi-human-male-female-child:before{content:"󱠣"}.mdi-human-male-girl:before{content:"󰩝"}.mdi-human-male-height:before{content:"󰻻"}.mdi-human-male-height-variant:before{content:"󰻼"}.mdi-human-male-male:before{content:"󰩞"}.mdi-human-male-male-child:before{content:"󱲏"}.mdi-human-non-binary:before{content:"󱡈"}.mdi-human-pregnant:before{content:"󰗏"}.mdi-human-queue:before{content:"󱕱"}.mdi-human-scooter:before{content:"󱇩"}.mdi-human-walker:before{content:"󱭱"}.mdi-human-wheelchair:before{content:"󱎍"}.mdi-human-white-cane:before{content:"󱦁"}.mdi-humble-bundle:before{content:"󰝄"}.mdi-hvac:before{content:"󱍒"}.mdi-hvac-off:before{content:"󱖞"}.mdi-hydraulic-oil-level:before{content:"󱌤"}.mdi-hydraulic-oil-temperature:before{content:"󱌥"}.mdi-hydro-power:before{content:"󱋥"}.mdi-hydrogen-station:before{content:"󱢔"}.mdi-ice-cream:before{content:"󰠪"}.mdi-ice-cream-off:before{content:"󰹒"}.mdi-ice-pop:before{content:"󰻽"}.mdi-id-card:before{content:"󰿀"}.mdi-identifier:before{content:"󰻾"}.mdi-ideogram-cjk:before{content:"󱌱"}.mdi-ideogram-cjk-variant:before{content:"󱌲"}.mdi-image:before{content:"󰋩"}.mdi-image-album:before{content:"󰋪"}.mdi-image-area:before{content:"󰋫"}.mdi-image-area-close:before{content:"󰋬"}.mdi-image-auto-adjust:before{content:"󰿁"}.mdi-image-broken:before{content:"󰋭"}.mdi-image-broken-variant:before{content:"󰋮"}.mdi-image-check:before{content:"󱬥"}.mdi-image-check-outline:before{content:"󱬦"}.mdi-image-edit:before{content:"󱇣"}.mdi-image-edit-outline:before{content:"󱇤"}.mdi-image-filter-black-white:before{content:"󰋰"}.mdi-image-filter-center-focus:before{content:"󰋱"}.mdi-image-filter-center-focus-strong:before{content:"󰻿"}.mdi-image-filter-center-focus-strong-outline:before{content:"󰼀"}.mdi-image-filter-center-focus-weak:before{content:"󰋲"}.mdi-image-filter-drama:before{content:"󰋳"}.mdi-image-filter-drama-outline:before{content:"󱯿"}.mdi-image-filter-frames:before{content:"󰋴"}.mdi-image-filter-hdr:before{content:"󰋵"}.mdi-image-filter-hdr-outline:before{content:"󱱤"}.mdi-image-filter-none:before{content:"󰋶"}.mdi-image-filter-tilt-shift:before{content:"󰋷"}.mdi-image-filter-vintage:before{content:"󰋸"}.mdi-image-frame:before{content:"󰹉"}.mdi-image-lock:before{content:"󱪰"}.mdi-image-lock-outline:before{content:"󱪱"}.mdi-image-marker:before{content:"󱝻"}.mdi-image-marker-outline:before{content:"󱝼"}.mdi-image-minus:before{content:"󱐙"}.mdi-image-minus-outline:before{content:"󱭇"}.mdi-image-move:before{content:"󰧸"}.mdi-image-multiple:before{content:"󰋹"}.mdi-image-multiple-outline:before{content:"󰋯"}.mdi-image-off:before{content:"󰠫"}.mdi-image-off-outline:before{content:"󱇑"}.mdi-image-outline:before{content:"󰥶"}.mdi-image-plus:before{content:"󰡼"}.mdi-image-plus-outline:before{content:"󱭆"}.mdi-image-refresh:before{content:"󱧾"}.mdi-image-refresh-outline:before{content:"󱧿"}.mdi-image-remove:before{content:"󱐘"}.mdi-image-remove-outline:before{content:"󱭈"}.mdi-image-search:before{content:"󰥷"}.mdi-image-search-outline:before{content:"󰥸"}.mdi-image-size-select-actual:before{content:"󰲍"}.mdi-image-size-select-large:before{content:"󰲎"}.mdi-image-size-select-small:before{content:"󰲏"}.mdi-image-sync:before{content:"󱨀"}.mdi-image-sync-outline:before{content:"󱨁"}.mdi-image-text:before{content:"󱘍"}.mdi-import:before{content:"󰋺"}.mdi-inbox:before{content:"󰚇"}.mdi-inbox-arrow-down:before{content:"󰋻"}.mdi-inbox-arrow-down-outline:before{content:"󱉰"}.mdi-inbox-arrow-up:before{content:"󰏑"}.mdi-inbox-arrow-up-outline:before{content:"󱉱"}.mdi-inbox-full:before{content:"󱉲"}.mdi-inbox-full-outline:before{content:"󱉳"}.mdi-inbox-multiple:before{content:"󰢰"}.mdi-inbox-multiple-outline:before{content:"󰮨"}.mdi-inbox-outline:before{content:"󱉴"}.mdi-inbox-remove:before{content:"󱖟"}.mdi-inbox-remove-outline:before{content:"󱖠"}.mdi-incognito:before{content:"󰗹"}.mdi-incognito-circle:before{content:"󱐡"}.mdi-incognito-circle-off:before{content:"󱐢"}.mdi-incognito-off:before{content:"󰁵"}.mdi-induction:before{content:"󱡌"}.mdi-infinity:before{content:"󰛤"}.mdi-information:before{content:"󰋼"}.mdi-information-box:before{content:"󱱥"}.mdi-information-box-outline:before{content:"󱱦"}.mdi-information-off:before{content:"󱞌"}.mdi-information-off-outline:before{content:"󱞍"}.mdi-information-outline:before{content:"󰋽"}.mdi-information-slab-box:before{content:"󱱧"}.mdi-information-slab-box-outline:before{content:"󱱨"}.mdi-information-slab-circle:before{content:"󱱩"}.mdi-information-slab-circle-outline:before{content:"󱱪"}.mdi-information-slab-symbol:before{content:"󱱫"}.mdi-information-symbol:before{content:"󱱬"}.mdi-information-variant:before{content:"󰙎"}.mdi-information-variant-box:before{content:"󱱭"}.mdi-information-variant-box-outline:before{content:"󱱮"}.mdi-information-variant-circle:before{content:"󱱯"}.mdi-information-variant-circle-outline:before{content:"󱱰"}.mdi-instagram:before{content:"󰋾"}.mdi-instrument-triangle:before{content:"󱁎"}.mdi-integrated-circuit-chip:before{content:"󱤓"}.mdi-invert-colors:before{content:"󰌁"}.mdi-invert-colors-off:before{content:"󰹊"}.mdi-iobroker:before{content:"󱋨"}.mdi-ip:before{content:"󰩟"}.mdi-ip-network:before{content:"󰩠"}.mdi-ip-network-outline:before{content:"󰲐"}.mdi-ip-outline:before{content:"󱦂"}.mdi-ipod:before{content:"󰲑"}.mdi-iron:before{content:"󱠤"}.mdi-iron-board:before{content:"󱠸"}.mdi-iron-outline:before{content:"󱠥"}.mdi-island:before{content:"󱁏"}.mdi-island-variant:before{content:"󱳆"}.mdi-iv-bag:before{content:"󱂹"}.mdi-jabber:before{content:"󰷕"}.mdi-jeepney:before{content:"󰌂"}.mdi-jellyfish:before{content:"󰼁"}.mdi-jellyfish-outline:before{content:"󰼂"}.mdi-jira:before{content:"󰌃"}.mdi-jquery:before{content:"󰡽"}.mdi-jsfiddle:before{content:"󰌄"}.mdi-jump-rope:before{content:"󱋿"}.mdi-kabaddi:before{content:"󰶇"}.mdi-kangaroo:before{content:"󱕘"}.mdi-karate:before{content:"󰠬"}.mdi-kayaking:before{content:"󰢯"}.mdi-keg:before{content:"󰌅"}.mdi-kettle:before{content:"󰗺"}.mdi-kettle-alert:before{content:"󱌗"}.mdi-kettle-alert-outline:before{content:"󱌘"}.mdi-kettle-off:before{content:"󱌛"}.mdi-kettle-off-outline:before{content:"󱌜"}.mdi-kettle-outline:before{content:"󰽖"}.mdi-kettle-pour-over:before{content:"󱜼"}.mdi-kettle-steam:before{content:"󱌙"}.mdi-kettle-steam-outline:before{content:"󱌚"}.mdi-kettlebell:before{content:"󱌀"}.mdi-key:before{content:"󰌆"}.mdi-key-alert:before{content:"󱦃"}.mdi-key-alert-outline:before{content:"󱦄"}.mdi-key-arrow-right:before{content:"󱌒"}.mdi-key-chain:before{content:"󱕴"}.mdi-key-chain-variant:before{content:"󱕵"}.mdi-key-change:before{content:"󰌇"}.mdi-key-link:before{content:"󱆟"}.mdi-key-minus:before{content:"󰌈"}.mdi-key-outline:before{content:"󰷖"}.mdi-key-plus:before{content:"󰌉"}.mdi-key-remove:before{content:"󰌊"}.mdi-key-star:before{content:"󱆞"}.mdi-key-variant:before{content:"󰌋"}.mdi-key-wireless:before{content:"󰿂"}.mdi-keyboard:before{content:"󰌌"}.mdi-keyboard-backspace:before{content:"󰌍"}.mdi-keyboard-caps:before{content:"󰌎"}.mdi-keyboard-close:before{content:"󰌏"}.mdi-keyboard-close-outline:before{content:"󱰀"}.mdi-keyboard-esc:before{content:"󱊷"}.mdi-keyboard-f1:before{content:"󱊫"}.mdi-keyboard-f10:before{content:"󱊴"}.mdi-keyboard-f11:before{content:"󱊵"}.mdi-keyboard-f12:before{content:"󱊶"}.mdi-keyboard-f2:before{content:"󱊬"}.mdi-keyboard-f3:before{content:"󱊭"}.mdi-keyboard-f4:before{content:"󱊮"}.mdi-keyboard-f5:before{content:"󱊯"}.mdi-keyboard-f6:before{content:"󱊰"}.mdi-keyboard-f7:before{content:"󱊱"}.mdi-keyboard-f8:before{content:"󱊲"}.mdi-keyboard-f9:before{content:"󱊳"}.mdi-keyboard-off:before{content:"󰌐"}.mdi-keyboard-off-outline:before{content:"󰹋"}.mdi-keyboard-outline:before{content:"󰥻"}.mdi-keyboard-return:before{content:"󰌑"}.mdi-keyboard-settings:before{content:"󰧹"}.mdi-keyboard-settings-outline:before{content:"󰧺"}.mdi-keyboard-space:before{content:"󱁐"}.mdi-keyboard-tab:before{content:"󰌒"}.mdi-keyboard-tab-reverse:before{content:"󰌥"}.mdi-keyboard-variant:before{content:"󰌓"}.mdi-khanda:before{content:"󱃽"}.mdi-kickstarter:before{content:"󰝅"}.mdi-kite:before{content:"󱦅"}.mdi-kite-outline:before{content:"󱦆"}.mdi-kitesurfing:before{content:"󱝄"}.mdi-klingon:before{content:"󱍛"}.mdi-knife:before{content:"󰧻"}.mdi-knife-military:before{content:"󰧼"}.mdi-knob:before{content:"󱮖"}.mdi-koala:before{content:"󱜿"}.mdi-kodi:before{content:"󰌔"}.mdi-kubernetes:before{content:"󱃾"}.mdi-label:before{content:"󰌕"}.mdi-label-multiple:before{content:"󱍵"}.mdi-label-multiple-outline:before{content:"󱍶"}.mdi-label-off:before{content:"󰫋"}.mdi-label-off-outline:before{content:"󰫌"}.mdi-label-outline:before{content:"󰌖"}.mdi-label-percent:before{content:"󱋪"}.mdi-label-percent-outline:before{content:"󱋫"}.mdi-label-variant:before{content:"󰫍"}.mdi-label-variant-outline:before{content:"󰫎"}.mdi-ladder:before{content:"󱖢"}.mdi-ladybug:before{content:"󰠭"}.mdi-lambda:before{content:"󰘧"}.mdi-lamp:before{content:"󰚵"}.mdi-lamp-outline:before{content:"󱟐"}.mdi-lamps:before{content:"󱕶"}.mdi-lamps-outline:before{content:"󱟑"}.mdi-lan:before{content:"󰌗"}.mdi-lan-check:before{content:"󱊪"}.mdi-lan-connect:before{content:"󰌘"}.mdi-lan-disconnect:before{content:"󰌙"}.mdi-lan-pending:before{content:"󰌚"}.mdi-land-fields:before{content:"󱪲"}.mdi-land-plots:before{content:"󱪳"}.mdi-land-plots-circle:before{content:"󱪴"}.mdi-land-plots-circle-variant:before{content:"󱪵"}.mdi-land-plots-marker:before{content:"󱱝"}.mdi-land-rows-horizontal:before{content:"󱪶"}.mdi-land-rows-vertical:before{content:"󱪷"}.mdi-landslide:before{content:"󱩈"}.mdi-landslide-outline:before{content:"󱩉"}.mdi-language-c:before{content:"󰙱"}.mdi-language-cpp:before{content:"󰙲"}.mdi-language-csharp:before{content:"󰌛"}.mdi-language-css3:before{content:"󰌜"}.mdi-language-fortran:before{content:"󱈚"}.mdi-language-go:before{content:"󰟓"}.mdi-language-haskell:before{content:"󰲒"}.mdi-language-html5:before{content:"󰌝"}.mdi-language-java:before{content:"󰬷"}.mdi-language-javascript:before{content:"󰌞"}.mdi-language-kotlin:before{content:"󱈙"}.mdi-language-lua:before{content:"󰢱"}.mdi-language-markdown:before{content:"󰍔"}.mdi-language-markdown-outline:before{content:"󰽛"}.mdi-language-php:before{content:"󰌟"}.mdi-language-python:before{content:"󰌠"}.mdi-language-r:before{content:"󰟔"}.mdi-language-ruby:before{content:"󰴭"}.mdi-language-ruby-on-rails:before{content:"󰫏"}.mdi-language-rust:before{content:"󱘗"}.mdi-language-swift:before{content:"󰛥"}.mdi-language-typescript:before{content:"󰛦"}.mdi-language-xaml:before{content:"󰙳"}.mdi-laptop:before{content:"󰌢"}.mdi-laptop-account:before{content:"󱩊"}.mdi-laptop-off:before{content:"󰛧"}.mdi-laravel:before{content:"󰫐"}.mdi-laser-pointer:before{content:"󱒄"}.mdi-lasso:before{content:"󰼃"}.mdi-lastpass:before{content:"󰑆"}.mdi-latitude:before{content:"󰽗"}.mdi-launch:before{content:"󰌧"}.mdi-lava-lamp:before{content:"󰟕"}.mdi-layers:before{content:"󰌨"}.mdi-layers-edit:before{content:"󱢒"}.mdi-layers-minus:before{content:"󰹌"}.mdi-layers-off:before{content:"󰌩"}.mdi-layers-off-outline:before{content:"󰧽"}.mdi-layers-outline:before{content:"󰧾"}.mdi-layers-plus:before{content:"󰹍"}.mdi-layers-remove:before{content:"󰹎"}.mdi-layers-search:before{content:"󱈆"}.mdi-layers-search-outline:before{content:"󱈇"}.mdi-layers-triple:before{content:"󰽘"}.mdi-layers-triple-outline:before{content:"󰽙"}.mdi-lead-pencil:before{content:"󰙏"}.mdi-leaf:before{content:"󰌪"}.mdi-leaf-circle:before{content:"󱤅"}.mdi-leaf-circle-outline:before{content:"󱤆"}.mdi-leaf-maple:before{content:"󰲓"}.mdi-leaf-maple-off:before{content:"󱋚"}.mdi-leaf-off:before{content:"󱋙"}.mdi-leak:before{content:"󰷗"}.mdi-leak-off:before{content:"󰷘"}.mdi-lectern:before{content:"󱫰"}.mdi-led-off:before{content:"󰌫"}.mdi-led-on:before{content:"󰌬"}.mdi-led-outline:before{content:"󰌭"}.mdi-led-strip:before{content:"󰟖"}.mdi-led-strip-variant:before{content:"󱁑"}.mdi-led-strip-variant-off:before{content:"󱩋"}.mdi-led-variant-off:before{content:"󰌮"}.mdi-led-variant-on:before{content:"󰌯"}.mdi-led-variant-outline:before{content:"󰌰"}.mdi-leek:before{content:"󱅽"}.mdi-less-than:before{content:"󰥼"}.mdi-less-than-or-equal:before{content:"󰥽"}.mdi-library:before{content:"󰌱"}.mdi-library-outline:before{content:"󱨢"}.mdi-library-shelves:before{content:"󰮩"}.mdi-license:before{content:"󰿃"}.mdi-lifebuoy:before{content:"󰡾"}.mdi-light-flood-down:before{content:"󱦇"}.mdi-light-flood-up:before{content:"󱦈"}.mdi-light-recessed:before{content:"󱞛"}.mdi-light-switch:before{content:"󰥾"}.mdi-light-switch-off:before{content:"󱨤"}.mdi-lightbulb:before{content:"󰌵"}.mdi-lightbulb-alert:before{content:"󱧡"}.mdi-lightbulb-alert-outline:before{content:"󱧢"}.mdi-lightbulb-auto:before{content:"󱠀"}.mdi-lightbulb-auto-outline:before{content:"󱠁"}.mdi-lightbulb-cfl:before{content:"󱈈"}.mdi-lightbulb-cfl-off:before{content:"󱈉"}.mdi-lightbulb-cfl-spiral:before{content:"󱉵"}.mdi-lightbulb-cfl-spiral-off:before{content:"󱋃"}.mdi-lightbulb-fluorescent-tube:before{content:"󱠄"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"󱠅"}.mdi-lightbulb-group:before{content:"󱉓"}.mdi-lightbulb-group-off:before{content:"󱋍"}.mdi-lightbulb-group-off-outline:before{content:"󱋎"}.mdi-lightbulb-group-outline:before{content:"󱉔"}.mdi-lightbulb-multiple:before{content:"󱉕"}.mdi-lightbulb-multiple-off:before{content:"󱋏"}.mdi-lightbulb-multiple-off-outline:before{content:"󱋐"}.mdi-lightbulb-multiple-outline:before{content:"󱉖"}.mdi-lightbulb-night:before{content:"󱩌"}.mdi-lightbulb-night-outline:before{content:"󱩍"}.mdi-lightbulb-off:before{content:"󰹏"}.mdi-lightbulb-off-outline:before{content:"󰹐"}.mdi-lightbulb-on:before{content:"󰛨"}.mdi-lightbulb-on-10:before{content:"󱩎"}.mdi-lightbulb-on-20:before{content:"󱩏"}.mdi-lightbulb-on-30:before{content:"󱩐"}.mdi-lightbulb-on-40:before{content:"󱩑"}.mdi-lightbulb-on-50:before{content:"󱩒"}.mdi-lightbulb-on-60:before{content:"󱩓"}.mdi-lightbulb-on-70:before{content:"󱩔"}.mdi-lightbulb-on-80:before{content:"󱩕"}.mdi-lightbulb-on-90:before{content:"󱩖"}.mdi-lightbulb-on-outline:before{content:"󰛩"}.mdi-lightbulb-outline:before{content:"󰌶"}.mdi-lightbulb-question:before{content:"󱧣"}.mdi-lightbulb-question-outline:before{content:"󱧤"}.mdi-lightbulb-spot:before{content:"󱟴"}.mdi-lightbulb-spot-off:before{content:"󱟵"}.mdi-lightbulb-variant:before{content:"󱠂"}.mdi-lightbulb-variant-outline:before{content:"󱠃"}.mdi-lighthouse:before{content:"󰧿"}.mdi-lighthouse-on:before{content:"󰨀"}.mdi-lightning-bolt:before{content:"󱐋"}.mdi-lightning-bolt-circle:before{content:"󰠠"}.mdi-lightning-bolt-outline:before{content:"󱐌"}.mdi-line-scan:before{content:"󰘤"}.mdi-lingerie:before{content:"󱑶"}.mdi-link:before{content:"󰌷"}.mdi-link-box:before{content:"󰴚"}.mdi-link-box-outline:before{content:"󰴛"}.mdi-link-box-variant:before{content:"󰴜"}.mdi-link-box-variant-outline:before{content:"󰴝"}.mdi-link-circle:before{content:"󱲬"}.mdi-link-circle-outline:before{content:"󱲭"}.mdi-link-edit:before{content:"󱲮"}.mdi-link-lock:before{content:"󱂺"}.mdi-link-off:before{content:"󰌸"}.mdi-link-plus:before{content:"󰲔"}.mdi-link-variant:before{content:"󰌹"}.mdi-link-variant-minus:before{content:"󱃿"}.mdi-link-variant-off:before{content:"󰌺"}.mdi-link-variant-plus:before{content:"󱄀"}.mdi-link-variant-remove:before{content:"󱄁"}.mdi-linkedin:before{content:"󰌻"}.mdi-linux:before{content:"󰌽"}.mdi-linux-mint:before{content:"󰣭"}.mdi-lipstick:before{content:"󱎵"}.mdi-liquid-spot:before{content:"󱠦"}.mdi-liquor:before{content:"󱤞"}.mdi-list-box:before{content:"󱭻"}.mdi-list-box-outline:before{content:"󱭼"}.mdi-list-status:before{content:"󱖫"}.mdi-litecoin:before{content:"󰩡"}.mdi-loading:before{content:"󰝲"}.mdi-location-enter:before{content:"󰿄"}.mdi-location-exit:before{content:"󰿅"}.mdi-lock:before{content:"󰌾"}.mdi-lock-alert:before{content:"󰣮"}.mdi-lock-alert-outline:before{content:"󱗑"}.mdi-lock-check:before{content:"󱎚"}.mdi-lock-check-outline:before{content:"󱚨"}.mdi-lock-clock:before{content:"󰥿"}.mdi-lock-minus:before{content:"󱚩"}.mdi-lock-minus-outline:before{content:"󱚪"}.mdi-lock-off:before{content:"󱙱"}.mdi-lock-off-outline:before{content:"󱙲"}.mdi-lock-open:before{content:"󰌿"}.mdi-lock-open-alert:before{content:"󱎛"}.mdi-lock-open-alert-outline:before{content:"󱗒"}.mdi-lock-open-check:before{content:"󱎜"}.mdi-lock-open-check-outline:before{content:"󱚫"}.mdi-lock-open-minus:before{content:"󱚬"}.mdi-lock-open-minus-outline:before{content:"󱚭"}.mdi-lock-open-outline:before{content:"󰍀"}.mdi-lock-open-plus:before{content:"󱚮"}.mdi-lock-open-plus-outline:before{content:"󱚯"}.mdi-lock-open-remove:before{content:"󱚰"}.mdi-lock-open-remove-outline:before{content:"󱚱"}.mdi-lock-open-variant:before{content:"󰿆"}.mdi-lock-open-variant-outline:before{content:"󰿇"}.mdi-lock-outline:before{content:"󰍁"}.mdi-lock-pattern:before{content:"󰛪"}.mdi-lock-percent:before{content:"󱰒"}.mdi-lock-percent-open:before{content:"󱰓"}.mdi-lock-percent-open-outline:before{content:"󱰔"}.mdi-lock-percent-open-variant:before{content:"󱰕"}.mdi-lock-percent-open-variant-outline:before{content:"󱰖"}.mdi-lock-percent-outline:before{content:"󱰗"}.mdi-lock-plus:before{content:"󰗻"}.mdi-lock-plus-outline:before{content:"󱚲"}.mdi-lock-question:before{content:"󰣯"}.mdi-lock-remove:before{content:"󱚳"}.mdi-lock-remove-outline:before{content:"󱚴"}.mdi-lock-reset:before{content:"󰝳"}.mdi-lock-smart:before{content:"󰢲"}.mdi-locker:before{content:"󰟗"}.mdi-locker-multiple:before{content:"󰟘"}.mdi-login:before{content:"󰍂"}.mdi-login-variant:before{content:"󰗼"}.mdi-logout:before{content:"󰍃"}.mdi-logout-variant:before{content:"󰗽"}.mdi-longitude:before{content:"󰽚"}.mdi-looks:before{content:"󰍄"}.mdi-lotion:before{content:"󱖂"}.mdi-lotion-outline:before{content:"󱖃"}.mdi-lotion-plus:before{content:"󱖄"}.mdi-lotion-plus-outline:before{content:"󱖅"}.mdi-loupe:before{content:"󰍅"}.mdi-lumx:before{content:"󰍆"}.mdi-lungs:before{content:"󱂄"}.mdi-mace:before{content:"󱡃"}.mdi-magazine-pistol:before{content:"󰌤"}.mdi-magazine-rifle:before{content:"󰌣"}.mdi-magic-staff:before{content:"󱡄"}.mdi-magnet:before{content:"󰍇"}.mdi-magnet-on:before{content:"󰍈"}.mdi-magnify:before{content:"󰍉"}.mdi-magnify-close:before{content:"󰦀"}.mdi-magnify-expand:before{content:"󱡴"}.mdi-magnify-minus:before{content:"󰍊"}.mdi-magnify-minus-cursor:before{content:"󰩢"}.mdi-magnify-minus-outline:before{content:"󰛬"}.mdi-magnify-plus:before{content:"󰍋"}.mdi-magnify-plus-cursor:before{content:"󰩣"}.mdi-magnify-plus-outline:before{content:"󰛭"}.mdi-magnify-remove-cursor:before{content:"󱈌"}.mdi-magnify-remove-outline:before{content:"󱈍"}.mdi-magnify-scan:before{content:"󱉶"}.mdi-mail:before{content:"󰺻"}.mdi-mailbox:before{content:"󰛮"}.mdi-mailbox-open:before{content:"󰶈"}.mdi-mailbox-open-outline:before{content:"󰶉"}.mdi-mailbox-open-up:before{content:"󰶊"}.mdi-mailbox-open-up-outline:before{content:"󰶋"}.mdi-mailbox-outline:before{content:"󰶌"}.mdi-mailbox-up:before{content:"󰶍"}.mdi-mailbox-up-outline:before{content:"󰶎"}.mdi-manjaro:before{content:"󱘊"}.mdi-map:before{content:"󰍍"}.mdi-map-check:before{content:"󰺼"}.mdi-map-check-outline:before{content:"󰺽"}.mdi-map-clock:before{content:"󰴞"}.mdi-map-clock-outline:before{content:"󰴟"}.mdi-map-legend:before{content:"󰨁"}.mdi-map-marker:before{content:"󰍎"}.mdi-map-marker-account:before{content:"󱣣"}.mdi-map-marker-account-outline:before{content:"󱣤"}.mdi-map-marker-alert:before{content:"󰼅"}.mdi-map-marker-alert-outline:before{content:"󰼆"}.mdi-map-marker-check:before{content:"󰲕"}.mdi-map-marker-check-outline:before{content:"󱋻"}.mdi-map-marker-circle:before{content:"󰍏"}.mdi-map-marker-distance:before{content:"󰣰"}.mdi-map-marker-down:before{content:"󱄂"}.mdi-map-marker-left:before{content:"󱋛"}.mdi-map-marker-left-outline:before{content:"󱋝"}.mdi-map-marker-minus:before{content:"󰙐"}.mdi-map-marker-minus-outline:before{content:"󱋹"}.mdi-map-marker-multiple:before{content:"󰍐"}.mdi-map-marker-multiple-outline:before{content:"󱉷"}.mdi-map-marker-off:before{content:"󰍑"}.mdi-map-marker-off-outline:before{content:"󱋽"}.mdi-map-marker-outline:before{content:"󰟙"}.mdi-map-marker-path:before{content:"󰴠"}.mdi-map-marker-plus:before{content:"󰙑"}.mdi-map-marker-plus-outline:before{content:"󱋸"}.mdi-map-marker-question:before{content:"󰼇"}.mdi-map-marker-question-outline:before{content:"󰼈"}.mdi-map-marker-radius:before{content:"󰍒"}.mdi-map-marker-radius-outline:before{content:"󱋼"}.mdi-map-marker-remove:before{content:"󰼉"}.mdi-map-marker-remove-outline:before{content:"󱋺"}.mdi-map-marker-remove-variant:before{content:"󰼊"}.mdi-map-marker-right:before{content:"󱋜"}.mdi-map-marker-right-outline:before{content:"󱋞"}.mdi-map-marker-star:before{content:"󱘈"}.mdi-map-marker-star-outline:before{content:"󱘉"}.mdi-map-marker-up:before{content:"󱄃"}.mdi-map-minus:before{content:"󰦁"}.mdi-map-outline:before{content:"󰦂"}.mdi-map-plus:before{content:"󰦃"}.mdi-map-search:before{content:"󰦄"}.mdi-map-search-outline:before{content:"󰦅"}.mdi-mapbox:before{content:"󰮪"}.mdi-margin:before{content:"󰍓"}.mdi-marker:before{content:"󰙒"}.mdi-marker-cancel:before{content:"󰷙"}.mdi-marker-check:before{content:"󰍕"}.mdi-mastodon:before{content:"󰫑"}.mdi-material-design:before{content:"󰦆"}.mdi-material-ui:before{content:"󰍗"}.mdi-math-compass:before{content:"󰍘"}.mdi-math-cos:before{content:"󰲖"}.mdi-math-integral:before{content:"󰿈"}.mdi-math-integral-box:before{content:"󰿉"}.mdi-math-log:before{content:"󱂅"}.mdi-math-norm:before{content:"󰿊"}.mdi-math-norm-box:before{content:"󰿋"}.mdi-math-sin:before{content:"󰲗"}.mdi-math-tan:before{content:"󰲘"}.mdi-matrix:before{content:"󰘨"}.mdi-medal:before{content:"󰦇"}.mdi-medal-outline:before{content:"󱌦"}.mdi-medical-bag:before{content:"󰛯"}.mdi-medical-cotton-swab:before{content:"󱪸"}.mdi-medication:before{content:"󱬔"}.mdi-medication-outline:before{content:"󱬕"}.mdi-meditation:before{content:"󱅻"}.mdi-memory:before{content:"󰍛"}.mdi-memory-arrow-down:before{content:"󱲦"}.mdi-menorah:before{content:"󱟔"}.mdi-menorah-fire:before{content:"󱟕"}.mdi-menu:before{content:"󰍜"}.mdi-menu-close:before{content:"󱲐"}.mdi-menu-down:before{content:"󰍝"}.mdi-menu-down-outline:before{content:"󰚶"}.mdi-menu-left:before{content:"󰍞"}.mdi-menu-left-outline:before{content:"󰨂"}.mdi-menu-open:before{content:"󰮫"}.mdi-menu-right:before{content:"󰍟"}.mdi-menu-right-outline:before{content:"󰨃"}.mdi-menu-swap:before{content:"󰩤"}.mdi-menu-swap-outline:before{content:"󰩥"}.mdi-menu-up:before{content:"󰍠"}.mdi-menu-up-outline:before{content:"󰚷"}.mdi-merge:before{content:"󰽜"}.mdi-message:before{content:"󰍡"}.mdi-message-alert:before{content:"󰍢"}.mdi-message-alert-outline:before{content:"󰨄"}.mdi-message-arrow-left:before{content:"󱋲"}.mdi-message-arrow-left-outline:before{content:"󱋳"}.mdi-message-arrow-right:before{content:"󱋴"}.mdi-message-arrow-right-outline:before{content:"󱋵"}.mdi-message-badge:before{content:"󱥁"}.mdi-message-badge-outline:before{content:"󱥂"}.mdi-message-bookmark:before{content:"󱖬"}.mdi-message-bookmark-outline:before{content:"󱖭"}.mdi-message-bulleted:before{content:"󰚢"}.mdi-message-bulleted-off:before{content:"󰚣"}.mdi-message-check:before{content:"󱮊"}.mdi-message-check-outline:before{content:"󱮋"}.mdi-message-cog:before{content:"󰛱"}.mdi-message-cog-outline:before{content:"󱅲"}.mdi-message-draw:before{content:"󰍣"}.mdi-message-fast:before{content:"󱧌"}.mdi-message-fast-outline:before{content:"󱧍"}.mdi-message-flash:before{content:"󱖩"}.mdi-message-flash-outline:before{content:"󱖪"}.mdi-message-image:before{content:"󰍤"}.mdi-message-image-outline:before{content:"󱅬"}.mdi-message-lock:before{content:"󰿌"}.mdi-message-lock-outline:before{content:"󱅭"}.mdi-message-minus:before{content:"󱅮"}.mdi-message-minus-outline:before{content:"󱅯"}.mdi-message-off:before{content:"󱙍"}.mdi-message-off-outline:before{content:"󱙎"}.mdi-message-outline:before{content:"󰍥"}.mdi-message-plus:before{content:"󰙓"}.mdi-message-plus-outline:before{content:"󱂻"}.mdi-message-processing:before{content:"󰍦"}.mdi-message-processing-outline:before{content:"󱅰"}.mdi-message-question:before{content:"󱜺"}.mdi-message-question-outline:before{content:"󱜻"}.mdi-message-reply:before{content:"󰍧"}.mdi-message-reply-outline:before{content:"󱜽"}.mdi-message-reply-text:before{content:"󰍨"}.mdi-message-reply-text-outline:before{content:"󱜾"}.mdi-message-settings:before{content:"󰛰"}.mdi-message-settings-outline:before{content:"󱅱"}.mdi-message-star:before{content:"󰚚"}.mdi-message-star-outline:before{content:"󱉐"}.mdi-message-text:before{content:"󰍩"}.mdi-message-text-clock:before{content:"󱅳"}.mdi-message-text-clock-outline:before{content:"󱅴"}.mdi-message-text-fast:before{content:"󱧎"}.mdi-message-text-fast-outline:before{content:"󱧏"}.mdi-message-text-lock:before{content:"󰿍"}.mdi-message-text-lock-outline:before{content:"󱅵"}.mdi-message-text-outline:before{content:"󰍪"}.mdi-message-video:before{content:"󰍫"}.mdi-meteor:before{content:"󰘩"}.mdi-meter-electric:before{content:"󱩗"}.mdi-meter-electric-outline:before{content:"󱩘"}.mdi-meter-gas:before{content:"󱩙"}.mdi-meter-gas-outline:before{content:"󱩚"}.mdi-metronome:before{content:"󰟚"}.mdi-metronome-tick:before{content:"󰟛"}.mdi-micro-sd:before{content:"󰟜"}.mdi-microphone:before{content:"󰍬"}.mdi-microphone-message:before{content:"󰔊"}.mdi-microphone-message-off:before{content:"󰔋"}.mdi-microphone-minus:before{content:"󰢳"}.mdi-microphone-off:before{content:"󰍭"}.mdi-microphone-outline:before{content:"󰍮"}.mdi-microphone-plus:before{content:"󰢴"}.mdi-microphone-question:before{content:"󱦉"}.mdi-microphone-question-outline:before{content:"󱦊"}.mdi-microphone-settings:before{content:"󰍯"}.mdi-microphone-variant:before{content:"󰍰"}.mdi-microphone-variant-off:before{content:"󰍱"}.mdi-microscope:before{content:"󰙔"}.mdi-microsoft:before{content:"󰍲"}.mdi-microsoft-access:before{content:"󱎎"}.mdi-microsoft-azure:before{content:"󰠅"}.mdi-microsoft-azure-devops:before{content:"󰿕"}.mdi-microsoft-bing:before{content:"󰂤"}.mdi-microsoft-dynamics-365:before{content:"󰦈"}.mdi-microsoft-edge:before{content:"󰇩"}.mdi-microsoft-excel:before{content:"󱎏"}.mdi-microsoft-internet-explorer:before{content:"󰌀"}.mdi-microsoft-office:before{content:"󰏆"}.mdi-microsoft-onedrive:before{content:"󰏊"}.mdi-microsoft-onenote:before{content:"󰝇"}.mdi-microsoft-outlook:before{content:"󰴢"}.mdi-microsoft-powerpoint:before{content:"󱎐"}.mdi-microsoft-sharepoint:before{content:"󱎑"}.mdi-microsoft-teams:before{content:"󰊻"}.mdi-microsoft-visual-studio:before{content:"󰘐"}.mdi-microsoft-visual-studio-code:before{content:"󰨞"}.mdi-microsoft-windows:before{content:"󰖳"}.mdi-microsoft-windows-classic:before{content:"󰨡"}.mdi-microsoft-word:before{content:"󱎒"}.mdi-microsoft-xbox:before{content:"󰖹"}.mdi-microsoft-xbox-controller:before{content:"󰖺"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"󰝋"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"󰨢"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"󰝌"}.mdi-microsoft-xbox-controller-battery-full:before{content:"󰝍"}.mdi-microsoft-xbox-controller-battery-low:before{content:"󰝎"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"󰝏"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"󰝐"}.mdi-microsoft-xbox-controller-menu:before{content:"󰹯"}.mdi-microsoft-xbox-controller-off:before{content:"󰖻"}.mdi-microsoft-xbox-controller-view:before{content:"󰹰"}.mdi-microwave:before{content:"󰲙"}.mdi-microwave-off:before{content:"󱐣"}.mdi-middleware:before{content:"󰽝"}.mdi-middleware-outline:before{content:"󰽞"}.mdi-midi:before{content:"󰣱"}.mdi-midi-port:before{content:"󰣲"}.mdi-mine:before{content:"󰷚"}.mdi-minecraft:before{content:"󰍳"}.mdi-mini-sd:before{content:"󰨅"}.mdi-minidisc:before{content:"󰨆"}.mdi-minus:before{content:"󰍴"}.mdi-minus-box:before{content:"󰍵"}.mdi-minus-box-multiple:before{content:"󱅁"}.mdi-minus-box-multiple-outline:before{content:"󱅂"}.mdi-minus-box-outline:before{content:"󰛲"}.mdi-minus-circle:before{content:"󰍶"}.mdi-minus-circle-multiple:before{content:"󰍚"}.mdi-minus-circle-multiple-outline:before{content:"󰫓"}.mdi-minus-circle-off:before{content:"󱑙"}.mdi-minus-circle-off-outline:before{content:"󱑚"}.mdi-minus-circle-outline:before{content:"󰍷"}.mdi-minus-network:before{content:"󰍸"}.mdi-minus-network-outline:before{content:"󰲚"}.mdi-minus-thick:before{content:"󱘹"}.mdi-mirror:before{content:"󱇽"}.mdi-mirror-rectangle:before{content:"󱞟"}.mdi-mirror-variant:before{content:"󱞠"}.mdi-mixed-martial-arts:before{content:"󰶏"}.mdi-mixed-reality:before{content:"󰡿"}.mdi-molecule:before{content:"󰮬"}.mdi-molecule-co:before{content:"󱋾"}.mdi-molecule-co2:before{content:"󰟤"}.mdi-monitor:before{content:"󰍹"}.mdi-monitor-account:before{content:"󱩛"}.mdi-monitor-arrow-down:before{content:"󱧐"}.mdi-monitor-arrow-down-variant:before{content:"󱧑"}.mdi-monitor-cellphone:before{content:"󰦉"}.mdi-monitor-cellphone-star:before{content:"󰦊"}.mdi-monitor-dashboard:before{content:"󰨇"}.mdi-monitor-edit:before{content:"󱋆"}.mdi-monitor-eye:before{content:"󱎴"}.mdi-monitor-lock:before{content:"󰷛"}.mdi-monitor-multiple:before{content:"󰍺"}.mdi-monitor-off:before{content:"󰶐"}.mdi-monitor-screenshot:before{content:"󰹑"}.mdi-monitor-share:before{content:"󱒃"}.mdi-monitor-shimmer:before{content:"󱄄"}.mdi-monitor-small:before{content:"󱡶"}.mdi-monitor-speaker:before{content:"󰽟"}.mdi-monitor-speaker-off:before{content:"󰽠"}.mdi-monitor-star:before{content:"󰷜"}.mdi-monitor-vertical:before{content:"󱰳"}.mdi-moon-first-quarter:before{content:"󰽡"}.mdi-moon-full:before{content:"󰽢"}.mdi-moon-last-quarter:before{content:"󰽣"}.mdi-moon-new:before{content:"󰽤"}.mdi-moon-waning-crescent:before{content:"󰽥"}.mdi-moon-waning-gibbous:before{content:"󰽦"}.mdi-moon-waxing-crescent:before{content:"󰽧"}.mdi-moon-waxing-gibbous:before{content:"󰽨"}.mdi-moped:before{content:"󱂆"}.mdi-moped-electric:before{content:"󱖷"}.mdi-moped-electric-outline:before{content:"󱖸"}.mdi-moped-outline:before{content:"󱖹"}.mdi-more:before{content:"󰍻"}.mdi-mortar-pestle:before{content:"󱝈"}.mdi-mortar-pestle-plus:before{content:"󰏱"}.mdi-mosque:before{content:"󰵅"}.mdi-mosque-outline:before{content:"󱠧"}.mdi-mother-heart:before{content:"󱌔"}.mdi-mother-nurse:before{content:"󰴡"}.mdi-motion:before{content:"󱖲"}.mdi-motion-outline:before{content:"󱖳"}.mdi-motion-pause:before{content:"󱖐"}.mdi-motion-pause-outline:before{content:"󱖒"}.mdi-motion-play:before{content:"󱖏"}.mdi-motion-play-outline:before{content:"󱖑"}.mdi-motion-sensor:before{content:"󰶑"}.mdi-motion-sensor-off:before{content:"󱐵"}.mdi-motorbike:before{content:"󰍼"}.mdi-motorbike-electric:before{content:"󱖺"}.mdi-motorbike-off:before{content:"󱬖"}.mdi-mouse:before{content:"󰍽"}.mdi-mouse-bluetooth:before{content:"󰦋"}.mdi-mouse-move-down:before{content:"󱕐"}.mdi-mouse-move-up:before{content:"󱕑"}.mdi-mouse-move-vertical:before{content:"󱕒"}.mdi-mouse-off:before{content:"󰍾"}.mdi-mouse-variant:before{content:"󰍿"}.mdi-mouse-variant-off:before{content:"󰎀"}.mdi-move-resize:before{content:"󰙕"}.mdi-move-resize-variant:before{content:"󰙖"}.mdi-movie:before{content:"󰎁"}.mdi-movie-check:before{content:"󱛳"}.mdi-movie-check-outline:before{content:"󱛴"}.mdi-movie-cog:before{content:"󱛵"}.mdi-movie-cog-outline:before{content:"󱛶"}.mdi-movie-edit:before{content:"󱄢"}.mdi-movie-edit-outline:before{content:"󱄣"}.mdi-movie-filter:before{content:"󱄤"}.mdi-movie-filter-outline:before{content:"󱄥"}.mdi-movie-minus:before{content:"󱛷"}.mdi-movie-minus-outline:before{content:"󱛸"}.mdi-movie-off:before{content:"󱛹"}.mdi-movie-off-outline:before{content:"󱛺"}.mdi-movie-open:before{content:"󰿎"}.mdi-movie-open-check:before{content:"󱛻"}.mdi-movie-open-check-outline:before{content:"󱛼"}.mdi-movie-open-cog:before{content:"󱛽"}.mdi-movie-open-cog-outline:before{content:"󱛾"}.mdi-movie-open-edit:before{content:"󱛿"}.mdi-movie-open-edit-outline:before{content:"󱜀"}.mdi-movie-open-minus:before{content:"󱜁"}.mdi-movie-open-minus-outline:before{content:"󱜂"}.mdi-movie-open-off:before{content:"󱜃"}.mdi-movie-open-off-outline:before{content:"󱜄"}.mdi-movie-open-outline:before{content:"󰿏"}.mdi-movie-open-play:before{content:"󱜅"}.mdi-movie-open-play-outline:before{content:"󱜆"}.mdi-movie-open-plus:before{content:"󱜇"}.mdi-movie-open-plus-outline:before{content:"󱜈"}.mdi-movie-open-remove:before{content:"󱜉"}.mdi-movie-open-remove-outline:before{content:"󱜊"}.mdi-movie-open-settings:before{content:"󱜋"}.mdi-movie-open-settings-outline:before{content:"󱜌"}.mdi-movie-open-star:before{content:"󱜍"}.mdi-movie-open-star-outline:before{content:"󱜎"}.mdi-movie-outline:before{content:"󰷝"}.mdi-movie-play:before{content:"󱜏"}.mdi-movie-play-outline:before{content:"󱜐"}.mdi-movie-plus:before{content:"󱜑"}.mdi-movie-plus-outline:before{content:"󱜒"}.mdi-movie-remove:before{content:"󱜓"}.mdi-movie-remove-outline:before{content:"󱜔"}.mdi-movie-roll:before{content:"󰟞"}.mdi-movie-search:before{content:"󱇒"}.mdi-movie-search-outline:before{content:"󱇓"}.mdi-movie-settings:before{content:"󱜕"}.mdi-movie-settings-outline:before{content:"󱜖"}.mdi-movie-star:before{content:"󱜗"}.mdi-movie-star-outline:before{content:"󱜘"}.mdi-mower:before{content:"󱙯"}.mdi-mower-bag:before{content:"󱙰"}.mdi-mower-bag-on:before{content:"󱭠"}.mdi-mower-on:before{content:"󱭟"}.mdi-muffin:before{content:"󰦌"}.mdi-multicast:before{content:"󱢓"}.mdi-multimedia:before{content:"󱮗"}.mdi-multiplication:before{content:"󰎂"}.mdi-multiplication-box:before{content:"󰎃"}.mdi-mushroom:before{content:"󰟟"}.mdi-mushroom-off:before{content:"󱏺"}.mdi-mushroom-off-outline:before{content:"󱏻"}.mdi-mushroom-outline:before{content:"󰟠"}.mdi-music:before{content:"󰝚"}.mdi-music-accidental-double-flat:before{content:"󰽩"}.mdi-music-accidental-double-sharp:before{content:"󰽪"}.mdi-music-accidental-flat:before{content:"󰽫"}.mdi-music-accidental-natural:before{content:"󰽬"}.mdi-music-accidental-sharp:before{content:"󰽭"}.mdi-music-box:before{content:"󰎄"}.mdi-music-box-multiple:before{content:"󰌳"}.mdi-music-box-multiple-outline:before{content:"󰼄"}.mdi-music-box-outline:before{content:"󰎅"}.mdi-music-circle:before{content:"󰎆"}.mdi-music-circle-outline:before{content:"󰫔"}.mdi-music-clef-alto:before{content:"󰽮"}.mdi-music-clef-bass:before{content:"󰽯"}.mdi-music-clef-treble:before{content:"󰽰"}.mdi-music-note:before{content:"󰎇"}.mdi-music-note-bluetooth:before{content:"󰗾"}.mdi-music-note-bluetooth-off:before{content:"󰗿"}.mdi-music-note-eighth:before{content:"󰎈"}.mdi-music-note-eighth-dotted:before{content:"󰽱"}.mdi-music-note-half:before{content:"󰎉"}.mdi-music-note-half-dotted:before{content:"󰽲"}.mdi-music-note-minus:before{content:"󱮉"}.mdi-music-note-off:before{content:"󰎊"}.mdi-music-note-off-outline:before{content:"󰽳"}.mdi-music-note-outline:before{content:"󰽴"}.mdi-music-note-plus:before{content:"󰷞"}.mdi-music-note-quarter:before{content:"󰎋"}.mdi-music-note-quarter-dotted:before{content:"󰽵"}.mdi-music-note-sixteenth:before{content:"󰎌"}.mdi-music-note-sixteenth-dotted:before{content:"󰽶"}.mdi-music-note-whole:before{content:"󰎍"}.mdi-music-note-whole-dotted:before{content:"󰽷"}.mdi-music-off:before{content:"󰝛"}.mdi-music-rest-eighth:before{content:"󰽸"}.mdi-music-rest-half:before{content:"󰽹"}.mdi-music-rest-quarter:before{content:"󰽺"}.mdi-music-rest-sixteenth:before{content:"󰽻"}.mdi-music-rest-whole:before{content:"󰽼"}.mdi-mustache:before{content:"󱗞"}.mdi-nail:before{content:"󰷟"}.mdi-nas:before{content:"󰣳"}.mdi-nativescript:before{content:"󰢀"}.mdi-nature:before{content:"󰎎"}.mdi-nature-outline:before{content:"󱱱"}.mdi-nature-people:before{content:"󰎏"}.mdi-nature-people-outline:before{content:"󱱲"}.mdi-navigation:before{content:"󰎐"}.mdi-navigation-outline:before{content:"󱘇"}.mdi-navigation-variant:before{content:"󱣰"}.mdi-navigation-variant-outline:before{content:"󱣱"}.mdi-near-me:before{content:"󰗍"}.mdi-necklace:before{content:"󰼋"}.mdi-needle:before{content:"󰎑"}.mdi-needle-off:before{content:"󱧒"}.mdi-netflix:before{content:"󰝆"}.mdi-network:before{content:"󰛳"}.mdi-network-off:before{content:"󰲛"}.mdi-network-off-outline:before{content:"󰲜"}.mdi-network-outline:before{content:"󰲝"}.mdi-network-pos:before{content:"󱫋"}.mdi-network-strength-1:before{content:"󰣴"}.mdi-network-strength-1-alert:before{content:"󰣵"}.mdi-network-strength-2:before{content:"󰣶"}.mdi-network-strength-2-alert:before{content:"󰣷"}.mdi-network-strength-3:before{content:"󰣸"}.mdi-network-strength-3-alert:before{content:"󰣹"}.mdi-network-strength-4:before{content:"󰣺"}.mdi-network-strength-4-alert:before{content:"󰣻"}.mdi-network-strength-4-cog:before{content:"󱤚"}.mdi-network-strength-off:before{content:"󰣼"}.mdi-network-strength-off-outline:before{content:"󰣽"}.mdi-network-strength-outline:before{content:"󰣾"}.mdi-new-box:before{content:"󰎔"}.mdi-newspaper:before{content:"󰎕"}.mdi-newspaper-check:before{content:"󱥃"}.mdi-newspaper-minus:before{content:"󰼌"}.mdi-newspaper-plus:before{content:"󰼍"}.mdi-newspaper-remove:before{content:"󱥄"}.mdi-newspaper-variant:before{content:"󱀁"}.mdi-newspaper-variant-multiple:before{content:"󱀂"}.mdi-newspaper-variant-multiple-outline:before{content:"󱀃"}.mdi-newspaper-variant-outline:before{content:"󱀄"}.mdi-nfc:before{content:"󰎖"}.mdi-nfc-search-variant:before{content:"󰹓"}.mdi-nfc-tap:before{content:"󰎗"}.mdi-nfc-variant:before{content:"󰎘"}.mdi-nfc-variant-off:before{content:"󰹔"}.mdi-ninja:before{content:"󰝴"}.mdi-nintendo-game-boy:before{content:"󱎓"}.mdi-nintendo-switch:before{content:"󰟡"}.mdi-nintendo-wii:before{content:"󰖫"}.mdi-nintendo-wiiu:before{content:"󰜭"}.mdi-nix:before{content:"󱄅"}.mdi-nodejs:before{content:"󰎙"}.mdi-noodles:before{content:"󱅾"}.mdi-not-equal:before{content:"󰦍"}.mdi-not-equal-variant:before{content:"󰦎"}.mdi-note:before{content:"󰎚"}.mdi-note-alert:before{content:"󱝽"}.mdi-note-alert-outline:before{content:"󱝾"}.mdi-note-check:before{content:"󱝿"}.mdi-note-check-outline:before{content:"󱞀"}.mdi-note-edit:before{content:"󱞁"}.mdi-note-edit-outline:before{content:"󱞂"}.mdi-note-minus:before{content:"󱙏"}.mdi-note-minus-outline:before{content:"󱙐"}.mdi-note-multiple:before{content:"󰚸"}.mdi-note-multiple-outline:before{content:"󰚹"}.mdi-note-off:before{content:"󱞃"}.mdi-note-off-outline:before{content:"󱞄"}.mdi-note-outline:before{content:"󰎛"}.mdi-note-plus:before{content:"󰎜"}.mdi-note-plus-outline:before{content:"󰎝"}.mdi-note-remove:before{content:"󱙑"}.mdi-note-remove-outline:before{content:"󱙒"}.mdi-note-search:before{content:"󱙓"}.mdi-note-search-outline:before{content:"󱙔"}.mdi-note-text:before{content:"󰎞"}.mdi-note-text-outline:before{content:"󱇗"}.mdi-notebook:before{content:"󰠮"}.mdi-notebook-check:before{content:"󱓵"}.mdi-notebook-check-outline:before{content:"󱓶"}.mdi-notebook-edit:before{content:"󱓧"}.mdi-notebook-edit-outline:before{content:"󱓩"}.mdi-notebook-heart:before{content:"󱨋"}.mdi-notebook-heart-outline:before{content:"󱨌"}.mdi-notebook-minus:before{content:"󱘐"}.mdi-notebook-minus-outline:before{content:"󱘑"}.mdi-notebook-multiple:before{content:"󰹕"}.mdi-notebook-outline:before{content:"󰺿"}.mdi-notebook-plus:before{content:"󱘒"}.mdi-notebook-plus-outline:before{content:"󱘓"}.mdi-notebook-remove:before{content:"󱘔"}.mdi-notebook-remove-outline:before{content:"󱘕"}.mdi-notification-clear-all:before{content:"󰎟"}.mdi-npm:before{content:"󰛷"}.mdi-nuke:before{content:"󰚤"}.mdi-null:before{content:"󰟢"}.mdi-numeric:before{content:"󰎠"}.mdi-numeric-0:before{content:"󰬹"}.mdi-numeric-0-box:before{content:"󰎡"}.mdi-numeric-0-box-multiple:before{content:"󰼎"}.mdi-numeric-0-box-multiple-outline:before{content:"󰎢"}.mdi-numeric-0-box-outline:before{content:"󰎣"}.mdi-numeric-0-circle:before{content:"󰲞"}.mdi-numeric-0-circle-outline:before{content:"󰲟"}.mdi-numeric-1:before{content:"󰬺"}.mdi-numeric-1-box:before{content:"󰎤"}.mdi-numeric-1-box-multiple:before{content:"󰼏"}.mdi-numeric-1-box-multiple-outline:before{content:"󰎥"}.mdi-numeric-1-box-outline:before{content:"󰎦"}.mdi-numeric-1-circle:before{content:"󰲠"}.mdi-numeric-1-circle-outline:before{content:"󰲡"}.mdi-numeric-10:before{content:"󰿩"}.mdi-numeric-10-box:before{content:"󰽽"}.mdi-numeric-10-box-multiple:before{content:"󰿪"}.mdi-numeric-10-box-multiple-outline:before{content:"󰿫"}.mdi-numeric-10-box-outline:before{content:"󰽾"}.mdi-numeric-10-circle:before{content:"󰿬"}.mdi-numeric-10-circle-outline:before{content:"󰿭"}.mdi-numeric-2:before{content:"󰬻"}.mdi-numeric-2-box:before{content:"󰎧"}.mdi-numeric-2-box-multiple:before{content:"󰼐"}.mdi-numeric-2-box-multiple-outline:before{content:"󰎨"}.mdi-numeric-2-box-outline:before{content:"󰎩"}.mdi-numeric-2-circle:before{content:"󰲢"}.mdi-numeric-2-circle-outline:before{content:"󰲣"}.mdi-numeric-3:before{content:"󰬼"}.mdi-numeric-3-box:before{content:"󰎪"}.mdi-numeric-3-box-multiple:before{content:"󰼑"}.mdi-numeric-3-box-multiple-outline:before{content:"󰎫"}.mdi-numeric-3-box-outline:before{content:"󰎬"}.mdi-numeric-3-circle:before{content:"󰲤"}.mdi-numeric-3-circle-outline:before{content:"󰲥"}.mdi-numeric-4:before{content:"󰬽"}.mdi-numeric-4-box:before{content:"󰎭"}.mdi-numeric-4-box-multiple:before{content:"󰼒"}.mdi-numeric-4-box-multiple-outline:before{content:"󰎲"}.mdi-numeric-4-box-outline:before{content:"󰎮"}.mdi-numeric-4-circle:before{content:"󰲦"}.mdi-numeric-4-circle-outline:before{content:"󰲧"}.mdi-numeric-5:before{content:"󰬾"}.mdi-numeric-5-box:before{content:"󰎱"}.mdi-numeric-5-box-multiple:before{content:"󰼓"}.mdi-numeric-5-box-multiple-outline:before{content:"󰎯"}.mdi-numeric-5-box-outline:before{content:"󰎰"}.mdi-numeric-5-circle:before{content:"󰲨"}.mdi-numeric-5-circle-outline:before{content:"󰲩"}.mdi-numeric-6:before{content:"󰬿"}.mdi-numeric-6-box:before{content:"󰎳"}.mdi-numeric-6-box-multiple:before{content:"󰼔"}.mdi-numeric-6-box-multiple-outline:before{content:"󰎴"}.mdi-numeric-6-box-outline:before{content:"󰎵"}.mdi-numeric-6-circle:before{content:"󰲪"}.mdi-numeric-6-circle-outline:before{content:"󰲫"}.mdi-numeric-7:before{content:"󰭀"}.mdi-numeric-7-box:before{content:"󰎶"}.mdi-numeric-7-box-multiple:before{content:"󰼕"}.mdi-numeric-7-box-multiple-outline:before{content:"󰎷"}.mdi-numeric-7-box-outline:before{content:"󰎸"}.mdi-numeric-7-circle:before{content:"󰲬"}.mdi-numeric-7-circle-outline:before{content:"󰲭"}.mdi-numeric-8:before{content:"󰭁"}.mdi-numeric-8-box:before{content:"󰎹"}.mdi-numeric-8-box-multiple:before{content:"󰼖"}.mdi-numeric-8-box-multiple-outline:before{content:"󰎺"}.mdi-numeric-8-box-outline:before{content:"󰎻"}.mdi-numeric-8-circle:before{content:"󰲮"}.mdi-numeric-8-circle-outline:before{content:"󰲯"}.mdi-numeric-9:before{content:"󰭂"}.mdi-numeric-9-box:before{content:"󰎼"}.mdi-numeric-9-box-multiple:before{content:"󰼗"}.mdi-numeric-9-box-multiple-outline:before{content:"󰎽"}.mdi-numeric-9-box-outline:before{content:"󰎾"}.mdi-numeric-9-circle:before{content:"󰲰"}.mdi-numeric-9-circle-outline:before{content:"󰲱"}.mdi-numeric-9-plus:before{content:"󰿮"}.mdi-numeric-9-plus-box:before{content:"󰎿"}.mdi-numeric-9-plus-box-multiple:before{content:"󰼘"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"󰏀"}.mdi-numeric-9-plus-box-outline:before{content:"󰏁"}.mdi-numeric-9-plus-circle:before{content:"󰲲"}.mdi-numeric-9-plus-circle-outline:before{content:"󰲳"}.mdi-numeric-negative-1:before{content:"󱁒"}.mdi-numeric-off:before{content:"󱧓"}.mdi-numeric-positive-1:before{content:"󱗋"}.mdi-nut:before{content:"󰛸"}.mdi-nutrition:before{content:"󰏂"}.mdi-nuxt:before{content:"󱄆"}.mdi-oar:before{content:"󰙼"}.mdi-ocarina:before{content:"󰷠"}.mdi-oci:before{content:"󱋩"}.mdi-ocr:before{content:"󱄺"}.mdi-octagon:before{content:"󰏃"}.mdi-octagon-outline:before{content:"󰏄"}.mdi-octagram:before{content:"󰛹"}.mdi-octagram-edit:before{content:"󱰴"}.mdi-octagram-edit-outline:before{content:"󱰵"}.mdi-octagram-minus:before{content:"󱰶"}.mdi-octagram-minus-outline:before{content:"󱰷"}.mdi-octagram-outline:before{content:"󰝵"}.mdi-octagram-plus:before{content:"󱰸"}.mdi-octagram-plus-outline:before{content:"󱰹"}.mdi-octahedron:before{content:"󱥐"}.mdi-octahedron-off:before{content:"󱥑"}.mdi-odnoklassniki:before{content:"󰏅"}.mdi-offer:before{content:"󱈛"}.mdi-office-building:before{content:"󰦑"}.mdi-office-building-cog:before{content:"󱥉"}.mdi-office-building-cog-outline:before{content:"󱥊"}.mdi-office-building-marker:before{content:"󱔠"}.mdi-office-building-marker-outline:before{content:"󱔡"}.mdi-office-building-minus:before{content:"󱮪"}.mdi-office-building-minus-outline:before{content:"󱮫"}.mdi-office-building-outline:before{content:"󱔟"}.mdi-office-building-plus:before{content:"󱮨"}.mdi-office-building-plus-outline:before{content:"󱮩"}.mdi-office-building-remove:before{content:"󱮬"}.mdi-office-building-remove-outline:before{content:"󱮭"}.mdi-oil:before{content:"󰏇"}.mdi-oil-lamp:before{content:"󰼙"}.mdi-oil-level:before{content:"󱁓"}.mdi-oil-temperature:before{content:"󰿸"}.mdi-om:before{content:"󰥳"}.mdi-omega:before{content:"󰏉"}.mdi-one-up:before{content:"󰮭"}.mdi-onepassword:before{content:"󰢁"}.mdi-opacity:before{content:"󰗌"}.mdi-open-in-app:before{content:"󰏋"}.mdi-open-in-new:before{content:"󰏌"}.mdi-open-source-initiative:before{content:"󰮮"}.mdi-openid:before{content:"󰏍"}.mdi-opera:before{content:"󰏎"}.mdi-orbit:before{content:"󰀘"}.mdi-orbit-variant:before{content:"󱗛"}.mdi-order-alphabetical-ascending:before{content:"󰈍"}.mdi-order-alphabetical-descending:before{content:"󰴇"}.mdi-order-bool-ascending:before{content:"󰊾"}.mdi-order-bool-ascending-variant:before{content:"󰦏"}.mdi-order-bool-descending:before{content:"󱎄"}.mdi-order-bool-descending-variant:before{content:"󰦐"}.mdi-order-numeric-ascending:before{content:"󰕅"}.mdi-order-numeric-descending:before{content:"󰕆"}.mdi-origin:before{content:"󰭃"}.mdi-ornament:before{content:"󰏏"}.mdi-ornament-variant:before{content:"󰏐"}.mdi-outdoor-lamp:before{content:"󱁔"}.mdi-overscan:before{content:"󱀅"}.mdi-owl:before{content:"󰏒"}.mdi-pac-man:before{content:"󰮯"}.mdi-package:before{content:"󰏓"}.mdi-package-check:before{content:"󱭑"}.mdi-package-down:before{content:"󰏔"}.mdi-package-up:before{content:"󰏕"}.mdi-package-variant:before{content:"󰏖"}.mdi-package-variant-closed:before{content:"󰏗"}.mdi-package-variant-closed-check:before{content:"󱭒"}.mdi-package-variant-closed-minus:before{content:"󱧔"}.mdi-package-variant-closed-plus:before{content:"󱧕"}.mdi-package-variant-closed-remove:before{content:"󱧖"}.mdi-package-variant-minus:before{content:"󱧗"}.mdi-package-variant-plus:before{content:"󱧘"}.mdi-package-variant-remove:before{content:"󱧙"}.mdi-page-first:before{content:"󰘀"}.mdi-page-last:before{content:"󰘁"}.mdi-page-layout-body:before{content:"󰛺"}.mdi-page-layout-footer:before{content:"󰛻"}.mdi-page-layout-header:before{content:"󰛼"}.mdi-page-layout-header-footer:before{content:"󰽿"}.mdi-page-layout-sidebar-left:before{content:"󰛽"}.mdi-page-layout-sidebar-right:before{content:"󰛾"}.mdi-page-next:before{content:"󰮰"}.mdi-page-next-outline:before{content:"󰮱"}.mdi-page-previous:before{content:"󰮲"}.mdi-page-previous-outline:before{content:"󰮳"}.mdi-pail:before{content:"󱐗"}.mdi-pail-minus:before{content:"󱐷"}.mdi-pail-minus-outline:before{content:"󱐼"}.mdi-pail-off:before{content:"󱐹"}.mdi-pail-off-outline:before{content:"󱐾"}.mdi-pail-outline:before{content:"󱐺"}.mdi-pail-plus:before{content:"󱐶"}.mdi-pail-plus-outline:before{content:"󱐻"}.mdi-pail-remove:before{content:"󱐸"}.mdi-pail-remove-outline:before{content:"󱐽"}.mdi-palette:before{content:"󰏘"}.mdi-palette-advanced:before{content:"󰏙"}.mdi-palette-outline:before{content:"󰸌"}.mdi-palette-swatch:before{content:"󰢵"}.mdi-palette-swatch-outline:before{content:"󱍜"}.mdi-palette-swatch-variant:before{content:"󱥚"}.mdi-palm-tree:before{content:"󱁕"}.mdi-pan:before{content:"󰮴"}.mdi-pan-bottom-left:before{content:"󰮵"}.mdi-pan-bottom-right:before{content:"󰮶"}.mdi-pan-down:before{content:"󰮷"}.mdi-pan-horizontal:before{content:"󰮸"}.mdi-pan-left:before{content:"󰮹"}.mdi-pan-right:before{content:"󰮺"}.mdi-pan-top-left:before{content:"󰮻"}.mdi-pan-top-right:before{content:"󰮼"}.mdi-pan-up:before{content:"󰮽"}.mdi-pan-vertical:before{content:"󰮾"}.mdi-panda:before{content:"󰏚"}.mdi-pandora:before{content:"󰏛"}.mdi-panorama:before{content:"󰏜"}.mdi-panorama-fisheye:before{content:"󰏝"}.mdi-panorama-horizontal:before{content:"󱤨"}.mdi-panorama-horizontal-outline:before{content:"󰏞"}.mdi-panorama-outline:before{content:"󱦌"}.mdi-panorama-sphere:before{content:"󱦍"}.mdi-panorama-sphere-outline:before{content:"󱦎"}.mdi-panorama-variant:before{content:"󱦏"}.mdi-panorama-variant-outline:before{content:"󱦐"}.mdi-panorama-vertical:before{content:"󱤩"}.mdi-panorama-vertical-outline:before{content:"󰏟"}.mdi-panorama-wide-angle:before{content:"󱥟"}.mdi-panorama-wide-angle-outline:before{content:"󰏠"}.mdi-paper-cut-vertical:before{content:"󰏡"}.mdi-paper-roll:before{content:"󱅗"}.mdi-paper-roll-outline:before{content:"󱅘"}.mdi-paperclip:before{content:"󰏢"}.mdi-paperclip-check:before{content:"󱫆"}.mdi-paperclip-lock:before{content:"󱧚"}.mdi-paperclip-minus:before{content:"󱫇"}.mdi-paperclip-off:before{content:"󱫈"}.mdi-paperclip-plus:before{content:"󱫉"}.mdi-paperclip-remove:before{content:"󱫊"}.mdi-parachute:before{content:"󰲴"}.mdi-parachute-outline:before{content:"󰲵"}.mdi-paragliding:before{content:"󱝅"}.mdi-parking:before{content:"󰏣"}.mdi-party-popper:before{content:"󱁖"}.mdi-passport:before{content:"󰟣"}.mdi-passport-alert:before{content:"󱲸"}.mdi-passport-biometric:before{content:"󰷡"}.mdi-passport-cancel:before{content:"󱲹"}.mdi-passport-check:before{content:"󱲺"}.mdi-passport-minus:before{content:"󱲻"}.mdi-passport-plus:before{content:"󱲼"}.mdi-passport-remove:before{content:"󱲽"}.mdi-pasta:before{content:"󱅠"}.mdi-patio-heater:before{content:"󰾀"}.mdi-patreon:before{content:"󰢂"}.mdi-pause:before{content:"󰏤"}.mdi-pause-box:before{content:"󰂼"}.mdi-pause-box-outline:before{content:"󱭺"}.mdi-pause-circle:before{content:"󰏥"}.mdi-pause-circle-outline:before{content:"󰏦"}.mdi-pause-octagon:before{content:"󰏧"}.mdi-pause-octagon-outline:before{content:"󰏨"}.mdi-paw:before{content:"󰏩"}.mdi-paw-off:before{content:"󰙗"}.mdi-paw-off-outline:before{content:"󱙶"}.mdi-paw-outline:before{content:"󱙵"}.mdi-peace:before{content:"󰢄"}.mdi-peanut:before{content:"󰿼"}.mdi-peanut-off:before{content:"󰿽"}.mdi-peanut-off-outline:before{content:"󰿿"}.mdi-peanut-outline:before{content:"󰿾"}.mdi-pen:before{content:"󰏪"}.mdi-pen-lock:before{content:"󰷢"}.mdi-pen-minus:before{content:"󰷣"}.mdi-pen-off:before{content:"󰷤"}.mdi-pen-plus:before{content:"󰷥"}.mdi-pen-remove:before{content:"󰷦"}.mdi-pencil:before{content:"󰏫"}.mdi-pencil-box:before{content:"󰏬"}.mdi-pencil-box-multiple:before{content:"󱅄"}.mdi-pencil-box-multiple-outline:before{content:"󱅅"}.mdi-pencil-box-outline:before{content:"󰏭"}.mdi-pencil-circle:before{content:"󰛿"}.mdi-pencil-circle-outline:before{content:"󰝶"}.mdi-pencil-lock:before{content:"󰏮"}.mdi-pencil-lock-outline:before{content:"󰷧"}.mdi-pencil-minus:before{content:"󰷨"}.mdi-pencil-minus-outline:before{content:"󰷩"}.mdi-pencil-off:before{content:"󰏯"}.mdi-pencil-off-outline:before{content:"󰷪"}.mdi-pencil-outline:before{content:"󰲶"}.mdi-pencil-plus:before{content:"󰷫"}.mdi-pencil-plus-outline:before{content:"󰷬"}.mdi-pencil-remove:before{content:"󰷭"}.mdi-pencil-remove-outline:before{content:"󰷮"}.mdi-pencil-ruler:before{content:"󱍓"}.mdi-pencil-ruler-outline:before{content:"󱰑"}.mdi-penguin:before{content:"󰻀"}.mdi-pentagon:before{content:"󰜁"}.mdi-pentagon-outline:before{content:"󰜀"}.mdi-pentagram:before{content:"󱙧"}.mdi-percent:before{content:"󰏰"}.mdi-percent-box:before{content:"󱨂"}.mdi-percent-box-outline:before{content:"󱨃"}.mdi-percent-circle:before{content:"󱨄"}.mdi-percent-circle-outline:before{content:"󱨅"}.mdi-percent-outline:before{content:"󱉸"}.mdi-periodic-table:before{content:"󰢶"}.mdi-perspective-less:before{content:"󰴣"}.mdi-perspective-more:before{content:"󰴤"}.mdi-ph:before{content:"󱟅"}.mdi-phone:before{content:"󰏲"}.mdi-phone-alert:before{content:"󰼚"}.mdi-phone-alert-outline:before{content:"󱆎"}.mdi-phone-bluetooth:before{content:"󰏳"}.mdi-phone-bluetooth-outline:before{content:"󱆏"}.mdi-phone-cancel:before{content:"󱂼"}.mdi-phone-cancel-outline:before{content:"󱆐"}.mdi-phone-check:before{content:"󱆩"}.mdi-phone-check-outline:before{content:"󱆪"}.mdi-phone-classic:before{content:"󰘂"}.mdi-phone-classic-off:before{content:"󱉹"}.mdi-phone-clock:before{content:"󱧛"}.mdi-phone-dial:before{content:"󱕙"}.mdi-phone-dial-outline:before{content:"󱕚"}.mdi-phone-forward:before{content:"󰏴"}.mdi-phone-forward-outline:before{content:"󱆑"}.mdi-phone-hangup:before{content:"󰏵"}.mdi-phone-hangup-outline:before{content:"󱆒"}.mdi-phone-in-talk:before{content:"󰏶"}.mdi-phone-in-talk-outline:before{content:"󱆂"}.mdi-phone-incoming:before{content:"󰏷"}.mdi-phone-incoming-outgoing:before{content:"󱬿"}.mdi-phone-incoming-outgoing-outline:before{content:"󱭀"}.mdi-phone-incoming-outline:before{content:"󱆓"}.mdi-phone-lock:before{content:"󰏸"}.mdi-phone-lock-outline:before{content:"󱆔"}.mdi-phone-log:before{content:"󰏹"}.mdi-phone-log-outline:before{content:"󱆕"}.mdi-phone-message:before{content:"󱆖"}.mdi-phone-message-outline:before{content:"󱆗"}.mdi-phone-minus:before{content:"󰙘"}.mdi-phone-minus-outline:before{content:"󱆘"}.mdi-phone-missed:before{content:"󰏺"}.mdi-phone-missed-outline:before{content:"󱆥"}.mdi-phone-off:before{content:"󰷯"}.mdi-phone-off-outline:before{content:"󱆦"}.mdi-phone-outgoing:before{content:"󰏻"}.mdi-phone-outgoing-outline:before{content:"󱆙"}.mdi-phone-outline:before{content:"󰷰"}.mdi-phone-paused:before{content:"󰏼"}.mdi-phone-paused-outline:before{content:"󱆚"}.mdi-phone-plus:before{content:"󰙙"}.mdi-phone-plus-outline:before{content:"󱆛"}.mdi-phone-refresh:before{content:"󱦓"}.mdi-phone-refresh-outline:before{content:"󱦔"}.mdi-phone-remove:before{content:"󱔯"}.mdi-phone-remove-outline:before{content:"󱔰"}.mdi-phone-return:before{content:"󰠯"}.mdi-phone-return-outline:before{content:"󱆜"}.mdi-phone-ring:before{content:"󱆫"}.mdi-phone-ring-outline:before{content:"󱆬"}.mdi-phone-rotate-landscape:before{content:"󰢅"}.mdi-phone-rotate-portrait:before{content:"󰢆"}.mdi-phone-settings:before{content:"󰏽"}.mdi-phone-settings-outline:before{content:"󱆝"}.mdi-phone-sync:before{content:"󱦕"}.mdi-phone-sync-outline:before{content:"󱦖"}.mdi-phone-voip:before{content:"󰏾"}.mdi-pi:before{content:"󰏿"}.mdi-pi-box:before{content:"󰐀"}.mdi-pi-hole:before{content:"󰷱"}.mdi-piano:before{content:"󰙽"}.mdi-piano-off:before{content:"󰚘"}.mdi-pickaxe:before{content:"󰢷"}.mdi-picture-in-picture-bottom-right:before{content:"󰹗"}.mdi-picture-in-picture-bottom-right-outline:before{content:"󰹘"}.mdi-picture-in-picture-top-right:before{content:"󰹙"}.mdi-picture-in-picture-top-right-outline:before{content:"󰹚"}.mdi-pier:before{content:"󰢇"}.mdi-pier-crane:before{content:"󰢈"}.mdi-pig:before{content:"󰐁"}.mdi-pig-variant:before{content:"󱀆"}.mdi-pig-variant-outline:before{content:"󱙸"}.mdi-piggy-bank:before{content:"󱀇"}.mdi-piggy-bank-outline:before{content:"󱙹"}.mdi-pill:before{content:"󰐂"}.mdi-pill-multiple:before{content:"󱭌"}.mdi-pill-off:before{content:"󱩜"}.mdi-pillar:before{content:"󰜂"}.mdi-pin:before{content:"󰐃"}.mdi-pin-off:before{content:"󰐄"}.mdi-pin-off-outline:before{content:"󰤰"}.mdi-pin-outline:before{content:"󰤱"}.mdi-pine-tree:before{content:"󰐅"}.mdi-pine-tree-box:before{content:"󰐆"}.mdi-pine-tree-fire:before{content:"󱐚"}.mdi-pine-tree-variant:before{content:"󱱳"}.mdi-pine-tree-variant-outline:before{content:"󱱴"}.mdi-pinterest:before{content:"󰐇"}.mdi-pinwheel:before{content:"󰫕"}.mdi-pinwheel-outline:before{content:"󰫖"}.mdi-pipe:before{content:"󰟥"}.mdi-pipe-disconnected:before{content:"󰟦"}.mdi-pipe-leak:before{content:"󰢉"}.mdi-pipe-valve:before{content:"󱡍"}.mdi-pipe-wrench:before{content:"󱍔"}.mdi-pirate:before{content:"󰨈"}.mdi-pistol:before{content:"󰜃"}.mdi-piston:before{content:"󰢊"}.mdi-pitchfork:before{content:"󱕓"}.mdi-pizza:before{content:"󰐉"}.mdi-plane-car:before{content:"󱫿"}.mdi-plane-train:before{content:"󱬀"}.mdi-play:before{content:"󰐊"}.mdi-play-box:before{content:"󱉺"}.mdi-play-box-edit-outline:before{content:"󱰺"}.mdi-play-box-lock:before{content:"󱨖"}.mdi-play-box-lock-open:before{content:"󱨗"}.mdi-play-box-lock-open-outline:before{content:"󱨘"}.mdi-play-box-lock-outline:before{content:"󱨙"}.mdi-play-box-multiple:before{content:"󰴙"}.mdi-play-box-multiple-outline:before{content:"󱏦"}.mdi-play-box-outline:before{content:"󰐋"}.mdi-play-circle:before{content:"󰐌"}.mdi-play-circle-outline:before{content:"󰐍"}.mdi-play-network:before{content:"󰢋"}.mdi-play-network-outline:before{content:"󰲷"}.mdi-play-outline:before{content:"󰼛"}.mdi-play-pause:before{content:"󰐎"}.mdi-play-protected-content:before{content:"󰐏"}.mdi-play-speed:before{content:"󰣿"}.mdi-playlist-check:before{content:"󰗇"}.mdi-playlist-edit:before{content:"󰤀"}.mdi-playlist-minus:before{content:"󰐐"}.mdi-playlist-music:before{content:"󰲸"}.mdi-playlist-music-outline:before{content:"󰲹"}.mdi-playlist-play:before{content:"󰐑"}.mdi-playlist-plus:before{content:"󰐒"}.mdi-playlist-remove:before{content:"󰐓"}.mdi-playlist-star:before{content:"󰷲"}.mdi-plex:before{content:"󰚺"}.mdi-pliers:before{content:"󱦤"}.mdi-plus:before{content:"󰐕"}.mdi-plus-box:before{content:"󰐖"}.mdi-plus-box-multiple:before{content:"󰌴"}.mdi-plus-box-multiple-outline:before{content:"󱅃"}.mdi-plus-box-outline:before{content:"󰜄"}.mdi-plus-circle:before{content:"󰐗"}.mdi-plus-circle-multiple:before{content:"󰍌"}.mdi-plus-circle-multiple-outline:before{content:"󰐘"}.mdi-plus-circle-outline:before{content:"󰐙"}.mdi-plus-lock:before{content:"󱩝"}.mdi-plus-lock-open:before{content:"󱩞"}.mdi-plus-minus:before{content:"󰦒"}.mdi-plus-minus-box:before{content:"󰦓"}.mdi-plus-minus-variant:before{content:"󱓉"}.mdi-plus-network:before{content:"󰐚"}.mdi-plus-network-outline:before{content:"󰲺"}.mdi-plus-outline:before{content:"󰜅"}.mdi-plus-thick:before{content:"󱇬"}.mdi-pocket:before{content:"󱲾"}.mdi-podcast:before{content:"󰦔"}.mdi-podium:before{content:"󰴥"}.mdi-podium-bronze:before{content:"󰴦"}.mdi-podium-gold:before{content:"󰴧"}.mdi-podium-silver:before{content:"󰴨"}.mdi-point-of-sale:before{content:"󰶒"}.mdi-pokeball:before{content:"󰐝"}.mdi-pokemon-go:before{content:"󰨉"}.mdi-poker-chip:before{content:"󰠰"}.mdi-polaroid:before{content:"󰐞"}.mdi-police-badge:before{content:"󱅧"}.mdi-police-badge-outline:before{content:"󱅨"}.mdi-police-station:before{content:"󱠹"}.mdi-poll:before{content:"󰐟"}.mdi-polo:before{content:"󱓃"}.mdi-polymer:before{content:"󰐡"}.mdi-pool:before{content:"󰘆"}.mdi-pool-thermometer:before{content:"󱩟"}.mdi-popcorn:before{content:"󰐢"}.mdi-post:before{content:"󱀈"}.mdi-post-lamp:before{content:"󱩠"}.mdi-post-outline:before{content:"󱀉"}.mdi-postage-stamp:before{content:"󰲻"}.mdi-pot:before{content:"󰋥"}.mdi-pot-mix:before{content:"󰙛"}.mdi-pot-mix-outline:before{content:"󰙷"}.mdi-pot-outline:before{content:"󰋿"}.mdi-pot-steam:before{content:"󰙚"}.mdi-pot-steam-outline:before{content:"󰌦"}.mdi-pound:before{content:"󰐣"}.mdi-pound-box:before{content:"󰐤"}.mdi-pound-box-outline:before{content:"󱅿"}.mdi-power:before{content:"󰐥"}.mdi-power-cycle:before{content:"󰤁"}.mdi-power-off:before{content:"󰤂"}.mdi-power-on:before{content:"󰤃"}.mdi-power-plug:before{content:"󰚥"}.mdi-power-plug-battery:before{content:"󱰻"}.mdi-power-plug-battery-outline:before{content:"󱰼"}.mdi-power-plug-off:before{content:"󰚦"}.mdi-power-plug-off-outline:before{content:"󱐤"}.mdi-power-plug-outline:before{content:"󱐥"}.mdi-power-settings:before{content:"󰐦"}.mdi-power-sleep:before{content:"󰤄"}.mdi-power-socket:before{content:"󰐧"}.mdi-power-socket-au:before{content:"󰤅"}.mdi-power-socket-ch:before{content:"󰾳"}.mdi-power-socket-de:before{content:"󱄇"}.mdi-power-socket-eu:before{content:"󰟧"}.mdi-power-socket-fr:before{content:"󱄈"}.mdi-power-socket-it:before{content:"󱓿"}.mdi-power-socket-jp:before{content:"󱄉"}.mdi-power-socket-uk:before{content:"󰟨"}.mdi-power-socket-us:before{content:"󰟩"}.mdi-power-standby:before{content:"󰤆"}.mdi-powershell:before{content:"󰨊"}.mdi-prescription:before{content:"󰜆"}.mdi-presentation:before{content:"󰐨"}.mdi-presentation-play:before{content:"󰐩"}.mdi-pretzel:before{content:"󱕢"}.mdi-printer:before{content:"󰐪"}.mdi-printer-3d:before{content:"󰐫"}.mdi-printer-3d-nozzle:before{content:"󰹛"}.mdi-printer-3d-nozzle-alert:before{content:"󱇀"}.mdi-printer-3d-nozzle-alert-outline:before{content:"󱇁"}.mdi-printer-3d-nozzle-heat:before{content:"󱢸"}.mdi-printer-3d-nozzle-heat-outline:before{content:"󱢹"}.mdi-printer-3d-nozzle-off:before{content:"󱬙"}.mdi-printer-3d-nozzle-off-outline:before{content:"󱬚"}.mdi-printer-3d-nozzle-outline:before{content:"󰹜"}.mdi-printer-3d-off:before{content:"󱬎"}.mdi-printer-alert:before{content:"󰐬"}.mdi-printer-check:before{content:"󱅆"}.mdi-printer-eye:before{content:"󱑘"}.mdi-printer-off:before{content:"󰹝"}.mdi-printer-off-outline:before{content:"󱞅"}.mdi-printer-outline:before{content:"󱞆"}.mdi-printer-pos:before{content:"󱁗"}.mdi-printer-pos-alert:before{content:"󱮼"}.mdi-printer-pos-alert-outline:before{content:"󱮽"}.mdi-printer-pos-cancel:before{content:"󱮾"}.mdi-printer-pos-cancel-outline:before{content:"󱮿"}.mdi-printer-pos-check:before{content:"󱯀"}.mdi-printer-pos-check-outline:before{content:"󱯁"}.mdi-printer-pos-cog:before{content:"󱯂"}.mdi-printer-pos-cog-outline:before{content:"󱯃"}.mdi-printer-pos-edit:before{content:"󱯄"}.mdi-printer-pos-edit-outline:before{content:"󱯅"}.mdi-printer-pos-minus:before{content:"󱯆"}.mdi-printer-pos-minus-outline:before{content:"󱯇"}.mdi-printer-pos-network:before{content:"󱯈"}.mdi-printer-pos-network-outline:before{content:"󱯉"}.mdi-printer-pos-off:before{content:"󱯊"}.mdi-printer-pos-off-outline:before{content:"󱯋"}.mdi-printer-pos-outline:before{content:"󱯌"}.mdi-printer-pos-pause:before{content:"󱯍"}.mdi-printer-pos-pause-outline:before{content:"󱯎"}.mdi-printer-pos-play:before{content:"󱯏"}.mdi-printer-pos-play-outline:before{content:"󱯐"}.mdi-printer-pos-plus:before{content:"󱯑"}.mdi-printer-pos-plus-outline:before{content:"󱯒"}.mdi-printer-pos-refresh:before{content:"󱯓"}.mdi-printer-pos-refresh-outline:before{content:"󱯔"}.mdi-printer-pos-remove:before{content:"󱯕"}.mdi-printer-pos-remove-outline:before{content:"󱯖"}.mdi-printer-pos-star:before{content:"󱯗"}.mdi-printer-pos-star-outline:before{content:"󱯘"}.mdi-printer-pos-stop:before{content:"󱯙"}.mdi-printer-pos-stop-outline:before{content:"󱯚"}.mdi-printer-pos-sync:before{content:"󱯛"}.mdi-printer-pos-sync-outline:before{content:"󱯜"}.mdi-printer-pos-wrench:before{content:"󱯝"}.mdi-printer-pos-wrench-outline:before{content:"󱯞"}.mdi-printer-search:before{content:"󱑗"}.mdi-printer-settings:before{content:"󰜇"}.mdi-printer-wireless:before{content:"󰨋"}.mdi-priority-high:before{content:"󰘃"}.mdi-priority-low:before{content:"󰘄"}.mdi-professional-hexagon:before{content:"󰐭"}.mdi-progress-alert:before{content:"󰲼"}.mdi-progress-check:before{content:"󰦕"}.mdi-progress-clock:before{content:"󰦖"}.mdi-progress-close:before{content:"󱄊"}.mdi-progress-download:before{content:"󰦗"}.mdi-progress-helper:before{content:"󱮢"}.mdi-progress-pencil:before{content:"󱞇"}.mdi-progress-question:before{content:"󱔢"}.mdi-progress-star:before{content:"󱞈"}.mdi-progress-star-four-points:before{content:"󱰽"}.mdi-progress-upload:before{content:"󰦘"}.mdi-progress-wrench:before{content:"󰲽"}.mdi-projector:before{content:"󰐮"}.mdi-projector-off:before{content:"󱨣"}.mdi-projector-screen:before{content:"󰐯"}.mdi-projector-screen-off:before{content:"󱠍"}.mdi-projector-screen-off-outline:before{content:"󱠎"}.mdi-projector-screen-outline:before{content:"󱜤"}.mdi-projector-screen-variant:before{content:"󱠏"}.mdi-projector-screen-variant-off:before{content:"󱠐"}.mdi-projector-screen-variant-off-outline:before{content:"󱠑"}.mdi-projector-screen-variant-outline:before{content:"󱠒"}.mdi-propane-tank:before{content:"󱍗"}.mdi-propane-tank-outline:before{content:"󱍘"}.mdi-protocol:before{content:"󰿘"}.mdi-publish:before{content:"󰚧"}.mdi-publish-off:before{content:"󱥅"}.mdi-pulse:before{content:"󰐰"}.mdi-pump:before{content:"󱐂"}.mdi-pump-off:before{content:"󱬢"}.mdi-pumpkin:before{content:"󰮿"}.mdi-purse:before{content:"󰼜"}.mdi-purse-outline:before{content:"󰼝"}.mdi-puzzle:before{content:"󰐱"}.mdi-puzzle-check:before{content:"󱐦"}.mdi-puzzle-check-outline:before{content:"󱐧"}.mdi-puzzle-edit:before{content:"󱓓"}.mdi-puzzle-edit-outline:before{content:"󱓙"}.mdi-puzzle-heart:before{content:"󱓔"}.mdi-puzzle-heart-outline:before{content:"󱓚"}.mdi-puzzle-minus:before{content:"󱓑"}.mdi-puzzle-minus-outline:before{content:"󱓗"}.mdi-puzzle-outline:before{content:"󰩦"}.mdi-puzzle-plus:before{content:"󱓐"}.mdi-puzzle-plus-outline:before{content:"󱓖"}.mdi-puzzle-remove:before{content:"󱓒"}.mdi-puzzle-remove-outline:before{content:"󱓘"}.mdi-puzzle-star:before{content:"󱓕"}.mdi-puzzle-star-outline:before{content:"󱓛"}.mdi-pyramid:before{content:"󱥒"}.mdi-pyramid-off:before{content:"󱥓"}.mdi-qi:before{content:"󰦙"}.mdi-qqchat:before{content:"󰘅"}.mdi-qrcode:before{content:"󰐲"}.mdi-qrcode-edit:before{content:"󰢸"}.mdi-qrcode-minus:before{content:"󱆌"}.mdi-qrcode-plus:before{content:"󱆋"}.mdi-qrcode-remove:before{content:"󱆍"}.mdi-qrcode-scan:before{content:"󰐳"}.mdi-quadcopter:before{content:"󰐴"}.mdi-quality-high:before{content:"󰐵"}.mdi-quality-low:before{content:"󰨌"}.mdi-quality-medium:before{content:"󰨍"}.mdi-queue-first-in-last-out:before{content:"󱲯"}.mdi-quora:before{content:"󰴩"}.mdi-rabbit:before{content:"󰤇"}.mdi-rabbit-variant:before{content:"󱩡"}.mdi-rabbit-variant-outline:before{content:"󱩢"}.mdi-racing-helmet:before{content:"󰶓"}.mdi-racquetball:before{content:"󰶔"}.mdi-radar:before{content:"󰐷"}.mdi-radiator:before{content:"󰐸"}.mdi-radiator-disabled:before{content:"󰫗"}.mdi-radiator-off:before{content:"󰫘"}.mdi-radio:before{content:"󰐹"}.mdi-radio-am:before{content:"󰲾"}.mdi-radio-fm:before{content:"󰲿"}.mdi-radio-handheld:before{content:"󰐺"}.mdi-radio-off:before{content:"󱈜"}.mdi-radio-tower:before{content:"󰐻"}.mdi-radioactive:before{content:"󰐼"}.mdi-radioactive-circle:before{content:"󱡝"}.mdi-radioactive-circle-outline:before{content:"󱡞"}.mdi-radioactive-off:before{content:"󰻁"}.mdi-radiobox-blank:before{content:"󰐽"}.mdi-radiobox-indeterminate-variant:before{content:"󱱞"}.mdi-radiobox-marked:before{content:"󰐾"}.mdi-radiology-box:before{content:"󱓅"}.mdi-radiology-box-outline:before{content:"󱓆"}.mdi-radius:before{content:"󰳀"}.mdi-radius-outline:before{content:"󰳁"}.mdi-railroad-light:before{content:"󰼞"}.mdi-rake:before{content:"󱕄"}.mdi-raspberry-pi:before{content:"󰐿"}.mdi-raw:before{content:"󱨏"}.mdi-raw-off:before{content:"󱨐"}.mdi-ray-end:before{content:"󰑀"}.mdi-ray-end-arrow:before{content:"󰑁"}.mdi-ray-start:before{content:"󰑂"}.mdi-ray-start-arrow:before{content:"󰑃"}.mdi-ray-start-end:before{content:"󰑄"}.mdi-ray-start-vertex-end:before{content:"󱗘"}.mdi-ray-vertex:before{content:"󰑅"}.mdi-razor-double-edge:before{content:"󱦗"}.mdi-razor-single-edge:before{content:"󱦘"}.mdi-react:before{content:"󰜈"}.mdi-read:before{content:"󰑇"}.mdi-receipt:before{content:"󰠤"}.mdi-receipt-clock:before{content:"󱰾"}.mdi-receipt-clock-outline:before{content:"󱰿"}.mdi-receipt-outline:before{content:"󰓷"}.mdi-receipt-send:before{content:"󱱀"}.mdi-receipt-send-outline:before{content:"󱱁"}.mdi-receipt-text:before{content:"󰑉"}.mdi-receipt-text-arrow-left:before{content:"󱱂"}.mdi-receipt-text-arrow-left-outline:before{content:"󱱃"}.mdi-receipt-text-arrow-right:before{content:"󱱄"}.mdi-receipt-text-arrow-right-outline:before{content:"󱱅"}.mdi-receipt-text-check:before{content:"󱩣"}.mdi-receipt-text-check-outline:before{content:"󱩤"}.mdi-receipt-text-clock:before{content:"󱱆"}.mdi-receipt-text-clock-outline:before{content:"󱱇"}.mdi-receipt-text-edit:before{content:"󱱈"}.mdi-receipt-text-edit-outline:before{content:"󱱉"}.mdi-receipt-text-minus:before{content:"󱩥"}.mdi-receipt-text-minus-outline:before{content:"󱩦"}.mdi-receipt-text-outline:before{content:"󱧜"}.mdi-receipt-text-plus:before{content:"󱩧"}.mdi-receipt-text-plus-outline:before{content:"󱩨"}.mdi-receipt-text-remove:before{content:"󱩩"}.mdi-receipt-text-remove-outline:before{content:"󱩪"}.mdi-receipt-text-send:before{content:"󱱊"}.mdi-receipt-text-send-outline:before{content:"󱱋"}.mdi-record:before{content:"󰑊"}.mdi-record-circle:before{content:"󰻂"}.mdi-record-circle-outline:before{content:"󰻃"}.mdi-record-player:before{content:"󰦚"}.mdi-record-rec:before{content:"󰑋"}.mdi-rectangle:before{content:"󰹞"}.mdi-rectangle-outline:before{content:"󰹟"}.mdi-recycle:before{content:"󰑌"}.mdi-recycle-variant:before{content:"󱎝"}.mdi-reddit:before{content:"󰑍"}.mdi-redhat:before{content:"󱄛"}.mdi-redo:before{content:"󰑎"}.mdi-redo-variant:before{content:"󰑏"}.mdi-reflect-horizontal:before{content:"󰨎"}.mdi-reflect-vertical:before{content:"󰨏"}.mdi-refresh:before{content:"󰑐"}.mdi-refresh-auto:before{content:"󱣲"}.mdi-refresh-circle:before{content:"󱍷"}.mdi-regex:before{content:"󰑑"}.mdi-registered-trademark:before{content:"󰩧"}.mdi-reiterate:before{content:"󱖈"}.mdi-relation-many-to-many:before{content:"󱒖"}.mdi-relation-many-to-one:before{content:"󱒗"}.mdi-relation-many-to-one-or-many:before{content:"󱒘"}.mdi-relation-many-to-only-one:before{content:"󱒙"}.mdi-relation-many-to-zero-or-many:before{content:"󱒚"}.mdi-relation-many-to-zero-or-one:before{content:"󱒛"}.mdi-relation-one-or-many-to-many:before{content:"󱒜"}.mdi-relation-one-or-many-to-one:before{content:"󱒝"}.mdi-relation-one-or-many-to-one-or-many:before{content:"󱒞"}.mdi-relation-one-or-many-to-only-one:before{content:"󱒟"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"󱒠"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"󱒡"}.mdi-relation-one-to-many:before{content:"󱒢"}.mdi-relation-one-to-one:before{content:"󱒣"}.mdi-relation-one-to-one-or-many:before{content:"󱒤"}.mdi-relation-one-to-only-one:before{content:"󱒥"}.mdi-relation-one-to-zero-or-many:before{content:"󱒦"}.mdi-relation-one-to-zero-or-one:before{content:"󱒧"}.mdi-relation-only-one-to-many:before{content:"󱒨"}.mdi-relation-only-one-to-one:before{content:"󱒩"}.mdi-relation-only-one-to-one-or-many:before{content:"󱒪"}.mdi-relation-only-one-to-only-one:before{content:"󱒫"}.mdi-relation-only-one-to-zero-or-many:before{content:"󱒬"}.mdi-relation-only-one-to-zero-or-one:before{content:"󱒭"}.mdi-relation-zero-or-many-to-many:before{content:"󱒮"}.mdi-relation-zero-or-many-to-one:before{content:"󱒯"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"󱒰"}.mdi-relation-zero-or-many-to-only-one:before{content:"󱒱"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"󱒲"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"󱒳"}.mdi-relation-zero-or-one-to-many:before{content:"󱒴"}.mdi-relation-zero-or-one-to-one:before{content:"󱒵"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"󱒶"}.mdi-relation-zero-or-one-to-only-one:before{content:"󱒷"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"󱒸"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"󱒹"}.mdi-relative-scale:before{content:"󰑒"}.mdi-reload:before{content:"󰑓"}.mdi-reload-alert:before{content:"󱄋"}.mdi-reminder:before{content:"󰢌"}.mdi-remote:before{content:"󰑔"}.mdi-remote-desktop:before{content:"󰢹"}.mdi-remote-off:before{content:"󰻄"}.mdi-remote-tv:before{content:"󰻅"}.mdi-remote-tv-off:before{content:"󰻆"}.mdi-rename:before{content:"󱰘"}.mdi-rename-box:before{content:"󰑕"}.mdi-rename-box-outline:before{content:"󱰙"}.mdi-rename-outline:before{content:"󱰚"}.mdi-reorder-horizontal:before{content:"󰚈"}.mdi-reorder-vertical:before{content:"󰚉"}.mdi-repeat:before{content:"󰑖"}.mdi-repeat-off:before{content:"󰑗"}.mdi-repeat-once:before{content:"󰑘"}.mdi-repeat-variant:before{content:"󰕇"}.mdi-replay:before{content:"󰑙"}.mdi-reply:before{content:"󰑚"}.mdi-reply-all:before{content:"󰑛"}.mdi-reply-all-outline:before{content:"󰼟"}.mdi-reply-circle:before{content:"󱆮"}.mdi-reply-outline:before{content:"󰼠"}.mdi-reproduction:before{content:"󰑜"}.mdi-resistor:before{content:"󰭄"}.mdi-resistor-nodes:before{content:"󰭅"}.mdi-resize:before{content:"󰩨"}.mdi-resize-bottom-right:before{content:"󰑝"}.mdi-responsive:before{content:"󰑞"}.mdi-restart:before{content:"󰜉"}.mdi-restart-alert:before{content:"󱄌"}.mdi-restart-off:before{content:"󰶕"}.mdi-restore:before{content:"󰦛"}.mdi-restore-alert:before{content:"󱄍"}.mdi-rewind:before{content:"󰑟"}.mdi-rewind-10:before{content:"󰴪"}.mdi-rewind-15:before{content:"󱥆"}.mdi-rewind-30:before{content:"󰶖"}.mdi-rewind-45:before{content:"󱬓"}.mdi-rewind-5:before{content:"󱇹"}.mdi-rewind-60:before{content:"󱘌"}.mdi-rewind-outline:before{content:"󰜊"}.mdi-rhombus:before{content:"󰜋"}.mdi-rhombus-medium:before{content:"󰨐"}.mdi-rhombus-medium-outline:before{content:"󱓜"}.mdi-rhombus-outline:before{content:"󰜌"}.mdi-rhombus-split:before{content:"󰨑"}.mdi-rhombus-split-outline:before{content:"󱓝"}.mdi-ribbon:before{content:"󰑠"}.mdi-rice:before{content:"󰟪"}.mdi-rickshaw:before{content:"󱖻"}.mdi-rickshaw-electric:before{content:"󱖼"}.mdi-ring:before{content:"󰟫"}.mdi-rivet:before{content:"󰹠"}.mdi-road:before{content:"󰑡"}.mdi-road-variant:before{content:"󰑢"}.mdi-robber:before{content:"󱁘"}.mdi-robot:before{content:"󰚩"}.mdi-robot-angry:before{content:"󱚝"}.mdi-robot-angry-outline:before{content:"󱚞"}.mdi-robot-confused:before{content:"󱚟"}.mdi-robot-confused-outline:before{content:"󱚠"}.mdi-robot-dead:before{content:"󱚡"}.mdi-robot-dead-outline:before{content:"󱚢"}.mdi-robot-excited:before{content:"󱚣"}.mdi-robot-excited-outline:before{content:"󱚤"}.mdi-robot-happy:before{content:"󱜙"}.mdi-robot-happy-outline:before{content:"󱜚"}.mdi-robot-industrial:before{content:"󰭆"}.mdi-robot-industrial-outline:before{content:"󱨚"}.mdi-robot-love:before{content:"󱚥"}.mdi-robot-love-outline:before{content:"󱚦"}.mdi-robot-mower:before{content:"󱇷"}.mdi-robot-mower-outline:before{content:"󱇳"}.mdi-robot-off:before{content:"󱚧"}.mdi-robot-off-outline:before{content:"󱙻"}.mdi-robot-outline:before{content:"󱙺"}.mdi-robot-vacuum:before{content:"󰜍"}.mdi-robot-vacuum-alert:before{content:"󱭝"}.mdi-robot-vacuum-off:before{content:"󱰁"}.mdi-robot-vacuum-variant:before{content:"󰤈"}.mdi-robot-vacuum-variant-alert:before{content:"󱭞"}.mdi-robot-vacuum-variant-off:before{content:"󱰂"}.mdi-rocket:before{content:"󰑣"}.mdi-rocket-launch:before{content:"󱓞"}.mdi-rocket-launch-outline:before{content:"󱓟"}.mdi-rocket-outline:before{content:"󱎯"}.mdi-rodent:before{content:"󱌧"}.mdi-roller-shade:before{content:"󱩫"}.mdi-roller-shade-closed:before{content:"󱩬"}.mdi-roller-skate:before{content:"󰴫"}.mdi-roller-skate-off:before{content:"󰅅"}.mdi-rollerblade:before{content:"󰴬"}.mdi-rollerblade-off:before{content:"󰀮"}.mdi-rollupjs:before{content:"󰯀"}.mdi-rolodex:before{content:"󱪹"}.mdi-rolodex-outline:before{content:"󱪺"}.mdi-roman-numeral-1:before{content:"󱂈"}.mdi-roman-numeral-10:before{content:"󱂑"}.mdi-roman-numeral-2:before{content:"󱂉"}.mdi-roman-numeral-3:before{content:"󱂊"}.mdi-roman-numeral-4:before{content:"󱂋"}.mdi-roman-numeral-5:before{content:"󱂌"}.mdi-roman-numeral-6:before{content:"󱂍"}.mdi-roman-numeral-7:before{content:"󱂎"}.mdi-roman-numeral-8:before{content:"󱂏"}.mdi-roman-numeral-9:before{content:"󱂐"}.mdi-room-service:before{content:"󰢍"}.mdi-room-service-outline:before{content:"󰶗"}.mdi-rotate-360:before{content:"󱦙"}.mdi-rotate-3d:before{content:"󰻇"}.mdi-rotate-3d-variant:before{content:"󰑤"}.mdi-rotate-left:before{content:"󰑥"}.mdi-rotate-left-variant:before{content:"󰑦"}.mdi-rotate-orbit:before{content:"󰶘"}.mdi-rotate-right:before{content:"󰑧"}.mdi-rotate-right-variant:before{content:"󰑨"}.mdi-rounded-corner:before{content:"󰘇"}.mdi-router:before{content:"󱇢"}.mdi-router-network:before{content:"󱂇"}.mdi-router-network-wireless:before{content:"󱲗"}.mdi-router-wireless:before{content:"󰑩"}.mdi-router-wireless-off:before{content:"󱖣"}.mdi-router-wireless-settings:before{content:"󰩩"}.mdi-routes:before{content:"󰑪"}.mdi-routes-clock:before{content:"󱁙"}.mdi-rowing:before{content:"󰘈"}.mdi-rss:before{content:"󰑫"}.mdi-rss-box:before{content:"󰑬"}.mdi-rss-off:before{content:"󰼡"}.mdi-rug:before{content:"󱑵"}.mdi-rugby:before{content:"󰶙"}.mdi-ruler:before{content:"󰑭"}.mdi-ruler-square:before{content:"󰳂"}.mdi-ruler-square-compass:before{content:"󰺾"}.mdi-run:before{content:"󰜎"}.mdi-run-fast:before{content:"󰑮"}.mdi-rv-truck:before{content:"󱇔"}.mdi-sack:before{content:"󰴮"}.mdi-sack-outline:before{content:"󱱌"}.mdi-sack-percent:before{content:"󰴯"}.mdi-safe:before{content:"󰩪"}.mdi-safe-square:before{content:"󱉼"}.mdi-safe-square-outline:before{content:"󱉽"}.mdi-safety-goggles:before{content:"󰴰"}.mdi-sail-boat:before{content:"󰻈"}.mdi-sail-boat-sink:before{content:"󱫯"}.mdi-sale:before{content:"󰑯"}.mdi-sale-outline:before{content:"󱨆"}.mdi-salesforce:before{content:"󰢎"}.mdi-sass:before{content:"󰟬"}.mdi-satellite:before{content:"󰑰"}.mdi-satellite-uplink:before{content:"󰤉"}.mdi-satellite-variant:before{content:"󰑱"}.mdi-sausage:before{content:"󰢺"}.mdi-sausage-off:before{content:"󱞉"}.mdi-saw-blade:before{content:"󰹡"}.mdi-sawtooth-wave:before{content:"󱑺"}.mdi-saxophone:before{content:"󰘉"}.mdi-scale:before{content:"󰑲"}.mdi-scale-balance:before{content:"󰗑"}.mdi-scale-bathroom:before{content:"󰑳"}.mdi-scale-off:before{content:"󱁚"}.mdi-scale-unbalanced:before{content:"󱦸"}.mdi-scan-helper:before{content:"󱏘"}.mdi-scanner:before{content:"󰚫"}.mdi-scanner-off:before{content:"󰤊"}.mdi-scatter-plot:before{content:"󰻉"}.mdi-scatter-plot-outline:before{content:"󰻊"}.mdi-scent:before{content:"󱥘"}.mdi-scent-off:before{content:"󱥙"}.mdi-school:before{content:"󰑴"}.mdi-school-outline:before{content:"󱆀"}.mdi-scissors-cutting:before{content:"󰩫"}.mdi-scooter:before{content:"󱖽"}.mdi-scooter-electric:before{content:"󱖾"}.mdi-scoreboard:before{content:"󱉾"}.mdi-scoreboard-outline:before{content:"󱉿"}.mdi-screen-rotation:before{content:"󰑵"}.mdi-screen-rotation-lock:before{content:"󰑸"}.mdi-screw-flat-top:before{content:"󰷳"}.mdi-screw-lag:before{content:"󰷴"}.mdi-screw-machine-flat-top:before{content:"󰷵"}.mdi-screw-machine-round-top:before{content:"󰷶"}.mdi-screw-round-top:before{content:"󰷷"}.mdi-screwdriver:before{content:"󰑶"}.mdi-script:before{content:"󰯁"}.mdi-script-outline:before{content:"󰑷"}.mdi-script-text:before{content:"󰯂"}.mdi-script-text-key:before{content:"󱜥"}.mdi-script-text-key-outline:before{content:"󱜦"}.mdi-script-text-outline:before{content:"󰯃"}.mdi-script-text-play:before{content:"󱜧"}.mdi-script-text-play-outline:before{content:"󱜨"}.mdi-sd:before{content:"󰑹"}.mdi-seal:before{content:"󰑺"}.mdi-seal-variant:before{content:"󰿙"}.mdi-search-web:before{content:"󰜏"}.mdi-seat:before{content:"󰳃"}.mdi-seat-flat:before{content:"󰑻"}.mdi-seat-flat-angled:before{content:"󰑼"}.mdi-seat-individual-suite:before{content:"󰑽"}.mdi-seat-legroom-extra:before{content:"󰑾"}.mdi-seat-legroom-normal:before{content:"󰑿"}.mdi-seat-legroom-reduced:before{content:"󰒀"}.mdi-seat-outline:before{content:"󰳄"}.mdi-seat-passenger:before{content:"󱉉"}.mdi-seat-recline-extra:before{content:"󰒁"}.mdi-seat-recline-normal:before{content:"󰒂"}.mdi-seatbelt:before{content:"󰳅"}.mdi-security:before{content:"󰒃"}.mdi-security-network:before{content:"󰒄"}.mdi-seed:before{content:"󰹢"}.mdi-seed-off:before{content:"󱏽"}.mdi-seed-off-outline:before{content:"󱏾"}.mdi-seed-outline:before{content:"󰹣"}.mdi-seed-plus:before{content:"󱩭"}.mdi-seed-plus-outline:before{content:"󱩮"}.mdi-seesaw:before{content:"󱖤"}.mdi-segment:before{content:"󰻋"}.mdi-select:before{content:"󰒅"}.mdi-select-all:before{content:"󰒆"}.mdi-select-arrow-down:before{content:"󱭙"}.mdi-select-arrow-up:before{content:"󱭘"}.mdi-select-color:before{content:"󰴱"}.mdi-select-compare:before{content:"󰫙"}.mdi-select-drag:before{content:"󰩬"}.mdi-select-group:before{content:"󰾂"}.mdi-select-inverse:before{content:"󰒇"}.mdi-select-marker:before{content:"󱊀"}.mdi-select-multiple:before{content:"󱊁"}.mdi-select-multiple-marker:before{content:"󱊂"}.mdi-select-off:before{content:"󰒈"}.mdi-select-place:before{content:"󰿚"}.mdi-select-remove:before{content:"󱟁"}.mdi-select-search:before{content:"󱈄"}.mdi-selection:before{content:"󰒉"}.mdi-selection-drag:before{content:"󰩭"}.mdi-selection-ellipse:before{content:"󰴲"}.mdi-selection-ellipse-arrow-inside:before{content:"󰼢"}.mdi-selection-ellipse-remove:before{content:"󱟂"}.mdi-selection-marker:before{content:"󱊃"}.mdi-selection-multiple:before{content:"󱊅"}.mdi-selection-multiple-marker:before{content:"󱊄"}.mdi-selection-off:before{content:"󰝷"}.mdi-selection-remove:before{content:"󱟃"}.mdi-selection-search:before{content:"󱈅"}.mdi-semantic-web:before{content:"󱌖"}.mdi-send:before{content:"󰒊"}.mdi-send-check:before{content:"󱅡"}.mdi-send-check-outline:before{content:"󱅢"}.mdi-send-circle:before{content:"󰷸"}.mdi-send-circle-outline:before{content:"󰷹"}.mdi-send-clock:before{content:"󱅣"}.mdi-send-clock-outline:before{content:"󱅤"}.mdi-send-lock:before{content:"󰟭"}.mdi-send-lock-outline:before{content:"󱅦"}.mdi-send-outline:before{content:"󱅥"}.mdi-send-variant:before{content:"󱱍"}.mdi-send-variant-clock:before{content:"󱱾"}.mdi-send-variant-clock-outline:before{content:"󱱿"}.mdi-send-variant-outline:before{content:"󱱎"}.mdi-serial-port:before{content:"󰙜"}.mdi-server:before{content:"󰒋"}.mdi-server-minus:before{content:"󰒌"}.mdi-server-minus-outline:before{content:"󱲘"}.mdi-server-network:before{content:"󰒍"}.mdi-server-network-off:before{content:"󰒎"}.mdi-server-network-outline:before{content:"󱲙"}.mdi-server-off:before{content:"󰒏"}.mdi-server-outline:before{content:"󱲚"}.mdi-server-plus:before{content:"󰒐"}.mdi-server-plus-outline:before{content:"󱲛"}.mdi-server-remove:before{content:"󰒑"}.mdi-server-security:before{content:"󰒒"}.mdi-set-all:before{content:"󰝸"}.mdi-set-center:before{content:"󰝹"}.mdi-set-center-right:before{content:"󰝺"}.mdi-set-left:before{content:"󰝻"}.mdi-set-left-center:before{content:"󰝼"}.mdi-set-left-right:before{content:"󰝽"}.mdi-set-merge:before{content:"󱓠"}.mdi-set-none:before{content:"󰝾"}.mdi-set-right:before{content:"󰝿"}.mdi-set-split:before{content:"󱓡"}.mdi-set-square:before{content:"󱑝"}.mdi-set-top-box:before{content:"󰦟"}.mdi-settings-helper:before{content:"󰩮"}.mdi-shaker:before{content:"󱄎"}.mdi-shaker-outline:before{content:"󱄏"}.mdi-shape:before{content:"󰠱"}.mdi-shape-circle-plus:before{content:"󰙝"}.mdi-shape-outline:before{content:"󰠲"}.mdi-shape-oval-plus:before{content:"󱇺"}.mdi-shape-plus:before{content:"󰒕"}.mdi-shape-plus-outline:before{content:"󱱏"}.mdi-shape-polygon-plus:before{content:"󰙞"}.mdi-shape-rectangle-plus:before{content:"󰙟"}.mdi-shape-square-plus:before{content:"󰙠"}.mdi-shape-square-rounded-plus:before{content:"󱓺"}.mdi-share:before{content:"󰒖"}.mdi-share-all:before{content:"󱇴"}.mdi-share-all-outline:before{content:"󱇵"}.mdi-share-circle:before{content:"󱆭"}.mdi-share-off:before{content:"󰼣"}.mdi-share-off-outline:before{content:"󰼤"}.mdi-share-outline:before{content:"󰤲"}.mdi-share-variant:before{content:"󰒗"}.mdi-share-variant-outline:before{content:"󱔔"}.mdi-shark:before{content:"󱢺"}.mdi-shark-fin:before{content:"󱙳"}.mdi-shark-fin-outline:before{content:"󱙴"}.mdi-shark-off:before{content:"󱢻"}.mdi-sheep:before{content:"󰳆"}.mdi-shield:before{content:"󰒘"}.mdi-shield-account:before{content:"󰢏"}.mdi-shield-account-outline:before{content:"󰨒"}.mdi-shield-account-variant:before{content:"󱖧"}.mdi-shield-account-variant-outline:before{content:"󱖨"}.mdi-shield-airplane:before{content:"󰚻"}.mdi-shield-airplane-outline:before{content:"󰳇"}.mdi-shield-alert:before{content:"󰻌"}.mdi-shield-alert-outline:before{content:"󰻍"}.mdi-shield-bug:before{content:"󱏚"}.mdi-shield-bug-outline:before{content:"󱏛"}.mdi-shield-car:before{content:"󰾃"}.mdi-shield-check:before{content:"󰕥"}.mdi-shield-check-outline:before{content:"󰳈"}.mdi-shield-cross:before{content:"󰳉"}.mdi-shield-cross-outline:before{content:"󰳊"}.mdi-shield-crown:before{content:"󱢼"}.mdi-shield-crown-outline:before{content:"󱢽"}.mdi-shield-edit:before{content:"󱆠"}.mdi-shield-edit-outline:before{content:"󱆡"}.mdi-shield-half:before{content:"󱍠"}.mdi-shield-half-full:before{content:"󰞀"}.mdi-shield-home:before{content:"󰚊"}.mdi-shield-home-outline:before{content:"󰳋"}.mdi-shield-key:before{content:"󰯄"}.mdi-shield-key-outline:before{content:"󰯅"}.mdi-shield-link-variant:before{content:"󰴳"}.mdi-shield-link-variant-outline:before{content:"󰴴"}.mdi-shield-lock:before{content:"󰦝"}.mdi-shield-lock-open:before{content:"󱦚"}.mdi-shield-lock-open-outline:before{content:"󱦛"}.mdi-shield-lock-outline:before{content:"󰳌"}.mdi-shield-moon:before{content:"󱠨"}.mdi-shield-moon-outline:before{content:"󱠩"}.mdi-shield-off:before{content:"󰦞"}.mdi-shield-off-outline:before{content:"󰦜"}.mdi-shield-outline:before{content:"󰒙"}.mdi-shield-plus:before{content:"󰫚"}.mdi-shield-plus-outline:before{content:"󰫛"}.mdi-shield-refresh:before{content:"󰂪"}.mdi-shield-refresh-outline:before{content:"󰇠"}.mdi-shield-remove:before{content:"󰫜"}.mdi-shield-remove-outline:before{content:"󰫝"}.mdi-shield-search:before{content:"󰶚"}.mdi-shield-star:before{content:"󱄻"}.mdi-shield-star-outline:before{content:"󱄼"}.mdi-shield-sun:before{content:"󱁝"}.mdi-shield-sun-outline:before{content:"󱁞"}.mdi-shield-sword:before{content:"󱢾"}.mdi-shield-sword-outline:before{content:"󱢿"}.mdi-shield-sync:before{content:"󱆢"}.mdi-shield-sync-outline:before{content:"󱆣"}.mdi-shimmer:before{content:"󱕅"}.mdi-ship-wheel:before{content:"󰠳"}.mdi-shipping-pallet:before{content:"󱡎"}.mdi-shoe-ballet:before{content:"󱗊"}.mdi-shoe-cleat:before{content:"󱗇"}.mdi-shoe-formal:before{content:"󰭇"}.mdi-shoe-heel:before{content:"󰭈"}.mdi-shoe-print:before{content:"󰷺"}.mdi-shoe-sneaker:before{content:"󱗈"}.mdi-shopping:before{content:"󰒚"}.mdi-shopping-music:before{content:"󰒛"}.mdi-shopping-outline:before{content:"󱇕"}.mdi-shopping-search:before{content:"󰾄"}.mdi-shopping-search-outline:before{content:"󱩯"}.mdi-shore:before{content:"󱓹"}.mdi-shovel:before{content:"󰜐"}.mdi-shovel-off:before{content:"󰜑"}.mdi-shower:before{content:"󰦠"}.mdi-shower-head:before{content:"󰦡"}.mdi-shredder:before{content:"󰒜"}.mdi-shuffle:before{content:"󰒝"}.mdi-shuffle-disabled:before{content:"󰒞"}.mdi-shuffle-variant:before{content:"󰒟"}.mdi-shuriken:before{content:"󱍿"}.mdi-sickle:before{content:"󱣀"}.mdi-sigma:before{content:"󰒠"}.mdi-sigma-lower:before{content:"󰘫"}.mdi-sign-caution:before{content:"󰒡"}.mdi-sign-direction:before{content:"󰞁"}.mdi-sign-direction-minus:before{content:"󱀀"}.mdi-sign-direction-plus:before{content:"󰿜"}.mdi-sign-direction-remove:before{content:"󰿝"}.mdi-sign-language:before{content:"󱭍"}.mdi-sign-language-outline:before{content:"󱭎"}.mdi-sign-pole:before{content:"󱓸"}.mdi-sign-real-estate:before{content:"󱄘"}.mdi-sign-text:before{content:"󰞂"}.mdi-sign-yield:before{content:"󱮯"}.mdi-signal:before{content:"󰒢"}.mdi-signal-2g:before{content:"󰜒"}.mdi-signal-3g:before{content:"󰜓"}.mdi-signal-4g:before{content:"󰜔"}.mdi-signal-5g:before{content:"󰩯"}.mdi-signal-cellular-1:before{content:"󰢼"}.mdi-signal-cellular-2:before{content:"󰢽"}.mdi-signal-cellular-3:before{content:"󰢾"}.mdi-signal-cellular-outline:before{content:"󰢿"}.mdi-signal-distance-variant:before{content:"󰹤"}.mdi-signal-hspa:before{content:"󰜕"}.mdi-signal-hspa-plus:before{content:"󰜖"}.mdi-signal-off:before{content:"󰞃"}.mdi-signal-variant:before{content:"󰘊"}.mdi-signature:before{content:"󰷻"}.mdi-signature-freehand:before{content:"󰷼"}.mdi-signature-image:before{content:"󰷽"}.mdi-signature-text:before{content:"󰷾"}.mdi-silo:before{content:"󱮟"}.mdi-silo-outline:before{content:"󰭉"}.mdi-silverware:before{content:"󰒣"}.mdi-silverware-clean:before{content:"󰿞"}.mdi-silverware-fork:before{content:"󰒤"}.mdi-silverware-fork-knife:before{content:"󰩰"}.mdi-silverware-spoon:before{content:"󰒥"}.mdi-silverware-variant:before{content:"󰒦"}.mdi-sim:before{content:"󰒧"}.mdi-sim-alert:before{content:"󰒨"}.mdi-sim-alert-outline:before{content:"󱗓"}.mdi-sim-off:before{content:"󰒩"}.mdi-sim-off-outline:before{content:"󱗔"}.mdi-sim-outline:before{content:"󱗕"}.mdi-simple-icons:before{content:"󱌝"}.mdi-sina-weibo:before{content:"󰫟"}.mdi-sine-wave:before{content:"󰥛"}.mdi-sitemap:before{content:"󰒪"}.mdi-sitemap-outline:before{content:"󱦜"}.mdi-size-l:before{content:"󱎦"}.mdi-size-m:before{content:"󱎥"}.mdi-size-s:before{content:"󱎤"}.mdi-size-xl:before{content:"󱎧"}.mdi-size-xs:before{content:"󱎣"}.mdi-size-xxl:before{content:"󱎨"}.mdi-size-xxs:before{content:"󱎢"}.mdi-size-xxxl:before{content:"󱎩"}.mdi-skate:before{content:"󰴵"}.mdi-skate-off:before{content:"󰚙"}.mdi-skateboard:before{content:"󱓂"}.mdi-skateboarding:before{content:"󰔁"}.mdi-skew-less:before{content:"󰴶"}.mdi-skew-more:before{content:"󰴷"}.mdi-ski:before{content:"󱌄"}.mdi-ski-cross-country:before{content:"󱌅"}.mdi-ski-water:before{content:"󱌆"}.mdi-skip-backward:before{content:"󰒫"}.mdi-skip-backward-outline:before{content:"󰼥"}.mdi-skip-forward:before{content:"󰒬"}.mdi-skip-forward-outline:before{content:"󰼦"}.mdi-skip-next:before{content:"󰒭"}.mdi-skip-next-circle:before{content:"󰙡"}.mdi-skip-next-circle-outline:before{content:"󰙢"}.mdi-skip-next-outline:before{content:"󰼧"}.mdi-skip-previous:before{content:"󰒮"}.mdi-skip-previous-circle:before{content:"󰙣"}.mdi-skip-previous-circle-outline:before{content:"󰙤"}.mdi-skip-previous-outline:before{content:"󰼨"}.mdi-skull:before{content:"󰚌"}.mdi-skull-crossbones:before{content:"󰯆"}.mdi-skull-crossbones-outline:before{content:"󰯇"}.mdi-skull-outline:before{content:"󰯈"}.mdi-skull-scan:before{content:"󱓇"}.mdi-skull-scan-outline:before{content:"󱓈"}.mdi-skype:before{content:"󰒯"}.mdi-skype-business:before{content:"󰒰"}.mdi-slack:before{content:"󰒱"}.mdi-slash-forward:before{content:"󰿟"}.mdi-slash-forward-box:before{content:"󰿠"}.mdi-sledding:before{content:"󰐛"}.mdi-sleep:before{content:"󰒲"}.mdi-sleep-off:before{content:"󰒳"}.mdi-slide:before{content:"󱖥"}.mdi-slope-downhill:before{content:"󰷿"}.mdi-slope-uphill:before{content:"󰸀"}.mdi-slot-machine:before{content:"󱄔"}.mdi-slot-machine-outline:before{content:"󱄕"}.mdi-smart-card:before{content:"󱂽"}.mdi-smart-card-off:before{content:"󱣷"}.mdi-smart-card-off-outline:before{content:"󱣸"}.mdi-smart-card-outline:before{content:"󱂾"}.mdi-smart-card-reader:before{content:"󱂿"}.mdi-smart-card-reader-outline:before{content:"󱃀"}.mdi-smog:before{content:"󰩱"}.mdi-smoke:before{content:"󱞙"}.mdi-smoke-detector:before{content:"󰎒"}.mdi-smoke-detector-alert:before{content:"󱤮"}.mdi-smoke-detector-alert-outline:before{content:"󱤯"}.mdi-smoke-detector-off:before{content:"󱠉"}.mdi-smoke-detector-off-outline:before{content:"󱠊"}.mdi-smoke-detector-outline:before{content:"󱠈"}.mdi-smoke-detector-variant:before{content:"󱠋"}.mdi-smoke-detector-variant-alert:before{content:"󱤰"}.mdi-smoke-detector-variant-off:before{content:"󱠌"}.mdi-smoking:before{content:"󰒴"}.mdi-smoking-off:before{content:"󰒵"}.mdi-smoking-pipe:before{content:"󱐍"}.mdi-smoking-pipe-off:before{content:"󱐨"}.mdi-snail:before{content:"󱙷"}.mdi-snake:before{content:"󱔎"}.mdi-snapchat:before{content:"󰒶"}.mdi-snowboard:before{content:"󱌇"}.mdi-snowflake:before{content:"󰜗"}.mdi-snowflake-alert:before{content:"󰼩"}.mdi-snowflake-check:before{content:"󱩰"}.mdi-snowflake-melt:before{content:"󱋋"}.mdi-snowflake-off:before{content:"󱓣"}.mdi-snowflake-thermometer:before{content:"󱩱"}.mdi-snowflake-variant:before{content:"󰼪"}.mdi-snowman:before{content:"󰒷"}.mdi-snowmobile:before{content:"󰛝"}.mdi-snowshoeing:before{content:"󱩲"}.mdi-soccer:before{content:"󰒸"}.mdi-soccer-field:before{content:"󰠴"}.mdi-social-distance-2-meters:before{content:"󱕹"}.mdi-social-distance-6-feet:before{content:"󱕺"}.mdi-sofa:before{content:"󰒹"}.mdi-sofa-outline:before{content:"󱕭"}.mdi-sofa-single:before{content:"󱕮"}.mdi-sofa-single-outline:before{content:"󱕯"}.mdi-solar-panel:before{content:"󰶛"}.mdi-solar-panel-large:before{content:"󰶜"}.mdi-solar-power:before{content:"󰩲"}.mdi-solar-power-variant:before{content:"󱩳"}.mdi-solar-power-variant-outline:before{content:"󱩴"}.mdi-soldering-iron:before{content:"󱂒"}.mdi-solid:before{content:"󰚍"}.mdi-sony-playstation:before{content:"󰐔"}.mdi-sort:before{content:"󰒺"}.mdi-sort-alphabetical-ascending:before{content:"󰖽"}.mdi-sort-alphabetical-ascending-variant:before{content:"󱅈"}.mdi-sort-alphabetical-descending:before{content:"󰖿"}.mdi-sort-alphabetical-descending-variant:before{content:"󱅉"}.mdi-sort-alphabetical-variant:before{content:"󰒻"}.mdi-sort-ascending:before{content:"󰒼"}.mdi-sort-bool-ascending:before{content:"󱎅"}.mdi-sort-bool-ascending-variant:before{content:"󱎆"}.mdi-sort-bool-descending:before{content:"󱎇"}.mdi-sort-bool-descending-variant:before{content:"󱎈"}.mdi-sort-calendar-ascending:before{content:"󱕇"}.mdi-sort-calendar-descending:before{content:"󱕈"}.mdi-sort-clock-ascending:before{content:"󱕉"}.mdi-sort-clock-ascending-outline:before{content:"󱕊"}.mdi-sort-clock-descending:before{content:"󱕋"}.mdi-sort-clock-descending-outline:before{content:"󱕌"}.mdi-sort-descending:before{content:"󰒽"}.mdi-sort-numeric-ascending:before{content:"󱎉"}.mdi-sort-numeric-ascending-variant:before{content:"󰤍"}.mdi-sort-numeric-descending:before{content:"󱎊"}.mdi-sort-numeric-descending-variant:before{content:"󰫒"}.mdi-sort-numeric-variant:before{content:"󰒾"}.mdi-sort-reverse-variant:before{content:"󰌼"}.mdi-sort-variant:before{content:"󰒿"}.mdi-sort-variant-lock:before{content:"󰳍"}.mdi-sort-variant-lock-open:before{content:"󰳎"}.mdi-sort-variant-off:before{content:"󱪻"}.mdi-sort-variant-remove:before{content:"󱅇"}.mdi-soundbar:before{content:"󱟛"}.mdi-soundcloud:before{content:"󰓀"}.mdi-source-branch:before{content:"󰘬"}.mdi-source-branch-check:before{content:"󱓏"}.mdi-source-branch-minus:before{content:"󱓋"}.mdi-source-branch-plus:before{content:"󱓊"}.mdi-source-branch-refresh:before{content:"󱓍"}.mdi-source-branch-remove:before{content:"󱓌"}.mdi-source-branch-sync:before{content:"󱓎"}.mdi-source-commit:before{content:"󰜘"}.mdi-source-commit-end:before{content:"󰜙"}.mdi-source-commit-end-local:before{content:"󰜚"}.mdi-source-commit-local:before{content:"󰜛"}.mdi-source-commit-next-local:before{content:"󰜜"}.mdi-source-commit-start:before{content:"󰜝"}.mdi-source-commit-start-next-local:before{content:"󰜞"}.mdi-source-fork:before{content:"󰓁"}.mdi-source-merge:before{content:"󰘭"}.mdi-source-pull:before{content:"󰓂"}.mdi-source-repository:before{content:"󰳏"}.mdi-source-repository-multiple:before{content:"󰳐"}.mdi-soy-sauce:before{content:"󰟮"}.mdi-soy-sauce-off:before{content:"󱏼"}.mdi-spa:before{content:"󰳑"}.mdi-spa-outline:before{content:"󰳒"}.mdi-space-invaders:before{content:"󰯉"}.mdi-space-station:before{content:"󱎃"}.mdi-spade:before{content:"󰹥"}.mdi-speaker:before{content:"󰓃"}.mdi-speaker-bluetooth:before{content:"󰦢"}.mdi-speaker-message:before{content:"󱬑"}.mdi-speaker-multiple:before{content:"󰴸"}.mdi-speaker-off:before{content:"󰓄"}.mdi-speaker-pause:before{content:"󱭳"}.mdi-speaker-play:before{content:"󱭲"}.mdi-speaker-stop:before{content:"󱭴"}.mdi-speaker-wireless:before{content:"󰜟"}.mdi-spear:before{content:"󱡅"}.mdi-speedometer:before{content:"󰓅"}.mdi-speedometer-medium:before{content:"󰾅"}.mdi-speedometer-slow:before{content:"󰾆"}.mdi-spellcheck:before{content:"󰓆"}.mdi-sphere:before{content:"󱥔"}.mdi-sphere-off:before{content:"󱥕"}.mdi-spider:before{content:"󱇪"}.mdi-spider-outline:before{content:"󱱵"}.mdi-spider-thread:before{content:"󱇫"}.mdi-spider-web:before{content:"󰯊"}.mdi-spirit-level:before{content:"󱓱"}.mdi-spoon-sugar:before{content:"󱐩"}.mdi-spotify:before{content:"󰓇"}.mdi-spotlight:before{content:"󰓈"}.mdi-spotlight-beam:before{content:"󰓉"}.mdi-spray:before{content:"󰙥"}.mdi-spray-bottle:before{content:"󰫠"}.mdi-sprinkler:before{content:"󱁟"}.mdi-sprinkler-fire:before{content:"󱦝"}.mdi-sprinkler-variant:before{content:"󱁠"}.mdi-sprout:before{content:"󰹦"}.mdi-sprout-outline:before{content:"󰹧"}.mdi-square:before{content:"󰝤"}.mdi-square-circle:before{content:"󱔀"}.mdi-square-circle-outline:before{content:"󱱐"}.mdi-square-edit-outline:before{content:"󰤌"}.mdi-square-medium:before{content:"󰨓"}.mdi-square-medium-outline:before{content:"󰨔"}.mdi-square-off:before{content:"󱋮"}.mdi-square-off-outline:before{content:"󱋯"}.mdi-square-opacity:before{content:"󱡔"}.mdi-square-outline:before{content:"󰝣"}.mdi-square-root:before{content:"󰞄"}.mdi-square-root-box:before{content:"󰦣"}.mdi-square-rounded:before{content:"󱓻"}.mdi-square-rounded-badge:before{content:"󱨇"}.mdi-square-rounded-badge-outline:before{content:"󱨈"}.mdi-square-rounded-outline:before{content:"󱓼"}.mdi-square-small:before{content:"󰨕"}.mdi-square-wave:before{content:"󱑻"}.mdi-squeegee:before{content:"󰫡"}.mdi-ssh:before{content:"󰣀"}.mdi-stack-exchange:before{content:"󰘋"}.mdi-stack-overflow:before{content:"󰓌"}.mdi-stackpath:before{content:"󰍙"}.mdi-stadium:before{content:"󰿹"}.mdi-stadium-outline:before{content:"󱬃"}.mdi-stadium-variant:before{content:"󰜠"}.mdi-stairs:before{content:"󰓍"}.mdi-stairs-box:before{content:"󱎞"}.mdi-stairs-down:before{content:"󱊾"}.mdi-stairs-up:before{content:"󱊽"}.mdi-stamper:before{content:"󰴹"}.mdi-standard-definition:before{content:"󰟯"}.mdi-star:before{content:"󰓎"}.mdi-star-box:before{content:"󰩳"}.mdi-star-box-multiple:before{content:"󱊆"}.mdi-star-box-multiple-outline:before{content:"󱊇"}.mdi-star-box-outline:before{content:"󰩴"}.mdi-star-check:before{content:"󱕦"}.mdi-star-check-outline:before{content:"󱕪"}.mdi-star-circle:before{content:"󰓏"}.mdi-star-circle-outline:before{content:"󰦤"}.mdi-star-cog:before{content:"󱙨"}.mdi-star-cog-outline:before{content:"󱙩"}.mdi-star-crescent:before{content:"󰥹"}.mdi-star-david:before{content:"󰥺"}.mdi-star-face:before{content:"󰦥"}.mdi-star-four-points:before{content:"󰫢"}.mdi-star-four-points-box:before{content:"󱱑"}.mdi-star-four-points-box-outline:before{content:"󱱒"}.mdi-star-four-points-circle:before{content:"󱱓"}.mdi-star-four-points-circle-outline:before{content:"󱱔"}.mdi-star-four-points-outline:before{content:"󰫣"}.mdi-star-four-points-small:before{content:"󱱕"}.mdi-star-half:before{content:"󰉆"}.mdi-star-half-full:before{content:"󰓐"}.mdi-star-minus:before{content:"󱕤"}.mdi-star-minus-outline:before{content:"󱕨"}.mdi-star-off:before{content:"󰓑"}.mdi-star-off-outline:before{content:"󱕛"}.mdi-star-outline:before{content:"󰓒"}.mdi-star-plus:before{content:"󱕣"}.mdi-star-plus-outline:before{content:"󱕧"}.mdi-star-remove:before{content:"󱕥"}.mdi-star-remove-outline:before{content:"󱕩"}.mdi-star-settings:before{content:"󱙪"}.mdi-star-settings-outline:before{content:"󱙫"}.mdi-star-shooting:before{content:"󱝁"}.mdi-star-shooting-outline:before{content:"󱝂"}.mdi-star-three-points:before{content:"󰫤"}.mdi-star-three-points-outline:before{content:"󰫥"}.mdi-state-machine:before{content:"󱇯"}.mdi-steam:before{content:"󰓓"}.mdi-steering:before{content:"󰓔"}.mdi-steering-off:before{content:"󰤎"}.mdi-step-backward:before{content:"󰓕"}.mdi-step-backward-2:before{content:"󰓖"}.mdi-step-forward:before{content:"󰓗"}.mdi-step-forward-2:before{content:"󰓘"}.mdi-stethoscope:before{content:"󰓙"}.mdi-sticker:before{content:"󱍤"}.mdi-sticker-alert:before{content:"󱍥"}.mdi-sticker-alert-outline:before{content:"󱍦"}.mdi-sticker-check:before{content:"󱍧"}.mdi-sticker-check-outline:before{content:"󱍨"}.mdi-sticker-circle-outline:before{content:"󰗐"}.mdi-sticker-emoji:before{content:"󰞅"}.mdi-sticker-minus:before{content:"󱍩"}.mdi-sticker-minus-outline:before{content:"󱍪"}.mdi-sticker-outline:before{content:"󱍫"}.mdi-sticker-plus:before{content:"󱍬"}.mdi-sticker-plus-outline:before{content:"󱍭"}.mdi-sticker-remove:before{content:"󱍮"}.mdi-sticker-remove-outline:before{content:"󱍯"}.mdi-sticker-text:before{content:"󱞎"}.mdi-sticker-text-outline:before{content:"󱞏"}.mdi-stocking:before{content:"󰓚"}.mdi-stomach:before{content:"󱂓"}.mdi-stool:before{content:"󱥝"}.mdi-stool-outline:before{content:"󱥞"}.mdi-stop:before{content:"󰓛"}.mdi-stop-circle:before{content:"󰙦"}.mdi-stop-circle-outline:before{content:"󰙧"}.mdi-storage-tank:before{content:"󱩵"}.mdi-storage-tank-outline:before{content:"󱩶"}.mdi-store:before{content:"󰓜"}.mdi-store-24-hour:before{content:"󰓝"}.mdi-store-alert:before{content:"󱣁"}.mdi-store-alert-outline:before{content:"󱣂"}.mdi-store-check:before{content:"󱣃"}.mdi-store-check-outline:before{content:"󱣄"}.mdi-store-clock:before{content:"󱣅"}.mdi-store-clock-outline:before{content:"󱣆"}.mdi-store-cog:before{content:"󱣇"}.mdi-store-cog-outline:before{content:"󱣈"}.mdi-store-edit:before{content:"󱣉"}.mdi-store-edit-outline:before{content:"󱣊"}.mdi-store-marker:before{content:"󱣋"}.mdi-store-marker-outline:before{content:"󱣌"}.mdi-store-minus:before{content:"󱙞"}.mdi-store-minus-outline:before{content:"󱣍"}.mdi-store-off:before{content:"󱣎"}.mdi-store-off-outline:before{content:"󱣏"}.mdi-store-outline:before{content:"󱍡"}.mdi-store-plus:before{content:"󱙟"}.mdi-store-plus-outline:before{content:"󱣐"}.mdi-store-remove:before{content:"󱙠"}.mdi-store-remove-outline:before{content:"󱣑"}.mdi-store-search:before{content:"󱣒"}.mdi-store-search-outline:before{content:"󱣓"}.mdi-store-settings:before{content:"󱣔"}.mdi-store-settings-outline:before{content:"󱣕"}.mdi-storefront:before{content:"󰟇"}.mdi-storefront-check:before{content:"󱭽"}.mdi-storefront-check-outline:before{content:"󱭾"}.mdi-storefront-edit:before{content:"󱭿"}.mdi-storefront-edit-outline:before{content:"󱮀"}.mdi-storefront-minus:before{content:"󱮃"}.mdi-storefront-minus-outline:before{content:"󱮄"}.mdi-storefront-outline:before{content:"󱃁"}.mdi-storefront-plus:before{content:"󱮁"}.mdi-storefront-plus-outline:before{content:"󱮂"}.mdi-storefront-remove:before{content:"󱮅"}.mdi-storefront-remove-outline:before{content:"󱮆"}.mdi-stove:before{content:"󰓞"}.mdi-strategy:before{content:"󱇖"}.mdi-stretch-to-page:before{content:"󰼫"}.mdi-stretch-to-page-outline:before{content:"󰼬"}.mdi-string-lights:before{content:"󱊺"}.mdi-string-lights-off:before{content:"󱊻"}.mdi-subdirectory-arrow-left:before{content:"󰘌"}.mdi-subdirectory-arrow-right:before{content:"󰘍"}.mdi-submarine:before{content:"󱕬"}.mdi-subtitles:before{content:"󰨖"}.mdi-subtitles-outline:before{content:"󰨗"}.mdi-subway:before{content:"󰚬"}.mdi-subway-alert-variant:before{content:"󰶝"}.mdi-subway-variant:before{content:"󰓟"}.mdi-summit:before{content:"󰞆"}.mdi-sun-angle:before{content:"󱬧"}.mdi-sun-angle-outline:before{content:"󱬨"}.mdi-sun-clock:before{content:"󱩷"}.mdi-sun-clock-outline:before{content:"󱩸"}.mdi-sun-compass:before{content:"󱦥"}.mdi-sun-snowflake:before{content:"󱞖"}.mdi-sun-snowflake-variant:before{content:"󱩹"}.mdi-sun-thermometer:before{content:"󱣖"}.mdi-sun-thermometer-outline:before{content:"󱣗"}.mdi-sun-wireless:before{content:"󱟾"}.mdi-sun-wireless-outline:before{content:"󱟿"}.mdi-sunglasses:before{content:"󰓠"}.mdi-surfing:before{content:"󱝆"}.mdi-surround-sound:before{content:"󰗅"}.mdi-surround-sound-2-0:before{content:"󰟰"}.mdi-surround-sound-2-1:before{content:"󱜩"}.mdi-surround-sound-3-1:before{content:"󰟱"}.mdi-surround-sound-5-1:before{content:"󰟲"}.mdi-surround-sound-5-1-2:before{content:"󱜪"}.mdi-surround-sound-7-1:before{content:"󰟳"}.mdi-svg:before{content:"󰜡"}.mdi-swap-horizontal:before{content:"󰓡"}.mdi-swap-horizontal-bold:before{content:"󰯍"}.mdi-swap-horizontal-circle:before{content:"󰿡"}.mdi-swap-horizontal-circle-outline:before{content:"󰿢"}.mdi-swap-horizontal-variant:before{content:"󰣁"}.mdi-swap-vertical:before{content:"󰓢"}.mdi-swap-vertical-bold:before{content:"󰯎"}.mdi-swap-vertical-circle:before{content:"󰿣"}.mdi-swap-vertical-circle-outline:before{content:"󰿤"}.mdi-swap-vertical-variant:before{content:"󰣂"}.mdi-swim:before{content:"󰓣"}.mdi-switch:before{content:"󰓤"}.mdi-sword:before{content:"󰓥"}.mdi-sword-cross:before{content:"󰞇"}.mdi-syllabary-hangul:before{content:"󱌳"}.mdi-syllabary-hiragana:before{content:"󱌴"}.mdi-syllabary-katakana:before{content:"󱌵"}.mdi-syllabary-katakana-halfwidth:before{content:"󱌶"}.mdi-symbol:before{content:"󱔁"}.mdi-symfony:before{content:"󰫦"}.mdi-synagogue:before{content:"󱬄"}.mdi-synagogue-outline:before{content:"󱬅"}.mdi-sync:before{content:"󰓦"}.mdi-sync-alert:before{content:"󰓧"}.mdi-sync-circle:before{content:"󱍸"}.mdi-sync-off:before{content:"󰓨"}.mdi-tab:before{content:"󰓩"}.mdi-tab-minus:before{content:"󰭋"}.mdi-tab-plus:before{content:"󰝜"}.mdi-tab-remove:before{content:"󰭌"}.mdi-tab-search:before{content:"󱦞"}.mdi-tab-unselected:before{content:"󰓪"}.mdi-table:before{content:"󰓫"}.mdi-table-account:before{content:"󱎹"}.mdi-table-alert:before{content:"󱎺"}.mdi-table-arrow-down:before{content:"󱎻"}.mdi-table-arrow-left:before{content:"󱎼"}.mdi-table-arrow-right:before{content:"󱎽"}.mdi-table-arrow-up:before{content:"󱎾"}.mdi-table-border:before{content:"󰨘"}.mdi-table-cancel:before{content:"󱎿"}.mdi-table-chair:before{content:"󱁡"}.mdi-table-check:before{content:"󱏀"}.mdi-table-clock:before{content:"󱏁"}.mdi-table-cog:before{content:"󱏂"}.mdi-table-column:before{content:"󰠵"}.mdi-table-column-plus-after:before{content:"󰓬"}.mdi-table-column-plus-before:before{content:"󰓭"}.mdi-table-column-remove:before{content:"󰓮"}.mdi-table-column-width:before{content:"󰓯"}.mdi-table-edit:before{content:"󰓰"}.mdi-table-eye:before{content:"󱂔"}.mdi-table-eye-off:before{content:"󱏃"}.mdi-table-filter:before{content:"󱮌"}.mdi-table-furniture:before{content:"󰖼"}.mdi-table-headers-eye:before{content:"󱈝"}.mdi-table-headers-eye-off:before{content:"󱈞"}.mdi-table-heart:before{content:"󱏄"}.mdi-table-key:before{content:"󱏅"}.mdi-table-large:before{content:"󰓱"}.mdi-table-large-plus:before{content:"󰾇"}.mdi-table-large-remove:before{content:"󰾈"}.mdi-table-lock:before{content:"󱏆"}.mdi-table-merge-cells:before{content:"󰦦"}.mdi-table-minus:before{content:"󱏇"}.mdi-table-multiple:before{content:"󱏈"}.mdi-table-network:before{content:"󱏉"}.mdi-table-of-contents:before{content:"󰠶"}.mdi-table-off:before{content:"󱏊"}.mdi-table-picnic:before{content:"󱝃"}.mdi-table-pivot:before{content:"󱠼"}.mdi-table-plus:before{content:"󰩵"}.mdi-table-question:before{content:"󱬡"}.mdi-table-refresh:before{content:"󱎠"}.mdi-table-remove:before{content:"󰩶"}.mdi-table-row:before{content:"󰠷"}.mdi-table-row-height:before{content:"󰓲"}.mdi-table-row-plus-after:before{content:"󰓳"}.mdi-table-row-plus-before:before{content:"󰓴"}.mdi-table-row-remove:before{content:"󰓵"}.mdi-table-search:before{content:"󰤏"}.mdi-table-settings:before{content:"󰠸"}.mdi-table-split-cell:before{content:"󱐪"}.mdi-table-star:before{content:"󱏋"}.mdi-table-sync:before{content:"󱎡"}.mdi-table-tennis:before{content:"󰹨"}.mdi-tablet:before{content:"󰓶"}.mdi-tablet-cellphone:before{content:"󰦧"}.mdi-tablet-dashboard:before{content:"󰻎"}.mdi-taco:before{content:"󰝢"}.mdi-tag:before{content:"󰓹"}.mdi-tag-arrow-down:before{content:"󱜫"}.mdi-tag-arrow-down-outline:before{content:"󱜬"}.mdi-tag-arrow-left:before{content:"󱜭"}.mdi-tag-arrow-left-outline:before{content:"󱜮"}.mdi-tag-arrow-right:before{content:"󱜯"}.mdi-tag-arrow-right-outline:before{content:"󱜰"}.mdi-tag-arrow-up:before{content:"󱜱"}.mdi-tag-arrow-up-outline:before{content:"󱜲"}.mdi-tag-check:before{content:"󱩺"}.mdi-tag-check-outline:before{content:"󱩻"}.mdi-tag-edit:before{content:"󱲜"}.mdi-tag-edit-outline:before{content:"󱲝"}.mdi-tag-faces:before{content:"󰓺"}.mdi-tag-heart:before{content:"󰚋"}.mdi-tag-heart-outline:before{content:"󰯏"}.mdi-tag-hidden:before{content:"󱱶"}.mdi-tag-minus:before{content:"󰤐"}.mdi-tag-minus-outline:before{content:"󱈟"}.mdi-tag-multiple:before{content:"󰓻"}.mdi-tag-multiple-outline:before{content:"󱋷"}.mdi-tag-off:before{content:"󱈠"}.mdi-tag-off-outline:before{content:"󱈡"}.mdi-tag-outline:before{content:"󰓼"}.mdi-tag-plus:before{content:"󰜢"}.mdi-tag-plus-outline:before{content:"󱈢"}.mdi-tag-remove:before{content:"󰜣"}.mdi-tag-remove-outline:before{content:"󱈣"}.mdi-tag-search:before{content:"󱤇"}.mdi-tag-search-outline:before{content:"󱤈"}.mdi-tag-text:before{content:"󱈤"}.mdi-tag-text-outline:before{content:"󰓽"}.mdi-tailwind:before{content:"󱏿"}.mdi-tally-mark-1:before{content:"󱪼"}.mdi-tally-mark-2:before{content:"󱪽"}.mdi-tally-mark-3:before{content:"󱪾"}.mdi-tally-mark-4:before{content:"󱪿"}.mdi-tally-mark-5:before{content:"󱫀"}.mdi-tangram:before{content:"󰓸"}.mdi-tank:before{content:"󰴺"}.mdi-tanker-truck:before{content:"󰿥"}.mdi-tape-drive:before{content:"󱛟"}.mdi-tape-measure:before{content:"󰭍"}.mdi-target:before{content:"󰓾"}.mdi-target-account:before{content:"󰯐"}.mdi-target-variant:before{content:"󰩷"}.mdi-taxi:before{content:"󰓿"}.mdi-tea:before{content:"󰶞"}.mdi-tea-outline:before{content:"󰶟"}.mdi-teamviewer:before{content:"󰔀"}.mdi-teddy-bear:before{content:"󱣻"}.mdi-telescope:before{content:"󰭎"}.mdi-television:before{content:"󰔂"}.mdi-television-ambient-light:before{content:"󱍖"}.mdi-television-box:before{content:"󰠹"}.mdi-television-classic:before{content:"󰟴"}.mdi-television-classic-off:before{content:"󰠺"}.mdi-television-guide:before{content:"󰔃"}.mdi-television-off:before{content:"󰠻"}.mdi-television-pause:before{content:"󰾉"}.mdi-television-play:before{content:"󰻏"}.mdi-television-shimmer:before{content:"󱄐"}.mdi-television-speaker:before{content:"󱬛"}.mdi-television-speaker-off:before{content:"󱬜"}.mdi-television-stop:before{content:"󰾊"}.mdi-temperature-celsius:before{content:"󰔄"}.mdi-temperature-fahrenheit:before{content:"󰔅"}.mdi-temperature-kelvin:before{content:"󰔆"}.mdi-temple-buddhist:before{content:"󱬆"}.mdi-temple-buddhist-outline:before{content:"󱬇"}.mdi-temple-hindu:before{content:"󱬈"}.mdi-temple-hindu-outline:before{content:"󱬉"}.mdi-tennis:before{content:"󰶠"}.mdi-tennis-ball:before{content:"󰔇"}.mdi-tennis-ball-outline:before{content:"󱱟"}.mdi-tent:before{content:"󰔈"}.mdi-terraform:before{content:"󱁢"}.mdi-terrain:before{content:"󰔉"}.mdi-test-tube:before{content:"󰙨"}.mdi-test-tube-empty:before{content:"󰤑"}.mdi-test-tube-off:before{content:"󰤒"}.mdi-text:before{content:"󰦨"}.mdi-text-account:before{content:"󱕰"}.mdi-text-box:before{content:"󰈚"}.mdi-text-box-check:before{content:"󰺦"}.mdi-text-box-check-outline:before{content:"󰺧"}.mdi-text-box-edit:before{content:"󱩼"}.mdi-text-box-edit-outline:before{content:"󱩽"}.mdi-text-box-minus:before{content:"󰺨"}.mdi-text-box-minus-outline:before{content:"󰺩"}.mdi-text-box-multiple:before{content:"󰪷"}.mdi-text-box-multiple-outline:before{content:"󰪸"}.mdi-text-box-outline:before{content:"󰧭"}.mdi-text-box-plus:before{content:"󰺪"}.mdi-text-box-plus-outline:before{content:"󰺫"}.mdi-text-box-remove:before{content:"󰺬"}.mdi-text-box-remove-outline:before{content:"󰺭"}.mdi-text-box-search:before{content:"󰺮"}.mdi-text-box-search-outline:before{content:"󰺯"}.mdi-text-long:before{content:"󰦪"}.mdi-text-recognition:before{content:"󱄽"}.mdi-text-search:before{content:"󱎸"}.mdi-text-search-variant:before{content:"󱩾"}.mdi-text-shadow:before{content:"󰙩"}.mdi-text-short:before{content:"󰦩"}.mdi-texture:before{content:"󰔌"}.mdi-texture-box:before{content:"󰿦"}.mdi-theater:before{content:"󰔍"}.mdi-theme-light-dark:before{content:"󰔎"}.mdi-thermometer:before{content:"󰔏"}.mdi-thermometer-alert:before{content:"󰸁"}.mdi-thermometer-auto:before{content:"󱬏"}.mdi-thermometer-bluetooth:before{content:"󱢕"}.mdi-thermometer-check:before{content:"󱩿"}.mdi-thermometer-chevron-down:before{content:"󰸂"}.mdi-thermometer-chevron-up:before{content:"󰸃"}.mdi-thermometer-high:before{content:"󱃂"}.mdi-thermometer-lines:before{content:"󰔐"}.mdi-thermometer-low:before{content:"󱃃"}.mdi-thermometer-minus:before{content:"󰸄"}.mdi-thermometer-off:before{content:"󱔱"}.mdi-thermometer-plus:before{content:"󰸅"}.mdi-thermometer-probe:before{content:"󱬫"}.mdi-thermometer-probe-off:before{content:"󱬬"}.mdi-thermometer-water:before{content:"󱪀"}.mdi-thermostat:before{content:"󰎓"}.mdi-thermostat-auto:before{content:"󱬗"}.mdi-thermostat-box:before{content:"󰢑"}.mdi-thermostat-box-auto:before{content:"󱬘"}.mdi-thermostat-cog:before{content:"󱲀"}.mdi-thought-bubble:before{content:"󰟶"}.mdi-thought-bubble-outline:before{content:"󰟷"}.mdi-thumb-down:before{content:"󰔑"}.mdi-thumb-down-outline:before{content:"󰔒"}.mdi-thumb-up:before{content:"󰔓"}.mdi-thumb-up-outline:before{content:"󰔔"}.mdi-thumbs-up-down:before{content:"󰔕"}.mdi-thumbs-up-down-outline:before{content:"󱤔"}.mdi-ticket:before{content:"󰔖"}.mdi-ticket-account:before{content:"󰔗"}.mdi-ticket-confirmation:before{content:"󰔘"}.mdi-ticket-confirmation-outline:before{content:"󱎪"}.mdi-ticket-outline:before{content:"󰤓"}.mdi-ticket-percent:before{content:"󰜤"}.mdi-ticket-percent-outline:before{content:"󱐫"}.mdi-tie:before{content:"󰔙"}.mdi-tilde:before{content:"󰜥"}.mdi-tilde-off:before{content:"󱣳"}.mdi-timelapse:before{content:"󰔚"}.mdi-timeline:before{content:"󰯑"}.mdi-timeline-alert:before{content:"󰾕"}.mdi-timeline-alert-outline:before{content:"󰾘"}.mdi-timeline-check:before{content:"󱔲"}.mdi-timeline-check-outline:before{content:"󱔳"}.mdi-timeline-clock:before{content:"󱇻"}.mdi-timeline-clock-outline:before{content:"󱇼"}.mdi-timeline-minus:before{content:"󱔴"}.mdi-timeline-minus-outline:before{content:"󱔵"}.mdi-timeline-outline:before{content:"󰯒"}.mdi-timeline-plus:before{content:"󰾖"}.mdi-timeline-plus-outline:before{content:"󰾗"}.mdi-timeline-question:before{content:"󰾙"}.mdi-timeline-question-outline:before{content:"󰾚"}.mdi-timeline-remove:before{content:"󱔶"}.mdi-timeline-remove-outline:before{content:"󱔷"}.mdi-timeline-text:before{content:"󰯓"}.mdi-timeline-text-outline:before{content:"󰯔"}.mdi-timer:before{content:"󱎫"}.mdi-timer-10:before{content:"󰔜"}.mdi-timer-3:before{content:"󰔝"}.mdi-timer-alert:before{content:"󱫌"}.mdi-timer-alert-outline:before{content:"󱫍"}.mdi-timer-cancel:before{content:"󱫎"}.mdi-timer-cancel-outline:before{content:"󱫏"}.mdi-timer-check:before{content:"󱫐"}.mdi-timer-check-outline:before{content:"󱫑"}.mdi-timer-cog:before{content:"󱤥"}.mdi-timer-cog-outline:before{content:"󱤦"}.mdi-timer-edit:before{content:"󱫒"}.mdi-timer-edit-outline:before{content:"󱫓"}.mdi-timer-lock:before{content:"󱫔"}.mdi-timer-lock-open:before{content:"󱫕"}.mdi-timer-lock-open-outline:before{content:"󱫖"}.mdi-timer-lock-outline:before{content:"󱫗"}.mdi-timer-marker:before{content:"󱫘"}.mdi-timer-marker-outline:before{content:"󱫙"}.mdi-timer-minus:before{content:"󱫚"}.mdi-timer-minus-outline:before{content:"󱫛"}.mdi-timer-music:before{content:"󱫜"}.mdi-timer-music-outline:before{content:"󱫝"}.mdi-timer-off:before{content:"󱎬"}.mdi-timer-off-outline:before{content:"󰔞"}.mdi-timer-outline:before{content:"󰔛"}.mdi-timer-pause:before{content:"󱫞"}.mdi-timer-pause-outline:before{content:"󱫟"}.mdi-timer-play:before{content:"󱫠"}.mdi-timer-play-outline:before{content:"󱫡"}.mdi-timer-plus:before{content:"󱫢"}.mdi-timer-plus-outline:before{content:"󱫣"}.mdi-timer-refresh:before{content:"󱫤"}.mdi-timer-refresh-outline:before{content:"󱫥"}.mdi-timer-remove:before{content:"󱫦"}.mdi-timer-remove-outline:before{content:"󱫧"}.mdi-timer-sand:before{content:"󰔟"}.mdi-timer-sand-complete:before{content:"󱦟"}.mdi-timer-sand-empty:before{content:"󰚭"}.mdi-timer-sand-full:before{content:"󰞌"}.mdi-timer-sand-paused:before{content:"󱦠"}.mdi-timer-settings:before{content:"󱤣"}.mdi-timer-settings-outline:before{content:"󱤤"}.mdi-timer-star:before{content:"󱫨"}.mdi-timer-star-outline:before{content:"󱫩"}.mdi-timer-stop:before{content:"󱫪"}.mdi-timer-stop-outline:before{content:"󱫫"}.mdi-timer-sync:before{content:"󱫬"}.mdi-timer-sync-outline:before{content:"󱫭"}.mdi-timetable:before{content:"󰔠"}.mdi-tire:before{content:"󱢖"}.mdi-toaster:before{content:"󱁣"}.mdi-toaster-off:before{content:"󱆷"}.mdi-toaster-oven:before{content:"󰳓"}.mdi-toggle-switch:before{content:"󰔡"}.mdi-toggle-switch-off:before{content:"󰔢"}.mdi-toggle-switch-off-outline:before{content:"󰨙"}.mdi-toggle-switch-outline:before{content:"󰨚"}.mdi-toggle-switch-variant:before{content:"󱨥"}.mdi-toggle-switch-variant-off:before{content:"󱨦"}.mdi-toilet:before{content:"󰦫"}.mdi-toolbox:before{content:"󰦬"}.mdi-toolbox-outline:before{content:"󰦭"}.mdi-tools:before{content:"󱁤"}.mdi-tooltip:before{content:"󰔣"}.mdi-tooltip-account:before{content:"󰀌"}.mdi-tooltip-cellphone:before{content:"󱠻"}.mdi-tooltip-check:before{content:"󱕜"}.mdi-tooltip-check-outline:before{content:"󱕝"}.mdi-tooltip-edit:before{content:"󰔤"}.mdi-tooltip-edit-outline:before{content:"󱋅"}.mdi-tooltip-image:before{content:"󰔥"}.mdi-tooltip-image-outline:before{content:"󰯕"}.mdi-tooltip-minus:before{content:"󱕞"}.mdi-tooltip-minus-outline:before{content:"󱕟"}.mdi-tooltip-outline:before{content:"󰔦"}.mdi-tooltip-plus:before{content:"󰯖"}.mdi-tooltip-plus-outline:before{content:"󰔧"}.mdi-tooltip-question:before{content:"󱮺"}.mdi-tooltip-question-outline:before{content:"󱮻"}.mdi-tooltip-remove:before{content:"󱕠"}.mdi-tooltip-remove-outline:before{content:"󱕡"}.mdi-tooltip-text:before{content:"󰔨"}.mdi-tooltip-text-outline:before{content:"󰯗"}.mdi-tooth:before{content:"󰣃"}.mdi-tooth-outline:before{content:"󰔩"}.mdi-toothbrush:before{content:"󱄩"}.mdi-toothbrush-electric:before{content:"󱄬"}.mdi-toothbrush-paste:before{content:"󱄪"}.mdi-torch:before{content:"󱘆"}.mdi-tortoise:before{content:"󰴻"}.mdi-toslink:before{content:"󱊸"}.mdi-touch-text-outline:before{content:"󱱠"}.mdi-tournament:before{content:"󰦮"}.mdi-tow-truck:before{content:"󰠼"}.mdi-tower-beach:before{content:"󰚁"}.mdi-tower-fire:before{content:"󰚂"}.mdi-town-hall:before{content:"󱡵"}.mdi-toy-brick:before{content:"󱊈"}.mdi-toy-brick-marker:before{content:"󱊉"}.mdi-toy-brick-marker-outline:before{content:"󱊊"}.mdi-toy-brick-minus:before{content:"󱊋"}.mdi-toy-brick-minus-outline:before{content:"󱊌"}.mdi-toy-brick-outline:before{content:"󱊍"}.mdi-toy-brick-plus:before{content:"󱊎"}.mdi-toy-brick-plus-outline:before{content:"󱊏"}.mdi-toy-brick-remove:before{content:"󱊐"}.mdi-toy-brick-remove-outline:before{content:"󱊑"}.mdi-toy-brick-search:before{content:"󱊒"}.mdi-toy-brick-search-outline:before{content:"󱊓"}.mdi-track-light:before{content:"󰤔"}.mdi-track-light-off:before{content:"󱬁"}.mdi-trackpad:before{content:"󰟸"}.mdi-trackpad-lock:before{content:"󰤳"}.mdi-tractor:before{content:"󰢒"}.mdi-tractor-variant:before{content:"󱓄"}.mdi-trademark:before{content:"󰩸"}.mdi-traffic-cone:before{content:"󱍼"}.mdi-traffic-light:before{content:"󰔫"}.mdi-traffic-light-outline:before{content:"󱠪"}.mdi-train:before{content:"󰔬"}.mdi-train-bus:before{content:"󱳇"}.mdi-train-car:before{content:"󰯘"}.mdi-train-car-autorack:before{content:"󱬭"}.mdi-train-car-box:before{content:"󱬮"}.mdi-train-car-box-full:before{content:"󱬯"}.mdi-train-car-box-open:before{content:"󱬰"}.mdi-train-car-caboose:before{content:"󱬱"}.mdi-train-car-centerbeam:before{content:"󱬲"}.mdi-train-car-centerbeam-full:before{content:"󱬳"}.mdi-train-car-container:before{content:"󱬴"}.mdi-train-car-flatbed:before{content:"󱬵"}.mdi-train-car-flatbed-car:before{content:"󱬶"}.mdi-train-car-flatbed-tank:before{content:"󱬷"}.mdi-train-car-gondola:before{content:"󱬸"}.mdi-train-car-gondola-full:before{content:"󱬹"}.mdi-train-car-hopper:before{content:"󱬺"}.mdi-train-car-hopper-covered:before{content:"󱬻"}.mdi-train-car-hopper-full:before{content:"󱬼"}.mdi-train-car-intermodal:before{content:"󱬽"}.mdi-train-car-passenger:before{content:"󱜳"}.mdi-train-car-passenger-door:before{content:"󱜴"}.mdi-train-car-passenger-door-open:before{content:"󱜵"}.mdi-train-car-passenger-variant:before{content:"󱜶"}.mdi-train-car-tank:before{content:"󱬾"}.mdi-train-variant:before{content:"󰣄"}.mdi-tram:before{content:"󰔭"}.mdi-tram-side:before{content:"󰿧"}.mdi-transcribe:before{content:"󰔮"}.mdi-transcribe-close:before{content:"󰔯"}.mdi-transfer:before{content:"󱁥"}.mdi-transfer-down:before{content:"󰶡"}.mdi-transfer-left:before{content:"󰶢"}.mdi-transfer-right:before{content:"󰔰"}.mdi-transfer-up:before{content:"󰶣"}.mdi-transit-connection:before{content:"󰴼"}.mdi-transit-connection-horizontal:before{content:"󱕆"}.mdi-transit-connection-variant:before{content:"󰴽"}.mdi-transit-detour:before{content:"󰾋"}.mdi-transit-skip:before{content:"󱔕"}.mdi-transit-transfer:before{content:"󰚮"}.mdi-transition:before{content:"󰤕"}.mdi-transition-masked:before{content:"󰤖"}.mdi-translate:before{content:"󰗊"}.mdi-translate-off:before{content:"󰸆"}.mdi-translate-variant:before{content:"󱮙"}.mdi-transmission-tower:before{content:"󰴾"}.mdi-transmission-tower-export:before{content:"󱤬"}.mdi-transmission-tower-import:before{content:"󱤭"}.mdi-transmission-tower-off:before{content:"󱧝"}.mdi-trash-can:before{content:"󰩹"}.mdi-trash-can-outline:before{content:"󰩺"}.mdi-tray:before{content:"󱊔"}.mdi-tray-alert:before{content:"󱊕"}.mdi-tray-arrow-down:before{content:"󰄠"}.mdi-tray-arrow-up:before{content:"󰄝"}.mdi-tray-full:before{content:"󱊖"}.mdi-tray-minus:before{content:"󱊗"}.mdi-tray-plus:before{content:"󱊘"}.mdi-tray-remove:before{content:"󱊙"}.mdi-treasure-chest:before{content:"󰜦"}.mdi-treasure-chest-outline:before{content:"󱱷"}.mdi-tree:before{content:"󰔱"}.mdi-tree-outline:before{content:"󰹩"}.mdi-trello:before{content:"󰔲"}.mdi-trending-down:before{content:"󰔳"}.mdi-trending-neutral:before{content:"󰔴"}.mdi-trending-up:before{content:"󰔵"}.mdi-triangle:before{content:"󰔶"}.mdi-triangle-down:before{content:"󱱖"}.mdi-triangle-down-outline:before{content:"󱱗"}.mdi-triangle-outline:before{content:"󰔷"}.mdi-triangle-small-down:before{content:"󱨉"}.mdi-triangle-small-up:before{content:"󱨊"}.mdi-triangle-wave:before{content:"󱑼"}.mdi-triforce:before{content:"󰯙"}.mdi-trophy:before{content:"󰔸"}.mdi-trophy-award:before{content:"󰔹"}.mdi-trophy-broken:before{content:"󰶤"}.mdi-trophy-outline:before{content:"󰔺"}.mdi-trophy-variant:before{content:"󰔻"}.mdi-trophy-variant-outline:before{content:"󰔼"}.mdi-truck:before{content:"󰔽"}.mdi-truck-alert:before{content:"󱧞"}.mdi-truck-alert-outline:before{content:"󱧟"}.mdi-truck-cargo-container:before{content:"󱣘"}.mdi-truck-check:before{content:"󰳔"}.mdi-truck-check-outline:before{content:"󱊚"}.mdi-truck-delivery:before{content:"󰔾"}.mdi-truck-delivery-outline:before{content:"󱊛"}.mdi-truck-fast:before{content:"󰞈"}.mdi-truck-fast-outline:before{content:"󱊜"}.mdi-truck-flatbed:before{content:"󱢑"}.mdi-truck-minus:before{content:"󱦮"}.mdi-truck-minus-outline:before{content:"󱦽"}.mdi-truck-off-road:before{content:"󱲞"}.mdi-truck-off-road-off:before{content:"󱲟"}.mdi-truck-outline:before{content:"󱊝"}.mdi-truck-plus:before{content:"󱦭"}.mdi-truck-plus-outline:before{content:"󱦼"}.mdi-truck-remove:before{content:"󱦯"}.mdi-truck-remove-outline:before{content:"󱦾"}.mdi-truck-snowflake:before{content:"󱦦"}.mdi-truck-trailer:before{content:"󰜧"}.mdi-trumpet:before{content:"󱂖"}.mdi-tshirt-crew:before{content:"󰩻"}.mdi-tshirt-crew-outline:before{content:"󰔿"}.mdi-tshirt-v:before{content:"󰩼"}.mdi-tshirt-v-outline:before{content:"󰕀"}.mdi-tsunami:before{content:"󱪁"}.mdi-tumble-dryer:before{content:"󰤗"}.mdi-tumble-dryer-alert:before{content:"󱆺"}.mdi-tumble-dryer-off:before{content:"󱆻"}.mdi-tune:before{content:"󰘮"}.mdi-tune-variant:before{content:"󱕂"}.mdi-tune-vertical:before{content:"󰙪"}.mdi-tune-vertical-variant:before{content:"󱕃"}.mdi-tunnel:before{content:"󱠽"}.mdi-tunnel-outline:before{content:"󱠾"}.mdi-turbine:before{content:"󱪂"}.mdi-turkey:before{content:"󱜛"}.mdi-turnstile:before{content:"󰳕"}.mdi-turnstile-outline:before{content:"󰳖"}.mdi-turtle:before{content:"󰳗"}.mdi-twitch:before{content:"󰕃"}.mdi-twitter:before{content:"󰕄"}.mdi-two-factor-authentication:before{content:"󰦯"}.mdi-typewriter:before{content:"󰼭"}.mdi-ubisoft:before{content:"󰯚"}.mdi-ubuntu:before{content:"󰕈"}.mdi-ufo:before{content:"󱃄"}.mdi-ufo-outline:before{content:"󱃅"}.mdi-ultra-high-definition:before{content:"󰟹"}.mdi-umbraco:before{content:"󰕉"}.mdi-umbrella:before{content:"󰕊"}.mdi-umbrella-beach:before{content:"󱢊"}.mdi-umbrella-beach-outline:before{content:"󱢋"}.mdi-umbrella-closed:before{content:"󰦰"}.mdi-umbrella-closed-outline:before{content:"󱏢"}.mdi-umbrella-closed-variant:before{content:"󱏡"}.mdi-umbrella-outline:before{content:"󰕋"}.mdi-undo:before{content:"󰕌"}.mdi-undo-variant:before{content:"󰕍"}.mdi-unfold-less-horizontal:before{content:"󰕎"}.mdi-unfold-less-vertical:before{content:"󰝠"}.mdi-unfold-more-horizontal:before{content:"󰕏"}.mdi-unfold-more-vertical:before{content:"󰝡"}.mdi-ungroup:before{content:"󰕐"}.mdi-unicode:before{content:"󰻐"}.mdi-unicorn:before{content:"󱗂"}.mdi-unicorn-variant:before{content:"󱗃"}.mdi-unicycle:before{content:"󱗥"}.mdi-unity:before{content:"󰚯"}.mdi-unreal:before{content:"󰦱"}.mdi-update:before{content:"󰚰"}.mdi-upload:before{content:"󰕒"}.mdi-upload-lock:before{content:"󱍳"}.mdi-upload-lock-outline:before{content:"󱍴"}.mdi-upload-multiple:before{content:"󰠽"}.mdi-upload-network:before{content:"󰛶"}.mdi-upload-network-outline:before{content:"󰳘"}.mdi-upload-off:before{content:"󱃆"}.mdi-upload-off-outline:before{content:"󱃇"}.mdi-upload-outline:before{content:"󰸇"}.mdi-usb:before{content:"󰕓"}.mdi-usb-c-port:before{content:"󱲿"}.mdi-usb-flash-drive:before{content:"󱊞"}.mdi-usb-flash-drive-outline:before{content:"󱊟"}.mdi-usb-port:before{content:"󱇰"}.mdi-vacuum:before{content:"󱦡"}.mdi-vacuum-outline:before{content:"󱦢"}.mdi-valve:before{content:"󱁦"}.mdi-valve-closed:before{content:"󱁧"}.mdi-valve-open:before{content:"󱁨"}.mdi-van-passenger:before{content:"󰟺"}.mdi-van-utility:before{content:"󰟻"}.mdi-vanish:before{content:"󰟼"}.mdi-vanish-quarter:before{content:"󱕔"}.mdi-vanity-light:before{content:"󱇡"}.mdi-variable:before{content:"󰫧"}.mdi-variable-box:before{content:"󱄑"}.mdi-vector-arrange-above:before{content:"󰕔"}.mdi-vector-arrange-below:before{content:"󰕕"}.mdi-vector-bezier:before{content:"󰫨"}.mdi-vector-circle:before{content:"󰕖"}.mdi-vector-circle-variant:before{content:"󰕗"}.mdi-vector-combine:before{content:"󰕘"}.mdi-vector-curve:before{content:"󰕙"}.mdi-vector-difference:before{content:"󰕚"}.mdi-vector-difference-ab:before{content:"󰕛"}.mdi-vector-difference-ba:before{content:"󰕜"}.mdi-vector-ellipse:before{content:"󰢓"}.mdi-vector-intersection:before{content:"󰕝"}.mdi-vector-line:before{content:"󰕞"}.mdi-vector-link:before{content:"󰿨"}.mdi-vector-point:before{content:"󰇄"}.mdi-vector-point-edit:before{content:"󰧨"}.mdi-vector-point-minus:before{content:"󱭸"}.mdi-vector-point-plus:before{content:"󱭹"}.mdi-vector-point-select:before{content:"󰕟"}.mdi-vector-polygon:before{content:"󰕠"}.mdi-vector-polygon-variant:before{content:"󱡖"}.mdi-vector-polyline:before{content:"󰕡"}.mdi-vector-polyline-edit:before{content:"󱈥"}.mdi-vector-polyline-minus:before{content:"󱈦"}.mdi-vector-polyline-plus:before{content:"󱈧"}.mdi-vector-polyline-remove:before{content:"󱈨"}.mdi-vector-radius:before{content:"󰝊"}.mdi-vector-rectangle:before{content:"󰗆"}.mdi-vector-selection:before{content:"󰕢"}.mdi-vector-square:before{content:"󰀁"}.mdi-vector-square-close:before{content:"󱡗"}.mdi-vector-square-edit:before{content:"󱣙"}.mdi-vector-square-minus:before{content:"󱣚"}.mdi-vector-square-open:before{content:"󱡘"}.mdi-vector-square-plus:before{content:"󱣛"}.mdi-vector-square-remove:before{content:"󱣜"}.mdi-vector-triangle:before{content:"󰕣"}.mdi-vector-union:before{content:"󰕤"}.mdi-vhs:before{content:"󰨛"}.mdi-vibrate:before{content:"󰕦"}.mdi-vibrate-off:before{content:"󰳙"}.mdi-video:before{content:"󰕧"}.mdi-video-2d:before{content:"󱨜"}.mdi-video-3d:before{content:"󰟽"}.mdi-video-3d-off:before{content:"󱏙"}.mdi-video-3d-variant:before{content:"󰻑"}.mdi-video-4k-box:before{content:"󰠾"}.mdi-video-account:before{content:"󰤙"}.mdi-video-box:before{content:"󰃽"}.mdi-video-box-off:before{content:"󰃾"}.mdi-video-check:before{content:"󱁩"}.mdi-video-check-outline:before{content:"󱁪"}.mdi-video-high-definition:before{content:"󱔮"}.mdi-video-image:before{content:"󰤚"}.mdi-video-input-antenna:before{content:"󰠿"}.mdi-video-input-component:before{content:"󰡀"}.mdi-video-input-hdmi:before{content:"󰡁"}.mdi-video-input-scart:before{content:"󰾌"}.mdi-video-input-svideo:before{content:"󰡂"}.mdi-video-marker:before{content:"󱦩"}.mdi-video-marker-outline:before{content:"󱦪"}.mdi-video-minus:before{content:"󰦲"}.mdi-video-minus-outline:before{content:"󰊺"}.mdi-video-off:before{content:"󰕨"}.mdi-video-off-outline:before{content:"󰯛"}.mdi-video-outline:before{content:"󰯜"}.mdi-video-plus:before{content:"󰦳"}.mdi-video-plus-outline:before{content:"󰇓"}.mdi-video-stabilization:before{content:"󰤛"}.mdi-video-standard-definition:before{content:"󱲠"}.mdi-video-switch:before{content:"󰕩"}.mdi-video-switch-outline:before{content:"󰞐"}.mdi-video-vintage:before{content:"󰨜"}.mdi-video-wireless:before{content:"󰻒"}.mdi-video-wireless-outline:before{content:"󰻓"}.mdi-view-agenda:before{content:"󰕪"}.mdi-view-agenda-outline:before{content:"󱇘"}.mdi-view-array:before{content:"󰕫"}.mdi-view-array-outline:before{content:"󱒅"}.mdi-view-carousel:before{content:"󰕬"}.mdi-view-carousel-outline:before{content:"󱒆"}.mdi-view-column:before{content:"󰕭"}.mdi-view-column-outline:before{content:"󱒇"}.mdi-view-comfy:before{content:"󰹪"}.mdi-view-comfy-outline:before{content:"󱒈"}.mdi-view-compact:before{content:"󰹫"}.mdi-view-compact-outline:before{content:"󰹬"}.mdi-view-dashboard:before{content:"󰕮"}.mdi-view-dashboard-edit:before{content:"󱥇"}.mdi-view-dashboard-edit-outline:before{content:"󱥈"}.mdi-view-dashboard-outline:before{content:"󰨝"}.mdi-view-dashboard-variant:before{content:"󰡃"}.mdi-view-dashboard-variant-outline:before{content:"󱒉"}.mdi-view-day:before{content:"󰕯"}.mdi-view-day-outline:before{content:"󱒊"}.mdi-view-gallery:before{content:"󱢈"}.mdi-view-gallery-outline:before{content:"󱢉"}.mdi-view-grid:before{content:"󰕰"}.mdi-view-grid-compact:before{content:"󱱡"}.mdi-view-grid-outline:before{content:"󱇙"}.mdi-view-grid-plus:before{content:"󰾍"}.mdi-view-grid-plus-outline:before{content:"󱇚"}.mdi-view-headline:before{content:"󰕱"}.mdi-view-list:before{content:"󰕲"}.mdi-view-list-outline:before{content:"󱒋"}.mdi-view-module:before{content:"󰕳"}.mdi-view-module-outline:before{content:"󱒌"}.mdi-view-parallel:before{content:"󰜨"}.mdi-view-parallel-outline:before{content:"󱒍"}.mdi-view-quilt:before{content:"󰕴"}.mdi-view-quilt-outline:before{content:"󱒎"}.mdi-view-sequential:before{content:"󰜩"}.mdi-view-sequential-outline:before{content:"󱒏"}.mdi-view-split-horizontal:before{content:"󰯋"}.mdi-view-split-vertical:before{content:"󰯌"}.mdi-view-stream:before{content:"󰕵"}.mdi-view-stream-outline:before{content:"󱒐"}.mdi-view-week:before{content:"󰕶"}.mdi-view-week-outline:before{content:"󱒑"}.mdi-vimeo:before{content:"󰕷"}.mdi-violin:before{content:"󰘏"}.mdi-virtual-reality:before{content:"󰢔"}.mdi-virus:before{content:"󱎶"}.mdi-virus-off:before{content:"󱣡"}.mdi-virus-off-outline:before{content:"󱣢"}.mdi-virus-outline:before{content:"󱎷"}.mdi-vlc:before{content:"󰕼"}.mdi-voicemail:before{content:"󰕽"}.mdi-volcano:before{content:"󱪃"}.mdi-volcano-outline:before{content:"󱪄"}.mdi-volleyball:before{content:"󰦴"}.mdi-volume-equal:before{content:"󱬐"}.mdi-volume-high:before{content:"󰕾"}.mdi-volume-low:before{content:"󰕿"}.mdi-volume-medium:before{content:"󰖀"}.mdi-volume-minus:before{content:"󰝞"}.mdi-volume-mute:before{content:"󰝟"}.mdi-volume-off:before{content:"󰖁"}.mdi-volume-plus:before{content:"󰝝"}.mdi-volume-source:before{content:"󱄠"}.mdi-volume-variant-off:before{content:"󰸈"}.mdi-volume-vibrate:before{content:"󱄡"}.mdi-vote:before{content:"󰨟"}.mdi-vote-outline:before{content:"󰨠"}.mdi-vpn:before{content:"󰖂"}.mdi-vuejs:before{content:"󰡄"}.mdi-vuetify:before{content:"󰹭"}.mdi-walk:before{content:"󰖃"}.mdi-wall:before{content:"󰟾"}.mdi-wall-fire:before{content:"󱨑"}.mdi-wall-sconce:before{content:"󰤜"}.mdi-wall-sconce-flat:before{content:"󰤝"}.mdi-wall-sconce-flat-outline:before{content:"󱟉"}.mdi-wall-sconce-flat-variant:before{content:"󰐜"}.mdi-wall-sconce-flat-variant-outline:before{content:"󱟊"}.mdi-wall-sconce-outline:before{content:"󱟋"}.mdi-wall-sconce-round:before{content:"󰝈"}.mdi-wall-sconce-round-outline:before{content:"󱟌"}.mdi-wall-sconce-round-variant:before{content:"󰤞"}.mdi-wall-sconce-round-variant-outline:before{content:"󱟍"}.mdi-wallet:before{content:"󰖄"}.mdi-wallet-bifold:before{content:"󱱘"}.mdi-wallet-bifold-outline:before{content:"󱱙"}.mdi-wallet-giftcard:before{content:"󰖅"}.mdi-wallet-membership:before{content:"󰖆"}.mdi-wallet-outline:before{content:"󰯝"}.mdi-wallet-plus:before{content:"󰾎"}.mdi-wallet-plus-outline:before{content:"󰾏"}.mdi-wallet-travel:before{content:"󰖇"}.mdi-wallpaper:before{content:"󰸉"}.mdi-wan:before{content:"󰖈"}.mdi-wardrobe:before{content:"󰾐"}.mdi-wardrobe-outline:before{content:"󰾑"}.mdi-warehouse:before{content:"󰾁"}.mdi-washing-machine:before{content:"󰜪"}.mdi-washing-machine-alert:before{content:"󱆼"}.mdi-washing-machine-off:before{content:"󱆽"}.mdi-watch:before{content:"󰖉"}.mdi-watch-export:before{content:"󰖊"}.mdi-watch-export-variant:before{content:"󰢕"}.mdi-watch-import:before{content:"󰖋"}.mdi-watch-import-variant:before{content:"󰢖"}.mdi-watch-variant:before{content:"󰢗"}.mdi-watch-vibrate:before{content:"󰚱"}.mdi-watch-vibrate-off:before{content:"󰳚"}.mdi-water:before{content:"󰖌"}.mdi-water-alert:before{content:"󱔂"}.mdi-water-alert-outline:before{content:"󱔃"}.mdi-water-boiler:before{content:"󰾒"}.mdi-water-boiler-alert:before{content:"󱆳"}.mdi-water-boiler-auto:before{content:"󱮘"}.mdi-water-boiler-off:before{content:"󱆴"}.mdi-water-check:before{content:"󱔄"}.mdi-water-check-outline:before{content:"󱔅"}.mdi-water-circle:before{content:"󱠆"}.mdi-water-minus:before{content:"󱔆"}.mdi-water-minus-outline:before{content:"󱔇"}.mdi-water-off:before{content:"󰖍"}.mdi-water-off-outline:before{content:"󱔈"}.mdi-water-opacity:before{content:"󱡕"}.mdi-water-outline:before{content:"󰸊"}.mdi-water-percent:before{content:"󰖎"}.mdi-water-percent-alert:before{content:"󱔉"}.mdi-water-plus:before{content:"󱔊"}.mdi-water-plus-outline:before{content:"󱔋"}.mdi-water-polo:before{content:"󱊠"}.mdi-water-pump:before{content:"󰖏"}.mdi-water-pump-off:before{content:"󰾓"}.mdi-water-remove:before{content:"󱔌"}.mdi-water-remove-outline:before{content:"󱔍"}.mdi-water-sync:before{content:"󱟆"}.mdi-water-thermometer:before{content:"󱪅"}.mdi-water-thermometer-outline:before{content:"󱪆"}.mdi-water-well:before{content:"󱁫"}.mdi-water-well-outline:before{content:"󱁬"}.mdi-waterfall:before{content:"󱡉"}.mdi-watering-can:before{content:"󱒁"}.mdi-watering-can-outline:before{content:"󱒂"}.mdi-watermark:before{content:"󰘒"}.mdi-wave:before{content:"󰼮"}.mdi-wave-arrow-down:before{content:"󱲰"}.mdi-wave-arrow-up:before{content:"󱲱"}.mdi-wave-undercurrent:before{content:"󱳀"}.mdi-waveform:before{content:"󱑽"}.mdi-waves:before{content:"󰞍"}.mdi-waves-arrow-left:before{content:"󱡙"}.mdi-waves-arrow-right:before{content:"󱡚"}.mdi-waves-arrow-up:before{content:"󱡛"}.mdi-waze:before{content:"󰯞"}.mdi-weather-cloudy:before{content:"󰖐"}.mdi-weather-cloudy-alert:before{content:"󰼯"}.mdi-weather-cloudy-arrow-right:before{content:"󰹮"}.mdi-weather-cloudy-clock:before{content:"󱣶"}.mdi-weather-dust:before{content:"󱭚"}.mdi-weather-fog:before{content:"󰖑"}.mdi-weather-hail:before{content:"󰖒"}.mdi-weather-hazy:before{content:"󰼰"}.mdi-weather-hurricane:before{content:"󰢘"}.mdi-weather-hurricane-outline:before{content:"󱱸"}.mdi-weather-lightning:before{content:"󰖓"}.mdi-weather-lightning-rainy:before{content:"󰙾"}.mdi-weather-night:before{content:"󰖔"}.mdi-weather-night-partly-cloudy:before{content:"󰼱"}.mdi-weather-partly-cloudy:before{content:"󰖕"}.mdi-weather-partly-lightning:before{content:"󰼲"}.mdi-weather-partly-rainy:before{content:"󰼳"}.mdi-weather-partly-snowy:before{content:"󰼴"}.mdi-weather-partly-snowy-rainy:before{content:"󰼵"}.mdi-weather-pouring:before{content:"󰖖"}.mdi-weather-rainy:before{content:"󰖗"}.mdi-weather-snowy:before{content:"󰖘"}.mdi-weather-snowy-heavy:before{content:"󰼶"}.mdi-weather-snowy-rainy:before{content:"󰙿"}.mdi-weather-sunny:before{content:"󰖙"}.mdi-weather-sunny-alert:before{content:"󰼷"}.mdi-weather-sunny-off:before{content:"󱓤"}.mdi-weather-sunset:before{content:"󰖚"}.mdi-weather-sunset-down:before{content:"󰖛"}.mdi-weather-sunset-up:before{content:"󰖜"}.mdi-weather-tornado:before{content:"󰼸"}.mdi-weather-windy:before{content:"󰖝"}.mdi-weather-windy-variant:before{content:"󰖞"}.mdi-web:before{content:"󰖟"}.mdi-web-box:before{content:"󰾔"}.mdi-web-cancel:before{content:"󱞐"}.mdi-web-check:before{content:"󰞉"}.mdi-web-clock:before{content:"󱉊"}.mdi-web-minus:before{content:"󱂠"}.mdi-web-off:before{content:"󰪎"}.mdi-web-plus:before{content:"󰀳"}.mdi-web-refresh:before{content:"󱞑"}.mdi-web-remove:before{content:"󰕑"}.mdi-web-sync:before{content:"󱞒"}.mdi-webcam:before{content:"󰖠"}.mdi-webcam-off:before{content:"󱜷"}.mdi-webhook:before{content:"󰘯"}.mdi-webpack:before{content:"󰜫"}.mdi-webrtc:before{content:"󱉈"}.mdi-wechat:before{content:"󰘑"}.mdi-weight:before{content:"󰖡"}.mdi-weight-gram:before{content:"󰴿"}.mdi-weight-kilogram:before{content:"󰖢"}.mdi-weight-lifter:before{content:"󱅝"}.mdi-weight-pound:before{content:"󰦵"}.mdi-whatsapp:before{content:"󰖣"}.mdi-wheel-barrow:before{content:"󱓲"}.mdi-wheelchair:before{content:"󱪇"}.mdi-wheelchair-accessibility:before{content:"󰖤"}.mdi-whistle:before{content:"󰦶"}.mdi-whistle-outline:before{content:"󱊼"}.mdi-white-balance-auto:before{content:"󰖥"}.mdi-white-balance-incandescent:before{content:"󰖦"}.mdi-white-balance-iridescent:before{content:"󰖧"}.mdi-white-balance-sunny:before{content:"󰖨"}.mdi-widgets:before{content:"󰜬"}.mdi-widgets-outline:before{content:"󱍕"}.mdi-wifi:before{content:"󰖩"}.mdi-wifi-alert:before{content:"󱚵"}.mdi-wifi-arrow-down:before{content:"󱚶"}.mdi-wifi-arrow-left:before{content:"󱚷"}.mdi-wifi-arrow-left-right:before{content:"󱚸"}.mdi-wifi-arrow-right:before{content:"󱚹"}.mdi-wifi-arrow-up:before{content:"󱚺"}.mdi-wifi-arrow-up-down:before{content:"󱚻"}.mdi-wifi-cancel:before{content:"󱚼"}.mdi-wifi-check:before{content:"󱚽"}.mdi-wifi-cog:before{content:"󱚾"}.mdi-wifi-lock:before{content:"󱚿"}.mdi-wifi-lock-open:before{content:"󱛀"}.mdi-wifi-marker:before{content:"󱛁"}.mdi-wifi-minus:before{content:"󱛂"}.mdi-wifi-off:before{content:"󰖪"}.mdi-wifi-plus:before{content:"󱛃"}.mdi-wifi-refresh:before{content:"󱛄"}.mdi-wifi-remove:before{content:"󱛅"}.mdi-wifi-settings:before{content:"󱛆"}.mdi-wifi-star:before{content:"󰸋"}.mdi-wifi-strength-1:before{content:"󰤟"}.mdi-wifi-strength-1-alert:before{content:"󰤠"}.mdi-wifi-strength-1-lock:before{content:"󰤡"}.mdi-wifi-strength-1-lock-open:before{content:"󱛋"}.mdi-wifi-strength-2:before{content:"󰤢"}.mdi-wifi-strength-2-alert:before{content:"󰤣"}.mdi-wifi-strength-2-lock:before{content:"󰤤"}.mdi-wifi-strength-2-lock-open:before{content:"󱛌"}.mdi-wifi-strength-3:before{content:"󰤥"}.mdi-wifi-strength-3-alert:before{content:"󰤦"}.mdi-wifi-strength-3-lock:before{content:"󰤧"}.mdi-wifi-strength-3-lock-open:before{content:"󱛍"}.mdi-wifi-strength-4:before{content:"󰤨"}.mdi-wifi-strength-4-alert:before{content:"󰤩"}.mdi-wifi-strength-4-lock:before{content:"󰤪"}.mdi-wifi-strength-4-lock-open:before{content:"󱛎"}.mdi-wifi-strength-alert-outline:before{content:"󰤫"}.mdi-wifi-strength-lock-open-outline:before{content:"󱛏"}.mdi-wifi-strength-lock-outline:before{content:"󰤬"}.mdi-wifi-strength-off:before{content:"󰤭"}.mdi-wifi-strength-off-outline:before{content:"󰤮"}.mdi-wifi-strength-outline:before{content:"󰤯"}.mdi-wifi-sync:before{content:"󱛇"}.mdi-wikipedia:before{content:"󰖬"}.mdi-wind-power:before{content:"󱪈"}.mdi-wind-power-outline:before{content:"󱪉"}.mdi-wind-turbine:before{content:"󰶥"}.mdi-wind-turbine-alert:before{content:"󱦫"}.mdi-wind-turbine-check:before{content:"󱦬"}.mdi-window-close:before{content:"󰖭"}.mdi-window-closed:before{content:"󰖮"}.mdi-window-closed-variant:before{content:"󱇛"}.mdi-window-maximize:before{content:"󰖯"}.mdi-window-minimize:before{content:"󰖰"}.mdi-window-open:before{content:"󰖱"}.mdi-window-open-variant:before{content:"󱇜"}.mdi-window-restore:before{content:"󰖲"}.mdi-window-shutter:before{content:"󱄜"}.mdi-window-shutter-alert:before{content:"󱄝"}.mdi-window-shutter-auto:before{content:"󱮣"}.mdi-window-shutter-cog:before{content:"󱪊"}.mdi-window-shutter-open:before{content:"󱄞"}.mdi-window-shutter-settings:before{content:"󱪋"}.mdi-windsock:before{content:"󱗺"}.mdi-wiper:before{content:"󰫩"}.mdi-wiper-wash:before{content:"󰶦"}.mdi-wiper-wash-alert:before{content:"󱣟"}.mdi-wizard-hat:before{content:"󱑷"}.mdi-wordpress:before{content:"󰖴"}.mdi-wrap:before{content:"󰖶"}.mdi-wrap-disabled:before{content:"󰯟"}.mdi-wrench:before{content:"󰖷"}.mdi-wrench-check:before{content:"󱮏"}.mdi-wrench-check-outline:before{content:"󱮐"}.mdi-wrench-clock:before{content:"󱦣"}.mdi-wrench-clock-outline:before{content:"󱮓"}.mdi-wrench-cog:before{content:"󱮑"}.mdi-wrench-cog-outline:before{content:"󱮒"}.mdi-wrench-outline:before{content:"󰯠"}.mdi-xamarin:before{content:"󰡅"}.mdi-xml:before{content:"󰗀"}.mdi-xmpp:before{content:"󰟿"}.mdi-yahoo:before{content:"󰭏"}.mdi-yeast:before{content:"󰗁"}.mdi-yin-yang:before{content:"󰚀"}.mdi-yoga:before{content:"󱅼"}.mdi-youtube:before{content:"󰗃"}.mdi-youtube-gaming:before{content:"󰡈"}.mdi-youtube-studio:before{content:"󰡇"}.mdi-youtube-subscription:before{content:"󰵀"}.mdi-youtube-tv:before{content:"󰑈"}.mdi-yurt:before{content:"󱔖"}.mdi-z-wave:before{content:"󰫪"}.mdi-zend:before{content:"󰫫"}.mdi-zigbee:before{content:"󰵁"}.mdi-zip-box:before{content:"󰗄"}.mdi-zip-box-outline:before{content:"󰿺"}.mdi-zip-disk:before{content:"󰨣"}.mdi-zodiac-aquarius:before{content:"󰩽"}.mdi-zodiac-aries:before{content:"󰩾"}.mdi-zodiac-cancer:before{content:"󰩿"}.mdi-zodiac-capricorn:before{content:"󰪀"}.mdi-zodiac-gemini:before{content:"󰪁"}.mdi-zodiac-leo:before{content:"󰪂"}.mdi-zodiac-libra:before{content:"󰪃"}.mdi-zodiac-pisces:before{content:"󰪄"}.mdi-zodiac-sagittarius:before{content:"󰪅"}.mdi-zodiac-scorpio:before{content:"󰪆"}.mdi-zodiac-taurus:before{content:"󰪇"}.mdi-zodiac-virgo:before{content:"󰪈"}.mdi-blank:before{content:"";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}html,body{font-family:Pathway Extreme,sans-serif}h1,h2,h3,h4,h5,p{margin:0}ul{list-style-position:inside}.zt-menu{border:1px solid rgba(var(--v-theme-bluegrey))}.zt-menu .v-list-item__prepend{margin-right:12px}.v-container{max-width:1250px}.code-output{white-space:pre-wrap}.v-expansion-panel--active>.v-expansion-panel-title{min-height:31px}.add-cell-item:hover{background-color:rgba(var(--v-theme-bluegrey))}.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important}.bg-black{color:#fff!important}.bg-white{background-color:#fff!important}.bg-white{color:#000!important}.bg-transparent{background-color:transparent!important}.bg-transparent{color:currentColor!important}.bg-red{background-color:#f44336!important}.bg-red{color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important}.bg-red-lighten-5{color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important}.bg-red-lighten-4{color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important}.bg-red-lighten-3{color:#000!important}.bg-red-lighten-2{background-color:#e57373!important}.bg-red-lighten-2{color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important}.bg-red-lighten-1{color:#fff!important}.bg-red-darken-1{background-color:#e53935!important}.bg-red-darken-1{color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important}.bg-red-darken-2{color:#fff!important}.bg-red-darken-3{background-color:#c62828!important}.bg-red-darken-3{color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important}.bg-red-darken-4{color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important}.bg-red-accent-1{color:#000!important}.bg-red-accent-2{background-color:#ff5252!important}.bg-red-accent-2{color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important}.bg-red-accent-3{color:#fff!important}.bg-red-accent-4{background-color:#d50000!important}.bg-red-accent-4{color:#fff!important}.bg-pink{background-color:#e91e63!important}.bg-pink{color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important}.bg-pink-lighten-5{color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important}.bg-pink-lighten-4{color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important}.bg-pink-lighten-3{color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important}.bg-pink-lighten-2{color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important}.bg-pink-lighten-1{color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important}.bg-pink-darken-1{color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important}.bg-pink-darken-2{color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important}.bg-pink-darken-3{color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important}.bg-pink-darken-4{color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important}.bg-pink-accent-1{color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important}.bg-pink-accent-2{color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important}.bg-pink-accent-3{color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important}.bg-pink-accent-4{color:#fff!important}.bg-purple{background-color:#9c27b0!important}.bg-purple{color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important}.bg-purple-lighten-5{color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important}.bg-purple-lighten-4{color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important}.bg-purple-lighten-3{color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important}.bg-purple-lighten-2{color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important}.bg-purple-lighten-1{color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important}.bg-purple-darken-1{color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important}.bg-purple-darken-2{color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important}.bg-purple-darken-3{color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important}.bg-purple-darken-4{color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important}.bg-purple-accent-1{color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important}.bg-purple-accent-2{color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important}.bg-purple-accent-3{color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important}.bg-purple-accent-4{color:#fff!important}.bg-deep-purple{background-color:#673ab7!important}.bg-deep-purple{color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important}.bg-deep-purple-lighten-5{color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important}.bg-deep-purple-lighten-4{color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important}.bg-deep-purple-lighten-3{color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important}.bg-deep-purple-lighten-2{color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important}.bg-deep-purple-lighten-1{color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important}.bg-deep-purple-darken-1{color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important}.bg-deep-purple-darken-2{color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important}.bg-deep-purple-darken-3{color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important}.bg-deep-purple-darken-4{color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important}.bg-deep-purple-accent-1{color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important}.bg-deep-purple-accent-2{color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important}.bg-deep-purple-accent-3{color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important}.bg-deep-purple-accent-4{color:#fff!important}.bg-indigo{background-color:#3f51b5!important}.bg-indigo{color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important}.bg-indigo-lighten-5{color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important}.bg-indigo-lighten-4{color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important}.bg-indigo-lighten-3{color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important}.bg-indigo-lighten-2{color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important}.bg-indigo-lighten-1{color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important}.bg-indigo-darken-1{color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important}.bg-indigo-darken-2{color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important}.bg-indigo-darken-3{color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important}.bg-indigo-darken-4{color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important}.bg-indigo-accent-1{color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important}.bg-indigo-accent-2{color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important}.bg-indigo-accent-3{color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important}.bg-indigo-accent-4{color:#fff!important}.bg-blue{background-color:#2196f3!important}.bg-blue{color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important}.bg-blue-lighten-5{color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important}.bg-blue-lighten-4{color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important}.bg-blue-lighten-3{color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important}.bg-blue-lighten-2{color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important}.bg-blue-lighten-1{color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important}.bg-blue-darken-1{color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important}.bg-blue-darken-2{color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important}.bg-blue-darken-3{color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important}.bg-blue-darken-4{color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important}.bg-blue-accent-1{color:#000!important}.bg-blue-accent-2{background-color:#448aff!important}.bg-blue-accent-2{color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important}.bg-blue-accent-3{color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important}.bg-blue-accent-4{color:#fff!important}.bg-light-blue{background-color:#03a9f4!important}.bg-light-blue{color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important}.bg-light-blue-lighten-5{color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important}.bg-light-blue-lighten-4{color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important}.bg-light-blue-lighten-3{color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important}.bg-light-blue-lighten-2{color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important}.bg-light-blue-lighten-1{color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important}.bg-light-blue-darken-1{color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important}.bg-light-blue-darken-2{color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important}.bg-light-blue-darken-3{color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important}.bg-light-blue-darken-4{color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important}.bg-light-blue-accent-1{color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important}.bg-light-blue-accent-2{color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important}.bg-light-blue-accent-3{color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important}.bg-light-blue-accent-4{color:#fff!important}.bg-cyan{background-color:#00bcd4!important}.bg-cyan{color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important}.bg-cyan-lighten-5{color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important}.bg-cyan-lighten-4{color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important}.bg-cyan-lighten-3{color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important}.bg-cyan-lighten-2{color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important}.bg-cyan-lighten-1{color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important}.bg-cyan-darken-1{color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important}.bg-cyan-darken-2{color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important}.bg-cyan-darken-3{color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important}.bg-cyan-darken-4{color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important}.bg-cyan-accent-1{color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important}.bg-cyan-accent-2{color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important}.bg-cyan-accent-3{color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important}.bg-cyan-accent-4{color:#fff!important}.bg-teal{background-color:#009688!important}.bg-teal{color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important}.bg-teal-lighten-5{color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important}.bg-teal-lighten-4{color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important}.bg-teal-lighten-3{color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important}.bg-teal-lighten-2{color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important}.bg-teal-lighten-1{color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important}.bg-teal-darken-1{color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important}.bg-teal-darken-2{color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important}.bg-teal-darken-3{color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important}.bg-teal-darken-4{color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important}.bg-teal-accent-1{color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important}.bg-teal-accent-2{color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important}.bg-teal-accent-3{color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important}.bg-teal-accent-4{color:#fff!important}.bg-green{background-color:#4caf50!important}.bg-green{color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important}.bg-green-lighten-5{color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important}.bg-green-lighten-4{color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important}.bg-green-lighten-3{color:#000!important}.bg-green-lighten-2{background-color:#81c784!important}.bg-green-lighten-2{color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important}.bg-green-lighten-1{color:#fff!important}.bg-green-darken-1{background-color:#43a047!important}.bg-green-darken-1{color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important}.bg-green-darken-2{color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important}.bg-green-darken-3{color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important}.bg-green-darken-4{color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important}.bg-green-accent-1{color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important}.bg-green-accent-2{color:#000!important}.bg-green-accent-3{background-color:#00e676!important}.bg-green-accent-3{color:#000!important}.bg-green-accent-4{background-color:#00c853!important}.bg-green-accent-4{color:#000!important}.bg-light-green{background-color:#8bc34a!important}.bg-light-green{color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important}.bg-light-green-lighten-5{color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important}.bg-light-green-lighten-4{color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important}.bg-light-green-lighten-3{color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important}.bg-light-green-lighten-2{color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important}.bg-light-green-lighten-1{color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important}.bg-light-green-darken-1{color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important}.bg-light-green-darken-2{color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important}.bg-light-green-darken-3{color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important}.bg-light-green-darken-4{color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important}.bg-light-green-accent-1{color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important}.bg-light-green-accent-2{color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important}.bg-light-green-accent-3{color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important}.bg-light-green-accent-4{color:#000!important}.bg-lime{background-color:#cddc39!important}.bg-lime{color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important}.bg-lime-lighten-5{color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important}.bg-lime-lighten-4{color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important}.bg-lime-lighten-3{color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important}.bg-lime-lighten-2{color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important}.bg-lime-lighten-1{color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important}.bg-lime-darken-1{color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important}.bg-lime-darken-2{color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important}.bg-lime-darken-3{color:#fff!important}.bg-lime-darken-4{background-color:#827717!important}.bg-lime-darken-4{color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important}.bg-lime-accent-1{color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important}.bg-lime-accent-2{color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important}.bg-lime-accent-3{color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important}.bg-lime-accent-4{color:#000!important}.bg-yellow{background-color:#ffeb3b!important}.bg-yellow{color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important}.bg-yellow-lighten-5{color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important}.bg-yellow-lighten-4{color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important}.bg-yellow-lighten-3{color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important}.bg-yellow-lighten-2{color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important}.bg-yellow-lighten-1{color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important}.bg-yellow-darken-1{color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important}.bg-yellow-darken-2{color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important}.bg-yellow-darken-3{color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important}.bg-yellow-darken-4{color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important}.bg-yellow-accent-1{color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important}.bg-yellow-accent-2{color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important}.bg-yellow-accent-3{color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important}.bg-yellow-accent-4{color:#000!important}.bg-amber{background-color:#ffc107!important}.bg-amber{color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important}.bg-amber-lighten-5{color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important}.bg-amber-lighten-4{color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important}.bg-amber-lighten-3{color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important}.bg-amber-lighten-2{color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important}.bg-amber-lighten-1{color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important}.bg-amber-darken-1{color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important}.bg-amber-darken-2{color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important}.bg-amber-darken-3{color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important}.bg-amber-darken-4{color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important}.bg-amber-accent-1{color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important}.bg-amber-accent-2{color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important}.bg-amber-accent-3{color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important}.bg-amber-accent-4{color:#000!important}.bg-orange{background-color:#ff9800!important}.bg-orange{color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important}.bg-orange-lighten-5{color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important}.bg-orange-lighten-4{color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important}.bg-orange-lighten-3{color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important}.bg-orange-lighten-2{color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important}.bg-orange-lighten-1{color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important}.bg-orange-darken-1{color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important}.bg-orange-darken-2{color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important}.bg-orange-darken-3{color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important}.bg-orange-darken-4{color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important}.bg-orange-accent-1{color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important}.bg-orange-accent-2{color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important}.bg-orange-accent-3{color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important}.bg-orange-accent-4{color:#fff!important}.bg-deep-orange{background-color:#ff5722!important}.bg-deep-orange{color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important}.bg-deep-orange-lighten-5{color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important}.bg-deep-orange-lighten-4{color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important}.bg-deep-orange-lighten-3{color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important}.bg-deep-orange-lighten-2{color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important}.bg-deep-orange-lighten-1{color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important}.bg-deep-orange-darken-1{color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important}.bg-deep-orange-darken-2{color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important}.bg-deep-orange-darken-3{color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important}.bg-deep-orange-darken-4{color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important}.bg-deep-orange-accent-1{color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important}.bg-deep-orange-accent-2{color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important}.bg-deep-orange-accent-3{color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important}.bg-deep-orange-accent-4{color:#fff!important}.bg-brown{background-color:#795548!important}.bg-brown{color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important}.bg-brown-lighten-5{color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important}.bg-brown-lighten-4{color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important}.bg-brown-lighten-3{color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important}.bg-brown-lighten-2{color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important}.bg-brown-lighten-1{color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important}.bg-brown-darken-1{color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important}.bg-brown-darken-2{color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important}.bg-brown-darken-3{color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important}.bg-brown-darken-4{color:#fff!important}.bg-blue-grey{background-color:#607d8b!important}.bg-blue-grey{color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important}.bg-blue-grey-lighten-5{color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important}.bg-blue-grey-lighten-4{color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important}.bg-blue-grey-lighten-3{color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important}.bg-blue-grey-lighten-2{color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important}.bg-blue-grey-lighten-1{color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important}.bg-blue-grey-darken-1{color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important}.bg-blue-grey-darken-2{color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important}.bg-blue-grey-darken-3{color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important}.bg-blue-grey-darken-4{color:#fff!important}.bg-grey{background-color:#9e9e9e!important}.bg-grey{color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important}.bg-grey-lighten-5{color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important}.bg-grey-lighten-4{color:#000!important}.bg-grey-lighten-3{background-color:#eee!important}.bg-grey-lighten-3{color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important}.bg-grey-lighten-2{color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important}.bg-grey-lighten-1{color:#000!important}.bg-grey-darken-1{background-color:#757575!important}.bg-grey-darken-1{color:#fff!important}.bg-grey-darken-2{background-color:#616161!important}.bg-grey-darken-2{color:#fff!important}.bg-grey-darken-3{background-color:#424242!important}.bg-grey-darken-3{color:#fff!important}.bg-grey-darken-4{background-color:#212121!important}.bg-grey-darken-4{color:#fff!important}.bg-shades-black{background-color:#000!important}.bg-shades-black{color:#fff!important}.bg-shades-white{background-color:#fff!important}.bg-shades-white{color:#000!important}.bg-shades-transparent{background-color:transparent!important}.bg-shades-transparent{color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! +@charset "UTF-8";.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%}.v-toolbar{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar{border-radius:0}.v-toolbar{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden;border-end-end-radius:24px}.v-toolbar--collapse .v-toolbar-title{display:none}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content{overflow:hidden}.v-toolbar__content>.v-btn:first-child{margin-inline-start:4px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:4px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:20px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline:4px auto}.v-toolbar__append{margin-inline:auto 4px}.v-toolbar-title{flex:1 1;font-size:1.25rem;min-width:0}.v-toolbar-title{font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px}.v-toolbar--density-prominent .v-toolbar-title{font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0}.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img--rounded{border-radius:4px}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;vertical-align:middle;flex-shrink:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-btn .v-btn__underlay{position:absolute}@supports selector(:focus-visible){.v-btn:after{pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--slim{padding:0 8px}.v-btn--readonly{pointer-events:none}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn--stacked.v-btn--block{min-width:100%}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__loader>.v-progress-circular{width:1.5em;height:1.5em}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn--slim .v-btn__prepend{margin-inline-start:0}.v-btn__append{grid-area:append;margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--slim .v-btn__append{margin-inline-end:0}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{pointer-events:none}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-pagination .v-btn{border-radius:4px}.v-pagination .v-btn--rounded{border-radius:50%}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(0 * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((0 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle}.v-btn-group{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn-group{border-radius:4px}.v-btn-group{background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}@media (forced-colors: active){.v-progress-linear{border:thin solid buttontext}}.v-progress-linear__background,.v-progress-linear__buffer{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;width:100%;transition-property:width,left,right;transition:inherit}@media (forced-colors: active){.v-progress-linear__buffer{background-color:highlight;opacity:.3}}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}@media (forced-colors: active){.v-progress-linear__determinate,.v-progress-linear__indeterminate{background-color:highlight}}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-progress-linear--rounded-bar .v-progress-linear__determinate{border-start-start-radius:0;border-end-start-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-alert{display:grid;flex:1 1;grid-template-areas:"prepend content append close" ". content . .";grid-template-columns:max-content auto max-content max-content;position:relative;padding:16px;overflow:hidden;--v-border-color: currentColor}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert{border-radius:4px}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{background:transparent;color:inherit}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-alert--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-outlined{border:thin solid currentColor}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-alert .v-alert__underlay{position:absolute}.v-alert--prominent{grid-template-areas:"prepend content append close" "prepend content . ."}.v-alert.v-alert--border{--v-border-opacity: .38}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:.2s opacity cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-bottom:16px;padding-top:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-bottom:12px;padding-top:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-bottom:8px;padding-top:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert__border{border-radius:inherit;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;pointer-events:none;right:0;top:0;width:100%}.v-alert__border{border-color:currentColor;border-style:solid;border-width:0}.v-alert__border--border{border-width:8px;box-shadow:none}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 1 auto;grid-area:close}.v-alert__content{align-self:center;grid-area:content;overflow:hidden}.v-alert__append,.v-alert__close{align-self:flex-start;margin-inline-start:16px}.v-alert__append{align-self:flex-start;grid-area:append}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{align-self:flex-start;display:flex;align-items:center;grid-area:prepend;margin-inline-end:16px}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-alert-title{align-items:center;align-self:center;display:flex;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;line-height:1.75rem;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden}.v-autocomplete__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-autocomplete__content{border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-surface-light))}.v-autocomplete__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single:not(.v-autocomplete--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--active input{transition:none}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar{border-radius:50%}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-avatar .v-avatar__underlay{position:absolute}.v-avatar--rounded{border-radius:4px}.v-avatar--start{margin-inline-end:8px}.v-avatar--end{margin-inline-start:8px}.v-avatar .v-img{height:100%;width:100%}.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error .v-label,.v-selection-control--disabled .v-label{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-label{align-items:center;color:inherit;display:inline-flex;font-size:1rem;letter-spacing:.009375em;min-width:0;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-label--clickable{cursor:pointer}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.v-input{display:grid;flex:1 1 auto;font-size:1rem;font-weight:400;line-height:1.5}.v-input--disabled{pointer-events:none}.v-input--density-default{--v-input-control-height: 56px;--v-input-padding-top: 16px}.v-input--density-comfortable{--v-input-control-height: 48px;--v-input-padding-top: 12px}.v-input--density-compact{--v-input-control-height: 40px;--v-input-padding-top: 8px}.v-input--vertical{grid-template-areas:"append" "control" "prepend";grid-template-rows:max-content auto max-content;grid-template-columns:min-content}.v-input--vertical .v-input__prepend{margin-block-start:16px}.v-input--vertical .v-input__append{margin-block-end:16px}.v-input--horizontal{grid-template-areas:"prepend control append" "a messages b";grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto auto}.v-input--horizontal .v-input__prepend{margin-inline-end:16px}.v-input--horizontal .v-input__append{margin-inline-start:16px}.v-input__details{align-items:flex-end;display:flex;font-size:.75rem;font-weight:400;grid-area:messages;letter-spacing:.0333333333em;line-height:normal;min-height:22px;padding-top:6px;overflow:hidden;justify-content:space-between}.v-input__details>.v-icon,.v-input__prepend>.v-icon,.v-input__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-input--disabled .v-input__details>.v-icon,.v-input--disabled .v-input__details .v-messages,.v-input--error .v-input__details>.v-icon,.v-input--error .v-input__details .v-messages,.v-input--disabled .v-input__prepend>.v-icon,.v-input--disabled .v-input__prepend .v-messages,.v-input--error .v-input__prepend>.v-icon,.v-input--error .v-input__prepend .v-messages,.v-input--disabled .v-input__append>.v-icon,.v-input--disabled .v-input__append .v-messages,.v-input--error .v-input__append>.v-icon,.v-input--error .v-input__append .v-messages{opacity:1}.v-input--disabled .v-input__details,.v-input--disabled .v-input__prepend,.v-input--disabled .v-input__append{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-input__details>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__details .v-messages,.v-input--error:not(.v-input--disabled) .v-input__prepend>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__prepend .v-messages,.v-input--error:not(.v-input--disabled) .v-input__append>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__append .v-messages{color:rgb(var(--v-theme-error))}.v-input__prepend,.v-input__append{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top)}.v-input--center-affix .v-input__prepend,.v-input--center-affix .v-input__append{align-items:center;padding-top:0}.v-input__prepend{grid-area:prepend}.v-input__append{grid-area:append}.v-input__control{display:flex;grid-area:control}.v-input--hide-spin-buttons input::-webkit-outer-spin-button,.v-input--hide-spin-buttons input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.v-input--hide-spin-buttons input[type=number]{-moz-appearance:textfield}.v-input--plain-underlined .v-input__prepend,.v-input--plain-underlined .v-input__append{align-items:flex-start}.v-input--density-default.v-input--plain-underlined .v-input__prepend,.v-input--density-default.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 4px)}.v-input--density-comfortable.v-input--plain-underlined .v-input__prepend,.v-input--density-comfortable.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 2px)}.v-input--density-compact.v-input--plain-underlined .v-input__prepend,.v-input--density-compact.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 0px)}.v-messages{flex:1 1 auto;font-size:12px;min-height:14px;min-width:1px;opacity:var(--v-medium-emphasis-opacity);position:relative}.v-messages__message{line-height:12px;word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;transition-duration:.15s}.v-chip{align-items:center;display:inline-flex;font-weight:400;max-width:100%;min-width:0;overflow:hidden;position:relative;text-decoration:none;white-space:nowrap;vertical-align:middle}.v-chip .v-icon{--v-icon-size-multiplier: .8571428571}.v-chip.v-chip--size-x-small{--v-chip-size: .625rem;--v-chip-height: 20px;font-size:.625rem;padding:0 8px}.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 14px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 20px}.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-5.6px;margin-inline-end:4px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-8px}.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-start:4px;margin-inline-end:-5.6px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-end:-8px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-x-small .v-icon--start,.v-chip.v-chip--size-x-small .v-chip__filter{margin-inline-start:-4px;margin-inline-end:4px}.v-chip.v-chip--size-x-small .v-icon--end,.v-chip.v-chip--size-x-small .v-chip__close{margin-inline-start:4px;margin-inline-end:-4px}.v-chip.v-chip--size-x-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-chip__append+.v-chip__close{margin-inline-start:8px}.v-chip.v-chip--size-small{--v-chip-size: .75rem;--v-chip-height: 26px;font-size:.75rem;padding:0 10px}.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 20px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 26px}.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-7px;margin-inline-end:5px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-10px}.v-chip.v-chip--size-small .v-avatar--end{margin-inline-start:5px;margin-inline-end:-7px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end{margin-inline-end:-10px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close{margin-inline-start:15px}.v-chip.v-chip--size-small .v-icon--start,.v-chip.v-chip--size-small .v-chip__filter{margin-inline-start:-5px;margin-inline-end:5px}.v-chip.v-chip--size-small .v-icon--end,.v-chip.v-chip--size-small .v-chip__close{margin-inline-start:5px;margin-inline-end:-5px}.v-chip.v-chip--size-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-small .v-chip__append+.v-chip__close{margin-inline-start:10px}.v-chip.v-chip--size-default{--v-chip-size: .875rem;--v-chip-height: 32px;font-size:.875rem;padding:0 12px}.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 26px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 32px}.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-8.4px;margin-inline-end:6px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-12px}.v-chip.v-chip--size-default .v-avatar--end{margin-inline-start:6px;margin-inline-end:-8.4px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end{margin-inline-end:-12px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close{margin-inline-start:18px}.v-chip.v-chip--size-default .v-icon--start,.v-chip.v-chip--size-default .v-chip__filter{margin-inline-start:-6px;margin-inline-end:6px}.v-chip.v-chip--size-default .v-icon--end,.v-chip.v-chip--size-default .v-chip__close{margin-inline-start:6px;margin-inline-end:-6px}.v-chip.v-chip--size-default .v-icon--end+.v-chip__close,.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-default .v-chip__append+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-large{--v-chip-size: 1rem;--v-chip-height: 38px;font-size:1rem;padding:0 14px}.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 32px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 38px}.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-9.8px;margin-inline-end:7px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-14px}.v-chip.v-chip--size-large .v-avatar--end{margin-inline-start:7px;margin-inline-end:-9.8px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end{margin-inline-end:-14px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close{margin-inline-start:21px}.v-chip.v-chip--size-large .v-icon--start,.v-chip.v-chip--size-large .v-chip__filter{margin-inline-start:-7px;margin-inline-end:7px}.v-chip.v-chip--size-large .v-icon--end,.v-chip.v-chip--size-large .v-chip__close{margin-inline-start:7px;margin-inline-end:-7px}.v-chip.v-chip--size-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-large .v-chip__append+.v-chip__close{margin-inline-start:14px}.v-chip.v-chip--size-x-large{--v-chip-size: 1.125rem;--v-chip-height: 44px;font-size:1.125rem;padding:0 17px}.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 38px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 44px}.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-11.9px;margin-inline-end:8.5px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-17px}.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-start:8.5px;margin-inline-end:-11.9px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-end:-17px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close{margin-inline-start:25.5px}.v-chip.v-chip--size-x-large .v-icon--start,.v-chip.v-chip--size-x-large .v-chip__filter{margin-inline-start:-8.5px;margin-inline-end:8.5px}.v-chip.v-chip--size-x-large .v-icon--end,.v-chip.v-chip--size-x-large .v-chip__close{margin-inline-start:8.5px;margin-inline-end:-8.5px}.v-chip.v-chip--size-x-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-chip__append+.v-chip__close{margin-inline-start:17px}.v-chip.v-chip--density-default{height:calc(var(--v-chip-height) + 0px)}.v-chip.v-chip--density-comfortable{height:calc(var(--v-chip-height) + -4px)}.v-chip.v-chip--density-compact{height:calc(var(--v-chip-height) + -8px)}.v-chip{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-chip:hover>.v-chip__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-chip:focus-visible>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip:focus>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-chip--active>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]>.v-chip__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-chip--active:hover>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:hover>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-chip--active:focus-visible>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip--active:focus>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-chip{border-radius:9999px}.v-chip--variant-plain,.v-chip--variant-outlined,.v-chip--variant-text,.v-chip--variant-tonal{background:transparent;color:inherit}.v-chip--variant-plain{opacity:.26}.v-chip--variant-plain:focus,.v-chip--variant-plain:hover{opacity:1}.v-chip--variant-plain .v-chip__overlay{display:none}.v-chip--variant-elevated,.v-chip--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-chip--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-outlined{border:thin solid currentColor}.v-chip--variant-text .v-chip__overlay{background:currentColor}.v-chip--variant-tonal .v-chip__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-chip .v-chip__underlay{position:absolute}.v-chip--border{border-width:thin}.v-chip--link{cursor:pointer}.v-chip--link,.v-chip--filter{-webkit-user-select:none;user-select:none}.v-chip__content{align-items:center;display:inline-flex}.v-autocomplete__selection .v-chip__content,.v-combobox__selection .v-chip__content,.v-select__selection .v-chip__content{overflow:hidden}.v-chip__filter,.v-chip__prepend,.v-chip__append,.v-chip__close{align-items:center;display:inline-flex}.v-chip__close{cursor:pointer;flex:0 1 auto;font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;user-select:none}.v-chip__close .v-icon{font-size:inherit}.v-chip__filter{transition:.15s cubic-bezier(.4,0,.2,1)}.v-chip__overlay{background-color:currentColor;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-chip__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-chip--disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}.v-chip--label{border-radius:4px}.v-chip-group{display:flex;max-width:100%;min-width:0;overflow-x:auto;padding:4px 0}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip.v-chip--selected:not(.v-chip--disabled) .v-chip__overlay{opacity:var(--v-activated-opacity)}.v-chip-group--column .v-slide-group__content{white-space:normal;flex-wrap:wrap;max-width:100%}.v-slide-group{display:flex;overflow:hidden}.v-slide-group__next,.v-slide-group__prev{align-items:center;display:flex;flex:0 1 52px;justify-content:center;min-width:52px;cursor:pointer}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none;opacity:var(--v-disabled-opacity)}.v-slide-group__content{display:flex;flex:1 0 auto;position:relative;transition:.2s all cubic-bezier(.4,0,.2,1);white-space:nowrap}.v-slide-group__content>*{white-space:initial}.v-slide-group__container{contain:content;display:flex;flex:1 1 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scrollbar-color:rgba(0,0,0,0)}.v-slide-group__container::-webkit-scrollbar{display:none}.v-slide-group--vertical{max-height:inherit}.v-slide-group--vertical,.v-slide-group--vertical .v-slide-group__container,.v-slide-group--vertical .v-slide-group__content{flex-direction:column}.v-slide-group--vertical .v-slide-group__container{overflow-x:hidden;overflow-y:auto}.v-list{overflow:auto;padding:8px 0;position:relative;outline:none}.v-list{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list--border{border-width:thin;box-shadow:none}.v-list{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list{border-radius:0}.v-list{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-list--nav{padding-inline:8px}.v-list--rounded{border-radius:4px}.v-list--subheader{padding-top:0}.v-list-img{border-radius:inherit;display:flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-list-subheader{align-items:center;background:inherit;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.375rem;padding-inline-end:16px;min-height:40px;transition:.2s min-height cubic-bezier(.4,0,.2,1)}.v-list-subheader__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-list--density-default .v-list-subheader{min-height:40px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-comfortable .v-list-subheader{min-height:36px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-compact .v-list-subheader{min-height:32px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-subheader--inset{--indent-padding: 56px}.v-list--nav .v-list-subheader{font-size:.75rem}.v-list-subheader--sticky{background:inherit;left:0;position:sticky;top:0;z-index:1}.v-list__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content 1fr auto;outline:none;max-width:100%;padding:4px 16px;position:relative;text-decoration:none}.v-list-item{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list-item--border{border-width:thin;box-shadow:none}.v-list-item:hover>.v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item:focus-visible>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item:focus>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-list-item--active>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]>.v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--active:hover>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:hover>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-list-item--active:focus-visible>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item--active:focus>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-list-item{border-radius:0}.v-list-item--variant-plain,.v-list-item--variant-outlined,.v-list-item--variant-text,.v-list-item--variant-tonal{background:transparent;color:inherit}.v-list-item--variant-plain{opacity:.62}.v-list-item--variant-plain:focus,.v-list-item--variant-plain:hover{opacity:1}.v-list-item--variant-plain .v-list-item__overlay{display:none}.v-list-item--variant-elevated,.v-list-item--variant-flat{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list-item--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-outlined{border:thin solid currentColor}.v-list-item--variant-text .v-list-item__overlay{background:currentColor}.v-list-item--variant-tonal .v-list-item__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-list-item .v-list-item__underlay{position:absolute}@supports selector(:focus-visible){.v-list-item:after{pointer-events:none;border:2px solid currentColor;border-radius:4px;opacity:0;transition:opacity .2s ease-in-out}.v-list-item:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-list-item:focus-visible:after{opacity:calc(.15 * var(--v-theme-overlay-multiplier))}}.v-list-item__prepend>.v-badge .v-icon,.v-list-item__prepend>.v-icon,.v-list-item__append>.v-badge .v-icon,.v-list-item__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-list-item--active .v-list-item__prepend>.v-badge .v-icon,.v-list-item--active .v-list-item__prepend>.v-icon,.v-list-item--active .v-list-item__append>.v-badge .v-icon,.v-list-item--active .v-list-item__append>.v-icon{opacity:1}.v-list-item--active:not(.v-list-item--link) .v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--rounded{border-radius:4px}.v-list-item--disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.v-list-item--link{cursor:pointer}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item .v-avatar,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item .v-avatar{--v-avatar-height: 24px}.v-list-item__prepend{align-items:center;align-self:center;display:flex;grid-area:prepend}.v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:0}.v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__prepend{align-self:start}.v-list-item__append{align-self:center;display:flex;align-items:center;grid-area:append}.v-list-item__append .v-list-item__spacer{order:-1;transition:.15s width cubic-bezier(.4,0,.2,1)}.v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item__append>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__append>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__append>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__append{align-self:start}.v-list-item__content{align-self:center;grid-area:content;overflow:hidden}.v-list-item-action{align-self:center;display:flex;align-items:center;flex:none;transition:inherit;transition-property:height,width}.v-list-item-action--start{margin-inline-end:8px;margin-inline-start:-8px}.v-list-item-action--end{margin-inline-start:8px;margin-inline-end:-8px}.v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-media--start{margin-inline-end:16px}.v-list-item-media--end{margin-inline-start:16px}.v-list-item--two-line .v-list-item-media{margin-top:-4px;margin-bottom:-4px}.v-list-item--three-line .v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-subtitle{-webkit-box-orient:vertical;display:-webkit-box;opacity:var(--v-list-item-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0;text-overflow:ellipsis;overflow-wrap:break-word;word-break:initial}.v-list-item--one-line .v-list-item-subtitle{-webkit-line-clamp:1}.v-list-item--two-line .v-list-item-subtitle{-webkit-line-clamp:2}.v-list-item--three-line .v-list-item-subtitle{-webkit-line-clamp:3}.v-list-item-subtitle{font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem;text-transform:none}.v-list-item--nav .v-list-item-subtitle{font-size:.75rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem}.v-list-item-title{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:normal;overflow:hidden;padding:0;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word}.v-list-item-title{font-size:1rem;font-weight:400;letter-spacing:.009375em;line-height:1.5;text-transform:none}.v-list-item--nav .v-list-item-title{font-size:.8125rem;font-weight:500;letter-spacing:normal;line-height:1rem}.v-list-item--density-default{min-height:40px}.v-list-item--density-default.v-list-item--one-line{min-height:48px;padding-top:4px;padding-bottom:4px}.v-list-item--density-default.v-list-item--two-line{min-height:64px;padding-top:12px;padding-bottom:12px}.v-list-item--density-default.v-list-item--three-line{min-height:88px;padding-top:16px;padding-bottom:16px}.v-list-item--density-default.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-default.v-list-item--three-line .v-list-item__append{padding-top:8px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-comfortable{min-height:36px}.v-list-item--density-comfortable.v-list-item--one-line{min-height:44px}.v-list-item--density-comfortable.v-list-item--two-line{min-height:60px;padding-top:8px;padding-bottom:8px}.v-list-item--density-comfortable.v-list-item--three-line{min-height:84px;padding-top:12px;padding-bottom:12px}.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__append{padding-top:6px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-compact{min-height:32px}.v-list-item--density-compact.v-list-item--one-line{min-height:40px}.v-list-item--density-compact.v-list-item--two-line{min-height:56px;padding-top:4px;padding-bottom:4px}.v-list-item--density-compact.v-list-item--three-line{min-height:80px;padding-top:8px;padding-bottom:8px}.v-list-item--density-compact.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-compact.v-list-item--three-line .v-list-item__append{padding-top:4px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--nav{padding-inline:8px}.v-list .v-list-item--nav:not(:only-child){margin-bottom:4px}.v-list-item__underlay{position:absolute}.v-list-item__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item--active.v-list-item--variant-elevated .v-list-item__overlay{--v-theme-overlay-multiplier: 0}.v-list{--indent-padding: 0px}.v-list--nav{--indent-padding: -8px}.v-list-group{--list-indent-size: 16px;--parent-padding: var(--indent-padding);--prepend-width: 40px}.v-list--slim .v-list-group{--prepend-width: 28px}.v-list-group--fluid{--list-indent-size: 0px}.v-list-group--prepend{--parent-padding: calc(var(--indent-padding) + var(--prepend-width))}.v-list-group--fluid.v-list-group--prepend{--parent-padding: var(--indent-padding)}.v-list-group__items{--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))}.v-list-group__items .v-list-item{padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:not(:focus-visible) .v-list-item__overlay{opacity:0}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:hover .v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit}.v-divider{border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:auto;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-divider__content{padding:0 16px;text-wrap:nowrap}.v-divider__wrapper--vertical .v-divider__content{padding:4px 0}.v-divider__wrapper{display:flex;align-items:center;justify-content:center}.v-divider__wrapper--vertical{flex-direction:column;height:100%}.v-divider__wrapper--vertical .v-divider{margin:0 auto}.v-menu>.v-overlay__content{display:flex;flex-direction:column}.v-menu>.v-overlay__content{border-radius:4px}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{background:rgb(var(--v-theme-surface));border-radius:inherit;overflow:auto;height:100%}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;left:0;pointer-events:none;position:fixed;top:0;bottom:0;right:0}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;bottom:0;left:0;opacity:var(--v-overlay-opacity, .32);position:fixed;right:0;top:0}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden}.v-select__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-select__content{border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-text-field input{color:inherit;opacity:0;flex:1;transition:.15s opacity cubic-bezier(.4,0,.2,1);min-width:0}.v-text-field input:focus,.v-text-field input:active{outline:none}.v-text-field input:invalid{box-shadow:none}.v-text-field .v-field{cursor:text}.v-text-field--prefixed.v-text-field .v-field__input{--v-field-padding-start: 6px}.v-text-field--suffixed.v-text-field .v-field__input{--v-field-padding-end: 0}.v-text-field .v-input__details{padding-inline:16px}.v-input--plain-underlined.v-text-field .v-input__details{padding-inline:0}.v-text-field .v-field--no-label input,.v-text-field .v-field--active input{opacity:1}.v-text-field .v-field--single-line input{transition:none}.v-text-field__prefix,.v-text-field__suffix{align-items:center;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));cursor:default;display:flex;opacity:0;transition:inherit;white-space:nowrap;min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));padding-top:calc(var(--v-field-padding-top, 4px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 6px)}.v-field--active .v-text-field__prefix,.v-field--active .v-text-field__suffix{opacity:1}.v-field--disabled .v-text-field__prefix,.v-field--disabled .v-text-field__suffix{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-text-field__prefix{padding-inline-start:var(--v-field-padding-start)}.v-text-field__suffix{padding-inline-end:var(--v-field-padding-end)}.v-counter{color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));flex:0 1 auto;font-size:12px;transition-duration:.15s}.v-field{display:grid;grid-template-areas:"prepend-inner field clear append-inner";grid-template-columns:min-content minmax(0,1fr) min-content min-content;font-size:16px;letter-spacing:.009375em;max-width:100%;border-radius:4px;contain:layout;flex:1 0;grid-area:control;position:relative;--v-theme-overlay-multiplier: 1;--v-field-padding-start: 16px;--v-field-padding-end: 16px;--v-field-padding-top: 8px;--v-field-padding-bottom: 4px;--v-field-input-padding-top: calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));--v-field-input-padding-bottom: var(--v-field-padding-bottom, 4px)}.v-field--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-field .v-chip{--v-chip-height: 24px}.v-field--prepended{padding-inline-start:12px}.v-field--appended{padding-inline-end:12px}.v-field--variant-solo,.v-field--variant-solo-filled{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo,.v-field--variant-solo-filled{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo-inverted{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted.v-field--focused{color:rgb(var(--v-theme-on-surface-variant))}.v-field--variant-filled{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-input--density-default .v-field--variant-solo,.v-input--density-default .v-field--variant-solo-inverted,.v-input--density-default .v-field--variant-solo-filled,.v-input--density-default .v-field--variant-filled{--v-input-control-height: 56px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-solo,.v-input--density-comfortable .v-field--variant-solo-inverted,.v-input--density-comfortable .v-field--variant-solo-filled,.v-input--density-comfortable .v-field--variant-filled{--v-input-control-height: 48px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-solo,.v-input--density-compact .v-field--variant-solo-inverted,.v-input--density-compact .v-field--variant-solo-filled,.v-input--density-compact .v-field--variant-filled{--v-input-control-height: 40px;--v-field-padding-bottom: 0px}.v-field--variant-outlined,.v-field--single-line,.v-field--no-label{--v-field-padding-top: 0px}.v-input--density-default .v-field--variant-outlined,.v-input--density-default .v-field--single-line,.v-input--density-default .v-field--no-label{--v-field-padding-bottom: 16px}.v-input--density-comfortable .v-field--variant-outlined,.v-input--density-comfortable .v-field--single-line,.v-input--density-comfortable .v-field--no-label{--v-field-padding-bottom: 12px}.v-input--density-compact .v-field--variant-outlined,.v-input--density-compact .v-field--single-line,.v-input--density-compact .v-field--no-label{--v-field-padding-bottom: 8px}.v-field--variant-plain,.v-field--variant-underlined{border-radius:0;padding:0}.v-field--variant-plain.v-field,.v-field--variant-underlined.v-field{--v-field-padding-start: 0px;--v-field-padding-end: 0px}.v-input--density-default .v-field--variant-plain,.v-input--density-default .v-field--variant-underlined{--v-input-control-height: 48px;--v-field-padding-top: 4px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-plain,.v-input--density-comfortable .v-field--variant-underlined{--v-input-control-height: 40px;--v-field-padding-top: 2px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-plain,.v-input--density-compact .v-field--variant-underlined{--v-input-control-height: 32px;--v-field-padding-top: 0px;--v-field-padding-bottom: 0px}.v-field--flat{box-shadow:none}.v-field--rounded{border-radius:24px}.v-field.v-field--prepended{--v-field-padding-start: 6px}.v-field.v-field--appended{--v-field-padding-end: 6px}.v-field__input{align-items:center;color:inherit;column-gap:2px;display:flex;flex-wrap:wrap;letter-spacing:.009375em;opacity:var(--v-high-emphasis-opacity);min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));min-width:0;padding-inline:var(--v-field-padding-start) var(--v-field-padding-end);padding-top:var(--v-field-input-padding-top);padding-bottom:var(--v-field-input-padding-bottom);position:relative;width:100%}.v-input--density-default .v-field__input{row-gap:8px}.v-input--density-comfortable .v-field__input{row-gap:6px}.v-input--density-compact .v-field__input{row-gap:4px}.v-field__input input{letter-spacing:inherit}.v-field__input input::placeholder,input.v-field__input::placeholder,textarea.v-field__input::placeholder{color:currentColor;opacity:var(--v-disabled-opacity)}.v-field__input:focus,.v-field__input:active{outline:none}.v-field__input:invalid{box-shadow:none}.v-field__field{flex:1 0;grid-area:field;position:relative;align-items:flex-start;display:flex}.v-field__prepend-inner{grid-area:prepend-inner;padding-inline-end:var(--v-field-padding-after)}.v-field__clearable{grid-area:clear}.v-field__append-inner{grid-area:append-inner;padding-inline-start:var(--v-field-padding-after)}.v-field__append-inner,.v-field__clearable,.v-field__prepend-inner{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top, 8px)}.v-field--center-affix .v-field__append-inner,.v-field--center-affix .v-field__clearable,.v-field--center-affix .v-field__prepend-inner{align-items:center;padding-top:0}.v-field.v-field--variant-underlined .v-field__append-inner,.v-field.v-field--variant-underlined .v-field__clearable,.v-field.v-field--variant-underlined .v-field__prepend-inner,.v-field.v-field--variant-plain .v-field__append-inner,.v-field.v-field--variant-plain .v-field__clearable,.v-field.v-field--variant-plain .v-field__prepend-inner{align-items:flex-start;padding-top:calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 4px)}.v-field--focused .v-field__prepend-inner,.v-field--focused .v-field__append-inner{opacity:1}.v-field__prepend-inner>.v-icon,.v-field__append-inner>.v-icon,.v-field__clearable>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-field--disabled .v-field__prepend-inner>.v-icon,.v-field--error .v-field__prepend-inner>.v-icon,.v-field--disabled .v-field__append-inner>.v-icon,.v-field--error .v-field__append-inner>.v-icon,.v-field--disabled .v-field__clearable>.v-icon,.v-field--error .v-field__clearable>.v-icon{opacity:1}.v-field--error:not(.v-field--disabled) .v-field__prepend-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__append-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__clearable>.v-icon{color:rgb(var(--v-theme-error))}.v-field__clearable{cursor:pointer;opacity:0;overflow:hidden;margin-inline:4px;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,width}.v-field--focused .v-field__clearable,.v-field--persistent-clear .v-field__clearable{opacity:1}@media (hover: hover){.v-field:hover .v-field__clearable{opacity:1}}@media (hover: none){.v-field__clearable{opacity:1}}.v-label.v-field-label{contain:layout paint;display:block;margin-inline-start:var(--v-field-padding-start);margin-inline-end:var(--v-field-padding-end);max-width:calc(100% - var(--v-field-padding-start) - var(--v-field-padding-end));pointer-events:none;position:absolute;top:var(--v-input-padding-top);transform-origin:left center;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform;z-index:1}.v-field--variant-underlined .v-label.v-field-label,.v-field--variant-plain .v-label.v-field-label{top:calc(var(--v-input-padding-top) + var(--v-field-padding-top))}.v-field--center-affix .v-label.v-field-label{top:50%;transform:translateY(-50%)}.v-field--active .v-label.v-field-label{visibility:hidden}.v-field--focused .v-label.v-field-label,.v-field--error .v-label.v-field-label{opacity:1}.v-field--error:not(.v-field--disabled) .v-label.v-field-label{color:rgb(var(--v-theme-error))}.v-label.v-field-label--floating{--v-field-label-scale: .75em;font-size:var(--v-field-label-scale);visibility:hidden;max-width:100%}.v-field--center-affix .v-label.v-field-label--floating{transform:none}.v-field.v-field--active .v-label.v-field-label--floating{visibility:unset}.v-input--density-default .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-filled .v-label.v-field-label--floating{top:7px}.v-input--density-comfortable .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-filled .v-label.v-field-label--floating{top:5px}.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:3px}.v-field--variant-plain .v-label.v-field-label--floating,.v-field--variant-underlined .v-label.v-field-label--floating{transform:translateY(-16px);margin:0;top:var(--v-input-padding-top)}.v-field--variant-outlined .v-label.v-field-label--floating{transform:translateY(-50%);transform-origin:center;position:static;margin:0 4px}.v-field__outline{--v-field-border-width: 1px;--v-field-border-opacity: .38;align-items:stretch;contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%}@media (hover: hover){.v-field:hover .v-field__outline{--v-field-border-opacity: var(--v-high-emphasis-opacity)}}.v-field--error:not(.v-field--disabled) .v-field__outline{color:rgb(var(--v-theme-error))}.v-field.v-field--focused .v-field__outline,.v-input.v-input--error .v-field__outline{--v-field-border-opacity: 1}.v-field--variant-outlined.v-field--focused .v-field__outline{--v-field-border-width: 2px}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{border-color:currentColor;border-style:solid;border-width:0 0 var(--v-field-border-width);opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{border-color:currentColor;border-style:solid;border-width:0 0 2px;transform:scaleX(0);transition:transform .15s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--focused.v-field--variant-filled .v-field__outline:after,.v-field--focused.v-field--variant-underlined .v-field__outline:after{transform:scaleX(1)}.v-field--variant-outlined .v-field__outline{border-radius:inherit}.v-field--variant-outlined .v-field__outline__start,.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after,.v-field--variant-outlined .v-field__outline__end{border:0 solid currentColor;opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__start{flex:0 0 12px;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-start-width:var(--v-field-border-width);border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit}.v-field--rounded.v-field--variant-outlined .v-field__outline__start,[class^=rounded-].v-field--variant-outlined .v-field__outline__start,[class*=" rounded-"].v-field--variant-outlined .v-field__outline__start{flex-basis:calc(var(--v-input-control-height) / 2 + 2px)}.v-field--reverse.v-field--variant-outlined .v-field__outline__start{border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0;border-inline-end-width:var(--v-field-border-width);border-inline-start-width:0}.v-field--variant-outlined .v-field__outline__notch{flex:none;position:relative;max-width:calc(100% - 12px)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-outlined .v-field__outline__notch:before{border-width:var(--v-field-border-width) 0 0}.v-field--variant-outlined .v-field__outline__notch:after{bottom:0;border-width:0 0 var(--v-field-border-width)}.v-field--active.v-field--variant-outlined .v-field__outline__notch:before{opacity:0}.v-field--variant-outlined .v-field__outline__end{flex:1;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-end-width:var(--v-field-border-width);border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0}.v-field--reverse.v-field--variant-outlined .v-field__outline__end{border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit;border-inline-end-width:0;border-inline-start-width:var(--v-field-border-width)}.v-field__loader{top:calc(100% - 2px);left:0;position:absolute;right:0;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden}.v-field--variant-outlined .v-field__loader{top:calc(100% - 3px);width:calc(100% - 2px);left:1px}.v-field__overlay{border-radius:inherit;pointer-events:none}.v-field__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media (hover: hover){.v-field--variant-solo-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-inverted .v-field__overlay{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-solo-inverted.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-solo-inverted:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-inverted.v-field--focused .v-field__overlay{background-color:rgb(var(--v-theme-surface-variant));opacity:1}.v-field--reverse .v-field__field,.v-field--reverse .v-field__input,.v-field--reverse .v-field__outline{flex-direction:row-reverse}.v-field--reverse .v-field__input,.v-field--reverse input{text-align:end}.v-input--disabled .v-field--variant-filled .v-field__outline:before,.v-input--disabled .v-field--variant-underlined .v-field__outline:before{border-image:repeating-linear-gradient(to right,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 0px,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 2px,transparent 2px,transparent 4px) 1 repeat}.v-field--loading .v-field__outline:after,.v-field--loading .v-field__outline:before{opacity:0}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block}.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px}.v-dialog>.v-overlay__content,.v-dialog>.v-overlay__content>form{display:flex;flex-direction:column;min-height:0}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:16px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:0}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-actions,.v-dialog>.v-overlay__content>form>.v-card>.v-card-actions{justify-content:flex-end}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0}.v-card{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card{border-radius:4px}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-card .v-card__underlay{position:absolute}.v-card--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1}.v-card--hover:before{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0}.v-card--hover:after{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--hover:hover{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend,.v-card-item__append{align-items:center;display:flex}.v-card-item__prepend{grid-area:prepend;padding-inline-end:.5rem}.v-card-item__append{grid-area:append;padding-inline-start:.5rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:1.6}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.425}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-text-opacity, 1);padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.425}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{bottom:auto;top:0;left:0;position:absolute;right:0;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-slider .v-slider__container input{cursor:default;padding:0;width:100%;display:none}.v-slider>.v-input__append,.v-slider>.v-input__prepend{padding:0}.v-slider__container{position:relative;min-height:inherit;width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}.v-input--disabled .v-slider__container{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-slider__container{color:rgb(var(--v-theme-error))}.v-slider.v-input--horizontal{align-items:center;margin-inline:8px 8px}.v-slider.v-input--horizontal>.v-input__control{min-height:32px;display:flex;align-items:center}.v-slider.v-input--vertical{justify-content:center;margin-top:12px;margin-bottom:12px}.v-slider.v-input--vertical>.v-input__control{min-height:300px}.v-slider.v-input--disabled{pointer-events:none}.v-slider--has-labels>.v-input__control{margin-bottom:4px}.v-slider__label{margin-inline-end:12px}.v-slider-thumb{touch-action:none;color:rgb(var(--v-theme-surface-variant))}.v-input--error:not(.v-input--disabled) .v-slider-thumb{color:inherit}.v-slider-thumb__label{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant))}.v-slider-thumb__label:before{color:rgba(var(--v-theme-surface-variant),.7)}.v-slider-thumb{outline:none;position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider-thumb__surface{cursor:pointer;width:var(--v-slider-thumb-size);height:var(--v-slider-thumb-size);border-radius:50%;-webkit-user-select:none;user-select:none;background-color:currentColor}@media (forced-colors: active){.v-slider-thumb__surface{background-color:highlight}}.v-slider-thumb__surface:before{transition:.3s cubic-bezier(.4,0,.2,1);content:"";color:inherit;top:0;left:0;width:100%;height:100%;border-radius:50%;background:currentColor;position:absolute;pointer-events:none;opacity:0}.v-slider-thumb__surface:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.v-slider-thumb__label-container{position:absolute;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label{display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:35px;height:25px;border-radius:4px;padding:6px;position:absolute;-webkit-user-select:none;user-select:none;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label:before{content:"";width:0;height:0;position:absolute}.v-slider-thumb__ripple{position:absolute;left:calc(var(--v-slider-thumb-size) / -2);top:calc(var(--v-slider-thumb-size) / -2);width:calc(var(--v-slider-thumb-size) * 2);height:calc(var(--v-slider-thumb-size) * 2);background:inherit}.v-slider.v-input--horizontal .v-slider-thumb{top:50%;transform:translateY(-50%);inset-inline-start:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--horizontal .v-slider-thumb__label-container{left:calc(var(--v-slider-thumb-size) / 2);top:0}.v-slider.v-input--horizontal .v-slider-thumb__label{bottom:calc(var(--v-slider-thumb-size) / 2)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-thumb__label:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;bottom:-6px}.v-slider.v-input--vertical .v-slider-thumb{top:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label-container{top:calc(var(--v-slider-thumb-size) / 2);right:0}.v-slider.v-input--vertical .v-slider-thumb__label{top:-12.5px;left:calc(var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label:before{border-right:6px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px}.v-slider-thumb--focused .v-slider-thumb__surface:before{transform:scale(2);opacity:var(--v-focus-opacity)}.v-slider-thumb--pressed{transition:none}.v-slider-thumb--pressed .v-slider-thumb__surface:before{opacity:var(--v-pressed-opacity)}@media (hover: hover){.v-slider-thumb:hover .v-slider-thumb__surface:before{transform:scale(2)}.v-slider-thumb:hover:not(.v-slider-thumb--focused) .v-slider-thumb__surface:before{opacity:var(--v-hover-opacity)}}.v-slider-track__background{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__background{background-color:highlight}}.v-slider-track__fill{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__fill{background-color:highlight}}.v-slider-track__tick{background-color:rgb(var(--v-theme-surface-variant))}.v-slider-track__tick--filled{background-color:rgb(var(--v-theme-surface-light))}.v-slider-track{border-radius:6px}@media (forced-colors: active){.v-slider-track{border:thin solid buttontext}}.v-slider-track__background,.v-slider-track__fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:inherit}.v-slider--pressed .v-slider-track__background,.v-slider--pressed .v-slider-track__fill{transition:none}.v-input--error:not(.v-input--disabled) .v-slider-track__background,.v-input--error:not(.v-input--disabled) .v-slider-track__fill{background-color:currentColor}.v-slider-track__ticks{height:100%;width:100%;position:relative}.v-slider-track__tick{position:absolute;opacity:0;transition:.2s opacity cubic-bezier(.4,0,.2,1);border-radius:2px;width:var(--v-slider-tick-size);height:var(--v-slider-tick-size);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / -2))}.v-locale--is-ltr.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--first .v-slider-track__tick-label{transform:none}.v-locale--is-rtl.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(100%)}.v-locale--is-ltr.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--last .v-slider-track__tick-label{transform:none}.v-slider-track__tick-label{position:absolute;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-slider.v-input--horizontal .v-slider-track{display:flex;align-items:center;width:100%;height:calc(var(--v-slider-track-size) + 2px);touch-action:pan-y}.v-slider.v-input--horizontal .v-slider-track__background{height:var(--v-slider-track-size)}.v-slider.v-input--horizontal .v-slider-track__fill{height:inherit}.v-slider.v-input--horizontal .v-slider-track__tick{margin-top:calc(calc(var(--v-slider-track-size) + 2px) / 2)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / -2))}.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{margin-top:calc(var(--v-slider-track-size) / 2 + 8px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-track__tick--first{margin-inline-start:calc(var(--v-slider-tick-size) + 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(0)}.v-slider.v-input--horizontal .v-slider-track__tick--last{margin-inline-start:calc(100% - var(--v-slider-tick-size) - 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(100%)}.v-slider.v-input--vertical .v-slider-track{height:100%;display:flex;justify-content:center;width:calc(var(--v-slider-track-size) + 2px);touch-action:pan-x}.v-slider.v-input--vertical .v-slider-track__background{width:var(--v-slider-track-size)}.v-slider.v-input--vertical .v-slider-track__fill{width:inherit}.v-slider.v-input--vertical .v-slider-track__ticks{height:100%}.v-slider.v-input--vertical .v-slider-track__tick{margin-inline-start:calc(calc(var(--v-slider-track-size) + 2px) / 2);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / 2))}.v-locale--is-rtl.v-slider.v-input--vertical .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--vertical .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / 2))}.v-slider.v-input--vertical .v-slider-track__tick--first{bottom:calc(0% + var(--v-slider-tick-size) + 1px)}.v-slider.v-input--vertical .v-slider-track__tick--last{bottom:calc(100% - var(--v-slider-tick-size) - 1px)}.v-slider.v-input--vertical .v-slider-track__tick .v-slider-track__tick-label{margin-inline-start:calc(var(--v-slider-track-size) / 2 + 12px);transform:translateY(-50%)}.v-slider-track__ticks--always-show .v-slider-track__tick,.v-slider--focused .v-slider-track__tick{opacity:1}.v-slider-track__background--opacity{opacity:.38}.v-combobox .v-field .v-text-field__prefix,.v-combobox .v-field .v-text-field__suffix,.v-combobox .v-field .v-field__input,.v-combobox .v-field.v-field{cursor:text}.v-combobox .v-field .v-field__input>input{flex:1 1}.v-combobox .v-field input{min-width:64px}.v-combobox .v-field:not(.v-field--focused) input{min-width:0}.v-combobox .v-field--dirty .v-combobox__selection{margin-inline-end:2px}.v-combobox .v-combobox__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-combobox__content{overflow:hidden}.v-combobox__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-combobox__content{border-radius:4px}.v-combobox__mask{background:rgb(var(--v-theme-surface-light))}.v-combobox__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-combobox__selection:first-child{margin-inline-start:0}.v-combobox--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-combobox--selecting-index .v-combobox__selection{opacity:var(--v-medium-emphasis-opacity)}.v-combobox--selecting-index .v-combobox__selection--selected{opacity:1}.v-combobox--selecting-index .v-field__input>input{caret-color:transparent}.v-combobox--single:not(.v-combobox--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--active input{transition:none}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--focused .v-combobox__selection{opacity:0}.v-combobox__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-combobox--active-menu .v-combobox__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table__th--sticky{background:rgb(var(--v-theme-surface));position:sticky!important;left:0;z-index:1}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-progress__loader{position:relative}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table__tr--mobile>.v-data-table__td--expanded-row{grid-template-columns:0;justify-content:center}.v-data-table__tr--mobile>.v-data-table__td--select-row{grid-template-columns:0;justify-content:end}.v-data-table__tr--mobile>td{align-items:center;column-gap:4px;display:grid;grid-template-columns:repeat(2,1fr);min-height:var(--v-table-row-height)}.v-data-table__tr--mobile>td:not(:last-child){border-bottom:0!important}.v-data-table__td-title{font-weight:500;text-align:left}.v-data-table__td-value{text-align:right}.v-data-table__td-sort-icon{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-data-table__td-sort-icon-active{color:rgba(var(--v-theme-on-surface))}.v-data-table-footer{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:8px 4px}.v-data-table-footer__items-per-page{align-items:center;display:flex;justify-content:center}.v-data-table-footer__items-per-page>span{padding-inline-end:8px}.v-data-table-footer__items-per-page>.v-select{width:90px}.v-data-table-footer__info{display:flex;justify-content:flex-end;min-width:116px;padding:0 16px}.v-data-table-footer__paginationz{align-items:center;display:flex;margin-inline-start:16px}.v-data-table-footer__page{padding:0 8px}.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}.v-table{font-size:.875rem;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr>td{position:relative}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{background:rgba(var(--v-border-color),var(--v-hover-opacity));pointer-events:none}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px 0 rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px 0 rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{border-radius:inherit;line-height:1.5;max-width:100%;display:flex;flex-direction:column}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>td{height:var(--v-table-row-height)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{height:var(--v-table-header-height);font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default{--v-table-header-height: 56px;--v-table-row-height: 52px}.v-table--density-comfortable{--v-table-header-height: 48px;--v-table-row-height: 44px}.v-table--density-compact{--v-table-header-height: 40px;--v-table-row-height: 36px}.v-table__wrapper{border-radius:inherit;overflow:auto;flex:1 1 auto}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:2}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.offset-1{margin-inline-start:8.3333333333%}.offset-2{margin-inline-start:16.6666666667%}.offset-3{margin-inline-start:25%}.offset-4{margin-inline-start:33.3333333333%}.offset-5{margin-inline-start:41.6666666667%}.offset-6{margin-inline-start:50%}.offset-7{margin-inline-start:58.3333333333%}.offset-8{margin-inline-start:66.6666666667%}.offset-9{margin-inline-start:75%}.offset-10{margin-inline-start:83.3333333333%}.offset-11{margin-inline-start:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.offset-sm-0{margin-inline-start:0}.offset-sm-1{margin-inline-start:8.3333333333%}.offset-sm-2{margin-inline-start:16.6666666667%}.offset-sm-3{margin-inline-start:25%}.offset-sm-4{margin-inline-start:33.3333333333%}.offset-sm-5{margin-inline-start:41.6666666667%}.offset-sm-6{margin-inline-start:50%}.offset-sm-7{margin-inline-start:58.3333333333%}.offset-sm-8{margin-inline-start:66.6666666667%}.offset-sm-9{margin-inline-start:75%}.offset-sm-10{margin-inline-start:83.3333333333%}.offset-sm-11{margin-inline-start:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.offset-md-0{margin-inline-start:0}.offset-md-1{margin-inline-start:8.3333333333%}.offset-md-2{margin-inline-start:16.6666666667%}.offset-md-3{margin-inline-start:25%}.offset-md-4{margin-inline-start:33.3333333333%}.offset-md-5{margin-inline-start:41.6666666667%}.offset-md-6{margin-inline-start:50%}.offset-md-7{margin-inline-start:58.3333333333%}.offset-md-8{margin-inline-start:66.6666666667%}.offset-md-9{margin-inline-start:75%}.offset-md-10{margin-inline-start:83.3333333333%}.offset-md-11{margin-inline-start:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.offset-lg-0{margin-inline-start:0}.offset-lg-1{margin-inline-start:8.3333333333%}.offset-lg-2{margin-inline-start:16.6666666667%}.offset-lg-3{margin-inline-start:25%}.offset-lg-4{margin-inline-start:33.3333333333%}.offset-lg-5{margin-inline-start:41.6666666667%}.offset-lg-6{margin-inline-start:50%}.offset-lg-7{margin-inline-start:58.3333333333%}.offset-lg-8{margin-inline-start:66.6666666667%}.offset-lg-9{margin-inline-start:75%}.offset-lg-10{margin-inline-start:83.3333333333%}.offset-lg-11{margin-inline-start:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.offset-xl-0{margin-inline-start:0}.offset-xl-1{margin-inline-start:8.3333333333%}.offset-xl-2{margin-inline-start:16.6666666667%}.offset-xl-3{margin-inline-start:25%}.offset-xl-4{margin-inline-start:33.3333333333%}.offset-xl-5{margin-inline-start:41.6666666667%}.offset-xl-6{margin-inline-start:50%}.offset-xl-7{margin-inline-start:58.3333333333%}.offset-xl-8{margin-inline-start:66.6666666667%}.offset-xl-9{margin-inline-start:75%}.offset-xl-10{margin-inline-start:83.3333333333%}.offset-xl-11{margin-inline-start:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.offset-xxl-0{margin-inline-start:0}.offset-xxl-1{margin-inline-start:8.3333333333%}.offset-xxl-2{margin-inline-start:16.6666666667%}.offset-xxl-3{margin-inline-start:25%}.offset-xxl-4{margin-inline-start:33.3333333333%}.offset-xxl-5{margin-inline-start:41.6666666667%}.offset-xxl-6{margin-inline-start:50%}.offset-xxl-7{margin-inline-start:58.3333333333%}.offset-xxl-8{margin-inline-start:66.6666666667%}.offset-xxl-9{margin-inline-start:75%}.offset-xxl-10{margin-inline-start:83.3333333333%}.offset-xxl-11{margin-inline-start:91.6666666667%}}.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child:not(:last-child){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child) .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-expansion-panel--active>.v-expansion-panel-title:not(.v-expansion-panel-title--static){min-height:31px}.v-expansion-panel__shadow{border-radius:inherit;z-index:-1}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel__shadow{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:31px;outline:none;padding:8px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--focusable.v-expansion-panel-title--active .v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:hover .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus-visible .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title__overlay{background-color:currentColor;border-radius:inherit;opacity:0}.v-expansion-panel-title__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel-title__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;user-select:none;margin-inline-start:auto}.v-expansion-panel-text{display:flex}.v-expansion-panel-text__wrapper{padding:8px 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--variant-accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--variant-accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--variant-popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--variant-popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--variant-inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--variant-inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-expansion-panels--flat>.v-expansion-panel:after{border-top:none}.v-expansion-panels--flat>.v-expansion-panel .v-expansion-panel__shadow{display:none}.v-expansion-panels--tile{border-radius:0}.v-expansion-panels--tile>.v-expansion-panel{border-radius:0}.v-footer{align-items:center;display:flex;flex:1 1 auto;padding:8px 16px;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom}.v-footer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-footer--border{border-width:thin;box-shadow:none}.v-footer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-footer--absolute{position:absolute}.v-footer--fixed{position:fixed}.v-footer{border-radius:0}.v-footer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-footer--rounded{border-radius:4px}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex}.v-main--scrollable{position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-navigation-drawer{-webkit-overflow-scrolling:touch;background:rgb(var(--v-theme-surface));display:flex;flex-direction:column;height:100%;max-width:100%;pointer-events:auto;transition-duration:.2s;transition-property:box-shadow,transform,visibility,width,height,left,right,top,bottom;transition-timing-function:cubic-bezier(.4,0,.2,1);position:absolute}.v-navigation-drawer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-navigation-drawer--border{border-width:thin;box-shadow:none}.v-navigation-drawer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-navigation-drawer--rounded{border-radius:4px}.v-navigation-drawer--top,.v-navigation-drawer--bottom{max-height:-webkit-fill-available;overflow-y:auto}.v-navigation-drawer--top{top:0;border-bottom-width:thin}.v-navigation-drawer--bottom{left:0;border-top-width:thin}.v-navigation-drawer--left{top:0;left:0;right:auto;border-right-width:thin}.v-navigation-drawer--right{top:0;left:auto;right:0;border-left-width:thin}.v-navigation-drawer--floating{border:none}.v-navigation-drawer--temporary.v-navigation-drawer--active{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer--sticky{height:auto;transition:box-shadow,transform,visibility,width,height,left,right}.v-navigation-drawer .v-list{overflow:hidden}.v-navigation-drawer__content{flex:0 1 auto;height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}.v-navigation-drawer__img{height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.v-navigation-drawer__img img:not(.v-img__img){height:inherit;object-fit:cover;width:inherit}.v-navigation-drawer__scrim{position:absolute;top:0;left:0;width:100%;height:100%;background:black;opacity:.2;transition:opacity .2s cubic-bezier(.4,0,.2,1);z-index:1}.v-navigation-drawer__prepend,.v-navigation-drawer__append{flex:none;overflow:hidden}.v-rating{max-width:100%;display:inline-flex;white-space:nowrap}.v-rating--readonly{pointer-events:none}.v-rating__wrapper{align-items:center;display:inline-flex;flex-direction:column}.v-rating__wrapper--bottom{flex-direction:column-reverse}.v-rating__item{display:inline-flex;position:relative}.v-rating__item label{cursor:pointer}.v-rating__item .v-btn--variant-plain{opacity:1}.v-rating__item .v-btn{transition-property:transform}.v-rating__item .v-btn .v-icon{transition:inherit;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-rating--hover .v-rating__item:hover:not(.v-rating__item--focused) .v-btn{transform:scale(1.25)}.v-rating__item--half{overflow:hidden;position:absolute;clip-path:polygon(0 0,50% 0,50% 100%,0 100%);z-index:1}.v-rating__item--half .v-btn__overlay,.v-rating__item--half:hover .v-btn__overlay{opacity:0}.v-rating__hidden{height:0;opacity:0;position:absolute;width:0}.v-snackbar{justify-content:center;z-index:10000;margin:8px;margin-inline-end:calc(8px + var(--v-scrollbar-offset));padding:var(--v-layout-top) var(--v-layout-right) var(--v-layout-bottom) var(--v-layout-left)}.v-snackbar:not(.v-snackbar--center):not(.v-snackbar--top){align-items:flex-end}.v-snackbar__wrapper{align-items:center;display:flex;max-width:672px;min-height:48px;min-width:344px;overflow:hidden;padding:0}.v-snackbar__wrapper{border-radius:4px}.v-snackbar--variant-plain,.v-snackbar--variant-outlined,.v-snackbar--variant-text,.v-snackbar--variant-tonal{background:transparent;color:inherit}.v-snackbar--variant-plain{opacity:.62}.v-snackbar--variant-plain:focus,.v-snackbar--variant-plain:hover{opacity:1}.v-snackbar--variant-plain .v-snackbar__overlay{display:none}.v-snackbar--variant-elevated,.v-snackbar--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-snackbar--variant-elevated{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-outlined{border:thin solid currentColor}.v-snackbar--variant-text .v-snackbar__overlay{background:currentColor}.v-snackbar--variant-tonal .v-snackbar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-snackbar .v-snackbar__underlay{position:absolute}.v-snackbar__content{flex-grow:1;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1.425;margin-right:auto;padding:14px 16px;text-align:initial}.v-snackbar__actions{align-items:center;align-self:center;display:flex;margin-inline-end:8px}.v-snackbar__actions>.v-btn{padding:0 8px;min-width:auto}.v-snackbar__timer{width:100%;position:absolute;top:0}.v-snackbar__timer .v-progress-linear{transition:.2s linear}.v-snackbar--absolute{position:absolute;z-index:1}.v-snackbar--multi-line .v-snackbar__wrapper{min-height:68px}.v-snackbar--vertical .v-snackbar__wrapper{flex-direction:column}.v-snackbar--vertical .v-snackbar__wrapper .v-snackbar__actions{align-self:flex-end;margin-bottom:8px}.v-snackbar--center{align-items:center;justify-content:center}.v-snackbar--top{align-items:flex-start}.v-snackbar--bottom{align-items:flex-end}.v-snackbar--left,.v-snackbar--start{justify-content:flex-start}.v-snackbar--right,.v-snackbar--end{justify-content:flex-end}.v-snackbar-transition-enter-active,.v-snackbar-transition-leave-active{transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-snackbar-transition-enter-active{transition-property:opacity,transform}.v-snackbar-transition-enter-from{opacity:0;transform:scale(.8)}.v-snackbar-transition-leave-active{transition-property:opacity}.v-snackbar-transition-leave-to{opacity:0}.v-switch .v-label{padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__loader .v-progress-circular{color:rgb(var(--v-theme-surface))}.v-switch__track,.v-switch__thumb{transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb{background-color:rgb(var(--v-theme-error));color:rgb(var(--v-theme-on-error))}.v-switch__track-true{margin-inline-end:auto}.v-selection-control:not(.v-selection-control--dirty) .v-switch__track-true{opacity:0}.v-switch__track-false{margin-inline-start:auto}.v-selection-control--dirty .v-switch__track-false{opacity:0}.v-switch__track{display:inline-flex;align-items:center;font-size:.5rem;padding:0 5px;background-color:rgb(var(--v-theme-surface-variant));border-radius:9999px;height:14px;opacity:.6;min-width:36px;cursor:pointer;transition:.2s background-color cubic-bezier(.4,0,.2,1)}.v-switch--inset .v-switch__track{border-radius:9999px;font-size:.75rem;height:32px;min-width:52px}.v-switch__thumb{align-items:center;background-color:rgb(var(--v-theme-surface-bright));color:rgb(var(--v-theme-on-surface-bright));border-radius:50%;display:flex;font-size:.75rem;height:20px;justify-content:center;width:20px;pointer-events:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1),.2s color cubic-bezier(.4,0,.2,1),.2s background-color cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.v-switch:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch--inset .v-switch__thumb{height:24px;width:24px;transform:scale(.6666666667)}.v-switch--inset .v-switch__thumb--filled{transform:none}.v-switch--inset .v-selection-control--dirty .v-switch__thumb{transform:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1)}.v-switch.v-input{flex:0 1 auto}.v-switch .v-selection-control{min-height:var(--v-input-control-height)}.v-switch .v-selection-control__input{border-radius:50%;transition:.2s transform cubic-bezier(.4,0,.2,1);position:absolute}.v-locale--is-ltr.v-switch .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control__input{transform:translate(-10px)}.v-locale--is-rtl.v-switch .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control__input{transform:translate(10px)}.v-switch .v-selection-control__input .v-icon{position:absolute}.v-locale--is-ltr.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(10px)}.v-locale--is-rtl.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(-10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.v-switch.v-switch--inset .v-selection-control__wrapper{width:auto}.v-switch.v-input--vertical .v-label{min-width:max-content}.v-switch.v-input--vertical .v-selection-control__wrapper{transform:rotate(-90deg)}@media (forced-colors: active){.v-switch .v-switch__loader .v-progress-circular{color:currentColor}.v-switch .v-switch__thumb{background-color:buttontext}.v-switch .v-switch__track,.v-switch .v-switch__thumb{border:1px solid;color:buttontext}.v-switch:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track,.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{color:highlight}.v-switch.v-switch--inset .v-switch__track{border-width:2px}.v-switch.v-switch--inset:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlighttext;color:highlighttext}.v-switch.v-input--disabled .v-switch__thumb{background-color:graytext}.v-switch.v-input--disabled .v-switch__track,.v-switch.v-input--disabled .v-switch__thumb{color:graytext}.v-switch.v-switch--loading .v-switch__thumb{background-color:canvas}.v-switch.v-switch--loading.v-switch--inset .v-switch__thumb,.v-switch.v-switch--loading.v-switch--indeterminate .v-switch__thumb{border-width:0}}.v-textarea .v-field{--v-textarea-control-height: var(--v-input-control-height)}.v-textarea .v-field__field{--v-input-control-height: var(--v-textarea-control-height)}.v-textarea .v-field__input{flex:1 1 auto;outline:none;-webkit-mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px));mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px))}.v-textarea .v-field__input.v-textarea__sizer{visibility:hidden;position:absolute;top:0;left:0;height:0!important;min-height:0!important;pointer-events:none}.v-textarea--no-resize .v-field__input{resize:none}.v-textarea .v-field--no-label textarea,.v-textarea .v-field--active textarea{opacity:1}.v-textarea textarea{opacity:0;flex:1;min-width:0;transition:.15s opacity cubic-bezier(.4,0,.2,1)}.v-textarea textarea:focus,.v-textarea textarea:active{outline:none}.v-textarea textarea:invalid{box-shadow:none}.v-tooltip>.v-overlay__content{background:rgb(var(--v-theme-bluegrey));color:rgb(var(--v-theme-on-surface-variant));border-radius:4px;font-size:.875rem;line-height:1.6;display:inline-block;padding:5px 16px;text-transform:initial;width:auto;opacity:1;pointer-events:none;transition-property:opacity,transform;overflow-wrap:break-word}.v-tooltip>.v-overlay__content[class*=enter-active]{transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s}.v-tooltip>.v-overlay__content[class*=leave-active]{transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:75ms}.divider[data-v-c00c2563]{position:relative;height:24px}.divider__divider-line[data-v-c00c2563]{position:absolute;top:50%;width:100%;transform:translateY(-50%)}.divider__btn[data-v-c00c2563]{position:absolute;top:0;left:50%;transform:translate(-50%);opacity:1}.divider[data-v-c00c2563]:hover{cursor:pointer}.divider:hover .divider__divider-line[data-v-c00c2563]{background-color:#fff}.divider:hover .divider__btn[data-v-c00c2563]{color:#fff!important}.cell[data-v-09a4d2b3]{padding:18px;display:flex;margin-bottom:2px}.cell--dev[data-v-09a4d2b3]{margin-bottom:16px}.message-btn--alert[data-v-09a4d2b3]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjQUU5RkU4Ij48cGF0aCBkPSJNMTMuMzA1IDIyLjVMMTIgMjEuNzVMMTUgMTYuNUgxOS41QzE5Ljg5NzggMTYuNSAyMC4yNzk0IDE2LjM0MiAyMC41NjA3IDE2LjA2MDdDMjAuODQyIDE1Ljc3OTQgMjEgMTUuMzk3OCAyMSAxNVY2QzIxIDUuNjAyMTggMjAuODQyIDUuMjIwNjQgMjAuNTYwNyA0LjkzOTM0QzIwLjI3OTQgNC42NTgwNCAxOS44OTc4IDQuNSAxOS41IDQuNUg0LjVDNC4xMDIxOCA0LjUgMy43MjA2NCA0LjY1ODA0IDMuNDM5MzQgNC45MzkzNEMzLjE1ODA0IDUuMjIwNjQgMyA1LjYwMjE4IDMgNlYxNUMzIDE1LjM5NzggMy4xNTgwNCAxNS43Nzk0IDMuNDM5MzQgMTYuMDYwN0MzLjcyMDY0IDE2LjM0MiA0LjEwMjE4IDE2LjUgNC41IDE2LjVIMTEuMjVWMThINC41QzMuNzA0MzUgMTggMi45NDEyOSAxNy42ODM5IDIuMzc4NjggMTcuMTIxM0MxLjgxNjA3IDE2LjU1ODcgMS41IDE1Ljc5NTYgMS41IDE1VjZDMS41IDUuMjA0MzUgMS44MTYwNyA0LjQ0MTI5IDIuMzc4NjggMy44Nzg2OEMyLjk0MTI5IDMuMzE2MDcgMy43MDQzNSAzIDQuNSAzSDE5LjVDMjAuMjk1NiAzIDIxLjA1ODcgMy4zMTYwNyAyMS42MjEzIDMuODc4NjhDMjIuMTgzOSA0LjQ0MTI5IDIyLjUgNS4yMDQzNSAyMi41IDZWMTVDMjIuNSAxNS43OTU2IDIyLjE4MzkgMTYuNTU4NyAyMS42MjEzIDE3LjEyMTNDMjEuMDU4NyAxNy42ODM5IDIwLjI5NTYgMTggMTkuNSAxOEgxNS44N0wxMy4zMDUgMjIuNVoiIGZpbGw9IiNBRTlGRTgiLz48L3N2Zz4=);background-position:center;background-repeat:no-repeat;transition:none}.message-btn__counter[data-v-09a4d2b3]{margin-bottom:4px}.delete-cell[data-v-09a4d2b3]:hover{background-color:#6e3d41}.content[data-v-09a4d2b3]{flex:1;margin-left:16px;margin-right:0;width:calc(100% - 36px)}.indicator[data-v-09a4d2b3]{border-radius:4px}.header[data-v-09a4d2b3]{display:flex;justify-content:space-between;margin-bottom:16px}.code[data-v-09a4d2b3],.outcome[data-v-09a4d2b3]{padding:0}.code--dev[data-v-09a4d2b3],.outcome--dev[data-v-09a4d2b3]{border:1px solid rgba(var(--v-theme-bluegrey));border-radius:4px;padding:12px}.code[data-v-09a4d2b3]{margin-bottom:16px}.click-edit[data-v-09a4d2b3]{width:calc(100% - 135px)}.click-edit__name[data-v-09a4d2b3]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__show-text[data-v-09a4d2b3],.click-edit__edit-field-wrapper[data-v-09a4d2b3]{height:100%;display:flex;align-items:center}.click-edit__name[data-v-09a4d2b3]:hover{cursor:text;padding-left:3px;padding-right:3px;border:1px solid #294455}.click-edit__static-name[data-v-09a4d2b3]{cursor:text;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__edit-field[data-v-09a4d2b3]{margin-top:-11px}.click-edit__edit-field[data-v-09a4d2b3] .v-field__input{font-size:1rem;letter-spacing:normal}.click-edit .actions[data-v-09a4d2b3]{display:flex;align-items:center}.click-edit .loading-wrapper[data-v-09a4d2b3]{display:flex;align-items:center;margin-right:8px}.click-edit .green-loader[data-v-09a4d2b3]{color:rgba(var(--v-theme-success))}.app-static-name[data-v-062456ec]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-062456ec] .plot-container{overflow:auto}.markdown-content[data-v-d5250b54]{font-family:Arial,sans-serif;line-height:1.6;color:#fff}.markdown-content h1[data-v-d5250b54],h2[data-v-d5250b54],h3[data-v-d5250b54],h4[data-v-d5250b54],h5[data-v-d5250b54],h6[data-v-d5250b54]{margin-top:1.5em;margin-bottom:.5em;font-weight:700;line-height:1.3}.markdown-content p[data-v-d5250b54]{margin-top:0;margin-bottom:1em}.markdown-content ul[data-v-d5250b54],ol[data-v-d5250b54]{padding-left:20px;margin-top:.5em;margin-bottom:.5em}.markdown-content ul[data-v-d5250b54]{list-style-type:disc}.markdown-content ol[data-v-d5250b54]{list-style-type:decimal}.markdown-content li[data-v-d5250b54]{margin-bottom:.25em}.markdown-content a[data-v-d5250b54]{color:#007bff;text-decoration:none}.markdown-content a[data-v-d5250b54]:hover{text-decoration:underline}.markdown-content img[data-v-d5250b54]{max-width:100%;height:auto}.markdown-content blockquote[data-v-d5250b54]{margin:0;padding-left:1em;color:#6a737d;border-left:.25em solid #dfe2e5}.tox{box-shadow:none;box-sizing:content-box;color:#2a3746;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){background:transparent;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #000000;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:1px solid #000000;border-radius:0;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:1300}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#1e71aa66;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#207ab7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus{background-color:#1c6ca1}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#185d8c}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa50080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus{background-color:#f2d574;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc000080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus{background-color:#e9a4a4;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab4680;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .mce-codemirror{background:#fff;bottom:0;font-size:13px;left:0;position:absolute;right:0;top:0;z-index:1}.tox .mce-codemirror.tox-inline-codemirror{margin:8px;position:absolute}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#000;border-radius:0;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar,.tox .tox-bottom-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button:before{border-radius:3px;bottom:-1px;box-shadow:inset 0 0 0 1px #fff,0 0 0 2px #207ab7;content:"";left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:focus:not(:disabled):before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#114060;background-image:none;border-color:#114060;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:none;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#264560;background-image:none;border-color:#264560;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:#3d546f;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--naked:hover:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:#2b3b4e;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#fff3}@media (forced-colors: active){.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:currentColor!important}}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:#ffffff80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#ffffff80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#1a1a1a;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#333;color:#fff;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{background-color:#757d87;color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#2b3b4e;position:relative}.tox .tox-collection--toolbar .tox-collection__item--active:hover{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border:2px solid highlight}}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#4a5562;color:#fff;position:relative;z-index:1}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent "inset";content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border:2px solid highlight}}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){border:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:currentColor;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:currentColor}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#ffffff80;cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:#ffffff80}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid #1a1a1a;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:3px 0 2px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #000000}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #000000}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}@media (forced-colors: active){.tox .tox-hue-slider,.tox .tox-rgb-form .tox-rgba-preview{background-color:currentColor!important;border:1px solid highlight!important;forced-color-adjust:none}}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}@media (forced-colors: active){.tox .tox-swatches__row{forced-color-adjust:none}}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#4a5562}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:3px;width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#ffffff80;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#ffffff80}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar svg,.tox:not([dir=rtl]) .tox-user__avatar img{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg,.tox[dir=rtl] .tox-user__avatar img{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:#222f3ebf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #2a374626,0 0 40px 1px #2a374626;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 16px);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px}@media only screen and (min-width: 768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#ffffff80;display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:#207ab71a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}@media (forced-colors: active){.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid highlight;color:highlight}}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#114060;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #207ab7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#092335;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dd{padding-inline-start:2.5rem}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl{margin-bottom:16px}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dt{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:1px solid #000000;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#222f3ebf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered:before{border:1px solid #000000;border-radius:3px;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered iframe{border-radius:3px}.tox .tox-navobj-bordered-focus.tox-navobj-bordered:before{border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #000000;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#ffffff80;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area:before{border:0 solid transparent;border-radius:4px;content:"";top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}@media (forced-colors: active){.tox .tox-edit-area:before{border:0 solid highlight}}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area:before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #000000}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:none;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #000000;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:0 4px 4px -3px #00000040;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:none;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-custom-preview{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;flex:1;padding:8px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#2a374633;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}@media (forced-colors: active){.tox .tox-color-input span{border-color:currentColor;border-width:2px!important;forced-color-adjust:none}}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:3px;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}@media (forced-colors: active){.tox .tox-color-input span:before{border:none}}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#ffffff80;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#222f3e;color:#ffffffd9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}@media (forced-colors: active){.tox .tox-listbox__select-chevron svg{fill:currentColor!important}}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{background-color:#222f3e;display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#000;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:0 -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#207ab780;border-color:#207ab780}@media (forced-colors: active){.tox .tox-insert-table-picker .tox-insert-table-picker__selected{border-color:Highlight;filter:contrast(50%)}}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}@media only screen and (min-width: 768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1 / -1;grid-row:1;padding:0 4px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#4a5562;border:0;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-mbtn:focus:not(:disabled):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-mbtn:focus:not(:disabled):after{border:2px solid highlight}}.tox .tox-mbtn--active,.tox .tox-mbtn:not(:disabled).tox-mbtn--active:focus{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-left:auto;margin-right:auto;margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in;width:-moz-max-content;width:max-content}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification:focus{border-color:#207ab7;box-shadow:none}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success a:hover,.tox .tox-notification--success a:focus{color:#82b153;text-decoration:underline}.tox .tox-notification--success a:focus-visible{border-radius:1px;outline:2px solid #b5d199;outline-offset:2px}.tox .tox-notification--success a:active{color:#689041;text-decoration:underline}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error a:hover,.tox .tox-notification--error a:focus{color:#d42b2b;text-decoration:underline}.tox .tox-notification--error a:focus-visible{border-radius:1px;outline:2px solid #e68080;outline-offset:2px}.tox .tox-notification--error a:active{color:#a22;text-decoration:underline}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:#000;color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn a:hover,.tox .tox-notification--warning a:hover,.tox .tox-notification--warn a:focus,.tox .tox-notification--warning a:focus{color:#997a00;text-decoration:underline}.tox .tox-notification--warn a:focus-visible,.tox .tox-notification--warning a:focus-visible{border-radius:1px;outline:2px solid #ffcc00;outline-offset:2px}.tox .tox-notification--warn a:active,.tox .tox-notification--warning a:active{color:#665200;text-decoration:underline}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info a:hover,.tox .tox-notification--info a:focus{color:#2681ea;text-decoration:underline}.tox .tox-notification--info a:focus-visible{border-radius:1px;outline:2px solid #83b7f3;outline-offset:2px}.tox .tox-notification--info a:active{color:#1368c9;text-decoration:underline}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-notification-container-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-notification-container-dock-fadein{opacity:1;visibility:visible}.tox .tox-notification-container-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-notification-container-dock-transition.tox-notification-container-dock-fadein{transition-delay:0s}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition:before,.tox .tox-pop--transition:after{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #000000;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;opacity:1;position:absolute;width:0}@media (forced-colors: active){.tox .tox-pop:before,.tox .tox-pop:after{content:none}}.tox .tox-pop.tox-pop--inset:before,.tox .tox-pop.tox-pop--inset:after{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#000000 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #000000 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #000000 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #000000;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #000000;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#ffffff80;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid #000000;color:#fff;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between}@media only screen and (min-width: 768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width: 767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#fff;position:relative;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border:2px solid highlight}}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin:3px -5px 3px 4px;padding-bottom:0;padding-left:0;padding-right:0;position:relative}.tox .tox-statusbar__resize-handle svg{display:block;fill:#ffffff80}.tox .tox-statusbar__resize-handle:hover svg,.tox .tox-statusbar__resize-handle:focus svg{fill:#fff}.tox .tox-statusbar__resize-handle:focus-visible{background-color:transparent;border-radius:1px 1px -4px;box-shadow:0 0 0 2px transparent}.tox .tox-statusbar__resize-handle:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar__resize-handle:focus-visible:after{border:2px solid highlight}}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#222f3e99;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:3px 0 2px;outline:none;padding:0;text-transform:none;width:34px}@media (forced-colors: active){.tox .tox-tbtn:hover,.tox .tox-tbtn.tox-tbtn:hover{outline:1px dashed currentColor}.tox .tox-tbtn.tox-tbtn--active,.tox .tox-tbtn.tox-tbtn--enabled,.tox .tox-tbtn.tox-tbtn--enabled:hover,.tox .tox-tbtn.tox-tbtn--enabled:focus,.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){outline:1px solid currentColor;position:relative}}.tox .tox-tbtn svg{display:block;fill:#fff}@media (forced-colors: active){.tox .tox-tbtn svg{fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--enabled,.tox .tox-tbtn svg:focus:not(.tox-tbtn--disabled){fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--disabled,.tox .tox-tbtn svg.tox-tbtn--disabled:hover,.tox .tox-tbtn svg .tox-tbtn:disabled,.tox .tox-tbtn svg .tox-tbtn:disabled:hover{filter:contrast(0%)}}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#4a5562;border:0;box-shadow:none;position:relative;z-index:1}.tox .tox-tbtn:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn:focus:after{border:2px solid highlight}}.tox .tox-tbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:#ffffff80}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tbtn--active,.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover,.tox .tox-tbtn--enabled:focus{background:#757d87;border:0;box-shadow:none;color:#fff;position:relative}.tox .tox-tbtn--active>*,.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled:focus>*{transform:none}.tox .tox-tbtn--active svg,.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg,.tox .tox-tbtn--enabled:focus svg{fill:#fff}.tox .tox-tbtn--active.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:focus.tox-tbtn--disabled svg{fill:#ffffff80}.tox .tox-tbtn--enabled:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn--enabled:focus:after{border:2px solid highlight}}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{background:transparent;border-radius:3px;display:flex;margin:3px 0 2px;position:relative;width:auto}.tox .tox-number-input:focus{background:#4a5562}.tox .tox-number-input:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper{display:flex;pointer-events:none;position:relative;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background-color:#4a5562;z-index:1}.tox .tox-number-input .tox-input-wrapper:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border:2px solid highlight}}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;position:relative;width:60px}.tox .tox-number-input input:hover{background:#4a5562;color:#fff}.tox .tox-number-input input:focus{background-color:#4a5562}.tox .tox-number-input input:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button{color:#fff;height:34px;position:relative;text-align:center;width:24px}@media (forced-colors: active){.tox .tox-number-input button:hover,.tox .tox-number-input button:focus,.tox .tox-number-input button:active{outline:1px solid currentColor!important}}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}@media (forced-colors: active){.tox .tox-number-input button svg,.tox .tox-number-input button svg:active,.tox .tox-number-input button svg:hover{fill:currentColor!important}.tox .tox-number-input button svg:disabled{filter:contrast(0)}}.tox .tox-number-input button:focus{background:#4a5562;z-index:1}.tox .tox-number-input button:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input button:focus:after{border:2px solid highlight}}.tox .tox-number-input button:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:#ffffff80}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>button,.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper{background:#4a5562}.tox .tox-tbtn--select{margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-tbtn__select-chevron svg{fill:currentColor}}.tox .tox-tbtn--bespoke{background:transparent}.tox .tox-tbtn--bespoke:focus{background:#4a5562}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:0}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:3px 0 2px}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #4a5562 inset}.tox .tox-split-button:focus{background:#4a5562;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-split-button:focus:after{pointer-events:none;border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-split-button:focus:after{border:2px solid highlight}}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button>*:nth-child(1){border-bottom-left-radius:3px;border-top-left-radius:3px}.tox .tox-split-button>*:nth-child(2){border-bottom-right-radius:3px;border-top-right-radius:3px}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-split-button__chevron svg{fill:currentColor}}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button:focus .tox-tbtn{background-color:transparent}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:#222f3e;box-shadow:none;color:#ffffff80}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(#000000 0px 1px,transparent 1px 39px);background-position:center top 39px;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 39px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__primary,.tox .tox-toolbar-overlord>.tox-toolbar__overflow{background-position:center top 0px;background-size:calc(100% - 8px) calc(100% + -0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-toolbar-overlord,.tox .tox-anchorbar{grid-column:1 / -1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid #000000;margin-top:-1px;padding-bottom:0;padding-top:0}@media (forced-colors: active){.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{outline:1px solid currentColor}}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 16px) calc(100% - 51px);border:none;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;overscroll-behavior:none;padding:4px 0}@media (forced-colors: active){.tox.tox-tinymce-aux .tox-toolbar__overflow{border:solid}}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 8px) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #000000}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #000000}.tox .tox-tooltip{display:inline-block;max-width:15em;padding:8px;pointer-events:none;position:relative;width:-moz-max-content;width:max-content;z-index:1150}.tox .tox-tooltip__body{background-color:#2a3746;border-radius:3px;box-shadow:none;color:#fff;font-size:12px;font-style:normal;font-weight:600;overflow-wrap:break-word;padding:4px 6px;text-transform:none}@media (forced-colors: active){.tox .tox-tooltip__body{outline:outset 1px}}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #2A3746;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #2A3746;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #2A3746;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #2A3746;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:transparent;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:none;overflow:hidden;padding:0 0 0 8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled>*,.tox .tox-tree .tox-trbtn--enabled:hover>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-revisionhistory__pane{padding:0!important}.tox .tox-revisionhistory__container{display:flex;flex-direction:column;height:100%}.tox .tox-revisionhistory{background-color:#2b3b4e;border-radius:4px;border-top:1px solid #000000;display:flex;flex:1;height:100%;margin-top:8px;overflow-x:auto;overflow-y:hidden;position:relative;width:100%}.tox .tox-revisionhistory--align-right{margin-left:auto}.tox .tox-revisionhistory__iframe{flex:1}.tox .tox-revisionhistory__sidebar{border-left:1px solid #000000;height:100%;max-width:360px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__sidebar-title{border-bottom:1px solid #000000;color:#fff;font-size:20px;font-weight:400;height:60px;min-width:192px;padding:16px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions{flex-direction:column;max-height:calc(100% - 60px);min-width:192px;overflow-y:auto;padding:8px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus{height:100%;position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{box-shadow:0 0 0 0 transparent;content:"";position:absolute;border-radius:3px;bottom:1px;left:1px;right:1px;top:1px}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card{border:1px solid #000000;border-radius:3px;color:#fff;cursor:pointer;font-size:14px;margin-bottom:8px;padding:8px;text-overflow:ellipsis;text-wrap:nowrap;width:100%}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:hover{background-color:#4a5562;box-shadow:none;color:#fff}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus{position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{border-radius:3px!important;border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected{background-color:#6ea9d0;box-shadow:none;color:#fff}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__norevision{color:#ffffff80;font-size:16px;line-height:24px;padding:5px 5.5px}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column;height:100%}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0;position:relative}.tox .tox-view__label{color:#fff;font-weight:700;line-height:24px;padding:4px 16px;text-align:center;white-space:nowrap}.tox .tox-view__label--normal{font-size:16px}.tox .tox-view__label--large{font-size:20px}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;overflow-x:auto;padding:8px 8px 0}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-start,.tox .tox-view__header-end{display:flex}.tox .tox-view__pane{height:100%;padding:8px;position:relative;width:100%}.tox .tox-view__pane_panel{border:1px solid #000000;border-radius:3px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-start>*,.tox[dir=rtl] .tox-view__header .tox-view__header-end>*{margin-right:8px}.tox .tox-well{border:1px solid #000000;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #000000;border-radius:3px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:none;padding:0}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce-inline .tox-editor-container{overflow:hidden}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:none;box-shadow:none}.tox.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:transparent;box-shadow:0 4px 4px -3px #00000040;padding:0}.tox.tox.tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-pop{box-shadow:none}.tox .tox-tbtn,.tox .tox-number-input,.tox .tox-tbtn--select,.tox .tox-split-button{margin:2px 0 3px}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0px #222f3e!important}.tox .tox-menubar+.tox-toolbar-overlord{border-top:none}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #000000;margin-top:-1px}.tox.tox-tinymce-aux .tox-toolbar__overflow{border:1px solid #000000;padding:0}.tox .tox-pop .tox-pop__dialog .tox-toolbar{padding:0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #000000}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #000000}.tox .tox-toolbar__group{padding:0 4px}.tox .tox-collection__item{border-radius:0;cursor:pointer}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff}.tox .tox-statusbar__branding svg{fill:#fffc;height:1em;margin-left:.3em;width:auto}@media (forced-colors: active){.tox .tox-statusbar__branding svg{fill:currentColor}}.tox .tox-statusbar__branding a{align-items:center;display:inline-flex}.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox[dir=rtl] .tox-statusbar__branding svg{margin-left:0;margin-right:.3em}.tox .tox-statusbar__resize-handle{padding-bottom:0;padding-right:0}.tox .tox-button:before{display:none}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#0e1b23!important}.tox-tinymce{border:none!important}.app-static-name[data-v-0948e122]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-name[data-v-588566c2]{position:sticky;top:100px}.message[data-v-588566c2]{padding-top:10px}.message__timestamp[data-v-588566c2]{font-size:.75rem;color:rgba(var(--v-theme-bluegrey))}.message__content[data-v-588566c2]{font-size:14px;word-break:break-word}.comment__actions[data-v-588566c2]{position:absolute;right:0}.card[data-v-793087b5]{position:sticky;height:87.5vh;top:3.9rem}.close-btn[data-v-793087b5]{position:absolute;top:0;right:0}.content[data-v-793087b5]{position:relative;height:100%}.empty-state[data-v-793087b5]{margin-top:200px;text-align:center}.empty-state__text[data-v-793087b5]{max-width:20em;margin:0 auto;line-height:1.8rem;color:rgb(var(--v-theme-bluegrey))}.comments-wrapper[data-v-793087b5]{max-height:66vh;overflow-y:auto}.cell-container{padding-top:0}.cell-container--app{padding-bottom:0}.cm-editor{height:auto!important}.zt-app-bar[data-v-e40b79f1]{padding-top:6px;padding-bottom:6px}.logo-btn[data-v-e40b79f1] .v-icon{width:1.5em;height:1.5em}.cm-editor[data-v-e40b79f1]{height:auto!important}.click-edit[data-v-e40b79f1]{max-width:200px;width:100%}.click-edit__name[data-v-e40b79f1]{font-weight:400;cursor:text}.click-edit__show-text[data-v-e40b79f1],.click-edit__edit-field-wrapper[data-v-e40b79f1]{display:flex;align-items:center}.click-edit__name[data-v-e40b79f1]:hover{padding-left:3px;padding-right:3px;cursor:text;border:1px solid #294455}.click-edit__edit-field[data-v-e40b79f1]{margin-top:-11px}.click-edit__edit-field[data-v-e40b79f1] .v-field__input{font-size:1.5rem;letter-spacing:normal}@media (min-width: 600px){.click-edit[data-v-e40b79f1]{max-width:250px}}@media (min-width: 1280px){.click-edit[data-v-e40b79f1]{max-width:450px}}@media (min-width: 1920px){.click-edit[data-v-e40b79f1]{max-width:600px}}.content[data-v-e40b79f1]{padding-left:0!important;padding-right:0!important}.content__comments[data-v-e40b79f1]{width:0;transition:width .15s ease}.content__comments--show[data-v-e40b79f1]{width:380px}.footer[data-v-e40b79f1]{display:flex;justify-content:space-between;flex-direction:column;padding:4px 16px}.footer__left-container[data-v-e40b79f1],.footer__right-container[data-v-e40b79f1]{display:flex;width:100%}@media (min-width: 960px){.footer__left-container[data-v-e40b79f1],.footer__right-container[data-v-e40b79f1]{align-items:center;width:auto}}.footer__right-container[data-v-e40b79f1]{align-items:center;flex-direction:column;justify-content:flex-start}@media (min-width: 600px){.footer__right-container[data-v-e40b79f1]{flex-direction:row}}.footer__left-container[data-v-e40b79f1]{flex-direction:column;margin:0 0 20px}@media (min-width: 600px){.footer__left-container[data-v-e40b79f1]{margin:0;flex-direction:row}}.footer__queue-length-wrapper[data-v-e40b79f1]{display:flex;justify-content:flex-start;width:100%}@media (min-width: 600px){.footer__queue-length-wrapper[data-v-e40b79f1]{width:auto}}.footer .dot-divider[data-v-e40b79f1]{display:none;margin:0 5px}@media (min-width: 600px){.footer .dot-divider[data-v-e40b79f1]{display:flex;margin:0 16px}}@media (min-width: 1280px){.footer .dot-divider[data-v-e40b79f1]{margin:0 16px}}@media (min-width: 1920px){.footer .dot-divider[data-v-e40b79f1]{margin:0 24px}}.footer__status-wrapper[data-v-e40b79f1]{display:flex;justify-content:flex-start;width:100%;align-items:center}.footer__status-wrapper .dot-divider[data-v-e40b79f1]{display:none}@media (min-width: 960px){.footer__status-wrapper .dot-divider[data-v-e40b79f1]{display:flex}}.footer__code-version-icon[data-v-e40b79f1]{margin-right:0;margin-left:-5px}@media (min-width: 600px){.footer__code-version-icon[data-v-e40b79f1]{margin-right:12px}}.footer__queue-length-btn[data-v-e40b79f1]{margin:0 2px}@media (min-width: 960px){.footer__queue-length-btn[data-v-e40b79f1]{margin:0 8px 0 24px}}.footer__code-running-loader[data-v-e40b79f1]{margin-right:10px}@media (min-width: 1280px){.footer__code-running-loader[data-v-e40b79f1]{margin-right:10px}}.footer__queue-list[data-v-e40b79f1]{font-size:.625rem}.footer__queue-list-item--pending[data-v-e40b79f1]{color:rgba(var(--v-theme-bluegrey-darken-2))}.footer__status[data-v-e40b79f1]{color:rgba(var(--v-theme-success))}.footer__status--error[data-v-e40b79f1]{color:rgba(var(--v-theme-error))}.footer__status--connected[data-v-e40b79f1]{color:rgba(var(--v-theme-info))}@media (min-width: 960px){.footer[data-v-e40b79f1]{flex-direction:row;height:34px}}.toggle-group[data-v-e40b79f1]{display:flex;justify-content:center;position:absolute;left:50%;transform:translate(-50%)}@font-face{font-family:Material Design Icons;src:url(./materialdesignicons-webfont-5159a347.eot?v=7.3.67);src:url(./materialdesignicons-webfont-5159a347.eot?#iefix&v=7.3.67) format("embedded-opentype"),url(./materialdesignicons-webfont-31010194.woff2?v=7.3.67) format("woff2"),url(./materialdesignicons-webfont-28c8f97f.woff?v=7.3.67) format("woff"),url(./materialdesignicons-webfont-be825c12.ttf?v=7.3.67) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-file:before{content:"󱲧"}.mdi-account-file-outline:before{content:"󱲨"}.mdi-account-file-text:before{content:"󱲩"}.mdi-account-file-text-outline:before{content:"󱲪"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-off-outline:before{content:"󱫲"}.mdi-account-network-outline:before{content:"󰯦"}.mdi-account-off:before{content:"󰀒"}.mdi-account-off-outline:before{content:"󰯧"}.mdi-account-outline:before{content:"󰀓"}.mdi-account-plus:before{content:"󰀔"}.mdi-account-plus-outline:before{content:"󰠁"}.mdi-account-question:before{content:"󰭙"}.mdi-account-question-outline:before{content:"󰭚"}.mdi-account-reactivate:before{content:"󱔫"}.mdi-account-reactivate-outline:before{content:"󱔬"}.mdi-account-remove:before{content:"󰀕"}.mdi-account-remove-outline:before{content:"󰫭"}.mdi-account-school:before{content:"󱨠"}.mdi-account-school-outline:before{content:"󱨡"}.mdi-account-search:before{content:"󰀖"}.mdi-account-search-outline:before{content:"󰤵"}.mdi-account-settings:before{content:"󰘰"}.mdi-account-settings-outline:before{content:"󱃉"}.mdi-account-star:before{content:"󰀗"}.mdi-account-star-outline:before{content:"󰯨"}.mdi-account-supervisor:before{content:"󰪋"}.mdi-account-supervisor-circle:before{content:"󰪌"}.mdi-account-supervisor-circle-outline:before{content:"󱓬"}.mdi-account-supervisor-outline:before{content:"󱄭"}.mdi-account-switch:before{content:"󰀙"}.mdi-account-switch-outline:before{content:"󰓋"}.mdi-account-sync:before{content:"󱤛"}.mdi-account-sync-outline:before{content:"󱤜"}.mdi-account-tag:before{content:"󱰛"}.mdi-account-tag-outline:before{content:"󱰜"}.mdi-account-tie:before{content:"󰳣"}.mdi-account-tie-hat:before{content:"󱢘"}.mdi-account-tie-hat-outline:before{content:"󱢙"}.mdi-account-tie-outline:before{content:"󱃊"}.mdi-account-tie-voice:before{content:"󱌈"}.mdi-account-tie-voice-off:before{content:"󱌊"}.mdi-account-tie-voice-off-outline:before{content:"󱌋"}.mdi-account-tie-voice-outline:before{content:"󱌉"}.mdi-account-tie-woman:before{content:"󱪌"}.mdi-account-voice:before{content:"󰗋"}.mdi-account-voice-off:before{content:"󰻔"}.mdi-account-wrench:before{content:"󱢚"}.mdi-account-wrench-outline:before{content:"󱢛"}.mdi-adjust:before{content:"󰀚"}.mdi-advertisements:before{content:"󱤪"}.mdi-advertisements-off:before{content:"󱤫"}.mdi-air-conditioner:before{content:"󰀛"}.mdi-air-filter:before{content:"󰵃"}.mdi-air-horn:before{content:"󰶬"}.mdi-air-humidifier:before{content:"󱂙"}.mdi-air-humidifier-off:before{content:"󱑦"}.mdi-air-purifier:before{content:"󰵄"}.mdi-air-purifier-off:before{content:"󱭗"}.mdi-airbag:before{content:"󰯩"}.mdi-airballoon:before{content:"󰀜"}.mdi-airballoon-outline:before{content:"󱀋"}.mdi-airplane:before{content:"󰀝"}.mdi-airplane-alert:before{content:"󱡺"}.mdi-airplane-check:before{content:"󱡻"}.mdi-airplane-clock:before{content:"󱡼"}.mdi-airplane-cog:before{content:"󱡽"}.mdi-airplane-edit:before{content:"󱡾"}.mdi-airplane-landing:before{content:"󰗔"}.mdi-airplane-marker:before{content:"󱡿"}.mdi-airplane-minus:before{content:"󱢀"}.mdi-airplane-off:before{content:"󰀞"}.mdi-airplane-plus:before{content:"󱢁"}.mdi-airplane-remove:before{content:"󱢂"}.mdi-airplane-search:before{content:"󱢃"}.mdi-airplane-settings:before{content:"󱢄"}.mdi-airplane-takeoff:before{content:"󰗕"}.mdi-airport:before{content:"󰡋"}.mdi-alarm:before{content:"󰀠"}.mdi-alarm-bell:before{content:"󰞎"}.mdi-alarm-check:before{content:"󰀡"}.mdi-alarm-light:before{content:"󰞏"}.mdi-alarm-light-off:before{content:"󱜞"}.mdi-alarm-light-off-outline:before{content:"󱜟"}.mdi-alarm-light-outline:before{content:"󰯪"}.mdi-alarm-multiple:before{content:"󰀢"}.mdi-alarm-note:before{content:"󰹱"}.mdi-alarm-note-off:before{content:"󰹲"}.mdi-alarm-off:before{content:"󰀣"}.mdi-alarm-panel:before{content:"󱗄"}.mdi-alarm-panel-outline:before{content:"󱗅"}.mdi-alarm-plus:before{content:"󰀤"}.mdi-alarm-snooze:before{content:"󰚎"}.mdi-album:before{content:"󰀥"}.mdi-alert:before{content:"󰀦"}.mdi-alert-box:before{content:"󰀧"}.mdi-alert-box-outline:before{content:"󰳤"}.mdi-alert-circle:before{content:"󰀨"}.mdi-alert-circle-check:before{content:"󱇭"}.mdi-alert-circle-check-outline:before{content:"󱇮"}.mdi-alert-circle-outline:before{content:"󰗖"}.mdi-alert-decagram:before{content:"󰚽"}.mdi-alert-decagram-outline:before{content:"󰳥"}.mdi-alert-minus:before{content:"󱒻"}.mdi-alert-minus-outline:before{content:"󱒾"}.mdi-alert-octagon:before{content:"󰀩"}.mdi-alert-octagon-outline:before{content:"󰳦"}.mdi-alert-octagram:before{content:"󰝧"}.mdi-alert-octagram-outline:before{content:"󰳧"}.mdi-alert-outline:before{content:"󰀪"}.mdi-alert-plus:before{content:"󱒺"}.mdi-alert-plus-outline:before{content:"󱒽"}.mdi-alert-remove:before{content:"󱒼"}.mdi-alert-remove-outline:before{content:"󱒿"}.mdi-alert-rhombus:before{content:"󱇎"}.mdi-alert-rhombus-outline:before{content:"󱇏"}.mdi-alien:before{content:"󰢚"}.mdi-alien-outline:before{content:"󱃋"}.mdi-align-horizontal-center:before{content:"󱇃"}.mdi-align-horizontal-distribute:before{content:"󱥢"}.mdi-align-horizontal-left:before{content:"󱇂"}.mdi-align-horizontal-right:before{content:"󱇄"}.mdi-align-vertical-bottom:before{content:"󱇅"}.mdi-align-vertical-center:before{content:"󱇆"}.mdi-align-vertical-distribute:before{content:"󱥣"}.mdi-align-vertical-top:before{content:"󱇇"}.mdi-all-inclusive:before{content:"󰚾"}.mdi-all-inclusive-box:before{content:"󱢍"}.mdi-all-inclusive-box-outline:before{content:"󱢎"}.mdi-allergy:before{content:"󱉘"}.mdi-alpha:before{content:"󰀫"}.mdi-alpha-a:before{content:"󰫮"}.mdi-alpha-a-box:before{content:"󰬈"}.mdi-alpha-a-box-outline:before{content:"󰯫"}.mdi-alpha-a-circle:before{content:"󰯬"}.mdi-alpha-a-circle-outline:before{content:"󰯭"}.mdi-alpha-b:before{content:"󰫯"}.mdi-alpha-b-box:before{content:"󰬉"}.mdi-alpha-b-box-outline:before{content:"󰯮"}.mdi-alpha-b-circle:before{content:"󰯯"}.mdi-alpha-b-circle-outline:before{content:"󰯰"}.mdi-alpha-c:before{content:"󰫰"}.mdi-alpha-c-box:before{content:"󰬊"}.mdi-alpha-c-box-outline:before{content:"󰯱"}.mdi-alpha-c-circle:before{content:"󰯲"}.mdi-alpha-c-circle-outline:before{content:"󰯳"}.mdi-alpha-d:before{content:"󰫱"}.mdi-alpha-d-box:before{content:"󰬋"}.mdi-alpha-d-box-outline:before{content:"󰯴"}.mdi-alpha-d-circle:before{content:"󰯵"}.mdi-alpha-d-circle-outline:before{content:"󰯶"}.mdi-alpha-e:before{content:"󰫲"}.mdi-alpha-e-box:before{content:"󰬌"}.mdi-alpha-e-box-outline:before{content:"󰯷"}.mdi-alpha-e-circle:before{content:"󰯸"}.mdi-alpha-e-circle-outline:before{content:"󰯹"}.mdi-alpha-f:before{content:"󰫳"}.mdi-alpha-f-box:before{content:"󰬍"}.mdi-alpha-f-box-outline:before{content:"󰯺"}.mdi-alpha-f-circle:before{content:"󰯻"}.mdi-alpha-f-circle-outline:before{content:"󰯼"}.mdi-alpha-g:before{content:"󰫴"}.mdi-alpha-g-box:before{content:"󰬎"}.mdi-alpha-g-box-outline:before{content:"󰯽"}.mdi-alpha-g-circle:before{content:"󰯾"}.mdi-alpha-g-circle-outline:before{content:"󰯿"}.mdi-alpha-h:before{content:"󰫵"}.mdi-alpha-h-box:before{content:"󰬏"}.mdi-alpha-h-box-outline:before{content:"󰰀"}.mdi-alpha-h-circle:before{content:"󰰁"}.mdi-alpha-h-circle-outline:before{content:"󰰂"}.mdi-alpha-i:before{content:"󰫶"}.mdi-alpha-i-box:before{content:"󰬐"}.mdi-alpha-i-box-outline:before{content:"󰰃"}.mdi-alpha-i-circle:before{content:"󰰄"}.mdi-alpha-i-circle-outline:before{content:"󰰅"}.mdi-alpha-j:before{content:"󰫷"}.mdi-alpha-j-box:before{content:"󰬑"}.mdi-alpha-j-box-outline:before{content:"󰰆"}.mdi-alpha-j-circle:before{content:"󰰇"}.mdi-alpha-j-circle-outline:before{content:"󰰈"}.mdi-alpha-k:before{content:"󰫸"}.mdi-alpha-k-box:before{content:"󰬒"}.mdi-alpha-k-box-outline:before{content:"󰰉"}.mdi-alpha-k-circle:before{content:"󰰊"}.mdi-alpha-k-circle-outline:before{content:"󰰋"}.mdi-alpha-l:before{content:"󰫹"}.mdi-alpha-l-box:before{content:"󰬓"}.mdi-alpha-l-box-outline:before{content:"󰰌"}.mdi-alpha-l-circle:before{content:"󰰍"}.mdi-alpha-l-circle-outline:before{content:"󰰎"}.mdi-alpha-m:before{content:"󰫺"}.mdi-alpha-m-box:before{content:"󰬔"}.mdi-alpha-m-box-outline:before{content:"󰰏"}.mdi-alpha-m-circle:before{content:"󰰐"}.mdi-alpha-m-circle-outline:before{content:"󰰑"}.mdi-alpha-n:before{content:"󰫻"}.mdi-alpha-n-box:before{content:"󰬕"}.mdi-alpha-n-box-outline:before{content:"󰰒"}.mdi-alpha-n-circle:before{content:"󰰓"}.mdi-alpha-n-circle-outline:before{content:"󰰔"}.mdi-alpha-o:before{content:"󰫼"}.mdi-alpha-o-box:before{content:"󰬖"}.mdi-alpha-o-box-outline:before{content:"󰰕"}.mdi-alpha-o-circle:before{content:"󰰖"}.mdi-alpha-o-circle-outline:before{content:"󰰗"}.mdi-alpha-p:before{content:"󰫽"}.mdi-alpha-p-box:before{content:"󰬗"}.mdi-alpha-p-box-outline:before{content:"󰰘"}.mdi-alpha-p-circle:before{content:"󰰙"}.mdi-alpha-p-circle-outline:before{content:"󰰚"}.mdi-alpha-q:before{content:"󰫾"}.mdi-alpha-q-box:before{content:"󰬘"}.mdi-alpha-q-box-outline:before{content:"󰰛"}.mdi-alpha-q-circle:before{content:"󰰜"}.mdi-alpha-q-circle-outline:before{content:"󰰝"}.mdi-alpha-r:before{content:"󰫿"}.mdi-alpha-r-box:before{content:"󰬙"}.mdi-alpha-r-box-outline:before{content:"󰰞"}.mdi-alpha-r-circle:before{content:"󰰟"}.mdi-alpha-r-circle-outline:before{content:"󰰠"}.mdi-alpha-s:before{content:"󰬀"}.mdi-alpha-s-box:before{content:"󰬚"}.mdi-alpha-s-box-outline:before{content:"󰰡"}.mdi-alpha-s-circle:before{content:"󰰢"}.mdi-alpha-s-circle-outline:before{content:"󰰣"}.mdi-alpha-t:before{content:"󰬁"}.mdi-alpha-t-box:before{content:"󰬛"}.mdi-alpha-t-box-outline:before{content:"󰰤"}.mdi-alpha-t-circle:before{content:"󰰥"}.mdi-alpha-t-circle-outline:before{content:"󰰦"}.mdi-alpha-u:before{content:"󰬂"}.mdi-alpha-u-box:before{content:"󰬜"}.mdi-alpha-u-box-outline:before{content:"󰰧"}.mdi-alpha-u-circle:before{content:"󰰨"}.mdi-alpha-u-circle-outline:before{content:"󰰩"}.mdi-alpha-v:before{content:"󰬃"}.mdi-alpha-v-box:before{content:"󰬝"}.mdi-alpha-v-box-outline:before{content:"󰰪"}.mdi-alpha-v-circle:before{content:"󰰫"}.mdi-alpha-v-circle-outline:before{content:"󰰬"}.mdi-alpha-w:before{content:"󰬄"}.mdi-alpha-w-box:before{content:"󰬞"}.mdi-alpha-w-box-outline:before{content:"󰰭"}.mdi-alpha-w-circle:before{content:"󰰮"}.mdi-alpha-w-circle-outline:before{content:"󰰯"}.mdi-alpha-x:before{content:"󰬅"}.mdi-alpha-x-box:before{content:"󰬟"}.mdi-alpha-x-box-outline:before{content:"󰰰"}.mdi-alpha-x-circle:before{content:"󰰱"}.mdi-alpha-x-circle-outline:before{content:"󰰲"}.mdi-alpha-y:before{content:"󰬆"}.mdi-alpha-y-box:before{content:"󰬠"}.mdi-alpha-y-box-outline:before{content:"󰰳"}.mdi-alpha-y-circle:before{content:"󰰴"}.mdi-alpha-y-circle-outline:before{content:"󰰵"}.mdi-alpha-z:before{content:"󰬇"}.mdi-alpha-z-box:before{content:"󰬡"}.mdi-alpha-z-box-outline:before{content:"󰰶"}.mdi-alpha-z-circle:before{content:"󰰷"}.mdi-alpha-z-circle-outline:before{content:"󰰸"}.mdi-alphabet-aurebesh:before{content:"󱌬"}.mdi-alphabet-cyrillic:before{content:"󱌭"}.mdi-alphabet-greek:before{content:"󱌮"}.mdi-alphabet-latin:before{content:"󱌯"}.mdi-alphabet-piqad:before{content:"󱌰"}.mdi-alphabet-tengwar:before{content:"󱌷"}.mdi-alphabetical:before{content:"󰀬"}.mdi-alphabetical-off:before{content:"󱀌"}.mdi-alphabetical-variant:before{content:"󱀍"}.mdi-alphabetical-variant-off:before{content:"󱀎"}.mdi-altimeter:before{content:"󰗗"}.mdi-ambulance:before{content:"󰀯"}.mdi-ammunition:before{content:"󰳨"}.mdi-ampersand:before{content:"󰪍"}.mdi-amplifier:before{content:"󰀰"}.mdi-amplifier-off:before{content:"󱆵"}.mdi-anchor:before{content:"󰀱"}.mdi-android:before{content:"󰀲"}.mdi-android-studio:before{content:"󰀴"}.mdi-angle-acute:before{content:"󰤷"}.mdi-angle-obtuse:before{content:"󰤸"}.mdi-angle-right:before{content:"󰤹"}.mdi-angular:before{content:"󰚲"}.mdi-angularjs:before{content:"󰚿"}.mdi-animation:before{content:"󰗘"}.mdi-animation-outline:before{content:"󰪏"}.mdi-animation-play:before{content:"󰤺"}.mdi-animation-play-outline:before{content:"󰪐"}.mdi-ansible:before{content:"󱂚"}.mdi-antenna:before{content:"󱄙"}.mdi-anvil:before{content:"󰢛"}.mdi-apache-kafka:before{content:"󱀏"}.mdi-api:before{content:"󱂛"}.mdi-api-off:before{content:"󱉗"}.mdi-apple:before{content:"󰀵"}.mdi-apple-finder:before{content:"󰀶"}.mdi-apple-icloud:before{content:"󰀸"}.mdi-apple-ios:before{content:"󰀷"}.mdi-apple-keyboard-caps:before{content:"󰘲"}.mdi-apple-keyboard-command:before{content:"󰘳"}.mdi-apple-keyboard-control:before{content:"󰘴"}.mdi-apple-keyboard-option:before{content:"󰘵"}.mdi-apple-keyboard-shift:before{content:"󰘶"}.mdi-apple-safari:before{content:"󰀹"}.mdi-application:before{content:"󰣆"}.mdi-application-array:before{content:"󱃵"}.mdi-application-array-outline:before{content:"󱃶"}.mdi-application-braces:before{content:"󱃷"}.mdi-application-braces-outline:before{content:"󱃸"}.mdi-application-brackets:before{content:"󰲋"}.mdi-application-brackets-outline:before{content:"󰲌"}.mdi-application-cog:before{content:"󰙵"}.mdi-application-cog-outline:before{content:"󱕷"}.mdi-application-edit:before{content:"󰂮"}.mdi-application-edit-outline:before{content:"󰘙"}.mdi-application-export:before{content:"󰶭"}.mdi-application-import:before{content:"󰶮"}.mdi-application-outline:before{content:"󰘔"}.mdi-application-parentheses:before{content:"󱃹"}.mdi-application-parentheses-outline:before{content:"󱃺"}.mdi-application-settings:before{content:"󰭠"}.mdi-application-settings-outline:before{content:"󱕕"}.mdi-application-variable:before{content:"󱃻"}.mdi-application-variable-outline:before{content:"󱃼"}.mdi-approximately-equal:before{content:"󰾞"}.mdi-approximately-equal-box:before{content:"󰾟"}.mdi-apps:before{content:"󰀻"}.mdi-apps-box:before{content:"󰵆"}.mdi-arch:before{content:"󰣇"}.mdi-archive:before{content:"󰀼"}.mdi-archive-alert:before{content:"󱓽"}.mdi-archive-alert-outline:before{content:"󱓾"}.mdi-archive-arrow-down:before{content:"󱉙"}.mdi-archive-arrow-down-outline:before{content:"󱉚"}.mdi-archive-arrow-up:before{content:"󱉛"}.mdi-archive-arrow-up-outline:before{content:"󱉜"}.mdi-archive-cancel:before{content:"󱝋"}.mdi-archive-cancel-outline:before{content:"󱝌"}.mdi-archive-check:before{content:"󱝍"}.mdi-archive-check-outline:before{content:"󱝎"}.mdi-archive-clock:before{content:"󱝏"}.mdi-archive-clock-outline:before{content:"󱝐"}.mdi-archive-cog:before{content:"󱝑"}.mdi-archive-cog-outline:before{content:"󱝒"}.mdi-archive-edit:before{content:"󱝓"}.mdi-archive-edit-outline:before{content:"󱝔"}.mdi-archive-eye:before{content:"󱝕"}.mdi-archive-eye-outline:before{content:"󱝖"}.mdi-archive-lock:before{content:"󱝗"}.mdi-archive-lock-open:before{content:"󱝘"}.mdi-archive-lock-open-outline:before{content:"󱝙"}.mdi-archive-lock-outline:before{content:"󱝚"}.mdi-archive-marker:before{content:"󱝛"}.mdi-archive-marker-outline:before{content:"󱝜"}.mdi-archive-minus:before{content:"󱝝"}.mdi-archive-minus-outline:before{content:"󱝞"}.mdi-archive-music:before{content:"󱝟"}.mdi-archive-music-outline:before{content:"󱝠"}.mdi-archive-off:before{content:"󱝡"}.mdi-archive-off-outline:before{content:"󱝢"}.mdi-archive-outline:before{content:"󱈎"}.mdi-archive-plus:before{content:"󱝣"}.mdi-archive-plus-outline:before{content:"󱝤"}.mdi-archive-refresh:before{content:"󱝥"}.mdi-archive-refresh-outline:before{content:"󱝦"}.mdi-archive-remove:before{content:"󱝧"}.mdi-archive-remove-outline:before{content:"󱝨"}.mdi-archive-search:before{content:"󱝩"}.mdi-archive-search-outline:before{content:"󱝪"}.mdi-archive-settings:before{content:"󱝫"}.mdi-archive-settings-outline:before{content:"󱝬"}.mdi-archive-star:before{content:"󱝭"}.mdi-archive-star-outline:before{content:"󱝮"}.mdi-archive-sync:before{content:"󱝯"}.mdi-archive-sync-outline:before{content:"󱝰"}.mdi-arm-flex:before{content:"󰿗"}.mdi-arm-flex-outline:before{content:"󰿖"}.mdi-arrange-bring-forward:before{content:"󰀽"}.mdi-arrange-bring-to-front:before{content:"󰀾"}.mdi-arrange-send-backward:before{content:"󰀿"}.mdi-arrange-send-to-back:before{content:"󰁀"}.mdi-arrow-all:before{content:"󰁁"}.mdi-arrow-bottom-left:before{content:"󰁂"}.mdi-arrow-bottom-left-bold-box:before{content:"󱥤"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"󱥥"}.mdi-arrow-bottom-left-bold-outline:before{content:"󰦷"}.mdi-arrow-bottom-left-thick:before{content:"󰦸"}.mdi-arrow-bottom-left-thin:before{content:"󱦶"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"󱖖"}.mdi-arrow-bottom-right:before{content:"󰁃"}.mdi-arrow-bottom-right-bold-box:before{content:"󱥦"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"󱥧"}.mdi-arrow-bottom-right-bold-outline:before{content:"󰦹"}.mdi-arrow-bottom-right-thick:before{content:"󰦺"}.mdi-arrow-bottom-right-thin:before{content:"󱦷"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"󱖕"}.mdi-arrow-collapse:before{content:"󰘕"}.mdi-arrow-collapse-all:before{content:"󰁄"}.mdi-arrow-collapse-down:before{content:"󰞒"}.mdi-arrow-collapse-horizontal:before{content:"󰡌"}.mdi-arrow-collapse-left:before{content:"󰞓"}.mdi-arrow-collapse-right:before{content:"󰞔"}.mdi-arrow-collapse-up:before{content:"󰞕"}.mdi-arrow-collapse-vertical:before{content:"󰡍"}.mdi-arrow-decision:before{content:"󰦻"}.mdi-arrow-decision-auto:before{content:"󰦼"}.mdi-arrow-decision-auto-outline:before{content:"󰦽"}.mdi-arrow-decision-outline:before{content:"󰦾"}.mdi-arrow-down:before{content:"󰁅"}.mdi-arrow-down-bold:before{content:"󰜮"}.mdi-arrow-down-bold-box:before{content:"󰜯"}.mdi-arrow-down-bold-box-outline:before{content:"󰜰"}.mdi-arrow-down-bold-circle:before{content:"󰁇"}.mdi-arrow-down-bold-circle-outline:before{content:"󰁈"}.mdi-arrow-down-bold-hexagon-outline:before{content:"󰁉"}.mdi-arrow-down-bold-outline:before{content:"󰦿"}.mdi-arrow-down-box:before{content:"󰛀"}.mdi-arrow-down-circle:before{content:"󰳛"}.mdi-arrow-down-circle-outline:before{content:"󰳜"}.mdi-arrow-down-drop-circle:before{content:"󰁊"}.mdi-arrow-down-drop-circle-outline:before{content:"󰁋"}.mdi-arrow-down-left:before{content:"󱞡"}.mdi-arrow-down-left-bold:before{content:"󱞢"}.mdi-arrow-down-right:before{content:"󱞣"}.mdi-arrow-down-right-bold:before{content:"󱞤"}.mdi-arrow-down-thick:before{content:"󰁆"}.mdi-arrow-down-thin:before{content:"󱦳"}.mdi-arrow-down-thin-circle-outline:before{content:"󱖙"}.mdi-arrow-expand:before{content:"󰘖"}.mdi-arrow-expand-all:before{content:"󰁌"}.mdi-arrow-expand-down:before{content:"󰞖"}.mdi-arrow-expand-horizontal:before{content:"󰡎"}.mdi-arrow-expand-left:before{content:"󰞗"}.mdi-arrow-expand-right:before{content:"󰞘"}.mdi-arrow-expand-up:before{content:"󰞙"}.mdi-arrow-expand-vertical:before{content:"󰡏"}.mdi-arrow-horizontal-lock:before{content:"󱅛"}.mdi-arrow-left:before{content:"󰁍"}.mdi-arrow-left-bold:before{content:"󰜱"}.mdi-arrow-left-bold-box:before{content:"󰜲"}.mdi-arrow-left-bold-box-outline:before{content:"󰜳"}.mdi-arrow-left-bold-circle:before{content:"󰁏"}.mdi-arrow-left-bold-circle-outline:before{content:"󰁐"}.mdi-arrow-left-bold-hexagon-outline:before{content:"󰁑"}.mdi-arrow-left-bold-outline:before{content:"󰧀"}.mdi-arrow-left-bottom:before{content:"󱞥"}.mdi-arrow-left-bottom-bold:before{content:"󱞦"}.mdi-arrow-left-box:before{content:"󰛁"}.mdi-arrow-left-circle:before{content:"󰳝"}.mdi-arrow-left-circle-outline:before{content:"󰳞"}.mdi-arrow-left-drop-circle:before{content:"󰁒"}.mdi-arrow-left-drop-circle-outline:before{content:"󰁓"}.mdi-arrow-left-right:before{content:"󰹳"}.mdi-arrow-left-right-bold:before{content:"󰹴"}.mdi-arrow-left-right-bold-outline:before{content:"󰧁"}.mdi-arrow-left-thick:before{content:"󰁎"}.mdi-arrow-left-thin:before{content:"󱦱"}.mdi-arrow-left-thin-circle-outline:before{content:"󱖚"}.mdi-arrow-left-top:before{content:"󱞧"}.mdi-arrow-left-top-bold:before{content:"󱞨"}.mdi-arrow-oscillating:before{content:"󱲑"}.mdi-arrow-oscillating-off:before{content:"󱲒"}.mdi-arrow-projectile:before{content:"󱡀"}.mdi-arrow-projectile-multiple:before{content:"󱠿"}.mdi-arrow-right:before{content:"󰁔"}.mdi-arrow-right-bold:before{content:"󰜴"}.mdi-arrow-right-bold-box:before{content:"󰜵"}.mdi-arrow-right-bold-box-outline:before{content:"󰜶"}.mdi-arrow-right-bold-circle:before{content:"󰁖"}.mdi-arrow-right-bold-circle-outline:before{content:"󰁗"}.mdi-arrow-right-bold-hexagon-outline:before{content:"󰁘"}.mdi-arrow-right-bold-outline:before{content:"󰧂"}.mdi-arrow-right-bottom:before{content:"󱞩"}.mdi-arrow-right-bottom-bold:before{content:"󱞪"}.mdi-arrow-right-box:before{content:"󰛂"}.mdi-arrow-right-circle:before{content:"󰳟"}.mdi-arrow-right-circle-outline:before{content:"󰳠"}.mdi-arrow-right-drop-circle:before{content:"󰁙"}.mdi-arrow-right-drop-circle-outline:before{content:"󰁚"}.mdi-arrow-right-thick:before{content:"󰁕"}.mdi-arrow-right-thin:before{content:"󱦰"}.mdi-arrow-right-thin-circle-outline:before{content:"󱖘"}.mdi-arrow-right-top:before{content:"󱞫"}.mdi-arrow-right-top-bold:before{content:"󱞬"}.mdi-arrow-split-horizontal:before{content:"󰤻"}.mdi-arrow-split-vertical:before{content:"󰤼"}.mdi-arrow-top-left:before{content:"󰁛"}.mdi-arrow-top-left-bold-box:before{content:"󱥨"}.mdi-arrow-top-left-bold-box-outline:before{content:"󱥩"}.mdi-arrow-top-left-bold-outline:before{content:"󰧃"}.mdi-arrow-top-left-bottom-right:before{content:"󰹵"}.mdi-arrow-top-left-bottom-right-bold:before{content:"󰹶"}.mdi-arrow-top-left-thick:before{content:"󰧄"}.mdi-arrow-top-left-thin:before{content:"󱦵"}.mdi-arrow-top-left-thin-circle-outline:before{content:"󱖓"}.mdi-arrow-top-right:before{content:"󰁜"}.mdi-arrow-top-right-bold-box:before{content:"󱥪"}.mdi-arrow-top-right-bold-box-outline:before{content:"󱥫"}.mdi-arrow-top-right-bold-outline:before{content:"󰧅"}.mdi-arrow-top-right-bottom-left:before{content:"󰹷"}.mdi-arrow-top-right-bottom-left-bold:before{content:"󰹸"}.mdi-arrow-top-right-thick:before{content:"󰧆"}.mdi-arrow-top-right-thin:before{content:"󱦴"}.mdi-arrow-top-right-thin-circle-outline:before{content:"󱖔"}.mdi-arrow-u-down-left:before{content:"󱞭"}.mdi-arrow-u-down-left-bold:before{content:"󱞮"}.mdi-arrow-u-down-right:before{content:"󱞯"}.mdi-arrow-u-down-right-bold:before{content:"󱞰"}.mdi-arrow-u-left-bottom:before{content:"󱞱"}.mdi-arrow-u-left-bottom-bold:before{content:"󱞲"}.mdi-arrow-u-left-top:before{content:"󱞳"}.mdi-arrow-u-left-top-bold:before{content:"󱞴"}.mdi-arrow-u-right-bottom:before{content:"󱞵"}.mdi-arrow-u-right-bottom-bold:before{content:"󱞶"}.mdi-arrow-u-right-top:before{content:"󱞷"}.mdi-arrow-u-right-top-bold:before{content:"󱞸"}.mdi-arrow-u-up-left:before{content:"󱞹"}.mdi-arrow-u-up-left-bold:before{content:"󱞺"}.mdi-arrow-u-up-right:before{content:"󱞻"}.mdi-arrow-u-up-right-bold:before{content:"󱞼"}.mdi-arrow-up:before{content:"󰁝"}.mdi-arrow-up-bold:before{content:"󰜷"}.mdi-arrow-up-bold-box:before{content:"󰜸"}.mdi-arrow-up-bold-box-outline:before{content:"󰜹"}.mdi-arrow-up-bold-circle:before{content:"󰁟"}.mdi-arrow-up-bold-circle-outline:before{content:"󰁠"}.mdi-arrow-up-bold-hexagon-outline:before{content:"󰁡"}.mdi-arrow-up-bold-outline:before{content:"󰧇"}.mdi-arrow-up-box:before{content:"󰛃"}.mdi-arrow-up-circle:before{content:"󰳡"}.mdi-arrow-up-circle-outline:before{content:"󰳢"}.mdi-arrow-up-down:before{content:"󰹹"}.mdi-arrow-up-down-bold:before{content:"󰹺"}.mdi-arrow-up-down-bold-outline:before{content:"󰧈"}.mdi-arrow-up-drop-circle:before{content:"󰁢"}.mdi-arrow-up-drop-circle-outline:before{content:"󰁣"}.mdi-arrow-up-left:before{content:"󱞽"}.mdi-arrow-up-left-bold:before{content:"󱞾"}.mdi-arrow-up-right:before{content:"󱞿"}.mdi-arrow-up-right-bold:before{content:"󱟀"}.mdi-arrow-up-thick:before{content:"󰁞"}.mdi-arrow-up-thin:before{content:"󱦲"}.mdi-arrow-up-thin-circle-outline:before{content:"󱖗"}.mdi-arrow-vertical-lock:before{content:"󱅜"}.mdi-artboard:before{content:"󱮚"}.mdi-artstation:before{content:"󰭛"}.mdi-aspect-ratio:before{content:"󰨤"}.mdi-assistant:before{content:"󰁤"}.mdi-asterisk:before{content:"󰛄"}.mdi-asterisk-circle-outline:before{content:"󱨧"}.mdi-at:before{content:"󰁥"}.mdi-atlassian:before{content:"󰠄"}.mdi-atm:before{content:"󰵇"}.mdi-atom:before{content:"󰝨"}.mdi-atom-variant:before{content:"󰹻"}.mdi-attachment:before{content:"󰁦"}.mdi-attachment-check:before{content:"󱫁"}.mdi-attachment-lock:before{content:"󱧄"}.mdi-attachment-minus:before{content:"󱫂"}.mdi-attachment-off:before{content:"󱫃"}.mdi-attachment-plus:before{content:"󱫄"}.mdi-attachment-remove:before{content:"󱫅"}.mdi-atv:before{content:"󱭰"}.mdi-audio-input-rca:before{content:"󱡫"}.mdi-audio-input-stereo-minijack:before{content:"󱡬"}.mdi-audio-input-xlr:before{content:"󱡭"}.mdi-audio-video:before{content:"󰤽"}.mdi-audio-video-off:before{content:"󱆶"}.mdi-augmented-reality:before{content:"󰡐"}.mdi-aurora:before{content:"󱮹"}.mdi-auto-download:before{content:"󱍾"}.mdi-auto-fix:before{content:"󰁨"}.mdi-auto-mode:before{content:"󱰠"}.mdi-auto-upload:before{content:"󰁩"}.mdi-autorenew:before{content:"󰁪"}.mdi-autorenew-off:before{content:"󱧧"}.mdi-av-timer:before{content:"󰁫"}.mdi-awning:before{content:"󱮇"}.mdi-awning-outline:before{content:"󱮈"}.mdi-aws:before{content:"󰸏"}.mdi-axe:before{content:"󰣈"}.mdi-axe-battle:before{content:"󱡂"}.mdi-axis:before{content:"󰵈"}.mdi-axis-arrow:before{content:"󰵉"}.mdi-axis-arrow-info:before{content:"󱐎"}.mdi-axis-arrow-lock:before{content:"󰵊"}.mdi-axis-lock:before{content:"󰵋"}.mdi-axis-x-arrow:before{content:"󰵌"}.mdi-axis-x-arrow-lock:before{content:"󰵍"}.mdi-axis-x-rotate-clockwise:before{content:"󰵎"}.mdi-axis-x-rotate-counterclockwise:before{content:"󰵏"}.mdi-axis-x-y-arrow-lock:before{content:"󰵐"}.mdi-axis-y-arrow:before{content:"󰵑"}.mdi-axis-y-arrow-lock:before{content:"󰵒"}.mdi-axis-y-rotate-clockwise:before{content:"󰵓"}.mdi-axis-y-rotate-counterclockwise:before{content:"󰵔"}.mdi-axis-z-arrow:before{content:"󰵕"}.mdi-axis-z-arrow-lock:before{content:"󰵖"}.mdi-axis-z-rotate-clockwise:before{content:"󰵗"}.mdi-axis-z-rotate-counterclockwise:before{content:"󰵘"}.mdi-babel:before{content:"󰨥"}.mdi-baby:before{content:"󰁬"}.mdi-baby-bottle:before{content:"󰼹"}.mdi-baby-bottle-outline:before{content:"󰼺"}.mdi-baby-buggy:before{content:"󱏠"}.mdi-baby-buggy-off:before{content:"󱫳"}.mdi-baby-carriage:before{content:"󰚏"}.mdi-baby-carriage-off:before{content:"󰾠"}.mdi-baby-face:before{content:"󰹼"}.mdi-baby-face-outline:before{content:"󰹽"}.mdi-backburger:before{content:"󰁭"}.mdi-backspace:before{content:"󰁮"}.mdi-backspace-outline:before{content:"󰭜"}.mdi-backspace-reverse:before{content:"󰹾"}.mdi-backspace-reverse-outline:before{content:"󰹿"}.mdi-backup-restore:before{content:"󰁯"}.mdi-bacteria:before{content:"󰻕"}.mdi-bacteria-outline:before{content:"󰻖"}.mdi-badge-account:before{content:"󰶧"}.mdi-badge-account-alert:before{content:"󰶨"}.mdi-badge-account-alert-outline:before{content:"󰶩"}.mdi-badge-account-horizontal:before{content:"󰸍"}.mdi-badge-account-horizontal-outline:before{content:"󰸎"}.mdi-badge-account-outline:before{content:"󰶪"}.mdi-badminton:before{content:"󰡑"}.mdi-bag-carry-on:before{content:"󰼻"}.mdi-bag-carry-on-check:before{content:"󰵥"}.mdi-bag-carry-on-off:before{content:"󰼼"}.mdi-bag-checked:before{content:"󰼽"}.mdi-bag-personal:before{content:"󰸐"}.mdi-bag-personal-off:before{content:"󰸑"}.mdi-bag-personal-off-outline:before{content:"󰸒"}.mdi-bag-personal-outline:before{content:"󰸓"}.mdi-bag-personal-plus:before{content:"󱲤"}.mdi-bag-personal-plus-outline:before{content:"󱲥"}.mdi-bag-personal-tag:before{content:"󱬌"}.mdi-bag-personal-tag-outline:before{content:"󱬍"}.mdi-bag-suitcase:before{content:"󱖋"}.mdi-bag-suitcase-off:before{content:"󱖍"}.mdi-bag-suitcase-off-outline:before{content:"󱖎"}.mdi-bag-suitcase-outline:before{content:"󱖌"}.mdi-baguette:before{content:"󰼾"}.mdi-balcony:before{content:"󱠗"}.mdi-balloon:before{content:"󰨦"}.mdi-ballot:before{content:"󰧉"}.mdi-ballot-outline:before{content:"󰧊"}.mdi-ballot-recount:before{content:"󰰹"}.mdi-ballot-recount-outline:before{content:"󰰺"}.mdi-bandage:before{content:"󰶯"}.mdi-bank:before{content:"󰁰"}.mdi-bank-check:before{content:"󱙕"}.mdi-bank-circle:before{content:"󱰃"}.mdi-bank-circle-outline:before{content:"󱰄"}.mdi-bank-minus:before{content:"󰶰"}.mdi-bank-off:before{content:"󱙖"}.mdi-bank-off-outline:before{content:"󱙗"}.mdi-bank-outline:before{content:"󰺀"}.mdi-bank-plus:before{content:"󰶱"}.mdi-bank-remove:before{content:"󰶲"}.mdi-bank-transfer:before{content:"󰨧"}.mdi-bank-transfer-in:before{content:"󰨨"}.mdi-bank-transfer-out:before{content:"󰨩"}.mdi-barcode:before{content:"󰁱"}.mdi-barcode-off:before{content:"󱈶"}.mdi-barcode-scan:before{content:"󰁲"}.mdi-barley:before{content:"󰁳"}.mdi-barley-off:before{content:"󰭝"}.mdi-barn:before{content:"󰭞"}.mdi-barrel:before{content:"󰁴"}.mdi-barrel-outline:before{content:"󱨨"}.mdi-baseball:before{content:"󰡒"}.mdi-baseball-bat:before{content:"󰡓"}.mdi-baseball-diamond:before{content:"󱗬"}.mdi-baseball-diamond-outline:before{content:"󱗭"}.mdi-baseball-outline:before{content:"󱱚"}.mdi-bash:before{content:"󱆃"}.mdi-basket:before{content:"󰁶"}.mdi-basket-check:before{content:"󱣥"}.mdi-basket-check-outline:before{content:"󱣦"}.mdi-basket-fill:before{content:"󰁷"}.mdi-basket-minus:before{content:"󱔣"}.mdi-basket-minus-outline:before{content:"󱔤"}.mdi-basket-off:before{content:"󱔥"}.mdi-basket-off-outline:before{content:"󱔦"}.mdi-basket-outline:before{content:"󱆁"}.mdi-basket-plus:before{content:"󱔧"}.mdi-basket-plus-outline:before{content:"󱔨"}.mdi-basket-remove:before{content:"󱔩"}.mdi-basket-remove-outline:before{content:"󱔪"}.mdi-basket-unfill:before{content:"󰁸"}.mdi-basketball:before{content:"󰠆"}.mdi-basketball-hoop:before{content:"󰰻"}.mdi-basketball-hoop-outline:before{content:"󰰼"}.mdi-bat:before{content:"󰭟"}.mdi-bathtub:before{content:"󱠘"}.mdi-bathtub-outline:before{content:"󱠙"}.mdi-battery:before{content:"󰁹"}.mdi-battery-10:before{content:"󰁺"}.mdi-battery-10-bluetooth:before{content:"󰤾"}.mdi-battery-20:before{content:"󰁻"}.mdi-battery-20-bluetooth:before{content:"󰤿"}.mdi-battery-30:before{content:"󰁼"}.mdi-battery-30-bluetooth:before{content:"󰥀"}.mdi-battery-40:before{content:"󰁽"}.mdi-battery-40-bluetooth:before{content:"󰥁"}.mdi-battery-50:before{content:"󰁾"}.mdi-battery-50-bluetooth:before{content:"󰥂"}.mdi-battery-60:before{content:"󰁿"}.mdi-battery-60-bluetooth:before{content:"󰥃"}.mdi-battery-70:before{content:"󰂀"}.mdi-battery-70-bluetooth:before{content:"󰥄"}.mdi-battery-80:before{content:"󰂁"}.mdi-battery-80-bluetooth:before{content:"󰥅"}.mdi-battery-90:before{content:"󰂂"}.mdi-battery-90-bluetooth:before{content:"󰥆"}.mdi-battery-alert:before{content:"󰂃"}.mdi-battery-alert-bluetooth:before{content:"󰥇"}.mdi-battery-alert-variant:before{content:"󱃌"}.mdi-battery-alert-variant-outline:before{content:"󱃍"}.mdi-battery-arrow-down:before{content:"󱟞"}.mdi-battery-arrow-down-outline:before{content:"󱟟"}.mdi-battery-arrow-up:before{content:"󱟠"}.mdi-battery-arrow-up-outline:before{content:"󱟡"}.mdi-battery-bluetooth:before{content:"󰥈"}.mdi-battery-bluetooth-variant:before{content:"󰥉"}.mdi-battery-charging:before{content:"󰂄"}.mdi-battery-charging-10:before{content:"󰢜"}.mdi-battery-charging-100:before{content:"󰂅"}.mdi-battery-charging-20:before{content:"󰂆"}.mdi-battery-charging-30:before{content:"󰂇"}.mdi-battery-charging-40:before{content:"󰂈"}.mdi-battery-charging-50:before{content:"󰢝"}.mdi-battery-charging-60:before{content:"󰂉"}.mdi-battery-charging-70:before{content:"󰢞"}.mdi-battery-charging-80:before{content:"󰂊"}.mdi-battery-charging-90:before{content:"󰂋"}.mdi-battery-charging-high:before{content:"󱊦"}.mdi-battery-charging-low:before{content:"󱊤"}.mdi-battery-charging-medium:before{content:"󱊥"}.mdi-battery-charging-outline:before{content:"󰢟"}.mdi-battery-charging-wireless:before{content:"󰠇"}.mdi-battery-charging-wireless-10:before{content:"󰠈"}.mdi-battery-charging-wireless-20:before{content:"󰠉"}.mdi-battery-charging-wireless-30:before{content:"󰠊"}.mdi-battery-charging-wireless-40:before{content:"󰠋"}.mdi-battery-charging-wireless-50:before{content:"󰠌"}.mdi-battery-charging-wireless-60:before{content:"󰠍"}.mdi-battery-charging-wireless-70:before{content:"󰠎"}.mdi-battery-charging-wireless-80:before{content:"󰠏"}.mdi-battery-charging-wireless-90:before{content:"󰠐"}.mdi-battery-charging-wireless-alert:before{content:"󰠑"}.mdi-battery-charging-wireless-outline:before{content:"󰠒"}.mdi-battery-check:before{content:"󱟢"}.mdi-battery-check-outline:before{content:"󱟣"}.mdi-battery-clock:before{content:"󱧥"}.mdi-battery-clock-outline:before{content:"󱧦"}.mdi-battery-heart:before{content:"󱈏"}.mdi-battery-heart-outline:before{content:"󱈐"}.mdi-battery-heart-variant:before{content:"󱈑"}.mdi-battery-high:before{content:"󱊣"}.mdi-battery-lock:before{content:"󱞜"}.mdi-battery-lock-open:before{content:"󱞝"}.mdi-battery-low:before{content:"󱊡"}.mdi-battery-medium:before{content:"󱊢"}.mdi-battery-minus:before{content:"󱟤"}.mdi-battery-minus-outline:before{content:"󱟥"}.mdi-battery-minus-variant:before{content:"󰂌"}.mdi-battery-negative:before{content:"󰂍"}.mdi-battery-off:before{content:"󱉝"}.mdi-battery-off-outline:before{content:"󱉞"}.mdi-battery-outline:before{content:"󰂎"}.mdi-battery-plus:before{content:"󱟦"}.mdi-battery-plus-outline:before{content:"󱟧"}.mdi-battery-plus-variant:before{content:"󰂏"}.mdi-battery-positive:before{content:"󰂐"}.mdi-battery-remove:before{content:"󱟨"}.mdi-battery-remove-outline:before{content:"󱟩"}.mdi-battery-sync:before{content:"󱠴"}.mdi-battery-sync-outline:before{content:"󱠵"}.mdi-battery-unknown:before{content:"󰂑"}.mdi-battery-unknown-bluetooth:before{content:"󰥊"}.mdi-beach:before{content:"󰂒"}.mdi-beaker:before{content:"󰳪"}.mdi-beaker-alert:before{content:"󱈩"}.mdi-beaker-alert-outline:before{content:"󱈪"}.mdi-beaker-check:before{content:"󱈫"}.mdi-beaker-check-outline:before{content:"󱈬"}.mdi-beaker-minus:before{content:"󱈭"}.mdi-beaker-minus-outline:before{content:"󱈮"}.mdi-beaker-outline:before{content:"󰚐"}.mdi-beaker-plus:before{content:"󱈯"}.mdi-beaker-plus-outline:before{content:"󱈰"}.mdi-beaker-question:before{content:"󱈱"}.mdi-beaker-question-outline:before{content:"󱈲"}.mdi-beaker-remove:before{content:"󱈳"}.mdi-beaker-remove-outline:before{content:"󱈴"}.mdi-bed:before{content:"󰋣"}.mdi-bed-clock:before{content:"󱮔"}.mdi-bed-double:before{content:"󰿔"}.mdi-bed-double-outline:before{content:"󰿓"}.mdi-bed-empty:before{content:"󰢠"}.mdi-bed-king:before{content:"󰿒"}.mdi-bed-king-outline:before{content:"󰿑"}.mdi-bed-outline:before{content:"󰂙"}.mdi-bed-queen:before{content:"󰿐"}.mdi-bed-queen-outline:before{content:"󰿛"}.mdi-bed-single:before{content:"󱁭"}.mdi-bed-single-outline:before{content:"󱁮"}.mdi-bee:before{content:"󰾡"}.mdi-bee-flower:before{content:"󰾢"}.mdi-beehive-off-outline:before{content:"󱏭"}.mdi-beehive-outline:before{content:"󱃎"}.mdi-beekeeper:before{content:"󱓢"}.mdi-beer:before{content:"󰂘"}.mdi-beer-outline:before{content:"󱌌"}.mdi-bell:before{content:"󰂚"}.mdi-bell-alert:before{content:"󰵙"}.mdi-bell-alert-outline:before{content:"󰺁"}.mdi-bell-badge:before{content:"󱅫"}.mdi-bell-badge-outline:before{content:"󰅸"}.mdi-bell-cancel:before{content:"󱏧"}.mdi-bell-cancel-outline:before{content:"󱏨"}.mdi-bell-check:before{content:"󱇥"}.mdi-bell-check-outline:before{content:"󱇦"}.mdi-bell-circle:before{content:"󰵚"}.mdi-bell-circle-outline:before{content:"󰵛"}.mdi-bell-cog:before{content:"󱨩"}.mdi-bell-cog-outline:before{content:"󱨪"}.mdi-bell-minus:before{content:"󱏩"}.mdi-bell-minus-outline:before{content:"󱏪"}.mdi-bell-off:before{content:"󰂛"}.mdi-bell-off-outline:before{content:"󰪑"}.mdi-bell-outline:before{content:"󰂜"}.mdi-bell-plus:before{content:"󰂝"}.mdi-bell-plus-outline:before{content:"󰪒"}.mdi-bell-remove:before{content:"󱏫"}.mdi-bell-remove-outline:before{content:"󱏬"}.mdi-bell-ring:before{content:"󰂞"}.mdi-bell-ring-outline:before{content:"󰂟"}.mdi-bell-sleep:before{content:"󰂠"}.mdi-bell-sleep-outline:before{content:"󰪓"}.mdi-bench:before{content:"󱰡"}.mdi-bench-back:before{content:"󱰢"}.mdi-beta:before{content:"󰂡"}.mdi-betamax:before{content:"󰧋"}.mdi-biathlon:before{content:"󰸔"}.mdi-bicycle:before{content:"󱂜"}.mdi-bicycle-basket:before{content:"󱈵"}.mdi-bicycle-cargo:before{content:"󱢜"}.mdi-bicycle-electric:before{content:"󱖴"}.mdi-bicycle-penny-farthing:before{content:"󱗩"}.mdi-bike:before{content:"󰂣"}.mdi-bike-fast:before{content:"󱄟"}.mdi-bike-pedal:before{content:"󱰣"}.mdi-bike-pedal-clipless:before{content:"󱰤"}.mdi-bike-pedal-mountain:before{content:"󱰥"}.mdi-billboard:before{content:"󱀐"}.mdi-billiards:before{content:"󰭡"}.mdi-billiards-rack:before{content:"󰭢"}.mdi-binoculars:before{content:"󰂥"}.mdi-bio:before{content:"󰂦"}.mdi-biohazard:before{content:"󰂧"}.mdi-bird:before{content:"󱗆"}.mdi-bitbucket:before{content:"󰂨"}.mdi-bitcoin:before{content:"󰠓"}.mdi-black-mesa:before{content:"󰂩"}.mdi-blender:before{content:"󰳫"}.mdi-blender-outline:before{content:"󱠚"}.mdi-blender-software:before{content:"󰂫"}.mdi-blinds:before{content:"󰂬"}.mdi-blinds-horizontal:before{content:"󱨫"}.mdi-blinds-horizontal-closed:before{content:"󱨬"}.mdi-blinds-open:before{content:"󱀑"}.mdi-blinds-vertical:before{content:"󱨭"}.mdi-blinds-vertical-closed:before{content:"󱨮"}.mdi-block-helper:before{content:"󰂭"}.mdi-blood-bag:before{content:"󰳬"}.mdi-bluetooth:before{content:"󰂯"}.mdi-bluetooth-audio:before{content:"󰂰"}.mdi-bluetooth-connect:before{content:"󰂱"}.mdi-bluetooth-off:before{content:"󰂲"}.mdi-bluetooth-settings:before{content:"󰂳"}.mdi-bluetooth-transfer:before{content:"󰂴"}.mdi-blur:before{content:"󰂵"}.mdi-blur-linear:before{content:"󰂶"}.mdi-blur-off:before{content:"󰂷"}.mdi-blur-radial:before{content:"󰂸"}.mdi-bolt:before{content:"󰶳"}.mdi-bomb:before{content:"󰚑"}.mdi-bomb-off:before{content:"󰛅"}.mdi-bone:before{content:"󰂹"}.mdi-bone-off:before{content:"󱧠"}.mdi-book:before{content:"󰂺"}.mdi-book-account:before{content:"󱎭"}.mdi-book-account-outline:before{content:"󱎮"}.mdi-book-alert:before{content:"󱙼"}.mdi-book-alert-outline:before{content:"󱙽"}.mdi-book-alphabet:before{content:"󰘝"}.mdi-book-arrow-down:before{content:"󱙾"}.mdi-book-arrow-down-outline:before{content:"󱙿"}.mdi-book-arrow-left:before{content:"󱚀"}.mdi-book-arrow-left-outline:before{content:"󱚁"}.mdi-book-arrow-right:before{content:"󱚂"}.mdi-book-arrow-right-outline:before{content:"󱚃"}.mdi-book-arrow-up:before{content:"󱚄"}.mdi-book-arrow-up-outline:before{content:"󱚅"}.mdi-book-cancel:before{content:"󱚆"}.mdi-book-cancel-outline:before{content:"󱚇"}.mdi-book-check:before{content:"󱓳"}.mdi-book-check-outline:before{content:"󱓴"}.mdi-book-clock:before{content:"󱚈"}.mdi-book-clock-outline:before{content:"󱚉"}.mdi-book-cog:before{content:"󱚊"}.mdi-book-cog-outline:before{content:"󱚋"}.mdi-book-cross:before{content:"󰂢"}.mdi-book-edit:before{content:"󱚌"}.mdi-book-edit-outline:before{content:"󱚍"}.mdi-book-education:before{content:"󱛉"}.mdi-book-education-outline:before{content:"󱛊"}.mdi-book-heart:before{content:"󱨝"}.mdi-book-heart-outline:before{content:"󱨞"}.mdi-book-information-variant:before{content:"󱁯"}.mdi-book-lock:before{content:"󰞚"}.mdi-book-lock-open:before{content:"󰞛"}.mdi-book-lock-open-outline:before{content:"󱚎"}.mdi-book-lock-outline:before{content:"󱚏"}.mdi-book-marker:before{content:"󱚐"}.mdi-book-marker-outline:before{content:"󱚑"}.mdi-book-minus:before{content:"󰗙"}.mdi-book-minus-multiple:before{content:"󰪔"}.mdi-book-minus-multiple-outline:before{content:"󰤋"}.mdi-book-minus-outline:before{content:"󱚒"}.mdi-book-multiple:before{content:"󰂻"}.mdi-book-multiple-outline:before{content:"󰐶"}.mdi-book-music:before{content:"󰁧"}.mdi-book-music-outline:before{content:"󱚓"}.mdi-book-off:before{content:"󱚔"}.mdi-book-off-outline:before{content:"󱚕"}.mdi-book-open:before{content:"󰂽"}.mdi-book-open-blank-variant:before{content:"󰂾"}.mdi-book-open-outline:before{content:"󰭣"}.mdi-book-open-page-variant:before{content:"󰗚"}.mdi-book-open-page-variant-outline:before{content:"󱗖"}.mdi-book-open-variant:before{content:"󱓷"}.mdi-book-outline:before{content:"󰭤"}.mdi-book-play:before{content:"󰺂"}.mdi-book-play-outline:before{content:"󰺃"}.mdi-book-plus:before{content:"󰗛"}.mdi-book-plus-multiple:before{content:"󰪕"}.mdi-book-plus-multiple-outline:before{content:"󰫞"}.mdi-book-plus-outline:before{content:"󱚖"}.mdi-book-refresh:before{content:"󱚗"}.mdi-book-refresh-outline:before{content:"󱚘"}.mdi-book-remove:before{content:"󰪗"}.mdi-book-remove-multiple:before{content:"󰪖"}.mdi-book-remove-multiple-outline:before{content:"󰓊"}.mdi-book-remove-outline:before{content:"󱚙"}.mdi-book-search:before{content:"󰺄"}.mdi-book-search-outline:before{content:"󰺅"}.mdi-book-settings:before{content:"󱚚"}.mdi-book-settings-outline:before{content:"󱚛"}.mdi-book-sync:before{content:"󱚜"}.mdi-book-sync-outline:before{content:"󱛈"}.mdi-book-variant:before{content:"󰂿"}.mdi-bookmark:before{content:"󰃀"}.mdi-bookmark-box:before{content:"󱭵"}.mdi-bookmark-box-multiple:before{content:"󱥬"}.mdi-bookmark-box-multiple-outline:before{content:"󱥭"}.mdi-bookmark-box-outline:before{content:"󱭶"}.mdi-bookmark-check:before{content:"󰃁"}.mdi-bookmark-check-outline:before{content:"󱍻"}.mdi-bookmark-minus:before{content:"󰧌"}.mdi-bookmark-minus-outline:before{content:"󰧍"}.mdi-bookmark-multiple:before{content:"󰸕"}.mdi-bookmark-multiple-outline:before{content:"󰸖"}.mdi-bookmark-music:before{content:"󰃂"}.mdi-bookmark-music-outline:before{content:"󱍹"}.mdi-bookmark-off:before{content:"󰧎"}.mdi-bookmark-off-outline:before{content:"󰧏"}.mdi-bookmark-outline:before{content:"󰃃"}.mdi-bookmark-plus:before{content:"󰃅"}.mdi-bookmark-plus-outline:before{content:"󰃄"}.mdi-bookmark-remove:before{content:"󰃆"}.mdi-bookmark-remove-outline:before{content:"󱍺"}.mdi-bookshelf:before{content:"󱉟"}.mdi-boom-gate:before{content:"󰺆"}.mdi-boom-gate-alert:before{content:"󰺇"}.mdi-boom-gate-alert-outline:before{content:"󰺈"}.mdi-boom-gate-arrow-down:before{content:"󰺉"}.mdi-boom-gate-arrow-down-outline:before{content:"󰺊"}.mdi-boom-gate-arrow-up:before{content:"󰺌"}.mdi-boom-gate-arrow-up-outline:before{content:"󰺍"}.mdi-boom-gate-outline:before{content:"󰺋"}.mdi-boom-gate-up:before{content:"󱟹"}.mdi-boom-gate-up-outline:before{content:"󱟺"}.mdi-boombox:before{content:"󰗜"}.mdi-boomerang:before{content:"󱃏"}.mdi-bootstrap:before{content:"󰛆"}.mdi-border-all:before{content:"󰃇"}.mdi-border-all-variant:before{content:"󰢡"}.mdi-border-bottom:before{content:"󰃈"}.mdi-border-bottom-variant:before{content:"󰢢"}.mdi-border-color:before{content:"󰃉"}.mdi-border-horizontal:before{content:"󰃊"}.mdi-border-inside:before{content:"󰃋"}.mdi-border-left:before{content:"󰃌"}.mdi-border-left-variant:before{content:"󰢣"}.mdi-border-none:before{content:"󰃍"}.mdi-border-none-variant:before{content:"󰢤"}.mdi-border-outside:before{content:"󰃎"}.mdi-border-radius:before{content:"󱫴"}.mdi-border-right:before{content:"󰃏"}.mdi-border-right-variant:before{content:"󰢥"}.mdi-border-style:before{content:"󰃐"}.mdi-border-top:before{content:"󰃑"}.mdi-border-top-variant:before{content:"󰢦"}.mdi-border-vertical:before{content:"󰃒"}.mdi-bottle-soda:before{content:"󱁰"}.mdi-bottle-soda-classic:before{content:"󱁱"}.mdi-bottle-soda-classic-outline:before{content:"󱍣"}.mdi-bottle-soda-outline:before{content:"󱁲"}.mdi-bottle-tonic:before{content:"󱄮"}.mdi-bottle-tonic-outline:before{content:"󱄯"}.mdi-bottle-tonic-plus:before{content:"󱄰"}.mdi-bottle-tonic-plus-outline:before{content:"󱄱"}.mdi-bottle-tonic-skull:before{content:"󱄲"}.mdi-bottle-tonic-skull-outline:before{content:"󱄳"}.mdi-bottle-wine:before{content:"󰡔"}.mdi-bottle-wine-outline:before{content:"󱌐"}.mdi-bow-arrow:before{content:"󱡁"}.mdi-bow-tie:before{content:"󰙸"}.mdi-bowl:before{content:"󰊎"}.mdi-bowl-mix:before{content:"󰘗"}.mdi-bowl-mix-outline:before{content:"󰋤"}.mdi-bowl-outline:before{content:"󰊩"}.mdi-bowling:before{content:"󰃓"}.mdi-box:before{content:"󰃔"}.mdi-box-cutter:before{content:"󰃕"}.mdi-box-cutter-off:before{content:"󰭊"}.mdi-box-shadow:before{content:"󰘷"}.mdi-boxing-glove:before{content:"󰭥"}.mdi-braille:before{content:"󰧐"}.mdi-brain:before{content:"󰧑"}.mdi-bread-slice:before{content:"󰳮"}.mdi-bread-slice-outline:before{content:"󰳯"}.mdi-bridge:before{content:"󰘘"}.mdi-briefcase:before{content:"󰃖"}.mdi-briefcase-account:before{content:"󰳰"}.mdi-briefcase-account-outline:before{content:"󰳱"}.mdi-briefcase-arrow-left-right:before{content:"󱪍"}.mdi-briefcase-arrow-left-right-outline:before{content:"󱪎"}.mdi-briefcase-arrow-up-down:before{content:"󱪏"}.mdi-briefcase-arrow-up-down-outline:before{content:"󱪐"}.mdi-briefcase-check:before{content:"󰃗"}.mdi-briefcase-check-outline:before{content:"󱌞"}.mdi-briefcase-clock:before{content:"󱃐"}.mdi-briefcase-clock-outline:before{content:"󱃑"}.mdi-briefcase-download:before{content:"󰃘"}.mdi-briefcase-download-outline:before{content:"󰰽"}.mdi-briefcase-edit:before{content:"󰪘"}.mdi-briefcase-edit-outline:before{content:"󰰾"}.mdi-briefcase-eye:before{content:"󱟙"}.mdi-briefcase-eye-outline:before{content:"󱟚"}.mdi-briefcase-minus:before{content:"󰨪"}.mdi-briefcase-minus-outline:before{content:"󰰿"}.mdi-briefcase-off:before{content:"󱙘"}.mdi-briefcase-off-outline:before{content:"󱙙"}.mdi-briefcase-outline:before{content:"󰠔"}.mdi-briefcase-plus:before{content:"󰨫"}.mdi-briefcase-plus-outline:before{content:"󰱀"}.mdi-briefcase-remove:before{content:"󰨬"}.mdi-briefcase-remove-outline:before{content:"󰱁"}.mdi-briefcase-search:before{content:"󰨭"}.mdi-briefcase-search-outline:before{content:"󰱂"}.mdi-briefcase-upload:before{content:"󰃙"}.mdi-briefcase-upload-outline:before{content:"󰱃"}.mdi-briefcase-variant:before{content:"󱒔"}.mdi-briefcase-variant-off:before{content:"󱙚"}.mdi-briefcase-variant-off-outline:before{content:"󱙛"}.mdi-briefcase-variant-outline:before{content:"󱒕"}.mdi-brightness-1:before{content:"󰃚"}.mdi-brightness-2:before{content:"󰃛"}.mdi-brightness-3:before{content:"󰃜"}.mdi-brightness-4:before{content:"󰃝"}.mdi-brightness-5:before{content:"󰃞"}.mdi-brightness-6:before{content:"󰃟"}.mdi-brightness-7:before{content:"󰃠"}.mdi-brightness-auto:before{content:"󰃡"}.mdi-brightness-percent:before{content:"󰳲"}.mdi-broadcast:before{content:"󱜠"}.mdi-broadcast-off:before{content:"󱜡"}.mdi-broom:before{content:"󰃢"}.mdi-brush:before{content:"󰃣"}.mdi-brush-off:before{content:"󱝱"}.mdi-brush-outline:before{content:"󱨍"}.mdi-brush-variant:before{content:"󱠓"}.mdi-bucket:before{content:"󱐕"}.mdi-bucket-outline:before{content:"󱐖"}.mdi-buffet:before{content:"󰕸"}.mdi-bug:before{content:"󰃤"}.mdi-bug-check:before{content:"󰨮"}.mdi-bug-check-outline:before{content:"󰨯"}.mdi-bug-outline:before{content:"󰨰"}.mdi-bug-pause:before{content:"󱫵"}.mdi-bug-pause-outline:before{content:"󱫶"}.mdi-bug-play:before{content:"󱫷"}.mdi-bug-play-outline:before{content:"󱫸"}.mdi-bug-stop:before{content:"󱫹"}.mdi-bug-stop-outline:before{content:"󱫺"}.mdi-bugle:before{content:"󰶴"}.mdi-bulkhead-light:before{content:"󱨯"}.mdi-bulldozer:before{content:"󰬢"}.mdi-bullet:before{content:"󰳳"}.mdi-bulletin-board:before{content:"󰃥"}.mdi-bullhorn:before{content:"󰃦"}.mdi-bullhorn-outline:before{content:"󰬣"}.mdi-bullhorn-variant:before{content:"󱥮"}.mdi-bullhorn-variant-outline:before{content:"󱥯"}.mdi-bullseye:before{content:"󰗝"}.mdi-bullseye-arrow:before{content:"󰣉"}.mdi-bulma:before{content:"󱋧"}.mdi-bunk-bed:before{content:"󱌂"}.mdi-bunk-bed-outline:before{content:"󰂗"}.mdi-bus:before{content:"󰃧"}.mdi-bus-alert:before{content:"󰪙"}.mdi-bus-articulated-end:before{content:"󰞜"}.mdi-bus-articulated-front:before{content:"󰞝"}.mdi-bus-clock:before{content:"󰣊"}.mdi-bus-double-decker:before{content:"󰞞"}.mdi-bus-electric:before{content:"󱤝"}.mdi-bus-marker:before{content:"󱈒"}.mdi-bus-multiple:before{content:"󰼿"}.mdi-bus-school:before{content:"󰞟"}.mdi-bus-side:before{content:"󰞠"}.mdi-bus-sign:before{content:"󱳁"}.mdi-bus-stop:before{content:"󱀒"}.mdi-bus-stop-covered:before{content:"󱀓"}.mdi-bus-stop-uncovered:before{content:"󱀔"}.mdi-bus-wrench:before{content:"󱳂"}.mdi-butterfly:before{content:"󱖉"}.mdi-butterfly-outline:before{content:"󱖊"}.mdi-button-cursor:before{content:"󱭏"}.mdi-button-pointer:before{content:"󱭐"}.mdi-cabin-a-frame:before{content:"󱢌"}.mdi-cable-data:before{content:"󱎔"}.mdi-cached:before{content:"󰃨"}.mdi-cactus:before{content:"󰶵"}.mdi-cake:before{content:"󰃩"}.mdi-cake-layered:before{content:"󰃪"}.mdi-cake-variant:before{content:"󰃫"}.mdi-cake-variant-outline:before{content:"󱟰"}.mdi-calculator:before{content:"󰃬"}.mdi-calculator-variant:before{content:"󰪚"}.mdi-calculator-variant-outline:before{content:"󱖦"}.mdi-calendar:before{content:"󰃭"}.mdi-calendar-account:before{content:"󰻗"}.mdi-calendar-account-outline:before{content:"󰻘"}.mdi-calendar-alert:before{content:"󰨱"}.mdi-calendar-alert-outline:before{content:"󱭢"}.mdi-calendar-arrow-left:before{content:"󱄴"}.mdi-calendar-arrow-right:before{content:"󱄵"}.mdi-calendar-badge:before{content:"󱮝"}.mdi-calendar-badge-outline:before{content:"󱮞"}.mdi-calendar-blank:before{content:"󰃮"}.mdi-calendar-blank-multiple:before{content:"󱁳"}.mdi-calendar-blank-outline:before{content:"󰭦"}.mdi-calendar-check:before{content:"󰃯"}.mdi-calendar-check-outline:before{content:"󰱄"}.mdi-calendar-clock:before{content:"󰃰"}.mdi-calendar-clock-outline:before{content:"󱛡"}.mdi-calendar-collapse-horizontal:before{content:"󱢝"}.mdi-calendar-collapse-horizontal-outline:before{content:"󱭣"}.mdi-calendar-cursor:before{content:"󱕻"}.mdi-calendar-cursor-outline:before{content:"󱭤"}.mdi-calendar-edit:before{content:"󰢧"}.mdi-calendar-edit-outline:before{content:"󱭥"}.mdi-calendar-end:before{content:"󱙬"}.mdi-calendar-end-outline:before{content:"󱭦"}.mdi-calendar-expand-horizontal:before{content:"󱢞"}.mdi-calendar-expand-horizontal-outline:before{content:"󱭧"}.mdi-calendar-export:before{content:"󰬤"}.mdi-calendar-export-outline:before{content:"󱭨"}.mdi-calendar-filter:before{content:"󱨲"}.mdi-calendar-filter-outline:before{content:"󱨳"}.mdi-calendar-heart:before{content:"󰧒"}.mdi-calendar-heart-outline:before{content:"󱭩"}.mdi-calendar-import:before{content:"󰬥"}.mdi-calendar-import-outline:before{content:"󱭪"}.mdi-calendar-lock:before{content:"󱙁"}.mdi-calendar-lock-open:before{content:"󱭛"}.mdi-calendar-lock-open-outline:before{content:"󱭜"}.mdi-calendar-lock-outline:before{content:"󱙂"}.mdi-calendar-minus:before{content:"󰵜"}.mdi-calendar-minus-outline:before{content:"󱭫"}.mdi-calendar-month:before{content:"󰸗"}.mdi-calendar-month-outline:before{content:"󰸘"}.mdi-calendar-multiple:before{content:"󰃱"}.mdi-calendar-multiple-check:before{content:"󰃲"}.mdi-calendar-multiselect:before{content:"󰨲"}.mdi-calendar-multiselect-outline:before{content:"󱭕"}.mdi-calendar-outline:before{content:"󰭧"}.mdi-calendar-plus:before{content:"󰃳"}.mdi-calendar-plus-outline:before{content:"󱭬"}.mdi-calendar-question:before{content:"󰚒"}.mdi-calendar-question-outline:before{content:"󱭭"}.mdi-calendar-range:before{content:"󰙹"}.mdi-calendar-range-outline:before{content:"󰭨"}.mdi-calendar-refresh:before{content:"󰇡"}.mdi-calendar-refresh-outline:before{content:"󰈃"}.mdi-calendar-remove:before{content:"󰃴"}.mdi-calendar-remove-outline:before{content:"󰱅"}.mdi-calendar-search:before{content:"󰥌"}.mdi-calendar-search-outline:before{content:"󱭮"}.mdi-calendar-star:before{content:"󰧓"}.mdi-calendar-star-four-points:before{content:"󱰟"}.mdi-calendar-star-outline:before{content:"󱭓"}.mdi-calendar-start:before{content:"󱙭"}.mdi-calendar-start-outline:before{content:"󱭯"}.mdi-calendar-sync:before{content:"󰺎"}.mdi-calendar-sync-outline:before{content:"󰺏"}.mdi-calendar-text:before{content:"󰃵"}.mdi-calendar-text-outline:before{content:"󰱆"}.mdi-calendar-today:before{content:"󰃶"}.mdi-calendar-today-outline:before{content:"󱨰"}.mdi-calendar-week:before{content:"󰨳"}.mdi-calendar-week-begin:before{content:"󰨴"}.mdi-calendar-week-begin-outline:before{content:"󱨱"}.mdi-calendar-week-outline:before{content:"󱨴"}.mdi-calendar-weekend:before{content:"󰻙"}.mdi-calendar-weekend-outline:before{content:"󰻚"}.mdi-call-made:before{content:"󰃷"}.mdi-call-merge:before{content:"󰃸"}.mdi-call-missed:before{content:"󰃹"}.mdi-call-received:before{content:"󰃺"}.mdi-call-split:before{content:"󰃻"}.mdi-camcorder:before{content:"󰃼"}.mdi-camcorder-off:before{content:"󰃿"}.mdi-camera:before{content:"󰄀"}.mdi-camera-account:before{content:"󰣋"}.mdi-camera-burst:before{content:"󰚓"}.mdi-camera-control:before{content:"󰭩"}.mdi-camera-document:before{content:"󱡱"}.mdi-camera-document-off:before{content:"󱡲"}.mdi-camera-enhance:before{content:"󰄁"}.mdi-camera-enhance-outline:before{content:"󰭪"}.mdi-camera-flip:before{content:"󱗙"}.mdi-camera-flip-outline:before{content:"󱗚"}.mdi-camera-front:before{content:"󰄂"}.mdi-camera-front-variant:before{content:"󰄃"}.mdi-camera-gopro:before{content:"󰞡"}.mdi-camera-image:before{content:"󰣌"}.mdi-camera-iris:before{content:"󰄄"}.mdi-camera-lock:before{content:"󱨔"}.mdi-camera-lock-open:before{content:"󱰍"}.mdi-camera-lock-open-outline:before{content:"󱰎"}.mdi-camera-lock-outline:before{content:"󱨕"}.mdi-camera-marker:before{content:"󱦧"}.mdi-camera-marker-outline:before{content:"󱦨"}.mdi-camera-metering-center:before{content:"󰞢"}.mdi-camera-metering-matrix:before{content:"󰞣"}.mdi-camera-metering-partial:before{content:"󰞤"}.mdi-camera-metering-spot:before{content:"󰞥"}.mdi-camera-off:before{content:"󰗟"}.mdi-camera-off-outline:before{content:"󱦿"}.mdi-camera-outline:before{content:"󰵝"}.mdi-camera-party-mode:before{content:"󰄅"}.mdi-camera-plus:before{content:"󰻛"}.mdi-camera-plus-outline:before{content:"󰻜"}.mdi-camera-rear:before{content:"󰄆"}.mdi-camera-rear-variant:before{content:"󰄇"}.mdi-camera-retake:before{content:"󰸙"}.mdi-camera-retake-outline:before{content:"󰸚"}.mdi-camera-switch:before{content:"󰄈"}.mdi-camera-switch-outline:before{content:"󰡊"}.mdi-camera-timer:before{content:"󰄉"}.mdi-camera-wireless:before{content:"󰶶"}.mdi-camera-wireless-outline:before{content:"󰶷"}.mdi-campfire:before{content:"󰻝"}.mdi-cancel:before{content:"󰜺"}.mdi-candelabra:before{content:"󱟒"}.mdi-candelabra-fire:before{content:"󱟓"}.mdi-candle:before{content:"󰗢"}.mdi-candy:before{content:"󱥰"}.mdi-candy-off:before{content:"󱥱"}.mdi-candy-off-outline:before{content:"󱥲"}.mdi-candy-outline:before{content:"󱥳"}.mdi-candycane:before{content:"󰄊"}.mdi-cannabis:before{content:"󰞦"}.mdi-cannabis-off:before{content:"󱙮"}.mdi-caps-lock:before{content:"󰪛"}.mdi-car:before{content:"󰄋"}.mdi-car-2-plus:before{content:"󱀕"}.mdi-car-3-plus:before{content:"󱀖"}.mdi-car-arrow-left:before{content:"󱎲"}.mdi-car-arrow-right:before{content:"󱎳"}.mdi-car-back:before{content:"󰸛"}.mdi-car-battery:before{content:"󰄌"}.mdi-car-brake-abs:before{content:"󰱇"}.mdi-car-brake-alert:before{content:"󰱈"}.mdi-car-brake-fluid-level:before{content:"󱤉"}.mdi-car-brake-hold:before{content:"󰵞"}.mdi-car-brake-low-pressure:before{content:"󱤊"}.mdi-car-brake-parking:before{content:"󰵟"}.mdi-car-brake-retarder:before{content:"󱀗"}.mdi-car-brake-temperature:before{content:"󱤋"}.mdi-car-brake-worn-linings:before{content:"󱤌"}.mdi-car-child-seat:before{content:"󰾣"}.mdi-car-clock:before{content:"󱥴"}.mdi-car-clutch:before{content:"󱀘"}.mdi-car-cog:before{content:"󱏌"}.mdi-car-connected:before{content:"󰄍"}.mdi-car-convertible:before{content:"󰞧"}.mdi-car-coolant-level:before{content:"󱀙"}.mdi-car-cruise-control:before{content:"󰵠"}.mdi-car-defrost-front:before{content:"󰵡"}.mdi-car-defrost-rear:before{content:"󰵢"}.mdi-car-door:before{content:"󰭫"}.mdi-car-door-lock:before{content:"󱂝"}.mdi-car-door-lock-open:before{content:"󱲁"}.mdi-car-electric:before{content:"󰭬"}.mdi-car-electric-outline:before{content:"󱖵"}.mdi-car-emergency:before{content:"󱘏"}.mdi-car-esp:before{content:"󰱉"}.mdi-car-estate:before{content:"󰞨"}.mdi-car-hatchback:before{content:"󰞩"}.mdi-car-info:before{content:"󱆾"}.mdi-car-key:before{content:"󰭭"}.mdi-car-lifted-pickup:before{content:"󱔭"}.mdi-car-light-alert:before{content:"󱤍"}.mdi-car-light-dimmed:before{content:"󰱊"}.mdi-car-light-fog:before{content:"󰱋"}.mdi-car-light-high:before{content:"󰱌"}.mdi-car-limousine:before{content:"󰣍"}.mdi-car-multiple:before{content:"󰭮"}.mdi-car-off:before{content:"󰸜"}.mdi-car-outline:before{content:"󱓭"}.mdi-car-parking-lights:before{content:"󰵣"}.mdi-car-pickup:before{content:"󰞪"}.mdi-car-search:before{content:"󱮍"}.mdi-car-search-outline:before{content:"󱮎"}.mdi-car-seat:before{content:"󰾤"}.mdi-car-seat-cooler:before{content:"󰾥"}.mdi-car-seat-heater:before{content:"󰾦"}.mdi-car-select:before{content:"󱡹"}.mdi-car-settings:before{content:"󱏍"}.mdi-car-shift-pattern:before{content:"󰽀"}.mdi-car-side:before{content:"󰞫"}.mdi-car-speed-limiter:before{content:"󱤎"}.mdi-car-sports:before{content:"󰞬"}.mdi-car-tire-alert:before{content:"󰱍"}.mdi-car-traction-control:before{content:"󰵤"}.mdi-car-turbocharger:before{content:"󱀚"}.mdi-car-wash:before{content:"󰄎"}.mdi-car-windshield:before{content:"󱀛"}.mdi-car-windshield-outline:before{content:"󱀜"}.mdi-car-wireless:before{content:"󱡸"}.mdi-car-wrench:before{content:"󱠔"}.mdi-carabiner:before{content:"󱓀"}.mdi-caravan:before{content:"󰞭"}.mdi-card:before{content:"󰭯"}.mdi-card-account-details:before{content:"󰗒"}.mdi-card-account-details-outline:before{content:"󰶫"}.mdi-card-account-details-star:before{content:"󰊣"}.mdi-card-account-details-star-outline:before{content:"󰛛"}.mdi-card-account-mail:before{content:"󰆎"}.mdi-card-account-mail-outline:before{content:"󰺘"}.mdi-card-account-phone:before{content:"󰺙"}.mdi-card-account-phone-outline:before{content:"󰺚"}.mdi-card-bulleted:before{content:"󰭰"}.mdi-card-bulleted-off:before{content:"󰭱"}.mdi-card-bulleted-off-outline:before{content:"󰭲"}.mdi-card-bulleted-outline:before{content:"󰭳"}.mdi-card-bulleted-settings:before{content:"󰭴"}.mdi-card-bulleted-settings-outline:before{content:"󰭵"}.mdi-card-minus:before{content:"󱘀"}.mdi-card-minus-outline:before{content:"󱘁"}.mdi-card-multiple:before{content:"󱟱"}.mdi-card-multiple-outline:before{content:"󱟲"}.mdi-card-off:before{content:"󱘂"}.mdi-card-off-outline:before{content:"󱘃"}.mdi-card-outline:before{content:"󰭶"}.mdi-card-plus:before{content:"󱇿"}.mdi-card-plus-outline:before{content:"󱈀"}.mdi-card-remove:before{content:"󱘄"}.mdi-card-remove-outline:before{content:"󱘅"}.mdi-card-search:before{content:"󱁴"}.mdi-card-search-outline:before{content:"󱁵"}.mdi-card-text:before{content:"󰭷"}.mdi-card-text-outline:before{content:"󰭸"}.mdi-cards:before{content:"󰘸"}.mdi-cards-club:before{content:"󰣎"}.mdi-cards-club-outline:before{content:"󱢟"}.mdi-cards-diamond:before{content:"󰣏"}.mdi-cards-diamond-outline:before{content:"󱀝"}.mdi-cards-heart:before{content:"󰣐"}.mdi-cards-heart-outline:before{content:"󱢠"}.mdi-cards-outline:before{content:"󰘹"}.mdi-cards-playing:before{content:"󱢡"}.mdi-cards-playing-club:before{content:"󱢢"}.mdi-cards-playing-club-multiple:before{content:"󱢣"}.mdi-cards-playing-club-multiple-outline:before{content:"󱢤"}.mdi-cards-playing-club-outline:before{content:"󱢥"}.mdi-cards-playing-diamond:before{content:"󱢦"}.mdi-cards-playing-diamond-multiple:before{content:"󱢧"}.mdi-cards-playing-diamond-multiple-outline:before{content:"󱢨"}.mdi-cards-playing-diamond-outline:before{content:"󱢩"}.mdi-cards-playing-heart:before{content:"󱢪"}.mdi-cards-playing-heart-multiple:before{content:"󱢫"}.mdi-cards-playing-heart-multiple-outline:before{content:"󱢬"}.mdi-cards-playing-heart-outline:before{content:"󱢭"}.mdi-cards-playing-outline:before{content:"󰘺"}.mdi-cards-playing-spade:before{content:"󱢮"}.mdi-cards-playing-spade-multiple:before{content:"󱢯"}.mdi-cards-playing-spade-multiple-outline:before{content:"󱢰"}.mdi-cards-playing-spade-outline:before{content:"󱢱"}.mdi-cards-spade:before{content:"󰣑"}.mdi-cards-spade-outline:before{content:"󱢲"}.mdi-cards-variant:before{content:"󰛇"}.mdi-carrot:before{content:"󰄏"}.mdi-cart:before{content:"󰄐"}.mdi-cart-arrow-down:before{content:"󰵦"}.mdi-cart-arrow-right:before{content:"󰱎"}.mdi-cart-arrow-up:before{content:"󰵧"}.mdi-cart-check:before{content:"󱗪"}.mdi-cart-heart:before{content:"󱣠"}.mdi-cart-minus:before{content:"󰵨"}.mdi-cart-off:before{content:"󰙫"}.mdi-cart-outline:before{content:"󰄑"}.mdi-cart-percent:before{content:"󱮮"}.mdi-cart-plus:before{content:"󰄒"}.mdi-cart-remove:before{content:"󰵩"}.mdi-cart-variant:before{content:"󱗫"}.mdi-case-sensitive-alt:before{content:"󰄓"}.mdi-cash:before{content:"󰄔"}.mdi-cash-100:before{content:"󰄕"}.mdi-cash-check:before{content:"󱓮"}.mdi-cash-clock:before{content:"󱪑"}.mdi-cash-edit:before{content:"󱲫"}.mdi-cash-fast:before{content:"󱡜"}.mdi-cash-lock:before{content:"󱓪"}.mdi-cash-lock-open:before{content:"󱓫"}.mdi-cash-marker:before{content:"󰶸"}.mdi-cash-minus:before{content:"󱉠"}.mdi-cash-multiple:before{content:"󰄖"}.mdi-cash-off:before{content:"󱱹"}.mdi-cash-plus:before{content:"󱉡"}.mdi-cash-refund:before{content:"󰪜"}.mdi-cash-register:before{content:"󰳴"}.mdi-cash-remove:before{content:"󱉢"}.mdi-cash-sync:before{content:"󱪒"}.mdi-cassette:before{content:"󰧔"}.mdi-cast:before{content:"󰄘"}.mdi-cast-audio:before{content:"󱀞"}.mdi-cast-audio-variant:before{content:"󱝉"}.mdi-cast-connected:before{content:"󰄙"}.mdi-cast-education:before{content:"󰸝"}.mdi-cast-off:before{content:"󰞊"}.mdi-cast-variant:before{content:"󰀟"}.mdi-castle:before{content:"󰄚"}.mdi-cat:before{content:"󰄛"}.mdi-cctv:before{content:"󰞮"}.mdi-cctv-off:before{content:"󱡟"}.mdi-ceiling-fan:before{content:"󱞗"}.mdi-ceiling-fan-light:before{content:"󱞘"}.mdi-ceiling-light:before{content:"󰝩"}.mdi-ceiling-light-multiple:before{content:"󱣝"}.mdi-ceiling-light-multiple-outline:before{content:"󱣞"}.mdi-ceiling-light-outline:before{content:"󱟇"}.mdi-cellphone:before{content:"󰄜"}.mdi-cellphone-arrow-down:before{content:"󰧕"}.mdi-cellphone-arrow-down-variant:before{content:"󱧅"}.mdi-cellphone-basic:before{content:"󰄞"}.mdi-cellphone-charging:before{content:"󱎗"}.mdi-cellphone-check:before{content:"󱟽"}.mdi-cellphone-cog:before{content:"󰥑"}.mdi-cellphone-dock:before{content:"󰄟"}.mdi-cellphone-information:before{content:"󰽁"}.mdi-cellphone-key:before{content:"󰥎"}.mdi-cellphone-link:before{content:"󰄡"}.mdi-cellphone-link-off:before{content:"󰄢"}.mdi-cellphone-lock:before{content:"󰥏"}.mdi-cellphone-marker:before{content:"󱠺"}.mdi-cellphone-message:before{content:"󰣓"}.mdi-cellphone-message-off:before{content:"󱃒"}.mdi-cellphone-nfc:before{content:"󰺐"}.mdi-cellphone-nfc-off:before{content:"󱋘"}.mdi-cellphone-off:before{content:"󰥐"}.mdi-cellphone-play:before{content:"󱀟"}.mdi-cellphone-remove:before{content:"󰥍"}.mdi-cellphone-screenshot:before{content:"󰨵"}.mdi-cellphone-settings:before{content:"󰄣"}.mdi-cellphone-sound:before{content:"󰥒"}.mdi-cellphone-text:before{content:"󰣒"}.mdi-cellphone-wireless:before{content:"󰠕"}.mdi-centos:before{content:"󱄚"}.mdi-certificate:before{content:"󰄤"}.mdi-certificate-outline:before{content:"󱆈"}.mdi-chair-rolling:before{content:"󰽈"}.mdi-chair-school:before{content:"󰄥"}.mdi-chandelier:before{content:"󱞓"}.mdi-charity:before{content:"󰱏"}.mdi-charity-search:before{content:"󱲂"}.mdi-chart-arc:before{content:"󰄦"}.mdi-chart-areaspline:before{content:"󰄧"}.mdi-chart-areaspline-variant:before{content:"󰺑"}.mdi-chart-bar:before{content:"󰄨"}.mdi-chart-bar-stacked:before{content:"󰝪"}.mdi-chart-bell-curve:before{content:"󰱐"}.mdi-chart-bell-curve-cumulative:before{content:"󰾧"}.mdi-chart-box:before{content:"󱕍"}.mdi-chart-box-outline:before{content:"󱕎"}.mdi-chart-box-plus-outline:before{content:"󱕏"}.mdi-chart-bubble:before{content:"󰗣"}.mdi-chart-donut:before{content:"󰞯"}.mdi-chart-donut-variant:before{content:"󰞰"}.mdi-chart-gantt:before{content:"󰙬"}.mdi-chart-histogram:before{content:"󰄩"}.mdi-chart-line:before{content:"󰄪"}.mdi-chart-line-stacked:before{content:"󰝫"}.mdi-chart-line-variant:before{content:"󰞱"}.mdi-chart-multiline:before{content:"󰣔"}.mdi-chart-multiple:before{content:"󱈓"}.mdi-chart-pie:before{content:"󰄫"}.mdi-chart-pie-outline:before{content:"󱯟"}.mdi-chart-ppf:before{content:"󱎀"}.mdi-chart-sankey:before{content:"󱇟"}.mdi-chart-sankey-variant:before{content:"󱇠"}.mdi-chart-scatter-plot:before{content:"󰺒"}.mdi-chart-scatter-plot-hexbin:before{content:"󰙭"}.mdi-chart-timeline:before{content:"󰙮"}.mdi-chart-timeline-variant:before{content:"󰺓"}.mdi-chart-timeline-variant-shimmer:before{content:"󱖶"}.mdi-chart-tree:before{content:"󰺔"}.mdi-chart-waterfall:before{content:"󱤘"}.mdi-chat:before{content:"󰭹"}.mdi-chat-alert:before{content:"󰭺"}.mdi-chat-alert-outline:before{content:"󱋉"}.mdi-chat-minus:before{content:"󱐐"}.mdi-chat-minus-outline:before{content:"󱐓"}.mdi-chat-outline:before{content:"󰻞"}.mdi-chat-plus:before{content:"󱐏"}.mdi-chat-plus-outline:before{content:"󱐒"}.mdi-chat-processing:before{content:"󰭻"}.mdi-chat-processing-outline:before{content:"󱋊"}.mdi-chat-question:before{content:"󱜸"}.mdi-chat-question-outline:before{content:"󱜹"}.mdi-chat-remove:before{content:"󱐑"}.mdi-chat-remove-outline:before{content:"󱐔"}.mdi-chat-sleep:before{content:"󱋑"}.mdi-chat-sleep-outline:before{content:"󱋒"}.mdi-check:before{content:"󰄬"}.mdi-check-all:before{content:"󰄭"}.mdi-check-bold:before{content:"󰸞"}.mdi-check-circle:before{content:"󰗠"}.mdi-check-circle-outline:before{content:"󰗡"}.mdi-check-decagram:before{content:"󰞑"}.mdi-check-decagram-outline:before{content:"󱝀"}.mdi-check-network:before{content:"󰱓"}.mdi-check-network-outline:before{content:"󰱔"}.mdi-check-outline:before{content:"󰡕"}.mdi-check-underline:before{content:"󰸟"}.mdi-check-underline-circle:before{content:"󰸠"}.mdi-check-underline-circle-outline:before{content:"󰸡"}.mdi-checkbook:before{content:"󰪝"}.mdi-checkbook-arrow-left:before{content:"󱰝"}.mdi-checkbook-arrow-right:before{content:"󱰞"}.mdi-checkbox-blank:before{content:"󰄮"}.mdi-checkbox-blank-badge:before{content:"󱅶"}.mdi-checkbox-blank-badge-outline:before{content:"󰄗"}.mdi-checkbox-blank-circle:before{content:"󰄯"}.mdi-checkbox-blank-circle-outline:before{content:"󰄰"}.mdi-checkbox-blank-off:before{content:"󱋬"}.mdi-checkbox-blank-off-outline:before{content:"󱋭"}.mdi-checkbox-blank-outline:before{content:"󰄱"}.mdi-checkbox-intermediate:before{content:"󰡖"}.mdi-checkbox-intermediate-variant:before{content:"󱭔"}.mdi-checkbox-marked:before{content:"󰄲"}.mdi-checkbox-marked-circle:before{content:"󰄳"}.mdi-checkbox-marked-circle-auto-outline:before{content:"󱰦"}.mdi-checkbox-marked-circle-minus-outline:before{content:"󱰧"}.mdi-checkbox-marked-circle-outline:before{content:"󰄴"}.mdi-checkbox-marked-circle-plus-outline:before{content:"󱤧"}.mdi-checkbox-marked-outline:before{content:"󰄵"}.mdi-checkbox-multiple-blank:before{content:"󰄶"}.mdi-checkbox-multiple-blank-circle:before{content:"󰘻"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"󰘼"}.mdi-checkbox-multiple-blank-outline:before{content:"󰄷"}.mdi-checkbox-multiple-marked:before{content:"󰄸"}.mdi-checkbox-multiple-marked-circle:before{content:"󰘽"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"󰘾"}.mdi-checkbox-multiple-marked-outline:before{content:"󰄹"}.mdi-checkbox-multiple-outline:before{content:"󰱑"}.mdi-checkbox-outline:before{content:"󰱒"}.mdi-checkerboard:before{content:"󰄺"}.mdi-checkerboard-minus:before{content:"󱈂"}.mdi-checkerboard-plus:before{content:"󱈁"}.mdi-checkerboard-remove:before{content:"󱈃"}.mdi-cheese:before{content:"󱊹"}.mdi-cheese-off:before{content:"󱏮"}.mdi-chef-hat:before{content:"󰭼"}.mdi-chemical-weapon:before{content:"󰄻"}.mdi-chess-bishop:before{content:"󰡜"}.mdi-chess-king:before{content:"󰡗"}.mdi-chess-knight:before{content:"󰡘"}.mdi-chess-pawn:before{content:"󰡙"}.mdi-chess-queen:before{content:"󰡚"}.mdi-chess-rook:before{content:"󰡛"}.mdi-chevron-double-down:before{content:"󰄼"}.mdi-chevron-double-left:before{content:"󰄽"}.mdi-chevron-double-right:before{content:"󰄾"}.mdi-chevron-double-up:before{content:"󰄿"}.mdi-chevron-down:before{content:"󰅀"}.mdi-chevron-down-box:before{content:"󰧖"}.mdi-chevron-down-box-outline:before{content:"󰧗"}.mdi-chevron-down-circle:before{content:"󰬦"}.mdi-chevron-down-circle-outline:before{content:"󰬧"}.mdi-chevron-left:before{content:"󰅁"}.mdi-chevron-left-box:before{content:"󰧘"}.mdi-chevron-left-box-outline:before{content:"󰧙"}.mdi-chevron-left-circle:before{content:"󰬨"}.mdi-chevron-left-circle-outline:before{content:"󰬩"}.mdi-chevron-right:before{content:"󰅂"}.mdi-chevron-right-box:before{content:"󰧚"}.mdi-chevron-right-box-outline:before{content:"󰧛"}.mdi-chevron-right-circle:before{content:"󰬪"}.mdi-chevron-right-circle-outline:before{content:"󰬫"}.mdi-chevron-triple-down:before{content:"󰶹"}.mdi-chevron-triple-left:before{content:"󰶺"}.mdi-chevron-triple-right:before{content:"󰶻"}.mdi-chevron-triple-up:before{content:"󰶼"}.mdi-chevron-up:before{content:"󰅃"}.mdi-chevron-up-box:before{content:"󰧜"}.mdi-chevron-up-box-outline:before{content:"󰧝"}.mdi-chevron-up-circle:before{content:"󰬬"}.mdi-chevron-up-circle-outline:before{content:"󰬭"}.mdi-chili-alert:before{content:"󱟪"}.mdi-chili-alert-outline:before{content:"󱟫"}.mdi-chili-hot:before{content:"󰞲"}.mdi-chili-hot-outline:before{content:"󱟬"}.mdi-chili-medium:before{content:"󰞳"}.mdi-chili-medium-outline:before{content:"󱟭"}.mdi-chili-mild:before{content:"󰞴"}.mdi-chili-mild-outline:before{content:"󱟮"}.mdi-chili-off:before{content:"󱑧"}.mdi-chili-off-outline:before{content:"󱟯"}.mdi-chip:before{content:"󰘚"}.mdi-church:before{content:"󰅄"}.mdi-church-outline:before{content:"󱬂"}.mdi-cigar:before{content:"󱆉"}.mdi-cigar-off:before{content:"󱐛"}.mdi-circle:before{content:"󰝥"}.mdi-circle-box:before{content:"󱗜"}.mdi-circle-box-outline:before{content:"󱗝"}.mdi-circle-double:before{content:"󰺕"}.mdi-circle-edit-outline:before{content:"󰣕"}.mdi-circle-expand:before{content:"󰺖"}.mdi-circle-half:before{content:"󱎕"}.mdi-circle-half-full:before{content:"󱎖"}.mdi-circle-medium:before{content:"󰧞"}.mdi-circle-multiple:before{content:"󰬸"}.mdi-circle-multiple-outline:before{content:"󰚕"}.mdi-circle-off-outline:before{content:"󱃓"}.mdi-circle-opacity:before{content:"󱡓"}.mdi-circle-outline:before{content:"󰝦"}.mdi-circle-slice-1:before{content:"󰪞"}.mdi-circle-slice-2:before{content:"󰪟"}.mdi-circle-slice-3:before{content:"󰪠"}.mdi-circle-slice-4:before{content:"󰪡"}.mdi-circle-slice-5:before{content:"󰪢"}.mdi-circle-slice-6:before{content:"󰪣"}.mdi-circle-slice-7:before{content:"󰪤"}.mdi-circle-slice-8:before{content:"󰪥"}.mdi-circle-small:before{content:"󰧟"}.mdi-circular-saw:before{content:"󰸢"}.mdi-city:before{content:"󰅆"}.mdi-city-switch:before{content:"󱰨"}.mdi-city-variant:before{content:"󰨶"}.mdi-city-variant-outline:before{content:"󰨷"}.mdi-clipboard:before{content:"󰅇"}.mdi-clipboard-account:before{content:"󰅈"}.mdi-clipboard-account-outline:before{content:"󰱕"}.mdi-clipboard-alert:before{content:"󰅉"}.mdi-clipboard-alert-outline:before{content:"󰳷"}.mdi-clipboard-arrow-down:before{content:"󰅊"}.mdi-clipboard-arrow-down-outline:before{content:"󰱖"}.mdi-clipboard-arrow-left:before{content:"󰅋"}.mdi-clipboard-arrow-left-outline:before{content:"󰳸"}.mdi-clipboard-arrow-right:before{content:"󰳹"}.mdi-clipboard-arrow-right-outline:before{content:"󰳺"}.mdi-clipboard-arrow-up:before{content:"󰱗"}.mdi-clipboard-arrow-up-outline:before{content:"󰱘"}.mdi-clipboard-check:before{content:"󰅎"}.mdi-clipboard-check-multiple:before{content:"󱉣"}.mdi-clipboard-check-multiple-outline:before{content:"󱉤"}.mdi-clipboard-check-outline:before{content:"󰢨"}.mdi-clipboard-clock:before{content:"󱛢"}.mdi-clipboard-clock-outline:before{content:"󱛣"}.mdi-clipboard-edit:before{content:"󱓥"}.mdi-clipboard-edit-outline:before{content:"󱓦"}.mdi-clipboard-file:before{content:"󱉥"}.mdi-clipboard-file-outline:before{content:"󱉦"}.mdi-clipboard-flow:before{content:"󰛈"}.mdi-clipboard-flow-outline:before{content:"󱄗"}.mdi-clipboard-list:before{content:"󱃔"}.mdi-clipboard-list-outline:before{content:"󱃕"}.mdi-clipboard-minus:before{content:"󱘘"}.mdi-clipboard-minus-outline:before{content:"󱘙"}.mdi-clipboard-multiple:before{content:"󱉧"}.mdi-clipboard-multiple-outline:before{content:"󱉨"}.mdi-clipboard-off:before{content:"󱘚"}.mdi-clipboard-off-outline:before{content:"󱘛"}.mdi-clipboard-outline:before{content:"󰅌"}.mdi-clipboard-play:before{content:"󰱙"}.mdi-clipboard-play-multiple:before{content:"󱉩"}.mdi-clipboard-play-multiple-outline:before{content:"󱉪"}.mdi-clipboard-play-outline:before{content:"󰱚"}.mdi-clipboard-plus:before{content:"󰝑"}.mdi-clipboard-plus-outline:before{content:"󱌟"}.mdi-clipboard-pulse:before{content:"󰡝"}.mdi-clipboard-pulse-outline:before{content:"󰡞"}.mdi-clipboard-remove:before{content:"󱘜"}.mdi-clipboard-remove-outline:before{content:"󱘝"}.mdi-clipboard-search:before{content:"󱘞"}.mdi-clipboard-search-outline:before{content:"󱘟"}.mdi-clipboard-text:before{content:"󰅍"}.mdi-clipboard-text-clock:before{content:"󱣹"}.mdi-clipboard-text-clock-outline:before{content:"󱣺"}.mdi-clipboard-text-multiple:before{content:"󱉫"}.mdi-clipboard-text-multiple-outline:before{content:"󱉬"}.mdi-clipboard-text-off:before{content:"󱘠"}.mdi-clipboard-text-off-outline:before{content:"󱘡"}.mdi-clipboard-text-outline:before{content:"󰨸"}.mdi-clipboard-text-play:before{content:"󰱛"}.mdi-clipboard-text-play-outline:before{content:"󰱜"}.mdi-clipboard-text-search:before{content:"󱘢"}.mdi-clipboard-text-search-outline:before{content:"󱘣"}.mdi-clippy:before{content:"󰅏"}.mdi-clock:before{content:"󰥔"}.mdi-clock-alert:before{content:"󰥕"}.mdi-clock-alert-outline:before{content:"󰗎"}.mdi-clock-check:before{content:"󰾨"}.mdi-clock-check-outline:before{content:"󰾩"}.mdi-clock-digital:before{content:"󰺗"}.mdi-clock-edit:before{content:"󱦺"}.mdi-clock-edit-outline:before{content:"󱦻"}.mdi-clock-end:before{content:"󰅑"}.mdi-clock-fast:before{content:"󰅒"}.mdi-clock-in:before{content:"󰅓"}.mdi-clock-minus:before{content:"󱡣"}.mdi-clock-minus-outline:before{content:"󱡤"}.mdi-clock-out:before{content:"󰅔"}.mdi-clock-outline:before{content:"󰅐"}.mdi-clock-plus:before{content:"󱡡"}.mdi-clock-plus-outline:before{content:"󱡢"}.mdi-clock-remove:before{content:"󱡥"}.mdi-clock-remove-outline:before{content:"󱡦"}.mdi-clock-star-four-points:before{content:"󱰩"}.mdi-clock-star-four-points-outline:before{content:"󱰪"}.mdi-clock-start:before{content:"󰅕"}.mdi-clock-time-eight:before{content:"󱑆"}.mdi-clock-time-eight-outline:before{content:"󱑒"}.mdi-clock-time-eleven:before{content:"󱑉"}.mdi-clock-time-eleven-outline:before{content:"󱑕"}.mdi-clock-time-five:before{content:"󱑃"}.mdi-clock-time-five-outline:before{content:"󱑏"}.mdi-clock-time-four:before{content:"󱑂"}.mdi-clock-time-four-outline:before{content:"󱑎"}.mdi-clock-time-nine:before{content:"󱑇"}.mdi-clock-time-nine-outline:before{content:"󱑓"}.mdi-clock-time-one:before{content:"󱐿"}.mdi-clock-time-one-outline:before{content:"󱑋"}.mdi-clock-time-seven:before{content:"󱑅"}.mdi-clock-time-seven-outline:before{content:"󱑑"}.mdi-clock-time-six:before{content:"󱑄"}.mdi-clock-time-six-outline:before{content:"󱑐"}.mdi-clock-time-ten:before{content:"󱑈"}.mdi-clock-time-ten-outline:before{content:"󱑔"}.mdi-clock-time-three:before{content:"󱑁"}.mdi-clock-time-three-outline:before{content:"󱑍"}.mdi-clock-time-twelve:before{content:"󱑊"}.mdi-clock-time-twelve-outline:before{content:"󱑖"}.mdi-clock-time-two:before{content:"󱑀"}.mdi-clock-time-two-outline:before{content:"󱑌"}.mdi-close:before{content:"󰅖"}.mdi-close-box:before{content:"󰅗"}.mdi-close-box-multiple:before{content:"󰱝"}.mdi-close-box-multiple-outline:before{content:"󰱞"}.mdi-close-box-outline:before{content:"󰅘"}.mdi-close-circle:before{content:"󰅙"}.mdi-close-circle-multiple:before{content:"󰘪"}.mdi-close-circle-multiple-outline:before{content:"󰢃"}.mdi-close-circle-outline:before{content:"󰅚"}.mdi-close-network:before{content:"󰅛"}.mdi-close-network-outline:before{content:"󰱟"}.mdi-close-octagon:before{content:"󰅜"}.mdi-close-octagon-outline:before{content:"󰅝"}.mdi-close-outline:before{content:"󰛉"}.mdi-close-thick:before{content:"󱎘"}.mdi-closed-caption:before{content:"󰅞"}.mdi-closed-caption-outline:before{content:"󰶽"}.mdi-cloud:before{content:"󰅟"}.mdi-cloud-alert:before{content:"󰧠"}.mdi-cloud-alert-outline:before{content:"󱯠"}.mdi-cloud-arrow-down:before{content:"󱯡"}.mdi-cloud-arrow-down-outline:before{content:"󱯢"}.mdi-cloud-arrow-left:before{content:"󱯣"}.mdi-cloud-arrow-left-outline:before{content:"󱯤"}.mdi-cloud-arrow-right:before{content:"󱯥"}.mdi-cloud-arrow-right-outline:before{content:"󱯦"}.mdi-cloud-arrow-up:before{content:"󱯧"}.mdi-cloud-arrow-up-outline:before{content:"󱯨"}.mdi-cloud-braces:before{content:"󰞵"}.mdi-cloud-cancel:before{content:"󱯩"}.mdi-cloud-cancel-outline:before{content:"󱯪"}.mdi-cloud-check:before{content:"󱯫"}.mdi-cloud-check-outline:before{content:"󱯬"}.mdi-cloud-check-variant:before{content:"󰅠"}.mdi-cloud-check-variant-outline:before{content:"󱋌"}.mdi-cloud-circle:before{content:"󰅡"}.mdi-cloud-circle-outline:before{content:"󱯭"}.mdi-cloud-clock:before{content:"󱯮"}.mdi-cloud-clock-outline:before{content:"󱯯"}.mdi-cloud-cog:before{content:"󱯰"}.mdi-cloud-cog-outline:before{content:"󱯱"}.mdi-cloud-download:before{content:"󰅢"}.mdi-cloud-download-outline:before{content:"󰭽"}.mdi-cloud-key:before{content:"󱲡"}.mdi-cloud-key-outline:before{content:"󱲢"}.mdi-cloud-lock:before{content:"󱇱"}.mdi-cloud-lock-open:before{content:"󱯲"}.mdi-cloud-lock-open-outline:before{content:"󱯳"}.mdi-cloud-lock-outline:before{content:"󱇲"}.mdi-cloud-minus:before{content:"󱯴"}.mdi-cloud-minus-outline:before{content:"󱯵"}.mdi-cloud-off:before{content:"󱯶"}.mdi-cloud-off-outline:before{content:"󰅤"}.mdi-cloud-outline:before{content:"󰅣"}.mdi-cloud-percent:before{content:"󱨵"}.mdi-cloud-percent-outline:before{content:"󱨶"}.mdi-cloud-plus:before{content:"󱯷"}.mdi-cloud-plus-outline:before{content:"󱯸"}.mdi-cloud-print:before{content:"󰅥"}.mdi-cloud-print-outline:before{content:"󰅦"}.mdi-cloud-question:before{content:"󰨹"}.mdi-cloud-question-outline:before{content:"󱯹"}.mdi-cloud-refresh:before{content:"󱯺"}.mdi-cloud-refresh-outline:before{content:"󱯻"}.mdi-cloud-refresh-variant:before{content:"󰔪"}.mdi-cloud-refresh-variant-outline:before{content:"󱯼"}.mdi-cloud-remove:before{content:"󱯽"}.mdi-cloud-remove-outline:before{content:"󱯾"}.mdi-cloud-search:before{content:"󰥖"}.mdi-cloud-search-outline:before{content:"󰥗"}.mdi-cloud-sync:before{content:"󰘿"}.mdi-cloud-sync-outline:before{content:"󱋖"}.mdi-cloud-tags:before{content:"󰞶"}.mdi-cloud-upload:before{content:"󰅧"}.mdi-cloud-upload-outline:before{content:"󰭾"}.mdi-clouds:before{content:"󱮕"}.mdi-clover:before{content:"󰠖"}.mdi-clover-outline:before{content:"󱱢"}.mdi-coach-lamp:before{content:"󱀠"}.mdi-coach-lamp-variant:before{content:"󱨷"}.mdi-coat-rack:before{content:"󱂞"}.mdi-code-array:before{content:"󰅨"}.mdi-code-block-braces:before{content:"󱲃"}.mdi-code-block-brackets:before{content:"󱲄"}.mdi-code-block-parentheses:before{content:"󱲅"}.mdi-code-block-tags:before{content:"󱲆"}.mdi-code-braces:before{content:"󰅩"}.mdi-code-braces-box:before{content:"󱃖"}.mdi-code-brackets:before{content:"󰅪"}.mdi-code-equal:before{content:"󰅫"}.mdi-code-greater-than:before{content:"󰅬"}.mdi-code-greater-than-or-equal:before{content:"󰅭"}.mdi-code-json:before{content:"󰘦"}.mdi-code-less-than:before{content:"󰅮"}.mdi-code-less-than-or-equal:before{content:"󰅯"}.mdi-code-not-equal:before{content:"󰅰"}.mdi-code-not-equal-variant:before{content:"󰅱"}.mdi-code-parentheses:before{content:"󰅲"}.mdi-code-parentheses-box:before{content:"󱃗"}.mdi-code-string:before{content:"󰅳"}.mdi-code-tags:before{content:"󰅴"}.mdi-code-tags-check:before{content:"󰚔"}.mdi-codepen:before{content:"󰅵"}.mdi-coffee:before{content:"󰅶"}.mdi-coffee-maker:before{content:"󱂟"}.mdi-coffee-maker-check:before{content:"󱤱"}.mdi-coffee-maker-check-outline:before{content:"󱤲"}.mdi-coffee-maker-outline:before{content:"󱠛"}.mdi-coffee-off:before{content:"󰾪"}.mdi-coffee-off-outline:before{content:"󰾫"}.mdi-coffee-outline:before{content:"󰛊"}.mdi-coffee-to-go:before{content:"󰅷"}.mdi-coffee-to-go-outline:before{content:"󱌎"}.mdi-coffin:before{content:"󰭿"}.mdi-cog:before{content:"󰒓"}.mdi-cog-box:before{content:"󰒔"}.mdi-cog-clockwise:before{content:"󱇝"}.mdi-cog-counterclockwise:before{content:"󱇞"}.mdi-cog-off:before{content:"󱏎"}.mdi-cog-off-outline:before{content:"󱏏"}.mdi-cog-outline:before{content:"󰢻"}.mdi-cog-pause:before{content:"󱤳"}.mdi-cog-pause-outline:before{content:"󱤴"}.mdi-cog-play:before{content:"󱤵"}.mdi-cog-play-outline:before{content:"󱤶"}.mdi-cog-refresh:before{content:"󱑞"}.mdi-cog-refresh-outline:before{content:"󱑟"}.mdi-cog-stop:before{content:"󱤷"}.mdi-cog-stop-outline:before{content:"󱤸"}.mdi-cog-sync:before{content:"󱑠"}.mdi-cog-sync-outline:before{content:"󱑡"}.mdi-cog-transfer:before{content:"󱁛"}.mdi-cog-transfer-outline:before{content:"󱁜"}.mdi-cogs:before{content:"󰣖"}.mdi-collage:before{content:"󰙀"}.mdi-collapse-all:before{content:"󰪦"}.mdi-collapse-all-outline:before{content:"󰪧"}.mdi-color-helper:before{content:"󰅹"}.mdi-comma:before{content:"󰸣"}.mdi-comma-box:before{content:"󰸫"}.mdi-comma-box-outline:before{content:"󰸤"}.mdi-comma-circle:before{content:"󰸥"}.mdi-comma-circle-outline:before{content:"󰸦"}.mdi-comment:before{content:"󰅺"}.mdi-comment-account:before{content:"󰅻"}.mdi-comment-account-outline:before{content:"󰅼"}.mdi-comment-alert:before{content:"󰅽"}.mdi-comment-alert-outline:before{content:"󰅾"}.mdi-comment-arrow-left:before{content:"󰧡"}.mdi-comment-arrow-left-outline:before{content:"󰧢"}.mdi-comment-arrow-right:before{content:"󰧣"}.mdi-comment-arrow-right-outline:before{content:"󰧤"}.mdi-comment-bookmark:before{content:"󱖮"}.mdi-comment-bookmark-outline:before{content:"󱖯"}.mdi-comment-check:before{content:"󰅿"}.mdi-comment-check-outline:before{content:"󰆀"}.mdi-comment-edit:before{content:"󱆿"}.mdi-comment-edit-outline:before{content:"󱋄"}.mdi-comment-eye:before{content:"󰨺"}.mdi-comment-eye-outline:before{content:"󰨻"}.mdi-comment-flash:before{content:"󱖰"}.mdi-comment-flash-outline:before{content:"󱖱"}.mdi-comment-minus:before{content:"󱗟"}.mdi-comment-minus-outline:before{content:"󱗠"}.mdi-comment-multiple:before{content:"󰡟"}.mdi-comment-multiple-outline:before{content:"󰆁"}.mdi-comment-off:before{content:"󱗡"}.mdi-comment-off-outline:before{content:"󱗢"}.mdi-comment-outline:before{content:"󰆂"}.mdi-comment-plus:before{content:"󰧥"}.mdi-comment-plus-outline:before{content:"󰆃"}.mdi-comment-processing:before{content:"󰆄"}.mdi-comment-processing-outline:before{content:"󰆅"}.mdi-comment-question:before{content:"󰠗"}.mdi-comment-question-outline:before{content:"󰆆"}.mdi-comment-quote:before{content:"󱀡"}.mdi-comment-quote-outline:before{content:"󱀢"}.mdi-comment-remove:before{content:"󰗞"}.mdi-comment-remove-outline:before{content:"󰆇"}.mdi-comment-search:before{content:"󰨼"}.mdi-comment-search-outline:before{content:"󰨽"}.mdi-comment-text:before{content:"󰆈"}.mdi-comment-text-multiple:before{content:"󰡠"}.mdi-comment-text-multiple-outline:before{content:"󰡡"}.mdi-comment-text-outline:before{content:"󰆉"}.mdi-compare:before{content:"󰆊"}.mdi-compare-horizontal:before{content:"󱒒"}.mdi-compare-remove:before{content:"󱢳"}.mdi-compare-vertical:before{content:"󱒓"}.mdi-compass:before{content:"󰆋"}.mdi-compass-off:before{content:"󰮀"}.mdi-compass-off-outline:before{content:"󰮁"}.mdi-compass-outline:before{content:"󰆌"}.mdi-compass-rose:before{content:"󱎂"}.mdi-compost:before{content:"󱨸"}.mdi-cone:before{content:"󱥌"}.mdi-cone-off:before{content:"󱥍"}.mdi-connection:before{content:"󱘖"}.mdi-console:before{content:"󰆍"}.mdi-console-line:before{content:"󰞷"}.mdi-console-network:before{content:"󰢩"}.mdi-console-network-outline:before{content:"󰱠"}.mdi-consolidate:before{content:"󱃘"}.mdi-contactless-payment:before{content:"󰵪"}.mdi-contactless-payment-circle:before{content:"󰌡"}.mdi-contactless-payment-circle-outline:before{content:"󰐈"}.mdi-contacts:before{content:"󰛋"}.mdi-contacts-outline:before{content:"󰖸"}.mdi-contain:before{content:"󰨾"}.mdi-contain-end:before{content:"󰨿"}.mdi-contain-start:before{content:"󰩀"}.mdi-content-copy:before{content:"󰆏"}.mdi-content-cut:before{content:"󰆐"}.mdi-content-duplicate:before{content:"󰆑"}.mdi-content-paste:before{content:"󰆒"}.mdi-content-save:before{content:"󰆓"}.mdi-content-save-alert:before{content:"󰽂"}.mdi-content-save-alert-outline:before{content:"󰽃"}.mdi-content-save-all:before{content:"󰆔"}.mdi-content-save-all-outline:before{content:"󰽄"}.mdi-content-save-check:before{content:"󱣪"}.mdi-content-save-check-outline:before{content:"󱣫"}.mdi-content-save-cog:before{content:"󱑛"}.mdi-content-save-cog-outline:before{content:"󱑜"}.mdi-content-save-edit:before{content:"󰳻"}.mdi-content-save-edit-outline:before{content:"󰳼"}.mdi-content-save-minus:before{content:"󱭃"}.mdi-content-save-minus-outline:before{content:"󱭄"}.mdi-content-save-move:before{content:"󰸧"}.mdi-content-save-move-outline:before{content:"󰸨"}.mdi-content-save-off:before{content:"󱙃"}.mdi-content-save-off-outline:before{content:"󱙄"}.mdi-content-save-outline:before{content:"󰠘"}.mdi-content-save-plus:before{content:"󱭁"}.mdi-content-save-plus-outline:before{content:"󱭂"}.mdi-content-save-settings:before{content:"󰘛"}.mdi-content-save-settings-outline:before{content:"󰬮"}.mdi-contrast:before{content:"󰆕"}.mdi-contrast-box:before{content:"󰆖"}.mdi-contrast-circle:before{content:"󰆗"}.mdi-controller:before{content:"󰊴"}.mdi-controller-classic:before{content:"󰮂"}.mdi-controller-classic-outline:before{content:"󰮃"}.mdi-controller-off:before{content:"󰊵"}.mdi-cookie:before{content:"󰆘"}.mdi-cookie-alert:before{content:"󱛐"}.mdi-cookie-alert-outline:before{content:"󱛑"}.mdi-cookie-check:before{content:"󱛒"}.mdi-cookie-check-outline:before{content:"󱛓"}.mdi-cookie-clock:before{content:"󱛤"}.mdi-cookie-clock-outline:before{content:"󱛥"}.mdi-cookie-cog:before{content:"󱛔"}.mdi-cookie-cog-outline:before{content:"󱛕"}.mdi-cookie-edit:before{content:"󱛦"}.mdi-cookie-edit-outline:before{content:"󱛧"}.mdi-cookie-lock:before{content:"󱛨"}.mdi-cookie-lock-outline:before{content:"󱛩"}.mdi-cookie-minus:before{content:"󱛚"}.mdi-cookie-minus-outline:before{content:"󱛛"}.mdi-cookie-off:before{content:"󱛪"}.mdi-cookie-off-outline:before{content:"󱛫"}.mdi-cookie-outline:before{content:"󱛞"}.mdi-cookie-plus:before{content:"󱛖"}.mdi-cookie-plus-outline:before{content:"󱛗"}.mdi-cookie-refresh:before{content:"󱛬"}.mdi-cookie-refresh-outline:before{content:"󱛭"}.mdi-cookie-remove:before{content:"󱛘"}.mdi-cookie-remove-outline:before{content:"󱛙"}.mdi-cookie-settings:before{content:"󱛜"}.mdi-cookie-settings-outline:before{content:"󱛝"}.mdi-coolant-temperature:before{content:"󰏈"}.mdi-copyleft:before{content:"󱤹"}.mdi-copyright:before{content:"󰗦"}.mdi-cordova:before{content:"󰥘"}.mdi-corn:before{content:"󰞸"}.mdi-corn-off:before{content:"󱏯"}.mdi-cosine-wave:before{content:"󱑹"}.mdi-counter:before{content:"󰆙"}.mdi-countertop:before{content:"󱠜"}.mdi-countertop-outline:before{content:"󱠝"}.mdi-cow:before{content:"󰆚"}.mdi-cow-off:before{content:"󱣼"}.mdi-cpu-32-bit:before{content:"󰻟"}.mdi-cpu-64-bit:before{content:"󰻠"}.mdi-cradle:before{content:"󱦋"}.mdi-cradle-outline:before{content:"󱦑"}.mdi-crane:before{content:"󰡢"}.mdi-creation:before{content:"󰙴"}.mdi-creation-outline:before{content:"󱰫"}.mdi-creative-commons:before{content:"󰵫"}.mdi-credit-card:before{content:"󰿯"}.mdi-credit-card-check:before{content:"󱏐"}.mdi-credit-card-check-outline:before{content:"󱏑"}.mdi-credit-card-chip:before{content:"󱤏"}.mdi-credit-card-chip-outline:before{content:"󱤐"}.mdi-credit-card-clock:before{content:"󰻡"}.mdi-credit-card-clock-outline:before{content:"󰻢"}.mdi-credit-card-edit:before{content:"󱟗"}.mdi-credit-card-edit-outline:before{content:"󱟘"}.mdi-credit-card-fast:before{content:"󱤑"}.mdi-credit-card-fast-outline:before{content:"󱤒"}.mdi-credit-card-lock:before{content:"󱣧"}.mdi-credit-card-lock-outline:before{content:"󱣨"}.mdi-credit-card-marker:before{content:"󰚨"}.mdi-credit-card-marker-outline:before{content:"󰶾"}.mdi-credit-card-minus:before{content:"󰾬"}.mdi-credit-card-minus-outline:before{content:"󰾭"}.mdi-credit-card-multiple:before{content:"󰿰"}.mdi-credit-card-multiple-outline:before{content:"󰆜"}.mdi-credit-card-off:before{content:"󰿱"}.mdi-credit-card-off-outline:before{content:"󰗤"}.mdi-credit-card-outline:before{content:"󰆛"}.mdi-credit-card-plus:before{content:"󰿲"}.mdi-credit-card-plus-outline:before{content:"󰙶"}.mdi-credit-card-refresh:before{content:"󱙅"}.mdi-credit-card-refresh-outline:before{content:"󱙆"}.mdi-credit-card-refund:before{content:"󰿳"}.mdi-credit-card-refund-outline:before{content:"󰪨"}.mdi-credit-card-remove:before{content:"󰾮"}.mdi-credit-card-remove-outline:before{content:"󰾯"}.mdi-credit-card-scan:before{content:"󰿴"}.mdi-credit-card-scan-outline:before{content:"󰆝"}.mdi-credit-card-search:before{content:"󱙇"}.mdi-credit-card-search-outline:before{content:"󱙈"}.mdi-credit-card-settings:before{content:"󰿵"}.mdi-credit-card-settings-outline:before{content:"󰣗"}.mdi-credit-card-sync:before{content:"󱙉"}.mdi-credit-card-sync-outline:before{content:"󱙊"}.mdi-credit-card-wireless:before{content:"󰠂"}.mdi-credit-card-wireless-off:before{content:"󰕺"}.mdi-credit-card-wireless-off-outline:before{content:"󰕻"}.mdi-credit-card-wireless-outline:before{content:"󰵬"}.mdi-cricket:before{content:"󰵭"}.mdi-crop:before{content:"󰆞"}.mdi-crop-free:before{content:"󰆟"}.mdi-crop-landscape:before{content:"󰆠"}.mdi-crop-portrait:before{content:"󰆡"}.mdi-crop-rotate:before{content:"󰚖"}.mdi-crop-square:before{content:"󰆢"}.mdi-cross:before{content:"󰥓"}.mdi-cross-bolnisi:before{content:"󰳭"}.mdi-cross-celtic:before{content:"󰳵"}.mdi-cross-outline:before{content:"󰳶"}.mdi-crosshairs:before{content:"󰆣"}.mdi-crosshairs-gps:before{content:"󰆤"}.mdi-crosshairs-off:before{content:"󰽅"}.mdi-crosshairs-question:before{content:"󱄶"}.mdi-crowd:before{content:"󱥵"}.mdi-crown:before{content:"󰆥"}.mdi-crown-circle:before{content:"󱟜"}.mdi-crown-circle-outline:before{content:"󱟝"}.mdi-crown-outline:before{content:"󱇐"}.mdi-cryengine:before{content:"󰥙"}.mdi-crystal-ball:before{content:"󰬯"}.mdi-cube:before{content:"󰆦"}.mdi-cube-off:before{content:"󱐜"}.mdi-cube-off-outline:before{content:"󱐝"}.mdi-cube-outline:before{content:"󰆧"}.mdi-cube-scan:before{content:"󰮄"}.mdi-cube-send:before{content:"󰆨"}.mdi-cube-unfolded:before{content:"󰆩"}.mdi-cup:before{content:"󰆪"}.mdi-cup-off:before{content:"󰗥"}.mdi-cup-off-outline:before{content:"󱍽"}.mdi-cup-outline:before{content:"󱌏"}.mdi-cup-water:before{content:"󰆫"}.mdi-cupboard:before{content:"󰽆"}.mdi-cupboard-outline:before{content:"󰽇"}.mdi-cupcake:before{content:"󰥚"}.mdi-curling:before{content:"󰡣"}.mdi-currency-bdt:before{content:"󰡤"}.mdi-currency-brl:before{content:"󰮅"}.mdi-currency-btc:before{content:"󰆬"}.mdi-currency-cny:before{content:"󰞺"}.mdi-currency-eth:before{content:"󰞻"}.mdi-currency-eur:before{content:"󰆭"}.mdi-currency-eur-off:before{content:"󱌕"}.mdi-currency-fra:before{content:"󱨹"}.mdi-currency-gbp:before{content:"󰆮"}.mdi-currency-ils:before{content:"󰱡"}.mdi-currency-inr:before{content:"󰆯"}.mdi-currency-jpy:before{content:"󰞼"}.mdi-currency-krw:before{content:"󰞽"}.mdi-currency-kzt:before{content:"󰡥"}.mdi-currency-mnt:before{content:"󱔒"}.mdi-currency-ngn:before{content:"󰆰"}.mdi-currency-php:before{content:"󰧦"}.mdi-currency-rial:before{content:"󰺜"}.mdi-currency-rub:before{content:"󰆱"}.mdi-currency-rupee:before{content:"󱥶"}.mdi-currency-sign:before{content:"󰞾"}.mdi-currency-thb:before{content:"󱰅"}.mdi-currency-try:before{content:"󰆲"}.mdi-currency-twd:before{content:"󰞿"}.mdi-currency-uah:before{content:"󱮛"}.mdi-currency-usd:before{content:"󰇁"}.mdi-currency-usd-off:before{content:"󰙺"}.mdi-current-ac:before{content:"󱒀"}.mdi-current-dc:before{content:"󰥜"}.mdi-cursor-default:before{content:"󰇀"}.mdi-cursor-default-click:before{content:"󰳽"}.mdi-cursor-default-click-outline:before{content:"󰳾"}.mdi-cursor-default-gesture:before{content:"󱄧"}.mdi-cursor-default-gesture-outline:before{content:"󱄨"}.mdi-cursor-default-outline:before{content:"󰆿"}.mdi-cursor-move:before{content:"󰆾"}.mdi-cursor-pointer:before{content:"󰆽"}.mdi-cursor-text:before{content:"󰗧"}.mdi-curtains:before{content:"󱡆"}.mdi-curtains-closed:before{content:"󱡇"}.mdi-cylinder:before{content:"󱥎"}.mdi-cylinder-off:before{content:"󱥏"}.mdi-dance-ballroom:before{content:"󱗻"}.mdi-dance-pole:before{content:"󱕸"}.mdi-data-matrix:before{content:"󱔼"}.mdi-data-matrix-edit:before{content:"󱔽"}.mdi-data-matrix-minus:before{content:"󱔾"}.mdi-data-matrix-plus:before{content:"󱔿"}.mdi-data-matrix-remove:before{content:"󱕀"}.mdi-data-matrix-scan:before{content:"󱕁"}.mdi-database:before{content:"󰆼"}.mdi-database-alert:before{content:"󱘺"}.mdi-database-alert-outline:before{content:"󱘤"}.mdi-database-arrow-down:before{content:"󱘻"}.mdi-database-arrow-down-outline:before{content:"󱘥"}.mdi-database-arrow-left:before{content:"󱘼"}.mdi-database-arrow-left-outline:before{content:"󱘦"}.mdi-database-arrow-right:before{content:"󱘽"}.mdi-database-arrow-right-outline:before{content:"󱘧"}.mdi-database-arrow-up:before{content:"󱘾"}.mdi-database-arrow-up-outline:before{content:"󱘨"}.mdi-database-check:before{content:"󰪩"}.mdi-database-check-outline:before{content:"󱘩"}.mdi-database-clock:before{content:"󱘿"}.mdi-database-clock-outline:before{content:"󱘪"}.mdi-database-cog:before{content:"󱙋"}.mdi-database-cog-outline:before{content:"󱙌"}.mdi-database-edit:before{content:"󰮆"}.mdi-database-edit-outline:before{content:"󱘫"}.mdi-database-export:before{content:"󰥞"}.mdi-database-export-outline:before{content:"󱘬"}.mdi-database-eye:before{content:"󱤟"}.mdi-database-eye-off:before{content:"󱤠"}.mdi-database-eye-off-outline:before{content:"󱤡"}.mdi-database-eye-outline:before{content:"󱤢"}.mdi-database-import:before{content:"󰥝"}.mdi-database-import-outline:before{content:"󱘭"}.mdi-database-lock:before{content:"󰪪"}.mdi-database-lock-outline:before{content:"󱘮"}.mdi-database-marker:before{content:"󱋶"}.mdi-database-marker-outline:before{content:"󱘯"}.mdi-database-minus:before{content:"󰆻"}.mdi-database-minus-outline:before{content:"󱘰"}.mdi-database-off:before{content:"󱙀"}.mdi-database-off-outline:before{content:"󱘱"}.mdi-database-outline:before{content:"󱘲"}.mdi-database-plus:before{content:"󰆺"}.mdi-database-plus-outline:before{content:"󱘳"}.mdi-database-refresh:before{content:"󰗂"}.mdi-database-refresh-outline:before{content:"󱘴"}.mdi-database-remove:before{content:"󰴀"}.mdi-database-remove-outline:before{content:"󱘵"}.mdi-database-search:before{content:"󰡦"}.mdi-database-search-outline:before{content:"󱘶"}.mdi-database-settings:before{content:"󰴁"}.mdi-database-settings-outline:before{content:"󱘷"}.mdi-database-sync:before{content:"󰳿"}.mdi-database-sync-outline:before{content:"󱘸"}.mdi-death-star:before{content:"󰣘"}.mdi-death-star-variant:before{content:"󰣙"}.mdi-deathly-hallows:before{content:"󰮇"}.mdi-debian:before{content:"󰣚"}.mdi-debug-step-into:before{content:"󰆹"}.mdi-debug-step-out:before{content:"󰆸"}.mdi-debug-step-over:before{content:"󰆷"}.mdi-decagram:before{content:"󰝬"}.mdi-decagram-outline:before{content:"󰝭"}.mdi-decimal:before{content:"󱂡"}.mdi-decimal-comma:before{content:"󱂢"}.mdi-decimal-comma-decrease:before{content:"󱂣"}.mdi-decimal-comma-increase:before{content:"󱂤"}.mdi-decimal-decrease:before{content:"󰆶"}.mdi-decimal-increase:before{content:"󰆵"}.mdi-delete:before{content:"󰆴"}.mdi-delete-alert:before{content:"󱂥"}.mdi-delete-alert-outline:before{content:"󱂦"}.mdi-delete-circle:before{content:"󰚃"}.mdi-delete-circle-outline:before{content:"󰮈"}.mdi-delete-clock:before{content:"󱕖"}.mdi-delete-clock-outline:before{content:"󱕗"}.mdi-delete-empty:before{content:"󰛌"}.mdi-delete-empty-outline:before{content:"󰺝"}.mdi-delete-forever:before{content:"󰗨"}.mdi-delete-forever-outline:before{content:"󰮉"}.mdi-delete-off:before{content:"󱂧"}.mdi-delete-off-outline:before{content:"󱂨"}.mdi-delete-outline:before{content:"󰧧"}.mdi-delete-restore:before{content:"󰠙"}.mdi-delete-sweep:before{content:"󰗩"}.mdi-delete-sweep-outline:before{content:"󰱢"}.mdi-delete-variant:before{content:"󰆳"}.mdi-delta:before{content:"󰇂"}.mdi-desk:before{content:"󱈹"}.mdi-desk-lamp:before{content:"󰥟"}.mdi-desk-lamp-off:before{content:"󱬟"}.mdi-desk-lamp-on:before{content:"󱬠"}.mdi-deskphone:before{content:"󰇃"}.mdi-desktop-classic:before{content:"󰟀"}.mdi-desktop-tower:before{content:"󰇅"}.mdi-desktop-tower-monitor:before{content:"󰪫"}.mdi-details:before{content:"󰇆"}.mdi-dev-to:before{content:"󰵮"}.mdi-developer-board:before{content:"󰚗"}.mdi-deviantart:before{content:"󰇇"}.mdi-devices:before{content:"󰾰"}.mdi-dharmachakra:before{content:"󰥋"}.mdi-diabetes:before{content:"󱄦"}.mdi-dialpad:before{content:"󰘜"}.mdi-diameter:before{content:"󰱣"}.mdi-diameter-outline:before{content:"󰱤"}.mdi-diameter-variant:before{content:"󰱥"}.mdi-diamond:before{content:"󰮊"}.mdi-diamond-outline:before{content:"󰮋"}.mdi-diamond-stone:before{content:"󰇈"}.mdi-dice-1:before{content:"󰇊"}.mdi-dice-1-outline:before{content:"󱅊"}.mdi-dice-2:before{content:"󰇋"}.mdi-dice-2-outline:before{content:"󱅋"}.mdi-dice-3:before{content:"󰇌"}.mdi-dice-3-outline:before{content:"󱅌"}.mdi-dice-4:before{content:"󰇍"}.mdi-dice-4-outline:before{content:"󱅍"}.mdi-dice-5:before{content:"󰇎"}.mdi-dice-5-outline:before{content:"󱅎"}.mdi-dice-6:before{content:"󰇏"}.mdi-dice-6-outline:before{content:"󱅏"}.mdi-dice-d10:before{content:"󱅓"}.mdi-dice-d10-outline:before{content:"󰝯"}.mdi-dice-d12:before{content:"󱅔"}.mdi-dice-d12-outline:before{content:"󰡧"}.mdi-dice-d20:before{content:"󱅕"}.mdi-dice-d20-outline:before{content:"󰗪"}.mdi-dice-d4:before{content:"󱅐"}.mdi-dice-d4-outline:before{content:"󰗫"}.mdi-dice-d6:before{content:"󱅑"}.mdi-dice-d6-outline:before{content:"󰗭"}.mdi-dice-d8:before{content:"󱅒"}.mdi-dice-d8-outline:before{content:"󰗬"}.mdi-dice-multiple:before{content:"󰝮"}.mdi-dice-multiple-outline:before{content:"󱅖"}.mdi-digital-ocean:before{content:"󱈷"}.mdi-dip-switch:before{content:"󰟁"}.mdi-directions:before{content:"󰇐"}.mdi-directions-fork:before{content:"󰙁"}.mdi-disc:before{content:"󰗮"}.mdi-disc-alert:before{content:"󰇑"}.mdi-disc-player:before{content:"󰥠"}.mdi-dishwasher:before{content:"󰪬"}.mdi-dishwasher-alert:before{content:"󱆸"}.mdi-dishwasher-off:before{content:"󱆹"}.mdi-disqus:before{content:"󰇒"}.mdi-distribute-horizontal-center:before{content:"󱇉"}.mdi-distribute-horizontal-left:before{content:"󱇈"}.mdi-distribute-horizontal-right:before{content:"󱇊"}.mdi-distribute-vertical-bottom:before{content:"󱇋"}.mdi-distribute-vertical-center:before{content:"󱇌"}.mdi-distribute-vertical-top:before{content:"󱇍"}.mdi-diversify:before{content:"󱡷"}.mdi-diving:before{content:"󱥷"}.mdi-diving-flippers:before{content:"󰶿"}.mdi-diving-helmet:before{content:"󰷀"}.mdi-diving-scuba:before{content:"󱭷"}.mdi-diving-scuba-flag:before{content:"󰷂"}.mdi-diving-scuba-mask:before{content:"󰷁"}.mdi-diving-scuba-tank:before{content:"󰷃"}.mdi-diving-scuba-tank-multiple:before{content:"󰷄"}.mdi-diving-snorkel:before{content:"󰷅"}.mdi-division:before{content:"󰇔"}.mdi-division-box:before{content:"󰇕"}.mdi-dlna:before{content:"󰩁"}.mdi-dna:before{content:"󰚄"}.mdi-dns:before{content:"󰇖"}.mdi-dns-outline:before{content:"󰮌"}.mdi-dock-bottom:before{content:"󱂩"}.mdi-dock-left:before{content:"󱂪"}.mdi-dock-right:before{content:"󱂫"}.mdi-dock-top:before{content:"󱔓"}.mdi-dock-window:before{content:"󱂬"}.mdi-docker:before{content:"󰡨"}.mdi-doctor:before{content:"󰩂"}.mdi-dog:before{content:"󰩃"}.mdi-dog-service:before{content:"󰪭"}.mdi-dog-side:before{content:"󰩄"}.mdi-dog-side-off:before{content:"󱛮"}.mdi-dolby:before{content:"󰚳"}.mdi-dolly:before{content:"󰺞"}.mdi-dolphin:before{content:"󱢴"}.mdi-domain:before{content:"󰇗"}.mdi-domain-off:before{content:"󰵯"}.mdi-domain-plus:before{content:"󱂭"}.mdi-domain-remove:before{content:"󱂮"}.mdi-domain-switch:before{content:"󱰬"}.mdi-dome-light:before{content:"󱐞"}.mdi-domino-mask:before{content:"󱀣"}.mdi-donkey:before{content:"󰟂"}.mdi-door:before{content:"󰠚"}.mdi-door-closed:before{content:"󰠛"}.mdi-door-closed-cancel:before{content:"󱲓"}.mdi-door-closed-lock:before{content:"󱂯"}.mdi-door-open:before{content:"󰠜"}.mdi-door-sliding:before{content:"󱠞"}.mdi-door-sliding-lock:before{content:"󱠟"}.mdi-door-sliding-open:before{content:"󱠠"}.mdi-doorbell:before{content:"󱋦"}.mdi-doorbell-video:before{content:"󰡩"}.mdi-dot-net:before{content:"󰪮"}.mdi-dots-circle:before{content:"󱥸"}.mdi-dots-grid:before{content:"󱗼"}.mdi-dots-hexagon:before{content:"󱗿"}.mdi-dots-horizontal:before{content:"󰇘"}.mdi-dots-horizontal-circle:before{content:"󰟃"}.mdi-dots-horizontal-circle-outline:before{content:"󰮍"}.mdi-dots-square:before{content:"󱗽"}.mdi-dots-triangle:before{content:"󱗾"}.mdi-dots-vertical:before{content:"󰇙"}.mdi-dots-vertical-circle:before{content:"󰟄"}.mdi-dots-vertical-circle-outline:before{content:"󰮎"}.mdi-download:before{content:"󰇚"}.mdi-download-box:before{content:"󱑢"}.mdi-download-box-outline:before{content:"󱑣"}.mdi-download-circle:before{content:"󱑤"}.mdi-download-circle-outline:before{content:"󱑥"}.mdi-download-lock:before{content:"󱌠"}.mdi-download-lock-outline:before{content:"󱌡"}.mdi-download-multiple:before{content:"󰧩"}.mdi-download-network:before{content:"󰛴"}.mdi-download-network-outline:before{content:"󰱦"}.mdi-download-off:before{content:"󱂰"}.mdi-download-off-outline:before{content:"󱂱"}.mdi-download-outline:before{content:"󰮏"}.mdi-drag:before{content:"󰇛"}.mdi-drag-horizontal:before{content:"󰇜"}.mdi-drag-horizontal-variant:before{content:"󱋰"}.mdi-drag-variant:before{content:"󰮐"}.mdi-drag-vertical:before{content:"󰇝"}.mdi-drag-vertical-variant:before{content:"󱋱"}.mdi-drama-masks:before{content:"󰴂"}.mdi-draw:before{content:"󰽉"}.mdi-draw-pen:before{content:"󱦹"}.mdi-drawing:before{content:"󰇞"}.mdi-drawing-box:before{content:"󰇟"}.mdi-dresser:before{content:"󰽊"}.mdi-dresser-outline:before{content:"󰽋"}.mdi-drone:before{content:"󰇢"}.mdi-dropbox:before{content:"󰇣"}.mdi-drupal:before{content:"󰇤"}.mdi-duck:before{content:"󰇥"}.mdi-dumbbell:before{content:"󰇦"}.mdi-dump-truck:before{content:"󰱧"}.mdi-ear-hearing:before{content:"󰟅"}.mdi-ear-hearing-loop:before{content:"󱫮"}.mdi-ear-hearing-off:before{content:"󰩅"}.mdi-earbuds:before{content:"󱡏"}.mdi-earbuds-off:before{content:"󱡐"}.mdi-earbuds-off-outline:before{content:"󱡑"}.mdi-earbuds-outline:before{content:"󱡒"}.mdi-earth:before{content:"󰇧"}.mdi-earth-arrow-down:before{content:"󱲇"}.mdi-earth-arrow-left:before{content:"󱲈"}.mdi-earth-arrow-right:before{content:"󱌑"}.mdi-earth-arrow-up:before{content:"󱲉"}.mdi-earth-box:before{content:"󰛍"}.mdi-earth-box-minus:before{content:"󱐇"}.mdi-earth-box-off:before{content:"󰛎"}.mdi-earth-box-plus:before{content:"󱐆"}.mdi-earth-box-remove:before{content:"󱐈"}.mdi-earth-minus:before{content:"󱐄"}.mdi-earth-off:before{content:"󰇨"}.mdi-earth-plus:before{content:"󱐃"}.mdi-earth-remove:before{content:"󱐅"}.mdi-egg:before{content:"󰪯"}.mdi-egg-easter:before{content:"󰪰"}.mdi-egg-fried:before{content:"󱡊"}.mdi-egg-off:before{content:"󱏰"}.mdi-egg-off-outline:before{content:"󱏱"}.mdi-egg-outline:before{content:"󱏲"}.mdi-eiffel-tower:before{content:"󱕫"}.mdi-eight-track:before{content:"󰧪"}.mdi-eject:before{content:"󰇪"}.mdi-eject-circle:before{content:"󱬣"}.mdi-eject-circle-outline:before{content:"󱬤"}.mdi-eject-outline:before{content:"󰮑"}.mdi-electric-switch:before{content:"󰺟"}.mdi-electric-switch-closed:before{content:"󱃙"}.mdi-electron-framework:before{content:"󱀤"}.mdi-elephant:before{content:"󰟆"}.mdi-elevation-decline:before{content:"󰇫"}.mdi-elevation-rise:before{content:"󰇬"}.mdi-elevator:before{content:"󰇭"}.mdi-elevator-down:before{content:"󱋂"}.mdi-elevator-passenger:before{content:"󱎁"}.mdi-elevator-passenger-off:before{content:"󱥹"}.mdi-elevator-passenger-off-outline:before{content:"󱥺"}.mdi-elevator-passenger-outline:before{content:"󱥻"}.mdi-elevator-up:before{content:"󱋁"}.mdi-ellipse:before{content:"󰺠"}.mdi-ellipse-outline:before{content:"󰺡"}.mdi-email:before{content:"󰇮"}.mdi-email-alert:before{content:"󰛏"}.mdi-email-alert-outline:before{content:"󰵂"}.mdi-email-arrow-left:before{content:"󱃚"}.mdi-email-arrow-left-outline:before{content:"󱃛"}.mdi-email-arrow-right:before{content:"󱃜"}.mdi-email-arrow-right-outline:before{content:"󱃝"}.mdi-email-box:before{content:"󰴃"}.mdi-email-check:before{content:"󰪱"}.mdi-email-check-outline:before{content:"󰪲"}.mdi-email-edit:before{content:"󰻣"}.mdi-email-edit-outline:before{content:"󰻤"}.mdi-email-fast:before{content:"󱡯"}.mdi-email-fast-outline:before{content:"󱡰"}.mdi-email-heart-outline:before{content:"󱱛"}.mdi-email-lock:before{content:"󰇱"}.mdi-email-lock-outline:before{content:"󱭡"}.mdi-email-mark-as-unread:before{content:"󰮒"}.mdi-email-minus:before{content:"󰻥"}.mdi-email-minus-outline:before{content:"󰻦"}.mdi-email-multiple:before{content:"󰻧"}.mdi-email-multiple-outline:before{content:"󰻨"}.mdi-email-newsletter:before{content:"󰾱"}.mdi-email-off:before{content:"󱏣"}.mdi-email-off-outline:before{content:"󱏤"}.mdi-email-open:before{content:"󰇯"}.mdi-email-open-heart-outline:before{content:"󱱜"}.mdi-email-open-multiple:before{content:"󰻩"}.mdi-email-open-multiple-outline:before{content:"󰻪"}.mdi-email-open-outline:before{content:"󰗯"}.mdi-email-outline:before{content:"󰇰"}.mdi-email-plus:before{content:"󰧫"}.mdi-email-plus-outline:before{content:"󰧬"}.mdi-email-remove:before{content:"󱙡"}.mdi-email-remove-outline:before{content:"󱙢"}.mdi-email-seal:before{content:"󱥛"}.mdi-email-seal-outline:before{content:"󱥜"}.mdi-email-search:before{content:"󰥡"}.mdi-email-search-outline:before{content:"󰥢"}.mdi-email-sync:before{content:"󱋇"}.mdi-email-sync-outline:before{content:"󱋈"}.mdi-email-variant:before{content:"󰗰"}.mdi-ember:before{content:"󰬰"}.mdi-emby:before{content:"󰚴"}.mdi-emoticon:before{content:"󰱨"}.mdi-emoticon-angry:before{content:"󰱩"}.mdi-emoticon-angry-outline:before{content:"󰱪"}.mdi-emoticon-confused:before{content:"󱃞"}.mdi-emoticon-confused-outline:before{content:"󱃟"}.mdi-emoticon-cool:before{content:"󰱫"}.mdi-emoticon-cool-outline:before{content:"󰇳"}.mdi-emoticon-cry:before{content:"󰱬"}.mdi-emoticon-cry-outline:before{content:"󰱭"}.mdi-emoticon-dead:before{content:"󰱮"}.mdi-emoticon-dead-outline:before{content:"󰚛"}.mdi-emoticon-devil:before{content:"󰱯"}.mdi-emoticon-devil-outline:before{content:"󰇴"}.mdi-emoticon-excited:before{content:"󰱰"}.mdi-emoticon-excited-outline:before{content:"󰚜"}.mdi-emoticon-frown:before{content:"󰽌"}.mdi-emoticon-frown-outline:before{content:"󰽍"}.mdi-emoticon-happy:before{content:"󰱱"}.mdi-emoticon-happy-outline:before{content:"󰇵"}.mdi-emoticon-kiss:before{content:"󰱲"}.mdi-emoticon-kiss-outline:before{content:"󰱳"}.mdi-emoticon-lol:before{content:"󱈔"}.mdi-emoticon-lol-outline:before{content:"󱈕"}.mdi-emoticon-minus:before{content:"󱲲"}.mdi-emoticon-minus-outline:before{content:"󱲳"}.mdi-emoticon-neutral:before{content:"󰱴"}.mdi-emoticon-neutral-outline:before{content:"󰇶"}.mdi-emoticon-outline:before{content:"󰇲"}.mdi-emoticon-plus:before{content:"󱲴"}.mdi-emoticon-plus-outline:before{content:"󱲵"}.mdi-emoticon-poop:before{content:"󰇷"}.mdi-emoticon-poop-outline:before{content:"󰱵"}.mdi-emoticon-remove:before{content:"󱲶"}.mdi-emoticon-remove-outline:before{content:"󱲷"}.mdi-emoticon-sad:before{content:"󰱶"}.mdi-emoticon-sad-outline:before{content:"󰇸"}.mdi-emoticon-sick:before{content:"󱕼"}.mdi-emoticon-sick-outline:before{content:"󱕽"}.mdi-emoticon-tongue:before{content:"󰇹"}.mdi-emoticon-tongue-outline:before{content:"󰱷"}.mdi-emoticon-wink:before{content:"󰱸"}.mdi-emoticon-wink-outline:before{content:"󰱹"}.mdi-engine:before{content:"󰇺"}.mdi-engine-off:before{content:"󰩆"}.mdi-engine-off-outline:before{content:"󰩇"}.mdi-engine-outline:before{content:"󰇻"}.mdi-epsilon:before{content:"󱃠"}.mdi-equal:before{content:"󰇼"}.mdi-equal-box:before{content:"󰇽"}.mdi-equalizer:before{content:"󰺢"}.mdi-equalizer-outline:before{content:"󰺣"}.mdi-eraser:before{content:"󰇾"}.mdi-eraser-variant:before{content:"󰙂"}.mdi-escalator:before{content:"󰇿"}.mdi-escalator-box:before{content:"󱎙"}.mdi-escalator-down:before{content:"󱋀"}.mdi-escalator-up:before{content:"󱊿"}.mdi-eslint:before{content:"󰱺"}.mdi-et:before{content:"󰪳"}.mdi-ethereum:before{content:"󰡪"}.mdi-ethernet:before{content:"󰈀"}.mdi-ethernet-cable:before{content:"󰈁"}.mdi-ethernet-cable-off:before{content:"󰈂"}.mdi-ev-plug-ccs1:before{content:"󱔙"}.mdi-ev-plug-ccs2:before{content:"󱔚"}.mdi-ev-plug-chademo:before{content:"󱔛"}.mdi-ev-plug-tesla:before{content:"󱔜"}.mdi-ev-plug-type1:before{content:"󱔝"}.mdi-ev-plug-type2:before{content:"󱔞"}.mdi-ev-station:before{content:"󰗱"}.mdi-evernote:before{content:"󰈄"}.mdi-excavator:before{content:"󱀥"}.mdi-exclamation:before{content:"󰈅"}.mdi-exclamation-thick:before{content:"󱈸"}.mdi-exit-run:before{content:"󰩈"}.mdi-exit-to-app:before{content:"󰈆"}.mdi-expand-all:before{content:"󰪴"}.mdi-expand-all-outline:before{content:"󰪵"}.mdi-expansion-card:before{content:"󰢮"}.mdi-expansion-card-variant:before{content:"󰾲"}.mdi-exponent:before{content:"󰥣"}.mdi-exponent-box:before{content:"󰥤"}.mdi-export:before{content:"󰈇"}.mdi-export-variant:before{content:"󰮓"}.mdi-eye:before{content:"󰈈"}.mdi-eye-arrow-left:before{content:"󱣽"}.mdi-eye-arrow-left-outline:before{content:"󱣾"}.mdi-eye-arrow-right:before{content:"󱣿"}.mdi-eye-arrow-right-outline:before{content:"󱤀"}.mdi-eye-check:before{content:"󰴄"}.mdi-eye-check-outline:before{content:"󰴅"}.mdi-eye-circle:before{content:"󰮔"}.mdi-eye-circle-outline:before{content:"󰮕"}.mdi-eye-closed:before{content:"󱲣"}.mdi-eye-lock:before{content:"󱰆"}.mdi-eye-lock-open:before{content:"󱰇"}.mdi-eye-lock-open-outline:before{content:"󱰈"}.mdi-eye-lock-outline:before{content:"󱰉"}.mdi-eye-minus:before{content:"󱀦"}.mdi-eye-minus-outline:before{content:"󱀧"}.mdi-eye-off:before{content:"󰈉"}.mdi-eye-off-outline:before{content:"󰛑"}.mdi-eye-outline:before{content:"󰛐"}.mdi-eye-plus:before{content:"󰡫"}.mdi-eye-plus-outline:before{content:"󰡬"}.mdi-eye-refresh:before{content:"󱥼"}.mdi-eye-refresh-outline:before{content:"󱥽"}.mdi-eye-remove:before{content:"󱗣"}.mdi-eye-remove-outline:before{content:"󱗤"}.mdi-eye-settings:before{content:"󰡭"}.mdi-eye-settings-outline:before{content:"󰡮"}.mdi-eyedropper:before{content:"󰈊"}.mdi-eyedropper-minus:before{content:"󱏝"}.mdi-eyedropper-off:before{content:"󱏟"}.mdi-eyedropper-plus:before{content:"󱏜"}.mdi-eyedropper-remove:before{content:"󱏞"}.mdi-eyedropper-variant:before{content:"󰈋"}.mdi-face-agent:before{content:"󰵰"}.mdi-face-man:before{content:"󰙃"}.mdi-face-man-outline:before{content:"󰮖"}.mdi-face-man-profile:before{content:"󰙄"}.mdi-face-man-shimmer:before{content:"󱗌"}.mdi-face-man-shimmer-outline:before{content:"󱗍"}.mdi-face-mask:before{content:"󱖆"}.mdi-face-mask-outline:before{content:"󱖇"}.mdi-face-recognition:before{content:"󰱻"}.mdi-face-woman:before{content:"󱁷"}.mdi-face-woman-outline:before{content:"󱁸"}.mdi-face-woman-profile:before{content:"󱁶"}.mdi-face-woman-shimmer:before{content:"󱗎"}.mdi-face-woman-shimmer-outline:before{content:"󱗏"}.mdi-facebook:before{content:"󰈌"}.mdi-facebook-gaming:before{content:"󰟝"}.mdi-facebook-messenger:before{content:"󰈎"}.mdi-facebook-workplace:before{content:"󰬱"}.mdi-factory:before{content:"󰈏"}.mdi-family-tree:before{content:"󱘎"}.mdi-fan:before{content:"󰈐"}.mdi-fan-alert:before{content:"󱑬"}.mdi-fan-auto:before{content:"󱜝"}.mdi-fan-chevron-down:before{content:"󱑭"}.mdi-fan-chevron-up:before{content:"󱑮"}.mdi-fan-clock:before{content:"󱨺"}.mdi-fan-minus:before{content:"󱑰"}.mdi-fan-off:before{content:"󰠝"}.mdi-fan-plus:before{content:"󱑯"}.mdi-fan-remove:before{content:"󱑱"}.mdi-fan-speed-1:before{content:"󱑲"}.mdi-fan-speed-2:before{content:"󱑳"}.mdi-fan-speed-3:before{content:"󱑴"}.mdi-fast-forward:before{content:"󰈑"}.mdi-fast-forward-10:before{content:"󰵱"}.mdi-fast-forward-15:before{content:"󱤺"}.mdi-fast-forward-30:before{content:"󰴆"}.mdi-fast-forward-45:before{content:"󱬒"}.mdi-fast-forward-5:before{content:"󱇸"}.mdi-fast-forward-60:before{content:"󱘋"}.mdi-fast-forward-outline:before{content:"󰛒"}.mdi-faucet:before{content:"󱬩"}.mdi-faucet-variant:before{content:"󱬪"}.mdi-fax:before{content:"󰈒"}.mdi-feather:before{content:"󰛓"}.mdi-feature-search:before{content:"󰩉"}.mdi-feature-search-outline:before{content:"󰩊"}.mdi-fedora:before{content:"󰣛"}.mdi-fence:before{content:"󱞚"}.mdi-fence-electric:before{content:"󱟶"}.mdi-fencing:before{content:"󱓁"}.mdi-ferris-wheel:before{content:"󰺤"}.mdi-ferry:before{content:"󰈓"}.mdi-file:before{content:"󰈔"}.mdi-file-account:before{content:"󰜻"}.mdi-file-account-outline:before{content:"󱀨"}.mdi-file-alert:before{content:"󰩋"}.mdi-file-alert-outline:before{content:"󰩌"}.mdi-file-arrow-left-right:before{content:"󱪓"}.mdi-file-arrow-left-right-outline:before{content:"󱪔"}.mdi-file-arrow-up-down:before{content:"󱪕"}.mdi-file-arrow-up-down-outline:before{content:"󱪖"}.mdi-file-cabinet:before{content:"󰪶"}.mdi-file-cad:before{content:"󰻫"}.mdi-file-cad-box:before{content:"󰻬"}.mdi-file-cancel:before{content:"󰷆"}.mdi-file-cancel-outline:before{content:"󰷇"}.mdi-file-certificate:before{content:"󱆆"}.mdi-file-certificate-outline:before{content:"󱆇"}.mdi-file-chart:before{content:"󰈕"}.mdi-file-chart-check:before{content:"󱧆"}.mdi-file-chart-check-outline:before{content:"󱧇"}.mdi-file-chart-outline:before{content:"󱀩"}.mdi-file-check:before{content:"󰈖"}.mdi-file-check-outline:before{content:"󰸩"}.mdi-file-clock:before{content:"󱋡"}.mdi-file-clock-outline:before{content:"󱋢"}.mdi-file-cloud:before{content:"󰈗"}.mdi-file-cloud-outline:before{content:"󱀪"}.mdi-file-code:before{content:"󰈮"}.mdi-file-code-outline:before{content:"󱀫"}.mdi-file-cog:before{content:"󱁻"}.mdi-file-cog-outline:before{content:"󱁼"}.mdi-file-compare:before{content:"󰢪"}.mdi-file-delimited:before{content:"󰈘"}.mdi-file-delimited-outline:before{content:"󰺥"}.mdi-file-document:before{content:"󰈙"}.mdi-file-document-alert:before{content:"󱪗"}.mdi-file-document-alert-outline:before{content:"󱪘"}.mdi-file-document-arrow-right:before{content:"󱰏"}.mdi-file-document-arrow-right-outline:before{content:"󱰐"}.mdi-file-document-check:before{content:"󱪙"}.mdi-file-document-check-outline:before{content:"󱪚"}.mdi-file-document-edit:before{content:"󰷈"}.mdi-file-document-edit-outline:before{content:"󰷉"}.mdi-file-document-minus:before{content:"󱪛"}.mdi-file-document-minus-outline:before{content:"󱪜"}.mdi-file-document-multiple:before{content:"󱔗"}.mdi-file-document-multiple-outline:before{content:"󱔘"}.mdi-file-document-outline:before{content:"󰧮"}.mdi-file-document-plus:before{content:"󱪝"}.mdi-file-document-plus-outline:before{content:"󱪞"}.mdi-file-document-refresh:before{content:"󱱺"}.mdi-file-document-refresh-outline:before{content:"󱱻"}.mdi-file-document-remove:before{content:"󱪟"}.mdi-file-document-remove-outline:before{content:"󱪠"}.mdi-file-download:before{content:"󰥥"}.mdi-file-download-outline:before{content:"󰥦"}.mdi-file-edit:before{content:"󱇧"}.mdi-file-edit-outline:before{content:"󱇨"}.mdi-file-excel:before{content:"󰈛"}.mdi-file-excel-box:before{content:"󰈜"}.mdi-file-excel-box-outline:before{content:"󱀬"}.mdi-file-excel-outline:before{content:"󱀭"}.mdi-file-export:before{content:"󰈝"}.mdi-file-export-outline:before{content:"󱀮"}.mdi-file-eye:before{content:"󰷊"}.mdi-file-eye-outline:before{content:"󰷋"}.mdi-file-find:before{content:"󰈞"}.mdi-file-find-outline:before{content:"󰮗"}.mdi-file-gif-box:before{content:"󰵸"}.mdi-file-hidden:before{content:"󰘓"}.mdi-file-image:before{content:"󰈟"}.mdi-file-image-marker:before{content:"󱝲"}.mdi-file-image-marker-outline:before{content:"󱝳"}.mdi-file-image-minus:before{content:"󱤻"}.mdi-file-image-minus-outline:before{content:"󱤼"}.mdi-file-image-outline:before{content:"󰺰"}.mdi-file-image-plus:before{content:"󱤽"}.mdi-file-image-plus-outline:before{content:"󱤾"}.mdi-file-image-remove:before{content:"󱤿"}.mdi-file-image-remove-outline:before{content:"󱥀"}.mdi-file-import:before{content:"󰈠"}.mdi-file-import-outline:before{content:"󱀯"}.mdi-file-jpg-box:before{content:"󰈥"}.mdi-file-key:before{content:"󱆄"}.mdi-file-key-outline:before{content:"󱆅"}.mdi-file-link:before{content:"󱅷"}.mdi-file-link-outline:before{content:"󱅸"}.mdi-file-lock:before{content:"󰈡"}.mdi-file-lock-open:before{content:"󱧈"}.mdi-file-lock-open-outline:before{content:"󱧉"}.mdi-file-lock-outline:before{content:"󱀰"}.mdi-file-marker:before{content:"󱝴"}.mdi-file-marker-outline:before{content:"󱝵"}.mdi-file-minus:before{content:"󱪡"}.mdi-file-minus-outline:before{content:"󱪢"}.mdi-file-move:before{content:"󰪹"}.mdi-file-move-outline:before{content:"󱀱"}.mdi-file-multiple:before{content:"󰈢"}.mdi-file-multiple-outline:before{content:"󱀲"}.mdi-file-music:before{content:"󰈣"}.mdi-file-music-outline:before{content:"󰸪"}.mdi-file-outline:before{content:"󰈤"}.mdi-file-pdf-box:before{content:"󰈦"}.mdi-file-percent:before{content:"󰠞"}.mdi-file-percent-outline:before{content:"󱀳"}.mdi-file-phone:before{content:"󱅹"}.mdi-file-phone-outline:before{content:"󱅺"}.mdi-file-plus:before{content:"󰝒"}.mdi-file-plus-outline:before{content:"󰻭"}.mdi-file-png-box:before{content:"󰸭"}.mdi-file-powerpoint:before{content:"󰈧"}.mdi-file-powerpoint-box:before{content:"󰈨"}.mdi-file-powerpoint-box-outline:before{content:"󱀴"}.mdi-file-powerpoint-outline:before{content:"󱀵"}.mdi-file-presentation-box:before{content:"󰈩"}.mdi-file-question:before{content:"󰡯"}.mdi-file-question-outline:before{content:"󱀶"}.mdi-file-refresh:before{content:"󰤘"}.mdi-file-refresh-outline:before{content:"󰕁"}.mdi-file-remove:before{content:"󰮘"}.mdi-file-remove-outline:before{content:"󱀷"}.mdi-file-replace:before{content:"󰬲"}.mdi-file-replace-outline:before{content:"󰬳"}.mdi-file-restore:before{content:"󰙰"}.mdi-file-restore-outline:before{content:"󱀸"}.mdi-file-rotate-left:before{content:"󱨻"}.mdi-file-rotate-left-outline:before{content:"󱨼"}.mdi-file-rotate-right:before{content:"󱨽"}.mdi-file-rotate-right-outline:before{content:"󱨾"}.mdi-file-search:before{content:"󰱼"}.mdi-file-search-outline:before{content:"󰱽"}.mdi-file-send:before{content:"󰈪"}.mdi-file-send-outline:before{content:"󱀹"}.mdi-file-settings:before{content:"󱁹"}.mdi-file-settings-outline:before{content:"󱁺"}.mdi-file-sign:before{content:"󱧃"}.mdi-file-star:before{content:"󱀺"}.mdi-file-star-four-points:before{content:"󱰭"}.mdi-file-star-four-points-outline:before{content:"󱰮"}.mdi-file-star-outline:before{content:"󱀻"}.mdi-file-swap:before{content:"󰾴"}.mdi-file-swap-outline:before{content:"󰾵"}.mdi-file-sync:before{content:"󱈖"}.mdi-file-sync-outline:before{content:"󱈗"}.mdi-file-table:before{content:"󰱾"}.mdi-file-table-box:before{content:"󱃡"}.mdi-file-table-box-multiple:before{content:"󱃢"}.mdi-file-table-box-multiple-outline:before{content:"󱃣"}.mdi-file-table-box-outline:before{content:"󱃤"}.mdi-file-table-outline:before{content:"󰱿"}.mdi-file-tree:before{content:"󰙅"}.mdi-file-tree-outline:before{content:"󱏒"}.mdi-file-undo:before{content:"󰣜"}.mdi-file-undo-outline:before{content:"󱀼"}.mdi-file-upload:before{content:"󰩍"}.mdi-file-upload-outline:before{content:"󰩎"}.mdi-file-video:before{content:"󰈫"}.mdi-file-video-outline:before{content:"󰸬"}.mdi-file-word:before{content:"󰈬"}.mdi-file-word-box:before{content:"󰈭"}.mdi-file-word-box-outline:before{content:"󱀽"}.mdi-file-word-outline:before{content:"󱀾"}.mdi-file-xml-box:before{content:"󱭋"}.mdi-film:before{content:"󰈯"}.mdi-filmstrip:before{content:"󰈰"}.mdi-filmstrip-box:before{content:"󰌲"}.mdi-filmstrip-box-multiple:before{content:"󰴘"}.mdi-filmstrip-off:before{content:"󰈱"}.mdi-filter:before{content:"󰈲"}.mdi-filter-check:before{content:"󱣬"}.mdi-filter-check-outline:before{content:"󱣭"}.mdi-filter-cog:before{content:"󱪣"}.mdi-filter-cog-outline:before{content:"󱪤"}.mdi-filter-menu:before{content:"󱃥"}.mdi-filter-menu-outline:before{content:"󱃦"}.mdi-filter-minus:before{content:"󰻮"}.mdi-filter-minus-outline:before{content:"󰻯"}.mdi-filter-multiple:before{content:"󱨿"}.mdi-filter-multiple-outline:before{content:"󱩀"}.mdi-filter-off:before{content:"󱓯"}.mdi-filter-off-outline:before{content:"󱓰"}.mdi-filter-outline:before{content:"󰈳"}.mdi-filter-plus:before{content:"󰻰"}.mdi-filter-plus-outline:before{content:"󰻱"}.mdi-filter-remove:before{content:"󰈴"}.mdi-filter-remove-outline:before{content:"󰈵"}.mdi-filter-settings:before{content:"󱪥"}.mdi-filter-settings-outline:before{content:"󱪦"}.mdi-filter-variant:before{content:"󰈶"}.mdi-filter-variant-minus:before{content:"󱄒"}.mdi-filter-variant-plus:before{content:"󱄓"}.mdi-filter-variant-remove:before{content:"󱀿"}.mdi-finance:before{content:"󰠟"}.mdi-find-replace:before{content:"󰛔"}.mdi-fingerprint:before{content:"󰈷"}.mdi-fingerprint-off:before{content:"󰺱"}.mdi-fire:before{content:"󰈸"}.mdi-fire-alert:before{content:"󱗗"}.mdi-fire-circle:before{content:"󱠇"}.mdi-fire-extinguisher:before{content:"󰻲"}.mdi-fire-hydrant:before{content:"󱄷"}.mdi-fire-hydrant-alert:before{content:"󱄸"}.mdi-fire-hydrant-off:before{content:"󱄹"}.mdi-fire-off:before{content:"󱜢"}.mdi-fire-station:before{content:"󱳃"}.mdi-fire-truck:before{content:"󰢫"}.mdi-firebase:before{content:"󰥧"}.mdi-firefox:before{content:"󰈹"}.mdi-fireplace:before{content:"󰸮"}.mdi-fireplace-off:before{content:"󰸯"}.mdi-firewire:before{content:"󰖾"}.mdi-firework:before{content:"󰸰"}.mdi-firework-off:before{content:"󱜣"}.mdi-fish:before{content:"󰈺"}.mdi-fish-off:before{content:"󱏳"}.mdi-fishbowl:before{content:"󰻳"}.mdi-fishbowl-outline:before{content:"󰻴"}.mdi-fit-to-page:before{content:"󰻵"}.mdi-fit-to-page-outline:before{content:"󰻶"}.mdi-fit-to-screen:before{content:"󱣴"}.mdi-fit-to-screen-outline:before{content:"󱣵"}.mdi-flag:before{content:"󰈻"}.mdi-flag-checkered:before{content:"󰈼"}.mdi-flag-minus:before{content:"󰮙"}.mdi-flag-minus-outline:before{content:"󱂲"}.mdi-flag-off:before{content:"󱣮"}.mdi-flag-off-outline:before{content:"󱣯"}.mdi-flag-outline:before{content:"󰈽"}.mdi-flag-plus:before{content:"󰮚"}.mdi-flag-plus-outline:before{content:"󱂳"}.mdi-flag-remove:before{content:"󰮛"}.mdi-flag-remove-outline:before{content:"󱂴"}.mdi-flag-triangle:before{content:"󰈿"}.mdi-flag-variant:before{content:"󰉀"}.mdi-flag-variant-minus:before{content:"󱮴"}.mdi-flag-variant-minus-outline:before{content:"󱮵"}.mdi-flag-variant-off:before{content:"󱮰"}.mdi-flag-variant-off-outline:before{content:"󱮱"}.mdi-flag-variant-outline:before{content:"󰈾"}.mdi-flag-variant-plus:before{content:"󱮲"}.mdi-flag-variant-plus-outline:before{content:"󱮳"}.mdi-flag-variant-remove:before{content:"󱮶"}.mdi-flag-variant-remove-outline:before{content:"󱮷"}.mdi-flare:before{content:"󰵲"}.mdi-flash:before{content:"󰉁"}.mdi-flash-alert:before{content:"󰻷"}.mdi-flash-alert-outline:before{content:"󰻸"}.mdi-flash-auto:before{content:"󰉂"}.mdi-flash-off:before{content:"󰉃"}.mdi-flash-off-outline:before{content:"󱭅"}.mdi-flash-outline:before{content:"󰛕"}.mdi-flash-red-eye:before{content:"󰙻"}.mdi-flash-triangle:before{content:"󱬝"}.mdi-flash-triangle-outline:before{content:"󱬞"}.mdi-flashlight:before{content:"󰉄"}.mdi-flashlight-off:before{content:"󰉅"}.mdi-flask:before{content:"󰂓"}.mdi-flask-empty:before{content:"󰂔"}.mdi-flask-empty-minus:before{content:"󱈺"}.mdi-flask-empty-minus-outline:before{content:"󱈻"}.mdi-flask-empty-off:before{content:"󱏴"}.mdi-flask-empty-off-outline:before{content:"󱏵"}.mdi-flask-empty-outline:before{content:"󰂕"}.mdi-flask-empty-plus:before{content:"󱈼"}.mdi-flask-empty-plus-outline:before{content:"󱈽"}.mdi-flask-empty-remove:before{content:"󱈾"}.mdi-flask-empty-remove-outline:before{content:"󱈿"}.mdi-flask-minus:before{content:"󱉀"}.mdi-flask-minus-outline:before{content:"󱉁"}.mdi-flask-off:before{content:"󱏶"}.mdi-flask-off-outline:before{content:"󱏷"}.mdi-flask-outline:before{content:"󰂖"}.mdi-flask-plus:before{content:"󱉂"}.mdi-flask-plus-outline:before{content:"󱉃"}.mdi-flask-remove:before{content:"󱉄"}.mdi-flask-remove-outline:before{content:"󱉅"}.mdi-flask-round-bottom:before{content:"󱉋"}.mdi-flask-round-bottom-empty:before{content:"󱉌"}.mdi-flask-round-bottom-empty-outline:before{content:"󱉍"}.mdi-flask-round-bottom-outline:before{content:"󱉎"}.mdi-fleur-de-lis:before{content:"󱌃"}.mdi-flip-horizontal:before{content:"󱃧"}.mdi-flip-to-back:before{content:"󰉇"}.mdi-flip-to-front:before{content:"󰉈"}.mdi-flip-vertical:before{content:"󱃨"}.mdi-floor-lamp:before{content:"󰣝"}.mdi-floor-lamp-dual:before{content:"󱁀"}.mdi-floor-lamp-dual-outline:before{content:"󱟎"}.mdi-floor-lamp-outline:before{content:"󱟈"}.mdi-floor-lamp-torchiere:before{content:"󱝇"}.mdi-floor-lamp-torchiere-outline:before{content:"󱟖"}.mdi-floor-lamp-torchiere-variant:before{content:"󱁁"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"󱟏"}.mdi-floor-plan:before{content:"󰠡"}.mdi-floppy:before{content:"󰉉"}.mdi-floppy-variant:before{content:"󰧯"}.mdi-flower:before{content:"󰉊"}.mdi-flower-outline:before{content:"󰧰"}.mdi-flower-pollen:before{content:"󱢅"}.mdi-flower-pollen-outline:before{content:"󱢆"}.mdi-flower-poppy:before{content:"󰴈"}.mdi-flower-tulip:before{content:"󰧱"}.mdi-flower-tulip-outline:before{content:"󰧲"}.mdi-focus-auto:before{content:"󰽎"}.mdi-focus-field:before{content:"󰽏"}.mdi-focus-field-horizontal:before{content:"󰽐"}.mdi-focus-field-vertical:before{content:"󰽑"}.mdi-folder:before{content:"󰉋"}.mdi-folder-account:before{content:"󰉌"}.mdi-folder-account-outline:before{content:"󰮜"}.mdi-folder-alert:before{content:"󰷌"}.mdi-folder-alert-outline:before{content:"󰷍"}.mdi-folder-arrow-down:before{content:"󱧨"}.mdi-folder-arrow-down-outline:before{content:"󱧩"}.mdi-folder-arrow-left:before{content:"󱧪"}.mdi-folder-arrow-left-outline:before{content:"󱧫"}.mdi-folder-arrow-left-right:before{content:"󱧬"}.mdi-folder-arrow-left-right-outline:before{content:"󱧭"}.mdi-folder-arrow-right:before{content:"󱧮"}.mdi-folder-arrow-right-outline:before{content:"󱧯"}.mdi-folder-arrow-up:before{content:"󱧰"}.mdi-folder-arrow-up-down:before{content:"󱧱"}.mdi-folder-arrow-up-down-outline:before{content:"󱧲"}.mdi-folder-arrow-up-outline:before{content:"󱧳"}.mdi-folder-cancel:before{content:"󱧴"}.mdi-folder-cancel-outline:before{content:"󱧵"}.mdi-folder-check:before{content:"󱥾"}.mdi-folder-check-outline:before{content:"󱥿"}.mdi-folder-clock:before{content:"󰪺"}.mdi-folder-clock-outline:before{content:"󰪻"}.mdi-folder-cog:before{content:"󱁿"}.mdi-folder-cog-outline:before{content:"󱂀"}.mdi-folder-download:before{content:"󰉍"}.mdi-folder-download-outline:before{content:"󱃩"}.mdi-folder-edit:before{content:"󰣞"}.mdi-folder-edit-outline:before{content:"󰷎"}.mdi-folder-eye:before{content:"󱞊"}.mdi-folder-eye-outline:before{content:"󱞋"}.mdi-folder-file:before{content:"󱧶"}.mdi-folder-file-outline:before{content:"󱧷"}.mdi-folder-google-drive:before{content:"󰉎"}.mdi-folder-heart:before{content:"󱃪"}.mdi-folder-heart-outline:before{content:"󱃫"}.mdi-folder-hidden:before{content:"󱞞"}.mdi-folder-home:before{content:"󱂵"}.mdi-folder-home-outline:before{content:"󱂶"}.mdi-folder-image:before{content:"󰉏"}.mdi-folder-information:before{content:"󱂷"}.mdi-folder-information-outline:before{content:"󱂸"}.mdi-folder-key:before{content:"󰢬"}.mdi-folder-key-network:before{content:"󰢭"}.mdi-folder-key-network-outline:before{content:"󰲀"}.mdi-folder-key-outline:before{content:"󱃬"}.mdi-folder-lock:before{content:"󰉐"}.mdi-folder-lock-open:before{content:"󰉑"}.mdi-folder-lock-open-outline:before{content:"󱪧"}.mdi-folder-lock-outline:before{content:"󱪨"}.mdi-folder-marker:before{content:"󱉭"}.mdi-folder-marker-outline:before{content:"󱉮"}.mdi-folder-minus:before{content:"󱭉"}.mdi-folder-minus-outline:before{content:"󱭊"}.mdi-folder-move:before{content:"󰉒"}.mdi-folder-move-outline:before{content:"󱉆"}.mdi-folder-multiple:before{content:"󰉓"}.mdi-folder-multiple-image:before{content:"󰉔"}.mdi-folder-multiple-outline:before{content:"󰉕"}.mdi-folder-multiple-plus:before{content:"󱑾"}.mdi-folder-multiple-plus-outline:before{content:"󱑿"}.mdi-folder-music:before{content:"󱍙"}.mdi-folder-music-outline:before{content:"󱍚"}.mdi-folder-network:before{content:"󰡰"}.mdi-folder-network-outline:before{content:"󰲁"}.mdi-folder-off:before{content:"󱧸"}.mdi-folder-off-outline:before{content:"󱧹"}.mdi-folder-open:before{content:"󰝰"}.mdi-folder-open-outline:before{content:"󰷏"}.mdi-folder-outline:before{content:"󰉖"}.mdi-folder-play:before{content:"󱧺"}.mdi-folder-play-outline:before{content:"󱧻"}.mdi-folder-plus:before{content:"󰉗"}.mdi-folder-plus-outline:before{content:"󰮝"}.mdi-folder-pound:before{content:"󰴉"}.mdi-folder-pound-outline:before{content:"󰴊"}.mdi-folder-question:before{content:"󱧊"}.mdi-folder-question-outline:before{content:"󱧋"}.mdi-folder-refresh:before{content:"󰝉"}.mdi-folder-refresh-outline:before{content:"󰕂"}.mdi-folder-remove:before{content:"󰉘"}.mdi-folder-remove-outline:before{content:"󰮞"}.mdi-folder-search:before{content:"󰥨"}.mdi-folder-search-outline:before{content:"󰥩"}.mdi-folder-settings:before{content:"󱁽"}.mdi-folder-settings-outline:before{content:"󱁾"}.mdi-folder-star:before{content:"󰚝"}.mdi-folder-star-multiple:before{content:"󱏓"}.mdi-folder-star-multiple-outline:before{content:"󱏔"}.mdi-folder-star-outline:before{content:"󰮟"}.mdi-folder-swap:before{content:"󰾶"}.mdi-folder-swap-outline:before{content:"󰾷"}.mdi-folder-sync:before{content:"󰴋"}.mdi-folder-sync-outline:before{content:"󰴌"}.mdi-folder-table:before{content:"󱋣"}.mdi-folder-table-outline:before{content:"󱋤"}.mdi-folder-text:before{content:"󰲂"}.mdi-folder-text-outline:before{content:"󰲃"}.mdi-folder-upload:before{content:"󰉙"}.mdi-folder-upload-outline:before{content:"󱃭"}.mdi-folder-wrench:before{content:"󱧼"}.mdi-folder-wrench-outline:before{content:"󱧽"}.mdi-folder-zip:before{content:"󰛫"}.mdi-folder-zip-outline:before{content:"󰞹"}.mdi-font-awesome:before{content:"󰀺"}.mdi-food:before{content:"󰉚"}.mdi-food-apple:before{content:"󰉛"}.mdi-food-apple-outline:before{content:"󰲄"}.mdi-food-croissant:before{content:"󰟈"}.mdi-food-drumstick:before{content:"󱐟"}.mdi-food-drumstick-off:before{content:"󱑨"}.mdi-food-drumstick-off-outline:before{content:"󱑩"}.mdi-food-drumstick-outline:before{content:"󱐠"}.mdi-food-fork-drink:before{content:"󰗲"}.mdi-food-halal:before{content:"󱕲"}.mdi-food-hot-dog:before{content:"󱡋"}.mdi-food-kosher:before{content:"󱕳"}.mdi-food-off:before{content:"󰗳"}.mdi-food-off-outline:before{content:"󱤕"}.mdi-food-outline:before{content:"󱤖"}.mdi-food-steak:before{content:"󱑪"}.mdi-food-steak-off:before{content:"󱑫"}.mdi-food-takeout-box:before{content:"󱠶"}.mdi-food-takeout-box-outline:before{content:"󱠷"}.mdi-food-turkey:before{content:"󱜜"}.mdi-food-variant:before{content:"󰉜"}.mdi-food-variant-off:before{content:"󱏥"}.mdi-foot-print:before{content:"󰽒"}.mdi-football:before{content:"󰉝"}.mdi-football-australian:before{content:"󰉞"}.mdi-football-helmet:before{content:"󰉟"}.mdi-forest:before{content:"󱢗"}.mdi-forest-outline:before{content:"󱱣"}.mdi-forklift:before{content:"󰟉"}.mdi-form-dropdown:before{content:"󱐀"}.mdi-form-select:before{content:"󱐁"}.mdi-form-textarea:before{content:"󱂕"}.mdi-form-textbox:before{content:"󰘎"}.mdi-form-textbox-lock:before{content:"󱍝"}.mdi-form-textbox-password:before{content:"󰟵"}.mdi-format-align-bottom:before{content:"󰝓"}.mdi-format-align-center:before{content:"󰉠"}.mdi-format-align-justify:before{content:"󰉡"}.mdi-format-align-left:before{content:"󰉢"}.mdi-format-align-middle:before{content:"󰝔"}.mdi-format-align-right:before{content:"󰉣"}.mdi-format-align-top:before{content:"󰝕"}.mdi-format-annotation-minus:before{content:"󰪼"}.mdi-format-annotation-plus:before{content:"󰙆"}.mdi-format-bold:before{content:"󰉤"}.mdi-format-clear:before{content:"󰉥"}.mdi-format-color-fill:before{content:"󰉦"}.mdi-format-color-highlight:before{content:"󰸱"}.mdi-format-color-marker-cancel:before{content:"󱌓"}.mdi-format-color-text:before{content:"󰚞"}.mdi-format-columns:before{content:"󰣟"}.mdi-format-float-center:before{content:"󰉧"}.mdi-format-float-left:before{content:"󰉨"}.mdi-format-float-none:before{content:"󰉩"}.mdi-format-float-right:before{content:"󰉪"}.mdi-format-font:before{content:"󰛖"}.mdi-format-font-size-decrease:before{content:"󰧳"}.mdi-format-font-size-increase:before{content:"󰧴"}.mdi-format-header-1:before{content:"󰉫"}.mdi-format-header-2:before{content:"󰉬"}.mdi-format-header-3:before{content:"󰉭"}.mdi-format-header-4:before{content:"󰉮"}.mdi-format-header-5:before{content:"󰉯"}.mdi-format-header-6:before{content:"󰉰"}.mdi-format-header-decrease:before{content:"󰉱"}.mdi-format-header-equal:before{content:"󰉲"}.mdi-format-header-increase:before{content:"󰉳"}.mdi-format-header-pound:before{content:"󰉴"}.mdi-format-horizontal-align-center:before{content:"󰘞"}.mdi-format-horizontal-align-left:before{content:"󰘟"}.mdi-format-horizontal-align-right:before{content:"󰘠"}.mdi-format-indent-decrease:before{content:"󰉵"}.mdi-format-indent-increase:before{content:"󰉶"}.mdi-format-italic:before{content:"󰉷"}.mdi-format-letter-case:before{content:"󰬴"}.mdi-format-letter-case-lower:before{content:"󰬵"}.mdi-format-letter-case-upper:before{content:"󰬶"}.mdi-format-letter-ends-with:before{content:"󰾸"}.mdi-format-letter-matches:before{content:"󰾹"}.mdi-format-letter-spacing:before{content:"󱥖"}.mdi-format-letter-spacing-variant:before{content:"󱫻"}.mdi-format-letter-starts-with:before{content:"󰾺"}.mdi-format-line-height:before{content:"󱫼"}.mdi-format-line-spacing:before{content:"󰉸"}.mdi-format-line-style:before{content:"󰗈"}.mdi-format-line-weight:before{content:"󰗉"}.mdi-format-list-bulleted:before{content:"󰉹"}.mdi-format-list-bulleted-square:before{content:"󰷐"}.mdi-format-list-bulleted-triangle:before{content:"󰺲"}.mdi-format-list-bulleted-type:before{content:"󰉺"}.mdi-format-list-checkbox:before{content:"󰥪"}.mdi-format-list-checks:before{content:"󰝖"}.mdi-format-list-group:before{content:"󱡠"}.mdi-format-list-group-plus:before{content:"󱭖"}.mdi-format-list-numbered:before{content:"󰉻"}.mdi-format-list-numbered-rtl:before{content:"󰴍"}.mdi-format-list-text:before{content:"󱉯"}.mdi-format-overline:before{content:"󰺳"}.mdi-format-page-break:before{content:"󰛗"}.mdi-format-page-split:before{content:"󱤗"}.mdi-format-paint:before{content:"󰉼"}.mdi-format-paragraph:before{content:"󰉽"}.mdi-format-paragraph-spacing:before{content:"󱫽"}.mdi-format-pilcrow:before{content:"󰛘"}.mdi-format-pilcrow-arrow-left:before{content:"󰊆"}.mdi-format-pilcrow-arrow-right:before{content:"󰊅"}.mdi-format-quote-close:before{content:"󰉾"}.mdi-format-quote-close-outline:before{content:"󱆨"}.mdi-format-quote-open:before{content:"󰝗"}.mdi-format-quote-open-outline:before{content:"󱆧"}.mdi-format-rotate-90:before{content:"󰚪"}.mdi-format-section:before{content:"󰚟"}.mdi-format-size:before{content:"󰉿"}.mdi-format-strikethrough:before{content:"󰊀"}.mdi-format-strikethrough-variant:before{content:"󰊁"}.mdi-format-subscript:before{content:"󰊂"}.mdi-format-superscript:before{content:"󰊃"}.mdi-format-text:before{content:"󰊄"}.mdi-format-text-rotation-angle-down:before{content:"󰾻"}.mdi-format-text-rotation-angle-up:before{content:"󰾼"}.mdi-format-text-rotation-down:before{content:"󰵳"}.mdi-format-text-rotation-down-vertical:before{content:"󰾽"}.mdi-format-text-rotation-none:before{content:"󰵴"}.mdi-format-text-rotation-up:before{content:"󰾾"}.mdi-format-text-rotation-vertical:before{content:"󰾿"}.mdi-format-text-variant:before{content:"󰸲"}.mdi-format-text-variant-outline:before{content:"󱔏"}.mdi-format-text-wrapping-clip:before{content:"󰴎"}.mdi-format-text-wrapping-overflow:before{content:"󰴏"}.mdi-format-text-wrapping-wrap:before{content:"󰴐"}.mdi-format-textbox:before{content:"󰴑"}.mdi-format-title:before{content:"󰗴"}.mdi-format-underline:before{content:"󰊇"}.mdi-format-underline-wavy:before{content:"󱣩"}.mdi-format-vertical-align-bottom:before{content:"󰘡"}.mdi-format-vertical-align-center:before{content:"󰘢"}.mdi-format-vertical-align-top:before{content:"󰘣"}.mdi-format-wrap-inline:before{content:"󰊈"}.mdi-format-wrap-square:before{content:"󰊉"}.mdi-format-wrap-tight:before{content:"󰊊"}.mdi-format-wrap-top-bottom:before{content:"󰊋"}.mdi-forum:before{content:"󰊌"}.mdi-forum-minus:before{content:"󱪩"}.mdi-forum-minus-outline:before{content:"󱪪"}.mdi-forum-outline:before{content:"󰠢"}.mdi-forum-plus:before{content:"󱪫"}.mdi-forum-plus-outline:before{content:"󱪬"}.mdi-forum-remove:before{content:"󱪭"}.mdi-forum-remove-outline:before{content:"󱪮"}.mdi-forward:before{content:"󰊍"}.mdi-forwardburger:before{content:"󰵵"}.mdi-fountain:before{content:"󰥫"}.mdi-fountain-pen:before{content:"󰴒"}.mdi-fountain-pen-tip:before{content:"󰴓"}.mdi-fraction-one-half:before{content:"󱦒"}.mdi-freebsd:before{content:"󰣠"}.mdi-french-fries:before{content:"󱥗"}.mdi-frequently-asked-questions:before{content:"󰺴"}.mdi-fridge:before{content:"󰊐"}.mdi-fridge-alert:before{content:"󱆱"}.mdi-fridge-alert-outline:before{content:"󱆲"}.mdi-fridge-bottom:before{content:"󰊒"}.mdi-fridge-industrial:before{content:"󱗮"}.mdi-fridge-industrial-alert:before{content:"󱗯"}.mdi-fridge-industrial-alert-outline:before{content:"󱗰"}.mdi-fridge-industrial-off:before{content:"󱗱"}.mdi-fridge-industrial-off-outline:before{content:"󱗲"}.mdi-fridge-industrial-outline:before{content:"󱗳"}.mdi-fridge-off:before{content:"󱆯"}.mdi-fridge-off-outline:before{content:"󱆰"}.mdi-fridge-outline:before{content:"󰊏"}.mdi-fridge-top:before{content:"󰊑"}.mdi-fridge-variant:before{content:"󱗴"}.mdi-fridge-variant-alert:before{content:"󱗵"}.mdi-fridge-variant-alert-outline:before{content:"󱗶"}.mdi-fridge-variant-off:before{content:"󱗷"}.mdi-fridge-variant-off-outline:before{content:"󱗸"}.mdi-fridge-variant-outline:before{content:"󱗹"}.mdi-fruit-cherries:before{content:"󱁂"}.mdi-fruit-cherries-off:before{content:"󱏸"}.mdi-fruit-citrus:before{content:"󱁃"}.mdi-fruit-citrus-off:before{content:"󱏹"}.mdi-fruit-grapes:before{content:"󱁄"}.mdi-fruit-grapes-outline:before{content:"󱁅"}.mdi-fruit-pear:before{content:"󱨎"}.mdi-fruit-pineapple:before{content:"󱁆"}.mdi-fruit-watermelon:before{content:"󱁇"}.mdi-fuel:before{content:"󰟊"}.mdi-fuel-cell:before{content:"󱢵"}.mdi-fullscreen:before{content:"󰊓"}.mdi-fullscreen-exit:before{content:"󰊔"}.mdi-function:before{content:"󰊕"}.mdi-function-variant:before{content:"󰡱"}.mdi-furigana-horizontal:before{content:"󱂁"}.mdi-furigana-vertical:before{content:"󱂂"}.mdi-fuse:before{content:"󰲅"}.mdi-fuse-alert:before{content:"󱐭"}.mdi-fuse-blade:before{content:"󰲆"}.mdi-fuse-off:before{content:"󱐬"}.mdi-gamepad:before{content:"󰊖"}.mdi-gamepad-circle:before{content:"󰸳"}.mdi-gamepad-circle-down:before{content:"󰸴"}.mdi-gamepad-circle-left:before{content:"󰸵"}.mdi-gamepad-circle-outline:before{content:"󰸶"}.mdi-gamepad-circle-right:before{content:"󰸷"}.mdi-gamepad-circle-up:before{content:"󰸸"}.mdi-gamepad-down:before{content:"󰸹"}.mdi-gamepad-left:before{content:"󰸺"}.mdi-gamepad-outline:before{content:"󱤙"}.mdi-gamepad-right:before{content:"󰸻"}.mdi-gamepad-round:before{content:"󰸼"}.mdi-gamepad-round-down:before{content:"󰸽"}.mdi-gamepad-round-left:before{content:"󰸾"}.mdi-gamepad-round-outline:before{content:"󰸿"}.mdi-gamepad-round-right:before{content:"󰹀"}.mdi-gamepad-round-up:before{content:"󰹁"}.mdi-gamepad-square:before{content:"󰺵"}.mdi-gamepad-square-outline:before{content:"󰺶"}.mdi-gamepad-up:before{content:"󰹂"}.mdi-gamepad-variant:before{content:"󰊗"}.mdi-gamepad-variant-outline:before{content:"󰺷"}.mdi-gamma:before{content:"󱃮"}.mdi-gantry-crane:before{content:"󰷑"}.mdi-garage:before{content:"󰛙"}.mdi-garage-alert:before{content:"󰡲"}.mdi-garage-alert-variant:before{content:"󱋕"}.mdi-garage-lock:before{content:"󱟻"}.mdi-garage-open:before{content:"󰛚"}.mdi-garage-open-variant:before{content:"󱋔"}.mdi-garage-variant:before{content:"󱋓"}.mdi-garage-variant-lock:before{content:"󱟼"}.mdi-gas-burner:before{content:"󱨛"}.mdi-gas-cylinder:before{content:"󰙇"}.mdi-gas-station:before{content:"󰊘"}.mdi-gas-station-in-use:before{content:"󱳄"}.mdi-gas-station-in-use-outline:before{content:"󱳅"}.mdi-gas-station-off:before{content:"󱐉"}.mdi-gas-station-off-outline:before{content:"󱐊"}.mdi-gas-station-outline:before{content:"󰺸"}.mdi-gate:before{content:"󰊙"}.mdi-gate-alert:before{content:"󱟸"}.mdi-gate-and:before{content:"󰣡"}.mdi-gate-arrow-left:before{content:"󱟷"}.mdi-gate-arrow-right:before{content:"󱅩"}.mdi-gate-buffer:before{content:"󱫾"}.mdi-gate-nand:before{content:"󰣢"}.mdi-gate-nor:before{content:"󰣣"}.mdi-gate-not:before{content:"󰣤"}.mdi-gate-open:before{content:"󱅪"}.mdi-gate-or:before{content:"󰣥"}.mdi-gate-xnor:before{content:"󰣦"}.mdi-gate-xor:before{content:"󰣧"}.mdi-gatsby:before{content:"󰹃"}.mdi-gauge:before{content:"󰊚"}.mdi-gauge-empty:before{content:"󰡳"}.mdi-gauge-full:before{content:"󰡴"}.mdi-gauge-low:before{content:"󰡵"}.mdi-gavel:before{content:"󰊛"}.mdi-gender-female:before{content:"󰊜"}.mdi-gender-male:before{content:"󰊝"}.mdi-gender-male-female:before{content:"󰊞"}.mdi-gender-male-female-variant:before{content:"󱄿"}.mdi-gender-non-binary:before{content:"󱅀"}.mdi-gender-transgender:before{content:"󰊟"}.mdi-generator-mobile:before{content:"󱲊"}.mdi-generator-portable:before{content:"󱲋"}.mdi-generator-stationary:before{content:"󱲌"}.mdi-gentoo:before{content:"󰣨"}.mdi-gesture:before{content:"󰟋"}.mdi-gesture-double-tap:before{content:"󰜼"}.mdi-gesture-pinch:before{content:"󰪽"}.mdi-gesture-spread:before{content:"󰪾"}.mdi-gesture-swipe:before{content:"󰵶"}.mdi-gesture-swipe-down:before{content:"󰜽"}.mdi-gesture-swipe-horizontal:before{content:"󰪿"}.mdi-gesture-swipe-left:before{content:"󰜾"}.mdi-gesture-swipe-right:before{content:"󰜿"}.mdi-gesture-swipe-up:before{content:"󰝀"}.mdi-gesture-swipe-vertical:before{content:"󰫀"}.mdi-gesture-tap:before{content:"󰝁"}.mdi-gesture-tap-box:before{content:"󱊩"}.mdi-gesture-tap-button:before{content:"󱊨"}.mdi-gesture-tap-hold:before{content:"󰵷"}.mdi-gesture-two-double-tap:before{content:"󰝂"}.mdi-gesture-two-tap:before{content:"󰝃"}.mdi-ghost:before{content:"󰊠"}.mdi-ghost-off:before{content:"󰧵"}.mdi-ghost-off-outline:before{content:"󱙜"}.mdi-ghost-outline:before{content:"󱙝"}.mdi-gift:before{content:"󰹄"}.mdi-gift-off:before{content:"󱛯"}.mdi-gift-off-outline:before{content:"󱛰"}.mdi-gift-open:before{content:"󱛱"}.mdi-gift-open-outline:before{content:"󱛲"}.mdi-gift-outline:before{content:"󰊡"}.mdi-git:before{content:"󰊢"}.mdi-github:before{content:"󰊤"}.mdi-gitlab:before{content:"󰮠"}.mdi-glass-cocktail:before{content:"󰍖"}.mdi-glass-cocktail-off:before{content:"󱗦"}.mdi-glass-flute:before{content:"󰊥"}.mdi-glass-fragile:before{content:"󱡳"}.mdi-glass-mug:before{content:"󰊦"}.mdi-glass-mug-off:before{content:"󱗧"}.mdi-glass-mug-variant:before{content:"󱄖"}.mdi-glass-mug-variant-off:before{content:"󱗨"}.mdi-glass-pint-outline:before{content:"󱌍"}.mdi-glass-stange:before{content:"󰊧"}.mdi-glass-tulip:before{content:"󰊨"}.mdi-glass-wine:before{content:"󰡶"}.mdi-glasses:before{content:"󰊪"}.mdi-globe-light:before{content:"󰙯"}.mdi-globe-light-outline:before{content:"󱋗"}.mdi-globe-model:before{content:"󰣩"}.mdi-gmail:before{content:"󰊫"}.mdi-gnome:before{content:"󰊬"}.mdi-go-kart:before{content:"󰵹"}.mdi-go-kart-track:before{content:"󰵺"}.mdi-gog:before{content:"󰮡"}.mdi-gold:before{content:"󱉏"}.mdi-golf:before{content:"󰠣"}.mdi-golf-cart:before{content:"󱆤"}.mdi-golf-tee:before{content:"󱂃"}.mdi-gondola:before{content:"󰚆"}.mdi-goodreads:before{content:"󰵻"}.mdi-google:before{content:"󰊭"}.mdi-google-ads:before{content:"󰲇"}.mdi-google-analytics:before{content:"󰟌"}.mdi-google-assistant:before{content:"󰟍"}.mdi-google-cardboard:before{content:"󰊮"}.mdi-google-chrome:before{content:"󰊯"}.mdi-google-circles:before{content:"󰊰"}.mdi-google-circles-communities:before{content:"󰊱"}.mdi-google-circles-extended:before{content:"󰊲"}.mdi-google-circles-group:before{content:"󰊳"}.mdi-google-classroom:before{content:"󰋀"}.mdi-google-cloud:before{content:"󱇶"}.mdi-google-downasaur:before{content:"󱍢"}.mdi-google-drive:before{content:"󰊶"}.mdi-google-earth:before{content:"󰊷"}.mdi-google-fit:before{content:"󰥬"}.mdi-google-glass:before{content:"󰊸"}.mdi-google-hangouts:before{content:"󰋉"}.mdi-google-keep:before{content:"󰛜"}.mdi-google-lens:before{content:"󰧶"}.mdi-google-maps:before{content:"󰗵"}.mdi-google-my-business:before{content:"󱁈"}.mdi-google-nearby:before{content:"󰊹"}.mdi-google-play:before{content:"󰊼"}.mdi-google-plus:before{content:"󰊽"}.mdi-google-podcast:before{content:"󰺹"}.mdi-google-spreadsheet:before{content:"󰧷"}.mdi-google-street-view:before{content:"󰲈"}.mdi-google-translate:before{content:"󰊿"}.mdi-gradient-horizontal:before{content:"󱝊"}.mdi-gradient-vertical:before{content:"󰚠"}.mdi-grain:before{content:"󰵼"}.mdi-graph:before{content:"󱁉"}.mdi-graph-outline:before{content:"󱁊"}.mdi-graphql:before{content:"󰡷"}.mdi-grass:before{content:"󱔐"}.mdi-grave-stone:before{content:"󰮢"}.mdi-grease-pencil:before{content:"󰙈"}.mdi-greater-than:before{content:"󰥭"}.mdi-greater-than-or-equal:before{content:"󰥮"}.mdi-greenhouse:before{content:"󰀭"}.mdi-grid:before{content:"󰋁"}.mdi-grid-large:before{content:"󰝘"}.mdi-grid-off:before{content:"󰋂"}.mdi-grill:before{content:"󰹅"}.mdi-grill-outline:before{content:"󱆊"}.mdi-group:before{content:"󰋃"}.mdi-guitar-acoustic:before{content:"󰝱"}.mdi-guitar-electric:before{content:"󰋄"}.mdi-guitar-pick:before{content:"󰋅"}.mdi-guitar-pick-outline:before{content:"󰋆"}.mdi-guy-fawkes-mask:before{content:"󰠥"}.mdi-gymnastics:before{content:"󱩁"}.mdi-hail:before{content:"󰫁"}.mdi-hair-dryer:before{content:"󱃯"}.mdi-hair-dryer-outline:before{content:"󱃰"}.mdi-halloween:before{content:"󰮣"}.mdi-hamburger:before{content:"󰚅"}.mdi-hamburger-check:before{content:"󱝶"}.mdi-hamburger-minus:before{content:"󱝷"}.mdi-hamburger-off:before{content:"󱝸"}.mdi-hamburger-plus:before{content:"󱝹"}.mdi-hamburger-remove:before{content:"󱝺"}.mdi-hammer:before{content:"󰣪"}.mdi-hammer-screwdriver:before{content:"󱌢"}.mdi-hammer-sickle:before{content:"󱢇"}.mdi-hammer-wrench:before{content:"󱌣"}.mdi-hand-back-left:before{content:"󰹆"}.mdi-hand-back-left-off:before{content:"󱠰"}.mdi-hand-back-left-off-outline:before{content:"󱠲"}.mdi-hand-back-left-outline:before{content:"󱠬"}.mdi-hand-back-right:before{content:"󰹇"}.mdi-hand-back-right-off:before{content:"󱠱"}.mdi-hand-back-right-off-outline:before{content:"󱠳"}.mdi-hand-back-right-outline:before{content:"󱠭"}.mdi-hand-clap:before{content:"󱥋"}.mdi-hand-clap-off:before{content:"󱩂"}.mdi-hand-coin:before{content:"󱢏"}.mdi-hand-coin-outline:before{content:"󱢐"}.mdi-hand-cycle:before{content:"󱮜"}.mdi-hand-extended:before{content:"󱢶"}.mdi-hand-extended-outline:before{content:"󱢷"}.mdi-hand-front-left:before{content:"󱠫"}.mdi-hand-front-left-outline:before{content:"󱠮"}.mdi-hand-front-right:before{content:"󰩏"}.mdi-hand-front-right-outline:before{content:"󱠯"}.mdi-hand-heart:before{content:"󱃱"}.mdi-hand-heart-outline:before{content:"󱕾"}.mdi-hand-okay:before{content:"󰩐"}.mdi-hand-peace:before{content:"󰩑"}.mdi-hand-peace-variant:before{content:"󰩒"}.mdi-hand-pointing-down:before{content:"󰩓"}.mdi-hand-pointing-left:before{content:"󰩔"}.mdi-hand-pointing-right:before{content:"󰋇"}.mdi-hand-pointing-up:before{content:"󰩕"}.mdi-hand-saw:before{content:"󰹈"}.mdi-hand-wash:before{content:"󱕿"}.mdi-hand-wash-outline:before{content:"󱖀"}.mdi-hand-water:before{content:"󱎟"}.mdi-hand-wave:before{content:"󱠡"}.mdi-hand-wave-outline:before{content:"󱠢"}.mdi-handball:before{content:"󰽓"}.mdi-handcuffs:before{content:"󱄾"}.mdi-hands-pray:before{content:"󰕹"}.mdi-handshake:before{content:"󱈘"}.mdi-handshake-outline:before{content:"󱖡"}.mdi-hanger:before{content:"󰋈"}.mdi-hard-hat:before{content:"󰥯"}.mdi-harddisk:before{content:"󰋊"}.mdi-harddisk-plus:before{content:"󱁋"}.mdi-harddisk-remove:before{content:"󱁌"}.mdi-hat-fedora:before{content:"󰮤"}.mdi-hazard-lights:before{content:"󰲉"}.mdi-hdmi-port:before{content:"󱮸"}.mdi-hdr:before{content:"󰵽"}.mdi-hdr-off:before{content:"󰵾"}.mdi-head:before{content:"󱍞"}.mdi-head-alert:before{content:"󱌸"}.mdi-head-alert-outline:before{content:"󱌹"}.mdi-head-check:before{content:"󱌺"}.mdi-head-check-outline:before{content:"󱌻"}.mdi-head-cog:before{content:"󱌼"}.mdi-head-cog-outline:before{content:"󱌽"}.mdi-head-dots-horizontal:before{content:"󱌾"}.mdi-head-dots-horizontal-outline:before{content:"󱌿"}.mdi-head-flash:before{content:"󱍀"}.mdi-head-flash-outline:before{content:"󱍁"}.mdi-head-heart:before{content:"󱍂"}.mdi-head-heart-outline:before{content:"󱍃"}.mdi-head-lightbulb:before{content:"󱍄"}.mdi-head-lightbulb-outline:before{content:"󱍅"}.mdi-head-minus:before{content:"󱍆"}.mdi-head-minus-outline:before{content:"󱍇"}.mdi-head-outline:before{content:"󱍟"}.mdi-head-plus:before{content:"󱍈"}.mdi-head-plus-outline:before{content:"󱍉"}.mdi-head-question:before{content:"󱍊"}.mdi-head-question-outline:before{content:"󱍋"}.mdi-head-remove:before{content:"󱍌"}.mdi-head-remove-outline:before{content:"󱍍"}.mdi-head-snowflake:before{content:"󱍎"}.mdi-head-snowflake-outline:before{content:"󱍏"}.mdi-head-sync:before{content:"󱍐"}.mdi-head-sync-outline:before{content:"󱍑"}.mdi-headphones:before{content:"󰋋"}.mdi-headphones-bluetooth:before{content:"󰥰"}.mdi-headphones-box:before{content:"󰋌"}.mdi-headphones-off:before{content:"󰟎"}.mdi-headphones-settings:before{content:"󰋍"}.mdi-headset:before{content:"󰋎"}.mdi-headset-dock:before{content:"󰋏"}.mdi-headset-off:before{content:"󰋐"}.mdi-heart:before{content:"󰋑"}.mdi-heart-box:before{content:"󰋒"}.mdi-heart-box-outline:before{content:"󰋓"}.mdi-heart-broken:before{content:"󰋔"}.mdi-heart-broken-outline:before{content:"󰴔"}.mdi-heart-circle:before{content:"󰥱"}.mdi-heart-circle-outline:before{content:"󰥲"}.mdi-heart-cog:before{content:"󱙣"}.mdi-heart-cog-outline:before{content:"󱙤"}.mdi-heart-flash:before{content:"󰻹"}.mdi-heart-half:before{content:"󰛟"}.mdi-heart-half-full:before{content:"󰛞"}.mdi-heart-half-outline:before{content:"󰛠"}.mdi-heart-minus:before{content:"󱐯"}.mdi-heart-minus-outline:before{content:"󱐲"}.mdi-heart-multiple:before{content:"󰩖"}.mdi-heart-multiple-outline:before{content:"󰩗"}.mdi-heart-off:before{content:"󰝙"}.mdi-heart-off-outline:before{content:"󱐴"}.mdi-heart-outline:before{content:"󰋕"}.mdi-heart-plus:before{content:"󱐮"}.mdi-heart-plus-outline:before{content:"󱐱"}.mdi-heart-pulse:before{content:"󰗶"}.mdi-heart-remove:before{content:"󱐰"}.mdi-heart-remove-outline:before{content:"󱐳"}.mdi-heart-search:before{content:"󱲍"}.mdi-heart-settings:before{content:"󱙥"}.mdi-heart-settings-outline:before{content:"󱙦"}.mdi-heat-pump:before{content:"󱩃"}.mdi-heat-pump-outline:before{content:"󱩄"}.mdi-heat-wave:before{content:"󱩅"}.mdi-heating-coil:before{content:"󱪯"}.mdi-helicopter:before{content:"󰫂"}.mdi-help:before{content:"󰋖"}.mdi-help-box:before{content:"󰞋"}.mdi-help-box-multiple:before{content:"󱰊"}.mdi-help-box-multiple-outline:before{content:"󱰋"}.mdi-help-box-outline:before{content:"󱰌"}.mdi-help-circle:before{content:"󰋗"}.mdi-help-circle-outline:before{content:"󰘥"}.mdi-help-network:before{content:"󰛵"}.mdi-help-network-outline:before{content:"󰲊"}.mdi-help-rhombus:before{content:"󰮥"}.mdi-help-rhombus-outline:before{content:"󰮦"}.mdi-hexadecimal:before{content:"󱊧"}.mdi-hexagon:before{content:"󰋘"}.mdi-hexagon-multiple:before{content:"󰛡"}.mdi-hexagon-multiple-outline:before{content:"󱃲"}.mdi-hexagon-outline:before{content:"󰋙"}.mdi-hexagon-slice-1:before{content:"󰫃"}.mdi-hexagon-slice-2:before{content:"󰫄"}.mdi-hexagon-slice-3:before{content:"󰫅"}.mdi-hexagon-slice-4:before{content:"󰫆"}.mdi-hexagon-slice-5:before{content:"󰫇"}.mdi-hexagon-slice-6:before{content:"󰫈"}.mdi-hexagram:before{content:"󰫉"}.mdi-hexagram-outline:before{content:"󰫊"}.mdi-high-definition:before{content:"󰟏"}.mdi-high-definition-box:before{content:"󰡸"}.mdi-highway:before{content:"󰗷"}.mdi-hiking:before{content:"󰵿"}.mdi-history:before{content:"󰋚"}.mdi-hockey-puck:before{content:"󰡹"}.mdi-hockey-sticks:before{content:"󰡺"}.mdi-hololens:before{content:"󰋛"}.mdi-home:before{content:"󰋜"}.mdi-home-account:before{content:"󰠦"}.mdi-home-alert:before{content:"󰡻"}.mdi-home-alert-outline:before{content:"󱗐"}.mdi-home-analytics:before{content:"󰺺"}.mdi-home-assistant:before{content:"󰟐"}.mdi-home-automation:before{content:"󰟑"}.mdi-home-battery:before{content:"󱤁"}.mdi-home-battery-outline:before{content:"󱤂"}.mdi-home-circle:before{content:"󰟒"}.mdi-home-circle-outline:before{content:"󱁍"}.mdi-home-city:before{content:"󰴕"}.mdi-home-city-outline:before{content:"󰴖"}.mdi-home-clock:before{content:"󱨒"}.mdi-home-clock-outline:before{content:"󱨓"}.mdi-home-edit:before{content:"󱅙"}.mdi-home-edit-outline:before{content:"󱅚"}.mdi-home-export-outline:before{content:"󰾛"}.mdi-home-flood:before{content:"󰻺"}.mdi-home-floor-0:before{content:"󰷒"}.mdi-home-floor-1:before{content:"󰶀"}.mdi-home-floor-2:before{content:"󰶁"}.mdi-home-floor-3:before{content:"󰶂"}.mdi-home-floor-a:before{content:"󰶃"}.mdi-home-floor-b:before{content:"󰶄"}.mdi-home-floor-g:before{content:"󰶅"}.mdi-home-floor-l:before{content:"󰶆"}.mdi-home-floor-negative-1:before{content:"󰷓"}.mdi-home-group:before{content:"󰷔"}.mdi-home-group-minus:before{content:"󱧁"}.mdi-home-group-plus:before{content:"󱧀"}.mdi-home-group-remove:before{content:"󱧂"}.mdi-home-heart:before{content:"󰠧"}.mdi-home-import-outline:before{content:"󰾜"}.mdi-home-lightbulb:before{content:"󱉑"}.mdi-home-lightbulb-outline:before{content:"󱉒"}.mdi-home-lightning-bolt:before{content:"󱤃"}.mdi-home-lightning-bolt-outline:before{content:"󱤄"}.mdi-home-lock:before{content:"󰣫"}.mdi-home-lock-open:before{content:"󰣬"}.mdi-home-map-marker:before{content:"󰗸"}.mdi-home-minus:before{content:"󰥴"}.mdi-home-minus-outline:before{content:"󱏕"}.mdi-home-modern:before{content:"󰋝"}.mdi-home-off:before{content:"󱩆"}.mdi-home-off-outline:before{content:"󱩇"}.mdi-home-outline:before{content:"󰚡"}.mdi-home-percent:before{content:"󱱼"}.mdi-home-percent-outline:before{content:"󱱽"}.mdi-home-plus:before{content:"󰥵"}.mdi-home-plus-outline:before{content:"󱏖"}.mdi-home-remove:before{content:"󱉇"}.mdi-home-remove-outline:before{content:"󱏗"}.mdi-home-roof:before{content:"󱄫"}.mdi-home-search:before{content:"󱎰"}.mdi-home-search-outline:before{content:"󱎱"}.mdi-home-silo:before{content:"󱮠"}.mdi-home-silo-outline:before{content:"󱮡"}.mdi-home-sound-in:before{content:"󱰯"}.mdi-home-sound-in-outline:before{content:"󱰰"}.mdi-home-sound-out:before{content:"󱰱"}.mdi-home-sound-out-outline:before{content:"󱰲"}.mdi-home-switch:before{content:"󱞔"}.mdi-home-switch-outline:before{content:"󱞕"}.mdi-home-thermometer:before{content:"󰽔"}.mdi-home-thermometer-outline:before{content:"󰽕"}.mdi-home-variant:before{content:"󰋞"}.mdi-home-variant-outline:before{content:"󰮧"}.mdi-hook:before{content:"󰛢"}.mdi-hook-off:before{content:"󰛣"}.mdi-hoop-house:before{content:"󰹖"}.mdi-hops:before{content:"󰋟"}.mdi-horizontal-rotate-clockwise:before{content:"󱃳"}.mdi-horizontal-rotate-counterclockwise:before{content:"󱃴"}.mdi-horse:before{content:"󱖿"}.mdi-horse-human:before{content:"󱗀"}.mdi-horse-variant:before{content:"󱗁"}.mdi-horse-variant-fast:before{content:"󱡮"}.mdi-horseshoe:before{content:"󰩘"}.mdi-hospital:before{content:"󰿶"}.mdi-hospital-box:before{content:"󰋠"}.mdi-hospital-box-outline:before{content:"󰿷"}.mdi-hospital-building:before{content:"󰋡"}.mdi-hospital-marker:before{content:"󰋢"}.mdi-hot-tub:before{content:"󰠨"}.mdi-hours-12:before{content:"󱲔"}.mdi-hours-24:before{content:"󱑸"}.mdi-hub:before{content:"󱲕"}.mdi-hub-outline:before{content:"󱲖"}.mdi-hubspot:before{content:"󰴗"}.mdi-hulu:before{content:"󰠩"}.mdi-human:before{content:"󰋦"}.mdi-human-baby-changing-table:before{content:"󱎋"}.mdi-human-cane:before{content:"󱖁"}.mdi-human-capacity-decrease:before{content:"󱖛"}.mdi-human-capacity-increase:before{content:"󱖜"}.mdi-human-child:before{content:"󰋧"}.mdi-human-dolly:before{content:"󱦀"}.mdi-human-edit:before{content:"󱓨"}.mdi-human-female:before{content:"󰙉"}.mdi-human-female-boy:before{content:"󰩙"}.mdi-human-female-dance:before{content:"󱗉"}.mdi-human-female-female:before{content:"󰩚"}.mdi-human-female-female-child:before{content:"󱲎"}.mdi-human-female-girl:before{content:"󰩛"}.mdi-human-greeting:before{content:"󱟄"}.mdi-human-greeting-proximity:before{content:"󱖝"}.mdi-human-greeting-variant:before{content:"󰙊"}.mdi-human-handsdown:before{content:"󰙋"}.mdi-human-handsup:before{content:"󰙌"}.mdi-human-male:before{content:"󰙍"}.mdi-human-male-board:before{content:"󰢐"}.mdi-human-male-board-poll:before{content:"󰡆"}.mdi-human-male-boy:before{content:"󰩜"}.mdi-human-male-child:before{content:"󱎌"}.mdi-human-male-female:before{content:"󰋨"}.mdi-human-male-female-child:before{content:"󱠣"}.mdi-human-male-girl:before{content:"󰩝"}.mdi-human-male-height:before{content:"󰻻"}.mdi-human-male-height-variant:before{content:"󰻼"}.mdi-human-male-male:before{content:"󰩞"}.mdi-human-male-male-child:before{content:"󱲏"}.mdi-human-non-binary:before{content:"󱡈"}.mdi-human-pregnant:before{content:"󰗏"}.mdi-human-queue:before{content:"󱕱"}.mdi-human-scooter:before{content:"󱇩"}.mdi-human-walker:before{content:"󱭱"}.mdi-human-wheelchair:before{content:"󱎍"}.mdi-human-white-cane:before{content:"󱦁"}.mdi-humble-bundle:before{content:"󰝄"}.mdi-hvac:before{content:"󱍒"}.mdi-hvac-off:before{content:"󱖞"}.mdi-hydraulic-oil-level:before{content:"󱌤"}.mdi-hydraulic-oil-temperature:before{content:"󱌥"}.mdi-hydro-power:before{content:"󱋥"}.mdi-hydrogen-station:before{content:"󱢔"}.mdi-ice-cream:before{content:"󰠪"}.mdi-ice-cream-off:before{content:"󰹒"}.mdi-ice-pop:before{content:"󰻽"}.mdi-id-card:before{content:"󰿀"}.mdi-identifier:before{content:"󰻾"}.mdi-ideogram-cjk:before{content:"󱌱"}.mdi-ideogram-cjk-variant:before{content:"󱌲"}.mdi-image:before{content:"󰋩"}.mdi-image-album:before{content:"󰋪"}.mdi-image-area:before{content:"󰋫"}.mdi-image-area-close:before{content:"󰋬"}.mdi-image-auto-adjust:before{content:"󰿁"}.mdi-image-broken:before{content:"󰋭"}.mdi-image-broken-variant:before{content:"󰋮"}.mdi-image-check:before{content:"󱬥"}.mdi-image-check-outline:before{content:"󱬦"}.mdi-image-edit:before{content:"󱇣"}.mdi-image-edit-outline:before{content:"󱇤"}.mdi-image-filter-black-white:before{content:"󰋰"}.mdi-image-filter-center-focus:before{content:"󰋱"}.mdi-image-filter-center-focus-strong:before{content:"󰻿"}.mdi-image-filter-center-focus-strong-outline:before{content:"󰼀"}.mdi-image-filter-center-focus-weak:before{content:"󰋲"}.mdi-image-filter-drama:before{content:"󰋳"}.mdi-image-filter-drama-outline:before{content:"󱯿"}.mdi-image-filter-frames:before{content:"󰋴"}.mdi-image-filter-hdr:before{content:"󰋵"}.mdi-image-filter-hdr-outline:before{content:"󱱤"}.mdi-image-filter-none:before{content:"󰋶"}.mdi-image-filter-tilt-shift:before{content:"󰋷"}.mdi-image-filter-vintage:before{content:"󰋸"}.mdi-image-frame:before{content:"󰹉"}.mdi-image-lock:before{content:"󱪰"}.mdi-image-lock-outline:before{content:"󱪱"}.mdi-image-marker:before{content:"󱝻"}.mdi-image-marker-outline:before{content:"󱝼"}.mdi-image-minus:before{content:"󱐙"}.mdi-image-minus-outline:before{content:"󱭇"}.mdi-image-move:before{content:"󰧸"}.mdi-image-multiple:before{content:"󰋹"}.mdi-image-multiple-outline:before{content:"󰋯"}.mdi-image-off:before{content:"󰠫"}.mdi-image-off-outline:before{content:"󱇑"}.mdi-image-outline:before{content:"󰥶"}.mdi-image-plus:before{content:"󰡼"}.mdi-image-plus-outline:before{content:"󱭆"}.mdi-image-refresh:before{content:"󱧾"}.mdi-image-refresh-outline:before{content:"󱧿"}.mdi-image-remove:before{content:"󱐘"}.mdi-image-remove-outline:before{content:"󱭈"}.mdi-image-search:before{content:"󰥷"}.mdi-image-search-outline:before{content:"󰥸"}.mdi-image-size-select-actual:before{content:"󰲍"}.mdi-image-size-select-large:before{content:"󰲎"}.mdi-image-size-select-small:before{content:"󰲏"}.mdi-image-sync:before{content:"󱨀"}.mdi-image-sync-outline:before{content:"󱨁"}.mdi-image-text:before{content:"󱘍"}.mdi-import:before{content:"󰋺"}.mdi-inbox:before{content:"󰚇"}.mdi-inbox-arrow-down:before{content:"󰋻"}.mdi-inbox-arrow-down-outline:before{content:"󱉰"}.mdi-inbox-arrow-up:before{content:"󰏑"}.mdi-inbox-arrow-up-outline:before{content:"󱉱"}.mdi-inbox-full:before{content:"󱉲"}.mdi-inbox-full-outline:before{content:"󱉳"}.mdi-inbox-multiple:before{content:"󰢰"}.mdi-inbox-multiple-outline:before{content:"󰮨"}.mdi-inbox-outline:before{content:"󱉴"}.mdi-inbox-remove:before{content:"󱖟"}.mdi-inbox-remove-outline:before{content:"󱖠"}.mdi-incognito:before{content:"󰗹"}.mdi-incognito-circle:before{content:"󱐡"}.mdi-incognito-circle-off:before{content:"󱐢"}.mdi-incognito-off:before{content:"󰁵"}.mdi-induction:before{content:"󱡌"}.mdi-infinity:before{content:"󰛤"}.mdi-information:before{content:"󰋼"}.mdi-information-box:before{content:"󱱥"}.mdi-information-box-outline:before{content:"󱱦"}.mdi-information-off:before{content:"󱞌"}.mdi-information-off-outline:before{content:"󱞍"}.mdi-information-outline:before{content:"󰋽"}.mdi-information-slab-box:before{content:"󱱧"}.mdi-information-slab-box-outline:before{content:"󱱨"}.mdi-information-slab-circle:before{content:"󱱩"}.mdi-information-slab-circle-outline:before{content:"󱱪"}.mdi-information-slab-symbol:before{content:"󱱫"}.mdi-information-symbol:before{content:"󱱬"}.mdi-information-variant:before{content:"󰙎"}.mdi-information-variant-box:before{content:"󱱭"}.mdi-information-variant-box-outline:before{content:"󱱮"}.mdi-information-variant-circle:before{content:"󱱯"}.mdi-information-variant-circle-outline:before{content:"󱱰"}.mdi-instagram:before{content:"󰋾"}.mdi-instrument-triangle:before{content:"󱁎"}.mdi-integrated-circuit-chip:before{content:"󱤓"}.mdi-invert-colors:before{content:"󰌁"}.mdi-invert-colors-off:before{content:"󰹊"}.mdi-iobroker:before{content:"󱋨"}.mdi-ip:before{content:"󰩟"}.mdi-ip-network:before{content:"󰩠"}.mdi-ip-network-outline:before{content:"󰲐"}.mdi-ip-outline:before{content:"󱦂"}.mdi-ipod:before{content:"󰲑"}.mdi-iron:before{content:"󱠤"}.mdi-iron-board:before{content:"󱠸"}.mdi-iron-outline:before{content:"󱠥"}.mdi-island:before{content:"󱁏"}.mdi-island-variant:before{content:"󱳆"}.mdi-iv-bag:before{content:"󱂹"}.mdi-jabber:before{content:"󰷕"}.mdi-jeepney:before{content:"󰌂"}.mdi-jellyfish:before{content:"󰼁"}.mdi-jellyfish-outline:before{content:"󰼂"}.mdi-jira:before{content:"󰌃"}.mdi-jquery:before{content:"󰡽"}.mdi-jsfiddle:before{content:"󰌄"}.mdi-jump-rope:before{content:"󱋿"}.mdi-kabaddi:before{content:"󰶇"}.mdi-kangaroo:before{content:"󱕘"}.mdi-karate:before{content:"󰠬"}.mdi-kayaking:before{content:"󰢯"}.mdi-keg:before{content:"󰌅"}.mdi-kettle:before{content:"󰗺"}.mdi-kettle-alert:before{content:"󱌗"}.mdi-kettle-alert-outline:before{content:"󱌘"}.mdi-kettle-off:before{content:"󱌛"}.mdi-kettle-off-outline:before{content:"󱌜"}.mdi-kettle-outline:before{content:"󰽖"}.mdi-kettle-pour-over:before{content:"󱜼"}.mdi-kettle-steam:before{content:"󱌙"}.mdi-kettle-steam-outline:before{content:"󱌚"}.mdi-kettlebell:before{content:"󱌀"}.mdi-key:before{content:"󰌆"}.mdi-key-alert:before{content:"󱦃"}.mdi-key-alert-outline:before{content:"󱦄"}.mdi-key-arrow-right:before{content:"󱌒"}.mdi-key-chain:before{content:"󱕴"}.mdi-key-chain-variant:before{content:"󱕵"}.mdi-key-change:before{content:"󰌇"}.mdi-key-link:before{content:"󱆟"}.mdi-key-minus:before{content:"󰌈"}.mdi-key-outline:before{content:"󰷖"}.mdi-key-plus:before{content:"󰌉"}.mdi-key-remove:before{content:"󰌊"}.mdi-key-star:before{content:"󱆞"}.mdi-key-variant:before{content:"󰌋"}.mdi-key-wireless:before{content:"󰿂"}.mdi-keyboard:before{content:"󰌌"}.mdi-keyboard-backspace:before{content:"󰌍"}.mdi-keyboard-caps:before{content:"󰌎"}.mdi-keyboard-close:before{content:"󰌏"}.mdi-keyboard-close-outline:before{content:"󱰀"}.mdi-keyboard-esc:before{content:"󱊷"}.mdi-keyboard-f1:before{content:"󱊫"}.mdi-keyboard-f10:before{content:"󱊴"}.mdi-keyboard-f11:before{content:"󱊵"}.mdi-keyboard-f12:before{content:"󱊶"}.mdi-keyboard-f2:before{content:"󱊬"}.mdi-keyboard-f3:before{content:"󱊭"}.mdi-keyboard-f4:before{content:"󱊮"}.mdi-keyboard-f5:before{content:"󱊯"}.mdi-keyboard-f6:before{content:"󱊰"}.mdi-keyboard-f7:before{content:"󱊱"}.mdi-keyboard-f8:before{content:"󱊲"}.mdi-keyboard-f9:before{content:"󱊳"}.mdi-keyboard-off:before{content:"󰌐"}.mdi-keyboard-off-outline:before{content:"󰹋"}.mdi-keyboard-outline:before{content:"󰥻"}.mdi-keyboard-return:before{content:"󰌑"}.mdi-keyboard-settings:before{content:"󰧹"}.mdi-keyboard-settings-outline:before{content:"󰧺"}.mdi-keyboard-space:before{content:"󱁐"}.mdi-keyboard-tab:before{content:"󰌒"}.mdi-keyboard-tab-reverse:before{content:"󰌥"}.mdi-keyboard-variant:before{content:"󰌓"}.mdi-khanda:before{content:"󱃽"}.mdi-kickstarter:before{content:"󰝅"}.mdi-kite:before{content:"󱦅"}.mdi-kite-outline:before{content:"󱦆"}.mdi-kitesurfing:before{content:"󱝄"}.mdi-klingon:before{content:"󱍛"}.mdi-knife:before{content:"󰧻"}.mdi-knife-military:before{content:"󰧼"}.mdi-knob:before{content:"󱮖"}.mdi-koala:before{content:"󱜿"}.mdi-kodi:before{content:"󰌔"}.mdi-kubernetes:before{content:"󱃾"}.mdi-label:before{content:"󰌕"}.mdi-label-multiple:before{content:"󱍵"}.mdi-label-multiple-outline:before{content:"󱍶"}.mdi-label-off:before{content:"󰫋"}.mdi-label-off-outline:before{content:"󰫌"}.mdi-label-outline:before{content:"󰌖"}.mdi-label-percent:before{content:"󱋪"}.mdi-label-percent-outline:before{content:"󱋫"}.mdi-label-variant:before{content:"󰫍"}.mdi-label-variant-outline:before{content:"󰫎"}.mdi-ladder:before{content:"󱖢"}.mdi-ladybug:before{content:"󰠭"}.mdi-lambda:before{content:"󰘧"}.mdi-lamp:before{content:"󰚵"}.mdi-lamp-outline:before{content:"󱟐"}.mdi-lamps:before{content:"󱕶"}.mdi-lamps-outline:before{content:"󱟑"}.mdi-lan:before{content:"󰌗"}.mdi-lan-check:before{content:"󱊪"}.mdi-lan-connect:before{content:"󰌘"}.mdi-lan-disconnect:before{content:"󰌙"}.mdi-lan-pending:before{content:"󰌚"}.mdi-land-fields:before{content:"󱪲"}.mdi-land-plots:before{content:"󱪳"}.mdi-land-plots-circle:before{content:"󱪴"}.mdi-land-plots-circle-variant:before{content:"󱪵"}.mdi-land-plots-marker:before{content:"󱱝"}.mdi-land-rows-horizontal:before{content:"󱪶"}.mdi-land-rows-vertical:before{content:"󱪷"}.mdi-landslide:before{content:"󱩈"}.mdi-landslide-outline:before{content:"󱩉"}.mdi-language-c:before{content:"󰙱"}.mdi-language-cpp:before{content:"󰙲"}.mdi-language-csharp:before{content:"󰌛"}.mdi-language-css3:before{content:"󰌜"}.mdi-language-fortran:before{content:"󱈚"}.mdi-language-go:before{content:"󰟓"}.mdi-language-haskell:before{content:"󰲒"}.mdi-language-html5:before{content:"󰌝"}.mdi-language-java:before{content:"󰬷"}.mdi-language-javascript:before{content:"󰌞"}.mdi-language-kotlin:before{content:"󱈙"}.mdi-language-lua:before{content:"󰢱"}.mdi-language-markdown:before{content:"󰍔"}.mdi-language-markdown-outline:before{content:"󰽛"}.mdi-language-php:before{content:"󰌟"}.mdi-language-python:before{content:"󰌠"}.mdi-language-r:before{content:"󰟔"}.mdi-language-ruby:before{content:"󰴭"}.mdi-language-ruby-on-rails:before{content:"󰫏"}.mdi-language-rust:before{content:"󱘗"}.mdi-language-swift:before{content:"󰛥"}.mdi-language-typescript:before{content:"󰛦"}.mdi-language-xaml:before{content:"󰙳"}.mdi-laptop:before{content:"󰌢"}.mdi-laptop-account:before{content:"󱩊"}.mdi-laptop-off:before{content:"󰛧"}.mdi-laravel:before{content:"󰫐"}.mdi-laser-pointer:before{content:"󱒄"}.mdi-lasso:before{content:"󰼃"}.mdi-lastpass:before{content:"󰑆"}.mdi-latitude:before{content:"󰽗"}.mdi-launch:before{content:"󰌧"}.mdi-lava-lamp:before{content:"󰟕"}.mdi-layers:before{content:"󰌨"}.mdi-layers-edit:before{content:"󱢒"}.mdi-layers-minus:before{content:"󰹌"}.mdi-layers-off:before{content:"󰌩"}.mdi-layers-off-outline:before{content:"󰧽"}.mdi-layers-outline:before{content:"󰧾"}.mdi-layers-plus:before{content:"󰹍"}.mdi-layers-remove:before{content:"󰹎"}.mdi-layers-search:before{content:"󱈆"}.mdi-layers-search-outline:before{content:"󱈇"}.mdi-layers-triple:before{content:"󰽘"}.mdi-layers-triple-outline:before{content:"󰽙"}.mdi-lead-pencil:before{content:"󰙏"}.mdi-leaf:before{content:"󰌪"}.mdi-leaf-circle:before{content:"󱤅"}.mdi-leaf-circle-outline:before{content:"󱤆"}.mdi-leaf-maple:before{content:"󰲓"}.mdi-leaf-maple-off:before{content:"󱋚"}.mdi-leaf-off:before{content:"󱋙"}.mdi-leak:before{content:"󰷗"}.mdi-leak-off:before{content:"󰷘"}.mdi-lectern:before{content:"󱫰"}.mdi-led-off:before{content:"󰌫"}.mdi-led-on:before{content:"󰌬"}.mdi-led-outline:before{content:"󰌭"}.mdi-led-strip:before{content:"󰟖"}.mdi-led-strip-variant:before{content:"󱁑"}.mdi-led-strip-variant-off:before{content:"󱩋"}.mdi-led-variant-off:before{content:"󰌮"}.mdi-led-variant-on:before{content:"󰌯"}.mdi-led-variant-outline:before{content:"󰌰"}.mdi-leek:before{content:"󱅽"}.mdi-less-than:before{content:"󰥼"}.mdi-less-than-or-equal:before{content:"󰥽"}.mdi-library:before{content:"󰌱"}.mdi-library-outline:before{content:"󱨢"}.mdi-library-shelves:before{content:"󰮩"}.mdi-license:before{content:"󰿃"}.mdi-lifebuoy:before{content:"󰡾"}.mdi-light-flood-down:before{content:"󱦇"}.mdi-light-flood-up:before{content:"󱦈"}.mdi-light-recessed:before{content:"󱞛"}.mdi-light-switch:before{content:"󰥾"}.mdi-light-switch-off:before{content:"󱨤"}.mdi-lightbulb:before{content:"󰌵"}.mdi-lightbulb-alert:before{content:"󱧡"}.mdi-lightbulb-alert-outline:before{content:"󱧢"}.mdi-lightbulb-auto:before{content:"󱠀"}.mdi-lightbulb-auto-outline:before{content:"󱠁"}.mdi-lightbulb-cfl:before{content:"󱈈"}.mdi-lightbulb-cfl-off:before{content:"󱈉"}.mdi-lightbulb-cfl-spiral:before{content:"󱉵"}.mdi-lightbulb-cfl-spiral-off:before{content:"󱋃"}.mdi-lightbulb-fluorescent-tube:before{content:"󱠄"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"󱠅"}.mdi-lightbulb-group:before{content:"󱉓"}.mdi-lightbulb-group-off:before{content:"󱋍"}.mdi-lightbulb-group-off-outline:before{content:"󱋎"}.mdi-lightbulb-group-outline:before{content:"󱉔"}.mdi-lightbulb-multiple:before{content:"󱉕"}.mdi-lightbulb-multiple-off:before{content:"󱋏"}.mdi-lightbulb-multiple-off-outline:before{content:"󱋐"}.mdi-lightbulb-multiple-outline:before{content:"󱉖"}.mdi-lightbulb-night:before{content:"󱩌"}.mdi-lightbulb-night-outline:before{content:"󱩍"}.mdi-lightbulb-off:before{content:"󰹏"}.mdi-lightbulb-off-outline:before{content:"󰹐"}.mdi-lightbulb-on:before{content:"󰛨"}.mdi-lightbulb-on-10:before{content:"󱩎"}.mdi-lightbulb-on-20:before{content:"󱩏"}.mdi-lightbulb-on-30:before{content:"󱩐"}.mdi-lightbulb-on-40:before{content:"󱩑"}.mdi-lightbulb-on-50:before{content:"󱩒"}.mdi-lightbulb-on-60:before{content:"󱩓"}.mdi-lightbulb-on-70:before{content:"󱩔"}.mdi-lightbulb-on-80:before{content:"󱩕"}.mdi-lightbulb-on-90:before{content:"󱩖"}.mdi-lightbulb-on-outline:before{content:"󰛩"}.mdi-lightbulb-outline:before{content:"󰌶"}.mdi-lightbulb-question:before{content:"󱧣"}.mdi-lightbulb-question-outline:before{content:"󱧤"}.mdi-lightbulb-spot:before{content:"󱟴"}.mdi-lightbulb-spot-off:before{content:"󱟵"}.mdi-lightbulb-variant:before{content:"󱠂"}.mdi-lightbulb-variant-outline:before{content:"󱠃"}.mdi-lighthouse:before{content:"󰧿"}.mdi-lighthouse-on:before{content:"󰨀"}.mdi-lightning-bolt:before{content:"󱐋"}.mdi-lightning-bolt-circle:before{content:"󰠠"}.mdi-lightning-bolt-outline:before{content:"󱐌"}.mdi-line-scan:before{content:"󰘤"}.mdi-lingerie:before{content:"󱑶"}.mdi-link:before{content:"󰌷"}.mdi-link-box:before{content:"󰴚"}.mdi-link-box-outline:before{content:"󰴛"}.mdi-link-box-variant:before{content:"󰴜"}.mdi-link-box-variant-outline:before{content:"󰴝"}.mdi-link-circle:before{content:"󱲬"}.mdi-link-circle-outline:before{content:"󱲭"}.mdi-link-edit:before{content:"󱲮"}.mdi-link-lock:before{content:"󱂺"}.mdi-link-off:before{content:"󰌸"}.mdi-link-plus:before{content:"󰲔"}.mdi-link-variant:before{content:"󰌹"}.mdi-link-variant-minus:before{content:"󱃿"}.mdi-link-variant-off:before{content:"󰌺"}.mdi-link-variant-plus:before{content:"󱄀"}.mdi-link-variant-remove:before{content:"󱄁"}.mdi-linkedin:before{content:"󰌻"}.mdi-linux:before{content:"󰌽"}.mdi-linux-mint:before{content:"󰣭"}.mdi-lipstick:before{content:"󱎵"}.mdi-liquid-spot:before{content:"󱠦"}.mdi-liquor:before{content:"󱤞"}.mdi-list-box:before{content:"󱭻"}.mdi-list-box-outline:before{content:"󱭼"}.mdi-list-status:before{content:"󱖫"}.mdi-litecoin:before{content:"󰩡"}.mdi-loading:before{content:"󰝲"}.mdi-location-enter:before{content:"󰿄"}.mdi-location-exit:before{content:"󰿅"}.mdi-lock:before{content:"󰌾"}.mdi-lock-alert:before{content:"󰣮"}.mdi-lock-alert-outline:before{content:"󱗑"}.mdi-lock-check:before{content:"󱎚"}.mdi-lock-check-outline:before{content:"󱚨"}.mdi-lock-clock:before{content:"󰥿"}.mdi-lock-minus:before{content:"󱚩"}.mdi-lock-minus-outline:before{content:"󱚪"}.mdi-lock-off:before{content:"󱙱"}.mdi-lock-off-outline:before{content:"󱙲"}.mdi-lock-open:before{content:"󰌿"}.mdi-lock-open-alert:before{content:"󱎛"}.mdi-lock-open-alert-outline:before{content:"󱗒"}.mdi-lock-open-check:before{content:"󱎜"}.mdi-lock-open-check-outline:before{content:"󱚫"}.mdi-lock-open-minus:before{content:"󱚬"}.mdi-lock-open-minus-outline:before{content:"󱚭"}.mdi-lock-open-outline:before{content:"󰍀"}.mdi-lock-open-plus:before{content:"󱚮"}.mdi-lock-open-plus-outline:before{content:"󱚯"}.mdi-lock-open-remove:before{content:"󱚰"}.mdi-lock-open-remove-outline:before{content:"󱚱"}.mdi-lock-open-variant:before{content:"󰿆"}.mdi-lock-open-variant-outline:before{content:"󰿇"}.mdi-lock-outline:before{content:"󰍁"}.mdi-lock-pattern:before{content:"󰛪"}.mdi-lock-percent:before{content:"󱰒"}.mdi-lock-percent-open:before{content:"󱰓"}.mdi-lock-percent-open-outline:before{content:"󱰔"}.mdi-lock-percent-open-variant:before{content:"󱰕"}.mdi-lock-percent-open-variant-outline:before{content:"󱰖"}.mdi-lock-percent-outline:before{content:"󱰗"}.mdi-lock-plus:before{content:"󰗻"}.mdi-lock-plus-outline:before{content:"󱚲"}.mdi-lock-question:before{content:"󰣯"}.mdi-lock-remove:before{content:"󱚳"}.mdi-lock-remove-outline:before{content:"󱚴"}.mdi-lock-reset:before{content:"󰝳"}.mdi-lock-smart:before{content:"󰢲"}.mdi-locker:before{content:"󰟗"}.mdi-locker-multiple:before{content:"󰟘"}.mdi-login:before{content:"󰍂"}.mdi-login-variant:before{content:"󰗼"}.mdi-logout:before{content:"󰍃"}.mdi-logout-variant:before{content:"󰗽"}.mdi-longitude:before{content:"󰽚"}.mdi-looks:before{content:"󰍄"}.mdi-lotion:before{content:"󱖂"}.mdi-lotion-outline:before{content:"󱖃"}.mdi-lotion-plus:before{content:"󱖄"}.mdi-lotion-plus-outline:before{content:"󱖅"}.mdi-loupe:before{content:"󰍅"}.mdi-lumx:before{content:"󰍆"}.mdi-lungs:before{content:"󱂄"}.mdi-mace:before{content:"󱡃"}.mdi-magazine-pistol:before{content:"󰌤"}.mdi-magazine-rifle:before{content:"󰌣"}.mdi-magic-staff:before{content:"󱡄"}.mdi-magnet:before{content:"󰍇"}.mdi-magnet-on:before{content:"󰍈"}.mdi-magnify:before{content:"󰍉"}.mdi-magnify-close:before{content:"󰦀"}.mdi-magnify-expand:before{content:"󱡴"}.mdi-magnify-minus:before{content:"󰍊"}.mdi-magnify-minus-cursor:before{content:"󰩢"}.mdi-magnify-minus-outline:before{content:"󰛬"}.mdi-magnify-plus:before{content:"󰍋"}.mdi-magnify-plus-cursor:before{content:"󰩣"}.mdi-magnify-plus-outline:before{content:"󰛭"}.mdi-magnify-remove-cursor:before{content:"󱈌"}.mdi-magnify-remove-outline:before{content:"󱈍"}.mdi-magnify-scan:before{content:"󱉶"}.mdi-mail:before{content:"󰺻"}.mdi-mailbox:before{content:"󰛮"}.mdi-mailbox-open:before{content:"󰶈"}.mdi-mailbox-open-outline:before{content:"󰶉"}.mdi-mailbox-open-up:before{content:"󰶊"}.mdi-mailbox-open-up-outline:before{content:"󰶋"}.mdi-mailbox-outline:before{content:"󰶌"}.mdi-mailbox-up:before{content:"󰶍"}.mdi-mailbox-up-outline:before{content:"󰶎"}.mdi-manjaro:before{content:"󱘊"}.mdi-map:before{content:"󰍍"}.mdi-map-check:before{content:"󰺼"}.mdi-map-check-outline:before{content:"󰺽"}.mdi-map-clock:before{content:"󰴞"}.mdi-map-clock-outline:before{content:"󰴟"}.mdi-map-legend:before{content:"󰨁"}.mdi-map-marker:before{content:"󰍎"}.mdi-map-marker-account:before{content:"󱣣"}.mdi-map-marker-account-outline:before{content:"󱣤"}.mdi-map-marker-alert:before{content:"󰼅"}.mdi-map-marker-alert-outline:before{content:"󰼆"}.mdi-map-marker-check:before{content:"󰲕"}.mdi-map-marker-check-outline:before{content:"󱋻"}.mdi-map-marker-circle:before{content:"󰍏"}.mdi-map-marker-distance:before{content:"󰣰"}.mdi-map-marker-down:before{content:"󱄂"}.mdi-map-marker-left:before{content:"󱋛"}.mdi-map-marker-left-outline:before{content:"󱋝"}.mdi-map-marker-minus:before{content:"󰙐"}.mdi-map-marker-minus-outline:before{content:"󱋹"}.mdi-map-marker-multiple:before{content:"󰍐"}.mdi-map-marker-multiple-outline:before{content:"󱉷"}.mdi-map-marker-off:before{content:"󰍑"}.mdi-map-marker-off-outline:before{content:"󱋽"}.mdi-map-marker-outline:before{content:"󰟙"}.mdi-map-marker-path:before{content:"󰴠"}.mdi-map-marker-plus:before{content:"󰙑"}.mdi-map-marker-plus-outline:before{content:"󱋸"}.mdi-map-marker-question:before{content:"󰼇"}.mdi-map-marker-question-outline:before{content:"󰼈"}.mdi-map-marker-radius:before{content:"󰍒"}.mdi-map-marker-radius-outline:before{content:"󱋼"}.mdi-map-marker-remove:before{content:"󰼉"}.mdi-map-marker-remove-outline:before{content:"󱋺"}.mdi-map-marker-remove-variant:before{content:"󰼊"}.mdi-map-marker-right:before{content:"󱋜"}.mdi-map-marker-right-outline:before{content:"󱋞"}.mdi-map-marker-star:before{content:"󱘈"}.mdi-map-marker-star-outline:before{content:"󱘉"}.mdi-map-marker-up:before{content:"󱄃"}.mdi-map-minus:before{content:"󰦁"}.mdi-map-outline:before{content:"󰦂"}.mdi-map-plus:before{content:"󰦃"}.mdi-map-search:before{content:"󰦄"}.mdi-map-search-outline:before{content:"󰦅"}.mdi-mapbox:before{content:"󰮪"}.mdi-margin:before{content:"󰍓"}.mdi-marker:before{content:"󰙒"}.mdi-marker-cancel:before{content:"󰷙"}.mdi-marker-check:before{content:"󰍕"}.mdi-mastodon:before{content:"󰫑"}.mdi-material-design:before{content:"󰦆"}.mdi-material-ui:before{content:"󰍗"}.mdi-math-compass:before{content:"󰍘"}.mdi-math-cos:before{content:"󰲖"}.mdi-math-integral:before{content:"󰿈"}.mdi-math-integral-box:before{content:"󰿉"}.mdi-math-log:before{content:"󱂅"}.mdi-math-norm:before{content:"󰿊"}.mdi-math-norm-box:before{content:"󰿋"}.mdi-math-sin:before{content:"󰲗"}.mdi-math-tan:before{content:"󰲘"}.mdi-matrix:before{content:"󰘨"}.mdi-medal:before{content:"󰦇"}.mdi-medal-outline:before{content:"󱌦"}.mdi-medical-bag:before{content:"󰛯"}.mdi-medical-cotton-swab:before{content:"󱪸"}.mdi-medication:before{content:"󱬔"}.mdi-medication-outline:before{content:"󱬕"}.mdi-meditation:before{content:"󱅻"}.mdi-memory:before{content:"󰍛"}.mdi-memory-arrow-down:before{content:"󱲦"}.mdi-menorah:before{content:"󱟔"}.mdi-menorah-fire:before{content:"󱟕"}.mdi-menu:before{content:"󰍜"}.mdi-menu-close:before{content:"󱲐"}.mdi-menu-down:before{content:"󰍝"}.mdi-menu-down-outline:before{content:"󰚶"}.mdi-menu-left:before{content:"󰍞"}.mdi-menu-left-outline:before{content:"󰨂"}.mdi-menu-open:before{content:"󰮫"}.mdi-menu-right:before{content:"󰍟"}.mdi-menu-right-outline:before{content:"󰨃"}.mdi-menu-swap:before{content:"󰩤"}.mdi-menu-swap-outline:before{content:"󰩥"}.mdi-menu-up:before{content:"󰍠"}.mdi-menu-up-outline:before{content:"󰚷"}.mdi-merge:before{content:"󰽜"}.mdi-message:before{content:"󰍡"}.mdi-message-alert:before{content:"󰍢"}.mdi-message-alert-outline:before{content:"󰨄"}.mdi-message-arrow-left:before{content:"󱋲"}.mdi-message-arrow-left-outline:before{content:"󱋳"}.mdi-message-arrow-right:before{content:"󱋴"}.mdi-message-arrow-right-outline:before{content:"󱋵"}.mdi-message-badge:before{content:"󱥁"}.mdi-message-badge-outline:before{content:"󱥂"}.mdi-message-bookmark:before{content:"󱖬"}.mdi-message-bookmark-outline:before{content:"󱖭"}.mdi-message-bulleted:before{content:"󰚢"}.mdi-message-bulleted-off:before{content:"󰚣"}.mdi-message-check:before{content:"󱮊"}.mdi-message-check-outline:before{content:"󱮋"}.mdi-message-cog:before{content:"󰛱"}.mdi-message-cog-outline:before{content:"󱅲"}.mdi-message-draw:before{content:"󰍣"}.mdi-message-fast:before{content:"󱧌"}.mdi-message-fast-outline:before{content:"󱧍"}.mdi-message-flash:before{content:"󱖩"}.mdi-message-flash-outline:before{content:"󱖪"}.mdi-message-image:before{content:"󰍤"}.mdi-message-image-outline:before{content:"󱅬"}.mdi-message-lock:before{content:"󰿌"}.mdi-message-lock-outline:before{content:"󱅭"}.mdi-message-minus:before{content:"󱅮"}.mdi-message-minus-outline:before{content:"󱅯"}.mdi-message-off:before{content:"󱙍"}.mdi-message-off-outline:before{content:"󱙎"}.mdi-message-outline:before{content:"󰍥"}.mdi-message-plus:before{content:"󰙓"}.mdi-message-plus-outline:before{content:"󱂻"}.mdi-message-processing:before{content:"󰍦"}.mdi-message-processing-outline:before{content:"󱅰"}.mdi-message-question:before{content:"󱜺"}.mdi-message-question-outline:before{content:"󱜻"}.mdi-message-reply:before{content:"󰍧"}.mdi-message-reply-outline:before{content:"󱜽"}.mdi-message-reply-text:before{content:"󰍨"}.mdi-message-reply-text-outline:before{content:"󱜾"}.mdi-message-settings:before{content:"󰛰"}.mdi-message-settings-outline:before{content:"󱅱"}.mdi-message-star:before{content:"󰚚"}.mdi-message-star-outline:before{content:"󱉐"}.mdi-message-text:before{content:"󰍩"}.mdi-message-text-clock:before{content:"󱅳"}.mdi-message-text-clock-outline:before{content:"󱅴"}.mdi-message-text-fast:before{content:"󱧎"}.mdi-message-text-fast-outline:before{content:"󱧏"}.mdi-message-text-lock:before{content:"󰿍"}.mdi-message-text-lock-outline:before{content:"󱅵"}.mdi-message-text-outline:before{content:"󰍪"}.mdi-message-video:before{content:"󰍫"}.mdi-meteor:before{content:"󰘩"}.mdi-meter-electric:before{content:"󱩗"}.mdi-meter-electric-outline:before{content:"󱩘"}.mdi-meter-gas:before{content:"󱩙"}.mdi-meter-gas-outline:before{content:"󱩚"}.mdi-metronome:before{content:"󰟚"}.mdi-metronome-tick:before{content:"󰟛"}.mdi-micro-sd:before{content:"󰟜"}.mdi-microphone:before{content:"󰍬"}.mdi-microphone-message:before{content:"󰔊"}.mdi-microphone-message-off:before{content:"󰔋"}.mdi-microphone-minus:before{content:"󰢳"}.mdi-microphone-off:before{content:"󰍭"}.mdi-microphone-outline:before{content:"󰍮"}.mdi-microphone-plus:before{content:"󰢴"}.mdi-microphone-question:before{content:"󱦉"}.mdi-microphone-question-outline:before{content:"󱦊"}.mdi-microphone-settings:before{content:"󰍯"}.mdi-microphone-variant:before{content:"󰍰"}.mdi-microphone-variant-off:before{content:"󰍱"}.mdi-microscope:before{content:"󰙔"}.mdi-microsoft:before{content:"󰍲"}.mdi-microsoft-access:before{content:"󱎎"}.mdi-microsoft-azure:before{content:"󰠅"}.mdi-microsoft-azure-devops:before{content:"󰿕"}.mdi-microsoft-bing:before{content:"󰂤"}.mdi-microsoft-dynamics-365:before{content:"󰦈"}.mdi-microsoft-edge:before{content:"󰇩"}.mdi-microsoft-excel:before{content:"󱎏"}.mdi-microsoft-internet-explorer:before{content:"󰌀"}.mdi-microsoft-office:before{content:"󰏆"}.mdi-microsoft-onedrive:before{content:"󰏊"}.mdi-microsoft-onenote:before{content:"󰝇"}.mdi-microsoft-outlook:before{content:"󰴢"}.mdi-microsoft-powerpoint:before{content:"󱎐"}.mdi-microsoft-sharepoint:before{content:"󱎑"}.mdi-microsoft-teams:before{content:"󰊻"}.mdi-microsoft-visual-studio:before{content:"󰘐"}.mdi-microsoft-visual-studio-code:before{content:"󰨞"}.mdi-microsoft-windows:before{content:"󰖳"}.mdi-microsoft-windows-classic:before{content:"󰨡"}.mdi-microsoft-word:before{content:"󱎒"}.mdi-microsoft-xbox:before{content:"󰖹"}.mdi-microsoft-xbox-controller:before{content:"󰖺"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"󰝋"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"󰨢"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"󰝌"}.mdi-microsoft-xbox-controller-battery-full:before{content:"󰝍"}.mdi-microsoft-xbox-controller-battery-low:before{content:"󰝎"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"󰝏"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"󰝐"}.mdi-microsoft-xbox-controller-menu:before{content:"󰹯"}.mdi-microsoft-xbox-controller-off:before{content:"󰖻"}.mdi-microsoft-xbox-controller-view:before{content:"󰹰"}.mdi-microwave:before{content:"󰲙"}.mdi-microwave-off:before{content:"󱐣"}.mdi-middleware:before{content:"󰽝"}.mdi-middleware-outline:before{content:"󰽞"}.mdi-midi:before{content:"󰣱"}.mdi-midi-port:before{content:"󰣲"}.mdi-mine:before{content:"󰷚"}.mdi-minecraft:before{content:"󰍳"}.mdi-mini-sd:before{content:"󰨅"}.mdi-minidisc:before{content:"󰨆"}.mdi-minus:before{content:"󰍴"}.mdi-minus-box:before{content:"󰍵"}.mdi-minus-box-multiple:before{content:"󱅁"}.mdi-minus-box-multiple-outline:before{content:"󱅂"}.mdi-minus-box-outline:before{content:"󰛲"}.mdi-minus-circle:before{content:"󰍶"}.mdi-minus-circle-multiple:before{content:"󰍚"}.mdi-minus-circle-multiple-outline:before{content:"󰫓"}.mdi-minus-circle-off:before{content:"󱑙"}.mdi-minus-circle-off-outline:before{content:"󱑚"}.mdi-minus-circle-outline:before{content:"󰍷"}.mdi-minus-network:before{content:"󰍸"}.mdi-minus-network-outline:before{content:"󰲚"}.mdi-minus-thick:before{content:"󱘹"}.mdi-mirror:before{content:"󱇽"}.mdi-mirror-rectangle:before{content:"󱞟"}.mdi-mirror-variant:before{content:"󱞠"}.mdi-mixed-martial-arts:before{content:"󰶏"}.mdi-mixed-reality:before{content:"󰡿"}.mdi-molecule:before{content:"󰮬"}.mdi-molecule-co:before{content:"󱋾"}.mdi-molecule-co2:before{content:"󰟤"}.mdi-monitor:before{content:"󰍹"}.mdi-monitor-account:before{content:"󱩛"}.mdi-monitor-arrow-down:before{content:"󱧐"}.mdi-monitor-arrow-down-variant:before{content:"󱧑"}.mdi-monitor-cellphone:before{content:"󰦉"}.mdi-monitor-cellphone-star:before{content:"󰦊"}.mdi-monitor-dashboard:before{content:"󰨇"}.mdi-monitor-edit:before{content:"󱋆"}.mdi-monitor-eye:before{content:"󱎴"}.mdi-monitor-lock:before{content:"󰷛"}.mdi-monitor-multiple:before{content:"󰍺"}.mdi-monitor-off:before{content:"󰶐"}.mdi-monitor-screenshot:before{content:"󰹑"}.mdi-monitor-share:before{content:"󱒃"}.mdi-monitor-shimmer:before{content:"󱄄"}.mdi-monitor-small:before{content:"󱡶"}.mdi-monitor-speaker:before{content:"󰽟"}.mdi-monitor-speaker-off:before{content:"󰽠"}.mdi-monitor-star:before{content:"󰷜"}.mdi-monitor-vertical:before{content:"󱰳"}.mdi-moon-first-quarter:before{content:"󰽡"}.mdi-moon-full:before{content:"󰽢"}.mdi-moon-last-quarter:before{content:"󰽣"}.mdi-moon-new:before{content:"󰽤"}.mdi-moon-waning-crescent:before{content:"󰽥"}.mdi-moon-waning-gibbous:before{content:"󰽦"}.mdi-moon-waxing-crescent:before{content:"󰽧"}.mdi-moon-waxing-gibbous:before{content:"󰽨"}.mdi-moped:before{content:"󱂆"}.mdi-moped-electric:before{content:"󱖷"}.mdi-moped-electric-outline:before{content:"󱖸"}.mdi-moped-outline:before{content:"󱖹"}.mdi-more:before{content:"󰍻"}.mdi-mortar-pestle:before{content:"󱝈"}.mdi-mortar-pestle-plus:before{content:"󰏱"}.mdi-mosque:before{content:"󰵅"}.mdi-mosque-outline:before{content:"󱠧"}.mdi-mother-heart:before{content:"󱌔"}.mdi-mother-nurse:before{content:"󰴡"}.mdi-motion:before{content:"󱖲"}.mdi-motion-outline:before{content:"󱖳"}.mdi-motion-pause:before{content:"󱖐"}.mdi-motion-pause-outline:before{content:"󱖒"}.mdi-motion-play:before{content:"󱖏"}.mdi-motion-play-outline:before{content:"󱖑"}.mdi-motion-sensor:before{content:"󰶑"}.mdi-motion-sensor-off:before{content:"󱐵"}.mdi-motorbike:before{content:"󰍼"}.mdi-motorbike-electric:before{content:"󱖺"}.mdi-motorbike-off:before{content:"󱬖"}.mdi-mouse:before{content:"󰍽"}.mdi-mouse-bluetooth:before{content:"󰦋"}.mdi-mouse-move-down:before{content:"󱕐"}.mdi-mouse-move-up:before{content:"󱕑"}.mdi-mouse-move-vertical:before{content:"󱕒"}.mdi-mouse-off:before{content:"󰍾"}.mdi-mouse-variant:before{content:"󰍿"}.mdi-mouse-variant-off:before{content:"󰎀"}.mdi-move-resize:before{content:"󰙕"}.mdi-move-resize-variant:before{content:"󰙖"}.mdi-movie:before{content:"󰎁"}.mdi-movie-check:before{content:"󱛳"}.mdi-movie-check-outline:before{content:"󱛴"}.mdi-movie-cog:before{content:"󱛵"}.mdi-movie-cog-outline:before{content:"󱛶"}.mdi-movie-edit:before{content:"󱄢"}.mdi-movie-edit-outline:before{content:"󱄣"}.mdi-movie-filter:before{content:"󱄤"}.mdi-movie-filter-outline:before{content:"󱄥"}.mdi-movie-minus:before{content:"󱛷"}.mdi-movie-minus-outline:before{content:"󱛸"}.mdi-movie-off:before{content:"󱛹"}.mdi-movie-off-outline:before{content:"󱛺"}.mdi-movie-open:before{content:"󰿎"}.mdi-movie-open-check:before{content:"󱛻"}.mdi-movie-open-check-outline:before{content:"󱛼"}.mdi-movie-open-cog:before{content:"󱛽"}.mdi-movie-open-cog-outline:before{content:"󱛾"}.mdi-movie-open-edit:before{content:"󱛿"}.mdi-movie-open-edit-outline:before{content:"󱜀"}.mdi-movie-open-minus:before{content:"󱜁"}.mdi-movie-open-minus-outline:before{content:"󱜂"}.mdi-movie-open-off:before{content:"󱜃"}.mdi-movie-open-off-outline:before{content:"󱜄"}.mdi-movie-open-outline:before{content:"󰿏"}.mdi-movie-open-play:before{content:"󱜅"}.mdi-movie-open-play-outline:before{content:"󱜆"}.mdi-movie-open-plus:before{content:"󱜇"}.mdi-movie-open-plus-outline:before{content:"󱜈"}.mdi-movie-open-remove:before{content:"󱜉"}.mdi-movie-open-remove-outline:before{content:"󱜊"}.mdi-movie-open-settings:before{content:"󱜋"}.mdi-movie-open-settings-outline:before{content:"󱜌"}.mdi-movie-open-star:before{content:"󱜍"}.mdi-movie-open-star-outline:before{content:"󱜎"}.mdi-movie-outline:before{content:"󰷝"}.mdi-movie-play:before{content:"󱜏"}.mdi-movie-play-outline:before{content:"󱜐"}.mdi-movie-plus:before{content:"󱜑"}.mdi-movie-plus-outline:before{content:"󱜒"}.mdi-movie-remove:before{content:"󱜓"}.mdi-movie-remove-outline:before{content:"󱜔"}.mdi-movie-roll:before{content:"󰟞"}.mdi-movie-search:before{content:"󱇒"}.mdi-movie-search-outline:before{content:"󱇓"}.mdi-movie-settings:before{content:"󱜕"}.mdi-movie-settings-outline:before{content:"󱜖"}.mdi-movie-star:before{content:"󱜗"}.mdi-movie-star-outline:before{content:"󱜘"}.mdi-mower:before{content:"󱙯"}.mdi-mower-bag:before{content:"󱙰"}.mdi-mower-bag-on:before{content:"󱭠"}.mdi-mower-on:before{content:"󱭟"}.mdi-muffin:before{content:"󰦌"}.mdi-multicast:before{content:"󱢓"}.mdi-multimedia:before{content:"󱮗"}.mdi-multiplication:before{content:"󰎂"}.mdi-multiplication-box:before{content:"󰎃"}.mdi-mushroom:before{content:"󰟟"}.mdi-mushroom-off:before{content:"󱏺"}.mdi-mushroom-off-outline:before{content:"󱏻"}.mdi-mushroom-outline:before{content:"󰟠"}.mdi-music:before{content:"󰝚"}.mdi-music-accidental-double-flat:before{content:"󰽩"}.mdi-music-accidental-double-sharp:before{content:"󰽪"}.mdi-music-accidental-flat:before{content:"󰽫"}.mdi-music-accidental-natural:before{content:"󰽬"}.mdi-music-accidental-sharp:before{content:"󰽭"}.mdi-music-box:before{content:"󰎄"}.mdi-music-box-multiple:before{content:"󰌳"}.mdi-music-box-multiple-outline:before{content:"󰼄"}.mdi-music-box-outline:before{content:"󰎅"}.mdi-music-circle:before{content:"󰎆"}.mdi-music-circle-outline:before{content:"󰫔"}.mdi-music-clef-alto:before{content:"󰽮"}.mdi-music-clef-bass:before{content:"󰽯"}.mdi-music-clef-treble:before{content:"󰽰"}.mdi-music-note:before{content:"󰎇"}.mdi-music-note-bluetooth:before{content:"󰗾"}.mdi-music-note-bluetooth-off:before{content:"󰗿"}.mdi-music-note-eighth:before{content:"󰎈"}.mdi-music-note-eighth-dotted:before{content:"󰽱"}.mdi-music-note-half:before{content:"󰎉"}.mdi-music-note-half-dotted:before{content:"󰽲"}.mdi-music-note-minus:before{content:"󱮉"}.mdi-music-note-off:before{content:"󰎊"}.mdi-music-note-off-outline:before{content:"󰽳"}.mdi-music-note-outline:before{content:"󰽴"}.mdi-music-note-plus:before{content:"󰷞"}.mdi-music-note-quarter:before{content:"󰎋"}.mdi-music-note-quarter-dotted:before{content:"󰽵"}.mdi-music-note-sixteenth:before{content:"󰎌"}.mdi-music-note-sixteenth-dotted:before{content:"󰽶"}.mdi-music-note-whole:before{content:"󰎍"}.mdi-music-note-whole-dotted:before{content:"󰽷"}.mdi-music-off:before{content:"󰝛"}.mdi-music-rest-eighth:before{content:"󰽸"}.mdi-music-rest-half:before{content:"󰽹"}.mdi-music-rest-quarter:before{content:"󰽺"}.mdi-music-rest-sixteenth:before{content:"󰽻"}.mdi-music-rest-whole:before{content:"󰽼"}.mdi-mustache:before{content:"󱗞"}.mdi-nail:before{content:"󰷟"}.mdi-nas:before{content:"󰣳"}.mdi-nativescript:before{content:"󰢀"}.mdi-nature:before{content:"󰎎"}.mdi-nature-outline:before{content:"󱱱"}.mdi-nature-people:before{content:"󰎏"}.mdi-nature-people-outline:before{content:"󱱲"}.mdi-navigation:before{content:"󰎐"}.mdi-navigation-outline:before{content:"󱘇"}.mdi-navigation-variant:before{content:"󱣰"}.mdi-navigation-variant-outline:before{content:"󱣱"}.mdi-near-me:before{content:"󰗍"}.mdi-necklace:before{content:"󰼋"}.mdi-needle:before{content:"󰎑"}.mdi-needle-off:before{content:"󱧒"}.mdi-netflix:before{content:"󰝆"}.mdi-network:before{content:"󰛳"}.mdi-network-off:before{content:"󰲛"}.mdi-network-off-outline:before{content:"󰲜"}.mdi-network-outline:before{content:"󰲝"}.mdi-network-pos:before{content:"󱫋"}.mdi-network-strength-1:before{content:"󰣴"}.mdi-network-strength-1-alert:before{content:"󰣵"}.mdi-network-strength-2:before{content:"󰣶"}.mdi-network-strength-2-alert:before{content:"󰣷"}.mdi-network-strength-3:before{content:"󰣸"}.mdi-network-strength-3-alert:before{content:"󰣹"}.mdi-network-strength-4:before{content:"󰣺"}.mdi-network-strength-4-alert:before{content:"󰣻"}.mdi-network-strength-4-cog:before{content:"󱤚"}.mdi-network-strength-off:before{content:"󰣼"}.mdi-network-strength-off-outline:before{content:"󰣽"}.mdi-network-strength-outline:before{content:"󰣾"}.mdi-new-box:before{content:"󰎔"}.mdi-newspaper:before{content:"󰎕"}.mdi-newspaper-check:before{content:"󱥃"}.mdi-newspaper-minus:before{content:"󰼌"}.mdi-newspaper-plus:before{content:"󰼍"}.mdi-newspaper-remove:before{content:"󱥄"}.mdi-newspaper-variant:before{content:"󱀁"}.mdi-newspaper-variant-multiple:before{content:"󱀂"}.mdi-newspaper-variant-multiple-outline:before{content:"󱀃"}.mdi-newspaper-variant-outline:before{content:"󱀄"}.mdi-nfc:before{content:"󰎖"}.mdi-nfc-search-variant:before{content:"󰹓"}.mdi-nfc-tap:before{content:"󰎗"}.mdi-nfc-variant:before{content:"󰎘"}.mdi-nfc-variant-off:before{content:"󰹔"}.mdi-ninja:before{content:"󰝴"}.mdi-nintendo-game-boy:before{content:"󱎓"}.mdi-nintendo-switch:before{content:"󰟡"}.mdi-nintendo-wii:before{content:"󰖫"}.mdi-nintendo-wiiu:before{content:"󰜭"}.mdi-nix:before{content:"󱄅"}.mdi-nodejs:before{content:"󰎙"}.mdi-noodles:before{content:"󱅾"}.mdi-not-equal:before{content:"󰦍"}.mdi-not-equal-variant:before{content:"󰦎"}.mdi-note:before{content:"󰎚"}.mdi-note-alert:before{content:"󱝽"}.mdi-note-alert-outline:before{content:"󱝾"}.mdi-note-check:before{content:"󱝿"}.mdi-note-check-outline:before{content:"󱞀"}.mdi-note-edit:before{content:"󱞁"}.mdi-note-edit-outline:before{content:"󱞂"}.mdi-note-minus:before{content:"󱙏"}.mdi-note-minus-outline:before{content:"󱙐"}.mdi-note-multiple:before{content:"󰚸"}.mdi-note-multiple-outline:before{content:"󰚹"}.mdi-note-off:before{content:"󱞃"}.mdi-note-off-outline:before{content:"󱞄"}.mdi-note-outline:before{content:"󰎛"}.mdi-note-plus:before{content:"󰎜"}.mdi-note-plus-outline:before{content:"󰎝"}.mdi-note-remove:before{content:"󱙑"}.mdi-note-remove-outline:before{content:"󱙒"}.mdi-note-search:before{content:"󱙓"}.mdi-note-search-outline:before{content:"󱙔"}.mdi-note-text:before{content:"󰎞"}.mdi-note-text-outline:before{content:"󱇗"}.mdi-notebook:before{content:"󰠮"}.mdi-notebook-check:before{content:"󱓵"}.mdi-notebook-check-outline:before{content:"󱓶"}.mdi-notebook-edit:before{content:"󱓧"}.mdi-notebook-edit-outline:before{content:"󱓩"}.mdi-notebook-heart:before{content:"󱨋"}.mdi-notebook-heart-outline:before{content:"󱨌"}.mdi-notebook-minus:before{content:"󱘐"}.mdi-notebook-minus-outline:before{content:"󱘑"}.mdi-notebook-multiple:before{content:"󰹕"}.mdi-notebook-outline:before{content:"󰺿"}.mdi-notebook-plus:before{content:"󱘒"}.mdi-notebook-plus-outline:before{content:"󱘓"}.mdi-notebook-remove:before{content:"󱘔"}.mdi-notebook-remove-outline:before{content:"󱘕"}.mdi-notification-clear-all:before{content:"󰎟"}.mdi-npm:before{content:"󰛷"}.mdi-nuke:before{content:"󰚤"}.mdi-null:before{content:"󰟢"}.mdi-numeric:before{content:"󰎠"}.mdi-numeric-0:before{content:"󰬹"}.mdi-numeric-0-box:before{content:"󰎡"}.mdi-numeric-0-box-multiple:before{content:"󰼎"}.mdi-numeric-0-box-multiple-outline:before{content:"󰎢"}.mdi-numeric-0-box-outline:before{content:"󰎣"}.mdi-numeric-0-circle:before{content:"󰲞"}.mdi-numeric-0-circle-outline:before{content:"󰲟"}.mdi-numeric-1:before{content:"󰬺"}.mdi-numeric-1-box:before{content:"󰎤"}.mdi-numeric-1-box-multiple:before{content:"󰼏"}.mdi-numeric-1-box-multiple-outline:before{content:"󰎥"}.mdi-numeric-1-box-outline:before{content:"󰎦"}.mdi-numeric-1-circle:before{content:"󰲠"}.mdi-numeric-1-circle-outline:before{content:"󰲡"}.mdi-numeric-10:before{content:"󰿩"}.mdi-numeric-10-box:before{content:"󰽽"}.mdi-numeric-10-box-multiple:before{content:"󰿪"}.mdi-numeric-10-box-multiple-outline:before{content:"󰿫"}.mdi-numeric-10-box-outline:before{content:"󰽾"}.mdi-numeric-10-circle:before{content:"󰿬"}.mdi-numeric-10-circle-outline:before{content:"󰿭"}.mdi-numeric-2:before{content:"󰬻"}.mdi-numeric-2-box:before{content:"󰎧"}.mdi-numeric-2-box-multiple:before{content:"󰼐"}.mdi-numeric-2-box-multiple-outline:before{content:"󰎨"}.mdi-numeric-2-box-outline:before{content:"󰎩"}.mdi-numeric-2-circle:before{content:"󰲢"}.mdi-numeric-2-circle-outline:before{content:"󰲣"}.mdi-numeric-3:before{content:"󰬼"}.mdi-numeric-3-box:before{content:"󰎪"}.mdi-numeric-3-box-multiple:before{content:"󰼑"}.mdi-numeric-3-box-multiple-outline:before{content:"󰎫"}.mdi-numeric-3-box-outline:before{content:"󰎬"}.mdi-numeric-3-circle:before{content:"󰲤"}.mdi-numeric-3-circle-outline:before{content:"󰲥"}.mdi-numeric-4:before{content:"󰬽"}.mdi-numeric-4-box:before{content:"󰎭"}.mdi-numeric-4-box-multiple:before{content:"󰼒"}.mdi-numeric-4-box-multiple-outline:before{content:"󰎲"}.mdi-numeric-4-box-outline:before{content:"󰎮"}.mdi-numeric-4-circle:before{content:"󰲦"}.mdi-numeric-4-circle-outline:before{content:"󰲧"}.mdi-numeric-5:before{content:"󰬾"}.mdi-numeric-5-box:before{content:"󰎱"}.mdi-numeric-5-box-multiple:before{content:"󰼓"}.mdi-numeric-5-box-multiple-outline:before{content:"󰎯"}.mdi-numeric-5-box-outline:before{content:"󰎰"}.mdi-numeric-5-circle:before{content:"󰲨"}.mdi-numeric-5-circle-outline:before{content:"󰲩"}.mdi-numeric-6:before{content:"󰬿"}.mdi-numeric-6-box:before{content:"󰎳"}.mdi-numeric-6-box-multiple:before{content:"󰼔"}.mdi-numeric-6-box-multiple-outline:before{content:"󰎴"}.mdi-numeric-6-box-outline:before{content:"󰎵"}.mdi-numeric-6-circle:before{content:"󰲪"}.mdi-numeric-6-circle-outline:before{content:"󰲫"}.mdi-numeric-7:before{content:"󰭀"}.mdi-numeric-7-box:before{content:"󰎶"}.mdi-numeric-7-box-multiple:before{content:"󰼕"}.mdi-numeric-7-box-multiple-outline:before{content:"󰎷"}.mdi-numeric-7-box-outline:before{content:"󰎸"}.mdi-numeric-7-circle:before{content:"󰲬"}.mdi-numeric-7-circle-outline:before{content:"󰲭"}.mdi-numeric-8:before{content:"󰭁"}.mdi-numeric-8-box:before{content:"󰎹"}.mdi-numeric-8-box-multiple:before{content:"󰼖"}.mdi-numeric-8-box-multiple-outline:before{content:"󰎺"}.mdi-numeric-8-box-outline:before{content:"󰎻"}.mdi-numeric-8-circle:before{content:"󰲮"}.mdi-numeric-8-circle-outline:before{content:"󰲯"}.mdi-numeric-9:before{content:"󰭂"}.mdi-numeric-9-box:before{content:"󰎼"}.mdi-numeric-9-box-multiple:before{content:"󰼗"}.mdi-numeric-9-box-multiple-outline:before{content:"󰎽"}.mdi-numeric-9-box-outline:before{content:"󰎾"}.mdi-numeric-9-circle:before{content:"󰲰"}.mdi-numeric-9-circle-outline:before{content:"󰲱"}.mdi-numeric-9-plus:before{content:"󰿮"}.mdi-numeric-9-plus-box:before{content:"󰎿"}.mdi-numeric-9-plus-box-multiple:before{content:"󰼘"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"󰏀"}.mdi-numeric-9-plus-box-outline:before{content:"󰏁"}.mdi-numeric-9-plus-circle:before{content:"󰲲"}.mdi-numeric-9-plus-circle-outline:before{content:"󰲳"}.mdi-numeric-negative-1:before{content:"󱁒"}.mdi-numeric-off:before{content:"󱧓"}.mdi-numeric-positive-1:before{content:"󱗋"}.mdi-nut:before{content:"󰛸"}.mdi-nutrition:before{content:"󰏂"}.mdi-nuxt:before{content:"󱄆"}.mdi-oar:before{content:"󰙼"}.mdi-ocarina:before{content:"󰷠"}.mdi-oci:before{content:"󱋩"}.mdi-ocr:before{content:"󱄺"}.mdi-octagon:before{content:"󰏃"}.mdi-octagon-outline:before{content:"󰏄"}.mdi-octagram:before{content:"󰛹"}.mdi-octagram-edit:before{content:"󱰴"}.mdi-octagram-edit-outline:before{content:"󱰵"}.mdi-octagram-minus:before{content:"󱰶"}.mdi-octagram-minus-outline:before{content:"󱰷"}.mdi-octagram-outline:before{content:"󰝵"}.mdi-octagram-plus:before{content:"󱰸"}.mdi-octagram-plus-outline:before{content:"󱰹"}.mdi-octahedron:before{content:"󱥐"}.mdi-octahedron-off:before{content:"󱥑"}.mdi-odnoklassniki:before{content:"󰏅"}.mdi-offer:before{content:"󱈛"}.mdi-office-building:before{content:"󰦑"}.mdi-office-building-cog:before{content:"󱥉"}.mdi-office-building-cog-outline:before{content:"󱥊"}.mdi-office-building-marker:before{content:"󱔠"}.mdi-office-building-marker-outline:before{content:"󱔡"}.mdi-office-building-minus:before{content:"󱮪"}.mdi-office-building-minus-outline:before{content:"󱮫"}.mdi-office-building-outline:before{content:"󱔟"}.mdi-office-building-plus:before{content:"󱮨"}.mdi-office-building-plus-outline:before{content:"󱮩"}.mdi-office-building-remove:before{content:"󱮬"}.mdi-office-building-remove-outline:before{content:"󱮭"}.mdi-oil:before{content:"󰏇"}.mdi-oil-lamp:before{content:"󰼙"}.mdi-oil-level:before{content:"󱁓"}.mdi-oil-temperature:before{content:"󰿸"}.mdi-om:before{content:"󰥳"}.mdi-omega:before{content:"󰏉"}.mdi-one-up:before{content:"󰮭"}.mdi-onepassword:before{content:"󰢁"}.mdi-opacity:before{content:"󰗌"}.mdi-open-in-app:before{content:"󰏋"}.mdi-open-in-new:before{content:"󰏌"}.mdi-open-source-initiative:before{content:"󰮮"}.mdi-openid:before{content:"󰏍"}.mdi-opera:before{content:"󰏎"}.mdi-orbit:before{content:"󰀘"}.mdi-orbit-variant:before{content:"󱗛"}.mdi-order-alphabetical-ascending:before{content:"󰈍"}.mdi-order-alphabetical-descending:before{content:"󰴇"}.mdi-order-bool-ascending:before{content:"󰊾"}.mdi-order-bool-ascending-variant:before{content:"󰦏"}.mdi-order-bool-descending:before{content:"󱎄"}.mdi-order-bool-descending-variant:before{content:"󰦐"}.mdi-order-numeric-ascending:before{content:"󰕅"}.mdi-order-numeric-descending:before{content:"󰕆"}.mdi-origin:before{content:"󰭃"}.mdi-ornament:before{content:"󰏏"}.mdi-ornament-variant:before{content:"󰏐"}.mdi-outdoor-lamp:before{content:"󱁔"}.mdi-overscan:before{content:"󱀅"}.mdi-owl:before{content:"󰏒"}.mdi-pac-man:before{content:"󰮯"}.mdi-package:before{content:"󰏓"}.mdi-package-check:before{content:"󱭑"}.mdi-package-down:before{content:"󰏔"}.mdi-package-up:before{content:"󰏕"}.mdi-package-variant:before{content:"󰏖"}.mdi-package-variant-closed:before{content:"󰏗"}.mdi-package-variant-closed-check:before{content:"󱭒"}.mdi-package-variant-closed-minus:before{content:"󱧔"}.mdi-package-variant-closed-plus:before{content:"󱧕"}.mdi-package-variant-closed-remove:before{content:"󱧖"}.mdi-package-variant-minus:before{content:"󱧗"}.mdi-package-variant-plus:before{content:"󱧘"}.mdi-package-variant-remove:before{content:"󱧙"}.mdi-page-first:before{content:"󰘀"}.mdi-page-last:before{content:"󰘁"}.mdi-page-layout-body:before{content:"󰛺"}.mdi-page-layout-footer:before{content:"󰛻"}.mdi-page-layout-header:before{content:"󰛼"}.mdi-page-layout-header-footer:before{content:"󰽿"}.mdi-page-layout-sidebar-left:before{content:"󰛽"}.mdi-page-layout-sidebar-right:before{content:"󰛾"}.mdi-page-next:before{content:"󰮰"}.mdi-page-next-outline:before{content:"󰮱"}.mdi-page-previous:before{content:"󰮲"}.mdi-page-previous-outline:before{content:"󰮳"}.mdi-pail:before{content:"󱐗"}.mdi-pail-minus:before{content:"󱐷"}.mdi-pail-minus-outline:before{content:"󱐼"}.mdi-pail-off:before{content:"󱐹"}.mdi-pail-off-outline:before{content:"󱐾"}.mdi-pail-outline:before{content:"󱐺"}.mdi-pail-plus:before{content:"󱐶"}.mdi-pail-plus-outline:before{content:"󱐻"}.mdi-pail-remove:before{content:"󱐸"}.mdi-pail-remove-outline:before{content:"󱐽"}.mdi-palette:before{content:"󰏘"}.mdi-palette-advanced:before{content:"󰏙"}.mdi-palette-outline:before{content:"󰸌"}.mdi-palette-swatch:before{content:"󰢵"}.mdi-palette-swatch-outline:before{content:"󱍜"}.mdi-palette-swatch-variant:before{content:"󱥚"}.mdi-palm-tree:before{content:"󱁕"}.mdi-pan:before{content:"󰮴"}.mdi-pan-bottom-left:before{content:"󰮵"}.mdi-pan-bottom-right:before{content:"󰮶"}.mdi-pan-down:before{content:"󰮷"}.mdi-pan-horizontal:before{content:"󰮸"}.mdi-pan-left:before{content:"󰮹"}.mdi-pan-right:before{content:"󰮺"}.mdi-pan-top-left:before{content:"󰮻"}.mdi-pan-top-right:before{content:"󰮼"}.mdi-pan-up:before{content:"󰮽"}.mdi-pan-vertical:before{content:"󰮾"}.mdi-panda:before{content:"󰏚"}.mdi-pandora:before{content:"󰏛"}.mdi-panorama:before{content:"󰏜"}.mdi-panorama-fisheye:before{content:"󰏝"}.mdi-panorama-horizontal:before{content:"󱤨"}.mdi-panorama-horizontal-outline:before{content:"󰏞"}.mdi-panorama-outline:before{content:"󱦌"}.mdi-panorama-sphere:before{content:"󱦍"}.mdi-panorama-sphere-outline:before{content:"󱦎"}.mdi-panorama-variant:before{content:"󱦏"}.mdi-panorama-variant-outline:before{content:"󱦐"}.mdi-panorama-vertical:before{content:"󱤩"}.mdi-panorama-vertical-outline:before{content:"󰏟"}.mdi-panorama-wide-angle:before{content:"󱥟"}.mdi-panorama-wide-angle-outline:before{content:"󰏠"}.mdi-paper-cut-vertical:before{content:"󰏡"}.mdi-paper-roll:before{content:"󱅗"}.mdi-paper-roll-outline:before{content:"󱅘"}.mdi-paperclip:before{content:"󰏢"}.mdi-paperclip-check:before{content:"󱫆"}.mdi-paperclip-lock:before{content:"󱧚"}.mdi-paperclip-minus:before{content:"󱫇"}.mdi-paperclip-off:before{content:"󱫈"}.mdi-paperclip-plus:before{content:"󱫉"}.mdi-paperclip-remove:before{content:"󱫊"}.mdi-parachute:before{content:"󰲴"}.mdi-parachute-outline:before{content:"󰲵"}.mdi-paragliding:before{content:"󱝅"}.mdi-parking:before{content:"󰏣"}.mdi-party-popper:before{content:"󱁖"}.mdi-passport:before{content:"󰟣"}.mdi-passport-alert:before{content:"󱲸"}.mdi-passport-biometric:before{content:"󰷡"}.mdi-passport-cancel:before{content:"󱲹"}.mdi-passport-check:before{content:"󱲺"}.mdi-passport-minus:before{content:"󱲻"}.mdi-passport-plus:before{content:"󱲼"}.mdi-passport-remove:before{content:"󱲽"}.mdi-pasta:before{content:"󱅠"}.mdi-patio-heater:before{content:"󰾀"}.mdi-patreon:before{content:"󰢂"}.mdi-pause:before{content:"󰏤"}.mdi-pause-box:before{content:"󰂼"}.mdi-pause-box-outline:before{content:"󱭺"}.mdi-pause-circle:before{content:"󰏥"}.mdi-pause-circle-outline:before{content:"󰏦"}.mdi-pause-octagon:before{content:"󰏧"}.mdi-pause-octagon-outline:before{content:"󰏨"}.mdi-paw:before{content:"󰏩"}.mdi-paw-off:before{content:"󰙗"}.mdi-paw-off-outline:before{content:"󱙶"}.mdi-paw-outline:before{content:"󱙵"}.mdi-peace:before{content:"󰢄"}.mdi-peanut:before{content:"󰿼"}.mdi-peanut-off:before{content:"󰿽"}.mdi-peanut-off-outline:before{content:"󰿿"}.mdi-peanut-outline:before{content:"󰿾"}.mdi-pen:before{content:"󰏪"}.mdi-pen-lock:before{content:"󰷢"}.mdi-pen-minus:before{content:"󰷣"}.mdi-pen-off:before{content:"󰷤"}.mdi-pen-plus:before{content:"󰷥"}.mdi-pen-remove:before{content:"󰷦"}.mdi-pencil:before{content:"󰏫"}.mdi-pencil-box:before{content:"󰏬"}.mdi-pencil-box-multiple:before{content:"󱅄"}.mdi-pencil-box-multiple-outline:before{content:"󱅅"}.mdi-pencil-box-outline:before{content:"󰏭"}.mdi-pencil-circle:before{content:"󰛿"}.mdi-pencil-circle-outline:before{content:"󰝶"}.mdi-pencil-lock:before{content:"󰏮"}.mdi-pencil-lock-outline:before{content:"󰷧"}.mdi-pencil-minus:before{content:"󰷨"}.mdi-pencil-minus-outline:before{content:"󰷩"}.mdi-pencil-off:before{content:"󰏯"}.mdi-pencil-off-outline:before{content:"󰷪"}.mdi-pencil-outline:before{content:"󰲶"}.mdi-pencil-plus:before{content:"󰷫"}.mdi-pencil-plus-outline:before{content:"󰷬"}.mdi-pencil-remove:before{content:"󰷭"}.mdi-pencil-remove-outline:before{content:"󰷮"}.mdi-pencil-ruler:before{content:"󱍓"}.mdi-pencil-ruler-outline:before{content:"󱰑"}.mdi-penguin:before{content:"󰻀"}.mdi-pentagon:before{content:"󰜁"}.mdi-pentagon-outline:before{content:"󰜀"}.mdi-pentagram:before{content:"󱙧"}.mdi-percent:before{content:"󰏰"}.mdi-percent-box:before{content:"󱨂"}.mdi-percent-box-outline:before{content:"󱨃"}.mdi-percent-circle:before{content:"󱨄"}.mdi-percent-circle-outline:before{content:"󱨅"}.mdi-percent-outline:before{content:"󱉸"}.mdi-periodic-table:before{content:"󰢶"}.mdi-perspective-less:before{content:"󰴣"}.mdi-perspective-more:before{content:"󰴤"}.mdi-ph:before{content:"󱟅"}.mdi-phone:before{content:"󰏲"}.mdi-phone-alert:before{content:"󰼚"}.mdi-phone-alert-outline:before{content:"󱆎"}.mdi-phone-bluetooth:before{content:"󰏳"}.mdi-phone-bluetooth-outline:before{content:"󱆏"}.mdi-phone-cancel:before{content:"󱂼"}.mdi-phone-cancel-outline:before{content:"󱆐"}.mdi-phone-check:before{content:"󱆩"}.mdi-phone-check-outline:before{content:"󱆪"}.mdi-phone-classic:before{content:"󰘂"}.mdi-phone-classic-off:before{content:"󱉹"}.mdi-phone-clock:before{content:"󱧛"}.mdi-phone-dial:before{content:"󱕙"}.mdi-phone-dial-outline:before{content:"󱕚"}.mdi-phone-forward:before{content:"󰏴"}.mdi-phone-forward-outline:before{content:"󱆑"}.mdi-phone-hangup:before{content:"󰏵"}.mdi-phone-hangup-outline:before{content:"󱆒"}.mdi-phone-in-talk:before{content:"󰏶"}.mdi-phone-in-talk-outline:before{content:"󱆂"}.mdi-phone-incoming:before{content:"󰏷"}.mdi-phone-incoming-outgoing:before{content:"󱬿"}.mdi-phone-incoming-outgoing-outline:before{content:"󱭀"}.mdi-phone-incoming-outline:before{content:"󱆓"}.mdi-phone-lock:before{content:"󰏸"}.mdi-phone-lock-outline:before{content:"󱆔"}.mdi-phone-log:before{content:"󰏹"}.mdi-phone-log-outline:before{content:"󱆕"}.mdi-phone-message:before{content:"󱆖"}.mdi-phone-message-outline:before{content:"󱆗"}.mdi-phone-minus:before{content:"󰙘"}.mdi-phone-minus-outline:before{content:"󱆘"}.mdi-phone-missed:before{content:"󰏺"}.mdi-phone-missed-outline:before{content:"󱆥"}.mdi-phone-off:before{content:"󰷯"}.mdi-phone-off-outline:before{content:"󱆦"}.mdi-phone-outgoing:before{content:"󰏻"}.mdi-phone-outgoing-outline:before{content:"󱆙"}.mdi-phone-outline:before{content:"󰷰"}.mdi-phone-paused:before{content:"󰏼"}.mdi-phone-paused-outline:before{content:"󱆚"}.mdi-phone-plus:before{content:"󰙙"}.mdi-phone-plus-outline:before{content:"󱆛"}.mdi-phone-refresh:before{content:"󱦓"}.mdi-phone-refresh-outline:before{content:"󱦔"}.mdi-phone-remove:before{content:"󱔯"}.mdi-phone-remove-outline:before{content:"󱔰"}.mdi-phone-return:before{content:"󰠯"}.mdi-phone-return-outline:before{content:"󱆜"}.mdi-phone-ring:before{content:"󱆫"}.mdi-phone-ring-outline:before{content:"󱆬"}.mdi-phone-rotate-landscape:before{content:"󰢅"}.mdi-phone-rotate-portrait:before{content:"󰢆"}.mdi-phone-settings:before{content:"󰏽"}.mdi-phone-settings-outline:before{content:"󱆝"}.mdi-phone-sync:before{content:"󱦕"}.mdi-phone-sync-outline:before{content:"󱦖"}.mdi-phone-voip:before{content:"󰏾"}.mdi-pi:before{content:"󰏿"}.mdi-pi-box:before{content:"󰐀"}.mdi-pi-hole:before{content:"󰷱"}.mdi-piano:before{content:"󰙽"}.mdi-piano-off:before{content:"󰚘"}.mdi-pickaxe:before{content:"󰢷"}.mdi-picture-in-picture-bottom-right:before{content:"󰹗"}.mdi-picture-in-picture-bottom-right-outline:before{content:"󰹘"}.mdi-picture-in-picture-top-right:before{content:"󰹙"}.mdi-picture-in-picture-top-right-outline:before{content:"󰹚"}.mdi-pier:before{content:"󰢇"}.mdi-pier-crane:before{content:"󰢈"}.mdi-pig:before{content:"󰐁"}.mdi-pig-variant:before{content:"󱀆"}.mdi-pig-variant-outline:before{content:"󱙸"}.mdi-piggy-bank:before{content:"󱀇"}.mdi-piggy-bank-outline:before{content:"󱙹"}.mdi-pill:before{content:"󰐂"}.mdi-pill-multiple:before{content:"󱭌"}.mdi-pill-off:before{content:"󱩜"}.mdi-pillar:before{content:"󰜂"}.mdi-pin:before{content:"󰐃"}.mdi-pin-off:before{content:"󰐄"}.mdi-pin-off-outline:before{content:"󰤰"}.mdi-pin-outline:before{content:"󰤱"}.mdi-pine-tree:before{content:"󰐅"}.mdi-pine-tree-box:before{content:"󰐆"}.mdi-pine-tree-fire:before{content:"󱐚"}.mdi-pine-tree-variant:before{content:"󱱳"}.mdi-pine-tree-variant-outline:before{content:"󱱴"}.mdi-pinterest:before{content:"󰐇"}.mdi-pinwheel:before{content:"󰫕"}.mdi-pinwheel-outline:before{content:"󰫖"}.mdi-pipe:before{content:"󰟥"}.mdi-pipe-disconnected:before{content:"󰟦"}.mdi-pipe-leak:before{content:"󰢉"}.mdi-pipe-valve:before{content:"󱡍"}.mdi-pipe-wrench:before{content:"󱍔"}.mdi-pirate:before{content:"󰨈"}.mdi-pistol:before{content:"󰜃"}.mdi-piston:before{content:"󰢊"}.mdi-pitchfork:before{content:"󱕓"}.mdi-pizza:before{content:"󰐉"}.mdi-plane-car:before{content:"󱫿"}.mdi-plane-train:before{content:"󱬀"}.mdi-play:before{content:"󰐊"}.mdi-play-box:before{content:"󱉺"}.mdi-play-box-edit-outline:before{content:"󱰺"}.mdi-play-box-lock:before{content:"󱨖"}.mdi-play-box-lock-open:before{content:"󱨗"}.mdi-play-box-lock-open-outline:before{content:"󱨘"}.mdi-play-box-lock-outline:before{content:"󱨙"}.mdi-play-box-multiple:before{content:"󰴙"}.mdi-play-box-multiple-outline:before{content:"󱏦"}.mdi-play-box-outline:before{content:"󰐋"}.mdi-play-circle:before{content:"󰐌"}.mdi-play-circle-outline:before{content:"󰐍"}.mdi-play-network:before{content:"󰢋"}.mdi-play-network-outline:before{content:"󰲷"}.mdi-play-outline:before{content:"󰼛"}.mdi-play-pause:before{content:"󰐎"}.mdi-play-protected-content:before{content:"󰐏"}.mdi-play-speed:before{content:"󰣿"}.mdi-playlist-check:before{content:"󰗇"}.mdi-playlist-edit:before{content:"󰤀"}.mdi-playlist-minus:before{content:"󰐐"}.mdi-playlist-music:before{content:"󰲸"}.mdi-playlist-music-outline:before{content:"󰲹"}.mdi-playlist-play:before{content:"󰐑"}.mdi-playlist-plus:before{content:"󰐒"}.mdi-playlist-remove:before{content:"󰐓"}.mdi-playlist-star:before{content:"󰷲"}.mdi-plex:before{content:"󰚺"}.mdi-pliers:before{content:"󱦤"}.mdi-plus:before{content:"󰐕"}.mdi-plus-box:before{content:"󰐖"}.mdi-plus-box-multiple:before{content:"󰌴"}.mdi-plus-box-multiple-outline:before{content:"󱅃"}.mdi-plus-box-outline:before{content:"󰜄"}.mdi-plus-circle:before{content:"󰐗"}.mdi-plus-circle-multiple:before{content:"󰍌"}.mdi-plus-circle-multiple-outline:before{content:"󰐘"}.mdi-plus-circle-outline:before{content:"󰐙"}.mdi-plus-lock:before{content:"󱩝"}.mdi-plus-lock-open:before{content:"󱩞"}.mdi-plus-minus:before{content:"󰦒"}.mdi-plus-minus-box:before{content:"󰦓"}.mdi-plus-minus-variant:before{content:"󱓉"}.mdi-plus-network:before{content:"󰐚"}.mdi-plus-network-outline:before{content:"󰲺"}.mdi-plus-outline:before{content:"󰜅"}.mdi-plus-thick:before{content:"󱇬"}.mdi-pocket:before{content:"󱲾"}.mdi-podcast:before{content:"󰦔"}.mdi-podium:before{content:"󰴥"}.mdi-podium-bronze:before{content:"󰴦"}.mdi-podium-gold:before{content:"󰴧"}.mdi-podium-silver:before{content:"󰴨"}.mdi-point-of-sale:before{content:"󰶒"}.mdi-pokeball:before{content:"󰐝"}.mdi-pokemon-go:before{content:"󰨉"}.mdi-poker-chip:before{content:"󰠰"}.mdi-polaroid:before{content:"󰐞"}.mdi-police-badge:before{content:"󱅧"}.mdi-police-badge-outline:before{content:"󱅨"}.mdi-police-station:before{content:"󱠹"}.mdi-poll:before{content:"󰐟"}.mdi-polo:before{content:"󱓃"}.mdi-polymer:before{content:"󰐡"}.mdi-pool:before{content:"󰘆"}.mdi-pool-thermometer:before{content:"󱩟"}.mdi-popcorn:before{content:"󰐢"}.mdi-post:before{content:"󱀈"}.mdi-post-lamp:before{content:"󱩠"}.mdi-post-outline:before{content:"󱀉"}.mdi-postage-stamp:before{content:"󰲻"}.mdi-pot:before{content:"󰋥"}.mdi-pot-mix:before{content:"󰙛"}.mdi-pot-mix-outline:before{content:"󰙷"}.mdi-pot-outline:before{content:"󰋿"}.mdi-pot-steam:before{content:"󰙚"}.mdi-pot-steam-outline:before{content:"󰌦"}.mdi-pound:before{content:"󰐣"}.mdi-pound-box:before{content:"󰐤"}.mdi-pound-box-outline:before{content:"󱅿"}.mdi-power:before{content:"󰐥"}.mdi-power-cycle:before{content:"󰤁"}.mdi-power-off:before{content:"󰤂"}.mdi-power-on:before{content:"󰤃"}.mdi-power-plug:before{content:"󰚥"}.mdi-power-plug-battery:before{content:"󱰻"}.mdi-power-plug-battery-outline:before{content:"󱰼"}.mdi-power-plug-off:before{content:"󰚦"}.mdi-power-plug-off-outline:before{content:"󱐤"}.mdi-power-plug-outline:before{content:"󱐥"}.mdi-power-settings:before{content:"󰐦"}.mdi-power-sleep:before{content:"󰤄"}.mdi-power-socket:before{content:"󰐧"}.mdi-power-socket-au:before{content:"󰤅"}.mdi-power-socket-ch:before{content:"󰾳"}.mdi-power-socket-de:before{content:"󱄇"}.mdi-power-socket-eu:before{content:"󰟧"}.mdi-power-socket-fr:before{content:"󱄈"}.mdi-power-socket-it:before{content:"󱓿"}.mdi-power-socket-jp:before{content:"󱄉"}.mdi-power-socket-uk:before{content:"󰟨"}.mdi-power-socket-us:before{content:"󰟩"}.mdi-power-standby:before{content:"󰤆"}.mdi-powershell:before{content:"󰨊"}.mdi-prescription:before{content:"󰜆"}.mdi-presentation:before{content:"󰐨"}.mdi-presentation-play:before{content:"󰐩"}.mdi-pretzel:before{content:"󱕢"}.mdi-printer:before{content:"󰐪"}.mdi-printer-3d:before{content:"󰐫"}.mdi-printer-3d-nozzle:before{content:"󰹛"}.mdi-printer-3d-nozzle-alert:before{content:"󱇀"}.mdi-printer-3d-nozzle-alert-outline:before{content:"󱇁"}.mdi-printer-3d-nozzle-heat:before{content:"󱢸"}.mdi-printer-3d-nozzle-heat-outline:before{content:"󱢹"}.mdi-printer-3d-nozzle-off:before{content:"󱬙"}.mdi-printer-3d-nozzle-off-outline:before{content:"󱬚"}.mdi-printer-3d-nozzle-outline:before{content:"󰹜"}.mdi-printer-3d-off:before{content:"󱬎"}.mdi-printer-alert:before{content:"󰐬"}.mdi-printer-check:before{content:"󱅆"}.mdi-printer-eye:before{content:"󱑘"}.mdi-printer-off:before{content:"󰹝"}.mdi-printer-off-outline:before{content:"󱞅"}.mdi-printer-outline:before{content:"󱞆"}.mdi-printer-pos:before{content:"󱁗"}.mdi-printer-pos-alert:before{content:"󱮼"}.mdi-printer-pos-alert-outline:before{content:"󱮽"}.mdi-printer-pos-cancel:before{content:"󱮾"}.mdi-printer-pos-cancel-outline:before{content:"󱮿"}.mdi-printer-pos-check:before{content:"󱯀"}.mdi-printer-pos-check-outline:before{content:"󱯁"}.mdi-printer-pos-cog:before{content:"󱯂"}.mdi-printer-pos-cog-outline:before{content:"󱯃"}.mdi-printer-pos-edit:before{content:"󱯄"}.mdi-printer-pos-edit-outline:before{content:"󱯅"}.mdi-printer-pos-minus:before{content:"󱯆"}.mdi-printer-pos-minus-outline:before{content:"󱯇"}.mdi-printer-pos-network:before{content:"󱯈"}.mdi-printer-pos-network-outline:before{content:"󱯉"}.mdi-printer-pos-off:before{content:"󱯊"}.mdi-printer-pos-off-outline:before{content:"󱯋"}.mdi-printer-pos-outline:before{content:"󱯌"}.mdi-printer-pos-pause:before{content:"󱯍"}.mdi-printer-pos-pause-outline:before{content:"󱯎"}.mdi-printer-pos-play:before{content:"󱯏"}.mdi-printer-pos-play-outline:before{content:"󱯐"}.mdi-printer-pos-plus:before{content:"󱯑"}.mdi-printer-pos-plus-outline:before{content:"󱯒"}.mdi-printer-pos-refresh:before{content:"󱯓"}.mdi-printer-pos-refresh-outline:before{content:"󱯔"}.mdi-printer-pos-remove:before{content:"󱯕"}.mdi-printer-pos-remove-outline:before{content:"󱯖"}.mdi-printer-pos-star:before{content:"󱯗"}.mdi-printer-pos-star-outline:before{content:"󱯘"}.mdi-printer-pos-stop:before{content:"󱯙"}.mdi-printer-pos-stop-outline:before{content:"󱯚"}.mdi-printer-pos-sync:before{content:"󱯛"}.mdi-printer-pos-sync-outline:before{content:"󱯜"}.mdi-printer-pos-wrench:before{content:"󱯝"}.mdi-printer-pos-wrench-outline:before{content:"󱯞"}.mdi-printer-search:before{content:"󱑗"}.mdi-printer-settings:before{content:"󰜇"}.mdi-printer-wireless:before{content:"󰨋"}.mdi-priority-high:before{content:"󰘃"}.mdi-priority-low:before{content:"󰘄"}.mdi-professional-hexagon:before{content:"󰐭"}.mdi-progress-alert:before{content:"󰲼"}.mdi-progress-check:before{content:"󰦕"}.mdi-progress-clock:before{content:"󰦖"}.mdi-progress-close:before{content:"󱄊"}.mdi-progress-download:before{content:"󰦗"}.mdi-progress-helper:before{content:"󱮢"}.mdi-progress-pencil:before{content:"󱞇"}.mdi-progress-question:before{content:"󱔢"}.mdi-progress-star:before{content:"󱞈"}.mdi-progress-star-four-points:before{content:"󱰽"}.mdi-progress-upload:before{content:"󰦘"}.mdi-progress-wrench:before{content:"󰲽"}.mdi-projector:before{content:"󰐮"}.mdi-projector-off:before{content:"󱨣"}.mdi-projector-screen:before{content:"󰐯"}.mdi-projector-screen-off:before{content:"󱠍"}.mdi-projector-screen-off-outline:before{content:"󱠎"}.mdi-projector-screen-outline:before{content:"󱜤"}.mdi-projector-screen-variant:before{content:"󱠏"}.mdi-projector-screen-variant-off:before{content:"󱠐"}.mdi-projector-screen-variant-off-outline:before{content:"󱠑"}.mdi-projector-screen-variant-outline:before{content:"󱠒"}.mdi-propane-tank:before{content:"󱍗"}.mdi-propane-tank-outline:before{content:"󱍘"}.mdi-protocol:before{content:"󰿘"}.mdi-publish:before{content:"󰚧"}.mdi-publish-off:before{content:"󱥅"}.mdi-pulse:before{content:"󰐰"}.mdi-pump:before{content:"󱐂"}.mdi-pump-off:before{content:"󱬢"}.mdi-pumpkin:before{content:"󰮿"}.mdi-purse:before{content:"󰼜"}.mdi-purse-outline:before{content:"󰼝"}.mdi-puzzle:before{content:"󰐱"}.mdi-puzzle-check:before{content:"󱐦"}.mdi-puzzle-check-outline:before{content:"󱐧"}.mdi-puzzle-edit:before{content:"󱓓"}.mdi-puzzle-edit-outline:before{content:"󱓙"}.mdi-puzzle-heart:before{content:"󱓔"}.mdi-puzzle-heart-outline:before{content:"󱓚"}.mdi-puzzle-minus:before{content:"󱓑"}.mdi-puzzle-minus-outline:before{content:"󱓗"}.mdi-puzzle-outline:before{content:"󰩦"}.mdi-puzzle-plus:before{content:"󱓐"}.mdi-puzzle-plus-outline:before{content:"󱓖"}.mdi-puzzle-remove:before{content:"󱓒"}.mdi-puzzle-remove-outline:before{content:"󱓘"}.mdi-puzzle-star:before{content:"󱓕"}.mdi-puzzle-star-outline:before{content:"󱓛"}.mdi-pyramid:before{content:"󱥒"}.mdi-pyramid-off:before{content:"󱥓"}.mdi-qi:before{content:"󰦙"}.mdi-qqchat:before{content:"󰘅"}.mdi-qrcode:before{content:"󰐲"}.mdi-qrcode-edit:before{content:"󰢸"}.mdi-qrcode-minus:before{content:"󱆌"}.mdi-qrcode-plus:before{content:"󱆋"}.mdi-qrcode-remove:before{content:"󱆍"}.mdi-qrcode-scan:before{content:"󰐳"}.mdi-quadcopter:before{content:"󰐴"}.mdi-quality-high:before{content:"󰐵"}.mdi-quality-low:before{content:"󰨌"}.mdi-quality-medium:before{content:"󰨍"}.mdi-queue-first-in-last-out:before{content:"󱲯"}.mdi-quora:before{content:"󰴩"}.mdi-rabbit:before{content:"󰤇"}.mdi-rabbit-variant:before{content:"󱩡"}.mdi-rabbit-variant-outline:before{content:"󱩢"}.mdi-racing-helmet:before{content:"󰶓"}.mdi-racquetball:before{content:"󰶔"}.mdi-radar:before{content:"󰐷"}.mdi-radiator:before{content:"󰐸"}.mdi-radiator-disabled:before{content:"󰫗"}.mdi-radiator-off:before{content:"󰫘"}.mdi-radio:before{content:"󰐹"}.mdi-radio-am:before{content:"󰲾"}.mdi-radio-fm:before{content:"󰲿"}.mdi-radio-handheld:before{content:"󰐺"}.mdi-radio-off:before{content:"󱈜"}.mdi-radio-tower:before{content:"󰐻"}.mdi-radioactive:before{content:"󰐼"}.mdi-radioactive-circle:before{content:"󱡝"}.mdi-radioactive-circle-outline:before{content:"󱡞"}.mdi-radioactive-off:before{content:"󰻁"}.mdi-radiobox-blank:before{content:"󰐽"}.mdi-radiobox-indeterminate-variant:before{content:"󱱞"}.mdi-radiobox-marked:before{content:"󰐾"}.mdi-radiology-box:before{content:"󱓅"}.mdi-radiology-box-outline:before{content:"󱓆"}.mdi-radius:before{content:"󰳀"}.mdi-radius-outline:before{content:"󰳁"}.mdi-railroad-light:before{content:"󰼞"}.mdi-rake:before{content:"󱕄"}.mdi-raspberry-pi:before{content:"󰐿"}.mdi-raw:before{content:"󱨏"}.mdi-raw-off:before{content:"󱨐"}.mdi-ray-end:before{content:"󰑀"}.mdi-ray-end-arrow:before{content:"󰑁"}.mdi-ray-start:before{content:"󰑂"}.mdi-ray-start-arrow:before{content:"󰑃"}.mdi-ray-start-end:before{content:"󰑄"}.mdi-ray-start-vertex-end:before{content:"󱗘"}.mdi-ray-vertex:before{content:"󰑅"}.mdi-razor-double-edge:before{content:"󱦗"}.mdi-razor-single-edge:before{content:"󱦘"}.mdi-react:before{content:"󰜈"}.mdi-read:before{content:"󰑇"}.mdi-receipt:before{content:"󰠤"}.mdi-receipt-clock:before{content:"󱰾"}.mdi-receipt-clock-outline:before{content:"󱰿"}.mdi-receipt-outline:before{content:"󰓷"}.mdi-receipt-send:before{content:"󱱀"}.mdi-receipt-send-outline:before{content:"󱱁"}.mdi-receipt-text:before{content:"󰑉"}.mdi-receipt-text-arrow-left:before{content:"󱱂"}.mdi-receipt-text-arrow-left-outline:before{content:"󱱃"}.mdi-receipt-text-arrow-right:before{content:"󱱄"}.mdi-receipt-text-arrow-right-outline:before{content:"󱱅"}.mdi-receipt-text-check:before{content:"󱩣"}.mdi-receipt-text-check-outline:before{content:"󱩤"}.mdi-receipt-text-clock:before{content:"󱱆"}.mdi-receipt-text-clock-outline:before{content:"󱱇"}.mdi-receipt-text-edit:before{content:"󱱈"}.mdi-receipt-text-edit-outline:before{content:"󱱉"}.mdi-receipt-text-minus:before{content:"󱩥"}.mdi-receipt-text-minus-outline:before{content:"󱩦"}.mdi-receipt-text-outline:before{content:"󱧜"}.mdi-receipt-text-plus:before{content:"󱩧"}.mdi-receipt-text-plus-outline:before{content:"󱩨"}.mdi-receipt-text-remove:before{content:"󱩩"}.mdi-receipt-text-remove-outline:before{content:"󱩪"}.mdi-receipt-text-send:before{content:"󱱊"}.mdi-receipt-text-send-outline:before{content:"󱱋"}.mdi-record:before{content:"󰑊"}.mdi-record-circle:before{content:"󰻂"}.mdi-record-circle-outline:before{content:"󰻃"}.mdi-record-player:before{content:"󰦚"}.mdi-record-rec:before{content:"󰑋"}.mdi-rectangle:before{content:"󰹞"}.mdi-rectangle-outline:before{content:"󰹟"}.mdi-recycle:before{content:"󰑌"}.mdi-recycle-variant:before{content:"󱎝"}.mdi-reddit:before{content:"󰑍"}.mdi-redhat:before{content:"󱄛"}.mdi-redo:before{content:"󰑎"}.mdi-redo-variant:before{content:"󰑏"}.mdi-reflect-horizontal:before{content:"󰨎"}.mdi-reflect-vertical:before{content:"󰨏"}.mdi-refresh:before{content:"󰑐"}.mdi-refresh-auto:before{content:"󱣲"}.mdi-refresh-circle:before{content:"󱍷"}.mdi-regex:before{content:"󰑑"}.mdi-registered-trademark:before{content:"󰩧"}.mdi-reiterate:before{content:"󱖈"}.mdi-relation-many-to-many:before{content:"󱒖"}.mdi-relation-many-to-one:before{content:"󱒗"}.mdi-relation-many-to-one-or-many:before{content:"󱒘"}.mdi-relation-many-to-only-one:before{content:"󱒙"}.mdi-relation-many-to-zero-or-many:before{content:"󱒚"}.mdi-relation-many-to-zero-or-one:before{content:"󱒛"}.mdi-relation-one-or-many-to-many:before{content:"󱒜"}.mdi-relation-one-or-many-to-one:before{content:"󱒝"}.mdi-relation-one-or-many-to-one-or-many:before{content:"󱒞"}.mdi-relation-one-or-many-to-only-one:before{content:"󱒟"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"󱒠"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"󱒡"}.mdi-relation-one-to-many:before{content:"󱒢"}.mdi-relation-one-to-one:before{content:"󱒣"}.mdi-relation-one-to-one-or-many:before{content:"󱒤"}.mdi-relation-one-to-only-one:before{content:"󱒥"}.mdi-relation-one-to-zero-or-many:before{content:"󱒦"}.mdi-relation-one-to-zero-or-one:before{content:"󱒧"}.mdi-relation-only-one-to-many:before{content:"󱒨"}.mdi-relation-only-one-to-one:before{content:"󱒩"}.mdi-relation-only-one-to-one-or-many:before{content:"󱒪"}.mdi-relation-only-one-to-only-one:before{content:"󱒫"}.mdi-relation-only-one-to-zero-or-many:before{content:"󱒬"}.mdi-relation-only-one-to-zero-or-one:before{content:"󱒭"}.mdi-relation-zero-or-many-to-many:before{content:"󱒮"}.mdi-relation-zero-or-many-to-one:before{content:"󱒯"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"󱒰"}.mdi-relation-zero-or-many-to-only-one:before{content:"󱒱"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"󱒲"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"󱒳"}.mdi-relation-zero-or-one-to-many:before{content:"󱒴"}.mdi-relation-zero-or-one-to-one:before{content:"󱒵"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"󱒶"}.mdi-relation-zero-or-one-to-only-one:before{content:"󱒷"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"󱒸"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"󱒹"}.mdi-relative-scale:before{content:"󰑒"}.mdi-reload:before{content:"󰑓"}.mdi-reload-alert:before{content:"󱄋"}.mdi-reminder:before{content:"󰢌"}.mdi-remote:before{content:"󰑔"}.mdi-remote-desktop:before{content:"󰢹"}.mdi-remote-off:before{content:"󰻄"}.mdi-remote-tv:before{content:"󰻅"}.mdi-remote-tv-off:before{content:"󰻆"}.mdi-rename:before{content:"󱰘"}.mdi-rename-box:before{content:"󰑕"}.mdi-rename-box-outline:before{content:"󱰙"}.mdi-rename-outline:before{content:"󱰚"}.mdi-reorder-horizontal:before{content:"󰚈"}.mdi-reorder-vertical:before{content:"󰚉"}.mdi-repeat:before{content:"󰑖"}.mdi-repeat-off:before{content:"󰑗"}.mdi-repeat-once:before{content:"󰑘"}.mdi-repeat-variant:before{content:"󰕇"}.mdi-replay:before{content:"󰑙"}.mdi-reply:before{content:"󰑚"}.mdi-reply-all:before{content:"󰑛"}.mdi-reply-all-outline:before{content:"󰼟"}.mdi-reply-circle:before{content:"󱆮"}.mdi-reply-outline:before{content:"󰼠"}.mdi-reproduction:before{content:"󰑜"}.mdi-resistor:before{content:"󰭄"}.mdi-resistor-nodes:before{content:"󰭅"}.mdi-resize:before{content:"󰩨"}.mdi-resize-bottom-right:before{content:"󰑝"}.mdi-responsive:before{content:"󰑞"}.mdi-restart:before{content:"󰜉"}.mdi-restart-alert:before{content:"󱄌"}.mdi-restart-off:before{content:"󰶕"}.mdi-restore:before{content:"󰦛"}.mdi-restore-alert:before{content:"󱄍"}.mdi-rewind:before{content:"󰑟"}.mdi-rewind-10:before{content:"󰴪"}.mdi-rewind-15:before{content:"󱥆"}.mdi-rewind-30:before{content:"󰶖"}.mdi-rewind-45:before{content:"󱬓"}.mdi-rewind-5:before{content:"󱇹"}.mdi-rewind-60:before{content:"󱘌"}.mdi-rewind-outline:before{content:"󰜊"}.mdi-rhombus:before{content:"󰜋"}.mdi-rhombus-medium:before{content:"󰨐"}.mdi-rhombus-medium-outline:before{content:"󱓜"}.mdi-rhombus-outline:before{content:"󰜌"}.mdi-rhombus-split:before{content:"󰨑"}.mdi-rhombus-split-outline:before{content:"󱓝"}.mdi-ribbon:before{content:"󰑠"}.mdi-rice:before{content:"󰟪"}.mdi-rickshaw:before{content:"󱖻"}.mdi-rickshaw-electric:before{content:"󱖼"}.mdi-ring:before{content:"󰟫"}.mdi-rivet:before{content:"󰹠"}.mdi-road:before{content:"󰑡"}.mdi-road-variant:before{content:"󰑢"}.mdi-robber:before{content:"󱁘"}.mdi-robot:before{content:"󰚩"}.mdi-robot-angry:before{content:"󱚝"}.mdi-robot-angry-outline:before{content:"󱚞"}.mdi-robot-confused:before{content:"󱚟"}.mdi-robot-confused-outline:before{content:"󱚠"}.mdi-robot-dead:before{content:"󱚡"}.mdi-robot-dead-outline:before{content:"󱚢"}.mdi-robot-excited:before{content:"󱚣"}.mdi-robot-excited-outline:before{content:"󱚤"}.mdi-robot-happy:before{content:"󱜙"}.mdi-robot-happy-outline:before{content:"󱜚"}.mdi-robot-industrial:before{content:"󰭆"}.mdi-robot-industrial-outline:before{content:"󱨚"}.mdi-robot-love:before{content:"󱚥"}.mdi-robot-love-outline:before{content:"󱚦"}.mdi-robot-mower:before{content:"󱇷"}.mdi-robot-mower-outline:before{content:"󱇳"}.mdi-robot-off:before{content:"󱚧"}.mdi-robot-off-outline:before{content:"󱙻"}.mdi-robot-outline:before{content:"󱙺"}.mdi-robot-vacuum:before{content:"󰜍"}.mdi-robot-vacuum-alert:before{content:"󱭝"}.mdi-robot-vacuum-off:before{content:"󱰁"}.mdi-robot-vacuum-variant:before{content:"󰤈"}.mdi-robot-vacuum-variant-alert:before{content:"󱭞"}.mdi-robot-vacuum-variant-off:before{content:"󱰂"}.mdi-rocket:before{content:"󰑣"}.mdi-rocket-launch:before{content:"󱓞"}.mdi-rocket-launch-outline:before{content:"󱓟"}.mdi-rocket-outline:before{content:"󱎯"}.mdi-rodent:before{content:"󱌧"}.mdi-roller-shade:before{content:"󱩫"}.mdi-roller-shade-closed:before{content:"󱩬"}.mdi-roller-skate:before{content:"󰴫"}.mdi-roller-skate-off:before{content:"󰅅"}.mdi-rollerblade:before{content:"󰴬"}.mdi-rollerblade-off:before{content:"󰀮"}.mdi-rollupjs:before{content:"󰯀"}.mdi-rolodex:before{content:"󱪹"}.mdi-rolodex-outline:before{content:"󱪺"}.mdi-roman-numeral-1:before{content:"󱂈"}.mdi-roman-numeral-10:before{content:"󱂑"}.mdi-roman-numeral-2:before{content:"󱂉"}.mdi-roman-numeral-3:before{content:"󱂊"}.mdi-roman-numeral-4:before{content:"󱂋"}.mdi-roman-numeral-5:before{content:"󱂌"}.mdi-roman-numeral-6:before{content:"󱂍"}.mdi-roman-numeral-7:before{content:"󱂎"}.mdi-roman-numeral-8:before{content:"󱂏"}.mdi-roman-numeral-9:before{content:"󱂐"}.mdi-room-service:before{content:"󰢍"}.mdi-room-service-outline:before{content:"󰶗"}.mdi-rotate-360:before{content:"󱦙"}.mdi-rotate-3d:before{content:"󰻇"}.mdi-rotate-3d-variant:before{content:"󰑤"}.mdi-rotate-left:before{content:"󰑥"}.mdi-rotate-left-variant:before{content:"󰑦"}.mdi-rotate-orbit:before{content:"󰶘"}.mdi-rotate-right:before{content:"󰑧"}.mdi-rotate-right-variant:before{content:"󰑨"}.mdi-rounded-corner:before{content:"󰘇"}.mdi-router:before{content:"󱇢"}.mdi-router-network:before{content:"󱂇"}.mdi-router-network-wireless:before{content:"󱲗"}.mdi-router-wireless:before{content:"󰑩"}.mdi-router-wireless-off:before{content:"󱖣"}.mdi-router-wireless-settings:before{content:"󰩩"}.mdi-routes:before{content:"󰑪"}.mdi-routes-clock:before{content:"󱁙"}.mdi-rowing:before{content:"󰘈"}.mdi-rss:before{content:"󰑫"}.mdi-rss-box:before{content:"󰑬"}.mdi-rss-off:before{content:"󰼡"}.mdi-rug:before{content:"󱑵"}.mdi-rugby:before{content:"󰶙"}.mdi-ruler:before{content:"󰑭"}.mdi-ruler-square:before{content:"󰳂"}.mdi-ruler-square-compass:before{content:"󰺾"}.mdi-run:before{content:"󰜎"}.mdi-run-fast:before{content:"󰑮"}.mdi-rv-truck:before{content:"󱇔"}.mdi-sack:before{content:"󰴮"}.mdi-sack-outline:before{content:"󱱌"}.mdi-sack-percent:before{content:"󰴯"}.mdi-safe:before{content:"󰩪"}.mdi-safe-square:before{content:"󱉼"}.mdi-safe-square-outline:before{content:"󱉽"}.mdi-safety-goggles:before{content:"󰴰"}.mdi-sail-boat:before{content:"󰻈"}.mdi-sail-boat-sink:before{content:"󱫯"}.mdi-sale:before{content:"󰑯"}.mdi-sale-outline:before{content:"󱨆"}.mdi-salesforce:before{content:"󰢎"}.mdi-sass:before{content:"󰟬"}.mdi-satellite:before{content:"󰑰"}.mdi-satellite-uplink:before{content:"󰤉"}.mdi-satellite-variant:before{content:"󰑱"}.mdi-sausage:before{content:"󰢺"}.mdi-sausage-off:before{content:"󱞉"}.mdi-saw-blade:before{content:"󰹡"}.mdi-sawtooth-wave:before{content:"󱑺"}.mdi-saxophone:before{content:"󰘉"}.mdi-scale:before{content:"󰑲"}.mdi-scale-balance:before{content:"󰗑"}.mdi-scale-bathroom:before{content:"󰑳"}.mdi-scale-off:before{content:"󱁚"}.mdi-scale-unbalanced:before{content:"󱦸"}.mdi-scan-helper:before{content:"󱏘"}.mdi-scanner:before{content:"󰚫"}.mdi-scanner-off:before{content:"󰤊"}.mdi-scatter-plot:before{content:"󰻉"}.mdi-scatter-plot-outline:before{content:"󰻊"}.mdi-scent:before{content:"󱥘"}.mdi-scent-off:before{content:"󱥙"}.mdi-school:before{content:"󰑴"}.mdi-school-outline:before{content:"󱆀"}.mdi-scissors-cutting:before{content:"󰩫"}.mdi-scooter:before{content:"󱖽"}.mdi-scooter-electric:before{content:"󱖾"}.mdi-scoreboard:before{content:"󱉾"}.mdi-scoreboard-outline:before{content:"󱉿"}.mdi-screen-rotation:before{content:"󰑵"}.mdi-screen-rotation-lock:before{content:"󰑸"}.mdi-screw-flat-top:before{content:"󰷳"}.mdi-screw-lag:before{content:"󰷴"}.mdi-screw-machine-flat-top:before{content:"󰷵"}.mdi-screw-machine-round-top:before{content:"󰷶"}.mdi-screw-round-top:before{content:"󰷷"}.mdi-screwdriver:before{content:"󰑶"}.mdi-script:before{content:"󰯁"}.mdi-script-outline:before{content:"󰑷"}.mdi-script-text:before{content:"󰯂"}.mdi-script-text-key:before{content:"󱜥"}.mdi-script-text-key-outline:before{content:"󱜦"}.mdi-script-text-outline:before{content:"󰯃"}.mdi-script-text-play:before{content:"󱜧"}.mdi-script-text-play-outline:before{content:"󱜨"}.mdi-sd:before{content:"󰑹"}.mdi-seal:before{content:"󰑺"}.mdi-seal-variant:before{content:"󰿙"}.mdi-search-web:before{content:"󰜏"}.mdi-seat:before{content:"󰳃"}.mdi-seat-flat:before{content:"󰑻"}.mdi-seat-flat-angled:before{content:"󰑼"}.mdi-seat-individual-suite:before{content:"󰑽"}.mdi-seat-legroom-extra:before{content:"󰑾"}.mdi-seat-legroom-normal:before{content:"󰑿"}.mdi-seat-legroom-reduced:before{content:"󰒀"}.mdi-seat-outline:before{content:"󰳄"}.mdi-seat-passenger:before{content:"󱉉"}.mdi-seat-recline-extra:before{content:"󰒁"}.mdi-seat-recline-normal:before{content:"󰒂"}.mdi-seatbelt:before{content:"󰳅"}.mdi-security:before{content:"󰒃"}.mdi-security-network:before{content:"󰒄"}.mdi-seed:before{content:"󰹢"}.mdi-seed-off:before{content:"󱏽"}.mdi-seed-off-outline:before{content:"󱏾"}.mdi-seed-outline:before{content:"󰹣"}.mdi-seed-plus:before{content:"󱩭"}.mdi-seed-plus-outline:before{content:"󱩮"}.mdi-seesaw:before{content:"󱖤"}.mdi-segment:before{content:"󰻋"}.mdi-select:before{content:"󰒅"}.mdi-select-all:before{content:"󰒆"}.mdi-select-arrow-down:before{content:"󱭙"}.mdi-select-arrow-up:before{content:"󱭘"}.mdi-select-color:before{content:"󰴱"}.mdi-select-compare:before{content:"󰫙"}.mdi-select-drag:before{content:"󰩬"}.mdi-select-group:before{content:"󰾂"}.mdi-select-inverse:before{content:"󰒇"}.mdi-select-marker:before{content:"󱊀"}.mdi-select-multiple:before{content:"󱊁"}.mdi-select-multiple-marker:before{content:"󱊂"}.mdi-select-off:before{content:"󰒈"}.mdi-select-place:before{content:"󰿚"}.mdi-select-remove:before{content:"󱟁"}.mdi-select-search:before{content:"󱈄"}.mdi-selection:before{content:"󰒉"}.mdi-selection-drag:before{content:"󰩭"}.mdi-selection-ellipse:before{content:"󰴲"}.mdi-selection-ellipse-arrow-inside:before{content:"󰼢"}.mdi-selection-ellipse-remove:before{content:"󱟂"}.mdi-selection-marker:before{content:"󱊃"}.mdi-selection-multiple:before{content:"󱊅"}.mdi-selection-multiple-marker:before{content:"󱊄"}.mdi-selection-off:before{content:"󰝷"}.mdi-selection-remove:before{content:"󱟃"}.mdi-selection-search:before{content:"󱈅"}.mdi-semantic-web:before{content:"󱌖"}.mdi-send:before{content:"󰒊"}.mdi-send-check:before{content:"󱅡"}.mdi-send-check-outline:before{content:"󱅢"}.mdi-send-circle:before{content:"󰷸"}.mdi-send-circle-outline:before{content:"󰷹"}.mdi-send-clock:before{content:"󱅣"}.mdi-send-clock-outline:before{content:"󱅤"}.mdi-send-lock:before{content:"󰟭"}.mdi-send-lock-outline:before{content:"󱅦"}.mdi-send-outline:before{content:"󱅥"}.mdi-send-variant:before{content:"󱱍"}.mdi-send-variant-clock:before{content:"󱱾"}.mdi-send-variant-clock-outline:before{content:"󱱿"}.mdi-send-variant-outline:before{content:"󱱎"}.mdi-serial-port:before{content:"󰙜"}.mdi-server:before{content:"󰒋"}.mdi-server-minus:before{content:"󰒌"}.mdi-server-minus-outline:before{content:"󱲘"}.mdi-server-network:before{content:"󰒍"}.mdi-server-network-off:before{content:"󰒎"}.mdi-server-network-outline:before{content:"󱲙"}.mdi-server-off:before{content:"󰒏"}.mdi-server-outline:before{content:"󱲚"}.mdi-server-plus:before{content:"󰒐"}.mdi-server-plus-outline:before{content:"󱲛"}.mdi-server-remove:before{content:"󰒑"}.mdi-server-security:before{content:"󰒒"}.mdi-set-all:before{content:"󰝸"}.mdi-set-center:before{content:"󰝹"}.mdi-set-center-right:before{content:"󰝺"}.mdi-set-left:before{content:"󰝻"}.mdi-set-left-center:before{content:"󰝼"}.mdi-set-left-right:before{content:"󰝽"}.mdi-set-merge:before{content:"󱓠"}.mdi-set-none:before{content:"󰝾"}.mdi-set-right:before{content:"󰝿"}.mdi-set-split:before{content:"󱓡"}.mdi-set-square:before{content:"󱑝"}.mdi-set-top-box:before{content:"󰦟"}.mdi-settings-helper:before{content:"󰩮"}.mdi-shaker:before{content:"󱄎"}.mdi-shaker-outline:before{content:"󱄏"}.mdi-shape:before{content:"󰠱"}.mdi-shape-circle-plus:before{content:"󰙝"}.mdi-shape-outline:before{content:"󰠲"}.mdi-shape-oval-plus:before{content:"󱇺"}.mdi-shape-plus:before{content:"󰒕"}.mdi-shape-plus-outline:before{content:"󱱏"}.mdi-shape-polygon-plus:before{content:"󰙞"}.mdi-shape-rectangle-plus:before{content:"󰙟"}.mdi-shape-square-plus:before{content:"󰙠"}.mdi-shape-square-rounded-plus:before{content:"󱓺"}.mdi-share:before{content:"󰒖"}.mdi-share-all:before{content:"󱇴"}.mdi-share-all-outline:before{content:"󱇵"}.mdi-share-circle:before{content:"󱆭"}.mdi-share-off:before{content:"󰼣"}.mdi-share-off-outline:before{content:"󰼤"}.mdi-share-outline:before{content:"󰤲"}.mdi-share-variant:before{content:"󰒗"}.mdi-share-variant-outline:before{content:"󱔔"}.mdi-shark:before{content:"󱢺"}.mdi-shark-fin:before{content:"󱙳"}.mdi-shark-fin-outline:before{content:"󱙴"}.mdi-shark-off:before{content:"󱢻"}.mdi-sheep:before{content:"󰳆"}.mdi-shield:before{content:"󰒘"}.mdi-shield-account:before{content:"󰢏"}.mdi-shield-account-outline:before{content:"󰨒"}.mdi-shield-account-variant:before{content:"󱖧"}.mdi-shield-account-variant-outline:before{content:"󱖨"}.mdi-shield-airplane:before{content:"󰚻"}.mdi-shield-airplane-outline:before{content:"󰳇"}.mdi-shield-alert:before{content:"󰻌"}.mdi-shield-alert-outline:before{content:"󰻍"}.mdi-shield-bug:before{content:"󱏚"}.mdi-shield-bug-outline:before{content:"󱏛"}.mdi-shield-car:before{content:"󰾃"}.mdi-shield-check:before{content:"󰕥"}.mdi-shield-check-outline:before{content:"󰳈"}.mdi-shield-cross:before{content:"󰳉"}.mdi-shield-cross-outline:before{content:"󰳊"}.mdi-shield-crown:before{content:"󱢼"}.mdi-shield-crown-outline:before{content:"󱢽"}.mdi-shield-edit:before{content:"󱆠"}.mdi-shield-edit-outline:before{content:"󱆡"}.mdi-shield-half:before{content:"󱍠"}.mdi-shield-half-full:before{content:"󰞀"}.mdi-shield-home:before{content:"󰚊"}.mdi-shield-home-outline:before{content:"󰳋"}.mdi-shield-key:before{content:"󰯄"}.mdi-shield-key-outline:before{content:"󰯅"}.mdi-shield-link-variant:before{content:"󰴳"}.mdi-shield-link-variant-outline:before{content:"󰴴"}.mdi-shield-lock:before{content:"󰦝"}.mdi-shield-lock-open:before{content:"󱦚"}.mdi-shield-lock-open-outline:before{content:"󱦛"}.mdi-shield-lock-outline:before{content:"󰳌"}.mdi-shield-moon:before{content:"󱠨"}.mdi-shield-moon-outline:before{content:"󱠩"}.mdi-shield-off:before{content:"󰦞"}.mdi-shield-off-outline:before{content:"󰦜"}.mdi-shield-outline:before{content:"󰒙"}.mdi-shield-plus:before{content:"󰫚"}.mdi-shield-plus-outline:before{content:"󰫛"}.mdi-shield-refresh:before{content:"󰂪"}.mdi-shield-refresh-outline:before{content:"󰇠"}.mdi-shield-remove:before{content:"󰫜"}.mdi-shield-remove-outline:before{content:"󰫝"}.mdi-shield-search:before{content:"󰶚"}.mdi-shield-star:before{content:"󱄻"}.mdi-shield-star-outline:before{content:"󱄼"}.mdi-shield-sun:before{content:"󱁝"}.mdi-shield-sun-outline:before{content:"󱁞"}.mdi-shield-sword:before{content:"󱢾"}.mdi-shield-sword-outline:before{content:"󱢿"}.mdi-shield-sync:before{content:"󱆢"}.mdi-shield-sync-outline:before{content:"󱆣"}.mdi-shimmer:before{content:"󱕅"}.mdi-ship-wheel:before{content:"󰠳"}.mdi-shipping-pallet:before{content:"󱡎"}.mdi-shoe-ballet:before{content:"󱗊"}.mdi-shoe-cleat:before{content:"󱗇"}.mdi-shoe-formal:before{content:"󰭇"}.mdi-shoe-heel:before{content:"󰭈"}.mdi-shoe-print:before{content:"󰷺"}.mdi-shoe-sneaker:before{content:"󱗈"}.mdi-shopping:before{content:"󰒚"}.mdi-shopping-music:before{content:"󰒛"}.mdi-shopping-outline:before{content:"󱇕"}.mdi-shopping-search:before{content:"󰾄"}.mdi-shopping-search-outline:before{content:"󱩯"}.mdi-shore:before{content:"󱓹"}.mdi-shovel:before{content:"󰜐"}.mdi-shovel-off:before{content:"󰜑"}.mdi-shower:before{content:"󰦠"}.mdi-shower-head:before{content:"󰦡"}.mdi-shredder:before{content:"󰒜"}.mdi-shuffle:before{content:"󰒝"}.mdi-shuffle-disabled:before{content:"󰒞"}.mdi-shuffle-variant:before{content:"󰒟"}.mdi-shuriken:before{content:"󱍿"}.mdi-sickle:before{content:"󱣀"}.mdi-sigma:before{content:"󰒠"}.mdi-sigma-lower:before{content:"󰘫"}.mdi-sign-caution:before{content:"󰒡"}.mdi-sign-direction:before{content:"󰞁"}.mdi-sign-direction-minus:before{content:"󱀀"}.mdi-sign-direction-plus:before{content:"󰿜"}.mdi-sign-direction-remove:before{content:"󰿝"}.mdi-sign-language:before{content:"󱭍"}.mdi-sign-language-outline:before{content:"󱭎"}.mdi-sign-pole:before{content:"󱓸"}.mdi-sign-real-estate:before{content:"󱄘"}.mdi-sign-text:before{content:"󰞂"}.mdi-sign-yield:before{content:"󱮯"}.mdi-signal:before{content:"󰒢"}.mdi-signal-2g:before{content:"󰜒"}.mdi-signal-3g:before{content:"󰜓"}.mdi-signal-4g:before{content:"󰜔"}.mdi-signal-5g:before{content:"󰩯"}.mdi-signal-cellular-1:before{content:"󰢼"}.mdi-signal-cellular-2:before{content:"󰢽"}.mdi-signal-cellular-3:before{content:"󰢾"}.mdi-signal-cellular-outline:before{content:"󰢿"}.mdi-signal-distance-variant:before{content:"󰹤"}.mdi-signal-hspa:before{content:"󰜕"}.mdi-signal-hspa-plus:before{content:"󰜖"}.mdi-signal-off:before{content:"󰞃"}.mdi-signal-variant:before{content:"󰘊"}.mdi-signature:before{content:"󰷻"}.mdi-signature-freehand:before{content:"󰷼"}.mdi-signature-image:before{content:"󰷽"}.mdi-signature-text:before{content:"󰷾"}.mdi-silo:before{content:"󱮟"}.mdi-silo-outline:before{content:"󰭉"}.mdi-silverware:before{content:"󰒣"}.mdi-silverware-clean:before{content:"󰿞"}.mdi-silverware-fork:before{content:"󰒤"}.mdi-silverware-fork-knife:before{content:"󰩰"}.mdi-silverware-spoon:before{content:"󰒥"}.mdi-silverware-variant:before{content:"󰒦"}.mdi-sim:before{content:"󰒧"}.mdi-sim-alert:before{content:"󰒨"}.mdi-sim-alert-outline:before{content:"󱗓"}.mdi-sim-off:before{content:"󰒩"}.mdi-sim-off-outline:before{content:"󱗔"}.mdi-sim-outline:before{content:"󱗕"}.mdi-simple-icons:before{content:"󱌝"}.mdi-sina-weibo:before{content:"󰫟"}.mdi-sine-wave:before{content:"󰥛"}.mdi-sitemap:before{content:"󰒪"}.mdi-sitemap-outline:before{content:"󱦜"}.mdi-size-l:before{content:"󱎦"}.mdi-size-m:before{content:"󱎥"}.mdi-size-s:before{content:"󱎤"}.mdi-size-xl:before{content:"󱎧"}.mdi-size-xs:before{content:"󱎣"}.mdi-size-xxl:before{content:"󱎨"}.mdi-size-xxs:before{content:"󱎢"}.mdi-size-xxxl:before{content:"󱎩"}.mdi-skate:before{content:"󰴵"}.mdi-skate-off:before{content:"󰚙"}.mdi-skateboard:before{content:"󱓂"}.mdi-skateboarding:before{content:"󰔁"}.mdi-skew-less:before{content:"󰴶"}.mdi-skew-more:before{content:"󰴷"}.mdi-ski:before{content:"󱌄"}.mdi-ski-cross-country:before{content:"󱌅"}.mdi-ski-water:before{content:"󱌆"}.mdi-skip-backward:before{content:"󰒫"}.mdi-skip-backward-outline:before{content:"󰼥"}.mdi-skip-forward:before{content:"󰒬"}.mdi-skip-forward-outline:before{content:"󰼦"}.mdi-skip-next:before{content:"󰒭"}.mdi-skip-next-circle:before{content:"󰙡"}.mdi-skip-next-circle-outline:before{content:"󰙢"}.mdi-skip-next-outline:before{content:"󰼧"}.mdi-skip-previous:before{content:"󰒮"}.mdi-skip-previous-circle:before{content:"󰙣"}.mdi-skip-previous-circle-outline:before{content:"󰙤"}.mdi-skip-previous-outline:before{content:"󰼨"}.mdi-skull:before{content:"󰚌"}.mdi-skull-crossbones:before{content:"󰯆"}.mdi-skull-crossbones-outline:before{content:"󰯇"}.mdi-skull-outline:before{content:"󰯈"}.mdi-skull-scan:before{content:"󱓇"}.mdi-skull-scan-outline:before{content:"󱓈"}.mdi-skype:before{content:"󰒯"}.mdi-skype-business:before{content:"󰒰"}.mdi-slack:before{content:"󰒱"}.mdi-slash-forward:before{content:"󰿟"}.mdi-slash-forward-box:before{content:"󰿠"}.mdi-sledding:before{content:"󰐛"}.mdi-sleep:before{content:"󰒲"}.mdi-sleep-off:before{content:"󰒳"}.mdi-slide:before{content:"󱖥"}.mdi-slope-downhill:before{content:"󰷿"}.mdi-slope-uphill:before{content:"󰸀"}.mdi-slot-machine:before{content:"󱄔"}.mdi-slot-machine-outline:before{content:"󱄕"}.mdi-smart-card:before{content:"󱂽"}.mdi-smart-card-off:before{content:"󱣷"}.mdi-smart-card-off-outline:before{content:"󱣸"}.mdi-smart-card-outline:before{content:"󱂾"}.mdi-smart-card-reader:before{content:"󱂿"}.mdi-smart-card-reader-outline:before{content:"󱃀"}.mdi-smog:before{content:"󰩱"}.mdi-smoke:before{content:"󱞙"}.mdi-smoke-detector:before{content:"󰎒"}.mdi-smoke-detector-alert:before{content:"󱤮"}.mdi-smoke-detector-alert-outline:before{content:"󱤯"}.mdi-smoke-detector-off:before{content:"󱠉"}.mdi-smoke-detector-off-outline:before{content:"󱠊"}.mdi-smoke-detector-outline:before{content:"󱠈"}.mdi-smoke-detector-variant:before{content:"󱠋"}.mdi-smoke-detector-variant-alert:before{content:"󱤰"}.mdi-smoke-detector-variant-off:before{content:"󱠌"}.mdi-smoking:before{content:"󰒴"}.mdi-smoking-off:before{content:"󰒵"}.mdi-smoking-pipe:before{content:"󱐍"}.mdi-smoking-pipe-off:before{content:"󱐨"}.mdi-snail:before{content:"󱙷"}.mdi-snake:before{content:"󱔎"}.mdi-snapchat:before{content:"󰒶"}.mdi-snowboard:before{content:"󱌇"}.mdi-snowflake:before{content:"󰜗"}.mdi-snowflake-alert:before{content:"󰼩"}.mdi-snowflake-check:before{content:"󱩰"}.mdi-snowflake-melt:before{content:"󱋋"}.mdi-snowflake-off:before{content:"󱓣"}.mdi-snowflake-thermometer:before{content:"󱩱"}.mdi-snowflake-variant:before{content:"󰼪"}.mdi-snowman:before{content:"󰒷"}.mdi-snowmobile:before{content:"󰛝"}.mdi-snowshoeing:before{content:"󱩲"}.mdi-soccer:before{content:"󰒸"}.mdi-soccer-field:before{content:"󰠴"}.mdi-social-distance-2-meters:before{content:"󱕹"}.mdi-social-distance-6-feet:before{content:"󱕺"}.mdi-sofa:before{content:"󰒹"}.mdi-sofa-outline:before{content:"󱕭"}.mdi-sofa-single:before{content:"󱕮"}.mdi-sofa-single-outline:before{content:"󱕯"}.mdi-solar-panel:before{content:"󰶛"}.mdi-solar-panel-large:before{content:"󰶜"}.mdi-solar-power:before{content:"󰩲"}.mdi-solar-power-variant:before{content:"󱩳"}.mdi-solar-power-variant-outline:before{content:"󱩴"}.mdi-soldering-iron:before{content:"󱂒"}.mdi-solid:before{content:"󰚍"}.mdi-sony-playstation:before{content:"󰐔"}.mdi-sort:before{content:"󰒺"}.mdi-sort-alphabetical-ascending:before{content:"󰖽"}.mdi-sort-alphabetical-ascending-variant:before{content:"󱅈"}.mdi-sort-alphabetical-descending:before{content:"󰖿"}.mdi-sort-alphabetical-descending-variant:before{content:"󱅉"}.mdi-sort-alphabetical-variant:before{content:"󰒻"}.mdi-sort-ascending:before{content:"󰒼"}.mdi-sort-bool-ascending:before{content:"󱎅"}.mdi-sort-bool-ascending-variant:before{content:"󱎆"}.mdi-sort-bool-descending:before{content:"󱎇"}.mdi-sort-bool-descending-variant:before{content:"󱎈"}.mdi-sort-calendar-ascending:before{content:"󱕇"}.mdi-sort-calendar-descending:before{content:"󱕈"}.mdi-sort-clock-ascending:before{content:"󱕉"}.mdi-sort-clock-ascending-outline:before{content:"󱕊"}.mdi-sort-clock-descending:before{content:"󱕋"}.mdi-sort-clock-descending-outline:before{content:"󱕌"}.mdi-sort-descending:before{content:"󰒽"}.mdi-sort-numeric-ascending:before{content:"󱎉"}.mdi-sort-numeric-ascending-variant:before{content:"󰤍"}.mdi-sort-numeric-descending:before{content:"󱎊"}.mdi-sort-numeric-descending-variant:before{content:"󰫒"}.mdi-sort-numeric-variant:before{content:"󰒾"}.mdi-sort-reverse-variant:before{content:"󰌼"}.mdi-sort-variant:before{content:"󰒿"}.mdi-sort-variant-lock:before{content:"󰳍"}.mdi-sort-variant-lock-open:before{content:"󰳎"}.mdi-sort-variant-off:before{content:"󱪻"}.mdi-sort-variant-remove:before{content:"󱅇"}.mdi-soundbar:before{content:"󱟛"}.mdi-soundcloud:before{content:"󰓀"}.mdi-source-branch:before{content:"󰘬"}.mdi-source-branch-check:before{content:"󱓏"}.mdi-source-branch-minus:before{content:"󱓋"}.mdi-source-branch-plus:before{content:"󱓊"}.mdi-source-branch-refresh:before{content:"󱓍"}.mdi-source-branch-remove:before{content:"󱓌"}.mdi-source-branch-sync:before{content:"󱓎"}.mdi-source-commit:before{content:"󰜘"}.mdi-source-commit-end:before{content:"󰜙"}.mdi-source-commit-end-local:before{content:"󰜚"}.mdi-source-commit-local:before{content:"󰜛"}.mdi-source-commit-next-local:before{content:"󰜜"}.mdi-source-commit-start:before{content:"󰜝"}.mdi-source-commit-start-next-local:before{content:"󰜞"}.mdi-source-fork:before{content:"󰓁"}.mdi-source-merge:before{content:"󰘭"}.mdi-source-pull:before{content:"󰓂"}.mdi-source-repository:before{content:"󰳏"}.mdi-source-repository-multiple:before{content:"󰳐"}.mdi-soy-sauce:before{content:"󰟮"}.mdi-soy-sauce-off:before{content:"󱏼"}.mdi-spa:before{content:"󰳑"}.mdi-spa-outline:before{content:"󰳒"}.mdi-space-invaders:before{content:"󰯉"}.mdi-space-station:before{content:"󱎃"}.mdi-spade:before{content:"󰹥"}.mdi-speaker:before{content:"󰓃"}.mdi-speaker-bluetooth:before{content:"󰦢"}.mdi-speaker-message:before{content:"󱬑"}.mdi-speaker-multiple:before{content:"󰴸"}.mdi-speaker-off:before{content:"󰓄"}.mdi-speaker-pause:before{content:"󱭳"}.mdi-speaker-play:before{content:"󱭲"}.mdi-speaker-stop:before{content:"󱭴"}.mdi-speaker-wireless:before{content:"󰜟"}.mdi-spear:before{content:"󱡅"}.mdi-speedometer:before{content:"󰓅"}.mdi-speedometer-medium:before{content:"󰾅"}.mdi-speedometer-slow:before{content:"󰾆"}.mdi-spellcheck:before{content:"󰓆"}.mdi-sphere:before{content:"󱥔"}.mdi-sphere-off:before{content:"󱥕"}.mdi-spider:before{content:"󱇪"}.mdi-spider-outline:before{content:"󱱵"}.mdi-spider-thread:before{content:"󱇫"}.mdi-spider-web:before{content:"󰯊"}.mdi-spirit-level:before{content:"󱓱"}.mdi-spoon-sugar:before{content:"󱐩"}.mdi-spotify:before{content:"󰓇"}.mdi-spotlight:before{content:"󰓈"}.mdi-spotlight-beam:before{content:"󰓉"}.mdi-spray:before{content:"󰙥"}.mdi-spray-bottle:before{content:"󰫠"}.mdi-sprinkler:before{content:"󱁟"}.mdi-sprinkler-fire:before{content:"󱦝"}.mdi-sprinkler-variant:before{content:"󱁠"}.mdi-sprout:before{content:"󰹦"}.mdi-sprout-outline:before{content:"󰹧"}.mdi-square:before{content:"󰝤"}.mdi-square-circle:before{content:"󱔀"}.mdi-square-circle-outline:before{content:"󱱐"}.mdi-square-edit-outline:before{content:"󰤌"}.mdi-square-medium:before{content:"󰨓"}.mdi-square-medium-outline:before{content:"󰨔"}.mdi-square-off:before{content:"󱋮"}.mdi-square-off-outline:before{content:"󱋯"}.mdi-square-opacity:before{content:"󱡔"}.mdi-square-outline:before{content:"󰝣"}.mdi-square-root:before{content:"󰞄"}.mdi-square-root-box:before{content:"󰦣"}.mdi-square-rounded:before{content:"󱓻"}.mdi-square-rounded-badge:before{content:"󱨇"}.mdi-square-rounded-badge-outline:before{content:"󱨈"}.mdi-square-rounded-outline:before{content:"󱓼"}.mdi-square-small:before{content:"󰨕"}.mdi-square-wave:before{content:"󱑻"}.mdi-squeegee:before{content:"󰫡"}.mdi-ssh:before{content:"󰣀"}.mdi-stack-exchange:before{content:"󰘋"}.mdi-stack-overflow:before{content:"󰓌"}.mdi-stackpath:before{content:"󰍙"}.mdi-stadium:before{content:"󰿹"}.mdi-stadium-outline:before{content:"󱬃"}.mdi-stadium-variant:before{content:"󰜠"}.mdi-stairs:before{content:"󰓍"}.mdi-stairs-box:before{content:"󱎞"}.mdi-stairs-down:before{content:"󱊾"}.mdi-stairs-up:before{content:"󱊽"}.mdi-stamper:before{content:"󰴹"}.mdi-standard-definition:before{content:"󰟯"}.mdi-star:before{content:"󰓎"}.mdi-star-box:before{content:"󰩳"}.mdi-star-box-multiple:before{content:"󱊆"}.mdi-star-box-multiple-outline:before{content:"󱊇"}.mdi-star-box-outline:before{content:"󰩴"}.mdi-star-check:before{content:"󱕦"}.mdi-star-check-outline:before{content:"󱕪"}.mdi-star-circle:before{content:"󰓏"}.mdi-star-circle-outline:before{content:"󰦤"}.mdi-star-cog:before{content:"󱙨"}.mdi-star-cog-outline:before{content:"󱙩"}.mdi-star-crescent:before{content:"󰥹"}.mdi-star-david:before{content:"󰥺"}.mdi-star-face:before{content:"󰦥"}.mdi-star-four-points:before{content:"󰫢"}.mdi-star-four-points-box:before{content:"󱱑"}.mdi-star-four-points-box-outline:before{content:"󱱒"}.mdi-star-four-points-circle:before{content:"󱱓"}.mdi-star-four-points-circle-outline:before{content:"󱱔"}.mdi-star-four-points-outline:before{content:"󰫣"}.mdi-star-four-points-small:before{content:"󱱕"}.mdi-star-half:before{content:"󰉆"}.mdi-star-half-full:before{content:"󰓐"}.mdi-star-minus:before{content:"󱕤"}.mdi-star-minus-outline:before{content:"󱕨"}.mdi-star-off:before{content:"󰓑"}.mdi-star-off-outline:before{content:"󱕛"}.mdi-star-outline:before{content:"󰓒"}.mdi-star-plus:before{content:"󱕣"}.mdi-star-plus-outline:before{content:"󱕧"}.mdi-star-remove:before{content:"󱕥"}.mdi-star-remove-outline:before{content:"󱕩"}.mdi-star-settings:before{content:"󱙪"}.mdi-star-settings-outline:before{content:"󱙫"}.mdi-star-shooting:before{content:"󱝁"}.mdi-star-shooting-outline:before{content:"󱝂"}.mdi-star-three-points:before{content:"󰫤"}.mdi-star-three-points-outline:before{content:"󰫥"}.mdi-state-machine:before{content:"󱇯"}.mdi-steam:before{content:"󰓓"}.mdi-steering:before{content:"󰓔"}.mdi-steering-off:before{content:"󰤎"}.mdi-step-backward:before{content:"󰓕"}.mdi-step-backward-2:before{content:"󰓖"}.mdi-step-forward:before{content:"󰓗"}.mdi-step-forward-2:before{content:"󰓘"}.mdi-stethoscope:before{content:"󰓙"}.mdi-sticker:before{content:"󱍤"}.mdi-sticker-alert:before{content:"󱍥"}.mdi-sticker-alert-outline:before{content:"󱍦"}.mdi-sticker-check:before{content:"󱍧"}.mdi-sticker-check-outline:before{content:"󱍨"}.mdi-sticker-circle-outline:before{content:"󰗐"}.mdi-sticker-emoji:before{content:"󰞅"}.mdi-sticker-minus:before{content:"󱍩"}.mdi-sticker-minus-outline:before{content:"󱍪"}.mdi-sticker-outline:before{content:"󱍫"}.mdi-sticker-plus:before{content:"󱍬"}.mdi-sticker-plus-outline:before{content:"󱍭"}.mdi-sticker-remove:before{content:"󱍮"}.mdi-sticker-remove-outline:before{content:"󱍯"}.mdi-sticker-text:before{content:"󱞎"}.mdi-sticker-text-outline:before{content:"󱞏"}.mdi-stocking:before{content:"󰓚"}.mdi-stomach:before{content:"󱂓"}.mdi-stool:before{content:"󱥝"}.mdi-stool-outline:before{content:"󱥞"}.mdi-stop:before{content:"󰓛"}.mdi-stop-circle:before{content:"󰙦"}.mdi-stop-circle-outline:before{content:"󰙧"}.mdi-storage-tank:before{content:"󱩵"}.mdi-storage-tank-outline:before{content:"󱩶"}.mdi-store:before{content:"󰓜"}.mdi-store-24-hour:before{content:"󰓝"}.mdi-store-alert:before{content:"󱣁"}.mdi-store-alert-outline:before{content:"󱣂"}.mdi-store-check:before{content:"󱣃"}.mdi-store-check-outline:before{content:"󱣄"}.mdi-store-clock:before{content:"󱣅"}.mdi-store-clock-outline:before{content:"󱣆"}.mdi-store-cog:before{content:"󱣇"}.mdi-store-cog-outline:before{content:"󱣈"}.mdi-store-edit:before{content:"󱣉"}.mdi-store-edit-outline:before{content:"󱣊"}.mdi-store-marker:before{content:"󱣋"}.mdi-store-marker-outline:before{content:"󱣌"}.mdi-store-minus:before{content:"󱙞"}.mdi-store-minus-outline:before{content:"󱣍"}.mdi-store-off:before{content:"󱣎"}.mdi-store-off-outline:before{content:"󱣏"}.mdi-store-outline:before{content:"󱍡"}.mdi-store-plus:before{content:"󱙟"}.mdi-store-plus-outline:before{content:"󱣐"}.mdi-store-remove:before{content:"󱙠"}.mdi-store-remove-outline:before{content:"󱣑"}.mdi-store-search:before{content:"󱣒"}.mdi-store-search-outline:before{content:"󱣓"}.mdi-store-settings:before{content:"󱣔"}.mdi-store-settings-outline:before{content:"󱣕"}.mdi-storefront:before{content:"󰟇"}.mdi-storefront-check:before{content:"󱭽"}.mdi-storefront-check-outline:before{content:"󱭾"}.mdi-storefront-edit:before{content:"󱭿"}.mdi-storefront-edit-outline:before{content:"󱮀"}.mdi-storefront-minus:before{content:"󱮃"}.mdi-storefront-minus-outline:before{content:"󱮄"}.mdi-storefront-outline:before{content:"󱃁"}.mdi-storefront-plus:before{content:"󱮁"}.mdi-storefront-plus-outline:before{content:"󱮂"}.mdi-storefront-remove:before{content:"󱮅"}.mdi-storefront-remove-outline:before{content:"󱮆"}.mdi-stove:before{content:"󰓞"}.mdi-strategy:before{content:"󱇖"}.mdi-stretch-to-page:before{content:"󰼫"}.mdi-stretch-to-page-outline:before{content:"󰼬"}.mdi-string-lights:before{content:"󱊺"}.mdi-string-lights-off:before{content:"󱊻"}.mdi-subdirectory-arrow-left:before{content:"󰘌"}.mdi-subdirectory-arrow-right:before{content:"󰘍"}.mdi-submarine:before{content:"󱕬"}.mdi-subtitles:before{content:"󰨖"}.mdi-subtitles-outline:before{content:"󰨗"}.mdi-subway:before{content:"󰚬"}.mdi-subway-alert-variant:before{content:"󰶝"}.mdi-subway-variant:before{content:"󰓟"}.mdi-summit:before{content:"󰞆"}.mdi-sun-angle:before{content:"󱬧"}.mdi-sun-angle-outline:before{content:"󱬨"}.mdi-sun-clock:before{content:"󱩷"}.mdi-sun-clock-outline:before{content:"󱩸"}.mdi-sun-compass:before{content:"󱦥"}.mdi-sun-snowflake:before{content:"󱞖"}.mdi-sun-snowflake-variant:before{content:"󱩹"}.mdi-sun-thermometer:before{content:"󱣖"}.mdi-sun-thermometer-outline:before{content:"󱣗"}.mdi-sun-wireless:before{content:"󱟾"}.mdi-sun-wireless-outline:before{content:"󱟿"}.mdi-sunglasses:before{content:"󰓠"}.mdi-surfing:before{content:"󱝆"}.mdi-surround-sound:before{content:"󰗅"}.mdi-surround-sound-2-0:before{content:"󰟰"}.mdi-surround-sound-2-1:before{content:"󱜩"}.mdi-surround-sound-3-1:before{content:"󰟱"}.mdi-surround-sound-5-1:before{content:"󰟲"}.mdi-surround-sound-5-1-2:before{content:"󱜪"}.mdi-surround-sound-7-1:before{content:"󰟳"}.mdi-svg:before{content:"󰜡"}.mdi-swap-horizontal:before{content:"󰓡"}.mdi-swap-horizontal-bold:before{content:"󰯍"}.mdi-swap-horizontal-circle:before{content:"󰿡"}.mdi-swap-horizontal-circle-outline:before{content:"󰿢"}.mdi-swap-horizontal-variant:before{content:"󰣁"}.mdi-swap-vertical:before{content:"󰓢"}.mdi-swap-vertical-bold:before{content:"󰯎"}.mdi-swap-vertical-circle:before{content:"󰿣"}.mdi-swap-vertical-circle-outline:before{content:"󰿤"}.mdi-swap-vertical-variant:before{content:"󰣂"}.mdi-swim:before{content:"󰓣"}.mdi-switch:before{content:"󰓤"}.mdi-sword:before{content:"󰓥"}.mdi-sword-cross:before{content:"󰞇"}.mdi-syllabary-hangul:before{content:"󱌳"}.mdi-syllabary-hiragana:before{content:"󱌴"}.mdi-syllabary-katakana:before{content:"󱌵"}.mdi-syllabary-katakana-halfwidth:before{content:"󱌶"}.mdi-symbol:before{content:"󱔁"}.mdi-symfony:before{content:"󰫦"}.mdi-synagogue:before{content:"󱬄"}.mdi-synagogue-outline:before{content:"󱬅"}.mdi-sync:before{content:"󰓦"}.mdi-sync-alert:before{content:"󰓧"}.mdi-sync-circle:before{content:"󱍸"}.mdi-sync-off:before{content:"󰓨"}.mdi-tab:before{content:"󰓩"}.mdi-tab-minus:before{content:"󰭋"}.mdi-tab-plus:before{content:"󰝜"}.mdi-tab-remove:before{content:"󰭌"}.mdi-tab-search:before{content:"󱦞"}.mdi-tab-unselected:before{content:"󰓪"}.mdi-table:before{content:"󰓫"}.mdi-table-account:before{content:"󱎹"}.mdi-table-alert:before{content:"󱎺"}.mdi-table-arrow-down:before{content:"󱎻"}.mdi-table-arrow-left:before{content:"󱎼"}.mdi-table-arrow-right:before{content:"󱎽"}.mdi-table-arrow-up:before{content:"󱎾"}.mdi-table-border:before{content:"󰨘"}.mdi-table-cancel:before{content:"󱎿"}.mdi-table-chair:before{content:"󱁡"}.mdi-table-check:before{content:"󱏀"}.mdi-table-clock:before{content:"󱏁"}.mdi-table-cog:before{content:"󱏂"}.mdi-table-column:before{content:"󰠵"}.mdi-table-column-plus-after:before{content:"󰓬"}.mdi-table-column-plus-before:before{content:"󰓭"}.mdi-table-column-remove:before{content:"󰓮"}.mdi-table-column-width:before{content:"󰓯"}.mdi-table-edit:before{content:"󰓰"}.mdi-table-eye:before{content:"󱂔"}.mdi-table-eye-off:before{content:"󱏃"}.mdi-table-filter:before{content:"󱮌"}.mdi-table-furniture:before{content:"󰖼"}.mdi-table-headers-eye:before{content:"󱈝"}.mdi-table-headers-eye-off:before{content:"󱈞"}.mdi-table-heart:before{content:"󱏄"}.mdi-table-key:before{content:"󱏅"}.mdi-table-large:before{content:"󰓱"}.mdi-table-large-plus:before{content:"󰾇"}.mdi-table-large-remove:before{content:"󰾈"}.mdi-table-lock:before{content:"󱏆"}.mdi-table-merge-cells:before{content:"󰦦"}.mdi-table-minus:before{content:"󱏇"}.mdi-table-multiple:before{content:"󱏈"}.mdi-table-network:before{content:"󱏉"}.mdi-table-of-contents:before{content:"󰠶"}.mdi-table-off:before{content:"󱏊"}.mdi-table-picnic:before{content:"󱝃"}.mdi-table-pivot:before{content:"󱠼"}.mdi-table-plus:before{content:"󰩵"}.mdi-table-question:before{content:"󱬡"}.mdi-table-refresh:before{content:"󱎠"}.mdi-table-remove:before{content:"󰩶"}.mdi-table-row:before{content:"󰠷"}.mdi-table-row-height:before{content:"󰓲"}.mdi-table-row-plus-after:before{content:"󰓳"}.mdi-table-row-plus-before:before{content:"󰓴"}.mdi-table-row-remove:before{content:"󰓵"}.mdi-table-search:before{content:"󰤏"}.mdi-table-settings:before{content:"󰠸"}.mdi-table-split-cell:before{content:"󱐪"}.mdi-table-star:before{content:"󱏋"}.mdi-table-sync:before{content:"󱎡"}.mdi-table-tennis:before{content:"󰹨"}.mdi-tablet:before{content:"󰓶"}.mdi-tablet-cellphone:before{content:"󰦧"}.mdi-tablet-dashboard:before{content:"󰻎"}.mdi-taco:before{content:"󰝢"}.mdi-tag:before{content:"󰓹"}.mdi-tag-arrow-down:before{content:"󱜫"}.mdi-tag-arrow-down-outline:before{content:"󱜬"}.mdi-tag-arrow-left:before{content:"󱜭"}.mdi-tag-arrow-left-outline:before{content:"󱜮"}.mdi-tag-arrow-right:before{content:"󱜯"}.mdi-tag-arrow-right-outline:before{content:"󱜰"}.mdi-tag-arrow-up:before{content:"󱜱"}.mdi-tag-arrow-up-outline:before{content:"󱜲"}.mdi-tag-check:before{content:"󱩺"}.mdi-tag-check-outline:before{content:"󱩻"}.mdi-tag-edit:before{content:"󱲜"}.mdi-tag-edit-outline:before{content:"󱲝"}.mdi-tag-faces:before{content:"󰓺"}.mdi-tag-heart:before{content:"󰚋"}.mdi-tag-heart-outline:before{content:"󰯏"}.mdi-tag-hidden:before{content:"󱱶"}.mdi-tag-minus:before{content:"󰤐"}.mdi-tag-minus-outline:before{content:"󱈟"}.mdi-tag-multiple:before{content:"󰓻"}.mdi-tag-multiple-outline:before{content:"󱋷"}.mdi-tag-off:before{content:"󱈠"}.mdi-tag-off-outline:before{content:"󱈡"}.mdi-tag-outline:before{content:"󰓼"}.mdi-tag-plus:before{content:"󰜢"}.mdi-tag-plus-outline:before{content:"󱈢"}.mdi-tag-remove:before{content:"󰜣"}.mdi-tag-remove-outline:before{content:"󱈣"}.mdi-tag-search:before{content:"󱤇"}.mdi-tag-search-outline:before{content:"󱤈"}.mdi-tag-text:before{content:"󱈤"}.mdi-tag-text-outline:before{content:"󰓽"}.mdi-tailwind:before{content:"󱏿"}.mdi-tally-mark-1:before{content:"󱪼"}.mdi-tally-mark-2:before{content:"󱪽"}.mdi-tally-mark-3:before{content:"󱪾"}.mdi-tally-mark-4:before{content:"󱪿"}.mdi-tally-mark-5:before{content:"󱫀"}.mdi-tangram:before{content:"󰓸"}.mdi-tank:before{content:"󰴺"}.mdi-tanker-truck:before{content:"󰿥"}.mdi-tape-drive:before{content:"󱛟"}.mdi-tape-measure:before{content:"󰭍"}.mdi-target:before{content:"󰓾"}.mdi-target-account:before{content:"󰯐"}.mdi-target-variant:before{content:"󰩷"}.mdi-taxi:before{content:"󰓿"}.mdi-tea:before{content:"󰶞"}.mdi-tea-outline:before{content:"󰶟"}.mdi-teamviewer:before{content:"󰔀"}.mdi-teddy-bear:before{content:"󱣻"}.mdi-telescope:before{content:"󰭎"}.mdi-television:before{content:"󰔂"}.mdi-television-ambient-light:before{content:"󱍖"}.mdi-television-box:before{content:"󰠹"}.mdi-television-classic:before{content:"󰟴"}.mdi-television-classic-off:before{content:"󰠺"}.mdi-television-guide:before{content:"󰔃"}.mdi-television-off:before{content:"󰠻"}.mdi-television-pause:before{content:"󰾉"}.mdi-television-play:before{content:"󰻏"}.mdi-television-shimmer:before{content:"󱄐"}.mdi-television-speaker:before{content:"󱬛"}.mdi-television-speaker-off:before{content:"󱬜"}.mdi-television-stop:before{content:"󰾊"}.mdi-temperature-celsius:before{content:"󰔄"}.mdi-temperature-fahrenheit:before{content:"󰔅"}.mdi-temperature-kelvin:before{content:"󰔆"}.mdi-temple-buddhist:before{content:"󱬆"}.mdi-temple-buddhist-outline:before{content:"󱬇"}.mdi-temple-hindu:before{content:"󱬈"}.mdi-temple-hindu-outline:before{content:"󱬉"}.mdi-tennis:before{content:"󰶠"}.mdi-tennis-ball:before{content:"󰔇"}.mdi-tennis-ball-outline:before{content:"󱱟"}.mdi-tent:before{content:"󰔈"}.mdi-terraform:before{content:"󱁢"}.mdi-terrain:before{content:"󰔉"}.mdi-test-tube:before{content:"󰙨"}.mdi-test-tube-empty:before{content:"󰤑"}.mdi-test-tube-off:before{content:"󰤒"}.mdi-text:before{content:"󰦨"}.mdi-text-account:before{content:"󱕰"}.mdi-text-box:before{content:"󰈚"}.mdi-text-box-check:before{content:"󰺦"}.mdi-text-box-check-outline:before{content:"󰺧"}.mdi-text-box-edit:before{content:"󱩼"}.mdi-text-box-edit-outline:before{content:"󱩽"}.mdi-text-box-minus:before{content:"󰺨"}.mdi-text-box-minus-outline:before{content:"󰺩"}.mdi-text-box-multiple:before{content:"󰪷"}.mdi-text-box-multiple-outline:before{content:"󰪸"}.mdi-text-box-outline:before{content:"󰧭"}.mdi-text-box-plus:before{content:"󰺪"}.mdi-text-box-plus-outline:before{content:"󰺫"}.mdi-text-box-remove:before{content:"󰺬"}.mdi-text-box-remove-outline:before{content:"󰺭"}.mdi-text-box-search:before{content:"󰺮"}.mdi-text-box-search-outline:before{content:"󰺯"}.mdi-text-long:before{content:"󰦪"}.mdi-text-recognition:before{content:"󱄽"}.mdi-text-search:before{content:"󱎸"}.mdi-text-search-variant:before{content:"󱩾"}.mdi-text-shadow:before{content:"󰙩"}.mdi-text-short:before{content:"󰦩"}.mdi-texture:before{content:"󰔌"}.mdi-texture-box:before{content:"󰿦"}.mdi-theater:before{content:"󰔍"}.mdi-theme-light-dark:before{content:"󰔎"}.mdi-thermometer:before{content:"󰔏"}.mdi-thermometer-alert:before{content:"󰸁"}.mdi-thermometer-auto:before{content:"󱬏"}.mdi-thermometer-bluetooth:before{content:"󱢕"}.mdi-thermometer-check:before{content:"󱩿"}.mdi-thermometer-chevron-down:before{content:"󰸂"}.mdi-thermometer-chevron-up:before{content:"󰸃"}.mdi-thermometer-high:before{content:"󱃂"}.mdi-thermometer-lines:before{content:"󰔐"}.mdi-thermometer-low:before{content:"󱃃"}.mdi-thermometer-minus:before{content:"󰸄"}.mdi-thermometer-off:before{content:"󱔱"}.mdi-thermometer-plus:before{content:"󰸅"}.mdi-thermometer-probe:before{content:"󱬫"}.mdi-thermometer-probe-off:before{content:"󱬬"}.mdi-thermometer-water:before{content:"󱪀"}.mdi-thermostat:before{content:"󰎓"}.mdi-thermostat-auto:before{content:"󱬗"}.mdi-thermostat-box:before{content:"󰢑"}.mdi-thermostat-box-auto:before{content:"󱬘"}.mdi-thermostat-cog:before{content:"󱲀"}.mdi-thought-bubble:before{content:"󰟶"}.mdi-thought-bubble-outline:before{content:"󰟷"}.mdi-thumb-down:before{content:"󰔑"}.mdi-thumb-down-outline:before{content:"󰔒"}.mdi-thumb-up:before{content:"󰔓"}.mdi-thumb-up-outline:before{content:"󰔔"}.mdi-thumbs-up-down:before{content:"󰔕"}.mdi-thumbs-up-down-outline:before{content:"󱤔"}.mdi-ticket:before{content:"󰔖"}.mdi-ticket-account:before{content:"󰔗"}.mdi-ticket-confirmation:before{content:"󰔘"}.mdi-ticket-confirmation-outline:before{content:"󱎪"}.mdi-ticket-outline:before{content:"󰤓"}.mdi-ticket-percent:before{content:"󰜤"}.mdi-ticket-percent-outline:before{content:"󱐫"}.mdi-tie:before{content:"󰔙"}.mdi-tilde:before{content:"󰜥"}.mdi-tilde-off:before{content:"󱣳"}.mdi-timelapse:before{content:"󰔚"}.mdi-timeline:before{content:"󰯑"}.mdi-timeline-alert:before{content:"󰾕"}.mdi-timeline-alert-outline:before{content:"󰾘"}.mdi-timeline-check:before{content:"󱔲"}.mdi-timeline-check-outline:before{content:"󱔳"}.mdi-timeline-clock:before{content:"󱇻"}.mdi-timeline-clock-outline:before{content:"󱇼"}.mdi-timeline-minus:before{content:"󱔴"}.mdi-timeline-minus-outline:before{content:"󱔵"}.mdi-timeline-outline:before{content:"󰯒"}.mdi-timeline-plus:before{content:"󰾖"}.mdi-timeline-plus-outline:before{content:"󰾗"}.mdi-timeline-question:before{content:"󰾙"}.mdi-timeline-question-outline:before{content:"󰾚"}.mdi-timeline-remove:before{content:"󱔶"}.mdi-timeline-remove-outline:before{content:"󱔷"}.mdi-timeline-text:before{content:"󰯓"}.mdi-timeline-text-outline:before{content:"󰯔"}.mdi-timer:before{content:"󱎫"}.mdi-timer-10:before{content:"󰔜"}.mdi-timer-3:before{content:"󰔝"}.mdi-timer-alert:before{content:"󱫌"}.mdi-timer-alert-outline:before{content:"󱫍"}.mdi-timer-cancel:before{content:"󱫎"}.mdi-timer-cancel-outline:before{content:"󱫏"}.mdi-timer-check:before{content:"󱫐"}.mdi-timer-check-outline:before{content:"󱫑"}.mdi-timer-cog:before{content:"󱤥"}.mdi-timer-cog-outline:before{content:"󱤦"}.mdi-timer-edit:before{content:"󱫒"}.mdi-timer-edit-outline:before{content:"󱫓"}.mdi-timer-lock:before{content:"󱫔"}.mdi-timer-lock-open:before{content:"󱫕"}.mdi-timer-lock-open-outline:before{content:"󱫖"}.mdi-timer-lock-outline:before{content:"󱫗"}.mdi-timer-marker:before{content:"󱫘"}.mdi-timer-marker-outline:before{content:"󱫙"}.mdi-timer-minus:before{content:"󱫚"}.mdi-timer-minus-outline:before{content:"󱫛"}.mdi-timer-music:before{content:"󱫜"}.mdi-timer-music-outline:before{content:"󱫝"}.mdi-timer-off:before{content:"󱎬"}.mdi-timer-off-outline:before{content:"󰔞"}.mdi-timer-outline:before{content:"󰔛"}.mdi-timer-pause:before{content:"󱫞"}.mdi-timer-pause-outline:before{content:"󱫟"}.mdi-timer-play:before{content:"󱫠"}.mdi-timer-play-outline:before{content:"󱫡"}.mdi-timer-plus:before{content:"󱫢"}.mdi-timer-plus-outline:before{content:"󱫣"}.mdi-timer-refresh:before{content:"󱫤"}.mdi-timer-refresh-outline:before{content:"󱫥"}.mdi-timer-remove:before{content:"󱫦"}.mdi-timer-remove-outline:before{content:"󱫧"}.mdi-timer-sand:before{content:"󰔟"}.mdi-timer-sand-complete:before{content:"󱦟"}.mdi-timer-sand-empty:before{content:"󰚭"}.mdi-timer-sand-full:before{content:"󰞌"}.mdi-timer-sand-paused:before{content:"󱦠"}.mdi-timer-settings:before{content:"󱤣"}.mdi-timer-settings-outline:before{content:"󱤤"}.mdi-timer-star:before{content:"󱫨"}.mdi-timer-star-outline:before{content:"󱫩"}.mdi-timer-stop:before{content:"󱫪"}.mdi-timer-stop-outline:before{content:"󱫫"}.mdi-timer-sync:before{content:"󱫬"}.mdi-timer-sync-outline:before{content:"󱫭"}.mdi-timetable:before{content:"󰔠"}.mdi-tire:before{content:"󱢖"}.mdi-toaster:before{content:"󱁣"}.mdi-toaster-off:before{content:"󱆷"}.mdi-toaster-oven:before{content:"󰳓"}.mdi-toggle-switch:before{content:"󰔡"}.mdi-toggle-switch-off:before{content:"󰔢"}.mdi-toggle-switch-off-outline:before{content:"󰨙"}.mdi-toggle-switch-outline:before{content:"󰨚"}.mdi-toggle-switch-variant:before{content:"󱨥"}.mdi-toggle-switch-variant-off:before{content:"󱨦"}.mdi-toilet:before{content:"󰦫"}.mdi-toolbox:before{content:"󰦬"}.mdi-toolbox-outline:before{content:"󰦭"}.mdi-tools:before{content:"󱁤"}.mdi-tooltip:before{content:"󰔣"}.mdi-tooltip-account:before{content:"󰀌"}.mdi-tooltip-cellphone:before{content:"󱠻"}.mdi-tooltip-check:before{content:"󱕜"}.mdi-tooltip-check-outline:before{content:"󱕝"}.mdi-tooltip-edit:before{content:"󰔤"}.mdi-tooltip-edit-outline:before{content:"󱋅"}.mdi-tooltip-image:before{content:"󰔥"}.mdi-tooltip-image-outline:before{content:"󰯕"}.mdi-tooltip-minus:before{content:"󱕞"}.mdi-tooltip-minus-outline:before{content:"󱕟"}.mdi-tooltip-outline:before{content:"󰔦"}.mdi-tooltip-plus:before{content:"󰯖"}.mdi-tooltip-plus-outline:before{content:"󰔧"}.mdi-tooltip-question:before{content:"󱮺"}.mdi-tooltip-question-outline:before{content:"󱮻"}.mdi-tooltip-remove:before{content:"󱕠"}.mdi-tooltip-remove-outline:before{content:"󱕡"}.mdi-tooltip-text:before{content:"󰔨"}.mdi-tooltip-text-outline:before{content:"󰯗"}.mdi-tooth:before{content:"󰣃"}.mdi-tooth-outline:before{content:"󰔩"}.mdi-toothbrush:before{content:"󱄩"}.mdi-toothbrush-electric:before{content:"󱄬"}.mdi-toothbrush-paste:before{content:"󱄪"}.mdi-torch:before{content:"󱘆"}.mdi-tortoise:before{content:"󰴻"}.mdi-toslink:before{content:"󱊸"}.mdi-touch-text-outline:before{content:"󱱠"}.mdi-tournament:before{content:"󰦮"}.mdi-tow-truck:before{content:"󰠼"}.mdi-tower-beach:before{content:"󰚁"}.mdi-tower-fire:before{content:"󰚂"}.mdi-town-hall:before{content:"󱡵"}.mdi-toy-brick:before{content:"󱊈"}.mdi-toy-brick-marker:before{content:"󱊉"}.mdi-toy-brick-marker-outline:before{content:"󱊊"}.mdi-toy-brick-minus:before{content:"󱊋"}.mdi-toy-brick-minus-outline:before{content:"󱊌"}.mdi-toy-brick-outline:before{content:"󱊍"}.mdi-toy-brick-plus:before{content:"󱊎"}.mdi-toy-brick-plus-outline:before{content:"󱊏"}.mdi-toy-brick-remove:before{content:"󱊐"}.mdi-toy-brick-remove-outline:before{content:"󱊑"}.mdi-toy-brick-search:before{content:"󱊒"}.mdi-toy-brick-search-outline:before{content:"󱊓"}.mdi-track-light:before{content:"󰤔"}.mdi-track-light-off:before{content:"󱬁"}.mdi-trackpad:before{content:"󰟸"}.mdi-trackpad-lock:before{content:"󰤳"}.mdi-tractor:before{content:"󰢒"}.mdi-tractor-variant:before{content:"󱓄"}.mdi-trademark:before{content:"󰩸"}.mdi-traffic-cone:before{content:"󱍼"}.mdi-traffic-light:before{content:"󰔫"}.mdi-traffic-light-outline:before{content:"󱠪"}.mdi-train:before{content:"󰔬"}.mdi-train-bus:before{content:"󱳇"}.mdi-train-car:before{content:"󰯘"}.mdi-train-car-autorack:before{content:"󱬭"}.mdi-train-car-box:before{content:"󱬮"}.mdi-train-car-box-full:before{content:"󱬯"}.mdi-train-car-box-open:before{content:"󱬰"}.mdi-train-car-caboose:before{content:"󱬱"}.mdi-train-car-centerbeam:before{content:"󱬲"}.mdi-train-car-centerbeam-full:before{content:"󱬳"}.mdi-train-car-container:before{content:"󱬴"}.mdi-train-car-flatbed:before{content:"󱬵"}.mdi-train-car-flatbed-car:before{content:"󱬶"}.mdi-train-car-flatbed-tank:before{content:"󱬷"}.mdi-train-car-gondola:before{content:"󱬸"}.mdi-train-car-gondola-full:before{content:"󱬹"}.mdi-train-car-hopper:before{content:"󱬺"}.mdi-train-car-hopper-covered:before{content:"󱬻"}.mdi-train-car-hopper-full:before{content:"󱬼"}.mdi-train-car-intermodal:before{content:"󱬽"}.mdi-train-car-passenger:before{content:"󱜳"}.mdi-train-car-passenger-door:before{content:"󱜴"}.mdi-train-car-passenger-door-open:before{content:"󱜵"}.mdi-train-car-passenger-variant:before{content:"󱜶"}.mdi-train-car-tank:before{content:"󱬾"}.mdi-train-variant:before{content:"󰣄"}.mdi-tram:before{content:"󰔭"}.mdi-tram-side:before{content:"󰿧"}.mdi-transcribe:before{content:"󰔮"}.mdi-transcribe-close:before{content:"󰔯"}.mdi-transfer:before{content:"󱁥"}.mdi-transfer-down:before{content:"󰶡"}.mdi-transfer-left:before{content:"󰶢"}.mdi-transfer-right:before{content:"󰔰"}.mdi-transfer-up:before{content:"󰶣"}.mdi-transit-connection:before{content:"󰴼"}.mdi-transit-connection-horizontal:before{content:"󱕆"}.mdi-transit-connection-variant:before{content:"󰴽"}.mdi-transit-detour:before{content:"󰾋"}.mdi-transit-skip:before{content:"󱔕"}.mdi-transit-transfer:before{content:"󰚮"}.mdi-transition:before{content:"󰤕"}.mdi-transition-masked:before{content:"󰤖"}.mdi-translate:before{content:"󰗊"}.mdi-translate-off:before{content:"󰸆"}.mdi-translate-variant:before{content:"󱮙"}.mdi-transmission-tower:before{content:"󰴾"}.mdi-transmission-tower-export:before{content:"󱤬"}.mdi-transmission-tower-import:before{content:"󱤭"}.mdi-transmission-tower-off:before{content:"󱧝"}.mdi-trash-can:before{content:"󰩹"}.mdi-trash-can-outline:before{content:"󰩺"}.mdi-tray:before{content:"󱊔"}.mdi-tray-alert:before{content:"󱊕"}.mdi-tray-arrow-down:before{content:"󰄠"}.mdi-tray-arrow-up:before{content:"󰄝"}.mdi-tray-full:before{content:"󱊖"}.mdi-tray-minus:before{content:"󱊗"}.mdi-tray-plus:before{content:"󱊘"}.mdi-tray-remove:before{content:"󱊙"}.mdi-treasure-chest:before{content:"󰜦"}.mdi-treasure-chest-outline:before{content:"󱱷"}.mdi-tree:before{content:"󰔱"}.mdi-tree-outline:before{content:"󰹩"}.mdi-trello:before{content:"󰔲"}.mdi-trending-down:before{content:"󰔳"}.mdi-trending-neutral:before{content:"󰔴"}.mdi-trending-up:before{content:"󰔵"}.mdi-triangle:before{content:"󰔶"}.mdi-triangle-down:before{content:"󱱖"}.mdi-triangle-down-outline:before{content:"󱱗"}.mdi-triangle-outline:before{content:"󰔷"}.mdi-triangle-small-down:before{content:"󱨉"}.mdi-triangle-small-up:before{content:"󱨊"}.mdi-triangle-wave:before{content:"󱑼"}.mdi-triforce:before{content:"󰯙"}.mdi-trophy:before{content:"󰔸"}.mdi-trophy-award:before{content:"󰔹"}.mdi-trophy-broken:before{content:"󰶤"}.mdi-trophy-outline:before{content:"󰔺"}.mdi-trophy-variant:before{content:"󰔻"}.mdi-trophy-variant-outline:before{content:"󰔼"}.mdi-truck:before{content:"󰔽"}.mdi-truck-alert:before{content:"󱧞"}.mdi-truck-alert-outline:before{content:"󱧟"}.mdi-truck-cargo-container:before{content:"󱣘"}.mdi-truck-check:before{content:"󰳔"}.mdi-truck-check-outline:before{content:"󱊚"}.mdi-truck-delivery:before{content:"󰔾"}.mdi-truck-delivery-outline:before{content:"󱊛"}.mdi-truck-fast:before{content:"󰞈"}.mdi-truck-fast-outline:before{content:"󱊜"}.mdi-truck-flatbed:before{content:"󱢑"}.mdi-truck-minus:before{content:"󱦮"}.mdi-truck-minus-outline:before{content:"󱦽"}.mdi-truck-off-road:before{content:"󱲞"}.mdi-truck-off-road-off:before{content:"󱲟"}.mdi-truck-outline:before{content:"󱊝"}.mdi-truck-plus:before{content:"󱦭"}.mdi-truck-plus-outline:before{content:"󱦼"}.mdi-truck-remove:before{content:"󱦯"}.mdi-truck-remove-outline:before{content:"󱦾"}.mdi-truck-snowflake:before{content:"󱦦"}.mdi-truck-trailer:before{content:"󰜧"}.mdi-trumpet:before{content:"󱂖"}.mdi-tshirt-crew:before{content:"󰩻"}.mdi-tshirt-crew-outline:before{content:"󰔿"}.mdi-tshirt-v:before{content:"󰩼"}.mdi-tshirt-v-outline:before{content:"󰕀"}.mdi-tsunami:before{content:"󱪁"}.mdi-tumble-dryer:before{content:"󰤗"}.mdi-tumble-dryer-alert:before{content:"󱆺"}.mdi-tumble-dryer-off:before{content:"󱆻"}.mdi-tune:before{content:"󰘮"}.mdi-tune-variant:before{content:"󱕂"}.mdi-tune-vertical:before{content:"󰙪"}.mdi-tune-vertical-variant:before{content:"󱕃"}.mdi-tunnel:before{content:"󱠽"}.mdi-tunnel-outline:before{content:"󱠾"}.mdi-turbine:before{content:"󱪂"}.mdi-turkey:before{content:"󱜛"}.mdi-turnstile:before{content:"󰳕"}.mdi-turnstile-outline:before{content:"󰳖"}.mdi-turtle:before{content:"󰳗"}.mdi-twitch:before{content:"󰕃"}.mdi-twitter:before{content:"󰕄"}.mdi-two-factor-authentication:before{content:"󰦯"}.mdi-typewriter:before{content:"󰼭"}.mdi-ubisoft:before{content:"󰯚"}.mdi-ubuntu:before{content:"󰕈"}.mdi-ufo:before{content:"󱃄"}.mdi-ufo-outline:before{content:"󱃅"}.mdi-ultra-high-definition:before{content:"󰟹"}.mdi-umbraco:before{content:"󰕉"}.mdi-umbrella:before{content:"󰕊"}.mdi-umbrella-beach:before{content:"󱢊"}.mdi-umbrella-beach-outline:before{content:"󱢋"}.mdi-umbrella-closed:before{content:"󰦰"}.mdi-umbrella-closed-outline:before{content:"󱏢"}.mdi-umbrella-closed-variant:before{content:"󱏡"}.mdi-umbrella-outline:before{content:"󰕋"}.mdi-undo:before{content:"󰕌"}.mdi-undo-variant:before{content:"󰕍"}.mdi-unfold-less-horizontal:before{content:"󰕎"}.mdi-unfold-less-vertical:before{content:"󰝠"}.mdi-unfold-more-horizontal:before{content:"󰕏"}.mdi-unfold-more-vertical:before{content:"󰝡"}.mdi-ungroup:before{content:"󰕐"}.mdi-unicode:before{content:"󰻐"}.mdi-unicorn:before{content:"󱗂"}.mdi-unicorn-variant:before{content:"󱗃"}.mdi-unicycle:before{content:"󱗥"}.mdi-unity:before{content:"󰚯"}.mdi-unreal:before{content:"󰦱"}.mdi-update:before{content:"󰚰"}.mdi-upload:before{content:"󰕒"}.mdi-upload-lock:before{content:"󱍳"}.mdi-upload-lock-outline:before{content:"󱍴"}.mdi-upload-multiple:before{content:"󰠽"}.mdi-upload-network:before{content:"󰛶"}.mdi-upload-network-outline:before{content:"󰳘"}.mdi-upload-off:before{content:"󱃆"}.mdi-upload-off-outline:before{content:"󱃇"}.mdi-upload-outline:before{content:"󰸇"}.mdi-usb:before{content:"󰕓"}.mdi-usb-c-port:before{content:"󱲿"}.mdi-usb-flash-drive:before{content:"󱊞"}.mdi-usb-flash-drive-outline:before{content:"󱊟"}.mdi-usb-port:before{content:"󱇰"}.mdi-vacuum:before{content:"󱦡"}.mdi-vacuum-outline:before{content:"󱦢"}.mdi-valve:before{content:"󱁦"}.mdi-valve-closed:before{content:"󱁧"}.mdi-valve-open:before{content:"󱁨"}.mdi-van-passenger:before{content:"󰟺"}.mdi-van-utility:before{content:"󰟻"}.mdi-vanish:before{content:"󰟼"}.mdi-vanish-quarter:before{content:"󱕔"}.mdi-vanity-light:before{content:"󱇡"}.mdi-variable:before{content:"󰫧"}.mdi-variable-box:before{content:"󱄑"}.mdi-vector-arrange-above:before{content:"󰕔"}.mdi-vector-arrange-below:before{content:"󰕕"}.mdi-vector-bezier:before{content:"󰫨"}.mdi-vector-circle:before{content:"󰕖"}.mdi-vector-circle-variant:before{content:"󰕗"}.mdi-vector-combine:before{content:"󰕘"}.mdi-vector-curve:before{content:"󰕙"}.mdi-vector-difference:before{content:"󰕚"}.mdi-vector-difference-ab:before{content:"󰕛"}.mdi-vector-difference-ba:before{content:"󰕜"}.mdi-vector-ellipse:before{content:"󰢓"}.mdi-vector-intersection:before{content:"󰕝"}.mdi-vector-line:before{content:"󰕞"}.mdi-vector-link:before{content:"󰿨"}.mdi-vector-point:before{content:"󰇄"}.mdi-vector-point-edit:before{content:"󰧨"}.mdi-vector-point-minus:before{content:"󱭸"}.mdi-vector-point-plus:before{content:"󱭹"}.mdi-vector-point-select:before{content:"󰕟"}.mdi-vector-polygon:before{content:"󰕠"}.mdi-vector-polygon-variant:before{content:"󱡖"}.mdi-vector-polyline:before{content:"󰕡"}.mdi-vector-polyline-edit:before{content:"󱈥"}.mdi-vector-polyline-minus:before{content:"󱈦"}.mdi-vector-polyline-plus:before{content:"󱈧"}.mdi-vector-polyline-remove:before{content:"󱈨"}.mdi-vector-radius:before{content:"󰝊"}.mdi-vector-rectangle:before{content:"󰗆"}.mdi-vector-selection:before{content:"󰕢"}.mdi-vector-square:before{content:"󰀁"}.mdi-vector-square-close:before{content:"󱡗"}.mdi-vector-square-edit:before{content:"󱣙"}.mdi-vector-square-minus:before{content:"󱣚"}.mdi-vector-square-open:before{content:"󱡘"}.mdi-vector-square-plus:before{content:"󱣛"}.mdi-vector-square-remove:before{content:"󱣜"}.mdi-vector-triangle:before{content:"󰕣"}.mdi-vector-union:before{content:"󰕤"}.mdi-vhs:before{content:"󰨛"}.mdi-vibrate:before{content:"󰕦"}.mdi-vibrate-off:before{content:"󰳙"}.mdi-video:before{content:"󰕧"}.mdi-video-2d:before{content:"󱨜"}.mdi-video-3d:before{content:"󰟽"}.mdi-video-3d-off:before{content:"󱏙"}.mdi-video-3d-variant:before{content:"󰻑"}.mdi-video-4k-box:before{content:"󰠾"}.mdi-video-account:before{content:"󰤙"}.mdi-video-box:before{content:"󰃽"}.mdi-video-box-off:before{content:"󰃾"}.mdi-video-check:before{content:"󱁩"}.mdi-video-check-outline:before{content:"󱁪"}.mdi-video-high-definition:before{content:"󱔮"}.mdi-video-image:before{content:"󰤚"}.mdi-video-input-antenna:before{content:"󰠿"}.mdi-video-input-component:before{content:"󰡀"}.mdi-video-input-hdmi:before{content:"󰡁"}.mdi-video-input-scart:before{content:"󰾌"}.mdi-video-input-svideo:before{content:"󰡂"}.mdi-video-marker:before{content:"󱦩"}.mdi-video-marker-outline:before{content:"󱦪"}.mdi-video-minus:before{content:"󰦲"}.mdi-video-minus-outline:before{content:"󰊺"}.mdi-video-off:before{content:"󰕨"}.mdi-video-off-outline:before{content:"󰯛"}.mdi-video-outline:before{content:"󰯜"}.mdi-video-plus:before{content:"󰦳"}.mdi-video-plus-outline:before{content:"󰇓"}.mdi-video-stabilization:before{content:"󰤛"}.mdi-video-standard-definition:before{content:"󱲠"}.mdi-video-switch:before{content:"󰕩"}.mdi-video-switch-outline:before{content:"󰞐"}.mdi-video-vintage:before{content:"󰨜"}.mdi-video-wireless:before{content:"󰻒"}.mdi-video-wireless-outline:before{content:"󰻓"}.mdi-view-agenda:before{content:"󰕪"}.mdi-view-agenda-outline:before{content:"󱇘"}.mdi-view-array:before{content:"󰕫"}.mdi-view-array-outline:before{content:"󱒅"}.mdi-view-carousel:before{content:"󰕬"}.mdi-view-carousel-outline:before{content:"󱒆"}.mdi-view-column:before{content:"󰕭"}.mdi-view-column-outline:before{content:"󱒇"}.mdi-view-comfy:before{content:"󰹪"}.mdi-view-comfy-outline:before{content:"󱒈"}.mdi-view-compact:before{content:"󰹫"}.mdi-view-compact-outline:before{content:"󰹬"}.mdi-view-dashboard:before{content:"󰕮"}.mdi-view-dashboard-edit:before{content:"󱥇"}.mdi-view-dashboard-edit-outline:before{content:"󱥈"}.mdi-view-dashboard-outline:before{content:"󰨝"}.mdi-view-dashboard-variant:before{content:"󰡃"}.mdi-view-dashboard-variant-outline:before{content:"󱒉"}.mdi-view-day:before{content:"󰕯"}.mdi-view-day-outline:before{content:"󱒊"}.mdi-view-gallery:before{content:"󱢈"}.mdi-view-gallery-outline:before{content:"󱢉"}.mdi-view-grid:before{content:"󰕰"}.mdi-view-grid-compact:before{content:"󱱡"}.mdi-view-grid-outline:before{content:"󱇙"}.mdi-view-grid-plus:before{content:"󰾍"}.mdi-view-grid-plus-outline:before{content:"󱇚"}.mdi-view-headline:before{content:"󰕱"}.mdi-view-list:before{content:"󰕲"}.mdi-view-list-outline:before{content:"󱒋"}.mdi-view-module:before{content:"󰕳"}.mdi-view-module-outline:before{content:"󱒌"}.mdi-view-parallel:before{content:"󰜨"}.mdi-view-parallel-outline:before{content:"󱒍"}.mdi-view-quilt:before{content:"󰕴"}.mdi-view-quilt-outline:before{content:"󱒎"}.mdi-view-sequential:before{content:"󰜩"}.mdi-view-sequential-outline:before{content:"󱒏"}.mdi-view-split-horizontal:before{content:"󰯋"}.mdi-view-split-vertical:before{content:"󰯌"}.mdi-view-stream:before{content:"󰕵"}.mdi-view-stream-outline:before{content:"󱒐"}.mdi-view-week:before{content:"󰕶"}.mdi-view-week-outline:before{content:"󱒑"}.mdi-vimeo:before{content:"󰕷"}.mdi-violin:before{content:"󰘏"}.mdi-virtual-reality:before{content:"󰢔"}.mdi-virus:before{content:"󱎶"}.mdi-virus-off:before{content:"󱣡"}.mdi-virus-off-outline:before{content:"󱣢"}.mdi-virus-outline:before{content:"󱎷"}.mdi-vlc:before{content:"󰕼"}.mdi-voicemail:before{content:"󰕽"}.mdi-volcano:before{content:"󱪃"}.mdi-volcano-outline:before{content:"󱪄"}.mdi-volleyball:before{content:"󰦴"}.mdi-volume-equal:before{content:"󱬐"}.mdi-volume-high:before{content:"󰕾"}.mdi-volume-low:before{content:"󰕿"}.mdi-volume-medium:before{content:"󰖀"}.mdi-volume-minus:before{content:"󰝞"}.mdi-volume-mute:before{content:"󰝟"}.mdi-volume-off:before{content:"󰖁"}.mdi-volume-plus:before{content:"󰝝"}.mdi-volume-source:before{content:"󱄠"}.mdi-volume-variant-off:before{content:"󰸈"}.mdi-volume-vibrate:before{content:"󱄡"}.mdi-vote:before{content:"󰨟"}.mdi-vote-outline:before{content:"󰨠"}.mdi-vpn:before{content:"󰖂"}.mdi-vuejs:before{content:"󰡄"}.mdi-vuetify:before{content:"󰹭"}.mdi-walk:before{content:"󰖃"}.mdi-wall:before{content:"󰟾"}.mdi-wall-fire:before{content:"󱨑"}.mdi-wall-sconce:before{content:"󰤜"}.mdi-wall-sconce-flat:before{content:"󰤝"}.mdi-wall-sconce-flat-outline:before{content:"󱟉"}.mdi-wall-sconce-flat-variant:before{content:"󰐜"}.mdi-wall-sconce-flat-variant-outline:before{content:"󱟊"}.mdi-wall-sconce-outline:before{content:"󱟋"}.mdi-wall-sconce-round:before{content:"󰝈"}.mdi-wall-sconce-round-outline:before{content:"󱟌"}.mdi-wall-sconce-round-variant:before{content:"󰤞"}.mdi-wall-sconce-round-variant-outline:before{content:"󱟍"}.mdi-wallet:before{content:"󰖄"}.mdi-wallet-bifold:before{content:"󱱘"}.mdi-wallet-bifold-outline:before{content:"󱱙"}.mdi-wallet-giftcard:before{content:"󰖅"}.mdi-wallet-membership:before{content:"󰖆"}.mdi-wallet-outline:before{content:"󰯝"}.mdi-wallet-plus:before{content:"󰾎"}.mdi-wallet-plus-outline:before{content:"󰾏"}.mdi-wallet-travel:before{content:"󰖇"}.mdi-wallpaper:before{content:"󰸉"}.mdi-wan:before{content:"󰖈"}.mdi-wardrobe:before{content:"󰾐"}.mdi-wardrobe-outline:before{content:"󰾑"}.mdi-warehouse:before{content:"󰾁"}.mdi-washing-machine:before{content:"󰜪"}.mdi-washing-machine-alert:before{content:"󱆼"}.mdi-washing-machine-off:before{content:"󱆽"}.mdi-watch:before{content:"󰖉"}.mdi-watch-export:before{content:"󰖊"}.mdi-watch-export-variant:before{content:"󰢕"}.mdi-watch-import:before{content:"󰖋"}.mdi-watch-import-variant:before{content:"󰢖"}.mdi-watch-variant:before{content:"󰢗"}.mdi-watch-vibrate:before{content:"󰚱"}.mdi-watch-vibrate-off:before{content:"󰳚"}.mdi-water:before{content:"󰖌"}.mdi-water-alert:before{content:"󱔂"}.mdi-water-alert-outline:before{content:"󱔃"}.mdi-water-boiler:before{content:"󰾒"}.mdi-water-boiler-alert:before{content:"󱆳"}.mdi-water-boiler-auto:before{content:"󱮘"}.mdi-water-boiler-off:before{content:"󱆴"}.mdi-water-check:before{content:"󱔄"}.mdi-water-check-outline:before{content:"󱔅"}.mdi-water-circle:before{content:"󱠆"}.mdi-water-minus:before{content:"󱔆"}.mdi-water-minus-outline:before{content:"󱔇"}.mdi-water-off:before{content:"󰖍"}.mdi-water-off-outline:before{content:"󱔈"}.mdi-water-opacity:before{content:"󱡕"}.mdi-water-outline:before{content:"󰸊"}.mdi-water-percent:before{content:"󰖎"}.mdi-water-percent-alert:before{content:"󱔉"}.mdi-water-plus:before{content:"󱔊"}.mdi-water-plus-outline:before{content:"󱔋"}.mdi-water-polo:before{content:"󱊠"}.mdi-water-pump:before{content:"󰖏"}.mdi-water-pump-off:before{content:"󰾓"}.mdi-water-remove:before{content:"󱔌"}.mdi-water-remove-outline:before{content:"󱔍"}.mdi-water-sync:before{content:"󱟆"}.mdi-water-thermometer:before{content:"󱪅"}.mdi-water-thermometer-outline:before{content:"󱪆"}.mdi-water-well:before{content:"󱁫"}.mdi-water-well-outline:before{content:"󱁬"}.mdi-waterfall:before{content:"󱡉"}.mdi-watering-can:before{content:"󱒁"}.mdi-watering-can-outline:before{content:"󱒂"}.mdi-watermark:before{content:"󰘒"}.mdi-wave:before{content:"󰼮"}.mdi-wave-arrow-down:before{content:"󱲰"}.mdi-wave-arrow-up:before{content:"󱲱"}.mdi-wave-undercurrent:before{content:"󱳀"}.mdi-waveform:before{content:"󱑽"}.mdi-waves:before{content:"󰞍"}.mdi-waves-arrow-left:before{content:"󱡙"}.mdi-waves-arrow-right:before{content:"󱡚"}.mdi-waves-arrow-up:before{content:"󱡛"}.mdi-waze:before{content:"󰯞"}.mdi-weather-cloudy:before{content:"󰖐"}.mdi-weather-cloudy-alert:before{content:"󰼯"}.mdi-weather-cloudy-arrow-right:before{content:"󰹮"}.mdi-weather-cloudy-clock:before{content:"󱣶"}.mdi-weather-dust:before{content:"󱭚"}.mdi-weather-fog:before{content:"󰖑"}.mdi-weather-hail:before{content:"󰖒"}.mdi-weather-hazy:before{content:"󰼰"}.mdi-weather-hurricane:before{content:"󰢘"}.mdi-weather-hurricane-outline:before{content:"󱱸"}.mdi-weather-lightning:before{content:"󰖓"}.mdi-weather-lightning-rainy:before{content:"󰙾"}.mdi-weather-night:before{content:"󰖔"}.mdi-weather-night-partly-cloudy:before{content:"󰼱"}.mdi-weather-partly-cloudy:before{content:"󰖕"}.mdi-weather-partly-lightning:before{content:"󰼲"}.mdi-weather-partly-rainy:before{content:"󰼳"}.mdi-weather-partly-snowy:before{content:"󰼴"}.mdi-weather-partly-snowy-rainy:before{content:"󰼵"}.mdi-weather-pouring:before{content:"󰖖"}.mdi-weather-rainy:before{content:"󰖗"}.mdi-weather-snowy:before{content:"󰖘"}.mdi-weather-snowy-heavy:before{content:"󰼶"}.mdi-weather-snowy-rainy:before{content:"󰙿"}.mdi-weather-sunny:before{content:"󰖙"}.mdi-weather-sunny-alert:before{content:"󰼷"}.mdi-weather-sunny-off:before{content:"󱓤"}.mdi-weather-sunset:before{content:"󰖚"}.mdi-weather-sunset-down:before{content:"󰖛"}.mdi-weather-sunset-up:before{content:"󰖜"}.mdi-weather-tornado:before{content:"󰼸"}.mdi-weather-windy:before{content:"󰖝"}.mdi-weather-windy-variant:before{content:"󰖞"}.mdi-web:before{content:"󰖟"}.mdi-web-box:before{content:"󰾔"}.mdi-web-cancel:before{content:"󱞐"}.mdi-web-check:before{content:"󰞉"}.mdi-web-clock:before{content:"󱉊"}.mdi-web-minus:before{content:"󱂠"}.mdi-web-off:before{content:"󰪎"}.mdi-web-plus:before{content:"󰀳"}.mdi-web-refresh:before{content:"󱞑"}.mdi-web-remove:before{content:"󰕑"}.mdi-web-sync:before{content:"󱞒"}.mdi-webcam:before{content:"󰖠"}.mdi-webcam-off:before{content:"󱜷"}.mdi-webhook:before{content:"󰘯"}.mdi-webpack:before{content:"󰜫"}.mdi-webrtc:before{content:"󱉈"}.mdi-wechat:before{content:"󰘑"}.mdi-weight:before{content:"󰖡"}.mdi-weight-gram:before{content:"󰴿"}.mdi-weight-kilogram:before{content:"󰖢"}.mdi-weight-lifter:before{content:"󱅝"}.mdi-weight-pound:before{content:"󰦵"}.mdi-whatsapp:before{content:"󰖣"}.mdi-wheel-barrow:before{content:"󱓲"}.mdi-wheelchair:before{content:"󱪇"}.mdi-wheelchair-accessibility:before{content:"󰖤"}.mdi-whistle:before{content:"󰦶"}.mdi-whistle-outline:before{content:"󱊼"}.mdi-white-balance-auto:before{content:"󰖥"}.mdi-white-balance-incandescent:before{content:"󰖦"}.mdi-white-balance-iridescent:before{content:"󰖧"}.mdi-white-balance-sunny:before{content:"󰖨"}.mdi-widgets:before{content:"󰜬"}.mdi-widgets-outline:before{content:"󱍕"}.mdi-wifi:before{content:"󰖩"}.mdi-wifi-alert:before{content:"󱚵"}.mdi-wifi-arrow-down:before{content:"󱚶"}.mdi-wifi-arrow-left:before{content:"󱚷"}.mdi-wifi-arrow-left-right:before{content:"󱚸"}.mdi-wifi-arrow-right:before{content:"󱚹"}.mdi-wifi-arrow-up:before{content:"󱚺"}.mdi-wifi-arrow-up-down:before{content:"󱚻"}.mdi-wifi-cancel:before{content:"󱚼"}.mdi-wifi-check:before{content:"󱚽"}.mdi-wifi-cog:before{content:"󱚾"}.mdi-wifi-lock:before{content:"󱚿"}.mdi-wifi-lock-open:before{content:"󱛀"}.mdi-wifi-marker:before{content:"󱛁"}.mdi-wifi-minus:before{content:"󱛂"}.mdi-wifi-off:before{content:"󰖪"}.mdi-wifi-plus:before{content:"󱛃"}.mdi-wifi-refresh:before{content:"󱛄"}.mdi-wifi-remove:before{content:"󱛅"}.mdi-wifi-settings:before{content:"󱛆"}.mdi-wifi-star:before{content:"󰸋"}.mdi-wifi-strength-1:before{content:"󰤟"}.mdi-wifi-strength-1-alert:before{content:"󰤠"}.mdi-wifi-strength-1-lock:before{content:"󰤡"}.mdi-wifi-strength-1-lock-open:before{content:"󱛋"}.mdi-wifi-strength-2:before{content:"󰤢"}.mdi-wifi-strength-2-alert:before{content:"󰤣"}.mdi-wifi-strength-2-lock:before{content:"󰤤"}.mdi-wifi-strength-2-lock-open:before{content:"󱛌"}.mdi-wifi-strength-3:before{content:"󰤥"}.mdi-wifi-strength-3-alert:before{content:"󰤦"}.mdi-wifi-strength-3-lock:before{content:"󰤧"}.mdi-wifi-strength-3-lock-open:before{content:"󱛍"}.mdi-wifi-strength-4:before{content:"󰤨"}.mdi-wifi-strength-4-alert:before{content:"󰤩"}.mdi-wifi-strength-4-lock:before{content:"󰤪"}.mdi-wifi-strength-4-lock-open:before{content:"󱛎"}.mdi-wifi-strength-alert-outline:before{content:"󰤫"}.mdi-wifi-strength-lock-open-outline:before{content:"󱛏"}.mdi-wifi-strength-lock-outline:before{content:"󰤬"}.mdi-wifi-strength-off:before{content:"󰤭"}.mdi-wifi-strength-off-outline:before{content:"󰤮"}.mdi-wifi-strength-outline:before{content:"󰤯"}.mdi-wifi-sync:before{content:"󱛇"}.mdi-wikipedia:before{content:"󰖬"}.mdi-wind-power:before{content:"󱪈"}.mdi-wind-power-outline:before{content:"󱪉"}.mdi-wind-turbine:before{content:"󰶥"}.mdi-wind-turbine-alert:before{content:"󱦫"}.mdi-wind-turbine-check:before{content:"󱦬"}.mdi-window-close:before{content:"󰖭"}.mdi-window-closed:before{content:"󰖮"}.mdi-window-closed-variant:before{content:"󱇛"}.mdi-window-maximize:before{content:"󰖯"}.mdi-window-minimize:before{content:"󰖰"}.mdi-window-open:before{content:"󰖱"}.mdi-window-open-variant:before{content:"󱇜"}.mdi-window-restore:before{content:"󰖲"}.mdi-window-shutter:before{content:"󱄜"}.mdi-window-shutter-alert:before{content:"󱄝"}.mdi-window-shutter-auto:before{content:"󱮣"}.mdi-window-shutter-cog:before{content:"󱪊"}.mdi-window-shutter-open:before{content:"󱄞"}.mdi-window-shutter-settings:before{content:"󱪋"}.mdi-windsock:before{content:"󱗺"}.mdi-wiper:before{content:"󰫩"}.mdi-wiper-wash:before{content:"󰶦"}.mdi-wiper-wash-alert:before{content:"󱣟"}.mdi-wizard-hat:before{content:"󱑷"}.mdi-wordpress:before{content:"󰖴"}.mdi-wrap:before{content:"󰖶"}.mdi-wrap-disabled:before{content:"󰯟"}.mdi-wrench:before{content:"󰖷"}.mdi-wrench-check:before{content:"󱮏"}.mdi-wrench-check-outline:before{content:"󱮐"}.mdi-wrench-clock:before{content:"󱦣"}.mdi-wrench-clock-outline:before{content:"󱮓"}.mdi-wrench-cog:before{content:"󱮑"}.mdi-wrench-cog-outline:before{content:"󱮒"}.mdi-wrench-outline:before{content:"󰯠"}.mdi-xamarin:before{content:"󰡅"}.mdi-xml:before{content:"󰗀"}.mdi-xmpp:before{content:"󰟿"}.mdi-yahoo:before{content:"󰭏"}.mdi-yeast:before{content:"󰗁"}.mdi-yin-yang:before{content:"󰚀"}.mdi-yoga:before{content:"󱅼"}.mdi-youtube:before{content:"󰗃"}.mdi-youtube-gaming:before{content:"󰡈"}.mdi-youtube-studio:before{content:"󰡇"}.mdi-youtube-subscription:before{content:"󰵀"}.mdi-youtube-tv:before{content:"󰑈"}.mdi-yurt:before{content:"󱔖"}.mdi-z-wave:before{content:"󰫪"}.mdi-zend:before{content:"󰫫"}.mdi-zigbee:before{content:"󰵁"}.mdi-zip-box:before{content:"󰗄"}.mdi-zip-box-outline:before{content:"󰿺"}.mdi-zip-disk:before{content:"󰨣"}.mdi-zodiac-aquarius:before{content:"󰩽"}.mdi-zodiac-aries:before{content:"󰩾"}.mdi-zodiac-cancer:before{content:"󰩿"}.mdi-zodiac-capricorn:before{content:"󰪀"}.mdi-zodiac-gemini:before{content:"󰪁"}.mdi-zodiac-leo:before{content:"󰪂"}.mdi-zodiac-libra:before{content:"󰪃"}.mdi-zodiac-pisces:before{content:"󰪄"}.mdi-zodiac-sagittarius:before{content:"󰪅"}.mdi-zodiac-scorpio:before{content:"󰪆"}.mdi-zodiac-taurus:before{content:"󰪇"}.mdi-zodiac-virgo:before{content:"󰪈"}.mdi-blank:before{content:"";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}html,body{font-family:Pathway Extreme,sans-serif}h1,h2,h3,h4,h5,p{margin:0}ul{list-style-position:inside}.zt-menu{border:1px solid rgba(var(--v-theme-bluegrey))}.zt-menu .v-list-item__prepend{margin-right:12px}.v-container{max-width:1250px}.code-output{white-space:pre-wrap}.v-expansion-panel--active>.v-expansion-panel-title{min-height:31px}.add-cell-item:hover{background-color:rgba(var(--v-theme-bluegrey))}.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important}.bg-black{color:#fff!important}.bg-white{background-color:#fff!important}.bg-white{color:#000!important}.bg-transparent{background-color:transparent!important}.bg-transparent{color:currentColor!important}.bg-red{background-color:#f44336!important}.bg-red{color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important}.bg-red-lighten-5{color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important}.bg-red-lighten-4{color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important}.bg-red-lighten-3{color:#000!important}.bg-red-lighten-2{background-color:#e57373!important}.bg-red-lighten-2{color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important}.bg-red-lighten-1{color:#fff!important}.bg-red-darken-1{background-color:#e53935!important}.bg-red-darken-1{color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important}.bg-red-darken-2{color:#fff!important}.bg-red-darken-3{background-color:#c62828!important}.bg-red-darken-3{color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important}.bg-red-darken-4{color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important}.bg-red-accent-1{color:#000!important}.bg-red-accent-2{background-color:#ff5252!important}.bg-red-accent-2{color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important}.bg-red-accent-3{color:#fff!important}.bg-red-accent-4{background-color:#d50000!important}.bg-red-accent-4{color:#fff!important}.bg-pink{background-color:#e91e63!important}.bg-pink{color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important}.bg-pink-lighten-5{color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important}.bg-pink-lighten-4{color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important}.bg-pink-lighten-3{color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important}.bg-pink-lighten-2{color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important}.bg-pink-lighten-1{color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important}.bg-pink-darken-1{color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important}.bg-pink-darken-2{color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important}.bg-pink-darken-3{color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important}.bg-pink-darken-4{color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important}.bg-pink-accent-1{color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important}.bg-pink-accent-2{color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important}.bg-pink-accent-3{color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important}.bg-pink-accent-4{color:#fff!important}.bg-purple{background-color:#9c27b0!important}.bg-purple{color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important}.bg-purple-lighten-5{color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important}.bg-purple-lighten-4{color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important}.bg-purple-lighten-3{color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important}.bg-purple-lighten-2{color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important}.bg-purple-lighten-1{color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important}.bg-purple-darken-1{color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important}.bg-purple-darken-2{color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important}.bg-purple-darken-3{color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important}.bg-purple-darken-4{color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important}.bg-purple-accent-1{color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important}.bg-purple-accent-2{color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important}.bg-purple-accent-3{color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important}.bg-purple-accent-4{color:#fff!important}.bg-deep-purple{background-color:#673ab7!important}.bg-deep-purple{color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important}.bg-deep-purple-lighten-5{color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important}.bg-deep-purple-lighten-4{color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important}.bg-deep-purple-lighten-3{color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important}.bg-deep-purple-lighten-2{color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important}.bg-deep-purple-lighten-1{color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important}.bg-deep-purple-darken-1{color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important}.bg-deep-purple-darken-2{color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important}.bg-deep-purple-darken-3{color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important}.bg-deep-purple-darken-4{color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important}.bg-deep-purple-accent-1{color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important}.bg-deep-purple-accent-2{color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important}.bg-deep-purple-accent-3{color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important}.bg-deep-purple-accent-4{color:#fff!important}.bg-indigo{background-color:#3f51b5!important}.bg-indigo{color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important}.bg-indigo-lighten-5{color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important}.bg-indigo-lighten-4{color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important}.bg-indigo-lighten-3{color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important}.bg-indigo-lighten-2{color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important}.bg-indigo-lighten-1{color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important}.bg-indigo-darken-1{color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important}.bg-indigo-darken-2{color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important}.bg-indigo-darken-3{color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important}.bg-indigo-darken-4{color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important}.bg-indigo-accent-1{color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important}.bg-indigo-accent-2{color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important}.bg-indigo-accent-3{color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important}.bg-indigo-accent-4{color:#fff!important}.bg-blue{background-color:#2196f3!important}.bg-blue{color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important}.bg-blue-lighten-5{color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important}.bg-blue-lighten-4{color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important}.bg-blue-lighten-3{color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important}.bg-blue-lighten-2{color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important}.bg-blue-lighten-1{color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important}.bg-blue-darken-1{color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important}.bg-blue-darken-2{color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important}.bg-blue-darken-3{color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important}.bg-blue-darken-4{color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important}.bg-blue-accent-1{color:#000!important}.bg-blue-accent-2{background-color:#448aff!important}.bg-blue-accent-2{color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important}.bg-blue-accent-3{color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important}.bg-blue-accent-4{color:#fff!important}.bg-light-blue{background-color:#03a9f4!important}.bg-light-blue{color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important}.bg-light-blue-lighten-5{color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important}.bg-light-blue-lighten-4{color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important}.bg-light-blue-lighten-3{color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important}.bg-light-blue-lighten-2{color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important}.bg-light-blue-lighten-1{color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important}.bg-light-blue-darken-1{color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important}.bg-light-blue-darken-2{color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important}.bg-light-blue-darken-3{color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important}.bg-light-blue-darken-4{color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important}.bg-light-blue-accent-1{color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important}.bg-light-blue-accent-2{color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important}.bg-light-blue-accent-3{color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important}.bg-light-blue-accent-4{color:#fff!important}.bg-cyan{background-color:#00bcd4!important}.bg-cyan{color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important}.bg-cyan-lighten-5{color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important}.bg-cyan-lighten-4{color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important}.bg-cyan-lighten-3{color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important}.bg-cyan-lighten-2{color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important}.bg-cyan-lighten-1{color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important}.bg-cyan-darken-1{color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important}.bg-cyan-darken-2{color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important}.bg-cyan-darken-3{color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important}.bg-cyan-darken-4{color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important}.bg-cyan-accent-1{color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important}.bg-cyan-accent-2{color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important}.bg-cyan-accent-3{color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important}.bg-cyan-accent-4{color:#fff!important}.bg-teal{background-color:#009688!important}.bg-teal{color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important}.bg-teal-lighten-5{color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important}.bg-teal-lighten-4{color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important}.bg-teal-lighten-3{color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important}.bg-teal-lighten-2{color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important}.bg-teal-lighten-1{color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important}.bg-teal-darken-1{color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important}.bg-teal-darken-2{color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important}.bg-teal-darken-3{color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important}.bg-teal-darken-4{color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important}.bg-teal-accent-1{color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important}.bg-teal-accent-2{color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important}.bg-teal-accent-3{color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important}.bg-teal-accent-4{color:#fff!important}.bg-green{background-color:#4caf50!important}.bg-green{color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important}.bg-green-lighten-5{color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important}.bg-green-lighten-4{color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important}.bg-green-lighten-3{color:#000!important}.bg-green-lighten-2{background-color:#81c784!important}.bg-green-lighten-2{color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important}.bg-green-lighten-1{color:#fff!important}.bg-green-darken-1{background-color:#43a047!important}.bg-green-darken-1{color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important}.bg-green-darken-2{color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important}.bg-green-darken-3{color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important}.bg-green-darken-4{color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important}.bg-green-accent-1{color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important}.bg-green-accent-2{color:#000!important}.bg-green-accent-3{background-color:#00e676!important}.bg-green-accent-3{color:#000!important}.bg-green-accent-4{background-color:#00c853!important}.bg-green-accent-4{color:#000!important}.bg-light-green{background-color:#8bc34a!important}.bg-light-green{color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important}.bg-light-green-lighten-5{color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important}.bg-light-green-lighten-4{color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important}.bg-light-green-lighten-3{color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important}.bg-light-green-lighten-2{color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important}.bg-light-green-lighten-1{color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important}.bg-light-green-darken-1{color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important}.bg-light-green-darken-2{color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important}.bg-light-green-darken-3{color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important}.bg-light-green-darken-4{color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important}.bg-light-green-accent-1{color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important}.bg-light-green-accent-2{color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important}.bg-light-green-accent-3{color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important}.bg-light-green-accent-4{color:#000!important}.bg-lime{background-color:#cddc39!important}.bg-lime{color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important}.bg-lime-lighten-5{color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important}.bg-lime-lighten-4{color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important}.bg-lime-lighten-3{color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important}.bg-lime-lighten-2{color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important}.bg-lime-lighten-1{color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important}.bg-lime-darken-1{color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important}.bg-lime-darken-2{color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important}.bg-lime-darken-3{color:#fff!important}.bg-lime-darken-4{background-color:#827717!important}.bg-lime-darken-4{color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important}.bg-lime-accent-1{color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important}.bg-lime-accent-2{color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important}.bg-lime-accent-3{color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important}.bg-lime-accent-4{color:#000!important}.bg-yellow{background-color:#ffeb3b!important}.bg-yellow{color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important}.bg-yellow-lighten-5{color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important}.bg-yellow-lighten-4{color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important}.bg-yellow-lighten-3{color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important}.bg-yellow-lighten-2{color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important}.bg-yellow-lighten-1{color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important}.bg-yellow-darken-1{color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important}.bg-yellow-darken-2{color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important}.bg-yellow-darken-3{color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important}.bg-yellow-darken-4{color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important}.bg-yellow-accent-1{color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important}.bg-yellow-accent-2{color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important}.bg-yellow-accent-3{color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important}.bg-yellow-accent-4{color:#000!important}.bg-amber{background-color:#ffc107!important}.bg-amber{color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important}.bg-amber-lighten-5{color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important}.bg-amber-lighten-4{color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important}.bg-amber-lighten-3{color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important}.bg-amber-lighten-2{color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important}.bg-amber-lighten-1{color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important}.bg-amber-darken-1{color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important}.bg-amber-darken-2{color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important}.bg-amber-darken-3{color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important}.bg-amber-darken-4{color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important}.bg-amber-accent-1{color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important}.bg-amber-accent-2{color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important}.bg-amber-accent-3{color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important}.bg-amber-accent-4{color:#000!important}.bg-orange{background-color:#ff9800!important}.bg-orange{color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important}.bg-orange-lighten-5{color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important}.bg-orange-lighten-4{color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important}.bg-orange-lighten-3{color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important}.bg-orange-lighten-2{color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important}.bg-orange-lighten-1{color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important}.bg-orange-darken-1{color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important}.bg-orange-darken-2{color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important}.bg-orange-darken-3{color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important}.bg-orange-darken-4{color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important}.bg-orange-accent-1{color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important}.bg-orange-accent-2{color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important}.bg-orange-accent-3{color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important}.bg-orange-accent-4{color:#fff!important}.bg-deep-orange{background-color:#ff5722!important}.bg-deep-orange{color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important}.bg-deep-orange-lighten-5{color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important}.bg-deep-orange-lighten-4{color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important}.bg-deep-orange-lighten-3{color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important}.bg-deep-orange-lighten-2{color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important}.bg-deep-orange-lighten-1{color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important}.bg-deep-orange-darken-1{color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important}.bg-deep-orange-darken-2{color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important}.bg-deep-orange-darken-3{color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important}.bg-deep-orange-darken-4{color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important}.bg-deep-orange-accent-1{color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important}.bg-deep-orange-accent-2{color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important}.bg-deep-orange-accent-3{color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important}.bg-deep-orange-accent-4{color:#fff!important}.bg-brown{background-color:#795548!important}.bg-brown{color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important}.bg-brown-lighten-5{color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important}.bg-brown-lighten-4{color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important}.bg-brown-lighten-3{color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important}.bg-brown-lighten-2{color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important}.bg-brown-lighten-1{color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important}.bg-brown-darken-1{color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important}.bg-brown-darken-2{color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important}.bg-brown-darken-3{color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important}.bg-brown-darken-4{color:#fff!important}.bg-blue-grey{background-color:#607d8b!important}.bg-blue-grey{color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important}.bg-blue-grey-lighten-5{color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important}.bg-blue-grey-lighten-4{color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important}.bg-blue-grey-lighten-3{color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important}.bg-blue-grey-lighten-2{color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important}.bg-blue-grey-lighten-1{color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important}.bg-blue-grey-darken-1{color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important}.bg-blue-grey-darken-2{color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important}.bg-blue-grey-darken-3{color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important}.bg-blue-grey-darken-4{color:#fff!important}.bg-grey{background-color:#9e9e9e!important}.bg-grey{color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important}.bg-grey-lighten-5{color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important}.bg-grey-lighten-4{color:#000!important}.bg-grey-lighten-3{background-color:#eee!important}.bg-grey-lighten-3{color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important}.bg-grey-lighten-2{color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important}.bg-grey-lighten-1{color:#000!important}.bg-grey-darken-1{background-color:#757575!important}.bg-grey-darken-1{color:#fff!important}.bg-grey-darken-2{background-color:#616161!important}.bg-grey-darken-2{color:#fff!important}.bg-grey-darken-3{background-color:#424242!important}.bg-grey-darken-3{color:#fff!important}.bg-grey-darken-4{background-color:#212121!important}.bg-grey-darken-4{color:#fff!important}.bg-shades-black{background-color:#000!important}.bg-shades-black{color:#fff!important}.bg-shades-white{background-color:#fff!important}.bg-shades-white{color:#000!important}.bg-shades-transparent{background-color:transparent!important}.bg-shades-transparent{color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! * ress.css • v2.0.4 * MIT License * github.com/filipelinhares/ress diff --git a/zt_backend/dist_dev/assets/index-91df5eb7.js b/zt_backend/dist_dev/assets/index-d744c0bc.js similarity index 86% rename from zt_backend/dist_dev/assets/index-91df5eb7.js rename to zt_backend/dist_dev/assets/index-d744c0bc.js index e3136c83..67957106 100644 --- a/zt_backend/dist_dev/assets/index-91df5eb7.js +++ b/zt_backend/dist_dev/assets/index-d744c0bc.js @@ -1,20 +1,20 @@ -var VOe=Object.defineProperty;var UOe=(t,e,o)=>e in t?VOe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var _c=(t,e,o)=>(UOe(t,typeof e!="symbol"?e+"":e,o),o),jOe=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)};var Woe=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)};var gQ=(t,e,o)=>(jOe(t,e,"access private method"),o);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const P of document.querySelectorAll('link[rel="modulepreload"]'))f(P);new MutationObserver(P=>{for(const d of P)if(d.type==="childList")for(const l of d.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&f(l)}).observe(document,{childList:!0,subtree:!0});function o(P){const d={};return P.integrity&&(d.integrity=P.integrity),P.referrerPolicy&&(d.referrerPolicy=P.referrerPolicy),P.crossOrigin==="use-credentials"?d.credentials="include":P.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function f(P){if(P.ep)return;P.ep=!0;const d=o(P);fetch(P.href,d)}})();function D0e(t,e){return function(){return t.apply(e,arguments)}}const{toString:QOe}=Object.prototype,{getPrototypeOf:cle}=Object,RZ=(t=>e=>{const o=QOe.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),g_=t=>(t=t.toLowerCase(),e=>RZ(e)===t),LZ=t=>e=>typeof e===t,{isArray:OM}=Array,gI=LZ("undefined");function HOe(t){return t!==null&&!gI(t)&&t.constructor!==null&&!gI(t.constructor)&&Jy(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const B0e=g_("ArrayBuffer");function ZOe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&B0e(t.buffer),e}const qOe=LZ("string"),Jy=LZ("function"),z0e=LZ("number"),IZ=t=>t!==null&&typeof t=="object",WOe=t=>t===!0||t===!1,iH=t=>{if(RZ(t)!=="object")return!1;const e=cle(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},YOe=g_("Date"),XOe=g_("File"),GOe=g_("Blob"),KOe=g_("FileList"),JOe=t=>IZ(t)&&Jy(t.pipe),e3e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Jy(t.append)&&((e=RZ(t))==="formdata"||e==="object"&&Jy(t.toString)&&t.toString()==="[object FormData]"))},t3e=g_("URLSearchParams"),n3e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function aD(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let f,P;if(typeof t!="object"&&(t=[t]),OM(t))for(f=0,P=t.length;f0;)if(P=o[f],e===P.toLowerCase())return P;return null}const N0e=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$0e=t=>!gI(t)&&t!==N0e;function uae(){const{caseless:t}=$0e(this)&&this||{},e={},o=(f,P)=>{const d=t&&F0e(e,P)||P;iH(e[d])&&iH(f)?e[d]=uae(e[d],f):iH(f)?e[d]=uae({},f):OM(f)?e[d]=f.slice():e[d]=f};for(let f=0,P=arguments.length;f(aD(e,(P,d)=>{o&&Jy(P)?t[d]=D0e(P,o):t[d]=P},{allOwnKeys:f}),t),o3e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),i3e=(t,e,o,f)=>{t.prototype=Object.create(e.prototype,f),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},a3e=(t,e,o,f)=>{let P,d,l;const n={};if(e=e||{},t==null)return e;do{for(P=Object.getOwnPropertyNames(t),d=P.length;d-- >0;)l=P[d],(!f||f(l,t,e))&&!n[l]&&(e[l]=t[l],n[l]=!0);t=o!==!1&&cle(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},s3e=(t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;const f=t.indexOf(e,o);return f!==-1&&f===o},l3e=t=>{if(!t)return null;if(OM(t))return t;let e=t.length;if(!z0e(e))return null;const o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},c3e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&cle(Uint8Array)),u3e=(t,e)=>{const f=(t&&t[Symbol.iterator]).call(t);let P;for(;(P=f.next())&&!P.done;){const d=P.value;e.call(t,d[0],d[1])}},f3e=(t,e)=>{let o;const f=[];for(;(o=t.exec(e))!==null;)f.push(o);return f},d3e=g_("HTMLFormElement"),h3e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,f,P){return f.toUpperCase()+P}),ode=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),p3e=g_("RegExp"),V0e=(t,e)=>{const o=Object.getOwnPropertyDescriptors(t),f={};aD(o,(P,d)=>{let l;(l=e(P,d,t))!==!1&&(f[d]=l||P)}),Object.defineProperties(t,f)},m3e=t=>{V0e(t,(e,o)=>{if(Jy(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const f=t[o];if(Jy(f)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},g3e=(t,e)=>{const o={},f=P=>{P.forEach(d=>{o[d]=!0})};return OM(t)?f(t):f(String(t).split(e)),o},v3e=()=>{},y3e=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Yoe="abcdefghijklmnopqrstuvwxyz",ide="0123456789",U0e={DIGIT:ide,ALPHA:Yoe,ALPHA_DIGIT:Yoe+Yoe.toUpperCase()+ide},b3e=(t=16,e=U0e.ALPHA_DIGIT)=>{let o="";const{length:f}=e;for(;t--;)o+=e[Math.random()*f|0];return o};function x3e(t){return!!(t&&Jy(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const _3e=t=>{const e=new Array(10),o=(f,P)=>{if(IZ(f)){if(e.indexOf(f)>=0)return;if(!("toJSON"in f)){e[P]=f;const d=OM(f)?[]:{};return aD(f,(l,n)=>{const c=o(l,P+1);!gI(c)&&(d[n]=c)}),e[P]=void 0,d}}return f};return o(t,0)},w3e=g_("AsyncFunction"),O3e=t=>t&&(IZ(t)||Jy(t))&&Jy(t.then)&&Jy(t.catch),ui={isArray:OM,isArrayBuffer:B0e,isBuffer:HOe,isFormData:e3e,isArrayBufferView:ZOe,isString:qOe,isNumber:z0e,isBoolean:WOe,isObject:IZ,isPlainObject:iH,isUndefined:gI,isDate:YOe,isFile:XOe,isBlob:GOe,isRegExp:p3e,isFunction:Jy,isStream:JOe,isURLSearchParams:t3e,isTypedArray:c3e,isFileList:KOe,forEach:aD,merge:uae,extend:r3e,trim:n3e,stripBOM:o3e,inherits:i3e,toFlatObject:a3e,kindOf:RZ,kindOfTest:g_,endsWith:s3e,toArray:l3e,forEachEntry:u3e,matchAll:f3e,isHTMLForm:d3e,hasOwnProperty:ode,hasOwnProp:ode,reduceDescriptors:V0e,freezeMethods:m3e,toObjectSet:g3e,toCamelCase:h3e,noop:v3e,toFiniteNumber:y3e,findKey:F0e,global:N0e,isContextDefined:$0e,ALPHABET:U0e,generateString:b3e,isSpecCompliantForm:x3e,toJSONObject:_3e,isAsyncFn:w3e,isThenable:O3e};function Ic(t,e,o,f,P){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),f&&(this.request=f),P&&(this.response=P)}ui.inherits(Ic,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ui.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const j0e=Ic.prototype,Q0e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Q0e[t]={value:t}});Object.defineProperties(Ic,Q0e);Object.defineProperty(j0e,"isAxiosError",{value:!0});Ic.from=(t,e,o,f,P,d)=>{const l=Object.create(j0e);return ui.toFlatObject(t,l,function(c){return c!==Error.prototype},n=>n!=="isAxiosError"),Ic.call(l,t.message,e,o,f,P),l.cause=t,l.name=t.name,d&&Object.assign(l,d),l};const S3e=null;function fae(t){return ui.isPlainObject(t)||ui.isArray(t)}function H0e(t){return ui.endsWith(t,"[]")?t.slice(0,-2):t}function ade(t,e,o){return t?t.concat(e).map(function(P,d){return P=H0e(P),!o&&d?"["+P+"]":P}).join(o?".":""):e}function k3e(t){return ui.isArray(t)&&!t.some(fae)}const T3e=ui.toFlatObject(ui,{},null,function(e){return/^is[A-Z]/.test(e)});function DZ(t,e,o){if(!ui.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,o=ui.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,u){return!ui.isUndefined(u[a])});const f=o.metaTokens,P=o.visitor||i,d=o.dots,l=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&ui.isSpecCompliantForm(e);if(!ui.isFunction(P))throw new TypeError("visitor must be a function");function b(p){if(p===null)return"";if(ui.isDate(p))return p.toISOString();if(!c&&ui.isBlob(p))throw new Ic("Blob is not supported. Use a Buffer instead.");return ui.isArrayBuffer(p)||ui.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function i(p,a,u){let h=p;if(p&&!u&&typeof p=="object"){if(ui.endsWith(a,"{}"))a=f?a:a.slice(0,-2),p=JSON.stringify(p);else if(ui.isArray(p)&&k3e(p)||(ui.isFileList(p)||ui.endsWith(a,"[]"))&&(h=ui.toArray(p)))return a=H0e(a),h.forEach(function(v,_){!(ui.isUndefined(v)||v===null)&&e.append(l===!0?ade([a],_,d):l===null?a:a+"[]",b(v))}),!1}return fae(p)?!0:(e.append(ade(u,a,d),b(p)),!1)}const O=[],w=Object.assign(T3e,{defaultVisitor:i,convertValue:b,isVisitable:fae});function y(p,a){if(!ui.isUndefined(p)){if(O.indexOf(p)!==-1)throw Error("Circular reference detected in "+a.join("."));O.push(p),ui.forEach(p,function(h,m){(!(ui.isUndefined(h)||h===null)&&P.call(e,h,ui.isString(m)?m.trim():m,a,w))===!0&&y(h,a?a.concat(m):[m])}),O.pop()}}if(!ui.isObject(t))throw new TypeError("data must be an object");return y(t),e}function sde(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(f){return e[f]})}function ule(t,e){this._pairs=[],t&&DZ(t,this,e)}const Z0e=ule.prototype;Z0e.append=function(e,o){this._pairs.push([e,o])};Z0e.toString=function(e){const o=e?function(f){return e.call(this,f,sde)}:sde;return this._pairs.map(function(P){return o(P[0])+"="+o(P[1])},"").join("&")};function C3e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function q0e(t,e,o){if(!e)return t;const f=o&&o.encode||C3e,P=o&&o.serialize;let d;if(P?d=P(e,o):d=ui.isURLSearchParams(e)?e.toString():new ule(e,o).toString(f),d){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+d}return t}class A3e{constructor(){this.handlers=[]}use(e,o,f){return this.handlers.push({fulfilled:e,rejected:o,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ui.forEach(this.handlers,function(f){f!==null&&e(f)})}}const lde=A3e,W0e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},M3e=typeof URLSearchParams<"u"?URLSearchParams:ule,E3e=typeof FormData<"u"?FormData:null,P3e=typeof Blob<"u"?Blob:null,R3e={isBrowser:!0,classes:{URLSearchParams:M3e,FormData:E3e,Blob:P3e},protocols:["http","https","file","blob","url","data"]},Y0e=typeof window<"u"&&typeof document<"u",L3e=(t=>Y0e&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),I3e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),D3e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Y0e,hasStandardBrowserEnv:L3e,hasStandardBrowserWebWorkerEnv:I3e},Symbol.toStringTag,{value:"Module"})),o_={...D3e,...R3e};function B3e(t,e){return DZ(t,new o_.classes.URLSearchParams,Object.assign({visitor:function(o,f,P,d){return o_.isNode&&ui.isBuffer(o)?(this.append(f,o.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},e))}function z3e(t){return ui.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function F3e(t){const e={},o=Object.keys(t);let f;const P=o.length;let d;for(f=0;f=o.length;return l=!l&&ui.isArray(P)?P.length:l,c?(ui.hasOwnProp(P,l)?P[l]=[P[l],f]:P[l]=f,!n):((!P[l]||!ui.isObject(P[l]))&&(P[l]=[]),e(o,f,P[l],d)&&ui.isArray(P[l])&&(P[l]=F3e(P[l])),!n)}if(ui.isFormData(t)&&ui.isFunction(t.entries)){const o={};return ui.forEachEntry(t,(f,P)=>{e(z3e(f),P,o,0)}),o}return null}function N3e(t,e,o){if(ui.isString(t))try{return(e||JSON.parse)(t),ui.trim(t)}catch(f){if(f.name!=="SyntaxError")throw f}return(o||JSON.stringify)(t)}const fle={transitional:W0e,adapter:["xhr","http"],transformRequest:[function(e,o){const f=o.getContentType()||"",P=f.indexOf("application/json")>-1,d=ui.isObject(e);if(d&&ui.isHTMLForm(e)&&(e=new FormData(e)),ui.isFormData(e))return P&&P?JSON.stringify(X0e(e)):e;if(ui.isArrayBuffer(e)||ui.isBuffer(e)||ui.isStream(e)||ui.isFile(e)||ui.isBlob(e))return e;if(ui.isArrayBufferView(e))return e.buffer;if(ui.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(d){if(f.indexOf("application/x-www-form-urlencoded")>-1)return B3e(e,this.formSerializer).toString();if((n=ui.isFileList(e))||f.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return DZ(n?{"files[]":e}:e,c&&new c,this.formSerializer)}}return d||P?(o.setContentType("application/json",!1),N3e(e)):e}],transformResponse:[function(e){const o=this.transitional||fle.transitional,f=o&&o.forcedJSONParsing,P=this.responseType==="json";if(e&&ui.isString(e)&&(f&&!this.responseType||P)){const l=!(o&&o.silentJSONParsing)&&P;try{return JSON.parse(e)}catch(n){if(l)throw n.name==="SyntaxError"?Ic.from(n,Ic.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:o_.classes.FormData,Blob:o_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ui.forEach(["delete","get","head","post","put","patch"],t=>{fle.headers[t]={}});const dle=fle,$3e=ui.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),V3e=t=>{const e={};let o,f,P;return t&&t.split(` -`).forEach(function(l){P=l.indexOf(":"),o=l.substring(0,P).trim().toLowerCase(),f=l.substring(P+1).trim(),!(!o||e[o]&&$3e[o])&&(o==="set-cookie"?e[o]?e[o].push(f):e[o]=[f]:e[o]=e[o]?e[o]+", "+f:f)}),e},cde=Symbol("internals");function ML(t){return t&&String(t).trim().toLowerCase()}function aH(t){return t===!1||t==null?t:ui.isArray(t)?t.map(aH):String(t)}function U3e(t){const e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let f;for(;f=o.exec(t);)e[f[1]]=f[2];return e}const j3e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xoe(t,e,o,f,P){if(ui.isFunction(f))return f.call(this,e,o);if(P&&(e=o),!!ui.isString(e)){if(ui.isString(f))return e.indexOf(f)!==-1;if(ui.isRegExp(f))return f.test(e)}}function Q3e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,f)=>o.toUpperCase()+f)}function H3e(t,e){const o=ui.toCamelCase(" "+e);["get","set","has"].forEach(f=>{Object.defineProperty(t,f+o,{value:function(P,d,l){return this[f].call(this,e,P,d,l)},configurable:!0})})}class BZ{constructor(e){e&&this.set(e)}set(e,o,f){const P=this;function d(n,c,b){const i=ML(c);if(!i)throw new Error("header name must be a non-empty string");const O=ui.findKey(P,i);(!O||P[O]===void 0||b===!0||b===void 0&&P[O]!==!1)&&(P[O||c]=aH(n))}const l=(n,c)=>ui.forEach(n,(b,i)=>d(b,i,c));return ui.isPlainObject(e)||e instanceof this.constructor?l(e,o):ui.isString(e)&&(e=e.trim())&&!j3e(e)?l(V3e(e),o):e!=null&&d(o,e,f),this}get(e,o){if(e=ML(e),e){const f=ui.findKey(this,e);if(f){const P=this[f];if(!o)return P;if(o===!0)return U3e(P);if(ui.isFunction(o))return o.call(this,P,f);if(ui.isRegExp(o))return o.exec(P);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=ML(e),e){const f=ui.findKey(this,e);return!!(f&&this[f]!==void 0&&(!o||Xoe(this,this[f],f,o)))}return!1}delete(e,o){const f=this;let P=!1;function d(l){if(l=ML(l),l){const n=ui.findKey(f,l);n&&(!o||Xoe(f,f[n],n,o))&&(delete f[n],P=!0)}}return ui.isArray(e)?e.forEach(d):d(e),P}clear(e){const o=Object.keys(this);let f=o.length,P=!1;for(;f--;){const d=o[f];(!e||Xoe(this,this[d],d,e,!0))&&(delete this[d],P=!0)}return P}normalize(e){const o=this,f={};return ui.forEach(this,(P,d)=>{const l=ui.findKey(f,d);if(l){o[l]=aH(P),delete o[d];return}const n=e?Q3e(d):String(d).trim();n!==d&&delete o[d],o[n]=aH(P),f[n]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const o=Object.create(null);return ui.forEach(this,(f,P)=>{f!=null&&f!==!1&&(o[P]=e&&ui.isArray(f)?f.join(", "):f)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const f=new this(e);return o.forEach(P=>f.set(P)),f}static accessor(e){const f=(this[cde]=this[cde]={accessors:{}}).accessors,P=this.prototype;function d(l){const n=ML(l);f[n]||(H3e(P,l),f[n]=!0)}return ui.isArray(e)?e.forEach(d):d(e),this}}BZ.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ui.reduceDescriptors(BZ.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(f){this[o]=f}}});ui.freezeMethods(BZ);const wO=BZ;function Goe(t,e){const o=this||dle,f=e||o,P=wO.from(f.headers);let d=f.data;return ui.forEach(t,function(n){d=n.call(o,d,P.normalize(),e?e.status:void 0)}),P.normalize(),d}function G0e(t){return!!(t&&t.__CANCEL__)}function sD(t,e,o){Ic.call(this,t??"canceled",Ic.ERR_CANCELED,e,o),this.name="CanceledError"}ui.inherits(sD,Ic,{__CANCEL__:!0});function Z3e(t,e,o){const f=o.config.validateStatus;!o.status||!f||f(o.status)?t(o):e(new Ic("Request failed with status code "+o.status,[Ic.ERR_BAD_REQUEST,Ic.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const q3e=o_.hasStandardBrowserEnv?{write(t,e,o,f,P,d){const l=[t+"="+encodeURIComponent(e)];ui.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),ui.isString(f)&&l.push("path="+f),ui.isString(P)&&l.push("domain="+P),d===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function W3e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Y3e(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function K0e(t,e){return t&&!W3e(e)?Y3e(t,e):e}const X3e=o_.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let f;function P(d){let l=d;return e&&(o.setAttribute("href",l),l=o.href),o.setAttribute("href",l),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return f=P(window.location.href),function(l){const n=ui.isString(l)?P(l):l;return n.protocol===f.protocol&&n.host===f.host}}():function(){return function(){return!0}}();function G3e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function K3e(t,e){t=t||10;const o=new Array(t),f=new Array(t);let P=0,d=0,l;return e=e!==void 0?e:1e3,function(c){const b=Date.now(),i=f[d];l||(l=b),o[P]=c,f[P]=b;let O=d,w=0;for(;O!==P;)w+=o[O++],O=O%t;if(P=(P+1)%t,P===d&&(d=(d+1)%t),b-l{const d=P.loaded,l=P.lengthComputable?P.total:void 0,n=d-o,c=f(n),b=d<=l;o=d;const i={loaded:d,total:l,progress:l?d/l:void 0,bytes:n,rate:c||void 0,estimated:c&&l&&b?(l-d)/c:void 0,event:P};i[e?"download":"upload"]=!0,t(i)}}const J3e=typeof XMLHttpRequest<"u",e4e=J3e&&function(t){return new Promise(function(o,f){let P=t.data;const d=wO.from(t.headers).normalize();let{responseType:l,withXSRFToken:n}=t,c;function b(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}let i;if(ui.isFormData(P)){if(o_.hasStandardBrowserEnv||o_.hasStandardBrowserWebWorkerEnv)d.setContentType(!1);else if((i=d.getContentType())!==!1){const[a,...u]=i?i.split(";").map(h=>h.trim()).filter(Boolean):[];d.setContentType([a||"multipart/form-data",...u].join("; "))}}let O=new XMLHttpRequest;if(t.auth){const a=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.set("Authorization","Basic "+btoa(a+":"+u))}const w=K0e(t.baseURL,t.url);O.open(t.method.toUpperCase(),q0e(w,t.params,t.paramsSerializer),!0),O.timeout=t.timeout;function y(){if(!O)return;const a=wO.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),h={data:!l||l==="text"||l==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:a,config:t,request:O};Z3e(function(v){o(v),b()},function(v){f(v),b()},h),O=null}if("onloadend"in O?O.onloadend=y:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(y)},O.onabort=function(){O&&(f(new Ic("Request aborted",Ic.ECONNABORTED,t,O)),O=null)},O.onerror=function(){f(new Ic("Network Error",Ic.ERR_NETWORK,t,O)),O=null},O.ontimeout=function(){let u=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const h=t.transitional||W0e;t.timeoutErrorMessage&&(u=t.timeoutErrorMessage),f(new Ic(u,h.clarifyTimeoutError?Ic.ETIMEDOUT:Ic.ECONNABORTED,t,O)),O=null},o_.hasStandardBrowserEnv&&(n&&ui.isFunction(n)&&(n=n(t)),n||n!==!1&&X3e(w))){const a=t.xsrfHeaderName&&t.xsrfCookieName&&q3e.read(t.xsrfCookieName);a&&d.set(t.xsrfHeaderName,a)}P===void 0&&d.setContentType(null),"setRequestHeader"in O&&ui.forEach(d.toJSON(),function(u,h){O.setRequestHeader(h,u)}),ui.isUndefined(t.withCredentials)||(O.withCredentials=!!t.withCredentials),l&&l!=="json"&&(O.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&O.addEventListener("progress",ude(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&O.upload&&O.upload.addEventListener("progress",ude(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=a=>{O&&(f(!a||a.type?new sD(null,t,O):a),O.abort(),O=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));const p=G3e(w);if(p&&o_.protocols.indexOf(p)===-1){f(new Ic("Unsupported protocol "+p+":",Ic.ERR_BAD_REQUEST,t));return}O.send(P||null)})},dae={http:S3e,xhr:e4e};ui.forEach(dae,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const fde=t=>`- ${t}`,t4e=t=>ui.isFunction(t)||t===null||t===!1,J0e={getAdapter:t=>{t=ui.isArray(t)?t:[t];const{length:e}=t;let o,f;const P={};for(let d=0;d`adapter ${n} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=e?d.length>1?`since : -`+d.map(fde).join(` -`):" "+fde(d[0]):"as no adapter specified";throw new Ic("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return f},adapters:dae};function Koe(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new sD(null,t)}function dde(t){return Koe(t),t.headers=wO.from(t.headers),t.data=Goe.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),J0e.getAdapter(t.adapter||dle.adapter)(t).then(function(f){return Koe(t),f.data=Goe.call(t,t.transformResponse,f),f.headers=wO.from(f.headers),f},function(f){return G0e(f)||(Koe(t),f&&f.response&&(f.response.data=Goe.call(t,t.transformResponse,f.response),f.response.headers=wO.from(f.response.headers))),Promise.reject(f)})}const hde=t=>t instanceof wO?t.toJSON():t;function nM(t,e){e=e||{};const o={};function f(b,i,O){return ui.isPlainObject(b)&&ui.isPlainObject(i)?ui.merge.call({caseless:O},b,i):ui.isPlainObject(i)?ui.merge({},i):ui.isArray(i)?i.slice():i}function P(b,i,O){if(ui.isUndefined(i)){if(!ui.isUndefined(b))return f(void 0,b,O)}else return f(b,i,O)}function d(b,i){if(!ui.isUndefined(i))return f(void 0,i)}function l(b,i){if(ui.isUndefined(i)){if(!ui.isUndefined(b))return f(void 0,b)}else return f(void 0,i)}function n(b,i,O){if(O in e)return f(b,i);if(O in t)return f(void 0,b)}const c={url:d,method:d,data:d,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(b,i)=>P(hde(b),hde(i),!0)};return ui.forEach(Object.keys(Object.assign({},t,e)),function(i){const O=c[i]||P,w=O(t[i],e[i],i);ui.isUndefined(w)&&O!==n||(o[i]=w)}),o}const e1e="1.6.2",hle={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{hle[t]=function(f){return typeof f===t||"a"+(e<1?"n ":" ")+t}});const pde={};hle.transitional=function(e,o,f){function P(d,l){return"[Axios v"+e1e+"] Transitional option '"+d+"'"+l+(f?". "+f:"")}return(d,l,n)=>{if(e===!1)throw new Ic(P(l," has been removed"+(o?" in "+o:"")),Ic.ERR_DEPRECATED);return o&&!pde[l]&&(pde[l]=!0,console.warn(P(l," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(d,l,n):!0}};function n4e(t,e,o){if(typeof t!="object")throw new Ic("options must be an object",Ic.ERR_BAD_OPTION_VALUE);const f=Object.keys(t);let P=f.length;for(;P-- >0;){const d=f[P],l=e[d];if(l){const n=t[d],c=n===void 0||l(n,d,t);if(c!==!0)throw new Ic("option "+d+" must be "+c,Ic.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new Ic("Unknown option "+d,Ic.ERR_BAD_OPTION)}}const hae={assertOptions:n4e,validators:hle},I4=hae.validators;class MH{constructor(e){this.defaults=e,this.interceptors={request:new lde,response:new lde}}request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=nM(this.defaults,o);const{transitional:f,paramsSerializer:P,headers:d}=o;f!==void 0&&hae.assertOptions(f,{silentJSONParsing:I4.transitional(I4.boolean),forcedJSONParsing:I4.transitional(I4.boolean),clarifyTimeoutError:I4.transitional(I4.boolean)},!1),P!=null&&(ui.isFunction(P)?o.paramsSerializer={serialize:P}:hae.assertOptions(P,{encode:I4.function,serialize:I4.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let l=d&&ui.merge(d.common,d[o.method]);d&&ui.forEach(["delete","get","head","post","put","patch","common"],p=>{delete d[p]}),o.headers=wO.concat(l,d);const n=[];let c=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(o)===!1||(c=c&&a.synchronous,n.unshift(a.fulfilled,a.rejected))});const b=[];this.interceptors.response.forEach(function(a){b.push(a.fulfilled,a.rejected)});let i,O=0,w;if(!c){const p=[dde.bind(this),void 0];for(p.unshift.apply(p,n),p.push.apply(p,b),w=p.length,i=Promise.resolve(o);O{if(!f._listeners)return;let d=f._listeners.length;for(;d-- >0;)f._listeners[d](P);f._listeners=null}),this.promise.then=P=>{let d;const l=new Promise(n=>{f.subscribe(n),d=n}).then(P);return l.cancel=function(){f.unsubscribe(d)},l},e(function(d,l,n){f.reason||(f.reason=new sD(d,l,n),o(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}static source(){let e;return{token:new ple(function(P){e=P}),cancel:e}}}const r4e=ple;function o4e(t){return function(o){return t.apply(null,o)}}function i4e(t){return ui.isObject(t)&&t.isAxiosError===!0}const pae={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pae).forEach(([t,e])=>{pae[e]=t});const a4e=pae;function t1e(t){const e=new sH(t),o=D0e(sH.prototype.request,e);return ui.extend(o,sH.prototype,e,{allOwnKeys:!0}),ui.extend(o,e,null,{allOwnKeys:!0}),o.create=function(P){return t1e(nM(t,P))},o}const Jh=t1e(dle);Jh.Axios=sH;Jh.CanceledError=sD;Jh.CancelToken=r4e;Jh.isCancel=G0e;Jh.VERSION=e1e;Jh.toFormData=DZ;Jh.AxiosError=Ic;Jh.Cancel=Jh.CanceledError;Jh.all=function(e){return Promise.all(e)};Jh.spread=o4e;Jh.isAxiosError=i4e;Jh.mergeConfig=nM;Jh.AxiosHeaders=wO;Jh.formToJSON=t=>X0e(ui.isHTMLForm(t)?new FormData(t):t);Jh.getAdapter=J0e.getAdapter;Jh.HttpStatusCode=a4e;Jh.default=Jh;const fu=Jh;function mle(t,e){const o=Object.create(null),f=t.split(",");for(let P=0;P!!o[P.toLowerCase()]:P=>!!o[P]}const od={},HA=[],vx=()=>{},s4e=()=>!1,l4e=/^on[^a-z]/,zZ=t=>l4e.test(t),gle=t=>t.startsWith("onUpdate:"),Nh=Object.assign,vle=(t,e)=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)},c4e=Object.prototype.hasOwnProperty,Zc=(t,e)=>c4e.call(t,e),bs=Array.isArray,ZA=t=>FZ(t)==="[object Map]",n1e=t=>FZ(t)==="[object Set]",ll=t=>typeof t=="function",hh=t=>typeof t=="string",yle=t=>typeof t=="symbol",zf=t=>t!==null&&typeof t=="object",r1e=t=>zf(t)&&ll(t.then)&&ll(t.catch),o1e=Object.prototype.toString,FZ=t=>o1e.call(t),u4e=t=>FZ(t).slice(8,-1),i1e=t=>FZ(t)==="[object Object]",ble=t=>hh(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,lH=mle(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),NZ=t=>{const e=Object.create(null);return o=>e[o]||(e[o]=t(o))},f4e=/-(\w)/g,rb=NZ(t=>t.replace(f4e,(e,o)=>o?o.toUpperCase():"")),d4e=/\B([A-Z])/g,xT=NZ(t=>t.replace(d4e,"-$1").toLowerCase()),v_=NZ(t=>t.charAt(0).toUpperCase()+t.slice(1)),eI=NZ(t=>t?`on${v_(t)}`:""),vI=(t,e)=>!Object.is(t,e),cH=(t,e)=>{for(let o=0;o{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:o})},mae=t=>{const e=parseFloat(t);return isNaN(e)?t:e},a1e=t=>{const e=hh(t)?Number(t):NaN;return isNaN(e)?t:e};let mde;const gae=()=>mde||(mde=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lD(t){if(bs(t)){const e={};for(let o=0;o{if(o){const f=o.split(p4e);f.length>1&&(e[f[0].trim()]=f[1].trim())}}),e}function zv(t){let e="";if(hh(t))e=t;else if(bs(t))for(let o=0;ohh(t)?t:t==null?"":bs(t)||zf(t)&&(t.toString===o1e||!ll(t.toString))?JSON.stringify(t,l1e,2):String(t),l1e=(t,e)=>e&&e.__v_isRef?l1e(t,e.value):ZA(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((o,[f,P])=>(o[`${f} =>`]=P,o),{})}:n1e(e)?{[`Set(${e.size})`]:[...e.values()]}:zf(e)&&!bs(e)&&!i1e(e)?String(e):e;let Ev;class c1e{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ev,!e&&Ev&&(this.index=(Ev.scopes||(Ev.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const o=Ev;try{return Ev=this,e()}finally{Ev=o}}}on(){Ev=this}off(){Ev=this.parent}stop(e){if(this._active){let o,f;for(o=0,f=this.effects.length;o{const e=new Set(t);return e.w=0,e.n=0,e},f1e=t=>(t.w&nS)>0,d1e=t=>(t.n&nS)>0,x4e=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let o=0;for(let f=0;f{(i==="length"||i>=c)&&n.push(b)})}else switch(o!==void 0&&n.push(l.get(o)),e){case"add":bs(t)?ble(o)&&n.push(l.get("length")):(n.push(l.get(cT)),ZA(t)&&n.push(l.get(yae)));break;case"delete":bs(t)||(n.push(l.get(cT)),ZA(t)&&n.push(l.get(yae)));break;case"set":ZA(t)&&n.push(l.get(cT));break}if(n.length===1)n[0]&&bae(n[0]);else{const c=[];for(const b of n)b&&c.push(...b);bae(xle(c))}}function bae(t,e){const o=bs(t)?t:[...t];for(const f of o)f.computed&&vde(f);for(const f of o)f.computed||vde(f)}function vde(t,e){(t!==gx||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function w4e(t,e){var o;return(o=PH.get(t))==null?void 0:o.get(e)}const O4e=mle("__proto__,__v_isRef,__isVue"),m1e=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(yle)),S4e=wle(),k4e=wle(!1,!0),T4e=wle(!0),yde=C4e();function C4e(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...o){const f=As(this);for(let d=0,l=this.length;d{t[e]=function(...o){SM();const f=As(this)[e].apply(this,o);return kM(),f}}),t}function A4e(t){const e=As(this);return _1(e,"has",t),e.hasOwnProperty(t)}function wle(t=!1,e=!1){return function(f,P,d){if(P==="__v_isReactive")return!t;if(P==="__v_isReadonly")return t;if(P==="__v_isShallow")return e;if(P==="__v_raw"&&d===(t?e?Q4e:x1e:e?b1e:y1e).get(f))return f;const l=bs(f);if(!t){if(l&&Zc(yde,P))return Reflect.get(yde,P,d);if(P==="hasOwnProperty")return A4e}const n=Reflect.get(f,P,d);return(yle(P)?m1e.has(P):O4e(P))||(t||_1(f,"get",P),e)?n:Dc(n)?l&&ble(P)?n:n.value:zf(n)?t?TM(n):lm(n):n}}const M4e=g1e(),E4e=g1e(!0);function g1e(t=!1){return function(o,f,P,d){let l=o[f];if(rM(l)&&Dc(l)&&!Dc(P))return!1;if(!t&&(!RH(P)&&!rM(P)&&(l=As(l),P=As(P)),!bs(o)&&Dc(l)&&!Dc(P)))return l.value=P,!0;const n=bs(o)&&ble(f)?Number(f)t,$Z=t=>Reflect.getPrototypeOf(t);function vQ(t,e,o=!1,f=!1){t=t.__v_raw;const P=As(t),d=As(e);o||(e!==d&&_1(P,"get",e),_1(P,"get",d));const{has:l}=$Z(P),n=f?Ole:o?Tle:yI;if(l.call(P,e))return n(t.get(e));if(l.call(P,d))return n(t.get(d));t!==P&&t.get(e)}function yQ(t,e=!1){const o=this.__v_raw,f=As(o),P=As(t);return e||(t!==P&&_1(f,"has",t),_1(f,"has",P)),t===P?o.has(t):o.has(t)||o.has(P)}function bQ(t,e=!1){return t=t.__v_raw,!e&&_1(As(t),"iterate",cT),Reflect.get(t,"size",t)}function bde(t){t=As(t);const e=As(this);return $Z(e).has.call(e,t)||(e.add(t),kO(e,"add",t,t)),this}function xde(t,e){e=As(e);const o=As(this),{has:f,get:P}=$Z(o);let d=f.call(o,t);d||(t=As(t),d=f.call(o,t));const l=P.call(o,t);return o.set(t,e),d?vI(e,l)&&kO(o,"set",t,e):kO(o,"add",t,e),this}function _de(t){const e=As(this),{has:o,get:f}=$Z(e);let P=o.call(e,t);P||(t=As(t),P=o.call(e,t)),f&&f.call(e,t);const d=e.delete(t);return P&&kO(e,"delete",t,void 0),d}function wde(){const t=As(this),e=t.size!==0,o=t.clear();return e&&kO(t,"clear",void 0,void 0),o}function xQ(t,e){return function(f,P){const d=this,l=d.__v_raw,n=As(l),c=e?Ole:t?Tle:yI;return!t&&_1(n,"iterate",cT),l.forEach((b,i)=>f.call(P,c(b),c(i),d))}}function _Q(t,e,o){return function(...f){const P=this.__v_raw,d=As(P),l=ZA(d),n=t==="entries"||t===Symbol.iterator&&l,c=t==="keys"&&l,b=P[t](...f),i=o?Ole:e?Tle:yI;return!e&&_1(d,"iterate",c?yae:cT),{next(){const{value:O,done:w}=b.next();return w?{value:O,done:w}:{value:n?[i(O[0]),i(O[1])]:i(O),done:w}},[Symbol.iterator](){return this}}}}function D4(t){return function(...e){return t==="delete"?!1:this}}function B4e(){const t={get(d){return vQ(this,d)},get size(){return bQ(this)},has:yQ,add:bde,set:xde,delete:_de,clear:wde,forEach:xQ(!1,!1)},e={get(d){return vQ(this,d,!1,!0)},get size(){return bQ(this)},has:yQ,add:bde,set:xde,delete:_de,clear:wde,forEach:xQ(!1,!0)},o={get(d){return vQ(this,d,!0)},get size(){return bQ(this,!0)},has(d){return yQ.call(this,d,!0)},add:D4("add"),set:D4("set"),delete:D4("delete"),clear:D4("clear"),forEach:xQ(!0,!1)},f={get(d){return vQ(this,d,!0,!0)},get size(){return bQ(this,!0)},has(d){return yQ.call(this,d,!0)},add:D4("add"),set:D4("set"),delete:D4("delete"),clear:D4("clear"),forEach:xQ(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(d=>{t[d]=_Q(d,!1,!1),o[d]=_Q(d,!0,!1),e[d]=_Q(d,!1,!0),f[d]=_Q(d,!0,!0)}),[t,o,e,f]}const[z4e,F4e,N4e,$4e]=B4e();function Sle(t,e){const o=e?t?$4e:N4e:t?F4e:z4e;return(f,P,d)=>P==="__v_isReactive"?!t:P==="__v_isReadonly"?t:P==="__v_raw"?f:Reflect.get(Zc(o,P)&&P in f?o:f,P,d)}const V4e={get:Sle(!1,!1)},U4e={get:Sle(!1,!0)},j4e={get:Sle(!0,!1)},y1e=new WeakMap,b1e=new WeakMap,x1e=new WeakMap,Q4e=new WeakMap;function H4e(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Z4e(t){return t.__v_skip||!Object.isExtensible(t)?0:H4e(u4e(t))}function lm(t){return rM(t)?t:kle(t,!1,v1e,V4e,y1e)}function _1e(t){return kle(t,!1,D4e,U4e,b1e)}function TM(t){return kle(t,!0,I4e,j4e,x1e)}function kle(t,e,o,f,P){if(!zf(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const d=P.get(t);if(d)return d;const l=Z4e(t);if(l===0)return t;const n=new Proxy(t,l===2?f:o);return P.set(t,n),n}function OO(t){return rM(t)?OO(t.__v_raw):!!(t&&t.__v_isReactive)}function rM(t){return!!(t&&t.__v_isReadonly)}function RH(t){return!!(t&&t.__v_isShallow)}function w1e(t){return OO(t)||rM(t)}function As(t){const e=t&&t.__v_raw;return e?As(e):t}function uD(t){return EH(t,"__v_skip",!0),t}const yI=t=>zf(t)?lm(t):t,Tle=t=>zf(t)?TM(t):t;function O1e(t){G4&&gx&&(t=As(t),p1e(t.dep||(t.dep=xle())))}function S1e(t,e){t=As(t);const o=t.dep;o&&bae(o)}function Dc(t){return!!(t&&t.__v_isRef===!0)}function ei(t){return k1e(t,!1)}function Ai(t){return k1e(t,!0)}function k1e(t,e){return Dc(t)?t:new q4e(t,e)}class q4e{constructor(e,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?e:As(e),this._value=o?e:yI(e)}get value(){return O1e(this),this._value}set value(e){const o=this.__v_isShallow||RH(e)||rM(e);e=o?e:As(e),vI(e,this._rawValue)&&(this._rawValue=e,this._value=o?e:yI(e),S1e(this))}}function wa(t){return Dc(t)?t.value:t}const W4e={get:(t,e,o)=>wa(Reflect.get(t,e,o)),set:(t,e,o,f)=>{const P=t[e];return Dc(P)&&!Dc(o)?(P.value=o,!0):Reflect.set(t,e,o,f)}};function T1e(t){return OO(t)?t:new Proxy(t,W4e)}function CM(t){const e=bs(t)?new Array(t.length):{};for(const o in t)e[o]=C1e(t,o);return e}class Y4e{constructor(e,o,f){this._object=e,this._key=o,this._defaultValue=f,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return w4e(As(this._object),this._key)}}class X4e{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Oi(t,e,o){return Dc(t)?t:ll(t)?new X4e(t):zf(t)&&arguments.length>1?C1e(t,e,o):ei(t)}function C1e(t,e,o){const f=t[e];return Dc(f)?f:new Y4e(t,e,o)}class G4e{constructor(e,o,f,P){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new _le(e,()=>{this._dirty||(this._dirty=!0,S1e(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!P,this.__v_isReadonly=f}get value(){const e=As(this);return O1e(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function K4e(t,e,o=!1){let f,P;const d=ll(t);return d?(f=t,P=vx):(f=t.get,P=t.set),new G4e(f,P,d||!P,o)}function K4(t,e,o,f){let P;try{P=f?t(...f):t()}catch(d){fD(d,e,o)}return P}function eb(t,e,o,f){if(ll(t)){const d=K4(t,e,o,f);return d&&r1e(d)&&d.catch(l=>{fD(l,e,o)}),d}const P=[];for(let d=0;d>>1;xI(Ng[f])e_&&Ng.splice(e,1)}function E1e(t){bs(t)?qA.push(...t):(!xO||!xO.includes(t,t.allowRecurse?Jk+1:Jk))&&qA.push(t),M1e()}function Ode(t,e=bI?e_+1:0){for(;exI(o)-xI(f)),Jk=0;Jkt.id==null?1/0:t.id,nSe=(t,e)=>{const o=xI(t)-xI(e);if(o===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return o};function R1e(t){xae=!1,bI=!0,Ng.sort(nSe);const e=vx;try{for(e_=0;e_hh(y)?y.trim():y)),O&&(P=o.map(mae))}let n,c=f[n=eI(e)]||f[n=eI(rb(e))];!c&&d&&(c=f[n=eI(xT(e))]),c&&eb(c,t,6,P);const b=f[n+"Once"];if(b){if(!t.emitted)t.emitted={};else if(t.emitted[n])return;t.emitted[n]=!0,eb(b,t,6,P)}}function L1e(t,e,o=!1){const f=e.emitsCache,P=f.get(t);if(P!==void 0)return P;const d=t.emits;let l={},n=!1;if(!ll(t)){const c=b=>{const i=L1e(b,e,!0);i&&(n=!0,Nh(l,i))};!o&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!d&&!n?(zf(t)&&f.set(t,null),null):(bs(d)?d.forEach(c=>l[c]=null):Nh(l,d),zf(t)&&f.set(t,l),l)}function VZ(t,e){return!t||!zZ(e)?!1:(e=e.slice(2).replace(/Once$/,""),Zc(t,e[0].toLowerCase()+e.slice(1))||Zc(t,xT(e))||Zc(t,e))}let cm=null,UZ=null;function LH(t){const e=cm;return cm=t,UZ=t&&t.type.__scopeId||null,e}function Mle(t){UZ=t}function Ele(){UZ=null}function Oo(t,e=cm,o){if(!e||t._n)return t;const f=(...P)=>{f._d&&Fde(-1);const d=LH(e);let l;try{l=t(...P)}finally{LH(d),f._d&&Fde(1)}return l};return f._n=!0,f._c=!0,f._d=!0,f}function Joe(t){const{type:e,vnode:o,proxy:f,withProxy:P,props:d,propsOptions:[l],slots:n,attrs:c,emit:b,render:i,renderCache:O,data:w,setupState:y,ctx:p,inheritAttrs:a}=t;let u,h;const m=LH(t);try{if(o.shapeFlag&4){const _=P||f;u=hx(i.call(_,_,O,d,y,w,p)),h=c}else{const _=e;u=hx(_.length>1?_(d,{attrs:c,slots:n,emit:b}):_(d,null)),h=e.props?c:iSe(c)}}catch(_){oI.length=0,fD(_,t,1),u=Zt(k0)}let v=u;if(h&&a!==!1){const _=Object.keys(h),{shapeFlag:S}=v;_.length&&S&7&&(l&&_.some(gle)&&(h=aSe(h,l)),v=TO(v,h))}return o.dirs&&(v=TO(v),v.dirs=v.dirs?v.dirs.concat(o.dirs):o.dirs),o.transition&&(v.transition=o.transition),u=v,LH(m),u}function oSe(t){let e;for(let o=0;o{let e;for(const o in t)(o==="class"||o==="style"||zZ(o))&&((e||(e={}))[o]=t[o]);return e},aSe=(t,e)=>{const o={};for(const f in t)(!gle(f)||!(f.slice(9)in e))&&(o[f]=t[f]);return o};function sSe(t,e,o){const{props:f,children:P,component:d}=t,{props:l,children:n,patchFlag:c}=e,b=d.emitsOptions;if(e.dirs||e.transition)return!0;if(o&&c>=0){if(c&1024)return!0;if(c&16)return f?Sde(f,l,b):!!l;if(c&8){const i=e.dynamicProps;for(let O=0;Ot.__isSuspense,cSe={name:"Suspense",__isSuspense:!0,process(t,e,o,f,P,d,l,n,c,b){t==null?fSe(e,o,f,P,d,l,n,c,b):dSe(t,e,o,f,P,l,n,c,b)},hydrate:hSe,create:Rle,normalize:pSe},uSe=cSe;function _I(t,e){const o=t.props&&t.props[e];ll(o)&&o()}function fSe(t,e,o,f,P,d,l,n,c){const{p:b,o:{createElement:i}}=c,O=i("div"),w=t.suspense=Rle(t,P,f,e,O,o,d,l,n,c);b(null,w.pendingBranch=t.ssContent,O,null,f,w,d,l),w.deps>0?(_I(t,"onPending"),_I(t,"onFallback"),b(null,t.ssFallback,e,o,f,null,d,l),WA(w,t.ssFallback)):w.resolve(!1,!0)}function dSe(t,e,o,f,P,d,l,n,{p:c,um:b,o:{createElement:i}}){const O=e.suspense=t.suspense;O.vnode=e,e.el=t.el;const w=e.ssContent,y=e.ssFallback,{activeBranch:p,pendingBranch:a,isInFallback:u,isHydrating:h}=O;if(a)O.pendingBranch=w,t_(w,a)?(c(a,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0?O.resolve():u&&(c(p,y,o,f,P,null,d,l,n),WA(O,y))):(O.pendingId++,h?(O.isHydrating=!1,O.activeBranch=a):b(a,P,O),O.deps=0,O.effects.length=0,O.hiddenContainer=i("div"),u?(c(null,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0?O.resolve():(c(p,y,o,f,P,null,d,l,n),WA(O,y))):p&&t_(w,p)?(c(p,w,o,f,P,O,d,l,n),O.resolve(!0)):(c(null,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0&&O.resolve()));else if(p&&t_(w,p))c(p,w,o,f,P,O,d,l,n),WA(O,w);else if(_I(e,"onPending"),O.pendingBranch=w,O.pendingId++,c(null,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0)O.resolve();else{const{timeout:m,pendingId:v}=O;m>0?setTimeout(()=>{O.pendingId===v&&O.fallback(y)},m):m===0&&O.fallback(y)}}function Rle(t,e,o,f,P,d,l,n,c,b,i=!1){const{p:O,m:w,um:y,n:p,o:{parentNode:a,remove:u}}=b;let h;const m=gSe(t);m&&e!=null&&e.pendingBranch&&(h=e.pendingId,e.deps++);const v=t.props?a1e(t.props.timeout):void 0,_={vnode:t,parent:e,parentComponent:o,isSVG:l,container:f,hiddenContainer:P,anchor:d,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:i,isUnmounted:!1,effects:[],resolve(S=!1,A=!1){const{vnode:x,activeBranch:R,pendingBranch:M,pendingId:T,effects:E,parentComponent:C,container:L}=_;if(_.isHydrating)_.isHydrating=!1;else if(!S){const I=R&&M.transition&&M.transition.mode==="out-in";I&&(R.transition.afterLeave=()=>{T===_.pendingId&&w(M,L,z,0)});let{anchor:z}=_;R&&(z=p(R),y(R,C,_,!0)),I||w(M,L,z,0)}WA(_,M),_.pendingBranch=null,_.isInFallback=!1;let D=_.parent,k=!1;for(;D;){if(D.pendingBranch){D.effects.push(...E),k=!0;break}D=D.parent}k||E1e(E),_.effects=[],m&&e&&e.pendingBranch&&h===e.pendingId&&(e.deps--,e.deps===0&&!A&&e.resolve()),_I(x,"onResolve")},fallback(S){if(!_.pendingBranch)return;const{vnode:A,activeBranch:x,parentComponent:R,container:M,isSVG:T}=_;_I(A,"onFallback");const E=p(x),C=()=>{_.isInFallback&&(O(null,S,M,E,R,null,T,n,c),WA(_,S))},L=S.transition&&S.transition.mode==="out-in";L&&(x.transition.afterLeave=C),_.isInFallback=!0,y(x,R,null,!0),L||C()},move(S,A,x){_.activeBranch&&w(_.activeBranch,S,A,x),_.container=S},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(S,A){const x=!!_.pendingBranch;x&&_.deps++;const R=S.vnode.el;S.asyncDep.catch(M=>{fD(M,S,0)}).then(M=>{if(S.isUnmounted||_.isUnmounted||_.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:T}=S;Cae(S,M,!1),R&&(T.el=R);const E=!R&&S.subTree.el;A(S,T,a(R||S.subTree.el),R?null:p(S.subTree),_,l,c),E&&u(E),Ple(S,T.el),x&&--_.deps===0&&_.resolve()})},unmount(S,A){_.isUnmounted=!0,_.activeBranch&&y(_.activeBranch,o,S,A),_.pendingBranch&&y(_.pendingBranch,o,S,A)}};return _}function hSe(t,e,o,f,P,d,l,n,c){const b=e.suspense=Rle(e,f,o,t.parentNode,document.createElement("div"),null,P,d,l,n,!0),i=c(t,b.pendingBranch=e.ssContent,o,b,d,l);return b.deps===0&&b.resolve(!1,!0),i}function pSe(t){const{shapeFlag:e,children:o}=t,f=e&32;t.ssContent=kde(f?o.default:o),t.ssFallback=f?kde(o.fallback):Zt(k0)}function kde(t){let e;if(ll(t)){const o=oM&&t._c;o&&(t._d=!1,Bo()),t=t(),o&&(t._d=!0,e=Yy,G1e())}return bs(t)&&(t=oSe(t)),t=hx(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(o=>o!==t)),t}function mSe(t,e){e&&e.pendingBranch?bs(t)?e.effects.push(...t):e.effects.push(t):E1e(t)}function WA(t,e){t.activeBranch=e;const{vnode:o,parentComponent:f}=t,P=o.el=e.el;f&&f.subTree===o&&(f.vnode.el=P,Ple(f,P))}function gSe(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function kp(t,e){return Lle(t,null,e)}const wQ={};function Ni(t,e,o){return Lle(t,e,o)}function Lle(t,e,{immediate:o,deep:f,flush:P,onTrack:d,onTrigger:l}=od){var n;const c=u1e()===((n=Op)==null?void 0:n.scope)?Op:null;let b,i=!1,O=!1;if(Dc(t)?(b=()=>t.value,i=RH(t)):OO(t)?(b=()=>t,f=!0):bs(t)?(O=!0,i=t.some(_=>OO(_)||RH(_)),b=()=>t.map(_=>{if(Dc(_))return _.value;if(OO(_))return oT(_);if(ll(_))return K4(_,c,2)})):ll(t)?e?b=()=>K4(t,c,2):b=()=>{if(!(c&&c.isUnmounted))return w&&w(),eb(t,c,3,[y])}:b=vx,e&&f){const _=b;b=()=>oT(_())}let w,y=_=>{w=m.onStop=()=>{K4(_,c,4)}},p;if(TI)if(y=vx,e?o&&eb(e,c,3,[b(),O?[]:void 0,y]):b(),P==="sync"){const _=a5e();p=_.__watcherHandles||(_.__watcherHandles=[])}else return vx;let a=O?new Array(t.length).fill(wQ):wQ;const u=()=>{if(m.active)if(e){const _=m.run();(f||i||(O?_.some((S,A)=>vI(S,a[A])):vI(_,a)))&&(w&&w(),eb(e,c,3,[_,a===wQ?void 0:O&&a[0]===wQ?[]:a,y]),a=_)}else m.run()};u.allowRecurse=!!e;let h;P==="sync"?h=u:P==="post"?h=()=>g1(u,c&&c.suspense):(u.pre=!0,c&&(u.id=c.uid),h=()=>Ale(u));const m=new _le(b,h);e?o?u():a=m.run():P==="post"?g1(m.run.bind(m),c&&c.suspense):m.run();const v=()=>{m.stop(),c&&c.scope&&vle(c.scope.effects,m)};return p&&p.push(v),v}function vSe(t,e,o){const f=this.proxy,P=hh(t)?t.includes(".")?I1e(f,t):()=>f[t]:t.bind(f,f);let d;ll(e)?d=e:(d=e.handler,o=e);const l=Op;aM(this);const n=Lle(P,d.bind(f),o);return l?aM(l):uT(),n}function I1e(t,e){const o=e.split(".");return()=>{let f=t;for(let P=0;P{oT(o,e)});else if(i1e(t))for(const o in t)oT(t[o],e);return t}function Tp(t,e){const o=cm;if(o===null)return t;const f=ZZ(o)||o.proxy,P=t.dirs||(t.dirs=[]);for(let d=0;d{t.isMounted=!0}),dm(()=>{t.isUnmounting=!0}),t}const Zy=[Function,Array],B1e={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Zy,onEnter:Zy,onAfterEnter:Zy,onEnterCancelled:Zy,onBeforeLeave:Zy,onLeave:Zy,onAfterLeave:Zy,onLeaveCancelled:Zy,onBeforeAppear:Zy,onAppear:Zy,onAfterAppear:Zy,onAppearCancelled:Zy},ySe={name:"BaseTransition",props:B1e,setup(t,{slots:e}){const o=Zle(),f=D1e();let P;return()=>{const d=e.default&&Ile(e.default(),!0);if(!d||!d.length)return;let l=d[0];if(d.length>1){for(const a of d)if(a.type!==k0){l=a;break}}const n=As(t),{mode:c}=n;if(f.isLeaving)return eie(l);const b=Tde(l);if(!b)return eie(l);const i=wI(b,n,f,o);OI(b,i);const O=o.subTree,w=O&&Tde(O);let y=!1;const{getTransitionKey:p}=b.type;if(p){const a=p();P===void 0?P=a:a!==P&&(P=a,y=!0)}if(w&&w.type!==k0&&(!t_(b,w)||y)){const a=wI(w,n,f,o);if(OI(w,a),c==="out-in")return f.isLeaving=!0,a.afterLeave=()=>{f.isLeaving=!1,o.update.active!==!1&&o.update()},eie(l);c==="in-out"&&b.type!==k0&&(a.delayLeave=(u,h,m)=>{const v=z1e(f,w);v[String(w.key)]=w,u._leaveCb=()=>{h(),u._leaveCb=void 0,delete i.delayedLeave},i.delayedLeave=m})}return l}}},bSe=ySe;function z1e(t,e){const{leavingVNodes:o}=t;let f=o.get(e.type);return f||(f=Object.create(null),o.set(e.type,f)),f}function wI(t,e,o,f){const{appear:P,mode:d,persisted:l=!1,onBeforeEnter:n,onEnter:c,onAfterEnter:b,onEnterCancelled:i,onBeforeLeave:O,onLeave:w,onAfterLeave:y,onLeaveCancelled:p,onBeforeAppear:a,onAppear:u,onAfterAppear:h,onAppearCancelled:m}=e,v=String(t.key),_=z1e(o,t),S=(R,M)=>{R&&eb(R,f,9,M)},A=(R,M)=>{const T=M[1];S(R,M),bs(R)?R.every(E=>E.length<=1)&&T():R.length<=1&&T()},x={mode:d,persisted:l,beforeEnter(R){let M=n;if(!o.isMounted)if(P)M=a||n;else return;R._leaveCb&&R._leaveCb(!0);const T=_[v];T&&t_(t,T)&&T.el._leaveCb&&T.el._leaveCb(),S(M,[R])},enter(R){let M=c,T=b,E=i;if(!o.isMounted)if(P)M=u||c,T=h||b,E=m||i;else return;let C=!1;const L=R._enterCb=D=>{C||(C=!0,D?S(E,[R]):S(T,[R]),x.delayedLeave&&x.delayedLeave(),R._enterCb=void 0)};M?A(M,[R,L]):L()},leave(R,M){const T=String(t.key);if(R._enterCb&&R._enterCb(!0),o.isUnmounting)return M();S(O,[R]);let E=!1;const C=R._leaveCb=L=>{E||(E=!0,M(),L?S(p,[R]):S(y,[R]),R._leaveCb=void 0,_[T]===t&&delete _[T])};_[T]=t,w?A(w,[R,C]):C()},clone(R){return wI(R,e,o,f)}};return x}function eie(t){if(jZ(t))return t=TO(t),t.children=null,t}function Tde(t){return jZ(t)?t.children?t.children[0]:void 0:t}function OI(t,e){t.shapeFlag&6&&t.component?OI(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Ile(t,e=!1,o){let f=[],P=0;for(let d=0;d1)for(let d=0;dNh({name:t.name},e,{setup:t}))():t}const tI=t=>!!t.type.__asyncLoader,jZ=t=>t.type.__isKeepAlive;function Dle(t,e){F1e(t,"a",e)}function Ble(t,e){F1e(t,"da",e)}function F1e(t,e,o=Op){const f=t.__wdc||(t.__wdc=()=>{let P=o;for(;P;){if(P.isDeactivated)return;P=P.parent}return t()});if(QZ(e,f,o),o){let P=o.parent;for(;P&&P.parent;)jZ(P.parent.vnode)&&xSe(f,e,o,P),P=P.parent}}function xSe(t,e,o,f){const P=QZ(e,t,f,!0);Nle(()=>{vle(f[e],P)},o)}function QZ(t,e,o=Op,f=!1){if(o){const P=o[t]||(o[t]=[]),d=e.__weh||(e.__weh=(...l)=>{if(o.isUnmounted)return;SM(),aM(o);const n=eb(e,o,t,l);return uT(),kM(),n});return f?P.unshift(d):P.push(d),d}}const RO=t=>(e,o=Op)=>(!TI||t==="sp")&&QZ(t,(...f)=>e(...f),o),zle=RO("bm"),ag=RO("m"),N1e=RO("bu"),Fle=RO("u"),dm=RO("bum"),Nle=RO("um"),_Se=RO("sp"),wSe=RO("rtg"),OSe=RO("rtc");function SSe(t,e=Op){QZ("ec",t,e)}const $le="components",kSe="directives";function Zd(t,e){return Vle($le,t,!0,e)||t}const $1e=Symbol.for("v-ndc");function SI(t){return hh(t)?Vle($le,t,!1)||t:t||$1e}function y_(t){return Vle(kSe,t)}function Vle(t,e,o=!0,f=!1){const P=cm||Op;if(P){const d=P.type;if(t===$le){const n=r5e(d,!1);if(n&&(n===e||n===rb(e)||n===v_(rb(e))))return d}const l=Cde(P[t]||d[t],e)||Cde(P.appContext[t],e);return!l&&f?d:l}}function Cde(t,e){return t&&(t[e]||t[rb(e)]||t[v_(rb(e))])}function ob(t,e,o,f){let P;const d=o&&o[f];if(bs(t)||hh(t)){P=new Array(t.length);for(let l=0,n=t.length;le(l,n,void 0,d&&d[n]));else{const l=Object.keys(t);P=new Array(l.length);for(let n=0,c=l.length;n{const d=f.fn(...P);return d&&(d.key=f.key),d}:f.fn)}return t}function Ade(t,e,o={},f,P){if(cm.isCE||cm.parent&&tI(cm.parent)&&cm.parent.isCE)return e!=="default"&&(o.name=e),Zt("slot",o,f&&f());let d=t[e];d&&d._c&&(d._d=!1),Bo();const l=d&&U1e(d(o)),n=la(ya,{key:o.key||l&&l.key||`_${e}`},l||(f?f():[]),l&&t._===1?64:-2);return!P&&n.scopeId&&(n.slotScopeIds=[n.scopeId+"-s"]),d&&d._c&&(d._d=!0),n}function U1e(t){return t.some(e=>iM(e)?!(e.type===k0||e.type===ya&&!U1e(e.children)):!0)?t:null}function TSe(t,e){const o={};for(const f in t)o[e&&/[A-Z]/.test(f)?`on:${f}`:eI(f)]=t[f];return o}const _ae=t=>t?eve(t)?ZZ(t)||t.proxy:_ae(t.parent):null,nI=Nh(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>_ae(t.parent),$root:t=>_ae(t.root),$emit:t=>t.emit,$options:t=>Ule(t),$forceUpdate:t=>t.f||(t.f=()=>Ale(t.update)),$nextTick:t=>t.n||(t.n=lc.bind(t.proxy)),$watch:t=>vSe.bind(t)}),tie=(t,e)=>t!==od&&!t.__isScriptSetup&&Zc(t,e),CSe={get({_:t},e){const{ctx:o,setupState:f,data:P,props:d,accessCache:l,type:n,appContext:c}=t;let b;if(e[0]!=="$"){const y=l[e];if(y!==void 0)switch(y){case 1:return f[e];case 2:return P[e];case 4:return o[e];case 3:return d[e]}else{if(tie(f,e))return l[e]=1,f[e];if(P!==od&&Zc(P,e))return l[e]=2,P[e];if((b=t.propsOptions[0])&&Zc(b,e))return l[e]=3,d[e];if(o!==od&&Zc(o,e))return l[e]=4,o[e];wae&&(l[e]=0)}}const i=nI[e];let O,w;if(i)return e==="$attrs"&&_1(t,"get",e),i(t);if((O=n.__cssModules)&&(O=O[e]))return O;if(o!==od&&Zc(o,e))return l[e]=4,o[e];if(w=c.config.globalProperties,Zc(w,e))return w[e]},set({_:t},e,o){const{data:f,setupState:P,ctx:d}=t;return tie(P,e)?(P[e]=o,!0):f!==od&&Zc(f,e)?(f[e]=o,!0):Zc(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(d[e]=o,!0)},has({_:{data:t,setupState:e,accessCache:o,ctx:f,appContext:P,propsOptions:d}},l){let n;return!!o[l]||t!==od&&Zc(t,l)||tie(e,l)||(n=d[0])&&Zc(n,l)||Zc(f,l)||Zc(nI,l)||Zc(P.config.globalProperties,l)},defineProperty(t,e,o){return o.get!=null?t._.accessCache[e]=0:Zc(o,"value")&&this.set(t,e,o.value,null),Reflect.defineProperty(t,e,o)}};function Mde(t){return bs(t)?t.reduce((e,o)=>(e[o]=null,e),{}):t}let wae=!0;function ASe(t){const e=Ule(t),o=t.proxy,f=t.ctx;wae=!1,e.beforeCreate&&Ede(e.beforeCreate,t,"bc");const{data:P,computed:d,methods:l,watch:n,provide:c,inject:b,created:i,beforeMount:O,mounted:w,beforeUpdate:y,updated:p,activated:a,deactivated:u,beforeDestroy:h,beforeUnmount:m,destroyed:v,unmounted:_,render:S,renderTracked:A,renderTriggered:x,errorCaptured:R,serverPrefetch:M,expose:T,inheritAttrs:E,components:C,directives:L,filters:D}=e;if(b&&MSe(b,f,null),l)for(const z in l){const $=l[z];ll($)&&(f[z]=$.bind(o))}if(P){const z=P.call(o,o);zf(z)&&(t.data=lm(z))}if(wae=!0,d)for(const z in d){const $=d[z],Q=ll($)?$.bind(o,o):ll($.get)?$.get.bind(o,o):vx,j=!ll($)&&ll($.set)?$.set.bind(o):vx,U=jn({get:Q,set:j});Object.defineProperty(f,z,{enumerable:!0,configurable:!0,get:()=>U.value,set:X=>U.value=X})}if(n)for(const z in n)j1e(n[z],f,o,z);if(c){const z=ll(c)?c.call(o):c;Reflect.ownKeys(z).forEach($=>{gf($,z[$])})}i&&Ede(i,t,"c");function I(z,$){bs($)?$.forEach(Q=>z(Q.bind(o))):$&&z($.bind(o))}if(I(zle,O),I(ag,w),I(N1e,y),I(Fle,p),I(Dle,a),I(Ble,u),I(SSe,R),I(OSe,A),I(wSe,x),I(dm,m),I(Nle,_),I(_Se,M),bs(T))if(T.length){const z=t.exposed||(t.exposed={});T.forEach($=>{Object.defineProperty(z,$,{get:()=>o[$],set:Q=>o[$]=Q})})}else t.exposed||(t.exposed={});S&&t.render===vx&&(t.render=S),E!=null&&(t.inheritAttrs=E),C&&(t.components=C),L&&(t.directives=L)}function MSe(t,e,o=vx){bs(t)&&(t=Oae(t));for(const f in t){const P=t[f];let d;zf(P)?"default"in P?d=vl(P.from||f,P.default,!0):d=vl(P.from||f):d=vl(P),Dc(d)?Object.defineProperty(e,f,{enumerable:!0,configurable:!0,get:()=>d.value,set:l=>d.value=l}):e[f]=d}}function Ede(t,e,o){eb(bs(t)?t.map(f=>f.bind(e.proxy)):t.bind(e.proxy),e,o)}function j1e(t,e,o,f){const P=f.includes(".")?I1e(o,f):()=>o[f];if(hh(t)){const d=e[t];ll(d)&&Ni(P,d)}else if(ll(t))Ni(P,t.bind(o));else if(zf(t))if(bs(t))t.forEach(d=>j1e(d,e,o,f));else{const d=ll(t.handler)?t.handler.bind(o):e[t.handler];ll(d)&&Ni(P,d,t)}}function Ule(t){const e=t.type,{mixins:o,extends:f}=e,{mixins:P,optionsCache:d,config:{optionMergeStrategies:l}}=t.appContext,n=d.get(e);let c;return n?c=n:!P.length&&!o&&!f?c=e:(c={},P.length&&P.forEach(b=>IH(c,b,l,!0)),IH(c,e,l)),zf(e)&&d.set(e,c),c}function IH(t,e,o,f=!1){const{mixins:P,extends:d}=e;d&&IH(t,d,o,!0),P&&P.forEach(l=>IH(t,l,o,!0));for(const l in e)if(!(f&&l==="expose")){const n=ESe[l]||o&&o[l];t[l]=n?n(t[l],e[l]):e[l]}return t}const ESe={data:Pde,props:Rde,emits:Rde,methods:qL,computed:qL,beforeCreate:O0,created:O0,beforeMount:O0,mounted:O0,beforeUpdate:O0,updated:O0,beforeDestroy:O0,beforeUnmount:O0,destroyed:O0,unmounted:O0,activated:O0,deactivated:O0,errorCaptured:O0,serverPrefetch:O0,components:qL,directives:qL,watch:RSe,provide:Pde,inject:PSe};function Pde(t,e){return e?t?function(){return Nh(ll(t)?t.call(this,this):t,ll(e)?e.call(this,this):e)}:e:t}function PSe(t,e){return qL(Oae(t),Oae(e))}function Oae(t){if(bs(t)){const e={};for(let o=0;o1)return o&&ll(e)?e.call(f&&f.proxy):e}}function DSe(){return!!(Op||cm||kI)}function BSe(t,e,o,f=!1){const P={},d={};EH(d,HZ,1),t.propsDefaults=Object.create(null),H1e(t,e,P,d);for(const l in t.propsOptions[0])l in P||(P[l]=void 0);o?t.props=f?P:_1e(P):t.type.props?t.props=P:t.props=d,t.attrs=d}function zSe(t,e,o,f){const{props:P,attrs:d,vnode:{patchFlag:l}}=t,n=As(P),[c]=t.propsOptions;let b=!1;if((f||l>0)&&!(l&16)){if(l&8){const i=t.vnode.dynamicProps;for(let O=0;O{c=!0;const[w,y]=Z1e(O,e,!0);Nh(l,w),y&&n.push(...y)};!o&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!d&&!c)return zf(t)&&f.set(t,HA),HA;if(bs(d))for(let i=0;i-1,y[1]=a<0||p-1||Zc(y,"default"))&&n.push(O)}}}const b=[l,n];return zf(t)&&f.set(t,b),b}function Lde(t){return t[0]!=="$"}function Ide(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Dde(t,e){return Ide(t)===Ide(e)}function Bde(t,e){return bs(e)?e.findIndex(o=>Dde(o,t)):ll(e)&&Dde(e,t)?0:-1}const q1e=t=>t[0]==="_"||t==="$stable",jle=t=>bs(t)?t.map(hx):[hx(t)],FSe=(t,e,o)=>{if(e._n)return e;const f=Oo((...P)=>jle(e(...P)),o);return f._c=!1,f},W1e=(t,e,o)=>{const f=t._ctx;for(const P in t){if(q1e(P))continue;const d=t[P];if(ll(d))e[P]=FSe(P,d,f);else if(d!=null){const l=jle(d);e[P]=()=>l}}},Y1e=(t,e)=>{const o=jle(e);t.slots.default=()=>o},NSe=(t,e)=>{if(t.vnode.shapeFlag&32){const o=e._;o?(t.slots=As(e),EH(e,"_",o)):W1e(e,t.slots={})}else t.slots={},e&&Y1e(t,e);EH(t.slots,HZ,1)},$Se=(t,e,o)=>{const{vnode:f,slots:P}=t;let d=!0,l=od;if(f.shapeFlag&32){const n=e._;n?o&&n===1?d=!1:(Nh(P,e),!o&&n===1&&delete P._):(d=!e.$stable,W1e(e,P)),l=e}else e&&(Y1e(t,e),l={default:1});if(d)for(const n in P)!q1e(n)&&!(n in l)&&delete P[n]};function kae(t,e,o,f,P=!1){if(bs(t)){t.forEach((w,y)=>kae(w,e&&(bs(e)?e[y]:e),o,f,P));return}if(tI(f)&&!P)return;const d=f.shapeFlag&4?ZZ(f.component)||f.component.proxy:f.el,l=P?null:d,{i:n,r:c}=t,b=e&&e.r,i=n.refs===od?n.refs={}:n.refs,O=n.setupState;if(b!=null&&b!==c&&(hh(b)?(i[b]=null,Zc(O,b)&&(O[b]=null)):Dc(b)&&(b.value=null)),ll(c))K4(c,n,12,[l,i]);else{const w=hh(c),y=Dc(c);if(w||y){const p=()=>{if(t.f){const a=w?Zc(O,c)?O[c]:i[c]:c.value;P?bs(a)&&vle(a,d):bs(a)?a.includes(d)||a.push(d):w?(i[c]=[d],Zc(O,c)&&(O[c]=i[c])):(c.value=[d],t.k&&(i[t.k]=c.value))}else w?(i[c]=l,Zc(O,c)&&(O[c]=l)):y&&(c.value=l,t.k&&(i[t.k]=l))};l?(p.id=-1,g1(p,o)):p()}}}const g1=mSe;function VSe(t){return USe(t)}function USe(t,e){const o=gae();o.__VUE__=!0;const{insert:f,remove:P,patchProp:d,createElement:l,createText:n,createComment:c,setText:b,setElementText:i,parentNode:O,nextSibling:w,setScopeId:y=vx,insertStaticContent:p}=t,a=(se,ae,ce,de=null,ve=null,ye=null,_e=!1,Se=null,Te=!!ae.dynamicChildren)=>{if(se===ae)return;se&&!t_(se,ae)&&(de=q(se),X(se,ve,ye,!0),se=null),ae.patchFlag===-2&&(Te=!1,ae.dynamicChildren=null);const{type:Pe,ref:Ie,shapeFlag:ze}=ae;switch(Pe){case dD:u(se,ae,ce,de);break;case k0:h(se,ae,ce,de);break;case nie:se==null&&m(ae,ce,de,_e);break;case ya:C(se,ae,ce,de,ve,ye,_e,Se,Te);break;default:ze&1?S(se,ae,ce,de,ve,ye,_e,Se,Te):ze&6?L(se,ae,ce,de,ve,ye,_e,Se,Te):(ze&64||ze&128)&&Pe.process(se,ae,ce,de,ve,ye,_e,Se,Te,ee)}Ie!=null&&ve&&kae(Ie,se&&se.ref,ye,ae||se,!ae)},u=(se,ae,ce,de)=>{if(se==null)f(ae.el=n(ae.children),ce,de);else{const ve=ae.el=se.el;ae.children!==se.children&&b(ve,ae.children)}},h=(se,ae,ce,de)=>{se==null?f(ae.el=c(ae.children||""),ce,de):ae.el=se.el},m=(se,ae,ce,de)=>{[se.el,se.anchor]=p(se.children,ae,ce,de,se.el,se.anchor)},v=({el:se,anchor:ae},ce,de)=>{let ve;for(;se&&se!==ae;)ve=w(se),f(se,ce,de),se=ve;f(ae,ce,de)},_=({el:se,anchor:ae})=>{let ce;for(;se&&se!==ae;)ce=w(se),P(se),se=ce;P(ae)},S=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{_e=_e||ae.type==="svg",se==null?A(ae,ce,de,ve,ye,_e,Se,Te):M(se,ae,ve,ye,_e,Se,Te)},A=(se,ae,ce,de,ve,ye,_e,Se)=>{let Te,Pe;const{type:Ie,props:ze,shapeFlag:De,transition:He,dirs:Ve}=se;if(Te=se.el=l(se.type,ye,ze&&ze.is,ze),De&8?i(Te,se.children):De&16&&R(se.children,Te,null,de,ve,ye&&Ie!=="foreignObject",_e,Se),Ve&&jk(se,null,de,"created"),x(Te,se,se.scopeId,_e,de),ze){for(const Oe in ze)Oe!=="value"&&!lH(Oe)&&d(Te,Oe,null,ze[Oe],ye,se.children,de,ve,oe);"value"in ze&&d(Te,"value",null,ze.value),(Pe=ze.onVnodeBeforeMount)&&W2(Pe,de,se)}Ve&&jk(se,null,de,"beforeMount");const $e=(!ve||ve&&!ve.pendingBranch)&&He&&!He.persisted;$e&&He.beforeEnter(Te),f(Te,ae,ce),((Pe=ze&&ze.onVnodeMounted)||$e||Ve)&&g1(()=>{Pe&&W2(Pe,de,se),$e&&He.enter(Te),Ve&&jk(se,null,de,"mounted")},ve)},x=(se,ae,ce,de,ve)=>{if(ce&&y(se,ce),de)for(let ye=0;ye{for(let Pe=Te;Pe{const Se=ae.el=se.el;let{patchFlag:Te,dynamicChildren:Pe,dirs:Ie}=ae;Te|=se.patchFlag&16;const ze=se.props||od,De=ae.props||od;let He;ce&&Qk(ce,!1),(He=De.onVnodeBeforeUpdate)&&W2(He,ce,ae,se),Ie&&jk(ae,se,ce,"beforeUpdate"),ce&&Qk(ce,!0);const Ve=ve&&ae.type!=="foreignObject";if(Pe?T(se.dynamicChildren,Pe,Se,ce,de,Ve,ye):_e||$(se,ae,Se,null,ce,de,Ve,ye,!1),Te>0){if(Te&16)E(Se,ae,ze,De,ce,de,ve);else if(Te&2&&ze.class!==De.class&&d(Se,"class",null,De.class,ve),Te&4&&d(Se,"style",ze.style,De.style,ve),Te&8){const $e=ae.dynamicProps;for(let Oe=0;Oe<$e.length;Oe++){const ke=$e[Oe],Le=ze[ke],We=De[ke];(We!==Le||ke==="value")&&d(Se,ke,Le,We,ve,se.children,ce,de,oe)}}Te&1&&se.children!==ae.children&&i(Se,ae.children)}else!_e&&Pe==null&&E(Se,ae,ze,De,ce,de,ve);((He=De.onVnodeUpdated)||Ie)&&g1(()=>{He&&W2(He,ce,ae,se),Ie&&jk(ae,se,ce,"updated")},de)},T=(se,ae,ce,de,ve,ye,_e)=>{for(let Se=0;Se{if(ce!==de){if(ce!==od)for(const Se in ce)!lH(Se)&&!(Se in de)&&d(se,Se,ce[Se],null,_e,ae.children,ve,ye,oe);for(const Se in de){if(lH(Se))continue;const Te=de[Se],Pe=ce[Se];Te!==Pe&&Se!=="value"&&d(se,Se,Pe,Te,_e,ae.children,ve,ye,oe)}"value"in de&&d(se,"value",ce.value,de.value)}},C=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{const Pe=ae.el=se?se.el:n(""),Ie=ae.anchor=se?se.anchor:n("");let{patchFlag:ze,dynamicChildren:De,slotScopeIds:He}=ae;He&&(Se=Se?Se.concat(He):He),se==null?(f(Pe,ce,de),f(Ie,ce,de),R(ae.children,ce,Ie,ve,ye,_e,Se,Te)):ze>0&&ze&64&&De&&se.dynamicChildren?(T(se.dynamicChildren,De,ce,ve,ye,_e,Se),(ae.key!=null||ve&&ae===ve.subTree)&&Qle(se,ae,!0)):$(se,ae,ce,Ie,ve,ye,_e,Se,Te)},L=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{ae.slotScopeIds=Se,se==null?ae.shapeFlag&512?ve.ctx.activate(ae,ce,de,_e,Te):D(ae,ce,de,ve,ye,_e,Te):k(se,ae,Te)},D=(se,ae,ce,de,ve,ye,_e)=>{const Se=se.component=KSe(se,de,ve);if(jZ(se)&&(Se.ctx.renderer=ee),JSe(Se),Se.asyncDep){if(ve&&ve.registerDep(Se,I),!se.el){const Te=Se.subTree=Zt(k0);h(null,Te,ae,ce)}return}I(Se,se,ae,ce,ve,ye,_e)},k=(se,ae,ce)=>{const de=ae.component=se.component;if(sSe(se,ae,ce))if(de.asyncDep&&!de.asyncResolved){z(de,ae,ce);return}else de.next=ae,tSe(de.update),de.update();else ae.el=se.el,de.vnode=ae},I=(se,ae,ce,de,ve,ye,_e)=>{const Se=()=>{if(se.isMounted){let{next:Ie,bu:ze,u:De,parent:He,vnode:Ve}=se,$e=Ie,Oe;Qk(se,!1),Ie?(Ie.el=Ve.el,z(se,Ie,_e)):Ie=Ve,ze&&cH(ze),(Oe=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&W2(Oe,He,Ie,Ve),Qk(se,!0);const ke=Joe(se),Le=se.subTree;se.subTree=ke,a(Le,ke,O(Le.el),q(Le),se,ve,ye),Ie.el=ke.el,$e===null&&Ple(se,ke.el),De&&g1(De,ve),(Oe=Ie.props&&Ie.props.onVnodeUpdated)&&g1(()=>W2(Oe,He,Ie,Ve),ve)}else{let Ie;const{el:ze,props:De}=ae,{bm:He,m:Ve,parent:$e}=se,Oe=tI(ae);if(Qk(se,!1),He&&cH(He),!Oe&&(Ie=De&&De.onVnodeBeforeMount)&&W2(Ie,$e,ae),Qk(se,!0),ze&&he){const ke=()=>{se.subTree=Joe(se),he(ze,se.subTree,se,ve,null)};Oe?ae.type.__asyncLoader().then(()=>!se.isUnmounted&&ke()):ke()}else{const ke=se.subTree=Joe(se);a(null,ke,ce,de,se,ve,ye),ae.el=ke.el}if(Ve&&g1(Ve,ve),!Oe&&(Ie=De&&De.onVnodeMounted)){const ke=ae;g1(()=>W2(Ie,$e,ke),ve)}(ae.shapeFlag&256||$e&&tI($e.vnode)&&$e.vnode.shapeFlag&256)&&se.a&&g1(se.a,ve),se.isMounted=!0,ae=ce=de=null}},Te=se.effect=new _le(Se,()=>Ale(Pe),se.scope),Pe=se.update=()=>Te.run();Pe.id=se.uid,Qk(se,!0),Pe()},z=(se,ae,ce)=>{ae.component=se;const de=se.vnode.props;se.vnode=ae,se.next=null,zSe(se,ae.props,de,ce),$Se(se,ae.children,ce),SM(),Ode(),kM()},$=(se,ae,ce,de,ve,ye,_e,Se,Te=!1)=>{const Pe=se&&se.children,Ie=se?se.shapeFlag:0,ze=ae.children,{patchFlag:De,shapeFlag:He}=ae;if(De>0){if(De&128){j(Pe,ze,ce,de,ve,ye,_e,Se,Te);return}else if(De&256){Q(Pe,ze,ce,de,ve,ye,_e,Se,Te);return}}He&8?(Ie&16&&oe(Pe,ve,ye),ze!==Pe&&i(ce,ze)):Ie&16?He&16?j(Pe,ze,ce,de,ve,ye,_e,Se,Te):oe(Pe,ve,ye,!0):(Ie&8&&i(ce,""),He&16&&R(ze,ce,de,ve,ye,_e,Se,Te))},Q=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{se=se||HA,ae=ae||HA;const Pe=se.length,Ie=ae.length,ze=Math.min(Pe,Ie);let De;for(De=0;DeIe?oe(se,ve,ye,!0,!1,ze):R(ae,ce,de,ve,ye,_e,Se,Te,ze)},j=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{let Pe=0;const Ie=ae.length;let ze=se.length-1,De=Ie-1;for(;Pe<=ze&&Pe<=De;){const He=se[Pe],Ve=ae[Pe]=Te?V4(ae[Pe]):hx(ae[Pe]);if(t_(He,Ve))a(He,Ve,ce,null,ve,ye,_e,Se,Te);else break;Pe++}for(;Pe<=ze&&Pe<=De;){const He=se[ze],Ve=ae[De]=Te?V4(ae[De]):hx(ae[De]);if(t_(He,Ve))a(He,Ve,ce,null,ve,ye,_e,Se,Te);else break;ze--,De--}if(Pe>ze){if(Pe<=De){const He=De+1,Ve=HeDe)for(;Pe<=ze;)X(se[Pe],ve,ye,!0),Pe++;else{const He=Pe,Ve=Pe,$e=new Map;for(Pe=Ve;Pe<=De;Pe++){const tt=ae[Pe]=Te?V4(ae[Pe]):hx(ae[Pe]);tt.key!=null&&$e.set(tt.key,Pe)}let Oe,ke=0;const Le=De-Ve+1;let We=!1,Ue=0;const Ze=new Array(Le);for(Pe=0;Pe=Le){X(tt,ve,ye,!0);continue}let Ee;if(tt.key!=null)Ee=$e.get(tt.key);else for(Oe=Ve;Oe<=De;Oe++)if(Ze[Oe-Ve]===0&&t_(tt,ae[Oe])){Ee=Oe;break}Ee===void 0?X(tt,ve,ye,!0):(Ze[Ee-Ve]=Pe+1,Ee>=Ue?Ue=Ee:We=!0,a(tt,ae[Ee],ce,null,ve,ye,_e,Se,Te),ke++)}const Xe=We?jSe(Ze):HA;for(Oe=Xe.length-1,Pe=Le-1;Pe>=0;Pe--){const tt=Ve+Pe,Ee=ae[tt],Ne=tt+1{const{el:ye,type:_e,transition:Se,children:Te,shapeFlag:Pe}=se;if(Pe&6){U(se.component.subTree,ae,ce,de);return}if(Pe&128){se.suspense.move(ae,ce,de);return}if(Pe&64){_e.move(se,ae,ce,ee);return}if(_e===ya){f(ye,ae,ce);for(let ze=0;zeSe.enter(ye),ve);else{const{leave:ze,delayLeave:De,afterLeave:He}=Se,Ve=()=>f(ye,ae,ce),$e=()=>{ze(ye,()=>{Ve(),He&&He()})};De?De(ye,Ve,$e):$e()}else f(ye,ae,ce)},X=(se,ae,ce,de=!1,ve=!1)=>{const{type:ye,props:_e,ref:Se,children:Te,dynamicChildren:Pe,shapeFlag:Ie,patchFlag:ze,dirs:De}=se;if(Se!=null&&kae(Se,null,ce,se,!0),Ie&256){ae.ctx.deactivate(se);return}const He=Ie&1&&De,Ve=!tI(se);let $e;if(Ve&&($e=_e&&_e.onVnodeBeforeUnmount)&&W2($e,ae,se),Ie&6)K(se.component,ce,de);else{if(Ie&128){se.suspense.unmount(ce,de);return}He&&jk(se,null,ae,"beforeUnmount"),Ie&64?se.type.remove(se,ae,ce,ve,ee,de):Pe&&(ye!==ya||ze>0&&ze&64)?oe(Pe,ae,ce,!1,!0):(ye===ya&&ze&384||!ve&&Ie&16)&&oe(Te,ae,ce),de&&te(se)}(Ve&&($e=_e&&_e.onVnodeUnmounted)||He)&&g1(()=>{$e&&W2($e,ae,se),He&&jk(se,null,ae,"unmounted")},ce)},te=se=>{const{type:ae,el:ce,anchor:de,transition:ve}=se;if(ae===ya){W(ce,de);return}if(ae===nie){_(se);return}const ye=()=>{P(ce),ve&&!ve.persisted&&ve.afterLeave&&ve.afterLeave()};if(se.shapeFlag&1&&ve&&!ve.persisted){const{leave:_e,delayLeave:Se}=ve,Te=()=>_e(ce,ye);Se?Se(se.el,ye,Te):Te()}else ye()},W=(se,ae)=>{let ce;for(;se!==ae;)ce=w(se),P(se),se=ce;P(ae)},K=(se,ae,ce)=>{const{bum:de,scope:ve,update:ye,subTree:_e,um:Se}=se;de&&cH(de),ve.stop(),ye&&(ye.active=!1,X(_e,se,ae,ce)),Se&&g1(Se,ae),g1(()=>{se.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&se.asyncDep&&!se.asyncResolved&&se.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},oe=(se,ae,ce,de=!1,ve=!1,ye=0)=>{for(let _e=ye;_ese.shapeFlag&6?q(se.component.subTree):se.shapeFlag&128?se.suspense.next():w(se.anchor||se.el),Y=(se,ae,ce)=>{se==null?ae._vnode&&X(ae._vnode,null,null,!0):a(ae._vnode||null,se,ae,null,null,null,ce),Ode(),P1e(),ae._vnode=se},ee={p:a,um:X,m:U,r:te,mt:D,mc:R,pc:$,pbc:T,n:q,o:t};let me,he;return e&&([me,he]=e(ee)),{render:Y,hydrate:me,createApp:ISe(Y,me)}}function Qk({effect:t,update:e},o){t.allowRecurse=e.allowRecurse=o}function Qle(t,e,o=!1){const f=t.children,P=e.children;if(bs(f)&&bs(P))for(let d=0;d>1,t[o[n]]0&&(e[f]=o[d-1]),o[d]=f)}}for(d=o.length,l=o[d-1];d-- >0;)o[d]=l,l=e[l];return o}const QSe=t=>t.__isTeleport,rI=t=>t&&(t.disabled||t.disabled===""),zde=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Tae=(t,e)=>{const o=t&&t.to;return hh(o)?e?e(o):null:o},HSe={__isTeleport:!0,process(t,e,o,f,P,d,l,n,c,b){const{mc:i,pc:O,pbc:w,o:{insert:y,querySelector:p,createText:a,createComment:u}}=b,h=rI(e.props);let{shapeFlag:m,children:v,dynamicChildren:_}=e;if(t==null){const S=e.el=a(""),A=e.anchor=a("");y(S,o,f),y(A,o,f);const x=e.target=Tae(e.props,p),R=e.targetAnchor=a("");x&&(y(R,x),l=l||zde(x));const M=(T,E)=>{m&16&&i(v,T,E,P,d,l,n,c)};h?M(o,A):x&&M(x,R)}else{e.el=t.el;const S=e.anchor=t.anchor,A=e.target=t.target,x=e.targetAnchor=t.targetAnchor,R=rI(t.props),M=R?o:A,T=R?S:x;if(l=l||zde(A),_?(w(t.dynamicChildren,_,M,P,d,l,n),Qle(t,e,!0)):c||O(t,e,M,T,P,d,l,n,!1),h)R||OQ(e,o,S,b,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const E=e.target=Tae(e.props,p);E&&OQ(e,E,null,b,0)}else R&&OQ(e,A,x,b,1)}X1e(e)},remove(t,e,o,f,{um:P,o:{remove:d}},l){const{shapeFlag:n,children:c,anchor:b,targetAnchor:i,target:O,props:w}=t;if(O&&d(i),(l||!rI(w))&&(d(b),n&16))for(let y=0;y0?Yy||HA:null,G1e(),oM>0&&Yy&&Yy.push(t),t}function Da(t,e,o,f,P,d){return K1e(pa(t,e,o,f,P,d,!0))}function la(t,e,o,f,P){return K1e(Zt(t,e,o,f,P,!0))}function iM(t){return t?t.__v_isVNode===!0:!1}function t_(t,e){return t.type===e.type&&t.key===e.key}const HZ="__vInternal",J1e=({key:t})=>t??null,uH=({ref:t,ref_key:e,ref_for:o})=>(typeof t=="number"&&(t=""+t),t!=null?hh(t)||Dc(t)||ll(t)?{i:cm,r:t,k:e,f:!!o}:t:null);function pa(t,e=null,o=null,f=0,P=null,d=t===ya?0:1,l=!1,n=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&J1e(e),ref:e&&uH(e),scopeId:UZ,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:f,dynamicProps:P,dynamicChildren:null,appContext:null,ctx:cm};return n?(Hle(c,o),d&128&&t.normalize(c)):o&&(c.shapeFlag|=hh(o)?8:16),oM>0&&!l&&Yy&&(c.patchFlag>0||d&6)&&c.patchFlag!==32&&Yy.push(c),c}const Zt=WSe;function WSe(t,e=null,o=null,f=0,P=null,d=!1){if((!t||t===$1e)&&(t=k0),iM(t)){const n=TO(t,e,!0);return o&&Hle(n,o),oM>0&&!d&&Yy&&(n.shapeFlag&6?Yy[Yy.indexOf(t)]=n:Yy.push(n)),n.patchFlag|=-2,n}if(o5e(t)&&(t=t.__vccOpts),e){e=YSe(e);let{class:n,style:c}=e;n&&!hh(n)&&(e.class=zv(n)),zf(c)&&(w1e(c)&&!bs(c)&&(c=Nh({},c)),e.style=lD(c))}const l=hh(t)?1:lSe(t)?128:QSe(t)?64:zf(t)?4:ll(t)?2:0;return pa(t,e,o,f,P,l,d,!0)}function YSe(t){return t?w1e(t)||HZ in t?Nh({},t):t:null}function TO(t,e,o=!1){const{props:f,ref:P,patchFlag:d,children:l}=t,n=e?Di(f||{},e):f;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:n,key:n&&J1e(n),ref:e&&e.ref?o&&P?bs(P)?P.concat(uH(e)):[P,uH(e)]:uH(e):P,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ya?d===-1?16:d|16:d,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&TO(t.ssContent),ssFallback:t.ssFallback&&TO(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Cs(t=" ",e=0){return Zt(dD,null,t,e)}function Wa(t="",e=!1){return e?(Bo(),la(k0,null,t)):Zt(k0,null,t)}function hx(t){return t==null||typeof t=="boolean"?Zt(k0):bs(t)?Zt(ya,null,t.slice()):typeof t=="object"?V4(t):Zt(dD,null,String(t))}function V4(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:TO(t)}function Hle(t,e){let o=0;const{shapeFlag:f}=t;if(e==null)e=null;else if(bs(e))o=16;else if(typeof e=="object")if(f&65){const P=e.default;P&&(P._c&&(P._d=!1),Hle(t,P()),P._c&&(P._d=!0));return}else{o=32;const P=e._;!P&&!(HZ in e)?e._ctx=cm:P===3&&cm&&(cm.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ll(e)?(e={default:e,_ctx:cm},o=32):(e=String(e),f&64?(o=16,e=[Cs(e)]):o=8);t.children=e,t.shapeFlag|=o}function Di(...t){const e={};for(let o=0;oOp||cm;let qle,AA,Nde="__VUE_INSTANCE_SETTERS__";(AA=gae()[Nde])||(AA=gae()[Nde]=[]),AA.push(t=>Op=t),qle=t=>{AA.length>1?AA.forEach(e=>e(t)):AA[0](t)};const aM=t=>{qle(t),t.scope.on()},uT=()=>{Op&&Op.scope.off(),qle(null)};function eve(t){return t.vnode.shapeFlag&4}let TI=!1;function JSe(t,e=!1){TI=e;const{props:o,children:f}=t.vnode,P=eve(t);BSe(t,o,P,e),NSe(t,f);const d=P?e5e(t,e):void 0;return TI=!1,d}function e5e(t,e){const o=t.type;t.accessCache=Object.create(null),t.proxy=uD(new Proxy(t.ctx,CSe));const{setup:f}=o;if(f){const P=t.setupContext=f.length>1?n5e(t):null;aM(t),SM();const d=K4(f,t,0,[t.props,P]);if(kM(),uT(),r1e(d)){if(d.then(uT,uT),e)return d.then(l=>{Cae(t,l,e)}).catch(l=>{fD(l,t,0)});t.asyncDep=d}else Cae(t,d,e)}else tve(t,e)}function Cae(t,e,o){ll(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:zf(e)&&(t.setupState=T1e(e)),tve(t,o)}let $de;function tve(t,e,o){const f=t.type;if(!t.render){if(!e&&$de&&!f.render){const P=f.template||Ule(t).template;if(P){const{isCustomElement:d,compilerOptions:l}=t.appContext.config,{delimiters:n,compilerOptions:c}=f,b=Nh(Nh({isCustomElement:d,delimiters:n},l),c);f.render=$de(P,b)}}t.render=f.render||vx}aM(t),SM(),ASe(t),kM(),uT()}function t5e(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,o){return _1(t,"get","$attrs"),e[o]}}))}function n5e(t){const e=o=>{t.exposed=o||{}};return{get attrs(){return t5e(t)},slots:t.slots,emit:t.emit,expose:e}}function ZZ(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(T1e(uD(t.exposed)),{get(e,o){if(o in e)return e[o];if(o in nI)return nI[o](t)},has(e,o){return o in e||o in nI}}))}function r5e(t,e=!0){return ll(t)?t.displayName||t.name:t.name||e&&t.__name}function o5e(t){return ll(t)&&"__vccOpts"in t}const jn=(t,e)=>K4e(t,e,TI);function w1(t,e,o){const f=arguments.length;return f===2?zf(e)&&!bs(e)?iM(e)?Zt(t,null,[e]):Zt(t,e):Zt(t,null,e):(f>3?o=Array.prototype.slice.call(arguments,2):f===3&&iM(o)&&(o=[o]),Zt(t,e,o))}const i5e=Symbol.for("v-scx"),a5e=()=>vl(i5e),s5e="3.3.4",l5e="http://www.w3.org/2000/svg",eT=typeof document<"u"?document:null,Vde=eT&&eT.createElement("template"),c5e={insert:(t,e,o)=>{e.insertBefore(t,o||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,o,f)=>{const P=e?eT.createElementNS(l5e,t):eT.createElement(t,o?{is:o}:void 0);return t==="select"&&f&&f.multiple!=null&&P.setAttribute("multiple",f.multiple),P},createText:t=>eT.createTextNode(t),createComment:t=>eT.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>eT.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,o,f,P,d){const l=o?o.previousSibling:e.lastChild;if(P&&(P===d||P.nextSibling))for(;e.insertBefore(P.cloneNode(!0),o),!(P===d||!(P=P.nextSibling)););else{Vde.innerHTML=f?`${t}`:t;const n=Vde.content;if(f){const c=n.firstChild;for(;c.firstChild;)n.appendChild(c.firstChild);n.removeChild(c)}e.insertBefore(n,o)}return[l?l.nextSibling:e.firstChild,o?o.previousSibling:e.lastChild]}};function u5e(t,e,o){const f=t._vtc;f&&(e=(e?[e,...f]:[...f]).join(" ")),e==null?t.removeAttribute("class"):o?t.setAttribute("class",e):t.className=e}function f5e(t,e,o){const f=t.style,P=hh(o);if(o&&!P){if(e&&!hh(e))for(const d in e)o[d]==null&&Aae(f,d,"");for(const d in o)Aae(f,d,o[d])}else{const d=f.display;P?e!==o&&(f.cssText=o):e&&t.removeAttribute("style"),"_vod"in t&&(f.display=d)}}const Ude=/\s*!important$/;function Aae(t,e,o){if(bs(o))o.forEach(f=>Aae(t,e,f));else if(o==null&&(o=""),e.startsWith("--"))t.setProperty(e,o);else{const f=d5e(t,e);Ude.test(o)?t.setProperty(xT(f),o.replace(Ude,""),"important"):t[f]=o}}const jde=["Webkit","Moz","ms"],rie={};function d5e(t,e){const o=rie[e];if(o)return o;let f=rb(e);if(f!=="filter"&&f in t)return rie[e]=f;f=v_(f);for(let P=0;Poie||(y5e.then(()=>oie=0),oie=Date.now());function x5e(t,e){const o=f=>{if(!f._vts)f._vts=Date.now();else if(f._vts<=o.attached)return;eb(_5e(f,o.value),e,5,[f])};return o.value=t,o.attached=b5e(),o}function _5e(t,e){if(bs(e)){const o=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{o.call(t),t._stopped=!0},e.map(f=>P=>!P._stopped&&f&&f(P))}else return e}const Zde=/^on[a-z]/,w5e=(t,e,o,f,P=!1,d,l,n,c)=>{e==="class"?u5e(t,f,P):e==="style"?f5e(t,o,f):zZ(e)?gle(e)||g5e(t,e,o,f,l):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):O5e(t,e,f,P))?p5e(t,e,f,d,l,n,c):(e==="true-value"?t._trueValue=f:e==="false-value"&&(t._falseValue=f),h5e(t,e,f,P))};function O5e(t,e,o,f){return f?!!(e==="innerHTML"||e==="textContent"||e in t&&Zde.test(e)&&ll(o)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Zde.test(e)&&hh(o)?!1:e in t}const B4="transition",EL="animation",h_=(t,{slots:e})=>w1(bSe,rve(t),e);h_.displayName="Transition";const nve={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},S5e=h_.props=Nh({},B1e,nve),Hk=(t,e=[])=>{bs(t)?t.forEach(o=>o(...e)):t&&t(...e)},qde=t=>t?bs(t)?t.some(e=>e.length>1):t.length>1:!1;function rve(t){const e={};for(const C in t)C in nve||(e[C]=t[C]);if(t.css===!1)return e;const{name:o="v",type:f,duration:P,enterFromClass:d=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:n=`${o}-enter-to`,appearFromClass:c=d,appearActiveClass:b=l,appearToClass:i=n,leaveFromClass:O=`${o}-leave-from`,leaveActiveClass:w=`${o}-leave-active`,leaveToClass:y=`${o}-leave-to`}=t,p=k5e(P),a=p&&p[0],u=p&&p[1],{onBeforeEnter:h,onEnter:m,onEnterCancelled:v,onLeave:_,onLeaveCancelled:S,onBeforeAppear:A=h,onAppear:x=m,onAppearCancelled:R=v}=e,M=(C,L,D)=>{N4(C,L?i:n),N4(C,L?b:l),D&&D()},T=(C,L)=>{C._isLeaving=!1,N4(C,O),N4(C,y),N4(C,w),L&&L()},E=C=>(L,D)=>{const k=C?x:m,I=()=>M(L,C,D);Hk(k,[L,I]),Wde(()=>{N4(L,C?c:d),bO(L,C?i:n),qde(k)||Yde(L,f,a,I)})};return Nh(e,{onBeforeEnter(C){Hk(h,[C]),bO(C,d),bO(C,l)},onBeforeAppear(C){Hk(A,[C]),bO(C,c),bO(C,b)},onEnter:E(!1),onAppear:E(!0),onLeave(C,L){C._isLeaving=!0;const D=()=>T(C,L);bO(C,O),ive(),bO(C,w),Wde(()=>{C._isLeaving&&(N4(C,O),bO(C,y),qde(_)||Yde(C,f,u,D))}),Hk(_,[C,D])},onEnterCancelled(C){M(C,!1),Hk(v,[C])},onAppearCancelled(C){M(C,!0),Hk(R,[C])},onLeaveCancelled(C){T(C),Hk(S,[C])}})}function k5e(t){if(t==null)return null;if(zf(t))return[iie(t.enter),iie(t.leave)];{const e=iie(t);return[e,e]}}function iie(t){return a1e(t)}function bO(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.add(o)),(t._vtc||(t._vtc=new Set)).add(e)}function N4(t,e){e.split(/\s+/).forEach(f=>f&&t.classList.remove(f));const{_vtc:o}=t;o&&(o.delete(e),o.size||(t._vtc=void 0))}function Wde(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let T5e=0;function Yde(t,e,o,f){const P=t._endId=++T5e,d=()=>{P===t._endId&&f()};if(o)return setTimeout(d,o);const{type:l,timeout:n,propCount:c}=ove(t,e);if(!l)return f();const b=l+"end";let i=0;const O=()=>{t.removeEventListener(b,w),d()},w=y=>{y.target===t&&++i>=c&&O()};setTimeout(()=>{i(o[p]||"").split(", "),P=f(`${B4}Delay`),d=f(`${B4}Duration`),l=Xde(P,d),n=f(`${EL}Delay`),c=f(`${EL}Duration`),b=Xde(n,c);let i=null,O=0,w=0;e===B4?l>0&&(i=B4,O=l,w=d.length):e===EL?b>0&&(i=EL,O=b,w=c.length):(O=Math.max(l,b),i=O>0?l>b?B4:EL:null,w=i?i===B4?d.length:c.length:0);const y=i===B4&&/\b(transform|all)(,|$)/.test(f(`${B4}Property`).toString());return{type:i,timeout:O,propCount:w,hasTransform:y}}function Xde(t,e){for(;t.lengthGde(o)+Gde(t[f])))}function Gde(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function ive(){return document.body.offsetHeight}const ave=new WeakMap,sve=new WeakMap,lve={name:"TransitionGroup",props:Nh({},S5e,{tag:String,moveClass:String}),setup(t,{slots:e}){const o=Zle(),f=D1e();let P,d;return Fle(()=>{if(!P.length)return;const l=t.moveClass||`${t.name||"v"}-move`;if(!P5e(P[0].el,o.vnode.el,l))return;P.forEach(A5e),P.forEach(M5e);const n=P.filter(E5e);ive(),n.forEach(c=>{const b=c.el,i=b.style;bO(b,l),i.transform=i.webkitTransform=i.transitionDuration="";const O=b._moveCb=w=>{w&&w.target!==b||(!w||/transform$/.test(w.propertyName))&&(b.removeEventListener("transitionend",O),b._moveCb=null,N4(b,l))};b.addEventListener("transitionend",O)})}),()=>{const l=As(t),n=rve(l);let c=l.tag||ya;P=d,d=e.default?Ile(e.default()):[];for(let b=0;bdelete t.mode;lve.props;const Wle=lve;function A5e(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function M5e(t){sve.set(t,t.el.getBoundingClientRect())}function E5e(t){const e=ave.get(t),o=sve.get(t),f=e.left-o.left,P=e.top-o.top;if(f||P){const d=t.el.style;return d.transform=d.webkitTransform=`translate(${f}px,${P}px)`,d.transitionDuration="0s",t}}function P5e(t,e,o){const f=t.cloneNode();t._vtc&&t._vtc.forEach(l=>{l.split(/\s+/).forEach(n=>n&&f.classList.remove(n))}),o.split(/\s+/).forEach(l=>l&&f.classList.add(l)),f.style.display="none";const P=e.nodeType===1?e:e.parentNode;P.appendChild(f);const{hasTransform:d}=ove(f);return P.removeChild(f),d}const Kde=t=>{const e=t.props["onUpdate:modelValue"]||!1;return bs(e)?o=>cH(e,o):e};function R5e(t){t.target.composing=!0}function Jde(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const L5e={created(t,{modifiers:{lazy:e,trim:o,number:f}},P){t._assign=Kde(P);const d=f||P.props&&P.props.type==="number";DA(t,e?"change":"input",l=>{if(l.target.composing)return;let n=t.value;o&&(n=n.trim()),d&&(n=mae(n)),t._assign(n)}),o&&DA(t,"change",()=>{t.value=t.value.trim()}),e||(DA(t,"compositionstart",R5e),DA(t,"compositionend",Jde),DA(t,"change",Jde))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:o,trim:f,number:P}},d){if(t._assign=Kde(d),t.composing||document.activeElement===t&&t.type!=="range"&&(o||f&&t.value.trim()===e||(P||t.type==="number")&&mae(t.value)===e))return;const l=e??"";t.value!==l&&(t.value=l)}},I5e=["ctrl","shift","alt","meta"],D5e={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>I5e.some(o=>t[`${o}Key`]&&!e.includes(o))},DH=(t,e)=>(o,...f)=>{for(let P=0;Po=>{if(!("key"in o))return;const f=xT(o.key);if(e.some(P=>P===f||B5e[P]===f))return t(o)},pS={beforeMount(t,{value:e},{transition:o}){t._vod=t.style.display==="none"?"":t.style.display,o&&e?o.beforeEnter(t):PL(t,e)},mounted(t,{value:e},{transition:o}){o&&e&&o.enter(t)},updated(t,{value:e,oldValue:o},{transition:f}){!e!=!o&&(f?e?(f.beforeEnter(t),PL(t,!0),f.enter(t)):f.leave(t,()=>{PL(t,!1)}):PL(t,e))},beforeUnmount(t,{value:e}){PL(t,e)}};function PL(t,e){t.style.display=e?t._vod:"none"}const z5e=Nh({patchProp:w5e},c5e);let ehe;function F5e(){return ehe||(ehe=VSe(z5e))}const N5e=(...t)=>{const e=F5e().createApp(...t),{mount:o}=e;return e.mount=f=>{const P=$5e(f);if(!P)return;const d=e._component;!ll(d)&&!d.render&&!d.template&&(d.template=P.innerHTML),P.innerHTML="";const l=o(P,!1,P instanceof SVGElement);return P instanceof Element&&(P.removeAttribute("v-cloak"),P.setAttribute("data-v-app","")),l},e};function $5e(t){return hh(t)?document.querySelector(t):t}/*! +var UOe=Object.defineProperty;var jOe=(t,e,o)=>e in t?UOe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var _c=(t,e,o)=>(jOe(t,typeof e!="symbol"?e+"":e,o),o),QOe=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)};var Woe=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)};var gQ=(t,e,o)=>(QOe(t,e,"access private method"),o);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const P of document.querySelectorAll('link[rel="modulepreload"]'))f(P);new MutationObserver(P=>{for(const d of P)if(d.type==="childList")for(const l of d.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&f(l)}).observe(document,{childList:!0,subtree:!0});function o(P){const d={};return P.integrity&&(d.integrity=P.integrity),P.referrerPolicy&&(d.referrerPolicy=P.referrerPolicy),P.crossOrigin==="use-credentials"?d.credentials="include":P.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function f(P){if(P.ep)return;P.ep=!0;const d=o(P);fetch(P.href,d)}})();function B0e(t,e){return function(){return t.apply(e,arguments)}}const{toString:HOe}=Object.prototype,{getPrototypeOf:cle}=Object,RZ=(t=>e=>{const o=HOe.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),g_=t=>(t=t.toLowerCase(),e=>RZ(e)===t),LZ=t=>e=>typeof e===t,{isArray:SM}=Array,vI=LZ("undefined");function ZOe(t){return t!==null&&!vI(t)&&t.constructor!==null&&!vI(t.constructor)&&Jy(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const z0e=g_("ArrayBuffer");function qOe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&z0e(t.buffer),e}const WOe=LZ("string"),Jy=LZ("function"),F0e=LZ("number"),IZ=t=>t!==null&&typeof t=="object",YOe=t=>t===!0||t===!1,iH=t=>{if(RZ(t)!=="object")return!1;const e=cle(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},XOe=g_("Date"),GOe=g_("File"),KOe=g_("Blob"),JOe=g_("FileList"),e3e=t=>IZ(t)&&Jy(t.pipe),t3e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Jy(t.append)&&((e=RZ(t))==="formdata"||e==="object"&&Jy(t.toString)&&t.toString()==="[object FormData]"))},n3e=g_("URLSearchParams"),r3e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sD(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let f,P;if(typeof t!="object"&&(t=[t]),SM(t))for(f=0,P=t.length;f0;)if(P=o[f],e===P.toLowerCase())return P;return null}const $0e=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),V0e=t=>!vI(t)&&t!==$0e;function uae(){const{caseless:t}=V0e(this)&&this||{},e={},o=(f,P)=>{const d=t&&N0e(e,P)||P;iH(e[d])&&iH(f)?e[d]=uae(e[d],f):iH(f)?e[d]=uae({},f):SM(f)?e[d]=f.slice():e[d]=f};for(let f=0,P=arguments.length;f(sD(e,(P,d)=>{o&&Jy(P)?t[d]=B0e(P,o):t[d]=P},{allOwnKeys:f}),t),i3e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),a3e=(t,e,o,f)=>{t.prototype=Object.create(e.prototype,f),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},s3e=(t,e,o,f)=>{let P,d,l;const n={};if(e=e||{},t==null)return e;do{for(P=Object.getOwnPropertyNames(t),d=P.length;d-- >0;)l=P[d],(!f||f(l,t,e))&&!n[l]&&(e[l]=t[l],n[l]=!0);t=o!==!1&&cle(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},l3e=(t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;const f=t.indexOf(e,o);return f!==-1&&f===o},c3e=t=>{if(!t)return null;if(SM(t))return t;let e=t.length;if(!F0e(e))return null;const o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},u3e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&cle(Uint8Array)),f3e=(t,e)=>{const f=(t&&t[Symbol.iterator]).call(t);let P;for(;(P=f.next())&&!P.done;){const d=P.value;e.call(t,d[0],d[1])}},d3e=(t,e)=>{let o;const f=[];for(;(o=t.exec(e))!==null;)f.push(o);return f},h3e=g_("HTMLFormElement"),p3e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,f,P){return f.toUpperCase()+P}),ide=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),m3e=g_("RegExp"),U0e=(t,e)=>{const o=Object.getOwnPropertyDescriptors(t),f={};sD(o,(P,d)=>{let l;(l=e(P,d,t))!==!1&&(f[d]=l||P)}),Object.defineProperties(t,f)},g3e=t=>{U0e(t,(e,o)=>{if(Jy(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const f=t[o];if(Jy(f)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},v3e=(t,e)=>{const o={},f=P=>{P.forEach(d=>{o[d]=!0})};return SM(t)?f(t):f(String(t).split(e)),o},y3e=()=>{},b3e=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Yoe="abcdefghijklmnopqrstuvwxyz",ade="0123456789",j0e={DIGIT:ade,ALPHA:Yoe,ALPHA_DIGIT:Yoe+Yoe.toUpperCase()+ade},x3e=(t=16,e=j0e.ALPHA_DIGIT)=>{let o="";const{length:f}=e;for(;t--;)o+=e[Math.random()*f|0];return o};function _3e(t){return!!(t&&Jy(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const w3e=t=>{const e=new Array(10),o=(f,P)=>{if(IZ(f)){if(e.indexOf(f)>=0)return;if(!("toJSON"in f)){e[P]=f;const d=SM(f)?[]:{};return sD(f,(l,n)=>{const c=o(l,P+1);!vI(c)&&(d[n]=c)}),e[P]=void 0,d}}return f};return o(t,0)},O3e=g_("AsyncFunction"),S3e=t=>t&&(IZ(t)||Jy(t))&&Jy(t.then)&&Jy(t.catch),ui={isArray:SM,isArrayBuffer:z0e,isBuffer:ZOe,isFormData:t3e,isArrayBufferView:qOe,isString:WOe,isNumber:F0e,isBoolean:YOe,isObject:IZ,isPlainObject:iH,isUndefined:vI,isDate:XOe,isFile:GOe,isBlob:KOe,isRegExp:m3e,isFunction:Jy,isStream:e3e,isURLSearchParams:n3e,isTypedArray:u3e,isFileList:JOe,forEach:sD,merge:uae,extend:o3e,trim:r3e,stripBOM:i3e,inherits:a3e,toFlatObject:s3e,kindOf:RZ,kindOfTest:g_,endsWith:l3e,toArray:c3e,forEachEntry:f3e,matchAll:d3e,isHTMLForm:h3e,hasOwnProperty:ide,hasOwnProp:ide,reduceDescriptors:U0e,freezeMethods:g3e,toObjectSet:v3e,toCamelCase:p3e,noop:y3e,toFiniteNumber:b3e,findKey:N0e,global:$0e,isContextDefined:V0e,ALPHABET:j0e,generateString:x3e,isSpecCompliantForm:_3e,toJSONObject:w3e,isAsyncFn:O3e,isThenable:S3e};function Ic(t,e,o,f,P){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),f&&(this.request=f),P&&(this.response=P)}ui.inherits(Ic,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ui.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Q0e=Ic.prototype,H0e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{H0e[t]={value:t}});Object.defineProperties(Ic,H0e);Object.defineProperty(Q0e,"isAxiosError",{value:!0});Ic.from=(t,e,o,f,P,d)=>{const l=Object.create(Q0e);return ui.toFlatObject(t,l,function(c){return c!==Error.prototype},n=>n!=="isAxiosError"),Ic.call(l,t.message,e,o,f,P),l.cause=t,l.name=t.name,d&&Object.assign(l,d),l};const k3e=null;function fae(t){return ui.isPlainObject(t)||ui.isArray(t)}function Z0e(t){return ui.endsWith(t,"[]")?t.slice(0,-2):t}function sde(t,e,o){return t?t.concat(e).map(function(P,d){return P=Z0e(P),!o&&d?"["+P+"]":P}).join(o?".":""):e}function T3e(t){return ui.isArray(t)&&!t.some(fae)}const C3e=ui.toFlatObject(ui,{},null,function(e){return/^is[A-Z]/.test(e)});function DZ(t,e,o){if(!ui.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,o=ui.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,u){return!ui.isUndefined(u[a])});const f=o.metaTokens,P=o.visitor||i,d=o.dots,l=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&ui.isSpecCompliantForm(e);if(!ui.isFunction(P))throw new TypeError("visitor must be a function");function b(p){if(p===null)return"";if(ui.isDate(p))return p.toISOString();if(!c&&ui.isBlob(p))throw new Ic("Blob is not supported. Use a Buffer instead.");return ui.isArrayBuffer(p)||ui.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function i(p,a,u){let h=p;if(p&&!u&&typeof p=="object"){if(ui.endsWith(a,"{}"))a=f?a:a.slice(0,-2),p=JSON.stringify(p);else if(ui.isArray(p)&&T3e(p)||(ui.isFileList(p)||ui.endsWith(a,"[]"))&&(h=ui.toArray(p)))return a=Z0e(a),h.forEach(function(v,_){!(ui.isUndefined(v)||v===null)&&e.append(l===!0?sde([a],_,d):l===null?a:a+"[]",b(v))}),!1}return fae(p)?!0:(e.append(sde(u,a,d),b(p)),!1)}const O=[],w=Object.assign(C3e,{defaultVisitor:i,convertValue:b,isVisitable:fae});function y(p,a){if(!ui.isUndefined(p)){if(O.indexOf(p)!==-1)throw Error("Circular reference detected in "+a.join("."));O.push(p),ui.forEach(p,function(h,m){(!(ui.isUndefined(h)||h===null)&&P.call(e,h,ui.isString(m)?m.trim():m,a,w))===!0&&y(h,a?a.concat(m):[m])}),O.pop()}}if(!ui.isObject(t))throw new TypeError("data must be an object");return y(t),e}function lde(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(f){return e[f]})}function ule(t,e){this._pairs=[],t&&DZ(t,this,e)}const q0e=ule.prototype;q0e.append=function(e,o){this._pairs.push([e,o])};q0e.toString=function(e){const o=e?function(f){return e.call(this,f,lde)}:lde;return this._pairs.map(function(P){return o(P[0])+"="+o(P[1])},"").join("&")};function A3e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W0e(t,e,o){if(!e)return t;const f=o&&o.encode||A3e,P=o&&o.serialize;let d;if(P?d=P(e,o):d=ui.isURLSearchParams(e)?e.toString():new ule(e,o).toString(f),d){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+d}return t}class M3e{constructor(){this.handlers=[]}use(e,o,f){return this.handlers.push({fulfilled:e,rejected:o,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ui.forEach(this.handlers,function(f){f!==null&&e(f)})}}const cde=M3e,Y0e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},E3e=typeof URLSearchParams<"u"?URLSearchParams:ule,P3e=typeof FormData<"u"?FormData:null,R3e=typeof Blob<"u"?Blob:null,L3e={isBrowser:!0,classes:{URLSearchParams:E3e,FormData:P3e,Blob:R3e},protocols:["http","https","file","blob","url","data"]},X0e=typeof window<"u"&&typeof document<"u",I3e=(t=>X0e&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),D3e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),B3e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:X0e,hasStandardBrowserEnv:I3e,hasStandardBrowserWebWorkerEnv:D3e},Symbol.toStringTag,{value:"Module"})),o_={...B3e,...L3e};function z3e(t,e){return DZ(t,new o_.classes.URLSearchParams,Object.assign({visitor:function(o,f,P,d){return o_.isNode&&ui.isBuffer(o)?(this.append(f,o.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},e))}function F3e(t){return ui.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function N3e(t){const e={},o=Object.keys(t);let f;const P=o.length;let d;for(f=0;f=o.length;return l=!l&&ui.isArray(P)?P.length:l,c?(ui.hasOwnProp(P,l)?P[l]=[P[l],f]:P[l]=f,!n):((!P[l]||!ui.isObject(P[l]))&&(P[l]=[]),e(o,f,P[l],d)&&ui.isArray(P[l])&&(P[l]=N3e(P[l])),!n)}if(ui.isFormData(t)&&ui.isFunction(t.entries)){const o={};return ui.forEachEntry(t,(f,P)=>{e(F3e(f),P,o,0)}),o}return null}function $3e(t,e,o){if(ui.isString(t))try{return(e||JSON.parse)(t),ui.trim(t)}catch(f){if(f.name!=="SyntaxError")throw f}return(o||JSON.stringify)(t)}const fle={transitional:Y0e,adapter:["xhr","http"],transformRequest:[function(e,o){const f=o.getContentType()||"",P=f.indexOf("application/json")>-1,d=ui.isObject(e);if(d&&ui.isHTMLForm(e)&&(e=new FormData(e)),ui.isFormData(e))return P&&P?JSON.stringify(G0e(e)):e;if(ui.isArrayBuffer(e)||ui.isBuffer(e)||ui.isStream(e)||ui.isFile(e)||ui.isBlob(e))return e;if(ui.isArrayBufferView(e))return e.buffer;if(ui.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(d){if(f.indexOf("application/x-www-form-urlencoded")>-1)return z3e(e,this.formSerializer).toString();if((n=ui.isFileList(e))||f.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return DZ(n?{"files[]":e}:e,c&&new c,this.formSerializer)}}return d||P?(o.setContentType("application/json",!1),$3e(e)):e}],transformResponse:[function(e){const o=this.transitional||fle.transitional,f=o&&o.forcedJSONParsing,P=this.responseType==="json";if(e&&ui.isString(e)&&(f&&!this.responseType||P)){const l=!(o&&o.silentJSONParsing)&&P;try{return JSON.parse(e)}catch(n){if(l)throw n.name==="SyntaxError"?Ic.from(n,Ic.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:o_.classes.FormData,Blob:o_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ui.forEach(["delete","get","head","post","put","patch"],t=>{fle.headers[t]={}});const dle=fle,V3e=ui.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),U3e=t=>{const e={};let o,f,P;return t&&t.split(` +`).forEach(function(l){P=l.indexOf(":"),o=l.substring(0,P).trim().toLowerCase(),f=l.substring(P+1).trim(),!(!o||e[o]&&V3e[o])&&(o==="set-cookie"?e[o]?e[o].push(f):e[o]=[f]:e[o]=e[o]?e[o]+", "+f:f)}),e},ude=Symbol("internals");function EL(t){return t&&String(t).trim().toLowerCase()}function aH(t){return t===!1||t==null?t:ui.isArray(t)?t.map(aH):String(t)}function j3e(t){const e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let f;for(;f=o.exec(t);)e[f[1]]=f[2];return e}const Q3e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xoe(t,e,o,f,P){if(ui.isFunction(f))return f.call(this,e,o);if(P&&(e=o),!!ui.isString(e)){if(ui.isString(f))return e.indexOf(f)!==-1;if(ui.isRegExp(f))return f.test(e)}}function H3e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,f)=>o.toUpperCase()+f)}function Z3e(t,e){const o=ui.toCamelCase(" "+e);["get","set","has"].forEach(f=>{Object.defineProperty(t,f+o,{value:function(P,d,l){return this[f].call(this,e,P,d,l)},configurable:!0})})}class BZ{constructor(e){e&&this.set(e)}set(e,o,f){const P=this;function d(n,c,b){const i=EL(c);if(!i)throw new Error("header name must be a non-empty string");const O=ui.findKey(P,i);(!O||P[O]===void 0||b===!0||b===void 0&&P[O]!==!1)&&(P[O||c]=aH(n))}const l=(n,c)=>ui.forEach(n,(b,i)=>d(b,i,c));return ui.isPlainObject(e)||e instanceof this.constructor?l(e,o):ui.isString(e)&&(e=e.trim())&&!Q3e(e)?l(U3e(e),o):e!=null&&d(o,e,f),this}get(e,o){if(e=EL(e),e){const f=ui.findKey(this,e);if(f){const P=this[f];if(!o)return P;if(o===!0)return j3e(P);if(ui.isFunction(o))return o.call(this,P,f);if(ui.isRegExp(o))return o.exec(P);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=EL(e),e){const f=ui.findKey(this,e);return!!(f&&this[f]!==void 0&&(!o||Xoe(this,this[f],f,o)))}return!1}delete(e,o){const f=this;let P=!1;function d(l){if(l=EL(l),l){const n=ui.findKey(f,l);n&&(!o||Xoe(f,f[n],n,o))&&(delete f[n],P=!0)}}return ui.isArray(e)?e.forEach(d):d(e),P}clear(e){const o=Object.keys(this);let f=o.length,P=!1;for(;f--;){const d=o[f];(!e||Xoe(this,this[d],d,e,!0))&&(delete this[d],P=!0)}return P}normalize(e){const o=this,f={};return ui.forEach(this,(P,d)=>{const l=ui.findKey(f,d);if(l){o[l]=aH(P),delete o[d];return}const n=e?H3e(d):String(d).trim();n!==d&&delete o[d],o[n]=aH(P),f[n]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const o=Object.create(null);return ui.forEach(this,(f,P)=>{f!=null&&f!==!1&&(o[P]=e&&ui.isArray(f)?f.join(", "):f)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const f=new this(e);return o.forEach(P=>f.set(P)),f}static accessor(e){const f=(this[ude]=this[ude]={accessors:{}}).accessors,P=this.prototype;function d(l){const n=EL(l);f[n]||(Z3e(P,l),f[n]=!0)}return ui.isArray(e)?e.forEach(d):d(e),this}}BZ.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ui.reduceDescriptors(BZ.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(f){this[o]=f}}});ui.freezeMethods(BZ);const wO=BZ;function Goe(t,e){const o=this||dle,f=e||o,P=wO.from(f.headers);let d=f.data;return ui.forEach(t,function(n){d=n.call(o,d,P.normalize(),e?e.status:void 0)}),P.normalize(),d}function K0e(t){return!!(t&&t.__CANCEL__)}function lD(t,e,o){Ic.call(this,t??"canceled",Ic.ERR_CANCELED,e,o),this.name="CanceledError"}ui.inherits(lD,Ic,{__CANCEL__:!0});function q3e(t,e,o){const f=o.config.validateStatus;!o.status||!f||f(o.status)?t(o):e(new Ic("Request failed with status code "+o.status,[Ic.ERR_BAD_REQUEST,Ic.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const W3e=o_.hasStandardBrowserEnv?{write(t,e,o,f,P,d){const l=[t+"="+encodeURIComponent(e)];ui.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),ui.isString(f)&&l.push("path="+f),ui.isString(P)&&l.push("domain="+P),d===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Y3e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function X3e(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function J0e(t,e){return t&&!Y3e(e)?X3e(t,e):e}const G3e=o_.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let f;function P(d){let l=d;return e&&(o.setAttribute("href",l),l=o.href),o.setAttribute("href",l),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return f=P(window.location.href),function(l){const n=ui.isString(l)?P(l):l;return n.protocol===f.protocol&&n.host===f.host}}():function(){return function(){return!0}}();function K3e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function J3e(t,e){t=t||10;const o=new Array(t),f=new Array(t);let P=0,d=0,l;return e=e!==void 0?e:1e3,function(c){const b=Date.now(),i=f[d];l||(l=b),o[P]=c,f[P]=b;let O=d,w=0;for(;O!==P;)w+=o[O++],O=O%t;if(P=(P+1)%t,P===d&&(d=(d+1)%t),b-l{const d=P.loaded,l=P.lengthComputable?P.total:void 0,n=d-o,c=f(n),b=d<=l;o=d;const i={loaded:d,total:l,progress:l?d/l:void 0,bytes:n,rate:c||void 0,estimated:c&&l&&b?(l-d)/c:void 0,event:P};i[e?"download":"upload"]=!0,t(i)}}const e4e=typeof XMLHttpRequest<"u",t4e=e4e&&function(t){return new Promise(function(o,f){let P=t.data;const d=wO.from(t.headers).normalize();let{responseType:l,withXSRFToken:n}=t,c;function b(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}let i;if(ui.isFormData(P)){if(o_.hasStandardBrowserEnv||o_.hasStandardBrowserWebWorkerEnv)d.setContentType(!1);else if((i=d.getContentType())!==!1){const[a,...u]=i?i.split(";").map(h=>h.trim()).filter(Boolean):[];d.setContentType([a||"multipart/form-data",...u].join("; "))}}let O=new XMLHttpRequest;if(t.auth){const a=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.set("Authorization","Basic "+btoa(a+":"+u))}const w=J0e(t.baseURL,t.url);O.open(t.method.toUpperCase(),W0e(w,t.params,t.paramsSerializer),!0),O.timeout=t.timeout;function y(){if(!O)return;const a=wO.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),h={data:!l||l==="text"||l==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:a,config:t,request:O};q3e(function(v){o(v),b()},function(v){f(v),b()},h),O=null}if("onloadend"in O?O.onloadend=y:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(y)},O.onabort=function(){O&&(f(new Ic("Request aborted",Ic.ECONNABORTED,t,O)),O=null)},O.onerror=function(){f(new Ic("Network Error",Ic.ERR_NETWORK,t,O)),O=null},O.ontimeout=function(){let u=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const h=t.transitional||Y0e;t.timeoutErrorMessage&&(u=t.timeoutErrorMessage),f(new Ic(u,h.clarifyTimeoutError?Ic.ETIMEDOUT:Ic.ECONNABORTED,t,O)),O=null},o_.hasStandardBrowserEnv&&(n&&ui.isFunction(n)&&(n=n(t)),n||n!==!1&&G3e(w))){const a=t.xsrfHeaderName&&t.xsrfCookieName&&W3e.read(t.xsrfCookieName);a&&d.set(t.xsrfHeaderName,a)}P===void 0&&d.setContentType(null),"setRequestHeader"in O&&ui.forEach(d.toJSON(),function(u,h){O.setRequestHeader(h,u)}),ui.isUndefined(t.withCredentials)||(O.withCredentials=!!t.withCredentials),l&&l!=="json"&&(O.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&O.addEventListener("progress",fde(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&O.upload&&O.upload.addEventListener("progress",fde(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=a=>{O&&(f(!a||a.type?new lD(null,t,O):a),O.abort(),O=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));const p=K3e(w);if(p&&o_.protocols.indexOf(p)===-1){f(new Ic("Unsupported protocol "+p+":",Ic.ERR_BAD_REQUEST,t));return}O.send(P||null)})},dae={http:k3e,xhr:t4e};ui.forEach(dae,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const dde=t=>`- ${t}`,n4e=t=>ui.isFunction(t)||t===null||t===!1,e1e={getAdapter:t=>{t=ui.isArray(t)?t:[t];const{length:e}=t;let o,f;const P={};for(let d=0;d`adapter ${n} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=e?d.length>1?`since : +`+d.map(dde).join(` +`):" "+dde(d[0]):"as no adapter specified";throw new Ic("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return f},adapters:dae};function Koe(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new lD(null,t)}function hde(t){return Koe(t),t.headers=wO.from(t.headers),t.data=Goe.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),e1e.getAdapter(t.adapter||dle.adapter)(t).then(function(f){return Koe(t),f.data=Goe.call(t,t.transformResponse,f),f.headers=wO.from(f.headers),f},function(f){return K0e(f)||(Koe(t),f&&f.response&&(f.response.data=Goe.call(t,t.transformResponse,f.response),f.response.headers=wO.from(f.response.headers))),Promise.reject(f)})}const pde=t=>t instanceof wO?t.toJSON():t;function rM(t,e){e=e||{};const o={};function f(b,i,O){return ui.isPlainObject(b)&&ui.isPlainObject(i)?ui.merge.call({caseless:O},b,i):ui.isPlainObject(i)?ui.merge({},i):ui.isArray(i)?i.slice():i}function P(b,i,O){if(ui.isUndefined(i)){if(!ui.isUndefined(b))return f(void 0,b,O)}else return f(b,i,O)}function d(b,i){if(!ui.isUndefined(i))return f(void 0,i)}function l(b,i){if(ui.isUndefined(i)){if(!ui.isUndefined(b))return f(void 0,b)}else return f(void 0,i)}function n(b,i,O){if(O in e)return f(b,i);if(O in t)return f(void 0,b)}const c={url:d,method:d,data:d,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(b,i)=>P(pde(b),pde(i),!0)};return ui.forEach(Object.keys(Object.assign({},t,e)),function(i){const O=c[i]||P,w=O(t[i],e[i],i);ui.isUndefined(w)&&O!==n||(o[i]=w)}),o}const t1e="1.6.2",hle={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{hle[t]=function(f){return typeof f===t||"a"+(e<1?"n ":" ")+t}});const mde={};hle.transitional=function(e,o,f){function P(d,l){return"[Axios v"+t1e+"] Transitional option '"+d+"'"+l+(f?". "+f:"")}return(d,l,n)=>{if(e===!1)throw new Ic(P(l," has been removed"+(o?" in "+o:"")),Ic.ERR_DEPRECATED);return o&&!mde[l]&&(mde[l]=!0,console.warn(P(l," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(d,l,n):!0}};function r4e(t,e,o){if(typeof t!="object")throw new Ic("options must be an object",Ic.ERR_BAD_OPTION_VALUE);const f=Object.keys(t);let P=f.length;for(;P-- >0;){const d=f[P],l=e[d];if(l){const n=t[d],c=n===void 0||l(n,d,t);if(c!==!0)throw new Ic("option "+d+" must be "+c,Ic.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new Ic("Unknown option "+d,Ic.ERR_BAD_OPTION)}}const hae={assertOptions:r4e,validators:hle},I4=hae.validators;class MH{constructor(e){this.defaults=e,this.interceptors={request:new cde,response:new cde}}request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=rM(this.defaults,o);const{transitional:f,paramsSerializer:P,headers:d}=o;f!==void 0&&hae.assertOptions(f,{silentJSONParsing:I4.transitional(I4.boolean),forcedJSONParsing:I4.transitional(I4.boolean),clarifyTimeoutError:I4.transitional(I4.boolean)},!1),P!=null&&(ui.isFunction(P)?o.paramsSerializer={serialize:P}:hae.assertOptions(P,{encode:I4.function,serialize:I4.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let l=d&&ui.merge(d.common,d[o.method]);d&&ui.forEach(["delete","get","head","post","put","patch","common"],p=>{delete d[p]}),o.headers=wO.concat(l,d);const n=[];let c=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(o)===!1||(c=c&&a.synchronous,n.unshift(a.fulfilled,a.rejected))});const b=[];this.interceptors.response.forEach(function(a){b.push(a.fulfilled,a.rejected)});let i,O=0,w;if(!c){const p=[hde.bind(this),void 0];for(p.unshift.apply(p,n),p.push.apply(p,b),w=p.length,i=Promise.resolve(o);O{if(!f._listeners)return;let d=f._listeners.length;for(;d-- >0;)f._listeners[d](P);f._listeners=null}),this.promise.then=P=>{let d;const l=new Promise(n=>{f.subscribe(n),d=n}).then(P);return l.cancel=function(){f.unsubscribe(d)},l},e(function(d,l,n){f.reason||(f.reason=new lD(d,l,n),o(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}static source(){let e;return{token:new ple(function(P){e=P}),cancel:e}}}const o4e=ple;function i4e(t){return function(o){return t.apply(null,o)}}function a4e(t){return ui.isObject(t)&&t.isAxiosError===!0}const pae={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pae).forEach(([t,e])=>{pae[e]=t});const s4e=pae;function n1e(t){const e=new sH(t),o=B0e(sH.prototype.request,e);return ui.extend(o,sH.prototype,e,{allOwnKeys:!0}),ui.extend(o,e,null,{allOwnKeys:!0}),o.create=function(P){return n1e(rM(t,P))},o}const Jh=n1e(dle);Jh.Axios=sH;Jh.CanceledError=lD;Jh.CancelToken=o4e;Jh.isCancel=K0e;Jh.VERSION=t1e;Jh.toFormData=DZ;Jh.AxiosError=Ic;Jh.Cancel=Jh.CanceledError;Jh.all=function(e){return Promise.all(e)};Jh.spread=i4e;Jh.isAxiosError=a4e;Jh.mergeConfig=rM;Jh.AxiosHeaders=wO;Jh.formToJSON=t=>G0e(ui.isHTMLForm(t)?new FormData(t):t);Jh.getAdapter=e1e.getAdapter;Jh.HttpStatusCode=s4e;Jh.default=Jh;const fu=Jh;function mle(t,e){const o=Object.create(null),f=t.split(",");for(let P=0;P!!o[P.toLowerCase()]:P=>!!o[P]}const od={},ZA=[],yx=()=>{},l4e=()=>!1,c4e=/^on[^a-z]/,zZ=t=>c4e.test(t),gle=t=>t.startsWith("onUpdate:"),Nh=Object.assign,vle=(t,e)=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)},u4e=Object.prototype.hasOwnProperty,Zc=(t,e)=>u4e.call(t,e),xs=Array.isArray,qA=t=>FZ(t)==="[object Map]",r1e=t=>FZ(t)==="[object Set]",ll=t=>typeof t=="function",hh=t=>typeof t=="string",yle=t=>typeof t=="symbol",Ff=t=>t!==null&&typeof t=="object",o1e=t=>Ff(t)&&ll(t.then)&&ll(t.catch),i1e=Object.prototype.toString,FZ=t=>i1e.call(t),f4e=t=>FZ(t).slice(8,-1),a1e=t=>FZ(t)==="[object Object]",ble=t=>hh(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,lH=mle(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),NZ=t=>{const e=Object.create(null);return o=>e[o]||(e[o]=t(o))},d4e=/-(\w)/g,rb=NZ(t=>t.replace(d4e,(e,o)=>o?o.toUpperCase():"")),h4e=/\B([A-Z])/g,xT=NZ(t=>t.replace(h4e,"-$1").toLowerCase()),v_=NZ(t=>t.charAt(0).toUpperCase()+t.slice(1)),tI=NZ(t=>t?`on${v_(t)}`:""),yI=(t,e)=>!Object.is(t,e),cH=(t,e)=>{for(let o=0;o{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:o})},mae=t=>{const e=parseFloat(t);return isNaN(e)?t:e},s1e=t=>{const e=hh(t)?Number(t):NaN;return isNaN(e)?t:e};let gde;const gae=()=>gde||(gde=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function cD(t){if(xs(t)){const e={};for(let o=0;o{if(o){const f=o.split(m4e);f.length>1&&(e[f[0].trim()]=f[1].trim())}}),e}function Nv(t){let e="";if(hh(t))e=t;else if(xs(t))for(let o=0;ohh(t)?t:t==null?"":xs(t)||Ff(t)&&(t.toString===i1e||!ll(t.toString))?JSON.stringify(t,c1e,2):String(t),c1e=(t,e)=>e&&e.__v_isRef?c1e(t,e.value):qA(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((o,[f,P])=>(o[`${f} =>`]=P,o),{})}:r1e(e)?{[`Set(${e.size})`]:[...e.values()]}:Ff(e)&&!xs(e)&&!a1e(e)?String(e):e;let Rv;class u1e{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Rv,!e&&Rv&&(this.index=(Rv.scopes||(Rv.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const o=Rv;try{return Rv=this,e()}finally{Rv=o}}}on(){Rv=this}off(){Rv=this.parent}stop(e){if(this._active){let o,f;for(o=0,f=this.effects.length;o{const e=new Set(t);return e.w=0,e.n=0,e},d1e=t=>(t.w&rS)>0,h1e=t=>(t.n&rS)>0,_4e=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let o=0;for(let f=0;f{(i==="length"||i>=c)&&n.push(b)})}else switch(o!==void 0&&n.push(l.get(o)),e){case"add":xs(t)?ble(o)&&n.push(l.get("length")):(n.push(l.get(cT)),qA(t)&&n.push(l.get(yae)));break;case"delete":xs(t)||(n.push(l.get(cT)),qA(t)&&n.push(l.get(yae)));break;case"set":qA(t)&&n.push(l.get(cT));break}if(n.length===1)n[0]&&bae(n[0]);else{const c=[];for(const b of n)b&&c.push(...b);bae(xle(c))}}function bae(t,e){const o=xs(t)?t:[...t];for(const f of o)f.computed&&yde(f);for(const f of o)f.computed||yde(f)}function yde(t,e){(t!==vx||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function O4e(t,e){var o;return(o=PH.get(t))==null?void 0:o.get(e)}const S4e=mle("__proto__,__v_isRef,__isVue"),g1e=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(yle)),k4e=wle(),T4e=wle(!1,!0),C4e=wle(!0),bde=A4e();function A4e(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...o){const f=As(this);for(let d=0,l=this.length;d{t[e]=function(...o){kM();const f=As(this)[e].apply(this,o);return TM(),f}}),t}function M4e(t){const e=As(this);return _1(e,"has",t),e.hasOwnProperty(t)}function wle(t=!1,e=!1){return function(f,P,d){if(P==="__v_isReactive")return!t;if(P==="__v_isReadonly")return t;if(P==="__v_isShallow")return e;if(P==="__v_raw"&&d===(t?e?H4e:_1e:e?x1e:b1e).get(f))return f;const l=xs(f);if(!t){if(l&&Zc(bde,P))return Reflect.get(bde,P,d);if(P==="hasOwnProperty")return M4e}const n=Reflect.get(f,P,d);return(yle(P)?g1e.has(P):S4e(P))||(t||_1(f,"get",P),e)?n:Dc(n)?l&&ble(P)?n:n.value:Ff(n)?t?CM(n):lm(n):n}}const E4e=v1e(),P4e=v1e(!0);function v1e(t=!1){return function(o,f,P,d){let l=o[f];if(oM(l)&&Dc(l)&&!Dc(P))return!1;if(!t&&(!RH(P)&&!oM(P)&&(l=As(l),P=As(P)),!xs(o)&&Dc(l)&&!Dc(P)))return l.value=P,!0;const n=xs(o)&&ble(f)?Number(f)t,$Z=t=>Reflect.getPrototypeOf(t);function vQ(t,e,o=!1,f=!1){t=t.__v_raw;const P=As(t),d=As(e);o||(e!==d&&_1(P,"get",e),_1(P,"get",d));const{has:l}=$Z(P),n=f?Ole:o?Tle:bI;if(l.call(P,e))return n(t.get(e));if(l.call(P,d))return n(t.get(d));t!==P&&t.get(e)}function yQ(t,e=!1){const o=this.__v_raw,f=As(o),P=As(t);return e||(t!==P&&_1(f,"has",t),_1(f,"has",P)),t===P?o.has(t):o.has(t)||o.has(P)}function bQ(t,e=!1){return t=t.__v_raw,!e&&_1(As(t),"iterate",cT),Reflect.get(t,"size",t)}function xde(t){t=As(t);const e=As(this);return $Z(e).has.call(e,t)||(e.add(t),kO(e,"add",t,t)),this}function _de(t,e){e=As(e);const o=As(this),{has:f,get:P}=$Z(o);let d=f.call(o,t);d||(t=As(t),d=f.call(o,t));const l=P.call(o,t);return o.set(t,e),d?yI(e,l)&&kO(o,"set",t,e):kO(o,"add",t,e),this}function wde(t){const e=As(this),{has:o,get:f}=$Z(e);let P=o.call(e,t);P||(t=As(t),P=o.call(e,t)),f&&f.call(e,t);const d=e.delete(t);return P&&kO(e,"delete",t,void 0),d}function Ode(){const t=As(this),e=t.size!==0,o=t.clear();return e&&kO(t,"clear",void 0,void 0),o}function xQ(t,e){return function(f,P){const d=this,l=d.__v_raw,n=As(l),c=e?Ole:t?Tle:bI;return!t&&_1(n,"iterate",cT),l.forEach((b,i)=>f.call(P,c(b),c(i),d))}}function _Q(t,e,o){return function(...f){const P=this.__v_raw,d=As(P),l=qA(d),n=t==="entries"||t===Symbol.iterator&&l,c=t==="keys"&&l,b=P[t](...f),i=o?Ole:e?Tle:bI;return!e&&_1(d,"iterate",c?yae:cT),{next(){const{value:O,done:w}=b.next();return w?{value:O,done:w}:{value:n?[i(O[0]),i(O[1])]:i(O),done:w}},[Symbol.iterator](){return this}}}}function D4(t){return function(...e){return t==="delete"?!1:this}}function z4e(){const t={get(d){return vQ(this,d)},get size(){return bQ(this)},has:yQ,add:xde,set:_de,delete:wde,clear:Ode,forEach:xQ(!1,!1)},e={get(d){return vQ(this,d,!1,!0)},get size(){return bQ(this)},has:yQ,add:xde,set:_de,delete:wde,clear:Ode,forEach:xQ(!1,!0)},o={get(d){return vQ(this,d,!0)},get size(){return bQ(this,!0)},has(d){return yQ.call(this,d,!0)},add:D4("add"),set:D4("set"),delete:D4("delete"),clear:D4("clear"),forEach:xQ(!0,!1)},f={get(d){return vQ(this,d,!0,!0)},get size(){return bQ(this,!0)},has(d){return yQ.call(this,d,!0)},add:D4("add"),set:D4("set"),delete:D4("delete"),clear:D4("clear"),forEach:xQ(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(d=>{t[d]=_Q(d,!1,!1),o[d]=_Q(d,!0,!1),e[d]=_Q(d,!1,!0),f[d]=_Q(d,!0,!0)}),[t,o,e,f]}const[F4e,N4e,$4e,V4e]=z4e();function Sle(t,e){const o=e?t?V4e:$4e:t?N4e:F4e;return(f,P,d)=>P==="__v_isReactive"?!t:P==="__v_isReadonly"?t:P==="__v_raw"?f:Reflect.get(Zc(o,P)&&P in f?o:f,P,d)}const U4e={get:Sle(!1,!1)},j4e={get:Sle(!1,!0)},Q4e={get:Sle(!0,!1)},b1e=new WeakMap,x1e=new WeakMap,_1e=new WeakMap,H4e=new WeakMap;function Z4e(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function q4e(t){return t.__v_skip||!Object.isExtensible(t)?0:Z4e(f4e(t))}function lm(t){return oM(t)?t:kle(t,!1,y1e,U4e,b1e)}function w1e(t){return kle(t,!1,B4e,j4e,x1e)}function CM(t){return kle(t,!0,D4e,Q4e,_1e)}function kle(t,e,o,f,P){if(!Ff(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const d=P.get(t);if(d)return d;const l=q4e(t);if(l===0)return t;const n=new Proxy(t,l===2?f:o);return P.set(t,n),n}function OO(t){return oM(t)?OO(t.__v_raw):!!(t&&t.__v_isReactive)}function oM(t){return!!(t&&t.__v_isReadonly)}function RH(t){return!!(t&&t.__v_isShallow)}function O1e(t){return OO(t)||oM(t)}function As(t){const e=t&&t.__v_raw;return e?As(e):t}function fD(t){return EH(t,"__v_skip",!0),t}const bI=t=>Ff(t)?lm(t):t,Tle=t=>Ff(t)?CM(t):t;function S1e(t){K4&&vx&&(t=As(t),m1e(t.dep||(t.dep=xle())))}function k1e(t,e){t=As(t);const o=t.dep;o&&bae(o)}function Dc(t){return!!(t&&t.__v_isRef===!0)}function ti(t){return T1e(t,!1)}function Ai(t){return T1e(t,!0)}function T1e(t,e){return Dc(t)?t:new W4e(t,e)}class W4e{constructor(e,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?e:As(e),this._value=o?e:bI(e)}get value(){return S1e(this),this._value}set value(e){const o=this.__v_isShallow||RH(e)||oM(e);e=o?e:As(e),yI(e,this._rawValue)&&(this._rawValue=e,this._value=o?e:bI(e),k1e(this))}}function wa(t){return Dc(t)?t.value:t}const Y4e={get:(t,e,o)=>wa(Reflect.get(t,e,o)),set:(t,e,o,f)=>{const P=t[e];return Dc(P)&&!Dc(o)?(P.value=o,!0):Reflect.set(t,e,o,f)}};function C1e(t){return OO(t)?t:new Proxy(t,Y4e)}function AM(t){const e=xs(t)?new Array(t.length):{};for(const o in t)e[o]=A1e(t,o);return e}class X4e{constructor(e,o,f){this._object=e,this._key=o,this._defaultValue=f,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return O4e(As(this._object),this._key)}}class G4e{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Oi(t,e,o){return Dc(t)?t:ll(t)?new G4e(t):Ff(t)&&arguments.length>1?A1e(t,e,o):ti(t)}function A1e(t,e,o){const f=t[e];return Dc(f)?f:new X4e(t,e,o)}class K4e{constructor(e,o,f,P){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new _le(e,()=>{this._dirty||(this._dirty=!0,k1e(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!P,this.__v_isReadonly=f}get value(){const e=As(this);return S1e(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function J4e(t,e,o=!1){let f,P;const d=ll(t);return d?(f=t,P=yx):(f=t.get,P=t.set),new K4e(f,P,d||!P,o)}function J4(t,e,o,f){let P;try{P=f?t(...f):t()}catch(d){dD(d,e,o)}return P}function eb(t,e,o,f){if(ll(t)){const d=J4(t,e,o,f);return d&&o1e(d)&&d.catch(l=>{dD(l,e,o)}),d}const P=[];for(let d=0;d>>1;_I($g[f])e_&&$g.splice(e,1)}function P1e(t){xs(t)?WA.push(...t):(!xO||!xO.includes(t,t.allowRecurse?eT+1:eT))&&WA.push(t),E1e()}function Sde(t,e=xI?e_+1:0){for(;e<$g.length;e++){const o=$g[e];o&&o.pre&&($g.splice(e,1),e--,o())}}function R1e(t){if(WA.length){const e=[...new Set(WA)];if(WA.length=0,xO){xO.push(...e);return}for(xO=e,xO.sort((o,f)=>_I(o)-_I(f)),eT=0;eTt.id==null?1/0:t.id,rSe=(t,e)=>{const o=_I(t)-_I(e);if(o===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return o};function L1e(t){xae=!1,xI=!0,$g.sort(rSe);const e=yx;try{for(e_=0;e_<$g.length;e_++){const o=$g[e_];o&&o.active!==!1&&J4(o,null,14)}}finally{e_=0,$g.length=0,R1e(),xI=!1,Cle=null,($g.length||WA.length)&&L1e()}}function oSe(t,e,...o){if(t.isUnmounted)return;const f=t.vnode.props||od;let P=o;const d=e.startsWith("update:"),l=d&&e.slice(7);if(l&&l in f){const i=`${l==="modelValue"?"model":l}Modifiers`,{number:O,trim:w}=f[i]||od;w&&(P=o.map(y=>hh(y)?y.trim():y)),O&&(P=o.map(mae))}let n,c=f[n=tI(e)]||f[n=tI(rb(e))];!c&&d&&(c=f[n=tI(xT(e))]),c&&eb(c,t,6,P);const b=f[n+"Once"];if(b){if(!t.emitted)t.emitted={};else if(t.emitted[n])return;t.emitted[n]=!0,eb(b,t,6,P)}}function I1e(t,e,o=!1){const f=e.emitsCache,P=f.get(t);if(P!==void 0)return P;const d=t.emits;let l={},n=!1;if(!ll(t)){const c=b=>{const i=I1e(b,e,!0);i&&(n=!0,Nh(l,i))};!o&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!d&&!n?(Ff(t)&&f.set(t,null),null):(xs(d)?d.forEach(c=>l[c]=null):Nh(l,d),Ff(t)&&f.set(t,l),l)}function VZ(t,e){return!t||!zZ(e)?!1:(e=e.slice(2).replace(/Once$/,""),Zc(t,e[0].toLowerCase()+e.slice(1))||Zc(t,xT(e))||Zc(t,e))}let cm=null,UZ=null;function LH(t){const e=cm;return cm=t,UZ=t&&t.type.__scopeId||null,e}function Mle(t){UZ=t}function Ele(){UZ=null}function Oo(t,e=cm,o){if(!e||t._n)return t;const f=(...P)=>{f._d&&Nde(-1);const d=LH(e);let l;try{l=t(...P)}finally{LH(d),f._d&&Nde(1)}return l};return f._n=!0,f._c=!0,f._d=!0,f}function Joe(t){const{type:e,vnode:o,proxy:f,withProxy:P,props:d,propsOptions:[l],slots:n,attrs:c,emit:b,render:i,renderCache:O,data:w,setupState:y,ctx:p,inheritAttrs:a}=t;let u,h;const m=LH(t);try{if(o.shapeFlag&4){const _=P||f;u=px(i.call(_,_,O,d,y,w,p)),h=c}else{const _=e;u=px(_.length>1?_(d,{attrs:c,slots:n,emit:b}):_(d,null)),h=e.props?c:aSe(c)}}catch(_){iI.length=0,dD(_,t,1),u=Ht(k0)}let v=u;if(h&&a!==!1){const _=Object.keys(h),{shapeFlag:S}=v;_.length&&S&7&&(l&&_.some(gle)&&(h=sSe(h,l)),v=TO(v,h))}return o.dirs&&(v=TO(v),v.dirs=v.dirs?v.dirs.concat(o.dirs):o.dirs),o.transition&&(v.transition=o.transition),u=v,LH(m),u}function iSe(t){let e;for(let o=0;o{let e;for(const o in t)(o==="class"||o==="style"||zZ(o))&&((e||(e={}))[o]=t[o]);return e},sSe=(t,e)=>{const o={};for(const f in t)(!gle(f)||!(f.slice(9)in e))&&(o[f]=t[f]);return o};function lSe(t,e,o){const{props:f,children:P,component:d}=t,{props:l,children:n,patchFlag:c}=e,b=d.emitsOptions;if(e.dirs||e.transition)return!0;if(o&&c>=0){if(c&1024)return!0;if(c&16)return f?kde(f,l,b):!!l;if(c&8){const i=e.dynamicProps;for(let O=0;Ot.__isSuspense,uSe={name:"Suspense",__isSuspense:!0,process(t,e,o,f,P,d,l,n,c,b){t==null?dSe(e,o,f,P,d,l,n,c,b):hSe(t,e,o,f,P,l,n,c,b)},hydrate:pSe,create:Rle,normalize:mSe},fSe=uSe;function wI(t,e){const o=t.props&&t.props[e];ll(o)&&o()}function dSe(t,e,o,f,P,d,l,n,c){const{p:b,o:{createElement:i}}=c,O=i("div"),w=t.suspense=Rle(t,P,f,e,O,o,d,l,n,c);b(null,w.pendingBranch=t.ssContent,O,null,f,w,d,l),w.deps>0?(wI(t,"onPending"),wI(t,"onFallback"),b(null,t.ssFallback,e,o,f,null,d,l),YA(w,t.ssFallback)):w.resolve(!1,!0)}function hSe(t,e,o,f,P,d,l,n,{p:c,um:b,o:{createElement:i}}){const O=e.suspense=t.suspense;O.vnode=e,e.el=t.el;const w=e.ssContent,y=e.ssFallback,{activeBranch:p,pendingBranch:a,isInFallback:u,isHydrating:h}=O;if(a)O.pendingBranch=w,t_(w,a)?(c(a,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0?O.resolve():u&&(c(p,y,o,f,P,null,d,l,n),YA(O,y))):(O.pendingId++,h?(O.isHydrating=!1,O.activeBranch=a):b(a,P,O),O.deps=0,O.effects.length=0,O.hiddenContainer=i("div"),u?(c(null,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0?O.resolve():(c(p,y,o,f,P,null,d,l,n),YA(O,y))):p&&t_(w,p)?(c(p,w,o,f,P,O,d,l,n),O.resolve(!0)):(c(null,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0&&O.resolve()));else if(p&&t_(w,p))c(p,w,o,f,P,O,d,l,n),YA(O,w);else if(wI(e,"onPending"),O.pendingBranch=w,O.pendingId++,c(null,w,O.hiddenContainer,null,P,O,d,l,n),O.deps<=0)O.resolve();else{const{timeout:m,pendingId:v}=O;m>0?setTimeout(()=>{O.pendingId===v&&O.fallback(y)},m):m===0&&O.fallback(y)}}function Rle(t,e,o,f,P,d,l,n,c,b,i=!1){const{p:O,m:w,um:y,n:p,o:{parentNode:a,remove:u}}=b;let h;const m=vSe(t);m&&e!=null&&e.pendingBranch&&(h=e.pendingId,e.deps++);const v=t.props?s1e(t.props.timeout):void 0,_={vnode:t,parent:e,parentComponent:o,isSVG:l,container:f,hiddenContainer:P,anchor:d,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:i,isUnmounted:!1,effects:[],resolve(S=!1,A=!1){const{vnode:x,activeBranch:R,pendingBranch:M,pendingId:T,effects:E,parentComponent:C,container:L}=_;if(_.isHydrating)_.isHydrating=!1;else if(!S){const I=R&&M.transition&&M.transition.mode==="out-in";I&&(R.transition.afterLeave=()=>{T===_.pendingId&&w(M,L,z,0)});let{anchor:z}=_;R&&(z=p(R),y(R,C,_,!0)),I||w(M,L,z,0)}YA(_,M),_.pendingBranch=null,_.isInFallback=!1;let D=_.parent,k=!1;for(;D;){if(D.pendingBranch){D.effects.push(...E),k=!0;break}D=D.parent}k||P1e(E),_.effects=[],m&&e&&e.pendingBranch&&h===e.pendingId&&(e.deps--,e.deps===0&&!A&&e.resolve()),wI(x,"onResolve")},fallback(S){if(!_.pendingBranch)return;const{vnode:A,activeBranch:x,parentComponent:R,container:M,isSVG:T}=_;wI(A,"onFallback");const E=p(x),C=()=>{_.isInFallback&&(O(null,S,M,E,R,null,T,n,c),YA(_,S))},L=S.transition&&S.transition.mode==="out-in";L&&(x.transition.afterLeave=C),_.isInFallback=!0,y(x,R,null,!0),L||C()},move(S,A,x){_.activeBranch&&w(_.activeBranch,S,A,x),_.container=S},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(S,A){const x=!!_.pendingBranch;x&&_.deps++;const R=S.vnode.el;S.asyncDep.catch(M=>{dD(M,S,0)}).then(M=>{if(S.isUnmounted||_.isUnmounted||_.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:T}=S;Cae(S,M,!1),R&&(T.el=R);const E=!R&&S.subTree.el;A(S,T,a(R||S.subTree.el),R?null:p(S.subTree),_,l,c),E&&u(E),Ple(S,T.el),x&&--_.deps===0&&_.resolve()})},unmount(S,A){_.isUnmounted=!0,_.activeBranch&&y(_.activeBranch,o,S,A),_.pendingBranch&&y(_.pendingBranch,o,S,A)}};return _}function pSe(t,e,o,f,P,d,l,n,c){const b=e.suspense=Rle(e,f,o,t.parentNode,document.createElement("div"),null,P,d,l,n,!0),i=c(t,b.pendingBranch=e.ssContent,o,b,d,l);return b.deps===0&&b.resolve(!1,!0),i}function mSe(t){const{shapeFlag:e,children:o}=t,f=e&32;t.ssContent=Tde(f?o.default:o),t.ssFallback=f?Tde(o.fallback):Ht(k0)}function Tde(t){let e;if(ll(t)){const o=iM&&t._c;o&&(t._d=!1,Do()),t=t(),o&&(t._d=!0,e=Yy,K1e())}return xs(t)&&(t=iSe(t)),t=px(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(o=>o!==t)),t}function gSe(t,e){e&&e.pendingBranch?xs(t)?e.effects.push(...t):e.effects.push(t):P1e(t)}function YA(t,e){t.activeBranch=e;const{vnode:o,parentComponent:f}=t,P=o.el=e.el;f&&f.subTree===o&&(f.vnode.el=P,Ple(f,P))}function vSe(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function kp(t,e){return Lle(t,null,e)}const wQ={};function Ni(t,e,o){return Lle(t,e,o)}function Lle(t,e,{immediate:o,deep:f,flush:P,onTrack:d,onTrigger:l}=od){var n;const c=f1e()===((n=Op)==null?void 0:n.scope)?Op:null;let b,i=!1,O=!1;if(Dc(t)?(b=()=>t.value,i=RH(t)):OO(t)?(b=()=>t,f=!0):xs(t)?(O=!0,i=t.some(_=>OO(_)||RH(_)),b=()=>t.map(_=>{if(Dc(_))return _.value;if(OO(_))return iT(_);if(ll(_))return J4(_,c,2)})):ll(t)?e?b=()=>J4(t,c,2):b=()=>{if(!(c&&c.isUnmounted))return w&&w(),eb(t,c,3,[y])}:b=yx,e&&f){const _=b;b=()=>iT(_())}let w,y=_=>{w=m.onStop=()=>{J4(_,c,4)}},p;if(CI)if(y=yx,e?o&&eb(e,c,3,[b(),O?[]:void 0,y]):b(),P==="sync"){const _=s5e();p=_.__watcherHandles||(_.__watcherHandles=[])}else return yx;let a=O?new Array(t.length).fill(wQ):wQ;const u=()=>{if(m.active)if(e){const _=m.run();(f||i||(O?_.some((S,A)=>yI(S,a[A])):yI(_,a)))&&(w&&w(),eb(e,c,3,[_,a===wQ?void 0:O&&a[0]===wQ?[]:a,y]),a=_)}else m.run()};u.allowRecurse=!!e;let h;P==="sync"?h=u:P==="post"?h=()=>g1(u,c&&c.suspense):(u.pre=!0,c&&(u.id=c.uid),h=()=>Ale(u));const m=new _le(b,h);e?o?u():a=m.run():P==="post"?g1(m.run.bind(m),c&&c.suspense):m.run();const v=()=>{m.stop(),c&&c.scope&&vle(c.scope.effects,m)};return p&&p.push(v),v}function ySe(t,e,o){const f=this.proxy,P=hh(t)?t.includes(".")?D1e(f,t):()=>f[t]:t.bind(f,f);let d;ll(e)?d=e:(d=e.handler,o=e);const l=Op;sM(this);const n=Lle(P,d.bind(f),o);return l?sM(l):uT(),n}function D1e(t,e){const o=e.split(".");return()=>{let f=t;for(let P=0;P{iT(o,e)});else if(a1e(t))for(const o in t)iT(t[o],e);return t}function Tp(t,e){const o=cm;if(o===null)return t;const f=ZZ(o)||o.proxy,P=t.dirs||(t.dirs=[]);for(let d=0;d{t.isMounted=!0}),dm(()=>{t.isUnmounting=!0}),t}const Zy=[Function,Array],z1e={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Zy,onEnter:Zy,onAfterEnter:Zy,onEnterCancelled:Zy,onBeforeLeave:Zy,onLeave:Zy,onAfterLeave:Zy,onLeaveCancelled:Zy,onBeforeAppear:Zy,onAppear:Zy,onAfterAppear:Zy,onAppearCancelled:Zy},bSe={name:"BaseTransition",props:z1e,setup(t,{slots:e}){const o=Zle(),f=B1e();let P;return()=>{const d=e.default&&Ile(e.default(),!0);if(!d||!d.length)return;let l=d[0];if(d.length>1){for(const a of d)if(a.type!==k0){l=a;break}}const n=As(t),{mode:c}=n;if(f.isLeaving)return eie(l);const b=Cde(l);if(!b)return eie(l);const i=OI(b,n,f,o);SI(b,i);const O=o.subTree,w=O&&Cde(O);let y=!1;const{getTransitionKey:p}=b.type;if(p){const a=p();P===void 0?P=a:a!==P&&(P=a,y=!0)}if(w&&w.type!==k0&&(!t_(b,w)||y)){const a=OI(w,n,f,o);if(SI(w,a),c==="out-in")return f.isLeaving=!0,a.afterLeave=()=>{f.isLeaving=!1,o.update.active!==!1&&o.update()},eie(l);c==="in-out"&&b.type!==k0&&(a.delayLeave=(u,h,m)=>{const v=F1e(f,w);v[String(w.key)]=w,u._leaveCb=()=>{h(),u._leaveCb=void 0,delete i.delayedLeave},i.delayedLeave=m})}return l}}},xSe=bSe;function F1e(t,e){const{leavingVNodes:o}=t;let f=o.get(e.type);return f||(f=Object.create(null),o.set(e.type,f)),f}function OI(t,e,o,f){const{appear:P,mode:d,persisted:l=!1,onBeforeEnter:n,onEnter:c,onAfterEnter:b,onEnterCancelled:i,onBeforeLeave:O,onLeave:w,onAfterLeave:y,onLeaveCancelled:p,onBeforeAppear:a,onAppear:u,onAfterAppear:h,onAppearCancelled:m}=e,v=String(t.key),_=F1e(o,t),S=(R,M)=>{R&&eb(R,f,9,M)},A=(R,M)=>{const T=M[1];S(R,M),xs(R)?R.every(E=>E.length<=1)&&T():R.length<=1&&T()},x={mode:d,persisted:l,beforeEnter(R){let M=n;if(!o.isMounted)if(P)M=a||n;else return;R._leaveCb&&R._leaveCb(!0);const T=_[v];T&&t_(t,T)&&T.el._leaveCb&&T.el._leaveCb(),S(M,[R])},enter(R){let M=c,T=b,E=i;if(!o.isMounted)if(P)M=u||c,T=h||b,E=m||i;else return;let C=!1;const L=R._enterCb=D=>{C||(C=!0,D?S(E,[R]):S(T,[R]),x.delayedLeave&&x.delayedLeave(),R._enterCb=void 0)};M?A(M,[R,L]):L()},leave(R,M){const T=String(t.key);if(R._enterCb&&R._enterCb(!0),o.isUnmounting)return M();S(O,[R]);let E=!1;const C=R._leaveCb=L=>{E||(E=!0,M(),L?S(p,[R]):S(y,[R]),R._leaveCb=void 0,_[T]===t&&delete _[T])};_[T]=t,w?A(w,[R,C]):C()},clone(R){return OI(R,e,o,f)}};return x}function eie(t){if(jZ(t))return t=TO(t),t.children=null,t}function Cde(t){return jZ(t)?t.children?t.children[0]:void 0:t}function SI(t,e){t.shapeFlag&6&&t.component?SI(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Ile(t,e=!1,o){let f=[],P=0;for(let d=0;d1)for(let d=0;dNh({name:t.name},e,{setup:t}))():t}const nI=t=>!!t.type.__asyncLoader,jZ=t=>t.type.__isKeepAlive;function Dle(t,e){N1e(t,"a",e)}function Ble(t,e){N1e(t,"da",e)}function N1e(t,e,o=Op){const f=t.__wdc||(t.__wdc=()=>{let P=o;for(;P;){if(P.isDeactivated)return;P=P.parent}return t()});if(QZ(e,f,o),o){let P=o.parent;for(;P&&P.parent;)jZ(P.parent.vnode)&&_Se(f,e,o,P),P=P.parent}}function _Se(t,e,o,f){const P=QZ(e,t,f,!0);Nle(()=>{vle(f[e],P)},o)}function QZ(t,e,o=Op,f=!1){if(o){const P=o[t]||(o[t]=[]),d=e.__weh||(e.__weh=(...l)=>{if(o.isUnmounted)return;kM(),sM(o);const n=eb(e,o,t,l);return uT(),TM(),n});return f?P.unshift(d):P.push(d),d}}const RO=t=>(e,o=Op)=>(!CI||t==="sp")&&QZ(t,(...f)=>e(...f),o),zle=RO("bm"),sg=RO("m"),$1e=RO("bu"),Fle=RO("u"),dm=RO("bum"),Nle=RO("um"),wSe=RO("sp"),OSe=RO("rtg"),SSe=RO("rtc");function kSe(t,e=Op){QZ("ec",t,e)}const $le="components",TSe="directives";function Zd(t,e){return Vle($le,t,!0,e)||t}const V1e=Symbol.for("v-ndc");function kI(t){return hh(t)?Vle($le,t,!1)||t:t||V1e}function y_(t){return Vle(TSe,t)}function Vle(t,e,o=!0,f=!1){const P=cm||Op;if(P){const d=P.type;if(t===$le){const n=o5e(d,!1);if(n&&(n===e||n===rb(e)||n===v_(rb(e))))return d}const l=Ade(P[t]||d[t],e)||Ade(P.appContext[t],e);return!l&&f?d:l}}function Ade(t,e){return t&&(t[e]||t[rb(e)]||t[v_(rb(e))])}function ob(t,e,o,f){let P;const d=o&&o[f];if(xs(t)||hh(t)){P=new Array(t.length);for(let l=0,n=t.length;le(l,n,void 0,d&&d[n]));else{const l=Object.keys(t);P=new Array(l.length);for(let n=0,c=l.length;n{const d=f.fn(...P);return d&&(d.key=f.key),d}:f.fn)}return t}function Mde(t,e,o={},f,P){if(cm.isCE||cm.parent&&nI(cm.parent)&&cm.parent.isCE)return e!=="default"&&(o.name=e),Ht("slot",o,f&&f());let d=t[e];d&&d._c&&(d._d=!1),Do();const l=d&&j1e(d(o)),n=sa(ma,{key:o.key||l&&l.key||`_${e}`},l||(f?f():[]),l&&t._===1?64:-2);return!P&&n.scopeId&&(n.slotScopeIds=[n.scopeId+"-s"]),d&&d._c&&(d._d=!0),n}function j1e(t){return t.some(e=>aM(e)?!(e.type===k0||e.type===ma&&!j1e(e.children)):!0)?t:null}function CSe(t,e){const o={};for(const f in t)o[e&&/[A-Z]/.test(f)?`on:${f}`:tI(f)]=t[f];return o}const _ae=t=>t?tve(t)?ZZ(t)||t.proxy:_ae(t.parent):null,rI=Nh(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>_ae(t.parent),$root:t=>_ae(t.root),$emit:t=>t.emit,$options:t=>Ule(t),$forceUpdate:t=>t.f||(t.f=()=>Ale(t.update)),$nextTick:t=>t.n||(t.n=lc.bind(t.proxy)),$watch:t=>ySe.bind(t)}),tie=(t,e)=>t!==od&&!t.__isScriptSetup&&Zc(t,e),ASe={get({_:t},e){const{ctx:o,setupState:f,data:P,props:d,accessCache:l,type:n,appContext:c}=t;let b;if(e[0]!=="$"){const y=l[e];if(y!==void 0)switch(y){case 1:return f[e];case 2:return P[e];case 4:return o[e];case 3:return d[e]}else{if(tie(f,e))return l[e]=1,f[e];if(P!==od&&Zc(P,e))return l[e]=2,P[e];if((b=t.propsOptions[0])&&Zc(b,e))return l[e]=3,d[e];if(o!==od&&Zc(o,e))return l[e]=4,o[e];wae&&(l[e]=0)}}const i=rI[e];let O,w;if(i)return e==="$attrs"&&_1(t,"get",e),i(t);if((O=n.__cssModules)&&(O=O[e]))return O;if(o!==od&&Zc(o,e))return l[e]=4,o[e];if(w=c.config.globalProperties,Zc(w,e))return w[e]},set({_:t},e,o){const{data:f,setupState:P,ctx:d}=t;return tie(P,e)?(P[e]=o,!0):f!==od&&Zc(f,e)?(f[e]=o,!0):Zc(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(d[e]=o,!0)},has({_:{data:t,setupState:e,accessCache:o,ctx:f,appContext:P,propsOptions:d}},l){let n;return!!o[l]||t!==od&&Zc(t,l)||tie(e,l)||(n=d[0])&&Zc(n,l)||Zc(f,l)||Zc(rI,l)||Zc(P.config.globalProperties,l)},defineProperty(t,e,o){return o.get!=null?t._.accessCache[e]=0:Zc(o,"value")&&this.set(t,e,o.value,null),Reflect.defineProperty(t,e,o)}};function Ede(t){return xs(t)?t.reduce((e,o)=>(e[o]=null,e),{}):t}let wae=!0;function MSe(t){const e=Ule(t),o=t.proxy,f=t.ctx;wae=!1,e.beforeCreate&&Pde(e.beforeCreate,t,"bc");const{data:P,computed:d,methods:l,watch:n,provide:c,inject:b,created:i,beforeMount:O,mounted:w,beforeUpdate:y,updated:p,activated:a,deactivated:u,beforeDestroy:h,beforeUnmount:m,destroyed:v,unmounted:_,render:S,renderTracked:A,renderTriggered:x,errorCaptured:R,serverPrefetch:M,expose:T,inheritAttrs:E,components:C,directives:L,filters:D}=e;if(b&&ESe(b,f,null),l)for(const z in l){const $=l[z];ll($)&&(f[z]=$.bind(o))}if(P){const z=P.call(o,o);Ff(z)&&(t.data=lm(z))}if(wae=!0,d)for(const z in d){const $=d[z],Q=ll($)?$.bind(o,o):ll($.get)?$.get.bind(o,o):yx,j=!ll($)&&ll($.set)?$.set.bind(o):yx,U=Un({get:Q,set:j});Object.defineProperty(f,z,{enumerable:!0,configurable:!0,get:()=>U.value,set:X=>U.value=X})}if(n)for(const z in n)Q1e(n[z],f,o,z);if(c){const z=ll(c)?c.call(o):c;Reflect.ownKeys(z).forEach($=>{gf($,z[$])})}i&&Pde(i,t,"c");function I(z,$){xs($)?$.forEach(Q=>z(Q.bind(o))):$&&z($.bind(o))}if(I(zle,O),I(sg,w),I($1e,y),I(Fle,p),I(Dle,a),I(Ble,u),I(kSe,R),I(SSe,A),I(OSe,x),I(dm,m),I(Nle,_),I(wSe,M),xs(T))if(T.length){const z=t.exposed||(t.exposed={});T.forEach($=>{Object.defineProperty(z,$,{get:()=>o[$],set:Q=>o[$]=Q})})}else t.exposed||(t.exposed={});S&&t.render===yx&&(t.render=S),E!=null&&(t.inheritAttrs=E),C&&(t.components=C),L&&(t.directives=L)}function ESe(t,e,o=yx){xs(t)&&(t=Oae(t));for(const f in t){const P=t[f];let d;Ff(P)?"default"in P?d=yl(P.from||f,P.default,!0):d=yl(P.from||f):d=yl(P),Dc(d)?Object.defineProperty(e,f,{enumerable:!0,configurable:!0,get:()=>d.value,set:l=>d.value=l}):e[f]=d}}function Pde(t,e,o){eb(xs(t)?t.map(f=>f.bind(e.proxy)):t.bind(e.proxy),e,o)}function Q1e(t,e,o,f){const P=f.includes(".")?D1e(o,f):()=>o[f];if(hh(t)){const d=e[t];ll(d)&&Ni(P,d)}else if(ll(t))Ni(P,t.bind(o));else if(Ff(t))if(xs(t))t.forEach(d=>Q1e(d,e,o,f));else{const d=ll(t.handler)?t.handler.bind(o):e[t.handler];ll(d)&&Ni(P,d,t)}}function Ule(t){const e=t.type,{mixins:o,extends:f}=e,{mixins:P,optionsCache:d,config:{optionMergeStrategies:l}}=t.appContext,n=d.get(e);let c;return n?c=n:!P.length&&!o&&!f?c=e:(c={},P.length&&P.forEach(b=>IH(c,b,l,!0)),IH(c,e,l)),Ff(e)&&d.set(e,c),c}function IH(t,e,o,f=!1){const{mixins:P,extends:d}=e;d&&IH(t,d,o,!0),P&&P.forEach(l=>IH(t,l,o,!0));for(const l in e)if(!(f&&l==="expose")){const n=PSe[l]||o&&o[l];t[l]=n?n(t[l],e[l]):e[l]}return t}const PSe={data:Rde,props:Lde,emits:Lde,methods:WL,computed:WL,beforeCreate:O0,created:O0,beforeMount:O0,mounted:O0,beforeUpdate:O0,updated:O0,beforeDestroy:O0,beforeUnmount:O0,destroyed:O0,unmounted:O0,activated:O0,deactivated:O0,errorCaptured:O0,serverPrefetch:O0,components:WL,directives:WL,watch:LSe,provide:Rde,inject:RSe};function Rde(t,e){return e?t?function(){return Nh(ll(t)?t.call(this,this):t,ll(e)?e.call(this,this):e)}:e:t}function RSe(t,e){return WL(Oae(t),Oae(e))}function Oae(t){if(xs(t)){const e={};for(let o=0;o1)return o&&ll(e)?e.call(f&&f.proxy):e}}function BSe(){return!!(Op||cm||TI)}function zSe(t,e,o,f=!1){const P={},d={};EH(d,HZ,1),t.propsDefaults=Object.create(null),Z1e(t,e,P,d);for(const l in t.propsOptions[0])l in P||(P[l]=void 0);o?t.props=f?P:w1e(P):t.type.props?t.props=P:t.props=d,t.attrs=d}function FSe(t,e,o,f){const{props:P,attrs:d,vnode:{patchFlag:l}}=t,n=As(P),[c]=t.propsOptions;let b=!1;if((f||l>0)&&!(l&16)){if(l&8){const i=t.vnode.dynamicProps;for(let O=0;O{c=!0;const[w,y]=q1e(O,e,!0);Nh(l,w),y&&n.push(...y)};!o&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!d&&!c)return Ff(t)&&f.set(t,ZA),ZA;if(xs(d))for(let i=0;i-1,y[1]=a<0||p-1||Zc(y,"default"))&&n.push(O)}}}const b=[l,n];return Ff(t)&&f.set(t,b),b}function Ide(t){return t[0]!=="$"}function Dde(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Bde(t,e){return Dde(t)===Dde(e)}function zde(t,e){return xs(e)?e.findIndex(o=>Bde(o,t)):ll(e)&&Bde(e,t)?0:-1}const W1e=t=>t[0]==="_"||t==="$stable",jle=t=>xs(t)?t.map(px):[px(t)],NSe=(t,e,o)=>{if(e._n)return e;const f=Oo((...P)=>jle(e(...P)),o);return f._c=!1,f},Y1e=(t,e,o)=>{const f=t._ctx;for(const P in t){if(W1e(P))continue;const d=t[P];if(ll(d))e[P]=NSe(P,d,f);else if(d!=null){const l=jle(d);e[P]=()=>l}}},X1e=(t,e)=>{const o=jle(e);t.slots.default=()=>o},$Se=(t,e)=>{if(t.vnode.shapeFlag&32){const o=e._;o?(t.slots=As(e),EH(e,"_",o)):Y1e(e,t.slots={})}else t.slots={},e&&X1e(t,e);EH(t.slots,HZ,1)},VSe=(t,e,o)=>{const{vnode:f,slots:P}=t;let d=!0,l=od;if(f.shapeFlag&32){const n=e._;n?o&&n===1?d=!1:(Nh(P,e),!o&&n===1&&delete P._):(d=!e.$stable,Y1e(e,P)),l=e}else e&&(X1e(t,e),l={default:1});if(d)for(const n in P)!W1e(n)&&!(n in l)&&delete P[n]};function kae(t,e,o,f,P=!1){if(xs(t)){t.forEach((w,y)=>kae(w,e&&(xs(e)?e[y]:e),o,f,P));return}if(nI(f)&&!P)return;const d=f.shapeFlag&4?ZZ(f.component)||f.component.proxy:f.el,l=P?null:d,{i:n,r:c}=t,b=e&&e.r,i=n.refs===od?n.refs={}:n.refs,O=n.setupState;if(b!=null&&b!==c&&(hh(b)?(i[b]=null,Zc(O,b)&&(O[b]=null)):Dc(b)&&(b.value=null)),ll(c))J4(c,n,12,[l,i]);else{const w=hh(c),y=Dc(c);if(w||y){const p=()=>{if(t.f){const a=w?Zc(O,c)?O[c]:i[c]:c.value;P?xs(a)&&vle(a,d):xs(a)?a.includes(d)||a.push(d):w?(i[c]=[d],Zc(O,c)&&(O[c]=i[c])):(c.value=[d],t.k&&(i[t.k]=c.value))}else w?(i[c]=l,Zc(O,c)&&(O[c]=l)):y&&(c.value=l,t.k&&(i[t.k]=l))};l?(p.id=-1,g1(p,o)):p()}}}const g1=gSe;function USe(t){return jSe(t)}function jSe(t,e){const o=gae();o.__VUE__=!0;const{insert:f,remove:P,patchProp:d,createElement:l,createText:n,createComment:c,setText:b,setElementText:i,parentNode:O,nextSibling:w,setScopeId:y=yx,insertStaticContent:p}=t,a=(se,ae,ce,de=null,ve=null,ye=null,_e=!1,Se=null,Te=!!ae.dynamicChildren)=>{if(se===ae)return;se&&!t_(se,ae)&&(de=q(se),X(se,ve,ye,!0),se=null),ae.patchFlag===-2&&(Te=!1,ae.dynamicChildren=null);const{type:Pe,ref:Ie,shapeFlag:ze}=ae;switch(Pe){case hD:u(se,ae,ce,de);break;case k0:h(se,ae,ce,de);break;case nie:se==null&&m(ae,ce,de,_e);break;case ma:C(se,ae,ce,de,ve,ye,_e,Se,Te);break;default:ze&1?S(se,ae,ce,de,ve,ye,_e,Se,Te):ze&6?L(se,ae,ce,de,ve,ye,_e,Se,Te):(ze&64||ze&128)&&Pe.process(se,ae,ce,de,ve,ye,_e,Se,Te,ee)}Ie!=null&&ve&&kae(Ie,se&&se.ref,ye,ae||se,!ae)},u=(se,ae,ce,de)=>{if(se==null)f(ae.el=n(ae.children),ce,de);else{const ve=ae.el=se.el;ae.children!==se.children&&b(ve,ae.children)}},h=(se,ae,ce,de)=>{se==null?f(ae.el=c(ae.children||""),ce,de):ae.el=se.el},m=(se,ae,ce,de)=>{[se.el,se.anchor]=p(se.children,ae,ce,de,se.el,se.anchor)},v=({el:se,anchor:ae},ce,de)=>{let ve;for(;se&&se!==ae;)ve=w(se),f(se,ce,de),se=ve;f(ae,ce,de)},_=({el:se,anchor:ae})=>{let ce;for(;se&&se!==ae;)ce=w(se),P(se),se=ce;P(ae)},S=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{_e=_e||ae.type==="svg",se==null?A(ae,ce,de,ve,ye,_e,Se,Te):M(se,ae,ve,ye,_e,Se,Te)},A=(se,ae,ce,de,ve,ye,_e,Se)=>{let Te,Pe;const{type:Ie,props:ze,shapeFlag:De,transition:He,dirs:Ve}=se;if(Te=se.el=l(se.type,ye,ze&&ze.is,ze),De&8?i(Te,se.children):De&16&&R(se.children,Te,null,de,ve,ye&&Ie!=="foreignObject",_e,Se),Ve&&Qk(se,null,de,"created"),x(Te,se,se.scopeId,_e,de),ze){for(const Oe in ze)Oe!=="value"&&!lH(Oe)&&d(Te,Oe,null,ze[Oe],ye,se.children,de,ve,oe);"value"in ze&&d(Te,"value",null,ze.value),(Pe=ze.onVnodeBeforeMount)&&W2(Pe,de,se)}Ve&&Qk(se,null,de,"beforeMount");const $e=(!ve||ve&&!ve.pendingBranch)&&He&&!He.persisted;$e&&He.beforeEnter(Te),f(Te,ae,ce),((Pe=ze&&ze.onVnodeMounted)||$e||Ve)&&g1(()=>{Pe&&W2(Pe,de,se),$e&&He.enter(Te),Ve&&Qk(se,null,de,"mounted")},ve)},x=(se,ae,ce,de,ve)=>{if(ce&&y(se,ce),de)for(let ye=0;ye{for(let Pe=Te;Pe{const Se=ae.el=se.el;let{patchFlag:Te,dynamicChildren:Pe,dirs:Ie}=ae;Te|=se.patchFlag&16;const ze=se.props||od,De=ae.props||od;let He;ce&&Hk(ce,!1),(He=De.onVnodeBeforeUpdate)&&W2(He,ce,ae,se),Ie&&Qk(ae,se,ce,"beforeUpdate"),ce&&Hk(ce,!0);const Ve=ve&&ae.type!=="foreignObject";if(Pe?T(se.dynamicChildren,Pe,Se,ce,de,Ve,ye):_e||$(se,ae,Se,null,ce,de,Ve,ye,!1),Te>0){if(Te&16)E(Se,ae,ze,De,ce,de,ve);else if(Te&2&&ze.class!==De.class&&d(Se,"class",null,De.class,ve),Te&4&&d(Se,"style",ze.style,De.style,ve),Te&8){const $e=ae.dynamicProps;for(let Oe=0;Oe<$e.length;Oe++){const ke=$e[Oe],Le=ze[ke],We=De[ke];(We!==Le||ke==="value")&&d(Se,ke,Le,We,ve,se.children,ce,de,oe)}}Te&1&&se.children!==ae.children&&i(Se,ae.children)}else!_e&&Pe==null&&E(Se,ae,ze,De,ce,de,ve);((He=De.onVnodeUpdated)||Ie)&&g1(()=>{He&&W2(He,ce,ae,se),Ie&&Qk(ae,se,ce,"updated")},de)},T=(se,ae,ce,de,ve,ye,_e)=>{for(let Se=0;Se{if(ce!==de){if(ce!==od)for(const Se in ce)!lH(Se)&&!(Se in de)&&d(se,Se,ce[Se],null,_e,ae.children,ve,ye,oe);for(const Se in de){if(lH(Se))continue;const Te=de[Se],Pe=ce[Se];Te!==Pe&&Se!=="value"&&d(se,Se,Pe,Te,_e,ae.children,ve,ye,oe)}"value"in de&&d(se,"value",ce.value,de.value)}},C=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{const Pe=ae.el=se?se.el:n(""),Ie=ae.anchor=se?se.anchor:n("");let{patchFlag:ze,dynamicChildren:De,slotScopeIds:He}=ae;He&&(Se=Se?Se.concat(He):He),se==null?(f(Pe,ce,de),f(Ie,ce,de),R(ae.children,ce,Ie,ve,ye,_e,Se,Te)):ze>0&&ze&64&&De&&se.dynamicChildren?(T(se.dynamicChildren,De,ce,ve,ye,_e,Se),(ae.key!=null||ve&&ae===ve.subTree)&&Qle(se,ae,!0)):$(se,ae,ce,Ie,ve,ye,_e,Se,Te)},L=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{ae.slotScopeIds=Se,se==null?ae.shapeFlag&512?ve.ctx.activate(ae,ce,de,_e,Te):D(ae,ce,de,ve,ye,_e,Te):k(se,ae,Te)},D=(se,ae,ce,de,ve,ye,_e)=>{const Se=se.component=JSe(se,de,ve);if(jZ(se)&&(Se.ctx.renderer=ee),e5e(Se),Se.asyncDep){if(ve&&ve.registerDep(Se,I),!se.el){const Te=Se.subTree=Ht(k0);h(null,Te,ae,ce)}return}I(Se,se,ae,ce,ve,ye,_e)},k=(se,ae,ce)=>{const de=ae.component=se.component;if(lSe(se,ae,ce))if(de.asyncDep&&!de.asyncResolved){z(de,ae,ce);return}else de.next=ae,nSe(de.update),de.update();else ae.el=se.el,de.vnode=ae},I=(se,ae,ce,de,ve,ye,_e)=>{const Se=()=>{if(se.isMounted){let{next:Ie,bu:ze,u:De,parent:He,vnode:Ve}=se,$e=Ie,Oe;Hk(se,!1),Ie?(Ie.el=Ve.el,z(se,Ie,_e)):Ie=Ve,ze&&cH(ze),(Oe=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&W2(Oe,He,Ie,Ve),Hk(se,!0);const ke=Joe(se),Le=se.subTree;se.subTree=ke,a(Le,ke,O(Le.el),q(Le),se,ve,ye),Ie.el=ke.el,$e===null&&Ple(se,ke.el),De&&g1(De,ve),(Oe=Ie.props&&Ie.props.onVnodeUpdated)&&g1(()=>W2(Oe,He,Ie,Ve),ve)}else{let Ie;const{el:ze,props:De}=ae,{bm:He,m:Ve,parent:$e}=se,Oe=nI(ae);if(Hk(se,!1),He&&cH(He),!Oe&&(Ie=De&&De.onVnodeBeforeMount)&&W2(Ie,$e,ae),Hk(se,!0),ze&&he){const ke=()=>{se.subTree=Joe(se),he(ze,se.subTree,se,ve,null)};Oe?ae.type.__asyncLoader().then(()=>!se.isUnmounted&&ke()):ke()}else{const ke=se.subTree=Joe(se);a(null,ke,ce,de,se,ve,ye),ae.el=ke.el}if(Ve&&g1(Ve,ve),!Oe&&(Ie=De&&De.onVnodeMounted)){const ke=ae;g1(()=>W2(Ie,$e,ke),ve)}(ae.shapeFlag&256||$e&&nI($e.vnode)&&$e.vnode.shapeFlag&256)&&se.a&&g1(se.a,ve),se.isMounted=!0,ae=ce=de=null}},Te=se.effect=new _le(Se,()=>Ale(Pe),se.scope),Pe=se.update=()=>Te.run();Pe.id=se.uid,Hk(se,!0),Pe()},z=(se,ae,ce)=>{ae.component=se;const de=se.vnode.props;se.vnode=ae,se.next=null,FSe(se,ae.props,de,ce),VSe(se,ae.children,ce),kM(),Sde(),TM()},$=(se,ae,ce,de,ve,ye,_e,Se,Te=!1)=>{const Pe=se&&se.children,Ie=se?se.shapeFlag:0,ze=ae.children,{patchFlag:De,shapeFlag:He}=ae;if(De>0){if(De&128){j(Pe,ze,ce,de,ve,ye,_e,Se,Te);return}else if(De&256){Q(Pe,ze,ce,de,ve,ye,_e,Se,Te);return}}He&8?(Ie&16&&oe(Pe,ve,ye),ze!==Pe&&i(ce,ze)):Ie&16?He&16?j(Pe,ze,ce,de,ve,ye,_e,Se,Te):oe(Pe,ve,ye,!0):(Ie&8&&i(ce,""),He&16&&R(ze,ce,de,ve,ye,_e,Se,Te))},Q=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{se=se||ZA,ae=ae||ZA;const Pe=se.length,Ie=ae.length,ze=Math.min(Pe,Ie);let De;for(De=0;DeIe?oe(se,ve,ye,!0,!1,ze):R(ae,ce,de,ve,ye,_e,Se,Te,ze)},j=(se,ae,ce,de,ve,ye,_e,Se,Te)=>{let Pe=0;const Ie=ae.length;let ze=se.length-1,De=Ie-1;for(;Pe<=ze&&Pe<=De;){const He=se[Pe],Ve=ae[Pe]=Te?V4(ae[Pe]):px(ae[Pe]);if(t_(He,Ve))a(He,Ve,ce,null,ve,ye,_e,Se,Te);else break;Pe++}for(;Pe<=ze&&Pe<=De;){const He=se[ze],Ve=ae[De]=Te?V4(ae[De]):px(ae[De]);if(t_(He,Ve))a(He,Ve,ce,null,ve,ye,_e,Se,Te);else break;ze--,De--}if(Pe>ze){if(Pe<=De){const He=De+1,Ve=HeDe)for(;Pe<=ze;)X(se[Pe],ve,ye,!0),Pe++;else{const He=Pe,Ve=Pe,$e=new Map;for(Pe=Ve;Pe<=De;Pe++){const tt=ae[Pe]=Te?V4(ae[Pe]):px(ae[Pe]);tt.key!=null&&$e.set(tt.key,Pe)}let Oe,ke=0;const Le=De-Ve+1;let We=!1,Ue=0;const Ze=new Array(Le);for(Pe=0;Pe=Le){X(tt,ve,ye,!0);continue}let Ee;if(tt.key!=null)Ee=$e.get(tt.key);else for(Oe=Ve;Oe<=De;Oe++)if(Ze[Oe-Ve]===0&&t_(tt,ae[Oe])){Ee=Oe;break}Ee===void 0?X(tt,ve,ye,!0):(Ze[Ee-Ve]=Pe+1,Ee>=Ue?Ue=Ee:We=!0,a(tt,ae[Ee],ce,null,ve,ye,_e,Se,Te),ke++)}const Xe=We?QSe(Ze):ZA;for(Oe=Xe.length-1,Pe=Le-1;Pe>=0;Pe--){const tt=Ve+Pe,Ee=ae[tt],Ne=tt+1{const{el:ye,type:_e,transition:Se,children:Te,shapeFlag:Pe}=se;if(Pe&6){U(se.component.subTree,ae,ce,de);return}if(Pe&128){se.suspense.move(ae,ce,de);return}if(Pe&64){_e.move(se,ae,ce,ee);return}if(_e===ma){f(ye,ae,ce);for(let ze=0;zeSe.enter(ye),ve);else{const{leave:ze,delayLeave:De,afterLeave:He}=Se,Ve=()=>f(ye,ae,ce),$e=()=>{ze(ye,()=>{Ve(),He&&He()})};De?De(ye,Ve,$e):$e()}else f(ye,ae,ce)},X=(se,ae,ce,de=!1,ve=!1)=>{const{type:ye,props:_e,ref:Se,children:Te,dynamicChildren:Pe,shapeFlag:Ie,patchFlag:ze,dirs:De}=se;if(Se!=null&&kae(Se,null,ce,se,!0),Ie&256){ae.ctx.deactivate(se);return}const He=Ie&1&&De,Ve=!nI(se);let $e;if(Ve&&($e=_e&&_e.onVnodeBeforeUnmount)&&W2($e,ae,se),Ie&6)K(se.component,ce,de);else{if(Ie&128){se.suspense.unmount(ce,de);return}He&&Qk(se,null,ae,"beforeUnmount"),Ie&64?se.type.remove(se,ae,ce,ve,ee,de):Pe&&(ye!==ma||ze>0&&ze&64)?oe(Pe,ae,ce,!1,!0):(ye===ma&&ze&384||!ve&&Ie&16)&&oe(Te,ae,ce),de&&te(se)}(Ve&&($e=_e&&_e.onVnodeUnmounted)||He)&&g1(()=>{$e&&W2($e,ae,se),He&&Qk(se,null,ae,"unmounted")},ce)},te=se=>{const{type:ae,el:ce,anchor:de,transition:ve}=se;if(ae===ma){W(ce,de);return}if(ae===nie){_(se);return}const ye=()=>{P(ce),ve&&!ve.persisted&&ve.afterLeave&&ve.afterLeave()};if(se.shapeFlag&1&&ve&&!ve.persisted){const{leave:_e,delayLeave:Se}=ve,Te=()=>_e(ce,ye);Se?Se(se.el,ye,Te):Te()}else ye()},W=(se,ae)=>{let ce;for(;se!==ae;)ce=w(se),P(se),se=ce;P(ae)},K=(se,ae,ce)=>{const{bum:de,scope:ve,update:ye,subTree:_e,um:Se}=se;de&&cH(de),ve.stop(),ye&&(ye.active=!1,X(_e,se,ae,ce)),Se&&g1(Se,ae),g1(()=>{se.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&se.asyncDep&&!se.asyncResolved&&se.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},oe=(se,ae,ce,de=!1,ve=!1,ye=0)=>{for(let _e=ye;_ese.shapeFlag&6?q(se.component.subTree):se.shapeFlag&128?se.suspense.next():w(se.anchor||se.el),Y=(se,ae,ce)=>{se==null?ae._vnode&&X(ae._vnode,null,null,!0):a(ae._vnode||null,se,ae,null,null,null,ce),Sde(),R1e(),ae._vnode=se},ee={p:a,um:X,m:U,r:te,mt:D,mc:R,pc:$,pbc:T,n:q,o:t};let me,he;return e&&([me,he]=e(ee)),{render:Y,hydrate:me,createApp:DSe(Y,me)}}function Hk({effect:t,update:e},o){t.allowRecurse=e.allowRecurse=o}function Qle(t,e,o=!1){const f=t.children,P=e.children;if(xs(f)&&xs(P))for(let d=0;d>1,t[o[n]]0&&(e[f]=o[d-1]),o[d]=f)}}for(d=o.length,l=o[d-1];d-- >0;)o[d]=l,l=e[l];return o}const HSe=t=>t.__isTeleport,oI=t=>t&&(t.disabled||t.disabled===""),Fde=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Tae=(t,e)=>{const o=t&&t.to;return hh(o)?e?e(o):null:o},ZSe={__isTeleport:!0,process(t,e,o,f,P,d,l,n,c,b){const{mc:i,pc:O,pbc:w,o:{insert:y,querySelector:p,createText:a,createComment:u}}=b,h=oI(e.props);let{shapeFlag:m,children:v,dynamicChildren:_}=e;if(t==null){const S=e.el=a(""),A=e.anchor=a("");y(S,o,f),y(A,o,f);const x=e.target=Tae(e.props,p),R=e.targetAnchor=a("");x&&(y(R,x),l=l||Fde(x));const M=(T,E)=>{m&16&&i(v,T,E,P,d,l,n,c)};h?M(o,A):x&&M(x,R)}else{e.el=t.el;const S=e.anchor=t.anchor,A=e.target=t.target,x=e.targetAnchor=t.targetAnchor,R=oI(t.props),M=R?o:A,T=R?S:x;if(l=l||Fde(A),_?(w(t.dynamicChildren,_,M,P,d,l,n),Qle(t,e,!0)):c||O(t,e,M,T,P,d,l,n,!1),h)R||OQ(e,o,S,b,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const E=e.target=Tae(e.props,p);E&&OQ(e,E,null,b,0)}else R&&OQ(e,A,x,b,1)}G1e(e)},remove(t,e,o,f,{um:P,o:{remove:d}},l){const{shapeFlag:n,children:c,anchor:b,targetAnchor:i,target:O,props:w}=t;if(O&&d(i),(l||!oI(w))&&(d(b),n&16))for(let y=0;y0?Yy||ZA:null,K1e(),iM>0&&Yy&&Yy.push(t),t}function Da(t,e,o,f,P,d){return J1e(ha(t,e,o,f,P,d,!0))}function sa(t,e,o,f,P){return J1e(Ht(t,e,o,f,P,!0))}function aM(t){return t?t.__v_isVNode===!0:!1}function t_(t,e){return t.type===e.type&&t.key===e.key}const HZ="__vInternal",eve=({key:t})=>t??null,uH=({ref:t,ref_key:e,ref_for:o})=>(typeof t=="number"&&(t=""+t),t!=null?hh(t)||Dc(t)||ll(t)?{i:cm,r:t,k:e,f:!!o}:t:null);function ha(t,e=null,o=null,f=0,P=null,d=t===ma?0:1,l=!1,n=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&eve(e),ref:e&&uH(e),scopeId:UZ,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:f,dynamicProps:P,dynamicChildren:null,appContext:null,ctx:cm};return n?(Hle(c,o),d&128&&t.normalize(c)):o&&(c.shapeFlag|=hh(o)?8:16),iM>0&&!l&&Yy&&(c.patchFlag>0||d&6)&&c.patchFlag!==32&&Yy.push(c),c}const Ht=YSe;function YSe(t,e=null,o=null,f=0,P=null,d=!1){if((!t||t===V1e)&&(t=k0),aM(t)){const n=TO(t,e,!0);return o&&Hle(n,o),iM>0&&!d&&Yy&&(n.shapeFlag&6?Yy[Yy.indexOf(t)]=n:Yy.push(n)),n.patchFlag|=-2,n}if(i5e(t)&&(t=t.__vccOpts),e){e=XSe(e);let{class:n,style:c}=e;n&&!hh(n)&&(e.class=Nv(n)),Ff(c)&&(O1e(c)&&!xs(c)&&(c=Nh({},c)),e.style=cD(c))}const l=hh(t)?1:cSe(t)?128:HSe(t)?64:Ff(t)?4:ll(t)?2:0;return ha(t,e,o,f,P,l,d,!0)}function XSe(t){return t?O1e(t)||HZ in t?Nh({},t):t:null}function TO(t,e,o=!1){const{props:f,ref:P,patchFlag:d,children:l}=t,n=e?Ii(f||{},e):f;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:n,key:n&&eve(n),ref:e&&e.ref?o&&P?xs(P)?P.concat(uH(e)):[P,uH(e)]:uH(e):P,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ma?d===-1?16:d|16:d,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&TO(t.ssContent),ssFallback:t.ssFallback&&TO(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Ss(t=" ",e=0){return Ht(hD,null,t,e)}function Za(t="",e=!1){return e?(Do(),sa(k0,null,t)):Ht(k0,null,t)}function px(t){return t==null||typeof t=="boolean"?Ht(k0):xs(t)?Ht(ma,null,t.slice()):typeof t=="object"?V4(t):Ht(hD,null,String(t))}function V4(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:TO(t)}function Hle(t,e){let o=0;const{shapeFlag:f}=t;if(e==null)e=null;else if(xs(e))o=16;else if(typeof e=="object")if(f&65){const P=e.default;P&&(P._c&&(P._d=!1),Hle(t,P()),P._c&&(P._d=!0));return}else{o=32;const P=e._;!P&&!(HZ in e)?e._ctx=cm:P===3&&cm&&(cm.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ll(e)?(e={default:e,_ctx:cm},o=32):(e=String(e),f&64?(o=16,e=[Ss(e)]):o=8);t.children=e,t.shapeFlag|=o}function Ii(...t){const e={};for(let o=0;oOp||cm;let qle,MA,$de="__VUE_INSTANCE_SETTERS__";(MA=gae()[$de])||(MA=gae()[$de]=[]),MA.push(t=>Op=t),qle=t=>{MA.length>1?MA.forEach(e=>e(t)):MA[0](t)};const sM=t=>{qle(t),t.scope.on()},uT=()=>{Op&&Op.scope.off(),qle(null)};function tve(t){return t.vnode.shapeFlag&4}let CI=!1;function e5e(t,e=!1){CI=e;const{props:o,children:f}=t.vnode,P=tve(t);zSe(t,o,P,e),$Se(t,f);const d=P?t5e(t,e):void 0;return CI=!1,d}function t5e(t,e){const o=t.type;t.accessCache=Object.create(null),t.proxy=fD(new Proxy(t.ctx,ASe));const{setup:f}=o;if(f){const P=t.setupContext=f.length>1?r5e(t):null;sM(t),kM();const d=J4(f,t,0,[t.props,P]);if(TM(),uT(),o1e(d)){if(d.then(uT,uT),e)return d.then(l=>{Cae(t,l,e)}).catch(l=>{dD(l,t,0)});t.asyncDep=d}else Cae(t,d,e)}else nve(t,e)}function Cae(t,e,o){ll(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ff(e)&&(t.setupState=C1e(e)),nve(t,o)}let Vde;function nve(t,e,o){const f=t.type;if(!t.render){if(!e&&Vde&&!f.render){const P=f.template||Ule(t).template;if(P){const{isCustomElement:d,compilerOptions:l}=t.appContext.config,{delimiters:n,compilerOptions:c}=f,b=Nh(Nh({isCustomElement:d,delimiters:n},l),c);f.render=Vde(P,b)}}t.render=f.render||yx}sM(t),kM(),MSe(t),TM(),uT()}function n5e(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,o){return _1(t,"get","$attrs"),e[o]}}))}function r5e(t){const e=o=>{t.exposed=o||{}};return{get attrs(){return n5e(t)},slots:t.slots,emit:t.emit,expose:e}}function ZZ(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(C1e(fD(t.exposed)),{get(e,o){if(o in e)return e[o];if(o in rI)return rI[o](t)},has(e,o){return o in e||o in rI}}))}function o5e(t,e=!0){return ll(t)?t.displayName||t.name:t.name||e&&t.__name}function i5e(t){return ll(t)&&"__vccOpts"in t}const Un=(t,e)=>J4e(t,e,CI);function w1(t,e,o){const f=arguments.length;return f===2?Ff(e)&&!xs(e)?aM(e)?Ht(t,null,[e]):Ht(t,e):Ht(t,null,e):(f>3?o=Array.prototype.slice.call(arguments,2):f===3&&aM(o)&&(o=[o]),Ht(t,e,o))}const a5e=Symbol.for("v-scx"),s5e=()=>yl(a5e),l5e="3.3.4",c5e="http://www.w3.org/2000/svg",tT=typeof document<"u"?document:null,Ude=tT&&tT.createElement("template"),u5e={insert:(t,e,o)=>{e.insertBefore(t,o||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,o,f)=>{const P=e?tT.createElementNS(c5e,t):tT.createElement(t,o?{is:o}:void 0);return t==="select"&&f&&f.multiple!=null&&P.setAttribute("multiple",f.multiple),P},createText:t=>tT.createTextNode(t),createComment:t=>tT.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>tT.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,o,f,P,d){const l=o?o.previousSibling:e.lastChild;if(P&&(P===d||P.nextSibling))for(;e.insertBefore(P.cloneNode(!0),o),!(P===d||!(P=P.nextSibling)););else{Ude.innerHTML=f?`${t}`:t;const n=Ude.content;if(f){const c=n.firstChild;for(;c.firstChild;)n.appendChild(c.firstChild);n.removeChild(c)}e.insertBefore(n,o)}return[l?l.nextSibling:e.firstChild,o?o.previousSibling:e.lastChild]}};function f5e(t,e,o){const f=t._vtc;f&&(e=(e?[e,...f]:[...f]).join(" ")),e==null?t.removeAttribute("class"):o?t.setAttribute("class",e):t.className=e}function d5e(t,e,o){const f=t.style,P=hh(o);if(o&&!P){if(e&&!hh(e))for(const d in e)o[d]==null&&Aae(f,d,"");for(const d in o)Aae(f,d,o[d])}else{const d=f.display;P?e!==o&&(f.cssText=o):e&&t.removeAttribute("style"),"_vod"in t&&(f.display=d)}}const jde=/\s*!important$/;function Aae(t,e,o){if(xs(o))o.forEach(f=>Aae(t,e,f));else if(o==null&&(o=""),e.startsWith("--"))t.setProperty(e,o);else{const f=h5e(t,e);jde.test(o)?t.setProperty(xT(f),o.replace(jde,""),"important"):t[f]=o}}const Qde=["Webkit","Moz","ms"],rie={};function h5e(t,e){const o=rie[e];if(o)return o;let f=rb(e);if(f!=="filter"&&f in t)return rie[e]=f;f=v_(f);for(let P=0;Poie||(b5e.then(()=>oie=0),oie=Date.now());function _5e(t,e){const o=f=>{if(!f._vts)f._vts=Date.now();else if(f._vts<=o.attached)return;eb(w5e(f,o.value),e,5,[f])};return o.value=t,o.attached=x5e(),o}function w5e(t,e){if(xs(e)){const o=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{o.call(t),t._stopped=!0},e.map(f=>P=>!P._stopped&&f&&f(P))}else return e}const qde=/^on[a-z]/,O5e=(t,e,o,f,P=!1,d,l,n,c)=>{e==="class"?f5e(t,f,P):e==="style"?d5e(t,o,f):zZ(e)?gle(e)||v5e(t,e,o,f,l):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):S5e(t,e,f,P))?m5e(t,e,f,d,l,n,c):(e==="true-value"?t._trueValue=f:e==="false-value"&&(t._falseValue=f),p5e(t,e,f,P))};function S5e(t,e,o,f){return f?!!(e==="innerHTML"||e==="textContent"||e in t&&qde.test(e)&&ll(o)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||qde.test(e)&&hh(o)?!1:e in t}const B4="transition",PL="animation",h_=(t,{slots:e})=>w1(xSe,ove(t),e);h_.displayName="Transition";const rve={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},k5e=h_.props=Nh({},z1e,rve),Zk=(t,e=[])=>{xs(t)?t.forEach(o=>o(...e)):t&&t(...e)},Wde=t=>t?xs(t)?t.some(e=>e.length>1):t.length>1:!1;function ove(t){const e={};for(const C in t)C in rve||(e[C]=t[C]);if(t.css===!1)return e;const{name:o="v",type:f,duration:P,enterFromClass:d=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:n=`${o}-enter-to`,appearFromClass:c=d,appearActiveClass:b=l,appearToClass:i=n,leaveFromClass:O=`${o}-leave-from`,leaveActiveClass:w=`${o}-leave-active`,leaveToClass:y=`${o}-leave-to`}=t,p=T5e(P),a=p&&p[0],u=p&&p[1],{onBeforeEnter:h,onEnter:m,onEnterCancelled:v,onLeave:_,onLeaveCancelled:S,onBeforeAppear:A=h,onAppear:x=m,onAppearCancelled:R=v}=e,M=(C,L,D)=>{N4(C,L?i:n),N4(C,L?b:l),D&&D()},T=(C,L)=>{C._isLeaving=!1,N4(C,O),N4(C,y),N4(C,w),L&&L()},E=C=>(L,D)=>{const k=C?x:m,I=()=>M(L,C,D);Zk(k,[L,I]),Yde(()=>{N4(L,C?c:d),bO(L,C?i:n),Wde(k)||Xde(L,f,a,I)})};return Nh(e,{onBeforeEnter(C){Zk(h,[C]),bO(C,d),bO(C,l)},onBeforeAppear(C){Zk(A,[C]),bO(C,c),bO(C,b)},onEnter:E(!1),onAppear:E(!0),onLeave(C,L){C._isLeaving=!0;const D=()=>T(C,L);bO(C,O),ave(),bO(C,w),Yde(()=>{C._isLeaving&&(N4(C,O),bO(C,y),Wde(_)||Xde(C,f,u,D))}),Zk(_,[C,D])},onEnterCancelled(C){M(C,!1),Zk(v,[C])},onAppearCancelled(C){M(C,!0),Zk(R,[C])},onLeaveCancelled(C){T(C),Zk(S,[C])}})}function T5e(t){if(t==null)return null;if(Ff(t))return[iie(t.enter),iie(t.leave)];{const e=iie(t);return[e,e]}}function iie(t){return s1e(t)}function bO(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.add(o)),(t._vtc||(t._vtc=new Set)).add(e)}function N4(t,e){e.split(/\s+/).forEach(f=>f&&t.classList.remove(f));const{_vtc:o}=t;o&&(o.delete(e),o.size||(t._vtc=void 0))}function Yde(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let C5e=0;function Xde(t,e,o,f){const P=t._endId=++C5e,d=()=>{P===t._endId&&f()};if(o)return setTimeout(d,o);const{type:l,timeout:n,propCount:c}=ive(t,e);if(!l)return f();const b=l+"end";let i=0;const O=()=>{t.removeEventListener(b,w),d()},w=y=>{y.target===t&&++i>=c&&O()};setTimeout(()=>{i(o[p]||"").split(", "),P=f(`${B4}Delay`),d=f(`${B4}Duration`),l=Gde(P,d),n=f(`${PL}Delay`),c=f(`${PL}Duration`),b=Gde(n,c);let i=null,O=0,w=0;e===B4?l>0&&(i=B4,O=l,w=d.length):e===PL?b>0&&(i=PL,O=b,w=c.length):(O=Math.max(l,b),i=O>0?l>b?B4:PL:null,w=i?i===B4?d.length:c.length:0);const y=i===B4&&/\b(transform|all)(,|$)/.test(f(`${B4}Property`).toString());return{type:i,timeout:O,propCount:w,hasTransform:y}}function Gde(t,e){for(;t.lengthKde(o)+Kde(t[f])))}function Kde(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function ave(){return document.body.offsetHeight}const sve=new WeakMap,lve=new WeakMap,cve={name:"TransitionGroup",props:Nh({},k5e,{tag:String,moveClass:String}),setup(t,{slots:e}){const o=Zle(),f=B1e();let P,d;return Fle(()=>{if(!P.length)return;const l=t.moveClass||`${t.name||"v"}-move`;if(!R5e(P[0].el,o.vnode.el,l))return;P.forEach(M5e),P.forEach(E5e);const n=P.filter(P5e);ave(),n.forEach(c=>{const b=c.el,i=b.style;bO(b,l),i.transform=i.webkitTransform=i.transitionDuration="";const O=b._moveCb=w=>{w&&w.target!==b||(!w||/transform$/.test(w.propertyName))&&(b.removeEventListener("transitionend",O),b._moveCb=null,N4(b,l))};b.addEventListener("transitionend",O)})}),()=>{const l=As(t),n=ove(l);let c=l.tag||ma;P=d,d=e.default?Ile(e.default()):[];for(let b=0;bdelete t.mode;cve.props;const Wle=cve;function M5e(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function E5e(t){lve.set(t,t.el.getBoundingClientRect())}function P5e(t){const e=sve.get(t),o=lve.get(t),f=e.left-o.left,P=e.top-o.top;if(f||P){const d=t.el.style;return d.transform=d.webkitTransform=`translate(${f}px,${P}px)`,d.transitionDuration="0s",t}}function R5e(t,e,o){const f=t.cloneNode();t._vtc&&t._vtc.forEach(l=>{l.split(/\s+/).forEach(n=>n&&f.classList.remove(n))}),o.split(/\s+/).forEach(l=>l&&f.classList.add(l)),f.style.display="none";const P=e.nodeType===1?e:e.parentNode;P.appendChild(f);const{hasTransform:d}=ive(f);return P.removeChild(f),d}const Jde=t=>{const e=t.props["onUpdate:modelValue"]||!1;return xs(e)?o=>cH(e,o):e};function L5e(t){t.target.composing=!0}function ehe(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const I5e={created(t,{modifiers:{lazy:e,trim:o,number:f}},P){t._assign=Jde(P);const d=f||P.props&&P.props.type==="number";BA(t,e?"change":"input",l=>{if(l.target.composing)return;let n=t.value;o&&(n=n.trim()),d&&(n=mae(n)),t._assign(n)}),o&&BA(t,"change",()=>{t.value=t.value.trim()}),e||(BA(t,"compositionstart",L5e),BA(t,"compositionend",ehe),BA(t,"change",ehe))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:o,trim:f,number:P}},d){if(t._assign=Jde(d),t.composing||document.activeElement===t&&t.type!=="range"&&(o||f&&t.value.trim()===e||(P||t.type==="number")&&mae(t.value)===e))return;const l=e??"";t.value!==l&&(t.value=l)}},D5e=["ctrl","shift","alt","meta"],B5e={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>D5e.some(o=>t[`${o}Key`]&&!e.includes(o))},DH=(t,e)=>(o,...f)=>{for(let P=0;Po=>{if(!("key"in o))return;const f=xT(o.key);if(e.some(P=>P===f||z5e[P]===f))return t(o)},mS={beforeMount(t,{value:e},{transition:o}){t._vod=t.style.display==="none"?"":t.style.display,o&&e?o.beforeEnter(t):RL(t,e)},mounted(t,{value:e},{transition:o}){o&&e&&o.enter(t)},updated(t,{value:e,oldValue:o},{transition:f}){!e!=!o&&(f?e?(f.beforeEnter(t),RL(t,!0),f.enter(t)):f.leave(t,()=>{RL(t,!1)}):RL(t,e))},beforeUnmount(t,{value:e}){RL(t,e)}};function RL(t,e){t.style.display=e?t._vod:"none"}const F5e=Nh({patchProp:O5e},u5e);let the;function N5e(){return the||(the=USe(F5e))}const $5e=(...t)=>{const e=N5e().createApp(...t),{mount:o}=e;return e.mount=f=>{const P=V5e(f);if(!P)return;const d=e._component;!ll(d)&&!d.render&&!d.template&&(d.template=P.innerHTML),P.innerHTML="";const l=o(P,!1,P instanceof SVGElement);return P instanceof Element&&(P.removeAttribute("v-cloak"),P.setAttribute("data-v-app","")),l},e};function V5e(t){return hh(t)?document.querySelector(t):t}/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const BA=typeof window<"u";function V5e(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const $u=Object.assign;function aie(t,e){const o={};for(const f in e){const P=e[f];o[f]=yx(P)?P.map(t):t(P)}return o}const iI=()=>{},yx=Array.isArray,U5e=/\/$/,j5e=t=>t.replace(U5e,"");function sie(t,e,o="/"){let f,P={},d="",l="";const n=e.indexOf("#");let c=e.indexOf("?");return n=0&&(c=-1),c>-1&&(f=e.slice(0,c),d=e.slice(c+1,n>-1?n:e.length),P=t(d)),n>-1&&(f=f||e.slice(0,n),l=e.slice(n,e.length)),f=q5e(f??e,o),{fullPath:f+(d&&"?")+d+l,path:f,query:P,hash:l}}function Q5e(t,e){const o=e.query?t(e.query):"";return e.path+(o&&"?")+o+(e.hash||"")}function the(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function H5e(t,e,o){const f=e.matched.length-1,P=o.matched.length-1;return f>-1&&f===P&&sM(e.matched[f],o.matched[P])&&uve(e.params,o.params)&&t(e.query)===t(o.query)&&e.hash===o.hash}function sM(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function uve(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const o in t)if(!Z5e(t[o],e[o]))return!1;return!0}function Z5e(t,e){return yx(t)?nhe(t,e):yx(e)?nhe(e,t):t===e}function nhe(t,e){return yx(e)?t.length===e.length&&t.every((o,f)=>o===e[f]):t.length===1&&t[0]===e}function q5e(t,e){if(t.startsWith("/"))return t;if(!t)return e;const o=e.split("/"),f=t.split("/"),P=f[f.length-1];(P===".."||P===".")&&f.push("");let d=o.length-1,l,n;for(l=0;l1&&d--;else break;return o.slice(0,d).join("/")+"/"+f.slice(l-(l===f.length?1:0)).join("/")}var CI;(function(t){t.pop="pop",t.push="push"})(CI||(CI={}));var aI;(function(t){t.back="back",t.forward="forward",t.unknown=""})(aI||(aI={}));function W5e(t){if(!t)if(BA){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),j5e(t)}const Y5e=/^[^#]+#/;function X5e(t,e){return t.replace(Y5e,"#")+e}function G5e(t,e){const o=document.documentElement.getBoundingClientRect(),f=t.getBoundingClientRect();return{behavior:e.behavior,left:f.left-o.left-(e.left||0),top:f.top-o.top-(e.top||0)}}const qZ=()=>({left:window.pageXOffset,top:window.pageYOffset});function K5e(t){let e;if("el"in t){const o=t.el,f=typeof o=="string"&&o.startsWith("#"),P=typeof o=="string"?f?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!P)return;e=G5e(P,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function rhe(t,e){return(history.state?history.state.position-e:-1)+t}const Mae=new Map;function J5e(t,e){Mae.set(t,e)}function eke(t){const e=Mae.get(t);return Mae.delete(t),e}let tke=()=>location.protocol+"//"+location.host;function fve(t,e){const{pathname:o,search:f,hash:P}=e,d=t.indexOf("#");if(d>-1){let n=P.includes(t.slice(d))?t.slice(d).length:1,c=P.slice(n);return c[0]!=="/"&&(c="/"+c),the(c,"")}return the(o,t)+f+P}function nke(t,e,o,f){let P=[],d=[],l=null;const n=({state:w})=>{const y=fve(t,location),p=o.value,a=e.value;let u=0;if(w){if(o.value=y,e.value=w,l&&l===p){l=null;return}u=a?w.position-a.position:0}else f(y);P.forEach(h=>{h(o.value,p,{delta:u,type:CI.pop,direction:u?u>0?aI.forward:aI.back:aI.unknown})})};function c(){l=o.value}function b(w){P.push(w);const y=()=>{const p=P.indexOf(w);p>-1&&P.splice(p,1)};return d.push(y),y}function i(){const{history:w}=window;w.state&&w.replaceState($u({},w.state,{scroll:qZ()}),"")}function O(){for(const w of d)w();d=[],window.removeEventListener("popstate",n),window.removeEventListener("beforeunload",i)}return window.addEventListener("popstate",n),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:c,listen:b,destroy:O}}function ohe(t,e,o,f=!1,P=!1){return{back:t,current:e,forward:o,replaced:f,position:window.history.length,scroll:P?qZ():null}}function rke(t){const{history:e,location:o}=window,f={value:fve(t,o)},P={value:e.state};P.value||d(f.value,{back:null,current:f.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function d(c,b,i){const O=t.indexOf("#"),w=O>-1?(o.host&&document.querySelector("base")?t:t.slice(O))+c:tke()+t+c;try{e[i?"replaceState":"pushState"](b,"",w),P.value=b}catch(y){console.error(y),o[i?"replace":"assign"](w)}}function l(c,b){const i=$u({},e.state,ohe(P.value.back,c,P.value.forward,!0),b,{position:P.value.position});d(c,i,!0),f.value=c}function n(c,b){const i=$u({},P.value,e.state,{forward:c,scroll:qZ()});d(i.current,i,!0);const O=$u({},ohe(f.value,c,null),{position:i.position+1},b);d(c,O,!1),f.value=c}return{location:f,state:P,push:n,replace:l}}function oke(t){t=W5e(t);const e=rke(t),o=nke(t,e.state,e.location,e.replace);function f(d,l=!0){l||o.pauseListeners(),history.go(d)}const P=$u({location:"",base:t,go:f,createHref:X5e.bind(null,t)},e,o);return Object.defineProperty(P,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(P,"state",{enumerable:!0,get:()=>e.state.value}),P}function ike(t){return typeof t=="string"||t&&typeof t=="object"}function dve(t){return typeof t=="string"||typeof t=="symbol"}const z4={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},hve=Symbol("");var ihe;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(ihe||(ihe={}));function lM(t,e){return $u(new Error,{type:t,[hve]:!0},e)}function yO(t,e){return t instanceof Error&&hve in t&&(e==null||!!(t.type&e))}const ahe="[^/]+?",ake={sensitive:!1,strict:!1,start:!0,end:!0},ske=/[.+*?^${}()[\]/\\]/g;function lke(t,e){const o=$u({},ake,e),f=[];let P=o.start?"^":"";const d=[];for(const b of t){const i=b.length?[]:[90];o.strict&&!b.length&&(P+="/");for(let O=0;Oe.length?e.length===1&&e[0]===40+40?1:-1:0}function uke(t,e){let o=0;const f=t.score,P=e.score;for(;o0&&e[e.length-1]<0}const fke={type:0,value:""},dke=/[a-zA-Z0-9_]/;function hke(t){if(!t)return[[]];if(t==="/")return[[fke]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(y){throw new Error(`ERR (${o})/"${b}": ${y}`)}let o=0,f=o;const P=[];let d;function l(){d&&P.push(d),d=[]}let n=0,c,b="",i="";function O(){b&&(o===0?d.push({type:0,value:b}):o===1||o===2||o===3?(d.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${b}) must be alone in its segment. eg: '/:ids+.`),d.push({type:1,value:b,regexp:i,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),b="")}function w(){b+=c}for(;n{l(m)}:iI}function l(i){if(dve(i)){const O=f.get(i);O&&(f.delete(i),o.splice(o.indexOf(O),1),O.children.forEach(l),O.alias.forEach(l))}else{const O=o.indexOf(i);O>-1&&(o.splice(O,1),i.record.name&&f.delete(i.record.name),i.children.forEach(l),i.alias.forEach(l))}}function n(){return o}function c(i){let O=0;for(;O=0&&(i.record.path!==o[O].record.path||!pve(i,o[O]));)O++;o.splice(O,0,i),i.record.name&&!che(i)&&f.set(i.record.name,i)}function b(i,O){let w,y={},p,a;if("name"in i&&i.name){if(w=f.get(i.name),!w)throw lM(1,{location:i});a=w.record.name,y=$u(lhe(O.params,w.keys.filter(m=>!m.optional).map(m=>m.name)),i.params&&lhe(i.params,w.keys.map(m=>m.name))),p=w.stringify(y)}else if("path"in i)p=i.path,w=o.find(m=>m.re.test(p)),w&&(y=w.parse(p),a=w.record.name);else{if(w=O.name?f.get(O.name):o.find(m=>m.re.test(O.path)),!w)throw lM(1,{location:i,currentLocation:O});a=w.record.name,y=$u({},O.params,i.params),p=w.stringify(y)}const u=[];let h=w;for(;h;)u.unshift(h.record),h=h.parent;return{name:a,path:p,params:y,matched:u,meta:yke(u)}}return t.forEach(i=>d(i)),{addRoute:d,resolve:b,removeRoute:l,getRoutes:n,getRecordMatcher:P}}function lhe(t,e){const o={};for(const f of e)f in t&&(o[f]=t[f]);return o}function gke(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:vke(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function vke(t){const e={},o=t.props||!1;if("component"in t)e.default=o;else for(const f in t.components)e[f]=typeof o=="object"?o[f]:o;return e}function che(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function yke(t){return t.reduce((e,o)=>$u(e,o.meta),{})}function uhe(t,e){const o={};for(const f in t)o[f]=f in e?e[f]:t[f];return o}function pve(t,e){return e.children.some(o=>o===t||pve(t,o))}const mve=/#/g,bke=/&/g,xke=/\//g,_ke=/=/g,wke=/\?/g,gve=/\+/g,Oke=/%5B/g,Ske=/%5D/g,vve=/%5E/g,kke=/%60/g,yve=/%7B/g,Tke=/%7C/g,bve=/%7D/g,Cke=/%20/g;function Yle(t){return encodeURI(""+t).replace(Tke,"|").replace(Oke,"[").replace(Ske,"]")}function Ake(t){return Yle(t).replace(yve,"{").replace(bve,"}").replace(vve,"^")}function Eae(t){return Yle(t).replace(gve,"%2B").replace(Cke,"+").replace(mve,"%23").replace(bke,"%26").replace(kke,"`").replace(yve,"{").replace(bve,"}").replace(vve,"^")}function Mke(t){return Eae(t).replace(_ke,"%3D")}function Eke(t){return Yle(t).replace(mve,"%23").replace(wke,"%3F")}function Pke(t){return t==null?"":Eke(t).replace(xke,"%2F")}function BH(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function Rke(t){const e={};if(t===""||t==="?")return e;const f=(t[0]==="?"?t.slice(1):t).split("&");for(let P=0;Pd&&Eae(d)):[f&&Eae(f)]).forEach(d=>{d!==void 0&&(e+=(e.length?"&":"")+o,d!=null&&(e+="="+d))})}return e}function Lke(t){const e={};for(const o in t){const f=t[o];f!==void 0&&(e[o]=yx(f)?f.map(P=>P==null?null:""+P):f==null?f:""+f)}return e}const Ike=Symbol(""),dhe=Symbol(""),Xle=Symbol(""),Gle=Symbol(""),Pae=Symbol("");function RL(){let t=[];function e(f){return t.push(f),()=>{const P=t.indexOf(f);P>-1&&t.splice(P,1)}}function o(){t=[]}return{add:e,list:()=>t.slice(),reset:o}}function U4(t,e,o,f,P){const d=f&&(f.enterCallbacks[P]=f.enterCallbacks[P]||[]);return()=>new Promise((l,n)=>{const c=O=>{O===!1?n(lM(4,{from:o,to:e})):O instanceof Error?n(O):ike(O)?n(lM(2,{from:e,to:O})):(d&&f.enterCallbacks[P]===d&&typeof O=="function"&&d.push(O),l())},b=t.call(f&&f.instances[P],e,o,c);let i=Promise.resolve(b);t.length<3&&(i=i.then(c)),i.catch(O=>n(O))})}function lie(t,e,o,f){const P=[];for(const d of t)for(const l in d.components){let n=d.components[l];if(!(e!=="beforeRouteEnter"&&!d.instances[l]))if(Dke(n)){const b=(n.__vccOpts||n)[e];b&&P.push(U4(b,o,f,d,l))}else{let c=n();P.push(()=>c.then(b=>{if(!b)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${d.path}"`));const i=V5e(b)?b.default:b;d.components[l]=i;const w=(i.__vccOpts||i)[e];return w&&U4(w,o,f,d,l)()}))}}return P}function Dke(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function hhe(t){const e=vl(Xle),o=vl(Gle),f=jn(()=>e.resolve(wa(t.to))),P=jn(()=>{const{matched:c}=f.value,{length:b}=c,i=c[b-1],O=o.matched;if(!i||!O.length)return-1;const w=O.findIndex(sM.bind(null,i));if(w>-1)return w;const y=phe(c[b-2]);return b>1&&phe(i)===y&&O[O.length-1].path!==y?O.findIndex(sM.bind(null,c[b-2])):w}),d=jn(()=>P.value>-1&&Nke(o.params,f.value.params)),l=jn(()=>P.value>-1&&P.value===o.matched.length-1&&uve(o.params,f.value.params));function n(c={}){return Fke(c)?e[wa(t.replace)?"replace":"push"](wa(t.to)).catch(iI):Promise.resolve()}return{route:f,href:jn(()=>f.value.href),isActive:d,isExactActive:l,navigate:n}}const Bke=Hg({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:hhe,setup(t,{slots:e}){const o=lm(hhe(t)),{options:f}=vl(Xle),P=jn(()=>({[mhe(t.activeClass,f.linkActiveClass,"router-link-active")]:o.isActive,[mhe(t.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const d=e.default&&e.default(o);return t.custom?d:w1("a",{"aria-current":o.isExactActive?t.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:P.value},d)}}}),zke=Bke;function Fke(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Nke(t,e){for(const o in e){const f=e[o],P=t[o];if(typeof f=="string"){if(f!==P)return!1}else if(!yx(P)||P.length!==f.length||f.some((d,l)=>d!==P[l]))return!1}return!0}function phe(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const mhe=(t,e,o)=>t??e??o,$ke=Hg({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:o}){const f=vl(Pae),P=jn(()=>t.route||f.value),d=vl(dhe,0),l=jn(()=>{let b=wa(d);const{matched:i}=P.value;let O;for(;(O=i[b])&&!O.components;)b++;return b}),n=jn(()=>P.value.matched[l.value]);gf(dhe,jn(()=>l.value+1)),gf(Ike,n),gf(Pae,P);const c=ei();return Ni(()=>[c.value,n.value,t.name],([b,i,O],[w,y,p])=>{i&&(i.instances[O]=b,y&&y!==i&&b&&b===w&&(i.leaveGuards.size||(i.leaveGuards=y.leaveGuards),i.updateGuards.size||(i.updateGuards=y.updateGuards))),b&&i&&(!y||!sM(i,y)||!w)&&(i.enterCallbacks[O]||[]).forEach(a=>a(b))},{flush:"post"}),()=>{const b=P.value,i=t.name,O=n.value,w=O&&O.components[i];if(!w)return ghe(o.default,{Component:w,route:b});const y=O.props[i],p=y?y===!0?b.params:typeof y=="function"?y(b):y:null,u=w1(w,$u({},p,e,{onVnodeUnmounted:h=>{h.component.isUnmounted&&(O.instances[i]=null)},ref:c}));return ghe(o.default,{Component:u,route:b})||u}}});function ghe(t,e){if(!t)return null;const o=t(e);return o.length===1?o[0]:o}const Vke=$ke;function Uke(t){const e=mke(t.routes,t),o=t.parseQuery||Rke,f=t.stringifyQuery||fhe,P=t.history,d=RL(),l=RL(),n=RL(),c=Ai(z4);let b=z4;BA&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const i=aie.bind(null,q=>""+q),O=aie.bind(null,Pke),w=aie.bind(null,BH);function y(q,Y){let ee,me;return dve(q)?(ee=e.getRecordMatcher(q),me=Y):me=q,e.addRoute(me,ee)}function p(q){const Y=e.getRecordMatcher(q);Y&&e.removeRoute(Y)}function a(){return e.getRoutes().map(q=>q.record)}function u(q){return!!e.getRecordMatcher(q)}function h(q,Y){if(Y=$u({},Y||c.value),typeof q=="string"){const ce=sie(o,q,Y.path),de=e.resolve({path:ce.path},Y),ve=P.createHref(ce.fullPath);return $u(ce,de,{params:w(de.params),hash:BH(ce.hash),redirectedFrom:void 0,href:ve})}let ee;if("path"in q)ee=$u({},q,{path:sie(o,q.path,Y.path).path});else{const ce=$u({},q.params);for(const de in ce)ce[de]==null&&delete ce[de];ee=$u({},q,{params:O(ce)}),Y.params=O(Y.params)}const me=e.resolve(ee,Y),he=q.hash||"";me.params=i(w(me.params));const se=Q5e(f,$u({},q,{hash:Ake(he),path:me.path})),ae=P.createHref(se);return $u({fullPath:se,hash:he,query:f===fhe?Lke(q.query):q.query||{}},me,{redirectedFrom:void 0,href:ae})}function m(q){return typeof q=="string"?sie(o,q,c.value.path):$u({},q)}function v(q,Y){if(b!==q)return lM(8,{from:Y,to:q})}function _(q){return x(q)}function S(q){return _($u(m(q),{replace:!0}))}function A(q){const Y=q.matched[q.matched.length-1];if(Y&&Y.redirect){const{redirect:ee}=Y;let me=typeof ee=="function"?ee(q):ee;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=m(me):{path:me},me.params={}),$u({query:q.query,hash:q.hash,params:"path"in me?{}:q.params},me)}}function x(q,Y){const ee=b=h(q),me=c.value,he=q.state,se=q.force,ae=q.replace===!0,ce=A(ee);if(ce)return x($u(m(ce),{state:typeof ce=="object"?$u({},he,ce.state):he,force:se,replace:ae}),Y||ee);const de=ee;de.redirectedFrom=Y;let ve;return!se&&H5e(f,me,ee)&&(ve=lM(16,{to:de,from:me}),U(me,me,!0,!1)),(ve?Promise.resolve(ve):T(de,me)).catch(ye=>yO(ye)?yO(ye,2)?ye:j(ye):$(ye,de,me)).then(ye=>{if(ye){if(yO(ye,2))return x($u({replace:ae},m(ye.to),{state:typeof ye.to=="object"?$u({},he,ye.to.state):he,force:se}),Y||de)}else ye=C(de,me,!0,ae,he);return E(de,me,ye),ye})}function R(q,Y){const ee=v(q,Y);return ee?Promise.reject(ee):Promise.resolve()}function M(q){const Y=W.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(q):q()}function T(q,Y){let ee;const[me,he,se]=jke(q,Y);ee=lie(me.reverse(),"beforeRouteLeave",q,Y);for(const ce of me)ce.leaveGuards.forEach(de=>{ee.push(U4(de,q,Y))});const ae=R.bind(null,q,Y);return ee.push(ae),oe(ee).then(()=>{ee=[];for(const ce of d.list())ee.push(U4(ce,q,Y));return ee.push(ae),oe(ee)}).then(()=>{ee=lie(he,"beforeRouteUpdate",q,Y);for(const ce of he)ce.updateGuards.forEach(de=>{ee.push(U4(de,q,Y))});return ee.push(ae),oe(ee)}).then(()=>{ee=[];for(const ce of se)if(ce.beforeEnter)if(yx(ce.beforeEnter))for(const de of ce.beforeEnter)ee.push(U4(de,q,Y));else ee.push(U4(ce.beforeEnter,q,Y));return ee.push(ae),oe(ee)}).then(()=>(q.matched.forEach(ce=>ce.enterCallbacks={}),ee=lie(se,"beforeRouteEnter",q,Y),ee.push(ae),oe(ee))).then(()=>{ee=[];for(const ce of l.list())ee.push(U4(ce,q,Y));return ee.push(ae),oe(ee)}).catch(ce=>yO(ce,8)?ce:Promise.reject(ce))}function E(q,Y,ee){n.list().forEach(me=>M(()=>me(q,Y,ee)))}function C(q,Y,ee,me,he){const se=v(q,Y);if(se)return se;const ae=Y===z4,ce=BA?history.state:{};ee&&(me||ae?P.replace(q.fullPath,$u({scroll:ae&&ce&&ce.scroll},he)):P.push(q.fullPath,he)),c.value=q,U(q,Y,ee,ae),j()}let L;function D(){L||(L=P.listen((q,Y,ee)=>{if(!K.listening)return;const me=h(q),he=A(me);if(he){x($u(he,{replace:!0}),me).catch(iI);return}b=me;const se=c.value;BA&&J5e(rhe(se.fullPath,ee.delta),qZ()),T(me,se).catch(ae=>yO(ae,12)?ae:yO(ae,2)?(x(ae.to,me).then(ce=>{yO(ce,20)&&!ee.delta&&ee.type===CI.pop&&P.go(-1,!1)}).catch(iI),Promise.reject()):(ee.delta&&P.go(-ee.delta,!1),$(ae,me,se))).then(ae=>{ae=ae||C(me,se,!1),ae&&(ee.delta&&!yO(ae,8)?P.go(-ee.delta,!1):ee.type===CI.pop&&yO(ae,20)&&P.go(-1,!1)),E(me,se,ae)}).catch(iI)}))}let k=RL(),I=RL(),z;function $(q,Y,ee){j(q);const me=I.list();return me.length?me.forEach(he=>he(q,Y,ee)):console.error(q),Promise.reject(q)}function Q(){return z&&c.value!==z4?Promise.resolve():new Promise((q,Y)=>{k.add([q,Y])})}function j(q){return z||(z=!q,D(),k.list().forEach(([Y,ee])=>q?ee(q):Y()),k.reset()),q}function U(q,Y,ee,me){const{scrollBehavior:he}=t;if(!BA||!he)return Promise.resolve();const se=!ee&&eke(rhe(q.fullPath,0))||(me||!ee)&&history.state&&history.state.scroll||null;return lc().then(()=>he(q,Y,se)).then(ae=>ae&&K5e(ae)).catch(ae=>$(ae,q,Y))}const X=q=>P.go(q);let te;const W=new Set,K={currentRoute:c,listening:!0,addRoute:y,removeRoute:p,hasRoute:u,getRoutes:a,resolve:h,options:t,push:_,replace:S,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:d.add,beforeResolve:l.add,afterEach:n.add,onError:I.add,isReady:Q,install(q){const Y=this;q.component("RouterLink",zke),q.component("RouterView",Vke),q.config.globalProperties.$router=Y,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>wa(c)}),BA&&!te&&c.value===z4&&(te=!0,_(P.location).catch(he=>{}));const ee={};for(const he in z4)Object.defineProperty(ee,he,{get:()=>c.value[he],enumerable:!0});q.provide(Xle,Y),q.provide(Gle,_1e(ee)),q.provide(Pae,c);const me=q.unmount;W.add(q),q.unmount=function(){W.delete(q),W.size<1&&(b=z4,L&&L(),L=null,c.value=z4,te=!1,z=!1),me()}}};function oe(q){return q.reduce((Y,ee)=>Y.then(()=>M(ee)),Promise.resolve())}return K}function jke(t,e){const o=[],f=[],P=[],d=Math.max(e.matched.length,t.matched.length);for(let l=0;lsM(b,n))?f.push(n):o.push(n));const c=t.matched[l];c&&(e.matched.find(b=>sM(b,c))||P.push(c))}return[o,f,P]}function _T(){return vl(Gle)}function Qke(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xve={exports:{}};(function(t,e){/*! For license information please see plotly.min.js.LICENSE.txt */(function(o,f){t.exports=f()})(self,function(){return function(){var o={79288:function(d,l,n){var c=n(3400),b={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in b){var O=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");c.addStyleRule(O,b[i])}},86712:function(d,l,n){d.exports=n(84224)},37240:function(d,l,n){d.exports=n(51132)},29744:function(d,l,n){d.exports=n(94456)},29352:function(d,l,n){d.exports=n(67244)},96144:function(d,l,n){d.exports=n(97776)},53219:function(d,l,n){d.exports=n(61712)},4624:function(d,l,n){d.exports=n(95856)},54543:function(d,l,n){d.exports=n(54272)},45e3:function(d,l,n){d.exports=n(85404)},62300:function(d,l,n){d.exports=n(26048)},6920:function(d,l,n){d.exports=n(66240)},10264:function(d,l,n){d.exports=n(40448)},32016:function(d,l,n){d.exports=n(64884)},27528:function(d,l,n){d.exports=n(15088)},75556:function(d,l,n){d.exports=n(76744)},39204:function(d,l,n){d.exports=n(94704)},73996:function(d,l,n){d.exports=n(62396)},16489:function(d,l,n){d.exports=n(32028)},5e3:function(d,l,n){d.exports=n(81932)},77280:function(d,l,n){d.exports=n(45536)},33992:function(d,l,n){d.exports=n(42600)},17600:function(d,l,n){d.exports=n(21536)},49116:function(d,l,n){d.exports=n(65664)},46808:function(d,l,n){d.exports=n(29044)},36168:function(d,l,n){d.exports=n(48928)},13792:function(d,l,n){var c=n(32016);c.register([n(37240),n(29352),n(5e3),n(33992),n(17600),n(49116),n(6920),n(67484),n(79440),n(39204),n(83096),n(36168),n(20260),n(63560),n(65832),n(46808),n(73996),n(48824),n(89904),n(25120),n(13752),n(4340),n(62300),n(29800),n(8363),n(54543),n(86636),n(42192),n(32140),n(77280),n(89296),n(56816),n(70192),n(45e3),n(27528),n(84764),n(3920),n(50248),n(4624),n(69967),n(10264),n(86152),n(53219),n(81604),n(63796),n(29744),n(89336),n(86712),n(75556),n(16489),n(97312),n(96144)]),d.exports=c},3920:function(d,l,n){d.exports=n(43480)},25120:function(d,l,n){d.exports=n(6296)},4340:function(d,l,n){d.exports=n(7404)},86152:function(d,l,n){d.exports=n(65456)},56816:function(d,l,n){d.exports=n(22020)},89296:function(d,l,n){d.exports=n(29928)},20260:function(d,l,n){d.exports=n(75792)},32140:function(d,l,n){d.exports=n(156)},84764:function(d,l,n){d.exports=n(45499)},48824:function(d,l,n){d.exports=n(3296)},69967:function(d,l,n){d.exports=n(4184)},8363:function(d,l,n){d.exports=n(36952)},86636:function(d,l,n){d.exports=n(38983)},70192:function(d,l,n){d.exports=n(11572)},81604:function(d,l,n){d.exports=n(76924)},63796:function(d,l,n){d.exports=n(62944)},89336:function(d,l,n){d.exports=n(95443)},67484:function(d,l,n){d.exports=n(34864)},97312:function(d,l,n){d.exports=n(76272)},42192:function(d,l,n){d.exports=n(97924)},29800:function(d,l,n){d.exports=n(15436)},63560:function(d,l,n){d.exports=n(5621)},89904:function(d,l,n){d.exports=n(91304)},50248:function(d,l,n){d.exports=n(41724)},65832:function(d,l,n){d.exports=n(31991)},79440:function(d,l,n){d.exports=n(22869)},13752:function(d,l,n){d.exports=n(67776)},83096:function(d,l,n){d.exports=n(95952)},72196:function(d){d.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(d,l,n){var c=n(72196),b=n(25376),i=n(33816),O=n(31780).templatedArray;n(36208),d.exports=O("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:c.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:c.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:b({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(d,l,n){var c=n(3400),b=n(54460),i=n(23816).draw;function O(y){var p=y._fullLayout;c.filterVisible(p.annotations).forEach(function(a){var u=b.getFromId(y,a.xref),h=b.getFromId(y,a.yref),m=b.getRefType(a.xref),v=b.getRefType(a.yref);a._extremes={},m==="range"&&w(a,u),v==="range"&&w(a,h)})}function w(y,p){var a,u=p._id,h=u.charAt(0),m=y[h],v=y["a"+h],_=y[h+"ref"],S=y["a"+h+"ref"],A=y["_"+h+"padplus"],x=y["_"+h+"padminus"],R={x:1,y:-1}[h]*y[h+"shift"],M=3*y.arrowsize*y.arrowwidth||0,T=M+R,E=M-R,C=3*y.startarrowsize*y.arrowwidth||0,L=C+R,D=C-R;if(S===_){var k=b.findExtremes(p,[p.r2c(m)],{ppadplus:T,ppadminus:E}),I=b.findExtremes(p,[p.r2c(v)],{ppadplus:Math.max(A,L),ppadminus:Math.max(x,D)});a={min:[k.min[0],I.min[0]],max:[k.max[0],I.max[0]]}}else L=v?L+v:L,D=v?D-v:D,a=b.findExtremes(p,[p.r2c(m)],{ppadplus:Math.max(A,T,L),ppadminus:Math.max(x,E,D)});y._extremes[u]=a}d.exports=function(y){var p=y._fullLayout;if(c.filterVisible(p.annotations).length&&y._fullData.length)return c.syncOrAsync([i,O],y)}},42300:function(d,l,n){var c=n(3400),b=n(24040),i=n(31780).arrayEditor;function O(y,p){var a,u,h,m,v,_,S,A=y._fullLayout.annotations,x=[],R=[],M=[],T=(p||[]).length;for(a=0;a0||a.explicitOff.length>0},onClick:function(y,p){var a,u,h=O(y,p),m=h.on,v=h.off.concat(h.explicitOff),_={},S=y._fullLayout.annotations;if(m.length||v.length){for(a=0;a.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Qt]}for(var tt=!1,Ee=["x","y"],Ne=0;Ne1)&&(Dt===wt?((mn=It.r2fraction(T["a"+pt]))<0||mn>1)&&(tt=!0):tt=!0),je=It._offset+It.r2p(T[pt]),Ge=.5}else{var vt=bn==="domain";pt==="x"?(ot=T[pt],je=vt?It._offset+It._length*ot:je=$.l+$.w*ot):(ot=1-T[pt],je=vt?It._offset+It._length*ot:je=$.t+$.h*ot),Ge=T.showarrow?.5:ot}if(T.showarrow){gn.head=je;var bt=T["a"+pt];if(ht=en*Xe(.5,T.xanchor)-Gt*Xe(.5,T.yanchor),Dt===wt){var lt=y.getRefType(Dt);lt==="domain"?(pt==="y"&&(bt=1-bt),gn.tail=It._offset+It._length*bt):lt==="paper"?pt==="y"?(bt=1-bt,gn.tail=$.t+$.h*bt):gn.tail=$.l+$.w*bt:gn.tail=It._offset+It.r2p(bt),nt=ht}else gn.tail=je+bt,nt=ht+bt;gn.text=gn.tail+ht;var yt=z[pt==="x"?"width":"height"];if(wt==="paper"&&(gn.head=O.constrain(gn.head,1,yt-1)),Dt==="pixel"){var zt=-Math.max(gn.tail-3,gn.text),Rt=Math.min(gn.tail+3,gn.text)-yt;zt>0?(gn.tail+=zt,gn.text+=zt):Rt>0&&(gn.tail-=Rt,gn.text-=Rt)}gn.tail+=nn,gn.head+=nn}else nt=ht=Ct*Xe(Ge,_t),gn.text=je+ht;gn.text+=nn,ht+=nn,nt+=nn,T["_"+pt+"padplus"]=Ct/2+nt,T["_"+pt+"padminus"]=Ct/2-nt,T["_"+pt+"size"]=Ct,T["_"+pt+"shift"]=ht}if(tt)he.remove();else{var it=0,at=0;if(T.align!=="left"&&(it=(Le-Oe)*(T.align==="center"?.5:1)),T.valign!=="top"&&(at=(We-ke)*(T.valign==="middle"?.5:1)),Ve)He.select("svg").attr({x:ce+it-1,y:ce+at}).call(a.setClipUrl,ve?W:null,M);else{var Lt=ce+at-$e.top,xt=ce+it-$e.left;Te.call(h.positionText,xt,Lt).call(a.setClipUrl,ve?W:null,M)}ye.select("rect").call(a.setRect,ce,ce,Le,We),de.call(a.setRect,se/2,se/2,Ue-se,Ze-se),he.call(a.setTranslate,Math.round(K.x.text-Ue/2),Math.round(K.y.text-Ze/2)),Y.attr({transform:"rotate("+oe+","+K.x.text+","+K.y.text+")"});var Ht,Xt=function(Yt,Qt){q.selectAll(".annotation-arrow-g").remove();var Pt=K.x.head,tn=K.y.head,Kt=K.x.tail+Yt,fn=K.y.tail+Qt,dn=K.x.text+Yt,vn=K.y.text+Qt,Nn=O.rotationXYMatrix(oe,dn,vn),er=O.apply2DTransform(Nn),En=O.apply2DTransform2(Nn),In=+de.attr("width"),Un=+de.attr("height"),xr=dn-.5*In,Sr=xr+In,ar=vn-.5*Un,Fn=ar+Un,ir=[[xr,ar,xr,Fn],[xr,Fn,Sr,Fn],[Sr,Fn,Sr,ar],[Sr,ar,xr,ar]].map(En);if(!ir.reduce(function(So,go){return So^!!O.segmentsIntersect(Pt,tn,Pt+1e6,tn+1e6,go[0],go[1],go[2],go[3])},!1)){ir.forEach(function(So){var go=O.segmentsIntersect(Kt,fn,Pt,tn,So[0],So[1],So[2],So[3]);go&&(Kt=go.x,fn=go.y)});var Wn=T.arrowwidth,Kn=T.arrowcolor,_r=T.arrowside,Ir=q.append("g").style({opacity:p.opacity(Kn)}).classed("annotation-arrow-g",!0),zr=Ir.append("path").attr("d","M"+Kt+","+fn+"L"+Pt+","+tn).style("stroke-width",Wn+"px").call(p.stroke,p.rgb(Kn));if(S(zr,_r,T),Q.annotationPosition&&zr.node().parentNode&&!C){var Fr=Pt,Rr=tn;if(T.standoff){var $r=Math.sqrt(Math.pow(Pt-Kt,2)+Math.pow(tn-fn,2));Fr+=T.standoff*(Kt-Pt)/$r,Rr+=T.standoff*(fn-tn)/$r}var Kr,Co,so=Ir.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Kt-Fr)+","+(fn-Rr),transform:w(Fr,Rr)}).style("stroke-width",Wn+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");v.init({element:so.node(),gd:M,prepFn:function(){var So=a.getTranslate(he);Kr=So.x,Co=So.y,L&&L.autorange&&U(L._name+".autorange",!0),D&&D.autorange&&U(D._name+".autorange",!0)},moveFn:function(So,go){var li=er(Kr,Co),Pn=li[0]+So,Yn=li[1]+go;he.call(a.setTranslate,Pn,Yn),X("x",x(L,So,"x",$,T)),X("y",x(D,go,"y",$,T)),T.axref===T.xref&&X("ax",x(L,So,"ax",$,T)),T.ayref===T.yref&&X("ay",x(D,go,"ay",$,T)),Ir.attr("transform",w(So,go)),Y.attr({transform:"rotate("+oe+","+Pn+","+Yn+")"})},doneFn:function(){b.call("_guiRelayout",M,te());var So=document.querySelector(".js-notes-box-panel");So&&So.redraw(So.selectedObj)}})}}};T.showarrow&&Xt(0,0),ee&&v.init({element:he.node(),gd:M,prepFn:function(){Ht=Y.attr("transform")},moveFn:function(Yt,Qt){var Pt="pointer";if(T.showarrow)T.axref===T.xref?X("ax",x(L,Yt,"ax",$,T)):X("ax",T.ax+Yt),T.ayref===T.yref?X("ay",x(D,Qt,"ay",$.w,T)):X("ay",T.ay+Qt),Xt(Yt,Qt);else{if(C)return;var tn,Kt;if(L)tn=x(L,Yt,"x",$,T);else{var fn=T._xsize/$.w,dn=T.x+(T._xshift-T.xshift)/$.w-fn/2;tn=v.align(dn+Yt/$.w,fn,0,1,T.xanchor)}if(D)Kt=x(D,Qt,"y",$,T);else{var vn=T._ysize/$.h,Nn=T.y-(T._yshift+T.yshift)/$.h-vn/2;Kt=v.align(Nn-Qt/$.h,vn,0,1,T.yanchor)}X("x",tn),X("y",Kt),L&&D||(Pt=v.getCursor(L?.5:tn,D?.5:Kt,T.xanchor,T.yanchor))}Y.attr({transform:w(Yt,Qt)+Ht}),m(he,Pt)},clickFn:function(Yt,Qt){T.captureevents&&M.emit("plotly_clickannotation",Pe(Qt))},doneFn:function(){m(he),b.call("_guiRelayout",M,te());var Yt=document.querySelector(".js-notes-box-panel");Yt&&Yt.redraw(Yt.selectedObj)}})}}}d.exports={draw:function(M){var T=M._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var E=0;E=0,C=u.indexOf("end")>=0,L=x.backoff*M+h.standoff,D=R.backoff*T+h.startstandoff;if(A.nodeName==="line"){m={x:+a.attr("x1"),y:+a.attr("y1")},v={x:+a.attr("x2"),y:+a.attr("y2")};var k=m.x-v.x,I=m.y-v.y;if(S=(_=Math.atan2(I,k))+Math.PI,L&&D&&L+D>Math.sqrt(k*k+I*I))return void q();if(L){if(L*L>k*k+I*I)return void q();var z=L*Math.cos(_),$=L*Math.sin(_);v.x+=z,v.y+=$,a.attr({x2:v.x,y2:v.y})}if(D){if(D*D>k*k+I*I)return void q();var Q=D*Math.cos(_),j=D*Math.sin(_);m.x-=Q,m.y-=j,a.attr({x1:m.x,y1:m.y})}}else if(A.nodeName==="path"){var U=A.getTotalLength(),X="";if(U1){h=!0;break}}h?O.fullLayout._infolayer.select(".annotation-"+O.id+'[data-index="'+a+'"]').remove():(u._pdata=b(O.glplot.cameraParams,[w.xaxis.r2l(u.x)*y[0],w.yaxis.r2l(u.y)*y[1],w.zaxis.r2l(u.z)*y[2]]),c(O.graphDiv,u,a,O.id,u._xa,u._ya))}}},56864:function(d,l,n){var c=n(24040),b=n(3400);d.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(45899)}}},layoutAttributes:n(45899),handleDefaults:n(52808),includeBasePlot:function(i,O){var w=c.subplotsRegistry.gl3d;if(w)for(var y=w.attrRegex,p=Object.keys(i),a=0;a=0)))return u;if(S===3)v[S]>1&&(v[S]=1);else if(v[S]>=1)return u}var A=Math.round(255*v[0])+", "+Math.round(255*v[1])+", "+Math.round(255*v[2]);return _?"rgba("+A+", "+v[3]+")":"rgb("+A+")"}O.tinyRGB=function(u){var h=u.toRgb();return"rgb("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+")"},O.rgb=function(u){return O.tinyRGB(c(u))},O.opacity=function(u){return u?c(u).getAlpha():0},O.addOpacity=function(u,h){var m=c(u).toRgb();return"rgba("+Math.round(m.r)+", "+Math.round(m.g)+", "+Math.round(m.b)+", "+h+")"},O.combine=function(u,h){var m=c(u).toRgb();if(m.a===1)return c(u).toRgbString();var v=c(h||p).toRgb(),_=v.a===1?v:{r:255*(1-v.a)+v.r*v.a,g:255*(1-v.a)+v.g*v.a,b:255*(1-v.a)+v.b*v.a},S={r:_.r*(1-m.a)+m.r*m.a,g:_.g*(1-m.a)+m.g*m.a,b:_.b*(1-m.a)+m.b*m.a};return c(S).toRgbString()},O.contrast=function(u,h,m){var v=c(u);return v.getAlpha()!==1&&(v=c(O.combine(u,p))),(v.isDark()?h?v.lighten(h):p:m?v.darken(m):y).toString()},O.stroke=function(u,h){var m=c(h);u.style({stroke:O.tinyRGB(m),"stroke-opacity":m.getAlpha()})},O.fill=function(u,h){var m=c(h);u.style({fill:O.tinyRGB(m),"fill-opacity":m.getAlpha()})},O.clean=function(u){if(u&&typeof u=="object"){var h,m,v,_,S=Object.keys(u);for(h=0;h0?Rt>=Ht:Rt<=Ht));it++)Rt>Yt&&Rt0?Rt>=Ht:Rt<=Ht));it++)Rt>zt[0]&&Rt1){var Gt=Math.pow(10,Math.floor(Math.log(en)/Math.LN10));It*=Gt*p.roundUp(en/Gt,[2,5,10]),(Math.abs(Oe.start)/Oe.size+1e-6)%1<2e-6&&(wt.tick0=0)}wt.dtick=It}wt.domain=te?[ht+ce/Te.h,ht+tt-ce/Te.h]:[ht+ae/Te.w,ht+tt-ae/Te.w],wt.setScale(),j.attr("transform",a(Math.round(Te.l),Math.round(Te.t)));var Ct,_t=j.select("."+D.cbtitleunshift).attr("transform",a(-Math.round(Te.l),-Math.round(Te.t))),nn=wt.ticklabelposition,gn=wt.title.font.size,bn=j.select("."+D.cbaxis),mn=0,vt=0;function bt(lt,yt){var zt={propContainer:wt,propName:U._propPrefix+"title",traceIndex:U._traceIndex,_meta:U._meta,placeholder:Se._dfltTitle.colorbar,containerGroup:j.select("."+D.cbtitle)},Rt=lt.charAt(0)==="h"?lt.substr(1):"h"+lt;j.selectAll("."+Rt+",."+Rt+"-math-group").remove(),_.draw(X,lt,u(zt,yt||{}))}return p.syncOrAsync([i.previousPromises,function(){var lt,yt;(te&&Dt||!te&&!Dt)&&(De==="top"&&(lt=ae+Te.l+Ee*de,yt=ce+Te.t+Ne*(1-ht-tt)+3+.75*gn),De==="bottom"&&(lt=ae+Te.l+Ee*de,yt=ce+Te.t+Ne*(1-ht)-3-.25*gn),De==="right"&&(yt=ce+Te.t+Ne*ve+3+.75*gn,lt=ae+Te.l+Ee*ht),bt(wt._id+"title",{attributes:{x:lt,y:yt,"text-anchor":te?"start":"middle"}}))},function(){if(!te&&!Dt||te&&Dt){var lt,yt=j.select("."+D.cbtitle),zt=yt.select("text"),Rt=[-Y/2,Y/2],it=yt.select(".h"+wt._id+"title-math-group").node(),at=15.6;if(zt.node()&&(at=parseInt(zt.node().style.fontSize,10)*E),it?(lt=m.bBox(it),vt=lt.width,(mn=lt.height)>at&&(Rt[1]-=(mn-at)/2)):zt.node()&&!zt.classed(D.jsPlaceholder)&&(lt=m.bBox(zt.node()),vt=lt.width,mn=lt.height),te){if(mn){if(mn+=5,De==="top")wt.domain[1]-=mn/Te.h,Rt[1]*=-1;else{wt.domain[0]+=mn/Te.h;var Lt=S.lineCount(zt);Rt[1]+=(1-Lt)*at}yt.attr("transform",a(Rt[0],Rt[1])),wt.setScale()}}else vt&&(De==="right"&&(wt.domain[0]+=(vt+gn/2)/Te.w),yt.attr("transform",a(Rt[0],Rt[1])),wt.setScale())}j.selectAll("."+D.cbfills+",."+D.cblines).attr("transform",te?a(0,Math.round(Te.h*(1-wt.domain[1]))):a(Math.round(Te.w*wt.domain[0]),0)),bn.attr("transform",te?a(0,Math.round(-Te.t)):a(Math.round(-Te.l),0));var xt=j.select("."+D.cbfills).selectAll("rect."+D.cbfill).attr("style","").data(Le);xt.enter().append("rect").classed(D.cbfill,!0).attr("style",""),xt.exit().remove();var Ht=He.map(wt.c2p).map(Math.round).sort(function(tn,Kt){return tn-Kt});xt.each(function(tn,Kt){var fn=[Kt===0?He[0]:(Le[Kt]+Le[Kt-1])/2,Kt===Le.length-1?He[1]:(Le[Kt]+Le[Kt+1])/2].map(wt.c2p).map(Math.round);te&&(fn[1]=p.constrain(fn[1]+(fn[1]>fn[0])?1:-1,Ht[0],Ht[1]));var dn=c.select(this).attr(te?"x":"y",je).attr(te?"y":"x",c.min(fn)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(c.max(fn)-c.min(fn),2));if(U._fillgradient)m.gradient(dn,X,U._id,te?"vertical":"horizontalreversed",U._fillgradient,"fill");else{var vn=$e(tn).replace("e-","");dn.attr("fill",b(vn).toHexString())}});var Xt=j.select("."+D.cblines).selectAll("path."+D.cbline).data(Ie.color&&Ie.width?We:[]);Xt.enter().append("path").classed(D.cbline,!0),Xt.exit().remove(),Xt.each(function(tn){var Kt=je,fn=Math.round(wt.c2p(tn))+Ie.width/2%1;c.select(this).attr("d","M"+(te?Kt+","+fn:fn+","+Kt)+(te?"h":"v")+Ue).call(m.lineGroupStyle,Ie.width,Ve(tn),Ie.dash)}),bn.selectAll("g."+wt._id+"tick,path").remove();var Yt=je+Ue+(Y||0)/2-(U.ticks==="outside"?1:0),Qt=w.calcTicks(wt),Pt=w.getTickSigns(wt)[2];return w.drawTicks(X,wt,{vals:wt.ticks==="inside"?w.clipEnds(wt,Qt):Qt,layer:bn,path:w.makeTickPath(wt,Yt,Pt),transFn:w.makeTransTickFn(wt)}),w.drawLabels(X,wt,{vals:Qt,layer:bn,transFn:w.makeTransTickLabelFn(wt),labelFns:w.makeLabelFns(wt,Yt)})},function(){if(te&&!Dt||!te&&Dt){var lt,yt,zt=wt.position||0,Rt=wt._offset+wt._length/2;if(De==="right")yt=Rt,lt=Te.l+Ee*zt+10+gn*(wt.showticklabels?1:.5);else if(lt=Rt,De==="bottom"&&(yt=Te.t+Ne*zt+10+(nn.indexOf("inside")===-1?wt.tickfont.size:0)+(wt.ticks!=="intside"&&U.ticklen||0)),De==="top"){var it=ze.text.split("
    ").length;yt=Te.t+Ne*zt+10-Ue-E*gn*it}bt((te?"h":"v")+wt._id+"title",{avoid:{selection:c.select(X).selectAll("g."+wt._id+"tick"),side:De,offsetTop:te?0:Te.t,offsetLeft:te?Te.l:0,maxShift:te?Se.width:Se.height},attributes:{x:lt,y:yt,"text-anchor":"middle"},transform:{rotate:te?-90:0,offset:0}})}},i.previousPromises,function(){var lt,yt=Ue+Y/2;nn.indexOf("inside")===-1&&(lt=m.bBox(bn.node()),yt+=te?lt.width:lt.height),Ct=_t.select("text");var zt=0,Rt=te&&De==="top",it=!te&&De==="right",at=0;if(Ct.node()&&!Ct.classed(D.jsPlaceholder)){var Lt,xt=_t.select(".h"+wt._id+"title-math-group").node();xt&&(te&&Dt||!te&&!Dt)?(zt=(lt=m.bBox(xt)).width,Lt=lt.height):(zt=(lt=m.bBox(_t.node())).right-Te.l-(te?je:pt),Lt=lt.bottom-Te.t-(te?pt:je),te||De!=="top"||(yt+=lt.height,at=lt.height)),it&&(Ct.attr("transform",a(zt/2+gn/2,0)),zt*=2),yt=Math.max(yt,te?zt:Lt)}var Ht=2*(te?ae:ce)+yt+ee+Y/2,Xt=0;!te&&ze.text&&se==="bottom"&&ve<=0&&(Ht+=Xt=Ht/2,at+=Xt),Se._hColorbarMoveTitle=Xt,Se._hColorbarMoveCBTitle=at;var Yt=ee+Y,Qt=(te?je:pt)-Yt/2-(te?ae:0),Pt=(te?pt:je)-(te?Xe:ce+at-Xt);j.select("."+D.cbbg).attr("x",Qt).attr("y",Pt).attr(te?"width":"height",Math.max(Ht-Xt,2)).attr(te?"height":"width",Math.max(Xe+Yt,2)).call(v.fill,me).call(v.stroke,U.bordercolor).style("stroke-width",ee);var tn=it?Math.max(zt-10,0):0;j.selectAll("."+D.cboutline).attr("x",(te?je:pt+ae)+tn).attr("y",(te?pt+ce-Xe:je)+(Rt?mn:0)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(Xe-(te?2*ce+mn:2*ae+tn),2)).call(v.stroke,U.outlinecolor).style({fill:"none","stroke-width":Y});var Kt=te?nt*Ht:0,fn=te?0:(1-ot)*Ht-at;if(Kt=_e?Te.l-Kt:-Kt,fn=ye?Te.t-fn:-fn,j.attr("transform",a(Kt,fn)),!te&&(ee||b(me).getAlpha()&&!b.equals(Se.paper_bgcolor,me))){var dn=bn.selectAll("text"),vn=dn[0].length,Nn=j.select("."+D.cbbg).node(),er=m.bBox(Nn),En=m.getTranslate(j);dn.each(function(_r,Ir){var zr=vn-1;if(Ir===0||Ir===zr){var Fr,Rr=m.bBox(this),$r=m.getTranslate(this);if(Ir===zr){var Kr=Rr.right+$r.x;(Fr=er.right+En.x+pt-ee-2+de-Kr)>0&&(Fr=0)}else if(Ir===0){var Co=Rr.left+$r.x;(Fr=er.left+En.x+pt+ee+2-Co)<0&&(Fr=0)}Fr&&(vn<3?this.setAttribute("transform","translate("+Fr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var In={},Un=C[he],xr=L[he],Sr=C[se],ar=L[se],Fn=Ht-Ue;te?(K==="pixels"?(In.y=ve,In.t=Xe*Sr,In.b=Xe*ar):(In.t=In.b=0,In.yt=ve+W*Sr,In.yb=ve-W*ar),q==="pixels"?(In.x=de,In.l=Ht*Un,In.r=Ht*xr):(In.l=Fn*Un,In.r=Fn*xr,In.xl=de-oe*Un,In.xr=de+oe*xr)):(K==="pixels"?(In.x=de,In.l=Xe*Un,In.r=Xe*xr):(In.l=In.r=0,In.xl=de+W*Un,In.xr=de-W*xr),q==="pixels"?(In.y=1-ve,In.t=Ht*Sr,In.b=Ht*ar):(In.t=Fn*Sr,In.b=Fn*ar,In.yt=ve-oe*Sr,In.yb=ve+oe*ar));var ir=U.y<.5?"b":"t",Wn=U.x<.5?"l":"r";X._fullLayout._reservedMargin[U._id]={};var Kn={r:Se.width-Qt-Kt,l:Qt+In.r,b:Se.height-Pt-fn,t:Pt+In.b};_e&&ye?i.autoMargin(X,U._id,In):_e?X._fullLayout._reservedMargin[U._id][ir]=Kn[ir]:ye||te?X._fullLayout._reservedMargin[U._id][Wn]=Kn[Wn]:X._fullLayout._reservedMargin[U._id][ir]=Kn[ir]}],X)}($,z,k);Q&&Q.then&&(k._promises||[]).push(Q),k._context.edits.colorbarPosition&&function(j,U,X){var te,W,K,oe=U.orientation==="v",q=X._fullLayout._size;y.init({element:j.node(),gd:X,prepFn:function(){te=j.attr("transform"),h(j)},moveFn:function(Y,ee){j.attr("transform",te+a(Y,ee)),W=y.align((oe?U._uFrac:U._vFrac)+Y/q.w,oe?U._thickFrac:U._lenFrac,0,1,U.xanchor),K=y.align((oe?U._vFrac:1-U._uFrac)-ee/q.h,oe?U._lenFrac:U._thickFrac,0,1,U.yanchor);var me=y.getCursor(W,K,U.xanchor,U.yanchor);h(j,me)},doneFn:function(){if(h(j),W!==void 0&&K!==void 0){var Y={};Y[U._propPrefix+"x"]=W,Y[U._propPrefix+"y"]=K,U._traceIndex!==void 0?O.call("_guiRestyle",X,Y,U._traceIndex):O.call("_guiRelayout",X,Y)}}})}($,z,k)}),I.exit().each(function(z){i.autoMargin(k,z._id)}).remove(),I.order()}}},90553:function(d,l,n){var c=n(3400);d.exports=function(b){return c.isPlainObject(b.colorbar)}},55080:function(d,l,n){d.exports={moduleType:"component",name:"colorbar",attributes:n(42996),supplyDefaults:n(64013),draw:n(37848).draw,hasColorbar:n(90553)}},49084:function(d,l,n){var c=n(42996),b=n(53756).counter,i=n(95376),O=n(88304).scales;function w(y){return"`"+y+"`"}i(O),d.exports=function(y,p){y=y||"";var a,u=(p=p||{}).cLetter||"c",h=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:y==="marker.line"),m="showScaleDflt"in p?p.showScaleDflt:u==="z",v=typeof p.colorscaleDflt=="string"?O[p.colorscaleDflt]:null,_=p.editTypeOverride||"",S=y?y+".":"";"colorAttr"in p?(a=p.colorAttr,p.colorAttr):w(S+(a={z:"z",c:"color"}[u]));var A=u+"auto",x=u+"min",R=u+"max",M=u+"mid",T={};T[x]=T[R]=void 0;var E={};E[A]=!1;var C={};return a==="color"&&(C.color={valType:"color",arrayOk:!0,editType:_||"style"},p.anim&&(C.color.anim=!0)),C[A]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},C[x]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:E},C[R]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:E},C[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},C.colorscale={valType:"colorscale",editType:"calc",dflt:v,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},h||(C.showscale={valType:"boolean",dflt:m,editType:"calc"},C.colorbar=c),p.noColorAxis||(C.coloraxis={valType:"subplotid",regex:b("coloraxis"),dflt:null,editType:"calc"}),C}},47128:function(d,l,n){var c=n(38248),b=n(3400),i=n(94288).extractOpts;d.exports=function(O,w,y){var p,a=O._fullLayout,u=y.vals,h=y.containerStr,m=h?b.nestedProperty(w,h).get():w,v=i(m),_=v.auto!==!1,S=v.min,A=v.max,x=v.mid,R=function(){return b.aggNums(Math.min,null,u)},M=function(){return b.aggNums(Math.max,null,u)};S===void 0?S=R():_&&(S=m._colorAx&&c(S)?Math.min(S,R()):R()),A===void 0?A=M():_&&(A=m._colorAx&&c(A)?Math.max(A,M()):M()),_&&x!==void 0&&(A-x>x-S?S=x-(A-x):A-x=0?a.colorscale.sequential:a.colorscale.sequentialminus,v._sync("colorscale",p))}},95504:function(d,l,n){var c=n(3400),b=n(94288).hasColorscale,i=n(94288).extractOpts;d.exports=function(O,w){function y(_,S){var A=_["_"+S];A!==void 0&&(_[S]=A)}function p(_,S){var A=S.container?c.nestedProperty(_,S.container).get():_;if(A)if(A.coloraxis)A._colorAx=w[A.coloraxis];else{var x=i(A),R=x.auto;(R||x.min===void 0)&&y(A,S.min),(R||x.max===void 0)&&y(A,S.max),x.autocolorscale&&y(A,"colorscale")}}for(var a=0;a=0;R--,M++){var T=S[R];x[M]=[1-T[0],T[1]]}return x}function v(S,A){A=A||{};for(var x=S.domain,R=S.range,M=R.length,T=new Array(M),E=0;E1.3333333333333333-y?w:y}},67416:function(d,l,n){var c=n(3400),b=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];d.exports=function(i,O,w,y){return i=w==="left"?0:w==="center"?1:w==="right"?2:c.constrain(Math.floor(3*i),0,2),O=y==="bottom"?0:y==="middle"?1:y==="top"?2:c.constrain(Math.floor(3*O),0,2),b[O][i]}},72760:function(d,l){l.selectMode=function(n){return n==="lasso"||n==="select"},l.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},l.openMode=function(n){return n==="drawline"||n==="drawopenpath"},l.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},l.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},l.selectingOrDrawing=function(n){return l.freeMode(n)||l.rectMode(n)}},86476:function(d,l,n){var c=n(29128),b=n(52264),i=n(89184),O=n(3400).removeElement,w=n(33816),y=d.exports={};y.align=n(78316),y.getCursor=n(67416);var p=n(2616);function a(){var h=document.createElement("div");h.className="dragcover";var m=h.style;return m.position="fixed",m.left=0,m.right=0,m.top=0,m.bottom=0,m.zIndex=999999999,m.background="none",document.body.appendChild(h),h}function u(h){return c(h.changedTouches?h.changedTouches[0]:h,document.body)}y.unhover=p.wrapped,y.unhoverRaw=p.raw,y.init=function(h){var m,v,_,S,A,x,R,M,T=h.gd,E=1,C=T._context.doubleClickDelay,L=h.element;T._mouseDownTime||(T._mouseDownTime=0),L.style.pointerEvents="all",L.onmousedown=k,i?(L._ontouchstart&&L.removeEventListener("touchstart",L._ontouchstart),L._ontouchstart=k,L.addEventListener("touchstart",k,{passive:!1})):L.ontouchstart=k;var D=h.clampFn||function($,Q,j){return Math.abs($)C&&(E=Math.max(E-1,1)),T._dragged)h.doneFn&&h.doneFn();else if(h.clickFn&&h.clickFn(E,x),!M){var Q;try{Q=new MouseEvent("click",$)}catch{var j=u($);(Q=document.createEvent("MouseEvents")).initMouseEvent("click",$.bubbles,$.cancelable,$.view,$.detail,$.screenX,$.screenY,j[0],j[1],$.ctrlKey,$.altKey,$.shiftKey,$.metaKey,$.button,$.relatedTarget)}R.dispatchEvent(Q)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},y.coverSlip=a},2616:function(d,l,n){var c=n(95924),b=n(91200),i=n(52200).getGraphDiv,O=n(92456),w=d.exports={};w.wrapped=function(y,p,a){(y=i(y))._fullLayout&&b.clear(y._fullLayout._uid+O.HOVERID),w.raw(y,p,a)},w.raw=function(y,p){var a=y._fullLayout,u=y._hoverdata;p||(p={}),p.target&&!y._dragged&&c.triggerHandler(y,"plotly_beforehover",p)===!1||(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),y._hoverdata=void 0,p.target&&u&&y.emit("plotly_unhover",{event:p,points:u}))}},98192:function(d,l){l.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},l.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(d,l,n){var c=n(33428),b=n(3400),i=b.numberFormat,O=n(38248),w=n(49760),y=n(24040),p=n(76308),a=n(8932),u=b.strTranslate,h=n(72736),m=n(9616),v=n(84284).LINE_SPACING,_=n(13448).DESELECTDIM,S=n(43028),A=n(7152),x=n(10624).appendArrayPointValue,R=d.exports={};function M(Ve,$e,Oe){var ke=$e.fillpattern,Le=ke&&R.getPatternAttr(ke.shape,0,"");if(Le){var We=R.getPatternAttr(ke.bgcolor,0,null),Ue=R.getPatternAttr(ke.fgcolor,0,null),Ze=ke.fgopacity,Xe=R.getPatternAttr(ke.size,0,8),tt=R.getPatternAttr(ke.solidity,0,.3),Ee=$e.uid;R.pattern(Ve,"point",Oe,Ee,Le,Xe,tt,void 0,ke.fillmode,We,Ue,Ze)}else $e.fillcolor&&Ve.call(p.fill,$e.fillcolor)}R.font=function(Ve,$e,Oe,ke){b.isPlainObject($e)&&(ke=$e.color,Oe=$e.size,$e=$e.family),$e&&Ve.style("font-family",$e),Oe+1&&Ve.style("font-size",Oe+"px"),ke&&Ve.call(p.fill,ke)},R.setPosition=function(Ve,$e,Oe){Ve.attr("x",$e).attr("y",Oe)},R.setSize=function(Ve,$e,Oe){Ve.attr("width",$e).attr("height",Oe)},R.setRect=function(Ve,$e,Oe,ke,Le){Ve.call(R.setPosition,$e,Oe).call(R.setSize,ke,Le)},R.translatePoint=function(Ve,$e,Oe,ke){var Le=Oe.c2p(Ve.x),We=ke.c2p(Ve.y);return!!(O(Le)&&O(We)&&$e.node())&&($e.node().nodeName==="text"?$e.attr("x",Le).attr("y",We):$e.attr("transform",u(Le,We)),!0)},R.translatePoints=function(Ve,$e,Oe){Ve.each(function(ke){var Le=c.select(this);R.translatePoint(ke,Le,$e,Oe)})},R.hideOutsideRangePoint=function(Ve,$e,Oe,ke,Le,We){$e.attr("display",Oe.isPtWithinRange(Ve,Le)&&ke.isPtWithinRange(Ve,We)?null:"none")},R.hideOutsideRangePoints=function(Ve,$e){if($e._hasClipOnAxisFalse){var Oe=$e.xaxis,ke=$e.yaxis;Ve.each(function(Le){var We=Le[0].trace,Ue=We.xcalendar,Ze=We.ycalendar,Xe=y.traceIs(We,"bar-like")?".bartext":".point,.textpoint";Ve.selectAll(Xe).each(function(tt){R.hideOutsideRangePoint(tt,c.select(this),Oe,ke,Ue,Ze)})})}},R.crispRound=function(Ve,$e,Oe){return $e&&O($e)?Ve._context.staticPlot?$e:$e<1?1:Math.round($e):Oe||0},R.singleLineStyle=function(Ve,$e,Oe,ke,Le){$e.style("fill","none");var We=(((Ve||[])[0]||{}).trace||{}).line||{},Ue=Oe||We.width||0,Ze=Le||We.dash||"";p.stroke($e,ke||We.color),R.dashLine($e,Ze,Ue)},R.lineGroupStyle=function(Ve,$e,Oe,ke){Ve.style("fill","none").each(function(Le){var We=(((Le||[])[0]||{}).trace||{}).line||{},Ue=$e||We.width||0,Ze=ke||We.dash||"";c.select(this).call(p.stroke,Oe||We.color).call(R.dashLine,Ze,Ue)})},R.dashLine=function(Ve,$e,Oe){Oe=+Oe||0,$e=R.dashStyle($e,Oe),Ve.style({"stroke-dasharray":$e,"stroke-width":Oe+"px"})},R.dashStyle=function(Ve,$e){$e=+$e||1;var Oe=Math.max($e,3);return Ve==="solid"?Ve="":Ve==="dot"?Ve=Oe+"px,"+Oe+"px":Ve==="dash"?Ve=3*Oe+"px,"+3*Oe+"px":Ve==="longdash"?Ve=5*Oe+"px,"+5*Oe+"px":Ve==="dashdot"?Ve=3*Oe+"px,"+Oe+"px,"+Oe+"px,"+Oe+"px":Ve==="longdashdot"&&(Ve=5*Oe+"px,"+2*Oe+"px,"+Oe+"px,"+2*Oe+"px"),Ve},R.singleFillStyle=function(Ve,$e){var Oe=c.select(Ve.node());M(Ve,((Oe.data()[0]||[])[0]||{}).trace||{},$e)},R.fillGroupStyle=function(Ve,$e){Ve.style("stroke-width",0).each(function(Oe){var ke=c.select(this);Oe[0].trace&&M(ke,Oe[0].trace,$e)})};var T=n(71984);R.symbolNames=[],R.symbolFuncs=[],R.symbolBackOffs=[],R.symbolNeedLines={},R.symbolNoDot={},R.symbolNoFill={},R.symbolList=[],Object.keys(T).forEach(function(Ve){var $e=T[Ve],Oe=$e.n;R.symbolList.push(Oe,String(Oe),Ve,Oe+100,String(Oe+100),Ve+"-open"),R.symbolNames[Oe]=Ve,R.symbolFuncs[Oe]=$e.f,R.symbolBackOffs[Oe]=$e.backoff||0,$e.needLine&&(R.symbolNeedLines[Oe]=!0),$e.noDot?R.symbolNoDot[Oe]=!0:R.symbolList.push(Oe+200,String(Oe+200),Ve+"-dot",Oe+300,String(Oe+300),Ve+"-open-dot"),$e.noFill&&(R.symbolNoFill[Oe]=!0)});var E=R.symbolNames.length;function C(Ve,$e,Oe,ke){var Le=Ve%100;return R.symbolFuncs[Le]($e,Oe,ke)+(Ve>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}R.symbolNumber=function(Ve){if(O(Ve))Ve=+Ve;else if(typeof Ve=="string"){var $e=0;Ve.indexOf("-open")>0&&($e=100,Ve=Ve.replace("-open","")),Ve.indexOf("-dot")>0&&($e+=200,Ve=Ve.replace("-dot","")),(Ve=R.symbolNames.indexOf(Ve))>=0&&(Ve+=$e)}return Ve%100>=E||Ve>=400?0:Math.floor(Math.max(Ve,0))};var L={x1:1,x2:0,y1:0,y2:0},D={x1:0,x2:0,y1:1,y2:0},k=i("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:L},horizontalreversed:{node:"linearGradient",attrs:L,reversed:!0},vertical:{node:"linearGradient",attrs:D},verticalreversed:{node:"linearGradient",attrs:D,reversed:!0}};R.gradient=function(Ve,$e,Oe,ke,Le,We){for(var Ue=Le.length,Ze=I[ke],Xe=new Array(Ue),tt=0;tt=0&&Ve.i===void 0&&(Ve.i=We.i),$e.style("opacity",ke.selectedOpacityFn?ke.selectedOpacityFn(Ve):Ve.mo===void 0?Ue.opacity:Ve.mo),ke.ms2mrc){var Xe;Xe=Ve.ms==="various"||Ue.size==="various"?3:ke.ms2mrc(Ve.ms),Ve.mrc=Xe,ke.selectedSizeFn&&(Xe=Ve.mrc=ke.selectedSizeFn(Ve));var tt=R.symbolNumber(Ve.mx||Ue.symbol)||0;Ve.om=tt%200>=100;var Ee=He(Ve,Oe),Ne=ce(Ve,Oe);$e.attr("d",C(tt,Xe,Ee,Ne))}var je,nt,ot,Ge=!1;if(Ve.so)ot=Ze.outlierwidth,nt=Ze.outliercolor,je=Ue.outliercolor;else{var ht=(Ze||{}).width;ot=(Ve.mlw+1||ht+1||(Ve.trace?(Ve.trace.marker.line||{}).width:0)+1)-1||0,nt="mlc"in Ve?Ve.mlcc=ke.lineScale(Ve.mlc):b.isArrayOrTypedArray(Ze.color)?p.defaultLine:Ze.color,b.isArrayOrTypedArray(Ue.color)&&(je=p.defaultLine,Ge=!0),je="mc"in Ve?Ve.mcc=ke.markerScale(Ve.mc):Ue.color||Ue.colors||"rgba(0,0,0,0)",ke.selectedColorFn&&(je=ke.selectedColorFn(Ve))}if(Ve.om)$e.call(p.stroke,je).style({"stroke-width":(ot||1)+"px",fill:"none"});else{$e.style("stroke-width",(Ve.isBlank?0:ot)+"px");var pt=Ue.gradient,wt=Ve.mgt;wt?Ge=!0:wt=pt&&pt.type,b.isArrayOrTypedArray(wt)&&(wt=wt[0],I[wt]||(wt=0));var Dt=Ue.pattern,It=Dt&&R.getPatternAttr(Dt.shape,Ve.i,"");if(wt&&wt!=="none"){var qt=Ve.mgc;qt?Ge=!0:qt=pt.color;var en=Oe.uid;Ge&&(en+="-"+Ve.i),R.gradient($e,Le,en,wt,[[0,qt],[1,je]],"fill")}else if(It){var Gt=!1,Ct=Dt.fgcolor;!Ct&&We&&We.color&&(Ct=We.color,Gt=!0);var _t=R.getPatternAttr(Ct,Ve.i,We&&We.color||null),nn=R.getPatternAttr(Dt.bgcolor,Ve.i,null),gn=Dt.fgopacity,bn=R.getPatternAttr(Dt.size,Ve.i,8),mn=R.getPatternAttr(Dt.solidity,Ve.i,.3);Gt=Gt||Ve.mcc||b.isArrayOrTypedArray(Dt.shape)||b.isArrayOrTypedArray(Dt.bgcolor)||b.isArrayOrTypedArray(Dt.fgcolor)||b.isArrayOrTypedArray(Dt.size)||b.isArrayOrTypedArray(Dt.solidity);var vt=Oe.uid;Gt&&(vt+="-"+Ve.i),R.pattern($e,"point",Le,vt,It,bn,mn,Ve.mcc,Dt.fillmode,nn,_t,gn)}else b.isArrayOrTypedArray(je)?p.fill($e,je[Ve.i]):p.fill($e,je);ot&&p.stroke($e,nt)}},R.makePointStyleFns=function(Ve){var $e={},Oe=Ve.marker;return $e.markerScale=R.tryColorscale(Oe,""),$e.lineScale=R.tryColorscale(Oe,"line"),y.traceIs(Ve,"symbols")&&($e.ms2mrc=S.isBubble(Ve)?A(Ve):function(){return(Oe.size||6)/2}),Ve.selectedpoints&&b.extendFlat($e,R.makeSelectedPointStyleFns(Ve)),$e},R.makeSelectedPointStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Le=Ve.marker||{},We=Oe.marker||{},Ue=ke.marker||{},Ze=Le.opacity,Xe=We.opacity,tt=Ue.opacity,Ee=Xe!==void 0,Ne=tt!==void 0;(b.isArrayOrTypedArray(Ze)||Ee||Ne)&&($e.selectedOpacityFn=function(It){var qt=It.mo===void 0?Le.opacity:It.mo;return It.selected?Ee?Xe:qt:Ne?tt:_*qt});var je=Le.color,nt=We.color,ot=Ue.color;(nt||ot)&&($e.selectedColorFn=function(It){var qt=It.mcc||je;return It.selected?nt||qt:ot||qt});var Ge=Le.size,ht=We.size,pt=Ue.size,wt=ht!==void 0,Dt=pt!==void 0;return y.traceIs(Ve,"symbols")&&(wt||Dt)&&($e.selectedSizeFn=function(It){var qt=It.mrc||Ge/2;return It.selected?wt?ht/2:qt:Dt?pt/2:qt}),$e},R.makeSelectedTextStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Le=Ve.textfont||{},We=Oe.textfont||{},Ue=ke.textfont||{},Ze=Le.color,Xe=We.color,tt=Ue.color;return $e.selectedTextColorFn=function(Ee){var Ne=Ee.tc||Ze;return Ee.selected?Xe||Ne:tt||(Xe?Ne:p.addOpacity(Ne,_))},$e},R.selectedPointStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedPointStyleFns($e),ke=$e.marker||{},Le=[];Oe.selectedOpacityFn&&Le.push(function(We,Ue){We.style("opacity",Oe.selectedOpacityFn(Ue))}),Oe.selectedColorFn&&Le.push(function(We,Ue){p.fill(We,Oe.selectedColorFn(Ue))}),Oe.selectedSizeFn&&Le.push(function(We,Ue){var Ze=Ue.mx||ke.symbol||0,Xe=Oe.selectedSizeFn(Ue);We.attr("d",C(R.symbolNumber(Ze),Xe,He(Ue,$e),ce(Ue,$e))),Ue.mrc2=Xe}),Le.length&&Ve.each(function(We){for(var Ue=c.select(this),Ze=0;Ze0?Oe:0}function X(Ve,$e,Oe){return Oe&&(Ve=Y(Ve)),$e?W(Ve[1]):te(Ve[0])}function te(Ve){var $e=c.round(Ve,2);return z=$e,$e}function W(Ve){var $e=c.round(Ve,2);return $=$e,$e}function K(Ve,$e,Oe,ke){var Le=Ve[0]-$e[0],We=Ve[1]-$e[1],Ue=Oe[0]-$e[0],Ze=Oe[1]-$e[1],Xe=Math.pow(Le*Le+We*We,.25),tt=Math.pow(Ue*Ue+Ze*Ze,.25),Ee=(tt*tt*Le-Xe*Xe*Ue)*ke,Ne=(tt*tt*We-Xe*Xe*Ze)*ke,je=3*tt*(Xe+tt),nt=3*Xe*(Xe+tt);return[[te($e[0]+(je&&Ee/je)),W($e[1]+(je&&Ne/je))],[te($e[0]-(nt&&Ee/nt)),W($e[1]-(nt&&Ne/nt))]]}R.textPointStyle=function(Ve,$e,Oe){if(Ve.size()){var ke;if($e.selectedpoints){var Le=R.makeSelectedTextStyleFns($e);ke=Le.selectedTextColorFn}var We=$e.texttemplate,Ue=Oe._fullLayout;Ve.each(function(Ze){var Xe=c.select(this),tt=We?b.extractOption(Ze,$e,"txt","texttemplate"):b.extractOption(Ze,$e,"tx","text");if(tt||tt===0){if(We){var Ee=$e._module.formatLabels,Ne=Ee?Ee(Ze,$e,Ue):{},je={};x(je,$e,Ze.i);var nt=$e._meta||{};tt=b.texttemplateString(tt,Ne,Ue._d3locale,je,Ze,nt)}var ot=Ze.tp||$e.textposition,Ge=U(Ze,$e),ht=ke?ke(Ze):Ze.tc||$e.textfont.color;Xe.call(R.font,Ze.tf||$e.textfont.family,Ge,ht).text(tt).call(h.convertToTspans,Oe).call(j,ot,Ge,Ze.mrc)}else Xe.remove()})}},R.selectedTextStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedTextStyleFns($e);Ve.each(function(ke){var Le=c.select(this),We=Oe.selectedTextColorFn(ke),Ue=ke.tp||$e.textposition,Ze=U(ke,$e);p.fill(Le,We);var Xe=y.traceIs($e,"bar-like");j(Le,Ue,Ze,ke.mrc2||ke.mrc,Xe)})}},R.smoothopen=function(Ve,$e){if(Ve.length<3)return"M"+Ve.join("L");var Oe,ke="M"+Ve[0],Le=[];for(Oe=1;Oe=Xe||It>=Ee&&It<=Xe)&&(qt<=Ne&&qt>=tt||qt>=Ne&&qt<=tt)&&(Ve=[It,qt])}return Ve}R.steps=function(Ve){var $e=oe[Ve]||q;return function(Oe){for(var ke="M"+te(Oe[0][0])+","+W(Oe[0][1]),Le=Oe.length,We=1;We=1e4&&(R.savedBBoxes={},ee=0),Oe&&(R.savedBBoxes[Oe]=nt),ee++,b.extendFlat({},nt)},R.setClipUrl=function(Ve,$e,Oe){Ve.attr("clip-path",he($e,Oe))},R.getTranslate=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(Oe,ke,Le){return[ke,Le].join(" ")}).split(" ");return{x:+$e[0]||0,y:+$e[1]||0}},R.setTranslate=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Le=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||0,Oe=Oe||0,We=We.replace(/(\btranslate\(.*?\);?)/,"").trim(),We=(We+=u($e,Oe)).trim(),Ve[Le]("transform",We),We},R.getScale=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(Oe,ke,Le){return[ke,Le].join(" ")}).split(" ");return{x:+$e[0]||1,y:+$e[1]||1}},R.setScale=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Le=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||1,Oe=Oe||1,We=We.replace(/(\bscale\(.*?\);?)/,"").trim(),We=(We+="scale("+$e+","+Oe+")").trim(),Ve[Le]("transform",We),We};var se=/\s*sc.*/;R.setPointGroupScale=function(Ve,$e,Oe){if($e=$e||1,Oe=Oe||1,Ve){var ke=$e===1&&Oe===1?"":"scale("+$e+","+Oe+")";Ve.each(function(){var Le=(this.getAttribute("transform")||"").replace(se,"");Le=(Le+=ke).trim(),this.setAttribute("transform",Le)})}};var ae=/translate\([^)]*\)\s*$/;function ce(Ve,$e){var Oe;return Ve&&(Oe=Ve.mf),Oe===void 0&&(Oe=$e.marker&&$e.marker.standoff||0),$e._geo||$e._xA?Oe:-Oe}R.setTextPointsScale=function(Ve,$e,Oe){Ve&&Ve.each(function(){var ke,Le=c.select(this),We=Le.select("text");if(We.node()){var Ue=parseFloat(We.attr("x")||0),Ze=parseFloat(We.attr("y")||0),Xe=(Le.attr("transform")||"").match(ae);ke=$e===1&&Oe===1?[]:[u(Ue,Ze),"scale("+$e+","+Oe+")",u(-Ue,-Ze)],Xe&&ke.push(Xe),Le.attr("transform",ke.join(""))}})},R.getMarkerStandoff=ce;var de,ve,ye,_e,Se,Te,Pe=Math.atan2,Ie=Math.cos,ze=Math.sin;function De(Ve,$e){var Oe=$e[0],ke=$e[1];return[Oe*Ie(Ve)-ke*ze(Ve),Oe*ze(Ve)+ke*Ie(Ve)]}function He(Ve,$e){var Oe,ke,Le=Ve.ma;Le===void 0&&((Le=$e.marker.angle)&&!b.isArrayOrTypedArray(Le)||(Le=0));var We=$e.marker.angleref;if(We==="previous"||We==="north"){if($e._geo){var Ue=$e._geo.project(Ve.lonlat);Oe=Ue[0],ke=Ue[1]}else{var Ze=$e._xA,Xe=$e._yA;if(!Ze||!Xe)return 90;Oe=Ze.c2p(Ve.x),ke=Xe.c2p(Ve.y)}if($e._geo){var tt,Ee=Ve.lonlat[0],Ne=Ve.lonlat[1],je=$e._geo.project([Ee,Ne+1e-5]),nt=$e._geo.project([Ee+1e-5,Ne]),ot=Pe(nt[1]-ke,nt[0]-Oe),Ge=Pe(je[1]-ke,je[0]-Oe);if(We==="north")tt=Le/180*Math.PI;else if(We==="previous"){var ht=Ee/180*Math.PI,pt=Ne/180*Math.PI,wt=de/180*Math.PI,Dt=ve/180*Math.PI,It=wt-ht,qt=Ie(Dt)*ze(It),en=ze(Dt)*Ie(pt)-Ie(Dt)*ze(pt)*Ie(It);tt=-Pe(qt,en)-Math.PI,de=Ee,ve=Ne}var Gt=De(ot,[Ie(tt),0]),Ct=De(Ge,[ze(tt),0]);Le=Pe(Gt[1]+Ct[1],Gt[0]+Ct[0])/Math.PI*180,We!=="previous"||Te===$e.uid&&Ve.i===Se+1||(Le=null)}if(We==="previous"&&!$e._geo)if(Te===$e.uid&&Ve.i===Se+1&&O(Oe)&&O(ke)){var _t=Oe-ye,nn=ke-_e,gn=$e.line&&$e.line.shape||"",bn=gn.slice(gn.length-1);bn==="h"&&(nn=0),bn==="v"&&(_t=0),Le+=Pe(nn,_t)/Math.PI*180+90}else Le=null}return ye=Oe,_e=ke,Se=Ve.i,Te=$e.uid,Le}R.getMarkerAngle=He},71984:function(d,l,n){var c,b,i,O,w=n(21984),y=n(33428).round,p="M0,0Z",a=Math.sqrt(2),u=Math.sqrt(3),h=Math.PI,m=Math.cos,v=Math.sin;function _(A){return A===null}function S(A,x,R){if(!(A&&A%360!=0||x))return R;if(i===A&&O===x&&c===R)return b;function M(X,te){var W=m(X),K=v(X),oe=te[0],q=te[1]+(x||0);return[oe*W-q*K,oe*K+q*W]}i=A,O=x,c=R;for(var T=A/180*h,E=0,C=0,L=w(R),D="",k=0;k0,v=w._context.staticPlot;y.each(function(_){var S,A=_[0].trace,x=A.error_x||{},R=A.error_y||{};A.ids&&(S=function(C){return C.id});var M=O.hasMarkers(A)&&A.marker.maxdisplayed>0;R.visible||x.visible||(_=[]);var T=c.select(this).selectAll("g.errorbar").data(_,S);if(T.exit().remove(),_.length){x.visible||T.selectAll("path.xerror").remove(),R.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var E=T.enter().append("g").classed("errorbar",!0);m&&E.style("opacity",0).transition().duration(a.duration).style("opacity",1),i.setClipUrl(T,p.layerClipId,w),T.each(function(C){var L=c.select(this),D=function(j,U,X){var te={x:U.c2p(j.x),y:X.c2p(j.y)};return j.yh!==void 0&&(te.yh=X.c2p(j.yh),te.ys=X.c2p(j.ys),b(te.ys)||(te.noYS=!0,te.ys=X.c2p(j.ys,!0))),j.xh!==void 0&&(te.xh=U.c2p(j.xh),te.xs=U.c2p(j.xs),b(te.xs)||(te.noXS=!0,te.xs=U.c2p(j.xs,!0))),te}(C,u,h);if(!M||C.vis){var k,I=L.select("path.yerror");if(R.visible&&b(D.x)&&b(D.yh)&&b(D.ys)){var z=R.width;k="M"+(D.x-z)+","+D.yh+"h"+2*z+"m-"+z+",0V"+D.ys,D.noYS||(k+="m-"+z+",0h"+2*z),I.size()?m&&(I=I.transition().duration(a.duration).ease(a.easing)):I=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",k)}else I.remove();var $=L.select("path.xerror");if(x.visible&&b(D.y)&&b(D.xh)&&b(D.xs)){var Q=(x.copy_ystyle?R:x).width;k="M"+D.xh+","+(D.y-Q)+"v"+2*Q+"m0,-"+Q+"H"+D.xs,D.noXS||(k+="m0,-"+Q+"v"+2*Q),$.size()?m&&($=$.transition().duration(a.duration).ease(a.easing)):$=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0),$.attr("d",k)}else $.remove()}})}})}},92036:function(d,l,n){var c=n(33428),b=n(76308);d.exports=function(i){i.each(function(O){var w=O[0].trace,y=w.error_y||{},p=w.error_x||{},a=c.select(this);a.selectAll("path.yerror").style("stroke-width",y.thickness+"px").call(b.stroke,y.color),p.copy_ystyle&&(p=y),a.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(b.stroke,p.color)})}},55756:function(d,l,n){var c=n(25376),b=n(65460).hoverlabel,i=n(92880).extendFlat;d.exports={hoverlabel:{bgcolor:i({},b.bgcolor,{arrayOk:!0}),bordercolor:i({},b.bordercolor,{arrayOk:!0}),font:c({arrayOk:!0,editType:"none"}),align:i({},b.align,{arrayOk:!0}),namelength:i({},b.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(d,l,n){var c=n(3400),b=n(24040);function i(O,w,y,p){p=p||c.identity,Array.isArray(O)&&(w[0][y]=p(O))}d.exports=function(O){var w=O.calcdata,y=O._fullLayout;function p(v){return function(_){return c.coerceHoverinfo({hoverinfo:_},{_module:v._module},y)}}for(var a=0;a=0&&u.indexLe[0]._length||bt<0||bt>We[0]._length)return v.unhoverRaw(_e,Se)}else vt="xpx"in Se?Se.xpx:Le[0]._length/2,bt="ypx"in Se?Se.ypx:We[0]._length/2;if(Se.pointerX=vt+Le[0]._offset,Se.pointerY=bt+We[0]._offset,nt="xval"in Se?A.flat(ze,Se.xval):A.p2c(Le,vt),ot="yval"in Se?A.flat(ze,Se.yval):A.p2c(We,bt),!b(nt[0])||!b(ot[0]))return O.warn("Fx.hover failed",Se,_e),v.unhoverRaw(_e,Se)}var zt=1/0;function Rt(Pn,Yn){for(ht=0;ht_t&&(nn.splice(0,_t),zt=nn[0].distance),$e&&je!==0&&nn.length===0){Ct.distance=je,Ct.index=!1;var Qr=wt._module.hoverPoints(Ct,en,Gt,"closest",{hoverLayer:De._hoverlayer});if(Qr&&(Qr=Qr.filter(function(zn){return zn.spikeDistance<=je})),Qr&&Qr.length){var Wr,bo=Qr.filter(function(zn){return zn.xa.showspikes&&zn.xa.spikesnap!=="hovered data"});if(bo.length){var Bn=bo[0];b(Bn.x0)&&b(Bn.y0)&&(Wr=at(Bn),(!bn.vLinePoint||bn.vLinePoint.spikeDistance>Wr.spikeDistance)&&(bn.vLinePoint=Wr))}var hr=Qr.filter(function(zn){return zn.ya.showspikes&&zn.ya.spikesnap!=="hovered data"});if(hr.length){var hn=hr[0];b(hn.x0)&&b(hn.y0)&&(Wr=at(hn),(!bn.hLinePoint||bn.hLinePoint.spikeDistance>Wr.spikeDistance)&&(bn.hLinePoint=Wr))}}}}}function it(Pn,Yn,br){for(var dr,Cr=null,io=1/0,Qr=0;Qr0&&Math.abs(Pn.distance)dn-1;vn--)In(nn[vn]);nn=Nn,Xt()}var Un=_e._hoverdata,xr=[],Sr=me(_e),ar=he(_e);for(Ge=0;Ge1||nn.length>1)||Ee==="closest"&&mn&&nn.length>1,so=m.combine(De.plot_bgcolor||m.background,De.paper_bgcolor),So=U(nn,{gd:_e,hovermode:Ee,rotateLabels:Co,bgColor:so,container:De._hoverlayer,outerContainer:De._paper.node(),commonLabelOpts:De.hoverlabel,hoverdistance:De.hoverdistance}),go=So.hoverLabels;if(A.isUnifiedHover(Ee)||(function(Pn,Yn,br,dr){var Cr,io,Qr,Wr,bo,Bn,hr,hn=Yn?"xa":"ya",zn=Yn?"ya":"xa",Zn=0,yr=1,gr=Pn.size(),vr=new Array(gr),nr=0,Qn=dr.minX,Hn=dr.maxX,tr=dr.minY,cr=dr.maxY,Lr=function(po){return po*br._invScaleX},Er=function(po){return po*br._invScaleY};function Vr(po){var qo=po[0],Ao=po[po.length-1];if(io=qo.pmin-qo.pos-qo.dp+qo.size,Qr=Ao.pos+Ao.dp+Ao.size-qo.pmax,io>.01){for(bo=po.length-1;bo>=0;bo--)po[bo].dp+=io;Cr=!1}if(!(Qr<.01)){if(io<-.01){for(bo=po.length-1;bo>=0;bo--)po[bo].dp-=Qr;Cr=!1}if(Cr){var oi=0;for(Wr=0;Wrqo.pmax&&oi++;for(Wr=po.length-1;Wr>=0&&!(oi<=0);Wr--)(Bn=po[Wr]).pos>qo.pmax-1&&(Bn.del=!0,oi--);for(Wr=0;Wr=0;bo--)po[bo].dp-=Qr;for(Wr=po.length-1;Wr>=0&&!(oi<=0);Wr--)(Bn=po[Wr]).pos+Bn.dp+Bn.size>qo.pmax&&(Bn.del=!0,oi--)}}}for(Pn.each(function(po){var qo=po[hn],Ao=po[zn],oi=qo._id.charAt(0)==="x",ko=qo.range;nr===0&&ko&&ko[0]>ko[1]!==oi&&(yr=-1);var ra=0,mo=oi?br.width:br.height;if(br.hovermode==="x"||br.hovermode==="y"){var Aa,Xl,Na=te(po,Yn),cs=po.anchor,wc=cs==="end"?-1:1;if(cs==="middle")Xl=(Aa=po.crossPos+(oi?Er(Na.y-po.by/2):Lr(po.bx/2+po.tx2width/2)))+(oi?Er(po.by):Lr(po.bx));else if(oi)Xl=(Aa=po.crossPos+Er(k+Na.y)-Er(po.by/2-k))+Er(po.by);else{var ma=Lr(wc*k+Na.x),Ku=ma+Lr(wc*po.bx);Aa=po.crossPos+Math.min(ma,Ku),Xl=po.crossPos+Math.max(ma,Ku)}oi?tr!==void 0&&cr!==void 0&&Math.min(Xl,cr)-Math.max(Aa,tr)>1&&(Ao.side==="left"?(ra=Ao._mainLinePosition,mo=br.width):mo=Ao._mainLinePosition):Qn!==void 0&&Hn!==void 0&&Math.min(Xl,Hn)-Math.max(Aa,Qn)>1&&(Ao.side==="top"?(ra=Ao._mainLinePosition,mo=br.height):mo=Ao._mainLinePosition)}vr[nr++]=[{datum:po,traceIndex:po.trace.index,dp:0,pos:po.pos,posref:po.posref,size:po.by*(oi?C:1)/2,pmin:ra,pmax:mo}]}),vr.sort(function(po,qo){return po[0].posref-qo[0].posref||yr*(qo[0].traceIndex-po[0].traceIndex)});!Cr&&Zn<=gr;){for(Zn++,Cr=!0,Wr=0;Wr.01&&fr.pmin===Eo.pmin&&fr.pmax===Eo.pmax){for(bo=_o.length-1;bo>=0;bo--)_o[bo].dp+=io;for(to.push.apply(to,_o),vr.splice(Wr+1,1),hr=0,bo=to.length-1;bo>=0;bo--)hr+=to[bo].dp;for(Qr=hr/to.length,bo=to.length-1;bo>=0;bo--)to[bo].dp-=Qr;Cr=!1}else Wr++}vr.forEach(Vr)}for(Wr=vr.length-1;Wr>=0;Wr--){var ao=vr[Wr];for(bo=ao.length-1;bo>=0;bo--){var co=ao[bo],Go=co.datum;Go.offset=co.dp,Go.del=co.del}}}(go,Co,De,So.commonLabelBoundingBox),W(go,Co,De._invScaleX,De._invScaleY)),Ie&&Ie.tagName){var li=S.getComponentMethod("annotations","hasClickToShow")(_e,xr);u(c.select(Ie),li?"pointer":"")}Ie&&!Pe&&function(Pn,Yn,br){if(!br||br.length!==Pn._hoverdata.length)return!0;for(var dr=br.length-1;dr>=0;dr--){var Cr=br[dr],io=Pn._hoverdata[dr];if(Cr.curveNumber!==io.curveNumber||String(Cr.pointNumber)!==String(io.pointNumber)||String(Cr.pointNumbers)!==String(io.pointNumbers))return!0}return!1}(_e,0,Un)&&(Un&&_e.emit("plotly_unhover",{event:Se,points:Un}),_e.emit("plotly_hover",{event:Se,points:_e._hoverdata,xaxes:Le,yaxes:We,xvals:nt,yvals:ot}))})(ae,ce,de,ve,ye)})},l.loneHover=function(ae,ce){var de=!0;Array.isArray(ae)||(de=!1,ae=[ae]);var ve=ce.gd,ye=me(ve),_e=he(ve),Se=U(ae.map(function(Ie){var ze=Ie._x0||Ie.x0||Ie.x||0,De=Ie._x1||Ie.x1||Ie.x||0,He=Ie._y0||Ie.y0||Ie.y||0,Ve=Ie._y1||Ie.y1||Ie.y||0,$e=Ie.eventData;if($e){var Oe=Math.min(ze,De),ke=Math.max(ze,De),Le=Math.min(He,Ve),We=Math.max(He,Ve),Ue=Ie.trace;if(S.traceIs(Ue,"gl3d")){var Ze=ve._fullLayout[Ue.scene]._scene.container,Xe=Ze.offsetLeft,tt=Ze.offsetTop;Oe+=Xe,ke+=Xe,Le+=tt,We+=tt}$e.bbox={x0:Oe+_e,x1:ke+_e,y0:Le+ye,y1:We+ye},ce.inOut_bbox&&ce.inOut_bbox.push($e.bbox)}else $e=!1;return{color:Ie.color||m.defaultLine,x0:Ie.x0||Ie.x||0,x1:Ie.x1||Ie.x||0,y0:Ie.y0||Ie.y||0,y1:Ie.y1||Ie.y||0,xLabel:Ie.xLabel,yLabel:Ie.yLabel,zLabel:Ie.zLabel,text:Ie.text,name:Ie.name,idealAlign:Ie.idealAlign,borderColor:Ie.borderColor,fontFamily:Ie.fontFamily,fontSize:Ie.fontSize,fontColor:Ie.fontColor,nameLength:Ie.nameLength,textAlign:Ie.textAlign,trace:Ie.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Ie.hovertemplate||!1,hovertemplateLabels:Ie.hovertemplateLabels||!1,eventData:$e}}),{gd:ve,hovermode:"closest",rotateLabels:!1,bgColor:ce.bgColor||m.background,container:c.select(ce.container),outerContainer:ce.outerContainer||ce.container}).hoverLabels,Te=0,Pe=0;return Se.sort(function(Ie,ze){return Ie.y0-ze.y0}).each(function(Ie,ze){var De=Ie.y0-Ie.by/2;Ie.offset=De-5([\s\S]*)<\/extra>/;function U(ae,ce){var de=ce.gd,ve=de._fullLayout,ye=ce.hovermode,_e=ce.rotateLabels,Se=ce.bgColor,Te=ce.container,Pe=ce.outerContainer,Ie=ce.commonLabelOpts||{};if(ae.length===0)return[[]];var ze=ce.fontFamily||x.HOVERFONT,De=ce.fontSize||x.HOVERFONTSIZE,He=ae[0],Ve=He.xa,$e=He.ya,Oe=ye.charAt(0),ke=Oe+"Label",Le=He[ke];if(Le===void 0&&Ve.type==="multicategory")for(var We=0;Weve.width-ar?(In=ve.width-ar,fn.attr("d","M"+(ar-k)+",0L"+ar+","+Sr+k+"v"+Sr+(2*I+xr.height)+"H-"+ar+"V"+Sr+k+"H"+(ar-2*k)+"Z")):fn.attr("d","M0,0L"+k+","+Sr+k+"H"+ar+"v"+Sr+(2*I+xr.height)+"H-"+ar+"V"+Sr+k+"H-"+k+"Z"),ht.minX=In-ar,ht.maxX=In+ar,Ve.side==="top"?(ht.minY=Un-(2*I+xr.height),ht.maxY=Un-I):(ht.minY=Un+I,ht.maxY=Un+(2*I+xr.height))}else{var Fn,ir,Wn;$e.side==="right"?(Fn="start",ir=1,Wn="",In=Ve._offset+Ve._length):(Fn="end",ir=-1,Wn="-",In=Ve._offset),Un=$e._offset+(He.y0+He.y1)/2,dn.attr("text-anchor",Fn),fn.attr("d","M0,0L"+Wn+k+","+k+"V"+(I+xr.height/2)+"h"+Wn+(2*I+xr.width)+"V-"+(I+xr.height/2)+"H"+Wn+k+"V-"+k+"Z"),ht.minY=Un-(I+xr.height/2),ht.maxY=Un+(I+xr.height/2),$e.side==="right"?(ht.minX=In+k,ht.maxX=In+k+(2*I+xr.width)):(ht.minX=In-k-(2*I+xr.width),ht.maxX=In-k);var Kn,_r=xr.height/2,Ir=Ze-xr.top-_r,zr="clip"+ve._uid+"commonlabel"+$e._id;if(In=0?bt:lt+Rt=0?lt:Qt+Rt=0?mn:vt+it=0?vt:Pt+it=0,Kt.idealAlign!=="top"&&Kr||!Co?Kr?(_r+=zr/2,Kt.anchor="start"):Kt.anchor="middle":(_r-=zr/2,Kt.anchor="end"),Kt.crossPos=_r;else{if(Kt.pos=_r,Kr=Kn+Ir/2+so<=Xe,Co=Kn-Ir/2-so>=0,Kt.idealAlign!=="left"&&Kr||!Co)if(Kr)Kn+=Ir/2,Kt.anchor="start";else{Kt.anchor="middle";var So=so/2,go=Kn+So-Xe,li=Kn-So;go>0&&(Kn-=go),li<0&&(Kn+=-li)}else Kn-=Ir/2,Kt.anchor="end";Kt.crossPos=Kn}Sr.attr("text-anchor",Kt.anchor),Fn&&ar.attr("text-anchor",Kt.anchor),fn.attr("transform",w(Kn,_r)+(_e?y(T):""))}),{hoverLabels:tn,commonLabelBoundingBox:ht}}function X(ae,ce,de,ve,ye,_e){var Se="",Te="";ae.nameOverride!==void 0&&(ae.name=ae.nameOverride),ae.name&&(ae.trace._meta&&(ae.name=O.templateString(ae.name,ae.trace._meta)),Se=Y(ae.name,ae.nameLength));var Pe=de.charAt(0),Ie=Pe==="x"?"y":"x";ae.zLabel!==void 0?(ae.xLabel!==void 0&&(Te+="x: "+ae.xLabel+"
    "),ae.yLabel!==void 0&&(Te+="y: "+ae.yLabel+"
    "),ae.trace.type!=="choropleth"&&ae.trace.type!=="choroplethmapbox"&&(Te+=(Te?"z: ":"")+ae.zLabel)):ce&&ae[Pe+"Label"]===ye?Te=ae[Ie+"Label"]||"":ae.xLabel===void 0?ae.yLabel!==void 0&&ae.trace.type!=="scattercarpet"&&(Te=ae.yLabel):Te=ae.yLabel===void 0?ae.xLabel:"("+ae.xLabel+", "+ae.yLabel+")",!ae.text&&ae.text!==0||Array.isArray(ae.text)||(Te+=(Te?"
    ":"")+ae.text),ae.extraText!==void 0&&(Te+=(Te?"
    ":"")+ae.extraText),_e&&Te===""&&!ae.hovertemplate&&(Se===""&&_e.remove(),Te=Se);var ze=ae.hovertemplate||!1;if(ze){var De=ae.hovertemplateLabels||ae;ae[Pe+"Label"]!==ye&&(De[Pe+"other"]=De[Pe+"Val"],De[Pe+"otherLabel"]=De[Pe+"Label"]),Te=(Te=O.hovertemplateString(ze,De,ve._d3locale,ae.eventData[0]||{},ae.trace._meta)).replace(j,function(He,Ve){return Se=Y(Ve,ae.nameLength),""})}return[Te,Se]}function te(ae,ce){var de=0,ve=ae.offset;return ce&&(ve*=-D,de=ae.offset*L),{x:de,y:ve}}function W(ae,ce,de,ve){var ye=function(Se){return Se*de},_e=function(Se){return Se*ve};ae.each(function(Se){var Te=c.select(this);if(Se.del)return Te.remove();var Pe,Ie,ze,De,He=Te.select("text.nums"),Ve=Se.anchor,$e=Ve==="end"?-1:1,Oe=(De=(ze=(Ie={start:1,end:-1,middle:0}[(Pe=Se).anchor])*(k+I))+Ie*(Pe.txwidth+I),Pe.anchor==="middle"&&(ze-=Pe.tx2width/2,De+=Pe.txwidth/2+I),{alignShift:Ie,textShiftX:ze,text2ShiftX:De}),ke=te(Se,ce),Le=ke.x,We=ke.y,Ue=Ve==="middle";Te.select("path").attr("d",Ue?"M-"+ye(Se.bx/2+Se.tx2width/2)+","+_e(We-Se.by/2)+"h"+ye(Se.bx)+"v"+_e(Se.by)+"h-"+ye(Se.bx)+"Z":"M0,0L"+ye($e*k+Le)+","+_e(k+We)+"v"+_e(Se.by/2-k)+"h"+ye($e*Se.bx)+"v-"+_e(Se.by)+"H"+ye($e*k+Le)+"V"+_e(We-k)+"Z");var Ze=Le+Oe.textShiftX,Xe=We+Se.ty0-Se.by/2+I,tt=Se.textAlign||"auto";tt!=="auto"&&(tt==="left"&&Ve!=="start"?(He.attr("text-anchor","start"),Ze=Ue?-Se.bx/2-Se.tx2width/2+I:-Se.bx-I):tt==="right"&&Ve!=="end"&&(He.attr("text-anchor","end"),Ze=Ue?Se.bx/2-Se.tx2width/2-I:Se.bx+I)),He.call(a.positionText,ye(Ze),_e(Xe)),Se.tx2width&&(Te.select("text.name").call(a.positionText,ye(Oe.text2ShiftX+Oe.alignShift*I+Le),_e(We+Se.ty0-Se.by/2+I)),Te.select("rect").call(h.setRect,ye(Oe.text2ShiftX+(Oe.alignShift-1)*Se.tx2width/2+Le),_e(We-Se.by/2-1),ye(Se.tx2width),_e(Se.by+2)))})}function K(ae,ce){var de=ae.index,ve=ae.trace||{},ye=ae.cd[0],_e=ae.cd[de]||{};function Se(He){return He||b(He)&&He===0}var Te=Array.isArray(de)?function(He,Ve){var $e=O.castOption(ye,de,He);return Se($e)?$e:O.extractOption({},ve,"",Ve)}:function(He,Ve){return O.extractOption(_e,ve,He,Ve)};function Pe(He,Ve,$e){var Oe=Te(Ve,$e);Se(Oe)&&(ae[He]=Oe)}if(Pe("hoverinfo","hi","hoverinfo"),Pe("bgcolor","hbg","hoverlabel.bgcolor"),Pe("borderColor","hbc","hoverlabel.bordercolor"),Pe("fontFamily","htf","hoverlabel.font.family"),Pe("fontSize","hts","hoverlabel.font.size"),Pe("fontColor","htc","hoverlabel.font.color"),Pe("nameLength","hnl","hoverlabel.namelength"),Pe("textAlign","hta","hoverlabel.align"),ae.posref=ce==="y"||ce==="closest"&&ve.orientation==="h"?ae.xa._offset+(ae.x0+ae.x1)/2:ae.ya._offset+(ae.y0+ae.y1)/2,ae.x0=O.constrain(ae.x0,0,ae.xa._length),ae.x1=O.constrain(ae.x1,0,ae.xa._length),ae.y0=O.constrain(ae.y0,0,ae.ya._length),ae.y1=O.constrain(ae.y1,0,ae.ya._length),ae.xLabelVal!==void 0&&(ae.xLabel="xLabel"in ae?ae.xLabel:_.hoverLabelText(ae.xa,ae.xLabelVal,ve.xhoverformat),ae.xVal=ae.xa.c2d(ae.xLabelVal)),ae.yLabelVal!==void 0&&(ae.yLabel="yLabel"in ae?ae.yLabel:_.hoverLabelText(ae.ya,ae.yLabelVal,ve.yhoverformat),ae.yVal=ae.ya.c2d(ae.yLabelVal)),ae.zLabelVal!==void 0&&ae.zLabel===void 0&&(ae.zLabel=String(ae.zLabelVal)),!(isNaN(ae.xerr)||ae.xa.type==="log"&&ae.xerr<=0)){var Ie=_.tickText(ae.xa,ae.xa.c2l(ae.xerr),"hover").text;ae.xerrneg!==void 0?ae.xLabel+=" +"+Ie+" / -"+_.tickText(ae.xa,ae.xa.c2l(ae.xerrneg),"hover").text:ae.xLabel+=" ± "+Ie,ce==="x"&&(ae.distance+=1)}if(!(isNaN(ae.yerr)||ae.ya.type==="log"&&ae.yerr<=0)){var ze=_.tickText(ae.ya,ae.ya.c2l(ae.yerr),"hover").text;ae.yerrneg!==void 0?ae.yLabel+=" +"+ze+" / -"+_.tickText(ae.ya,ae.ya.c2l(ae.yerrneg),"hover").text:ae.yLabel+=" ± "+ze,ce==="y"&&(ae.distance+=1)}var De=ae.hoverinfo||ae.trace.hoverinfo;return De&&De!=="all"&&((De=Array.isArray(De)?De:De.split("+")).indexOf("x")===-1&&(ae.xLabel=void 0),De.indexOf("y")===-1&&(ae.yLabel=void 0),De.indexOf("z")===-1&&(ae.zLabel=void 0),De.indexOf("text")===-1&&(ae.text=void 0),De.indexOf("name")===-1&&(ae.name=void 0)),ae}function oe(ae,ce,de){var ve,ye,_e=de.container,Se=de.fullLayout,Te=Se._size,Pe=de.event,Ie=!!ce.hLinePoint,ze=!!ce.vLinePoint;if(_e.selectAll(".spikeline").remove(),ze||Ie){var De=m.combine(Se.plot_bgcolor,Se.paper_bgcolor);if(Ie){var He,Ve,$e=ce.hLinePoint;ve=$e&&$e.xa,(ye=$e&&$e.ya).spikesnap==="cursor"?(He=Pe.pointerX,Ve=Pe.pointerY):(He=ve._offset+$e.x,Ve=ye._offset+$e.y);var Oe,ke,Le=i.readability($e.color,De)<1.5?m.contrast(De):$e.color,We=ye.spikemode,Ue=ye.spikethickness,Ze=ye.spikecolor||Le,Xe=_.getPxPosition(ae,ye);if(We.indexOf("toaxis")!==-1||We.indexOf("across")!==-1){if(We.indexOf("toaxis")!==-1&&(Oe=Xe,ke=He),We.indexOf("across")!==-1){var tt=ye._counterDomainMin,Ee=ye._counterDomainMax;ye.anchor==="free"&&(tt=Math.min(tt,ye.position),Ee=Math.max(Ee,ye.position)),Oe=Te.l+tt*Te.w,ke=Te.l+Ee*Te.w}_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue,stroke:Ze,"stroke-dasharray":h.dashStyle(ye.spikedash,Ue)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}We.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Xe+(ye.side!=="right"?Ue:-Ue),cy:Ve,r:Ue,fill:Ze}).classed("spikeline",!0)}if(ze){var Ne,je,nt=ce.vLinePoint;ve=nt&&nt.xa,ye=nt&&nt.ya,ve.spikesnap==="cursor"?(Ne=Pe.pointerX,je=Pe.pointerY):(Ne=ve._offset+nt.x,je=ye._offset+nt.y);var ot,Ge,ht=i.readability(nt.color,De)<1.5?m.contrast(De):nt.color,pt=ve.spikemode,wt=ve.spikethickness,Dt=ve.spikecolor||ht,It=_.getPxPosition(ae,ve);if(pt.indexOf("toaxis")!==-1||pt.indexOf("across")!==-1){if(pt.indexOf("toaxis")!==-1&&(ot=It,Ge=je),pt.indexOf("across")!==-1){var qt=ve._counterDomainMin,en=ve._counterDomainMax;ve.anchor==="free"&&(qt=Math.min(qt,ve.position),en=Math.max(en,ve.position)),ot=Te.t+(1-en)*Te.h,Ge=Te.t+(1-qt)*Te.h}_e.insert("line",":first-child").attr({x1:Ne,x2:Ne,y1:ot,y2:Ge,"stroke-width":wt,stroke:Dt,"stroke-dasharray":h.dashStyle(ve.spikedash,wt)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Ne,x2:Ne,y1:ot,y2:Ge,"stroke-width":wt+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}pt.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Ne,cy:It-(ve.side!=="top"?wt:-wt),r:wt,fill:Dt}).classed("spikeline",!0)}}}function q(ae,ce){return!ce||ce.vLinePoint!==ae._spikepoints.vLinePoint||ce.hLinePoint!==ae._spikepoints.hLinePoint}function Y(ae,ce){return a.plainText(ae||"",{len:ce,allowedTags:["br","sub","sup","b","i","em"]})}function ee(ae,ce,de){var ve=ce[ae+"a"],ye=ce[ae+"Val"],_e=ce.cd[0];if(ve.type==="category"||ve.type==="multicategory")ye=ve._categoriesMap[ye];else if(ve.type==="date"){var Se=ce.trace[ae+"periodalignment"];if(Se){var Te=ce.cd[ce.index],Pe=Te[ae+"Start"];Pe===void 0&&(Pe=Te[ae]);var Ie=Te[ae+"End"];Ie===void 0&&(Ie=Te[ae]);var ze=Ie-Pe;Se==="end"?ye+=ze:Se==="middle"&&(ye+=ze/2)}ye=ve.d2c(ye)}return _e&&_e.t&&_e.t.posLetter===ve._id&&(de.boxmode!=="group"&&de.violinmode!=="group"||(ye+=_e.t.dPos)),ye}function me(ae){return ae.offsetTop+ae.clientTop}function he(ae){return ae.offsetLeft+ae.clientLeft}function se(ae,ce){var de=ae._fullLayout,ve=ce.getBoundingClientRect(),ye=ve.left,_e=ve.top,Se=ye+ve.width,Te=_e+ve.height,Pe=O.apply3DTransform(de._invTransform)(ye,_e),Ie=O.apply3DTransform(de._invTransform)(Se,Te),ze=Pe[0],De=Pe[1],He=Ie[0],Ve=Ie[1];return{x:ze,y:De,width:He-ze,height:Ve-De,top:Math.min(De,Ve),left:Math.min(ze,He),right:Math.max(ze,He),bottom:Math.max(De,Ve)}}},16132:function(d,l,n){var c=n(3400),b=n(76308),i=n(10624).isUnifiedHover;d.exports=function(O,w,y,p){p=p||{};var a=w.legend;function u(h){p.font[h]||(p.font[h]=a?w.legend.font[h]:w.font[h])}w&&i(w.hovermode)&&(p.font||(p.font={}),u("size"),u("family"),u("color"),a?(p.bgcolor||(p.bgcolor=b.combine(w.legend.bgcolor,w.paper_bgcolor)),p.bordercolor||(p.bordercolor=w.legend.bordercolor)):p.bgcolor||(p.bgcolor=w.paper_bgcolor)),y("hoverlabel.bgcolor",p.bgcolor),y("hoverlabel.bordercolor",p.bordercolor),y("hoverlabel.namelength",p.namelength),c.coerceFont(y,"hoverlabel.font",p.font),y("hoverlabel.align",p.align)}},41008:function(d,l,n){var c=n(3400),b=n(65460);d.exports=function(i,O){function w(y,p){return O[y]!==void 0?O[y]:c.coerce(i,O,b,y,p)}return w("clickmode"),w("hovermode")}},93024:function(d,l,n){var c=n(33428),b=n(3400),i=n(86476),O=n(10624),w=n(65460),y=n(83292);d.exports={moduleType:"component",name:"fx",constants:n(92456),schema:{layout:w},attributes:n(55756),layoutAttributes:w,supplyLayoutGlobalDefaults:n(81976),supplyDefaults:n(95448),supplyLayoutDefaults:n(88336),calc:n(55056),getDistanceFunction:O.getDistanceFunction,getClosest:O.getClosest,inbox:O.inbox,quadrature:O.quadrature,appendArrayPointValue:O.appendArrayPointValue,castHoverOption:function(p,a,u){return b.castOption(p,a,"hoverlabel."+u)},castHoverinfo:function(p,a,u){return b.castOption(p,u,"hoverinfo",function(h){return b.coerceHoverinfo({hoverinfo:h},{_module:p._module},a)})},hover:y.hover,unhover:i.unhover,loneHover:y.loneHover,loneUnhover:function(p){var a=b.isD3Selection(p)?p:c.select(p);a.selectAll("g.hovertext").remove(),a.selectAll(".spikeline").remove()},click:n(62376)}},65460:function(d,l,n){var c=n(92456),b=n(25376),i=b({editType:"none"});i.family.dflt=c.HOVERFONT,i.size.dflt=c.HOVERFONTSIZE,d.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:i,grouptitlefont:b({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},88336:function(d,l,n){var c=n(3400),b=n(65460),i=n(41008),O=n(16132);d.exports=function(w,y){function p(m,v){return c.coerce(w,y,b,m,v)}i(w,y)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var a=y._has("mapbox"),u=y._has("geo"),h=y._basePlotModules.length;y.dragmode==="zoom"&&((a||u)&&h===1||a&&u&&h===2)&&(y.dragmode="pan"),O(w,y,p),c.coerceFont(p,"hoverlabel.grouptitlefont",y.hoverlabel.font)}},81976:function(d,l,n){var c=n(3400),b=n(16132),i=n(65460);d.exports=function(O,w){b(O,w,function(y,p){return c.coerce(O,w,i,y,p)})}},12704:function(d,l,n){var c=n(3400),b=n(53756).counter,i=n(86968).u,O=n(33816).idRegex,w=n(31780),y={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[b("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[O.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[O.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(h,m,v){var _=m[v+"axes"],S=Object.keys((h._splomAxes||{})[v]||{});return Array.isArray(_)?_:S.length?S:void 0}function a(h,m,v,_,S,A){var x=m(h+"gap",v),R=m("domain."+h);m(h+"side",_);for(var M=new Array(S),T=R[0],E=(R[1]-T)/(S-x),C=E*(1-x),L=0;L1){R||M||T||j("pattern")==="independent"&&(R=!0),C._hasSubplotGrid=R;var k,I,z=j("roworder")==="top to bottom",$=R?.2:.1,Q=R?.3:.1;E&&m._splomGridDflt&&(k=m._splomGridDflt.xside,I=m._splomGridDflt.yside),C._domains={x:a("x",j,$,k,D),y:a("y",j,Q,I,L,z)}}else delete m.grid}function j(U,X){return c.coerce(v,C,y,U,X)}},contentDefaults:function(h,m){var v=m.grid;if(v&&v._domains){var _,S,A,x,R,M,T,E=h.grid||{},C=m._subplots,L=v._hasSubplotGrid,D=v.rows,k=v.columns,I=v.pattern==="independent",z=v._axisMap={};if(L){var $=E.subplots||[];M=v.subplots=new Array(D);var Q=1;for(_=0;_(u==="legend"?1:0));if(Q===!1&&(m[u]=void 0),(Q!==!1||_.uirevision)&&(A("uirevision",m.uirevision),Q!==!1)){A("borderwidth");var j,U,X,te=A("orientation")==="h",W=A("yref")==="paper",K=A("xref")==="paper",oe="left";if(te?(j=0,c.getComponentMethod("rangeslider","isVisible")(h.xaxis)?W?(U=1.1,X="bottom"):(U=1,X="top"):W?(U=-.1,X="top"):(U=0,X="bottom")):(U=1,X="auto",K?j=1.02:(j=1,oe="right")),b.coerce(_,S,{x:{valType:"number",editType:"legend",min:K?-2:0,max:K?3:1,dflt:j}},"x"),b.coerce(_,S,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:U}},"y"),A("traceorder",D),p.isGrouped(m[u])&&A("tracegroupgap"),A("entrywidth"),A("entrywidthmode"),A("itemsizing"),A("itemwidth"),A("itemclick"),A("itemdoubleclick"),A("groupclick"),A("xanchor",oe),A("yanchor",X),A("valign"),b.noneOrAll(_,S,["x","y"]),A("title.text")){A("title.side",te?"left":"top");var q=b.extendFlat({},x,{size:b.bigFont(x.size)});b.coerceFont(A,"title.font",q)}}}}d.exports=function(u,h,m){var v,_=m.slice(),S=h.shapes;if(S)for(v=0;v1)}var ve=q.hiddenlabels||[];if(!(ee||q.showlegend&&me.length))return K.selectAll("."+Y).remove(),q._topdefs.select("#"+W).remove(),i.autoMargin(X,Y);var ye=b.ensureSingle(K,"g",Y,function(Ve){ee||Ve.attr("pointer-events","all")}),_e=b.ensureSingleById(q._topdefs,"clipPath",W,function(Ve){Ve.append("rect")}),Se=b.ensureSingle(ye,"rect","bg",function(Ve){Ve.attr("shape-rendering","crispEdges")});Se.call(a.stroke,oe.bordercolor).call(a.fill,oe.bgcolor).style("stroke-width",oe.borderwidth+"px");var Te,Pe=b.ensureSingle(ye,"g","scrollbox"),Ie=oe.title;oe._titleWidth=0,oe._titleHeight=0,Ie.text?((Te=b.ensureSingle(Pe,"text",Y+"titletext")).attr("text-anchor","start").call(p.font,Ie.font).text(Ie.text),$(Te,Pe,X,oe,T)):Pe.selectAll("."+Y+"titletext").remove();var ze=b.ensureSingle(ye,"rect","scrollbar",function(Ve){Ve.attr(m.scrollBarEnterAttrs).call(a.fill,m.scrollBarColor)}),De=Pe.selectAll("g.groups").data(me);De.enter().append("g").attr("class","groups"),De.exit().remove();var He=De.selectAll("g.traces").data(b.identity);He.enter().append("g").attr("class","traces"),He.exit().remove(),He.style("opacity",function(Ve){var $e=Ve[0].trace;return O.traceIs($e,"pie-like")?ve.indexOf(Ve[0].label)!==-1?.5:1:$e.visible==="legendonly"?.5:1}).each(function(){c.select(this).call(k,X,oe)}).call(R,X,oe).each(function(){ee||c.select(this).call(z,X,Y)}),b.syncOrAsync([i.previousPromises,function(){return function(Ve,$e,Oe,ke){var Le=Ve._fullLayout,We=U(ke);ke||(ke=Le[We]);var Ue=Le._size,Ze=M.isVertical(ke),Xe=M.isGrouped(ke),tt=ke.entrywidthmode==="fraction",Ee=ke.borderwidth,Ne=2*Ee,je=m.itemGap,nt=ke.itemwidth+2*je,ot=2*(Ee+je),Ge=j(ke),ht=ke.y<0||ke.y===0&&Ge==="top",pt=ke.y>1||ke.y===1&&Ge==="bottom",wt=ke.tracegroupgap,Dt={};ke._maxHeight=Math.max(ht||pt?Le.height/2:Ue.h,30);var It=0;ke._width=0,ke._height=0;var qt=function(Xt){var Yt=0,Qt=0,Pt=Xt.title.side;return Pt&&(Pt.indexOf("left")!==-1&&(Yt=Xt._titleWidth),Pt.indexOf("top")!==-1&&(Qt=Xt._titleHeight)),[Yt,Qt]}(ke);if(Ze)Oe.each(function(Xt){var Yt=Xt[0].height;p.setTranslate(this,Ee+qt[0],Ee+qt[1]+ke._height+Yt/2+je),ke._height+=Yt,ke._width=Math.max(ke._width,Xt[0].width)}),It=nt+ke._width,ke._width+=je+nt+Ne,ke._height+=ot,Xe&&($e.each(function(Xt,Yt){p.setTranslate(this,0,Yt*ke.tracegroupgap)}),ke._height+=(ke._lgroupsLength-1)*ke.tracegroupgap);else{var en=Q(ke),Gt=ke.x<0||ke.x===0&&en==="right",Ct=ke.x>1||ke.x===1&&en==="left",_t=pt||ht,nn=Le.width/2;ke._maxWidth=Math.max(Gt?_t&&en==="left"?Ue.l+Ue.w:nn:Ct?_t&&en==="right"?Ue.r+Ue.w:nn:Ue.w,2*nt);var gn=0,bn=0;Oe.each(function(Xt){var Yt=L(Xt,ke,nt);gn=Math.max(gn,Yt),bn+=Yt}),It=null;var mn=0;if(Xe){var vt=0,bt=0,lt=0;$e.each(function(){var Xt=0,Yt=0;c.select(this).selectAll("g.traces").each(function(Pt){var tn=L(Pt,ke,nt),Kt=Pt[0].height;p.setTranslate(this,qt[0],qt[1]+Ee+je+Kt/2+Yt),Yt+=Kt,Xt=Math.max(Xt,tn),Dt[Pt[0].trace.legendgroup]=Xt});var Qt=Xt+je;bt>0&&Qt+Ee+bt>ke._maxWidth?(mn=Math.max(mn,bt),bt=0,lt+=vt+wt,vt=Yt):vt=Math.max(vt,Yt),p.setTranslate(this,bt,lt),bt+=Qt}),ke._width=Math.max(mn,bt)+Ee,ke._height=lt+vt+ot}else{var yt=Oe.size(),zt=bn+Ne+(yt-1)*je=ke._maxWidth&&(mn=Math.max(mn,Lt),it=0,at+=Rt,ke._height+=Rt,Rt=0),p.setTranslate(this,qt[0]+Ee+it,qt[1]+Ee+at+Yt/2+je),Lt=it+Qt+je,it+=Pt,Rt=Math.max(Rt,Yt)}),zt?(ke._width=it+Ne,ke._height=Rt+ot):(ke._width=Math.max(mn,Lt)+Ne,ke._height+=Rt+ot)}}ke._width=Math.ceil(Math.max(ke._width+qt[0],ke._titleWidth+2*(Ee+m.titlePad))),ke._height=Math.ceil(Math.max(ke._height+qt[1],ke._titleHeight+2*(Ee+m.itemGap))),ke._effHeight=Math.min(ke._height,ke._maxHeight);var xt=Ve._context.edits,Ht=xt.legendText||xt.legendPosition;Oe.each(function(Xt){var Yt=c.select(this).select("."+We+"toggle"),Qt=Xt[0].height,Pt=Xt[0].trace.legendgroup,tn=L(Xt,ke,nt);Xe&&Pt!==""&&(tn=Dt[Pt]);var Kt=Ht?nt:It||tn;Ze||tt||(Kt+=je/2),p.setRect(Yt,0,-Qt/2,Kt,Qt)})}(X,De,He,oe)},function(){var Ve,$e,Oe,ke,Le=q._size,We=oe.borderwidth,Ue=oe.xref==="paper",Ze=oe.yref==="paper";if(Ie.text&&function(_t,nn,gn){if(nn.title.side==="top center"||nn.title.side==="top right"){var bn=nn.title.font.size*_,mn=0,vt=_t.node(),bt=p.bBox(vt).width;nn.title.side==="top center"?mn=.5*(nn._width-2*gn-2*m.titlePad-bt):nn.title.side==="top right"&&(mn=nn._width-2*gn-2*m.titlePad-bt),u.positionText(_t,gn+m.titlePad+mn,gn+bn)}}(Te,oe,We),!ee){var Xe,tt;Xe=Ue?Le.l+Le.w*oe.x-S[Q(oe)]*oe._width:q.width*oe.x-S[Q(oe)]*oe._width,tt=Ze?Le.t+Le.h*(1-oe.y)-S[j(oe)]*oe._effHeight:q.height*(1-oe.y)-S[j(oe)]*oe._effHeight;var Ee=function(_t,nn,gn,bn){var mn=_t._fullLayout,vt=mn[nn],bt=Q(vt),lt=j(vt),yt=vt.xref==="paper",zt=vt.yref==="paper";_t._fullLayout._reservedMargin[nn]={};var Rt=vt.y<.5?"b":"t",it=vt.x<.5?"l":"r",at={r:mn.width-gn,l:gn+vt._width,b:mn.height-bn,t:bn+vt._effHeight};if(yt&&zt)return i.autoMargin(_t,nn,{x:vt.x,y:vt.y,l:vt._width*S[bt],r:vt._width*A[bt],b:vt._effHeight*A[lt],t:vt._effHeight*S[lt]});yt?_t._fullLayout._reservedMargin[nn][Rt]=at[Rt]:zt||vt.orientation==="v"?_t._fullLayout._reservedMargin[nn][it]=at[it]:_t._fullLayout._reservedMargin[nn][Rt]=at[Rt]}(X,Y,Xe,tt);if(Ee)return;if(q.margin.autoexpand){var Ne=Xe,je=tt;Xe=Ue?b.constrain(Xe,0,q.width-oe._width):Ne,tt=Ze?b.constrain(tt,0,q.height-oe._effHeight):je,Xe!==Ne&&b.log("Constrain "+Y+".x to make legend fit inside graph"),tt!==je&&b.log("Constrain "+Y+".y to make legend fit inside graph")}p.setTranslate(ye,Xe,tt)}if(ze.on(".drag",null),ye.on("wheel",null),ee||oe._height<=oe._maxHeight||X._context.staticPlot){var nt=oe._effHeight;ee&&(nt=oe._height),Se.attr({width:oe._width-We,height:nt-We,x:We/2,y:We/2}),p.setTranslate(Pe,0,0),_e.select("rect").attr({width:oe._width-2*We,height:nt-2*We,x:We,y:We}),p.setClipUrl(Pe,W,X),p.setRect(ze,0,0,0,0),delete oe._scrollY}else{var ot,Ge,ht,pt=Math.max(m.scrollBarMinHeight,oe._effHeight*oe._effHeight/oe._height),wt=oe._effHeight-pt-2*m.scrollBarMargin,Dt=oe._height-oe._effHeight,It=wt/Dt,qt=Math.min(oe._scrollY||0,Dt);Se.attr({width:oe._width-2*We+m.scrollBarWidth+m.scrollBarMargin,height:oe._effHeight-We,x:We/2,y:We/2}),_e.select("rect").attr({width:oe._width-2*We+m.scrollBarWidth+m.scrollBarMargin,height:oe._effHeight-2*We,x:We,y:We+qt}),p.setClipUrl(Pe,W,X),Ct(qt,pt,It),ye.on("wheel",function(){Ct(qt=b.constrain(oe._scrollY+c.event.deltaY/wt*Dt,0,Dt),pt,It),qt!==0&&qt!==Dt&&c.event.preventDefault()});var en=c.behavior.drag().on("dragstart",function(){var _t=c.event.sourceEvent;ot=_t.type==="touchstart"?_t.changedTouches[0].clientY:_t.clientY,ht=qt}).on("drag",function(){var _t=c.event.sourceEvent;_t.buttons===2||_t.ctrlKey||(Ge=_t.type==="touchmove"?_t.changedTouches[0].clientY:_t.clientY,qt=function(nn,gn,bn){var mn=(bn-gn)/It+nn;return b.constrain(mn,0,Dt)}(ht,ot,Ge),Ct(qt,pt,It))});ze.call(en);var Gt=c.behavior.drag().on("dragstart",function(){var _t=c.event.sourceEvent;_t.type==="touchstart"&&(ot=_t.changedTouches[0].clientY,ht=qt)}).on("drag",function(){var _t=c.event.sourceEvent;_t.type==="touchmove"&&(Ge=_t.changedTouches[0].clientY,qt=function(nn,gn,bn){var mn=(gn-bn)/It+nn;return b.constrain(mn,0,Dt)}(ht,ot,Ge),Ct(qt,pt,It))});Pe.call(Gt)}function Ct(_t,nn,gn){oe._scrollY=X._fullLayout[Y]._scrollY=_t,p.setTranslate(Pe,0,-_t),p.setRect(ze,oe._width,m.scrollBarMargin+_t*gn,m.scrollBarWidth,nn),_e.select("rect").attr("y",We+_t)}X._context.edits.legendPosition&&(ye.classed("cursor-move",!0),y.init({element:ye.node(),gd:X,prepFn:function(){var _t=p.getTranslate(ye);Oe=_t.x,ke=_t.y},moveFn:function(_t,nn){var gn=Oe+_t,bn=ke+nn;p.setTranslate(ye,gn,bn),Ve=y.align(gn,oe._width,Le.l,Le.l+Le.w,oe.xanchor),$e=y.align(bn+oe._height,-oe._height,Le.t+Le.h,Le.t,oe.yanchor)},doneFn:function(){if(Ve!==void 0&&$e!==void 0){var _t={};_t[Y+".x"]=Ve,_t[Y+".y"]=$e,O.call("_guiRelayout",X,_t)}},clickFn:function(_t,nn){var gn=K.selectAll("g.traces").filter(function(){var bn=this.getBoundingClientRect();return nn.clientX>=bn.left&&nn.clientX<=bn.right&&nn.clientY>=bn.top&&nn.clientY<=bn.bottom});gn.size()>0&&D(X,ye,gn,_t,nn)}}))}],X)}}function L(X,te,W){var K=X[0],oe=K.width,q=te.entrywidthmode,Y=K.trace.legendwidth||te.entrywidth;return q==="fraction"?te._maxWidth*Y:W+(Y||oe)}function D(X,te,W,K,oe){var q=W.data()[0][0].trace,Y={event:oe,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:X.data,layout:X.layout,frames:X._transitionData._frames,config:X._context,fullData:X._fullData,fullLayout:X._fullLayout};q._group&&(Y.group=q._group),O.traceIs(q,"pie-like")&&(Y.label=W.datum()[0].label);var ee=w.triggerHandler(X,"plotly_legendclick",Y);if(K===1){if(ee===!1)return;te._clickTimeout=setTimeout(function(){X._fullLayout&&h(W,X,K)},X._context.doubleClickDelay)}else K===2&&(te._clickTimeout&&clearTimeout(te._clickTimeout),X._legendMouseDownTime=0,w.triggerHandler(X,"plotly_legenddoubleclick",Y)!==!1&&ee!==!1&&h(W,X,K))}function k(X,te,W){var K,oe,q=U(W),Y=X.data()[0][0],ee=Y.trace,me=O.traceIs(ee,"pie-like"),he=!W._inHover&&te._context.edits.legendText&&!me,se=W._maxNameLength;Y.groupTitle?(K=Y.groupTitle.text,oe=Y.groupTitle.font):(oe=W.font,W.entries?K=Y.text:(K=me?Y.label:ee.name,ee._meta&&(K=b.templateString(K,ee._meta))));var ae=b.ensureSingle(X,"text",q+"text");ae.attr("text-anchor","start").call(p.font,oe).text(he?I(K,se):K);var ce=W.itemwidth+2*m.itemGap;u.positionText(ae,ce,0),he?ae.call(u.makeEditable,{gd:te,text:K}).call($,X,te,W).on("edit",function(de){this.text(I(de,se)).call($,X,te,W);var ve=Y.trace._fullInput||{},ye={};if(O.hasTransform(ve,"groupby")){var _e=O.getTransformIndices(ve,"groupby"),Se=_e[_e.length-1],Te=b.keyedContainer(ve,"transforms["+Se+"].styles","target","value.name");Te.set(Y.trace._group,de),ye=Te.constructUpdate()}else ye.name=de;return ve._isShape?O.call("_guiRelayout",te,"shapes["+ee.index+"].name",ye.name):O.call("_guiRestyle",te,ye,ee.index)}):$(ae,X,te,W)}function I(X,te){var W=Math.max(4,te);if(X&&X.trim().length>=W/2)return X;for(var K=W-(X=X||"").length;K>0;K--)X+=" ";return X}function z(X,te,W){var K,oe=te._context.doubleClickDelay,q=1,Y=b.ensureSingle(X,"rect",W+"toggle",function(ee){te._context.staticPlot||ee.style("cursor","pointer").attr("pointer-events","all"),ee.call(a.fill,"rgba(0,0,0,0)")});te._context.staticPlot||(Y.on("mousedown",function(){(K=new Date().getTime())-te._legendMouseDownTimeoe&&(q=Math.max(q-1,1)),D(te,ee,X,q,c.event)}}))}function $(X,te,W,K,oe){K._inHover&&X.attr("data-notex",!0),u.convertToTspans(X,W,function(){(function(q,Y,ee,me){var he=q.data()[0][0];if(ee._inHover||!he||he.trace.showlegend){var se=q.select("g[class*=math-group]"),ae=se.node(),ce=U(ee);ee||(ee=Y._fullLayout[ce]);var de,ve,ye=ee.borderwidth,_e=(me===T?ee.title.font:he.groupTitle?he.groupTitle.font:ee.font).size*_;if(ae){var Se=p.bBox(ae);de=Se.height,ve=Se.width,me===T?p.setTranslate(se,ye,ye+.75*de):p.setTranslate(se,0,.25*de)}else{var Te="."+ce+(me===T?"title":"")+"text",Pe=q.select(Te),Ie=u.lineCount(Pe),ze=Pe.node();if(de=_e*Ie,ve=ze?p.bBox(ze).width:0,me===T)ee.title.side==="left"&&(ve+=2*m.itemGap),u.positionText(Pe,ye+m.titlePad,ye+_e);else{var De=2*m.itemGap+ee.itemwidth;he.groupTitle&&(De=m.itemGap,ve-=ee.itemwidth),u.positionText(Pe,De,-_e*((Ie-1)/2-.3))}}me===T?(ee._titleWidth=ve,ee._titleHeight=de):(he.lineHeight=_e,he.height=Math.max(de,16)+3,he.width=ve)}else q.remove()})(te,W,K,oe)})}function Q(X){return b.isRightAnchor(X)?"right":b.isCenterAnchor(X)?"center":"left"}function j(X){return b.isBottomAnchor(X)?"bottom":b.isMiddleAnchor(X)?"middle":"top"}function U(X){return X._id||"legend"}d.exports=function(X,te){if(te)C(X,te);else{var W=X._fullLayout,K=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var Y=c.select(this),ee=Y.attr("class").split(" ")[0];ee.match(E)&&K.indexOf(ee)===-1&&Y.remove()});for(var oe=0;oeQ&&($=Q)}I[y][0]._groupMinRank=$,I[y][0]._preGroupSort=y}var j=function(K,oe){return K.trace.legendrank-oe.trace.legendrank||K._preSort-oe._preSort};for(I.forEach(function(K,oe){K[0]._preGroupSort=oe}),I.sort(function(K,oe){return K[0]._groupMinRank-oe[0]._groupMinRank||K[0]._preGroupSort-oe[0]._preGroupSort}),y=0;yR?R:A}d.exports=function(A,x,R){var M=x._fullLayout;R||(R=M.legend);var T=R.itemsizing==="constant",E=R.itemwidth,C=(E+2*m.itemGap)/2,L=O(C,0),D=function(z,$,Q,j){var U;if(z+1)U=z;else{if(!($&&$.width>0))return 0;U=$.width}return T?j:Math.min(U,Q)};function k(z,$,Q){var j=z[0].trace,U=j.marker||{},X=U.line||{},te=U.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",W=Q?j.visible&&j.type===Q:b.traceIs(j,"bar"),K=c.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(W?[z]:[]);K.enter().append("path").classed("legend"+Q,!0).attr("d",te).attr("transform",L),K.exit().remove(),K.each(function(oe){var q=c.select(this),Y=oe[0],ee=D(Y.mlw,U.line,5,2);q.style("stroke-width",ee+"px");var me=Y.mcc;if(!R._inHover&&"mc"in Y){var he=p(U),se=he.mid;se===void 0&&(se=(he.max+he.min)/2),me=w.tryColorscale(U,"")(se)}var ae=me||Y.mc||U.color,ce=U.pattern,de=ce&&w.getPatternAttr(ce.shape,0,"");if(de){var ve=w.getPatternAttr(ce.bgcolor,0,null),ye=w.getPatternAttr(ce.fgcolor,0,null),_e=ce.fgopacity,Se=S(ce.size,8,10),Te=S(ce.solidity,.5,1),Pe="legend-"+j.uid;q.call(w.pattern,"legend",x,Pe,de,Se,Te,me,ce.fillmode,ve,ye,_e)}else q.call(y.fill,ae);ee&&y.stroke(q,Y.mlc||X.color)})}function I(z,$,Q){var j=z[0],U=j.trace,X=Q?U.visible&&U.type===Q:b.traceIs(U,Q),te=c.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(X?[z]:[]);if(te.enter().append("path").classed("legend"+Q,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),te.exit().remove(),te.size()){var W=U.marker||{},K=D(h(W.line.width,j.pts),W.line,5,2),oe="pieLike",q=i.minExtend(U,{marker:{line:{width:K}}},oe),Y=i.minExtend(j,{trace:q},oe);u(te,Y,q,x)}}A.each(function(z){var $=c.select(this),Q=i.ensureSingle($,"g","layers");Q.style("opacity",z[0].trace.opacity);var j=R.valign,U=z[0].lineHeight,X=z[0].height;if(j!=="middle"&&U&&X){var te={top:1,bottom:-1}[j]*(.5*(U-X+3));Q.attr("transform",O(0,te))}else Q.attr("transform",null);Q.selectAll("g.legendfill").data([z]).enter().append("g").classed("legendfill",!0),Q.selectAll("g.legendlines").data([z]).enter().append("g").classed("legendlines",!0);var W=Q.selectAll("g.legendsymbols").data([z]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([z]).enter().append("g").classed("legendpoints",!0)}).each(function(z){var $,Q=z[0].trace,j=[];if(Q.visible)switch(Q.type){case"histogram2d":case"heatmap":j=[["M-15,-2V4H15V-2Z"]],$=!0;break;case"choropleth":case"choroplethmapbox":j=[["M-6,-6V6H6V-6Z"]],$=!0;break;case"densitymapbox":j=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],$="radial";break;case"cone":j=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],$=!1;break;case"streamtube":j=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],$=!1;break;case"surface":j=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],$=!0;break;case"mesh3d":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!1;break;case"volume":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!0;break;case"isosurface":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],$=!1}var U=c.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(j);U.enter().append("path").classed("legend3dandfriends",!0).attr("transform",L).style("stroke-miterlimit",1),U.exit().remove(),U.each(function(X,te){var W,K=c.select(this),oe=p(Q),q=oe.colorscale,Y=oe.reversescale;if(q){if(!$){var ee=q.length;W=te===0?q[Y?ee-1:0][1]:te===1?q[Y?0:ee-1][1]:q[Math.floor((ee-1)/2)][1]}}else{var me=Q.vertexcolor||Q.facecolor||Q.color;W=i.isArrayOrTypedArray(me)?me[te]||me[0]:me}K.attr("d",X[0]),W?K.call(y.fill,W):K.call(function(he){if(he.size()){var se="legendfill-"+Q.uid;w.gradient(he,x,se,v(Y,$==="radial"),q,"fill")}})})}).each(function(z){var $=z[0].trace,Q=$.type==="waterfall";if(z[0]._distinct&&Q){var j=z[0].trace[z[0].dir].marker;return z[0].mc=j.color,z[0].mlw=j.line.width,z[0].mlc=j.line.color,k(z,this,"waterfall")}var U=[];$.visible&&Q&&(U=z[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var X=c.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(U);X.enter().append("path").classed("legendwaterfall",!0).attr("transform",L).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(te){var W=c.select(this),K=$[te[0]].marker,oe=D(void 0,K.line,5,2);W.attr("d",te[1]).style("stroke-width",oe+"px").call(y.fill,K.color),oe&&W.call(y.stroke,K.line.color)})}).each(function(z){k(z,this,"funnel")}).each(function(z){k(z,this)}).each(function(z){var $=z[0].trace,Q=c.select(this).select("g.legendpoints").selectAll("path.legendbox").data($.visible&&b.traceIs($,"box-violin")?[z]:[]);Q.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),Q.exit().remove(),Q.each(function(){var j=c.select(this);if($.boxpoints!=="all"&&$.points!=="all"||y.opacity($.fillcolor)!==0||y.opacity(($.line||{}).color)!==0){var U=D(void 0,$.line,5,2);j.style("stroke-width",U+"px").call(y.fill,$.fillcolor),U&&y.stroke(j,$.line.color)}else{var X=i.minExtend($,{marker:{size:T?12:i.constrain($.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});Q.call(w.pointStyle,X,x)}})}).each(function(z){I(z,this,"funnelarea")}).each(function(z){I(z,this,"pie")}).each(function(z){var $,Q,j=_(z),U=j.showFill,X=j.showLine,te=j.showGradientLine,W=j.showGradientFill,K=j.anyFill,oe=j.anyLine,q=z[0],Y=q.trace,ee=p(Y),me=ee.colorscale,he=ee.reversescale,se=a.hasMarkers(Y)||!K?"M5,0":oe?"M5,-2":"M5,-3",ae=c.select(this),ce=ae.select(".legendfill").selectAll("path").data(U||W?[z]:[]);if(ce.enter().append("path").classed("js-fill",!0),ce.exit().remove(),ce.attr("d",se+"h"+E+"v6h-"+E+"z").call(function(ye){if(ye.size())if(U)w.fillGroupStyle(ye,x);else{var _e="legendfill-"+Y.uid;w.gradient(ye,x,_e,v(he),me,"fill")}}),X||te){var de=D(void 0,Y.line,10,5);Q=i.minExtend(Y,{line:{width:de}}),$=[i.minExtend(q,{trace:Q})]}var ve=ae.select(".legendlines").selectAll("path").data(X||te?[$]:[]);ve.enter().append("path").classed("js-line",!0),ve.exit().remove(),ve.attr("d",se+(te?"l"+E+",0.0001":"h"+E)).call(X?w.lineGroupStyle:function(ye){if(ye.size()){var _e="legendline-"+Y.uid;w.lineGroupStyle(ye),w.gradient(ye,x,_e,v(he),me,"stroke")}})}).each(function(z){var $,Q,j=_(z),U=j.anyFill,X=j.anyLine,te=j.showLine,W=j.showMarker,K=z[0],oe=K.trace,q=!W&&!X&&!U&&a.hasText(oe);function Y(ve,ye,_e,Se){var Te=i.nestedProperty(oe,ve).get(),Pe=i.isArrayOrTypedArray(Te)&&ye?ye(Te):Te;if(T&&Pe&&Se!==void 0&&(Pe=Se),_e){if(Pe<_e[0])return _e[0];if(Pe>_e[1])return _e[1]}return Pe}function ee(ve){return K._distinct&&K.index&&ve[K.index]?ve[K.index]:ve[0]}if(W||q||te){var me={},he={};if(W){me.mc=Y("marker.color",ee),me.mx=Y("marker.symbol",ee),me.mo=Y("marker.opacity",i.mean,[.2,1]),me.mlc=Y("marker.line.color",ee),me.mlw=Y("marker.line.width",i.mean,[0,5],2),he.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var se=Y("marker.size",i.mean,[2,16],12);me.ms=se,he.marker.size=se}te&&(he.line={width:Y("line.width",ee,[0,10],5)}),q&&(me.tx="Aa",me.tp=Y("textposition",ee),me.ts=10,me.tc=Y("textfont.color",ee),me.tf=Y("textfont.family",ee)),$=[i.minExtend(K,me)],(Q=i.minExtend(oe,he)).selectedpoints=null,Q.texttemplate=null}var ae=c.select(this).select("g.legendpoints"),ce=ae.selectAll("path.scatterpts").data(W?$:[]);ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",L),ce.exit().remove(),ce.call(w.pointStyle,Q,x),W&&($[0].mrc=3);var de=ae.selectAll("g.pointtext").data(q?$:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",L),de.exit().remove(),de.selectAll("text").call(w.textPointStyle,Q,x)}).each(function(z){var $=z[0].trace,Q=c.select(this).select("g.legendpoints").selectAll("path.legendcandle").data($.visible&&$.type==="candlestick"?[z,z]:[]);Q.enter().append("path").classed("legendcandle",!0).attr("d",function(j,U){return U?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=c.select(this),te=$[U?"increasing":"decreasing"],W=D(void 0,te.line,5,2);X.style("stroke-width",W+"px").call(y.fill,te.fillcolor),W&&y.stroke(X,te.line.color)})}).each(function(z){var $=z[0].trace,Q=c.select(this).select("g.legendpoints").selectAll("path.legendohlc").data($.visible&&$.type==="ohlc"?[z,z]:[]);Q.enter().append("path").classed("legendohlc",!0).attr("d",function(j,U){return U?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=c.select(this),te=$[U?"increasing":"decreasing"],W=D(void 0,te.line,5,2);X.style("fill","none").call(w.dashLine,te.line.dash,W),W&&y.stroke(X,te.line.color)})})}},66540:function(d,l,n){n(76052),d.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(d,l,n){var c=n(24040),b=n(7316),i=n(79811),O=n(9224),w=n(4016).eraseActiveShape,y=n(3400),p=y._,a=d.exports={};function u(M,T){var E,C,L=T.currentTarget,D=L.getAttribute("data-attr"),k=L.getAttribute("data-val")||!0,I=M._fullLayout,z={},$=i.list(M,null,!0),Q=I._cartesianSpikesEnabled;if(D==="zoom"){var j,U=k==="in"?.5:2,X=(1+U)/2,te=(1-U)/2;for(C=0;C<$.length;C++)if(!(E=$[C]).fixedrange)if(j=E._name,k==="auto")z[j+".autorange"]=!0;else if(k==="reset")E._rangeInitial0===void 0&&E._rangeInitial1===void 0?z[j+".autorange"]=!0:E._rangeInitial0===void 0?(z[j+".autorange"]=E._autorangeInitial,z[j+".range"]=[null,E._rangeInitial1]):E._rangeInitial1===void 0?(z[j+".range"]=[E._rangeInitial0,null],z[j+".autorange"]=E._autorangeInitial):z[j+".range"]=[E._rangeInitial0,E._rangeInitial1],E._showSpikeInitial!==void 0&&(z[j+".showspikes"]=E._showSpikeInitial,Q!=="on"||E._showSpikeInitial||(Q="off"));else{var W=[E.r2l(E.range[0]),E.r2l(E.range[1])],K=[X*W[0]+te*W[1],X*W[1]+te*W[0]];z[j+".range[0]"]=E.l2r(K[0]),z[j+".range[1]"]=E.l2r(K[1])}}else D!=="hovermode"||k!=="x"&&k!=="y"||(k=I._isHoriz?"y":"x",L.setAttribute("data-val",k)),z[D]=k;I._cartesianSpikesEnabled=Q,c.call("_guiRelayout",M,z)}function h(M,T){for(var E=T.currentTarget,C=E.getAttribute("data-attr"),L=E.getAttribute("data-val")||!0,D=M._fullLayout._subplots.gl3d||[],k={},I=C.split("."),z=0;z1?(se=["toggleHover"],ae=["resetViews"]):z?(he=["zoomInGeo","zoomOutGeo"],se=["hoverClosestGeo"],ae=["resetGeo"]):I?(se=["hoverClosest3d"],ae=["resetCameraDefault3d","resetCameraLastSave3d"]):X?(he=["zoomInMapbox","zoomOutMapbox"],se=["toggleHover"],ae=["resetViewMapbox"]):j?se=["hoverClosestGl2d"]:$?se=["hoverClosestPie"]:K?(se=["hoverClosestCartesian","hoverCompareCartesian"],ae=["resetViewSankey"]):se=["toggleHover"],k&&(se=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(Te){for(var Pe=0;Pe0)){var x=function(M,T,E){for(var C=E.filter(function(I){return T[I].anchor===M._id}),L=0,D=0;D0?C.touches[0].clientX:0}function A(C,L,D,k){var I=O.ensureSingle(C,"rect",_.bgClassName,function(j){j.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),z=k.borderwidth%2==0?k.borderwidth:k.borderwidth-1,$=-k._offsetShift,Q=y.crispRound(L,k.borderwidth);I.attr({width:k._width+z,height:k._height+z,transform:w($,$),"stroke-width":Q}).call(p.stroke,k.bordercolor).call(p.fill,k.bgcolor)}function x(C,L,D,k){var I=L._fullLayout;O.ensureSingleById(I._topdefs,"clipPath",k._clipId,function(z){z.append("rect").attr({x:0,y:0})}).select("rect").attr({width:k._width,height:k._height})}function R(C,L,D,k){var I,z=L.calcdata,$=C.selectAll("g."+_.rangePlotClassName).data(D._subplotsWith,O.identity);$.enter().append("g").attr("class",function(Q){return _.rangePlotClassName+" "+Q}).call(y.setClipUrl,k._clipId,L),$.order(),$.exit().remove(),$.each(function(Q,j){var U=c.select(this),X=j===0,te=h.getFromId(L,Q,"y"),W=te._name,K=k[W],oe={data:[],layout:{xaxis:{type:D.type,domain:[0,1],range:k.range.slice(),calendar:D.calendar},width:k._width,height:k._height,margin:{t:0,b:0,l:0,r:0}},_context:L._context};D.rangebreaks&&(oe.layout.xaxis.rangebreaks=D.rangebreaks),oe.layout[W]={type:te.type,domain:[0,1],range:K.rangemode!=="match"?K.range.slice():te.range.slice(),calendar:te.calendar},te.rangebreaks&&(oe.layout[W].rangebreaks=te.rangebreaks),i.supplyDefaults(oe);var q=oe._fullLayout.xaxis,Y=oe._fullLayout[W];q.clearCalc(),q.setScale(),Y.clearCalc(),Y.setScale();var ee={id:Q,plotgroup:U,xaxis:q,yaxis:Y,isRangePlot:!0};X?I=ee:(ee.mainplot="xy",ee.mainplotinfo=I),u.rangePlot(L,ee,function(me,he){for(var se=[],ae=0;ae=De.max)Ie=_e[ze+1];else if(Pe=De.pmax)Ie=_e[ze+1];else if(Peze._length||Xe+ht<0)return;nt=Ze+ht,ot=Xe+ht;break;case Ve:if(Ge="col-resize",Ze+ht>ze._length)return;nt=Ze+ht,ot=Xe;break;case $e:if(Ge="col-resize",Xe+ht<0)return;nt=Ze,ot=Xe+ht;break;default:Ge="ew-resize",nt=Ue,ot=Ue+ht}if(ot=0;j--){var U=T.append("path").attr(C).style("opacity",j?.1:L).call(O.stroke,k).call(O.fill,D).call(w.dashLine,j?"solid":z,j?4+I:I);if(v(U,S,R),$){var X=y(S.layout,"selections",R);U.style({cursor:"move"});var te={element:U.node(),plotinfo:M,gd:S,editHelpers:X,isActiveSelection:!0},W=c(E,S);b(W,U,te)}else U.style("pointer-events",j?"all":"none");Q[j]=U}var K=Q[0];Q[1].node().addEventListener("click",function(){return function(oe,q){if(h(oe)){var Y=+q.node().getAttribute("data-index");if(Y>=0){if(Y===oe._fullLayout._activeSelectionIndex)return void _(oe);oe._fullLayout._activeSelectionIndex=Y,oe._fullLayout._deactivateSelection=_,u(oe)}}}(S,K)})}(S._fullLayout._selectionLayer)}function v(S,A,x){var R=x.xref+x.yref;w.setClipUrl(S,"clip"+A._fullLayout._uid+R,A)}function _(S){h(S)&&S._fullLayout._activeSelectionIndex>=0&&(i(S),delete S._fullLayout._activeSelectionIndex,u(S))}d.exports={draw:u,drawOne:m,activateLastSelection:function(S){if(h(S)){var A=S._fullLayout.selections.length-1;S._fullLayout._activeSelectionIndex=A,S._fullLayout._deactivateSelection=_,u(S)}}}},34200:function(d,l,n){var c=n(98192).u,b=n(92880).extendFlat;d.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:b({},c,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(d){d.exports=function(l,n,c){c("newselection.mode"),c("newselection.line.width")&&(c("newselection.line.color"),c("newselection.line.dash")),c("activeselection.fillcolor"),c("activeselection.opacity")}},5968:function(d,l,n){var c=n(72760).selectMode,b=n(1936).clearOutline,i=n(9856),O=i.readPaths,w=i.writePaths,y=i.fixDatesForPaths;d.exports=function(p,a){if(p.length){var u=p[0][0];if(u){var h=u.getAttribute("d"),m=a.gd,v=m._fullLayout.newselection,_=a.plotinfo,S=_.xaxis,A=_.yaxis,x=a.isActiveSelection,R=a.dragmode,M=(m.layout||{}).selections||[];if(!c(R)&&x!==void 0){var T=m._fullLayout._activeSelectionIndex;if(T-1,bn=[];if(function(yt){return yt&&Array.isArray(yt)&&yt[0].hoverOnBox!==!0}(nn)){de(Ee,Ne,Ge);var mn=function(yt,zt){var Rt,it,at=yt[0],Lt=-1,xt=[];for(it=0;it0?function(yt,zt){var Rt,it,at,Lt=[];for(at=0;at0&&Lt.push(Rt);if(Lt.length===1&&Lt[0]===zt.searchInfo&&(it=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(at=0;at1||(it+=zt.selectedpoints.length)>1))return!1;return it===1}(pt)&&(en=Te(mn))){for(ht&&ht.remove(),_t=0;_t=0})(ot)&&ot._fullLayout._deactivateShape(ot),function(qt){return qt._fullLayout._activeSelectionIndex>=0}(ot)&&ot._fullLayout._deactivateSelection(ot);var Ge=ot._fullLayout._zoomlayer,ht=m(je),pt=_(je);if(ht||pt){var wt,Dt,It=Ge.selectAll(".select-outline-"+nt.id);It&&ot._fullLayout._outlining&&(ht&&(wt=C(It,Ee)),wt&&i.call("_guiRelayout",ot,{shapes:wt}),pt&&!me(Ee)&&(Dt=L(It,Ee)),Dt&&(ot._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",ot,{selections:Dt}).then(function(){Ne&&D(ot)})),ot._fullLayout._outlining=!1)}nt.selection={},nt.selection.selectionDefs=Ee.selectionDefs=[],nt.selection.mergedPolygons=Ee.mergedPolygons=[]}function ye(Ee){return Ee._id}function _e(Ee,Ne,je,nt){if(!Ee.calcdata)return[];var ot,Ge,ht,pt=[],wt=Ne.map(ye),Dt=je.map(ye);for(ht=0;ht0?nt[0]:je;return!!Ne.selectedpoints&&Ne.selectedpoints.indexOf(ot)>-1}function Pe(Ee,Ne,je){var nt,ot;for(nt=0;nt-1&&Ne;if(!Ge&&Ne){var ir=ke(Ee,!0);if(ir.length){var Wn=ir[0].xref,Kn=ir[0].yref;if(Wn&&Kn){var _r=Ue(ir);Ze([Q(Ee,Wn,"x"),Q(Ee,Kn,"y")])(ar,_r)}}Ee._fullLayout._noEmitSelectedAtStart?Ee._fullLayout._noEmitSelectedAtStart=!1:Fn&&Xe(Ee,ar),en._reselect=!1}if(!Ge&&en._deselect){var Ir=en._deselect;(function(zr,Fr,Rr){for(var $r=0;$r=0)Gt._fullLayout._deactivateShape(Gt);else if(!Dt){var _r=Ct.clickmode;$.done(Sr).then(function(){if($.clear(Sr),Wn===2){for(Nn.remove(),at=0;at-1&&he(Kn,Gt,nt.xaxes,nt.yaxes,nt.subplot,nt,Nn),_r==="event"&&Xe(Gt,void 0);y.click(Gt,Kn,bn.id)}).catch(k.error)}},nt.doneFn=function(){Un.remove(),$.done(Sr).then(function(){$.clear(Sr),!_t&&it&&nt.selectionDefs&&(it.subtract=vn,nt.selectionDefs.push(it),nt.mergedPolygons.length=0,[].push.apply(nt.mergedPolygons,Rt)),(_t||Dt)&&ve(nt,_t),nt.doneFnCompleted&&nt.doneFnCompleted(ar),It&&Xe(Gt,xt)}).catch(k.error)}},clearOutline:R,clearSelectionsCache:ve,selectOnClick:he}},46056:function(d,l,n){var c=n(13916),b=n(25376),i=n(52904).line,O=n(98192).u,w=n(92880).extendFlat,y=n(31780).templatedArray,p=(n(36208),n(45464)),a=n(21776).ye,u=n(97728);d.exports=y("shape",{visible:w({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:w({},p.legend,{editType:"calc+arraydraw"}),legendgroup:w({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:w({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:b({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:w({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:w({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:w({},c.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:w({},c.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:w({},i.color,{editType:"arraydraw"}),width:w({},i.width,{editType:"calc+arraydraw"}),dash:w({},O,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:a({},{keys:Object.keys(u)}),font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},96084:function(d,l,n){var c=n(3400),b=n(54460),i=n(85448),O=n(65152);function w(u){return p(u.line.width,u.xsizemode,u.x0,u.x1,u.path,!1)}function y(u){return p(u.line.width,u.ysizemode,u.y0,u.y1,u.path,!0)}function p(u,h,m,v,_,S){var A=u/2,x=S;if(h==="pixel"){var R=_?O.extractPathCoords(_,S?i.paramIsY:i.paramIsX):[m,v],M=c.aggNums(Math.max,null,R),T=c.aggNums(Math.min,null,R),E=T<0?Math.abs(T)+A:A,C=M>0?M+A:A;return{ppad:A,ppadplus:x?E:C,ppadminus:x?C:E}}return{ppad:A}}function a(u,h,m,v,_){var S=u.type==="category"||u.type==="multicategory"?u.r2c:u.d2c;if(h!==void 0)return[S(h),S(m)];if(v){var A,x,R,M,T=1/0,E=-1/0,C=v.match(i.segmentRE);for(u.type==="date"&&(S=O.decodeDate(S)),A=0;AE&&(E=M)));return E>=T?[T,E]:void 0}}d.exports=function(u){var h=u._fullLayout,m=c.filterVisible(h.shapes);if(m.length&&u._fullData.length)for(var v=0;v=ye?_e-Te:Te-_e,-180/Math.PI*Math.atan2(Pe,Ie)}(E,L,C,D):0),z.call(function(ye){return ye.call(O.font,I).attr({}),i.convertToTspans(ye,h),ye});var ae=function(ye,_e,Se,Te,Pe,Ie,ze){var De,He,Ve,$e,Oe=Pe.label.textposition,ke=Pe.label.textangle,Le=Pe.label.padding,We=Pe.type,Ue=Math.PI/180*Ie,Ze=Math.sin(Ue),Xe=Math.cos(Ue),tt=Pe.label.xanchor,Ee=Pe.label.yanchor;if(We==="line"){Oe==="start"?(De=ye,He=_e):Oe==="end"?(De=Se,He=Te):(De=(ye+Se)/2,He=(_e+Te)/2),tt==="auto"&&(tt=Oe==="start"?ke==="auto"?Se>ye?"left":Seye?"right":Seye?"right":Seye?"left":Se1&&(De.length!==2||De[1][0]!=="Z")&&(K===0&&(De[0][0]="M"),k[W]=De,j(),U())}}()}}function ye(Pe,Ie){(function(ze,De){if(k.length)for(var He=0;HeHe?(Oe=ze,Ue="y0",ke=He,Ze="y1"):(Oe=He,Ue="y1",ke=ze,Ze="y0"),vt(Rt),yt(Te,_e),function(it,at,Lt){var xt=at.xref,Ht=at.yref,Xt=O.getFromId(Lt,xt),Yt=O.getFromId(Lt,Ht),Qt="";xt==="paper"||Xt.autorange||(Qt+=xt),Ht==="paper"||Yt.autorange||(Qt+=Ht),h.setClipUrl(it,Qt?"clip"+Lt._fullLayout._uid+Qt:null,Lt)}(ye,_e,ve),mn.moveFn=Ne==="move"?bt:lt,mn.altKey=Rt.altKey)},doneFn:function(){M(ve)||(_(ye),zt(Te),C(ye,ve,_e),b.call("_guiRelayout",ve,Pe.getUpdateObj()))},clickFn:function(){M(ve)||zt(Te)}};function vt(Rt){if(M(ve))Ne=null;else if(ht)Ne=Rt.target.tagName==="path"?"move":Rt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var it=mn.element.getBoundingClientRect(),at=it.right-it.left,Lt=it.bottom-it.top,xt=Rt.clientX-it.left,Ht=Rt.clientY-it.top,Xt=!pt&&at>je&&Lt>nt&&!Rt.shiftKey?v.getCursor(xt/at,1-Ht/Lt):"move";_(ye,Xt),Ne=Xt.split("-")[0]}}function bt(Rt,it){if(_e.type==="path"){var at=function(Ht){return Ht},Lt=at,xt=at;ot?wt("xanchor",_e.xanchor=nn(Ve+Rt)):(Lt=function(Ht){return nn(Ct(Ht)+Rt)},It&&It.type==="date"&&(Lt=A.encodeDate(Lt))),Ge?wt("yanchor",_e.yanchor=gn($e+it)):(xt=function(Ht){return gn(_t(Ht)+it)},en&&en.type==="date"&&(xt=A.encodeDate(xt))),wt("path",_e.path=L(Ee,Lt,xt))}else ot?wt("xanchor",_e.xanchor=nn(Ve+Rt)):(wt("x0",_e.x0=nn(Ie+Rt)),wt("x1",_e.x1=nn(De+Rt))),Ge?wt("yanchor",_e.yanchor=gn($e+it)):(wt("y0",_e.y0=gn(ze+it)),wt("y1",_e.y1=gn(He+it)));ye.attr("d",x(ve,_e)),yt(Te,_e),p(ve,Se,_e,Dt)}function lt(Rt,it){if(pt){var at=function(In){return In},Lt=at,xt=at;ot?wt("xanchor",_e.xanchor=nn(Ve+Rt)):(Lt=function(In){return nn(Ct(In)+Rt)},It&&It.type==="date"&&(Lt=A.encodeDate(Lt))),Ge?wt("yanchor",_e.yanchor=gn($e+it)):(xt=function(In){return gn(_t(In)+it)},en&&en.type==="date"&&(xt=A.encodeDate(xt))),wt("path",_e.path=L(Ee,Lt,xt))}else if(ht){if(Ne==="resize-over-start-point"){var Ht=Ie+Rt,Xt=Ge?ze-it:ze+it;wt("x0",_e.x0=ot?Ht:nn(Ht)),wt("y0",_e.y0=Ge?Xt:gn(Xt))}else if(Ne==="resize-over-end-point"){var Yt=De+Rt,Qt=Ge?He-it:He+it;wt("x1",_e.x1=ot?Yt:nn(Yt)),wt("y1",_e.y1=Ge?Qt:gn(Qt))}}else{var Pt=function(In){return Ne.indexOf(In)!==-1},tn=Pt("n"),Kt=Pt("s"),fn=Pt("w"),dn=Pt("e"),vn=tn?Oe+it:Oe,Nn=Kt?ke+it:ke,er=fn?Le+Rt:Le,En=dn?We+Rt:We;Ge&&(tn&&(vn=Oe-it),Kt&&(Nn=ke-it)),(!Ge&&Nn-vn>nt||Ge&&vn-Nn>nt)&&(wt(Ue,_e[Ue]=Ge?vn:gn(vn)),wt(Ze,_e[Ze]=Ge?Nn:gn(Nn))),En-er>je&&(wt(Xe,_e[Xe]=ot?er:nn(er)),wt(tt,_e[tt]=ot?En:nn(En)))}ye.attr("d",x(ve,_e)),yt(Te,_e),p(ve,Se,_e,Dt)}function yt(Rt,it){(ot||Ge)&&function(){var at=it.type!=="path",Lt=Rt.selectAll(".visual-cue").data([0]);Lt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var xt=Ct(ot?it.xanchor:i.midRange(at?[it.x0,it.x1]:A.extractPathCoords(it.path,S.paramIsX))),Ht=_t(Ge?it.yanchor:i.midRange(at?[it.y0,it.y1]:A.extractPathCoords(it.path,S.paramIsY)));if(xt=A.roundPositionForSharpStrokeRendering(xt,1),Ht=A.roundPositionForSharpStrokeRendering(Ht,1),ot&&Ge){var Xt="M"+(xt-1-1)+","+(Ht-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Lt.attr("d",Xt)}else if(ot){var Yt="M"+(xt-1-1)+","+(Ht-9-1)+"v18 h2 v-18 Z";Lt.attr("d",Yt)}else{var Qt="M"+(xt-9-1)+","+(Ht-1-1)+"h18 v2 h-18 Z";Lt.attr("d",Qt)}}()}function zt(Rt){Rt.selectAll(".visual-cue").remove()}v.init(mn),bn.node().onmousemove=vt}(k,ae,$,I,U,he):$.editable===!0&&ae.style("pointer-events",ee||u.opacity(K)*W<=.5?"stroke":"all");ae.node().addEventListener("click",function(){return function(ve,ye){if(T(ve)){var _e=+ye.node().getAttribute("data-index");if(_e>=0){if(_e===ve._fullLayout._activeShapeIndex)return void D(ve);ve._fullLayout._activeShapeIndex=_e,ve._fullLayout._deactivateShape=D,R(ve)}}}(k,ae)})}$._input&&$.visible===!0&&($.layer!=="below"?j(k._fullLayout._shapeUpperLayer):$.xref==="paper"||$.yref==="paper"?j(k._fullLayout._shapeLowerLayer):Q._hadPlotinfo?j((Q.mainplotinfo||Q).shapelayer):j(k._fullLayout._shapeLowerLayer))}function C(k,I,z){var $=(z.xref+z.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");h.setClipUrl(k,$?"clip"+I._fullLayout._uid+$:null,I)}function L(k,I,z){return k.replace(S.segmentRE,function($){var Q=0,j=$.charAt(0),U=S.paramIsX[j],X=S.paramIsY[j],te=S.numParams[j];return j+$.substr(1).replace(S.paramRE,function(W){return Q>=te||(U[Q]?W=I(W):X[Q]&&(W=z(W)),Q++),W})})}function D(k){T(k)&&k._fullLayout._activeShapeIndex>=0&&(a(k),delete k._fullLayout._activeShapeIndex,R(k))}d.exports={draw:R,drawOne:E,eraseActiveShape:function(k){if(T(k)){a(k);var I=k._fullLayout._activeShapeIndex,z=(k.layout||{}).shapes||[];if(I0&&Ese&&(ce="X"),ce});return Y>se&&(ae=ae.replace(/[\s,]*X.*/,""),b.log("Ignoring extra params in segment "+q)),ee+ae})}(w,p,u);if(w.xsizemode==="pixel"){var E=p(w.xanchor);h=E+w.x0,m=E+w.x1}else h=p(w.x0),m=p(w.x1);if(w.ysizemode==="pixel"){var C=u(w.yanchor);v=C-w.y0,_=C-w.y1}else v=u(w.y0),_=u(w.y1);if(S==="line")return"M"+h+","+v+"L"+m+","+_;if(S==="rect")return"M"+h+","+v+"H"+m+"V"+_+"H"+h+"Z";var L=(h+m)/2,D=(v+_)/2,k=Math.abs(L-h),I=Math.abs(D-v),z="A"+k+","+I,$=L+k+","+D;return"M"+$+z+" 0 1,1 "+L+","+(D-I)+z+" 0 0,1 "+$+"Z"}},41592:function(d,l,n){var c=n(4016);d.exports={moduleType:"component",name:"shapes",layoutAttributes:n(46056),supplyLayoutDefaults:n(43712),supplyDrawNewShapeDefaults:n(65144),includeBasePlot:n(36632)("shapes"),calcAutorange:n(96084),draw:c.draw,drawOne:c.drawOne}},97728:function(d){function l(i,O){return O?O.d2l(i):i}function n(i,O){return O?O.l2d(i):i}function c(i,O){return l(i.x1,O)-l(i.x0,O)}function b(i,O,w){return l(i.y1,w)-l(i.y0,w)}d.exports={x0:function(i){return i.x0},x1:function(i){return i.x1},y0:function(i){return i.y0},y1:function(i){return i.y1},slope:function(i,O,w){return i.type!=="line"?void 0:b(i,0,w)/c(i,O)},dx:c,dy:b,width:function(i,O){return Math.abs(c(i,O))},height:function(i,O,w){return Math.abs(b(i,0,w))},length:function(i,O,w){return i.type!=="line"?void 0:Math.sqrt(Math.pow(c(i,O),2)+Math.pow(b(i,0,w),2))},xcenter:function(i,O){return n((l(i.x1,O)+l(i.x0,O))/2,O)},ycenter:function(i,O,w){return n((l(i.y1,w)+l(i.y0,w))/2,w)}}},89861:function(d,l,n){var c=n(25376),b=n(66741),i=n(92880).extendDeepAll,O=n(67824).overrideAll,w=n(85656),y=n(31780).templatedArray,p=n(60876),a=y("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});d.exports=O(y("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:a,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(b({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:c({})},font:c({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},60876:function(d){d.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(d,l,n){var c=n(3400),b=n(51272),i=n(89861),O=n(60876).name,w=i.steps;function y(a,u,h){function m(x,R){return c.coerce(a,u,i,x,R)}for(var v=b(a,u,{name:"steps",handleItemDefaults:p}),_=0,S=0;S0&&(Y=Y.transition().duration(X.transition.duration).ease(X.transition.easing)),Y.attr("transform",y(q-.5*u.gripWidth,X._dims.currentValueTotalHeight))}}function z(U,X){var te=U._dims;return te.inputAreaStart+u.stepInset+(te.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,X))}function $(U,X){var te=U._dims;return Math.min(1,Math.max(0,(X-u.stepInset-te.inputAreaStart)/(te.inputAreaLength-2*u.stepInset-2*te.inputAreaStart)))}function Q(U,X,te){var W=te._dims,K=w.ensureSingle(U,"rect",u.railTouchRectClass,function(oe){oe.call(D,X,U,te).style("pointer-events","all")});K.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,u.tickOffset+te.ticklen+W.labelHeight)}).call(i.fill,te.bgcolor).attr("opacity",0),O.setTranslate(K,0,W.currentValueTotalHeight)}function j(U,X){var te=X._dims,W=te.inputAreaLength-2*u.railInset,K=w.ensureSingle(U,"rect",u.railRectClass);K.attr({width:W,height:u.railWidth,rx:u.railRadius,ry:u.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,X.bordercolor).call(i.fill,X.bgcolor).style("stroke-width",X.borderwidth+"px"),O.setTranslate(K,u.railInset,.5*(te.inputAreaWidth-u.railWidth)+te.currentValueTotalHeight)}d.exports=function(U){var X=U._context.staticPlot,te=U._fullLayout,W=function(me,he){for(var se=me[u.name],ae=[],ce=0;ce0?[0]:[]);function oe(me){me._commandObserver&&(me._commandObserver.remove(),delete me._commandObserver),b.autoMargin(U,S(me))}if(K.enter().append("g").classed(u.containerClassName,!0).style("cursor",X?null:"ew-resize"),K.exit().each(function(){c.select(this).selectAll("g."+u.groupClassName).each(oe)}).remove(),W.length!==0){var q=K.selectAll("g."+u.groupClassName).data(W,A);q.enter().append("g").classed(u.groupClassName,!0),q.exit().each(oe).remove();for(var Y=0;Y0||De<0){var Oe={left:[-He,0],right:[He,0],top:[0,-He],bottom:[0,He]}[C.side];ae.attr("transform",y(Oe[0],Oe[1]))}}}return Y.call(ee),K&&(j?Y.on(".opacity",null):(z=0,$=!0,Y.text(T).on("mouseover.opacity",function(){c.select(this).transition().duration(h.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){c.select(this).transition().duration(h.HIDE_PLACEHOLDER).style("opacity",0)})),Y.call(u.makeEditable,{gd:_}).on("edit",function(se){E!==void 0?O.call("_guiRestyle",_,M,se,E):O.call("_guiRelayout",_,M,se)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ee)}).on("input",function(se){this.text(se||" ").call(u.positionText,L.x,L.y)})),Y.classed("js-placeholder",$),k}}},88444:function(d,l,n){var c=n(25376),b=n(22548),i=n(92880).extendFlat,O=n(67824).overrideAll,w=n(66741),y=n(31780).templatedArray,p=y("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});d.exports=O(y("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(w({editType:"arraydraw"}),{}),font:c({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:b.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(d){d.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(d,l,n){var c=n(3400),b=n(51272),i=n(88444),O=n(73712).name,w=i.buttons;function y(a,u,h){function m(v,_){return c.coerce(a,u,i,v,_)}m("visible",b(a,u,{name:"buttons",handleItemDefaults:p}).length>0)&&(m("active"),m("direction"),m("type"),m("showactive"),m("x"),m("y"),c.noneOrAll(a,u,["x","y"]),m("xanchor"),m("yanchor"),m("pad.t"),m("pad.r"),m("pad.b"),m("pad.l"),c.coerceFont(m,"font",h.font),m("bgcolor",h.paper_bgcolor),m("bordercolor"),m("borderwidth"))}function p(a,u){function h(m,v){return c.coerce(a,u,w,m,v)}h("visible",a.method==="skip"||Array.isArray(a.args))&&(h("method"),h("args"),h("args2"),h("label"),h("execute"))}d.exports=function(a,u){b(a,u,{name:O,handleItemDefaults:y})}},14420:function(d,l,n){var c=n(33428),b=n(7316),i=n(76308),O=n(43616),w=n(3400),y=n(72736),p=n(31780).arrayEditor,a=n(84284).LINE_SPACING,u=n(73712),h=n(37400);function m(z){return z._index}function v(z,$){return+z.attr(u.menuIndexAttrName)===$._index}function _(z,$,Q,j,U,X,te,W){$.active=te,p(z.layout,u.name,$).applyUpdate("active",te),$.type==="buttons"?A(z,j,null,null,$):$.type==="dropdown"&&(U.attr(u.menuIndexAttrName,"-1"),S(z,j,U,X,$),W||A(z,j,U,X,$))}function S(z,$,Q,j,U){var X=w.ensureSingle($,"g",u.headerClassName,function(Y){Y.style("pointer-events","all")}),te=U._dims,W=U.active,K=U.buttons[W]||u.blankHeaderOpts,oe={y:U.pad.t,yPad:0,x:U.pad.l,xPad:0,index:0},q={width:te.headerWidth,height:te.headerHeight};X.call(x,U,K,z).call(k,U,oe,q),w.ensureSingle($,"text",u.headerArrowClassName,function(Y){Y.attr("text-anchor","end").call(O.font,U.font).text(u.arrowSymbol[U.direction])}).attr({x:te.headerWidth-u.arrowOffsetX+U.pad.l,y:te.headerHeight/2+u.textOffsetY+U.pad.t}),X.on("click",function(){Q.call(I,String(v(Q,U)?-1:U._index)),A(z,$,Q,j,U)}),X.on("mouseover",function(){X.call(E)}),X.on("mouseout",function(){X.call(C,U)}),O.setTranslate($,te.lx,te.ly)}function A(z,$,Q,j,U){Q||(Q=$).attr("pointer-events","all");var X=function(ae){return+ae.attr(u.menuIndexAttrName)==-1}(Q)&&U.type!=="buttons"?[]:U.buttons,te=U.type==="dropdown"?u.dropdownButtonClassName:u.buttonClassName,W=Q.selectAll("g."+te).data(w.filterVisible(X)),K=W.enter().append("g").classed(te,!0),oe=W.exit();U.type==="dropdown"?(K.attr("opacity","0").transition().attr("opacity","1"),oe.transition().attr("opacity","0").remove()):oe.remove();var q=0,Y=0,ee=U._dims,me=["up","down"].indexOf(U.direction)!==-1;U.type==="dropdown"&&(me?Y=ee.headerHeight+u.gapButtonHeader:q=ee.headerWidth+u.gapButtonHeader),U.type==="dropdown"&&U.direction==="up"&&(Y=-u.gapButtonHeader+u.gapButton-ee.openHeight),U.type==="dropdown"&&U.direction==="left"&&(q=-u.gapButtonHeader+u.gapButton-ee.openWidth);var he={x:ee.lx+q+U.pad.l,y:ee.ly+Y+U.pad.t,yPad:u.gapButton,xPad:u.gapButton,index:0},se={l:he.x+U.borderwidth,t:he.y+U.borderwidth};W.each(function(ae,ce){var de=c.select(this);de.call(x,U,ae,z).call(k,U,he),de.on("click",function(){c.event.defaultPrevented||(ae.execute&&(ae.args2&&U.active===ce?(_(z,U,0,$,Q,j,-1),b.executeAPICommand(z,ae.method,ae.args2)):(_(z,U,0,$,Q,j,ce),b.executeAPICommand(z,ae.method,ae.args))),z.emit("plotly_buttonclicked",{menu:U,button:ae,active:U.active}))}),de.on("mouseover",function(){de.call(E)}),de.on("mouseout",function(){de.call(C,U),W.call(T,U)})}),W.call(T,U),me?(se.w=Math.max(ee.openWidth,ee.headerWidth),se.h=he.y-se.t):(se.w=he.x-se.l,se.h=Math.max(ee.openHeight,ee.headerHeight)),se.direction=U.direction,j&&(W.size()?function(ae,ce,de,ve,ye,_e){var Se,Te,Pe,Ie=ye.direction,ze=Ie==="up"||Ie==="down",De=ye._dims,He=ye.active;if(ze)for(Te=0,Pe=0;Pe0?[0]:[]);if(U.enter().append("g").classed(u.containerClassName,!0).style("cursor","pointer"),U.exit().each(function(){c.select(this).selectAll("g."+u.headerGroupClassName).each(j)}).remove(),Q.length!==0){var X=U.selectAll("g."+u.headerGroupClassName).data(Q,m);X.enter().append("g").classed(u.headerGroupClassName,!0);for(var te=w.ensureSingle(U,"g",u.dropdownButtonGroupClassName,function(Y){Y.style("pointer-events","all")}),W=0;Wk,$=w.barLength+2*w.barPad,Q=w.barWidth+2*w.barPad,j=x,U=M+T;U+Q>m&&(U=m-Q);var X=this.container.selectAll("rect.scrollbar-horizontal").data(z?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(b.fill,w.barColor),z?(this.hbar=X.attr({rx:w.barRadius,ry:w.barRadius,x:j,y:U,width:$,height:Q}),this._hbarXMin=j+$/2,this._hbarTranslateMax=k-$):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var te=T>I,W=w.barWidth+2*w.barPad,K=w.barLength+2*w.barPad,oe=x+R,q=M;oe+W>h&&(oe=h-W);var Y=this.container.selectAll("rect.scrollbar-vertical").data(te?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(b.fill,w.barColor),te?(this.vbar=Y.attr({rx:w.barRadius,ry:w.barRadius,x:oe,y:q,width:W,height:K}),this._vbarYMin=q+K/2,this._vbarTranslateMax=I-K):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,me=v-.5,he=te?_+W+.5:_+.5,se=S-.5,ae=z?A+Q+.5:A+.5,ce=u._topdefs.selectAll("#"+ee).data(z||te?[0]:[]);if(ce.exit().remove(),ce.enter().append("clipPath").attr("id",ee).append("rect"),z||te?(this._clipRect=ce.select("rect").attr({x:Math.floor(me),y:Math.floor(se),width:Math.ceil(he)-Math.floor(me),height:Math.ceil(ae)-Math.floor(se)}),this.container.call(i.setClipUrl,ee,this.gd),this.bg.attr({x,y:M,width:R,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),z||te){var de=c.behavior.drag().on("dragstart",function(){c.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var ve=c.behavior.drag().on("dragstart",function(){c.event.sourceEvent.preventDefault(),c.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));z&&this.hbar.on(".drag",null).call(ve),te&&this.vbar.on(".drag",null).call(ve)}this.setTranslate(p,a)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var y=this.translateX,p=this.translateY;this.hbar&&(y-=c.event.dx),this.vbar&&(p-=c.event.dy),this.setTranslate(y,p)},w.prototype._onBoxWheel=function(){var y=this.translateX,p=this.translateY;this.hbar&&(y+=c.event.deltaY),this.vbar&&(p+=c.event.deltaY),this.setTranslate(y,p)},w.prototype._onBarDrag=function(){var y=this.translateX,p=this.translateY;if(this.hbar){var a=y+this._hbarXMin,u=a+this._hbarTranslateMax;y=(O.constrain(c.event.x,a,u)-a)/(u-a)*(this.position.w-this._box.w)}if(this.vbar){var h=p+this._vbarYMin,m=h+this._vbarTranslateMax;p=(O.constrain(c.event.y,h,m)-h)/(m-h)*(this.position.h-this._box.h)}this.setTranslate(y,p)},w.prototype.setTranslate=function(y,p){var a=this.position.w-this._box.w,u=this.position.h-this._box.h;if(y=O.constrain(y||0,0,a),p=O.constrain(p||0,0,u),this.translateX=y,this.translateY=p,this.container.call(i.setTranslate,this._box.l-this.position.l-y,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+y-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var h=y/a;this.hbar.call(i.setTranslate,y+h*this._hbarTranslateMax,p)}if(this.vbar){var m=p/u;this.vbar.call(i.setTranslate,y,p+m*this._vbarTranslateMax)}}},84284:function(d){d.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(d){d.exports={axisRefDescription:function(l,n,c){return["If set to a",l,"axis id (e.g. *"+l+"* or","*"+l+"2*), the `"+l+"` position refers to a",l,"coordinate. If set to *paper*, the `"+l+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+c+"). If set to a",l,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+l+"2 domain* refers to the domain of the second",l," axis and a",l,"position of 0.5 refers to the","point between the",n,"and the",c,"of the domain of the","second",l,"axis."].join(" ")}}},48164:function(d){d.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(d){d.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(d){d.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(d){d.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(d){d.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(d){d.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(d){d.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(d,l){l.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],l.STYLE=l.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},9616:function(d,l){l.xmlns="http://www.w3.org/2000/xmlns/",l.svg="http://www.w3.org/2000/svg",l.xlink="http://www.w3.org/1999/xlink",l.svgAttrs={xmlns:l.svg,"xmlns:xlink":l.xlink}},64884:function(d,l,n){l.version=n(25788).version,n(88324),n(79288);for(var c=n(24040),b=l.register=c.register,i=n(22448),O=Object.keys(i),w=0;w",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(d,l){l.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},l.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},l.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},l.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},l.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},l.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},11864:function(d,l,n){var c=n(20435),b=c.mod,i=c.modHalf,O=Math.PI,w=2*O;function y(h){return Math.abs(h[1]-h[0])>w-1e-14}function p(h,m){return i(m-h,w)}function a(h,m){if(y(m))return!0;var v,_;m[0](_=b(_,w))&&(_+=w);var S=b(h,w),A=S+w;return S>=v&&S<=_||A>=v&&A<=_}function u(h,m,v,_,S,A,x){S=S||0,A=A||0;var R,M,T,E,C,L=y([v,_]);function D($,Q){return[$*Math.cos(Q)+S,A-$*Math.sin(Q)]}L?(R=0,M=O,T=w):v<_?(R=v,T=_):(R=_,T=v),h=S&&h<=A);var S,A},pathArc:function(h,m,v,_,S){return u(null,h,m,v,_,S,0)},pathSector:function(h,m,v,_,S){return u(null,h,m,v,_,S,1)},pathAnnulus:function(h,m,v,_,S,A){return u(h,m,v,_,S,A,1)}}},38116:function(d,l,n){var c=n(83160).decode,b=n(63620),i=Array.isArray,O=ArrayBuffer,w=DataView;function y(m){return O.isView(m)&&!(m instanceof w)}function p(m){return i(m)||y(m)}l.isTypedArray=y,l.isArrayOrTypedArray=p,l.isArray1D=function(m){return!p(m[0])},l.ensureArray=function(m,v){return i(m)||(m=[]),m.length=v,m};var a={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};function u(m){return m.constructor===ArrayBuffer}function h(m,v,_){if(p(m)){if(p(m[0])){for(var S=_,A=0;AR.max?A.set(x):A.set(+S)}},integer:{coerceFunction:function(S,A,x,R){S%1||!c(S)||R.min!==void 0&&SR.max?A.set(x):A.set(+S)}},string:{coerceFunction:function(S,A,x,R){if(typeof S!="string"){var M=typeof S=="number";R.strict!==!0&&M?A.set(String(S)):A.set(x)}else R.noBlank&&!S?A.set(x):A.set(S)}},color:{coerceFunction:function(S,A,x){b(S).isValid()?A.set(S):A.set(x)}},colorlist:{coerceFunction:function(S,A,x){Array.isArray(S)&&S.length&&S.every(function(R){return b(R).isValid()})?A.set(S):A.set(x)}},colorscale:{coerceFunction:function(S,A,x){A.set(O.get(S,x))}},angle:{coerceFunction:function(S,A,x){S==="auto"?A.set("auto"):c(S)?A.set(u(+S,360)):A.set(x)}},subplotid:{coerceFunction:function(S,A,x,R){var M=R.regex||a(x);typeof S=="string"&&M.test(S)?A.set(S):A.set(x)},validateFunction:function(S,A){var x=A.dflt;return S===x||typeof S=="string"&&!!a(x).test(S)}},flaglist:{coerceFunction:function(S,A,x,R){if((R.extras||[]).indexOf(S)===-1)if(typeof S=="string"){for(var M=S.split("+"),T=0;T=c&&X<=b?X:a}if(typeof X!="string"&&typeof X!="number")return a;X=String(X);var q=T(te),Y=X.charAt(0);!q||Y!=="G"&&Y!=="g"||(X=X.substr(1),te="");var ee=q&&te.substr(0,7)==="chinese",me=X.match(ee?R:x);if(!me)return a;var he=me[1],se=me[3]||"1",ae=Number(me[5]||1),ce=Number(me[7]||0),de=Number(me[9]||0),ve=Number(me[11]||0);if(q){if(he.length===2)return a;var ye;he=Number(he);try{var _e=S.getComponentMethod("calendars","getCal")(te);if(ee){var Se=se.charAt(se.length-1)==="i";se=parseInt(se,10),ye=_e.newDate(he,_e.toMonthIndex(he,se,Se),ae)}else ye=_e.newDate(he,Number(se),ae)}catch{return a}return ye?(ye.toJD()-_)*u+ce*h+de*m+ve*v:a}he=he.length===2?(Number(he)+2e3-M)%100+M:Number(he),se-=1;var Te=new Date(Date.UTC(2e3,se,ae,ce,de));return Te.setUTCFullYear(he),Te.getUTCMonth()!==se||Te.getUTCDate()!==ae?a:Te.getTime()+ve*v},c=l.MIN_MS=l.dateTime2ms("-9999"),b=l.MAX_MS=l.dateTime2ms("9999-12-31 23:59:59.9999"),l.isDateTime=function(X,te){return l.dateTime2ms(X,te)!==a};var C=90*u,L=3*h,D=5*m;function k(X,te,W,K,oe){if((te||W||K||oe)&&(X+=" "+E(te,2)+":"+E(W,2),(K||oe)&&(X+=":"+E(K,2),oe))){for(var q=4;oe%10==0;)q-=1,oe/=10;X+="."+E(oe,q)}return X}l.ms2DateTime=function(X,te,W){if(typeof X!="number"||!(X>=c&&X<=b))return a;te||(te=0);var K,oe,q,Y,ee,me,he=Math.floor(10*y(X+.05,1)),se=Math.round(X-he/10);if(T(W)){var ae=Math.floor(se/u)+_,ce=Math.floor(y(X,u));try{K=S.getComponentMethod("calendars","getCal")(W).fromJD(ae).formatDate("yyyy-mm-dd")}catch{K=A("G%Y-%m-%d")(new Date(se))}if(K.charAt(0)==="-")for(;K.length<11;)K="-0"+K.substr(1);else for(;K.length<10;)K="0"+K;oe=te=c+u&&X<=b-u))return a;var te=Math.floor(10*y(X+.05,1)),W=new Date(Math.round(X-te/10));return k(i("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+te)},l.cleanDate=function(X,te,W){if(X===a)return te;if(l.isJSDate(X)||typeof X=="number"&&isFinite(X)){if(T(W))return w.error("JS Dates and milliseconds are incompatible with world calendars",X),te;if(!(X=l.ms2DateTimeLocal(+X))&&te!==void 0)return te}else if(!l.isDateTime(X,W))return w.error("unrecognized date",X),te;return X};var I=/%\d?f/g,z=/%h/g,$={1:"1",2:"1",3:"2",4:"2"};function Q(X,te,W,K){X=X.replace(I,function(q){var Y=Math.min(+q.charAt(1)||6,6);return(te/1e3%1+2).toFixed(Y).substr(2).replace(/0+$/,"")||"0"});var oe=new Date(Math.floor(te+.05));if(X=X.replace(z,function(){return $[W("%q")(oe)]}),T(K))try{X=S.getComponentMethod("calendars","worldCalFmt")(X,te,K)}catch{return"Invalid"}return W(X)(oe)}var j=[59,59.9,59.99,59.999,59.9999];l.formatDate=function(X,te,W,K,oe,q){if(oe=T(oe)&&oe,!te)if(W==="y")te=q.year;else if(W==="m")te=q.month;else{if(W!=="d")return function(Y,ee){var me=y(Y+.05,u),he=E(Math.floor(me/h),2)+":"+E(y(Math.floor(me/m),60),2);if(ee!=="M"){O(ee)||(ee=0);var se=(100+Math.min(y(Y/v,60),j[ee])).toFixed(ee).substr(1);ee>0&&(se=se.replace(/0+$/,"").replace(/[\.]$/,"")),he+=":"+se}return he}(X,W)+` + */const zA=typeof window<"u";function U5e(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const $u=Object.assign;function aie(t,e){const o={};for(const f in e){const P=e[f];o[f]=bx(P)?P.map(t):t(P)}return o}const aI=()=>{},bx=Array.isArray,j5e=/\/$/,Q5e=t=>t.replace(j5e,"");function sie(t,e,o="/"){let f,P={},d="",l="";const n=e.indexOf("#");let c=e.indexOf("?");return n=0&&(c=-1),c>-1&&(f=e.slice(0,c),d=e.slice(c+1,n>-1?n:e.length),P=t(d)),n>-1&&(f=f||e.slice(0,n),l=e.slice(n,e.length)),f=W5e(f??e,o),{fullPath:f+(d&&"?")+d+l,path:f,query:P,hash:l}}function H5e(t,e){const o=e.query?t(e.query):"";return e.path+(o&&"?")+o+(e.hash||"")}function nhe(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Z5e(t,e,o){const f=e.matched.length-1,P=o.matched.length-1;return f>-1&&f===P&&lM(e.matched[f],o.matched[P])&&fve(e.params,o.params)&&t(e.query)===t(o.query)&&e.hash===o.hash}function lM(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function fve(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const o in t)if(!q5e(t[o],e[o]))return!1;return!0}function q5e(t,e){return bx(t)?rhe(t,e):bx(e)?rhe(e,t):t===e}function rhe(t,e){return bx(e)?t.length===e.length&&t.every((o,f)=>o===e[f]):t.length===1&&t[0]===e}function W5e(t,e){if(t.startsWith("/"))return t;if(!t)return e;const o=e.split("/"),f=t.split("/"),P=f[f.length-1];(P===".."||P===".")&&f.push("");let d=o.length-1,l,n;for(l=0;l1&&d--;else break;return o.slice(0,d).join("/")+"/"+f.slice(l-(l===f.length?1:0)).join("/")}var AI;(function(t){t.pop="pop",t.push="push"})(AI||(AI={}));var sI;(function(t){t.back="back",t.forward="forward",t.unknown=""})(sI||(sI={}));function Y5e(t){if(!t)if(zA){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Q5e(t)}const X5e=/^[^#]+#/;function G5e(t,e){return t.replace(X5e,"#")+e}function K5e(t,e){const o=document.documentElement.getBoundingClientRect(),f=t.getBoundingClientRect();return{behavior:e.behavior,left:f.left-o.left-(e.left||0),top:f.top-o.top-(e.top||0)}}const qZ=()=>({left:window.pageXOffset,top:window.pageYOffset});function J5e(t){let e;if("el"in t){const o=t.el,f=typeof o=="string"&&o.startsWith("#"),P=typeof o=="string"?f?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!P)return;e=K5e(P,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function ohe(t,e){return(history.state?history.state.position-e:-1)+t}const Mae=new Map;function eke(t,e){Mae.set(t,e)}function tke(t){const e=Mae.get(t);return Mae.delete(t),e}let nke=()=>location.protocol+"//"+location.host;function dve(t,e){const{pathname:o,search:f,hash:P}=e,d=t.indexOf("#");if(d>-1){let n=P.includes(t.slice(d))?t.slice(d).length:1,c=P.slice(n);return c[0]!=="/"&&(c="/"+c),nhe(c,"")}return nhe(o,t)+f+P}function rke(t,e,o,f){let P=[],d=[],l=null;const n=({state:w})=>{const y=dve(t,location),p=o.value,a=e.value;let u=0;if(w){if(o.value=y,e.value=w,l&&l===p){l=null;return}u=a?w.position-a.position:0}else f(y);P.forEach(h=>{h(o.value,p,{delta:u,type:AI.pop,direction:u?u>0?sI.forward:sI.back:sI.unknown})})};function c(){l=o.value}function b(w){P.push(w);const y=()=>{const p=P.indexOf(w);p>-1&&P.splice(p,1)};return d.push(y),y}function i(){const{history:w}=window;w.state&&w.replaceState($u({},w.state,{scroll:qZ()}),"")}function O(){for(const w of d)w();d=[],window.removeEventListener("popstate",n),window.removeEventListener("beforeunload",i)}return window.addEventListener("popstate",n),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:c,listen:b,destroy:O}}function ihe(t,e,o,f=!1,P=!1){return{back:t,current:e,forward:o,replaced:f,position:window.history.length,scroll:P?qZ():null}}function oke(t){const{history:e,location:o}=window,f={value:dve(t,o)},P={value:e.state};P.value||d(f.value,{back:null,current:f.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function d(c,b,i){const O=t.indexOf("#"),w=O>-1?(o.host&&document.querySelector("base")?t:t.slice(O))+c:nke()+t+c;try{e[i?"replaceState":"pushState"](b,"",w),P.value=b}catch(y){console.error(y),o[i?"replace":"assign"](w)}}function l(c,b){const i=$u({},e.state,ihe(P.value.back,c,P.value.forward,!0),b,{position:P.value.position});d(c,i,!0),f.value=c}function n(c,b){const i=$u({},P.value,e.state,{forward:c,scroll:qZ()});d(i.current,i,!0);const O=$u({},ihe(f.value,c,null),{position:i.position+1},b);d(c,O,!1),f.value=c}return{location:f,state:P,push:n,replace:l}}function ike(t){t=Y5e(t);const e=oke(t),o=rke(t,e.state,e.location,e.replace);function f(d,l=!0){l||o.pauseListeners(),history.go(d)}const P=$u({location:"",base:t,go:f,createHref:G5e.bind(null,t)},e,o);return Object.defineProperty(P,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(P,"state",{enumerable:!0,get:()=>e.state.value}),P}function ake(t){return typeof t=="string"||t&&typeof t=="object"}function hve(t){return typeof t=="string"||typeof t=="symbol"}const z4={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},pve=Symbol("");var ahe;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(ahe||(ahe={}));function cM(t,e){return $u(new Error,{type:t,[pve]:!0},e)}function yO(t,e){return t instanceof Error&&pve in t&&(e==null||!!(t.type&e))}const she="[^/]+?",ske={sensitive:!1,strict:!1,start:!0,end:!0},lke=/[.+*?^${}()[\]/\\]/g;function cke(t,e){const o=$u({},ske,e),f=[];let P=o.start?"^":"";const d=[];for(const b of t){const i=b.length?[]:[90];o.strict&&!b.length&&(P+="/");for(let O=0;Oe.length?e.length===1&&e[0]===40+40?1:-1:0}function fke(t,e){let o=0;const f=t.score,P=e.score;for(;o0&&e[e.length-1]<0}const dke={type:0,value:""},hke=/[a-zA-Z0-9_]/;function pke(t){if(!t)return[[]];if(t==="/")return[[dke]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(y){throw new Error(`ERR (${o})/"${b}": ${y}`)}let o=0,f=o;const P=[];let d;function l(){d&&P.push(d),d=[]}let n=0,c,b="",i="";function O(){b&&(o===0?d.push({type:0,value:b}):o===1||o===2||o===3?(d.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${b}) must be alone in its segment. eg: '/:ids+.`),d.push({type:1,value:b,regexp:i,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),b="")}function w(){b+=c}for(;n{l(m)}:aI}function l(i){if(hve(i)){const O=f.get(i);O&&(f.delete(i),o.splice(o.indexOf(O),1),O.children.forEach(l),O.alias.forEach(l))}else{const O=o.indexOf(i);O>-1&&(o.splice(O,1),i.record.name&&f.delete(i.record.name),i.children.forEach(l),i.alias.forEach(l))}}function n(){return o}function c(i){let O=0;for(;O=0&&(i.record.path!==o[O].record.path||!mve(i,o[O]));)O++;o.splice(O,0,i),i.record.name&&!uhe(i)&&f.set(i.record.name,i)}function b(i,O){let w,y={},p,a;if("name"in i&&i.name){if(w=f.get(i.name),!w)throw cM(1,{location:i});a=w.record.name,y=$u(che(O.params,w.keys.filter(m=>!m.optional).map(m=>m.name)),i.params&&che(i.params,w.keys.map(m=>m.name))),p=w.stringify(y)}else if("path"in i)p=i.path,w=o.find(m=>m.re.test(p)),w&&(y=w.parse(p),a=w.record.name);else{if(w=O.name?f.get(O.name):o.find(m=>m.re.test(O.path)),!w)throw cM(1,{location:i,currentLocation:O});a=w.record.name,y=$u({},O.params,i.params),p=w.stringify(y)}const u=[];let h=w;for(;h;)u.unshift(h.record),h=h.parent;return{name:a,path:p,params:y,matched:u,meta:bke(u)}}return t.forEach(i=>d(i)),{addRoute:d,resolve:b,removeRoute:l,getRoutes:n,getRecordMatcher:P}}function che(t,e){const o={};for(const f of e)f in t&&(o[f]=t[f]);return o}function vke(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:yke(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function yke(t){const e={},o=t.props||!1;if("component"in t)e.default=o;else for(const f in t.components)e[f]=typeof o=="object"?o[f]:o;return e}function uhe(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function bke(t){return t.reduce((e,o)=>$u(e,o.meta),{})}function fhe(t,e){const o={};for(const f in t)o[f]=f in e?e[f]:t[f];return o}function mve(t,e){return e.children.some(o=>o===t||mve(t,o))}const gve=/#/g,xke=/&/g,_ke=/\//g,wke=/=/g,Oke=/\?/g,vve=/\+/g,Ske=/%5B/g,kke=/%5D/g,yve=/%5E/g,Tke=/%60/g,bve=/%7B/g,Cke=/%7C/g,xve=/%7D/g,Ake=/%20/g;function Yle(t){return encodeURI(""+t).replace(Cke,"|").replace(Ske,"[").replace(kke,"]")}function Mke(t){return Yle(t).replace(bve,"{").replace(xve,"}").replace(yve,"^")}function Eae(t){return Yle(t).replace(vve,"%2B").replace(Ake,"+").replace(gve,"%23").replace(xke,"%26").replace(Tke,"`").replace(bve,"{").replace(xve,"}").replace(yve,"^")}function Eke(t){return Eae(t).replace(wke,"%3D")}function Pke(t){return Yle(t).replace(gve,"%23").replace(Oke,"%3F")}function Rke(t){return t==null?"":Pke(t).replace(_ke,"%2F")}function BH(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function Lke(t){const e={};if(t===""||t==="?")return e;const f=(t[0]==="?"?t.slice(1):t).split("&");for(let P=0;Pd&&Eae(d)):[f&&Eae(f)]).forEach(d=>{d!==void 0&&(e+=(e.length?"&":"")+o,d!=null&&(e+="="+d))})}return e}function Ike(t){const e={};for(const o in t){const f=t[o];f!==void 0&&(e[o]=bx(f)?f.map(P=>P==null?null:""+P):f==null?f:""+f)}return e}const Dke=Symbol(""),hhe=Symbol(""),Xle=Symbol(""),Gle=Symbol(""),Pae=Symbol("");function LL(){let t=[];function e(f){return t.push(f),()=>{const P=t.indexOf(f);P>-1&&t.splice(P,1)}}function o(){t=[]}return{add:e,list:()=>t.slice(),reset:o}}function U4(t,e,o,f,P){const d=f&&(f.enterCallbacks[P]=f.enterCallbacks[P]||[]);return()=>new Promise((l,n)=>{const c=O=>{O===!1?n(cM(4,{from:o,to:e})):O instanceof Error?n(O):ake(O)?n(cM(2,{from:e,to:O})):(d&&f.enterCallbacks[P]===d&&typeof O=="function"&&d.push(O),l())},b=t.call(f&&f.instances[P],e,o,c);let i=Promise.resolve(b);t.length<3&&(i=i.then(c)),i.catch(O=>n(O))})}function lie(t,e,o,f){const P=[];for(const d of t)for(const l in d.components){let n=d.components[l];if(!(e!=="beforeRouteEnter"&&!d.instances[l]))if(Bke(n)){const b=(n.__vccOpts||n)[e];b&&P.push(U4(b,o,f,d,l))}else{let c=n();P.push(()=>c.then(b=>{if(!b)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${d.path}"`));const i=U5e(b)?b.default:b;d.components[l]=i;const w=(i.__vccOpts||i)[e];return w&&U4(w,o,f,d,l)()}))}}return P}function Bke(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function phe(t){const e=yl(Xle),o=yl(Gle),f=Un(()=>e.resolve(wa(t.to))),P=Un(()=>{const{matched:c}=f.value,{length:b}=c,i=c[b-1],O=o.matched;if(!i||!O.length)return-1;const w=O.findIndex(lM.bind(null,i));if(w>-1)return w;const y=mhe(c[b-2]);return b>1&&mhe(i)===y&&O[O.length-1].path!==y?O.findIndex(lM.bind(null,c[b-2])):w}),d=Un(()=>P.value>-1&&$ke(o.params,f.value.params)),l=Un(()=>P.value>-1&&P.value===o.matched.length-1&&fve(o.params,f.value.params));function n(c={}){return Nke(c)?e[wa(t.replace)?"replace":"push"](wa(t.to)).catch(aI):Promise.resolve()}return{route:f,href:Un(()=>f.value.href),isActive:d,isExactActive:l,navigate:n}}const zke=Hg({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:phe,setup(t,{slots:e}){const o=lm(phe(t)),{options:f}=yl(Xle),P=Un(()=>({[ghe(t.activeClass,f.linkActiveClass,"router-link-active")]:o.isActive,[ghe(t.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const d=e.default&&e.default(o);return t.custom?d:w1("a",{"aria-current":o.isExactActive?t.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:P.value},d)}}}),Fke=zke;function Nke(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function $ke(t,e){for(const o in e){const f=e[o],P=t[o];if(typeof f=="string"){if(f!==P)return!1}else if(!bx(P)||P.length!==f.length||f.some((d,l)=>d!==P[l]))return!1}return!0}function mhe(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const ghe=(t,e,o)=>t??e??o,Vke=Hg({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:o}){const f=yl(Pae),P=Un(()=>t.route||f.value),d=yl(hhe,0),l=Un(()=>{let b=wa(d);const{matched:i}=P.value;let O;for(;(O=i[b])&&!O.components;)b++;return b}),n=Un(()=>P.value.matched[l.value]);gf(hhe,Un(()=>l.value+1)),gf(Dke,n),gf(Pae,P);const c=ti();return Ni(()=>[c.value,n.value,t.name],([b,i,O],[w,y,p])=>{i&&(i.instances[O]=b,y&&y!==i&&b&&b===w&&(i.leaveGuards.size||(i.leaveGuards=y.leaveGuards),i.updateGuards.size||(i.updateGuards=y.updateGuards))),b&&i&&(!y||!lM(i,y)||!w)&&(i.enterCallbacks[O]||[]).forEach(a=>a(b))},{flush:"post"}),()=>{const b=P.value,i=t.name,O=n.value,w=O&&O.components[i];if(!w)return vhe(o.default,{Component:w,route:b});const y=O.props[i],p=y?y===!0?b.params:typeof y=="function"?y(b):y:null,u=w1(w,$u({},p,e,{onVnodeUnmounted:h=>{h.component.isUnmounted&&(O.instances[i]=null)},ref:c}));return vhe(o.default,{Component:u,route:b})||u}}});function vhe(t,e){if(!t)return null;const o=t(e);return o.length===1?o[0]:o}const Uke=Vke;function jke(t){const e=gke(t.routes,t),o=t.parseQuery||Lke,f=t.stringifyQuery||dhe,P=t.history,d=LL(),l=LL(),n=LL(),c=Ai(z4);let b=z4;zA&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const i=aie.bind(null,q=>""+q),O=aie.bind(null,Rke),w=aie.bind(null,BH);function y(q,Y){let ee,me;return hve(q)?(ee=e.getRecordMatcher(q),me=Y):me=q,e.addRoute(me,ee)}function p(q){const Y=e.getRecordMatcher(q);Y&&e.removeRoute(Y)}function a(){return e.getRoutes().map(q=>q.record)}function u(q){return!!e.getRecordMatcher(q)}function h(q,Y){if(Y=$u({},Y||c.value),typeof q=="string"){const ce=sie(o,q,Y.path),de=e.resolve({path:ce.path},Y),ve=P.createHref(ce.fullPath);return $u(ce,de,{params:w(de.params),hash:BH(ce.hash),redirectedFrom:void 0,href:ve})}let ee;if("path"in q)ee=$u({},q,{path:sie(o,q.path,Y.path).path});else{const ce=$u({},q.params);for(const de in ce)ce[de]==null&&delete ce[de];ee=$u({},q,{params:O(ce)}),Y.params=O(Y.params)}const me=e.resolve(ee,Y),he=q.hash||"";me.params=i(w(me.params));const se=H5e(f,$u({},q,{hash:Mke(he),path:me.path})),ae=P.createHref(se);return $u({fullPath:se,hash:he,query:f===dhe?Ike(q.query):q.query||{}},me,{redirectedFrom:void 0,href:ae})}function m(q){return typeof q=="string"?sie(o,q,c.value.path):$u({},q)}function v(q,Y){if(b!==q)return cM(8,{from:Y,to:q})}function _(q){return x(q)}function S(q){return _($u(m(q),{replace:!0}))}function A(q){const Y=q.matched[q.matched.length-1];if(Y&&Y.redirect){const{redirect:ee}=Y;let me=typeof ee=="function"?ee(q):ee;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=m(me):{path:me},me.params={}),$u({query:q.query,hash:q.hash,params:"path"in me?{}:q.params},me)}}function x(q,Y){const ee=b=h(q),me=c.value,he=q.state,se=q.force,ae=q.replace===!0,ce=A(ee);if(ce)return x($u(m(ce),{state:typeof ce=="object"?$u({},he,ce.state):he,force:se,replace:ae}),Y||ee);const de=ee;de.redirectedFrom=Y;let ve;return!se&&Z5e(f,me,ee)&&(ve=cM(16,{to:de,from:me}),U(me,me,!0,!1)),(ve?Promise.resolve(ve):T(de,me)).catch(ye=>yO(ye)?yO(ye,2)?ye:j(ye):$(ye,de,me)).then(ye=>{if(ye){if(yO(ye,2))return x($u({replace:ae},m(ye.to),{state:typeof ye.to=="object"?$u({},he,ye.to.state):he,force:se}),Y||de)}else ye=C(de,me,!0,ae,he);return E(de,me,ye),ye})}function R(q,Y){const ee=v(q,Y);return ee?Promise.reject(ee):Promise.resolve()}function M(q){const Y=W.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(q):q()}function T(q,Y){let ee;const[me,he,se]=Qke(q,Y);ee=lie(me.reverse(),"beforeRouteLeave",q,Y);for(const ce of me)ce.leaveGuards.forEach(de=>{ee.push(U4(de,q,Y))});const ae=R.bind(null,q,Y);return ee.push(ae),oe(ee).then(()=>{ee=[];for(const ce of d.list())ee.push(U4(ce,q,Y));return ee.push(ae),oe(ee)}).then(()=>{ee=lie(he,"beforeRouteUpdate",q,Y);for(const ce of he)ce.updateGuards.forEach(de=>{ee.push(U4(de,q,Y))});return ee.push(ae),oe(ee)}).then(()=>{ee=[];for(const ce of se)if(ce.beforeEnter)if(bx(ce.beforeEnter))for(const de of ce.beforeEnter)ee.push(U4(de,q,Y));else ee.push(U4(ce.beforeEnter,q,Y));return ee.push(ae),oe(ee)}).then(()=>(q.matched.forEach(ce=>ce.enterCallbacks={}),ee=lie(se,"beforeRouteEnter",q,Y),ee.push(ae),oe(ee))).then(()=>{ee=[];for(const ce of l.list())ee.push(U4(ce,q,Y));return ee.push(ae),oe(ee)}).catch(ce=>yO(ce,8)?ce:Promise.reject(ce))}function E(q,Y,ee){n.list().forEach(me=>M(()=>me(q,Y,ee)))}function C(q,Y,ee,me,he){const se=v(q,Y);if(se)return se;const ae=Y===z4,ce=zA?history.state:{};ee&&(me||ae?P.replace(q.fullPath,$u({scroll:ae&&ce&&ce.scroll},he)):P.push(q.fullPath,he)),c.value=q,U(q,Y,ee,ae),j()}let L;function D(){L||(L=P.listen((q,Y,ee)=>{if(!K.listening)return;const me=h(q),he=A(me);if(he){x($u(he,{replace:!0}),me).catch(aI);return}b=me;const se=c.value;zA&&eke(ohe(se.fullPath,ee.delta),qZ()),T(me,se).catch(ae=>yO(ae,12)?ae:yO(ae,2)?(x(ae.to,me).then(ce=>{yO(ce,20)&&!ee.delta&&ee.type===AI.pop&&P.go(-1,!1)}).catch(aI),Promise.reject()):(ee.delta&&P.go(-ee.delta,!1),$(ae,me,se))).then(ae=>{ae=ae||C(me,se,!1),ae&&(ee.delta&&!yO(ae,8)?P.go(-ee.delta,!1):ee.type===AI.pop&&yO(ae,20)&&P.go(-1,!1)),E(me,se,ae)}).catch(aI)}))}let k=LL(),I=LL(),z;function $(q,Y,ee){j(q);const me=I.list();return me.length?me.forEach(he=>he(q,Y,ee)):console.error(q),Promise.reject(q)}function Q(){return z&&c.value!==z4?Promise.resolve():new Promise((q,Y)=>{k.add([q,Y])})}function j(q){return z||(z=!q,D(),k.list().forEach(([Y,ee])=>q?ee(q):Y()),k.reset()),q}function U(q,Y,ee,me){const{scrollBehavior:he}=t;if(!zA||!he)return Promise.resolve();const se=!ee&&tke(ohe(q.fullPath,0))||(me||!ee)&&history.state&&history.state.scroll||null;return lc().then(()=>he(q,Y,se)).then(ae=>ae&&J5e(ae)).catch(ae=>$(ae,q,Y))}const X=q=>P.go(q);let te;const W=new Set,K={currentRoute:c,listening:!0,addRoute:y,removeRoute:p,hasRoute:u,getRoutes:a,resolve:h,options:t,push:_,replace:S,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:d.add,beforeResolve:l.add,afterEach:n.add,onError:I.add,isReady:Q,install(q){const Y=this;q.component("RouterLink",Fke),q.component("RouterView",Uke),q.config.globalProperties.$router=Y,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>wa(c)}),zA&&!te&&c.value===z4&&(te=!0,_(P.location).catch(he=>{}));const ee={};for(const he in z4)Object.defineProperty(ee,he,{get:()=>c.value[he],enumerable:!0});q.provide(Xle,Y),q.provide(Gle,w1e(ee)),q.provide(Pae,c);const me=q.unmount;W.add(q),q.unmount=function(){W.delete(q),W.size<1&&(b=z4,L&&L(),L=null,c.value=z4,te=!1,z=!1),me()}}};function oe(q){return q.reduce((Y,ee)=>Y.then(()=>M(ee)),Promise.resolve())}return K}function Qke(t,e){const o=[],f=[],P=[],d=Math.max(e.matched.length,t.matched.length);for(let l=0;llM(b,n))?f.push(n):o.push(n));const c=t.matched[l];c&&(e.matched.find(b=>lM(b,c))||P.push(c))}return[o,f,P]}function _T(){return yl(Gle)}function Hke(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _ve={exports:{}};(function(t,e){/*! For license information please see plotly.min.js.LICENSE.txt */(function(o,f){t.exports=f()})(self,function(){return function(){var o={79288:function(d,l,n){var c=n(3400),b={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in b){var O=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");c.addStyleRule(O,b[i])}},86712:function(d,l,n){d.exports=n(84224)},37240:function(d,l,n){d.exports=n(51132)},29744:function(d,l,n){d.exports=n(94456)},29352:function(d,l,n){d.exports=n(67244)},96144:function(d,l,n){d.exports=n(97776)},53219:function(d,l,n){d.exports=n(61712)},4624:function(d,l,n){d.exports=n(95856)},54543:function(d,l,n){d.exports=n(54272)},45e3:function(d,l,n){d.exports=n(85404)},62300:function(d,l,n){d.exports=n(26048)},6920:function(d,l,n){d.exports=n(66240)},10264:function(d,l,n){d.exports=n(40448)},32016:function(d,l,n){d.exports=n(64884)},27528:function(d,l,n){d.exports=n(15088)},75556:function(d,l,n){d.exports=n(76744)},39204:function(d,l,n){d.exports=n(94704)},73996:function(d,l,n){d.exports=n(62396)},16489:function(d,l,n){d.exports=n(32028)},5e3:function(d,l,n){d.exports=n(81932)},77280:function(d,l,n){d.exports=n(45536)},33992:function(d,l,n){d.exports=n(42600)},17600:function(d,l,n){d.exports=n(21536)},49116:function(d,l,n){d.exports=n(65664)},46808:function(d,l,n){d.exports=n(29044)},36168:function(d,l,n){d.exports=n(48928)},13792:function(d,l,n){var c=n(32016);c.register([n(37240),n(29352),n(5e3),n(33992),n(17600),n(49116),n(6920),n(67484),n(79440),n(39204),n(83096),n(36168),n(20260),n(63560),n(65832),n(46808),n(73996),n(48824),n(89904),n(25120),n(13752),n(4340),n(62300),n(29800),n(8363),n(54543),n(86636),n(42192),n(32140),n(77280),n(89296),n(56816),n(70192),n(45e3),n(27528),n(84764),n(3920),n(50248),n(4624),n(69967),n(10264),n(86152),n(53219),n(81604),n(63796),n(29744),n(89336),n(86712),n(75556),n(16489),n(97312),n(96144)]),d.exports=c},3920:function(d,l,n){d.exports=n(43480)},25120:function(d,l,n){d.exports=n(6296)},4340:function(d,l,n){d.exports=n(7404)},86152:function(d,l,n){d.exports=n(65456)},56816:function(d,l,n){d.exports=n(22020)},89296:function(d,l,n){d.exports=n(29928)},20260:function(d,l,n){d.exports=n(75792)},32140:function(d,l,n){d.exports=n(156)},84764:function(d,l,n){d.exports=n(45499)},48824:function(d,l,n){d.exports=n(3296)},69967:function(d,l,n){d.exports=n(4184)},8363:function(d,l,n){d.exports=n(36952)},86636:function(d,l,n){d.exports=n(38983)},70192:function(d,l,n){d.exports=n(11572)},81604:function(d,l,n){d.exports=n(76924)},63796:function(d,l,n){d.exports=n(62944)},89336:function(d,l,n){d.exports=n(95443)},67484:function(d,l,n){d.exports=n(34864)},97312:function(d,l,n){d.exports=n(76272)},42192:function(d,l,n){d.exports=n(97924)},29800:function(d,l,n){d.exports=n(15436)},63560:function(d,l,n){d.exports=n(5621)},89904:function(d,l,n){d.exports=n(91304)},50248:function(d,l,n){d.exports=n(41724)},65832:function(d,l,n){d.exports=n(31991)},79440:function(d,l,n){d.exports=n(22869)},13752:function(d,l,n){d.exports=n(67776)},83096:function(d,l,n){d.exports=n(95952)},72196:function(d){d.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(d,l,n){var c=n(72196),b=n(25376),i=n(33816),O=n(31780).templatedArray;n(36208),d.exports=O("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:c.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:c.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:b({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(d,l,n){var c=n(3400),b=n(54460),i=n(23816).draw;function O(y){var p=y._fullLayout;c.filterVisible(p.annotations).forEach(function(a){var u=b.getFromId(y,a.xref),h=b.getFromId(y,a.yref),m=b.getRefType(a.xref),v=b.getRefType(a.yref);a._extremes={},m==="range"&&w(a,u),v==="range"&&w(a,h)})}function w(y,p){var a,u=p._id,h=u.charAt(0),m=y[h],v=y["a"+h],_=y[h+"ref"],S=y["a"+h+"ref"],A=y["_"+h+"padplus"],x=y["_"+h+"padminus"],R={x:1,y:-1}[h]*y[h+"shift"],M=3*y.arrowsize*y.arrowwidth||0,T=M+R,E=M-R,C=3*y.startarrowsize*y.arrowwidth||0,L=C+R,D=C-R;if(S===_){var k=b.findExtremes(p,[p.r2c(m)],{ppadplus:T,ppadminus:E}),I=b.findExtremes(p,[p.r2c(v)],{ppadplus:Math.max(A,L),ppadminus:Math.max(x,D)});a={min:[k.min[0],I.min[0]],max:[k.max[0],I.max[0]]}}else L=v?L+v:L,D=v?D-v:D,a=b.findExtremes(p,[p.r2c(m)],{ppadplus:Math.max(A,T,L),ppadminus:Math.max(x,E,D)});y._extremes[u]=a}d.exports=function(y){var p=y._fullLayout;if(c.filterVisible(p.annotations).length&&y._fullData.length)return c.syncOrAsync([i,O],y)}},42300:function(d,l,n){var c=n(3400),b=n(24040),i=n(31780).arrayEditor;function O(y,p){var a,u,h,m,v,_,S,A=y._fullLayout.annotations,x=[],R=[],M=[],T=(p||[]).length;for(a=0;a0||a.explicitOff.length>0},onClick:function(y,p){var a,u,h=O(y,p),m=h.on,v=h.off.concat(h.explicitOff),_={},S=y._fullLayout.annotations;if(m.length||v.length){for(a=0;a.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Qt]}for(var tt=!1,Ee=["x","y"],Ne=0;Ne1)&&(Dt===wt?((mn=It.r2fraction(T["a"+pt]))<0||mn>1)&&(tt=!0):tt=!0),je=It._offset+It.r2p(T[pt]),Ge=.5}else{var vt=bn==="domain";pt==="x"?(ot=T[pt],je=vt?It._offset+It._length*ot:je=$.l+$.w*ot):(ot=1-T[pt],je=vt?It._offset+It._length*ot:je=$.t+$.h*ot),Ge=T.showarrow?.5:ot}if(T.showarrow){gn.head=je;var bt=T["a"+pt];if(ht=en*Xe(.5,T.xanchor)-Gt*Xe(.5,T.yanchor),Dt===wt){var lt=y.getRefType(Dt);lt==="domain"?(pt==="y"&&(bt=1-bt),gn.tail=It._offset+It._length*bt):lt==="paper"?pt==="y"?(bt=1-bt,gn.tail=$.t+$.h*bt):gn.tail=$.l+$.w*bt:gn.tail=It._offset+It.r2p(bt),nt=ht}else gn.tail=je+bt,nt=ht+bt;gn.text=gn.tail+ht;var yt=z[pt==="x"?"width":"height"];if(wt==="paper"&&(gn.head=O.constrain(gn.head,1,yt-1)),Dt==="pixel"){var zt=-Math.max(gn.tail-3,gn.text),Rt=Math.min(gn.tail+3,gn.text)-yt;zt>0?(gn.tail+=zt,gn.text+=zt):Rt>0&&(gn.tail-=Rt,gn.text-=Rt)}gn.tail+=nn,gn.head+=nn}else nt=ht=Ct*Xe(Ge,_t),gn.text=je+ht;gn.text+=nn,ht+=nn,nt+=nn,T["_"+pt+"padplus"]=Ct/2+nt,T["_"+pt+"padminus"]=Ct/2-nt,T["_"+pt+"size"]=Ct,T["_"+pt+"shift"]=ht}if(tt)he.remove();else{var it=0,at=0;if(T.align!=="left"&&(it=(Le-Oe)*(T.align==="center"?.5:1)),T.valign!=="top"&&(at=(We-ke)*(T.valign==="middle"?.5:1)),Ve)He.select("svg").attr({x:ce+it-1,y:ce+at}).call(a.setClipUrl,ve?W:null,M);else{var Lt=ce+at-$e.top,xt=ce+it-$e.left;Te.call(h.positionText,xt,Lt).call(a.setClipUrl,ve?W:null,M)}ye.select("rect").call(a.setRect,ce,ce,Le,We),de.call(a.setRect,se/2,se/2,Ue-se,Ze-se),he.call(a.setTranslate,Math.round(K.x.text-Ue/2),Math.round(K.y.text-Ze/2)),Y.attr({transform:"rotate("+oe+","+K.x.text+","+K.y.text+")"});var Zt,Xt=function(Yt,Qt){q.selectAll(".annotation-arrow-g").remove();var Pt=K.x.head,tn=K.y.head,Kt=K.x.tail+Yt,fn=K.y.tail+Qt,dn=K.x.text+Yt,vn=K.y.text+Qt,Nn=O.rotationXYMatrix(oe,dn,vn),er=O.apply2DTransform(Nn),En=O.apply2DTransform2(Nn),In=+de.attr("width"),jn=+de.attr("height"),xr=dn-.5*In,Sr=xr+In,ar=vn-.5*jn,Fn=ar+jn,ir=[[xr,ar,xr,Fn],[xr,Fn,Sr,Fn],[Sr,Fn,Sr,ar],[Sr,ar,xr,ar]].map(En);if(!ir.reduce(function(So,go){return So^!!O.segmentsIntersect(Pt,tn,Pt+1e6,tn+1e6,go[0],go[1],go[2],go[3])},!1)){ir.forEach(function(So){var go=O.segmentsIntersect(Kt,fn,Pt,tn,So[0],So[1],So[2],So[3]);go&&(Kt=go.x,fn=go.y)});var Wn=T.arrowwidth,Kn=T.arrowcolor,_r=T.arrowside,Ir=q.append("g").style({opacity:p.opacity(Kn)}).classed("annotation-arrow-g",!0),zr=Ir.append("path").attr("d","M"+Kt+","+fn+"L"+Pt+","+tn).style("stroke-width",Wn+"px").call(p.stroke,p.rgb(Kn));if(S(zr,_r,T),Q.annotationPosition&&zr.node().parentNode&&!C){var Fr=Pt,Rr=tn;if(T.standoff){var $r=Math.sqrt(Math.pow(Pt-Kt,2)+Math.pow(tn-fn,2));Fr+=T.standoff*(Kt-Pt)/$r,Rr+=T.standoff*(fn-tn)/$r}var Kr,Co,so=Ir.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Kt-Fr)+","+(fn-Rr),transform:w(Fr,Rr)}).style("stroke-width",Wn+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");v.init({element:so.node(),gd:M,prepFn:function(){var So=a.getTranslate(he);Kr=So.x,Co=So.y,L&&L.autorange&&U(L._name+".autorange",!0),D&&D.autorange&&U(D._name+".autorange",!0)},moveFn:function(So,go){var li=er(Kr,Co),Pn=li[0]+So,Yn=li[1]+go;he.call(a.setTranslate,Pn,Yn),X("x",x(L,So,"x",$,T)),X("y",x(D,go,"y",$,T)),T.axref===T.xref&&X("ax",x(L,So,"ax",$,T)),T.ayref===T.yref&&X("ay",x(D,go,"ay",$,T)),Ir.attr("transform",w(So,go)),Y.attr({transform:"rotate("+oe+","+Pn+","+Yn+")"})},doneFn:function(){b.call("_guiRelayout",M,te());var So=document.querySelector(".js-notes-box-panel");So&&So.redraw(So.selectedObj)}})}}};T.showarrow&&Xt(0,0),ee&&v.init({element:he.node(),gd:M,prepFn:function(){Zt=Y.attr("transform")},moveFn:function(Yt,Qt){var Pt="pointer";if(T.showarrow)T.axref===T.xref?X("ax",x(L,Yt,"ax",$,T)):X("ax",T.ax+Yt),T.ayref===T.yref?X("ay",x(D,Qt,"ay",$.w,T)):X("ay",T.ay+Qt),Xt(Yt,Qt);else{if(C)return;var tn,Kt;if(L)tn=x(L,Yt,"x",$,T);else{var fn=T._xsize/$.w,dn=T.x+(T._xshift-T.xshift)/$.w-fn/2;tn=v.align(dn+Yt/$.w,fn,0,1,T.xanchor)}if(D)Kt=x(D,Qt,"y",$,T);else{var vn=T._ysize/$.h,Nn=T.y-(T._yshift+T.yshift)/$.h-vn/2;Kt=v.align(Nn-Qt/$.h,vn,0,1,T.yanchor)}X("x",tn),X("y",Kt),L&&D||(Pt=v.getCursor(L?.5:tn,D?.5:Kt,T.xanchor,T.yanchor))}Y.attr({transform:w(Yt,Qt)+Zt}),m(he,Pt)},clickFn:function(Yt,Qt){T.captureevents&&M.emit("plotly_clickannotation",Pe(Qt))},doneFn:function(){m(he),b.call("_guiRelayout",M,te());var Yt=document.querySelector(".js-notes-box-panel");Yt&&Yt.redraw(Yt.selectedObj)}})}}}d.exports={draw:function(M){var T=M._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var E=0;E=0,C=u.indexOf("end")>=0,L=x.backoff*M+h.standoff,D=R.backoff*T+h.startstandoff;if(A.nodeName==="line"){m={x:+a.attr("x1"),y:+a.attr("y1")},v={x:+a.attr("x2"),y:+a.attr("y2")};var k=m.x-v.x,I=m.y-v.y;if(S=(_=Math.atan2(I,k))+Math.PI,L&&D&&L+D>Math.sqrt(k*k+I*I))return void q();if(L){if(L*L>k*k+I*I)return void q();var z=L*Math.cos(_),$=L*Math.sin(_);v.x+=z,v.y+=$,a.attr({x2:v.x,y2:v.y})}if(D){if(D*D>k*k+I*I)return void q();var Q=D*Math.cos(_),j=D*Math.sin(_);m.x-=Q,m.y-=j,a.attr({x1:m.x,y1:m.y})}}else if(A.nodeName==="path"){var U=A.getTotalLength(),X="";if(U1){h=!0;break}}h?O.fullLayout._infolayer.select(".annotation-"+O.id+'[data-index="'+a+'"]').remove():(u._pdata=b(O.glplot.cameraParams,[w.xaxis.r2l(u.x)*y[0],w.yaxis.r2l(u.y)*y[1],w.zaxis.r2l(u.z)*y[2]]),c(O.graphDiv,u,a,O.id,u._xa,u._ya))}}},56864:function(d,l,n){var c=n(24040),b=n(3400);d.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(45899)}}},layoutAttributes:n(45899),handleDefaults:n(52808),includeBasePlot:function(i,O){var w=c.subplotsRegistry.gl3d;if(w)for(var y=w.attrRegex,p=Object.keys(i),a=0;a=0)))return u;if(S===3)v[S]>1&&(v[S]=1);else if(v[S]>=1)return u}var A=Math.round(255*v[0])+", "+Math.round(255*v[1])+", "+Math.round(255*v[2]);return _?"rgba("+A+", "+v[3]+")":"rgb("+A+")"}O.tinyRGB=function(u){var h=u.toRgb();return"rgb("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+")"},O.rgb=function(u){return O.tinyRGB(c(u))},O.opacity=function(u){return u?c(u).getAlpha():0},O.addOpacity=function(u,h){var m=c(u).toRgb();return"rgba("+Math.round(m.r)+", "+Math.round(m.g)+", "+Math.round(m.b)+", "+h+")"},O.combine=function(u,h){var m=c(u).toRgb();if(m.a===1)return c(u).toRgbString();var v=c(h||p).toRgb(),_=v.a===1?v:{r:255*(1-v.a)+v.r*v.a,g:255*(1-v.a)+v.g*v.a,b:255*(1-v.a)+v.b*v.a},S={r:_.r*(1-m.a)+m.r*m.a,g:_.g*(1-m.a)+m.g*m.a,b:_.b*(1-m.a)+m.b*m.a};return c(S).toRgbString()},O.contrast=function(u,h,m){var v=c(u);return v.getAlpha()!==1&&(v=c(O.combine(u,p))),(v.isDark()?h?v.lighten(h):p:m?v.darken(m):y).toString()},O.stroke=function(u,h){var m=c(h);u.style({stroke:O.tinyRGB(m),"stroke-opacity":m.getAlpha()})},O.fill=function(u,h){var m=c(h);u.style({fill:O.tinyRGB(m),"fill-opacity":m.getAlpha()})},O.clean=function(u){if(u&&typeof u=="object"){var h,m,v,_,S=Object.keys(u);for(h=0;h0?Rt>=Zt:Rt<=Zt));it++)Rt>Yt&&Rt0?Rt>=Zt:Rt<=Zt));it++)Rt>zt[0]&&Rt1){var Gt=Math.pow(10,Math.floor(Math.log(en)/Math.LN10));It*=Gt*p.roundUp(en/Gt,[2,5,10]),(Math.abs(Oe.start)/Oe.size+1e-6)%1<2e-6&&(wt.tick0=0)}wt.dtick=It}wt.domain=te?[ht+ce/Te.h,ht+tt-ce/Te.h]:[ht+ae/Te.w,ht+tt-ae/Te.w],wt.setScale(),j.attr("transform",a(Math.round(Te.l),Math.round(Te.t)));var Ct,_t=j.select("."+D.cbtitleunshift).attr("transform",a(-Math.round(Te.l),-Math.round(Te.t))),nn=wt.ticklabelposition,gn=wt.title.font.size,bn=j.select("."+D.cbaxis),mn=0,vt=0;function bt(lt,yt){var zt={propContainer:wt,propName:U._propPrefix+"title",traceIndex:U._traceIndex,_meta:U._meta,placeholder:Se._dfltTitle.colorbar,containerGroup:j.select("."+D.cbtitle)},Rt=lt.charAt(0)==="h"?lt.substr(1):"h"+lt;j.selectAll("."+Rt+",."+Rt+"-math-group").remove(),_.draw(X,lt,u(zt,yt||{}))}return p.syncOrAsync([i.previousPromises,function(){var lt,yt;(te&&Dt||!te&&!Dt)&&(De==="top"&&(lt=ae+Te.l+Ee*de,yt=ce+Te.t+Ne*(1-ht-tt)+3+.75*gn),De==="bottom"&&(lt=ae+Te.l+Ee*de,yt=ce+Te.t+Ne*(1-ht)-3-.25*gn),De==="right"&&(yt=ce+Te.t+Ne*ve+3+.75*gn,lt=ae+Te.l+Ee*ht),bt(wt._id+"title",{attributes:{x:lt,y:yt,"text-anchor":te?"start":"middle"}}))},function(){if(!te&&!Dt||te&&Dt){var lt,yt=j.select("."+D.cbtitle),zt=yt.select("text"),Rt=[-Y/2,Y/2],it=yt.select(".h"+wt._id+"title-math-group").node(),at=15.6;if(zt.node()&&(at=parseInt(zt.node().style.fontSize,10)*E),it?(lt=m.bBox(it),vt=lt.width,(mn=lt.height)>at&&(Rt[1]-=(mn-at)/2)):zt.node()&&!zt.classed(D.jsPlaceholder)&&(lt=m.bBox(zt.node()),vt=lt.width,mn=lt.height),te){if(mn){if(mn+=5,De==="top")wt.domain[1]-=mn/Te.h,Rt[1]*=-1;else{wt.domain[0]+=mn/Te.h;var Lt=S.lineCount(zt);Rt[1]+=(1-Lt)*at}yt.attr("transform",a(Rt[0],Rt[1])),wt.setScale()}}else vt&&(De==="right"&&(wt.domain[0]+=(vt+gn/2)/Te.w),yt.attr("transform",a(Rt[0],Rt[1])),wt.setScale())}j.selectAll("."+D.cbfills+",."+D.cblines).attr("transform",te?a(0,Math.round(Te.h*(1-wt.domain[1]))):a(Math.round(Te.w*wt.domain[0]),0)),bn.attr("transform",te?a(0,Math.round(-Te.t)):a(Math.round(-Te.l),0));var xt=j.select("."+D.cbfills).selectAll("rect."+D.cbfill).attr("style","").data(Le);xt.enter().append("rect").classed(D.cbfill,!0).attr("style",""),xt.exit().remove();var Zt=He.map(wt.c2p).map(Math.round).sort(function(tn,Kt){return tn-Kt});xt.each(function(tn,Kt){var fn=[Kt===0?He[0]:(Le[Kt]+Le[Kt-1])/2,Kt===Le.length-1?He[1]:(Le[Kt]+Le[Kt+1])/2].map(wt.c2p).map(Math.round);te&&(fn[1]=p.constrain(fn[1]+(fn[1]>fn[0])?1:-1,Zt[0],Zt[1]));var dn=c.select(this).attr(te?"x":"y",je).attr(te?"y":"x",c.min(fn)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(c.max(fn)-c.min(fn),2));if(U._fillgradient)m.gradient(dn,X,U._id,te?"vertical":"horizontalreversed",U._fillgradient,"fill");else{var vn=$e(tn).replace("e-","");dn.attr("fill",b(vn).toHexString())}});var Xt=j.select("."+D.cblines).selectAll("path."+D.cbline).data(Ie.color&&Ie.width?We:[]);Xt.enter().append("path").classed(D.cbline,!0),Xt.exit().remove(),Xt.each(function(tn){var Kt=je,fn=Math.round(wt.c2p(tn))+Ie.width/2%1;c.select(this).attr("d","M"+(te?Kt+","+fn:fn+","+Kt)+(te?"h":"v")+Ue).call(m.lineGroupStyle,Ie.width,Ve(tn),Ie.dash)}),bn.selectAll("g."+wt._id+"tick,path").remove();var Yt=je+Ue+(Y||0)/2-(U.ticks==="outside"?1:0),Qt=w.calcTicks(wt),Pt=w.getTickSigns(wt)[2];return w.drawTicks(X,wt,{vals:wt.ticks==="inside"?w.clipEnds(wt,Qt):Qt,layer:bn,path:w.makeTickPath(wt,Yt,Pt),transFn:w.makeTransTickFn(wt)}),w.drawLabels(X,wt,{vals:Qt,layer:bn,transFn:w.makeTransTickLabelFn(wt),labelFns:w.makeLabelFns(wt,Yt)})},function(){if(te&&!Dt||!te&&Dt){var lt,yt,zt=wt.position||0,Rt=wt._offset+wt._length/2;if(De==="right")yt=Rt,lt=Te.l+Ee*zt+10+gn*(wt.showticklabels?1:.5);else if(lt=Rt,De==="bottom"&&(yt=Te.t+Ne*zt+10+(nn.indexOf("inside")===-1?wt.tickfont.size:0)+(wt.ticks!=="intside"&&U.ticklen||0)),De==="top"){var it=ze.text.split("
    ").length;yt=Te.t+Ne*zt+10-Ue-E*gn*it}bt((te?"h":"v")+wt._id+"title",{avoid:{selection:c.select(X).selectAll("g."+wt._id+"tick"),side:De,offsetTop:te?0:Te.t,offsetLeft:te?Te.l:0,maxShift:te?Se.width:Se.height},attributes:{x:lt,y:yt,"text-anchor":"middle"},transform:{rotate:te?-90:0,offset:0}})}},i.previousPromises,function(){var lt,yt=Ue+Y/2;nn.indexOf("inside")===-1&&(lt=m.bBox(bn.node()),yt+=te?lt.width:lt.height),Ct=_t.select("text");var zt=0,Rt=te&&De==="top",it=!te&&De==="right",at=0;if(Ct.node()&&!Ct.classed(D.jsPlaceholder)){var Lt,xt=_t.select(".h"+wt._id+"title-math-group").node();xt&&(te&&Dt||!te&&!Dt)?(zt=(lt=m.bBox(xt)).width,Lt=lt.height):(zt=(lt=m.bBox(_t.node())).right-Te.l-(te?je:pt),Lt=lt.bottom-Te.t-(te?pt:je),te||De!=="top"||(yt+=lt.height,at=lt.height)),it&&(Ct.attr("transform",a(zt/2+gn/2,0)),zt*=2),yt=Math.max(yt,te?zt:Lt)}var Zt=2*(te?ae:ce)+yt+ee+Y/2,Xt=0;!te&&ze.text&&se==="bottom"&&ve<=0&&(Zt+=Xt=Zt/2,at+=Xt),Se._hColorbarMoveTitle=Xt,Se._hColorbarMoveCBTitle=at;var Yt=ee+Y,Qt=(te?je:pt)-Yt/2-(te?ae:0),Pt=(te?pt:je)-(te?Xe:ce+at-Xt);j.select("."+D.cbbg).attr("x",Qt).attr("y",Pt).attr(te?"width":"height",Math.max(Zt-Xt,2)).attr(te?"height":"width",Math.max(Xe+Yt,2)).call(v.fill,me).call(v.stroke,U.bordercolor).style("stroke-width",ee);var tn=it?Math.max(zt-10,0):0;j.selectAll("."+D.cboutline).attr("x",(te?je:pt+ae)+tn).attr("y",(te?pt+ce-Xe:je)+(Rt?mn:0)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(Xe-(te?2*ce+mn:2*ae+tn),2)).call(v.stroke,U.outlinecolor).style({fill:"none","stroke-width":Y});var Kt=te?nt*Zt:0,fn=te?0:(1-ot)*Zt-at;if(Kt=_e?Te.l-Kt:-Kt,fn=ye?Te.t-fn:-fn,j.attr("transform",a(Kt,fn)),!te&&(ee||b(me).getAlpha()&&!b.equals(Se.paper_bgcolor,me))){var dn=bn.selectAll("text"),vn=dn[0].length,Nn=j.select("."+D.cbbg).node(),er=m.bBox(Nn),En=m.getTranslate(j);dn.each(function(_r,Ir){var zr=vn-1;if(Ir===0||Ir===zr){var Fr,Rr=m.bBox(this),$r=m.getTranslate(this);if(Ir===zr){var Kr=Rr.right+$r.x;(Fr=er.right+En.x+pt-ee-2+de-Kr)>0&&(Fr=0)}else if(Ir===0){var Co=Rr.left+$r.x;(Fr=er.left+En.x+pt+ee+2-Co)<0&&(Fr=0)}Fr&&(vn<3?this.setAttribute("transform","translate("+Fr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var In={},jn=C[he],xr=L[he],Sr=C[se],ar=L[se],Fn=Zt-Ue;te?(K==="pixels"?(In.y=ve,In.t=Xe*Sr,In.b=Xe*ar):(In.t=In.b=0,In.yt=ve+W*Sr,In.yb=ve-W*ar),q==="pixels"?(In.x=de,In.l=Zt*jn,In.r=Zt*xr):(In.l=Fn*jn,In.r=Fn*xr,In.xl=de-oe*jn,In.xr=de+oe*xr)):(K==="pixels"?(In.x=de,In.l=Xe*jn,In.r=Xe*xr):(In.l=In.r=0,In.xl=de+W*jn,In.xr=de-W*xr),q==="pixels"?(In.y=1-ve,In.t=Zt*Sr,In.b=Zt*ar):(In.t=Fn*Sr,In.b=Fn*ar,In.yt=ve-oe*Sr,In.yb=ve+oe*ar));var ir=U.y<.5?"b":"t",Wn=U.x<.5?"l":"r";X._fullLayout._reservedMargin[U._id]={};var Kn={r:Se.width-Qt-Kt,l:Qt+In.r,b:Se.height-Pt-fn,t:Pt+In.b};_e&&ye?i.autoMargin(X,U._id,In):_e?X._fullLayout._reservedMargin[U._id][ir]=Kn[ir]:ye||te?X._fullLayout._reservedMargin[U._id][Wn]=Kn[Wn]:X._fullLayout._reservedMargin[U._id][ir]=Kn[ir]}],X)}($,z,k);Q&&Q.then&&(k._promises||[]).push(Q),k._context.edits.colorbarPosition&&function(j,U,X){var te,W,K,oe=U.orientation==="v",q=X._fullLayout._size;y.init({element:j.node(),gd:X,prepFn:function(){te=j.attr("transform"),h(j)},moveFn:function(Y,ee){j.attr("transform",te+a(Y,ee)),W=y.align((oe?U._uFrac:U._vFrac)+Y/q.w,oe?U._thickFrac:U._lenFrac,0,1,U.xanchor),K=y.align((oe?U._vFrac:1-U._uFrac)-ee/q.h,oe?U._lenFrac:U._thickFrac,0,1,U.yanchor);var me=y.getCursor(W,K,U.xanchor,U.yanchor);h(j,me)},doneFn:function(){if(h(j),W!==void 0&&K!==void 0){var Y={};Y[U._propPrefix+"x"]=W,Y[U._propPrefix+"y"]=K,U._traceIndex!==void 0?O.call("_guiRestyle",X,Y,U._traceIndex):O.call("_guiRelayout",X,Y)}}})}($,z,k)}),I.exit().each(function(z){i.autoMargin(k,z._id)}).remove(),I.order()}}},90553:function(d,l,n){var c=n(3400);d.exports=function(b){return c.isPlainObject(b.colorbar)}},55080:function(d,l,n){d.exports={moduleType:"component",name:"colorbar",attributes:n(42996),supplyDefaults:n(64013),draw:n(37848).draw,hasColorbar:n(90553)}},49084:function(d,l,n){var c=n(42996),b=n(53756).counter,i=n(95376),O=n(88304).scales;function w(y){return"`"+y+"`"}i(O),d.exports=function(y,p){y=y||"";var a,u=(p=p||{}).cLetter||"c",h=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:y==="marker.line"),m="showScaleDflt"in p?p.showScaleDflt:u==="z",v=typeof p.colorscaleDflt=="string"?O[p.colorscaleDflt]:null,_=p.editTypeOverride||"",S=y?y+".":"";"colorAttr"in p?(a=p.colorAttr,p.colorAttr):w(S+(a={z:"z",c:"color"}[u]));var A=u+"auto",x=u+"min",R=u+"max",M=u+"mid",T={};T[x]=T[R]=void 0;var E={};E[A]=!1;var C={};return a==="color"&&(C.color={valType:"color",arrayOk:!0,editType:_||"style"},p.anim&&(C.color.anim=!0)),C[A]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},C[x]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:E},C[R]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:E},C[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},C.colorscale={valType:"colorscale",editType:"calc",dflt:v,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},h||(C.showscale={valType:"boolean",dflt:m,editType:"calc"},C.colorbar=c),p.noColorAxis||(C.coloraxis={valType:"subplotid",regex:b("coloraxis"),dflt:null,editType:"calc"}),C}},47128:function(d,l,n){var c=n(38248),b=n(3400),i=n(94288).extractOpts;d.exports=function(O,w,y){var p,a=O._fullLayout,u=y.vals,h=y.containerStr,m=h?b.nestedProperty(w,h).get():w,v=i(m),_=v.auto!==!1,S=v.min,A=v.max,x=v.mid,R=function(){return b.aggNums(Math.min,null,u)},M=function(){return b.aggNums(Math.max,null,u)};S===void 0?S=R():_&&(S=m._colorAx&&c(S)?Math.min(S,R()):R()),A===void 0?A=M():_&&(A=m._colorAx&&c(A)?Math.max(A,M()):M()),_&&x!==void 0&&(A-x>x-S?S=x-(A-x):A-x=0?a.colorscale.sequential:a.colorscale.sequentialminus,v._sync("colorscale",p))}},95504:function(d,l,n){var c=n(3400),b=n(94288).hasColorscale,i=n(94288).extractOpts;d.exports=function(O,w){function y(_,S){var A=_["_"+S];A!==void 0&&(_[S]=A)}function p(_,S){var A=S.container?c.nestedProperty(_,S.container).get():_;if(A)if(A.coloraxis)A._colorAx=w[A.coloraxis];else{var x=i(A),R=x.auto;(R||x.min===void 0)&&y(A,S.min),(R||x.max===void 0)&&y(A,S.max),x.autocolorscale&&y(A,"colorscale")}}for(var a=0;a=0;R--,M++){var T=S[R];x[M]=[1-T[0],T[1]]}return x}function v(S,A){A=A||{};for(var x=S.domain,R=S.range,M=R.length,T=new Array(M),E=0;E1.3333333333333333-y?w:y}},67416:function(d,l,n){var c=n(3400),b=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];d.exports=function(i,O,w,y){return i=w==="left"?0:w==="center"?1:w==="right"?2:c.constrain(Math.floor(3*i),0,2),O=y==="bottom"?0:y==="middle"?1:y==="top"?2:c.constrain(Math.floor(3*O),0,2),b[O][i]}},72760:function(d,l){l.selectMode=function(n){return n==="lasso"||n==="select"},l.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},l.openMode=function(n){return n==="drawline"||n==="drawopenpath"},l.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},l.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},l.selectingOrDrawing=function(n){return l.freeMode(n)||l.rectMode(n)}},86476:function(d,l,n){var c=n(29128),b=n(52264),i=n(89184),O=n(3400).removeElement,w=n(33816),y=d.exports={};y.align=n(78316),y.getCursor=n(67416);var p=n(2616);function a(){var h=document.createElement("div");h.className="dragcover";var m=h.style;return m.position="fixed",m.left=0,m.right=0,m.top=0,m.bottom=0,m.zIndex=999999999,m.background="none",document.body.appendChild(h),h}function u(h){return c(h.changedTouches?h.changedTouches[0]:h,document.body)}y.unhover=p.wrapped,y.unhoverRaw=p.raw,y.init=function(h){var m,v,_,S,A,x,R,M,T=h.gd,E=1,C=T._context.doubleClickDelay,L=h.element;T._mouseDownTime||(T._mouseDownTime=0),L.style.pointerEvents="all",L.onmousedown=k,i?(L._ontouchstart&&L.removeEventListener("touchstart",L._ontouchstart),L._ontouchstart=k,L.addEventListener("touchstart",k,{passive:!1})):L.ontouchstart=k;var D=h.clampFn||function($,Q,j){return Math.abs($)C&&(E=Math.max(E-1,1)),T._dragged)h.doneFn&&h.doneFn();else if(h.clickFn&&h.clickFn(E,x),!M){var Q;try{Q=new MouseEvent("click",$)}catch{var j=u($);(Q=document.createEvent("MouseEvents")).initMouseEvent("click",$.bubbles,$.cancelable,$.view,$.detail,$.screenX,$.screenY,j[0],j[1],$.ctrlKey,$.altKey,$.shiftKey,$.metaKey,$.button,$.relatedTarget)}R.dispatchEvent(Q)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},y.coverSlip=a},2616:function(d,l,n){var c=n(95924),b=n(91200),i=n(52200).getGraphDiv,O=n(92456),w=d.exports={};w.wrapped=function(y,p,a){(y=i(y))._fullLayout&&b.clear(y._fullLayout._uid+O.HOVERID),w.raw(y,p,a)},w.raw=function(y,p){var a=y._fullLayout,u=y._hoverdata;p||(p={}),p.target&&!y._dragged&&c.triggerHandler(y,"plotly_beforehover",p)===!1||(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),y._hoverdata=void 0,p.target&&u&&y.emit("plotly_unhover",{event:p,points:u}))}},98192:function(d,l){l.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},l.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(d,l,n){var c=n(33428),b=n(3400),i=b.numberFormat,O=n(38248),w=n(49760),y=n(24040),p=n(76308),a=n(8932),u=b.strTranslate,h=n(72736),m=n(9616),v=n(84284).LINE_SPACING,_=n(13448).DESELECTDIM,S=n(43028),A=n(7152),x=n(10624).appendArrayPointValue,R=d.exports={};function M(Ve,$e,Oe){var ke=$e.fillpattern,Le=ke&&R.getPatternAttr(ke.shape,0,"");if(Le){var We=R.getPatternAttr(ke.bgcolor,0,null),Ue=R.getPatternAttr(ke.fgcolor,0,null),Ze=ke.fgopacity,Xe=R.getPatternAttr(ke.size,0,8),tt=R.getPatternAttr(ke.solidity,0,.3),Ee=$e.uid;R.pattern(Ve,"point",Oe,Ee,Le,Xe,tt,void 0,ke.fillmode,We,Ue,Ze)}else $e.fillcolor&&Ve.call(p.fill,$e.fillcolor)}R.font=function(Ve,$e,Oe,ke){b.isPlainObject($e)&&(ke=$e.color,Oe=$e.size,$e=$e.family),$e&&Ve.style("font-family",$e),Oe+1&&Ve.style("font-size",Oe+"px"),ke&&Ve.call(p.fill,ke)},R.setPosition=function(Ve,$e,Oe){Ve.attr("x",$e).attr("y",Oe)},R.setSize=function(Ve,$e,Oe){Ve.attr("width",$e).attr("height",Oe)},R.setRect=function(Ve,$e,Oe,ke,Le){Ve.call(R.setPosition,$e,Oe).call(R.setSize,ke,Le)},R.translatePoint=function(Ve,$e,Oe,ke){var Le=Oe.c2p(Ve.x),We=ke.c2p(Ve.y);return!!(O(Le)&&O(We)&&$e.node())&&($e.node().nodeName==="text"?$e.attr("x",Le).attr("y",We):$e.attr("transform",u(Le,We)),!0)},R.translatePoints=function(Ve,$e,Oe){Ve.each(function(ke){var Le=c.select(this);R.translatePoint(ke,Le,$e,Oe)})},R.hideOutsideRangePoint=function(Ve,$e,Oe,ke,Le,We){$e.attr("display",Oe.isPtWithinRange(Ve,Le)&&ke.isPtWithinRange(Ve,We)?null:"none")},R.hideOutsideRangePoints=function(Ve,$e){if($e._hasClipOnAxisFalse){var Oe=$e.xaxis,ke=$e.yaxis;Ve.each(function(Le){var We=Le[0].trace,Ue=We.xcalendar,Ze=We.ycalendar,Xe=y.traceIs(We,"bar-like")?".bartext":".point,.textpoint";Ve.selectAll(Xe).each(function(tt){R.hideOutsideRangePoint(tt,c.select(this),Oe,ke,Ue,Ze)})})}},R.crispRound=function(Ve,$e,Oe){return $e&&O($e)?Ve._context.staticPlot?$e:$e<1?1:Math.round($e):Oe||0},R.singleLineStyle=function(Ve,$e,Oe,ke,Le){$e.style("fill","none");var We=(((Ve||[])[0]||{}).trace||{}).line||{},Ue=Oe||We.width||0,Ze=Le||We.dash||"";p.stroke($e,ke||We.color),R.dashLine($e,Ze,Ue)},R.lineGroupStyle=function(Ve,$e,Oe,ke){Ve.style("fill","none").each(function(Le){var We=(((Le||[])[0]||{}).trace||{}).line||{},Ue=$e||We.width||0,Ze=ke||We.dash||"";c.select(this).call(p.stroke,Oe||We.color).call(R.dashLine,Ze,Ue)})},R.dashLine=function(Ve,$e,Oe){Oe=+Oe||0,$e=R.dashStyle($e,Oe),Ve.style({"stroke-dasharray":$e,"stroke-width":Oe+"px"})},R.dashStyle=function(Ve,$e){$e=+$e||1;var Oe=Math.max($e,3);return Ve==="solid"?Ve="":Ve==="dot"?Ve=Oe+"px,"+Oe+"px":Ve==="dash"?Ve=3*Oe+"px,"+3*Oe+"px":Ve==="longdash"?Ve=5*Oe+"px,"+5*Oe+"px":Ve==="dashdot"?Ve=3*Oe+"px,"+Oe+"px,"+Oe+"px,"+Oe+"px":Ve==="longdashdot"&&(Ve=5*Oe+"px,"+2*Oe+"px,"+Oe+"px,"+2*Oe+"px"),Ve},R.singleFillStyle=function(Ve,$e){var Oe=c.select(Ve.node());M(Ve,((Oe.data()[0]||[])[0]||{}).trace||{},$e)},R.fillGroupStyle=function(Ve,$e){Ve.style("stroke-width",0).each(function(Oe){var ke=c.select(this);Oe[0].trace&&M(ke,Oe[0].trace,$e)})};var T=n(71984);R.symbolNames=[],R.symbolFuncs=[],R.symbolBackOffs=[],R.symbolNeedLines={},R.symbolNoDot={},R.symbolNoFill={},R.symbolList=[],Object.keys(T).forEach(function(Ve){var $e=T[Ve],Oe=$e.n;R.symbolList.push(Oe,String(Oe),Ve,Oe+100,String(Oe+100),Ve+"-open"),R.symbolNames[Oe]=Ve,R.symbolFuncs[Oe]=$e.f,R.symbolBackOffs[Oe]=$e.backoff||0,$e.needLine&&(R.symbolNeedLines[Oe]=!0),$e.noDot?R.symbolNoDot[Oe]=!0:R.symbolList.push(Oe+200,String(Oe+200),Ve+"-dot",Oe+300,String(Oe+300),Ve+"-open-dot"),$e.noFill&&(R.symbolNoFill[Oe]=!0)});var E=R.symbolNames.length;function C(Ve,$e,Oe,ke){var Le=Ve%100;return R.symbolFuncs[Le]($e,Oe,ke)+(Ve>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}R.symbolNumber=function(Ve){if(O(Ve))Ve=+Ve;else if(typeof Ve=="string"){var $e=0;Ve.indexOf("-open")>0&&($e=100,Ve=Ve.replace("-open","")),Ve.indexOf("-dot")>0&&($e+=200,Ve=Ve.replace("-dot","")),(Ve=R.symbolNames.indexOf(Ve))>=0&&(Ve+=$e)}return Ve%100>=E||Ve>=400?0:Math.floor(Math.max(Ve,0))};var L={x1:1,x2:0,y1:0,y2:0},D={x1:0,x2:0,y1:1,y2:0},k=i("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:L},horizontalreversed:{node:"linearGradient",attrs:L,reversed:!0},vertical:{node:"linearGradient",attrs:D},verticalreversed:{node:"linearGradient",attrs:D,reversed:!0}};R.gradient=function(Ve,$e,Oe,ke,Le,We){for(var Ue=Le.length,Ze=I[ke],Xe=new Array(Ue),tt=0;tt=0&&Ve.i===void 0&&(Ve.i=We.i),$e.style("opacity",ke.selectedOpacityFn?ke.selectedOpacityFn(Ve):Ve.mo===void 0?Ue.opacity:Ve.mo),ke.ms2mrc){var Xe;Xe=Ve.ms==="various"||Ue.size==="various"?3:ke.ms2mrc(Ve.ms),Ve.mrc=Xe,ke.selectedSizeFn&&(Xe=Ve.mrc=ke.selectedSizeFn(Ve));var tt=R.symbolNumber(Ve.mx||Ue.symbol)||0;Ve.om=tt%200>=100;var Ee=He(Ve,Oe),Ne=ce(Ve,Oe);$e.attr("d",C(tt,Xe,Ee,Ne))}var je,nt,ot,Ge=!1;if(Ve.so)ot=Ze.outlierwidth,nt=Ze.outliercolor,je=Ue.outliercolor;else{var ht=(Ze||{}).width;ot=(Ve.mlw+1||ht+1||(Ve.trace?(Ve.trace.marker.line||{}).width:0)+1)-1||0,nt="mlc"in Ve?Ve.mlcc=ke.lineScale(Ve.mlc):b.isArrayOrTypedArray(Ze.color)?p.defaultLine:Ze.color,b.isArrayOrTypedArray(Ue.color)&&(je=p.defaultLine,Ge=!0),je="mc"in Ve?Ve.mcc=ke.markerScale(Ve.mc):Ue.color||Ue.colors||"rgba(0,0,0,0)",ke.selectedColorFn&&(je=ke.selectedColorFn(Ve))}if(Ve.om)$e.call(p.stroke,je).style({"stroke-width":(ot||1)+"px",fill:"none"});else{$e.style("stroke-width",(Ve.isBlank?0:ot)+"px");var pt=Ue.gradient,wt=Ve.mgt;wt?Ge=!0:wt=pt&&pt.type,b.isArrayOrTypedArray(wt)&&(wt=wt[0],I[wt]||(wt=0));var Dt=Ue.pattern,It=Dt&&R.getPatternAttr(Dt.shape,Ve.i,"");if(wt&&wt!=="none"){var qt=Ve.mgc;qt?Ge=!0:qt=pt.color;var en=Oe.uid;Ge&&(en+="-"+Ve.i),R.gradient($e,Le,en,wt,[[0,qt],[1,je]],"fill")}else if(It){var Gt=!1,Ct=Dt.fgcolor;!Ct&&We&&We.color&&(Ct=We.color,Gt=!0);var _t=R.getPatternAttr(Ct,Ve.i,We&&We.color||null),nn=R.getPatternAttr(Dt.bgcolor,Ve.i,null),gn=Dt.fgopacity,bn=R.getPatternAttr(Dt.size,Ve.i,8),mn=R.getPatternAttr(Dt.solidity,Ve.i,.3);Gt=Gt||Ve.mcc||b.isArrayOrTypedArray(Dt.shape)||b.isArrayOrTypedArray(Dt.bgcolor)||b.isArrayOrTypedArray(Dt.fgcolor)||b.isArrayOrTypedArray(Dt.size)||b.isArrayOrTypedArray(Dt.solidity);var vt=Oe.uid;Gt&&(vt+="-"+Ve.i),R.pattern($e,"point",Le,vt,It,bn,mn,Ve.mcc,Dt.fillmode,nn,_t,gn)}else b.isArrayOrTypedArray(je)?p.fill($e,je[Ve.i]):p.fill($e,je);ot&&p.stroke($e,nt)}},R.makePointStyleFns=function(Ve){var $e={},Oe=Ve.marker;return $e.markerScale=R.tryColorscale(Oe,""),$e.lineScale=R.tryColorscale(Oe,"line"),y.traceIs(Ve,"symbols")&&($e.ms2mrc=S.isBubble(Ve)?A(Ve):function(){return(Oe.size||6)/2}),Ve.selectedpoints&&b.extendFlat($e,R.makeSelectedPointStyleFns(Ve)),$e},R.makeSelectedPointStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Le=Ve.marker||{},We=Oe.marker||{},Ue=ke.marker||{},Ze=Le.opacity,Xe=We.opacity,tt=Ue.opacity,Ee=Xe!==void 0,Ne=tt!==void 0;(b.isArrayOrTypedArray(Ze)||Ee||Ne)&&($e.selectedOpacityFn=function(It){var qt=It.mo===void 0?Le.opacity:It.mo;return It.selected?Ee?Xe:qt:Ne?tt:_*qt});var je=Le.color,nt=We.color,ot=Ue.color;(nt||ot)&&($e.selectedColorFn=function(It){var qt=It.mcc||je;return It.selected?nt||qt:ot||qt});var Ge=Le.size,ht=We.size,pt=Ue.size,wt=ht!==void 0,Dt=pt!==void 0;return y.traceIs(Ve,"symbols")&&(wt||Dt)&&($e.selectedSizeFn=function(It){var qt=It.mrc||Ge/2;return It.selected?wt?ht/2:qt:Dt?pt/2:qt}),$e},R.makeSelectedTextStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Le=Ve.textfont||{},We=Oe.textfont||{},Ue=ke.textfont||{},Ze=Le.color,Xe=We.color,tt=Ue.color;return $e.selectedTextColorFn=function(Ee){var Ne=Ee.tc||Ze;return Ee.selected?Xe||Ne:tt||(Xe?Ne:p.addOpacity(Ne,_))},$e},R.selectedPointStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedPointStyleFns($e),ke=$e.marker||{},Le=[];Oe.selectedOpacityFn&&Le.push(function(We,Ue){We.style("opacity",Oe.selectedOpacityFn(Ue))}),Oe.selectedColorFn&&Le.push(function(We,Ue){p.fill(We,Oe.selectedColorFn(Ue))}),Oe.selectedSizeFn&&Le.push(function(We,Ue){var Ze=Ue.mx||ke.symbol||0,Xe=Oe.selectedSizeFn(Ue);We.attr("d",C(R.symbolNumber(Ze),Xe,He(Ue,$e),ce(Ue,$e))),Ue.mrc2=Xe}),Le.length&&Ve.each(function(We){for(var Ue=c.select(this),Ze=0;Ze0?Oe:0}function X(Ve,$e,Oe){return Oe&&(Ve=Y(Ve)),$e?W(Ve[1]):te(Ve[0])}function te(Ve){var $e=c.round(Ve,2);return z=$e,$e}function W(Ve){var $e=c.round(Ve,2);return $=$e,$e}function K(Ve,$e,Oe,ke){var Le=Ve[0]-$e[0],We=Ve[1]-$e[1],Ue=Oe[0]-$e[0],Ze=Oe[1]-$e[1],Xe=Math.pow(Le*Le+We*We,.25),tt=Math.pow(Ue*Ue+Ze*Ze,.25),Ee=(tt*tt*Le-Xe*Xe*Ue)*ke,Ne=(tt*tt*We-Xe*Xe*Ze)*ke,je=3*tt*(Xe+tt),nt=3*Xe*(Xe+tt);return[[te($e[0]+(je&&Ee/je)),W($e[1]+(je&&Ne/je))],[te($e[0]-(nt&&Ee/nt)),W($e[1]-(nt&&Ne/nt))]]}R.textPointStyle=function(Ve,$e,Oe){if(Ve.size()){var ke;if($e.selectedpoints){var Le=R.makeSelectedTextStyleFns($e);ke=Le.selectedTextColorFn}var We=$e.texttemplate,Ue=Oe._fullLayout;Ve.each(function(Ze){var Xe=c.select(this),tt=We?b.extractOption(Ze,$e,"txt","texttemplate"):b.extractOption(Ze,$e,"tx","text");if(tt||tt===0){if(We){var Ee=$e._module.formatLabels,Ne=Ee?Ee(Ze,$e,Ue):{},je={};x(je,$e,Ze.i);var nt=$e._meta||{};tt=b.texttemplateString(tt,Ne,Ue._d3locale,je,Ze,nt)}var ot=Ze.tp||$e.textposition,Ge=U(Ze,$e),ht=ke?ke(Ze):Ze.tc||$e.textfont.color;Xe.call(R.font,Ze.tf||$e.textfont.family,Ge,ht).text(tt).call(h.convertToTspans,Oe).call(j,ot,Ge,Ze.mrc)}else Xe.remove()})}},R.selectedTextStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedTextStyleFns($e);Ve.each(function(ke){var Le=c.select(this),We=Oe.selectedTextColorFn(ke),Ue=ke.tp||$e.textposition,Ze=U(ke,$e);p.fill(Le,We);var Xe=y.traceIs($e,"bar-like");j(Le,Ue,Ze,ke.mrc2||ke.mrc,Xe)})}},R.smoothopen=function(Ve,$e){if(Ve.length<3)return"M"+Ve.join("L");var Oe,ke="M"+Ve[0],Le=[];for(Oe=1;Oe=Xe||It>=Ee&&It<=Xe)&&(qt<=Ne&&qt>=tt||qt>=Ne&&qt<=tt)&&(Ve=[It,qt])}return Ve}R.steps=function(Ve){var $e=oe[Ve]||q;return function(Oe){for(var ke="M"+te(Oe[0][0])+","+W(Oe[0][1]),Le=Oe.length,We=1;We=1e4&&(R.savedBBoxes={},ee=0),Oe&&(R.savedBBoxes[Oe]=nt),ee++,b.extendFlat({},nt)},R.setClipUrl=function(Ve,$e,Oe){Ve.attr("clip-path",he($e,Oe))},R.getTranslate=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(Oe,ke,Le){return[ke,Le].join(" ")}).split(" ");return{x:+$e[0]||0,y:+$e[1]||0}},R.setTranslate=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Le=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||0,Oe=Oe||0,We=We.replace(/(\btranslate\(.*?\);?)/,"").trim(),We=(We+=u($e,Oe)).trim(),Ve[Le]("transform",We),We},R.getScale=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(Oe,ke,Le){return[ke,Le].join(" ")}).split(" ");return{x:+$e[0]||1,y:+$e[1]||1}},R.setScale=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Le=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||1,Oe=Oe||1,We=We.replace(/(\bscale\(.*?\);?)/,"").trim(),We=(We+="scale("+$e+","+Oe+")").trim(),Ve[Le]("transform",We),We};var se=/\s*sc.*/;R.setPointGroupScale=function(Ve,$e,Oe){if($e=$e||1,Oe=Oe||1,Ve){var ke=$e===1&&Oe===1?"":"scale("+$e+","+Oe+")";Ve.each(function(){var Le=(this.getAttribute("transform")||"").replace(se,"");Le=(Le+=ke).trim(),this.setAttribute("transform",Le)})}};var ae=/translate\([^)]*\)\s*$/;function ce(Ve,$e){var Oe;return Ve&&(Oe=Ve.mf),Oe===void 0&&(Oe=$e.marker&&$e.marker.standoff||0),$e._geo||$e._xA?Oe:-Oe}R.setTextPointsScale=function(Ve,$e,Oe){Ve&&Ve.each(function(){var ke,Le=c.select(this),We=Le.select("text");if(We.node()){var Ue=parseFloat(We.attr("x")||0),Ze=parseFloat(We.attr("y")||0),Xe=(Le.attr("transform")||"").match(ae);ke=$e===1&&Oe===1?[]:[u(Ue,Ze),"scale("+$e+","+Oe+")",u(-Ue,-Ze)],Xe&&ke.push(Xe),Le.attr("transform",ke.join(""))}})},R.getMarkerStandoff=ce;var de,ve,ye,_e,Se,Te,Pe=Math.atan2,Ie=Math.cos,ze=Math.sin;function De(Ve,$e){var Oe=$e[0],ke=$e[1];return[Oe*Ie(Ve)-ke*ze(Ve),Oe*ze(Ve)+ke*Ie(Ve)]}function He(Ve,$e){var Oe,ke,Le=Ve.ma;Le===void 0&&((Le=$e.marker.angle)&&!b.isArrayOrTypedArray(Le)||(Le=0));var We=$e.marker.angleref;if(We==="previous"||We==="north"){if($e._geo){var Ue=$e._geo.project(Ve.lonlat);Oe=Ue[0],ke=Ue[1]}else{var Ze=$e._xA,Xe=$e._yA;if(!Ze||!Xe)return 90;Oe=Ze.c2p(Ve.x),ke=Xe.c2p(Ve.y)}if($e._geo){var tt,Ee=Ve.lonlat[0],Ne=Ve.lonlat[1],je=$e._geo.project([Ee,Ne+1e-5]),nt=$e._geo.project([Ee+1e-5,Ne]),ot=Pe(nt[1]-ke,nt[0]-Oe),Ge=Pe(je[1]-ke,je[0]-Oe);if(We==="north")tt=Le/180*Math.PI;else if(We==="previous"){var ht=Ee/180*Math.PI,pt=Ne/180*Math.PI,wt=de/180*Math.PI,Dt=ve/180*Math.PI,It=wt-ht,qt=Ie(Dt)*ze(It),en=ze(Dt)*Ie(pt)-Ie(Dt)*ze(pt)*Ie(It);tt=-Pe(qt,en)-Math.PI,de=Ee,ve=Ne}var Gt=De(ot,[Ie(tt),0]),Ct=De(Ge,[ze(tt),0]);Le=Pe(Gt[1]+Ct[1],Gt[0]+Ct[0])/Math.PI*180,We!=="previous"||Te===$e.uid&&Ve.i===Se+1||(Le=null)}if(We==="previous"&&!$e._geo)if(Te===$e.uid&&Ve.i===Se+1&&O(Oe)&&O(ke)){var _t=Oe-ye,nn=ke-_e,gn=$e.line&&$e.line.shape||"",bn=gn.slice(gn.length-1);bn==="h"&&(nn=0),bn==="v"&&(_t=0),Le+=Pe(nn,_t)/Math.PI*180+90}else Le=null}return ye=Oe,_e=ke,Se=Ve.i,Te=$e.uid,Le}R.getMarkerAngle=He},71984:function(d,l,n){var c,b,i,O,w=n(21984),y=n(33428).round,p="M0,0Z",a=Math.sqrt(2),u=Math.sqrt(3),h=Math.PI,m=Math.cos,v=Math.sin;function _(A){return A===null}function S(A,x,R){if(!(A&&A%360!=0||x))return R;if(i===A&&O===x&&c===R)return b;function M(X,te){var W=m(X),K=v(X),oe=te[0],q=te[1]+(x||0);return[oe*W-q*K,oe*K+q*W]}i=A,O=x,c=R;for(var T=A/180*h,E=0,C=0,L=w(R),D="",k=0;k0,v=w._context.staticPlot;y.each(function(_){var S,A=_[0].trace,x=A.error_x||{},R=A.error_y||{};A.ids&&(S=function(C){return C.id});var M=O.hasMarkers(A)&&A.marker.maxdisplayed>0;R.visible||x.visible||(_=[]);var T=c.select(this).selectAll("g.errorbar").data(_,S);if(T.exit().remove(),_.length){x.visible||T.selectAll("path.xerror").remove(),R.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var E=T.enter().append("g").classed("errorbar",!0);m&&E.style("opacity",0).transition().duration(a.duration).style("opacity",1),i.setClipUrl(T,p.layerClipId,w),T.each(function(C){var L=c.select(this),D=function(j,U,X){var te={x:U.c2p(j.x),y:X.c2p(j.y)};return j.yh!==void 0&&(te.yh=X.c2p(j.yh),te.ys=X.c2p(j.ys),b(te.ys)||(te.noYS=!0,te.ys=X.c2p(j.ys,!0))),j.xh!==void 0&&(te.xh=U.c2p(j.xh),te.xs=U.c2p(j.xs),b(te.xs)||(te.noXS=!0,te.xs=U.c2p(j.xs,!0))),te}(C,u,h);if(!M||C.vis){var k,I=L.select("path.yerror");if(R.visible&&b(D.x)&&b(D.yh)&&b(D.ys)){var z=R.width;k="M"+(D.x-z)+","+D.yh+"h"+2*z+"m-"+z+",0V"+D.ys,D.noYS||(k+="m-"+z+",0h"+2*z),I.size()?m&&(I=I.transition().duration(a.duration).ease(a.easing)):I=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",k)}else I.remove();var $=L.select("path.xerror");if(x.visible&&b(D.y)&&b(D.xh)&&b(D.xs)){var Q=(x.copy_ystyle?R:x).width;k="M"+D.xh+","+(D.y-Q)+"v"+2*Q+"m0,-"+Q+"H"+D.xs,D.noXS||(k+="m0,-"+Q+"v"+2*Q),$.size()?m&&($=$.transition().duration(a.duration).ease(a.easing)):$=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0),$.attr("d",k)}else $.remove()}})}})}},92036:function(d,l,n){var c=n(33428),b=n(76308);d.exports=function(i){i.each(function(O){var w=O[0].trace,y=w.error_y||{},p=w.error_x||{},a=c.select(this);a.selectAll("path.yerror").style("stroke-width",y.thickness+"px").call(b.stroke,y.color),p.copy_ystyle&&(p=y),a.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(b.stroke,p.color)})}},55756:function(d,l,n){var c=n(25376),b=n(65460).hoverlabel,i=n(92880).extendFlat;d.exports={hoverlabel:{bgcolor:i({},b.bgcolor,{arrayOk:!0}),bordercolor:i({},b.bordercolor,{arrayOk:!0}),font:c({arrayOk:!0,editType:"none"}),align:i({},b.align,{arrayOk:!0}),namelength:i({},b.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(d,l,n){var c=n(3400),b=n(24040);function i(O,w,y,p){p=p||c.identity,Array.isArray(O)&&(w[0][y]=p(O))}d.exports=function(O){var w=O.calcdata,y=O._fullLayout;function p(v){return function(_){return c.coerceHoverinfo({hoverinfo:_},{_module:v._module},y)}}for(var a=0;a=0&&u.indexLe[0]._length||bt<0||bt>We[0]._length)return v.unhoverRaw(_e,Se)}else vt="xpx"in Se?Se.xpx:Le[0]._length/2,bt="ypx"in Se?Se.ypx:We[0]._length/2;if(Se.pointerX=vt+Le[0]._offset,Se.pointerY=bt+We[0]._offset,nt="xval"in Se?A.flat(ze,Se.xval):A.p2c(Le,vt),ot="yval"in Se?A.flat(ze,Se.yval):A.p2c(We,bt),!b(nt[0])||!b(ot[0]))return O.warn("Fx.hover failed",Se,_e),v.unhoverRaw(_e,Se)}var zt=1/0;function Rt(Pn,Yn){for(ht=0;ht_t&&(nn.splice(0,_t),zt=nn[0].distance),$e&&je!==0&&nn.length===0){Ct.distance=je,Ct.index=!1;var Qr=wt._module.hoverPoints(Ct,en,Gt,"closest",{hoverLayer:De._hoverlayer});if(Qr&&(Qr=Qr.filter(function(zn){return zn.spikeDistance<=je})),Qr&&Qr.length){var Wr,bo=Qr.filter(function(zn){return zn.xa.showspikes&&zn.xa.spikesnap!=="hovered data"});if(bo.length){var Bn=bo[0];b(Bn.x0)&&b(Bn.y0)&&(Wr=at(Bn),(!bn.vLinePoint||bn.vLinePoint.spikeDistance>Wr.spikeDistance)&&(bn.vLinePoint=Wr))}var hr=Qr.filter(function(zn){return zn.ya.showspikes&&zn.ya.spikesnap!=="hovered data"});if(hr.length){var hn=hr[0];b(hn.x0)&&b(hn.y0)&&(Wr=at(hn),(!bn.hLinePoint||bn.hLinePoint.spikeDistance>Wr.spikeDistance)&&(bn.hLinePoint=Wr))}}}}}function it(Pn,Yn,br){for(var dr,Cr=null,io=1/0,Qr=0;Qr0&&Math.abs(Pn.distance)dn-1;vn--)In(nn[vn]);nn=Nn,Xt()}var jn=_e._hoverdata,xr=[],Sr=me(_e),ar=he(_e);for(Ge=0;Ge1||nn.length>1)||Ee==="closest"&&mn&&nn.length>1,so=m.combine(De.plot_bgcolor||m.background,De.paper_bgcolor),So=U(nn,{gd:_e,hovermode:Ee,rotateLabels:Co,bgColor:so,container:De._hoverlayer,outerContainer:De._paper.node(),commonLabelOpts:De.hoverlabel,hoverdistance:De.hoverdistance}),go=So.hoverLabels;if(A.isUnifiedHover(Ee)||(function(Pn,Yn,br,dr){var Cr,io,Qr,Wr,bo,Bn,hr,hn=Yn?"xa":"ya",zn=Yn?"ya":"xa",Zn=0,yr=1,gr=Pn.size(),vr=new Array(gr),nr=0,Qn=dr.minX,Hn=dr.maxX,tr=dr.minY,cr=dr.maxY,Lr=function(po){return po*br._invScaleX},Er=function(po){return po*br._invScaleY};function Vr(po){var qo=po[0],Ao=po[po.length-1];if(io=qo.pmin-qo.pos-qo.dp+qo.size,Qr=Ao.pos+Ao.dp+Ao.size-qo.pmax,io>.01){for(bo=po.length-1;bo>=0;bo--)po[bo].dp+=io;Cr=!1}if(!(Qr<.01)){if(io<-.01){for(bo=po.length-1;bo>=0;bo--)po[bo].dp-=Qr;Cr=!1}if(Cr){var oi=0;for(Wr=0;Wrqo.pmax&&oi++;for(Wr=po.length-1;Wr>=0&&!(oi<=0);Wr--)(Bn=po[Wr]).pos>qo.pmax-1&&(Bn.del=!0,oi--);for(Wr=0;Wr=0;bo--)po[bo].dp-=Qr;for(Wr=po.length-1;Wr>=0&&!(oi<=0);Wr--)(Bn=po[Wr]).pos+Bn.dp+Bn.size>qo.pmax&&(Bn.del=!0,oi--)}}}for(Pn.each(function(po){var qo=po[hn],Ao=po[zn],oi=qo._id.charAt(0)==="x",ko=qo.range;nr===0&&ko&&ko[0]>ko[1]!==oi&&(yr=-1);var ra=0,mo=oi?br.width:br.height;if(br.hovermode==="x"||br.hovermode==="y"){var Aa,Xl,Na=te(po,Yn),us=po.anchor,wc=us==="end"?-1:1;if(us==="middle")Xl=(Aa=po.crossPos+(oi?Er(Na.y-po.by/2):Lr(po.bx/2+po.tx2width/2)))+(oi?Er(po.by):Lr(po.bx));else if(oi)Xl=(Aa=po.crossPos+Er(k+Na.y)-Er(po.by/2-k))+Er(po.by);else{var ga=Lr(wc*k+Na.x),Ku=ga+Lr(wc*po.bx);Aa=po.crossPos+Math.min(ga,Ku),Xl=po.crossPos+Math.max(ga,Ku)}oi?tr!==void 0&&cr!==void 0&&Math.min(Xl,cr)-Math.max(Aa,tr)>1&&(Ao.side==="left"?(ra=Ao._mainLinePosition,mo=br.width):mo=Ao._mainLinePosition):Qn!==void 0&&Hn!==void 0&&Math.min(Xl,Hn)-Math.max(Aa,Qn)>1&&(Ao.side==="top"?(ra=Ao._mainLinePosition,mo=br.height):mo=Ao._mainLinePosition)}vr[nr++]=[{datum:po,traceIndex:po.trace.index,dp:0,pos:po.pos,posref:po.posref,size:po.by*(oi?C:1)/2,pmin:ra,pmax:mo}]}),vr.sort(function(po,qo){return po[0].posref-qo[0].posref||yr*(qo[0].traceIndex-po[0].traceIndex)});!Cr&&Zn<=gr;){for(Zn++,Cr=!0,Wr=0;Wr.01&&fr.pmin===Eo.pmin&&fr.pmax===Eo.pmax){for(bo=_o.length-1;bo>=0;bo--)_o[bo].dp+=io;for(to.push.apply(to,_o),vr.splice(Wr+1,1),hr=0,bo=to.length-1;bo>=0;bo--)hr+=to[bo].dp;for(Qr=hr/to.length,bo=to.length-1;bo>=0;bo--)to[bo].dp-=Qr;Cr=!1}else Wr++}vr.forEach(Vr)}for(Wr=vr.length-1;Wr>=0;Wr--){var ao=vr[Wr];for(bo=ao.length-1;bo>=0;bo--){var co=ao[bo],Go=co.datum;Go.offset=co.dp,Go.del=co.del}}}(go,Co,De,So.commonLabelBoundingBox),W(go,Co,De._invScaleX,De._invScaleY)),Ie&&Ie.tagName){var li=S.getComponentMethod("annotations","hasClickToShow")(_e,xr);u(c.select(Ie),li?"pointer":"")}Ie&&!Pe&&function(Pn,Yn,br){if(!br||br.length!==Pn._hoverdata.length)return!0;for(var dr=br.length-1;dr>=0;dr--){var Cr=br[dr],io=Pn._hoverdata[dr];if(Cr.curveNumber!==io.curveNumber||String(Cr.pointNumber)!==String(io.pointNumber)||String(Cr.pointNumbers)!==String(io.pointNumbers))return!0}return!1}(_e,0,jn)&&(jn&&_e.emit("plotly_unhover",{event:Se,points:jn}),_e.emit("plotly_hover",{event:Se,points:_e._hoverdata,xaxes:Le,yaxes:We,xvals:nt,yvals:ot}))})(ae,ce,de,ve,ye)})},l.loneHover=function(ae,ce){var de=!0;Array.isArray(ae)||(de=!1,ae=[ae]);var ve=ce.gd,ye=me(ve),_e=he(ve),Se=U(ae.map(function(Ie){var ze=Ie._x0||Ie.x0||Ie.x||0,De=Ie._x1||Ie.x1||Ie.x||0,He=Ie._y0||Ie.y0||Ie.y||0,Ve=Ie._y1||Ie.y1||Ie.y||0,$e=Ie.eventData;if($e){var Oe=Math.min(ze,De),ke=Math.max(ze,De),Le=Math.min(He,Ve),We=Math.max(He,Ve),Ue=Ie.trace;if(S.traceIs(Ue,"gl3d")){var Ze=ve._fullLayout[Ue.scene]._scene.container,Xe=Ze.offsetLeft,tt=Ze.offsetTop;Oe+=Xe,ke+=Xe,Le+=tt,We+=tt}$e.bbox={x0:Oe+_e,x1:ke+_e,y0:Le+ye,y1:We+ye},ce.inOut_bbox&&ce.inOut_bbox.push($e.bbox)}else $e=!1;return{color:Ie.color||m.defaultLine,x0:Ie.x0||Ie.x||0,x1:Ie.x1||Ie.x||0,y0:Ie.y0||Ie.y||0,y1:Ie.y1||Ie.y||0,xLabel:Ie.xLabel,yLabel:Ie.yLabel,zLabel:Ie.zLabel,text:Ie.text,name:Ie.name,idealAlign:Ie.idealAlign,borderColor:Ie.borderColor,fontFamily:Ie.fontFamily,fontSize:Ie.fontSize,fontColor:Ie.fontColor,nameLength:Ie.nameLength,textAlign:Ie.textAlign,trace:Ie.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Ie.hovertemplate||!1,hovertemplateLabels:Ie.hovertemplateLabels||!1,eventData:$e}}),{gd:ve,hovermode:"closest",rotateLabels:!1,bgColor:ce.bgColor||m.background,container:c.select(ce.container),outerContainer:ce.outerContainer||ce.container}).hoverLabels,Te=0,Pe=0;return Se.sort(function(Ie,ze){return Ie.y0-ze.y0}).each(function(Ie,ze){var De=Ie.y0-Ie.by/2;Ie.offset=De-5([\s\S]*)<\/extra>/;function U(ae,ce){var de=ce.gd,ve=de._fullLayout,ye=ce.hovermode,_e=ce.rotateLabels,Se=ce.bgColor,Te=ce.container,Pe=ce.outerContainer,Ie=ce.commonLabelOpts||{};if(ae.length===0)return[[]];var ze=ce.fontFamily||x.HOVERFONT,De=ce.fontSize||x.HOVERFONTSIZE,He=ae[0],Ve=He.xa,$e=He.ya,Oe=ye.charAt(0),ke=Oe+"Label",Le=He[ke];if(Le===void 0&&Ve.type==="multicategory")for(var We=0;Weve.width-ar?(In=ve.width-ar,fn.attr("d","M"+(ar-k)+",0L"+ar+","+Sr+k+"v"+Sr+(2*I+xr.height)+"H-"+ar+"V"+Sr+k+"H"+(ar-2*k)+"Z")):fn.attr("d","M0,0L"+k+","+Sr+k+"H"+ar+"v"+Sr+(2*I+xr.height)+"H-"+ar+"V"+Sr+k+"H-"+k+"Z"),ht.minX=In-ar,ht.maxX=In+ar,Ve.side==="top"?(ht.minY=jn-(2*I+xr.height),ht.maxY=jn-I):(ht.minY=jn+I,ht.maxY=jn+(2*I+xr.height))}else{var Fn,ir,Wn;$e.side==="right"?(Fn="start",ir=1,Wn="",In=Ve._offset+Ve._length):(Fn="end",ir=-1,Wn="-",In=Ve._offset),jn=$e._offset+(He.y0+He.y1)/2,dn.attr("text-anchor",Fn),fn.attr("d","M0,0L"+Wn+k+","+k+"V"+(I+xr.height/2)+"h"+Wn+(2*I+xr.width)+"V-"+(I+xr.height/2)+"H"+Wn+k+"V-"+k+"Z"),ht.minY=jn-(I+xr.height/2),ht.maxY=jn+(I+xr.height/2),$e.side==="right"?(ht.minX=In+k,ht.maxX=In+k+(2*I+xr.width)):(ht.minX=In-k-(2*I+xr.width),ht.maxX=In-k);var Kn,_r=xr.height/2,Ir=Ze-xr.top-_r,zr="clip"+ve._uid+"commonlabel"+$e._id;if(In=0?bt:lt+Rt=0?lt:Qt+Rt=0?mn:vt+it=0?vt:Pt+it=0,Kt.idealAlign!=="top"&&Kr||!Co?Kr?(_r+=zr/2,Kt.anchor="start"):Kt.anchor="middle":(_r-=zr/2,Kt.anchor="end"),Kt.crossPos=_r;else{if(Kt.pos=_r,Kr=Kn+Ir/2+so<=Xe,Co=Kn-Ir/2-so>=0,Kt.idealAlign!=="left"&&Kr||!Co)if(Kr)Kn+=Ir/2,Kt.anchor="start";else{Kt.anchor="middle";var So=so/2,go=Kn+So-Xe,li=Kn-So;go>0&&(Kn-=go),li<0&&(Kn+=-li)}else Kn-=Ir/2,Kt.anchor="end";Kt.crossPos=Kn}Sr.attr("text-anchor",Kt.anchor),Fn&&ar.attr("text-anchor",Kt.anchor),fn.attr("transform",w(Kn,_r)+(_e?y(T):""))}),{hoverLabels:tn,commonLabelBoundingBox:ht}}function X(ae,ce,de,ve,ye,_e){var Se="",Te="";ae.nameOverride!==void 0&&(ae.name=ae.nameOverride),ae.name&&(ae.trace._meta&&(ae.name=O.templateString(ae.name,ae.trace._meta)),Se=Y(ae.name,ae.nameLength));var Pe=de.charAt(0),Ie=Pe==="x"?"y":"x";ae.zLabel!==void 0?(ae.xLabel!==void 0&&(Te+="x: "+ae.xLabel+"
    "),ae.yLabel!==void 0&&(Te+="y: "+ae.yLabel+"
    "),ae.trace.type!=="choropleth"&&ae.trace.type!=="choroplethmapbox"&&(Te+=(Te?"z: ":"")+ae.zLabel)):ce&&ae[Pe+"Label"]===ye?Te=ae[Ie+"Label"]||"":ae.xLabel===void 0?ae.yLabel!==void 0&&ae.trace.type!=="scattercarpet"&&(Te=ae.yLabel):Te=ae.yLabel===void 0?ae.xLabel:"("+ae.xLabel+", "+ae.yLabel+")",!ae.text&&ae.text!==0||Array.isArray(ae.text)||(Te+=(Te?"
    ":"")+ae.text),ae.extraText!==void 0&&(Te+=(Te?"
    ":"")+ae.extraText),_e&&Te===""&&!ae.hovertemplate&&(Se===""&&_e.remove(),Te=Se);var ze=ae.hovertemplate||!1;if(ze){var De=ae.hovertemplateLabels||ae;ae[Pe+"Label"]!==ye&&(De[Pe+"other"]=De[Pe+"Val"],De[Pe+"otherLabel"]=De[Pe+"Label"]),Te=(Te=O.hovertemplateString(ze,De,ve._d3locale,ae.eventData[0]||{},ae.trace._meta)).replace(j,function(He,Ve){return Se=Y(Ve,ae.nameLength),""})}return[Te,Se]}function te(ae,ce){var de=0,ve=ae.offset;return ce&&(ve*=-D,de=ae.offset*L),{x:de,y:ve}}function W(ae,ce,de,ve){var ye=function(Se){return Se*de},_e=function(Se){return Se*ve};ae.each(function(Se){var Te=c.select(this);if(Se.del)return Te.remove();var Pe,Ie,ze,De,He=Te.select("text.nums"),Ve=Se.anchor,$e=Ve==="end"?-1:1,Oe=(De=(ze=(Ie={start:1,end:-1,middle:0}[(Pe=Se).anchor])*(k+I))+Ie*(Pe.txwidth+I),Pe.anchor==="middle"&&(ze-=Pe.tx2width/2,De+=Pe.txwidth/2+I),{alignShift:Ie,textShiftX:ze,text2ShiftX:De}),ke=te(Se,ce),Le=ke.x,We=ke.y,Ue=Ve==="middle";Te.select("path").attr("d",Ue?"M-"+ye(Se.bx/2+Se.tx2width/2)+","+_e(We-Se.by/2)+"h"+ye(Se.bx)+"v"+_e(Se.by)+"h-"+ye(Se.bx)+"Z":"M0,0L"+ye($e*k+Le)+","+_e(k+We)+"v"+_e(Se.by/2-k)+"h"+ye($e*Se.bx)+"v-"+_e(Se.by)+"H"+ye($e*k+Le)+"V"+_e(We-k)+"Z");var Ze=Le+Oe.textShiftX,Xe=We+Se.ty0-Se.by/2+I,tt=Se.textAlign||"auto";tt!=="auto"&&(tt==="left"&&Ve!=="start"?(He.attr("text-anchor","start"),Ze=Ue?-Se.bx/2-Se.tx2width/2+I:-Se.bx-I):tt==="right"&&Ve!=="end"&&(He.attr("text-anchor","end"),Ze=Ue?Se.bx/2-Se.tx2width/2-I:Se.bx+I)),He.call(a.positionText,ye(Ze),_e(Xe)),Se.tx2width&&(Te.select("text.name").call(a.positionText,ye(Oe.text2ShiftX+Oe.alignShift*I+Le),_e(We+Se.ty0-Se.by/2+I)),Te.select("rect").call(h.setRect,ye(Oe.text2ShiftX+(Oe.alignShift-1)*Se.tx2width/2+Le),_e(We-Se.by/2-1),ye(Se.tx2width),_e(Se.by+2)))})}function K(ae,ce){var de=ae.index,ve=ae.trace||{},ye=ae.cd[0],_e=ae.cd[de]||{};function Se(He){return He||b(He)&&He===0}var Te=Array.isArray(de)?function(He,Ve){var $e=O.castOption(ye,de,He);return Se($e)?$e:O.extractOption({},ve,"",Ve)}:function(He,Ve){return O.extractOption(_e,ve,He,Ve)};function Pe(He,Ve,$e){var Oe=Te(Ve,$e);Se(Oe)&&(ae[He]=Oe)}if(Pe("hoverinfo","hi","hoverinfo"),Pe("bgcolor","hbg","hoverlabel.bgcolor"),Pe("borderColor","hbc","hoverlabel.bordercolor"),Pe("fontFamily","htf","hoverlabel.font.family"),Pe("fontSize","hts","hoverlabel.font.size"),Pe("fontColor","htc","hoverlabel.font.color"),Pe("nameLength","hnl","hoverlabel.namelength"),Pe("textAlign","hta","hoverlabel.align"),ae.posref=ce==="y"||ce==="closest"&&ve.orientation==="h"?ae.xa._offset+(ae.x0+ae.x1)/2:ae.ya._offset+(ae.y0+ae.y1)/2,ae.x0=O.constrain(ae.x0,0,ae.xa._length),ae.x1=O.constrain(ae.x1,0,ae.xa._length),ae.y0=O.constrain(ae.y0,0,ae.ya._length),ae.y1=O.constrain(ae.y1,0,ae.ya._length),ae.xLabelVal!==void 0&&(ae.xLabel="xLabel"in ae?ae.xLabel:_.hoverLabelText(ae.xa,ae.xLabelVal,ve.xhoverformat),ae.xVal=ae.xa.c2d(ae.xLabelVal)),ae.yLabelVal!==void 0&&(ae.yLabel="yLabel"in ae?ae.yLabel:_.hoverLabelText(ae.ya,ae.yLabelVal,ve.yhoverformat),ae.yVal=ae.ya.c2d(ae.yLabelVal)),ae.zLabelVal!==void 0&&ae.zLabel===void 0&&(ae.zLabel=String(ae.zLabelVal)),!(isNaN(ae.xerr)||ae.xa.type==="log"&&ae.xerr<=0)){var Ie=_.tickText(ae.xa,ae.xa.c2l(ae.xerr),"hover").text;ae.xerrneg!==void 0?ae.xLabel+=" +"+Ie+" / -"+_.tickText(ae.xa,ae.xa.c2l(ae.xerrneg),"hover").text:ae.xLabel+=" ± "+Ie,ce==="x"&&(ae.distance+=1)}if(!(isNaN(ae.yerr)||ae.ya.type==="log"&&ae.yerr<=0)){var ze=_.tickText(ae.ya,ae.ya.c2l(ae.yerr),"hover").text;ae.yerrneg!==void 0?ae.yLabel+=" +"+ze+" / -"+_.tickText(ae.ya,ae.ya.c2l(ae.yerrneg),"hover").text:ae.yLabel+=" ± "+ze,ce==="y"&&(ae.distance+=1)}var De=ae.hoverinfo||ae.trace.hoverinfo;return De&&De!=="all"&&((De=Array.isArray(De)?De:De.split("+")).indexOf("x")===-1&&(ae.xLabel=void 0),De.indexOf("y")===-1&&(ae.yLabel=void 0),De.indexOf("z")===-1&&(ae.zLabel=void 0),De.indexOf("text")===-1&&(ae.text=void 0),De.indexOf("name")===-1&&(ae.name=void 0)),ae}function oe(ae,ce,de){var ve,ye,_e=de.container,Se=de.fullLayout,Te=Se._size,Pe=de.event,Ie=!!ce.hLinePoint,ze=!!ce.vLinePoint;if(_e.selectAll(".spikeline").remove(),ze||Ie){var De=m.combine(Se.plot_bgcolor,Se.paper_bgcolor);if(Ie){var He,Ve,$e=ce.hLinePoint;ve=$e&&$e.xa,(ye=$e&&$e.ya).spikesnap==="cursor"?(He=Pe.pointerX,Ve=Pe.pointerY):(He=ve._offset+$e.x,Ve=ye._offset+$e.y);var Oe,ke,Le=i.readability($e.color,De)<1.5?m.contrast(De):$e.color,We=ye.spikemode,Ue=ye.spikethickness,Ze=ye.spikecolor||Le,Xe=_.getPxPosition(ae,ye);if(We.indexOf("toaxis")!==-1||We.indexOf("across")!==-1){if(We.indexOf("toaxis")!==-1&&(Oe=Xe,ke=He),We.indexOf("across")!==-1){var tt=ye._counterDomainMin,Ee=ye._counterDomainMax;ye.anchor==="free"&&(tt=Math.min(tt,ye.position),Ee=Math.max(Ee,ye.position)),Oe=Te.l+tt*Te.w,ke=Te.l+Ee*Te.w}_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue,stroke:Ze,"stroke-dasharray":h.dashStyle(ye.spikedash,Ue)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}We.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Xe+(ye.side!=="right"?Ue:-Ue),cy:Ve,r:Ue,fill:Ze}).classed("spikeline",!0)}if(ze){var Ne,je,nt=ce.vLinePoint;ve=nt&&nt.xa,ye=nt&&nt.ya,ve.spikesnap==="cursor"?(Ne=Pe.pointerX,je=Pe.pointerY):(Ne=ve._offset+nt.x,je=ye._offset+nt.y);var ot,Ge,ht=i.readability(nt.color,De)<1.5?m.contrast(De):nt.color,pt=ve.spikemode,wt=ve.spikethickness,Dt=ve.spikecolor||ht,It=_.getPxPosition(ae,ve);if(pt.indexOf("toaxis")!==-1||pt.indexOf("across")!==-1){if(pt.indexOf("toaxis")!==-1&&(ot=It,Ge=je),pt.indexOf("across")!==-1){var qt=ve._counterDomainMin,en=ve._counterDomainMax;ve.anchor==="free"&&(qt=Math.min(qt,ve.position),en=Math.max(en,ve.position)),ot=Te.t+(1-en)*Te.h,Ge=Te.t+(1-qt)*Te.h}_e.insert("line",":first-child").attr({x1:Ne,x2:Ne,y1:ot,y2:Ge,"stroke-width":wt,stroke:Dt,"stroke-dasharray":h.dashStyle(ve.spikedash,wt)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Ne,x2:Ne,y1:ot,y2:Ge,"stroke-width":wt+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}pt.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Ne,cy:It-(ve.side!=="top"?wt:-wt),r:wt,fill:Dt}).classed("spikeline",!0)}}}function q(ae,ce){return!ce||ce.vLinePoint!==ae._spikepoints.vLinePoint||ce.hLinePoint!==ae._spikepoints.hLinePoint}function Y(ae,ce){return a.plainText(ae||"",{len:ce,allowedTags:["br","sub","sup","b","i","em"]})}function ee(ae,ce,de){var ve=ce[ae+"a"],ye=ce[ae+"Val"],_e=ce.cd[0];if(ve.type==="category"||ve.type==="multicategory")ye=ve._categoriesMap[ye];else if(ve.type==="date"){var Se=ce.trace[ae+"periodalignment"];if(Se){var Te=ce.cd[ce.index],Pe=Te[ae+"Start"];Pe===void 0&&(Pe=Te[ae]);var Ie=Te[ae+"End"];Ie===void 0&&(Ie=Te[ae]);var ze=Ie-Pe;Se==="end"?ye+=ze:Se==="middle"&&(ye+=ze/2)}ye=ve.d2c(ye)}return _e&&_e.t&&_e.t.posLetter===ve._id&&(de.boxmode!=="group"&&de.violinmode!=="group"||(ye+=_e.t.dPos)),ye}function me(ae){return ae.offsetTop+ae.clientTop}function he(ae){return ae.offsetLeft+ae.clientLeft}function se(ae,ce){var de=ae._fullLayout,ve=ce.getBoundingClientRect(),ye=ve.left,_e=ve.top,Se=ye+ve.width,Te=_e+ve.height,Pe=O.apply3DTransform(de._invTransform)(ye,_e),Ie=O.apply3DTransform(de._invTransform)(Se,Te),ze=Pe[0],De=Pe[1],He=Ie[0],Ve=Ie[1];return{x:ze,y:De,width:He-ze,height:Ve-De,top:Math.min(De,Ve),left:Math.min(ze,He),right:Math.max(ze,He),bottom:Math.max(De,Ve)}}},16132:function(d,l,n){var c=n(3400),b=n(76308),i=n(10624).isUnifiedHover;d.exports=function(O,w,y,p){p=p||{};var a=w.legend;function u(h){p.font[h]||(p.font[h]=a?w.legend.font[h]:w.font[h])}w&&i(w.hovermode)&&(p.font||(p.font={}),u("size"),u("family"),u("color"),a?(p.bgcolor||(p.bgcolor=b.combine(w.legend.bgcolor,w.paper_bgcolor)),p.bordercolor||(p.bordercolor=w.legend.bordercolor)):p.bgcolor||(p.bgcolor=w.paper_bgcolor)),y("hoverlabel.bgcolor",p.bgcolor),y("hoverlabel.bordercolor",p.bordercolor),y("hoverlabel.namelength",p.namelength),c.coerceFont(y,"hoverlabel.font",p.font),y("hoverlabel.align",p.align)}},41008:function(d,l,n){var c=n(3400),b=n(65460);d.exports=function(i,O){function w(y,p){return O[y]!==void 0?O[y]:c.coerce(i,O,b,y,p)}return w("clickmode"),w("hovermode")}},93024:function(d,l,n){var c=n(33428),b=n(3400),i=n(86476),O=n(10624),w=n(65460),y=n(83292);d.exports={moduleType:"component",name:"fx",constants:n(92456),schema:{layout:w},attributes:n(55756),layoutAttributes:w,supplyLayoutGlobalDefaults:n(81976),supplyDefaults:n(95448),supplyLayoutDefaults:n(88336),calc:n(55056),getDistanceFunction:O.getDistanceFunction,getClosest:O.getClosest,inbox:O.inbox,quadrature:O.quadrature,appendArrayPointValue:O.appendArrayPointValue,castHoverOption:function(p,a,u){return b.castOption(p,a,"hoverlabel."+u)},castHoverinfo:function(p,a,u){return b.castOption(p,u,"hoverinfo",function(h){return b.coerceHoverinfo({hoverinfo:h},{_module:p._module},a)})},hover:y.hover,unhover:i.unhover,loneHover:y.loneHover,loneUnhover:function(p){var a=b.isD3Selection(p)?p:c.select(p);a.selectAll("g.hovertext").remove(),a.selectAll(".spikeline").remove()},click:n(62376)}},65460:function(d,l,n){var c=n(92456),b=n(25376),i=b({editType:"none"});i.family.dflt=c.HOVERFONT,i.size.dflt=c.HOVERFONTSIZE,d.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:i,grouptitlefont:b({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},88336:function(d,l,n){var c=n(3400),b=n(65460),i=n(41008),O=n(16132);d.exports=function(w,y){function p(m,v){return c.coerce(w,y,b,m,v)}i(w,y)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var a=y._has("mapbox"),u=y._has("geo"),h=y._basePlotModules.length;y.dragmode==="zoom"&&((a||u)&&h===1||a&&u&&h===2)&&(y.dragmode="pan"),O(w,y,p),c.coerceFont(p,"hoverlabel.grouptitlefont",y.hoverlabel.font)}},81976:function(d,l,n){var c=n(3400),b=n(16132),i=n(65460);d.exports=function(O,w){b(O,w,function(y,p){return c.coerce(O,w,i,y,p)})}},12704:function(d,l,n){var c=n(3400),b=n(53756).counter,i=n(86968).u,O=n(33816).idRegex,w=n(31780),y={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[b("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[O.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[O.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(h,m,v){var _=m[v+"axes"],S=Object.keys((h._splomAxes||{})[v]||{});return Array.isArray(_)?_:S.length?S:void 0}function a(h,m,v,_,S,A){var x=m(h+"gap",v),R=m("domain."+h);m(h+"side",_);for(var M=new Array(S),T=R[0],E=(R[1]-T)/(S-x),C=E*(1-x),L=0;L1){R||M||T||j("pattern")==="independent"&&(R=!0),C._hasSubplotGrid=R;var k,I,z=j("roworder")==="top to bottom",$=R?.2:.1,Q=R?.3:.1;E&&m._splomGridDflt&&(k=m._splomGridDflt.xside,I=m._splomGridDflt.yside),C._domains={x:a("x",j,$,k,D),y:a("y",j,Q,I,L,z)}}else delete m.grid}function j(U,X){return c.coerce(v,C,y,U,X)}},contentDefaults:function(h,m){var v=m.grid;if(v&&v._domains){var _,S,A,x,R,M,T,E=h.grid||{},C=m._subplots,L=v._hasSubplotGrid,D=v.rows,k=v.columns,I=v.pattern==="independent",z=v._axisMap={};if(L){var $=E.subplots||[];M=v.subplots=new Array(D);var Q=1;for(_=0;_(u==="legend"?1:0));if(Q===!1&&(m[u]=void 0),(Q!==!1||_.uirevision)&&(A("uirevision",m.uirevision),Q!==!1)){A("borderwidth");var j,U,X,te=A("orientation")==="h",W=A("yref")==="paper",K=A("xref")==="paper",oe="left";if(te?(j=0,c.getComponentMethod("rangeslider","isVisible")(h.xaxis)?W?(U=1.1,X="bottom"):(U=1,X="top"):W?(U=-.1,X="top"):(U=0,X="bottom")):(U=1,X="auto",K?j=1.02:(j=1,oe="right")),b.coerce(_,S,{x:{valType:"number",editType:"legend",min:K?-2:0,max:K?3:1,dflt:j}},"x"),b.coerce(_,S,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:U}},"y"),A("traceorder",D),p.isGrouped(m[u])&&A("tracegroupgap"),A("entrywidth"),A("entrywidthmode"),A("itemsizing"),A("itemwidth"),A("itemclick"),A("itemdoubleclick"),A("groupclick"),A("xanchor",oe),A("yanchor",X),A("valign"),b.noneOrAll(_,S,["x","y"]),A("title.text")){A("title.side",te?"left":"top");var q=b.extendFlat({},x,{size:b.bigFont(x.size)});b.coerceFont(A,"title.font",q)}}}}d.exports=function(u,h,m){var v,_=m.slice(),S=h.shapes;if(S)for(v=0;v1)}var ve=q.hiddenlabels||[];if(!(ee||q.showlegend&&me.length))return K.selectAll("."+Y).remove(),q._topdefs.select("#"+W).remove(),i.autoMargin(X,Y);var ye=b.ensureSingle(K,"g",Y,function(Ve){ee||Ve.attr("pointer-events","all")}),_e=b.ensureSingleById(q._topdefs,"clipPath",W,function(Ve){Ve.append("rect")}),Se=b.ensureSingle(ye,"rect","bg",function(Ve){Ve.attr("shape-rendering","crispEdges")});Se.call(a.stroke,oe.bordercolor).call(a.fill,oe.bgcolor).style("stroke-width",oe.borderwidth+"px");var Te,Pe=b.ensureSingle(ye,"g","scrollbox"),Ie=oe.title;oe._titleWidth=0,oe._titleHeight=0,Ie.text?((Te=b.ensureSingle(Pe,"text",Y+"titletext")).attr("text-anchor","start").call(p.font,Ie.font).text(Ie.text),$(Te,Pe,X,oe,T)):Pe.selectAll("."+Y+"titletext").remove();var ze=b.ensureSingle(ye,"rect","scrollbar",function(Ve){Ve.attr(m.scrollBarEnterAttrs).call(a.fill,m.scrollBarColor)}),De=Pe.selectAll("g.groups").data(me);De.enter().append("g").attr("class","groups"),De.exit().remove();var He=De.selectAll("g.traces").data(b.identity);He.enter().append("g").attr("class","traces"),He.exit().remove(),He.style("opacity",function(Ve){var $e=Ve[0].trace;return O.traceIs($e,"pie-like")?ve.indexOf(Ve[0].label)!==-1?.5:1:$e.visible==="legendonly"?.5:1}).each(function(){c.select(this).call(k,X,oe)}).call(R,X,oe).each(function(){ee||c.select(this).call(z,X,Y)}),b.syncOrAsync([i.previousPromises,function(){return function(Ve,$e,Oe,ke){var Le=Ve._fullLayout,We=U(ke);ke||(ke=Le[We]);var Ue=Le._size,Ze=M.isVertical(ke),Xe=M.isGrouped(ke),tt=ke.entrywidthmode==="fraction",Ee=ke.borderwidth,Ne=2*Ee,je=m.itemGap,nt=ke.itemwidth+2*je,ot=2*(Ee+je),Ge=j(ke),ht=ke.y<0||ke.y===0&&Ge==="top",pt=ke.y>1||ke.y===1&&Ge==="bottom",wt=ke.tracegroupgap,Dt={};ke._maxHeight=Math.max(ht||pt?Le.height/2:Ue.h,30);var It=0;ke._width=0,ke._height=0;var qt=function(Xt){var Yt=0,Qt=0,Pt=Xt.title.side;return Pt&&(Pt.indexOf("left")!==-1&&(Yt=Xt._titleWidth),Pt.indexOf("top")!==-1&&(Qt=Xt._titleHeight)),[Yt,Qt]}(ke);if(Ze)Oe.each(function(Xt){var Yt=Xt[0].height;p.setTranslate(this,Ee+qt[0],Ee+qt[1]+ke._height+Yt/2+je),ke._height+=Yt,ke._width=Math.max(ke._width,Xt[0].width)}),It=nt+ke._width,ke._width+=je+nt+Ne,ke._height+=ot,Xe&&($e.each(function(Xt,Yt){p.setTranslate(this,0,Yt*ke.tracegroupgap)}),ke._height+=(ke._lgroupsLength-1)*ke.tracegroupgap);else{var en=Q(ke),Gt=ke.x<0||ke.x===0&&en==="right",Ct=ke.x>1||ke.x===1&&en==="left",_t=pt||ht,nn=Le.width/2;ke._maxWidth=Math.max(Gt?_t&&en==="left"?Ue.l+Ue.w:nn:Ct?_t&&en==="right"?Ue.r+Ue.w:nn:Ue.w,2*nt);var gn=0,bn=0;Oe.each(function(Xt){var Yt=L(Xt,ke,nt);gn=Math.max(gn,Yt),bn+=Yt}),It=null;var mn=0;if(Xe){var vt=0,bt=0,lt=0;$e.each(function(){var Xt=0,Yt=0;c.select(this).selectAll("g.traces").each(function(Pt){var tn=L(Pt,ke,nt),Kt=Pt[0].height;p.setTranslate(this,qt[0],qt[1]+Ee+je+Kt/2+Yt),Yt+=Kt,Xt=Math.max(Xt,tn),Dt[Pt[0].trace.legendgroup]=Xt});var Qt=Xt+je;bt>0&&Qt+Ee+bt>ke._maxWidth?(mn=Math.max(mn,bt),bt=0,lt+=vt+wt,vt=Yt):vt=Math.max(vt,Yt),p.setTranslate(this,bt,lt),bt+=Qt}),ke._width=Math.max(mn,bt)+Ee,ke._height=lt+vt+ot}else{var yt=Oe.size(),zt=bn+Ne+(yt-1)*je=ke._maxWidth&&(mn=Math.max(mn,Lt),it=0,at+=Rt,ke._height+=Rt,Rt=0),p.setTranslate(this,qt[0]+Ee+it,qt[1]+Ee+at+Yt/2+je),Lt=it+Qt+je,it+=Pt,Rt=Math.max(Rt,Yt)}),zt?(ke._width=it+Ne,ke._height=Rt+ot):(ke._width=Math.max(mn,Lt)+Ne,ke._height+=Rt+ot)}}ke._width=Math.ceil(Math.max(ke._width+qt[0],ke._titleWidth+2*(Ee+m.titlePad))),ke._height=Math.ceil(Math.max(ke._height+qt[1],ke._titleHeight+2*(Ee+m.itemGap))),ke._effHeight=Math.min(ke._height,ke._maxHeight);var xt=Ve._context.edits,Zt=xt.legendText||xt.legendPosition;Oe.each(function(Xt){var Yt=c.select(this).select("."+We+"toggle"),Qt=Xt[0].height,Pt=Xt[0].trace.legendgroup,tn=L(Xt,ke,nt);Xe&&Pt!==""&&(tn=Dt[Pt]);var Kt=Zt?nt:It||tn;Ze||tt||(Kt+=je/2),p.setRect(Yt,0,-Qt/2,Kt,Qt)})}(X,De,He,oe)},function(){var Ve,$e,Oe,ke,Le=q._size,We=oe.borderwidth,Ue=oe.xref==="paper",Ze=oe.yref==="paper";if(Ie.text&&function(_t,nn,gn){if(nn.title.side==="top center"||nn.title.side==="top right"){var bn=nn.title.font.size*_,mn=0,vt=_t.node(),bt=p.bBox(vt).width;nn.title.side==="top center"?mn=.5*(nn._width-2*gn-2*m.titlePad-bt):nn.title.side==="top right"&&(mn=nn._width-2*gn-2*m.titlePad-bt),u.positionText(_t,gn+m.titlePad+mn,gn+bn)}}(Te,oe,We),!ee){var Xe,tt;Xe=Ue?Le.l+Le.w*oe.x-S[Q(oe)]*oe._width:q.width*oe.x-S[Q(oe)]*oe._width,tt=Ze?Le.t+Le.h*(1-oe.y)-S[j(oe)]*oe._effHeight:q.height*(1-oe.y)-S[j(oe)]*oe._effHeight;var Ee=function(_t,nn,gn,bn){var mn=_t._fullLayout,vt=mn[nn],bt=Q(vt),lt=j(vt),yt=vt.xref==="paper",zt=vt.yref==="paper";_t._fullLayout._reservedMargin[nn]={};var Rt=vt.y<.5?"b":"t",it=vt.x<.5?"l":"r",at={r:mn.width-gn,l:gn+vt._width,b:mn.height-bn,t:bn+vt._effHeight};if(yt&&zt)return i.autoMargin(_t,nn,{x:vt.x,y:vt.y,l:vt._width*S[bt],r:vt._width*A[bt],b:vt._effHeight*A[lt],t:vt._effHeight*S[lt]});yt?_t._fullLayout._reservedMargin[nn][Rt]=at[Rt]:zt||vt.orientation==="v"?_t._fullLayout._reservedMargin[nn][it]=at[it]:_t._fullLayout._reservedMargin[nn][Rt]=at[Rt]}(X,Y,Xe,tt);if(Ee)return;if(q.margin.autoexpand){var Ne=Xe,je=tt;Xe=Ue?b.constrain(Xe,0,q.width-oe._width):Ne,tt=Ze?b.constrain(tt,0,q.height-oe._effHeight):je,Xe!==Ne&&b.log("Constrain "+Y+".x to make legend fit inside graph"),tt!==je&&b.log("Constrain "+Y+".y to make legend fit inside graph")}p.setTranslate(ye,Xe,tt)}if(ze.on(".drag",null),ye.on("wheel",null),ee||oe._height<=oe._maxHeight||X._context.staticPlot){var nt=oe._effHeight;ee&&(nt=oe._height),Se.attr({width:oe._width-We,height:nt-We,x:We/2,y:We/2}),p.setTranslate(Pe,0,0),_e.select("rect").attr({width:oe._width-2*We,height:nt-2*We,x:We,y:We}),p.setClipUrl(Pe,W,X),p.setRect(ze,0,0,0,0),delete oe._scrollY}else{var ot,Ge,ht,pt=Math.max(m.scrollBarMinHeight,oe._effHeight*oe._effHeight/oe._height),wt=oe._effHeight-pt-2*m.scrollBarMargin,Dt=oe._height-oe._effHeight,It=wt/Dt,qt=Math.min(oe._scrollY||0,Dt);Se.attr({width:oe._width-2*We+m.scrollBarWidth+m.scrollBarMargin,height:oe._effHeight-We,x:We/2,y:We/2}),_e.select("rect").attr({width:oe._width-2*We+m.scrollBarWidth+m.scrollBarMargin,height:oe._effHeight-2*We,x:We,y:We+qt}),p.setClipUrl(Pe,W,X),Ct(qt,pt,It),ye.on("wheel",function(){Ct(qt=b.constrain(oe._scrollY+c.event.deltaY/wt*Dt,0,Dt),pt,It),qt!==0&&qt!==Dt&&c.event.preventDefault()});var en=c.behavior.drag().on("dragstart",function(){var _t=c.event.sourceEvent;ot=_t.type==="touchstart"?_t.changedTouches[0].clientY:_t.clientY,ht=qt}).on("drag",function(){var _t=c.event.sourceEvent;_t.buttons===2||_t.ctrlKey||(Ge=_t.type==="touchmove"?_t.changedTouches[0].clientY:_t.clientY,qt=function(nn,gn,bn){var mn=(bn-gn)/It+nn;return b.constrain(mn,0,Dt)}(ht,ot,Ge),Ct(qt,pt,It))});ze.call(en);var Gt=c.behavior.drag().on("dragstart",function(){var _t=c.event.sourceEvent;_t.type==="touchstart"&&(ot=_t.changedTouches[0].clientY,ht=qt)}).on("drag",function(){var _t=c.event.sourceEvent;_t.type==="touchmove"&&(Ge=_t.changedTouches[0].clientY,qt=function(nn,gn,bn){var mn=(gn-bn)/It+nn;return b.constrain(mn,0,Dt)}(ht,ot,Ge),Ct(qt,pt,It))});Pe.call(Gt)}function Ct(_t,nn,gn){oe._scrollY=X._fullLayout[Y]._scrollY=_t,p.setTranslate(Pe,0,-_t),p.setRect(ze,oe._width,m.scrollBarMargin+_t*gn,m.scrollBarWidth,nn),_e.select("rect").attr("y",We+_t)}X._context.edits.legendPosition&&(ye.classed("cursor-move",!0),y.init({element:ye.node(),gd:X,prepFn:function(){var _t=p.getTranslate(ye);Oe=_t.x,ke=_t.y},moveFn:function(_t,nn){var gn=Oe+_t,bn=ke+nn;p.setTranslate(ye,gn,bn),Ve=y.align(gn,oe._width,Le.l,Le.l+Le.w,oe.xanchor),$e=y.align(bn+oe._height,-oe._height,Le.t+Le.h,Le.t,oe.yanchor)},doneFn:function(){if(Ve!==void 0&&$e!==void 0){var _t={};_t[Y+".x"]=Ve,_t[Y+".y"]=$e,O.call("_guiRelayout",X,_t)}},clickFn:function(_t,nn){var gn=K.selectAll("g.traces").filter(function(){var bn=this.getBoundingClientRect();return nn.clientX>=bn.left&&nn.clientX<=bn.right&&nn.clientY>=bn.top&&nn.clientY<=bn.bottom});gn.size()>0&&D(X,ye,gn,_t,nn)}}))}],X)}}function L(X,te,W){var K=X[0],oe=K.width,q=te.entrywidthmode,Y=K.trace.legendwidth||te.entrywidth;return q==="fraction"?te._maxWidth*Y:W+(Y||oe)}function D(X,te,W,K,oe){var q=W.data()[0][0].trace,Y={event:oe,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:X.data,layout:X.layout,frames:X._transitionData._frames,config:X._context,fullData:X._fullData,fullLayout:X._fullLayout};q._group&&(Y.group=q._group),O.traceIs(q,"pie-like")&&(Y.label=W.datum()[0].label);var ee=w.triggerHandler(X,"plotly_legendclick",Y);if(K===1){if(ee===!1)return;te._clickTimeout=setTimeout(function(){X._fullLayout&&h(W,X,K)},X._context.doubleClickDelay)}else K===2&&(te._clickTimeout&&clearTimeout(te._clickTimeout),X._legendMouseDownTime=0,w.triggerHandler(X,"plotly_legenddoubleclick",Y)!==!1&&ee!==!1&&h(W,X,K))}function k(X,te,W){var K,oe,q=U(W),Y=X.data()[0][0],ee=Y.trace,me=O.traceIs(ee,"pie-like"),he=!W._inHover&&te._context.edits.legendText&&!me,se=W._maxNameLength;Y.groupTitle?(K=Y.groupTitle.text,oe=Y.groupTitle.font):(oe=W.font,W.entries?K=Y.text:(K=me?Y.label:ee.name,ee._meta&&(K=b.templateString(K,ee._meta))));var ae=b.ensureSingle(X,"text",q+"text");ae.attr("text-anchor","start").call(p.font,oe).text(he?I(K,se):K);var ce=W.itemwidth+2*m.itemGap;u.positionText(ae,ce,0),he?ae.call(u.makeEditable,{gd:te,text:K}).call($,X,te,W).on("edit",function(de){this.text(I(de,se)).call($,X,te,W);var ve=Y.trace._fullInput||{},ye={};if(O.hasTransform(ve,"groupby")){var _e=O.getTransformIndices(ve,"groupby"),Se=_e[_e.length-1],Te=b.keyedContainer(ve,"transforms["+Se+"].styles","target","value.name");Te.set(Y.trace._group,de),ye=Te.constructUpdate()}else ye.name=de;return ve._isShape?O.call("_guiRelayout",te,"shapes["+ee.index+"].name",ye.name):O.call("_guiRestyle",te,ye,ee.index)}):$(ae,X,te,W)}function I(X,te){var W=Math.max(4,te);if(X&&X.trim().length>=W/2)return X;for(var K=W-(X=X||"").length;K>0;K--)X+=" ";return X}function z(X,te,W){var K,oe=te._context.doubleClickDelay,q=1,Y=b.ensureSingle(X,"rect",W+"toggle",function(ee){te._context.staticPlot||ee.style("cursor","pointer").attr("pointer-events","all"),ee.call(a.fill,"rgba(0,0,0,0)")});te._context.staticPlot||(Y.on("mousedown",function(){(K=new Date().getTime())-te._legendMouseDownTimeoe&&(q=Math.max(q-1,1)),D(te,ee,X,q,c.event)}}))}function $(X,te,W,K,oe){K._inHover&&X.attr("data-notex",!0),u.convertToTspans(X,W,function(){(function(q,Y,ee,me){var he=q.data()[0][0];if(ee._inHover||!he||he.trace.showlegend){var se=q.select("g[class*=math-group]"),ae=se.node(),ce=U(ee);ee||(ee=Y._fullLayout[ce]);var de,ve,ye=ee.borderwidth,_e=(me===T?ee.title.font:he.groupTitle?he.groupTitle.font:ee.font).size*_;if(ae){var Se=p.bBox(ae);de=Se.height,ve=Se.width,me===T?p.setTranslate(se,ye,ye+.75*de):p.setTranslate(se,0,.25*de)}else{var Te="."+ce+(me===T?"title":"")+"text",Pe=q.select(Te),Ie=u.lineCount(Pe),ze=Pe.node();if(de=_e*Ie,ve=ze?p.bBox(ze).width:0,me===T)ee.title.side==="left"&&(ve+=2*m.itemGap),u.positionText(Pe,ye+m.titlePad,ye+_e);else{var De=2*m.itemGap+ee.itemwidth;he.groupTitle&&(De=m.itemGap,ve-=ee.itemwidth),u.positionText(Pe,De,-_e*((Ie-1)/2-.3))}}me===T?(ee._titleWidth=ve,ee._titleHeight=de):(he.lineHeight=_e,he.height=Math.max(de,16)+3,he.width=ve)}else q.remove()})(te,W,K,oe)})}function Q(X){return b.isRightAnchor(X)?"right":b.isCenterAnchor(X)?"center":"left"}function j(X){return b.isBottomAnchor(X)?"bottom":b.isMiddleAnchor(X)?"middle":"top"}function U(X){return X._id||"legend"}d.exports=function(X,te){if(te)C(X,te);else{var W=X._fullLayout,K=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var Y=c.select(this),ee=Y.attr("class").split(" ")[0];ee.match(E)&&K.indexOf(ee)===-1&&Y.remove()});for(var oe=0;oeQ&&($=Q)}I[y][0]._groupMinRank=$,I[y][0]._preGroupSort=y}var j=function(K,oe){return K.trace.legendrank-oe.trace.legendrank||K._preSort-oe._preSort};for(I.forEach(function(K,oe){K[0]._preGroupSort=oe}),I.sort(function(K,oe){return K[0]._groupMinRank-oe[0]._groupMinRank||K[0]._preGroupSort-oe[0]._preGroupSort}),y=0;yR?R:A}d.exports=function(A,x,R){var M=x._fullLayout;R||(R=M.legend);var T=R.itemsizing==="constant",E=R.itemwidth,C=(E+2*m.itemGap)/2,L=O(C,0),D=function(z,$,Q,j){var U;if(z+1)U=z;else{if(!($&&$.width>0))return 0;U=$.width}return T?j:Math.min(U,Q)};function k(z,$,Q){var j=z[0].trace,U=j.marker||{},X=U.line||{},te=U.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",W=Q?j.visible&&j.type===Q:b.traceIs(j,"bar"),K=c.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(W?[z]:[]);K.enter().append("path").classed("legend"+Q,!0).attr("d",te).attr("transform",L),K.exit().remove(),K.each(function(oe){var q=c.select(this),Y=oe[0],ee=D(Y.mlw,U.line,5,2);q.style("stroke-width",ee+"px");var me=Y.mcc;if(!R._inHover&&"mc"in Y){var he=p(U),se=he.mid;se===void 0&&(se=(he.max+he.min)/2),me=w.tryColorscale(U,"")(se)}var ae=me||Y.mc||U.color,ce=U.pattern,de=ce&&w.getPatternAttr(ce.shape,0,"");if(de){var ve=w.getPatternAttr(ce.bgcolor,0,null),ye=w.getPatternAttr(ce.fgcolor,0,null),_e=ce.fgopacity,Se=S(ce.size,8,10),Te=S(ce.solidity,.5,1),Pe="legend-"+j.uid;q.call(w.pattern,"legend",x,Pe,de,Se,Te,me,ce.fillmode,ve,ye,_e)}else q.call(y.fill,ae);ee&&y.stroke(q,Y.mlc||X.color)})}function I(z,$,Q){var j=z[0],U=j.trace,X=Q?U.visible&&U.type===Q:b.traceIs(U,Q),te=c.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(X?[z]:[]);if(te.enter().append("path").classed("legend"+Q,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),te.exit().remove(),te.size()){var W=U.marker||{},K=D(h(W.line.width,j.pts),W.line,5,2),oe="pieLike",q=i.minExtend(U,{marker:{line:{width:K}}},oe),Y=i.minExtend(j,{trace:q},oe);u(te,Y,q,x)}}A.each(function(z){var $=c.select(this),Q=i.ensureSingle($,"g","layers");Q.style("opacity",z[0].trace.opacity);var j=R.valign,U=z[0].lineHeight,X=z[0].height;if(j!=="middle"&&U&&X){var te={top:1,bottom:-1}[j]*(.5*(U-X+3));Q.attr("transform",O(0,te))}else Q.attr("transform",null);Q.selectAll("g.legendfill").data([z]).enter().append("g").classed("legendfill",!0),Q.selectAll("g.legendlines").data([z]).enter().append("g").classed("legendlines",!0);var W=Q.selectAll("g.legendsymbols").data([z]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([z]).enter().append("g").classed("legendpoints",!0)}).each(function(z){var $,Q=z[0].trace,j=[];if(Q.visible)switch(Q.type){case"histogram2d":case"heatmap":j=[["M-15,-2V4H15V-2Z"]],$=!0;break;case"choropleth":case"choroplethmapbox":j=[["M-6,-6V6H6V-6Z"]],$=!0;break;case"densitymapbox":j=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],$="radial";break;case"cone":j=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],$=!1;break;case"streamtube":j=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],$=!1;break;case"surface":j=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],$=!0;break;case"mesh3d":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!1;break;case"volume":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!0;break;case"isosurface":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],$=!1}var U=c.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(j);U.enter().append("path").classed("legend3dandfriends",!0).attr("transform",L).style("stroke-miterlimit",1),U.exit().remove(),U.each(function(X,te){var W,K=c.select(this),oe=p(Q),q=oe.colorscale,Y=oe.reversescale;if(q){if(!$){var ee=q.length;W=te===0?q[Y?ee-1:0][1]:te===1?q[Y?0:ee-1][1]:q[Math.floor((ee-1)/2)][1]}}else{var me=Q.vertexcolor||Q.facecolor||Q.color;W=i.isArrayOrTypedArray(me)?me[te]||me[0]:me}K.attr("d",X[0]),W?K.call(y.fill,W):K.call(function(he){if(he.size()){var se="legendfill-"+Q.uid;w.gradient(he,x,se,v(Y,$==="radial"),q,"fill")}})})}).each(function(z){var $=z[0].trace,Q=$.type==="waterfall";if(z[0]._distinct&&Q){var j=z[0].trace[z[0].dir].marker;return z[0].mc=j.color,z[0].mlw=j.line.width,z[0].mlc=j.line.color,k(z,this,"waterfall")}var U=[];$.visible&&Q&&(U=z[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var X=c.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(U);X.enter().append("path").classed("legendwaterfall",!0).attr("transform",L).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(te){var W=c.select(this),K=$[te[0]].marker,oe=D(void 0,K.line,5,2);W.attr("d",te[1]).style("stroke-width",oe+"px").call(y.fill,K.color),oe&&W.call(y.stroke,K.line.color)})}).each(function(z){k(z,this,"funnel")}).each(function(z){k(z,this)}).each(function(z){var $=z[0].trace,Q=c.select(this).select("g.legendpoints").selectAll("path.legendbox").data($.visible&&b.traceIs($,"box-violin")?[z]:[]);Q.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),Q.exit().remove(),Q.each(function(){var j=c.select(this);if($.boxpoints!=="all"&&$.points!=="all"||y.opacity($.fillcolor)!==0||y.opacity(($.line||{}).color)!==0){var U=D(void 0,$.line,5,2);j.style("stroke-width",U+"px").call(y.fill,$.fillcolor),U&&y.stroke(j,$.line.color)}else{var X=i.minExtend($,{marker:{size:T?12:i.constrain($.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});Q.call(w.pointStyle,X,x)}})}).each(function(z){I(z,this,"funnelarea")}).each(function(z){I(z,this,"pie")}).each(function(z){var $,Q,j=_(z),U=j.showFill,X=j.showLine,te=j.showGradientLine,W=j.showGradientFill,K=j.anyFill,oe=j.anyLine,q=z[0],Y=q.trace,ee=p(Y),me=ee.colorscale,he=ee.reversescale,se=a.hasMarkers(Y)||!K?"M5,0":oe?"M5,-2":"M5,-3",ae=c.select(this),ce=ae.select(".legendfill").selectAll("path").data(U||W?[z]:[]);if(ce.enter().append("path").classed("js-fill",!0),ce.exit().remove(),ce.attr("d",se+"h"+E+"v6h-"+E+"z").call(function(ye){if(ye.size())if(U)w.fillGroupStyle(ye,x);else{var _e="legendfill-"+Y.uid;w.gradient(ye,x,_e,v(he),me,"fill")}}),X||te){var de=D(void 0,Y.line,10,5);Q=i.minExtend(Y,{line:{width:de}}),$=[i.minExtend(q,{trace:Q})]}var ve=ae.select(".legendlines").selectAll("path").data(X||te?[$]:[]);ve.enter().append("path").classed("js-line",!0),ve.exit().remove(),ve.attr("d",se+(te?"l"+E+",0.0001":"h"+E)).call(X?w.lineGroupStyle:function(ye){if(ye.size()){var _e="legendline-"+Y.uid;w.lineGroupStyle(ye),w.gradient(ye,x,_e,v(he),me,"stroke")}})}).each(function(z){var $,Q,j=_(z),U=j.anyFill,X=j.anyLine,te=j.showLine,W=j.showMarker,K=z[0],oe=K.trace,q=!W&&!X&&!U&&a.hasText(oe);function Y(ve,ye,_e,Se){var Te=i.nestedProperty(oe,ve).get(),Pe=i.isArrayOrTypedArray(Te)&&ye?ye(Te):Te;if(T&&Pe&&Se!==void 0&&(Pe=Se),_e){if(Pe<_e[0])return _e[0];if(Pe>_e[1])return _e[1]}return Pe}function ee(ve){return K._distinct&&K.index&&ve[K.index]?ve[K.index]:ve[0]}if(W||q||te){var me={},he={};if(W){me.mc=Y("marker.color",ee),me.mx=Y("marker.symbol",ee),me.mo=Y("marker.opacity",i.mean,[.2,1]),me.mlc=Y("marker.line.color",ee),me.mlw=Y("marker.line.width",i.mean,[0,5],2),he.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var se=Y("marker.size",i.mean,[2,16],12);me.ms=se,he.marker.size=se}te&&(he.line={width:Y("line.width",ee,[0,10],5)}),q&&(me.tx="Aa",me.tp=Y("textposition",ee),me.ts=10,me.tc=Y("textfont.color",ee),me.tf=Y("textfont.family",ee)),$=[i.minExtend(K,me)],(Q=i.minExtend(oe,he)).selectedpoints=null,Q.texttemplate=null}var ae=c.select(this).select("g.legendpoints"),ce=ae.selectAll("path.scatterpts").data(W?$:[]);ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",L),ce.exit().remove(),ce.call(w.pointStyle,Q,x),W&&($[0].mrc=3);var de=ae.selectAll("g.pointtext").data(q?$:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",L),de.exit().remove(),de.selectAll("text").call(w.textPointStyle,Q,x)}).each(function(z){var $=z[0].trace,Q=c.select(this).select("g.legendpoints").selectAll("path.legendcandle").data($.visible&&$.type==="candlestick"?[z,z]:[]);Q.enter().append("path").classed("legendcandle",!0).attr("d",function(j,U){return U?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=c.select(this),te=$[U?"increasing":"decreasing"],W=D(void 0,te.line,5,2);X.style("stroke-width",W+"px").call(y.fill,te.fillcolor),W&&y.stroke(X,te.line.color)})}).each(function(z){var $=z[0].trace,Q=c.select(this).select("g.legendpoints").selectAll("path.legendohlc").data($.visible&&$.type==="ohlc"?[z,z]:[]);Q.enter().append("path").classed("legendohlc",!0).attr("d",function(j,U){return U?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=c.select(this),te=$[U?"increasing":"decreasing"],W=D(void 0,te.line,5,2);X.style("fill","none").call(w.dashLine,te.line.dash,W),W&&y.stroke(X,te.line.color)})})}},66540:function(d,l,n){n(76052),d.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(d,l,n){var c=n(24040),b=n(7316),i=n(79811),O=n(9224),w=n(4016).eraseActiveShape,y=n(3400),p=y._,a=d.exports={};function u(M,T){var E,C,L=T.currentTarget,D=L.getAttribute("data-attr"),k=L.getAttribute("data-val")||!0,I=M._fullLayout,z={},$=i.list(M,null,!0),Q=I._cartesianSpikesEnabled;if(D==="zoom"){var j,U=k==="in"?.5:2,X=(1+U)/2,te=(1-U)/2;for(C=0;C<$.length;C++)if(!(E=$[C]).fixedrange)if(j=E._name,k==="auto")z[j+".autorange"]=!0;else if(k==="reset")E._rangeInitial0===void 0&&E._rangeInitial1===void 0?z[j+".autorange"]=!0:E._rangeInitial0===void 0?(z[j+".autorange"]=E._autorangeInitial,z[j+".range"]=[null,E._rangeInitial1]):E._rangeInitial1===void 0?(z[j+".range"]=[E._rangeInitial0,null],z[j+".autorange"]=E._autorangeInitial):z[j+".range"]=[E._rangeInitial0,E._rangeInitial1],E._showSpikeInitial!==void 0&&(z[j+".showspikes"]=E._showSpikeInitial,Q!=="on"||E._showSpikeInitial||(Q="off"));else{var W=[E.r2l(E.range[0]),E.r2l(E.range[1])],K=[X*W[0]+te*W[1],X*W[1]+te*W[0]];z[j+".range[0]"]=E.l2r(K[0]),z[j+".range[1]"]=E.l2r(K[1])}}else D!=="hovermode"||k!=="x"&&k!=="y"||(k=I._isHoriz?"y":"x",L.setAttribute("data-val",k)),z[D]=k;I._cartesianSpikesEnabled=Q,c.call("_guiRelayout",M,z)}function h(M,T){for(var E=T.currentTarget,C=E.getAttribute("data-attr"),L=E.getAttribute("data-val")||!0,D=M._fullLayout._subplots.gl3d||[],k={},I=C.split("."),z=0;z1?(se=["toggleHover"],ae=["resetViews"]):z?(he=["zoomInGeo","zoomOutGeo"],se=["hoverClosestGeo"],ae=["resetGeo"]):I?(se=["hoverClosest3d"],ae=["resetCameraDefault3d","resetCameraLastSave3d"]):X?(he=["zoomInMapbox","zoomOutMapbox"],se=["toggleHover"],ae=["resetViewMapbox"]):j?se=["hoverClosestGl2d"]:$?se=["hoverClosestPie"]:K?(se=["hoverClosestCartesian","hoverCompareCartesian"],ae=["resetViewSankey"]):se=["toggleHover"],k&&(se=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(Te){for(var Pe=0;Pe0)){var x=function(M,T,E){for(var C=E.filter(function(I){return T[I].anchor===M._id}),L=0,D=0;D0?C.touches[0].clientX:0}function A(C,L,D,k){var I=O.ensureSingle(C,"rect",_.bgClassName,function(j){j.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),z=k.borderwidth%2==0?k.borderwidth:k.borderwidth-1,$=-k._offsetShift,Q=y.crispRound(L,k.borderwidth);I.attr({width:k._width+z,height:k._height+z,transform:w($,$),"stroke-width":Q}).call(p.stroke,k.bordercolor).call(p.fill,k.bgcolor)}function x(C,L,D,k){var I=L._fullLayout;O.ensureSingleById(I._topdefs,"clipPath",k._clipId,function(z){z.append("rect").attr({x:0,y:0})}).select("rect").attr({width:k._width,height:k._height})}function R(C,L,D,k){var I,z=L.calcdata,$=C.selectAll("g."+_.rangePlotClassName).data(D._subplotsWith,O.identity);$.enter().append("g").attr("class",function(Q){return _.rangePlotClassName+" "+Q}).call(y.setClipUrl,k._clipId,L),$.order(),$.exit().remove(),$.each(function(Q,j){var U=c.select(this),X=j===0,te=h.getFromId(L,Q,"y"),W=te._name,K=k[W],oe={data:[],layout:{xaxis:{type:D.type,domain:[0,1],range:k.range.slice(),calendar:D.calendar},width:k._width,height:k._height,margin:{t:0,b:0,l:0,r:0}},_context:L._context};D.rangebreaks&&(oe.layout.xaxis.rangebreaks=D.rangebreaks),oe.layout[W]={type:te.type,domain:[0,1],range:K.rangemode!=="match"?K.range.slice():te.range.slice(),calendar:te.calendar},te.rangebreaks&&(oe.layout[W].rangebreaks=te.rangebreaks),i.supplyDefaults(oe);var q=oe._fullLayout.xaxis,Y=oe._fullLayout[W];q.clearCalc(),q.setScale(),Y.clearCalc(),Y.setScale();var ee={id:Q,plotgroup:U,xaxis:q,yaxis:Y,isRangePlot:!0};X?I=ee:(ee.mainplot="xy",ee.mainplotinfo=I),u.rangePlot(L,ee,function(me,he){for(var se=[],ae=0;ae=De.max)Ie=_e[ze+1];else if(Pe=De.pmax)Ie=_e[ze+1];else if(Peze._length||Xe+ht<0)return;nt=Ze+ht,ot=Xe+ht;break;case Ve:if(Ge="col-resize",Ze+ht>ze._length)return;nt=Ze+ht,ot=Xe;break;case $e:if(Ge="col-resize",Xe+ht<0)return;nt=Ze,ot=Xe+ht;break;default:Ge="ew-resize",nt=Ue,ot=Ue+ht}if(ot=0;j--){var U=T.append("path").attr(C).style("opacity",j?.1:L).call(O.stroke,k).call(O.fill,D).call(w.dashLine,j?"solid":z,j?4+I:I);if(v(U,S,R),$){var X=y(S.layout,"selections",R);U.style({cursor:"move"});var te={element:U.node(),plotinfo:M,gd:S,editHelpers:X,isActiveSelection:!0},W=c(E,S);b(W,U,te)}else U.style("pointer-events",j?"all":"none");Q[j]=U}var K=Q[0];Q[1].node().addEventListener("click",function(){return function(oe,q){if(h(oe)){var Y=+q.node().getAttribute("data-index");if(Y>=0){if(Y===oe._fullLayout._activeSelectionIndex)return void _(oe);oe._fullLayout._activeSelectionIndex=Y,oe._fullLayout._deactivateSelection=_,u(oe)}}}(S,K)})}(S._fullLayout._selectionLayer)}function v(S,A,x){var R=x.xref+x.yref;w.setClipUrl(S,"clip"+A._fullLayout._uid+R,A)}function _(S){h(S)&&S._fullLayout._activeSelectionIndex>=0&&(i(S),delete S._fullLayout._activeSelectionIndex,u(S))}d.exports={draw:u,drawOne:m,activateLastSelection:function(S){if(h(S)){var A=S._fullLayout.selections.length-1;S._fullLayout._activeSelectionIndex=A,S._fullLayout._deactivateSelection=_,u(S)}}}},34200:function(d,l,n){var c=n(98192).u,b=n(92880).extendFlat;d.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:b({},c,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(d){d.exports=function(l,n,c){c("newselection.mode"),c("newselection.line.width")&&(c("newselection.line.color"),c("newselection.line.dash")),c("activeselection.fillcolor"),c("activeselection.opacity")}},5968:function(d,l,n){var c=n(72760).selectMode,b=n(1936).clearOutline,i=n(9856),O=i.readPaths,w=i.writePaths,y=i.fixDatesForPaths;d.exports=function(p,a){if(p.length){var u=p[0][0];if(u){var h=u.getAttribute("d"),m=a.gd,v=m._fullLayout.newselection,_=a.plotinfo,S=_.xaxis,A=_.yaxis,x=a.isActiveSelection,R=a.dragmode,M=(m.layout||{}).selections||[];if(!c(R)&&x!==void 0){var T=m._fullLayout._activeSelectionIndex;if(T-1,bn=[];if(function(yt){return yt&&Array.isArray(yt)&&yt[0].hoverOnBox!==!0}(nn)){de(Ee,Ne,Ge);var mn=function(yt,zt){var Rt,it,at=yt[0],Lt=-1,xt=[];for(it=0;it0?function(yt,zt){var Rt,it,at,Lt=[];for(at=0;at0&&Lt.push(Rt);if(Lt.length===1&&Lt[0]===zt.searchInfo&&(it=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(at=0;at1||(it+=zt.selectedpoints.length)>1))return!1;return it===1}(pt)&&(en=Te(mn))){for(ht&&ht.remove(),_t=0;_t=0})(ot)&&ot._fullLayout._deactivateShape(ot),function(qt){return qt._fullLayout._activeSelectionIndex>=0}(ot)&&ot._fullLayout._deactivateSelection(ot);var Ge=ot._fullLayout._zoomlayer,ht=m(je),pt=_(je);if(ht||pt){var wt,Dt,It=Ge.selectAll(".select-outline-"+nt.id);It&&ot._fullLayout._outlining&&(ht&&(wt=C(It,Ee)),wt&&i.call("_guiRelayout",ot,{shapes:wt}),pt&&!me(Ee)&&(Dt=L(It,Ee)),Dt&&(ot._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",ot,{selections:Dt}).then(function(){Ne&&D(ot)})),ot._fullLayout._outlining=!1)}nt.selection={},nt.selection.selectionDefs=Ee.selectionDefs=[],nt.selection.mergedPolygons=Ee.mergedPolygons=[]}function ye(Ee){return Ee._id}function _e(Ee,Ne,je,nt){if(!Ee.calcdata)return[];var ot,Ge,ht,pt=[],wt=Ne.map(ye),Dt=je.map(ye);for(ht=0;ht0?nt[0]:je;return!!Ne.selectedpoints&&Ne.selectedpoints.indexOf(ot)>-1}function Pe(Ee,Ne,je){var nt,ot;for(nt=0;nt-1&&Ne;if(!Ge&&Ne){var ir=ke(Ee,!0);if(ir.length){var Wn=ir[0].xref,Kn=ir[0].yref;if(Wn&&Kn){var _r=Ue(ir);Ze([Q(Ee,Wn,"x"),Q(Ee,Kn,"y")])(ar,_r)}}Ee._fullLayout._noEmitSelectedAtStart?Ee._fullLayout._noEmitSelectedAtStart=!1:Fn&&Xe(Ee,ar),en._reselect=!1}if(!Ge&&en._deselect){var Ir=en._deselect;(function(zr,Fr,Rr){for(var $r=0;$r=0)Gt._fullLayout._deactivateShape(Gt);else if(!Dt){var _r=Ct.clickmode;$.done(Sr).then(function(){if($.clear(Sr),Wn===2){for(Nn.remove(),at=0;at-1&&he(Kn,Gt,nt.xaxes,nt.yaxes,nt.subplot,nt,Nn),_r==="event"&&Xe(Gt,void 0);y.click(Gt,Kn,bn.id)}).catch(k.error)}},nt.doneFn=function(){jn.remove(),$.done(Sr).then(function(){$.clear(Sr),!_t&&it&&nt.selectionDefs&&(it.subtract=vn,nt.selectionDefs.push(it),nt.mergedPolygons.length=0,[].push.apply(nt.mergedPolygons,Rt)),(_t||Dt)&&ve(nt,_t),nt.doneFnCompleted&&nt.doneFnCompleted(ar),It&&Xe(Gt,xt)}).catch(k.error)}},clearOutline:R,clearSelectionsCache:ve,selectOnClick:he}},46056:function(d,l,n){var c=n(13916),b=n(25376),i=n(52904).line,O=n(98192).u,w=n(92880).extendFlat,y=n(31780).templatedArray,p=(n(36208),n(45464)),a=n(21776).ye,u=n(97728);d.exports=y("shape",{visible:w({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:w({},p.legend,{editType:"calc+arraydraw"}),legendgroup:w({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:w({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:b({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:w({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:w({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:w({},c.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:w({},c.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:w({},i.color,{editType:"arraydraw"}),width:w({},i.width,{editType:"calc+arraydraw"}),dash:w({},O,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:a({},{keys:Object.keys(u)}),font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},96084:function(d,l,n){var c=n(3400),b=n(54460),i=n(85448),O=n(65152);function w(u){return p(u.line.width,u.xsizemode,u.x0,u.x1,u.path,!1)}function y(u){return p(u.line.width,u.ysizemode,u.y0,u.y1,u.path,!0)}function p(u,h,m,v,_,S){var A=u/2,x=S;if(h==="pixel"){var R=_?O.extractPathCoords(_,S?i.paramIsY:i.paramIsX):[m,v],M=c.aggNums(Math.max,null,R),T=c.aggNums(Math.min,null,R),E=T<0?Math.abs(T)+A:A,C=M>0?M+A:A;return{ppad:A,ppadplus:x?E:C,ppadminus:x?C:E}}return{ppad:A}}function a(u,h,m,v,_){var S=u.type==="category"||u.type==="multicategory"?u.r2c:u.d2c;if(h!==void 0)return[S(h),S(m)];if(v){var A,x,R,M,T=1/0,E=-1/0,C=v.match(i.segmentRE);for(u.type==="date"&&(S=O.decodeDate(S)),A=0;AE&&(E=M)));return E>=T?[T,E]:void 0}}d.exports=function(u){var h=u._fullLayout,m=c.filterVisible(h.shapes);if(m.length&&u._fullData.length)for(var v=0;v=ye?_e-Te:Te-_e,-180/Math.PI*Math.atan2(Pe,Ie)}(E,L,C,D):0),z.call(function(ye){return ye.call(O.font,I).attr({}),i.convertToTspans(ye,h),ye});var ae=function(ye,_e,Se,Te,Pe,Ie,ze){var De,He,Ve,$e,Oe=Pe.label.textposition,ke=Pe.label.textangle,Le=Pe.label.padding,We=Pe.type,Ue=Math.PI/180*Ie,Ze=Math.sin(Ue),Xe=Math.cos(Ue),tt=Pe.label.xanchor,Ee=Pe.label.yanchor;if(We==="line"){Oe==="start"?(De=ye,He=_e):Oe==="end"?(De=Se,He=Te):(De=(ye+Se)/2,He=(_e+Te)/2),tt==="auto"&&(tt=Oe==="start"?ke==="auto"?Se>ye?"left":Seye?"right":Seye?"right":Seye?"left":Se1&&(De.length!==2||De[1][0]!=="Z")&&(K===0&&(De[0][0]="M"),k[W]=De,j(),U())}}()}}function ye(Pe,Ie){(function(ze,De){if(k.length)for(var He=0;HeHe?(Oe=ze,Ue="y0",ke=He,Ze="y1"):(Oe=He,Ue="y1",ke=ze,Ze="y0"),vt(Rt),yt(Te,_e),function(it,at,Lt){var xt=at.xref,Zt=at.yref,Xt=O.getFromId(Lt,xt),Yt=O.getFromId(Lt,Zt),Qt="";xt==="paper"||Xt.autorange||(Qt+=xt),Zt==="paper"||Yt.autorange||(Qt+=Zt),h.setClipUrl(it,Qt?"clip"+Lt._fullLayout._uid+Qt:null,Lt)}(ye,_e,ve),mn.moveFn=Ne==="move"?bt:lt,mn.altKey=Rt.altKey)},doneFn:function(){M(ve)||(_(ye),zt(Te),C(ye,ve,_e),b.call("_guiRelayout",ve,Pe.getUpdateObj()))},clickFn:function(){M(ve)||zt(Te)}};function vt(Rt){if(M(ve))Ne=null;else if(ht)Ne=Rt.target.tagName==="path"?"move":Rt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var it=mn.element.getBoundingClientRect(),at=it.right-it.left,Lt=it.bottom-it.top,xt=Rt.clientX-it.left,Zt=Rt.clientY-it.top,Xt=!pt&&at>je&&Lt>nt&&!Rt.shiftKey?v.getCursor(xt/at,1-Zt/Lt):"move";_(ye,Xt),Ne=Xt.split("-")[0]}}function bt(Rt,it){if(_e.type==="path"){var at=function(Zt){return Zt},Lt=at,xt=at;ot?wt("xanchor",_e.xanchor=nn(Ve+Rt)):(Lt=function(Zt){return nn(Ct(Zt)+Rt)},It&&It.type==="date"&&(Lt=A.encodeDate(Lt))),Ge?wt("yanchor",_e.yanchor=gn($e+it)):(xt=function(Zt){return gn(_t(Zt)+it)},en&&en.type==="date"&&(xt=A.encodeDate(xt))),wt("path",_e.path=L(Ee,Lt,xt))}else ot?wt("xanchor",_e.xanchor=nn(Ve+Rt)):(wt("x0",_e.x0=nn(Ie+Rt)),wt("x1",_e.x1=nn(De+Rt))),Ge?wt("yanchor",_e.yanchor=gn($e+it)):(wt("y0",_e.y0=gn(ze+it)),wt("y1",_e.y1=gn(He+it)));ye.attr("d",x(ve,_e)),yt(Te,_e),p(ve,Se,_e,Dt)}function lt(Rt,it){if(pt){var at=function(In){return In},Lt=at,xt=at;ot?wt("xanchor",_e.xanchor=nn(Ve+Rt)):(Lt=function(In){return nn(Ct(In)+Rt)},It&&It.type==="date"&&(Lt=A.encodeDate(Lt))),Ge?wt("yanchor",_e.yanchor=gn($e+it)):(xt=function(In){return gn(_t(In)+it)},en&&en.type==="date"&&(xt=A.encodeDate(xt))),wt("path",_e.path=L(Ee,Lt,xt))}else if(ht){if(Ne==="resize-over-start-point"){var Zt=Ie+Rt,Xt=Ge?ze-it:ze+it;wt("x0",_e.x0=ot?Zt:nn(Zt)),wt("y0",_e.y0=Ge?Xt:gn(Xt))}else if(Ne==="resize-over-end-point"){var Yt=De+Rt,Qt=Ge?He-it:He+it;wt("x1",_e.x1=ot?Yt:nn(Yt)),wt("y1",_e.y1=Ge?Qt:gn(Qt))}}else{var Pt=function(In){return Ne.indexOf(In)!==-1},tn=Pt("n"),Kt=Pt("s"),fn=Pt("w"),dn=Pt("e"),vn=tn?Oe+it:Oe,Nn=Kt?ke+it:ke,er=fn?Le+Rt:Le,En=dn?We+Rt:We;Ge&&(tn&&(vn=Oe-it),Kt&&(Nn=ke-it)),(!Ge&&Nn-vn>nt||Ge&&vn-Nn>nt)&&(wt(Ue,_e[Ue]=Ge?vn:gn(vn)),wt(Ze,_e[Ze]=Ge?Nn:gn(Nn))),En-er>je&&(wt(Xe,_e[Xe]=ot?er:nn(er)),wt(tt,_e[tt]=ot?En:nn(En)))}ye.attr("d",x(ve,_e)),yt(Te,_e),p(ve,Se,_e,Dt)}function yt(Rt,it){(ot||Ge)&&function(){var at=it.type!=="path",Lt=Rt.selectAll(".visual-cue").data([0]);Lt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var xt=Ct(ot?it.xanchor:i.midRange(at?[it.x0,it.x1]:A.extractPathCoords(it.path,S.paramIsX))),Zt=_t(Ge?it.yanchor:i.midRange(at?[it.y0,it.y1]:A.extractPathCoords(it.path,S.paramIsY)));if(xt=A.roundPositionForSharpStrokeRendering(xt,1),Zt=A.roundPositionForSharpStrokeRendering(Zt,1),ot&&Ge){var Xt="M"+(xt-1-1)+","+(Zt-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Lt.attr("d",Xt)}else if(ot){var Yt="M"+(xt-1-1)+","+(Zt-9-1)+"v18 h2 v-18 Z";Lt.attr("d",Yt)}else{var Qt="M"+(xt-9-1)+","+(Zt-1-1)+"h18 v2 h-18 Z";Lt.attr("d",Qt)}}()}function zt(Rt){Rt.selectAll(".visual-cue").remove()}v.init(mn),bn.node().onmousemove=vt}(k,ae,$,I,U,he):$.editable===!0&&ae.style("pointer-events",ee||u.opacity(K)*W<=.5?"stroke":"all");ae.node().addEventListener("click",function(){return function(ve,ye){if(T(ve)){var _e=+ye.node().getAttribute("data-index");if(_e>=0){if(_e===ve._fullLayout._activeShapeIndex)return void D(ve);ve._fullLayout._activeShapeIndex=_e,ve._fullLayout._deactivateShape=D,R(ve)}}}(k,ae)})}$._input&&$.visible===!0&&($.layer!=="below"?j(k._fullLayout._shapeUpperLayer):$.xref==="paper"||$.yref==="paper"?j(k._fullLayout._shapeLowerLayer):Q._hadPlotinfo?j((Q.mainplotinfo||Q).shapelayer):j(k._fullLayout._shapeLowerLayer))}function C(k,I,z){var $=(z.xref+z.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");h.setClipUrl(k,$?"clip"+I._fullLayout._uid+$:null,I)}function L(k,I,z){return k.replace(S.segmentRE,function($){var Q=0,j=$.charAt(0),U=S.paramIsX[j],X=S.paramIsY[j],te=S.numParams[j];return j+$.substr(1).replace(S.paramRE,function(W){return Q>=te||(U[Q]?W=I(W):X[Q]&&(W=z(W)),Q++),W})})}function D(k){T(k)&&k._fullLayout._activeShapeIndex>=0&&(a(k),delete k._fullLayout._activeShapeIndex,R(k))}d.exports={draw:R,drawOne:E,eraseActiveShape:function(k){if(T(k)){a(k);var I=k._fullLayout._activeShapeIndex,z=(k.layout||{}).shapes||[];if(I0&&Ese&&(ce="X"),ce});return Y>se&&(ae=ae.replace(/[\s,]*X.*/,""),b.log("Ignoring extra params in segment "+q)),ee+ae})}(w,p,u);if(w.xsizemode==="pixel"){var E=p(w.xanchor);h=E+w.x0,m=E+w.x1}else h=p(w.x0),m=p(w.x1);if(w.ysizemode==="pixel"){var C=u(w.yanchor);v=C-w.y0,_=C-w.y1}else v=u(w.y0),_=u(w.y1);if(S==="line")return"M"+h+","+v+"L"+m+","+_;if(S==="rect")return"M"+h+","+v+"H"+m+"V"+_+"H"+h+"Z";var L=(h+m)/2,D=(v+_)/2,k=Math.abs(L-h),I=Math.abs(D-v),z="A"+k+","+I,$=L+k+","+D;return"M"+$+z+" 0 1,1 "+L+","+(D-I)+z+" 0 0,1 "+$+"Z"}},41592:function(d,l,n){var c=n(4016);d.exports={moduleType:"component",name:"shapes",layoutAttributes:n(46056),supplyLayoutDefaults:n(43712),supplyDrawNewShapeDefaults:n(65144),includeBasePlot:n(36632)("shapes"),calcAutorange:n(96084),draw:c.draw,drawOne:c.drawOne}},97728:function(d){function l(i,O){return O?O.d2l(i):i}function n(i,O){return O?O.l2d(i):i}function c(i,O){return l(i.x1,O)-l(i.x0,O)}function b(i,O,w){return l(i.y1,w)-l(i.y0,w)}d.exports={x0:function(i){return i.x0},x1:function(i){return i.x1},y0:function(i){return i.y0},y1:function(i){return i.y1},slope:function(i,O,w){return i.type!=="line"?void 0:b(i,0,w)/c(i,O)},dx:c,dy:b,width:function(i,O){return Math.abs(c(i,O))},height:function(i,O,w){return Math.abs(b(i,0,w))},length:function(i,O,w){return i.type!=="line"?void 0:Math.sqrt(Math.pow(c(i,O),2)+Math.pow(b(i,0,w),2))},xcenter:function(i,O){return n((l(i.x1,O)+l(i.x0,O))/2,O)},ycenter:function(i,O,w){return n((l(i.y1,w)+l(i.y0,w))/2,w)}}},89861:function(d,l,n){var c=n(25376),b=n(66741),i=n(92880).extendDeepAll,O=n(67824).overrideAll,w=n(85656),y=n(31780).templatedArray,p=n(60876),a=y("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});d.exports=O(y("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:a,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(b({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:c({})},font:c({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},60876:function(d){d.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(d,l,n){var c=n(3400),b=n(51272),i=n(89861),O=n(60876).name,w=i.steps;function y(a,u,h){function m(x,R){return c.coerce(a,u,i,x,R)}for(var v=b(a,u,{name:"steps",handleItemDefaults:p}),_=0,S=0;S0&&(Y=Y.transition().duration(X.transition.duration).ease(X.transition.easing)),Y.attr("transform",y(q-.5*u.gripWidth,X._dims.currentValueTotalHeight))}}function z(U,X){var te=U._dims;return te.inputAreaStart+u.stepInset+(te.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,X))}function $(U,X){var te=U._dims;return Math.min(1,Math.max(0,(X-u.stepInset-te.inputAreaStart)/(te.inputAreaLength-2*u.stepInset-2*te.inputAreaStart)))}function Q(U,X,te){var W=te._dims,K=w.ensureSingle(U,"rect",u.railTouchRectClass,function(oe){oe.call(D,X,U,te).style("pointer-events","all")});K.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,u.tickOffset+te.ticklen+W.labelHeight)}).call(i.fill,te.bgcolor).attr("opacity",0),O.setTranslate(K,0,W.currentValueTotalHeight)}function j(U,X){var te=X._dims,W=te.inputAreaLength-2*u.railInset,K=w.ensureSingle(U,"rect",u.railRectClass);K.attr({width:W,height:u.railWidth,rx:u.railRadius,ry:u.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,X.bordercolor).call(i.fill,X.bgcolor).style("stroke-width",X.borderwidth+"px"),O.setTranslate(K,u.railInset,.5*(te.inputAreaWidth-u.railWidth)+te.currentValueTotalHeight)}d.exports=function(U){var X=U._context.staticPlot,te=U._fullLayout,W=function(me,he){for(var se=me[u.name],ae=[],ce=0;ce0?[0]:[]);function oe(me){me._commandObserver&&(me._commandObserver.remove(),delete me._commandObserver),b.autoMargin(U,S(me))}if(K.enter().append("g").classed(u.containerClassName,!0).style("cursor",X?null:"ew-resize"),K.exit().each(function(){c.select(this).selectAll("g."+u.groupClassName).each(oe)}).remove(),W.length!==0){var q=K.selectAll("g."+u.groupClassName).data(W,A);q.enter().append("g").classed(u.groupClassName,!0),q.exit().each(oe).remove();for(var Y=0;Y0||De<0){var Oe={left:[-He,0],right:[He,0],top:[0,-He],bottom:[0,He]}[C.side];ae.attr("transform",y(Oe[0],Oe[1]))}}}return Y.call(ee),K&&(j?Y.on(".opacity",null):(z=0,$=!0,Y.text(T).on("mouseover.opacity",function(){c.select(this).transition().duration(h.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){c.select(this).transition().duration(h.HIDE_PLACEHOLDER).style("opacity",0)})),Y.call(u.makeEditable,{gd:_}).on("edit",function(se){E!==void 0?O.call("_guiRestyle",_,M,se,E):O.call("_guiRelayout",_,M,se)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ee)}).on("input",function(se){this.text(se||" ").call(u.positionText,L.x,L.y)})),Y.classed("js-placeholder",$),k}}},88444:function(d,l,n){var c=n(25376),b=n(22548),i=n(92880).extendFlat,O=n(67824).overrideAll,w=n(66741),y=n(31780).templatedArray,p=y("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});d.exports=O(y("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(w({editType:"arraydraw"}),{}),font:c({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:b.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(d){d.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(d,l,n){var c=n(3400),b=n(51272),i=n(88444),O=n(73712).name,w=i.buttons;function y(a,u,h){function m(v,_){return c.coerce(a,u,i,v,_)}m("visible",b(a,u,{name:"buttons",handleItemDefaults:p}).length>0)&&(m("active"),m("direction"),m("type"),m("showactive"),m("x"),m("y"),c.noneOrAll(a,u,["x","y"]),m("xanchor"),m("yanchor"),m("pad.t"),m("pad.r"),m("pad.b"),m("pad.l"),c.coerceFont(m,"font",h.font),m("bgcolor",h.paper_bgcolor),m("bordercolor"),m("borderwidth"))}function p(a,u){function h(m,v){return c.coerce(a,u,w,m,v)}h("visible",a.method==="skip"||Array.isArray(a.args))&&(h("method"),h("args"),h("args2"),h("label"),h("execute"))}d.exports=function(a,u){b(a,u,{name:O,handleItemDefaults:y})}},14420:function(d,l,n){var c=n(33428),b=n(7316),i=n(76308),O=n(43616),w=n(3400),y=n(72736),p=n(31780).arrayEditor,a=n(84284).LINE_SPACING,u=n(73712),h=n(37400);function m(z){return z._index}function v(z,$){return+z.attr(u.menuIndexAttrName)===$._index}function _(z,$,Q,j,U,X,te,W){$.active=te,p(z.layout,u.name,$).applyUpdate("active",te),$.type==="buttons"?A(z,j,null,null,$):$.type==="dropdown"&&(U.attr(u.menuIndexAttrName,"-1"),S(z,j,U,X,$),W||A(z,j,U,X,$))}function S(z,$,Q,j,U){var X=w.ensureSingle($,"g",u.headerClassName,function(Y){Y.style("pointer-events","all")}),te=U._dims,W=U.active,K=U.buttons[W]||u.blankHeaderOpts,oe={y:U.pad.t,yPad:0,x:U.pad.l,xPad:0,index:0},q={width:te.headerWidth,height:te.headerHeight};X.call(x,U,K,z).call(k,U,oe,q),w.ensureSingle($,"text",u.headerArrowClassName,function(Y){Y.attr("text-anchor","end").call(O.font,U.font).text(u.arrowSymbol[U.direction])}).attr({x:te.headerWidth-u.arrowOffsetX+U.pad.l,y:te.headerHeight/2+u.textOffsetY+U.pad.t}),X.on("click",function(){Q.call(I,String(v(Q,U)?-1:U._index)),A(z,$,Q,j,U)}),X.on("mouseover",function(){X.call(E)}),X.on("mouseout",function(){X.call(C,U)}),O.setTranslate($,te.lx,te.ly)}function A(z,$,Q,j,U){Q||(Q=$).attr("pointer-events","all");var X=function(ae){return+ae.attr(u.menuIndexAttrName)==-1}(Q)&&U.type!=="buttons"?[]:U.buttons,te=U.type==="dropdown"?u.dropdownButtonClassName:u.buttonClassName,W=Q.selectAll("g."+te).data(w.filterVisible(X)),K=W.enter().append("g").classed(te,!0),oe=W.exit();U.type==="dropdown"?(K.attr("opacity","0").transition().attr("opacity","1"),oe.transition().attr("opacity","0").remove()):oe.remove();var q=0,Y=0,ee=U._dims,me=["up","down"].indexOf(U.direction)!==-1;U.type==="dropdown"&&(me?Y=ee.headerHeight+u.gapButtonHeader:q=ee.headerWidth+u.gapButtonHeader),U.type==="dropdown"&&U.direction==="up"&&(Y=-u.gapButtonHeader+u.gapButton-ee.openHeight),U.type==="dropdown"&&U.direction==="left"&&(q=-u.gapButtonHeader+u.gapButton-ee.openWidth);var he={x:ee.lx+q+U.pad.l,y:ee.ly+Y+U.pad.t,yPad:u.gapButton,xPad:u.gapButton,index:0},se={l:he.x+U.borderwidth,t:he.y+U.borderwidth};W.each(function(ae,ce){var de=c.select(this);de.call(x,U,ae,z).call(k,U,he),de.on("click",function(){c.event.defaultPrevented||(ae.execute&&(ae.args2&&U.active===ce?(_(z,U,0,$,Q,j,-1),b.executeAPICommand(z,ae.method,ae.args2)):(_(z,U,0,$,Q,j,ce),b.executeAPICommand(z,ae.method,ae.args))),z.emit("plotly_buttonclicked",{menu:U,button:ae,active:U.active}))}),de.on("mouseover",function(){de.call(E)}),de.on("mouseout",function(){de.call(C,U),W.call(T,U)})}),W.call(T,U),me?(se.w=Math.max(ee.openWidth,ee.headerWidth),se.h=he.y-se.t):(se.w=he.x-se.l,se.h=Math.max(ee.openHeight,ee.headerHeight)),se.direction=U.direction,j&&(W.size()?function(ae,ce,de,ve,ye,_e){var Se,Te,Pe,Ie=ye.direction,ze=Ie==="up"||Ie==="down",De=ye._dims,He=ye.active;if(ze)for(Te=0,Pe=0;Pe0?[0]:[]);if(U.enter().append("g").classed(u.containerClassName,!0).style("cursor","pointer"),U.exit().each(function(){c.select(this).selectAll("g."+u.headerGroupClassName).each(j)}).remove(),Q.length!==0){var X=U.selectAll("g."+u.headerGroupClassName).data(Q,m);X.enter().append("g").classed(u.headerGroupClassName,!0);for(var te=w.ensureSingle(U,"g",u.dropdownButtonGroupClassName,function(Y){Y.style("pointer-events","all")}),W=0;Wk,$=w.barLength+2*w.barPad,Q=w.barWidth+2*w.barPad,j=x,U=M+T;U+Q>m&&(U=m-Q);var X=this.container.selectAll("rect.scrollbar-horizontal").data(z?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(b.fill,w.barColor),z?(this.hbar=X.attr({rx:w.barRadius,ry:w.barRadius,x:j,y:U,width:$,height:Q}),this._hbarXMin=j+$/2,this._hbarTranslateMax=k-$):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var te=T>I,W=w.barWidth+2*w.barPad,K=w.barLength+2*w.barPad,oe=x+R,q=M;oe+W>h&&(oe=h-W);var Y=this.container.selectAll("rect.scrollbar-vertical").data(te?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(b.fill,w.barColor),te?(this.vbar=Y.attr({rx:w.barRadius,ry:w.barRadius,x:oe,y:q,width:W,height:K}),this._vbarYMin=q+K/2,this._vbarTranslateMax=I-K):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,me=v-.5,he=te?_+W+.5:_+.5,se=S-.5,ae=z?A+Q+.5:A+.5,ce=u._topdefs.selectAll("#"+ee).data(z||te?[0]:[]);if(ce.exit().remove(),ce.enter().append("clipPath").attr("id",ee).append("rect"),z||te?(this._clipRect=ce.select("rect").attr({x:Math.floor(me),y:Math.floor(se),width:Math.ceil(he)-Math.floor(me),height:Math.ceil(ae)-Math.floor(se)}),this.container.call(i.setClipUrl,ee,this.gd),this.bg.attr({x,y:M,width:R,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),z||te){var de=c.behavior.drag().on("dragstart",function(){c.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var ve=c.behavior.drag().on("dragstart",function(){c.event.sourceEvent.preventDefault(),c.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));z&&this.hbar.on(".drag",null).call(ve),te&&this.vbar.on(".drag",null).call(ve)}this.setTranslate(p,a)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var y=this.translateX,p=this.translateY;this.hbar&&(y-=c.event.dx),this.vbar&&(p-=c.event.dy),this.setTranslate(y,p)},w.prototype._onBoxWheel=function(){var y=this.translateX,p=this.translateY;this.hbar&&(y+=c.event.deltaY),this.vbar&&(p+=c.event.deltaY),this.setTranslate(y,p)},w.prototype._onBarDrag=function(){var y=this.translateX,p=this.translateY;if(this.hbar){var a=y+this._hbarXMin,u=a+this._hbarTranslateMax;y=(O.constrain(c.event.x,a,u)-a)/(u-a)*(this.position.w-this._box.w)}if(this.vbar){var h=p+this._vbarYMin,m=h+this._vbarTranslateMax;p=(O.constrain(c.event.y,h,m)-h)/(m-h)*(this.position.h-this._box.h)}this.setTranslate(y,p)},w.prototype.setTranslate=function(y,p){var a=this.position.w-this._box.w,u=this.position.h-this._box.h;if(y=O.constrain(y||0,0,a),p=O.constrain(p||0,0,u),this.translateX=y,this.translateY=p,this.container.call(i.setTranslate,this._box.l-this.position.l-y,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+y-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var h=y/a;this.hbar.call(i.setTranslate,y+h*this._hbarTranslateMax,p)}if(this.vbar){var m=p/u;this.vbar.call(i.setTranslate,y,p+m*this._vbarTranslateMax)}}},84284:function(d){d.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(d){d.exports={axisRefDescription:function(l,n,c){return["If set to a",l,"axis id (e.g. *"+l+"* or","*"+l+"2*), the `"+l+"` position refers to a",l,"coordinate. If set to *paper*, the `"+l+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+c+"). If set to a",l,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+l+"2 domain* refers to the domain of the second",l," axis and a",l,"position of 0.5 refers to the","point between the",n,"and the",c,"of the domain of the","second",l,"axis."].join(" ")}}},48164:function(d){d.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(d){d.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(d){d.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(d){d.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(d){d.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(d){d.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(d){d.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(d,l){l.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],l.STYLE=l.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},9616:function(d,l){l.xmlns="http://www.w3.org/2000/xmlns/",l.svg="http://www.w3.org/2000/svg",l.xlink="http://www.w3.org/1999/xlink",l.svgAttrs={xmlns:l.svg,"xmlns:xlink":l.xlink}},64884:function(d,l,n){l.version=n(25788).version,n(88324),n(79288);for(var c=n(24040),b=l.register=c.register,i=n(22448),O=Object.keys(i),w=0;w",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(d,l){l.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},l.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},l.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},l.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},l.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},l.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},11864:function(d,l,n){var c=n(20435),b=c.mod,i=c.modHalf,O=Math.PI,w=2*O;function y(h){return Math.abs(h[1]-h[0])>w-1e-14}function p(h,m){return i(m-h,w)}function a(h,m){if(y(m))return!0;var v,_;m[0](_=b(_,w))&&(_+=w);var S=b(h,w),A=S+w;return S>=v&&S<=_||A>=v&&A<=_}function u(h,m,v,_,S,A,x){S=S||0,A=A||0;var R,M,T,E,C,L=y([v,_]);function D($,Q){return[$*Math.cos(Q)+S,A-$*Math.sin(Q)]}L?(R=0,M=O,T=w):v<_?(R=v,T=_):(R=_,T=v),h=S&&h<=A);var S,A},pathArc:function(h,m,v,_,S){return u(null,h,m,v,_,S,0)},pathSector:function(h,m,v,_,S){return u(null,h,m,v,_,S,1)},pathAnnulus:function(h,m,v,_,S,A){return u(h,m,v,_,S,A,1)}}},38116:function(d,l,n){var c=n(83160).decode,b=n(63620),i=Array.isArray,O=ArrayBuffer,w=DataView;function y(m){return O.isView(m)&&!(m instanceof w)}function p(m){return i(m)||y(m)}l.isTypedArray=y,l.isArrayOrTypedArray=p,l.isArray1D=function(m){return!p(m[0])},l.ensureArray=function(m,v){return i(m)||(m=[]),m.length=v,m};var a={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};function u(m){return m.constructor===ArrayBuffer}function h(m,v,_){if(p(m)){if(p(m[0])){for(var S=_,A=0;AR.max?A.set(x):A.set(+S)}},integer:{coerceFunction:function(S,A,x,R){S%1||!c(S)||R.min!==void 0&&SR.max?A.set(x):A.set(+S)}},string:{coerceFunction:function(S,A,x,R){if(typeof S!="string"){var M=typeof S=="number";R.strict!==!0&&M?A.set(String(S)):A.set(x)}else R.noBlank&&!S?A.set(x):A.set(S)}},color:{coerceFunction:function(S,A,x){b(S).isValid()?A.set(S):A.set(x)}},colorlist:{coerceFunction:function(S,A,x){Array.isArray(S)&&S.length&&S.every(function(R){return b(R).isValid()})?A.set(S):A.set(x)}},colorscale:{coerceFunction:function(S,A,x){A.set(O.get(S,x))}},angle:{coerceFunction:function(S,A,x){S==="auto"?A.set("auto"):c(S)?A.set(u(+S,360)):A.set(x)}},subplotid:{coerceFunction:function(S,A,x,R){var M=R.regex||a(x);typeof S=="string"&&M.test(S)?A.set(S):A.set(x)},validateFunction:function(S,A){var x=A.dflt;return S===x||typeof S=="string"&&!!a(x).test(S)}},flaglist:{coerceFunction:function(S,A,x,R){if((R.extras||[]).indexOf(S)===-1)if(typeof S=="string"){for(var M=S.split("+"),T=0;T=c&&X<=b?X:a}if(typeof X!="string"&&typeof X!="number")return a;X=String(X);var q=T(te),Y=X.charAt(0);!q||Y!=="G"&&Y!=="g"||(X=X.substr(1),te="");var ee=q&&te.substr(0,7)==="chinese",me=X.match(ee?R:x);if(!me)return a;var he=me[1],se=me[3]||"1",ae=Number(me[5]||1),ce=Number(me[7]||0),de=Number(me[9]||0),ve=Number(me[11]||0);if(q){if(he.length===2)return a;var ye;he=Number(he);try{var _e=S.getComponentMethod("calendars","getCal")(te);if(ee){var Se=se.charAt(se.length-1)==="i";se=parseInt(se,10),ye=_e.newDate(he,_e.toMonthIndex(he,se,Se),ae)}else ye=_e.newDate(he,Number(se),ae)}catch{return a}return ye?(ye.toJD()-_)*u+ce*h+de*m+ve*v:a}he=he.length===2?(Number(he)+2e3-M)%100+M:Number(he),se-=1;var Te=new Date(Date.UTC(2e3,se,ae,ce,de));return Te.setUTCFullYear(he),Te.getUTCMonth()!==se||Te.getUTCDate()!==ae?a:Te.getTime()+ve*v},c=l.MIN_MS=l.dateTime2ms("-9999"),b=l.MAX_MS=l.dateTime2ms("9999-12-31 23:59:59.9999"),l.isDateTime=function(X,te){return l.dateTime2ms(X,te)!==a};var C=90*u,L=3*h,D=5*m;function k(X,te,W,K,oe){if((te||W||K||oe)&&(X+=" "+E(te,2)+":"+E(W,2),(K||oe)&&(X+=":"+E(K,2),oe))){for(var q=4;oe%10==0;)q-=1,oe/=10;X+="."+E(oe,q)}return X}l.ms2DateTime=function(X,te,W){if(typeof X!="number"||!(X>=c&&X<=b))return a;te||(te=0);var K,oe,q,Y,ee,me,he=Math.floor(10*y(X+.05,1)),se=Math.round(X-he/10);if(T(W)){var ae=Math.floor(se/u)+_,ce=Math.floor(y(X,u));try{K=S.getComponentMethod("calendars","getCal")(W).fromJD(ae).formatDate("yyyy-mm-dd")}catch{K=A("G%Y-%m-%d")(new Date(se))}if(K.charAt(0)==="-")for(;K.length<11;)K="-0"+K.substr(1);else for(;K.length<10;)K="0"+K;oe=te=c+u&&X<=b-u))return a;var te=Math.floor(10*y(X+.05,1)),W=new Date(Math.round(X-te/10));return k(i("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+te)},l.cleanDate=function(X,te,W){if(X===a)return te;if(l.isJSDate(X)||typeof X=="number"&&isFinite(X)){if(T(W))return w.error("JS Dates and milliseconds are incompatible with world calendars",X),te;if(!(X=l.ms2DateTimeLocal(+X))&&te!==void 0)return te}else if(!l.isDateTime(X,W))return w.error("unrecognized date",X),te;return X};var I=/%\d?f/g,z=/%h/g,$={1:"1",2:"1",3:"2",4:"2"};function Q(X,te,W,K){X=X.replace(I,function(q){var Y=Math.min(+q.charAt(1)||6,6);return(te/1e3%1+2).toFixed(Y).substr(2).replace(/0+$/,"")||"0"});var oe=new Date(Math.floor(te+.05));if(X=X.replace(z,function(){return $[W("%q")(oe)]}),T(K))try{X=S.getComponentMethod("calendars","worldCalFmt")(X,te,K)}catch{return"Invalid"}return W(X)(oe)}var j=[59,59.9,59.99,59.999,59.9999];l.formatDate=function(X,te,W,K,oe,q){if(oe=T(oe)&&oe,!te)if(W==="y")te=q.year;else if(W==="m")te=q.month;else{if(W!=="d")return function(Y,ee){var me=y(Y+.05,u),he=E(Math.floor(me/h),2)+":"+E(y(Math.floor(me/m),60),2);if(ee!=="M"){O(ee)||(ee=0);var se=(100+Math.min(y(Y/v,60),j[ee])).toFixed(ee).substr(1);ee>0&&(se=se.replace(/0+$/,"").replace(/[\.]$/,"")),he+=":"+se}return he}(X,W)+` `+Q(q.dayMonthYear,X,K,oe);te=q.dayMonth+` -`+q.year}return Q(te,X,K,oe)};var U=3*u;l.incrementMonth=function(X,te,W){W=T(W)&&W;var K=y(X,u);if(X=Math.round(X-K),W)try{var oe=Math.round(X/u)+_,q=S.getComponentMethod("calendars","getCal")(W),Y=q.fromJD(oe);return te%12?q.add(Y,te,"m"):q.add(Y,te/12,"y"),(Y.toJD()-_)*u+K}catch{w.error("invalid ms "+X+" in calendar "+W)}var ee=new Date(X+U);return ee.setUTCMonth(ee.getUTCMonth()+te)+K-U},l.findExactDates=function(X,te){for(var W,K,oe=0,q=0,Y=0,ee=0,me=T(te)&&S.getComponentMethod("calendars","getCal")(te),he=0;he0&&k[I+1][0]<0)return I;return null}switch(A=C==="RUS"||C==="FJI"?function(k){var I;if(D(k)===null)I=k;else for(I=new Array(k.length),M=0;MI?z[$++]=[k[M][0]+360,k[M][1]]:M===I?(z[$++]=k[M],z[$++]=[k[M][0],-90]):z[$++]=k[M];var Q=h.tester(z);Q.pts.pop(),L.push(Q)}:function(k){L.push(h.tester(k))},T.type){case"MultiPolygon":for(x=0;xW&&(W=q,U=oe)}else U=X;return O.default(U).geometry.coordinates}(Q),z.fIn=k,z.fOut=Q,T.push(Q)}else p.log(["Location",z.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete M[I]}switch(x.type){case"FeatureCollection":var L=x.features;for(R=0;R100?(clearInterval(I),D("Unexpected error while fetching from "+C)):void k++},50)})}for(var T=0;T0&&(O.push(w),w=[])}return w.length>0&&O.push(w),O},l.makeLine=function(b){return b.length===1?{type:"LineString",coordinates:b[0]}:{type:"MultiLineString",coordinates:b}},l.makePolygon=function(b){if(b.length===1)return{type:"Polygon",coordinates:b};for(var i=new Array(b.length),O=0;O1||L<0||L>1?null:{x:p+A*L,y:a+M*L}}function y(p,a,u,h,m){var v=h*p+m*a;if(v<0)return h*h+m*m;if(v>u){var _=h-p,S=m-a;return _*_+S*S}var A=h*a-m*p;return A*A/u}l.segmentsIntersect=w,l.segmentDistance=function(p,a,u,h,m,v,_,S){if(w(p,a,u,h,m,v,_,S))return 0;var A=u-p,x=h-a,R=_-m,M=S-v,T=A*A+x*x,E=R*R+M*M,C=Math.min(y(A,x,T,m-p,v-a),y(A,x,T,_-p,S-a),y(R,M,E,p-m,a-v),y(R,M,E,u-m,h-v));return Math.sqrt(C)},l.getTextLocation=function(p,a,u,h){if(p===b&&h===i||(c={},b=p,i=h),c[u])return c[u];var m=p.getPointAtLength(O(u-h/2,a)),v=p.getPointAtLength(O(u+h/2,a)),_=Math.atan((v.y-m.y)/(v.x-m.x)),S=p.getPointAtLength(O(u,a)),A={x:(4*S.x+m.x+v.x)/6,y:(4*S.y+m.y+v.y)/6,theta:_};return c[u]=A,A},l.clearLocationCache=function(){b=null},l.getVisibleSegment=function(p,a,u){var h,m,v=a.left,_=a.right,S=a.top,A=a.bottom,x=0,R=p.getTotalLength(),M=R;function T(C){var L=p.getPointAtLength(C);C===0?h=L:C===R&&(m=L);var D=L.x_?L.x-_:0,k=L.yA?L.y-A:0;return Math.sqrt(D*D+k*k)}for(var E=T(x);E;){if((x+=E+u)>M)return;E=T(x)}for(E=T(M);E;){if(x>(M-=E+u))return;E=T(M)}return{min:x,max:M,len:M-x,total:R,isClosed:x===0&&M===R&&Math.abs(h.x-m.x)<.1&&Math.abs(h.y-m.y)<.1}},l.findPointOnPath=function(p,a,u,h){for(var m,v,_,S=(h=h||{}).pathLength||p.getTotalLength(),A=h.tolerance||.001,x=h.iterationLimit||30,R=p.getPointAtLength(0)[u]>p.getPointAtLength(S)[u]?-1:1,M=0,T=0,E=S;M0?E=m:T=m,M++}return v}},33040:function(d,l,n){var c=n(38248),b=n(49760),i=n(72160),O=n(8932),w=n(22548).defaultLine,y=n(38116).isArrayOrTypedArray,p=i(w);function a(m,v){var _=m;return _[3]*=v,_}function u(m){if(c(m))return p;var v=i(m);return v.length?v:p}function h(m){return c(m)?m:1}d.exports={formatColor:function(m,v,_){var S=m.color;S&&S._inputArray&&(S=S._inputArray);var A,x,R,M,T,E=y(S),C=y(v),L=O.extractOpts(m),D=[];if(A=L.colorscale!==void 0?O.makeColorScaleFuncFromTrace(m):u,x=E?function(I,z){return I[z]===void 0?p:i(A(I[z]))}:u,R=C?function(I,z){return I[z]===void 0?1:h(I[z])}:h,E||C)for(var k=0;k<_;k++)M=x(S,k),T=R(v,k),D[k]=a(M,T);else D=a(i(S),v);return D},parseColorScale:function(m){var v=O.extractOpts(m),_=v.colorscale;return v.reversescale&&(_=O.flipScale(v.colorscale)),_.map(function(S){var A=S[0],x=b(S[1]).toRgb();return{index:A,rgb:[x.r,x.g,x.b,x.a]}})}}},71688:function(d,l,n){var c=n(35536);function b(i){return[i]}d.exports={keyFun:function(i){return i.key},repeat:b,descend:c,wrap:b,unwrap:function(i){return i[0]}}},35536:function(d){d.exports=function(l){return l}},1396:function(d){d.exports=function(l,n){if(!n)return l;var c=1/Math.abs(n),b=c>1?(c*l+c*n)/c:l+n,i=String(b).length;if(i>16){var O=String(n).length;if(i>=String(l).length+O){var w=parseFloat(b).toPrecision(12);w.indexOf("e+")===-1&&(b=+w)}}return b}},3400:function(d,l,n){var c=n(33428),b=n(94336).E9,i=n(57624).E9,O=n(38248),w=n(39032),y=w.FP_SAFE,p=-y,a=w.BADNUM,u=d.exports={};u.adjustFormat=function(ce){return!ce||/^\d[.]\df/.test(ce)||/[.]\d%/.test(ce)?ce:ce==="0.f"?"~f":/^\d%/.test(ce)?"~%":/^\ds/.test(ce)?"~s":!/^[~,.0$]/.test(ce)&&/[&fps]/.test(ce)?"~"+ce:ce};var h={};u.warnBadFormat=function(ce){var de=String(ce);h[de]||(h[de]=1,u.warn('encountered bad format: "'+de+'"'))},u.noFormat=function(ce){return String(ce)},u.numberFormat=function(ce){var de;try{de=i(u.adjustFormat(ce))}catch{return u.warnBadFormat(ce),u.noFormat}return de},u.nestedProperty=n(22296),u.keyedContainer=n(37804),u.relativeAttr=n(23193),u.isPlainObject=n(63620),u.toLogRange=n(36896),u.relinkPrivateKeys=n(51528);var m=n(38116);u.isArrayBuffer=m.isArrayBuffer,u.isTypedArray=m.isTypedArray,u.isArrayOrTypedArray=m.isArrayOrTypedArray,u.isArray1D=m.isArray1D,u.ensureArray=m.ensureArray,u.concat=m.concat,u.maxRowLength=m.maxRowLength,u.minRowLength=m.minRowLength;var v=n(20435);u.mod=v.mod,u.modHalf=v.modHalf;var _=n(63064);u.valObjectMeta=_.valObjectMeta,u.coerce=_.coerce,u.coerce2=_.coerce2,u.coerceFont=_.coerceFont,u.coercePattern=_.coercePattern,u.coerceHoverinfo=_.coerceHoverinfo,u.coerceSelectionMarkerOpacity=_.coerceSelectionMarkerOpacity,u.validate=_.validate;var S=n(67555);u.dateTime2ms=S.dateTime2ms,u.isDateTime=S.isDateTime,u.ms2DateTime=S.ms2DateTime,u.ms2DateTimeLocal=S.ms2DateTimeLocal,u.cleanDate=S.cleanDate,u.isJSDate=S.isJSDate,u.formatDate=S.formatDate,u.incrementMonth=S.incrementMonth,u.dateTick0=S.dateTick0,u.dfltRange=S.dfltRange,u.findExactDates=S.findExactDates,u.MIN_MS=S.MIN_MS,u.MAX_MS=S.MAX_MS;var A=n(14952);u.findBin=A.findBin,u.sorterAsc=A.sorterAsc,u.sorterDes=A.sorterDes,u.distinctVals=A.distinctVals,u.roundUp=A.roundUp,u.sort=A.sort,u.findIndexOfMin=A.findIndexOfMin,u.sortObjectKeys=n(95376);var x=n(63084);u.aggNums=x.aggNums,u.len=x.len,u.mean=x.mean,u.median=x.median,u.midRange=x.midRange,u.variance=x.variance,u.stdev=x.stdev,u.interp=x.interp;var R=n(52248);u.init2dArray=R.init2dArray,u.transposeRagged=R.transposeRagged,u.dot=R.dot,u.translationMatrix=R.translationMatrix,u.rotationMatrix=R.rotationMatrix,u.rotationXYMatrix=R.rotationXYMatrix,u.apply3DTransform=R.apply3DTransform,u.apply2DTransform=R.apply2DTransform,u.apply2DTransform2=R.apply2DTransform2,u.convertCssMatrix=R.convertCssMatrix,u.inverseTransformMatrix=R.inverseTransformMatrix;var M=n(11864);u.deg2rad=M.deg2rad,u.rad2deg=M.rad2deg,u.angleDelta=M.angleDelta,u.angleDist=M.angleDist,u.isFullCircle=M.isFullCircle,u.isAngleInsideSector=M.isAngleInsideSector,u.isPtInsideSector=M.isPtInsideSector,u.pathArc=M.pathArc,u.pathSector=M.pathSector,u.pathAnnulus=M.pathAnnulus;var T=n(98308);u.isLeftAnchor=T.isLeftAnchor,u.isCenterAnchor=T.isCenterAnchor,u.isRightAnchor=T.isRightAnchor,u.isTopAnchor=T.isTopAnchor,u.isMiddleAnchor=T.isMiddleAnchor,u.isBottomAnchor=T.isBottomAnchor;var E=n(92348);u.segmentsIntersect=E.segmentsIntersect,u.segmentDistance=E.segmentDistance,u.getTextLocation=E.getTextLocation,u.clearLocationCache=E.clearLocationCache,u.getVisibleSegment=E.getVisibleSegment,u.findPointOnPath=E.findPointOnPath;var C=n(92880);u.extendFlat=C.extendFlat,u.extendDeep=C.extendDeep,u.extendDeepAll=C.extendDeepAll,u.extendDeepNoArrays=C.extendDeepNoArrays;var L=n(24248);u.log=L.log,u.warn=L.warn,u.error=L.error;var D=n(53756);u.counterRegex=D.counter;var k=n(91200);u.throttle=k.throttle,u.throttleDone=k.done,u.clearThrottle=k.clear;var I=n(52200);function z(ce){var de={};for(var ve in ce)for(var ye=ce[ve],_e=0;_ey||ce=de)&&O(ce)&&ce>=0&&ce%1==0},u.noop=n(16628),u.identity=n(35536),u.repeat=function(ce,de){for(var ve=new Array(de),ye=0;yeve?Math.max(ve,Math.min(de,ce)):Math.max(de,Math.min(ve,ce))},u.bBoxIntersect=function(ce,de,ve){return ve=ve||0,ce.left<=de.right+ve&&de.left<=ce.right+ve&&ce.top<=de.bottom+ve&&de.top<=ce.bottom+ve},u.simpleMap=function(ce,de,ve,ye,_e){for(var Se=ce.length,Te=new Array(Se),Pe=0;Pe=Math.pow(2,ve)?_e>10?(u.warn("randstr failed uniqueness"),Ie):ce(de,ve,ye,(_e||0)+1):Ie},u.OptionControl=function(ce,de){ce||(ce={}),de||(de="opt");var ve={optionList:[],_newoption:function(ye){ye[de]=ce,ve[ye.name]=ye,ve.optionList.push(ye)}};return ve["_"+de]=ce,ve},u.smooth=function(ce,de){if((de=Math.round(de)||0)<2)return ce;var ve,ye,_e,Se,Te=ce.length,Pe=2*Te,Ie=2*de-1,ze=new Array(Ie),De=new Array(Te);for(ve=0;ve=Pe&&(_e-=Pe*Math.floor(_e/Pe)),_e<0?_e=-1-_e:_e>=Te&&(_e=Pe-1-_e),Se+=ce[_e]*ze[ye];De[ve]=Se}return De},u.syncOrAsync=function(ce,de,ve){var ye;function _e(){return u.syncOrAsync(ce,de,ve)}for(;ce.length;)if((ye=(0,ce.splice(0,1)[0])(de))&&ye.then)return ye.then(_e);return ve&&ve(de)},u.stripTrailingSlash=function(ce){return ce.substr(-1)==="/"?ce.substr(0,ce.length-1):ce},u.noneOrAll=function(ce,de,ve){if(ce){var ye,_e=!1,Se=!0;for(ye=0;ye0?_e:0})},u.fillArray=function(ce,de,ve,ye){if(ye=ye||u.identity,u.isArrayOrTypedArray(ce))for(var _e=0;_e1?_e+Te[1]:"";if(Se&&(Te.length>1||Pe.length>4||ve))for(;ye.test(Pe);)Pe=Pe.replace(ye,"$1"+Se+"$2");return Pe+Ie},u.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;u.templateString=function(ce,de){var ve={};return ce.replace(u.TEMPLATE_STRING_REGEX,function(ye,_e){var Se;return W.test(_e)?Se=de[_e]:(ve[_e]=ve[_e]||u.nestedProperty(de,_e).get,Se=ve[_e]()),u.isValidTextValue(Se)?Se:""})};var K={max:10,count:0,name:"hovertemplate"};u.hovertemplateString=function(){return me.apply(K,arguments)};var oe={max:10,count:0,name:"texttemplate"};u.texttemplateString=function(){return me.apply(oe,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,Y={max:10,count:0,name:"texttemplate",parseMultDiv:!0};u.texttemplateStringForShapes=function(){return me.apply(Y,arguments)};var ee=/^[:|\|]/;function me(ce,de,ve){var ye=this,_e=arguments;de||(de={});var Se={};return ce.replace(u.TEMPLATE_STRING_REGEX,function(Te,Pe,Ie){var ze=Pe==="_xother"||Pe==="_yother",De=Pe==="_xother_"||Pe==="_yother_",He=Pe==="xother_"||Pe==="yother_",Ve=Pe==="xother"||Pe==="yother"||ze||He||De,$e=Pe;(ze||De)&&($e=$e.substring(1)),(He||De)&&($e=$e.substring(0,$e.length-1));var Oe,ke,Le,We=null,Ue=null;if(ye.parseMultDiv){var Ze=function(Ne){var je=Ne.match(q);return je?{key:je[1],op:je[2],number:Number(je[3])}:{key:Ne,op:null,number:null}}($e);$e=Ze.key,We=Ze.op,Ue=Ze.number}if(Ve){if((Oe=de[$e])===void 0)return""}else for(Le=3;Le<_e.length;Le++)if(ke=_e[Le]){if(ke.hasOwnProperty($e)){Oe=ke[$e];break}if(W.test($e)||(Oe=u.nestedProperty(ke,$e).get(),(Oe=Se[$e]||u.nestedProperty(ke,$e).get())&&(Se[$e]=Oe)),Oe!==void 0)break}if(Oe!==void 0&&(We==="*"&&(Oe*=Ue),We==="/"&&(Oe/=Ue)),Oe===void 0&&ye)return ye.count=48&&Te<=57,ze=Pe>=48&&Pe<=57;if(Ie&&(ye=10*ye+Te-48),ze&&(_e=10*_e+Pe-48),!Ie||!ze){if(ye!==_e)return ye-_e;if(Te!==Pe)return Te-Pe}}return _e-ye};var he=2e9;u.seedPseudoRandom=function(){he=2e9},u.pseudoRandom=function(){var ce=he;return he=(69069*he+1)%4294967296,Math.abs(he-ce)<429496729?u.pseudoRandom():he/4294967296},u.fillText=function(ce,de,ve){var ye=Array.isArray(ve)?function(Te){ve.push(Te)}:function(Te){ve.text=Te},_e=u.extractOption(ce,de,"htx","hovertext");if(u.isValidTextValue(_e))return ye(_e);var Se=u.extractOption(ce,de,"tx","text");return u.isValidTextValue(Se)?ye(Se):void 0},u.isValidTextValue=function(ce){return ce||ce===0},u.formatPercent=function(ce,de){de=de||0;for(var ve=(Math.round(100*ce*Math.pow(10,de))*Math.pow(.1,de)).toFixed(de)+"%",ye=0;ye1&&(ze=1):ze=0,u.strTranslate(_e-ze*(ve+Te),Se-ze*(ye+Pe))+u.strScale(ze)+(Ie?"rotate("+Ie+(de?"":" "+ve+" "+ye)+")":"")},u.setTransormAndDisplay=function(ce,de){ce.attr("transform",u.getTextTransform(de)),ce.style("display",de.scale?null:"none")},u.ensureUniformFontSize=function(ce,de){var ve=u.extendFlat({},de);return ve.size=Math.max(de.size,ce._fullLayout.uniformtext.minsize||0),ve},u.join2=function(ce,de,ve){var ye=ce.length;return ye>1?ce.slice(0,-1).join(de)+ve+ce[ye-1]:ce.join(de)},u.bigFont=function(ce){return Math.round(1.2*ce)};var se=u.getFirefoxVersion(),ae=se!==null&&se<86;u.getPositionFromD3Event=function(){return ae?[c.event.layerX,c.event.layerY]:[c.event.offsetX,c.event.offsetY]}},63620:function(d){d.exports=function(l){return window&&window.process&&window.process.versions?Object.prototype.toString.call(l)==="[object Object]":Object.prototype.toString.call(l)==="[object Object]"&&Object.getPrototypeOf(l).hasOwnProperty("hasOwnProperty")}},37804:function(d,l,n){var c=n(22296),b=/^\w*$/;d.exports=function(i,O,w,y){var p,a,u;w=w||"name",y=y||"value";var h={};O&&O.length?(u=c(i,O),a=u.get()):a=i,O=O||"";var m={};if(a)for(p=0;p2)return h[A]=2|h[A],_.set(S,null);if(v){for(p=A;p1){var w=["LOG:"];for(O=0;O1){var y=[];for(O=0;O"),"long")}},i.warn=function(){var O;if(c.logging>0){var w=["WARN:"];for(O=0;O0){var y=[];for(O=0;O"),"stick")}},i.error=function(){var O;if(c.logging>0){var w=["ERROR:"];for(O=0;O0){var y=[];for(O=0;O"),"stick")}}},30988:function(d,l,n){var c=n(33428);d.exports=function(b,i,O){var w=b.selectAll("g."+O.replace(/\s/g,".")).data(i,function(p){return p[0].trace.uid});w.exit().remove(),w.enter().append("g").attr("class",O),w.order();var y=b.classed("rangeplot")?"nodeRangePlot3":"node3";return w.each(function(p){p[0][y]=c.select(this)}),w}},52248:function(d,l,n){var c=n(36524);l.init2dArray=function(b,i){for(var O=new Array(b),w=0;wn/2?l-Math.round(l/n)*n:l}}},22296:function(d,l,n){var c=n(38248),b=n(38116).isArrayOrTypedArray;function i(h,m){return function(){var v,_,S,A,x,R=h;for(A=0;A/g),_=0;_a||M===b||Mh||x&&m(A))}:function(A,x){var R=A[0],M=A[1];if(R===b||Ra||M===b||Mh)return!1;var T,E,C,L,D,k=y.length,I=y[0][0],z=y[0][1],$=0;for(T=1;TMath.max(E,I)||M>Math.max(C,z)))if(M_||Math.abs(c(u,A))>p)return!0;return!1},i.filter=function(O,w){var y=[O[0]],p=0,a=0;function u(h){O.push(h);var m=y.length,v=p;y.splice(a+1);for(var _=v+1;_1&&u(O.pop()),{addPt:u,raw:O,filtered:y}}},5048:function(d,l,n){var c=n(16576),b=n(28624);d.exports=function(i,O,w){var y=i._fullLayout,p=!0;return y._glcanvas.each(function(a){if(a.regl)a.regl.preloadCachedCode(w);else if(!a.pick||y._has("parcoords")){try{a.regl=b({canvas:this,attributes:{antialias:!a.pick,preserveDrawingBuffer:!0},pixelRatio:i._context.plotGlPixelRatio||n.g.devicePixelRatio,extensions:O||[],cachedCode:w||{}})}catch{p=!1}a.regl||(p=!1),p&&this.addEventListener("webglcontextlost",function(u){i&&i.emit&&i.emit("plotly_webglcontextlost",{event:u,layer:a.key})},!1)}}),p||c({container:y._glcontainer.node()}),p}},34296:function(d,l,n){var c=n(38248),b=n(25928);d.exports=function(i){var O;if(typeof(O=i&&i.hasOwnProperty("userAgent")?i.userAgent:function(){var m;return typeof navigator<"u"&&(m=navigator.userAgent),m&&m.headers&&typeof m.headers["user-agent"]=="string"&&(m=m.headers["user-agent"]),m}())!="string")return!0;var w=b({ua:{headers:{"user-agent":O}},tablet:!0,featureDetect:!1});if(!w){for(var y=O.split(" "),p=1;p-1;a--){var u=y[a];if(u.substr(0,8)==="Version/"){var h=u.substr(8).split(".")[0];if(c(h)&&(h=+h),h>=13)return!0}}}return w}},52416:function(d){d.exports=function(l,n){if(n instanceof RegExp){for(var c=n.toString(),b=0;bb.queueLength&&(O.undoQueue.queue.shift(),O.undoQueue.index--))},startSequence:function(O){O.undoQueue=O.undoQueue||{index:0,queue:[],sequence:!1},O.undoQueue.sequence=!0,O.undoQueue.beginSequence=!0},stopSequence:function(O){O.undoQueue=O.undoQueue||{index:0,queue:[],sequence:!1},O.undoQueue.sequence=!1,O.undoQueue.beginSequence=!1},undo:function(O){var w,y;if(!(O.undoQueue===void 0||isNaN(O.undoQueue.index)||O.undoQueue.index<=0)){for(O.undoQueue.index--,w=O.undoQueue.queue[O.undoQueue.index],O.undoQueue.inSequence=!0,y=0;y=O.undoQueue.queue.length)){for(w=O.undoQueue.queue[O.undoQueue.index],O.undoQueue.inSequence=!0,y=0;ym}function u(h,m){return h>=m}l.findBin=function(h,m,v){if(c(m.start))return v?Math.ceil((h-m.start)/m.size-w)-1:Math.floor((h-m.start)/m.size+w);var _,S,A=0,x=m.length,R=0,M=x>1?(m[x-1]-m[0])/(x-1):1;for(S=M>=0?v?y:p:v?u:a,h+=M*w*(v?-1:1)*(M>=0?1:-1);A90&&b.log("Long binary search..."),A-1},l.sorterAsc=function(h,m){return h-m},l.sorterDes=function(h,m){return m-h},l.distinctVals=function(h){var m,v=h.slice();for(v.sort(l.sorterAsc),m=v.length-1;m>-1&&v[m]===O;m--);for(var _,S=v[m]-v[0]||1,A=S/(m||1)/1e4,x=[],R=0;R<=m;R++){var M=v[R],T=M-_;_===void 0?(x.push(M),_=M):T>A&&(S=Math.min(S,T),x.push(M),_=M)}return{vals:x,minDiff:S}},l.roundUp=function(h,m,v){for(var _,S=0,A=m.length-1,x=0,R=v?0:1,M=v?1:0,T=v?Math.ceil:Math.floor;S0&&(_=1),v&&_)return h.sort(m)}return _?h:h.reverse()},l.findIndexOfMin=function(h,m){m=m||i;for(var v,_=1/0,S=0;Sw.length)&&(y=w.length),c(O)||(O=!1),b(w[0])){for(a=new Array(y),p=0;pi.length-1)return i[i.length-1];var w=O%1;return w*i[Math.ceil(O)]+(1-w)*i[Math.floor(O)]}},43080:function(d,l,n){var c=n(72160);d.exports=function(b){return b?c(b):[0,0,0,1]}},9188:function(d,l,n){var c=n(2264),b=n(43616),i=n(3400),O=null;d.exports=function(){if(O!==null)return O;O=!1;var w=i.isIE()||i.isSafari()||i.isIOS();if(window.navigator.userAgent&&!w){var y=Array.from(c.CSS_DECLARATIONS).reverse(),p=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof p=="function")O=y.some(function(h){return p.apply(null,h)});else{var a=b.tester.append("image").attr("style",c.STYLE),u=window.getComputedStyle(a.node()).imageRendering;O=y.some(function(h){var m=h[1];return u===m||u===m.toLowerCase()}),a.remove()}}return O}},72736:function(d,l,n){var c=n(33428),b=n(3400),i=b.strTranslate,O=n(9616),w=n(84284).LINE_SPACING,y=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;l.convertToTspans=function(X,te,W){var K=X.text(),oe=!X.attr("data-notex")&&te&&te._context.typesetMath&&typeof MathJax<"u"&&K.match(y),q=c.select(X.node().parentNode);if(!q.empty()){var Y=X.attr("class")?X.attr("class").split(" ")[0]:"text";return Y+="-math",q.selectAll("svg."+Y).remove(),q.selectAll("g."+Y+"-group").remove(),X.style("display",null).attr({"data-unformatted":K,"data-math":"N"}),oe?(te&&te._promises||[]).push(new Promise(function(me){X.style("display","none");var he=parseInt(X.node().style.fontSize,10),se={fontSize:he};(function(ae,ce,de){var ve,ye,_e,Se,Te=parseInt((MathJax.version||"").split(".")[0]);if(Te===2||Te===3){var Pe=function(){var ze="math-output-"+b.randstr({},64),De=(Se=c.select("body").append("div").attr({id:ze}).style({visibility:"hidden",position:"absolute","font-size":ce.fontSize+"px"}).text(ae.replace(p,"\\lt ").replace(a,"\\gt "))).node();return Te===2?MathJax.Hub.Typeset(De):MathJax.typeset([De])},Ie=function(){var ze=Se.select(Te===2?".MathJax_SVG":".MathJax"),De=!ze.empty()&&Se.select("svg").node();if(De){var He,Ve=De.getBoundingClientRect();He=Te===2?c.select("body").select("#MathJax_SVG_glyphs"):ze.select("defs"),de(ze,He,Ve)}else b.log("There was an error in the tex syntax.",ae),de();Se.remove()};Te===2?MathJax.Hub.Queue(function(){return ye=b.extendDeepAll({},MathJax.Hub.config),_e=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:u},displayAlign:"left"})},function(){if((ve=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},Pe,Ie,function(){if(ve!=="SVG")return MathJax.Hub.setRenderer(ve)},function(){return _e!==void 0&&(MathJax.Hub.processSectionDelay=_e),MathJax.Hub.Config(ye)}):Te===3&&(ye=b.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=u,(ve=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){Pe(),Ie(),ve!=="svg"&&(MathJax.config.startup.output=ve),MathJax.config=ye}))}else b.warn("No MathJax version:",MathJax.version)})(oe[2],se,function(ae,ce,de){q.selectAll("svg."+Y).remove(),q.selectAll("g."+Y+"-group").remove();var ve=ae&&ae.select("svg");if(!ve||!ve.node())return ee(),void me();var ye=q.append("g").classed(Y+"-group",!0).attr({"pointer-events":"none","data-unformatted":K,"data-math":"Y"});ye.node().appendChild(ve.node()),ce&&ce.node()&&ve.node().insertBefore(ce.node().cloneNode(!0),ve.node().firstChild);var _e=de.width,Se=de.height;ve.attr({class:Y,height:Se,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var Te=X.node().style.fill||"black",Pe=ve.select("g");Pe.attr({fill:Te,stroke:Te});var Ie=Pe.node().getBoundingClientRect(),ze=Ie.width,De=Ie.height;(ze>_e||De>Se)&&(ve.style("overflow","hidden"),ze=(Ie=ve.node().getBoundingClientRect()).width,De=Ie.height);var He=+X.attr("x"),Ve=+X.attr("y"),$e=-(he||X.node().getBoundingClientRect().height)/4;if(Y[0]==="y")ye.attr({transform:"rotate("+[-90,He,Ve]+")"+i(-ze/2,$e-De/2)});else if(Y[0]==="l")Ve=$e-De/2;else if(Y[0]==="a"&&Y.indexOf("atitle")!==0)He=0,Ve=$e;else{var Oe=X.attr("text-anchor");He-=ze*(Oe==="middle"?.5:Oe==="end"?1:0),Ve=Ve+$e-De/2}ve.attr({x:He,y:Ve}),W&&W.call(X,ye),me(ye)})})):ee(),X}function ee(){q.empty()||(Y=X.attr("class")+"-math",q.select("svg."+Y).remove()),X.text("").style("white-space","pre");var me=function(he,se){se=se.replace(A," ");var ae,ce=!1,de=[],ve=-1;function ye(){ve++;var Ue=document.createElementNS(O.svg,"tspan");c.select(Ue).attr({class:"line",dy:ve*w+"em"}),he.appendChild(Ue),ae=Ue;var Ze=de;if(de=[{node:Ue}],Ze.length>1)for(var Xe=1;Xe doesnt match end tag <"+Ue+">. Pretending it did match.",se),ae=de[de.length-1].node}else b.log("Ignoring unexpected end tag .",se)}M.test(se)?ye():(ae=he,de=[{node:he}]);for(var Pe=se.split(x),Ie=0;Ie|>|>)/g,u=[["$","$"],["\\(","\\)"]],h={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},m={sub:"0.3em",sup:"-0.6em"},v={sub:"-0.21em",sup:"0.42em"},_="​",S=["http:","https:","mailto:","",void 0,":"],A=l.NEWLINES=/(\r\n?|\n)/g,x=/(<[^<>]*>)/,R=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;l.BR_TAG_ALL=//gi;var T=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,E=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,C=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,L=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function D(X,te){if(!X)return null;var W=X.match(te),K=W&&(W[3]||W[4]);return K&&$(K)}var k=/(^|;)\s*color:/;l.plainText=function(X,te){for(var W=(te=te||{}).len!==void 0&&te.len!==-1?te.len:1/0,K=te.allowedTags!==void 0?te.allowedTags:["br"],oe=X.split(x),q=[],Y="",ee=0,me=0;me3?q.push(he.substr(0,de-3)+"..."):q.push(he.substr(0,de));break}Y=""}}return q.join("")};var I={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},z=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function $(X){return X.replace(z,function(te,W){return(W.charAt(0)==="#"?function(K){if(!(K>1114111)){var oe=String.fromCodePoint;if(oe)return oe(K);var q=String.fromCharCode;return K<=65535?q(K):q(55232+(K>>10),K%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):I[W])||te})}function Q(X){var te=encodeURI(decodeURI(X)),W=document.createElement("a"),K=document.createElement("a");W.href=X,K.href=te;var oe=W.protocol,q=K.protocol;return S.indexOf(oe)!==-1&&S.indexOf(q)!==-1?te:""}function j(X,te,W){var K,oe,q,Y=W.horizontalAlign,ee=W.verticalAlign||"top",me=X.node().getBoundingClientRect(),he=te.node().getBoundingClientRect();return oe=ee==="bottom"?function(){return me.bottom-K.height}:ee==="middle"?function(){return me.top+(me.height-K.height)/2}:function(){return me.top},q=Y==="right"?function(){return me.right-K.width}:Y==="center"?function(){return me.left+(me.width-K.width)/2}:function(){return me.left},function(){K=this.node().getBoundingClientRect();var se=q()-he.left,ae=oe()-he.top,ce=W.gd||{};if(W.gd){ce._fullLayout._calcInverseTransform(ce);var de=b.apply3DTransform(ce._fullLayout._invTransform)(se,ae);se=de[0],ae=de[1]}return this.style({top:ae+"px",left:se+"px","z-index":1e3}),this}}l.convertEntities=$,l.sanitizeHTML=function(X){X=X.replace(A," ");for(var te=document.createElement("p"),W=te,K=[],oe=X.split(x),q=0;qw.ts+i?a():w.timer=setTimeout(function(){a(),w.timer=null},i)},l.done=function(b){var i=n[b];return i&&i.timer?new Promise(function(O){var w=i.onDone;i.onDone=function(){w&&w(),O(),i.onDone=null}}):Promise.resolve()},l.clear=function(b){if(b)c(n[b]),delete n[b];else for(var i in n)l.clear(i)}},36896:function(d,l,n){var c=n(38248);d.exports=function(b,i){if(b>0)return Math.log(b)/Math.LN10;var O=Math.log(Math.min(i[0],i[1]))/Math.LN10;return c(O)||(O=Math.log(Math.max(i[0],i[1]))/Math.LN10-6),O}},59972:function(d,l,n){var c=d.exports={},b=n(79552).locationmodeToLayer,i=n(55712).NO;c.getTopojsonName=function(O){return[O.scope.replace(/ /g,"-"),"_",O.resolution.toString(),"m"].join("")},c.getTopojsonPath=function(O,w){return O+w+".json"},c.getTopojsonFeatures=function(O,w){var y=b[O.locationmode],p=w.objects[y];return i(w,p).features}},11680:function(d){d.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(d){d.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(d,l,n){var c=n(24040);d.exports=function(b){for(var i,O,w=c.layoutArrayContainers,y=c.layoutArrayRegexes,p=b.split("[")[0],a=0;a0&&O.log("Clearing previous rejected promises from queue."),E._promises=[]},l.cleanLayout=function(E){var C,L;E||(E={}),E.xaxis1&&(E.xaxis||(E.xaxis=E.xaxis1),delete E.xaxis1),E.yaxis1&&(E.yaxis||(E.yaxis=E.yaxis1),delete E.yaxis1),E.scene1&&(E.scene||(E.scene=E.scene1),delete E.scene1);var D=(w.subplotsRegistry.cartesian||{}).attrRegex,k=(w.subplotsRegistry.polar||{}).attrRegex,I=(w.subplotsRegistry.ternary||{}).attrRegex,z=(w.subplotsRegistry.gl3d||{}).attrRegex,$=Object.keys(E);for(C=0;C<$.length;C++){var Q=$[C];if(D&&D.test(Q)){var j=E[Q];j.anchor&&j.anchor!=="free"&&(j.anchor=a(j.anchor)),j.overlaying&&(j.overlaying=a(j.overlaying)),j.type||(j.isdate?j.type="date":j.islog?j.type="log":j.isdate===!1&&j.islog===!1&&(j.type="linear")),j.autorange!=="withzero"&&j.autorange!=="tozero"||(j.autorange=!0,j.rangemode="tozero"),j.insiderange&&delete j.range,delete j.islog,delete j.isdate,delete j.categories,x(j,"domain")&&delete j.domain,j.autotick!==void 0&&(j.tickmode===void 0&&(j.tickmode=j.autotick?"auto":"linear"),delete j.autotick),v(j)}else if(k&&k.test(Q))v(E[Q].radialaxis);else if(I&&I.test(Q)){var U=E[Q];v(U.aaxis),v(U.baxis),v(U.caxis)}else if(z&&z.test(Q)){var X=E[Q],te=X.cameraposition;if(Array.isArray(te)&&te[0].length===4){var W=te[0],K=te[1],oe=te[2],q=b([],W),Y=[];for(L=0;L<3;++L)Y[L]=K[L]+oe*q[2+4*L];X.camera={eye:{x:Y[0],y:Y[1],z:Y[2]},center:{x:K[0],y:K[1],z:K[2]},up:{x:0,y:0,z:1}},delete X.cameraposition}v(X.xaxis),v(X.yaxis),v(X.zaxis)}}var ee=Array.isArray(E.annotations)?E.annotations.length:0;for(C=0;C3?(de.x=1.02,de.xanchor="left"):de.x<-2&&(de.x=-.02,de.xanchor="right"),de.y>3?(de.y=1.02,de.yanchor="bottom"):de.y<-2&&(de.y=-.02,de.yanchor="top")),v(E),E.dragmode==="rotate"&&(E.dragmode="orbit"),p.clean(E),E.template&&E.template.layout&&l.cleanLayout(E.template.layout),E},l.cleanData=function(E){for(var C=0;C0)return E.substr(0,C)}l.hasParent=function(E,C){for(var L=M(C);L;){if(L in E)return!0;L=M(L)}return!1};var T=["x","y","z"];l.clearAxisTypes=function(E,C,L){for(var D=0;D1&&i.warn("Full array edits are incompatible with other edits",_);var E=h[""][""];if(p(E))u.set(null);else{if(!Array.isArray(E))return i.warn("Unrecognized full array edit value",_,E),!0;u.set(E)}return!R&&(S(M,T),A(a),!0)}var C,L,D,k,I,z,$,Q,j=Object.keys(h).map(Number).sort(O),U=u.get(),X=U||[],te=v(T,_).get(),W=[],K=-1,oe=X.length;for(C=0;CX.length-($?0:1))i.warn("index out of range",_,D);else if(z!==void 0)I.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",_,D),p(z)?W.push(D):$?(z==="add"&&(z={}),X.splice(D,0,z),te&&te.splice(D,0,{})):i.warn("Unrecognized full object edit value",_,D,z),K===-1&&(K=D);else for(L=0;L=0;C--)X.splice(W[C],1),te&&te.splice(W[C],1);if(X.length?U||u.set(X):u.set(null),R)return!1;if(S(M,T),x!==b){var q;if(K===-1)q=j;else{for(oe=Math.max(X.length,oe),q=[],C=0;C=K);C++)q.push(D);for(C=K;C=Ue.data.length||Ee<-Ue.data.length)throw new Error(Xe+" must be valid indices for gd.data.");if(Ze.indexOf(Ee,tt+1)>-1||Ee>=0&&Ze.indexOf(-Ue.data.length+Ee)>-1||Ee<0&&Ze.indexOf(Ue.data.length+Ee)>-1)throw new Error("each index in "+Xe+" must be unique.")}}function te(Ue,Ze,Xe){if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(Ze===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(Ze)||(Ze=[Ze]),X(Ue,Ze,"currentIndices"),Xe===void 0||Array.isArray(Xe)||(Xe=[Xe]),Xe!==void 0&&X(Ue,Xe,"newIndices"),Xe!==void 0&&Ze.length!==Xe.length)throw new Error("current and new indices must be of equal length.")}function W(Ue,Ze,Xe,tt,Ee){(function(wt,Dt,It,qt){var en=O.isPlainObject(qt);if(!Array.isArray(wt.data))throw new Error("gd.data must be an array");if(!O.isPlainObject(Dt))throw new Error("update must be a key:value object");if(It===void 0)throw new Error("indices must be an integer or array of integers");for(var Gt in X(wt,It,"indices"),Dt){if(!Array.isArray(Dt[Gt])||Dt[Gt].length!==It.length)throw new Error("attribute "+Gt+" must be an array of length equal to indices array length");if(en&&(!(Gt in qt)||!Array.isArray(qt[Gt])||qt[Gt].length!==Dt[Gt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(Ue,Ze,Xe,tt);for(var Ne=function(wt,Dt,It,qt){var en,Gt,Ct,_t,nn,gn=O.isPlainObject(qt),bn=[];for(var mn in Array.isArray(It)||(It=[It]),It=U(It,wt.data.length-1),Dt)for(var vt=0;vt-1&&Xe.indexOf("grouptitlefont")===-1?nt(Xe,Xe.replace("titlefont","title.font")):Xe.indexOf("titleposition")>-1?nt(Xe,Xe.replace("titleposition","title.position")):Xe.indexOf("titleside")>-1?nt(Xe,Xe.replace("titleside","title.side")):Xe.indexOf("titleoffset")>-1&&nt(Xe,Xe.replace("titleoffset","title.offset")):nt(Xe,Xe.replace("title","title.text"));function nt(ot,Ge){Ue[Ge]=Ue[ot],delete Ue[ot]}}function se(Ue,Ze,Xe){Ue=O.getGraphDiv(Ue),C.clearPromiseQueue(Ue);var tt={};if(typeof Ze=="string")tt[Ze]=Xe;else{if(!O.isPlainObject(Ze))return O.warn("Relayout fail.",Ze,Xe),Promise.reject();tt=O.extendFlat({},Ze)}Object.keys(tt).length&&(Ue.changed=!0);var Ee=_e(Ue,tt),Ne=Ee.flags;Ne.calc&&(Ue.calcdata=void 0);var je=[h.previousPromises];Ne.layoutReplot?je.push(L.layoutReplot):Object.keys(tt).length&&(ae(Ue,Ne,Ee)||h.supplyDefaults(Ue),Ne.legend&&je.push(L.doLegend),Ne.layoutstyle&&je.push(L.layoutStyles),Ne.axrange&&ce(je,Ee.rangesAltered),Ne.ticks&&je.push(L.doTicksRelayout),Ne.modebar&&je.push(L.doModeBar),Ne.camera&&je.push(L.doCamera),Ne.colorbars&&je.push(L.doColorBars),je.push(z)),je.push(h.rehover,h.redrag,h.reselect),p.add(Ue,se,[Ue,Ee.undoit],se,[Ue,Ee.redoit]);var nt=O.syncOrAsync(je,Ue);return nt&&nt.then||(nt=Promise.resolve(Ue)),nt.then(function(){return Ue.emit("plotly_relayout",Ee.eventData),Ue})}function ae(Ue,Ze,Xe){var tt,Ee,Ne=Ue._fullLayout;if(!Ze.axrange)return!1;for(var je in Ze)if(je!=="axrange"&&Ze[je])return!1;var nt=function(Dt,It){return O.coerce(tt,Ee,_,Dt,It)},ot={};for(var Ge in Xe.rangesAltered){var ht=m.id2name(Ge);if(tt=Ue.layout[ht],Ee=Ne[ht],v(tt,Ee,nt,ot),Ee._matchGroup){for(var pt in Ee._matchGroup)if(pt!==Ge){var wt=Ne[m.id2name(pt)];wt.autorange=Ee.autorange,wt.range=Ee.range.slice(),wt._input.range=Ee.range.slice()}}}return!0}function ce(Ue,Ze){var Xe=Ze?function(tt){var Ee=[];for(var Ne in Ze){var je=m.getFromId(tt,Ne);if(Ee.push(Ne),(je.ticklabelposition||"").indexOf("inside")!==-1&&je._anchorAxis&&Ee.push(je._anchorAxis._id),je._matchGroup)for(var nt in je._matchGroup)Ze[nt]||Ee.push(nt)}return m.draw(tt,Ee,{skipTitle:!0})}:function(tt){return m.draw(tt,"redraw")};Ue.push(M,L.doAutoRangeAndConstraints,Xe,L.drawData,L.finalDraw)}var de=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,ve=/^[xyz]axis[0-9]*\.autorange$/,ye=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function _e(Ue,Ze){var Xe,tt,Ee,Ne=Ue.layout,je=Ue._fullLayout,nt=je._guiEditing,ot=Y(je._preGUI,nt),Ge=Object.keys(Ze),ht=m.list(Ue),pt=O.extendDeepAll({},Ze),wt={};for(he(Ze),Ge=Object.keys(Ze),tt=0;tt0&&typeof vt.parts[lt]!="string";)lt--;var yt=vt.parts[lt],zt=vt.parts[lt-1]+"."+yt,Rt=vt.parts.slice(0,lt).join("."),it=w(Ue.layout,Rt).get(),at=w(je,Rt).get(),Lt=vt.get();if(bt!==void 0){Gt[mn]=bt,Ct[mn]=yt==="reverse"?bt:q(Lt);var xt=u.getLayoutValObject(je,vt.parts);if(xt&&xt.impliedEdits&&bt!==null)for(var Ht in xt.impliedEdits)_t(O.relativeAttr(mn,Ht),xt.impliedEdits[Ht]);if(["width","height"].indexOf(mn)!==-1)if(bt){_t("autosize",null);var Xt=mn==="height"?"width":"height";_t(Xt,je[Xt])}else je[mn]=Ue._initialAutoSize[mn];else if(mn==="autosize")_t("width",bt?null:je.width),_t("height",bt?null:je.height);else if(zt.match(de))bn(zt),w(je,Rt+"._inputRange").set(null);else if(zt.match(ve)){bn(zt),w(je,Rt+"._inputRange").set(null);var Yt=w(je,Rt).get();Yt._inputDomain&&(Yt._input.domain=Yt._inputDomain.slice())}else zt.match(ye)&&w(je,Rt+"._inputDomain").set(null);if(yt==="type"){nn=it;var Qt=at.type==="linear"&&bt==="log",Pt=at.type==="log"&&bt==="linear";if(Qt||Pt){if(nn&&nn.range)if(at.autorange)Qt&&(nn.range=nn.range[1]>nn.range[0]?[1,2]:[2,1]);else{var tn=nn.range[0],Kt=nn.range[1];Qt?(tn<=0&&Kt<=0&&_t(Rt+".autorange",!0),tn<=0?tn=Kt/1e6:Kt<=0&&(Kt=tn/1e6),_t(Rt+".range[0]",Math.log(tn)/Math.LN10),_t(Rt+".range[1]",Math.log(Kt)/Math.LN10)):(_t(Rt+".range[0]",Math.pow(10,tn)),_t(Rt+".range[1]",Math.pow(10,Kt)))}else _t(Rt+".autorange",!0);Array.isArray(je._subplots.polar)&&je._subplots.polar.length&&je[vt.parts[0]]&&vt.parts[1]==="radialaxis"&&delete je[vt.parts[0]]._subplot.viewInitial["radialaxis.range"],a.getComponentMethod("annotations","convertCoords")(Ue,at,bt,_t),a.getComponentMethod("images","convertCoords")(Ue,at,bt,_t)}else _t(Rt+".autorange",!0),_t(Rt+".range",null);w(je,Rt+"._inputRange").set(null)}else if(yt.match(k)){var fn=w(je,mn).get(),dn=(bt||{}).type;dn&&dn!=="-"||(dn="linear"),a.getComponentMethod("annotations","convertCoords")(Ue,fn,dn,_t),a.getComponentMethod("images","convertCoords")(Ue,fn,dn,_t)}var vn=E.containerArrayMatch(mn);if(vn){Xe=vn.array,tt=vn.index;var Nn=vn.property,er=xt||{editType:"calc"};tt!==""&&Nn===""&&(E.isAddVal(bt)?Ct[mn]=null:E.isRemoveVal(bt)?Ct[mn]=(w(Ne,Xe).get()||[])[tt]:O.warn("unrecognized full object value",Ze)),D.update(en,er),wt[Xe]||(wt[Xe]={});var En=wt[Xe][tt];En||(En=wt[Xe][tt]={}),En[Nn]=bt,delete Ze[mn]}else yt==="reverse"?(it.range?it.range.reverse():(_t(Rt+".autorange",!0),it.range=[1,0]),at.autorange?en.calc=!0:en.plot=!0):(mn==="dragmode"&&(bt===!1&&Lt!==!1||bt!==!1&&Lt===!1)||je._has("scatter-like")&&je._has("regl")&&mn==="dragmode"&&(bt==="lasso"||bt==="select")&&Lt!=="lasso"&&Lt!=="select"||je._has("gl2d")?en.plot=!0:xt?D.update(en,xt):en.calc=!0,vt.set(bt))}}for(Xe in wt)E.applyContainerArrayChanges(Ue,ot(Ne,Xe),wt[Xe],en,ot)||(en.plot=!0);for(var In in gn){var Un=(nn=m.getFromId(Ue,In))&&nn._constraintGroup;if(Un)for(var xr in en.calc=!0,Un)gn[xr]||(m.getFromId(Ue,xr)._constraintShrinkable=!0)}(Se(Ue)||Ze.height||Ze.width)&&(en.plot=!0);var Sr=je.shapes;for(tt=0;tt1;)if(tt.pop(),(Xe=w(Ze,tt.join(".")+".uirevision").get())!==void 0)return Xe;return Ze.uirevision}function Ve(Ue,Ze){for(var Xe=0;Xe=Ee.length?Ee[0]:Ee[Ge]:Ee}function nt(Ge){return Array.isArray(Ne)?Ge>=Ne.length?Ne[0]:Ne[Ge]:Ne}function ot(Ge,ht){var pt=0;return function(){if(Ge&&++pt===ht)return Ge()}}return tt._frameWaitingCnt===void 0&&(tt._frameWaitingCnt=0),new Promise(function(Ge,ht){function pt(){Ue.emit("plotly_animating"),tt._lastFrameAt=-1/0,tt._timeToNext=0,tt._runningTransitions=0,tt._currentFrame=null;var mn=function(){tt._animationRaf=window.requestAnimationFrame(mn),Date.now()-tt._lastFrameAt>tt._timeToNext&&function(){tt._currentFrame&&tt._currentFrame.onComplete&&tt._currentFrame.onComplete();var vt=tt._currentFrame=tt._frameQueue.shift();if(vt){var bt=vt.name?vt.name.toString():null;Ue._fullLayout._currentFrame=bt,tt._lastFrameAt=Date.now(),tt._timeToNext=vt.frameOpts.duration,h.transition(Ue,vt.frame.data,vt.frame.layout,C.coerceTraceIndices(Ue,vt.frame.traces),vt.frameOpts,vt.transitionOpts).then(function(){vt.onComplete&&vt.onComplete()}),Ue.emit("plotly_animatingframe",{name:bt,frame:vt.frame,animation:{frame:vt.frameOpts,transition:vt.transitionOpts}})}else Ue.emit("plotly_animated"),window.cancelAnimationFrame(tt._animationRaf),tt._animationRaf=null}()};mn()}var wt,Dt,It=0;function qt(mn){return Array.isArray(Ee)?It>=Ee.length?mn.transitionOpts=Ee[It]:mn.transitionOpts=Ee[0]:mn.transitionOpts=Ee,It++,mn}var en=[],Gt=Ze==null,Ct=Array.isArray(Ze);if(Gt||Ct||!O.isPlainObject(Ze)){if(Gt||["string","number"].indexOf(typeof Ze)!==-1)for(wt=0;wt0&&gngn)&&bn.push(Dt);en=bn}}en.length>0?function(mn){if(mn.length!==0){for(var vt=0;vt=0;tt--)if(O.isPlainObject(Ze[tt])){var wt=Ze[tt].name,Dt=(ot[wt]||pt[wt]||{}).name,It=Ze[tt].name,qt=ot[Dt]||pt[Dt];Dt&&It&&typeof It=="number"&&qt&&I<5&&(I++,O.warn('addFrames: overwriting frame "'+(ot[Dt]||pt[Dt]).name+'" with a frame whose name of type "number" also equates to "'+Dt+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),I===5&&O.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),pt[wt]={name:wt},ht.push({frame:h.supplyFrameDefaults(Ze[tt]),index:Xe&&Xe[tt]!==void 0&&Xe[tt]!==null?Xe[tt]:Ge+tt})}ht.sort(function(mn,vt){return mn.index>vt.index?-1:mn.index=0;tt--){if(typeof(Ee=ht[tt].frame).name=="number"&&O.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Ee.name)for(;ot[Ee.name="frame "+Ue._transitionData._counter++];);if(ot[Ee.name]){for(Ne=0;Ne=0;Xe--)tt=Ze[Xe],Ne.push({type:"delete",index:tt}),je.unshift({type:"insert",index:tt,value:Ee[tt]});var nt=h.modifyFrames,ot=h.modifyFrames,Ge=[Ue,je],ht=[Ue,Ne];return p&&p.add(Ue,nt,Ge,ot,ht),h.modifyFrames(Ue,Ne)},l.addTraces=function Ue(Ze,Xe,tt){Ze=O.getGraphDiv(Ze);var Ee,Ne,je=[],nt=l.deleteTraces,ot=Ue,Ge=[Ze,je],ht=[Ze,Xe];for(function(pt,wt,Dt){var It,qt;if(!Array.isArray(pt.data))throw new Error("gd.data must be an array.");if(wt===void 0)throw new Error("traces must be defined.");for(Array.isArray(wt)||(wt=[wt]),It=0;It=0&&ht=0&&ht=j.length)return!1;if(k.dimensions===2){if(z++,I.length===z)return k;var U=I[z];if(!T(U))return!1;k=j[Q][U]}else k=j[Q]}else k=j}}return k}function T(k){return k===Math.round(k)&&k>=0}function E(){var k,I,z={};for(k in u(z,O),c.subplotsRegistry)if((I=c.subplotsRegistry[k]).layoutAttributes)if(Array.isArray(I.attr))for(var $=0;$=U.length)return!1;$=(z=(c.transformsRegistry[U[X].type]||{}).attributes)&&z[I[2]],j=3}else{var te=k._module;if(te||(te=(c.modules[k.type||i.type.dflt]||{})._module),!te)return!1;if(!($=(z=te.attributes)&&z[Q])){var W=te.basePlotModule;W&&W.attributes&&($=W.attributes[Q])}$||($=i[Q])}return M($,I,j)},l.getLayoutValObject=function(k,I){var z=function($,Q){var j,U,X,te,W=$._basePlotModules;if(W){var K;for(j=0;j=h&&(u._input||{})._templateitemname;v&&(m=h);var _,S=a+"["+m+"]";function A(){_={},v&&(_[S]={},_[S][i]=v)}function x(M,T){v?c.nestedProperty(_[S],M).set(T):_[S+"."+M]=T}function R(){var M=_;return A(),M}return A(),{modifyBase:function(M,T){_[M]=T},modifyItem:x,getUpdateObj:R,applyUpdate:function(M,T){M&&x(M,T);var E=R();for(var C in E)c.nestedProperty(p,C).set(E[C])}}}},39172:function(d,l,n){var c=n(33428),b=n(24040),i=n(7316),O=n(3400),w=n(72736),y=n(73696),p=n(76308),a=n(43616),u=n(81668),h=n(45460),m=n(54460),v=n(84284),_=n(71888),S=_.enforce,A=_.clean,x=n(19280).doAutoRange,R="start";function M(D,k,I){for(var z=0;z=D[1]||$[1]<=D[0])&&Q[0]k[0])return!0}return!1}function T(D){var k,I,z,$,Q,j,U=D._fullLayout,X=U._size,te=X.p,W=m.list(D,"",!0);if(U._paperdiv.style({width:D._context.responsive&&U.autosize&&!D._context._hasZeroWidth&&!D.layout.width?"100%":U.width+"px",height:D._context.responsive&&U.autosize&&!D._context._hasZeroHeight&&!D.layout.height?"100%":U.height+"px"}).selectAll(".main-svg").call(a.setSize,U.width,U.height),D._context.setBackground(D,U.paper_bgcolor),l.drawMainTitle(D),h.manage(D),!U._has("cartesian"))return i.previousPromises(D);function K(Ge,ht,pt){var wt=Ge._lw/2;return Ge._id.charAt(0)==="x"?ht?pt==="top"?ht._offset-te-wt:ht._offset+ht._length+te+wt:X.t+X.h*(1-(Ge.position||0))+wt%1:ht?pt==="right"?ht._offset+ht._length+te+wt:ht._offset-te-wt:X.l+X.w*(Ge.position||0)+wt%1}for(k=0;k.5?"t":"b",ae=q._fullLayout.margin[se],ce=0;return Y.yref==="paper"?ce=ee+Y.pad.t+Y.pad.b:Y.yref==="container"&&(ce=function(de,ve,ye,_e,Se){var Te=0;return ye==="middle"&&(Te+=Se/2),de==="t"?(ye==="top"&&(Te+=Se),Te+=_e-ve*_e):(ye==="bottom"&&(Te+=Se),Te+=ve*_e),Te}(se,me,he,q._fullLayout.height,ee)+Y.pad.t+Y.pad.b),ce>ae?ce:0}(D,I,te);if(W>0){(function(q,Y,ee,me){var he="title.automargin",se=q._fullLayout.title,ae=se.y>.5?"t":"b",ce={x:se.x,y:se.y,t:0,b:0},de={};se.yref==="paper"&&function(ve,ye,_e,Se,Te){var Pe=ye.yref==="paper"?ve._fullLayout._size.h:ve._fullLayout.height,Ie=O.isTopAnchor(ye)?Se:Se-Te,ze=_e==="b"?Pe-Ie:Ie;return!(O.isTopAnchor(ye)&&_e==="t"||O.isBottomAnchor(ye)&&_e==="b")&&zeX?L.push({code:"unused",traceType:z,templateCount:U,dataCount:X}):X>U&&L.push({code:"reused",traceType:z,templateCount:U,dataCount:X})}}else L.push({code:"data"});if(function te(W,K){for(var oe in W)if(oe.charAt(0)!=="_"){var q=W[oe],Y=_(W,oe,K);b(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&L.push({code:"missing",path:Y,templateitemname:q.templateitemname}),te(q,Y)):Array.isArray(q)&&S(q)&&te(q,Y)}}({data:k,layout:D},""),L.length)return L.map(A)}},67024:function(d,l,n){var c=n(38248),b=n(36424),i=n(7316),O=n(3400),w=n(81792),y=n(37164),p=n(63268),a=n(25788).version,u={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};d.exports=function(h,m){var v,_,S,A;function x(X){return!(X in m)||O.validate(m[X],u[X])}if(m=m||{},O.isPlainObject(h)?(v=h.data||[],_=h.layout||{},S=h.config||{},A={}):(h=O.getGraphDiv(h),v=O.extendDeep([],h.data),_=O.extendDeep({},h.layout),S=h._context,A=h._fullLayout||{}),!x("width")&&m.width!==null||!x("height")&&m.height!==null)throw new Error("Height and width should be pixel values.");if(!x("format"))throw new Error("Export format is not "+O.join2(u.format.values,", "," or ")+".");var R={};function M(X,te){return O.coerce(m,R,u,X,te)}var T=M("format"),E=M("width"),C=M("height"),L=M("scale"),D=M("setBackground"),k=M("imageDataOnly"),I=document.createElement("div");I.style.position="absolute",I.style.left="-5000px",document.body.appendChild(I);var z=O.extendFlat({},_);E?z.width=E:m.width===null&&c(A.width)&&(z.width=A.width),C?z.height=C:m.height===null&&c(A.height)&&(z.height=A.height);var $=O.extendFlat({},S,{_exportedPlot:!0,staticPlot:!0,setBackground:D}),Q=w.getRedrawFunc(I);function j(){return new Promise(function(X){setTimeout(X,w.getDelay(I._fullLayout))})}function U(){return new Promise(function(X,te){var W=y(I,T,L),K=I._fullLayout.width,oe=I._fullLayout.height;function q(){b.purge(I),document.body.removeChild(I)}if(T==="full-json"){var Y=i.graphJson(I,!1,"keepdata","object",!0,!0);return Y.version=a,Y=JSON.stringify(Y),q(),X(k?Y:w.encodeJSON(Y))}if(q(),T==="svg")return X(k?W:w.encodeSVG(W));var ee=document.createElement("canvas");ee.id=O.randstr(),p({format:T,width:K,height:oe,scale:L,canvas:ee,svg:W,promise:!0}).then(X).catch(te)})}return new Promise(function(X,te){b.newPlot(I,v,z,$).then(Q).then(j).then(U).then(function(W){X(function(K){return k?K.replace(w.IMAGE_URL_PREFIX,""):K}(W))}).catch(function(W){te(W)})})}},21480:function(d,l,n){var c=n(3400),b=n(7316),i=n(73060),O=n(20556).dfltConfig,w=c.isPlainObject,y=Array.isArray,p=c.isArrayOrTypedArray;function a(x,R,M,T,E,C){C=C||[];for(var L=Object.keys(x),D=0;D$.length&&T.push(m("unused",E,I.concat($.length)));var W,K,oe,q,Y,ee=$.length,me=Array.isArray(te);if(me&&(ee=Math.min(ee,te.length)),Q.dimensions===2)for(K=0;K$[K].length&&T.push(m("unused",E,I.concat(K,$[K].length)));var he=$[K].length;for(W=0;W<(me?Math.min(he,te[K].length):he);W++)oe=me?te[K][W]:te,q=z[K][W],Y=$[K][W],c.validate(q,oe)?Y!==q&&Y!==+q&&T.push(m("dynamic",E,I.concat(K,W),q,Y)):T.push(m("value",E,I.concat(K,W),q))}else T.push(m("array",E,I.concat(K),z[K]));else for(K=0;K1&&C.push(m("object","layout"))),b.supplyDefaults(L);for(var D=L._fullData,k=M.length,I=0;I0&&Math.round(_)===_))return{vals:u};m=_}for(var S=p.calendar,A=h==="start",x=h==="end",R=y[a+"period0"],M=i(R,S)||0,T=[],E=[],C=[],L=u.length,D=0;D$;)z=O(z,-m,S);for(;z<=$;)z=O(z,m,S);I=O(z,-m,S)}else{for(z=M+(k=Math.round(($-M)/v))*v;z>$;)z-=v;for(;z<=$;)z+=v;I=z-v}T[D]=A?I:x?z:(I+z)/2,E[D]=I,C[D]=z}return{vals:T,starts:E,ends:C}}},26720:function(d){d.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(d,l,n){var c=n(33428),b=n(38248),i=n(3400),O=n(39032).FP_SAFE,w=n(24040),y=n(43616),p=n(79811),a=p.getFromId,u=p.isLinked;function h(D,k){var I,z,$=[],Q=D._fullLayout,j=v(Q,k,0),U=v(Q,k,1),X=S(D,k),te=X.min,W=X.max;if(te.length===0||W.length===0)return i.simpleMap(k.range,k.r2l);var K=te[0].val,oe=W[0].val;for(I=1;I0&&((ce=Se-j(me)-U(he))>Te?de/ce>Pe&&(se=me,ae=he,Pe=de/ce):de/Se>Pe&&(se={val:me.val,nopad:1},ae={val:he.val,nopad:1},Pe=de/Se));if(K===oe){var Ie=K-1,ze=K+1;if(ye)if(K===0)$=[0,1];else{var De=(K>0?W:te).reduce(function(Ve,$e){return Math.max(Ve,U($e))},0),He=K/(1-Math.min(.5,De/Se));$=K>0?[0,He]:[He,0]}else $=_e?[Math.max(0,Ie),Math.max(1,ze)]:[Ie,ze]}else ye?(se.val>=0&&(se={val:0,nopad:1}),ae.val<=0&&(ae={val:0,nopad:1})):_e&&(se.val-Pe*j(se)<0&&(se={val:0,nopad:1}),ae.val<=0&&(ae={val:1,nopad:1})),Pe=(ae.val-se.val-m(k,me.val,he.val))/(Se-j(se)-U(ae)),$=[se.val-Pe*j(se),ae.val+Pe*U(ae)];return $=L($,k),k.limitRange&&k.limitRange(),Y&&$.reverse(),i.simpleMap($,k.l2r||Number)}function m(D,k,I){var z=0;if(D.rangebreaks)for(var $=D.locateBreaks(k,I),Q=0;Q<$.length;Q++){var j=$[Q];z+=j.max-j.min}return z}function v(D,k,I){var z=.05*k._length,$=k._anchorAxis||{};if((k.ticklabelposition||"").indexOf("inside")!==-1||($.ticklabelposition||"").indexOf("inside")!==-1){var Q=k.isReversed();if(!Q){var j=i.simpleMap(k.range,k.r2l);Q=j[1]0?I.ppadplus:I.ppadminus)||I.ppad||0),ve=ce((D._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),ye=ce(I.vpadplus||I.vpad),_e=ce(I.vpadminus||I.vpad);if(!se){if(W=1/0,K=-1/0,he)for(z=0;z0&&(W=$),$>K&&$-O&&(W=$),$>K&&$=Pe;z--)Te(z);return{min:oe,max:q,opts:I}},concatExtremes:S};var _=3;function S(D,k,I){var z,$,Q,j=k._id,U=D._fullData,X=D._fullLayout,te=[],W=[];function K(me,he){for(z=0;z=I&&(te.extrapad||!j)){U=!1;break}$(k,te.val)&&te.pad<=I&&(j||!te.extrapad)&&(D.splice(X,1),X--)}if(U){var W=Q&&k===0;D.push({val:k,pad:W?0:I,extrapad:!W&&j})}}function M(D){return b(D)&&Math.abs(D)=k}function C(D,k,I){return k===void 0||I===void 0||(k=D.d2l(k))=X&&(Q=X,I=X),j<=X&&(j=X,z=X)}}return I=function(te,W){var K=W.autorangeoptions;return K&&K.minallowed!==void 0&&C(W,K.minallowed,K.maxallowed)?K.minallowed:K&&K.clipmin!==void 0&&C(W,K.clipmin,K.clipmax)?Math.max(te,W.d2l(K.clipmin)):te}(I,k),z=function(te,W){var K=W.autorangeoptions;return K&&K.maxallowed!==void 0&&C(W,K.minallowed,K.maxallowed)?K.maxallowed:K&&K.clipmax!==void 0&&C(W,K.clipmin,K.clipmax)?Math.min(te,W.d2l(K.clipmax)):te}(z,k),[I,z]}},76808:function(d){d.exports=function(l,n,c){var b,i;if(c){var O=n==="reversed"||n==="min reversed"||n==="max reversed";b=c[O?1:0],i=c[O?0:1]}var w=l("autorangeoptions.minallowed",i===null?b:void 0),y=l("autorangeoptions.maxallowed",b===null?i:void 0);w===void 0&&l("autorangeoptions.clipmin"),y===void 0&&l("autorangeoptions.clipmax"),l("autorangeoptions.include")}},54460:function(d,l,n){var c=n(33428),b=n(38248),i=n(7316),O=n(24040),w=n(3400),y=w.strTranslate,p=n(72736),a=n(81668),u=n(76308),h=n(43616),m=n(94724),v=n(98728),_=n(39032),S=_.ONEMAXYEAR,A=_.ONEAVGYEAR,x=_.ONEMINYEAR,R=_.ONEMAXQUARTER,M=_.ONEAVGQUARTER,T=_.ONEMINQUARTER,E=_.ONEMAXMONTH,C=_.ONEAVGMONTH,L=_.ONEMINMONTH,D=_.ONEWEEK,k=_.ONEDAY,I=k/2,z=_.ONEHOUR,$=_.ONEMIN,Q=_.ONESEC,j=_.MINUS_SIGN,U=_.BADNUM,X={K:"zeroline"},te={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},K={K:"tick",L:"path"},oe={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Y=n(84284),ee=Y.MID_SHIFT,me=Y.CAP_SHIFT,he=Y.LINE_SPACING,se=Y.OPPOSITE_SIDE,ae=d.exports={};ae.setConvert=n(78344);var ce=n(52976),de=n(79811),ve=de.idSort,ye=de.isLinked;ae.id2name=de.id2name,ae.name2id=de.name2id,ae.cleanId=de.cleanId,ae.list=de.list,ae.listIds=de.listIds,ae.getFromId=de.getFromId,ae.getFromTrace=de.getFromTrace;var _e=n(19280);ae.getAutoRange=_e.getAutoRange,ae.findExtremes=_e.findExtremes;var Se=1e-4;function Te(it){var at=(it[1]-it[0])*Se;return[it[0]-at,it[1]+at]}ae.coerceRef=function(it,at,Lt,xt,Ht,Xt){var Yt=xt.charAt(xt.length-1),Qt=Lt._fullLayout._subplots[Yt+"axis"],Pt=xt+"ref",tn={};return Ht||(Ht=Qt[0]||(typeof Xt=="string"?Xt:Xt[0])),Xt||(Xt=Ht),Qt=Qt.concat(Qt.map(function(Kt){return Kt+" domain"})),tn[Pt]={valType:"enumerated",values:Qt.concat(Xt?typeof Xt=="string"?[Xt]:Xt:[]),dflt:Ht},w.coerce(it,at,tn,Pt)},ae.getRefType=function(it){return it===void 0?it:it==="paper"?"paper":it==="pixel"?"pixel":/( domain)$/.test(it)?"domain":"range"},ae.coercePosition=function(it,at,Lt,xt,Ht,Xt){var Yt,Qt;if(ae.getRefType(xt)!=="range")Yt=w.ensureNumber,Qt=Lt(Ht,Xt);else{var Pt=ae.getFromId(at,xt);Qt=Lt(Ht,Xt=Pt.fraction2r(Xt)),Yt=Pt.cleanPos}it[Ht]=Yt(Qt)},ae.cleanPosition=function(it,at,Lt){return(Lt==="paper"||Lt==="pixel"?w.ensureNumber:ae.getFromId(at,Lt).cleanPos)(it)},ae.redrawComponents=function(it,at){at=at||ae.listIds(it);var Lt=it._fullLayout;function xt(Ht,Xt,Yt,Qt){for(var Pt=O.getComponentMethod(Ht,Xt),tn={},Kt=0;Ktxt&&fn2e-6||((Lt-it._forceTick0)/it._minDtick%1+1.000001)%1>2e-6)&&(it._minDtick=0)):it._minDtick=0},ae.saveRangeInitial=function(it,at){for(var Lt=ae.list(it,"",!0),xt=!1,Ht=0;Ht.3*Ir||Kn(xr)||Kn(Sr))){var zr=Un.dtick/2;En+=En+zr.8){var Fn=Number(Un.substr(1));ar.exactYears>.8&&Fn%12==0?En=ae.tickIncrement(En,"M6","reverse")+1.5*k:ar.exactMonths>.8?En=ae.tickIncrement(En,"M1","reverse")+15.5*k:En-=I;var ir=ae.tickIncrement(En,Un);if(ir<=xr)return ir}return En}(er,it,Nn,Qt,Ht)),vn=er;vn<=Pt;)vn=ae.tickIncrement(vn,Nn,!1,Ht);return{start:at.c2r(er,0,Ht),end:at.c2r(vn,0,Ht),size:Nn,_dataSpan:Pt-Qt}},ae.prepMinorTicks=function(it,at,Lt){if(!at.minor.dtick){delete it.dtick;var xt,Ht=at.dtick&&b(at._tmin);if(Ht){var Xt=ae.tickIncrement(at._tmin,at.dtick,!0);xt=[at._tmin,.99*Xt+.01*at._tmin]}else{var Yt=w.simpleMap(at.range,at.r2l);xt=[Yt[0],.8*Yt[0]+.2*Yt[1]]}if(it.range=w.simpleMap(xt,at.l2r),it._isMinor=!0,ae.prepTicks(it,Lt),Ht){var Qt=b(at.dtick),Pt=b(it.dtick),tn=Qt?at.dtick:+at.dtick.substring(1),Kt=Pt?it.dtick:+it.dtick.substring(1);Qt&&Pt?De(tn,Kt)?tn===2*D&&Kt===2*k&&(it.dtick=D):tn===2*D&&Kt===3*k?it.dtick=D:tn!==D||(at._input.minor||{}).nticks?He(tn/Kt,2.5)?it.dtick=tn/2:it.dtick=tn:it.dtick=k:String(at.dtick).charAt(0)==="M"?Pt?it.dtick="M1":De(tn,Kt)?tn>=12&&Kt===2&&(it.dtick="M3"):it.dtick=at.dtick:String(it.dtick).charAt(0)==="L"?String(at.dtick).charAt(0)==="L"?De(tn,Kt)||(it.dtick=He(tn/Kt,2.5)?at.dtick/2:at.dtick):it.dtick="D1":it.dtick==="D2"&&+at.dtick>1&&(it.dtick=1)}it.range=at.range}at.minor._tick0Init===void 0&&(it.tick0=at.tick0)},ae.prepTicks=function(it,at){var Lt=w.simpleMap(it.range,it.r2l,void 0,void 0,at);if(it.tickmode==="auto"||!it.dtick){var xt,Ht=it.nticks;Ht||(it.type==="category"||it.type==="multicategory"?(xt=it.tickfont?w.bigFont(it.tickfont.size||12):15,Ht=it._length/xt):(xt=it._id.charAt(0)==="y"?40:80,Ht=w.constrain(it._length/xt,4,9)+1),it._name==="radialaxis"&&(Ht*=2)),it.minor&&it.minor.tickmode!=="array"||it.tickmode==="array"&&(Ht*=100),it._roughDTick=Math.abs(Lt[1]-Lt[0])/Ht,ae.autoTicks(it,it._roughDTick),it._minDtick>0&&it.dtick<2*it._minDtick&&(it.dtick=it._minDtick,it.tick0=it.l2r(it._forceTick0))}it.ticklabelmode==="period"&&function(Xt){var Yt;function Qt(){return!(b(Xt.dtick)||Xt.dtick.charAt(0)!=="M")}var Pt=Qt(),tn=ae.getTickFormat(Xt);if(tn){var Kt=Xt._dtickInit!==Xt.dtick;/%[fLQsSMX]/.test(tn)||(/%[HI]/.test(tn)?(Yt=z,Kt&&!Pt&&Xt.dtick=(In?0:1);Un--){var xr=!Un;Un?(it._dtickInit=it.dtick,it._tick0Init=it.tick0):(it.minor._dtickInit=it.minor.dtick,it.minor._tick0Init=it.minor.tick0);var Sr=Un?it:w.extendFlat({},it,it.minor);if(xr?ae.prepMinorTicks(Sr,it,at):ae.prepTicks(Sr,at),Sr.tickmode!=="array")if(Sr.tickmode!=="sync"){var ar=Te(Pt),Fn=ar[0],ir=ar[1],Wn=b(Sr.dtick),Kn=Ht==="log"&&!(Wn||Sr.dtick.charAt(0)==="L"),_r=ae.tickFirst(Sr,at);if(Un){if(it._tmin=_r,_r=ir:Rr<=ir;Rr=ae.tickIncrement(Rr,$r,tn,Xt)){if(Un&&Ir++,Sr.rangebreaks&&!tn){if(Rr=fn)break}if(er.length>dn||Rr===Fr)break;Fr=Rr;var Kr={value:Rr};Un?(Kn&&Rr!==(0|Rr)&&(Kr.simpleLabel=!0),Yt>1&&Ir%Yt&&(Kr.skipLabel=!0),er.push(Kr)):(Kr.minor=!0,En.push(Kr))}}else er=[],vn=Oe(it);else Un?(er=[],vn=ke(it,!xr)):(En=[],Nn=ke(it,!xr))}if(In&&!(it.minor.ticks==="inside"&&it.ticks==="outside"||it.minor.ticks==="outside"&&it.ticks==="inside")){for(var Co=er.map(function(hn){return hn.value}),so=[],So=0;So0?(vr=yr-1,nr=yr):(vr=yr,nr=yr);var Qn,Hn=hn[vr].value,tr=hn[nr].value,cr=Math.abs(tr-Hn),Lr=Zn||cr,Er=0;Lr>=x?Er=cr>=x&&cr<=S?cr:A:Zn===M&&Lr>=T?Er=cr>=T&&cr<=R?cr:M:Lr>=L?Er=cr>=L&&cr<=E?cr:C:Zn===D&&Lr>=D?Er=D:Lr>=k?Er=k:Zn===I&&Lr>=I?Er=I:Zn===z&&Lr>=z&&(Er=z),Er>=cr&&(Er=cr,Qn=!0);var Vr=gr+Er;if(zn.rangebreaks&&Er>0){for(var to=0,_o=0;_o<84;_o++){var fr=(_o+.5)/84;zn.maskBreaks(gr*(1-fr)+fr*Vr)!==U&&to++}(Er*=to/84)||(hn[yr].drop=!0),Qn&&cr>D&&(Er=cr)}(Er>0||yr===0)&&(hn[yr].periodX=gr+Er/2)}}(er,it,it._definedDelta),it.rangebreaks){var br=it._id.charAt(0)==="y",dr=1;it.tickmode==="auto"&&(dr=it.tickfont?it.tickfont.size:12);var Cr=NaN;for(Lt=er.length-1;Lt>-1;Lt--)if(er[Lt].drop)er.splice(Lt,1);else{er[Lt].value=lt(er[Lt].value,it);var io=it.c2p(er[Lt].value);(br?Cr>io-dr:Crfn||Wrfn&&(Qr.periodX=fn),Wr10||xt.substr(5)!=="01-01"?it._tickround="d":it._tickround=+at.substr(1)%12==0?"y":"m";else if(at>=k&&Ht<=10||at>=15*k)it._tickround="d";else if(at>=$&&Ht<=16||at>=z)it._tickround="M";else if(at>=Q&&Ht<=19||at>=$)it._tickround="S";else{var Xt=it.l2r(Lt+at).replace(/^-/,"").length;it._tickround=Math.max(Ht,Xt)-20,it._tickround<0&&(it._tickround=4)}}else if(b(at)||at.charAt(0)==="L"){var Yt=it.range.map(it.r2d||Number);b(at)||(at=Number(at.substr(1))),it._tickround=2-Math.floor(Math.log(at)/Math.LN10+.01);var Qt=Math.max(Math.abs(Yt[0]),Math.abs(Yt[1])),Pt=Math.floor(Math.log(Qt)/Math.LN10+.01),tn=it.minexponent===void 0?3:it.minexponent;Math.abs(Pt)>tn&&(Ge(it.exponentformat)&&!ht(Pt)?it._tickexponent=3*Math.round((Pt-1)/3):it._tickexponent=Pt)}else it._tickround=null}function nt(it,at,Lt){var xt=it.tickfont||{};return{x:at,dx:0,dy:0,text:Lt||"",fontSize:xt.size,font:xt.family,fontColor:xt.color}}ae.autoTicks=function(it,at,Lt){var xt;function Ht(fn){return Math.pow(fn,Math.floor(Math.log(at)/Math.LN10))}if(it.type==="date"){it.tick0=w.dateTick0(it.calendar,0);var Xt=2*at;if(Xt>A)at/=A,xt=Ht(10),it.dtick="M"+12*Ne(at,xt,Le);else if(Xt>C)at/=C,it.dtick="M"+Ne(at,1,We);else if(Xt>k){if(it.dtick=Ne(at,k,it._hasDayOfWeekBreaks?[1,2,7,14]:Ze),!Lt){var Yt=ae.getTickFormat(it),Qt=it.ticklabelmode==="period";Qt&&(it._rawTick0=it.tick0),/%[uVW]/.test(Yt)?it.tick0=w.dateTick0(it.calendar,2):it.tick0=w.dateTick0(it.calendar,1),Qt&&(it._dowTick0=it.tick0)}}else Xt>z?it.dtick=Ne(at,z,We):Xt>$?it.dtick=Ne(at,$,Ue):Xt>Q?it.dtick=Ne(at,Q,Ue):(xt=Ht(10),it.dtick=Ne(at,xt,Le))}else if(it.type==="log"){it.tick0=0;var Pt=w.simpleMap(it.range,it.r2l);if(it._isMinor&&(at*=1.5),at>.7)it.dtick=Math.ceil(at);else if(Math.abs(Pt[1]-Pt[0])<1){var tn=1.5*Math.abs((Pt[1]-Pt[0])/at);at=Math.abs(Math.pow(10,Pt[1])-Math.pow(10,Pt[0]))/tn,xt=Ht(10),it.dtick="L"+Ne(at,xt,Le)}else it.dtick=at>.3?"D2":"D1"}else it.type==="category"||it.type==="multicategory"?(it.tick0=0,it.dtick=Math.ceil(Math.max(at,1))):bt(it)?(it.tick0=0,xt=1,it.dtick=Ne(at,xt,Ee)):(it.tick0=0,xt=Ht(10),it.dtick=Ne(at,xt,Le));if(it.dtick===0&&(it.dtick=1),!b(it.dtick)&&typeof it.dtick!="string"){var Kt=it.dtick;throw it.dtick=1,"ax.dtick error: "+String(Kt)}},ae.tickIncrement=function(it,at,Lt,xt){var Ht=Lt?-1:1;if(b(at))return w.increment(it,Ht*at);var Xt=at.charAt(0),Yt=Ht*Number(at.substr(1));if(Xt==="M")return w.incrementMonth(it,Yt,xt);if(Xt==="L")return Math.log(Math.pow(10,it)+Yt)/Math.LN10;if(Xt==="D"){var Qt=at==="D2"?tt:Xe,Pt=it+.01*Ht,tn=w.roundUp(w.mod(Pt,1),Qt,Lt);return Math.floor(Pt)+Math.log(c.round(Math.pow(10,tn),1))/Math.LN10}throw"unrecognized dtick "+String(at)},ae.tickFirst=function(it,at){var Lt=it.r2l||Number,xt=w.simpleMap(it.range,Lt,void 0,void 0,at),Ht=xt[1] ")}else En._prevDateHead=Fn,ir+="
    "+Fn;In.text=ir}(it,Xt,Lt,Qt):Pt==="log"?function(En,In,Un,xr,Sr){var ar=En.dtick,Fn=In.x,ir=En.tickformat,Wn=typeof ar=="string"&&ar.charAt(0);if(Sr==="never"&&(Sr=""),xr&&Wn!=="L"&&(ar="L3",Wn="L"),ir||Wn==="L")In.text=pt(Math.pow(10,Fn),En,Sr,xr);else if(b(ar)||Wn==="D"&&w.mod(Fn+.01,1)<.1){var Kn=Math.round(Fn),_r=Math.abs(Kn),Ir=En.exponentformat;Ir==="power"||Ge(Ir)&&ht(Kn)?(In.text=Kn===0?1:Kn===1?"10":"10"+(Kn>1?"":j)+_r+"",In.fontSize*=1.25):(Ir==="e"||Ir==="E")&&_r>2?In.text="1"+Ir+(Kn>0?"+":j)+_r:(In.text=pt(Math.pow(10,Fn),En,"","fakehover"),ar==="D1"&&En._id.charAt(0)==="y"&&(In.dy-=In.fontSize/6))}else{if(Wn!=="D")throw"unrecognized dtick "+String(ar);In.text=String(Math.round(Math.pow(10,w.mod(Fn,1)))),In.fontSize*=.75}if(En.dtick==="D1"){var zr=String(In.text).charAt(0);zr!=="0"&&zr!=="1"||(En._id.charAt(0)==="y"?In.dx-=In.fontSize/4:(In.dy+=In.fontSize/2,In.dx+=(En.range[1]>En.range[0]?1:-1)*In.fontSize*(Fn<0?.5:.25)))}}(it,Xt,0,Qt,vn):Pt==="category"?function(En,In){var Un=En._categories[Math.round(In.x)];Un===void 0&&(Un=""),In.text=String(Un)}(it,Xt):Pt==="multicategory"?function(En,In,Un){var xr=Math.round(In.x),Sr=En._categories[xr]||[],ar=Sr[1]===void 0?"":String(Sr[1]),Fn=Sr[0]===void 0?"":String(Sr[0]);Un?In.text=Fn+" - "+ar:(In.text=ar,In.text2=Fn)}(it,Xt,Lt):bt(it)?function(En,In,Un,xr,Sr){if(En.thetaunit!=="radians"||Un)In.text=pt(In.x,En,Sr,xr);else{var ar=In.x/180;if(ar===0)In.text="0";else{var Fn=function(Wn){function Kn(Fr,Rr){return Math.abs(Fr-Rr)<=1e-6}var _r=function(Fr){for(var Rr=1;!Kn(Math.round(Fr*Rr)/Rr,Fr);)Rr*=10;return Rr}(Wn),Ir=Wn*_r,zr=Math.abs(function Fr(Rr,$r){return Kn($r,0)?Rr:Fr($r,Rr%$r)}(Ir,_r));return[Math.round(Ir/zr),Math.round(_r/zr)]}(ar);if(Fn[1]>=100)In.text=pt(w.deg2rad(In.x),En,Sr,xr);else{var ir=In.x<0;Fn[1]===1?Fn[0]===1?In.text="π":In.text=Fn[0]+"π":In.text=["",Fn[0],"","⁄","",Fn[1],"","π"].join(""),ir&&(In.text=j+In.text)}}}}(it,Xt,Lt,Qt,vn):function(En,In,Un,xr,Sr){Sr==="never"?Sr="":En.showexponent==="all"&&Math.abs(In.x/En.dtick)<1e-6&&(Sr="hide"),In.text=pt(In.x,En,Sr,xr)}(it,Xt,0,Qt,vn),xt||(it.tickprefix&&!dn(it.showtickprefix)&&(Xt.text=it.tickprefix+Xt.text),it.ticksuffix&&!dn(it.showticksuffix)&&(Xt.text+=it.ticksuffix)),it.labelalias&&it.labelalias.hasOwnProperty(Xt.text)){var Nn=it.labelalias[Xt.text];typeof Nn=="string"&&(Xt.text=Nn)}if(it.tickson==="boundaries"||it.showdividers){var er=function(En){var In=it.l2p(En);return In>=0&&In<=it._length?En:null};Xt.xbnd=[er(Xt.x-.5),er(Xt.x+it.dtick-.5)]}return Xt},ae.hoverLabelText=function(it,at,Lt){Lt&&(it=w.extendFlat({},it,{hoverformat:Lt}));var xt=w.isArrayOrTypedArray(at)?at[0]:at,Ht=w.isArrayOrTypedArray(at)?at[1]:void 0;if(Ht!==void 0&&Ht!==xt)return ae.hoverLabelText(it,xt,Lt)+" - "+ae.hoverLabelText(it,Ht,Lt);var Xt=it.type==="log"&&xt<=0,Yt=ae.tickText(it,it.c2l(Xt?-xt:xt),"hover").text;return Xt?xt===0?"0":j+Yt:Yt};var ot=["f","p","n","μ","m","","k","M","G","T"];function Ge(it){return it==="SI"||it==="B"}function ht(it){return it>14||it<-15}function pt(it,at,Lt,xt){var Ht=it<0,Xt=at._tickround,Yt=Lt||at.exponentformat||"B",Qt=at._tickexponent,Pt=ae.getTickFormat(at),tn=at.separatethousands;if(xt){var Kt={exponentformat:Yt,minexponent:at.minexponent,dtick:at.showexponent==="none"?at.dtick:b(it)&&Math.abs(it)||1,range:at.showexponent==="none"?at.range.map(at.r2d):[0,it||1]};je(Kt),Xt=(Number(Kt._tickround)||0)+4,Qt=Kt._tickexponent,at.hoverformat&&(Pt=at.hoverformat)}if(Pt)return at._numFormat(Pt)(it).replace(/-/g,j);var fn,dn=Math.pow(10,-Xt)/2;if(Yt==="none"&&(Qt=0),(it=Math.abs(it))"+fn+"":Yt==="B"&&Qt===9?it+="B":Ge(Yt)&&(it+=ot[Qt/3+5])),Ht?j+it:it}function wt(it,at){if(it){var Lt=Object.keys(q).reduce(function(xt,Ht){return at.indexOf(Ht)!==-1&&q[Ht].forEach(function(Xt){xt[Xt]=1}),xt},{});Object.keys(it).forEach(function(xt){Lt[xt]||(xt.length===1?it[xt]=0:delete it[xt])})}}function Dt(it,at){for(var Lt=[],xt={},Ht=0;Ht1&&Lt=Ht.min&&it=0,In=Kt(dn,vn[1])<=0;return(Nn||En)&&(er||In)}if(it.tickformatstops&&it.tickformatstops.length>0)switch(it.type){case"date":case"linear":for(at=0;at=Yt(Ht)))){Lt=xt;break}break;case"log":for(at=0;at=0&&Ht.unshift(Ht.splice(tn,1).shift())}});var Yt={false:{left:0,right:0}};return w.syncOrAsync(Ht.map(function(Qt){return function(){if(Qt){var Pt=ae.getFromId(it,Qt);Lt||(Lt={}),Lt.axShifts=Yt,Lt.overlayingShiftedAx=Xt;var tn=ae.drawOne(it,Pt,Lt);return Pt._shiftPusher&&Rt(Pt,Pt._fullDepth||0,Yt,!0),Pt._r=Pt.range.slice(),Pt._rl=w.simpleMap(Pt._r,Pt.r2l),tn}}}))},ae.drawOne=function(it,at,Lt){var xt,Ht,Xt,Yt=(Lt=Lt||{}).axShifts||{},Qt=Lt.overlayingShiftedAx||[];at.setScale();var Pt=it._fullLayout,tn=at._id,Kt=tn.charAt(0),fn=ae.counterLetter(tn),dn=Pt._plots[at._mainSubplot];if(dn){if(at._shiftPusher=at.autoshift||Qt.indexOf(at._id)!==-1||Qt.indexOf(at.overlaying)!==-1,at._shiftPusher&at.anchor==="free"){var vn=at.linewidth/2||0;at.ticks==="inside"&&(vn+=at.ticklen),Rt(at,vn,Yt,!0),Rt(at,at.shift||0,Yt,!1)}Lt.skipTitle===!0&&at._shift!==void 0||(at._shift=function(nr,Qn){return nr.autoshift?Qn[nr.overlaying][nr.side]:nr.shift||0}(at,Yt));var Nn=dn[Kt+"axislayer"],er=at._mainLinePosition,En=er+=at._shift,In=at._mainMirrorPosition,Un=at._vals=ae.calcTicks(at),xr=[at.mirror,En,In].join("_");for(xt=0;xt0?nr.bottom-Er:0,Vr))));var to=0,_o=0;if(at._shiftPusher&&(to=Math.max(Vr,nr.height>0?cr==="l"?Er-nr.left:nr.right-Er:0),at.title.text!==Pt._dfltTitle[Kt]&&(_o=(at._titleStandoff||0)+(at._titleScoot||0),cr==="l"&&(_o+=en(at))),at._fullDepth=Math.max(to,_o)),at.automargin){Qn={x:0,y:0,r:0,l:0,t:0,b:0};var fr=[0,1],Eo=typeof at._shift=="number"?at._shift:0;if(Kt==="x"){if(cr==="b"?Qn[cr]=at._depth:(Qn[cr]=at._depth=Math.max(nr.width>0?Er-nr.top:0,Vr),fr.reverse()),nr.width>0){var ao=nr.right-(at._offset+at._length);ao>0&&(Qn.xr=1,Qn.r=ao);var co=at._offset-nr.left;co>0&&(Qn.xl=0,Qn.l=co)}}else if(cr==="l"?(at._depth=Math.max(nr.height>0?Er-nr.left:0,Vr),Qn[cr]=at._depth-Eo):(at._depth=Math.max(nr.height>0?nr.right-Er:0,Vr),Qn[cr]=at._depth+Eo,fr.reverse()),nr.height>0){var Go=nr.bottom-(at._offset+at._length);Go>0&&(Qn.yb=0,Qn.b=Go);var po=at._offset-nr.top;po>0&&(Qn.yt=1,Qn.t=po)}Qn[fn]=at.anchor==="free"?at.position:at._anchorAxis.domain[fr[0]],at.title.text!==Pt._dfltTitle[Kt]&&(Qn[cr]+=en(at)+(at.title.standoff||0)),at.mirror&&at.anchor!=="free"&&((Hn={x:0,y:0,r:0,l:0,t:0,b:0})[Lr]=at.linewidth,at.mirror&&at.mirror!==!0&&(Hn[Lr]+=Vr),at.mirror===!0||at.mirror==="ticks"?Hn[fn]=at._anchorAxis.domain[fr[1]]:at.mirror!=="all"&&at.mirror!=="allticks"||(Hn[fn]=[at._counterDomainMin,at._counterDomainMax][fr[1]]))}gr&&(tr=O.getComponentMethod("rangeslider","autoMarginOpts")(it,at)),typeof at.automargin=="string"&&(wt(Qn,at.automargin),wt(Hn,at.automargin)),i.autoMargin(it,_t(at),Qn),i.autoMargin(it,nn(at),Hn),i.autoMargin(it,gn(at),tr)}),w.syncOrAsync(Zn)}}function vr(nr){var Qn=tn+(nr||"tick");return Sr[Qn]||(Sr[Qn]=function(Hn,tr){var cr,Lr,Er,Vr;return Hn._selections[tr].size()?(cr=1/0,Lr=-1/0,Er=1/0,Vr=-1/0,Hn._selections[tr].each(function(){var to=Ct(this),_o=h.bBox(to.node().parentNode);cr=Math.min(cr,_o.top),Lr=Math.max(Lr,_o.bottom),Er=Math.min(Er,_o.left),Vr=Math.max(Vr,_o.right)})):(cr=0,Lr=0,Er=0,Vr=0),{top:cr,bottom:Lr,left:Er,right:Vr,height:Lr-cr,width:Vr-Er}}(at,Qn)),Sr[Qn]}},ae.getTickSigns=function(it,at){var Lt=it._id.charAt(0),xt={x:"top",y:"right"}[Lt],Ht=it.side===xt?1:-1,Xt=[-1,1,Ht,-Ht];return(at?(it.minor||{}).ticks:it.ticks)!=="inside"==(Lt==="x")&&(Xt=Xt.map(function(Yt){return-Yt})),it.side&&Xt.push({l:-1,t:-1,r:1,b:1}[it.side.charAt(0)]),Xt},ae.makeTransTickFn=function(it){return it._id.charAt(0)==="x"?function(at){return y(it._offset+it.l2p(at.x),0)}:function(at){return y(0,it._offset+it.l2p(at.x))}},ae.makeTransTickLabelFn=function(it){var at=function(Ht){var Xt=Ht.ticklabelposition||"",Yt=function(In){return Xt.indexOf(In)!==-1},Qt=Yt("top"),Pt=Yt("left"),tn=Yt("right"),Kt=Yt("bottom"),fn=Yt("inside"),dn=Kt||Pt||Qt||tn;if(!dn&&!fn)return[0,0];var vn=Ht.side,Nn=dn?(Ht.tickwidth||0)/2:0,er=3,En=Ht.tickfont?Ht.tickfont.size:12;return(Kt||Qt)&&(Nn+=En*me,er+=(Ht.linewidth||0)/2),(Pt||tn)&&(Nn+=(Ht.linewidth||0)/2,er+=3),fn&&vn==="top"&&(er-=En*(1-me)),(Pt||Qt)&&(Nn=-Nn),vn!=="bottom"&&vn!=="right"||(er=-er),[dn?Nn:0,fn?er:0]}(it),Lt=at[0],xt=at[1];return it._id.charAt(0)==="x"?function(Ht){return y(Lt+it._offset+it.l2p(It(Ht)),xt)}:function(Ht){return y(xt,Lt+it._offset+it.l2p(It(Ht)))}},ae.makeTickPath=function(it,at,Lt,xt){xt||(xt={});var Ht=xt.minor;if(Ht&&!it.minor)return"";var Xt=xt.len!==void 0?xt.len:Ht?it.minor.ticklen:it.ticklen,Yt=it._id.charAt(0),Qt=(it.linewidth||1)/2;return Yt==="x"?"M0,"+(at+Qt*Lt)+"v"+Xt*Lt:"M"+(at+Qt*Lt)+",0h"+Xt*Lt},ae.makeLabelFns=function(it,at,Lt){var xt=it.ticklabelposition||"",Ht=function(Ir){return xt.indexOf(Ir)!==-1},Xt=Ht("top"),Yt=Ht("left"),Qt=Ht("right"),Pt=Ht("bottom")||Yt||Xt||Qt,tn=Ht("inside"),Kt=xt==="inside"&&it.ticks==="inside"||!tn&&it.ticks==="outside"&&it.tickson!=="boundaries",fn=0,dn=0,vn=Kt?it.ticklen:0;if(tn?vn*=-1:Pt&&(vn=0),Kt&&(fn+=vn,Lt)){var Nn=w.deg2rad(Lt);fn=vn*Math.cos(Nn)+1,dn=vn*Math.sin(Nn)}it.showticklabels&&(Kt||it.showline)&&(fn+=.2*it.tickfont.size);var er,En,In,Un,xr,Sr={labelStandoff:fn+=(it.linewidth||1)/2*(tn?-1:1),labelShift:dn},ar=0,Fn=it.side,ir=it._id.charAt(0),Wn=it.tickangle;if(ir==="x")Un=(xr=!tn&&Fn==="bottom"||tn&&Fn==="top")?1:-1,tn&&(Un*=-1),er=dn*Un,En=at+fn*Un,In=xr?1:-.2,Math.abs(Wn)===90&&(tn?In+=ee:In=Wn===-90&&Fn==="bottom"?me:Wn===90&&Fn==="top"?ee:.5,ar=ee/2*(Wn/90)),Sr.xFn=function(Ir){return Ir.dx+er+ar*Ir.fontSize},Sr.yFn=function(Ir){return Ir.dy+En+Ir.fontSize*In},Sr.anchorFn=function(Ir,zr){if(Pt){if(Yt)return"end";if(Qt)return"start"}return b(zr)&&zr!==0&&zr!==180?zr*Un<0!==tn?"end":"start":"middle"},Sr.heightFn=function(Ir,zr,Fr){return zr<-60||zr>60?-.5*Fr:it.side==="top"!==tn?-Fr:0};else if(ir==="y"){if(Un=(xr=!tn&&Fn==="left"||tn&&Fn==="right")?1:-1,tn&&(Un*=-1),er=fn,En=dn*Un,In=0,tn||Math.abs(Wn)!==90||(In=Wn===-90&&Fn==="left"||Wn===90&&Fn==="right"?me:.5),tn){var Kn=b(Wn)?+Wn:0;if(Kn!==0){var _r=w.deg2rad(Kn);ar=Math.abs(Math.sin(_r))*me*Un,In=0}}Sr.xFn=function(Ir){return Ir.dx+at-(er+Ir.fontSize*In)*Un+ar*Ir.fontSize},Sr.yFn=function(Ir){return Ir.dy+En+Ir.fontSize*ee},Sr.anchorFn=function(Ir,zr){return b(zr)&&Math.abs(zr)===90?"middle":xr?"end":"start"},Sr.heightFn=function(Ir,zr,Fr){return it.side==="right"&&(zr*=-1),zr<-30?-Fr:zr<30?-.5*Fr:0}}return Sr},ae.drawTicks=function(it,at,Lt){Lt=Lt||{};var xt=at._id+"tick",Ht=[].concat(at.minor&&at.minor.ticks?Lt.vals.filter(function(Yt){return Yt.minor&&!Yt.noTick}):[]).concat(at.ticks?Lt.vals.filter(function(Yt){return!Yt.minor&&!Yt.noTick}):[]),Xt=Lt.layer.selectAll("path."+xt).data(Ht,qt);Xt.exit().remove(),Xt.enter().append("path").classed(xt,1).classed("ticks",1).classed("crisp",Lt.crisp!==!1).each(function(Yt){return u.stroke(c.select(this),Yt.minor?at.minor.tickcolor:at.tickcolor)}).style("stroke-width",function(Yt){return h.crispRound(it,Yt.minor?at.minor.tickwidth:at.tickwidth,1)+"px"}).attr("d",Lt.path).style("display",null),zt(at,[K]),Xt.attr("transform",Lt.transFn)},ae.drawGrid=function(it,at,Lt){if(Lt=Lt||{},at.tickmode!=="sync"){var xt=at._id+"grid",Ht=at.minor&&at.minor.showgrid,Xt=Ht?Lt.vals.filter(function(In){return In.minor}):[],Yt=at.showgrid?Lt.vals.filter(function(In){return!In.minor}):[],Qt=Lt.counterAxis;if(Qt&&ae.shouldShowZeroLine(it,at,Qt))for(var Pt=at.tickmode==="array",tn=0;tn=0;Nn--){var er=Nn?dn:vn;if(er){var En=er.selectAll("path."+xt).data(Nn?Yt:Xt,qt);En.exit().remove(),En.enter().append("path").classed(xt,1).classed("crisp",Lt.crisp!==!1),En.attr("transform",Lt.transFn).attr("d",Lt.path).each(function(In){return u.stroke(c.select(this),In.minor?at.minor.gridcolor:at.gridcolor||"#ddd")}).style("stroke-dasharray",function(In){return h.dashStyle(In.minor?at.minor.griddash:at.griddash,In.minor?at.minor.gridwidth:at.gridwidth)}).style("stroke-width",function(In){return(In.minor?fn:at._gw)+"px"}).style("display",null),typeof Lt.path=="function"&&En.attr("d",Lt.path)}}zt(at,[te,W])}},ae.drawZeroLine=function(it,at,Lt){Lt=Lt||Lt;var xt=at._id+"zl",Ht=ae.shouldShowZeroLine(it,at,Lt.counterAxis),Xt=Lt.layer.selectAll("path."+xt).data(Ht?[{x:0,id:at._id}]:[]);Xt.exit().remove(),Xt.enter().append("path").classed(xt,1).classed("zl",1).classed("crisp",Lt.crisp!==!1).each(function(){Lt.layer.selectAll("path").sort(function(Yt,Qt){return ve(Yt.id,Qt.id)})}),Xt.attr("transform",Lt.transFn).attr("d",Lt.path).call(u.stroke,at.zerolinecolor||u.defaultLine).style("stroke-width",h.crispRound(it,at.zerolinewidth,at._gw||1)+"px").style("display",null),zt(at,[X])},ae.drawLabels=function(it,at,Lt){Lt=Lt||{};var xt=it._fullLayout,Ht=at._id,Xt=Lt.cls||Ht+"tick",Yt=Lt.vals.filter(function(Kr){return Kr.text}),Qt=Lt.labelFns,Pt=Lt.secondary?0:at.tickangle,tn=(at._prevTickAngles||{})[Xt],Kt=Lt.layer.selectAll("g."+Xt).data(at.showticklabels?Yt:[],qt),fn=[];function dn(Kr,Co){Kr.each(function(so){var So=c.select(this),go=So.select(".text-math-group"),li=Qt.anchorFn(so,Co),Pn=Lt.transFn.call(So.node(),so)+(b(Co)&&+Co!=0?" rotate("+Co+","+Qt.xFn(so)+","+(Qt.yFn(so)-so.fontSize/2)+")":""),Yn=p.lineCount(So),br=he*so.fontSize,dr=Qt.heightFn(so,b(Co)?+Co:0,(Yn-1)*br);if(dr&&(Pn+=y(0,dr)),go.empty()){var Cr=So.select("text");Cr.attr({transform:Pn,"text-anchor":li}),Cr.style("opacity",1),at._adjustTickLabelsOverflow&&at._adjustTickLabelsOverflow()}else{var io=h.bBox(go.node()).width*{end:-.5,start:.5}[li];go.attr("transform",Pn+y(io,0))}})}Kt.enter().append("g").classed(Xt,1).append("text").attr("text-anchor","middle").each(function(Kr){var Co=c.select(this),so=it._promises.length;Co.call(p.positionText,Qt.xFn(Kr),Qt.yFn(Kr)).call(h.font,Kr.font,Kr.fontSize,Kr.fontColor).text(Kr.text).call(p.convertToTspans,it),it._promises[so]?fn.push(it._promises.pop().then(function(){dn(Co,Pt)})):dn(Co,Pt)}),zt(at,[oe]),Kt.exit().remove(),Lt.repositionOnUpdate&&Kt.each(function(Kr){c.select(this).select("text").call(p.positionText,Qt.xFn(Kr),Qt.yFn(Kr))}),at._adjustTickLabelsOverflow=function(){var Kr=at.ticklabeloverflow;if(Kr&&Kr!=="allow"){var Co=Kr.indexOf("hide")!==-1,so=at._id.charAt(0)==="x",So=0,go=so?it._fullLayout.width:it._fullLayout.height;if(Kr.indexOf("domain")!==-1){var li=w.simpleMap(at.range,at.r2l);So=at.l2p(li[0])+at._offset,go=at.l2p(li[1])+at._offset}var Pn=Math.min(So,go),Yn=Math.max(So,go),br=at.side,dr=1/0,Cr=-1/0;for(var io in Kt.each(function(bo){var Bn=c.select(this);if(Bn.select(".text-math-group").empty()){var hr=h.bBox(Bn.node()),hn=0;so?(hr.right>Yn||hr.leftYn||hr.top+(at.tickangle?0:bo.fontSize/4)at["_visibleLabelMin_"+li._id]?Wr.style("display","none"):Yn.K!=="tick"||Pn||Wr.style("display",null)})})})})},dn(Kt,tn+1?tn:Pt);var vn=null;at._selections&&(at._selections[Xt]=Kt);var Nn=[function(){return fn.length&&Promise.all(fn)}];at.automargin&&xt._redrawFromAutoMarginCount&&tn===90?(vn=tn,Nn.push(function(){dn(Kt,tn)})):Nn.push(function(){if(dn(Kt,Pt),Yt.length&&at.autotickangles&&(at.type!=="log"||String(at.dtick).charAt(0)!=="D")){vn=at.autotickangles[0];var Kr,Co=0,so=[],So=1;if(Kt.each(function(gr){Co=Math.max(Co,gr.fontSize);var vr=at.l2p(gr.x),nr=Ct(this),Qn=h.bBox(nr.node());So=Math.max(So,p.lineCount(nr)),so.push({top:0,bottom:10,height:10,left:vr-Qn.width/2,right:vr+Qn.width/2+2,width:Qn.width+2})}),at.tickson!=="boundaries"&&!at.showdividers||Lt.secondary){var go=Yt.length,li=Math.abs((Yt[go-1].x-Yt[0].x)*at._m)/(go-1),Pn=at.ticklabelposition||"",Yn=function(gr){return Pn.indexOf(gr)!==-1},br=Yn("top"),dr=Yn("left"),Cr=Yn("right"),io=Yn("bottom")||dr||br||Cr?(at.tickwidth||0)+6:0,Qr=li,Wr=1.25*Co*So,bo=Qr/Math.sqrt(Math.pow(Qr,2)+Math.pow(Wr,2)),Bn=at.autotickangles.map(function(gr){return gr*Math.PI/180}),hr=Bn.find(function(gr){return Math.abs(Math.cos(gr))<=bo});hr===void 0&&(hr=Bn.reduce(function(gr,vr){return Math.abs(Math.cos(gr))Fr*zr&&(Kn=zr,Fn[ar]=ir[ar]=_r[ar])}var Rr=Math.abs(Kn-Wn);Rr-Un>0?Un*=1+Un/(Rr-=Un):Un=0,at._id.charAt(0)!=="y"&&(Un=-Un),Fn[Sr]=En.p2d(En.d2p(ir[Sr])+xr*Un),En.autorange==="min"||En.autorange==="max reversed"?(Fn[0]=null,En._rangeInitial0=void 0,En._rangeInitial1=void 0):En.autorange!=="max"&&En.autorange!=="min reversed"||(Fn[1]=null,En._rangeInitial0=void 0,En._rangeInitial1=void 0),xt._insideTickLabelsUpdaterange[En._name+".range"]=Fn}var $r=w.syncOrAsync(Nn);return $r&&$r.then&&it._promises.push($r),$r},ae.getPxPosition=function(it,at){var Lt,xt=it._fullLayout._size,Ht=at._id.charAt(0),Xt=at.side;return at.anchor!=="free"?Lt=at._anchorAxis:Ht==="x"?Lt={_offset:xt.t+(1-(at.position||0))*xt.h,_length:0}:Ht==="y"&&(Lt={_offset:xt.l+(at.position||0)*xt.w+at._shift,_length:0}),Xt==="top"||Xt==="left"?Lt._offset:Xt==="bottom"||Xt==="right"?Lt._offset+Lt._length:void 0},ae.shouldShowZeroLine=function(it,at,Lt){var xt=w.simpleMap(at.range,at.r2l);return xt[0]*xt[1]<=0&&at.zeroline&&(at.type==="linear"||at.type==="-")&&!(at.rangebreaks&&at.maskBreaks(0)===U)&&(Gt(at,0)||!function(Ht,Xt,Yt,Qt){var Pt=Yt._mainAxis;if(Pt){var tn=Ht._fullLayout,Kt=Xt._id.charAt(0),fn=ae.counterLetter(Xt._id),dn=Xt._offset+(Math.abs(Qt[0])1)for(Qt=1;Qt2*k}(_,m))return"date";var M=v.autotypenumbers!=="strict";return function(T,E){for(var C=T.length,L=u(C),D=0,k=0,I={},z=0;z2*D}(_,M)?"category":function(T,E){for(var C=T.length,L=0;L=2){var I,z,$="";if(k.length===2){for(I=0;I<2;I++)if(z=T(k[I])){$=A;break}}var Q=D("pattern",$);if(Q===A)for(I=0;I<2;I++)(z=T(k[I]))&&(C.bounds[I]=k[I]=z-1);if(Q)for(I=0;I<2;I++)switch(z=k[I],Q){case A:if(!c(z)||(z=+z)!==Math.floor(z)||z<0||z>=7)return void(C.enabled=!1);C.bounds[I]=k[I]=z;break;case x:if(!c(z)||(z=+z)<0||z>24)return void(C.enabled=!1);C.bounds[I]=k[I]=z}if(L.autorange===!1){var j=L.range;if(j[0]j[1])return void(C.enabled=!1)}else if(k[0]>j[0]&&k[1]p?1:-1:+(O.substr(1)||1)-+(w.substr(1)||1)},l.ref2id=function(O){return!!/^[xyz]/.test(O)&&O.split(" ")[0]},l.isLinked=function(O,w){return i(w,O._axisMatchGroups)||i(w,O._axisConstraintGroups)}},22416:function(d,l,n){var c=n(38116).isTypedArraySpec;d.exports=function(b,i,O,w){if(i.type==="category"){var y,p=b.categoryarray,a=Array.isArray(p)&&p.length>0||c(p);a&&(y="array");var u,h=O("categoryorder",y);h==="array"&&(u=O("categoryarray")),a||h!=="array"||(h=i.categoryorder="trace"),h==="trace"?i._initialCategories=[]:h==="array"?i._initialCategories=u.slice():(u=function(m,v){var _,S,A,x=v.dataAttr||m._id.charAt(0),R={};if(v.axData)_=v.axData;else for(_=[],S=0;ST?E.substr(T):C.substr(M))+L:E+C+x*R:L}function S(x,R){for(var M=R._size,T=M.h/M.w,E={},C=Object.keys(x),L=0;Lp*j)||W){for(M=0;M<$.length;M++)if(L=X[E=$[M]],D=(C=te[E]).constrain,L!==U||D==="domain")if(k=L/U,D==="range")w(C,k);else{var K=C._inputDomain,oe=(C.domain[1]-C.domain[0])/(K[1]-K[0]),q=(C.r2l(C.range[1])-C.r2l(C.range[0]))/(C.r2l(C._inputRange[1])-C.r2l(C._inputRange[0]));if((k/=oe)*q<1){C.domain=C._input.domain=K.slice(),w(C,k);continue}if(q<1&&(C.range=C._input.range=C._inputRange.slice(),k*=q),C.autorange){var Y=C.r2l(C.range[0]),ee=C.r2l(C.range[1]),me=(Y+ee)/2,he=me,se=me,ae=Math.abs(ee-me),ce=me-ae*k*1.0001,de=me+ae*k*1.0001,ve=b.makePadFn(I,C,0),ye=b.makePadFn(I,C,1);A(C,k);var _e,Se,Te=Math.abs(C._m),Pe=b.concatExtremes(x,C),Ie=Pe.min,ze=Pe.max;for(Se=0;Sece&&_ese&&(se=_e);k/=(se-he)/(2*ae),he=C.l2r(he),se=C.l2r(se),C.range=C._input.range=Y=0?Math.min(_e,.9):1/(1/Math.max(_e,-.3)+3.222))}function Y(_e,Se,Te,Pe,Ie){return _e.append("path").attr("class","zoombox").style({fill:Se>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(Te,Pe)).attr("d",Ie+"Z")}function ee(_e,Se,Te){return _e.append("path").attr("class","zoombox-corners").style({fill:u.background,stroke:u.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(Se,Te)).attr("d","M0,0Z")}function me(_e,Se,Te,Pe,Ie,ze){_e.attr("d",Pe+"M"+Te.l+","+Te.t+"v"+Te.h+"h"+Te.w+"v-"+Te.h+"h-"+Te.w+"Z"),he(_e,Se,Ie,ze)}function he(_e,Se,Te,Pe){Te||(_e.transition().style("fill",Pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Se.transition().style("opacity",1).duration(200))}function se(_e){c.select(_e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ae(_e){U&&_e.data&&_e._context.showTips&&(b.notifier(b._(_e,"Double-click to zoom back out"),"long"),U=!1)}function ce(_e){var Se=Math.floor(Math.min(_e.b-_e.t,_e.r-_e.l,j)/2);return"M"+(_e.l-3.5)+","+(_e.t-.5+Se)+"h3v"+-Se+"h"+Se+"v-3h-"+(Se+3)+"ZM"+(_e.r+3.5)+","+(_e.t-.5+Se)+"h-3v"+-Se+"h"+-Se+"v-3h"+(Se+3)+"ZM"+(_e.r+3.5)+","+(_e.b+.5-Se)+"h-3v"+Se+"h"+-Se+"v3h"+(Se+3)+"ZM"+(_e.l-3.5)+","+(_e.b+.5-Se)+"h3v"+Se+"h"+Se+"v3h-"+(Se+3)+"Z"}function de(_e,Se,Te,Pe,Ie){for(var ze,De,He,Ve,$e=!1,Oe={},ke={},Le=(Ie||{}).xaHash,We=(Ie||{}).yaHash,Ue=0;Ue=0)Wn._fullLayout._deactivateShape(Wn);else{var Kn=Wn._fullLayout.clickmode;if(se(Wn),Fn!==2||_t||En(),Ct)Kn.indexOf("select")>-1&&I(ir,Wn,Le,We,Se.id,xt),Kn.indexOf("event")>-1&&m.click(Wn,ir,Se.id);else if(Fn===1&&_t){var _r=De?$e:Ve,Ir=De==="s"||He==="w"?0:1,zr=_r._name+".range["+Ir+"]",Fr=function(Kr,Co){var so,So=Kr.range[Co],go=Math.abs(So-Kr.range[1-Co]);return Kr.type==="date"?So:Kr.type==="log"?(so=Math.ceil(Math.max(0,-Math.log(go)/Math.LN10))+3,i("."+so+"g")(Math.pow(10,So))):(so=Math.floor(Math.log(Math.abs(So))/Math.LN10)-Math.floor(Math.log(go)/Math.LN10)+4,i("."+String(so)+"g")(So))}(_r,Ir),Rr="left",$r="middle";if(_r.fixedrange)return;De?($r=De==="n"?"top":"bottom",_r.side==="right"&&(Rr="right")):He==="e"&&(Rr="right"),Wn._context.showAxisRangeEntryBoxes&&c.select(bn).call(a.makeEditable,{gd:Wn,immediate:!0,background:Wn._fullLayout.paper_bgcolor,text:String(Fr),fill:_r.tickfont?_r.tickfont.color:"#444",horizontalAlign:Rr,verticalAlign:$r}).on("edit",function(Kr){var Co=_r.d2r(Kr);Co!==void 0&&y.call("_guiRelayout",Wn,zr,Co)})}}}function Yt(Fn,ir){if(_e._transitioningWithDuration)return!1;var Wn=Math.max(0,Math.min(Xe,qt*Fn+mn)),Kn=Math.max(0,Math.min(tt,en*ir+vt)),_r=Math.abs(Wn-mn),Ir=Math.abs(Kn-vt);function zr(){Rt="",bt.r=bt.l,bt.t=bt.b,at.attr("d","M0,0Z")}if(bt.l=Math.min(mn,Wn),bt.r=Math.max(mn,Wn),bt.t=Math.min(vt,Kn),bt.b=Math.max(vt,Kn),Ee.isSubplotConstrained)_r>j||Ir>j?(Rt="xy",_r/Xe>Ir/tt?(Ir=_r*tt/Xe,vt>Kn?bt.t=vt-Ir:bt.b=vt+Ir):(_r=Ir*Xe/tt,mn>Wn?bt.l=mn-_r:bt.r=mn+_r),at.attr("d",ce(bt))):zr();else if(Ne.isSubplotConstrained)if(_r>j||Ir>j){Rt="xy";var Fr=Math.min(bt.l/Xe,(tt-bt.b)/tt),Rr=Math.max(bt.r/Xe,(tt-bt.t)/tt);bt.l=Fr*Xe,bt.r=Rr*Xe,bt.b=(1-Fr)*tt,bt.t=(1-Rr)*tt,at.attr("d",ce(bt))}else zr();else!nt||Ir0){var $r;if(Ne.isSubplotConstrained||!je&&nt.length===1){for($r=0;$r1&&(Kn.maxallowed!==void 0&&Ge===(Kn.range[0]1&&(_r.maxallowed!==void 0&&ht===(_r.range[0]<_r.range[1]?"n":"s")||_r.minallowed!==void 0&&ht===(_r.range[0]<_r.range[1]?"s":"n"))&&(So=1,li=0),so||So){so||(so=1),So||(So=1);var br=Kn._offset-go/so,dr=_r._offset-li/So;Wn.clipRect.call(h.setTranslate,go,li).call(h.setScale,so,So),Wn.plot.call(h.setTranslate,br,dr).call(h.setScale,1/so,1/So),so===Wn.xScaleFactor&&So===Wn.yScaleFactor||(h.setPointGroupScale(Wn.zoomScalePts,so,So),h.setTextPointsScale(Wn.zoomScaleTxt,so,So)),h.hideOutsideRangePoints(Wn.clipOnAxisFalseTraces,Wn),Wn.xScaleFactor=so,Wn.yScaleFactor=So}}}}function xr(Fn,ir,Wn){return Fn.fixedrange?0:Ge&&Ee.xaHash[Fn._id]?ir:ht&&(Ee.isSubplotConstrained?Ee.xaHash:Ee.yaHash)[Fn._id]?Wn:0}function Sr(Fn,ir){return ir?(Fn.range=Fn._r.slice(),z(Fn,ir),ar(Fn,ir)):0}function ar(Fn,ir,Wn){return Fn._length*(1-ir)*M[Wn||Fn.constraintoward||"middle"]}return De.length*He.length!=1&&ve(bn,function(Fn){if(_e._context._scrollZoom.cartesian||_e._fullLayout._enablescrollzoom){if(Ht(),_e._transitioningWithDuration)return Fn.preventDefault(),void Fn.stopPropagation();nn(),clearTimeout(Kt);var ir=-Fn.deltaY;if(isFinite(ir)||(ir=Fn.wheelDelta/10),isFinite(ir)){var Wn,Kn=Math.exp(-Math.min(Math.max(ir,-20),20)/200),_r=dn.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Ir=(Fn.clientX-_r.left)/_r.width,zr=(_r.bottom-Fn.clientY)/_r.height;if(Ge){for(He||(Ir=.5),Wn=0;WnC[1]-.000244140625&&(O.domain=a),b.noneOrAll(i.domain,O.domain,a),O.tickmode==="sync"&&(O.tickmode="auto")}return w("layer"),O}},42568:function(d,l,n){var c=n(85024);d.exports=function(b,i,O,w,y){y||(y={});var p=y.tickSuffixDflt,a=c(b);O("tickprefix")&&O("showtickprefix",a),O("ticksuffix",p)&&O("showticksuffix",a)}},96312:function(d,l,n){var c=n(76808);d.exports=function(b,i,O,w){var y=i._template||{},p=i.type||y.type||"-";O("minallowed"),O("maxallowed");var a,u=O("range");u||w.noInsiderange||p==="log"||(!(a=O("insiderange"))||a[0]!==null&&a[1]!==null||(i.insiderange=!1,a=void 0),a&&(u=O("range",a)));var h,m=i.getAutorangeDflt(u,w),v=O("autorange",m);!u||(u[0]!==null||u[1]!==null)&&(u[0]!==null&&u[1]!==null||v!=="reversed"&&v!==!0)&&(u[0]===null||v!=="min"&&v!=="max reversed")&&(u[1]===null||v!=="max"&&v!=="min reversed")||(u=void 0,delete i.range,i.autorange=!0,h=!0),h||(v=O("autorange",m=i.getAutorangeDflt(u,w))),v&&(c(O,v,u),p!=="linear"&&p!=="-"||O("rangemode")),i.cleanRange()}},21160:function(d,l,n){var c=n(84284).FROM_BL;d.exports=function(b,i,O){O===void 0&&(O=c[b.constraintoward||"center"]);var w=[b.r2l(b.range[0]),b.r2l(b.range[1])],y=w[0]+(w[1]-w[0])*O;b.range=b._input.range=[b.l2r(y+(w[0]-y)*i),b.l2r(y+(w[1]-y)*i)],b.setScale()}},78344:function(d,l,n){var c=n(33428),b=n(94336).E9,i=n(3400),O=i.numberFormat,w=n(38248),y=i.cleanNumber,p=i.ms2DateTime,a=i.dateTime2ms,u=i.ensureNumber,h=i.isArrayOrTypedArray,m=n(39032),v=m.FP_SAFE,_=m.BADNUM,S=m.LOG_CLIP,A=m.ONEWEEK,x=m.ONEDAY,R=m.ONEHOUR,M=m.ONEMIN,T=m.ONESEC,E=n(79811),C=n(33816),L=C.HOUR_PATTERN,D=C.WEEKDAY_PATTERN;function k(z){return Math.pow(10,z)}function I(z){return z!=null}d.exports=function(z,$){$=$||{};var Q=z._id||"x",j=Q.charAt(0);function U(de,ve){if(de>0)return Math.log(de)/Math.LN10;if(de<=0&&ve&&z.range&&z.range.length===2){var ye=z.range[0],_e=z.range[1];return .5*(ye+_e-2*S*Math.abs(ye-_e))}return _}function X(de,ve,ye,_e){if((_e||{}).msUTC&&w(de))return+de;var Se=a(de,ye||z.calendar);if(Se===_){if(!w(de))return _;de=+de;var Te=Math.floor(10*i.mod(de+.05,1)),Pe=Math.round(de-Te/10);Se=a(new Date(Pe))+Te/10}return Se}function te(de,ve,ye){return p(de,ve,ye||z.calendar)}function W(de){return z._categories[Math.round(de)]}function K(de){if(I(de)){if(z._categoriesMap===void 0&&(z._categoriesMap={}),z._categoriesMap[de]!==void 0)return z._categoriesMap[de];z._categories.push(typeof de=="number"?String(de):de);var ve=z._categories.length-1;return z._categoriesMap[de]=ve,ve}return _}function oe(de){if(z._categoriesMap)return z._categoriesMap[de]}function q(de){var ve=oe(de);return ve!==void 0?ve:w(de)?+de:void 0}function Y(de){return w(de)?+de:oe(de)}function ee(de,ve,ye){return c.round(ye+ve*de,2)}function me(de,ve,ye){return(de-ye)/ve}var he=function(de){return w(de)?ee(de,z._m,z._b):_},se=function(de){return me(de,z._m,z._b)};if(z.rangebreaks){var ae=j==="y";he=function(de){if(!w(de))return _;var ve=z._rangebreaks.length;if(!ve)return ee(de,z._m,z._b);var ye=ae;z.range[0]>z.range[1]&&(ye=!ye);for(var _e=ye?-1:1,Se=_e*de,Te=0,Pe=0;Peze)){Te=Se<(Ie+ze)/2?Pe:Pe+1;break}Te=Pe+1}var De=z._B[Te]||0;return isFinite(De)?ee(de,z._m2,De):0},se=function(de){var ve=z._rangebreaks.length;if(!ve)return me(de,z._m,z._b);for(var ye=0,_e=0;_ez._rangebreaks[_e].pmax&&(ye=_e+1);return me(de,z._m2,z._B[ye])}}z.c2l=z.type==="log"?U:u,z.l2c=z.type==="log"?k:u,z.l2p=he,z.p2l=se,z.c2p=z.type==="log"?function(de,ve){return he(U(de,ve))}:he,z.p2c=z.type==="log"?function(de){return k(se(de))}:se,["linear","-"].indexOf(z.type)!==-1?(z.d2r=z.r2d=z.d2c=z.r2c=z.d2l=z.r2l=y,z.c2d=z.c2r=z.l2d=z.l2r=u,z.d2p=z.r2p=function(de){return z.l2p(y(de))},z.p2d=z.p2r=se,z.cleanPos=u):z.type==="log"?(z.d2r=z.d2l=function(de,ve){return U(y(de),ve)},z.r2d=z.r2c=function(de){return k(y(de))},z.d2c=z.r2l=y,z.c2d=z.l2r=u,z.c2r=U,z.l2d=k,z.d2p=function(de,ve){return z.l2p(z.d2r(de,ve))},z.p2d=function(de){return k(se(de))},z.r2p=function(de){return z.l2p(y(de))},z.p2r=se,z.cleanPos=u):z.type==="date"?(z.d2r=z.r2d=i.identity,z.d2c=z.r2c=z.d2l=z.r2l=X,z.c2d=z.c2r=z.l2d=z.l2r=te,z.d2p=z.r2p=function(de,ve,ye){return z.l2p(X(de,0,ye))},z.p2d=z.p2r=function(de,ve,ye){return te(se(de),ve,ye)},z.cleanPos=function(de){return i.cleanDate(de,_,z.calendar)}):z.type==="category"?(z.d2c=z.d2l=K,z.r2d=z.c2d=z.l2d=W,z.d2r=z.d2l_noadd=q,z.r2c=function(de){var ve=Y(de);return ve!==void 0?ve:z.fraction2r(.5)},z.l2r=z.c2r=u,z.r2l=Y,z.d2p=function(de){return z.l2p(z.r2c(de))},z.p2d=function(de){return W(se(de))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(de){return typeof de=="string"&&de!==""?de:u(de)}):z.type==="multicategory"&&(z.r2d=z.c2d=z.l2d=W,z.d2r=z.d2l_noadd=q,z.r2c=function(de){var ve=q(de);return ve!==void 0?ve:z.fraction2r(.5)},z.r2c_just_indices=oe,z.l2r=z.c2r=u,z.r2l=q,z.d2p=function(de){return z.l2p(z.r2c(de))},z.p2d=function(de){return W(se(de))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(de){return Array.isArray(de)||typeof de=="string"&&de!==""?de:u(de)},z.setupMultiCategory=function(de){var ve,ye,_e=z._traceIndices,Se=z._matchGroup;if(Se&&z._categories.length===0){for(var Te in Se)if(Te!==Q){var Pe=$[E.id2name(Te)];_e=_e.concat(Pe._traceIndices)}}var Ie=[[0,{}],[0,{}]],ze=[];for(ve=0;ve<_e.length;ve++){var De=de[_e[ve]];if(j in De){var He=De[j],Ve=De._length||i.minRowLength(He);if(h(He[0])&&h(He[1]))for(ye=0;yePe[1]&&(_e[Te?0:1]=ye),_e[0]===_e[1]){var Ie=z.l2r(ve),ze=z.l2r(ye);if(ve!==void 0){var De=Ie+1;ye!==void 0&&(De=Math.min(De,ze)),_e[Te?1:0]=De}if(ye!==void 0){var He=ze+1;ve!==void 0&&(He=Math.max(He,Ie)),_e[Te?0:1]=He}}}},z.cleanRange=function(de,ve){z._cleanRange(de,ve),z.limitRange(de)},z._cleanRange=function(de,ve){ve||(ve={}),de||(de="range");var ye,_e,Se=i.nestedProperty(z,de).get();if(_e=(_e=z.type==="date"?i.dfltRange(z.calendar):j==="y"?C.DFLTRANGEY:z._name==="realaxis"?[0,1]:ve.dfltRange||C.DFLTRANGEX).slice(),z.rangemode!=="tozero"&&z.rangemode!=="nonnegative"||(_e[0]=0),Se&&Se.length===2){var Te=Se[0]===null,Pe=Se[1]===null;for(z.type!=="date"||z.autorange||(Se[0]=i.cleanDate(Se[0],_,z.calendar),Se[1]=i.cleanDate(Se[1],_,z.calendar)),ye=0;ye<2;ye++)if(z.type==="date"){if(!i.isDateTime(Se[ye],z.calendar)){z[de]=_e;break}if(z.r2l(Se[0])===z.r2l(Se[1])){var Ie=i.constrain(z.r2l(Se[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);Se[0]=z.l2r(Ie-1e3),Se[1]=z.l2r(Ie+1e3);break}}else{if(!w(Se[ye])){if(Te||Pe||!w(Se[1-ye])){z[de]=_e;break}Se[ye]=Se[1-ye]*(ye?10:.1)}if(Se[ye]<-v?Se[ye]=-v:Se[ye]>v&&(Se[ye]=v),Se[0]===Se[1]){var ze=Math.max(1,Math.abs(1e-6*Se[0]));Se[0]-=ze,Se[1]+=ze}}}else i.nestedProperty(z,de).set(_e)},z.setScale=function(de){var ve=$._size;if(z.overlaying){var ye=E.getFromId({_fullLayout:$},z.overlaying);z.domain=ye.domain}var _e=de&&z._r?"_r":"range",Se=z.calendar;z.cleanRange(_e);var Te,Pe,Ie=z.r2l(z[_e][0],Se),ze=z.r2l(z[_e][1],Se),De=j==="y";if(De?(z._offset=ve.t+(1-z.domain[1])*ve.h,z._length=ve.h*(z.domain[1]-z.domain[0]),z._m=z._length/(Ie-ze),z._b=-z._m*ze):(z._offset=ve.l+z.domain[0]*ve.w,z._length=ve.w*(z.domain[1]-z.domain[0]),z._m=z._length/(ze-Ie),z._b=-z._m*Ie),z._rangebreaks=[],z._lBreaks=0,z._m2=0,z._B=[],z.rangebreaks&&(z._rangebreaks=z.locateBreaks(Math.min(Ie,ze),Math.max(Ie,ze)),z._rangebreaks.length)){for(Te=0;Teze&&(He=!He),He&&z._rangebreaks.reverse();var Ve=He?-1:1;for(z._m2=Ve*z._length/(Math.abs(ze-Ie)-z._lBreaks),z._B.push(-z._m2*(De?ze:Ie)),Te=0;Te_e&&(_e+=7,Se_e&&(_e+=24,Se=ye&&Se<_e)return _}else for(var He=Pe._cachedValues[Ie],Ve=0;Ve=ye&&de<_e)return _}}return de},z.locateBreaks=function(de,ve){var ye,_e,Se,Te,Pe=[];if(!z.rangebreaks)return Pe;var Ie=z.rangebreaks.slice().sort(function(Ze,Xe){return Ze.pattern===D&&Xe.pattern===L?-1:Xe.pattern===D&&Ze.pattern===L?1:0}),ze=function(Ze,Xe){if((Ze=i.constrain(Ze,de,ve))!==(Xe=i.constrain(Xe,de,ve))){for(var tt=!0,Ee=0;Ee=Ne.min&&(ZeNe.max&&(Ne.max=Xe),tt=!1)}tt&&Pe.push({min:Ze,max:Xe})}};for(ye=0;yea.duration?(function(){for(var L={},D=0;D rect").call(O.setTranslate,0,0).call(O.setScale,1,1),M.plot.call(O.setTranslate,T._offset,E._offset).call(O.setScale,1,1);var C=M.plot.selectAll(".scatterlayer .trace");C.selectAll(".point").call(O.setPointGroupScale,1,1),C.selectAll(".textpoint").call(O.setTextPointsScale,1,1),C.call(O.hideOutsideRangePoints,M)}function R(M,T){var E=M.plotinfo,C=E.xaxis,L=E.yaxis,D=C._length,k=L._length,I=!!M.xr1,z=!!M.yr1,$=[];if(I){var Q=i.simpleMap(M.xr0,C.r2l),j=i.simpleMap(M.xr1,C.r2l),U=Q[1]-Q[0],X=j[1]-j[0];$[0]=(Q[0]*(1-T)+T*j[0]-Q[0])/(Q[1]-Q[0])*D,$[2]=D*(1-T+T*X/U),C.range[0]=C.l2r(Q[0]*(1-T)+T*j[0]),C.range[1]=C.l2r(Q[1]*(1-T)+T*j[1])}else $[0]=0,$[2]=D;if(z){var te=i.simpleMap(M.yr0,L.r2l),W=i.simpleMap(M.yr1,L.r2l),K=te[1]-te[0],oe=W[1]-W[0];$[1]=(te[1]*(1-T)+T*W[1]-te[1])/(te[0]-te[1])*k,$[3]=k*(1-T+T*oe/K),L.range[0]=C.l2r(te[0]*(1-T)+T*W[0]),L.range[1]=L.l2r(te[1]*(1-T)+T*W[1])}else $[1]=0,$[3]=k;w.drawOne(y,C,{skipTitle:!0}),w.drawOne(y,L,{skipTitle:!0}),w.redrawComponents(y,[C._id,L._id]);var q=I?D/$[2]:1,Y=z?k/$[3]:1,ee=I?$[0]:0,me=z?$[1]:0,he=I?$[0]/$[2]*D:0,se=z?$[1]/$[3]*k:0,ae=C._offset-he,ce=L._offset-se;E.clipRect.call(O.setTranslate,ee,me).call(O.setScale,1/q,1/Y),E.plot.call(O.setTranslate,ae,ce).call(O.setScale,q,Y),O.setPointGroupScale(E.zoomScalePts,1/q,1/Y),O.setTextPointsScale(E.zoomScaleTxt,1/q,1/Y)}w.redrawComponents(y)}},14944:function(d,l,n){var c=n(24040).traceIs,b=n(52976);function i(w){return{v:"x",h:"y"}[w.orientation||"v"]}function O(w,y){var p=i(w),a=c(w,"box-violin"),u=c(w._fullInput||{},"candlestick");return a&&!u&&y===p&&w[p]===void 0&&w[p+"0"]===void 0}d.exports=function(w,y,p,a){p("autotypenumbers",a.autotypenumbersDflt),p("type",(a.splomStash||{}).type)==="-"&&(function(u,h){if(u.type==="-"){var m,v=u._id,_=v.charAt(0);v.indexOf("scene")!==-1&&(v=_);var S=function(L,D,k){for(var I=0;I0&&(z["_"+k+"axes"]||{})[D]||(z[k+"axis"]||k)===D&&(O(z,k)||(z[k]||[]).length||z[k+"0"]))return z}}(h,v,_);if(S)if(S.type!=="histogram"||_!=={v:"y",h:"x"}[S.orientation||"v"]){var A=_+"calendar",x=S[A],R={noMultiCategory:!c(S,"cartesian")||c(S,"noMultiCategory")};if(S.type==="box"&&S._hasPreCompStats&&_==={h:"x",v:"y"}[S.orientation||"v"]&&(R.noMultiCategory=!0),R.autotypenumbers=u.autotypenumbers,O(S,_)){var M=i(S),T=[];for(m=0;m0?".":"")+m;b.isPlainObject(v)?y(v,a,_,h+1):a(_,m,v)}})}l.manageCommandObserver=function(p,a,u,h){var m={},v=!0;a&&a._commandObserver&&(m=a._commandObserver),m.cache||(m.cache={}),m.lookupTable={};var _=l.hasSimpleAPICommandBindings(p,u,m.lookupTable);if(a&&a._commandObserver){if(_)return m;if(a._commandObserver.remove)return a._commandObserver.remove(),a._commandObserver=null,m}if(_){i(p,_,m.cache),m.check=function(){if(v){var x=i(p,_,m.cache);return x.changed&&h&&m.lookupTable[x.value]!==void 0&&(m.disable(),Promise.resolve(h({value:x.value,type:_.type,prop:_.prop,traces:_.traces,index:m.lookupTable[x.value]})).then(m.enable,m.enable)),x.changed}};for(var S=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],A=0;A0&&X<0&&(X+=360);var K=(X-U)/4;return{type:"Polygon",coordinates:[[[U,te],[U,W],[U+K,W],[U+2*K,W],[U+3*K,W],[X,W],[X,te],[X-K,te],[X-2*K,te],[X-3*K,te],[U,te]]]}}d.exports=function($){return new k($)},I.plot=function($,Q,j,U){var X=this;if(U)return X.update($,Q,!0);X._geoCalcData=$,X._fullLayout=Q;var te=Q[this.id],W=[],K=!1;for(var oe in E.layerNameToAdjective)if(oe!=="frame"&&te["show"+oe]){K=!0;break}for(var q=!1,Y=0;Y<$.length;Y++){var ee=$[0][0].trace;ee._geo=X,ee.locationmode&&(K=!0);var me=ee.marker;if(me){var he=me.angle,se=me.angleref;(he||se==="north"||se==="previous")&&(q=!0)}}if(this._hasMarkerAngles=q,K){var ae=L.getTopojsonName(te);X.topojson!==null&&ae===X.topojsonName||(X.topojsonName=ae,PlotlyGeoAssets.topojson[X.topojsonName]===void 0&&W.push(X.fetchTopojson()))}W=W.concat(C.fetchTraceGeoData($)),j.push(new Promise(function(ce,de){Promise.all(W).then(function(){X.topojson=PlotlyGeoAssets.topojson[X.topojsonName],X.update($,Q),ce()}).catch(de)}))},I.fetchTopojson=function(){var $=this,Q=L.getTopojsonPath($.topojsonURL,$.topojsonName);return new Promise(function(j,U){c.json(Q,function(X,te){if(X)return X.status===404?U(new Error(["plotly.js could not find topojson file at",Q+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):U(new Error(["unexpected error while fetching topojson file at",Q].join(" ")));PlotlyGeoAssets.topojson[$.topojsonName]=te,j()})})},I.update=function($,Q,j){var U=Q[this.id];this.hasChoropleth=!1;for(var X=0;X<$.length;X++){var te=$[X],W=te[0].trace;W.type==="choropleth"&&(this.hasChoropleth=!0),W.visible===!0&&W._length>0&&W._module.calcGeoJSON(te,Q)}if(!j){if(this.updateProjection($,Q))return;this.viewInitial&&this.scope===U.scope||this.saveViewInitial(U)}this.scope=U.scope,this.updateBaseLayers(Q,U),this.updateDims(Q,U),this.updateFx(Q,U),v.generalUpdatePerTraceModule(this.graphDiv,this,$,U);var K=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=K.selectAll(".point"),this.dataPoints.text=K.selectAll("text"),this.dataPaths.line=K.selectAll(".js-line");var oe=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=oe.selectAll("path"),this._render()},I.updateProjection=function($,Q){var j=this.graphDiv,U=Q[this.id],X=Q._size,te=U.domain,W=U.projection,K=U.lonaxis,oe=U.lataxis,q=K._ax,Y=oe._ax,ee=this.projection=function(ke){var Le=ke.projection,We=Le.type,Ue=E.projNames[We];Ue="geo"+p.titleCase(Ue);for(var Ze=(b[Ue]||w[Ue])(),Xe=ke._isSatellite?180*Math.acos(1/Le.distance)/Math.PI:ke._isClipped?E.lonaxisSpan[We]/2:null,tt=["center","rotate","parallels","clipExtent"],Ee=function(nt){return nt?Ze:[]},Ne=0;NeXe*Math.PI/180}return!1},Ze.getPath=function(){return i().projection(Ze)},Ze.getBounds=function(nt){return Ze.getPath().bounds(nt)},Ze.precision(E.precision),ke._isSatellite&&Ze.tilt(Le.tilt).distance(Le.distance),Xe&&Ze.clipAngle(Xe-E.clipPad),Ze}(U),me=[[X.l+X.w*te.x[0],X.t+X.h*(1-te.y[1])],[X.l+X.w*te.x[1],X.t+X.h*(1-te.y[0])]],he=U.center||{},se=W.rotation||{},ae=K.range||[],ce=oe.range||[];if(U.fitbounds){q._length=me[1][0]-me[0][0],Y._length=me[1][1]-me[0][1],q.range=S(j,q),Y.range=S(j,Y);var de=(q.range[0]+q.range[1])/2,ve=(Y.range[0]+Y.range[1])/2;if(U._isScoped)he={lon:de,lat:ve};else if(U._isClipped){he={lon:de,lat:ve},se={lon:de,lat:ve,roll:se.roll};var ye=W.type,_e=E.lonaxisSpan[ye]/2||180,Se=E.lataxisSpan[ye]/2||90;ae=[de-_e,de+_e],ce=[ve-Se,ve+Se]}else he={lon:de,lat:ve},se={lon:de,lat:se.lat,roll:se.roll}}ee.center([he.lon-se.lon,he.lat-se.lat]).rotate([-se.lon,-se.lat,se.roll]).parallels(W.parallels);var Te=z(ae,ce);ee.fitExtent(me,Te);var Pe=this.bounds=ee.getBounds(Te),Ie=this.fitScale=ee.scale(),ze=ee.translate();if(U.fitbounds){var De=ee.getBounds(z(q.range,Y.range)),He=Math.min((Pe[1][0]-Pe[0][0])/(De[1][0]-De[0][0]),(Pe[1][1]-Pe[0][1])/(De[1][1]-De[0][1]));isFinite(He)?ee.scale(He*Ie):p.warn("Something went wrong during"+this.id+"fitbounds computations.")}else ee.scale(W.scale*Ie);var Ve=this.midPt=[(Pe[0][0]+Pe[1][0])/2,(Pe[0][1]+Pe[1][1])/2];if(ee.translate([ze[0]+(Ve[0]-ze[0]),ze[1]+(Ve[1]-ze[1])]).clipExtent(Pe),U._isAlbersUsa){var $e=ee([he.lon,he.lat]),Oe=ee.translate();ee.translate([Oe[0]-($e[0]-Oe[0]),Oe[1]-($e[1]-Oe[1])])}},I.updateBaseLayers=function($,Q){var j=this,U=j.topojson,X=j.layers,te=j.basePaths;function W(ee){return ee==="lonaxis"||ee==="lataxis"}function K(ee){return!!E.lineLayers[ee]}function oe(ee){return!!E.fillLayers[ee]}var q=(this.hasChoropleth?E.layersForChoropleth:E.layers).filter(function(ee){return K(ee)||oe(ee)?Q["show"+ee]:!W(ee)||Q[ee].showgrid}),Y=j.framework.selectAll(".layer").data(q,String);Y.exit().each(function(ee){delete X[ee],delete te[ee],c.select(this).remove()}),Y.enter().append("g").attr("class",function(ee){return"layer "+ee}).each(function(ee){var me=X[ee]=c.select(this);ee==="bg"?j.bgRect=me.append("rect").style("pointer-events","all"):W(ee)?te[ee]=me.append("path").style("fill","none"):ee==="backplot"?me.append("g").classed("choroplethlayer",!0):ee==="frontplot"?me.append("g").classed("scatterlayer",!0):K(ee)?te[ee]=me.append("path").style("fill","none").style("stroke-miterlimit",2):oe(ee)&&(te[ee]=me.append("path").style("stroke","none"))}),Y.order(),Y.each(function(ee){var me=te[ee],he=E.layerNameToAdjective[ee];ee==="frame"?me.datum(E.sphereSVG):K(ee)||oe(ee)?me.datum(D(U,U.objects[ee])):W(ee)&&me.datum(function(se,ae,ce){var de,ve,ye,_e=ae[se],Se=E.scopeDefaults[ae.scope];se==="lonaxis"?(de=Se.lonaxisRange,ve=Se.lataxisRange,ye=function(Oe,ke){return[Oe,ke]}):se==="lataxis"&&(de=Se.lataxisRange,ve=Se.lonaxisRange,ye=function(Oe,ke){return[ke,Oe]});var Te={type:"linear",range:[de[0],de[1]-1e-6],tick0:_e.tick0,dtick:_e.dtick};_.setConvert(Te,ce);var Pe=_.calcTicks(Te);ae.isScoped||se!=="lonaxis"||Pe.pop();for(var Ie=Pe.length,ze=new Array(Ie),De=0;De-1&&M(c.event,U,[j.xaxis],[j.yaxis],j.id,K),W.indexOf("event")>-1&&m.click(U,c.event))})}function oe(q){return j.projection.invert([q[0]+j.xaxis._offset,q[1]+j.yaxis._offset])}},I.makeFramework=function(){var $=this,Q=$.graphDiv,j=Q._fullLayout,U="clip"+j._uid+$.id;$.clipDef=j._clips.append("clipPath").attr("id",U),$.clipRect=$.clipDef.append("rect"),$.framework=c.select($.container).append("g").attr("class","geo "+$.id).call(h.setClipUrl,U,Q),$.project=function(X){var te=$.projection(X);return te?[te[0]-$.xaxis._offset,te[1]-$.yaxis._offset]:[null,null]},$.xaxis={_id:"x",c2p:function(X){return $.project(X)[0]}},$.yaxis={_id:"y",c2p:function(X){return $.project(X)[1]}},$.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},_.setConvert($.mockAxis,j)},I.saveViewInitial=function($){var Q,j=$.center||{},U=$.projection,X=U.rotation||{};this.viewInitial={fitbounds:$.fitbounds,"projection.scale":U.scale},Q=$._isScoped?{"center.lon":j.lon,"center.lat":j.lat}:$._isClipped?{"projection.rotation.lon":X.lon,"projection.rotation.lat":X.lat}:{"center.lon":j.lon,"center.lat":j.lat,"projection.rotation.lon":X.lon},p.extendFlat(this.viewInitial,Q)},I.render=function($){this._hasMarkerAngles&&$?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},I._render=function(){var $,Q=this.projection,j=Q.getPath();function U(te){var W=Q(te.lonlat);return W?a(W[0],W[1]):null}function X(te){return Q.isLonLatOverEdges(te.lonlat)?"none":null}for($ in this.basePaths)this.basePaths[$].attr("d",j);for($ in this.dataPaths)this.dataPaths[$].attr("d",function(te){return j(te.geojson)});for($ in this.dataPoints)this.dataPoints[$].attr("display",X).attr("transform",U)}},10816:function(d,l,n){var c=n(84888).KY,b=n(3400).counterRegex,i=n(43520),O="geo",w=b(O),y={};y[O]={valType:"subplotid",dflt:O,editType:"calc"},d.exports={attr:O,name:O,idRoot:O,idRegex:w,attrRegex:w,attributes:y,layoutAttributes:n(40384),supplyLayoutDefaults:n(86920),plot:function(p){for(var a=p._fullLayout,u=p.calcdata,h=a._subplots[O],m=0;m0&&oe<0&&(oe+=360);var q,Y,ee,me=(K+oe)/2;if(!R){var he=M?A.projRotate:[me,0,0];q=h("projection.rotation.lon",he[0]),h("projection.rotation.lat",he[1]),h("projection.rotation.roll",he[2]),h("showcoastlines",!M&&D)&&(h("coastlinecolor"),h("coastlinewidth")),h("showocean",!!D&&void 0)&&h("oceancolor")}R?(Y=-96.6,ee=38.7):(Y=M?me:q,ee=(W[0]+W[1])/2),h("center.lon",Y),h("center.lat",ee),T&&(h("projection.tilt"),h("projection.distance")),E&&h("projection.parallels",A.projParallels||[0,60]),h("projection.scale"),h("showland",!!D&&void 0)&&h("landcolor"),h("showlakes",!!D&&void 0)&&h("lakecolor"),h("showrivers",!!D&&void 0)&&(h("rivercolor"),h("riverwidth")),h("showcountries",M&&S!=="usa"&&D)&&(h("countrycolor"),h("countrywidth")),(S==="usa"||S==="north america"&&_===50)&&(h("showsubunits",D),h("subunitcolor"),h("subunitwidth")),M||h("showframe",D)&&(h("framecolor"),h("framewidth")),h("bgcolor"),h("fitbounds")&&(delete u.projection.scale,M?(delete u.center.lon,delete u.center.lat):C?(delete u.center.lon,delete u.center.lat,delete u.projection.rotation.lon,delete u.projection.rotation.lat,delete u.lonaxis.range,delete u.lataxis.range):(delete u.center.lon,delete u.center.lat,delete u.projection.rotation.lon))}d.exports=function(a,u,h){b(a,u,h,{type:"geo",attributes:w,handleDefaults:p,fullData:h,partition:"y"})}},79248:function(d,l,n){var c=n(33428),b=n(3400),i=n(24040),O=Math.PI/180,w=180/Math.PI,y={cursor:"pointer"},p={cursor:"auto"};function a(M,T){return c.behavior.zoom().translate(T.translate()).scale(T.scale())}function u(M,T,E){var C=M.id,L=M.graphDiv,D=L.layout,k=D[C],I=L._fullLayout,z=I[C],$={},Q={};function j(U,X){$[C+"."+U]=b.nestedProperty(k,U).get(),i.call("_storeDirectGUIEdit",D,I._preGUI,$);var te=b.nestedProperty(z,U);te.get()!==X&&(te.set(X),b.nestedProperty(k,U).set(X),Q[C+"."+U]=X)}E(j),j("projection.scale",T.scale()/M.fitScale),j("fitbounds",!1),L.emit("plotly_relayout",Q)}function h(M,T){var E=a(0,T);function C(L){var D=T.invert(M.midPt);L("center.lon",D[0]),L("center.lat",D[1])}return E.on("zoomstart",function(){c.select(this).style(y)}).on("zoom",function(){T.scale(c.event.scale).translate(c.event.translate),M.render(!0);var L=T.invert(M.midPt);M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.center.lon":L[0],"geo.center.lat":L[1]})}).on("zoomend",function(){c.select(this).style(p),u(M,T,C)}),E}function m(M,T){var E,C,L,D,k,I,z,$,Q,j=a(0,T);function U(te){return T.invert(te)}function X(te){var W=T.rotate(),K=T.invert(M.midPt);te("projection.rotation.lon",-W[0]),te("center.lon",K[0]),te("center.lat",K[1])}return j.on("zoomstart",function(){c.select(this).style(y),E=c.mouse(this),C=T.rotate(),L=T.translate(),D=C,k=U(E)}).on("zoom",function(){if(I=c.mouse(this),function(K){var oe=U(K);if(!oe)return!0;var q=T(oe);return Math.abs(q[0]-K[0])>2||Math.abs(q[1]-K[1])>2}(E))return j.scale(T.scale()),void j.translate(T.translate());T.scale(c.event.scale),T.translate([L[0],c.event.translate[1]]),k?U(I)&&($=U(I),z=[D[0]+($[0]-k[0]),C[1],C[2]],T.rotate(z),D=z):k=U(E=I),Q=!0,M.render(!0);var te=T.rotate(),W=T.invert(M.midPt);M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.center.lon":W[0],"geo.center.lat":W[1],"geo.projection.rotation.lon":-te[0]})}).on("zoomend",function(){c.select(this).style(p),Q&&u(M,T,X)}),j}function v(M,T){var E;T.rotate(),T.scale();var C=a(0,T),L=function(z){for(var $=0,Q=arguments.length,j=[];++$Ge?(Ze=(je>0?90:-90)-ot,Ue=0):(Ze=Math.asin(je/Ge)*w-ot,Ue=Math.sqrt(Ge*Ge-je*je));var ht=180-Ze-2*ot,pt=(Math.atan2(nt,Ne)-Math.atan2(Ee,Ue))*w,wt=(Math.atan2(nt,Ne)-Math.atan2(Ee,-Ue))*w;return S(Le[0],Le[1],Ze,pt)<=S(Le[0],Le[1],ht,wt)?[Ze,pt,Le[2]]:[ht,wt,Le[2]]}(Ve,E,me);isFinite($e[0])&&isFinite($e[1])&&isFinite($e[2])||($e=me),T.rotate($e),me=$e}}else E=_(T,Y=ze);L.of(this,arguments)({type:"zoom"})}),q=L.of(this,arguments),D++||q({type:"zoomstart"})}).on("zoomend",function(){var z;c.select(this).style(p),k.call(C,"zoom",null),z=L.of(this,arguments),--D||z({type:"zoomend"}),u(M,T,I)}).on("zoom.redraw",function(){M.render(!0);var z=T.rotate();M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.projection.rotation.lon":-z[0],"geo.projection.rotation.lat":-z[1]})}),c.rebind(C,L,"on")}function _(M,T){var E=M.invert(T);return E&&isFinite(E[0])&&isFinite(E[1])&&function(C){var L=C[0]*O,D=C[1]*O,k=Math.cos(D);return[k*Math.cos(L),k*Math.sin(L),Math.sin(D)]}(E)}function S(M,T,E,C){var L=A(E-M),D=A(C-T);return Math.sqrt(L*L+D*D)}function A(M){return(M%360+540)%360-180}function x(M,T,E){var C=E*O,L=M.slice(),D=T===0?1:0,k=T===2?1:2,I=Math.cos(C),z=Math.sin(C);return L[D]=M[D]*I-M[k]*z,L[k]=M[k]*I+M[D]*z,L}function R(M,T){for(var E=0,C=0,L=M.length;CMath.abs(R)?(h.boxEnd[1]=h.boxStart[1]+Math.abs(x)*j*(R>=0?1:-1),h.boxEnd[1]M[3]&&(h.boxEnd[1]=M[3],h.boxEnd[0]=h.boxStart[0]+(M[3]-h.boxStart[1])/Math.abs(j))):(h.boxEnd[0]=h.boxStart[0]+Math.abs(R)/j*(x>=0?1:-1),h.boxEnd[0]M[2]&&(h.boxEnd[0]=M[2],h.boxEnd[1]=h.boxStart[1]+(M[2]-h.boxStart[0])*Math.abs(j)))}}else h.boxEnabled?(x=h.boxStart[0]!==h.boxEnd[0],R=h.boxStart[1]!==h.boxEnd[1],x||R?(x&&(k(0,h.boxStart[0],h.boxEnd[0]),p.xaxis.autorange=!1),R&&(k(1,h.boxStart[1],h.boxEnd[1]),p.yaxis.autorange=!1),p.relayoutCallback()):p.glplot.setDirty(),h.boxEnabled=!1,h.boxInited=!1):h.boxInited&&(h.boxInited=!1);break;case"pan":h.boxEnabled=!1,h.boxInited=!1,_?(h.panning||(h.dragStart[0]=S,h.dragStart[1]=A),Math.abs(h.dragStart[0]-S).999&&(C="turntable"):C="turntable")}else C="turntable";v("dragmode",C),v("hovermode",_.getDfltFromLayout("hovermode"))}d.exports=function(h,m,v){var _=m._basePlotModules.length>1;O(h,m,v,{type:a,attributes:y,handleDefaults:u,fullLayout:m,font:m.font,fullData:v,getDfltFromLayout:function(S){if(!_)return c.validate(h[S],y[S])?h[S]:void 0},autotypenumbersDflt:m.autotypenumbers,paper_bgcolor:m.paper_bgcolor,calendar:m.calendar})}},346:function(d,l,n){var c=n(86140),b=n(86968).u,i=n(92880).extendFlat,O=n(3400).counterRegex;function w(y,p,a){return{x:{valType:"number",dflt:y,editType:"camera"},y:{valType:"number",dflt:p,editType:"camera"},z:{valType:"number",dflt:a,editType:"camera"},editType:"camera"}}d.exports={_arrayAttrRegexps:[O("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:i(w(0,0,1),{}),center:i(w(0,0,0),{}),eye:i(w(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:b({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:c,yaxis:c,zaxis:c,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(d,l,n){var c=n(43080),b=["xaxis","yaxis","zaxis"];function i(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}i.prototype.merge=function(O){for(var w=0;w<3;++w){var y=O[b[w]];y.visible?(this.enabled[w]=y.showspikes,this.colors[w]=c(y.spikecolor),this.drawSides[w]=y.spikesides,this.lineWidth[w]=y.spikethickness):(this.enabled[w]=!1,this.drawSides[w]=!1)}},d.exports=function(O){var w=new i;return w.merge(O),w}},87152:function(d,l,n){d.exports=function(w){for(var y=w.axesOptions,p=w.glplot.axesPixels,a=w.fullSceneLayout,u=[[],[],[]],h=0;h<3;++h){var m=a[i[h]];if(m._length=(p[h].hi-p[h].lo)*p[h].pixelsPerDataUnit/w.dataScale[h],Math.abs(m._length)===1/0||isNaN(m._length))u[h]=[];else{m._input_range=m.range.slice(),m.range[0]=p[h].lo/w.dataScale[h],m.range[1]=p[h].hi/w.dataScale[h],m._m=1/(w.dataScale[h]*p[h].pixelsPerDataUnit),m.range[0]===m.range[1]&&(m.range[0]-=1,m.range[1]+=1);var v=m.tickmode;if(m.tickmode==="auto"){m.tickmode="linear";var _=m.nticks||b.constrain(m._length/40,4,9);c.autoTicks(m,Math.abs(m.range[1]-m.range[0])/_)}for(var S=c.calcTicks(m,{msUTC:!0}),A=0;A/g," "));u[h]=S,m.tickmode=v}}for(y.ticks=u,h=0;h<3;++h)for(O[h]=.5*(w.glplot.bounds[0][h]+w.glplot.bounds[1][h]),A=0;A<2;++A)y.bounds[A][h]=w.glplot.bounds[A][h];w.contourLevels=function(x){for(var R=new Array(3),M=0;M<3;++M){for(var T=x[M],E=new Array(T.length),C=0;CX.deltaY?1.1:.9090909090909091,W=z.glplot.getAspectratio();z.glplot.setAspectratio({x:te*W.x,y:te*W.y,z:te*W.z})}U(z)}},!!p&&{passive:!1}),z.glplot.canvas.addEventListener("mousemove",function(){if(z.fullSceneLayout.dragmode!==!1&&z.camera.mouseListener.buttons!==0){var X=j();z.graphDiv.emit("plotly_relayouting",X)}}),z.staticMode||z.glplot.canvas.addEventListener("webglcontextlost",function(X){$&&$.emit&&$.emit("plotly_webglcontextlost",{event:X,layer:z.id})},!1)),z.glplot.oncontextloss=function(){z.recoverContext()},z.glplot.onrender=function(){z.render()},!0},L.render=function(){var z,$=this,Q=$.graphDiv,j=$.svgContainer,U=$.container.getBoundingClientRect();Q._fullLayout._calcInverseTransform(Q);var X=Q._fullLayout._invScaleX,te=Q._fullLayout._invScaleY,W=U.width*X,K=U.height*te;j.setAttributeNS(null,"viewBox","0 0 "+W+" "+K),j.setAttributeNS(null,"width",W),j.setAttributeNS(null,"height",K),M($),$.glplot.axes.update($.axesOptions);for(var oe=Object.keys($.traces),q=null,Y=$.glplot.selection,ee=0;ee")):z.type==="isosurface"||z.type==="volume"?(de.valueLabel=m.hoverLabelText($._mockAxis,$._mockAxis.d2l(Y.traceCoordinate[3]),z.valuehoverformat),Se.push("value: "+de.valueLabel),Y.textLabel&&Se.push(Y.textLabel),se=Se.join("
    ")):se=Y.textLabel;var Te={x:Y.traceCoordinate[0],y:Y.traceCoordinate[1],z:Y.traceCoordinate[2],data:ae._input,fullData:ae,curveNumber:ae.index,pointNumber:ce};v.appendArrayPointValue(Te,ae,ce),z._module.eventData&&(Te=ae._module.eventData(Te,Y,ae,{},ce));var Pe={points:[Te]};if($.fullSceneLayout.hovermode){var Ie=[];v.loneHover({trace:ae,x:(.5+.5*he[0]/he[3])*W,y:(.5-.5*he[1]/he[3])*K,xLabel:de.xLabel,yLabel:de.yLabel,zLabel:de.zLabel,text:se,name:q.name,color:v.castHoverOption(ae,ce,"bgcolor")||q.color,borderColor:v.castHoverOption(ae,ce,"bordercolor"),fontFamily:v.castHoverOption(ae,ce,"font.family"),fontSize:v.castHoverOption(ae,ce,"font.size"),fontColor:v.castHoverOption(ae,ce,"font.color"),nameLength:v.castHoverOption(ae,ce,"namelength"),textAlign:v.castHoverOption(ae,ce,"align"),hovertemplate:u.castOption(ae,ce,"hovertemplate"),hovertemplateLabels:u.extendFlat({},Te,de),eventData:[Te]},{container:j,gd:Q,inOut_bbox:Ie}),Te.bbox=Ie[0]}Y.distance<5&&(Y.buttons||E)?Q.emit("plotly_click",Pe):Q.emit("plotly_hover",Pe),this.oldEventData=Pe}else v.loneUnhover(j),this.oldEventData&&Q.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;$.drawAnnotations($)},L.recoverContext=function(){var z=this;z.glplot.dispose();var $=function(){z.glplot.gl.isContextLost()?requestAnimationFrame($):z.initializeGLPlot()?z.plot.apply(z,z.plotArgs):u.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame($)};var k=["xaxis","yaxis","zaxis"];function I(z,$,Q){for(var j=z.fullSceneLayout,U=0;U<3;U++){var X=k[U],te=X.charAt(0),W=j[X],K=$[te],oe=$[te+"calendar"],q=$["_"+te+"length"];if(u.isArrayOrTypedArray(K))for(var Y,ee=0;ee<(q||K.length);ee++)if(u.isArrayOrTypedArray(K[ee]))for(var me=0;meae[1][te])ae[0][te]=-1,ae[1][te]=1;else{var He=ae[1][te]-ae[0][te];ae[0][te]-=He/32,ae[1][te]+=He/32}if(ve=[ae[0][te],ae[1][te]],ve=T(ve,K),ae[0][te]=ve[0],ae[1][te]=ve[1],K.isReversed()){var Ve=ae[0][te];ae[0][te]=ae[1][te],ae[1][te]=Ve}}else ve=K.range,ae[0][te]=K.r2l(ve[0]),ae[1][te]=K.r2l(ve[1]);ae[0][te]===ae[1][te]&&(ae[0][te]-=1,ae[1][te]+=1),ce[te]=ae[1][te]-ae[0][te],K.range=[ae[0][te],ae[1][te]],K.limitRange(),j.glplot.setBounds(te,{min:K.range[0]*me[te],max:K.range[1]*me[te]})}var $e=q.aspectmode;if($e==="cube")se=[1,1,1];else if($e==="manual"){var Oe=q.aspectratio;se=[Oe.x,Oe.y,Oe.z]}else{if($e!=="auto"&&$e!=="data")throw new Error("scene.js aspectRatio was not one of the enumerated types");var ke=[1,1,1];for(te=0;te<3;++te){var Le=de[oe=(K=q[k[te]]).type];ke[te]=Math.pow(Le.acc,1/Le.count)/me[te]}se=$e==="data"||Math.max.apply(null,ke)/Math.min.apply(null,ke)<=4?ke:[1,1,1]}q.aspectratio.x=Y.aspectratio.x=se[0],q.aspectratio.y=Y.aspectratio.y=se[1],q.aspectratio.z=Y.aspectratio.z=se[2],j.glplot.setAspectratio(q.aspectratio),j.viewInitial.aspectratio||(j.viewInitial.aspectratio={x:q.aspectratio.x,y:q.aspectratio.y,z:q.aspectratio.z}),j.viewInitial.aspectmode||(j.viewInitial.aspectmode=q.aspectmode);var We=q.domain||null,Ue=$._size||null;if(We&&Ue){var Ze=j.container.style;Ze.position="absolute",Ze.left=Ue.l+We.x[0]*Ue.w+"px",Ze.top=Ue.t+(1-We.y[1])*Ue.h+"px",Ze.width=Ue.w*(We.x[1]-We.x[0])+"px",Ze.height=Ue.h*(We.y[1]-We.y[0])+"px"}j.glplot.redraw()}},L.destroy=function(){var z=this;z.glplot&&(z.camera.mouseListener.enabled=!1,z.container.removeEventListener("wheel",z.camera.wheelListener),z.camera=null,z.glplot.dispose(),z.container.parentNode.removeChild(z.container),z.glplot=null)},L.getCamera=function(){var z,$=this;return $.camera.view.recalcMatrix($.camera.view.lastT()),{up:{x:(z=$.camera).up[0],y:z.up[1],z:z.up[2]},center:{x:z.center[0],y:z.center[1],z:z.center[2]},eye:{x:z.eye[0],y:z.eye[1],z:z.eye[2]},projection:{type:z._ortho===!0?"orthographic":"perspective"}}},L.setViewport=function(z){var $,Q=this,j=z.camera;Q.camera.lookAt.apply(this,[[($=j).eye.x,$.eye.y,$.eye.z],[$.center.x,$.center.y,$.center.z],[$.up.x,$.up.y,$.up.z]]),Q.glplot.setAspectratio(z.aspectratio),j.projection.type==="orthographic"!==Q.camera._ortho&&(Q.glplot.redraw(),Q.glplot.clearRGBA(),Q.glplot.dispose(),Q.initializeGLPlot())},L.isCameraChanged=function(z){var $=this.getCamera(),Q=u.nestedProperty(z,this.id+".camera").get();function j(W,K,oe,q){var Y=["up","center","eye"],ee=["x","y","z"];return K[Y[oe]]&&W[Y[oe]][ee[q]]===K[Y[oe]][ee[q]]}var U=!1;if(Q===void 0)U=!0;else{for(var X=0;X<3;X++)for(var te=0;te<3;te++)if(!j($,Q,X,te)){U=!0;break}(!Q.projection||$.projection&&$.projection.type!==Q.projection.type)&&(U=!0)}return U},L.isAspectChanged=function(z){var $=this.glplot.getAspectratio(),Q=u.nestedProperty(z,this.id+".aspectratio").get();return Q===void 0||Q.x!==$.x||Q.y!==$.y||Q.z!==$.z},L.saveLayout=function(z){var $,Q,j,U,X,te,W=this,K=W.fullLayout,oe=W.isCameraChanged(z),q=W.isAspectChanged(z),Y=oe||q;if(Y){var ee={};oe&&($=W.getCamera(),j=(Q=u.nestedProperty(z,W.id+".camera")).get(),ee[W.id+".camera"]=j),q&&(U=W.glplot.getAspectratio(),te=(X=u.nestedProperty(z,W.id+".aspectratio")).get(),ee[W.id+".aspectratio"]=te),a.call("_storeDirectGUIEdit",z,K._preGUI,ee),oe&&(Q.set($),u.nestedProperty(K,W.id+".camera").set($)),q&&(X.set(U),u.nestedProperty(K,W.id+".aspectratio").set(U),W.glplot.redraw())}return Y},L.updateFx=function(z,$){var Q=this,j=Q.camera;if(j)if(z==="orbit")j.mode="orbit",j.keyBindingMode="rotate";else if(z==="turntable"){j.up=[0,0,1],j.mode="turntable",j.keyBindingMode="rotate";var U=Q.graphDiv,X=U._fullLayout,te=Q.fullSceneLayout.camera,W=te.up.x,K=te.up.y,oe=te.up.z;if(oe/Math.sqrt(W*W+K*K+oe*oe)<.999){var q=Q.id+".camera.up",Y={x:0,y:0,z:1},ee={};ee[q]=Y;var me=U.layout;a.call("_storeDirectGUIEdit",me,X._preGUI,ee),te.up=Y,u.nestedProperty(me,q).set(Y)}}else j.keyBindingMode=z;Q.fullSceneLayout.hovermode=$},L.toImage=function(z){var $=this;z||(z="png"),$.staticMode&&$.container.appendChild(c),$.glplot.redraw();var Q=$.glplot.gl,j=Q.drawingBufferWidth,U=Q.drawingBufferHeight;Q.bindFramebuffer(Q.FRAMEBUFFER,null);var X=new Uint8Array(j*U*4);Q.readPixels(0,0,j,U,Q.RGBA,Q.UNSIGNED_BYTE,X),function(q,Y,ee){for(var me=0,he=ee-1;me0)for(var ce=255/ae,de=0;de<3;++de)q[se+de]=Math.min(ce*q[se+de],255)}}(X,j,U);var te=document.createElement("canvas");te.width=j,te.height=U;var W,K=te.getContext("2d",{willReadFrequently:!0}),oe=K.createImageData(j,U);switch(oe.data.set(X),K.putImageData(oe,0,0),z){case"jpeg":W=te.toDataURL("image/jpeg");break;case"webp":W=te.toDataURL("image/webp");break;default:W=te.toDataURL("image/png")}return $.staticMode&&$.container.removeChild(c),W},L.setConvert=function(){for(var z=0;z<3;z++){var $=this.fullSceneLayout[k[z]];m.setConvert($,this.fullLayout),$.setScale=u.noop}},L.make4thDimension=function(){var z=this,$=z.graphDiv._fullLayout;z._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},m.setConvert(z._mockAxis,$)},d.exports=C},52094:function(d){d.exports=function(l,n,c,b){b=b||l.length;for(var i=new Array(b),O=0;OOpenStreetMap
    contributors',O=['© Carto',i].join(" "),w=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),y={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:i,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:O,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:O,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},p=c(y);d.exports={requiredVersion:b,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:y,styleValuesNonMapbox:p,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+b+"."].join(` +`+q.year}return Q(te,X,K,oe)};var U=3*u;l.incrementMonth=function(X,te,W){W=T(W)&&W;var K=y(X,u);if(X=Math.round(X-K),W)try{var oe=Math.round(X/u)+_,q=S.getComponentMethod("calendars","getCal")(W),Y=q.fromJD(oe);return te%12?q.add(Y,te,"m"):q.add(Y,te/12,"y"),(Y.toJD()-_)*u+K}catch{w.error("invalid ms "+X+" in calendar "+W)}var ee=new Date(X+U);return ee.setUTCMonth(ee.getUTCMonth()+te)+K-U},l.findExactDates=function(X,te){for(var W,K,oe=0,q=0,Y=0,ee=0,me=T(te)&&S.getComponentMethod("calendars","getCal")(te),he=0;he0&&k[I+1][0]<0)return I;return null}switch(A=C==="RUS"||C==="FJI"?function(k){var I;if(D(k)===null)I=k;else for(I=new Array(k.length),M=0;MI?z[$++]=[k[M][0]+360,k[M][1]]:M===I?(z[$++]=k[M],z[$++]=[k[M][0],-90]):z[$++]=k[M];var Q=h.tester(z);Q.pts.pop(),L.push(Q)}:function(k){L.push(h.tester(k))},T.type){case"MultiPolygon":for(x=0;xW&&(W=q,U=oe)}else U=X;return O.default(U).geometry.coordinates}(Q),z.fIn=k,z.fOut=Q,T.push(Q)}else p.log(["Location",z.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete M[I]}switch(x.type){case"FeatureCollection":var L=x.features;for(R=0;R100?(clearInterval(I),D("Unexpected error while fetching from "+C)):void k++},50)})}for(var T=0;T0&&(O.push(w),w=[])}return w.length>0&&O.push(w),O},l.makeLine=function(b){return b.length===1?{type:"LineString",coordinates:b[0]}:{type:"MultiLineString",coordinates:b}},l.makePolygon=function(b){if(b.length===1)return{type:"Polygon",coordinates:b};for(var i=new Array(b.length),O=0;O1||L<0||L>1?null:{x:p+A*L,y:a+M*L}}function y(p,a,u,h,m){var v=h*p+m*a;if(v<0)return h*h+m*m;if(v>u){var _=h-p,S=m-a;return _*_+S*S}var A=h*a-m*p;return A*A/u}l.segmentsIntersect=w,l.segmentDistance=function(p,a,u,h,m,v,_,S){if(w(p,a,u,h,m,v,_,S))return 0;var A=u-p,x=h-a,R=_-m,M=S-v,T=A*A+x*x,E=R*R+M*M,C=Math.min(y(A,x,T,m-p,v-a),y(A,x,T,_-p,S-a),y(R,M,E,p-m,a-v),y(R,M,E,u-m,h-v));return Math.sqrt(C)},l.getTextLocation=function(p,a,u,h){if(p===b&&h===i||(c={},b=p,i=h),c[u])return c[u];var m=p.getPointAtLength(O(u-h/2,a)),v=p.getPointAtLength(O(u+h/2,a)),_=Math.atan((v.y-m.y)/(v.x-m.x)),S=p.getPointAtLength(O(u,a)),A={x:(4*S.x+m.x+v.x)/6,y:(4*S.y+m.y+v.y)/6,theta:_};return c[u]=A,A},l.clearLocationCache=function(){b=null},l.getVisibleSegment=function(p,a,u){var h,m,v=a.left,_=a.right,S=a.top,A=a.bottom,x=0,R=p.getTotalLength(),M=R;function T(C){var L=p.getPointAtLength(C);C===0?h=L:C===R&&(m=L);var D=L.x_?L.x-_:0,k=L.yA?L.y-A:0;return Math.sqrt(D*D+k*k)}for(var E=T(x);E;){if((x+=E+u)>M)return;E=T(x)}for(E=T(M);E;){if(x>(M-=E+u))return;E=T(M)}return{min:x,max:M,len:M-x,total:R,isClosed:x===0&&M===R&&Math.abs(h.x-m.x)<.1&&Math.abs(h.y-m.y)<.1}},l.findPointOnPath=function(p,a,u,h){for(var m,v,_,S=(h=h||{}).pathLength||p.getTotalLength(),A=h.tolerance||.001,x=h.iterationLimit||30,R=p.getPointAtLength(0)[u]>p.getPointAtLength(S)[u]?-1:1,M=0,T=0,E=S;M0?E=m:T=m,M++}return v}},33040:function(d,l,n){var c=n(38248),b=n(49760),i=n(72160),O=n(8932),w=n(22548).defaultLine,y=n(38116).isArrayOrTypedArray,p=i(w);function a(m,v){var _=m;return _[3]*=v,_}function u(m){if(c(m))return p;var v=i(m);return v.length?v:p}function h(m){return c(m)?m:1}d.exports={formatColor:function(m,v,_){var S=m.color;S&&S._inputArray&&(S=S._inputArray);var A,x,R,M,T,E=y(S),C=y(v),L=O.extractOpts(m),D=[];if(A=L.colorscale!==void 0?O.makeColorScaleFuncFromTrace(m):u,x=E?function(I,z){return I[z]===void 0?p:i(A(I[z]))}:u,R=C?function(I,z){return I[z]===void 0?1:h(I[z])}:h,E||C)for(var k=0;k<_;k++)M=x(S,k),T=R(v,k),D[k]=a(M,T);else D=a(i(S),v);return D},parseColorScale:function(m){var v=O.extractOpts(m),_=v.colorscale;return v.reversescale&&(_=O.flipScale(v.colorscale)),_.map(function(S){var A=S[0],x=b(S[1]).toRgb();return{index:A,rgb:[x.r,x.g,x.b,x.a]}})}}},71688:function(d,l,n){var c=n(35536);function b(i){return[i]}d.exports={keyFun:function(i){return i.key},repeat:b,descend:c,wrap:b,unwrap:function(i){return i[0]}}},35536:function(d){d.exports=function(l){return l}},1396:function(d){d.exports=function(l,n){if(!n)return l;var c=1/Math.abs(n),b=c>1?(c*l+c*n)/c:l+n,i=String(b).length;if(i>16){var O=String(n).length;if(i>=String(l).length+O){var w=parseFloat(b).toPrecision(12);w.indexOf("e+")===-1&&(b=+w)}}return b}},3400:function(d,l,n){var c=n(33428),b=n(94336).E9,i=n(57624).E9,O=n(38248),w=n(39032),y=w.FP_SAFE,p=-y,a=w.BADNUM,u=d.exports={};u.adjustFormat=function(ce){return!ce||/^\d[.]\df/.test(ce)||/[.]\d%/.test(ce)?ce:ce==="0.f"?"~f":/^\d%/.test(ce)?"~%":/^\ds/.test(ce)?"~s":!/^[~,.0$]/.test(ce)&&/[&fps]/.test(ce)?"~"+ce:ce};var h={};u.warnBadFormat=function(ce){var de=String(ce);h[de]||(h[de]=1,u.warn('encountered bad format: "'+de+'"'))},u.noFormat=function(ce){return String(ce)},u.numberFormat=function(ce){var de;try{de=i(u.adjustFormat(ce))}catch{return u.warnBadFormat(ce),u.noFormat}return de},u.nestedProperty=n(22296),u.keyedContainer=n(37804),u.relativeAttr=n(23193),u.isPlainObject=n(63620),u.toLogRange=n(36896),u.relinkPrivateKeys=n(51528);var m=n(38116);u.isArrayBuffer=m.isArrayBuffer,u.isTypedArray=m.isTypedArray,u.isArrayOrTypedArray=m.isArrayOrTypedArray,u.isArray1D=m.isArray1D,u.ensureArray=m.ensureArray,u.concat=m.concat,u.maxRowLength=m.maxRowLength,u.minRowLength=m.minRowLength;var v=n(20435);u.mod=v.mod,u.modHalf=v.modHalf;var _=n(63064);u.valObjectMeta=_.valObjectMeta,u.coerce=_.coerce,u.coerce2=_.coerce2,u.coerceFont=_.coerceFont,u.coercePattern=_.coercePattern,u.coerceHoverinfo=_.coerceHoverinfo,u.coerceSelectionMarkerOpacity=_.coerceSelectionMarkerOpacity,u.validate=_.validate;var S=n(67555);u.dateTime2ms=S.dateTime2ms,u.isDateTime=S.isDateTime,u.ms2DateTime=S.ms2DateTime,u.ms2DateTimeLocal=S.ms2DateTimeLocal,u.cleanDate=S.cleanDate,u.isJSDate=S.isJSDate,u.formatDate=S.formatDate,u.incrementMonth=S.incrementMonth,u.dateTick0=S.dateTick0,u.dfltRange=S.dfltRange,u.findExactDates=S.findExactDates,u.MIN_MS=S.MIN_MS,u.MAX_MS=S.MAX_MS;var A=n(14952);u.findBin=A.findBin,u.sorterAsc=A.sorterAsc,u.sorterDes=A.sorterDes,u.distinctVals=A.distinctVals,u.roundUp=A.roundUp,u.sort=A.sort,u.findIndexOfMin=A.findIndexOfMin,u.sortObjectKeys=n(95376);var x=n(63084);u.aggNums=x.aggNums,u.len=x.len,u.mean=x.mean,u.median=x.median,u.midRange=x.midRange,u.variance=x.variance,u.stdev=x.stdev,u.interp=x.interp;var R=n(52248);u.init2dArray=R.init2dArray,u.transposeRagged=R.transposeRagged,u.dot=R.dot,u.translationMatrix=R.translationMatrix,u.rotationMatrix=R.rotationMatrix,u.rotationXYMatrix=R.rotationXYMatrix,u.apply3DTransform=R.apply3DTransform,u.apply2DTransform=R.apply2DTransform,u.apply2DTransform2=R.apply2DTransform2,u.convertCssMatrix=R.convertCssMatrix,u.inverseTransformMatrix=R.inverseTransformMatrix;var M=n(11864);u.deg2rad=M.deg2rad,u.rad2deg=M.rad2deg,u.angleDelta=M.angleDelta,u.angleDist=M.angleDist,u.isFullCircle=M.isFullCircle,u.isAngleInsideSector=M.isAngleInsideSector,u.isPtInsideSector=M.isPtInsideSector,u.pathArc=M.pathArc,u.pathSector=M.pathSector,u.pathAnnulus=M.pathAnnulus;var T=n(98308);u.isLeftAnchor=T.isLeftAnchor,u.isCenterAnchor=T.isCenterAnchor,u.isRightAnchor=T.isRightAnchor,u.isTopAnchor=T.isTopAnchor,u.isMiddleAnchor=T.isMiddleAnchor,u.isBottomAnchor=T.isBottomAnchor;var E=n(92348);u.segmentsIntersect=E.segmentsIntersect,u.segmentDistance=E.segmentDistance,u.getTextLocation=E.getTextLocation,u.clearLocationCache=E.clearLocationCache,u.getVisibleSegment=E.getVisibleSegment,u.findPointOnPath=E.findPointOnPath;var C=n(92880);u.extendFlat=C.extendFlat,u.extendDeep=C.extendDeep,u.extendDeepAll=C.extendDeepAll,u.extendDeepNoArrays=C.extendDeepNoArrays;var L=n(24248);u.log=L.log,u.warn=L.warn,u.error=L.error;var D=n(53756);u.counterRegex=D.counter;var k=n(91200);u.throttle=k.throttle,u.throttleDone=k.done,u.clearThrottle=k.clear;var I=n(52200);function z(ce){var de={};for(var ve in ce)for(var ye=ce[ve],_e=0;_ey||ce=de)&&O(ce)&&ce>=0&&ce%1==0},u.noop=n(16628),u.identity=n(35536),u.repeat=function(ce,de){for(var ve=new Array(de),ye=0;yeve?Math.max(ve,Math.min(de,ce)):Math.max(de,Math.min(ve,ce))},u.bBoxIntersect=function(ce,de,ve){return ve=ve||0,ce.left<=de.right+ve&&de.left<=ce.right+ve&&ce.top<=de.bottom+ve&&de.top<=ce.bottom+ve},u.simpleMap=function(ce,de,ve,ye,_e){for(var Se=ce.length,Te=new Array(Se),Pe=0;Pe=Math.pow(2,ve)?_e>10?(u.warn("randstr failed uniqueness"),Ie):ce(de,ve,ye,(_e||0)+1):Ie},u.OptionControl=function(ce,de){ce||(ce={}),de||(de="opt");var ve={optionList:[],_newoption:function(ye){ye[de]=ce,ve[ye.name]=ye,ve.optionList.push(ye)}};return ve["_"+de]=ce,ve},u.smooth=function(ce,de){if((de=Math.round(de)||0)<2)return ce;var ve,ye,_e,Se,Te=ce.length,Pe=2*Te,Ie=2*de-1,ze=new Array(Ie),De=new Array(Te);for(ve=0;ve=Pe&&(_e-=Pe*Math.floor(_e/Pe)),_e<0?_e=-1-_e:_e>=Te&&(_e=Pe-1-_e),Se+=ce[_e]*ze[ye];De[ve]=Se}return De},u.syncOrAsync=function(ce,de,ve){var ye;function _e(){return u.syncOrAsync(ce,de,ve)}for(;ce.length;)if((ye=(0,ce.splice(0,1)[0])(de))&&ye.then)return ye.then(_e);return ve&&ve(de)},u.stripTrailingSlash=function(ce){return ce.substr(-1)==="/"?ce.substr(0,ce.length-1):ce},u.noneOrAll=function(ce,de,ve){if(ce){var ye,_e=!1,Se=!0;for(ye=0;ye0?_e:0})},u.fillArray=function(ce,de,ve,ye){if(ye=ye||u.identity,u.isArrayOrTypedArray(ce))for(var _e=0;_e1?_e+Te[1]:"";if(Se&&(Te.length>1||Pe.length>4||ve))for(;ye.test(Pe);)Pe=Pe.replace(ye,"$1"+Se+"$2");return Pe+Ie},u.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;u.templateString=function(ce,de){var ve={};return ce.replace(u.TEMPLATE_STRING_REGEX,function(ye,_e){var Se;return W.test(_e)?Se=de[_e]:(ve[_e]=ve[_e]||u.nestedProperty(de,_e).get,Se=ve[_e]()),u.isValidTextValue(Se)?Se:""})};var K={max:10,count:0,name:"hovertemplate"};u.hovertemplateString=function(){return me.apply(K,arguments)};var oe={max:10,count:0,name:"texttemplate"};u.texttemplateString=function(){return me.apply(oe,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,Y={max:10,count:0,name:"texttemplate",parseMultDiv:!0};u.texttemplateStringForShapes=function(){return me.apply(Y,arguments)};var ee=/^[:|\|]/;function me(ce,de,ve){var ye=this,_e=arguments;de||(de={});var Se={};return ce.replace(u.TEMPLATE_STRING_REGEX,function(Te,Pe,Ie){var ze=Pe==="_xother"||Pe==="_yother",De=Pe==="_xother_"||Pe==="_yother_",He=Pe==="xother_"||Pe==="yother_",Ve=Pe==="xother"||Pe==="yother"||ze||He||De,$e=Pe;(ze||De)&&($e=$e.substring(1)),(He||De)&&($e=$e.substring(0,$e.length-1));var Oe,ke,Le,We=null,Ue=null;if(ye.parseMultDiv){var Ze=function(Ne){var je=Ne.match(q);return je?{key:je[1],op:je[2],number:Number(je[3])}:{key:Ne,op:null,number:null}}($e);$e=Ze.key,We=Ze.op,Ue=Ze.number}if(Ve){if((Oe=de[$e])===void 0)return""}else for(Le=3;Le<_e.length;Le++)if(ke=_e[Le]){if(ke.hasOwnProperty($e)){Oe=ke[$e];break}if(W.test($e)||(Oe=u.nestedProperty(ke,$e).get(),(Oe=Se[$e]||u.nestedProperty(ke,$e).get())&&(Se[$e]=Oe)),Oe!==void 0)break}if(Oe!==void 0&&(We==="*"&&(Oe*=Ue),We==="/"&&(Oe/=Ue)),Oe===void 0&&ye)return ye.count=48&&Te<=57,ze=Pe>=48&&Pe<=57;if(Ie&&(ye=10*ye+Te-48),ze&&(_e=10*_e+Pe-48),!Ie||!ze){if(ye!==_e)return ye-_e;if(Te!==Pe)return Te-Pe}}return _e-ye};var he=2e9;u.seedPseudoRandom=function(){he=2e9},u.pseudoRandom=function(){var ce=he;return he=(69069*he+1)%4294967296,Math.abs(he-ce)<429496729?u.pseudoRandom():he/4294967296},u.fillText=function(ce,de,ve){var ye=Array.isArray(ve)?function(Te){ve.push(Te)}:function(Te){ve.text=Te},_e=u.extractOption(ce,de,"htx","hovertext");if(u.isValidTextValue(_e))return ye(_e);var Se=u.extractOption(ce,de,"tx","text");return u.isValidTextValue(Se)?ye(Se):void 0},u.isValidTextValue=function(ce){return ce||ce===0},u.formatPercent=function(ce,de){de=de||0;for(var ve=(Math.round(100*ce*Math.pow(10,de))*Math.pow(.1,de)).toFixed(de)+"%",ye=0;ye1&&(ze=1):ze=0,u.strTranslate(_e-ze*(ve+Te),Se-ze*(ye+Pe))+u.strScale(ze)+(Ie?"rotate("+Ie+(de?"":" "+ve+" "+ye)+")":"")},u.setTransormAndDisplay=function(ce,de){ce.attr("transform",u.getTextTransform(de)),ce.style("display",de.scale?null:"none")},u.ensureUniformFontSize=function(ce,de){var ve=u.extendFlat({},de);return ve.size=Math.max(de.size,ce._fullLayout.uniformtext.minsize||0),ve},u.join2=function(ce,de,ve){var ye=ce.length;return ye>1?ce.slice(0,-1).join(de)+ve+ce[ye-1]:ce.join(de)},u.bigFont=function(ce){return Math.round(1.2*ce)};var se=u.getFirefoxVersion(),ae=se!==null&&se<86;u.getPositionFromD3Event=function(){return ae?[c.event.layerX,c.event.layerY]:[c.event.offsetX,c.event.offsetY]}},63620:function(d){d.exports=function(l){return window&&window.process&&window.process.versions?Object.prototype.toString.call(l)==="[object Object]":Object.prototype.toString.call(l)==="[object Object]"&&Object.getPrototypeOf(l).hasOwnProperty("hasOwnProperty")}},37804:function(d,l,n){var c=n(22296),b=/^\w*$/;d.exports=function(i,O,w,y){var p,a,u;w=w||"name",y=y||"value";var h={};O&&O.length?(u=c(i,O),a=u.get()):a=i,O=O||"";var m={};if(a)for(p=0;p2)return h[A]=2|h[A],_.set(S,null);if(v){for(p=A;p1){var w=["LOG:"];for(O=0;O1){var y=[];for(O=0;O"),"long")}},i.warn=function(){var O;if(c.logging>0){var w=["WARN:"];for(O=0;O0){var y=[];for(O=0;O"),"stick")}},i.error=function(){var O;if(c.logging>0){var w=["ERROR:"];for(O=0;O0){var y=[];for(O=0;O"),"stick")}}},30988:function(d,l,n){var c=n(33428);d.exports=function(b,i,O){var w=b.selectAll("g."+O.replace(/\s/g,".")).data(i,function(p){return p[0].trace.uid});w.exit().remove(),w.enter().append("g").attr("class",O),w.order();var y=b.classed("rangeplot")?"nodeRangePlot3":"node3";return w.each(function(p){p[0][y]=c.select(this)}),w}},52248:function(d,l,n){var c=n(36524);l.init2dArray=function(b,i){for(var O=new Array(b),w=0;wn/2?l-Math.round(l/n)*n:l}}},22296:function(d,l,n){var c=n(38248),b=n(38116).isArrayOrTypedArray;function i(h,m){return function(){var v,_,S,A,x,R=h;for(A=0;A/g),_=0;_a||M===b||Mh||x&&m(A))}:function(A,x){var R=A[0],M=A[1];if(R===b||Ra||M===b||Mh)return!1;var T,E,C,L,D,k=y.length,I=y[0][0],z=y[0][1],$=0;for(T=1;TMath.max(E,I)||M>Math.max(C,z)))if(M_||Math.abs(c(u,A))>p)return!0;return!1},i.filter=function(O,w){var y=[O[0]],p=0,a=0;function u(h){O.push(h);var m=y.length,v=p;y.splice(a+1);for(var _=v+1;_1&&u(O.pop()),{addPt:u,raw:O,filtered:y}}},5048:function(d,l,n){var c=n(16576),b=n(28624);d.exports=function(i,O,w){var y=i._fullLayout,p=!0;return y._glcanvas.each(function(a){if(a.regl)a.regl.preloadCachedCode(w);else if(!a.pick||y._has("parcoords")){try{a.regl=b({canvas:this,attributes:{antialias:!a.pick,preserveDrawingBuffer:!0},pixelRatio:i._context.plotGlPixelRatio||n.g.devicePixelRatio,extensions:O||[],cachedCode:w||{}})}catch{p=!1}a.regl||(p=!1),p&&this.addEventListener("webglcontextlost",function(u){i&&i.emit&&i.emit("plotly_webglcontextlost",{event:u,layer:a.key})},!1)}}),p||c({container:y._glcontainer.node()}),p}},34296:function(d,l,n){var c=n(38248),b=n(25928);d.exports=function(i){var O;if(typeof(O=i&&i.hasOwnProperty("userAgent")?i.userAgent:function(){var m;return typeof navigator<"u"&&(m=navigator.userAgent),m&&m.headers&&typeof m.headers["user-agent"]=="string"&&(m=m.headers["user-agent"]),m}())!="string")return!0;var w=b({ua:{headers:{"user-agent":O}},tablet:!0,featureDetect:!1});if(!w){for(var y=O.split(" "),p=1;p-1;a--){var u=y[a];if(u.substr(0,8)==="Version/"){var h=u.substr(8).split(".")[0];if(c(h)&&(h=+h),h>=13)return!0}}}return w}},52416:function(d){d.exports=function(l,n){if(n instanceof RegExp){for(var c=n.toString(),b=0;bb.queueLength&&(O.undoQueue.queue.shift(),O.undoQueue.index--))},startSequence:function(O){O.undoQueue=O.undoQueue||{index:0,queue:[],sequence:!1},O.undoQueue.sequence=!0,O.undoQueue.beginSequence=!0},stopSequence:function(O){O.undoQueue=O.undoQueue||{index:0,queue:[],sequence:!1},O.undoQueue.sequence=!1,O.undoQueue.beginSequence=!1},undo:function(O){var w,y;if(!(O.undoQueue===void 0||isNaN(O.undoQueue.index)||O.undoQueue.index<=0)){for(O.undoQueue.index--,w=O.undoQueue.queue[O.undoQueue.index],O.undoQueue.inSequence=!0,y=0;y=O.undoQueue.queue.length)){for(w=O.undoQueue.queue[O.undoQueue.index],O.undoQueue.inSequence=!0,y=0;ym}function u(h,m){return h>=m}l.findBin=function(h,m,v){if(c(m.start))return v?Math.ceil((h-m.start)/m.size-w)-1:Math.floor((h-m.start)/m.size+w);var _,S,A=0,x=m.length,R=0,M=x>1?(m[x-1]-m[0])/(x-1):1;for(S=M>=0?v?y:p:v?u:a,h+=M*w*(v?-1:1)*(M>=0?1:-1);A90&&b.log("Long binary search..."),A-1},l.sorterAsc=function(h,m){return h-m},l.sorterDes=function(h,m){return m-h},l.distinctVals=function(h){var m,v=h.slice();for(v.sort(l.sorterAsc),m=v.length-1;m>-1&&v[m]===O;m--);for(var _,S=v[m]-v[0]||1,A=S/(m||1)/1e4,x=[],R=0;R<=m;R++){var M=v[R],T=M-_;_===void 0?(x.push(M),_=M):T>A&&(S=Math.min(S,T),x.push(M),_=M)}return{vals:x,minDiff:S}},l.roundUp=function(h,m,v){for(var _,S=0,A=m.length-1,x=0,R=v?0:1,M=v?1:0,T=v?Math.ceil:Math.floor;S0&&(_=1),v&&_)return h.sort(m)}return _?h:h.reverse()},l.findIndexOfMin=function(h,m){m=m||i;for(var v,_=1/0,S=0;Sw.length)&&(y=w.length),c(O)||(O=!1),b(w[0])){for(a=new Array(y),p=0;pi.length-1)return i[i.length-1];var w=O%1;return w*i[Math.ceil(O)]+(1-w)*i[Math.floor(O)]}},43080:function(d,l,n){var c=n(72160);d.exports=function(b){return b?c(b):[0,0,0,1]}},9188:function(d,l,n){var c=n(2264),b=n(43616),i=n(3400),O=null;d.exports=function(){if(O!==null)return O;O=!1;var w=i.isIE()||i.isSafari()||i.isIOS();if(window.navigator.userAgent&&!w){var y=Array.from(c.CSS_DECLARATIONS).reverse(),p=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof p=="function")O=y.some(function(h){return p.apply(null,h)});else{var a=b.tester.append("image").attr("style",c.STYLE),u=window.getComputedStyle(a.node()).imageRendering;O=y.some(function(h){var m=h[1];return u===m||u===m.toLowerCase()}),a.remove()}}return O}},72736:function(d,l,n){var c=n(33428),b=n(3400),i=b.strTranslate,O=n(9616),w=n(84284).LINE_SPACING,y=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;l.convertToTspans=function(X,te,W){var K=X.text(),oe=!X.attr("data-notex")&&te&&te._context.typesetMath&&typeof MathJax<"u"&&K.match(y),q=c.select(X.node().parentNode);if(!q.empty()){var Y=X.attr("class")?X.attr("class").split(" ")[0]:"text";return Y+="-math",q.selectAll("svg."+Y).remove(),q.selectAll("g."+Y+"-group").remove(),X.style("display",null).attr({"data-unformatted":K,"data-math":"N"}),oe?(te&&te._promises||[]).push(new Promise(function(me){X.style("display","none");var he=parseInt(X.node().style.fontSize,10),se={fontSize:he};(function(ae,ce,de){var ve,ye,_e,Se,Te=parseInt((MathJax.version||"").split(".")[0]);if(Te===2||Te===3){var Pe=function(){var ze="math-output-"+b.randstr({},64),De=(Se=c.select("body").append("div").attr({id:ze}).style({visibility:"hidden",position:"absolute","font-size":ce.fontSize+"px"}).text(ae.replace(p,"\\lt ").replace(a,"\\gt "))).node();return Te===2?MathJax.Hub.Typeset(De):MathJax.typeset([De])},Ie=function(){var ze=Se.select(Te===2?".MathJax_SVG":".MathJax"),De=!ze.empty()&&Se.select("svg").node();if(De){var He,Ve=De.getBoundingClientRect();He=Te===2?c.select("body").select("#MathJax_SVG_glyphs"):ze.select("defs"),de(ze,He,Ve)}else b.log("There was an error in the tex syntax.",ae),de();Se.remove()};Te===2?MathJax.Hub.Queue(function(){return ye=b.extendDeepAll({},MathJax.Hub.config),_e=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:u},displayAlign:"left"})},function(){if((ve=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},Pe,Ie,function(){if(ve!=="SVG")return MathJax.Hub.setRenderer(ve)},function(){return _e!==void 0&&(MathJax.Hub.processSectionDelay=_e),MathJax.Hub.Config(ye)}):Te===3&&(ye=b.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=u,(ve=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){Pe(),Ie(),ve!=="svg"&&(MathJax.config.startup.output=ve),MathJax.config=ye}))}else b.warn("No MathJax version:",MathJax.version)})(oe[2],se,function(ae,ce,de){q.selectAll("svg."+Y).remove(),q.selectAll("g."+Y+"-group").remove();var ve=ae&&ae.select("svg");if(!ve||!ve.node())return ee(),void me();var ye=q.append("g").classed(Y+"-group",!0).attr({"pointer-events":"none","data-unformatted":K,"data-math":"Y"});ye.node().appendChild(ve.node()),ce&&ce.node()&&ve.node().insertBefore(ce.node().cloneNode(!0),ve.node().firstChild);var _e=de.width,Se=de.height;ve.attr({class:Y,height:Se,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var Te=X.node().style.fill||"black",Pe=ve.select("g");Pe.attr({fill:Te,stroke:Te});var Ie=Pe.node().getBoundingClientRect(),ze=Ie.width,De=Ie.height;(ze>_e||De>Se)&&(ve.style("overflow","hidden"),ze=(Ie=ve.node().getBoundingClientRect()).width,De=Ie.height);var He=+X.attr("x"),Ve=+X.attr("y"),$e=-(he||X.node().getBoundingClientRect().height)/4;if(Y[0]==="y")ye.attr({transform:"rotate("+[-90,He,Ve]+")"+i(-ze/2,$e-De/2)});else if(Y[0]==="l")Ve=$e-De/2;else if(Y[0]==="a"&&Y.indexOf("atitle")!==0)He=0,Ve=$e;else{var Oe=X.attr("text-anchor");He-=ze*(Oe==="middle"?.5:Oe==="end"?1:0),Ve=Ve+$e-De/2}ve.attr({x:He,y:Ve}),W&&W.call(X,ye),me(ye)})})):ee(),X}function ee(){q.empty()||(Y=X.attr("class")+"-math",q.select("svg."+Y).remove()),X.text("").style("white-space","pre");var me=function(he,se){se=se.replace(A," ");var ae,ce=!1,de=[],ve=-1;function ye(){ve++;var Ue=document.createElementNS(O.svg,"tspan");c.select(Ue).attr({class:"line",dy:ve*w+"em"}),he.appendChild(Ue),ae=Ue;var Ze=de;if(de=[{node:Ue}],Ze.length>1)for(var Xe=1;Xe doesnt match end tag <"+Ue+">. Pretending it did match.",se),ae=de[de.length-1].node}else b.log("Ignoring unexpected end tag .",se)}M.test(se)?ye():(ae=he,de=[{node:he}]);for(var Pe=se.split(x),Ie=0;Ie|>|>)/g,u=[["$","$"],["\\(","\\)"]],h={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},m={sub:"0.3em",sup:"-0.6em"},v={sub:"-0.21em",sup:"0.42em"},_="​",S=["http:","https:","mailto:","",void 0,":"],A=l.NEWLINES=/(\r\n?|\n)/g,x=/(<[^<>]*>)/,R=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;l.BR_TAG_ALL=//gi;var T=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,E=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,C=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,L=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function D(X,te){if(!X)return null;var W=X.match(te),K=W&&(W[3]||W[4]);return K&&$(K)}var k=/(^|;)\s*color:/;l.plainText=function(X,te){for(var W=(te=te||{}).len!==void 0&&te.len!==-1?te.len:1/0,K=te.allowedTags!==void 0?te.allowedTags:["br"],oe=X.split(x),q=[],Y="",ee=0,me=0;me3?q.push(he.substr(0,de-3)+"..."):q.push(he.substr(0,de));break}Y=""}}return q.join("")};var I={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},z=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function $(X){return X.replace(z,function(te,W){return(W.charAt(0)==="#"?function(K){if(!(K>1114111)){var oe=String.fromCodePoint;if(oe)return oe(K);var q=String.fromCharCode;return K<=65535?q(K):q(55232+(K>>10),K%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):I[W])||te})}function Q(X){var te=encodeURI(decodeURI(X)),W=document.createElement("a"),K=document.createElement("a");W.href=X,K.href=te;var oe=W.protocol,q=K.protocol;return S.indexOf(oe)!==-1&&S.indexOf(q)!==-1?te:""}function j(X,te,W){var K,oe,q,Y=W.horizontalAlign,ee=W.verticalAlign||"top",me=X.node().getBoundingClientRect(),he=te.node().getBoundingClientRect();return oe=ee==="bottom"?function(){return me.bottom-K.height}:ee==="middle"?function(){return me.top+(me.height-K.height)/2}:function(){return me.top},q=Y==="right"?function(){return me.right-K.width}:Y==="center"?function(){return me.left+(me.width-K.width)/2}:function(){return me.left},function(){K=this.node().getBoundingClientRect();var se=q()-he.left,ae=oe()-he.top,ce=W.gd||{};if(W.gd){ce._fullLayout._calcInverseTransform(ce);var de=b.apply3DTransform(ce._fullLayout._invTransform)(se,ae);se=de[0],ae=de[1]}return this.style({top:ae+"px",left:se+"px","z-index":1e3}),this}}l.convertEntities=$,l.sanitizeHTML=function(X){X=X.replace(A," ");for(var te=document.createElement("p"),W=te,K=[],oe=X.split(x),q=0;qw.ts+i?a():w.timer=setTimeout(function(){a(),w.timer=null},i)},l.done=function(b){var i=n[b];return i&&i.timer?new Promise(function(O){var w=i.onDone;i.onDone=function(){w&&w(),O(),i.onDone=null}}):Promise.resolve()},l.clear=function(b){if(b)c(n[b]),delete n[b];else for(var i in n)l.clear(i)}},36896:function(d,l,n){var c=n(38248);d.exports=function(b,i){if(b>0)return Math.log(b)/Math.LN10;var O=Math.log(Math.min(i[0],i[1]))/Math.LN10;return c(O)||(O=Math.log(Math.max(i[0],i[1]))/Math.LN10-6),O}},59972:function(d,l,n){var c=d.exports={},b=n(79552).locationmodeToLayer,i=n(55712).NO;c.getTopojsonName=function(O){return[O.scope.replace(/ /g,"-"),"_",O.resolution.toString(),"m"].join("")},c.getTopojsonPath=function(O,w){return O+w+".json"},c.getTopojsonFeatures=function(O,w){var y=b[O.locationmode],p=w.objects[y];return i(w,p).features}},11680:function(d){d.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(d){d.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(d,l,n){var c=n(24040);d.exports=function(b){for(var i,O,w=c.layoutArrayContainers,y=c.layoutArrayRegexes,p=b.split("[")[0],a=0;a0&&O.log("Clearing previous rejected promises from queue."),E._promises=[]},l.cleanLayout=function(E){var C,L;E||(E={}),E.xaxis1&&(E.xaxis||(E.xaxis=E.xaxis1),delete E.xaxis1),E.yaxis1&&(E.yaxis||(E.yaxis=E.yaxis1),delete E.yaxis1),E.scene1&&(E.scene||(E.scene=E.scene1),delete E.scene1);var D=(w.subplotsRegistry.cartesian||{}).attrRegex,k=(w.subplotsRegistry.polar||{}).attrRegex,I=(w.subplotsRegistry.ternary||{}).attrRegex,z=(w.subplotsRegistry.gl3d||{}).attrRegex,$=Object.keys(E);for(C=0;C<$.length;C++){var Q=$[C];if(D&&D.test(Q)){var j=E[Q];j.anchor&&j.anchor!=="free"&&(j.anchor=a(j.anchor)),j.overlaying&&(j.overlaying=a(j.overlaying)),j.type||(j.isdate?j.type="date":j.islog?j.type="log":j.isdate===!1&&j.islog===!1&&(j.type="linear")),j.autorange!=="withzero"&&j.autorange!=="tozero"||(j.autorange=!0,j.rangemode="tozero"),j.insiderange&&delete j.range,delete j.islog,delete j.isdate,delete j.categories,x(j,"domain")&&delete j.domain,j.autotick!==void 0&&(j.tickmode===void 0&&(j.tickmode=j.autotick?"auto":"linear"),delete j.autotick),v(j)}else if(k&&k.test(Q))v(E[Q].radialaxis);else if(I&&I.test(Q)){var U=E[Q];v(U.aaxis),v(U.baxis),v(U.caxis)}else if(z&&z.test(Q)){var X=E[Q],te=X.cameraposition;if(Array.isArray(te)&&te[0].length===4){var W=te[0],K=te[1],oe=te[2],q=b([],W),Y=[];for(L=0;L<3;++L)Y[L]=K[L]+oe*q[2+4*L];X.camera={eye:{x:Y[0],y:Y[1],z:Y[2]},center:{x:K[0],y:K[1],z:K[2]},up:{x:0,y:0,z:1}},delete X.cameraposition}v(X.xaxis),v(X.yaxis),v(X.zaxis)}}var ee=Array.isArray(E.annotations)?E.annotations.length:0;for(C=0;C3?(de.x=1.02,de.xanchor="left"):de.x<-2&&(de.x=-.02,de.xanchor="right"),de.y>3?(de.y=1.02,de.yanchor="bottom"):de.y<-2&&(de.y=-.02,de.yanchor="top")),v(E),E.dragmode==="rotate"&&(E.dragmode="orbit"),p.clean(E),E.template&&E.template.layout&&l.cleanLayout(E.template.layout),E},l.cleanData=function(E){for(var C=0;C0)return E.substr(0,C)}l.hasParent=function(E,C){for(var L=M(C);L;){if(L in E)return!0;L=M(L)}return!1};var T=["x","y","z"];l.clearAxisTypes=function(E,C,L){for(var D=0;D1&&i.warn("Full array edits are incompatible with other edits",_);var E=h[""][""];if(p(E))u.set(null);else{if(!Array.isArray(E))return i.warn("Unrecognized full array edit value",_,E),!0;u.set(E)}return!R&&(S(M,T),A(a),!0)}var C,L,D,k,I,z,$,Q,j=Object.keys(h).map(Number).sort(O),U=u.get(),X=U||[],te=v(T,_).get(),W=[],K=-1,oe=X.length;for(C=0;CX.length-($?0:1))i.warn("index out of range",_,D);else if(z!==void 0)I.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",_,D),p(z)?W.push(D):$?(z==="add"&&(z={}),X.splice(D,0,z),te&&te.splice(D,0,{})):i.warn("Unrecognized full object edit value",_,D,z),K===-1&&(K=D);else for(L=0;L=0;C--)X.splice(W[C],1),te&&te.splice(W[C],1);if(X.length?U||u.set(X):u.set(null),R)return!1;if(S(M,T),x!==b){var q;if(K===-1)q=j;else{for(oe=Math.max(X.length,oe),q=[],C=0;C=K);C++)q.push(D);for(C=K;C=Ue.data.length||Ee<-Ue.data.length)throw new Error(Xe+" must be valid indices for gd.data.");if(Ze.indexOf(Ee,tt+1)>-1||Ee>=0&&Ze.indexOf(-Ue.data.length+Ee)>-1||Ee<0&&Ze.indexOf(Ue.data.length+Ee)>-1)throw new Error("each index in "+Xe+" must be unique.")}}function te(Ue,Ze,Xe){if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(Ze===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(Ze)||(Ze=[Ze]),X(Ue,Ze,"currentIndices"),Xe===void 0||Array.isArray(Xe)||(Xe=[Xe]),Xe!==void 0&&X(Ue,Xe,"newIndices"),Xe!==void 0&&Ze.length!==Xe.length)throw new Error("current and new indices must be of equal length.")}function W(Ue,Ze,Xe,tt,Ee){(function(wt,Dt,It,qt){var en=O.isPlainObject(qt);if(!Array.isArray(wt.data))throw new Error("gd.data must be an array");if(!O.isPlainObject(Dt))throw new Error("update must be a key:value object");if(It===void 0)throw new Error("indices must be an integer or array of integers");for(var Gt in X(wt,It,"indices"),Dt){if(!Array.isArray(Dt[Gt])||Dt[Gt].length!==It.length)throw new Error("attribute "+Gt+" must be an array of length equal to indices array length");if(en&&(!(Gt in qt)||!Array.isArray(qt[Gt])||qt[Gt].length!==Dt[Gt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(Ue,Ze,Xe,tt);for(var Ne=function(wt,Dt,It,qt){var en,Gt,Ct,_t,nn,gn=O.isPlainObject(qt),bn=[];for(var mn in Array.isArray(It)||(It=[It]),It=U(It,wt.data.length-1),Dt)for(var vt=0;vt-1&&Xe.indexOf("grouptitlefont")===-1?nt(Xe,Xe.replace("titlefont","title.font")):Xe.indexOf("titleposition")>-1?nt(Xe,Xe.replace("titleposition","title.position")):Xe.indexOf("titleside")>-1?nt(Xe,Xe.replace("titleside","title.side")):Xe.indexOf("titleoffset")>-1&&nt(Xe,Xe.replace("titleoffset","title.offset")):nt(Xe,Xe.replace("title","title.text"));function nt(ot,Ge){Ue[Ge]=Ue[ot],delete Ue[ot]}}function se(Ue,Ze,Xe){Ue=O.getGraphDiv(Ue),C.clearPromiseQueue(Ue);var tt={};if(typeof Ze=="string")tt[Ze]=Xe;else{if(!O.isPlainObject(Ze))return O.warn("Relayout fail.",Ze,Xe),Promise.reject();tt=O.extendFlat({},Ze)}Object.keys(tt).length&&(Ue.changed=!0);var Ee=_e(Ue,tt),Ne=Ee.flags;Ne.calc&&(Ue.calcdata=void 0);var je=[h.previousPromises];Ne.layoutReplot?je.push(L.layoutReplot):Object.keys(tt).length&&(ae(Ue,Ne,Ee)||h.supplyDefaults(Ue),Ne.legend&&je.push(L.doLegend),Ne.layoutstyle&&je.push(L.layoutStyles),Ne.axrange&&ce(je,Ee.rangesAltered),Ne.ticks&&je.push(L.doTicksRelayout),Ne.modebar&&je.push(L.doModeBar),Ne.camera&&je.push(L.doCamera),Ne.colorbars&&je.push(L.doColorBars),je.push(z)),je.push(h.rehover,h.redrag,h.reselect),p.add(Ue,se,[Ue,Ee.undoit],se,[Ue,Ee.redoit]);var nt=O.syncOrAsync(je,Ue);return nt&&nt.then||(nt=Promise.resolve(Ue)),nt.then(function(){return Ue.emit("plotly_relayout",Ee.eventData),Ue})}function ae(Ue,Ze,Xe){var tt,Ee,Ne=Ue._fullLayout;if(!Ze.axrange)return!1;for(var je in Ze)if(je!=="axrange"&&Ze[je])return!1;var nt=function(Dt,It){return O.coerce(tt,Ee,_,Dt,It)},ot={};for(var Ge in Xe.rangesAltered){var ht=m.id2name(Ge);if(tt=Ue.layout[ht],Ee=Ne[ht],v(tt,Ee,nt,ot),Ee._matchGroup){for(var pt in Ee._matchGroup)if(pt!==Ge){var wt=Ne[m.id2name(pt)];wt.autorange=Ee.autorange,wt.range=Ee.range.slice(),wt._input.range=Ee.range.slice()}}}return!0}function ce(Ue,Ze){var Xe=Ze?function(tt){var Ee=[];for(var Ne in Ze){var je=m.getFromId(tt,Ne);if(Ee.push(Ne),(je.ticklabelposition||"").indexOf("inside")!==-1&&je._anchorAxis&&Ee.push(je._anchorAxis._id),je._matchGroup)for(var nt in je._matchGroup)Ze[nt]||Ee.push(nt)}return m.draw(tt,Ee,{skipTitle:!0})}:function(tt){return m.draw(tt,"redraw")};Ue.push(M,L.doAutoRangeAndConstraints,Xe,L.drawData,L.finalDraw)}var de=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,ve=/^[xyz]axis[0-9]*\.autorange$/,ye=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function _e(Ue,Ze){var Xe,tt,Ee,Ne=Ue.layout,je=Ue._fullLayout,nt=je._guiEditing,ot=Y(je._preGUI,nt),Ge=Object.keys(Ze),ht=m.list(Ue),pt=O.extendDeepAll({},Ze),wt={};for(he(Ze),Ge=Object.keys(Ze),tt=0;tt0&&typeof vt.parts[lt]!="string";)lt--;var yt=vt.parts[lt],zt=vt.parts[lt-1]+"."+yt,Rt=vt.parts.slice(0,lt).join("."),it=w(Ue.layout,Rt).get(),at=w(je,Rt).get(),Lt=vt.get();if(bt!==void 0){Gt[mn]=bt,Ct[mn]=yt==="reverse"?bt:q(Lt);var xt=u.getLayoutValObject(je,vt.parts);if(xt&&xt.impliedEdits&&bt!==null)for(var Zt in xt.impliedEdits)_t(O.relativeAttr(mn,Zt),xt.impliedEdits[Zt]);if(["width","height"].indexOf(mn)!==-1)if(bt){_t("autosize",null);var Xt=mn==="height"?"width":"height";_t(Xt,je[Xt])}else je[mn]=Ue._initialAutoSize[mn];else if(mn==="autosize")_t("width",bt?null:je.width),_t("height",bt?null:je.height);else if(zt.match(de))bn(zt),w(je,Rt+"._inputRange").set(null);else if(zt.match(ve)){bn(zt),w(je,Rt+"._inputRange").set(null);var Yt=w(je,Rt).get();Yt._inputDomain&&(Yt._input.domain=Yt._inputDomain.slice())}else zt.match(ye)&&w(je,Rt+"._inputDomain").set(null);if(yt==="type"){nn=it;var Qt=at.type==="linear"&&bt==="log",Pt=at.type==="log"&&bt==="linear";if(Qt||Pt){if(nn&&nn.range)if(at.autorange)Qt&&(nn.range=nn.range[1]>nn.range[0]?[1,2]:[2,1]);else{var tn=nn.range[0],Kt=nn.range[1];Qt?(tn<=0&&Kt<=0&&_t(Rt+".autorange",!0),tn<=0?tn=Kt/1e6:Kt<=0&&(Kt=tn/1e6),_t(Rt+".range[0]",Math.log(tn)/Math.LN10),_t(Rt+".range[1]",Math.log(Kt)/Math.LN10)):(_t(Rt+".range[0]",Math.pow(10,tn)),_t(Rt+".range[1]",Math.pow(10,Kt)))}else _t(Rt+".autorange",!0);Array.isArray(je._subplots.polar)&&je._subplots.polar.length&&je[vt.parts[0]]&&vt.parts[1]==="radialaxis"&&delete je[vt.parts[0]]._subplot.viewInitial["radialaxis.range"],a.getComponentMethod("annotations","convertCoords")(Ue,at,bt,_t),a.getComponentMethod("images","convertCoords")(Ue,at,bt,_t)}else _t(Rt+".autorange",!0),_t(Rt+".range",null);w(je,Rt+"._inputRange").set(null)}else if(yt.match(k)){var fn=w(je,mn).get(),dn=(bt||{}).type;dn&&dn!=="-"||(dn="linear"),a.getComponentMethod("annotations","convertCoords")(Ue,fn,dn,_t),a.getComponentMethod("images","convertCoords")(Ue,fn,dn,_t)}var vn=E.containerArrayMatch(mn);if(vn){Xe=vn.array,tt=vn.index;var Nn=vn.property,er=xt||{editType:"calc"};tt!==""&&Nn===""&&(E.isAddVal(bt)?Ct[mn]=null:E.isRemoveVal(bt)?Ct[mn]=(w(Ne,Xe).get()||[])[tt]:O.warn("unrecognized full object value",Ze)),D.update(en,er),wt[Xe]||(wt[Xe]={});var En=wt[Xe][tt];En||(En=wt[Xe][tt]={}),En[Nn]=bt,delete Ze[mn]}else yt==="reverse"?(it.range?it.range.reverse():(_t(Rt+".autorange",!0),it.range=[1,0]),at.autorange?en.calc=!0:en.plot=!0):(mn==="dragmode"&&(bt===!1&&Lt!==!1||bt!==!1&&Lt===!1)||je._has("scatter-like")&&je._has("regl")&&mn==="dragmode"&&(bt==="lasso"||bt==="select")&&Lt!=="lasso"&&Lt!=="select"||je._has("gl2d")?en.plot=!0:xt?D.update(en,xt):en.calc=!0,vt.set(bt))}}for(Xe in wt)E.applyContainerArrayChanges(Ue,ot(Ne,Xe),wt[Xe],en,ot)||(en.plot=!0);for(var In in gn){var jn=(nn=m.getFromId(Ue,In))&&nn._constraintGroup;if(jn)for(var xr in en.calc=!0,jn)gn[xr]||(m.getFromId(Ue,xr)._constraintShrinkable=!0)}(Se(Ue)||Ze.height||Ze.width)&&(en.plot=!0);var Sr=je.shapes;for(tt=0;tt1;)if(tt.pop(),(Xe=w(Ze,tt.join(".")+".uirevision").get())!==void 0)return Xe;return Ze.uirevision}function Ve(Ue,Ze){for(var Xe=0;Xe=Ee.length?Ee[0]:Ee[Ge]:Ee}function nt(Ge){return Array.isArray(Ne)?Ge>=Ne.length?Ne[0]:Ne[Ge]:Ne}function ot(Ge,ht){var pt=0;return function(){if(Ge&&++pt===ht)return Ge()}}return tt._frameWaitingCnt===void 0&&(tt._frameWaitingCnt=0),new Promise(function(Ge,ht){function pt(){Ue.emit("plotly_animating"),tt._lastFrameAt=-1/0,tt._timeToNext=0,tt._runningTransitions=0,tt._currentFrame=null;var mn=function(){tt._animationRaf=window.requestAnimationFrame(mn),Date.now()-tt._lastFrameAt>tt._timeToNext&&function(){tt._currentFrame&&tt._currentFrame.onComplete&&tt._currentFrame.onComplete();var vt=tt._currentFrame=tt._frameQueue.shift();if(vt){var bt=vt.name?vt.name.toString():null;Ue._fullLayout._currentFrame=bt,tt._lastFrameAt=Date.now(),tt._timeToNext=vt.frameOpts.duration,h.transition(Ue,vt.frame.data,vt.frame.layout,C.coerceTraceIndices(Ue,vt.frame.traces),vt.frameOpts,vt.transitionOpts).then(function(){vt.onComplete&&vt.onComplete()}),Ue.emit("plotly_animatingframe",{name:bt,frame:vt.frame,animation:{frame:vt.frameOpts,transition:vt.transitionOpts}})}else Ue.emit("plotly_animated"),window.cancelAnimationFrame(tt._animationRaf),tt._animationRaf=null}()};mn()}var wt,Dt,It=0;function qt(mn){return Array.isArray(Ee)?It>=Ee.length?mn.transitionOpts=Ee[It]:mn.transitionOpts=Ee[0]:mn.transitionOpts=Ee,It++,mn}var en=[],Gt=Ze==null,Ct=Array.isArray(Ze);if(Gt||Ct||!O.isPlainObject(Ze)){if(Gt||["string","number"].indexOf(typeof Ze)!==-1)for(wt=0;wt0&&gngn)&&bn.push(Dt);en=bn}}en.length>0?function(mn){if(mn.length!==0){for(var vt=0;vt=0;tt--)if(O.isPlainObject(Ze[tt])){var wt=Ze[tt].name,Dt=(ot[wt]||pt[wt]||{}).name,It=Ze[tt].name,qt=ot[Dt]||pt[Dt];Dt&&It&&typeof It=="number"&&qt&&I<5&&(I++,O.warn('addFrames: overwriting frame "'+(ot[Dt]||pt[Dt]).name+'" with a frame whose name of type "number" also equates to "'+Dt+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),I===5&&O.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),pt[wt]={name:wt},ht.push({frame:h.supplyFrameDefaults(Ze[tt]),index:Xe&&Xe[tt]!==void 0&&Xe[tt]!==null?Xe[tt]:Ge+tt})}ht.sort(function(mn,vt){return mn.index>vt.index?-1:mn.index=0;tt--){if(typeof(Ee=ht[tt].frame).name=="number"&&O.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Ee.name)for(;ot[Ee.name="frame "+Ue._transitionData._counter++];);if(ot[Ee.name]){for(Ne=0;Ne=0;Xe--)tt=Ze[Xe],Ne.push({type:"delete",index:tt}),je.unshift({type:"insert",index:tt,value:Ee[tt]});var nt=h.modifyFrames,ot=h.modifyFrames,Ge=[Ue,je],ht=[Ue,Ne];return p&&p.add(Ue,nt,Ge,ot,ht),h.modifyFrames(Ue,Ne)},l.addTraces=function Ue(Ze,Xe,tt){Ze=O.getGraphDiv(Ze);var Ee,Ne,je=[],nt=l.deleteTraces,ot=Ue,Ge=[Ze,je],ht=[Ze,Xe];for(function(pt,wt,Dt){var It,qt;if(!Array.isArray(pt.data))throw new Error("gd.data must be an array.");if(wt===void 0)throw new Error("traces must be defined.");for(Array.isArray(wt)||(wt=[wt]),It=0;It=0&&ht=0&&ht=j.length)return!1;if(k.dimensions===2){if(z++,I.length===z)return k;var U=I[z];if(!T(U))return!1;k=j[Q][U]}else k=j[Q]}else k=j}}return k}function T(k){return k===Math.round(k)&&k>=0}function E(){var k,I,z={};for(k in u(z,O),c.subplotsRegistry)if((I=c.subplotsRegistry[k]).layoutAttributes)if(Array.isArray(I.attr))for(var $=0;$=U.length)return!1;$=(z=(c.transformsRegistry[U[X].type]||{}).attributes)&&z[I[2]],j=3}else{var te=k._module;if(te||(te=(c.modules[k.type||i.type.dflt]||{})._module),!te)return!1;if(!($=(z=te.attributes)&&z[Q])){var W=te.basePlotModule;W&&W.attributes&&($=W.attributes[Q])}$||($=i[Q])}return M($,I,j)},l.getLayoutValObject=function(k,I){var z=function($,Q){var j,U,X,te,W=$._basePlotModules;if(W){var K;for(j=0;j=h&&(u._input||{})._templateitemname;v&&(m=h);var _,S=a+"["+m+"]";function A(){_={},v&&(_[S]={},_[S][i]=v)}function x(M,T){v?c.nestedProperty(_[S],M).set(T):_[S+"."+M]=T}function R(){var M=_;return A(),M}return A(),{modifyBase:function(M,T){_[M]=T},modifyItem:x,getUpdateObj:R,applyUpdate:function(M,T){M&&x(M,T);var E=R();for(var C in E)c.nestedProperty(p,C).set(E[C])}}}},39172:function(d,l,n){var c=n(33428),b=n(24040),i=n(7316),O=n(3400),w=n(72736),y=n(73696),p=n(76308),a=n(43616),u=n(81668),h=n(45460),m=n(54460),v=n(84284),_=n(71888),S=_.enforce,A=_.clean,x=n(19280).doAutoRange,R="start";function M(D,k,I){for(var z=0;z=D[1]||$[1]<=D[0])&&Q[0]k[0])return!0}return!1}function T(D){var k,I,z,$,Q,j,U=D._fullLayout,X=U._size,te=X.p,W=m.list(D,"",!0);if(U._paperdiv.style({width:D._context.responsive&&U.autosize&&!D._context._hasZeroWidth&&!D.layout.width?"100%":U.width+"px",height:D._context.responsive&&U.autosize&&!D._context._hasZeroHeight&&!D.layout.height?"100%":U.height+"px"}).selectAll(".main-svg").call(a.setSize,U.width,U.height),D._context.setBackground(D,U.paper_bgcolor),l.drawMainTitle(D),h.manage(D),!U._has("cartesian"))return i.previousPromises(D);function K(Ge,ht,pt){var wt=Ge._lw/2;return Ge._id.charAt(0)==="x"?ht?pt==="top"?ht._offset-te-wt:ht._offset+ht._length+te+wt:X.t+X.h*(1-(Ge.position||0))+wt%1:ht?pt==="right"?ht._offset+ht._length+te+wt:ht._offset-te-wt:X.l+X.w*(Ge.position||0)+wt%1}for(k=0;k.5?"t":"b",ae=q._fullLayout.margin[se],ce=0;return Y.yref==="paper"?ce=ee+Y.pad.t+Y.pad.b:Y.yref==="container"&&(ce=function(de,ve,ye,_e,Se){var Te=0;return ye==="middle"&&(Te+=Se/2),de==="t"?(ye==="top"&&(Te+=Se),Te+=_e-ve*_e):(ye==="bottom"&&(Te+=Se),Te+=ve*_e),Te}(se,me,he,q._fullLayout.height,ee)+Y.pad.t+Y.pad.b),ce>ae?ce:0}(D,I,te);if(W>0){(function(q,Y,ee,me){var he="title.automargin",se=q._fullLayout.title,ae=se.y>.5?"t":"b",ce={x:se.x,y:se.y,t:0,b:0},de={};se.yref==="paper"&&function(ve,ye,_e,Se,Te){var Pe=ye.yref==="paper"?ve._fullLayout._size.h:ve._fullLayout.height,Ie=O.isTopAnchor(ye)?Se:Se-Te,ze=_e==="b"?Pe-Ie:Ie;return!(O.isTopAnchor(ye)&&_e==="t"||O.isBottomAnchor(ye)&&_e==="b")&&zeX?L.push({code:"unused",traceType:z,templateCount:U,dataCount:X}):X>U&&L.push({code:"reused",traceType:z,templateCount:U,dataCount:X})}}else L.push({code:"data"});if(function te(W,K){for(var oe in W)if(oe.charAt(0)!=="_"){var q=W[oe],Y=_(W,oe,K);b(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&L.push({code:"missing",path:Y,templateitemname:q.templateitemname}),te(q,Y)):Array.isArray(q)&&S(q)&&te(q,Y)}}({data:k,layout:D},""),L.length)return L.map(A)}},67024:function(d,l,n){var c=n(38248),b=n(36424),i=n(7316),O=n(3400),w=n(81792),y=n(37164),p=n(63268),a=n(25788).version,u={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};d.exports=function(h,m){var v,_,S,A;function x(X){return!(X in m)||O.validate(m[X],u[X])}if(m=m||{},O.isPlainObject(h)?(v=h.data||[],_=h.layout||{},S=h.config||{},A={}):(h=O.getGraphDiv(h),v=O.extendDeep([],h.data),_=O.extendDeep({},h.layout),S=h._context,A=h._fullLayout||{}),!x("width")&&m.width!==null||!x("height")&&m.height!==null)throw new Error("Height and width should be pixel values.");if(!x("format"))throw new Error("Export format is not "+O.join2(u.format.values,", "," or ")+".");var R={};function M(X,te){return O.coerce(m,R,u,X,te)}var T=M("format"),E=M("width"),C=M("height"),L=M("scale"),D=M("setBackground"),k=M("imageDataOnly"),I=document.createElement("div");I.style.position="absolute",I.style.left="-5000px",document.body.appendChild(I);var z=O.extendFlat({},_);E?z.width=E:m.width===null&&c(A.width)&&(z.width=A.width),C?z.height=C:m.height===null&&c(A.height)&&(z.height=A.height);var $=O.extendFlat({},S,{_exportedPlot:!0,staticPlot:!0,setBackground:D}),Q=w.getRedrawFunc(I);function j(){return new Promise(function(X){setTimeout(X,w.getDelay(I._fullLayout))})}function U(){return new Promise(function(X,te){var W=y(I,T,L),K=I._fullLayout.width,oe=I._fullLayout.height;function q(){b.purge(I),document.body.removeChild(I)}if(T==="full-json"){var Y=i.graphJson(I,!1,"keepdata","object",!0,!0);return Y.version=a,Y=JSON.stringify(Y),q(),X(k?Y:w.encodeJSON(Y))}if(q(),T==="svg")return X(k?W:w.encodeSVG(W));var ee=document.createElement("canvas");ee.id=O.randstr(),p({format:T,width:K,height:oe,scale:L,canvas:ee,svg:W,promise:!0}).then(X).catch(te)})}return new Promise(function(X,te){b.newPlot(I,v,z,$).then(Q).then(j).then(U).then(function(W){X(function(K){return k?K.replace(w.IMAGE_URL_PREFIX,""):K}(W))}).catch(function(W){te(W)})})}},21480:function(d,l,n){var c=n(3400),b=n(7316),i=n(73060),O=n(20556).dfltConfig,w=c.isPlainObject,y=Array.isArray,p=c.isArrayOrTypedArray;function a(x,R,M,T,E,C){C=C||[];for(var L=Object.keys(x),D=0;D$.length&&T.push(m("unused",E,I.concat($.length)));var W,K,oe,q,Y,ee=$.length,me=Array.isArray(te);if(me&&(ee=Math.min(ee,te.length)),Q.dimensions===2)for(K=0;K$[K].length&&T.push(m("unused",E,I.concat(K,$[K].length)));var he=$[K].length;for(W=0;W<(me?Math.min(he,te[K].length):he);W++)oe=me?te[K][W]:te,q=z[K][W],Y=$[K][W],c.validate(q,oe)?Y!==q&&Y!==+q&&T.push(m("dynamic",E,I.concat(K,W),q,Y)):T.push(m("value",E,I.concat(K,W),q))}else T.push(m("array",E,I.concat(K),z[K]));else for(K=0;K1&&C.push(m("object","layout"))),b.supplyDefaults(L);for(var D=L._fullData,k=M.length,I=0;I0&&Math.round(_)===_))return{vals:u};m=_}for(var S=p.calendar,A=h==="start",x=h==="end",R=y[a+"period0"],M=i(R,S)||0,T=[],E=[],C=[],L=u.length,D=0;D$;)z=O(z,-m,S);for(;z<=$;)z=O(z,m,S);I=O(z,-m,S)}else{for(z=M+(k=Math.round(($-M)/v))*v;z>$;)z-=v;for(;z<=$;)z+=v;I=z-v}T[D]=A?I:x?z:(I+z)/2,E[D]=I,C[D]=z}return{vals:T,starts:E,ends:C}}},26720:function(d){d.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(d,l,n){var c=n(33428),b=n(38248),i=n(3400),O=n(39032).FP_SAFE,w=n(24040),y=n(43616),p=n(79811),a=p.getFromId,u=p.isLinked;function h(D,k){var I,z,$=[],Q=D._fullLayout,j=v(Q,k,0),U=v(Q,k,1),X=S(D,k),te=X.min,W=X.max;if(te.length===0||W.length===0)return i.simpleMap(k.range,k.r2l);var K=te[0].val,oe=W[0].val;for(I=1;I0&&((ce=Se-j(me)-U(he))>Te?de/ce>Pe&&(se=me,ae=he,Pe=de/ce):de/Se>Pe&&(se={val:me.val,nopad:1},ae={val:he.val,nopad:1},Pe=de/Se));if(K===oe){var Ie=K-1,ze=K+1;if(ye)if(K===0)$=[0,1];else{var De=(K>0?W:te).reduce(function(Ve,$e){return Math.max(Ve,U($e))},0),He=K/(1-Math.min(.5,De/Se));$=K>0?[0,He]:[He,0]}else $=_e?[Math.max(0,Ie),Math.max(1,ze)]:[Ie,ze]}else ye?(se.val>=0&&(se={val:0,nopad:1}),ae.val<=0&&(ae={val:0,nopad:1})):_e&&(se.val-Pe*j(se)<0&&(se={val:0,nopad:1}),ae.val<=0&&(ae={val:1,nopad:1})),Pe=(ae.val-se.val-m(k,me.val,he.val))/(Se-j(se)-U(ae)),$=[se.val-Pe*j(se),ae.val+Pe*U(ae)];return $=L($,k),k.limitRange&&k.limitRange(),Y&&$.reverse(),i.simpleMap($,k.l2r||Number)}function m(D,k,I){var z=0;if(D.rangebreaks)for(var $=D.locateBreaks(k,I),Q=0;Q<$.length;Q++){var j=$[Q];z+=j.max-j.min}return z}function v(D,k,I){var z=.05*k._length,$=k._anchorAxis||{};if((k.ticklabelposition||"").indexOf("inside")!==-1||($.ticklabelposition||"").indexOf("inside")!==-1){var Q=k.isReversed();if(!Q){var j=i.simpleMap(k.range,k.r2l);Q=j[1]0?I.ppadplus:I.ppadminus)||I.ppad||0),ve=ce((D._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),ye=ce(I.vpadplus||I.vpad),_e=ce(I.vpadminus||I.vpad);if(!se){if(W=1/0,K=-1/0,he)for(z=0;z0&&(W=$),$>K&&$-O&&(W=$),$>K&&$=Pe;z--)Te(z);return{min:oe,max:q,opts:I}},concatExtremes:S};var _=3;function S(D,k,I){var z,$,Q,j=k._id,U=D._fullData,X=D._fullLayout,te=[],W=[];function K(me,he){for(z=0;z=I&&(te.extrapad||!j)){U=!1;break}$(k,te.val)&&te.pad<=I&&(j||!te.extrapad)&&(D.splice(X,1),X--)}if(U){var W=Q&&k===0;D.push({val:k,pad:W?0:I,extrapad:!W&&j})}}function M(D){return b(D)&&Math.abs(D)=k}function C(D,k,I){return k===void 0||I===void 0||(k=D.d2l(k))=X&&(Q=X,I=X),j<=X&&(j=X,z=X)}}return I=function(te,W){var K=W.autorangeoptions;return K&&K.minallowed!==void 0&&C(W,K.minallowed,K.maxallowed)?K.minallowed:K&&K.clipmin!==void 0&&C(W,K.clipmin,K.clipmax)?Math.max(te,W.d2l(K.clipmin)):te}(I,k),z=function(te,W){var K=W.autorangeoptions;return K&&K.maxallowed!==void 0&&C(W,K.minallowed,K.maxallowed)?K.maxallowed:K&&K.clipmax!==void 0&&C(W,K.clipmin,K.clipmax)?Math.min(te,W.d2l(K.clipmax)):te}(z,k),[I,z]}},76808:function(d){d.exports=function(l,n,c){var b,i;if(c){var O=n==="reversed"||n==="min reversed"||n==="max reversed";b=c[O?1:0],i=c[O?0:1]}var w=l("autorangeoptions.minallowed",i===null?b:void 0),y=l("autorangeoptions.maxallowed",b===null?i:void 0);w===void 0&&l("autorangeoptions.clipmin"),y===void 0&&l("autorangeoptions.clipmax"),l("autorangeoptions.include")}},54460:function(d,l,n){var c=n(33428),b=n(38248),i=n(7316),O=n(24040),w=n(3400),y=w.strTranslate,p=n(72736),a=n(81668),u=n(76308),h=n(43616),m=n(94724),v=n(98728),_=n(39032),S=_.ONEMAXYEAR,A=_.ONEAVGYEAR,x=_.ONEMINYEAR,R=_.ONEMAXQUARTER,M=_.ONEAVGQUARTER,T=_.ONEMINQUARTER,E=_.ONEMAXMONTH,C=_.ONEAVGMONTH,L=_.ONEMINMONTH,D=_.ONEWEEK,k=_.ONEDAY,I=k/2,z=_.ONEHOUR,$=_.ONEMIN,Q=_.ONESEC,j=_.MINUS_SIGN,U=_.BADNUM,X={K:"zeroline"},te={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},K={K:"tick",L:"path"},oe={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Y=n(84284),ee=Y.MID_SHIFT,me=Y.CAP_SHIFT,he=Y.LINE_SPACING,se=Y.OPPOSITE_SIDE,ae=d.exports={};ae.setConvert=n(78344);var ce=n(52976),de=n(79811),ve=de.idSort,ye=de.isLinked;ae.id2name=de.id2name,ae.name2id=de.name2id,ae.cleanId=de.cleanId,ae.list=de.list,ae.listIds=de.listIds,ae.getFromId=de.getFromId,ae.getFromTrace=de.getFromTrace;var _e=n(19280);ae.getAutoRange=_e.getAutoRange,ae.findExtremes=_e.findExtremes;var Se=1e-4;function Te(it){var at=(it[1]-it[0])*Se;return[it[0]-at,it[1]+at]}ae.coerceRef=function(it,at,Lt,xt,Zt,Xt){var Yt=xt.charAt(xt.length-1),Qt=Lt._fullLayout._subplots[Yt+"axis"],Pt=xt+"ref",tn={};return Zt||(Zt=Qt[0]||(typeof Xt=="string"?Xt:Xt[0])),Xt||(Xt=Zt),Qt=Qt.concat(Qt.map(function(Kt){return Kt+" domain"})),tn[Pt]={valType:"enumerated",values:Qt.concat(Xt?typeof Xt=="string"?[Xt]:Xt:[]),dflt:Zt},w.coerce(it,at,tn,Pt)},ae.getRefType=function(it){return it===void 0?it:it==="paper"?"paper":it==="pixel"?"pixel":/( domain)$/.test(it)?"domain":"range"},ae.coercePosition=function(it,at,Lt,xt,Zt,Xt){var Yt,Qt;if(ae.getRefType(xt)!=="range")Yt=w.ensureNumber,Qt=Lt(Zt,Xt);else{var Pt=ae.getFromId(at,xt);Qt=Lt(Zt,Xt=Pt.fraction2r(Xt)),Yt=Pt.cleanPos}it[Zt]=Yt(Qt)},ae.cleanPosition=function(it,at,Lt){return(Lt==="paper"||Lt==="pixel"?w.ensureNumber:ae.getFromId(at,Lt).cleanPos)(it)},ae.redrawComponents=function(it,at){at=at||ae.listIds(it);var Lt=it._fullLayout;function xt(Zt,Xt,Yt,Qt){for(var Pt=O.getComponentMethod(Zt,Xt),tn={},Kt=0;Ktxt&&fn2e-6||((Lt-it._forceTick0)/it._minDtick%1+1.000001)%1>2e-6)&&(it._minDtick=0)):it._minDtick=0},ae.saveRangeInitial=function(it,at){for(var Lt=ae.list(it,"",!0),xt=!1,Zt=0;Zt.3*Ir||Kn(xr)||Kn(Sr))){var zr=jn.dtick/2;En+=En+zr.8){var Fn=Number(jn.substr(1));ar.exactYears>.8&&Fn%12==0?En=ae.tickIncrement(En,"M6","reverse")+1.5*k:ar.exactMonths>.8?En=ae.tickIncrement(En,"M1","reverse")+15.5*k:En-=I;var ir=ae.tickIncrement(En,jn);if(ir<=xr)return ir}return En}(er,it,Nn,Qt,Zt)),vn=er;vn<=Pt;)vn=ae.tickIncrement(vn,Nn,!1,Zt);return{start:at.c2r(er,0,Zt),end:at.c2r(vn,0,Zt),size:Nn,_dataSpan:Pt-Qt}},ae.prepMinorTicks=function(it,at,Lt){if(!at.minor.dtick){delete it.dtick;var xt,Zt=at.dtick&&b(at._tmin);if(Zt){var Xt=ae.tickIncrement(at._tmin,at.dtick,!0);xt=[at._tmin,.99*Xt+.01*at._tmin]}else{var Yt=w.simpleMap(at.range,at.r2l);xt=[Yt[0],.8*Yt[0]+.2*Yt[1]]}if(it.range=w.simpleMap(xt,at.l2r),it._isMinor=!0,ae.prepTicks(it,Lt),Zt){var Qt=b(at.dtick),Pt=b(it.dtick),tn=Qt?at.dtick:+at.dtick.substring(1),Kt=Pt?it.dtick:+it.dtick.substring(1);Qt&&Pt?De(tn,Kt)?tn===2*D&&Kt===2*k&&(it.dtick=D):tn===2*D&&Kt===3*k?it.dtick=D:tn!==D||(at._input.minor||{}).nticks?He(tn/Kt,2.5)?it.dtick=tn/2:it.dtick=tn:it.dtick=k:String(at.dtick).charAt(0)==="M"?Pt?it.dtick="M1":De(tn,Kt)?tn>=12&&Kt===2&&(it.dtick="M3"):it.dtick=at.dtick:String(it.dtick).charAt(0)==="L"?String(at.dtick).charAt(0)==="L"?De(tn,Kt)||(it.dtick=He(tn/Kt,2.5)?at.dtick/2:at.dtick):it.dtick="D1":it.dtick==="D2"&&+at.dtick>1&&(it.dtick=1)}it.range=at.range}at.minor._tick0Init===void 0&&(it.tick0=at.tick0)},ae.prepTicks=function(it,at){var Lt=w.simpleMap(it.range,it.r2l,void 0,void 0,at);if(it.tickmode==="auto"||!it.dtick){var xt,Zt=it.nticks;Zt||(it.type==="category"||it.type==="multicategory"?(xt=it.tickfont?w.bigFont(it.tickfont.size||12):15,Zt=it._length/xt):(xt=it._id.charAt(0)==="y"?40:80,Zt=w.constrain(it._length/xt,4,9)+1),it._name==="radialaxis"&&(Zt*=2)),it.minor&&it.minor.tickmode!=="array"||it.tickmode==="array"&&(Zt*=100),it._roughDTick=Math.abs(Lt[1]-Lt[0])/Zt,ae.autoTicks(it,it._roughDTick),it._minDtick>0&&it.dtick<2*it._minDtick&&(it.dtick=it._minDtick,it.tick0=it.l2r(it._forceTick0))}it.ticklabelmode==="period"&&function(Xt){var Yt;function Qt(){return!(b(Xt.dtick)||Xt.dtick.charAt(0)!=="M")}var Pt=Qt(),tn=ae.getTickFormat(Xt);if(tn){var Kt=Xt._dtickInit!==Xt.dtick;/%[fLQsSMX]/.test(tn)||(/%[HI]/.test(tn)?(Yt=z,Kt&&!Pt&&Xt.dtick=(In?0:1);jn--){var xr=!jn;jn?(it._dtickInit=it.dtick,it._tick0Init=it.tick0):(it.minor._dtickInit=it.minor.dtick,it.minor._tick0Init=it.minor.tick0);var Sr=jn?it:w.extendFlat({},it,it.minor);if(xr?ae.prepMinorTicks(Sr,it,at):ae.prepTicks(Sr,at),Sr.tickmode!=="array")if(Sr.tickmode!=="sync"){var ar=Te(Pt),Fn=ar[0],ir=ar[1],Wn=b(Sr.dtick),Kn=Zt==="log"&&!(Wn||Sr.dtick.charAt(0)==="L"),_r=ae.tickFirst(Sr,at);if(jn){if(it._tmin=_r,_r=ir:Rr<=ir;Rr=ae.tickIncrement(Rr,$r,tn,Xt)){if(jn&&Ir++,Sr.rangebreaks&&!tn){if(Rr=fn)break}if(er.length>dn||Rr===Fr)break;Fr=Rr;var Kr={value:Rr};jn?(Kn&&Rr!==(0|Rr)&&(Kr.simpleLabel=!0),Yt>1&&Ir%Yt&&(Kr.skipLabel=!0),er.push(Kr)):(Kr.minor=!0,En.push(Kr))}}else er=[],vn=Oe(it);else jn?(er=[],vn=ke(it,!xr)):(En=[],Nn=ke(it,!xr))}if(In&&!(it.minor.ticks==="inside"&&it.ticks==="outside"||it.minor.ticks==="outside"&&it.ticks==="inside")){for(var Co=er.map(function(hn){return hn.value}),so=[],So=0;So0?(vr=yr-1,nr=yr):(vr=yr,nr=yr);var Qn,Hn=hn[vr].value,tr=hn[nr].value,cr=Math.abs(tr-Hn),Lr=Zn||cr,Er=0;Lr>=x?Er=cr>=x&&cr<=S?cr:A:Zn===M&&Lr>=T?Er=cr>=T&&cr<=R?cr:M:Lr>=L?Er=cr>=L&&cr<=E?cr:C:Zn===D&&Lr>=D?Er=D:Lr>=k?Er=k:Zn===I&&Lr>=I?Er=I:Zn===z&&Lr>=z&&(Er=z),Er>=cr&&(Er=cr,Qn=!0);var Vr=gr+Er;if(zn.rangebreaks&&Er>0){for(var to=0,_o=0;_o<84;_o++){var fr=(_o+.5)/84;zn.maskBreaks(gr*(1-fr)+fr*Vr)!==U&&to++}(Er*=to/84)||(hn[yr].drop=!0),Qn&&cr>D&&(Er=cr)}(Er>0||yr===0)&&(hn[yr].periodX=gr+Er/2)}}(er,it,it._definedDelta),it.rangebreaks){var br=it._id.charAt(0)==="y",dr=1;it.tickmode==="auto"&&(dr=it.tickfont?it.tickfont.size:12);var Cr=NaN;for(Lt=er.length-1;Lt>-1;Lt--)if(er[Lt].drop)er.splice(Lt,1);else{er[Lt].value=lt(er[Lt].value,it);var io=it.c2p(er[Lt].value);(br?Cr>io-dr:Crfn||Wrfn&&(Qr.periodX=fn),Wr10||xt.substr(5)!=="01-01"?it._tickround="d":it._tickround=+at.substr(1)%12==0?"y":"m";else if(at>=k&&Zt<=10||at>=15*k)it._tickround="d";else if(at>=$&&Zt<=16||at>=z)it._tickround="M";else if(at>=Q&&Zt<=19||at>=$)it._tickround="S";else{var Xt=it.l2r(Lt+at).replace(/^-/,"").length;it._tickround=Math.max(Zt,Xt)-20,it._tickround<0&&(it._tickround=4)}}else if(b(at)||at.charAt(0)==="L"){var Yt=it.range.map(it.r2d||Number);b(at)||(at=Number(at.substr(1))),it._tickround=2-Math.floor(Math.log(at)/Math.LN10+.01);var Qt=Math.max(Math.abs(Yt[0]),Math.abs(Yt[1])),Pt=Math.floor(Math.log(Qt)/Math.LN10+.01),tn=it.minexponent===void 0?3:it.minexponent;Math.abs(Pt)>tn&&(Ge(it.exponentformat)&&!ht(Pt)?it._tickexponent=3*Math.round((Pt-1)/3):it._tickexponent=Pt)}else it._tickround=null}function nt(it,at,Lt){var xt=it.tickfont||{};return{x:at,dx:0,dy:0,text:Lt||"",fontSize:xt.size,font:xt.family,fontColor:xt.color}}ae.autoTicks=function(it,at,Lt){var xt;function Zt(fn){return Math.pow(fn,Math.floor(Math.log(at)/Math.LN10))}if(it.type==="date"){it.tick0=w.dateTick0(it.calendar,0);var Xt=2*at;if(Xt>A)at/=A,xt=Zt(10),it.dtick="M"+12*Ne(at,xt,Le);else if(Xt>C)at/=C,it.dtick="M"+Ne(at,1,We);else if(Xt>k){if(it.dtick=Ne(at,k,it._hasDayOfWeekBreaks?[1,2,7,14]:Ze),!Lt){var Yt=ae.getTickFormat(it),Qt=it.ticklabelmode==="period";Qt&&(it._rawTick0=it.tick0),/%[uVW]/.test(Yt)?it.tick0=w.dateTick0(it.calendar,2):it.tick0=w.dateTick0(it.calendar,1),Qt&&(it._dowTick0=it.tick0)}}else Xt>z?it.dtick=Ne(at,z,We):Xt>$?it.dtick=Ne(at,$,Ue):Xt>Q?it.dtick=Ne(at,Q,Ue):(xt=Zt(10),it.dtick=Ne(at,xt,Le))}else if(it.type==="log"){it.tick0=0;var Pt=w.simpleMap(it.range,it.r2l);if(it._isMinor&&(at*=1.5),at>.7)it.dtick=Math.ceil(at);else if(Math.abs(Pt[1]-Pt[0])<1){var tn=1.5*Math.abs((Pt[1]-Pt[0])/at);at=Math.abs(Math.pow(10,Pt[1])-Math.pow(10,Pt[0]))/tn,xt=Zt(10),it.dtick="L"+Ne(at,xt,Le)}else it.dtick=at>.3?"D2":"D1"}else it.type==="category"||it.type==="multicategory"?(it.tick0=0,it.dtick=Math.ceil(Math.max(at,1))):bt(it)?(it.tick0=0,xt=1,it.dtick=Ne(at,xt,Ee)):(it.tick0=0,xt=Zt(10),it.dtick=Ne(at,xt,Le));if(it.dtick===0&&(it.dtick=1),!b(it.dtick)&&typeof it.dtick!="string"){var Kt=it.dtick;throw it.dtick=1,"ax.dtick error: "+String(Kt)}},ae.tickIncrement=function(it,at,Lt,xt){var Zt=Lt?-1:1;if(b(at))return w.increment(it,Zt*at);var Xt=at.charAt(0),Yt=Zt*Number(at.substr(1));if(Xt==="M")return w.incrementMonth(it,Yt,xt);if(Xt==="L")return Math.log(Math.pow(10,it)+Yt)/Math.LN10;if(Xt==="D"){var Qt=at==="D2"?tt:Xe,Pt=it+.01*Zt,tn=w.roundUp(w.mod(Pt,1),Qt,Lt);return Math.floor(Pt)+Math.log(c.round(Math.pow(10,tn),1))/Math.LN10}throw"unrecognized dtick "+String(at)},ae.tickFirst=function(it,at){var Lt=it.r2l||Number,xt=w.simpleMap(it.range,Lt,void 0,void 0,at),Zt=xt[1] ")}else En._prevDateHead=Fn,ir+="
    "+Fn;In.text=ir}(it,Xt,Lt,Qt):Pt==="log"?function(En,In,jn,xr,Sr){var ar=En.dtick,Fn=In.x,ir=En.tickformat,Wn=typeof ar=="string"&&ar.charAt(0);if(Sr==="never"&&(Sr=""),xr&&Wn!=="L"&&(ar="L3",Wn="L"),ir||Wn==="L")In.text=pt(Math.pow(10,Fn),En,Sr,xr);else if(b(ar)||Wn==="D"&&w.mod(Fn+.01,1)<.1){var Kn=Math.round(Fn),_r=Math.abs(Kn),Ir=En.exponentformat;Ir==="power"||Ge(Ir)&&ht(Kn)?(In.text=Kn===0?1:Kn===1?"10":"10"+(Kn>1?"":j)+_r+"",In.fontSize*=1.25):(Ir==="e"||Ir==="E")&&_r>2?In.text="1"+Ir+(Kn>0?"+":j)+_r:(In.text=pt(Math.pow(10,Fn),En,"","fakehover"),ar==="D1"&&En._id.charAt(0)==="y"&&(In.dy-=In.fontSize/6))}else{if(Wn!=="D")throw"unrecognized dtick "+String(ar);In.text=String(Math.round(Math.pow(10,w.mod(Fn,1)))),In.fontSize*=.75}if(En.dtick==="D1"){var zr=String(In.text).charAt(0);zr!=="0"&&zr!=="1"||(En._id.charAt(0)==="y"?In.dx-=In.fontSize/4:(In.dy+=In.fontSize/2,In.dx+=(En.range[1]>En.range[0]?1:-1)*In.fontSize*(Fn<0?.5:.25)))}}(it,Xt,0,Qt,vn):Pt==="category"?function(En,In){var jn=En._categories[Math.round(In.x)];jn===void 0&&(jn=""),In.text=String(jn)}(it,Xt):Pt==="multicategory"?function(En,In,jn){var xr=Math.round(In.x),Sr=En._categories[xr]||[],ar=Sr[1]===void 0?"":String(Sr[1]),Fn=Sr[0]===void 0?"":String(Sr[0]);jn?In.text=Fn+" - "+ar:(In.text=ar,In.text2=Fn)}(it,Xt,Lt):bt(it)?function(En,In,jn,xr,Sr){if(En.thetaunit!=="radians"||jn)In.text=pt(In.x,En,Sr,xr);else{var ar=In.x/180;if(ar===0)In.text="0";else{var Fn=function(Wn){function Kn(Fr,Rr){return Math.abs(Fr-Rr)<=1e-6}var _r=function(Fr){for(var Rr=1;!Kn(Math.round(Fr*Rr)/Rr,Fr);)Rr*=10;return Rr}(Wn),Ir=Wn*_r,zr=Math.abs(function Fr(Rr,$r){return Kn($r,0)?Rr:Fr($r,Rr%$r)}(Ir,_r));return[Math.round(Ir/zr),Math.round(_r/zr)]}(ar);if(Fn[1]>=100)In.text=pt(w.deg2rad(In.x),En,Sr,xr);else{var ir=In.x<0;Fn[1]===1?Fn[0]===1?In.text="π":In.text=Fn[0]+"π":In.text=["",Fn[0],"","⁄","",Fn[1],"","π"].join(""),ir&&(In.text=j+In.text)}}}}(it,Xt,Lt,Qt,vn):function(En,In,jn,xr,Sr){Sr==="never"?Sr="":En.showexponent==="all"&&Math.abs(In.x/En.dtick)<1e-6&&(Sr="hide"),In.text=pt(In.x,En,Sr,xr)}(it,Xt,0,Qt,vn),xt||(it.tickprefix&&!dn(it.showtickprefix)&&(Xt.text=it.tickprefix+Xt.text),it.ticksuffix&&!dn(it.showticksuffix)&&(Xt.text+=it.ticksuffix)),it.labelalias&&it.labelalias.hasOwnProperty(Xt.text)){var Nn=it.labelalias[Xt.text];typeof Nn=="string"&&(Xt.text=Nn)}if(it.tickson==="boundaries"||it.showdividers){var er=function(En){var In=it.l2p(En);return In>=0&&In<=it._length?En:null};Xt.xbnd=[er(Xt.x-.5),er(Xt.x+it.dtick-.5)]}return Xt},ae.hoverLabelText=function(it,at,Lt){Lt&&(it=w.extendFlat({},it,{hoverformat:Lt}));var xt=w.isArrayOrTypedArray(at)?at[0]:at,Zt=w.isArrayOrTypedArray(at)?at[1]:void 0;if(Zt!==void 0&&Zt!==xt)return ae.hoverLabelText(it,xt,Lt)+" - "+ae.hoverLabelText(it,Zt,Lt);var Xt=it.type==="log"&&xt<=0,Yt=ae.tickText(it,it.c2l(Xt?-xt:xt),"hover").text;return Xt?xt===0?"0":j+Yt:Yt};var ot=["f","p","n","μ","m","","k","M","G","T"];function Ge(it){return it==="SI"||it==="B"}function ht(it){return it>14||it<-15}function pt(it,at,Lt,xt){var Zt=it<0,Xt=at._tickround,Yt=Lt||at.exponentformat||"B",Qt=at._tickexponent,Pt=ae.getTickFormat(at),tn=at.separatethousands;if(xt){var Kt={exponentformat:Yt,minexponent:at.minexponent,dtick:at.showexponent==="none"?at.dtick:b(it)&&Math.abs(it)||1,range:at.showexponent==="none"?at.range.map(at.r2d):[0,it||1]};je(Kt),Xt=(Number(Kt._tickround)||0)+4,Qt=Kt._tickexponent,at.hoverformat&&(Pt=at.hoverformat)}if(Pt)return at._numFormat(Pt)(it).replace(/-/g,j);var fn,dn=Math.pow(10,-Xt)/2;if(Yt==="none"&&(Qt=0),(it=Math.abs(it))"+fn+"":Yt==="B"&&Qt===9?it+="B":Ge(Yt)&&(it+=ot[Qt/3+5])),Zt?j+it:it}function wt(it,at){if(it){var Lt=Object.keys(q).reduce(function(xt,Zt){return at.indexOf(Zt)!==-1&&q[Zt].forEach(function(Xt){xt[Xt]=1}),xt},{});Object.keys(it).forEach(function(xt){Lt[xt]||(xt.length===1?it[xt]=0:delete it[xt])})}}function Dt(it,at){for(var Lt=[],xt={},Zt=0;Zt1&&Lt=Zt.min&&it=0,In=Kt(dn,vn[1])<=0;return(Nn||En)&&(er||In)}if(it.tickformatstops&&it.tickformatstops.length>0)switch(it.type){case"date":case"linear":for(at=0;at=Yt(Zt)))){Lt=xt;break}break;case"log":for(at=0;at=0&&Zt.unshift(Zt.splice(tn,1).shift())}});var Yt={false:{left:0,right:0}};return w.syncOrAsync(Zt.map(function(Qt){return function(){if(Qt){var Pt=ae.getFromId(it,Qt);Lt||(Lt={}),Lt.axShifts=Yt,Lt.overlayingShiftedAx=Xt;var tn=ae.drawOne(it,Pt,Lt);return Pt._shiftPusher&&Rt(Pt,Pt._fullDepth||0,Yt,!0),Pt._r=Pt.range.slice(),Pt._rl=w.simpleMap(Pt._r,Pt.r2l),tn}}}))},ae.drawOne=function(it,at,Lt){var xt,Zt,Xt,Yt=(Lt=Lt||{}).axShifts||{},Qt=Lt.overlayingShiftedAx||[];at.setScale();var Pt=it._fullLayout,tn=at._id,Kt=tn.charAt(0),fn=ae.counterLetter(tn),dn=Pt._plots[at._mainSubplot];if(dn){if(at._shiftPusher=at.autoshift||Qt.indexOf(at._id)!==-1||Qt.indexOf(at.overlaying)!==-1,at._shiftPusher&at.anchor==="free"){var vn=at.linewidth/2||0;at.ticks==="inside"&&(vn+=at.ticklen),Rt(at,vn,Yt,!0),Rt(at,at.shift||0,Yt,!1)}Lt.skipTitle===!0&&at._shift!==void 0||(at._shift=function(nr,Qn){return nr.autoshift?Qn[nr.overlaying][nr.side]:nr.shift||0}(at,Yt));var Nn=dn[Kt+"axislayer"],er=at._mainLinePosition,En=er+=at._shift,In=at._mainMirrorPosition,jn=at._vals=ae.calcTicks(at),xr=[at.mirror,En,In].join("_");for(xt=0;xt0?nr.bottom-Er:0,Vr))));var to=0,_o=0;if(at._shiftPusher&&(to=Math.max(Vr,nr.height>0?cr==="l"?Er-nr.left:nr.right-Er:0),at.title.text!==Pt._dfltTitle[Kt]&&(_o=(at._titleStandoff||0)+(at._titleScoot||0),cr==="l"&&(_o+=en(at))),at._fullDepth=Math.max(to,_o)),at.automargin){Qn={x:0,y:0,r:0,l:0,t:0,b:0};var fr=[0,1],Eo=typeof at._shift=="number"?at._shift:0;if(Kt==="x"){if(cr==="b"?Qn[cr]=at._depth:(Qn[cr]=at._depth=Math.max(nr.width>0?Er-nr.top:0,Vr),fr.reverse()),nr.width>0){var ao=nr.right-(at._offset+at._length);ao>0&&(Qn.xr=1,Qn.r=ao);var co=at._offset-nr.left;co>0&&(Qn.xl=0,Qn.l=co)}}else if(cr==="l"?(at._depth=Math.max(nr.height>0?Er-nr.left:0,Vr),Qn[cr]=at._depth-Eo):(at._depth=Math.max(nr.height>0?nr.right-Er:0,Vr),Qn[cr]=at._depth+Eo,fr.reverse()),nr.height>0){var Go=nr.bottom-(at._offset+at._length);Go>0&&(Qn.yb=0,Qn.b=Go);var po=at._offset-nr.top;po>0&&(Qn.yt=1,Qn.t=po)}Qn[fn]=at.anchor==="free"?at.position:at._anchorAxis.domain[fr[0]],at.title.text!==Pt._dfltTitle[Kt]&&(Qn[cr]+=en(at)+(at.title.standoff||0)),at.mirror&&at.anchor!=="free"&&((Hn={x:0,y:0,r:0,l:0,t:0,b:0})[Lr]=at.linewidth,at.mirror&&at.mirror!==!0&&(Hn[Lr]+=Vr),at.mirror===!0||at.mirror==="ticks"?Hn[fn]=at._anchorAxis.domain[fr[1]]:at.mirror!=="all"&&at.mirror!=="allticks"||(Hn[fn]=[at._counterDomainMin,at._counterDomainMax][fr[1]]))}gr&&(tr=O.getComponentMethod("rangeslider","autoMarginOpts")(it,at)),typeof at.automargin=="string"&&(wt(Qn,at.automargin),wt(Hn,at.automargin)),i.autoMargin(it,_t(at),Qn),i.autoMargin(it,nn(at),Hn),i.autoMargin(it,gn(at),tr)}),w.syncOrAsync(Zn)}}function vr(nr){var Qn=tn+(nr||"tick");return Sr[Qn]||(Sr[Qn]=function(Hn,tr){var cr,Lr,Er,Vr;return Hn._selections[tr].size()?(cr=1/0,Lr=-1/0,Er=1/0,Vr=-1/0,Hn._selections[tr].each(function(){var to=Ct(this),_o=h.bBox(to.node().parentNode);cr=Math.min(cr,_o.top),Lr=Math.max(Lr,_o.bottom),Er=Math.min(Er,_o.left),Vr=Math.max(Vr,_o.right)})):(cr=0,Lr=0,Er=0,Vr=0),{top:cr,bottom:Lr,left:Er,right:Vr,height:Lr-cr,width:Vr-Er}}(at,Qn)),Sr[Qn]}},ae.getTickSigns=function(it,at){var Lt=it._id.charAt(0),xt={x:"top",y:"right"}[Lt],Zt=it.side===xt?1:-1,Xt=[-1,1,Zt,-Zt];return(at?(it.minor||{}).ticks:it.ticks)!=="inside"==(Lt==="x")&&(Xt=Xt.map(function(Yt){return-Yt})),it.side&&Xt.push({l:-1,t:-1,r:1,b:1}[it.side.charAt(0)]),Xt},ae.makeTransTickFn=function(it){return it._id.charAt(0)==="x"?function(at){return y(it._offset+it.l2p(at.x),0)}:function(at){return y(0,it._offset+it.l2p(at.x))}},ae.makeTransTickLabelFn=function(it){var at=function(Zt){var Xt=Zt.ticklabelposition||"",Yt=function(In){return Xt.indexOf(In)!==-1},Qt=Yt("top"),Pt=Yt("left"),tn=Yt("right"),Kt=Yt("bottom"),fn=Yt("inside"),dn=Kt||Pt||Qt||tn;if(!dn&&!fn)return[0,0];var vn=Zt.side,Nn=dn?(Zt.tickwidth||0)/2:0,er=3,En=Zt.tickfont?Zt.tickfont.size:12;return(Kt||Qt)&&(Nn+=En*me,er+=(Zt.linewidth||0)/2),(Pt||tn)&&(Nn+=(Zt.linewidth||0)/2,er+=3),fn&&vn==="top"&&(er-=En*(1-me)),(Pt||Qt)&&(Nn=-Nn),vn!=="bottom"&&vn!=="right"||(er=-er),[dn?Nn:0,fn?er:0]}(it),Lt=at[0],xt=at[1];return it._id.charAt(0)==="x"?function(Zt){return y(Lt+it._offset+it.l2p(It(Zt)),xt)}:function(Zt){return y(xt,Lt+it._offset+it.l2p(It(Zt)))}},ae.makeTickPath=function(it,at,Lt,xt){xt||(xt={});var Zt=xt.minor;if(Zt&&!it.minor)return"";var Xt=xt.len!==void 0?xt.len:Zt?it.minor.ticklen:it.ticklen,Yt=it._id.charAt(0),Qt=(it.linewidth||1)/2;return Yt==="x"?"M0,"+(at+Qt*Lt)+"v"+Xt*Lt:"M"+(at+Qt*Lt)+",0h"+Xt*Lt},ae.makeLabelFns=function(it,at,Lt){var xt=it.ticklabelposition||"",Zt=function(Ir){return xt.indexOf(Ir)!==-1},Xt=Zt("top"),Yt=Zt("left"),Qt=Zt("right"),Pt=Zt("bottom")||Yt||Xt||Qt,tn=Zt("inside"),Kt=xt==="inside"&&it.ticks==="inside"||!tn&&it.ticks==="outside"&&it.tickson!=="boundaries",fn=0,dn=0,vn=Kt?it.ticklen:0;if(tn?vn*=-1:Pt&&(vn=0),Kt&&(fn+=vn,Lt)){var Nn=w.deg2rad(Lt);fn=vn*Math.cos(Nn)+1,dn=vn*Math.sin(Nn)}it.showticklabels&&(Kt||it.showline)&&(fn+=.2*it.tickfont.size);var er,En,In,jn,xr,Sr={labelStandoff:fn+=(it.linewidth||1)/2*(tn?-1:1),labelShift:dn},ar=0,Fn=it.side,ir=it._id.charAt(0),Wn=it.tickangle;if(ir==="x")jn=(xr=!tn&&Fn==="bottom"||tn&&Fn==="top")?1:-1,tn&&(jn*=-1),er=dn*jn,En=at+fn*jn,In=xr?1:-.2,Math.abs(Wn)===90&&(tn?In+=ee:In=Wn===-90&&Fn==="bottom"?me:Wn===90&&Fn==="top"?ee:.5,ar=ee/2*(Wn/90)),Sr.xFn=function(Ir){return Ir.dx+er+ar*Ir.fontSize},Sr.yFn=function(Ir){return Ir.dy+En+Ir.fontSize*In},Sr.anchorFn=function(Ir,zr){if(Pt){if(Yt)return"end";if(Qt)return"start"}return b(zr)&&zr!==0&&zr!==180?zr*jn<0!==tn?"end":"start":"middle"},Sr.heightFn=function(Ir,zr,Fr){return zr<-60||zr>60?-.5*Fr:it.side==="top"!==tn?-Fr:0};else if(ir==="y"){if(jn=(xr=!tn&&Fn==="left"||tn&&Fn==="right")?1:-1,tn&&(jn*=-1),er=fn,En=dn*jn,In=0,tn||Math.abs(Wn)!==90||(In=Wn===-90&&Fn==="left"||Wn===90&&Fn==="right"?me:.5),tn){var Kn=b(Wn)?+Wn:0;if(Kn!==0){var _r=w.deg2rad(Kn);ar=Math.abs(Math.sin(_r))*me*jn,In=0}}Sr.xFn=function(Ir){return Ir.dx+at-(er+Ir.fontSize*In)*jn+ar*Ir.fontSize},Sr.yFn=function(Ir){return Ir.dy+En+Ir.fontSize*ee},Sr.anchorFn=function(Ir,zr){return b(zr)&&Math.abs(zr)===90?"middle":xr?"end":"start"},Sr.heightFn=function(Ir,zr,Fr){return it.side==="right"&&(zr*=-1),zr<-30?-Fr:zr<30?-.5*Fr:0}}return Sr},ae.drawTicks=function(it,at,Lt){Lt=Lt||{};var xt=at._id+"tick",Zt=[].concat(at.minor&&at.minor.ticks?Lt.vals.filter(function(Yt){return Yt.minor&&!Yt.noTick}):[]).concat(at.ticks?Lt.vals.filter(function(Yt){return!Yt.minor&&!Yt.noTick}):[]),Xt=Lt.layer.selectAll("path."+xt).data(Zt,qt);Xt.exit().remove(),Xt.enter().append("path").classed(xt,1).classed("ticks",1).classed("crisp",Lt.crisp!==!1).each(function(Yt){return u.stroke(c.select(this),Yt.minor?at.minor.tickcolor:at.tickcolor)}).style("stroke-width",function(Yt){return h.crispRound(it,Yt.minor?at.minor.tickwidth:at.tickwidth,1)+"px"}).attr("d",Lt.path).style("display",null),zt(at,[K]),Xt.attr("transform",Lt.transFn)},ae.drawGrid=function(it,at,Lt){if(Lt=Lt||{},at.tickmode!=="sync"){var xt=at._id+"grid",Zt=at.minor&&at.minor.showgrid,Xt=Zt?Lt.vals.filter(function(In){return In.minor}):[],Yt=at.showgrid?Lt.vals.filter(function(In){return!In.minor}):[],Qt=Lt.counterAxis;if(Qt&&ae.shouldShowZeroLine(it,at,Qt))for(var Pt=at.tickmode==="array",tn=0;tn=0;Nn--){var er=Nn?dn:vn;if(er){var En=er.selectAll("path."+xt).data(Nn?Yt:Xt,qt);En.exit().remove(),En.enter().append("path").classed(xt,1).classed("crisp",Lt.crisp!==!1),En.attr("transform",Lt.transFn).attr("d",Lt.path).each(function(In){return u.stroke(c.select(this),In.minor?at.minor.gridcolor:at.gridcolor||"#ddd")}).style("stroke-dasharray",function(In){return h.dashStyle(In.minor?at.minor.griddash:at.griddash,In.minor?at.minor.gridwidth:at.gridwidth)}).style("stroke-width",function(In){return(In.minor?fn:at._gw)+"px"}).style("display",null),typeof Lt.path=="function"&&En.attr("d",Lt.path)}}zt(at,[te,W])}},ae.drawZeroLine=function(it,at,Lt){Lt=Lt||Lt;var xt=at._id+"zl",Zt=ae.shouldShowZeroLine(it,at,Lt.counterAxis),Xt=Lt.layer.selectAll("path."+xt).data(Zt?[{x:0,id:at._id}]:[]);Xt.exit().remove(),Xt.enter().append("path").classed(xt,1).classed("zl",1).classed("crisp",Lt.crisp!==!1).each(function(){Lt.layer.selectAll("path").sort(function(Yt,Qt){return ve(Yt.id,Qt.id)})}),Xt.attr("transform",Lt.transFn).attr("d",Lt.path).call(u.stroke,at.zerolinecolor||u.defaultLine).style("stroke-width",h.crispRound(it,at.zerolinewidth,at._gw||1)+"px").style("display",null),zt(at,[X])},ae.drawLabels=function(it,at,Lt){Lt=Lt||{};var xt=it._fullLayout,Zt=at._id,Xt=Lt.cls||Zt+"tick",Yt=Lt.vals.filter(function(Kr){return Kr.text}),Qt=Lt.labelFns,Pt=Lt.secondary?0:at.tickangle,tn=(at._prevTickAngles||{})[Xt],Kt=Lt.layer.selectAll("g."+Xt).data(at.showticklabels?Yt:[],qt),fn=[];function dn(Kr,Co){Kr.each(function(so){var So=c.select(this),go=So.select(".text-math-group"),li=Qt.anchorFn(so,Co),Pn=Lt.transFn.call(So.node(),so)+(b(Co)&&+Co!=0?" rotate("+Co+","+Qt.xFn(so)+","+(Qt.yFn(so)-so.fontSize/2)+")":""),Yn=p.lineCount(So),br=he*so.fontSize,dr=Qt.heightFn(so,b(Co)?+Co:0,(Yn-1)*br);if(dr&&(Pn+=y(0,dr)),go.empty()){var Cr=So.select("text");Cr.attr({transform:Pn,"text-anchor":li}),Cr.style("opacity",1),at._adjustTickLabelsOverflow&&at._adjustTickLabelsOverflow()}else{var io=h.bBox(go.node()).width*{end:-.5,start:.5}[li];go.attr("transform",Pn+y(io,0))}})}Kt.enter().append("g").classed(Xt,1).append("text").attr("text-anchor","middle").each(function(Kr){var Co=c.select(this),so=it._promises.length;Co.call(p.positionText,Qt.xFn(Kr),Qt.yFn(Kr)).call(h.font,Kr.font,Kr.fontSize,Kr.fontColor).text(Kr.text).call(p.convertToTspans,it),it._promises[so]?fn.push(it._promises.pop().then(function(){dn(Co,Pt)})):dn(Co,Pt)}),zt(at,[oe]),Kt.exit().remove(),Lt.repositionOnUpdate&&Kt.each(function(Kr){c.select(this).select("text").call(p.positionText,Qt.xFn(Kr),Qt.yFn(Kr))}),at._adjustTickLabelsOverflow=function(){var Kr=at.ticklabeloverflow;if(Kr&&Kr!=="allow"){var Co=Kr.indexOf("hide")!==-1,so=at._id.charAt(0)==="x",So=0,go=so?it._fullLayout.width:it._fullLayout.height;if(Kr.indexOf("domain")!==-1){var li=w.simpleMap(at.range,at.r2l);So=at.l2p(li[0])+at._offset,go=at.l2p(li[1])+at._offset}var Pn=Math.min(So,go),Yn=Math.max(So,go),br=at.side,dr=1/0,Cr=-1/0;for(var io in Kt.each(function(bo){var Bn=c.select(this);if(Bn.select(".text-math-group").empty()){var hr=h.bBox(Bn.node()),hn=0;so?(hr.right>Yn||hr.leftYn||hr.top+(at.tickangle?0:bo.fontSize/4)at["_visibleLabelMin_"+li._id]?Wr.style("display","none"):Yn.K!=="tick"||Pn||Wr.style("display",null)})})})})},dn(Kt,tn+1?tn:Pt);var vn=null;at._selections&&(at._selections[Xt]=Kt);var Nn=[function(){return fn.length&&Promise.all(fn)}];at.automargin&&xt._redrawFromAutoMarginCount&&tn===90?(vn=tn,Nn.push(function(){dn(Kt,tn)})):Nn.push(function(){if(dn(Kt,Pt),Yt.length&&at.autotickangles&&(at.type!=="log"||String(at.dtick).charAt(0)!=="D")){vn=at.autotickangles[0];var Kr,Co=0,so=[],So=1;if(Kt.each(function(gr){Co=Math.max(Co,gr.fontSize);var vr=at.l2p(gr.x),nr=Ct(this),Qn=h.bBox(nr.node());So=Math.max(So,p.lineCount(nr)),so.push({top:0,bottom:10,height:10,left:vr-Qn.width/2,right:vr+Qn.width/2+2,width:Qn.width+2})}),at.tickson!=="boundaries"&&!at.showdividers||Lt.secondary){var go=Yt.length,li=Math.abs((Yt[go-1].x-Yt[0].x)*at._m)/(go-1),Pn=at.ticklabelposition||"",Yn=function(gr){return Pn.indexOf(gr)!==-1},br=Yn("top"),dr=Yn("left"),Cr=Yn("right"),io=Yn("bottom")||dr||br||Cr?(at.tickwidth||0)+6:0,Qr=li,Wr=1.25*Co*So,bo=Qr/Math.sqrt(Math.pow(Qr,2)+Math.pow(Wr,2)),Bn=at.autotickangles.map(function(gr){return gr*Math.PI/180}),hr=Bn.find(function(gr){return Math.abs(Math.cos(gr))<=bo});hr===void 0&&(hr=Bn.reduce(function(gr,vr){return Math.abs(Math.cos(gr))Fr*zr&&(Kn=zr,Fn[ar]=ir[ar]=_r[ar])}var Rr=Math.abs(Kn-Wn);Rr-jn>0?jn*=1+jn/(Rr-=jn):jn=0,at._id.charAt(0)!=="y"&&(jn=-jn),Fn[Sr]=En.p2d(En.d2p(ir[Sr])+xr*jn),En.autorange==="min"||En.autorange==="max reversed"?(Fn[0]=null,En._rangeInitial0=void 0,En._rangeInitial1=void 0):En.autorange!=="max"&&En.autorange!=="min reversed"||(Fn[1]=null,En._rangeInitial0=void 0,En._rangeInitial1=void 0),xt._insideTickLabelsUpdaterange[En._name+".range"]=Fn}var $r=w.syncOrAsync(Nn);return $r&&$r.then&&it._promises.push($r),$r},ae.getPxPosition=function(it,at){var Lt,xt=it._fullLayout._size,Zt=at._id.charAt(0),Xt=at.side;return at.anchor!=="free"?Lt=at._anchorAxis:Zt==="x"?Lt={_offset:xt.t+(1-(at.position||0))*xt.h,_length:0}:Zt==="y"&&(Lt={_offset:xt.l+(at.position||0)*xt.w+at._shift,_length:0}),Xt==="top"||Xt==="left"?Lt._offset:Xt==="bottom"||Xt==="right"?Lt._offset+Lt._length:void 0},ae.shouldShowZeroLine=function(it,at,Lt){var xt=w.simpleMap(at.range,at.r2l);return xt[0]*xt[1]<=0&&at.zeroline&&(at.type==="linear"||at.type==="-")&&!(at.rangebreaks&&at.maskBreaks(0)===U)&&(Gt(at,0)||!function(Zt,Xt,Yt,Qt){var Pt=Yt._mainAxis;if(Pt){var tn=Zt._fullLayout,Kt=Xt._id.charAt(0),fn=ae.counterLetter(Xt._id),dn=Xt._offset+(Math.abs(Qt[0])1)for(Qt=1;Qt2*k}(_,m))return"date";var M=v.autotypenumbers!=="strict";return function(T,E){for(var C=T.length,L=u(C),D=0,k=0,I={},z=0;z2*D}(_,M)?"category":function(T,E){for(var C=T.length,L=0;L=2){var I,z,$="";if(k.length===2){for(I=0;I<2;I++)if(z=T(k[I])){$=A;break}}var Q=D("pattern",$);if(Q===A)for(I=0;I<2;I++)(z=T(k[I]))&&(C.bounds[I]=k[I]=z-1);if(Q)for(I=0;I<2;I++)switch(z=k[I],Q){case A:if(!c(z)||(z=+z)!==Math.floor(z)||z<0||z>=7)return void(C.enabled=!1);C.bounds[I]=k[I]=z;break;case x:if(!c(z)||(z=+z)<0||z>24)return void(C.enabled=!1);C.bounds[I]=k[I]=z}if(L.autorange===!1){var j=L.range;if(j[0]j[1])return void(C.enabled=!1)}else if(k[0]>j[0]&&k[1]p?1:-1:+(O.substr(1)||1)-+(w.substr(1)||1)},l.ref2id=function(O){return!!/^[xyz]/.test(O)&&O.split(" ")[0]},l.isLinked=function(O,w){return i(w,O._axisMatchGroups)||i(w,O._axisConstraintGroups)}},22416:function(d,l,n){var c=n(38116).isTypedArraySpec;d.exports=function(b,i,O,w){if(i.type==="category"){var y,p=b.categoryarray,a=Array.isArray(p)&&p.length>0||c(p);a&&(y="array");var u,h=O("categoryorder",y);h==="array"&&(u=O("categoryarray")),a||h!=="array"||(h=i.categoryorder="trace"),h==="trace"?i._initialCategories=[]:h==="array"?i._initialCategories=u.slice():(u=function(m,v){var _,S,A,x=v.dataAttr||m._id.charAt(0),R={};if(v.axData)_=v.axData;else for(_=[],S=0;ST?E.substr(T):C.substr(M))+L:E+C+x*R:L}function S(x,R){for(var M=R._size,T=M.h/M.w,E={},C=Object.keys(x),L=0;Lp*j)||W){for(M=0;M<$.length;M++)if(L=X[E=$[M]],D=(C=te[E]).constrain,L!==U||D==="domain")if(k=L/U,D==="range")w(C,k);else{var K=C._inputDomain,oe=(C.domain[1]-C.domain[0])/(K[1]-K[0]),q=(C.r2l(C.range[1])-C.r2l(C.range[0]))/(C.r2l(C._inputRange[1])-C.r2l(C._inputRange[0]));if((k/=oe)*q<1){C.domain=C._input.domain=K.slice(),w(C,k);continue}if(q<1&&(C.range=C._input.range=C._inputRange.slice(),k*=q),C.autorange){var Y=C.r2l(C.range[0]),ee=C.r2l(C.range[1]),me=(Y+ee)/2,he=me,se=me,ae=Math.abs(ee-me),ce=me-ae*k*1.0001,de=me+ae*k*1.0001,ve=b.makePadFn(I,C,0),ye=b.makePadFn(I,C,1);A(C,k);var _e,Se,Te=Math.abs(C._m),Pe=b.concatExtremes(x,C),Ie=Pe.min,ze=Pe.max;for(Se=0;Sece&&_ese&&(se=_e);k/=(se-he)/(2*ae),he=C.l2r(he),se=C.l2r(se),C.range=C._input.range=Y=0?Math.min(_e,.9):1/(1/Math.max(_e,-.3)+3.222))}function Y(_e,Se,Te,Pe,Ie){return _e.append("path").attr("class","zoombox").style({fill:Se>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(Te,Pe)).attr("d",Ie+"Z")}function ee(_e,Se,Te){return _e.append("path").attr("class","zoombox-corners").style({fill:u.background,stroke:u.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(Se,Te)).attr("d","M0,0Z")}function me(_e,Se,Te,Pe,Ie,ze){_e.attr("d",Pe+"M"+Te.l+","+Te.t+"v"+Te.h+"h"+Te.w+"v-"+Te.h+"h-"+Te.w+"Z"),he(_e,Se,Ie,ze)}function he(_e,Se,Te,Pe){Te||(_e.transition().style("fill",Pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Se.transition().style("opacity",1).duration(200))}function se(_e){c.select(_e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ae(_e){U&&_e.data&&_e._context.showTips&&(b.notifier(b._(_e,"Double-click to zoom back out"),"long"),U=!1)}function ce(_e){var Se=Math.floor(Math.min(_e.b-_e.t,_e.r-_e.l,j)/2);return"M"+(_e.l-3.5)+","+(_e.t-.5+Se)+"h3v"+-Se+"h"+Se+"v-3h-"+(Se+3)+"ZM"+(_e.r+3.5)+","+(_e.t-.5+Se)+"h-3v"+-Se+"h"+-Se+"v-3h"+(Se+3)+"ZM"+(_e.r+3.5)+","+(_e.b+.5-Se)+"h-3v"+Se+"h"+-Se+"v3h"+(Se+3)+"ZM"+(_e.l-3.5)+","+(_e.b+.5-Se)+"h3v"+Se+"h"+Se+"v3h-"+(Se+3)+"Z"}function de(_e,Se,Te,Pe,Ie){for(var ze,De,He,Ve,$e=!1,Oe={},ke={},Le=(Ie||{}).xaHash,We=(Ie||{}).yaHash,Ue=0;Ue=0)Wn._fullLayout._deactivateShape(Wn);else{var Kn=Wn._fullLayout.clickmode;if(se(Wn),Fn!==2||_t||En(),Ct)Kn.indexOf("select")>-1&&I(ir,Wn,Le,We,Se.id,xt),Kn.indexOf("event")>-1&&m.click(Wn,ir,Se.id);else if(Fn===1&&_t){var _r=De?$e:Ve,Ir=De==="s"||He==="w"?0:1,zr=_r._name+".range["+Ir+"]",Fr=function(Kr,Co){var so,So=Kr.range[Co],go=Math.abs(So-Kr.range[1-Co]);return Kr.type==="date"?So:Kr.type==="log"?(so=Math.ceil(Math.max(0,-Math.log(go)/Math.LN10))+3,i("."+so+"g")(Math.pow(10,So))):(so=Math.floor(Math.log(Math.abs(So))/Math.LN10)-Math.floor(Math.log(go)/Math.LN10)+4,i("."+String(so)+"g")(So))}(_r,Ir),Rr="left",$r="middle";if(_r.fixedrange)return;De?($r=De==="n"?"top":"bottom",_r.side==="right"&&(Rr="right")):He==="e"&&(Rr="right"),Wn._context.showAxisRangeEntryBoxes&&c.select(bn).call(a.makeEditable,{gd:Wn,immediate:!0,background:Wn._fullLayout.paper_bgcolor,text:String(Fr),fill:_r.tickfont?_r.tickfont.color:"#444",horizontalAlign:Rr,verticalAlign:$r}).on("edit",function(Kr){var Co=_r.d2r(Kr);Co!==void 0&&y.call("_guiRelayout",Wn,zr,Co)})}}}function Yt(Fn,ir){if(_e._transitioningWithDuration)return!1;var Wn=Math.max(0,Math.min(Xe,qt*Fn+mn)),Kn=Math.max(0,Math.min(tt,en*ir+vt)),_r=Math.abs(Wn-mn),Ir=Math.abs(Kn-vt);function zr(){Rt="",bt.r=bt.l,bt.t=bt.b,at.attr("d","M0,0Z")}if(bt.l=Math.min(mn,Wn),bt.r=Math.max(mn,Wn),bt.t=Math.min(vt,Kn),bt.b=Math.max(vt,Kn),Ee.isSubplotConstrained)_r>j||Ir>j?(Rt="xy",_r/Xe>Ir/tt?(Ir=_r*tt/Xe,vt>Kn?bt.t=vt-Ir:bt.b=vt+Ir):(_r=Ir*Xe/tt,mn>Wn?bt.l=mn-_r:bt.r=mn+_r),at.attr("d",ce(bt))):zr();else if(Ne.isSubplotConstrained)if(_r>j||Ir>j){Rt="xy";var Fr=Math.min(bt.l/Xe,(tt-bt.b)/tt),Rr=Math.max(bt.r/Xe,(tt-bt.t)/tt);bt.l=Fr*Xe,bt.r=Rr*Xe,bt.b=(1-Fr)*tt,bt.t=(1-Rr)*tt,at.attr("d",ce(bt))}else zr();else!nt||Ir0){var $r;if(Ne.isSubplotConstrained||!je&&nt.length===1){for($r=0;$r1&&(Kn.maxallowed!==void 0&&Ge===(Kn.range[0]1&&(_r.maxallowed!==void 0&&ht===(_r.range[0]<_r.range[1]?"n":"s")||_r.minallowed!==void 0&&ht===(_r.range[0]<_r.range[1]?"s":"n"))&&(So=1,li=0),so||So){so||(so=1),So||(So=1);var br=Kn._offset-go/so,dr=_r._offset-li/So;Wn.clipRect.call(h.setTranslate,go,li).call(h.setScale,so,So),Wn.plot.call(h.setTranslate,br,dr).call(h.setScale,1/so,1/So),so===Wn.xScaleFactor&&So===Wn.yScaleFactor||(h.setPointGroupScale(Wn.zoomScalePts,so,So),h.setTextPointsScale(Wn.zoomScaleTxt,so,So)),h.hideOutsideRangePoints(Wn.clipOnAxisFalseTraces,Wn),Wn.xScaleFactor=so,Wn.yScaleFactor=So}}}}function xr(Fn,ir,Wn){return Fn.fixedrange?0:Ge&&Ee.xaHash[Fn._id]?ir:ht&&(Ee.isSubplotConstrained?Ee.xaHash:Ee.yaHash)[Fn._id]?Wn:0}function Sr(Fn,ir){return ir?(Fn.range=Fn._r.slice(),z(Fn,ir),ar(Fn,ir)):0}function ar(Fn,ir,Wn){return Fn._length*(1-ir)*M[Wn||Fn.constraintoward||"middle"]}return De.length*He.length!=1&&ve(bn,function(Fn){if(_e._context._scrollZoom.cartesian||_e._fullLayout._enablescrollzoom){if(Zt(),_e._transitioningWithDuration)return Fn.preventDefault(),void Fn.stopPropagation();nn(),clearTimeout(Kt);var ir=-Fn.deltaY;if(isFinite(ir)||(ir=Fn.wheelDelta/10),isFinite(ir)){var Wn,Kn=Math.exp(-Math.min(Math.max(ir,-20),20)/200),_r=dn.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Ir=(Fn.clientX-_r.left)/_r.width,zr=(_r.bottom-Fn.clientY)/_r.height;if(Ge){for(He||(Ir=.5),Wn=0;WnC[1]-.000244140625&&(O.domain=a),b.noneOrAll(i.domain,O.domain,a),O.tickmode==="sync"&&(O.tickmode="auto")}return w("layer"),O}},42568:function(d,l,n){var c=n(85024);d.exports=function(b,i,O,w,y){y||(y={});var p=y.tickSuffixDflt,a=c(b);O("tickprefix")&&O("showtickprefix",a),O("ticksuffix",p)&&O("showticksuffix",a)}},96312:function(d,l,n){var c=n(76808);d.exports=function(b,i,O,w){var y=i._template||{},p=i.type||y.type||"-";O("minallowed"),O("maxallowed");var a,u=O("range");u||w.noInsiderange||p==="log"||(!(a=O("insiderange"))||a[0]!==null&&a[1]!==null||(i.insiderange=!1,a=void 0),a&&(u=O("range",a)));var h,m=i.getAutorangeDflt(u,w),v=O("autorange",m);!u||(u[0]!==null||u[1]!==null)&&(u[0]!==null&&u[1]!==null||v!=="reversed"&&v!==!0)&&(u[0]===null||v!=="min"&&v!=="max reversed")&&(u[1]===null||v!=="max"&&v!=="min reversed")||(u=void 0,delete i.range,i.autorange=!0,h=!0),h||(v=O("autorange",m=i.getAutorangeDflt(u,w))),v&&(c(O,v,u),p!=="linear"&&p!=="-"||O("rangemode")),i.cleanRange()}},21160:function(d,l,n){var c=n(84284).FROM_BL;d.exports=function(b,i,O){O===void 0&&(O=c[b.constraintoward||"center"]);var w=[b.r2l(b.range[0]),b.r2l(b.range[1])],y=w[0]+(w[1]-w[0])*O;b.range=b._input.range=[b.l2r(y+(w[0]-y)*i),b.l2r(y+(w[1]-y)*i)],b.setScale()}},78344:function(d,l,n){var c=n(33428),b=n(94336).E9,i=n(3400),O=i.numberFormat,w=n(38248),y=i.cleanNumber,p=i.ms2DateTime,a=i.dateTime2ms,u=i.ensureNumber,h=i.isArrayOrTypedArray,m=n(39032),v=m.FP_SAFE,_=m.BADNUM,S=m.LOG_CLIP,A=m.ONEWEEK,x=m.ONEDAY,R=m.ONEHOUR,M=m.ONEMIN,T=m.ONESEC,E=n(79811),C=n(33816),L=C.HOUR_PATTERN,D=C.WEEKDAY_PATTERN;function k(z){return Math.pow(10,z)}function I(z){return z!=null}d.exports=function(z,$){$=$||{};var Q=z._id||"x",j=Q.charAt(0);function U(de,ve){if(de>0)return Math.log(de)/Math.LN10;if(de<=0&&ve&&z.range&&z.range.length===2){var ye=z.range[0],_e=z.range[1];return .5*(ye+_e-2*S*Math.abs(ye-_e))}return _}function X(de,ve,ye,_e){if((_e||{}).msUTC&&w(de))return+de;var Se=a(de,ye||z.calendar);if(Se===_){if(!w(de))return _;de=+de;var Te=Math.floor(10*i.mod(de+.05,1)),Pe=Math.round(de-Te/10);Se=a(new Date(Pe))+Te/10}return Se}function te(de,ve,ye){return p(de,ve,ye||z.calendar)}function W(de){return z._categories[Math.round(de)]}function K(de){if(I(de)){if(z._categoriesMap===void 0&&(z._categoriesMap={}),z._categoriesMap[de]!==void 0)return z._categoriesMap[de];z._categories.push(typeof de=="number"?String(de):de);var ve=z._categories.length-1;return z._categoriesMap[de]=ve,ve}return _}function oe(de){if(z._categoriesMap)return z._categoriesMap[de]}function q(de){var ve=oe(de);return ve!==void 0?ve:w(de)?+de:void 0}function Y(de){return w(de)?+de:oe(de)}function ee(de,ve,ye){return c.round(ye+ve*de,2)}function me(de,ve,ye){return(de-ye)/ve}var he=function(de){return w(de)?ee(de,z._m,z._b):_},se=function(de){return me(de,z._m,z._b)};if(z.rangebreaks){var ae=j==="y";he=function(de){if(!w(de))return _;var ve=z._rangebreaks.length;if(!ve)return ee(de,z._m,z._b);var ye=ae;z.range[0]>z.range[1]&&(ye=!ye);for(var _e=ye?-1:1,Se=_e*de,Te=0,Pe=0;Peze)){Te=Se<(Ie+ze)/2?Pe:Pe+1;break}Te=Pe+1}var De=z._B[Te]||0;return isFinite(De)?ee(de,z._m2,De):0},se=function(de){var ve=z._rangebreaks.length;if(!ve)return me(de,z._m,z._b);for(var ye=0,_e=0;_ez._rangebreaks[_e].pmax&&(ye=_e+1);return me(de,z._m2,z._B[ye])}}z.c2l=z.type==="log"?U:u,z.l2c=z.type==="log"?k:u,z.l2p=he,z.p2l=se,z.c2p=z.type==="log"?function(de,ve){return he(U(de,ve))}:he,z.p2c=z.type==="log"?function(de){return k(se(de))}:se,["linear","-"].indexOf(z.type)!==-1?(z.d2r=z.r2d=z.d2c=z.r2c=z.d2l=z.r2l=y,z.c2d=z.c2r=z.l2d=z.l2r=u,z.d2p=z.r2p=function(de){return z.l2p(y(de))},z.p2d=z.p2r=se,z.cleanPos=u):z.type==="log"?(z.d2r=z.d2l=function(de,ve){return U(y(de),ve)},z.r2d=z.r2c=function(de){return k(y(de))},z.d2c=z.r2l=y,z.c2d=z.l2r=u,z.c2r=U,z.l2d=k,z.d2p=function(de,ve){return z.l2p(z.d2r(de,ve))},z.p2d=function(de){return k(se(de))},z.r2p=function(de){return z.l2p(y(de))},z.p2r=se,z.cleanPos=u):z.type==="date"?(z.d2r=z.r2d=i.identity,z.d2c=z.r2c=z.d2l=z.r2l=X,z.c2d=z.c2r=z.l2d=z.l2r=te,z.d2p=z.r2p=function(de,ve,ye){return z.l2p(X(de,0,ye))},z.p2d=z.p2r=function(de,ve,ye){return te(se(de),ve,ye)},z.cleanPos=function(de){return i.cleanDate(de,_,z.calendar)}):z.type==="category"?(z.d2c=z.d2l=K,z.r2d=z.c2d=z.l2d=W,z.d2r=z.d2l_noadd=q,z.r2c=function(de){var ve=Y(de);return ve!==void 0?ve:z.fraction2r(.5)},z.l2r=z.c2r=u,z.r2l=Y,z.d2p=function(de){return z.l2p(z.r2c(de))},z.p2d=function(de){return W(se(de))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(de){return typeof de=="string"&&de!==""?de:u(de)}):z.type==="multicategory"&&(z.r2d=z.c2d=z.l2d=W,z.d2r=z.d2l_noadd=q,z.r2c=function(de){var ve=q(de);return ve!==void 0?ve:z.fraction2r(.5)},z.r2c_just_indices=oe,z.l2r=z.c2r=u,z.r2l=q,z.d2p=function(de){return z.l2p(z.r2c(de))},z.p2d=function(de){return W(se(de))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(de){return Array.isArray(de)||typeof de=="string"&&de!==""?de:u(de)},z.setupMultiCategory=function(de){var ve,ye,_e=z._traceIndices,Se=z._matchGroup;if(Se&&z._categories.length===0){for(var Te in Se)if(Te!==Q){var Pe=$[E.id2name(Te)];_e=_e.concat(Pe._traceIndices)}}var Ie=[[0,{}],[0,{}]],ze=[];for(ve=0;ve<_e.length;ve++){var De=de[_e[ve]];if(j in De){var He=De[j],Ve=De._length||i.minRowLength(He);if(h(He[0])&&h(He[1]))for(ye=0;yePe[1]&&(_e[Te?0:1]=ye),_e[0]===_e[1]){var Ie=z.l2r(ve),ze=z.l2r(ye);if(ve!==void 0){var De=Ie+1;ye!==void 0&&(De=Math.min(De,ze)),_e[Te?1:0]=De}if(ye!==void 0){var He=ze+1;ve!==void 0&&(He=Math.max(He,Ie)),_e[Te?0:1]=He}}}},z.cleanRange=function(de,ve){z._cleanRange(de,ve),z.limitRange(de)},z._cleanRange=function(de,ve){ve||(ve={}),de||(de="range");var ye,_e,Se=i.nestedProperty(z,de).get();if(_e=(_e=z.type==="date"?i.dfltRange(z.calendar):j==="y"?C.DFLTRANGEY:z._name==="realaxis"?[0,1]:ve.dfltRange||C.DFLTRANGEX).slice(),z.rangemode!=="tozero"&&z.rangemode!=="nonnegative"||(_e[0]=0),Se&&Se.length===2){var Te=Se[0]===null,Pe=Se[1]===null;for(z.type!=="date"||z.autorange||(Se[0]=i.cleanDate(Se[0],_,z.calendar),Se[1]=i.cleanDate(Se[1],_,z.calendar)),ye=0;ye<2;ye++)if(z.type==="date"){if(!i.isDateTime(Se[ye],z.calendar)){z[de]=_e;break}if(z.r2l(Se[0])===z.r2l(Se[1])){var Ie=i.constrain(z.r2l(Se[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);Se[0]=z.l2r(Ie-1e3),Se[1]=z.l2r(Ie+1e3);break}}else{if(!w(Se[ye])){if(Te||Pe||!w(Se[1-ye])){z[de]=_e;break}Se[ye]=Se[1-ye]*(ye?10:.1)}if(Se[ye]<-v?Se[ye]=-v:Se[ye]>v&&(Se[ye]=v),Se[0]===Se[1]){var ze=Math.max(1,Math.abs(1e-6*Se[0]));Se[0]-=ze,Se[1]+=ze}}}else i.nestedProperty(z,de).set(_e)},z.setScale=function(de){var ve=$._size;if(z.overlaying){var ye=E.getFromId({_fullLayout:$},z.overlaying);z.domain=ye.domain}var _e=de&&z._r?"_r":"range",Se=z.calendar;z.cleanRange(_e);var Te,Pe,Ie=z.r2l(z[_e][0],Se),ze=z.r2l(z[_e][1],Se),De=j==="y";if(De?(z._offset=ve.t+(1-z.domain[1])*ve.h,z._length=ve.h*(z.domain[1]-z.domain[0]),z._m=z._length/(Ie-ze),z._b=-z._m*ze):(z._offset=ve.l+z.domain[0]*ve.w,z._length=ve.w*(z.domain[1]-z.domain[0]),z._m=z._length/(ze-Ie),z._b=-z._m*Ie),z._rangebreaks=[],z._lBreaks=0,z._m2=0,z._B=[],z.rangebreaks&&(z._rangebreaks=z.locateBreaks(Math.min(Ie,ze),Math.max(Ie,ze)),z._rangebreaks.length)){for(Te=0;Teze&&(He=!He),He&&z._rangebreaks.reverse();var Ve=He?-1:1;for(z._m2=Ve*z._length/(Math.abs(ze-Ie)-z._lBreaks),z._B.push(-z._m2*(De?ze:Ie)),Te=0;Te_e&&(_e+=7,Se_e&&(_e+=24,Se=ye&&Se<_e)return _}else for(var He=Pe._cachedValues[Ie],Ve=0;Ve=ye&&de<_e)return _}}return de},z.locateBreaks=function(de,ve){var ye,_e,Se,Te,Pe=[];if(!z.rangebreaks)return Pe;var Ie=z.rangebreaks.slice().sort(function(Ze,Xe){return Ze.pattern===D&&Xe.pattern===L?-1:Xe.pattern===D&&Ze.pattern===L?1:0}),ze=function(Ze,Xe){if((Ze=i.constrain(Ze,de,ve))!==(Xe=i.constrain(Xe,de,ve))){for(var tt=!0,Ee=0;Ee=Ne.min&&(ZeNe.max&&(Ne.max=Xe),tt=!1)}tt&&Pe.push({min:Ze,max:Xe})}};for(ye=0;yea.duration?(function(){for(var L={},D=0;D rect").call(O.setTranslate,0,0).call(O.setScale,1,1),M.plot.call(O.setTranslate,T._offset,E._offset).call(O.setScale,1,1);var C=M.plot.selectAll(".scatterlayer .trace");C.selectAll(".point").call(O.setPointGroupScale,1,1),C.selectAll(".textpoint").call(O.setTextPointsScale,1,1),C.call(O.hideOutsideRangePoints,M)}function R(M,T){var E=M.plotinfo,C=E.xaxis,L=E.yaxis,D=C._length,k=L._length,I=!!M.xr1,z=!!M.yr1,$=[];if(I){var Q=i.simpleMap(M.xr0,C.r2l),j=i.simpleMap(M.xr1,C.r2l),U=Q[1]-Q[0],X=j[1]-j[0];$[0]=(Q[0]*(1-T)+T*j[0]-Q[0])/(Q[1]-Q[0])*D,$[2]=D*(1-T+T*X/U),C.range[0]=C.l2r(Q[0]*(1-T)+T*j[0]),C.range[1]=C.l2r(Q[1]*(1-T)+T*j[1])}else $[0]=0,$[2]=D;if(z){var te=i.simpleMap(M.yr0,L.r2l),W=i.simpleMap(M.yr1,L.r2l),K=te[1]-te[0],oe=W[1]-W[0];$[1]=(te[1]*(1-T)+T*W[1]-te[1])/(te[0]-te[1])*k,$[3]=k*(1-T+T*oe/K),L.range[0]=C.l2r(te[0]*(1-T)+T*W[0]),L.range[1]=L.l2r(te[1]*(1-T)+T*W[1])}else $[1]=0,$[3]=k;w.drawOne(y,C,{skipTitle:!0}),w.drawOne(y,L,{skipTitle:!0}),w.redrawComponents(y,[C._id,L._id]);var q=I?D/$[2]:1,Y=z?k/$[3]:1,ee=I?$[0]:0,me=z?$[1]:0,he=I?$[0]/$[2]*D:0,se=z?$[1]/$[3]*k:0,ae=C._offset-he,ce=L._offset-se;E.clipRect.call(O.setTranslate,ee,me).call(O.setScale,1/q,1/Y),E.plot.call(O.setTranslate,ae,ce).call(O.setScale,q,Y),O.setPointGroupScale(E.zoomScalePts,1/q,1/Y),O.setTextPointsScale(E.zoomScaleTxt,1/q,1/Y)}w.redrawComponents(y)}},14944:function(d,l,n){var c=n(24040).traceIs,b=n(52976);function i(w){return{v:"x",h:"y"}[w.orientation||"v"]}function O(w,y){var p=i(w),a=c(w,"box-violin"),u=c(w._fullInput||{},"candlestick");return a&&!u&&y===p&&w[p]===void 0&&w[p+"0"]===void 0}d.exports=function(w,y,p,a){p("autotypenumbers",a.autotypenumbersDflt),p("type",(a.splomStash||{}).type)==="-"&&(function(u,h){if(u.type==="-"){var m,v=u._id,_=v.charAt(0);v.indexOf("scene")!==-1&&(v=_);var S=function(L,D,k){for(var I=0;I0&&(z["_"+k+"axes"]||{})[D]||(z[k+"axis"]||k)===D&&(O(z,k)||(z[k]||[]).length||z[k+"0"]))return z}}(h,v,_);if(S)if(S.type!=="histogram"||_!=={v:"y",h:"x"}[S.orientation||"v"]){var A=_+"calendar",x=S[A],R={noMultiCategory:!c(S,"cartesian")||c(S,"noMultiCategory")};if(S.type==="box"&&S._hasPreCompStats&&_==={h:"x",v:"y"}[S.orientation||"v"]&&(R.noMultiCategory=!0),R.autotypenumbers=u.autotypenumbers,O(S,_)){var M=i(S),T=[];for(m=0;m0?".":"")+m;b.isPlainObject(v)?y(v,a,_,h+1):a(_,m,v)}})}l.manageCommandObserver=function(p,a,u,h){var m={},v=!0;a&&a._commandObserver&&(m=a._commandObserver),m.cache||(m.cache={}),m.lookupTable={};var _=l.hasSimpleAPICommandBindings(p,u,m.lookupTable);if(a&&a._commandObserver){if(_)return m;if(a._commandObserver.remove)return a._commandObserver.remove(),a._commandObserver=null,m}if(_){i(p,_,m.cache),m.check=function(){if(v){var x=i(p,_,m.cache);return x.changed&&h&&m.lookupTable[x.value]!==void 0&&(m.disable(),Promise.resolve(h({value:x.value,type:_.type,prop:_.prop,traces:_.traces,index:m.lookupTable[x.value]})).then(m.enable,m.enable)),x.changed}};for(var S=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],A=0;A0&&X<0&&(X+=360);var K=(X-U)/4;return{type:"Polygon",coordinates:[[[U,te],[U,W],[U+K,W],[U+2*K,W],[U+3*K,W],[X,W],[X,te],[X-K,te],[X-2*K,te],[X-3*K,te],[U,te]]]}}d.exports=function($){return new k($)},I.plot=function($,Q,j,U){var X=this;if(U)return X.update($,Q,!0);X._geoCalcData=$,X._fullLayout=Q;var te=Q[this.id],W=[],K=!1;for(var oe in E.layerNameToAdjective)if(oe!=="frame"&&te["show"+oe]){K=!0;break}for(var q=!1,Y=0;Y<$.length;Y++){var ee=$[0][0].trace;ee._geo=X,ee.locationmode&&(K=!0);var me=ee.marker;if(me){var he=me.angle,se=me.angleref;(he||se==="north"||se==="previous")&&(q=!0)}}if(this._hasMarkerAngles=q,K){var ae=L.getTopojsonName(te);X.topojson!==null&&ae===X.topojsonName||(X.topojsonName=ae,PlotlyGeoAssets.topojson[X.topojsonName]===void 0&&W.push(X.fetchTopojson()))}W=W.concat(C.fetchTraceGeoData($)),j.push(new Promise(function(ce,de){Promise.all(W).then(function(){X.topojson=PlotlyGeoAssets.topojson[X.topojsonName],X.update($,Q),ce()}).catch(de)}))},I.fetchTopojson=function(){var $=this,Q=L.getTopojsonPath($.topojsonURL,$.topojsonName);return new Promise(function(j,U){c.json(Q,function(X,te){if(X)return X.status===404?U(new Error(["plotly.js could not find topojson file at",Q+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):U(new Error(["unexpected error while fetching topojson file at",Q].join(" ")));PlotlyGeoAssets.topojson[$.topojsonName]=te,j()})})},I.update=function($,Q,j){var U=Q[this.id];this.hasChoropleth=!1;for(var X=0;X<$.length;X++){var te=$[X],W=te[0].trace;W.type==="choropleth"&&(this.hasChoropleth=!0),W.visible===!0&&W._length>0&&W._module.calcGeoJSON(te,Q)}if(!j){if(this.updateProjection($,Q))return;this.viewInitial&&this.scope===U.scope||this.saveViewInitial(U)}this.scope=U.scope,this.updateBaseLayers(Q,U),this.updateDims(Q,U),this.updateFx(Q,U),v.generalUpdatePerTraceModule(this.graphDiv,this,$,U);var K=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=K.selectAll(".point"),this.dataPoints.text=K.selectAll("text"),this.dataPaths.line=K.selectAll(".js-line");var oe=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=oe.selectAll("path"),this._render()},I.updateProjection=function($,Q){var j=this.graphDiv,U=Q[this.id],X=Q._size,te=U.domain,W=U.projection,K=U.lonaxis,oe=U.lataxis,q=K._ax,Y=oe._ax,ee=this.projection=function(ke){var Le=ke.projection,We=Le.type,Ue=E.projNames[We];Ue="geo"+p.titleCase(Ue);for(var Ze=(b[Ue]||w[Ue])(),Xe=ke._isSatellite?180*Math.acos(1/Le.distance)/Math.PI:ke._isClipped?E.lonaxisSpan[We]/2:null,tt=["center","rotate","parallels","clipExtent"],Ee=function(nt){return nt?Ze:[]},Ne=0;NeXe*Math.PI/180}return!1},Ze.getPath=function(){return i().projection(Ze)},Ze.getBounds=function(nt){return Ze.getPath().bounds(nt)},Ze.precision(E.precision),ke._isSatellite&&Ze.tilt(Le.tilt).distance(Le.distance),Xe&&Ze.clipAngle(Xe-E.clipPad),Ze}(U),me=[[X.l+X.w*te.x[0],X.t+X.h*(1-te.y[1])],[X.l+X.w*te.x[1],X.t+X.h*(1-te.y[0])]],he=U.center||{},se=W.rotation||{},ae=K.range||[],ce=oe.range||[];if(U.fitbounds){q._length=me[1][0]-me[0][0],Y._length=me[1][1]-me[0][1],q.range=S(j,q),Y.range=S(j,Y);var de=(q.range[0]+q.range[1])/2,ve=(Y.range[0]+Y.range[1])/2;if(U._isScoped)he={lon:de,lat:ve};else if(U._isClipped){he={lon:de,lat:ve},se={lon:de,lat:ve,roll:se.roll};var ye=W.type,_e=E.lonaxisSpan[ye]/2||180,Se=E.lataxisSpan[ye]/2||90;ae=[de-_e,de+_e],ce=[ve-Se,ve+Se]}else he={lon:de,lat:ve},se={lon:de,lat:se.lat,roll:se.roll}}ee.center([he.lon-se.lon,he.lat-se.lat]).rotate([-se.lon,-se.lat,se.roll]).parallels(W.parallels);var Te=z(ae,ce);ee.fitExtent(me,Te);var Pe=this.bounds=ee.getBounds(Te),Ie=this.fitScale=ee.scale(),ze=ee.translate();if(U.fitbounds){var De=ee.getBounds(z(q.range,Y.range)),He=Math.min((Pe[1][0]-Pe[0][0])/(De[1][0]-De[0][0]),(Pe[1][1]-Pe[0][1])/(De[1][1]-De[0][1]));isFinite(He)?ee.scale(He*Ie):p.warn("Something went wrong during"+this.id+"fitbounds computations.")}else ee.scale(W.scale*Ie);var Ve=this.midPt=[(Pe[0][0]+Pe[1][0])/2,(Pe[0][1]+Pe[1][1])/2];if(ee.translate([ze[0]+(Ve[0]-ze[0]),ze[1]+(Ve[1]-ze[1])]).clipExtent(Pe),U._isAlbersUsa){var $e=ee([he.lon,he.lat]),Oe=ee.translate();ee.translate([Oe[0]-($e[0]-Oe[0]),Oe[1]-($e[1]-Oe[1])])}},I.updateBaseLayers=function($,Q){var j=this,U=j.topojson,X=j.layers,te=j.basePaths;function W(ee){return ee==="lonaxis"||ee==="lataxis"}function K(ee){return!!E.lineLayers[ee]}function oe(ee){return!!E.fillLayers[ee]}var q=(this.hasChoropleth?E.layersForChoropleth:E.layers).filter(function(ee){return K(ee)||oe(ee)?Q["show"+ee]:!W(ee)||Q[ee].showgrid}),Y=j.framework.selectAll(".layer").data(q,String);Y.exit().each(function(ee){delete X[ee],delete te[ee],c.select(this).remove()}),Y.enter().append("g").attr("class",function(ee){return"layer "+ee}).each(function(ee){var me=X[ee]=c.select(this);ee==="bg"?j.bgRect=me.append("rect").style("pointer-events","all"):W(ee)?te[ee]=me.append("path").style("fill","none"):ee==="backplot"?me.append("g").classed("choroplethlayer",!0):ee==="frontplot"?me.append("g").classed("scatterlayer",!0):K(ee)?te[ee]=me.append("path").style("fill","none").style("stroke-miterlimit",2):oe(ee)&&(te[ee]=me.append("path").style("stroke","none"))}),Y.order(),Y.each(function(ee){var me=te[ee],he=E.layerNameToAdjective[ee];ee==="frame"?me.datum(E.sphereSVG):K(ee)||oe(ee)?me.datum(D(U,U.objects[ee])):W(ee)&&me.datum(function(se,ae,ce){var de,ve,ye,_e=ae[se],Se=E.scopeDefaults[ae.scope];se==="lonaxis"?(de=Se.lonaxisRange,ve=Se.lataxisRange,ye=function(Oe,ke){return[Oe,ke]}):se==="lataxis"&&(de=Se.lataxisRange,ve=Se.lonaxisRange,ye=function(Oe,ke){return[ke,Oe]});var Te={type:"linear",range:[de[0],de[1]-1e-6],tick0:_e.tick0,dtick:_e.dtick};_.setConvert(Te,ce);var Pe=_.calcTicks(Te);ae.isScoped||se!=="lonaxis"||Pe.pop();for(var Ie=Pe.length,ze=new Array(Ie),De=0;De-1&&M(c.event,U,[j.xaxis],[j.yaxis],j.id,K),W.indexOf("event")>-1&&m.click(U,c.event))})}function oe(q){return j.projection.invert([q[0]+j.xaxis._offset,q[1]+j.yaxis._offset])}},I.makeFramework=function(){var $=this,Q=$.graphDiv,j=Q._fullLayout,U="clip"+j._uid+$.id;$.clipDef=j._clips.append("clipPath").attr("id",U),$.clipRect=$.clipDef.append("rect"),$.framework=c.select($.container).append("g").attr("class","geo "+$.id).call(h.setClipUrl,U,Q),$.project=function(X){var te=$.projection(X);return te?[te[0]-$.xaxis._offset,te[1]-$.yaxis._offset]:[null,null]},$.xaxis={_id:"x",c2p:function(X){return $.project(X)[0]}},$.yaxis={_id:"y",c2p:function(X){return $.project(X)[1]}},$.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},_.setConvert($.mockAxis,j)},I.saveViewInitial=function($){var Q,j=$.center||{},U=$.projection,X=U.rotation||{};this.viewInitial={fitbounds:$.fitbounds,"projection.scale":U.scale},Q=$._isScoped?{"center.lon":j.lon,"center.lat":j.lat}:$._isClipped?{"projection.rotation.lon":X.lon,"projection.rotation.lat":X.lat}:{"center.lon":j.lon,"center.lat":j.lat,"projection.rotation.lon":X.lon},p.extendFlat(this.viewInitial,Q)},I.render=function($){this._hasMarkerAngles&&$?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},I._render=function(){var $,Q=this.projection,j=Q.getPath();function U(te){var W=Q(te.lonlat);return W?a(W[0],W[1]):null}function X(te){return Q.isLonLatOverEdges(te.lonlat)?"none":null}for($ in this.basePaths)this.basePaths[$].attr("d",j);for($ in this.dataPaths)this.dataPaths[$].attr("d",function(te){return j(te.geojson)});for($ in this.dataPoints)this.dataPoints[$].attr("display",X).attr("transform",U)}},10816:function(d,l,n){var c=n(84888).KY,b=n(3400).counterRegex,i=n(43520),O="geo",w=b(O),y={};y[O]={valType:"subplotid",dflt:O,editType:"calc"},d.exports={attr:O,name:O,idRoot:O,idRegex:w,attrRegex:w,attributes:y,layoutAttributes:n(40384),supplyLayoutDefaults:n(86920),plot:function(p){for(var a=p._fullLayout,u=p.calcdata,h=a._subplots[O],m=0;m0&&oe<0&&(oe+=360);var q,Y,ee,me=(K+oe)/2;if(!R){var he=M?A.projRotate:[me,0,0];q=h("projection.rotation.lon",he[0]),h("projection.rotation.lat",he[1]),h("projection.rotation.roll",he[2]),h("showcoastlines",!M&&D)&&(h("coastlinecolor"),h("coastlinewidth")),h("showocean",!!D&&void 0)&&h("oceancolor")}R?(Y=-96.6,ee=38.7):(Y=M?me:q,ee=(W[0]+W[1])/2),h("center.lon",Y),h("center.lat",ee),T&&(h("projection.tilt"),h("projection.distance")),E&&h("projection.parallels",A.projParallels||[0,60]),h("projection.scale"),h("showland",!!D&&void 0)&&h("landcolor"),h("showlakes",!!D&&void 0)&&h("lakecolor"),h("showrivers",!!D&&void 0)&&(h("rivercolor"),h("riverwidth")),h("showcountries",M&&S!=="usa"&&D)&&(h("countrycolor"),h("countrywidth")),(S==="usa"||S==="north america"&&_===50)&&(h("showsubunits",D),h("subunitcolor"),h("subunitwidth")),M||h("showframe",D)&&(h("framecolor"),h("framewidth")),h("bgcolor"),h("fitbounds")&&(delete u.projection.scale,M?(delete u.center.lon,delete u.center.lat):C?(delete u.center.lon,delete u.center.lat,delete u.projection.rotation.lon,delete u.projection.rotation.lat,delete u.lonaxis.range,delete u.lataxis.range):(delete u.center.lon,delete u.center.lat,delete u.projection.rotation.lon))}d.exports=function(a,u,h){b(a,u,h,{type:"geo",attributes:w,handleDefaults:p,fullData:h,partition:"y"})}},79248:function(d,l,n){var c=n(33428),b=n(3400),i=n(24040),O=Math.PI/180,w=180/Math.PI,y={cursor:"pointer"},p={cursor:"auto"};function a(M,T){return c.behavior.zoom().translate(T.translate()).scale(T.scale())}function u(M,T,E){var C=M.id,L=M.graphDiv,D=L.layout,k=D[C],I=L._fullLayout,z=I[C],$={},Q={};function j(U,X){$[C+"."+U]=b.nestedProperty(k,U).get(),i.call("_storeDirectGUIEdit",D,I._preGUI,$);var te=b.nestedProperty(z,U);te.get()!==X&&(te.set(X),b.nestedProperty(k,U).set(X),Q[C+"."+U]=X)}E(j),j("projection.scale",T.scale()/M.fitScale),j("fitbounds",!1),L.emit("plotly_relayout",Q)}function h(M,T){var E=a(0,T);function C(L){var D=T.invert(M.midPt);L("center.lon",D[0]),L("center.lat",D[1])}return E.on("zoomstart",function(){c.select(this).style(y)}).on("zoom",function(){T.scale(c.event.scale).translate(c.event.translate),M.render(!0);var L=T.invert(M.midPt);M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.center.lon":L[0],"geo.center.lat":L[1]})}).on("zoomend",function(){c.select(this).style(p),u(M,T,C)}),E}function m(M,T){var E,C,L,D,k,I,z,$,Q,j=a(0,T);function U(te){return T.invert(te)}function X(te){var W=T.rotate(),K=T.invert(M.midPt);te("projection.rotation.lon",-W[0]),te("center.lon",K[0]),te("center.lat",K[1])}return j.on("zoomstart",function(){c.select(this).style(y),E=c.mouse(this),C=T.rotate(),L=T.translate(),D=C,k=U(E)}).on("zoom",function(){if(I=c.mouse(this),function(K){var oe=U(K);if(!oe)return!0;var q=T(oe);return Math.abs(q[0]-K[0])>2||Math.abs(q[1]-K[1])>2}(E))return j.scale(T.scale()),void j.translate(T.translate());T.scale(c.event.scale),T.translate([L[0],c.event.translate[1]]),k?U(I)&&($=U(I),z=[D[0]+($[0]-k[0]),C[1],C[2]],T.rotate(z),D=z):k=U(E=I),Q=!0,M.render(!0);var te=T.rotate(),W=T.invert(M.midPt);M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.center.lon":W[0],"geo.center.lat":W[1],"geo.projection.rotation.lon":-te[0]})}).on("zoomend",function(){c.select(this).style(p),Q&&u(M,T,X)}),j}function v(M,T){var E;T.rotate(),T.scale();var C=a(0,T),L=function(z){for(var $=0,Q=arguments.length,j=[];++$Ge?(Ze=(je>0?90:-90)-ot,Ue=0):(Ze=Math.asin(je/Ge)*w-ot,Ue=Math.sqrt(Ge*Ge-je*je));var ht=180-Ze-2*ot,pt=(Math.atan2(nt,Ne)-Math.atan2(Ee,Ue))*w,wt=(Math.atan2(nt,Ne)-Math.atan2(Ee,-Ue))*w;return S(Le[0],Le[1],Ze,pt)<=S(Le[0],Le[1],ht,wt)?[Ze,pt,Le[2]]:[ht,wt,Le[2]]}(Ve,E,me);isFinite($e[0])&&isFinite($e[1])&&isFinite($e[2])||($e=me),T.rotate($e),me=$e}}else E=_(T,Y=ze);L.of(this,arguments)({type:"zoom"})}),q=L.of(this,arguments),D++||q({type:"zoomstart"})}).on("zoomend",function(){var z;c.select(this).style(p),k.call(C,"zoom",null),z=L.of(this,arguments),--D||z({type:"zoomend"}),u(M,T,I)}).on("zoom.redraw",function(){M.render(!0);var z=T.rotate();M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.projection.rotation.lon":-z[0],"geo.projection.rotation.lat":-z[1]})}),c.rebind(C,L,"on")}function _(M,T){var E=M.invert(T);return E&&isFinite(E[0])&&isFinite(E[1])&&function(C){var L=C[0]*O,D=C[1]*O,k=Math.cos(D);return[k*Math.cos(L),k*Math.sin(L),Math.sin(D)]}(E)}function S(M,T,E,C){var L=A(E-M),D=A(C-T);return Math.sqrt(L*L+D*D)}function A(M){return(M%360+540)%360-180}function x(M,T,E){var C=E*O,L=M.slice(),D=T===0?1:0,k=T===2?1:2,I=Math.cos(C),z=Math.sin(C);return L[D]=M[D]*I-M[k]*z,L[k]=M[k]*I+M[D]*z,L}function R(M,T){for(var E=0,C=0,L=M.length;CMath.abs(R)?(h.boxEnd[1]=h.boxStart[1]+Math.abs(x)*j*(R>=0?1:-1),h.boxEnd[1]M[3]&&(h.boxEnd[1]=M[3],h.boxEnd[0]=h.boxStart[0]+(M[3]-h.boxStart[1])/Math.abs(j))):(h.boxEnd[0]=h.boxStart[0]+Math.abs(R)/j*(x>=0?1:-1),h.boxEnd[0]M[2]&&(h.boxEnd[0]=M[2],h.boxEnd[1]=h.boxStart[1]+(M[2]-h.boxStart[0])*Math.abs(j)))}}else h.boxEnabled?(x=h.boxStart[0]!==h.boxEnd[0],R=h.boxStart[1]!==h.boxEnd[1],x||R?(x&&(k(0,h.boxStart[0],h.boxEnd[0]),p.xaxis.autorange=!1),R&&(k(1,h.boxStart[1],h.boxEnd[1]),p.yaxis.autorange=!1),p.relayoutCallback()):p.glplot.setDirty(),h.boxEnabled=!1,h.boxInited=!1):h.boxInited&&(h.boxInited=!1);break;case"pan":h.boxEnabled=!1,h.boxInited=!1,_?(h.panning||(h.dragStart[0]=S,h.dragStart[1]=A),Math.abs(h.dragStart[0]-S).999&&(C="turntable"):C="turntable")}else C="turntable";v("dragmode",C),v("hovermode",_.getDfltFromLayout("hovermode"))}d.exports=function(h,m,v){var _=m._basePlotModules.length>1;O(h,m,v,{type:a,attributes:y,handleDefaults:u,fullLayout:m,font:m.font,fullData:v,getDfltFromLayout:function(S){if(!_)return c.validate(h[S],y[S])?h[S]:void 0},autotypenumbersDflt:m.autotypenumbers,paper_bgcolor:m.paper_bgcolor,calendar:m.calendar})}},346:function(d,l,n){var c=n(86140),b=n(86968).u,i=n(92880).extendFlat,O=n(3400).counterRegex;function w(y,p,a){return{x:{valType:"number",dflt:y,editType:"camera"},y:{valType:"number",dflt:p,editType:"camera"},z:{valType:"number",dflt:a,editType:"camera"},editType:"camera"}}d.exports={_arrayAttrRegexps:[O("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:i(w(0,0,1),{}),center:i(w(0,0,0),{}),eye:i(w(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:b({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:c,yaxis:c,zaxis:c,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(d,l,n){var c=n(43080),b=["xaxis","yaxis","zaxis"];function i(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}i.prototype.merge=function(O){for(var w=0;w<3;++w){var y=O[b[w]];y.visible?(this.enabled[w]=y.showspikes,this.colors[w]=c(y.spikecolor),this.drawSides[w]=y.spikesides,this.lineWidth[w]=y.spikethickness):(this.enabled[w]=!1,this.drawSides[w]=!1)}},d.exports=function(O){var w=new i;return w.merge(O),w}},87152:function(d,l,n){d.exports=function(w){for(var y=w.axesOptions,p=w.glplot.axesPixels,a=w.fullSceneLayout,u=[[],[],[]],h=0;h<3;++h){var m=a[i[h]];if(m._length=(p[h].hi-p[h].lo)*p[h].pixelsPerDataUnit/w.dataScale[h],Math.abs(m._length)===1/0||isNaN(m._length))u[h]=[];else{m._input_range=m.range.slice(),m.range[0]=p[h].lo/w.dataScale[h],m.range[1]=p[h].hi/w.dataScale[h],m._m=1/(w.dataScale[h]*p[h].pixelsPerDataUnit),m.range[0]===m.range[1]&&(m.range[0]-=1,m.range[1]+=1);var v=m.tickmode;if(m.tickmode==="auto"){m.tickmode="linear";var _=m.nticks||b.constrain(m._length/40,4,9);c.autoTicks(m,Math.abs(m.range[1]-m.range[0])/_)}for(var S=c.calcTicks(m,{msUTC:!0}),A=0;A/g," "));u[h]=S,m.tickmode=v}}for(y.ticks=u,h=0;h<3;++h)for(O[h]=.5*(w.glplot.bounds[0][h]+w.glplot.bounds[1][h]),A=0;A<2;++A)y.bounds[A][h]=w.glplot.bounds[A][h];w.contourLevels=function(x){for(var R=new Array(3),M=0;M<3;++M){for(var T=x[M],E=new Array(T.length),C=0;CX.deltaY?1.1:.9090909090909091,W=z.glplot.getAspectratio();z.glplot.setAspectratio({x:te*W.x,y:te*W.y,z:te*W.z})}U(z)}},!!p&&{passive:!1}),z.glplot.canvas.addEventListener("mousemove",function(){if(z.fullSceneLayout.dragmode!==!1&&z.camera.mouseListener.buttons!==0){var X=j();z.graphDiv.emit("plotly_relayouting",X)}}),z.staticMode||z.glplot.canvas.addEventListener("webglcontextlost",function(X){$&&$.emit&&$.emit("plotly_webglcontextlost",{event:X,layer:z.id})},!1)),z.glplot.oncontextloss=function(){z.recoverContext()},z.glplot.onrender=function(){z.render()},!0},L.render=function(){var z,$=this,Q=$.graphDiv,j=$.svgContainer,U=$.container.getBoundingClientRect();Q._fullLayout._calcInverseTransform(Q);var X=Q._fullLayout._invScaleX,te=Q._fullLayout._invScaleY,W=U.width*X,K=U.height*te;j.setAttributeNS(null,"viewBox","0 0 "+W+" "+K),j.setAttributeNS(null,"width",W),j.setAttributeNS(null,"height",K),M($),$.glplot.axes.update($.axesOptions);for(var oe=Object.keys($.traces),q=null,Y=$.glplot.selection,ee=0;ee")):z.type==="isosurface"||z.type==="volume"?(de.valueLabel=m.hoverLabelText($._mockAxis,$._mockAxis.d2l(Y.traceCoordinate[3]),z.valuehoverformat),Se.push("value: "+de.valueLabel),Y.textLabel&&Se.push(Y.textLabel),se=Se.join("
    ")):se=Y.textLabel;var Te={x:Y.traceCoordinate[0],y:Y.traceCoordinate[1],z:Y.traceCoordinate[2],data:ae._input,fullData:ae,curveNumber:ae.index,pointNumber:ce};v.appendArrayPointValue(Te,ae,ce),z._module.eventData&&(Te=ae._module.eventData(Te,Y,ae,{},ce));var Pe={points:[Te]};if($.fullSceneLayout.hovermode){var Ie=[];v.loneHover({trace:ae,x:(.5+.5*he[0]/he[3])*W,y:(.5-.5*he[1]/he[3])*K,xLabel:de.xLabel,yLabel:de.yLabel,zLabel:de.zLabel,text:se,name:q.name,color:v.castHoverOption(ae,ce,"bgcolor")||q.color,borderColor:v.castHoverOption(ae,ce,"bordercolor"),fontFamily:v.castHoverOption(ae,ce,"font.family"),fontSize:v.castHoverOption(ae,ce,"font.size"),fontColor:v.castHoverOption(ae,ce,"font.color"),nameLength:v.castHoverOption(ae,ce,"namelength"),textAlign:v.castHoverOption(ae,ce,"align"),hovertemplate:u.castOption(ae,ce,"hovertemplate"),hovertemplateLabels:u.extendFlat({},Te,de),eventData:[Te]},{container:j,gd:Q,inOut_bbox:Ie}),Te.bbox=Ie[0]}Y.distance<5&&(Y.buttons||E)?Q.emit("plotly_click",Pe):Q.emit("plotly_hover",Pe),this.oldEventData=Pe}else v.loneUnhover(j),this.oldEventData&&Q.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;$.drawAnnotations($)},L.recoverContext=function(){var z=this;z.glplot.dispose();var $=function(){z.glplot.gl.isContextLost()?requestAnimationFrame($):z.initializeGLPlot()?z.plot.apply(z,z.plotArgs):u.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame($)};var k=["xaxis","yaxis","zaxis"];function I(z,$,Q){for(var j=z.fullSceneLayout,U=0;U<3;U++){var X=k[U],te=X.charAt(0),W=j[X],K=$[te],oe=$[te+"calendar"],q=$["_"+te+"length"];if(u.isArrayOrTypedArray(K))for(var Y,ee=0;ee<(q||K.length);ee++)if(u.isArrayOrTypedArray(K[ee]))for(var me=0;meae[1][te])ae[0][te]=-1,ae[1][te]=1;else{var He=ae[1][te]-ae[0][te];ae[0][te]-=He/32,ae[1][te]+=He/32}if(ve=[ae[0][te],ae[1][te]],ve=T(ve,K),ae[0][te]=ve[0],ae[1][te]=ve[1],K.isReversed()){var Ve=ae[0][te];ae[0][te]=ae[1][te],ae[1][te]=Ve}}else ve=K.range,ae[0][te]=K.r2l(ve[0]),ae[1][te]=K.r2l(ve[1]);ae[0][te]===ae[1][te]&&(ae[0][te]-=1,ae[1][te]+=1),ce[te]=ae[1][te]-ae[0][te],K.range=[ae[0][te],ae[1][te]],K.limitRange(),j.glplot.setBounds(te,{min:K.range[0]*me[te],max:K.range[1]*me[te]})}var $e=q.aspectmode;if($e==="cube")se=[1,1,1];else if($e==="manual"){var Oe=q.aspectratio;se=[Oe.x,Oe.y,Oe.z]}else{if($e!=="auto"&&$e!=="data")throw new Error("scene.js aspectRatio was not one of the enumerated types");var ke=[1,1,1];for(te=0;te<3;++te){var Le=de[oe=(K=q[k[te]]).type];ke[te]=Math.pow(Le.acc,1/Le.count)/me[te]}se=$e==="data"||Math.max.apply(null,ke)/Math.min.apply(null,ke)<=4?ke:[1,1,1]}q.aspectratio.x=Y.aspectratio.x=se[0],q.aspectratio.y=Y.aspectratio.y=se[1],q.aspectratio.z=Y.aspectratio.z=se[2],j.glplot.setAspectratio(q.aspectratio),j.viewInitial.aspectratio||(j.viewInitial.aspectratio={x:q.aspectratio.x,y:q.aspectratio.y,z:q.aspectratio.z}),j.viewInitial.aspectmode||(j.viewInitial.aspectmode=q.aspectmode);var We=q.domain||null,Ue=$._size||null;if(We&&Ue){var Ze=j.container.style;Ze.position="absolute",Ze.left=Ue.l+We.x[0]*Ue.w+"px",Ze.top=Ue.t+(1-We.y[1])*Ue.h+"px",Ze.width=Ue.w*(We.x[1]-We.x[0])+"px",Ze.height=Ue.h*(We.y[1]-We.y[0])+"px"}j.glplot.redraw()}},L.destroy=function(){var z=this;z.glplot&&(z.camera.mouseListener.enabled=!1,z.container.removeEventListener("wheel",z.camera.wheelListener),z.camera=null,z.glplot.dispose(),z.container.parentNode.removeChild(z.container),z.glplot=null)},L.getCamera=function(){var z,$=this;return $.camera.view.recalcMatrix($.camera.view.lastT()),{up:{x:(z=$.camera).up[0],y:z.up[1],z:z.up[2]},center:{x:z.center[0],y:z.center[1],z:z.center[2]},eye:{x:z.eye[0],y:z.eye[1],z:z.eye[2]},projection:{type:z._ortho===!0?"orthographic":"perspective"}}},L.setViewport=function(z){var $,Q=this,j=z.camera;Q.camera.lookAt.apply(this,[[($=j).eye.x,$.eye.y,$.eye.z],[$.center.x,$.center.y,$.center.z],[$.up.x,$.up.y,$.up.z]]),Q.glplot.setAspectratio(z.aspectratio),j.projection.type==="orthographic"!==Q.camera._ortho&&(Q.glplot.redraw(),Q.glplot.clearRGBA(),Q.glplot.dispose(),Q.initializeGLPlot())},L.isCameraChanged=function(z){var $=this.getCamera(),Q=u.nestedProperty(z,this.id+".camera").get();function j(W,K,oe,q){var Y=["up","center","eye"],ee=["x","y","z"];return K[Y[oe]]&&W[Y[oe]][ee[q]]===K[Y[oe]][ee[q]]}var U=!1;if(Q===void 0)U=!0;else{for(var X=0;X<3;X++)for(var te=0;te<3;te++)if(!j($,Q,X,te)){U=!0;break}(!Q.projection||$.projection&&$.projection.type!==Q.projection.type)&&(U=!0)}return U},L.isAspectChanged=function(z){var $=this.glplot.getAspectratio(),Q=u.nestedProperty(z,this.id+".aspectratio").get();return Q===void 0||Q.x!==$.x||Q.y!==$.y||Q.z!==$.z},L.saveLayout=function(z){var $,Q,j,U,X,te,W=this,K=W.fullLayout,oe=W.isCameraChanged(z),q=W.isAspectChanged(z),Y=oe||q;if(Y){var ee={};oe&&($=W.getCamera(),j=(Q=u.nestedProperty(z,W.id+".camera")).get(),ee[W.id+".camera"]=j),q&&(U=W.glplot.getAspectratio(),te=(X=u.nestedProperty(z,W.id+".aspectratio")).get(),ee[W.id+".aspectratio"]=te),a.call("_storeDirectGUIEdit",z,K._preGUI,ee),oe&&(Q.set($),u.nestedProperty(K,W.id+".camera").set($)),q&&(X.set(U),u.nestedProperty(K,W.id+".aspectratio").set(U),W.glplot.redraw())}return Y},L.updateFx=function(z,$){var Q=this,j=Q.camera;if(j)if(z==="orbit")j.mode="orbit",j.keyBindingMode="rotate";else if(z==="turntable"){j.up=[0,0,1],j.mode="turntable",j.keyBindingMode="rotate";var U=Q.graphDiv,X=U._fullLayout,te=Q.fullSceneLayout.camera,W=te.up.x,K=te.up.y,oe=te.up.z;if(oe/Math.sqrt(W*W+K*K+oe*oe)<.999){var q=Q.id+".camera.up",Y={x:0,y:0,z:1},ee={};ee[q]=Y;var me=U.layout;a.call("_storeDirectGUIEdit",me,X._preGUI,ee),te.up=Y,u.nestedProperty(me,q).set(Y)}}else j.keyBindingMode=z;Q.fullSceneLayout.hovermode=$},L.toImage=function(z){var $=this;z||(z="png"),$.staticMode&&$.container.appendChild(c),$.glplot.redraw();var Q=$.glplot.gl,j=Q.drawingBufferWidth,U=Q.drawingBufferHeight;Q.bindFramebuffer(Q.FRAMEBUFFER,null);var X=new Uint8Array(j*U*4);Q.readPixels(0,0,j,U,Q.RGBA,Q.UNSIGNED_BYTE,X),function(q,Y,ee){for(var me=0,he=ee-1;me0)for(var ce=255/ae,de=0;de<3;++de)q[se+de]=Math.min(ce*q[se+de],255)}}(X,j,U);var te=document.createElement("canvas");te.width=j,te.height=U;var W,K=te.getContext("2d",{willReadFrequently:!0}),oe=K.createImageData(j,U);switch(oe.data.set(X),K.putImageData(oe,0,0),z){case"jpeg":W=te.toDataURL("image/jpeg");break;case"webp":W=te.toDataURL("image/webp");break;default:W=te.toDataURL("image/png")}return $.staticMode&&$.container.removeChild(c),W},L.setConvert=function(){for(var z=0;z<3;z++){var $=this.fullSceneLayout[k[z]];m.setConvert($,this.fullLayout),$.setScale=u.noop}},L.make4thDimension=function(){var z=this,$=z.graphDiv._fullLayout;z._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},m.setConvert(z._mockAxis,$)},d.exports=C},52094:function(d){d.exports=function(l,n,c,b){b=b||l.length;for(var i=new Array(b),O=0;OOpenStreetMap contributors',O=['© Carto',i].join(" "),w=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),y={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:i,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:O,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:O,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},p=c(y);d.exports={requiredVersion:b,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:y,styleValuesNonMapbox:p,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+b+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` `),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",p.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}},89032:function(d,l,n){var c=n(3400);d.exports=function(b,i){var O=b.split(" "),w=O[0],y=O[1],p=c.isArrayOrTypedArray(i)?c.mean(i):i,a=.5+p/100,u=1.5+p/100,h=["",""],m=[0,0];switch(w){case"top":h[0]="top",m[1]=-u;break;case"bottom":h[0]="bottom",m[1]=u}switch(y){case"left":h[1]="right",m[0]=-a;break;case"right":h[1]="left",m[0]=a}return{anchor:h[0]&&h[1]?h.join("-"):h[0]?h[0]:h[1]?h[1]:"center",offset:m}}},33688:function(d,l,n){var c=n(3480),b=n(3400),i=b.strTranslate,O=b.strScale,w=n(84888).KY,y=n(9616),p=n(33428),a=n(43616),u=n(72736),h=n(14440),m="mapbox",v=l.constants=n(47552);function _(S){return typeof S=="string"&&(v.styleValuesMapbox.indexOf(S)!==-1||S.indexOf("mapbox://")===0||S.indexOf("stamen")===0)}l.name=m,l.attr="subplot",l.idRoot=m,l.idRegex=l.attrRegex=b.counterRegex(m),l.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},l.layoutAttributes=n(5232),l.supplyLayoutDefaults=n(5976),l.plot=function(S){var A=S._fullLayout,x=S.calcdata,R=A._subplots[m];if(c.version!==v.requiredVersion)throw new Error(v.wrongVersionErrorMsg);var M=function(k,I){var z=k._fullLayout;if(k._context.mapboxAccessToken==="")return"";for(var $=[],Q=[],j=!1,U=!1,X=0;X1&&b.warn(v.multipleTokensErrorMsg),$[0]):(Q.length&&b.log(["Listed mapbox access token(s)",Q.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}(S,R);c.accessToken=M;for(var T=0;TQ/2){var j=k.split("|").join("
    ");z.text(j).attr("data-unformatted",j).call(u.convertToTspans,S),$=a.bBox(z.node())}z.attr("transform",i(-3,8-$.height)),I.insert("rect",".static-attribution").attr({x:-$.width-6,y:-$.height-3,width:$.width+6,height:$.height+3,fill:"rgba(255, 255, 255, 0.75)"});var U=1;$.width+6>Q&&(U=Q/($.width+6));var X=[R.l+R.w*E.x[1],R.t+R.h*(1-E.y[0])];I.attr("transform",i(X[0],X[1])+O(U))}},l.updateFx=function(S){for(var A=S._fullLayout,x=A._subplots[m],R=0;R0){for(var m=0;m0}function a(u){var h={},m={};switch(u.type){case"circle":c.extendFlat(m,{"circle-radius":u.circle.radius,"circle-color":u.color,"circle-opacity":u.opacity});break;case"line":c.extendFlat(m,{"line-width":u.line.width,"line-color":u.color,"line-opacity":u.opacity,"line-dasharray":u.line.dash});break;case"fill":c.extendFlat(m,{"fill-color":u.color,"fill-outline-color":u.fill.outlinecolor,"fill-opacity":u.opacity});break;case"symbol":var v=u.symbol,_=i(v.textposition,v.iconsize);c.extendFlat(h,{"icon-image":v.icon+"-15","icon-size":v.iconsize/10,"text-field":v.text,"text-size":v.textfont.size,"text-anchor":_.anchor,"text-offset":_.offset,"symbol-placement":v.placement}),c.extendFlat(m,{"icon-color":u.color,"text-color":v.textfont.color,"text-opacity":u.opacity});break;case"raster":c.extendFlat(m,{"raster-fade-duration":0,"raster-opacity":u.opacity})}return{layout:h,paint:m}}y.update=function(u){this.visible?this.needsNewImage(u)?this.updateImage(u):this.needsNewSource(u)?(this.removeLayer(),this.updateSource(u),this.updateLayer(u)):this.needsNewLayer(u)?this.updateLayer(u):this.updateStyle(u):(this.updateSource(u),this.updateLayer(u)),this.visible=p(u)},y.needsNewImage=function(u){return this.subplot.map.getSource(this.idSource)&&this.sourceType==="image"&&u.sourcetype==="image"&&(this.source!==u.source||JSON.stringify(this.coordinates)!==JSON.stringify(u.coordinates))},y.needsNewSource=function(u){return this.sourceType!==u.sourcetype||JSON.stringify(this.source)!==JSON.stringify(u.source)||this.layerType!==u.type},y.needsNewLayer=function(u){return this.layerType!==u.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},y.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},y.updateImage=function(u){this.subplot.map.getSource(this.idSource).updateImage({url:u.source,coordinates:u.coordinates});var h=this.findFollowingMapboxLayerId(this.lookupBelow());h!==null&&this.subplot.map.moveLayer(this.idLayer,h)},y.updateSource=function(u){var h=this.subplot.map;if(h.getSource(this.idSource)&&h.removeSource(this.idSource),this.sourceType=u.sourcetype,this.source=u.source,p(u)){var m=function(v){var _,S=v.sourcetype,A=v.source,x={type:S};return S==="geojson"?_="data":S==="vector"?_=typeof A=="string"?"url":"tiles":S==="raster"?(_="tiles",x.tileSize=256):S==="image"&&(_="url",x.coordinates=v.coordinates),x[_]=A,v.sourceattribution&&(x.attribution=b(v.sourceattribution)),x}(u);h.addSource(this.idSource,m)}},y.findFollowingMapboxLayerId=function(u){if(u==="traces")for(var h=this.subplot.getMapLayers(),m=0;m1)for(I=0;I-1&&S(X.originalEvent,z,[I.xaxis],[I.yaxis],I.id,U),te.indexOf("event")>-1&&p.click(z,X.originalEvent)}}},M.updateFx=function(D){var k=this,I=k.map,z=k.gd;if(!k.isStatic){var $,Q=D.dragmode;$=function(X,te){te.isRect?(X.range={})[k.id]=[U([te.xmin,te.ymin]),U([te.xmax,te.ymax])]:(X.lassoPoints={})[k.id]=te.map(U)};var j=k.dragOptions;k.dragOptions=b.extendDeep(j||{},{dragmode:D.dragmode,element:k.div,gd:z,plotinfo:{id:k.id,domain:D[k.id].domain,xaxis:k.xaxis,yaxis:k.yaxis,fillRangeItems:$},xaxes:[k.xaxis],yaxes:[k.yaxis],subplot:k.id}),I.off("click",k.onClickInPanHandler),h(Q)||u(Q)?(I.dragPan.disable(),I.on("zoomstart",k.clearOutline),k.dragOptions.prepFn=function(X,te,W){m(X,te,W,k.dragOptions,Q)},y.init(k.dragOptions)):(I.dragPan.enable(),I.off("zoomstart",k.clearOutline),k.div.onmousedown=null,k.div.ontouchstart=null,k.div.removeEventListener("touchstart",k.div._ontouchstart),k.onClickInPanHandler=k.onClickInPanFn(k.dragOptions),I.on("click",k.onClickInPanHandler))}function U(X){var te=k.map.unproject(X);return[te.lng,te.lat]}},M.updateFramework=function(D){var k=D[this.id].domain,I=D._size,z=this.div.style;z.width=I.w*(k.x[1]-k.x[0])+"px",z.height=I.h*(k.y[1]-k.y[0])+"px",z.left=I.l+k.x[0]*I.w+"px",z.top=I.t+(1-k.y[1])*I.h+"px",this.xaxis._offset=I.l+k.x[0]*I.w,this.xaxis._length=I.w*(k.x[1]-k.x[0]),this.yaxis._offset=I.t+(1-k.y[1])*I.h,this.yaxis._length=I.h*(k.y[1]-k.y[0])},M.updateLayers=function(D){var k,I=D[this.id].layers,z=this.layerList;if(I.length!==z.length){for(k=0;k=Y.width-20?(he["text-anchor"]="start",he.x=5):(he["text-anchor"]="end",he.x=Y._paper.attr("width")-7),ee.attr(he);var se=ee.select(".js-link-to-tool"),ae=ee.select(".js-link-spacer"),ce=ee.select(".js-sourcelinks");q._context.showSources&&q._context.showSources(q),q._context.showLink&&function(de,ve){ve.text("");var ye=ve.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(de._context.linkText+" "+String.fromCharCode(187));if(de._context.sendData)ye.on("click",function(){E.sendDataToCloud(de)});else{var _e=window.location.pathname.split("/"),Se=window.location.search;ye.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+_e[2].split(".")[0]+"/"+_e[1]+Se})}}(q,se),ae.text(se.text()&&ce.text()?" - ":"")}},E.sendDataToCloud=function(q){var Y=(window.PLOTLYENV||{}).BASE_URL||q._context.plotlyServerURL;if(Y){q.emit("plotly_beforeexport");var ee=c.select(q).append("div").attr("id","hiddenform").style("display","none"),me=ee.append("form").attr({action:Y+"/external",method:"post",target:"_blank"});return me.append("input").attr({type:"text",name:"data"}).node().value=E.graphJson(q,!1,"keepdata"),me.node().submit(),ee.remove(),q.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],k=["year","month","dayMonth","dayMonthYear"];function I(q,Y){var ee=q._context.locale;ee||(ee="en-US");var me=!1,he={};function se(_e){for(var Se=!0,Te=0;Te1&&ke.length>1){for(y.getComponentMethod("grid","sizeDefaults")(ae,se),he=0;he15&&ke.length>15&&se.shapes.length===0&&se.images.length===0,E.linkSubplots(de,se,ce,me),E.cleanPlot(de,se,ce,me);var Xe=!(!me._has||!me._has("gl2d")),tt=!(!se._has||!se._has("gl2d")),Ee=!(!me._has||!me._has("cartesian"))||Xe,Ne=!(!se._has||!se._has("cartesian"))||tt;Ee&&!Ne?me._bgLayer.remove():Ne&&!Ee&&(se._shouldCreateBgLayer=!0),me._zoomlayer&&!q._dragging&&_({_fullLayout:me}),function(Ge,ht){var pt,wt=[];ht.meta&&(pt=ht._meta={meta:ht.meta,layout:{meta:ht.meta}});for(var Dt=0;Dt0){var ve=1-2*ae;me=Math.round(ve*me),he=Math.round(ve*he)}}var ye=E.layoutAttributes.width.min,_e=E.layoutAttributes.height.min;me1,Te=!Y.height&&Math.abs(ee.height-he)>1;(Te||Se)&&(Se&&(ee.width=me),Te&&(ee.height=he)),q._initialAutoSize||(q._initialAutoSize={width:me,height:he}),E.sanitizeMargins(ee)},E.supplyLayoutModuleDefaults=function(q,Y,ee,me){var he,se,ae,ce=y.componentsRegistry,de=Y._basePlotModules,ve=y.subplotsRegistry.cartesian;for(he in ce)(ae=ce[he]).includeBasePlot&&ae.includeBasePlot(q,Y);for(var ye in de.length||de.push(ve),Y._has("cartesian")&&(y.getComponentMethod("grid","contentDefaults")(q,Y),ve.finalizeSubplots(q,Y)),Y._subplots)Y._subplots[ye].sort(u.subplotSort);for(se=0;se1&&(ee.l/=ze,ee.r/=ze)}if(Se){var De=(ee.t+ee.b)/Se;De>1&&(ee.t/=De,ee.b/=De)}var He=ee.xl!==void 0?ee.xl:ee.x,Ve=ee.xr!==void 0?ee.xr:ee.x,$e=ee.yt!==void 0?ee.yt:ee.y,Oe=ee.yb!==void 0?ee.yb:ee.y;Te[Y]={l:{val:He,size:ee.l+Ie},r:{val:Ve,size:ee.r+Ie},b:{val:Oe,size:ee.b+Ie},t:{val:$e,size:ee.t+Ie}},Pe[Y]=1}else delete Te[Y],delete Pe[Y];if(!me._replotting)return E.doAutoMargin(q)}},E.doAutoMargin=function(q){var Y=q._fullLayout,ee=Y.width,me=Y.height;Y._size||(Y._size={}),U(Y);var he=Y._size,se=Y.margin,ae={t:0,b:0,l:0,r:0},ce=u.extendFlat({},he),de=se.l,ve=se.r,ye=se.t,_e=se.b,Se=Y._pushmargin,Te=Y._pushmarginIds,Pe=Y.minreducedwidth,Ie=Y.minreducedheight;if(se.autoexpand!==!1){for(var ze in Se)Te[ze]||delete Se[ze];var De=q._fullLayout._reservedMargin;for(var He in De)for(var Ve in De[He]){var $e=De[He][Ve];ae[Ve]=Math.max(ae[Ve],$e)}for(var Oe in Se.base={l:{val:0,size:de},r:{val:1,size:ve},t:{val:1,size:ye},b:{val:0,size:_e}},ae){var ke=0;for(var Le in Se)Le!=="base"&&O(Se[Le][Oe].size)&&(ke=Se[Le][Oe].size>ke?Se[Le][Oe].size:ke);var We=Math.max(0,se[Oe]-ke);ae[Oe]=Math.max(0,ae[Oe]-We)}for(var Ue in Se){var Ze=Se[Ue].l||{},Xe=Se[Ue].b||{},tt=Ze.val,Ee=Ze.size,Ne=Xe.val,je=Xe.size,nt=ee-ae.r-ae.l,ot=me-ae.t-ae.b;for(var Ge in Se){if(O(Ee)&&Se[Ge].r){var ht=Se[Ge].r.val,pt=Se[Ge].r.size;if(ht>tt){var wt=(Ee*ht+(pt-nt)*tt)/(ht-tt),Dt=(pt*(1-tt)+(Ee-nt)*(1-ht))/(ht-tt);wt+Dt>de+ve&&(de=wt,ve=Dt)}}if(O(je)&&Se[Ge].t){var It=Se[Ge].t.val,qt=Se[Ge].t.size;if(It>Ne){var en=(je*It+(qt-ot)*Ne)/(It-Ne),Gt=(qt*(1-Ne)+(je-ot)*(1-It))/(It-Ne);en+Gt>_e+ye&&(_e=en,ye=Gt)}}}}}var Ct=u.constrain(ee-se.l-se.r,2,Pe),_t=u.constrain(me-se.t-se.b,2,Ie),nn=Math.max(0,ee-Ct),gn=Math.max(0,me-_t);if(nn){var bn=(de+ve)/nn;bn>1&&(de/=bn,ve/=bn)}if(gn){var mn=(_e+ye)/gn;mn>1&&(_e/=mn,ye/=mn)}if(he.l=Math.round(de)+ae.l,he.r=Math.round(ve)+ae.r,he.t=Math.round(ye)+ae.t,he.b=Math.round(_e)+ae.b,he.p=Math.round(se.pad),he.w=Math.round(ee)-he.l-he.r,he.h=Math.round(me)-he.t-he.b,!Y._replotting&&(E.didMarginChange(ce,he)||function(bt){if("_redrawFromAutoMarginCount"in bt._fullLayout)return!1;var lt=v.list(bt,"",!0);for(var yt in lt)if(lt[yt].autoshift||lt[yt].shift)return!0;return!1}(q))){"_redrawFromAutoMarginCount"in Y?Y._redrawFromAutoMarginCount++:Y._redrawFromAutoMarginCount=1;var vt=3*(1+Object.keys(Te).length);if(Y._redrawFromAutoMarginCount0&&(q._transitioningWithDuration=!0),q._transitionData._interruptCallbacks.push(function(){me=!0}),ee.redraw&&q._transitionData._interruptCallbacks.push(function(){return y.call("redraw",q)}),q._transitionData._interruptCallbacks.push(function(){q.emit("plotly_transitioninterrupted",[])});var ce=0,de=0;function ve(){return ce++,function(){var ye;de++,me||de!==ce||(ye=ae,q._transitionData&&(function(_e){if(_e)for(;_e.length;)_e.shift()}(q._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(ee.redraw)return y.call("redraw",q)}).then(function(){q._transitioning=!1,q._transitioningWithDuration=!1,q.emit("plotly_transitioned",[])}).then(ye)))}}ee.runFn(ve),setTimeout(ve())})}],se=u.syncOrAsync(he,q);return se&&se.then||(se=Promise.resolve()),se.then(function(){return q})}E.didMarginChange=function(q,Y){for(var ee=0;ee1)return!0}return!1},E.graphJson=function(q,Y,ee,me,he,se){(he&&Y&&!q._fullData||he&&!Y&&!q._fullLayout)&&E.supplyDefaults(q);var ae=he?q._fullData:q.data,ce=he?q._fullLayout:q.layout,de=(q._transitionData||{})._frames;function ve(Se,Te){if(typeof Se=="function")return Te?"_function_":null;if(u.isPlainObject(Se)){var Pe,Ie={};return Object.keys(Se).sort().forEach(function(Ve){if(["_","["].indexOf(Ve.charAt(0))===-1)if(typeof Se[Ve]!="function"){if(ee==="keepdata"){if(Ve.substr(Ve.length-3)==="src")return}else if(ee==="keepstream"){if(typeof(Pe=Se[Ve+"src"])=="string"&&Pe.indexOf(":")>0&&!u.isPlainObject(Se.stream))return}else if(ee!=="keepall"&&typeof(Pe=Se[Ve+"src"])=="string"&&Pe.indexOf(":")>0)return;Ie[Ve]=ve(Se[Ve],Te)}else Te&&(Ie[Ve]="_function")}),Ie}var ze=Array.isArray(Se),De=u.isTypedArray(Se);if((ze||De)&&Se.dtype&&Se.shape){var He=Se.bdata;return ve({dtype:Se.dtype,shape:Se.shape,bdata:u.isArrayBuffer(He)?w.encode(He):He},Te)}return ze?Se.map(function(Ve){return ve(Ve,Te)}):De?u.simpleMap(Se,u.identity):u.isJSDate(Se)?u.ms2DateTimeLocal(+Se):Se}var ye={data:(ae||[]).map(function(Se){var Te=ve(Se);return Y&&delete Te.fit,Te})};if(!Y&&(ye.layout=ve(ce),he)){var _e=ce._size;ye.layout.computed={margin:{b:_e.b,l:_e.l,r:_e.r,t:_e.t}}}return de&&(ye.frames=ve(de)),se&&(ye.config=ve(q._context,!0)),me==="object"?ye:JSON.stringify(ye)},E.modifyFrames=function(q,Y){var ee,me,he,se=q._transitionData._frames,ae=q._transitionData._frameHash;for(ee=0;ee=0;se--)if(Oe[se].enabled){ee._indexToPoints=Oe[se]._indexToPoints;break}me&&me.calc&&($e=me.calc(q,ee))}Array.isArray($e)&&$e[0]||($e=[{x:m,y:m}]),$e[0].t||($e[0].t={}),$e[0].trace=ee,ve[He]=$e}}for(K(ae,ce,de),he=0;he1e-10?m:0}function h(m,v,_){v=v||0,_=_||0;for(var S=m.length,A=new Array(S),x=0;x0?x:1/0}),S=c.mod(_+1,v.length);return[v[_],v[S]]},findIntersectionXY:p,findXYatLength:function(m,v,_,S){var A=-v*_,x=v*v+1,R=2*(v*A-_),M=A*A+_*_-m*m,T=Math.sqrt(R*R-4*x*M),E=(-R+T)/(2*x),C=(-R-T)/(2*x);return[[E,v*E+A+S],[C,v*C+A+S]]},clampTiny:u,pathPolygon:function(m,v,_,S,A,x){return"M"+h(a(m,v,_,S),A,x).join("L")},pathPolygonAnnulus:function(m,v,_,S,A,x,R){var M,T;m=90||Gt>90&&Ct>=450?1:nn<=0&&bn<=0?0:Math.max(nn,bn),[Gt<=180&&Ct>=180||Gt>180&&Ct>=540?-1:_t>=0&&gn>=0?0:Math.min(_t,gn),Gt<=270&&Ct>=270||Gt>270&&Ct>=630?-1:nn>=0&&bn>=0?0:Math.min(nn,bn),Ct>=360?1:_t<=0&&gn<=0?0:Math.max(_t,gn),It]}(ze),Le=ke[2]-ke[0],We=ke[3]-ke[1],Ue=Ie/Pe,Ze=Math.abs(We/Le);Ue>Ze?(De=Pe,Oe=(Ie-(He=Pe*Ze))/ve.h/2,Ve=[Se[0],Se[1]],$e=[Te[0]+Oe,Te[1]-Oe]):(He=Ie,Oe=(Pe-(De=Ie/Ze))/ve.w/2,Ve=[Se[0]+Oe,Se[1]-Oe],$e=[Te[0],Te[1]]),ce.xLength2=De,ce.yLength2=He,ce.xDomain2=Ve,ce.yDomain2=$e;var Xe,tt=ce.xOffset2=ve.l+ve.w*Ve[0],Ee=ce.yOffset2=ve.t+ve.h*(1-$e[1]),Ne=ce.radius=De/Le,je=ce.innerRadius=ce.getHole(ae)*Ne,nt=ce.cx=tt-Ne*ke[0],ot=ce.cy=Ee+Ne*ke[3],Ge=ce.cxx=nt-tt,ht=ce.cyy=ot-Ee,pt=ye.side;pt==="counterclockwise"?(Xe=pt,pt="top"):pt==="clockwise"&&(Xe=pt,pt="bottom"),ce.radialAxis=ce.mockAxis(se,ae,ye,{_id:"x",side:pt,_trueSide:Xe,domain:[je/ve.w,Ne/ve.w]}),ce.angularAxis=ce.mockAxis(se,ae,_e,{side:"right",domain:[0,Math.PI],autorange:!1}),ce.doAutoRange(se,ae),ce.updateAngularAxis(se,ae),ce.updateRadialAxis(se,ae),ce.updateRadialAxisTitle(se,ae),ce.xaxis=ce.mockCartesianAxis(se,ae,{_id:"x",domain:Ve}),ce.yaxis=ce.mockCartesianAxis(se,ae,{_id:"y",domain:$e});var wt=ce.pathSubplot();ce.clipPaths.forTraces.select("path").attr("d",wt).attr("transform",y(Ge,ht)),de.frontplot.attr("transform",y(tt,Ee)).call(a.setClipUrl,ce._hasClipOnAxisFalse?null:ce.clipIds.forTraces,ce.gd),de.bg.attr("d",wt).attr("transform",y(nt,ot)).call(p.fill,ae.bgcolor)},Y.mockAxis=function(se,ae,ce,de){var ve=O.extendFlat({},ce,de);return v(ve,ae,se),ve},Y.mockCartesianAxis=function(se,ae,ce){var de=this,ve=de.isSmith,ye=ce._id,_e=O.extendFlat({type:"linear"},ce);m(_e,se);var Se={x:[0,2],y:[1,3]};return _e.setRange=function(){var Te=de.sectorBBox,Pe=Se[ye],Ie=de.radialAxis._rl,ze=(Ie[1]-Ie[0])/(1-de.getHole(ae));_e.range=[Te[Pe[0]]*ze,Te[Pe[1]]*ze]},_e.isPtWithinRange=ye!=="x"||ve?function(){return!0}:function(Te){return de.isPtInside(Te)},_e.setRange(),_e.setScale(),_e},Y.doAutoRange=function(se,ae){var ce=this,de=ce.gd,ve=ce.radialAxis,ye=ce.getRadial(ae);_(de,ve);var _e=ve.range;if(ye.range=_e.slice(),ye._input.range=_e.slice(),ve._rl=[ve.r2l(_e[0],null,"gregorian"),ve.r2l(_e[1],null,"gregorian")],ve.minallowed!==void 0){var Se=ve.r2l(ve.minallowed);ve._rl[0]>ve._rl[1]?ve._rl[1]=Math.max(ve._rl[1],Se):ve._rl[0]=Math.max(ve._rl[0],Se)}if(ve.maxallowed!==void 0){var Te=ve.r2l(ve.maxallowed);ve._rl[0]90&&Ie<=270&&(ze.tickangle=180);var Ve=He?function(Ee){var Ne=X(ce,Q([Ee.x,0]));return y(Ne[0]-Se,Ne[1]-Te)}:function(Ee){return y(ze.l2p(Ee.x)+_e,0)},$e=He?function(Ee){return U(ce,Ee.x,-1/0,1/0)}:function(Ee){return ce.pathArc(ze.r2p(Ee.x)+_e)},Oe=ee(Pe);if(ce.radialTickLayout!==Oe&&(ve["radial-axis"].selectAll(".xtick").remove(),ce.radialTickLayout=Oe),De){ze.setScale();var ke=0,Le=He?(ze.tickvals||[]).filter(function(Ee){return Ee>=0}).map(function(Ee){return h.tickText(ze,Ee,!0,!1)}):h.calcTicks(ze),We=He?Le:h.clipEnds(ze,Le),Ue=h.getTickSigns(ze)[2];He&&((ze.ticks==="top"&&ze.side==="bottom"||ze.ticks==="bottom"&&ze.side==="top")&&(Ue=-Ue),ze.ticks==="top"&&ze.side==="top"&&(ke=-ze.ticklen),ze.ticks==="bottom"&&ze.side==="bottom"&&(ke=ze.ticklen)),h.drawTicks(de,ze,{vals:Le,layer:ve["radial-axis"],path:h.makeTickPath(ze,0,Ue),transFn:Ve,crisp:!1}),h.drawGrid(de,ze,{vals:We,layer:ve["radial-grid"],path:$e,transFn:O.noop,crisp:!1}),h.drawLabels(de,ze,{vals:Le,layer:ve["radial-axis"],transFn:Ve,labelFns:h.makeLabelFns(ze,ke)})}var Ze=ce.radialAxisAngle=ce.vangles?oe(me(K(Pe.angle),ce.vangles)):Pe.angle,Xe=y(Se,Te),tt=Xe+w(-Ze);he(ve["radial-axis"],De&&(Pe.showticklabels||Pe.ticks),{transform:tt}),he(ve["radial-grid"],De&&Pe.showgrid,{transform:He?"":Xe}),he(ve["radial-line"].select("line"),De&&Pe.showline,{x1:He?-ye:_e,y1:0,x2:ye,y2:0,transform:tt}).attr("stroke-width",Pe.linewidth).call(p.stroke,Pe.linecolor)},Y.updateRadialAxisTitle=function(se,ae,ce){if(!this.isSmith){var de=this,ve=de.gd,ye=de.radius,_e=de.cx,Se=de.cy,Te=de.getRadial(ae),Pe=de.id+"title",Ie=0;if(Te.title){var ze=a.bBox(de.layers["radial-axis"].node()).height,De=Te.title.font.size,He=Te.side;Ie=He==="top"?De:He==="counterclockwise"?-(ze+.4*De):ze+.8*De}var Ve=ce!==void 0?ce:de.radialAxisAngle,$e=K(Ve),Oe=Math.cos($e),ke=Math.sin($e),Le=_e+ye/2*Oe+Ie*ke,We=Se-ye/2*ke+Ie*Oe;de.layers["radial-axis-title"]=R.draw(ve,Pe,{propContainer:Te,propName:de.id+".radialaxis.title",placeholder:te(ve,"Click to enter radial axis title"),attributes:{x:Le,y:We,"text-anchor":"middle"},transform:{rotate:-Ve}})}},Y.updateAngularAxis=function(se,ae){var ce=this,de=ce.gd,ve=ce.layers,ye=ce.radius,_e=ce.innerRadius,Se=ce.cx,Te=ce.cy,Pe=ce.getAngular(ae),Ie=ce.angularAxis,ze=ce.isSmith;ze||(ce.fillViewInitialKey("angularaxis.rotation",Pe.rotation),Ie.setGeometry(),Ie.setScale());var De=ze?function(Ee){var Ne=X(ce,Q([0,Ee.x]));return Math.atan2(Ne[0]-Se,Ne[1]-Te)-Math.PI/2}:function(Ee){return Ie.t2g(Ee.x)};Ie.type==="linear"&&Ie.thetaunit==="radians"&&(Ie.tick0=oe(Ie.tick0),Ie.dtick=oe(Ie.dtick));var He=function(Ee){return y(Se+ye*Math.cos(Ee),Te-ye*Math.sin(Ee))},Ve=ze?function(Ee){var Ne=X(ce,Q([0,Ee.x]));return y(Ne[0],Ne[1])}:function(Ee){return He(De(Ee))},$e=ze?function(Ee){var Ne=X(ce,Q([0,Ee.x])),je=Math.atan2(Ne[0]-Se,Ne[1]-Te)-Math.PI/2;return y(Ne[0],Ne[1])+w(-oe(je))}:function(Ee){var Ne=De(Ee);return He(Ne)+w(-oe(Ne))},Oe=ze?function(Ee){return j(ce,Ee.x,0,1/0)}:function(Ee){var Ne=De(Ee),je=Math.cos(Ne),nt=Math.sin(Ne);return"M"+[Se+_e*je,Te-_e*nt]+"L"+[Se+ye*je,Te-ye*nt]},ke=h.makeLabelFns(Ie,0).labelStandoff,Le={xFn:function(Ee){var Ne=De(Ee);return Math.cos(Ne)*ke},yFn:function(Ee){var Ne=De(Ee),je=Math.sin(Ne)>0?.2:1;return-Math.sin(Ne)*(ke+Ee.fontSize*je)+Math.abs(Math.cos(Ne))*(Ee.fontSize*k)},anchorFn:function(Ee){var Ne=De(Ee),je=Math.cos(Ne);return Math.abs(je)<.1?"middle":je>0?"start":"end"},heightFn:function(Ee,Ne,je){var nt=De(Ee);return-.5*(1+Math.sin(nt))*je}},We=ee(Pe);ce.angularTickLayout!==We&&(ve["angular-axis"].selectAll("."+Ie._id+"tick").remove(),ce.angularTickLayout=We);var Ue,Ze=ze?[1/0].concat(Ie.tickvals||[]).map(function(Ee){return h.tickText(Ie,Ee,!0,!1)}):h.calcTicks(Ie);if(ze&&(Ze[0].text="∞",Ze[0].fontSize*=1.75),ae.gridshape==="linear"?(Ue=Ze.map(De),O.angleDelta(Ue[0],Ue[1])<0&&(Ue=Ue.slice().reverse())):Ue=null,ce.vangles=Ue,Ie.type==="category"&&(Ze=Ze.filter(function(Ee){return O.isAngleInsideSector(De(Ee),ce.sectorInRad)})),Ie.visible){var Xe=Ie.ticks==="inside"?-1:1,tt=(Ie.linewidth||1)/2;h.drawTicks(de,Ie,{vals:Ze,layer:ve["angular-axis"],path:"M"+Xe*tt+",0h"+Xe*Ie.ticklen,transFn:$e,crisp:!1}),h.drawGrid(de,Ie,{vals:Ze,layer:ve["angular-grid"],path:Oe,transFn:O.noop,crisp:!1}),h.drawLabels(de,Ie,{vals:Ze,layer:ve["angular-axis"],repositionOnUpdate:!0,transFn:Ve,labelFns:Le})}he(ve["angular-line"].select("path"),Pe.showline,{d:ce.pathSubplot(),transform:y(Se,Te)}).attr("stroke-width",Pe.linewidth).call(p.stroke,Pe.linecolor)},Y.updateFx=function(se,ae){this.gd._context.staticPlot||(!this.isSmith&&(this.updateAngularDrag(se),this.updateRadialDrag(se,ae,0),this.updateRadialDrag(se,ae,1)),this.updateHoverAndMainDrag(se))},Y.updateHoverAndMainDrag=function(se){var ae,ce,de=this,ve=de.isSmith,ye=de.gd,_e=de.layers,Se=se._zoomlayer,Te=I.MINZOOM,Pe=I.OFFEDGE,Ie=de.radius,ze=de.innerRadius,De=de.cx,He=de.cy,Ve=de.cxx,$e=de.cyy,Oe=de.sectorInRad,ke=de.vangles,Le=de.radialAxis,We=z.clampTiny,Ue=z.findXYatLength,Ze=z.findEnclosingVertexAngles,Xe=I.cornerHalfWidth,tt=I.cornerLen/2,Ee=S.makeDragger(_e,"path","maindrag",se.dragmode===!1?"none":"crosshair");c.select(Ee).attr("d",de.pathSubplot()).attr("transform",y(De,He)),Ee.onmousemove=function(Rt){x.hover(ye,Rt,de.id),ye._fullLayout._lasthover=Ee,ye._fullLayout._hoversubplot=de.id},Ee.onmouseout=function(Rt){ye._dragging||A.unhover(ye,Rt)};var Ne,je,nt,ot,Ge,ht,pt,wt,Dt,It={element:Ee,gd:ye,subplot:de.id,plotinfo:{id:de.id,xaxis:de.xaxis,yaxis:de.yaxis},xaxes:[de.xaxis],yaxes:[de.yaxis]};function qt(Rt,it){return Math.sqrt(Rt*Rt+it*it)}function en(Rt,it){return qt(Rt-Ve,it-$e)}function Gt(Rt,it){return Math.atan2($e-it,Rt-Ve)}function Ct(Rt,it){return[Rt*Math.cos(it),Rt*Math.sin(-it)]}function _t(Rt,it){if(Rt===0)return de.pathSector(2*Xe);var at=tt/Rt,Lt=it-at,xt=it+at,Ht=Math.max(0,Math.min(Rt,Ie)),Xt=Ht-Xe,Yt=Ht+Xe;return"M"+Ct(Xt,Lt)+"A"+[Xt,Xt]+" 0,0,0 "+Ct(Xt,xt)+"L"+Ct(Yt,xt)+"A"+[Yt,Yt]+" 0,0,1 "+Ct(Yt,Lt)+"Z"}function nn(Rt,it,at){if(Rt===0)return de.pathSector(2*Xe);var Lt,xt,Ht=Ct(Rt,it),Xt=Ct(Rt,at),Yt=We((Ht[0]+Xt[0])/2),Qt=We((Ht[1]+Xt[1])/2);if(Yt&&Qt){var Pt=Qt/Yt,tn=-1/Pt,Kt=Ue(Xe,Pt,Yt,Qt);Lt=Ue(tt,tn,Kt[0][0],Kt[0][1]),xt=Ue(tt,tn,Kt[1][0],Kt[1][1])}else{var fn,dn;Qt?(fn=tt,dn=Xe):(fn=Xe,dn=tt),Lt=[[Yt-fn,Qt-dn],[Yt+fn,Qt-dn]],xt=[[Yt-fn,Qt+dn],[Yt+fn,Qt+dn]]}return"M"+Lt.join("L")+"L"+xt.reverse().join("L")+"Z"}function gn(Rt,it){return it=Math.max(Math.min(it,Ie),ze),RtTe?(Rt-1&&Rt===1&&T(it,ye,[de.xaxis],[de.yaxis],de.id,It),at.indexOf("event")>-1&&x.click(ye,it,de.id)}It.prepFn=function(Rt,it,at){var Lt=ye._fullLayout.dragmode,xt=Ee.getBoundingClientRect();ye._fullLayout._calcInverseTransform(ye);var Ht=ye._fullLayout._invTransform;ae=ye._fullLayout._invScaleX,ce=ye._fullLayout._invScaleY;var Xt=O.apply3DTransform(Ht)(it-xt.left,at-xt.top);if(Ne=Xt[0],je=Xt[1],ke){var Yt=z.findPolygonOffset(Ie,Oe[0],Oe[1],ke);Ne+=Ve+Yt[0],je+=$e+Yt[1]}switch(Lt){case"zoom":It.clickFn=zt,ve||(It.moveFn=ke?bt:mn,It.doneFn=lt,function(){nt=null,ot=null,Ge=de.pathSubplot(),ht=!1;var Qt=ye._fullLayout[de.id];pt=b(Qt.bgcolor).getLuminance(),(wt=S.makeZoombox(Se,pt,De,He,Ge)).attr("fill-rule","evenodd"),Dt=S.makeCorners(Se,De,He),E(ye)}());break;case"select":case"lasso":M(Rt,it,at,It,Lt)}},A.init(It)},Y.updateRadialDrag=function(se,ae,ce){var de=this,ve=de.gd,ye=de.layers,_e=de.radius,Se=de.innerRadius,Te=de.cx,Pe=de.cy,Ie=de.radialAxis,ze=I.radialDragBoxSize,De=ze/2;if(Ie.visible){var He,Ve,$e,Oe=K(de.radialAxisAngle),ke=Ie._rl,Le=ke[0],We=ke[1],Ue=ke[ce],Ze=.75*(ke[1]-ke[0])/(1-de.getHole(ae))/_e;ce?(He=Te+(_e+De)*Math.cos(Oe),Ve=Pe-(_e+De)*Math.sin(Oe),$e="radialdrag"):(He=Te+(Se-De)*Math.cos(Oe),Ve=Pe-(Se-De)*Math.sin(Oe),$e="radialdrag-inner");var Xe,tt,Ee,Ne=S.makeRectDragger(ye,$e,"crosshair",-De,-De,ze,ze),je={element:Ne,gd:ve};se.dragmode===!1&&(je.dragmode=!1),he(c.select(Ne),Ie.visible&&Se<_e,{transform:y(He,Ve)}),je.prepFn=function(){Xe=null,tt=null,Ee=null,je.moveFn=nt,je.doneFn=ot,E(ve)},je.clampFn=function(pt,wt){return Math.sqrt(pt*pt+wt*wt)0==(ce?Ee>Le:Eev?function(R){return R<=0}:function(R){return R>=0};a.c2g=function(R){var M=a.c2l(R)-m;return(x(M)?M:0)+A},a.g2c=function(R){return a.l2c(R+m-A)},a.g2p=function(R){return R*S},a.c2p=function(R){return a.g2p(a.c2g(R))}}})(w,y);break;case"angularaxis":(function(a,u){var h=a.type;if(h==="linear"){var m=a.d2c,v=a.c2d;a.d2c=function(_,S){return function(A,x){return x==="degrees"?i(A):A}(m(_),S)},a.c2d=function(_,S){return v(function(A,x){return x==="degrees"?O(A):A}(_,S))}}a.makeCalcdata=function(_,S){var A,x,R=_[S],M=_._length,T=function(k){return a.d2c(k,_.thetaunit)};if(R)for(A=new Array(M),x=0;x0?1:0}function n(i){var O=i[0],w=i[1];if(!isFinite(O)||!isFinite(w))return[1,0];var y=(O+1)*(O+1)+w*w;return[(O*O+w*w-1)/y,2*w/y]}function c(i,O){var w=O[0],y=O[1];return[w*i.radius+i.cx,-y*i.radius+i.cy]}function b(i,O){return O*i.radius}d.exports={smith:n,reactanceArc:function(i,O,w,y){var p=c(i,n([w,O])),a=p[0],u=p[1],h=c(i,n([y,O])),m=h[0],v=h[1];if(O===0)return["M"+a+","+u,"L"+m+","+v].join(" ");var _=b(i,1/Math.abs(O));return["M"+a+","+u,"A"+_+","+_+" 0 0,"+(O<0?1:0)+" "+m+","+v].join(" ")},resistanceArc:function(i,O,w,y){var p=b(i,1/(O+1)),a=c(i,n([O,w])),u=a[0],h=a[1],m=c(i,n([O,y])),v=m[0],_=m[1];if(l(w)!==l(y)){var S=c(i,n([O,0]));return["M"+u+","+h,"A"+p+","+p+" 0 0,"+(00){for(var y=[],p=0;p=L&&(k.min=0,I.min=0,z.min=0,S.aaxis&&delete S.aaxis.min,S.baxis&&delete S.baxis.min,S.caxis&&delete S.caxis.min)}function _(S,A,x,R){var M=h[A._name];function T(I,z){return i.coerce(S,A,M,I,z)}T("uirevision",R.uirevision),A.type="linear";var E=T("color"),C=E!==M.color.dflt?E:x.font.color,L=A._name.charAt(0).toUpperCase(),D="Component "+L,k=T("title.text",D);A._hovertitle=k===D?k:L,i.coerceFont(T,"title.font",{family:x.font.family,size:i.bigFont(x.font.size),color:C}),T("min"),a(S,A,T,"linear"),y(S,A,T,"linear"),w(S,A,T,"linear",{noAutotickangles:!0}),p(S,A,T,{outerTicks:!0}),T("showticklabels")&&(i.coerceFont(T,"tickfont",{family:x.font.family,size:x.font.size,color:C}),T("tickangle"),T("tickformat")),u(S,A,T,{dfltColor:E,bgColor:x.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),T("hoverformat"),T("layer")}d.exports=function(S,A,x){O(S,A,x,{type:"ternary",attributes:h,handleDefaults:v,font:A.font,paper_bgcolor:A.paper_bgcolor})}},24696:function(d,l,n){var c=n(33428),b=n(49760),i=n(24040),O=n(3400),w=O.strTranslate,y=O._,p=n(76308),a=n(43616),u=n(78344),h=n(92880).extendFlat,m=n(7316),v=n(54460),_=n(86476),S=n(93024),A=n(72760),x=A.freeMode,R=A.rectMode,M=n(81668),T=n(22676).prepSelect,E=n(22676).selectOnClick,C=n(22676).clearOutline,L=n(22676).clearSelectionsCache,D=n(33816);function k(W,K){this.id=W.id,this.graphDiv=W.graphDiv,this.init(K),this.makeFramework(K),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}d.exports=k;var I=k.prototype;I.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},I.plot=function(W,K){var oe=this,q=K[oe.id],Y=K._size;oe._hasClipOnAxisFalse=!1;for(var ee=0;eez*Se?Y=(ee=Se)*z:ee=(Y=_e)/z,me=ve*Y/_e,he=ye*ee/Se,oe=K.l+K.w*ce-Y/2,q=K.t+K.h*(1-de)-ee/2,se.x0=oe,se.y0=q,se.w=Y,se.h=ee,se.sum=Te,se.xaxis={type:"linear",range:[Pe+2*ze-Te,Te-Pe-2*Ie],domain:[ce-me/2,ce+me/2],_id:"x"},u(se.xaxis,se.graphDiv._fullLayout),se.xaxis.setScale(),se.xaxis.isPtWithinRange=function(Xe){return Xe.a>=se.aaxis.range[0]&&Xe.a<=se.aaxis.range[1]&&Xe.b>=se.baxis.range[1]&&Xe.b<=se.baxis.range[0]&&Xe.c>=se.caxis.range[1]&&Xe.c<=se.caxis.range[0]},se.yaxis={type:"linear",range:[Pe,Te-Ie-ze],domain:[de-he/2,de+he/2],_id:"y"},u(se.yaxis,se.graphDiv._fullLayout),se.yaxis.setScale(),se.yaxis.isPtWithinRange=function(){return!0};var De=se.yaxis.domain[0],He=se.aaxis=h({},W.aaxis,{range:[Pe,Te-Ie-ze],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[De,De+he*z],anchor:"free",position:0,_id:"y",_length:Y});u(He,se.graphDiv._fullLayout),He.setScale();var Ve=se.baxis=h({},W.baxis,{range:[Te-Pe-ze,Ie],side:"bottom",domain:se.xaxis.domain,anchor:"free",position:0,_id:"x",_length:Y});u(Ve,se.graphDiv._fullLayout),Ve.setScale();var $e=se.caxis=h({},W.caxis,{range:[Te-Pe-Ie,ze],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[De,De+he*z],anchor:"free",position:0,_id:"y",_length:Y});u($e,se.graphDiv._fullLayout),$e.setScale();var Oe="M"+oe+","+(q+ee)+"h"+Y+"l-"+Y/2+",-"+ee+"Z";se.clipDef.select("path").attr("d",Oe),se.layers.plotbg.select("path").attr("d",Oe);var ke="M0,"+ee+"h"+Y+"l-"+Y/2+",-"+ee+"Z";se.clipDefRelative.select("path").attr("d",ke);var Le=w(oe,q);se.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Le),se.clipDefRelative.select("path").attr("transform",null);var We=w(oe-Ve._offset,q+ee);se.layers.baxis.attr("transform",We),se.layers.bgrid.attr("transform",We);var Ue=w(oe+Y/2,q)+"rotate(30)"+w(0,-He._offset);se.layers.aaxis.attr("transform",Ue),se.layers.agrid.attr("transform",Ue);var Ze=w(oe+Y/2,q)+"rotate(-30)"+w(0,-$e._offset);se.layers.caxis.attr("transform",Ze),se.layers.cgrid.attr("transform",Ze),se.drawAxes(!0),se.layers.aline.select("path").attr("d",He.showline?"M"+oe+","+(q+ee)+"l"+Y/2+",-"+ee:"M0,0").call(p.stroke,He.linecolor||"#000").style("stroke-width",(He.linewidth||0)+"px"),se.layers.bline.select("path").attr("d",Ve.showline?"M"+oe+","+(q+ee)+"h"+Y:"M0,0").call(p.stroke,Ve.linecolor||"#000").style("stroke-width",(Ve.linewidth||0)+"px"),se.layers.cline.select("path").attr("d",$e.showline?"M"+(oe+Y/2)+","+q+"l"+Y/2+","+ee:"M0,0").call(p.stroke,$e.linecolor||"#000").style("stroke-width",($e.linewidth||0)+"px"),se.graphDiv._context.staticPlot||se.initInteractions(),a.setClipUrl(se.layers.frontplot,se._hasClipOnAxisFalse?null:se.clipId,se.graphDiv)},I.drawAxes=function(W){var K=this,oe=K.graphDiv,q=K.id.substr(7)+"title",Y=K.layers,ee=K.aaxis,me=K.baxis,he=K.caxis;if(K.drawAx(ee),K.drawAx(me),K.drawAx(he),W){var se=Math.max(ee.showticklabels?ee.tickfont.size/2:0,(he.showticklabels?.75*he.tickfont.size:0)+(he.ticks==="outside"?.87*he.ticklen:0)),ae=(me.showticklabels?me.tickfont.size:0)+(me.ticks==="outside"?me.ticklen:0)+3;Y["a-title"]=M.draw(oe,"a"+q,{propContainer:ee,propName:K.id+".aaxis.title",placeholder:y(oe,"Click to enter Component A title"),attributes:{x:K.x0+K.w/2,y:K.y0-ee.title.font.size/3-se,"text-anchor":"middle"}}),Y["b-title"]=M.draw(oe,"b"+q,{propContainer:me,propName:K.id+".baxis.title",placeholder:y(oe,"Click to enter Component B title"),attributes:{x:K.x0-ae,y:K.y0+K.h+.83*me.title.font.size+ae,"text-anchor":"middle"}}),Y["c-title"]=M.draw(oe,"c"+q,{propContainer:he,propName:K.id+".caxis.title",placeholder:y(oe,"Click to enter Component C title"),attributes:{x:K.x0+K.w+ae,y:K.y0+K.h+.83*he.title.font.size+ae,"text-anchor":"middle"}})}},I.drawAx=function(W){var K,oe=this,q=oe.graphDiv,Y=W._name,ee=Y.charAt(0),me=W._id,he=oe.layers[Y],se=ee+"tickLayout",ae=(K=W).ticks+String(K.ticklen)+String(K.showticklabels);oe[se]!==ae&&(he.selectAll("."+me+"tick").remove(),oe[se]=ae),W.setScale();var ce=v.calcTicks(W),de=v.clipEnds(W,ce),ve=v.makeTransTickFn(W),ye=v.getTickSigns(W)[2],_e=O.deg2rad(30),Se=ye*(W.linewidth||1)/2,Te=ye*W.ticklen,Pe=oe.w,Ie=oe.h,ze=ee==="b"?"M0,"+Se+"l"+Math.sin(_e)*Te+","+Math.cos(_e)*Te:"M"+Se+",0l"+Math.cos(_e)*Te+","+-Math.sin(_e)*Te,De={a:"M0,0l"+Ie+",-"+Pe/2,b:"M0,0l-"+Pe/2+",-"+Ie,c:"M0,0l-"+Ie+","+Pe/2}[ee];v.drawTicks(q,W,{vals:W.ticks==="inside"?de:ce,layer:he,path:ze,transFn:ve,crisp:!1}),v.drawGrid(q,W,{vals:de,layer:oe.layers[ee+"grid"],path:De,transFn:ve,crisp:!1}),v.drawLabels(q,W,{vals:ce,layer:he,transFn:ve,labelFns:v.makeLabelFns(W,0,30)})};var $=D.MINZOOM/2+.87,Q="m-0.87,.5h"+$+"v3h-"+($+5.2)+"l"+($/2+2.6)+",-"+(.87*$+4.5)+"l2.6,1.5l-"+$/2+","+.87*$+"Z",j="m0.87,.5h-"+$+"v3h"+($+5.2)+"l-"+($/2+2.6)+",-"+(.87*$+4.5)+"l-2.6,1.5l"+$/2+","+.87*$+"Z",U="m0,1l"+$/2+","+.87*$+"l2.6,-1.5l-"+($/2+2.6)+",-"+(.87*$+4.5)+"l-"+($/2+2.6)+","+(.87*$+4.5)+"l2.6,1.5l"+$/2+",-"+.87*$+"Z",X=!0;function te(W){c.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}I.clearOutline=function(){L(this.dragOptions),C(this.dragOptions.gd)},I.initInteractions=function(){var W,K,oe,q,Y,ee,me,he,se,ae,ce,de,ve=this,ye=ve.layers.plotbg.select("path").node(),_e=ve.graphDiv,Se=_e._fullLayout._zoomlayer;function Te(ke){var Le={};return Le[ve.id+".aaxis.min"]=ke.a,Le[ve.id+".baxis.min"]=ke.b,Le[ve.id+".caxis.min"]=ke.c,Le}function Pe(ke,Le){var We=_e._fullLayout.clickmode;te(_e),ke===2&&(_e.emit("plotly_doubleclick",null),i.call("_guiRelayout",_e,Te({a:0,b:0,c:0}))),We.indexOf("select")>-1&&ke===1&&E(Le,_e,[ve.xaxis],[ve.yaxis],ve.id,ve.dragOptions),We.indexOf("event")>-1&&S.click(_e,Le,ve.id)}function Ie(ke,Le){return 1-Le/ve.h}function ze(ke,Le){return 1-(ke+(ve.h-Le)/Math.sqrt(3))/ve.w}function De(ke,Le){return(ke-(ve.h-Le)/Math.sqrt(3))/ve.w}function He(ke,Le){var We=oe+ke*W,Ue=q+Le*K,Ze=Math.max(0,Math.min(1,Ie(0,q),Ie(0,Ue))),Xe=Math.max(0,Math.min(1,ze(oe,q),ze(We,Ue))),tt=Math.max(0,Math.min(1,De(oe,q),De(We,Ue))),Ee=(Ze/2+tt)*ve.w,Ne=(1-Ze/2-Xe)*ve.w,je=(Ee+Ne)/2,nt=Ne-Ee,ot=(1-Ze)*ve.h,Ge=ot-nt/z;nt.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),de.transition().style("opacity",1).duration(200),ae=!0),_e.emit("plotly_relayouting",Te(me))}function Ve(){te(_e),me!==Y&&(i.call("_guiRelayout",_e,Te(me)),X&&_e.data&&_e._context.showTips&&(O.notifier(y(_e,"Double-click to zoom back out"),"long"),X=!1))}function $e(ke,Le){var We=ke/ve.xaxis._m,Ue=Le/ve.yaxis._m,Ze=[(me={a:Y.a-Ue,b:Y.b+(We+Ue)/2,c:Y.c-(We-Ue)/2}).a,me.b,me.c].sort(O.sorterAsc),Xe=Ze.indexOf(me.a),tt=Ze.indexOf(me.b),Ee=Ze.indexOf(me.c);Ze[0]<0&&(Ze[1]+Ze[0]/2<0?(Ze[2]+=Ze[0]+Ze[1],Ze[0]=Ze[1]=0):(Ze[2]+=Ze[0]/2,Ze[1]+=Ze[0]/2,Ze[0]=0),me={a:Ze[Xe],b:Ze[tt],c:Ze[Ee]},Le=(Y.a-me.a)*ve.yaxis._m,ke=(Y.c-me.c-Y.b+me.b)*ve.xaxis._m);var Ne=w(ve.x0+ke,ve.y0+Le);ve.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ne);var je=w(-ke,-Le);ve.clipDefRelative.select("path").attr("transform",je),ve.aaxis.range=[me.a,ve.sum-me.b-me.c],ve.baxis.range=[ve.sum-me.a-me.c,me.b],ve.caxis.range=[ve.sum-me.a-me.b,me.c],ve.drawAxes(!1),ve._hasClipOnAxisFalse&&ve.plotContainer.select(".scatterlayer").selectAll(".trace").call(a.hideOutsideRangePoints,ve),_e.emit("plotly_relayouting",Te(me))}function Oe(){i.call("_guiRelayout",_e,Te(me))}this.dragOptions={element:ye,gd:_e,plotinfo:{id:ve.id,domain:_e._fullLayout[ve.id].domain,xaxis:ve.xaxis,yaxis:ve.yaxis},subplot:ve.id,prepFn:function(ke,Le,We){ve.dragOptions.xaxes=[ve.xaxis],ve.dragOptions.yaxes=[ve.yaxis],W=_e._fullLayout._invScaleX,K=_e._fullLayout._invScaleY;var Ue=ve.dragOptions.dragmode=_e._fullLayout.dragmode;x(Ue)?ve.dragOptions.minDrag=1:ve.dragOptions.minDrag=void 0,Ue==="zoom"?(ve.dragOptions.moveFn=He,ve.dragOptions.clickFn=Pe,ve.dragOptions.doneFn=Ve,function(Ze,Xe,tt){var Ee=ye.getBoundingClientRect();oe=Xe-Ee.left,q=tt-Ee.top,_e._fullLayout._calcInverseTransform(_e);var Ne=_e._fullLayout._invTransform,je=O.apply3DTransform(Ne)(oe,q);oe=je[0],q=je[1],Y={a:ve.aaxis.range[0],b:ve.baxis.range[1],c:ve.caxis.range[1]},me=Y,ee=ve.aaxis.range[1]-Y.a,he=b(ve.graphDiv._fullLayout[ve.id].bgcolor).getLuminance(),se="M0,"+ve.h+"L"+ve.w/2+", 0L"+ve.w+","+ve.h+"Z",ae=!1,ce=Se.append("path").attr("class","zoombox").attr("transform",w(ve.x0,ve.y0)).style({fill:he>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",se),de=Se.append("path").attr("class","zoombox-corners").attr("transform",w(ve.x0,ve.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),ve.clearOutline(_e)}(0,Le,We)):Ue==="pan"?(ve.dragOptions.moveFn=$e,ve.dragOptions.clickFn=Pe,ve.dragOptions.doneFn=Oe,Y={a:ve.aaxis.range[0],b:ve.baxis.range[1],c:ve.caxis.range[1]},me=Y,ve.clearOutline(_e)):(R(Ue)||x(Ue))&&T(ke,Le,We,ve.dragOptions,Ue)}},ye.onmousemove=function(ke){S.hover(_e,ke,ve.id),_e._fullLayout._lasthover=ye,_e._fullLayout._hoversubplot=ve.id},ye.onmouseout=function(ke){_e._dragging||_.unhover(_e,ke)},_.init(this.dragOptions)}},24040:function(d,l,n){var c=n(24248),b=n(16628),i=n(52416),O=n(63620),w=n(52200).addStyleRule,y=n(92880),p=n(45464),a=n(64859),u=y.extendFlat,h=y.extendDeepAll;function m(E){var C=E.name,L=E.categories,D=E.meta;if(l.modules[C])c.log("Type "+C+" already registered");else{l.subplotsRegistry[E.basePlotModule.name]||function(X){var te=X.name;if(l.subplotsRegistry[te])c.log("Plot type "+te+" already registered.");else for(var W in A(X),l.subplotsRegistry[te]=X,l.componentsRegistry)M(W,X.name)}(E.basePlotModule);for(var k={},I=0;I-1&&(_[A[a]].title={text:""});for(a=0;a")!==-1?"":I.html($).text()});return I.remove(),z}(D)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(a,"'"),b.isIE()&&(D=(D=(D=D.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),D}},84664:function(d,l,n){var c=n(3400);d.exports=function(b,i){for(var O=0;Oz+k||!c(I))}for(var Q=0;Q=0)return _}else if(typeof _=="string"&&(_=_.trim()).slice(-1)==="%"&&c(_.slice(0,-1))&&(_=+_.slice(0,-1))>=0)return _+"%"}function v(_,S,A,x,R,M){var T=(M=M||{}).moduleHasSelected!==!1,E=M.moduleHasUnselected!==!1,C=M.moduleHasConstrain!==!1,L=M.moduleHasCliponaxis!==!1,D=M.moduleHasTextangle!==!1,k=M.moduleHasInsideanchor!==!1,I=!!M.hasPathbar,z=Array.isArray(R)||R==="auto",$=z||R==="inside",Q=z||R==="outside";if($||Q){var j=h(x,"textfont",A.font),U=b.extendFlat({},j),X=!(_.textfont&&_.textfont.color);if(X&&delete U.color,h(x,"insidetextfont",U),I){var te=b.extendFlat({},j);X&&delete te.color,h(x,"pathbar.textfont",te)}Q&&h(x,"outsidetextfont",j),T&&x("selected.textfont.color"),E&&x("unselected.textfont.color"),C&&x("constraintext"),L&&x("cliponaxis"),D&&x("textangle"),x("texttemplate")}$&&k&&x("insidetextanchor")}d.exports={supplyDefaults:function(_,S,A,x){function R(C,L){return b.coerce(_,S,u,C,L)}if(w(_,S,x,R)){y(_,S,x,R),R("xhoverformat"),R("yhoverformat"),R("orientation",S.x&&!S.y?"h":"v"),R("base"),R("offset"),R("width"),R("text"),R("hovertext"),R("hovertemplate");var M=R("textposition");v(_,0,x,R,M,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),p(_,S,R,A,x);var T=(S.marker.line||{}).color,E=O.getComponentMethod("errorbars","supplyDefaults");E(_,S,T||i.defaultLine,{axis:"y"}),E(_,S,T||i.defaultLine,{axis:"x",inherit:"y"}),b.coerceSelectionMarkerOpacity(S,R)}else S.visible=!1},crossTraceDefaults:function(_,S){var A,x;function R(E,C){return b.coerce(x._input,x,u,E,C)}for(var M=0;M<_.length;M++)if((x=_[M]).type==="bar"){A=x._input;var T=R("marker.cornerradius",S.barcornerradius);x.marker&&(x.marker.cornerradius=m(T)),S.barmode==="group"&&a(A,x,S,R)}},handleText:v,validateCornerradius:m}},52160:function(d){d.exports=function(l,n,c){return l.x="xVal"in n?n.xVal:n.x,l.y="yVal"in n?n.yVal:n.y,n.xa&&(l.xaxis=n.xa),n.ya&&(l.yaxis=n.ya),c.orientation==="h"?(l.label=l.y,l.value=l.x):(l.label=l.x,l.value=l.y),l}},60444:function(d,l,n){var c=n(38248),b=n(49760),i=n(3400).isArrayOrTypedArray;l.coerceString=function(O,w,y){if(typeof w=="string"){if(w||!O.noBlank)return w}else if((typeof w=="number"||w===!0)&&!O.strict)return String(w);return y!==void 0?y:O.dflt},l.coerceNumber=function(O,w,y){if(c(w)){w=+w;var p=O.min,a=O.max;if(!(p!==void 0&&wa))return w}return y!==void 0?y:O.dflt},l.coerceColor=function(O,w,y){return b(w).isValid()?w:y!==void 0?y:O.dflt},l.coerceEnumerated=function(O,w,y){return O.coerceNumber&&(w=+w),O.values.indexOf(w)!==-1?w:y!==void 0?y:O.dflt},l.getValue=function(O,w){var y;return i(O)?w0?Te+=Pe:x<0&&(Te-=Pe)}return Te}function he(Se){var Te=x,Pe=Se.b,Ie=me(Se);return c.inbox(Pe-Te,Ie-Te,$+(Ie-Te)/(Ie-Pe)-1)}var se=h[R+"a"],ae=h[M+"a"];C=Math.abs(se.r2c(se.range[1])-se.r2c(se.range[0]));var ce=c.getDistanceFunction(_,T,E,function(Se){return(T(Se)+E(Se))/2});if(c.getClosest(L,ce,h),h.index!==!1&&L[h.index].p!==p){U||(oe=function(Se){return Math.min(X(Se),Se.p-k.bargroupwidth/2)},q=function(Se){return Math.max(te(Se),Se.p+k.bargroupwidth/2)});var de=L[h.index],ve=D.base?de.b+de.s:de.s;h[M+"0"]=h[M+"1"]=ae.c2p(de[M],!0),h[M+"LabelVal"]=ve;var ye=k.extents[k.extents.round(de.p)];h[R+"0"]=se.c2p(I?oe(de):ye[0],!0),h[R+"1"]=se.c2p(I?q(de):ye[1],!0);var _e=de.orig_p!==void 0;return h[R+"LabelVal"]=_e?de.orig_p:de.p,h.labelLabel=y(se,h[R+"LabelVal"],D[R+"hoverformat"]),h.valueLabel=y(ae,h[M+"LabelVal"],D[M+"hoverformat"]),h.baseLabel=y(ae,de.b,D[M+"hoverformat"]),h.spikeDistance=(function(Se){var Te=x,Pe=Se.b,Ie=me(Se);return c.inbox(Pe-Te,Ie-Te,Q+(Ie-Te)/(Ie-Pe)-1)}(de)+function(Se){return Y(X(Se),te(Se),Q)}(de))/2,h[R+"Spike"]=se.c2p(de.p,!0),O(de,D,h),h.hovertemplate=D.hovertemplate,h}}function u(h,m){var v=m.mcc||h.marker.color,_=m.mlcc||h.marker.line.color,S=w(h,m);return i.opacity(v)?v:i.opacity(_)&&S?_:void 0}d.exports={hoverPoints:function(h,m,v,_,S){var A=a(h,m,v,_,S);if(A){var x=A.cd,R=x[0].trace,M=x[A.index];return A.color=u(R,M),b.getComponentMethod("errorbars","hoverInfo")(M,R,A),[A]}},hoverOnBars:a,getTraceColor:u}},51132:function(d,l,n){d.exports={attributes:n(20832),layoutAttributes:n(39324),supplyDefaults:n(31508).supplyDefaults,crossTraceDefaults:n(31508).crossTraceDefaults,supplyLayoutDefaults:n(37156),calc:n(71820),crossTraceCalc:n(96376).crossTraceCalc,colorbar:n(5528),arraysToCalcdata:n(84664),plot:n(98184).plot,style:n(60100).style,styleOnSelect:n(60100).styleOnSelect,hoverPoints:n(63400).hoverPoints,eventData:n(52160),selectPoints:n(45784),moduleType:"trace",name:"bar",basePlotModule:n(57952),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},39324:function(d){d.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}},37156:function(d,l,n){var c=n(24040),b=n(54460),i=n(3400),O=n(39324),w=n(31508).validateCornerradius;d.exports=function(y,p,a){function u(T,E){return i.coerce(y,p,O,T,E)}for(var h=!1,m=!1,v=!1,_={},S=u("barmode"),A=0;A0)-(U<0)}function D(U,X){return U0}function z(U,X,te,W,K){return!(U<0||X<0)&&(te<=U&&W<=X||te<=X&&W<=U||(K?U>=te*(X/W):X>=W*(U/te)))}function $(U){return U==="auto"?0:U}function Q(U,X){var te=Math.PI/180*X,W=Math.abs(Math.sin(te)),K=Math.abs(Math.cos(te));return{x:U.width*K+U.height*W,y:U.width*W+U.height*K}}function j(U,X,te,W,K,oe){var q=!!oe.isHorizontal,Y=!!oe.constrained,ee=oe.angle||0,me=oe.anchor,he=me==="end",se=me==="start",ae=((oe.leftToRight||0)+1)/2,ce=1-ae,de=oe.hasB,ve=oe.r,ye=oe.overhead,_e=K.width,Se=K.height,Te=Math.abs(X-U),Pe=Math.abs(W-te),Ie=Te>2*T&&Pe>2*T?T:0;Te-=2*Ie,Pe-=2*Ie;var ze=$(ee);ee!=="auto"||_e<=Te&&Se<=Pe||!(_e>Te||Se>Pe)||(_e>Pe||Se>Te)&&_eT){var $e=function(Ee,Ne,je,nt,ot,Ge,ht,pt,wt){var Dt,It,qt,en,Gt=Math.max(0,Math.abs(Ne-Ee)-2*T),Ct=Math.max(0,Math.abs(nt-je)-2*T),_t=Ge-T,nn=ht?_t-Math.sqrt(_t*_t-(_t-ht)*(_t-ht)):_t,gn=wt?2*_t:pt?_t-ht:2*nn,bn=wt?2*_t:pt?2*nn:_t-ht;return ot.y/ot.x>=Ct/(Gt-gn)?en=Ct/ot.y:ot.y/ot.x<=(Ct-bn)/Gt?en=Gt/ot.x:!wt&&pt?(Dt=ot.x*ot.x+ot.y*ot.y/4,qt=(Gt-_t)*(Gt-_t)+(Ct/2-_t)*(Ct/2-_t)-_t*_t,en=(-(It=-2*ot.x*(Gt-_t)-ot.y*(Ct/2-_t))+Math.sqrt(It*It-4*Dt*qt))/(2*Dt)):wt?(Dt=(ot.x*ot.x+ot.y*ot.y)/4,qt=(Gt/2-_t)*(Gt/2-_t)+(Ct/2-_t)*(Ct/2-_t)-_t*_t,en=(-(It=-ot.x*(Gt/2-_t)-ot.y*(Ct/2-_t))+Math.sqrt(It*It-4*Dt*qt))/(2*Dt)):(Dt=ot.x*ot.x/4+ot.y*ot.y,qt=(Gt/2-_t)*(Gt/2-_t)+(Ct-_t)*(Ct-_t)-_t*_t,en=(-(It=-ot.x*(Gt/2-_t)-2*ot.y*(Ct-_t))+Math.sqrt(It*It-4*Dt*qt))/(2*Dt)),{scale:en=Math.min(1,en),pad:pt?Math.max(0,_t-Math.sqrt(Math.max(0,_t*_t-(_t-(Ct-ot.y*en)/2)*(_t-(Ct-ot.y*en)/2)))-ht):Math.max(0,_t-Math.sqrt(Math.max(0,_t*_t-(_t-(Gt-ot.x*en)/2)*(_t-(Gt-ot.x*en)/2)))-ht)}}(U,X,te,W,Ve,ve,ye,q,de);De=$e.scale,He=$e.pad}else De=1,Y&&(De=Math.min(1,Te/Ve.x,Pe/Ve.y)),He=0;var Oe=K.left*ce+K.right*ae,ke=(K.top+K.bottom)/2,Le=(U+T)*ce+(X-T)*ae,We=(te+W)/2,Ue=0,Ze=0;if(se||he){var Xe=(q?Ve.x:Ve.y)/2;ve&&(he||de)&&(Ie+=He);var tt=q?D(U,X):D(te,W);q?se?(Le=U+tt*Ie,Ue=-tt*Xe):(Le=X-tt*Ie,Ue=tt*Xe):se?(We=te+tt*Ie,Ze=-tt*Xe):(We=W-tt*Ie,Ze=tt*Xe)}return{textX:Oe,textY:ke,targetX:Le,targetY:We,anchorX:Ue,anchorY:Ze,scale:De,rotate:ze}}d.exports={plot:function(U,X,te,W,K,oe){var q=X.xaxis,Y=X.yaxis,ee=U._fullLayout,me=U._context.staticPlot;K||(K={mode:ee.barmode,norm:ee.barmode,gap:ee.bargap,groupgap:ee.bargroupgap},m("bar",ee));var he=i.makeTraceGroups(W,te,"trace bars").each(function(se){var ae=c.select(this),ce=se[0].trace,de=se[0].t,ve=ce.type==="waterfall",ye=ce.type==="funnel",_e=ce.type==="histogram",Se=ce.type==="bar",Te=Se||ye,Pe=0;ve&&ce.connector.visible&&ce.connector.mode==="between"&&(Pe=ce.connector.line.width/2);var Ie=ce.orientation==="h",ze=I(K),De=i.ensureSingle(ae,"g","points"),He=C(ce),Ve=De.selectAll("g.point").data(i.identity,He);Ve.enter().append("g").classed("point",!0),Ve.exit().remove(),Ve.each(function(Oe,ke){var Le,We,Ue=c.select(this),Ze=function(Rt,it,at,Lt){var xt=[],Ht=[],Xt=Lt?it:at,Yt=Lt?at:it;return xt[0]=Xt.c2p(Rt.s0,!0),Ht[0]=Yt.c2p(Rt.p0,!0),xt[1]=Xt.c2p(Rt.s1,!0),Ht[1]=Yt.c2p(Rt.p1,!0),Lt?[xt,Ht]:[Ht,xt]}(Oe,q,Y,Ie),Xe=Ze[0][0],tt=Ze[0][1],Ee=Ze[1][0],Ne=Ze[1][1],je=(Ie?tt-Xe:Ne-Ee)==0;if(je&&Te&&_.getLineWidth(ce,Oe)&&(je=!1),je||(je=!(b(Xe)&&b(tt)&&b(Ee)&&b(Ne))),Oe.isBlank=je,je&&(Ie?tt=Xe:Ne=Ee),Pe&&!je&&(Ie?(Xe-=D(Xe,tt)*Pe,tt+=D(Xe,tt)*Pe):(Ee-=D(Ee,Ne)*Pe,Ne+=D(Ee,Ne)*Pe)),ce.type==="waterfall"){if(!je){var nt=ce[Oe.dir].marker;Le=nt.line.width,We=nt.color}}else Le=_.getLineWidth(ce,Oe),We=Oe.mc||ce.marker.color;function ot(Rt){var it=c.round(Le/2%1,2);return K.gap===0&&K.groupgap===0?c.round(Math.round(Rt)-it,2):Rt}var Ge=w.opacity(We)<1||Le>.01?ot:function(Rt,it,at){return at&&Rt===it?Rt:Math.abs(Rt-it)>=2?ot(Rt):Rt>it?Math.ceil(Rt):Math.floor(Rt)};U._context.staticPlot||(Xe=Ge(Xe,tt,Ie),tt=Ge(tt,Xe,Ie),Ee=Ge(Ee,Ne,!Ie),Ne=Ge(Ne,Ee,!Ie));var ht,pt=Ie?q.c2p:Y.c2p;ht=Oe.s0>0?Oe._sMax:Oe.s0<0?Oe._sMin:Oe.s1>0?Oe._sMax:Oe._sMin;var wt,Dt,It=Se||_e?function(Rt,it){if(!Rt)return 0;var at,Lt=Math.abs(Ie?Ne-Ee:tt-Xe),xt=Math.abs(Ie?tt-Xe:Ne-Ee),Ht=Ge(Math.abs(pt(ht,!0)-pt(0,!0))),Xt=Oe.hasB?Math.min(Lt/2,xt/2):Math.min(Lt/2,Ht);return at=it==="%"?Lt*(Math.min(50,Rt)/100):Rt,Ge(Math.max(Math.min(at,Xt),0))}(de.cornerradiusvalue,de.cornerradiusform):0,qt="M"+Xe+","+Ee+"V"+Ne+"H"+tt+"V"+Ee+"Z",en=0;if(It&&Oe.s){var Gt=L(Oe.s0)===0||L(Oe.s)===L(Oe.s0)?Oe.s1:Oe.s0;if((en=Ge(Oe.hasB?0:Math.abs(pt(ht,!0)-pt(Gt,!0))))0?Math.sqrt(en*(2*It-en)):0,mn=Ct>0?Math.max:Math.min;wt="M"+Xe+","+Ee+"V"+(Ne-gn*_t)+"H"+mn(tt-(It-en)*Ct,Xe)+"A "+It+","+It+" 0 0 "+nn+" "+tt+","+(Ne-It*_t-bn)+"V"+(Ee+It*_t+bn)+"A "+It+","+It+" 0 0 "+nn+" "+mn(tt-(It-en)*Ct,Xe)+","+(Ee+gn*_t)+"Z"}else if(Oe.hasB)wt="M"+(Xe+It*Ct)+","+Ee+"A "+It+","+It+" 0 0 "+nn+" "+Xe+","+(Ee+It*_t)+"V"+(Ne-It*_t)+"A "+It+","+It+" 0 0 "+nn+" "+(Xe+It*Ct)+","+Ne+"H"+(tt-It*Ct)+"A "+It+","+It+" 0 0 "+nn+" "+tt+","+(Ne-It*_t)+"V"+(Ee+It*_t)+"A "+It+","+It+" 0 0 "+nn+" "+(tt-It*Ct)+","+Ee+"Z";else{var vt=(Dt=Math.abs(Ne-Ee)+en)0?Math.sqrt(en*(2*It-en)):0,lt=_t>0?Math.max:Math.min;wt="M"+(Xe+vt*Ct)+","+Ee+"V"+lt(Ne-(It-en)*_t,Ee)+"A "+It+","+It+" 0 0 "+nn+" "+(Xe+It*Ct-bt)+","+Ne+"H"+(tt-It*Ct+bt)+"A "+It+","+It+" 0 0 "+nn+" "+(tt-vt*Ct)+","+lt(Ne-(It-en)*_t,Ee)+"V"+Ee+"Z"}}else wt=qt}else wt=qt;var yt=k(i.ensureSingle(Ue,"path"),ee,K,oe);if(yt.style("vector-effect",me?"none":"non-scaling-stroke").attr("d",isNaN((tt-Xe)*(Ne-Ee))||je&&U._context.staticPlot?"M0,0Z":wt).call(y.setClipUrl,X.layerClipId,U),!ee.uniformtext.mode&&ze){var zt=y.makePointStyleFns(ce);y.singlePointStyle(Oe,yt,ce,zt,U)}(function(Rt,it,at,Lt,xt,Ht,Xt,Yt,Qt,Pt,tn,Kt,fn){var dn,vn=it.xaxis,Nn=it.yaxis,er=Rt._fullLayout;function En(bo,Bn,hr){return i.ensureSingle(bo,"text").text(Bn).attr({class:"bartext bartext-"+dn,"text-anchor":"middle","data-notex":1}).call(y.font,hr).call(O.convertToTspans,Rt)}var In=Lt[0].trace,Un=In.orientation==="h",xr=function(bo,Bn,hr,hn,zn){var Zn,yr=Bn[0].trace;return Zn=yr.texttemplate?function(gr,vr,nr,Qn,Hn){var tr=vr[0].trace,cr=i.castOption(tr,nr,"texttemplate");if(!cr)return"";var Lr,Er,Vr,to,_o=tr.type==="histogram",fr=tr.type==="waterfall",Eo=tr.type==="funnel",ao=tr.orientation==="h";function co(ra){return a(to,to.c2l(ra),!0).text}ao?(Lr="y",Er=Hn,Vr="x",to=Qn):(Lr="x",Er=Qn,Vr="y",to=Hn);var Go,po=vr[nr],qo={};qo.label=po.p,qo.labelLabel=qo[Lr+"Label"]=(Go=po.p,a(Er,Er.c2l(Go),!0).text);var Ao=i.castOption(tr,po.i,"text");(Ao===0||Ao)&&(qo.text=Ao),qo.value=po.s,qo.valueLabel=qo[Vr+"Label"]=co(po.s);var oi={};M(oi,tr,po.i),(_o||oi.x===void 0)&&(oi.x=ao?qo.value:qo.label),(_o||oi.y===void 0)&&(oi.y=ao?qo.label:qo.value),(_o||oi.xLabel===void 0)&&(oi.xLabel=ao?qo.valueLabel:qo.labelLabel),(_o||oi.yLabel===void 0)&&(oi.yLabel=ao?qo.labelLabel:qo.valueLabel),fr&&(qo.delta=+po.rawS||po.s,qo.deltaLabel=co(qo.delta),qo.final=po.v,qo.finalLabel=co(qo.final),qo.initial=qo.final-qo.delta,qo.initialLabel=co(qo.initial)),Eo&&(qo.value=po.s,qo.valueLabel=co(qo.value),qo.percentInitial=po.begR,qo.percentInitialLabel=i.formatPercent(po.begR),qo.percentPrevious=po.difR,qo.percentPreviousLabel=i.formatPercent(po.difR),qo.percentTotal=po.sumR,qo.percenTotalLabel=i.formatPercent(po.sumR));var ko=i.castOption(tr,po.i,"customdata");return ko&&(qo.customdata=ko),i.texttemplateString(cr,qo,gr._d3locale,oi,qo,tr._meta||{})}(bo,Bn,hr,hn,zn):yr.textinfo?function(gr,vr,nr,Qn){var Hn=gr[0].trace,tr=Hn.orientation==="h",cr=Hn.type==="waterfall",Lr=Hn.type==="funnel";function Er(ko){return a(tr?nr:Qn,+ko,!0).text}var Vr,to,_o=Hn.textinfo,fr=gr[vr],Eo=_o.split("+"),ao=[],co=function(ko){return Eo.indexOf(ko)!==-1};if(co("label")&&ao.push((to=gr[vr].p,a(tr?Qn:nr,to,!0).text)),co("text")&&((Vr=i.castOption(Hn,fr.i,"text"))===0||Vr)&&ao.push(Vr),cr){var Go=+fr.rawS||fr.s,po=fr.v,qo=po-Go;co("initial")&&ao.push(Er(qo)),co("delta")&&ao.push(Er(Go)),co("final")&&ao.push(Er(po))}if(Lr){co("value")&&ao.push(Er(fr.s));var Ao=0;co("percent initial")&&Ao++,co("percent previous")&&Ao++,co("percent total")&&Ao++;var oi=Ao>1;co("percent initial")&&(Vr=i.formatPercent(fr.begR),oi&&(Vr+=" of initial"),ao.push(Vr)),co("percent previous")&&(Vr=i.formatPercent(fr.difR),oi&&(Vr+=" of previous"),ao.push(Vr)),co("percent total")&&(Vr=i.formatPercent(fr.sumR),oi&&(Vr+=" of total"),ao.push(Vr))}return ao.join("
    ")}(Bn,hr,hn,zn):_.getValue(yr.text,hr),_.coerceString(x,Zn)}(er,Lt,xt,vn,Nn);dn=function(bo,Bn){var hr=_.getValue(bo.textposition,Bn);return _.coerceEnumerated(R,hr)}(In,xt);var Sr=Kt.mode==="stack"||Kt.mode==="relative",ar=Lt[xt],Fn=!Sr||ar._outmost,ir=ar.hasB,Wn=Pt&&Pt-tn>T;if(xr&&dn!=="none"&&(!ar.isBlank&&Ht!==Xt&&Yt!==Qt||dn!=="auto"&&dn!=="inside")){var Kn=er.font,_r=v.getBarColor(Lt[xt],In),Ir=v.getInsideTextFont(In,xt,Kn,_r),zr=v.getOutsideTextFont(In,xt,Kn),Fr=In.insidetextanchor||"end",Rr=at.datum();Un?vn.type==="log"&&Rr.s0<=0&&(Ht=vn.range[0]0&&so>0;br=Wn?ir?z(Pn-2*Pt,Yn,Co,so,Un)||z(Pn,Yn-2*Pt,Co,so,Un):Un?z(Pn-(Pt-tn),Yn,Co,so,Un)||z(Pn,Yn-2*(Pt-tn),Co,so,Un):z(Pn,Yn-(Pt-tn),Co,so,Un)||z(Pn-2*(Pt-tn),Yn,Co,so,Un):z(Pn,Yn,Co,so,Un),dr&&br?dn="inside":(dn="outside",$r.remove(),$r=null)}else dn="inside";if(!$r){var Cr=($r=En(at,xr,So=i.ensureUniformFontSize(Rt,dn==="outside"?zr:Ir))).attr("transform");if($r.attr("transform",""),Co=(Kr=y.bBox($r.node())).width,so=Kr.height,$r.attr("transform",Cr),Co<=0||so<=0)return void $r.remove()}var io,Qr=In.textangle;io=dn==="outside"?function(bo,Bn,hr,hn,zn,Zn){var yr,gr=!!Zn.isHorizontal,vr=!!Zn.constrained,nr=Zn.angle||0,Qn=zn.width,Hn=zn.height,tr=Math.abs(Bn-bo),cr=Math.abs(hn-hr);yr=gr?cr>2*T?T:0:tr>2*T?T:0;var Lr=1;vr&&(Lr=gr?Math.min(1,cr/Hn):Math.min(1,tr/Qn));var Er=$(nr),Vr=Q(zn,Er),to=(gr?Vr.x:Vr.y)/2,_o=(zn.left+zn.right)/2,fr=(zn.top+zn.bottom)/2,Eo=(bo+Bn)/2,ao=(hr+hn)/2,co=0,Go=0,po=gr?D(Bn,bo):D(hr,hn);return gr?(Eo=Bn-po*yr,co=po*to):(ao=hn+po*yr,Go=-po*to),{textX:_o,textY:fr,targetX:Eo,targetY:ao,anchorX:co,anchorY:Go,scale:Lr,rotate:Er}}(Ht,Xt,Yt,Qt,Kr,{isHorizontal:Un,constrained:In.constraintext==="both"||In.constraintext==="outside",angle:Qr}):j(Ht,Xt,Yt,Qt,Kr,{isHorizontal:Un,constrained:In.constraintext==="both"||In.constraintext==="inside",angle:Qr,anchor:Fr,hasB:ir,r:Pt,overhead:tn}),io.fontSize=So.size,h(In.type==="histogram"?"bar":In.type,io,er),ar.transform=io;var Wr=k($r,er,Kt,fn);i.setTransormAndDisplay(Wr,io)}else at.select("text").remove()})(U,X,Ue,se,ke,Xe,tt,Ee,Ne,It,en,K,oe),X.layerClipId&&y.hideOutsideRangePoint(Oe,Ue.select("text"),q,Y,ce.xcalendar,ce.ycalendar)});var $e=ce.cliponaxis===!1;y.setClipUrl(ae,$e?null:X.layerClipId,U)});p.getComponentMethod("errorbars","plot")(U,he,X,K)},toMoveInsideBar:j}},45784:function(d){function l(n,c,b,i,O){var w=c.c2p(i?n.s0:n.p0,!0),y=c.c2p(i?n.s1:n.p1,!0),p=b.c2p(i?n.p0:n.s0,!0),a=b.c2p(i?n.p1:n.s1,!0);return O?[(w+y)/2,(p+a)/2]:i?[y,(p+a)/2]:[(w+y)/2,a]}d.exports=function(n,c){var b,i=n.cd,O=n.xaxis,w=n.yaxis,y=i[0].trace,p=y.type==="funnel",a=y.orientation==="h",u=[];if(c===!1)for(b=0;b1||D.bargap===0&&D.bargroupgap===0&&!k[0].trace.marker.line.width)&&c.select(this).attr("shape-rendering","crispEdges")}),C.selectAll("g.points").each(function(k){v(c.select(this),k[0].trace,E)}),w.getComponentMethod("errorbars","style")(C)},styleTextPoints:_,styleOnSelect:function(E,C,L){var D=C[0].trace;D.selectedpoints?function(k,I,z){i.selectedPointStyle(k.selectAll("path"),I),function($,Q,j){$.each(function(U){var X,te=c.select(this);if(U.selected){X=O.ensureUniformFontSize(j,S(te,U,Q,j));var W=Q.selected.textfont&&Q.selected.textfont.color;W&&(X.color=W),i.font(te,X)}else i.selectedTextStyle(te,Q)})}(k.selectAll("text"),I,z)}(L,D,E):(v(L,D,E),w.getComponentMethod("errorbars","style")(L))},getInsideTextFont:x,getOutsideTextFont:R,getBarColor:T,resizeText:y}},55592:function(d,l,n){var c=n(76308),b=n(94288).hasColorscale,i=n(27260),O=n(3400).coercePattern;d.exports=function(w,y,p,a,u){var h=p("marker.color",a),m=b(w,"marker");m&&i(w,y,u,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",c.defaultLine),b(w,"marker.line")&&i(w,y,u,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),O(p,"marker.pattern",h,m),p("selected.marker.color"),p("unselected.marker.color")}},82744:function(d,l,n){var c=n(33428),b=n(3400);function i(O){return"_"+O+"Text_minsize"}d.exports={recordMinTextSize:function(O,w,y){if(y.uniformtext.mode){var p=i(O),a=y.uniformtext.minsize,u=w.scale*w.fontSize;w.hide=u_.range[1]&&(E+=Math.PI),c.getClosest(h,function(D){return x(T,E,[D.rp0,D.rp1],[D.thetag0,D.thetag1],A)?R+Math.min(1,Math.abs(D.thetag1-D.thetag0)/M)-1+(D.rp1-T)/(D.rp1-D.rp0)-1:1/0},p),p.index!==!1){var C=h[p.index];p.x0=p.x1=C.ct[0],p.y0=p.y1=C.ct[1];var L=b.extendFlat({},C,{r:C.s,theta:C.p});return O(C,m,p),w(L,m,v,p),p.hovertemplate=m.hovertemplate,p.color=i(m,C),p.xLabelVal=p.yLabelVal=void 0,C.s<0&&(p.idealAlign="left"),[p]}}},94456:function(d,l,n){d.exports={moduleType:"trace",name:"barpolar",basePlotModule:n(40872),categories:["polar","bar","showLegend"],attributes:n(78100),layoutAttributes:n(9320),supplyDefaults:n(70384),supplyLayoutDefaults:n(89580),calc:n(47056).calc,crossTraceCalc:n(47056).crossTraceCalc,plot:n(42040),colorbar:n(5528),formatLabels:n(22852),style:n(60100).style,styleOnSelect:n(60100).styleOnSelect,hoverPoints:n(68896),selectPoints:n(45784),meta:{}}},9320:function(d){d.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},89580:function(d,l,n){var c=n(3400),b=n(9320);d.exports=function(i,O,w){var y,p={};function a(m,v){return c.coerce(i[y]||{},O[y],b,m,v)}for(var u=0;u0?(D=C,k=L):(D=L,k=C);var I=[w.findEnclosingVertexAngles(D,x.vangles)[0],(D+k)/2,w.findEnclosingVertexAngles(k,x.vangles)[1]];return w.pathPolygonAnnulus(T,E,D,k,I,R,M)}:function(T,E,C,L){return i.pathAnnulus(T,E,C,L,R,M)}}(p),A=p.layers.frontplot.select("g.barlayer");i.makeTraceGroups(A,a,"trace bars").each(function(){var x=c.select(this),R=i.ensureSingle(x,"g","points").selectAll("g.point").data(i.identity);R.enter().append("g").style("vector-effect",u?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),R.exit().remove(),R.each(function(M){var T,E=c.select(this),C=M.rp0=v.c2p(M.s0),L=M.rp1=v.c2p(M.s1),D=M.thetag0=_.c2g(M.p0),k=M.thetag1=_.c2g(M.p1);if(b(C)&&b(L)&&b(D)&&b(k)&&C!==L&&D!==k){var I=v.c2g(M.s1),z=(D+k)/2;M.ct=[h.c2p(I*Math.cos(z)),m.c2p(I*Math.sin(z))],T=S(C,L,D,k)}else T="M0,0Z";i.ensureSingle(E,"path").attr("d",T)}),O.setClipUrl(x,p._hasClipOnAxisFalse?p.clipIds.forTraces:null,y)})}},63188:function(d,l,n){var c=n(52904),b=n(20832),i=n(22548),O=n(29736).axisHoverFormat,w=n(21776).Ks,y=n(92880).extendFlat,p=c.marker,a=p.line;d.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:c.xperiod,yperiod:c.yperiod,xperiod0:c.xperiod0,yperiod0:c.yperiod0,xperiodalignment:c.xperiodalignment,yperiodalignment:c.yperiodalignment,xhoverformat:O("x"),yhoverformat:O("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:y({},p.symbol,{arrayOk:!1,editType:"plot"}),opacity:y({},p.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:y({},p.angle,{arrayOk:!1,editType:"calc"}),size:y({},p.size,{arrayOk:!1,editType:"calc"}),color:y({},p.color,{arrayOk:!1,editType:"style"}),line:{color:y({},a.color,{arrayOk:!1,dflt:i.defaultLine,editType:"style"}),width:y({},a.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:c.fillcolor,whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:b.offsetgroup,alignmentgroup:b.alignmentgroup,selected:{marker:c.selected.marker,editType:"style"},unselected:{marker:c.unselected.marker,editType:"style"},text:y({},c.text,{}),hovertext:y({},c.hovertext,{}),hovertemplate:w({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},62555:function(d,l,n){var c=n(38248),b=n(54460),i=n(1220),O=n(3400),w=n(39032).BADNUM,y=O._;d.exports=function(x,R){var M,T,E,C,L,D,k,I=x._fullLayout,z=b.getFromId(x,R.xaxis||"x"),$=b.getFromId(x,R.yaxis||"y"),Q=[],j=R.type==="violin"?"_numViolins":"_numBoxes";R.orientation==="h"?(E=z,C="x",L=$,D="y",k=!!R.yperiodalignment):(E=$,C="y",L=z,D="x",k=!!R.xperiodalignment);var U,X,te,W,K,oe,q=function(ot,Ge,ht,pt){var wt,Dt=Ge+"0"in ot;if(Ge in ot||Dt&&"d"+Ge in ot){var It=ht.makeCalcdata(ot,Ge);return[i(ot,ht,Ge,It).vals,It]}wt=Dt?ot[Ge+"0"]:"name"in ot&&(ht.type==="category"||c(ot.name)&&["linear","log"].indexOf(ht.type)!==-1||O.isDateTime(ot.name)&&ht.type==="date")?ot.name:pt;for(var qt=ht.type==="multicategory"?ht.r2c_just_indices(wt):ht.d2c(wt,0,ot[Ge+"calendar"]),en=ot._length,Gt=new Array(en),Ct=0;CtU.uf};if(R._hasPreCompStats){var ce=R[C],de=function(ot){return E.d2c((R[ot]||[])[M])},ve=1/0,ye=-1/0;for(M=0;M=U.q1&&U.q3>=U.med){var Se=de("lowerfence");U.lf=Se!==w&&Se<=U.q1?Se:m(U,te,W);var Te=de("upperfence");U.uf=Te!==w&&Te>=U.q3?Te:v(U,te,W);var Pe=de("mean");U.mean=Pe!==w?Pe:W?O.mean(te,W):(U.q1+U.q3)/2;var Ie=de("sd");U.sd=Pe!==w&&Ie>=0?Ie:W?O.stdev(te,W,U.mean):U.q3-U.q1,U.lo=_(U),U.uo=S(U);var ze=de("notchspan");ze=ze!==w&&ze>0?ze:A(U,W),U.ln=U.med-ze,U.un=U.med+ze;var De=U.lf,He=U.uf;R.boxpoints&&te.length&&(De=Math.min(De,te[0]),He=Math.max(He,te[W-1])),R.notched&&(De=Math.min(De,U.ln),He=Math.max(He,U.un)),U.min=De,U.max=He}else{var Ve;O.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+U.q1,"median = "+U.med,"q3 = "+U.q3].join(` -`)),Ve=U.med!==w?U.med:U.q1!==w?U.q3!==w?(U.q1+U.q3)/2:U.q1:U.q3!==w?U.q3:0,U.med=Ve,U.q1=U.q3=Ve,U.lf=U.uf=Ve,U.mean=U.sd=Ve,U.ln=U.un=Ve,U.min=U.max=Ve}ve=Math.min(ve,U.min),ye=Math.max(ye,U.max),U.pts2=X.filter(ae),Q.push(U)}}R._extremes[E._id]=b.findExtremes(E,[ve,ye],{padded:!0})}else{var $e=E.makeCalcdata(R,C),Oe=function(ot,Ge){for(var ht=ot.length,pt=new Array(ht+1),wt=0;wt=0&&We0){var Ne,je;(U={}).pos=U[D]=he[M],X=U.pts=Le[M].sort(u),W=(te=U[C]=X.map(h)).length,U.min=te[0],U.max=te[W-1],U.mean=O.mean(te,W),U.sd=O.stdev(te,W,U.mean)*R.sdmultiple,U.med=O.interp(te,.5),W%2&&(tt||Ee)?(tt?(Ne=te.slice(0,W/2),je=te.slice(W/2+1)):Ee&&(Ne=te.slice(0,W/2+1),je=te.slice(W/2)),U.q1=O.interp(Ne,.5),U.q3=O.interp(je,.5)):(U.q1=O.interp(te,.25),U.q3=O.interp(te,.75)),U.lf=m(U,te,W),U.uf=v(U,te,W),U.lo=_(U),U.uo=S(U);var nt=A(U,W);U.ln=U.med-nt,U.un=U.med+nt,Ue=Math.min(Ue,U.ln),Ze=Math.max(Ze,U.un),U.pts2=X.filter(ae),Q.push(U)}R.notched&&O.isTypedArray($e)&&($e=Array.from($e)),R._extremes[E._id]=b.findExtremes(E,R.notched?$e.concat([Ue,Ze]):$e,{padded:!0})}return function(ot,Ge){if(O.isArrayOrTypedArray(Ge.selectedpoints))for(var ht=0;ht0?(Q[0].t={num:I[j],dPos:se,posLetter:D,valLetter:C,labels:{med:y(x,"median:"),min:y(x,"min:"),q1:y(x,"q1:"),q3:y(x,"q3:"),max:y(x,"max:"),mean:R.boxmean==="sd"||R.sizemode==="sd"?y(x,"mean ± σ:").replace("σ",R.sdmultiple===1?"σ":R.sdmultiple+"σ"):y(x,"mean:"),lf:y(x,"lower fence:"),uf:y(x,"upper fence:")}},I[j]++,Q):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function a(x,R,M){for(var T in p)O.isArrayOrTypedArray(R[T])&&(Array.isArray(M)?O.isArrayOrTypedArray(R[T][M[0]])&&(x[p[T]]=R[T][M[0]][M[1]]):x[p[T]]=R[T][M])}function u(x,R){return x.v-R.v}function h(x){return x.v}function m(x,R,M){return M===0?x.q1:Math.min(x.q1,R[Math.min(O.findBin(2.5*x.q1-1.5*x.q3,R,!0)+1,M-1)])}function v(x,R,M){return M===0?x.q3:Math.max(x.q3,R[Math.max(O.findBin(2.5*x.q3-1.5*x.q1,R),0)])}function _(x){return 4*x.q1-3*x.q3}function S(x){return 4*x.q3-3*x.q1}function A(x,R){return R===0?0:1.57*(x.q3-x.q1)/Math.sqrt(R)}},96404:function(d,l,n){var c=n(54460),b=n(3400),i=n(71888).getAxisGroup,O=["v","h"];function w(y,p,a,u){var h,m,v,_=p.calcdata,S=p._fullLayout,A=u._id,x=A.charAt(0),R=[],M=0;for(h=0;h1,D=1-S[y+"gap"],k=1-S[y+"groupgap"];for(h=0;h0){var _e=X.pointpos,Se=X.jitter,Te=X.marker.size/2,Pe=0;_e+Se>=0&&((Pe=ve*(_e+Se))>j?(ye=!0,ce=Te,se=Pe):Pe>me&&(ce=Te,se=j)),Pe<=j&&(se=j);var Ie=0;_e-Se<=0&&((Ie=-ve*(_e-Se))>U?(ye=!0,de=Te,ae=Ie):Ie>he&&(de=Te,ae=U)),Ie<=U&&(ae=U)}else se=j,ae=U;var ze=new Array(v.length);for(m=0;m0?(L="v",D=I>0?Math.min($,z):Math.min(z)):I>0?(L="h",D=Math.min($)):D=0;if(D){m._length=D;var W=v("orientation",L);m._hasPreCompStats?W==="v"&&I===0?(v("x0",0),v("dx",1)):W==="h"&&k===0&&(v("y0",0),v("dy",1)):W==="v"&&I===0?v("x0"):W==="h"&&k===0&&v("y0"),b.getComponentMethod("calendars","handleTraceDefaults")(h,m,["x","y"],_)}else m.visible=!1}function u(h,m,v,_){var S=_.prefix,A=c.coerce2(h,m,p,"marker.outliercolor"),x=v("marker.line.outliercolor"),R="outliers";m._hasPreCompStats?R="all":(A||x)&&(R="suspectedoutliers");var M=v(S+"points",R);M?(v("jitter",M==="all"?.3:0),v("pointpos",M==="all"?-1.5:0),v("marker.symbol"),v("marker.opacity"),v("marker.size"),v("marker.angle"),v("marker.color",m.line.color),v("marker.line.color"),v("marker.line.width"),M==="suspectedoutliers"&&(v("marker.line.outliercolor",m.marker.color),v("marker.line.outlierwidth")),v("selected.marker.color"),v("unselected.marker.color"),v("selected.marker.size"),v("unselected.marker.size"),v("text"),v("hovertext")):delete m.marker;var T=v("hoveron");T!=="all"&&T.indexOf("points")===-1||v("hovertemplate"),c.coerceSelectionMarkerOpacity(m,v)}d.exports={supplyDefaults:function(h,m,v,_){function S(D,k){return c.coerce(h,m,p,D,k)}if(a(h,m,S,_),m.visible!==!1){O(h,m,_,S),S("xhoverformat"),S("yhoverformat");var A=m._hasPreCompStats;A&&(S("lowerfence"),S("upperfence")),S("line.color",(h.marker||{}).color||v),S("line.width"),S("fillcolor",i.addOpacity(m.line.color,.5));var x=!1;if(A){var R=S("mean"),M=S("sd");R&&R.length&&(x=!0,M&&M.length&&(x="sd"))}S("whiskerwidth");var T,E=S("sizemode");E==="quartiles"&&(T=S("boxmean",x)),S("showwhiskers",E==="quartiles"),E!=="sd"&&T!=="sd"||S("sdmultiple"),S("width"),S("quartilemethod");var C=!1;if(A){var L=S("notchspan");L&&L.length&&(C=!0)}else c.validate(h.notchwidth,p.notchwidth)&&(C=!0);S("notched",C)&&S("notchwidth"),u(h,m,S,{prefix:"box"})}},crossTraceDefaults:function(h,m){var v,_;function S(R){return c.coerce(_._input,_,p,R)}for(var A=0;AM.lo&&(te.so=!0)}return C});R.enter().append("path").classed("point",!0),R.exit().remove(),R.call(i.translatePoints,m,v)}function y(p,a,u,h){var m,v,_=a.val,S=a.pos,A=!!S.rangebreaks,x=h.bPos,R=h.bPosPxOffset||0,M=u.boxmean||(u.meanline||{}).visible;Array.isArray(h.bdPos)?(m=h.bdPos[0],v=h.bdPos[1]):(m=h.bdPos,v=h.bdPos);var T=p.selectAll("path.mean").data(u.type==="box"&&u.boxmean||u.type==="violin"&&u.box.visible&&u.meanline.visible?b.identity:[]);T.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),T.exit().remove(),T.each(function(E){var C=S.c2l(E.pos+x,!0),L=S.l2p(C-m)+R,D=S.l2p(C+v)+R,k=A?(L+D)/2:S.l2p(C)+R,I=_.c2p(E.mean,!0),z=_.c2p(E.mean-E.sd,!0),$=_.c2p(E.mean+E.sd,!0);u.orientation==="h"?c.select(this).attr("d","M"+I+","+L+"V"+D+(M==="sd"?"m0,0L"+z+","+k+"L"+I+","+L+"L"+$+","+k+"Z":"")):c.select(this).attr("d","M"+L+","+I+"H"+D+(M==="sd"?"m0,0L"+k+","+z+"L"+L+","+I+"L"+k+","+$+"Z":""))})}d.exports={plot:function(p,a,u,h){var m=p._context.staticPlot,v=a.xaxis,_=a.yaxis;b.makeTraceGroups(h,u,"trace boxes").each(function(S){var A,x,R=c.select(this),M=S[0],T=M.t,E=M.trace;T.wdPos=T.bdPos*E.whiskerwidth,E.visible!==!0||T.empty?R.remove():(E.orientation==="h"?(A=_,x=v):(A=v,x=_),O(R,{pos:A,val:x},E,T,m),w(R,{x:v,y:_},E,T),y(R,{pos:A,val:x},E,T))})},plotBoxAndWhiskers:O,plotPoints:w,plotBoxMean:y}},8264:function(d){d.exports=function(l,n){var c,b,i=l.cd,O=l.xaxis,w=l.yaxis,y=[];if(n===!1)for(c=0;c=10)return null;for(var w=1/0,y=-1/0,p=i.length,a=0;a0?Math.floor:Math.ceil,W=U>0?Math.ceil:Math.floor,K=U>0?Math.min:Math.max,oe=U>0?Math.max:Math.min,q=te(Q+X),Y=W(j-X),ee=[[v=$(Q)]];for(y=q;y*U=0;i--)O[u-i]=l[h][i],w[u-i]=n[h][i];for(y.push({x:O,y:w,bicubic:p}),i=h,O=[],w=[];i>=0;i--)O[h-i]=l[i][0],w[h-i]=n[i][0];return y.push({x:O,y:w,bicubic:a}),y}},19216:function(d,l,n){var c=n(54460),b=n(92880).extendFlat;d.exports=function(i,O,w){var y,p,a,u,h,m,v,_,S,A,x,R,M,T,E=i["_"+O],C=i[O+"axis"],L=C._gridlines=[],D=C._minorgridlines=[],k=C._boundarylines=[],I=i["_"+w],z=i[w+"axis"];C.tickmode==="array"&&(C.tickvals=E.slice());var $=i._xctrl,Q=i._yctrl,j=$[0].length,U=$.length,X=i._a.length,te=i._b.length;c.prepTicks(C),C.tickmode==="array"&&delete C.tickvals;var W=C.smoothing?3:1;function K(q){var Y,ee,me,he,se,ae,ce,de,ve,ye,_e,Se,Te=[],Pe=[],Ie={};if(O==="b")for(ee=i.b2j(q),me=Math.floor(Math.max(0,Math.min(te-2,ee))),he=ee-me,Ie.length=te,Ie.crossLength=X,Ie.xy=function(ze){return i.evalxy([],ze,ee)},Ie.dxy=function(ze,De){return i.dxydi([],ze,me,De,he)},Y=0;Y0&&(ve=i.dxydi([],Y-1,me,0,he),Te.push(se[0]+ve[0]/3),Pe.push(se[1]+ve[1]/3),ye=i.dxydi([],Y-1,me,1,he),Te.push(de[0]-ye[0]/3),Pe.push(de[1]-ye[1]/3)),Te.push(de[0]),Pe.push(de[1]),se=de;else for(Y=i.a2i(q),ae=Math.floor(Math.max(0,Math.min(X-2,Y))),ce=Y-ae,Ie.length=X,Ie.crossLength=te,Ie.xy=function(ze){return i.evalxy([],Y,ze)},Ie.dxy=function(ze,De){return i.dxydj([],ae,ze,ce,De)},ee=0;ee0&&(_e=i.dxydj([],ae,ee-1,ce,0),Te.push(se[0]+_e[0]/3),Pe.push(se[1]+_e[1]/3),Se=i.dxydj([],ae,ee-1,ce,1),Te.push(de[0]-Se[0]/3),Pe.push(de[1]-Se[1]/3)),Te.push(de[0]),Pe.push(de[1]),se=de;return Ie.axisLetter=O,Ie.axis=C,Ie.crossAxis=z,Ie.value=q,Ie.constvar=w,Ie.index=_,Ie.x=Te,Ie.y=Pe,Ie.smoothing=z.smoothing,Ie}function oe(q){var Y,ee,me,he,se,ae=[],ce=[],de={};if(de.length=E.length,de.crossLength=I.length,O==="b")for(me=Math.max(0,Math.min(te-2,q)),se=Math.min(1,Math.max(0,q-me)),de.xy=function(ve){return i.evalxy([],ve,q)},de.dxy=function(ve,ye){return i.dxydi([],ve,me,ye,se)},Y=0;YE.length-1||L.push(b(oe(p),{color:C.gridcolor,width:C.gridwidth,dash:C.griddash}));for(_=m;_E.length-1||x<0||x>E.length-1))for(R=E[a],M=E[x],y=0;yE[E.length-1]||D.push(b(K(A),{color:C.minorgridcolor,width:C.minorgridwidth,dash:C.minorgriddash}));C.startline&&k.push(b(oe(0),{color:C.startlinecolor,width:C.startlinewidth})),C.endline&&k.push(b(oe(E.length-1),{color:C.endlinecolor,width:C.endlinewidth}))}else{for(u=5e-15,m=(h=[Math.floor((E[E.length-1]-C.tick0)/C.dtick*(1+u)),Math.ceil((E[0]-C.tick0)/C.dtick/(1+u))].sort(function(q,Y){return q-Y}))[0],v=h[1],_=m;_<=v;_++)S=C.tick0+C.dtick*_,L.push(b(K(S),{color:C.gridcolor,width:C.gridwidth,dash:C.griddash}));for(_=m-1;_E[E.length-1]||D.push(b(K(A),{color:C.minorgridcolor,width:C.minorgridwidth,dash:C.minorgriddash}));C.startline&&k.push(b(K(E[0]),{color:C.startlinecolor,width:C.startlinewidth})),C.endline&&k.push(b(K(E[E.length-1]),{color:C.endlinecolor,width:C.endlinewidth}))}}},14724:function(d,l,n){var c=n(54460),b=n(92880).extendFlat;d.exports=function(i,O){var w,y,p,a=O._labels=[],u=O._gridlines;for(w=0;wi.length&&(b=b.slice(0,i.length)):b=[],w=0;w90&&(v-=180,p=-p),{angle:v,flip:p,p:l.c2p(b,n,c),offsetMultplier:a}}},164:function(d,l,n){var c=n(33428),b=n(43616),i=n(87072),O=n(53416),w=n(15584),y=n(72736),p=n(3400),a=p.strRotate,u=p.strTranslate,h=n(84284);function m(x,R,M,T,E,C,L){var D="const-"+E+"-lines",k=M.selectAll("."+D).data(C);k.enter().append("path").classed(D,!0).style("vector-effect",L?"none":"non-scaling-stroke"),k.each(function(I){var z=I,$=z.x,Q=z.y,j=i([],$,x.c2p),U=i([],Q,R.c2p),X="M"+O(j,U,z.smoothing);c.select(this).attr("d",X).style("stroke-width",z.width).style("stroke",z.color).style("stroke-dasharray",b.dashStyle(z.dash,z.width)).style("fill","none")}),k.exit().remove()}function v(x,R,M,T,E,C,L,D){var k=C.selectAll("text."+D).data(L);k.enter().append("text").classed(D,!0);var I=0,z={};return k.each(function($,Q){var j;if($.axis.tickangle==="auto")j=w(T,R,M,$.xy,$.dxy);else{var U=($.axis.tickangle+180)*Math.PI/180;j=w(T,R,M,$.xy,[Math.cos(U),Math.sin(U)])}Q||(z={angle:j.angle,flip:j.flip});var X=($.endAnchor?-1:1)*j.flip,te=c.select(this).attr({"text-anchor":X>0?"start":"end","data-notex":1}).call(b.font,$.font).text($.text).call(y.convertToTspans,x),W=b.bBox(this);te.attr("transform",u(j.p[0],j.p[1])+a(j.angle)+u($.axis.labelpadding*X,.3*W.height)),I=Math.max(I,W.width+$.axis.labelpadding)}),k.exit().remove(),z.maxExtent=I,z}d.exports=function(x,R,M,T){var E=x._context.staticPlot,C=R.xaxis,L=R.yaxis,D=x._fullLayout._clips;p.makeTraceGroups(T,M,"trace").each(function(k){var I=c.select(this),z=k[0],$=z.trace,Q=$.aaxis,j=$.baxis,U=p.ensureSingle(I,"g","minorlayer"),X=p.ensureSingle(I,"g","majorlayer"),te=p.ensureSingle(I,"g","boundarylayer"),W=p.ensureSingle(I,"g","labellayer");I.style("opacity",$.opacity),m(C,L,X,0,"a",Q._gridlines,!0),m(C,L,X,0,"b",j._gridlines,!0),m(C,L,U,0,"a",Q._minorgridlines,!0),m(C,L,U,0,"b",j._minorgridlines,!0),m(C,L,te,0,"a-boundary",Q._boundarylines,E),m(C,L,te,0,"b-boundary",j._boundarylines,E);var K=v(x,C,L,$,0,W,Q._labels,"a-label"),oe=v(x,C,L,$,0,W,j._labels,"b-label");(function(q,Y,ee,me,he,se,ae,ce){var de,ve,ye,_e,Se=p.aggNums(Math.min,null,ee.a),Te=p.aggNums(Math.max,null,ee.a),Pe=p.aggNums(Math.min,null,ee.b),Ie=p.aggNums(Math.max,null,ee.b);de=.5*(Se+Te),ve=Pe,ye=ee.ab2xy(de,ve,!0),_e=ee.dxyda_rough(de,ve),ae.angle===void 0&&p.extendFlat(ae,w(ee,he,se,ye,ee.dxydb_rough(de,ve))),A(q,Y,ee,0,ye,_e,ee.aaxis,he,se,ae,"a-title"),de=Se,ve=.5*(Pe+Ie),ye=ee.ab2xy(de,ve,!0),_e=ee.dxydb_rough(de,ve),ce.angle===void 0&&p.extendFlat(ce,w(ee,he,se,ye,ee.dxyda_rough(de,ve))),A(q,Y,ee,0,ye,_e,ee.baxis,he,se,ce,"b-title")})(x,W,$,0,C,L,K,oe),function(q,Y,ee,me,he){var se,ae,ce,de,ve=ee.select("#"+q._clipPathId);ve.size()||(ve=ee.append("clipPath").classed("carpetclip",!0));var ye=p.ensureSingle(ve,"path","carpetboundary"),_e=Y.clipsegments,Se=[];for(de=0;de<_e.length;de++)se=_e[de],ae=i([],se.x,me.c2p),ce=i([],se.y,he.c2p),Se.push(O(ae,ce,se.bicubic));var Te="M"+Se.join("L")+"Z";ve.attr("id",q._clipPathId),ye.attr("d",Te)}($,z,D,C,L)})};var _=h.LINE_SPACING,S=(1-h.MID_SHIFT)/_+1;function A(x,R,M,T,E,C,L,D,k,I,z){var $=[];L.title.text&&$.push(L.title.text);var Q=R.selectAll("text."+z).data($),j=I.maxExtent;Q.enter().append("text").classed(z,!0),Q.each(function(){var U=w(M,D,k,E,C);["start","both"].indexOf(L.showticklabels)===-1&&(j=0);var X=L.title.font.size;j+=X+L.title.offset;var te=(I.angle+(I.flip<0?180:0)-U.angle+450)%360,W=te>90&&te<270,K=c.select(this);K.text(L.title.text).call(y.convertToTspans,x),W&&(j=(-y.lineCount(K)+S)*_*X-j),K.attr("transform",u(U.p[0],U.p[1])+a(U.angle)+u(0,j)).attr("text-anchor","middle").call(b.font,L.title.font)}),Q.exit().remove()}},81e3:function(d,l,n){var c=n(24588),b=n(14952).findBin,i=n(30180),O=n(29056),w=n(26435),y=n(24464);d.exports=function(p){var a=p._a,u=p._b,h=a.length,m=u.length,v=p.aaxis,_=p.baxis,S=a[0],A=a[h-1],x=u[0],R=u[m-1],M=a[a.length-1]-a[0],T=u[u.length-1]-u[0],E=M*c.RELATIVE_CULL_TOLERANCE,C=T*c.RELATIVE_CULL_TOLERANCE;S-=E,A+=E,x-=C,R+=C,p.isVisible=function(L,D){return L>S&&Lx&&DA||DR},p.setScale=function(){var L=p._x,D=p._y,k=i(p._xctrl,p._yctrl,L,D,v.smoothing,_.smoothing);p._xctrl=k[0],p._yctrl=k[1],p.evalxy=O([p._xctrl,p._yctrl],h,m,v.smoothing,_.smoothing),p.dxydi=w([p._xctrl,p._yctrl],v.smoothing,_.smoothing),p.dxydj=y([p._xctrl,p._yctrl],v.smoothing,_.smoothing)},p.i2a=function(L){var D=Math.max(0,Math.floor(L[0]),h-2),k=L[0]-D;return(1-k)*a[D]+k*a[D+1]},p.j2b=function(L){var D=Math.max(0,Math.floor(L[1]),h-2),k=L[1]-D;return(1-k)*u[D]+k*u[D+1]},p.ij2ab=function(L){return[p.i2a(L[0]),p.j2b(L[1])]},p.a2i=function(L){var D=Math.max(0,Math.min(b(L,a),h-2)),k=a[D],I=a[D+1];return Math.max(0,Math.min(h-1,D+(L-k)/(I-k)))},p.b2j=function(L){var D=Math.max(0,Math.min(b(L,u),m-2)),k=u[D],I=u[D+1];return Math.max(0,Math.min(m-1,D+(L-k)/(I-k)))},p.ab2ij=function(L){return[p.a2i(L[0]),p.b2j(L[1])]},p.i2c=function(L,D){return p.evalxy([],L,D)},p.ab2xy=function(L,D,k){if(!k&&(La[h-1]|Du[m-1]))return[!1,!1];var I=p.a2i(L),z=p.b2j(D),$=p.evalxy([],I,z);if(k){var Q,j,U,X,te=0,W=0,K=[];La[h-1]?(Q=h-2,j=1,te=(L-a[h-1])/(a[h-1]-a[h-2])):j=I-(Q=Math.max(0,Math.min(h-2,Math.floor(I)))),Du[m-1]?(U=m-2,X=1,W=(D-u[m-1])/(u[m-1]-u[m-2])):X=z-(U=Math.max(0,Math.min(m-2,Math.floor(z)))),te&&(p.dxydi(K,Q,U,j,X),$[0]+=K[0]*te,$[1]+=K[1]*te),W&&(p.dxydj(K,Q,U,j,X),$[0]+=K[0]*W,$[1]+=K[1]*W)}return $},p.c2p=function(L,D,k){return[D.c2p(L[0]),k.c2p(L[1])]},p.p2x=function(L,D,k){return[D.p2c(L[0]),k.p2c(L[1])]},p.dadi=function(L){var D=Math.max(0,Math.min(a.length-2,L));return a[D+1]-a[D]},p.dbdj=function(L){var D=Math.max(0,Math.min(u.length-2,L));return u[D+1]-u[D]},p.dxyda=function(L,D,k,I){var z=p.dxydi(null,L,D,k,I),$=p.dadi(L,k);return[z[0]/$,z[1]/$]},p.dxydb=function(L,D,k,I){var z=p.dxydj(null,L,D,k,I),$=p.dbdj(D,I);return[z[0]/$,z[1]/$]},p.dxyda_rough=function(L,D,k){var I=M*(k||.1),z=p.ab2xy(L+I,D,!0),$=p.ab2xy(L-I,D,!0);return[.5*(z[0]-$[0])/I,.5*(z[1]-$[1])/I]},p.dxydb_rough=function(L,D,k){var I=T*(k||.1),z=p.ab2xy(L,D+I,!0),$=p.ab2xy(L,D-I,!0);return[.5*(z[0]-$[0])/I,.5*(z[1]-$[1])/I]},p.dpdx=function(L){return L._m},p.dpdy=function(L){return L._m}}},51512:function(d,l,n){var c=n(3400);d.exports=function(b,i,O){var w,y,p,a=[],u=[],h=b[0].length,m=b.length;function v(q,Y){var ee,me=0,he=0;return q>0&&(ee=b[Y][q-1])!==void 0&&(he++,me+=ee),q0&&(ee=b[Y-1][q])!==void 0&&(he++,me+=ee),Y0&&y0&&w1e-5);return c.log("Smoother converged to",I,"after",z,"iterations"),b}},86411:function(d,l,n){var c=n(3400).isArray1D;d.exports=function(b,i,O){var w=O("x"),y=w&&w.length,p=O("y"),a=p&&p.length;if(!y&&!a)return!1;if(i._cheater=!w,y&&!c(w)||a&&!c(p))i._length=null;else{var u=y?w.length:1/0;a&&(u=Math.min(u,p.length)),i.a&&i.a.length&&(u=Math.min(u,i.a.length)),i.b&&i.b.length&&(u=Math.min(u,i.b.length)),i._length=u}return!0}},83372:function(d,l,n){var c=n(21776).Ks,b=n(6096),i=n(49084),O=n(45464),w=n(22548).defaultLine,y=n(92880).extendFlat,p=b.marker.line;d.exports=y({locations:{valType:"data_array",editType:"calc"},locationmode:b.locationmode,z:{valType:"data_array",editType:"calc"},geojson:y({},b.geojson,{}),featureidkey:b.featureidkey,text:y({},b.text,{}),hovertext:y({},b.hovertext,{}),marker:{line:{color:y({},p.color,{dflt:w}),width:y({},p.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:b.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:b.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:y({},O.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:c(),showlegend:y({},O.showlegend,{dflt:!1})},i("",{cLetter:"z",editTypeOverride:"calc"}))},7924:function(d,l,n){var c=n(38248),b=n(39032).BADNUM,i=n(47128),O=n(20148),w=n(4500);function y(p){return p&&typeof p=="string"}d.exports=function(p,a){var u,h=a._length,m=new Array(h);u=a.geojson?function(x){return y(x)||c(x)}:y;for(var v=0;v")}}(O,v,p),[O]}},54272:function(d,l,n){d.exports={attributes:n(83372),supplyDefaults:n(30972),colorbar:n(96288),calc:n(7924),calcGeoJSON:n(88364).calcGeoJSON,plot:n(88364).plot,style:n(7947).style,styleOnSelect:n(7947).styleOnSelect,hoverPoints:n(69224),eventData:n(52428),selectPoints:n(17328),moduleType:"trace",name:"choropleth",basePlotModule:n(10816),categories:["geo","noOpacity","showLegend"],meta:{}}},88364:function(d,l,n){var c=n(33428),b=n(3400),i=n(27144),O=n(59972).getTopojsonFeatures,w=n(19280).findExtremes,y=n(7947).style;d.exports={calcGeoJSON:function(p,a){for(var u=p[0].trace,h=a[u.geo],m=h._subplot,v=u.locationmode,_=u._length,S=v==="geojson-id"?i.extractTraceFeature(p):O(u,m.topojson),A=[],x=[],R=0;R<_;R++){var M=p[R],T=v==="geojson-id"?M.fOut:i.locationToFeature(v,M.loc,S);if(T){M.geojson=T,M.ct=T.properties.ct,M._polygons=i.feature2polygons(T);var E=i.computeBbox(T);A.push(E[0],E[2]),x.push(E[1],E[3])}else M.geojson=null}if(h.fitbounds==="geojson"&&v==="geojson-id"){var C=i.computeBbox(i.getTraceGeojson(u));A=[C[0],C[2]],x=[C[1],C[3]]}var L={padded:!0};u._extremes.lon=w(h.lonaxis._ax,A,L),u._extremes.lat=w(h.lataxis._ax,x,L)},plot:function(p,a,u){var h=a.layers.backplot.select(".choroplethlayer");b.makeTraceGroups(h,u,"trace choropleth").each(function(m){var v=c.select(this).selectAll("path.choroplethlocation").data(b.identity);v.enter().append("path").classed("choroplethlocation",!0),v.exit().remove(),y(p,m)})}}},17328:function(d){d.exports=function(l,n){var c,b,i,O,w,y=l.cd,p=l.xaxis,a=l.yaxis,u=[];if(n===!1)for(c=0;c=0;O--){var w=i[O].id;if(typeof w=="string"&&w.indexOf("water")===0){for(var y=O+1;y=0;a--)y.removeLayer(p[a][1])},w.dispose=function(){var y=this.subplot.map;this._removeLayers(),y.removeSource(this.sourceId)},d.exports=function(y,p){var a=p[0].trace,u=new O(y,a.uid),h=u.sourceId,m=c(p),v=u.below=y.belowLookup["trace-"+a.uid];return y.map.addSource(h,{type:"geojson",data:m.geojson}),u._addLayers(m,v),p[0].trace._glTrace=u,u}},86040:function(d,l,n){var c=n(49084),b=n(29736).axisHoverFormat,i=n(21776).Ks,O=n(52948),w=n(45464),y=n(92880).extendFlat,p={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"},{keys:["norm"]}),uhoverformat:b("u",1),vhoverformat:b("v",1),whoverformat:b("w",1),xhoverformat:b("x"),yhoverformat:b("y"),zhoverformat:b("z"),showlegend:y({},w.showlegend,{dflt:!1})};y(p,c("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"})),["opacity","lightposition","lighting"].forEach(function(a){p[a]=O[a]}),p.hoverinfo=y({},w.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),p.transforms=void 0,d.exports=p},83344:function(d,l,n){var c=n(47128);d.exports=function(b,i){for(var O=i.u,w=i.v,y=i.w,p=Math.min(i.x.length,i.y.length,i.z.length,O.length,w.length,y.length),a=-1/0,u=1/0,h=0;hw.level||w.starts.length&&O===w.level)}break;case"constraint":if(b.prefixBoundary=!1,b.edgepaths.length)return;var y=b.x.length,p=b.y.length,a=-1/0,u=1/0;for(c=0;c":v>a&&(b.prefixBoundary=!0);break;case"<":(va||b.starts.length&&m===u)&&(b.prefixBoundary=!0);break;case"][":h=Math.min(v[0],v[1]),m=Math.max(v[0],v[1]),ha&&(b.prefixBoundary=!0)}}}},55296:function(d,l,n){var c=n(8932),b=n(41076),i=n(46960);d.exports={min:"zmin",max:"zmax",calc:function(O,w,y){var p=w.contours,a=w.line,u=p.size||1,h=p.coloring,m=b(w,{isColorbar:!0});if(h==="heatmap"){var v=c.extractOpts(w);y._fillgradient=v.reversescale?c.flipScale(v.colorscale):v.colorscale,y._zrange=[v.min,v.max]}else h==="fill"&&(y._fillcolor=m);y._line={color:h==="lines"?m:a.color,width:p.showlines!==!1?a.width:0,dash:a.dash},y._levels={start:p.start,end:i(p),size:u}}}},93252:function(d){d.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},95536:function(d,l,n){var c=n(38248),b=n(17428),i=n(76308),O=i.addOpacity,w=i.opacity,y=n(69104),p=n(3400).isArrayOrTypedArray,a=y.CONSTRAINT_REDUCTION,u=y.COMPARISON_OPS2;d.exports=function(h,m,v,_,S,A){var x,R,M,T=m.contours,E=v("contours.operation");T._operation=a[E],function(C,L){var D;u.indexOf(L.operation)===-1?(C("contours.value",[0,1]),p(L.value)?L.value.length>2?L.value=L.value.slice(2):L.length===0?L.value=[0,1]:L.length<2?(D=parseFloat(L.value[0]),L.value=[D,D+1]):L.value=[parseFloat(L.value[0]),parseFloat(L.value[1])]:c(L.value)&&(D=parseFloat(L.value),L.value=[D,D+1])):(C("contours.value",0),c(L.value)||(p(L.value)?L.value=parseFloat(L.value[0]):L.value=0))}(v,T),E==="="?x=T.showlines=!0:(x=v("contours.showlines"),M=v("fillcolor",O((h.line||{}).color||S,.5))),x&&(R=v("line.color",M&&w(M)?O(m.fillcolor,1):S),v("line.width",2),v("line.dash")),v("line.smoothing"),b(v,_,R,A)}},3212:function(d,l,n){var c=n(69104),b=n(38248);function i(y,p){var a,u=Array.isArray(p);function h(m){return b(m)?+m:null}return c.COMPARISON_OPS2.indexOf(y)!==-1?a=h(u?p[0]:p):c.INTERVAL_OPS.indexOf(y)!==-1?a=u?[h(p[0]),h(p[1])]:[h(p),h(p)]:c.SET_OPS.indexOf(y)!==-1&&(a=u?p.map(h):[h(p)]),a}function O(y){return function(p){p=i(y,p);var a=Math.min(p[0],p[1]),u=Math.max(p[0],p[1]);return{start:a,end:u,size:u-a}}}function w(y){return function(p){return{start:p=i(y,p),end:1/0,size:1/0}}}d.exports={"[]":O("[]"),"][":O("]["),">":w(">"),"<":w("<"),"=":w("=")}},84952:function(d){d.exports=function(l,n,c,b){var i=b("contours.start"),O=b("contours.end"),w=i===!1||O===!1,y=c("contours.size");!(w?n.autocontour=!0:c("autocontour",!1))&&y||c("ncontours")}},82172:function(d,l,n){var c=n(3400);function b(i){return c.extendFlat({},i,{edgepaths:c.extendDeep([],i.edgepaths),paths:c.extendDeep([],i.paths),starts:c.extendDeep([],i.starts)})}d.exports=function(i,O){var w,y,p,a=function(m){return m.reverse()},u=function(m){return m};switch(O){case"=":case"<":return i;case">":for(i.length!==1&&c.warn("Contour data invalid for the specified inequality operation."),y=i[0],w=0;w1e3){c.warn("Too many contours, clipping at 1000",O);break}return u}},46960:function(d){d.exports=function(l){return l.end+l.size/1e6}},88748:function(d,l,n){var c=n(3400),b=n(93252);function i(y,p,a,u){return Math.abs(y[0]-p[0])20&&ye?ve===208||ve===1114?Se=_e[0]===0?1:-1:Te=_e[1]===0?1:-1:b.BOTTOMSTART.indexOf(ve)!==-1?Te=1:b.LEFTSTART.indexOf(ve)!==-1?Se=1:b.TOPSTART.indexOf(ve)!==-1?Te=-1:Se=-1,[Se,Te]}(_,a,p),A=[w(y,p,[-S[0],-S[1]])],x=y.z.length,R=y.z[0].length,M=p.slice(),T=S.slice();for(m=0;m<1e4;m++){if(_>20?(_=b.CHOOSESADDLE[_][(S[0]||S[1])<0?0:1],y.crossings[v]=b.SADDLEREMAINDER[_]):delete y.crossings[v],!(S=b.NEWDELTA[_])){c.log("Found bad marching index:",_,p,y.level);break}A.push(w(y,p,S)),p[0]+=S[0],p[1]+=S[1],v=p.join(","),i(A[A.length-1],A[A.length-2],u,h)&&A.pop();var E=S[0]&&(p[0]<0||p[0]>R-2)||S[1]&&(p[1]<0||p[1]>x-2);if(p[0]===M[0]&&p[1]===M[1]&&S[0]===T[0]&&S[1]===T[1]||a&&E)break;_=y.crossings[v]}m===1e4&&c.log("Infinite loop in contour?");var C,L,D,k,I,z,$,Q,j,U,X,te,W,K,oe,q=i(A[0],A[A.length-1],u,h),Y=0,ee=.2*y.smoothing,me=[],he=0;for(m=1;m=he;m--)if((C=me[m])=he&&C+me[L]Q&&j--,y.edgepaths[j]=X.concat(A,U));break}de||(y.edgepaths[Q]=A.concat(U))}for(Q=0;Q=T)&&(y<=M&&(y=M),p>=T&&(p=T),u=Math.floor((p-y)/a)+1,h=0),_=0;_M&&(x.unshift(M),R.unshift(R[0])),x[x.length-1]i?0:1)+(O[0][1]>i?0:2)+(O[1][1]>i?0:4)+(O[1][0]>i?0:8);return w===5||w===10?i>(O[0][0]+O[0][1]+O[1][0]+O[1][1])/4?w===5?713:1114:w===5?104:208:w===15?0:w}d.exports=function(i){var O,w,y,p,a,u,h,m,v,_=i[0].z,S=_.length,A=_[0].length,x=S===2||A===2;for(w=0;w=0&&(L=oe,k=I):Math.abs(C[1]-L[1])<.01?Math.abs(C[1]-oe[1])<.01&&(oe[0]-C[0])*(L[0]-oe[0])>=0&&(L=oe,k=I):b.log("endpt to newendpt is not vert. or horz.",C,L,oe)}if(C=L,k>=0)break;Q+="L"+L}if(k===T.edgepaths.length){b.log("unclosed perimeter path");break}j=k,(X=U.indexOf(j)===-1)&&(j=U[0],Q+="Z")}for(j=0;jL.center?L.right-I:I-L.left)/(Q+Math.abs(Math.sin($)*k)),X=(z>L.middle?L.bottom-z:z-L.top)/(Math.abs(j)+Math.cos($)*k);if(U<1||X<1)return 1/0;var te=A.EDGECOST*(1/(U-1)+1/(X-1));te+=A.ANGLECOST*$*$;for(var W=I-Q,K=z-j,oe=I+Q,q=z+j,Y=0;Y2*A.MAXCOST)break;X&&(I/=2),z=(k=$-I/2)+1.5*I}if(U<=A.MAXCOST)return Q},l.addLabelData=function(T,E,C,L){var D=E.fontSize,k=E.width+D/3,I=Math.max(0,E.height-D/3),z=T.x,$=T.y,Q=T.theta,j=Math.sin(Q),U=Math.cos(Q),X=function(W,K){return[z+W*U-K*j,$+W*j+K*U]},te=[X(-k/2,-I/2),X(-k/2,I/2),X(k/2,I/2),X(k/2,-I/2)];C.push({text:E.text,x:z,y:$,dy:E.dy,theta:Q,level:E.level,width:k,height:I}),L.push(te)},l.drawLabels=function(T,E,C,L,D){var k=T.selectAll("text").data(E,function($){return $.text+","+$.x+","+$.y+","+$.theta});if(k.exit().remove(),k.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function($){var Q=$.x+Math.sin($.theta)*$.dy,j=$.y-Math.cos($.theta)*$.dy;c.select(this).text($.text).attr({x:Q,y:j,transform:"rotate("+180*$.theta/Math.PI+" "+Q+" "+j+")"}).call(w.convertToTspans,C)}),D){for(var I="",z=0;zy.end&&(y.start=y.end=(y.start+y.end)/2),O._input.contours||(O._input.contours={}),b.extendFlat(O._input.contours,{start:y.start,end:y.end,size:y.size}),O._input.autocontour=!0}else if(y.type!=="constraint"){var h,m=y.start,v=y.end,_=O._input.contours;m>v&&(y.start=_.start=v,v=y.end=_.end=m,m=y.start),y.size>0||(h=m===v?1:i(m,v,O.ncontours).dtick,_.size=y.size=h)}}},52440:function(d,l,n){var c=n(33428),b=n(43616),i=n(41648),O=n(41076);d.exports=function(w){var y=c.select(w).selectAll("g.contour");y.style("opacity",function(p){return p[0].trace.opacity}),y.each(function(p){var a=c.select(this),u=p[0].trace,h=u.contours,m=u.line,v=h.size||1,_=h.start,S=h.type==="constraint",A=!S&&h.coloring==="lines",x=!S&&h.coloring==="fill",R=A||x?O(u):null;a.selectAll("g.contourlevel").each(function(E){c.select(this).selectAll("path").call(b.lineGroupStyle,m.width,A?R(E.level):m.color,m.dash)});var M=h.labelfont;if(a.selectAll("g.contourlabels text").each(function(E){b.font(c.select(this),{family:M.family,size:M.size,color:M.color||(A?R(E.level):m.color)})}),S)a.selectAll("g.contourfill path").style("fill",u.fillcolor);else if(x){var T;a.selectAll("g.contourfill path").style("fill",function(E){return T===void 0&&(T=E.level),R(E.level+.5*v)}),T===void 0&&(T=_),a.selectAll("g.contourbg path").style("fill",R(T-.5*v))}}),i(w)}},97680:function(d,l,n){var c=n(27260),b=n(17428);d.exports=function(i,O,w,y,p){var a,u=w("contours.coloring"),h="";u==="fill"&&(a=w("contours.showlines")),a!==!1&&(u!=="lines"&&(h=w("line.color","#000")),w("line.width",.5),w("line.dash")),u!=="none"&&(i.showlegend!==!0&&(O.showlegend=!1),O._dfltShowLegend=!1,c(i,O,y,w,{prefix:"",cLetter:"z"})),w("line.smoothing"),b(w,y,h,p)}},37960:function(d,l,n){var c=n(83328),b=n(67104),i=n(49084),O=n(92880).extendFlat,w=b.contours;d.exports=O({carpet:{valType:"string",editType:"calc"},z:c.z,a:c.x,a0:c.x0,da:c.dx,b:c.y,b0:c.y0,db:c.dy,text:c.text,hovertext:c.hovertext,transpose:c.transpose,atype:c.xtype,btype:c.ytype,fillcolor:b.fillcolor,autocontour:b.autocontour,ncontours:b.ncontours,contours:{type:w.type,start:w.start,end:w.end,size:w.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:w.showlines,showlabels:w.showlabels,labelfont:w.labelfont,labelformat:w.labelformat,operation:w.operation,value:w.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:b.line.color,width:b.line.width,dash:b.line.dash,smoothing:b.line.smoothing,editType:"plot"},transforms:void 0},i("",{cLetter:"z",autoColorDflt:!1}))},30572:function(d,l,n){var c=n(47128),b=n(3400),i=n(2872),O=n(26136),w=n(70448),y=n(11240),p=n(35744),a=n(3252),u=n(50948),h=n(54444);d.exports=function(m,v){var _=v._carpetTrace=u(m,v);if(_&&_.visible&&_.visible!=="legendonly"){if(!v.a||!v.b){var S=m.data[_.index],A=m.data[v.index];A.a||(A.a=S.a),A.b||(A.b=S.b),a(A,v,v._defaultColor,m._fullLayout)}var x=function(R,M){var T,E,C,L,D,k,I,z=M._carpetTrace,$=z.aaxis,Q=z.baxis;$._minDtick=0,Q._minDtick=0,b.isArray1D(M.z)&&i(M,$,Q,"a","b",["z"]),T=M._a=M._a||M.a,L=M._b=M._b||M.b,T=T?$.makeCalcdata(M,"_a"):[],L=L?Q.makeCalcdata(M,"_b"):[],E=M.a0||0,C=M.da||1,D=M.b0||0,k=M.db||1,I=M._z=O(M._z||M.z,M.transpose),M._emptypoints=y(I),w(I,M._emptypoints);var j=b.maxRowLength(I),U=M.xtype==="scaled"?"":T,X=p(M,U,E,C,j,$),te=M.ytype==="scaled"?"":L,W={a:X,b:p(M,te,D,k,I.length,Q),z:I};return M.contours.type==="levels"&&M.contours.coloring!=="none"&&c(R,M,{vals:I,containerStr:"",cLetter:"z"}),[W]}(m,v);return h(v,v._z),x}}},3252:function(d,l,n){var c=n(3400),b=n(51264),i=n(37960),O=n(95536),w=n(84952),y=n(97680);d.exports=function(p,a,u,h){function m(v,_){return c.coerce(p,a,i,v,_)}if(m("carpet"),p.a&&p.b){if(!b(p,a,m,h,"a","b"))return void(a.visible=!1);m("text"),m("contours.type")==="constraint"?O(p,a,m,h,u,{hasHover:!1}):(w(p,a,m,function(v){return c.coerce2(p,a,i,v)}),y(p,a,m,h,{hasHover:!1}))}else a._defaultColor=u,a._length=null}},40448:function(d,l,n){d.exports={attributes:n(37960),supplyDefaults:n(3252),colorbar:n(55296),calc:n(30572),plot:n(94440),style:n(52440),moduleType:"trace",name:"contourcarpet",basePlotModule:n(57952),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},94440:function(d,l,n){var c=n(33428),b=n(87072),i=n(53416),O=n(43616),w=n(3400),y=n(72424),p=n(88748),a=n(23676),u=n(93252),h=n(82172),m=n(61512),v=n(56008),_=n(50948),S=n(77712);function A(M,T,E){var C=M.getPointAtLength(T),L=M.getPointAtLength(E),D=L.x-C.x,k=L.y-C.y,I=Math.sqrt(D*D+k*k);return[D/I,k/I]}function x(M){var T=Math.sqrt(M[0]*M[0]+M[1]*M[1]);return[M[0]/T,M[1]/T]}function R(M,T){var E=Math.abs(M[0]*T[0]+M[1]*T[1]);return Math.sqrt(1-E*E)/E}d.exports=function(M,T,E,C){var L=T.xaxis,D=T.yaxis;w.makeTraceGroups(C,E,"contour").each(function(k){var I=c.select(this),z=k[0],$=z.trace,Q=$._carpetTrace=_(M,$),j=M.calcdata[Q.index][0];if(Q.visible&&Q.visible!=="legendonly"){var U=z.a,X=z.b,te=$.contours,W=m(te,T,z),K=te.type==="constraint",oe=te._operation,q=K?oe==="="?"lines":"fill":te.coloring,Y=[[U[0],X[X.length-1]],[U[U.length-1],X[X.length-1]],[U[U.length-1],X[0]],[U[0],X[0]]];y(W);var ee=1e-8*(U[U.length-1]-U[0]),me=1e-8*(X[X.length-1]-X[0]);p(W,ee,me);var he,se,ae,ce,de=W;te.type==="constraint"&&(de=h(W,oe)),function(Se,Te){var Pe,Ie,ze,De,He,Ve,$e,Oe,ke;for(Pe=0;Pe=0;ce--)he=j.clipsegments[ce],se=b([],he.x,L.c2p),ae=b([],he.y,D.c2p),se.reverse(),ae.reverse(),ve.push(i(se,ae,he.bicubic));var ye="M"+ve.join("L")+"Z";(function(Se,Te,Pe,Ie,ze,De){var He,Ve,$e,Oe,ke=w.ensureSingle(Se,"g","contourbg").selectAll("path").data(De!=="fill"||ze?[]:[0]);ke.enter().append("path"),ke.exit().remove();var Le=[];for(Oe=0;Oe=0&&(wt=zt,It=qt):Math.abs(pt[1]-wt[1])=0&&(wt=zt,It=qt):w.log("endpt to newendpt is not vert. or horz.",pt,wt,zt)}if(It>=0)break;Gt+=lt(pt,wt),pt=wt}if(It===tt.edgepaths.length){w.log("unclosed perimeter path");break}ht=It,(_t=Ct.indexOf(ht)===-1)&&(ht=Ct[0],Gt+=lt(pt,wt)+"Z",pt=null)}for(ht=0;htYt&&(vt.max=Yt),vt.len=vt.max-vt.min}function Qt(Pt,tn){var Kt,fn=0,dn=.1;return(Math.abs(Pt[0]-Rt)0?+S[m]:0),v.push({type:"Feature",geometry:{type:"Point",coordinates:M},properties:T})}}var C=O.extractOpts(a),L=C.reversescale?O.flipScale(C.colorscale):C.colorscale,D=L[0][1],k=["interpolate",["linear"],["heatmap-density"],0,i.opacity(D)<1?D:i.addOpacity(D,0)];for(m=1;m=0;p--)w.removeLayer(y[p][1])},O.dispose=function(){var w=this.subplot.map;this._removeLayers(),w.removeSource(this.sourceId)},d.exports=function(w,y){var p=y[0].trace,a=new i(w,p.uid),u=a.sourceId,h=c(y),m=a.below=w.belowLookup["trace-"+p.uid];return w.map.addSource(u,{type:"geojson",data:h.geojson}),a._addLayers(h,m),a}},74248:function(d,l,n){var c=n(3400);d.exports=function(b,i){for(var O=0;O"),u.color=function(T,E){var C=T.marker,L=E.mc||C.color,D=E.mlc||C.line.color,k=E.mlw||C.line.width;return c(L)?L:c(D)&&k?D:void 0}(m,_),[u]}}},94704:function(d,l,n){d.exports={attributes:n(20088),layoutAttributes:n(7076),supplyDefaults:n(45432).supplyDefaults,crossTraceDefaults:n(45432).crossTraceDefaults,supplyLayoutDefaults:n(11631),calc:n(23096),crossTraceCalc:n(4804),plot:n(42200),style:n(44544).style,hoverPoints:n(31488),eventData:n(34580),selectPoints:n(45784),moduleType:"trace",name:"funnel",basePlotModule:n(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},7076:function(d){d.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},11631:function(d,l,n){var c=n(3400),b=n(7076);d.exports=function(i,O,w){var y=!1;function p(h,m){return c.coerce(i,O,b,h,m)}for(var a=0;a path").each(function(A){if(!A.isBlank){var x=S.marker;c.select(this).call(i.fill,A.mc||x.color).call(i.stroke,A.mlc||x.line.color).call(b.dashLine,x.line.dash,A.mlw||x.line.width).style("opacity",S.selectedpoints&&!A.selected?O:1)}}),p(_,S,a),_.selectAll(".regions").each(function(){c.select(this).selectAll("path").style("stroke-width",0).call(i.fill,S.connector.fillcolor)}),_.selectAll(".lines").each(function(){var A=S.connector.line;b.lineGroupStyle(c.select(this).selectAll("path"),A.width,A.color,A.dash)})})}}},22332:function(d,l,n){var c=n(74996),b=n(45464),i=n(86968).u,O=n(21776).Ks,w=n(21776).Gw,y=n(92880).extendFlat;d.exports={labels:c.labels,label0:c.label0,dlabel:c.dlabel,values:c.values,marker:{colors:c.marker.colors,line:{color:y({},c.marker.line.color,{dflt:null}),width:y({},c.marker.line.width,{dflt:1}),editType:"calc"},pattern:c.marker.pattern,editType:"calc"},text:c.text,hovertext:c.hovertext,scalegroup:y({},c.scalegroup,{}),textinfo:y({},c.textinfo,{flags:["label","text","value","percent"]}),texttemplate:w({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:y({},b.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:O({},{keys:["label","color","value","text","percent"]}),textposition:y({},c.textposition,{values:["inside","none"],dflt:"inside"}),textfont:c.textfont,insidetextfont:c.insidetextfont,title:{text:c.title.text,font:c.title.font,position:y({},c.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:i({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},91248:function(d,l,n){var c=n(7316);l.name="funnelarea",l.plot=function(b,i,O,w){c.plotBasePlot(l.name,b,i,O,w)},l.clean=function(b,i,O,w){c.cleanBasePlot(l.name,b,i,O,w)}},54e3:function(d,l,n){var c=n(45768);d.exports={calc:function(b,i){return c.calc(b,i)},crossTraceCalc:function(b){c.crossTraceCalc(b,{type:"funnelarea"})}}},92688:function(d,l,n){var c=n(3400),b=n(22332),i=n(86968).Q,O=n(31508).handleText,w=n(74174).handleLabelsAndValues,y=n(74174).handleMarkerDefaults;d.exports=function(p,a,u,h){function m(E,C){return c.coerce(p,a,b,E,C)}var v=m("labels"),_=m("values"),S=w(v,_),A=S.len;if(a._hasLabels=S.hasLabels,a._hasValues=S.hasValues,!a._hasLabels&&a._hasValues&&(m("label0"),m("dlabel")),A){a._length=A,y(p,a,h,m),m("scalegroup");var x,R=m("text"),M=m("texttemplate");if(M||(x=m("textinfo",Array.isArray(R)?"text+percent":"percent")),m("hovertext"),m("hovertemplate"),M||x&&x!=="none"){var T=m("textposition");O(p,a,h,m,T,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}i(a,h,m),m("title.text")&&(m("title.position"),c.coerceFont(m,"title.font",h.font)),m("aspectratio"),m("baseratio")}else a.visible=!1}},62396:function(d,l,n){d.exports={moduleType:"trace",name:"funnelarea",basePlotModule:n(91248),categories:["pie-like","funnelarea","showLegend"],attributes:n(22332),layoutAttributes:n(61280),supplyDefaults:n(92688),supplyLayoutDefaults:n(35384),calc:n(54e3).calc,crossTraceCalc:n(54e3).crossTraceCalc,plot:n(39472),style:n(62096),styleOne:n(10528),meta:{}}},61280:function(d,l,n){var c=n(85204).hiddenlabels;d.exports={hiddenlabels:c,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},35384:function(d,l,n){var c=n(3400),b=n(61280);d.exports=function(i,O){function w(y,p){return c.coerce(i,O,b,y,p)}w("hiddenlabels"),w("funnelareacolorway",O.colorway),w("extendfunnelareacolors")}},39472:function(d,l,n){var c=n(33428),b=n(43616),i=n(3400),O=i.strScale,w=i.strTranslate,y=n(72736),p=n(98184).toMoveInsideBar,a=n(82744),u=a.recordMinTextSize,h=a.clearMinTextSize,m=n(69656),v=n(37820),_=v.attachFxHandlers,S=v.determineInsideTextFont,A=v.layoutAreas,x=v.prerenderTitles,R=v.positionTitleOutside,M=v.formatSliceLabel;function T(E,C){return"l"+(C[0]-E[0])+","+(C[1]-E[1])}d.exports=function(E,C){var L=E._context.staticPlot,D=E._fullLayout;h("funnelarea",D),x(C,E),A(C,D._size),i.makeTraceGroups(D._funnelarealayer,C,"trace").each(function(k){var I=c.select(this),z=k[0],$=z.trace;(function(Q){if(Q.length){var j=Q[0],U=j.trace,X=U.aspectratio,te=U.baseratio;te>.999&&(te=.999);var W,K,oe,q=Math.pow(te,2),Y=j.vTotal,ee=Y,me=Y*q/(1-q)/Y,he=[];for(he.push($e()),K=Q.length-1;K>-1;K--)if(!(oe=Q[K]).hidden){var se=oe.v/ee;me+=se,he.push($e())}var ae=1/0,ce=-1/0;for(K=0;K-1;K--)if(!(oe=Q[K]).hidden){var He=he[De+=1][0],Ve=he[De][1];oe.TL=[-He,Ve],oe.TR=[He,Ve],oe.BL=Ie,oe.BR=ze,oe.pxmid=(Te=oe.TR,Pe=oe.BR,[.5*(Te[0]+Pe[0]),.5*(Te[1]+Pe[1])]),Ie=oe.TL,ze=oe.TR}}function $e(){var Oe,ke={x:Oe=Math.sqrt(me),y:-Oe};return[ke.x,ke.y]}})(k),I.each(function(){var Q=c.select(this).selectAll("g.slice").data(k);Q.enter().append("g").classed("slice",!0),Q.exit().remove(),Q.each(function(U,X){if(U.hidden)c.select(this).selectAll("path,g").remove();else{U.pointNumber=U.i,U.curveNumber=$.index;var te=z.cx,W=z.cy,K=c.select(this),oe=K.selectAll("path.surface").data([U]);oe.enter().append("path").classed("surface",!0).style({"pointer-events":L?"none":"all"}),K.call(_,E,k);var q="M"+(te+U.TR[0])+","+(W+U.TR[1])+T(U.TR,U.BR)+T(U.BR,U.BL)+T(U.BL,U.TL)+"Z";oe.attr("d",q),M(E,U,z);var Y=m.castOption($.textposition,U.pts),ee=K.selectAll("g.slicetext").data(U.text&&Y!=="none"?[0]:[]);ee.enter().append("g").classed("slicetext",!0),ee.exit().remove(),ee.each(function(){var me=i.ensureSingle(c.select(this),"text","",function(_e){_e.attr("data-notex",1)}),he=i.ensureUniformFontSize(E,S($,U,D.font));me.text(U.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(b.font,he).call(y.convertToTspans,E);var se,ae,ce,de=b.bBox(me.node()),ve=Math.min(U.BL[1],U.BR[1])+W,ye=Math.max(U.TL[1],U.TR[1])+W;ae=Math.max(U.TL[0],U.BL[0])+te,ce=Math.min(U.TR[0],U.BR[0])+te,(se=p(ae,ce,ve,ye,de,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"})).fontSize=he.size,u($.type,se,D),k[X].transform=se,i.setTransormAndDisplay(me,se)})}});var j=c.select(this).selectAll("g.titletext").data($.title.text?[0]:[]);j.enter().append("g").classed("titletext",!0),j.exit().remove(),j.each(function(){var U=i.ensureSingle(c.select(this),"text","",function(W){W.attr("data-notex",1)}),X=$.title.text;$._meta&&(X=i.templateString(X,$._meta)),U.text(X).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(b.font,$.title.font).call(y.convertToTspans,E);var te=R(z,D._size);U.attr("transform",w(te.x,te.y)+O(Math.min(1,te.scale))+w(te.tx,te.ty))})})})}},62096:function(d,l,n){var c=n(33428),b=n(10528),i=n(82744).resizeText;d.exports=function(O){var w=O._fullLayout._funnelarealayer.selectAll(".trace");i(O,w,"funnelarea"),w.each(function(y){var p=y[0].trace,a=c.select(this);a.style({opacity:p.opacity}),a.selectAll("path.surface").each(function(u){c.select(this).call(b,u,p,O)})})}},83328:function(d,l,n){var c=n(52904),b=n(45464),i=n(25376),O=n(29736).axisHoverFormat,w=n(21776).Ks,y=n(21776).Gw,p=n(49084),a=n(92880).extendFlat;d.exports=a({z:{valType:"data_array",editType:"calc"},x:a({},c.x,{impliedEdits:{xtype:"array"}}),x0:a({},c.x0,{impliedEdits:{xtype:"scaled"}}),dx:a({},c.dx,{impliedEdits:{xtype:"scaled"}}),y:a({},c.y,{impliedEdits:{ytype:"array"}}),y0:a({},c.y0,{impliedEdits:{ytype:"scaled"}}),dy:a({},c.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:a({},c.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:a({},c.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:a({},c.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:a({},c.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:a({},c.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:a({},c.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:O("x"),yhoverformat:O("y"),zhoverformat:O("z",1),hovertemplate:w(),texttemplate:y({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:i({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:a({},b.showlegend,{dflt:!1})},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},19512:function(d,l,n){var c=n(24040),b=n(3400),i=n(54460),O=n(1220),w=n(55480),y=n(47128),p=n(2872),a=n(26136),u=n(70448),h=n(11240),m=n(35744),v=n(39032).BADNUM;function _(S){for(var A=[],x=S.length,R=0;R1){var de=(ce[ce.length-1]-ce[0])/(ce.length-1),ve=Math.abs(de/100);for(I=0;Ive)return!1}return!0}($.rangebreaks||Q.rangebreaks)&&(k=function(ce,de,ve){for(var ye=[],_e=-1,Se=0;Se=0;p--)(a=((v[[(O=(y=_[p])[0])-1,w=y[1]]]||x)[2]+(v[[O+1,w]]||x)[2]+(v[[O,w-1]]||x)[2]+(v[[O,w+1]]||x)[2])/20)&&(u[y]=[O,w,a],_.splice(p,1),h=!0);if(!h)throw"findEmpties iterated with no new neighbors";for(y in u)v[y]=u[y],m.push(u[y])}return m.sort(function(M,T){return T[2]-M[2]})}},55512:function(d,l,n){var c=n(93024),b=n(3400),i=b.isArrayOrTypedArray,O=n(54460),w=n(8932).extractOpts;d.exports=function(y,p,a,u,h){h||(h={});var m,v,_,S,A=h.isContour,x=y.cd[0],R=x.trace,M=y.xa,T=y.ya,E=x.x,C=x.y,L=x.z,D=x.xCenter,k=x.yCenter,I=x.zmask,z=R.zhoverformat,$=E,Q=C;if(y.index!==!1){try{_=Math.round(y.index[1]),S=Math.round(y.index[0])}catch{return void b.error("Error hovering on heatmap, pointNumber must be [row,col], found:",y.index)}if(_<0||_>=L[0].length||S<0||S>L.length)return}else{if(c.inbox(p-E[0],p-E[E.length-1],0)>0||c.inbox(a-C[0],a-C[C.length-1],0)>0)return;if(A){var j;for($=[2*E[0]-E[1]],j=1;jT&&(C=Math.max(C,Math.abs(w[u][h]-M)/(E-T))))}return C}d.exports=function(w,y){var p,a=1;for(O(w,y),p=0;p.01;p++)a=O(w,y,i(a));return a>.01&&c.log("interp2d didn't converge quickly",a),w}},39096:function(d,l,n){var c=n(3400);d.exports=function(b,i){b("texttemplate");var O=c.extendFlat({},i.font,{color:"auto",size:"auto"});c.coerceFont(b,"textfont",O)}},35744:function(d,l,n){var c=n(24040),b=n(3400).isArrayOrTypedArray;d.exports=function(i,O,w,y,p,a){var u,h,m,v=[],_=c.traceIs(i,"contour"),S=c.traceIs(i,"histogram"),A=c.traceIs(i,"gl2d");if(b(O)&&O.length>1&&!S&&a.type!=="category"){var x=O.length;if(!(x<=p))return _?O.slice(0,p):O.slice(0,p+1);if(_||A)v=Array.from(O).slice(0,p);else if(p===1)v=a.type==="log"?[.5*O[0],2*O[0]]:[O[0]-.5,O[0]+.5];else if(a.type==="log"){for(v=[Math.pow(O[0],1.5)/Math.pow(O[1],.5)],m=1;m0;)U=z.c2p(ce[K]),K--;for(U0;)W=$.c2p(de[K]),K--;W=z._length||U<=0||te>=$._length||W<=0)return Y.selectAll("image").data([]).exit().remove(),void M(Y);De==="fast"?(Ve=Pe,$e=Te):(Ve=Oe,$e=ke);var Le=document.createElement("canvas");Le.width=Ve,Le.height=$e;var We,Ue,Ze=Le.getContext("2d",{willReadFrequently:!0}),Xe=m(me,{noNumericCheck:!0,returnArray:!0});De==="fast"?(We=Ie?function(Pn){return Pe-1-Pn}:y.identity,Ue=ze?function(Pn){return Te-1-Pn}:y.identity):(We=function(Pn){return y.constrain(Math.round(z.c2p(ce[Pn])-j),0,Oe)},Ue=function(Pn){return y.constrain(Math.round($.c2p(de[Pn])-te),0,ke)});var tt,Ee,Ne,je,nt=Ue(0),ot=[nt,nt],Ge=Ie?0:1,ht=ze?0:1,pt=0,wt=0,Dt=0,It=0;function qt(Pn,Yn){if(Pn!==void 0){var br=Xe(Pn);return br[0]=Math.round(br[0]),br[1]=Math.round(br[1]),br[2]=Math.round(br[2]),pt+=Yn,wt+=br[0]*Yn,Dt+=br[1]*Yn,It+=br[2]*Yn,br}return[0,0,0,0]}function en(Pn,Yn,br,dr){var Cr=Pn[br.bin0];if(Cr===void 0)return qt(void 0,1);var io,Qr=Pn[br.bin1],Wr=Yn[br.bin0],bo=Yn[br.bin1],Bn=Qr-Cr||0,hr=Wr-Cr||0;return io=Qr===void 0?bo===void 0?0:Wr===void 0?2*(bo-Cr):2*(2*bo-Wr-Cr)/3:bo===void 0?Wr===void 0?0:2*(2*Cr-Qr-Wr)/3:Wr===void 0?2*(2*bo-Qr-Cr)/3:bo+Cr-Qr-Wr,qt(Cr+br.frac*Bn+dr.frac*(hr+br.frac*io))}if(De!=="default"){var Gt,Ct=0;try{Gt=new Uint8Array(Ve*$e*4)}catch{Gt=new Array(Ve*$e*4)}if(De==="smooth"){var _t,nn,gn,bn=ve||ce,mn=ye||de,vt=new Array(bn.length),bt=new Array(mn.length),lt=new Array(Oe),yt=ve?E:T,zt=ye?E:T;for(K=0;KEn||En>$._length))for(oe=dn;oeUn||Un>z._length)){var xr=a({x:In,y:er},me,L._fullLayout);xr.x=In,xr.y=er;var Sr=ee.z[K][oe];Sr===void 0?(xr.z="",xr.zLabel=""):(xr.z=Sr,xr.zLabel=w.tickText(Pt,Sr,"hover").text);var ar=ee.text&&ee.text[K]&&ee.text[K][oe];ar!==void 0&&ar!==!1||(ar=""),xr.text=ar;var Fn=y.texttemplateString(Yt,xr,L._fullLayout._d3locale,xr,me._meta||{});if(Fn){var ir=Fn.split("
    "),Wn=ir.length,Kn=0;for(q=0;q0&&(T=!0);for(var L=0;Ly){var p=y-O[b];return O[b]=y,p}}return 0},max:function(b,i,O,w){var y=w[i];if(c(y)){if(y=Number(y),!c(O[b]))return O[b]=y,y;if(O[b]p?_>O?_>1.1*b?b:_>1.1*i?i:O:_>w?w:_>y?y:p:Math.pow(10,Math.floor(Math.log(_)/Math.LN10))}function m(_,S,A,x,R,M){if(x&&_>O){var T=v(S,R,M),E=v(A,R,M),C=_===b?0:1;return T[C]!==E[C]}return Math.floor(A/_)-Math.floor(S/_)>.1}function v(_,S,A){var x=S.c2d(_,b,A).split("-");return x[0]===""&&(x.unshift(),x[0]="-"+x[0]),x}d.exports=function(_,S,A,x,R){var M,T,E=-1.1*S,C=-.1*S,L=_-C,D=A[0],k=A[1],I=Math.min(u(D+C,D+L,x,R),u(k+C,k+L,x,R)),z=Math.min(u(D+E,D+C,x,R),u(k+E,k+C,x,R));if(I>z&&zO){var $=M===b?1:6,Q=M===b?"M12":"M1";return function(j,U){var X=x.c2d(j,b,R),te=X.indexOf("-",$);te>0&&(X=X.substr(0,te));var W=x.d2c(X,0,R);if(W_.r2l(de)&&(ye=O.tickIncrement(ye,z.size,!0,T)),he.start=_.l2r(ye),ce||b.nestedProperty(v,D+".start").set(he.start)}var _e=z.end,Se=_.r2l(me.end),Te=Se!==void 0;if((z.endFound||Te)&&Se!==_.r2l(_e)){var Pe=Te?Se:b.aggNums(Math.max,null,E);he.end=_.l2r(Pe),Te||b.nestedProperty(v,D+".start").set(he.end)}var Ie="autobin"+S;return v._input[Ie]===!1&&(v._input[D]=b.extendFlat({},v[D]||{}),delete v._input[Ie],delete v[Ie]),[he,E]}d.exports={calc:function(m,v){var _,S,A,x,R=[],M=[],T=v.orientation==="h",E=O.getFromId(m,T?v.yaxis:v.xaxis),C=T?"y":"x",L={x:"y",y:"x"}[C],D=v[C+"calendar"],k=v.cumulative,I=h(m,v,E,C),z=I[0],$=I[1],Q=typeof z.size=="string",j=[],U=Q?j:z,X=[],te=[],W=[],K=0,oe=v.histnorm,q=v.histfunc,Y=oe.indexOf("density")!==-1;k.enabled&&Y&&(oe=oe.replace(/ ?density$/,""),Y=!1);var ee,me=q==="max"||q==="min"?null:0,he=y.count,se=p[oe],ae=!1,ce=function(ke){return E.r2c(ke,0,D)};for(b.isArrayOrTypedArray(v[L])&&q!=="count"&&(ee=v[L],ae=q==="avg",he=y[q]),_=ce(z.start),A=ce(z.end)+(_-O.tickIncrement(_,z.size,!1,D))/1e6;_=0&&x<_e&&(K+=he(x,_,M,ee,te),Se&&W[x].length&&ze!==$[W[x][0]]&&(Se=!1),W[x].push(_),Ie[_]=x,Te=Math.min(Te,ze-j[x]),Pe=Math.min(Pe,j[x+1]-ze))}ve.leftGap=Te,ve.rightGap=Pe,Se||(ye=function(ke,Le){return function(){var We=m._fullLayout._roundFnOpts[de];return u(We.leftGap,We.rightGap,j,E,D)(ke,Le)}}),ae&&(K=a(M,te)),se&&se(M,K,X),k.enabled&&function(ke,Le,We){var Ue,Ze,Xe;function tt(Ne){Xe=ke[Ne],ke[Ne]/=2}function Ee(Ne){Ze=ke[Ne],ke[Ne]=Xe+Ze/2,Xe+=Ze}if(We==="half")if(Le==="increasing")for(tt(0),Ue=1;Ue=0;Ue--)Ee(Ue);else if(Le==="increasing"){for(Ue=1;Ue=0;Ue--)ke[Ue]+=ke[Ue+1];We==="exclude"&&(ke.push(0),ke.shift())}}(M,k.direction,k.currentbin);var De=Math.min(R.length,M.length),He=[],Ve=0,$e=De-1;for(_=0;_=Ve;_--)if(M[_]){$e=_;break}for(_=Ve;_<=$e;_++)if(c(R[_])&&c(M[_])){var Oe={p:R[_],s:M[_],b:0};k.enabled||(Oe.pts=W[_],Se?Oe.ph0=Oe.ph1=W[_].length?$[W[_][0]]:R[_]:(v._computePh=!0,Oe.ph0=ye(j[_]),Oe.ph1=ye(j[_+1],!0))),He.push(Oe)}return He.length===1&&(He[0].width1=O.tickIncrement(He[0].p,z.size,!1,D)-He[0].p),w(He,v),b.isArrayOrTypedArray(v.selectedpoints)&&b.tagSelected(He,v,Ie),He},calcAllAutoBins:h}},73316:function(d){d.exports={eventDataKeys:["binNumber"]}},80536:function(d,l,n){var c=n(3400),b=n(79811),i=n(24040).traceIs,O=n(20011),w=n(31508).validateCornerradius,y=c.nestedProperty,p=n(71888).getAxisGroup,a=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],u=["x","y"];d.exports=function(h,m){var v,_,S,A,x,R,M,T=m._histogramBinOpts={},E=[],C={},L=[];function D(me,he){return c.coerce(v._input,v,v._module.attributes,me,he)}function k(me){return me.orientation==="v"?"x":"y"}function I(me,he,se){var ae=me.uid+"__"+se;he||(he=ae);var ce=function(_e,Se){return b.getFromTrace({_fullLayout:m},_e,Se).type}(me,se),de=me[se+"calendar"]||"",ve=T[he],ye=!0;ve&&(ce===ve.axType&&de===ve.calendar?(ye=!1,ve.traces.push(me),ve.dirs.push(se)):(he=ae,ce!==ve.axType&&c.warn(["Attempted to group the bins of trace",me.index,"set on a","type:"+ce,"axis","with bins on","type:"+ve.axType,"axis."].join(" ")),de!==ve.calendar&&c.warn(["Attempted to group the bins of trace",me.index,"set with a",de,"calendar","with bins",ve.calendar?"on a "+ve.calendar+" calendar":"w/o a set calendar"].join(" ")))),ye&&(T[he]={traces:[me],dirs:[se],axType:ce,calendar:me[se+"calendar"]||""}),me["_"+se+"bingroup"]=he}for(x=0;xj&&I.splice(j,I.length-j),Q.length>j&&Q.splice(j,Q.length-j);var U=[],X=[],te=[],W=typeof k.size=="string",K=typeof $.size=="string",oe=[],q=[],Y=W?oe:k,ee=K?q:$,me=0,he=[],se=[],ae=v.histnorm,ce=v.histfunc,de=ae.indexOf("density")!==-1,ve=ce==="max"||ce==="min"?null:0,ye=i.count,_e=O[ae],Se=!1,Te=[],Pe=[],Ie="z"in v?v.z:"marker"in v&&Array.isArray(v.marker.color)?v.marker.color:"";Ie&&ce!=="count"&&(Se=ce==="avg",ye=i[ce]);var ze=k.size,De=C(k.start),He=C(k.end)+(De-b.tickIncrement(De,ze,!1,T))/1e6;for(_=De;_=0&&A<$e&&x>=0&&x-1,flipY:X.tiling.flip.indexOf("y")>-1,orientation:X.tiling.orientation,pad:{inner:X.tiling.pad},maxDepth:X._maxDepth}).descendants(),q=1/0,Y=-1/0;oe.forEach(function(ae){var ce=ae.depth;ce>=X._maxDepth?(ae.x0=ae.x1=(ae.x0+ae.x1)/2,ae.y0=ae.y1=(ae.y0+ae.y1)/2):(q=Math.min(q,ce),Y=Math.max(Y,ce))}),A=A.data(oe,a.getPtId),X._maxVisibleLayers=isFinite(Y)?Y-q+1:0,A.enter().append("g").classed("slice",!0),I(A,m,{},[R,M],C),A.order();var ee=null;if(k&&Q){var me=a.getPtId(Q);A.each(function(ae){ee===null&&a.getPtId(ae)===me&&(ee={x0:ae.x0,x1:ae.x1,y0:ae.y0,y1:ae.y1})})}var he=function(){return ee||{x0:0,x1:R,y0:0,y1:M}},se=A;return k&&(se=se.transition().each("end",function(){var ae=c.select(this);a.setSliceCursor(ae,v,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),se.each(function(ae){ae._x0=T(ae.x0),ae._x1=T(ae.x1),ae._y0=E(ae.y0),ae._y1=E(ae.y1),ae._hoverX=T(ae.x1-X.tiling.pad),ae._hoverY=E(K?ae.y1-X.tiling.pad/2:ae.y0+X.tiling.pad/2);var ce=c.select(this),de=b.ensureSingle(ce,"path","surface",function(Se){Se.style("pointer-events",j?"none":"all")});k?de.transition().attrTween("d",function(Se){var Te=z(Se,m,he(),[R,M],{orientation:X.tiling.orientation,flipX:X.tiling.flip.indexOf("x")>-1,flipY:X.tiling.flip.indexOf("y")>-1});return function(Pe){return C(Te(Pe))}}):de.attr("d",C),ce.call(u,S,v,_,{styleOne:y,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,v,{isTransitioning:v._transitioning}),de.call(y,ae,X,v,{hovered:!1}),ae.x0===ae.x1||ae.y0===ae.y1?ae._text="":ae._text=h(ae,S,X,_,U)||"";var ve=b.ensureSingle(ce,"g","slicetext"),ye=b.ensureSingle(ve,"text","",function(Se){Se.attr("data-notex",1)}),_e=b.ensureUniformFontSize(v,a.determineTextFont(X,ae,U.font));ye.text(ae._text||" ").classed("slicetext",!0).attr("text-anchor",W?"end":te?"start":"middle").call(i.font,_e).call(O.convertToTspans,v),ae.textBB=i.bBox(ye.node()),ae.transform=L(ae,{fontSize:_e.size}),ae.transform.fontSize=_e.size,k?ye.transition().attrTween("transform",function(Se){var Te=$(Se,m,he(),[R,M]);return function(Pe){return D(Te(Pe))}}):ye.attr("transform",D(ae))}),ee}},29044:function(d,l,n){d.exports={moduleType:"trace",name:"icicle",basePlotModule:n(59564),categories:[],animatable:!0,attributes:n(97376),layoutAttributes:n(90676),supplyDefaults:n(7045),supplyLayoutDefaults:n(4304),calc:n(73876).r,crossTraceCalc:n(73876).q,plot:n(38364),style:n(47192).style,colorbar:n(5528),meta:{}}},90676:function(d){d.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},4304:function(d,l,n){var c=n(3400),b=n(90676);d.exports=function(i,O){function w(y,p){return c.coerce(i,O,b,y,p)}w("iciclecolorway",O.colorway),w("extendiciclecolors")}},25132:function(d,l,n){var c=n(74148),b=n(83024);d.exports=function(i,O,w){var y=w.flipX,p=w.flipY,a=w.orientation==="h",u=w.maxDepth,h=O[0],m=O[1];u&&(h=(i.height+1)*O[0]/Math.min(i.height+1,u),m=(i.height+1)*O[1]/Math.min(i.height+1,u));var v=c.partition().padding(w.pad.inner).size(a?[O[1],h]:[O[0],m])(i);return(a||y||p)&&b(v,O,{swapXY:a,flipX:y,flipY:p}),v}},38364:function(d,l,n){var c=n(95808),b=n(67880);d.exports=function(i,O,w,y){return c(i,O,w,y,{type:"icicle",drawDescendants:b})}},47192:function(d,l,n){var c=n(33428),b=n(76308),i=n(3400),O=n(82744).resizeText,w=n(60404);function y(p,a,u,h){var m=a.data.data,v=!a.children,_=m.i,S=i.castOption(u,_,"marker.line.color")||b.defaultLine,A=i.castOption(u,_,"marker.line.width")||0;p.call(w,a,u,h).style("stroke-width",A).call(b.stroke,S).style("opacity",v?u.leaf.opacity:null)}d.exports={style:function(p){var a=p._fullLayout._iciclelayer.selectAll(".trace");O(p,a,"icicle"),a.each(function(u){var h=c.select(this),m=u[0].trace;h.style("opacity",m.opacity),h.selectAll("path.surface").each(function(v){c.select(this).call(y,v,m,p)})})},styleOne:y}},95188:function(d,l,n){for(var c=n(45464),b=n(21776).Ks,i=n(92880).extendFlat,O=n(47797).colormodel,w=["rgb","rgba","rgba256","hsl","hsla"],y=[],p=[],a=0;a0||c.inbox(p-a.y0,p-(a.y0+a.h*u.dy),0)>0)){var v,_=Math.floor((y-a.x0)/u.dx),S=Math.floor(Math.abs(p-a.y0)/u.dy);if(u._hasZ?v=a.z[S][_]:u._hasSource&&(v=u._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(_,S,1,1).data),v){var A,x=a.hi||u.hoverinfo;if(x){var R=x.split("+");R.indexOf("all")!==-1&&(R=["color"]),R.indexOf("color")!==-1&&(A=!0)}var M,T=O.colormodel[u.colormodel],E=T.colormodel||u.colormodel,C=E.length,L=u._scaler(v),D=T.suffix,k=[];(u.hovertemplate||A)&&(k.push("["+[L[0]+D[0],L[1]+D[1],L[2]+D[2]].join(", ")),C===4&&k.push(", "+L[3]+D[3]),k.push("]"),k=k.join(""),w.extraText=E.toUpperCase()+": "+k),i(u.hovertext)&&i(u.hovertext[S])?M=u.hovertext[S][_]:i(u.text)&&i(u.text[S])&&(M=u.text[S][_]);var I=m.c2p(a.y0+(S+.5)*u.dy),z=a.x0+(_+.5)*u.dx,$=a.y0+(S+.5)*u.dy,Q="["+v.slice(0,u.colormodel.length).join(", ")+"]";return[b.extendFlat(w,{index:[S,_],x0:h.c2p(a.x0+_*u.dx),x1:h.c2p(a.x0+(_+1)*u.dx),y0:I,y1:I,color:L,xVal:z,xLabelVal:z,yVal:$,yLabelVal:$,zLabelVal:Q,text:M,hovertemplateLabels:{zLabel:Q,colorLabel:k,"color[0]Label":L[0]+D[0],"color[1]Label":L[1]+D[1],"color[2]Label":L[2]+D[2],"color[3]Label":L[3]+D[3]}})]}}}},48928:function(d,l,n){d.exports={attributes:n(95188),supplyDefaults:n(13188),calc:n(93336),plot:n(63715),style:n(28576),hoverPoints:n(24892),eventData:n(79972),moduleType:"trace",name:"image",basePlotModule:n(57952),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},63715:function(d,l,n){var c=n(33428),b=n(3400),i=b.strTranslate,O=n(9616),w=n(47797),y=n(9188),p=n(2264).STYLE;d.exports=function(a,u,h,m){var v=u.xaxis,_=u.yaxis,S=!a._context._exportedPlot&&y();b.makeTraceGroups(m,h,"im").each(function(A){var x=c.select(this),R=A[0],M=R.trace,T=(M.zsmooth==="fast"||M.zsmooth===!1&&S)&&!M._hasZ&&M._hasSource&&v.type==="linear"&&_.type==="linear";M._realImage=T;var E,C,L,D,k,I,z=R.z,$=R.x0,Q=R.y0,j=R.w,U=R.h,X=M.dx,te=M.dy;for(I=0;E===void 0&&I0;)C=v.c2p($+I*X),I--;for(I=0;D===void 0&&I0;)k=_.c2p(Q+I*te),I--;Cee[0];if(me||he){var se=E+W/2,ae=D+K/2;q+="transform:"+i(se+"px",ae+"px")+"scale("+(me?-1:1)+","+(he?-1:1)+")"+i(-se+"px",-ae+"px")+";"}}oe.attr("style",q);var ce=new Promise(function(ve){if(M._hasZ)ve();else if(M._hasSource)if(M._canvas&&M._canvas.el.width===j&&M._canvas.el.height===U&&M._canvas.source===M.source)ve();else{var ye=document.createElement("canvas");ye.width=j,ye.height=U;var _e=ye.getContext("2d",{willReadFrequently:!0});M._image=M._image||new Image;var Se=M._image;Se.onload=function(){_e.drawImage(Se,0,0),M._canvas={el:ye,source:M.source},ve()},Se.setAttribute("src",M.source)}}).then(function(){var ve,ye;if(M._hasZ)ye=de(function(Se,Te){var Pe=z[Te][Se];return b.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),ve=ye.toDataURL("image/png");else if(M._hasSource)if(T)ve=M.source;else{var _e=M._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,j,U).data;ye=de(function(Se,Te){var Pe=4*(Te*j+Se);return[_e[Pe],_e[Pe+1],_e[Pe+2],_e[Pe+3]]}),ve=ye.toDataURL("image/png")}oe.attr({"xlink:href":ve,height:K,width:W,x:E,y:D})});a._promises.push(ce)}function de(ve){var ye=document.createElement("canvas");ye.width=W,ye.height=K;var _e,Se=ye.getContext("2d",{willReadFrequently:!0}),Te=function(Le){return b.constrain(Math.round(v.c2p($+Le*X)-E),0,W)},Pe=function(Le){return b.constrain(Math.round(_.c2p(Q+Le*te)-D),0,K)},Ie=w.colormodel[M.colormodel],ze=Ie.colormodel||M.colormodel,De=Ie.fmt;for(I=0;I0}function C(z){z.each(function($){x.stroke(c.select(this),$.line.color)}).each(function($){x.fill(c.select(this),$.color)}).style("stroke-width",function($){return $.line.width})}function L(z,$,Q){var j=z._fullLayout,U=O.extendFlat({type:"linear",ticks:"outside",range:Q,showline:!0},$),X={type:"linear",_id:"x"+$._id},te={letter:"x",font:j.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function W(K,oe){return O.coerce(U,X,A,K,oe)}return _(U,X,W,te,j),S(U,X,W,te),X}function D(z,$,Q){return[Math.min($/z.width,Q/z.height),z,$+"x"+Q]}function k(z,$,Q,j){var U=document.createElementNS("http://www.w3.org/2000/svg","text"),X=c.select(U);return X.text(z).attr("x",0).attr("y",0).attr("text-anchor",Q).attr("data-unformatted",z).call(m.convertToTspans,j).call(u.font,$),u.bBox(X.node())}function I(z,$,Q,j,U,X){var te="_cache"+$;z[te]&&z[te].key===U||(z[te]={key:U,value:Q});var W=O.aggNums(X,null,[z[te].value,j],2);return z[te].value=W,W}d.exports=function(z,$,Q,j){var U,X=z._fullLayout;E(Q)&&j&&(U=j()),O.makeTraceGroups(X._indicatorlayer,$,"trace").each(function(te){var W,K,oe,q,Y,ee=te[0].trace,me=c.select(this),he=ee._hasGauge,se=ee._isAngular,ae=ee._isBullet,ce=ee.domain,de={w:X._size.w*(ce.x[1]-ce.x[0]),h:X._size.h*(ce.y[1]-ce.y[0]),l:X._size.l+X._size.w*ce.x[0],r:X._size.r+X._size.w*(1-ce.x[1]),t:X._size.t+X._size.h*(1-ce.y[1]),b:X._size.b+X._size.h*ce.y[0]},ve=de.l+de.w/2,ye=de.t+de.h/2,_e=Math.min(de.w/2,de.h),Se=h.innerRadius*_e,Te=ee.align||"center";if(K=ye,he){if(se&&(W=ve,K=ye+_e/2,oe=function(Oe){return function(ke,Le){return[Le/Math.sqrt(ke.width/2*(ke.width/2)+ke.height*ke.height),ke,Le]}(Oe,.9*Se)}),ae){var Pe=h.bulletPadding,Ie=1-h.bulletNumberDomainSize+Pe;W=de.l+(Ie+(1-Ie)*M[Te])*de.w,oe=function(Oe){return D(Oe,(h.bulletNumberDomainSize-Pe)*de.w,de.h)}}}else W=de.l+M[Te]*de.w,oe=function(Oe){return D(Oe,de.w,de.h)};(function(Oe,ke,Le,We){var Ue,Ze,Xe,tt=Le[0].trace,Ee=We.numbersX,Ne=We.numbersY,je=tt.align||"center",nt=R[je],ot=We.transitionOpts,Ge=We.onComplete,ht=O.ensureSingle(ke,"g","numbers"),pt=[];tt._hasNumber&&pt.push("number"),tt._hasDelta&&(pt.push("delta"),tt.delta.position==="left"&&pt.reverse());var wt=ht.selectAll("text").data(pt);function Dt(gn,bn,mn,vt){if(!gn.match("s")||mn>=0==vt>=0||bn(mn).slice(-1).match(T)||bn(vt).slice(-1).match(T))return bn;var bt=gn.slice().replace("s","f").replace(/\d+/,function(yt){return parseInt(yt)-1}),lt=L(Oe,{tickformat:bt});return function(yt){return Math.abs(yt)<1?v.tickText(lt,yt).text:bn(yt)}}wt.enter().append("text"),wt.attr("text-anchor",function(){return nt}).attr("class",function(gn){return gn}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),wt.exit().remove();var It,qt=tt.mode+tt.align;if(tt._hasDelta&&(It=function(){var gn=L(Oe,{tickformat:tt.delta.valueformat},tt._range);gn.setScale(),v.prepTicks(gn);var bn=function(it){return v.tickText(gn,it).text},mn=tt.delta.suffix,vt=tt.delta.prefix,bt=function(it){return tt.delta.relative?it.relativeDelta:it.delta},lt=function(it,at){return it===0||typeof it!="number"||isNaN(it)?"-":(it>0?tt.delta.increasing.symbol:tt.delta.decreasing.symbol)+vt+at(it)+mn},yt=function(it){return it.delta>=0?tt.delta.increasing.color:tt.delta.decreasing.color};tt._deltaLastValue===void 0&&(tt._deltaLastValue=bt(Le[0]));var zt=ht.select("text.delta");function Rt(){zt.text(lt(bt(Le[0]),bn)).call(x.fill,yt(Le[0])).call(m.convertToTspans,Oe)}return zt.call(u.font,tt.delta.font).call(x.fill,yt({delta:tt._deltaLastValue})),E(ot)?zt.transition().duration(ot.duration).ease(ot.easing).tween("text",function(){var it=c.select(this),at=bt(Le[0]),Lt=tt._deltaLastValue,xt=Dt(tt.delta.valueformat,bn,Lt,at),Ht=i(Lt,at);return tt._deltaLastValue=at,function(Xt){it.text(lt(Ht(Xt),xt)),it.call(x.fill,yt({delta:Ht(Xt)}))}}).each("end",function(){Rt(),Ge&&Ge()}).each("interrupt",function(){Rt(),Ge&&Ge()}):Rt(),Ze=k(lt(bt(Le[0]),bn),tt.delta.font,nt,Oe),zt}(),qt+=tt.delta.position+tt.delta.font.size+tt.delta.font.family+tt.delta.valueformat,qt+=tt.delta.increasing.symbol+tt.delta.decreasing.symbol,Xe=Ze),tt._hasNumber&&(function(){var gn=L(Oe,{tickformat:tt.number.valueformat},tt._range);gn.setScale(),v.prepTicks(gn);var bn=function(yt){return v.tickText(gn,yt).text},mn=tt.number.suffix,vt=tt.number.prefix,bt=ht.select("text.number");function lt(){var yt=typeof Le[0].y=="number"?vt+bn(Le[0].y)+mn:"-";bt.text(yt).call(u.font,tt.number.font).call(m.convertToTspans,Oe)}E(ot)?bt.transition().duration(ot.duration).ease(ot.easing).each("end",function(){lt(),Ge&&Ge()}).each("interrupt",function(){lt(),Ge&&Ge()}).attrTween("text",function(){var yt=c.select(this),zt=i(Le[0].lastY,Le[0].y);tt._lastValue=Le[0].y;var Rt=Dt(tt.number.valueformat,bn,Le[0].lastY,Le[0].y);return function(it){yt.text(vt+Rt(zt(it))+mn)}}):lt(),Ue=k(vt+bn(Le[0].y)+mn,tt.number.font,nt,Oe)}(),qt+=tt.number.font.size+tt.number.font.family+tt.number.valueformat+tt.number.suffix+tt.number.prefix,Xe=Ue),tt._hasDelta&&tt._hasNumber){var en,Gt,Ct=[(Ue.left+Ue.right)/2,(Ue.top+Ue.bottom)/2],_t=[(Ze.left+Ze.right)/2,(Ze.top+Ze.bottom)/2],nn=.75*tt.delta.font.size;tt.delta.position==="left"&&(en=I(tt,"deltaPos",0,-1*(Ue.width*M[tt.align]+Ze.width*(1-M[tt.align])+nn),qt,Math.min),Gt=Ct[1]-_t[1],Xe={width:Ue.width+Ze.width+nn,height:Math.max(Ue.height,Ze.height),left:Ze.left+en,right:Ue.right,top:Math.min(Ue.top,Ze.top+Gt),bottom:Math.max(Ue.bottom,Ze.bottom+Gt)}),tt.delta.position==="right"&&(en=I(tt,"deltaPos",0,Ue.width*(1-M[tt.align])+Ze.width*M[tt.align]+nn,qt,Math.max),Gt=Ct[1]-_t[1],Xe={width:Ue.width+Ze.width+nn,height:Math.max(Ue.height,Ze.height),left:Ue.left,right:Ze.right+en,top:Math.min(Ue.top,Ze.top+Gt),bottom:Math.max(Ue.bottom,Ze.bottom+Gt)}),tt.delta.position==="bottom"&&(en=null,Gt=Ze.height,Xe={width:Math.max(Ue.width,Ze.width),height:Ue.height+Ze.height,left:Math.min(Ue.left,Ze.left),right:Math.max(Ue.right,Ze.right),top:Ue.bottom-Ue.height,bottom:Ue.bottom+Ze.height}),tt.delta.position==="top"&&(en=null,Gt=Ue.top,Xe={width:Math.max(Ue.width,Ze.width),height:Ue.height+Ze.height,left:Math.min(Ue.left,Ze.left),right:Math.max(Ue.right,Ze.right),top:Ue.bottom-Ue.height-Ze.height,bottom:Ue.bottom}),It.attr({dx:en,dy:Gt})}(tt._hasNumber||tt._hasDelta)&&ht.attr("transform",function(){var gn=We.numbersScaler(Xe);qt+=gn[2];var bn,mn=I(tt,"numbersScale",1,gn[0],qt,Math.min);tt._scaleNumbers||(mn=1),bn=tt._isAngular?Ne-mn*Xe.bottom:Ne-mn*(Xe.top+Xe.bottom)/2,tt._numbersTop=mn*Xe.top+bn;var vt=Xe[je];je==="center"&&(vt=(Xe.left+Xe.right)/2);var bt=Ee-mn*vt;return bt=I(tt,"numbersTranslate",0,bt,qt,Math.max),y(bt,bn)+w(mn)})})(z,me,te,{numbersX:W,numbersY:K,numbersScaler:oe,transitionOpts:Q,onComplete:U}),he&&(q={range:ee.gauge.axis.range,color:ee.gauge.bgcolor,line:{color:ee.gauge.bordercolor,width:0},thickness:1},Y={range:ee.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:ee.gauge.bordercolor,width:ee.gauge.borderwidth},thickness:1});var ze=me.selectAll("g.angular").data(se?te:[]);ze.exit().remove();var De=me.selectAll("g.angularaxis").data(se?te:[]);De.exit().remove(),se&&function(Oe,ke,Le,We){var Ue,Ze,Xe,tt,Ee=Le[0].trace,Ne=We.size,je=We.radius,nt=We.innerRadius,ot=We.gaugeBg,Ge=We.gaugeOutline,ht=[Ne.l+Ne.w/2,Ne.t+Ne.h/2+je/2],pt=We.gauge,wt=We.layer,Dt=We.transitionOpts,It=We.onComplete,qt=Math.PI/2;function en(Xt){var Yt=Ee.gauge.axis.range[0],Qt=(Xt-Yt)/(Ee.gauge.axis.range[1]-Yt)*Math.PI-qt;return Qt<-qt?-qt:Qt>qt?qt:Qt}function Gt(Xt){return c.svg.arc().innerRadius((nt+je)/2-Xt/2*(je-nt)).outerRadius((nt+je)/2+Xt/2*(je-nt)).startAngle(-qt)}function Ct(Xt){Xt.attr("d",function(Yt){return Gt(Yt.thickness).startAngle(en(Yt.range[0])).endAngle(en(Yt.range[1]))()})}pt.enter().append("g").classed("angular",!0),pt.attr("transform",y(ht[0],ht[1])),wt.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),wt.selectAll("g.xangularaxistick,path,text").remove(),(Ue=L(Oe,Ee.gauge.axis)).type="linear",Ue.range=Ee.gauge.axis.range,Ue._id="xangularaxis",Ue.ticklabeloverflow="allow",Ue.setScale();var _t=function(Xt){return(Ue.range[0]-Xt.x)/(Ue.range[1]-Ue.range[0])*Math.PI+Math.PI},nn={},gn=v.makeLabelFns(Ue,0).labelStandoff;nn.xFn=function(Xt){var Yt=_t(Xt);return Math.cos(Yt)*gn},nn.yFn=function(Xt){var Yt=_t(Xt),Qt=Math.sin(Yt)>0?.2:1;return-Math.sin(Yt)*(gn+Xt.fontSize*Qt)+Math.abs(Math.cos(Yt))*(Xt.fontSize*a)},nn.anchorFn=function(Xt){var Yt=_t(Xt),Qt=Math.cos(Yt);return Math.abs(Qt)<.1?"middle":Qt>0?"start":"end"},nn.heightFn=function(Xt,Yt,Qt){var Pt=_t(Xt);return-.5*(1+Math.sin(Pt))*Qt};var bn=function(Xt){return y(ht[0]+je*Math.cos(Xt),ht[1]-je*Math.sin(Xt))};if(Xe=function(Xt){return bn(_t(Xt))},Ze=v.calcTicks(Ue),tt=v.getTickSigns(Ue)[2],Ue.visible){tt=Ue.ticks==="inside"?-1:1;var mn=(Ue.linewidth||1)/2;v.drawTicks(Oe,Ue,{vals:Ze,layer:wt,path:"M"+tt*mn+",0h"+tt*Ue.ticklen,transFn:function(Xt){var Yt=_t(Xt);return bn(Yt)+"rotate("+-p(Yt)+")"}}),v.drawLabels(Oe,Ue,{vals:Ze,layer:wt,transFn:Xe,labelFns:nn})}var vt=[ot].concat(Ee.gauge.steps),bt=pt.selectAll("g.bg-arc").data(vt);bt.enter().append("g").classed("bg-arc",!0).append("path"),bt.select("path").call(Ct).call(C),bt.exit().remove();var lt=Gt(Ee.gauge.bar.thickness),yt=pt.selectAll("g.value-arc").data([Ee.gauge.bar]);yt.enter().append("g").classed("value-arc",!0).append("path");var zt,Rt,it,at=yt.select("path");E(Dt)?(at.transition().duration(Dt.duration).ease(Dt.easing).each("end",function(){It&&It()}).each("interrupt",function(){It&&It()}).attrTween("d",(zt=lt,Rt=en(Le[0].lastY),it=en(Le[0].y),function(){var Xt=b(Rt,it);return function(Yt){return zt.endAngle(Xt(Yt))()}})),Ee._lastValue=Le[0].y):at.attr("d",typeof Le[0].y=="number"?lt.endAngle(en(Le[0].y)):"M0,0Z"),at.call(C),yt.exit().remove(),vt=[];var Lt=Ee.gauge.threshold.value;(Lt||Lt===0)&&vt.push({range:[Lt,Lt],color:Ee.gauge.threshold.color,line:{color:Ee.gauge.threshold.line.color,width:Ee.gauge.threshold.line.width},thickness:Ee.gauge.threshold.thickness});var xt=pt.selectAll("g.threshold-arc").data(vt);xt.enter().append("g").classed("threshold-arc",!0).append("path"),xt.select("path").call(Ct).call(C),xt.exit().remove();var Ht=pt.selectAll("g.gauge-outline").data([Ge]);Ht.enter().append("g").classed("gauge-outline",!0).append("path"),Ht.select("path").call(Ct).call(C),Ht.exit().remove()}(z,0,te,{radius:_e,innerRadius:Se,gauge:ze,layer:De,size:de,gaugeBg:q,gaugeOutline:Y,transitionOpts:Q,onComplete:U});var He=me.selectAll("g.bullet").data(ae?te:[]);He.exit().remove();var Ve=me.selectAll("g.bulletaxis").data(ae?te:[]);Ve.exit().remove(),ae&&function(Oe,ke,Le,We){var Ue,Ze,Xe,tt,Ee,Ne=Le[0].trace,je=We.gauge,nt=We.layer,ot=We.gaugeBg,Ge=We.gaugeOutline,ht=We.size,pt=Ne.domain,wt=We.transitionOpts,Dt=We.onComplete;je.enter().append("g").classed("bullet",!0),je.attr("transform",y(ht.l,ht.t)),nt.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),nt.selectAll("g.xbulletaxistick,path,text").remove();var It=ht.h,qt=Ne.gauge.bar.thickness*It,en=pt.x[0],Gt=pt.x[0]+(pt.x[1]-pt.x[0])*(Ne._hasNumber||Ne._hasDelta?1-h.bulletNumberDomainSize:1);function Ct(bt){bt.attr("width",function(lt){return Math.max(0,Ue.c2p(lt.range[1])-Ue.c2p(lt.range[0]))}).attr("x",function(lt){return Ue.c2p(lt.range[0])}).attr("y",function(lt){return .5*(1-lt.thickness)*It}).attr("height",function(lt){return lt.thickness*It})}(Ue=L(Oe,Ne.gauge.axis))._id="xbulletaxis",Ue.domain=[en,Gt],Ue.setScale(),Ze=v.calcTicks(Ue),Xe=v.makeTransTickFn(Ue),tt=v.getTickSigns(Ue)[2],Ee=ht.t+ht.h,Ue.visible&&(v.drawTicks(Oe,Ue,{vals:Ue.ticks==="inside"?v.clipEnds(Ue,Ze):Ze,layer:nt,path:v.makeTickPath(Ue,Ee,tt),transFn:Xe}),v.drawLabels(Oe,Ue,{vals:Ze,layer:nt,transFn:Xe,labelFns:v.makeLabelFns(Ue,Ee)}));var _t=[ot].concat(Ne.gauge.steps),nn=je.selectAll("g.bg-bullet").data(_t);nn.enter().append("g").classed("bg-bullet",!0).append("rect"),nn.select("rect").call(Ct).call(C),nn.exit().remove();var gn=je.selectAll("g.value-bullet").data([Ne.gauge.bar]);gn.enter().append("g").classed("value-bullet",!0).append("rect"),gn.select("rect").attr("height",qt).attr("y",(It-qt)/2).call(C),E(wt)?gn.select("rect").transition().duration(wt.duration).ease(wt.easing).each("end",function(){Dt&&Dt()}).each("interrupt",function(){Dt&&Dt()}).attr("width",Math.max(0,Ue.c2p(Math.min(Ne.gauge.axis.range[1],Le[0].y)))):gn.select("rect").attr("width",typeof Le[0].y=="number"?Math.max(0,Ue.c2p(Math.min(Ne.gauge.axis.range[1],Le[0].y))):0),gn.exit().remove();var bn=Le.filter(function(){return Ne.gauge.threshold.value||Ne.gauge.threshold.value===0}),mn=je.selectAll("g.threshold-bullet").data(bn);mn.enter().append("g").classed("threshold-bullet",!0).append("line"),mn.select("line").attr("x1",Ue.c2p(Ne.gauge.threshold.value)).attr("x2",Ue.c2p(Ne.gauge.threshold.value)).attr("y1",(1-Ne.gauge.threshold.thickness)/2*It).attr("y2",(1-(1-Ne.gauge.threshold.thickness)/2)*It).call(x.stroke,Ne.gauge.threshold.line.color).style("stroke-width",Ne.gauge.threshold.line.width),mn.exit().remove();var vt=je.selectAll("g.gauge-outline").data([Ge]);vt.enter().append("g").classed("gauge-outline",!0).append("rect"),vt.select("rect").call(Ct).call(C),vt.exit().remove()}(z,0,te,{gauge:He,layer:Ve,size:de,gaugeBg:q,gaugeOutline:Y,transitionOpts:Q,onComplete:U});var $e=me.selectAll("text.title").data(te);$e.exit().remove(),$e.enter().append("text").classed("title",!0),$e.attr("text-anchor",function(){return ae?R.right:R[ee.title.align]}).text(ee.title.text).call(u.font,ee.title.font).call(m.convertToTspans,z),$e.attr("transform",function(){var Oe,ke=de.l+de.w*M[ee.title.align],Le=h.titlePadding,We=u.bBox($e.node());return he?(se&&(Oe=ee.gauge.axis.visible?u.bBox(De.node()).top-Le-We.bottom:de.t+de.h/2-_e/2-We.bottom-Le),ae&&(Oe=K-(We.top+We.bottom)/2,ke=de.l-h.bulletPadding*de.w)):Oe=ee._numbersTop-Le-We.bottom,y(ke,Oe)})})}},50048:function(d,l,n){var c=n(49084),b=n(29736).axisHoverFormat,i=n(21776).Ks,O=n(52948),w=n(45464),y=n(92880).extendFlat,p=n(67824).overrideAll,a=d.exports=p(y({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}},y:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}},z:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}},caps:{x:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}},y:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}},z:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:i(),xhoverformat:b("x"),yhoverformat:b("y"),zhoverformat:b("z"),valuehoverformat:b("value",1),showlegend:y({},w.showlegend,{dflt:!1})},c("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:O.opacity,lightposition:O.lightposition,lighting:O.lighting,flatshading:O.flatshading,contour:O.contour,hoverinfo:y({},w.hoverinfo)}),"calc","nested");a.flatshading.dflt=!0,a.lighting.facenormalsepsilon.dflt=0,a.x.editType=a.y.editType=a.z.editType=a.value.editType="calc+clearAxisTypes",a.transforms=void 0},62624:function(d,l,n){var c=n(47128),b=n(3832).processGrid,i=n(3832).filter;d.exports=function(O,w){w._len=Math.min(w.x.length,w.y.length,w.z.length,w.value.length),w._x=i(w.x,w._len),w._y=i(w.y,w._len),w._z=i(w.z,w._len),w._value=i(w.value,w._len);var y=b(w);w._gridFill=y.fill,w._Xs=y.Xs,w._Ys=y.Ys,w._Zs=y.Zs,w._len=y.len;for(var p=1/0,a=-1/0,u=0;u0;S--){var A=Math.min(_[S],_[S-1]),x=Math.max(_[S],_[S-1]);if(x>A&&A-1}function ye(nt,ot){return nt===null?ot:nt}function _e(nt,ot,Ge){he();var ht,pt,wt,Dt=[ot],It=[Ge];if(T>=1)Dt=[ot],It=[Ge];else if(T>0){var qt=function(vt,bt){var lt=vt[0],yt=vt[1],zt=vt[2],Rt=function(Qt,Pt,tn){for(var Kt=[],fn=0;fn-1?Ge[Ct]:me(_t,nn,gn);Gt[Ct]=mn>-1?mn:ae(_t,nn,gn,ye(nt,bn))}ht=Gt[0],pt=Gt[1],wt=Gt[2],v._meshI.push(ht),v._meshJ.push(pt),v._meshK.push(wt),++z}}function Se(nt,ot,Ge,ht){var pt=nt[3];ptht&&(pt=ht);for(var wt=(nt[3]-pt)/(nt[3]-ot[3]+1e-9),Dt=[],It=0;It<4;It++)Dt[It]=(1-wt)*nt[It]+wt*ot[It];return Dt}function Te(nt,ot,Ge){return nt>=ot&&nt<=Ge}function Pe(nt){var ot=.001*(ee-Y);return nt>=Y-ot&&nt<=ee+ot}function Ie(nt){for(var ot=[],Ge=0;Ge<4;Ge++){var ht=nt[Ge];ot.push([v._x[ht],v._y[ht],v._z[ht],v._value[ht]])}return ot}var ze=3;function De(nt,ot,Ge,ht,pt,wt){wt||(wt=1),Ge=[-1,-1,-1];var Dt=!1,It=[Te(ot[0][3],ht,pt),Te(ot[1][3],ht,pt),Te(ot[2][3],ht,pt)];if(!It[0]&&!It[1]&&!It[2])return!1;var qt=function(Gt,Ct,_t){return Pe(Ct[0][3])&&Pe(Ct[1][3])&&Pe(Ct[2][3])?(_e(Gt,Ct,_t),!0):wtMath.abs(wt-q)?[oe,wt]:[wt,q];k=!0,Xe(ot,Dt[0],Dt[1]),k=!1}}var It=[[Math.min(Y,q),Math.max(Y,q)],[Math.min(oe,ee),Math.max(oe,ee)]];["x","y","z"].forEach(function(qt){for(var en=[],Gt=0;Gt0&&(mn.push(lt.id),qt==="x"?vt.push([lt.distRatio,0,0]):qt==="y"?vt.push([0,lt.distRatio,0]):vt.push([0,0,lt.distRatio]))}else bn=je(1,qt==="x"?U-1:qt==="y"?X-1:te-1);mn.length>0&&(en[Ct]=qt==="x"?tt(nt,mn,_t,nn,vt,en[Ct]):qt==="y"?Ee(nt,mn,_t,nn,vt,en[Ct]):Ne(nt,mn,_t,nn,vt,en[Ct]),Ct++),bn.length>0&&(en[Ct]=qt==="x"?We(nt,bn,_t,nn,en[Ct]):qt==="y"?Ue(nt,bn,_t,nn,en[Ct]):Ze(nt,bn,_t,nn,en[Ct]),Ct++)}var yt=v.caps[qt];yt.show&&yt.fill&&(de(yt.fill),en[Ct]=qt==="x"?We(nt,[0,U-1],_t,nn,en[Ct]):qt==="y"?Ue(nt,[0,X-1],_t,nn,en[Ct]):Ze(nt,[0,te-1],_t,nn,en[Ct]),Ct++)}}),z===0&&se(),v._meshX=A,v._meshY=x,v._meshZ=R,v._meshIntensity=M,v._Xs=$,v._Ys=Q,v._Zs=j}(),v}d.exports={findNearestOnAxis:p,generateIsoMeshes:m,createIsosurfaceTrace:function(v,_){var S=v.glplot.gl,A=c({gl:S}),x=new a(v,A,_.uid);return A._trace=x,x.update(_),v.glplot.add(A),x}}},70548:function(d,l,n){var c=n(3400),b=n(24040),i=n(50048),O=n(27260);function w(y,p,a,u,h){var m=h("isomin"),v=h("isomax");v!=null&&m!=null&&m>v&&(p.isomin=null,p.isomax=null);var _=h("x"),S=h("y"),A=h("z"),x=h("value");_&&_.length&&S&&S.length&&A&&A.length&&x&&x.length?(b.getComponentMethod("calendars","handleTraceDefaults")(y,p,["x","y","z"],u),h("valuehoverformat"),["x","y","z"].forEach(function(R){h(R+"hoverformat");var M="caps."+R;h(M+".show")&&h(M+".fill");var T="slices."+R;h(T+".show")&&(h(T+".fill"),h(T+".locations"))}),h("spaceframe.show")&&h("spaceframe.fill"),h("surface.show")&&(h("surface.count"),h("surface.fill"),h("surface.pattern")),h("contour.show")&&(h("contour.color"),h("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(R){h(R)}),O(y,p,u,h,{prefix:"",cLetter:"c"}),p._length=null):p.visible=!1}d.exports={supplyDefaults:function(y,p,a,u){w(y,p,0,u,function(h,m){return c.coerce(y,p,i,h,m)})},supplyIsoDefaults:w}},6296:function(d,l,n){d.exports={attributes:n(50048),supplyDefaults:n(70548).supplyDefaults,calc:n(62624),colorbar:{min:"cmin",max:"cmax"},plot:n(31460).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:n(12536),categories:["gl3d","showLegend"],meta:{}}},52948:function(d,l,n){var c=n(49084),b=n(29736).axisHoverFormat,i=n(21776).Ks,O=n(16716),w=n(45464),y=n(92880).extendFlat;d.exports=y({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"}),xhoverformat:b("x"),yhoverformat:b("y"),zhoverformat:b("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},c("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:O.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:y({},O.contours.x.show,{}),color:O.contours.x.color,width:O.contours.x.width,editType:"calc"},lightposition:{x:y({},O.lightposition.x,{dflt:1e5}),y:y({},O.lightposition.y,{dflt:1e5}),z:y({},O.lightposition.z,{dflt:0}),editType:"calc"},lighting:y({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},O.lighting),hoverinfo:y({},w.hoverinfo,{editType:"calc"}),showlegend:y({},w.showlegend,{dflt:!1})})},1876:function(d,l,n){var c=n(47128);d.exports=function(b,i){i.intensity&&c(b,i,{vals:i.intensity,containerStr:"",cLetter:"c"})}},576:function(d,l,n){var c=n(67792).gl_mesh3d,b=n(67792).delaunay_triangulate,i=n(67792).alpha_shape,O=n(67792).convex_hull,w=n(33040).parseColorScale,y=n(3400).isArrayOrTypedArray,p=n(43080),a=n(8932).extractOpts,u=n(52094);function h(x,R,M){this.scene=x,this.uid=M,this.mesh=R,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var m=h.prototype;function v(x){for(var R=[],M=x.length,T=0;T=R-.5)return!1;return!0}m.handlePick=function(x){if(x.object===this.mesh){var R=x.index=x.data.index;x.data._cellCenter?x.traceCoordinate=x.data.dataCoordinate:x.traceCoordinate=[this.data.x[R],this.data.y[R],this.data.z[R]];var M=this.data.hovertext||this.data.text;return y(M)&&M[R]!==void 0?x.textLabel=M[R]:M&&(x.textLabel=M),!0}},m.update=function(x){var R=this.scene,M=R.fullSceneLayout;this.data=x;var T,E=x.x.length,C=u(_(M.xaxis,x.x,R.dataScale[0],x.xcalendar),_(M.yaxis,x.y,R.dataScale[1],x.ycalendar),_(M.zaxis,x.z,R.dataScale[2],x.zcalendar));if(x.i&&x.j&&x.k){if(x.i.length!==x.j.length||x.j.length!==x.k.length||!A(x.i,E)||!A(x.j,E)||!A(x.k,E))return;T=u(S(x.i),S(x.j),S(x.k))}else T=x.alphahull===0?O(C):x.alphahull>0?i(x.alphahull,C):function(I,z){for(var $=["x","y","z"].indexOf(I),Q=[],j=z.length,U=0;UC):E=j>z,C=j;var U=_(z,$,Q,j);U.pos=I,U.yc=(z+j)/2,U.i=k,U.dir=E?"increasing":"decreasing",U.x=U.pos,U.y=[Q,$],L&&(U.orig_p=h[k]),M&&(U.tx=u.text[k]),T&&(U.htx=u.hovertext[k]),D.push(U)}else D.push({pos:I,empty:!0})}return u._extremes[v._id]=i.findExtremes(v,c.concat(x,A),{padded:!0}),D.length&&(D[0].t={labels:{open:b(a,"open:")+" ",high:b(a,"high:")+" ",low:b(a,"low:")+" ",close:b(a,"close:")+" "}}),D}d.exports={calc:function(a,u){var h=i.getFromId(a,u.xaxis),m=i.getFromId(a,u.yaxis),v=function(R,M,T){var E=T._minDiff;if(!E){var C,L=R._fullData,D=[];for(E=1/0,C=0;C"+M.labels[$]+c.hoverLabelText(x,Q,R.yhoverformat):((z=b.extendFlat({},E)).y0=z.y1=j,z.yLabelVal=Q,z.yLabel=M.labels[$]+c.hoverLabelText(x,Q,R.yhoverformat),z.name="",T.push(z),k[Q]=z)}return T}function h(m,v,_,S){var A=m.cd,x=m.ya,R=A[0].trace,M=A[0].t,T=a(m,v,_,S);if(!T)return[];var E=A[T.index],C=T.index=E.i,L=E.dir;function D(U){return M.labels[U]+c.hoverLabelText(x,R[U][C],R.yhoverformat)}var k=E.hi||R.hoverinfo,I=k.split("+"),z=k==="all",$=z||I.indexOf("y")!==-1,Q=z||I.indexOf("text")!==-1,j=$?[D("open"),D("high"),D("low"),D("close")+" "+p[L]]:[];return Q&&w(E,R,j),T.extraText=j.join("
    "),T.y0=T.y1=x.c2p(E.yc,!0),[T]}d.exports={hoverPoints:function(m,v,_,S){return m.cd[0].trace.hoverlabel.split?u(m,v,_,S):h(m,v,_,S)},hoverSplit:u,hoverOnPoints:h}},65456:function(d,l,n){d.exports={moduleType:"trace",name:"ohlc",basePlotModule:n(57952),categories:["cartesian","svg","showLegend"],meta:{},attributes:n(20279),supplyDefaults:n(23860),calc:n(42812).calc,plot:n(36664),style:n(14008),hoverPoints:n(18720).hoverPoints,selectPoints:n(97384)}},52744:function(d,l,n){var c=n(24040),b=n(3400);d.exports=function(i,O,w,y){var p=w("x"),a=w("open"),u=w("high"),h=w("low"),m=w("close");if(w("hoverlabel.split"),c.getComponentMethod("calendars","handleTraceDefaults")(i,O,["x"],y),a&&u&&h&&m){var v=Math.min(a.length,u.length,h.length,m.length);return p&&(v=Math.min(v,b.minRowLength(p))),O._length=v,v}}},36664:function(d,l,n){var c=n(33428),b=n(3400);d.exports=function(i,O,w,y){var p=O.yaxis,a=O.xaxis,u=!!a.rangebreaks;b.makeTraceGroups(y,w,"trace ohlc").each(function(h){var m=c.select(this),v=h[0],_=v.t;if(v.trace.visible!==!0||_.empty)m.remove();else{var S=_.tickLen,A=m.selectAll("path").data(b.identity);A.enter().append("path"),A.exit().remove(),A.attr("d",function(x){if(x.empty)return"M0,0Z";var R=a.c2p(x.pos-S,!0),M=a.c2p(x.pos+S,!0),T=u?(R+M)/2:a.c2p(x.pos,!0);return"M"+R+","+p.c2p(x.o,!0)+"H"+T+"M"+T+","+p.c2p(x.h,!0)+"V"+p.c2p(x.l,!0)+"M"+M+","+p.c2p(x.c,!0)+"H"+T})}})}},97384:function(d){d.exports=function(l,n){var c,b=l.cd,i=l.xaxis,O=l.yaxis,w=[],y=b[0].t.bPos||0;if(n===!1)for(c=0;c=se.length||ae[se[ce]]!==void 0)return!1;ae[se[ce]]=!0}return!0}(he))for(me=0;me0||a(x);R&&(A="array");var M=v("categoryorder",A);M==="array"?(v("categoryarray"),v("ticktext")):(delete h.categoryarray,delete h.ticktext),R||M!=="array"||(m.categoryorder="trace")}}d.exports=function(h,m,v,_){function S(T,E){return c.coerce(h,m,y,T,E)}var A=w(h,m,{name:"dimensions",handleItemDefaults:u}),x=function(T,E,C,L,D){D("line.shape"),D("line.hovertemplate");var k=D("line.color",L.colorway[0]);if(b(T,"line")&&c.isArrayOrTypedArray(k)){if(k.length)return D("line.colorscale"),i(T,E,L,D,{prefix:"line.",cLetter:"c"}),k.length;E.line.color=C}return 1/0}(h,m,v,_,S);O(m,_,S),Array.isArray(A)&&A.length||(m.visible=!1),p(m,A,"values",x),S("hoveron"),S("hovertemplate"),S("arrangement"),S("bundlecolors"),S("sortpaths"),S("counts");var R={family:_.font.family,size:Math.round(_.font.size),color:_.font.color};c.coerceFont(S,"labelfont",R);var M={family:_.font.family,size:Math.round(_.font.size/1.2),color:_.font.color};c.coerceFont(S,"tickfont",M)}},22020:function(d,l,n){d.exports={attributes:n(72140),supplyDefaults:n(76671),calc:n(69136),plot:n(60268),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:n(91800),categories:["noOpacity"],meta:{}}},51036:function(d,l,n){var c=n(33428),b=n(67756).Gz,i=n(36424),O=n(93024),w=n(3400),y=w.strTranslate,p=n(43616),a=n(49760),u=n(72736);function h(he,se,ae,ce){var de=se._context.staticPlot,ve=he.map(oe.bind(0,se,ae)),ye=ce.selectAll("g.parcatslayer").data([null]);ye.enter().append("g").attr("class","parcatslayer").style("pointer-events",de?"none":"all");var _e=ye.selectAll("g.trace.parcats").data(ve,m),Se=_e.enter().append("g").attr("class","trace parcats");_e.attr("transform",function(Oe){return y(Oe.x,Oe.y)}),Se.append("g").attr("class","paths");var Te=_e.select("g.paths").selectAll("path.path").data(function(Oe){return Oe.paths},m);Te.attr("fill",function(Oe){return Oe.model.color});var Pe=Te.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(Oe){return Oe.model.color}).attr("fill-opacity",0);T(Pe),Te.attr("d",function(Oe){return Oe.svgD}),Pe.empty()||Te.sort(_),Te.exit().remove(),Te.on("mouseover",S).on("mouseout",A).on("click",M),Se.append("g").attr("class","dimensions");var Ie=_e.select("g.dimensions").selectAll("g.dimension").data(function(Oe){return Oe.dimensions},m);Ie.enter().append("g").attr("class","dimension"),Ie.attr("transform",function(Oe){return y(Oe.x,0)}),Ie.exit().remove();var ze=Ie.selectAll("g.category").data(function(Oe){return Oe.categories},m),De=ze.enter().append("g").attr("class","category");ze.attr("transform",function(Oe){return y(0,Oe.y)}),De.append("rect").attr("class","catrect").attr("pointer-events","none"),ze.select("rect.catrect").attr("fill","none").attr("width",function(Oe){return Oe.width}).attr("height",function(Oe){return Oe.height}),C(De);var He=ze.selectAll("rect.bandrect").data(function(Oe){return Oe.bands},m);He.each(function(){w.raiseToTop(this)}),He.attr("fill",function(Oe){return Oe.color});var Ve=He.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(Oe){return Oe.color}).attr("fill-opacity",0);He.attr("fill",function(Oe){return Oe.color}).attr("width",function(Oe){return Oe.width}).attr("height",function(Oe){return Oe.height}).attr("y",function(Oe){return Oe.y}).attr("cursor",function(Oe){return Oe.parcatsViewModel.arrangement==="fixed"?"default":Oe.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),L(Ve),He.exit().remove(),De.append("text").attr("class","catlabel").attr("pointer-events","none");var $e=se._fullLayout.paper_bgcolor;ze.select("text.catlabel").attr("text-anchor",function(Oe){return v(Oe)?"start":"end"}).attr("alignment-baseline","middle").style("text-shadow",u.makeTextShadow($e)).style("fill","rgb(0, 0, 0)").attr("x",function(Oe){return v(Oe)?Oe.width+5:-5}).attr("y",function(Oe){return Oe.height/2}).text(function(Oe){return Oe.model.categoryLabel}).each(function(Oe){p.font(c.select(this),Oe.parcatsViewModel.categorylabelfont),u.convertToTspans(c.select(this),se)}),De.append("text").attr("class","dimlabel"),ze.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(Oe){return Oe.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(Oe){return Oe.width/2}).attr("y",-5).text(function(Oe,ke){return ke===0?Oe.parcatsViewModel.model.dimensions[Oe.model.dimensionInd].dimensionLabel:null}).each(function(Oe){p.font(c.select(this),Oe.parcatsViewModel.labelfont)}),ze.selectAll("rect.bandrect").on("mouseover",$).on("mouseout",Q),ze.exit().remove(),Ie.call(c.behavior.drag().origin(function(Oe){return{x:Oe.x,y:0}}).on("dragstart",j).on("drag",U).on("dragend",X)),_e.each(function(Oe){Oe.traceSelection=c.select(this),Oe.pathSelection=c.select(this).selectAll("g.paths").selectAll("path.path"),Oe.dimensionSelection=c.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),_e.exit().remove()}function m(he){return he.key}function v(he){var se=he.parcatsViewModel.dimensions.length,ae=he.parcatsViewModel.dimensions[se-1].model.dimensionInd;return he.model.dimensionInd===ae}function _(he,se){return he.model.rawColor>se.model.rawColor?1:he.model.rawColor"),Ze=c.mouse(_e)[0];O.loneHover({trace:Se,x:He-Pe.left+Ie.left,y:Ve-Pe.top+Ie.top,text:Ue,color:he.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:$e,idealAlign:Ze1&&Ie.displayInd===Pe.dimensions.length-1?(ce=Se.left,de="left"):(ce=Se.left+Se.width,de="right");var He=Te.model.count,Ve=Te.model.categoryLabel,$e=He/Te.parcatsViewModel.model.count,Oe={countLabel:He,categoryLabel:Ve,probabilityLabel:$e.toFixed(3)},ke=[];Te.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&ke.push(["Count:",Oe.countLabel].join(" ")),Te.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&ke.push(["P("+Oe.categoryLabel+"):",Oe.probabilityLabel].join(" "));var Le=ke.join("
    ");return{trace:ze,x:ve*(ce-se.left),y:ye*(De-se.top),text:Le,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:de,hovertemplate:ze.hovertemplate,hovertemplateLabels:Oe,eventData:[{data:ze._input,fullData:ze,count:He,category:Ve,probability:$e}]}}function $(he){if(!he.parcatsViewModel.dragDimension&&he.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){if(c.mouse(this)[1]<-1)return;var se,ae=he.parcatsViewModel.graphDiv,ce=ae._fullLayout,de=ce._paperdiv.node().getBoundingClientRect(),ve=he.parcatsViewModel.hoveron,ye=this;ve==="color"?(function(_e){var Se=c.select(_e).datum(),Te=D(Se);E(Te),Te.each(function(){w.raiseToTop(this)}),c.select(_e.parentNode).selectAll("rect.bandrect").filter(function(Pe){return Pe.color===Se.color}).each(function(){w.raiseToTop(this),c.select(this).attr("stroke","black").attr("stroke-width",1.5)})}(ye),I(ye,"plotly_hover",c.event)):(function(_e){c.select(_e.parentNode).selectAll("rect.bandrect").each(function(Se){var Te=D(Se);E(Te),Te.each(function(){w.raiseToTop(this)})}),c.select(_e.parentNode).select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}(ye),k(ye,"plotly_hover",c.event)),he.parcatsViewModel.hoverinfoItems.indexOf("none")===-1&&(ve==="category"?se=z(ae,de,ye):ve==="color"?se=function(_e,Se,Te){_e._fullLayout._calcInverseTransform(_e);var Pe,Ie,ze=_e._fullLayout._invScaleX,De=_e._fullLayout._invScaleY,He=Te.getBoundingClientRect(),Ve=c.select(Te).datum(),$e=Ve.categoryViewModel,Oe=$e.parcatsViewModel,ke=Oe.model.dimensions[$e.model.dimensionInd],Le=Oe.trace,We=He.y+He.height/2;Oe.dimensions.length>1&&ke.displayInd===Oe.dimensions.length-1?(Pe=He.left,Ie="left"):(Pe=He.left+He.width,Ie="right");var Ue=$e.model.categoryLabel,Ze=Ve.parcatsViewModel.model.count,Xe=0;Ve.categoryViewModel.bands.forEach(function(wt){wt.color===Ve.color&&(Xe+=wt.count)});var tt=$e.model.count,Ee=0;Oe.pathSelection.each(function(wt){wt.model.color===Ve.color&&(Ee+=wt.model.count)});var Ne=Xe/Ze,je=Xe/Ee,nt=Xe/tt,ot={countLabel:Ze,categoryLabel:Ue,probabilityLabel:Ne.toFixed(3)},Ge=[];$e.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&Ge.push(["Count:",ot.countLabel].join(" ")),$e.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(Ge.push("P(color ∩ "+Ue+"): "+ot.probabilityLabel),Ge.push("P("+Ue+" | color): "+je.toFixed(3)),Ge.push("P(color | "+Ue+"): "+nt.toFixed(3)));var ht=Ge.join("
    "),pt=a.mostReadable(Ve.color,["black","white"]);return{trace:Le,x:ze*(Pe-Se.left),y:De*(We-Se.top),text:ht,color:Ve.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:pt,fontSize:10,idealAlign:Ie,hovertemplate:Le.hovertemplate,hovertemplateLabels:ot,eventData:[{data:Le._input,fullData:Le,category:Ue,count:Ze,probability:Ne,categorycount:tt,colorcount:Ee,bandcolorcount:Xe}]}}(ae,de,ye):ve==="dimension"&&(se=function(_e,Se,Te){var Pe=[];return c.select(Te.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){Pe.push(z(_e,Se,this))}),Pe}(ae,de,ye)),se&&O.loneHover(se,{container:ce._hoverlayer.node(),outerContainer:ce._paper.node(),gd:ae}))}}function Q(he){var se=he.parcatsViewModel;se.dragDimension||(T(se.pathSelection),C(se.dimensionSelection.selectAll("g.category")),L(se.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),O.loneUnhover(se.graphDiv._fullLayout._hoverlayer.node()),se.pathSelection.sort(_),se.hoverinfoItems.indexOf("skip")!==-1)||(he.parcatsViewModel.hoveron==="color"?I(this,"plotly_unhover",c.event):k(this,"plotly_unhover",c.event))}function j(he){he.parcatsViewModel.arrangement!=="fixed"&&(he.dragDimensionDisplayInd=he.model.displayInd,he.initialDragDimensionDisplayInds=he.parcatsViewModel.model.dimensions.map(function(se){return se.displayInd}),he.dragHasMoved=!1,he.dragCategoryDisplayInd=null,c.select(this).selectAll("g.category").select("rect.catrect").each(function(se){var ae=c.mouse(this)[0],ce=c.mouse(this)[1];-2<=ae&&ae<=se.width+2&&-2<=ce&&ce<=se.height+2&&(he.dragCategoryDisplayInd=se.model.displayInd,he.initialDragCategoryDisplayInds=he.model.categories.map(function(de){return de.displayInd}),se.model.dragY=se.y,w.raiseToTop(this.parentNode),c.select(this.parentNode).selectAll("rect.bandrect").each(function(de){de.yPe.y+Pe.height/2&&(ve.model.displayInd=Pe.model.displayInd,Pe.model.displayInd=_e),he.dragCategoryDisplayInd=ve.model.displayInd}if(he.dragCategoryDisplayInd===null||he.parcatsViewModel.arrangement==="freeform"){de.model.dragX=c.event.x;var Ie=he.parcatsViewModel.dimensions[ae],ze=he.parcatsViewModel.dimensions[ce];Ie!==void 0&&de.model.dragXze.x&&(de.model.displayInd=ze.model.displayInd,ze.model.displayInd=he.dragDimensionDisplayInd),he.dragDimensionDisplayInd=de.model.displayInd}ee(he.parcatsViewModel),Y(he.parcatsViewModel),K(he.parcatsViewModel),W(he.parcatsViewModel)}}function X(he){if(he.parcatsViewModel.arrangement!=="fixed"&&he.dragDimensionDisplayInd!==null){c.select(this).selectAll("text").attr("font-weight","normal");var se={},ae=te(he.parcatsViewModel),ce=he.parcatsViewModel.model.dimensions.map(function(Pe){return Pe.displayInd}),de=he.initialDragDimensionDisplayInds.some(function(Pe,Ie){return Pe!==ce[Ie]});de&&ce.forEach(function(Pe,Ie){var ze=he.parcatsViewModel.model.dimensions[Ie].containerInd;se["dimensions["+ze+"].displayindex"]=Pe});var ve=!1;if(he.dragCategoryDisplayInd!==null){var ye=he.model.categories.map(function(Pe){return Pe.displayInd});if(ve=he.initialDragCategoryDisplayInds.some(function(Pe,Ie){return Pe!==ye[Ie]})){var _e=he.model.categories.slice().sort(function(Pe,Ie){return Pe.displayInd-Ie.displayInd}),Se=_e.map(function(Pe){return Pe.categoryValue}),Te=_e.map(function(Pe){return Pe.categoryLabel});se["dimensions["+he.model.containerInd+"].categoryarray"]=[Se],se["dimensions["+he.model.containerInd+"].ticktext"]=[Te],se["dimensions["+he.model.containerInd+"].categoryorder"]="array"}}he.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!he.dragHasMoved&&he.potentialClickBand&&(he.parcatsViewModel.hoveron==="color"?I(he.potentialClickBand,"plotly_click",c.event.sourceEvent):k(he.potentialClickBand,"plotly_click",c.event.sourceEvent)),he.model.dragX=null,he.dragCategoryDisplayInd!==null&&(he.parcatsViewModel.dimensions[he.dragDimensionDisplayInd].categories[he.dragCategoryDisplayInd].model.dragY=null,he.dragCategoryDisplayInd=null),he.dragDimensionDisplayInd=null,he.parcatsViewModel.dragDimension=null,he.dragHasMoved=null,he.potentialClickBand=null,ee(he.parcatsViewModel),Y(he.parcatsViewModel),c.transition().duration(300).ease("cubic-in-out").each(function(){K(he.parcatsViewModel,!0),W(he.parcatsViewModel,!0)}).each("end",function(){(de||ve)&&i.restyle(he.parcatsViewModel.graphDiv,se,[ae])})}}function te(he){for(var se,ae=he.graphDiv._fullData,ce=0;ce=0;ye--)Te+="C"+Se[ye]+","+(se[ye+1]+ce)+" "+_e[ye]+","+(se[ye]+ce)+" "+(he[ye]+ae[ye])+","+(se[ye]+ce),Te+="l-"+ae[ye]+",0 ";return Te+"Z"}function Y(he){var se=he.dimensions,ae=he.model,ce=se.map(function(ot){return ot.categories.map(function(Ge){return Ge.y})}),de=he.model.dimensions.map(function(ot){return ot.categories.map(function(Ge){return Ge.displayInd})}),ve=he.model.dimensions.map(function(ot){return ot.displayInd}),ye=he.dimensions.map(function(ot){return ot.model.dimensionInd}),_e=se.map(function(ot){return ot.x}),Se=se.map(function(ot){return ot.width}),Te=[];for(var Pe in ae.paths)ae.paths.hasOwnProperty(Pe)&&Te.push(ae.paths[Pe]);function Ie(ot){var Ge=ot.categoryInds.map(function(ht,pt){return de[pt][ht]});return ye.map(function(ht){return Ge[ht]})}Te.sort(function(ot,Ge){var ht=Ie(ot),pt=Ie(Ge);return he.sortpaths==="backward"&&(ht.reverse(),pt.reverse()),ht.push(ot.valueInds[0]),pt.push(Ge.valueInds[0]),he.bundlecolors&&(ht.unshift(ot.rawColor),pt.unshift(Ge.rawColor)),htpt?1:0});for(var ze=new Array(Te.length),De=se[0].model.count,He=se[0].categories.map(function(ot){return ot.height}).reduce(function(ot,Ge){return ot+Ge}),Ve=0;Ve0?He*(Oe.count/De):0;for(var ke,Le=new Array(ce.length),We=0;We1?(he.width-80-16)/(ce-1):0)*de;var ve,ye,_e,Se,Te,Pe=[],Ie=he.model.maxCats,ze=se.categories.length,De=se.count,He=he.height-8*(Ie-1),Ve=8*(Ie-ze)/2,$e=se.categories.map(function(Oe){return{displayInd:Oe.displayInd,categoryInd:Oe.categoryInd}});for($e.sort(function(Oe,ke){return Oe.displayInd-ke.displayInd}),Te=0;Te0?ye.count/De*He:0,_e={key:ye.valueInds[0],model:ye,width:16,height:ve,y:ye.dragY!==null?ye.dragY:Ve,bands:[],parcatsViewModel:he},Ve=Ve+ve+8,Pe.push(_e);return{key:se.dimensionInd,x:se.dragX!==null?se.dragX:ae,y:0,width:16,model:se,categories:Pe,parcatsViewModel:he,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}d.exports=function(he,se,ae,ce){h(ae,he,ce,se)}},60268:function(d,l,n){var c=n(51036);d.exports=function(b,i,O,w){var y=b._fullLayout,p=y._paper,a=y._size;c(b,p,i,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},O,w)}},82296:function(d,l,n){var c=n(49084),b=n(94724),i=n(25376),O=n(86968).u,w=n(92880).extendFlat,y=n(31780).templatedArray;d.exports={domain:O({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:i({editType:"plot"}),tickfont:i({editType:"plot"}),rangefont:i({editType:"plot"}),dimensions:y("dimension",{label:{valType:"string",editType:"plot"},tickvals:w({},b.tickvals,{editType:"plot"}),ticktext:w({},b.ticktext,{editType:"plot"}),tickformat:w({},b.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:w({editType:"calc"},c("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}},71864:function(d,l,n){var c=n(30140),b=n(33428),i=n(71688).keyFun,O=n(71688).repeat,w=n(3400).sorterAsc,y=n(3400).strTranslate,p=c.bar.snapRatio;function a(z,$){return z*(1-p)+$*p}var u=c.bar.snapClose;function h(z,$){return z*(1-u)+$*u}function m(z,$,Q,j){if(function(me,he){for(var se=0;se=he[se][0]&&me<=he[se][1])return!0;return!1}(Q,j))return Q;var U=z?-1:1,X=0,te=$.length-1;if(U<0){var W=X;X=te,te=W}for(var K=$[X],oe=K,q=X;U*q$){Y=Q;break}}if(U=oe,isNaN(U)&&(U=isNaN(q)||isNaN(Y)?isNaN(q)?Y:q:$-K[q][1]de[1]+ye||ve=.9*de[1]+.1*de[0]?"n":ve<=.9*de[0]+.1*de[1]?"s":"ns"}(me,$);he&&(X.interval=W[U],X.intervalPix=me,X.region=he)}}if(z.ordinal&&!X.region){var se=z.unitTickvals,ae=z.unitToPaddedPx.invert($);for(Q=0;Q=ce[0]&&ae<=ce[1]){X.clickableOrdinalRange=ce;break}}}return X}function E(z,$){b.event.sourceEvent.stopPropagation();var Q=$.height-b.mouse(z)[1]-2*c.verticalPadding,j=$.brush.svgBrush;j.wasDragged=!0,j._dragging=!0,j.grabbingBar?j.newExtent=[Q-j.grabPoint,Q+j.barLength-j.grabPoint].map($.unitToPaddedPx.invert):j.newExtent=[j.startExtent,$.unitToPaddedPx.invert(Q)].sort(w),$.brush.filterSpecified=!0,j.extent=j.stayingIntervals.concat([j.newExtent]),j.brushCallback($),M(z.parentNode)}function C(z,$){var Q=T($,$.height-b.mouse(z)[1]-2*c.verticalPadding),j="crosshair";Q.clickableOrdinalRange?j="pointer":Q.region&&(j=Q.region+"-resize"),b.select(document.body).style("cursor",j)}function L(z){z.on("mousemove",function($){b.event.preventDefault(),$.parent.inBrushDrag||C(this,$)}).on("mouseleave",function($){$.parent.inBrushDrag||x()}).call(b.behavior.drag().on("dragstart",function($){(function(Q,j){b.event.sourceEvent.stopPropagation();var U=j.height-b.mouse(Q)[1]-2*c.verticalPadding,X=j.unitToPaddedPx.invert(U),te=j.brush,W=T(j,U),K=W.interval,oe=te.svgBrush;if(oe.wasDragged=!1,oe.grabbingBar=W.region==="ns",oe.grabbingBar){var q=K.map(j.unitToPaddedPx);oe.grabPoint=U-q[0]-c.verticalPadding,oe.barLength=q[1]-q[0]}oe.clickableOrdinalRange=W.clickableOrdinalRange,oe.stayingIntervals=j.multiselect&&te.filterSpecified?te.filter.getConsolidated():[],K&&(oe.stayingIntervals=oe.stayingIntervals.filter(function(Y){return Y[0]!==K[0]&&Y[1]!==K[1]})),oe.startExtent=W.region?K[W.region==="s"?1:0]:X,j.parent.inBrushDrag=!0,oe.brushStartCallback()})(this,$)}).on("drag",function($){E(this,$)}).on("dragend",function($){(function(Q,j){var U=j.brush,X=U.filter,te=U.svgBrush;te._dragging||(C(Q,j),E(Q,j),j.brush.svgBrush.wasDragged=!1),te._dragging=!1,b.event.sourceEvent.stopPropagation();var W=te.grabbingBar;if(te.grabbingBar=!1,te.grabLocation=void 0,j.parent.inBrushDrag=!1,x(),!te.wasDragged)return te.wasDragged=void 0,te.clickableOrdinalRange?U.filterSpecified&&j.multiselect?te.extent.push(te.clickableOrdinalRange):(te.extent=[te.clickableOrdinalRange],U.filterSpecified=!0):W?(te.extent=te.stayingIntervals,te.extent.length===0&&k(U)):k(U),te.brushCallback(j),M(Q.parentNode),void te.brushEndCallback(U.filterSpecified?X.getConsolidated():[]);var K=function(){X.set(X.getConsolidated())};if(j.ordinal){var oe=j.unitTickvals;oe[oe.length-1]te.newExtent[0];te.extent=te.stayingIntervals.concat(q?[te.newExtent]:[]),te.extent.length||k(U),te.brushCallback(j),q?M(Q.parentNode,K):(K(),M(Q.parentNode))}else K();te.brushEndCallback(U.filterSpecified?X.getConsolidated():[])})(this,$)}))}function D(z,$){return z[0]-$[0]}function k(z){z.filterSpecified=!1,z.svgBrush.extent=[[-1/0,1/0]]}function I(z){for(var $,Q=z.slice(),j=[],U=Q.shift();U;){for($=U.slice();(U=Q.shift())&&U[0]<=$[1];)$[1]=Math.max($[1],U[1]);j.push($)}return j.length===1&&j[0][0]>j[0][1]&&(j=[]),j}d.exports={makeBrush:function(z,$,Q,j,U,X){var te,W=function(){var K,oe,q=[];return{set:function(Y){(q=Y.map(function(ee){return ee.slice().sort(w)}).sort(D)).length===1&&q[0][0]===-1/0&&q[0][1]===1/0&&(q=[[0,-1]]),K=I(q),oe=q.reduce(function(ee,me){return[Math.min(ee[0],me[0]),Math.max(ee[1],me[1])]},[1/0,-1/0])},get:function(){return q.slice()},getConsolidated:function(){return K},getBounds:function(){return oe}}}();return W.set(Q),{filter:W,filterSpecified:$,svgBrush:{extent:[],brushStartCallback:j,brushCallback:(te=U,function(K){var oe=K.brush,q=function(ee){return ee.svgBrush.extent.map(function(me){return me.slice()})}(oe),Y=q.slice();oe.filter.set(Y),te()}),brushEndCallback:X}}},ensureAxisBrush:function(z,$,Q){var j=z.selectAll("."+c.cn.axisBrush).data(O,i);j.enter().append("g").classed(c.cn.axisBrush,!0),function(U,X,te){var W=te._context.staticPlot,K=U.selectAll(".background").data(O);K.enter().append("rect").classed("background",!0).call(v).call(_).style("pointer-events",W?"none":"auto").attr("transform",y(0,c.verticalPadding)),K.call(L).attr("height",function(Y){return Y.height-c.verticalPadding});var oe=U.selectAll(".highlight-shadow").data(O);oe.enter().append("line").classed("highlight-shadow",!0).attr("x",-c.bar.width/2).attr("stroke-width",c.bar.width+c.bar.strokeWidth).attr("stroke",X).attr("opacity",c.bar.strokeOpacity).attr("stroke-linecap","butt"),oe.attr("y1",function(Y){return Y.height}).call(R);var q=U.selectAll(".highlight").data(O);q.enter().append("line").classed("highlight",!0).attr("x",-c.bar.width/2).attr("stroke-width",c.bar.width-c.bar.strokeWidth).attr("stroke",c.bar.fillColor).attr("opacity",c.bar.fillOpacity).attr("stroke-linecap","butt"),q.attr("y1",function(Y){return Y.height}).call(R)}(j,$,Q)},cleanRanges:function(z,$){if(Array.isArray(z[0])?(z=z.map(function(j){return j.sort(w)}),z=$.multiselect?I(z.sort(D)):[z[0]]):z=[z.sort(w)],$.tickvals){var Q=$.tickvals.slice().sort(w);if(!(z=z.map(function(j){var U=[m(0,Q,j[0],[]),m(1,Q,j[1],[])];if(U[1]>U[0])return U}).filter(function(j){return j})).length)return}return z.length>1?z:z[0]}}},61664:function(d,l,n){d.exports={attributes:n(82296),supplyDefaults:n(60664),calc:n(95044),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:n(19976),categories:["gl","regl","noOpacity","noHover"],meta:{}}},19976:function(d,l,n){var c=n(33428),b=n(84888)._M,i=n(24196),O=n(9616);l.name="parcoords",l.plot=function(w){var y=b(w.calcdata,"parcoords")[0];y.length&&i(w,y)},l.clean=function(w,y,p,a){var u=a._has&&a._has("parcoords"),h=y._has&&y._has("parcoords");u&&!h&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())},l.toSVG=function(w){var y=w._fullLayout._glimages,p=c.select(w).selectAll(".svg-container");p.filter(function(a,u){return u===p.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus").each(function(){var a=this,u=a.toDataURL("image/png");y.append("svg:image").attr({xmlns:O.svg,"xlink:href":u,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}),window.setTimeout(function(){c.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}},95044:function(d,l,n){var c=n(3400).isArrayOrTypedArray,b=n(8932),i=n(71688).wrap;d.exports=function(O,w){var y,p;return b.hasColorscale(w,"line")&&c(w.line.color)?(y=w.line.color,p=b.extractOpts(w.line).colorscale,b.calc(O,w,{vals:y,containerStr:"line",cLetter:"c"})):(y=function(a){for(var u=new Array(a),h=0;hu&&(c.log("parcoords traces support up to "+u+" dimensions at the moment"),R.splice(u));var M=w(v,_,{name:"dimensions",layout:A,handleItemDefaults:m}),T=function(C,L,D,k,I){var z=I("line.color",D);if(b(C,"line")&&c.isArrayOrTypedArray(z)){if(z.length)return I("line.colorscale"),i(C,L,k,I,{prefix:"line.",cLetter:"c"}),z.length;L.line.color=D}return 1/0}(v,_,S,A,x);O(_,A,x),Array.isArray(M)&&M.length||(_.visible=!1),h(_,M,"values",T);var E={family:A.font.family,size:Math.round(A.font.size/1.2),color:A.font.color};c.coerceFont(x,"labelfont",E),c.coerceFont(x,"tickfont",E),c.coerceFont(x,"rangefont",E),x("labelangle"),x("labelside"),x("unselected.line.color"),x("unselected.line.opacity")}},95724:function(d,l,n){var c=n(3400).isTypedArray;l.convertTypedArray=function(b){return c(b)?Array.prototype.slice.call(b):b},l.isOrdinal=function(b){return!!b.tickvals},l.isVisible=function(b){return b.visible||!("visible"in b)}},29928:function(d,l,n){var c=n(61664);c.plot=n(24196),d.exports=c},51352:function(d,l,n){var c=n(26444),b=c([`precision highp float; +`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}},89032:function(d,l,n){var c=n(3400);d.exports=function(b,i){var O=b.split(" "),w=O[0],y=O[1],p=c.isArrayOrTypedArray(i)?c.mean(i):i,a=.5+p/100,u=1.5+p/100,h=["",""],m=[0,0];switch(w){case"top":h[0]="top",m[1]=-u;break;case"bottom":h[0]="bottom",m[1]=u}switch(y){case"left":h[1]="right",m[0]=-a;break;case"right":h[1]="left",m[0]=a}return{anchor:h[0]&&h[1]?h.join("-"):h[0]?h[0]:h[1]?h[1]:"center",offset:m}}},33688:function(d,l,n){var c=n(3480),b=n(3400),i=b.strTranslate,O=b.strScale,w=n(84888).KY,y=n(9616),p=n(33428),a=n(43616),u=n(72736),h=n(14440),m="mapbox",v=l.constants=n(47552);function _(S){return typeof S=="string"&&(v.styleValuesMapbox.indexOf(S)!==-1||S.indexOf("mapbox://")===0||S.indexOf("stamen")===0)}l.name=m,l.attr="subplot",l.idRoot=m,l.idRegex=l.attrRegex=b.counterRegex(m),l.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},l.layoutAttributes=n(5232),l.supplyLayoutDefaults=n(5976),l.plot=function(S){var A=S._fullLayout,x=S.calcdata,R=A._subplots[m];if(c.version!==v.requiredVersion)throw new Error(v.wrongVersionErrorMsg);var M=function(k,I){var z=k._fullLayout;if(k._context.mapboxAccessToken==="")return"";for(var $=[],Q=[],j=!1,U=!1,X=0;X1&&b.warn(v.multipleTokensErrorMsg),$[0]):(Q.length&&b.log(["Listed mapbox access token(s)",Q.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}(S,R);c.accessToken=M;for(var T=0;TQ/2){var j=k.split("|").join("
    ");z.text(j).attr("data-unformatted",j).call(u.convertToTspans,S),$=a.bBox(z.node())}z.attr("transform",i(-3,8-$.height)),I.insert("rect",".static-attribution").attr({x:-$.width-6,y:-$.height-3,width:$.width+6,height:$.height+3,fill:"rgba(255, 255, 255, 0.75)"});var U=1;$.width+6>Q&&(U=Q/($.width+6));var X=[R.l+R.w*E.x[1],R.t+R.h*(1-E.y[0])];I.attr("transform",i(X[0],X[1])+O(U))}},l.updateFx=function(S){for(var A=S._fullLayout,x=A._subplots[m],R=0;R0){for(var m=0;m0}function a(u){var h={},m={};switch(u.type){case"circle":c.extendFlat(m,{"circle-radius":u.circle.radius,"circle-color":u.color,"circle-opacity":u.opacity});break;case"line":c.extendFlat(m,{"line-width":u.line.width,"line-color":u.color,"line-opacity":u.opacity,"line-dasharray":u.line.dash});break;case"fill":c.extendFlat(m,{"fill-color":u.color,"fill-outline-color":u.fill.outlinecolor,"fill-opacity":u.opacity});break;case"symbol":var v=u.symbol,_=i(v.textposition,v.iconsize);c.extendFlat(h,{"icon-image":v.icon+"-15","icon-size":v.iconsize/10,"text-field":v.text,"text-size":v.textfont.size,"text-anchor":_.anchor,"text-offset":_.offset,"symbol-placement":v.placement}),c.extendFlat(m,{"icon-color":u.color,"text-color":v.textfont.color,"text-opacity":u.opacity});break;case"raster":c.extendFlat(m,{"raster-fade-duration":0,"raster-opacity":u.opacity})}return{layout:h,paint:m}}y.update=function(u){this.visible?this.needsNewImage(u)?this.updateImage(u):this.needsNewSource(u)?(this.removeLayer(),this.updateSource(u),this.updateLayer(u)):this.needsNewLayer(u)?this.updateLayer(u):this.updateStyle(u):(this.updateSource(u),this.updateLayer(u)),this.visible=p(u)},y.needsNewImage=function(u){return this.subplot.map.getSource(this.idSource)&&this.sourceType==="image"&&u.sourcetype==="image"&&(this.source!==u.source||JSON.stringify(this.coordinates)!==JSON.stringify(u.coordinates))},y.needsNewSource=function(u){return this.sourceType!==u.sourcetype||JSON.stringify(this.source)!==JSON.stringify(u.source)||this.layerType!==u.type},y.needsNewLayer=function(u){return this.layerType!==u.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},y.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},y.updateImage=function(u){this.subplot.map.getSource(this.idSource).updateImage({url:u.source,coordinates:u.coordinates});var h=this.findFollowingMapboxLayerId(this.lookupBelow());h!==null&&this.subplot.map.moveLayer(this.idLayer,h)},y.updateSource=function(u){var h=this.subplot.map;if(h.getSource(this.idSource)&&h.removeSource(this.idSource),this.sourceType=u.sourcetype,this.source=u.source,p(u)){var m=function(v){var _,S=v.sourcetype,A=v.source,x={type:S};return S==="geojson"?_="data":S==="vector"?_=typeof A=="string"?"url":"tiles":S==="raster"?(_="tiles",x.tileSize=256):S==="image"&&(_="url",x.coordinates=v.coordinates),x[_]=A,v.sourceattribution&&(x.attribution=b(v.sourceattribution)),x}(u);h.addSource(this.idSource,m)}},y.findFollowingMapboxLayerId=function(u){if(u==="traces")for(var h=this.subplot.getMapLayers(),m=0;m1)for(I=0;I-1&&S(X.originalEvent,z,[I.xaxis],[I.yaxis],I.id,U),te.indexOf("event")>-1&&p.click(z,X.originalEvent)}}},M.updateFx=function(D){var k=this,I=k.map,z=k.gd;if(!k.isStatic){var $,Q=D.dragmode;$=function(X,te){te.isRect?(X.range={})[k.id]=[U([te.xmin,te.ymin]),U([te.xmax,te.ymax])]:(X.lassoPoints={})[k.id]=te.map(U)};var j=k.dragOptions;k.dragOptions=b.extendDeep(j||{},{dragmode:D.dragmode,element:k.div,gd:z,plotinfo:{id:k.id,domain:D[k.id].domain,xaxis:k.xaxis,yaxis:k.yaxis,fillRangeItems:$},xaxes:[k.xaxis],yaxes:[k.yaxis],subplot:k.id}),I.off("click",k.onClickInPanHandler),h(Q)||u(Q)?(I.dragPan.disable(),I.on("zoomstart",k.clearOutline),k.dragOptions.prepFn=function(X,te,W){m(X,te,W,k.dragOptions,Q)},y.init(k.dragOptions)):(I.dragPan.enable(),I.off("zoomstart",k.clearOutline),k.div.onmousedown=null,k.div.ontouchstart=null,k.div.removeEventListener("touchstart",k.div._ontouchstart),k.onClickInPanHandler=k.onClickInPanFn(k.dragOptions),I.on("click",k.onClickInPanHandler))}function U(X){var te=k.map.unproject(X);return[te.lng,te.lat]}},M.updateFramework=function(D){var k=D[this.id].domain,I=D._size,z=this.div.style;z.width=I.w*(k.x[1]-k.x[0])+"px",z.height=I.h*(k.y[1]-k.y[0])+"px",z.left=I.l+k.x[0]*I.w+"px",z.top=I.t+(1-k.y[1])*I.h+"px",this.xaxis._offset=I.l+k.x[0]*I.w,this.xaxis._length=I.w*(k.x[1]-k.x[0]),this.yaxis._offset=I.t+(1-k.y[1])*I.h,this.yaxis._length=I.h*(k.y[1]-k.y[0])},M.updateLayers=function(D){var k,I=D[this.id].layers,z=this.layerList;if(I.length!==z.length){for(k=0;k=Y.width-20?(he["text-anchor"]="start",he.x=5):(he["text-anchor"]="end",he.x=Y._paper.attr("width")-7),ee.attr(he);var se=ee.select(".js-link-to-tool"),ae=ee.select(".js-link-spacer"),ce=ee.select(".js-sourcelinks");q._context.showSources&&q._context.showSources(q),q._context.showLink&&function(de,ve){ve.text("");var ye=ve.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(de._context.linkText+" "+String.fromCharCode(187));if(de._context.sendData)ye.on("click",function(){E.sendDataToCloud(de)});else{var _e=window.location.pathname.split("/"),Se=window.location.search;ye.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+_e[2].split(".")[0]+"/"+_e[1]+Se})}}(q,se),ae.text(se.text()&&ce.text()?" - ":"")}},E.sendDataToCloud=function(q){var Y=(window.PLOTLYENV||{}).BASE_URL||q._context.plotlyServerURL;if(Y){q.emit("plotly_beforeexport");var ee=c.select(q).append("div").attr("id","hiddenform").style("display","none"),me=ee.append("form").attr({action:Y+"/external",method:"post",target:"_blank"});return me.append("input").attr({type:"text",name:"data"}).node().value=E.graphJson(q,!1,"keepdata"),me.node().submit(),ee.remove(),q.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],k=["year","month","dayMonth","dayMonthYear"];function I(q,Y){var ee=q._context.locale;ee||(ee="en-US");var me=!1,he={};function se(_e){for(var Se=!0,Te=0;Te1&&ke.length>1){for(y.getComponentMethod("grid","sizeDefaults")(ae,se),he=0;he15&&ke.length>15&&se.shapes.length===0&&se.images.length===0,E.linkSubplots(de,se,ce,me),E.cleanPlot(de,se,ce,me);var Xe=!(!me._has||!me._has("gl2d")),tt=!(!se._has||!se._has("gl2d")),Ee=!(!me._has||!me._has("cartesian"))||Xe,Ne=!(!se._has||!se._has("cartesian"))||tt;Ee&&!Ne?me._bgLayer.remove():Ne&&!Ee&&(se._shouldCreateBgLayer=!0),me._zoomlayer&&!q._dragging&&_({_fullLayout:me}),function(Ge,ht){var pt,wt=[];ht.meta&&(pt=ht._meta={meta:ht.meta,layout:{meta:ht.meta}});for(var Dt=0;Dt0){var ve=1-2*ae;me=Math.round(ve*me),he=Math.round(ve*he)}}var ye=E.layoutAttributes.width.min,_e=E.layoutAttributes.height.min;me1,Te=!Y.height&&Math.abs(ee.height-he)>1;(Te||Se)&&(Se&&(ee.width=me),Te&&(ee.height=he)),q._initialAutoSize||(q._initialAutoSize={width:me,height:he}),E.sanitizeMargins(ee)},E.supplyLayoutModuleDefaults=function(q,Y,ee,me){var he,se,ae,ce=y.componentsRegistry,de=Y._basePlotModules,ve=y.subplotsRegistry.cartesian;for(he in ce)(ae=ce[he]).includeBasePlot&&ae.includeBasePlot(q,Y);for(var ye in de.length||de.push(ve),Y._has("cartesian")&&(y.getComponentMethod("grid","contentDefaults")(q,Y),ve.finalizeSubplots(q,Y)),Y._subplots)Y._subplots[ye].sort(u.subplotSort);for(se=0;se1&&(ee.l/=ze,ee.r/=ze)}if(Se){var De=(ee.t+ee.b)/Se;De>1&&(ee.t/=De,ee.b/=De)}var He=ee.xl!==void 0?ee.xl:ee.x,Ve=ee.xr!==void 0?ee.xr:ee.x,$e=ee.yt!==void 0?ee.yt:ee.y,Oe=ee.yb!==void 0?ee.yb:ee.y;Te[Y]={l:{val:He,size:ee.l+Ie},r:{val:Ve,size:ee.r+Ie},b:{val:Oe,size:ee.b+Ie},t:{val:$e,size:ee.t+Ie}},Pe[Y]=1}else delete Te[Y],delete Pe[Y];if(!me._replotting)return E.doAutoMargin(q)}},E.doAutoMargin=function(q){var Y=q._fullLayout,ee=Y.width,me=Y.height;Y._size||(Y._size={}),U(Y);var he=Y._size,se=Y.margin,ae={t:0,b:0,l:0,r:0},ce=u.extendFlat({},he),de=se.l,ve=se.r,ye=se.t,_e=se.b,Se=Y._pushmargin,Te=Y._pushmarginIds,Pe=Y.minreducedwidth,Ie=Y.minreducedheight;if(se.autoexpand!==!1){for(var ze in Se)Te[ze]||delete Se[ze];var De=q._fullLayout._reservedMargin;for(var He in De)for(var Ve in De[He]){var $e=De[He][Ve];ae[Ve]=Math.max(ae[Ve],$e)}for(var Oe in Se.base={l:{val:0,size:de},r:{val:1,size:ve},t:{val:1,size:ye},b:{val:0,size:_e}},ae){var ke=0;for(var Le in Se)Le!=="base"&&O(Se[Le][Oe].size)&&(ke=Se[Le][Oe].size>ke?Se[Le][Oe].size:ke);var We=Math.max(0,se[Oe]-ke);ae[Oe]=Math.max(0,ae[Oe]-We)}for(var Ue in Se){var Ze=Se[Ue].l||{},Xe=Se[Ue].b||{},tt=Ze.val,Ee=Ze.size,Ne=Xe.val,je=Xe.size,nt=ee-ae.r-ae.l,ot=me-ae.t-ae.b;for(var Ge in Se){if(O(Ee)&&Se[Ge].r){var ht=Se[Ge].r.val,pt=Se[Ge].r.size;if(ht>tt){var wt=(Ee*ht+(pt-nt)*tt)/(ht-tt),Dt=(pt*(1-tt)+(Ee-nt)*(1-ht))/(ht-tt);wt+Dt>de+ve&&(de=wt,ve=Dt)}}if(O(je)&&Se[Ge].t){var It=Se[Ge].t.val,qt=Se[Ge].t.size;if(It>Ne){var en=(je*It+(qt-ot)*Ne)/(It-Ne),Gt=(qt*(1-Ne)+(je-ot)*(1-It))/(It-Ne);en+Gt>_e+ye&&(_e=en,ye=Gt)}}}}}var Ct=u.constrain(ee-se.l-se.r,2,Pe),_t=u.constrain(me-se.t-se.b,2,Ie),nn=Math.max(0,ee-Ct),gn=Math.max(0,me-_t);if(nn){var bn=(de+ve)/nn;bn>1&&(de/=bn,ve/=bn)}if(gn){var mn=(_e+ye)/gn;mn>1&&(_e/=mn,ye/=mn)}if(he.l=Math.round(de)+ae.l,he.r=Math.round(ve)+ae.r,he.t=Math.round(ye)+ae.t,he.b=Math.round(_e)+ae.b,he.p=Math.round(se.pad),he.w=Math.round(ee)-he.l-he.r,he.h=Math.round(me)-he.t-he.b,!Y._replotting&&(E.didMarginChange(ce,he)||function(bt){if("_redrawFromAutoMarginCount"in bt._fullLayout)return!1;var lt=v.list(bt,"",!0);for(var yt in lt)if(lt[yt].autoshift||lt[yt].shift)return!0;return!1}(q))){"_redrawFromAutoMarginCount"in Y?Y._redrawFromAutoMarginCount++:Y._redrawFromAutoMarginCount=1;var vt=3*(1+Object.keys(Te).length);if(Y._redrawFromAutoMarginCount0&&(q._transitioningWithDuration=!0),q._transitionData._interruptCallbacks.push(function(){me=!0}),ee.redraw&&q._transitionData._interruptCallbacks.push(function(){return y.call("redraw",q)}),q._transitionData._interruptCallbacks.push(function(){q.emit("plotly_transitioninterrupted",[])});var ce=0,de=0;function ve(){return ce++,function(){var ye;de++,me||de!==ce||(ye=ae,q._transitionData&&(function(_e){if(_e)for(;_e.length;)_e.shift()}(q._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(ee.redraw)return y.call("redraw",q)}).then(function(){q._transitioning=!1,q._transitioningWithDuration=!1,q.emit("plotly_transitioned",[])}).then(ye)))}}ee.runFn(ve),setTimeout(ve())})}],se=u.syncOrAsync(he,q);return se&&se.then||(se=Promise.resolve()),se.then(function(){return q})}E.didMarginChange=function(q,Y){for(var ee=0;ee1)return!0}return!1},E.graphJson=function(q,Y,ee,me,he,se){(he&&Y&&!q._fullData||he&&!Y&&!q._fullLayout)&&E.supplyDefaults(q);var ae=he?q._fullData:q.data,ce=he?q._fullLayout:q.layout,de=(q._transitionData||{})._frames;function ve(Se,Te){if(typeof Se=="function")return Te?"_function_":null;if(u.isPlainObject(Se)){var Pe,Ie={};return Object.keys(Se).sort().forEach(function(Ve){if(["_","["].indexOf(Ve.charAt(0))===-1)if(typeof Se[Ve]!="function"){if(ee==="keepdata"){if(Ve.substr(Ve.length-3)==="src")return}else if(ee==="keepstream"){if(typeof(Pe=Se[Ve+"src"])=="string"&&Pe.indexOf(":")>0&&!u.isPlainObject(Se.stream))return}else if(ee!=="keepall"&&typeof(Pe=Se[Ve+"src"])=="string"&&Pe.indexOf(":")>0)return;Ie[Ve]=ve(Se[Ve],Te)}else Te&&(Ie[Ve]="_function")}),Ie}var ze=Array.isArray(Se),De=u.isTypedArray(Se);if((ze||De)&&Se.dtype&&Se.shape){var He=Se.bdata;return ve({dtype:Se.dtype,shape:Se.shape,bdata:u.isArrayBuffer(He)?w.encode(He):He},Te)}return ze?Se.map(function(Ve){return ve(Ve,Te)}):De?u.simpleMap(Se,u.identity):u.isJSDate(Se)?u.ms2DateTimeLocal(+Se):Se}var ye={data:(ae||[]).map(function(Se){var Te=ve(Se);return Y&&delete Te.fit,Te})};if(!Y&&(ye.layout=ve(ce),he)){var _e=ce._size;ye.layout.computed={margin:{b:_e.b,l:_e.l,r:_e.r,t:_e.t}}}return de&&(ye.frames=ve(de)),se&&(ye.config=ve(q._context,!0)),me==="object"?ye:JSON.stringify(ye)},E.modifyFrames=function(q,Y){var ee,me,he,se=q._transitionData._frames,ae=q._transitionData._frameHash;for(ee=0;ee=0;se--)if(Oe[se].enabled){ee._indexToPoints=Oe[se]._indexToPoints;break}me&&me.calc&&($e=me.calc(q,ee))}Array.isArray($e)&&$e[0]||($e=[{x:m,y:m}]),$e[0].t||($e[0].t={}),$e[0].trace=ee,ve[He]=$e}}for(K(ae,ce,de),he=0;he1e-10?m:0}function h(m,v,_){v=v||0,_=_||0;for(var S=m.length,A=new Array(S),x=0;x0?x:1/0}),S=c.mod(_+1,v.length);return[v[_],v[S]]},findIntersectionXY:p,findXYatLength:function(m,v,_,S){var A=-v*_,x=v*v+1,R=2*(v*A-_),M=A*A+_*_-m*m,T=Math.sqrt(R*R-4*x*M),E=(-R+T)/(2*x),C=(-R-T)/(2*x);return[[E,v*E+A+S],[C,v*C+A+S]]},clampTiny:u,pathPolygon:function(m,v,_,S,A,x){return"M"+h(a(m,v,_,S),A,x).join("L")},pathPolygonAnnulus:function(m,v,_,S,A,x,R){var M,T;m=90||Gt>90&&Ct>=450?1:nn<=0&&bn<=0?0:Math.max(nn,bn),[Gt<=180&&Ct>=180||Gt>180&&Ct>=540?-1:_t>=0&&gn>=0?0:Math.min(_t,gn),Gt<=270&&Ct>=270||Gt>270&&Ct>=630?-1:nn>=0&&bn>=0?0:Math.min(nn,bn),Ct>=360?1:_t<=0&&gn<=0?0:Math.max(_t,gn),It]}(ze),Le=ke[2]-ke[0],We=ke[3]-ke[1],Ue=Ie/Pe,Ze=Math.abs(We/Le);Ue>Ze?(De=Pe,Oe=(Ie-(He=Pe*Ze))/ve.h/2,Ve=[Se[0],Se[1]],$e=[Te[0]+Oe,Te[1]-Oe]):(He=Ie,Oe=(Pe-(De=Ie/Ze))/ve.w/2,Ve=[Se[0]+Oe,Se[1]-Oe],$e=[Te[0],Te[1]]),ce.xLength2=De,ce.yLength2=He,ce.xDomain2=Ve,ce.yDomain2=$e;var Xe,tt=ce.xOffset2=ve.l+ve.w*Ve[0],Ee=ce.yOffset2=ve.t+ve.h*(1-$e[1]),Ne=ce.radius=De/Le,je=ce.innerRadius=ce.getHole(ae)*Ne,nt=ce.cx=tt-Ne*ke[0],ot=ce.cy=Ee+Ne*ke[3],Ge=ce.cxx=nt-tt,ht=ce.cyy=ot-Ee,pt=ye.side;pt==="counterclockwise"?(Xe=pt,pt="top"):pt==="clockwise"&&(Xe=pt,pt="bottom"),ce.radialAxis=ce.mockAxis(se,ae,ye,{_id:"x",side:pt,_trueSide:Xe,domain:[je/ve.w,Ne/ve.w]}),ce.angularAxis=ce.mockAxis(se,ae,_e,{side:"right",domain:[0,Math.PI],autorange:!1}),ce.doAutoRange(se,ae),ce.updateAngularAxis(se,ae),ce.updateRadialAxis(se,ae),ce.updateRadialAxisTitle(se,ae),ce.xaxis=ce.mockCartesianAxis(se,ae,{_id:"x",domain:Ve}),ce.yaxis=ce.mockCartesianAxis(se,ae,{_id:"y",domain:$e});var wt=ce.pathSubplot();ce.clipPaths.forTraces.select("path").attr("d",wt).attr("transform",y(Ge,ht)),de.frontplot.attr("transform",y(tt,Ee)).call(a.setClipUrl,ce._hasClipOnAxisFalse?null:ce.clipIds.forTraces,ce.gd),de.bg.attr("d",wt).attr("transform",y(nt,ot)).call(p.fill,ae.bgcolor)},Y.mockAxis=function(se,ae,ce,de){var ve=O.extendFlat({},ce,de);return v(ve,ae,se),ve},Y.mockCartesianAxis=function(se,ae,ce){var de=this,ve=de.isSmith,ye=ce._id,_e=O.extendFlat({type:"linear"},ce);m(_e,se);var Se={x:[0,2],y:[1,3]};return _e.setRange=function(){var Te=de.sectorBBox,Pe=Se[ye],Ie=de.radialAxis._rl,ze=(Ie[1]-Ie[0])/(1-de.getHole(ae));_e.range=[Te[Pe[0]]*ze,Te[Pe[1]]*ze]},_e.isPtWithinRange=ye!=="x"||ve?function(){return!0}:function(Te){return de.isPtInside(Te)},_e.setRange(),_e.setScale(),_e},Y.doAutoRange=function(se,ae){var ce=this,de=ce.gd,ve=ce.radialAxis,ye=ce.getRadial(ae);_(de,ve);var _e=ve.range;if(ye.range=_e.slice(),ye._input.range=_e.slice(),ve._rl=[ve.r2l(_e[0],null,"gregorian"),ve.r2l(_e[1],null,"gregorian")],ve.minallowed!==void 0){var Se=ve.r2l(ve.minallowed);ve._rl[0]>ve._rl[1]?ve._rl[1]=Math.max(ve._rl[1],Se):ve._rl[0]=Math.max(ve._rl[0],Se)}if(ve.maxallowed!==void 0){var Te=ve.r2l(ve.maxallowed);ve._rl[0]90&&Ie<=270&&(ze.tickangle=180);var Ve=He?function(Ee){var Ne=X(ce,Q([Ee.x,0]));return y(Ne[0]-Se,Ne[1]-Te)}:function(Ee){return y(ze.l2p(Ee.x)+_e,0)},$e=He?function(Ee){return U(ce,Ee.x,-1/0,1/0)}:function(Ee){return ce.pathArc(ze.r2p(Ee.x)+_e)},Oe=ee(Pe);if(ce.radialTickLayout!==Oe&&(ve["radial-axis"].selectAll(".xtick").remove(),ce.radialTickLayout=Oe),De){ze.setScale();var ke=0,Le=He?(ze.tickvals||[]).filter(function(Ee){return Ee>=0}).map(function(Ee){return h.tickText(ze,Ee,!0,!1)}):h.calcTicks(ze),We=He?Le:h.clipEnds(ze,Le),Ue=h.getTickSigns(ze)[2];He&&((ze.ticks==="top"&&ze.side==="bottom"||ze.ticks==="bottom"&&ze.side==="top")&&(Ue=-Ue),ze.ticks==="top"&&ze.side==="top"&&(ke=-ze.ticklen),ze.ticks==="bottom"&&ze.side==="bottom"&&(ke=ze.ticklen)),h.drawTicks(de,ze,{vals:Le,layer:ve["radial-axis"],path:h.makeTickPath(ze,0,Ue),transFn:Ve,crisp:!1}),h.drawGrid(de,ze,{vals:We,layer:ve["radial-grid"],path:$e,transFn:O.noop,crisp:!1}),h.drawLabels(de,ze,{vals:Le,layer:ve["radial-axis"],transFn:Ve,labelFns:h.makeLabelFns(ze,ke)})}var Ze=ce.radialAxisAngle=ce.vangles?oe(me(K(Pe.angle),ce.vangles)):Pe.angle,Xe=y(Se,Te),tt=Xe+w(-Ze);he(ve["radial-axis"],De&&(Pe.showticklabels||Pe.ticks),{transform:tt}),he(ve["radial-grid"],De&&Pe.showgrid,{transform:He?"":Xe}),he(ve["radial-line"].select("line"),De&&Pe.showline,{x1:He?-ye:_e,y1:0,x2:ye,y2:0,transform:tt}).attr("stroke-width",Pe.linewidth).call(p.stroke,Pe.linecolor)},Y.updateRadialAxisTitle=function(se,ae,ce){if(!this.isSmith){var de=this,ve=de.gd,ye=de.radius,_e=de.cx,Se=de.cy,Te=de.getRadial(ae),Pe=de.id+"title",Ie=0;if(Te.title){var ze=a.bBox(de.layers["radial-axis"].node()).height,De=Te.title.font.size,He=Te.side;Ie=He==="top"?De:He==="counterclockwise"?-(ze+.4*De):ze+.8*De}var Ve=ce!==void 0?ce:de.radialAxisAngle,$e=K(Ve),Oe=Math.cos($e),ke=Math.sin($e),Le=_e+ye/2*Oe+Ie*ke,We=Se-ye/2*ke+Ie*Oe;de.layers["radial-axis-title"]=R.draw(ve,Pe,{propContainer:Te,propName:de.id+".radialaxis.title",placeholder:te(ve,"Click to enter radial axis title"),attributes:{x:Le,y:We,"text-anchor":"middle"},transform:{rotate:-Ve}})}},Y.updateAngularAxis=function(se,ae){var ce=this,de=ce.gd,ve=ce.layers,ye=ce.radius,_e=ce.innerRadius,Se=ce.cx,Te=ce.cy,Pe=ce.getAngular(ae),Ie=ce.angularAxis,ze=ce.isSmith;ze||(ce.fillViewInitialKey("angularaxis.rotation",Pe.rotation),Ie.setGeometry(),Ie.setScale());var De=ze?function(Ee){var Ne=X(ce,Q([0,Ee.x]));return Math.atan2(Ne[0]-Se,Ne[1]-Te)-Math.PI/2}:function(Ee){return Ie.t2g(Ee.x)};Ie.type==="linear"&&Ie.thetaunit==="radians"&&(Ie.tick0=oe(Ie.tick0),Ie.dtick=oe(Ie.dtick));var He=function(Ee){return y(Se+ye*Math.cos(Ee),Te-ye*Math.sin(Ee))},Ve=ze?function(Ee){var Ne=X(ce,Q([0,Ee.x]));return y(Ne[0],Ne[1])}:function(Ee){return He(De(Ee))},$e=ze?function(Ee){var Ne=X(ce,Q([0,Ee.x])),je=Math.atan2(Ne[0]-Se,Ne[1]-Te)-Math.PI/2;return y(Ne[0],Ne[1])+w(-oe(je))}:function(Ee){var Ne=De(Ee);return He(Ne)+w(-oe(Ne))},Oe=ze?function(Ee){return j(ce,Ee.x,0,1/0)}:function(Ee){var Ne=De(Ee),je=Math.cos(Ne),nt=Math.sin(Ne);return"M"+[Se+_e*je,Te-_e*nt]+"L"+[Se+ye*je,Te-ye*nt]},ke=h.makeLabelFns(Ie,0).labelStandoff,Le={xFn:function(Ee){var Ne=De(Ee);return Math.cos(Ne)*ke},yFn:function(Ee){var Ne=De(Ee),je=Math.sin(Ne)>0?.2:1;return-Math.sin(Ne)*(ke+Ee.fontSize*je)+Math.abs(Math.cos(Ne))*(Ee.fontSize*k)},anchorFn:function(Ee){var Ne=De(Ee),je=Math.cos(Ne);return Math.abs(je)<.1?"middle":je>0?"start":"end"},heightFn:function(Ee,Ne,je){var nt=De(Ee);return-.5*(1+Math.sin(nt))*je}},We=ee(Pe);ce.angularTickLayout!==We&&(ve["angular-axis"].selectAll("."+Ie._id+"tick").remove(),ce.angularTickLayout=We);var Ue,Ze=ze?[1/0].concat(Ie.tickvals||[]).map(function(Ee){return h.tickText(Ie,Ee,!0,!1)}):h.calcTicks(Ie);if(ze&&(Ze[0].text="∞",Ze[0].fontSize*=1.75),ae.gridshape==="linear"?(Ue=Ze.map(De),O.angleDelta(Ue[0],Ue[1])<0&&(Ue=Ue.slice().reverse())):Ue=null,ce.vangles=Ue,Ie.type==="category"&&(Ze=Ze.filter(function(Ee){return O.isAngleInsideSector(De(Ee),ce.sectorInRad)})),Ie.visible){var Xe=Ie.ticks==="inside"?-1:1,tt=(Ie.linewidth||1)/2;h.drawTicks(de,Ie,{vals:Ze,layer:ve["angular-axis"],path:"M"+Xe*tt+",0h"+Xe*Ie.ticklen,transFn:$e,crisp:!1}),h.drawGrid(de,Ie,{vals:Ze,layer:ve["angular-grid"],path:Oe,transFn:O.noop,crisp:!1}),h.drawLabels(de,Ie,{vals:Ze,layer:ve["angular-axis"],repositionOnUpdate:!0,transFn:Ve,labelFns:Le})}he(ve["angular-line"].select("path"),Pe.showline,{d:ce.pathSubplot(),transform:y(Se,Te)}).attr("stroke-width",Pe.linewidth).call(p.stroke,Pe.linecolor)},Y.updateFx=function(se,ae){this.gd._context.staticPlot||(!this.isSmith&&(this.updateAngularDrag(se),this.updateRadialDrag(se,ae,0),this.updateRadialDrag(se,ae,1)),this.updateHoverAndMainDrag(se))},Y.updateHoverAndMainDrag=function(se){var ae,ce,de=this,ve=de.isSmith,ye=de.gd,_e=de.layers,Se=se._zoomlayer,Te=I.MINZOOM,Pe=I.OFFEDGE,Ie=de.radius,ze=de.innerRadius,De=de.cx,He=de.cy,Ve=de.cxx,$e=de.cyy,Oe=de.sectorInRad,ke=de.vangles,Le=de.radialAxis,We=z.clampTiny,Ue=z.findXYatLength,Ze=z.findEnclosingVertexAngles,Xe=I.cornerHalfWidth,tt=I.cornerLen/2,Ee=S.makeDragger(_e,"path","maindrag",se.dragmode===!1?"none":"crosshair");c.select(Ee).attr("d",de.pathSubplot()).attr("transform",y(De,He)),Ee.onmousemove=function(Rt){x.hover(ye,Rt,de.id),ye._fullLayout._lasthover=Ee,ye._fullLayout._hoversubplot=de.id},Ee.onmouseout=function(Rt){ye._dragging||A.unhover(ye,Rt)};var Ne,je,nt,ot,Ge,ht,pt,wt,Dt,It={element:Ee,gd:ye,subplot:de.id,plotinfo:{id:de.id,xaxis:de.xaxis,yaxis:de.yaxis},xaxes:[de.xaxis],yaxes:[de.yaxis]};function qt(Rt,it){return Math.sqrt(Rt*Rt+it*it)}function en(Rt,it){return qt(Rt-Ve,it-$e)}function Gt(Rt,it){return Math.atan2($e-it,Rt-Ve)}function Ct(Rt,it){return[Rt*Math.cos(it),Rt*Math.sin(-it)]}function _t(Rt,it){if(Rt===0)return de.pathSector(2*Xe);var at=tt/Rt,Lt=it-at,xt=it+at,Zt=Math.max(0,Math.min(Rt,Ie)),Xt=Zt-Xe,Yt=Zt+Xe;return"M"+Ct(Xt,Lt)+"A"+[Xt,Xt]+" 0,0,0 "+Ct(Xt,xt)+"L"+Ct(Yt,xt)+"A"+[Yt,Yt]+" 0,0,1 "+Ct(Yt,Lt)+"Z"}function nn(Rt,it,at){if(Rt===0)return de.pathSector(2*Xe);var Lt,xt,Zt=Ct(Rt,it),Xt=Ct(Rt,at),Yt=We((Zt[0]+Xt[0])/2),Qt=We((Zt[1]+Xt[1])/2);if(Yt&&Qt){var Pt=Qt/Yt,tn=-1/Pt,Kt=Ue(Xe,Pt,Yt,Qt);Lt=Ue(tt,tn,Kt[0][0],Kt[0][1]),xt=Ue(tt,tn,Kt[1][0],Kt[1][1])}else{var fn,dn;Qt?(fn=tt,dn=Xe):(fn=Xe,dn=tt),Lt=[[Yt-fn,Qt-dn],[Yt+fn,Qt-dn]],xt=[[Yt-fn,Qt+dn],[Yt+fn,Qt+dn]]}return"M"+Lt.join("L")+"L"+xt.reverse().join("L")+"Z"}function gn(Rt,it){return it=Math.max(Math.min(it,Ie),ze),RtTe?(Rt-1&&Rt===1&&T(it,ye,[de.xaxis],[de.yaxis],de.id,It),at.indexOf("event")>-1&&x.click(ye,it,de.id)}It.prepFn=function(Rt,it,at){var Lt=ye._fullLayout.dragmode,xt=Ee.getBoundingClientRect();ye._fullLayout._calcInverseTransform(ye);var Zt=ye._fullLayout._invTransform;ae=ye._fullLayout._invScaleX,ce=ye._fullLayout._invScaleY;var Xt=O.apply3DTransform(Zt)(it-xt.left,at-xt.top);if(Ne=Xt[0],je=Xt[1],ke){var Yt=z.findPolygonOffset(Ie,Oe[0],Oe[1],ke);Ne+=Ve+Yt[0],je+=$e+Yt[1]}switch(Lt){case"zoom":It.clickFn=zt,ve||(It.moveFn=ke?bt:mn,It.doneFn=lt,function(){nt=null,ot=null,Ge=de.pathSubplot(),ht=!1;var Qt=ye._fullLayout[de.id];pt=b(Qt.bgcolor).getLuminance(),(wt=S.makeZoombox(Se,pt,De,He,Ge)).attr("fill-rule","evenodd"),Dt=S.makeCorners(Se,De,He),E(ye)}());break;case"select":case"lasso":M(Rt,it,at,It,Lt)}},A.init(It)},Y.updateRadialDrag=function(se,ae,ce){var de=this,ve=de.gd,ye=de.layers,_e=de.radius,Se=de.innerRadius,Te=de.cx,Pe=de.cy,Ie=de.radialAxis,ze=I.radialDragBoxSize,De=ze/2;if(Ie.visible){var He,Ve,$e,Oe=K(de.radialAxisAngle),ke=Ie._rl,Le=ke[0],We=ke[1],Ue=ke[ce],Ze=.75*(ke[1]-ke[0])/(1-de.getHole(ae))/_e;ce?(He=Te+(_e+De)*Math.cos(Oe),Ve=Pe-(_e+De)*Math.sin(Oe),$e="radialdrag"):(He=Te+(Se-De)*Math.cos(Oe),Ve=Pe-(Se-De)*Math.sin(Oe),$e="radialdrag-inner");var Xe,tt,Ee,Ne=S.makeRectDragger(ye,$e,"crosshair",-De,-De,ze,ze),je={element:Ne,gd:ve};se.dragmode===!1&&(je.dragmode=!1),he(c.select(Ne),Ie.visible&&Se<_e,{transform:y(He,Ve)}),je.prepFn=function(){Xe=null,tt=null,Ee=null,je.moveFn=nt,je.doneFn=ot,E(ve)},je.clampFn=function(pt,wt){return Math.sqrt(pt*pt+wt*wt)0==(ce?Ee>Le:Eev?function(R){return R<=0}:function(R){return R>=0};a.c2g=function(R){var M=a.c2l(R)-m;return(x(M)?M:0)+A},a.g2c=function(R){return a.l2c(R+m-A)},a.g2p=function(R){return R*S},a.c2p=function(R){return a.g2p(a.c2g(R))}}})(w,y);break;case"angularaxis":(function(a,u){var h=a.type;if(h==="linear"){var m=a.d2c,v=a.c2d;a.d2c=function(_,S){return function(A,x){return x==="degrees"?i(A):A}(m(_),S)},a.c2d=function(_,S){return v(function(A,x){return x==="degrees"?O(A):A}(_,S))}}a.makeCalcdata=function(_,S){var A,x,R=_[S],M=_._length,T=function(k){return a.d2c(k,_.thetaunit)};if(R)for(A=new Array(M),x=0;x0?1:0}function n(i){var O=i[0],w=i[1];if(!isFinite(O)||!isFinite(w))return[1,0];var y=(O+1)*(O+1)+w*w;return[(O*O+w*w-1)/y,2*w/y]}function c(i,O){var w=O[0],y=O[1];return[w*i.radius+i.cx,-y*i.radius+i.cy]}function b(i,O){return O*i.radius}d.exports={smith:n,reactanceArc:function(i,O,w,y){var p=c(i,n([w,O])),a=p[0],u=p[1],h=c(i,n([y,O])),m=h[0],v=h[1];if(O===0)return["M"+a+","+u,"L"+m+","+v].join(" ");var _=b(i,1/Math.abs(O));return["M"+a+","+u,"A"+_+","+_+" 0 0,"+(O<0?1:0)+" "+m+","+v].join(" ")},resistanceArc:function(i,O,w,y){var p=b(i,1/(O+1)),a=c(i,n([O,w])),u=a[0],h=a[1],m=c(i,n([O,y])),v=m[0],_=m[1];if(l(w)!==l(y)){var S=c(i,n([O,0]));return["M"+u+","+h,"A"+p+","+p+" 0 0,"+(00){for(var y=[],p=0;p=L&&(k.min=0,I.min=0,z.min=0,S.aaxis&&delete S.aaxis.min,S.baxis&&delete S.baxis.min,S.caxis&&delete S.caxis.min)}function _(S,A,x,R){var M=h[A._name];function T(I,z){return i.coerce(S,A,M,I,z)}T("uirevision",R.uirevision),A.type="linear";var E=T("color"),C=E!==M.color.dflt?E:x.font.color,L=A._name.charAt(0).toUpperCase(),D="Component "+L,k=T("title.text",D);A._hovertitle=k===D?k:L,i.coerceFont(T,"title.font",{family:x.font.family,size:i.bigFont(x.font.size),color:C}),T("min"),a(S,A,T,"linear"),y(S,A,T,"linear"),w(S,A,T,"linear",{noAutotickangles:!0}),p(S,A,T,{outerTicks:!0}),T("showticklabels")&&(i.coerceFont(T,"tickfont",{family:x.font.family,size:x.font.size,color:C}),T("tickangle"),T("tickformat")),u(S,A,T,{dfltColor:E,bgColor:x.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),T("hoverformat"),T("layer")}d.exports=function(S,A,x){O(S,A,x,{type:"ternary",attributes:h,handleDefaults:v,font:A.font,paper_bgcolor:A.paper_bgcolor})}},24696:function(d,l,n){var c=n(33428),b=n(49760),i=n(24040),O=n(3400),w=O.strTranslate,y=O._,p=n(76308),a=n(43616),u=n(78344),h=n(92880).extendFlat,m=n(7316),v=n(54460),_=n(86476),S=n(93024),A=n(72760),x=A.freeMode,R=A.rectMode,M=n(81668),T=n(22676).prepSelect,E=n(22676).selectOnClick,C=n(22676).clearOutline,L=n(22676).clearSelectionsCache,D=n(33816);function k(W,K){this.id=W.id,this.graphDiv=W.graphDiv,this.init(K),this.makeFramework(K),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}d.exports=k;var I=k.prototype;I.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},I.plot=function(W,K){var oe=this,q=K[oe.id],Y=K._size;oe._hasClipOnAxisFalse=!1;for(var ee=0;eez*Se?Y=(ee=Se)*z:ee=(Y=_e)/z,me=ve*Y/_e,he=ye*ee/Se,oe=K.l+K.w*ce-Y/2,q=K.t+K.h*(1-de)-ee/2,se.x0=oe,se.y0=q,se.w=Y,se.h=ee,se.sum=Te,se.xaxis={type:"linear",range:[Pe+2*ze-Te,Te-Pe-2*Ie],domain:[ce-me/2,ce+me/2],_id:"x"},u(se.xaxis,se.graphDiv._fullLayout),se.xaxis.setScale(),se.xaxis.isPtWithinRange=function(Xe){return Xe.a>=se.aaxis.range[0]&&Xe.a<=se.aaxis.range[1]&&Xe.b>=se.baxis.range[1]&&Xe.b<=se.baxis.range[0]&&Xe.c>=se.caxis.range[1]&&Xe.c<=se.caxis.range[0]},se.yaxis={type:"linear",range:[Pe,Te-Ie-ze],domain:[de-he/2,de+he/2],_id:"y"},u(se.yaxis,se.graphDiv._fullLayout),se.yaxis.setScale(),se.yaxis.isPtWithinRange=function(){return!0};var De=se.yaxis.domain[0],He=se.aaxis=h({},W.aaxis,{range:[Pe,Te-Ie-ze],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[De,De+he*z],anchor:"free",position:0,_id:"y",_length:Y});u(He,se.graphDiv._fullLayout),He.setScale();var Ve=se.baxis=h({},W.baxis,{range:[Te-Pe-ze,Ie],side:"bottom",domain:se.xaxis.domain,anchor:"free",position:0,_id:"x",_length:Y});u(Ve,se.graphDiv._fullLayout),Ve.setScale();var $e=se.caxis=h({},W.caxis,{range:[Te-Pe-Ie,ze],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[De,De+he*z],anchor:"free",position:0,_id:"y",_length:Y});u($e,se.graphDiv._fullLayout),$e.setScale();var Oe="M"+oe+","+(q+ee)+"h"+Y+"l-"+Y/2+",-"+ee+"Z";se.clipDef.select("path").attr("d",Oe),se.layers.plotbg.select("path").attr("d",Oe);var ke="M0,"+ee+"h"+Y+"l-"+Y/2+",-"+ee+"Z";se.clipDefRelative.select("path").attr("d",ke);var Le=w(oe,q);se.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Le),se.clipDefRelative.select("path").attr("transform",null);var We=w(oe-Ve._offset,q+ee);se.layers.baxis.attr("transform",We),se.layers.bgrid.attr("transform",We);var Ue=w(oe+Y/2,q)+"rotate(30)"+w(0,-He._offset);se.layers.aaxis.attr("transform",Ue),se.layers.agrid.attr("transform",Ue);var Ze=w(oe+Y/2,q)+"rotate(-30)"+w(0,-$e._offset);se.layers.caxis.attr("transform",Ze),se.layers.cgrid.attr("transform",Ze),se.drawAxes(!0),se.layers.aline.select("path").attr("d",He.showline?"M"+oe+","+(q+ee)+"l"+Y/2+",-"+ee:"M0,0").call(p.stroke,He.linecolor||"#000").style("stroke-width",(He.linewidth||0)+"px"),se.layers.bline.select("path").attr("d",Ve.showline?"M"+oe+","+(q+ee)+"h"+Y:"M0,0").call(p.stroke,Ve.linecolor||"#000").style("stroke-width",(Ve.linewidth||0)+"px"),se.layers.cline.select("path").attr("d",$e.showline?"M"+(oe+Y/2)+","+q+"l"+Y/2+","+ee:"M0,0").call(p.stroke,$e.linecolor||"#000").style("stroke-width",($e.linewidth||0)+"px"),se.graphDiv._context.staticPlot||se.initInteractions(),a.setClipUrl(se.layers.frontplot,se._hasClipOnAxisFalse?null:se.clipId,se.graphDiv)},I.drawAxes=function(W){var K=this,oe=K.graphDiv,q=K.id.substr(7)+"title",Y=K.layers,ee=K.aaxis,me=K.baxis,he=K.caxis;if(K.drawAx(ee),K.drawAx(me),K.drawAx(he),W){var se=Math.max(ee.showticklabels?ee.tickfont.size/2:0,(he.showticklabels?.75*he.tickfont.size:0)+(he.ticks==="outside"?.87*he.ticklen:0)),ae=(me.showticklabels?me.tickfont.size:0)+(me.ticks==="outside"?me.ticklen:0)+3;Y["a-title"]=M.draw(oe,"a"+q,{propContainer:ee,propName:K.id+".aaxis.title",placeholder:y(oe,"Click to enter Component A title"),attributes:{x:K.x0+K.w/2,y:K.y0-ee.title.font.size/3-se,"text-anchor":"middle"}}),Y["b-title"]=M.draw(oe,"b"+q,{propContainer:me,propName:K.id+".baxis.title",placeholder:y(oe,"Click to enter Component B title"),attributes:{x:K.x0-ae,y:K.y0+K.h+.83*me.title.font.size+ae,"text-anchor":"middle"}}),Y["c-title"]=M.draw(oe,"c"+q,{propContainer:he,propName:K.id+".caxis.title",placeholder:y(oe,"Click to enter Component C title"),attributes:{x:K.x0+K.w+ae,y:K.y0+K.h+.83*he.title.font.size+ae,"text-anchor":"middle"}})}},I.drawAx=function(W){var K,oe=this,q=oe.graphDiv,Y=W._name,ee=Y.charAt(0),me=W._id,he=oe.layers[Y],se=ee+"tickLayout",ae=(K=W).ticks+String(K.ticklen)+String(K.showticklabels);oe[se]!==ae&&(he.selectAll("."+me+"tick").remove(),oe[se]=ae),W.setScale();var ce=v.calcTicks(W),de=v.clipEnds(W,ce),ve=v.makeTransTickFn(W),ye=v.getTickSigns(W)[2],_e=O.deg2rad(30),Se=ye*(W.linewidth||1)/2,Te=ye*W.ticklen,Pe=oe.w,Ie=oe.h,ze=ee==="b"?"M0,"+Se+"l"+Math.sin(_e)*Te+","+Math.cos(_e)*Te:"M"+Se+",0l"+Math.cos(_e)*Te+","+-Math.sin(_e)*Te,De={a:"M0,0l"+Ie+",-"+Pe/2,b:"M0,0l-"+Pe/2+",-"+Ie,c:"M0,0l-"+Ie+","+Pe/2}[ee];v.drawTicks(q,W,{vals:W.ticks==="inside"?de:ce,layer:he,path:ze,transFn:ve,crisp:!1}),v.drawGrid(q,W,{vals:de,layer:oe.layers[ee+"grid"],path:De,transFn:ve,crisp:!1}),v.drawLabels(q,W,{vals:ce,layer:he,transFn:ve,labelFns:v.makeLabelFns(W,0,30)})};var $=D.MINZOOM/2+.87,Q="m-0.87,.5h"+$+"v3h-"+($+5.2)+"l"+($/2+2.6)+",-"+(.87*$+4.5)+"l2.6,1.5l-"+$/2+","+.87*$+"Z",j="m0.87,.5h-"+$+"v3h"+($+5.2)+"l-"+($/2+2.6)+",-"+(.87*$+4.5)+"l-2.6,1.5l"+$/2+","+.87*$+"Z",U="m0,1l"+$/2+","+.87*$+"l2.6,-1.5l-"+($/2+2.6)+",-"+(.87*$+4.5)+"l-"+($/2+2.6)+","+(.87*$+4.5)+"l2.6,1.5l"+$/2+",-"+.87*$+"Z",X=!0;function te(W){c.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}I.clearOutline=function(){L(this.dragOptions),C(this.dragOptions.gd)},I.initInteractions=function(){var W,K,oe,q,Y,ee,me,he,se,ae,ce,de,ve=this,ye=ve.layers.plotbg.select("path").node(),_e=ve.graphDiv,Se=_e._fullLayout._zoomlayer;function Te(ke){var Le={};return Le[ve.id+".aaxis.min"]=ke.a,Le[ve.id+".baxis.min"]=ke.b,Le[ve.id+".caxis.min"]=ke.c,Le}function Pe(ke,Le){var We=_e._fullLayout.clickmode;te(_e),ke===2&&(_e.emit("plotly_doubleclick",null),i.call("_guiRelayout",_e,Te({a:0,b:0,c:0}))),We.indexOf("select")>-1&&ke===1&&E(Le,_e,[ve.xaxis],[ve.yaxis],ve.id,ve.dragOptions),We.indexOf("event")>-1&&S.click(_e,Le,ve.id)}function Ie(ke,Le){return 1-Le/ve.h}function ze(ke,Le){return 1-(ke+(ve.h-Le)/Math.sqrt(3))/ve.w}function De(ke,Le){return(ke-(ve.h-Le)/Math.sqrt(3))/ve.w}function He(ke,Le){var We=oe+ke*W,Ue=q+Le*K,Ze=Math.max(0,Math.min(1,Ie(0,q),Ie(0,Ue))),Xe=Math.max(0,Math.min(1,ze(oe,q),ze(We,Ue))),tt=Math.max(0,Math.min(1,De(oe,q),De(We,Ue))),Ee=(Ze/2+tt)*ve.w,Ne=(1-Ze/2-Xe)*ve.w,je=(Ee+Ne)/2,nt=Ne-Ee,ot=(1-Ze)*ve.h,Ge=ot-nt/z;nt.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),de.transition().style("opacity",1).duration(200),ae=!0),_e.emit("plotly_relayouting",Te(me))}function Ve(){te(_e),me!==Y&&(i.call("_guiRelayout",_e,Te(me)),X&&_e.data&&_e._context.showTips&&(O.notifier(y(_e,"Double-click to zoom back out"),"long"),X=!1))}function $e(ke,Le){var We=ke/ve.xaxis._m,Ue=Le/ve.yaxis._m,Ze=[(me={a:Y.a-Ue,b:Y.b+(We+Ue)/2,c:Y.c-(We-Ue)/2}).a,me.b,me.c].sort(O.sorterAsc),Xe=Ze.indexOf(me.a),tt=Ze.indexOf(me.b),Ee=Ze.indexOf(me.c);Ze[0]<0&&(Ze[1]+Ze[0]/2<0?(Ze[2]+=Ze[0]+Ze[1],Ze[0]=Ze[1]=0):(Ze[2]+=Ze[0]/2,Ze[1]+=Ze[0]/2,Ze[0]=0),me={a:Ze[Xe],b:Ze[tt],c:Ze[Ee]},Le=(Y.a-me.a)*ve.yaxis._m,ke=(Y.c-me.c-Y.b+me.b)*ve.xaxis._m);var Ne=w(ve.x0+ke,ve.y0+Le);ve.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ne);var je=w(-ke,-Le);ve.clipDefRelative.select("path").attr("transform",je),ve.aaxis.range=[me.a,ve.sum-me.b-me.c],ve.baxis.range=[ve.sum-me.a-me.c,me.b],ve.caxis.range=[ve.sum-me.a-me.b,me.c],ve.drawAxes(!1),ve._hasClipOnAxisFalse&&ve.plotContainer.select(".scatterlayer").selectAll(".trace").call(a.hideOutsideRangePoints,ve),_e.emit("plotly_relayouting",Te(me))}function Oe(){i.call("_guiRelayout",_e,Te(me))}this.dragOptions={element:ye,gd:_e,plotinfo:{id:ve.id,domain:_e._fullLayout[ve.id].domain,xaxis:ve.xaxis,yaxis:ve.yaxis},subplot:ve.id,prepFn:function(ke,Le,We){ve.dragOptions.xaxes=[ve.xaxis],ve.dragOptions.yaxes=[ve.yaxis],W=_e._fullLayout._invScaleX,K=_e._fullLayout._invScaleY;var Ue=ve.dragOptions.dragmode=_e._fullLayout.dragmode;x(Ue)?ve.dragOptions.minDrag=1:ve.dragOptions.minDrag=void 0,Ue==="zoom"?(ve.dragOptions.moveFn=He,ve.dragOptions.clickFn=Pe,ve.dragOptions.doneFn=Ve,function(Ze,Xe,tt){var Ee=ye.getBoundingClientRect();oe=Xe-Ee.left,q=tt-Ee.top,_e._fullLayout._calcInverseTransform(_e);var Ne=_e._fullLayout._invTransform,je=O.apply3DTransform(Ne)(oe,q);oe=je[0],q=je[1],Y={a:ve.aaxis.range[0],b:ve.baxis.range[1],c:ve.caxis.range[1]},me=Y,ee=ve.aaxis.range[1]-Y.a,he=b(ve.graphDiv._fullLayout[ve.id].bgcolor).getLuminance(),se="M0,"+ve.h+"L"+ve.w/2+", 0L"+ve.w+","+ve.h+"Z",ae=!1,ce=Se.append("path").attr("class","zoombox").attr("transform",w(ve.x0,ve.y0)).style({fill:he>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",se),de=Se.append("path").attr("class","zoombox-corners").attr("transform",w(ve.x0,ve.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),ve.clearOutline(_e)}(0,Le,We)):Ue==="pan"?(ve.dragOptions.moveFn=$e,ve.dragOptions.clickFn=Pe,ve.dragOptions.doneFn=Oe,Y={a:ve.aaxis.range[0],b:ve.baxis.range[1],c:ve.caxis.range[1]},me=Y,ve.clearOutline(_e)):(R(Ue)||x(Ue))&&T(ke,Le,We,ve.dragOptions,Ue)}},ye.onmousemove=function(ke){S.hover(_e,ke,ve.id),_e._fullLayout._lasthover=ye,_e._fullLayout._hoversubplot=ve.id},ye.onmouseout=function(ke){_e._dragging||_.unhover(_e,ke)},_.init(this.dragOptions)}},24040:function(d,l,n){var c=n(24248),b=n(16628),i=n(52416),O=n(63620),w=n(52200).addStyleRule,y=n(92880),p=n(45464),a=n(64859),u=y.extendFlat,h=y.extendDeepAll;function m(E){var C=E.name,L=E.categories,D=E.meta;if(l.modules[C])c.log("Type "+C+" already registered");else{l.subplotsRegistry[E.basePlotModule.name]||function(X){var te=X.name;if(l.subplotsRegistry[te])c.log("Plot type "+te+" already registered.");else for(var W in A(X),l.subplotsRegistry[te]=X,l.componentsRegistry)M(W,X.name)}(E.basePlotModule);for(var k={},I=0;I-1&&(_[A[a]].title={text:""});for(a=0;a")!==-1?"":I.html($).text()});return I.remove(),z}(D)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(a,"'"),b.isIE()&&(D=(D=(D=D.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),D}},84664:function(d,l,n){var c=n(3400);d.exports=function(b,i){for(var O=0;Oz+k||!c(I))}for(var Q=0;Q=0)return _}else if(typeof _=="string"&&(_=_.trim()).slice(-1)==="%"&&c(_.slice(0,-1))&&(_=+_.slice(0,-1))>=0)return _+"%"}function v(_,S,A,x,R,M){var T=(M=M||{}).moduleHasSelected!==!1,E=M.moduleHasUnselected!==!1,C=M.moduleHasConstrain!==!1,L=M.moduleHasCliponaxis!==!1,D=M.moduleHasTextangle!==!1,k=M.moduleHasInsideanchor!==!1,I=!!M.hasPathbar,z=Array.isArray(R)||R==="auto",$=z||R==="inside",Q=z||R==="outside";if($||Q){var j=h(x,"textfont",A.font),U=b.extendFlat({},j),X=!(_.textfont&&_.textfont.color);if(X&&delete U.color,h(x,"insidetextfont",U),I){var te=b.extendFlat({},j);X&&delete te.color,h(x,"pathbar.textfont",te)}Q&&h(x,"outsidetextfont",j),T&&x("selected.textfont.color"),E&&x("unselected.textfont.color"),C&&x("constraintext"),L&&x("cliponaxis"),D&&x("textangle"),x("texttemplate")}$&&k&&x("insidetextanchor")}d.exports={supplyDefaults:function(_,S,A,x){function R(C,L){return b.coerce(_,S,u,C,L)}if(w(_,S,x,R)){y(_,S,x,R),R("xhoverformat"),R("yhoverformat"),R("orientation",S.x&&!S.y?"h":"v"),R("base"),R("offset"),R("width"),R("text"),R("hovertext"),R("hovertemplate");var M=R("textposition");v(_,0,x,R,M,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),p(_,S,R,A,x);var T=(S.marker.line||{}).color,E=O.getComponentMethod("errorbars","supplyDefaults");E(_,S,T||i.defaultLine,{axis:"y"}),E(_,S,T||i.defaultLine,{axis:"x",inherit:"y"}),b.coerceSelectionMarkerOpacity(S,R)}else S.visible=!1},crossTraceDefaults:function(_,S){var A,x;function R(E,C){return b.coerce(x._input,x,u,E,C)}for(var M=0;M<_.length;M++)if((x=_[M]).type==="bar"){A=x._input;var T=R("marker.cornerradius",S.barcornerradius);x.marker&&(x.marker.cornerradius=m(T)),S.barmode==="group"&&a(A,x,S,R)}},handleText:v,validateCornerradius:m}},52160:function(d){d.exports=function(l,n,c){return l.x="xVal"in n?n.xVal:n.x,l.y="yVal"in n?n.yVal:n.y,n.xa&&(l.xaxis=n.xa),n.ya&&(l.yaxis=n.ya),c.orientation==="h"?(l.label=l.y,l.value=l.x):(l.label=l.x,l.value=l.y),l}},60444:function(d,l,n){var c=n(38248),b=n(49760),i=n(3400).isArrayOrTypedArray;l.coerceString=function(O,w,y){if(typeof w=="string"){if(w||!O.noBlank)return w}else if((typeof w=="number"||w===!0)&&!O.strict)return String(w);return y!==void 0?y:O.dflt},l.coerceNumber=function(O,w,y){if(c(w)){w=+w;var p=O.min,a=O.max;if(!(p!==void 0&&wa))return w}return y!==void 0?y:O.dflt},l.coerceColor=function(O,w,y){return b(w).isValid()?w:y!==void 0?y:O.dflt},l.coerceEnumerated=function(O,w,y){return O.coerceNumber&&(w=+w),O.values.indexOf(w)!==-1?w:y!==void 0?y:O.dflt},l.getValue=function(O,w){var y;return i(O)?w0?Te+=Pe:x<0&&(Te-=Pe)}return Te}function he(Se){var Te=x,Pe=Se.b,Ie=me(Se);return c.inbox(Pe-Te,Ie-Te,$+(Ie-Te)/(Ie-Pe)-1)}var se=h[R+"a"],ae=h[M+"a"];C=Math.abs(se.r2c(se.range[1])-se.r2c(se.range[0]));var ce=c.getDistanceFunction(_,T,E,function(Se){return(T(Se)+E(Se))/2});if(c.getClosest(L,ce,h),h.index!==!1&&L[h.index].p!==p){U||(oe=function(Se){return Math.min(X(Se),Se.p-k.bargroupwidth/2)},q=function(Se){return Math.max(te(Se),Se.p+k.bargroupwidth/2)});var de=L[h.index],ve=D.base?de.b+de.s:de.s;h[M+"0"]=h[M+"1"]=ae.c2p(de[M],!0),h[M+"LabelVal"]=ve;var ye=k.extents[k.extents.round(de.p)];h[R+"0"]=se.c2p(I?oe(de):ye[0],!0),h[R+"1"]=se.c2p(I?q(de):ye[1],!0);var _e=de.orig_p!==void 0;return h[R+"LabelVal"]=_e?de.orig_p:de.p,h.labelLabel=y(se,h[R+"LabelVal"],D[R+"hoverformat"]),h.valueLabel=y(ae,h[M+"LabelVal"],D[M+"hoverformat"]),h.baseLabel=y(ae,de.b,D[M+"hoverformat"]),h.spikeDistance=(function(Se){var Te=x,Pe=Se.b,Ie=me(Se);return c.inbox(Pe-Te,Ie-Te,Q+(Ie-Te)/(Ie-Pe)-1)}(de)+function(Se){return Y(X(Se),te(Se),Q)}(de))/2,h[R+"Spike"]=se.c2p(de.p,!0),O(de,D,h),h.hovertemplate=D.hovertemplate,h}}function u(h,m){var v=m.mcc||h.marker.color,_=m.mlcc||h.marker.line.color,S=w(h,m);return i.opacity(v)?v:i.opacity(_)&&S?_:void 0}d.exports={hoverPoints:function(h,m,v,_,S){var A=a(h,m,v,_,S);if(A){var x=A.cd,R=x[0].trace,M=x[A.index];return A.color=u(R,M),b.getComponentMethod("errorbars","hoverInfo")(M,R,A),[A]}},hoverOnBars:a,getTraceColor:u}},51132:function(d,l,n){d.exports={attributes:n(20832),layoutAttributes:n(39324),supplyDefaults:n(31508).supplyDefaults,crossTraceDefaults:n(31508).crossTraceDefaults,supplyLayoutDefaults:n(37156),calc:n(71820),crossTraceCalc:n(96376).crossTraceCalc,colorbar:n(5528),arraysToCalcdata:n(84664),plot:n(98184).plot,style:n(60100).style,styleOnSelect:n(60100).styleOnSelect,hoverPoints:n(63400).hoverPoints,eventData:n(52160),selectPoints:n(45784),moduleType:"trace",name:"bar",basePlotModule:n(57952),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},39324:function(d){d.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}},37156:function(d,l,n){var c=n(24040),b=n(54460),i=n(3400),O=n(39324),w=n(31508).validateCornerradius;d.exports=function(y,p,a){function u(T,E){return i.coerce(y,p,O,T,E)}for(var h=!1,m=!1,v=!1,_={},S=u("barmode"),A=0;A0)-(U<0)}function D(U,X){return U0}function z(U,X,te,W,K){return!(U<0||X<0)&&(te<=U&&W<=X||te<=X&&W<=U||(K?U>=te*(X/W):X>=W*(U/te)))}function $(U){return U==="auto"?0:U}function Q(U,X){var te=Math.PI/180*X,W=Math.abs(Math.sin(te)),K=Math.abs(Math.cos(te));return{x:U.width*K+U.height*W,y:U.width*W+U.height*K}}function j(U,X,te,W,K,oe){var q=!!oe.isHorizontal,Y=!!oe.constrained,ee=oe.angle||0,me=oe.anchor,he=me==="end",se=me==="start",ae=((oe.leftToRight||0)+1)/2,ce=1-ae,de=oe.hasB,ve=oe.r,ye=oe.overhead,_e=K.width,Se=K.height,Te=Math.abs(X-U),Pe=Math.abs(W-te),Ie=Te>2*T&&Pe>2*T?T:0;Te-=2*Ie,Pe-=2*Ie;var ze=$(ee);ee!=="auto"||_e<=Te&&Se<=Pe||!(_e>Te||Se>Pe)||(_e>Pe||Se>Te)&&_eT){var $e=function(Ee,Ne,je,nt,ot,Ge,ht,pt,wt){var Dt,It,qt,en,Gt=Math.max(0,Math.abs(Ne-Ee)-2*T),Ct=Math.max(0,Math.abs(nt-je)-2*T),_t=Ge-T,nn=ht?_t-Math.sqrt(_t*_t-(_t-ht)*(_t-ht)):_t,gn=wt?2*_t:pt?_t-ht:2*nn,bn=wt?2*_t:pt?2*nn:_t-ht;return ot.y/ot.x>=Ct/(Gt-gn)?en=Ct/ot.y:ot.y/ot.x<=(Ct-bn)/Gt?en=Gt/ot.x:!wt&&pt?(Dt=ot.x*ot.x+ot.y*ot.y/4,qt=(Gt-_t)*(Gt-_t)+(Ct/2-_t)*(Ct/2-_t)-_t*_t,en=(-(It=-2*ot.x*(Gt-_t)-ot.y*(Ct/2-_t))+Math.sqrt(It*It-4*Dt*qt))/(2*Dt)):wt?(Dt=(ot.x*ot.x+ot.y*ot.y)/4,qt=(Gt/2-_t)*(Gt/2-_t)+(Ct/2-_t)*(Ct/2-_t)-_t*_t,en=(-(It=-ot.x*(Gt/2-_t)-ot.y*(Ct/2-_t))+Math.sqrt(It*It-4*Dt*qt))/(2*Dt)):(Dt=ot.x*ot.x/4+ot.y*ot.y,qt=(Gt/2-_t)*(Gt/2-_t)+(Ct-_t)*(Ct-_t)-_t*_t,en=(-(It=-ot.x*(Gt/2-_t)-2*ot.y*(Ct-_t))+Math.sqrt(It*It-4*Dt*qt))/(2*Dt)),{scale:en=Math.min(1,en),pad:pt?Math.max(0,_t-Math.sqrt(Math.max(0,_t*_t-(_t-(Ct-ot.y*en)/2)*(_t-(Ct-ot.y*en)/2)))-ht):Math.max(0,_t-Math.sqrt(Math.max(0,_t*_t-(_t-(Gt-ot.x*en)/2)*(_t-(Gt-ot.x*en)/2)))-ht)}}(U,X,te,W,Ve,ve,ye,q,de);De=$e.scale,He=$e.pad}else De=1,Y&&(De=Math.min(1,Te/Ve.x,Pe/Ve.y)),He=0;var Oe=K.left*ce+K.right*ae,ke=(K.top+K.bottom)/2,Le=(U+T)*ce+(X-T)*ae,We=(te+W)/2,Ue=0,Ze=0;if(se||he){var Xe=(q?Ve.x:Ve.y)/2;ve&&(he||de)&&(Ie+=He);var tt=q?D(U,X):D(te,W);q?se?(Le=U+tt*Ie,Ue=-tt*Xe):(Le=X-tt*Ie,Ue=tt*Xe):se?(We=te+tt*Ie,Ze=-tt*Xe):(We=W-tt*Ie,Ze=tt*Xe)}return{textX:Oe,textY:ke,targetX:Le,targetY:We,anchorX:Ue,anchorY:Ze,scale:De,rotate:ze}}d.exports={plot:function(U,X,te,W,K,oe){var q=X.xaxis,Y=X.yaxis,ee=U._fullLayout,me=U._context.staticPlot;K||(K={mode:ee.barmode,norm:ee.barmode,gap:ee.bargap,groupgap:ee.bargroupgap},m("bar",ee));var he=i.makeTraceGroups(W,te,"trace bars").each(function(se){var ae=c.select(this),ce=se[0].trace,de=se[0].t,ve=ce.type==="waterfall",ye=ce.type==="funnel",_e=ce.type==="histogram",Se=ce.type==="bar",Te=Se||ye,Pe=0;ve&&ce.connector.visible&&ce.connector.mode==="between"&&(Pe=ce.connector.line.width/2);var Ie=ce.orientation==="h",ze=I(K),De=i.ensureSingle(ae,"g","points"),He=C(ce),Ve=De.selectAll("g.point").data(i.identity,He);Ve.enter().append("g").classed("point",!0),Ve.exit().remove(),Ve.each(function(Oe,ke){var Le,We,Ue=c.select(this),Ze=function(Rt,it,at,Lt){var xt=[],Zt=[],Xt=Lt?it:at,Yt=Lt?at:it;return xt[0]=Xt.c2p(Rt.s0,!0),Zt[0]=Yt.c2p(Rt.p0,!0),xt[1]=Xt.c2p(Rt.s1,!0),Zt[1]=Yt.c2p(Rt.p1,!0),Lt?[xt,Zt]:[Zt,xt]}(Oe,q,Y,Ie),Xe=Ze[0][0],tt=Ze[0][1],Ee=Ze[1][0],Ne=Ze[1][1],je=(Ie?tt-Xe:Ne-Ee)==0;if(je&&Te&&_.getLineWidth(ce,Oe)&&(je=!1),je||(je=!(b(Xe)&&b(tt)&&b(Ee)&&b(Ne))),Oe.isBlank=je,je&&(Ie?tt=Xe:Ne=Ee),Pe&&!je&&(Ie?(Xe-=D(Xe,tt)*Pe,tt+=D(Xe,tt)*Pe):(Ee-=D(Ee,Ne)*Pe,Ne+=D(Ee,Ne)*Pe)),ce.type==="waterfall"){if(!je){var nt=ce[Oe.dir].marker;Le=nt.line.width,We=nt.color}}else Le=_.getLineWidth(ce,Oe),We=Oe.mc||ce.marker.color;function ot(Rt){var it=c.round(Le/2%1,2);return K.gap===0&&K.groupgap===0?c.round(Math.round(Rt)-it,2):Rt}var Ge=w.opacity(We)<1||Le>.01?ot:function(Rt,it,at){return at&&Rt===it?Rt:Math.abs(Rt-it)>=2?ot(Rt):Rt>it?Math.ceil(Rt):Math.floor(Rt)};U._context.staticPlot||(Xe=Ge(Xe,tt,Ie),tt=Ge(tt,Xe,Ie),Ee=Ge(Ee,Ne,!Ie),Ne=Ge(Ne,Ee,!Ie));var ht,pt=Ie?q.c2p:Y.c2p;ht=Oe.s0>0?Oe._sMax:Oe.s0<0?Oe._sMin:Oe.s1>0?Oe._sMax:Oe._sMin;var wt,Dt,It=Se||_e?function(Rt,it){if(!Rt)return 0;var at,Lt=Math.abs(Ie?Ne-Ee:tt-Xe),xt=Math.abs(Ie?tt-Xe:Ne-Ee),Zt=Ge(Math.abs(pt(ht,!0)-pt(0,!0))),Xt=Oe.hasB?Math.min(Lt/2,xt/2):Math.min(Lt/2,Zt);return at=it==="%"?Lt*(Math.min(50,Rt)/100):Rt,Ge(Math.max(Math.min(at,Xt),0))}(de.cornerradiusvalue,de.cornerradiusform):0,qt="M"+Xe+","+Ee+"V"+Ne+"H"+tt+"V"+Ee+"Z",en=0;if(It&&Oe.s){var Gt=L(Oe.s0)===0||L(Oe.s)===L(Oe.s0)?Oe.s1:Oe.s0;if((en=Ge(Oe.hasB?0:Math.abs(pt(ht,!0)-pt(Gt,!0))))0?Math.sqrt(en*(2*It-en)):0,mn=Ct>0?Math.max:Math.min;wt="M"+Xe+","+Ee+"V"+(Ne-gn*_t)+"H"+mn(tt-(It-en)*Ct,Xe)+"A "+It+","+It+" 0 0 "+nn+" "+tt+","+(Ne-It*_t-bn)+"V"+(Ee+It*_t+bn)+"A "+It+","+It+" 0 0 "+nn+" "+mn(tt-(It-en)*Ct,Xe)+","+(Ee+gn*_t)+"Z"}else if(Oe.hasB)wt="M"+(Xe+It*Ct)+","+Ee+"A "+It+","+It+" 0 0 "+nn+" "+Xe+","+(Ee+It*_t)+"V"+(Ne-It*_t)+"A "+It+","+It+" 0 0 "+nn+" "+(Xe+It*Ct)+","+Ne+"H"+(tt-It*Ct)+"A "+It+","+It+" 0 0 "+nn+" "+tt+","+(Ne-It*_t)+"V"+(Ee+It*_t)+"A "+It+","+It+" 0 0 "+nn+" "+(tt-It*Ct)+","+Ee+"Z";else{var vt=(Dt=Math.abs(Ne-Ee)+en)0?Math.sqrt(en*(2*It-en)):0,lt=_t>0?Math.max:Math.min;wt="M"+(Xe+vt*Ct)+","+Ee+"V"+lt(Ne-(It-en)*_t,Ee)+"A "+It+","+It+" 0 0 "+nn+" "+(Xe+It*Ct-bt)+","+Ne+"H"+(tt-It*Ct+bt)+"A "+It+","+It+" 0 0 "+nn+" "+(tt-vt*Ct)+","+lt(Ne-(It-en)*_t,Ee)+"V"+Ee+"Z"}}else wt=qt}else wt=qt;var yt=k(i.ensureSingle(Ue,"path"),ee,K,oe);if(yt.style("vector-effect",me?"none":"non-scaling-stroke").attr("d",isNaN((tt-Xe)*(Ne-Ee))||je&&U._context.staticPlot?"M0,0Z":wt).call(y.setClipUrl,X.layerClipId,U),!ee.uniformtext.mode&&ze){var zt=y.makePointStyleFns(ce);y.singlePointStyle(Oe,yt,ce,zt,U)}(function(Rt,it,at,Lt,xt,Zt,Xt,Yt,Qt,Pt,tn,Kt,fn){var dn,vn=it.xaxis,Nn=it.yaxis,er=Rt._fullLayout;function En(bo,Bn,hr){return i.ensureSingle(bo,"text").text(Bn).attr({class:"bartext bartext-"+dn,"text-anchor":"middle","data-notex":1}).call(y.font,hr).call(O.convertToTspans,Rt)}var In=Lt[0].trace,jn=In.orientation==="h",xr=function(bo,Bn,hr,hn,zn){var Zn,yr=Bn[0].trace;return Zn=yr.texttemplate?function(gr,vr,nr,Qn,Hn){var tr=vr[0].trace,cr=i.castOption(tr,nr,"texttemplate");if(!cr)return"";var Lr,Er,Vr,to,_o=tr.type==="histogram",fr=tr.type==="waterfall",Eo=tr.type==="funnel",ao=tr.orientation==="h";function co(ra){return a(to,to.c2l(ra),!0).text}ao?(Lr="y",Er=Hn,Vr="x",to=Qn):(Lr="x",Er=Qn,Vr="y",to=Hn);var Go,po=vr[nr],qo={};qo.label=po.p,qo.labelLabel=qo[Lr+"Label"]=(Go=po.p,a(Er,Er.c2l(Go),!0).text);var Ao=i.castOption(tr,po.i,"text");(Ao===0||Ao)&&(qo.text=Ao),qo.value=po.s,qo.valueLabel=qo[Vr+"Label"]=co(po.s);var oi={};M(oi,tr,po.i),(_o||oi.x===void 0)&&(oi.x=ao?qo.value:qo.label),(_o||oi.y===void 0)&&(oi.y=ao?qo.label:qo.value),(_o||oi.xLabel===void 0)&&(oi.xLabel=ao?qo.valueLabel:qo.labelLabel),(_o||oi.yLabel===void 0)&&(oi.yLabel=ao?qo.labelLabel:qo.valueLabel),fr&&(qo.delta=+po.rawS||po.s,qo.deltaLabel=co(qo.delta),qo.final=po.v,qo.finalLabel=co(qo.final),qo.initial=qo.final-qo.delta,qo.initialLabel=co(qo.initial)),Eo&&(qo.value=po.s,qo.valueLabel=co(qo.value),qo.percentInitial=po.begR,qo.percentInitialLabel=i.formatPercent(po.begR),qo.percentPrevious=po.difR,qo.percentPreviousLabel=i.formatPercent(po.difR),qo.percentTotal=po.sumR,qo.percenTotalLabel=i.formatPercent(po.sumR));var ko=i.castOption(tr,po.i,"customdata");return ko&&(qo.customdata=ko),i.texttemplateString(cr,qo,gr._d3locale,oi,qo,tr._meta||{})}(bo,Bn,hr,hn,zn):yr.textinfo?function(gr,vr,nr,Qn){var Hn=gr[0].trace,tr=Hn.orientation==="h",cr=Hn.type==="waterfall",Lr=Hn.type==="funnel";function Er(ko){return a(tr?nr:Qn,+ko,!0).text}var Vr,to,_o=Hn.textinfo,fr=gr[vr],Eo=_o.split("+"),ao=[],co=function(ko){return Eo.indexOf(ko)!==-1};if(co("label")&&ao.push((to=gr[vr].p,a(tr?Qn:nr,to,!0).text)),co("text")&&((Vr=i.castOption(Hn,fr.i,"text"))===0||Vr)&&ao.push(Vr),cr){var Go=+fr.rawS||fr.s,po=fr.v,qo=po-Go;co("initial")&&ao.push(Er(qo)),co("delta")&&ao.push(Er(Go)),co("final")&&ao.push(Er(po))}if(Lr){co("value")&&ao.push(Er(fr.s));var Ao=0;co("percent initial")&&Ao++,co("percent previous")&&Ao++,co("percent total")&&Ao++;var oi=Ao>1;co("percent initial")&&(Vr=i.formatPercent(fr.begR),oi&&(Vr+=" of initial"),ao.push(Vr)),co("percent previous")&&(Vr=i.formatPercent(fr.difR),oi&&(Vr+=" of previous"),ao.push(Vr)),co("percent total")&&(Vr=i.formatPercent(fr.sumR),oi&&(Vr+=" of total"),ao.push(Vr))}return ao.join("
    ")}(Bn,hr,hn,zn):_.getValue(yr.text,hr),_.coerceString(x,Zn)}(er,Lt,xt,vn,Nn);dn=function(bo,Bn){var hr=_.getValue(bo.textposition,Bn);return _.coerceEnumerated(R,hr)}(In,xt);var Sr=Kt.mode==="stack"||Kt.mode==="relative",ar=Lt[xt],Fn=!Sr||ar._outmost,ir=ar.hasB,Wn=Pt&&Pt-tn>T;if(xr&&dn!=="none"&&(!ar.isBlank&&Zt!==Xt&&Yt!==Qt||dn!=="auto"&&dn!=="inside")){var Kn=er.font,_r=v.getBarColor(Lt[xt],In),Ir=v.getInsideTextFont(In,xt,Kn,_r),zr=v.getOutsideTextFont(In,xt,Kn),Fr=In.insidetextanchor||"end",Rr=at.datum();jn?vn.type==="log"&&Rr.s0<=0&&(Zt=vn.range[0]0&&so>0;br=Wn?ir?z(Pn-2*Pt,Yn,Co,so,jn)||z(Pn,Yn-2*Pt,Co,so,jn):jn?z(Pn-(Pt-tn),Yn,Co,so,jn)||z(Pn,Yn-2*(Pt-tn),Co,so,jn):z(Pn,Yn-(Pt-tn),Co,so,jn)||z(Pn-2*(Pt-tn),Yn,Co,so,jn):z(Pn,Yn,Co,so,jn),dr&&br?dn="inside":(dn="outside",$r.remove(),$r=null)}else dn="inside";if(!$r){var Cr=($r=En(at,xr,So=i.ensureUniformFontSize(Rt,dn==="outside"?zr:Ir))).attr("transform");if($r.attr("transform",""),Co=(Kr=y.bBox($r.node())).width,so=Kr.height,$r.attr("transform",Cr),Co<=0||so<=0)return void $r.remove()}var io,Qr=In.textangle;io=dn==="outside"?function(bo,Bn,hr,hn,zn,Zn){var yr,gr=!!Zn.isHorizontal,vr=!!Zn.constrained,nr=Zn.angle||0,Qn=zn.width,Hn=zn.height,tr=Math.abs(Bn-bo),cr=Math.abs(hn-hr);yr=gr?cr>2*T?T:0:tr>2*T?T:0;var Lr=1;vr&&(Lr=gr?Math.min(1,cr/Hn):Math.min(1,tr/Qn));var Er=$(nr),Vr=Q(zn,Er),to=(gr?Vr.x:Vr.y)/2,_o=(zn.left+zn.right)/2,fr=(zn.top+zn.bottom)/2,Eo=(bo+Bn)/2,ao=(hr+hn)/2,co=0,Go=0,po=gr?D(Bn,bo):D(hr,hn);return gr?(Eo=Bn-po*yr,co=po*to):(ao=hn+po*yr,Go=-po*to),{textX:_o,textY:fr,targetX:Eo,targetY:ao,anchorX:co,anchorY:Go,scale:Lr,rotate:Er}}(Zt,Xt,Yt,Qt,Kr,{isHorizontal:jn,constrained:In.constraintext==="both"||In.constraintext==="outside",angle:Qr}):j(Zt,Xt,Yt,Qt,Kr,{isHorizontal:jn,constrained:In.constraintext==="both"||In.constraintext==="inside",angle:Qr,anchor:Fr,hasB:ir,r:Pt,overhead:tn}),io.fontSize=So.size,h(In.type==="histogram"?"bar":In.type,io,er),ar.transform=io;var Wr=k($r,er,Kt,fn);i.setTransormAndDisplay(Wr,io)}else at.select("text").remove()})(U,X,Ue,se,ke,Xe,tt,Ee,Ne,It,en,K,oe),X.layerClipId&&y.hideOutsideRangePoint(Oe,Ue.select("text"),q,Y,ce.xcalendar,ce.ycalendar)});var $e=ce.cliponaxis===!1;y.setClipUrl(ae,$e?null:X.layerClipId,U)});p.getComponentMethod("errorbars","plot")(U,he,X,K)},toMoveInsideBar:j}},45784:function(d){function l(n,c,b,i,O){var w=c.c2p(i?n.s0:n.p0,!0),y=c.c2p(i?n.s1:n.p1,!0),p=b.c2p(i?n.p0:n.s0,!0),a=b.c2p(i?n.p1:n.s1,!0);return O?[(w+y)/2,(p+a)/2]:i?[y,(p+a)/2]:[(w+y)/2,a]}d.exports=function(n,c){var b,i=n.cd,O=n.xaxis,w=n.yaxis,y=i[0].trace,p=y.type==="funnel",a=y.orientation==="h",u=[];if(c===!1)for(b=0;b1||D.bargap===0&&D.bargroupgap===0&&!k[0].trace.marker.line.width)&&c.select(this).attr("shape-rendering","crispEdges")}),C.selectAll("g.points").each(function(k){v(c.select(this),k[0].trace,E)}),w.getComponentMethod("errorbars","style")(C)},styleTextPoints:_,styleOnSelect:function(E,C,L){var D=C[0].trace;D.selectedpoints?function(k,I,z){i.selectedPointStyle(k.selectAll("path"),I),function($,Q,j){$.each(function(U){var X,te=c.select(this);if(U.selected){X=O.ensureUniformFontSize(j,S(te,U,Q,j));var W=Q.selected.textfont&&Q.selected.textfont.color;W&&(X.color=W),i.font(te,X)}else i.selectedTextStyle(te,Q)})}(k.selectAll("text"),I,z)}(L,D,E):(v(L,D,E),w.getComponentMethod("errorbars","style")(L))},getInsideTextFont:x,getOutsideTextFont:R,getBarColor:T,resizeText:y}},55592:function(d,l,n){var c=n(76308),b=n(94288).hasColorscale,i=n(27260),O=n(3400).coercePattern;d.exports=function(w,y,p,a,u){var h=p("marker.color",a),m=b(w,"marker");m&&i(w,y,u,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",c.defaultLine),b(w,"marker.line")&&i(w,y,u,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),O(p,"marker.pattern",h,m),p("selected.marker.color"),p("unselected.marker.color")}},82744:function(d,l,n){var c=n(33428),b=n(3400);function i(O){return"_"+O+"Text_minsize"}d.exports={recordMinTextSize:function(O,w,y){if(y.uniformtext.mode){var p=i(O),a=y.uniformtext.minsize,u=w.scale*w.fontSize;w.hide=u_.range[1]&&(E+=Math.PI),c.getClosest(h,function(D){return x(T,E,[D.rp0,D.rp1],[D.thetag0,D.thetag1],A)?R+Math.min(1,Math.abs(D.thetag1-D.thetag0)/M)-1+(D.rp1-T)/(D.rp1-D.rp0)-1:1/0},p),p.index!==!1){var C=h[p.index];p.x0=p.x1=C.ct[0],p.y0=p.y1=C.ct[1];var L=b.extendFlat({},C,{r:C.s,theta:C.p});return O(C,m,p),w(L,m,v,p),p.hovertemplate=m.hovertemplate,p.color=i(m,C),p.xLabelVal=p.yLabelVal=void 0,C.s<0&&(p.idealAlign="left"),[p]}}},94456:function(d,l,n){d.exports={moduleType:"trace",name:"barpolar",basePlotModule:n(40872),categories:["polar","bar","showLegend"],attributes:n(78100),layoutAttributes:n(9320),supplyDefaults:n(70384),supplyLayoutDefaults:n(89580),calc:n(47056).calc,crossTraceCalc:n(47056).crossTraceCalc,plot:n(42040),colorbar:n(5528),formatLabels:n(22852),style:n(60100).style,styleOnSelect:n(60100).styleOnSelect,hoverPoints:n(68896),selectPoints:n(45784),meta:{}}},9320:function(d){d.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},89580:function(d,l,n){var c=n(3400),b=n(9320);d.exports=function(i,O,w){var y,p={};function a(m,v){return c.coerce(i[y]||{},O[y],b,m,v)}for(var u=0;u0?(D=C,k=L):(D=L,k=C);var I=[w.findEnclosingVertexAngles(D,x.vangles)[0],(D+k)/2,w.findEnclosingVertexAngles(k,x.vangles)[1]];return w.pathPolygonAnnulus(T,E,D,k,I,R,M)}:function(T,E,C,L){return i.pathAnnulus(T,E,C,L,R,M)}}(p),A=p.layers.frontplot.select("g.barlayer");i.makeTraceGroups(A,a,"trace bars").each(function(){var x=c.select(this),R=i.ensureSingle(x,"g","points").selectAll("g.point").data(i.identity);R.enter().append("g").style("vector-effect",u?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),R.exit().remove(),R.each(function(M){var T,E=c.select(this),C=M.rp0=v.c2p(M.s0),L=M.rp1=v.c2p(M.s1),D=M.thetag0=_.c2g(M.p0),k=M.thetag1=_.c2g(M.p1);if(b(C)&&b(L)&&b(D)&&b(k)&&C!==L&&D!==k){var I=v.c2g(M.s1),z=(D+k)/2;M.ct=[h.c2p(I*Math.cos(z)),m.c2p(I*Math.sin(z))],T=S(C,L,D,k)}else T="M0,0Z";i.ensureSingle(E,"path").attr("d",T)}),O.setClipUrl(x,p._hasClipOnAxisFalse?p.clipIds.forTraces:null,y)})}},63188:function(d,l,n){var c=n(52904),b=n(20832),i=n(22548),O=n(29736).axisHoverFormat,w=n(21776).Ks,y=n(92880).extendFlat,p=c.marker,a=p.line;d.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:c.xperiod,yperiod:c.yperiod,xperiod0:c.xperiod0,yperiod0:c.yperiod0,xperiodalignment:c.xperiodalignment,yperiodalignment:c.yperiodalignment,xhoverformat:O("x"),yhoverformat:O("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:y({},p.symbol,{arrayOk:!1,editType:"plot"}),opacity:y({},p.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:y({},p.angle,{arrayOk:!1,editType:"calc"}),size:y({},p.size,{arrayOk:!1,editType:"calc"}),color:y({},p.color,{arrayOk:!1,editType:"style"}),line:{color:y({},a.color,{arrayOk:!1,dflt:i.defaultLine,editType:"style"}),width:y({},a.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:c.fillcolor,whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:b.offsetgroup,alignmentgroup:b.alignmentgroup,selected:{marker:c.selected.marker,editType:"style"},unselected:{marker:c.unselected.marker,editType:"style"},text:y({},c.text,{}),hovertext:y({},c.hovertext,{}),hovertemplate:w({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},62555:function(d,l,n){var c=n(38248),b=n(54460),i=n(1220),O=n(3400),w=n(39032).BADNUM,y=O._;d.exports=function(x,R){var M,T,E,C,L,D,k,I=x._fullLayout,z=b.getFromId(x,R.xaxis||"x"),$=b.getFromId(x,R.yaxis||"y"),Q=[],j=R.type==="violin"?"_numViolins":"_numBoxes";R.orientation==="h"?(E=z,C="x",L=$,D="y",k=!!R.yperiodalignment):(E=$,C="y",L=z,D="x",k=!!R.xperiodalignment);var U,X,te,W,K,oe,q=function(ot,Ge,ht,pt){var wt,Dt=Ge+"0"in ot;if(Ge in ot||Dt&&"d"+Ge in ot){var It=ht.makeCalcdata(ot,Ge);return[i(ot,ht,Ge,It).vals,It]}wt=Dt?ot[Ge+"0"]:"name"in ot&&(ht.type==="category"||c(ot.name)&&["linear","log"].indexOf(ht.type)!==-1||O.isDateTime(ot.name)&&ht.type==="date")?ot.name:pt;for(var qt=ht.type==="multicategory"?ht.r2c_just_indices(wt):ht.d2c(wt,0,ot[Ge+"calendar"]),en=ot._length,Gt=new Array(en),Ct=0;CtU.uf};if(R._hasPreCompStats){var ce=R[C],de=function(ot){return E.d2c((R[ot]||[])[M])},ve=1/0,ye=-1/0;for(M=0;M=U.q1&&U.q3>=U.med){var Se=de("lowerfence");U.lf=Se!==w&&Se<=U.q1?Se:m(U,te,W);var Te=de("upperfence");U.uf=Te!==w&&Te>=U.q3?Te:v(U,te,W);var Pe=de("mean");U.mean=Pe!==w?Pe:W?O.mean(te,W):(U.q1+U.q3)/2;var Ie=de("sd");U.sd=Pe!==w&&Ie>=0?Ie:W?O.stdev(te,W,U.mean):U.q3-U.q1,U.lo=_(U),U.uo=S(U);var ze=de("notchspan");ze=ze!==w&&ze>0?ze:A(U,W),U.ln=U.med-ze,U.un=U.med+ze;var De=U.lf,He=U.uf;R.boxpoints&&te.length&&(De=Math.min(De,te[0]),He=Math.max(He,te[W-1])),R.notched&&(De=Math.min(De,U.ln),He=Math.max(He,U.un)),U.min=De,U.max=He}else{var Ve;O.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+U.q1,"median = "+U.med,"q3 = "+U.q3].join(` +`)),Ve=U.med!==w?U.med:U.q1!==w?U.q3!==w?(U.q1+U.q3)/2:U.q1:U.q3!==w?U.q3:0,U.med=Ve,U.q1=U.q3=Ve,U.lf=U.uf=Ve,U.mean=U.sd=Ve,U.ln=U.un=Ve,U.min=U.max=Ve}ve=Math.min(ve,U.min),ye=Math.max(ye,U.max),U.pts2=X.filter(ae),Q.push(U)}}R._extremes[E._id]=b.findExtremes(E,[ve,ye],{padded:!0})}else{var $e=E.makeCalcdata(R,C),Oe=function(ot,Ge){for(var ht=ot.length,pt=new Array(ht+1),wt=0;wt=0&&We0){var Ne,je;(U={}).pos=U[D]=he[M],X=U.pts=Le[M].sort(u),W=(te=U[C]=X.map(h)).length,U.min=te[0],U.max=te[W-1],U.mean=O.mean(te,W),U.sd=O.stdev(te,W,U.mean)*R.sdmultiple,U.med=O.interp(te,.5),W%2&&(tt||Ee)?(tt?(Ne=te.slice(0,W/2),je=te.slice(W/2+1)):Ee&&(Ne=te.slice(0,W/2+1),je=te.slice(W/2)),U.q1=O.interp(Ne,.5),U.q3=O.interp(je,.5)):(U.q1=O.interp(te,.25),U.q3=O.interp(te,.75)),U.lf=m(U,te,W),U.uf=v(U,te,W),U.lo=_(U),U.uo=S(U);var nt=A(U,W);U.ln=U.med-nt,U.un=U.med+nt,Ue=Math.min(Ue,U.ln),Ze=Math.max(Ze,U.un),U.pts2=X.filter(ae),Q.push(U)}R.notched&&O.isTypedArray($e)&&($e=Array.from($e)),R._extremes[E._id]=b.findExtremes(E,R.notched?$e.concat([Ue,Ze]):$e,{padded:!0})}return function(ot,Ge){if(O.isArrayOrTypedArray(Ge.selectedpoints))for(var ht=0;ht0?(Q[0].t={num:I[j],dPos:se,posLetter:D,valLetter:C,labels:{med:y(x,"median:"),min:y(x,"min:"),q1:y(x,"q1:"),q3:y(x,"q3:"),max:y(x,"max:"),mean:R.boxmean==="sd"||R.sizemode==="sd"?y(x,"mean ± σ:").replace("σ",R.sdmultiple===1?"σ":R.sdmultiple+"σ"):y(x,"mean:"),lf:y(x,"lower fence:"),uf:y(x,"upper fence:")}},I[j]++,Q):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function a(x,R,M){for(var T in p)O.isArrayOrTypedArray(R[T])&&(Array.isArray(M)?O.isArrayOrTypedArray(R[T][M[0]])&&(x[p[T]]=R[T][M[0]][M[1]]):x[p[T]]=R[T][M])}function u(x,R){return x.v-R.v}function h(x){return x.v}function m(x,R,M){return M===0?x.q1:Math.min(x.q1,R[Math.min(O.findBin(2.5*x.q1-1.5*x.q3,R,!0)+1,M-1)])}function v(x,R,M){return M===0?x.q3:Math.max(x.q3,R[Math.max(O.findBin(2.5*x.q3-1.5*x.q1,R),0)])}function _(x){return 4*x.q1-3*x.q3}function S(x){return 4*x.q3-3*x.q1}function A(x,R){return R===0?0:1.57*(x.q3-x.q1)/Math.sqrt(R)}},96404:function(d,l,n){var c=n(54460),b=n(3400),i=n(71888).getAxisGroup,O=["v","h"];function w(y,p,a,u){var h,m,v,_=p.calcdata,S=p._fullLayout,A=u._id,x=A.charAt(0),R=[],M=0;for(h=0;h1,D=1-S[y+"gap"],k=1-S[y+"groupgap"];for(h=0;h0){var _e=X.pointpos,Se=X.jitter,Te=X.marker.size/2,Pe=0;_e+Se>=0&&((Pe=ve*(_e+Se))>j?(ye=!0,ce=Te,se=Pe):Pe>me&&(ce=Te,se=j)),Pe<=j&&(se=j);var Ie=0;_e-Se<=0&&((Ie=-ve*(_e-Se))>U?(ye=!0,de=Te,ae=Ie):Ie>he&&(de=Te,ae=U)),Ie<=U&&(ae=U)}else se=j,ae=U;var ze=new Array(v.length);for(m=0;m0?(L="v",D=I>0?Math.min($,z):Math.min(z)):I>0?(L="h",D=Math.min($)):D=0;if(D){m._length=D;var W=v("orientation",L);m._hasPreCompStats?W==="v"&&I===0?(v("x0",0),v("dx",1)):W==="h"&&k===0&&(v("y0",0),v("dy",1)):W==="v"&&I===0?v("x0"):W==="h"&&k===0&&v("y0"),b.getComponentMethod("calendars","handleTraceDefaults")(h,m,["x","y"],_)}else m.visible=!1}function u(h,m,v,_){var S=_.prefix,A=c.coerce2(h,m,p,"marker.outliercolor"),x=v("marker.line.outliercolor"),R="outliers";m._hasPreCompStats?R="all":(A||x)&&(R="suspectedoutliers");var M=v(S+"points",R);M?(v("jitter",M==="all"?.3:0),v("pointpos",M==="all"?-1.5:0),v("marker.symbol"),v("marker.opacity"),v("marker.size"),v("marker.angle"),v("marker.color",m.line.color),v("marker.line.color"),v("marker.line.width"),M==="suspectedoutliers"&&(v("marker.line.outliercolor",m.marker.color),v("marker.line.outlierwidth")),v("selected.marker.color"),v("unselected.marker.color"),v("selected.marker.size"),v("unselected.marker.size"),v("text"),v("hovertext")):delete m.marker;var T=v("hoveron");T!=="all"&&T.indexOf("points")===-1||v("hovertemplate"),c.coerceSelectionMarkerOpacity(m,v)}d.exports={supplyDefaults:function(h,m,v,_){function S(D,k){return c.coerce(h,m,p,D,k)}if(a(h,m,S,_),m.visible!==!1){O(h,m,_,S),S("xhoverformat"),S("yhoverformat");var A=m._hasPreCompStats;A&&(S("lowerfence"),S("upperfence")),S("line.color",(h.marker||{}).color||v),S("line.width"),S("fillcolor",i.addOpacity(m.line.color,.5));var x=!1;if(A){var R=S("mean"),M=S("sd");R&&R.length&&(x=!0,M&&M.length&&(x="sd"))}S("whiskerwidth");var T,E=S("sizemode");E==="quartiles"&&(T=S("boxmean",x)),S("showwhiskers",E==="quartiles"),E!=="sd"&&T!=="sd"||S("sdmultiple"),S("width"),S("quartilemethod");var C=!1;if(A){var L=S("notchspan");L&&L.length&&(C=!0)}else c.validate(h.notchwidth,p.notchwidth)&&(C=!0);S("notched",C)&&S("notchwidth"),u(h,m,S,{prefix:"box"})}},crossTraceDefaults:function(h,m){var v,_;function S(R){return c.coerce(_._input,_,p,R)}for(var A=0;AM.lo&&(te.so=!0)}return C});R.enter().append("path").classed("point",!0),R.exit().remove(),R.call(i.translatePoints,m,v)}function y(p,a,u,h){var m,v,_=a.val,S=a.pos,A=!!S.rangebreaks,x=h.bPos,R=h.bPosPxOffset||0,M=u.boxmean||(u.meanline||{}).visible;Array.isArray(h.bdPos)?(m=h.bdPos[0],v=h.bdPos[1]):(m=h.bdPos,v=h.bdPos);var T=p.selectAll("path.mean").data(u.type==="box"&&u.boxmean||u.type==="violin"&&u.box.visible&&u.meanline.visible?b.identity:[]);T.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),T.exit().remove(),T.each(function(E){var C=S.c2l(E.pos+x,!0),L=S.l2p(C-m)+R,D=S.l2p(C+v)+R,k=A?(L+D)/2:S.l2p(C)+R,I=_.c2p(E.mean,!0),z=_.c2p(E.mean-E.sd,!0),$=_.c2p(E.mean+E.sd,!0);u.orientation==="h"?c.select(this).attr("d","M"+I+","+L+"V"+D+(M==="sd"?"m0,0L"+z+","+k+"L"+I+","+L+"L"+$+","+k+"Z":"")):c.select(this).attr("d","M"+L+","+I+"H"+D+(M==="sd"?"m0,0L"+k+","+z+"L"+L+","+I+"L"+k+","+$+"Z":""))})}d.exports={plot:function(p,a,u,h){var m=p._context.staticPlot,v=a.xaxis,_=a.yaxis;b.makeTraceGroups(h,u,"trace boxes").each(function(S){var A,x,R=c.select(this),M=S[0],T=M.t,E=M.trace;T.wdPos=T.bdPos*E.whiskerwidth,E.visible!==!0||T.empty?R.remove():(E.orientation==="h"?(A=_,x=v):(A=v,x=_),O(R,{pos:A,val:x},E,T,m),w(R,{x:v,y:_},E,T),y(R,{pos:A,val:x},E,T))})},plotBoxAndWhiskers:O,plotPoints:w,plotBoxMean:y}},8264:function(d){d.exports=function(l,n){var c,b,i=l.cd,O=l.xaxis,w=l.yaxis,y=[];if(n===!1)for(c=0;c=10)return null;for(var w=1/0,y=-1/0,p=i.length,a=0;a0?Math.floor:Math.ceil,W=U>0?Math.ceil:Math.floor,K=U>0?Math.min:Math.max,oe=U>0?Math.max:Math.min,q=te(Q+X),Y=W(j-X),ee=[[v=$(Q)]];for(y=q;y*U=0;i--)O[u-i]=l[h][i],w[u-i]=n[h][i];for(y.push({x:O,y:w,bicubic:p}),i=h,O=[],w=[];i>=0;i--)O[h-i]=l[i][0],w[h-i]=n[i][0];return y.push({x:O,y:w,bicubic:a}),y}},19216:function(d,l,n){var c=n(54460),b=n(92880).extendFlat;d.exports=function(i,O,w){var y,p,a,u,h,m,v,_,S,A,x,R,M,T,E=i["_"+O],C=i[O+"axis"],L=C._gridlines=[],D=C._minorgridlines=[],k=C._boundarylines=[],I=i["_"+w],z=i[w+"axis"];C.tickmode==="array"&&(C.tickvals=E.slice());var $=i._xctrl,Q=i._yctrl,j=$[0].length,U=$.length,X=i._a.length,te=i._b.length;c.prepTicks(C),C.tickmode==="array"&&delete C.tickvals;var W=C.smoothing?3:1;function K(q){var Y,ee,me,he,se,ae,ce,de,ve,ye,_e,Se,Te=[],Pe=[],Ie={};if(O==="b")for(ee=i.b2j(q),me=Math.floor(Math.max(0,Math.min(te-2,ee))),he=ee-me,Ie.length=te,Ie.crossLength=X,Ie.xy=function(ze){return i.evalxy([],ze,ee)},Ie.dxy=function(ze,De){return i.dxydi([],ze,me,De,he)},Y=0;Y0&&(ve=i.dxydi([],Y-1,me,0,he),Te.push(se[0]+ve[0]/3),Pe.push(se[1]+ve[1]/3),ye=i.dxydi([],Y-1,me,1,he),Te.push(de[0]-ye[0]/3),Pe.push(de[1]-ye[1]/3)),Te.push(de[0]),Pe.push(de[1]),se=de;else for(Y=i.a2i(q),ae=Math.floor(Math.max(0,Math.min(X-2,Y))),ce=Y-ae,Ie.length=X,Ie.crossLength=te,Ie.xy=function(ze){return i.evalxy([],Y,ze)},Ie.dxy=function(ze,De){return i.dxydj([],ae,ze,ce,De)},ee=0;ee0&&(_e=i.dxydj([],ae,ee-1,ce,0),Te.push(se[0]+_e[0]/3),Pe.push(se[1]+_e[1]/3),Se=i.dxydj([],ae,ee-1,ce,1),Te.push(de[0]-Se[0]/3),Pe.push(de[1]-Se[1]/3)),Te.push(de[0]),Pe.push(de[1]),se=de;return Ie.axisLetter=O,Ie.axis=C,Ie.crossAxis=z,Ie.value=q,Ie.constvar=w,Ie.index=_,Ie.x=Te,Ie.y=Pe,Ie.smoothing=z.smoothing,Ie}function oe(q){var Y,ee,me,he,se,ae=[],ce=[],de={};if(de.length=E.length,de.crossLength=I.length,O==="b")for(me=Math.max(0,Math.min(te-2,q)),se=Math.min(1,Math.max(0,q-me)),de.xy=function(ve){return i.evalxy([],ve,q)},de.dxy=function(ve,ye){return i.dxydi([],ve,me,ye,se)},Y=0;YE.length-1||L.push(b(oe(p),{color:C.gridcolor,width:C.gridwidth,dash:C.griddash}));for(_=m;_E.length-1||x<0||x>E.length-1))for(R=E[a],M=E[x],y=0;yE[E.length-1]||D.push(b(K(A),{color:C.minorgridcolor,width:C.minorgridwidth,dash:C.minorgriddash}));C.startline&&k.push(b(oe(0),{color:C.startlinecolor,width:C.startlinewidth})),C.endline&&k.push(b(oe(E.length-1),{color:C.endlinecolor,width:C.endlinewidth}))}else{for(u=5e-15,m=(h=[Math.floor((E[E.length-1]-C.tick0)/C.dtick*(1+u)),Math.ceil((E[0]-C.tick0)/C.dtick/(1+u))].sort(function(q,Y){return q-Y}))[0],v=h[1],_=m;_<=v;_++)S=C.tick0+C.dtick*_,L.push(b(K(S),{color:C.gridcolor,width:C.gridwidth,dash:C.griddash}));for(_=m-1;_E[E.length-1]||D.push(b(K(A),{color:C.minorgridcolor,width:C.minorgridwidth,dash:C.minorgriddash}));C.startline&&k.push(b(K(E[0]),{color:C.startlinecolor,width:C.startlinewidth})),C.endline&&k.push(b(K(E[E.length-1]),{color:C.endlinecolor,width:C.endlinewidth}))}}},14724:function(d,l,n){var c=n(54460),b=n(92880).extendFlat;d.exports=function(i,O){var w,y,p,a=O._labels=[],u=O._gridlines;for(w=0;wi.length&&(b=b.slice(0,i.length)):b=[],w=0;w90&&(v-=180,p=-p),{angle:v,flip:p,p:l.c2p(b,n,c),offsetMultplier:a}}},164:function(d,l,n){var c=n(33428),b=n(43616),i=n(87072),O=n(53416),w=n(15584),y=n(72736),p=n(3400),a=p.strRotate,u=p.strTranslate,h=n(84284);function m(x,R,M,T,E,C,L){var D="const-"+E+"-lines",k=M.selectAll("."+D).data(C);k.enter().append("path").classed(D,!0).style("vector-effect",L?"none":"non-scaling-stroke"),k.each(function(I){var z=I,$=z.x,Q=z.y,j=i([],$,x.c2p),U=i([],Q,R.c2p),X="M"+O(j,U,z.smoothing);c.select(this).attr("d",X).style("stroke-width",z.width).style("stroke",z.color).style("stroke-dasharray",b.dashStyle(z.dash,z.width)).style("fill","none")}),k.exit().remove()}function v(x,R,M,T,E,C,L,D){var k=C.selectAll("text."+D).data(L);k.enter().append("text").classed(D,!0);var I=0,z={};return k.each(function($,Q){var j;if($.axis.tickangle==="auto")j=w(T,R,M,$.xy,$.dxy);else{var U=($.axis.tickangle+180)*Math.PI/180;j=w(T,R,M,$.xy,[Math.cos(U),Math.sin(U)])}Q||(z={angle:j.angle,flip:j.flip});var X=($.endAnchor?-1:1)*j.flip,te=c.select(this).attr({"text-anchor":X>0?"start":"end","data-notex":1}).call(b.font,$.font).text($.text).call(y.convertToTspans,x),W=b.bBox(this);te.attr("transform",u(j.p[0],j.p[1])+a(j.angle)+u($.axis.labelpadding*X,.3*W.height)),I=Math.max(I,W.width+$.axis.labelpadding)}),k.exit().remove(),z.maxExtent=I,z}d.exports=function(x,R,M,T){var E=x._context.staticPlot,C=R.xaxis,L=R.yaxis,D=x._fullLayout._clips;p.makeTraceGroups(T,M,"trace").each(function(k){var I=c.select(this),z=k[0],$=z.trace,Q=$.aaxis,j=$.baxis,U=p.ensureSingle(I,"g","minorlayer"),X=p.ensureSingle(I,"g","majorlayer"),te=p.ensureSingle(I,"g","boundarylayer"),W=p.ensureSingle(I,"g","labellayer");I.style("opacity",$.opacity),m(C,L,X,0,"a",Q._gridlines,!0),m(C,L,X,0,"b",j._gridlines,!0),m(C,L,U,0,"a",Q._minorgridlines,!0),m(C,L,U,0,"b",j._minorgridlines,!0),m(C,L,te,0,"a-boundary",Q._boundarylines,E),m(C,L,te,0,"b-boundary",j._boundarylines,E);var K=v(x,C,L,$,0,W,Q._labels,"a-label"),oe=v(x,C,L,$,0,W,j._labels,"b-label");(function(q,Y,ee,me,he,se,ae,ce){var de,ve,ye,_e,Se=p.aggNums(Math.min,null,ee.a),Te=p.aggNums(Math.max,null,ee.a),Pe=p.aggNums(Math.min,null,ee.b),Ie=p.aggNums(Math.max,null,ee.b);de=.5*(Se+Te),ve=Pe,ye=ee.ab2xy(de,ve,!0),_e=ee.dxyda_rough(de,ve),ae.angle===void 0&&p.extendFlat(ae,w(ee,he,se,ye,ee.dxydb_rough(de,ve))),A(q,Y,ee,0,ye,_e,ee.aaxis,he,se,ae,"a-title"),de=Se,ve=.5*(Pe+Ie),ye=ee.ab2xy(de,ve,!0),_e=ee.dxydb_rough(de,ve),ce.angle===void 0&&p.extendFlat(ce,w(ee,he,se,ye,ee.dxyda_rough(de,ve))),A(q,Y,ee,0,ye,_e,ee.baxis,he,se,ce,"b-title")})(x,W,$,0,C,L,K,oe),function(q,Y,ee,me,he){var se,ae,ce,de,ve=ee.select("#"+q._clipPathId);ve.size()||(ve=ee.append("clipPath").classed("carpetclip",!0));var ye=p.ensureSingle(ve,"path","carpetboundary"),_e=Y.clipsegments,Se=[];for(de=0;de<_e.length;de++)se=_e[de],ae=i([],se.x,me.c2p),ce=i([],se.y,he.c2p),Se.push(O(ae,ce,se.bicubic));var Te="M"+Se.join("L")+"Z";ve.attr("id",q._clipPathId),ye.attr("d",Te)}($,z,D,C,L)})};var _=h.LINE_SPACING,S=(1-h.MID_SHIFT)/_+1;function A(x,R,M,T,E,C,L,D,k,I,z){var $=[];L.title.text&&$.push(L.title.text);var Q=R.selectAll("text."+z).data($),j=I.maxExtent;Q.enter().append("text").classed(z,!0),Q.each(function(){var U=w(M,D,k,E,C);["start","both"].indexOf(L.showticklabels)===-1&&(j=0);var X=L.title.font.size;j+=X+L.title.offset;var te=(I.angle+(I.flip<0?180:0)-U.angle+450)%360,W=te>90&&te<270,K=c.select(this);K.text(L.title.text).call(y.convertToTspans,x),W&&(j=(-y.lineCount(K)+S)*_*X-j),K.attr("transform",u(U.p[0],U.p[1])+a(U.angle)+u(0,j)).attr("text-anchor","middle").call(b.font,L.title.font)}),Q.exit().remove()}},81e3:function(d,l,n){var c=n(24588),b=n(14952).findBin,i=n(30180),O=n(29056),w=n(26435),y=n(24464);d.exports=function(p){var a=p._a,u=p._b,h=a.length,m=u.length,v=p.aaxis,_=p.baxis,S=a[0],A=a[h-1],x=u[0],R=u[m-1],M=a[a.length-1]-a[0],T=u[u.length-1]-u[0],E=M*c.RELATIVE_CULL_TOLERANCE,C=T*c.RELATIVE_CULL_TOLERANCE;S-=E,A+=E,x-=C,R+=C,p.isVisible=function(L,D){return L>S&&Lx&&DA||DR},p.setScale=function(){var L=p._x,D=p._y,k=i(p._xctrl,p._yctrl,L,D,v.smoothing,_.smoothing);p._xctrl=k[0],p._yctrl=k[1],p.evalxy=O([p._xctrl,p._yctrl],h,m,v.smoothing,_.smoothing),p.dxydi=w([p._xctrl,p._yctrl],v.smoothing,_.smoothing),p.dxydj=y([p._xctrl,p._yctrl],v.smoothing,_.smoothing)},p.i2a=function(L){var D=Math.max(0,Math.floor(L[0]),h-2),k=L[0]-D;return(1-k)*a[D]+k*a[D+1]},p.j2b=function(L){var D=Math.max(0,Math.floor(L[1]),h-2),k=L[1]-D;return(1-k)*u[D]+k*u[D+1]},p.ij2ab=function(L){return[p.i2a(L[0]),p.j2b(L[1])]},p.a2i=function(L){var D=Math.max(0,Math.min(b(L,a),h-2)),k=a[D],I=a[D+1];return Math.max(0,Math.min(h-1,D+(L-k)/(I-k)))},p.b2j=function(L){var D=Math.max(0,Math.min(b(L,u),m-2)),k=u[D],I=u[D+1];return Math.max(0,Math.min(m-1,D+(L-k)/(I-k)))},p.ab2ij=function(L){return[p.a2i(L[0]),p.b2j(L[1])]},p.i2c=function(L,D){return p.evalxy([],L,D)},p.ab2xy=function(L,D,k){if(!k&&(La[h-1]|Du[m-1]))return[!1,!1];var I=p.a2i(L),z=p.b2j(D),$=p.evalxy([],I,z);if(k){var Q,j,U,X,te=0,W=0,K=[];La[h-1]?(Q=h-2,j=1,te=(L-a[h-1])/(a[h-1]-a[h-2])):j=I-(Q=Math.max(0,Math.min(h-2,Math.floor(I)))),Du[m-1]?(U=m-2,X=1,W=(D-u[m-1])/(u[m-1]-u[m-2])):X=z-(U=Math.max(0,Math.min(m-2,Math.floor(z)))),te&&(p.dxydi(K,Q,U,j,X),$[0]+=K[0]*te,$[1]+=K[1]*te),W&&(p.dxydj(K,Q,U,j,X),$[0]+=K[0]*W,$[1]+=K[1]*W)}return $},p.c2p=function(L,D,k){return[D.c2p(L[0]),k.c2p(L[1])]},p.p2x=function(L,D,k){return[D.p2c(L[0]),k.p2c(L[1])]},p.dadi=function(L){var D=Math.max(0,Math.min(a.length-2,L));return a[D+1]-a[D]},p.dbdj=function(L){var D=Math.max(0,Math.min(u.length-2,L));return u[D+1]-u[D]},p.dxyda=function(L,D,k,I){var z=p.dxydi(null,L,D,k,I),$=p.dadi(L,k);return[z[0]/$,z[1]/$]},p.dxydb=function(L,D,k,I){var z=p.dxydj(null,L,D,k,I),$=p.dbdj(D,I);return[z[0]/$,z[1]/$]},p.dxyda_rough=function(L,D,k){var I=M*(k||.1),z=p.ab2xy(L+I,D,!0),$=p.ab2xy(L-I,D,!0);return[.5*(z[0]-$[0])/I,.5*(z[1]-$[1])/I]},p.dxydb_rough=function(L,D,k){var I=T*(k||.1),z=p.ab2xy(L,D+I,!0),$=p.ab2xy(L,D-I,!0);return[.5*(z[0]-$[0])/I,.5*(z[1]-$[1])/I]},p.dpdx=function(L){return L._m},p.dpdy=function(L){return L._m}}},51512:function(d,l,n){var c=n(3400);d.exports=function(b,i,O){var w,y,p,a=[],u=[],h=b[0].length,m=b.length;function v(q,Y){var ee,me=0,he=0;return q>0&&(ee=b[Y][q-1])!==void 0&&(he++,me+=ee),q0&&(ee=b[Y-1][q])!==void 0&&(he++,me+=ee),Y0&&y0&&w1e-5);return c.log("Smoother converged to",I,"after",z,"iterations"),b}},86411:function(d,l,n){var c=n(3400).isArray1D;d.exports=function(b,i,O){var w=O("x"),y=w&&w.length,p=O("y"),a=p&&p.length;if(!y&&!a)return!1;if(i._cheater=!w,y&&!c(w)||a&&!c(p))i._length=null;else{var u=y?w.length:1/0;a&&(u=Math.min(u,p.length)),i.a&&i.a.length&&(u=Math.min(u,i.a.length)),i.b&&i.b.length&&(u=Math.min(u,i.b.length)),i._length=u}return!0}},83372:function(d,l,n){var c=n(21776).Ks,b=n(6096),i=n(49084),O=n(45464),w=n(22548).defaultLine,y=n(92880).extendFlat,p=b.marker.line;d.exports=y({locations:{valType:"data_array",editType:"calc"},locationmode:b.locationmode,z:{valType:"data_array",editType:"calc"},geojson:y({},b.geojson,{}),featureidkey:b.featureidkey,text:y({},b.text,{}),hovertext:y({},b.hovertext,{}),marker:{line:{color:y({},p.color,{dflt:w}),width:y({},p.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:b.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:b.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:y({},O.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:c(),showlegend:y({},O.showlegend,{dflt:!1})},i("",{cLetter:"z",editTypeOverride:"calc"}))},7924:function(d,l,n){var c=n(38248),b=n(39032).BADNUM,i=n(47128),O=n(20148),w=n(4500);function y(p){return p&&typeof p=="string"}d.exports=function(p,a){var u,h=a._length,m=new Array(h);u=a.geojson?function(x){return y(x)||c(x)}:y;for(var v=0;v")}}(O,v,p),[O]}},54272:function(d,l,n){d.exports={attributes:n(83372),supplyDefaults:n(30972),colorbar:n(96288),calc:n(7924),calcGeoJSON:n(88364).calcGeoJSON,plot:n(88364).plot,style:n(7947).style,styleOnSelect:n(7947).styleOnSelect,hoverPoints:n(69224),eventData:n(52428),selectPoints:n(17328),moduleType:"trace",name:"choropleth",basePlotModule:n(10816),categories:["geo","noOpacity","showLegend"],meta:{}}},88364:function(d,l,n){var c=n(33428),b=n(3400),i=n(27144),O=n(59972).getTopojsonFeatures,w=n(19280).findExtremes,y=n(7947).style;d.exports={calcGeoJSON:function(p,a){for(var u=p[0].trace,h=a[u.geo],m=h._subplot,v=u.locationmode,_=u._length,S=v==="geojson-id"?i.extractTraceFeature(p):O(u,m.topojson),A=[],x=[],R=0;R<_;R++){var M=p[R],T=v==="geojson-id"?M.fOut:i.locationToFeature(v,M.loc,S);if(T){M.geojson=T,M.ct=T.properties.ct,M._polygons=i.feature2polygons(T);var E=i.computeBbox(T);A.push(E[0],E[2]),x.push(E[1],E[3])}else M.geojson=null}if(h.fitbounds==="geojson"&&v==="geojson-id"){var C=i.computeBbox(i.getTraceGeojson(u));A=[C[0],C[2]],x=[C[1],C[3]]}var L={padded:!0};u._extremes.lon=w(h.lonaxis._ax,A,L),u._extremes.lat=w(h.lataxis._ax,x,L)},plot:function(p,a,u){var h=a.layers.backplot.select(".choroplethlayer");b.makeTraceGroups(h,u,"trace choropleth").each(function(m){var v=c.select(this).selectAll("path.choroplethlocation").data(b.identity);v.enter().append("path").classed("choroplethlocation",!0),v.exit().remove(),y(p,m)})}}},17328:function(d){d.exports=function(l,n){var c,b,i,O,w,y=l.cd,p=l.xaxis,a=l.yaxis,u=[];if(n===!1)for(c=0;c=0;O--){var w=i[O].id;if(typeof w=="string"&&w.indexOf("water")===0){for(var y=O+1;y=0;a--)y.removeLayer(p[a][1])},w.dispose=function(){var y=this.subplot.map;this._removeLayers(),y.removeSource(this.sourceId)},d.exports=function(y,p){var a=p[0].trace,u=new O(y,a.uid),h=u.sourceId,m=c(p),v=u.below=y.belowLookup["trace-"+a.uid];return y.map.addSource(h,{type:"geojson",data:m.geojson}),u._addLayers(m,v),p[0].trace._glTrace=u,u}},86040:function(d,l,n){var c=n(49084),b=n(29736).axisHoverFormat,i=n(21776).Ks,O=n(52948),w=n(45464),y=n(92880).extendFlat,p={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"},{keys:["norm"]}),uhoverformat:b("u",1),vhoverformat:b("v",1),whoverformat:b("w",1),xhoverformat:b("x"),yhoverformat:b("y"),zhoverformat:b("z"),showlegend:y({},w.showlegend,{dflt:!1})};y(p,c("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"})),["opacity","lightposition","lighting"].forEach(function(a){p[a]=O[a]}),p.hoverinfo=y({},w.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),p.transforms=void 0,d.exports=p},83344:function(d,l,n){var c=n(47128);d.exports=function(b,i){for(var O=i.u,w=i.v,y=i.w,p=Math.min(i.x.length,i.y.length,i.z.length,O.length,w.length,y.length),a=-1/0,u=1/0,h=0;hw.level||w.starts.length&&O===w.level)}break;case"constraint":if(b.prefixBoundary=!1,b.edgepaths.length)return;var y=b.x.length,p=b.y.length,a=-1/0,u=1/0;for(c=0;c":v>a&&(b.prefixBoundary=!0);break;case"<":(va||b.starts.length&&m===u)&&(b.prefixBoundary=!0);break;case"][":h=Math.min(v[0],v[1]),m=Math.max(v[0],v[1]),ha&&(b.prefixBoundary=!0)}}}},55296:function(d,l,n){var c=n(8932),b=n(41076),i=n(46960);d.exports={min:"zmin",max:"zmax",calc:function(O,w,y){var p=w.contours,a=w.line,u=p.size||1,h=p.coloring,m=b(w,{isColorbar:!0});if(h==="heatmap"){var v=c.extractOpts(w);y._fillgradient=v.reversescale?c.flipScale(v.colorscale):v.colorscale,y._zrange=[v.min,v.max]}else h==="fill"&&(y._fillcolor=m);y._line={color:h==="lines"?m:a.color,width:p.showlines!==!1?a.width:0,dash:a.dash},y._levels={start:p.start,end:i(p),size:u}}}},93252:function(d){d.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},95536:function(d,l,n){var c=n(38248),b=n(17428),i=n(76308),O=i.addOpacity,w=i.opacity,y=n(69104),p=n(3400).isArrayOrTypedArray,a=y.CONSTRAINT_REDUCTION,u=y.COMPARISON_OPS2;d.exports=function(h,m,v,_,S,A){var x,R,M,T=m.contours,E=v("contours.operation");T._operation=a[E],function(C,L){var D;u.indexOf(L.operation)===-1?(C("contours.value",[0,1]),p(L.value)?L.value.length>2?L.value=L.value.slice(2):L.length===0?L.value=[0,1]:L.length<2?(D=parseFloat(L.value[0]),L.value=[D,D+1]):L.value=[parseFloat(L.value[0]),parseFloat(L.value[1])]:c(L.value)&&(D=parseFloat(L.value),L.value=[D,D+1])):(C("contours.value",0),c(L.value)||(p(L.value)?L.value=parseFloat(L.value[0]):L.value=0))}(v,T),E==="="?x=T.showlines=!0:(x=v("contours.showlines"),M=v("fillcolor",O((h.line||{}).color||S,.5))),x&&(R=v("line.color",M&&w(M)?O(m.fillcolor,1):S),v("line.width",2),v("line.dash")),v("line.smoothing"),b(v,_,R,A)}},3212:function(d,l,n){var c=n(69104),b=n(38248);function i(y,p){var a,u=Array.isArray(p);function h(m){return b(m)?+m:null}return c.COMPARISON_OPS2.indexOf(y)!==-1?a=h(u?p[0]:p):c.INTERVAL_OPS.indexOf(y)!==-1?a=u?[h(p[0]),h(p[1])]:[h(p),h(p)]:c.SET_OPS.indexOf(y)!==-1&&(a=u?p.map(h):[h(p)]),a}function O(y){return function(p){p=i(y,p);var a=Math.min(p[0],p[1]),u=Math.max(p[0],p[1]);return{start:a,end:u,size:u-a}}}function w(y){return function(p){return{start:p=i(y,p),end:1/0,size:1/0}}}d.exports={"[]":O("[]"),"][":O("]["),">":w(">"),"<":w("<"),"=":w("=")}},84952:function(d){d.exports=function(l,n,c,b){var i=b("contours.start"),O=b("contours.end"),w=i===!1||O===!1,y=c("contours.size");!(w?n.autocontour=!0:c("autocontour",!1))&&y||c("ncontours")}},82172:function(d,l,n){var c=n(3400);function b(i){return c.extendFlat({},i,{edgepaths:c.extendDeep([],i.edgepaths),paths:c.extendDeep([],i.paths),starts:c.extendDeep([],i.starts)})}d.exports=function(i,O){var w,y,p,a=function(m){return m.reverse()},u=function(m){return m};switch(O){case"=":case"<":return i;case">":for(i.length!==1&&c.warn("Contour data invalid for the specified inequality operation."),y=i[0],w=0;w1e3){c.warn("Too many contours, clipping at 1000",O);break}return u}},46960:function(d){d.exports=function(l){return l.end+l.size/1e6}},88748:function(d,l,n){var c=n(3400),b=n(93252);function i(y,p,a,u){return Math.abs(y[0]-p[0])20&&ye?ve===208||ve===1114?Se=_e[0]===0?1:-1:Te=_e[1]===0?1:-1:b.BOTTOMSTART.indexOf(ve)!==-1?Te=1:b.LEFTSTART.indexOf(ve)!==-1?Se=1:b.TOPSTART.indexOf(ve)!==-1?Te=-1:Se=-1,[Se,Te]}(_,a,p),A=[w(y,p,[-S[0],-S[1]])],x=y.z.length,R=y.z[0].length,M=p.slice(),T=S.slice();for(m=0;m<1e4;m++){if(_>20?(_=b.CHOOSESADDLE[_][(S[0]||S[1])<0?0:1],y.crossings[v]=b.SADDLEREMAINDER[_]):delete y.crossings[v],!(S=b.NEWDELTA[_])){c.log("Found bad marching index:",_,p,y.level);break}A.push(w(y,p,S)),p[0]+=S[0],p[1]+=S[1],v=p.join(","),i(A[A.length-1],A[A.length-2],u,h)&&A.pop();var E=S[0]&&(p[0]<0||p[0]>R-2)||S[1]&&(p[1]<0||p[1]>x-2);if(p[0]===M[0]&&p[1]===M[1]&&S[0]===T[0]&&S[1]===T[1]||a&&E)break;_=y.crossings[v]}m===1e4&&c.log("Infinite loop in contour?");var C,L,D,k,I,z,$,Q,j,U,X,te,W,K,oe,q=i(A[0],A[A.length-1],u,h),Y=0,ee=.2*y.smoothing,me=[],he=0;for(m=1;m=he;m--)if((C=me[m])=he&&C+me[L]Q&&j--,y.edgepaths[j]=X.concat(A,U));break}de||(y.edgepaths[Q]=A.concat(U))}for(Q=0;Q=T)&&(y<=M&&(y=M),p>=T&&(p=T),u=Math.floor((p-y)/a)+1,h=0),_=0;_M&&(x.unshift(M),R.unshift(R[0])),x[x.length-1]i?0:1)+(O[0][1]>i?0:2)+(O[1][1]>i?0:4)+(O[1][0]>i?0:8);return w===5||w===10?i>(O[0][0]+O[0][1]+O[1][0]+O[1][1])/4?w===5?713:1114:w===5?104:208:w===15?0:w}d.exports=function(i){var O,w,y,p,a,u,h,m,v,_=i[0].z,S=_.length,A=_[0].length,x=S===2||A===2;for(w=0;w=0&&(L=oe,k=I):Math.abs(C[1]-L[1])<.01?Math.abs(C[1]-oe[1])<.01&&(oe[0]-C[0])*(L[0]-oe[0])>=0&&(L=oe,k=I):b.log("endpt to newendpt is not vert. or horz.",C,L,oe)}if(C=L,k>=0)break;Q+="L"+L}if(k===T.edgepaths.length){b.log("unclosed perimeter path");break}j=k,(X=U.indexOf(j)===-1)&&(j=U[0],Q+="Z")}for(j=0;jL.center?L.right-I:I-L.left)/(Q+Math.abs(Math.sin($)*k)),X=(z>L.middle?L.bottom-z:z-L.top)/(Math.abs(j)+Math.cos($)*k);if(U<1||X<1)return 1/0;var te=A.EDGECOST*(1/(U-1)+1/(X-1));te+=A.ANGLECOST*$*$;for(var W=I-Q,K=z-j,oe=I+Q,q=z+j,Y=0;Y2*A.MAXCOST)break;X&&(I/=2),z=(k=$-I/2)+1.5*I}if(U<=A.MAXCOST)return Q},l.addLabelData=function(T,E,C,L){var D=E.fontSize,k=E.width+D/3,I=Math.max(0,E.height-D/3),z=T.x,$=T.y,Q=T.theta,j=Math.sin(Q),U=Math.cos(Q),X=function(W,K){return[z+W*U-K*j,$+W*j+K*U]},te=[X(-k/2,-I/2),X(-k/2,I/2),X(k/2,I/2),X(k/2,-I/2)];C.push({text:E.text,x:z,y:$,dy:E.dy,theta:Q,level:E.level,width:k,height:I}),L.push(te)},l.drawLabels=function(T,E,C,L,D){var k=T.selectAll("text").data(E,function($){return $.text+","+$.x+","+$.y+","+$.theta});if(k.exit().remove(),k.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function($){var Q=$.x+Math.sin($.theta)*$.dy,j=$.y-Math.cos($.theta)*$.dy;c.select(this).text($.text).attr({x:Q,y:j,transform:"rotate("+180*$.theta/Math.PI+" "+Q+" "+j+")"}).call(w.convertToTspans,C)}),D){for(var I="",z=0;zy.end&&(y.start=y.end=(y.start+y.end)/2),O._input.contours||(O._input.contours={}),b.extendFlat(O._input.contours,{start:y.start,end:y.end,size:y.size}),O._input.autocontour=!0}else if(y.type!=="constraint"){var h,m=y.start,v=y.end,_=O._input.contours;m>v&&(y.start=_.start=v,v=y.end=_.end=m,m=y.start),y.size>0||(h=m===v?1:i(m,v,O.ncontours).dtick,_.size=y.size=h)}}},52440:function(d,l,n){var c=n(33428),b=n(43616),i=n(41648),O=n(41076);d.exports=function(w){var y=c.select(w).selectAll("g.contour");y.style("opacity",function(p){return p[0].trace.opacity}),y.each(function(p){var a=c.select(this),u=p[0].trace,h=u.contours,m=u.line,v=h.size||1,_=h.start,S=h.type==="constraint",A=!S&&h.coloring==="lines",x=!S&&h.coloring==="fill",R=A||x?O(u):null;a.selectAll("g.contourlevel").each(function(E){c.select(this).selectAll("path").call(b.lineGroupStyle,m.width,A?R(E.level):m.color,m.dash)});var M=h.labelfont;if(a.selectAll("g.contourlabels text").each(function(E){b.font(c.select(this),{family:M.family,size:M.size,color:M.color||(A?R(E.level):m.color)})}),S)a.selectAll("g.contourfill path").style("fill",u.fillcolor);else if(x){var T;a.selectAll("g.contourfill path").style("fill",function(E){return T===void 0&&(T=E.level),R(E.level+.5*v)}),T===void 0&&(T=_),a.selectAll("g.contourbg path").style("fill",R(T-.5*v))}}),i(w)}},97680:function(d,l,n){var c=n(27260),b=n(17428);d.exports=function(i,O,w,y,p){var a,u=w("contours.coloring"),h="";u==="fill"&&(a=w("contours.showlines")),a!==!1&&(u!=="lines"&&(h=w("line.color","#000")),w("line.width",.5),w("line.dash")),u!=="none"&&(i.showlegend!==!0&&(O.showlegend=!1),O._dfltShowLegend=!1,c(i,O,y,w,{prefix:"",cLetter:"z"})),w("line.smoothing"),b(w,y,h,p)}},37960:function(d,l,n){var c=n(83328),b=n(67104),i=n(49084),O=n(92880).extendFlat,w=b.contours;d.exports=O({carpet:{valType:"string",editType:"calc"},z:c.z,a:c.x,a0:c.x0,da:c.dx,b:c.y,b0:c.y0,db:c.dy,text:c.text,hovertext:c.hovertext,transpose:c.transpose,atype:c.xtype,btype:c.ytype,fillcolor:b.fillcolor,autocontour:b.autocontour,ncontours:b.ncontours,contours:{type:w.type,start:w.start,end:w.end,size:w.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:w.showlines,showlabels:w.showlabels,labelfont:w.labelfont,labelformat:w.labelformat,operation:w.operation,value:w.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:b.line.color,width:b.line.width,dash:b.line.dash,smoothing:b.line.smoothing,editType:"plot"},transforms:void 0},i("",{cLetter:"z",autoColorDflt:!1}))},30572:function(d,l,n){var c=n(47128),b=n(3400),i=n(2872),O=n(26136),w=n(70448),y=n(11240),p=n(35744),a=n(3252),u=n(50948),h=n(54444);d.exports=function(m,v){var _=v._carpetTrace=u(m,v);if(_&&_.visible&&_.visible!=="legendonly"){if(!v.a||!v.b){var S=m.data[_.index],A=m.data[v.index];A.a||(A.a=S.a),A.b||(A.b=S.b),a(A,v,v._defaultColor,m._fullLayout)}var x=function(R,M){var T,E,C,L,D,k,I,z=M._carpetTrace,$=z.aaxis,Q=z.baxis;$._minDtick=0,Q._minDtick=0,b.isArray1D(M.z)&&i(M,$,Q,"a","b",["z"]),T=M._a=M._a||M.a,L=M._b=M._b||M.b,T=T?$.makeCalcdata(M,"_a"):[],L=L?Q.makeCalcdata(M,"_b"):[],E=M.a0||0,C=M.da||1,D=M.b0||0,k=M.db||1,I=M._z=O(M._z||M.z,M.transpose),M._emptypoints=y(I),w(I,M._emptypoints);var j=b.maxRowLength(I),U=M.xtype==="scaled"?"":T,X=p(M,U,E,C,j,$),te=M.ytype==="scaled"?"":L,W={a:X,b:p(M,te,D,k,I.length,Q),z:I};return M.contours.type==="levels"&&M.contours.coloring!=="none"&&c(R,M,{vals:I,containerStr:"",cLetter:"z"}),[W]}(m,v);return h(v,v._z),x}}},3252:function(d,l,n){var c=n(3400),b=n(51264),i=n(37960),O=n(95536),w=n(84952),y=n(97680);d.exports=function(p,a,u,h){function m(v,_){return c.coerce(p,a,i,v,_)}if(m("carpet"),p.a&&p.b){if(!b(p,a,m,h,"a","b"))return void(a.visible=!1);m("text"),m("contours.type")==="constraint"?O(p,a,m,h,u,{hasHover:!1}):(w(p,a,m,function(v){return c.coerce2(p,a,i,v)}),y(p,a,m,h,{hasHover:!1}))}else a._defaultColor=u,a._length=null}},40448:function(d,l,n){d.exports={attributes:n(37960),supplyDefaults:n(3252),colorbar:n(55296),calc:n(30572),plot:n(94440),style:n(52440),moduleType:"trace",name:"contourcarpet",basePlotModule:n(57952),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},94440:function(d,l,n){var c=n(33428),b=n(87072),i=n(53416),O=n(43616),w=n(3400),y=n(72424),p=n(88748),a=n(23676),u=n(93252),h=n(82172),m=n(61512),v=n(56008),_=n(50948),S=n(77712);function A(M,T,E){var C=M.getPointAtLength(T),L=M.getPointAtLength(E),D=L.x-C.x,k=L.y-C.y,I=Math.sqrt(D*D+k*k);return[D/I,k/I]}function x(M){var T=Math.sqrt(M[0]*M[0]+M[1]*M[1]);return[M[0]/T,M[1]/T]}function R(M,T){var E=Math.abs(M[0]*T[0]+M[1]*T[1]);return Math.sqrt(1-E*E)/E}d.exports=function(M,T,E,C){var L=T.xaxis,D=T.yaxis;w.makeTraceGroups(C,E,"contour").each(function(k){var I=c.select(this),z=k[0],$=z.trace,Q=$._carpetTrace=_(M,$),j=M.calcdata[Q.index][0];if(Q.visible&&Q.visible!=="legendonly"){var U=z.a,X=z.b,te=$.contours,W=m(te,T,z),K=te.type==="constraint",oe=te._operation,q=K?oe==="="?"lines":"fill":te.coloring,Y=[[U[0],X[X.length-1]],[U[U.length-1],X[X.length-1]],[U[U.length-1],X[0]],[U[0],X[0]]];y(W);var ee=1e-8*(U[U.length-1]-U[0]),me=1e-8*(X[X.length-1]-X[0]);p(W,ee,me);var he,se,ae,ce,de=W;te.type==="constraint"&&(de=h(W,oe)),function(Se,Te){var Pe,Ie,ze,De,He,Ve,$e,Oe,ke;for(Pe=0;Pe=0;ce--)he=j.clipsegments[ce],se=b([],he.x,L.c2p),ae=b([],he.y,D.c2p),se.reverse(),ae.reverse(),ve.push(i(se,ae,he.bicubic));var ye="M"+ve.join("L")+"Z";(function(Se,Te,Pe,Ie,ze,De){var He,Ve,$e,Oe,ke=w.ensureSingle(Se,"g","contourbg").selectAll("path").data(De!=="fill"||ze?[]:[0]);ke.enter().append("path"),ke.exit().remove();var Le=[];for(Oe=0;Oe=0&&(wt=zt,It=qt):Math.abs(pt[1]-wt[1])=0&&(wt=zt,It=qt):w.log("endpt to newendpt is not vert. or horz.",pt,wt,zt)}if(It>=0)break;Gt+=lt(pt,wt),pt=wt}if(It===tt.edgepaths.length){w.log("unclosed perimeter path");break}ht=It,(_t=Ct.indexOf(ht)===-1)&&(ht=Ct[0],Gt+=lt(pt,wt)+"Z",pt=null)}for(ht=0;htYt&&(vt.max=Yt),vt.len=vt.max-vt.min}function Qt(Pt,tn){var Kt,fn=0,dn=.1;return(Math.abs(Pt[0]-Rt)0?+S[m]:0),v.push({type:"Feature",geometry:{type:"Point",coordinates:M},properties:T})}}var C=O.extractOpts(a),L=C.reversescale?O.flipScale(C.colorscale):C.colorscale,D=L[0][1],k=["interpolate",["linear"],["heatmap-density"],0,i.opacity(D)<1?D:i.addOpacity(D,0)];for(m=1;m=0;p--)w.removeLayer(y[p][1])},O.dispose=function(){var w=this.subplot.map;this._removeLayers(),w.removeSource(this.sourceId)},d.exports=function(w,y){var p=y[0].trace,a=new i(w,p.uid),u=a.sourceId,h=c(y),m=a.below=w.belowLookup["trace-"+p.uid];return w.map.addSource(u,{type:"geojson",data:h.geojson}),a._addLayers(h,m),a}},74248:function(d,l,n){var c=n(3400);d.exports=function(b,i){for(var O=0;O"),u.color=function(T,E){var C=T.marker,L=E.mc||C.color,D=E.mlc||C.line.color,k=E.mlw||C.line.width;return c(L)?L:c(D)&&k?D:void 0}(m,_),[u]}}},94704:function(d,l,n){d.exports={attributes:n(20088),layoutAttributes:n(7076),supplyDefaults:n(45432).supplyDefaults,crossTraceDefaults:n(45432).crossTraceDefaults,supplyLayoutDefaults:n(11631),calc:n(23096),crossTraceCalc:n(4804),plot:n(42200),style:n(44544).style,hoverPoints:n(31488),eventData:n(34580),selectPoints:n(45784),moduleType:"trace",name:"funnel",basePlotModule:n(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},7076:function(d){d.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},11631:function(d,l,n){var c=n(3400),b=n(7076);d.exports=function(i,O,w){var y=!1;function p(h,m){return c.coerce(i,O,b,h,m)}for(var a=0;a path").each(function(A){if(!A.isBlank){var x=S.marker;c.select(this).call(i.fill,A.mc||x.color).call(i.stroke,A.mlc||x.line.color).call(b.dashLine,x.line.dash,A.mlw||x.line.width).style("opacity",S.selectedpoints&&!A.selected?O:1)}}),p(_,S,a),_.selectAll(".regions").each(function(){c.select(this).selectAll("path").style("stroke-width",0).call(i.fill,S.connector.fillcolor)}),_.selectAll(".lines").each(function(){var A=S.connector.line;b.lineGroupStyle(c.select(this).selectAll("path"),A.width,A.color,A.dash)})})}}},22332:function(d,l,n){var c=n(74996),b=n(45464),i=n(86968).u,O=n(21776).Ks,w=n(21776).Gw,y=n(92880).extendFlat;d.exports={labels:c.labels,label0:c.label0,dlabel:c.dlabel,values:c.values,marker:{colors:c.marker.colors,line:{color:y({},c.marker.line.color,{dflt:null}),width:y({},c.marker.line.width,{dflt:1}),editType:"calc"},pattern:c.marker.pattern,editType:"calc"},text:c.text,hovertext:c.hovertext,scalegroup:y({},c.scalegroup,{}),textinfo:y({},c.textinfo,{flags:["label","text","value","percent"]}),texttemplate:w({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:y({},b.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:O({},{keys:["label","color","value","text","percent"]}),textposition:y({},c.textposition,{values:["inside","none"],dflt:"inside"}),textfont:c.textfont,insidetextfont:c.insidetextfont,title:{text:c.title.text,font:c.title.font,position:y({},c.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:i({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},91248:function(d,l,n){var c=n(7316);l.name="funnelarea",l.plot=function(b,i,O,w){c.plotBasePlot(l.name,b,i,O,w)},l.clean=function(b,i,O,w){c.cleanBasePlot(l.name,b,i,O,w)}},54e3:function(d,l,n){var c=n(45768);d.exports={calc:function(b,i){return c.calc(b,i)},crossTraceCalc:function(b){c.crossTraceCalc(b,{type:"funnelarea"})}}},92688:function(d,l,n){var c=n(3400),b=n(22332),i=n(86968).Q,O=n(31508).handleText,w=n(74174).handleLabelsAndValues,y=n(74174).handleMarkerDefaults;d.exports=function(p,a,u,h){function m(E,C){return c.coerce(p,a,b,E,C)}var v=m("labels"),_=m("values"),S=w(v,_),A=S.len;if(a._hasLabels=S.hasLabels,a._hasValues=S.hasValues,!a._hasLabels&&a._hasValues&&(m("label0"),m("dlabel")),A){a._length=A,y(p,a,h,m),m("scalegroup");var x,R=m("text"),M=m("texttemplate");if(M||(x=m("textinfo",Array.isArray(R)?"text+percent":"percent")),m("hovertext"),m("hovertemplate"),M||x&&x!=="none"){var T=m("textposition");O(p,a,h,m,T,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}i(a,h,m),m("title.text")&&(m("title.position"),c.coerceFont(m,"title.font",h.font)),m("aspectratio"),m("baseratio")}else a.visible=!1}},62396:function(d,l,n){d.exports={moduleType:"trace",name:"funnelarea",basePlotModule:n(91248),categories:["pie-like","funnelarea","showLegend"],attributes:n(22332),layoutAttributes:n(61280),supplyDefaults:n(92688),supplyLayoutDefaults:n(35384),calc:n(54e3).calc,crossTraceCalc:n(54e3).crossTraceCalc,plot:n(39472),style:n(62096),styleOne:n(10528),meta:{}}},61280:function(d,l,n){var c=n(85204).hiddenlabels;d.exports={hiddenlabels:c,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},35384:function(d,l,n){var c=n(3400),b=n(61280);d.exports=function(i,O){function w(y,p){return c.coerce(i,O,b,y,p)}w("hiddenlabels"),w("funnelareacolorway",O.colorway),w("extendfunnelareacolors")}},39472:function(d,l,n){var c=n(33428),b=n(43616),i=n(3400),O=i.strScale,w=i.strTranslate,y=n(72736),p=n(98184).toMoveInsideBar,a=n(82744),u=a.recordMinTextSize,h=a.clearMinTextSize,m=n(69656),v=n(37820),_=v.attachFxHandlers,S=v.determineInsideTextFont,A=v.layoutAreas,x=v.prerenderTitles,R=v.positionTitleOutside,M=v.formatSliceLabel;function T(E,C){return"l"+(C[0]-E[0])+","+(C[1]-E[1])}d.exports=function(E,C){var L=E._context.staticPlot,D=E._fullLayout;h("funnelarea",D),x(C,E),A(C,D._size),i.makeTraceGroups(D._funnelarealayer,C,"trace").each(function(k){var I=c.select(this),z=k[0],$=z.trace;(function(Q){if(Q.length){var j=Q[0],U=j.trace,X=U.aspectratio,te=U.baseratio;te>.999&&(te=.999);var W,K,oe,q=Math.pow(te,2),Y=j.vTotal,ee=Y,me=Y*q/(1-q)/Y,he=[];for(he.push($e()),K=Q.length-1;K>-1;K--)if(!(oe=Q[K]).hidden){var se=oe.v/ee;me+=se,he.push($e())}var ae=1/0,ce=-1/0;for(K=0;K-1;K--)if(!(oe=Q[K]).hidden){var He=he[De+=1][0],Ve=he[De][1];oe.TL=[-He,Ve],oe.TR=[He,Ve],oe.BL=Ie,oe.BR=ze,oe.pxmid=(Te=oe.TR,Pe=oe.BR,[.5*(Te[0]+Pe[0]),.5*(Te[1]+Pe[1])]),Ie=oe.TL,ze=oe.TR}}function $e(){var Oe,ke={x:Oe=Math.sqrt(me),y:-Oe};return[ke.x,ke.y]}})(k),I.each(function(){var Q=c.select(this).selectAll("g.slice").data(k);Q.enter().append("g").classed("slice",!0),Q.exit().remove(),Q.each(function(U,X){if(U.hidden)c.select(this).selectAll("path,g").remove();else{U.pointNumber=U.i,U.curveNumber=$.index;var te=z.cx,W=z.cy,K=c.select(this),oe=K.selectAll("path.surface").data([U]);oe.enter().append("path").classed("surface",!0).style({"pointer-events":L?"none":"all"}),K.call(_,E,k);var q="M"+(te+U.TR[0])+","+(W+U.TR[1])+T(U.TR,U.BR)+T(U.BR,U.BL)+T(U.BL,U.TL)+"Z";oe.attr("d",q),M(E,U,z);var Y=m.castOption($.textposition,U.pts),ee=K.selectAll("g.slicetext").data(U.text&&Y!=="none"?[0]:[]);ee.enter().append("g").classed("slicetext",!0),ee.exit().remove(),ee.each(function(){var me=i.ensureSingle(c.select(this),"text","",function(_e){_e.attr("data-notex",1)}),he=i.ensureUniformFontSize(E,S($,U,D.font));me.text(U.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(b.font,he).call(y.convertToTspans,E);var se,ae,ce,de=b.bBox(me.node()),ve=Math.min(U.BL[1],U.BR[1])+W,ye=Math.max(U.TL[1],U.TR[1])+W;ae=Math.max(U.TL[0],U.BL[0])+te,ce=Math.min(U.TR[0],U.BR[0])+te,(se=p(ae,ce,ve,ye,de,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"})).fontSize=he.size,u($.type,se,D),k[X].transform=se,i.setTransormAndDisplay(me,se)})}});var j=c.select(this).selectAll("g.titletext").data($.title.text?[0]:[]);j.enter().append("g").classed("titletext",!0),j.exit().remove(),j.each(function(){var U=i.ensureSingle(c.select(this),"text","",function(W){W.attr("data-notex",1)}),X=$.title.text;$._meta&&(X=i.templateString(X,$._meta)),U.text(X).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(b.font,$.title.font).call(y.convertToTspans,E);var te=R(z,D._size);U.attr("transform",w(te.x,te.y)+O(Math.min(1,te.scale))+w(te.tx,te.ty))})})})}},62096:function(d,l,n){var c=n(33428),b=n(10528),i=n(82744).resizeText;d.exports=function(O){var w=O._fullLayout._funnelarealayer.selectAll(".trace");i(O,w,"funnelarea"),w.each(function(y){var p=y[0].trace,a=c.select(this);a.style({opacity:p.opacity}),a.selectAll("path.surface").each(function(u){c.select(this).call(b,u,p,O)})})}},83328:function(d,l,n){var c=n(52904),b=n(45464),i=n(25376),O=n(29736).axisHoverFormat,w=n(21776).Ks,y=n(21776).Gw,p=n(49084),a=n(92880).extendFlat;d.exports=a({z:{valType:"data_array",editType:"calc"},x:a({},c.x,{impliedEdits:{xtype:"array"}}),x0:a({},c.x0,{impliedEdits:{xtype:"scaled"}}),dx:a({},c.dx,{impliedEdits:{xtype:"scaled"}}),y:a({},c.y,{impliedEdits:{ytype:"array"}}),y0:a({},c.y0,{impliedEdits:{ytype:"scaled"}}),dy:a({},c.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:a({},c.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:a({},c.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:a({},c.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:a({},c.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:a({},c.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:a({},c.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:O("x"),yhoverformat:O("y"),zhoverformat:O("z",1),hovertemplate:w(),texttemplate:y({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:i({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:a({},b.showlegend,{dflt:!1})},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},19512:function(d,l,n){var c=n(24040),b=n(3400),i=n(54460),O=n(1220),w=n(55480),y=n(47128),p=n(2872),a=n(26136),u=n(70448),h=n(11240),m=n(35744),v=n(39032).BADNUM;function _(S){for(var A=[],x=S.length,R=0;R1){var de=(ce[ce.length-1]-ce[0])/(ce.length-1),ve=Math.abs(de/100);for(I=0;Ive)return!1}return!0}($.rangebreaks||Q.rangebreaks)&&(k=function(ce,de,ve){for(var ye=[],_e=-1,Se=0;Se=0;p--)(a=((v[[(O=(y=_[p])[0])-1,w=y[1]]]||x)[2]+(v[[O+1,w]]||x)[2]+(v[[O,w-1]]||x)[2]+(v[[O,w+1]]||x)[2])/20)&&(u[y]=[O,w,a],_.splice(p,1),h=!0);if(!h)throw"findEmpties iterated with no new neighbors";for(y in u)v[y]=u[y],m.push(u[y])}return m.sort(function(M,T){return T[2]-M[2]})}},55512:function(d,l,n){var c=n(93024),b=n(3400),i=b.isArrayOrTypedArray,O=n(54460),w=n(8932).extractOpts;d.exports=function(y,p,a,u,h){h||(h={});var m,v,_,S,A=h.isContour,x=y.cd[0],R=x.trace,M=y.xa,T=y.ya,E=x.x,C=x.y,L=x.z,D=x.xCenter,k=x.yCenter,I=x.zmask,z=R.zhoverformat,$=E,Q=C;if(y.index!==!1){try{_=Math.round(y.index[1]),S=Math.round(y.index[0])}catch{return void b.error("Error hovering on heatmap, pointNumber must be [row,col], found:",y.index)}if(_<0||_>=L[0].length||S<0||S>L.length)return}else{if(c.inbox(p-E[0],p-E[E.length-1],0)>0||c.inbox(a-C[0],a-C[C.length-1],0)>0)return;if(A){var j;for($=[2*E[0]-E[1]],j=1;jT&&(C=Math.max(C,Math.abs(w[u][h]-M)/(E-T))))}return C}d.exports=function(w,y){var p,a=1;for(O(w,y),p=0;p.01;p++)a=O(w,y,i(a));return a>.01&&c.log("interp2d didn't converge quickly",a),w}},39096:function(d,l,n){var c=n(3400);d.exports=function(b,i){b("texttemplate");var O=c.extendFlat({},i.font,{color:"auto",size:"auto"});c.coerceFont(b,"textfont",O)}},35744:function(d,l,n){var c=n(24040),b=n(3400).isArrayOrTypedArray;d.exports=function(i,O,w,y,p,a){var u,h,m,v=[],_=c.traceIs(i,"contour"),S=c.traceIs(i,"histogram"),A=c.traceIs(i,"gl2d");if(b(O)&&O.length>1&&!S&&a.type!=="category"){var x=O.length;if(!(x<=p))return _?O.slice(0,p):O.slice(0,p+1);if(_||A)v=Array.from(O).slice(0,p);else if(p===1)v=a.type==="log"?[.5*O[0],2*O[0]]:[O[0]-.5,O[0]+.5];else if(a.type==="log"){for(v=[Math.pow(O[0],1.5)/Math.pow(O[1],.5)],m=1;m0;)U=z.c2p(ce[K]),K--;for(U0;)W=$.c2p(de[K]),K--;W=z._length||U<=0||te>=$._length||W<=0)return Y.selectAll("image").data([]).exit().remove(),void M(Y);De==="fast"?(Ve=Pe,$e=Te):(Ve=Oe,$e=ke);var Le=document.createElement("canvas");Le.width=Ve,Le.height=$e;var We,Ue,Ze=Le.getContext("2d",{willReadFrequently:!0}),Xe=m(me,{noNumericCheck:!0,returnArray:!0});De==="fast"?(We=Ie?function(Pn){return Pe-1-Pn}:y.identity,Ue=ze?function(Pn){return Te-1-Pn}:y.identity):(We=function(Pn){return y.constrain(Math.round(z.c2p(ce[Pn])-j),0,Oe)},Ue=function(Pn){return y.constrain(Math.round($.c2p(de[Pn])-te),0,ke)});var tt,Ee,Ne,je,nt=Ue(0),ot=[nt,nt],Ge=Ie?0:1,ht=ze?0:1,pt=0,wt=0,Dt=0,It=0;function qt(Pn,Yn){if(Pn!==void 0){var br=Xe(Pn);return br[0]=Math.round(br[0]),br[1]=Math.round(br[1]),br[2]=Math.round(br[2]),pt+=Yn,wt+=br[0]*Yn,Dt+=br[1]*Yn,It+=br[2]*Yn,br}return[0,0,0,0]}function en(Pn,Yn,br,dr){var Cr=Pn[br.bin0];if(Cr===void 0)return qt(void 0,1);var io,Qr=Pn[br.bin1],Wr=Yn[br.bin0],bo=Yn[br.bin1],Bn=Qr-Cr||0,hr=Wr-Cr||0;return io=Qr===void 0?bo===void 0?0:Wr===void 0?2*(bo-Cr):2*(2*bo-Wr-Cr)/3:bo===void 0?Wr===void 0?0:2*(2*Cr-Qr-Wr)/3:Wr===void 0?2*(2*bo-Qr-Cr)/3:bo+Cr-Qr-Wr,qt(Cr+br.frac*Bn+dr.frac*(hr+br.frac*io))}if(De!=="default"){var Gt,Ct=0;try{Gt=new Uint8Array(Ve*$e*4)}catch{Gt=new Array(Ve*$e*4)}if(De==="smooth"){var _t,nn,gn,bn=ve||ce,mn=ye||de,vt=new Array(bn.length),bt=new Array(mn.length),lt=new Array(Oe),yt=ve?E:T,zt=ye?E:T;for(K=0;KEn||En>$._length))for(oe=dn;oejn||jn>z._length)){var xr=a({x:In,y:er},me,L._fullLayout);xr.x=In,xr.y=er;var Sr=ee.z[K][oe];Sr===void 0?(xr.z="",xr.zLabel=""):(xr.z=Sr,xr.zLabel=w.tickText(Pt,Sr,"hover").text);var ar=ee.text&&ee.text[K]&&ee.text[K][oe];ar!==void 0&&ar!==!1||(ar=""),xr.text=ar;var Fn=y.texttemplateString(Yt,xr,L._fullLayout._d3locale,xr,me._meta||{});if(Fn){var ir=Fn.split("
    "),Wn=ir.length,Kn=0;for(q=0;q0&&(T=!0);for(var L=0;Ly){var p=y-O[b];return O[b]=y,p}}return 0},max:function(b,i,O,w){var y=w[i];if(c(y)){if(y=Number(y),!c(O[b]))return O[b]=y,y;if(O[b]p?_>O?_>1.1*b?b:_>1.1*i?i:O:_>w?w:_>y?y:p:Math.pow(10,Math.floor(Math.log(_)/Math.LN10))}function m(_,S,A,x,R,M){if(x&&_>O){var T=v(S,R,M),E=v(A,R,M),C=_===b?0:1;return T[C]!==E[C]}return Math.floor(A/_)-Math.floor(S/_)>.1}function v(_,S,A){var x=S.c2d(_,b,A).split("-");return x[0]===""&&(x.unshift(),x[0]="-"+x[0]),x}d.exports=function(_,S,A,x,R){var M,T,E=-1.1*S,C=-.1*S,L=_-C,D=A[0],k=A[1],I=Math.min(u(D+C,D+L,x,R),u(k+C,k+L,x,R)),z=Math.min(u(D+E,D+C,x,R),u(k+E,k+C,x,R));if(I>z&&zO){var $=M===b?1:6,Q=M===b?"M12":"M1";return function(j,U){var X=x.c2d(j,b,R),te=X.indexOf("-",$);te>0&&(X=X.substr(0,te));var W=x.d2c(X,0,R);if(W_.r2l(de)&&(ye=O.tickIncrement(ye,z.size,!0,T)),he.start=_.l2r(ye),ce||b.nestedProperty(v,D+".start").set(he.start)}var _e=z.end,Se=_.r2l(me.end),Te=Se!==void 0;if((z.endFound||Te)&&Se!==_.r2l(_e)){var Pe=Te?Se:b.aggNums(Math.max,null,E);he.end=_.l2r(Pe),Te||b.nestedProperty(v,D+".start").set(he.end)}var Ie="autobin"+S;return v._input[Ie]===!1&&(v._input[D]=b.extendFlat({},v[D]||{}),delete v._input[Ie],delete v[Ie]),[he,E]}d.exports={calc:function(m,v){var _,S,A,x,R=[],M=[],T=v.orientation==="h",E=O.getFromId(m,T?v.yaxis:v.xaxis),C=T?"y":"x",L={x:"y",y:"x"}[C],D=v[C+"calendar"],k=v.cumulative,I=h(m,v,E,C),z=I[0],$=I[1],Q=typeof z.size=="string",j=[],U=Q?j:z,X=[],te=[],W=[],K=0,oe=v.histnorm,q=v.histfunc,Y=oe.indexOf("density")!==-1;k.enabled&&Y&&(oe=oe.replace(/ ?density$/,""),Y=!1);var ee,me=q==="max"||q==="min"?null:0,he=y.count,se=p[oe],ae=!1,ce=function(ke){return E.r2c(ke,0,D)};for(b.isArrayOrTypedArray(v[L])&&q!=="count"&&(ee=v[L],ae=q==="avg",he=y[q]),_=ce(z.start),A=ce(z.end)+(_-O.tickIncrement(_,z.size,!1,D))/1e6;_=0&&x<_e&&(K+=he(x,_,M,ee,te),Se&&W[x].length&&ze!==$[W[x][0]]&&(Se=!1),W[x].push(_),Ie[_]=x,Te=Math.min(Te,ze-j[x]),Pe=Math.min(Pe,j[x+1]-ze))}ve.leftGap=Te,ve.rightGap=Pe,Se||(ye=function(ke,Le){return function(){var We=m._fullLayout._roundFnOpts[de];return u(We.leftGap,We.rightGap,j,E,D)(ke,Le)}}),ae&&(K=a(M,te)),se&&se(M,K,X),k.enabled&&function(ke,Le,We){var Ue,Ze,Xe;function tt(Ne){Xe=ke[Ne],ke[Ne]/=2}function Ee(Ne){Ze=ke[Ne],ke[Ne]=Xe+Ze/2,Xe+=Ze}if(We==="half")if(Le==="increasing")for(tt(0),Ue=1;Ue=0;Ue--)Ee(Ue);else if(Le==="increasing"){for(Ue=1;Ue=0;Ue--)ke[Ue]+=ke[Ue+1];We==="exclude"&&(ke.push(0),ke.shift())}}(M,k.direction,k.currentbin);var De=Math.min(R.length,M.length),He=[],Ve=0,$e=De-1;for(_=0;_=Ve;_--)if(M[_]){$e=_;break}for(_=Ve;_<=$e;_++)if(c(R[_])&&c(M[_])){var Oe={p:R[_],s:M[_],b:0};k.enabled||(Oe.pts=W[_],Se?Oe.ph0=Oe.ph1=W[_].length?$[W[_][0]]:R[_]:(v._computePh=!0,Oe.ph0=ye(j[_]),Oe.ph1=ye(j[_+1],!0))),He.push(Oe)}return He.length===1&&(He[0].width1=O.tickIncrement(He[0].p,z.size,!1,D)-He[0].p),w(He,v),b.isArrayOrTypedArray(v.selectedpoints)&&b.tagSelected(He,v,Ie),He},calcAllAutoBins:h}},73316:function(d){d.exports={eventDataKeys:["binNumber"]}},80536:function(d,l,n){var c=n(3400),b=n(79811),i=n(24040).traceIs,O=n(20011),w=n(31508).validateCornerradius,y=c.nestedProperty,p=n(71888).getAxisGroup,a=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],u=["x","y"];d.exports=function(h,m){var v,_,S,A,x,R,M,T=m._histogramBinOpts={},E=[],C={},L=[];function D(me,he){return c.coerce(v._input,v,v._module.attributes,me,he)}function k(me){return me.orientation==="v"?"x":"y"}function I(me,he,se){var ae=me.uid+"__"+se;he||(he=ae);var ce=function(_e,Se){return b.getFromTrace({_fullLayout:m},_e,Se).type}(me,se),de=me[se+"calendar"]||"",ve=T[he],ye=!0;ve&&(ce===ve.axType&&de===ve.calendar?(ye=!1,ve.traces.push(me),ve.dirs.push(se)):(he=ae,ce!==ve.axType&&c.warn(["Attempted to group the bins of trace",me.index,"set on a","type:"+ce,"axis","with bins on","type:"+ve.axType,"axis."].join(" ")),de!==ve.calendar&&c.warn(["Attempted to group the bins of trace",me.index,"set with a",de,"calendar","with bins",ve.calendar?"on a "+ve.calendar+" calendar":"w/o a set calendar"].join(" ")))),ye&&(T[he]={traces:[me],dirs:[se],axType:ce,calendar:me[se+"calendar"]||""}),me["_"+se+"bingroup"]=he}for(x=0;xj&&I.splice(j,I.length-j),Q.length>j&&Q.splice(j,Q.length-j);var U=[],X=[],te=[],W=typeof k.size=="string",K=typeof $.size=="string",oe=[],q=[],Y=W?oe:k,ee=K?q:$,me=0,he=[],se=[],ae=v.histnorm,ce=v.histfunc,de=ae.indexOf("density")!==-1,ve=ce==="max"||ce==="min"?null:0,ye=i.count,_e=O[ae],Se=!1,Te=[],Pe=[],Ie="z"in v?v.z:"marker"in v&&Array.isArray(v.marker.color)?v.marker.color:"";Ie&&ce!=="count"&&(Se=ce==="avg",ye=i[ce]);var ze=k.size,De=C(k.start),He=C(k.end)+(De-b.tickIncrement(De,ze,!1,T))/1e6;for(_=De;_=0&&A<$e&&x>=0&&x-1,flipY:X.tiling.flip.indexOf("y")>-1,orientation:X.tiling.orientation,pad:{inner:X.tiling.pad},maxDepth:X._maxDepth}).descendants(),q=1/0,Y=-1/0;oe.forEach(function(ae){var ce=ae.depth;ce>=X._maxDepth?(ae.x0=ae.x1=(ae.x0+ae.x1)/2,ae.y0=ae.y1=(ae.y0+ae.y1)/2):(q=Math.min(q,ce),Y=Math.max(Y,ce))}),A=A.data(oe,a.getPtId),X._maxVisibleLayers=isFinite(Y)?Y-q+1:0,A.enter().append("g").classed("slice",!0),I(A,m,{},[R,M],C),A.order();var ee=null;if(k&&Q){var me=a.getPtId(Q);A.each(function(ae){ee===null&&a.getPtId(ae)===me&&(ee={x0:ae.x0,x1:ae.x1,y0:ae.y0,y1:ae.y1})})}var he=function(){return ee||{x0:0,x1:R,y0:0,y1:M}},se=A;return k&&(se=se.transition().each("end",function(){var ae=c.select(this);a.setSliceCursor(ae,v,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),se.each(function(ae){ae._x0=T(ae.x0),ae._x1=T(ae.x1),ae._y0=E(ae.y0),ae._y1=E(ae.y1),ae._hoverX=T(ae.x1-X.tiling.pad),ae._hoverY=E(K?ae.y1-X.tiling.pad/2:ae.y0+X.tiling.pad/2);var ce=c.select(this),de=b.ensureSingle(ce,"path","surface",function(Se){Se.style("pointer-events",j?"none":"all")});k?de.transition().attrTween("d",function(Se){var Te=z(Se,m,he(),[R,M],{orientation:X.tiling.orientation,flipX:X.tiling.flip.indexOf("x")>-1,flipY:X.tiling.flip.indexOf("y")>-1});return function(Pe){return C(Te(Pe))}}):de.attr("d",C),ce.call(u,S,v,_,{styleOne:y,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,v,{isTransitioning:v._transitioning}),de.call(y,ae,X,v,{hovered:!1}),ae.x0===ae.x1||ae.y0===ae.y1?ae._text="":ae._text=h(ae,S,X,_,U)||"";var ve=b.ensureSingle(ce,"g","slicetext"),ye=b.ensureSingle(ve,"text","",function(Se){Se.attr("data-notex",1)}),_e=b.ensureUniformFontSize(v,a.determineTextFont(X,ae,U.font));ye.text(ae._text||" ").classed("slicetext",!0).attr("text-anchor",W?"end":te?"start":"middle").call(i.font,_e).call(O.convertToTspans,v),ae.textBB=i.bBox(ye.node()),ae.transform=L(ae,{fontSize:_e.size}),ae.transform.fontSize=_e.size,k?ye.transition().attrTween("transform",function(Se){var Te=$(Se,m,he(),[R,M]);return function(Pe){return D(Te(Pe))}}):ye.attr("transform",D(ae))}),ee}},29044:function(d,l,n){d.exports={moduleType:"trace",name:"icicle",basePlotModule:n(59564),categories:[],animatable:!0,attributes:n(97376),layoutAttributes:n(90676),supplyDefaults:n(7045),supplyLayoutDefaults:n(4304),calc:n(73876).r,crossTraceCalc:n(73876).q,plot:n(38364),style:n(47192).style,colorbar:n(5528),meta:{}}},90676:function(d){d.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},4304:function(d,l,n){var c=n(3400),b=n(90676);d.exports=function(i,O){function w(y,p){return c.coerce(i,O,b,y,p)}w("iciclecolorway",O.colorway),w("extendiciclecolors")}},25132:function(d,l,n){var c=n(74148),b=n(83024);d.exports=function(i,O,w){var y=w.flipX,p=w.flipY,a=w.orientation==="h",u=w.maxDepth,h=O[0],m=O[1];u&&(h=(i.height+1)*O[0]/Math.min(i.height+1,u),m=(i.height+1)*O[1]/Math.min(i.height+1,u));var v=c.partition().padding(w.pad.inner).size(a?[O[1],h]:[O[0],m])(i);return(a||y||p)&&b(v,O,{swapXY:a,flipX:y,flipY:p}),v}},38364:function(d,l,n){var c=n(95808),b=n(67880);d.exports=function(i,O,w,y){return c(i,O,w,y,{type:"icicle",drawDescendants:b})}},47192:function(d,l,n){var c=n(33428),b=n(76308),i=n(3400),O=n(82744).resizeText,w=n(60404);function y(p,a,u,h){var m=a.data.data,v=!a.children,_=m.i,S=i.castOption(u,_,"marker.line.color")||b.defaultLine,A=i.castOption(u,_,"marker.line.width")||0;p.call(w,a,u,h).style("stroke-width",A).call(b.stroke,S).style("opacity",v?u.leaf.opacity:null)}d.exports={style:function(p){var a=p._fullLayout._iciclelayer.selectAll(".trace");O(p,a,"icicle"),a.each(function(u){var h=c.select(this),m=u[0].trace;h.style("opacity",m.opacity),h.selectAll("path.surface").each(function(v){c.select(this).call(y,v,m,p)})})},styleOne:y}},95188:function(d,l,n){for(var c=n(45464),b=n(21776).Ks,i=n(92880).extendFlat,O=n(47797).colormodel,w=["rgb","rgba","rgba256","hsl","hsla"],y=[],p=[],a=0;a0||c.inbox(p-a.y0,p-(a.y0+a.h*u.dy),0)>0)){var v,_=Math.floor((y-a.x0)/u.dx),S=Math.floor(Math.abs(p-a.y0)/u.dy);if(u._hasZ?v=a.z[S][_]:u._hasSource&&(v=u._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(_,S,1,1).data),v){var A,x=a.hi||u.hoverinfo;if(x){var R=x.split("+");R.indexOf("all")!==-1&&(R=["color"]),R.indexOf("color")!==-1&&(A=!0)}var M,T=O.colormodel[u.colormodel],E=T.colormodel||u.colormodel,C=E.length,L=u._scaler(v),D=T.suffix,k=[];(u.hovertemplate||A)&&(k.push("["+[L[0]+D[0],L[1]+D[1],L[2]+D[2]].join(", ")),C===4&&k.push(", "+L[3]+D[3]),k.push("]"),k=k.join(""),w.extraText=E.toUpperCase()+": "+k),i(u.hovertext)&&i(u.hovertext[S])?M=u.hovertext[S][_]:i(u.text)&&i(u.text[S])&&(M=u.text[S][_]);var I=m.c2p(a.y0+(S+.5)*u.dy),z=a.x0+(_+.5)*u.dx,$=a.y0+(S+.5)*u.dy,Q="["+v.slice(0,u.colormodel.length).join(", ")+"]";return[b.extendFlat(w,{index:[S,_],x0:h.c2p(a.x0+_*u.dx),x1:h.c2p(a.x0+(_+1)*u.dx),y0:I,y1:I,color:L,xVal:z,xLabelVal:z,yVal:$,yLabelVal:$,zLabelVal:Q,text:M,hovertemplateLabels:{zLabel:Q,colorLabel:k,"color[0]Label":L[0]+D[0],"color[1]Label":L[1]+D[1],"color[2]Label":L[2]+D[2],"color[3]Label":L[3]+D[3]}})]}}}},48928:function(d,l,n){d.exports={attributes:n(95188),supplyDefaults:n(13188),calc:n(93336),plot:n(63715),style:n(28576),hoverPoints:n(24892),eventData:n(79972),moduleType:"trace",name:"image",basePlotModule:n(57952),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},63715:function(d,l,n){var c=n(33428),b=n(3400),i=b.strTranslate,O=n(9616),w=n(47797),y=n(9188),p=n(2264).STYLE;d.exports=function(a,u,h,m){var v=u.xaxis,_=u.yaxis,S=!a._context._exportedPlot&&y();b.makeTraceGroups(m,h,"im").each(function(A){var x=c.select(this),R=A[0],M=R.trace,T=(M.zsmooth==="fast"||M.zsmooth===!1&&S)&&!M._hasZ&&M._hasSource&&v.type==="linear"&&_.type==="linear";M._realImage=T;var E,C,L,D,k,I,z=R.z,$=R.x0,Q=R.y0,j=R.w,U=R.h,X=M.dx,te=M.dy;for(I=0;E===void 0&&I0;)C=v.c2p($+I*X),I--;for(I=0;D===void 0&&I0;)k=_.c2p(Q+I*te),I--;Cee[0];if(me||he){var se=E+W/2,ae=D+K/2;q+="transform:"+i(se+"px",ae+"px")+"scale("+(me?-1:1)+","+(he?-1:1)+")"+i(-se+"px",-ae+"px")+";"}}oe.attr("style",q);var ce=new Promise(function(ve){if(M._hasZ)ve();else if(M._hasSource)if(M._canvas&&M._canvas.el.width===j&&M._canvas.el.height===U&&M._canvas.source===M.source)ve();else{var ye=document.createElement("canvas");ye.width=j,ye.height=U;var _e=ye.getContext("2d",{willReadFrequently:!0});M._image=M._image||new Image;var Se=M._image;Se.onload=function(){_e.drawImage(Se,0,0),M._canvas={el:ye,source:M.source},ve()},Se.setAttribute("src",M.source)}}).then(function(){var ve,ye;if(M._hasZ)ye=de(function(Se,Te){var Pe=z[Te][Se];return b.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),ve=ye.toDataURL("image/png");else if(M._hasSource)if(T)ve=M.source;else{var _e=M._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,j,U).data;ye=de(function(Se,Te){var Pe=4*(Te*j+Se);return[_e[Pe],_e[Pe+1],_e[Pe+2],_e[Pe+3]]}),ve=ye.toDataURL("image/png")}oe.attr({"xlink:href":ve,height:K,width:W,x:E,y:D})});a._promises.push(ce)}function de(ve){var ye=document.createElement("canvas");ye.width=W,ye.height=K;var _e,Se=ye.getContext("2d",{willReadFrequently:!0}),Te=function(Le){return b.constrain(Math.round(v.c2p($+Le*X)-E),0,W)},Pe=function(Le){return b.constrain(Math.round(_.c2p(Q+Le*te)-D),0,K)},Ie=w.colormodel[M.colormodel],ze=Ie.colormodel||M.colormodel,De=Ie.fmt;for(I=0;I0}function C(z){z.each(function($){x.stroke(c.select(this),$.line.color)}).each(function($){x.fill(c.select(this),$.color)}).style("stroke-width",function($){return $.line.width})}function L(z,$,Q){var j=z._fullLayout,U=O.extendFlat({type:"linear",ticks:"outside",range:Q,showline:!0},$),X={type:"linear",_id:"x"+$._id},te={letter:"x",font:j.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function W(K,oe){return O.coerce(U,X,A,K,oe)}return _(U,X,W,te,j),S(U,X,W,te),X}function D(z,$,Q){return[Math.min($/z.width,Q/z.height),z,$+"x"+Q]}function k(z,$,Q,j){var U=document.createElementNS("http://www.w3.org/2000/svg","text"),X=c.select(U);return X.text(z).attr("x",0).attr("y",0).attr("text-anchor",Q).attr("data-unformatted",z).call(m.convertToTspans,j).call(u.font,$),u.bBox(X.node())}function I(z,$,Q,j,U,X){var te="_cache"+$;z[te]&&z[te].key===U||(z[te]={key:U,value:Q});var W=O.aggNums(X,null,[z[te].value,j],2);return z[te].value=W,W}d.exports=function(z,$,Q,j){var U,X=z._fullLayout;E(Q)&&j&&(U=j()),O.makeTraceGroups(X._indicatorlayer,$,"trace").each(function(te){var W,K,oe,q,Y,ee=te[0].trace,me=c.select(this),he=ee._hasGauge,se=ee._isAngular,ae=ee._isBullet,ce=ee.domain,de={w:X._size.w*(ce.x[1]-ce.x[0]),h:X._size.h*(ce.y[1]-ce.y[0]),l:X._size.l+X._size.w*ce.x[0],r:X._size.r+X._size.w*(1-ce.x[1]),t:X._size.t+X._size.h*(1-ce.y[1]),b:X._size.b+X._size.h*ce.y[0]},ve=de.l+de.w/2,ye=de.t+de.h/2,_e=Math.min(de.w/2,de.h),Se=h.innerRadius*_e,Te=ee.align||"center";if(K=ye,he){if(se&&(W=ve,K=ye+_e/2,oe=function(Oe){return function(ke,Le){return[Le/Math.sqrt(ke.width/2*(ke.width/2)+ke.height*ke.height),ke,Le]}(Oe,.9*Se)}),ae){var Pe=h.bulletPadding,Ie=1-h.bulletNumberDomainSize+Pe;W=de.l+(Ie+(1-Ie)*M[Te])*de.w,oe=function(Oe){return D(Oe,(h.bulletNumberDomainSize-Pe)*de.w,de.h)}}}else W=de.l+M[Te]*de.w,oe=function(Oe){return D(Oe,de.w,de.h)};(function(Oe,ke,Le,We){var Ue,Ze,Xe,tt=Le[0].trace,Ee=We.numbersX,Ne=We.numbersY,je=tt.align||"center",nt=R[je],ot=We.transitionOpts,Ge=We.onComplete,ht=O.ensureSingle(ke,"g","numbers"),pt=[];tt._hasNumber&&pt.push("number"),tt._hasDelta&&(pt.push("delta"),tt.delta.position==="left"&&pt.reverse());var wt=ht.selectAll("text").data(pt);function Dt(gn,bn,mn,vt){if(!gn.match("s")||mn>=0==vt>=0||bn(mn).slice(-1).match(T)||bn(vt).slice(-1).match(T))return bn;var bt=gn.slice().replace("s","f").replace(/\d+/,function(yt){return parseInt(yt)-1}),lt=L(Oe,{tickformat:bt});return function(yt){return Math.abs(yt)<1?v.tickText(lt,yt).text:bn(yt)}}wt.enter().append("text"),wt.attr("text-anchor",function(){return nt}).attr("class",function(gn){return gn}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),wt.exit().remove();var It,qt=tt.mode+tt.align;if(tt._hasDelta&&(It=function(){var gn=L(Oe,{tickformat:tt.delta.valueformat},tt._range);gn.setScale(),v.prepTicks(gn);var bn=function(it){return v.tickText(gn,it).text},mn=tt.delta.suffix,vt=tt.delta.prefix,bt=function(it){return tt.delta.relative?it.relativeDelta:it.delta},lt=function(it,at){return it===0||typeof it!="number"||isNaN(it)?"-":(it>0?tt.delta.increasing.symbol:tt.delta.decreasing.symbol)+vt+at(it)+mn},yt=function(it){return it.delta>=0?tt.delta.increasing.color:tt.delta.decreasing.color};tt._deltaLastValue===void 0&&(tt._deltaLastValue=bt(Le[0]));var zt=ht.select("text.delta");function Rt(){zt.text(lt(bt(Le[0]),bn)).call(x.fill,yt(Le[0])).call(m.convertToTspans,Oe)}return zt.call(u.font,tt.delta.font).call(x.fill,yt({delta:tt._deltaLastValue})),E(ot)?zt.transition().duration(ot.duration).ease(ot.easing).tween("text",function(){var it=c.select(this),at=bt(Le[0]),Lt=tt._deltaLastValue,xt=Dt(tt.delta.valueformat,bn,Lt,at),Zt=i(Lt,at);return tt._deltaLastValue=at,function(Xt){it.text(lt(Zt(Xt),xt)),it.call(x.fill,yt({delta:Zt(Xt)}))}}).each("end",function(){Rt(),Ge&&Ge()}).each("interrupt",function(){Rt(),Ge&&Ge()}):Rt(),Ze=k(lt(bt(Le[0]),bn),tt.delta.font,nt,Oe),zt}(),qt+=tt.delta.position+tt.delta.font.size+tt.delta.font.family+tt.delta.valueformat,qt+=tt.delta.increasing.symbol+tt.delta.decreasing.symbol,Xe=Ze),tt._hasNumber&&(function(){var gn=L(Oe,{tickformat:tt.number.valueformat},tt._range);gn.setScale(),v.prepTicks(gn);var bn=function(yt){return v.tickText(gn,yt).text},mn=tt.number.suffix,vt=tt.number.prefix,bt=ht.select("text.number");function lt(){var yt=typeof Le[0].y=="number"?vt+bn(Le[0].y)+mn:"-";bt.text(yt).call(u.font,tt.number.font).call(m.convertToTspans,Oe)}E(ot)?bt.transition().duration(ot.duration).ease(ot.easing).each("end",function(){lt(),Ge&&Ge()}).each("interrupt",function(){lt(),Ge&&Ge()}).attrTween("text",function(){var yt=c.select(this),zt=i(Le[0].lastY,Le[0].y);tt._lastValue=Le[0].y;var Rt=Dt(tt.number.valueformat,bn,Le[0].lastY,Le[0].y);return function(it){yt.text(vt+Rt(zt(it))+mn)}}):lt(),Ue=k(vt+bn(Le[0].y)+mn,tt.number.font,nt,Oe)}(),qt+=tt.number.font.size+tt.number.font.family+tt.number.valueformat+tt.number.suffix+tt.number.prefix,Xe=Ue),tt._hasDelta&&tt._hasNumber){var en,Gt,Ct=[(Ue.left+Ue.right)/2,(Ue.top+Ue.bottom)/2],_t=[(Ze.left+Ze.right)/2,(Ze.top+Ze.bottom)/2],nn=.75*tt.delta.font.size;tt.delta.position==="left"&&(en=I(tt,"deltaPos",0,-1*(Ue.width*M[tt.align]+Ze.width*(1-M[tt.align])+nn),qt,Math.min),Gt=Ct[1]-_t[1],Xe={width:Ue.width+Ze.width+nn,height:Math.max(Ue.height,Ze.height),left:Ze.left+en,right:Ue.right,top:Math.min(Ue.top,Ze.top+Gt),bottom:Math.max(Ue.bottom,Ze.bottom+Gt)}),tt.delta.position==="right"&&(en=I(tt,"deltaPos",0,Ue.width*(1-M[tt.align])+Ze.width*M[tt.align]+nn,qt,Math.max),Gt=Ct[1]-_t[1],Xe={width:Ue.width+Ze.width+nn,height:Math.max(Ue.height,Ze.height),left:Ue.left,right:Ze.right+en,top:Math.min(Ue.top,Ze.top+Gt),bottom:Math.max(Ue.bottom,Ze.bottom+Gt)}),tt.delta.position==="bottom"&&(en=null,Gt=Ze.height,Xe={width:Math.max(Ue.width,Ze.width),height:Ue.height+Ze.height,left:Math.min(Ue.left,Ze.left),right:Math.max(Ue.right,Ze.right),top:Ue.bottom-Ue.height,bottom:Ue.bottom+Ze.height}),tt.delta.position==="top"&&(en=null,Gt=Ue.top,Xe={width:Math.max(Ue.width,Ze.width),height:Ue.height+Ze.height,left:Math.min(Ue.left,Ze.left),right:Math.max(Ue.right,Ze.right),top:Ue.bottom-Ue.height-Ze.height,bottom:Ue.bottom}),It.attr({dx:en,dy:Gt})}(tt._hasNumber||tt._hasDelta)&&ht.attr("transform",function(){var gn=We.numbersScaler(Xe);qt+=gn[2];var bn,mn=I(tt,"numbersScale",1,gn[0],qt,Math.min);tt._scaleNumbers||(mn=1),bn=tt._isAngular?Ne-mn*Xe.bottom:Ne-mn*(Xe.top+Xe.bottom)/2,tt._numbersTop=mn*Xe.top+bn;var vt=Xe[je];je==="center"&&(vt=(Xe.left+Xe.right)/2);var bt=Ee-mn*vt;return bt=I(tt,"numbersTranslate",0,bt,qt,Math.max),y(bt,bn)+w(mn)})})(z,me,te,{numbersX:W,numbersY:K,numbersScaler:oe,transitionOpts:Q,onComplete:U}),he&&(q={range:ee.gauge.axis.range,color:ee.gauge.bgcolor,line:{color:ee.gauge.bordercolor,width:0},thickness:1},Y={range:ee.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:ee.gauge.bordercolor,width:ee.gauge.borderwidth},thickness:1});var ze=me.selectAll("g.angular").data(se?te:[]);ze.exit().remove();var De=me.selectAll("g.angularaxis").data(se?te:[]);De.exit().remove(),se&&function(Oe,ke,Le,We){var Ue,Ze,Xe,tt,Ee=Le[0].trace,Ne=We.size,je=We.radius,nt=We.innerRadius,ot=We.gaugeBg,Ge=We.gaugeOutline,ht=[Ne.l+Ne.w/2,Ne.t+Ne.h/2+je/2],pt=We.gauge,wt=We.layer,Dt=We.transitionOpts,It=We.onComplete,qt=Math.PI/2;function en(Xt){var Yt=Ee.gauge.axis.range[0],Qt=(Xt-Yt)/(Ee.gauge.axis.range[1]-Yt)*Math.PI-qt;return Qt<-qt?-qt:Qt>qt?qt:Qt}function Gt(Xt){return c.svg.arc().innerRadius((nt+je)/2-Xt/2*(je-nt)).outerRadius((nt+je)/2+Xt/2*(je-nt)).startAngle(-qt)}function Ct(Xt){Xt.attr("d",function(Yt){return Gt(Yt.thickness).startAngle(en(Yt.range[0])).endAngle(en(Yt.range[1]))()})}pt.enter().append("g").classed("angular",!0),pt.attr("transform",y(ht[0],ht[1])),wt.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),wt.selectAll("g.xangularaxistick,path,text").remove(),(Ue=L(Oe,Ee.gauge.axis)).type="linear",Ue.range=Ee.gauge.axis.range,Ue._id="xangularaxis",Ue.ticklabeloverflow="allow",Ue.setScale();var _t=function(Xt){return(Ue.range[0]-Xt.x)/(Ue.range[1]-Ue.range[0])*Math.PI+Math.PI},nn={},gn=v.makeLabelFns(Ue,0).labelStandoff;nn.xFn=function(Xt){var Yt=_t(Xt);return Math.cos(Yt)*gn},nn.yFn=function(Xt){var Yt=_t(Xt),Qt=Math.sin(Yt)>0?.2:1;return-Math.sin(Yt)*(gn+Xt.fontSize*Qt)+Math.abs(Math.cos(Yt))*(Xt.fontSize*a)},nn.anchorFn=function(Xt){var Yt=_t(Xt),Qt=Math.cos(Yt);return Math.abs(Qt)<.1?"middle":Qt>0?"start":"end"},nn.heightFn=function(Xt,Yt,Qt){var Pt=_t(Xt);return-.5*(1+Math.sin(Pt))*Qt};var bn=function(Xt){return y(ht[0]+je*Math.cos(Xt),ht[1]-je*Math.sin(Xt))};if(Xe=function(Xt){return bn(_t(Xt))},Ze=v.calcTicks(Ue),tt=v.getTickSigns(Ue)[2],Ue.visible){tt=Ue.ticks==="inside"?-1:1;var mn=(Ue.linewidth||1)/2;v.drawTicks(Oe,Ue,{vals:Ze,layer:wt,path:"M"+tt*mn+",0h"+tt*Ue.ticklen,transFn:function(Xt){var Yt=_t(Xt);return bn(Yt)+"rotate("+-p(Yt)+")"}}),v.drawLabels(Oe,Ue,{vals:Ze,layer:wt,transFn:Xe,labelFns:nn})}var vt=[ot].concat(Ee.gauge.steps),bt=pt.selectAll("g.bg-arc").data(vt);bt.enter().append("g").classed("bg-arc",!0).append("path"),bt.select("path").call(Ct).call(C),bt.exit().remove();var lt=Gt(Ee.gauge.bar.thickness),yt=pt.selectAll("g.value-arc").data([Ee.gauge.bar]);yt.enter().append("g").classed("value-arc",!0).append("path");var zt,Rt,it,at=yt.select("path");E(Dt)?(at.transition().duration(Dt.duration).ease(Dt.easing).each("end",function(){It&&It()}).each("interrupt",function(){It&&It()}).attrTween("d",(zt=lt,Rt=en(Le[0].lastY),it=en(Le[0].y),function(){var Xt=b(Rt,it);return function(Yt){return zt.endAngle(Xt(Yt))()}})),Ee._lastValue=Le[0].y):at.attr("d",typeof Le[0].y=="number"?lt.endAngle(en(Le[0].y)):"M0,0Z"),at.call(C),yt.exit().remove(),vt=[];var Lt=Ee.gauge.threshold.value;(Lt||Lt===0)&&vt.push({range:[Lt,Lt],color:Ee.gauge.threshold.color,line:{color:Ee.gauge.threshold.line.color,width:Ee.gauge.threshold.line.width},thickness:Ee.gauge.threshold.thickness});var xt=pt.selectAll("g.threshold-arc").data(vt);xt.enter().append("g").classed("threshold-arc",!0).append("path"),xt.select("path").call(Ct).call(C),xt.exit().remove();var Zt=pt.selectAll("g.gauge-outline").data([Ge]);Zt.enter().append("g").classed("gauge-outline",!0).append("path"),Zt.select("path").call(Ct).call(C),Zt.exit().remove()}(z,0,te,{radius:_e,innerRadius:Se,gauge:ze,layer:De,size:de,gaugeBg:q,gaugeOutline:Y,transitionOpts:Q,onComplete:U});var He=me.selectAll("g.bullet").data(ae?te:[]);He.exit().remove();var Ve=me.selectAll("g.bulletaxis").data(ae?te:[]);Ve.exit().remove(),ae&&function(Oe,ke,Le,We){var Ue,Ze,Xe,tt,Ee,Ne=Le[0].trace,je=We.gauge,nt=We.layer,ot=We.gaugeBg,Ge=We.gaugeOutline,ht=We.size,pt=Ne.domain,wt=We.transitionOpts,Dt=We.onComplete;je.enter().append("g").classed("bullet",!0),je.attr("transform",y(ht.l,ht.t)),nt.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),nt.selectAll("g.xbulletaxistick,path,text").remove();var It=ht.h,qt=Ne.gauge.bar.thickness*It,en=pt.x[0],Gt=pt.x[0]+(pt.x[1]-pt.x[0])*(Ne._hasNumber||Ne._hasDelta?1-h.bulletNumberDomainSize:1);function Ct(bt){bt.attr("width",function(lt){return Math.max(0,Ue.c2p(lt.range[1])-Ue.c2p(lt.range[0]))}).attr("x",function(lt){return Ue.c2p(lt.range[0])}).attr("y",function(lt){return .5*(1-lt.thickness)*It}).attr("height",function(lt){return lt.thickness*It})}(Ue=L(Oe,Ne.gauge.axis))._id="xbulletaxis",Ue.domain=[en,Gt],Ue.setScale(),Ze=v.calcTicks(Ue),Xe=v.makeTransTickFn(Ue),tt=v.getTickSigns(Ue)[2],Ee=ht.t+ht.h,Ue.visible&&(v.drawTicks(Oe,Ue,{vals:Ue.ticks==="inside"?v.clipEnds(Ue,Ze):Ze,layer:nt,path:v.makeTickPath(Ue,Ee,tt),transFn:Xe}),v.drawLabels(Oe,Ue,{vals:Ze,layer:nt,transFn:Xe,labelFns:v.makeLabelFns(Ue,Ee)}));var _t=[ot].concat(Ne.gauge.steps),nn=je.selectAll("g.bg-bullet").data(_t);nn.enter().append("g").classed("bg-bullet",!0).append("rect"),nn.select("rect").call(Ct).call(C),nn.exit().remove();var gn=je.selectAll("g.value-bullet").data([Ne.gauge.bar]);gn.enter().append("g").classed("value-bullet",!0).append("rect"),gn.select("rect").attr("height",qt).attr("y",(It-qt)/2).call(C),E(wt)?gn.select("rect").transition().duration(wt.duration).ease(wt.easing).each("end",function(){Dt&&Dt()}).each("interrupt",function(){Dt&&Dt()}).attr("width",Math.max(0,Ue.c2p(Math.min(Ne.gauge.axis.range[1],Le[0].y)))):gn.select("rect").attr("width",typeof Le[0].y=="number"?Math.max(0,Ue.c2p(Math.min(Ne.gauge.axis.range[1],Le[0].y))):0),gn.exit().remove();var bn=Le.filter(function(){return Ne.gauge.threshold.value||Ne.gauge.threshold.value===0}),mn=je.selectAll("g.threshold-bullet").data(bn);mn.enter().append("g").classed("threshold-bullet",!0).append("line"),mn.select("line").attr("x1",Ue.c2p(Ne.gauge.threshold.value)).attr("x2",Ue.c2p(Ne.gauge.threshold.value)).attr("y1",(1-Ne.gauge.threshold.thickness)/2*It).attr("y2",(1-(1-Ne.gauge.threshold.thickness)/2)*It).call(x.stroke,Ne.gauge.threshold.line.color).style("stroke-width",Ne.gauge.threshold.line.width),mn.exit().remove();var vt=je.selectAll("g.gauge-outline").data([Ge]);vt.enter().append("g").classed("gauge-outline",!0).append("rect"),vt.select("rect").call(Ct).call(C),vt.exit().remove()}(z,0,te,{gauge:He,layer:Ve,size:de,gaugeBg:q,gaugeOutline:Y,transitionOpts:Q,onComplete:U});var $e=me.selectAll("text.title").data(te);$e.exit().remove(),$e.enter().append("text").classed("title",!0),$e.attr("text-anchor",function(){return ae?R.right:R[ee.title.align]}).text(ee.title.text).call(u.font,ee.title.font).call(m.convertToTspans,z),$e.attr("transform",function(){var Oe,ke=de.l+de.w*M[ee.title.align],Le=h.titlePadding,We=u.bBox($e.node());return he?(se&&(Oe=ee.gauge.axis.visible?u.bBox(De.node()).top-Le-We.bottom:de.t+de.h/2-_e/2-We.bottom-Le),ae&&(Oe=K-(We.top+We.bottom)/2,ke=de.l-h.bulletPadding*de.w)):Oe=ee._numbersTop-Le-We.bottom,y(ke,Oe)})})}},50048:function(d,l,n){var c=n(49084),b=n(29736).axisHoverFormat,i=n(21776).Ks,O=n(52948),w=n(45464),y=n(92880).extendFlat,p=n(67824).overrideAll,a=d.exports=p(y({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}},y:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}},z:{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}},caps:{x:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}},y:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}},z:{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:i(),xhoverformat:b("x"),yhoverformat:b("y"),zhoverformat:b("z"),valuehoverformat:b("value",1),showlegend:y({},w.showlegend,{dflt:!1})},c("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:O.opacity,lightposition:O.lightposition,lighting:O.lighting,flatshading:O.flatshading,contour:O.contour,hoverinfo:y({},w.hoverinfo)}),"calc","nested");a.flatshading.dflt=!0,a.lighting.facenormalsepsilon.dflt=0,a.x.editType=a.y.editType=a.z.editType=a.value.editType="calc+clearAxisTypes",a.transforms=void 0},62624:function(d,l,n){var c=n(47128),b=n(3832).processGrid,i=n(3832).filter;d.exports=function(O,w){w._len=Math.min(w.x.length,w.y.length,w.z.length,w.value.length),w._x=i(w.x,w._len),w._y=i(w.y,w._len),w._z=i(w.z,w._len),w._value=i(w.value,w._len);var y=b(w);w._gridFill=y.fill,w._Xs=y.Xs,w._Ys=y.Ys,w._Zs=y.Zs,w._len=y.len;for(var p=1/0,a=-1/0,u=0;u0;S--){var A=Math.min(_[S],_[S-1]),x=Math.max(_[S],_[S-1]);if(x>A&&A-1}function ye(nt,ot){return nt===null?ot:nt}function _e(nt,ot,Ge){he();var ht,pt,wt,Dt=[ot],It=[Ge];if(T>=1)Dt=[ot],It=[Ge];else if(T>0){var qt=function(vt,bt){var lt=vt[0],yt=vt[1],zt=vt[2],Rt=function(Qt,Pt,tn){for(var Kt=[],fn=0;fn-1?Ge[Ct]:me(_t,nn,gn);Gt[Ct]=mn>-1?mn:ae(_t,nn,gn,ye(nt,bn))}ht=Gt[0],pt=Gt[1],wt=Gt[2],v._meshI.push(ht),v._meshJ.push(pt),v._meshK.push(wt),++z}}function Se(nt,ot,Ge,ht){var pt=nt[3];ptht&&(pt=ht);for(var wt=(nt[3]-pt)/(nt[3]-ot[3]+1e-9),Dt=[],It=0;It<4;It++)Dt[It]=(1-wt)*nt[It]+wt*ot[It];return Dt}function Te(nt,ot,Ge){return nt>=ot&&nt<=Ge}function Pe(nt){var ot=.001*(ee-Y);return nt>=Y-ot&&nt<=ee+ot}function Ie(nt){for(var ot=[],Ge=0;Ge<4;Ge++){var ht=nt[Ge];ot.push([v._x[ht],v._y[ht],v._z[ht],v._value[ht]])}return ot}var ze=3;function De(nt,ot,Ge,ht,pt,wt){wt||(wt=1),Ge=[-1,-1,-1];var Dt=!1,It=[Te(ot[0][3],ht,pt),Te(ot[1][3],ht,pt),Te(ot[2][3],ht,pt)];if(!It[0]&&!It[1]&&!It[2])return!1;var qt=function(Gt,Ct,_t){return Pe(Ct[0][3])&&Pe(Ct[1][3])&&Pe(Ct[2][3])?(_e(Gt,Ct,_t),!0):wtMath.abs(wt-q)?[oe,wt]:[wt,q];k=!0,Xe(ot,Dt[0],Dt[1]),k=!1}}var It=[[Math.min(Y,q),Math.max(Y,q)],[Math.min(oe,ee),Math.max(oe,ee)]];["x","y","z"].forEach(function(qt){for(var en=[],Gt=0;Gt0&&(mn.push(lt.id),qt==="x"?vt.push([lt.distRatio,0,0]):qt==="y"?vt.push([0,lt.distRatio,0]):vt.push([0,0,lt.distRatio]))}else bn=je(1,qt==="x"?U-1:qt==="y"?X-1:te-1);mn.length>0&&(en[Ct]=qt==="x"?tt(nt,mn,_t,nn,vt,en[Ct]):qt==="y"?Ee(nt,mn,_t,nn,vt,en[Ct]):Ne(nt,mn,_t,nn,vt,en[Ct]),Ct++),bn.length>0&&(en[Ct]=qt==="x"?We(nt,bn,_t,nn,en[Ct]):qt==="y"?Ue(nt,bn,_t,nn,en[Ct]):Ze(nt,bn,_t,nn,en[Ct]),Ct++)}var yt=v.caps[qt];yt.show&&yt.fill&&(de(yt.fill),en[Ct]=qt==="x"?We(nt,[0,U-1],_t,nn,en[Ct]):qt==="y"?Ue(nt,[0,X-1],_t,nn,en[Ct]):Ze(nt,[0,te-1],_t,nn,en[Ct]),Ct++)}}),z===0&&se(),v._meshX=A,v._meshY=x,v._meshZ=R,v._meshIntensity=M,v._Xs=$,v._Ys=Q,v._Zs=j}(),v}d.exports={findNearestOnAxis:p,generateIsoMeshes:m,createIsosurfaceTrace:function(v,_){var S=v.glplot.gl,A=c({gl:S}),x=new a(v,A,_.uid);return A._trace=x,x.update(_),v.glplot.add(A),x}}},70548:function(d,l,n){var c=n(3400),b=n(24040),i=n(50048),O=n(27260);function w(y,p,a,u,h){var m=h("isomin"),v=h("isomax");v!=null&&m!=null&&m>v&&(p.isomin=null,p.isomax=null);var _=h("x"),S=h("y"),A=h("z"),x=h("value");_&&_.length&&S&&S.length&&A&&A.length&&x&&x.length?(b.getComponentMethod("calendars","handleTraceDefaults")(y,p,["x","y","z"],u),h("valuehoverformat"),["x","y","z"].forEach(function(R){h(R+"hoverformat");var M="caps."+R;h(M+".show")&&h(M+".fill");var T="slices."+R;h(T+".show")&&(h(T+".fill"),h(T+".locations"))}),h("spaceframe.show")&&h("spaceframe.fill"),h("surface.show")&&(h("surface.count"),h("surface.fill"),h("surface.pattern")),h("contour.show")&&(h("contour.color"),h("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(R){h(R)}),O(y,p,u,h,{prefix:"",cLetter:"c"}),p._length=null):p.visible=!1}d.exports={supplyDefaults:function(y,p,a,u){w(y,p,0,u,function(h,m){return c.coerce(y,p,i,h,m)})},supplyIsoDefaults:w}},6296:function(d,l,n){d.exports={attributes:n(50048),supplyDefaults:n(70548).supplyDefaults,calc:n(62624),colorbar:{min:"cmin",max:"cmax"},plot:n(31460).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:n(12536),categories:["gl3d","showLegend"],meta:{}}},52948:function(d,l,n){var c=n(49084),b=n(29736).axisHoverFormat,i=n(21776).Ks,O=n(16716),w=n(45464),y=n(92880).extendFlat;d.exports=y({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:i({editType:"calc"}),xhoverformat:b("x"),yhoverformat:b("y"),zhoverformat:b("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},c("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:O.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:y({},O.contours.x.show,{}),color:O.contours.x.color,width:O.contours.x.width,editType:"calc"},lightposition:{x:y({},O.lightposition.x,{dflt:1e5}),y:y({},O.lightposition.y,{dflt:1e5}),z:y({},O.lightposition.z,{dflt:0}),editType:"calc"},lighting:y({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},O.lighting),hoverinfo:y({},w.hoverinfo,{editType:"calc"}),showlegend:y({},w.showlegend,{dflt:!1})})},1876:function(d,l,n){var c=n(47128);d.exports=function(b,i){i.intensity&&c(b,i,{vals:i.intensity,containerStr:"",cLetter:"c"})}},576:function(d,l,n){var c=n(67792).gl_mesh3d,b=n(67792).delaunay_triangulate,i=n(67792).alpha_shape,O=n(67792).convex_hull,w=n(33040).parseColorScale,y=n(3400).isArrayOrTypedArray,p=n(43080),a=n(8932).extractOpts,u=n(52094);function h(x,R,M){this.scene=x,this.uid=M,this.mesh=R,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var m=h.prototype;function v(x){for(var R=[],M=x.length,T=0;T=R-.5)return!1;return!0}m.handlePick=function(x){if(x.object===this.mesh){var R=x.index=x.data.index;x.data._cellCenter?x.traceCoordinate=x.data.dataCoordinate:x.traceCoordinate=[this.data.x[R],this.data.y[R],this.data.z[R]];var M=this.data.hovertext||this.data.text;return y(M)&&M[R]!==void 0?x.textLabel=M[R]:M&&(x.textLabel=M),!0}},m.update=function(x){var R=this.scene,M=R.fullSceneLayout;this.data=x;var T,E=x.x.length,C=u(_(M.xaxis,x.x,R.dataScale[0],x.xcalendar),_(M.yaxis,x.y,R.dataScale[1],x.ycalendar),_(M.zaxis,x.z,R.dataScale[2],x.zcalendar));if(x.i&&x.j&&x.k){if(x.i.length!==x.j.length||x.j.length!==x.k.length||!A(x.i,E)||!A(x.j,E)||!A(x.k,E))return;T=u(S(x.i),S(x.j),S(x.k))}else T=x.alphahull===0?O(C):x.alphahull>0?i(x.alphahull,C):function(I,z){for(var $=["x","y","z"].indexOf(I),Q=[],j=z.length,U=0;UC):E=j>z,C=j;var U=_(z,$,Q,j);U.pos=I,U.yc=(z+j)/2,U.i=k,U.dir=E?"increasing":"decreasing",U.x=U.pos,U.y=[Q,$],L&&(U.orig_p=h[k]),M&&(U.tx=u.text[k]),T&&(U.htx=u.hovertext[k]),D.push(U)}else D.push({pos:I,empty:!0})}return u._extremes[v._id]=i.findExtremes(v,c.concat(x,A),{padded:!0}),D.length&&(D[0].t={labels:{open:b(a,"open:")+" ",high:b(a,"high:")+" ",low:b(a,"low:")+" ",close:b(a,"close:")+" "}}),D}d.exports={calc:function(a,u){var h=i.getFromId(a,u.xaxis),m=i.getFromId(a,u.yaxis),v=function(R,M,T){var E=T._minDiff;if(!E){var C,L=R._fullData,D=[];for(E=1/0,C=0;C"+M.labels[$]+c.hoverLabelText(x,Q,R.yhoverformat):((z=b.extendFlat({},E)).y0=z.y1=j,z.yLabelVal=Q,z.yLabel=M.labels[$]+c.hoverLabelText(x,Q,R.yhoverformat),z.name="",T.push(z),k[Q]=z)}return T}function h(m,v,_,S){var A=m.cd,x=m.ya,R=A[0].trace,M=A[0].t,T=a(m,v,_,S);if(!T)return[];var E=A[T.index],C=T.index=E.i,L=E.dir;function D(U){return M.labels[U]+c.hoverLabelText(x,R[U][C],R.yhoverformat)}var k=E.hi||R.hoverinfo,I=k.split("+"),z=k==="all",$=z||I.indexOf("y")!==-1,Q=z||I.indexOf("text")!==-1,j=$?[D("open"),D("high"),D("low"),D("close")+" "+p[L]]:[];return Q&&w(E,R,j),T.extraText=j.join("
    "),T.y0=T.y1=x.c2p(E.yc,!0),[T]}d.exports={hoverPoints:function(m,v,_,S){return m.cd[0].trace.hoverlabel.split?u(m,v,_,S):h(m,v,_,S)},hoverSplit:u,hoverOnPoints:h}},65456:function(d,l,n){d.exports={moduleType:"trace",name:"ohlc",basePlotModule:n(57952),categories:["cartesian","svg","showLegend"],meta:{},attributes:n(20279),supplyDefaults:n(23860),calc:n(42812).calc,plot:n(36664),style:n(14008),hoverPoints:n(18720).hoverPoints,selectPoints:n(97384)}},52744:function(d,l,n){var c=n(24040),b=n(3400);d.exports=function(i,O,w,y){var p=w("x"),a=w("open"),u=w("high"),h=w("low"),m=w("close");if(w("hoverlabel.split"),c.getComponentMethod("calendars","handleTraceDefaults")(i,O,["x"],y),a&&u&&h&&m){var v=Math.min(a.length,u.length,h.length,m.length);return p&&(v=Math.min(v,b.minRowLength(p))),O._length=v,v}}},36664:function(d,l,n){var c=n(33428),b=n(3400);d.exports=function(i,O,w,y){var p=O.yaxis,a=O.xaxis,u=!!a.rangebreaks;b.makeTraceGroups(y,w,"trace ohlc").each(function(h){var m=c.select(this),v=h[0],_=v.t;if(v.trace.visible!==!0||_.empty)m.remove();else{var S=_.tickLen,A=m.selectAll("path").data(b.identity);A.enter().append("path"),A.exit().remove(),A.attr("d",function(x){if(x.empty)return"M0,0Z";var R=a.c2p(x.pos-S,!0),M=a.c2p(x.pos+S,!0),T=u?(R+M)/2:a.c2p(x.pos,!0);return"M"+R+","+p.c2p(x.o,!0)+"H"+T+"M"+T+","+p.c2p(x.h,!0)+"V"+p.c2p(x.l,!0)+"M"+M+","+p.c2p(x.c,!0)+"H"+T})}})}},97384:function(d){d.exports=function(l,n){var c,b=l.cd,i=l.xaxis,O=l.yaxis,w=[],y=b[0].t.bPos||0;if(n===!1)for(c=0;c=se.length||ae[se[ce]]!==void 0)return!1;ae[se[ce]]=!0}return!0}(he))for(me=0;me0||a(x);R&&(A="array");var M=v("categoryorder",A);M==="array"?(v("categoryarray"),v("ticktext")):(delete h.categoryarray,delete h.ticktext),R||M!=="array"||(m.categoryorder="trace")}}d.exports=function(h,m,v,_){function S(T,E){return c.coerce(h,m,y,T,E)}var A=w(h,m,{name:"dimensions",handleItemDefaults:u}),x=function(T,E,C,L,D){D("line.shape"),D("line.hovertemplate");var k=D("line.color",L.colorway[0]);if(b(T,"line")&&c.isArrayOrTypedArray(k)){if(k.length)return D("line.colorscale"),i(T,E,L,D,{prefix:"line.",cLetter:"c"}),k.length;E.line.color=C}return 1/0}(h,m,v,_,S);O(m,_,S),Array.isArray(A)&&A.length||(m.visible=!1),p(m,A,"values",x),S("hoveron"),S("hovertemplate"),S("arrangement"),S("bundlecolors"),S("sortpaths"),S("counts");var R={family:_.font.family,size:Math.round(_.font.size),color:_.font.color};c.coerceFont(S,"labelfont",R);var M={family:_.font.family,size:Math.round(_.font.size/1.2),color:_.font.color};c.coerceFont(S,"tickfont",M)}},22020:function(d,l,n){d.exports={attributes:n(72140),supplyDefaults:n(76671),calc:n(69136),plot:n(60268),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:n(91800),categories:["noOpacity"],meta:{}}},51036:function(d,l,n){var c=n(33428),b=n(67756).Gz,i=n(36424),O=n(93024),w=n(3400),y=w.strTranslate,p=n(43616),a=n(49760),u=n(72736);function h(he,se,ae,ce){var de=se._context.staticPlot,ve=he.map(oe.bind(0,se,ae)),ye=ce.selectAll("g.parcatslayer").data([null]);ye.enter().append("g").attr("class","parcatslayer").style("pointer-events",de?"none":"all");var _e=ye.selectAll("g.trace.parcats").data(ve,m),Se=_e.enter().append("g").attr("class","trace parcats");_e.attr("transform",function(Oe){return y(Oe.x,Oe.y)}),Se.append("g").attr("class","paths");var Te=_e.select("g.paths").selectAll("path.path").data(function(Oe){return Oe.paths},m);Te.attr("fill",function(Oe){return Oe.model.color});var Pe=Te.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(Oe){return Oe.model.color}).attr("fill-opacity",0);T(Pe),Te.attr("d",function(Oe){return Oe.svgD}),Pe.empty()||Te.sort(_),Te.exit().remove(),Te.on("mouseover",S).on("mouseout",A).on("click",M),Se.append("g").attr("class","dimensions");var Ie=_e.select("g.dimensions").selectAll("g.dimension").data(function(Oe){return Oe.dimensions},m);Ie.enter().append("g").attr("class","dimension"),Ie.attr("transform",function(Oe){return y(Oe.x,0)}),Ie.exit().remove();var ze=Ie.selectAll("g.category").data(function(Oe){return Oe.categories},m),De=ze.enter().append("g").attr("class","category");ze.attr("transform",function(Oe){return y(0,Oe.y)}),De.append("rect").attr("class","catrect").attr("pointer-events","none"),ze.select("rect.catrect").attr("fill","none").attr("width",function(Oe){return Oe.width}).attr("height",function(Oe){return Oe.height}),C(De);var He=ze.selectAll("rect.bandrect").data(function(Oe){return Oe.bands},m);He.each(function(){w.raiseToTop(this)}),He.attr("fill",function(Oe){return Oe.color});var Ve=He.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(Oe){return Oe.color}).attr("fill-opacity",0);He.attr("fill",function(Oe){return Oe.color}).attr("width",function(Oe){return Oe.width}).attr("height",function(Oe){return Oe.height}).attr("y",function(Oe){return Oe.y}).attr("cursor",function(Oe){return Oe.parcatsViewModel.arrangement==="fixed"?"default":Oe.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),L(Ve),He.exit().remove(),De.append("text").attr("class","catlabel").attr("pointer-events","none");var $e=se._fullLayout.paper_bgcolor;ze.select("text.catlabel").attr("text-anchor",function(Oe){return v(Oe)?"start":"end"}).attr("alignment-baseline","middle").style("text-shadow",u.makeTextShadow($e)).style("fill","rgb(0, 0, 0)").attr("x",function(Oe){return v(Oe)?Oe.width+5:-5}).attr("y",function(Oe){return Oe.height/2}).text(function(Oe){return Oe.model.categoryLabel}).each(function(Oe){p.font(c.select(this),Oe.parcatsViewModel.categorylabelfont),u.convertToTspans(c.select(this),se)}),De.append("text").attr("class","dimlabel"),ze.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(Oe){return Oe.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(Oe){return Oe.width/2}).attr("y",-5).text(function(Oe,ke){return ke===0?Oe.parcatsViewModel.model.dimensions[Oe.model.dimensionInd].dimensionLabel:null}).each(function(Oe){p.font(c.select(this),Oe.parcatsViewModel.labelfont)}),ze.selectAll("rect.bandrect").on("mouseover",$).on("mouseout",Q),ze.exit().remove(),Ie.call(c.behavior.drag().origin(function(Oe){return{x:Oe.x,y:0}}).on("dragstart",j).on("drag",U).on("dragend",X)),_e.each(function(Oe){Oe.traceSelection=c.select(this),Oe.pathSelection=c.select(this).selectAll("g.paths").selectAll("path.path"),Oe.dimensionSelection=c.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),_e.exit().remove()}function m(he){return he.key}function v(he){var se=he.parcatsViewModel.dimensions.length,ae=he.parcatsViewModel.dimensions[se-1].model.dimensionInd;return he.model.dimensionInd===ae}function _(he,se){return he.model.rawColor>se.model.rawColor?1:he.model.rawColor"),Ze=c.mouse(_e)[0];O.loneHover({trace:Se,x:He-Pe.left+Ie.left,y:Ve-Pe.top+Ie.top,text:Ue,color:he.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:$e,idealAlign:Ze1&&Ie.displayInd===Pe.dimensions.length-1?(ce=Se.left,de="left"):(ce=Se.left+Se.width,de="right");var He=Te.model.count,Ve=Te.model.categoryLabel,$e=He/Te.parcatsViewModel.model.count,Oe={countLabel:He,categoryLabel:Ve,probabilityLabel:$e.toFixed(3)},ke=[];Te.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&ke.push(["Count:",Oe.countLabel].join(" ")),Te.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&ke.push(["P("+Oe.categoryLabel+"):",Oe.probabilityLabel].join(" "));var Le=ke.join("
    ");return{trace:ze,x:ve*(ce-se.left),y:ye*(De-se.top),text:Le,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:de,hovertemplate:ze.hovertemplate,hovertemplateLabels:Oe,eventData:[{data:ze._input,fullData:ze,count:He,category:Ve,probability:$e}]}}function $(he){if(!he.parcatsViewModel.dragDimension&&he.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){if(c.mouse(this)[1]<-1)return;var se,ae=he.parcatsViewModel.graphDiv,ce=ae._fullLayout,de=ce._paperdiv.node().getBoundingClientRect(),ve=he.parcatsViewModel.hoveron,ye=this;ve==="color"?(function(_e){var Se=c.select(_e).datum(),Te=D(Se);E(Te),Te.each(function(){w.raiseToTop(this)}),c.select(_e.parentNode).selectAll("rect.bandrect").filter(function(Pe){return Pe.color===Se.color}).each(function(){w.raiseToTop(this),c.select(this).attr("stroke","black").attr("stroke-width",1.5)})}(ye),I(ye,"plotly_hover",c.event)):(function(_e){c.select(_e.parentNode).selectAll("rect.bandrect").each(function(Se){var Te=D(Se);E(Te),Te.each(function(){w.raiseToTop(this)})}),c.select(_e.parentNode).select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}(ye),k(ye,"plotly_hover",c.event)),he.parcatsViewModel.hoverinfoItems.indexOf("none")===-1&&(ve==="category"?se=z(ae,de,ye):ve==="color"?se=function(_e,Se,Te){_e._fullLayout._calcInverseTransform(_e);var Pe,Ie,ze=_e._fullLayout._invScaleX,De=_e._fullLayout._invScaleY,He=Te.getBoundingClientRect(),Ve=c.select(Te).datum(),$e=Ve.categoryViewModel,Oe=$e.parcatsViewModel,ke=Oe.model.dimensions[$e.model.dimensionInd],Le=Oe.trace,We=He.y+He.height/2;Oe.dimensions.length>1&&ke.displayInd===Oe.dimensions.length-1?(Pe=He.left,Ie="left"):(Pe=He.left+He.width,Ie="right");var Ue=$e.model.categoryLabel,Ze=Ve.parcatsViewModel.model.count,Xe=0;Ve.categoryViewModel.bands.forEach(function(wt){wt.color===Ve.color&&(Xe+=wt.count)});var tt=$e.model.count,Ee=0;Oe.pathSelection.each(function(wt){wt.model.color===Ve.color&&(Ee+=wt.model.count)});var Ne=Xe/Ze,je=Xe/Ee,nt=Xe/tt,ot={countLabel:Ze,categoryLabel:Ue,probabilityLabel:Ne.toFixed(3)},Ge=[];$e.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&Ge.push(["Count:",ot.countLabel].join(" ")),$e.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(Ge.push("P(color ∩ "+Ue+"): "+ot.probabilityLabel),Ge.push("P("+Ue+" | color): "+je.toFixed(3)),Ge.push("P(color | "+Ue+"): "+nt.toFixed(3)));var ht=Ge.join("
    "),pt=a.mostReadable(Ve.color,["black","white"]);return{trace:Le,x:ze*(Pe-Se.left),y:De*(We-Se.top),text:ht,color:Ve.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:pt,fontSize:10,idealAlign:Ie,hovertemplate:Le.hovertemplate,hovertemplateLabels:ot,eventData:[{data:Le._input,fullData:Le,category:Ue,count:Ze,probability:Ne,categorycount:tt,colorcount:Ee,bandcolorcount:Xe}]}}(ae,de,ye):ve==="dimension"&&(se=function(_e,Se,Te){var Pe=[];return c.select(Te.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){Pe.push(z(_e,Se,this))}),Pe}(ae,de,ye)),se&&O.loneHover(se,{container:ce._hoverlayer.node(),outerContainer:ce._paper.node(),gd:ae}))}}function Q(he){var se=he.parcatsViewModel;se.dragDimension||(T(se.pathSelection),C(se.dimensionSelection.selectAll("g.category")),L(se.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),O.loneUnhover(se.graphDiv._fullLayout._hoverlayer.node()),se.pathSelection.sort(_),se.hoverinfoItems.indexOf("skip")!==-1)||(he.parcatsViewModel.hoveron==="color"?I(this,"plotly_unhover",c.event):k(this,"plotly_unhover",c.event))}function j(he){he.parcatsViewModel.arrangement!=="fixed"&&(he.dragDimensionDisplayInd=he.model.displayInd,he.initialDragDimensionDisplayInds=he.parcatsViewModel.model.dimensions.map(function(se){return se.displayInd}),he.dragHasMoved=!1,he.dragCategoryDisplayInd=null,c.select(this).selectAll("g.category").select("rect.catrect").each(function(se){var ae=c.mouse(this)[0],ce=c.mouse(this)[1];-2<=ae&&ae<=se.width+2&&-2<=ce&&ce<=se.height+2&&(he.dragCategoryDisplayInd=se.model.displayInd,he.initialDragCategoryDisplayInds=he.model.categories.map(function(de){return de.displayInd}),se.model.dragY=se.y,w.raiseToTop(this.parentNode),c.select(this.parentNode).selectAll("rect.bandrect").each(function(de){de.yPe.y+Pe.height/2&&(ve.model.displayInd=Pe.model.displayInd,Pe.model.displayInd=_e),he.dragCategoryDisplayInd=ve.model.displayInd}if(he.dragCategoryDisplayInd===null||he.parcatsViewModel.arrangement==="freeform"){de.model.dragX=c.event.x;var Ie=he.parcatsViewModel.dimensions[ae],ze=he.parcatsViewModel.dimensions[ce];Ie!==void 0&&de.model.dragXze.x&&(de.model.displayInd=ze.model.displayInd,ze.model.displayInd=he.dragDimensionDisplayInd),he.dragDimensionDisplayInd=de.model.displayInd}ee(he.parcatsViewModel),Y(he.parcatsViewModel),K(he.parcatsViewModel),W(he.parcatsViewModel)}}function X(he){if(he.parcatsViewModel.arrangement!=="fixed"&&he.dragDimensionDisplayInd!==null){c.select(this).selectAll("text").attr("font-weight","normal");var se={},ae=te(he.parcatsViewModel),ce=he.parcatsViewModel.model.dimensions.map(function(Pe){return Pe.displayInd}),de=he.initialDragDimensionDisplayInds.some(function(Pe,Ie){return Pe!==ce[Ie]});de&&ce.forEach(function(Pe,Ie){var ze=he.parcatsViewModel.model.dimensions[Ie].containerInd;se["dimensions["+ze+"].displayindex"]=Pe});var ve=!1;if(he.dragCategoryDisplayInd!==null){var ye=he.model.categories.map(function(Pe){return Pe.displayInd});if(ve=he.initialDragCategoryDisplayInds.some(function(Pe,Ie){return Pe!==ye[Ie]})){var _e=he.model.categories.slice().sort(function(Pe,Ie){return Pe.displayInd-Ie.displayInd}),Se=_e.map(function(Pe){return Pe.categoryValue}),Te=_e.map(function(Pe){return Pe.categoryLabel});se["dimensions["+he.model.containerInd+"].categoryarray"]=[Se],se["dimensions["+he.model.containerInd+"].ticktext"]=[Te],se["dimensions["+he.model.containerInd+"].categoryorder"]="array"}}he.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!he.dragHasMoved&&he.potentialClickBand&&(he.parcatsViewModel.hoveron==="color"?I(he.potentialClickBand,"plotly_click",c.event.sourceEvent):k(he.potentialClickBand,"plotly_click",c.event.sourceEvent)),he.model.dragX=null,he.dragCategoryDisplayInd!==null&&(he.parcatsViewModel.dimensions[he.dragDimensionDisplayInd].categories[he.dragCategoryDisplayInd].model.dragY=null,he.dragCategoryDisplayInd=null),he.dragDimensionDisplayInd=null,he.parcatsViewModel.dragDimension=null,he.dragHasMoved=null,he.potentialClickBand=null,ee(he.parcatsViewModel),Y(he.parcatsViewModel),c.transition().duration(300).ease("cubic-in-out").each(function(){K(he.parcatsViewModel,!0),W(he.parcatsViewModel,!0)}).each("end",function(){(de||ve)&&i.restyle(he.parcatsViewModel.graphDiv,se,[ae])})}}function te(he){for(var se,ae=he.graphDiv._fullData,ce=0;ce=0;ye--)Te+="C"+Se[ye]+","+(se[ye+1]+ce)+" "+_e[ye]+","+(se[ye]+ce)+" "+(he[ye]+ae[ye])+","+(se[ye]+ce),Te+="l-"+ae[ye]+",0 ";return Te+"Z"}function Y(he){var se=he.dimensions,ae=he.model,ce=se.map(function(ot){return ot.categories.map(function(Ge){return Ge.y})}),de=he.model.dimensions.map(function(ot){return ot.categories.map(function(Ge){return Ge.displayInd})}),ve=he.model.dimensions.map(function(ot){return ot.displayInd}),ye=he.dimensions.map(function(ot){return ot.model.dimensionInd}),_e=se.map(function(ot){return ot.x}),Se=se.map(function(ot){return ot.width}),Te=[];for(var Pe in ae.paths)ae.paths.hasOwnProperty(Pe)&&Te.push(ae.paths[Pe]);function Ie(ot){var Ge=ot.categoryInds.map(function(ht,pt){return de[pt][ht]});return ye.map(function(ht){return Ge[ht]})}Te.sort(function(ot,Ge){var ht=Ie(ot),pt=Ie(Ge);return he.sortpaths==="backward"&&(ht.reverse(),pt.reverse()),ht.push(ot.valueInds[0]),pt.push(Ge.valueInds[0]),he.bundlecolors&&(ht.unshift(ot.rawColor),pt.unshift(Ge.rawColor)),htpt?1:0});for(var ze=new Array(Te.length),De=se[0].model.count,He=se[0].categories.map(function(ot){return ot.height}).reduce(function(ot,Ge){return ot+Ge}),Ve=0;Ve0?He*(Oe.count/De):0;for(var ke,Le=new Array(ce.length),We=0;We1?(he.width-80-16)/(ce-1):0)*de;var ve,ye,_e,Se,Te,Pe=[],Ie=he.model.maxCats,ze=se.categories.length,De=se.count,He=he.height-8*(Ie-1),Ve=8*(Ie-ze)/2,$e=se.categories.map(function(Oe){return{displayInd:Oe.displayInd,categoryInd:Oe.categoryInd}});for($e.sort(function(Oe,ke){return Oe.displayInd-ke.displayInd}),Te=0;Te0?ye.count/De*He:0,_e={key:ye.valueInds[0],model:ye,width:16,height:ve,y:ye.dragY!==null?ye.dragY:Ve,bands:[],parcatsViewModel:he},Ve=Ve+ve+8,Pe.push(_e);return{key:se.dimensionInd,x:se.dragX!==null?se.dragX:ae,y:0,width:16,model:se,categories:Pe,parcatsViewModel:he,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}d.exports=function(he,se,ae,ce){h(ae,he,ce,se)}},60268:function(d,l,n){var c=n(51036);d.exports=function(b,i,O,w){var y=b._fullLayout,p=y._paper,a=y._size;c(b,p,i,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},O,w)}},82296:function(d,l,n){var c=n(49084),b=n(94724),i=n(25376),O=n(86968).u,w=n(92880).extendFlat,y=n(31780).templatedArray;d.exports={domain:O({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:i({editType:"plot"}),tickfont:i({editType:"plot"}),rangefont:i({editType:"plot"}),dimensions:y("dimension",{label:{valType:"string",editType:"plot"},tickvals:w({},b.tickvals,{editType:"plot"}),ticktext:w({},b.ticktext,{editType:"plot"}),tickformat:w({},b.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:w({editType:"calc"},c("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}},71864:function(d,l,n){var c=n(30140),b=n(33428),i=n(71688).keyFun,O=n(71688).repeat,w=n(3400).sorterAsc,y=n(3400).strTranslate,p=c.bar.snapRatio;function a(z,$){return z*(1-p)+$*p}var u=c.bar.snapClose;function h(z,$){return z*(1-u)+$*u}function m(z,$,Q,j){if(function(me,he){for(var se=0;se=he[se][0]&&me<=he[se][1])return!0;return!1}(Q,j))return Q;var U=z?-1:1,X=0,te=$.length-1;if(U<0){var W=X;X=te,te=W}for(var K=$[X],oe=K,q=X;U*q$){Y=Q;break}}if(U=oe,isNaN(U)&&(U=isNaN(q)||isNaN(Y)?isNaN(q)?Y:q:$-K[q][1]de[1]+ye||ve=.9*de[1]+.1*de[0]?"n":ve<=.9*de[0]+.1*de[1]?"s":"ns"}(me,$);he&&(X.interval=W[U],X.intervalPix=me,X.region=he)}}if(z.ordinal&&!X.region){var se=z.unitTickvals,ae=z.unitToPaddedPx.invert($);for(Q=0;Q=ce[0]&&ae<=ce[1]){X.clickableOrdinalRange=ce;break}}}return X}function E(z,$){b.event.sourceEvent.stopPropagation();var Q=$.height-b.mouse(z)[1]-2*c.verticalPadding,j=$.brush.svgBrush;j.wasDragged=!0,j._dragging=!0,j.grabbingBar?j.newExtent=[Q-j.grabPoint,Q+j.barLength-j.grabPoint].map($.unitToPaddedPx.invert):j.newExtent=[j.startExtent,$.unitToPaddedPx.invert(Q)].sort(w),$.brush.filterSpecified=!0,j.extent=j.stayingIntervals.concat([j.newExtent]),j.brushCallback($),M(z.parentNode)}function C(z,$){var Q=T($,$.height-b.mouse(z)[1]-2*c.verticalPadding),j="crosshair";Q.clickableOrdinalRange?j="pointer":Q.region&&(j=Q.region+"-resize"),b.select(document.body).style("cursor",j)}function L(z){z.on("mousemove",function($){b.event.preventDefault(),$.parent.inBrushDrag||C(this,$)}).on("mouseleave",function($){$.parent.inBrushDrag||x()}).call(b.behavior.drag().on("dragstart",function($){(function(Q,j){b.event.sourceEvent.stopPropagation();var U=j.height-b.mouse(Q)[1]-2*c.verticalPadding,X=j.unitToPaddedPx.invert(U),te=j.brush,W=T(j,U),K=W.interval,oe=te.svgBrush;if(oe.wasDragged=!1,oe.grabbingBar=W.region==="ns",oe.grabbingBar){var q=K.map(j.unitToPaddedPx);oe.grabPoint=U-q[0]-c.verticalPadding,oe.barLength=q[1]-q[0]}oe.clickableOrdinalRange=W.clickableOrdinalRange,oe.stayingIntervals=j.multiselect&&te.filterSpecified?te.filter.getConsolidated():[],K&&(oe.stayingIntervals=oe.stayingIntervals.filter(function(Y){return Y[0]!==K[0]&&Y[1]!==K[1]})),oe.startExtent=W.region?K[W.region==="s"?1:0]:X,j.parent.inBrushDrag=!0,oe.brushStartCallback()})(this,$)}).on("drag",function($){E(this,$)}).on("dragend",function($){(function(Q,j){var U=j.brush,X=U.filter,te=U.svgBrush;te._dragging||(C(Q,j),E(Q,j),j.brush.svgBrush.wasDragged=!1),te._dragging=!1,b.event.sourceEvent.stopPropagation();var W=te.grabbingBar;if(te.grabbingBar=!1,te.grabLocation=void 0,j.parent.inBrushDrag=!1,x(),!te.wasDragged)return te.wasDragged=void 0,te.clickableOrdinalRange?U.filterSpecified&&j.multiselect?te.extent.push(te.clickableOrdinalRange):(te.extent=[te.clickableOrdinalRange],U.filterSpecified=!0):W?(te.extent=te.stayingIntervals,te.extent.length===0&&k(U)):k(U),te.brushCallback(j),M(Q.parentNode),void te.brushEndCallback(U.filterSpecified?X.getConsolidated():[]);var K=function(){X.set(X.getConsolidated())};if(j.ordinal){var oe=j.unitTickvals;oe[oe.length-1]te.newExtent[0];te.extent=te.stayingIntervals.concat(q?[te.newExtent]:[]),te.extent.length||k(U),te.brushCallback(j),q?M(Q.parentNode,K):(K(),M(Q.parentNode))}else K();te.brushEndCallback(U.filterSpecified?X.getConsolidated():[])})(this,$)}))}function D(z,$){return z[0]-$[0]}function k(z){z.filterSpecified=!1,z.svgBrush.extent=[[-1/0,1/0]]}function I(z){for(var $,Q=z.slice(),j=[],U=Q.shift();U;){for($=U.slice();(U=Q.shift())&&U[0]<=$[1];)$[1]=Math.max($[1],U[1]);j.push($)}return j.length===1&&j[0][0]>j[0][1]&&(j=[]),j}d.exports={makeBrush:function(z,$,Q,j,U,X){var te,W=function(){var K,oe,q=[];return{set:function(Y){(q=Y.map(function(ee){return ee.slice().sort(w)}).sort(D)).length===1&&q[0][0]===-1/0&&q[0][1]===1/0&&(q=[[0,-1]]),K=I(q),oe=q.reduce(function(ee,me){return[Math.min(ee[0],me[0]),Math.max(ee[1],me[1])]},[1/0,-1/0])},get:function(){return q.slice()},getConsolidated:function(){return K},getBounds:function(){return oe}}}();return W.set(Q),{filter:W,filterSpecified:$,svgBrush:{extent:[],brushStartCallback:j,brushCallback:(te=U,function(K){var oe=K.brush,q=function(ee){return ee.svgBrush.extent.map(function(me){return me.slice()})}(oe),Y=q.slice();oe.filter.set(Y),te()}),brushEndCallback:X}}},ensureAxisBrush:function(z,$,Q){var j=z.selectAll("."+c.cn.axisBrush).data(O,i);j.enter().append("g").classed(c.cn.axisBrush,!0),function(U,X,te){var W=te._context.staticPlot,K=U.selectAll(".background").data(O);K.enter().append("rect").classed("background",!0).call(v).call(_).style("pointer-events",W?"none":"auto").attr("transform",y(0,c.verticalPadding)),K.call(L).attr("height",function(Y){return Y.height-c.verticalPadding});var oe=U.selectAll(".highlight-shadow").data(O);oe.enter().append("line").classed("highlight-shadow",!0).attr("x",-c.bar.width/2).attr("stroke-width",c.bar.width+c.bar.strokeWidth).attr("stroke",X).attr("opacity",c.bar.strokeOpacity).attr("stroke-linecap","butt"),oe.attr("y1",function(Y){return Y.height}).call(R);var q=U.selectAll(".highlight").data(O);q.enter().append("line").classed("highlight",!0).attr("x",-c.bar.width/2).attr("stroke-width",c.bar.width-c.bar.strokeWidth).attr("stroke",c.bar.fillColor).attr("opacity",c.bar.fillOpacity).attr("stroke-linecap","butt"),q.attr("y1",function(Y){return Y.height}).call(R)}(j,$,Q)},cleanRanges:function(z,$){if(Array.isArray(z[0])?(z=z.map(function(j){return j.sort(w)}),z=$.multiselect?I(z.sort(D)):[z[0]]):z=[z.sort(w)],$.tickvals){var Q=$.tickvals.slice().sort(w);if(!(z=z.map(function(j){var U=[m(0,Q,j[0],[]),m(1,Q,j[1],[])];if(U[1]>U[0])return U}).filter(function(j){return j})).length)return}return z.length>1?z:z[0]}}},61664:function(d,l,n){d.exports={attributes:n(82296),supplyDefaults:n(60664),calc:n(95044),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:n(19976),categories:["gl","regl","noOpacity","noHover"],meta:{}}},19976:function(d,l,n){var c=n(33428),b=n(84888)._M,i=n(24196),O=n(9616);l.name="parcoords",l.plot=function(w){var y=b(w.calcdata,"parcoords")[0];y.length&&i(w,y)},l.clean=function(w,y,p,a){var u=a._has&&a._has("parcoords"),h=y._has&&y._has("parcoords");u&&!h&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())},l.toSVG=function(w){var y=w._fullLayout._glimages,p=c.select(w).selectAll(".svg-container");p.filter(function(a,u){return u===p.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus").each(function(){var a=this,u=a.toDataURL("image/png");y.append("svg:image").attr({xmlns:O.svg,"xlink:href":u,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}),window.setTimeout(function(){c.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}},95044:function(d,l,n){var c=n(3400).isArrayOrTypedArray,b=n(8932),i=n(71688).wrap;d.exports=function(O,w){var y,p;return b.hasColorscale(w,"line")&&c(w.line.color)?(y=w.line.color,p=b.extractOpts(w.line).colorscale,b.calc(O,w,{vals:y,containerStr:"line",cLetter:"c"})):(y=function(a){for(var u=new Array(a),h=0;hu&&(c.log("parcoords traces support up to "+u+" dimensions at the moment"),R.splice(u));var M=w(v,_,{name:"dimensions",layout:A,handleItemDefaults:m}),T=function(C,L,D,k,I){var z=I("line.color",D);if(b(C,"line")&&c.isArrayOrTypedArray(z)){if(z.length)return I("line.colorscale"),i(C,L,k,I,{prefix:"line.",cLetter:"c"}),z.length;L.line.color=D}return 1/0}(v,_,S,A,x);O(_,A,x),Array.isArray(M)&&M.length||(_.visible=!1),h(_,M,"values",T);var E={family:A.font.family,size:Math.round(A.font.size/1.2),color:A.font.color};c.coerceFont(x,"labelfont",E),c.coerceFont(x,"tickfont",E),c.coerceFont(x,"rangefont",E),x("labelangle"),x("labelside"),x("unselected.line.color"),x("unselected.line.opacity")}},95724:function(d,l,n){var c=n(3400).isTypedArray;l.convertTypedArray=function(b){return c(b)?Array.prototype.slice.call(b):b},l.isOrdinal=function(b){return!!b.tickvals},l.isVisible=function(b){return b.visible||!("visible"in b)}},29928:function(d,l,n){var c=n(61664);c.plot=n(24196),d.exports=c},51352:function(d,l,n){var c=n(26444),b=c([`precision highp float; #define GLSLIFY 1 varying vec4 fragColor; @@ -150,7 +150,7 @@ void main() { `)),Se.push({type:"Feature",geometry:{type:"Point",coordinates:Pe.lonlat},properties:{symbol:ve(Te),angle:ye(Te),text:Ie}})}}return{type:"FeatureCollection",features:Se}}(T,M),b.extendFlat(W.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),Q&&(b.extendFlat(W.layout,{"icon-size":C.marker.size/10}),"angle"in C.marker&&C.marker.angle!=="auto"&&b.extendFlat(W.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),W.layout["icon-allow-overlap"]=C.marker.allowoverlap,b.extendFlat(W.paint,{"icon-opacity":C.opacity*C.marker.opacity,"icon-color":C.marker.color})),z)){var q=(C.marker||{}).size,Y=u(C.textposition,q);b.extendFlat(W.layout,{"text-size":C.textfont.size,"text-anchor":Y.anchor,"text-offset":Y.offset,"text-font":C.textfont.family.split(", ")}),b.extendFlat(W.paint,{"text-color":C.textfont.color,"text-opacity":C.opacity})}return K}},15752:function(d,l,n){var c=n(3400),b=n(43028),i=n(74428),O=n(66828),w=n(124),y=n(70840),p=n(31512),a=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extra Bold Italic","Open Sans Extra Bold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];d.exports=function(u,h,m,v){function _(L,D){return c.coerce(u,h,p,L,D)}function S(L,D){return c.coerce2(u,h,p,L,D)}var A=function(L,D,k){var I=k("lon")||[],z=k("lat")||[],$=Math.min(I.length,z.length);return D._length=$,$}(0,h,_);if(A){if(_("text"),_("texttemplate"),_("hovertext"),_("hovertemplate"),_("mode"),_("below"),b.hasMarkers(h)){i(u,h,m,v,_,{noLine:!0,noAngle:!0}),_("marker.allowoverlap"),_("marker.angle");var x=h.marker;x.symbol!=="circle"&&(c.isArrayOrTypedArray(x.size)&&(x.size=x.size[0]),c.isArrayOrTypedArray(x.color)&&(x.color=x.color[0]))}b.hasLines(h)&&(O(u,h,m,v,_,{noDash:!0}),_("connectgaps"));var R=S("cluster.maxzoom"),M=S("cluster.step"),T=S("cluster.color",h.marker&&h.marker.color||m),E=S("cluster.size"),C=S("cluster.opacity");_("cluster.enabled",R!==!1||M!==!1||T!==!1||E!==!1||C!==!1),b.hasText(h)&&w(u,h,v,_,{noSelect:!0,font:{family:a.indexOf(v.font.family)!==-1?v.font.family:"Open Sans Regular",size:v.font.size,color:v.font.color}}),_("fill"),h.fill!=="none"&&y(u,h,m,_),c.coerceSelectionMarkerOpacity(h,_)}else h.visible=!1}},37920:function(d){d.exports=function(l,n){return l.lon=n.lon,l.lat=n.lat,l}},11960:function(d,l,n){var c=n(54460);d.exports=function(b,i,O){var w={},y=O[i.subplot]._subplot.mockAxis,p=b.lonlat;return w.lonLabel=c.tickText(y,y.c2l(p[0]),!0).text,w.latLabel=c.tickText(y,y.c2l(p[1]),!0).text,w}},63312:function(d,l,n){var c=n(93024),b=n(3400),i=n(44928),O=b.fillText,w=n(39032).BADNUM,y=n(47552).traceLayerPrefix;function p(a,u,h){if(!a.hovertemplate){var m=(u.hi||a.hoverinfo).split("+"),v=m.indexOf("all")!==-1,_=m.indexOf("lon")!==-1,S=m.indexOf("lat")!==-1,A=u.lonlat,x=[];return v||_&&S?x.push("("+R(A[1])+", "+R(A[0])+")"):_?x.push(h.lon+R(A[0])):S&&x.push(h.lat+R(A[1])),(v||m.indexOf("text")!==-1)&&O(u,a,x),x.join("
    ")}function R(M){return M+"°"}}d.exports={hoverPoints:function(a,u,h){var m=a.cd,v=m[0].trace,_=a.xa,S=a.ya,A=a.subplot,x=[],R=y+v.uid+"-circle",M=v.cluster&&v.cluster.enabled;if(M){var T=A.map.queryRenderedFeatures(null,{layers:[R]});x=T.map(function(U){return U.id})}var E=360*(u>=0?Math.floor((u+180)/360):Math.ceil((u-180)/360)),C=u-E;if(c.getClosest(m,function(U){var X=U.lonlat;if(X[0]===w||M&&x.indexOf(U.i+1)===-1)return 1/0;var te=b.modHalf(X[0],360),W=X[1],K=A.project([te,W]),oe=K.x-_.c2p([C,W]),q=K.y-S.c2p([te,h]),Y=Math.max(3,U.mrc||0);return Math.max(Math.sqrt(oe*oe+q*q)-Y,1-3/Y)},a),a.index!==!1){var L=m[a.index],D=L.lonlat,k=[b.modHalf(D[0],360)+E,D[1]],I=_.c2p(k),z=S.c2p(k),$=L.mrc||1;a.x0=I-$,a.x1=I+$,a.y0=z-$,a.y1=z+$;var Q={};Q[v.subplot]={_subplot:A};var j=v._module.formatLabels(L,v,Q);return a.lonLabel=j.lonLabel,a.latLabel=j.latLabel,a.color=i(v,L),a.extraText=p(v,L,m[0].t.labels),a.hovertemplate=v.hovertemplate,[a]}},getExtraText:p}},11572:function(d,l,n){d.exports={attributes:n(31512),supplyDefaults:n(15752),colorbar:n(5528),formatLabels:n(11960),calc:n(25212),plot:n(9660),hoverPoints:n(63312).hoverPoints,eventData:n(37920),selectPoints:n(404),styleOnSelect:function(c,b){b&&b[0].trace._glTrace.update(b)},moduleType:"trace",name:"scattermapbox",basePlotModule:n(33688),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}},9660:function(d,l,n){var c=n(3400),b=n(59392),i=n(47552).traceLayerPrefix,O={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function w(p,a,u,h){this.type="scattermapbox",this.subplot=p,this.uid=a,this.clusterEnabled=u,this.isHidden=h,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:i+a+"-fill",line:i+a+"-line",circle:i+a+"-circle",symbol:i+a+"-symbol",cluster:i+a+"-cluster",clusterCount:i+a+"-cluster-count"},this.below=null}var y=w.prototype;y.addSource=function(p,a,u){var h={type:"geojson",data:a.geojson};u&&u.enabled&&c.extendFlat(h,{cluster:!0,clusterMaxZoom:u.maxzoom});var m=this.subplot.map.getSource(this.sourceIds[p]);m?m.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[p],h)},y.setSourceData=function(p,a){this.subplot.map.getSource(this.sourceIds[p]).setData(a.geojson)},y.addLayer=function(p,a,u){var h={type:a.type,id:this.layerIds[p],source:this.sourceIds[p],layout:a.layout,paint:a.paint};a.filter&&(h.filter=a.filter);for(var m,v=this.layerIds[p],_=this.subplot.getMapLayers(),S=0;S<_.length;S++)if(_[S].id===v){m=!0;break}m?(this.subplot.setOptions(v,"setLayoutProperty",h.layout),h.layout.visibility==="visible"&&this.subplot.setOptions(v,"setPaintProperty",h.paint)):this.subplot.addLayer(h,u)},y.update=function(p){var a=p[0].trace,u=this.subplot,h=u.map,m=b(u.gd,p),v=u.belowLookup["trace-"+this.uid],_=!(!a.cluster||!a.cluster.enabled),S=!!this.clusterEnabled,A=this;function x(C){S?function(L){for(var D=O.cluster,k=D.length-1;k>=0;k--){var I=D[k];h.removeLayer(A.layerIds[I])}L||h.removeSource(A.sourceIds.circle)}(C):function(L){for(var D=O.nonCluster,k=D.length-1;k>=0;k--){var I=D[k];h.removeLayer(A.layerIds[I]),L||h.removeSource(A.sourceIds[I])}}(C)}function R(C){_?function(L){L||A.addSource("circle",m.circle,a.cluster);for(var D=O.cluster,k=0;k=0;u--){var h=a[u];p.removeLayer(this.layerIds[h]),p.removeSource(this.sourceIds[h])}},d.exports=function(p,a){var u,h,m,v=a[0].trace,_=v.cluster&&v.cluster.enabled,S=v.visible!==!0,A=new w(p,v.uid,_,S),x=b(p.gd,a),R=A.below=p.belowLookup["trace-"+v.uid];if(_)for(A.addSource("circle",x.circle,v.cluster),u=0;u")}}d.exports={hoverPoints:function(i,O,w,y){var p=c(i,O,w,y);if(p&&p[0].index!==!1){var a=p[0];if(a.index===void 0)return p;var u=i.subplot,h=a.cd[a.index],m=a.trace;if(u.isPtInside(h))return a.xLabelVal=void 0,a.yLabelVal=void 0,b(h,m,u,a),a.hovertemplate=m.hovertemplate,p}},makeHoverPointText:b}},76924:function(d,l,n){d.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:n(40872),categories:["polar","symbols","showLegend","scatter-like"],attributes:n(8319),supplyDefaults:n(85968).supplyDefaults,colorbar:n(5528),formatLabels:n(22852),calc:n(58320),plot:n(43456),style:n(49224).style,styleOnSelect:n(49224).styleOnSelect,hoverPoints:n(8504).hoverPoints,selectPoints:n(91560),meta:{}}},43456:function(d,l,n){var c=n(96504),b=n(39032).BADNUM;d.exports=function(i,O,w){for(var y=O.layers.frontplot.select("g.scatterlayer"),p=O.xaxis,a=O.yaxis,u={xaxis:p,yaxis:a,plot:O.framework,layerClipId:O._hasClipOnAxisFalse?O.clipIds.forTraces:null},h=O.radialAxis,m=O.angularAxis,v=0;v=p&&(L.marker.cluster=M.tree),L.marker&&(L.markerSel.positions=L.markerUnsel.positions=L.marker.positions=I),L.line&&I.length>1&&y.extendFlat(L.line,w.linePositions(a,R,I)),L.text&&(y.extendFlat(L.text,{positions:I},w.textPosition(a,R,L.text,L.marker)),y.extendFlat(L.textSel,{positions:I},w.textPosition(a,R,L.text,L.markerSel)),y.extendFlat(L.textUnsel,{positions:I},w.textPosition(a,R,L.text,L.markerUnsel))),L.fill&&!_.fill2d&&(_.fill2d=!0),L.marker&&!_.scatter2d&&(_.scatter2d=!0),L.line&&!_.line2d&&(_.line2d=!0),L.text&&!_.glText&&(_.glText=!0),_.lineOptions.push(L.line),_.fillOptions.push(L.fill),_.markerOptions.push(L.marker),_.markerSelectedOptions.push(L.markerSel),_.markerUnselectedOptions.push(L.markerUnsel),_.textOptions.push(L.text),_.textSelectedOptions.push(L.textSel),_.textUnselectedOptions.push(L.textUnsel),_.selectBatch.push([]),_.unselectBatch.push([]),M.x=z,M.y=$,M.rawx=z,M.rawy=$,M.r=E,M.theta=C,M.positions=I,M._scene=_,M.index=_.count,_.count++}}),i(a,u,h)}},d.exports.reglPrecompiled={}},69496:function(d,l,n){var c=n(21776).Ks,b=n(21776).Gw,i=n(92880).extendFlat,O=n(52904),w=n(45464),y=O.line;d.exports={mode:O.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:O.text,texttemplate:b({editType:"plot"},{keys:["real","imag","text"]}),hovertext:O.hovertext,line:{color:y.color,width:y.width,dash:y.dash,backoff:y.backoff,shape:i({},y.shape,{values:["linear","spline"]}),smoothing:y.smoothing,editType:"calc"},connectgaps:O.connectgaps,marker:O.marker,cliponaxis:i({},O.cliponaxis,{dflt:!1}),textposition:O.textposition,textfont:O.textfont,fill:i({},O.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:O.fillcolor,hoverinfo:i({},w.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:O.hoveron,hovertemplate:c(),selected:O.selected,unselected:O.unselected}},47507:function(d,l,n){var c=n(38248),b=n(39032).BADNUM,i=n(90136),O=n(20148),w=n(4500),y=n(16356).calcMarkerSize;d.exports=function(p,a){for(var u=p._fullLayout,h=a.subplot,m=u[h].realaxis,v=u[h].imaginaryaxis,_=m.makeCalcdata(a,"real"),S=v.makeCalcdata(a,"imag"),A=a._length,x=new Array(A),R=0;R")}}d.exports={hoverPoints:function(i,O,w,y){var p=c(i,O,w,y);if(p&&p[0].index!==!1){var a=p[0];if(a.index===void 0)return p;var u=i.subplot,h=a.cd[a.index],m=a.trace;if(u.isPtInside(h))return a.xLabelVal=void 0,a.yLabelVal=void 0,b(h,m,u,a),a.hovertemplate=m.hovertemplate,p}},makeHoverPointText:b}},95443:function(d,l,n){d.exports={moduleType:"trace",name:"scattersmith",basePlotModule:n(47788),categories:["smith","symbols","showLegend","scatter-like"],attributes:n(69496),supplyDefaults:n(76716),colorbar:n(5528),formatLabels:n(49504),calc:n(47507),plot:n(34927),style:n(49224).style,styleOnSelect:n(49224).styleOnSelect,hoverPoints:n(25292).hoverPoints,selectPoints:n(91560),meta:{}}},34927:function(d,l,n){var c=n(96504),b=n(39032).BADNUM,i=n(36416).smith;d.exports=function(O,w,y){for(var p=w.layers.frontplot.select("g.scatterlayer"),a=w.xaxis,u=w.yaxis,h={xaxis:a,yaxis:u,plot:w.framework,layerClipId:w._hasClipOnAxisFalse?w.clipIds.forTraces:null},m=0;m"),p.hovertemplate=_.hovertemplate,y}function E(C,L){M.push(C._hovertitle+": "+L)}}},34864:function(d,l,n){d.exports={attributes:n(5896),supplyDefaults:n(84256),colorbar:n(5528),formatLabels:n(90404),calc:n(34335),plot:n(88776),style:n(49224).style,styleOnSelect:n(49224).styleOnSelect,hoverPoints:n(26596),selectPoints:n(91560),eventData:n(97476),moduleType:"trace",name:"scatterternary",basePlotModule:n(19352),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},88776:function(d,l,n){var c=n(96504);d.exports=function(b,i,O){var w=i.plotContainer;w.select(".scatterlayer").selectAll("*").remove();for(var y=i.xaxis,p=i.yaxis,a={xaxis:y,yaxis:p,plot:w,layerClipId:i._hasClipOnAxisFalse?i.clipIdRelative:null},u=i.layers.frontplot.select("g.scatterlayer"),h=0;hh?C.sizeAvg||Math.max(C.size,3):i(v,E),S=0;SI&&Q||k-1,W=!0;if(O(C)||A.selectedpoints||te){var K=A._length;if(A.selectedpoints){R.selectBatch=A.selectedpoints;var oe=A.selectedpoints,q={};for(h=0;h1&&(S=T[L-1],x=E[L-1],M=C[L-1]),p=0;pS?"-":"+")+"x")).replace("y",(A>x?"-":"+")+"y")).replace("z",(R>M?"-":"+")+"z");var W=function(){L=0,U=[],X=[],te=[]};(!L||L2?_.slice(1,S-1):S===2?[(_[0]+_[1])/2]:_}function m(_){var S=_.length;return S===1?[.5,.5]:[_[1]-_[0],_[S-1]-_[S-2]]}function v(_,S){var A=_.fullSceneLayout,x=_.dataScale,R=S._len,M={};function T(he,se){var ae=A[se],ce=x[p[se]];return i.simpleMap(he,function(de){return ae.d2l(de)*ce})}if(M.vectors=y(T(S._u,"xaxis"),T(S._v,"yaxis"),T(S._w,"zaxis"),R),!R)return{positions:[],cells:[]};var E=T(S._Xs,"xaxis"),C=T(S._Ys,"yaxis"),L=T(S._Zs,"zaxis");if(M.meshgrid=[E,C,L],M.gridFill=S._gridFill,S._slen)M.startingPositions=y(T(S._startsX,"xaxis"),T(S._startsY,"yaxis"),T(S._startsZ,"zaxis"));else{for(var D=C[0],k=h(E),I=h(L),z=new Array(k.length*I.length),$=0,Q=0;Q=0};D?(A=Math.min(L.length,I.length),x=function(_e){return X(L[_e])&&te(_e)},R=function(_e){return String(L[_e])}):(A=Math.min(k.length,I.length),x=function(_e){return X(k[_e])&&te(_e)},R=function(_e){return String(k[_e])}),$&&(A=Math.min(A,z.length));for(var W=0;W1){for(var Y=i.randstr(),ee=0;ee=0){O.i=a.i;var m=w.marker;m.pattern&&m.colors&&m.pattern.shape||(m.color=h,O.color=h),c.pointStyle(i,w,y,O)}else b.fill(i,h)}},45716:function(d,l,n){var c=n(33428),b=n(24040),i=n(10624).appendArrayPointValue,O=n(93024),w=n(3400),y=n(95924),p=n(78176),a=n(69656).formatPieValue;function u(h,m,v){for(var _=h.data.data,S={curveNumber:m.index,pointNumber:_.i,data:m._input,fullData:m},A=0;A"),name:U||me("name")?D.name:void 0,color:j("hoverlabel.bgcolor")||k.color,borderColor:j("hoverlabel.bordercolor"),fontFamily:j("hoverlabel.font.family"),fontSize:j("hoverlabel.font.size"),fontColor:j("hoverlabel.font.color"),nameLength:j("hoverlabel.namelength"),textAlign:j("hoverlabel.align"),hovertemplate:U,hovertemplateLabels:q,eventData:L};M&&(ae.x0=W-E.rInscribed*E.rpx1,ae.x1=W+E.rInscribed*E.rpx1,ae.idealAlign=E.pxmid[0]<0?"left":"right"),T&&(ae.x=W,ae.idealAlign=W<0?"left":"right");var ce=[];O.loneHover(ae,{container:C._hoverlayer.node(),outerContainer:C._paper.node(),gd:v,inOut_bbox:ce}),L[0].bbox=ce[0],x._hasHoverLabel=!0}if(T){var de=h.select("path.surface");S.styleOne(de,E,D,v,{hovered:!0})}x._hasHoverEvent=!0,v.emit("plotly_hover",{points:L||[u(E,D,S.eventDataKeys)],event:c.event})}}),h.on("mouseout",function(E){var C=v._fullLayout,L=v._fullData[x.index],D=c.select(this).datum();if(x._hasHoverEvent&&(E.originalEvent=c.event,v.emit("plotly_unhover",{points:[u(D,L,S.eventDataKeys)],event:c.event}),x._hasHoverEvent=!1),x._hasHoverLabel&&(O.loneUnhover(C._hoverlayer.node()),x._hasHoverLabel=!1),T){var k=h.select("path.surface");S.styleOne(k,D,L,v,{hovered:!1})}}),h.on("click",function(E){var C=v._fullLayout,L=v._fullData[x.index],D=M&&(p.isHierarchyRoot(E)||p.isLeaf(E)),k=p.getPtId(E),I=p.isEntry(E)?p.findEntryWithChild(R,k):p.findEntryWithLevel(R,k),z=p.getPtId(I),$={points:[u(E,L,S.eventDataKeys)],event:c.event};D||($.nextLevel=z);var Q=y.triggerHandler(v,"plotly_"+x.type+"click",$);if(Q!==!1&&C.hovermode&&(v._hoverdata=[u(E,L,S.eventDataKeys)],O.click(v,c.event)),!D&&Q!==!1&&!v._dragging&&!v._transitioning){b.call("_storeDirectGUIEdit",L,C._tracePreGUI[L.uid],{level:L.level});var j={data:[{level:z}],traces:[x.index]},U={frame:{redraw:!1,duration:S.transitionTime},transition:{duration:S.transitionTime,easing:S.transitionEasing},mode:"immediate",fromcurrent:!0};O.loneUnhover(C._hoverlayer.node()),b.call("animate",v,j,U)}})}},78176:function(d,l,n){var c=n(3400),b=n(76308),i=n(93972),O=n(69656);function w(y){return y.data.data.pid}l.findEntryWithLevel=function(y,p){var a;return p&&y.eachAfter(function(u){if(l.getPtId(u)===p)return a=u.copy()}),a||y},l.findEntryWithChild=function(y,p){var a;return y.eachAfter(function(u){for(var h=u.children||[],m=0;m0)},l.getMaxDepth=function(y){return y.maxdepth>=0?y.maxdepth:1/0},l.isHeader=function(y,p){return!(l.isLeaf(y)||y.depth===p._maxDepth-1)},l.getParent=function(y,p){return l.findEntryWithLevel(y,w(p))},l.listPath=function(y,p){var a=y.parent;if(!a)return[];var u=p?[a.data[p]]:[a];return l.listPath(a,p).concat(u)},l.getPath=function(y){return l.listPath(y,"label").join("/")+"/"},l.formatValue=O.formatPieValue,l.formatPercent=function(y,p){var a=c.formatPercent(y,0);return a==="0%"&&(a=O.formatPiePercent(y,p)),a}},5621:function(d,l,n){d.exports={moduleType:"trace",name:"sunburst",basePlotModule:n(54904),categories:[],animatable:!0,attributes:n(424),layoutAttributes:n(84920),supplyDefaults:n(25244),supplyLayoutDefaults:n(28732),calc:n(3776).calc,crossTraceCalc:n(3776).crossTraceCalc,plot:n(96488).plot,style:n(85676).style,colorbar:n(5528),meta:{}}},84920:function(d){d.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}},28732:function(d,l,n){var c=n(3400),b=n(84920);d.exports=function(i,O){function w(y,p){return c.coerce(i,O,b,y,p)}w("sunburstcolorway",O.colorway),w("extendsunburstcolors")}},96488:function(d,l,n){var c=n(33428),b=n(74148),i=n(67756).qy,O=n(43616),w=n(3400),y=n(72736),p=n(82744),a=p.recordMinTextSize,u=p.clearMinTextSize,h=n(37820),m=n(69656).getRotationAngle,v=h.computeTransform,_=h.transformInsideText,S=n(85676).styleOne,A=n(60100).resizeText,x=n(45716),R=n(27328),M=n(78176);function T(C,L,D,k){var I=C._context.staticPlot,z=C._fullLayout,$=!z.uniformtext.mode&&M.hasTransition(k),Q=c.select(D).selectAll("g.slice"),j=L[0],U=j.trace,X=j.hierarchy,te=M.findEntryWithLevel(X,U.level),W=M.getMaxDepth(U),K=z._size,oe=U.domain,q=K.w*(oe.x[1]-oe.x[0]),Y=K.h*(oe.y[1]-oe.y[0]),ee=.5*Math.min(q,Y),me=j.cx=K.l+K.w*(oe.x[1]+oe.x[0])/2,he=j.cy=K.t+K.h*(1-oe.y[0])-Y/2;if(!te)return Q.remove();var se=null,ae={};$&&Q.each(function(ke){ae[M.getPtId(ke)]={rpx0:ke.rpx0,rpx1:ke.rpx1,x0:ke.x0,x1:ke.x1,transform:ke.transform},!se&&M.isEntry(ke)&&(se=ke)});var ce=function(ke){return b.partition().size([2*Math.PI,ke.height+1])(ke)}(te).descendants(),de=te.height+1,ve=0,ye=W;j.hasMultipleRoots&&M.isHierarchyRoot(te)&&(ce=ce.slice(1),de-=1,ve=1,ye+=1),ce=ce.filter(function(ke){return ke.y1<=ye});var _e=m(U.rotation);_e&&ce.forEach(function(ke){ke.x0+=_e,ke.x1+=_e});var Se=Math.min(de,W),Te=function(ke){return(ke-ve)/Se*ee},Pe=function(ke,Le){return[ke*Math.cos(Le),-ke*Math.sin(Le)]},Ie=function(ke){return w.pathAnnulus(ke.rpx0,ke.rpx1,ke.x0,ke.x1,me,he)},ze=function(ke){return me+E(ke)[0]*(ke.transform.rCenter||0)+(ke.transform.x||0)},De=function(ke){return he+E(ke)[1]*(ke.transform.rCenter||0)+(ke.transform.y||0)};(Q=Q.data(ce,M.getPtId)).enter().append("g").classed("slice",!0),$?Q.exit().transition().each(function(){var ke=c.select(this);ke.select("path.surface").transition().attrTween("d",function(Le){var We=function(Ue){var Ze,Xe=M.getPtId(Ue),tt=ae[Xe],Ee=ae[M.getPtId(te)];if(Ee){var Ne=(Ue.x1>Ee.x1?2*Math.PI:0)+_e;Ze=Ue.rpx1He?2*Math.PI:0)+_e;ot={x0:pt,x1:pt}}else ot={rpx0:ee,rpx1:ee},w.extendFlat(ot,Oe(nt));else ot={rpx0:0,rpx1:0};else ot={x0:_e,x1:_e};return i(ot,ht)}(Ne);return function(nt){return Ie(je(nt))}}):We.attr("d",Ie),Le.call(x,te,C,L,{eventDataKeys:R.eventDataKeys,transitionTime:R.CLICK_TRANSITION_TIME,transitionEasing:R.CLICK_TRANSITION_EASING}).call(M.setSliceCursor,C,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:C._transitioning}),We.call(S,ke,U,C);var Ue=w.ensureSingle(Le,"g","slicetext"),Ze=w.ensureSingle(Ue,"text","",function(Ne){Ne.attr("data-notex",1)}),Xe=w.ensureUniformFontSize(C,M.determineTextFont(U,ke,z.font));Ze.text(l.formatSliceLabel(ke,te,U,L,z)).classed("slicetext",!0).attr("text-anchor","middle").call(O.font,Xe).call(y.convertToTspans,C);var tt=O.bBox(Ze.node());ke.transform=_(tt,ke,j),ke.transform.targetX=ze(ke),ke.transform.targetY=De(ke);var Ee=function(Ne,je){var nt=Ne.transform;return v(nt,je),nt.fontSize=Xe.size,a(U.type,nt,z),w.getTextTransform(nt)};$?Ze.transition().attrTween("transform",function(Ne){var je=function(nt){var ot,Ge=ae[M.getPtId(nt)],ht=nt.transform;if(Ge)ot=Ge;else if(ot={rpx1:nt.rpx1,transform:{textPosAngle:ht.textPosAngle,scale:0,rotate:ht.rotate,rCenter:ht.rCenter,x:ht.x,y:ht.y}},se)if(nt.parent)if(He){var pt=nt.x1>He?2*Math.PI:0;ot.x0=ot.x1=pt}else w.extendFlat(ot,Oe(nt));else ot.x0=ot.x1=_e;else ot.x0=ot.x1=_e;var wt=i(ot.transform.textPosAngle,nt.transform.textPosAngle),Dt=i(ot.rpx1,nt.rpx1),It=i(ot.x0,nt.x0),qt=i(ot.x1,nt.x1),en=i(ot.transform.scale,ht.scale),Gt=i(ot.transform.rotate,ht.rotate),Ct=ht.rCenter===0?3:ot.transform.rCenter===0?1/3:1,_t=i(ot.transform.rCenter,ht.rCenter);return function(nn){var gn=Dt(nn),bn=It(nn),mn=qt(nn),vt=function(lt){return _t(Math.pow(lt,Ct))}(nn),bt={pxmid:Pe(gn,(bn+mn)/2),rpx1:gn,transform:{textPosAngle:wt(nn),rCenter:vt,x:ht.x,y:ht.y}};return a(U.type,ht,z),{transform:{targetX:ze(bt),targetY:De(bt),scale:en(nn),rotate:Gt(nn),rCenter:vt}}}}(Ne);return function(nt){return Ee(je(nt),tt)}}):Ze.attr("transform",Ee(ke,tt))})}function E(C){return L=C.rpx1,D=C.transform.textPosAngle,[L*Math.sin(D),-L*Math.cos(D)];var L,D}l.plot=function(C,L,D,k){var I,z,$=C._fullLayout,Q=$._sunburstlayer,j=!D,U=!$.uniformtext.mode&&M.hasTransition(D);u("sunburst",$),(I=Q.selectAll("g.trace.sunburst").data(L,function(X){return X[0].trace.uid})).enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),I.order(),U?(k&&(z=k()),c.transition().duration(D.duration).ease(D.easing).each("end",function(){z&&z()}).each("interrupt",function(){z&&z()}).each(function(){Q.selectAll("g.trace").each(function(X){T(C,X,this,D)})})):(I.each(function(X){T(C,X,this,D)}),$.uniformtext.mode&&A(C,$._sunburstlayer.selectAll(".trace"),"sunburst")),j&&I.exit().remove()},l.formatSliceLabel=function(C,L,D,k,I){var z=D.texttemplate,$=D.textinfo;if(!(z||$&&$!=="none"))return"";var Q=I.separators,j=k[0],U=C.data.data,X=j.hierarchy,te=M.isHierarchyRoot(C),W=M.getParent(X,C),K=M.getValue(C);if(!z){var oe,q=$.split("+"),Y=function(ye){return q.indexOf(ye)!==-1},ee=[];if(Y("label")&&U.label&&ee.push(U.label),U.hasOwnProperty("v")&&Y("value")&&ee.push(M.formatValue(U.v,Q)),!te){Y("current path")&&ee.push(M.getPath(C.data));var me=0;Y("percent parent")&&me++,Y("percent entry")&&me++,Y("percent root")&&me++;var he=me>1;if(me){var se,ae=function(ye){oe=M.formatPercent(se,Q),he&&(oe+=" of "+ye),ee.push(oe)};Y("percent parent")&&!te&&(se=K/M.getValue(W),ae("parent")),Y("percent entry")&&(se=K/M.getValue(L),ae("entry")),Y("percent root")&&(se=K/M.getValue(X),ae("root"))}}return Y("text")&&(oe=w.castOption(D,U.i,"text"),w.isValidTextValue(oe)&&ee.push(oe)),ee.join("
    ")}var ce=w.castOption(D,U.i,"texttemplate");if(!ce)return"";var de={};U.label&&(de.label=U.label),U.hasOwnProperty("v")&&(de.value=U.v,de.valueLabel=M.formatValue(U.v,Q)),de.currentPath=M.getPath(C.data),te||(de.percentParent=K/M.getValue(W),de.percentParentLabel=M.formatPercent(de.percentParent,Q),de.parent=M.getPtLabel(W)),de.percentEntry=K/M.getValue(L),de.percentEntryLabel=M.formatPercent(de.percentEntry,Q),de.entry=M.getPtLabel(L),de.percentRoot=K/M.getValue(X),de.percentRootLabel=M.formatPercent(de.percentRoot,Q),de.root=M.getPtLabel(X),U.hasOwnProperty("color")&&(de.color=U.color);var ve=w.castOption(D,U.i,"text");return(w.isValidTextValue(ve)||ve==="")&&(de.text=ve),de.customdata=w.castOption(D,U.i,"customdata"),w.texttemplateString(ce,de,I._d3locale,de,D._meta||{})}},85676:function(d,l,n){var c=n(33428),b=n(76308),i=n(3400),O=n(82744).resizeText,w=n(60404);function y(p,a,u,h){var m=a.data.data,v=!a.children,_=m.i,S=i.castOption(u,_,"marker.line.color")||b.defaultLine,A=i.castOption(u,_,"marker.line.width")||0;p.call(w,a,u,h).style("stroke-width",A).call(b.stroke,S).style("opacity",v?u.leaf.opacity:null)}d.exports={style:function(p){var a=p._fullLayout._sunburstlayer.selectAll(".trace");O(p,a,"sunburst"),a.each(function(u){var h=c.select(this),m=u[0].trace;h.style("opacity",m.opacity),h.selectAll("path.surface").each(function(v){c.select(this).call(y,v,m,p)})})},styleOne:y}},16716:function(d,l,n){var c=n(76308),b=n(49084),i=n(29736).axisHoverFormat,O=n(21776).Ks,w=n(45464),y=n(92880).extendFlat,p=n(67824).overrideAll;function a(h){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:{valType:"boolean",dflt:!1},y:{valType:"boolean",dflt:!1},z:{valType:"boolean",dflt:!1}},color:{valType:"color",dflt:c.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:c.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var u=d.exports=p(y({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:O(),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},b("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:a(),y:a(),z:a()},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},_deprecated:{zauto:y({},b.zauto,{}),zmin:y({},b.zmin,{}),zmax:y({},b.zmax,{})},hoverinfo:y({},w.hoverinfo),showlegend:y({},w.showlegend,{dflt:!1})}),"calc","nested");u.x.editType=u.y.editType=u.z.editType="calc+clearAxisTypes",u.transforms=void 0},56576:function(d,l,n){var c=n(47128);d.exports=function(b,i){i.surfacecolor?c(b,i,{vals:i.surfacecolor,containerStr:"",cLetter:"c"}):c(b,i,{vals:i.z,containerStr:"",cLetter:"c"})}},79164:function(d,l,n){var c=n(67792).gl_surface3d,b=n(67792).ndarray,i=n(67792).ndarray_linear_interpolate.d2,O=n(70448),w=n(11240),y=n(3400).isArrayOrTypedArray,p=n(33040).parseColorScale,a=n(43080),u=n(8932).extractOpts;function h(D,k,I){this.scene=D,this.uid=I,this.surface=k,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var m=h.prototype;m.getXat=function(D,k,I,z){var $=y(this.data.x)?y(this.data.x[0])?this.data.x[k][D]:this.data.x[D]:D;return I===void 0?$:z.d2l($,0,I)},m.getYat=function(D,k,I,z){var $=y(this.data.y)?y(this.data.y[0])?this.data.y[k][D]:this.data.y[k]:k;return I===void 0?$:z.d2l($,0,I)},m.getZat=function(D,k,I,z){var $=this.data.z[k][D];return $===null&&this.data.connectgaps&&this.data._interpolatedZ&&($=this.data._interpolatedZ[k][D]),I===void 0?$:z.d2l($,0,I)},m.handlePick=function(D){if(D.object===this.surface){var k=(D.data.index[0]-1)/this.dataScaleX-1,I=(D.data.index[1]-1)/this.dataScaleY-1,z=Math.max(Math.min(Math.round(k),this.data.z[0].length-1),0),$=Math.max(Math.min(Math.round(I),this.data._ylength-1),0);D.index=[z,$],D.traceCoordinate=[this.getXat(z,$),this.getYat(z,$),this.getZat(z,$)],D.dataCoordinate=[this.getXat(z,$,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(z,$,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(z,$,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var Q=0;Q<3;Q++)D.dataCoordinate[Q]!=null&&(D.dataCoordinate[Q]*=this.scene.dataScale[Q]);var j=this.data.hovertext||this.data.text;return y(j)&&j[$]&&j[$][z]!==void 0?D.textLabel=j[$][z]:D.textLabel=j||"",D.data.dataCoordinate=D.dataCoordinate.slice(),this.surface.highlight(D.data),this.scene.glplot.spikes.position=D.dataCoordinate,!0}};var v=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function _(D,k){if(D0){I=v[z];break}return I}function x(D,k){if(!(D<1||k<1)){for(var I=S(D),z=S(k),$=1,Q=0;QT;)I--,I/=A(I),++I1?z:1},m.refineCoords=function(D){for(var k=this.dataScaleX,I=this.dataScaleY,z=D[0].shape[0],$=D[0].shape[1],Q=0|Math.floor(D[0].shape[0]*k+1),j=0|Math.floor(D[0].shape[1]*I+1),U=1+z+1,X=1+$+1,te=b(new Float32Array(U*X),[U,X]),W=[1/k,0,0,0,1/I,0,0,0,1],K=0;K0&&this.contourStart[D]!==null&&this.contourEnd[D]!==null&&this.contourEnd[D]>this.contourStart[D]))for($[D]=!0,k=this.contourStart[D];k$&&(this.minValues[k]=$),this.maxValues[k]<$&&(this.maxValues[k]=$));for(k=0;k<3;k++)this.objectOffset[k]=.5*(this.minValues[k]+this.maxValues[k]);for(k=0;k<3;k++)for(I=0;I",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}},55992:function(d,l,n){var c=n(23536),b=n(92880).extendFlat,i=n(38248),O=n(38116).isTypedArray,w=n(38116).isArrayOrTypedArray;function y(_){if(w(_)){for(var S=0,A=0;A<_.length;A++)S=Math.max(S,y(_[A]));return S}return _}function p(_,S){return _+S}function a(_){var S,A=_.slice(),x=1/0,R=0;for(S=0;S=S||L===_.length-1)&&(x[R]=T,T.key=C++,T.firstRowIndex=E,T.lastRowIndex=L,T={firstRowIndex:null,lastRowIndex:null,rows:[]},R+=M,E=L+1,M=0);return x}d.exports=function(_,S){var A=a(S.cells.values),x=function(K){return K.slice(S.header.values.length,K.length)},R=a(S.header.values);R.length&&!R[0].length&&(R[0]=[""],R=a(R));var M=R.concat(x(A).map(function(){return u((R[0]||[""]).length)})),T=S.domain,E=Math.floor(_._fullLayout._size.w*(T.x[1]-T.x[0])),C=Math.floor(_._fullLayout._size.h*(T.y[1]-T.y[0])),L=S.header.values.length?M[0].map(function(){return S.header.height}):[c.emptyHeaderHeight],D=A.length?A[0].map(function(){return S.cells.height}):[],k=L.reduce(p,0),I=v(D,C-k+c.uplift),z=m(v(L,k),[]),$=m(I,z),Q={},j=S._fullInput.columnorder;w(j)&&(j=Array.from(j)),j=j.concat(x(A.map(function(K,oe){return oe})));var U=M.map(function(K,oe){var q=w(S.columnwidth)?S.columnwidth[Math.min(oe,S.columnwidth.length-1)]:S.columnwidth;return i(q)?Number(q):1}),X=U.reduce(p,0);U=U.map(function(K){return K/X*E});var te=Math.max(y(S.header.line.width),y(S.cells.line.width)),W={key:S.uid+_._context.staticPlot,translateX:T.x[0]*_._fullLayout._size.w,translateY:_._fullLayout._size.h*(1-T.y[1]),size:_._fullLayout._size,width:E,maxLineWidth:te,height:C,columnOrder:j,groupHeight:C,rowBlocks:$,headerRowBlocks:z,scrollY:0,cells:b({},S.cells,{values:A}),headerCells:b({},S.header,{values:M}),gdColumns:M.map(function(K){return K[0]}),gdColumnsOriginalOrder:M.map(function(K){return K[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:M.map(function(K,oe){var q=Q[K];return Q[K]=(q||0)+1,{key:K+"__"+Q[K],label:K,specIndex:oe,xIndex:j[oe],xScale:h,x:void 0,calcdata:void 0,columnWidth:U[oe]}})};return W.columns.forEach(function(K){K.calcdata=W,K.x=h(K)}),W}},53056:function(d,l,n){var c=n(92880).extendFlat;l.splitToPanels=function(b){var i=[0,0],O=c({},b,{key:"header",type:"header",page:0,prevPages:i,currentRepaint:[null,null],dragHandle:!0,values:b.calcdata.headerCells.values[b.specIndex],rowBlocks:b.calcdata.headerRowBlocks,calcdata:c({},b.calcdata,{cells:b.calcdata.headerCells})});return[c({},b,{key:"cells1",type:"cells",page:0,prevPages:i,currentRepaint:[null,null],dragHandle:!1,values:b.calcdata.cells.values[b.specIndex],rowBlocks:b.calcdata.rowBlocks}),c({},b,{key:"cells2",type:"cells",page:1,prevPages:i,currentRepaint:[null,null],dragHandle:!1,values:b.calcdata.cells.values[b.specIndex],rowBlocks:b.calcdata.rowBlocks}),O]},l.splitToCells=function(b){var i=function(O){var w=O.rowBlocks[O.page],y=w?w.rows[0].rowIndex:0;return[y,w?y+w.rows.length:0]}(b);return(b.values||[]).slice(i[0],i[1]).map(function(O,w){return{keyWithinBlock:w+(typeof O=="string"&&O.match(/[<$&> ]/)?"_keybuster_"+Math.random():""),key:i[0]+w,column:b,calcdata:b.calcdata,page:b.page,rowBlocks:b.rowBlocks,value:O}})}},53212:function(d,l,n){var c=n(3400),b=n(60520),i=n(86968).Q;d.exports=function(O,w,y,p){function a(u,h){return c.coerce(O,w,b,u,h)}i(w,p,a),a("columnwidth"),a("header.values"),a("header.format"),a("header.align"),a("header.prefix"),a("header.suffix"),a("header.height"),a("header.line.width"),a("header.line.color"),a("header.fill.color"),c.coerceFont(a,"header.font",c.extendFlat({},p.font)),function(u,h){for(var m=u.columnorder||[],v=u.header.values.length,_=m.slice(0,v),S=_.slice().sort(function(R,M){return R-M}),A=_.map(function(R){return S.indexOf(R)}),x=A.length;x/i),Se=!ye||_e;ae.mayHaveMarkup=ye&&ve.match(/[<&>]/);var Te,Pe=typeof(Te=ve)=="string"&&Te.match(c.latexCheck);ae.latex=Pe;var Ie,ze,De=Pe?"":L(ae.calcdata.cells.prefix,ce,de)||"",He=Pe?"":L(ae.calcdata.cells.suffix,ce,de)||"",Ve=Pe?null:L(ae.calcdata.cells.format,ce,de)||null,$e=De+(Ve?O(Ve)(ae.value):ae.value)+He;if(ae.wrappingNeeded=!ae.wrapped&&!Se&&!Pe&&(Ie=C($e)),ae.cellHeightMayIncrease=_e||Pe||ae.mayHaveMarkup||(Ie===void 0?C($e):Ie),ae.needsConvertToTspans=ae.mayHaveMarkup||ae.wrappingNeeded||ae.latex,ae.wrappingNeeded){var Oe=(c.wrapSplitCharacter===" "?$e.replace(/ze&&Ie.push(De),ze+=$e}return Ie}(ae,ye,ve);_e.length===1&&(_e[0]===ae.length-1?_e.unshift(_e[0]-1):_e.push(_e[0]+1)),_e[0]%2&&_e.reverse(),me.each(function(Se,Te){Se.page=_e[Te],Se.scrollY=ye}),me.attr("transform",function(Se){var Te=K(Se.rowBlocks,Se.page)-Se.scrollY;return u(0,Te)}),ee&&(j(ee,he,me,_e,se.prevPages,se,0),j(ee,he,me,_e,se.prevPages,se,1),M(he,ee))}}function Q(ee,me,he,se){return function(ae){var ce=ae.calcdata?ae.calcdata:ae,de=me.filter(function(Se){return ce.key===Se.key}),ve=he||ce.scrollbarState.dragMultiplier,ye=ce.scrollY;ce.scrollY=se===void 0?ce.scrollY+ve*b.event.dy:se;var _e=de.selectAll("."+c.cn.yColumn).selectAll("."+c.cn.columnBlock).filter(k);return $(ee,_e,de),ce.scrollY===ye}}function j(ee,me,he,se,ae,ce,de){se[de]!==ae[de]&&(clearTimeout(ce.currentRepaint[de]),ce.currentRepaint[de]=setTimeout(function(){var ve=he.filter(function(ye,_e){return _e===de&&se[_e]!==ae[_e]});T(ee,me,ve,he),ae[de]=se[de]}))}function U(ee,me,he,se){return function(){var ae=b.select(me.parentNode);ae.each(function(ce){var de=ce.fragments;ae.selectAll("tspan.line").each(function(ze,De){de[De].width=this.getComputedTextLength()});var ve,ye,_e=de[de.length-1].width,Se=de.slice(0,-1),Te=[],Pe=0,Ie=ce.column.columnWidth-2*c.cellPad;for(ce.value="";Se.length;)Pe+(ye=(ve=Se.shift()).width+_e)>Ie&&(ce.value+=Te.join(c.wrapSpacer)+c.lineBreaker,Te=[],Pe=0),Te.push(ve.text),Pe+=ye;Pe&&(ce.value+=Te.join(c.wrapSpacer)),ce.wrapped=!0}),ae.selectAll("tspan.line").remove(),E(ae.select("."+c.cn.cellText),he,ee,se),b.select(me.parentNode.parentNode).call(W)}}function X(ee,me,he,se,ae){return function(){if(!ae.settledY){var ce=b.select(me.parentNode),de=Y(ae),ve=ae.key-de.firstRowIndex,ye=de.rows[ve].rowHeight,_e=ae.cellHeightMayIncrease?me.parentNode.getBoundingClientRect().height+2*c.cellPad:ye,Se=Math.max(_e,ye);Se-de.rows[ve].rowHeight&&(de.rows[ve].rowHeight=Se,ee.selectAll("."+c.cn.columnCell).call(W),$(null,ee.filter(k),0),M(he,se,!0)),ce.attr("transform",function(){var Te=this,Pe=Te.parentNode.getBoundingClientRect(),Ie=b.select(Te.parentNode).select("."+c.cn.cellRect).node().getBoundingClientRect(),ze=Te.transform.baseVal.consolidate(),De=Ie.top-Pe.top+(ze?ze.matrix.f:c.cellPad);return u(te(ae,b.select(Te.parentNode).select("."+c.cn.cellTextHolder).node().getBoundingClientRect().width),De)}),ae.settledY=!0}}}function te(ee,me){switch(ee.align){case"left":default:return c.cellPad;case"right":return ee.column.columnWidth-(me||0)-c.cellPad;case"center":return(ee.column.columnWidth-(me||0))/2}}function W(ee){ee.attr("transform",function(me){var he=me.rowBlocks[0].auxiliaryBlocks.reduce(function(ae,ce){return ae+oe(ce,1/0)},0),se=oe(Y(me),me.key);return u(0,se+he)}).selectAll("."+c.cn.cellRect).attr("height",function(me){return(he=Y(me),se=me.key,he.rows[se-he.firstRowIndex]).rowHeight;var he,se})}function K(ee,me){for(var he=0,se=me-1;se>=0;se--)he+=q(ee[se]);return he}function oe(ee,me){for(var he=0,se=0;se","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:a({},w.textfont,{}),editType:"calc"},text:w.text,textinfo:y.textinfo,texttemplate:b({editType:"plot"},{keys:p.eventDataKeys.concat(["label","value"])}),hovertext:w.hovertext,hoverinfo:y.hoverinfo,hovertemplate:c({},{keys:p.eventDataKeys}),textfont:w.textfont,insidetextfont:w.insidetextfont,outsidetextfont:a({},w.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:w.sort,root:y.root,domain:O({name:"treemap",trace:!0,editType:"calc"})}},79516:function(d,l,n){var c=n(7316);l.name="treemap",l.plot=function(b,i,O,w){c.plotBasePlot(l.name,b,i,O,w)},l.clean=function(b,i,O,w){c.cleanBasePlot(l.name,b,i,O,w)}},97840:function(d,l,n){var c=n(3776);l.r=function(b,i){return c.calc(b,i)},l.q=function(b){return c._runCrossTraceCalc("treemap",b)}},32984:function(d){d.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},34092:function(d,l,n){var c=n(3400),b=n(40516),i=n(76308),O=n(86968).Q,w=n(31508).handleText,y=n(78048).TEXTPAD,p=n(74174).handleMarkerDefaults,a=n(8932),u=a.hasColorscale,h=a.handleDefaults;d.exports=function(m,v,_,S){function A(D,k){return c.coerce(m,v,b,D,k)}var x=A("labels"),R=A("parents");if(x&&x.length&&R&&R.length){var M=A("values");M&&M.length?A("branchvalues"):A("count"),A("level"),A("maxdepth"),A("tiling.packing")==="squarify"&&A("tiling.squarifyratio"),A("tiling.flip"),A("tiling.pad");var T=A("text");A("texttemplate"),v.texttemplate||A("textinfo",c.isArrayOrTypedArray(T)?"text+label":"label"),A("hovertext"),A("hovertemplate");var E=A("pathbar.visible");w(m,v,S,A,"auto",{hasPathbar:E,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),A("textposition");var C=v.textposition.indexOf("bottom")!==-1;p(m,v,S,A),(v._hasColorscale=u(m,"marker","colors")||(m.marker||{}).coloraxis)?h(m,v,S,A,{prefix:"marker.",cLetter:"c"}):A("marker.depthfade",!(v.marker.colors||[]).length);var L=2*v.textfont.size;A("marker.pad.t",C?L/4:L),A("marker.pad.l",L/4),A("marker.pad.r",L/4),A("marker.pad.b",C?L:L/4),A("marker.cornerradius"),v._hovered={marker:{line:{width:2,color:i.contrast(S.paper_bgcolor)}}},E&&(A("pathbar.thickness",v.pathbar.textfont.size+2*y),A("pathbar.side"),A("pathbar.edgeshape")),A("sort"),A("root.color"),O(v,S,A),v._length=null}else v.visible=!1}},95808:function(d,l,n){var c=n(33428),b=n(78176),i=n(82744).clearMinTextSize,O=n(60100).resizeText,w=n(52960);d.exports=function(y,p,a,u,h){var m,v,_=h.type,S=h.drawDescendants,A=y._fullLayout,x=A["_"+_+"layer"],R=!a;i(_,A),(m=x.selectAll("g.trace."+_).data(p,function(M){return M[0].trace.uid})).enter().append("g").classed("trace",!0).classed(_,!0),m.order(),!A.uniformtext.mode&&b.hasTransition(a)?(u&&(v=u()),c.transition().duration(a.duration).ease(a.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).each(function(){x.selectAll("g.trace").each(function(M){w(y,M,this,a,S)})})):(m.each(function(M){w(y,M,this,a,S)}),A.uniformtext.mode&&O(y,x.selectAll(".trace"),_)),R&&m.exit().remove()}},27336:function(d,l,n){var c=n(33428),b=n(3400),i=n(43616),O=n(72736),w=n(13832),y=n(66192).styleOne,p=n(32984),a=n(78176),u=n(45716),h=!0;d.exports=function(m,v,_,S,A){var x=A.barDifY,R=A.width,M=A.height,T=A.viewX,E=A.viewY,C=A.pathSlice,L=A.toMoveInsideSlice,D=A.strTransform,k=A.hasTransition,I=A.handleSlicesExit,z=A.makeUpdateSliceInterpolator,$=A.makeUpdateTextInterpolator,Q={},j=m._context.staticPlot,U=m._fullLayout,X=v[0],te=X.trace,W=X.hierarchy,K=R/te._entryDepth,oe=a.listPath(_.data,"id"),q=w(W.copy(),[R,M],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(q=q.filter(function(ee){var me=oe.indexOf(ee.data.id);return me!==-1&&(ee.x0=K*me,ee.x1=K*(me+1),ee.y0=x,ee.y1=x+M,ee.onPathbar=!0,!0)})).reverse(),(S=S.data(q,a.getPtId)).enter().append("g").classed("pathbar",!0),I(S,h,Q,[R,M],C),S.order();var Y=S;k&&(Y=Y.transition().each("end",function(){var ee=c.select(this);a.setSliceCursor(ee,m,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),Y.each(function(ee){ee._x0=T(ee.x0),ee._x1=T(ee.x1),ee._y0=E(ee.y0),ee._y1=E(ee.y1),ee._hoverX=T(ee.x1-Math.min(R,M)/2),ee._hoverY=E(ee.y1-M/2);var me=c.select(this),he=b.ensureSingle(me,"path","surface",function(de){de.style("pointer-events",j?"none":"all")});k?he.transition().attrTween("d",function(de){var ve=z(de,h,Q,[R,M]);return function(ye){return C(ve(ye))}}):he.attr("d",C),me.call(u,_,m,v,{styleOne:y,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,m,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:m._transitioning}),he.call(y,ee,te,m,{hovered:!1}),ee._text=(a.getPtLabel(ee)||"").split("
    ").join(" ")||"";var se=b.ensureSingle(me,"g","slicetext"),ae=b.ensureSingle(se,"text","",function(de){de.attr("data-notex",1)}),ce=b.ensureUniformFontSize(m,a.determineTextFont(te,ee,U.font,{onPathbar:!0}));ae.text(ee._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(i.font,ce).call(O.convertToTspans,m),ee.textBB=i.bBox(ae.node()),ee.transform=L(ee,{fontSize:ce.size,onPathbar:!0}),ee.transform.fontSize=ce.size,k?ae.transition().attrTween("transform",function(de){var ve=$(de,h,Q,[R,M]);return function(ye){return D(ve(ye))}}):ae.attr("transform",D(ee))})}},76477:function(d,l,n){var c=n(33428),b=n(3400),i=n(43616),O=n(72736),w=n(13832),y=n(66192).styleOne,p=n(32984),a=n(78176),u=n(45716),h=n(96488).formatSliceLabel,m=!1;d.exports=function(v,_,S,A,x){var R=x.width,M=x.height,T=x.viewX,E=x.viewY,C=x.pathSlice,L=x.toMoveInsideSlice,D=x.strTransform,k=x.hasTransition,I=x.handleSlicesExit,z=x.makeUpdateSliceInterpolator,$=x.makeUpdateTextInterpolator,Q=x.prevEntry,j=v._context.staticPlot,U=v._fullLayout,X=_[0].trace,te=X.textposition.indexOf("left")!==-1,W=X.textposition.indexOf("right")!==-1,K=X.textposition.indexOf("bottom")!==-1,oe=!K&&!X.marker.pad.t||K&&!X.marker.pad.b,q=w(S,[R,M],{packing:X.tiling.packing,squarifyratio:X.tiling.squarifyratio,flipX:X.tiling.flip.indexOf("x")>-1,flipY:X.tiling.flip.indexOf("y")>-1,pad:{inner:X.tiling.pad,top:X.marker.pad.t,left:X.marker.pad.l,right:X.marker.pad.r,bottom:X.marker.pad.b}}).descendants(),Y=1/0,ee=-1/0;q.forEach(function(ce){var de=ce.depth;de>=X._maxDepth?(ce.x0=ce.x1=(ce.x0+ce.x1)/2,ce.y0=ce.y1=(ce.y0+ce.y1)/2):(Y=Math.min(Y,de),ee=Math.max(ee,de))}),A=A.data(q,a.getPtId),X._maxVisibleLayers=isFinite(ee)?ee-Y+1:0,A.enter().append("g").classed("slice",!0),I(A,m,{},[R,M],C),A.order();var me=null;if(k&&Q){var he=a.getPtId(Q);A.each(function(ce){me===null&&a.getPtId(ce)===he&&(me={x0:ce.x0,x1:ce.x1,y0:ce.y0,y1:ce.y1})})}var se=function(){return me||{x0:0,x1:R,y0:0,y1:M}},ae=A;return k&&(ae=ae.transition().each("end",function(){var ce=c.select(this);a.setSliceCursor(ce,v,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),ae.each(function(ce){var de=a.isHeader(ce,X);ce._x0=T(ce.x0),ce._x1=T(ce.x1),ce._y0=E(ce.y0),ce._y1=E(ce.y1),ce._hoverX=T(ce.x1-X.marker.pad.r),ce._hoverY=E(K?ce.y1-X.marker.pad.b/2:ce.y0+X.marker.pad.t/2);var ve=c.select(this),ye=b.ensureSingle(ve,"path","surface",function(Pe){Pe.style("pointer-events",j?"none":"all")});k?ye.transition().attrTween("d",function(Pe){var Ie=z(Pe,m,se(),[R,M]);return function(ze){return C(Ie(ze))}}):ye.attr("d",C),ve.call(u,S,v,_,{styleOne:y,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(a.setSliceCursor,v,{isTransitioning:v._transitioning}),ye.call(y,ce,X,v,{hovered:!1}),ce.x0===ce.x1||ce.y0===ce.y1?ce._text="":ce._text=de?oe?"":a.getPtLabel(ce)||"":h(ce,S,X,_,U)||"";var _e=b.ensureSingle(ve,"g","slicetext"),Se=b.ensureSingle(_e,"text","",function(Pe){Pe.attr("data-notex",1)}),Te=b.ensureUniformFontSize(v,a.determineTextFont(X,ce,U.font));Se.text(ce._text||" ").classed("slicetext",!0).attr("text-anchor",W?"end":te||de?"start":"middle").call(i.font,Te).call(O.convertToTspans,v),ce.textBB=i.bBox(Se.node()),ce.transform=L(ce,{fontSize:Te.size,isHeader:de}),ce.transform.fontSize=Te.size,k?Se.transition().attrTween("transform",function(Pe){var Ie=$(Pe,m,se(),[R,M]);return function(ze){return D(Ie(ze))}}):Se.attr("transform",D(ce))}),me}},83024:function(d){d.exports=function l(n,c,b){var i;b.swapXY&&(i=n.x0,n.x0=n.y0,n.y0=i,i=n.x1,n.x1=n.y1,n.y1=i),b.flipX&&(i=n.x0,n.x0=c[0]-n.x1,n.x1=c[0]-i),b.flipY&&(i=n.y0,n.y0=c[1]-n.y1,n.y1=c[1]-i);var O=n.children;if(O)for(var w=0;w-1?X+K:-(W+K):0,q={x0:te,x1:te,y0:oe,y1:oe+W},Y=function(je,nt,ot){var Ge=M.tiling.pad,ht=function(It){return It-Ge<=nt.x0},pt=function(It){return It+Ge>=nt.x1},wt=function(It){return It-Ge<=nt.y0},Dt=function(It){return It+Ge>=nt.y1};return je.x0===nt.x0&&je.x1===nt.x1&&je.y0===nt.y0&&je.y1===nt.y1?{x0:je.x0,x1:je.x1,y0:je.y0,y1:je.y1}:{x0:ht(je.x0-Ge)?0:pt(je.x0-Ge)?ot[0]:je.x0,x1:ht(je.x1+Ge)?0:pt(je.x1+Ge)?ot[0]:je.x1,y0:wt(je.y0-Ge)?0:Dt(je.y0-Ge)?ot[1]:je.y0,y1:wt(je.y1+Ge)?0:Dt(je.y1+Ge)?ot[1]:je.y1}},ee=null,me={},he={},se=null,ae=function(je,nt){return nt?me[h(je)]:he[h(je)]};R.hasMultipleRoots&&I&&$++,M._maxDepth=$,M._backgroundColor=x.paper_bgcolor,M._entryDepth=C.data.depth,M._atRootLevel=I;var ce=-U/2+Q.l+Q.w*(j.x[1]+j.x[0])/2,de=-X/2+Q.t+Q.h*(1-(j.y[1]+j.y[0])/2),ve=function(je){return ce+je},ye=function(je){return de+je},_e=ye(0),Se=ve(0),Te=function(je){return Se+je},Pe=function(je){return _e+je};function Ie(je,nt){return je+","+nt}var ze=Te(0),De=function(je){je.x=Math.max(ze,je.x)},He=M.pathbar.edgeshape,Ve=M[T?"tiling":"marker"].pad,$e=function(je){return M.textposition.indexOf(je)!==-1},Oe=$e("top"),ke=$e("left"),Le=$e("right"),We=$e("bottom"),Ue=function(je,nt){var ot=je.x0,Ge=je.x1,ht=je.y0,pt=je.y1,wt=je.textBB,Dt=Oe||nt.isHeader&&!We?"start":We?"end":"middle",It=$e("right"),qt=$e("left")||nt.onPathbar?-1:It?1:0;if(nt.isHeader){if((ot+=(T?Ve:Ve.l)-w)>=(Ge-=(T?Ve:Ve.r)-w)){var en=(ot+Ge)/2;ot=en,Ge=en}var Gt;We?ht<(Gt=pt-(T?Ve:Ve.b))&&Gt"?(It.x-=pt,qt.x-=pt,en.x-=pt,Gt.x-=pt):He==="/"?(en.x-=pt,Gt.x-=pt,wt.x-=pt/2,Dt.x-=pt/2):He==="\\"?(It.x-=pt,qt.x-=pt,wt.x-=pt/2,Dt.x-=pt/2):He==="<"&&(wt.x-=pt,Dt.x-=pt),De(It),De(Gt),De(wt),De(qt),De(en),De(Dt),"M"+Ie(It.x,It.y)+"L"+Ie(qt.x,qt.y)+"L"+Ie(Dt.x,Dt.y)+"L"+Ie(en.x,en.y)+"L"+Ie(Gt.x,Gt.y)+"L"+Ie(wt.x,wt.y)+"Z"},toMoveInsideSlice:Ue,makeUpdateSliceInterpolator:Xe,makeUpdateTextInterpolator:tt,handleSlicesExit:Ee,hasTransition:z,strTransform:Ne}):D.remove()}},66192:function(d,l,n){var c=n(33428),b=n(76308),i=n(3400),O=n(78176),w=n(82744).resizeText,y=n(60404);function p(a,u,h,m,v){var _,S,A=(v||{}).hovered,x=u.data.data,R=x.i,M=x.color,T=O.isHierarchyRoot(u),E=1;if(A)_=h._hovered.marker.line.color,S=h._hovered.marker.line.width;else if(T&&M===h.root.color)E=100,_="rgba(0,0,0,0)",S=0;else if(_=i.castOption(h,R,"marker.line.color")||b.defaultLine,S=i.castOption(h,R,"marker.line.width")||0,!h._hasColorscale&&!u.onPathbar){var C=h.marker.depthfade;if(C){var L,D=b.combine(b.addOpacity(h._backgroundColor,.75),M);if(C===!0){var k=O.getMaxDepth(h);L=isFinite(k)?O.isLeaf(u)?0:h._maxVisibleLayers-(u.data.depth-h._entryDepth):u.data.height+1}else L=u.data.depth-h._entryDepth,h._atRootLevel||L++;if(L>0)for(var I=0;I0){var C,L,D,k,I,z=y.xa,$=y.ya;A.orientation==="h"?(I=p,C="y",D=$,L="x",k=z):(I=a,C="x",D=z,L="y",k=$);var Q=S[y.index];if(I>=Q.span[0]&&I<=Q.span[1]){var j=b.extendFlat({},y),U=k.c2p(I,!0),X=w.getKdeValue(Q,A,I),te=w.getPositionOnKdePath(Q,A,U),W=D._offset,K=D._length;j[C+"0"]=te[0],j[C+"1"]=te[1],j[L+"0"]=j[L+"1"]=U,j[L+"Label"]=L+": "+i.hoverLabelText(k,I,A[L+"hoverformat"])+", "+S[0].t.labels.kde+" "+X.toFixed(3);for(var oe=0,q=0;q")),v.color=function($,Q){var j=$[Q.dir].marker,U=j.color,X=j.line.color,te=j.line.width;return b(U)?U:b(X)&&te?X:void 0}(S,M),[v]}function z($){return c(R,$,S[x+"hoverformat"])}}},95952:function(d,l,n){d.exports={attributes:n(65776),layoutAttributes:n(91352),supplyDefaults:n(24224).supplyDefaults,crossTraceDefaults:n(24224).crossTraceDefaults,supplyLayoutDefaults:n(59464),calc:n(73540),crossTraceCalc:n(50152),plot:n(64488),style:n(12252).style,hoverPoints:n(94196),eventData:n(53256),selectPoints:n(45784),moduleType:"trace",name:"waterfall",basePlotModule:n(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},91352:function(d){d.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},59464:function(d,l,n){var c=n(3400),b=n(91352);d.exports=function(i,O,w){var y=!1;function p(h,m){return c.coerce(i,O,b,h,m)}for(var a=0;a0&&(X+=L?"M"+j[0]+","+U[1]+"V"+U[0]:"M"+j[1]+","+U[0]+"H"+j[0]),D!=="between"&&(z.isSum||$ path").each(function(A){if(!A.isBlank){var x=S[A.dir].marker;c.select(this).call(i.fill,x.color).call(i.stroke,x.line.color).call(b.dashLine,x.line.dash,x.line.width).style("opacity",S.selectedpoints&&!A.selected?O:1)}}),p(_,S,a),_.selectAll(".lines").each(function(){var A=S.connector.line;b.lineGroupStyle(c.select(this).selectAll("path"),A.width,A.color,A.dash)})})}}},84224:function(d,l,n){var c=n(54460),b=n(3400),i=n(73060),O=n(60468).W,w=n(39032).BADNUM;l.moduleType="transform",l.name="aggregate";var y=l.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},p=y.aggregations;function a(v,_,S,A){if(A.enabled){for(var x=A.target,R=b.nestedProperty(_,x),M=R.get(),T=function(L,D){var k=L.func,I=D.d2c,z=D.c2d;switch(k){case"count":return u;case"first":return h;case"last":return m;case"sum":return function($,Q){for(var j=0,U=0;UU&&(U=K,X=W)}}return U?z(X):w};case"rms":return function($,Q){for(var j=0,U=0,X=0;X":return function(ee){return Y(ee)>oe};case">=":return function(ee){return Y(ee)>=oe};case"[]":return function(ee){var me=Y(ee);return me>=oe[0]&&me<=oe[1]};case"()":return function(ee){var me=Y(ee);return me>oe[0]&&me=oe[0]&&meoe[0]&&me<=oe[1]};case"][":return function(ee){var me=Y(ee);return me<=oe[0]||me>=oe[1]};case")(":return function(ee){var me=Y(ee);return meoe[1]};case"](":return function(ee){var me=Y(ee);return me<=oe[0]||me>oe[1]};case")[":return function(ee){var me=Y(ee);return me=oe[1]};case"{}":return function(ee){return oe.indexOf(Y(ee))!==-1};case"}{":return function(ee){return oe.indexOf(Y(ee))===-1}}}(m,i.getDataToCoordFunc(u,h,_,v),A),L={},D={},k=0;R?(T=function(Q){L[Q.astr]=c.extendDeep([],Q.get()),Q.set(new Array(S))},E=function(Q,j){var U=L[Q.astr][j];Q.get()[j]=U}):(T=function(Q){L[Q.astr]=c.extendDeep([],Q.get()),Q.set([])},E=function(Q,j){var U=L[Q.astr][j];Q.get().push(U)}),$(T);for(var I=O(h.transforms,m),z=0;z1?"%{group} (%{trace})":"%{group}");var v=y.styles,_=h.styles=[];if(v)for(u=0;uR)throw new RangeError('The value "'+Ee+'" is invalid for option "size"');var Ne=new Uint8Array(Ee);return Object.setPrototypeOf(Ne,T.prototype),Ne}function T(Ee,Ne,je){if(typeof Ee=="number"){if(typeof Ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return L(Ee)}return E(Ee,Ne,je)}function E(Ee,Ne,je){if(typeof Ee=="string")return function(Ge,ht){if(typeof ht=="string"&&ht!==""||(ht="utf8"),!T.isEncoding(ht))throw new TypeError("Unknown encoding: "+ht);var pt=0|z(Ge,ht),wt=M(pt),Dt=wt.write(Ge,ht);return Dt!==pt&&(wt=wt.slice(0,Dt)),wt}(Ee,Ne);if(ArrayBuffer.isView(Ee))return function(Ge){if(We(Ge,Uint8Array)){var ht=new Uint8Array(Ge);return k(ht.buffer,ht.byteOffset,ht.byteLength)}return D(Ge)}(Ee);if(Ee==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_(Ee));if(We(Ee,ArrayBuffer)||Ee&&We(Ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(We(Ee,SharedArrayBuffer)||Ee&&We(Ee.buffer,SharedArrayBuffer)))return k(Ee,Ne,je);if(typeof Ee=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var nt=Ee.valueOf&&Ee.valueOf();if(nt!=null&&nt!==Ee)return T.from(nt,Ne,je);var ot=function(Ge){if(T.isBuffer(Ge)){var ht=0|I(Ge.length),pt=M(ht);return pt.length===0||Ge.copy(pt,0,0,ht),pt}return Ge.length!==void 0?typeof Ge.length!="number"||Ue(Ge.length)?M(0):D(Ge):Ge.type==="Buffer"&&Array.isArray(Ge.data)?D(Ge.data):void 0}(Ee);if(ot)return ot;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ee[Symbol.toPrimitive]=="function")return T.from(Ee[Symbol.toPrimitive]("string"),Ne,je);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_(Ee))}function C(Ee){if(typeof Ee!="number")throw new TypeError('"size" argument must be of type number');if(Ee<0)throw new RangeError('The value "'+Ee+'" is invalid for option "size"')}function L(Ee){return C(Ee),M(Ee<0?0:0|I(Ee))}function D(Ee){for(var Ne=Ee.length<0?0:0|I(Ee.length),je=M(Ne),nt=0;nt=R)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+R.toString(16)+" bytes");return 0|Ee}function z(Ee,Ne){if(T.isBuffer(Ee))return Ee.length;if(ArrayBuffer.isView(Ee)||We(Ee,ArrayBuffer))return Ee.byteLength;if(typeof Ee!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+_(Ee));var je=Ee.length,nt=arguments.length>2&&arguments[2]===!0;if(!nt&&je===0)return 0;for(var ot=!1;;)switch(Ne){case"ascii":case"latin1":case"binary":return je;case"utf8":case"utf-8":return Oe(Ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*je;case"hex":return je>>>1;case"base64":return ke(Ee).length;default:if(ot)return nt?-1:Oe(Ee).length;Ne=(""+Ne).toLowerCase(),ot=!0}}function $(Ee,Ne,je){var nt=!1;if((Ne===void 0||Ne<0)&&(Ne=0),Ne>this.length||((je===void 0||je>this.length)&&(je=this.length),je<=0)||(je>>>=0)<=(Ne>>>=0))return"";for(Ee||(Ee="utf8");;)switch(Ee){case"hex":return se(this,Ne,je);case"utf8":case"utf-8":return Y(this,Ne,je);case"ascii":return me(this,Ne,je);case"latin1":case"binary":return he(this,Ne,je);case"base64":return q(this,Ne,je);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,Ne,je);default:if(nt)throw new TypeError("Unknown encoding: "+Ee);Ee=(Ee+"").toLowerCase(),nt=!0}}function Q(Ee,Ne,je){var nt=Ee[Ne];Ee[Ne]=Ee[je],Ee[je]=nt}function j(Ee,Ne,je,nt,ot){if(Ee.length===0)return-1;if(typeof je=="string"?(nt=je,je=0):je>2147483647?je=2147483647:je<-2147483648&&(je=-2147483648),Ue(je=+je)&&(je=ot?0:Ee.length-1),je<0&&(je=Ee.length+je),je>=Ee.length){if(ot)return-1;je=Ee.length-1}else if(je<0){if(!ot)return-1;je=0}if(typeof Ne=="string"&&(Ne=T.from(Ne,nt)),T.isBuffer(Ne))return Ne.length===0?-1:U(Ee,Ne,je,nt,ot);if(typeof Ne=="number")return Ne&=255,typeof Uint8Array.prototype.indexOf=="function"?ot?Uint8Array.prototype.indexOf.call(Ee,Ne,je):Uint8Array.prototype.lastIndexOf.call(Ee,Ne,je):U(Ee,[Ne],je,nt,ot);throw new TypeError("val must be string, number or Buffer")}function U(Ee,Ne,je,nt,ot){var Ge,ht=1,pt=Ee.length,wt=Ne.length;if(nt!==void 0&&((nt=String(nt).toLowerCase())==="ucs2"||nt==="ucs-2"||nt==="utf16le"||nt==="utf-16le")){if(Ee.length<2||Ne.length<2)return-1;ht=2,pt/=2,wt/=2,je/=2}function Dt(Gt,Ct){return ht===1?Gt[Ct]:Gt.readUInt16BE(Ct*ht)}if(ot){var It=-1;for(Ge=je;Gept&&(je=pt-wt),Ge=je;Ge>=0;Ge--){for(var qt=!0,en=0;enot&&(nt=ot):nt=ot;var Ge,ht=Ne.length;for(nt>ht/2&&(nt=ht/2),Ge=0;Ge>8,wt=ht%256,Dt.push(wt),Dt.push(pt);return Dt}(Ne,Ee.length-je),Ee,je,nt)}function q(Ee,Ne,je){return Ne===0&&je===Ee.length?S.fromByteArray(Ee):S.fromByteArray(Ee.slice(Ne,je))}function Y(Ee,Ne,je){je=Math.min(Ee.length,je);for(var nt=[],ot=Ne;ot239?4:Ge>223?3:Ge>191?2:1;if(ot+pt<=je){var wt=void 0,Dt=void 0,It=void 0,qt=void 0;switch(pt){case 1:Ge<128&&(ht=Ge);break;case 2:(192&(wt=Ee[ot+1]))==128&&(qt=(31&Ge)<<6|63&wt)>127&&(ht=qt);break;case 3:wt=Ee[ot+1],Dt=Ee[ot+2],(192&wt)==128&&(192&Dt)==128&&(qt=(15&Ge)<<12|(63&wt)<<6|63&Dt)>2047&&(qt<55296||qt>57343)&&(ht=qt);break;case 4:wt=Ee[ot+1],Dt=Ee[ot+2],It=Ee[ot+3],(192&wt)==128&&(192&Dt)==128&&(192&It)==128&&(qt=(15&Ge)<<18|(63&wt)<<12|(63&Dt)<<6|63&It)>65535&&qt<1114112&&(ht=qt)}}ht===null?(ht=65533,pt=1):ht>65535&&(ht-=65536,nt.push(ht>>>10&1023|55296),ht=56320|1023&ht),nt.push(ht),ot+=pt}return function(en){var Gt=en.length;if(Gt<=ee)return String.fromCharCode.apply(String,en);for(var Ct="",_t=0;_t"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}}),Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}}),T.poolSize=8192,T.from=function(Ee,Ne,je){return E(Ee,Ne,je)},Object.setPrototypeOf(T.prototype,Uint8Array.prototype),Object.setPrototypeOf(T,Uint8Array),T.alloc=function(Ee,Ne,je){return function(nt,ot,Ge){return C(nt),nt<=0?M(nt):ot!==void 0?typeof Ge=="string"?M(nt).fill(ot,Ge):M(nt).fill(ot):M(nt)}(Ee,Ne,je)},T.allocUnsafe=function(Ee){return L(Ee)},T.allocUnsafeSlow=function(Ee){return L(Ee)},T.isBuffer=function(Ee){return Ee!=null&&Ee._isBuffer===!0&&Ee!==T.prototype},T.compare=function(Ee,Ne){if(We(Ee,Uint8Array)&&(Ee=T.from(Ee,Ee.offset,Ee.byteLength)),We(Ne,Uint8Array)&&(Ne=T.from(Ne,Ne.offset,Ne.byteLength)),!T.isBuffer(Ee)||!T.isBuffer(Ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ee===Ne)return 0;for(var je=Ee.length,nt=Ne.length,ot=0,Ge=Math.min(je,nt);otnt.length?(T.isBuffer(Ge)||(Ge=T.from(Ge)),Ge.copy(nt,ot)):Uint8Array.prototype.set.call(nt,Ge,ot);else{if(!T.isBuffer(Ge))throw new TypeError('"list" argument must be an Array of Buffers');Ge.copy(nt,ot)}ot+=Ge.length}return nt},T.byteLength=z,T.prototype._isBuffer=!0,T.prototype.swap16=function(){var Ee=this.length;if(Ee%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ne=0;NeNe&&(Ee+=" ... "),""},x&&(T.prototype[x]=T.prototype.inspect),T.prototype.compare=function(Ee,Ne,je,nt,ot){if(We(Ee,Uint8Array)&&(Ee=T.from(Ee,Ee.offset,Ee.byteLength)),!T.isBuffer(Ee))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+_(Ee));if(Ne===void 0&&(Ne=0),je===void 0&&(je=Ee?Ee.length:0),nt===void 0&&(nt=0),ot===void 0&&(ot=this.length),Ne<0||je>Ee.length||nt<0||ot>this.length)throw new RangeError("out of range index");if(nt>=ot&&Ne>=je)return 0;if(nt>=ot)return-1;if(Ne>=je)return 1;if(this===Ee)return 0;for(var Ge=(ot>>>=0)-(nt>>>=0),ht=(je>>>=0)-(Ne>>>=0),pt=Math.min(Ge,ht),wt=this.slice(nt,ot),Dt=Ee.slice(Ne,je),It=0;It>>=0,isFinite(je)?(je>>>=0,nt===void 0&&(nt="utf8")):(nt=je,je=void 0)}var ot=this.length-Ne;if((je===void 0||je>ot)&&(je=ot),Ee.length>0&&(je<0||Ne<0)||Ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");nt||(nt="utf8");for(var Ge=!1;;)switch(nt){case"hex":return X(this,Ee,Ne,je);case"utf8":case"utf-8":return te(this,Ee,Ne,je);case"ascii":case"latin1":case"binary":return W(this,Ee,Ne,je);case"base64":return K(this,Ee,Ne,je);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,Ee,Ne,je);default:if(Ge)throw new TypeError("Unknown encoding: "+nt);nt=(""+nt).toLowerCase(),Ge=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;function me(Ee,Ne,je){var nt="";je=Math.min(Ee.length,je);for(var ot=Ne;otnt)&&(je=nt);for(var ot="",Ge=Ne;Geje)throw new RangeError("Trying to access beyond buffer length")}function de(Ee,Ne,je,nt,ot,Ge){if(!T.isBuffer(Ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ne>ot||NeEe.length)throw new RangeError("Index out of range")}function ve(Ee,Ne,je,nt,ot){De(Ne,nt,ot,Ee,je,7);var Ge=Number(Ne&BigInt(4294967295));Ee[je++]=Ge,Ge>>=8,Ee[je++]=Ge,Ge>>=8,Ee[je++]=Ge,Ge>>=8,Ee[je++]=Ge;var ht=Number(Ne>>BigInt(32)&BigInt(4294967295));return Ee[je++]=ht,ht>>=8,Ee[je++]=ht,ht>>=8,Ee[je++]=ht,ht>>=8,Ee[je++]=ht,je}function ye(Ee,Ne,je,nt,ot){De(Ne,nt,ot,Ee,je,7);var Ge=Number(Ne&BigInt(4294967295));Ee[je+7]=Ge,Ge>>=8,Ee[je+6]=Ge,Ge>>=8,Ee[je+5]=Ge,Ge>>=8,Ee[je+4]=Ge;var ht=Number(Ne>>BigInt(32)&BigInt(4294967295));return Ee[je+3]=ht,ht>>=8,Ee[je+2]=ht,ht>>=8,Ee[je+1]=ht,ht>>=8,Ee[je]=ht,je+8}function _e(Ee,Ne,je,nt,ot,Ge){if(je+nt>Ee.length)throw new RangeError("Index out of range");if(je<0)throw new RangeError("Index out of range")}function Se(Ee,Ne,je,nt,ot){return Ne=+Ne,je>>>=0,ot||_e(Ee,0,je,4),A.write(Ee,Ne,je,nt,23,4),je+4}function Te(Ee,Ne,je,nt,ot){return Ne=+Ne,je>>>=0,ot||_e(Ee,0,je,8),A.write(Ee,Ne,je,nt,52,8),je+8}T.prototype.slice=function(Ee,Ne){var je=this.length;(Ee=~~Ee)<0?(Ee+=je)<0&&(Ee=0):Ee>je&&(Ee=je),(Ne=Ne===void 0?je:~~Ne)<0?(Ne+=je)<0&&(Ne=0):Ne>je&&(Ne=je),Ne>>=0,Ne>>>=0,je||ce(Ee,Ne,this.length);for(var nt=this[Ee],ot=1,Ge=0;++Ge>>=0,Ne>>>=0,je||ce(Ee,Ne,this.length);for(var nt=this[Ee+--Ne],ot=1;Ne>0&&(ot*=256);)nt+=this[Ee+--Ne]*ot;return nt},T.prototype.readUint8=T.prototype.readUInt8=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,1,this.length),this[Ee]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,2,this.length),this[Ee]|this[Ee+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,2,this.length),this[Ee]<<8|this[Ee+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,4,this.length),(this[Ee]|this[Ee+1]<<8|this[Ee+2]<<16)+16777216*this[Ee+3]},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,4,this.length),16777216*this[Ee]+(this[Ee+1]<<16|this[Ee+2]<<8|this[Ee+3])},T.prototype.readBigUInt64LE=Xe(function(Ee){He(Ee>>>=0,"offset");var Ne=this[Ee],je=this[Ee+7];Ne!==void 0&&je!==void 0||Ve(Ee,this.length-8);var nt=Ne+this[++Ee]*Math.pow(2,8)+this[++Ee]*Math.pow(2,16)+this[++Ee]*Math.pow(2,24),ot=this[++Ee]+this[++Ee]*Math.pow(2,8)+this[++Ee]*Math.pow(2,16)+je*Math.pow(2,24);return BigInt(nt)+(BigInt(ot)<>>=0,"offset");var Ne=this[Ee],je=this[Ee+7];Ne!==void 0&&je!==void 0||Ve(Ee,this.length-8);var nt=Ne*Math.pow(2,24)+this[++Ee]*Math.pow(2,16)+this[++Ee]*Math.pow(2,8)+this[++Ee],ot=this[++Ee]*Math.pow(2,24)+this[++Ee]*Math.pow(2,16)+this[++Ee]*Math.pow(2,8)+je;return(BigInt(nt)<>>=0,Ne>>>=0,je||ce(Ee,Ne,this.length);for(var nt=this[Ee],ot=1,Ge=0;++Ge=(ot*=128)&&(nt-=Math.pow(2,8*Ne)),nt},T.prototype.readIntBE=function(Ee,Ne,je){Ee>>>=0,Ne>>>=0,je||ce(Ee,Ne,this.length);for(var nt=Ne,ot=1,Ge=this[Ee+--nt];nt>0&&(ot*=256);)Ge+=this[Ee+--nt]*ot;return Ge>=(ot*=128)&&(Ge-=Math.pow(2,8*Ne)),Ge},T.prototype.readInt8=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,1,this.length),128&this[Ee]?-1*(255-this[Ee]+1):this[Ee]},T.prototype.readInt16LE=function(Ee,Ne){Ee>>>=0,Ne||ce(Ee,2,this.length);var je=this[Ee]|this[Ee+1]<<8;return 32768&je?4294901760|je:je},T.prototype.readInt16BE=function(Ee,Ne){Ee>>>=0,Ne||ce(Ee,2,this.length);var je=this[Ee+1]|this[Ee]<<8;return 32768&je?4294901760|je:je},T.prototype.readInt32LE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,4,this.length),this[Ee]|this[Ee+1]<<8|this[Ee+2]<<16|this[Ee+3]<<24},T.prototype.readInt32BE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,4,this.length),this[Ee]<<24|this[Ee+1]<<16|this[Ee+2]<<8|this[Ee+3]},T.prototype.readBigInt64LE=Xe(function(Ee){He(Ee>>>=0,"offset");var Ne=this[Ee],je=this[Ee+7];Ne!==void 0&&je!==void 0||Ve(Ee,this.length-8);var nt=this[Ee+4]+this[Ee+5]*Math.pow(2,8)+this[Ee+6]*Math.pow(2,16)+(je<<24);return(BigInt(nt)<>>=0,"offset");var Ne=this[Ee],je=this[Ee+7];Ne!==void 0&&je!==void 0||Ve(Ee,this.length-8);var nt=(Ne<<24)+this[++Ee]*Math.pow(2,16)+this[++Ee]*Math.pow(2,8)+this[++Ee];return(BigInt(nt)<>>=0,Ne||ce(Ee,4,this.length),A.read(this,Ee,!0,23,4)},T.prototype.readFloatBE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,4,this.length),A.read(this,Ee,!1,23,4)},T.prototype.readDoubleLE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,8,this.length),A.read(this,Ee,!0,52,8)},T.prototype.readDoubleBE=function(Ee,Ne){return Ee>>>=0,Ne||ce(Ee,8,this.length),A.read(this,Ee,!1,52,8)},T.prototype.writeUintLE=T.prototype.writeUIntLE=function(Ee,Ne,je,nt){Ee=+Ee,Ne>>>=0,je>>>=0,nt||de(this,Ee,Ne,je,Math.pow(2,8*je)-1,0);var ot=1,Ge=0;for(this[Ne]=255&Ee;++Ge>>=0,je>>>=0,nt||de(this,Ee,Ne,je,Math.pow(2,8*je)-1,0);var ot=je-1,Ge=1;for(this[Ne+ot]=255&Ee;--ot>=0&&(Ge*=256);)this[Ne+ot]=Ee/Ge&255;return Ne+je},T.prototype.writeUint8=T.prototype.writeUInt8=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,1,255,0),this[Ne]=255&Ee,Ne+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,2,65535,0),this[Ne]=255&Ee,this[Ne+1]=Ee>>>8,Ne+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,2,65535,0),this[Ne]=Ee>>>8,this[Ne+1]=255&Ee,Ne+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,4,4294967295,0),this[Ne+3]=Ee>>>24,this[Ne+2]=Ee>>>16,this[Ne+1]=Ee>>>8,this[Ne]=255&Ee,Ne+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,4,4294967295,0),this[Ne]=Ee>>>24,this[Ne+1]=Ee>>>16,this[Ne+2]=Ee>>>8,this[Ne+3]=255&Ee,Ne+4},T.prototype.writeBigUInt64LE=Xe(function(Ee){return ve(this,Ee,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=Xe(function(Ee){return ye(this,Ee,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(Ee,Ne,je,nt){if(Ee=+Ee,Ne>>>=0,!nt){var ot=Math.pow(2,8*je-1);de(this,Ee,Ne,je,ot-1,-ot)}var Ge=0,ht=1,pt=0;for(this[Ne]=255&Ee;++Ge>0)-pt&255;return Ne+je},T.prototype.writeIntBE=function(Ee,Ne,je,nt){if(Ee=+Ee,Ne>>>=0,!nt){var ot=Math.pow(2,8*je-1);de(this,Ee,Ne,je,ot-1,-ot)}var Ge=je-1,ht=1,pt=0;for(this[Ne+Ge]=255&Ee;--Ge>=0&&(ht*=256);)Ee<0&&pt===0&&this[Ne+Ge+1]!==0&&(pt=1),this[Ne+Ge]=(Ee/ht>>0)-pt&255;return Ne+je},T.prototype.writeInt8=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,1,127,-128),Ee<0&&(Ee=255+Ee+1),this[Ne]=255&Ee,Ne+1},T.prototype.writeInt16LE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,2,32767,-32768),this[Ne]=255&Ee,this[Ne+1]=Ee>>>8,Ne+2},T.prototype.writeInt16BE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,2,32767,-32768),this[Ne]=Ee>>>8,this[Ne+1]=255&Ee,Ne+2},T.prototype.writeInt32LE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,4,2147483647,-2147483648),this[Ne]=255&Ee,this[Ne+1]=Ee>>>8,this[Ne+2]=Ee>>>16,this[Ne+3]=Ee>>>24,Ne+4},T.prototype.writeInt32BE=function(Ee,Ne,je){return Ee=+Ee,Ne>>>=0,je||de(this,Ee,Ne,4,2147483647,-2147483648),Ee<0&&(Ee=4294967295+Ee+1),this[Ne]=Ee>>>24,this[Ne+1]=Ee>>>16,this[Ne+2]=Ee>>>8,this[Ne+3]=255&Ee,Ne+4},T.prototype.writeBigInt64LE=Xe(function(Ee){return ve(this,Ee,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=Xe(function(Ee){return ye(this,Ee,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeFloatLE=function(Ee,Ne,je){return Se(this,Ee,Ne,!0,je)},T.prototype.writeFloatBE=function(Ee,Ne,je){return Se(this,Ee,Ne,!1,je)},T.prototype.writeDoubleLE=function(Ee,Ne,je){return Te(this,Ee,Ne,!0,je)},T.prototype.writeDoubleBE=function(Ee,Ne,je){return Te(this,Ee,Ne,!1,je)},T.prototype.copy=function(Ee,Ne,je,nt){if(!T.isBuffer(Ee))throw new TypeError("argument should be a Buffer");if(je||(je=0),nt||nt===0||(nt=this.length),Ne>=Ee.length&&(Ne=Ee.length),Ne||(Ne=0),nt>0&&nt=this.length)throw new RangeError("Index out of range");if(nt<0)throw new RangeError("sourceEnd out of bounds");nt>this.length&&(nt=this.length),Ee.length-Ne>>=0,je=je===void 0?this.length:je>>>0,Ee||(Ee=0),typeof Ee=="number")for(Ge=Ne;Ge"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var It,qt=v(ht);if(pt){var en=v(this).constructor;It=Reflect.construct(qt,arguments,en)}else It=qt.apply(this,arguments);return function(Gt,Ct){if(Ct&&(_(Ct)==="object"||typeof Ct=="function"))return Ct;if(Ct!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m(Gt)}(this,It)});function Dt(){var It;return function(qt,en){if(!(qt instanceof en))throw new TypeError("Cannot call a class as a function")}(this,Dt),It=wt.call(this),Object.defineProperty(m(It),"message",{value:Ne.apply(m(It),arguments),writable:!0,configurable:!0}),It.name="".concat(It.name," [").concat(Ee,"]"),It.stack,delete It.name,It}return ot=Dt,(Ge=[{key:"code",get:function(){return Ee},set:function(It){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:It,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Ee,"]: ").concat(this.message)}}])&&u(ot.prototype,Ge),Object.defineProperty(ot,"prototype",{writable:!1}),Dt}(je)}function ze(Ee){for(var Ne="",je=Ee.length,nt=Ee[0]==="-"?1:0;je>=nt+4;je-=3)Ne="_".concat(Ee.slice(je-3,je)).concat(Ne);return"".concat(Ee.slice(0,je)).concat(Ne)}function De(Ee,Ne,je,nt,ot,Ge){if(Ee>je||Ee3?Ne===0||Ne===BigInt(0)?">= 0".concat(pt," and < 2").concat(pt," ** ").concat(8*(Ge+1)).concat(pt):">= -(2".concat(pt," ** ").concat(8*(Ge+1)-1).concat(pt,") and < 2 ** ")+"".concat(8*(Ge+1)-1).concat(pt):">= ".concat(Ne).concat(pt," and <= ").concat(je).concat(pt),new Pe.ERR_OUT_OF_RANGE("value",ht,Ee)}(function(wt,Dt,It){He(Dt,"offset"),wt[Dt]!==void 0&&wt[Dt+It]!==void 0||Ve(Dt,wt.length-(It+1))})(nt,ot,Ge)}function He(Ee,Ne){if(typeof Ee!="number")throw new Pe.ERR_INVALID_ARG_TYPE(Ne,"number",Ee)}function Ve(Ee,Ne,je){throw Math.floor(Ee)!==Ee?(He(Ee,je),new Pe.ERR_OUT_OF_RANGE(je||"offset","an integer",Ee)):Ne<0?new Pe.ERR_BUFFER_OUT_OF_BOUNDS:new Pe.ERR_OUT_OF_RANGE(je||"offset",">= ".concat(je?1:0," and <= ").concat(Ne),Ee)}Ie("ERR_BUFFER_OUT_OF_BOUNDS",function(Ee){return Ee?"".concat(Ee," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),Ie("ERR_INVALID_ARG_TYPE",function(Ee,Ne){return'The "'.concat(Ee,'" argument must be of type number. Received type ').concat(_(Ne))},TypeError),Ie("ERR_OUT_OF_RANGE",function(Ee,Ne,je){var nt='The value of "'.concat(Ee,'" is out of range.'),ot=je;return Number.isInteger(je)&&Math.abs(je)>Math.pow(2,32)?ot=ze(String(je)):typeof je=="bigint"&&(ot=String(je),(je>Math.pow(BigInt(2),BigInt(32))||je<-Math.pow(BigInt(2),BigInt(32)))&&(ot=ze(ot)),ot+="n"),nt+" It must be ".concat(Ne,". Received ").concat(ot)},RangeError);var $e=/[^+/0-9A-Za-z-_]/g;function Oe(Ee,Ne){var je;Ne=Ne||1/0;for(var nt=Ee.length,ot=null,Ge=[],ht=0;ht55295&&je<57344){if(!ot){if(je>56319){(Ne-=3)>-1&&Ge.push(239,191,189);continue}if(ht+1===nt){(Ne-=3)>-1&&Ge.push(239,191,189);continue}ot=je;continue}if(je<56320){(Ne-=3)>-1&&Ge.push(239,191,189),ot=je;continue}je=65536+(ot-55296<<10|je-56320)}else ot&&(Ne-=3)>-1&&Ge.push(239,191,189);if(ot=null,je<128){if((Ne-=1)<0)break;Ge.push(je)}else if(je<2048){if((Ne-=2)<0)break;Ge.push(je>>6|192,63&je|128)}else if(je<65536){if((Ne-=3)<0)break;Ge.push(je>>12|224,je>>6&63|128,63&je|128)}else{if(!(je<1114112))throw new Error("Invalid code point");if((Ne-=4)<0)break;Ge.push(je>>18|240,je>>12&63|128,je>>6&63|128,63&je|128)}}return Ge}function ke(Ee){return S.toByteArray(function(Ne){if((Ne=(Ne=Ne.split("=")[0]).trim().replace($e,"")).length<2)return"";for(;Ne.length%4!=0;)Ne+="=";return Ne}(Ee))}function Le(Ee,Ne,je,nt){var ot;for(ot=0;ot=Ne.length||ot>=Ee.length);++ot)Ne[ot+je]=Ee[ot];return ot}function We(Ee,Ne){return Ee instanceof Ne||Ee!=null&&Ee.constructor!=null&&Ee.constructor.name!=null&&Ee.constructor.name===Ne.name}function Ue(Ee){return Ee!=Ee}var Ze=function(){for(var Ee="0123456789abcdef",Ne=new Array(256),je=0;je<16;++je)for(var nt=16*je,ot=0;ot<16;++ot)Ne[nt+ot]=Ee[je]+Ee[ot];return Ne}();function Xe(Ee){return typeof BigInt>"u"?tt:Ee}function tt(){throw new Error("BigInt not supported")}},2321:function(y){y.exports=h,y.exports.isMobile=h,y.exports.default=h;var p=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/CrOS/,u=/android|ipad|playbook|silk/i;function h(m){m||(m={});var v=m.ua;if(v||typeof navigator>"u"||(v=navigator.userAgent),v&&v.headers&&typeof v.headers["user-agent"]=="string"&&(v=v.headers["user-agent"]),typeof v!="string")return!1;var _=p.test(v)&&!a.test(v)||!!m.tablet&&u.test(v);return!_&&m.tablet&&m.featureDetect&&navigator&&navigator.maxTouchPoints>1&&v.indexOf("Macintosh")!==-1&&v.indexOf("Safari")!==-1&&(_=!0),_}},3910:function(y,p){p.byteLength=function(A){var x=_(A),R=x[0],M=x[1];return 3*(R+M)/4-M},p.toByteArray=function(A){var x,R,M=_(A),T=M[0],E=M[1],C=new h(function(k,I,z){return 3*(I+z)/4-z}(0,T,E)),L=0,D=E>0?T-4:T;for(R=0;R>16&255,C[L++]=x>>8&255,C[L++]=255&x;return E===2&&(x=u[A.charCodeAt(R)]<<2|u[A.charCodeAt(R+1)]>>4,C[L++]=255&x),E===1&&(x=u[A.charCodeAt(R)]<<10|u[A.charCodeAt(R+1)]<<4|u[A.charCodeAt(R+2)]>>2,C[L++]=x>>8&255,C[L++]=255&x),C},p.fromByteArray=function(A){for(var x,R=A.length,M=R%3,T=[],E=16383,C=0,L=R-M;CL?L:C+E));return M===1?(x=A[R-1],T.push(a[x>>2]+a[x<<4&63]+"==")):M===2&&(x=(A[R-2]<<8)+A[R-1],T.push(a[x>>10]+a[x>>4&63]+a[x<<2&63]+"=")),T.join("")};for(var a=[],u=[],h=typeof Uint8Array<"u"?Uint8Array:Array,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=0;v<64;++v)a[v]=m[v],u[m.charCodeAt(v)]=v;function _(A){var x=A.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=A.indexOf("=");return R===-1&&(R=x),[R,R===x?0:4-R%4]}function S(A,x,R){for(var M,T,E=[],C=x;C>18&63]+a[T>>12&63]+a[T>>6&63]+a[63&T]);return E.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},3187:function(y,p){p.read=function(a,u,h,m,v){var _,S,A=8*v-m-1,x=(1<>1,M=-7,T=h?v-1:0,E=h?-1:1,C=a[u+T];for(T+=E,_=C&(1<<-M)-1,C>>=-M,M+=A;M>0;_=256*_+a[u+T],T+=E,M-=8);for(S=_&(1<<-M)-1,_>>=-M,M+=m;M>0;S=256*S+a[u+T],T+=E,M-=8);if(_===0)_=1-R;else{if(_===x)return S?NaN:1/0*(C?-1:1);S+=Math.pow(2,m),_-=R}return(C?-1:1)*S*Math.pow(2,_-m)},p.write=function(a,u,h,m,v,_){var S,A,x,R=8*_-v-1,M=(1<>1,E=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=m?0:_-1,L=m?1:-1,D=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(A=isNaN(u)?1:0,S=M):(S=Math.floor(Math.log(u)/Math.LN2),u*(x=Math.pow(2,-S))<1&&(S--,x*=2),(u+=S+T>=1?E/x:E*Math.pow(2,1-T))*x>=2&&(S++,x/=2),S+T>=M?(A=0,S=M):S+T>=1?(A=(u*x-1)*Math.pow(2,v),S+=T):(A=u*Math.pow(2,T-1)*Math.pow(2,v),S=0));v>=8;a[h+C]=255&A,C+=L,A/=256,v-=8);for(S=S<0;a[h+C]=255&S,C+=L,S/=256,R-=8);a[h+C-L]|=128*D}},1152:function(y,p,a){y.exports=function(S){var A=(S=S||{}).eye||[0,0,1],x=S.center||[0,0,0],R=S.up||[0,1,0],M=S.distanceLimits||[0,1/0],T=S.mode||"turntable",E=u(),C=h(),L=m();return E.setDistanceLimits(M[0],M[1]),E.lookAt(0,A,x,R),C.setDistanceLimits(M[0],M[1]),C.lookAt(0,A,x,R),L.setDistanceLimits(M[0],M[1]),L.lookAt(0,A,x,R),new v({turntable:E,orbit:C,matrix:L},T)};var u=a(3440),h=a(7774),m=a(9298);function v(S,A){this._controllerNames=Object.keys(S),this._controllerList=this._controllerNames.map(function(x){return S[x]}),this._mode=A,this._active=S[A],this._active||(this._mode="turntable",this._active=S.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var _=v.prototype;_.flush=function(S){for(var A=this._controllerList,x=0;x"u"?a(5346):WeakMap,h=a(5827),m=a(2944),v=new u;y.exports=function(_){var S=v.get(_),A=S&&(S._triangleBuffer.handle||S._triangleBuffer.buffer);if(!A||!_.isBuffer(A)){var x=h(_,new Float32Array([-1,-1,-1,4,4,-1]));(S=m(_,[{buffer:x,type:_.FLOAT,size:2}]))._triangleBuffer=x,v.set(_,S)}S.bind(),_.drawArrays(_.TRIANGLES,0,3),S.unbind()}},8008:function(y,p,a){var u=a(4930);y.exports=function(h,m,v){m=typeof m=="number"?m:1,v=v||": ";var _=h.split(/\r?\n/),S=String(_.length+m-1).length;return _.map(function(A,x){var R=x+m,M=String(R).length;return u(R,S-M)+v+A}).join(` -`)}},2153:function(y,p,a){y.exports=function(m){var v=m.length;if(v===0)return[];if(v===1)return[0];for(var _=m[0].length,S=[m[0]],A=[0],x=1;x0?M=M.ushln(E):E<0&&(T=T.ushln(-E)),_(M,T)}},234:function(y,p,a){var u=a(3218);y.exports=function(h){return Array.isArray(h)&&h.length===2&&u(h[0])&&u(h[1])}},4275:function(y,p,a){var u=a(1928);y.exports=function(h){return h.cmp(new u(0))}},9958:function(y,p,a){var u=a(4275);y.exports=function(h){var m=h.length,v=h.words,_=0;if(m===1)_=v[0];else if(m===2)_=v[0]+67108864*v[1];else for(var S=0;S20?52:_+32}},3218:function(y,p,a){a(1928),y.exports=function(u){return u&&typeof u=="object"&&!!u.words}},5514:function(y,p,a){var u=a(1928),h=a(8362);y.exports=function(m){var v=h.exponent(m);return v<52?new u(m):new u(m*Math.pow(2,52-v)).ushln(v-52)}},8524:function(y,p,a){var u=a(5514),h=a(4275);y.exports=function(m,v){var _=h(m),S=h(v);if(_===0)return[u(0),u(1)];if(S===0)return[u(0),u(0)];S<0&&(m=m.neg(),v=v.neg());var A=m.gcd(v);return A.cmpn(1)?[m.div(A),v.div(A)]:[m,v]}},2813:function(y,p,a){var u=a(1928);y.exports=function(h){return new u(h)}},3962:function(y,p,a){var u=a(8524);y.exports=function(h,m){return u(h[0].mul(m[0]),h[1].mul(m[1]))}},4951:function(y,p,a){var u=a(4275);y.exports=function(h){return u(h[0])*u(h[1])}},4354:function(y,p,a){var u=a(8524);y.exports=function(h,m){return u(h[0].mul(m[1]).sub(h[1].mul(m[0])),h[1].mul(m[1]))}},7999:function(y,p,a){var u=a(9958),h=a(1112);y.exports=function(m){var v=m[0],_=m[1];if(v.cmpn(0)===0)return 0;var S=v.abs().divmod(_.abs()),A=S.div,x=u(A),R=S.mod,M=v.negative!==_.negative?-1:1;if(R.cmpn(0)===0)return M*x;if(x){var T=h(x)+4;return M*(x+(C=u(R.ushln(T).divRound(_)))*Math.pow(2,-T))}var E=_.bitLength()-R.bitLength()+53,C=u(R.ushln(E).divRound(_));return E<1023?M*C*Math.pow(2,-E):M*(C*=Math.pow(2,-1023))*Math.pow(2,1023-E)}},5070:function(y){function p(_,S,A,x,R){for(var M=R+1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)>=0?(M=T,R=T-1):x=T+1}return M}function a(_,S,A,x,R){for(var M=R+1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)>0?(M=T,R=T-1):x=T+1}return M}function u(_,S,A,x,R){for(var M=x-1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)<0?(M=T,x=T+1):R=T-1}return M}function h(_,S,A,x,R){for(var M=x-1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)<=0?(M=T,x=T+1):R=T-1}return M}function m(_,S,A,x,R){for(;x<=R;){var M=x+R>>>1,T=_[M],E=A!==void 0?A(T,S):T-S;if(E===0)return M;E<=0?x=M+1:R=M-1}return-1}function v(_,S,A,x,R,M){return typeof A=="function"?M(_,S,A,x===void 0?0:0|x,R===void 0?_.length-1:0|R):M(_,S,void 0,A===void 0?0:0|A,x===void 0?_.length-1:0|x)}y.exports={ge:function(_,S,A,x,R){return v(_,S,A,x,R,p)},gt:function(_,S,A,x,R){return v(_,S,A,x,R,a)},lt:function(_,S,A,x,R){return v(_,S,A,x,R,u)},le:function(_,S,A,x,R){return v(_,S,A,x,R,h)},eq:function(_,S,A,x,R){return v(_,S,A,x,R,m)}}},2288:function(y,p){function a(h){var m=32;return(h&=-h)&&m--,65535&h&&(m-=16),16711935&h&&(m-=8),252645135&h&&(m-=4),858993459&h&&(m-=2),1431655765&h&&(m-=1),m}p.INT_BITS=32,p.INT_MAX=2147483647,p.INT_MIN=-2147483648,p.sign=function(h){return(h>0)-(h<0)},p.abs=function(h){var m=h>>31;return(h^m)-m},p.min=function(h,m){return m^(h^m)&-(h65535)<<4,m|=v=((h>>>=m)>255)<<3,m|=v=((h>>>=v)>15)<<2,(m|=v=((h>>>=v)>3)<<1)|(h>>>=v)>>1},p.log10=function(h){return h>=1e9?9:h>=1e8?8:h>=1e7?7:h>=1e6?6:h>=1e5?5:h>=1e4?4:h>=1e3?3:h>=100?2:h>=10?1:0},p.popCount=function(h){return 16843009*((h=(858993459&(h-=h>>>1&1431655765))+(h>>>2&858993459))+(h>>>4)&252645135)>>>24},p.countTrailingZeros=a,p.nextPow2=function(h){return h+=h===0,--h,h|=h>>>1,h|=h>>>2,h|=h>>>4,1+((h|=h>>>8)|h>>>16)},p.prevPow2=function(h){return h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,(h|=h>>>16)-(h>>>1)},p.parity=function(h){return h^=h>>>16,h^=h>>>8,h^=h>>>4,27030>>>(h&=15)&1};var u=new Array(256);(function(h){for(var m=0;m<256;++m){var v=m,_=m,S=7;for(v>>>=1;v;v>>>=1)_<<=1,_|=1&v,--S;h[m]=_<>>8&255]<<16|u[h>>>16&255]<<8|u[h>>>24&255]},p.interleave2=function(h,m){return(h=1431655765&((h=858993459&((h=252645135&((h=16711935&((h&=65535)|h<<8))|h<<4))|h<<2))|h<<1))|(m=1431655765&((m=858993459&((m=252645135&((m=16711935&((m&=65535)|m<<8))|m<<4))|m<<2))|m<<1))<<1},p.deinterleave2=function(h,m){return(h=65535&((h=16711935&((h=252645135&((h=858993459&((h=h>>>m&1431655765)|h>>>1))|h>>>2))|h>>>4))|h>>>16))<<16>>16},p.interleave3=function(h,m,v){return h=1227133513&((h=3272356035&((h=251719695&((h=4278190335&((h&=1023)|h<<16))|h<<8))|h<<4))|h<<2),(h|=(m=1227133513&((m=3272356035&((m=251719695&((m=4278190335&((m&=1023)|m<<16))|m<<8))|m<<4))|m<<2))<<1)|(v=1227133513&((v=3272356035&((v=251719695&((v=4278190335&((v&=1023)|v<<16))|v<<8))|v<<4))|v<<2))<<2},p.deinterleave3=function(h,m){return(h=1023&((h=4278190335&((h=251719695&((h=3272356035&((h=h>>>m&1227133513)|h>>>2))|h>>>4))|h>>>8))|h>>>16))<<22>>22},p.nextCombination=function(h){var m=h|h-1;return m+1|(~m&-~m)-1>>>a(h)+1}},1928:function(y,p,a){(function(u,h){function m(W,K){if(!W)throw new Error(K||"Assertion failed")}function v(W,K){W.super_=K;var oe=function(){};oe.prototype=K.prototype,W.prototype=new oe,W.prototype.constructor=W}function _(W,K,oe){if(_.isBN(W))return W;this.negative=0,this.words=null,this.length=0,this.red=null,W!==null&&(K!=="le"&&K!=="be"||(oe=K,K=10),this._init(W||0,K||10,oe||"be"))}var S;typeof u=="object"?u.exports=_:h.BN=_,_.BN=_,_.wordSize=26;try{S=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:a(6601).Buffer}catch{}function A(W,K){var oe=W.charCodeAt(K);return oe>=65&&oe<=70?oe-55:oe>=97&&oe<=102?oe-87:oe-48&15}function x(W,K,oe){var q=A(W,oe);return oe-1>=K&&(q|=A(W,oe-1)<<4),q}function R(W,K,oe,q){for(var Y=0,ee=Math.min(W.length,oe),me=K;me=49?he-49+10:he>=17?he-17+10:he}return Y}_.isBN=function(W){return W instanceof _||W!==null&&typeof W=="object"&&W.constructor.wordSize===_.wordSize&&Array.isArray(W.words)},_.max=function(W,K){return W.cmp(K)>0?W:K},_.min=function(W,K){return W.cmp(K)<0?W:K},_.prototype._init=function(W,K,oe){if(typeof W=="number")return this._initNumber(W,K,oe);if(typeof W=="object")return this._initArray(W,K,oe);K==="hex"&&(K=16),m(K===(0|K)&&K>=2&&K<=36);var q=0;(W=W.toString().replace(/\s+/g,""))[0]==="-"&&(q++,this.negative=1),q=0;q-=3)ee=W[q]|W[q-1]<<8|W[q-2]<<16,this.words[Y]|=ee<>>26-me&67108863,(me+=24)>=26&&(me-=26,Y++);else if(oe==="le")for(q=0,Y=0;q>>26-me&67108863,(me+=24)>=26&&(me-=26,Y++);return this.strip()},_.prototype._parseHex=function(W,K,oe){this.length=Math.ceil((W.length-K)/6),this.words=new Array(this.length);for(var q=0;q=K;q-=2)Y=x(W,K,q)<=18?(ee-=18,me+=1,this.words[me]|=Y>>>26):ee+=8;else for(q=(W.length-K)%2==0?K+1:K;q=18?(ee-=18,me+=1,this.words[me]|=Y>>>26):ee+=8;this.strip()},_.prototype._parseBase=function(W,K,oe){this.words=[0],this.length=1;for(var q=0,Y=1;Y<=67108863;Y*=K)q++;q--,Y=Y/K|0;for(var ee=W.length-oe,me=ee%q,he=Math.min(ee,ee-me)+oe,se=0,ae=oe;ae1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},_.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},_.prototype.inspect=function(){return(this.red?""};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function C(W,K,oe){oe.negative=K.negative^W.negative;var q=W.length+K.length|0;oe.length=q,q=q-1|0;var Y=0|W.words[0],ee=0|K.words[0],me=Y*ee,he=67108863&me,se=me/67108864|0;oe.words[0]=he;for(var ae=1;ae>>26,de=67108863&se,ve=Math.min(ae,K.length-1),ye=Math.max(0,ae-W.length+1);ye<=ve;ye++){var _e=ae-ye|0;ce+=(me=(Y=0|W.words[_e])*(ee=0|K.words[ye])+de)/67108864|0,de=67108863&me}oe.words[ae]=0|de,se=0|ce}return se!==0?oe.words[ae]=0|se:oe.length--,oe.strip()}_.prototype.toString=function(W,K){var oe;if(K=0|K||1,(W=W||10)===16||W==="hex"){oe="";for(var q=0,Y=0,ee=0;ee>>24-q&16777215)!=0||ee!==this.length-1?M[6-he.length]+he+oe:he+oe,(q+=2)>=26&&(q-=26,ee--)}for(Y!==0&&(oe=Y.toString(16)+oe);oe.length%K!=0;)oe="0"+oe;return this.negative!==0&&(oe="-"+oe),oe}if(W===(0|W)&&W>=2&&W<=36){var se=T[W],ae=E[W];oe="";var ce=this.clone();for(ce.negative=0;!ce.isZero();){var de=ce.modn(ae).toString(W);oe=(ce=ce.idivn(ae)).isZero()?de+oe:M[se-de.length]+de+oe}for(this.isZero()&&(oe="0"+oe);oe.length%K!=0;)oe="0"+oe;return this.negative!==0&&(oe="-"+oe),oe}m(!1,"Base should be between 2 and 36")},_.prototype.toNumber=function(){var W=this.words[0];return this.length===2?W+=67108864*this.words[1]:this.length===3&&this.words[2]===1?W+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-W:W},_.prototype.toJSON=function(){return this.toString(16)},_.prototype.toBuffer=function(W,K){return m(S!==void 0),this.toArrayLike(S,W,K)},_.prototype.toArray=function(W,K){return this.toArrayLike(Array,W,K)},_.prototype.toArrayLike=function(W,K,oe){var q=this.byteLength(),Y=oe||Math.max(1,q);m(q<=Y,"byte array longer than desired length"),m(Y>0,"Requested array length <= 0"),this.strip();var ee,me,he=K==="le",se=new W(Y),ae=this.clone();if(he){for(me=0;!ae.isZero();me++)ee=ae.andln(255),ae.iushrn(8),se[me]=ee;for(;me=4096&&(oe+=13,K>>>=13),K>=64&&(oe+=7,K>>>=7),K>=8&&(oe+=4,K>>>=4),K>=2&&(oe+=2,K>>>=2),oe+K},_.prototype._zeroBits=function(W){if(W===0)return 26;var K=W,oe=0;return!(8191&K)&&(oe+=13,K>>>=13),!(127&K)&&(oe+=7,K>>>=7),!(15&K)&&(oe+=4,K>>>=4),!(3&K)&&(oe+=2,K>>>=2),!(1&K)&&oe++,oe},_.prototype.bitLength=function(){var W=this.words[this.length-1],K=this._countBits(W);return 26*(this.length-1)+K},_.prototype.zeroBits=function(){if(this.isZero())return 0;for(var W=0,K=0;KW.length?this.clone().ior(W):W.clone().ior(this)},_.prototype.uor=function(W){return this.length>W.length?this.clone().iuor(W):W.clone().iuor(this)},_.prototype.iuand=function(W){var K;K=this.length>W.length?W:this;for(var oe=0;oeW.length?this.clone().iand(W):W.clone().iand(this)},_.prototype.uand=function(W){return this.length>W.length?this.clone().iuand(W):W.clone().iuand(this)},_.prototype.iuxor=function(W){var K,oe;this.length>W.length?(K=this,oe=W):(K=W,oe=this);for(var q=0;qW.length?this.clone().ixor(W):W.clone().ixor(this)},_.prototype.uxor=function(W){return this.length>W.length?this.clone().iuxor(W):W.clone().iuxor(this)},_.prototype.inotn=function(W){m(typeof W=="number"&&W>=0);var K=0|Math.ceil(W/26),oe=W%26;this._expand(K),oe>0&&K--;for(var q=0;q0&&(this.words[q]=~this.words[q]&67108863>>26-oe),this.strip()},_.prototype.notn=function(W){return this.clone().inotn(W)},_.prototype.setn=function(W,K){m(typeof W=="number"&&W>=0);var oe=W/26|0,q=W%26;return this._expand(oe+1),this.words[oe]=K?this.words[oe]|1<W.length?(oe=this,q=W):(oe=W,q=this);for(var Y=0,ee=0;ee>>26;for(;Y!==0&&ee>>26;if(this.length=oe.length,Y!==0)this.words[this.length]=Y,this.length++;else if(oe!==this)for(;eeW.length?this.clone().iadd(W):W.clone().iadd(this)},_.prototype.isub=function(W){if(W.negative!==0){W.negative=0;var K=this.iadd(W);return W.negative=1,K._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(W),this.negative=1,this._normSign();var oe,q,Y=this.cmp(W);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;Y>0?(oe=this,q=W):(oe=W,q=this);for(var ee=0,me=0;me>26,this.words[me]=67108863&K;for(;ee!==0&&me>26,this.words[me]=67108863&K;if(ee===0&&me>>13,ye=0|me[1],_e=8191&ye,Se=ye>>>13,Te=0|me[2],Pe=8191&Te,Ie=Te>>>13,ze=0|me[3],De=8191&ze,He=ze>>>13,Ve=0|me[4],$e=8191&Ve,Oe=Ve>>>13,ke=0|me[5],Le=8191&ke,We=ke>>>13,Ue=0|me[6],Ze=8191&Ue,Xe=Ue>>>13,tt=0|me[7],Ee=8191&tt,Ne=tt>>>13,je=0|me[8],nt=8191&je,ot=je>>>13,Ge=0|me[9],ht=8191&Ge,pt=Ge>>>13,wt=0|he[0],Dt=8191&wt,It=wt>>>13,qt=0|he[1],en=8191&qt,Gt=qt>>>13,Ct=0|he[2],_t=8191&Ct,nn=Ct>>>13,gn=0|he[3],bn=8191&gn,mn=gn>>>13,vt=0|he[4],bt=8191&vt,lt=vt>>>13,yt=0|he[5],zt=8191&yt,Rt=yt>>>13,it=0|he[6],at=8191&it,Lt=it>>>13,xt=0|he[7],Ht=8191&xt,Xt=xt>>>13,Yt=0|he[8],Qt=8191&Yt,Pt=Yt>>>13,tn=0|he[9],Kt=8191&tn,fn=tn>>>13;oe.negative=W.negative^K.negative,oe.length=19;var dn=(ae+(q=Math.imul(de,Dt))|0)+((8191&(Y=(Y=Math.imul(de,It))+Math.imul(ve,Dt)|0))<<13)|0;ae=((ee=Math.imul(ve,It))+(Y>>>13)|0)+(dn>>>26)|0,dn&=67108863,q=Math.imul(_e,Dt),Y=(Y=Math.imul(_e,It))+Math.imul(Se,Dt)|0,ee=Math.imul(Se,It);var vn=(ae+(q=q+Math.imul(de,en)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Gt)|0)+Math.imul(ve,en)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Gt)|0)+(Y>>>13)|0)+(vn>>>26)|0,vn&=67108863,q=Math.imul(Pe,Dt),Y=(Y=Math.imul(Pe,It))+Math.imul(Ie,Dt)|0,ee=Math.imul(Ie,It),q=q+Math.imul(_e,en)|0,Y=(Y=Y+Math.imul(_e,Gt)|0)+Math.imul(Se,en)|0,ee=ee+Math.imul(Se,Gt)|0;var Nn=(ae+(q=q+Math.imul(de,_t)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,nn)|0)+Math.imul(ve,_t)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,nn)|0)+(Y>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,q=Math.imul(De,Dt),Y=(Y=Math.imul(De,It))+Math.imul(He,Dt)|0,ee=Math.imul(He,It),q=q+Math.imul(Pe,en)|0,Y=(Y=Y+Math.imul(Pe,Gt)|0)+Math.imul(Ie,en)|0,ee=ee+Math.imul(Ie,Gt)|0,q=q+Math.imul(_e,_t)|0,Y=(Y=Y+Math.imul(_e,nn)|0)+Math.imul(Se,_t)|0,ee=ee+Math.imul(Se,nn)|0;var er=(ae+(q=q+Math.imul(de,bn)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,mn)|0)+Math.imul(ve,bn)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,mn)|0)+(Y>>>13)|0)+(er>>>26)|0,er&=67108863,q=Math.imul($e,Dt),Y=(Y=Math.imul($e,It))+Math.imul(Oe,Dt)|0,ee=Math.imul(Oe,It),q=q+Math.imul(De,en)|0,Y=(Y=Y+Math.imul(De,Gt)|0)+Math.imul(He,en)|0,ee=ee+Math.imul(He,Gt)|0,q=q+Math.imul(Pe,_t)|0,Y=(Y=Y+Math.imul(Pe,nn)|0)+Math.imul(Ie,_t)|0,ee=ee+Math.imul(Ie,nn)|0,q=q+Math.imul(_e,bn)|0,Y=(Y=Y+Math.imul(_e,mn)|0)+Math.imul(Se,bn)|0,ee=ee+Math.imul(Se,mn)|0;var En=(ae+(q=q+Math.imul(de,bt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,lt)|0)+Math.imul(ve,bt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,lt)|0)+(Y>>>13)|0)+(En>>>26)|0,En&=67108863,q=Math.imul(Le,Dt),Y=(Y=Math.imul(Le,It))+Math.imul(We,Dt)|0,ee=Math.imul(We,It),q=q+Math.imul($e,en)|0,Y=(Y=Y+Math.imul($e,Gt)|0)+Math.imul(Oe,en)|0,ee=ee+Math.imul(Oe,Gt)|0,q=q+Math.imul(De,_t)|0,Y=(Y=Y+Math.imul(De,nn)|0)+Math.imul(He,_t)|0,ee=ee+Math.imul(He,nn)|0,q=q+Math.imul(Pe,bn)|0,Y=(Y=Y+Math.imul(Pe,mn)|0)+Math.imul(Ie,bn)|0,ee=ee+Math.imul(Ie,mn)|0,q=q+Math.imul(_e,bt)|0,Y=(Y=Y+Math.imul(_e,lt)|0)+Math.imul(Se,bt)|0,ee=ee+Math.imul(Se,lt)|0;var In=(ae+(q=q+Math.imul(de,zt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Rt)|0)+Math.imul(ve,zt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Rt)|0)+(Y>>>13)|0)+(In>>>26)|0,In&=67108863,q=Math.imul(Ze,Dt),Y=(Y=Math.imul(Ze,It))+Math.imul(Xe,Dt)|0,ee=Math.imul(Xe,It),q=q+Math.imul(Le,en)|0,Y=(Y=Y+Math.imul(Le,Gt)|0)+Math.imul(We,en)|0,ee=ee+Math.imul(We,Gt)|0,q=q+Math.imul($e,_t)|0,Y=(Y=Y+Math.imul($e,nn)|0)+Math.imul(Oe,_t)|0,ee=ee+Math.imul(Oe,nn)|0,q=q+Math.imul(De,bn)|0,Y=(Y=Y+Math.imul(De,mn)|0)+Math.imul(He,bn)|0,ee=ee+Math.imul(He,mn)|0,q=q+Math.imul(Pe,bt)|0,Y=(Y=Y+Math.imul(Pe,lt)|0)+Math.imul(Ie,bt)|0,ee=ee+Math.imul(Ie,lt)|0,q=q+Math.imul(_e,zt)|0,Y=(Y=Y+Math.imul(_e,Rt)|0)+Math.imul(Se,zt)|0,ee=ee+Math.imul(Se,Rt)|0;var Un=(ae+(q=q+Math.imul(de,at)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Lt)|0)+Math.imul(ve,at)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Lt)|0)+(Y>>>13)|0)+(Un>>>26)|0,Un&=67108863,q=Math.imul(Ee,Dt),Y=(Y=Math.imul(Ee,It))+Math.imul(Ne,Dt)|0,ee=Math.imul(Ne,It),q=q+Math.imul(Ze,en)|0,Y=(Y=Y+Math.imul(Ze,Gt)|0)+Math.imul(Xe,en)|0,ee=ee+Math.imul(Xe,Gt)|0,q=q+Math.imul(Le,_t)|0,Y=(Y=Y+Math.imul(Le,nn)|0)+Math.imul(We,_t)|0,ee=ee+Math.imul(We,nn)|0,q=q+Math.imul($e,bn)|0,Y=(Y=Y+Math.imul($e,mn)|0)+Math.imul(Oe,bn)|0,ee=ee+Math.imul(Oe,mn)|0,q=q+Math.imul(De,bt)|0,Y=(Y=Y+Math.imul(De,lt)|0)+Math.imul(He,bt)|0,ee=ee+Math.imul(He,lt)|0,q=q+Math.imul(Pe,zt)|0,Y=(Y=Y+Math.imul(Pe,Rt)|0)+Math.imul(Ie,zt)|0,ee=ee+Math.imul(Ie,Rt)|0,q=q+Math.imul(_e,at)|0,Y=(Y=Y+Math.imul(_e,Lt)|0)+Math.imul(Se,at)|0,ee=ee+Math.imul(Se,Lt)|0;var xr=(ae+(q=q+Math.imul(de,Ht)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Xt)|0)+Math.imul(ve,Ht)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Xt)|0)+(Y>>>13)|0)+(xr>>>26)|0,xr&=67108863,q=Math.imul(nt,Dt),Y=(Y=Math.imul(nt,It))+Math.imul(ot,Dt)|0,ee=Math.imul(ot,It),q=q+Math.imul(Ee,en)|0,Y=(Y=Y+Math.imul(Ee,Gt)|0)+Math.imul(Ne,en)|0,ee=ee+Math.imul(Ne,Gt)|0,q=q+Math.imul(Ze,_t)|0,Y=(Y=Y+Math.imul(Ze,nn)|0)+Math.imul(Xe,_t)|0,ee=ee+Math.imul(Xe,nn)|0,q=q+Math.imul(Le,bn)|0,Y=(Y=Y+Math.imul(Le,mn)|0)+Math.imul(We,bn)|0,ee=ee+Math.imul(We,mn)|0,q=q+Math.imul($e,bt)|0,Y=(Y=Y+Math.imul($e,lt)|0)+Math.imul(Oe,bt)|0,ee=ee+Math.imul(Oe,lt)|0,q=q+Math.imul(De,zt)|0,Y=(Y=Y+Math.imul(De,Rt)|0)+Math.imul(He,zt)|0,ee=ee+Math.imul(He,Rt)|0,q=q+Math.imul(Pe,at)|0,Y=(Y=Y+Math.imul(Pe,Lt)|0)+Math.imul(Ie,at)|0,ee=ee+Math.imul(Ie,Lt)|0,q=q+Math.imul(_e,Ht)|0,Y=(Y=Y+Math.imul(_e,Xt)|0)+Math.imul(Se,Ht)|0,ee=ee+Math.imul(Se,Xt)|0;var Sr=(ae+(q=q+Math.imul(de,Qt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Pt)|0)+Math.imul(ve,Qt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Pt)|0)+(Y>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,q=Math.imul(ht,Dt),Y=(Y=Math.imul(ht,It))+Math.imul(pt,Dt)|0,ee=Math.imul(pt,It),q=q+Math.imul(nt,en)|0,Y=(Y=Y+Math.imul(nt,Gt)|0)+Math.imul(ot,en)|0,ee=ee+Math.imul(ot,Gt)|0,q=q+Math.imul(Ee,_t)|0,Y=(Y=Y+Math.imul(Ee,nn)|0)+Math.imul(Ne,_t)|0,ee=ee+Math.imul(Ne,nn)|0,q=q+Math.imul(Ze,bn)|0,Y=(Y=Y+Math.imul(Ze,mn)|0)+Math.imul(Xe,bn)|0,ee=ee+Math.imul(Xe,mn)|0,q=q+Math.imul(Le,bt)|0,Y=(Y=Y+Math.imul(Le,lt)|0)+Math.imul(We,bt)|0,ee=ee+Math.imul(We,lt)|0,q=q+Math.imul($e,zt)|0,Y=(Y=Y+Math.imul($e,Rt)|0)+Math.imul(Oe,zt)|0,ee=ee+Math.imul(Oe,Rt)|0,q=q+Math.imul(De,at)|0,Y=(Y=Y+Math.imul(De,Lt)|0)+Math.imul(He,at)|0,ee=ee+Math.imul(He,Lt)|0,q=q+Math.imul(Pe,Ht)|0,Y=(Y=Y+Math.imul(Pe,Xt)|0)+Math.imul(Ie,Ht)|0,ee=ee+Math.imul(Ie,Xt)|0,q=q+Math.imul(_e,Qt)|0,Y=(Y=Y+Math.imul(_e,Pt)|0)+Math.imul(Se,Qt)|0,ee=ee+Math.imul(Se,Pt)|0;var ar=(ae+(q=q+Math.imul(de,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,fn)|0)+Math.imul(ve,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,fn)|0)+(Y>>>13)|0)+(ar>>>26)|0,ar&=67108863,q=Math.imul(ht,en),Y=(Y=Math.imul(ht,Gt))+Math.imul(pt,en)|0,ee=Math.imul(pt,Gt),q=q+Math.imul(nt,_t)|0,Y=(Y=Y+Math.imul(nt,nn)|0)+Math.imul(ot,_t)|0,ee=ee+Math.imul(ot,nn)|0,q=q+Math.imul(Ee,bn)|0,Y=(Y=Y+Math.imul(Ee,mn)|0)+Math.imul(Ne,bn)|0,ee=ee+Math.imul(Ne,mn)|0,q=q+Math.imul(Ze,bt)|0,Y=(Y=Y+Math.imul(Ze,lt)|0)+Math.imul(Xe,bt)|0,ee=ee+Math.imul(Xe,lt)|0,q=q+Math.imul(Le,zt)|0,Y=(Y=Y+Math.imul(Le,Rt)|0)+Math.imul(We,zt)|0,ee=ee+Math.imul(We,Rt)|0,q=q+Math.imul($e,at)|0,Y=(Y=Y+Math.imul($e,Lt)|0)+Math.imul(Oe,at)|0,ee=ee+Math.imul(Oe,Lt)|0,q=q+Math.imul(De,Ht)|0,Y=(Y=Y+Math.imul(De,Xt)|0)+Math.imul(He,Ht)|0,ee=ee+Math.imul(He,Xt)|0,q=q+Math.imul(Pe,Qt)|0,Y=(Y=Y+Math.imul(Pe,Pt)|0)+Math.imul(Ie,Qt)|0,ee=ee+Math.imul(Ie,Pt)|0;var Fn=(ae+(q=q+Math.imul(_e,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(_e,fn)|0)+Math.imul(Se,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Se,fn)|0)+(Y>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,q=Math.imul(ht,_t),Y=(Y=Math.imul(ht,nn))+Math.imul(pt,_t)|0,ee=Math.imul(pt,nn),q=q+Math.imul(nt,bn)|0,Y=(Y=Y+Math.imul(nt,mn)|0)+Math.imul(ot,bn)|0,ee=ee+Math.imul(ot,mn)|0,q=q+Math.imul(Ee,bt)|0,Y=(Y=Y+Math.imul(Ee,lt)|0)+Math.imul(Ne,bt)|0,ee=ee+Math.imul(Ne,lt)|0,q=q+Math.imul(Ze,zt)|0,Y=(Y=Y+Math.imul(Ze,Rt)|0)+Math.imul(Xe,zt)|0,ee=ee+Math.imul(Xe,Rt)|0,q=q+Math.imul(Le,at)|0,Y=(Y=Y+Math.imul(Le,Lt)|0)+Math.imul(We,at)|0,ee=ee+Math.imul(We,Lt)|0,q=q+Math.imul($e,Ht)|0,Y=(Y=Y+Math.imul($e,Xt)|0)+Math.imul(Oe,Ht)|0,ee=ee+Math.imul(Oe,Xt)|0,q=q+Math.imul(De,Qt)|0,Y=(Y=Y+Math.imul(De,Pt)|0)+Math.imul(He,Qt)|0,ee=ee+Math.imul(He,Pt)|0;var ir=(ae+(q=q+Math.imul(Pe,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Pe,fn)|0)+Math.imul(Ie,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Ie,fn)|0)+(Y>>>13)|0)+(ir>>>26)|0,ir&=67108863,q=Math.imul(ht,bn),Y=(Y=Math.imul(ht,mn))+Math.imul(pt,bn)|0,ee=Math.imul(pt,mn),q=q+Math.imul(nt,bt)|0,Y=(Y=Y+Math.imul(nt,lt)|0)+Math.imul(ot,bt)|0,ee=ee+Math.imul(ot,lt)|0,q=q+Math.imul(Ee,zt)|0,Y=(Y=Y+Math.imul(Ee,Rt)|0)+Math.imul(Ne,zt)|0,ee=ee+Math.imul(Ne,Rt)|0,q=q+Math.imul(Ze,at)|0,Y=(Y=Y+Math.imul(Ze,Lt)|0)+Math.imul(Xe,at)|0,ee=ee+Math.imul(Xe,Lt)|0,q=q+Math.imul(Le,Ht)|0,Y=(Y=Y+Math.imul(Le,Xt)|0)+Math.imul(We,Ht)|0,ee=ee+Math.imul(We,Xt)|0,q=q+Math.imul($e,Qt)|0,Y=(Y=Y+Math.imul($e,Pt)|0)+Math.imul(Oe,Qt)|0,ee=ee+Math.imul(Oe,Pt)|0;var Wn=(ae+(q=q+Math.imul(De,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(De,fn)|0)+Math.imul(He,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(He,fn)|0)+(Y>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,q=Math.imul(ht,bt),Y=(Y=Math.imul(ht,lt))+Math.imul(pt,bt)|0,ee=Math.imul(pt,lt),q=q+Math.imul(nt,zt)|0,Y=(Y=Y+Math.imul(nt,Rt)|0)+Math.imul(ot,zt)|0,ee=ee+Math.imul(ot,Rt)|0,q=q+Math.imul(Ee,at)|0,Y=(Y=Y+Math.imul(Ee,Lt)|0)+Math.imul(Ne,at)|0,ee=ee+Math.imul(Ne,Lt)|0,q=q+Math.imul(Ze,Ht)|0,Y=(Y=Y+Math.imul(Ze,Xt)|0)+Math.imul(Xe,Ht)|0,ee=ee+Math.imul(Xe,Xt)|0,q=q+Math.imul(Le,Qt)|0,Y=(Y=Y+Math.imul(Le,Pt)|0)+Math.imul(We,Qt)|0,ee=ee+Math.imul(We,Pt)|0;var Kn=(ae+(q=q+Math.imul($e,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul($e,fn)|0)+Math.imul(Oe,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Oe,fn)|0)+(Y>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,q=Math.imul(ht,zt),Y=(Y=Math.imul(ht,Rt))+Math.imul(pt,zt)|0,ee=Math.imul(pt,Rt),q=q+Math.imul(nt,at)|0,Y=(Y=Y+Math.imul(nt,Lt)|0)+Math.imul(ot,at)|0,ee=ee+Math.imul(ot,Lt)|0,q=q+Math.imul(Ee,Ht)|0,Y=(Y=Y+Math.imul(Ee,Xt)|0)+Math.imul(Ne,Ht)|0,ee=ee+Math.imul(Ne,Xt)|0,q=q+Math.imul(Ze,Qt)|0,Y=(Y=Y+Math.imul(Ze,Pt)|0)+Math.imul(Xe,Qt)|0,ee=ee+Math.imul(Xe,Pt)|0;var _r=(ae+(q=q+Math.imul(Le,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Le,fn)|0)+Math.imul(We,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(We,fn)|0)+(Y>>>13)|0)+(_r>>>26)|0,_r&=67108863,q=Math.imul(ht,at),Y=(Y=Math.imul(ht,Lt))+Math.imul(pt,at)|0,ee=Math.imul(pt,Lt),q=q+Math.imul(nt,Ht)|0,Y=(Y=Y+Math.imul(nt,Xt)|0)+Math.imul(ot,Ht)|0,ee=ee+Math.imul(ot,Xt)|0,q=q+Math.imul(Ee,Qt)|0,Y=(Y=Y+Math.imul(Ee,Pt)|0)+Math.imul(Ne,Qt)|0,ee=ee+Math.imul(Ne,Pt)|0;var Ir=(ae+(q=q+Math.imul(Ze,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Ze,fn)|0)+Math.imul(Xe,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Xe,fn)|0)+(Y>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,q=Math.imul(ht,Ht),Y=(Y=Math.imul(ht,Xt))+Math.imul(pt,Ht)|0,ee=Math.imul(pt,Xt),q=q+Math.imul(nt,Qt)|0,Y=(Y=Y+Math.imul(nt,Pt)|0)+Math.imul(ot,Qt)|0,ee=ee+Math.imul(ot,Pt)|0;var zr=(ae+(q=q+Math.imul(Ee,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Ee,fn)|0)+Math.imul(Ne,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Ne,fn)|0)+(Y>>>13)|0)+(zr>>>26)|0,zr&=67108863,q=Math.imul(ht,Qt),Y=(Y=Math.imul(ht,Pt))+Math.imul(pt,Qt)|0,ee=Math.imul(pt,Pt);var Fr=(ae+(q=q+Math.imul(nt,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(nt,fn)|0)+Math.imul(ot,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(ot,fn)|0)+(Y>>>13)|0)+(Fr>>>26)|0,Fr&=67108863;var Rr=(ae+(q=Math.imul(ht,Kt))|0)+((8191&(Y=(Y=Math.imul(ht,fn))+Math.imul(pt,Kt)|0))<<13)|0;return ae=((ee=Math.imul(pt,fn))+(Y>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,se[0]=dn,se[1]=vn,se[2]=Nn,se[3]=er,se[4]=En,se[5]=In,se[6]=Un,se[7]=xr,se[8]=Sr,se[9]=ar,se[10]=Fn,se[11]=ir,se[12]=Wn,se[13]=Kn,se[14]=_r,se[15]=Ir,se[16]=zr,se[17]=Fr,se[18]=Rr,ae!==0&&(se[19]=ae,oe.length++),oe};function D(W,K,oe){return new k().mulp(W,K,oe)}function k(W,K){this.x=W,this.y=K}Math.imul||(L=C),_.prototype.mulTo=function(W,K){var oe,q=this.length+W.length;return oe=this.length===10&&W.length===10?L(this,W,K):q<63?C(this,W,K):q<1024?function(Y,ee,me){me.negative=ee.negative^Y.negative,me.length=Y.length+ee.length;for(var he=0,se=0,ae=0;ae>>26)|0)>>>26,ce&=67108863}me.words[ae]=de,he=ce,ce=se}return he!==0?me.words[ae]=he:me.length--,me.strip()}(this,W,K):D(this,W,K),oe},k.prototype.makeRBT=function(W){for(var K=new Array(W),oe=_.prototype._countBits(W)-1,q=0;q>=1;return q},k.prototype.permute=function(W,K,oe,q,Y,ee){for(var me=0;me>>=1)Y++;return 1<>>=13,oe[2*ee+1]=8191&Y,Y>>>=13;for(ee=2*K;ee>=26,K+=q/67108864|0,K+=Y>>>26,this.words[oe]=67108863&Y}return K!==0&&(this.words[oe]=K,this.length++),this},_.prototype.muln=function(W){return this.clone().imuln(W)},_.prototype.sqr=function(){return this.mul(this)},_.prototype.isqr=function(){return this.imul(this.clone())},_.prototype.pow=function(W){var K=function(ee){for(var me=new Array(ee.bitLength()),he=0;he>>ae}return me}(W);if(K.length===0)return new _(1);for(var oe=this,q=0;q=0);var K,oe=W%26,q=(W-oe)/26,Y=67108863>>>26-oe<<26-oe;if(oe!==0){var ee=0;for(K=0;K>>26-oe}ee&&(this.words[K]=ee,this.length++)}if(q!==0){for(K=this.length-1;K>=0;K--)this.words[K+q]=this.words[K];for(K=0;K=0),q=K?(K-K%26)/26:0;var Y=W%26,ee=Math.min((W-Y)/26,this.length),me=67108863^67108863>>>Y<ee)for(this.length-=ee,se=0;se=0&&(ae!==0||se>=q);se--){var ce=0|this.words[se];this.words[se]=ae<<26-Y|ce>>>Y,ae=ce&me}return he&&ae!==0&&(he.words[he.length++]=ae),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},_.prototype.ishrn=function(W,K,oe){return m(this.negative===0),this.iushrn(W,K,oe)},_.prototype.shln=function(W){return this.clone().ishln(W)},_.prototype.ushln=function(W){return this.clone().iushln(W)},_.prototype.shrn=function(W){return this.clone().ishrn(W)},_.prototype.ushrn=function(W){return this.clone().iushrn(W)},_.prototype.testn=function(W){m(typeof W=="number"&&W>=0);var K=W%26,oe=(W-K)/26,q=1<=0);var K=W%26,oe=(W-K)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=oe)return this;if(K!==0&&oe++,this.length=Math.min(oe,this.length),K!==0){var q=67108863^67108863>>>K<=67108864;K++)this.words[K]-=67108864,K===this.length-1?this.words[K+1]=1:this.words[K+1]++;return this.length=Math.max(this.length,K+1),this},_.prototype.isubn=function(W){if(m(typeof W=="number"),m(W<67108864),W<0)return this.iaddn(-W);if(this.negative!==0)return this.negative=0,this.iaddn(W),this.negative=1,this;if(this.words[0]-=W,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var K=0;K>26)-(he/67108864|0),this.words[q+oe]=67108863&Y}for(;q>26,this.words[q+oe]=67108863&Y;if(me===0)return this.strip();for(m(me===-1),me=0,q=0;q>26,this.words[q]=67108863&Y;return this.negative=1,this.strip()},_.prototype._wordDiv=function(W,K){var oe=(this.length,W.length),q=this.clone(),Y=W,ee=0|Y.words[Y.length-1];(oe=26-this._countBits(ee))!=0&&(Y=Y.ushln(oe),q.iushln(oe),ee=0|Y.words[Y.length-1]);var me,he=q.length-Y.length;if(K!=="mod"){(me=new _(null)).length=he+1,me.words=new Array(me.length);for(var se=0;se=0;ce--){var de=67108864*(0|q.words[Y.length+ce])+(0|q.words[Y.length+ce-1]);for(de=Math.min(de/ee|0,67108863),q._ishlnsubmul(Y,de,ce);q.negative!==0;)de--,q.negative=0,q._ishlnsubmul(Y,1,ce),q.isZero()||(q.negative^=1);me&&(me.words[ce]=de)}return me&&me.strip(),q.strip(),K!=="div"&&oe!==0&&q.iushrn(oe),{div:me||null,mod:q}},_.prototype.divmod=function(W,K,oe){return m(!W.isZero()),this.isZero()?{div:new _(0),mod:new _(0)}:this.negative!==0&&W.negative===0?(ee=this.neg().divmod(W,K),K!=="mod"&&(q=ee.div.neg()),K!=="div"&&(Y=ee.mod.neg(),oe&&Y.negative!==0&&Y.iadd(W)),{div:q,mod:Y}):this.negative===0&&W.negative!==0?(ee=this.divmod(W.neg(),K),K!=="mod"&&(q=ee.div.neg()),{div:q,mod:ee.mod}):this.negative&W.negative?(ee=this.neg().divmod(W.neg(),K),K!=="div"&&(Y=ee.mod.neg(),oe&&Y.negative!==0&&Y.isub(W)),{div:ee.div,mod:Y}):W.length>this.length||this.cmp(W)<0?{div:new _(0),mod:this}:W.length===1?K==="div"?{div:this.divn(W.words[0]),mod:null}:K==="mod"?{div:null,mod:new _(this.modn(W.words[0]))}:{div:this.divn(W.words[0]),mod:new _(this.modn(W.words[0]))}:this._wordDiv(W,K);var q,Y,ee},_.prototype.div=function(W){return this.divmod(W,"div",!1).div},_.prototype.mod=function(W){return this.divmod(W,"mod",!1).mod},_.prototype.umod=function(W){return this.divmod(W,"mod",!0).mod},_.prototype.divRound=function(W){var K=this.divmod(W);if(K.mod.isZero())return K.div;var oe=K.div.negative!==0?K.mod.isub(W):K.mod,q=W.ushrn(1),Y=W.andln(1),ee=oe.cmp(q);return ee<0||Y===1&&ee===0?K.div:K.div.negative!==0?K.div.isubn(1):K.div.iaddn(1)},_.prototype.modn=function(W){m(W<=67108863);for(var K=67108864%W,oe=0,q=this.length-1;q>=0;q--)oe=(K*oe+(0|this.words[q]))%W;return oe},_.prototype.idivn=function(W){m(W<=67108863);for(var K=0,oe=this.length-1;oe>=0;oe--){var q=(0|this.words[oe])+67108864*K;this.words[oe]=q/W|0,K=q%W}return this.strip()},_.prototype.divn=function(W){return this.clone().idivn(W)},_.prototype.egcd=function(W){m(W.negative===0),m(!W.isZero());var K=this,oe=W.clone();K=K.negative!==0?K.umod(W):K.clone();for(var q=new _(1),Y=new _(0),ee=new _(0),me=new _(1),he=0;K.isEven()&&oe.isEven();)K.iushrn(1),oe.iushrn(1),++he;for(var se=oe.clone(),ae=K.clone();!K.isZero();){for(var ce=0,de=1;!(K.words[0]&de)&&ce<26;++ce,de<<=1);if(ce>0)for(K.iushrn(ce);ce-- >0;)(q.isOdd()||Y.isOdd())&&(q.iadd(se),Y.isub(ae)),q.iushrn(1),Y.iushrn(1);for(var ve=0,ye=1;!(oe.words[0]&ye)&&ve<26;++ve,ye<<=1);if(ve>0)for(oe.iushrn(ve);ve-- >0;)(ee.isOdd()||me.isOdd())&&(ee.iadd(se),me.isub(ae)),ee.iushrn(1),me.iushrn(1);K.cmp(oe)>=0?(K.isub(oe),q.isub(ee),Y.isub(me)):(oe.isub(K),ee.isub(q),me.isub(Y))}return{a:ee,b:me,gcd:oe.iushln(he)}},_.prototype._invmp=function(W){m(W.negative===0),m(!W.isZero());var K=this,oe=W.clone();K=K.negative!==0?K.umod(W):K.clone();for(var q,Y=new _(1),ee=new _(0),me=oe.clone();K.cmpn(1)>0&&oe.cmpn(1)>0;){for(var he=0,se=1;!(K.words[0]&se)&&he<26;++he,se<<=1);if(he>0)for(K.iushrn(he);he-- >0;)Y.isOdd()&&Y.iadd(me),Y.iushrn(1);for(var ae=0,ce=1;!(oe.words[0]&ce)&&ae<26;++ae,ce<<=1);if(ae>0)for(oe.iushrn(ae);ae-- >0;)ee.isOdd()&&ee.iadd(me),ee.iushrn(1);K.cmp(oe)>=0?(K.isub(oe),Y.isub(ee)):(oe.isub(K),ee.isub(Y))}return(q=K.cmpn(1)===0?Y:ee).cmpn(0)<0&&q.iadd(W),q},_.prototype.gcd=function(W){if(this.isZero())return W.abs();if(W.isZero())return this.abs();var K=this.clone(),oe=W.clone();K.negative=0,oe.negative=0;for(var q=0;K.isEven()&&oe.isEven();q++)K.iushrn(1),oe.iushrn(1);for(;;){for(;K.isEven();)K.iushrn(1);for(;oe.isEven();)oe.iushrn(1);var Y=K.cmp(oe);if(Y<0){var ee=K;K=oe,oe=ee}else if(Y===0||oe.cmpn(1)===0)break;K.isub(oe)}return oe.iushln(q)},_.prototype.invm=function(W){return this.egcd(W).a.umod(W)},_.prototype.isEven=function(){return(1&this.words[0])==0},_.prototype.isOdd=function(){return(1&this.words[0])==1},_.prototype.andln=function(W){return this.words[0]&W},_.prototype.bincn=function(W){m(typeof W=="number");var K=W%26,oe=(W-K)/26,q=1<>>26,me&=67108863,this.words[ee]=me}return Y!==0&&(this.words[ee]=Y,this.length++),this},_.prototype.isZero=function(){return this.length===1&&this.words[0]===0},_.prototype.cmpn=function(W){var K,oe=W<0;if(this.negative!==0&&!oe)return-1;if(this.negative===0&&oe)return 1;if(this.strip(),this.length>1)K=1;else{oe&&(W=-W),m(W<=67108863,"Number is too big");var q=0|this.words[0];K=q===W?0:qW.length)return 1;if(this.length=0;oe--){var q=0|this.words[oe],Y=0|W.words[oe];if(q!==Y){qY&&(K=1);break}}return K},_.prototype.gtn=function(W){return this.cmpn(W)===1},_.prototype.gt=function(W){return this.cmp(W)===1},_.prototype.gten=function(W){return this.cmpn(W)>=0},_.prototype.gte=function(W){return this.cmp(W)>=0},_.prototype.ltn=function(W){return this.cmpn(W)===-1},_.prototype.lt=function(W){return this.cmp(W)===-1},_.prototype.lten=function(W){return this.cmpn(W)<=0},_.prototype.lte=function(W){return this.cmp(W)<=0},_.prototype.eqn=function(W){return this.cmpn(W)===0},_.prototype.eq=function(W){return this.cmp(W)===0},_.red=function(W){return new X(W)},_.prototype.toRed=function(W){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),W.convertTo(this)._forceRed(W)},_.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},_.prototype._forceRed=function(W){return this.red=W,this},_.prototype.forceRed=function(W){return m(!this.red,"Already a number in reduction context"),this._forceRed(W)},_.prototype.redAdd=function(W){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,W)},_.prototype.redIAdd=function(W){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,W)},_.prototype.redSub=function(W){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,W)},_.prototype.redISub=function(W){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,W)},_.prototype.redShl=function(W){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,W)},_.prototype.redMul=function(W){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,W),this.red.mul(this,W)},_.prototype.redIMul=function(W){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,W),this.red.imul(this,W)},_.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},_.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},_.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},_.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},_.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},_.prototype.redPow=function(W){return m(this.red&&!W.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,W)};var I={k256:null,p224:null,p192:null,p25519:null};function z(W,K){this.name=W,this.p=new _(K,16),this.n=this.p.bitLength(),this.k=new _(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function $(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Q(){z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function j(){z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function U(){z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function X(W){if(typeof W=="string"){var K=_._prime(W);this.m=K.p,this.prime=K}else m(W.gtn(1),"modulus must be greater than 1"),this.m=W,this.prime=null}function te(W){X.call(this,W),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new _(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}z.prototype._tmp=function(){var W=new _(null);return W.words=new Array(Math.ceil(this.n/13)),W},z.prototype.ireduce=function(W){var K,oe=W;do this.split(oe,this.tmp),K=(oe=(oe=this.imulK(oe)).iadd(this.tmp)).bitLength();while(K>this.n);var q=K0?oe.isub(this.p):oe.strip!==void 0?oe.strip():oe._strip(),oe},z.prototype.split=function(W,K){W.iushrn(this.n,0,K)},z.prototype.imulK=function(W){return W.imul(this.k)},v($,z),$.prototype.split=function(W,K){for(var oe=4194303,q=Math.min(W.length,9),Y=0;Y>>22,ee=me}ee>>>=22,W.words[Y-10]=ee,ee===0&&W.length>10?W.length-=10:W.length-=9},$.prototype.imulK=function(W){W.words[W.length]=0,W.words[W.length+1]=0,W.length+=2;for(var K=0,oe=0;oe>>=26,W.words[oe]=Y,K=q}return K!==0&&(W.words[W.length++]=K),W},_._prime=function(W){if(I[W])return I[W];var K;if(W==="k256")K=new $;else if(W==="p224")K=new Q;else if(W==="p192")K=new j;else{if(W!=="p25519")throw new Error("Unknown prime "+W);K=new U}return I[W]=K,K},X.prototype._verify1=function(W){m(W.negative===0,"red works only with positives"),m(W.red,"red works only with red numbers")},X.prototype._verify2=function(W,K){m((W.negative|K.negative)==0,"red works only with positives"),m(W.red&&W.red===K.red,"red works only with red numbers")},X.prototype.imod=function(W){return this.prime?this.prime.ireduce(W)._forceRed(this):W.umod(this.m)._forceRed(this)},X.prototype.neg=function(W){return W.isZero()?W.clone():this.m.sub(W)._forceRed(this)},X.prototype.add=function(W,K){this._verify2(W,K);var oe=W.add(K);return oe.cmp(this.m)>=0&&oe.isub(this.m),oe._forceRed(this)},X.prototype.iadd=function(W,K){this._verify2(W,K);var oe=W.iadd(K);return oe.cmp(this.m)>=0&&oe.isub(this.m),oe},X.prototype.sub=function(W,K){this._verify2(W,K);var oe=W.sub(K);return oe.cmpn(0)<0&&oe.iadd(this.m),oe._forceRed(this)},X.prototype.isub=function(W,K){this._verify2(W,K);var oe=W.isub(K);return oe.cmpn(0)<0&&oe.iadd(this.m),oe},X.prototype.shl=function(W,K){return this._verify1(W),this.imod(W.ushln(K))},X.prototype.imul=function(W,K){return this._verify2(W,K),this.imod(W.imul(K))},X.prototype.mul=function(W,K){return this._verify2(W,K),this.imod(W.mul(K))},X.prototype.isqr=function(W){return this.imul(W,W.clone())},X.prototype.sqr=function(W){return this.mul(W,W)},X.prototype.sqrt=function(W){if(W.isZero())return W.clone();var K=this.m.andln(3);if(m(K%2==1),K===3){var oe=this.m.add(new _(1)).iushrn(2);return this.pow(W,oe)}for(var q=this.m.subn(1),Y=0;!q.isZero()&&q.andln(1)===0;)Y++,q.iushrn(1);m(!q.isZero());var ee=new _(1).toRed(this),me=ee.redNeg(),he=this.m.subn(1).iushrn(1),se=this.m.bitLength();for(se=new _(2*se*se).toRed(this);this.pow(se,he).cmp(me)!==0;)se.redIAdd(me);for(var ae=this.pow(se,q),ce=this.pow(W,q.addn(1).iushrn(1)),de=this.pow(W,q),ve=Y;de.cmp(ee)!==0;){for(var ye=de,_e=0;ye.cmp(ee)!==0;_e++)ye=ye.redSqr();m(_e=0;q--){for(var se=K.words[q],ae=he-1;ae>=0;ae--){var ce=se>>ae&1;Y!==oe[0]&&(Y=this.sqr(Y)),ce!==0||ee!==0?(ee<<=1,ee|=ce,(++me==4||q===0&&ae===0)&&(Y=this.mul(Y,oe[ee]),me=0,ee=0)):me=0}he=26}return Y},X.prototype.convertTo=function(W){var K=W.umod(this.m);return K===W?K.clone():K},X.prototype.convertFrom=function(W){var K=W.clone();return K.red=null,K},_.mont=function(W){return new te(W)},v(te,X),te.prototype.convertTo=function(W){return this.imod(W.ushln(this.shift))},te.prototype.convertFrom=function(W){var K=this.imod(W.mul(this.rinv));return K.red=null,K},te.prototype.imul=function(W,K){if(W.isZero()||K.isZero())return W.words[0]=0,W.length=1,W;var oe=W.imul(K),q=oe.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=oe.isub(q).iushrn(this.shift),ee=Y;return Y.cmp(this.m)>=0?ee=Y.isub(this.m):Y.cmpn(0)<0&&(ee=Y.iadd(this.m)),ee._forceRed(this)},te.prototype.mul=function(W,K){if(W.isZero()||K.isZero())return new _(0)._forceRed(this);var oe=W.mul(K),q=oe.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=oe.isub(q).iushrn(this.shift),ee=Y;return Y.cmp(this.m)>=0?ee=Y.isub(this.m):Y.cmpn(0)<0&&(ee=Y.iadd(this.m)),ee._forceRed(this)},te.prototype.invm=function(W){return this.imod(W._invmp(this.m).mul(this.r2))._forceRed(this)}})(y=a.nmd(y),this)},2692:function(y){y.exports=function(p){var a,u,h,m=p.length,v=0;for(a=0;a>>1;if(!(D<=0)){var k,I=h.mallocDouble(2*D*C),z=h.mallocInt32(C);if((C=S(R,D,I,z))>0){if(D===1&&E)m.init(C),k=m.sweepComplete(D,T,0,C,I,z,0,C,I,z);else{var $=h.mallocDouble(2*D*L),Q=h.mallocInt32(L);(L=S(M,D,$,Q))>0&&(m.init(C+L),k=D===1?m.sweepBipartite(D,T,0,C,I,z,0,L,$,Q):v(D,T,E,C,I,z,L,$,Q),h.free($),h.free(Q))}h.free(I),h.free(z)}return k}}}function x(R,M){u.push([R,M])}},7333:function(y,p){function a(u){return u?function(h,m,v,_,S,A,x,R,M,T,E){return S-_>M-R?function(C,L,D,k,I,z,$,Q,j,U,X){for(var te=2*C,W=k,K=te*k;WT-M?_?function(L,D,k,I,z,$,Q,j,U,X,te){for(var W=2*L,K=I,oe=W*I;K0;){var ve=(ce-=1)*z,ye=Q[ve],_e=Q[ve+1],Se=Q[ve+2],Te=Q[ve+3],Pe=Q[ve+4],Ie=Q[ve+5],ze=ce*$,De=j[ze],He=j[ze+1],Ve=1&Ie,$e=!!(16&Ie),Oe=Y,ke=ee,Le=he,We=se;if(Ve&&(Oe=he,ke=se,Le=Y,We=ee),!(2&Ie&&_e>=(Se=L(W,ye,_e,Se,Oe,ke,He))||4&Ie&&(_e=D(W,ye,_e,Se,Oe,ke,De))>=Se)){var Ue=Se-_e,Ze=Pe-Te;if($e){if(W*Ue*(Ue+Ze)=p0)&&!(p1>=hi)"),C=x("lo===p0"),L=x("lo>>1,C=2*v,L=E,D=x[C*E+_];M=Q?(L=$,D=Q):z>=U?(L=I,D=z):(L=j,D=U):Q>=U?(L=$,D=Q):U>=z?(L=I,D=z):(L=j,D=U);for(var X=C*(T-1),te=C*L,W=0;WS&&x[D+_]>C;--L,D-=M){for(var k=D,I=D+M,z=0;zE;++E,x+=A)if(v[x+T]===S)if(M===E)M+=1,R+=A;else{for(var C=0;A>C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"loE;++E,x+=A)if(v[x+T]C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"lo<=p0":function(a,u,h,m,v,_,S){for(var A=2*a,x=A*h,R=x,M=h,T=a+u,E=h;m>E;++E,x+=A)if(v[x+T]<=S)if(M===E)M+=1,R+=A;else{for(var C=0;A>C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"hi<=p0":function(a,u,h,m,v,_,S){for(var A=2*a,x=A*h,R=x,M=h,T=a+u,E=h;m>E;++E,x+=A)if(v[x+T]<=S)if(M===E)M+=1,R+=A;else{for(var C=0;A>C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"loC;++C,x+=A){var L=v[x+T],D=v[x+E];if(Lk;++k){var I=v[x+k];v[x+k]=v[R],v[R++]=I}var z=_[C];_[C]=_[M],_[M++]=z}}return M},"lo<=p0&&p0<=hi":function(a,u,h,m,v,_,S){for(var A=2*a,x=A*h,R=x,M=h,T=u,E=a+u,C=h;m>C;++C,x+=A){var L=v[x+T],D=v[x+E];if(L<=S&&S<=D)if(M===C)M+=1,R+=A;else{for(var k=0;A>k;++k){var I=v[x+k];v[x+k]=v[R],v[R++]=I}var z=_[C];_[C]=_[M],_[M++]=z}}return M},"!(lo>=p0)&&!(p1>=hi)":function(a,u,h,m,v,_,S,A){for(var x=2*a,R=x*h,M=R,T=h,E=u,C=a+u,L=h;m>L;++L,R+=x){var D=v[R+E],k=v[R+C];if(!(D>=S||A>=k))if(T===L)T+=1,M+=x;else{for(var I=0;x>I;++I){var z=v[R+I];v[R+I]=v[M],v[M++]=z}var $=_[L];_[L]=_[T],_[T++]=$}}return T}}},309:function(y){y.exports=function(x,R){R<=4*p?a(0,R-1,x):A(0,R-1,x)};var p=32;function a(x,R,M){for(var T=2*(x+1),E=x+1;E<=R;++E){for(var C=M[T++],L=M[T++],D=E,k=T-2;D-- >x;){var I=M[k-2],z=M[k-1];if(IM[R+1])}function S(x,R,M,T){var E=T[x*=2];return E>1,D=L-T,k=L+T,I=E,z=D,$=L,Q=k,j=C,U=x+1,X=R-1,te=0;_(I,z,M)&&(te=I,I=z,z=te),_(Q,j,M)&&(te=Q,Q=j,j=te),_(I,$,M)&&(te=I,I=$,$=te),_(z,$,M)&&(te=z,z=$,$=te),_(I,Q,M)&&(te=I,I=Q,Q=te),_($,Q,M)&&(te=$,$=Q,Q=te),_(z,j,M)&&(te=z,z=j,j=te),_(z,$,M)&&(te=z,z=$,$=te),_(Q,j,M)&&(te=Q,Q=j,j=te);for(var W=M[2*z],K=M[2*z+1],oe=M[2*Q],q=M[2*Q+1],Y=2*I,ee=2*$,me=2*j,he=2*E,se=2*L,ae=2*C,ce=0;ce<2;++ce){var de=M[Y+ce],ve=M[ee+ce],ye=M[me+ce];M[he+ce]=de,M[se+ce]=ve,M[ae+ce]=ye}h(D,x,M),h(k,R,M);for(var _e=U;_e<=X;++_e)if(S(_e,W,K,M))_e!==U&&u(_e,U,M),++U;else if(!S(_e,oe,q,M))for(;;){if(S(X,oe,q,M)){S(X,W,K,M)?(m(_e,U,X,M),++U,--X):(u(_e,X,M),--X);break}if(--X<_e)break}v(x,U-1,W,K,M),v(R,X+1,oe,q,M),U-2-x<=p?a(x,U-2,M):A(x,U-2,M),R-(X+2)<=p?a(X+2,R,M):A(X+2,R,M),X-U<=p?a(U,X,M):A(U,X,M)}},1390:function(y,p,a){y.exports={init:function(D){var k=h.nextPow2(D);S.length>>1;m(E,se);var ae=0,ce=0;for(Y=0;Y=v)C(x,R,ce--,de=de-v|0);else if(de>=0)C(S,A,ae--,de);else if(de<=-v){de=-de-v|0;for(var ve=0;ve>>1;m(E,se);var ae=0,ce=0,de=0;for(Y=0;Y>1==E[2*Y+3]>>1&&(ye=2,Y+=1),ve<0){for(var _e=-(ve>>1)-1,Se=0;Se>1)-1,ye===0?C(S,A,ae--,_e):ye===1?C(x,R,ce--,_e):ye===2&&C(M,T,de--,_e)}},scanBipartite:function(D,k,I,z,$,Q,j,U,X,te,W,K){var oe=0,q=2*D,Y=k,ee=k+D,me=1,he=1;z?he=v:me=v;for(var se=$;se>>1;m(E,ve);var ye=0;for(se=0;se=v?(Se=!z,ae-=v):(Se=!!z,ae-=1),Se)L(S,A,ye++,ae);else{var Te=K[ae],Pe=q*ae,Ie=W[Pe+k+1],ze=W[Pe+k+1+D];e:for(var De=0;De>>1;m(E,ae);var ce=0;for(ee=0;ee=v)S[ce++]=me-v;else{var ve=W[me-=1],ye=oe*me,_e=te[ye+k+1],Se=te[ye+k+1+D];e:for(var Te=0;Te=0;--Te)if(S[Te]===me){for(De=Te+1;De0;){for(var L=_.pop(),D=(T=-1,E=-1,R=A[x=_.pop()],1);D=0||(v.flip(x,L),h(m,v,_,T,x,E),h(m,v,_,x,E,T),h(m,v,_,E,L,T),h(m,v,_,L,T,E))}}},7098:function(y,p,a){var u,h=a(5070);function m(_,S,A,x,R,M,T){this.cells=_,this.neighbor=S,this.flags=x,this.constraint=A,this.active=R,this.next=M,this.boundary=T}function v(_,S){return _[0]-S[0]||_[1]-S[1]||_[2]-S[2]}y.exports=function(_,S,A){var x=function(j,U){for(var X=j.cells(),te=X.length,W=0;W0||T.length>0;){for(;M.length>0;){var k=M.pop();if(E[k]!==-R){E[k]=R,C[k];for(var I=0;I<3;++I){var z=D[3*k+I];z>=0&&E[z]===0&&(L[3*k+I]?T.push(z):(M.push(z),E[z]=R))}}}var $=T;T=M,M=$,T.length=0,R=-R}var Q=function(j,U,X){for(var te=0,W=0;W1&&h(C[Q[j-2]],C[Q[j-1]],L)>0;)T.push([Q[j-1],Q[j-2],D]),j-=1;Q.length=j,Q.push(D);var U=$.upperIds;for(j=U.length;j>1&&h(C[U[j-2]],C[U[j-1]],L)<0;)T.push([U[j-2],U[j-1],D]),j-=1;U.length=j,U.push(D)}}function x(T,E){var C;return(C=T.a[0]$[0]&&D.push(new v($,z,2,k),new v(z,$,1,k))}D.sort(_);for(var Q=D[0].a[0]-(1+Math.abs(D[0].a[0]))*Math.pow(2,-52),j=[new m([Q,1],[Q,0],-1,[],[])],U=[],X=(k=0,D.length);k=0}}(),m.removeTriangle=function(_,S,A){var x=this.stars;v(x[_],S,A),v(x[S],A,_),v(x[A],_,S)},m.addTriangle=function(_,S,A){var x=this.stars;x[_].push(S,A),x[S].push(A,_),x[A].push(_,S)},m.opposite=function(_,S){for(var A=this.stars[S],x=1,R=A.length;xz[2]?1:0)}function D(I,z,$){if(I.length!==0){if(z)for(var Q=0;Q=0;--ee){var _e=K[me=(Ve=q[ee])[0]],Se=_e[0],Te=_e[1],Pe=W[Se],Ie=W[Te];if((Pe[0]-Ie[0]||Pe[1]-Ie[1])<0){var ze=Se;Se=Te,Te=ze}_e[0]=Se;var De,He=_e[1]=Ve[1];for(Y&&(De=_e[2]);ee>0&&q[ee-1][0]===me;){var Ve,$e=(Ve=q[--ee])[1];Y?K.push([He,$e,De]):K.push([He,$e]),He=$e}Y?K.push([He,Te,De]):K.push([He,Te])}return he}(I,z,j,U,$),te=E(I,X);return D(z,te,$),!!te||j.length>0||U.length>0}},5528:function(y,p,a){y.exports=function(R,M,T,E){var C=_(M,R),L=_(E,T),D=x(C,L);if(v(D)===0)return null;var k=x(L,_(R,T)),I=h(k,D),z=A(C,I);return S(R,z)};var u=a(3962),h=a(9189),m=a(4354),v=a(4951),_=a(6695),S=a(7584),A=a(4469);function x(R,M){return m(u(R[0],M[1]),u(R[1],M[0]))}},5692:function(y){y.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],"rainbow-soft":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],"freesurface-blue":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],"freesurface-red":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],"velocity-blue":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],"velocity-green":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},9156:function(y,p,a){var u=a(5692),h=a(3578);function m(S){return[S[0]/255,S[1]/255,S[2]/255,S[3]]}function v(S){for(var A,x="#",R=0;R<3;++R)x+=("00"+(A=(A=S[R]).toString(16))).substr(A.length);return x}function _(S){return"rgba("+S.join(",")+")"}y.exports=function(S){var A,x,R,M,T,E,C,L,D,k;if(S||(S={}),L=(S.nshades||72)-1,C=S.format||"hex",(E=S.colormap)||(E="jet"),typeof E=="string"){if(E=E.toLowerCase(),!u[E])throw Error(E+" not a supported colorscale");T=u[E]}else{if(!Array.isArray(E))throw Error("unsupported colormap option",E);T=E.slice()}if(T.length>L+1)throw new Error(E+" map requires nshades to be at least size "+T.length);D=Array.isArray(S.alpha)?S.alpha.length!==2?[1,1]:S.alpha.slice():typeof S.alpha=="number"?[S.alpha,S.alpha]:[1,1],A=T.map(function(j){return Math.round(j.index*L)}),D[0]=Math.min(Math.max(D[0],0),1),D[1]=Math.min(Math.max(D[1],0),1);var I=T.map(function(j,U){var X=T[U].index,te=T[U].rgb.slice();return te.length===4&&te[3]>=0&&te[3]<=1||(te[3]=D[0]+(D[1]-D[0])*X),te}),z=[];for(k=0;k0||S(A,x,M)?-1:1:E===0?C>0||S(A,x,R)?1:-1:h(C-E)}var D=u(A,x,R);return D>0?T>0&&u(A,x,M)>0?1:-1:D<0?T>0||u(A,x,M)>0?1:-1:u(A,x,M)>0||S(A,x,R)?1:-1};var u=a(417),h=a(7538),m=a(87),v=a(2019),_=a(9662);function S(A,x,R){var M=m(A[0],-x[0]),T=m(A[1],-x[1]),E=m(R[0],-x[0]),C=m(R[1],-x[1]),L=_(v(M,E),v(T,C));return L[L.length-1]>=0}},7538:function(y){y.exports=function(p){return p<0?-1:p>0?1:0}},9209:function(y){y.exports=function(u,h){var m=u.length,v=u.length-h.length;if(v)return v;switch(m){case 0:return 0;case 1:return u[0]-h[0];case 2:return u[0]+u[1]-h[0]-h[1]||p(u[0],u[1])-p(h[0],h[1]);case 3:var _=u[0]+u[1],S=h[0]+h[1];if(v=_+u[2]-(S+h[2]))return v;var A=p(u[0],u[1]),x=p(h[0],h[1]);return p(A,u[2])-p(x,h[2])||p(A+u[2],_)-p(x+h[2],S);case 4:var R=u[0],M=u[1],T=u[2],E=u[3],C=h[0],L=h[1],D=h[2],k=h[3];return R+M+T+E-(C+L+D+k)||p(R,M,T,E)-p(C,L,D,k,C)||p(R+M,R+T,R+E,M+T,M+E,T+E)-p(C+L,C+D,C+k,L+D,L+k,D+k)||p(R+M+T,R+M+E,R+T+E,M+T+E)-p(C+L+D,C+L+k,C+D+k,L+D+k);default:for(var I=u.slice().sort(a),z=h.slice().sort(a),$=0;$p[u][0]&&(u=h);return au?[[u],[a]]:[[a]]}},8722:function(y,p,a){y.exports=function(h){var m=u(h),v=m.length;if(v<=2)return[];for(var _=new Array(v),S=m[v-1],A=0;A=R[k]&&(D+=1);C[L]=D}}return x}(u(S,!0),_)}};var u=a(2183),h=a(2153)},9680:function(y){y.exports=function(p,a,u,h,m,v){var _=m-1,S=m*m,A=_*_,x=(1+2*m)*A,R=m*A,M=S*(3-2*m),T=S*_;if(p.length){v||(v=new Array(p.length));for(var E=p.length-1;E>=0;--E)v[E]=x*p[E]+R*a[E]+M*u[E]+T*h[E];return v}return x*p+R*a+M*u+T*h},y.exports.derivative=function(p,a,u,h,m,v){var _=6*m*m-6*m,S=3*m*m-4*m+1,A=-6*m*m+6*m,x=3*m*m-2*m;if(p.length){v||(v=new Array(p.length));for(var R=p.length-1;R>=0;--R)v[R]=_*p[R]+S*a[R]+A*u[R]+x*h[R];return v}return _*p+S*a+A*u[R]+x*h}},4419:function(y,p,a){var u=a(2183),h=a(1215);function m(_,S){this.point=_,this.index=S}function v(_,S){for(var A=_.point,x=S.point,R=A.length,M=0;M=2)return!1;X[W]=K}return!0}):U.filter(function(X){for(var te=0;te<=x;++te){var W=z[X[te]];if(W<0)return!1;X[te]=W}return!0}),1&x)for(T=0;T>>31},y.exports.exponent=function(m){return(y.exports.hi(m)<<1>>>21)-1023},y.exports.fraction=function(m){var v=y.exports.lo(m),_=y.exports.hi(m),S=1048575&_;return 2146435072&_&&(S+=1048576),[v,S]},y.exports.denormalized=function(m){return!(2146435072&y.exports.hi(m))}},3094:function(y){function p(a,u,h){var m=0|a[h];if(m<=0)return[];var v,_=new Array(m);if(h===a.length-1)for(v=0;v0)return function(h,m){var v,_;for(v=new Array(h),_=0;_=R-1){k=E.length-1;var z=A-x[R-1];for(I=0;I=R-1)for(var D=E.length-1,k=(x[R-1],0);k=0;--R)if(A[--x])return!1;return!0},_.jump=function(A){var x=this.lastT(),R=this.dimension;if(!(A0;--I)M.push(m(L[I-1],D[I-1],arguments[I])),T.push(0)}},_.push=function(A){var x=this.lastT(),R=this.dimension;if(!(A1e-6?1/C:0;this._time.push(A);for(var z=R;z>0;--z){var $=m(D[z-1],k[z-1],arguments[z]);M.push($),T.push(($-M[E++])*I)}}},_.set=function(A){var x=this.dimension;if(!(A0;--L)R.push(m(E[L-1],C[L-1],arguments[L])),M.push(0)}},_.move=function(A){var x=this.lastT(),R=this.dimension;if(!(A<=x||arguments.length!==R+1)){var M=this._state,T=this._velocity,E=M.length-this.dimension,C=this.bounds,L=C[0],D=C[1],k=A-x,I=k>1e-6?1/k:0;this._time.push(A);for(var z=R;z>0;--z){var $=arguments[z];M.push(m(L[z-1],D[z-1],M[E++]+$)),T.push($*I)}}},_.idle=function(A){var x=this.lastT();if(!(A=0;--I)M.push(m(L[I],D[I],M[E]+k*T[E])),T.push(0),E+=1}}},7080:function(y){function p(E,C,L,D,k,I){this._color=E,this.key=C,this.value=L,this.left=D,this.right=k,this._count=I}function a(E){return new p(E._color,E.key,E.value,E.left,E.right,E._count)}function u(E,C){return new p(E,C.key,C.value,C.left,C.right,C._count)}function h(E){E._count=1+(E.left?E.left._count:0)+(E.right?E.right._count:0)}function m(E,C){this._compare=E,this.root=C}y.exports=function(E){return new m(E||T,null)};var v=m.prototype;function _(E,C){var L;return C.left&&(L=_(E,C.left))?L:(L=E(C.key,C.value))||(C.right?_(E,C.right):void 0)}function S(E,C,L,D){if(C(E,D.key)<=0){var k;if(D.left&&(k=S(E,C,L,D.left))||(k=L(D.key,D.value)))return k}if(D.right)return S(E,C,L,D.right)}function A(E,C,L,D,k){var I,z=L(E,k.key),$=L(C,k.key);if(z<=0&&(k.left&&(I=A(E,C,L,D,k.left))||$>0&&(I=D(k.key,k.value))))return I;if($>0&&k.right)return A(E,C,L,D,k.right)}function x(E,C){this.tree=E,this._stack=C}Object.defineProperty(v,"keys",{get:function(){var E=[];return this.forEach(function(C,L){E.push(C)}),E}}),Object.defineProperty(v,"values",{get:function(){var E=[];return this.forEach(function(C,L){E.push(L)}),E}}),Object.defineProperty(v,"length",{get:function(){return this.root?this.root._count:0}}),v.insert=function(E,C){for(var L=this._compare,D=this.root,k=[],I=[];D;){var z=L(E,D.key);k.push(D),I.push(z),D=z<=0?D.left:D.right}k.push(new p(0,E,C,null,null,1));for(var $=k.length-2;$>=0;--$)D=k[$],I[$]<=0?k[$]=new p(D._color,D.key,D.value,k[$+1],D.right,D._count+1):k[$]=new p(D._color,D.key,D.value,D.left,k[$+1],D._count+1);for($=k.length-1;$>1;--$){var Q=k[$-1];if(D=k[$],Q._color===1||D._color===1)break;var j=k[$-2];if(j.left===Q)if(Q.left===D){if(!(U=j.right)||U._color!==0){j._color=0,j.left=Q.right,Q._color=1,Q.right=j,k[$-2]=Q,k[$-1]=D,h(j),h(Q),$>=3&&((X=k[$-3]).left===j?X.left=Q:X.right=Q);break}Q._color=1,j.right=u(1,U),j._color=0,$-=1}else{if(!(U=j.right)||U._color!==0){Q.right=D.left,j._color=0,j.left=D.right,D._color=1,D.left=Q,D.right=j,k[$-2]=D,k[$-1]=Q,h(j),h(Q),h(D),$>=3&&((X=k[$-3]).left===j?X.left=D:X.right=D);break}Q._color=1,j.right=u(1,U),j._color=0,$-=1}else if(Q.right===D){if(!(U=j.left)||U._color!==0){j._color=0,j.right=Q.left,Q._color=1,Q.left=j,k[$-2]=Q,k[$-1]=D,h(j),h(Q),$>=3&&((X=k[$-3]).right===j?X.right=Q:X.left=Q);break}Q._color=1,j.left=u(1,U),j._color=0,$-=1}else{var U;if(!(U=j.left)||U._color!==0){var X;Q.left=D.right,j._color=0,j.right=D.left,D._color=1,D.right=Q,D.left=j,k[$-2]=D,k[$-1]=Q,h(j),h(Q),h(D),$>=3&&((X=k[$-3]).right===j?X.right=D:X.left=D);break}Q._color=1,j.left=u(1,U),j._color=0,$-=1}}return k[0]._color=1,new m(L,k[0])},v.forEach=function(E,C,L){if(this.root)switch(arguments.length){case 1:return _(E,this.root);case 2:return S(C,this._compare,E,this.root);case 3:return this._compare(C,L)>=0?void 0:A(C,L,this._compare,E,this.root)}},Object.defineProperty(v,"begin",{get:function(){for(var E=[],C=this.root;C;)E.push(C),C=C.left;return new x(this,E)}}),Object.defineProperty(v,"end",{get:function(){for(var E=[],C=this.root;C;)E.push(C),C=C.right;return new x(this,E)}}),v.at=function(E){if(E<0)return new x(this,[]);for(var C=this.root,L=[];;){if(L.push(C),C.left){if(E=C.right._count)break;C=C.right}return new x(this,[])},v.ge=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I<=0&&(k=D.length),L=I<=0?L.left:L.right}return D.length=k,new x(this,D)},v.gt=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I<0&&(k=D.length),L=I<0?L.left:L.right}return D.length=k,new x(this,D)},v.lt=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I>0&&(k=D.length),L=I<=0?L.left:L.right}return D.length=k,new x(this,D)},v.le=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I>=0&&(k=D.length),L=I<0?L.left:L.right}return D.length=k,new x(this,D)},v.find=function(E){for(var C=this._compare,L=this.root,D=[];L;){var k=C(E,L.key);if(D.push(L),k===0)return new x(this,D);L=k<=0?L.left:L.right}return new x(this,[])},v.remove=function(E){var C=this.find(E);return C?C.remove():this},v.get=function(E){for(var C=this._compare,L=this.root;L;){var D=C(E,L.key);if(D===0)return L.value;L=D<=0?L.left:L.right}};var R=x.prototype;function M(E,C){E.key=C.key,E.value=C.value,E.left=C.left,E.right=C.right,E._color=C._color,E._count=C._count}function T(E,C){return EC?1:0}Object.defineProperty(R,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(R,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),R.clone=function(){return new x(this.tree,this._stack.slice())},R.remove=function(){var E=this._stack;if(E.length===0)return this.tree;var C=new Array(E.length),L=E[E.length-1];C[C.length-1]=new p(L._color,L.key,L.value,L.left,L.right,L._count);for(var D=E.length-2;D>=0;--D)(L=E[D]).left===E[D+1]?C[D]=new p(L._color,L.key,L.value,C[D+1],L.right,L._count):C[D]=new p(L._color,L.key,L.value,L.left,C[D+1],L._count);if((L=C[C.length-1]).left&&L.right){var k=C.length;for(L=L.left;L.right;)C.push(L),L=L.right;var I=C[k-1];for(C.push(new p(L._color,I.key,I.value,L.left,L.right,L._count)),C[k-1].key=L.key,C[k-1].value=L.value,D=C.length-2;D>=k;--D)L=C[D],C[D]=new p(L._color,L.key,L.value,L.left,C[D+1],L._count);C[k-1].left=C[k]}if((L=C[C.length-1])._color===0){var z=C[C.length-2];for(z.left===L?z.left=null:z.right===L&&(z.right=null),C.pop(),D=0;D=0;--W){if(j=Q[W],W===0)return void(j._color=1);if((U=Q[W-1]).left===j){if((X=U.right).right&&X.right._color===0)return te=(X=U.right=a(X)).right=a(X.right),U.right=X.left,X.left=U,X.right=te,X._color=U._color,j._color=1,U._color=1,te._color=1,h(U),h(X),W>1&&((K=Q[W-2]).left===U?K.left=X:K.right=X),void(Q[W-1]=X);if(X.left&&X.left._color===0)return te=(X=U.right=a(X)).left=a(X.left),U.right=te.left,X.left=te.right,te.left=U,te.right=X,te._color=U._color,U._color=1,X._color=1,j._color=1,h(U),h(X),h(te),W>1&&((K=Q[W-2]).left===U?K.left=te:K.right=te),void(Q[W-1]=te);if(X._color===1){if(U._color===0)return U._color=1,void(U.right=u(0,X));U.right=u(0,X);continue}X=a(X),U.right=X.left,X.left=U,X._color=U._color,U._color=0,h(U),h(X),W>1&&((K=Q[W-2]).left===U?K.left=X:K.right=X),Q[W-1]=X,Q[W]=U,W+11&&((K=Q[W-2]).right===U?K.right=X:K.left=X),void(Q[W-1]=X);if(X.right&&X.right._color===0)return te=(X=U.left=a(X)).right=a(X.right),U.left=te.right,X.right=te.left,te.right=U,te.left=X,te._color=U._color,U._color=1,X._color=1,j._color=1,h(U),h(X),h(te),W>1&&((K=Q[W-2]).right===U?K.right=te:K.left=te),void(Q[W-1]=te);if(X._color===1){if(U._color===0)return U._color=1,void(U.left=u(0,X));U.left=u(0,X);continue}var K;X=a(X),U.left=X.right,X.right=U,X._color=U._color,U._color=0,h(U),h(X),W>1&&((K=Q[W-2]).right===U?K.right=X:K.left=X),Q[W-1]=X,Q[W]=U,W+10)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(R,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(R,"index",{get:function(){var E=0,C=this._stack;if(C.length===0){var L=this.tree.root;return L?L._count:0}C[C.length-1].left&&(E=C[C.length-1].left._count);for(var D=C.length-2;D>=0;--D)C[D+1]===C[D].right&&(++E,C[D].left&&(E+=C[D].left._count));return E},enumerable:!0}),R.next=function(){var E=this._stack;if(E.length!==0){var C=E[E.length-1];if(C.right)for(C=C.right;C;)E.push(C),C=C.left;else for(E.pop();E.length>0&&E[E.length-1].right===C;)C=E[E.length-1],E.pop()}},Object.defineProperty(R,"hasNext",{get:function(){var E=this._stack;if(E.length===0)return!1;if(E[E.length-1].right)return!0;for(var C=E.length-1;C>0;--C)if(E[C-1].left===E[C])return!0;return!1}}),R.update=function(E){var C=this._stack;if(C.length===0)throw new Error("Can't update empty node!");var L=new Array(C.length),D=C[C.length-1];L[L.length-1]=new p(D._color,D.key,E,D.left,D.right,D._count);for(var k=C.length-2;k>=0;--k)(D=C[k]).left===C[k+1]?L[k]=new p(D._color,D.key,D.value,L[k+1],D.right,D._count):L[k]=new p(D._color,D.key,D.value,D.left,L[k+1],D._count);return new m(this.tree._compare,L[0])},R.prev=function(){var E=this._stack;if(E.length!==0){var C=E[E.length-1];if(C.left)for(C=C.left;C;)E.push(C),C=C.right;else for(E.pop();E.length>0&&E[E.length-1].left===C;)C=E[E.length-1],E.pop()}},Object.defineProperty(R,"hasPrev",{get:function(){var E=this._stack;if(E.length===0)return!1;if(E[E.length-1].left)return!0;for(var C=E.length-1;C>0;--C)if(E[C-1].right===E[C])return!0;return!1}})},7453:function(y,p,a){y.exports=function(z,$){var Q=new x(z);return Q.update($),Q};var u=a(9557),h=a(1681),m=a(1011),v=a(2864),_=a(8468),S=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function A(z,$){return z[0]=$[0],z[1]=$[1],z[2]=$[2],z}function x(z){this.gl=z,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=m(z)}var R=x.prototype;function M(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}R.update=function(z){function $(me,he,se){if(se in z){var ae,ce=z[se],de=this[se];(me?Array.isArray(ce)&&Array.isArray(ce[0]):Array.isArray(ce))?this[se]=ae=[he(ce[0]),he(ce[1]),he(ce[2])]:this[se]=ae=[he(ce),he(ce),he(ce)];for(var ve=0;ve<3;++ve)if(ae[ve]!==de[ve])return!0}return!1}z=z||{};var Q,j=$.bind(this,!1,Number),U=$.bind(this,!1,Boolean),X=$.bind(this,!1,String),te=$.bind(this,!0,function(me){if(Array.isArray(me)){if(me.length===3)return[+me[0],+me[1],+me[2],1];if(me.length===4)return[+me[0],+me[1],+me[2],+me[3]]}return[0,0,0,1]}),W=!1,K=!1;if("bounds"in z)for(var oe=z.bounds,q=0;q<2;++q)for(var Y=0;Y<3;++Y)oe[q][Y]!==this.bounds[q][Y]&&(K=!0),this.bounds[q][Y]=oe[q][Y];if("ticks"in z)for(Q=z.ticks,W=!0,this.autoTicks=!1,q=0;q<3;++q)this.tickSpacing[q]=0;else j("tickSpacing")&&(this.autoTicks=!0,K=!0);if(this._firstInit&&("ticks"in z||"tickSpacing"in z||(this.autoTicks=!0),K=!0,W=!0,this._firstInit=!1),K&&this.autoTicks&&(Q=_.create(this.bounds,this.tickSpacing),W=!0),W){for(q=0;q<3;++q)Q[q].sort(function(me,he){return me.x-he.x});_.equal(Q,this.ticks)?W=!1:this.ticks=Q}U("tickEnable"),X("tickFont")&&(W=!0),j("tickSize"),j("tickAngle"),j("tickPad"),te("tickColor");var ee=X("labels");X("labelFont")&&(ee=!0),U("labelEnable"),j("labelSize"),j("labelPad"),te("labelColor"),U("lineEnable"),U("lineMirror"),j("lineWidth"),te("lineColor"),U("lineTickEnable"),U("lineTickMirror"),j("lineTickLength"),j("lineTickWidth"),te("lineTickColor"),U("gridEnable"),j("gridWidth"),te("gridColor"),U("zeroEnable"),te("zeroLineColor"),j("zeroLineWidth"),U("backgroundEnable"),te("backgroundColor"),this._text?this._text&&(ee||W)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=u(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&W&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=h(this.gl,this.bounds,this.ticks))};var T=[new M,new M,new M];function E(z,$,Q,j,U){for(var X=z.primalOffset,te=z.primalMinor,W=z.mirrorOffset,K=z.mirrorMinor,oe=j[$],q=0;q<3;++q)if($!==q){var Y=X,ee=W,me=te,he=K;oe&1<0?(me[q]=-1,he[q]=0):(me[q]=0,he[q]=1)}}var C=[0,0,0],L={model:S,view:S,projection:S,_ortho:!1};R.isOpaque=function(){return!0},R.isTransparent=function(){return!1},R.drawTransparent=function(z){};var D=[0,0,0],k=[0,0,0],I=[0,0,0];R.draw=function(z){z=z||L;for(var $=this.gl,Q=z.model||S,j=z.view||S,U=z.projection||S,X=this.bounds,te=z._ortho||!1,W=v(Q,j,U,X,te),K=W.cubeEdges,oe=W.axis,q=j[12],Y=j[13],ee=j[14],me=j[15],he=(te?2:1)*this.pixelRatio*(U[3]*q+U[7]*Y+U[11]*ee+U[15]*me)/$.drawingBufferHeight,se=0;se<3;++se)this.lastCubeProps.cubeEdges[se]=K[se],this.lastCubeProps.axis[se]=oe[se];var ae=T;for(se=0;se<3;++se)E(T[se],se,this.bounds,K,oe);$=this.gl;var ce,de,ve,ye=C;for(se=0;se<3;++se)this.backgroundEnable[se]?ye[se]=oe[se]:ye[se]=0;for(this._background.draw(Q,j,U,X,ye,this.backgroundColor),this._lines.bind(Q,j,U,this),se=0;se<3;++se){var _e=[0,0,0];oe[se]>0?_e[se]=X[1][se]:_e[se]=X[0][se];for(var Se=0;Se<2;++Se){var Te=(se+1+Se)%3,Pe=(se+1+(1^Se))%3;this.gridEnable[Te]&&this._lines.drawGrid(Te,Pe,this.bounds,_e,this.gridColor[Te],this.gridWidth[Te]*this.pixelRatio)}for(Se=0;Se<2;++Se)Te=(se+1+Se)%3,Pe=(se+1+(1^Se))%3,this.zeroEnable[Pe]&&Math.min(X[0][Pe],X[1][Pe])<=0&&Math.max(X[0][Pe],X[1][Pe])>=0&&this._lines.drawZero(Te,Pe,this.bounds,_e,this.zeroLineColor[Pe],this.zeroLineWidth[Pe]*this.pixelRatio)}for(se=0;se<3;++se){this.lineEnable[se]&&this._lines.drawAxisLine(se,this.bounds,ae[se].primalOffset,this.lineColor[se],this.lineWidth[se]*this.pixelRatio),this.lineMirror[se]&&this._lines.drawAxisLine(se,this.bounds,ae[se].mirrorOffset,this.lineColor[se],this.lineWidth[se]*this.pixelRatio);var Ie=A(D,ae[se].primalMinor),ze=A(k,ae[se].mirrorMinor),De=this.lineTickLength;for(Se=0;Se<3;++Se){var He=he/Q[5*Se];Ie[Se]*=De[Se]*He,ze[Se]*=De[Se]*He}this.lineTickEnable[se]&&this._lines.drawAxisTicks(se,ae[se].primalOffset,Ie,this.lineTickColor[se],this.lineTickWidth[se]*this.pixelRatio),this.lineTickMirror[se]&&this._lines.drawAxisTicks(se,ae[se].mirrorOffset,ze,this.lineTickColor[se],this.lineTickWidth[se]*this.pixelRatio)}function Ve(Ue){(ve=[0,0,0])[Ue]=1}function $e(Ue,Ze,Xe){var tt=(Ue+1)%3,Ee=(Ue+2)%3,Ne=Ze[tt],je=Ze[Ee],nt=Xe[tt],ot=Xe[Ee];Ne>0&&ot>0||Ne>0&&ot<0||Ne<0&&ot>0||Ne<0&&ot<0?Ve(tt):(je>0&&nt>0||je>0&&nt<0||je<0&&nt>0||je<0&&nt<0)&&Ve(Ee)}for(this._lines.unbind(),this._text.bind(Q,j,U,this.pixelRatio),se=0;se<3;++se){var Oe=ae[se].primalMinor,ke=ae[se].mirrorMinor,Le=A(I,ae[se].primalOffset);for(Se=0;Se<3;++Se)this.lineTickEnable[se]&&(Le[Se]+=he*Oe[Se]*Math.max(this.lineTickLength[Se],0)/Q[5*Se]);var We=[0,0,0];if(We[se]=1,this.tickEnable[se]){for(this.tickAngle[se]===-3600?(this.tickAngle[se]=0,this.tickAlign[se]="auto"):this.tickAlign[se]=-1,de=1,(ce=[this.tickAlign[se],.5,de])[0]==="auto"?ce[0]=0:ce[0]=parseInt(""+ce[0]),ve=[0,0,0],$e(se,Oe,ke),Se=0;Se<3;++Se)Le[Se]+=he*Oe[Se]*this.tickPad[Se]/Q[5*Se];this._text.drawTicks(se,this.tickSize[se],this.tickAngle[se],Le,this.tickColor[se],We,ve,ce)}if(this.labelEnable[se]){for(de=0,ve=[0,0,0],this.labels[se].length>4&&(Ve(se),de=1),(ce=[this.labelAlign[se],.5,de])[0]==="auto"?ce[0]=0:ce[0]=parseInt(""+ce[0]),Se=0;Se<3;++Se)Le[Se]+=he*Oe[Se]*this.labelPad[Se]/Q[5*Se];Le[se]+=.5*(X[0][se]+X[1][se]),this._text.drawLabel(se,this.labelSize[se],this.labelAngle[se],Le,this.labelColor[se],[0,0,0],ve,ce)}}this._text.unbind()},R.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},1011:function(y,p,a){y.exports=function(S){for(var A=[],x=[],R=0,M=0;M<3;++M)for(var T=(M+1)%3,E=(M+2)%3,C=[0,0,0],L=[0,0,0],D=-1;D<=1;D+=2){x.push(R,R+2,R+1,R+1,R+2,R+3),C[M]=D,L[M]=D;for(var k=-1;k<=1;k+=2){C[T]=k;for(var I=-1;I<=1;I+=2)C[E]=I,A.push(C[0],C[1],C[2],L[0],L[1],L[2]),R+=1}var z=T;T=E,E=z}var $=u(S,new Float32Array(A)),Q=u(S,new Uint16Array(x),S.ELEMENT_ARRAY_BUFFER),j=h(S,[{buffer:$,type:S.FLOAT,size:3,offset:0,stride:24},{buffer:$,type:S.FLOAT,size:3,offset:12,stride:24}],Q),U=m(S);return U.attributes.position.location=0,U.attributes.normal.location=1,new v(S,$,j,U)};var u=a(5827),h=a(2944),m=a(1943).bg;function v(S,A,x,R){this.gl=S,this.buffer=A,this.vao=x,this.shader=R}var _=v.prototype;_.draw=function(S,A,x,R,M,T){for(var E=!1,C=0;C<3;++C)E=E||M[C];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:S,view:A,projection:x,bounds:R,enable:M,colors:T},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},_.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},2864:function(y,p,a){y.exports=function(k,I,z,$,Q){h(_,I,k),h(_,z,_);for(var j=0,U=0;U<2;++U){x[2]=$[U][2];for(var X=0;X<2;++X){x[1]=$[X][1];for(var te=0;te<2;++te)x[0]=$[te][0],M(S[j],x,_),j+=1}}var W=-1;for(U=0;U<8;++U){for(var K=S[U][3],oe=0;oe<3;++oe)A[U][oe]=S[U][oe]/K;Q&&(A[U][2]*=-1),K<0&&(W<0||A[U][2]me&&(W|=1<me&&(W|=1<A[U][1])&&(_e=U);var Se=-1;for(U=0;U<3;++U)(Pe=_e^1<A[Te][0]&&(Te=Pe))}var Ie=C;Ie[0]=Ie[1]=Ie[2]=0,Ie[u.log2(Se^_e)]=_e&Se,Ie[u.log2(_e^Te)]=_e&Te;var ze=7^Te;ze===W||ze===ye?(ze=7^Se,Ie[u.log2(Te^ze)]=ze&Te):Ie[u.log2(Se^ze)]=ze&Se;var De=L,He=W;for(q=0;q<3;++q)De[q]=He&1<0?M=M.ushln(E):E<0&&(T=T.ushln(-E)),_(M,T)}},234:function(y,p,a){var u=a(3218);y.exports=function(h){return Array.isArray(h)&&h.length===2&&u(h[0])&&u(h[1])}},4275:function(y,p,a){var u=a(1928);y.exports=function(h){return h.cmp(new u(0))}},9958:function(y,p,a){var u=a(4275);y.exports=function(h){var m=h.length,v=h.words,_=0;if(m===1)_=v[0];else if(m===2)_=v[0]+67108864*v[1];else for(var S=0;S20?52:_+32}},3218:function(y,p,a){a(1928),y.exports=function(u){return u&&typeof u=="object"&&!!u.words}},5514:function(y,p,a){var u=a(1928),h=a(8362);y.exports=function(m){var v=h.exponent(m);return v<52?new u(m):new u(m*Math.pow(2,52-v)).ushln(v-52)}},8524:function(y,p,a){var u=a(5514),h=a(4275);y.exports=function(m,v){var _=h(m),S=h(v);if(_===0)return[u(0),u(1)];if(S===0)return[u(0),u(0)];S<0&&(m=m.neg(),v=v.neg());var A=m.gcd(v);return A.cmpn(1)?[m.div(A),v.div(A)]:[m,v]}},2813:function(y,p,a){var u=a(1928);y.exports=function(h){return new u(h)}},3962:function(y,p,a){var u=a(8524);y.exports=function(h,m){return u(h[0].mul(m[0]),h[1].mul(m[1]))}},4951:function(y,p,a){var u=a(4275);y.exports=function(h){return u(h[0])*u(h[1])}},4354:function(y,p,a){var u=a(8524);y.exports=function(h,m){return u(h[0].mul(m[1]).sub(h[1].mul(m[0])),h[1].mul(m[1]))}},7999:function(y,p,a){var u=a(9958),h=a(1112);y.exports=function(m){var v=m[0],_=m[1];if(v.cmpn(0)===0)return 0;var S=v.abs().divmod(_.abs()),A=S.div,x=u(A),R=S.mod,M=v.negative!==_.negative?-1:1;if(R.cmpn(0)===0)return M*x;if(x){var T=h(x)+4;return M*(x+(C=u(R.ushln(T).divRound(_)))*Math.pow(2,-T))}var E=_.bitLength()-R.bitLength()+53,C=u(R.ushln(E).divRound(_));return E<1023?M*C*Math.pow(2,-E):M*(C*=Math.pow(2,-1023))*Math.pow(2,1023-E)}},5070:function(y){function p(_,S,A,x,R){for(var M=R+1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)>=0?(M=T,R=T-1):x=T+1}return M}function a(_,S,A,x,R){for(var M=R+1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)>0?(M=T,R=T-1):x=T+1}return M}function u(_,S,A,x,R){for(var M=x-1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)<0?(M=T,x=T+1):R=T-1}return M}function h(_,S,A,x,R){for(var M=x-1;x<=R;){var T=x+R>>>1,E=_[T];(A!==void 0?A(E,S):E-S)<=0?(M=T,x=T+1):R=T-1}return M}function m(_,S,A,x,R){for(;x<=R;){var M=x+R>>>1,T=_[M],E=A!==void 0?A(T,S):T-S;if(E===0)return M;E<=0?x=M+1:R=M-1}return-1}function v(_,S,A,x,R,M){return typeof A=="function"?M(_,S,A,x===void 0?0:0|x,R===void 0?_.length-1:0|R):M(_,S,void 0,A===void 0?0:0|A,x===void 0?_.length-1:0|x)}y.exports={ge:function(_,S,A,x,R){return v(_,S,A,x,R,p)},gt:function(_,S,A,x,R){return v(_,S,A,x,R,a)},lt:function(_,S,A,x,R){return v(_,S,A,x,R,u)},le:function(_,S,A,x,R){return v(_,S,A,x,R,h)},eq:function(_,S,A,x,R){return v(_,S,A,x,R,m)}}},2288:function(y,p){function a(h){var m=32;return(h&=-h)&&m--,65535&h&&(m-=16),16711935&h&&(m-=8),252645135&h&&(m-=4),858993459&h&&(m-=2),1431655765&h&&(m-=1),m}p.INT_BITS=32,p.INT_MAX=2147483647,p.INT_MIN=-2147483648,p.sign=function(h){return(h>0)-(h<0)},p.abs=function(h){var m=h>>31;return(h^m)-m},p.min=function(h,m){return m^(h^m)&-(h65535)<<4,m|=v=((h>>>=m)>255)<<3,m|=v=((h>>>=v)>15)<<2,(m|=v=((h>>>=v)>3)<<1)|(h>>>=v)>>1},p.log10=function(h){return h>=1e9?9:h>=1e8?8:h>=1e7?7:h>=1e6?6:h>=1e5?5:h>=1e4?4:h>=1e3?3:h>=100?2:h>=10?1:0},p.popCount=function(h){return 16843009*((h=(858993459&(h-=h>>>1&1431655765))+(h>>>2&858993459))+(h>>>4)&252645135)>>>24},p.countTrailingZeros=a,p.nextPow2=function(h){return h+=h===0,--h,h|=h>>>1,h|=h>>>2,h|=h>>>4,1+((h|=h>>>8)|h>>>16)},p.prevPow2=function(h){return h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,(h|=h>>>16)-(h>>>1)},p.parity=function(h){return h^=h>>>16,h^=h>>>8,h^=h>>>4,27030>>>(h&=15)&1};var u=new Array(256);(function(h){for(var m=0;m<256;++m){var v=m,_=m,S=7;for(v>>>=1;v;v>>>=1)_<<=1,_|=1&v,--S;h[m]=_<>>8&255]<<16|u[h>>>16&255]<<8|u[h>>>24&255]},p.interleave2=function(h,m){return(h=1431655765&((h=858993459&((h=252645135&((h=16711935&((h&=65535)|h<<8))|h<<4))|h<<2))|h<<1))|(m=1431655765&((m=858993459&((m=252645135&((m=16711935&((m&=65535)|m<<8))|m<<4))|m<<2))|m<<1))<<1},p.deinterleave2=function(h,m){return(h=65535&((h=16711935&((h=252645135&((h=858993459&((h=h>>>m&1431655765)|h>>>1))|h>>>2))|h>>>4))|h>>>16))<<16>>16},p.interleave3=function(h,m,v){return h=1227133513&((h=3272356035&((h=251719695&((h=4278190335&((h&=1023)|h<<16))|h<<8))|h<<4))|h<<2),(h|=(m=1227133513&((m=3272356035&((m=251719695&((m=4278190335&((m&=1023)|m<<16))|m<<8))|m<<4))|m<<2))<<1)|(v=1227133513&((v=3272356035&((v=251719695&((v=4278190335&((v&=1023)|v<<16))|v<<8))|v<<4))|v<<2))<<2},p.deinterleave3=function(h,m){return(h=1023&((h=4278190335&((h=251719695&((h=3272356035&((h=h>>>m&1227133513)|h>>>2))|h>>>4))|h>>>8))|h>>>16))<<22>>22},p.nextCombination=function(h){var m=h|h-1;return m+1|(~m&-~m)-1>>>a(h)+1}},1928:function(y,p,a){(function(u,h){function m(W,K){if(!W)throw new Error(K||"Assertion failed")}function v(W,K){W.super_=K;var oe=function(){};oe.prototype=K.prototype,W.prototype=new oe,W.prototype.constructor=W}function _(W,K,oe){if(_.isBN(W))return W;this.negative=0,this.words=null,this.length=0,this.red=null,W!==null&&(K!=="le"&&K!=="be"||(oe=K,K=10),this._init(W||0,K||10,oe||"be"))}var S;typeof u=="object"?u.exports=_:h.BN=_,_.BN=_,_.wordSize=26;try{S=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:a(6601).Buffer}catch{}function A(W,K){var oe=W.charCodeAt(K);return oe>=65&&oe<=70?oe-55:oe>=97&&oe<=102?oe-87:oe-48&15}function x(W,K,oe){var q=A(W,oe);return oe-1>=K&&(q|=A(W,oe-1)<<4),q}function R(W,K,oe,q){for(var Y=0,ee=Math.min(W.length,oe),me=K;me=49?he-49+10:he>=17?he-17+10:he}return Y}_.isBN=function(W){return W instanceof _||W!==null&&typeof W=="object"&&W.constructor.wordSize===_.wordSize&&Array.isArray(W.words)},_.max=function(W,K){return W.cmp(K)>0?W:K},_.min=function(W,K){return W.cmp(K)<0?W:K},_.prototype._init=function(W,K,oe){if(typeof W=="number")return this._initNumber(W,K,oe);if(typeof W=="object")return this._initArray(W,K,oe);K==="hex"&&(K=16),m(K===(0|K)&&K>=2&&K<=36);var q=0;(W=W.toString().replace(/\s+/g,""))[0]==="-"&&(q++,this.negative=1),q=0;q-=3)ee=W[q]|W[q-1]<<8|W[q-2]<<16,this.words[Y]|=ee<>>26-me&67108863,(me+=24)>=26&&(me-=26,Y++);else if(oe==="le")for(q=0,Y=0;q>>26-me&67108863,(me+=24)>=26&&(me-=26,Y++);return this.strip()},_.prototype._parseHex=function(W,K,oe){this.length=Math.ceil((W.length-K)/6),this.words=new Array(this.length);for(var q=0;q=K;q-=2)Y=x(W,K,q)<=18?(ee-=18,me+=1,this.words[me]|=Y>>>26):ee+=8;else for(q=(W.length-K)%2==0?K+1:K;q=18?(ee-=18,me+=1,this.words[me]|=Y>>>26):ee+=8;this.strip()},_.prototype._parseBase=function(W,K,oe){this.words=[0],this.length=1;for(var q=0,Y=1;Y<=67108863;Y*=K)q++;q--,Y=Y/K|0;for(var ee=W.length-oe,me=ee%q,he=Math.min(ee,ee-me)+oe,se=0,ae=oe;ae1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},_.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},_.prototype.inspect=function(){return(this.red?""};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function C(W,K,oe){oe.negative=K.negative^W.negative;var q=W.length+K.length|0;oe.length=q,q=q-1|0;var Y=0|W.words[0],ee=0|K.words[0],me=Y*ee,he=67108863&me,se=me/67108864|0;oe.words[0]=he;for(var ae=1;ae>>26,de=67108863&se,ve=Math.min(ae,K.length-1),ye=Math.max(0,ae-W.length+1);ye<=ve;ye++){var _e=ae-ye|0;ce+=(me=(Y=0|W.words[_e])*(ee=0|K.words[ye])+de)/67108864|0,de=67108863&me}oe.words[ae]=0|de,se=0|ce}return se!==0?oe.words[ae]=0|se:oe.length--,oe.strip()}_.prototype.toString=function(W,K){var oe;if(K=0|K||1,(W=W||10)===16||W==="hex"){oe="";for(var q=0,Y=0,ee=0;ee>>24-q&16777215)!=0||ee!==this.length-1?M[6-he.length]+he+oe:he+oe,(q+=2)>=26&&(q-=26,ee--)}for(Y!==0&&(oe=Y.toString(16)+oe);oe.length%K!=0;)oe="0"+oe;return this.negative!==0&&(oe="-"+oe),oe}if(W===(0|W)&&W>=2&&W<=36){var se=T[W],ae=E[W];oe="";var ce=this.clone();for(ce.negative=0;!ce.isZero();){var de=ce.modn(ae).toString(W);oe=(ce=ce.idivn(ae)).isZero()?de+oe:M[se-de.length]+de+oe}for(this.isZero()&&(oe="0"+oe);oe.length%K!=0;)oe="0"+oe;return this.negative!==0&&(oe="-"+oe),oe}m(!1,"Base should be between 2 and 36")},_.prototype.toNumber=function(){var W=this.words[0];return this.length===2?W+=67108864*this.words[1]:this.length===3&&this.words[2]===1?W+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-W:W},_.prototype.toJSON=function(){return this.toString(16)},_.prototype.toBuffer=function(W,K){return m(S!==void 0),this.toArrayLike(S,W,K)},_.prototype.toArray=function(W,K){return this.toArrayLike(Array,W,K)},_.prototype.toArrayLike=function(W,K,oe){var q=this.byteLength(),Y=oe||Math.max(1,q);m(q<=Y,"byte array longer than desired length"),m(Y>0,"Requested array length <= 0"),this.strip();var ee,me,he=K==="le",se=new W(Y),ae=this.clone();if(he){for(me=0;!ae.isZero();me++)ee=ae.andln(255),ae.iushrn(8),se[me]=ee;for(;me=4096&&(oe+=13,K>>>=13),K>=64&&(oe+=7,K>>>=7),K>=8&&(oe+=4,K>>>=4),K>=2&&(oe+=2,K>>>=2),oe+K},_.prototype._zeroBits=function(W){if(W===0)return 26;var K=W,oe=0;return!(8191&K)&&(oe+=13,K>>>=13),!(127&K)&&(oe+=7,K>>>=7),!(15&K)&&(oe+=4,K>>>=4),!(3&K)&&(oe+=2,K>>>=2),!(1&K)&&oe++,oe},_.prototype.bitLength=function(){var W=this.words[this.length-1],K=this._countBits(W);return 26*(this.length-1)+K},_.prototype.zeroBits=function(){if(this.isZero())return 0;for(var W=0,K=0;KW.length?this.clone().ior(W):W.clone().ior(this)},_.prototype.uor=function(W){return this.length>W.length?this.clone().iuor(W):W.clone().iuor(this)},_.prototype.iuand=function(W){var K;K=this.length>W.length?W:this;for(var oe=0;oeW.length?this.clone().iand(W):W.clone().iand(this)},_.prototype.uand=function(W){return this.length>W.length?this.clone().iuand(W):W.clone().iuand(this)},_.prototype.iuxor=function(W){var K,oe;this.length>W.length?(K=this,oe=W):(K=W,oe=this);for(var q=0;qW.length?this.clone().ixor(W):W.clone().ixor(this)},_.prototype.uxor=function(W){return this.length>W.length?this.clone().iuxor(W):W.clone().iuxor(this)},_.prototype.inotn=function(W){m(typeof W=="number"&&W>=0);var K=0|Math.ceil(W/26),oe=W%26;this._expand(K),oe>0&&K--;for(var q=0;q0&&(this.words[q]=~this.words[q]&67108863>>26-oe),this.strip()},_.prototype.notn=function(W){return this.clone().inotn(W)},_.prototype.setn=function(W,K){m(typeof W=="number"&&W>=0);var oe=W/26|0,q=W%26;return this._expand(oe+1),this.words[oe]=K?this.words[oe]|1<W.length?(oe=this,q=W):(oe=W,q=this);for(var Y=0,ee=0;ee>>26;for(;Y!==0&&ee>>26;if(this.length=oe.length,Y!==0)this.words[this.length]=Y,this.length++;else if(oe!==this)for(;eeW.length?this.clone().iadd(W):W.clone().iadd(this)},_.prototype.isub=function(W){if(W.negative!==0){W.negative=0;var K=this.iadd(W);return W.negative=1,K._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(W),this.negative=1,this._normSign();var oe,q,Y=this.cmp(W);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;Y>0?(oe=this,q=W):(oe=W,q=this);for(var ee=0,me=0;me>26,this.words[me]=67108863&K;for(;ee!==0&&me>26,this.words[me]=67108863&K;if(ee===0&&me>>13,ye=0|me[1],_e=8191&ye,Se=ye>>>13,Te=0|me[2],Pe=8191&Te,Ie=Te>>>13,ze=0|me[3],De=8191&ze,He=ze>>>13,Ve=0|me[4],$e=8191&Ve,Oe=Ve>>>13,ke=0|me[5],Le=8191&ke,We=ke>>>13,Ue=0|me[6],Ze=8191&Ue,Xe=Ue>>>13,tt=0|me[7],Ee=8191&tt,Ne=tt>>>13,je=0|me[8],nt=8191&je,ot=je>>>13,Ge=0|me[9],ht=8191&Ge,pt=Ge>>>13,wt=0|he[0],Dt=8191&wt,It=wt>>>13,qt=0|he[1],en=8191&qt,Gt=qt>>>13,Ct=0|he[2],_t=8191&Ct,nn=Ct>>>13,gn=0|he[3],bn=8191&gn,mn=gn>>>13,vt=0|he[4],bt=8191&vt,lt=vt>>>13,yt=0|he[5],zt=8191&yt,Rt=yt>>>13,it=0|he[6],at=8191&it,Lt=it>>>13,xt=0|he[7],Zt=8191&xt,Xt=xt>>>13,Yt=0|he[8],Qt=8191&Yt,Pt=Yt>>>13,tn=0|he[9],Kt=8191&tn,fn=tn>>>13;oe.negative=W.negative^K.negative,oe.length=19;var dn=(ae+(q=Math.imul(de,Dt))|0)+((8191&(Y=(Y=Math.imul(de,It))+Math.imul(ve,Dt)|0))<<13)|0;ae=((ee=Math.imul(ve,It))+(Y>>>13)|0)+(dn>>>26)|0,dn&=67108863,q=Math.imul(_e,Dt),Y=(Y=Math.imul(_e,It))+Math.imul(Se,Dt)|0,ee=Math.imul(Se,It);var vn=(ae+(q=q+Math.imul(de,en)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Gt)|0)+Math.imul(ve,en)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Gt)|0)+(Y>>>13)|0)+(vn>>>26)|0,vn&=67108863,q=Math.imul(Pe,Dt),Y=(Y=Math.imul(Pe,It))+Math.imul(Ie,Dt)|0,ee=Math.imul(Ie,It),q=q+Math.imul(_e,en)|0,Y=(Y=Y+Math.imul(_e,Gt)|0)+Math.imul(Se,en)|0,ee=ee+Math.imul(Se,Gt)|0;var Nn=(ae+(q=q+Math.imul(de,_t)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,nn)|0)+Math.imul(ve,_t)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,nn)|0)+(Y>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,q=Math.imul(De,Dt),Y=(Y=Math.imul(De,It))+Math.imul(He,Dt)|0,ee=Math.imul(He,It),q=q+Math.imul(Pe,en)|0,Y=(Y=Y+Math.imul(Pe,Gt)|0)+Math.imul(Ie,en)|0,ee=ee+Math.imul(Ie,Gt)|0,q=q+Math.imul(_e,_t)|0,Y=(Y=Y+Math.imul(_e,nn)|0)+Math.imul(Se,_t)|0,ee=ee+Math.imul(Se,nn)|0;var er=(ae+(q=q+Math.imul(de,bn)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,mn)|0)+Math.imul(ve,bn)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,mn)|0)+(Y>>>13)|0)+(er>>>26)|0,er&=67108863,q=Math.imul($e,Dt),Y=(Y=Math.imul($e,It))+Math.imul(Oe,Dt)|0,ee=Math.imul(Oe,It),q=q+Math.imul(De,en)|0,Y=(Y=Y+Math.imul(De,Gt)|0)+Math.imul(He,en)|0,ee=ee+Math.imul(He,Gt)|0,q=q+Math.imul(Pe,_t)|0,Y=(Y=Y+Math.imul(Pe,nn)|0)+Math.imul(Ie,_t)|0,ee=ee+Math.imul(Ie,nn)|0,q=q+Math.imul(_e,bn)|0,Y=(Y=Y+Math.imul(_e,mn)|0)+Math.imul(Se,bn)|0,ee=ee+Math.imul(Se,mn)|0;var En=(ae+(q=q+Math.imul(de,bt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,lt)|0)+Math.imul(ve,bt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,lt)|0)+(Y>>>13)|0)+(En>>>26)|0,En&=67108863,q=Math.imul(Le,Dt),Y=(Y=Math.imul(Le,It))+Math.imul(We,Dt)|0,ee=Math.imul(We,It),q=q+Math.imul($e,en)|0,Y=(Y=Y+Math.imul($e,Gt)|0)+Math.imul(Oe,en)|0,ee=ee+Math.imul(Oe,Gt)|0,q=q+Math.imul(De,_t)|0,Y=(Y=Y+Math.imul(De,nn)|0)+Math.imul(He,_t)|0,ee=ee+Math.imul(He,nn)|0,q=q+Math.imul(Pe,bn)|0,Y=(Y=Y+Math.imul(Pe,mn)|0)+Math.imul(Ie,bn)|0,ee=ee+Math.imul(Ie,mn)|0,q=q+Math.imul(_e,bt)|0,Y=(Y=Y+Math.imul(_e,lt)|0)+Math.imul(Se,bt)|0,ee=ee+Math.imul(Se,lt)|0;var In=(ae+(q=q+Math.imul(de,zt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Rt)|0)+Math.imul(ve,zt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Rt)|0)+(Y>>>13)|0)+(In>>>26)|0,In&=67108863,q=Math.imul(Ze,Dt),Y=(Y=Math.imul(Ze,It))+Math.imul(Xe,Dt)|0,ee=Math.imul(Xe,It),q=q+Math.imul(Le,en)|0,Y=(Y=Y+Math.imul(Le,Gt)|0)+Math.imul(We,en)|0,ee=ee+Math.imul(We,Gt)|0,q=q+Math.imul($e,_t)|0,Y=(Y=Y+Math.imul($e,nn)|0)+Math.imul(Oe,_t)|0,ee=ee+Math.imul(Oe,nn)|0,q=q+Math.imul(De,bn)|0,Y=(Y=Y+Math.imul(De,mn)|0)+Math.imul(He,bn)|0,ee=ee+Math.imul(He,mn)|0,q=q+Math.imul(Pe,bt)|0,Y=(Y=Y+Math.imul(Pe,lt)|0)+Math.imul(Ie,bt)|0,ee=ee+Math.imul(Ie,lt)|0,q=q+Math.imul(_e,zt)|0,Y=(Y=Y+Math.imul(_e,Rt)|0)+Math.imul(Se,zt)|0,ee=ee+Math.imul(Se,Rt)|0;var jn=(ae+(q=q+Math.imul(de,at)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Lt)|0)+Math.imul(ve,at)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Lt)|0)+(Y>>>13)|0)+(jn>>>26)|0,jn&=67108863,q=Math.imul(Ee,Dt),Y=(Y=Math.imul(Ee,It))+Math.imul(Ne,Dt)|0,ee=Math.imul(Ne,It),q=q+Math.imul(Ze,en)|0,Y=(Y=Y+Math.imul(Ze,Gt)|0)+Math.imul(Xe,en)|0,ee=ee+Math.imul(Xe,Gt)|0,q=q+Math.imul(Le,_t)|0,Y=(Y=Y+Math.imul(Le,nn)|0)+Math.imul(We,_t)|0,ee=ee+Math.imul(We,nn)|0,q=q+Math.imul($e,bn)|0,Y=(Y=Y+Math.imul($e,mn)|0)+Math.imul(Oe,bn)|0,ee=ee+Math.imul(Oe,mn)|0,q=q+Math.imul(De,bt)|0,Y=(Y=Y+Math.imul(De,lt)|0)+Math.imul(He,bt)|0,ee=ee+Math.imul(He,lt)|0,q=q+Math.imul(Pe,zt)|0,Y=(Y=Y+Math.imul(Pe,Rt)|0)+Math.imul(Ie,zt)|0,ee=ee+Math.imul(Ie,Rt)|0,q=q+Math.imul(_e,at)|0,Y=(Y=Y+Math.imul(_e,Lt)|0)+Math.imul(Se,at)|0,ee=ee+Math.imul(Se,Lt)|0;var xr=(ae+(q=q+Math.imul(de,Zt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Xt)|0)+Math.imul(ve,Zt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Xt)|0)+(Y>>>13)|0)+(xr>>>26)|0,xr&=67108863,q=Math.imul(nt,Dt),Y=(Y=Math.imul(nt,It))+Math.imul(ot,Dt)|0,ee=Math.imul(ot,It),q=q+Math.imul(Ee,en)|0,Y=(Y=Y+Math.imul(Ee,Gt)|0)+Math.imul(Ne,en)|0,ee=ee+Math.imul(Ne,Gt)|0,q=q+Math.imul(Ze,_t)|0,Y=(Y=Y+Math.imul(Ze,nn)|0)+Math.imul(Xe,_t)|0,ee=ee+Math.imul(Xe,nn)|0,q=q+Math.imul(Le,bn)|0,Y=(Y=Y+Math.imul(Le,mn)|0)+Math.imul(We,bn)|0,ee=ee+Math.imul(We,mn)|0,q=q+Math.imul($e,bt)|0,Y=(Y=Y+Math.imul($e,lt)|0)+Math.imul(Oe,bt)|0,ee=ee+Math.imul(Oe,lt)|0,q=q+Math.imul(De,zt)|0,Y=(Y=Y+Math.imul(De,Rt)|0)+Math.imul(He,zt)|0,ee=ee+Math.imul(He,Rt)|0,q=q+Math.imul(Pe,at)|0,Y=(Y=Y+Math.imul(Pe,Lt)|0)+Math.imul(Ie,at)|0,ee=ee+Math.imul(Ie,Lt)|0,q=q+Math.imul(_e,Zt)|0,Y=(Y=Y+Math.imul(_e,Xt)|0)+Math.imul(Se,Zt)|0,ee=ee+Math.imul(Se,Xt)|0;var Sr=(ae+(q=q+Math.imul(de,Qt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,Pt)|0)+Math.imul(ve,Qt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,Pt)|0)+(Y>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,q=Math.imul(ht,Dt),Y=(Y=Math.imul(ht,It))+Math.imul(pt,Dt)|0,ee=Math.imul(pt,It),q=q+Math.imul(nt,en)|0,Y=(Y=Y+Math.imul(nt,Gt)|0)+Math.imul(ot,en)|0,ee=ee+Math.imul(ot,Gt)|0,q=q+Math.imul(Ee,_t)|0,Y=(Y=Y+Math.imul(Ee,nn)|0)+Math.imul(Ne,_t)|0,ee=ee+Math.imul(Ne,nn)|0,q=q+Math.imul(Ze,bn)|0,Y=(Y=Y+Math.imul(Ze,mn)|0)+Math.imul(Xe,bn)|0,ee=ee+Math.imul(Xe,mn)|0,q=q+Math.imul(Le,bt)|0,Y=(Y=Y+Math.imul(Le,lt)|0)+Math.imul(We,bt)|0,ee=ee+Math.imul(We,lt)|0,q=q+Math.imul($e,zt)|0,Y=(Y=Y+Math.imul($e,Rt)|0)+Math.imul(Oe,zt)|0,ee=ee+Math.imul(Oe,Rt)|0,q=q+Math.imul(De,at)|0,Y=(Y=Y+Math.imul(De,Lt)|0)+Math.imul(He,at)|0,ee=ee+Math.imul(He,Lt)|0,q=q+Math.imul(Pe,Zt)|0,Y=(Y=Y+Math.imul(Pe,Xt)|0)+Math.imul(Ie,Zt)|0,ee=ee+Math.imul(Ie,Xt)|0,q=q+Math.imul(_e,Qt)|0,Y=(Y=Y+Math.imul(_e,Pt)|0)+Math.imul(Se,Qt)|0,ee=ee+Math.imul(Se,Pt)|0;var ar=(ae+(q=q+Math.imul(de,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(de,fn)|0)+Math.imul(ve,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(ve,fn)|0)+(Y>>>13)|0)+(ar>>>26)|0,ar&=67108863,q=Math.imul(ht,en),Y=(Y=Math.imul(ht,Gt))+Math.imul(pt,en)|0,ee=Math.imul(pt,Gt),q=q+Math.imul(nt,_t)|0,Y=(Y=Y+Math.imul(nt,nn)|0)+Math.imul(ot,_t)|0,ee=ee+Math.imul(ot,nn)|0,q=q+Math.imul(Ee,bn)|0,Y=(Y=Y+Math.imul(Ee,mn)|0)+Math.imul(Ne,bn)|0,ee=ee+Math.imul(Ne,mn)|0,q=q+Math.imul(Ze,bt)|0,Y=(Y=Y+Math.imul(Ze,lt)|0)+Math.imul(Xe,bt)|0,ee=ee+Math.imul(Xe,lt)|0,q=q+Math.imul(Le,zt)|0,Y=(Y=Y+Math.imul(Le,Rt)|0)+Math.imul(We,zt)|0,ee=ee+Math.imul(We,Rt)|0,q=q+Math.imul($e,at)|0,Y=(Y=Y+Math.imul($e,Lt)|0)+Math.imul(Oe,at)|0,ee=ee+Math.imul(Oe,Lt)|0,q=q+Math.imul(De,Zt)|0,Y=(Y=Y+Math.imul(De,Xt)|0)+Math.imul(He,Zt)|0,ee=ee+Math.imul(He,Xt)|0,q=q+Math.imul(Pe,Qt)|0,Y=(Y=Y+Math.imul(Pe,Pt)|0)+Math.imul(Ie,Qt)|0,ee=ee+Math.imul(Ie,Pt)|0;var Fn=(ae+(q=q+Math.imul(_e,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(_e,fn)|0)+Math.imul(Se,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Se,fn)|0)+(Y>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,q=Math.imul(ht,_t),Y=(Y=Math.imul(ht,nn))+Math.imul(pt,_t)|0,ee=Math.imul(pt,nn),q=q+Math.imul(nt,bn)|0,Y=(Y=Y+Math.imul(nt,mn)|0)+Math.imul(ot,bn)|0,ee=ee+Math.imul(ot,mn)|0,q=q+Math.imul(Ee,bt)|0,Y=(Y=Y+Math.imul(Ee,lt)|0)+Math.imul(Ne,bt)|0,ee=ee+Math.imul(Ne,lt)|0,q=q+Math.imul(Ze,zt)|0,Y=(Y=Y+Math.imul(Ze,Rt)|0)+Math.imul(Xe,zt)|0,ee=ee+Math.imul(Xe,Rt)|0,q=q+Math.imul(Le,at)|0,Y=(Y=Y+Math.imul(Le,Lt)|0)+Math.imul(We,at)|0,ee=ee+Math.imul(We,Lt)|0,q=q+Math.imul($e,Zt)|0,Y=(Y=Y+Math.imul($e,Xt)|0)+Math.imul(Oe,Zt)|0,ee=ee+Math.imul(Oe,Xt)|0,q=q+Math.imul(De,Qt)|0,Y=(Y=Y+Math.imul(De,Pt)|0)+Math.imul(He,Qt)|0,ee=ee+Math.imul(He,Pt)|0;var ir=(ae+(q=q+Math.imul(Pe,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Pe,fn)|0)+Math.imul(Ie,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Ie,fn)|0)+(Y>>>13)|0)+(ir>>>26)|0,ir&=67108863,q=Math.imul(ht,bn),Y=(Y=Math.imul(ht,mn))+Math.imul(pt,bn)|0,ee=Math.imul(pt,mn),q=q+Math.imul(nt,bt)|0,Y=(Y=Y+Math.imul(nt,lt)|0)+Math.imul(ot,bt)|0,ee=ee+Math.imul(ot,lt)|0,q=q+Math.imul(Ee,zt)|0,Y=(Y=Y+Math.imul(Ee,Rt)|0)+Math.imul(Ne,zt)|0,ee=ee+Math.imul(Ne,Rt)|0,q=q+Math.imul(Ze,at)|0,Y=(Y=Y+Math.imul(Ze,Lt)|0)+Math.imul(Xe,at)|0,ee=ee+Math.imul(Xe,Lt)|0,q=q+Math.imul(Le,Zt)|0,Y=(Y=Y+Math.imul(Le,Xt)|0)+Math.imul(We,Zt)|0,ee=ee+Math.imul(We,Xt)|0,q=q+Math.imul($e,Qt)|0,Y=(Y=Y+Math.imul($e,Pt)|0)+Math.imul(Oe,Qt)|0,ee=ee+Math.imul(Oe,Pt)|0;var Wn=(ae+(q=q+Math.imul(De,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(De,fn)|0)+Math.imul(He,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(He,fn)|0)+(Y>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,q=Math.imul(ht,bt),Y=(Y=Math.imul(ht,lt))+Math.imul(pt,bt)|0,ee=Math.imul(pt,lt),q=q+Math.imul(nt,zt)|0,Y=(Y=Y+Math.imul(nt,Rt)|0)+Math.imul(ot,zt)|0,ee=ee+Math.imul(ot,Rt)|0,q=q+Math.imul(Ee,at)|0,Y=(Y=Y+Math.imul(Ee,Lt)|0)+Math.imul(Ne,at)|0,ee=ee+Math.imul(Ne,Lt)|0,q=q+Math.imul(Ze,Zt)|0,Y=(Y=Y+Math.imul(Ze,Xt)|0)+Math.imul(Xe,Zt)|0,ee=ee+Math.imul(Xe,Xt)|0,q=q+Math.imul(Le,Qt)|0,Y=(Y=Y+Math.imul(Le,Pt)|0)+Math.imul(We,Qt)|0,ee=ee+Math.imul(We,Pt)|0;var Kn=(ae+(q=q+Math.imul($e,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul($e,fn)|0)+Math.imul(Oe,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Oe,fn)|0)+(Y>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,q=Math.imul(ht,zt),Y=(Y=Math.imul(ht,Rt))+Math.imul(pt,zt)|0,ee=Math.imul(pt,Rt),q=q+Math.imul(nt,at)|0,Y=(Y=Y+Math.imul(nt,Lt)|0)+Math.imul(ot,at)|0,ee=ee+Math.imul(ot,Lt)|0,q=q+Math.imul(Ee,Zt)|0,Y=(Y=Y+Math.imul(Ee,Xt)|0)+Math.imul(Ne,Zt)|0,ee=ee+Math.imul(Ne,Xt)|0,q=q+Math.imul(Ze,Qt)|0,Y=(Y=Y+Math.imul(Ze,Pt)|0)+Math.imul(Xe,Qt)|0,ee=ee+Math.imul(Xe,Pt)|0;var _r=(ae+(q=q+Math.imul(Le,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Le,fn)|0)+Math.imul(We,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(We,fn)|0)+(Y>>>13)|0)+(_r>>>26)|0,_r&=67108863,q=Math.imul(ht,at),Y=(Y=Math.imul(ht,Lt))+Math.imul(pt,at)|0,ee=Math.imul(pt,Lt),q=q+Math.imul(nt,Zt)|0,Y=(Y=Y+Math.imul(nt,Xt)|0)+Math.imul(ot,Zt)|0,ee=ee+Math.imul(ot,Xt)|0,q=q+Math.imul(Ee,Qt)|0,Y=(Y=Y+Math.imul(Ee,Pt)|0)+Math.imul(Ne,Qt)|0,ee=ee+Math.imul(Ne,Pt)|0;var Ir=(ae+(q=q+Math.imul(Ze,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Ze,fn)|0)+Math.imul(Xe,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Xe,fn)|0)+(Y>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,q=Math.imul(ht,Zt),Y=(Y=Math.imul(ht,Xt))+Math.imul(pt,Zt)|0,ee=Math.imul(pt,Xt),q=q+Math.imul(nt,Qt)|0,Y=(Y=Y+Math.imul(nt,Pt)|0)+Math.imul(ot,Qt)|0,ee=ee+Math.imul(ot,Pt)|0;var zr=(ae+(q=q+Math.imul(Ee,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(Ee,fn)|0)+Math.imul(Ne,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(Ne,fn)|0)+(Y>>>13)|0)+(zr>>>26)|0,zr&=67108863,q=Math.imul(ht,Qt),Y=(Y=Math.imul(ht,Pt))+Math.imul(pt,Qt)|0,ee=Math.imul(pt,Pt);var Fr=(ae+(q=q+Math.imul(nt,Kt)|0)|0)+((8191&(Y=(Y=Y+Math.imul(nt,fn)|0)+Math.imul(ot,Kt)|0))<<13)|0;ae=((ee=ee+Math.imul(ot,fn)|0)+(Y>>>13)|0)+(Fr>>>26)|0,Fr&=67108863;var Rr=(ae+(q=Math.imul(ht,Kt))|0)+((8191&(Y=(Y=Math.imul(ht,fn))+Math.imul(pt,Kt)|0))<<13)|0;return ae=((ee=Math.imul(pt,fn))+(Y>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,se[0]=dn,se[1]=vn,se[2]=Nn,se[3]=er,se[4]=En,se[5]=In,se[6]=jn,se[7]=xr,se[8]=Sr,se[9]=ar,se[10]=Fn,se[11]=ir,se[12]=Wn,se[13]=Kn,se[14]=_r,se[15]=Ir,se[16]=zr,se[17]=Fr,se[18]=Rr,ae!==0&&(se[19]=ae,oe.length++),oe};function D(W,K,oe){return new k().mulp(W,K,oe)}function k(W,K){this.x=W,this.y=K}Math.imul||(L=C),_.prototype.mulTo=function(W,K){var oe,q=this.length+W.length;return oe=this.length===10&&W.length===10?L(this,W,K):q<63?C(this,W,K):q<1024?function(Y,ee,me){me.negative=ee.negative^Y.negative,me.length=Y.length+ee.length;for(var he=0,se=0,ae=0;ae>>26)|0)>>>26,ce&=67108863}me.words[ae]=de,he=ce,ce=se}return he!==0?me.words[ae]=he:me.length--,me.strip()}(this,W,K):D(this,W,K),oe},k.prototype.makeRBT=function(W){for(var K=new Array(W),oe=_.prototype._countBits(W)-1,q=0;q>=1;return q},k.prototype.permute=function(W,K,oe,q,Y,ee){for(var me=0;me>>=1)Y++;return 1<>>=13,oe[2*ee+1]=8191&Y,Y>>>=13;for(ee=2*K;ee>=26,K+=q/67108864|0,K+=Y>>>26,this.words[oe]=67108863&Y}return K!==0&&(this.words[oe]=K,this.length++),this},_.prototype.muln=function(W){return this.clone().imuln(W)},_.prototype.sqr=function(){return this.mul(this)},_.prototype.isqr=function(){return this.imul(this.clone())},_.prototype.pow=function(W){var K=function(ee){for(var me=new Array(ee.bitLength()),he=0;he>>ae}return me}(W);if(K.length===0)return new _(1);for(var oe=this,q=0;q=0);var K,oe=W%26,q=(W-oe)/26,Y=67108863>>>26-oe<<26-oe;if(oe!==0){var ee=0;for(K=0;K>>26-oe}ee&&(this.words[K]=ee,this.length++)}if(q!==0){for(K=this.length-1;K>=0;K--)this.words[K+q]=this.words[K];for(K=0;K=0),q=K?(K-K%26)/26:0;var Y=W%26,ee=Math.min((W-Y)/26,this.length),me=67108863^67108863>>>Y<ee)for(this.length-=ee,se=0;se=0&&(ae!==0||se>=q);se--){var ce=0|this.words[se];this.words[se]=ae<<26-Y|ce>>>Y,ae=ce&me}return he&&ae!==0&&(he.words[he.length++]=ae),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},_.prototype.ishrn=function(W,K,oe){return m(this.negative===0),this.iushrn(W,K,oe)},_.prototype.shln=function(W){return this.clone().ishln(W)},_.prototype.ushln=function(W){return this.clone().iushln(W)},_.prototype.shrn=function(W){return this.clone().ishrn(W)},_.prototype.ushrn=function(W){return this.clone().iushrn(W)},_.prototype.testn=function(W){m(typeof W=="number"&&W>=0);var K=W%26,oe=(W-K)/26,q=1<=0);var K=W%26,oe=(W-K)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=oe)return this;if(K!==0&&oe++,this.length=Math.min(oe,this.length),K!==0){var q=67108863^67108863>>>K<=67108864;K++)this.words[K]-=67108864,K===this.length-1?this.words[K+1]=1:this.words[K+1]++;return this.length=Math.max(this.length,K+1),this},_.prototype.isubn=function(W){if(m(typeof W=="number"),m(W<67108864),W<0)return this.iaddn(-W);if(this.negative!==0)return this.negative=0,this.iaddn(W),this.negative=1,this;if(this.words[0]-=W,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var K=0;K>26)-(he/67108864|0),this.words[q+oe]=67108863&Y}for(;q>26,this.words[q+oe]=67108863&Y;if(me===0)return this.strip();for(m(me===-1),me=0,q=0;q>26,this.words[q]=67108863&Y;return this.negative=1,this.strip()},_.prototype._wordDiv=function(W,K){var oe=(this.length,W.length),q=this.clone(),Y=W,ee=0|Y.words[Y.length-1];(oe=26-this._countBits(ee))!=0&&(Y=Y.ushln(oe),q.iushln(oe),ee=0|Y.words[Y.length-1]);var me,he=q.length-Y.length;if(K!=="mod"){(me=new _(null)).length=he+1,me.words=new Array(me.length);for(var se=0;se=0;ce--){var de=67108864*(0|q.words[Y.length+ce])+(0|q.words[Y.length+ce-1]);for(de=Math.min(de/ee|0,67108863),q._ishlnsubmul(Y,de,ce);q.negative!==0;)de--,q.negative=0,q._ishlnsubmul(Y,1,ce),q.isZero()||(q.negative^=1);me&&(me.words[ce]=de)}return me&&me.strip(),q.strip(),K!=="div"&&oe!==0&&q.iushrn(oe),{div:me||null,mod:q}},_.prototype.divmod=function(W,K,oe){return m(!W.isZero()),this.isZero()?{div:new _(0),mod:new _(0)}:this.negative!==0&&W.negative===0?(ee=this.neg().divmod(W,K),K!=="mod"&&(q=ee.div.neg()),K!=="div"&&(Y=ee.mod.neg(),oe&&Y.negative!==0&&Y.iadd(W)),{div:q,mod:Y}):this.negative===0&&W.negative!==0?(ee=this.divmod(W.neg(),K),K!=="mod"&&(q=ee.div.neg()),{div:q,mod:ee.mod}):this.negative&W.negative?(ee=this.neg().divmod(W.neg(),K),K!=="div"&&(Y=ee.mod.neg(),oe&&Y.negative!==0&&Y.isub(W)),{div:ee.div,mod:Y}):W.length>this.length||this.cmp(W)<0?{div:new _(0),mod:this}:W.length===1?K==="div"?{div:this.divn(W.words[0]),mod:null}:K==="mod"?{div:null,mod:new _(this.modn(W.words[0]))}:{div:this.divn(W.words[0]),mod:new _(this.modn(W.words[0]))}:this._wordDiv(W,K);var q,Y,ee},_.prototype.div=function(W){return this.divmod(W,"div",!1).div},_.prototype.mod=function(W){return this.divmod(W,"mod",!1).mod},_.prototype.umod=function(W){return this.divmod(W,"mod",!0).mod},_.prototype.divRound=function(W){var K=this.divmod(W);if(K.mod.isZero())return K.div;var oe=K.div.negative!==0?K.mod.isub(W):K.mod,q=W.ushrn(1),Y=W.andln(1),ee=oe.cmp(q);return ee<0||Y===1&&ee===0?K.div:K.div.negative!==0?K.div.isubn(1):K.div.iaddn(1)},_.prototype.modn=function(W){m(W<=67108863);for(var K=67108864%W,oe=0,q=this.length-1;q>=0;q--)oe=(K*oe+(0|this.words[q]))%W;return oe},_.prototype.idivn=function(W){m(W<=67108863);for(var K=0,oe=this.length-1;oe>=0;oe--){var q=(0|this.words[oe])+67108864*K;this.words[oe]=q/W|0,K=q%W}return this.strip()},_.prototype.divn=function(W){return this.clone().idivn(W)},_.prototype.egcd=function(W){m(W.negative===0),m(!W.isZero());var K=this,oe=W.clone();K=K.negative!==0?K.umod(W):K.clone();for(var q=new _(1),Y=new _(0),ee=new _(0),me=new _(1),he=0;K.isEven()&&oe.isEven();)K.iushrn(1),oe.iushrn(1),++he;for(var se=oe.clone(),ae=K.clone();!K.isZero();){for(var ce=0,de=1;!(K.words[0]&de)&&ce<26;++ce,de<<=1);if(ce>0)for(K.iushrn(ce);ce-- >0;)(q.isOdd()||Y.isOdd())&&(q.iadd(se),Y.isub(ae)),q.iushrn(1),Y.iushrn(1);for(var ve=0,ye=1;!(oe.words[0]&ye)&&ve<26;++ve,ye<<=1);if(ve>0)for(oe.iushrn(ve);ve-- >0;)(ee.isOdd()||me.isOdd())&&(ee.iadd(se),me.isub(ae)),ee.iushrn(1),me.iushrn(1);K.cmp(oe)>=0?(K.isub(oe),q.isub(ee),Y.isub(me)):(oe.isub(K),ee.isub(q),me.isub(Y))}return{a:ee,b:me,gcd:oe.iushln(he)}},_.prototype._invmp=function(W){m(W.negative===0),m(!W.isZero());var K=this,oe=W.clone();K=K.negative!==0?K.umod(W):K.clone();for(var q,Y=new _(1),ee=new _(0),me=oe.clone();K.cmpn(1)>0&&oe.cmpn(1)>0;){for(var he=0,se=1;!(K.words[0]&se)&&he<26;++he,se<<=1);if(he>0)for(K.iushrn(he);he-- >0;)Y.isOdd()&&Y.iadd(me),Y.iushrn(1);for(var ae=0,ce=1;!(oe.words[0]&ce)&&ae<26;++ae,ce<<=1);if(ae>0)for(oe.iushrn(ae);ae-- >0;)ee.isOdd()&&ee.iadd(me),ee.iushrn(1);K.cmp(oe)>=0?(K.isub(oe),Y.isub(ee)):(oe.isub(K),ee.isub(Y))}return(q=K.cmpn(1)===0?Y:ee).cmpn(0)<0&&q.iadd(W),q},_.prototype.gcd=function(W){if(this.isZero())return W.abs();if(W.isZero())return this.abs();var K=this.clone(),oe=W.clone();K.negative=0,oe.negative=0;for(var q=0;K.isEven()&&oe.isEven();q++)K.iushrn(1),oe.iushrn(1);for(;;){for(;K.isEven();)K.iushrn(1);for(;oe.isEven();)oe.iushrn(1);var Y=K.cmp(oe);if(Y<0){var ee=K;K=oe,oe=ee}else if(Y===0||oe.cmpn(1)===0)break;K.isub(oe)}return oe.iushln(q)},_.prototype.invm=function(W){return this.egcd(W).a.umod(W)},_.prototype.isEven=function(){return(1&this.words[0])==0},_.prototype.isOdd=function(){return(1&this.words[0])==1},_.prototype.andln=function(W){return this.words[0]&W},_.prototype.bincn=function(W){m(typeof W=="number");var K=W%26,oe=(W-K)/26,q=1<>>26,me&=67108863,this.words[ee]=me}return Y!==0&&(this.words[ee]=Y,this.length++),this},_.prototype.isZero=function(){return this.length===1&&this.words[0]===0},_.prototype.cmpn=function(W){var K,oe=W<0;if(this.negative!==0&&!oe)return-1;if(this.negative===0&&oe)return 1;if(this.strip(),this.length>1)K=1;else{oe&&(W=-W),m(W<=67108863,"Number is too big");var q=0|this.words[0];K=q===W?0:qW.length)return 1;if(this.length=0;oe--){var q=0|this.words[oe],Y=0|W.words[oe];if(q!==Y){qY&&(K=1);break}}return K},_.prototype.gtn=function(W){return this.cmpn(W)===1},_.prototype.gt=function(W){return this.cmp(W)===1},_.prototype.gten=function(W){return this.cmpn(W)>=0},_.prototype.gte=function(W){return this.cmp(W)>=0},_.prototype.ltn=function(W){return this.cmpn(W)===-1},_.prototype.lt=function(W){return this.cmp(W)===-1},_.prototype.lten=function(W){return this.cmpn(W)<=0},_.prototype.lte=function(W){return this.cmp(W)<=0},_.prototype.eqn=function(W){return this.cmpn(W)===0},_.prototype.eq=function(W){return this.cmp(W)===0},_.red=function(W){return new X(W)},_.prototype.toRed=function(W){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),W.convertTo(this)._forceRed(W)},_.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},_.prototype._forceRed=function(W){return this.red=W,this},_.prototype.forceRed=function(W){return m(!this.red,"Already a number in reduction context"),this._forceRed(W)},_.prototype.redAdd=function(W){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,W)},_.prototype.redIAdd=function(W){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,W)},_.prototype.redSub=function(W){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,W)},_.prototype.redISub=function(W){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,W)},_.prototype.redShl=function(W){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,W)},_.prototype.redMul=function(W){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,W),this.red.mul(this,W)},_.prototype.redIMul=function(W){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,W),this.red.imul(this,W)},_.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},_.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},_.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},_.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},_.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},_.prototype.redPow=function(W){return m(this.red&&!W.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,W)};var I={k256:null,p224:null,p192:null,p25519:null};function z(W,K){this.name=W,this.p=new _(K,16),this.n=this.p.bitLength(),this.k=new _(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function $(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Q(){z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function j(){z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function U(){z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function X(W){if(typeof W=="string"){var K=_._prime(W);this.m=K.p,this.prime=K}else m(W.gtn(1),"modulus must be greater than 1"),this.m=W,this.prime=null}function te(W){X.call(this,W),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new _(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}z.prototype._tmp=function(){var W=new _(null);return W.words=new Array(Math.ceil(this.n/13)),W},z.prototype.ireduce=function(W){var K,oe=W;do this.split(oe,this.tmp),K=(oe=(oe=this.imulK(oe)).iadd(this.tmp)).bitLength();while(K>this.n);var q=K0?oe.isub(this.p):oe.strip!==void 0?oe.strip():oe._strip(),oe},z.prototype.split=function(W,K){W.iushrn(this.n,0,K)},z.prototype.imulK=function(W){return W.imul(this.k)},v($,z),$.prototype.split=function(W,K){for(var oe=4194303,q=Math.min(W.length,9),Y=0;Y>>22,ee=me}ee>>>=22,W.words[Y-10]=ee,ee===0&&W.length>10?W.length-=10:W.length-=9},$.prototype.imulK=function(W){W.words[W.length]=0,W.words[W.length+1]=0,W.length+=2;for(var K=0,oe=0;oe>>=26,W.words[oe]=Y,K=q}return K!==0&&(W.words[W.length++]=K),W},_._prime=function(W){if(I[W])return I[W];var K;if(W==="k256")K=new $;else if(W==="p224")K=new Q;else if(W==="p192")K=new j;else{if(W!=="p25519")throw new Error("Unknown prime "+W);K=new U}return I[W]=K,K},X.prototype._verify1=function(W){m(W.negative===0,"red works only with positives"),m(W.red,"red works only with red numbers")},X.prototype._verify2=function(W,K){m((W.negative|K.negative)==0,"red works only with positives"),m(W.red&&W.red===K.red,"red works only with red numbers")},X.prototype.imod=function(W){return this.prime?this.prime.ireduce(W)._forceRed(this):W.umod(this.m)._forceRed(this)},X.prototype.neg=function(W){return W.isZero()?W.clone():this.m.sub(W)._forceRed(this)},X.prototype.add=function(W,K){this._verify2(W,K);var oe=W.add(K);return oe.cmp(this.m)>=0&&oe.isub(this.m),oe._forceRed(this)},X.prototype.iadd=function(W,K){this._verify2(W,K);var oe=W.iadd(K);return oe.cmp(this.m)>=0&&oe.isub(this.m),oe},X.prototype.sub=function(W,K){this._verify2(W,K);var oe=W.sub(K);return oe.cmpn(0)<0&&oe.iadd(this.m),oe._forceRed(this)},X.prototype.isub=function(W,K){this._verify2(W,K);var oe=W.isub(K);return oe.cmpn(0)<0&&oe.iadd(this.m),oe},X.prototype.shl=function(W,K){return this._verify1(W),this.imod(W.ushln(K))},X.prototype.imul=function(W,K){return this._verify2(W,K),this.imod(W.imul(K))},X.prototype.mul=function(W,K){return this._verify2(W,K),this.imod(W.mul(K))},X.prototype.isqr=function(W){return this.imul(W,W.clone())},X.prototype.sqr=function(W){return this.mul(W,W)},X.prototype.sqrt=function(W){if(W.isZero())return W.clone();var K=this.m.andln(3);if(m(K%2==1),K===3){var oe=this.m.add(new _(1)).iushrn(2);return this.pow(W,oe)}for(var q=this.m.subn(1),Y=0;!q.isZero()&&q.andln(1)===0;)Y++,q.iushrn(1);m(!q.isZero());var ee=new _(1).toRed(this),me=ee.redNeg(),he=this.m.subn(1).iushrn(1),se=this.m.bitLength();for(se=new _(2*se*se).toRed(this);this.pow(se,he).cmp(me)!==0;)se.redIAdd(me);for(var ae=this.pow(se,q),ce=this.pow(W,q.addn(1).iushrn(1)),de=this.pow(W,q),ve=Y;de.cmp(ee)!==0;){for(var ye=de,_e=0;ye.cmp(ee)!==0;_e++)ye=ye.redSqr();m(_e=0;q--){for(var se=K.words[q],ae=he-1;ae>=0;ae--){var ce=se>>ae&1;Y!==oe[0]&&(Y=this.sqr(Y)),ce!==0||ee!==0?(ee<<=1,ee|=ce,(++me==4||q===0&&ae===0)&&(Y=this.mul(Y,oe[ee]),me=0,ee=0)):me=0}he=26}return Y},X.prototype.convertTo=function(W){var K=W.umod(this.m);return K===W?K.clone():K},X.prototype.convertFrom=function(W){var K=W.clone();return K.red=null,K},_.mont=function(W){return new te(W)},v(te,X),te.prototype.convertTo=function(W){return this.imod(W.ushln(this.shift))},te.prototype.convertFrom=function(W){var K=this.imod(W.mul(this.rinv));return K.red=null,K},te.prototype.imul=function(W,K){if(W.isZero()||K.isZero())return W.words[0]=0,W.length=1,W;var oe=W.imul(K),q=oe.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=oe.isub(q).iushrn(this.shift),ee=Y;return Y.cmp(this.m)>=0?ee=Y.isub(this.m):Y.cmpn(0)<0&&(ee=Y.iadd(this.m)),ee._forceRed(this)},te.prototype.mul=function(W,K){if(W.isZero()||K.isZero())return new _(0)._forceRed(this);var oe=W.mul(K),q=oe.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=oe.isub(q).iushrn(this.shift),ee=Y;return Y.cmp(this.m)>=0?ee=Y.isub(this.m):Y.cmpn(0)<0&&(ee=Y.iadd(this.m)),ee._forceRed(this)},te.prototype.invm=function(W){return this.imod(W._invmp(this.m).mul(this.r2))._forceRed(this)}})(y=a.nmd(y),this)},2692:function(y){y.exports=function(p){var a,u,h,m=p.length,v=0;for(a=0;a>>1;if(!(D<=0)){var k,I=h.mallocDouble(2*D*C),z=h.mallocInt32(C);if((C=S(R,D,I,z))>0){if(D===1&&E)m.init(C),k=m.sweepComplete(D,T,0,C,I,z,0,C,I,z);else{var $=h.mallocDouble(2*D*L),Q=h.mallocInt32(L);(L=S(M,D,$,Q))>0&&(m.init(C+L),k=D===1?m.sweepBipartite(D,T,0,C,I,z,0,L,$,Q):v(D,T,E,C,I,z,L,$,Q),h.free($),h.free(Q))}h.free(I),h.free(z)}return k}}}function x(R,M){u.push([R,M])}},7333:function(y,p){function a(u){return u?function(h,m,v,_,S,A,x,R,M,T,E){return S-_>M-R?function(C,L,D,k,I,z,$,Q,j,U,X){for(var te=2*C,W=k,K=te*k;WT-M?_?function(L,D,k,I,z,$,Q,j,U,X,te){for(var W=2*L,K=I,oe=W*I;K0;){var ve=(ce-=1)*z,ye=Q[ve],_e=Q[ve+1],Se=Q[ve+2],Te=Q[ve+3],Pe=Q[ve+4],Ie=Q[ve+5],ze=ce*$,De=j[ze],He=j[ze+1],Ve=1&Ie,$e=!!(16&Ie),Oe=Y,ke=ee,Le=he,We=se;if(Ve&&(Oe=he,ke=se,Le=Y,We=ee),!(2&Ie&&_e>=(Se=L(W,ye,_e,Se,Oe,ke,He))||4&Ie&&(_e=D(W,ye,_e,Se,Oe,ke,De))>=Se)){var Ue=Se-_e,Ze=Pe-Te;if($e){if(W*Ue*(Ue+Ze)=p0)&&!(p1>=hi)"),C=x("lo===p0"),L=x("lo>>1,C=2*v,L=E,D=x[C*E+_];M=Q?(L=$,D=Q):z>=U?(L=I,D=z):(L=j,D=U):Q>=U?(L=$,D=Q):U>=z?(L=I,D=z):(L=j,D=U);for(var X=C*(T-1),te=C*L,W=0;WS&&x[D+_]>C;--L,D-=M){for(var k=D,I=D+M,z=0;zE;++E,x+=A)if(v[x+T]===S)if(M===E)M+=1,R+=A;else{for(var C=0;A>C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"loE;++E,x+=A)if(v[x+T]C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"lo<=p0":function(a,u,h,m,v,_,S){for(var A=2*a,x=A*h,R=x,M=h,T=a+u,E=h;m>E;++E,x+=A)if(v[x+T]<=S)if(M===E)M+=1,R+=A;else{for(var C=0;A>C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"hi<=p0":function(a,u,h,m,v,_,S){for(var A=2*a,x=A*h,R=x,M=h,T=a+u,E=h;m>E;++E,x+=A)if(v[x+T]<=S)if(M===E)M+=1,R+=A;else{for(var C=0;A>C;++C){var L=v[x+C];v[x+C]=v[R],v[R++]=L}var D=_[E];_[E]=_[M],_[M++]=D}return M},"loC;++C,x+=A){var L=v[x+T],D=v[x+E];if(Lk;++k){var I=v[x+k];v[x+k]=v[R],v[R++]=I}var z=_[C];_[C]=_[M],_[M++]=z}}return M},"lo<=p0&&p0<=hi":function(a,u,h,m,v,_,S){for(var A=2*a,x=A*h,R=x,M=h,T=u,E=a+u,C=h;m>C;++C,x+=A){var L=v[x+T],D=v[x+E];if(L<=S&&S<=D)if(M===C)M+=1,R+=A;else{for(var k=0;A>k;++k){var I=v[x+k];v[x+k]=v[R],v[R++]=I}var z=_[C];_[C]=_[M],_[M++]=z}}return M},"!(lo>=p0)&&!(p1>=hi)":function(a,u,h,m,v,_,S,A){for(var x=2*a,R=x*h,M=R,T=h,E=u,C=a+u,L=h;m>L;++L,R+=x){var D=v[R+E],k=v[R+C];if(!(D>=S||A>=k))if(T===L)T+=1,M+=x;else{for(var I=0;x>I;++I){var z=v[R+I];v[R+I]=v[M],v[M++]=z}var $=_[L];_[L]=_[T],_[T++]=$}}return T}}},309:function(y){y.exports=function(x,R){R<=4*p?a(0,R-1,x):A(0,R-1,x)};var p=32;function a(x,R,M){for(var T=2*(x+1),E=x+1;E<=R;++E){for(var C=M[T++],L=M[T++],D=E,k=T-2;D-- >x;){var I=M[k-2],z=M[k-1];if(IM[R+1])}function S(x,R,M,T){var E=T[x*=2];return E>1,D=L-T,k=L+T,I=E,z=D,$=L,Q=k,j=C,U=x+1,X=R-1,te=0;_(I,z,M)&&(te=I,I=z,z=te),_(Q,j,M)&&(te=Q,Q=j,j=te),_(I,$,M)&&(te=I,I=$,$=te),_(z,$,M)&&(te=z,z=$,$=te),_(I,Q,M)&&(te=I,I=Q,Q=te),_($,Q,M)&&(te=$,$=Q,Q=te),_(z,j,M)&&(te=z,z=j,j=te),_(z,$,M)&&(te=z,z=$,$=te),_(Q,j,M)&&(te=Q,Q=j,j=te);for(var W=M[2*z],K=M[2*z+1],oe=M[2*Q],q=M[2*Q+1],Y=2*I,ee=2*$,me=2*j,he=2*E,se=2*L,ae=2*C,ce=0;ce<2;++ce){var de=M[Y+ce],ve=M[ee+ce],ye=M[me+ce];M[he+ce]=de,M[se+ce]=ve,M[ae+ce]=ye}h(D,x,M),h(k,R,M);for(var _e=U;_e<=X;++_e)if(S(_e,W,K,M))_e!==U&&u(_e,U,M),++U;else if(!S(_e,oe,q,M))for(;;){if(S(X,oe,q,M)){S(X,W,K,M)?(m(_e,U,X,M),++U,--X):(u(_e,X,M),--X);break}if(--X<_e)break}v(x,U-1,W,K,M),v(R,X+1,oe,q,M),U-2-x<=p?a(x,U-2,M):A(x,U-2,M),R-(X+2)<=p?a(X+2,R,M):A(X+2,R,M),X-U<=p?a(U,X,M):A(U,X,M)}},1390:function(y,p,a){y.exports={init:function(D){var k=h.nextPow2(D);S.length>>1;m(E,se);var ae=0,ce=0;for(Y=0;Y=v)C(x,R,ce--,de=de-v|0);else if(de>=0)C(S,A,ae--,de);else if(de<=-v){de=-de-v|0;for(var ve=0;ve>>1;m(E,se);var ae=0,ce=0,de=0;for(Y=0;Y>1==E[2*Y+3]>>1&&(ye=2,Y+=1),ve<0){for(var _e=-(ve>>1)-1,Se=0;Se>1)-1,ye===0?C(S,A,ae--,_e):ye===1?C(x,R,ce--,_e):ye===2&&C(M,T,de--,_e)}},scanBipartite:function(D,k,I,z,$,Q,j,U,X,te,W,K){var oe=0,q=2*D,Y=k,ee=k+D,me=1,he=1;z?he=v:me=v;for(var se=$;se>>1;m(E,ve);var ye=0;for(se=0;se=v?(Se=!z,ae-=v):(Se=!!z,ae-=1),Se)L(S,A,ye++,ae);else{var Te=K[ae],Pe=q*ae,Ie=W[Pe+k+1],ze=W[Pe+k+1+D];e:for(var De=0;De>>1;m(E,ae);var ce=0;for(ee=0;ee=v)S[ce++]=me-v;else{var ve=W[me-=1],ye=oe*me,_e=te[ye+k+1],Se=te[ye+k+1+D];e:for(var Te=0;Te=0;--Te)if(S[Te]===me){for(De=Te+1;De0;){for(var L=_.pop(),D=(T=-1,E=-1,R=A[x=_.pop()],1);D=0||(v.flip(x,L),h(m,v,_,T,x,E),h(m,v,_,x,E,T),h(m,v,_,E,L,T),h(m,v,_,L,T,E))}}},7098:function(y,p,a){var u,h=a(5070);function m(_,S,A,x,R,M,T){this.cells=_,this.neighbor=S,this.flags=x,this.constraint=A,this.active=R,this.next=M,this.boundary=T}function v(_,S){return _[0]-S[0]||_[1]-S[1]||_[2]-S[2]}y.exports=function(_,S,A){var x=function(j,U){for(var X=j.cells(),te=X.length,W=0;W0||T.length>0;){for(;M.length>0;){var k=M.pop();if(E[k]!==-R){E[k]=R,C[k];for(var I=0;I<3;++I){var z=D[3*k+I];z>=0&&E[z]===0&&(L[3*k+I]?T.push(z):(M.push(z),E[z]=R))}}}var $=T;T=M,M=$,T.length=0,R=-R}var Q=function(j,U,X){for(var te=0,W=0;W1&&h(C[Q[j-2]],C[Q[j-1]],L)>0;)T.push([Q[j-1],Q[j-2],D]),j-=1;Q.length=j,Q.push(D);var U=$.upperIds;for(j=U.length;j>1&&h(C[U[j-2]],C[U[j-1]],L)<0;)T.push([U[j-2],U[j-1],D]),j-=1;U.length=j,U.push(D)}}function x(T,E){var C;return(C=T.a[0]$[0]&&D.push(new v($,z,2,k),new v(z,$,1,k))}D.sort(_);for(var Q=D[0].a[0]-(1+Math.abs(D[0].a[0]))*Math.pow(2,-52),j=[new m([Q,1],[Q,0],-1,[],[])],U=[],X=(k=0,D.length);k=0}}(),m.removeTriangle=function(_,S,A){var x=this.stars;v(x[_],S,A),v(x[S],A,_),v(x[A],_,S)},m.addTriangle=function(_,S,A){var x=this.stars;x[_].push(S,A),x[S].push(A,_),x[A].push(_,S)},m.opposite=function(_,S){for(var A=this.stars[S],x=1,R=A.length;xz[2]?1:0)}function D(I,z,$){if(I.length!==0){if(z)for(var Q=0;Q=0;--ee){var _e=K[me=(Ve=q[ee])[0]],Se=_e[0],Te=_e[1],Pe=W[Se],Ie=W[Te];if((Pe[0]-Ie[0]||Pe[1]-Ie[1])<0){var ze=Se;Se=Te,Te=ze}_e[0]=Se;var De,He=_e[1]=Ve[1];for(Y&&(De=_e[2]);ee>0&&q[ee-1][0]===me;){var Ve,$e=(Ve=q[--ee])[1];Y?K.push([He,$e,De]):K.push([He,$e]),He=$e}Y?K.push([He,Te,De]):K.push([He,Te])}return he}(I,z,j,U,$),te=E(I,X);return D(z,te,$),!!te||j.length>0||U.length>0}},5528:function(y,p,a){y.exports=function(R,M,T,E){var C=_(M,R),L=_(E,T),D=x(C,L);if(v(D)===0)return null;var k=x(L,_(R,T)),I=h(k,D),z=A(C,I);return S(R,z)};var u=a(3962),h=a(9189),m=a(4354),v=a(4951),_=a(6695),S=a(7584),A=a(4469);function x(R,M){return m(u(R[0],M[1]),u(R[1],M[0]))}},5692:function(y){y.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],"rainbow-soft":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],"freesurface-blue":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],"freesurface-red":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],"velocity-blue":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],"velocity-green":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},9156:function(y,p,a){var u=a(5692),h=a(3578);function m(S){return[S[0]/255,S[1]/255,S[2]/255,S[3]]}function v(S){for(var A,x="#",R=0;R<3;++R)x+=("00"+(A=(A=S[R]).toString(16))).substr(A.length);return x}function _(S){return"rgba("+S.join(",")+")"}y.exports=function(S){var A,x,R,M,T,E,C,L,D,k;if(S||(S={}),L=(S.nshades||72)-1,C=S.format||"hex",(E=S.colormap)||(E="jet"),typeof E=="string"){if(E=E.toLowerCase(),!u[E])throw Error(E+" not a supported colorscale");T=u[E]}else{if(!Array.isArray(E))throw Error("unsupported colormap option",E);T=E.slice()}if(T.length>L+1)throw new Error(E+" map requires nshades to be at least size "+T.length);D=Array.isArray(S.alpha)?S.alpha.length!==2?[1,1]:S.alpha.slice():typeof S.alpha=="number"?[S.alpha,S.alpha]:[1,1],A=T.map(function(j){return Math.round(j.index*L)}),D[0]=Math.min(Math.max(D[0],0),1),D[1]=Math.min(Math.max(D[1],0),1);var I=T.map(function(j,U){var X=T[U].index,te=T[U].rgb.slice();return te.length===4&&te[3]>=0&&te[3]<=1||(te[3]=D[0]+(D[1]-D[0])*X),te}),z=[];for(k=0;k0||S(A,x,M)?-1:1:E===0?C>0||S(A,x,R)?1:-1:h(C-E)}var D=u(A,x,R);return D>0?T>0&&u(A,x,M)>0?1:-1:D<0?T>0||u(A,x,M)>0?1:-1:u(A,x,M)>0||S(A,x,R)?1:-1};var u=a(417),h=a(7538),m=a(87),v=a(2019),_=a(9662);function S(A,x,R){var M=m(A[0],-x[0]),T=m(A[1],-x[1]),E=m(R[0],-x[0]),C=m(R[1],-x[1]),L=_(v(M,E),v(T,C));return L[L.length-1]>=0}},7538:function(y){y.exports=function(p){return p<0?-1:p>0?1:0}},9209:function(y){y.exports=function(u,h){var m=u.length,v=u.length-h.length;if(v)return v;switch(m){case 0:return 0;case 1:return u[0]-h[0];case 2:return u[0]+u[1]-h[0]-h[1]||p(u[0],u[1])-p(h[0],h[1]);case 3:var _=u[0]+u[1],S=h[0]+h[1];if(v=_+u[2]-(S+h[2]))return v;var A=p(u[0],u[1]),x=p(h[0],h[1]);return p(A,u[2])-p(x,h[2])||p(A+u[2],_)-p(x+h[2],S);case 4:var R=u[0],M=u[1],T=u[2],E=u[3],C=h[0],L=h[1],D=h[2],k=h[3];return R+M+T+E-(C+L+D+k)||p(R,M,T,E)-p(C,L,D,k,C)||p(R+M,R+T,R+E,M+T,M+E,T+E)-p(C+L,C+D,C+k,L+D,L+k,D+k)||p(R+M+T,R+M+E,R+T+E,M+T+E)-p(C+L+D,C+L+k,C+D+k,L+D+k);default:for(var I=u.slice().sort(a),z=h.slice().sort(a),$=0;$p[u][0]&&(u=h);return au?[[u],[a]]:[[a]]}},8722:function(y,p,a){y.exports=function(h){var m=u(h),v=m.length;if(v<=2)return[];for(var _=new Array(v),S=m[v-1],A=0;A=R[k]&&(D+=1);C[L]=D}}return x}(u(S,!0),_)}};var u=a(2183),h=a(2153)},9680:function(y){y.exports=function(p,a,u,h,m,v){var _=m-1,S=m*m,A=_*_,x=(1+2*m)*A,R=m*A,M=S*(3-2*m),T=S*_;if(p.length){v||(v=new Array(p.length));for(var E=p.length-1;E>=0;--E)v[E]=x*p[E]+R*a[E]+M*u[E]+T*h[E];return v}return x*p+R*a+M*u+T*h},y.exports.derivative=function(p,a,u,h,m,v){var _=6*m*m-6*m,S=3*m*m-4*m+1,A=-6*m*m+6*m,x=3*m*m-2*m;if(p.length){v||(v=new Array(p.length));for(var R=p.length-1;R>=0;--R)v[R]=_*p[R]+S*a[R]+A*u[R]+x*h[R];return v}return _*p+S*a+A*u[R]+x*h}},4419:function(y,p,a){var u=a(2183),h=a(1215);function m(_,S){this.point=_,this.index=S}function v(_,S){for(var A=_.point,x=S.point,R=A.length,M=0;M=2)return!1;X[W]=K}return!0}):U.filter(function(X){for(var te=0;te<=x;++te){var W=z[X[te]];if(W<0)return!1;X[te]=W}return!0}),1&x)for(T=0;T>>31},y.exports.exponent=function(m){return(y.exports.hi(m)<<1>>>21)-1023},y.exports.fraction=function(m){var v=y.exports.lo(m),_=y.exports.hi(m),S=1048575&_;return 2146435072&_&&(S+=1048576),[v,S]},y.exports.denormalized=function(m){return!(2146435072&y.exports.hi(m))}},3094:function(y){function p(a,u,h){var m=0|a[h];if(m<=0)return[];var v,_=new Array(m);if(h===a.length-1)for(v=0;v0)return function(h,m){var v,_;for(v=new Array(h),_=0;_=R-1){k=E.length-1;var z=A-x[R-1];for(I=0;I=R-1)for(var D=E.length-1,k=(x[R-1],0);k=0;--R)if(A[--x])return!1;return!0},_.jump=function(A){var x=this.lastT(),R=this.dimension;if(!(A0;--I)M.push(m(L[I-1],D[I-1],arguments[I])),T.push(0)}},_.push=function(A){var x=this.lastT(),R=this.dimension;if(!(A1e-6?1/C:0;this._time.push(A);for(var z=R;z>0;--z){var $=m(D[z-1],k[z-1],arguments[z]);M.push($),T.push(($-M[E++])*I)}}},_.set=function(A){var x=this.dimension;if(!(A0;--L)R.push(m(E[L-1],C[L-1],arguments[L])),M.push(0)}},_.move=function(A){var x=this.lastT(),R=this.dimension;if(!(A<=x||arguments.length!==R+1)){var M=this._state,T=this._velocity,E=M.length-this.dimension,C=this.bounds,L=C[0],D=C[1],k=A-x,I=k>1e-6?1/k:0;this._time.push(A);for(var z=R;z>0;--z){var $=arguments[z];M.push(m(L[z-1],D[z-1],M[E++]+$)),T.push($*I)}}},_.idle=function(A){var x=this.lastT();if(!(A=0;--I)M.push(m(L[I],D[I],M[E]+k*T[E])),T.push(0),E+=1}}},7080:function(y){function p(E,C,L,D,k,I){this._color=E,this.key=C,this.value=L,this.left=D,this.right=k,this._count=I}function a(E){return new p(E._color,E.key,E.value,E.left,E.right,E._count)}function u(E,C){return new p(E,C.key,C.value,C.left,C.right,C._count)}function h(E){E._count=1+(E.left?E.left._count:0)+(E.right?E.right._count:0)}function m(E,C){this._compare=E,this.root=C}y.exports=function(E){return new m(E||T,null)};var v=m.prototype;function _(E,C){var L;return C.left&&(L=_(E,C.left))?L:(L=E(C.key,C.value))||(C.right?_(E,C.right):void 0)}function S(E,C,L,D){if(C(E,D.key)<=0){var k;if(D.left&&(k=S(E,C,L,D.left))||(k=L(D.key,D.value)))return k}if(D.right)return S(E,C,L,D.right)}function A(E,C,L,D,k){var I,z=L(E,k.key),$=L(C,k.key);if(z<=0&&(k.left&&(I=A(E,C,L,D,k.left))||$>0&&(I=D(k.key,k.value))))return I;if($>0&&k.right)return A(E,C,L,D,k.right)}function x(E,C){this.tree=E,this._stack=C}Object.defineProperty(v,"keys",{get:function(){var E=[];return this.forEach(function(C,L){E.push(C)}),E}}),Object.defineProperty(v,"values",{get:function(){var E=[];return this.forEach(function(C,L){E.push(L)}),E}}),Object.defineProperty(v,"length",{get:function(){return this.root?this.root._count:0}}),v.insert=function(E,C){for(var L=this._compare,D=this.root,k=[],I=[];D;){var z=L(E,D.key);k.push(D),I.push(z),D=z<=0?D.left:D.right}k.push(new p(0,E,C,null,null,1));for(var $=k.length-2;$>=0;--$)D=k[$],I[$]<=0?k[$]=new p(D._color,D.key,D.value,k[$+1],D.right,D._count+1):k[$]=new p(D._color,D.key,D.value,D.left,k[$+1],D._count+1);for($=k.length-1;$>1;--$){var Q=k[$-1];if(D=k[$],Q._color===1||D._color===1)break;var j=k[$-2];if(j.left===Q)if(Q.left===D){if(!(U=j.right)||U._color!==0){j._color=0,j.left=Q.right,Q._color=1,Q.right=j,k[$-2]=Q,k[$-1]=D,h(j),h(Q),$>=3&&((X=k[$-3]).left===j?X.left=Q:X.right=Q);break}Q._color=1,j.right=u(1,U),j._color=0,$-=1}else{if(!(U=j.right)||U._color!==0){Q.right=D.left,j._color=0,j.left=D.right,D._color=1,D.left=Q,D.right=j,k[$-2]=D,k[$-1]=Q,h(j),h(Q),h(D),$>=3&&((X=k[$-3]).left===j?X.left=D:X.right=D);break}Q._color=1,j.right=u(1,U),j._color=0,$-=1}else if(Q.right===D){if(!(U=j.left)||U._color!==0){j._color=0,j.right=Q.left,Q._color=1,Q.left=j,k[$-2]=Q,k[$-1]=D,h(j),h(Q),$>=3&&((X=k[$-3]).right===j?X.right=Q:X.left=Q);break}Q._color=1,j.left=u(1,U),j._color=0,$-=1}else{var U;if(!(U=j.left)||U._color!==0){var X;Q.left=D.right,j._color=0,j.right=D.left,D._color=1,D.right=Q,D.left=j,k[$-2]=D,k[$-1]=Q,h(j),h(Q),h(D),$>=3&&((X=k[$-3]).right===j?X.right=D:X.left=D);break}Q._color=1,j.left=u(1,U),j._color=0,$-=1}}return k[0]._color=1,new m(L,k[0])},v.forEach=function(E,C,L){if(this.root)switch(arguments.length){case 1:return _(E,this.root);case 2:return S(C,this._compare,E,this.root);case 3:return this._compare(C,L)>=0?void 0:A(C,L,this._compare,E,this.root)}},Object.defineProperty(v,"begin",{get:function(){for(var E=[],C=this.root;C;)E.push(C),C=C.left;return new x(this,E)}}),Object.defineProperty(v,"end",{get:function(){for(var E=[],C=this.root;C;)E.push(C),C=C.right;return new x(this,E)}}),v.at=function(E){if(E<0)return new x(this,[]);for(var C=this.root,L=[];;){if(L.push(C),C.left){if(E=C.right._count)break;C=C.right}return new x(this,[])},v.ge=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I<=0&&(k=D.length),L=I<=0?L.left:L.right}return D.length=k,new x(this,D)},v.gt=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I<0&&(k=D.length),L=I<0?L.left:L.right}return D.length=k,new x(this,D)},v.lt=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I>0&&(k=D.length),L=I<=0?L.left:L.right}return D.length=k,new x(this,D)},v.le=function(E){for(var C=this._compare,L=this.root,D=[],k=0;L;){var I=C(E,L.key);D.push(L),I>=0&&(k=D.length),L=I<0?L.left:L.right}return D.length=k,new x(this,D)},v.find=function(E){for(var C=this._compare,L=this.root,D=[];L;){var k=C(E,L.key);if(D.push(L),k===0)return new x(this,D);L=k<=0?L.left:L.right}return new x(this,[])},v.remove=function(E){var C=this.find(E);return C?C.remove():this},v.get=function(E){for(var C=this._compare,L=this.root;L;){var D=C(E,L.key);if(D===0)return L.value;L=D<=0?L.left:L.right}};var R=x.prototype;function M(E,C){E.key=C.key,E.value=C.value,E.left=C.left,E.right=C.right,E._color=C._color,E._count=C._count}function T(E,C){return EC?1:0}Object.defineProperty(R,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(R,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),R.clone=function(){return new x(this.tree,this._stack.slice())},R.remove=function(){var E=this._stack;if(E.length===0)return this.tree;var C=new Array(E.length),L=E[E.length-1];C[C.length-1]=new p(L._color,L.key,L.value,L.left,L.right,L._count);for(var D=E.length-2;D>=0;--D)(L=E[D]).left===E[D+1]?C[D]=new p(L._color,L.key,L.value,C[D+1],L.right,L._count):C[D]=new p(L._color,L.key,L.value,L.left,C[D+1],L._count);if((L=C[C.length-1]).left&&L.right){var k=C.length;for(L=L.left;L.right;)C.push(L),L=L.right;var I=C[k-1];for(C.push(new p(L._color,I.key,I.value,L.left,L.right,L._count)),C[k-1].key=L.key,C[k-1].value=L.value,D=C.length-2;D>=k;--D)L=C[D],C[D]=new p(L._color,L.key,L.value,L.left,C[D+1],L._count);C[k-1].left=C[k]}if((L=C[C.length-1])._color===0){var z=C[C.length-2];for(z.left===L?z.left=null:z.right===L&&(z.right=null),C.pop(),D=0;D=0;--W){if(j=Q[W],W===0)return void(j._color=1);if((U=Q[W-1]).left===j){if((X=U.right).right&&X.right._color===0)return te=(X=U.right=a(X)).right=a(X.right),U.right=X.left,X.left=U,X.right=te,X._color=U._color,j._color=1,U._color=1,te._color=1,h(U),h(X),W>1&&((K=Q[W-2]).left===U?K.left=X:K.right=X),void(Q[W-1]=X);if(X.left&&X.left._color===0)return te=(X=U.right=a(X)).left=a(X.left),U.right=te.left,X.left=te.right,te.left=U,te.right=X,te._color=U._color,U._color=1,X._color=1,j._color=1,h(U),h(X),h(te),W>1&&((K=Q[W-2]).left===U?K.left=te:K.right=te),void(Q[W-1]=te);if(X._color===1){if(U._color===0)return U._color=1,void(U.right=u(0,X));U.right=u(0,X);continue}X=a(X),U.right=X.left,X.left=U,X._color=U._color,U._color=0,h(U),h(X),W>1&&((K=Q[W-2]).left===U?K.left=X:K.right=X),Q[W-1]=X,Q[W]=U,W+11&&((K=Q[W-2]).right===U?K.right=X:K.left=X),void(Q[W-1]=X);if(X.right&&X.right._color===0)return te=(X=U.left=a(X)).right=a(X.right),U.left=te.right,X.right=te.left,te.right=U,te.left=X,te._color=U._color,U._color=1,X._color=1,j._color=1,h(U),h(X),h(te),W>1&&((K=Q[W-2]).right===U?K.right=te:K.left=te),void(Q[W-1]=te);if(X._color===1){if(U._color===0)return U._color=1,void(U.left=u(0,X));U.left=u(0,X);continue}var K;X=a(X),U.left=X.right,X.right=U,X._color=U._color,U._color=0,h(U),h(X),W>1&&((K=Q[W-2]).right===U?K.right=X:K.left=X),Q[W-1]=X,Q[W]=U,W+10)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(R,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(R,"index",{get:function(){var E=0,C=this._stack;if(C.length===0){var L=this.tree.root;return L?L._count:0}C[C.length-1].left&&(E=C[C.length-1].left._count);for(var D=C.length-2;D>=0;--D)C[D+1]===C[D].right&&(++E,C[D].left&&(E+=C[D].left._count));return E},enumerable:!0}),R.next=function(){var E=this._stack;if(E.length!==0){var C=E[E.length-1];if(C.right)for(C=C.right;C;)E.push(C),C=C.left;else for(E.pop();E.length>0&&E[E.length-1].right===C;)C=E[E.length-1],E.pop()}},Object.defineProperty(R,"hasNext",{get:function(){var E=this._stack;if(E.length===0)return!1;if(E[E.length-1].right)return!0;for(var C=E.length-1;C>0;--C)if(E[C-1].left===E[C])return!0;return!1}}),R.update=function(E){var C=this._stack;if(C.length===0)throw new Error("Can't update empty node!");var L=new Array(C.length),D=C[C.length-1];L[L.length-1]=new p(D._color,D.key,E,D.left,D.right,D._count);for(var k=C.length-2;k>=0;--k)(D=C[k]).left===C[k+1]?L[k]=new p(D._color,D.key,D.value,L[k+1],D.right,D._count):L[k]=new p(D._color,D.key,D.value,D.left,L[k+1],D._count);return new m(this.tree._compare,L[0])},R.prev=function(){var E=this._stack;if(E.length!==0){var C=E[E.length-1];if(C.left)for(C=C.left;C;)E.push(C),C=C.right;else for(E.pop();E.length>0&&E[E.length-1].left===C;)C=E[E.length-1],E.pop()}},Object.defineProperty(R,"hasPrev",{get:function(){var E=this._stack;if(E.length===0)return!1;if(E[E.length-1].left)return!0;for(var C=E.length-1;C>0;--C)if(E[C-1].right===E[C])return!0;return!1}})},7453:function(y,p,a){y.exports=function(z,$){var Q=new x(z);return Q.update($),Q};var u=a(9557),h=a(1681),m=a(1011),v=a(2864),_=a(8468),S=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function A(z,$){return z[0]=$[0],z[1]=$[1],z[2]=$[2],z}function x(z){this.gl=z,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=m(z)}var R=x.prototype;function M(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}R.update=function(z){function $(me,he,se){if(se in z){var ae,ce=z[se],de=this[se];(me?Array.isArray(ce)&&Array.isArray(ce[0]):Array.isArray(ce))?this[se]=ae=[he(ce[0]),he(ce[1]),he(ce[2])]:this[se]=ae=[he(ce),he(ce),he(ce)];for(var ve=0;ve<3;++ve)if(ae[ve]!==de[ve])return!0}return!1}z=z||{};var Q,j=$.bind(this,!1,Number),U=$.bind(this,!1,Boolean),X=$.bind(this,!1,String),te=$.bind(this,!0,function(me){if(Array.isArray(me)){if(me.length===3)return[+me[0],+me[1],+me[2],1];if(me.length===4)return[+me[0],+me[1],+me[2],+me[3]]}return[0,0,0,1]}),W=!1,K=!1;if("bounds"in z)for(var oe=z.bounds,q=0;q<2;++q)for(var Y=0;Y<3;++Y)oe[q][Y]!==this.bounds[q][Y]&&(K=!0),this.bounds[q][Y]=oe[q][Y];if("ticks"in z)for(Q=z.ticks,W=!0,this.autoTicks=!1,q=0;q<3;++q)this.tickSpacing[q]=0;else j("tickSpacing")&&(this.autoTicks=!0,K=!0);if(this._firstInit&&("ticks"in z||"tickSpacing"in z||(this.autoTicks=!0),K=!0,W=!0,this._firstInit=!1),K&&this.autoTicks&&(Q=_.create(this.bounds,this.tickSpacing),W=!0),W){for(q=0;q<3;++q)Q[q].sort(function(me,he){return me.x-he.x});_.equal(Q,this.ticks)?W=!1:this.ticks=Q}U("tickEnable"),X("tickFont")&&(W=!0),j("tickSize"),j("tickAngle"),j("tickPad"),te("tickColor");var ee=X("labels");X("labelFont")&&(ee=!0),U("labelEnable"),j("labelSize"),j("labelPad"),te("labelColor"),U("lineEnable"),U("lineMirror"),j("lineWidth"),te("lineColor"),U("lineTickEnable"),U("lineTickMirror"),j("lineTickLength"),j("lineTickWidth"),te("lineTickColor"),U("gridEnable"),j("gridWidth"),te("gridColor"),U("zeroEnable"),te("zeroLineColor"),j("zeroLineWidth"),U("backgroundEnable"),te("backgroundColor"),this._text?this._text&&(ee||W)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=u(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&W&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=h(this.gl,this.bounds,this.ticks))};var T=[new M,new M,new M];function E(z,$,Q,j,U){for(var X=z.primalOffset,te=z.primalMinor,W=z.mirrorOffset,K=z.mirrorMinor,oe=j[$],q=0;q<3;++q)if($!==q){var Y=X,ee=W,me=te,he=K;oe&1<0?(me[q]=-1,he[q]=0):(me[q]=0,he[q]=1)}}var C=[0,0,0],L={model:S,view:S,projection:S,_ortho:!1};R.isOpaque=function(){return!0},R.isTransparent=function(){return!1},R.drawTransparent=function(z){};var D=[0,0,0],k=[0,0,0],I=[0,0,0];R.draw=function(z){z=z||L;for(var $=this.gl,Q=z.model||S,j=z.view||S,U=z.projection||S,X=this.bounds,te=z._ortho||!1,W=v(Q,j,U,X,te),K=W.cubeEdges,oe=W.axis,q=j[12],Y=j[13],ee=j[14],me=j[15],he=(te?2:1)*this.pixelRatio*(U[3]*q+U[7]*Y+U[11]*ee+U[15]*me)/$.drawingBufferHeight,se=0;se<3;++se)this.lastCubeProps.cubeEdges[se]=K[se],this.lastCubeProps.axis[se]=oe[se];var ae=T;for(se=0;se<3;++se)E(T[se],se,this.bounds,K,oe);$=this.gl;var ce,de,ve,ye=C;for(se=0;se<3;++se)this.backgroundEnable[se]?ye[se]=oe[se]:ye[se]=0;for(this._background.draw(Q,j,U,X,ye,this.backgroundColor),this._lines.bind(Q,j,U,this),se=0;se<3;++se){var _e=[0,0,0];oe[se]>0?_e[se]=X[1][se]:_e[se]=X[0][se];for(var Se=0;Se<2;++Se){var Te=(se+1+Se)%3,Pe=(se+1+(1^Se))%3;this.gridEnable[Te]&&this._lines.drawGrid(Te,Pe,this.bounds,_e,this.gridColor[Te],this.gridWidth[Te]*this.pixelRatio)}for(Se=0;Se<2;++Se)Te=(se+1+Se)%3,Pe=(se+1+(1^Se))%3,this.zeroEnable[Pe]&&Math.min(X[0][Pe],X[1][Pe])<=0&&Math.max(X[0][Pe],X[1][Pe])>=0&&this._lines.drawZero(Te,Pe,this.bounds,_e,this.zeroLineColor[Pe],this.zeroLineWidth[Pe]*this.pixelRatio)}for(se=0;se<3;++se){this.lineEnable[se]&&this._lines.drawAxisLine(se,this.bounds,ae[se].primalOffset,this.lineColor[se],this.lineWidth[se]*this.pixelRatio),this.lineMirror[se]&&this._lines.drawAxisLine(se,this.bounds,ae[se].mirrorOffset,this.lineColor[se],this.lineWidth[se]*this.pixelRatio);var Ie=A(D,ae[se].primalMinor),ze=A(k,ae[se].mirrorMinor),De=this.lineTickLength;for(Se=0;Se<3;++Se){var He=he/Q[5*Se];Ie[Se]*=De[Se]*He,ze[Se]*=De[Se]*He}this.lineTickEnable[se]&&this._lines.drawAxisTicks(se,ae[se].primalOffset,Ie,this.lineTickColor[se],this.lineTickWidth[se]*this.pixelRatio),this.lineTickMirror[se]&&this._lines.drawAxisTicks(se,ae[se].mirrorOffset,ze,this.lineTickColor[se],this.lineTickWidth[se]*this.pixelRatio)}function Ve(Ue){(ve=[0,0,0])[Ue]=1}function $e(Ue,Ze,Xe){var tt=(Ue+1)%3,Ee=(Ue+2)%3,Ne=Ze[tt],je=Ze[Ee],nt=Xe[tt],ot=Xe[Ee];Ne>0&&ot>0||Ne>0&&ot<0||Ne<0&&ot>0||Ne<0&&ot<0?Ve(tt):(je>0&&nt>0||je>0&&nt<0||je<0&&nt>0||je<0&&nt<0)&&Ve(Ee)}for(this._lines.unbind(),this._text.bind(Q,j,U,this.pixelRatio),se=0;se<3;++se){var Oe=ae[se].primalMinor,ke=ae[se].mirrorMinor,Le=A(I,ae[se].primalOffset);for(Se=0;Se<3;++Se)this.lineTickEnable[se]&&(Le[Se]+=he*Oe[Se]*Math.max(this.lineTickLength[Se],0)/Q[5*Se]);var We=[0,0,0];if(We[se]=1,this.tickEnable[se]){for(this.tickAngle[se]===-3600?(this.tickAngle[se]=0,this.tickAlign[se]="auto"):this.tickAlign[se]=-1,de=1,(ce=[this.tickAlign[se],.5,de])[0]==="auto"?ce[0]=0:ce[0]=parseInt(""+ce[0]),ve=[0,0,0],$e(se,Oe,ke),Se=0;Se<3;++Se)Le[Se]+=he*Oe[Se]*this.tickPad[Se]/Q[5*Se];this._text.drawTicks(se,this.tickSize[se],this.tickAngle[se],Le,this.tickColor[se],We,ve,ce)}if(this.labelEnable[se]){for(de=0,ve=[0,0,0],this.labels[se].length>4&&(Ve(se),de=1),(ce=[this.labelAlign[se],.5,de])[0]==="auto"?ce[0]=0:ce[0]=parseInt(""+ce[0]),Se=0;Se<3;++Se)Le[Se]+=he*Oe[Se]*this.labelPad[Se]/Q[5*Se];Le[se]+=.5*(X[0][se]+X[1][se]),this._text.drawLabel(se,this.labelSize[se],this.labelAngle[se],Le,this.labelColor[se],[0,0,0],ve,ce)}}this._text.unbind()},R.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},1011:function(y,p,a){y.exports=function(S){for(var A=[],x=[],R=0,M=0;M<3;++M)for(var T=(M+1)%3,E=(M+2)%3,C=[0,0,0],L=[0,0,0],D=-1;D<=1;D+=2){x.push(R,R+2,R+1,R+1,R+2,R+3),C[M]=D,L[M]=D;for(var k=-1;k<=1;k+=2){C[T]=k;for(var I=-1;I<=1;I+=2)C[E]=I,A.push(C[0],C[1],C[2],L[0],L[1],L[2]),R+=1}var z=T;T=E,E=z}var $=u(S,new Float32Array(A)),Q=u(S,new Uint16Array(x),S.ELEMENT_ARRAY_BUFFER),j=h(S,[{buffer:$,type:S.FLOAT,size:3,offset:0,stride:24},{buffer:$,type:S.FLOAT,size:3,offset:12,stride:24}],Q),U=m(S);return U.attributes.position.location=0,U.attributes.normal.location=1,new v(S,$,j,U)};var u=a(5827),h=a(2944),m=a(1943).bg;function v(S,A,x,R){this.gl=S,this.buffer=A,this.vao=x,this.shader=R}var _=v.prototype;_.draw=function(S,A,x,R,M,T){for(var E=!1,C=0;C<3;++C)E=E||M[C];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:S,view:A,projection:x,bounds:R,enable:M,colors:T},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},_.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},2864:function(y,p,a){y.exports=function(k,I,z,$,Q){h(_,I,k),h(_,z,_);for(var j=0,U=0;U<2;++U){x[2]=$[U][2];for(var X=0;X<2;++X){x[1]=$[X][1];for(var te=0;te<2;++te)x[0]=$[te][0],M(S[j],x,_),j+=1}}var W=-1;for(U=0;U<8;++U){for(var K=S[U][3],oe=0;oe<3;++oe)A[U][oe]=S[U][oe]/K;Q&&(A[U][2]*=-1),K<0&&(W<0||A[U][2]me&&(W|=1<me&&(W|=1<A[U][1])&&(_e=U);var Se=-1;for(U=0;U<3;++U)(Pe=_e^1<A[Te][0]&&(Te=Pe))}var Ie=C;Ie[0]=Ie[1]=Ie[2]=0,Ie[u.log2(Se^_e)]=_e&Se,Ie[u.log2(_e^Te)]=_e&Te;var ze=7^Te;ze===W||ze===ye?(ze=7^Se,Ie[u.log2(Te^ze)]=ze&Te):Ie[u.log2(Se^ze)]=ze&Se;var De=L,He=W;for(q=0;q<3;++q)De[q]=He&1<M)return T-1}return T},_=function(R,M,T){return RT?T:R},S=function(R){var M=1/0;R.sort(function(L,D){return L-D});for(var T=R.length,E=1;EZe-1||ot>Xe-1||Ge>tt-1)return u.create();var ht,pt,wt,Dt,It,qt,en=ke[0][Ee],Gt=ke[0][nt],Ct=ke[1][Ne],_t=ke[1][ot],nn=ke[2][je],gn=(Le-en)/(Gt-en),bn=(We-Ct)/(_t-Ct),mn=(Ue-nn)/(ke[2][Ge]-nn);switch(isFinite(gn)||(gn=.5),isFinite(bn)||(bn=.5),isFinite(mn)||(mn=.5),$e.reversedX&&(Ee=Ze-1-Ee,nt=Ze-1-nt),$e.reversedY&&(Ne=Xe-1-Ne,ot=Xe-1-ot),$e.reversedZ&&(je=tt-1-je,Ge=tt-1-Ge),$e.filled){case 5:It=je,qt=Ge,wt=Ne*tt,Dt=ot*tt,ht=Ee*tt*Xe,pt=nt*tt*Xe;break;case 4:It=je,qt=Ge,ht=Ee*tt,pt=nt*tt,wt=Ne*tt*Ze,Dt=ot*tt*Ze;break;case 3:wt=Ne,Dt=ot,It=je*Xe,qt=Ge*Xe,ht=Ee*Xe*tt,pt=nt*Xe*tt;break;case 2:wt=Ne,Dt=ot,ht=Ee*Xe,pt=nt*Xe,It=je*Xe*Ze,qt=Ge*Xe*Ze;break;case 1:ht=Ee,pt=nt,It=je*Ze,qt=Ge*Ze,wt=Ne*Ze*tt,Dt=ot*Ze*tt;break;default:ht=Ee,pt=nt,wt=Ne*Ze,Dt=ot*Ze,It=je*Ze*Xe,qt=Ge*Ze*Xe}var vt=Oe[ht+wt+It],bt=Oe[ht+wt+qt],lt=Oe[ht+Dt+It],yt=Oe[ht+Dt+qt],zt=Oe[pt+wt+It],Rt=Oe[pt+wt+qt],it=Oe[pt+Dt+It],at=Oe[pt+Dt+qt],Lt=u.create(),xt=u.create(),Ht=u.create(),Xt=u.create();u.lerp(Lt,vt,zt,gn),u.lerp(xt,bt,Rt,gn),u.lerp(Ht,lt,it,gn),u.lerp(Xt,yt,at,gn);var Yt=u.create(),Qt=u.create();u.lerp(Yt,Lt,Ht,bn),u.lerp(Qt,xt,Xt,bn);var Pt=u.create();return u.lerp(Pt,Yt,Qt,mn),Pt}(De,R,k)},z=R.getDivergence||function(De,He){var Ve=u.create(),$e=1e-4;u.add(Ve,De,[$e,0,0]);var Oe=I(Ve);u.subtract(Oe,Oe,He),u.scale(Oe,Oe,1/$e),u.add(Ve,De,[0,$e,0]);var ke=I(Ve);u.subtract(ke,ke,He),u.scale(ke,ke,1/$e),u.add(Ve,De,[0,0,$e]);var Le=I(Ve);return u.subtract(Le,Le,He),u.scale(Le,Le,1/$e),u.add(Ve,Oe,ke),u.add(Ve,Ve,Le),Ve},$=[],Q=M[0][0],j=M[0][1],U=M[0][2],X=M[1][0],te=M[1][1],W=M[1][2],K=function(De){var He=De[0],Ve=De[1],$e=De[2];return!(HeX||Vete||$eW)},oe=10*u.distance(M[0],M[1])/E,q=oe*oe,Y=1,ee=0,me=T.length;me>1&&(Y=function(De){for(var He=[],Ve=[],$e=[],Oe={},ke={},Le={},We=De.length,Ue=0;Ueee&&(ee=Se),ye.push(Se),$.push({points:ae,velocities:ce,divergences:ye});for(var Te=0;Te<100*E&&ae.lengthq&&u.scale(Pe,Pe,oe/Math.sqrt(Ie)),u.add(Pe,Pe,se),de=I(Pe),u.squaredDistance(ve,Pe)-q>-1e-4*q&&(ae.push(Pe),ve=Pe,ce.push(de),_e=z(Pe,de),Se=u.length(_e),isFinite(Se)&&Se>ee&&(ee=Se),ye.push(Se)),se=Pe}}var ze=function(De,He,Ve,$e){for(var Oe=0,ke=0;ke0)for(Lt=0;Lt<8;Lt++){var xt=(Lt+1)%8;Ct.push(gn[Lt],bn[Lt],bn[xt],bn[xt],gn[xt],gn[Lt]),nn.push(yt,lt,lt,lt,yt,yt),mn.push(vt,bt,bt,bt,vt,vt);var Ht=Ct.length;_t.push([Ht-6,Ht-5,Ht-4],[Ht-3,Ht-2,Ht-1])}var Xt=gn;gn=bn,bn=Xt;var Yt=yt;yt=lt,lt=Yt;var Qt=vt;vt=bt,bt=Qt}return{positions:Ct,cells:_t,vectors:nn,vertexIntensity:mn}}(ht,Ve,$e,Oe)}),Ze=[],Xe=[],tt=[],Ee=[];for(ke=0;keM)return T-1}return T},_=function(R,M,T){return RT?T:R},S=function(R){var M=1/0;R.sort(function(L,D){return L-D});for(var T=R.length,E=1;EZe-1||ot>Xe-1||Ge>tt-1)return u.create();var ht,pt,wt,Dt,It,qt,en=ke[0][Ee],Gt=ke[0][nt],Ct=ke[1][Ne],_t=ke[1][ot],nn=ke[2][je],gn=(Le-en)/(Gt-en),bn=(We-Ct)/(_t-Ct),mn=(Ue-nn)/(ke[2][Ge]-nn);switch(isFinite(gn)||(gn=.5),isFinite(bn)||(bn=.5),isFinite(mn)||(mn=.5),$e.reversedX&&(Ee=Ze-1-Ee,nt=Ze-1-nt),$e.reversedY&&(Ne=Xe-1-Ne,ot=Xe-1-ot),$e.reversedZ&&(je=tt-1-je,Ge=tt-1-Ge),$e.filled){case 5:It=je,qt=Ge,wt=Ne*tt,Dt=ot*tt,ht=Ee*tt*Xe,pt=nt*tt*Xe;break;case 4:It=je,qt=Ge,ht=Ee*tt,pt=nt*tt,wt=Ne*tt*Ze,Dt=ot*tt*Ze;break;case 3:wt=Ne,Dt=ot,It=je*Xe,qt=Ge*Xe,ht=Ee*Xe*tt,pt=nt*Xe*tt;break;case 2:wt=Ne,Dt=ot,ht=Ee*Xe,pt=nt*Xe,It=je*Xe*Ze,qt=Ge*Xe*Ze;break;case 1:ht=Ee,pt=nt,It=je*Ze,qt=Ge*Ze,wt=Ne*Ze*tt,Dt=ot*Ze*tt;break;default:ht=Ee,pt=nt,wt=Ne*Ze,Dt=ot*Ze,It=je*Ze*Xe,qt=Ge*Ze*Xe}var vt=Oe[ht+wt+It],bt=Oe[ht+wt+qt],lt=Oe[ht+Dt+It],yt=Oe[ht+Dt+qt],zt=Oe[pt+wt+It],Rt=Oe[pt+wt+qt],it=Oe[pt+Dt+It],at=Oe[pt+Dt+qt],Lt=u.create(),xt=u.create(),Zt=u.create(),Xt=u.create();u.lerp(Lt,vt,zt,gn),u.lerp(xt,bt,Rt,gn),u.lerp(Zt,lt,it,gn),u.lerp(Xt,yt,at,gn);var Yt=u.create(),Qt=u.create();u.lerp(Yt,Lt,Zt,bn),u.lerp(Qt,xt,Xt,bn);var Pt=u.create();return u.lerp(Pt,Yt,Qt,mn),Pt}(De,R,k)},z=R.getDivergence||function(De,He){var Ve=u.create(),$e=1e-4;u.add(Ve,De,[$e,0,0]);var Oe=I(Ve);u.subtract(Oe,Oe,He),u.scale(Oe,Oe,1/$e),u.add(Ve,De,[0,$e,0]);var ke=I(Ve);u.subtract(ke,ke,He),u.scale(ke,ke,1/$e),u.add(Ve,De,[0,0,$e]);var Le=I(Ve);return u.subtract(Le,Le,He),u.scale(Le,Le,1/$e),u.add(Ve,Oe,ke),u.add(Ve,Ve,Le),Ve},$=[],Q=M[0][0],j=M[0][1],U=M[0][2],X=M[1][0],te=M[1][1],W=M[1][2],K=function(De){var He=De[0],Ve=De[1],$e=De[2];return!(HeX||Vete||$eW)},oe=10*u.distance(M[0],M[1])/E,q=oe*oe,Y=1,ee=0,me=T.length;me>1&&(Y=function(De){for(var He=[],Ve=[],$e=[],Oe={},ke={},Le={},We=De.length,Ue=0;Ueee&&(ee=Se),ye.push(Se),$.push({points:ae,velocities:ce,divergences:ye});for(var Te=0;Te<100*E&&ae.lengthq&&u.scale(Pe,Pe,oe/Math.sqrt(Ie)),u.add(Pe,Pe,se),de=I(Pe),u.squaredDistance(ve,Pe)-q>-1e-4*q&&(ae.push(Pe),ve=Pe,ce.push(de),_e=z(Pe,de),Se=u.length(_e),isFinite(Se)&&Se>ee&&(ee=Se),ye.push(Se)),se=Pe}}var ze=function(De,He,Ve,$e){for(var Oe=0,ke=0;ke0)for(Lt=0;Lt<8;Lt++){var xt=(Lt+1)%8;Ct.push(gn[Lt],bn[Lt],bn[xt],bn[xt],gn[xt],gn[Lt]),nn.push(yt,lt,lt,lt,yt,yt),mn.push(vt,bt,bt,bt,vt,vt);var Zt=Ct.length;_t.push([Zt-6,Zt-5,Zt-4],[Zt-3,Zt-2,Zt-1])}var Xt=gn;gn=bn,bn=Xt;var Yt=yt;yt=lt,lt=Yt;var Qt=vt;vt=bt,bt=Qt}return{positions:Ct,cells:_t,vectors:nn,vertexIntensity:mn}}(ht,Ve,$e,Oe)}),Ze=[],Xe=[],tt=[],Ee=[];for(ke=0;keHe&&$e>0){var Oe=(Ve[$e][0]-He)/(Ve[$e][0]-Ve[$e-1][0]);return Ve[$e][1]*(1-Oe)+Oe*Ve[$e-1][1]}}return 1}(ze/255,Se):Ie[3];return De<1&&(Te=!0),[Ie[0],Ie[1],Ie[2],255*De]})]);return A.divseq(Pe,255),this.hasAlphaScale=Te,Pe},oe.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},oe.isOpaque=function(){return!this.isTransparent()},oe.pickSlots=1,oe.setPickBase=function(_e){this.pickId=_e};var q=[0,0,0],Y={showSurface:!1,showContour:!1,projections:[j.slice(),j.slice(),j.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ee(_e,Se){var Te,Pe,Ie,ze=Se.axes&&Se.axes.lastCubeProps.axis||q,De=Se.showSurface,He=Se.showContour;for(Te=0;Te<3;++Te)for(De=De||Se.surfaceProject[Te],Pe=0;Pe<3;++Pe)He=He||Se.contourProject[Te][Pe];for(Te=0;Te<3;++Te){var Ve=Y.projections[Te];for(Pe=0;Pe<16;++Pe)Ve[Pe]=0;for(Pe=0;Pe<4;++Pe)Ve[5*Pe]=1;Ve[5*Te]=0,Ve[12+Te]=Se.axesBounds[+(ze[Te]>0)][Te],T(Ve,_e.model,Ve);var $e=Y.clipBounds[Te];for(Ie=0;Ie<2;++Ie)for(Pe=0;Pe<3;++Pe)$e[Ie][Pe]=_e.clipBounds[Ie][Pe];$e[0][Te]=-1e8,$e[1][Te]=1e8}return Y.showSurface=De,Y.showContour=He,Y}var me={model:j,view:j,projection:j,inverseModel:j.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},he=j.slice(),se=[1,0,0,0,1,0,0,0,1];function ae(_e,Se){_e=_e||{};var Te=this.gl;Te.disable(Te.CULL_FACE),this._colorMap.bind(0);var Pe=me;Pe.model=_e.model||j,Pe.view=_e.view||j,Pe.projection=_e.projection||j,Pe.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],Pe.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],Pe.objectOffset=this.objectOffset,Pe.contourColor=this.contourColor[0],Pe.inverseModel=E(Pe.inverseModel,Pe.model);for(var Ie=0;Ie<2;++Ie)for(var ze=Pe.clipBounds[Ie],De=0;De<3;++De)ze[De]=Math.min(Math.max(this.clipBounds[Ie][De],-1e8),1e8);Pe.kambient=this.ambientLight,Pe.kdiffuse=this.diffuseLight,Pe.kspecular=this.specularLight,Pe.roughness=this.roughness,Pe.fresnel=this.fresnel,Pe.opacity=this.opacity,Pe.height=0,Pe.permutation=se,Pe.vertexColor=this.vertexColor;var He=he;for(T(He,Pe.view,Pe.model),T(He,Pe.projection,He),E(He,He),Ie=0;Ie<3;++Ie)Pe.eyePosition[Ie]=He[12+Ie]/He[15];var Ve=He[15];for(Ie=0;Ie<3;++Ie)Ve+=this.lightPosition[Ie]*He[4*Ie+3];for(Ie=0;Ie<3;++Ie){var $e=He[12+Ie];for(De=0;De<3;++De)$e+=He[4*De+Ie]*this.lightPosition[De];Pe.lightPosition[Ie]=$e/Ve}var Oe=ee(Pe,this);if(Oe.showSurface){for(this._shader.bind(),this._shader.uniforms=Pe,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Te.TRIANGLES,this._vertexCount),Ie=0;Ie<3;++Ie)this.surfaceProject[Ie]&&this.vertexCount&&(this._shader.uniforms.model=Oe.projections[Ie],this._shader.uniforms.clipBounds=Oe.clipBounds[Ie],this._vao.draw(Te.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Oe.showContour){var ke=this._contourShader;Pe.kambient=1,Pe.kdiffuse=0,Pe.kspecular=0,Pe.opacity=1,ke.bind(),ke.uniforms=Pe;var Le=this._contourVAO;for(Le.bind(),Ie=0;Ie<3;++Ie)for(ke.uniforms.permutation=X[Ie],Te.lineWidth(this.contourWidth[Ie]*this.pixelRatio),De=0;De>4)/16)/255,Ie=Math.floor(Pe),ze=Pe-Ie,De=Se[1]*(_e.value[1]+(15&_e.value[2])/16)/255,He=Math.floor(De),Ve=De-He;Ie+=1,He+=1;var $e=Te.position;$e[0]=$e[1]=$e[2]=0;for(var Oe=0;Oe<2;++Oe)for(var ke=Oe?ze:1-ze,Le=0;Le<2;++Le)for(var We=Ie+Oe,Ue=He+Le,Ze=ke*(Le?Ve:1-Ve),Xe=0;Xe<3;++Xe)$e[Xe]+=this._field[Xe].get(We,Ue)*Ze;for(var tt=this._pickResult.level,Ee=0;Ee<3;++Ee)if(tt[Ee]=C.le(this.contourLevels[Ee],$e[Ee]),tt[Ee]<0)this.contourLevels[Ee].length>0&&(tt[Ee]=0);else if(tt[Ee]Math.abs(je-$e[Ee])&&(tt[Ee]+=1)}for(Te.index[0]=ze<.5?Ie:Ie+1,Te.index[1]=Ve<.5?He:He+1,Te.uv[0]=Pe/Se[0],Te.uv[1]=De/Se[1],Xe=0;Xe<3;++Xe)Te.dataCoordinate[Xe]=this._field[Xe].get(Te.index[0],Te.index[1]);return Te},oe.padField=function(_e,Se){var Te=Se.shape.slice(),Pe=_e.shape.slice();A.assign(_e.lo(1,1).hi(Te[0],Te[1]),Se),A.assign(_e.lo(1).hi(Te[0],1),Se.hi(Te[0],1)),A.assign(_e.lo(1,Pe[1]-1).hi(Te[0],1),Se.lo(0,Te[1]-1).hi(Te[0],1)),A.assign(_e.lo(0,1).hi(1,Te[1]),Se.hi(1)),A.assign(_e.lo(Pe[0]-1,1).hi(1,Te[1]),Se.lo(Te[0]-1)),_e.set(0,0,Se.get(0,0)),_e.set(0,Pe[1]-1,Se.get(0,Te[1]-1)),_e.set(Pe[0]-1,0,Se.get(Te[0]-1,0)),_e.set(Pe[0]-1,Pe[1]-1,Se.get(Te[0]-1,Te[1]-1))},oe.update=function(_e){_e=_e||{},this.objectOffset=_e.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in _e&&(this.contourWidth=de(_e.contourWidth,Number)),"showContour"in _e&&(this.showContour=de(_e.showContour,Boolean)),"showSurface"in _e&&(this.showSurface=!!_e.showSurface),"contourTint"in _e&&(this.contourTint=de(_e.contourTint,Boolean)),"contourColor"in _e&&(this.contourColor=ye(_e.contourColor)),"contourProject"in _e&&(this.contourProject=de(_e.contourProject,function(ir){return de(ir,Boolean)})),"surfaceProject"in _e&&(this.surfaceProject=_e.surfaceProject),"dynamicColor"in _e&&(this.dynamicColor=ye(_e.dynamicColor)),"dynamicTint"in _e&&(this.dynamicTint=de(_e.dynamicTint,Number)),"dynamicWidth"in _e&&(this.dynamicWidth=de(_e.dynamicWidth,Number)),"opacity"in _e&&(this.opacity=_e.opacity),"opacityscale"in _e&&(this.opacityscale=_e.opacityscale),"colorBounds"in _e&&(this.colorBounds=_e.colorBounds),"vertexColor"in _e&&(this.vertexColor=_e.vertexColor?1:0),"colormap"in _e&&this._colorMap.setPixels(this.genColormap(_e.colormap,this.opacityscale));var Se=_e.field||_e.coords&&_e.coords[2]||null,Te=!1;if(Se||(Se=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in _e||"coords"in _e){var Pe=(Se.shape[0]+2)*(Se.shape[1]+2);Pe>this._field[2].data.length&&(_.freeFloat(this._field[2].data),this._field[2].data=_.mallocFloat(u.nextPow2(Pe))),this._field[2]=R(this._field[2].data,[Se.shape[0]+2,Se.shape[1]+2]),this.padField(this._field[2],Se),this.shape=Se.shape.slice();for(var Ie=this.shape,ze=0;ze<2;++ze)this._field[2].size>this._field[ze].data.length&&(_.freeFloat(this._field[ze].data),this._field[ze].data=_.mallocFloat(this._field[2].size)),this._field[ze]=R(this._field[ze].data,[Ie[0]+2,Ie[1]+2]);if(_e.coords){var De=_e.coords;if(!Array.isArray(De)||De.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ze=0;ze<2;++ze){var He=De[ze];for(Le=0;Le<2;++Le)if(He.shape[Le]!==Ie[Le])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ze],He)}}else if(_e.ticks){var Ve=_e.ticks;if(!Array.isArray(Ve)||Ve.length!==2)throw new Error("gl-surface: invalid ticks");for(ze=0;ze<2;++ze){var $e=Ve[ze];if((Array.isArray($e)||$e.length)&&($e=R($e)),$e.shape[0]!==Ie[ze])throw new Error("gl-surface: invalid tick length");var Oe=R($e.data,Ie);Oe.stride[ze]=$e.stride[0],Oe.stride[1^ze]=0,this.padField(this._field[ze],Oe)}}else{for(ze=0;ze<2;++ze){var ke=[0,0];ke[ze]=1,this._field[ze]=R(this._field[ze].data,[Ie[0]+2,Ie[1]+2],ke,0)}this._field[0].set(0,0,0);for(var Le=0;Le0){for(var ar=0;ar<5;++ar)it.pop();_t-=1}continue e}it.push(Xt[0],Xt[1],Pt[0],Pt[1],Xt[2]),_t+=1}}Ht.push(_t)}this._contourOffsets[at]=xt,this._contourCounts[at]=Ht}var Fn=_.mallocFloat(it.length);for(ze=0;zeU||j[1]<0||j[1]>U)throw new Error("gl-texture2d: Invalid texture size");var X=E(j,$.stride.slice()),te=0;Q==="float32"?te=z.FLOAT:Q==="float64"?(te=z.FLOAT,X=!1,Q="float32"):Q==="uint8"?te=z.UNSIGNED_BYTE:(te=z.UNSIGNED_BYTE,X=!1,Q="uint8");var W,K,oe=0;if(j.length===2)oe=z.LUMINANCE,j=[j[0],j[1],1],$=u($.data,j,[$.stride[0],$.stride[1],1],$.offset);else{if(j.length!==3)throw new Error("gl-texture2d: Invalid shape for texture");if(j[2]===1)oe=z.ALPHA;else if(j[2]===2)oe=z.LUMINANCE_ALPHA;else if(j[2]===3)oe=z.RGB;else{if(j[2]!==4)throw new Error("gl-texture2d: Invalid shape for pixel coords");oe=z.RGBA}}te!==z.FLOAT||z.getExtension("OES_texture_float")||(te=z.UNSIGNED_BYTE,X=!1);var q=$.size;if(X)W=$.offset===0&&$.data.length===q?$.data:$.data.subarray($.offset,$.offset+q);else{var Y=[j[2],j[2]*j[0],1];K=m.malloc(q,Q);var ee=u(K,j,Y,0);Q!=="float32"&&Q!=="float64"||te!==z.UNSIGNED_BYTE?h.assign(ee,$):x(ee,$),W=K.subarray(0,q)}var me=C(z);return z.texImage2D(z.TEXTURE_2D,0,oe,j[0],j[1],0,oe,te,W),X||m.free(K),new M(z,me,j[0],j[1],oe,te)}(D,k)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")};var v=null,_=null,S=null;function A(D){return typeof HTMLCanvasElement<"u"&&D instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&D instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&D instanceof HTMLVideoElement||typeof ImageData<"u"&&D instanceof ImageData}var x=function(D,k){h.muls(D,k,255)};function R(D,k,I){var z=D.gl,$=z.getParameter(z.MAX_TEXTURE_SIZE);if(k<0||k>$||I<0||I>$)throw new Error("gl-texture2d: Invalid texture size");return D._shape=[k,I],D.bind(),z.texImage2D(z.TEXTURE_2D,0,D.format,k,I,0,D.format,D.type,null),D._mipLevels=[0],D}function M(D,k,I,z,$,Q){this.gl=D,this.handle=k,this.format=$,this.type=Q,this._shape=[I,z],this._mipLevels=[0],this._magFilter=D.NEAREST,this._minFilter=D.NEAREST,this._wrapS=D.CLAMP_TO_EDGE,this._wrapT=D.CLAMP_TO_EDGE,this._anisoSamples=1;var j=this,U=[this._wrapS,this._wrapT];Object.defineProperties(U,[{get:function(){return j._wrapS},set:function(te){return j.wrapS=te}},{get:function(){return j._wrapT},set:function(te){return j.wrapT=te}}]),this._wrapVector=U;var X=[this._shape[0],this._shape[1]];Object.defineProperties(X,[{get:function(){return j._shape[0]},set:function(te){return j.width=te}},{get:function(){return j._shape[1]},set:function(te){return j.height=te}}]),this._shapeVector=X}var T=M.prototype;function E(D,k){return D.length===3?k[2]===1&&k[1]===D[0]*D[2]&&k[0]===D[2]:k[0]===1&&k[1]===D[0]}function C(D){var k=D.createTexture();return D.bindTexture(D.TEXTURE_2D,k),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_MIN_FILTER,D.NEAREST),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_MAG_FILTER,D.NEAREST),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_S,D.CLAMP_TO_EDGE),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_T,D.CLAMP_TO_EDGE),k}function L(D,k,I,z,$){var Q=D.getParameter(D.MAX_TEXTURE_SIZE);if(k<0||k>Q||I<0||I>Q)throw new Error("gl-texture2d: Invalid texture shape");if($===D.FLOAT&&!D.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var j=C(D);return D.texImage2D(D.TEXTURE_2D,0,z,k,I,0,z,$,null),new M(D,j,k,I,z,$)}Object.defineProperties(T,{minFilter:{get:function(){return this._minFilter},set:function(D){this.bind();var k=this.gl;if(this.type===k.FLOAT&&v.indexOf(D)>=0&&(k.getExtension("OES_texture_float_linear")||(D=k.NEAREST)),_.indexOf(D)<0)throw new Error("gl-texture2d: Unknown filter mode "+D);return k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,D),this._minFilter=D}},magFilter:{get:function(){return this._magFilter},set:function(D){this.bind();var k=this.gl;if(this.type===k.FLOAT&&v.indexOf(D)>=0&&(k.getExtension("OES_texture_float_linear")||(D=k.NEAREST)),_.indexOf(D)<0)throw new Error("gl-texture2d: Unknown filter mode "+D);return k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,D),this._magFilter=D}},mipSamples:{get:function(){return this._anisoSamples},set:function(D){var k=this._anisoSamples;if(this._anisoSamples=0|Math.max(D,1),k!==this._anisoSamples){var I=this.gl.getExtension("EXT_texture_filter_anisotropic");I&&this.gl.texParameterf(this.gl.TEXTURE_2D,I.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(D){if(this.bind(),S.indexOf(D)<0)throw new Error("gl-texture2d: Unknown wrap mode "+D);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,D),this._wrapS=D}},wrapT:{get:function(){return this._wrapT},set:function(D){if(this.bind(),S.indexOf(D)<0)throw new Error("gl-texture2d: Unknown wrap mode "+D);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,D),this._wrapT=D}},wrap:{get:function(){return this._wrapVector},set:function(D){if(Array.isArray(D)||(D=[D,D]),D.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var k=0;k<2;++k)if(S.indexOf(D[k])<0)throw new Error("gl-texture2d: Unknown wrap mode "+D);this._wrapS=D[0],this._wrapT=D[1];var I=this.gl;return this.bind(),I.texParameteri(I.TEXTURE_2D,I.TEXTURE_WRAP_S,this._wrapS),I.texParameteri(I.TEXTURE_2D,I.TEXTURE_WRAP_T,this._wrapT),D}},shape:{get:function(){return this._shapeVector},set:function(D){if(Array.isArray(D)){if(D.length!==2)throw new Error("gl-texture2d: Invalid texture shape")}else D=[0|D,0|D];return R(this,0|D[0],0|D[1]),[0|D[0],0|D[1]]}},width:{get:function(){return this._shape[0]},set:function(D){return R(this,D|=0,this._shape[1]),D}},height:{get:function(){return this._shape[1]},set:function(D){return D|=0,R(this,this._shape[0],D),D}}}),T.bind=function(D){var k=this.gl;return D!==void 0&&k.activeTexture(k.TEXTURE0+(0|D)),k.bindTexture(k.TEXTURE_2D,this.handle),D!==void 0?0|D:k.getParameter(k.ACTIVE_TEXTURE)-k.TEXTURE0},T.dispose=function(){this.gl.deleteTexture(this.handle)},T.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var D=Math.min(this._shape[0],this._shape[1]),k=0;D>0;++k,D>>>=1)this._mipLevels.indexOf(k)<0&&this._mipLevels.push(k)},T.setPixels=function(D,k,I,z){var $=this.gl;this.bind(),Array.isArray(k)?(z=I,I=0|k[1],k=0|k[0]):(k=k||0,I=I||0),z=z||0;var Q=A(D)?D:D.raw;if(Q)this._mipLevels.indexOf(z)<0?($.texImage2D($.TEXTURE_2D,0,this.format,this.format,this.type,Q),this._mipLevels.push(z)):$.texSubImage2D($.TEXTURE_2D,z,k,I,this.format,this.type,Q);else{if(!(D.shape&&D.stride&&D.data))throw new Error("gl-texture2d: Unsupported data type");if(D.shape.length<2||k+D.shape[1]>this._shape[1]>>>z||I+D.shape[0]>this._shape[0]>>>z||k<0||I<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");(function(j,U,X,te,W,K,oe,q){var Y=q.dtype,ee=q.shape.slice();if(ee.length<2||ee.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var me=0,he=0,se=E(ee,q.stride.slice());if(Y==="float32"?me=j.FLOAT:Y==="float64"?(me=j.FLOAT,se=!1,Y="float32"):Y==="uint8"?me=j.UNSIGNED_BYTE:(me=j.UNSIGNED_BYTE,se=!1,Y="uint8"),ee.length===2)he=j.LUMINANCE,ee=[ee[0],ee[1],1],q=u(q.data,ee,[q.stride[0],q.stride[1],1],q.offset);else{if(ee.length!==3)throw new Error("gl-texture2d: Invalid shape for texture");if(ee[2]===1)he=j.ALPHA;else if(ee[2]===2)he=j.LUMINANCE_ALPHA;else if(ee[2]===3)he=j.RGB;else{if(ee[2]!==4)throw new Error("gl-texture2d: Invalid shape for pixel coords");he=j.RGBA}ee[2]}if(he!==j.LUMINANCE&&he!==j.ALPHA||W!==j.LUMINANCE&&W!==j.ALPHA||(he=W),he!==W)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ae=q.size,ce=oe.indexOf(te)<0;if(ce&&oe.push(te),me===K&&se)q.offset===0&&q.data.length===ae?ce?j.texImage2D(j.TEXTURE_2D,te,W,ee[0],ee[1],0,W,K,q.data):j.texSubImage2D(j.TEXTURE_2D,te,U,X,ee[0],ee[1],W,K,q.data):ce?j.texImage2D(j.TEXTURE_2D,te,W,ee[0],ee[1],0,W,K,q.data.subarray(q.offset,q.offset+ae)):j.texSubImage2D(j.TEXTURE_2D,te,U,X,ee[0],ee[1],W,K,q.data.subarray(q.offset,q.offset+ae));else{var de;de=K===j.FLOAT?m.mallocFloat32(ae):m.mallocUint8(ae);var ve=u(de,ee,[ee[2],ee[2]*ee[0],1]);me===j.FLOAT&&K===j.UNSIGNED_BYTE?x(ve,q):h.assign(ve,q),ce?j.texImage2D(j.TEXTURE_2D,te,W,ee[0],ee[1],0,W,K,de.subarray(0,ae)):j.texSubImage2D(j.TEXTURE_2D,te,U,X,ee[0],ee[1],W,K,de.subarray(0,ae)),K===j.FLOAT?m.freeFloat32(de):m.freeUint8(de)}})($,k,I,z,this.format,this.type,this._mipLevels,D)}}},3056:function(y){y.exports=function(p,a,u){a?a.bind():p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,null);var h=0|p.getParameter(p.MAX_VERTEX_ATTRIBS);if(u){if(u.length>h)throw new Error("gl-vao: Too many vertex attributes");for(var m=0;m1?0:Math.acos(x)};var u=a(5415),h=a(899),m=a(9305)},8827:function(y){y.exports=function(p,a){return p[0]=Math.ceil(a[0]),p[1]=Math.ceil(a[1]),p[2]=Math.ceil(a[2]),p}},7622:function(y){y.exports=function(p){var a=new Float32Array(3);return a[0]=p[0],a[1]=p[1],a[2]=p[2],a}},8782:function(y){y.exports=function(p,a){return p[0]=a[0],p[1]=a[1],p[2]=a[2],p}},8501:function(y){y.exports=function(){var p=new Float32Array(3);return p[0]=0,p[1]=0,p[2]=0,p}},903:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[0],S=u[1],A=u[2];return p[0]=m*A-v*S,p[1]=v*_-h*A,p[2]=h*S-m*_,p}},5981:function(y,p,a){y.exports=a(8288)},8288:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2];return Math.sqrt(u*u+h*h+m*m)}},8629:function(y,p,a){y.exports=a(7979)},7979:function(y){y.exports=function(p,a,u){return p[0]=a[0]/u[0],p[1]=a[1]/u[1],p[2]=a[2]/u[2],p}},9305:function(y){y.exports=function(p,a){return p[0]*a[0]+p[1]*a[1]+p[2]*a[2]}},154:function(y){y.exports=1e-6},4932:function(y,p,a){y.exports=function(h,m){var v=h[0],_=h[1],S=h[2],A=m[0],x=m[1],R=m[2];return Math.abs(v-A)<=u*Math.max(1,Math.abs(v),Math.abs(A))&&Math.abs(_-x)<=u*Math.max(1,Math.abs(_),Math.abs(x))&&Math.abs(S-R)<=u*Math.max(1,Math.abs(S),Math.abs(R))};var u=a(154)},5777:function(y){y.exports=function(p,a){return p[0]===a[0]&&p[1]===a[1]&&p[2]===a[2]}},3306:function(y){y.exports=function(p,a){return p[0]=Math.floor(a[0]),p[1]=Math.floor(a[1]),p[2]=Math.floor(a[2]),p}},7447:function(y,p,a){y.exports=function(h,m,v,_,S,A){var x,R;for(m||(m=3),v||(v=0),R=_?Math.min(_*m+v,h.length):h.length,x=v;x0&&(v=1/Math.sqrt(v),p[0]=a[0]*v,p[1]=a[1]*v,p[2]=a[2]*v),p}},6660:function(y){y.exports=function(p,a){a=a||1;var u=2*Math.random()*Math.PI,h=2*Math.random()-1,m=Math.sqrt(1-h*h)*a;return p[0]=Math.cos(u)*m,p[1]=Math.sin(u)*m,p[2]=h*a,p}},392:function(y){y.exports=function(p,a,u,h){var m=u[1],v=u[2],_=a[1]-m,S=a[2]-v,A=Math.sin(h),x=Math.cos(h);return p[0]=a[0],p[1]=m+_*x-S*A,p[2]=v+_*A+S*x,p}},3222:function(y){y.exports=function(p,a,u,h){var m=u[0],v=u[2],_=a[0]-m,S=a[2]-v,A=Math.sin(h),x=Math.cos(h);return p[0]=m+S*A+_*x,p[1]=a[1],p[2]=v+S*x-_*A,p}},3388:function(y){y.exports=function(p,a,u,h){var m=u[0],v=u[1],_=a[0]-m,S=a[1]-v,A=Math.sin(h),x=Math.cos(h);return p[0]=m+_*x-S*A,p[1]=v+_*A+S*x,p[2]=a[2],p}},1624:function(y){y.exports=function(p,a){return p[0]=Math.round(a[0]),p[1]=Math.round(a[1]),p[2]=Math.round(a[2]),p}},5685:function(y){y.exports=function(p,a,u){return p[0]=a[0]*u,p[1]=a[1]*u,p[2]=a[2]*u,p}},6722:function(y){y.exports=function(p,a,u,h){return p[0]=a[0]+u[0]*h,p[1]=a[1]+u[1]*h,p[2]=a[2]+u[2]*h,p}},831:function(y){y.exports=function(p,a,u,h){return p[0]=a,p[1]=u,p[2]=h,p}},5294:function(y,p,a){y.exports=a(6403)},3303:function(y,p,a){y.exports=a(4337)},6403:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2];return u*u+h*h+m*m}},4337:function(y){y.exports=function(p){var a=p[0],u=p[1],h=p[2];return a*a+u*u+h*h}},8921:function(y,p,a){y.exports=a(911)},911:function(y){y.exports=function(p,a,u){return p[0]=a[0]-u[0],p[1]=a[1]-u[1],p[2]=a[2]-u[2],p}},9908:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2];return p[0]=h*u[0]+m*u[3]+v*u[6],p[1]=h*u[1]+m*u[4]+v*u[7],p[2]=h*u[2]+m*u[5]+v*u[8],p}},3255:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[3]*h+u[7]*m+u[11]*v+u[15];return _=_||1,p[0]=(u[0]*h+u[4]*m+u[8]*v+u[12])/_,p[1]=(u[1]*h+u[5]*m+u[9]*v+u[13])/_,p[2]=(u[2]*h+u[6]*m+u[10]*v+u[14])/_,p}},6568:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[0],S=u[1],A=u[2],x=u[3],R=x*h+S*v-A*m,M=x*m+A*h-_*v,T=x*v+_*m-S*h,E=-_*h-S*m-A*v;return p[0]=R*x+E*-_+M*-A-T*-S,p[1]=M*x+E*-S+T*-_-R*-A,p[2]=T*x+E*-A+R*-S-M*-_,p}},3433:function(y){y.exports=function(p,a,u){return p[0]=a[0]+u[0],p[1]=a[1]+u[1],p[2]=a[2]+u[2],p[3]=a[3]+u[3],p}},1413:function(y){y.exports=function(p){var a=new Float32Array(4);return a[0]=p[0],a[1]=p[1],a[2]=p[2],a[3]=p[3],a}},3470:function(y){y.exports=function(p,a){return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p}},5313:function(y){y.exports=function(){var p=new Float32Array(4);return p[0]=0,p[1]=0,p[2]=0,p[3]=0,p}},5446:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2],v=a[3]-p[3];return Math.sqrt(u*u+h*h+m*m+v*v)}},205:function(y){y.exports=function(p,a,u){return p[0]=a[0]/u[0],p[1]=a[1]/u[1],p[2]=a[2]/u[2],p[3]=a[3]/u[3],p}},4242:function(y){y.exports=function(p,a){return p[0]*a[0]+p[1]*a[1]+p[2]*a[2]+p[3]*a[3]}},5680:function(y){y.exports=function(p,a,u,h){var m=new Float32Array(4);return m[0]=p,m[1]=a,m[2]=u,m[3]=h,m}},4020:function(y,p,a){y.exports={create:a(5313),clone:a(1413),fromValues:a(5680),copy:a(3470),set:a(6453),add:a(3433),subtract:a(2705),multiply:a(746),divide:a(205),min:a(2170),max:a(3030),scale:a(5510),scaleAndAdd:a(4224),distance:a(5446),squaredDistance:a(1542),length:a(8177),squaredLength:a(9037),negate:a(6459),inverse:a(8057),normalize:a(381),dot:a(4242),lerp:a(8746),random:a(3770),transformMat4:a(6342),transformQuat:a(5022)}},8057:function(y){y.exports=function(p,a){return p[0]=1/a[0],p[1]=1/a[1],p[2]=1/a[2],p[3]=1/a[3],p}},8177:function(y){y.exports=function(p){var a=p[0],u=p[1],h=p[2],m=p[3];return Math.sqrt(a*a+u*u+h*h+m*m)}},8746:function(y){y.exports=function(p,a,u,h){var m=a[0],v=a[1],_=a[2],S=a[3];return p[0]=m+h*(u[0]-m),p[1]=v+h*(u[1]-v),p[2]=_+h*(u[2]-_),p[3]=S+h*(u[3]-S),p}},3030:function(y){y.exports=function(p,a,u){return p[0]=Math.max(a[0],u[0]),p[1]=Math.max(a[1],u[1]),p[2]=Math.max(a[2],u[2]),p[3]=Math.max(a[3],u[3]),p}},2170:function(y){y.exports=function(p,a,u){return p[0]=Math.min(a[0],u[0]),p[1]=Math.min(a[1],u[1]),p[2]=Math.min(a[2],u[2]),p[3]=Math.min(a[3],u[3]),p}},746:function(y){y.exports=function(p,a,u){return p[0]=a[0]*u[0],p[1]=a[1]*u[1],p[2]=a[2]*u[2],p[3]=a[3]*u[3],p}},6459:function(y){y.exports=function(p,a){return p[0]=-a[0],p[1]=-a[1],p[2]=-a[2],p[3]=-a[3],p}},381:function(y){y.exports=function(p,a){var u=a[0],h=a[1],m=a[2],v=a[3],_=u*u+h*h+m*m+v*v;return _>0&&(_=1/Math.sqrt(_),p[0]=u*_,p[1]=h*_,p[2]=m*_,p[3]=v*_),p}},3770:function(y,p,a){var u=a(381),h=a(5510);y.exports=function(m,v){return v=v||1,m[0]=Math.random(),m[1]=Math.random(),m[2]=Math.random(),m[3]=Math.random(),u(m,m),h(m,m,v),m}},5510:function(y){y.exports=function(p,a,u){return p[0]=a[0]*u,p[1]=a[1]*u,p[2]=a[2]*u,p[3]=a[3]*u,p}},4224:function(y){y.exports=function(p,a,u,h){return p[0]=a[0]+u[0]*h,p[1]=a[1]+u[1]*h,p[2]=a[2]+u[2]*h,p[3]=a[3]+u[3]*h,p}},6453:function(y){y.exports=function(p,a,u,h,m){return p[0]=a,p[1]=u,p[2]=h,p[3]=m,p}},1542:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2],v=a[3]-p[3];return u*u+h*h+m*m+v*v}},9037:function(y){y.exports=function(p){var a=p[0],u=p[1],h=p[2],m=p[3];return a*a+u*u+h*h+m*m}},2705:function(y){y.exports=function(p,a,u){return p[0]=a[0]-u[0],p[1]=a[1]-u[1],p[2]=a[2]-u[2],p[3]=a[3]-u[3],p}},6342:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=a[3];return p[0]=u[0]*h+u[4]*m+u[8]*v+u[12]*_,p[1]=u[1]*h+u[5]*m+u[9]*v+u[13]*_,p[2]=u[2]*h+u[6]*m+u[10]*v+u[14]*_,p[3]=u[3]*h+u[7]*m+u[11]*v+u[15]*_,p}},5022:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[0],S=u[1],A=u[2],x=u[3],R=x*h+S*v-A*m,M=x*m+A*h-_*v,T=x*v+_*m-S*h,E=-_*h-S*m-A*v;return p[0]=R*x+E*-_+M*-A-T*-S,p[1]=M*x+E*-S+T*-_-R*-A,p[2]=T*x+E*-A+R*-S-M*-_,p[3]=a[3],p}},9365:function(y,p,a){var u=a(8096),h=a(7896);y.exports=function(m){for(var v=Array.isArray(m)?m:u(m),_=0;_He&&$e>0){var Oe=(Ve[$e][0]-He)/(Ve[$e][0]-Ve[$e-1][0]);return Ve[$e][1]*(1-Oe)+Oe*Ve[$e-1][1]}}return 1}(ze/255,Se):Ie[3];return De<1&&(Te=!0),[Ie[0],Ie[1],Ie[2],255*De]})]);return A.divseq(Pe,255),this.hasAlphaScale=Te,Pe},oe.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},oe.isOpaque=function(){return!this.isTransparent()},oe.pickSlots=1,oe.setPickBase=function(_e){this.pickId=_e};var q=[0,0,0],Y={showSurface:!1,showContour:!1,projections:[j.slice(),j.slice(),j.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ee(_e,Se){var Te,Pe,Ie,ze=Se.axes&&Se.axes.lastCubeProps.axis||q,De=Se.showSurface,He=Se.showContour;for(Te=0;Te<3;++Te)for(De=De||Se.surfaceProject[Te],Pe=0;Pe<3;++Pe)He=He||Se.contourProject[Te][Pe];for(Te=0;Te<3;++Te){var Ve=Y.projections[Te];for(Pe=0;Pe<16;++Pe)Ve[Pe]=0;for(Pe=0;Pe<4;++Pe)Ve[5*Pe]=1;Ve[5*Te]=0,Ve[12+Te]=Se.axesBounds[+(ze[Te]>0)][Te],T(Ve,_e.model,Ve);var $e=Y.clipBounds[Te];for(Ie=0;Ie<2;++Ie)for(Pe=0;Pe<3;++Pe)$e[Ie][Pe]=_e.clipBounds[Ie][Pe];$e[0][Te]=-1e8,$e[1][Te]=1e8}return Y.showSurface=De,Y.showContour=He,Y}var me={model:j,view:j,projection:j,inverseModel:j.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},he=j.slice(),se=[1,0,0,0,1,0,0,0,1];function ae(_e,Se){_e=_e||{};var Te=this.gl;Te.disable(Te.CULL_FACE),this._colorMap.bind(0);var Pe=me;Pe.model=_e.model||j,Pe.view=_e.view||j,Pe.projection=_e.projection||j,Pe.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],Pe.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],Pe.objectOffset=this.objectOffset,Pe.contourColor=this.contourColor[0],Pe.inverseModel=E(Pe.inverseModel,Pe.model);for(var Ie=0;Ie<2;++Ie)for(var ze=Pe.clipBounds[Ie],De=0;De<3;++De)ze[De]=Math.min(Math.max(this.clipBounds[Ie][De],-1e8),1e8);Pe.kambient=this.ambientLight,Pe.kdiffuse=this.diffuseLight,Pe.kspecular=this.specularLight,Pe.roughness=this.roughness,Pe.fresnel=this.fresnel,Pe.opacity=this.opacity,Pe.height=0,Pe.permutation=se,Pe.vertexColor=this.vertexColor;var He=he;for(T(He,Pe.view,Pe.model),T(He,Pe.projection,He),E(He,He),Ie=0;Ie<3;++Ie)Pe.eyePosition[Ie]=He[12+Ie]/He[15];var Ve=He[15];for(Ie=0;Ie<3;++Ie)Ve+=this.lightPosition[Ie]*He[4*Ie+3];for(Ie=0;Ie<3;++Ie){var $e=He[12+Ie];for(De=0;De<3;++De)$e+=He[4*De+Ie]*this.lightPosition[De];Pe.lightPosition[Ie]=$e/Ve}var Oe=ee(Pe,this);if(Oe.showSurface){for(this._shader.bind(),this._shader.uniforms=Pe,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Te.TRIANGLES,this._vertexCount),Ie=0;Ie<3;++Ie)this.surfaceProject[Ie]&&this.vertexCount&&(this._shader.uniforms.model=Oe.projections[Ie],this._shader.uniforms.clipBounds=Oe.clipBounds[Ie],this._vao.draw(Te.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Oe.showContour){var ke=this._contourShader;Pe.kambient=1,Pe.kdiffuse=0,Pe.kspecular=0,Pe.opacity=1,ke.bind(),ke.uniforms=Pe;var Le=this._contourVAO;for(Le.bind(),Ie=0;Ie<3;++Ie)for(ke.uniforms.permutation=X[Ie],Te.lineWidth(this.contourWidth[Ie]*this.pixelRatio),De=0;De>4)/16)/255,Ie=Math.floor(Pe),ze=Pe-Ie,De=Se[1]*(_e.value[1]+(15&_e.value[2])/16)/255,He=Math.floor(De),Ve=De-He;Ie+=1,He+=1;var $e=Te.position;$e[0]=$e[1]=$e[2]=0;for(var Oe=0;Oe<2;++Oe)for(var ke=Oe?ze:1-ze,Le=0;Le<2;++Le)for(var We=Ie+Oe,Ue=He+Le,Ze=ke*(Le?Ve:1-Ve),Xe=0;Xe<3;++Xe)$e[Xe]+=this._field[Xe].get(We,Ue)*Ze;for(var tt=this._pickResult.level,Ee=0;Ee<3;++Ee)if(tt[Ee]=C.le(this.contourLevels[Ee],$e[Ee]),tt[Ee]<0)this.contourLevels[Ee].length>0&&(tt[Ee]=0);else if(tt[Ee]Math.abs(je-$e[Ee])&&(tt[Ee]+=1)}for(Te.index[0]=ze<.5?Ie:Ie+1,Te.index[1]=Ve<.5?He:He+1,Te.uv[0]=Pe/Se[0],Te.uv[1]=De/Se[1],Xe=0;Xe<3;++Xe)Te.dataCoordinate[Xe]=this._field[Xe].get(Te.index[0],Te.index[1]);return Te},oe.padField=function(_e,Se){var Te=Se.shape.slice(),Pe=_e.shape.slice();A.assign(_e.lo(1,1).hi(Te[0],Te[1]),Se),A.assign(_e.lo(1).hi(Te[0],1),Se.hi(Te[0],1)),A.assign(_e.lo(1,Pe[1]-1).hi(Te[0],1),Se.lo(0,Te[1]-1).hi(Te[0],1)),A.assign(_e.lo(0,1).hi(1,Te[1]),Se.hi(1)),A.assign(_e.lo(Pe[0]-1,1).hi(1,Te[1]),Se.lo(Te[0]-1)),_e.set(0,0,Se.get(0,0)),_e.set(0,Pe[1]-1,Se.get(0,Te[1]-1)),_e.set(Pe[0]-1,0,Se.get(Te[0]-1,0)),_e.set(Pe[0]-1,Pe[1]-1,Se.get(Te[0]-1,Te[1]-1))},oe.update=function(_e){_e=_e||{},this.objectOffset=_e.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in _e&&(this.contourWidth=de(_e.contourWidth,Number)),"showContour"in _e&&(this.showContour=de(_e.showContour,Boolean)),"showSurface"in _e&&(this.showSurface=!!_e.showSurface),"contourTint"in _e&&(this.contourTint=de(_e.contourTint,Boolean)),"contourColor"in _e&&(this.contourColor=ye(_e.contourColor)),"contourProject"in _e&&(this.contourProject=de(_e.contourProject,function(ir){return de(ir,Boolean)})),"surfaceProject"in _e&&(this.surfaceProject=_e.surfaceProject),"dynamicColor"in _e&&(this.dynamicColor=ye(_e.dynamicColor)),"dynamicTint"in _e&&(this.dynamicTint=de(_e.dynamicTint,Number)),"dynamicWidth"in _e&&(this.dynamicWidth=de(_e.dynamicWidth,Number)),"opacity"in _e&&(this.opacity=_e.opacity),"opacityscale"in _e&&(this.opacityscale=_e.opacityscale),"colorBounds"in _e&&(this.colorBounds=_e.colorBounds),"vertexColor"in _e&&(this.vertexColor=_e.vertexColor?1:0),"colormap"in _e&&this._colorMap.setPixels(this.genColormap(_e.colormap,this.opacityscale));var Se=_e.field||_e.coords&&_e.coords[2]||null,Te=!1;if(Se||(Se=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in _e||"coords"in _e){var Pe=(Se.shape[0]+2)*(Se.shape[1]+2);Pe>this._field[2].data.length&&(_.freeFloat(this._field[2].data),this._field[2].data=_.mallocFloat(u.nextPow2(Pe))),this._field[2]=R(this._field[2].data,[Se.shape[0]+2,Se.shape[1]+2]),this.padField(this._field[2],Se),this.shape=Se.shape.slice();for(var Ie=this.shape,ze=0;ze<2;++ze)this._field[2].size>this._field[ze].data.length&&(_.freeFloat(this._field[ze].data),this._field[ze].data=_.mallocFloat(this._field[2].size)),this._field[ze]=R(this._field[ze].data,[Ie[0]+2,Ie[1]+2]);if(_e.coords){var De=_e.coords;if(!Array.isArray(De)||De.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ze=0;ze<2;++ze){var He=De[ze];for(Le=0;Le<2;++Le)if(He.shape[Le]!==Ie[Le])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ze],He)}}else if(_e.ticks){var Ve=_e.ticks;if(!Array.isArray(Ve)||Ve.length!==2)throw new Error("gl-surface: invalid ticks");for(ze=0;ze<2;++ze){var $e=Ve[ze];if((Array.isArray($e)||$e.length)&&($e=R($e)),$e.shape[0]!==Ie[ze])throw new Error("gl-surface: invalid tick length");var Oe=R($e.data,Ie);Oe.stride[ze]=$e.stride[0],Oe.stride[1^ze]=0,this.padField(this._field[ze],Oe)}}else{for(ze=0;ze<2;++ze){var ke=[0,0];ke[ze]=1,this._field[ze]=R(this._field[ze].data,[Ie[0]+2,Ie[1]+2],ke,0)}this._field[0].set(0,0,0);for(var Le=0;Le0){for(var ar=0;ar<5;++ar)it.pop();_t-=1}continue e}it.push(Xt[0],Xt[1],Pt[0],Pt[1],Xt[2]),_t+=1}}Zt.push(_t)}this._contourOffsets[at]=xt,this._contourCounts[at]=Zt}var Fn=_.mallocFloat(it.length);for(ze=0;zeU||j[1]<0||j[1]>U)throw new Error("gl-texture2d: Invalid texture size");var X=E(j,$.stride.slice()),te=0;Q==="float32"?te=z.FLOAT:Q==="float64"?(te=z.FLOAT,X=!1,Q="float32"):Q==="uint8"?te=z.UNSIGNED_BYTE:(te=z.UNSIGNED_BYTE,X=!1,Q="uint8");var W,K,oe=0;if(j.length===2)oe=z.LUMINANCE,j=[j[0],j[1],1],$=u($.data,j,[$.stride[0],$.stride[1],1],$.offset);else{if(j.length!==3)throw new Error("gl-texture2d: Invalid shape for texture");if(j[2]===1)oe=z.ALPHA;else if(j[2]===2)oe=z.LUMINANCE_ALPHA;else if(j[2]===3)oe=z.RGB;else{if(j[2]!==4)throw new Error("gl-texture2d: Invalid shape for pixel coords");oe=z.RGBA}}te!==z.FLOAT||z.getExtension("OES_texture_float")||(te=z.UNSIGNED_BYTE,X=!1);var q=$.size;if(X)W=$.offset===0&&$.data.length===q?$.data:$.data.subarray($.offset,$.offset+q);else{var Y=[j[2],j[2]*j[0],1];K=m.malloc(q,Q);var ee=u(K,j,Y,0);Q!=="float32"&&Q!=="float64"||te!==z.UNSIGNED_BYTE?h.assign(ee,$):x(ee,$),W=K.subarray(0,q)}var me=C(z);return z.texImage2D(z.TEXTURE_2D,0,oe,j[0],j[1],0,oe,te,W),X||m.free(K),new M(z,me,j[0],j[1],oe,te)}(D,k)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")};var v=null,_=null,S=null;function A(D){return typeof HTMLCanvasElement<"u"&&D instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&D instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&D instanceof HTMLVideoElement||typeof ImageData<"u"&&D instanceof ImageData}var x=function(D,k){h.muls(D,k,255)};function R(D,k,I){var z=D.gl,$=z.getParameter(z.MAX_TEXTURE_SIZE);if(k<0||k>$||I<0||I>$)throw new Error("gl-texture2d: Invalid texture size");return D._shape=[k,I],D.bind(),z.texImage2D(z.TEXTURE_2D,0,D.format,k,I,0,D.format,D.type,null),D._mipLevels=[0],D}function M(D,k,I,z,$,Q){this.gl=D,this.handle=k,this.format=$,this.type=Q,this._shape=[I,z],this._mipLevels=[0],this._magFilter=D.NEAREST,this._minFilter=D.NEAREST,this._wrapS=D.CLAMP_TO_EDGE,this._wrapT=D.CLAMP_TO_EDGE,this._anisoSamples=1;var j=this,U=[this._wrapS,this._wrapT];Object.defineProperties(U,[{get:function(){return j._wrapS},set:function(te){return j.wrapS=te}},{get:function(){return j._wrapT},set:function(te){return j.wrapT=te}}]),this._wrapVector=U;var X=[this._shape[0],this._shape[1]];Object.defineProperties(X,[{get:function(){return j._shape[0]},set:function(te){return j.width=te}},{get:function(){return j._shape[1]},set:function(te){return j.height=te}}]),this._shapeVector=X}var T=M.prototype;function E(D,k){return D.length===3?k[2]===1&&k[1]===D[0]*D[2]&&k[0]===D[2]:k[0]===1&&k[1]===D[0]}function C(D){var k=D.createTexture();return D.bindTexture(D.TEXTURE_2D,k),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_MIN_FILTER,D.NEAREST),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_MAG_FILTER,D.NEAREST),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_S,D.CLAMP_TO_EDGE),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_T,D.CLAMP_TO_EDGE),k}function L(D,k,I,z,$){var Q=D.getParameter(D.MAX_TEXTURE_SIZE);if(k<0||k>Q||I<0||I>Q)throw new Error("gl-texture2d: Invalid texture shape");if($===D.FLOAT&&!D.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var j=C(D);return D.texImage2D(D.TEXTURE_2D,0,z,k,I,0,z,$,null),new M(D,j,k,I,z,$)}Object.defineProperties(T,{minFilter:{get:function(){return this._minFilter},set:function(D){this.bind();var k=this.gl;if(this.type===k.FLOAT&&v.indexOf(D)>=0&&(k.getExtension("OES_texture_float_linear")||(D=k.NEAREST)),_.indexOf(D)<0)throw new Error("gl-texture2d: Unknown filter mode "+D);return k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,D),this._minFilter=D}},magFilter:{get:function(){return this._magFilter},set:function(D){this.bind();var k=this.gl;if(this.type===k.FLOAT&&v.indexOf(D)>=0&&(k.getExtension("OES_texture_float_linear")||(D=k.NEAREST)),_.indexOf(D)<0)throw new Error("gl-texture2d: Unknown filter mode "+D);return k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,D),this._magFilter=D}},mipSamples:{get:function(){return this._anisoSamples},set:function(D){var k=this._anisoSamples;if(this._anisoSamples=0|Math.max(D,1),k!==this._anisoSamples){var I=this.gl.getExtension("EXT_texture_filter_anisotropic");I&&this.gl.texParameterf(this.gl.TEXTURE_2D,I.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(D){if(this.bind(),S.indexOf(D)<0)throw new Error("gl-texture2d: Unknown wrap mode "+D);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,D),this._wrapS=D}},wrapT:{get:function(){return this._wrapT},set:function(D){if(this.bind(),S.indexOf(D)<0)throw new Error("gl-texture2d: Unknown wrap mode "+D);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,D),this._wrapT=D}},wrap:{get:function(){return this._wrapVector},set:function(D){if(Array.isArray(D)||(D=[D,D]),D.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var k=0;k<2;++k)if(S.indexOf(D[k])<0)throw new Error("gl-texture2d: Unknown wrap mode "+D);this._wrapS=D[0],this._wrapT=D[1];var I=this.gl;return this.bind(),I.texParameteri(I.TEXTURE_2D,I.TEXTURE_WRAP_S,this._wrapS),I.texParameteri(I.TEXTURE_2D,I.TEXTURE_WRAP_T,this._wrapT),D}},shape:{get:function(){return this._shapeVector},set:function(D){if(Array.isArray(D)){if(D.length!==2)throw new Error("gl-texture2d: Invalid texture shape")}else D=[0|D,0|D];return R(this,0|D[0],0|D[1]),[0|D[0],0|D[1]]}},width:{get:function(){return this._shape[0]},set:function(D){return R(this,D|=0,this._shape[1]),D}},height:{get:function(){return this._shape[1]},set:function(D){return D|=0,R(this,this._shape[0],D),D}}}),T.bind=function(D){var k=this.gl;return D!==void 0&&k.activeTexture(k.TEXTURE0+(0|D)),k.bindTexture(k.TEXTURE_2D,this.handle),D!==void 0?0|D:k.getParameter(k.ACTIVE_TEXTURE)-k.TEXTURE0},T.dispose=function(){this.gl.deleteTexture(this.handle)},T.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var D=Math.min(this._shape[0],this._shape[1]),k=0;D>0;++k,D>>>=1)this._mipLevels.indexOf(k)<0&&this._mipLevels.push(k)},T.setPixels=function(D,k,I,z){var $=this.gl;this.bind(),Array.isArray(k)?(z=I,I=0|k[1],k=0|k[0]):(k=k||0,I=I||0),z=z||0;var Q=A(D)?D:D.raw;if(Q)this._mipLevels.indexOf(z)<0?($.texImage2D($.TEXTURE_2D,0,this.format,this.format,this.type,Q),this._mipLevels.push(z)):$.texSubImage2D($.TEXTURE_2D,z,k,I,this.format,this.type,Q);else{if(!(D.shape&&D.stride&&D.data))throw new Error("gl-texture2d: Unsupported data type");if(D.shape.length<2||k+D.shape[1]>this._shape[1]>>>z||I+D.shape[0]>this._shape[0]>>>z||k<0||I<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");(function(j,U,X,te,W,K,oe,q){var Y=q.dtype,ee=q.shape.slice();if(ee.length<2||ee.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var me=0,he=0,se=E(ee,q.stride.slice());if(Y==="float32"?me=j.FLOAT:Y==="float64"?(me=j.FLOAT,se=!1,Y="float32"):Y==="uint8"?me=j.UNSIGNED_BYTE:(me=j.UNSIGNED_BYTE,se=!1,Y="uint8"),ee.length===2)he=j.LUMINANCE,ee=[ee[0],ee[1],1],q=u(q.data,ee,[q.stride[0],q.stride[1],1],q.offset);else{if(ee.length!==3)throw new Error("gl-texture2d: Invalid shape for texture");if(ee[2]===1)he=j.ALPHA;else if(ee[2]===2)he=j.LUMINANCE_ALPHA;else if(ee[2]===3)he=j.RGB;else{if(ee[2]!==4)throw new Error("gl-texture2d: Invalid shape for pixel coords");he=j.RGBA}ee[2]}if(he!==j.LUMINANCE&&he!==j.ALPHA||W!==j.LUMINANCE&&W!==j.ALPHA||(he=W),he!==W)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ae=q.size,ce=oe.indexOf(te)<0;if(ce&&oe.push(te),me===K&&se)q.offset===0&&q.data.length===ae?ce?j.texImage2D(j.TEXTURE_2D,te,W,ee[0],ee[1],0,W,K,q.data):j.texSubImage2D(j.TEXTURE_2D,te,U,X,ee[0],ee[1],W,K,q.data):ce?j.texImage2D(j.TEXTURE_2D,te,W,ee[0],ee[1],0,W,K,q.data.subarray(q.offset,q.offset+ae)):j.texSubImage2D(j.TEXTURE_2D,te,U,X,ee[0],ee[1],W,K,q.data.subarray(q.offset,q.offset+ae));else{var de;de=K===j.FLOAT?m.mallocFloat32(ae):m.mallocUint8(ae);var ve=u(de,ee,[ee[2],ee[2]*ee[0],1]);me===j.FLOAT&&K===j.UNSIGNED_BYTE?x(ve,q):h.assign(ve,q),ce?j.texImage2D(j.TEXTURE_2D,te,W,ee[0],ee[1],0,W,K,de.subarray(0,ae)):j.texSubImage2D(j.TEXTURE_2D,te,U,X,ee[0],ee[1],W,K,de.subarray(0,ae)),K===j.FLOAT?m.freeFloat32(de):m.freeUint8(de)}})($,k,I,z,this.format,this.type,this._mipLevels,D)}}},3056:function(y){y.exports=function(p,a,u){a?a.bind():p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,null);var h=0|p.getParameter(p.MAX_VERTEX_ATTRIBS);if(u){if(u.length>h)throw new Error("gl-vao: Too many vertex attributes");for(var m=0;m1?0:Math.acos(x)};var u=a(5415),h=a(899),m=a(9305)},8827:function(y){y.exports=function(p,a){return p[0]=Math.ceil(a[0]),p[1]=Math.ceil(a[1]),p[2]=Math.ceil(a[2]),p}},7622:function(y){y.exports=function(p){var a=new Float32Array(3);return a[0]=p[0],a[1]=p[1],a[2]=p[2],a}},8782:function(y){y.exports=function(p,a){return p[0]=a[0],p[1]=a[1],p[2]=a[2],p}},8501:function(y){y.exports=function(){var p=new Float32Array(3);return p[0]=0,p[1]=0,p[2]=0,p}},903:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[0],S=u[1],A=u[2];return p[0]=m*A-v*S,p[1]=v*_-h*A,p[2]=h*S-m*_,p}},5981:function(y,p,a){y.exports=a(8288)},8288:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2];return Math.sqrt(u*u+h*h+m*m)}},8629:function(y,p,a){y.exports=a(7979)},7979:function(y){y.exports=function(p,a,u){return p[0]=a[0]/u[0],p[1]=a[1]/u[1],p[2]=a[2]/u[2],p}},9305:function(y){y.exports=function(p,a){return p[0]*a[0]+p[1]*a[1]+p[2]*a[2]}},154:function(y){y.exports=1e-6},4932:function(y,p,a){y.exports=function(h,m){var v=h[0],_=h[1],S=h[2],A=m[0],x=m[1],R=m[2];return Math.abs(v-A)<=u*Math.max(1,Math.abs(v),Math.abs(A))&&Math.abs(_-x)<=u*Math.max(1,Math.abs(_),Math.abs(x))&&Math.abs(S-R)<=u*Math.max(1,Math.abs(S),Math.abs(R))};var u=a(154)},5777:function(y){y.exports=function(p,a){return p[0]===a[0]&&p[1]===a[1]&&p[2]===a[2]}},3306:function(y){y.exports=function(p,a){return p[0]=Math.floor(a[0]),p[1]=Math.floor(a[1]),p[2]=Math.floor(a[2]),p}},7447:function(y,p,a){y.exports=function(h,m,v,_,S,A){var x,R;for(m||(m=3),v||(v=0),R=_?Math.min(_*m+v,h.length):h.length,x=v;x0&&(v=1/Math.sqrt(v),p[0]=a[0]*v,p[1]=a[1]*v,p[2]=a[2]*v),p}},6660:function(y){y.exports=function(p,a){a=a||1;var u=2*Math.random()*Math.PI,h=2*Math.random()-1,m=Math.sqrt(1-h*h)*a;return p[0]=Math.cos(u)*m,p[1]=Math.sin(u)*m,p[2]=h*a,p}},392:function(y){y.exports=function(p,a,u,h){var m=u[1],v=u[2],_=a[1]-m,S=a[2]-v,A=Math.sin(h),x=Math.cos(h);return p[0]=a[0],p[1]=m+_*x-S*A,p[2]=v+_*A+S*x,p}},3222:function(y){y.exports=function(p,a,u,h){var m=u[0],v=u[2],_=a[0]-m,S=a[2]-v,A=Math.sin(h),x=Math.cos(h);return p[0]=m+S*A+_*x,p[1]=a[1],p[2]=v+S*x-_*A,p}},3388:function(y){y.exports=function(p,a,u,h){var m=u[0],v=u[1],_=a[0]-m,S=a[1]-v,A=Math.sin(h),x=Math.cos(h);return p[0]=m+_*x-S*A,p[1]=v+_*A+S*x,p[2]=a[2],p}},1624:function(y){y.exports=function(p,a){return p[0]=Math.round(a[0]),p[1]=Math.round(a[1]),p[2]=Math.round(a[2]),p}},5685:function(y){y.exports=function(p,a,u){return p[0]=a[0]*u,p[1]=a[1]*u,p[2]=a[2]*u,p}},6722:function(y){y.exports=function(p,a,u,h){return p[0]=a[0]+u[0]*h,p[1]=a[1]+u[1]*h,p[2]=a[2]+u[2]*h,p}},831:function(y){y.exports=function(p,a,u,h){return p[0]=a,p[1]=u,p[2]=h,p}},5294:function(y,p,a){y.exports=a(6403)},3303:function(y,p,a){y.exports=a(4337)},6403:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2];return u*u+h*h+m*m}},4337:function(y){y.exports=function(p){var a=p[0],u=p[1],h=p[2];return a*a+u*u+h*h}},8921:function(y,p,a){y.exports=a(911)},911:function(y){y.exports=function(p,a,u){return p[0]=a[0]-u[0],p[1]=a[1]-u[1],p[2]=a[2]-u[2],p}},9908:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2];return p[0]=h*u[0]+m*u[3]+v*u[6],p[1]=h*u[1]+m*u[4]+v*u[7],p[2]=h*u[2]+m*u[5]+v*u[8],p}},3255:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[3]*h+u[7]*m+u[11]*v+u[15];return _=_||1,p[0]=(u[0]*h+u[4]*m+u[8]*v+u[12])/_,p[1]=(u[1]*h+u[5]*m+u[9]*v+u[13])/_,p[2]=(u[2]*h+u[6]*m+u[10]*v+u[14])/_,p}},6568:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[0],S=u[1],A=u[2],x=u[3],R=x*h+S*v-A*m,M=x*m+A*h-_*v,T=x*v+_*m-S*h,E=-_*h-S*m-A*v;return p[0]=R*x+E*-_+M*-A-T*-S,p[1]=M*x+E*-S+T*-_-R*-A,p[2]=T*x+E*-A+R*-S-M*-_,p}},3433:function(y){y.exports=function(p,a,u){return p[0]=a[0]+u[0],p[1]=a[1]+u[1],p[2]=a[2]+u[2],p[3]=a[3]+u[3],p}},1413:function(y){y.exports=function(p){var a=new Float32Array(4);return a[0]=p[0],a[1]=p[1],a[2]=p[2],a[3]=p[3],a}},3470:function(y){y.exports=function(p,a){return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p}},5313:function(y){y.exports=function(){var p=new Float32Array(4);return p[0]=0,p[1]=0,p[2]=0,p[3]=0,p}},5446:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2],v=a[3]-p[3];return Math.sqrt(u*u+h*h+m*m+v*v)}},205:function(y){y.exports=function(p,a,u){return p[0]=a[0]/u[0],p[1]=a[1]/u[1],p[2]=a[2]/u[2],p[3]=a[3]/u[3],p}},4242:function(y){y.exports=function(p,a){return p[0]*a[0]+p[1]*a[1]+p[2]*a[2]+p[3]*a[3]}},5680:function(y){y.exports=function(p,a,u,h){var m=new Float32Array(4);return m[0]=p,m[1]=a,m[2]=u,m[3]=h,m}},4020:function(y,p,a){y.exports={create:a(5313),clone:a(1413),fromValues:a(5680),copy:a(3470),set:a(6453),add:a(3433),subtract:a(2705),multiply:a(746),divide:a(205),min:a(2170),max:a(3030),scale:a(5510),scaleAndAdd:a(4224),distance:a(5446),squaredDistance:a(1542),length:a(8177),squaredLength:a(9037),negate:a(6459),inverse:a(8057),normalize:a(381),dot:a(4242),lerp:a(8746),random:a(3770),transformMat4:a(6342),transformQuat:a(5022)}},8057:function(y){y.exports=function(p,a){return p[0]=1/a[0],p[1]=1/a[1],p[2]=1/a[2],p[3]=1/a[3],p}},8177:function(y){y.exports=function(p){var a=p[0],u=p[1],h=p[2],m=p[3];return Math.sqrt(a*a+u*u+h*h+m*m)}},8746:function(y){y.exports=function(p,a,u,h){var m=a[0],v=a[1],_=a[2],S=a[3];return p[0]=m+h*(u[0]-m),p[1]=v+h*(u[1]-v),p[2]=_+h*(u[2]-_),p[3]=S+h*(u[3]-S),p}},3030:function(y){y.exports=function(p,a,u){return p[0]=Math.max(a[0],u[0]),p[1]=Math.max(a[1],u[1]),p[2]=Math.max(a[2],u[2]),p[3]=Math.max(a[3],u[3]),p}},2170:function(y){y.exports=function(p,a,u){return p[0]=Math.min(a[0],u[0]),p[1]=Math.min(a[1],u[1]),p[2]=Math.min(a[2],u[2]),p[3]=Math.min(a[3],u[3]),p}},746:function(y){y.exports=function(p,a,u){return p[0]=a[0]*u[0],p[1]=a[1]*u[1],p[2]=a[2]*u[2],p[3]=a[3]*u[3],p}},6459:function(y){y.exports=function(p,a){return p[0]=-a[0],p[1]=-a[1],p[2]=-a[2],p[3]=-a[3],p}},381:function(y){y.exports=function(p,a){var u=a[0],h=a[1],m=a[2],v=a[3],_=u*u+h*h+m*m+v*v;return _>0&&(_=1/Math.sqrt(_),p[0]=u*_,p[1]=h*_,p[2]=m*_,p[3]=v*_),p}},3770:function(y,p,a){var u=a(381),h=a(5510);y.exports=function(m,v){return v=v||1,m[0]=Math.random(),m[1]=Math.random(),m[2]=Math.random(),m[3]=Math.random(),u(m,m),h(m,m,v),m}},5510:function(y){y.exports=function(p,a,u){return p[0]=a[0]*u,p[1]=a[1]*u,p[2]=a[2]*u,p[3]=a[3]*u,p}},4224:function(y){y.exports=function(p,a,u,h){return p[0]=a[0]+u[0]*h,p[1]=a[1]+u[1]*h,p[2]=a[2]+u[2]*h,p[3]=a[3]+u[3]*h,p}},6453:function(y){y.exports=function(p,a,u,h,m){return p[0]=a,p[1]=u,p[2]=h,p[3]=m,p}},1542:function(y){y.exports=function(p,a){var u=a[0]-p[0],h=a[1]-p[1],m=a[2]-p[2],v=a[3]-p[3];return u*u+h*h+m*m+v*v}},9037:function(y){y.exports=function(p){var a=p[0],u=p[1],h=p[2],m=p[3];return a*a+u*u+h*h+m*m}},2705:function(y){y.exports=function(p,a,u){return p[0]=a[0]-u[0],p[1]=a[1]-u[1],p[2]=a[2]-u[2],p[3]=a[3]-u[3],p}},6342:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=a[3];return p[0]=u[0]*h+u[4]*m+u[8]*v+u[12]*_,p[1]=u[1]*h+u[5]*m+u[9]*v+u[13]*_,p[2]=u[2]*h+u[6]*m+u[10]*v+u[14]*_,p[3]=u[3]*h+u[7]*m+u[11]*v+u[15]*_,p}},5022:function(y){y.exports=function(p,a,u){var h=a[0],m=a[1],v=a[2],_=u[0],S=u[1],A=u[2],x=u[3],R=x*h+S*v-A*m,M=x*m+A*h-_*v,T=x*v+_*m-S*h,E=-_*h-S*m-A*v;return p[0]=R*x+E*-_+M*-A-T*-S,p[1]=M*x+E*-S+T*-_-R*-A,p[2]=T*x+E*-A+R*-S-M*-_,p[3]=a[3],p}},9365:function(y,p,a){var u=a(8096),h=a(7896);y.exports=function(m){for(var v=Array.isArray(m)?m:u(m),_=0;_0)continue;Ue=Le.slice(0,1).join("")}return Se(Ue),he+=Ue.length,(q=q.slice(Ue.length)).length}}function Ve(){return/[^a-fA-F0-9]/.test(U)?(Se(q.join("")),oe=S,W):(q.push(U),X=U,W+1)}function $e(){return U==="."||/[eE]/.test(U)?(q.push(U),oe=C,X=U,W+1):U==="x"&&q.length===1&&q[0]==="0"?(oe=$,q.push(U),X=U,W+1):/[^\d]/.test(U)?(Se(q.join("")),oe=S,W):(q.push(U),X=U,W+1)}function Oe(){return U==="f"&&(q.push(U),X=U,W+=1),/[eE]/.test(U)?(q.push(U),X=U,W+1):(U!=="-"&&U!=="+"||!/[eE]/.test(X))&&/[^\d]/.test(U)?(Se(q.join("")),oe=S,W):(q.push(U),X=U,W+1)}function ke(){if(/[^\d\w_]/.test(U)){var Le=q.join("");return oe=_e[Le]?k:ye[Le]?D:L,Se(q.join("")),oe=S,W}return q.push(U),X=U,W+1}};var u=a(399),h=a(9746),m=a(9525),v=a(9458),_=a(3585),S=999,A=9999,x=0,R=1,M=2,T=3,E=4,C=5,L=6,D=7,k=8,I=9,z=10,$=11,Q=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"]},3585:function(y,p,a){var u=a(9525);u=u.slice().filter(function(h){return!/^(gl\_|texture)/.test(h)}),y.exports=u.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},9525:function(y){y.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},9458:function(y,p,a){var u=a(399);y.exports=u.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},399:function(y){y.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},9746:function(y){y.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},8096:function(y,p,a){var u=a(3193);y.exports=function(h,m){var v=u(m),_=[];return(_=_.concat(v(h))).concat(v(null))}},6832:function(y){y.exports=function(p){typeof p=="string"&&(p=[p]);for(var a=[].slice.call(arguments,1),u=[],h=0;h0;)for(var k=(R=D.pop()).adjacent,I=0;I<=T;++I){var z=k[I];if(z.boundary&&!(z.lastVisited<=-E)){for(var $=z.vertices,Q=0;Q<=T;++Q){var j=$[Q];C[Q]=j<0?M:L[j]}var U=this.orient();if(U>0)return z;z.lastVisited=-E,U===0&&D.push(z)}}return null},x.walk=function(R,M){var T=this.vertices.length-1,E=this.dimension,C=this.vertices,L=this.tuple,D=M?this.interior.length*Math.random()|0:this.interior.length-1,k=this.interior[D];e:for(;!k.boundary;){for(var I=k.vertices,z=k.adjacent,$=0;$<=E;++$)L[$]=C[I[$]];for(k.lastVisited=T,$=0;$<=E;++$){var Q=z[$];if(!(Q.lastVisited>=T)){var j=L[$];L[$]=R;var U=this.orient();if(L[$]=j,U<0){k=Q;continue e}Q.boundary?Q.lastVisited=-T:Q.lastVisited=T}}return}return k},x.addPeaks=function(R,M){var T=this.vertices.length-1,E=this.dimension,C=this.vertices,L=this.tuple,D=this.interior,k=this.simplices,I=[M];M.lastVisited=T,M.vertices[M.vertices.indexOf(-1)]=T,M.boundary=!1,D.push(M);for(var z=[];I.length>0;){var $=(M=I.pop()).vertices,Q=M.adjacent,j=$.indexOf(T);if(!(j<0)){for(var U=0;U<=E;++U)if(U!==j){var X=Q[U];if(X.boundary&&!(X.lastVisited>=T)){var te=X.vertices;if(X.lastVisited!==-T){for(var W=0,K=0;K<=E;++K)te[K]<0?(W=K,L[K]=R):L[K]=C[te[K]];if(this.orient()>0){te[W]=T,X.boundary=!1,D.push(X),I.push(X),X.lastVisited=T;continue}X.lastVisited=-T}var oe=X.adjacent,q=$.slice(),Y=Q.slice(),ee=new m(q,Y,!0);k.push(ee);var me=oe.indexOf(M);if(!(me<0))for(oe[me]=ee,Y[j]=X,q[U]=-1,Y[U]=M,Q[U]=ee,ee.flip(),K=0;K<=E;++K){var he=q[K];if(!(he<0||he===T)){for(var se=new Array(E-1),ae=0,ce=0;ce<=E;++ce){var de=q[ce];de<0||ce===K||(se[ae++]=de)}z.push(new v(se,ee,K))}}}}}}for(z.sort(_),U=0;U+1=0?D[I++]=k[$]:z=1&$;if(z===(1&R)){var Q=D[0];D[0]=D[1],D[1]=Q}M.push(D)}}return M}},9014:function(y,p,a){var u=a(5070);function h(I,z,$,Q,j){this.mid=I,this.left=z,this.right=$,this.leftPoints=Q,this.rightPoints=j,this.count=(z?z.count:0)+($?$.count:0)+Q.length}y.exports=function(I){return I&&I.length!==0?new D(L(I)):new D(null)};var m=h.prototype;function v(I,z){I.mid=z.mid,I.left=z.left,I.right=z.right,I.leftPoints=z.leftPoints,I.rightPoints=z.rightPoints,I.count=z.count}function _(I,z){var $=L(z);I.mid=$.mid,I.left=$.left,I.right=$.right,I.leftPoints=$.leftPoints,I.rightPoints=$.rightPoints,I.count=$.count}function S(I,z){var $=I.intervals([]);$.push(z),_(I,$)}function A(I,z){var $=I.intervals([]),Q=$.indexOf(z);return Q<0?0:($.splice(Q,1),_(I,$),1)}function x(I,z,$){for(var Q=0;Q=0&&I[Q][1]>=z;--Q){var j=$(I[Q]);if(j)return j}}function M(I,z){for(var $=0;$>1],j=[],U=[],X=[];for($=0;$3*(z+1)?S(this,I):this.left.insert(I):this.left=L([I]);else if(I[0]>this.mid)this.right?4*(this.right.count+1)>3*(z+1)?S(this,I):this.right.insert(I):this.right=L([I]);else{var $=u.ge(this.leftPoints,I,E),Q=u.ge(this.rightPoints,I,C);this.leftPoints.splice($,0,I),this.rightPoints.splice(Q,0,I)}},m.remove=function(I){var z=this.count-this.leftPoints;if(I[1]3*(z-1)?A(this,I):(U=this.left.remove(I))===2?(this.left=null,this.count-=1,1):(U===1&&(this.count-=1),U):0;if(I[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(z-1)?A(this,I):(U=this.right.remove(I))===2?(this.right=null,this.count-=1,1):(U===1&&(this.count-=1),U):0;if(this.count===1)return this.leftPoints[0]===I?2:0;if(this.leftPoints.length===1&&this.leftPoints[0]===I){if(this.left&&this.right){for(var $=this,Q=this.left;Q.right;)$=Q,Q=Q.right;if($===this)Q.right=this.right;else{var j=this.left,U=this.right;$.count-=Q.count,$.right=Q.left,Q.left=j,Q.right=U}v(this,Q),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?v(this,this.left):v(this,this.right);return 1}for(j=u.ge(this.leftPoints,I,E);jthis.mid?this.right&&($=this.right.queryPoint(I,z))?$:R(this.rightPoints,I,z):M(this.leftPoints,z);var $},m.queryInterval=function(I,z,$){var Q;return Ithis.mid&&this.right&&(Q=this.right.queryInterval(I,z,$))?Q:zthis.mid?R(this.rightPoints,I,$):M(this.leftPoints,$)};var k=D.prototype;k.insert=function(I){this.root?this.root.insert(I):this.root=new h(I[0],null,null,[I],[I])},k.remove=function(I){if(this.root){var z=this.root.remove(I);return z===2&&(this.root=null),z!==0}return!1},k.queryPoint=function(I,z){if(this.root)return this.root.queryPoint(I,z)},k.queryInterval=function(I,z,$){if(I<=z&&this.root)return this.root.queryInterval(I,z,$)},Object.defineProperty(k,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(k,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})},9560:function(y){y.exports=function(p){for(var a=new Array(p),u=0;u13)&&a!==32&&a!==133&&a!==160&&a!==5760&&a!==6158&&(a<8192||a>8205)&&a!==8232&&a!==8233&&a!==8239&&a!==8287&&a!==8288&&a!==12288&&a!==65279)return!1;return!0}},3578:function(y){y.exports=function(p,a,u){return p*(1-u)+a*u}},7191:function(y,p,a){var u=a(4690),h=a(9823),m=a(7332),v=a(7787),_=a(7437),S=a(2142),A={length:a(4693),normalize:a(899),dot:a(9305),cross:a(903)},x=h(),R=h(),M=[0,0,0,0],T=[[0,0,0],[0,0,0],[0,0,0]],E=[0,0,0];function C(L,D,k,I,z){L[0]=D[0]*I+k[0]*z,L[1]=D[1]*I+k[1]*z,L[2]=D[2]*I+k[2]*z}y.exports=function(L,D,k,I,z,$){if(D||(D=[0,0,0]),k||(k=[0,0,0]),I||(I=[0,0,0]),z||(z=[0,0,0,1]),$||($=[0,0,0,1]),!u(x,L)||(m(R,x),R[3]=0,R[7]=0,R[11]=0,R[15]=1,Math.abs(v(R)<1e-8)))return!1;var Q,j,U,X,te,W,K,oe=x[3],q=x[7],Y=x[11],ee=x[12],me=x[13],he=x[14],se=x[15];if(oe!==0||q!==0||Y!==0){if(M[0]=oe,M[1]=q,M[2]=Y,M[3]=se,!_(R,R))return!1;S(R,R),Q=z,U=R,X=(j=M)[0],te=j[1],W=j[2],K=j[3],Q[0]=U[0]*X+U[4]*te+U[8]*W+U[12]*K,Q[1]=U[1]*X+U[5]*te+U[9]*W+U[13]*K,Q[2]=U[2]*X+U[6]*te+U[10]*W+U[14]*K,Q[3]=U[3]*X+U[7]*te+U[11]*W+U[15]*K}else z[0]=z[1]=z[2]=0,z[3]=1;if(D[0]=ee,D[1]=me,D[2]=he,function(ce,de){ce[0][0]=de[0],ce[0][1]=de[1],ce[0][2]=de[2],ce[1][0]=de[4],ce[1][1]=de[5],ce[1][2]=de[6],ce[2][0]=de[8],ce[2][1]=de[9],ce[2][2]=de[10]}(T,x),k[0]=A.length(T[0]),A.normalize(T[0],T[0]),I[0]=A.dot(T[0],T[1]),C(T[1],T[1],T[0],1,-I[0]),k[1]=A.length(T[1]),A.normalize(T[1],T[1]),I[0]/=k[1],I[1]=A.dot(T[0],T[2]),C(T[2],T[2],T[0],1,-I[1]),I[2]=A.dot(T[1],T[2]),C(T[2],T[2],T[1],1,-I[2]),k[2]=A.length(T[2]),A.normalize(T[2],T[2]),I[1]/=k[2],I[2]/=k[2],A.cross(E,T[1],T[2]),A.dot(T[0],E)<0)for(var ae=0;ae<3;ae++)k[ae]*=-1,T[ae][0]*=-1,T[ae][1]*=-1,T[ae][2]*=-1;return $[0]=.5*Math.sqrt(Math.max(1+T[0][0]-T[1][1]-T[2][2],0)),$[1]=.5*Math.sqrt(Math.max(1-T[0][0]+T[1][1]-T[2][2],0)),$[2]=.5*Math.sqrt(Math.max(1-T[0][0]-T[1][1]+T[2][2],0)),$[3]=.5*Math.sqrt(Math.max(1+T[0][0]+T[1][1]+T[2][2],0)),T[2][1]>T[1][2]&&($[0]=-$[0]),T[0][2]>T[2][0]&&($[1]=-$[1]),T[1][0]>T[0][1]&&($[2]=-$[2]),!0}},4690:function(y){y.exports=function(p,a){var u=a[15];if(u===0)return!1;for(var h=1/u,m=0;m<16;m++)p[m]=a[m]*h;return!0}},7649:function(y,p,a){var u=a(1868),h=a(1102),m=a(7191),v=a(7787),_=a(1116),S=R(),A=R(),x=R();function R(){return{translate:M(),scale:M(1),skew:M(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function M(T){return[T||0,T||0,T||0]}y.exports=function(T,E,C,L){if(v(E)===0||v(C)===0)return!1;var D=m(E,S.translate,S.scale,S.skew,S.perspective,S.quaternion),k=m(C,A.translate,A.scale,A.skew,A.perspective,A.quaternion);return!(!D||!k||(u(x.translate,S.translate,A.translate,L),u(x.skew,S.skew,A.skew,L),u(x.scale,S.scale,A.scale,L),u(x.perspective,S.perspective,A.perspective,L),_(x.quaternion,S.quaternion,A.quaternion,L),h(T,x.translate,x.scale,x.skew,x.perspective,x.quaternion),0))}},1102:function(y,p,a){var u={identity:a(9947),translate:a(998),multiply:a(104),create:a(9823),scale:a(3668),fromRotationTranslation:a(7280)},h=(u.create(),u.create());y.exports=function(m,v,_,S,A,x){return u.identity(m),u.fromRotationTranslation(m,x,v),m[3]=A[0],m[7]=A[1],m[11]=A[2],m[15]=A[3],u.identity(h),S[2]!==0&&(h[9]=S[2],u.multiply(m,m,h)),S[1]!==0&&(h[9]=0,h[8]=S[1],u.multiply(m,m,h)),S[0]!==0&&(h[8]=0,h[4]=S[0],u.multiply(m,m,h)),u.scale(m,m,_),m}},9298:function(y,p,a){var u=a(5070),h=a(7649),m=a(7437),v=a(6109),_=a(7115),S=a(5240),A=a(3012),x=a(998),R=(a(3668),a(899)),M=[0,0,0];function T(L){this._components=L.slice(),this._time=[0],this.prevMatrix=L.slice(),this.nextMatrix=L.slice(),this.computedMatrix=L.slice(),this.computedInverse=L.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}y.exports=function(L){return new T((L=L||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var E=T.prototype;E.recalcMatrix=function(L){var D=this._time,k=u.le(D,L),I=this.computedMatrix;if(!(k<0)){var z=this._components;if(k===D.length-1)for(var $=16*k,Q=0;Q<16;++Q)I[Q]=z[$++];else{var j=D[k+1]-D[k],U=($=16*k,this.prevMatrix),X=!0;for(Q=0;Q<16;++Q)U[Q]=z[$++];var te=this.nextMatrix;for(Q=0;Q<16;++Q)te[Q]=z[$++],X=X&&U[Q]===te[Q];if(j<1e-6||X)for(Q=0;Q<16;++Q)I[Q]=U[Q];else h(I,U,te,(L-D[k])/j)}var W=this.computedUp;W[0]=I[1],W[1]=I[5],W[2]=I[9],R(W,W);var K=this.computedInverse;m(K,I);var oe=this.computedEye,q=K[15];oe[0]=K[12]/q,oe[1]=K[13]/q,oe[2]=K[14]/q;var Y=this.computedCenter,ee=Math.exp(this.computedRadius[0]);for(Q=0;Q<3;++Q)Y[Q]=oe[Q]-I[2+4*Q]*ee}},E.idle=function(L){if(!(L1&&u(h[A[T-2]],h[A[T-1]],M)<=0;)T-=1,A.pop();for(A.push(R),T=x.length;T>1&&u(h[x[T-2]],h[x[T-1]],M)>=0;)T-=1,x.pop();x.push(R)}v=new Array(x.length+A.length-2);for(var E=0,C=(_=0,A.length);_0;--L)v[E++]=x[L];return v};var u=a(417)[3]},6145:function(y,p,a){y.exports=function(h,m){m||(m=h,h=window);var v=0,_=0,S=0,A={shift:!1,alt:!1,control:!1,meta:!1},x=!1;function R($){var Q=!1;return"altKey"in $&&(Q=Q||$.altKey!==A.alt,A.alt=!!$.altKey),"shiftKey"in $&&(Q=Q||$.shiftKey!==A.shift,A.shift=!!$.shiftKey),"ctrlKey"in $&&(Q=Q||$.ctrlKey!==A.control,A.control=!!$.ctrlKey),"metaKey"in $&&(Q=Q||$.metaKey!==A.meta,A.meta=!!$.metaKey),Q}function M($,Q){var j=u.x(Q),U=u.y(Q);"buttons"in Q&&($=0|Q.buttons),($!==v||j!==_||U!==S||R(Q))&&(v=0|$,_=j||0,S=U||0,m&&m(v,_,S,A))}function T($){M(0,$)}function E(){(v||_||S||A.shift||A.alt||A.meta||A.control)&&(_=S=0,v=0,A.shift=A.alt=A.control=A.meta=!1,m&&m(0,0,0,A))}function C($){R($)&&m&&m(v,_,S,A)}function L($){u.buttons($)===0?M(0,$):M(v,$)}function D($){M(v|u.buttons($),$)}function k($){M(v&~u.buttons($),$)}function I(){x||(x=!0,h.addEventListener("mousemove",L),h.addEventListener("mousedown",D),h.addEventListener("mouseup",k),h.addEventListener("mouseleave",T),h.addEventListener("mouseenter",T),h.addEventListener("mouseout",T),h.addEventListener("mouseover",T),h.addEventListener("blur",E),h.addEventListener("keyup",C),h.addEventListener("keydown",C),h.addEventListener("keypress",C),h!==window&&(window.addEventListener("blur",E),window.addEventListener("keyup",C),window.addEventListener("keydown",C),window.addEventListener("keypress",C)))}I();var z={element:h};return Object.defineProperties(z,{enabled:{get:function(){return x},set:function($){$?I():x&&(x=!1,h.removeEventListener("mousemove",L),h.removeEventListener("mousedown",D),h.removeEventListener("mouseup",k),h.removeEventListener("mouseleave",T),h.removeEventListener("mouseenter",T),h.removeEventListener("mouseout",T),h.removeEventListener("mouseover",T),h.removeEventListener("blur",E),h.removeEventListener("keyup",C),h.removeEventListener("keydown",C),h.removeEventListener("keypress",C),h!==window&&(window.removeEventListener("blur",E),window.removeEventListener("keyup",C),window.removeEventListener("keydown",C),window.removeEventListener("keypress",C)))},enumerable:!0},buttons:{get:function(){return v},enumerable:!0},x:{get:function(){return _},enumerable:!0},y:{get:function(){return S},enumerable:!0},mods:{get:function(){return A},enumerable:!0}}),z};var u=a(4110)},2565:function(y){var p={left:0,top:0};y.exports=function(a,u,h){u=u||a.currentTarget||a.srcElement,Array.isArray(h)||(h=[0,0]);var m,v=a.clientX||0,_=a.clientY||0,S=(m=u)===window||m===document||m===document.body?p:m.getBoundingClientRect();return h[0]=v-S.left,h[1]=_-S.top,h}},4110:function(y,p){function a(u){return u.target||u.srcElement||window}p.buttons=function(u){if(typeof u=="object"){if("buttons"in u)return u.buttons;if("which"in u){if((h=u.which)===2)return 4;if(h===3)return 2;if(h>0)return 1<=0)return 1< 0"),typeof m.vertex!="function"&&v("Must specify vertex creation function"),typeof m.cell!="function"&&v("Must specify cell creation function"),typeof m.phase!="function"&&v("Must specify phase function");for(var A=m.getters||[],x=new Array(S),R=0;R=0?x[R]=!0:x[R]=!1;return function(M,T,E,C,L,D){var k=[D,L].join(",");return(0,h[k])(M,T,E,u.mallocUint32,u.freeUint32)}(m.vertex,m.cell,m.phase,0,_,x)};var h={"false,0,1":function(m,v,_,S,A){return function(x,R,M,T){var E,C=0|x.shape[0],L=0|x.shape[1],D=x.data,k=0|x.offset,I=0|x.stride[0],z=0|x.stride[1],$=k,Q=0|-I,j=0,U=0|-z,X=0,te=-I-z|0,W=0,K=0|I,oe=z-I*C|0,q=0,Y=0,ee=0,me=2*C|0,he=S(me),se=S(me),ae=0,ce=0,de=-1,ve=-1,ye=0,_e=0|-C,Se=0|C,Te=0,Pe=-C-1|0,Ie=C-1|0,ze=0,De=0,He=0;for(q=0;q0){if(Y=1,he[ae++]=_(D[$],R,M,T),$+=K,C>0)for(q=1,E=D[$],ce=he[ae]=_(E,R,M,T),ye=he[ae+de],Te=he[ae+_e],ze=he[ae+Pe],ce===ye&&ce===Te&&ce===ze||(j=D[$+Q],X=D[$+U],W=D[$+te],m(q,Y,E,j,X,W,ce,ye,Te,ze,R,M,T),De=se[ae]=ee++),ae+=1,$+=K,q=2;q0)for(q=1,E=D[$],ce=he[ae]=_(E,R,M,T),ye=he[ae+de],Te=he[ae+_e],ze=he[ae+Pe],ce===ye&&ce===Te&&ce===ze||(j=D[$+Q],X=D[$+U],W=D[$+te],m(q,Y,E,j,X,W,ce,ye,Te,ze,R,M,T),De=se[ae]=ee++,ze!==Te&&v(se[ae+_e],De,X,W,Te,ze,R,M,T)),ae+=1,$+=K,q=2;q0){if(q=1,he[ae++]=_(D[$],R,M,T),$+=K,L>0)for(Y=1,E=D[$],ce=he[ae]=_(E,R,M,T),Te=he[ae+_e],ye=he[ae+de],ze=he[ae+Pe],ce===Te&&ce===ye&&ce===ze||(j=D[$+Q],X=D[$+U],W=D[$+te],m(q,Y,E,j,X,W,ce,Te,ye,ze,R,M,T),De=se[ae]=ee++),ae+=1,$+=K,Y=2;Y0)for(Y=1,E=D[$],ce=he[ae]=_(E,R,M,T),Te=he[ae+_e],ye=he[ae+de],ze=he[ae+Pe],ce===Te&&ce===ye&&ce===ze||(j=D[$+Q],X=D[$+U],W=D[$+te],m(q,Y,E,j,X,W,ce,Te,ye,ze,R,M,T),De=se[ae]=ee++,ze!==Te&&v(se[ae+_e],De,W,j,ze,Te,R,M,T)),ae+=1,$+=K,Y=2;Y2&&$[1]>2&&k(z.pick(-1,-1).lo(1,1).hi($[0]-2,$[1]-2),I.pick(-1,-1,0).lo(1,1).hi($[0]-2,$[1]-2),I.pick(-1,-1,1).lo(1,1).hi($[0]-2,$[1]-2)),$[1]>2&&(D(z.pick(0,-1).lo(1).hi($[1]-2),I.pick(0,-1,1).lo(1).hi($[1]-2)),L(I.pick(0,-1,0).lo(1).hi($[1]-2))),$[1]>2&&(D(z.pick($[0]-1,-1).lo(1).hi($[1]-2),I.pick($[0]-1,-1,1).lo(1).hi($[1]-2)),L(I.pick($[0]-1,-1,0).lo(1).hi($[1]-2))),$[0]>2&&(D(z.pick(-1,0).lo(1).hi($[0]-2),I.pick(-1,0,0).lo(1).hi($[0]-2)),L(I.pick(-1,0,1).lo(1).hi($[0]-2))),$[0]>2&&(D(z.pick(-1,$[1]-1).lo(1).hi($[0]-2),I.pick(-1,$[1]-1,0).lo(1).hi($[0]-2)),L(I.pick(-1,$[1]-1,1).lo(1).hi($[0]-2))),I.set(0,0,0,0),I.set(0,0,1,0),I.set($[0]-1,0,0,0),I.set($[0]-1,0,1,0),I.set(0,$[1]-1,0,0),I.set(0,$[1]-1,1,0),I.set($[0]-1,$[1]-1,0,0),I.set($[0]-1,$[1]-1,1,0),I}}y.exports=function(C,L,D){return Array.isArray(D)||(D=u(L.dimension,typeof D=="string"?D:"clamp")),L.size===0?C:L.dimension===0?(C.set(0),C):function(k){var I=k.join();if(j=x[I])return j;for(var z=k.length,$=[R,M],Q=1;Q<=z;++Q)$.push(T(Q));var j=E.apply(void 0,$);return x[I]=j,j}(D)(C,L)}},3581:function(y){function p(m,v){var _=Math.floor(v),S=v-_,A=0<=_&&_0;){te<64?(C=te,te=0):(C=64,te-=64);for(var W=0|_[1];W>0;){W<64?(L=W,W=0):(L=64,W-=64),x=U+te*k+W*I,T=X+te*$+W*Q;var K=0,oe=0,q=0,Y=z,ee=k-D*z,me=I-C*k,he=j,se=$-D*j,ae=Q-C*$;for(q=0;q0;){Q<64?(C=Q,Q=0):(C=64,Q-=64);for(var j=0|_[0];j>0;){j<64?(E=j,j=0):(E=64,j-=64),x=z+Q*D+j*L,T=$+Q*I+j*k;var U=0,X=0,te=D,W=L-C*D,K=I,oe=k-C*I;for(X=0;X0;){X<64?(L=X,X=0):(L=64,X-=64);for(var te=0|_[0];te>0;){te<64?(E=te,te=0):(E=64,te-=64);for(var W=0|_[1];W>0;){W<64?(C=W,W=0):(C=64,W-=64),x=j+X*I+te*D+W*k,T=U+X*Q+te*z+W*$;var K=0,oe=0,q=0,Y=I,ee=D-L*I,me=k-E*D,he=Q,se=z-L*Q,ae=$-E*z;for(q=0;qx;){X=0,te=j-E;t:for(U=0;UK)break t;te+=I,X+=z}for(X=j,te=j-E,U=0;U>1,ke=Oe-He,Le=Oe+He,We=Ve,Ue=ke,Ze=Oe,Xe=Le,tt=$e,Ee=M+1,Ne=T-1,je=!0,nt=0,ot=0,Ge=0,ht=I,pt=A(ht),wt=A(ht);me=L*We,he=L*Ue,De=C;e:for(ee=0;ee0){U=We,We=Ue,Ue=U;break e}if(Ge<0)break e;De+=$}me=L*Xe,he=L*tt,De=C;e:for(ee=0;ee0){U=Xe,Xe=tt,tt=U;break e}if(Ge<0)break e;De+=$}me=L*We,he=L*Ze,De=C;e:for(ee=0;ee0){U=We,We=Ze,Ze=U;break e}if(Ge<0)break e;De+=$}me=L*Ue,he=L*Ze,De=C;e:for(ee=0;ee0){U=Ue,Ue=Ze,Ze=U;break e}if(Ge<0)break e;De+=$}me=L*We,he=L*Xe,De=C;e:for(ee=0;ee0){U=We,We=Xe,Xe=U;break e}if(Ge<0)break e;De+=$}me=L*Ze,he=L*Xe,De=C;e:for(ee=0;ee0){U=Ze,Ze=Xe,Xe=U;break e}if(Ge<0)break e;De+=$}me=L*Ue,he=L*tt,De=C;e:for(ee=0;ee0){U=Ue,Ue=tt,tt=U;break e}if(Ge<0)break e;De+=$}me=L*Ue,he=L*Ze,De=C;e:for(ee=0;ee0){U=Ue,Ue=Ze,Ze=U;break e}if(Ge<0)break e;De+=$}me=L*Xe,he=L*tt,De=C;e:for(ee=0;ee0){U=Xe,Xe=tt,tt=U;break e}if(Ge<0)break e;De+=$}for(me=L*We,he=L*Ue,se=L*Ze,ae=L*Xe,ce=L*tt,de=L*Ve,ve=L*Oe,ye=L*$e,ze=0,De=C,ee=0;ee0)){if(Ge<0){for(me=L*K,he=L*Ee,se=L*Ne,De=C,ee=0;ee0)for(;;){for(oe=C+Ne*L,ze=0,ee=0;ee0)){for(oe=C+Ne*L,ze=0,ee=0;ee$e){e:for(;;){for(oe=C+Ee*L,ze=0,De=C,ee=0;ee1&&D?I(L,D[0],D[1]):I(L)}(S,A,M);return R(M,T)}},8729:function(y,p,a){var u=a(8139),h={};y.exports=function(m){var v=m.order,_=m.dtype,S=[v,_].join(":"),A=h[S];return A||(h[S]=A=u(v,_)),A(m),m}},5050:function(y,p,a){var u=a(4780),h=typeof Float64Array<"u";function m(x,R){return x[0]-R[0]}function v(){var x,R=this.stride,M=new Array(R.length);for(x=0;x=0&&(L+=I*(D=0|C),k-=D),new T(this.data,k,I,L)},E.step=function(C){var L=this.shape[0],D=this.stride[0],k=this.offset,I=0,z=Math.ceil;return typeof C=="number"&&((I=0|C)<0?(k+=D*(L-1),L=z(-L/I)):L=z(L/I),D*=I),new T(this.data,L,D,k)},E.transpose=function(C){C=C===void 0?0:0|C;var L=this.shape,D=this.stride;return new T(this.data,L[C],D[C],this.offset)},E.pick=function(C){var L=[],D=[],k=this.offset;return typeof C=="number"&&C>=0?k=k+this.stride[0]*C|0:(L.push(this.shape[0]),D.push(this.stride[0])),(0,R[L.length+1])(this.data,L,D,k)},function(C,L,D,k){return new T(C,L[0],D[0],k)}},2:function(x,R,M){function T(C,L,D,k,I,z){this.data=C,this.shape=[L,D],this.stride=[k,I],this.offset=0|z}var E=T.prototype;return E.dtype=x,E.dimension=2,Object.defineProperty(E,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(E,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),E.set=function(C,L,D){return x==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*L,D):this.data[this.offset+this.stride[0]*C+this.stride[1]*L]=D},E.get=function(C,L){return x==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*L):this.data[this.offset+this.stride[0]*C+this.stride[1]*L]},E.index=function(C,L){return this.offset+this.stride[0]*C+this.stride[1]*L},E.hi=function(C,L){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:0|C,typeof L!="number"||L<0?this.shape[1]:0|L,this.stride[0],this.stride[1],this.offset)},E.lo=function(C,L){var D=this.offset,k=0,I=this.shape[0],z=this.shape[1],$=this.stride[0],Q=this.stride[1];return typeof C=="number"&&C>=0&&(D+=$*(k=0|C),I-=k),typeof L=="number"&&L>=0&&(D+=Q*(k=0|L),z-=k),new T(this.data,I,z,$,Q,D)},E.step=function(C,L){var D=this.shape[0],k=this.shape[1],I=this.stride[0],z=this.stride[1],$=this.offset,Q=0,j=Math.ceil;return typeof C=="number"&&((Q=0|C)<0?($+=I*(D-1),D=j(-D/Q)):D=j(D/Q),I*=Q),typeof L=="number"&&((Q=0|L)<0?($+=z*(k-1),k=j(-k/Q)):k=j(k/Q),z*=Q),new T(this.data,D,k,I,z,$)},E.transpose=function(C,L){C=C===void 0?0:0|C,L=L===void 0?1:0|L;var D=this.shape,k=this.stride;return new T(this.data,D[C],D[L],k[C],k[L],this.offset)},E.pick=function(C,L){var D=[],k=[],I=this.offset;return typeof C=="number"&&C>=0?I=I+this.stride[0]*C|0:(D.push(this.shape[0]),k.push(this.stride[0])),typeof L=="number"&&L>=0?I=I+this.stride[1]*L|0:(D.push(this.shape[1]),k.push(this.stride[1])),(0,R[D.length+1])(this.data,D,k,I)},function(C,L,D,k){return new T(C,L[0],L[1],D[0],D[1],k)}},3:function(x,R,M){function T(C,L,D,k,I,z,$,Q){this.data=C,this.shape=[L,D,k],this.stride=[I,z,$],this.offset=0|Q}var E=T.prototype;return E.dtype=x,E.dimension=3,Object.defineProperty(E,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(E,"order",{get:function(){var C=Math.abs(this.stride[0]),L=Math.abs(this.stride[1]),D=Math.abs(this.stride[2]);return C>L?L>D?[2,1,0]:C>D?[1,2,0]:[1,0,2]:C>D?[2,0,1]:D>L?[0,1,2]:[0,2,1]}}),E.set=function(C,L,D,k){return x==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D,k):this.data[this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D]=k},E.get=function(C,L,D){return x==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D):this.data[this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D]},E.index=function(C,L,D){return this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D},E.hi=function(C,L,D){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:0|C,typeof L!="number"||L<0?this.shape[1]:0|L,typeof D!="number"||D<0?this.shape[2]:0|D,this.stride[0],this.stride[1],this.stride[2],this.offset)},E.lo=function(C,L,D){var k=this.offset,I=0,z=this.shape[0],$=this.shape[1],Q=this.shape[2],j=this.stride[0],U=this.stride[1],X=this.stride[2];return typeof C=="number"&&C>=0&&(k+=j*(I=0|C),z-=I),typeof L=="number"&&L>=0&&(k+=U*(I=0|L),$-=I),typeof D=="number"&&D>=0&&(k+=X*(I=0|D),Q-=I),new T(this.data,z,$,Q,j,U,X,k)},E.step=function(C,L,D){var k=this.shape[0],I=this.shape[1],z=this.shape[2],$=this.stride[0],Q=this.stride[1],j=this.stride[2],U=this.offset,X=0,te=Math.ceil;return typeof C=="number"&&((X=0|C)<0?(U+=$*(k-1),k=te(-k/X)):k=te(k/X),$*=X),typeof L=="number"&&((X=0|L)<0?(U+=Q*(I-1),I=te(-I/X)):I=te(I/X),Q*=X),typeof D=="number"&&((X=0|D)<0?(U+=j*(z-1),z=te(-z/X)):z=te(z/X),j*=X),new T(this.data,k,I,z,$,Q,j,U)},E.transpose=function(C,L,D){C=C===void 0?0:0|C,L=L===void 0?1:0|L,D=D===void 0?2:0|D;var k=this.shape,I=this.stride;return new T(this.data,k[C],k[L],k[D],I[C],I[L],I[D],this.offset)},E.pick=function(C,L,D){var k=[],I=[],z=this.offset;return typeof C=="number"&&C>=0?z=z+this.stride[0]*C|0:(k.push(this.shape[0]),I.push(this.stride[0])),typeof L=="number"&&L>=0?z=z+this.stride[1]*L|0:(k.push(this.shape[1]),I.push(this.stride[1])),typeof D=="number"&&D>=0?z=z+this.stride[2]*D|0:(k.push(this.shape[2]),I.push(this.stride[2])),(0,R[k.length+1])(this.data,k,I,z)},function(C,L,D,k){return new T(C,L[0],L[1],L[2],D[0],D[1],D[2],k)}},4:function(x,R,M){function T(C,L,D,k,I,z,$,Q,j,U){this.data=C,this.shape=[L,D,k,I],this.stride=[z,$,Q,j],this.offset=0|U}var E=T.prototype;return E.dtype=x,E.dimension=4,Object.defineProperty(E,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(E,"order",{get:M}),E.set=function(C,L,D,k,I){return x==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k,I):this.data[this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k]=I},E.get=function(C,L,D,k){return x==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k):this.data[this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k]},E.index=function(C,L,D,k){return this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k},E.hi=function(C,L,D,k){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:0|C,typeof L!="number"||L<0?this.shape[1]:0|L,typeof D!="number"||D<0?this.shape[2]:0|D,typeof k!="number"||k<0?this.shape[3]:0|k,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},E.lo=function(C,L,D,k){var I=this.offset,z=0,$=this.shape[0],Q=this.shape[1],j=this.shape[2],U=this.shape[3],X=this.stride[0],te=this.stride[1],W=this.stride[2],K=this.stride[3];return typeof C=="number"&&C>=0&&(I+=X*(z=0|C),$-=z),typeof L=="number"&&L>=0&&(I+=te*(z=0|L),Q-=z),typeof D=="number"&&D>=0&&(I+=W*(z=0|D),j-=z),typeof k=="number"&&k>=0&&(I+=K*(z=0|k),U-=z),new T(this.data,$,Q,j,U,X,te,W,K,I)},E.step=function(C,L,D,k){var I=this.shape[0],z=this.shape[1],$=this.shape[2],Q=this.shape[3],j=this.stride[0],U=this.stride[1],X=this.stride[2],te=this.stride[3],W=this.offset,K=0,oe=Math.ceil;return typeof C=="number"&&((K=0|C)<0?(W+=j*(I-1),I=oe(-I/K)):I=oe(I/K),j*=K),typeof L=="number"&&((K=0|L)<0?(W+=U*(z-1),z=oe(-z/K)):z=oe(z/K),U*=K),typeof D=="number"&&((K=0|D)<0?(W+=X*($-1),$=oe(-$/K)):$=oe($/K),X*=K),typeof k=="number"&&((K=0|k)<0?(W+=te*(Q-1),Q=oe(-Q/K)):Q=oe(Q/K),te*=K),new T(this.data,I,z,$,Q,j,U,X,te,W)},E.transpose=function(C,L,D,k){C=C===void 0?0:0|C,L=L===void 0?1:0|L,D=D===void 0?2:0|D,k=k===void 0?3:0|k;var I=this.shape,z=this.stride;return new T(this.data,I[C],I[L],I[D],I[k],z[C],z[L],z[D],z[k],this.offset)},E.pick=function(C,L,D,k){var I=[],z=[],$=this.offset;return typeof C=="number"&&C>=0?$=$+this.stride[0]*C|0:(I.push(this.shape[0]),z.push(this.stride[0])),typeof L=="number"&&L>=0?$=$+this.stride[1]*L|0:(I.push(this.shape[1]),z.push(this.stride[1])),typeof D=="number"&&D>=0?$=$+this.stride[2]*D|0:(I.push(this.shape[2]),z.push(this.stride[2])),typeof k=="number"&&k>=0?$=$+this.stride[3]*k|0:(I.push(this.shape[3]),z.push(this.stride[3])),(0,R[I.length+1])(this.data,I,z,$)},function(C,L,D,k){return new T(C,L[0],L[1],L[2],L[3],D[0],D[1],D[2],D[3],k)}},5:function(x,R,M){function T(C,L,D,k,I,z,$,Q,j,U,X,te){this.data=C,this.shape=[L,D,k,I,z],this.stride=[$,Q,j,U,X],this.offset=0|te}var E=T.prototype;return E.dtype=x,E.dimension=5,Object.defineProperty(E,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(E,"order",{get:M}),E.set=function(C,L,D,k,I,z){return x==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I,z):this.data[this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I]=z},E.get=function(C,L,D,k,I){return x==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I):this.data[this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I]},E.index=function(C,L,D,k,I){return this.offset+this.stride[0]*C+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I},E.hi=function(C,L,D,k,I){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:0|C,typeof L!="number"||L<0?this.shape[1]:0|L,typeof D!="number"||D<0?this.shape[2]:0|D,typeof k!="number"||k<0?this.shape[3]:0|k,typeof I!="number"||I<0?this.shape[4]:0|I,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},E.lo=function(C,L,D,k,I){var z=this.offset,$=0,Q=this.shape[0],j=this.shape[1],U=this.shape[2],X=this.shape[3],te=this.shape[4],W=this.stride[0],K=this.stride[1],oe=this.stride[2],q=this.stride[3],Y=this.stride[4];return typeof C=="number"&&C>=0&&(z+=W*($=0|C),Q-=$),typeof L=="number"&&L>=0&&(z+=K*($=0|L),j-=$),typeof D=="number"&&D>=0&&(z+=oe*($=0|D),U-=$),typeof k=="number"&&k>=0&&(z+=q*($=0|k),X-=$),typeof I=="number"&&I>=0&&(z+=Y*($=0|I),te-=$),new T(this.data,Q,j,U,X,te,W,K,oe,q,Y,z)},E.step=function(C,L,D,k,I){var z=this.shape[0],$=this.shape[1],Q=this.shape[2],j=this.shape[3],U=this.shape[4],X=this.stride[0],te=this.stride[1],W=this.stride[2],K=this.stride[3],oe=this.stride[4],q=this.offset,Y=0,ee=Math.ceil;return typeof C=="number"&&((Y=0|C)<0?(q+=X*(z-1),z=ee(-z/Y)):z=ee(z/Y),X*=Y),typeof L=="number"&&((Y=0|L)<0?(q+=te*($-1),$=ee(-$/Y)):$=ee($/Y),te*=Y),typeof D=="number"&&((Y=0|D)<0?(q+=W*(Q-1),Q=ee(-Q/Y)):Q=ee(Q/Y),W*=Y),typeof k=="number"&&((Y=0|k)<0?(q+=K*(j-1),j=ee(-j/Y)):j=ee(j/Y),K*=Y),typeof I=="number"&&((Y=0|I)<0?(q+=oe*(U-1),U=ee(-U/Y)):U=ee(U/Y),oe*=Y),new T(this.data,z,$,Q,j,U,X,te,W,K,oe,q)},E.transpose=function(C,L,D,k,I){C=C===void 0?0:0|C,L=L===void 0?1:0|L,D=D===void 0?2:0|D,k=k===void 0?3:0|k,I=I===void 0?4:0|I;var z=this.shape,$=this.stride;return new T(this.data,z[C],z[L],z[D],z[k],z[I],$[C],$[L],$[D],$[k],$[I],this.offset)},E.pick=function(C,L,D,k,I){var z=[],$=[],Q=this.offset;return typeof C=="number"&&C>=0?Q=Q+this.stride[0]*C|0:(z.push(this.shape[0]),$.push(this.stride[0])),typeof L=="number"&&L>=0?Q=Q+this.stride[1]*L|0:(z.push(this.shape[1]),$.push(this.stride[1])),typeof D=="number"&&D>=0?Q=Q+this.stride[2]*D|0:(z.push(this.shape[2]),$.push(this.stride[2])),typeof k=="number"&&k>=0?Q=Q+this.stride[3]*k|0:(z.push(this.shape[3]),$.push(this.stride[3])),typeof I=="number"&&I>=0?Q=Q+this.stride[4]*I|0:(z.push(this.shape[4]),$.push(this.stride[4])),(0,R[z.length+1])(this.data,z,$,Q)},function(C,L,D,k){return new T(C,L[0],L[1],L[2],L[3],L[4],D[0],D[1],D[2],D[3],D[4],k)}}};function S(x,R){var M=R===-1?"T":String(R),T=_[M];return R===-1?T(x):R===0?T(x,A[x][0]):T(x,A[x],v)}var A={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};y.exports=function(x,R,M,T){if(x===void 0)return(0,A.array[0])([]);typeof x=="number"&&(x=[x]),R===void 0&&(R=[x.length]);var E=R.length;if(M===void 0){M=new Array(E);for(var C=E-1,L=1;C>=0;--C)M[C]=L,L*=R[C]}if(T===void 0)for(T=0,C=0;C>>0;y.exports=function(v,_){if(isNaN(v)||isNaN(_))return NaN;if(v===_)return v;if(v===0)return _<0?-h:h;var S=u.hi(v),A=u.lo(v);return _>v==v>0?A===m?(S+=1,A=0):A+=1:A===0?(A=m,S-=1):A-=1,u.pack(A,S)}},115:function(y,p){p.vertexNormals=function(a,u,h){for(var m=u.length,v=new Array(m),_=h===void 0?1e-6:h,S=0;S_){var Q=v[R],j=1/Math.sqrt(k*z);for($=0;$<3;++$){var U=($+1)%3,X=($+2)%3;Q[$]+=j*(I[U]*D[X]-I[X]*D[U])}}}for(S=0;S_)for(j=1/Math.sqrt(te),$=0;$<3;++$)Q[$]*=j;else for($=0;$<3;++$)Q[$]=0}return v},p.faceNormals=function(a,u,h){for(var m=a.length,v=new Array(m),_=h===void 0?1e-6:h,S=0;S_?1/Math.sqrt(C):0,R=0;R<3;++R)E[R]*=C;v[S]=E}return v}},567:function(y){y.exports=function(p,a,u,h,m,v,_,S,A,x){var R=a+v+x;if(M>0){var M=Math.sqrt(R+1);p[0]=.5*(_-A)/M,p[1]=.5*(S-h)/M,p[2]=.5*(u-v)/M,p[3]=.5*M}else{var T=Math.max(a,v,x);M=Math.sqrt(2*T-R+1),a>=T?(p[0]=.5*M,p[1]=.5*(m+u)/M,p[2]=.5*(S+h)/M,p[3]=.5*(_-A)/M):v>=T?(p[0]=.5*(u+m)/M,p[1]=.5*M,p[2]=.5*(A+_)/M,p[3]=.5*(S-h)/M):(p[0]=.5*(h+S)/M,p[1]=.5*(_+A)/M,p[2]=.5*M,p[3]=.5*(u-m)/M)}return p}},7774:function(y,p,a){y.exports=function(T){var E=(T=T||{}).center||[0,0,0],C=T.rotation||[0,0,0,1],L=T.radius||1;E=[].slice.call(E,0,3),x(C=[].slice.call(C,0,4),C);var D=new R(C,E,Math.log(L));return D.setDistanceLimits(T.zoomMin,T.zoomMax),("eye"in T||"up"in T)&&D.lookAt(0,T.eye,T.center,T.up),D};var u=a(8444),h=a(3012),m=a(5950),v=a(7437),_=a(567);function S(T,E,C){return Math.sqrt(Math.pow(T,2)+Math.pow(E,2)+Math.pow(C,2))}function A(T,E,C,L){return Math.sqrt(Math.pow(T,2)+Math.pow(E,2)+Math.pow(C,2)+Math.pow(L,2))}function x(T,E){var C=E[0],L=E[1],D=E[2],k=E[3],I=A(C,L,D,k);I>1e-6?(T[0]=C/I,T[1]=L/I,T[2]=D/I,T[3]=k/I):(T[0]=T[1]=T[2]=0,T[3]=1)}function R(T,E,C){this.radius=u([C]),this.center=u(E),this.rotation=u(T),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var M=R.prototype;M.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},M.recalcMatrix=function(T){this.radius.curve(T),this.center.curve(T),this.rotation.curve(T);var E=this.computedRotation;x(E,E);var C=this.computedMatrix;m(C,E);var L=this.computedCenter,D=this.computedEye,k=this.computedUp,I=Math.exp(this.computedRadius[0]);D[0]=L[0]+I*C[2],D[1]=L[1]+I*C[6],D[2]=L[2]+I*C[10],k[0]=C[1],k[1]=C[5],k[2]=C[9];for(var z=0;z<3;++z){for(var $=0,Q=0;Q<3;++Q)$+=C[z+4*Q]*D[Q];C[12+z]=-$}},M.getMatrix=function(T,E){this.recalcMatrix(T);var C=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=C[L];return E}return C},M.idle=function(T){this.center.idle(T),this.radius.idle(T),this.rotation.idle(T)},M.flush=function(T){this.center.flush(T),this.radius.flush(T),this.rotation.flush(T)},M.pan=function(T,E,C,L){E=E||0,C=C||0,L=L||0,this.recalcMatrix(T);var D=this.computedMatrix,k=D[1],I=D[5],z=D[9],$=S(k,I,z);k/=$,I/=$,z/=$;var Q=D[0],j=D[4],U=D[8],X=Q*k+j*I+U*z,te=S(Q-=k*X,j-=I*X,U-=z*X);Q/=te,j/=te,U/=te,D[2],D[6],D[10];var W=Q*E+k*C,K=j*E+I*C,oe=U*E+z*C;this.center.move(T,W,K,oe);var q=Math.exp(this.computedRadius[0]);q=Math.max(1e-4,q+L),this.radius.set(T,Math.log(q))},M.rotate=function(T,E,C,L){this.recalcMatrix(T),E=E||0,C=C||0;var D=this.computedMatrix,k=D[0],I=D[4],z=D[8],$=D[1],Q=D[5],j=D[9],U=D[2],X=D[6],te=D[10],W=E*k+C*$,K=E*I+C*Q,oe=E*z+C*j,q=-(X*oe-te*K),Y=-(te*W-U*oe),ee=-(U*K-X*W),me=Math.sqrt(Math.max(0,1-Math.pow(q,2)-Math.pow(Y,2)-Math.pow(ee,2))),he=A(q,Y,ee,me);he>1e-6?(q/=he,Y/=he,ee/=he,me/=he):(q=Y=ee=0,me=1);var se=this.computedRotation,ae=se[0],ce=se[1],de=se[2],ve=se[3],ye=ae*me+ve*q+ce*ee-de*Y,_e=ce*me+ve*Y+de*q-ae*ee,Se=de*me+ve*ee+ae*Y-ce*q,Te=ve*me-ae*q-ce*Y-de*ee;if(L){q=U,Y=X,ee=te;var Pe=Math.sin(L)/S(q,Y,ee);q*=Pe,Y*=Pe,ee*=Pe,Te=Te*(me=Math.cos(E))-(ye=ye*me+Te*q+_e*ee-Se*Y)*q-(_e=_e*me+Te*Y+Se*q-ye*ee)*Y-(Se=Se*me+Te*ee+ye*Y-_e*q)*ee}var Ie=A(ye,_e,Se,Te);Ie>1e-6?(ye/=Ie,_e/=Ie,Se/=Ie,Te/=Ie):(ye=_e=Se=0,Te=1),this.rotation.set(T,ye,_e,Se,Te)},M.lookAt=function(T,E,C,L){this.recalcMatrix(T),C=C||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var D=this.computedMatrix;h(D,E,C,L);var k=this.computedRotation;_(k,D[0],D[1],D[2],D[4],D[5],D[6],D[8],D[9],D[10]),x(k,k),this.rotation.set(T,k[0],k[1],k[2],k[3]);for(var I=0,z=0;z<3;++z)I+=Math.pow(C[z]-E[z],2);this.radius.set(T,.5*Math.log(Math.max(I,1e-6))),this.center.set(T,C[0],C[1],C[2])},M.translate=function(T,E,C,L){this.center.move(T,E||0,C||0,L||0)},M.setMatrix=function(T,E){var C=this.computedRotation;_(C,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),x(C,C),this.rotation.set(T,C[0],C[1],C[2],C[3]);var L=this.computedMatrix;v(L,E);var D=L[15];if(Math.abs(D)>1e-6){var k=L[12]/D,I=L[13]/D,z=L[14]/D;this.recalcMatrix(T);var $=Math.exp(this.computedRadius[0]);this.center.set(T,k-L[2]*$,I-L[6]*$,z-L[10]*$),this.radius.idle(T)}else this.center.idle(T),this.radius.idle(T)},M.setDistance=function(T,E){E>0&&this.radius.set(T,Math.log(E))},M.setDistanceLimits=function(T,E){T=T>0?Math.log(T):-1/0,E=E>0?Math.log(E):1/0,E=Math.max(E,T),this.radius.bounds[0][0]=T,this.radius.bounds[1][0]=E},M.getDistanceLimits=function(T){var E=this.radius.bounds;return T?(T[0]=Math.exp(E[0][0]),T[1]=Math.exp(E[1][0]),T):[Math.exp(E[0][0]),Math.exp(E[1][0])]},M.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},M.fromJSON=function(T){var E=this.lastT(),C=T.center;C&&this.center.set(E,C[0],C[1],C[2]);var L=T.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var D=T.distance;D&&D>0&&this.radius.set(E,Math.log(D)),this.setDistanceLimits(T.zoomMin,T.zoomMax)}},4930:function(y,p,a){var u=a(6184);y.exports=function(h,m,v){return u(v=v!==void 0?v+"":" ",m)+h}},4405:function(y){y.exports=function(p,a){a||(a=[0,""]),p=String(p);var u=parseFloat(p,10);return a[0]=u,a[1]=p.match(/[\d.\-\+]*\s*(.*)/)[1]||"",a}},4166:function(y,p,a){y.exports=function(h,m){for(var v=0|m.length,_=h.length,S=[new Array(v),new Array(v)],A=0;A0){Q=S[X][z][0],U=X;break}j=Q[1^U];for(var te=0;te<2;++te)for(var W=S[te][z],K=0;K0&&(Q=oe,j=q,U=te)}return $||Q&&M(Q,U),j}function E(I,z){var $=S[z][I][0],Q=[I];M($,z);for(var j=$[1^z];;){for(;j!==I;)Q.push(j),j=T(Q[Q.length-2],j,!1);if(S[0][I].length+S[1][I].length===0)break;var U=Q[Q.length-1],X=I,te=Q[1],W=T(U,X,!0);if(u(m[U],m[X],m[te],m[W])<0)break;Q.push(I),j=T(U,X)}return Q}function C(I,z){return z[1]===z[z.length-1]}for(A=0;A0;){S[0][A].length;var k=E(A,L);C(0,k)?D.push.apply(D,k):(D.length>0&&R.push(D),D=k)}D.length>0&&R.push(D)}return R};var u=a(9398)},3959:function(y,p,a){y.exports=function(h,m){for(var v=u(h,m.length),_=new Array(m.length),S=new Array(m.length),A=[],x=0;x0;){_[L=A.pop()]=!1;var M=v[L];for(x=0;x0})).length,I=new Array(k),z=new Array(k);for(L=0;L0;){var _e=ve.pop(),Se=Y[_e];S(Se,function(He,Ve){return He-Ve});var Te,Pe=Se.length,Ie=ye[_e];for(Ie===0&&(Te=[ze=D[_e]]),L=0;L=0||(ye[De]=1^Ie,ve.push(De),Ie===0&&(de(ze=D[De])||(ze.reverse(),Te.push(ze))))}Ie===0&&T.push(Te)}return T};var u=a(8348),h=a(4166),m=a(211),v=a(9660),_=a(9662),S=a(1215),A=a(3959);function x(R,M){for(var T=new Array(R),E=0;E0&&X[W]===te[0]))return 1;K=U[W-1]}for(var oe=1;K;){var q=K.key,Y=u(te,q[0],q[1]);if(q[0][0]0))return 0;oe=-1,K=K.right}else if(Y>0)K=K.left;else{if(!(Y<0))return 0;oe=1,K=K.right}}return oe}}(Q.slabs,Q.coordinates);return T.length===0?j:function(U,X){return function(te){return U(te[0],te[1])?0:X(te)}}(S(T),j)};var u=a(417)[3],h=a(4385),m=a(9014),v=a(5070);function _(){return!0}function S(x){for(var R={},M=0;M=x?(X=1,I=x+2*T+C):I=T*(X=-T/x)+C):(X=0,E>=0?(te=0,I=C):-E>=M?(te=1,I=M+2*E+C):I=E*(te=-E/M)+C);else if(te<0)te=0,T>=0?(X=0,I=C):-T>=x?(X=1,I=x+2*T+C):I=T*(X=-T/x)+C;else{var W=1/U;I=(X*=W)*(x*X+R*(te*=W)+2*T)+te*(R*X+M*te+2*E)+C}else X<0?($=M+E)>(z=R+T)?(Q=$-z)>=(j=x-2*R+M)?(X=1,te=0,I=x+2*T+C):I=(X=Q/j)*(x*X+R*(te=1-X)+2*T)+te*(R*X+M*te+2*E)+C:(X=0,$<=0?(te=1,I=M+2*E+C):E>=0?(te=0,I=C):I=E*(te=-E/M)+C):te<0?($=x+T)>(z=R+E)?(Q=$-z)>=(j=x-2*R+M)?(te=1,X=0,I=M+2*E+C):I=(X=1-(te=Q/j))*(x*X+R*te+2*T)+te*(R*X+M*te+2*E)+C:(te=0,$<=0?(X=1,I=x+2*T+C):T>=0?(X=0,I=C):I=T*(X=-T/x)+C):(Q=M+E-R-T)<=0?(X=0,te=1,I=M+2*E+C):Q>=(j=x-2*R+M)?(X=1,te=0,I=x+2*T+C):I=(X=Q/j)*(x*X+R*(te=1-X)+2*T)+te*(R*X+M*te+2*E)+C;var K=1-X-te;for(A=0;A<_.length;++A)S[A]=K*h[A]+X*m[A]+te*v[A];return I<0?0:I}},1116:function(y,p,a){y.exports=a(6093)},7584:function(y,p,a){var u=a(1539);y.exports=function(h,m){for(var v=h.length,_=new Array(v),S=0;S0){var M=v[S-1];if(u(x,M)===0&&m(M)!==R){S-=1;continue}}v[S++]=x}}return v.length=S,v}},6184:function(y){var p,a="";y.exports=function(u,h){if(typeof u!="string")throw new TypeError("expected a string");if(h===1)return u;if(h===2)return u+u;var m=u.length*h;if(p!==u||p===void 0)p=u,a="";else if(a.length>=m)return a.substr(0,m);for(;m>a.length&&h>1;)1&h&&(a+=u),h>>=1,u+=u;return a=(a+=u).substr(0,m)}},8161:function(y,p,a){y.exports=a.g.performance&&a.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},402:function(y){y.exports=function(p){for(var a=p.length,u=p[p.length-1],h=a,m=a-2;m>=0;--m){var v=u;(A=(S=p[m])-((u=v+S)-v))&&(p[--h]=u,u=A)}var _=0;for(m=h;m0){if($<=0)return Q;I=z+$}else{if(!(z<0)||$>=0)return Q;I=-(z+$)}var j=33306690738754716e-32*I;return Q>=j||Q<=-j?Q:R(L,D,k)},function(L,D,k,I){var z=L[0]-I[0],$=D[0]-I[0],Q=k[0]-I[0],j=L[1]-I[1],U=D[1]-I[1],X=k[1]-I[1],te=L[2]-I[2],W=D[2]-I[2],K=k[2]-I[2],oe=$*X,q=Q*U,Y=Q*j,ee=z*X,me=z*U,he=$*j,se=te*(oe-q)+W*(Y-ee)+K*(me-he),ae=7771561172376103e-31*((Math.abs(oe)+Math.abs(q))*Math.abs(te)+(Math.abs(Y)+Math.abs(ee))*Math.abs(W)+(Math.abs(me)+Math.abs(he))*Math.abs(K));return se>ae||-se>ae?se:M(L,D,k,I)}];function E(L){var D=T[L.length];return D||(D=T[L.length]=x(L.length)),D.apply(void 0,L)}function C(L,D,k,I,z,$,Q){return function(j,U,X,te,W){switch(arguments.length){case 0:case 1:return 0;case 2:return I(j,U);case 3:return z(j,U,X);case 4:return $(j,U,X,te);case 5:return Q(j,U,X,te,W)}for(var K=new Array(arguments.length),oe=0;oe0&&A>0||S<0&&A<0)return!1;var x=u(v,h,m),R=u(_,h,m);return!(x>0&&R>0||x<0&&R<0)&&(S!==0||A!==0||x!==0||R!==0||function(M,T,E,C){for(var L=0;L<2;++L){var D=M[L],k=T[L],I=Math.min(D,k),z=Math.max(D,k),$=E[L],Q=C[L],j=Math.min($,Q);if(Math.max($,Q)=h?(m=M,(A+=1)=h?(m=M,(A+=1)>1,M=h[2*R+1];if(M===S)return R;S>1,M=h[2*R+1];if(M===S)return R;S>1,M=h[2*R+1];if(M===S)return R;S0)-(h<0)},p.abs=function(h){var m=h>>31;return(h^m)-m},p.min=function(h,m){return m^(h^m)&-(h65535)<<4,m|=v=((h>>>=m)>255)<<3,m|=v=((h>>>=v)>15)<<2,(m|=v=((h>>>=v)>3)<<1)|(h>>>=v)>>1},p.log10=function(h){return h>=1e9?9:h>=1e8?8:h>=1e7?7:h>=1e6?6:h>=1e5?5:h>=1e4?4:h>=1e3?3:h>=100?2:h>=10?1:0},p.popCount=function(h){return 16843009*((h=(858993459&(h-=h>>>1&1431655765))+(h>>>2&858993459))+(h>>>4)&252645135)>>>24},p.countTrailingZeros=a,p.nextPow2=function(h){return h+=h===0,--h,h|=h>>>1,h|=h>>>2,h|=h>>>4,1+((h|=h>>>8)|h>>>16)},p.prevPow2=function(h){return h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,(h|=h>>>16)-(h>>>1)},p.parity=function(h){return h^=h>>>16,h^=h>>>8,h^=h>>>4,27030>>>(h&=15)&1};var u=new Array(256);(function(h){for(var m=0;m<256;++m){var v=m,_=m,S=7;for(v>>>=1;v;v>>>=1)_<<=1,_|=1&v,--S;h[m]=_<>>8&255]<<16|u[h>>>16&255]<<8|u[h>>>24&255]},p.interleave2=function(h,m){return(h=1431655765&((h=858993459&((h=252645135&((h=16711935&((h&=65535)|h<<8))|h<<4))|h<<2))|h<<1))|(m=1431655765&((m=858993459&((m=252645135&((m=16711935&((m&=65535)|m<<8))|m<<4))|m<<2))|m<<1))<<1},p.deinterleave2=function(h,m){return(h=65535&((h=16711935&((h=252645135&((h=858993459&((h=h>>>m&1431655765)|h>>>1))|h>>>2))|h>>>4))|h>>>16))<<16>>16},p.interleave3=function(h,m,v){return h=1227133513&((h=3272356035&((h=251719695&((h=4278190335&((h&=1023)|h<<16))|h<<8))|h<<4))|h<<2),(h|=(m=1227133513&((m=3272356035&((m=251719695&((m=4278190335&((m&=1023)|m<<16))|m<<8))|m<<4))|m<<2))<<1)|(v=1227133513&((v=3272356035&((v=251719695&((v=4278190335&((v&=1023)|v<<16))|v<<8))|v<<4))|v<<2))<<2},p.deinterleave3=function(h,m){return(h=1023&((h=4278190335&((h=251719695&((h=3272356035&((h=h>>>m&1227133513)|h>>>2))|h>>>4))|h>>>8))|h>>>16))<<22>>22},p.nextCombination=function(h){var m=h|h-1;return m+1|(~m&-~m)-1>>>a(h)+1}},6656:function(y,p,a){var u=a(9392),h=a(9521);function m(M,T){var E=M.length,C=M.length-T.length,L=Math.min;if(C)return C;switch(E){case 0:return 0;case 1:return M[0]-T[0];case 2:return(I=M[0]+M[1]-T[0]-T[1])||L(M[0],M[1])-L(T[0],T[1]);case 3:var D=M[0]+M[1],k=T[0]+T[1];if(I=D+M[2]-(k+T[2]))return I;var I,z=L(M[0],M[1]),$=L(T[0],T[1]);return(I=L(z,M[2])-L($,T[2]))||L(z+M[2],D)-L($+T[2],k);default:var Q=M.slice(0);Q.sort();var j=T.slice(0);j.sort();for(var U=0;U>1,k=m(M[D],T);k<=0?(k===0&&(L=D),E=D+1):k>0&&(C=D-1)}return L}function x(M,T){for(var E=new Array(M.length),C=0,L=E.length;C=M.length||m(M[X],D)!==0););}return E}function R(M,T){if(T<0)return[];for(var E=[],C=(1<>>$&1&&z.push(L[$]);T.push(z)}return _(T)},p.skeleton=R,p.boundary=function(M){for(var T=[],E=0,C=M.length;E>1:(he>>1)-1}function Q(he){for(var se=z(he);;){var ae=se,ce=2*he+1,de=2*(he+1),ve=he;if(ce0;){var ae=$(he);if(!(ae>=0&&se0){var he=W[0];return I(0,oe-1),oe-=1,Q(0),he}return-1}function X(he,se){var ae=W[he];return M[ae]===se?he:(M[ae]=-1/0,j(he),U(),M[ae]=se,j((oe+=1)-1))}function te(he){if(!T[he]){T[he]=!0;var se=x[he],ae=R[he];x[ae]>=0&&(x[ae]=se),R[se]>=0&&(R[se]=ae),K[se]>=0&&X(K[se],k(se)),K[ae]>=0&&X(K[ae],k(ae))}}var W=[],K=new Array(S);for(E=0;E>1;E>=0;--E)Q(E);for(;;){var q=U();if(q<0||M[q]>_)break;te(q)}var Y=[];for(E=0;E=0&&ae>=0&&se!==ae){var ce=K[se],de=K[ae];ce!==de&&me.push([ce,de])}}),h.unique(h.normalize(me)),{positions:Y,edges:me}};var u=a(417),h=a(6656)},6638:function(y,p,a){y.exports=function(m,v){var _,S,A,x;if(v[0][0]v[1][0]))return h(v,m);_=v[1],S=v[0]}if(m[0][0]m[1][0]))return-h(m,v);A=m[1],x=m[0]}var R=u(_,S,x),M=u(_,S,A);if(R<0){if(M<=0)return R}else if(R>0){if(M>=0)return R}else if(M)return M;if(R=u(x,A,S),M=u(x,A,_),R<0){if(M<=0)return R}else if(R>0){if(M>=0)return R}else if(M)return M;return S[0]-x[0]};var u=a(417);function h(m,v){var _,S,A,x;if(v[0][0]v[1][0])){var R=Math.min(m[0][1],m[1][1]),M=Math.max(m[0][1],m[1][1]),T=Math.min(v[0][1],v[1][1]),E=Math.max(v[0][1],v[1][1]);return ME?R-E:M-E}_=v[1],S=v[0]}m[0][1]0)if(T[0]!==D[1][0])E=M,M=M.right;else{if(I=A(M.right,T))return I;M=M.left}else{if(T[0]!==D[1][0])return M;var I;if(I=A(M.right,T))return I;M=M.left}}return E}function x(M,T,E,C){this.y=M,this.index=T,this.start=E,this.closed=C}function R(M,T,E,C){this.x=M,this.segment=T,this.create=E,this.index=C}_.prototype.castUp=function(M){var T=u.le(this.coordinates,M[0]);if(T<0)return-1;this.slabs[T];var E=A(this.slabs[T],M),C=-1;if(E&&(C=E.value),this.coordinates[T]===M[0]){var L=null;if(E&&(L=E.key),T>0){var D=A(this.slabs[T-1],M);D&&(L?v(D.key,L)>0&&(L=D.key,C=D.value):(C=D.value,L=D.key))}var k=this.horizontal[T];if(k.length>0){var I=u.ge(k,M[1],S);if(I=k.length)return C;z=k[I]}}if(z.start)if(L){var $=m(L[0],L[1],[M[0],z.y]);L[0][0]>L[1][0]&&($=-$),$>0&&(C=z.index)}else C=z.index;else z.y!==M[1]&&(C=z.index)}}}return C}},4670:function(y,p,a){var u=a(9130),h=a(9662);function m(_,S){var A=h(u(_,S),[S[S.length-1]]);return A[A.length-1]}function v(_,S,A,x){var R=-S/(x-S);R<0?R=0:R>1&&(R=1);for(var M=1-R,T=_.length,E=new Array(T),C=0;C0||R>0&&C<0){var L=v(M,C,T,R);A.push(L),x.push(L.slice())}C<0?x.push(T.slice()):C>0?A.push(T.slice()):(A.push(T.slice()),x.push(T.slice())),R=C}return{positive:A,negative:x}},y.exports.positive=function(_,S){for(var A=[],x=m(_[_.length-1],S),R=_[_.length-1],M=_[0],T=0;T<_.length;++T,R=M){var E=m(M=_[T],S);(x<0&&E>0||x>0&&E<0)&&A.push(v(R,E,M,x)),E>=0&&A.push(M.slice()),x=E}return A},y.exports.negative=function(_,S){for(var A=[],x=m(_[_.length-1],S),R=_[_.length-1],M=_[0],T=0;T<_.length;++T,R=M){var E=m(M=_[T],S);(x<0&&E>0||x>0&&E<0)&&A.push(v(R,E,M,x)),E<=0&&A.push(M.slice()),x=E}return A}},8974:function(y,p,a){var u;(function(){var h={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function m(S){return function(A,x){var R,M,T,E,C,L,D,k,I,z=1,$=A.length,Q="";for(M=0;M<$;M++)if(typeof A[M]=="string")Q+=A[M];else if(typeof A[M]=="object"){if((E=A[M]).keys)for(R=x[z],T=0;T=0),E.type){case"b":R=parseInt(R,10).toString(2);break;case"c":R=String.fromCharCode(parseInt(R,10));break;case"d":case"i":R=parseInt(R,10);break;case"j":R=JSON.stringify(R,null,E.width?parseInt(E.width):0);break;case"e":R=E.precision?parseFloat(R).toExponential(E.precision):parseFloat(R).toExponential();break;case"f":R=E.precision?parseFloat(R).toFixed(E.precision):parseFloat(R);break;case"g":R=E.precision?String(Number(R.toPrecision(E.precision))):parseFloat(R);break;case"o":R=(parseInt(R,10)>>>0).toString(8);break;case"s":R=String(R),R=E.precision?R.substring(0,E.precision):R;break;case"t":R=String(!!R),R=E.precision?R.substring(0,E.precision):R;break;case"T":R=Object.prototype.toString.call(R).slice(8,-1).toLowerCase(),R=E.precision?R.substring(0,E.precision):R;break;case"u":R=parseInt(R,10)>>>0;break;case"v":R=R.valueOf(),R=E.precision?R.substring(0,E.precision):R;break;case"x":R=(parseInt(R,10)>>>0).toString(16);break;case"X":R=(parseInt(R,10)>>>0).toString(16).toUpperCase()}h.json.test(E.type)?Q+=R:(!h.number.test(E.type)||k&&!E.sign?I="":(I=k?"+":"-",R=R.toString().replace(h.sign,"")),L=E.pad_char?E.pad_char==="0"?"0":E.pad_char.charAt(1):" ",D=E.width-(I+R).length,C=E.width&&D>0?L.repeat(D):"",Q+=E.align?I+R+C:L==="0"?I+C+R:C+I+R)}return Q}(function(A){if(_[A])return _[A];for(var x,R=A,M=[],T=0;R;){if((x=h.text.exec(R))!==null)M.push(x[0]);else if((x=h.modulo.exec(R))!==null)M.push("%");else{if((x=h.placeholder.exec(R))===null)throw new SyntaxError("[sprintf] unexpected placeholder");if(x[2]){T|=1;var E=[],C=x[2],L=[];if((L=h.key.exec(C))===null)throw new SyntaxError("[sprintf] failed to parse named argument key");for(E.push(L[1]);(C=C.substring(L[0].length))!=="";)if((L=h.key_access.exec(C))!==null)E.push(L[1]);else{if((L=h.index_access.exec(C))===null)throw new SyntaxError("[sprintf] failed to parse named argument key");E.push(L[1])}x[2]=E}else T|=2;if(T===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");M.push({placeholder:x[0],param_no:x[1],keys:x[2],sign:x[3],pad_char:x[4],align:x[5],width:x[6],precision:x[7],type:x[8]})}R=R.substring(x[0].length)}return _[A]=M}(S),arguments)}function v(S,A){return m.apply(null,[S].concat(A||[]))}var _=Object.create(null);p.sprintf=m,p.vsprintf=v,typeof window<"u"&&(window.sprintf=m,window.vsprintf=v,(u=(function(){return{sprintf:m,vsprintf:v}}).call(p,a,p,y))===void 0||(y.exports=u))})()},4162:function(y,p,a){y.exports=function(_,S){if(_.dimension<=0)return{positions:[],cells:[]};if(_.dimension===1)return function(R,M){for(var T=h(R,M),E=T.length,C=new Array(E),L=new Array(E),D=0;DE|0},vertex:function(R,M,T,E,C,L,D,k,I,z,$,Q,j){var U=(D<<0)+(k<<1)+(I<<2)+(z<<3)|0;if(U!==0&&U!==15)switch(U){case 0:case 15:$.push([R-.5,M-.5]);break;case 1:$.push([R-.25-.25*(E+T-2*j)/(T-E),M-.25-.25*(C+T-2*j)/(T-C)]);break;case 2:$.push([R-.75-.25*(-E-T+2*j)/(E-T),M-.25-.25*(L+E-2*j)/(E-L)]);break;case 3:$.push([R-.5,M-.5-.5*(C+T+L+E-4*j)/(T-C+E-L)]);break;case 4:$.push([R-.25-.25*(L+C-2*j)/(C-L),M-.75-.25*(-C-T+2*j)/(C-T)]);break;case 5:$.push([R-.5-.5*(E+T+L+C-4*j)/(T-E+C-L),M-.5]);break;case 6:$.push([R-.5-.25*(-E-T+L+C)/(E-T+C-L),M-.5-.25*(-C-T+L+E)/(C-T+E-L)]);break;case 7:$.push([R-.75-.25*(L+C-2*j)/(C-L),M-.75-.25*(L+E-2*j)/(E-L)]);break;case 8:$.push([R-.75-.25*(-L-C+2*j)/(L-C),M-.75-.25*(-L-E+2*j)/(L-E)]);break;case 9:$.push([R-.5-.25*(E+T+-L-C)/(T-E+L-C),M-.5-.25*(C+T+-L-E)/(T-C+L-E)]);break;case 10:$.push([R-.5-.5*(-E-T-L-C+4*j)/(E-T+L-C),M-.5]);break;case 11:$.push([R-.25-.25*(-L-C+2*j)/(L-C),M-.75-.25*(C+T-2*j)/(T-C)]);break;case 12:$.push([R-.5,M-.5-.5*(-C-T-L-E+4*j)/(C-T+L-E)]);break;case 13:$.push([R-.75-.25*(E+T-2*j)/(T-E),M-.25-.25*(-L-E+2*j)/(L-E)]);break;case 14:$.push([R-.25-.25*(-E-T+2*j)/(E-T),M-.25-.25*(-C-T+2*j)/(C-T)])}},cell:function(R,M,T,E,C,L,D,k,I){C?k.push([R,M]):k.push([M,R])}});return function(R,M){var T=[],E=[];return x(R,T,E,M),{positions:T,cells:E}}}},v={}},6946:function(y,p,a){y.exports=function v(_,S,A){A=A||{};var x=m[_];x||(x=m[_]={" ":{data:new Float32Array(0),shape:.2}});var R=x[S];if(!R)if(S.length<=1||!/\d/.test(S))R=x[S]=function(Q){for(var j=Q.cells,U=Q.positions,X=new Float32Array(6*j.length),te=0,W=0,K=0;K0&&(C+=.02);var D=new Float32Array(E),k=0,I=-.5*C;for(L=0;LMath.max(D,k)?I[2]=1:D>Math.max(L,k)?I[0]=1:I[1]=1;for(var z=0,$=0,Q=0;Q<3;++Q)z+=C[Q]*C[Q],$+=I[Q]*C[Q];for(Q=0;Q<3;++Q)I[Q]-=$/z*C[Q];return _(I,I),I}function M(C,L,D,k,I,z,$,Q){this.center=u(D),this.up=u(k),this.right=u(I),this.radius=u([z]),this.angle=u([$,Q]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(C,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var j=0;j<16;++j)this.computedMatrix[j]=.5;this.recalcMatrix(0)}var T=M.prototype;T.setDistanceLimits=function(C,L){C=C>0?Math.log(C):-1/0,L=L>0?Math.log(L):1/0,L=Math.max(L,C),this.radius.bounds[0][0]=C,this.radius.bounds[1][0]=L},T.getDistanceLimits=function(C){var L=this.radius.bounds[0];return C?(C[0]=Math.exp(L[0][0]),C[1]=Math.exp(L[1][0]),C):[Math.exp(L[0][0]),Math.exp(L[1][0])]},T.recalcMatrix=function(C){this.center.curve(C),this.up.curve(C),this.right.curve(C),this.radius.curve(C),this.angle.curve(C);for(var L=this.computedUp,D=this.computedRight,k=0,I=0,z=0;z<3;++z)I+=L[z]*D[z],k+=L[z]*L[z];var $=Math.sqrt(k),Q=0;for(z=0;z<3;++z)D[z]-=L[z]*I/k,Q+=D[z]*D[z],L[z]/=$;var j=Math.sqrt(Q);for(z=0;z<3;++z)D[z]/=j;var U=this.computedToward;v(U,L,D),_(U,U);var X=Math.exp(this.computedRadius[0]),te=this.computedAngle[0],W=this.computedAngle[1],K=Math.cos(te),oe=Math.sin(te),q=Math.cos(W),Y=Math.sin(W),ee=this.computedCenter,me=K*q,he=oe*q,se=Y,ae=-K*Y,ce=-oe*Y,de=q,ve=this.computedEye,ye=this.computedMatrix;for(z=0;z<3;++z){var _e=me*D[z]+he*U[z]+se*L[z];ye[4*z+1]=ae*D[z]+ce*U[z]+de*L[z],ye[4*z+2]=_e,ye[4*z+3]=0}var Se=ye[1],Te=ye[5],Pe=ye[9],Ie=ye[2],ze=ye[6],De=ye[10],He=Te*De-Pe*ze,Ve=Pe*Ie-Se*De,$e=Se*ze-Te*Ie,Oe=A(He,Ve,$e);for(He/=Oe,Ve/=Oe,$e/=Oe,ye[0]=He,ye[4]=Ve,ye[8]=$e,z=0;z<3;++z)ve[z]=ee[z]+ye[2+4*z]*X;for(z=0;z<3;++z){Q=0;for(var ke=0;ke<3;++ke)Q+=ye[z+4*ke]*ve[ke];ye[12+z]=-Q}ye[15]=1},T.getMatrix=function(C,L){this.recalcMatrix(C);var D=this.computedMatrix;if(L){for(var k=0;k<16;++k)L[k]=D[k];return L}return D};var E=[0,0,0];T.rotate=function(C,L,D,k){if(this.angle.move(C,L,D),k){this.recalcMatrix(C);var I=this.computedMatrix;E[0]=I[2],E[1]=I[6],E[2]=I[10];for(var z=this.computedUp,$=this.computedRight,Q=this.computedToward,j=0;j<3;++j)I[4*j]=z[j],I[4*j+1]=$[j],I[4*j+2]=Q[j];for(m(I,I,k,E),j=0;j<3;++j)z[j]=I[4*j],$[j]=I[4*j+1];this.up.set(C,z[0],z[1],z[2]),this.right.set(C,$[0],$[1],$[2])}},T.pan=function(C,L,D,k){L=L||0,D=D||0,k=k||0,this.recalcMatrix(C);var I=this.computedMatrix,z=(Math.exp(this.computedRadius[0]),I[1]),$=I[5],Q=I[9],j=A(z,$,Q);z/=j,$/=j,Q/=j;var U=I[0],X=I[4],te=I[8],W=U*z+X*$+te*Q,K=A(U-=z*W,X-=$*W,te-=Q*W),oe=(U/=K)*L+z*D,q=(X/=K)*L+$*D,Y=(te/=K)*L+Q*D;this.center.move(C,oe,q,Y);var ee=Math.exp(this.computedRadius[0]);ee=Math.max(1e-4,ee+k),this.radius.set(C,Math.log(ee))},T.translate=function(C,L,D,k){this.center.move(C,L||0,D||0,k||0)},T.setMatrix=function(C,L,D,k){var I=1;typeof D=="number"&&(I=0|D),(I<0||I>3)&&(I=1);var z=(I+2)%3;L||(this.recalcMatrix(C),L=this.computedMatrix);var $=L[I],Q=L[I+4],j=L[I+8];if(k){var U=Math.abs($),X=Math.abs(Q),te=Math.abs(j),W=Math.max(U,X,te);U===W?($=$<0?-1:1,Q=j=0):te===W?(j=j<0?-1:1,$=Q=0):(Q=Q<0?-1:1,$=j=0)}else{var K=A($,Q,j);$/=K,Q/=K,j/=K}var oe,q,Y=L[z],ee=L[z+4],me=L[z+8],he=Y*$+ee*Q+me*j,se=A(Y-=$*he,ee-=Q*he,me-=j*he),ae=Q*(me/=se)-j*(ee/=se),ce=j*(Y/=se)-$*me,de=$*ee-Q*Y,ve=A(ae,ce,de);if(ae/=ve,ce/=ve,de/=ve,this.center.jump(C,Ze,Xe,tt),this.radius.idle(C),this.up.jump(C,$,Q,j),this.right.jump(C,Y,ee,me),I===2){var ye=L[1],_e=L[5],Se=L[9],Te=ye*Y+_e*ee+Se*me,Pe=ye*ae+_e*ce+Se*de;oe=He<0?-Math.PI/2:Math.PI/2,q=Math.atan2(Pe,Te)}else{var Ie=L[2],ze=L[6],De=L[10],He=Ie*$+ze*Q+De*j,Ve=Ie*Y+ze*ee+De*me,$e=Ie*ae+ze*ce+De*de;oe=Math.asin(x(He)),q=Math.atan2($e,Ve)}this.angle.jump(C,q,oe),this.recalcMatrix(C);var Oe=L[2],ke=L[6],Le=L[10],We=this.computedMatrix;h(We,L);var Ue=We[15],Ze=We[12]/Ue,Xe=We[13]/Ue,tt=We[14]/Ue,Ee=Math.exp(this.computedRadius[0]);this.center.jump(C,Ze-Oe*Ee,Xe-ke*Ee,tt-Le*Ee)},T.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},T.idle=function(C){this.center.idle(C),this.up.idle(C),this.right.idle(C),this.radius.idle(C),this.angle.idle(C)},T.flush=function(C){this.center.flush(C),this.up.flush(C),this.right.flush(C),this.radius.flush(C),this.angle.flush(C)},T.setDistance=function(C,L){L>0&&this.radius.set(C,Math.log(L))},T.lookAt=function(C,L,D,k){this.recalcMatrix(C),L=L||this.computedEye,D=D||this.computedCenter;var I=(k=k||this.computedUp)[0],z=k[1],$=k[2],Q=A(I,z,$);if(!(Q<1e-6)){I/=Q,z/=Q,$/=Q;var j=L[0]-D[0],U=L[1]-D[1],X=L[2]-D[2],te=A(j,U,X);if(!(te<1e-6)){j/=te,U/=te,X/=te;var W=this.computedRight,K=W[0],oe=W[1],q=W[2],Y=I*K+z*oe+$*q,ee=A(K-=Y*I,oe-=Y*z,q-=Y*$);if(!(ee<.01&&(ee=A(K=z*X-$*U,oe=$*j-I*X,q=I*U-z*j))<1e-6)){K/=ee,oe/=ee,q/=ee,this.up.set(C,I,z,$),this.right.set(C,K,oe,q),this.center.set(C,D[0],D[1],D[2]),this.radius.set(C,Math.log(te));var me=z*q-$*oe,he=$*K-I*q,se=I*oe-z*K,ae=A(me,he,se),ce=I*j+z*U+$*X,de=K*j+oe*U+q*X,ve=(me/=ae)*j+(he/=ae)*U+(se/=ae)*X,ye=Math.asin(x(ce)),_e=Math.atan2(ve,de),Se=this.angle._state,Te=Se[Se.length-1],Pe=Se[Se.length-2];Te%=2*Math.PI;var Ie=Math.abs(Te+2*Math.PI-_e),ze=Math.abs(Te-_e),De=Math.abs(Te-2*Math.PI-_e);Ie0?oe.pop():new ArrayBuffer(W)}function E(W){return new Uint8Array(T(W),0,W)}function C(W){return new Uint16Array(T(2*W),0,W)}function L(W){return new Uint32Array(T(4*W),0,W)}function D(W){return new Int8Array(T(W),0,W)}function k(W){return new Int16Array(T(2*W),0,W)}function I(W){return new Int32Array(T(4*W),0,W)}function z(W){return new Float32Array(T(4*W),0,W)}function $(W){return new Float64Array(T(8*W),0,W)}function Q(W){return v?new Uint8ClampedArray(T(W),0,W):E(W)}function j(W){return _?new BigUint64Array(T(8*W),0,W):null}function U(W){return S?new BigInt64Array(T(8*W),0,W):null}function X(W){return new DataView(T(W),0,W)}function te(W){W=u.nextPow2(W);var K=u.log2(W),oe=R[K];return oe.length>0?oe.pop():new m(W)}p.free=function(W){if(m.isBuffer(W))R[u.log2(W.length)].push(W);else{if(Object.prototype.toString.call(W)!=="[object ArrayBuffer]"&&(W=W.buffer),!W)return;var K=W.length||W.byteLength,oe=0|u.log2(K);x[oe].push(W)}},p.freeUint8=p.freeUint16=p.freeUint32=p.freeBigUint64=p.freeInt8=p.freeInt16=p.freeInt32=p.freeBigInt64=p.freeFloat32=p.freeFloat=p.freeFloat64=p.freeDouble=p.freeUint8Clamped=p.freeDataView=function(W){M(W.buffer)},p.freeArrayBuffer=M,p.freeBuffer=function(W){R[u.log2(W.length)].push(W)},p.malloc=function(W,K){if(K===void 0||K==="arraybuffer")return T(W);switch(K){case"uint8":return E(W);case"uint16":return C(W);case"uint32":return L(W);case"int8":return D(W);case"int16":return k(W);case"int32":return I(W);case"float":case"float32":return z(W);case"double":case"float64":return $(W);case"uint8_clamped":return Q(W);case"bigint64":return U(W);case"biguint64":return j(W);case"buffer":return te(W);case"data":case"dataview":return X(W);default:return null}return null},p.mallocArrayBuffer=T,p.mallocUint8=E,p.mallocUint16=C,p.mallocUint32=L,p.mallocInt8=D,p.mallocInt16=k,p.mallocInt32=I,p.mallocFloat32=p.mallocFloat=z,p.mallocFloat64=p.mallocDouble=$,p.mallocUint8Clamped=Q,p.mallocBigUint64=j,p.mallocBigInt64=U,p.mallocDataView=X,p.mallocBuffer=te,p.clearCache=function(){for(var W=0;W<32;++W)A.UINT8[W].length=0,A.UINT16[W].length=0,A.UINT32[W].length=0,A.INT8[W].length=0,A.INT16[W].length=0,A.INT32[W].length=0,A.FLOAT[W].length=0,A.DOUBLE[W].length=0,A.BIGUINT64[W].length=0,A.BIGINT64[W].length=0,A.UINT8C[W].length=0,x[W].length=0,R[W].length=0}},1731:function(y){function p(u){this.roots=new Array(u),this.ranks=new Array(u);for(var h=0;h0&&(W=te.size),te.lineSpacing&&te.lineSpacing>0&&(K=te.lineSpacing),te.styletags&&te.styletags.breaklines&&(oe.breaklines=!!te.styletags.breaklines),te.styletags&&te.styletags.bolds&&(oe.bolds=!!te.styletags.bolds),te.styletags&&te.styletags.italics&&(oe.italics=!!te.styletags.italics),te.styletags&&te.styletags.subscripts&&(oe.subscripts=!!te.styletags.subscripts),te.styletags&&te.styletags.superscripts&&(oe.superscripts=!!te.styletags.superscripts)),X.font=[te.fontStyle,te.fontVariant,te.fontWeight,W+"px",te.font].filter(function(q){return q}).join(" "),X.textAlign="start",X.textBaseline="alphabetic",X.direction="ltr",Q(function(q,Y,ee,me,he,se){ee=ee.replace(/\n/g,""),ee=se.breaklines===!0?ee.replace(/\/g,` `):ee.replace(/\/g," ");var ae="",ce=[];for(_e=0;_e-1?parseInt(nt[1+ht]):0,Dt=pt>-1?parseInt(ot[1+pt]):0;wt!==Dt&&(Ge=Ge.replace(Ue(),"?px "),Pe*=Math.pow(.75,Dt-wt),Ge=Ge.replace("?px ",Ue())),Te+=.25*De*(Dt-wt)}if(se.superscripts===!0){var It=nt.indexOf(E),qt=ot.indexOf(E),en=It>-1?parseInt(nt[1+It]):0,Gt=qt>-1?parseInt(ot[1+qt]):0;en!==Gt&&(Ge=Ge.replace(Ue(),"?px "),Pe*=Math.pow(.75,Gt-en),Ge=Ge.replace("?px ",Ue())),Te-=.25*De*(Gt-en)}if(se.bolds===!0){var Ct=nt.indexOf(x)>-1,_t=ot.indexOf(x)>-1;!Ct&&_t&&(Ge=nn?Ge.replace("italic ","italic bold "):"bold "+Ge),Ct&&!_t&&(Ge=Ge.replace("bold ",""))}if(se.italics===!0){var nn=nt.indexOf(M)>-1,gn=ot.indexOf(M)>-1;!nn&&gn&&(Ge="italic "+Ge),nn&&!gn&&(Ge=Ge.replace("italic ",""))}Y.font=Ge}for(ye=0;ye",K="",oe=W.length,q=K.length,Y=U[0]===E||U[0]===D,ee=0,me=-q;ee>-1&&(ee=X.indexOf(W,ee))!==-1&&(me=X.indexOf(K,ee+oe))!==-1&&!(me<=ee);){for(var he=ee;he=me)te[he]=null,X=X.substr(0,he)+" "+X.substr(he+1);else if(te[he]!==null){var se=te[he].indexOf(U[0]);se===-1?te[he]+=U:Y&&(te[he]=te[he].substr(0,se+1)+(1+parseInt(te[he][se+1]))+te[he].substr(se+2))}var ae=ee+oe,ce=X.substr(ae,me-ae).indexOf(W);ee=ce!==-1?ce:me+q}return te}function z(j,U){var X=u(j,128);return U?m(X.cells,X.positions,.25):{edges:X.cells,positions:X.positions}}function $(j,U,X,te){var W=z(j,te),K=function(ye,_e,Se){for(var Te=_e.textAlign||"start",Pe=_e.textBaseline||"alphabetic",Ie=[1<<30,1<<30],ze=[0,0],De=ye.length,He=0;He"u"||!ses.ok||ses.ok()){typeof ses<"u"&&(ses.weakMapPermitHostObjects=L);var p=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var u=new a,h=Object.freeze({});if(u.set(h,1),u.get(h)===1)return void(y.exports=WeakMap);p=!0}}var m=Object.getOwnPropertyNames,v=Object.defineProperty,_=Object.isExtensible,S="weakmap:",A=S+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var x=new ArrayBuffer(25),R=new Uint8Array(x);crypto.getRandomValues(R),A=S+"rand:"+Array.prototype.map.call(R,function($){return($%36).toString(36)}).join("")+"___"}if(v(Object,"getOwnPropertyNames",{value:function($){return m($).filter(D)}}),"getPropertyNames"in Object){var M=Object.getPropertyNames;v(Object,"getPropertyNames",{value:function($){return M($).filter(D)}})}(function(){var $=Object.freeze;v(Object,"freeze",{value:function(U){return k(U),$(U)}});var Q=Object.seal;v(Object,"seal",{value:function(U){return k(U),Q(U)}});var j=Object.preventExtensions;v(Object,"preventExtensions",{value:function(U){return k(U),j(U)}})})();var T=!1,E=0,C=function(){this instanceof C||z();var $=[],Q=[],j=E++;return Object.create(C.prototype,{get___:{value:I(function(U,X){var te,W=k(U);return W?j in W?W[j]:X:(te=$.indexOf(U))>=0?Q[te]:X})},has___:{value:I(function(U){var X=k(U);return X?j in X:$.indexOf(U)>=0})},set___:{value:I(function(U,X){var te,W=k(U);return W?W[j]=X:(te=$.indexOf(U))>=0?Q[te]=X:(te=$.length,Q[te]=X,$[te]=U),this})},delete___:{value:I(function(U){var X,te,W=k(U);return W?j in W&&delete W[j]:!((X=$.indexOf(U))<0||(te=$.length-1,$[X]=void 0,Q[X]=Q[te],$[X]=$[te],$.length=te,Q.length=te,0))})}})};C.prototype=Object.create(Object.prototype,{get:{value:function($,Q){return this.get___($,Q)},writable:!0,configurable:!0},has:{value:function($){return this.has___($)},writable:!0,configurable:!0},set:{value:function($,Q){return this.set___($,Q)},writable:!0,configurable:!0},delete:{value:function($){return this.delete___($)},writable:!0,configurable:!0}}),typeof a=="function"?function(){function $(){this instanceof C||z();var Q,j=new a,U=void 0,X=!1;return Q=p?function(te,W){return j.set(te,W),j.has(te)||(U||(U=new C),U.set(te,W)),this}:function(te,W){if(X)try{j.set(te,W)}catch{U||(U=new C),U.set___(te,W)}else j.set(te,W);return this},Object.create(C.prototype,{get___:{value:I(function(te,W){return U?j.has(te)?j.get(te):U.get___(te,W):j.get(te,W)})},has___:{value:I(function(te){return j.has(te)||!!U&&U.has___(te)})},set___:{value:I(Q)},delete___:{value:I(function(te){var W=!!j.delete(te);return U&&U.delete___(te)||W})},permitHostObjects___:{value:I(function(te){if(te!==L)throw new Error("bogus call to permitHostObjects___");X=!0})}})}p&&typeof Proxy<"u"&&(Proxy=void 0),$.prototype=C.prototype,y.exports=$,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),y.exports=C)}function L($){$.permitHostObjects___&&$.permitHostObjects___(L)}function D($){return!($.substr(0,8)==S&&$.substr($.length-3)==="___")}function k($){if($!==Object($))throw new TypeError("Not an object: "+$);var Q=$[A];if(Q&&Q.key===$)return Q;if(_($)){Q={key:$};try{return v($,A,{value:Q,writable:!1,enumerable:!1,configurable:!1}),Q}catch{return}}}function I($){return $.prototype=null,Object.freeze($)}function z(){T||typeof console>"u"||(T=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}})()},9222:function(y,p,a){var u=a(7178);y.exports=function(){var h={};return function(m){if((typeof m!="object"||m===null)&&typeof m!="function")throw new Error("Weakmap-shim: Key must be object");var v=m.valueOf(h);return v&&v.identity===h?v:u(m,h)}}},7178:function(y){y.exports=function(p,a){var u={identity:a},h=p.valueOf;return Object.defineProperty(p,"valueOf",{value:function(m){return m!==a?h.apply(this,arguments):u},writable:!0}),u}},4037:function(y,p,a){var u=a(9222);y.exports=function(){var h=u();return{get:function(m,v){var _=h(m);return _.hasOwnProperty("value")?_.value:v},set:function(m,v){return h(m).value=v,this},has:function(m){return"value"in h(m)},delete:function(m){return delete h(m).value}}}},6183:function(y){y.exports=function(p){var a={};return function(u,h,m){var v=u.dtype,_=u.order,S=[v,_.join()].join(),A=a[S];return A||(a[S]=A=p([v,_])),A(u.shape.slice(0),u.data,u.stride,0|u.offset,h,m)}}((function(){return function(p,a,u,h,m,v){var _=p[0],S=u[0],A=[0],x=S;h|=0;var R=0,M=S;for(R=0;R<_;++R){var T=a[h]-v,E=a[h+x]-v;T>=0!=E>=0&&m.push(A[0]+.5+.5*(T+E)/(T-E)),h+=M,++A[0]}}}).bind(void 0,{funcName:"zeroCrossings"}))},9584:function(y,p,a){y.exports=function(h,m){var v=[];return m=+m||0,u(h.hi(h.shape[0]-1),v,m),v};var u=a(6183)},6601:function(){}},O={};function w(y){var p=O[y];if(p!==void 0)return p.exports;var a=O[y]={id:y,loaded:!1,exports:{}};return i[y].call(a.exports,a,a.exports,w),a.loaded=!0,a.exports}return w.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),w.nmd=function(y){return y.paths=[],y.children||(y.children=[]),y},w(7386)}()},d.exports=c()},33576:function(d,l,n){function c(Oe,ke){for(var Le=0;Leu)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var ke=new Uint8Array(Oe);return Object.setPrototypeOf(ke,m.prototype),ke}function m(Oe,ke,Le){if(typeof Oe=="number"){if(typeof ke=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(Oe)}return v(Oe,ke,Le)}function v(Oe,ke,Le){if(typeof Oe=="string")return function(Ze,Xe){if(typeof Xe=="string"&&Xe!==""||(Xe="utf8"),!m.isEncoding(Xe))throw new TypeError("Unknown encoding: "+Xe);var tt=0|M(Ze,Xe),Ee=h(tt),Ne=Ee.write(Ze,Xe);return Ne!==tt&&(Ee=Ee.slice(0,Ne)),Ee}(Oe,ke);if(ArrayBuffer.isView(Oe))return function(Ze){if(ze(Ze,Uint8Array)){var Xe=new Uint8Array(Ze);return x(Xe.buffer,Xe.byteOffset,Xe.byteLength)}return A(Ze)}(Oe);if(Oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe));if(ze(Oe,ArrayBuffer)||Oe&&ze(Oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(Oe,SharedArrayBuffer)||Oe&&ze(Oe.buffer,SharedArrayBuffer)))return x(Oe,ke,Le);if(typeof Oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var We=Oe.valueOf&&Oe.valueOf();if(We!=null&&We!==Oe)return m.from(We,ke,Le);var Ue=function(Ze){if(m.isBuffer(Ze)){var Xe=0|R(Ze.length),tt=h(Xe);return tt.length===0||Ze.copy(tt,0,0,Xe),tt}return Ze.length!==void 0?typeof Ze.length!="number"||De(Ze.length)?h(0):A(Ze):Ze.type==="Buffer"&&Array.isArray(Ze.data)?A(Ze.data):void 0}(Oe);if(Ue)return Ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Oe[Symbol.toPrimitive]=="function")return m.from(Oe[Symbol.toPrimitive]("string"),ke,Le);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe))}function _(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function S(Oe){return _(Oe),h(Oe<0?0:0|R(Oe))}function A(Oe){for(var ke=Oe.length<0?0:0|R(Oe.length),Le=h(ke),We=0;We=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|Oe}function M(Oe,ke){if(m.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||ze(Oe,ArrayBuffer))return Oe.byteLength;if(typeof Oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+w(Oe));var Le=Oe.length,We=arguments.length>2&&arguments[2]===!0;if(!We&&Le===0)return 0;for(var Ue=!1;;)switch(ke){case"ascii":case"latin1":case"binary":return Le;case"utf8":case"utf-8":return Te(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Le;case"hex":return Le>>>1;case"base64":return Pe(Oe).length;default:if(Ue)return We?-1:Te(Oe).length;ke=(""+ke).toLowerCase(),Ue=!0}}function T(Oe,ke,Le){var We=!1;if((ke===void 0||ke<0)&&(ke=0),ke>this.length||((Le===void 0||Le>this.length)&&(Le=this.length),Le<=0)||(Le>>>=0)<=(ke>>>=0))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return W(this,ke,Le);case"utf8":case"utf-8":return j(this,ke,Le);case"ascii":return X(this,ke,Le);case"latin1":case"binary":return te(this,ke,Le);case"base64":return Q(this,ke,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,ke,Le);default:if(We)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),We=!0}}function E(Oe,ke,Le){var We=Oe[ke];Oe[ke]=Oe[Le],Oe[Le]=We}function C(Oe,ke,Le,We,Ue){if(Oe.length===0)return-1;if(typeof Le=="string"?(We=Le,Le=0):Le>2147483647?Le=2147483647:Le<-2147483648&&(Le=-2147483648),De(Le=+Le)&&(Le=Ue?0:Oe.length-1),Le<0&&(Le=Oe.length+Le),Le>=Oe.length){if(Ue)return-1;Le=Oe.length-1}else if(Le<0){if(!Ue)return-1;Le=0}if(typeof ke=="string"&&(ke=m.from(ke,We)),m.isBuffer(ke))return ke.length===0?-1:L(Oe,ke,Le,We,Ue);if(typeof ke=="number")return ke&=255,typeof Uint8Array.prototype.indexOf=="function"?Ue?Uint8Array.prototype.indexOf.call(Oe,ke,Le):Uint8Array.prototype.lastIndexOf.call(Oe,ke,Le):L(Oe,[ke],Le,We,Ue);throw new TypeError("val must be string, number or Buffer")}function L(Oe,ke,Le,We,Ue){var Ze,Xe=1,tt=Oe.length,Ee=ke.length;if(We!==void 0&&((We=String(We).toLowerCase())==="ucs2"||We==="ucs-2"||We==="utf16le"||We==="utf-16le")){if(Oe.length<2||ke.length<2)return-1;Xe=2,tt/=2,Ee/=2,Le/=2}function Ne(Ge,ht){return Xe===1?Ge[ht]:Ge.readUInt16BE(ht*Xe)}if(Ue){var je=-1;for(Ze=Le;Zett&&(Le=tt-Ee),Ze=Le;Ze>=0;Ze--){for(var nt=!0,ot=0;otUe&&(We=Ue):We=Ue;var Ze,Xe=ke.length;for(We>Xe/2&&(We=Xe/2),Ze=0;Ze>8,Ee=Xe%256,Ne.push(Ee),Ne.push(tt);return Ne}(ke,Oe.length-Le),Oe,Le,We)}function Q(Oe,ke,Le){return ke===0&&Le===Oe.length?y.fromByteArray(Oe):y.fromByteArray(Oe.slice(ke,Le))}function j(Oe,ke,Le){Le=Math.min(Oe.length,Le);for(var We=[],Ue=ke;Ue239?4:Ze>223?3:Ze>191?2:1;if(Ue+tt<=Le){var Ee=void 0,Ne=void 0,je=void 0,nt=void 0;switch(tt){case 1:Ze<128&&(Xe=Ze);break;case 2:(192&(Ee=Oe[Ue+1]))==128&&(nt=(31&Ze)<<6|63&Ee)>127&&(Xe=nt);break;case 3:Ee=Oe[Ue+1],Ne=Oe[Ue+2],(192&Ee)==128&&(192&Ne)==128&&(nt=(15&Ze)<<12|(63&Ee)<<6|63&Ne)>2047&&(nt<55296||nt>57343)&&(Xe=nt);break;case 4:Ee=Oe[Ue+1],Ne=Oe[Ue+2],je=Oe[Ue+3],(192&Ee)==128&&(192&Ne)==128&&(192&je)==128&&(nt=(15&Ze)<<18|(63&Ee)<<12|(63&Ne)<<6|63&je)>65535&&nt<1114112&&(Xe=nt)}}Xe===null?(Xe=65533,tt=1):Xe>65535&&(Xe-=65536,We.push(Xe>>>10&1023|55296),Xe=56320|1023&Xe),We.push(Xe),Ue+=tt}return function(ot){var Ge=ot.length;if(Ge<=U)return String.fromCharCode.apply(String,ot);for(var ht="",pt=0;pt"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(Oe,ke,Le){return v(Oe,ke,Le)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.alloc=function(Oe,ke,Le){return function(We,Ue,Ze){return _(We),We<=0?h(We):Ue!==void 0?typeof Ze=="string"?h(We).fill(Ue,Ze):h(We).fill(Ue):h(We)}(Oe,ke,Le)},m.allocUnsafe=function(Oe){return S(Oe)},m.allocUnsafeSlow=function(Oe){return S(Oe)},m.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==m.prototype},m.compare=function(Oe,ke){if(ze(Oe,Uint8Array)&&(Oe=m.from(Oe,Oe.offset,Oe.byteLength)),ze(ke,Uint8Array)&&(ke=m.from(ke,ke.offset,ke.byteLength)),!m.isBuffer(Oe)||!m.isBuffer(ke))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===ke)return 0;for(var Le=Oe.length,We=ke.length,Ue=0,Ze=Math.min(Le,We);UeWe.length?(m.isBuffer(Ze)||(Ze=m.from(Ze)),Ze.copy(We,Ue)):Uint8Array.prototype.set.call(We,Ze,Ue);else{if(!m.isBuffer(Ze))throw new TypeError('"list" argument must be an Array of Buffers');Ze.copy(We,Ue)}Ue+=Ze.length}return We},m.byteLength=M,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var Oe=this.length;if(Oe%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ke=0;keke&&(Oe+=" ... "),""},a&&(m.prototype[a]=m.prototype.inspect),m.prototype.compare=function(Oe,ke,Le,We,Ue){if(ze(Oe,Uint8Array)&&(Oe=m.from(Oe,Oe.offset,Oe.byteLength)),!m.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+w(Oe));if(ke===void 0&&(ke=0),Le===void 0&&(Le=Oe?Oe.length:0),We===void 0&&(We=0),Ue===void 0&&(Ue=this.length),ke<0||Le>Oe.length||We<0||Ue>this.length)throw new RangeError("out of range index");if(We>=Ue&&ke>=Le)return 0;if(We>=Ue)return-1;if(ke>=Le)return 1;if(this===Oe)return 0;for(var Ze=(Ue>>>=0)-(We>>>=0),Xe=(Le>>>=0)-(ke>>>=0),tt=Math.min(Ze,Xe),Ee=this.slice(We,Ue),Ne=Oe.slice(ke,Le),je=0;je>>=0,isFinite(Le)?(Le>>>=0,We===void 0&&(We="utf8")):(We=Le,Le=void 0)}var Ue=this.length-ke;if((Le===void 0||Le>Ue)&&(Le=Ue),Oe.length>0&&(Le<0||ke<0)||ke>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Ze=!1;;)switch(We){case"hex":return D(this,Oe,ke,Le);case"utf8":case"utf-8":return k(this,Oe,ke,Le);case"ascii":case"latin1":case"binary":return I(this,Oe,ke,Le);case"base64":return z(this,Oe,ke,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,Oe,ke,Le);default:if(Ze)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Ze=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function X(Oe,ke,Le){var We="";Le=Math.min(Oe.length,Le);for(var Ue=ke;UeWe)&&(Le=We);for(var Ue="",Ze=ke;ZeLe)throw new RangeError("Trying to access beyond buffer length")}function q(Oe,ke,Le,We,Ue,Ze){if(!m.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ke>Ue||keOe.length)throw new RangeError("Index out of range")}function Y(Oe,ke,Le,We,Ue){ve(ke,We,Ue,Oe,Le,7);var Ze=Number(ke&BigInt(4294967295));Oe[Le++]=Ze,Ze>>=8,Oe[Le++]=Ze,Ze>>=8,Oe[Le++]=Ze,Ze>>=8,Oe[Le++]=Ze;var Xe=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Le++]=Xe,Xe>>=8,Oe[Le++]=Xe,Xe>>=8,Oe[Le++]=Xe,Xe>>=8,Oe[Le++]=Xe,Le}function ee(Oe,ke,Le,We,Ue){ve(ke,We,Ue,Oe,Le,7);var Ze=Number(ke&BigInt(4294967295));Oe[Le+7]=Ze,Ze>>=8,Oe[Le+6]=Ze,Ze>>=8,Oe[Le+5]=Ze,Ze>>=8,Oe[Le+4]=Ze;var Xe=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Le+3]=Xe,Xe>>=8,Oe[Le+2]=Xe,Xe>>=8,Oe[Le+1]=Xe,Xe>>=8,Oe[Le]=Xe,Le+8}function me(Oe,ke,Le,We,Ue,Ze){if(Le+We>Oe.length)throw new RangeError("Index out of range");if(Le<0)throw new RangeError("Index out of range")}function he(Oe,ke,Le,We,Ue){return ke=+ke,Le>>>=0,Ue||me(Oe,0,Le,4),p.write(Oe,ke,Le,We,23,4),Le+4}function se(Oe,ke,Le,We,Ue){return ke=+ke,Le>>>=0,Ue||me(Oe,0,Le,8),p.write(Oe,ke,Le,We,52,8),Le+8}m.prototype.slice=function(Oe,ke){var Le=this.length;(Oe=~~Oe)<0?(Oe+=Le)<0&&(Oe=0):Oe>Le&&(Oe=Le),(ke=ke===void 0?Le:~~ke)<0?(ke+=Le)<0&&(ke=0):ke>Le&&(ke=Le),ke>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=this[Oe+--ke],Ue=1;ke>0&&(Ue*=256);)We+=this[Oe+--ke]*Ue;return We},m.prototype.readUint8=m.prototype.readUInt8=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,1,this.length),this[Oe]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+16777216*this[Oe+3]},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),16777216*this[Oe]+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},m.prototype.readBigUInt64LE=Ve(function(Oe){ye(Oe>>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=ke+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,24),Ue=this[++Oe]+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+Le*Math.pow(2,24);return BigInt(We)+(BigInt(Ue)<>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=ke*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe],Ue=this[++Oe]*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+Le;return(BigInt(We)<>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze=(Ue*=128)&&(We-=Math.pow(2,8*ke)),We},m.prototype.readIntBE=function(Oe,ke,Le){Oe>>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=ke,Ue=1,Ze=this[Oe+--We];We>0&&(Ue*=256);)Ze+=this[Oe+--We]*Ue;return Ze>=(Ue*=128)&&(Ze-=Math.pow(2,8*ke)),Ze},m.prototype.readInt8=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,1,this.length),128&this[Oe]?-1*(255-this[Oe]+1):this[Oe]},m.prototype.readInt16LE=function(Oe,ke){Oe>>>=0,ke||oe(Oe,2,this.length);var Le=this[Oe]|this[Oe+1]<<8;return 32768&Le?4294901760|Le:Le},m.prototype.readInt16BE=function(Oe,ke){Oe>>>=0,ke||oe(Oe,2,this.length);var Le=this[Oe+1]|this[Oe]<<8;return 32768&Le?4294901760|Le:Le},m.prototype.readInt32LE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},m.prototype.readInt32BE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},m.prototype.readBigInt64LE=Ve(function(Oe){ye(Oe>>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=this[Oe+4]+this[Oe+5]*Math.pow(2,8)+this[Oe+6]*Math.pow(2,16)+(Le<<24);return(BigInt(We)<>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=(ke<<24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe];return(BigInt(We)<>>=0,ke||oe(Oe,4,this.length),p.read(this,Oe,!0,23,4)},m.prototype.readFloatBE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),p.read(this,Oe,!1,23,4)},m.prototype.readDoubleLE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,8,this.length),p.read(this,Oe,!0,52,8)},m.prototype.readDoubleBE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,8,this.length),p.read(this,Oe,!1,52,8)},m.prototype.writeUintLE=m.prototype.writeUIntLE=function(Oe,ke,Le,We){Oe=+Oe,ke>>>=0,Le>>>=0,We||q(this,Oe,ke,Le,Math.pow(2,8*Le)-1,0);var Ue=1,Ze=0;for(this[ke]=255&Oe;++Ze>>=0,Le>>>=0,We||q(this,Oe,ke,Le,Math.pow(2,8*Le)-1,0);var Ue=Le-1,Ze=1;for(this[ke+Ue]=255&Oe;--Ue>=0&&(Ze*=256);)this[ke+Ue]=Oe/Ze&255;return ke+Le},m.prototype.writeUint8=m.prototype.writeUInt8=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,1,255,0),this[ke]=255&Oe,ke+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,65535,0),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,65535,0),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,4294967295,0),this[ke+3]=Oe>>>24,this[ke+2]=Oe>>>16,this[ke+1]=Oe>>>8,this[ke]=255&Oe,ke+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,4294967295,0),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},m.prototype.writeBigUInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeIntLE=function(Oe,ke,Le,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Le-1);q(this,Oe,ke,Le,Ue-1,-Ue)}var Ze=0,Xe=1,tt=0;for(this[ke]=255&Oe;++Ze>0)-tt&255;return ke+Le},m.prototype.writeIntBE=function(Oe,ke,Le,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Le-1);q(this,Oe,ke,Le,Ue-1,-Ue)}var Ze=Le-1,Xe=1,tt=0;for(this[ke+Ze]=255&Oe;--Ze>=0&&(Xe*=256);)Oe<0&&tt===0&&this[ke+Ze+1]!==0&&(tt=1),this[ke+Ze]=(Oe/Xe>>0)-tt&255;return ke+Le},m.prototype.writeInt8=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[ke]=255&Oe,ke+1},m.prototype.writeInt16LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,32767,-32768),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},m.prototype.writeInt16BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,32767,-32768),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},m.prototype.writeInt32LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,2147483647,-2147483648),this[ke]=255&Oe,this[ke+1]=Oe>>>8,this[ke+2]=Oe>>>16,this[ke+3]=Oe>>>24,ke+4},m.prototype.writeInt32BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},m.prototype.writeBigInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeFloatLE=function(Oe,ke,Le){return he(this,Oe,ke,!0,Le)},m.prototype.writeFloatBE=function(Oe,ke,Le){return he(this,Oe,ke,!1,Le)},m.prototype.writeDoubleLE=function(Oe,ke,Le){return se(this,Oe,ke,!0,Le)},m.prototype.writeDoubleBE=function(Oe,ke,Le){return se(this,Oe,ke,!1,Le)},m.prototype.copy=function(Oe,ke,Le,We){if(!m.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),We||We===0||(We=this.length),ke>=Oe.length&&(ke=Oe.length),ke||(ke=0),We>0&&We=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),Oe.length-ke>>=0,Le=Le===void 0?this.length:Le>>>0,Oe||(Oe=0),typeof Oe=="number")for(Ze=ke;Ze"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}()?Reflect.construct(Ne,je||[],b(Ee).constructor):Ne.apply(Ee,je))}(this,Ue),Object.defineProperty(i(tt),"message",{value:ke.apply(i(tt),arguments),writable:!0,configurable:!0}),tt.name="".concat(tt.name," [").concat(Oe,"]"),tt.stack,delete tt.name,tt}var Ze,Xe;return function(tt,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(Ee&&Ee.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),Object.defineProperty(tt,"prototype",{writable:!1}),Ee&&O(tt,Ee)}(Ue,We),Ze=Ue,(Xe=[{key:"code",get:function(){return Oe},set:function(tt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:tt,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Oe,"]: ").concat(this.message)}}])&&c(Ze.prototype,Xe),Object.defineProperty(Ze,"prototype",{writable:!1}),Ue}(Le)}function de(Oe){for(var ke="",Le=Oe.length,We=Oe[0]==="-"?1:0;Le>=We+4;Le-=3)ke="_".concat(Oe.slice(Le-3,Le)).concat(ke);return"".concat(Oe.slice(0,Le)).concat(ke)}function ve(Oe,ke,Le,We,Ue,Ze){if(Oe>Le||Oe3?ke===0||ke===BigInt(0)?">= 0".concat(tt," and < 2").concat(tt," ** ").concat(8*(Ze+1)).concat(tt):">= -(2".concat(tt," ** ").concat(8*(Ze+1)-1).concat(tt,") and < 2 ** ")+"".concat(8*(Ze+1)-1).concat(tt):">= ".concat(ke).concat(tt," and <= ").concat(Le).concat(tt),new ae.ERR_OUT_OF_RANGE("value",Xe,Oe)}(function(Ee,Ne,je){ye(Ne,"offset"),Ee[Ne]!==void 0&&Ee[Ne+je]!==void 0||_e(Ne,Ee.length-(je+1))})(We,Ue,Ze)}function ye(Oe,ke){if(typeof Oe!="number")throw new ae.ERR_INVALID_ARG_TYPE(ke,"number",Oe)}function _e(Oe,ke,Le){throw Math.floor(Oe)!==Oe?(ye(Oe,Le),new ae.ERR_OUT_OF_RANGE(Le||"offset","an integer",Oe)):ke<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE(Le||"offset",">= ".concat(Le?1:0," and <= ").concat(ke),Oe)}ce("ERR_BUFFER_OUT_OF_BOUNDS",function(Oe){return Oe?"".concat(Oe," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),ce("ERR_INVALID_ARG_TYPE",function(Oe,ke){return'The "'.concat(Oe,'" argument must be of type number. Received type ').concat(w(ke))},TypeError),ce("ERR_OUT_OF_RANGE",function(Oe,ke,Le){var We='The value of "'.concat(Oe,'" is out of range.'),Ue=Le;return Number.isInteger(Le)&&Math.abs(Le)>Math.pow(2,32)?Ue=de(String(Le)):typeof Le=="bigint"&&(Ue=String(Le),(Le>Math.pow(BigInt(2),BigInt(32))||Le<-Math.pow(BigInt(2),BigInt(32)))&&(Ue=de(Ue)),Ue+="n"),We+" It must be ".concat(ke,". Received ").concat(Ue)},RangeError);var Se=/[^+/0-9A-Za-z-_]/g;function Te(Oe,ke){var Le;ke=ke||1/0;for(var We=Oe.length,Ue=null,Ze=[],Xe=0;Xe55295&&Le<57344){if(!Ue){if(Le>56319){(ke-=3)>-1&&Ze.push(239,191,189);continue}if(Xe+1===We){(ke-=3)>-1&&Ze.push(239,191,189);continue}Ue=Le;continue}if(Le<56320){(ke-=3)>-1&&Ze.push(239,191,189),Ue=Le;continue}Le=65536+(Ue-55296<<10|Le-56320)}else Ue&&(ke-=3)>-1&&Ze.push(239,191,189);if(Ue=null,Le<128){if((ke-=1)<0)break;Ze.push(Le)}else if(Le<2048){if((ke-=2)<0)break;Ze.push(Le>>6|192,63&Le|128)}else if(Le<65536){if((ke-=3)<0)break;Ze.push(Le>>12|224,Le>>6&63|128,63&Le|128)}else{if(!(Le<1114112))throw new Error("Invalid code point");if((ke-=4)<0)break;Ze.push(Le>>18|240,Le>>12&63|128,Le>>6&63|128,63&Le|128)}}return Ze}function Pe(Oe){return y.toByteArray(function(ke){if((ke=(ke=ke.split("=")[0]).trim().replace(Se,"")).length<2)return"";for(;ke.length%4!=0;)ke+="=";return ke}(Oe))}function Ie(Oe,ke,Le,We){var Ue;for(Ue=0;Ue=ke.length||Ue>=Oe.length);++Ue)ke[Ue+Le]=Oe[Ue];return Ue}function ze(Oe,ke){return Oe instanceof ke||Oe!=null&&Oe.constructor!=null&&Oe.constructor.name!=null&&Oe.constructor.name===ke.name}function De(Oe){return Oe!=Oe}var He=function(){for(var Oe="0123456789abcdef",ke=new Array(256),Le=0;Le<16;++Le)for(var We=16*Le,Ue=0;Ue<16;++Ue)ke[We+Ue]=Oe[Le]+Oe[Ue];return ke}();function Ve(Oe){return typeof BigInt>"u"?$e:Oe}function $e(){throw new Error("BigInt not supported")}},25928:function(d){d.exports=b,d.exports.isMobile=b,d.exports.default=b;var l=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,c=/android|ipad|playbook|silk/i;function b(i){i||(i={});var O=i.ua;if(O||typeof navigator>"u"||(O=navigator.userAgent),O&&O.headers&&typeof O.headers["user-agent"]=="string"&&(O=O.headers["user-agent"]),typeof O!="string")return!1;var w=l.test(O)&&!n.test(O)||!!i.tablet&&c.test(O);return!w&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&O.indexOf("Macintosh")!==-1&&O.indexOf("Safari")!==-1&&(w=!0),w}},48932:function(d,l,n){n.r(l),n.d(l,{sankeyCenter:function(){return h},sankeyCircular:function(){return Q},sankeyJustify:function(){return u},sankeyLeft:function(){return p},sankeyRight:function(){return a}});var c=n(84706),b=n(34712),i=n(10132),O=n(6688),w=n.n(O);function y(Ie){return Ie.target.depth}function p(Ie){return Ie.depth}function a(Ie,ze){return ze-1-Ie.height}function u(Ie,ze){return Ie.sourceLinks.length?Ie.depth:ze-1}function h(Ie){return Ie.targetLinks.length?Ie.depth:Ie.sourceLinks.length?(0,c.SY)(Ie.sourceLinks,y)-1:0}function m(Ie){return function(){return Ie}}var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie};function _(Ie,ze){return A(Ie.source,ze.source)||Ie.index-ze.index}function S(Ie,ze){return A(Ie.target,ze.target)||Ie.index-ze.index}function A(Ie,ze){return Ie.partOfCycle===ze.partOfCycle?Ie.y0-ze.y0:Ie.circularLinkType==="top"||ze.circularLinkType==="bottom"?-1:1}function x(Ie){return Ie.value}function R(Ie){return(Ie.y0+Ie.y1)/2}function M(Ie){return R(Ie.source)}function T(Ie){return R(Ie.target)}function E(Ie){return Ie.index}function C(Ie){return Ie.nodes}function L(Ie){return Ie.links}function D(Ie,ze){var De=Ie.get(ze);if(!De)throw new Error("missing: "+ze);return De}function k(Ie,ze){return ze(Ie)}var I=25,z=10,$=.3;function Q(){var Ie,ze,De=0,He=0,Ve=1,$e=1,Oe=24,ke=E,Le=u,We=C,Ue=L,Ze=32,Xe=2,tt=null;function Ee(){var je={nodes:We.apply(null,arguments),links:Ue.apply(null,arguments)};(function(ot){ot.nodes.forEach(function(ht,pt){ht.index=pt,ht.sourceLinks=[],ht.targetLinks=[]});var Ge=(0,b.kH)(ot.nodes,ke);ot.links.forEach(function(ht,pt){ht.index=pt;var wt=ht.source,Dt=ht.target;(wt===void 0?"undefined":v(wt))!=="object"&&(wt=ht.source=D(Ge,wt)),(Dt===void 0?"undefined":v(Dt))!=="object"&&(Dt=ht.target=D(Ge,Dt)),wt.sourceLinks.push(ht),Dt.targetLinks.push(ht)})})(je),function(ot,Ge,ht){var pt=0;if(ht===null){for(var wt=[],Dt=0;Dt0?bn+I+z:bn,bottom:mn=mn>0?mn+I+z:mn,left:bt=bt>0?bt+I+z:bt,right:vt=vt>0?vt+I+z:vt}}(ot),nn=function(gn,bn){var mn=(0,c.kv)(gn.nodes,function(zt){return zt.column}),vt=Ve-De,bt=$e-He,lt=vt/(vt+bn.right+bn.left),yt=bt/(bt+bn.top+bn.bottom);return De=De*lt+bn.left,Ve=bn.right==0?Ve:Ve*lt,He=He*yt+bn.top,$e*=yt,gn.nodes.forEach(function(zt){zt.x0=De+zt.column*((Ve-De-Oe)/mn),zt.x1=zt.x0+Oe}),yt}(ot,_t);Ct*=nn,ot.links.forEach(function(gn){gn.width=gn.value*Ct}),pt.forEach(function(gn){var bn=gn.length;gn.forEach(function(mn,vt){mn.depth==pt.length-1&&bn==1||mn.depth==0&&bn==1?(mn.y0=$e/2-mn.value*Ct,mn.y1=mn.y0+mn.value*Ct):mn.partOfCycle?X(mn,en)==0?(mn.y0=$e/2+vt,mn.y1=mn.y0+mn.value*Ct):mn.circularLinkType=="top"?(mn.y0=He+vt,mn.y1=mn.y0+mn.value*Ct):(mn.y0=$e-mn.value*Ct-vt,mn.y1=mn.y0+mn.value*Ct):_t.top==0||_t.bottom==0?(mn.y0=($e-He)/bn*vt,mn.y1=mn.y0+mn.value*Ct):(mn.y0=($e-He)/2-bn/2+vt,mn.y1=mn.y0+mn.value*Ct)})})})(ht),qt();for(var wt=1,Dt=Ge;Dt>0;--Dt)It(wt*=.99,ht),qt();function It(en,Gt){var Ct=pt.length;pt.forEach(function(_t){var nn=_t.length,gn=_t[0].depth;_t.forEach(function(bn){var mn;if((bn.sourceLinks.length||bn.targetLinks.length)&&!(bn.partOfCycle&&X(bn,Gt)>0))if(gn==0&&nn==1)mn=bn.y1-bn.y0,bn.y0=$e/2-mn/2,bn.y1=$e/2+mn/2;else if(gn==Ct-1&&nn==1)mn=bn.y1-bn.y0,bn.y0=$e/2-mn/2,bn.y1=$e/2+mn/2;else{var vt=(0,c.mo)(bn.sourceLinks,T),bt=(0,c.mo)(bn.targetLinks,M),lt=((vt&&bt?(vt+bt)/2:vt||bt)-R(bn))*en;bn.y0+=lt,bn.y1+=lt}})})}function qt(){pt.forEach(function(en){var Gt,Ct,_t,nn=He,gn=en.length;for(en.sort(A),_t=0;_t0&&(Gt.y0+=Ct,Gt.y1+=Ct),nn=Gt.y1+Ie;if((Ct=nn-Ie-$e)>0)for(nn=Gt.y0-=Ct,Gt.y1-=Ct,_t=gn-2;_t>=0;--_t)(Ct=(Gt=en[_t]).y1+Ie-nn)>0&&(Gt.y0-=Ct,Gt.y1-=Ct),nn=Gt.y0})}}(je,Ze,ke),Ne(je);for(var nt=0;nt<4;nt++)ye(je,$e,ke),_e(je,0,ke),de(je,He,$e,ke),ye(je,$e,ke),_e(je,0,ke);return function(ot,Ge,ht){var pt=ot.nodes,wt=ot.links,Dt=!1,It=!1;if(wt.forEach(function(Gt){Gt.circularLinkType=="top"?Dt=!0:Gt.circularLinkType=="bottom"&&(It=!0)}),Dt==0||It==0){var qt=(0,c.SY)(pt,function(Gt){return Gt.y0}),en=(ht-Ge)/((0,c.kv)(pt,function(Gt){return Gt.y1})-qt);pt.forEach(function(Gt){var Ct=(Gt.y1-Gt.y0)*en;Gt.y0=(Gt.y0-qt)*en,Gt.y1=Gt.y0+Ct}),wt.forEach(function(Gt){Gt.y0=(Gt.y0-qt)*en,Gt.y1=(Gt.y1-qt)*en,Gt.width=Gt.width*en})}}(je,He,$e),K(je,Xe,$e,ke),je}function Ne(je){je.nodes.forEach(function(nt){nt.sourceLinks.sort(S),nt.targetLinks.sort(_)}),je.nodes.forEach(function(nt){var ot=nt.y0,Ge=ot,ht=nt.y1,pt=ht;nt.sourceLinks.forEach(function(wt){wt.circular?(wt.y0=ht-wt.width/2,ht-=wt.width):(wt.y0=ot+wt.width/2,ot+=wt.width)}),nt.targetLinks.forEach(function(wt){wt.circular?(wt.y1=pt-wt.width/2,pt-=wt.width):(wt.y1=Ge+wt.width/2,Ge+=wt.width)})})}return Ee.nodeId=function(je){return arguments.length?(ke=typeof je=="function"?je:m(je),Ee):ke},Ee.nodeAlign=function(je){return arguments.length?(Le=typeof je=="function"?je:m(je),Ee):Le},Ee.nodeWidth=function(je){return arguments.length?(Oe=+je,Ee):Oe},Ee.nodePadding=function(je){return arguments.length?(Ie=+je,Ee):Ie},Ee.nodes=function(je){return arguments.length?(We=typeof je=="function"?je:m(je),Ee):We},Ee.links=function(je){return arguments.length?(Ue=typeof je=="function"?je:m(je),Ee):Ue},Ee.size=function(je){return arguments.length?(De=He=0,Ve=+je[0],$e=+je[1],Ee):[Ve-De,$e-He]},Ee.extent=function(je){return arguments.length?(De=+je[0][0],Ve=+je[1][0],He=+je[0][1],$e=+je[1][1],Ee):[[De,He],[Ve,$e]]},Ee.iterations=function(je){return arguments.length?(Ze=+je,Ee):Ze},Ee.circularLinkGap=function(je){return arguments.length?(Xe=+je,Ee):Xe},Ee.nodePaddingRatio=function(je){return arguments.length?(ze=+je,Ee):ze},Ee.sortNodes=function(je){return arguments.length?(tt=je,Ee):tt},Ee.update=function(je){return j(je,ke),Ne(je),je.links.forEach(function(nt){nt.circular&&(nt.circularLinkType=nt.y0+nt.y1<$e?"top":"bottom",nt.source.circularLinkType=nt.circularLinkType,nt.target.circularLinkType=nt.circularLinkType)}),ye(je,$e,ke,!1),_e(je,0,ke),K(je,Xe,$e,ke),je},Ee}function j(Ie,ze){var De=0,He=0;Ie.links.forEach(function(Ve){Ve.circular&&(Ve.source.circularLinkType||Ve.target.circularLinkType?Ve.circularLinkType=Ve.source.circularLinkType?Ve.source.circularLinkType:Ve.target.circularLinkType:Ve.circularLinkType=De1||Ve>1)}function W(Ie,ze,De){return Ie.sort(oe),Ie.forEach(function(He,Ve){var $e,Oe,ke=0;if(Pe(He,De)&&te(He))He.circularPathData.verticalBuffer=ke+He.width/2;else{for(var Le=0;LeOe.source.column)){var We=Ie[Le].circularPathData.verticalBuffer+Ie[Le].width/2+ze;ke=We>ke?We:ke}He.circularPathData.verticalBuffer=ke+He.width/2}}),Ie}function K(Ie,ze,De,He){var Ve=(0,c.SY)(Ie.links,function($e){return $e.source.y0});Ie.links.forEach(function($e){$e.circular&&($e.circularPathData={})}),W(Ie.links.filter(function($e){return $e.circularLinkType=="top"}),ze,He),W(Ie.links.filter(function($e){return $e.circularLinkType=="bottom"}),ze,He),Ie.links.forEach(function($e){if($e.circular){if($e.circularPathData.arcRadius=$e.width+z,$e.circularPathData.leftNodeBuffer=5,$e.circularPathData.rightNodeBuffer=5,$e.circularPathData.sourceWidth=$e.source.x1-$e.source.x0,$e.circularPathData.sourceX=$e.source.x0+$e.circularPathData.sourceWidth,$e.circularPathData.targetX=$e.target.x0,$e.circularPathData.sourceY=$e.y0,$e.circularPathData.targetY=$e.y1,Pe($e,He)&&te($e))$e.circularPathData.leftSmallArcRadius=z+$e.width/2,$e.circularPathData.leftLargeArcRadius=z+$e.width/2,$e.circularPathData.rightSmallArcRadius=z+$e.width/2,$e.circularPathData.rightLargeArcRadius=z+$e.width/2,$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=$e.source.y1+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=$e.source.y0-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius);else{var Oe=$e.source.column,ke=$e.circularLinkType,Le=Ie.links.filter(function(Ze){return Ze.source.column==Oe&&Ze.circularLinkType==ke});$e.circularLinkType=="bottom"?Le.sort(Y):Le.sort(q);var We=0;Le.forEach(function(Ze,Xe){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.leftSmallArcRadius=z+$e.width/2+We,$e.circularPathData.leftLargeArcRadius=z+$e.width/2+Xe*ze+We),We+=Ze.width}),Oe=$e.target.column,Le=Ie.links.filter(function(Ze){return Ze.target.column==Oe&&Ze.circularLinkType==ke}),$e.circularLinkType=="bottom"?Le.sort(me):Le.sort(ee),We=0,Le.forEach(function(Ze,Xe){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.rightSmallArcRadius=z+$e.width/2+We,$e.circularPathData.rightLargeArcRadius=z+$e.width/2+Xe*ze+We),We+=Ze.width}),$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=Math.max(De,$e.source.y1,$e.target.y1)+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=Ve-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius)}$e.circularPathData.leftInnerExtent=$e.circularPathData.sourceX+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightInnerExtent=$e.circularPathData.targetX-$e.circularPathData.rightNodeBuffer,$e.circularPathData.leftFullExtent=$e.circularPathData.sourceX+$e.circularPathData.leftLargeArcRadius+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightFullExtent=$e.circularPathData.targetX-$e.circularPathData.rightLargeArcRadius-$e.circularPathData.rightNodeBuffer}if($e.circular)$e.path=function(Ze){return Ze.circularLinkType=="top"?"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 0 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY-Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 0 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 0 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY-Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 0 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY:"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 1 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY+Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 1 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 1 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY+Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 1 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY}($e);else{var Ue=(0,i.ak)().source(function(Ze){return[Ze.source.x0+(Ze.source.x1-Ze.source.x0),Ze.y0]}).target(function(Ze){return[Ze.target.x0,Ze.y1]});$e.path=Ue($e)}})}function oe(Ie,ze){return he(Ie)==he(ze)?Ie.circularLinkType=="bottom"?Y(Ie,ze):q(Ie,ze):he(ze)-he(Ie)}function q(Ie,ze){return Ie.y0-ze.y0}function Y(Ie,ze){return ze.y0-Ie.y0}function ee(Ie,ze){return Ie.y1-ze.y1}function me(Ie,ze){return ze.y1-Ie.y1}function he(Ie){return Ie.target.column-Ie.source.column}function se(Ie){return Ie.target.x0-Ie.source.x1}function ae(Ie,ze){var De=U(Ie),He=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1+He:Ie.y1-He}function ce(Ie,ze){var De=U(Ie),He=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1-He:Ie.y1+He}function de(Ie,ze,De,He){Ie.links.forEach(function(Ve){if(!Ve.circular&&Ve.target.column-Ve.source.column>1){var $e=Ve.source.column+1,Oe=Ve.target.column-1,ke=1,Le=Oe-$e+1;for(ke=1;$e<=Oe;$e++,ke++)Ie.nodes.forEach(function(We){if(We.column==$e){var Ue,Ze=ke/(Le+1),Xe=Math.pow(1-Ze,3),tt=3*Ze*Math.pow(1-Ze,2),Ee=3*Math.pow(Ze,2)*(1-Ze),Ne=Math.pow(Ze,3),je=Xe*Ve.y0+tt*Ve.y0+Ee*Ve.y1+Ne*Ve.y1,nt=je-Ve.width/2,ot=je+Ve.width/2;nt>We.y0&&ntpt.y0&&ht.y0pt.y0&&ht.y1pt.y1)&&ve(Ge,Ue,ze,De)})):(ot>We.y0&&otWe.y1)&&(Ue=ot-We.y0+10,We=ve(We,Ue,ze,De),Ie.nodes.forEach(function(Ge){k(Ge,He)!=k(We,He)&&Ge.column==We.column&&Ge.y0We.y1&&ve(Ge,Ue,ze,De)}))}})}})}function ve(Ie,ze,De,He){return Ie.y0+ze>=De&&Ie.y1+ze<=He&&(Ie.y0=Ie.y0+ze,Ie.y1=Ie.y1+ze,Ie.targetLinks.forEach(function(Ve){Ve.y1=Ve.y1+ze}),Ie.sourceLinks.forEach(function(Ve){Ve.y0=Ve.y0+ze})),Ie}function ye(Ie,ze,De,He){Ie.nodes.forEach(function(Ve){He&&Ve.y+(Ve.y1-Ve.y0)>ze&&(Ve.y=Ve.y-(Ve.y+(Ve.y1-Ve.y0)-ze));var $e=Ie.links.filter(function(Le){return k(Le.source,De)==k(Ve,De)}),Oe=$e.length;Oe>1&&$e.sort(function(Le,We){if(!Le.circular&&!We.circular){if(Le.target.column==We.target.column||!Se(Le,We))return Le.y1-We.y1;if(Le.target.column>We.target.column){var Ue=ce(We,Le);return Le.y1-Ue}if(We.target.column>Le.target.column)return ce(Le,We)-We.y1}return Le.circular&&!We.circular?Le.circularLinkType=="top"?-1:1:We.circular&&!Le.circular?We.circularLinkType=="top"?1:-1:Le.circular&&We.circular?Le.circularLinkType===We.circularLinkType&&Le.circularLinkType=="top"?Le.target.column===We.target.column?Le.target.y1-We.target.y1:We.target.column-Le.target.column:Le.circularLinkType===We.circularLinkType&&Le.circularLinkType=="bottom"?Le.target.column===We.target.column?We.target.y1-Le.target.y1:Le.target.column-We.target.column:Le.circularLinkType=="top"?-1:1:void 0});var ke=Ve.y0;$e.forEach(function(Le){Le.y0=ke+Le.width/2,ke+=Le.width}),$e.forEach(function(Le,We){if(Le.circularLinkType=="bottom"){for(var Ue=We+1,Ze=0;Ue1&&Ve.sort(function(ke,Le){if(!ke.circular&&!Le.circular){if(ke.source.column==Le.source.column||!Se(ke,Le))return ke.y0-Le.y0;if(Le.source.column0?"up":"down"}function Pe(Ie,ze){return k(Ie.source,ze)==k(Ie.target,ze)}},26800:function(d,l,n){n.r(l),n.d(l,{sankey:function(){return E},sankeyCenter:function(){return p},sankeyJustify:function(){return y},sankeyLeft:function(){return O},sankeyLinkHorizontal:function(){return k},sankeyRight:function(){return w}});var c=n(84706),b=n(34712);function i(I){return I.target.depth}function O(I){return I.depth}function w(I,z){return z-1-I.height}function y(I,z){return I.sourceLinks.length?I.depth:z-1}function p(I){return I.targetLinks.length?I.depth:I.sourceLinks.length?(0,c.SY)(I.sourceLinks,i)-1:0}function a(I){return function(){return I}}function u(I,z){return m(I.source,z.source)||I.index-z.index}function h(I,z){return m(I.target,z.target)||I.index-z.index}function m(I,z){return I.y0-z.y0}function v(I){return I.value}function _(I){return(I.y0+I.y1)/2}function S(I){return _(I.source)*I.value}function A(I){return _(I.target)*I.value}function x(I){return I.index}function R(I){return I.nodes}function M(I){return I.links}function T(I,z){var $=I.get(z);if(!$)throw new Error("missing: "+z);return $}function E(){var I=0,z=0,$=1,Q=1,j=24,U=8,X=x,te=y,W=R,K=M,oe=32;function q(){var ee={nodes:W.apply(null,arguments),links:K.apply(null,arguments)};return function(me){me.nodes.forEach(function(se,ae){se.index=ae,se.sourceLinks=[],se.targetLinks=[]});var he=(0,b.kH)(me.nodes,X);me.links.forEach(function(se,ae){se.index=ae;var ce=se.source,de=se.target;typeof ce!="object"&&(ce=se.source=T(he,ce)),typeof de!="object"&&(de=se.target=T(he,de)),ce.sourceLinks.push(se),de.targetLinks.push(se)})}(ee),function(me){me.nodes.forEach(function(he){he.value=Math.max((0,c.oh)(he.sourceLinks,v),(0,c.oh)(he.targetLinks,v))})}(ee),function(me){var he,se,ae;for(he=me.nodes,se=[],ae=0;he.length;++ae,he=se,se=[])he.forEach(function(de){de.depth=ae,de.sourceLinks.forEach(function(ve){se.indexOf(ve.target)<0&&se.push(ve.target)})});for(he=me.nodes,se=[],ae=0;he.length;++ae,he=se,se=[])he.forEach(function(de){de.height=ae,de.targetLinks.forEach(function(ve){se.indexOf(ve.source)<0&&se.push(ve.source)})});var ce=($-I-j)/(ae-1);me.nodes.forEach(function(de){de.x1=(de.x0=I+Math.max(0,Math.min(ae-1,Math.floor(te.call(null,de,ae))))*ce)+j})}(ee),function(me){var he=(0,b.UJ)().key(function(ye){return ye.x0}).sortKeys(c.XE).entries(me.nodes).map(function(ye){return ye.values});(function(){var ye=(0,c.kv)(he,function(Te){return Te.length}),_e=.6666666666666666*(Q-z)/(ye-1);U>_e&&(U=_e);var Se=(0,c.SY)(he,function(Te){return(Q-z-(Te.length-1)*U)/(0,c.oh)(Te,v)});he.forEach(function(Te){Te.forEach(function(Pe,Ie){Pe.y1=(Pe.y0=Ie)+Pe.value*Se})}),me.links.forEach(function(Te){Te.width=Te.value*Se})})(),ve();for(var se=1,ae=oe;ae>0;--ae)de(se*=.99),ve(),ce(se),ve();function ce(ye){he.forEach(function(_e){_e.forEach(function(Se){if(Se.targetLinks.length){var Te=((0,c.oh)(Se.targetLinks,S)/(0,c.oh)(Se.targetLinks,v)-_(Se))*ye;Se.y0+=Te,Se.y1+=Te}})})}function de(ye){he.slice().reverse().forEach(function(_e){_e.forEach(function(Se){if(Se.sourceLinks.length){var Te=((0,c.oh)(Se.sourceLinks,A)/(0,c.oh)(Se.sourceLinks,v)-_(Se))*ye;Se.y0+=Te,Se.y1+=Te}})})}function ve(){he.forEach(function(ye){var _e,Se,Te,Pe=z,Ie=ye.length;for(ye.sort(m),Te=0;Te0&&(_e.y0+=Se,_e.y1+=Se),Pe=_e.y1+U;if((Se=Pe-U-Q)>0)for(Pe=_e.y0-=Se,_e.y1-=Se,Te=Ie-2;Te>=0;--Te)(Se=(_e=ye[Te]).y1+U-Pe)>0&&(_e.y0-=Se,_e.y1-=Se),Pe=_e.y0})}}(ee),Y(ee),ee}function Y(ee){ee.nodes.forEach(function(me){me.sourceLinks.sort(h),me.targetLinks.sort(u)}),ee.nodes.forEach(function(me){var he=me.y0,se=he;me.sourceLinks.forEach(function(ae){ae.y0=he+ae.width/2,he+=ae.width}),me.targetLinks.forEach(function(ae){ae.y1=se+ae.width/2,se+=ae.width})})}return q.update=function(ee){return Y(ee),ee},q.nodeId=function(ee){return arguments.length?(X=typeof ee=="function"?ee:a(ee),q):X},q.nodeAlign=function(ee){return arguments.length?(te=typeof ee=="function"?ee:a(ee),q):te},q.nodeWidth=function(ee){return arguments.length?(j=+ee,q):j},q.nodePadding=function(ee){return arguments.length?(U=+ee,q):U},q.nodes=function(ee){return arguments.length?(W=typeof ee=="function"?ee:a(ee),q):W},q.links=function(ee){return arguments.length?(K=typeof ee=="function"?ee:a(ee),q):K},q.size=function(ee){return arguments.length?(I=z=0,$=+ee[0],Q=+ee[1],q):[$-I,Q-z]},q.extent=function(ee){return arguments.length?(I=+ee[0][0],$=+ee[1][0],z=+ee[0][1],Q=+ee[1][1],q):[[I,z],[$,Q]]},q.iterations=function(ee){return arguments.length?(oe=+ee,q):oe},q}var C=n(10132);function L(I){return[I.source.x1,I.y0]}function D(I){return[I.target.x0,I.y1]}function k(){return(0,C.ak)().source(L).target(D)}},33428:function(d,l,n){var c,b;(function(){var i={version:"3.8.0"},O=[].slice,w=function(V){return O.call(V)},y=self.document;function p(V){return V&&(V.ownerDocument||V.document||V).documentElement}function a(V){return V&&(V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView)}if(y)try{w(y.documentElement.childNodes)[0].nodeType}catch{w=function(ne){for(var ge=ne.length,xe=new Array(ge);ge--;)xe[ge]=ne[ge];return xe}}if(Date.now||(Date.now=function(){return+new Date}),y)try{y.createElement("DIV").style.setProperty("opacity",0,"")}catch{var u=this.Element.prototype,h=u.setAttribute,m=u.setAttributeNS,v=this.CSSStyleDeclaration.prototype,_=v.setProperty;u.setAttribute=function(ne,ge){h.call(this,ne,ge+"")},u.setAttributeNS=function(ne,ge,xe){m.call(this,ne,ge,xe+"")},v.setProperty=function(ne,ge,xe){_.call(this,ne,ge+"",xe)}}function S(V,ne){return Vne?1:V>=ne?0:NaN}function A(V){return V===null?NaN:+V}function x(V){return!isNaN(V)}function R(V){return{left:function(ne,ge,xe,Me){for(arguments.length<3&&(xe=0),arguments.length<4&&(Me=ne.length);xe>>1;V(ne[Fe],ge)<0?xe=Fe+1:Me=Fe}return xe},right:function(ne,ge,xe,Me){for(arguments.length<3&&(xe=0),arguments.length<4&&(Me=ne.length);xe>>1;V(ne[Fe],ge)>0?Me=Fe:xe=Fe+1}return xe}}}i.ascending=S,i.descending=function(V,ne){return neV?1:ne>=V?0:NaN},i.min=function(V,ne){var ge,xe,Me=-1,Fe=V.length;if(arguments.length===1){for(;++Me=xe){ge=xe;break}for(;++Mexe&&(ge=xe)}else{for(;++Me=xe){ge=xe;break}for(;++Mexe&&(ge=xe)}return ge},i.max=function(V,ne){var ge,xe,Me=-1,Fe=V.length;if(arguments.length===1){for(;++Me=xe){ge=xe;break}for(;++Mege&&(ge=xe)}else{for(;++Me=xe){ge=xe;break}for(;++Mege&&(ge=xe)}return ge},i.extent=function(V,ne){var ge,xe,Me,Fe=-1,Je=V.length;if(arguments.length===1){for(;++Fe=xe){ge=Me=xe;break}for(;++Fexe&&(ge=xe),Me=xe){ge=Me=xe;break}for(;++Fexe&&(ge=xe),Me1)return Je/(dt-1)},i.deviation=function(){var V=i.variance.apply(this,arguments);return V&&Math.sqrt(V)};var M=R(S);function T(V){return V.length}i.bisectLeft=M.left,i.bisect=i.bisectRight=M.right,i.bisector=function(V){return R(V.length===1?function(ne,ge){return S(V(ne),ge)}:V)},i.shuffle=function(V,ne,ge){(Fe=arguments.length)<3&&(ge=V.length,Fe<2&&(ne=0));for(var xe,Me,Fe=ge-ne;Fe;)Me=Math.random()*Fe--|0,xe=V[Fe+ne],V[Fe+ne]=V[Me+ne],V[Me+ne]=xe;return V},i.permute=function(V,ne){for(var ge=ne.length,xe=new Array(ge);ge--;)xe[ge]=V[ne[ge]];return xe},i.pairs=function(V){for(var ne=0,ge=V.length-1,xe=V[0],Me=new Array(ge<0?0:ge);ne=0;)for(ne=(xe=V[Me]).length;--ne>=0;)ge[--Je]=xe[ne];return ge};var E=Math.abs;function C(V,ne){for(var ge in ne)Object.defineProperty(V.prototype,ge,{value:ne[ge],enumerable:!1})}function L(){this._=Object.create(null)}i.range=function(V,ne,ge){if(arguments.length<3&&(ge=1,arguments.length<2&&(ne=V,V=0)),(ne-V)/ge==1/0)throw new Error("infinite range");var xe,Me=[],Fe=function(rt){for(var dt=1;rt*dt%1;)dt*=10;return dt}(E(ge)),Je=-1;if(V*=Fe,ne*=Fe,(ge*=Fe)<0)for(;(xe=V+ge*++Je)>ne;)Me.push(xe/Fe);else for(;(xe=V+ge*++Je)=xe.length)return ne?ne.call(ge,dt):V?dt.sort(V):dt;for(var Et,Vt,jt,Nt,cn=-1,sn=dt.length,xn=xe[mt++],pn=new L;++cn=xe.length)return rt;var mt=[],Et=Me[dt++];return rt.forEach(function(Vt,jt){mt.push({key:Vt,values:Je(jt,dt)})}),Et?mt.sort(function(Vt,jt){return Et(Vt.key,jt.key)}):mt}return ge.map=function(rt,dt){return Fe(dt,rt,0)},ge.entries=function(rt){return Je(Fe(i.map,rt,0),0)},ge.key=function(rt){return xe.push(rt),ge},ge.sortKeys=function(rt){return Me[xe.length-1]=rt,ge},ge.sortValues=function(rt){return V=rt,ge},ge.rollup=function(rt){return ne=rt,ge},ge},i.set=function(V){var ne=new te;if(V)for(var ge=0,xe=V.length;ge=0&&(xe=V.slice(ge+1),V=V.slice(0,ge)),V)return arguments.length<2?this[V].on(xe):this[V].on(xe,ne);if(arguments.length===2){if(ne==null)for(V in this)this.hasOwnProperty(V)&&this[V].on(xe,null);return this}},i.event=null,i.requote=function(V){return V.replace(ce,"\\$&")};var ce=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,de={}.__proto__?function(V,ne){V.__proto__=ne}:function(V,ne){for(var ge in ne)V[ge]=ne[ge]};function ve(V){return de(V,Te),V}var ye=function(V,ne){return ne.querySelector(V)},_e=function(V,ne){return ne.querySelectorAll(V)},Se=function(V,ne){var ge=V.matches||V[oe(V,"matchesSelector")];return Se=function(xe,Me){return ge.call(xe,Me)},Se(V,ne)};typeof Sizzle=="function"&&(ye=function(V,ne){return Sizzle(V,ne)[0]||null},_e=Sizzle,Se=Sizzle.matchesSelector),i.selection=function(){return i.select(y.documentElement)};var Te=i.selection.prototype=[];function Pe(V){return typeof V=="function"?V:function(){return ye(V,this)}}function Ie(V){return typeof V=="function"?V:function(){return _e(V,this)}}Te.select=function(V){var ne,ge,xe,Me,Fe=[];V=Pe(V);for(var Je=-1,rt=this.length;++Je=0&&(ge=V.slice(0,ne))!=="xmlns"&&(V=V.slice(ne+1)),De.hasOwnProperty(ge)?{space:De[ge],local:V}:V}},Te.attr=function(V,ne){if(arguments.length<2){if(typeof V=="string"){var ge=this.node();return(V=i.ns.qualify(V)).local?ge.getAttributeNS(V.space,V.local):ge.getAttribute(V)}for(ne in V)this.each(He(ne,V[ne]));return this}return this.each(He(V,ne))},Te.classed=function(V,ne){if(arguments.length<2){if(typeof V=="string"){var ge=this.node(),xe=(V=Oe(V)).length,Me=-1;if(ne=ge.classList){for(;++Me=0;)(ge=xe[Me])&&(Fe&&Fe!==ge.nextSibling&&Fe.parentNode.insertBefore(ge,Fe),Fe=ge);return this},Te.sort=function(V){V=Ne.apply(this,arguments);for(var ne=-1,ge=this.length;++ne0&&(V=V.slice(0,Me));var Je=ht.get(V);function rt(){var dt=this[xe];dt&&(this.removeEventListener(V,dt,dt.$),delete this[xe])}return Je&&(V=Je,Fe=wt),Me?ne?function(){var dt=Fe(ne,w(arguments));rt.call(this),this.addEventListener(V,this[xe]=dt,dt.$=ge),dt._=ne}:rt:ne?Y:function(){var dt,mt=new RegExp("^__on([^.]+)"+i.requote(V)+"$");for(var Et in this)if(dt=Et.match(mt)){var Vt=this[Et];this.removeEventListener(dt[1],Vt,Vt.$),delete this[Et]}}}i.selection.enter=nt,i.selection.enter.prototype=ot,ot.append=Te.append,ot.empty=Te.empty,ot.node=Te.node,ot.call=Te.call,ot.size=Te.size,ot.select=function(V){for(var ne,ge,xe,Me,Fe,Je=[],rt=-1,dt=this.length;++rt=xe&&(xe=Je+1);!(dt=mt[xe])&&++xe1?vt:V<-1?-vt:Math.asin(V)}function zt(V){return((V=Math.exp(V))+1/V)/2}var Rt=Math.SQRT2;i.interpolateZoom=function(V,ne){var ge,xe,Me=V[0],Fe=V[1],Je=V[2],rt=ne[0],dt=ne[1],mt=ne[2],Et=rt-Me,Vt=dt-Fe,jt=Et*Et+Vt*Vt;if(jt0&&(Hr=Hr.transition().duration(jt)),Hr.call(On.event)}function Pr(){Je&&Je.domain(Fe.range().map(function(Hr){return(Hr-mt.x)/mt.k}).map(Fe.invert)),dt&&dt.domain(rt.range().map(function(Hr){return(Hr-mt.y)/mt.k}).map(rt.invert))}function Zr(Hr){Nt++||Hr({type:"zoomstart"})}function Mo(Hr){Pr(),Hr({type:"zoom",scale:mt.k,translate:[mt.x,mt.y]})}function $o(Hr){--Nt||(Hr({type:"zoomend"}),ne=null)}function vo(){var Hr=this,Lo=Ln.of(Hr,arguments),ki=0,Io=i.select(a(Hr)).on(sn,function(){ki=1,rr(i.mouse(Hr),$i),Mo(Lo)}).on(xn,function(){Io.on(sn,null).on(xn,null),Ui(ki),$o(Lo)}),$i=An(i.mouse(Hr)),Ui=qt(Hr);au.call(Hr),Zr(Lo)}function zo(){var Hr,Lo=this,ki=Ln.of(Lo,arguments),Io={},$i=0,Ui=".zoom-"+i.event.changedTouches[0].identifier,ba="touchmove"+Ui,Pi="touchend"+Ui,fs=[],mr=i.select(Lo),ys=qt(Lo);function Pl(){var Pa=i.touches(Lo);return Hr=mt.k,Pa.forEach(function(Rs){Rs.identifier in Io&&(Io[Rs.identifier]=An(Rs))}),Pa}function Ys(){var Pa=i.event.target;i.select(Pa).on(ba,dl).on(Pi,ds),fs.push(Pa);for(var Rs=i.event.changedTouches,Ls=0,ol=Rs.length;Ls1){ec=Is[0];var Tc=Is[1],op=ec[0]-Tc[0],ip=ec[1]-Tc[1];$i=op*op+ip*ip}}function dl(){var Pa,Rs,Ls,ol,Is=i.touches(Lo);au.call(Lo);for(var Ds=0,ec=Is.length;Ds360?rt-=360:rt<0&&(rt+=360),rt<60?xe+(Me-xe)*rt/60:rt<180?Me:rt<240?xe+(Me-xe)*(240-rt)/60:xe}(Je))}return V=isNaN(V)?0:(V%=360)<0?V+360:V,ne=isNaN(ne)||ne<0?0:ne>1?1:ne,xe=2*(ge=ge<0?0:ge>1?1:ge)-(Me=ge<=.5?ge*(1+ne):ge+ne-ge*ne),new Sr(Fe(V+120),Fe(V),Fe(V-120))}function Qt(V,ne,ge){return this instanceof Qt?(this.h=+V,this.c=+ne,void(this.l=+ge)):arguments.length<2?V instanceof Qt?new Qt(V.h,V.c,V.l):function(xe,Me,Fe){return xe>0?new Qt(Math.atan2(Fe,Me)*lt,Math.sqrt(Me*Me+Fe*Fe),xe):new Qt(NaN,NaN,xe)}(V instanceof Kt?V.l:(V=Ir((V=i.rgb(V)).r,V.g,V.b)).l,V.a,V.b):new Qt(V,ne,ge)}Xt.brighter=function(V){return V=Math.pow(.7,arguments.length?V:1),new Ht(this.h,this.s,this.l/V)},Xt.darker=function(V){return V=Math.pow(.7,arguments.length?V:1),new Ht(this.h,this.s,V*this.l)},Xt.rgb=function(){return Yt(this.h,this.s,this.l)},i.hcl=Qt;var Pt=Qt.prototype=new xt;function tn(V,ne,ge){return isNaN(V)&&(V=0),isNaN(ne)&&(ne=0),new Kt(ge,Math.cos(V*=bt)*ne,Math.sin(V)*ne)}function Kt(V,ne,ge){return this instanceof Kt?(this.l=+V,this.a=+ne,void(this.b=+ge)):arguments.length<2?V instanceof Kt?new Kt(V.l,V.a,V.b):V instanceof Qt?tn(V.h,V.c,V.l):Ir((V=Sr(V)).r,V.g,V.b):new Kt(V,ne,ge)}Pt.brighter=function(V){return new Qt(this.h,this.c,Math.min(100,this.l+fn*(arguments.length?V:1)))},Pt.darker=function(V){return new Qt(this.h,this.c,Math.max(0,this.l-fn*(arguments.length?V:1)))},Pt.rgb=function(){return tn(this.h,this.c,this.l).rgb()},i.lab=Kt;var fn=18,dn=.95047,vn=1,Nn=1.08883,er=Kt.prototype=new xt;function En(V,ne,ge){var xe=(V+16)/116,Me=xe+ne/500,Fe=xe-ge/200;return new Sr(xr(3.2404542*(Me=In(Me)*dn)-1.5371385*(xe=In(xe)*vn)-.4985314*(Fe=In(Fe)*Nn)),xr(-.969266*Me+1.8760108*xe+.041556*Fe),xr(.0556434*Me-.2040259*xe+1.0572252*Fe))}function In(V){return V>.206893034?V*V*V:(V-.13793103448275862)/7.787037}function Un(V){return V>.008856?Math.pow(V,.3333333333333333):7.787037*V+.13793103448275862}function xr(V){return Math.round(255*(V<=.00304?12.92*V:1.055*Math.pow(V,.4166666666666667)-.055))}function Sr(V,ne,ge){return this instanceof Sr?(this.r=~~V,this.g=~~ne,void(this.b=~~ge)):arguments.length<2?V instanceof Sr?new Sr(V.r,V.g,V.b):Kn(""+V,Sr,Yt):new Sr(V,ne,ge)}function ar(V){return new Sr(V>>16,V>>8&255,255&V)}function Fn(V){return ar(V)+""}er.brighter=function(V){return new Kt(Math.min(100,this.l+fn*(arguments.length?V:1)),this.a,this.b)},er.darker=function(V){return new Kt(Math.max(0,this.l-fn*(arguments.length?V:1)),this.a,this.b)},er.rgb=function(){return En(this.l,this.a,this.b)},i.rgb=Sr;var ir=Sr.prototype=new xt;function Wn(V){return V<16?"0"+Math.max(0,V).toString(16):Math.min(255,V).toString(16)}function Kn(V,ne,ge){var xe,Me,Fe,Je=0,rt=0,dt=0;if(xe=/([a-z]+)\((.*)\)/.exec(V=V.toLowerCase()))switch(Me=xe[2].split(","),xe[1]){case"hsl":return ge(parseFloat(Me[0]),parseFloat(Me[1])/100,parseFloat(Me[2])/100);case"rgb":return ne(Fr(Me[0]),Fr(Me[1]),Fr(Me[2]))}return(Fe=Rr.get(V))?ne(Fe.r,Fe.g,Fe.b):(V==null||V.charAt(0)!=="#"||isNaN(Fe=parseInt(V.slice(1),16))||(V.length===4?(Je=(3840&Fe)>>4,Je|=Je>>4,rt=240&Fe,rt|=rt>>4,dt=15&Fe,dt|=dt<<4):V.length===7&&(Je=(16711680&Fe)>>16,rt=(65280&Fe)>>8,dt=255&Fe)),ne(Je,rt,dt))}function _r(V,ne,ge){var xe,Me,Fe=Math.min(V/=255,ne/=255,ge/=255),Je=Math.max(V,ne,ge),rt=Je-Fe,dt=(Je+Fe)/2;return rt?(Me=dt<.5?rt/(Je+Fe):rt/(2-Je-Fe),xe=V==Je?(ne-ge)/rt+(ne0&&dt<1?0:xe),new Ht(xe,Me,dt)}function Ir(V,ne,ge){var xe=Un((.4124564*(V=zr(V))+.3575761*(ne=zr(ne))+.1804375*(ge=zr(ge)))/dn),Me=Un((.2126729*V+.7151522*ne+.072175*ge)/vn);return Kt(116*Me-16,500*(xe-Me),200*(Me-Un((.0193339*V+.119192*ne+.9503041*ge)/Nn)))}function zr(V){return(V/=255)<=.04045?V/12.92:Math.pow((V+.055)/1.055,2.4)}function Fr(V){var ne=parseFloat(V);return V.charAt(V.length-1)==="%"?Math.round(2.55*ne):ne}ir.brighter=function(V){V=Math.pow(.7,arguments.length?V:1);var ne=this.r,ge=this.g,xe=this.b,Me=30;return ne||ge||xe?(ne&&ne=200&&Vt<300||Vt===304){try{Et=ge.call(Me,rt)}catch(jt){return void Fe.error.call(Me,jt)}Fe.load.call(Me,Et)}else Fe.error.call(Me,rt)}return self.XDomainRequest&&!("withCredentials"in rt)&&/^(http(s)?:)?\/\//.test(V)&&(rt=new XDomainRequest),"onload"in rt?rt.onload=rt.onerror=mt:rt.onreadystatechange=function(){rt.readyState>3&&mt()},rt.onprogress=function(Et){var Vt=i.event;i.event=Et;try{Fe.progress.call(Me,rt)}finally{i.event=Vt}},Me.header=function(Et,Vt){return Et=(Et+"").toLowerCase(),arguments.length<2?Je[Et]:(Vt==null?delete Je[Et]:Je[Et]=Vt+"",Me)},Me.mimeType=function(Et){return arguments.length?(ne=Et==null?null:Et+"",Me):ne},Me.responseType=function(Et){return arguments.length?(dt=Et,Me):dt},Me.response=function(Et){return ge=Et,Me},["get","post"].forEach(function(Et){Me[Et]=function(){return Me.send.apply(Me,[Et].concat(w(arguments)))}}),Me.send=function(Et,Vt,jt){if(arguments.length===2&&typeof Vt=="function"&&(jt=Vt,Vt=null),rt.open(Et,V,!0),ne==null||"accept"in Je||(Je.accept=ne+",*/*"),rt.setRequestHeader)for(var Nt in Je)rt.setRequestHeader(Nt,Je[Nt]);return ne!=null&&rt.overrideMimeType&&rt.overrideMimeType(ne),dt!=null&&(rt.responseType=dt),jt!=null&&Me.on("error",jt).on("load",function(cn){jt(null,cn)}),Fe.beforesend.call(Me,rt),rt.send(Vt??null),Me},Me.abort=function(){return rt.abort(),Me},i.rebind(Me,Fe,"on"),xe==null?Me:Me.get(function(Et){return Et.length===1?function(Vt,jt){Et(Vt==null?jt:null)}:Et}(xe))}Rr.forEach(function(V,ne){Rr.set(V,ar(ne))}),i.functor=$r,i.xhr=Kr(W),i.dsv=function(V,ne){var ge=new RegExp('["'+V+` +`;for(Se=0,Te=ye*De,Pe=me,Le="",_e=0;_e",K="",oe=W.length,q=K.length,Y=U[0]===E||U[0]===D,ee=0,me=-q;ee>-1&&(ee=X.indexOf(W,ee))!==-1&&(me=X.indexOf(K,ee+oe))!==-1&&!(me<=ee);){for(var he=ee;he=me)te[he]=null,X=X.substr(0,he)+" "+X.substr(he+1);else if(te[he]!==null){var se=te[he].indexOf(U[0]);se===-1?te[he]+=U:Y&&(te[he]=te[he].substr(0,se+1)+(1+parseInt(te[he][se+1]))+te[he].substr(se+2))}var ae=ee+oe,ce=X.substr(ae,me-ae).indexOf(W);ee=ce!==-1?ce:me+q}return te}function z(j,U){var X=u(j,128);return U?m(X.cells,X.positions,.25):{edges:X.cells,positions:X.positions}}function $(j,U,X,te){var W=z(j,te),K=function(ye,_e,Se){for(var Te=_e.textAlign||"start",Pe=_e.textBaseline||"alphabetic",Ie=[1<<30,1<<30],ze=[0,0],De=ye.length,He=0;He"u"||!ses.ok||ses.ok()){typeof ses<"u"&&(ses.weakMapPermitHostObjects=L);var p=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var u=new a,h=Object.freeze({});if(u.set(h,1),u.get(h)===1)return void(y.exports=WeakMap);p=!0}}var m=Object.getOwnPropertyNames,v=Object.defineProperty,_=Object.isExtensible,S="weakmap:",A=S+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var x=new ArrayBuffer(25),R=new Uint8Array(x);crypto.getRandomValues(R),A=S+"rand:"+Array.prototype.map.call(R,function($){return($%36).toString(36)}).join("")+"___"}if(v(Object,"getOwnPropertyNames",{value:function($){return m($).filter(D)}}),"getPropertyNames"in Object){var M=Object.getPropertyNames;v(Object,"getPropertyNames",{value:function($){return M($).filter(D)}})}(function(){var $=Object.freeze;v(Object,"freeze",{value:function(U){return k(U),$(U)}});var Q=Object.seal;v(Object,"seal",{value:function(U){return k(U),Q(U)}});var j=Object.preventExtensions;v(Object,"preventExtensions",{value:function(U){return k(U),j(U)}})})();var T=!1,E=0,C=function(){this instanceof C||z();var $=[],Q=[],j=E++;return Object.create(C.prototype,{get___:{value:I(function(U,X){var te,W=k(U);return W?j in W?W[j]:X:(te=$.indexOf(U))>=0?Q[te]:X})},has___:{value:I(function(U){var X=k(U);return X?j in X:$.indexOf(U)>=0})},set___:{value:I(function(U,X){var te,W=k(U);return W?W[j]=X:(te=$.indexOf(U))>=0?Q[te]=X:(te=$.length,Q[te]=X,$[te]=U),this})},delete___:{value:I(function(U){var X,te,W=k(U);return W?j in W&&delete W[j]:!((X=$.indexOf(U))<0||(te=$.length-1,$[X]=void 0,Q[X]=Q[te],$[X]=$[te],$.length=te,Q.length=te,0))})}})};C.prototype=Object.create(Object.prototype,{get:{value:function($,Q){return this.get___($,Q)},writable:!0,configurable:!0},has:{value:function($){return this.has___($)},writable:!0,configurable:!0},set:{value:function($,Q){return this.set___($,Q)},writable:!0,configurable:!0},delete:{value:function($){return this.delete___($)},writable:!0,configurable:!0}}),typeof a=="function"?function(){function $(){this instanceof C||z();var Q,j=new a,U=void 0,X=!1;return Q=p?function(te,W){return j.set(te,W),j.has(te)||(U||(U=new C),U.set(te,W)),this}:function(te,W){if(X)try{j.set(te,W)}catch{U||(U=new C),U.set___(te,W)}else j.set(te,W);return this},Object.create(C.prototype,{get___:{value:I(function(te,W){return U?j.has(te)?j.get(te):U.get___(te,W):j.get(te,W)})},has___:{value:I(function(te){return j.has(te)||!!U&&U.has___(te)})},set___:{value:I(Q)},delete___:{value:I(function(te){var W=!!j.delete(te);return U&&U.delete___(te)||W})},permitHostObjects___:{value:I(function(te){if(te!==L)throw new Error("bogus call to permitHostObjects___");X=!0})}})}p&&typeof Proxy<"u"&&(Proxy=void 0),$.prototype=C.prototype,y.exports=$,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),y.exports=C)}function L($){$.permitHostObjects___&&$.permitHostObjects___(L)}function D($){return!($.substr(0,8)==S&&$.substr($.length-3)==="___")}function k($){if($!==Object($))throw new TypeError("Not an object: "+$);var Q=$[A];if(Q&&Q.key===$)return Q;if(_($)){Q={key:$};try{return v($,A,{value:Q,writable:!1,enumerable:!1,configurable:!1}),Q}catch{return}}}function I($){return $.prototype=null,Object.freeze($)}function z(){T||typeof console>"u"||(T=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}})()},9222:function(y,p,a){var u=a(7178);y.exports=function(){var h={};return function(m){if((typeof m!="object"||m===null)&&typeof m!="function")throw new Error("Weakmap-shim: Key must be object");var v=m.valueOf(h);return v&&v.identity===h?v:u(m,h)}}},7178:function(y){y.exports=function(p,a){var u={identity:a},h=p.valueOf;return Object.defineProperty(p,"valueOf",{value:function(m){return m!==a?h.apply(this,arguments):u},writable:!0}),u}},4037:function(y,p,a){var u=a(9222);y.exports=function(){var h=u();return{get:function(m,v){var _=h(m);return _.hasOwnProperty("value")?_.value:v},set:function(m,v){return h(m).value=v,this},has:function(m){return"value"in h(m)},delete:function(m){return delete h(m).value}}}},6183:function(y){y.exports=function(p){var a={};return function(u,h,m){var v=u.dtype,_=u.order,S=[v,_.join()].join(),A=a[S];return A||(a[S]=A=p([v,_])),A(u.shape.slice(0),u.data,u.stride,0|u.offset,h,m)}}((function(){return function(p,a,u,h,m,v){var _=p[0],S=u[0],A=[0],x=S;h|=0;var R=0,M=S;for(R=0;R<_;++R){var T=a[h]-v,E=a[h+x]-v;T>=0!=E>=0&&m.push(A[0]+.5+.5*(T+E)/(T-E)),h+=M,++A[0]}}}).bind(void 0,{funcName:"zeroCrossings"}))},9584:function(y,p,a){y.exports=function(h,m){var v=[];return m=+m||0,u(h.hi(h.shape[0]-1),v,m),v};var u=a(6183)},6601:function(){}},O={};function w(y){var p=O[y];if(p!==void 0)return p.exports;var a=O[y]={id:y,loaded:!1,exports:{}};return i[y].call(a.exports,a,a.exports,w),a.loaded=!0,a.exports}return w.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),w.nmd=function(y){return y.paths=[],y.children||(y.children=[]),y},w(7386)}()},d.exports=c()},33576:function(d,l,n){function c(Oe,ke){for(var Le=0;Leu)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var ke=new Uint8Array(Oe);return Object.setPrototypeOf(ke,m.prototype),ke}function m(Oe,ke,Le){if(typeof Oe=="number"){if(typeof ke=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(Oe)}return v(Oe,ke,Le)}function v(Oe,ke,Le){if(typeof Oe=="string")return function(Ze,Xe){if(typeof Xe=="string"&&Xe!==""||(Xe="utf8"),!m.isEncoding(Xe))throw new TypeError("Unknown encoding: "+Xe);var tt=0|M(Ze,Xe),Ee=h(tt),Ne=Ee.write(Ze,Xe);return Ne!==tt&&(Ee=Ee.slice(0,Ne)),Ee}(Oe,ke);if(ArrayBuffer.isView(Oe))return function(Ze){if(ze(Ze,Uint8Array)){var Xe=new Uint8Array(Ze);return x(Xe.buffer,Xe.byteOffset,Xe.byteLength)}return A(Ze)}(Oe);if(Oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe));if(ze(Oe,ArrayBuffer)||Oe&&ze(Oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(Oe,SharedArrayBuffer)||Oe&&ze(Oe.buffer,SharedArrayBuffer)))return x(Oe,ke,Le);if(typeof Oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var We=Oe.valueOf&&Oe.valueOf();if(We!=null&&We!==Oe)return m.from(We,ke,Le);var Ue=function(Ze){if(m.isBuffer(Ze)){var Xe=0|R(Ze.length),tt=h(Xe);return tt.length===0||Ze.copy(tt,0,0,Xe),tt}return Ze.length!==void 0?typeof Ze.length!="number"||De(Ze.length)?h(0):A(Ze):Ze.type==="Buffer"&&Array.isArray(Ze.data)?A(Ze.data):void 0}(Oe);if(Ue)return Ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Oe[Symbol.toPrimitive]=="function")return m.from(Oe[Symbol.toPrimitive]("string"),ke,Le);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe))}function _(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function S(Oe){return _(Oe),h(Oe<0?0:0|R(Oe))}function A(Oe){for(var ke=Oe.length<0?0:0|R(Oe.length),Le=h(ke),We=0;We=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|Oe}function M(Oe,ke){if(m.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||ze(Oe,ArrayBuffer))return Oe.byteLength;if(typeof Oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+w(Oe));var Le=Oe.length,We=arguments.length>2&&arguments[2]===!0;if(!We&&Le===0)return 0;for(var Ue=!1;;)switch(ke){case"ascii":case"latin1":case"binary":return Le;case"utf8":case"utf-8":return Te(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Le;case"hex":return Le>>>1;case"base64":return Pe(Oe).length;default:if(Ue)return We?-1:Te(Oe).length;ke=(""+ke).toLowerCase(),Ue=!0}}function T(Oe,ke,Le){var We=!1;if((ke===void 0||ke<0)&&(ke=0),ke>this.length||((Le===void 0||Le>this.length)&&(Le=this.length),Le<=0)||(Le>>>=0)<=(ke>>>=0))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return W(this,ke,Le);case"utf8":case"utf-8":return j(this,ke,Le);case"ascii":return X(this,ke,Le);case"latin1":case"binary":return te(this,ke,Le);case"base64":return Q(this,ke,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,ke,Le);default:if(We)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),We=!0}}function E(Oe,ke,Le){var We=Oe[ke];Oe[ke]=Oe[Le],Oe[Le]=We}function C(Oe,ke,Le,We,Ue){if(Oe.length===0)return-1;if(typeof Le=="string"?(We=Le,Le=0):Le>2147483647?Le=2147483647:Le<-2147483648&&(Le=-2147483648),De(Le=+Le)&&(Le=Ue?0:Oe.length-1),Le<0&&(Le=Oe.length+Le),Le>=Oe.length){if(Ue)return-1;Le=Oe.length-1}else if(Le<0){if(!Ue)return-1;Le=0}if(typeof ke=="string"&&(ke=m.from(ke,We)),m.isBuffer(ke))return ke.length===0?-1:L(Oe,ke,Le,We,Ue);if(typeof ke=="number")return ke&=255,typeof Uint8Array.prototype.indexOf=="function"?Ue?Uint8Array.prototype.indexOf.call(Oe,ke,Le):Uint8Array.prototype.lastIndexOf.call(Oe,ke,Le):L(Oe,[ke],Le,We,Ue);throw new TypeError("val must be string, number or Buffer")}function L(Oe,ke,Le,We,Ue){var Ze,Xe=1,tt=Oe.length,Ee=ke.length;if(We!==void 0&&((We=String(We).toLowerCase())==="ucs2"||We==="ucs-2"||We==="utf16le"||We==="utf-16le")){if(Oe.length<2||ke.length<2)return-1;Xe=2,tt/=2,Ee/=2,Le/=2}function Ne(Ge,ht){return Xe===1?Ge[ht]:Ge.readUInt16BE(ht*Xe)}if(Ue){var je=-1;for(Ze=Le;Zett&&(Le=tt-Ee),Ze=Le;Ze>=0;Ze--){for(var nt=!0,ot=0;otUe&&(We=Ue):We=Ue;var Ze,Xe=ke.length;for(We>Xe/2&&(We=Xe/2),Ze=0;Ze>8,Ee=Xe%256,Ne.push(Ee),Ne.push(tt);return Ne}(ke,Oe.length-Le),Oe,Le,We)}function Q(Oe,ke,Le){return ke===0&&Le===Oe.length?y.fromByteArray(Oe):y.fromByteArray(Oe.slice(ke,Le))}function j(Oe,ke,Le){Le=Math.min(Oe.length,Le);for(var We=[],Ue=ke;Ue239?4:Ze>223?3:Ze>191?2:1;if(Ue+tt<=Le){var Ee=void 0,Ne=void 0,je=void 0,nt=void 0;switch(tt){case 1:Ze<128&&(Xe=Ze);break;case 2:(192&(Ee=Oe[Ue+1]))==128&&(nt=(31&Ze)<<6|63&Ee)>127&&(Xe=nt);break;case 3:Ee=Oe[Ue+1],Ne=Oe[Ue+2],(192&Ee)==128&&(192&Ne)==128&&(nt=(15&Ze)<<12|(63&Ee)<<6|63&Ne)>2047&&(nt<55296||nt>57343)&&(Xe=nt);break;case 4:Ee=Oe[Ue+1],Ne=Oe[Ue+2],je=Oe[Ue+3],(192&Ee)==128&&(192&Ne)==128&&(192&je)==128&&(nt=(15&Ze)<<18|(63&Ee)<<12|(63&Ne)<<6|63&je)>65535&&nt<1114112&&(Xe=nt)}}Xe===null?(Xe=65533,tt=1):Xe>65535&&(Xe-=65536,We.push(Xe>>>10&1023|55296),Xe=56320|1023&Xe),We.push(Xe),Ue+=tt}return function(ot){var Ge=ot.length;if(Ge<=U)return String.fromCharCode.apply(String,ot);for(var ht="",pt=0;pt"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(Oe,ke,Le){return v(Oe,ke,Le)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.alloc=function(Oe,ke,Le){return function(We,Ue,Ze){return _(We),We<=0?h(We):Ue!==void 0?typeof Ze=="string"?h(We).fill(Ue,Ze):h(We).fill(Ue):h(We)}(Oe,ke,Le)},m.allocUnsafe=function(Oe){return S(Oe)},m.allocUnsafeSlow=function(Oe){return S(Oe)},m.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==m.prototype},m.compare=function(Oe,ke){if(ze(Oe,Uint8Array)&&(Oe=m.from(Oe,Oe.offset,Oe.byteLength)),ze(ke,Uint8Array)&&(ke=m.from(ke,ke.offset,ke.byteLength)),!m.isBuffer(Oe)||!m.isBuffer(ke))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===ke)return 0;for(var Le=Oe.length,We=ke.length,Ue=0,Ze=Math.min(Le,We);UeWe.length?(m.isBuffer(Ze)||(Ze=m.from(Ze)),Ze.copy(We,Ue)):Uint8Array.prototype.set.call(We,Ze,Ue);else{if(!m.isBuffer(Ze))throw new TypeError('"list" argument must be an Array of Buffers');Ze.copy(We,Ue)}Ue+=Ze.length}return We},m.byteLength=M,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var Oe=this.length;if(Oe%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ke=0;keke&&(Oe+=" ... "),""},a&&(m.prototype[a]=m.prototype.inspect),m.prototype.compare=function(Oe,ke,Le,We,Ue){if(ze(Oe,Uint8Array)&&(Oe=m.from(Oe,Oe.offset,Oe.byteLength)),!m.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+w(Oe));if(ke===void 0&&(ke=0),Le===void 0&&(Le=Oe?Oe.length:0),We===void 0&&(We=0),Ue===void 0&&(Ue=this.length),ke<0||Le>Oe.length||We<0||Ue>this.length)throw new RangeError("out of range index");if(We>=Ue&&ke>=Le)return 0;if(We>=Ue)return-1;if(ke>=Le)return 1;if(this===Oe)return 0;for(var Ze=(Ue>>>=0)-(We>>>=0),Xe=(Le>>>=0)-(ke>>>=0),tt=Math.min(Ze,Xe),Ee=this.slice(We,Ue),Ne=Oe.slice(ke,Le),je=0;je>>=0,isFinite(Le)?(Le>>>=0,We===void 0&&(We="utf8")):(We=Le,Le=void 0)}var Ue=this.length-ke;if((Le===void 0||Le>Ue)&&(Le=Ue),Oe.length>0&&(Le<0||ke<0)||ke>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Ze=!1;;)switch(We){case"hex":return D(this,Oe,ke,Le);case"utf8":case"utf-8":return k(this,Oe,ke,Le);case"ascii":case"latin1":case"binary":return I(this,Oe,ke,Le);case"base64":return z(this,Oe,ke,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,Oe,ke,Le);default:if(Ze)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Ze=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function X(Oe,ke,Le){var We="";Le=Math.min(Oe.length,Le);for(var Ue=ke;UeWe)&&(Le=We);for(var Ue="",Ze=ke;ZeLe)throw new RangeError("Trying to access beyond buffer length")}function q(Oe,ke,Le,We,Ue,Ze){if(!m.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ke>Ue||keOe.length)throw new RangeError("Index out of range")}function Y(Oe,ke,Le,We,Ue){ve(ke,We,Ue,Oe,Le,7);var Ze=Number(ke&BigInt(4294967295));Oe[Le++]=Ze,Ze>>=8,Oe[Le++]=Ze,Ze>>=8,Oe[Le++]=Ze,Ze>>=8,Oe[Le++]=Ze;var Xe=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Le++]=Xe,Xe>>=8,Oe[Le++]=Xe,Xe>>=8,Oe[Le++]=Xe,Xe>>=8,Oe[Le++]=Xe,Le}function ee(Oe,ke,Le,We,Ue){ve(ke,We,Ue,Oe,Le,7);var Ze=Number(ke&BigInt(4294967295));Oe[Le+7]=Ze,Ze>>=8,Oe[Le+6]=Ze,Ze>>=8,Oe[Le+5]=Ze,Ze>>=8,Oe[Le+4]=Ze;var Xe=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Le+3]=Xe,Xe>>=8,Oe[Le+2]=Xe,Xe>>=8,Oe[Le+1]=Xe,Xe>>=8,Oe[Le]=Xe,Le+8}function me(Oe,ke,Le,We,Ue,Ze){if(Le+We>Oe.length)throw new RangeError("Index out of range");if(Le<0)throw new RangeError("Index out of range")}function he(Oe,ke,Le,We,Ue){return ke=+ke,Le>>>=0,Ue||me(Oe,0,Le,4),p.write(Oe,ke,Le,We,23,4),Le+4}function se(Oe,ke,Le,We,Ue){return ke=+ke,Le>>>=0,Ue||me(Oe,0,Le,8),p.write(Oe,ke,Le,We,52,8),Le+8}m.prototype.slice=function(Oe,ke){var Le=this.length;(Oe=~~Oe)<0?(Oe+=Le)<0&&(Oe=0):Oe>Le&&(Oe=Le),(ke=ke===void 0?Le:~~ke)<0?(ke+=Le)<0&&(ke=0):ke>Le&&(ke=Le),ke>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=this[Oe+--ke],Ue=1;ke>0&&(Ue*=256);)We+=this[Oe+--ke]*Ue;return We},m.prototype.readUint8=m.prototype.readUInt8=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,1,this.length),this[Oe]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+16777216*this[Oe+3]},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),16777216*this[Oe]+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},m.prototype.readBigUInt64LE=Ve(function(Oe){ye(Oe>>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=ke+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,24),Ue=this[++Oe]+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+Le*Math.pow(2,24);return BigInt(We)+(BigInt(Ue)<>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=ke*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe],Ue=this[++Oe]*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+Le;return(BigInt(We)<>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze=(Ue*=128)&&(We-=Math.pow(2,8*ke)),We},m.prototype.readIntBE=function(Oe,ke,Le){Oe>>>=0,ke>>>=0,Le||oe(Oe,ke,this.length);for(var We=ke,Ue=1,Ze=this[Oe+--We];We>0&&(Ue*=256);)Ze+=this[Oe+--We]*Ue;return Ze>=(Ue*=128)&&(Ze-=Math.pow(2,8*ke)),Ze},m.prototype.readInt8=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,1,this.length),128&this[Oe]?-1*(255-this[Oe]+1):this[Oe]},m.prototype.readInt16LE=function(Oe,ke){Oe>>>=0,ke||oe(Oe,2,this.length);var Le=this[Oe]|this[Oe+1]<<8;return 32768&Le?4294901760|Le:Le},m.prototype.readInt16BE=function(Oe,ke){Oe>>>=0,ke||oe(Oe,2,this.length);var Le=this[Oe+1]|this[Oe]<<8;return 32768&Le?4294901760|Le:Le},m.prototype.readInt32LE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},m.prototype.readInt32BE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},m.prototype.readBigInt64LE=Ve(function(Oe){ye(Oe>>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=this[Oe+4]+this[Oe+5]*Math.pow(2,8)+this[Oe+6]*Math.pow(2,16)+(Le<<24);return(BigInt(We)<>>=0,"offset");var ke=this[Oe],Le=this[Oe+7];ke!==void 0&&Le!==void 0||_e(Oe,this.length-8);var We=(ke<<24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe];return(BigInt(We)<>>=0,ke||oe(Oe,4,this.length),p.read(this,Oe,!0,23,4)},m.prototype.readFloatBE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,4,this.length),p.read(this,Oe,!1,23,4)},m.prototype.readDoubleLE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,8,this.length),p.read(this,Oe,!0,52,8)},m.prototype.readDoubleBE=function(Oe,ke){return Oe>>>=0,ke||oe(Oe,8,this.length),p.read(this,Oe,!1,52,8)},m.prototype.writeUintLE=m.prototype.writeUIntLE=function(Oe,ke,Le,We){Oe=+Oe,ke>>>=0,Le>>>=0,We||q(this,Oe,ke,Le,Math.pow(2,8*Le)-1,0);var Ue=1,Ze=0;for(this[ke]=255&Oe;++Ze>>=0,Le>>>=0,We||q(this,Oe,ke,Le,Math.pow(2,8*Le)-1,0);var Ue=Le-1,Ze=1;for(this[ke+Ue]=255&Oe;--Ue>=0&&(Ze*=256);)this[ke+Ue]=Oe/Ze&255;return ke+Le},m.prototype.writeUint8=m.prototype.writeUInt8=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,1,255,0),this[ke]=255&Oe,ke+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,65535,0),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,65535,0),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,4294967295,0),this[ke+3]=Oe>>>24,this[ke+2]=Oe>>>16,this[ke+1]=Oe>>>8,this[ke]=255&Oe,ke+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,4294967295,0),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},m.prototype.writeBigUInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeIntLE=function(Oe,ke,Le,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Le-1);q(this,Oe,ke,Le,Ue-1,-Ue)}var Ze=0,Xe=1,tt=0;for(this[ke]=255&Oe;++Ze>0)-tt&255;return ke+Le},m.prototype.writeIntBE=function(Oe,ke,Le,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Le-1);q(this,Oe,ke,Le,Ue-1,-Ue)}var Ze=Le-1,Xe=1,tt=0;for(this[ke+Ze]=255&Oe;--Ze>=0&&(Xe*=256);)Oe<0&&tt===0&&this[ke+Ze+1]!==0&&(tt=1),this[ke+Ze]=(Oe/Xe>>0)-tt&255;return ke+Le},m.prototype.writeInt8=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[ke]=255&Oe,ke+1},m.prototype.writeInt16LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,32767,-32768),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},m.prototype.writeInt16BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,2,32767,-32768),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},m.prototype.writeInt32LE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,2147483647,-2147483648),this[ke]=255&Oe,this[ke+1]=Oe>>>8,this[ke+2]=Oe>>>16,this[ke+3]=Oe>>>24,ke+4},m.prototype.writeInt32BE=function(Oe,ke,Le){return Oe=+Oe,ke>>>=0,Le||q(this,Oe,ke,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},m.prototype.writeBigInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeFloatLE=function(Oe,ke,Le){return he(this,Oe,ke,!0,Le)},m.prototype.writeFloatBE=function(Oe,ke,Le){return he(this,Oe,ke,!1,Le)},m.prototype.writeDoubleLE=function(Oe,ke,Le){return se(this,Oe,ke,!0,Le)},m.prototype.writeDoubleBE=function(Oe,ke,Le){return se(this,Oe,ke,!1,Le)},m.prototype.copy=function(Oe,ke,Le,We){if(!m.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),We||We===0||(We=this.length),ke>=Oe.length&&(ke=Oe.length),ke||(ke=0),We>0&&We=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),Oe.length-ke>>=0,Le=Le===void 0?this.length:Le>>>0,Oe||(Oe=0),typeof Oe=="number")for(Ze=ke;Ze"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}()?Reflect.construct(Ne,je||[],b(Ee).constructor):Ne.apply(Ee,je))}(this,Ue),Object.defineProperty(i(tt),"message",{value:ke.apply(i(tt),arguments),writable:!0,configurable:!0}),tt.name="".concat(tt.name," [").concat(Oe,"]"),tt.stack,delete tt.name,tt}var Ze,Xe;return function(tt,Ee){if(typeof Ee!="function"&&Ee!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(Ee&&Ee.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),Object.defineProperty(tt,"prototype",{writable:!1}),Ee&&O(tt,Ee)}(Ue,We),Ze=Ue,(Xe=[{key:"code",get:function(){return Oe},set:function(tt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:tt,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Oe,"]: ").concat(this.message)}}])&&c(Ze.prototype,Xe),Object.defineProperty(Ze,"prototype",{writable:!1}),Ue}(Le)}function de(Oe){for(var ke="",Le=Oe.length,We=Oe[0]==="-"?1:0;Le>=We+4;Le-=3)ke="_".concat(Oe.slice(Le-3,Le)).concat(ke);return"".concat(Oe.slice(0,Le)).concat(ke)}function ve(Oe,ke,Le,We,Ue,Ze){if(Oe>Le||Oe3?ke===0||ke===BigInt(0)?">= 0".concat(tt," and < 2").concat(tt," ** ").concat(8*(Ze+1)).concat(tt):">= -(2".concat(tt," ** ").concat(8*(Ze+1)-1).concat(tt,") and < 2 ** ")+"".concat(8*(Ze+1)-1).concat(tt):">= ".concat(ke).concat(tt," and <= ").concat(Le).concat(tt),new ae.ERR_OUT_OF_RANGE("value",Xe,Oe)}(function(Ee,Ne,je){ye(Ne,"offset"),Ee[Ne]!==void 0&&Ee[Ne+je]!==void 0||_e(Ne,Ee.length-(je+1))})(We,Ue,Ze)}function ye(Oe,ke){if(typeof Oe!="number")throw new ae.ERR_INVALID_ARG_TYPE(ke,"number",Oe)}function _e(Oe,ke,Le){throw Math.floor(Oe)!==Oe?(ye(Oe,Le),new ae.ERR_OUT_OF_RANGE(Le||"offset","an integer",Oe)):ke<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE(Le||"offset",">= ".concat(Le?1:0," and <= ").concat(ke),Oe)}ce("ERR_BUFFER_OUT_OF_BOUNDS",function(Oe){return Oe?"".concat(Oe," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),ce("ERR_INVALID_ARG_TYPE",function(Oe,ke){return'The "'.concat(Oe,'" argument must be of type number. Received type ').concat(w(ke))},TypeError),ce("ERR_OUT_OF_RANGE",function(Oe,ke,Le){var We='The value of "'.concat(Oe,'" is out of range.'),Ue=Le;return Number.isInteger(Le)&&Math.abs(Le)>Math.pow(2,32)?Ue=de(String(Le)):typeof Le=="bigint"&&(Ue=String(Le),(Le>Math.pow(BigInt(2),BigInt(32))||Le<-Math.pow(BigInt(2),BigInt(32)))&&(Ue=de(Ue)),Ue+="n"),We+" It must be ".concat(ke,". Received ").concat(Ue)},RangeError);var Se=/[^+/0-9A-Za-z-_]/g;function Te(Oe,ke){var Le;ke=ke||1/0;for(var We=Oe.length,Ue=null,Ze=[],Xe=0;Xe55295&&Le<57344){if(!Ue){if(Le>56319){(ke-=3)>-1&&Ze.push(239,191,189);continue}if(Xe+1===We){(ke-=3)>-1&&Ze.push(239,191,189);continue}Ue=Le;continue}if(Le<56320){(ke-=3)>-1&&Ze.push(239,191,189),Ue=Le;continue}Le=65536+(Ue-55296<<10|Le-56320)}else Ue&&(ke-=3)>-1&&Ze.push(239,191,189);if(Ue=null,Le<128){if((ke-=1)<0)break;Ze.push(Le)}else if(Le<2048){if((ke-=2)<0)break;Ze.push(Le>>6|192,63&Le|128)}else if(Le<65536){if((ke-=3)<0)break;Ze.push(Le>>12|224,Le>>6&63|128,63&Le|128)}else{if(!(Le<1114112))throw new Error("Invalid code point");if((ke-=4)<0)break;Ze.push(Le>>18|240,Le>>12&63|128,Le>>6&63|128,63&Le|128)}}return Ze}function Pe(Oe){return y.toByteArray(function(ke){if((ke=(ke=ke.split("=")[0]).trim().replace(Se,"")).length<2)return"";for(;ke.length%4!=0;)ke+="=";return ke}(Oe))}function Ie(Oe,ke,Le,We){var Ue;for(Ue=0;Ue=ke.length||Ue>=Oe.length);++Ue)ke[Ue+Le]=Oe[Ue];return Ue}function ze(Oe,ke){return Oe instanceof ke||Oe!=null&&Oe.constructor!=null&&Oe.constructor.name!=null&&Oe.constructor.name===ke.name}function De(Oe){return Oe!=Oe}var He=function(){for(var Oe="0123456789abcdef",ke=new Array(256),Le=0;Le<16;++Le)for(var We=16*Le,Ue=0;Ue<16;++Ue)ke[We+Ue]=Oe[Le]+Oe[Ue];return ke}();function Ve(Oe){return typeof BigInt>"u"?$e:Oe}function $e(){throw new Error("BigInt not supported")}},25928:function(d){d.exports=b,d.exports.isMobile=b,d.exports.default=b;var l=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,c=/android|ipad|playbook|silk/i;function b(i){i||(i={});var O=i.ua;if(O||typeof navigator>"u"||(O=navigator.userAgent),O&&O.headers&&typeof O.headers["user-agent"]=="string"&&(O=O.headers["user-agent"]),typeof O!="string")return!1;var w=l.test(O)&&!n.test(O)||!!i.tablet&&c.test(O);return!w&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&O.indexOf("Macintosh")!==-1&&O.indexOf("Safari")!==-1&&(w=!0),w}},48932:function(d,l,n){n.r(l),n.d(l,{sankeyCenter:function(){return h},sankeyCircular:function(){return Q},sankeyJustify:function(){return u},sankeyLeft:function(){return p},sankeyRight:function(){return a}});var c=n(84706),b=n(34712),i=n(10132),O=n(6688),w=n.n(O);function y(Ie){return Ie.target.depth}function p(Ie){return Ie.depth}function a(Ie,ze){return ze-1-Ie.height}function u(Ie,ze){return Ie.sourceLinks.length?Ie.depth:ze-1}function h(Ie){return Ie.targetLinks.length?Ie.depth:Ie.sourceLinks.length?(0,c.SY)(Ie.sourceLinks,y)-1:0}function m(Ie){return function(){return Ie}}var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie};function _(Ie,ze){return A(Ie.source,ze.source)||Ie.index-ze.index}function S(Ie,ze){return A(Ie.target,ze.target)||Ie.index-ze.index}function A(Ie,ze){return Ie.partOfCycle===ze.partOfCycle?Ie.y0-ze.y0:Ie.circularLinkType==="top"||ze.circularLinkType==="bottom"?-1:1}function x(Ie){return Ie.value}function R(Ie){return(Ie.y0+Ie.y1)/2}function M(Ie){return R(Ie.source)}function T(Ie){return R(Ie.target)}function E(Ie){return Ie.index}function C(Ie){return Ie.nodes}function L(Ie){return Ie.links}function D(Ie,ze){var De=Ie.get(ze);if(!De)throw new Error("missing: "+ze);return De}function k(Ie,ze){return ze(Ie)}var I=25,z=10,$=.3;function Q(){var Ie,ze,De=0,He=0,Ve=1,$e=1,Oe=24,ke=E,Le=u,We=C,Ue=L,Ze=32,Xe=2,tt=null;function Ee(){var je={nodes:We.apply(null,arguments),links:Ue.apply(null,arguments)};(function(ot){ot.nodes.forEach(function(ht,pt){ht.index=pt,ht.sourceLinks=[],ht.targetLinks=[]});var Ge=(0,b.kH)(ot.nodes,ke);ot.links.forEach(function(ht,pt){ht.index=pt;var wt=ht.source,Dt=ht.target;(wt===void 0?"undefined":v(wt))!=="object"&&(wt=ht.source=D(Ge,wt)),(Dt===void 0?"undefined":v(Dt))!=="object"&&(Dt=ht.target=D(Ge,Dt)),wt.sourceLinks.push(ht),Dt.targetLinks.push(ht)})})(je),function(ot,Ge,ht){var pt=0;if(ht===null){for(var wt=[],Dt=0;Dt0?bn+I+z:bn,bottom:mn=mn>0?mn+I+z:mn,left:bt=bt>0?bt+I+z:bt,right:vt=vt>0?vt+I+z:vt}}(ot),nn=function(gn,bn){var mn=(0,c.kv)(gn.nodes,function(zt){return zt.column}),vt=Ve-De,bt=$e-He,lt=vt/(vt+bn.right+bn.left),yt=bt/(bt+bn.top+bn.bottom);return De=De*lt+bn.left,Ve=bn.right==0?Ve:Ve*lt,He=He*yt+bn.top,$e*=yt,gn.nodes.forEach(function(zt){zt.x0=De+zt.column*((Ve-De-Oe)/mn),zt.x1=zt.x0+Oe}),yt}(ot,_t);Ct*=nn,ot.links.forEach(function(gn){gn.width=gn.value*Ct}),pt.forEach(function(gn){var bn=gn.length;gn.forEach(function(mn,vt){mn.depth==pt.length-1&&bn==1||mn.depth==0&&bn==1?(mn.y0=$e/2-mn.value*Ct,mn.y1=mn.y0+mn.value*Ct):mn.partOfCycle?X(mn,en)==0?(mn.y0=$e/2+vt,mn.y1=mn.y0+mn.value*Ct):mn.circularLinkType=="top"?(mn.y0=He+vt,mn.y1=mn.y0+mn.value*Ct):(mn.y0=$e-mn.value*Ct-vt,mn.y1=mn.y0+mn.value*Ct):_t.top==0||_t.bottom==0?(mn.y0=($e-He)/bn*vt,mn.y1=mn.y0+mn.value*Ct):(mn.y0=($e-He)/2-bn/2+vt,mn.y1=mn.y0+mn.value*Ct)})})})(ht),qt();for(var wt=1,Dt=Ge;Dt>0;--Dt)It(wt*=.99,ht),qt();function It(en,Gt){var Ct=pt.length;pt.forEach(function(_t){var nn=_t.length,gn=_t[0].depth;_t.forEach(function(bn){var mn;if((bn.sourceLinks.length||bn.targetLinks.length)&&!(bn.partOfCycle&&X(bn,Gt)>0))if(gn==0&&nn==1)mn=bn.y1-bn.y0,bn.y0=$e/2-mn/2,bn.y1=$e/2+mn/2;else if(gn==Ct-1&&nn==1)mn=bn.y1-bn.y0,bn.y0=$e/2-mn/2,bn.y1=$e/2+mn/2;else{var vt=(0,c.mo)(bn.sourceLinks,T),bt=(0,c.mo)(bn.targetLinks,M),lt=((vt&&bt?(vt+bt)/2:vt||bt)-R(bn))*en;bn.y0+=lt,bn.y1+=lt}})})}function qt(){pt.forEach(function(en){var Gt,Ct,_t,nn=He,gn=en.length;for(en.sort(A),_t=0;_t0&&(Gt.y0+=Ct,Gt.y1+=Ct),nn=Gt.y1+Ie;if((Ct=nn-Ie-$e)>0)for(nn=Gt.y0-=Ct,Gt.y1-=Ct,_t=gn-2;_t>=0;--_t)(Ct=(Gt=en[_t]).y1+Ie-nn)>0&&(Gt.y0-=Ct,Gt.y1-=Ct),nn=Gt.y0})}}(je,Ze,ke),Ne(je);for(var nt=0;nt<4;nt++)ye(je,$e,ke),_e(je,0,ke),de(je,He,$e,ke),ye(je,$e,ke),_e(je,0,ke);return function(ot,Ge,ht){var pt=ot.nodes,wt=ot.links,Dt=!1,It=!1;if(wt.forEach(function(Gt){Gt.circularLinkType=="top"?Dt=!0:Gt.circularLinkType=="bottom"&&(It=!0)}),Dt==0||It==0){var qt=(0,c.SY)(pt,function(Gt){return Gt.y0}),en=(ht-Ge)/((0,c.kv)(pt,function(Gt){return Gt.y1})-qt);pt.forEach(function(Gt){var Ct=(Gt.y1-Gt.y0)*en;Gt.y0=(Gt.y0-qt)*en,Gt.y1=Gt.y0+Ct}),wt.forEach(function(Gt){Gt.y0=(Gt.y0-qt)*en,Gt.y1=(Gt.y1-qt)*en,Gt.width=Gt.width*en})}}(je,He,$e),K(je,Xe,$e,ke),je}function Ne(je){je.nodes.forEach(function(nt){nt.sourceLinks.sort(S),nt.targetLinks.sort(_)}),je.nodes.forEach(function(nt){var ot=nt.y0,Ge=ot,ht=nt.y1,pt=ht;nt.sourceLinks.forEach(function(wt){wt.circular?(wt.y0=ht-wt.width/2,ht-=wt.width):(wt.y0=ot+wt.width/2,ot+=wt.width)}),nt.targetLinks.forEach(function(wt){wt.circular?(wt.y1=pt-wt.width/2,pt-=wt.width):(wt.y1=Ge+wt.width/2,Ge+=wt.width)})})}return Ee.nodeId=function(je){return arguments.length?(ke=typeof je=="function"?je:m(je),Ee):ke},Ee.nodeAlign=function(je){return arguments.length?(Le=typeof je=="function"?je:m(je),Ee):Le},Ee.nodeWidth=function(je){return arguments.length?(Oe=+je,Ee):Oe},Ee.nodePadding=function(je){return arguments.length?(Ie=+je,Ee):Ie},Ee.nodes=function(je){return arguments.length?(We=typeof je=="function"?je:m(je),Ee):We},Ee.links=function(je){return arguments.length?(Ue=typeof je=="function"?je:m(je),Ee):Ue},Ee.size=function(je){return arguments.length?(De=He=0,Ve=+je[0],$e=+je[1],Ee):[Ve-De,$e-He]},Ee.extent=function(je){return arguments.length?(De=+je[0][0],Ve=+je[1][0],He=+je[0][1],$e=+je[1][1],Ee):[[De,He],[Ve,$e]]},Ee.iterations=function(je){return arguments.length?(Ze=+je,Ee):Ze},Ee.circularLinkGap=function(je){return arguments.length?(Xe=+je,Ee):Xe},Ee.nodePaddingRatio=function(je){return arguments.length?(ze=+je,Ee):ze},Ee.sortNodes=function(je){return arguments.length?(tt=je,Ee):tt},Ee.update=function(je){return j(je,ke),Ne(je),je.links.forEach(function(nt){nt.circular&&(nt.circularLinkType=nt.y0+nt.y1<$e?"top":"bottom",nt.source.circularLinkType=nt.circularLinkType,nt.target.circularLinkType=nt.circularLinkType)}),ye(je,$e,ke,!1),_e(je,0,ke),K(je,Xe,$e,ke),je},Ee}function j(Ie,ze){var De=0,He=0;Ie.links.forEach(function(Ve){Ve.circular&&(Ve.source.circularLinkType||Ve.target.circularLinkType?Ve.circularLinkType=Ve.source.circularLinkType?Ve.source.circularLinkType:Ve.target.circularLinkType:Ve.circularLinkType=De1||Ve>1)}function W(Ie,ze,De){return Ie.sort(oe),Ie.forEach(function(He,Ve){var $e,Oe,ke=0;if(Pe(He,De)&&te(He))He.circularPathData.verticalBuffer=ke+He.width/2;else{for(var Le=0;LeOe.source.column)){var We=Ie[Le].circularPathData.verticalBuffer+Ie[Le].width/2+ze;ke=We>ke?We:ke}He.circularPathData.verticalBuffer=ke+He.width/2}}),Ie}function K(Ie,ze,De,He){var Ve=(0,c.SY)(Ie.links,function($e){return $e.source.y0});Ie.links.forEach(function($e){$e.circular&&($e.circularPathData={})}),W(Ie.links.filter(function($e){return $e.circularLinkType=="top"}),ze,He),W(Ie.links.filter(function($e){return $e.circularLinkType=="bottom"}),ze,He),Ie.links.forEach(function($e){if($e.circular){if($e.circularPathData.arcRadius=$e.width+z,$e.circularPathData.leftNodeBuffer=5,$e.circularPathData.rightNodeBuffer=5,$e.circularPathData.sourceWidth=$e.source.x1-$e.source.x0,$e.circularPathData.sourceX=$e.source.x0+$e.circularPathData.sourceWidth,$e.circularPathData.targetX=$e.target.x0,$e.circularPathData.sourceY=$e.y0,$e.circularPathData.targetY=$e.y1,Pe($e,He)&&te($e))$e.circularPathData.leftSmallArcRadius=z+$e.width/2,$e.circularPathData.leftLargeArcRadius=z+$e.width/2,$e.circularPathData.rightSmallArcRadius=z+$e.width/2,$e.circularPathData.rightLargeArcRadius=z+$e.width/2,$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=$e.source.y1+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=$e.source.y0-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius);else{var Oe=$e.source.column,ke=$e.circularLinkType,Le=Ie.links.filter(function(Ze){return Ze.source.column==Oe&&Ze.circularLinkType==ke});$e.circularLinkType=="bottom"?Le.sort(Y):Le.sort(q);var We=0;Le.forEach(function(Ze,Xe){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.leftSmallArcRadius=z+$e.width/2+We,$e.circularPathData.leftLargeArcRadius=z+$e.width/2+Xe*ze+We),We+=Ze.width}),Oe=$e.target.column,Le=Ie.links.filter(function(Ze){return Ze.target.column==Oe&&Ze.circularLinkType==ke}),$e.circularLinkType=="bottom"?Le.sort(me):Le.sort(ee),We=0,Le.forEach(function(Ze,Xe){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.rightSmallArcRadius=z+$e.width/2+We,$e.circularPathData.rightLargeArcRadius=z+$e.width/2+Xe*ze+We),We+=Ze.width}),$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=Math.max(De,$e.source.y1,$e.target.y1)+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=Ve-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius)}$e.circularPathData.leftInnerExtent=$e.circularPathData.sourceX+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightInnerExtent=$e.circularPathData.targetX-$e.circularPathData.rightNodeBuffer,$e.circularPathData.leftFullExtent=$e.circularPathData.sourceX+$e.circularPathData.leftLargeArcRadius+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightFullExtent=$e.circularPathData.targetX-$e.circularPathData.rightLargeArcRadius-$e.circularPathData.rightNodeBuffer}if($e.circular)$e.path=function(Ze){return Ze.circularLinkType=="top"?"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 0 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY-Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 0 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 0 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY-Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 0 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY:"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 1 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY+Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 1 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 1 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY+Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 1 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY}($e);else{var Ue=(0,i.ak)().source(function(Ze){return[Ze.source.x0+(Ze.source.x1-Ze.source.x0),Ze.y0]}).target(function(Ze){return[Ze.target.x0,Ze.y1]});$e.path=Ue($e)}})}function oe(Ie,ze){return he(Ie)==he(ze)?Ie.circularLinkType=="bottom"?Y(Ie,ze):q(Ie,ze):he(ze)-he(Ie)}function q(Ie,ze){return Ie.y0-ze.y0}function Y(Ie,ze){return ze.y0-Ie.y0}function ee(Ie,ze){return Ie.y1-ze.y1}function me(Ie,ze){return ze.y1-Ie.y1}function he(Ie){return Ie.target.column-Ie.source.column}function se(Ie){return Ie.target.x0-Ie.source.x1}function ae(Ie,ze){var De=U(Ie),He=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1+He:Ie.y1-He}function ce(Ie,ze){var De=U(Ie),He=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1-He:Ie.y1+He}function de(Ie,ze,De,He){Ie.links.forEach(function(Ve){if(!Ve.circular&&Ve.target.column-Ve.source.column>1){var $e=Ve.source.column+1,Oe=Ve.target.column-1,ke=1,Le=Oe-$e+1;for(ke=1;$e<=Oe;$e++,ke++)Ie.nodes.forEach(function(We){if(We.column==$e){var Ue,Ze=ke/(Le+1),Xe=Math.pow(1-Ze,3),tt=3*Ze*Math.pow(1-Ze,2),Ee=3*Math.pow(Ze,2)*(1-Ze),Ne=Math.pow(Ze,3),je=Xe*Ve.y0+tt*Ve.y0+Ee*Ve.y1+Ne*Ve.y1,nt=je-Ve.width/2,ot=je+Ve.width/2;nt>We.y0&&ntpt.y0&&ht.y0pt.y0&&ht.y1pt.y1)&&ve(Ge,Ue,ze,De)})):(ot>We.y0&&otWe.y1)&&(Ue=ot-We.y0+10,We=ve(We,Ue,ze,De),Ie.nodes.forEach(function(Ge){k(Ge,He)!=k(We,He)&&Ge.column==We.column&&Ge.y0We.y1&&ve(Ge,Ue,ze,De)}))}})}})}function ve(Ie,ze,De,He){return Ie.y0+ze>=De&&Ie.y1+ze<=He&&(Ie.y0=Ie.y0+ze,Ie.y1=Ie.y1+ze,Ie.targetLinks.forEach(function(Ve){Ve.y1=Ve.y1+ze}),Ie.sourceLinks.forEach(function(Ve){Ve.y0=Ve.y0+ze})),Ie}function ye(Ie,ze,De,He){Ie.nodes.forEach(function(Ve){He&&Ve.y+(Ve.y1-Ve.y0)>ze&&(Ve.y=Ve.y-(Ve.y+(Ve.y1-Ve.y0)-ze));var $e=Ie.links.filter(function(Le){return k(Le.source,De)==k(Ve,De)}),Oe=$e.length;Oe>1&&$e.sort(function(Le,We){if(!Le.circular&&!We.circular){if(Le.target.column==We.target.column||!Se(Le,We))return Le.y1-We.y1;if(Le.target.column>We.target.column){var Ue=ce(We,Le);return Le.y1-Ue}if(We.target.column>Le.target.column)return ce(Le,We)-We.y1}return Le.circular&&!We.circular?Le.circularLinkType=="top"?-1:1:We.circular&&!Le.circular?We.circularLinkType=="top"?1:-1:Le.circular&&We.circular?Le.circularLinkType===We.circularLinkType&&Le.circularLinkType=="top"?Le.target.column===We.target.column?Le.target.y1-We.target.y1:We.target.column-Le.target.column:Le.circularLinkType===We.circularLinkType&&Le.circularLinkType=="bottom"?Le.target.column===We.target.column?We.target.y1-Le.target.y1:Le.target.column-We.target.column:Le.circularLinkType=="top"?-1:1:void 0});var ke=Ve.y0;$e.forEach(function(Le){Le.y0=ke+Le.width/2,ke+=Le.width}),$e.forEach(function(Le,We){if(Le.circularLinkType=="bottom"){for(var Ue=We+1,Ze=0;Ue1&&Ve.sort(function(ke,Le){if(!ke.circular&&!Le.circular){if(ke.source.column==Le.source.column||!Se(ke,Le))return ke.y0-Le.y0;if(Le.source.column0?"up":"down"}function Pe(Ie,ze){return k(Ie.source,ze)==k(Ie.target,ze)}},26800:function(d,l,n){n.r(l),n.d(l,{sankey:function(){return E},sankeyCenter:function(){return p},sankeyJustify:function(){return y},sankeyLeft:function(){return O},sankeyLinkHorizontal:function(){return k},sankeyRight:function(){return w}});var c=n(84706),b=n(34712);function i(I){return I.target.depth}function O(I){return I.depth}function w(I,z){return z-1-I.height}function y(I,z){return I.sourceLinks.length?I.depth:z-1}function p(I){return I.targetLinks.length?I.depth:I.sourceLinks.length?(0,c.SY)(I.sourceLinks,i)-1:0}function a(I){return function(){return I}}function u(I,z){return m(I.source,z.source)||I.index-z.index}function h(I,z){return m(I.target,z.target)||I.index-z.index}function m(I,z){return I.y0-z.y0}function v(I){return I.value}function _(I){return(I.y0+I.y1)/2}function S(I){return _(I.source)*I.value}function A(I){return _(I.target)*I.value}function x(I){return I.index}function R(I){return I.nodes}function M(I){return I.links}function T(I,z){var $=I.get(z);if(!$)throw new Error("missing: "+z);return $}function E(){var I=0,z=0,$=1,Q=1,j=24,U=8,X=x,te=y,W=R,K=M,oe=32;function q(){var ee={nodes:W.apply(null,arguments),links:K.apply(null,arguments)};return function(me){me.nodes.forEach(function(se,ae){se.index=ae,se.sourceLinks=[],se.targetLinks=[]});var he=(0,b.kH)(me.nodes,X);me.links.forEach(function(se,ae){se.index=ae;var ce=se.source,de=se.target;typeof ce!="object"&&(ce=se.source=T(he,ce)),typeof de!="object"&&(de=se.target=T(he,de)),ce.sourceLinks.push(se),de.targetLinks.push(se)})}(ee),function(me){me.nodes.forEach(function(he){he.value=Math.max((0,c.oh)(he.sourceLinks,v),(0,c.oh)(he.targetLinks,v))})}(ee),function(me){var he,se,ae;for(he=me.nodes,se=[],ae=0;he.length;++ae,he=se,se=[])he.forEach(function(de){de.depth=ae,de.sourceLinks.forEach(function(ve){se.indexOf(ve.target)<0&&se.push(ve.target)})});for(he=me.nodes,se=[],ae=0;he.length;++ae,he=se,se=[])he.forEach(function(de){de.height=ae,de.targetLinks.forEach(function(ve){se.indexOf(ve.source)<0&&se.push(ve.source)})});var ce=($-I-j)/(ae-1);me.nodes.forEach(function(de){de.x1=(de.x0=I+Math.max(0,Math.min(ae-1,Math.floor(te.call(null,de,ae))))*ce)+j})}(ee),function(me){var he=(0,b.UJ)().key(function(ye){return ye.x0}).sortKeys(c.XE).entries(me.nodes).map(function(ye){return ye.values});(function(){var ye=(0,c.kv)(he,function(Te){return Te.length}),_e=.6666666666666666*(Q-z)/(ye-1);U>_e&&(U=_e);var Se=(0,c.SY)(he,function(Te){return(Q-z-(Te.length-1)*U)/(0,c.oh)(Te,v)});he.forEach(function(Te){Te.forEach(function(Pe,Ie){Pe.y1=(Pe.y0=Ie)+Pe.value*Se})}),me.links.forEach(function(Te){Te.width=Te.value*Se})})(),ve();for(var se=1,ae=oe;ae>0;--ae)de(se*=.99),ve(),ce(se),ve();function ce(ye){he.forEach(function(_e){_e.forEach(function(Se){if(Se.targetLinks.length){var Te=((0,c.oh)(Se.targetLinks,S)/(0,c.oh)(Se.targetLinks,v)-_(Se))*ye;Se.y0+=Te,Se.y1+=Te}})})}function de(ye){he.slice().reverse().forEach(function(_e){_e.forEach(function(Se){if(Se.sourceLinks.length){var Te=((0,c.oh)(Se.sourceLinks,A)/(0,c.oh)(Se.sourceLinks,v)-_(Se))*ye;Se.y0+=Te,Se.y1+=Te}})})}function ve(){he.forEach(function(ye){var _e,Se,Te,Pe=z,Ie=ye.length;for(ye.sort(m),Te=0;Te0&&(_e.y0+=Se,_e.y1+=Se),Pe=_e.y1+U;if((Se=Pe-U-Q)>0)for(Pe=_e.y0-=Se,_e.y1-=Se,Te=Ie-2;Te>=0;--Te)(Se=(_e=ye[Te]).y1+U-Pe)>0&&(_e.y0-=Se,_e.y1-=Se),Pe=_e.y0})}}(ee),Y(ee),ee}function Y(ee){ee.nodes.forEach(function(me){me.sourceLinks.sort(h),me.targetLinks.sort(u)}),ee.nodes.forEach(function(me){var he=me.y0,se=he;me.sourceLinks.forEach(function(ae){ae.y0=he+ae.width/2,he+=ae.width}),me.targetLinks.forEach(function(ae){ae.y1=se+ae.width/2,se+=ae.width})})}return q.update=function(ee){return Y(ee),ee},q.nodeId=function(ee){return arguments.length?(X=typeof ee=="function"?ee:a(ee),q):X},q.nodeAlign=function(ee){return arguments.length?(te=typeof ee=="function"?ee:a(ee),q):te},q.nodeWidth=function(ee){return arguments.length?(j=+ee,q):j},q.nodePadding=function(ee){return arguments.length?(U=+ee,q):U},q.nodes=function(ee){return arguments.length?(W=typeof ee=="function"?ee:a(ee),q):W},q.links=function(ee){return arguments.length?(K=typeof ee=="function"?ee:a(ee),q):K},q.size=function(ee){return arguments.length?(I=z=0,$=+ee[0],Q=+ee[1],q):[$-I,Q-z]},q.extent=function(ee){return arguments.length?(I=+ee[0][0],$=+ee[1][0],z=+ee[0][1],Q=+ee[1][1],q):[[I,z],[$,Q]]},q.iterations=function(ee){return arguments.length?(oe=+ee,q):oe},q}var C=n(10132);function L(I){return[I.source.x1,I.y0]}function D(I){return[I.target.x0,I.y1]}function k(){return(0,C.ak)().source(L).target(D)}},33428:function(d,l,n){var c,b;(function(){var i={version:"3.8.0"},O=[].slice,w=function(V){return O.call(V)},y=self.document;function p(V){return V&&(V.ownerDocument||V.document||V).documentElement}function a(V){return V&&(V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView)}if(y)try{w(y.documentElement.childNodes)[0].nodeType}catch{w=function(ne){for(var ge=ne.length,xe=new Array(ge);ge--;)xe[ge]=ne[ge];return xe}}if(Date.now||(Date.now=function(){return+new Date}),y)try{y.createElement("DIV").style.setProperty("opacity",0,"")}catch{var u=this.Element.prototype,h=u.setAttribute,m=u.setAttributeNS,v=this.CSSStyleDeclaration.prototype,_=v.setProperty;u.setAttribute=function(ne,ge){h.call(this,ne,ge+"")},u.setAttributeNS=function(ne,ge,xe){m.call(this,ne,ge,xe+"")},v.setProperty=function(ne,ge,xe){_.call(this,ne,ge+"",xe)}}function S(V,ne){return Vne?1:V>=ne?0:NaN}function A(V){return V===null?NaN:+V}function x(V){return!isNaN(V)}function R(V){return{left:function(ne,ge,xe,Me){for(arguments.length<3&&(xe=0),arguments.length<4&&(Me=ne.length);xe>>1;V(ne[Fe],ge)<0?xe=Fe+1:Me=Fe}return xe},right:function(ne,ge,xe,Me){for(arguments.length<3&&(xe=0),arguments.length<4&&(Me=ne.length);xe>>1;V(ne[Fe],ge)>0?Me=Fe:xe=Fe+1}return xe}}}i.ascending=S,i.descending=function(V,ne){return neV?1:ne>=V?0:NaN},i.min=function(V,ne){var ge,xe,Me=-1,Fe=V.length;if(arguments.length===1){for(;++Me=xe){ge=xe;break}for(;++Mexe&&(ge=xe)}else{for(;++Me=xe){ge=xe;break}for(;++Mexe&&(ge=xe)}return ge},i.max=function(V,ne){var ge,xe,Me=-1,Fe=V.length;if(arguments.length===1){for(;++Me=xe){ge=xe;break}for(;++Mege&&(ge=xe)}else{for(;++Me=xe){ge=xe;break}for(;++Mege&&(ge=xe)}return ge},i.extent=function(V,ne){var ge,xe,Me,Fe=-1,Je=V.length;if(arguments.length===1){for(;++Fe=xe){ge=Me=xe;break}for(;++Fexe&&(ge=xe),Me=xe){ge=Me=xe;break}for(;++Fexe&&(ge=xe),Me1)return Je/(dt-1)},i.deviation=function(){var V=i.variance.apply(this,arguments);return V&&Math.sqrt(V)};var M=R(S);function T(V){return V.length}i.bisectLeft=M.left,i.bisect=i.bisectRight=M.right,i.bisector=function(V){return R(V.length===1?function(ne,ge){return S(V(ne),ge)}:V)},i.shuffle=function(V,ne,ge){(Fe=arguments.length)<3&&(ge=V.length,Fe<2&&(ne=0));for(var xe,Me,Fe=ge-ne;Fe;)Me=Math.random()*Fe--|0,xe=V[Fe+ne],V[Fe+ne]=V[Me+ne],V[Me+ne]=xe;return V},i.permute=function(V,ne){for(var ge=ne.length,xe=new Array(ge);ge--;)xe[ge]=V[ne[ge]];return xe},i.pairs=function(V){for(var ne=0,ge=V.length-1,xe=V[0],Me=new Array(ge<0?0:ge);ne=0;)for(ne=(xe=V[Me]).length;--ne>=0;)ge[--Je]=xe[ne];return ge};var E=Math.abs;function C(V,ne){for(var ge in ne)Object.defineProperty(V.prototype,ge,{value:ne[ge],enumerable:!1})}function L(){this._=Object.create(null)}i.range=function(V,ne,ge){if(arguments.length<3&&(ge=1,arguments.length<2&&(ne=V,V=0)),(ne-V)/ge==1/0)throw new Error("infinite range");var xe,Me=[],Fe=function(rt){for(var dt=1;rt*dt%1;)dt*=10;return dt}(E(ge)),Je=-1;if(V*=Fe,ne*=Fe,(ge*=Fe)<0)for(;(xe=V+ge*++Je)>ne;)Me.push(xe/Fe);else for(;(xe=V+ge*++Je)=xe.length)return ne?ne.call(ge,dt):V?dt.sort(V):dt;for(var Et,Vt,jt,Nt,cn=-1,sn=dt.length,xn=xe[mt++],pn=new L;++cn=xe.length)return rt;var mt=[],Et=Me[dt++];return rt.forEach(function(Vt,jt){mt.push({key:Vt,values:Je(jt,dt)})}),Et?mt.sort(function(Vt,jt){return Et(Vt.key,jt.key)}):mt}return ge.map=function(rt,dt){return Fe(dt,rt,0)},ge.entries=function(rt){return Je(Fe(i.map,rt,0),0)},ge.key=function(rt){return xe.push(rt),ge},ge.sortKeys=function(rt){return Me[xe.length-1]=rt,ge},ge.sortValues=function(rt){return V=rt,ge},ge.rollup=function(rt){return ne=rt,ge},ge},i.set=function(V){var ne=new te;if(V)for(var ge=0,xe=V.length;ge=0&&(xe=V.slice(ge+1),V=V.slice(0,ge)),V)return arguments.length<2?this[V].on(xe):this[V].on(xe,ne);if(arguments.length===2){if(ne==null)for(V in this)this.hasOwnProperty(V)&&this[V].on(xe,null);return this}},i.event=null,i.requote=function(V){return V.replace(ce,"\\$&")};var ce=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,de={}.__proto__?function(V,ne){V.__proto__=ne}:function(V,ne){for(var ge in ne)V[ge]=ne[ge]};function ve(V){return de(V,Te),V}var ye=function(V,ne){return ne.querySelector(V)},_e=function(V,ne){return ne.querySelectorAll(V)},Se=function(V,ne){var ge=V.matches||V[oe(V,"matchesSelector")];return Se=function(xe,Me){return ge.call(xe,Me)},Se(V,ne)};typeof Sizzle=="function"&&(ye=function(V,ne){return Sizzle(V,ne)[0]||null},_e=Sizzle,Se=Sizzle.matchesSelector),i.selection=function(){return i.select(y.documentElement)};var Te=i.selection.prototype=[];function Pe(V){return typeof V=="function"?V:function(){return ye(V,this)}}function Ie(V){return typeof V=="function"?V:function(){return _e(V,this)}}Te.select=function(V){var ne,ge,xe,Me,Fe=[];V=Pe(V);for(var Je=-1,rt=this.length;++Je=0&&(ge=V.slice(0,ne))!=="xmlns"&&(V=V.slice(ne+1)),De.hasOwnProperty(ge)?{space:De[ge],local:V}:V}},Te.attr=function(V,ne){if(arguments.length<2){if(typeof V=="string"){var ge=this.node();return(V=i.ns.qualify(V)).local?ge.getAttributeNS(V.space,V.local):ge.getAttribute(V)}for(ne in V)this.each(He(ne,V[ne]));return this}return this.each(He(V,ne))},Te.classed=function(V,ne){if(arguments.length<2){if(typeof V=="string"){var ge=this.node(),xe=(V=Oe(V)).length,Me=-1;if(ne=ge.classList){for(;++Me=0;)(ge=xe[Me])&&(Fe&&Fe!==ge.nextSibling&&Fe.parentNode.insertBefore(ge,Fe),Fe=ge);return this},Te.sort=function(V){V=Ne.apply(this,arguments);for(var ne=-1,ge=this.length;++ne0&&(V=V.slice(0,Me));var Je=ht.get(V);function rt(){var dt=this[xe];dt&&(this.removeEventListener(V,dt,dt.$),delete this[xe])}return Je&&(V=Je,Fe=wt),Me?ne?function(){var dt=Fe(ne,w(arguments));rt.call(this),this.addEventListener(V,this[xe]=dt,dt.$=ge),dt._=ne}:rt:ne?Y:function(){var dt,mt=new RegExp("^__on([^.]+)"+i.requote(V)+"$");for(var Et in this)if(dt=Et.match(mt)){var Vt=this[Et];this.removeEventListener(dt[1],Vt,Vt.$),delete this[Et]}}}i.selection.enter=nt,i.selection.enter.prototype=ot,ot.append=Te.append,ot.empty=Te.empty,ot.node=Te.node,ot.call=Te.call,ot.size=Te.size,ot.select=function(V){for(var ne,ge,xe,Me,Fe,Je=[],rt=-1,dt=this.length;++rt=xe&&(xe=Je+1);!(dt=mt[xe])&&++xe1?vt:V<-1?-vt:Math.asin(V)}function zt(V){return((V=Math.exp(V))+1/V)/2}var Rt=Math.SQRT2;i.interpolateZoom=function(V,ne){var ge,xe,Me=V[0],Fe=V[1],Je=V[2],rt=ne[0],dt=ne[1],mt=ne[2],Et=rt-Me,Vt=dt-Fe,jt=Et*Et+Vt*Vt;if(jt0&&(Hr=Hr.transition().duration(jt)),Hr.call(On.event)}function Pr(){Je&&Je.domain(Fe.range().map(function(Hr){return(Hr-mt.x)/mt.k}).map(Fe.invert)),dt&&dt.domain(rt.range().map(function(Hr){return(Hr-mt.y)/mt.k}).map(rt.invert))}function Zr(Hr){Nt++||Hr({type:"zoomstart"})}function Mo(Hr){Pr(),Hr({type:"zoom",scale:mt.k,translate:[mt.x,mt.y]})}function $o(Hr){--Nt||(Hr({type:"zoomend"}),ne=null)}function vo(){var Hr=this,Lo=Ln.of(Hr,arguments),ki=0,Io=i.select(a(Hr)).on(sn,function(){ki=1,rr(i.mouse(Hr),$i),Mo(Lo)}).on(xn,function(){Io.on(sn,null).on(xn,null),Ui(ki),$o(Lo)}),$i=An(i.mouse(Hr)),Ui=qt(Hr);au.call(Hr),Zr(Lo)}function zo(){var Hr,Lo=this,ki=Ln.of(Lo,arguments),Io={},$i=0,Ui=".zoom-"+i.event.changedTouches[0].identifier,ba="touchmove"+Ui,Pi="touchend"+Ui,ds=[],mr=i.select(Lo),bs=qt(Lo);function Pl(){var Pa=i.touches(Lo);return Hr=mt.k,Pa.forEach(function(Rs){Rs.identifier in Io&&(Io[Rs.identifier]=An(Rs))}),Pa}function Ys(){var Pa=i.event.target;i.select(Pa).on(ba,hl).on(Pi,hs),ds.push(Pa);for(var Rs=i.event.changedTouches,Ls=0,ol=Rs.length;Ls1){ec=Is[0];var Tc=Is[1],op=ec[0]-Tc[0],ip=ec[1]-Tc[1];$i=op*op+ip*ip}}function hl(){var Pa,Rs,Ls,ol,Is=i.touches(Lo);au.call(Lo);for(var Ds=0,ec=Is.length;Ds360?rt-=360:rt<0&&(rt+=360),rt<60?xe+(Me-xe)*rt/60:rt<180?Me:rt<240?xe+(Me-xe)*(240-rt)/60:xe}(Je))}return V=isNaN(V)?0:(V%=360)<0?V+360:V,ne=isNaN(ne)||ne<0?0:ne>1?1:ne,xe=2*(ge=ge<0?0:ge>1?1:ge)-(Me=ge<=.5?ge*(1+ne):ge+ne-ge*ne),new Sr(Fe(V+120),Fe(V),Fe(V-120))}function Qt(V,ne,ge){return this instanceof Qt?(this.h=+V,this.c=+ne,void(this.l=+ge)):arguments.length<2?V instanceof Qt?new Qt(V.h,V.c,V.l):function(xe,Me,Fe){return xe>0?new Qt(Math.atan2(Fe,Me)*lt,Math.sqrt(Me*Me+Fe*Fe),xe):new Qt(NaN,NaN,xe)}(V instanceof Kt?V.l:(V=Ir((V=i.rgb(V)).r,V.g,V.b)).l,V.a,V.b):new Qt(V,ne,ge)}Xt.brighter=function(V){return V=Math.pow(.7,arguments.length?V:1),new Zt(this.h,this.s,this.l/V)},Xt.darker=function(V){return V=Math.pow(.7,arguments.length?V:1),new Zt(this.h,this.s,V*this.l)},Xt.rgb=function(){return Yt(this.h,this.s,this.l)},i.hcl=Qt;var Pt=Qt.prototype=new xt;function tn(V,ne,ge){return isNaN(V)&&(V=0),isNaN(ne)&&(ne=0),new Kt(ge,Math.cos(V*=bt)*ne,Math.sin(V)*ne)}function Kt(V,ne,ge){return this instanceof Kt?(this.l=+V,this.a=+ne,void(this.b=+ge)):arguments.length<2?V instanceof Kt?new Kt(V.l,V.a,V.b):V instanceof Qt?tn(V.h,V.c,V.l):Ir((V=Sr(V)).r,V.g,V.b):new Kt(V,ne,ge)}Pt.brighter=function(V){return new Qt(this.h,this.c,Math.min(100,this.l+fn*(arguments.length?V:1)))},Pt.darker=function(V){return new Qt(this.h,this.c,Math.max(0,this.l-fn*(arguments.length?V:1)))},Pt.rgb=function(){return tn(this.h,this.c,this.l).rgb()},i.lab=Kt;var fn=18,dn=.95047,vn=1,Nn=1.08883,er=Kt.prototype=new xt;function En(V,ne,ge){var xe=(V+16)/116,Me=xe+ne/500,Fe=xe-ge/200;return new Sr(xr(3.2404542*(Me=In(Me)*dn)-1.5371385*(xe=In(xe)*vn)-.4985314*(Fe=In(Fe)*Nn)),xr(-.969266*Me+1.8760108*xe+.041556*Fe),xr(.0556434*Me-.2040259*xe+1.0572252*Fe))}function In(V){return V>.206893034?V*V*V:(V-.13793103448275862)/7.787037}function jn(V){return V>.008856?Math.pow(V,.3333333333333333):7.787037*V+.13793103448275862}function xr(V){return Math.round(255*(V<=.00304?12.92*V:1.055*Math.pow(V,.4166666666666667)-.055))}function Sr(V,ne,ge){return this instanceof Sr?(this.r=~~V,this.g=~~ne,void(this.b=~~ge)):arguments.length<2?V instanceof Sr?new Sr(V.r,V.g,V.b):Kn(""+V,Sr,Yt):new Sr(V,ne,ge)}function ar(V){return new Sr(V>>16,V>>8&255,255&V)}function Fn(V){return ar(V)+""}er.brighter=function(V){return new Kt(Math.min(100,this.l+fn*(arguments.length?V:1)),this.a,this.b)},er.darker=function(V){return new Kt(Math.max(0,this.l-fn*(arguments.length?V:1)),this.a,this.b)},er.rgb=function(){return En(this.l,this.a,this.b)},i.rgb=Sr;var ir=Sr.prototype=new xt;function Wn(V){return V<16?"0"+Math.max(0,V).toString(16):Math.min(255,V).toString(16)}function Kn(V,ne,ge){var xe,Me,Fe,Je=0,rt=0,dt=0;if(xe=/([a-z]+)\((.*)\)/.exec(V=V.toLowerCase()))switch(Me=xe[2].split(","),xe[1]){case"hsl":return ge(parseFloat(Me[0]),parseFloat(Me[1])/100,parseFloat(Me[2])/100);case"rgb":return ne(Fr(Me[0]),Fr(Me[1]),Fr(Me[2]))}return(Fe=Rr.get(V))?ne(Fe.r,Fe.g,Fe.b):(V==null||V.charAt(0)!=="#"||isNaN(Fe=parseInt(V.slice(1),16))||(V.length===4?(Je=(3840&Fe)>>4,Je|=Je>>4,rt=240&Fe,rt|=rt>>4,dt=15&Fe,dt|=dt<<4):V.length===7&&(Je=(16711680&Fe)>>16,rt=(65280&Fe)>>8,dt=255&Fe)),ne(Je,rt,dt))}function _r(V,ne,ge){var xe,Me,Fe=Math.min(V/=255,ne/=255,ge/=255),Je=Math.max(V,ne,ge),rt=Je-Fe,dt=(Je+Fe)/2;return rt?(Me=dt<.5?rt/(Je+Fe):rt/(2-Je-Fe),xe=V==Je?(ne-ge)/rt+(ne0&&dt<1?0:xe),new Zt(xe,Me,dt)}function Ir(V,ne,ge){var xe=jn((.4124564*(V=zr(V))+.3575761*(ne=zr(ne))+.1804375*(ge=zr(ge)))/dn),Me=jn((.2126729*V+.7151522*ne+.072175*ge)/vn);return Kt(116*Me-16,500*(xe-Me),200*(Me-jn((.0193339*V+.119192*ne+.9503041*ge)/Nn)))}function zr(V){return(V/=255)<=.04045?V/12.92:Math.pow((V+.055)/1.055,2.4)}function Fr(V){var ne=parseFloat(V);return V.charAt(V.length-1)==="%"?Math.round(2.55*ne):ne}ir.brighter=function(V){V=Math.pow(.7,arguments.length?V:1);var ne=this.r,ge=this.g,xe=this.b,Me=30;return ne||ge||xe?(ne&&ne=200&&Vt<300||Vt===304){try{Et=ge.call(Me,rt)}catch(jt){return void Fe.error.call(Me,jt)}Fe.load.call(Me,Et)}else Fe.error.call(Me,rt)}return self.XDomainRequest&&!("withCredentials"in rt)&&/^(http(s)?:)?\/\//.test(V)&&(rt=new XDomainRequest),"onload"in rt?rt.onload=rt.onerror=mt:rt.onreadystatechange=function(){rt.readyState>3&&mt()},rt.onprogress=function(Et){var Vt=i.event;i.event=Et;try{Fe.progress.call(Me,rt)}finally{i.event=Vt}},Me.header=function(Et,Vt){return Et=(Et+"").toLowerCase(),arguments.length<2?Je[Et]:(Vt==null?delete Je[Et]:Je[Et]=Vt+"",Me)},Me.mimeType=function(Et){return arguments.length?(ne=Et==null?null:Et+"",Me):ne},Me.responseType=function(Et){return arguments.length?(dt=Et,Me):dt},Me.response=function(Et){return ge=Et,Me},["get","post"].forEach(function(Et){Me[Et]=function(){return Me.send.apply(Me,[Et].concat(w(arguments)))}}),Me.send=function(Et,Vt,jt){if(arguments.length===2&&typeof Vt=="function"&&(jt=Vt,Vt=null),rt.open(Et,V,!0),ne==null||"accept"in Je||(Je.accept=ne+",*/*"),rt.setRequestHeader)for(var Nt in Je)rt.setRequestHeader(Nt,Je[Nt]);return ne!=null&&rt.overrideMimeType&&rt.overrideMimeType(ne),dt!=null&&(rt.responseType=dt),jt!=null&&Me.on("error",jt).on("load",function(cn){jt(null,cn)}),Fe.beforesend.call(Me,rt),rt.send(Vt??null),Me},Me.abort=function(){return rt.abort(),Me},i.rebind(Me,Fe,"on"),xe==null?Me:Me.get(function(Et){return Et.length===1?function(Vt,jt){Et(Vt==null?jt:null)}:Et}(xe))}Rr.forEach(function(V,ne){Rr.set(V,ar(ne))}),i.functor=$r,i.xhr=Kr(W),i.dsv=function(V,ne){var ge=new RegExp('["'+V+` ]`),xe=V.charCodeAt(0);function Me(mt,Et,Vt){arguments.length<3&&(Vt=Et,Et=null);var jt=Co(mt,ne,Et==null?Fe:Je(Et),Vt);return jt.row=function(Nt){return arguments.length?jt.response((Et=Nt)==null?Fe:Je(Nt)):Et},jt}function Fe(mt){return Me.parse(mt.responseText)}function Je(mt){return function(Et){return Me.parse(Et.responseText,mt)}}function rt(mt){return mt.map(dt).join(V)}function dt(mt){return ge.test(mt)?'"'+mt.replace(/\"/g,'""')+'"':mt}return Me.parse=function(mt,Et){var Vt;return Me.parseRows(mt,function(jt,Nt){if(Vt)return Vt(jt,Nt-1);var cn=function(sn){for(var xn={},pn=jt.length,Ln=0;Ln=xn)return cn;if(jt)return jt=!1,Nt;var Sn=pn;if(mt.charCodeAt(Sn)===34){for(var rr=Sn;rr++24?(isFinite(ne)&&(clearTimeout(li),li=setTimeout(br,ne)),go=0):(go=1,Pn(br))}function dr(){for(var V=Date.now(),ne=so;ne;)V>=ne.t&&ne.c(V-ne.t)&&(ne.c=null),ne=ne.n;return V}function Cr(){for(var V,ne=so,ge=1/0;ne;)ne.c?(ne.t1&&(ne=V[Fe[Je-2]],ge=V[Fe[Je-1]],xe=V[rt],(ge[0]-ne[0])*(xe[1]-ne[1])-(ge[1]-ne[1])*(xe[0]-ne[0])<=0);)--Je;Fe[Je++]=rt}return Fe.slice(0,Je)}function bo(V,ne){return V[0]-ne[0]||V[1]-ne[1]}i.timer=function(){Yn.apply(this,arguments)},i.timer.flush=function(){dr(),Cr()},i.round=function(V,ne){return ne?Math.round(V*(ne=Math.pow(10,ne)))/ne:Math.round(V)},i.geom={},i.geom.hull=function(V){var ne=io,ge=Qr;if(arguments.length)return xe(V);function xe(Me){if(Me.length<3)return[];var Fe,Je=$r(ne),rt=$r(ge),dt=Me.length,mt=[],Et=[];for(Fe=0;Fe=0;--Fe)sn.push(Me[mt[Vt[Fe]][2]]);for(Fe=+Nt;Fe_t)rt=rt.L;else{if(!((Me=Fe-_o(rt,Je))>_t)){xe>-_t?(ne=rt.P,ge=rt):Me>-_t?(ne=rt,ge=rt.N):ne=ge=rt;break}if(!rt.R){ne=rt;break}rt=rt.R}var dt=cr(V);if(gr.insert(ne,dt),ne||ge){if(ne===ge)return Go(ne),ge=cr(ne.site),gr.insert(dt,ge),dt.edge=ge.edge=Ao(ne.site,dt.site),co(ne),void co(ge);if(ge){Go(ne),Go(ge);var mt=ne.site,Et=mt.x,Vt=mt.y,jt=V.x-Et,Nt=V.y-Vt,cn=ge.site,sn=cn.x-Et,xn=cn.y-Vt,pn=2*(jt*xn-Nt*sn),Ln=jt*jt+Nt*Nt,On=sn*sn+xn*xn,An={x:(xn*Ln-Nt*On)/pn+Et,y:(jt*On-sn*Ln)/pn+Vt};oi(ge.edge,mt,cn,An),dt.edge=Ao(mt,V,null,An),ge.edge=Ao(V,cn,null,An),co(ne),co(ge)}else dt.edge=Ao(ne.site,dt.site)}}function to(V,ne){var ge=V.site,xe=ge.x,Me=ge.y,Fe=Me-ne;if(!Fe)return xe;var Je=V.P;if(!Je)return-1/0;var rt=(ge=Je.site).x,dt=ge.y,mt=dt-ne;if(!mt)return rt;var Et=rt-xe,Vt=1/Fe-1/mt,jt=Et/mt;return Vt?(-jt+Math.sqrt(jt*jt-2*Vt*(Et*Et/(-2*mt)-dt+mt/2+Me-Fe/2)))/Vt+xe:(xe+rt)/2}function _o(V,ne){var ge=V.N;if(ge)return to(ge,ne);var xe=V.site;return xe.y===ne?xe.x:1/0}function fr(V){this.site=V,this.edges=[]}function Eo(V,ne){return ne.angle-V.angle}function ao(){mo(this),this.x=this.y=this.arc=this.site=this.cy=null}function co(V){var ne=V.P,ge=V.N;if(ne&&ge){var xe=ne.site,Me=V.site,Fe=ge.site;if(xe!==Fe){var Je=Me.x,rt=Me.y,dt=xe.x-Je,mt=xe.y-rt,Et=Fe.x-Je,Vt=2*(dt*(xn=Fe.y-rt)-mt*Et);if(!(Vt>=-nn)){var jt=dt*dt+mt*mt,Nt=Et*Et+xn*xn,cn=(xn*jt-mt*Nt)/Vt,sn=(dt*Nt-Et*jt)/Vt,xn=sn+rt,pn=Hn.pop()||new ao;pn.arc=V,pn.site=Me,pn.x=cn+Je,pn.y=xn+Math.sqrt(cn*cn+sn*sn),pn.cy=xn,V.circle=pn;for(var Ln=null,On=nr._;On;)if(pn.y=rt)return;if(jt>cn){if(Fe){if(Fe.y>=mt)return}else Fe={x:xn,y:dt};ge={x:xn,y:mt}}else{if(Fe){if(Fe.y1)if(jt>cn){if(Fe){if(Fe.y>=mt)return}else Fe={x:(dt-Me)/xe,y:dt};ge={x:(mt-Me)/xe,y:mt}}else{if(Fe){if(Fe.y=rt)return}else Fe={x:Je,y:xe*Je+Me};ge={x:rt,y:xe*rt+Me}}else{if(Fe){if(Fe.x0)){if(pn/=Pr,Pr<0){if(pn0){if(pn>Dr)return;pn>rr&&(rr=pn)}if(pn=Vt-An,Pr||!(pn<0)){if(pn/=Pr,Pr<0){if(pn>Dr)return;pn>rr&&(rr=pn)}else if(Pr>0){if(pn0)){if(pn/=Zr,Zr<0){if(pn0){if(pn>Dr)return;pn>rr&&(rr=pn)}if(pn=jt-Sn,Zr||!(pn<0)){if(pn/=Zr,Zr<0){if(pn>Dr)return;pn>rr&&(rr=pn)}else if(Zr>0){if(pn0&&(xn.a={x:An+rr*Pr,y:Sn+rr*Zr}),Dr<1&&(xn.b={x:An+Dr*Pr,y:Sn+Dr*Zr}),xn}}}}}),sn=Nt.length;sn--;)(!po(dt=Nt[sn],rt)||!cn(dt)||E(dt.a.x-dt.b.x)<_t&&E(dt.a.y-dt.b.y)<_t)&&(dt.a=dt.b=null,Nt.splice(sn,1))}(ne),function(rt){for(var dt,mt,Et,Vt,jt,Nt,cn,sn,xn,pn,Ln=rt[0][0],On=rt[1][0],An=rt[0][1],Sn=rt[1][1],rr=yr,Dr=rr.length;Dr--;)if((jt=rr[Dr])&&jt.prepare())for(sn=(cn=jt.edges).length,Nt=0;Nt_t||E(Vt-mt)>_t)&&(cn.splice(Nt,0,new ko((Pr=jt.site,Zr=pn,Mo=E(Et-Ln)<_t&&Sn-Vt>_t?{x:Ln,y:E(dt-Ln)<_t?mt:Sn}:E(Vt-Sn)<_t&&On-Et>_t?{x:E(mt-Sn)<_t?dt:On,y:Sn}:E(Et-On)<_t&&Vt-An>_t?{x:On,y:E(dt-On)<_t?mt:An}:E(Vt-An)<_t&&Et-Ln>_t?{x:E(mt-An)<_t?dt:Ln,y:An}:null,$o=void 0,($o=new qo(Pr,null)).a=Zr,$o.b=Mo,Zn.push($o),$o),jt.site,null)),++sn);var Pr,Zr,Mo,$o}(ne));var Je={cells:yr,edges:Zn};return gr=nr=Zn=yr=null,Je}function wc(V,ne){return ne.y-V.y||ne.x-V.x}fr.prototype.prepare=function(){for(var V,ne=this.edges,ge=ne.length;ge--;)(V=ne[ge].edge).b&&V.a||ne.splice(ge,1);return ne.sort(Eo),ne.length},ko.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},ra.prototype={insert:function(V,ne){var ge,xe,Me;if(V){if(ne.P=V,ne.N=V.N,V.N&&(V.N.P=ne),V.N=ne,V.R){for(V=V.R;V.L;)V=V.L;V.L=ne}else V.R=ne;ge=V}else this._?(V=Na(this._),ne.P=null,ne.N=V,V.P=V.L=ne,ge=V):(ne.P=ne.N=null,this._=ne,ge=null);for(ne.L=ne.R=null,ne.U=ge,ne.C=!0,V=ne;ge&&ge.C;)ge===(xe=ge.U).L?(Me=xe.R)&&Me.C?(ge.C=Me.C=!1,xe.C=!0,V=xe):(V===ge.R&&(Aa(this,ge),ge=(V=ge).U),ge.C=!1,xe.C=!0,Xl(this,xe)):(Me=xe.L)&&Me.C?(ge.C=Me.C=!1,xe.C=!0,V=xe):(V===ge.L&&(Xl(this,ge),ge=(V=ge).U),ge.C=!1,xe.C=!0,Aa(this,xe)),ge=V.U;this._.C=!1},remove:function(V){V.N&&(V.N.P=V.P),V.P&&(V.P.N=V.N),V.N=V.P=null;var ne,ge,xe,Me=V.U,Fe=V.L,Je=V.R;if(ge=Fe?Je?Na(Je):Fe:Je,Me?Me.L===V?Me.L=ge:Me.R=ge:this._=ge,Fe&&Je?(xe=ge.C,ge.C=V.C,ge.L=Fe,Fe.U=ge,ge!==Je?(Me=ge.U,ge.U=V.U,V=ge.R,Me.L=V,ge.R=Je,Je.U=ge):(ge.U=Me,Me=ge,V=ge.R)):(xe=V.C,V=ge),V&&(V.U=Me),!xe)if(V&&V.C)V.C=!1;else{do{if(V===this._)break;if(V===Me.L){if((ne=Me.R).C&&(ne.C=!1,Me.C=!0,Aa(this,Me),ne=Me.R),ne.L&&ne.L.C||ne.R&&ne.R.C){ne.R&&ne.R.C||(ne.L.C=!1,ne.C=!0,Xl(this,ne),ne=Me.R),ne.C=Me.C,Me.C=ne.R.C=!1,Aa(this,Me),V=this._;break}}else if((ne=Me.L).C&&(ne.C=!1,Me.C=!0,Xl(this,Me),ne=Me.L),ne.L&&ne.L.C||ne.R&&ne.R.C){ne.L&&ne.L.C||(ne.R.C=!1,ne.C=!0,Aa(this,ne),ne=Me.L),ne.C=Me.C,Me.C=ne.L.C=!1,Xl(this,Me),V=this._;break}ne.C=!0,V=Me,Me=Me.U}while(!V.C);V&&(V.C=!1)}}},i.geom.voronoi=function(V){var ne=io,ge=Qr,xe=ne,Me=ge,Fe=ma;if(V)return Je(V);function Je(dt){var mt=new Array(dt.length),Et=Fe[0][0],Vt=Fe[0][1],jt=Fe[1][0],Nt=Fe[1][1];return cs(rt(dt),Fe).cells.forEach(function(cn,sn){var xn=cn.edges,pn=cn.site;(mt[sn]=xn.length?xn.map(function(Ln){var On=Ln.start();return[On.x,On.y]}):pn.x>=Et&&pn.x<=jt&&pn.y>=Vt&&pn.y<=Nt?[[Et,Nt],[jt,Nt],[jt,Vt],[Et,Vt]]:[]).point=dt[sn]}),mt}function rt(dt){return dt.map(function(mt,Et){return{x:Math.round(xe(mt,Et)/_t)*_t,y:Math.round(Me(mt,Et)/_t)*_t,i:Et}})}return Je.links=function(dt){return cs(rt(dt)).edges.filter(function(mt){return mt.l&&mt.r}).map(function(mt){return{source:dt[mt.l.i],target:dt[mt.r.i]}})},Je.triangles=function(dt){var mt=[];return cs(rt(dt)).cells.forEach(function(Et,Vt){for(var jt,Nt,cn,sn,xn=Et.site,pn=Et.edges.sort(Eo),Ln=-1,On=pn.length,An=pn[On-1].edge,Sn=An.l===xn?An.r:An.l;++LnFe&&(Me=ne.slice(Fe,Me),rt[Je]?rt[Je]+=Me:rt[++Je]=Me),(ge=ge[0])===(xe=xe[0])?rt[Je]?rt[Je]+=xe:rt[++Je]=xe:(rt[++Je]=null,dt.push({i:Je,x:Nf(ge,xe)})),Fe=gm.lastIndex;return Fepn&&(pn=Et.x),Et.y>Ln&&(Ln=Et.y),Vt.push(Et.x),jt.push(Et.y);else for(Nt=0;Ntpn&&(pn=Sn),rr>Ln&&(Ln=rr),Vt.push(Sn),jt.push(rr)}var Dr=pn-sn,Pr=Ln-xn;function Zr(vo,zo,yi,Si,Hr,Lo,ki,Io){if(!isNaN(yi)&&!isNaN(Si))if(vo.leaf){var $i=vo.x,Ui=vo.y;if($i!=null)if(E($i-yi)+E(Ui-Si)<.01)Mo(vo,zo,yi,Si,Hr,Lo,ki,Io);else{var ba=vo.point;vo.x=vo.y=vo.point=null,Mo(vo,ba,$i,Ui,Hr,Lo,ki,Io),Mo(vo,zo,yi,Si,Hr,Lo,ki,Io)}else vo.x=yi,vo.y=Si,vo.point=zo}else Mo(vo,zo,yi,Si,Hr,Lo,ki,Io)}function Mo(vo,zo,yi,Si,Hr,Lo,ki,Io){var $i=.5*(Hr+ki),Ui=.5*(Lo+Io),ba=yi>=$i,Pi=Si>=Ui,fs=Pi<<1|ba;vo.leaf=!1,ba?Hr=$i:ki=$i,Pi?Lo=Ui:Io=Ui,Zr(vo=vo.nodes[fs]||(vo.nodes[fs]={leaf:!0,nodes:[],point:null,x:null,y:null}),zo,yi,Si,Hr,Lo,ki,Io)}Dr>Pr?Ln=xn+Dr:pn=sn+Pr;var $o={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(vo){Zr($o,vo,+On(vo,++Nt),+An(vo,Nt),sn,xn,pn,Ln)}};if($o.visit=function(vo){Yd(vo,$o,sn,xn,pn,Ln)},$o.find=function(vo){return function(zo,yi,Si,Hr,Lo,ki,Io){var $i,Ui=1/0;return function ba(Pi,fs,mr,ys,Pl){if(!(fs>ki||mr>Io||ys=Is)<<1|yi>=ol,ec=Ds+4;Ds=0&&!(ge=i.interpolators[xe](V,ne)););return ge}function pc(V,ne){var ge,xe=[],Me=[],Fe=V.length,Je=ne.length,rt=Math.min(V.length,ne.length);for(ge=0;ge=1)return 1;var ne=V*V,ge=ne*V;return 4*(V<.5?ge:3*(V-ne)+ge-.75)}function Ss(V){return 1-Math.cos(V*vt)}function $f(V){return Math.pow(2,10*(V-1))}function vf(V){return 1-Math.sqrt(1-V*V)}function Ju(V){return V<.36363636363636365?7.5625*V*V:V<.7272727272727273?7.5625*(V-=.5454545454545454)*V+.75:V<.9090909090909091?7.5625*(V-=.8181818181818182)*V+.9375:7.5625*(V-=.9545454545454546)*V+.984375}function $h(V,ne){return ne-=V,function(ge){return Math.round(V+ne*ge)}}function Es(V){var ne,ge,xe,Me=[V.a,V.b],Fe=[V.c,V.d],Je=uc(Me),rt=ef(Me,Fe),dt=uc(((ne=Fe)[0]+=(xe=-rt)*(ge=Me)[0],ne[1]+=xe*ge[1],ne))||0;Me[0]*Fe[1]=0?V.slice(0,ge):V,Me=ge>=0?V.slice(ge+1):"in";return xe=yl.get(xe)||Cu,Me=sa.get(Me)||W,ne=Me(xe.apply(null,O.call(arguments,1))),function(Fe){return Fe<=0?0:Fe>=1?1:ne(Fe)}},i.interpolateHcl=function(V,ne){V=i.hcl(V),ne=i.hcl(ne);var ge=V.h,xe=V.c,Me=V.l,Fe=ne.h-ge,Je=ne.c-xe,rt=ne.l-Me;return isNaN(Je)&&(Je=0,xe=isNaN(xe)?ne.c:xe),isNaN(Fe)?(Fe=0,ge=isNaN(ge)?ne.h:ge):Fe>180?Fe-=360:Fe<-180&&(Fe+=360),function(dt){return tn(ge+Fe*dt,xe+Je*dt,Me+rt*dt)+""}},i.interpolateHsl=function(V,ne){V=i.hsl(V),ne=i.hsl(ne);var ge=V.h,xe=V.s,Me=V.l,Fe=ne.h-ge,Je=ne.s-xe,rt=ne.l-Me;return isNaN(Je)&&(Je=0,xe=isNaN(xe)?ne.s:xe),isNaN(Fe)?(Fe=0,ge=isNaN(ge)?ne.h:ge):Fe>180?Fe-=360:Fe<-180&&(Fe+=360),function(dt){return Yt(ge+Fe*dt,xe+Je*dt,Me+rt*dt)+""}},i.interpolateLab=function(V,ne){V=i.lab(V),ne=i.lab(ne);var ge=V.l,xe=V.a,Me=V.b,Fe=ne.l-ge,Je=ne.a-xe,rt=ne.b-Me;return function(dt){return En(ge+Fe*dt,xe+Je*dt,Me+rt*dt)+""}},i.interpolateRound=$h,i.transform=function(V){var ne=y.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(ge){if(ge!=null){ne.setAttribute("transform",ge);var xe=ne.transform.baseVal.consolidate()}return new Es(xe?xe.matrix:ad)})(V)},Es.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ad={a:1,b:0,c:0,d:1,e:0,f:0};function Vf(V){return V.length?V.pop()+",":""}function gc(V,ne){var ge=[],xe=[];return V=i.transform(V),ne=i.transform(ne),function(Me,Fe,Je,rt){if(Me[0]!==Fe[0]||Me[1]!==Fe[1]){var dt=Je.push("translate(",null,",",null,")");rt.push({i:dt-4,x:Nf(Me[0],Fe[0])},{i:dt-2,x:Nf(Me[1],Fe[1])})}else(Fe[0]||Fe[1])&&Je.push("translate("+Fe+")")}(V.translate,ne.translate,ge,xe),function(Me,Fe,Je,rt){Me!==Fe?(Me-Fe>180?Fe+=360:Fe-Me>180&&(Me+=360),rt.push({i:Je.push(Vf(Je)+"rotate(",null,")")-2,x:Nf(Me,Fe)})):Fe&&Je.push(Vf(Je)+"rotate("+Fe+")")}(V.rotate,ne.rotate,ge,xe),function(Me,Fe,Je,rt){Me!==Fe?rt.push({i:Je.push(Vf(Je)+"skewX(",null,")")-2,x:Nf(Me,Fe)}):Fe&&Je.push(Vf(Je)+"skewX("+Fe+")")}(V.skew,ne.skew,ge,xe),function(Me,Fe,Je,rt){if(Me[0]!==Fe[0]||Me[1]!==Fe[1]){var dt=Je.push(Vf(Je)+"scale(",null,",",null,")");rt.push({i:dt-4,x:Nf(Me[0],Fe[0])},{i:dt-2,x:Nf(Me[1],Fe[1])})}else Fe[0]===1&&Fe[1]===1||Je.push(Vf(Je)+"scale("+Fe+")")}(V.scale,ne.scale,ge,xe),V=ne=null,function(Me){for(var Fe,Je=-1,rt=xe.length;++Je0?ge=An:(V.c=null,V.t=NaN,V=null,rt.end({type:"end",alpha:ge=0})):An>0&&(rt.start({type:"start",alpha:ge=An}),V=Yn(Je.tick)),Je):ge},Je.start=function(){var An,Sn,rr,Dr=xn.length,Pr=pn.length,Zr=dt[0],Mo=dt[1];for(An=0;An=0;)ge.push(Me[xe])}function rs(V,ne){for(var ge=[V],xe=[];(V=ge.pop())!=null;)if(xe.push(V),(Fe=V.children)&&(Me=Fe.length))for(var Me,Fe,Je=-1;++Je=0;)Je.push(Et=mt[dt]),Et.parent=Fe,Et.depth=Fe.depth+1;ge&&(Fe.value=0),Fe.children=mt}else ge&&(Fe.value=+ge.call(xe,Fe,Fe.depth)||0),delete Fe.children;return rs(Me,function(Vt){var jt,Nt;V&&(jt=Vt.children)&&jt.sort(V),ge&&(Nt=Vt.parent)&&(Nt.value+=Vt.value)}),rt}return xe.sort=function(Me){return arguments.length?(V=Me,xe):V},xe.children=function(Me){return arguments.length?(ne=Me,xe):ne},xe.value=function(Me){return arguments.length?(ge=Me,xe):ge},xe.revalue=function(Me){return ge&&(gh(Me,function(Fe){Fe.children&&(Fe.value=0)}),rs(Me,function(Fe){var Je;Fe.children||(Fe.value=+ge.call(xe,Fe,Fe.depth)||0),(Je=Fe.parent)&&(Je.value+=Fe.value)})),Me},xe},i.layout.partition=function(){var V=i.layout.hierarchy(),ne=[1,1];function ge(Fe,Je,rt,dt){var mt=Fe.children;if(Fe.x=Je,Fe.y=Fe.depth*dt,Fe.dx=rt,Fe.dy=dt,mt&&(Et=mt.length)){var Et,Vt,jt,Nt=-1;for(rt=Fe.value?rt/Fe.value:0;++Ntrt&&(rt=xe),Je.push(xe)}for(ge=0;geMe&&(xe=ge,Me=ne);return xe}function rf(V){return V.reduce(Bc,0)}function Bc(V,ne){return V+ne[1]}function ym(V,ne){return Mu(V,Math.ceil(Math.log(ne.length)/Math.LN2+1))}function Mu(V,ne){for(var ge=-1,xe=+V[0],Me=(V[1]-xe)/ne,Fe=[];++ge<=ne;)Fe[ge]=Me*ge+xe;return Fe}function Hu(V){return[i.min(V),i.max(V)]}function Lp(V,ne){return V.value-ne.value}function Uh(V,ne){var ge=V._pack_next;V._pack_next=ne,ne._pack_prev=V,ne._pack_next=ge,ge._pack_prev=ne}function jh(V,ne){V._pack_next=ne,ne._pack_prev=V}function Eu(V,ne){var ge=ne.x-V.x,xe=ne.y-V.y,Me=V.r+ne.r;return .999*Me*Me>ge*ge+xe*xe}function ud(V){if((ne=V.children)&&(dt=ne.length)){var ne,ge,xe,Me,Fe,Je,rt,dt,mt=1/0,Et=-1/0,Vt=1/0,jt=-1/0;if(ne.forEach(vh),(ge=ne[0]).x=-ge.r,ge.y=0,On(ge),dt>1&&((xe=ne[1]).x=xe.r,xe.y=0,On(xe),dt>2))for(ks(ge,xe,Me=ne[2]),On(Me),Uh(ge,Me),ge._pack_prev=Me,Uh(Me,xe),xe=ge._pack_next,Fe=3;Fe0)for(Je=-1;++Je=Vt[0]&&dt<=Vt[1]&&((rt=mt[i.bisect(jt,dt,1,cn)-1]).y+=sn,rt.push(Fe[Je]));return mt}return Me.value=function(Fe){return arguments.length?(ne=Fe,Me):ne},Me.range=function(Fe){return arguments.length?(ge=$r(Fe),Me):ge},Me.bins=function(Fe){return arguments.length?(xe=typeof Fe=="number"?function(Je){return Mu(Je,Fe)}:$r(Fe),Me):xe},Me.frequency=function(Fe){return arguments.length?(V=!!Fe,Me):V},Me},i.layout.pack=function(){var V,ne=i.layout.hierarchy().sort(Lp),ge=0,xe=[1,1];function Me(Fe,Je){var rt=ne.call(this,Fe,Je),dt=rt[0],mt=xe[0],Et=xe[1],Vt=V==null?Math.sqrt:typeof V=="function"?V:function(){return V};if(dt.x=dt.y=0,rs(dt,function(Nt){Nt.r=+Vt(Nt.value)}),rs(dt,ud),ge){var jt=ge*(V?1:Math.max(2*dt.r/mt,2*dt.r/Et))/2;rs(dt,function(Nt){Nt.r+=jt}),rs(dt,ud),rs(dt,function(Nt){Nt.r-=jt})}return Oc(dt,mt/2,Et/2,V?1:1/Math.max(2*dt.r/mt,2*dt.r/Et)),rt}return Me.size=function(Fe){return arguments.length?(xe=Fe,Me):xe},Me.radius=function(Fe){return arguments.length?(V=Fe==null||typeof Fe=="function"?Fe:+Fe,Me):V},Me.padding=function(Fe){return arguments.length?(ge=+Fe,Me):ge},nf(Me,ne)},i.layout.tree=function(){var V=i.layout.hierarchy().sort(null).value(null),ne=Uf,ge=[1,1],xe=null;function Me(dt,mt){var Et=V.call(this,dt,mt),Vt=Et[0],jt=function(On){for(var An,Sn={A:null,children:[On]},rr=[Sn];(An=rr.pop())!=null;)for(var Dr,Pr=An.children,Zr=0,Mo=Pr.length;Zrcn.x&&(cn=On),On.depth>sn.depth&&(sn=On)});var xn=ne(Nt,cn)/2-Nt.x,pn=ge[0]/(cn.x+ne(cn,Nt)/2+xn),Ln=ge[1]/(sn.depth||1);gh(Vt,function(On){On.x=(On.x+xn)*pn,On.y=On.depth*Ln})}return Et}function Fe(dt){var mt=dt.children,Et=dt.parent.children,Vt=dt.i?Et[dt.i-1]:null;if(mt.length){(function(Nt){for(var cn,sn=0,xn=0,pn=Nt.children,Ln=pn.length;--Ln>=0;)(cn=pn[Ln]).z+=sn,cn.m+=sn,sn+=cn.s+(xn+=cn.c)})(dt);var jt=(mt[0].z+mt[mt.length-1].z)/2;Vt?(dt.z=Vt.z+ne(dt._,Vt._),dt.m=dt.z-jt):dt.z=jt}else Vt&&(dt.z=Vt.z+ne(dt._,Vt._));dt.parent.A=function(Nt,cn,sn){if(cn){for(var xn,pn=Nt,Ln=Nt,On=cn,An=pn.parent.children[0],Sn=pn.m,rr=Ln.m,Dr=On.m,Pr=An.m;On=Hl(On),pn=zl(pn),On&&pn;)An=zl(An),(Ln=Hl(Ln)).a=Nt,(xn=On.z+Dr-pn.z-Sn+ne(On._,pn._))>0&&(Ts($s(On,Nt,sn),Nt,xn),Sn+=xn,rr+=xn),Dr+=On.m,Sn+=pn.m,Pr+=An.m,rr+=Ln.m;On&&!Hl(Ln)&&(Ln.t=On,Ln.m+=Dr-rr),pn&&!zl(An)&&(An.t=pn,An.m+=Sn-Pr,sn=Nt)}return sn}(dt,Vt,dt.parent.A||Et[0])}function Je(dt){dt._.x=dt.z+dt.parent.m,dt.m+=dt.parent.m}function rt(dt){dt.x*=ge[0],dt.y=dt.depth*ge[1]}return Me.separation=function(dt){return arguments.length?(ne=dt,Me):ne},Me.size=function(dt){return arguments.length?(xe=(ge=dt)==null?rt:null,Me):xe?null:ge},Me.nodeSize=function(dt){return arguments.length?(xe=(ge=dt)==null?null:rt,Me):xe?ge:null},nf(Me,V)},i.layout.cluster=function(){var V=i.layout.hierarchy().sort(null).value(null),ne=Uf,ge=[1,1],xe=!1;function Me(Fe,Je){var rt,dt=V.call(this,Fe,Je),mt=dt[0],Et=0;rs(mt,function(sn){var xn=sn.children;xn&&xn.length?(sn.x=function(pn){return pn.reduce(function(Ln,On){return Ln+On.x},0)/pn.length}(xn),sn.y=function(pn){return 1+i.max(pn,function(Ln){return Ln.y})}(xn)):(sn.x=rt?Et+=ne(sn,rt):0,sn.y=0,rt=sn)});var Vt=Zu(mt),jt=yh(mt),Nt=Vt.x-ne(Vt,jt)/2,cn=jt.x+ne(jt,Vt)/2;return rs(mt,xe?function(sn){sn.x=(sn.x-mt.x)*ge[0],sn.y=(mt.y-sn.y)*ge[1]}:function(sn){sn.x=(sn.x-Nt)/(cn-Nt)*ge[0],sn.y=(1-(mt.y?sn.y/mt.y:1))*ge[1]}),dt}return Me.separation=function(Fe){return arguments.length?(ne=Fe,Me):ne},Me.size=function(Fe){return arguments.length?(xe=(ge=Fe)==null,Me):xe?null:ge},Me.nodeSize=function(Fe){return arguments.length?(xe=(ge=Fe)!=null,Me):xe?ge:null},nf(Me,V)},i.layout.treemap=function(){var V,ne=i.layout.hierarchy(),ge=Math.round,xe=[1,1],Me=null,Fe=of,Je=!1,rt="squarify",dt=.5*(1+Math.sqrt(5));function mt(sn,xn){for(var pn,Ln,On=-1,An=sn.length;++On0;)Sn.push(pn=rr[On-1]),Sn.area+=pn.area,rt!=="squarify"||(Ln=jt(Sn,Pr))<=Dr?(rr.pop(),Dr=Ln):(Sn.area-=Sn.pop().area,Nt(Sn,Pr,An,!1),Pr=Math.min(An.dx,An.dy),Sn.length=Sn.area=0,Dr=1/0);Sn.length&&(Nt(Sn,Pr,An,!0),Sn.length=Sn.area=0),xn.forEach(Et)}}function Vt(sn){var xn=sn.children;if(xn&&xn.length){var pn,Ln=Fe(sn),On=xn.slice(),An=[];for(mt(On,Ln.dx*Ln.dy/sn.value),An.area=0;pn=On.pop();)An.push(pn),An.area+=pn.area,pn.z!=null&&(Nt(An,pn.z?Ln.dx:Ln.dy,Ln,!On.length),An.length=An.area=0);xn.forEach(Vt)}}function jt(sn,xn){for(var pn,Ln=sn.area,On=0,An=1/0,Sn=-1,rr=sn.length;++SnOn&&(On=pn));return xn*=xn,(Ln*=Ln)?Math.max(xn*On*dt/Ln,Ln/(xn*An*dt)):1/0}function Nt(sn,xn,pn,Ln){var On,An=-1,Sn=sn.length,rr=pn.x,Dr=pn.y,Pr=xn?ge(sn.area/xn):0;if(xn==pn.dx){for((Ln||Pr>pn.dy)&&(Pr=pn.dy);++Anpn.dx)&&(Pr=pn.dx);++An1);return V+ne*xe*Math.sqrt(-2*Math.log(Fe)/Fe)}},logNormal:function(){var V=i.random.normal.apply(i,arguments);return function(){return Math.exp(V())}},bates:function(V){var ne=i.random.irwinHall(V);return function(){return ne()/V}},irwinHall:function(V){return function(){for(var ne=0,ge=0;ge2?np:Kd,mt=xe?Mp:sd;return Me=dt(V,ne,mt,ge),Fe=dt(ne,V,mt,Gl),rt}function rt(dt){return Me(dt)}return rt.invert=function(dt){return Fe(dt)},rt.domain=function(dt){return arguments.length?(V=dt.map(Number),Je()):V},rt.range=function(dt){return arguments.length?(ne=dt,Je()):ne},rt.rangeRound=function(dt){return rt.range(dt).interpolate($h)},rt.clamp=function(dt){return arguments.length?(xe=dt,Je()):xe},rt.interpolate=function(dt){return arguments.length?(ge=dt,Je()):ge},rt.ticks=function(dt){return Wc(V,dt)},rt.tickFormat=function(dt,mt){return d3_scale_linearTickFormat(V,dt,mt)},rt.nice=function(dt){return bl(V,dt),Je()},rt.copy=function(){return ms(V,ne,ge,xe)},Je()}function Ya(V,ne){return i.rebind(V,ne,"range","rangeRound","interpolate","clamp")}function bl(V,ne){return bh(V,Jd(fl(V,ne)[2])),bh(V,Jd(fl(V,ne)[2])),V}function fl(V,ne){ne==null&&(ne=10);var ge=Ip(V),xe=ge[1]-ge[0],Me=Math.pow(10,Math.floor(Math.log(xe/ne)/Math.LN10)),Fe=ne/xe*Me;return Fe<=.15?Me*=10:Fe<=.35?Me*=5:Fe<=.75&&(Me*=2),ge[0]=Math.ceil(ge[0]/Me)*Me,ge[1]=Math.floor(ge[1]/Me)*Me+.5*Me,ge[2]=Me,ge}function Wc(V,ne){return i.range.apply(i,fl(V,ne))}function xl(V,ne,ge,xe){function Me(rt){return(ge?Math.log(rt<0?0:rt):-Math.log(rt>0?0:-rt))/Math.log(ne)}function Fe(rt){return ge?Math.pow(ne,rt):-Math.pow(ne,-rt)}function Je(rt){return V(Me(rt))}return Je.invert=function(rt){return Fe(V.invert(rt))},Je.domain=function(rt){return arguments.length?(ge=rt[0]>=0,V.domain((xe=rt.map(Number)).map(Me)),Je):xe},Je.base=function(rt){return arguments.length?(ne=+rt,V.domain(xe.map(Me)),Je):ne},Je.nice=function(){var rt=bh(xe.map(Me),ge?Math:xi);return V.domain(rt),xe=rt.map(Fe),Je},Je.ticks=function(){var rt=Ip(xe),dt=[],mt=rt[0],Et=rt[1],Vt=Math.floor(Me(mt)),jt=Math.ceil(Me(Et)),Nt=ne%1?2:ne;if(isFinite(jt-Vt)){if(ge){for(;Vt0;cn--)dt.push(Fe(Vt)*cn);for(Vt=0;dt[Vt]Et;jt--);dt=dt.slice(Vt,jt)}return dt},Je.copy=function(){return xl(V.copy(),ne,ge,xe)},Ya(Je,V)}i.scale.linear=function(){return ms([0,1],[0,1],Gl,!1)},i.scale.log=function(){return xl(i.scale.linear().domain([0,1]),10,!0,[1,10])};var xi={floor:function(V){return-Math.ceil(-V)},ceil:function(V){return-Math.floor(-V)}};function pu(V,ne,ge){var xe=xh(ne),Me=xh(1/ne);function Fe(Je){return V(xe(Je))}return Fe.invert=function(Je){return Me(V.invert(Je))},Fe.domain=function(Je){return arguments.length?(V.domain((ge=Je.map(Number)).map(xe)),Fe):ge},Fe.ticks=function(Je){return Wc(ge,Je)},Fe.tickFormat=function(Je,rt){return d3_scale_linearTickFormat(ge,Je,rt)},Fe.nice=function(Je){return Fe.domain(bl(ge,Je))},Fe.exponent=function(Je){return arguments.length?(xe=xh(ne=Je),Me=xh(1/ne),V.domain(ge.map(xe)),Fe):ne},Fe.copy=function(){return pu(V.copy(),ne,ge)},Ya(Fe,V)}function xh(V){return function(ne){return ne<0?-Math.pow(-ne,V):Math.pow(ne,V)}}function js(V,ne){var ge,xe,Me;function Fe(rt){return xe[((ge.get(rt)||(ne.t==="range"?ge.set(rt,V.push(rt)):NaN))-1)%xe.length]}function Je(rt,dt){return i.range(V.length).map(function(mt){return rt+dt*mt})}return Fe.domain=function(rt){if(!arguments.length)return V;V=[],ge=new L;for(var dt,mt=-1,Et=rt.length;++mt0?ge[Fe-1]:V[0],Fejt?0:1;if(Et=mn)return dt(Et,cn)+(mt?dt(mt,1-cn):"")+"Z";var sn,xn,pn,Ln,On,An,Sn,rr,Dr,Pr,Zr,Mo,$o=0,vo=0,zo=[];if((Ln=(+Je.apply(this,arguments)||0)/2)&&(pn=xe===vc?Math.sqrt(mt*mt+Et*Et):+xe.apply(this,arguments),cn||(vo*=-1),Et&&(vo=yt(pn/Et*Math.sin(Ln))),mt&&($o=yt(pn/mt*Math.sin(Ln)))),Et){On=Et*Math.cos(Vt+vo),An=Et*Math.sin(Vt+vo),Sn=Et*Math.cos(jt-vo),rr=Et*Math.sin(jt-vo);var yi=Math.abs(jt-Vt-2*vo)<=gn?0:1;if(vo&&Ps(On,An,Sn,rr)===cn^yi){var Si=(Vt+jt)/2;On=Et*Math.cos(Si),An=Et*Math.sin(Si),Sn=rr=null}}else On=An=0;if(mt){Dr=mt*Math.cos(jt-$o),Pr=mt*Math.sin(jt-$o),Zr=mt*Math.cos(Vt+$o),Mo=mt*Math.sin(Vt+$o);var Hr=Math.abs(Vt-jt+2*$o)<=gn?0:1;if($o&&Ps(Dr,Pr,Zr,Mo)===1-cn^Hr){var Lo=(Vt+jt)/2;Dr=mt*Math.cos(Lo),Pr=mt*Math.sin(Lo),Zr=Mo=null}}else Dr=Pr=0;if(Nt>_t&&(sn=Math.min(Math.abs(Et-mt)/2,+ge.apply(this,arguments)))>.001){xn=mt0?0:1}function Sc(V,ne,ge,xe,Me){var Fe=V[0]-ne[0],Je=V[1]-ne[1],rt=(Me?xe:-xe)/Math.sqrt(Fe*Fe+Je*Je),dt=rt*Je,mt=-rt*Fe,Et=V[0]+dt,Vt=V[1]+mt,jt=ne[0]+dt,Nt=ne[1]+mt,cn=(Et+jt)/2,sn=(Vt+Nt)/2,xn=jt-Et,pn=Nt-Vt,Ln=xn*xn+pn*pn,On=ge-xe,An=Et*Nt-jt*Vt,Sn=(pn<0?-1:1)*Math.sqrt(Math.max(0,On*On*Ln-An*An)),rr=(An*pn-xn*Sn)/Ln,Dr=(-An*xn-pn*Sn)/Ln,Pr=(An*pn+xn*Sn)/Ln,Zr=(-An*xn+pn*Sn)/Ln,Mo=rr-cn,$o=Dr-sn,vo=Pr-cn,zo=Zr-sn;return Mo*Mo+$o*$o>vo*vo+zo*zo&&(rr=Pr,Dr=Zr),[[rr-dt,Dr-mt],[rr*ge/On,Dr*ge/On]]}function tl(){return!0}function mu(V){var ne=io,ge=Qr,xe=tl,Me=ja,Fe=Me.key,Je=.7;function rt(dt){var mt,Et=[],Vt=[],jt=-1,Nt=dt.length,cn=$r(ne),sn=$r(ge);function xn(){Et.push("M",Me(V(Vt),Je))}for(;++jt1&&Me.push("H",xe[0]),Me.join("")},"step-before":Rd,"step-after":Ld,basis:Ka,"basis-open":function(V){if(V.length<4)return ja(V);for(var ne,ge=[],xe=-1,Me=V.length,Fe=[0],Je=[0];++xe<3;)ne=V[xe],Fe.push(ne[0]),Je.push(ne[1]);for(ge.push(Xi(yu,Fe)+","+Xi(yu,Je)),--xe;++xe9&&(Fe=3*ge/Math.sqrt(Fe),rt[dt]=Fe*xe,rt[dt+1]=Fe*Me);for(dt=-1;++dt<=mt;)Fe=(ne[Math.min(mt,dt+1)][0]-ne[Math.max(0,dt-1)][0])/(6*(1+rt[dt]*rt[dt])),Je.push([Fe||0,rt[dt]*Fe||0]);return Je}(V))}});function ja(V){return V.length>1?V.join("L"):V+"Z"}function vu(V){return V.join("L")+"Z"}function Rd(V){for(var ne=0,ge=V.length,xe=V[0],Me=[xe[0],",",xe[1]];++ne1){rt=ne[1],Fe=V[dt],dt++,xe+="C"+(Me[0]+Je[0])+","+(Me[1]+Je[1])+","+(Fe[0]-rt[0])+","+(Fe[1]-rt[1])+","+Fe[0]+","+Fe[1];for(var mt=2;mtgn)+",1 "+Et}function dt(mt,Et,Vt,jt){return"Q 0,0 "+jt}return Fe.radius=function(mt){return arguments.length?(ge=$r(mt),Fe):ge},Fe.source=function(mt){return arguments.length?(V=$r(mt),Fe):V},Fe.target=function(mt){return arguments.length?(ne=$r(mt),Fe):ne},Fe.startAngle=function(mt){return arguments.length?(xe=$r(mt),Fe):xe},Fe.endAngle=function(mt){return arguments.length?(Me=$r(mt),Fe):Me},Fe},i.svg.diagonal=function(){var V=Qf,ne=fd,ge=_h;function xe(Me,Fe){var Je=V.call(this,Me,Fe),rt=ne.call(this,Me,Fe),dt=(Je.y+rt.y)/2,mt=[Je,{x:Je.x,y:dt},{x:rt.x,y:dt},rt];return"M"+(mt=mt.map(ge))[0]+"C"+mt[1]+" "+mt[2]+" "+mt[3]}return xe.source=function(Me){return arguments.length?(V=$r(Me),xe):V},xe.target=function(Me){return arguments.length?(ne=$r(Me),xe):ne},xe.projection=function(Me){return arguments.length?(ge=Me,xe):ge},xe},i.svg.diagonal.radial=function(){var V=i.svg.diagonal(),ne=_h,ge=V.projection;return V.projection=function(xe){return arguments.length?ge(function(Me){return function(){var Fe=Me.apply(this,arguments),Je=Fe[0],rt=Fe[1]-vt;return[Je*Math.cos(rt),Je*Math.sin(rt)]}}(ne=xe)):ne},V},i.svg.symbol=function(){var V=dd,ne=Gc;function ge(xe,Me){return(Dd.get(V.call(this,xe,Me))||rl)(ne.call(this,xe,Me))}return ge.type=function(xe){return arguments.length?(V=$r(xe),ge):V},ge.size=function(xe){return arguments.length?(ne=$r(xe),ge):ne},ge};var Dd=i.map({circle:rl,cross:function(V){var ne=Math.sqrt(V/5)/2;return"M"+-3*ne+","+-ne+"H"+-ne+"V"+-3*ne+"H"+ne+"V"+-ne+"H"+3*ne+"V"+ne+"H"+ne+"V"+3*ne+"H"+-ne+"V"+ne+"H"+-3*ne+"Z"},diamond:function(V){var ne=Math.sqrt(V/(2*fa)),ge=ne*fa;return"M0,"+-ne+"L"+ge+",0 0,"+ne+" "+-ge+",0Z"},square:function(V){var ne=Math.sqrt(V)/2;return"M"+-ne+","+-ne+"L"+ne+","+-ne+" "+ne+","+ne+" "+-ne+","+ne+"Z"},"triangle-down":function(V){var ne=Math.sqrt(V/Vi),ge=ne*Vi/2;return"M0,"+ge+"L"+ne+","+-ge+" "+-ne+","+-ge+"Z"},"triangle-up":function(V){var ne=Math.sqrt(V/Vi),ge=ne*Vi/2;return"M0,"+-ge+"L"+ne+","+ge+" "+-ne+","+ge+"Z"}});i.svg.symbolTypes=Dd.keys();var Vi=Math.sqrt(3),fa=Math.tan(30*bt);Te.transition=function(V){for(var ne,ge,xe=Jl||++kc,Me=El(V),Fe=[],Je=Bd||{time:Date.now(),ease:mc,delay:0,duration:250},rt=-1,dt=this.length;++rt0;)mt[--pn].call(V,xn);if(sn>=1)return Vt.event&&Vt.event.end.call(V,V.__data__,ne),--Et.count?delete Et[xe]:delete V[ge],1}Vt||(Fe=Me.time,Je=Yn(function(cn){var sn=Vt.delay;if(Je.t=sn+Fe,sn<=cn)return jt(cn-sn);Je.c=jt},0,Fe),Vt=Et[xe]={tween:new L,time:Fe,timer:Je,delay:Me.delay,duration:Me.duration,ease:Me.ease,index:ne},Me=null,++Et.count)}Qs.call=Te.call,Qs.empty=Te.empty,Qs.node=Te.node,Qs.size=Te.size,i.transition=function(V,ne){return V&&V.transition?Jl?V.transition(ne):V:i.selection().transition(V)},i.transition.prototype=Qs,Qs.select=function(V){var ne,ge,xe,Me=this.id,Fe=this.namespace,Je=[];V=Pe(V);for(var rt=-1,dt=this.length;++rtrect,.s>rect").attr("width",Fe[1]-Fe[0])}function Nt(sn){sn.select(".extent").attr("y",Je[0]),sn.selectAll(".extent,.e>rect,.w>rect").attr("height",Je[1]-Je[0])}function cn(){var sn,xn,pn=this,Ln=i.select(i.event.target),On=ge.of(pn,arguments),An=i.select(pn),Sn=Ln.datum(),rr=!/^(n|s)$/.test(Sn)&&xe,Dr=!/^(e|w)$/.test(Sn)&&Me,Pr=Ln.classed("extent"),Zr=qt(pn),Mo=i.mouse(pn),$o=i.select(a(pn)).on("keydown.brush",function(){i.event.keyCode==32&&(Pr||(sn=null,Mo[0]-=Fe[1],Mo[1]-=Je[1],Pr=2),he())}).on("keyup.brush",function(){i.event.keyCode==32&&Pr==2&&(Mo[0]+=Fe[1],Mo[1]+=Je[1],Pr=0,he())});if(i.event.changedTouches?$o.on("touchmove.brush",yi).on("touchend.brush",Hr):$o.on("mousemove.brush",yi).on("mouseup.brush",Hr),An.interrupt().selectAll("*").interrupt(),Pr)Mo[0]=Fe[0]-Mo[0],Mo[1]=Je[0]-Mo[1];else if(Sn){var vo=+/w$/.test(Sn),zo=+/^n/.test(Sn);xn=[Fe[1-vo]-Mo[0],Je[1-zo]-Mo[1]],Mo[0]=Fe[vo],Mo[1]=Je[zo]}else i.event.altKey&&(sn=Mo.slice());function yi(){var Lo=i.mouse(pn),ki=!1;xn&&(Lo[0]+=xn[0],Lo[1]+=xn[1]),Pr||(i.event.altKey?(sn||(sn=[(Fe[0]+Fe[1])/2,(Je[0]+Je[1])/2]),Mo[0]=Fe[+(Lo[0](Ae=1))return Ae;for(;feet?fe=Qe:Ae=Qe,Qe=.5*(Ae-fe)+fe}return Qe},p.prototype.solve=function(N,G){return this.sampleCurveY(this.solveCurveX(N,G))};var a=u;function u(N,G){this.x=N,this.y=G}u.prototype={clone:function(){return new u(this.x,this.y)},add:function(N){return this.clone()._add(N)},sub:function(N){return this.clone()._sub(N)},multByPoint:function(N){return this.clone()._multByPoint(N)},divByPoint:function(N){return this.clone()._divByPoint(N)},mult:function(N){return this.clone()._mult(N)},div:function(N){return this.clone()._div(N)},rotate:function(N){return this.clone()._rotate(N)},rotateAround:function(N,G){return this.clone()._rotateAround(N,G)},matMult:function(N){return this.clone()._matMult(N)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(N){return this.x===N.x&&this.y===N.y},dist:function(N){return Math.sqrt(this.distSqr(N))},distSqr:function(N){var G=N.x-this.x,fe=N.y-this.y;return G*G+fe*fe},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(N){return Math.atan2(this.y-N.y,this.x-N.x)},angleWith:function(N){return this.angleWithSep(N.x,N.y)},angleWithSep:function(N,G){return Math.atan2(this.x*G-this.y*N,this.x*N+this.y*G)},_matMult:function(N){var G=N[0]*this.x+N[1]*this.y,fe=N[2]*this.x+N[3]*this.y;return this.x=G,this.y=fe,this},_add:function(N){return this.x+=N.x,this.y+=N.y,this},_sub:function(N){return this.x-=N.x,this.y-=N.y,this},_mult:function(N){return this.x*=N,this.y*=N,this},_div:function(N){return this.x/=N,this.y/=N,this},_multByPoint:function(N){return this.x*=N.x,this.y*=N.y,this},_divByPoint:function(N){return this.x/=N.x,this.y/=N.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var N=this.y;return this.y=this.x,this.x=-N,this},_rotate:function(N){var G=Math.cos(N),fe=Math.sin(N),Ae=G*this.x-fe*this.y,Qe=fe*this.x+G*this.y;return this.x=Ae,this.y=Qe,this},_rotateAround:function(N,G){var fe=Math.cos(N),Ae=Math.sin(N),Qe=G.x+fe*(this.x-G.x)-Ae*(this.y-G.y),et=G.y+Ae*(this.x-G.x)+fe*(this.y-G.y);return this.x=Qe,this.y=et,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(N){return N instanceof u?N:Array.isArray(N)?new u(N[0],N[1]):N};var h=typeof self<"u"?self:{},m=Math.pow(2,53)-1;function v(N,G,fe,Ae){var Qe=new y(N,G,fe,Ae);return function(et){return Qe.solve(et)}}var _=v(.25,.1,.25,1);function S(N,G,fe){return Math.min(fe,Math.max(G,N))}function A(N,G,fe){var Ae=fe-G,Qe=((N-G)%Ae+Ae)%Ae+G;return Qe===G?fe:Qe}function x(N){for(var G=[],fe=arguments.length-1;fe-- >0;)G[fe]=arguments[fe+1];for(var Ae=0,Qe=G;Ae>G/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,N)}()}function E(N){return!!N&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(N)}function C(N,G){N.forEach(function(fe){G[fe]&&(G[fe]=G[fe].bind(G))})}function L(N,G){return N.indexOf(G,N.length-G.length)!==-1}function D(N,G,fe){var Ae={};for(var Qe in N)Ae[Qe]=G.call(fe||this,N[Qe],Qe,N);return Ae}function k(N,G,fe){var Ae={};for(var Qe in N)G.call(fe||this,N[Qe],Qe,N)&&(Ae[Qe]=N[Qe]);return Ae}function I(N){return Array.isArray(N)?N.map(I):typeof N=="object"&&N?D(N,I):N}var z={};function $(N){z[N]||(typeof console<"u"&&console.warn(N),z[N]=!0)}function Q(N,G,fe){return(fe.y-N.y)*(G.x-N.x)>(G.y-N.y)*(fe.x-N.x)}function j(N){for(var G=0,fe=0,Ae=N.length,Qe=Ae-1,et=void 0,ut=void 0;fe@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(Ae,Qe,et,ut){var Tt=et||ut;return G[Qe]=!Tt||Tt.toLowerCase(),""}),G["max-age"]){var fe=parseInt(G["max-age"],10);isNaN(fe)?delete G["max-age"]:G["max-age"]=fe}return G}var te=null;function W(N){if(te==null){var G=N.navigator?N.navigator.userAgent:null;te=!!N.safari||!(!G||!(/\b(iPad|iPhone|iPod)\b/.test(G)||G.match("Safari")&&!G.match("Chrome")))}return te}function K(N){try{var G=h[N];return G.setItem("_mapbox_test_",1),G.removeItem("_mapbox_test_"),!0}catch{return!1}}var oe,q,Y,ee,me=h.performance&&h.performance.now?h.performance.now.bind(h.performance):Date.now.bind(Date),he=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame,se=h.cancelAnimationFrame||h.mozCancelAnimationFrame||h.webkitCancelAnimationFrame||h.msCancelAnimationFrame,ae={now:me,frame:function(N){var G=he(N);return{cancel:function(){return se(G)}}},getImageData:function(N,G){G===void 0&&(G=0);var fe=h.document.createElement("canvas"),Ae=fe.getContext("2d");if(!Ae)throw new Error("failed to create canvas 2d context");return fe.width=N.width,fe.height=N.height,Ae.drawImage(N,0,0,N.width,N.height),Ae.getImageData(-G,-G,N.width+2*G,N.height+2*G)},resolveURL:function(N){return oe||(oe=h.document.createElement("a")),oe.href=N,oe.href},hardwareConcurrency:h.navigator&&h.navigator.hardwareConcurrency||4,get devicePixelRatio(){return h.devicePixelRatio},get prefersReducedMotion(){return!!h.matchMedia&&(q==null&&(q=h.matchMedia("(prefers-reduced-motion: reduce)")),q.matches)}},ce={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},de={supported:!1,testSupport:function(N){!ve&&ee&&(ye?_e(N):Y=N)}},ve=!1,ye=!1;function _e(N){var G=N.createTexture();N.bindTexture(N.TEXTURE_2D,G);try{if(N.texImage2D(N.TEXTURE_2D,0,N.RGBA,N.RGBA,N.UNSIGNED_BYTE,ee),N.isContextLost())return;de.supported=!0}catch{}N.deleteTexture(G),ve=!0}h.document&&((ee=h.document.createElement("img")).onload=function(){Y&&_e(Y),Y=null,ye=!0},ee.onerror=function(){ve=!0,Y=null},ee.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Se="01",Te=function(N,G){this._transformRequestFn=N,this._customAccessToken=G,this._createSkuToken()};function Pe(N){return N.indexOf("mapbox:")===0}Te.prototype._createSkuToken=function(){var N=function(){for(var G="",fe=0;fe<10;fe++)G+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Se,G].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=N.token,this._skuTokenExpiresAt=N.tokenExpiresAt},Te.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Te.prototype.transformRequest=function(N,G){return this._transformRequestFn&&this._transformRequestFn(N,G)||{url:N}},Te.prototype.normalizeStyleURL=function(N,G){if(!Pe(N))return N;var fe=He(N);return fe.path="/styles/v1"+fe.path,this._makeAPIURL(fe,this._customAccessToken||G)},Te.prototype.normalizeGlyphsURL=function(N,G){if(!Pe(N))return N;var fe=He(N);return fe.path="/fonts/v1"+fe.path,this._makeAPIURL(fe,this._customAccessToken||G)},Te.prototype.normalizeSourceURL=function(N,G){if(!Pe(N))return N;var fe=He(N);return fe.path="/v4/"+fe.authority+".json",fe.params.push("secure"),this._makeAPIURL(fe,this._customAccessToken||G)},Te.prototype.normalizeSpriteURL=function(N,G,fe,Ae){var Qe=He(N);return Pe(N)?(Qe.path="/styles/v1"+Qe.path+"/sprite"+G+fe,this._makeAPIURL(Qe,this._customAccessToken||Ae)):(Qe.path+=""+G+fe,Ve(Qe))},Te.prototype.normalizeTileURL=function(N,G){if(this._isSkuTokenExpired()&&this._createSkuToken(),N&&!Pe(N))return N;var fe=He(N),Ae=ae.devicePixelRatio>=2||G===512?"@2x":"",Qe=de.supported?".webp":"$1";fe.path=fe.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+Ae+Qe),fe.path=fe.path.replace(/^.+\/v4\//,"/"),fe.path="/v4"+fe.path;var et=this._customAccessToken||function(ut){for(var Tt=0,Bt=ut;Tt=0&&N.params.splice(Qe,1)}if(Ae.path!=="/"&&(N.path=""+Ae.path+N.path),!ce.REQUIRE_ACCESS_TOKEN)return Ve(N);if(!(G=G||ce.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+fe);if(G[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+fe);return N.params=N.params.filter(function(et){return et.indexOf("access_token")===-1}),N.params.push("access_token="+G),Ve(N)};var Ie=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function ze(N){return Ie.test(N)}var De=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function He(N){var G=N.match(De);if(!G)throw new Error("Unable to parse URL object");return{protocol:G[1],authority:G[2],path:G[3]||"/",params:G[4]?G[4].split("&"):[]}}function Ve(N){var G=N.params.length?"?"+N.params.join("&"):"";return N.protocol+"://"+N.authority+N.path+G}var $e="mapbox.eventData";function Oe(N){if(!N)return null;var G,fe=N.split(".");if(!fe||fe.length!==3)return null;try{return JSON.parse((G=fe[1],decodeURIComponent(h.atob(G).split("").map(function(Ae){return"%"+("00"+Ae.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch{return null}}var ke=function(N){this.type=N,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};ke.prototype.getStorageKey=function(N){var G,fe,Ae=Oe(ce.ACCESS_TOKEN);return G=Ae&&Ae.u?(fe=Ae.u,h.btoa(encodeURIComponent(fe).replace(/%([0-9A-F]{2})/g,function(Qe,et){return String.fromCharCode(+("0x"+et))}))):ce.ACCESS_TOKEN||"",N?$e+"."+N+":"+G:$e+":"+G},ke.prototype.fetchEventData=function(){var N=K("localStorage"),G=this.getStorageKey(),fe=this.getStorageKey("uuid");if(N)try{var Ae=h.localStorage.getItem(G);Ae&&(this.eventData=JSON.parse(Ae));var Qe=h.localStorage.getItem(fe);Qe&&(this.anonId=Qe)}catch{$("Unable to read from LocalStorage")}},ke.prototype.saveEventData=function(){var N=K("localStorage"),G=this.getStorageKey(),fe=this.getStorageKey("uuid");if(N)try{h.localStorage.setItem(fe,this.anonId),Object.keys(this.eventData).length>=1&&h.localStorage.setItem(G,JSON.stringify(this.eventData))}catch{$("Unable to write to LocalStorage")}},ke.prototype.processRequests=function(N){},ke.prototype.postEvent=function(N,G,fe,Ae){var Qe=this;if(ce.EVENTS_URL){var et=He(ce.EVENTS_URL);et.params.push("access_token="+(Ae||ce.ACCESS_TOKEN||""));var ut={event:this.type,created:new Date(N).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:w,skuId:Se,userId:this.anonId},Tt=G?x(ut,G):ut,Bt={url:Ve(et),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Tt])};this.pendingRequest=mn(Bt,function(rn){Qe.pendingRequest=null,fe(rn),Qe.saveEventData(),Qe.processRequests(Ae)})}},ke.prototype.queueRequest=function(N,G){this.queue.push(N),this.processRequests(G)};var Le,We,Ue=function(N){function G(){N.call(this,"map.load"),this.success={},this.skuToken=""}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.postMapLoadEvent=function(fe,Ae,Qe,et){this.skuToken=Qe,(ce.EVENTS_URL&&et||ce.ACCESS_TOKEN&&Array.isArray(fe)&&fe.some(function(ut){return Pe(ut)||ze(ut)}))&&this.queueRequest({id:Ae,timestamp:Date.now()},et)},G.prototype.processRequests=function(fe){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){var Qe=this.queue.shift(),et=Qe.id,ut=Qe.timestamp;et&&this.success[et]||(this.anonId||this.fetchEventData(),E(this.anonId)||(this.anonId=T()),this.postEvent(ut,{skuToken:this.skuToken},function(Tt){Tt||et&&(Ae.success[et]=!0)},fe))}},G}(ke),Ze=function(N){function G(fe){N.call(this,"appUserTurnstile"),this._customAccessToken=fe}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.postTurnstileEvent=function(fe,Ae){ce.EVENTS_URL&&ce.ACCESS_TOKEN&&Array.isArray(fe)&&fe.some(function(Qe){return Pe(Qe)||ze(Qe)})&&this.queueRequest(Date.now(),Ae)},G.prototype.processRequests=function(fe){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var Qe=Oe(ce.ACCESS_TOKEN),et=Qe?Qe.u:ce.ACCESS_TOKEN,ut=et!==this.eventData.tokenU;E(this.anonId)||(this.anonId=T(),ut=!0);var Tt=this.queue.shift();if(this.eventData.lastSuccess){var Bt=new Date(this.eventData.lastSuccess),rn=new Date(Tt),an=(Tt-this.eventData.lastSuccess)/864e5;ut=ut||an>=1||an<-1||Bt.getDate()!==rn.getDate()}else ut=!0;if(!ut)return this.processRequests();this.postEvent(Tt,{"enabled.telemetry":!1},function(_n){_n||(Ae.eventData.lastSuccess=Tt,Ae.eventData.tokenU=et)},fe)}},G}(ke),Xe=new Ze,tt=Xe.postTurnstileEvent.bind(Xe),Ee=new Ue,Ne=Ee.postMapLoadEvent.bind(Ee),je="mapbox-tiles",nt=500,ot=50,Ge=42e4;function ht(){h.caches&&!Le&&(Le=h.caches.open(je))}function pt(N,G,fe){if(ht(),Le){var Ae={status:G.status,statusText:G.statusText,headers:new h.Headers};G.headers.forEach(function(et,ut){return Ae.headers.set(ut,et)});var Qe=X(G.headers.get("Cache-Control")||"");Qe["no-store"]||(Qe["max-age"]&&Ae.headers.set("Expires",new Date(fe+1e3*Qe["max-age"]).toUTCString()),new Date(Ae.headers.get("Expires")).getTime()-feDate.now()&&!Bt["no-cache"]}(Qe);Ae.delete(fe),et&&Ae.put(fe,Qe.clone()),G(null,Qe,et)}).catch(G)}).catch(G)}var It,qt=1/0;function en(){return It==null&&(It=h.OffscreenCanvas&&new h.OffscreenCanvas(1,1).getContext("2d")&&typeof h.createImageBitmap=="function"),It}var Gt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(Gt);var Ct=function(N){function G(fe,Ae,Qe){Ae===401&&ze(Qe)&&(fe+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),N.call(this,fe),this.status=Ae,this.url=Qe,this.name=this.constructor.name,this.message=fe}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},G}(Error),_t=U()?function(){return self.worker&&self.worker.referrer}:function(){return(h.location.protocol==="blob:"?h.parent:h).location.href};function nn(N,G){var fe,Ae=new h.AbortController,Qe=new h.Request(N.url,{method:N.method||"GET",body:N.body,credentials:N.credentials,headers:N.headers,referrer:_t(),signal:Ae.signal}),et=!1,ut=!1,Tt=(fe=Qe.url).indexOf("sku=")>0&&ze(fe);N.type==="json"&&Qe.headers.set("Accept","application/json");var Bt=function(an,_n,Dn){if(!ut){if(an&&an.message!=="SecurityError"&&$(an),_n&&Dn)return rn(_n);var Cn=Date.now();h.fetch(Qe).then(function(Jn){if(Jn.ok){var lr=Tt?Jn.clone():null;return rn(Jn,lr,Cn)}return G(new Ct(Jn.statusText,Jn.status,N.url))}).catch(function(Jn){Jn.code!==20&&G(new Error(Jn.message))})}},rn=function(an,_n,Dn){(N.type==="arrayBuffer"?an.arrayBuffer():N.type==="json"?an.json():an.text()).then(function(Cn){ut||(_n&&Dn&&pt(Qe,_n,Dn),et=!0,G(null,Cn,an.headers.get("Cache-Control"),an.headers.get("Expires")))}).catch(function(Cn){ut||G(new Error(Cn.message))})};return Tt?Dt(Qe,Bt):Bt(null,null),{cancel:function(){ut=!0,et||Ae.abort()}}}var gn=function(N,G){if(fe=N.url,!(/^file:/.test(fe)||/^file:/.test(_t())&&!/^\w+:/.test(fe))){if(h.fetch&&h.Request&&h.AbortController&&h.Request.prototype.hasOwnProperty("signal"))return nn(N,G);if(U()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",N,G,void 0,!0)}var fe;return function(Ae,Qe){var et=new h.XMLHttpRequest;for(var ut in et.open(Ae.method||"GET",Ae.url,!0),Ae.type==="arrayBuffer"&&(et.responseType="arraybuffer"),Ae.headers)et.setRequestHeader(ut,Ae.headers[ut]);return Ae.type==="json"&&(et.responseType="text",et.setRequestHeader("Accept","application/json")),et.withCredentials=Ae.credentials==="include",et.onerror=function(){Qe(new Error(et.statusText))},et.onload=function(){if((et.status>=200&&et.status<300||et.status===0)&&et.response!==null){var Tt=et.response;if(Ae.type==="json")try{Tt=JSON.parse(et.response)}catch(Bt){return Qe(Bt)}Qe(null,Tt,et.getResponseHeader("Cache-Control"),et.getResponseHeader("Expires"))}else Qe(new Ct(et.statusText,et.status,Ae.url))},et.send(Ae.body),{cancel:function(){return et.abort()}}}(N,G)},bn=function(N,G){return gn(x(N,{type:"arrayBuffer"}),G)},mn=function(N,G){return gn(x(N,{method:"POST"}),G)},vt,bt,lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";vt=[],bt=0;var yt=function(N,G){if(de.supported&&(N.headers||(N.headers={}),N.headers.accept="image/webp,*/*"),bt>=ce.MAX_PARALLEL_IMAGE_REQUESTS){var fe={requestParameters:N,callback:G,cancelled:!1,cancel:function(){this.cancelled=!0}};return vt.push(fe),fe}bt++;var Ae=!1,Qe=function(){if(!Ae)for(Ae=!0,bt--;vt.length&&bt0||this._oneTimeListeners&&this._oneTimeListeners[N]&&this._oneTimeListeners[N].length>0||this._eventedParent&&this._eventedParent.listens(N)},Lt.prototype.setEventedParent=function(N,G){return this._eventedParent=N,this._eventedParentData=G,this};var xt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Ht=function(N,G,fe,Ae){this.message=(N?N+": ":"")+fe,Ae&&(this.identifier=Ae),G!=null&&G.__line__&&(this.line=G.__line__)};function Xt(N){var G=N.key,fe=N.value;return fe?[new Ht(G,fe,"constants have been deprecated as of v8")]:[]}function Yt(N){for(var G=[],fe=arguments.length-1;fe-- >0;)G[fe]=arguments[fe+1];for(var Ae=0,Qe=G;Ae":N.itemType.kind==="value"?"array":"array<"+G+">"}return N.kind}var ir=[fn,dn,vn,Nn,er,xr,En,ar(In),Sr];function Wn(N,G){if(G.kind==="error")return null;if(N.kind==="array"){if(G.kind==="array"&&(G.N===0&&G.itemType.kind==="value"||!Wn(N.itemType,G.itemType))&&(typeof N.N!="number"||N.N===G.N))return null}else{if(N.kind===G.kind)return null;if(N.kind==="value"){for(var fe=0,Ae=ir;fe255?255:Bt}function Qe(Bt){return Bt<0?0:Bt>1?1:Bt}function et(Bt){return Bt[Bt.length-1]==="%"?Ae(parseFloat(Bt)/100*255):Ae(parseInt(Bt))}function ut(Bt){return Bt[Bt.length-1]==="%"?Qe(parseFloat(Bt)/100):Qe(parseFloat(Bt))}function Tt(Bt,rn,an){return an<0?an+=1:an>1&&(an-=1),6*an<1?Bt+(rn-Bt)*an*6:2*an<1?rn:3*an<2?Bt+(rn-Bt)*(2/3-an)*6:Bt}try{G.parseCSSColor=function(Bt){var rn,an=Bt.replace(/ /g,"").toLowerCase();if(an in fe)return fe[an].slice();if(an[0]==="#")return an.length===4?(rn=parseInt(an.substr(1),16))>=0&&rn<=4095?[(3840&rn)>>4|(3840&rn)>>8,240&rn|(240&rn)>>4,15&rn|(15&rn)<<4,1]:null:an.length===7&&(rn=parseInt(an.substr(1),16))>=0&&rn<=16777215?[(16711680&rn)>>16,(65280&rn)>>8,255&rn,1]:null;var _n=an.indexOf("("),Dn=an.indexOf(")");if(_n!==-1&&Dn+1===an.length){var Cn=an.substr(0,_n),Jn=an.substr(_n+1,Dn-(_n+1)).split(","),lr=1;switch(Cn){case"rgba":if(Jn.length!==4)return null;lr=ut(Jn.pop());case"rgb":return Jn.length!==3?null:[et(Jn[0]),et(Jn[1]),et(Jn[2]),lr];case"hsla":if(Jn.length!==4)return null;lr=ut(Jn.pop());case"hsl":if(Jn.length!==3)return null;var Ar=(parseFloat(Jn[0])%360+360)%360/360,Or=ut(Jn[1]),jr=ut(Jn[2]),Jr=jr<=.5?jr*(Or+1):jr+Or-jr*Or,uo=2*jr-Jr;return[Ae(255*Tt(uo,Jr,Ar+1/3)),Ae(255*Tt(uo,Jr,Ar)),Ae(255*Tt(uo,Jr,Ar-1/3)),lr];default:return null}}return null}}catch{}}),zr=Ir.parseCSSColor,Fr=function(N,G,fe,Ae){Ae===void 0&&(Ae=1),this.r=N,this.g=G,this.b=fe,this.a=Ae};Fr.parse=function(N){if(N){if(N instanceof Fr)return N;if(typeof N=="string"){var G=zr(N);if(G)return new Fr(G[0]/255*G[3],G[1]/255*G[3],G[2]/255*G[3],G[3])}}},Fr.prototype.toString=function(){var N=this.toArray(),G=N[0],fe=N[1],Ae=N[2],Qe=N[3];return"rgba("+Math.round(G)+","+Math.round(fe)+","+Math.round(Ae)+","+Qe+")"},Fr.prototype.toArray=function(){var N=this,G=N.r,fe=N.g,Ae=N.b,Qe=N.a;return Qe===0?[0,0,0,0]:[255*G/Qe,255*fe/Qe,255*Ae/Qe,Qe]},Fr.black=new Fr(0,0,0,1),Fr.white=new Fr(1,1,1,1),Fr.transparent=new Fr(0,0,0,0),Fr.red=new Fr(1,0,0,1);var Rr=function(N,G,fe){this.sensitivity=N?G?"variant":"case":G?"accent":"base",this.locale=fe,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Rr.prototype.compare=function(N,G){return this.collator.compare(N,G)},Rr.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $r=function(N,G,fe,Ae,Qe){this.text=N,this.image=G,this.scale=fe,this.fontStack=Ae,this.textColor=Qe},Kr=function(N){this.sections=N};Kr.fromString=function(N){return new Kr([new $r(N,null,null,null,null)])},Kr.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(N){return N.text.length!==0||N.image&&N.image.name.length!==0})},Kr.factory=function(N){return N instanceof Kr?N:Kr.fromString(N)},Kr.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(N){return N.text}).join("")},Kr.prototype.serialize=function(){for(var N=["format"],G=0,fe=this.sections;G=0&&N<=255&&typeof G=="number"&&G>=0&&G<=255&&typeof fe=="number"&&fe>=0&&fe<=255?Ae===void 0||typeof Ae=="number"&&Ae>=0&&Ae<=1?null:"Invalid rgba value ["+[N,G,fe,Ae].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof Ae=="number"?[N,G,fe,Ae]:[N,G,fe]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function So(N){if(N===null||typeof N=="string"||typeof N=="boolean"||typeof N=="number"||N instanceof Fr||N instanceof Rr||N instanceof Kr||N instanceof Co)return!0;if(Array.isArray(N)){for(var G=0,fe=N;G2){var Tt=N[1];if(typeof Tt!="string"||!(Tt in br)||Tt==="object")return G.error('The item type argument of "array" must be one of string, number, boolean',1);et=br[Tt],Ae++}else et=In;if(N.length>3){if(N[2]!==null&&(typeof N[2]!="number"||N[2]<0||N[2]!==Math.floor(N[2])))return G.error('The length argument to "array" must be a positive integer literal',2);ut=N[2],Ae++}fe=ar(et,ut)}else fe=br[Qe];for(var Bt=[];Ae1)&&G.push(Ae)}}return G.concat(this.args.map(function(Qe){return Qe.serialize()}))};var Cr=function(N){this.type=xr,this.sections=N};Cr.parse=function(N,G){if(N.length<2)return G.error("Expected at least one argument.");var fe=N[1];if(!Array.isArray(fe)&&typeof fe=="object")return G.error("First argument must be an image or text section.");for(var Ae=[],Qe=!1,et=1;et<=N.length-1;++et){var ut=N[et];if(Qe&&typeof ut=="object"&&!Array.isArray(ut)){Qe=!1;var Tt=null;if(ut["font-scale"]&&!(Tt=G.parse(ut["font-scale"],1,dn)))return null;var Bt=null;if(ut["text-font"]&&!(Bt=G.parse(ut["text-font"],1,ar(vn))))return null;var rn=null;if(ut["text-color"]&&!(rn=G.parse(ut["text-color"],1,er)))return null;var an=Ae[Ae.length-1];an.scale=Tt,an.font=Bt,an.textColor=rn}else{var _n=G.parse(N[et],1,In);if(!_n)return null;var Dn=_n.type.kind;if(Dn!=="string"&&Dn!=="value"&&Dn!=="null"&&Dn!=="resolvedImage")return G.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Qe=!0,Ae.push({content:_n,scale:null,font:null,textColor:null})}}return new Cr(Ae)},Cr.prototype.evaluate=function(N){return new Kr(this.sections.map(function(G){var fe=G.content.evaluate(N);return go(fe)===Sr?new $r("",fe,null,null,null):new $r(li(fe),null,G.scale?G.scale.evaluate(N):null,G.font?G.font.evaluate(N).join(","):null,G.textColor?G.textColor.evaluate(N):null)}))},Cr.prototype.eachChild=function(N){for(var G=0,fe=this.sections;G-1),fe},io.prototype.eachChild=function(N){N(this.input)},io.prototype.outputDefined=function(){return!1},io.prototype.serialize=function(){return["image",this.input.serialize()]};var Qr={"to-boolean":Nn,"to-color":er,"to-number":dn,"to-string":vn},Wr=function(N,G){this.type=N,this.args=G};Wr.parse=function(N,G){if(N.length<2)return G.error("Expected at least one argument.");var fe=N[0];if((fe==="to-boolean"||fe==="to-string")&&N.length!==2)return G.error("Expected one argument.");for(var Ae=Qr[fe],Qe=[],et=1;et4?"Invalid rbga value "+JSON.stringify(G)+": expected an array containing either three or four numeric values.":so(G[0],G[1],G[2],G[3])))return new Fr(G[0]/255,G[1]/255,G[2]/255,G[3])}throw new Yn(fe||"Could not parse color from value '"+(typeof G=="string"?G:String(JSON.stringify(G)))+"'")}if(this.type.kind==="number"){for(var ut=null,Tt=0,Bt=this.args;Tt=G[2]||N[1]<=G[1]||N[3]>=G[3])}function gr(N,G){var fe,Ae=(180+N[0])/360,Qe=(fe=N[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+fe*Math.PI/360)))/360),et=Math.pow(2,G.z);return[Math.round(Ae*et*zn),Math.round(Qe*et*zn)]}function vr(N,G,fe){return G[1]>N[1]!=fe[1]>N[1]&&N[0]<(fe[0]-G[0])*(N[1]-G[1])/(fe[1]-G[1])+G[0]}function nr(N,G){for(var fe=!1,Ae=0,Qe=G.length;Ae0&&_n<0||an<0&&_n>0}function tr(N,G,fe){for(var Ae=0,Qe=fe;Aefe[2]){var Qe=.5*Ae,et=N[0]-fe[0]>Qe?-Ae:fe[0]-N[0]>Qe?Ae:0;et===0&&(et=N[0]-fe[2]>Qe?-Ae:fe[2]-N[0]>Qe?Ae:0),N[0]+=et}Zn(G,N)}function _o(N,G,fe,Ae){for(var Qe=Math.pow(2,Ae.z)*zn,et=[Ae.x*zn,Ae.y*zn],ut=[],Tt=0,Bt=N;Tt=0)return!1;var fe=!0;return N.eachChild(function(Ae){fe&&!Go(Ae,G)&&(fe=!1)}),fe}Eo.parse=function(N,G){if(N.length!==2)return G.error("'within' expression requires exactly one argument, but found "+(N.length-1)+" instead.");if(So(N[1])){var fe=N[1];if(fe.type==="FeatureCollection")for(var Ae=0;AeG))throw new Yn("Input is not a number.");ut=Tt-1}return 0}qo.prototype.parse=function(N,G,fe,Ae,Qe){return Qe===void 0&&(Qe={}),G?this.concat(G,fe,Ae)._parse(N,Qe):this._parse(N,Qe)},qo.prototype._parse=function(N,G){function fe(rn,an,_n){return _n==="assert"?new dr(an,[rn]):_n==="coerce"?new Wr(an,[rn]):rn}if(N!==null&&typeof N!="string"&&typeof N!="boolean"&&typeof N!="number"||(N=["literal",N]),Array.isArray(N)){if(N.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Ae=N[0];if(typeof Ae!="string")return this.error("Expression name must be a string, but found "+typeof Ae+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Qe=this.registry[Ae];if(Qe){var et=Qe.parse(N,this);if(!et)return null;if(this.expectedType){var ut=this.expectedType,Tt=et.type;if(ut.kind!=="string"&&ut.kind!=="number"&&ut.kind!=="boolean"&&ut.kind!=="object"&&ut.kind!=="array"||Tt.kind!=="value")if(ut.kind!=="color"&&ut.kind!=="formatted"&&ut.kind!=="resolvedImage"||Tt.kind!=="value"&&Tt.kind!=="string"){if(this.checkSubtype(ut,Tt))return null}else et=fe(et,ut,G.typeAnnotation||"coerce");else et=fe(et,ut,G.typeAnnotation||"assert")}if(!(et instanceof Pn)&&et.type.kind!=="resolvedImage"&&Ao(et)){var Bt=new Bn;try{et=new Pn(et.type,et.evaluate(Bt))}catch(rn){return this.error(rn.message),null}}return et}return this.error('Unknown expression "'+Ae+'". If you wanted a literal array, use ["literal", [...]].',0)}return N===void 0?this.error("'undefined' value invalid. Use null instead."):typeof N=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof N+" instead.")},qo.prototype.concat=function(N,G,fe){var Ae=typeof N=="number"?this.path.concat(N):this.path,Qe=fe?this.scope.concat(fe):this.scope;return new qo(this.registry,Ae,G||null,Qe,this.errors)},qo.prototype.error=function(N){for(var G=[],fe=arguments.length-1;fe-- >0;)G[fe]=arguments[fe+1];var Ae=""+this.key+G.map(function(Qe){return"["+Qe+"]"}).join("");this.errors.push(new tn(Ae,N))},qo.prototype.checkSubtype=function(N,G){var fe=Wn(N,G);return fe&&this.error(fe),fe};var ko=function(N,G,fe){this.type=N,this.input=G,this.labels=[],this.outputs=[];for(var Ae=0,Qe=fe;Ae=ut)return G.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Bt);var an=G.parse(Tt,rn,Qe);if(!an)return null;Qe=Qe||an.type,Ae.push([ut,an])}return new ko(Qe,fe,Ae)},ko.prototype.evaluate=function(N){var G=this.labels,fe=this.outputs;if(G.length===1)return fe[0].evaluate(N);var Ae=this.input.evaluate(N);if(Ae<=G[0])return fe[0].evaluate(N);var Qe=G.length;return Ae>=G[Qe-1]?fe[Qe-1].evaluate(N):fe[oi(G,Ae)].evaluate(N)},ko.prototype.eachChild=function(N){N(this.input);for(var G=0,fe=this.outputs;G0&&N.push(this.labels[G]),N.push(this.outputs[G].serialize());return N};var mo=Object.freeze({__proto__:null,number:ra,color:function(N,G,fe){return new Fr(ra(N.r,G.r,fe),ra(N.g,G.g,fe),ra(N.b,G.b,fe),ra(N.a,G.a,fe))},array:function(N,G,fe){return N.map(function(Ae,Qe){return ra(Ae,G[Qe],fe)})}}),Aa=.95047,Xl=1,Na=1.08883,cs=4/29,wc=6/29,ma=3*wc*wc,Ku=wc*wc*wc,qc=Math.PI/180,Yd=180/Math.PI;function Ql(N){return N>Ku?Math.pow(N,.3333333333333333):N/ma+cs}function Ed(N){return N>wc?N*N*N:ma*(N-cs)}function Nf(N){return 255*(N<=.0031308?12.92*N:1.055*Math.pow(N,.4166666666666667)-.055)}function mm(N){return(N/=255)<=.04045?N/12.92:Math.pow((N+.055)/1.055,2.4)}function Ws(N){var G=mm(N.r),fe=mm(N.g),Ae=mm(N.b),Qe=Ql((.4124564*G+.3575761*fe+.1804375*Ae)/Aa),et=Ql((.2126729*G+.7151522*fe+.072175*Ae)/Xl);return{l:116*et-16,a:500*(Qe-et),b:200*(et-Ql((.0193339*G+.119192*fe+.9503041*Ae)/Na)),alpha:N.a}}function gm(N){var G=(N.l+16)/116,fe=isNaN(N.a)?G:G+N.a/500,Ae=isNaN(N.b)?G:G-N.b/200;return G=Xl*Ed(G),fe=Aa*Ed(fe),Ae=Na*Ed(Ae),new Fr(Nf(3.2404542*fe-1.5371385*G-.4985314*Ae),Nf(-.969266*fe+1.8760108*G+.041556*Ae),Nf(.0556434*fe-.2040259*G+1.0572252*Ae),N.alpha)}function Gl(N,G,fe){var Ae=G-N;return N+fe*(Ae>180||Ae<-180?Ae-360*Math.round(Ae/360):Ae)}var pc={forward:Ws,reverse:gm,interpolate:function(N,G,fe){return{l:ra(N.l,G.l,fe),a:ra(N.a,G.a,fe),b:ra(N.b,G.b,fe),alpha:ra(N.alpha,G.alpha,fe)}}},Cu={forward:function(N){var G=Ws(N),fe=G.l,Ae=G.a,Qe=G.b,et=Math.atan2(Qe,Ae)*Yd;return{h:et<0?et+360:et,c:Math.sqrt(Ae*Ae+Qe*Qe),l:fe,alpha:N.a}},reverse:function(N){var G=N.h*qc,fe=N.c;return gm({l:N.l,a:Math.cos(G)*fe,b:Math.sin(G)*fe,alpha:N.alpha})},interpolate:function(N,G,fe){return{h:Gl(N.h,G.h,fe),c:ra(N.c,G.c,fe),l:ra(N.l,G.l,fe),alpha:ra(N.alpha,G.alpha,fe)}}},yl=Object.freeze({__proto__:null,lab:pc,hcl:Cu}),sa=function(N,G,fe,Ae,Qe){this.type=N,this.operator=G,this.interpolation=fe,this.input=Ae,this.labels=[],this.outputs=[];for(var et=0,ut=Qe;et1}))return G.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Ae={name:"cubic-bezier",controlPoints:Tt}}if(N.length-1<4)return G.error("Expected at least 4 arguments, but found only "+(N.length-1)+".");if((N.length-1)%2!=0)return G.error("Expected an even number of arguments.");if(!(Qe=G.parse(Qe,2,dn)))return null;var Bt=[],rn=null;fe==="interpolate-hcl"||fe==="interpolate-lab"?rn=er:G.expectedType&&G.expectedType.kind!=="value"&&(rn=G.expectedType);for(var an=0;an=_n)return G.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Cn);var lr=G.parse(Dn,Jn,rn);if(!lr)return null;rn=rn||lr.type,Bt.push([_n,lr])}return rn.kind==="number"||rn.kind==="color"||rn.kind==="array"&&rn.itemType.kind==="number"&&typeof rn.N=="number"?new sa(rn,fe,Ae,Qe,Bt):G.error("Type "+Fn(rn)+" is not interpolatable.")},sa.prototype.evaluate=function(N){var G=this.labels,fe=this.outputs;if(G.length===1)return fe[0].evaluate(N);var Ae=this.input.evaluate(N);if(Ae<=G[0])return fe[0].evaluate(N);var Qe=G.length;if(Ae>=G[Qe-1])return fe[Qe-1].evaluate(N);var et=oi(G,Ae),ut=G[et],Tt=G[et+1],Bt=sa.interpolationFactor(this.interpolation,Ae,ut,Tt),rn=fe[et].evaluate(N),an=fe[et+1].evaluate(N);return this.operator==="interpolate"?mo[this.type.kind.toLowerCase()](rn,an,Bt):this.operator==="interpolate-hcl"?Cu.reverse(Cu.interpolate(Cu.forward(rn),Cu.forward(an),Bt)):pc.reverse(pc.interpolate(pc.forward(rn),pc.forward(an),Bt))},sa.prototype.eachChild=function(N){N(this.input);for(var G=0,fe=this.outputs;G=fe.length)throw new Yn("Array index out of bounds: "+G+" > "+(fe.length-1)+".");if(G!==Math.floor(G))throw new Yn("Array index must be an integer, but found "+G+" instead.");return fe[G]},iu.prototype.eachChild=function(N){N(this.index),N(this.input)},iu.prototype.outputDefined=function(){return!1},iu.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var mc=function(N,G){this.type=Nn,this.needle=N,this.haystack=G};mc.parse=function(N,G){if(N.length!==3)return G.error("Expected 2 arguments, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1,In),Ae=G.parse(N[2],2,In);return fe&&Ae?Kn(fe.type,[Nn,vn,dn,fn,In])?new mc(fe,Ae):G.error("Expected first argument to be of type boolean, string, number or null, but found "+Fn(fe.type)+" instead"):null},mc.prototype.evaluate=function(N){var G=this.needle.evaluate(N),fe=this.haystack.evaluate(N);if(!fe)return!1;if(!_r(G,["boolean","string","number","null"]))throw new Yn("Expected first argument to be of type boolean, string, number or null, but found "+Fn(go(G))+" instead.");if(!_r(fe,["string","array"]))throw new Yn("Expected second argument to be of type array or string, but found "+Fn(go(fe))+" instead.");return fe.indexOf(G)>=0},mc.prototype.eachChild=function(N){N(this.needle),N(this.haystack)},mc.prototype.outputDefined=function(){return!0},mc.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ss=function(N,G,fe){this.type=dn,this.needle=N,this.haystack=G,this.fromIndex=fe};Ss.parse=function(N,G){if(N.length<=2||N.length>=5)return G.error("Expected 3 or 4 arguments, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1,In),Ae=G.parse(N[2],2,In);if(!fe||!Ae)return null;if(!Kn(fe.type,[Nn,vn,dn,fn,In]))return G.error("Expected first argument to be of type boolean, string, number or null, but found "+Fn(fe.type)+" instead");if(N.length===4){var Qe=G.parse(N[3],3,dn);return Qe?new Ss(fe,Ae,Qe):null}return new Ss(fe,Ae)},Ss.prototype.evaluate=function(N){var G=this.needle.evaluate(N),fe=this.haystack.evaluate(N);if(!_r(G,["boolean","string","number","null"]))throw new Yn("Expected first argument to be of type boolean, string, number or null, but found "+Fn(go(G))+" instead.");if(!_r(fe,["string","array"]))throw new Yn("Expected second argument to be of type array or string, but found "+Fn(go(fe))+" instead.");if(this.fromIndex){var Ae=this.fromIndex.evaluate(N);return fe.indexOf(G,Ae)}return fe.indexOf(G)},Ss.prototype.eachChild=function(N){N(this.needle),N(this.haystack),this.fromIndex&&N(this.fromIndex)},Ss.prototype.outputDefined=function(){return!1},Ss.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var N=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),N]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var $f=function(N,G,fe,Ae,Qe,et){this.inputType=N,this.type=G,this.input=fe,this.cases=Ae,this.outputs=Qe,this.otherwise=et};$f.parse=function(N,G){if(N.length<5)return G.error("Expected at least 4 arguments, but found only "+(N.length-1)+".");if(N.length%2!=1)return G.error("Expected an even number of arguments.");var fe,Ae;G.expectedType&&G.expectedType.kind!=="value"&&(Ae=G.expectedType);for(var Qe={},et=[],ut=2;utNumber.MAX_SAFE_INTEGER)return rn.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Dn=="number"&&Math.floor(Dn)!==Dn)return rn.error("Numeric branch labels must be integer values.");if(fe){if(rn.checkSubtype(fe,go(Dn)))return null}else fe=go(Dn);if(Qe[String(Dn)]!==void 0)return rn.error("Branch labels must be unique.");Qe[String(Dn)]=et.length}var Cn=G.parse(Bt,ut,Ae);if(!Cn)return null;Ae=Ae||Cn.type,et.push(Cn)}var Jn=G.parse(N[1],1,In);if(!Jn)return null;var lr=G.parse(N[N.length-1],N.length-1,Ae);return lr?Jn.type.kind!=="value"&&G.concat(1).checkSubtype(fe,Jn.type)?null:new $f(fe,Ae,Jn,Qe,et,lr):null},$f.prototype.evaluate=function(N){var G=this.input.evaluate(N);return(go(G)===this.inputType&&this.outputs[this.cases[G]]||this.otherwise).evaluate(N)},$f.prototype.eachChild=function(N){N(this.input),this.outputs.forEach(N),N(this.otherwise)},$f.prototype.outputDefined=function(){return this.outputs.every(function(N){return N.outputDefined()})&&this.otherwise.outputDefined()},$f.prototype.serialize=function(){for(var N=this,G=["match",this.input.serialize()],fe=[],Ae={},Qe=0,et=Object.keys(this.cases).sort();Qe=5)return G.error("Expected 3 or 4 arguments, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1,In),Ae=G.parse(N[2],2,dn);if(!fe||!Ae)return null;if(!Kn(fe.type,[ar(In),vn,In]))return G.error("Expected first argument to be of type array or string, but found "+Fn(fe.type)+" instead");if(N.length===4){var Qe=G.parse(N[3],3,dn);return Qe?new Ju(fe.type,fe,Ae,Qe):null}return new Ju(fe.type,fe,Ae)},Ju.prototype.evaluate=function(N){var G=this.input.evaluate(N),fe=this.beginIndex.evaluate(N);if(!_r(G,["string","array"]))throw new Yn("Expected first argument to be of type array or string, but found "+Fn(go(G))+" instead.");if(this.endIndex){var Ae=this.endIndex.evaluate(N);return G.slice(fe,Ae)}return G.slice(fe)},Ju.prototype.eachChild=function(N){N(this.input),N(this.beginIndex),this.endIndex&&N(this.endIndex)},Ju.prototype.outputDefined=function(){return!1},Ju.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var N=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),N]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var uc=ef("==",function(N,G,fe){return G===fe},Es),ad=ef("!=",function(N,G,fe){return G!==fe},function(N,G,fe,Ae){return!Es(0,G,fe,Ae)}),Vf=ef("<",function(N,G,fe){return G",function(N,G,fe){return G>fe},function(N,G,fe,Ae){return Ae.compare(G,fe)>0}),sd=ef("<=",function(N,G,fe){return G<=fe},function(N,G,fe,Ae){return Ae.compare(G,fe)<=0}),Mp=ef(">=",function(N,G,fe){return G>=fe},function(N,G,fe,Ae){return Ae.compare(G,fe)>=0}),Xd=function(N,G,fe,Ae,Qe){this.type=vn,this.number=N,this.locale=G,this.currency=fe,this.minFractionDigits=Ae,this.maxFractionDigits=Qe};Xd.parse=function(N,G){if(N.length!==3)return G.error("Expected two arguments.");var fe=G.parse(N[1],1,dn);if(!fe)return null;var Ae=N[2];if(typeof Ae!="object"||Array.isArray(Ae))return G.error("NumberFormat options argument must be an object.");var Qe=null;if(Ae.locale&&!(Qe=G.parse(Ae.locale,1,vn)))return null;var et=null;if(Ae.currency&&!(et=G.parse(Ae.currency,1,vn)))return null;var ut=null;if(Ae["min-fraction-digits"]&&!(ut=G.parse(Ae["min-fraction-digits"],1,dn)))return null;var Tt=null;return Ae["max-fraction-digits"]&&!(Tt=G.parse(Ae["max-fraction-digits"],1,dn))?null:new Xd(fe,Qe,et,ut,Tt)},Xd.prototype.evaluate=function(N){return new Intl.NumberFormat(this.locale?this.locale.evaluate(N):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(N):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(N):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(N):void 0}).format(this.number.evaluate(N))},Xd.prototype.eachChild=function(N){N(this.number),this.locale&&N(this.locale),this.currency&&N(this.currency),this.minFractionDigits&&N(this.minFractionDigits),this.maxFractionDigits&&N(this.maxFractionDigits)},Xd.prototype.outputDefined=function(){return!1},Xd.prototype.serialize=function(){var N={};return this.locale&&(N.locale=this.locale.serialize()),this.currency&&(N.currency=this.currency.serialize()),this.minFractionDigits&&(N["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(N["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),N]};var yf=function(N){this.type=dn,this.input=N};yf.parse=function(N,G){if(N.length!==2)return G.error("Expected 1 argument, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1);return fe?fe.type.kind!=="array"&&fe.type.kind!=="string"&&fe.type.kind!=="value"?G.error("Expected argument of type string or array, but found "+Fn(fe.type)+" instead."):new yf(fe):null},yf.prototype.evaluate=function(N){var G=this.input.evaluate(N);if(typeof G=="string"||Array.isArray(G))return G.length;throw new Yn("Expected value to be of type string or array, but found "+Fn(go(G))+" instead.")},yf.prototype.eachChild=function(N){N(this.input)},yf.prototype.outputDefined=function(){return!1},yf.prototype.serialize=function(){var N=["length"];return this.eachChild(function(G){N.push(G.serialize())}),N};var mh={"==":uc,"!=":ad,">":gc,"<":Vf,">=":Mp,"<=":sd,array:dr,at:iu,boolean:dr,case:vf,coalesce:hu,collator:hn,format:Cr,image:io,in:mc,"index-of":Ss,interpolate:sa,"interpolate-hcl":sa,"interpolate-lab":sa,length:yf,let:ju,literal:Pn,match:$f,number:dr,"number-format":Xd,object:dr,slice:Ju,step:ko,string:dr,"to-boolean":Wr,"to-color":Wr,"to-number":Wr,"to-string":Wr,var:po,within:Eo};function ld(N,G){var fe=G[0],Ae=G[1],Qe=G[2],et=G[3];fe=fe.evaluate(N),Ae=Ae.evaluate(N),Qe=Qe.evaluate(N);var ut=et?et.evaluate(N):1,Tt=so(fe,Ae,Qe,ut);if(Tt)throw new Yn(Tt);return new Fr(fe/255*ut,Ae/255*ut,Qe/255*ut,ut)}function Vh(N,G){return N in G}function bf(N,G){var fe=G[N];return fe===void 0?null:fe}function tf(N){return{type:N}}function Au(N){return{result:"success",value:N}}function xf(N){return{result:"error",value:N}}function cd(N){return N["property-type"]==="data-driven"||N["property-type"]==="cross-faded-data-driven"}function nf(N){return!!N.expression&&N.expression.parameters.indexOf("zoom")>-1}function gh(N){return!!N.expression&&N.expression.interpolated}function rs(N){return N instanceof Number?"number":N instanceof String?"string":N instanceof Boolean?"boolean":Array.isArray(N)?"array":N===null?"null":typeof N}function ep(N){return typeof N=="object"&&N!==null&&!Array.isArray(N)}function Ep(N){return N}function vm(N,G){var fe,Ae,Qe,et=G.type==="color",ut=N.stops&&typeof N.stops[0][0]=="object",Tt=ut||N.property!==void 0,Bt=ut||!Tt,rn=N.type||(gh(G)?"exponential":"interval");if(et&&((N=Yt({},N)).stops&&(N.stops=N.stops.map(function(ni){return[ni[0],Fr.parse(ni[1])]})),N.default?N.default=Fr.parse(N.default):N.default=Fr.parse(G.default)),N.colorSpace&&N.colorSpace!=="rgb"&&!yl[N.colorSpace])throw new Error("Unknown color space: "+N.colorSpace);if(rn==="exponential")fe=Pp;else if(rn==="interval")fe=sr;else if(rn==="categorical"){fe=M0,Ae=Object.create(null);for(var an=0,_n=N.stops;an<_n.length;an+=1){var Dn=_n[an];Ae[Dn[0]]=Dn[1]}Qe=typeof N.stops[0][0]}else{if(rn!=="identity")throw new Error('Unknown function type "'+rn+'"');fe=_f}if(ut){for(var Cn={},Jn=[],lr=0;lr=N.stops[Ae-1][0])return N.stops[Ae-1][1];var Qe=oi(N.stops.map(function(et){return et[0]}),fe);return N.stops[Qe][1]}function Pp(N,G,fe){var Ae=N.base!==void 0?N.base:1;if(rs(fe)!=="number")return Pd(N.default,G.default);var Qe=N.stops.length;if(Qe===1||fe<=N.stops[0][0])return N.stops[0][1];if(fe>=N.stops[Qe-1][0])return N.stops[Qe-1][1];var et=oi(N.stops.map(function(_n){return _n[0]}),fe),ut=function(_n,Dn,Cn,Jn){var lr=Jn-Cn,Ar=_n-Cn;return lr===0?0:Dn===1?Ar/lr:(Math.pow(Dn,Ar)-1)/(Math.pow(Dn,lr)-1)}(fe,Ae,N.stops[et][0],N.stops[et+1][0]),Tt=N.stops[et][1],Bt=N.stops[et+1][1],rn=mo[G.type]||Ep;if(N.colorSpace&&N.colorSpace!=="rgb"){var an=yl[N.colorSpace];rn=function(_n,Dn){return an.reverse(an.interpolate(an.forward(_n),an.forward(Dn),ut))}}return typeof Tt.evaluate=="function"?{evaluate:function(){for(var _n=[],Dn=arguments.length;Dn--;)_n[Dn]=arguments[Dn];var Cn=Tt.evaluate.apply(void 0,_n),Jn=Bt.evaluate.apply(void 0,_n);if(Cn!==void 0&&Jn!==void 0)return rn(Cn,Jn,ut)}}:rn(Tt,Bt,ut)}function _f(N,G,fe){return G.type==="color"?fe=Fr.parse(fe):G.type==="formatted"?fe=Kr.fromString(fe.toString()):G.type==="resolvedImage"?fe=Co.fromString(fe.toString()):rs(fe)===G.type||G.type==="enum"&&G.values[fe]||(fe=void 0),Pd(fe,N.default,G.default)}hr.register(mh,{error:[{kind:"error"},[vn],function(N,G){var fe=G[0];throw new Yn(fe.evaluate(N))}],typeof:[vn,[In],function(N,G){return Fn(go(G[0].evaluate(N)))}],"to-rgba":[ar(dn,4),[er],function(N,G){return G[0].evaluate(N).toArray()}],rgb:[er,[dn,dn,dn],ld],rgba:[er,[dn,dn,dn,dn],ld],has:{type:Nn,overloads:[[[vn],function(N,G){return Vh(G[0].evaluate(N),N.properties())}],[[vn,En],function(N,G){var fe=G[0],Ae=G[1];return Vh(fe.evaluate(N),Ae.evaluate(N))}]]},get:{type:In,overloads:[[[vn],function(N,G){return bf(G[0].evaluate(N),N.properties())}],[[vn,En],function(N,G){var fe=G[0],Ae=G[1];return bf(fe.evaluate(N),Ae.evaluate(N))}]]},"feature-state":[In,[vn],function(N,G){return bf(G[0].evaluate(N),N.featureState||{})}],properties:[En,[],function(N){return N.properties()}],"geometry-type":[vn,[],function(N){return N.geometryType()}],id:[In,[],function(N){return N.id()}],zoom:[dn,[],function(N){return N.globals.zoom}],"heatmap-density":[dn,[],function(N){return N.globals.heatmapDensity||0}],"line-progress":[dn,[],function(N){return N.globals.lineProgress||0}],accumulated:[In,[],function(N){return N.globals.accumulated===void 0?null:N.globals.accumulated}],"+":[dn,tf(dn),function(N,G){for(var fe=0,Ae=0,Qe=G;Ae":[Nn,[vn,In],function(N,G){var fe=G[0],Ae=G[1],Qe=N.properties()[fe.value],et=Ae.value;return typeof Qe==typeof et&&Qe>et}],"filter-id->":[Nn,[In],function(N,G){var fe=G[0],Ae=N.id(),Qe=fe.value;return typeof Ae==typeof Qe&&Ae>Qe}],"filter-<=":[Nn,[vn,In],function(N,G){var fe=G[0],Ae=G[1],Qe=N.properties()[fe.value],et=Ae.value;return typeof Qe==typeof et&&Qe<=et}],"filter-id-<=":[Nn,[In],function(N,G){var fe=G[0],Ae=N.id(),Qe=fe.value;return typeof Ae==typeof Qe&&Ae<=Qe}],"filter->=":[Nn,[vn,In],function(N,G){var fe=G[0],Ae=G[1],Qe=N.properties()[fe.value],et=Ae.value;return typeof Qe==typeof et&&Qe>=et}],"filter-id->=":[Nn,[In],function(N,G){var fe=G[0],Ae=N.id(),Qe=fe.value;return typeof Ae==typeof Qe&&Ae>=Qe}],"filter-has":[Nn,[In],function(N,G){return G[0].value in N.properties()}],"filter-has-id":[Nn,[],function(N){return N.id()!==null&&N.id()!==void 0}],"filter-type-in":[Nn,[ar(vn)],function(N,G){return G[0].value.indexOf(N.geometryType())>=0}],"filter-id-in":[Nn,[ar(In)],function(N,G){return G[0].value.indexOf(N.id())>=0}],"filter-in-small":[Nn,[vn,ar(In)],function(N,G){var fe=G[0];return G[1].value.indexOf(N.properties()[fe.value])>=0}],"filter-in-large":[Nn,[vn,ar(In)],function(N,G){var fe=G[0],Ae=G[1];return function(Qe,et,ut,Tt){for(;ut<=Tt;){var Bt=ut+Tt>>1;if(et[Bt]===Qe)return!0;et[Bt]>Qe?Tt=Bt-1:ut=Bt+1}return!1}(N.properties()[fe.value],Ae.value,0,Ae.value.length-1)}],all:{type:Nn,overloads:[[[Nn,Nn],function(N,G){var fe=G[0],Ae=G[1];return fe.evaluate(N)&&Ae.evaluate(N)}],[tf(Nn),function(N,G){for(var fe=0,Ae=G;fe0&&typeof N[0]=="string"&&N[0]in mh}function Gd(N,G){var fe=new qo(mh,[],G?function(Qe){var et={color:er,string:vn,number:dn,enum:vn,boolean:Nn,formatted:xr,resolvedImage:Sr};return Qe.type==="array"?ar(et[Qe.value]||In,Qe.length):et[Qe.type]}(G):void 0),Ae=fe.parse(N,void 0,void 0,void 0,G&&G.type==="string"?{typeAnnotation:"coerce"}:void 0);return Ae?Au(new wf(Ae,G)):xf(fe.errors)}wf.prototype.evaluateWithoutErrorHandling=function(N,G,fe,Ae,Qe,et){return this._evaluator.globals=N,this._evaluator.feature=G,this._evaluator.featureState=fe,this._evaluator.canonical=Ae,this._evaluator.availableImages=Qe||null,this._evaluator.formattedSection=et,this.expression.evaluate(this._evaluator)},wf.prototype.evaluate=function(N,G,fe,Ae,Qe,et){this._evaluator.globals=N,this._evaluator.feature=G||null,this._evaluator.featureState=fe||null,this._evaluator.canonical=Ae,this._evaluator.availableImages=Qe||null,this._evaluator.formattedSection=et||null;try{var ut=this.expression.evaluate(this._evaluator);if(ut==null||typeof ut=="number"&&ut!=ut)return this._defaultValue;if(this._enumValues&&!(ut in this._enumValues))throw new Yn("Expected value to be one of "+Object.keys(this._enumValues).map(function(Tt){return JSON.stringify(Tt)}).join(", ")+", but found "+JSON.stringify(ut)+" instead.");return ut}catch(Tt){return this._warningHistory[Tt.message]||(this._warningHistory[Tt.message]=!0,typeof console<"u"&&console.warn(Tt.message)),this._defaultValue}};var Fa=function(N,G){this.kind=N,this._styleExpression=G,this.isStateDependent=N!=="constant"&&!co(G.expression)};Fa.prototype.evaluateWithoutErrorHandling=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluateWithoutErrorHandling(N,G,fe,Ae,Qe,et)},Fa.prototype.evaluate=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluate(N,G,fe,Ae,Qe,et)};var Qu=function(N,G,fe,Ae){this.kind=N,this.zoomStops=fe,this._styleExpression=G,this.isStateDependent=N!=="camera"&&!co(G.expression),this.interpolationType=Ae};function rf(N,G){if((N=Gd(N,G)).result==="error")return N;var fe=N.value.expression,Ae=ao(fe);if(!Ae&&!cd(G))return xf([new tn("","data expressions not supported")]);var Qe=Go(fe,["zoom"]);if(!Qe&&!nf(G))return xf([new tn("","zoom expressions not supported")]);var et=ym(fe);if(!et&&!Qe)return xf([new tn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(et instanceof tn)return xf([et]);if(et instanceof sa&&!gh(G))return xf([new tn("",'"interpolate" expressions cannot be used with this property')]);if(!et)return Au(new Fa(Ae?"constant":"source",N.value));var ut=et instanceof sa?et.interpolation:void 0;return Au(new Qu(Ae?"camera":"composite",N.value,et.labels,ut))}Qu.prototype.evaluateWithoutErrorHandling=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluateWithoutErrorHandling(N,G,fe,Ae,Qe,et)},Qu.prototype.evaluate=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluate(N,G,fe,Ae,Qe,et)},Qu.prototype.interpolationFactor=function(N,G,fe){return this.interpolationType?sa.interpolationFactor(this.interpolationType,N,G,fe):0};var Bc=function(N,G){this._parameters=N,this._specification=G,Yt(this,vm(this._parameters,this._specification))};function ym(N){var G=null;if(N instanceof ju)G=ym(N.result);else if(N instanceof hu)for(var fe=0,Ae=N.args;feAe.maximum?[new Ht(G,fe,fe+" is greater than the maximum value "+Ae.maximum)]:[]}function Uh(N){var G,fe,Ae,Qe=N.valueSpec,et=Qt(N.value.type),ut={},Tt=et!=="categorical"&&N.value.property===void 0,Bt=!Tt,rn=rs(N.value.stops)==="array"&&rs(N.value.stops[0])==="array"&&rs(N.value.stops[0][0])==="object",an=Mu({key:N.key,value:N.value,valueSpec:N.styleSpec.function,style:N.style,styleSpec:N.styleSpec,objectElementValidators:{stops:function(Cn){if(et==="identity")return[new Ht(Cn.key,Cn.value,'identity function may not have a "stops" property')];var Jn=[],lr=Cn.value;return Jn=Jn.concat(Hu({key:Cn.key,value:lr,valueSpec:Cn.valueSpec,style:Cn.style,styleSpec:Cn.styleSpec,arrayElementValidator:_n})),rs(lr)==="array"&&lr.length===0&&Jn.push(new Ht(Cn.key,lr,"array must have at least one stop")),Jn},default:function(Cn){return ms({key:Cn.key,value:Cn.value,valueSpec:Qe,style:Cn.style,styleSpec:Cn.styleSpec})}}});return et==="identity"&&Tt&&an.push(new Ht(N.key,N.value,'missing required property "property"')),et==="identity"||N.value.stops||an.push(new Ht(N.key,N.value,'missing required property "stops"')),et==="exponential"&&N.valueSpec.expression&&!gh(N.valueSpec)&&an.push(new Ht(N.key,N.value,"exponential functions not supported")),N.styleSpec.$version>=8&&(Bt&&!cd(N.valueSpec)?an.push(new Ht(N.key,N.value,"property functions not supported")):Tt&&!nf(N.valueSpec)&&an.push(new Ht(N.key,N.value,"zoom functions not supported"))),et!=="categorical"&&!rn||N.value.property!==void 0||an.push(new Ht(N.key,N.value,'"property" property is required')),an;function _n(Cn){var Jn=[],lr=Cn.value,Ar=Cn.key;if(rs(lr)!=="array")return[new Ht(Ar,lr,"array expected, "+rs(lr)+" found")];if(lr.length!==2)return[new Ht(Ar,lr,"array length 2 expected, length "+lr.length+" found")];if(rn){if(rs(lr[0])!=="object")return[new Ht(Ar,lr,"object expected, "+rs(lr[0])+" found")];if(lr[0].zoom===void 0)return[new Ht(Ar,lr,"object stop key must have zoom")];if(lr[0].value===void 0)return[new Ht(Ar,lr,"object stop key must have value")];if(Ae&&Ae>Qt(lr[0].zoom))return[new Ht(Ar,lr[0].zoom,"stop zoom values must appear in ascending order")];Qt(lr[0].zoom)!==Ae&&(Ae=Qt(lr[0].zoom),fe=void 0,ut={}),Jn=Jn.concat(Mu({key:Ar+"[0]",value:lr[0],valueSpec:{zoom:{}},style:Cn.style,styleSpec:Cn.styleSpec,objectElementValidators:{zoom:Lp,value:Dn}}))}else Jn=Jn.concat(Dn({key:Ar+"[0]",value:lr[0],valueSpec:{},style:Cn.style,styleSpec:Cn.styleSpec},lr));return Rp(Pt(lr[1]))?Jn.concat([new Ht(Ar+"[1]",lr[1],"expressions are not allowed in function stops.")]):Jn.concat(ms({key:Ar+"[1]",value:lr[1],valueSpec:Qe,style:Cn.style,styleSpec:Cn.styleSpec}))}function Dn(Cn,Jn){var lr=rs(Cn.value),Ar=Qt(Cn.value),Or=Cn.value!==null?Cn.value:Jn;if(G){if(lr!==G)return[new Ht(Cn.key,Or,lr+" stop domain type must match previous stop domain type "+G)]}else G=lr;if(lr!=="number"&&lr!=="string"&&lr!=="boolean")return[new Ht(Cn.key,Or,"stop domain value must be a number, string, or boolean")];if(lr!=="number"&&et!=="categorical"){var jr="number expected, "+lr+" found";return cd(Qe)&&et===void 0&&(jr+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ht(Cn.key,Or,jr)]}return et!=="categorical"||lr!=="number"||isFinite(Ar)&&Math.floor(Ar)===Ar?et!=="categorical"&&lr==="number"&&fe!==void 0&&Ar=2&&N[1]!=="$id"&&N[1]!=="$type";case"in":return N.length>=3&&(typeof N[1]!="string"||Array.isArray(N[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return N.length!==3||Array.isArray(N[1])||Array.isArray(N[2]);case"any":case"all":for(var G=0,fe=N.slice(1);GG?1:0}function ks(N){if(!Array.isArray(N))return!1;if(N[0]==="within")return!0;for(var G=1;G"||fe==="<="||fe===">="?zl(N[1],N[2],fe):fe==="any"?(G=N.slice(1),["any"].concat(G.map(Uf))):fe==="all"?["all"].concat(N.slice(1).map(Uf)):fe==="none"?["all"].concat(N.slice(1).map(Uf).map($s)):fe==="in"?Hl(N[1],N.slice(2)):fe==="!in"?$s(Hl(N[1],N.slice(2))):fe==="has"?Ts(N[1]):fe==="!has"?$s(Ts(N[1])):fe!=="within"||N}function zl(N,G,fe){switch(N){case"$type":return["filter-type-"+fe,G];case"$id":return["filter-id-"+fe,G];default:return["filter-"+fe,N,G]}}function Hl(N,G){if(G.length===0)return!1;switch(N){case"$type":return["filter-type-in",["literal",G]];case"$id":return["filter-id-in",["literal",G]];default:return G.length>200&&!G.some(function(fe){return typeof fe!=typeof G[0]})?["filter-in-large",N,["literal",G.sort(Oc)]]:["filter-in-small",N,["literal",G]]}}function Ts(N){switch(N){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",N]}}function $s(N){return["!",N]}function Zu(N){return ud(Pt(N.value))?jh(Yt({},N,{expressionContext:"filter",valueSpec:{value:"boolean"}})):yh(N)}function yh(N){var G=N.value,fe=N.key;if(rs(G)!=="array")return[new Ht(fe,G,"array expected, "+rs(G)+" found")];var Ae,Qe=N.styleSpec,et=[];if(G.length<1)return[new Ht(fe,G,"filter array must have at least 1 element")];switch(et=et.concat(Eu({key:fe+"[0]",value:G[0],valueSpec:Qe.filter_operator,style:N.style,styleSpec:N.styleSpec})),Qt(G[0])){case"<":case"<=":case">":case">=":G.length>=2&&Qt(G[1])==="$type"&&et.push(new Ht(fe,G,'"$type" cannot be use with operator "'+G[0]+'"'));case"==":case"!=":G.length!==3&&et.push(new Ht(fe,G,'filter array for operator "'+G[0]+'" must have 3 elements'));case"in":case"!in":G.length>=2&&(Ae=rs(G[1]))!=="string"&&et.push(new Ht(fe+"[1]",G[1],"string expected, "+Ae+" found"));for(var ut=2;ut=an[Cn+0]&&Ae>=an[Cn+1])?(ut[Dn]=!0,et.push(rn[Dn])):ut[Dn]=!1}}},Of.prototype._forEachCell=function(N,G,fe,Ae,Qe,et,ut,Tt){for(var Bt=this._convertToCellCoord(N),rn=this._convertToCellCoord(G),an=this._convertToCellCoord(fe),_n=this._convertToCellCoord(Ae),Dn=Bt;Dn<=an;Dn++)for(var Cn=rn;Cn<=_n;Cn++){var Jn=this.d*Cn+Dn;if((!Tt||Tt(this._convertFromCellCoord(Dn),this._convertFromCellCoord(Cn),this._convertFromCellCoord(Dn+1),this._convertFromCellCoord(Cn+1)))&&Qe.call(this,N,G,fe,Ae,Jn,et,ut,Tt))return}},Of.prototype._convertFromCellCoord=function(N){return(N-this.padding)/this.scale},Of.prototype._convertToCellCoord=function(N){return Math.max(0,Math.min(this.d-1,Math.floor(N*this.scale)+this.padding))},Of.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var N=this.cells,G=af+this.cells.length+1+1,fe=0,Ae=0;Ae=0)){var _n=N[an];rn[an]=Hi[Bt].shallow.indexOf(an)>=0?_n:Yc(_n,G)}N instanceof Error&&(rn.message=N.message)}if(rn.$name)throw new Error("$name property is reserved for worker serialization logic.");return Bt!=="Object"&&(rn.$name=Bt),rn}throw new Error("can't serialize object of type "+typeof N)}function Kl(N){if(N==null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||N instanceof Boolean||N instanceof Number||N instanceof String||N instanceof Date||N instanceof RegExp||Ru(N)||vc(N)||ArrayBuffer.isView(N)||N instanceof sf)return N;if(Array.isArray(N))return N.map(Kl);if(typeof N=="object"){var G=N.$name||"Object",fe=Hi[G].klass;if(!fe)throw new Error("can't deserialize unregistered class "+G);if(fe.deserialize)return fe.deserialize(N);for(var Ae=Object.create(fe.prototype),Qe=0,et=Object.keys(N);Qe=0?Tt:Kl(Tt)}}return Ae}throw new Error("can't deserialize object of type "+typeof N)}var Fc=function(){this.first=!0};Fc.prototype.update=function(N,G){var fe=Math.floor(N);return this.first?(this.first=!1,this.lastIntegerZoom=fe,this.lastIntegerZoomTime=0,this.lastZoom=N,this.lastFloorZoom=fe,!0):(this.lastFloorZoom>fe?(this.lastIntegerZoom=fe+1,this.lastIntegerZoomTime=G):this.lastFloorZoom=128&&N<=255},Arabic:function(N){return N>=1536&&N<=1791},"Arabic Supplement":function(N){return N>=1872&&N<=1919},"Arabic Extended-A":function(N){return N>=2208&&N<=2303},"Hangul Jamo":function(N){return N>=4352&&N<=4607},"Unified Canadian Aboriginal Syllabics":function(N){return N>=5120&&N<=5759},Khmer:function(N){return N>=6016&&N<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(N){return N>=6320&&N<=6399},"General Punctuation":function(N){return N>=8192&&N<=8303},"Letterlike Symbols":function(N){return N>=8448&&N<=8527},"Number Forms":function(N){return N>=8528&&N<=8591},"Miscellaneous Technical":function(N){return N>=8960&&N<=9215},"Control Pictures":function(N){return N>=9216&&N<=9279},"Optical Character Recognition":function(N){return N>=9280&&N<=9311},"Enclosed Alphanumerics":function(N){return N>=9312&&N<=9471},"Geometric Shapes":function(N){return N>=9632&&N<=9727},"Miscellaneous Symbols":function(N){return N>=9728&&N<=9983},"Miscellaneous Symbols and Arrows":function(N){return N>=11008&&N<=11263},"CJK Radicals Supplement":function(N){return N>=11904&&N<=12031},"Kangxi Radicals":function(N){return N>=12032&&N<=12255},"Ideographic Description Characters":function(N){return N>=12272&&N<=12287},"CJK Symbols and Punctuation":function(N){return N>=12288&&N<=12351},Hiragana:function(N){return N>=12352&&N<=12447},Katakana:function(N){return N>=12448&&N<=12543},Bopomofo:function(N){return N>=12544&&N<=12591},"Hangul Compatibility Jamo":function(N){return N>=12592&&N<=12687},Kanbun:function(N){return N>=12688&&N<=12703},"Bopomofo Extended":function(N){return N>=12704&&N<=12735},"CJK Strokes":function(N){return N>=12736&&N<=12783},"Katakana Phonetic Extensions":function(N){return N>=12784&&N<=12799},"Enclosed CJK Letters and Months":function(N){return N>=12800&&N<=13055},"CJK Compatibility":function(N){return N>=13056&&N<=13311},"CJK Unified Ideographs Extension A":function(N){return N>=13312&&N<=19903},"Yijing Hexagram Symbols":function(N){return N>=19904&&N<=19967},"CJK Unified Ideographs":function(N){return N>=19968&&N<=40959},"Yi Syllables":function(N){return N>=40960&&N<=42127},"Yi Radicals":function(N){return N>=42128&&N<=42191},"Hangul Jamo Extended-A":function(N){return N>=43360&&N<=43391},"Hangul Syllables":function(N){return N>=44032&&N<=55215},"Hangul Jamo Extended-B":function(N){return N>=55216&&N<=55295},"Private Use Area":function(N){return N>=57344&&N<=63743},"CJK Compatibility Ideographs":function(N){return N>=63744&&N<=64255},"Arabic Presentation Forms-A":function(N){return N>=64336&&N<=65023},"Vertical Forms":function(N){return N>=65040&&N<=65055},"CJK Compatibility Forms":function(N){return N>=65072&&N<=65103},"Small Form Variants":function(N){return N>=65104&&N<=65135},"Arabic Presentation Forms-B":function(N){return N>=65136&&N<=65279},"Halfwidth and Fullwidth Forms":function(N){return N>=65280&&N<=65519}};function Hh(N){for(var G=0,fe=N;G=65097&&N<=65103)||si["CJK Compatibility Ideographs"](N)||si["CJK Compatibility"](N)||si["CJK Radicals Supplement"](N)||si["CJK Strokes"](N)||!(!si["CJK Symbols and Punctuation"](N)||N>=12296&&N<=12305||N>=12308&&N<=12319||N===12336)||si["CJK Unified Ideographs Extension A"](N)||si["CJK Unified Ideographs"](N)||si["Enclosed CJK Letters and Months"](N)||si["Hangul Compatibility Jamo"](N)||si["Hangul Jamo Extended-A"](N)||si["Hangul Jamo Extended-B"](N)||si["Hangul Jamo"](N)||si["Hangul Syllables"](N)||si.Hiragana(N)||si["Ideographic Description Characters"](N)||si.Kanbun(N)||si["Kangxi Radicals"](N)||si["Katakana Phonetic Extensions"](N)||si.Katakana(N)&&N!==12540||!(!si["Halfwidth and Fullwidth Forms"](N)||N===65288||N===65289||N===65293||N>=65306&&N<=65310||N===65339||N===65341||N===65343||N>=65371&&N<=65503||N===65507||N>=65512&&N<=65519)||!(!si["Small Form Variants"](N)||N>=65112&&N<=65118||N>=65123&&N<=65126)||si["Unified Canadian Aboriginal Syllabics"](N)||si["Unified Canadian Aboriginal Syllabics Extended"](N)||si["Vertical Forms"](N)||si["Yijing Hexagram Symbols"](N)||si["Yi Syllables"](N)||si["Yi Radicals"](N))))}function Sc(N){return!(Ps(N)||function(G){return!!(si["Latin-1 Supplement"](G)&&(G===167||G===169||G===174||G===177||G===188||G===189||G===190||G===215||G===247)||si["General Punctuation"](G)&&(G===8214||G===8224||G===8225||G===8240||G===8241||G===8251||G===8252||G===8258||G===8263||G===8264||G===8265||G===8273)||si["Letterlike Symbols"](G)||si["Number Forms"](G)||si["Miscellaneous Technical"](G)&&(G>=8960&&G<=8967||G>=8972&&G<=8991||G>=8996&&G<=9e3||G===9003||G>=9085&&G<=9114||G>=9150&&G<=9165||G===9167||G>=9169&&G<=9179||G>=9186&&G<=9215)||si["Control Pictures"](G)&&G!==9251||si["Optical Character Recognition"](G)||si["Enclosed Alphanumerics"](G)||si["Geometric Shapes"](G)||si["Miscellaneous Symbols"](G)&&!(G>=9754&&G<=9759)||si["Miscellaneous Symbols and Arrows"](G)&&(G>=11026&&G<=11055||G>=11088&&G<=11097||G>=11192&&G<=11243)||si["CJK Symbols and Punctuation"](G)||si.Katakana(G)||si["Private Use Area"](G)||si["CJK Compatibility Forms"](G)||si["Small Form Variants"](G)||si["Halfwidth and Fullwidth Forms"](G)||G===8734||G===8756||G===8757||G>=9984&&G<=10087||G>=10102&&G<=10131||G===65532||G===65533)}(N))}function tl(N){return si.Arabic(N)||si["Arabic Supplement"](N)||si["Arabic Extended-A"](N)||si["Arabic Presentation Forms-A"](N)||si["Arabic Presentation Forms-B"](N)}function mu(N){return N>=1424&&N<=2303||si["Arabic Presentation Forms-A"](N)||si["Arabic Presentation Forms-B"](N)}function gu(N,G){return!(!G&&mu(N)||N>=2304&&N<=3583||N>=3840&&N<=4255||si.Khmer(N))}function ja(N){for(var G=0,fe=N;G-1&&(Ka=nl),Id&&Id(N)};function jf(){yu.fire(new it("pluginStateChange",{pluginStatus:Ka,pluginURL:Xi}))}var yu=new Lt,Dp=function(){return Ka},rp=function(){if(Ka!==vu||!Xi)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ka=Rd,jf(),Xi&&bn({url:Xi},function(N){N?Xc(N):(Ka=Ld,jf())})},Lu={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ka===Ld||Lu.applyArabicShaping!=null},isLoading:function(){return Ka===Rd},setState:function(N){Ka=N.pluginStatus,Xi=N.pluginURL},isParsed:function(){return Lu.applyArabicShaping!=null&&Lu.processBidirectionalText!=null&&Lu.processStyledBidirectionalText!=null},getPluginURL:function(){return Xi}},us=function(N,G){this.zoom=N,G?(this.now=G.now,this.fadeDuration=G.fadeDuration,this.zoomHistory=G.zoomHistory,this.transition=G.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Fc,this.transition={})};us.prototype.isSupportedScript=function(N){return function(G,fe){for(var Ae=0,Qe=G;Aethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:G+(1-G)*fe}:{fromScale:.5,toScale:1,t:1-(1-fe)*G}};var Qf=function(N,G){this.property=N,this.value=G,this.expression=function(fe,Ae){if(ep(fe))return new Bc(fe,Ae);if(Rp(fe)){var Qe=rf(fe,Ae);if(Qe.result==="error")throw new Error(Qe.value.map(function(ut){return ut.key+": "+ut.message}).join(", "));return Qe.value}var et=fe;return typeof fe=="string"&&Ae.type==="color"&&(et=Fr.parse(fe)),{kind:"constant",evaluate:function(){return et}}}(G===void 0?N.specification.default:G,N.specification)};Qf.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Qf.prototype.possiblyEvaluate=function(N,G,fe){return this.property.possiblyEvaluate(this,N,G,fe)};var fd=function(N){this.property=N,this.value=new Qf(N,void 0)};fd.prototype.transitioned=function(N,G){return new _h(this.property,this.value,G,x({},N.transition,this.transition),N.now)},fd.prototype.untransitioned=function(){return new _h(this.property,this.value,null,{},0)};var Hf=function(N){this._properties=N,this._values=Object.create(N.defaultTransitionablePropertyValues)};Hf.prototype.getValue=function(N){return I(this._values[N].value.value)},Hf.prototype.setValue=function(N,G){this._values.hasOwnProperty(N)||(this._values[N]=new fd(this._values[N].property)),this._values[N].value=new Qf(this._values[N].property,G===null?void 0:I(G))},Hf.prototype.getTransition=function(N){return I(this._values[N].transition)},Hf.prototype.setTransition=function(N,G){this._values.hasOwnProperty(N)||(this._values[N]=new fd(this._values[N].property)),this._values[N].transition=I(G)||void 0},Hf.prototype.serialize=function(){for(var N={},G=0,fe=Object.keys(this._values);Gthis.end)return this.prior=null,Qe;if(this.value.isDataDriven())return this.prior=null,Qe;if(Ae=1)return 1;var Bt=Tt*Tt,rn=Bt*Tt;return 4*(Tt<.5?rn:3*(Tt-Bt)+rn-.75)}(ut))}return Qe};var Gc=function(N){this._properties=N,this._values=Object.create(N.defaultTransitioningPropertyValues)};Gc.prototype.possiblyEvaluate=function(N,G,fe){for(var Ae=new Dd(this._properties),Qe=0,et=Object.keys(this._values);Qeet.zoomHistory.lastIntegerZoom?{from:fe,to:Ae}:{from:Qe,to:Ae}},G.prototype.interpolate=function(fe){return fe},G}(fa),Zf=function(N){this.specification=N};Zf.prototype.possiblyEvaluate=function(N,G,fe,Ae){if(N.value!==void 0){if(N.expression.kind==="constant"){var Qe=N.expression.evaluate(G,null,{},fe,Ae);return this._calculate(Qe,Qe,Qe,G)}return this._calculate(N.expression.evaluate(new us(Math.floor(G.zoom-1),G)),N.expression.evaluate(new us(Math.floor(G.zoom),G)),N.expression.evaluate(new us(Math.floor(G.zoom+1),G)),G)}},Zf.prototype._calculate=function(N,G,fe,Ae){return Ae.zoom>Ae.zoomHistory.lastIntegerZoom?{from:N,to:G}:{from:fe,to:G}},Zf.prototype.interpolate=function(N){return N};var Zl=function(N){this.specification=N};Zl.prototype.possiblyEvaluate=function(N,G,fe,Ae){return!!N.expression.evaluate(G,null,{},fe,Ae)},Zl.prototype.interpolate=function(){return!1};var Jl=function(N){for(var G in this.properties=N,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],N){var fe=N[G];fe.specification.overridable&&this.overridableProperties.push(G);var Ae=this.defaultPropertyValues[G]=new Qf(fe,void 0),Qe=this.defaultTransitionablePropertyValues[G]=new fd(fe);this.defaultTransitioningPropertyValues[G]=Qe.untransitioned(),this.defaultPossiblyEvaluatedValues[G]=Ae.possiblyEvaluate({})}};pi("DataDrivenProperty",fa),pi("DataConstantProperty",Vi),pi("CrossFadedDataDrivenProperty",au),pi("CrossFadedProperty",Zf),pi("ColorRampProperty",Zl);var Bd="-transition",Qs=function(N){function G(fe,Ae){if(N.call(this),this.id=fe.id,this.type=fe.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},fe.type!=="custom"&&(this.metadata=fe.metadata,this.minzoom=fe.minzoom,this.maxzoom=fe.maxzoom,fe.type!=="background"&&(this.source=fe.source,this.sourceLayer=fe["source-layer"],this.filter=fe.filter),Ae.layout&&(this._unevaluatedLayout=new dd(Ae.layout)),Ae.paint)){for(var Qe in this._transitionablePaint=new Hf(Ae.paint),fe.paint)this.setPaintProperty(Qe,fe.paint[Qe],{validate:!1});for(var et in fe.layout)this.setLayoutProperty(et,fe.layout[et],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Dd(Ae.paint)}}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},G.prototype.getLayoutProperty=function(fe){return fe==="visibility"?this.visibility:this._unevaluatedLayout.getValue(fe)},G.prototype.setLayoutProperty=function(fe,Ae,Qe){if(Qe===void 0&&(Qe={}),Ae!=null){var et="layers."+this.id+".layout."+fe;if(this._validate(xh,et,fe,Ae,Qe))return}fe!=="visibility"?this._unevaluatedLayout.setValue(fe,Ae):this.visibility=Ae},G.prototype.getPaintProperty=function(fe){return L(fe,Bd)?this._transitionablePaint.getTransition(fe.slice(0,-11)):this._transitionablePaint.getValue(fe)},G.prototype.setPaintProperty=function(fe,Ae,Qe){if(Qe===void 0&&(Qe={}),Ae!=null){var et="layers."+this.id+".paint."+fe;if(this._validate(pu,et,fe,Ae,Qe))return!1}if(L(fe,Bd))return this._transitionablePaint.setTransition(fe.slice(0,-11),Ae||void 0),!1;var ut=this._transitionablePaint._values[fe],Tt=ut.property.specification["property-type"]==="cross-faded-data-driven",Bt=ut.value.isDataDriven(),rn=ut.value;this._transitionablePaint.setValue(fe,Ae),this._handleSpecialPaintPropertyUpdate(fe);var an=this._transitionablePaint._values[fe].value;return an.isDataDriven()||Bt||Tt||this._handleOverridablePaintPropertyUpdate(fe,rn,an)},G.prototype._handleSpecialPaintPropertyUpdate=function(fe){},G.prototype._handleOverridablePaintPropertyUpdate=function(fe,Ae,Qe){return!1},G.prototype.isHidden=function(fe){return!!(this.minzoom&&fe=this.maxzoom)||this.visibility==="none"},G.prototype.updateTransitions=function(fe){this._transitioningPaint=this._transitionablePaint.transitioned(fe,this._transitioningPaint)},G.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},G.prototype.recalculate=function(fe,Ae){fe.getCrossfadeParameters&&(this._crossfadeParameters=fe.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(fe,void 0,Ae)),this.paint=this._transitioningPaint.possiblyEvaluate(fe,void 0,Ae)},G.prototype.serialize=function(){var fe={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(fe.layout=fe.layout||{},fe.layout.visibility=this.visibility),k(fe,function(Ae,Qe){return!(Ae===void 0||Qe==="layout"&&!Object.keys(Ae).length||Qe==="paint"&&!Object.keys(Ae).length)})},G.prototype._validate=function(fe,Ae,Qe,et,ut){return ut===void 0&&(ut={}),(!ut||ut.validate!==!1)&&js(this,fe.call(xl,{key:Ae,layerType:this.type,objectKey:Qe,value:et,styleSpec:xt,style:{glyphs:!0,sprite:!0}}))},G.prototype.is3D=function(){return!1},G.prototype.isTileClipped=function(){return!1},G.prototype.hasOffscreenPass=function(){return!1},G.prototype.resize=function(){},G.prototype.isStateDependent=function(){for(var fe in this.paint._values){var Ae=this.paint.get(fe);if(Ae instanceof rl&&cd(Ae.property.specification)&&(Ae.value.kind==="source"||Ae.value.kind==="composite")&&Ae.value.isStateDependent)return!0}return!1},G}(Lt),kc={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Iu=function(N,G){this._structArray=N,this._pos1=G*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ea=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function El(N,G){G===void 0&&(G=1);var fe=0,Ae=0;return{members:N.map(function(Qe){var et,ut=(et=Qe.type,kc[et].BYTES_PER_ELEMENT),Tt=fe=_l(fe,Math.max(G,ut)),Bt=Qe.components||1;return Ae=Math.max(Ae,ut),fe+=ut*Bt,{name:Qe.name,type:Qe.type,components:Bt,offset:Tt}}),size:_l(fe,Math.max(Ae,G)),alignment:G}}function _l(N,G){return Math.ceil(N/G)*G}Ea.serialize=function(N,G){return N._trim(),G&&(N.isTransferred=!0,G.push(N.arrayBuffer)),{length:N.length,arrayBuffer:N.arrayBuffer}},Ea.deserialize=function(N){var G=Object.create(this.prototype);return G.arrayBuffer=N.arrayBuffer,G.length=N.length,G.capacity=N.arrayBuffer.byteLength/G.bytesPerElement,G._refreshViews(),G},Ea.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ea.prototype.clear=function(){this.length=0},Ea.prototype.resize=function(N){this.reserve(N),this.length=N},Ea.prototype.reserve=function(N){if(N>this.capacity){this.capacity=Math.max(N,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var G=this.uint8;this._refreshViews(),G&&this.uint8.set(G)}},Ea.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Mi=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,fe,Ae)},G.prototype.emplace=function(fe,Ae,Qe){var et=2*fe;return this.int16[et+0]=Ae,this.int16[et+1]=Qe,fe},G}(Ea);Mi.prototype.bytesPerElement=4,pi("StructArrayLayout2i4",Mi);var Sf=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et){var ut=this.length;return this.resize(ut+1),this.emplace(ut,fe,Ae,Qe,et)},G.prototype.emplace=function(fe,Ae,Qe,et,ut){var Tt=4*fe;return this.int16[Tt+0]=Ae,this.int16[Tt+1]=Qe,this.int16[Tt+2]=et,this.int16[Tt+3]=ut,fe},G}(Ea);Sf.prototype.bytesPerElement=8,pi("StructArrayLayout4i8",Sf);var Ot=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,fe,Ae,Qe,et,ut,Tt)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=6*fe;return this.int16[rn+0]=Ae,this.int16[rn+1]=Qe,this.int16[rn+2]=et,this.int16[rn+3]=ut,this.int16[rn+4]=Tt,this.int16[rn+5]=Bt,fe},G}(Ea);Ot.prototype.bytesPerElement=12,pi("StructArrayLayout2i4i12",Ot);var Mt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,fe,Ae,Qe,et,ut,Tt)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=4*fe,an=8*fe;return this.int16[rn+0]=Ae,this.int16[rn+1]=Qe,this.uint8[an+4]=et,this.uint8[an+5]=ut,this.uint8[an+6]=Tt,this.uint8[an+7]=Bt,fe},G}(Ea);Mt.prototype.bytesPerElement=8,pi("StructArrayLayout2i4ub8",Mt);var Ft=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,fe,Ae)},G.prototype.emplace=function(fe,Ae,Qe){var et=2*fe;return this.float32[et+0]=Ae,this.float32[et+1]=Qe,fe},G}(Ea);Ft.prototype.bytesPerElement=8,pi("StructArrayLayout2f8",Ft);var J=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n){var Dn=this.length;return this.resize(Dn+1),this.emplace(Dn,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn){var Cn=10*fe;return this.uint16[Cn+0]=Ae,this.uint16[Cn+1]=Qe,this.uint16[Cn+2]=et,this.uint16[Cn+3]=ut,this.uint16[Cn+4]=Tt,this.uint16[Cn+5]=Bt,this.uint16[Cn+6]=rn,this.uint16[Cn+7]=an,this.uint16[Cn+8]=_n,this.uint16[Cn+9]=Dn,fe},G}(Ea);J.prototype.bytesPerElement=20,pi("StructArrayLayout10ui20",J);var le=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn){var Jn=this.length;return this.resize(Jn+1),this.emplace(Jn,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn){var lr=12*fe;return this.int16[lr+0]=Ae,this.int16[lr+1]=Qe,this.int16[lr+2]=et,this.int16[lr+3]=ut,this.uint16[lr+4]=Tt,this.uint16[lr+5]=Bt,this.uint16[lr+6]=rn,this.uint16[lr+7]=an,this.int16[lr+8]=_n,this.int16[lr+9]=Dn,this.int16[lr+10]=Cn,this.int16[lr+11]=Jn,fe},G}(Ea);le.prototype.bytesPerElement=24,pi("StructArrayLayout4i4ui4i24",le);var ie=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=3*fe;return this.float32[ut+0]=Ae,this.float32[ut+1]=Qe,this.float32[ut+2]=et,fe},G}(Ea);ie.prototype.bytesPerElement=12,pi("StructArrayLayout3f12",ie);var V=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,fe)},G.prototype.emplace=function(fe,Ae){var Qe=1*fe;return this.uint32[Qe+0]=Ae,fe},G}(Ea);V.prototype.bytesPerElement=4,pi("StructArrayLayout1ul4",V);var ne=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an){var _n=this.length;return this.resize(_n+1),this.emplace(_n,fe,Ae,Qe,et,ut,Tt,Bt,rn,an)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n){var Dn=10*fe,Cn=5*fe;return this.int16[Dn+0]=Ae,this.int16[Dn+1]=Qe,this.int16[Dn+2]=et,this.int16[Dn+3]=ut,this.int16[Dn+4]=Tt,this.int16[Dn+5]=Bt,this.uint32[Cn+3]=rn,this.uint16[Dn+8]=an,this.uint16[Dn+9]=_n,fe},G}(Ea);ne.prototype.bytesPerElement=20,pi("StructArrayLayout6i1ul2ui20",ne);var ge=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,fe,Ae,Qe,et,ut,Tt)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=6*fe;return this.int16[rn+0]=Ae,this.int16[rn+1]=Qe,this.int16[rn+2]=et,this.int16[rn+3]=ut,this.int16[rn+4]=Tt,this.int16[rn+5]=Bt,fe},G}(Ea);ge.prototype.bytesPerElement=12,pi("StructArrayLayout2i2i2i12",ge);var xe=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut){var Tt=this.length;return this.resize(Tt+1),this.emplace(Tt,fe,Ae,Qe,et,ut)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt){var Bt=4*fe,rn=8*fe;return this.float32[Bt+0]=Ae,this.float32[Bt+1]=Qe,this.float32[Bt+2]=et,this.int16[rn+6]=ut,this.int16[rn+7]=Tt,fe},G}(Ea);xe.prototype.bytesPerElement=16,pi("StructArrayLayout2f1f2i16",xe);var Me=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et){var ut=this.length;return this.resize(ut+1),this.emplace(ut,fe,Ae,Qe,et)},G.prototype.emplace=function(fe,Ae,Qe,et,ut){var Tt=12*fe,Bt=3*fe;return this.uint8[Tt+0]=Ae,this.uint8[Tt+1]=Qe,this.float32[Bt+1]=et,this.float32[Bt+2]=ut,fe},G}(Ea);Me.prototype.bytesPerElement=12,pi("StructArrayLayout2ub2f12",Me);var Fe=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=3*fe;return this.uint16[ut+0]=Ae,this.uint16[ut+1]=Qe,this.uint16[ut+2]=et,fe},G}(Ea);Fe.prototype.bytesPerElement=6,pi("StructArrayLayout3ui6",Fe);var Je=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr){var Jr=this.length;return this.resize(Jr+1),this.emplace(Jr,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr){var uo=24*fe,ro=12*fe,Po=48*fe;return this.int16[uo+0]=Ae,this.int16[uo+1]=Qe,this.uint16[uo+2]=et,this.uint16[uo+3]=ut,this.uint32[ro+2]=Tt,this.uint32[ro+3]=Bt,this.uint32[ro+4]=rn,this.uint16[uo+10]=an,this.uint16[uo+11]=_n,this.uint16[uo+12]=Dn,this.float32[ro+7]=Cn,this.float32[ro+8]=Jn,this.uint8[Po+36]=lr,this.uint8[Po+37]=Ar,this.uint8[Po+38]=Or,this.uint32[ro+10]=jr,this.int16[uo+22]=Jr,fe},G}(Ea);Je.prototype.bytesPerElement=48,pi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Je);var rt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr,uo,ro,Po,gi,ni,Ti,vi,na,Ji,La){var ca=this.length;return this.resize(ca+1),this.emplace(ca,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr,uo,ro,Po,gi,ni,Ti,vi,na,Ji,La)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr,uo,ro,Po,gi,ni,Ti,vi,na,Ji,La,ca){var Zi=34*fe,Bs=17*fe;return this.int16[Zi+0]=Ae,this.int16[Zi+1]=Qe,this.int16[Zi+2]=et,this.int16[Zi+3]=ut,this.int16[Zi+4]=Tt,this.int16[Zi+5]=Bt,this.int16[Zi+6]=rn,this.int16[Zi+7]=an,this.uint16[Zi+8]=_n,this.uint16[Zi+9]=Dn,this.uint16[Zi+10]=Cn,this.uint16[Zi+11]=Jn,this.uint16[Zi+12]=lr,this.uint16[Zi+13]=Ar,this.uint16[Zi+14]=Or,this.uint16[Zi+15]=jr,this.uint16[Zi+16]=Jr,this.uint16[Zi+17]=uo,this.uint16[Zi+18]=ro,this.uint16[Zi+19]=Po,this.uint16[Zi+20]=gi,this.uint16[Zi+21]=ni,this.uint16[Zi+22]=Ti,this.uint32[Bs+12]=vi,this.float32[Bs+13]=na,this.float32[Bs+14]=Ji,this.float32[Bs+15]=La,this.float32[Bs+16]=ca,fe},G}(Ea);rt.prototype.bytesPerElement=68,pi("StructArrayLayout8i15ui1ul4f68",rt);var dt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,fe)},G.prototype.emplace=function(fe,Ae){var Qe=1*fe;return this.float32[Qe+0]=Ae,fe},G}(Ea);dt.prototype.bytesPerElement=4,pi("StructArrayLayout1f4",dt);var mt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=3*fe;return this.int16[ut+0]=Ae,this.int16[ut+1]=Qe,this.int16[ut+2]=et,fe},G}(Ea);mt.prototype.bytesPerElement=6,pi("StructArrayLayout3i6",mt);var Et=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=2*fe,Tt=4*fe;return this.uint32[ut+0]=Ae,this.uint16[Tt+2]=Qe,this.uint16[Tt+3]=et,fe},G}(Ea);Et.prototype.bytesPerElement=8,pi("StructArrayLayout1ul2ui8",Et);var Vt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,fe,Ae)},G.prototype.emplace=function(fe,Ae,Qe){var et=2*fe;return this.uint16[et+0]=Ae,this.uint16[et+1]=Qe,fe},G}(Ea);Vt.prototype.bytesPerElement=4,pi("StructArrayLayout2ui4",Vt);var jt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,fe)},G.prototype.emplace=function(fe,Ae){var Qe=1*fe;return this.uint16[Qe+0]=Ae,fe},G}(Ea);jt.prototype.bytesPerElement=2,pi("StructArrayLayout1ui2",jt);var Nt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et){var ut=this.length;return this.resize(ut+1),this.emplace(ut,fe,Ae,Qe,et)},G.prototype.emplace=function(fe,Ae,Qe,et,ut){var Tt=4*fe;return this.float32[Tt+0]=Ae,this.float32[Tt+1]=Qe,this.float32[Tt+2]=et,this.float32[Tt+3]=ut,fe},G}(Ea);Nt.prototype.bytesPerElement=16,pi("StructArrayLayout4f16",Nt);var cn=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return fe.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},fe.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},fe.x1.get=function(){return this._structArray.int16[this._pos2+2]},fe.y1.get=function(){return this._structArray.int16[this._pos2+3]},fe.x2.get=function(){return this._structArray.int16[this._pos2+4]},fe.y2.get=function(){return this._structArray.int16[this._pos2+5]},fe.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},fe.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},fe.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},fe.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(G.prototype,fe),G}(Iu);cn.prototype.size=20;var sn=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new cn(this,fe)},G}(ne);pi("CollisionBoxArray",sn);var xn=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return fe.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},fe.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},fe.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},fe.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},fe.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},fe.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},fe.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},fe.segment.get=function(){return this._structArray.uint16[this._pos2+10]},fe.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},fe.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},fe.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},fe.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},fe.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},fe.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},fe.placedOrientation.set=function(Ae){this._structArray.uint8[this._pos1+37]=Ae},fe.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},fe.hidden.set=function(Ae){this._structArray.uint8[this._pos1+38]=Ae},fe.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},fe.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+10]=Ae},fe.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(G.prototype,fe),G}(Iu);xn.prototype.size=48;var pn=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new xn(this,fe)},G}(Je);pi("PlacedSymbolArray",pn);var Ln=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return fe.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},fe.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},fe.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},fe.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},fe.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},fe.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},fe.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},fe.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},fe.key.get=function(){return this._structArray.uint16[this._pos2+8]},fe.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},fe.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},fe.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},fe.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},fe.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},fe.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},fe.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},fe.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},fe.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},fe.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},fe.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},fe.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},fe.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},fe.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},fe.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},fe.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+12]=Ae},fe.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},fe.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},fe.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},fe.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(G.prototype,fe),G}(Iu);Ln.prototype.size=68;var On=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new Ln(this,fe)},G}(rt);pi("SymbolInstanceArray",On);var An=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.getoffsetX=function(fe){return this.float32[1*fe+0]},G}(dt);pi("GlyphOffsetArray",An);var Sn=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.getx=function(fe){return this.int16[3*fe+0]},G.prototype.gety=function(fe){return this.int16[3*fe+1]},G.prototype.gettileUnitDistanceFromAnchor=function(fe){return this.int16[3*fe+2]},G}(mt);pi("SymbolLineVertexArray",Sn);var rr=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return fe.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},fe.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},fe.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(G.prototype,fe),G}(Iu);rr.prototype.size=8;var Dr=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new rr(this,fe)},G}(Et);pi("FeatureIndexArray",Dr);var Pr=El([{name:"a_pos",components:2,type:"Int16"}],4).members,Zr=function(N){N===void 0&&(N=[]),this.segments=N};function Mo(N,G){return 256*(N=S(Math.floor(N),0,255))+S(Math.floor(G),0,255)}Zr.prototype.prepareSegment=function(N,G,fe,Ae){var Qe=this.segments[this.segments.length-1];return N>Zr.MAX_VERTEX_ARRAY_LENGTH&&$("Max vertices per segment is "+Zr.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+N),(!Qe||Qe.vertexLength+N>Zr.MAX_VERTEX_ARRAY_LENGTH||Qe.sortKey!==Ae)&&(Qe={vertexOffset:G.length,primitiveOffset:fe.length,vertexLength:0,primitiveLength:0},Ae!==void 0&&(Qe.sortKey=Ae),this.segments.push(Qe)),Qe},Zr.prototype.get=function(){return this.segments},Zr.prototype.destroy=function(){for(var N=0,G=this.segments;N>>16)*Tt&65535)<<16)&4294967295)<<15|rn>>>17))*Bt+(((rn>>>16)*Bt&65535)<<16)&4294967295)<<13|et>>>19))+((5*(et>>>16)&65535)<<16)&4294967295))+((58964+(ut>>>16)&65535)<<16);switch(rn=0,Ae){case 3:rn^=(255&G.charCodeAt(an+2))<<16;case 2:rn^=(255&G.charCodeAt(an+1))<<8;case 1:et^=rn=(65535&(rn=(rn=(65535&(rn^=255&G.charCodeAt(an)))*Tt+(((rn>>>16)*Tt&65535)<<16)&4294967295)<<15|rn>>>17))*Bt+(((rn>>>16)*Bt&65535)<<16)&4294967295}return et^=G.length,et=2246822507*(65535&(et^=et>>>16))+((2246822507*(et>>>16)&65535)<<16)&4294967295,et=3266489909*(65535&(et^=et>>>13))+((3266489909*(et>>>16)&65535)<<16)&4294967295,(et^=et>>>16)>>>0}}),zo=O(function(N){N.exports=function(G,fe){for(var Ae,Qe=G.length,et=fe^Qe,ut=0;Qe>=4;)Ae=1540483477*(65535&(Ae=255&G.charCodeAt(ut)|(255&G.charCodeAt(++ut))<<8|(255&G.charCodeAt(++ut))<<16|(255&G.charCodeAt(++ut))<<24))+((1540483477*(Ae>>>16)&65535)<<16),et=1540483477*(65535&et)+((1540483477*(et>>>16)&65535)<<16)^(Ae=1540483477*(65535&(Ae^=Ae>>>24))+((1540483477*(Ae>>>16)&65535)<<16)),Qe-=4,++ut;switch(Qe){case 3:et^=(255&G.charCodeAt(ut+2))<<16;case 2:et^=(255&G.charCodeAt(ut+1))<<8;case 1:et=1540483477*(65535&(et^=255&G.charCodeAt(ut)))+((1540483477*(et>>>16)&65535)<<16)}return et=1540483477*(65535&(et^=et>>>13))+((1540483477*(et>>>16)&65535)<<16),(et^=et>>>15)>>>0}}),yi=vo,Si=vo,Hr=zo;yi.murmur3=Si,yi.murmur2=Hr;var Lo=function(){this.ids=[],this.positions=[],this.indexed=!1};Lo.prototype.add=function(N,G,fe,Ae){this.ids.push(Io(N)),this.positions.push(G,fe,Ae)},Lo.prototype.getPositions=function(N){for(var G=Io(N),fe=0,Ae=this.ids.length-1;fe>1;this.ids[Qe]>=G?Ae=Qe:fe=Qe+1}for(var et=[];this.ids[fe]===G;){var ut=this.positions[3*fe],Tt=this.positions[3*fe+1],Bt=this.positions[3*fe+2];et.push({index:ut,start:Tt,end:Bt}),fe++}return et},Lo.serialize=function(N,G){var fe=new Float64Array(N.ids),Ae=new Uint32Array(N.positions);return $i(fe,Ae,0,fe.length-1),G&&G.push(fe.buffer,Ae.buffer),{ids:fe,positions:Ae}},Lo.deserialize=function(N){var G=new Lo;return G.ids=N.ids,G.positions=N.positions,G.indexed=!0,G};var ki=Math.pow(2,53)-1;function Io(N){var G=+N;return!isNaN(G)&&G<=ki?G:yi(String(N))}function $i(N,G,fe,Ae){for(;fe>1],et=fe-1,ut=Ae+1;;){do et++;while(N[et]Qe);if(et>=ut)break;Ui(N,et,ut),Ui(G,3*et,3*ut),Ui(G,3*et+1,3*ut+1),Ui(G,3*et+2,3*ut+2)}ut-feut.x+1||Btut.y+1)&&$("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return fe}function tc(N,G){return{type:N.type,id:N.id,properties:N.properties,geometry:G?qf(N):[]}}function Wf(N,G,fe,Ae,Qe){N.emplaceBack(2*G+(Ae+1)/2,2*fe+(Qe+1)/2)}var Rl=function(N){this.zoom=N.zoom,this.overscaling=N.overscaling,this.layers=N.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=N.index,this.hasPattern=!1,this.layoutVertexArray=new Mi,this.indexArray=new Fe,this.segments=new Zr,this.programConfigurations=new Tc(N.layers,N.zoom),this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function lg(N,G){for(var fe=0;fe1){if(eh(N,G))return!0;for(var Ae=0;Ae1?N.distSqr(fe):N.distSqr(fe.sub(G)._mult(Qe)._add(G))}function O1(N,G){for(var fe,Ae,Qe,et=!1,ut=0;utG.y!=Qe.y>G.y&&G.x<(Qe.x-Ae.x)*(G.y-Ae.y)/(Qe.y-Ae.y)+Ae.x&&(et=!et);return et}function oc(N,G){for(var fe=!1,Ae=0,Qe=N.length-1;AeG.y!=ut.y>G.y&&G.x<(ut.x-et.x)*(G.y-et.y)/(ut.y-et.y)+et.x&&(fe=!fe)}return fe}function _m(N,G,fe){var Ae=fe[0],Qe=fe[2];if(N.xQe.x&&G.x>Qe.x||N.yQe.y&&G.y>Qe.y)return!1;var et=Q(N,G,fe[0]);return et!==Q(N,G,fe[1])||et!==Q(N,G,fe[2])||et!==Q(N,G,fe[3])}function Yg(N,G,fe){var Ae=G.paint.get(N).value;return Ae.kind==="constant"?Ae.value:fe.programConfigurations.get(G.id).getMaxValue(N)}function wm(N){return Math.sqrt(N[0]*N[0]+N[1]*N[1])}function cb(N,G,fe,Ae,Qe){if(!G[0]&&!G[1])return N;var et=a.convert(G)._mult(Qe);fe==="viewport"&&et._rotate(-Ae);for(var ut=[],Tt=0;Tt=Hs||an<0||an>=Hs)){var _n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,N.sortKey),Dn=_n.vertexLength;Wf(this.layoutVertexArray,rn,an,-1,-1),Wf(this.layoutVertexArray,rn,an,1,-1),Wf(this.layoutVertexArray,rn,an,1,1),Wf(this.layoutVertexArray,rn,an,-1,1),this.indexArray.emplaceBack(Dn,Dn+1,Dn+2),this.indexArray.emplaceBack(Dn,Dn+3,Dn+2),_n.vertexLength+=4,_n.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,N,fe,{},Ae)},pi("CircleBucket",Rl,{omit:["layers"]});var Oh=new Jl({"circle-sort-key":new fa(xt.layout_circle["circle-sort-key"])}),Ex={paint:new Jl({"circle-radius":new fa(xt.paint_circle["circle-radius"]),"circle-color":new fa(xt.paint_circle["circle-color"]),"circle-blur":new fa(xt.paint_circle["circle-blur"]),"circle-opacity":new fa(xt.paint_circle["circle-opacity"]),"circle-translate":new Vi(xt.paint_circle["circle-translate"]),"circle-translate-anchor":new Vi(xt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Vi(xt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Vi(xt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new fa(xt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new fa(xt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new fa(xt.paint_circle["circle-stroke-opacity"])}),layout:Oh},kf=typeof Float32Array<"u"?Float32Array:Array;function Hv(N){return N[0]=1,N[1]=0,N[2]=0,N[3]=0,N[4]=0,N[5]=1,N[6]=0,N[7]=0,N[8]=0,N[9]=0,N[10]=1,N[11]=0,N[12]=0,N[13]=0,N[14]=0,N[15]=1,N}function Om(N,G,fe){var Ae=G[0],Qe=G[1],et=G[2],ut=G[3],Tt=G[4],Bt=G[5],rn=G[6],an=G[7],_n=G[8],Dn=G[9],Cn=G[10],Jn=G[11],lr=G[12],Ar=G[13],Or=G[14],jr=G[15],Jr=fe[0],uo=fe[1],ro=fe[2],Po=fe[3];return N[0]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[1]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[2]=Jr*et+uo*rn+ro*Cn+Po*Or,N[3]=Jr*ut+uo*an+ro*Jn+Po*jr,Jr=fe[4],uo=fe[5],ro=fe[6],Po=fe[7],N[4]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[5]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[6]=Jr*et+uo*rn+ro*Cn+Po*Or,N[7]=Jr*ut+uo*an+ro*Jn+Po*jr,Jr=fe[8],uo=fe[9],ro=fe[10],Po=fe[11],N[8]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[9]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[10]=Jr*et+uo*rn+ro*Cn+Po*Or,N[11]=Jr*ut+uo*an+ro*Jn+Po*jr,Jr=fe[12],uo=fe[13],ro=fe[14],Po=fe[15],N[12]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[13]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[14]=Jr*et+uo*rn+ro*Cn+Po*Or,N[15]=Jr*ut+uo*an+ro*Jn+Po*jr,N}Math.hypot||(Math.hypot=function(){for(var N=arguments,G=0,fe=arguments.length;fe--;)G+=N[fe]*N[fe];return Math.sqrt(G)});var Sm=Om,ap,Bp=function(N,G,fe){return N[0]=G[0]-fe[0],N[1]=G[1]-fe[1],N[2]=G[2]-fe[2],N};function P0(N,G,fe){var Ae=G[0],Qe=G[1],et=G[2],ut=G[3];return N[0]=fe[0]*Ae+fe[4]*Qe+fe[8]*et+fe[12]*ut,N[1]=fe[1]*Ae+fe[5]*Qe+fe[9]*et+fe[13]*ut,N[2]=fe[2]*Ae+fe[6]*Qe+fe[10]*et+fe[14]*ut,N[3]=fe[3]*Ae+fe[7]*Qe+fe[11]*et+fe[15]*ut,N}ap=new kf(3),kf!=Float32Array&&(ap[0]=0,ap[1]=0,ap[2]=0),function(){var N=new kf(4);kf!=Float32Array&&(N[0]=0,N[1]=0,N[2]=0,N[3]=0)}();var cg=function(N){var G=N[0],fe=N[1];return G*G+fe*fe},Zv=(function(){var N=new kf(2);kf!=Float32Array&&(N[0]=0,N[1]=0)}(),function(N){function G(fe){N.call(this,fe,Ex)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.createBucket=function(fe){return new Rl(fe)},G.prototype.queryRadius=function(fe){var Ae=fe;return Yg("circle-radius",this,Ae)+Yg("circle-stroke-width",this,Ae)+wm(this.paint.get("circle-translate"))},G.prototype.queryIntersectsFeature=function(fe,Ae,Qe,et,ut,Tt,Bt,rn){for(var an=cb(fe,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Tt.angle,Bt),_n=this.paint.get("circle-radius").evaluate(Ae,Qe)+this.paint.get("circle-stroke-width").evaluate(Ae,Qe),Dn=this.paint.get("circle-pitch-alignment")==="map",Cn=Dn?an:function(gi,ni){return gi.map(function(Ti){return R0(Ti,ni)})}(an,rn),Jn=Dn?_n*Bt:_n,lr=0,Ar=et;lrN.width||Qe.height>N.height||fe.x>N.width-Qe.width||fe.y>N.height-Qe.height)throw new RangeError("out of range source coordinates for image copy");if(Qe.width>G.width||Qe.height>G.height||Ae.x>G.width-Qe.width||Ae.y>G.height-Qe.height)throw new RangeError("out of range destination coordinates for image copy");for(var ut=N.data,Tt=G.data,Bt=0;Bt80*fe){Ae=et=N[0],Qe=ut=N[1];for(var Jn=fe;Jn<_n;Jn+=fe)(Tt=N[Jn])et&&(et=Tt),Bt>ut&&(ut=Bt);rn=(rn=Math.max(et-Ae,ut-Qe))!==0?1/rn:0}return Kg(Dn,Cn,fe,Ae,Qe,rn),Cn}function Px(N,G,fe,Ae,Qe){var et,ut;if(Qe===hl(N,G,fe,Ae)>0)for(et=G;et=G;et-=Ae)ut=db(et,N[et],N[et+1],ut);return ut&&Cm(ut,ut.next)&&(T1(ut),ut=ut.next),ut}function zp(N,G){if(!N)return N;G||(G=N);var fe,Ae=N;do if(fe=!1,Ae.steiner||!Cm(Ae,Ae.next)&&bu(Ae.prev,Ae,Ae.next)!==0)Ae=Ae.next;else{if(T1(Ae),(Ae=G=Ae.prev)===Ae.next)break;fe=!0}while(fe||Ae!==G);return G}function Kg(N,G,fe,Ae,Qe,et,ut){if(N){!ut&&et&&function(an,_n,Dn,Cn){var Jn=an;do Jn.z===null&&(Jn.z=Jg(Jn.x,Jn.y,_n,Dn,Cn)),Jn.prevZ=Jn.prev,Jn.nextZ=Jn.next,Jn=Jn.next;while(Jn!==an);Jn.prevZ.nextZ=null,Jn.prevZ=null,function(lr){var Ar,Or,jr,Jr,uo,ro,Po,gi,ni=1;do{for(Or=lr,lr=null,uo=null,ro=0;Or;){for(ro++,jr=Or,Po=0,Ar=0;Ar0||gi>0&&jr;)Po!==0&&(gi===0||!jr||Or.z<=jr.z)?(Jr=Or,Or=Or.nextZ,Po--):(Jr=jr,jr=jr.nextZ,gi--),uo?uo.nextZ=Jr:lr=Jr,Jr.prevZ=uo,uo=Jr;Or=jr}uo.nextZ=null,ni*=2}while(ro>1)}(Jn)}(N,Ae,Qe,et);for(var Tt,Bt,rn=N;N.prev!==N.next;)if(Tt=N.prev,Bt=N.next,et?S1(N,Ae,Qe,et):M_(N))G.push(Tt.i/fe),G.push(N.i/fe),G.push(Bt.i/fe),T1(N),N=Bt.next,rn=Bt.next;else if((N=Bt)===rn){ut?ut===1?Kg(N=Tm(zp(N),G,fe),G,fe,Ae,Qe,et,2):ut===2&&zd(N,G,fe,Ae,Qe,et):Kg(zp(N),G,fe,Ae,Qe,et,1);break}}}function M_(N){var G=N.prev,fe=N,Ae=N.next;if(bu(G,fe,Ae)>=0)return!1;for(var Qe=N.next.next;Qe!==N.prev;){if(k1(G.x,G.y,fe.x,fe.y,Ae.x,Ae.y,Qe.x,Qe.y)&&bu(Qe.prev,Qe,Qe.next)>=0)return!1;Qe=Qe.next}return!0}function S1(N,G,fe,Ae){var Qe=N.prev,et=N,ut=N.next;if(bu(Qe,et,ut)>=0)return!1;for(var Tt=Qe.xet.x?Qe.x>ut.x?Qe.x:ut.x:et.x>ut.x?et.x:ut.x,an=Qe.y>et.y?Qe.y>ut.y?Qe.y:ut.y:et.y>ut.y?et.y:ut.y,_n=Jg(Tt,Bt,G,fe,Ae),Dn=Jg(rn,an,G,fe,Ae),Cn=N.prevZ,Jn=N.nextZ;Cn&&Cn.z>=_n&&Jn&&Jn.z<=Dn;){if(Cn!==N.prev&&Cn!==N.next&&k1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Cn.x,Cn.y)&&bu(Cn.prev,Cn,Cn.next)>=0||(Cn=Cn.prevZ,Jn!==N.prev&&Jn!==N.next&&k1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Jn.x,Jn.y)&&bu(Jn.prev,Jn,Jn.next)>=0))return!1;Jn=Jn.nextZ}for(;Cn&&Cn.z>=_n;){if(Cn!==N.prev&&Cn!==N.next&&k1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Cn.x,Cn.y)&&bu(Cn.prev,Cn,Cn.next)>=0)return!1;Cn=Cn.prevZ}for(;Jn&&Jn.z<=Dn;){if(Jn!==N.prev&&Jn!==N.next&&k1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Jn.x,Jn.y)&&bu(Jn.prev,Jn,Jn.next)>=0)return!1;Jn=Jn.nextZ}return!0}function Tm(N,G,fe){var Ae=N;do{var Qe=Ae.prev,et=Ae.next.next;!Cm(Qe,et)&&D0(Qe,Ae,Ae.next,et)&&Fp(Qe,et)&&Fp(et,Qe)&&(G.push(Qe.i/fe),G.push(Ae.i/fe),G.push(et.i/fe),T1(Ae),T1(Ae.next),Ae=N=et),Ae=Ae.next}while(Ae!==N);return zp(Ae)}function zd(N,G,fe,Ae,Qe,et){var ut=N;do{for(var Tt=ut.next.next;Tt!==ut.prev;){if(ut.i!==Tt.i&&zO(ut,Tt)){var Bt=qv(ut,Tt);return ut=zp(ut,ut.next),Bt=zp(Bt,Bt.next),Kg(ut,G,fe,Ae,Qe,et),void Kg(Bt,G,fe,Ae,Qe,et)}Tt=Tt.next}ut=ut.next}while(ut!==N)}function fp(N,G){return N.x-G.x}function I0(N,G){if(G=function(Ae,Qe){var et,ut=Qe,Tt=Ae.x,Bt=Ae.y,rn=-1/0;do{if(Bt<=ut.y&&Bt>=ut.next.y&&ut.next.y!==ut.y){var an=ut.x+(Bt-ut.y)*(ut.next.x-ut.x)/(ut.next.y-ut.y);if(an<=Tt&&an>rn){if(rn=an,an===Tt){if(Bt===ut.y)return ut;if(Bt===ut.next.y)return ut.next}et=ut.x=ut.x&&ut.x>=Cn&&Tt!==ut.x&&k1(Btet.x||ut.x===et.x&&E_(et,ut)))&&(et=ut,lr=_n)),ut=ut.next;while(ut!==Dn);return et}(N,G)){var fe=qv(G,N);zp(G,G.next),zp(fe,fe.next)}}function E_(N,G){return bu(N.prev,N,G.prev)<0&&bu(G.next,N,N.next)<0}function Jg(N,G,fe,Ae,Qe){return(N=1431655765&((N=858993459&((N=252645135&((N=16711935&((N=32767*(N-fe)*Qe)|N<<8))|N<<4))|N<<2))|N<<1))|(G=1431655765&((G=858993459&((G=252645135&((G=16711935&((G=32767*(G-Ae)*Qe)|G<<8))|G<<4))|G<<2))|G<<1))<<1}function P_(N){var G=N,fe=N;do(G.x=0&&(N-ut)*(Ae-Tt)-(fe-ut)*(G-Tt)>=0&&(fe-ut)*(et-Tt)-(Qe-ut)*(Ae-Tt)>=0}function zO(N,G){return N.next.i!==G.i&&N.prev.i!==G.i&&!function(fe,Ae){var Qe=fe;do{if(Qe.i!==fe.i&&Qe.next.i!==fe.i&&Qe.i!==Ae.i&&Qe.next.i!==Ae.i&&D0(Qe,Qe.next,fe,Ae))return!0;Qe=Qe.next}while(Qe!==fe);return!1}(N,G)&&(Fp(N,G)&&Fp(G,N)&&function(fe,Ae){var Qe=fe,et=!1,ut=(fe.x+Ae.x)/2,Tt=(fe.y+Ae.y)/2;do Qe.y>Tt!=Qe.next.y>Tt&&Qe.next.y!==Qe.y&&ut<(Qe.next.x-Qe.x)*(Tt-Qe.y)/(Qe.next.y-Qe.y)+Qe.x&&(et=!et),Qe=Qe.next;while(Qe!==fe);return et}(N,G)&&(bu(N.prev,N,G.prev)||bu(N,G.prev,G))||Cm(N,G)&&bu(N.prev,N,N.next)>0&&bu(G.prev,G,G.next)>0)}function bu(N,G,fe){return(G.y-N.y)*(fe.x-G.x)-(G.x-N.x)*(fe.y-G.y)}function Cm(N,G){return N.x===G.x&&N.y===G.y}function D0(N,G,fe,Ae){var Qe=Ri(bu(N,G,fe)),et=Ri(bu(N,G,Ae)),ut=Ri(bu(fe,Ae,N)),Tt=Ri(bu(fe,Ae,G));return Qe!==et&&ut!==Tt||!(Qe!==0||!Sa(N,fe,G))||!(et!==0||!Sa(N,Ae,G))||!(ut!==0||!Sa(fe,N,Ae))||!(Tt!==0||!Sa(fe,G,Ae))}function Sa(N,G,fe){return G.x<=Math.max(N.x,fe.x)&&G.x>=Math.min(N.x,fe.x)&&G.y<=Math.max(N.y,fe.y)&&G.y>=Math.min(N.y,fe.y)}function Ri(N){return N>0?1:N<0?-1:0}function Fp(N,G){return bu(N.prev,N,N.next)<0?bu(N,G,N.next)>=0&&bu(N,N.prev,G)>=0:bu(N,G,N.prev)<0||bu(N,N.next,G)<0}function qv(N,G){var fe=new Np(N.i,N.x,N.y),Ae=new Np(G.i,G.x,G.y),Qe=N.next,et=G.prev;return N.next=G,G.prev=N,fe.next=Qe,Qe.prev=fe,Ae.next=fe,fe.prev=Ae,et.next=Ae,Ae.prev=et,Ae}function db(N,G,fe,Ae){var Qe=new Np(N,G,fe);return Ae?(Qe.next=Ae.next,Qe.prev=Ae,Ae.next.prev=Qe,Ae.next=Qe):(Qe.prev=Qe,Qe.next=Qe),Qe}function T1(N){N.next.prev=N.prev,N.prev.next=N.next,N.prevZ&&(N.prevZ.nextZ=N.nextZ),N.nextZ&&(N.nextZ.prevZ=N.prevZ)}function Np(N,G,fe){this.i=N,this.x=G,this.y=fe,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function hl(N,G,fe,Ae){for(var Qe=0,et=G,ut=fe-Ae;etfe;){if(Ae-fe>600){var et=Ae-fe+1,ut=G-fe+1,Tt=Math.log(et),Bt=.5*Math.exp(2*Tt/3),rn=.5*Math.sqrt(Tt*Bt*(et-Bt)/et)*(ut-et/2<0?-1:1);Rx(N,G,Math.max(fe,Math.floor(G-ut*Bt/et+rn)),Math.min(Ae,Math.floor(G+(et-ut)*Bt/et+rn)),Qe)}var an=N[G],_n=fe,Dn=Ae;for(B0(N,fe,G),Qe(N[Ae],an)>0&&B0(N,fe,Ae);_n0;)Dn--}Qe(N[fe],an)===0?B0(N,fe,Dn):B0(N,++Dn,Ae),Dn<=G&&(fe=Dn+1),G<=Dn&&(Ae=Dn-1)}}function B0(N,G,fe){var Ae=N[G];N[G]=N[fe],N[fe]=Ae}function fo(N,G){return NG?1:0}function e0(N,G){var fe=N.length;if(fe<=1)return[N];for(var Ae,Qe,et=[],ut=0;ut1)for(var Bt=0;Bt0&&(Ae+=N[Qe-1].length,fe.holes.push(Ae))}return fe},up.default=Xf;var Fd=function(N){this.zoom=N.zoom,this.overscaling=N.overscaling,this.layers=N.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=N.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mi,this.indexArray=new Fe,this.indexArray2=new Vt,this.programConfigurations=new Tc(N.layers,N.zoom),this.segments=new Zr,this.segments2=new Zr,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};Fd.prototype.populate=function(N,G,fe){this.hasPattern=ug("fill",this.layers,G);for(var Ae=this.layers[0].layout.get("fill-sort-key"),Qe=[],et=0,ut=N;et>3}if(Qe--,Ae===1||Ae===2)et+=N.readSVarint(),ut+=N.readSVarint(),Ae===1&&(G&&Tt.push(G),G=[]),G.push(new a(et,ut));else{if(Ae!==7)throw new Error("unknown command "+Ae);G&&G.push(G[0].clone())}}return G&&Tt.push(G),Tt},Sh.prototype.bbox=function(){var N=this._pbf;N.pos=this._geometry;for(var G=N.readVarint()+N.pos,fe=1,Ae=0,Qe=0,et=0,ut=1/0,Tt=-1/0,Bt=1/0,rn=-1/0;N.pos>3}if(Ae--,fe===1||fe===2)(Qe+=N.readSVarint())Tt&&(Tt=Qe),(et+=N.readSVarint())rn&&(rn=et);else if(fe!==7)throw new Error("unknown command "+fe)}return[ut,Bt,Tt,rn]},Sh.prototype.toGeoJSON=function(N,G,fe){var Ae,Qe,et=this.extent*Math.pow(2,fe),ut=this.extent*N,Tt=this.extent*G,Bt=this.loadGeometry(),rn=Sh.types[this.type];function an(Cn){for(var Jn=0;Jn>3;Qe=ut===1?Ae.readString():ut===2?Ae.readFloat():ut===3?Ae.readDouble():ut===4?Ae.readVarint64():ut===5?Ae.readVarint():ut===6?Ae.readSVarint():ut===7?Ae.readBoolean():null}return Qe}(fe))}function hb(N,G,fe){if(N===3){var Ae=new Lx(fe,fe.readVarint()+fe.pos);Ae.length&&(G[Ae.name]=Ae)}}Yv.prototype.feature=function(N){if(N<0||N>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[N];var G=this._pbf.readVarint()+this._pbf.pos;return new Ll(this._pbf,G,this.extent,this._keys,this._values)};var Tf={VectorTile:function(N,G){this.layers=N.readFields(hb,{},G)},VectorTileFeature:Ll,VectorTileLayer:Lx},$O=Tf.VectorTileFeature.types,C1=Math.pow(2,13);function A1(N,G,fe,Ae,Qe,et,ut,Tt){N.emplaceBack(G,fe,2*Math.floor(Ae*C1)+ut,Qe*C1*2,et*C1*2,Math.round(Tt))}var pd=function(N){this.zoom=N.zoom,this.overscaling=N.overscaling,this.layers=N.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=N.index,this.hasPattern=!1,this.layoutVertexArray=new Ot,this.indexArray=new Fe,this.programConfigurations=new Tc(N.layers,N.zoom),this.segments=new Zr,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function D_(N,G){return N.x===G.x&&(N.x<0||N.x>Hs)||N.y===G.y&&(N.y<0||N.y>Hs)}pd.prototype.populate=function(N,G,fe){this.features=[],this.hasPattern=ug("fill-extrusion",this.layers,G);for(var Ae=0,Qe=N;AeHs})||Bs.every(function(Ja){return Ja.y<0})||Bs.every(function(Ja){return Ja.y>Hs})))for(var lr=0,Ar=0;Ar=1){var jr=Jn[Ar-1];if(!D_(Or,jr)){_n.vertexLength+4>Zr.MAX_VERTEX_ARRAY_LENGTH&&(_n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Jr=Or.sub(jr)._perp()._unit(),uo=jr.dist(Or);lr+uo>32768&&(lr=0),A1(this.layoutVertexArray,Or.x,Or.y,Jr.x,Jr.y,0,0,lr),A1(this.layoutVertexArray,Or.x,Or.y,Jr.x,Jr.y,0,1,lr),lr+=uo,A1(this.layoutVertexArray,jr.x,jr.y,Jr.x,Jr.y,0,0,lr),A1(this.layoutVertexArray,jr.x,jr.y,Jr.x,Jr.y,0,1,lr);var ro=_n.vertexLength;this.indexArray.emplaceBack(ro,ro+2,ro+1),this.indexArray.emplaceBack(ro+1,ro+2,ro+3),_n.vertexLength+=4,_n.primitiveLength+=2}}}}if(_n.vertexLength+Bt>Zr.MAX_VERTEX_ARRAY_LENGTH&&(_n=this.segments.prepareSegment(Bt,this.layoutVertexArray,this.indexArray)),$O[N.type]==="Polygon"){for(var Po=[],gi=[],ni=_n.vertexLength,Ti=0,vi=Tt;Ti=2&&N[Bt-1].equals(N[Bt-2]);)Bt--;for(var rn=0;rn0;if(gi&&Or>rn){var Ti=an.dist(Cn);if(Ti>2*_n){var vi=an.sub(an.sub(Cn)._mult(_n/Ti)._round());this.updateDistance(Cn,vi),this.addCurrentVertex(vi,lr,0,0,Dn),Cn=vi}}var na=Cn&&Jn,Ji=na?fe:Tt?"butt":Ae;if(na&&Ji==="round"&&(roQe&&(Ji="bevel"),Ji==="bevel"&&(ro>2&&(Ji="flipbevel"),ro100)jr=Ar.mult(-1);else{var La=ro*lr.add(Ar).mag()/lr.sub(Ar).mag();jr._perp()._mult(La*(ni?-1:1))}this.addCurrentVertex(an,jr,0,0,Dn),this.addCurrentVertex(an,jr.mult(-1),0,0,Dn)}else if(Ji==="bevel"||Ji==="fakeround"){var ca=-Math.sqrt(ro*ro-1),Zi=ni?ca:0,Bs=ni?0:ca;if(Cn&&this.addCurrentVertex(an,lr,Zi,Bs,Dn),Ji==="fakeround")for(var Ja=Math.round(180*Po/Math.PI/20),Vl=1;Vl2*_n){var Fs=an.add(Jn.sub(an)._mult(_n/aa)._round());this.updateDistance(an,Fs),this.addCurrentVertex(Fs,Ar,0,0,Dn),an=Fs}}}}},md.prototype.addCurrentVertex=function(N,G,fe,Ae,Qe,et){et===void 0&&(et=!1);var ut=G.x+G.y*fe,Tt=G.y-G.x*fe,Bt=-G.x+G.y*Ae,rn=-G.y-G.x*Ae;this.addHalfVertex(N,ut,Tt,et,!1,fe,Qe),this.addHalfVertex(N,Bt,rn,et,!0,-Ae,Qe),this.distance>pb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(N,G,fe,Ae,Qe,et))},md.prototype.addHalfVertex=function(N,G,fe,Ae,Qe,et,ut){var Tt=N.x,Bt=N.y,rn=.5*(this.lineClips?this.scaledDistance*(pb-1):this.scaledDistance);if(this.layoutVertexArray.emplaceBack((Tt<<1)+(Ae?1:0),(Bt<<1)+(Qe?1:0),Math.round(63*G)+128,Math.round(63*fe)+128,1+(et===0?0:et<0?-1:1)|(63&rn)<<2,rn>>6),this.lineClips){var an=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(an,this.lineClipsArray.length)}var _n=ut.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,_n),ut.primitiveLength++),Qe?this.e2=_n:this.e1=_n},md.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},md.prototype.updateDistance=function(N,G){this.distance+=N.dist(G),this.updateScaledDistance()},pi("LineBucket",md,{omit:["layers","patternFeatures"]});var Nl=new Jl({"line-cap":new Vi(xt.layout_line["line-cap"]),"line-join":new fa(xt.layout_line["line-join"]),"line-miter-limit":new Vi(xt.layout_line["line-miter-limit"]),"line-round-limit":new Vi(xt.layout_line["line-round-limit"]),"line-sort-key":new fa(xt.layout_line["line-sort-key"])}),fg={paint:new Jl({"line-opacity":new fa(xt.paint_line["line-opacity"]),"line-color":new fa(xt.paint_line["line-color"]),"line-translate":new Vi(xt.paint_line["line-translate"]),"line-translate-anchor":new Vi(xt.paint_line["line-translate-anchor"]),"line-width":new fa(xt.paint_line["line-width"]),"line-gap-width":new fa(xt.paint_line["line-gap-width"]),"line-offset":new fa(xt.paint_line["line-offset"]),"line-blur":new fa(xt.paint_line["line-blur"]),"line-dasharray":new Zf(xt.paint_line["line-dasharray"]),"line-pattern":new au(xt.paint_line["line-pattern"]),"line-gradient":new Zl(xt.paint_line["line-gradient"])}),layout:Nl},Dx=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.possiblyEvaluate=function(fe,Ae){return Ae=new us(Math.floor(Ae.zoom),{now:Ae.now,fadeDuration:Ae.fadeDuration,zoomHistory:Ae.zoomHistory,transition:Ae.transition}),N.prototype.possiblyEvaluate.call(this,fe,Ae)},G.prototype.evaluate=function(fe,Ae,Qe,et){return Ae=x({},Ae,{zoom:Math.floor(Ae.zoom)}),N.prototype.evaluate.call(this,fe,Ae,Qe,et)},G}(fa),UO=new Dx(fg.paint.properties["line-width"].specification);UO.useIntegerZoom=!0;var t0=function(N){function G(fe){N.call(this,fe,fg),this.gradientVersion=0}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._handleSpecialPaintPropertyUpdate=function(fe){if(fe==="line-gradient"){var Ae=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=Ae._styleExpression.expression instanceof ko,this.gradientVersion=(this.gradientVersion+1)%m}},G.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},G.prototype.recalculate=function(fe,Ae){N.prototype.recalculate.call(this,fe,Ae),this.paint._values["line-floorwidth"]=UO.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,fe)},G.prototype.createBucket=function(fe){return new md(fe)},G.prototype.queryRadius=function(fe){var Ae=fe,Qe=mb(Yg("line-width",this,Ae),Yg("line-gap-width",this,Ae)),et=Yg("line-offset",this,Ae);return Qe/2+Math.abs(et)+wm(this.paint.get("line-translate"))},G.prototype.queryIntersectsFeature=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=cb(fe,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Tt.angle,Bt),an=Bt/2*mb(this.paint.get("line-width").evaluate(Ae,Qe),this.paint.get("line-gap-width").evaluate(Ae,Qe)),_n=this.paint.get("line-offset").evaluate(Ae,Qe);return _n&&(et=function(Dn,Cn){for(var Jn=[],lr=new a(0,0),Ar=0;Ar=3){for(var Or=0;Or0?G+2*N:N}var Mm=El([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),jO=El([{name:"a_projected_pos",components:3,type:"Float32"}],4),z_=(El([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),El([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),wl=(El([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),El([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Kv=El([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function fc(N,G,fe){return N.sections.forEach(function(Ae){Ae.text=function(Qe,et,ut){var Tt=et.layout.get("text-transform").evaluate(ut,{});return Tt==="uppercase"?Qe=Qe.toLocaleUpperCase():Tt==="lowercase"&&(Qe=Qe.toLocaleLowerCase()),Lu.applyArabicShaping&&(Qe=Lu.applyArabicShaping(Qe)),Qe}(Ae.text,G,fe)}),N}El([{name:"triangle",components:3,type:"Uint16"}]),El([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),El([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),El([{type:"Float32",name:"offsetX"}]),El([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Jv={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},$l=24,M1=function(N,G,fe,Ae,Qe){var et,ut,Tt=8*Qe-Ae-1,Bt=(1<>1,an=-7,_n=fe?Qe-1:0,Dn=fe?-1:1,Cn=N[G+_n];for(_n+=Dn,et=Cn&(1<<-an)-1,Cn>>=-an,an+=Tt;an>0;et=256*et+N[G+_n],_n+=Dn,an-=8);for(ut=et&(1<<-an)-1,et>>=-an,an+=Ae;an>0;ut=256*ut+N[G+_n],_n+=Dn,an-=8);if(et===0)et=1-rn;else{if(et===Bt)return ut?NaN:1/0*(Cn?-1:1);ut+=Math.pow(2,Ae),et-=rn}return(Cn?-1:1)*ut*Math.pow(2,et-Ae)},th=function(N,G,fe,Ae,Qe,et){var ut,Tt,Bt,rn=8*et-Qe-1,an=(1<>1,Dn=Qe===23?Math.pow(2,-24)-Math.pow(2,-77):0,Cn=Ae?0:et-1,Jn=Ae?1:-1,lr=G<0||G===0&&1/G<0?1:0;for(G=Math.abs(G),isNaN(G)||G===1/0?(Tt=isNaN(G)?1:0,ut=an):(ut=Math.floor(Math.log(G)/Math.LN2),G*(Bt=Math.pow(2,-ut))<1&&(ut--,Bt*=2),(G+=ut+_n>=1?Dn/Bt:Dn*Math.pow(2,1-_n))*Bt>=2&&(ut++,Bt/=2),ut+_n>=an?(Tt=0,ut=an):ut+_n>=1?(Tt=(G*Bt-1)*Math.pow(2,Qe),ut+=_n):(Tt=G*Math.pow(2,_n-1)*Math.pow(2,Qe),ut=0));Qe>=8;N[fe+Cn]=255&Tt,Cn+=Jn,Tt/=256,Qe-=8);for(ut=ut<0;N[fe+Cn]=255&ut,Cn+=Jn,ut/=256,rn-=8);N[fe+Cn-Jn]|=128*lr},Bx=ic;function ic(N){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(N)?N:new Uint8Array(N||0),this.pos=0,this.type=0,this.length=this.buf.length}ic.Varint=0,ic.Fixed64=1,ic.Bytes=2,ic.Fixed32=5;var F_=4294967296,QO=1/F_,Du=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function su(N){return N.type===ic.Bytes?N.readVarint()+N.pos:N.pos+1}function dg(N,G,fe){return fe?4294967296*G+(N>>>0):4294967296*(G>>>0)+(N>>>0)}function n0(N,G,fe){var Ae=G<=16383?1:G<=2097151?2:G<=268435455?3:Math.floor(Math.log(G)/(7*Math.LN2));fe.realloc(Ae);for(var Qe=fe.pos-1;Qe>=N;Qe--)fe.buf[Qe+Ae]=fe.buf[Qe]}function N_(N,G){for(var fe=0;fe>>8,N[fe+2]=G>>>16,N[fe+3]=G>>>24}function gb(N,G){return(N[G]|N[G+1]<<8|N[G+2]<<16)+(N[G+3]<<24)}ic.prototype={destroy:function(){this.buf=null},readFields:function(N,G,fe){for(fe=fe||this.length;this.pos>3,et=this.pos;this.type=7&Ae,N(Qe,G,this),this.pos===et&&this.skip(Ae)}return G},readMessage:function(N,G){return this.readFields(N,G,this.readVarint()+this.pos)},readFixed32:function(){var N=zx(this.buf,this.pos);return this.pos+=4,N},readSFixed32:function(){var N=gb(this.buf,this.pos);return this.pos+=4,N},readFixed64:function(){var N=zx(this.buf,this.pos)+zx(this.buf,this.pos+4)*F_;return this.pos+=8,N},readSFixed64:function(){var N=zx(this.buf,this.pos)+gb(this.buf,this.pos+4)*F_;return this.pos+=8,N},readFloat:function(){var N=M1(this.buf,this.pos,!0,23,4);return this.pos+=4,N},readDouble:function(){var N=M1(this.buf,this.pos,!0,52,8);return this.pos+=8,N},readVarint:function(N){var G,fe,Ae=this.buf;return G=127&(fe=Ae[this.pos++]),fe<128?G:(G|=(127&(fe=Ae[this.pos++]))<<7,fe<128?G:(G|=(127&(fe=Ae[this.pos++]))<<14,fe<128?G:(G|=(127&(fe=Ae[this.pos++]))<<21,fe<128?G:function(Qe,et,ut){var Tt,Bt,rn=ut.buf;if(Tt=(112&(Bt=rn[ut.pos++]))>>4,Bt<128||(Tt|=(127&(Bt=rn[ut.pos++]))<<3,Bt<128)||(Tt|=(127&(Bt=rn[ut.pos++]))<<10,Bt<128)||(Tt|=(127&(Bt=rn[ut.pos++]))<<17,Bt<128)||(Tt|=(127&(Bt=rn[ut.pos++]))<<24,Bt<128)||(Tt|=(1&(Bt=rn[ut.pos++]))<<31,Bt<128))return dg(Qe,Tt,et);throw new Error("Expected varint not more than 10 bytes")}(G|=(15&(fe=Ae[this.pos]))<<28,N,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var N=this.readVarint();return N%2==1?(N+1)/-2:N/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var N=this.readVarint()+this.pos,G=this.pos;return this.pos=N,N-G>=12&&Du?function(fe,Ae,Qe){return Du.decode(fe.subarray(Ae,Qe))}(this.buf,G,N):function(fe,Ae,Qe){for(var et="",ut=Ae;ut239?4:an>223?3:an>191?2:1;if(ut+Dn>Qe)break;Dn===1?an<128&&(_n=an):Dn===2?(192&(Tt=fe[ut+1]))==128&&(_n=(31&an)<<6|63&Tt)<=127&&(_n=null):Dn===3?(Tt=fe[ut+1],Bt=fe[ut+2],(192&Tt)==128&&(192&Bt)==128&&((_n=(15&an)<<12|(63&Tt)<<6|63&Bt)<=2047||_n>=55296&&_n<=57343)&&(_n=null)):Dn===4&&(Tt=fe[ut+1],Bt=fe[ut+2],rn=fe[ut+3],(192&Tt)==128&&(192&Bt)==128&&(192&rn)==128&&((_n=(15&an)<<18|(63&Tt)<<12|(63&Bt)<<6|63&rn)<=65535||_n>=1114112)&&(_n=null)),_n===null?(_n=65533,Dn=1):_n>65535&&(_n-=65536,et+=String.fromCharCode(_n>>>10&1023|55296),_n=56320|1023&_n),et+=String.fromCharCode(_n),ut+=Dn}return et}(this.buf,G,N)},readBytes:function(){var N=this.readVarint()+this.pos,G=this.buf.subarray(this.pos,N);return this.pos=N,G},readPackedVarint:function(N,G){if(this.type!==ic.Bytes)return N.push(this.readVarint(G));var fe=su(this);for(N=N||[];this.pos127;);else if(G===ic.Bytes)this.pos=this.readVarint()+this.pos;else if(G===ic.Fixed32)this.pos+=4;else{if(G!==ic.Fixed64)throw new Error("Unimplemented type: "+G);this.pos+=8}},writeTag:function(N,G){this.writeVarint(N<<3|G)},realloc:function(N){for(var G=this.length||16;G268435455||N<0?function(G,fe){var Ae,Qe;if(G>=0?(Ae=G%4294967296|0,Qe=G/4294967296|0):(Qe=~(-G/4294967296),4294967295^(Ae=~(-G%4294967296))?Ae=Ae+1|0:(Ae=0,Qe=Qe+1|0)),G>=18446744073709552e3||G<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");fe.realloc(10),function(et,ut,Tt){Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos]=127&et}(Ae,0,fe),function(et,ut){var Tt=(7&et)<<4;ut.buf[ut.pos++]|=Tt|((et>>>=3)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et)))))}(Qe,fe)}(N,this):(this.realloc(4),this.buf[this.pos++]=127&N|(N>127?128:0),N<=127||(this.buf[this.pos++]=127&(N>>>=7)|(N>127?128:0),N<=127||(this.buf[this.pos++]=127&(N>>>=7)|(N>127?128:0),N<=127||(this.buf[this.pos++]=N>>>7&127))))},writeSVarint:function(N){this.writeVarint(N<0?2*-N-1:2*N)},writeBoolean:function(N){this.writeVarint(!!N)},writeString:function(N){N=String(N),this.realloc(4*N.length),this.pos++;var G=this.pos;this.pos=function(Ae,Qe,et){for(var ut,Tt,Bt=0;Bt55295&&ut<57344){if(!Tt){ut>56319||Bt+1===Qe.length?(Ae[et++]=239,Ae[et++]=191,Ae[et++]=189):Tt=ut;continue}if(ut<56320){Ae[et++]=239,Ae[et++]=191,Ae[et++]=189,Tt=ut;continue}ut=Tt-55296<<10|ut-56320|65536,Tt=null}else Tt&&(Ae[et++]=239,Ae[et++]=191,Ae[et++]=189,Tt=null);ut<128?Ae[et++]=ut:(ut<2048?Ae[et++]=ut>>6|192:(ut<65536?Ae[et++]=ut>>12|224:(Ae[et++]=ut>>18|240,Ae[et++]=ut>>12&63|128),Ae[et++]=ut>>6&63|128),Ae[et++]=63&ut|128)}return et}(this.buf,N,this.pos);var fe=this.pos-G;fe>=128&&n0(G,fe,this),this.pos=G-1,this.writeVarint(fe),this.pos+=fe},writeFloat:function(N){this.realloc(4),th(this.buf,N,this.pos,!0,23,4),this.pos+=4},writeDouble:function(N){this.realloc(8),th(this.buf,N,this.pos,!0,52,8),this.pos+=8},writeBytes:function(N){var G=N.length;this.writeVarint(G),this.realloc(G);for(var fe=0;fe=128&&n0(fe,Ae,this),this.pos=fe-1,this.writeVarint(Ae),this.pos+=Ae},writeMessage:function(N,G,fe){this.writeTag(N,ic.Bytes),this.writeRawMessage(G,fe)},writePackedVarint:function(N,G){G.length&&this.writeMessage(N,N_,G)},writePackedSVarint:function(N,G){G.length&&this.writeMessage(N,ey,G)},writePackedBoolean:function(N,G){G.length&&this.writeMessage(N,E1,G)},writePackedFloat:function(N,G){G.length&&this.writeMessage(N,hg,G)},writePackedDouble:function(N,G){G.length&&this.writeMessage(N,ty,G)},writePackedFixed32:function(N,G){G.length&&this.writeMessage(N,z0,G)},writePackedSFixed32:function(N,G){G.length&&this.writeMessage(N,pg,G)},writePackedFixed64:function(N,G){G.length&&this.writeMessage(N,P1,G)},writePackedSFixed64:function(N,G){G.length&&this.writeMessage(N,R1,G)},writeBytesField:function(N,G){this.writeTag(N,ic.Bytes),this.writeBytes(G)},writeFixed32Field:function(N,G){this.writeTag(N,ic.Fixed32),this.writeFixed32(G)},writeSFixed32Field:function(N,G){this.writeTag(N,ic.Fixed32),this.writeSFixed32(G)},writeFixed64Field:function(N,G){this.writeTag(N,ic.Fixed64),this.writeFixed64(G)},writeSFixed64Field:function(N,G){this.writeTag(N,ic.Fixed64),this.writeSFixed64(G)},writeVarintField:function(N,G){this.writeTag(N,ic.Varint),this.writeVarint(G)},writeSVarintField:function(N,G){this.writeTag(N,ic.Varint),this.writeSVarint(G)},writeStringField:function(N,G){this.writeTag(N,ic.Bytes),this.writeString(G)},writeFloatField:function(N,G){this.writeTag(N,ic.Fixed32),this.writeFloat(G)},writeDoubleField:function(N,G){this.writeTag(N,ic.Fixed64),this.writeDouble(G)},writeBooleanField:function(N,G){this.writeVarintField(N,!!G)}};var Fx=3;function $_(N,G,fe){N===1&&fe.readMessage(Nx,G)}function Nx(N,G,fe){if(N===3){var Ae=fe.readMessage(V_,{}),Qe=Ae.id,et=Ae.bitmap,ut=Ae.width,Tt=Ae.height,Bt=Ae.left,rn=Ae.top,an=Ae.advance;G.push({id:Qe,bitmap:new Fl({width:ut+2*Fx,height:Tt+2*Fx},et),metrics:{width:ut,height:Tt,left:Bt,top:rn,advance:an}})}}function V_(N,G,fe){N===1?G.id=fe.readVarint():N===2?G.bitmap=fe.readBytes():N===3?G.width=fe.readVarint():N===4?G.height=fe.readVarint():N===5?G.left=fe.readSVarint():N===6?G.top=fe.readSVarint():N===7&&(G.advance=fe.readVarint())}var vb=Fx;function L1(N){for(var G=0,fe=0,Ae=0,Qe=N;Ae=0;Dn--){var Cn=ut[Dn];if(!(_n.w>Cn.w||_n.h>Cn.h)){if(_n.x=Cn.x,_n.y=Cn.y,Bt=Math.max(Bt,_n.y+_n.h),Tt=Math.max(Tt,_n.x+_n.w),_n.w===Cn.w&&_n.h===Cn.h){var Jn=ut.pop();Dn0&&yg>Uo&&(Uo=yg)}else{var Dm=Ja[Xs.fontStack],H1=Dm&&Dm[Mc];if(H1&&H1.rect)Im=H1.rect,il=H1.metrics;else{var Wx=Bs[Xs.fontStack],Ec=Wx&&Wx[Mc];if(!Ec)continue;il=Ec.metrics}Mh=(is-Xs.scale)*$l}Hp?(Zi.verticalizable=!0,Bl.push({glyph:Mc,imageName:ah,x:xu,y:qu+Mh,vertical:Hp,scale:Xs.scale,fontStack:Xs.fontStack,sectionIndex:ac,metrics:il,rect:Im}),xu+=Bu*Xs.scale+Fs):(Bl.push({glyph:Mc,imageName:ah,x:xu,y:qu+Mh,vertical:Hp,scale:Xs.scale,fontStack:Xs.fontStack,sectionIndex:ac,metrics:il,rect:Im}),xu+=il.advance*Xs.scale+Fs)}if(Bl.length!==0){var Qc=xu-Fs;Vc=Math.max(Qc,Vc),ZO(Bl,0,Bl.length-1,Uc,Uo)}xu=0;var Hc=zs*is+Uo;Ac.lineOffset=Math.max(Uo,Vs),qu+=Hc,pl=Math.max(Hc,pl),++_u}else qu+=zs,++_u}var _s=qu-ny,Jc=bb(gs),Pc=Jc.horizontalAlign,Z1=Jc.verticalAlign;(function(uy,q1,H0,W1,Y1,X1,Zp,fy,JO){var Bm=(q1-H0)*Y1,Ob=0;Ob=X1!==Zp?-fy*W1-ny:(-W1*JO+.5)*Zp;for(var Wu=0,Yx=uy;Wu=0&&Ae>=N&&$x[this.text.charCodeAt(Ae)];Ae--)fe--;this.text=this.text.substring(N,fe),this.sectionIndex=this.sectionIndex.slice(N,fe)},cf.prototype.substring=function(N,G){var fe=new cf;return fe.text=this.text.substring(N,G),fe.sectionIndex=this.sectionIndex.slice(N,G),fe.sections=this.sections,fe},cf.prototype.toString=function(){return this.text},cf.prototype.getMaxScale=function(){var N=this;return this.sectionIndex.reduce(function(G,fe){return Math.max(G,N.sections[fe].scale)},0)},cf.prototype.addTextSection=function(N,G){this.text+=N.text,this.sections.push(I1.forText(N.scale,N.fontStack||G));for(var fe=this.sections.length-1,Ae=0;Ae=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var $x={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Nd={};function ry(N,G,fe,Ae,Qe,et){if(G.imageName){var ut=Ae[G.imageName];return ut?ut.displaySize[0]*G.scale*$l/et+Qe:0}var Tt=fe[G.fontStack],Bt=Tt&&Tt[N];return Bt?Bt.metrics.advance*G.scale+Qe:0}function HO(N,G,fe,Ae){var Qe=Math.pow(N-G,2);return Ae?N=0,an=0,_n=0;_n-fe/2;){if(--ut<0)return!1;Tt-=N[ut].dist(et),et=N[ut]}Tt+=N[ut].dist(N[ut+1]),ut++;for(var Bt=[],rn=0;TtAe;)rn-=Bt.shift().angleDelta;if(rn>Qe)return!1;ut++,Tt+=_n.dist(Dn)}return!0}function z1(N){for(var G=0,fe=0;fern){var Jn=(rn-Bt)/Cn,lr=ra(_n.x,Dn.x,Jn),Ar=ra(_n.y,Dn.y,Jn),Or=new mg(lr,Ar,Dn.angleTo(_n),an);return Or._round(),!ut||B1(N,Or,Tt,ut,G)?Or:void 0}Bt+=Cn}}function F1(N,G,fe,Ae,Qe,et,ut,Tt,Bt){var rn=iy(Ae,et,ut),an=qO(Ae,Qe),_n=an*ut,Dn=N[0].x===0||N[0].x===Bt||N[0].y===0||N[0].y===Bt;return G-_n=0&&uo=0&&ro=0&&Dn+rn<=an){var Po=new mg(uo,ro,jr,Jn);Po._round(),Ae&&!B1(N,Po,et,Ae,Qe)||Cn.push(Po)}}_n+=Or}return Tt||Cn.length||ut||(Cn=rh(N,_n/2,fe,Ae,Qe,et,ut,!0,Bt)),Cn}function H_(N,G,fe,Ae,Qe){for(var et=[],ut=0;ut=Ae&&_n.x>=Ae||(an.x>=Ae?an=new a(Ae,an.y+(_n.y-an.y)*((Ae-an.x)/(_n.x-an.x)))._round():_n.x>=Ae&&(_n=new a(Ae,an.y+(_n.y-an.y)*((Ae-an.x)/(_n.x-an.x)))._round()),an.y>=Qe&&_n.y>=Qe||(an.y>=Qe?an=new a(an.x+(_n.x-an.x)*((Qe-an.y)/(_n.y-an.y)),Qe)._round():_n.y>=Qe&&(_n=new a(an.x+(_n.x-an.x)*((Qe-an.y)/(_n.y-an.y)),Qe)._round()),Bt&&an.equals(Bt[Bt.length-1])||(Bt=[an],et.push(Bt)),Bt.push(_n)))))}return et}var nc=gd;function $0(N,G,fe,Ae){var Qe=[],et=N.image,ut=et.pixelRatio,Tt=et.paddedRect.w-2*nc,Bt=et.paddedRect.h-2*nc,rn=N.right-N.left,an=N.bottom-N.top,_n=et.stretchX||[[0,Tt]],Dn=et.stretchY||[[0,Bt]],Cn=function(zs,gs){return zs+gs[1]-gs[0]},Jn=_n.reduce(Cn,0),lr=Dn.reduce(Cn,0),Ar=Tt-Jn,Or=Bt-lr,jr=0,Jr=Jn,uo=0,ro=lr,Po=0,gi=Ar,ni=0,Ti=Or;if(et.content&&Ae){var vi=et.content;jr=vd(_n,0,vi[0]),uo=vd(Dn,0,vi[1]),Jr=vd(_n,vi[0],vi[2]),ro=vd(Dn,vi[1],vi[3]),Po=vi[0]-jr,ni=vi[1]-uo,gi=vi[2]-vi[0]-Jr,Ti=vi[3]-vi[1]-ro}var na=function(zs,gs,rc,aa){var Fs=N1(zs.stretch-jr,Jr,rn,N.left),$c=r0(zs.fixed-Po,gi,zs.stretch,Jn),xc=N1(gs.stretch-uo,ro,an,N.top),xu=r0(gs.fixed-ni,Ti,gs.stretch,lr),qu=N1(rc.stretch-jr,Jr,rn,N.left),Vc=r0(rc.fixed-Po,gi,rc.stretch,Jn),pl=N1(aa.stretch-uo,ro,an,N.top),Uc=r0(aa.fixed-ni,Ti,aa.stretch,lr),_u=new a(Fs,xc),uf=new a(qu,xc),ff=new a(qu,pl),jc=new a(Fs,pl),is=new a($c/ut,xu/ut),Vs=new a(Vc/ut,Uc/ut),Ac=G*Math.PI/180;if(Ac){var Bl=Math.sin(Ac),Uo=Math.cos(Ac),ql=[Uo,-Bl,Bl,Uo];_u._matMult(ql),uf._matMult(ql),jc._matMult(ql),ff._matMult(ql)}var Xs=zs.stretch+zs.fixed,ac=rc.stretch+rc.fixed,Mc=gs.stretch+gs.fixed,Mh=aa.stretch+aa.fixed;return{tl:_u,tr:uf,bl:jc,br:ff,tex:{x:et.paddedRect.x+nc+Xs,y:et.paddedRect.y+nc+Mc,w:ac-Xs,h:Mh-Mc},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:is,pixelOffsetBR:Vs,minFontScaleX:gi/ut/rn,minFontScaleY:Ti/ut/an,isSDF:fe}};if(Ae&&(et.stretchX||et.stretchY))for(var Ji=wS(_n,Ar,Jn),La=wS(Dn,Or,lr),ca=0;ca0&&(Cn=Math.max(10,Cn),this.circleDiameter=Cn)}else{var Jn=et.top*ut-Tt,lr=et.bottom*ut+Tt,Ar=et.left*ut-Tt,Or=et.right*ut+Tt,jr=et.collisionPadding;if(jr&&(Ar-=jr[0]*ut,Jn-=jr[1]*ut,Or+=jr[2]*ut,lr+=jr[3]*ut),rn){var Jr=new a(Ar,Jn),uo=new a(Or,Jn),ro=new a(Ar,lr),Po=new a(Or,lr),gi=rn*Math.PI/180;Jr._rotate(gi),uo._rotate(gi),ro._rotate(gi),Po._rotate(gi),Ar=Math.min(Jr.x,uo.x,ro.x,Po.x),Or=Math.max(Jr.x,uo.x,ro.x,Po.x),Jn=Math.min(Jr.y,uo.y,ro.y,Po.y),lr=Math.max(Jr.y,uo.y,ro.y,Po.y)}N.emplaceBack(G.x,G.y,Ar,Jn,Or,lr,fe,Ae,Qe)}this.boxEndIndex=N.length},oh=function(N,G){if(N===void 0&&(N=[]),G===void 0&&(G=Ch),this.data=N,this.length=this.data.length,this.compare=G,this.length>0)for(var fe=(this.length>>1)-1;fe>=0;fe--)this._down(fe)};function Ch(N,G){return NG?1:0}function Z_(N,G,fe){G===void 0&&(G=1),fe===void 0&&(fe=!1);for(var Ae=1/0,Qe=1/0,et=-1/0,ut=-1/0,Tt=N[0],Bt=0;Btet)&&(et=rn.x),(!Bt||rn.y>ut)&&(ut=rn.y)}var an=et-Ae,_n=ut-Qe,Dn=Math.min(an,_n),Cn=Dn/2,Jn=new oh([],q_);if(Dn===0)return new a(Ae,Qe);for(var lr=Ae;lrOr.d||!Or.d)&&(Or=Jr,fe&&console.log("found best %d after %d probes",Math.round(1e4*Jr.d)/1e4,jr)),Jr.max-Or.d<=G||(Cn=Jr.h/2,Jn.push(new V0(Jr.p.x-Cn,Jr.p.y-Cn,Cn,N)),Jn.push(new V0(Jr.p.x+Cn,Jr.p.y-Cn,Cn,N)),Jn.push(new V0(Jr.p.x-Cn,Jr.p.y+Cn,Cn,N)),Jn.push(new V0(Jr.p.x+Cn,Jr.p.y+Cn,Cn,N)),jr+=4)}return fe&&(console.log("num probes: "+jr),console.log("best distance: "+Or.d)),Or.p}function q_(N,G){return G.max-N.max}function V0(N,G,fe,Ae){this.p=new a(N,G),this.h=fe,this.d=function(Qe,et){for(var ut=!1,Tt=1/0,Bt=0;BtQe.y!=Jn.y>Qe.y&&Qe.x<(Jn.x-Cn.x)*(Qe.y-Cn.y)/(Jn.y-Cn.y)+Cn.x&&(ut=!ut),Tt=Math.min(Tt,Mx(Qe,Cn,Jn))}return(ut?1:-1)*Math.sqrt(Tt)}(this.p,Ae),this.max=this.d+this.h*Math.SQRT2}oh.prototype.push=function(N){this.data.push(N),this.length++,this._up(this.length-1)},oh.prototype.pop=function(){if(this.length!==0){var N=this.data[0],G=this.data.pop();return this.length--,this.length>0&&(this.data[0]=G,this._down(0)),N}},oh.prototype.peek=function(){return this.data[0]},oh.prototype._up=function(N){for(var G=this.data,fe=this.compare,Ae=G[N];N>0;){var Qe=N-1>>1,et=G[Qe];if(fe(Ae,et)>=0)break;G[N]=et,N=Qe}G[N]=Ae},oh.prototype._down=function(N){for(var G=this.data,fe=this.compare,Ae=this.length>>1,Qe=G[N];N=0)break;G[N]=ut,N=et}G[N]=Qe};var Up=7,W_=Number.POSITIVE_INFINITY;function U0(N,G){return G[1]!==W_?function(fe,Ae,Qe){var et=0,ut=0;switch(Ae=Math.abs(Ae),Qe=Math.abs(Qe),fe){case"top-right":case"top-left":case"top":ut=Qe-Up;break;case"bottom-right":case"bottom-left":case"bottom":ut=-Qe+Up}switch(fe){case"top-right":case"bottom-right":case"right":et=-Ae;break;case"top-left":case"bottom-left":case"left":et=Ae}return[et,ut]}(N,G[0],G[1]):function(fe,Ae){var Qe=0,et=0;Ae<0&&(Ae=0);var ut=Ae/Math.sqrt(2);switch(fe){case"top-right":case"top-left":et=ut-Up;break;case"bottom-right":case"bottom-left":et=-ut+Up;break;case"bottom":et=-Ae+Up;break;case"top":et=Ae-Up}switch(fe){case"top-right":case"bottom-right":Qe=-ut;break;case"top-left":case"bottom-left":Qe=ut;break;case"left":Qe=Ae;break;case"right":Qe=-Ae}return[Qe,et]}(N,G[0])}function jp(N){switch(N){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var o0=255,Ra=o0*dp;function yd(N,G,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn){var lr=function(uo,ro,Po,gi,ni,Ti,vi,na){for(var Ji=gi.layout.get("text-rotate").evaluate(Ti,{})*Math.PI/180,La=[],ca=0,Zi=ro.positionedLines;caRa&&$(N.layerIds[0]+': Value for "text-size" is >= '+o0+'. Reduce your "text-size".'):Ar.kind==="composite"&&((Or=[dp*Cn.compositeTextSizes[0].evaluate(ut,{},Jn),dp*Cn.compositeTextSizes[1].evaluate(ut,{},Jn)])[0]>Ra||Or[1]>Ra)&&$(N.layerIds[0]+': Value for "text-size" is >= '+o0+'. Reduce your "text-size".'),N.addSymbols(N.text,lr,Or,Tt,et,ut,rn,G,Bt.lineStartIndex,Bt.lineLength,Dn,Jn);for(var jr=0,Jr=an;jr=0;ut--)if(Ae.dist(et[ut])0)&&(et.value.kind!=="constant"||et.value.value.length>0),rn=Tt.value.kind!=="constant"||!!Tt.value.value||Object.keys(Tt.parameters).length>0,an=Qe.get("symbol-sort-key");if(this.features=[],Bt||rn){for(var _n=G.iconDependencies,Dn=G.glyphDependencies,Cn=G.availableImages,Jn=new us(this.zoom),lr=0,Ar=N;lr=0;for(var Ja=0,Vl=ni.sections;Ja=0;Tt--)et[Tt]={x:G[Tt].x,y:G[Tt].y,tileUnitDistanceFromAnchor:Qe},Tt>0&&(Qe+=G[Tt-1].dist(G[Tt]));for(var Bt=0;Bt0},Ol.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Ol.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Ol.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Ol.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Ol.prototype.addIndicesForPlacedSymbol=function(N,G){for(var fe=N.placedSymbolArray.get(G),Ae=fe.vertexStartIndex+4*fe.numGlyphs,Qe=fe.vertexStartIndex;Qe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(N),this.sortedAngle=N,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var fe=0,Ae=this.symbolInstanceIndexes;fe=0&&Bt.indexOf(ut)===Tt&&G.addIndicesForPlacedSymbol(G.text,ut)}),et.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,et.verticalPlacedTextSymbolIndex),et.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,et.placedIconSymbolIndex),et.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,et.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},pi("SymbolBucket",Ol,{omit:["layers","collisionBoxArray","features","compareText"]}),Ol.MAX_GLYPHS=65535,Ol.addDynamicAttributes=V1;var OS=new Jl({"symbol-placement":new Vi(xt.layout_symbol["symbol-placement"]),"symbol-spacing":new Vi(xt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Vi(xt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new fa(xt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Vi(xt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Vi(xt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Vi(xt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Vi(xt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Vi(xt.layout_symbol["icon-rotation-alignment"]),"icon-size":new fa(xt.layout_symbol["icon-size"]),"icon-text-fit":new Vi(xt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Vi(xt.layout_symbol["icon-text-fit-padding"]),"icon-image":new fa(xt.layout_symbol["icon-image"]),"icon-rotate":new fa(xt.layout_symbol["icon-rotate"]),"icon-padding":new Vi(xt.layout_symbol["icon-padding"]),"icon-keep-upright":new Vi(xt.layout_symbol["icon-keep-upright"]),"icon-offset":new fa(xt.layout_symbol["icon-offset"]),"icon-anchor":new fa(xt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Vi(xt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Vi(xt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Vi(xt.layout_symbol["text-rotation-alignment"]),"text-field":new fa(xt.layout_symbol["text-field"]),"text-font":new fa(xt.layout_symbol["text-font"]),"text-size":new fa(xt.layout_symbol["text-size"]),"text-max-width":new fa(xt.layout_symbol["text-max-width"]),"text-line-height":new Vi(xt.layout_symbol["text-line-height"]),"text-letter-spacing":new fa(xt.layout_symbol["text-letter-spacing"]),"text-justify":new fa(xt.layout_symbol["text-justify"]),"text-radial-offset":new fa(xt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Vi(xt.layout_symbol["text-variable-anchor"]),"text-anchor":new fa(xt.layout_symbol["text-anchor"]),"text-max-angle":new Vi(xt.layout_symbol["text-max-angle"]),"text-writing-mode":new Vi(xt.layout_symbol["text-writing-mode"]),"text-rotate":new fa(xt.layout_symbol["text-rotate"]),"text-padding":new Vi(xt.layout_symbol["text-padding"]),"text-keep-upright":new Vi(xt.layout_symbol["text-keep-upright"]),"text-transform":new fa(xt.layout_symbol["text-transform"]),"text-offset":new fa(xt.layout_symbol["text-offset"]),"text-allow-overlap":new Vi(xt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Vi(xt.layout_symbol["text-ignore-placement"]),"text-optional":new Vi(xt.layout_symbol["text-optional"])}),Y_={paint:new Jl({"icon-opacity":new fa(xt.paint_symbol["icon-opacity"]),"icon-color":new fa(xt.paint_symbol["icon-color"]),"icon-halo-color":new fa(xt.paint_symbol["icon-halo-color"]),"icon-halo-width":new fa(xt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new fa(xt.paint_symbol["icon-halo-blur"]),"icon-translate":new Vi(xt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Vi(xt.paint_symbol["icon-translate-anchor"]),"text-opacity":new fa(xt.paint_symbol["text-opacity"]),"text-color":new fa(xt.paint_symbol["text-color"],{runtimeType:er,getOverride:function(N){return N.textColor},hasOverride:function(N){return!!N.textColor}}),"text-halo-color":new fa(xt.paint_symbol["text-halo-color"]),"text-halo-width":new fa(xt.paint_symbol["text-halo-width"]),"text-halo-blur":new fa(xt.paint_symbol["text-halo-blur"]),"text-translate":new Vi(xt.paint_symbol["text-translate"]),"text-translate-anchor":new Vi(xt.paint_symbol["text-translate-anchor"])}),layout:OS},Pm=function(N){this.type=N.property.overrides?N.property.overrides.runtimeType:fn,this.defaultValue=N};Pm.prototype.evaluate=function(N){if(N.formattedSection){var G=this.defaultValue.property.overrides;if(G&&G.hasOverride(N.formattedSection))return G.getOverride(N.formattedSection)}return N.feature&&N.featureState?this.defaultValue.evaluate(N.feature,N.featureState):this.defaultValue.property.specification.default},Pm.prototype.eachChild=function(N){this.defaultValue.isConstant()||N(this.defaultValue.value._styleExpression.expression)},Pm.prototype.outputDefined=function(){return!1},Pm.prototype.serialize=function(){return null},pi("FormatSectionOverride",Pm,{omit:["defaultValue"]});var fi=function(N){function G(fe){N.call(this,fe,Y_)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.recalculate=function(fe,Ae){if(N.prototype.recalculate.call(this,fe,Ae),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var Qe=this.layout.get("text-writing-mode");if(Qe){for(var et=[],ut=0,Tt=Qe;ut",targetMapId:Ae,sourceMapId:et.mapId})}}},ih.prototype.receive=function(N){var G=N.data,fe=G.id;if(fe&&(!G.targetMapId||this.mapId===G.targetMapId))if(G.type===""){delete this.tasks[fe];var Ae=this.cancelCallbacks[fe];delete this.cancelCallbacks[fe],Ae&&Ae()}else U()||G.mustQueue?(this.tasks[fe]=G,this.taskQueue.push(fe),this.invoker.trigger()):this.processTask(fe,G)},ih.prototype.process=function(){if(this.taskQueue.length){var N=this.taskQueue.shift(),G=this.tasks[N];delete this.tasks[N],this.taskQueue.length&&this.invoker.trigger(),G&&this.processTask(N,G)}},ih.prototype.processTask=function(N,G){var fe=this;if(G.type===""){var Ae=this.callbacks[N];delete this.callbacks[N],Ae&&(G.error?Ae(Kl(G.error)):Ae(null,Kl(G.data)))}else{var Qe=!1,et=W(this.globalScope)?void 0:[],ut=G.hasCallback?function(an,_n){Qe=!0,delete fe.cancelCallbacks[N],fe.target.postMessage({id:N,type:"",sourceMapId:fe.mapId,error:an?Yc(an):null,data:Yc(_n,et)},et)}:function(an){Qe=!0},Tt=null,Bt=Kl(G.data);if(this.parent[G.type])Tt=this.parent[G.type](G.sourceMapId,Bt,ut);else if(this.parent.getWorkerSource){var rn=G.type.split(".");Tt=this.parent.getWorkerSource(G.sourceMapId,rn[0],Bt.source)[rn[1]](Bt,ut)}else ut(new Error("Could not find function "+G.type));!Qe&&Tt&&Tt.cancel&&(this.cancelCallbacks[N]=Tt.cancel)}},ih.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Cc=function(N,G){N&&(G?this.setSouthWest(N).setNorthEast(G):N.length===4?this.setSouthWest([N[0],N[1]]).setNorthEast([N[2],N[3]]):this.setSouthWest(N[0]).setNorthEast(N[1]))};Cc.prototype.setNorthEast=function(N){return this._ne=N instanceof yc?new yc(N.lng,N.lat):yc.convert(N),this},Cc.prototype.setSouthWest=function(N){return this._sw=N instanceof yc?new yc(N.lng,N.lat):yc.convert(N),this},Cc.prototype.extend=function(N){var G,fe,Ae=this._sw,Qe=this._ne;if(N instanceof yc)G=N,fe=N;else{if(!(N instanceof Cc)){if(Array.isArray(N)){if(N.length===4||N.every(Array.isArray)){var et=N;return this.extend(Cc.convert(et))}var ut=N;return this.extend(yc.convert(ut))}return this}if(G=N._sw,fe=N._ne,!G||!fe)return this}return Ae||Qe?(Ae.lng=Math.min(G.lng,Ae.lng),Ae.lat=Math.min(G.lat,Ae.lat),Qe.lng=Math.max(fe.lng,Qe.lng),Qe.lat=Math.max(fe.lat,Qe.lat)):(this._sw=new yc(G.lng,G.lat),this._ne=new yc(fe.lng,fe.lat)),this},Cc.prototype.getCenter=function(){return new yc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Cc.prototype.getSouthWest=function(){return this._sw},Cc.prototype.getNorthEast=function(){return this._ne},Cc.prototype.getNorthWest=function(){return new yc(this.getWest(),this.getNorth())},Cc.prototype.getSouthEast=function(){return new yc(this.getEast(),this.getSouth())},Cc.prototype.getWest=function(){return this._sw.lng},Cc.prototype.getSouth=function(){return this._sw.lat},Cc.prototype.getEast=function(){return this._ne.lng},Cc.prototype.getNorth=function(){return this._ne.lat},Cc.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Cc.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Cc.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Cc.prototype.contains=function(N){var G=yc.convert(N),fe=G.lng,Ae=G.lat,Qe=this._sw.lat<=Ae&&Ae<=this._ne.lat,et=this._sw.lng<=fe&&fe<=this._ne.lng;return this._sw.lng>this._ne.lng&&(et=this._sw.lng>=fe&&fe>=this._ne.lng),Qe&&et},Cc.convert=function(N){return!N||N instanceof Cc?N:new Cc(N)};var XO=63710088e-1,yc=function(N,G){if(isNaN(N)||isNaN(G))throw new Error("Invalid LngLat object: ("+N+", "+G+")");if(this.lng=+N,this.lat=+G,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};yc.prototype.wrap=function(){return new yc(A(this.lng,-180,180),this.lat)},yc.prototype.toArray=function(){return[this.lng,this.lat]},yc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},yc.prototype.distanceTo=function(N){var G=Math.PI/180,fe=this.lat*G,Ae=N.lat*G,Qe=Math.sin(fe)*Math.sin(Ae)+Math.cos(fe)*Math.cos(Ae)*Math.cos((N.lng-this.lng)*G);return XO*Math.acos(Math.min(Qe,1))},yc.prototype.toBounds=function(N){N===void 0&&(N=0);var G=360*N/40075017,fe=G/Math.cos(Math.PI/180*this.lat);return new Cc(new yc(this.lng-fe,this.lat-G),new yc(this.lng+fe,this.lat+G))},yc.convert=function(N){if(N instanceof yc)return N;if(Array.isArray(N)&&(N.length===2||N.length===3))return new yc(Number(N[0]),Number(N[1]));if(!Array.isArray(N)&&typeof N=="object"&&N!==null)return new yc(Number("lng"in N?N.lng:N.lon),Number(N.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var GO=2*Math.PI*XO;function Zx(N){return GO*Math.cos(N*Math.PI/180)}function _b(N){return(180+N)/360}function K_(N){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+N*Math.PI/360)))/360}function qx(N,G){return N/Zx(G)}function J_(N){var G=180-360*N;return 360/Math.PI*Math.atan(Math.exp(G*Math.PI/180))-90}var Lm=function(N,G,fe){fe===void 0&&(fe=0),this.x=+N,this.y=+G,this.z=+fe};Lm.fromLngLat=function(N,G){G===void 0&&(G=0);var fe=yc.convert(N);return new Lm(_b(fe.lng),K_(fe.lat),qx(G,fe.lat))},Lm.prototype.toLngLat=function(){return new yc(360*this.x-180,J_(this.y))},Lm.prototype.toAltitude=function(){return N=this.z,G=this.y,N*Zx(J_(G));var N,G},Lm.prototype.meterInMercatorCoordinateUnits=function(){return 1/GO*(N=J_(this.y),1/Math.cos(N*Math.PI/180));var N};var qh=function(N,G,fe){this.z=N,this.x=G,this.y=fe,this.key=j1(0,N,N,G,fe)};qh.prototype.equals=function(N){return this.z===N.z&&this.x===N.x&&this.y===N.y},qh.prototype.url=function(N,G){var fe,Ae,Qe,et,ut,Tt=(fe=this.x,Ae=this.y,Qe=this.z,et=G_(256*fe,256*(Ae=Math.pow(2,Qe)-Ae-1),Qe),ut=G_(256*(fe+1),256*(Ae+1),Qe),et[0]+","+et[1]+","+ut[0]+","+ut[1]),Bt=function(rn,an,_n){for(var Dn,Cn="",Jn=rn;Jn>0;Jn--)Cn+=(an&(Dn=1<this.canonical.z?new Kc(N,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Kc(N,this.wrap,N,this.canonical.x>>G,this.canonical.y>>G)},Kc.prototype.calculateScaledKey=function(N,G){var fe=this.canonical.z-N;return N>this.canonical.z?j1(this.wrap*+G,N,this.canonical.z,this.canonical.x,this.canonical.y):j1(this.wrap*+G,N,N,this.canonical.x>>fe,this.canonical.y>>fe)},Kc.prototype.isChildOf=function(N){if(N.wrap!==this.wrap)return!1;var G=this.canonical.z-N.canonical.z;return N.overscaledZ===0||N.overscaledZ>G&&N.canonical.y===this.canonical.y>>G},Kc.prototype.children=function(N){if(this.overscaledZ>=N)return[new Kc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var G=this.canonical.z+1,fe=2*this.canonical.x,Ae=2*this.canonical.y;return[new Kc(G,this.wrap,G,fe,Ae),new Kc(G,this.wrap,G,fe+1,Ae),new Kc(G,this.wrap,G,fe,Ae+1),new Kc(G,this.wrap,G,fe+1,Ae+1)]},Kc.prototype.isLessThan=function(N){return this.wrapN.wrap)&&(this.overscaledZN.overscaledZ)&&(this.canonical.xN.canonical.x)&&this.canonical.y=this.dim+1||G<-1||G>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(G+1)*this.stride+(N+1)},Qp.prototype._unpackMapbox=function(N,G,fe){return(256*N*256+256*G+fe)/10-1e4},Qp.prototype._unpackTerrarium=function(N,G,fe){return 256*N+G+fe/256-32768},Qp.prototype.getPixels=function(){return new Yf({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Qp.prototype.backfillBorder=function(N,G,fe){if(this.dim!==N.dim)throw new Error("dem dimension mismatch");var Ae=G*this.dim,Qe=G*this.dim+this.dim,et=fe*this.dim,ut=fe*this.dim+this.dim;switch(G){case-1:Ae=Qe-1;break;case 1:Qe=Ae+1}switch(fe){case-1:et=ut-1;break;case 1:ut=et+1}for(var Tt=-G*this.dim,Bt=-fe*this.dim,rn=et;rn=0&&an[3]>=0&&Tt.insert(ut,an[0],an[1],an[2],an[3])}},bc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Tf.VectorTile(new Bx(this.rawTileData)).layers,this.sourceLayerCoder=new ly(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},bc.prototype.query=function(N,G,fe,Ae){var Qe=this;this.loadVTLayers();for(var et=N.params||{},ut=Hs/N.tileSize/N.scale,Tt=Pu(et.filter),Bt=N.queryGeometry,rn=N.queryPadding*ut,an=ew(Bt),_n=this.grid.query(an.minX-rn,an.minY-rn,an.maxX+rn,an.maxY+rn),Dn=ew(N.cameraQueryGeometry),Cn=0,Jn=this.grid3D.query(Dn.minX-rn,Dn.minY-rn,Dn.maxX+rn,Dn.maxY+rn,function(uo,ro,Po,gi){return function(ni,Ti,vi,na,Ji){for(var La=0,ca=ni;La=Zi.x&&Ji>=Zi.y)return!0}var Bs=[new a(Ti,vi),new a(Ti,Ji),new a(na,Ji),new a(na,vi)];if(ni.length>2){for(var Ja=0,Vl=Bs;Ja=0)return!0;return!1}(et,_n)){var Dn=this.sourceLayerCoder.decode(fe),Cn=this.vtLayers[Dn].feature(Ae);if(Qe.needGeometry){var Jn=tc(Cn,!0);if(!Qe.filter(new us(this.tileID.overscaledZ),Jn,this.tileID.canonical))return}else if(!Qe.filter(new us(this.tileID.overscaledZ),Cn))return;for(var lr=this.getId(Cn,Dn),Ar=0;Ar<_n.length;Ar++){var Or=_n[Ar];if(!(et&&et.indexOf(Or)<0)){var jr=Tt[Or];if(jr){var Jr={};lr!==void 0&&rn&&(Jr=rn.getState(jr.sourceLayer||"_geojsonTileLayer",lr));var uo=x({},Bt[Or]);uo.paint=KO(uo.paint,jr.paint,Cn,Jr,ut),uo.layout=KO(uo.layout,jr.layout,Cn,Jr,ut);var ro=!an||an(Cn,jr,Jr);if(ro){var Po=new cy(Cn,this.z,this.x,this.y,lr);Po.layer=uo;var gi=N[Or];gi===void 0&&(gi=N[Or]=[]),gi.push({featureIndex:Ae,feature:Po,intersectionZ:ro})}}}}}},bc.prototype.lookupSymbolFeatures=function(N,G,fe,Ae,Qe,et,ut,Tt){var Bt={};this.loadVTLayers();for(var rn=Pu(Qe),an=0,_n=N;an<_n.length;an+=1){var Dn=_n[an];this.loadMatchingFeature(Bt,fe,Ae,Dn,rn,et,ut,Tt,G)}return Bt},bc.prototype.hasLayer=function(N){for(var G=0,fe=this.bucketLayerIDs;GAe)Qe=!1;else if(G)if(this.expirationTimeot&&(N.getActor().send("enforceCacheSizeLimit",nt),qt=0)},i.clamp=S,i.clearTileCache=function(N){var G=h.caches.delete(je);N&&G.catch(N).then(function(){return N()})},i.clipLine=H_,i.clone=function(N){var G=new kf(16);return G[0]=N[0],G[1]=N[1],G[2]=N[2],G[3]=N[3],G[4]=N[4],G[5]=N[5],G[6]=N[6],G[7]=N[7],G[8]=N[8],G[9]=N[9],G[10]=N[10],G[11]=N[11],G[12]=N[12],G[13]=N[13],G[14]=N[14],G[15]=N[15],G},i.clone$1=I,i.clone$2=function(N){var G=new kf(3);return G[0]=N[0],G[1]=N[1],G[2]=N[2],G},i.collisionCircleLayout=Kv,i.config=ce,i.create=function(){var N=new kf(16);return kf!=Float32Array&&(N[1]=0,N[2]=0,N[3]=0,N[4]=0,N[6]=0,N[7]=0,N[8]=0,N[9]=0,N[11]=0,N[12]=0,N[13]=0,N[14]=0),N[0]=1,N[5]=1,N[10]=1,N[15]=1,N},i.create$1=function(){var N=new kf(9);return kf!=Float32Array&&(N[1]=0,N[2]=0,N[3]=0,N[5]=0,N[6]=0,N[7]=0),N[0]=1,N[4]=1,N[8]=1,N},i.create$2=function(){var N=new kf(4);return kf!=Float32Array&&(N[1]=0,N[2]=0),N[0]=1,N[3]=1,N},i.createCommonjsModule=O,i.createExpression=Gd,i.createLayout=El,i.createStyleLayer=function(N){return N.type==="custom"?new kS(N):new xb[N.type](N)},i.cross=function(N,G,fe){var Ae=G[0],Qe=G[1],et=G[2],ut=fe[0],Tt=fe[1],Bt=fe[2];return N[0]=Qe*Bt-et*Tt,N[1]=et*ut-Ae*Bt,N[2]=Ae*Tt-Qe*ut,N},i.deepEqual=function N(G,fe){if(Array.isArray(G)){if(!Array.isArray(fe)||G.length!==fe.length)return!1;for(var Ae=0;Ae0&&(et=1/Math.sqrt(et)),N[0]=G[0]*et,N[1]=G[1]*et,N[2]=G[2]*et,N},i.number=ra,i.offscreenCanvasSupported=en,i.ortho=function(N,G,fe,Ae,Qe,et,ut){var Tt=1/(G-fe),Bt=1/(Ae-Qe),rn=1/(et-ut);return N[0]=-2*Tt,N[1]=0,N[2]=0,N[3]=0,N[4]=0,N[5]=-2*Bt,N[6]=0,N[7]=0,N[8]=0,N[9]=0,N[10]=2*rn,N[11]=0,N[12]=(G+fe)*Tt,N[13]=(Qe+Ae)*Bt,N[14]=(ut+et)*rn,N[15]=1,N},i.parseGlyphPBF=function(N){return new Bx(N).readFields($_,[])},i.pbf=Bx,i.performSymbolLayout=function(N,G,fe,Ae,Qe,et,ut){N.createArrays();var Tt=512*N.overscaling;N.tilePixelRatio=Hs/Tt,N.compareText={},N.iconsNeedLinear=!1;var Bt=N.layers[0].layout,rn=N.layers[0]._unevaluatedLayout._values,an={};if(N.textSizeData.kind==="composite"){var _n=N.textSizeData,Dn=_n.minZoom,Cn=_n.maxZoom;an.compositeTextSizes=[rn["text-size"].possiblyEvaluate(new us(Dn),ut),rn["text-size"].possiblyEvaluate(new us(Cn),ut)]}if(N.iconSizeData.kind==="composite"){var Jn=N.iconSizeData,lr=Jn.minZoom,Ar=Jn.maxZoom;an.compositeIconSizes=[rn["icon-size"].possiblyEvaluate(new us(lr),ut),rn["icon-size"].possiblyEvaluate(new us(Ar),ut)]}an.layoutTextSize=rn["text-size"].possiblyEvaluate(new us(N.zoom+1),ut),an.layoutIconSize=rn["icon-size"].possiblyEvaluate(new us(N.zoom+1),ut),an.textMaxSize=rn["text-size"].possiblyEvaluate(new us(18));for(var Or=Bt.get("text-line-height")*$l,jr=Bt.get("text-rotation-alignment")==="map"&&Bt.get("symbol-placement")!=="point",Jr=Bt.get("text-keep-upright"),uo=Bt.get("text-size"),ro=function(){var ni=gi[Po],Ti=Bt.get("text-font").evaluate(ni,{},ut).join(","),vi=uo.evaluate(ni,{},ut),na=an.layoutTextSize.evaluate(ni,{},ut),Ji=an.layoutIconSize.evaluate(ni,{},ut),La={horizontal:{},vertical:void 0},ca=ni.text,Zi=[0,0];if(ca){var Bs=ca.toString(),Ja=Bt.get("text-letter-spacing").evaluate(ni,{},ut)*$l,Vl=function(is){for(var Vs=0,Ac=is;Vs=Hs||hy.y<0||hy.y>=Hs||function(eu,Eh,K1,xg,Cb,nw,Ab,_g,J1,py,Gx,Mb,ev,e3,my,_d,Kx,Jx,e2,Eb,Wh,t2,Pb,zm,rw){var n2,Fm,q0,tv,nv,rv=eu.addToLineVertexArray(Eh,K1),t3=0,ow=0,iw=0,aw=0,gy=-1,W0=-1,wg={},n3=yi(""),vy=0,sw=0;if(_g._unevaluatedLayout.getValue("text-radial-offset")===void 0?(vy=(n2=_g.layout.get("text-offset").evaluate(Wh,{},zm).map(function(Nm){return Nm*$l}))[0],sw=n2[1]):(vy=_g.layout.get("text-radial-offset").evaluate(Wh,{},zm)*$l,sw=W_),eu.allowVerticalPlacement&&xg.vertical){var pp=_g.layout.get("text-rotate").evaluate(Wh,{},zm)+90,r2=xg.vertical;tv=new gg(J1,Eh,py,Gx,Mb,r2,ev,e3,my,pp),Ab&&(nv=new gg(J1,Eh,py,Gx,Mb,Ab,Kx,Jx,my,pp))}if(Cb){var yy=_g.layout.get("icon-rotate").evaluate(Wh,{}),Rb=_g.layout.get("icon-text-fit")!=="none",wd=$0(Cb,yy,Pb,Rb),Og=Ab?$0(Ab,yy,Pb,Rb):void 0;q0=new gg(J1,Eh,py,Gx,Mb,Cb,Kx,Jx,!1,yy),t3=4*wd.length;var s0=eu.iconSizeData,Lb=null;s0.kind==="source"?(Lb=[dp*_g.layout.get("icon-size").evaluate(Wh,{})])[0]>Ra&&$(eu.layerIds[0]+': Value for "icon-size" is >= '+o0+'. Reduce your "icon-size".'):s0.kind==="composite"&&((Lb=[dp*t2.compositeIconSizes[0].evaluate(Wh,{},zm),dp*t2.compositeIconSizes[1].evaluate(Wh,{},zm)])[0]>Ra||Lb[1]>Ra)&&$(eu.layerIds[0]+': Value for "icon-size" is >= '+o0+'. Reduce your "icon-size".'),eu.addSymbols(eu.icon,wd,Lb,Eb,e2,Wh,!1,Eh,rv.lineStartIndex,rv.lineLength,-1,zm),gy=eu.icon.placedSymbolArray.length-1,Og&&(ow=4*Og.length,eu.addSymbols(eu.icon,Og,Lb,Eb,e2,Wh,Kf.vertical,Eh,rv.lineStartIndex,rv.lineLength,-1,zm),W0=eu.icon.placedSymbolArray.length-1)}for(var l0 in xg.horizontal){var Y0=xg.horizontal[l0];if(!Fm){n3=yi(Y0.text);var CS=_g.layout.get("text-rotate").evaluate(Wh,{},zm);Fm=new gg(J1,Eh,py,Gx,Mb,Y0,ev,e3,my,CS)}var r3=Y0.positionedLines.length===1;if(iw+=yd(eu,Eh,Y0,nw,_g,my,Wh,_d,rv,xg.vertical?Kf.horizontal:Kf.horizontalOnly,r3?Object.keys(xg.horizontal):[l0],wg,gy,t2,zm),r3)break}xg.vertical&&(aw+=yd(eu,Eh,xg.vertical,nw,_g,my,Wh,_d,rv,Kf.vertical,["vertical"],wg,W0,t2,zm));var o3=Fm?Fm.boxStartIndex:eu.collisionBoxArray.length,o2=Fm?Fm.boxEndIndex:eu.collisionBoxArray.length,i2=tv?tv.boxStartIndex:eu.collisionBoxArray.length,AS=tv?tv.boxEndIndex:eu.collisionBoxArray.length,Ib=q0?q0.boxStartIndex:eu.collisionBoxArray.length,lw=q0?q0.boxEndIndex:eu.collisionBoxArray.length,MS=nv?nv.boxStartIndex:eu.collisionBoxArray.length,cw=nv?nv.boxEndIndex:eu.collisionBoxArray.length,qp=-1,ov=function(Nm,uw){return Nm&&Nm.circleDiameter?Math.max(Nm.circleDiameter,uw):uw};qp=ov(Fm,qp),qp=ov(tv,qp),qp=ov(q0,qp);var i3=(qp=ov(nv,qp))>-1?1:0;i3&&(qp*=rw/$l),eu.glyphOffsetArray.length>=Ol.MAX_GLYPHS&&$("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Wh.sortKey!==void 0&&eu.addToSortKeyRanges(eu.symbolInstances.length,Wh.sortKey),eu.symbolInstances.emplaceBack(Eh.x,Eh.y,wg.right>=0?wg.right:-1,wg.center>=0?wg.center:-1,wg.left>=0?wg.left:-1,wg.vertical||-1,gy,W0,n3,o3,o2,i2,AS,Ib,lw,MS,cw,py,iw,aw,t3,ow,i3,0,ev,vy,sw,qp)}(is,hy,tw,Ac,Bl,Uo,ah,is.layers[0],is.collisionBoxArray,Vs.index,Vs.sourceLayerIndex,is.index,Dm,Qc,Jc,Mc,Wx,Hc,Pc,Hp,Vs,ql,Mh,il,Xs)};if(Z1==="line")for(var W1=0,Y1=H_(Vs.geometry,0,0,Hs,Hs);W11){var Yx=_S(Wu,_s,Ac.vertical||dc,Bl,Jf,H1);Yx&&H0(Wu,Yx)}}else if(Vs.type==="Polygon")for(var G1=0,bd=e0(Vs.geometry,0);G1=xr.maxzoom||xr.visibility!=="none"&&(u(Un,this.zoom,lt),(Yt[xr.id]=xr.createBucket({index:at.bucketLayerIDs.length,layers:Un,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:fn,sourceID:this.source})).populate(dn,Qt,this.tileID.canonical),at.bucketLayerIDs.push(Un.map(function(Wn){return Wn.id})))}}}var Sr=i.mapObject(Qt.glyphDependencies,function(Wn){return Object.keys(Wn).map(Number)});Object.keys(Sr).length?yt.send("getGlyphs",{uid:this.uid,stacks:Sr},function(Wn,Kn){Lt||(Lt=Wn,xt=Kn,ir.call(Rt))}):xt={};var ar=Object.keys(Qt.iconDependencies);ar.length?yt.send("getImages",{icons:ar,source:this.source,tileID:this.tileID,type:"icons"},function(Wn,Kn){Lt||(Lt=Wn,Ht=Kn,ir.call(Rt))}):Ht={};var Fn=Object.keys(Qt.patternDependencies);function ir(){if(Lt)return zt(Lt);if(xt&&Ht&&Xt){var Wn=new p(xt),Kn=new i.ImageAtlas(Ht,Xt);for(var _r in Yt){var Ir=Yt[_r];Ir instanceof i.SymbolBucket?(u(Ir.layers,this.zoom,lt),i.performSymbolLayout(Ir,xt,Wn.positions,Ht,Kn.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Ir.hasPattern&&(Ir instanceof i.LineBucket||Ir instanceof i.FillBucket||Ir instanceof i.FillExtrusionBucket)&&(u(Ir.layers,this.zoom,lt),Ir.addFeatures(Qt,this.tileID.canonical,Kn.patternPositions))}this.status="done",zt(null,{buckets:i.values(Yt).filter(function(zr){return!zr.isEmpty()}),featureIndex:at,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Wn.image,imageAtlas:Kn,glyphMap:this.returnDependencies?xt:null,iconMap:this.returnDependencies?Ht:null,glyphPositions:this.returnDependencies?Wn.positions:null})}}Fn.length?yt.send("getImages",{icons:Fn,source:this.source,tileID:this.tileID,type:"patterns"},function(Wn,Kn){Lt||(Lt=Wn,Xt=Kn,ir.call(Rt))}):Xt={},ir.call(this)};var m=function(vt,bt,lt,yt){this.actor=vt,this.layerIndex=bt,this.availableImages=lt,this.loadVectorData=yt||h,this.loading={},this.loaded={}};m.prototype.loadTile=function(vt,bt){var lt=this,yt=vt.uid;this.loading||(this.loading={});var zt=!!(vt&&vt.request&&vt.request.collectResourceTiming)&&new i.RequestPerformance(vt.request),Rt=this.loading[yt]=new a(vt);Rt.abort=this.loadVectorData(vt,function(it,at){if(delete lt.loading[yt],it||!at)return Rt.status="done",lt.loaded[yt]=Rt,bt(it);var Lt=at.rawData,xt={};at.expires&&(xt.expires=at.expires),at.cacheControl&&(xt.cacheControl=at.cacheControl);var Ht={};if(zt){var Xt=zt.finish();Xt&&(Ht.resourceTiming=JSON.parse(JSON.stringify(Xt)))}Rt.vectorTile=at.vectorTile,Rt.parse(at.vectorTile,lt.layerIndex,lt.availableImages,lt.actor,function(Yt,Qt){if(Yt||!Qt)return bt(Yt);bt(null,i.extend({rawTileData:Lt.slice(0)},Qt,xt,Ht))}),lt.loaded=lt.loaded||{},lt.loaded[yt]=Rt})},m.prototype.reloadTile=function(vt,bt){var lt=this,yt=this.loaded,zt=vt.uid,Rt=this;if(yt&&yt[zt]){var it=yt[zt];it.showCollisionBoxes=vt.showCollisionBoxes;var at=function(Lt,xt){var Ht=it.reloadCallback;Ht&&(delete it.reloadCallback,it.parse(it.vectorTile,Rt.layerIndex,lt.availableImages,Rt.actor,Ht)),bt(Lt,xt)};it.status==="parsing"?it.reloadCallback=at:it.status==="done"&&(it.vectorTile?it.parse(it.vectorTile,this.layerIndex,this.availableImages,this.actor,at):at())}},m.prototype.abortTile=function(vt,bt){var lt=this.loading,yt=vt.uid;lt&<[yt]&<[yt].abort&&(lt[yt].abort(),delete lt[yt]),bt()},m.prototype.removeTile=function(vt,bt){var lt=this.loaded,yt=vt.uid;lt&<[yt]&&delete lt[yt],bt()};var v=i.window.ImageBitmap,_=function(){this.loaded={}};_.prototype.loadTile=function(vt,bt){var lt=vt.uid,yt=vt.encoding,zt=vt.rawImageData,Rt=v&&zt instanceof v?this.getImageData(zt):zt,it=new i.DEMData(lt,Rt,yt);this.loaded=this.loaded||{},this.loaded[lt]=it,bt(null,it)},_.prototype.getImageData=function(vt){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(vt.width,vt.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=vt.width,this.offscreenCanvas.height=vt.height,this.offscreenCanvasContext.drawImage(vt,0,0,vt.width,vt.height);var bt=this.offscreenCanvasContext.getImageData(-1,-1,vt.width+2,vt.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new i.RGBAImage({width:bt.width,height:bt.height},bt.data)},_.prototype.removeTile=function(vt){var bt=this.loaded,lt=vt.uid;bt&&bt[lt]&&delete bt[lt]};var S=function vt(bt,lt){var yt,zt=bt&&bt.type;if(zt==="FeatureCollection")for(yt=0;yt=0!=!!bt&&vt.reverse()}var R=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,M=function(vt){this._feature=vt,this.extent=i.EXTENT,this.type=vt.type,this.properties=vt.tags,"id"in vt&&!isNaN(vt.id)&&(this.id=parseInt(vt.id,10))};M.prototype.loadGeometry=function(){if(this._feature.type===1){for(var vt=[],bt=0,lt=this._feature.geometry;bt>31}function K(vt,bt){for(var lt=vt.loadGeometry(),yt=vt.type,zt=0,Rt=0,it=lt.length,at=0;at>1;Y(vt,bt,it,yt,zt,Rt%2),q(vt,bt,lt,yt,it-1,Rt+1),q(vt,bt,lt,it+1,zt,Rt+1)}}function Y(vt,bt,lt,yt,zt,Rt){for(;zt>yt;){if(zt-yt>600){var it=zt-yt+1,at=lt-yt+1,Lt=Math.log(it),xt=.5*Math.exp(2*Lt/3),Ht=.5*Math.sqrt(Lt*xt*(it-xt)/it)*(at-it/2<0?-1:1);Y(vt,bt,lt,Math.max(yt,Math.floor(lt-at*xt/it+Ht)),Math.min(zt,Math.floor(lt+(it-at)*xt/it+Ht)),Rt)}var Xt=bt[2*lt+Rt],Yt=yt,Qt=zt;for(ee(vt,bt,yt,lt),bt[2*zt+Rt]>Xt&&ee(vt,bt,yt,zt);YtXt;)Qt--}bt[2*yt+Rt]===Xt?ee(vt,bt,yt,Qt):ee(vt,bt,++Qt,zt),Qt<=lt&&(yt=Qt+1),lt<=Qt&&(zt=Qt-1)}}function ee(vt,bt,lt,yt){me(vt,lt,yt),me(bt,2*lt,2*yt),me(bt,2*lt+1,2*yt+1)}function me(vt,bt,lt){var yt=vt[bt];vt[bt]=vt[lt],vt[lt]=yt}function he(vt,bt,lt,yt){var zt=vt-lt,Rt=bt-yt;return zt*zt+Rt*Rt}k.fromVectorTileJs=I,k.fromGeojsonVt=z,k.GeoJSONWrapper=$;var se=function(vt){return vt[0]},ae=function(vt){return vt[1]},ce=function(vt,bt,lt,yt,zt){bt===void 0&&(bt=se),lt===void 0&&(lt=ae),yt===void 0&&(yt=64),zt===void 0&&(zt=Float64Array),this.nodeSize=yt,this.points=vt;for(var Rt=vt.length<65536?Uint16Array:Uint32Array,it=this.ids=new Rt(vt.length),at=this.coords=new zt(2*vt.length),Lt=0;Lt=it&&Xt<=Lt&&Yt>=at&&Yt<=xt&&Pt.push(zt[dn]);else{var vn=Math.floor((fn+Kt)/2);Xt=Rt[2*vn],Yt=Rt[2*vn+1],Xt>=it&&Xt<=Lt&&Yt>=at&&Yt<=xt&&Pt.push(zt[vn]);var Nn=(tn+1)%2;(tn===0?it<=Xt:at<=Yt)&&(Qt.push(fn),Qt.push(vn-1),Qt.push(Nn)),(tn===0?Lt>=Xt:xt>=Yt)&&(Qt.push(vn+1),Qt.push(Kt),Qt.push(Nn))}}return Pt}(this.ids,this.coords,vt,bt,lt,yt,this.nodeSize)},ce.prototype.within=function(vt,bt,lt){return function(yt,zt,Rt,it,at,Lt){for(var xt=[0,yt.length-1,0],Ht=[],Xt=at*at;xt.length;){var Yt=xt.pop(),Qt=xt.pop(),Pt=xt.pop();if(Qt-Pt<=Lt)for(var tn=Pt;tn<=Qt;tn++)he(zt[2*tn],zt[2*tn+1],Rt,it)<=Xt&&Ht.push(yt[tn]);else{var Kt=Math.floor((Pt+Qt)/2),fn=zt[2*Kt],dn=zt[2*Kt+1];he(fn,dn,Rt,it)<=Xt&&Ht.push(yt[Kt]);var vn=(Yt+1)%2;(Yt===0?Rt-at<=fn:it-at<=dn)&&(xt.push(Pt),xt.push(Kt-1),xt.push(vn)),(Yt===0?Rt+at>=fn:it+at>=dn)&&(xt.push(Kt+1),xt.push(Qt),xt.push(vn))}}return Ht}(this.ids,this.coords,vt,bt,lt,this.nodeSize)};var de={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(vt){return vt}},ve=function(vt){this.options=ze(Object.create(de),vt),this.trees=new Array(this.options.maxZoom+1)};function ye(vt,bt,lt,yt,zt){return{x:vt,y:bt,zoom:1/0,id:lt,parentId:-1,numPoints:yt,properties:zt}}function _e(vt,bt){var lt=vt.geometry.coordinates,yt=lt[0],zt=lt[1];return{x:Pe(yt),y:Ie(zt),zoom:1/0,index:bt,parentId:-1}}function Se(vt){return{type:"Feature",id:vt.id,properties:Te(vt),geometry:{type:"Point",coordinates:[(yt=vt.x,360*(yt-.5)),(bt=vt.y,lt=(180-360*bt)*Math.PI/180,360*Math.atan(Math.exp(lt))/Math.PI-90)]}};var bt,lt,yt}function Te(vt){var bt=vt.numPoints,lt=bt>=1e4?Math.round(bt/1e3)+"k":bt>=1e3?Math.round(bt/100)/10+"k":bt;return ze(ze({},vt.properties),{cluster:!0,cluster_id:vt.id,point_count:bt,point_count_abbreviated:lt})}function Pe(vt){return vt/360+.5}function Ie(vt){var bt=Math.sin(vt*Math.PI/180),lt=.5-.25*Math.log((1+bt)/(1-bt))/Math.PI;return lt<0?0:lt>1?1:lt}function ze(vt,bt){for(var lt in bt)vt[lt]=bt[lt];return vt}function De(vt){return vt.x}function He(vt){return vt.y}function Ve(vt,bt,lt,yt){for(var zt,Rt=yt,it=lt-bt>>1,at=lt-bt,Lt=vt[bt],xt=vt[bt+1],Ht=vt[lt],Xt=vt[lt+1],Yt=bt+3;YtRt)zt=Yt,Rt=Qt;else if(Qt===Rt){var Pt=Math.abs(Yt-it);Ptyt&&(zt-bt>3&&Ve(vt,bt,zt,yt),vt[zt+2]=Rt,lt-zt>3&&Ve(vt,zt,lt,yt))}function $e(vt,bt,lt,yt,zt,Rt){var it=zt-lt,at=Rt-yt;if(it!==0||at!==0){var Lt=((vt-lt)*it+(bt-yt)*at)/(it*it+at*at);Lt>1?(lt=zt,yt=Rt):Lt>0&&(lt+=it*Lt,yt+=at*Lt)}return(it=vt-lt)*it+(at=bt-yt)*at}function Oe(vt,bt,lt,yt){var zt={id:vt===void 0?null:vt,type:bt,geometry:lt,tags:yt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Rt){var it=Rt.geometry,at=Rt.type;if(at==="Point"||at==="MultiPoint"||at==="LineString")ke(Rt,it);else if(at==="Polygon"||at==="MultiLineString")for(var Lt=0;Lt0&&(it+=yt?(zt*xt-Lt*Rt)/2:Math.sqrt(Math.pow(Lt-zt,2)+Math.pow(xt-Rt,2))),zt=Lt,Rt=xt}var Ht=bt.length-3;bt[2]=1,Ve(bt,0,Ht,lt),bt[Ht+2]=1,bt.size=Math.abs(it),bt.start=0,bt.end=bt.size}function Ze(vt,bt,lt,yt){for(var zt=0;zt1?1:lt}function Ee(vt,bt,lt,yt,zt,Rt,it,at){if(yt/=bt,Rt>=(lt/=bt)&&it=yt)return null;for(var Lt=[],xt=0;xt=lt&&Pt=yt)){var tn=[];if(Yt==="Point"||Yt==="MultiPoint")Ne(Xt,tn,lt,yt,zt);else if(Yt==="LineString")je(Xt,tn,lt,yt,zt,!1,at.lineMetrics);else if(Yt==="MultiLineString")ot(Xt,tn,lt,yt,zt,!1);else if(Yt==="Polygon")ot(Xt,tn,lt,yt,zt,!0);else if(Yt==="MultiPolygon")for(var Kt=0;Kt=lt&&it<=yt&&(bt.push(vt[Rt]),bt.push(vt[Rt+1]),bt.push(vt[Rt+2]))}}function je(vt,bt,lt,yt,zt,Rt,it){for(var at,Lt,xt=nt(vt),Ht=zt===0?ht:pt,Xt=vt.start,Yt=0;Ytlt&&(Lt=Ht(xt,Qt,Pt,Kt,fn,lt),it&&(xt.start=Xt+at*Lt)):dn>yt?vn=lt&&(Lt=Ht(xt,Qt,Pt,Kt,fn,lt),Nn=!0),vn>yt&&dn<=yt&&(Lt=Ht(xt,Qt,Pt,Kt,fn,yt),Nn=!0),!Rt&&Nn&&(it&&(xt.end=Xt+at*Lt),bt.push(xt),xt=nt(vt)),it&&(Xt+=at)}var er=vt.length-3;Qt=vt[er],Pt=vt[er+1],tn=vt[er+2],(dn=zt===0?Qt:Pt)>=lt&&dn<=yt&&Ge(xt,Qt,Pt,tn),er=xt.length-3,Rt&&er>=3&&(xt[er]!==xt[0]||xt[er+1]!==xt[1])&&Ge(xt,xt[0],xt[1],xt[2]),xt.length&&bt.push(xt)}function nt(vt){var bt=[];return bt.size=vt.size,bt.start=vt.start,bt.end=vt.end,bt}function ot(vt,bt,lt,yt,zt,Rt){for(var it=0;itit.maxX&&(it.maxX=Ht),Xt>it.maxY&&(it.maxY=Xt)}return it}function Gt(vt,bt,lt,yt){var zt=bt.geometry,Rt=bt.type,it=[];if(Rt==="Point"||Rt==="MultiPoint")for(var at=0;at0&&bt.size<(zt?it:yt))lt.numPoints+=bt.length/3;else{for(var at=[],Lt=0;Ltit)&&(lt.numSimplified++,at.push(bt[Lt]),at.push(bt[Lt+1])),lt.numPoints++;zt&&function(xt,Ht){for(var Xt=0,Yt=0,Qt=xt.length,Pt=Qt-2;Yt0===Ht)for(Yt=0,Qt=xt.length;Yt24)throw new Error("maxZoom should be in the 0-24 range");if(bt.promoteId&&bt.generateId)throw new Error("promoteId and generateId cannot be used together.");var yt=function(zt,Rt){var it=[];if(zt.type==="FeatureCollection")for(var at=0;at=yt;xt--){var Ht=+Date.now();at=this._cluster(at,xt),this.trees[xt]=new ce(at,De,He,Rt,Float32Array),lt&&console.log("z%d: %d clusters in %dms",xt,at.length,+Date.now()-Ht)}return lt&&console.timeEnd("total time"),this},ve.prototype.getClusters=function(vt,bt){var lt=((vt[0]+180)%360+360)%360-180,yt=Math.max(-90,Math.min(90,vt[1])),zt=vt[2]===180?180:((vt[2]+180)%360+360)%360-180,Rt=Math.max(-90,Math.min(90,vt[3]));if(vt[2]-vt[0]>=360)lt=-180,zt=180;else if(lt>zt){var it=this.getClusters([lt,yt,180,Rt],bt),at=this.getClusters([-180,yt,zt,Rt],bt);return it.concat(at)}for(var Lt=this.trees[this._limitZoom(bt)],xt=[],Ht=0,Xt=Lt.range(Pe(lt),Ie(Rt),Pe(zt),Ie(yt));Htbt&&(Pt+=dn.numPoints||1)}if(Pt>=at){for(var vn=Ht.x*Qt,Nn=Ht.y*Qt,er=it&&Qt>1?this._map(Ht,!0):null,En=(xt<<5)+(bt+1)+this.points.length,In=0,Un=Yt;In1)for(var Fn=0,ir=Yt;Fn>5},ve.prototype._getOriginZoom=function(vt){return(vt-this.points.length)%32},ve.prototype._map=function(vt,bt){if(vt.numPoints)return bt?ze({},vt.properties):vt.properties;var lt=this.points[vt.index].properties,yt=this.options.map(lt);return bt&&yt===lt?ze({},yt):yt},_t.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},_t.prototype.splitTile=function(vt,bt,lt,yt,zt,Rt,it){for(var at=[vt,bt,lt,yt],Lt=this.options,xt=Lt.debug;at.length;){yt=at.pop(),lt=at.pop(),bt=at.pop(),vt=at.pop();var Ht=1<1&&console.time("creation"),Yt=this.tiles[Xt]=en(vt,bt,lt,yt,Lt),this.tileCoords.push({z:bt,x:lt,y:yt}),xt)){xt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",bt,lt,yt,Yt.numFeatures,Yt.numPoints,Yt.numSimplified),console.timeEnd("creation"));var Qt="z"+bt;this.stats[Qt]=(this.stats[Qt]||0)+1,this.total++}if(Yt.source=vt,zt){if(bt===Lt.maxZoom||bt===zt)continue;var Pt=1<1&&console.time("clipping");var tn,Kt,fn,dn,vn,Nn,er=.5*Lt.buffer/Lt.extent,En=.5-er,In=.5+er,Un=1+er;tn=Kt=fn=dn=null,vn=Ee(vt,Ht,lt-er,lt+In,0,Yt.minX,Yt.maxX,Lt),Nn=Ee(vt,Ht,lt+En,lt+Un,0,Yt.minX,Yt.maxX,Lt),vt=null,vn&&(tn=Ee(vn,Ht,yt-er,yt+In,1,Yt.minY,Yt.maxY,Lt),Kt=Ee(vn,Ht,yt+En,yt+Un,1,Yt.minY,Yt.maxY,Lt),vn=null),Nn&&(fn=Ee(Nn,Ht,yt-er,yt+In,1,Yt.minY,Yt.maxY,Lt),dn=Ee(Nn,Ht,yt+En,yt+Un,1,Yt.minY,Yt.maxY,Lt),Nn=null),xt>1&&console.timeEnd("clipping"),at.push(tn||[],bt+1,2*lt,2*yt),at.push(Kt||[],bt+1,2*lt,2*yt+1),at.push(fn||[],bt+1,2*lt+1,2*yt),at.push(dn||[],bt+1,2*lt+1,2*yt+1)}}},_t.prototype.getTile=function(vt,bt,lt){var yt=this.options,zt=yt.extent,Rt=yt.debug;if(vt<0||vt>24)return null;var it=1<1&&console.log("drilling down to z%d-%d-%d",vt,bt,lt);for(var Lt,xt=vt,Ht=bt,Xt=lt;!Lt&&xt>0;)xt--,Ht=Math.floor(Ht/2),Xt=Math.floor(Xt/2),Lt=this.tiles[nn(xt,Ht,Xt)];return Lt&&Lt.source?(Rt>1&&console.log("found parent tile z%d-%d-%d",xt,Ht,Xt),Rt>1&&console.time("drilling down"),this.splitTile(Lt.source,xt,Ht,Xt,vt,bt,lt),Rt>1&&console.timeEnd("drilling down"),this.tiles[at]?It(this.tiles[at],zt):null):null};var bn=function(vt){function bt(lt,yt,zt,Rt){vt.call(this,lt,yt,zt,gn),Rt&&(this.loadGeoJSON=Rt)}return vt&&(bt.__proto__=vt),bt.prototype=Object.create(vt&&vt.prototype),bt.prototype.constructor=bt,bt.prototype.loadData=function(lt,yt){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=yt,this._pendingLoadDataParams=lt,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},bt.prototype._loadData=function(){var lt=this;if(this._pendingCallback&&this._pendingLoadDataParams){var yt=this._pendingCallback,zt=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Rt=!!(zt&&zt.request&&zt.request.collectResourceTiming)&&new i.RequestPerformance(zt.request);this.loadGeoJSON(zt,function(it,at){if(it||!at)return yt(it);if(typeof at!="object")return yt(new Error("Input data given to '"+zt.source+"' is not a valid GeoJSON object."));S(at,!0);try{if(zt.filter){var Lt=i.createExpression(zt.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Lt.result==="error")throw new Error(Lt.value.map(function(Yt){return Yt.key+": "+Yt.message}).join(", "));var xt=at.features.filter(function(Yt){return Lt.value.evaluate({zoom:0},Yt)});at={type:"FeatureCollection",features:xt}}lt._geoJSONIndex=zt.cluster?new ve(function(Yt){var Qt=Yt.superclusterOptions,Pt=Yt.clusterProperties;if(!Pt||!Qt)return Qt;for(var tn={},Kt={},fn={accumulated:null,zoom:0},dn={properties:null},vn=Object.keys(Pt),Nn=0,er=vn;Nn=0?0:J.button},w.remove=function(J){J.parentNode&&J.parentNode.removeChild(J)};var A=function(J){function le(){J.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.isLoaded=function(){return this.loaded},le.prototype.setLoaded=function(ie){if(this.loaded!==ie&&(this.loaded=ie,ie)){for(var V=0,ne=this.requestors;V=0?1.2:1))}function E(J,le,ie,V,ne,ge,xe){for(var Me=0;Me65535)Je(new Error("glyphs > 65535 not supported"));else if(mt.ranges[Vt])Je(null,{stack:rt,id:dt,glyph:Et});else{var jt=mt.requests[Vt];jt||(jt=mt.requests[Vt]=[],L.loadGlyphRange(rt,Vt,ie.url,ie.requestManager,function(Nt,cn){if(cn){for(var sn in cn)ie._doesCharSupportLocalGlyph(+sn)||(mt.glyphs[+sn]=cn[+sn]);mt.ranges[Vt]=!0}for(var xn=0,pn=jt;xn1&&(Fe=J[++Me]);var rt=Math.abs(Je-Fe.left),dt=Math.abs(Je-Fe.right),mt=Math.min(rt,dt),Et=void 0,Vt=ne/ie*(V+1);if(Fe.isDash){var jt=V-Math.abs(Vt);Et=Math.sqrt(mt*mt+jt*jt)}else Et=V-Math.sqrt(mt*mt+Vt*Vt);this.data[xe+Je]=Math.max(0,Math.min(255,Et+128))}},$.prototype.addRegularDash=function(J){for(var le=J.length-1;le>=0;--le){var ie=J[le],V=J[le+1];ie.zeroLength?J.splice(le,1):V&&V.isDash===ie.isDash&&(V.left=ie.left,J.splice(le,1))}var ne=J[0],ge=J[J.length-1];ne.isDash===ge.isDash&&(ne.left=ge.left-this.width,ge.right=ne.right+this.width);for(var xe=this.width*this.nextRow,Me=0,Fe=J[Me],Je=0;Je1&&(Fe=J[++Me]);var rt=Math.abs(Je-Fe.left),dt=Math.abs(Je-Fe.right),mt=Math.min(rt,dt),Et=Fe.isDash?mt:-mt;this.data[xe+Je]=Math.max(0,Math.min(255,Et+128))}},$.prototype.addDash=function(J,le){var ie=le?7:0,V=2*ie+1;if(this.nextRow+V>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var ne=0,ge=0;ge=ie&&J.x=V&&J.y0&&(Je[new i.OverscaledTileID(ie.overscaledZ,xe,V.z,ge,V.y-1).key]={backfilled:!1},Je[new i.OverscaledTileID(ie.overscaledZ,ie.wrap,V.z,V.x,V.y-1).key]={backfilled:!1},Je[new i.OverscaledTileID(ie.overscaledZ,Fe,V.z,Me,V.y-1).key]={backfilled:!1}),V.y+10&&(ne.resourceTiming=ie._resourceTiming,ie._resourceTiming=[]),ie.fire(new i.Event("data",ne))}})},le.prototype.onAdd=function(ie){this.map=ie,this.load()},le.prototype.setData=function(ie){var V=this;return this._data=ie,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(ne){if(ne)V.fire(new i.ErrorEvent(ne));else{var ge={dataType:"source",sourceDataType:"content"};V._collectResourceTiming&&V._resourceTiming&&V._resourceTiming.length>0&&(ge.resourceTiming=V._resourceTiming,V._resourceTiming=[]),V.fire(new i.Event("data",ge))}}),this},le.prototype.getClusterExpansionZoom=function(ie,V){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:ie,source:this.id},V),this},le.prototype.getClusterChildren=function(ie,V){return this.actor.send("geojson.getClusterChildren",{clusterId:ie,source:this.id},V),this},le.prototype.getClusterLeaves=function(ie,V,ne,ge){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:ie,limit:V,offset:ne},ge),this},le.prototype._updateWorkerData=function(ie){var V=this;this._loaded=!1;var ne=i.extend({},this.workerOptions),ge=this._data;typeof ge=="string"?(ne.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ge),i.ResourceType.Source),ne.request.collectResourceTiming=this._collectResourceTiming):ne.data=JSON.stringify(ge),this.actor.send(this.type+".loadData",ne,function(xe,Me){V._removed||Me&&Me.abandoned||(V._loaded=!0,Me&&Me.resourceTiming&&Me.resourceTiming[V.id]&&(V._resourceTiming=Me.resourceTiming[V.id].slice(0)),V.actor.send(V.type+".coalesce",{source:ne.source},null),ie(xe))})},le.prototype.loaded=function(){return this._loaded},le.prototype.loadTile=function(ie,V){var ne=this,ge=ie.actor?"reloadTile":"loadTile";ie.actor=this.actor;var xe={type:this.type,uid:ie.uid,tileID:ie.tileID,zoom:ie.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};ie.request=this.actor.send(ge,xe,function(Me,Fe){return delete ie.request,ie.unloadVectorData(),ie.aborted?V(null):Me?V(Me):(ie.loadVectorData(Fe,ne.map.painter,ge==="reloadTile"),V(null))})},le.prototype.abortTile=function(ie){ie.request&&(ie.request.cancel(),delete ie.request),ie.aborted=!0},le.prototype.unloadTile=function(ie){ie.unloadVectorData(),this.actor.send("removeTile",{uid:ie.uid,type:this.type,source:this.id})},le.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},le.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},le.prototype.hasTransition=function(){return!1},le}(i.Evented),oe=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),q=function(J){function le(ie,V,ne,ge){J.call(this),this.id=ie,this.dispatcher=ne,this.coordinates=V.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ge),this.options=V}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(ie,V){var ne=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ge,xe){ne._loaded=!0,ge?ne.fire(new i.ErrorEvent(ge)):xe&&(ne.image=xe,ie&&(ne.coordinates=ie),V&&V(),ne._finishLoading())})},le.prototype.loaded=function(){return this._loaded},le.prototype.updateImage=function(ie){var V=this;return this.image&&ie.url?(this.options.url=ie.url,this.load(ie.coordinates,function(){V.texture=null}),this):this},le.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},le.prototype.onAdd=function(ie){this.map=ie,this.load()},le.prototype.setCoordinates=function(ie){var V=this;this.coordinates=ie;var ne=ie.map(i.MercatorCoordinate.fromLngLat);this.tileID=function(xe){for(var Me=1/0,Fe=1/0,Je=-1/0,rt=-1/0,dt=0,mt=xe;dtV.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+V.start(0)+" and "+V.end(0)+"-second mark."))):this.video.currentTime=ie}},le.prototype.getVideo=function(){return this.video},le.prototype.onAdd=function(ie){this.map||(this.map=ie,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},le.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var ie=this.map.painter.context,V=ie.gl;for(var ne in this.boundsBuffer||(this.boundsBuffer=ie.createVertexBuffer(this._boundsArray,oe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE),V.texSubImage2D(V.TEXTURE_2D,0,0,0,V.RGBA,V.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(ie,this.video,V.RGBA),this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE)),this.tiles){var ge=this.tiles[ne];ge.state!=="loaded"&&(ge.state="loaded",ge.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this.video&&!this.video.paused},le}(q),ee=function(J){function le(ie,V,ne,ge){J.call(this,ie,V,ne,ge),V.coordinates?Array.isArray(V.coordinates)&&V.coordinates.length===4&&!V.coordinates.some(function(xe){return!Array.isArray(xe)||xe.length!==2||xe.some(function(Me){return typeof Me!="number"})})||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'missing required property "coordinates"'))),V.animate&&typeof V.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'optional "animate" property must be a boolean value'))),V.canvas?typeof V.canvas=="string"||V.canvas instanceof i.window.HTMLCanvasElement||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'missing required property "canvas"'))),this.options=V,this.animate=V.animate===void 0||V.animate}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},le.prototype.getCanvas=function(){return this.canvas},le.prototype.onAdd=function(ie){this.map=ie,this.load(),this.canvas&&this.animate&&this.play()},le.prototype.onRemove=function(){this.pause()},le.prototype.prepare=function(){var ie=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ie=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ie=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var V=this.map.painter.context,ne=V.gl;for(var ge in this.boundsBuffer||(this.boundsBuffer=V.createVertexBuffer(this._boundsArray,oe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ie||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(V,this.canvas,ne.RGBA,{premultiply:!0}),this.tiles){var xe=this.tiles[ge];xe.state!=="loaded"&&(xe.state="loaded",xe.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this._playing},le.prototype._hasInvalidDimensions=function(){for(var ie=0,V=[this.canvas.width,this.canvas.height];iethis.max){var xe=this._getAndRemoveByKey(this.order[0]);xe&&this.onRemove(xe)}return this},ce.prototype.has=function(J){return J.wrapped().key in this.data},ce.prototype.getAndRemove=function(J){return this.has(J)?this._getAndRemoveByKey(J.wrapped().key):null},ce.prototype._getAndRemoveByKey=function(J){var le=this.data[J].shift();return le.timeout&&clearTimeout(le.timeout),this.data[J].length===0&&delete this.data[J],this.order.splice(this.order.indexOf(J),1),le.value},ce.prototype.getByKey=function(J){var le=this.data[J];return le?le[0].value:null},ce.prototype.get=function(J){return this.has(J)?this.data[J.wrapped().key][0].value:null},ce.prototype.remove=function(J,le){if(!this.has(J))return this;var ie=J.wrapped().key,V=le===void 0?0:this.data[ie].indexOf(le),ne=this.data[ie][V];return this.data[ie].splice(V,1),ne.timeout&&clearTimeout(ne.timeout),this.data[ie].length===0&&delete this.data[ie],this.onRemove(ne.value),this.order.splice(this.order.indexOf(ie),1),this},ce.prototype.setMaxSize=function(J){for(this.max=J;this.order.length>this.max;){var le=this._getAndRemoveByKey(this.order[0]);le&&this.onRemove(le)}return this},ce.prototype.filter=function(J){var le=[];for(var ie in this.data)for(var V=0,ne=this.data[ie];V1||(Math.abs(rt)>1&&(Math.abs(rt+mt)===1?rt+=mt:Math.abs(rt-mt)===1&&(rt-=mt)),Je.dem&&Fe.dem&&(Fe.dem.backfillBorder(Je.dem,rt,dt),Fe.neighboringTiles&&Fe.neighboringTiles[Et]&&(Fe.neighboringTiles[Et].backfilled=!0)))}},le.prototype.getTile=function(ie){return this.getTileByID(ie.key)},le.prototype.getTileByID=function(ie){return this._tiles[ie]},le.prototype._retainLoadedChildren=function(ie,V,ne,ge){for(var xe in this._tiles){var Me=this._tiles[xe];if(!(ge[xe]||!Me.hasData()||Me.tileID.overscaledZ<=V||Me.tileID.overscaledZ>ne)){for(var Fe=Me.tileID;Me&&Me.tileID.overscaledZ>V+1;){var Je=Me.tileID.scaledTo(Me.tileID.overscaledZ-1);(Me=this._tiles[Je.key])&&Me.hasData()&&(Fe=Je)}for(var rt=Fe;rt.overscaledZ>V;)if(ie[(rt=rt.scaledTo(rt.overscaledZ-1)).key]){ge[Fe.key]=Fe;break}}}},le.prototype.findLoadedParent=function(ie,V){if(ie.key in this._loadedParentTiles){var ne=this._loadedParentTiles[ie.key];return ne&&ne.tileID.overscaledZ>=V?ne:null}for(var ge=ie.overscaledZ-1;ge>=V;ge--){var xe=ie.scaledTo(ge),Me=this._getLoadedTile(xe);if(Me)return Me}},le.prototype._getLoadedTile=function(ie){var V=this._tiles[ie.key];return V&&V.hasData()?V:this._cache.getByKey(ie.wrapped().key)},le.prototype.updateCacheSize=function(ie){var V=(Math.ceil(ie.width/this._source.tileSize)+1)*(Math.ceil(ie.height/this._source.tileSize)+1),ne=Math.floor(5*V),ge=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ne):ne;this._cache.setMaxSize(ge)},le.prototype.handleWrapJump=function(ie){var V=(ie-(this._prevLng===void 0?ie:this._prevLng))/360,ne=Math.round(V);if(this._prevLng=ie,ne){var ge={};for(var xe in this._tiles){var Me=this._tiles[xe];Me.tileID=Me.tileID.unwrapTo(Me.tileID.wrap+ne),ge[Me.tileID.key]=Me}for(var Fe in this._tiles=ge,this._timers)clearTimeout(this._timers[Fe]),delete this._timers[Fe];for(var Je in this._tiles){var rt=this._tiles[Je];this._setTileReloadTimer(Je,rt)}}},le.prototype.update=function(ie){var V=this;if(this.transform=ie,this._sourceLoaded&&!this._paused){var ne;this.updateCacheSize(ie),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?ne=ie.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(An){return new i.OverscaledTileID(An.canonical.z,An.wrap,An.canonical.z,An.canonical.x,An.canonical.y)}):(ne=ie.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(ne=ne.filter(function(An){return V._source.hasTile(An)}))):ne=[];var ge=ie.coveringZoomLevel(this._source),xe=Math.max(ge-le.maxOverzooming,this._source.minzoom),Me=Math.max(ge+le.maxUnderzooming,this._source.minzoom),Fe=this._updateRetainedTiles(ne,ge);if(it(this._source.type)){for(var Je={},rt={},dt=0,mt=Object.keys(Fe);dtthis._source.maxzoom){var cn=jt.children(this._source.maxzoom)[0],sn=this.getTile(cn);if(sn&&sn.hasData()){ne[cn.key]=cn;continue}}else{var xn=jt.children(this._source.maxzoom);if(ne[xn[0].key]&&ne[xn[1].key]&&ne[xn[2].key]&&ne[xn[3].key])continue}for(var pn=Nt.wasRequested(),Ln=jt.overscaledZ-1;Ln>=xe;--Ln){var On=jt.scaledTo(Ln);if(ge[On.key]||(ge[On.key]=!0,!(Nt=this.getTile(On))&&pn&&(Nt=this._addTile(On)),Nt&&(ne[On.key]=On,pn=Nt.wasRequested(),Nt.hasData())))break}}}return ne},le.prototype._updateLoadedParentTileCache=function(){for(var ie in this._loadedParentTiles={},this._tiles){for(var V=[],ne=void 0,ge=this._tiles[ie].tileID;ge.overscaledZ>0;){if(ge.key in this._loadedParentTiles){ne=this._loadedParentTiles[ge.key];break}V.push(ge.key);var xe=ge.scaledTo(ge.overscaledZ-1);if(ne=this._getLoadedTile(xe))break;ge=xe}for(var Me=0,Fe=V;Me0||(V.hasData()&&V.state!=="reloading"?this._cache.add(V.tileID,V,V.getExpiryTimeout()):(V.aborted=!0,this._abortTile(V),this._unloadTile(V))))},le.prototype.clearTiles=function(){for(var ie in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(ie);this._cache.reset()},le.prototype.tilesIn=function(ie,V,ne){var ge=this,xe=[],Me=this.transform;if(!Me)return xe;for(var Fe=ne?Me.getCameraQueryGeometry(ie):ie,Je=ie.map(function(Ln){return Me.pointCoordinate(Ln)}),rt=Fe.map(function(Ln){return Me.pointCoordinate(Ln)}),dt=this.getIds(),mt=1/0,Et=1/0,Vt=-1/0,jt=-1/0,Nt=0,cn=rt;Nt=0&&Dr[1].y+rr>=0){var Pr=Je.map(function(Mo){return An.getTilePoint(Mo)}),Zr=rt.map(function(Mo){return An.getTilePoint(Mo)});xe.push({tile:On,tileID:An,queryGeometry:Pr,cameraQueryGeometry:Zr,scale:Sn})}}},pn=0;pn=i.browser.now())return!0}return!1},le.prototype.setFeatureState=function(ie,V,ne){ie=ie||"_geojsonTileLayer",this._state.updateState(ie,V,ne)},le.prototype.removeFeatureState=function(ie,V,ne){ie=ie||"_geojsonTileLayer",this._state.removeFeatureState(ie,V,ne)},le.prototype.getFeatureState=function(ie,V){return ie=ie||"_geojsonTileLayer",this._state.getState(ie,V)},le.prototype.setDependencies=function(ie,V,ne){var ge=this._tiles[ie];ge&&ge.setDependencies(V,ne)},le.prototype.reloadTilesForDependencies=function(ie,V){for(var ne in this._tiles)this._tiles[ne].hasDependency(ie,V)&&this._reloadTile(ne,"reloading");this._cache.filter(function(ge){return!ge.hasDependency(ie,V)})},le}(i.Evented);function Rt(J,le){var ie=Math.abs(2*J.wrap)-+(J.wrap<0),V=Math.abs(2*le.wrap)-+(le.wrap<0);return J.overscaledZ-le.overscaledZ||V-ie||le.canonical.y-J.canonical.y||le.canonical.x-J.canonical.x}function it(J){return J==="raster"||J==="image"||J==="video"}function at(){return new i.window.Worker(Ft.workerUrl)}zt.maxOverzooming=10,zt.maxUnderzooming=3;var Lt="mapboxgl_preloaded_worker_pool",xt=function(){this.active={}};xt.prototype.acquire=function(J){if(!this.workers)for(this.workers=[];this.workers.length0?(V-ge)/xe:0;return this.points[ne].mult(1-Me).add(this.points[le].mult(Me))};var xr=function(J,le,ie){var V=this.boxCells=[],ne=this.circleCells=[];this.xCellCount=Math.ceil(J/ie),this.yCellCount=Math.ceil(le/ie);for(var ge=0;ge=-le[0]&&ie<=le[0]&&V>=-le[1]&&V<=le[1]}function Kn(J,le,ie,V,ne,ge,xe,Me){var Fe=V?J.textSizeData:J.iconSizeData,Je=i.evaluateSizeForZoom(Fe,ie.transform.zoom),rt=[256/ie.width*2+1,256/ie.height*2+1],dt=V?J.text.dynamicLayoutVertexArray:J.icon.dynamicLayoutVertexArray;dt.clear();for(var mt=J.lineVertexArray,Et=V?J.text.placedSymbolArray:J.icon.placedSymbolArray,Vt=ie.transform.width/ie.transform.height,jt=!1,Nt=0;NtMath.abs(ie.x-le.x)*V?{useVertical:!0}:(J===i.WritingMode.vertical?le.yie.x)?{needsFlipping:!0}:null}function zr(J,le,ie,V,ne,ge,xe,Me,Fe,Je,rt,dt,mt,Et){var Vt,jt=le/24,Nt=J.lineOffsetX*jt,cn=J.lineOffsetY*jt;if(J.numGlyphs>1){var sn=J.glyphStartIndex+J.numGlyphs,xn=J.lineStartIndex,pn=J.lineStartIndex+J.lineLength,Ln=_r(jt,Me,Nt,cn,ie,rt,dt,J,Fe,ge,mt);if(!Ln)return{notEnoughRoom:!0};var On=Fn(Ln.first.point,xe).point,An=Fn(Ln.last.point,xe).point;if(V&&!ie){var Sn=Ir(J.writingMode,On,An,Et);if(Sn)return Sn}Vt=[Ln.first];for(var rr=J.glyphStartIndex+1;rr0?Mo.point:Fr(dt,Zr,Dr,1,ne),vo=Ir(J.writingMode,Dr,$o,Et);if(vo)return vo}var zo=Rr(jt*Me.getoffsetX(J.glyphStartIndex),Nt,cn,ie,rt,dt,J.segment,J.lineStartIndex,J.lineStartIndex+J.lineLength,Fe,ge,mt);if(!zo)return{notEnoughRoom:!0};Vt=[zo]}for(var yi=0,Si=Vt;yi0?1:-1,Vt=0;V&&(Et*=-1,Vt=Math.PI),Et<0&&(Vt+=Math.PI);for(var jt=Et>0?Me+xe:Me+xe+1,Nt=ne,cn=ne,sn=0,xn=0,pn=Math.abs(mt),Ln=[];sn+xn<=pn;){if((jt+=Et)=Fe)return null;if(cn=Nt,Ln.push(Nt),(Nt=dt[jt])===void 0){var On=new i.Point(Je.getx(jt),Je.gety(jt)),An=Fn(On,rt);if(An.signedDistanceFromCamera>0)Nt=dt[jt]=An.point;else{var Sn=jt-Et;Nt=Fr(sn===0?ge:new i.Point(Je.getx(Sn),Je.gety(Sn)),On,cn,pn-sn+1,rt)}}sn+=xn,xn=cn.dist(Nt)}var rr=(pn-sn)/xn,Dr=Nt.sub(cn),Pr=Dr.mult(rr)._add(cn);Pr._add(Dr._unit()._perp()._mult(ie*Et));var Zr=Vt+Math.atan2(Nt.y-cn.y,Nt.x-cn.x);return Ln.push(Pr),{point:Pr,angle:Zr,path:Ln}}xr.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},xr.prototype.insert=function(J,le,ie,V,ne){this._forEachCell(le,ie,V,ne,this._insertBoxCell,this.boxUid++),this.boxKeys.push(J),this.bboxes.push(le),this.bboxes.push(ie),this.bboxes.push(V),this.bboxes.push(ne)},xr.prototype.insertCircle=function(J,le,ie,V){this._forEachCell(le-V,ie-V,le+V,ie+V,this._insertCircleCell,this.circleUid++),this.circleKeys.push(J),this.circles.push(le),this.circles.push(ie),this.circles.push(V)},xr.prototype._insertBoxCell=function(J,le,ie,V,ne,ge){this.boxCells[ne].push(ge)},xr.prototype._insertCircleCell=function(J,le,ie,V,ne,ge){this.circleCells[ne].push(ge)},xr.prototype._query=function(J,le,ie,V,ne,ge){if(ie<0||J>this.width||V<0||le>this.height)return!ne&&[];var xe=[];if(J<=0&&le<=0&&this.width<=ie&&this.height<=V){if(ne)return!0;for(var Me=0;Me0:xe},xr.prototype._queryCircle=function(J,le,ie,V,ne){var ge=J-ie,xe=J+ie,Me=le-ie,Fe=le+ie;if(xe<0||ge>this.width||Fe<0||Me>this.height)return!V&&[];var Je=[],rt={hitTest:V,circle:{x:J,y:le,radius:ie},seenUids:{box:{},circle:{}}};return this._forEachCell(ge,Me,xe,Fe,this._queryCellCircle,Je,rt,ne),V?Je.length>0:Je},xr.prototype.query=function(J,le,ie,V,ne){return this._query(J,le,ie,V,!1,ne)},xr.prototype.hitTest=function(J,le,ie,V,ne){return this._query(J,le,ie,V,!0,ne)},xr.prototype.hitTestCircle=function(J,le,ie,V){return this._queryCircle(J,le,ie,!0,V)},xr.prototype._queryCell=function(J,le,ie,V,ne,ge,xe,Me){var Fe=xe.seenUids,Je=this.boxCells[ne];if(Je!==null)for(var rt=this.bboxes,dt=0,mt=Je;dt=rt[Vt+0]&&V>=rt[Vt+1]&&(!Me||Me(this.boxKeys[Et]))){if(xe.hitTest)return ge.push(!0),!0;ge.push({key:this.boxKeys[Et],x1:rt[Vt],y1:rt[Vt+1],x2:rt[Vt+2],y2:rt[Vt+3]})}}}var jt=this.circleCells[ne];if(jt!==null)for(var Nt=this.circles,cn=0,sn=jt;cnxe*xe+Me*Me},xr.prototype._circleAndRectCollide=function(J,le,ie,V,ne,ge,xe){var Me=(ge-V)/2,Fe=Math.abs(J-(V+Me));if(Fe>Me+ie)return!1;var Je=(xe-ne)/2,rt=Math.abs(le-(ne+Je));if(rt>Je+ie)return!1;if(Fe<=Me||rt<=Je)return!0;var dt=Fe-Me,mt=rt-Je;return dt*dt+mt*mt<=ie*ie};var $r=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Kr(J,le){for(var ie=0;ie=1;$o--)Mo.push(Pr.path[$o]);for(var vo=1;vo0){for(var Hr=Mo[0].clone(),Lo=Mo[0].clone(),ki=1;ki=Sn.x&&Lo.x<=rr.x&&Hr.y>=Sn.y&&Lo.y<=rr.y?[Mo]:Lo.xrr.x||Lo.yrr.y?[]:i.clipLine([Mo],Sn.x,Sn.y,rr.x,rr.y)}for(var Io=0,$i=Si;Io<$i.length;Io+=1){var Ui=$i[Io];Dr.reset(Ui,.25*An);var ba;ba=Dr.length<=.5*An?1:Math.ceil(Dr.paddedLength/zo)+1;for(var Pi=0;Pi=this.screenRightBoundary||Vthis.screenBottomBoundary},So.prototype.isInsideGrid=function(J,le,ie,V){return ie>=0&&J=0&&le0?(this.prevPlacement&&this.prevPlacement.variableOffsets[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID].text&&(jt=this.prevPlacement.variableOffsets[dt.crossTileID].anchor),this.variableOffsets[dt.crossTileID]={textOffset:Nt,width:ie,height:V,anchor:J,textBoxScale:ne,prevAnchor:jt},this.markUsedJustification(mt,J,dt,Et),mt.allowVerticalPlacement&&(this.markUsedOrientation(mt,Et,dt),this.placedOrientations[dt.crossTileID]=Et),{shift:cn,placedGlyphBoxes:sn}):void 0},Wr.prototype.placeLayerBucketPart=function(J,le,ie){var V=this,ne=J.parameters,ge=ne.bucket,xe=ne.layout,Me=ne.posMatrix,Fe=ne.textLabelPlaneMatrix,Je=ne.labelToScreenMatrix,rt=ne.textPixelRatio,dt=ne.holdingForFade,mt=ne.collisionBoxArray,Et=ne.partiallyEvaluatedTextSize,Vt=ne.collisionGroup,jt=xe.get("text-optional"),Nt=xe.get("icon-optional"),cn=xe.get("text-allow-overlap"),sn=xe.get("icon-allow-overlap"),xn=xe.get("text-rotation-alignment")==="map",pn=xe.get("text-pitch-alignment")==="map",Ln=xe.get("icon-text-fit")!=="none",On=xe.get("symbol-z-order")==="viewport-y",An=cn&&(sn||!ge.hasIconData()||Nt),Sn=sn&&(cn||!ge.hasTextData()||jt);!ge.collisionArrays&&mt&&ge.deserializeCollisionBoxes(mt);var rr=function(vo,zo){if(!le[vo.crossTileID])if(dt)V.placements[vo.crossTileID]=new Yn(!1,!1,!1);else{var yi,Si=!1,Hr=!1,Lo=!0,ki=null,Io={box:null,offscreen:null},$i={box:null,offscreen:null},Ui=null,ba=null,Pi=0,fs=0,mr=0;zo.textFeatureIndex?Pi=zo.textFeatureIndex:vo.useRuntimeCollisionCircles&&(Pi=vo.featureIndex),zo.verticalTextFeatureIndex&&(fs=zo.verticalTextFeatureIndex);var ys=zo.textBox;if(ys){var Pl=function(tc){var Wf=i.WritingMode.horizontal;if(ge.allowVerticalPlacement&&!tc&&V.prevPlacement){var Rl=V.prevPlacement.placedOrientations[vo.crossTileID];Rl&&(V.placedOrientations[vo.crossTileID]=Rl,Wf=Rl,V.markUsedOrientation(ge,Wf,vo))}return Wf},Ys=function(tc,Wf){if(ge.allowVerticalPlacement&&vo.numVerticalGlyphVertices>0&&zo.verticalTextBox)for(var Rl=0,lg=ge.writingModes;Rl0&&(dl=dl.filter(function(tc){return tc!==ds.anchor})).unshift(ds.anchor)}var Pa=function(tc,Wf,Rl){for(var lg=tc.x2-tc.x1,E0=tc.y2-tc.y1,xm=vo.textBoxScale,Cx=Ln&&!sn?Wf:null,eh={box:[],offscreen:!1},Ax=cn?2*dl.length:dl.length,Wg=0;Wg=dl.length,oc=V.attemptAnchorPlacement(Mx,tc,lg,E0,xm,xn,pn,rt,Me,Vt,O1,vo,ge,Rl,Cx);if(oc&&(eh=oc.placedGlyphBoxes)&&eh.box&&eh.box.length){Si=!0,ki=oc.shift;break}}return eh};Ys(function(){return Pa(ys,zo.iconBox,i.WritingMode.horizontal)},function(){var tc=zo.verticalTextBox,Wf=Io&&Io.box&&Io.box.length;return ge.allowVerticalPlacement&&!Wf&&vo.numVerticalGlyphVertices>0&&tc?Pa(tc,zo.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}}),Io&&(Si=Io.box,Lo=Io.offscreen);var Rs=Pl(Io&&Io.box);if(!Si&&V.prevPlacement){var Ls=V.prevPlacement.variableOffsets[vo.crossTileID];Ls&&(V.variableOffsets[vo.crossTileID]=Ls,V.markUsedJustification(ge,Ls.anchor,vo,Rs))}}else{var ol=function(tc,Wf){var Rl=V.collisionIndex.placeCollisionBox(tc,cn,rt,Me,Vt.predicate);return Rl&&Rl.box&&Rl.box.length&&(V.markUsedOrientation(ge,Wf,vo),V.placedOrientations[vo.crossTileID]=Wf),Rl};Ys(function(){return ol(ys,i.WritingMode.horizontal)},function(){var tc=zo.verticalTextBox;return ge.allowVerticalPlacement&&vo.numVerticalGlyphVertices>0&&tc?ol(tc,i.WritingMode.vertical):{box:null,offscreen:null}}),Pl(Io&&Io.box&&Io.box.length)}}if(Si=(yi=Io)&&yi.box&&yi.box.length>0,Lo=yi&&yi.offscreen,vo.useRuntimeCollisionCircles){var Is=ge.text.placedSymbolArray.get(vo.centerJustifiedTextSymbolIndex),Ds=i.evaluateSizeForFeature(ge.textSizeData,Et,Is),ec=xe.get("text-padding"),Tc=vo.collisionCircleDiameter;Ui=V.collisionIndex.placeCollisionCircles(cn,Is,ge.lineVertexArray,ge.glyphOffsetArray,Ds,Me,Fe,Je,ie,pn,Vt.predicate,Tc,ec),Si=cn||Ui.circles.length>0&&!Ui.collisionDetected,Lo=Lo&&Ui.offscreen}if(zo.iconFeatureIndex&&(mr=zo.iconFeatureIndex),zo.iconBox){var op=function(tc){var Wf=Ln&&ki?Qr(tc,ki.x,ki.y,xn,pn,V.transform.angle):tc;return V.collisionIndex.placeCollisionBox(Wf,sn,rt,Me,Vt.predicate)};Hr=$i&&$i.box&&$i.box.length&&zo.verticalIconBox?(ba=op(zo.verticalIconBox)).box.length>0:(ba=op(zo.iconBox)).box.length>0,Lo=Lo&&ba.offscreen}var ip=jt||vo.numHorizontalGlyphVertices===0&&vo.numVerticalGlyphVertices===0,Hs=Nt||vo.numIconVertices===0;if(ip||Hs?Hs?ip||(Hr=Hr&&Si):Si=Hr&&Si:Hr=Si=Hr&&Si,Si&&yi&&yi.box&&($i&&$i.box&&fs?V.collisionIndex.insertCollisionBox(yi.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,fs,Vt.ID):V.collisionIndex.insertCollisionBox(yi.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,Pi,Vt.ID)),Hr&&ba&&V.collisionIndex.insertCollisionBox(ba.box,xe.get("icon-ignore-placement"),ge.bucketInstanceId,mr,Vt.ID),Ui&&(Si&&V.collisionIndex.insertCollisionCircles(Ui.circles,xe.get("text-ignore-placement"),ge.bucketInstanceId,Pi,Vt.ID),ie)){var wh=ge.bucketInstanceId,hd=V.collisionCircleArrays[wh];hd===void 0&&(hd=V.collisionCircleArrays[wh]=new br);for(var qf=0;qf=0;--Pr){var Zr=Dr[Pr];rr(ge.symbolInstances.get(Zr),ge.collisionArrays[Zr])}else for(var Mo=J.symbolInstanceStart;Mo=0&&(J.text.placedSymbolArray.get(Fe).crossTileID=ne>=0&&Fe!==ne?0:ie.crossTileID)}},Wr.prototype.markUsedOrientation=function(J,le,ie){for(var V=le===i.WritingMode.horizontal||le===i.WritingMode.horizontalOnly?le:0,ne=le===i.WritingMode.vertical?le:0,ge=0,xe=[ie.leftJustifiedTextSymbolIndex,ie.centerJustifiedTextSymbolIndex,ie.rightJustifiedTextSymbolIndex];ge0||pn>0,rr=sn.numIconVertices>0,Dr=V.placedOrientations[sn.crossTileID],Pr=Dr===i.WritingMode.vertical,Zr=Dr===i.WritingMode.horizontal||Dr===i.WritingMode.horizontalOnly;if(Sn){var Mo=vr(An.text),$o=Pr?nr:Mo;Et(J.text,xn,$o);var vo=Zr?nr:Mo;Et(J.text,pn,vo);var zo=An.text.isHidden();[sn.rightJustifiedTextSymbolIndex,sn.centerJustifiedTextSymbolIndex,sn.leftJustifiedTextSymbolIndex].forEach(function(mr){mr>=0&&(J.text.placedSymbolArray.get(mr).hidden=zo||Pr?1:0)}),sn.verticalPlacedTextSymbolIndex>=0&&(J.text.placedSymbolArray.get(sn.verticalPlacedTextSymbolIndex).hidden=zo||Zr?1:0);var yi=V.variableOffsets[sn.crossTileID];yi&&V.markUsedJustification(J,yi.anchor,sn,Dr);var Si=V.placedOrientations[sn.crossTileID];Si&&(V.markUsedJustification(J,"left",sn,Si),V.markUsedOrientation(J,Si,sn))}if(rr){var Hr=vr(An.icon),Lo=!(dt&&sn.verticalPlacedIconSymbolIndex&&Pr);if(sn.placedIconSymbolIndex>=0){var ki=Lo?Hr:nr;Et(J.icon,sn.numIconVertices,ki),J.icon.placedSymbolArray.get(sn.placedIconSymbolIndex).hidden=An.icon.isHidden()}if(sn.verticalPlacedIconSymbolIndex>=0){var Io=Lo?nr:Hr;Et(J.icon,sn.numVerticalIconVertices,Io),J.icon.placedSymbolArray.get(sn.verticalPlacedIconSymbolIndex).hidden=An.icon.isHidden()}}if(J.hasIconCollisionBoxData()||J.hasTextCollisionBoxData()){var $i=J.collisionArrays[cn];if($i){var Ui=new i.Point(0,0);if($i.textBox||$i.verticalTextBox){var ba=!0;if(Fe){var Pi=V.variableOffsets[Ln];Pi?(Ui=io(Pi.anchor,Pi.width,Pi.height,Pi.textOffset,Pi.textBoxScale),Je&&Ui._rotate(rt?V.transform.angle:-V.transform.angle)):ba=!1}$i.textBox&&bo(J.textCollisionBox.collisionVertexArray,An.text.placed,!ba||Pr,Ui.x,Ui.y),$i.verticalTextBox&&bo(J.textCollisionBox.collisionVertexArray,An.text.placed,!ba||Zr,Ui.x,Ui.y)}var fs=!!(!Zr&&$i.verticalIconBox);$i.iconBox&&bo(J.iconCollisionBox.collisionVertexArray,An.icon.placed,fs,dt?Ui.x:0,dt?Ui.y:0),$i.verticalIconBox&&bo(J.iconCollisionBox.collisionVertexArray,An.icon.placed,!fs,dt?Ui.x:0,dt?Ui.y:0)}}},jt=0;jtJ},Wr.prototype.setStale=function(){this.stale=!0};var Bn=Math.pow(2,25),hr=Math.pow(2,24),hn=Math.pow(2,17),zn=Math.pow(2,16),Zn=Math.pow(2,9),yr=Math.pow(2,8),gr=Math.pow(2,1);function vr(J){if(J.opacity===0&&!J.placed)return 0;if(J.opacity===1&&J.placed)return 4294967295;var le=J.placed?1:0,ie=Math.floor(127*J.opacity);return ie*Bn+le*hr+ie*hn+le*zn+ie*Zn+le*yr+ie*gr+le}var nr=0,Qn=function(J){this._sortAcrossTiles=J.layout.get("symbol-z-order")!=="viewport-y"&&J.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Qn.prototype.continuePlacement=function(J,le,ie,V,ne){for(var ge=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var xe=le[J[this._currentPlacementIndex]],Me=this.placement.collisionIndex.transform.zoom;if(xe.type==="symbol"&&(!xe.minzoom||xe.minzoom<=Me)&&(!xe.maxzoom||xe.maxzoom>Me)){if(this._inProgressLayer||(this._inProgressLayer=new Qn(xe)),this._inProgressLayer.continuePlacement(ie[xe.source],this.placement,this._showCollisionBoxes,xe,ge))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Hn.prototype.commit=function(J){return this.placement.commit(J),this.placement};var tr=512/i.EXTENT/2,cr=function(J,le,ie){this.tileID=J,this.indexedSymbolInstances={},this.bucketInstanceId=ie;for(var V=0;VJ.overscaledZ)for(var Me in xe){var Fe=xe[Me];Fe.tileID.isChildOf(J)&&Fe.findMatches(le.symbolInstances,J,ne)}else{var Je=xe[J.scaledTo(Number(ge)).key];Je&&Je.findMatches(le.symbolInstances,J,ne)}}for(var rt=0;rt1?"@2x":"",dt=i.getJSON(ge.transformRequest(ge.normalizeSpriteURL(ne,rt,".json"),i.ResourceType.SpriteJSON),function(Vt,jt){dt=null,Je||(Je=Vt,Me=jt,Et())}),mt=i.getImage(ge.transformRequest(ge.normalizeSpriteURL(ne,rt,".png"),i.ResourceType.SpriteImage),function(Vt,jt){mt=null,Je||(Je=Vt,Fe=jt,Et())});function Et(){if(Je)xe(Je);else if(Me&&Fe){var Vt=i.browser.getImageData(Fe),jt={};for(var Nt in Me){var cn=Me[Nt],sn=cn.width,xn=cn.height,pn=cn.x,Ln=cn.y,On=cn.sdf,An=cn.pixelRatio,Sn=cn.stretchX,rr=cn.stretchY,Dr=cn.content,Pr=new i.RGBAImage({width:sn,height:xn});i.RGBAImage.copy(Vt,Pr,{x:pn,y:Ln},{x:0,y:0},{width:sn,height:xn}),jt[Nt]={data:Pr,pixelRatio:An,sdf:On,stretchX:Sn,stretchY:rr,content:Dr}}xe(null,jt)}}return{cancel:function(){dt&&(dt.cancel(),dt=null),mt&&(mt.cancel(),mt=null)}}}(ie,this.map._requestManager,function(ne,ge){if(V._spriteRequest=null,ne)V.fire(new i.ErrorEvent(ne));else if(ge)for(var xe in ge)V.imageManager.addImage(xe,ge[xe]);V.imageManager.setLoaded(!0),V._availableImages=V.imageManager.listImages(),V.dispatcher.broadcast("setImages",V._availableImages),V.fire(new i.Event("data",{dataType:"style"}))})},le.prototype._validateLayer=function(ie){var V=this.sourceCaches[ie.source];if(V){var ne=ie.sourceLayer;if(ne){var ge=V.getSource();(ge.type==="geojson"||ge.vectorLayerIds&&ge.vectorLayerIds.indexOf(ne)===-1)&&this.fire(new i.ErrorEvent(new Error('Source layer "'+ne+'" does not exist on source "'+ge.id+'" as specified by style layer "'+ie.id+'"')))}}},le.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var ie in this.sourceCaches)if(!this.sourceCaches[ie].loaded())return!1;return!!this.imageManager.isLoaded()},le.prototype._serializeLayers=function(ie){for(var V=[],ne=0,ge=ie;ne0)throw new Error("Unimplemented: "+ge.map(function(xe){return xe.command}).join(", ")+".");return ne.forEach(function(xe){xe.command!=="setTransition"&&V[xe.command].apply(V,xe.args)}),this.stylesheet=ie,!0},le.prototype.addImage=function(ie,V){if(this.getImage(ie))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ie,V),this._afterImageUpdated(ie)},le.prototype.updateImage=function(ie,V){this.imageManager.updateImage(ie,V)},le.prototype.getImage=function(ie){return this.imageManager.getImage(ie)},le.prototype.removeImage=function(ie){if(!this.getImage(ie))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ie),this._afterImageUpdated(ie)},le.prototype._afterImageUpdated=function(ie){this._availableImages=this.imageManager.listImages(),this._changedImages[ie]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},le.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},le.prototype.addSource=function(ie,V,ne){var ge=this;if(ne===void 0&&(ne={}),this._checkLoaded(),this.sourceCaches[ie]!==void 0)throw new Error("There is already a source with this ID");if(!V.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(V).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(V.type)>=0&&this._validate(i.validateStyle.source,"sources."+ie,V,null,ne))){this.map&&this.map._collectResourceTiming&&(V.collectResourceTiming=!0);var xe=this.sourceCaches[ie]=new zt(ie,V,this.dispatcher);xe.style=this,xe.setEventedParent(this,function(){return{isSourceLoaded:ge.loaded(),source:xe.serialize(),sourceId:ie}}),xe.onAdd(this.map),this._changed=!0}},le.prototype.removeSource=function(ie){if(this._checkLoaded(),this.sourceCaches[ie]===void 0)throw new Error("There is no source with this ID");for(var V in this._layers)if(this._layers[V].source===ie)return this.fire(new i.ErrorEvent(new Error('Source "'+ie+'" cannot be removed while layer "'+V+'" is using it.')));var ne=this.sourceCaches[ie];delete this.sourceCaches[ie],delete this._updatedSources[ie],ne.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ie})),ne.setEventedParent(null),ne.clearTiles(),ne.onRemove&&ne.onRemove(this.map),this._changed=!0},le.prototype.setGeoJSONSourceData=function(ie,V){this._checkLoaded(),this.sourceCaches[ie].getSource().setData(V),this._changed=!0},le.prototype.getSource=function(ie){return this.sourceCaches[ie]&&this.sourceCaches[ie].getSource()},le.prototype.addLayer=function(ie,V,ne){ne===void 0&&(ne={}),this._checkLoaded();var ge=ie.id;if(this.getLayer(ge))this.fire(new i.ErrorEvent(new Error('Layer with id "'+ge+'" already exists on this map')));else{var xe;if(ie.type==="custom"){if(to(this,i.validateCustomStyleLayer(ie)))return;xe=i.createStyleLayer(ie)}else{if(typeof ie.source=="object"&&(this.addSource(ge,ie.source),ie=i.clone$1(ie),ie=i.extend(ie,{source:ge})),this._validate(i.validateStyle.layer,"layers."+ge,ie,{arrayIndex:-1},ne))return;xe=i.createStyleLayer(ie),this._validateLayer(xe),xe.setEventedParent(this,{layer:{id:ge}}),this._serializedLayers[xe.id]=xe.serialize()}var Me=V?this._order.indexOf(V):this._order.length;if(V&&Me===-1)this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.')));else{if(this._order.splice(Me,0,ge),this._layerOrderChanged=!0,this._layers[ge]=xe,this._removedLayers[ge]&&xe.source&&xe.type!=="custom"){var Fe=this._removedLayers[ge];delete this._removedLayers[ge],Fe.type!==xe.type?this._updatedSources[xe.source]="clear":(this._updatedSources[xe.source]="reload",this.sourceCaches[xe.source].pause())}this._updateLayer(xe),xe.onAdd&&xe.onAdd(this.map)}}},le.prototype.moveLayer=function(ie,V){if(this._checkLoaded(),this._changed=!0,this._layers[ie]){if(ie!==V){var ne=this._order.indexOf(ie);this._order.splice(ne,1);var ge=V?this._order.indexOf(V):this._order.length;V&&ge===-1?this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.'))):(this._order.splice(ge,0,ie),this._layerOrderChanged=!0)}}else this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be moved.")))},le.prototype.removeLayer=function(ie){this._checkLoaded();var V=this._layers[ie];if(V){V.setEventedParent(null);var ne=this._order.indexOf(ie);this._order.splice(ne,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ie]=V,delete this._layers[ie],delete this._serializedLayers[ie],delete this._updatedLayers[ie],delete this._updatedPaintProps[ie],V.onRemove&&V.onRemove(this.map)}else this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be removed.")))},le.prototype.getLayer=function(ie){return this._layers[ie]},le.prototype.hasLayer=function(ie){return ie in this._layers},le.prototype.setLayerZoomRange=function(ie,V,ne){this._checkLoaded();var ge=this.getLayer(ie);ge?ge.minzoom===V&&ge.maxzoom===ne||(V!=null&&(ge.minzoom=V),ne!=null&&(ge.maxzoom=ne),this._updateLayer(ge)):this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot have zoom extent.")))},le.prototype.setFilter=function(ie,V,ne){ne===void 0&&(ne={}),this._checkLoaded();var ge=this.getLayer(ie);if(ge){if(!i.deepEqual(ge.filter,V))return V==null?(ge.filter=void 0,void this._updateLayer(ge)):void(this._validate(i.validateStyle.filter,"layers."+ge.id+".filter",V,null,ne)||(ge.filter=i.clone$1(V),this._updateLayer(ge)))}else this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be filtered.")))},le.prototype.getFilter=function(ie){return i.clone$1(this.getLayer(ie).filter)},le.prototype.setLayoutProperty=function(ie,V,ne,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ie);xe?i.deepEqual(xe.getLayoutProperty(V),ne)||(xe.setLayoutProperty(V,ne,ge),this._updateLayer(xe)):this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getLayoutProperty=function(ie,V){var ne=this.getLayer(ie);if(ne)return ne.getLayoutProperty(V);this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style.")))},le.prototype.setPaintProperty=function(ie,V,ne,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ie);xe?i.deepEqual(xe.getPaintProperty(V),ne)||(xe.setPaintProperty(V,ne,ge)&&this._updateLayer(xe),this._changed=!0,this._updatedPaintProps[ie]=!0):this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getPaintProperty=function(ie,V){return this.getLayer(ie).getPaintProperty(V)},le.prototype.setFeatureState=function(ie,V){this._checkLoaded();var ne=ie.source,ge=ie.sourceLayer,xe=this.sourceCaches[ne];if(xe!==void 0){var Me=xe.getSource().type;Me==="geojson"&&ge?this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Me!=="vector"||ge?(ie.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),xe.setFeatureState(ge,ie.id,V)):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ne+"' does not exist in the map's style.")))},le.prototype.removeFeatureState=function(ie,V){this._checkLoaded();var ne=ie.source,ge=this.sourceCaches[ne];if(ge!==void 0){var xe=ge.getSource().type,Me=xe==="vector"?ie.sourceLayer:void 0;xe!=="vector"||Me?V&&typeof ie.id!="string"&&typeof ie.id!="number"?this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):ge.removeFeatureState(Me,ie.id,V):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ne+"' does not exist in the map's style.")))},le.prototype.getFeatureState=function(ie){this._checkLoaded();var V=ie.source,ne=ie.sourceLayer,ge=this.sourceCaches[V];if(ge!==void 0){if(ge.getSource().type!=="vector"||ne)return ie.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ge.getFeatureState(ne,ie.id);this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+V+"' does not exist in the map's style.")))},le.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},le.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(ie){return ie.serialize()}),layers:this._serializeLayers(this._order)},function(ie){return ie!==void 0})},le.prototype._updateLayer=function(ie){this._updatedLayers[ie.id]=!0,ie.source&&!this._updatedSources[ie.source]&&this.sourceCaches[ie.source].getSource().type!=="raster"&&(this._updatedSources[ie.source]="reload",this.sourceCaches[ie.source].pause()),this._changed=!0},le.prototype._flattenAndSortRenderedFeatures=function(ie){for(var V=this,ne=function(Dr){return V._layers[Dr].type==="fill-extrusion"},ge={},xe=[],Me=this._order.length-1;Me>=0;Me--){var Fe=this._order[Me];if(ne(Fe)){ge[Fe]=Me;for(var Je=0,rt=ie;Je=0;Nt--){var cn=this._order[Nt];if(ne(cn))for(var sn=xe.length-1;sn>=0;sn--){var xn=xe[sn].feature;if(ge[xn.layer.id]24?(isFinite(ne)&&(clearTimeout(li),li=setTimeout(br,ne)),go=0):(go=1,Pn(br))}function dr(){for(var V=Date.now(),ne=so;ne;)V>=ne.t&&ne.c(V-ne.t)&&(ne.c=null),ne=ne.n;return V}function Cr(){for(var V,ne=so,ge=1/0;ne;)ne.c?(ne.t1&&(ne=V[Fe[Je-2]],ge=V[Fe[Je-1]],xe=V[rt],(ge[0]-ne[0])*(xe[1]-ne[1])-(ge[1]-ne[1])*(xe[0]-ne[0])<=0);)--Je;Fe[Je++]=rt}return Fe.slice(0,Je)}function bo(V,ne){return V[0]-ne[0]||V[1]-ne[1]}i.timer=function(){Yn.apply(this,arguments)},i.timer.flush=function(){dr(),Cr()},i.round=function(V,ne){return ne?Math.round(V*(ne=Math.pow(10,ne)))/ne:Math.round(V)},i.geom={},i.geom.hull=function(V){var ne=io,ge=Qr;if(arguments.length)return xe(V);function xe(Me){if(Me.length<3)return[];var Fe,Je=$r(ne),rt=$r(ge),dt=Me.length,mt=[],Et=[];for(Fe=0;Fe=0;--Fe)sn.push(Me[mt[Vt[Fe]][2]]);for(Fe=+Nt;Fe_t)rt=rt.L;else{if(!((Me=Fe-_o(rt,Je))>_t)){xe>-_t?(ne=rt.P,ge=rt):Me>-_t?(ne=rt,ge=rt.N):ne=ge=rt;break}if(!rt.R){ne=rt;break}rt=rt.R}var dt=cr(V);if(gr.insert(ne,dt),ne||ge){if(ne===ge)return Go(ne),ge=cr(ne.site),gr.insert(dt,ge),dt.edge=ge.edge=Ao(ne.site,dt.site),co(ne),void co(ge);if(ge){Go(ne),Go(ge);var mt=ne.site,Et=mt.x,Vt=mt.y,jt=V.x-Et,Nt=V.y-Vt,cn=ge.site,sn=cn.x-Et,xn=cn.y-Vt,pn=2*(jt*xn-Nt*sn),Ln=jt*jt+Nt*Nt,On=sn*sn+xn*xn,An={x:(xn*Ln-Nt*On)/pn+Et,y:(jt*On-sn*Ln)/pn+Vt};oi(ge.edge,mt,cn,An),dt.edge=Ao(mt,V,null,An),ge.edge=Ao(V,cn,null,An),co(ne),co(ge)}else dt.edge=Ao(ne.site,dt.site)}}function to(V,ne){var ge=V.site,xe=ge.x,Me=ge.y,Fe=Me-ne;if(!Fe)return xe;var Je=V.P;if(!Je)return-1/0;var rt=(ge=Je.site).x,dt=ge.y,mt=dt-ne;if(!mt)return rt;var Et=rt-xe,Vt=1/Fe-1/mt,jt=Et/mt;return Vt?(-jt+Math.sqrt(jt*jt-2*Vt*(Et*Et/(-2*mt)-dt+mt/2+Me-Fe/2)))/Vt+xe:(xe+rt)/2}function _o(V,ne){var ge=V.N;if(ge)return to(ge,ne);var xe=V.site;return xe.y===ne?xe.x:1/0}function fr(V){this.site=V,this.edges=[]}function Eo(V,ne){return ne.angle-V.angle}function ao(){mo(this),this.x=this.y=this.arc=this.site=this.cy=null}function co(V){var ne=V.P,ge=V.N;if(ne&&ge){var xe=ne.site,Me=V.site,Fe=ge.site;if(xe!==Fe){var Je=Me.x,rt=Me.y,dt=xe.x-Je,mt=xe.y-rt,Et=Fe.x-Je,Vt=2*(dt*(xn=Fe.y-rt)-mt*Et);if(!(Vt>=-nn)){var jt=dt*dt+mt*mt,Nt=Et*Et+xn*xn,cn=(xn*jt-mt*Nt)/Vt,sn=(dt*Nt-Et*jt)/Vt,xn=sn+rt,pn=Hn.pop()||new ao;pn.arc=V,pn.site=Me,pn.x=cn+Je,pn.y=xn+Math.sqrt(cn*cn+sn*sn),pn.cy=xn,V.circle=pn;for(var Ln=null,On=nr._;On;)if(pn.y=rt)return;if(jt>cn){if(Fe){if(Fe.y>=mt)return}else Fe={x:xn,y:dt};ge={x:xn,y:mt}}else{if(Fe){if(Fe.y1)if(jt>cn){if(Fe){if(Fe.y>=mt)return}else Fe={x:(dt-Me)/xe,y:dt};ge={x:(mt-Me)/xe,y:mt}}else{if(Fe){if(Fe.y=rt)return}else Fe={x:Je,y:xe*Je+Me};ge={x:rt,y:xe*rt+Me}}else{if(Fe){if(Fe.x0)){if(pn/=Pr,Pr<0){if(pn0){if(pn>Dr)return;pn>rr&&(rr=pn)}if(pn=Vt-An,Pr||!(pn<0)){if(pn/=Pr,Pr<0){if(pn>Dr)return;pn>rr&&(rr=pn)}else if(Pr>0){if(pn0)){if(pn/=Zr,Zr<0){if(pn0){if(pn>Dr)return;pn>rr&&(rr=pn)}if(pn=jt-Sn,Zr||!(pn<0)){if(pn/=Zr,Zr<0){if(pn>Dr)return;pn>rr&&(rr=pn)}else if(Zr>0){if(pn0&&(xn.a={x:An+rr*Pr,y:Sn+rr*Zr}),Dr<1&&(xn.b={x:An+Dr*Pr,y:Sn+Dr*Zr}),xn}}}}}),sn=Nt.length;sn--;)(!po(dt=Nt[sn],rt)||!cn(dt)||E(dt.a.x-dt.b.x)<_t&&E(dt.a.y-dt.b.y)<_t)&&(dt.a=dt.b=null,Nt.splice(sn,1))}(ne),function(rt){for(var dt,mt,Et,Vt,jt,Nt,cn,sn,xn,pn,Ln=rt[0][0],On=rt[1][0],An=rt[0][1],Sn=rt[1][1],rr=yr,Dr=rr.length;Dr--;)if((jt=rr[Dr])&&jt.prepare())for(sn=(cn=jt.edges).length,Nt=0;Nt_t||E(Vt-mt)>_t)&&(cn.splice(Nt,0,new ko((Pr=jt.site,Zr=pn,Mo=E(Et-Ln)<_t&&Sn-Vt>_t?{x:Ln,y:E(dt-Ln)<_t?mt:Sn}:E(Vt-Sn)<_t&&On-Et>_t?{x:E(mt-Sn)<_t?dt:On,y:Sn}:E(Et-On)<_t&&Vt-An>_t?{x:On,y:E(dt-On)<_t?mt:An}:E(Vt-An)<_t&&Et-Ln>_t?{x:E(mt-An)<_t?dt:Ln,y:An}:null,$o=void 0,($o=new qo(Pr,null)).a=Zr,$o.b=Mo,Zn.push($o),$o),jt.site,null)),++sn);var Pr,Zr,Mo,$o}(ne));var Je={cells:yr,edges:Zn};return gr=nr=Zn=yr=null,Je}function wc(V,ne){return ne.y-V.y||ne.x-V.x}fr.prototype.prepare=function(){for(var V,ne=this.edges,ge=ne.length;ge--;)(V=ne[ge].edge).b&&V.a||ne.splice(ge,1);return ne.sort(Eo),ne.length},ko.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},ra.prototype={insert:function(V,ne){var ge,xe,Me;if(V){if(ne.P=V,ne.N=V.N,V.N&&(V.N.P=ne),V.N=ne,V.R){for(V=V.R;V.L;)V=V.L;V.L=ne}else V.R=ne;ge=V}else this._?(V=Na(this._),ne.P=null,ne.N=V,V.P=V.L=ne,ge=V):(ne.P=ne.N=null,this._=ne,ge=null);for(ne.L=ne.R=null,ne.U=ge,ne.C=!0,V=ne;ge&&ge.C;)ge===(xe=ge.U).L?(Me=xe.R)&&Me.C?(ge.C=Me.C=!1,xe.C=!0,V=xe):(V===ge.R&&(Aa(this,ge),ge=(V=ge).U),ge.C=!1,xe.C=!0,Xl(this,xe)):(Me=xe.L)&&Me.C?(ge.C=Me.C=!1,xe.C=!0,V=xe):(V===ge.L&&(Xl(this,ge),ge=(V=ge).U),ge.C=!1,xe.C=!0,Aa(this,xe)),ge=V.U;this._.C=!1},remove:function(V){V.N&&(V.N.P=V.P),V.P&&(V.P.N=V.N),V.N=V.P=null;var ne,ge,xe,Me=V.U,Fe=V.L,Je=V.R;if(ge=Fe?Je?Na(Je):Fe:Je,Me?Me.L===V?Me.L=ge:Me.R=ge:this._=ge,Fe&&Je?(xe=ge.C,ge.C=V.C,ge.L=Fe,Fe.U=ge,ge!==Je?(Me=ge.U,ge.U=V.U,V=ge.R,Me.L=V,ge.R=Je,Je.U=ge):(ge.U=Me,Me=ge,V=ge.R)):(xe=V.C,V=ge),V&&(V.U=Me),!xe)if(V&&V.C)V.C=!1;else{do{if(V===this._)break;if(V===Me.L){if((ne=Me.R).C&&(ne.C=!1,Me.C=!0,Aa(this,Me),ne=Me.R),ne.L&&ne.L.C||ne.R&&ne.R.C){ne.R&&ne.R.C||(ne.L.C=!1,ne.C=!0,Xl(this,ne),ne=Me.R),ne.C=Me.C,Me.C=ne.R.C=!1,Aa(this,Me),V=this._;break}}else if((ne=Me.L).C&&(ne.C=!1,Me.C=!0,Xl(this,Me),ne=Me.L),ne.L&&ne.L.C||ne.R&&ne.R.C){ne.L&&ne.L.C||(ne.R.C=!1,ne.C=!0,Aa(this,ne),ne=Me.L),ne.C=Me.C,Me.C=ne.L.C=!1,Xl(this,Me),V=this._;break}ne.C=!0,V=Me,Me=Me.U}while(!V.C);V&&(V.C=!1)}}},i.geom.voronoi=function(V){var ne=io,ge=Qr,xe=ne,Me=ge,Fe=ga;if(V)return Je(V);function Je(dt){var mt=new Array(dt.length),Et=Fe[0][0],Vt=Fe[0][1],jt=Fe[1][0],Nt=Fe[1][1];return us(rt(dt),Fe).cells.forEach(function(cn,sn){var xn=cn.edges,pn=cn.site;(mt[sn]=xn.length?xn.map(function(Ln){var On=Ln.start();return[On.x,On.y]}):pn.x>=Et&&pn.x<=jt&&pn.y>=Vt&&pn.y<=Nt?[[Et,Nt],[jt,Nt],[jt,Vt],[Et,Vt]]:[]).point=dt[sn]}),mt}function rt(dt){return dt.map(function(mt,Et){return{x:Math.round(xe(mt,Et)/_t)*_t,y:Math.round(Me(mt,Et)/_t)*_t,i:Et}})}return Je.links=function(dt){return us(rt(dt)).edges.filter(function(mt){return mt.l&&mt.r}).map(function(mt){return{source:dt[mt.l.i],target:dt[mt.r.i]}})},Je.triangles=function(dt){var mt=[];return us(rt(dt)).cells.forEach(function(Et,Vt){for(var jt,Nt,cn,sn,xn=Et.site,pn=Et.edges.sort(Eo),Ln=-1,On=pn.length,An=pn[On-1].edge,Sn=An.l===xn?An.r:An.l;++LnFe&&(Me=ne.slice(Fe,Me),rt[Je]?rt[Je]+=Me:rt[++Je]=Me),(ge=ge[0])===(xe=xe[0])?rt[Je]?rt[Je]+=xe:rt[++Je]=xe:(rt[++Je]=null,dt.push({i:Je,x:Nf(ge,xe)})),Fe=gm.lastIndex;return Fepn&&(pn=Et.x),Et.y>Ln&&(Ln=Et.y),Vt.push(Et.x),jt.push(Et.y);else for(Nt=0;Ntpn&&(pn=Sn),rr>Ln&&(Ln=rr),Vt.push(Sn),jt.push(rr)}var Dr=pn-sn,Pr=Ln-xn;function Zr(vo,zo,yi,Si,Hr,Lo,ki,Io){if(!isNaN(yi)&&!isNaN(Si))if(vo.leaf){var $i=vo.x,Ui=vo.y;if($i!=null)if(E($i-yi)+E(Ui-Si)<.01)Mo(vo,zo,yi,Si,Hr,Lo,ki,Io);else{var ba=vo.point;vo.x=vo.y=vo.point=null,Mo(vo,ba,$i,Ui,Hr,Lo,ki,Io),Mo(vo,zo,yi,Si,Hr,Lo,ki,Io)}else vo.x=yi,vo.y=Si,vo.point=zo}else Mo(vo,zo,yi,Si,Hr,Lo,ki,Io)}function Mo(vo,zo,yi,Si,Hr,Lo,ki,Io){var $i=.5*(Hr+ki),Ui=.5*(Lo+Io),ba=yi>=$i,Pi=Si>=Ui,ds=Pi<<1|ba;vo.leaf=!1,ba?Hr=$i:ki=$i,Pi?Lo=Ui:Io=Ui,Zr(vo=vo.nodes[ds]||(vo.nodes[ds]={leaf:!0,nodes:[],point:null,x:null,y:null}),zo,yi,Si,Hr,Lo,ki,Io)}Dr>Pr?Ln=xn+Dr:pn=sn+Pr;var $o={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(vo){Zr($o,vo,+On(vo,++Nt),+An(vo,Nt),sn,xn,pn,Ln)}};if($o.visit=function(vo){Yd(vo,$o,sn,xn,pn,Ln)},$o.find=function(vo){return function(zo,yi,Si,Hr,Lo,ki,Io){var $i,Ui=1/0;return function ba(Pi,ds,mr,bs,Pl){if(!(ds>ki||mr>Io||bs=Is)<<1|yi>=ol,ec=Ds+4;Ds=0&&!(ge=i.interpolators[xe](V,ne)););return ge}function pc(V,ne){var ge,xe=[],Me=[],Fe=V.length,Je=ne.length,rt=Math.min(V.length,ne.length);for(ge=0;ge=1)return 1;var ne=V*V,ge=ne*V;return 4*(V<.5?ge:3*(V-ne)+ge-.75)}function ks(V){return 1-Math.cos(V*vt)}function $f(V){return Math.pow(2,10*(V-1))}function yf(V){return 1-Math.sqrt(1-V*V)}function Ju(V){return V<.36363636363636365?7.5625*V*V:V<.7272727272727273?7.5625*(V-=.5454545454545454)*V+.75:V<.9090909090909091?7.5625*(V-=.8181818181818182)*V+.9375:7.5625*(V-=.9545454545454546)*V+.984375}function $h(V,ne){return ne-=V,function(ge){return Math.round(V+ne*ge)}}function Es(V){var ne,ge,xe,Me=[V.a,V.b],Fe=[V.c,V.d],Je=uc(Me),rt=ef(Me,Fe),dt=uc(((ne=Fe)[0]+=(xe=-rt)*(ge=Me)[0],ne[1]+=xe*ge[1],ne))||0;Me[0]*Fe[1]=0?V.slice(0,ge):V,Me=ge>=0?V.slice(ge+1):"in";return xe=xl.get(xe)||Cu,Me=la.get(Me)||W,ne=Me(xe.apply(null,O.call(arguments,1))),function(Fe){return Fe<=0?0:Fe>=1?1:ne(Fe)}},i.interpolateHcl=function(V,ne){V=i.hcl(V),ne=i.hcl(ne);var ge=V.h,xe=V.c,Me=V.l,Fe=ne.h-ge,Je=ne.c-xe,rt=ne.l-Me;return isNaN(Je)&&(Je=0,xe=isNaN(xe)?ne.c:xe),isNaN(Fe)?(Fe=0,ge=isNaN(ge)?ne.h:ge):Fe>180?Fe-=360:Fe<-180&&(Fe+=360),function(dt){return tn(ge+Fe*dt,xe+Je*dt,Me+rt*dt)+""}},i.interpolateHsl=function(V,ne){V=i.hsl(V),ne=i.hsl(ne);var ge=V.h,xe=V.s,Me=V.l,Fe=ne.h-ge,Je=ne.s-xe,rt=ne.l-Me;return isNaN(Je)&&(Je=0,xe=isNaN(xe)?ne.s:xe),isNaN(Fe)?(Fe=0,ge=isNaN(ge)?ne.h:ge):Fe>180?Fe-=360:Fe<-180&&(Fe+=360),function(dt){return Yt(ge+Fe*dt,xe+Je*dt,Me+rt*dt)+""}},i.interpolateLab=function(V,ne){V=i.lab(V),ne=i.lab(ne);var ge=V.l,xe=V.a,Me=V.b,Fe=ne.l-ge,Je=ne.a-xe,rt=ne.b-Me;return function(dt){return En(ge+Fe*dt,xe+Je*dt,Me+rt*dt)+""}},i.interpolateRound=$h,i.transform=function(V){var ne=y.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(ge){if(ge!=null){ne.setAttribute("transform",ge);var xe=ne.transform.baseVal.consolidate()}return new Es(xe?xe.matrix:sd)})(V)},Es.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var sd={a:1,b:0,c:0,d:1,e:0,f:0};function Vf(V){return V.length?V.pop()+",":""}function gc(V,ne){var ge=[],xe=[];return V=i.transform(V),ne=i.transform(ne),function(Me,Fe,Je,rt){if(Me[0]!==Fe[0]||Me[1]!==Fe[1]){var dt=Je.push("translate(",null,",",null,")");rt.push({i:dt-4,x:Nf(Me[0],Fe[0])},{i:dt-2,x:Nf(Me[1],Fe[1])})}else(Fe[0]||Fe[1])&&Je.push("translate("+Fe+")")}(V.translate,ne.translate,ge,xe),function(Me,Fe,Je,rt){Me!==Fe?(Me-Fe>180?Fe+=360:Fe-Me>180&&(Me+=360),rt.push({i:Je.push(Vf(Je)+"rotate(",null,")")-2,x:Nf(Me,Fe)})):Fe&&Je.push(Vf(Je)+"rotate("+Fe+")")}(V.rotate,ne.rotate,ge,xe),function(Me,Fe,Je,rt){Me!==Fe?rt.push({i:Je.push(Vf(Je)+"skewX(",null,")")-2,x:Nf(Me,Fe)}):Fe&&Je.push(Vf(Je)+"skewX("+Fe+")")}(V.skew,ne.skew,ge,xe),function(Me,Fe,Je,rt){if(Me[0]!==Fe[0]||Me[1]!==Fe[1]){var dt=Je.push(Vf(Je)+"scale(",null,",",null,")");rt.push({i:dt-4,x:Nf(Me[0],Fe[0])},{i:dt-2,x:Nf(Me[1],Fe[1])})}else Fe[0]===1&&Fe[1]===1||Je.push(Vf(Je)+"scale("+Fe+")")}(V.scale,ne.scale,ge,xe),V=ne=null,function(Me){for(var Fe,Je=-1,rt=xe.length;++Je0?ge=An:(V.c=null,V.t=NaN,V=null,rt.end({type:"end",alpha:ge=0})):An>0&&(rt.start({type:"start",alpha:ge=An}),V=Yn(Je.tick)),Je):ge},Je.start=function(){var An,Sn,rr,Dr=xn.length,Pr=pn.length,Zr=dt[0],Mo=dt[1];for(An=0;An=0;)ge.push(Me[xe])}function rs(V,ne){for(var ge=[V],xe=[];(V=ge.pop())!=null;)if(xe.push(V),(Fe=V.children)&&(Me=Fe.length))for(var Me,Fe,Je=-1;++Je=0;)Je.push(Et=mt[dt]),Et.parent=Fe,Et.depth=Fe.depth+1;ge&&(Fe.value=0),Fe.children=mt}else ge&&(Fe.value=+ge.call(xe,Fe,Fe.depth)||0),delete Fe.children;return rs(Me,function(Vt){var jt,Nt;V&&(jt=Vt.children)&&jt.sort(V),ge&&(Nt=Vt.parent)&&(Nt.value+=Vt.value)}),rt}return xe.sort=function(Me){return arguments.length?(V=Me,xe):V},xe.children=function(Me){return arguments.length?(ne=Me,xe):ne},xe.value=function(Me){return arguments.length?(ge=Me,xe):ge},xe.revalue=function(Me){return ge&&(gh(Me,function(Fe){Fe.children&&(Fe.value=0)}),rs(Me,function(Fe){var Je;Fe.children||(Fe.value=+ge.call(xe,Fe,Fe.depth)||0),(Je=Fe.parent)&&(Je.value+=Fe.value)})),Me},xe},i.layout.partition=function(){var V=i.layout.hierarchy(),ne=[1,1];function ge(Fe,Je,rt,dt){var mt=Fe.children;if(Fe.x=Je,Fe.y=Fe.depth*dt,Fe.dx=rt,Fe.dy=dt,mt&&(Et=mt.length)){var Et,Vt,jt,Nt=-1;for(rt=Fe.value?rt/Fe.value:0;++Ntrt&&(rt=xe),Je.push(xe)}for(ge=0;geMe&&(xe=ge,Me=ne);return xe}function rf(V){return V.reduce(Bc,0)}function Bc(V,ne){return V+ne[1]}function ym(V,ne){return Mu(V,Math.ceil(Math.log(ne.length)/Math.LN2+1))}function Mu(V,ne){for(var ge=-1,xe=+V[0],Me=(V[1]-xe)/ne,Fe=[];++ge<=ne;)Fe[ge]=Me*ge+xe;return Fe}function Hu(V){return[i.min(V),i.max(V)]}function Lp(V,ne){return V.value-ne.value}function Uh(V,ne){var ge=V._pack_next;V._pack_next=ne,ne._pack_prev=V,ne._pack_next=ge,ge._pack_prev=ne}function jh(V,ne){V._pack_next=ne,ne._pack_prev=V}function Eu(V,ne){var ge=ne.x-V.x,xe=ne.y-V.y,Me=V.r+ne.r;return .999*Me*Me>ge*ge+xe*xe}function fd(V){if((ne=V.children)&&(dt=ne.length)){var ne,ge,xe,Me,Fe,Je,rt,dt,mt=1/0,Et=-1/0,Vt=1/0,jt=-1/0;if(ne.forEach(vh),(ge=ne[0]).x=-ge.r,ge.y=0,On(ge),dt>1&&((xe=ne[1]).x=xe.r,xe.y=0,On(xe),dt>2))for(Ts(ge,xe,Me=ne[2]),On(Me),Uh(ge,Me),ge._pack_prev=Me,Uh(Me,xe),xe=ge._pack_next,Fe=3;Fe0)for(Je=-1;++Je=Vt[0]&&dt<=Vt[1]&&((rt=mt[i.bisect(jt,dt,1,cn)-1]).y+=sn,rt.push(Fe[Je]));return mt}return Me.value=function(Fe){return arguments.length?(ne=Fe,Me):ne},Me.range=function(Fe){return arguments.length?(ge=$r(Fe),Me):ge},Me.bins=function(Fe){return arguments.length?(xe=typeof Fe=="number"?function(Je){return Mu(Je,Fe)}:$r(Fe),Me):xe},Me.frequency=function(Fe){return arguments.length?(V=!!Fe,Me):V},Me},i.layout.pack=function(){var V,ne=i.layout.hierarchy().sort(Lp),ge=0,xe=[1,1];function Me(Fe,Je){var rt=ne.call(this,Fe,Je),dt=rt[0],mt=xe[0],Et=xe[1],Vt=V==null?Math.sqrt:typeof V=="function"?V:function(){return V};if(dt.x=dt.y=0,rs(dt,function(Nt){Nt.r=+Vt(Nt.value)}),rs(dt,fd),ge){var jt=ge*(V?1:Math.max(2*dt.r/mt,2*dt.r/Et))/2;rs(dt,function(Nt){Nt.r+=jt}),rs(dt,fd),rs(dt,function(Nt){Nt.r-=jt})}return Oc(dt,mt/2,Et/2,V?1:1/Math.max(2*dt.r/mt,2*dt.r/Et)),rt}return Me.size=function(Fe){return arguments.length?(xe=Fe,Me):xe},Me.radius=function(Fe){return arguments.length?(V=Fe==null||typeof Fe=="function"?Fe:+Fe,Me):V},Me.padding=function(Fe){return arguments.length?(ge=+Fe,Me):ge},nf(Me,ne)},i.layout.tree=function(){var V=i.layout.hierarchy().sort(null).value(null),ne=Uf,ge=[1,1],xe=null;function Me(dt,mt){var Et=V.call(this,dt,mt),Vt=Et[0],jt=function(On){for(var An,Sn={A:null,children:[On]},rr=[Sn];(An=rr.pop())!=null;)for(var Dr,Pr=An.children,Zr=0,Mo=Pr.length;Zrcn.x&&(cn=On),On.depth>sn.depth&&(sn=On)});var xn=ne(Nt,cn)/2-Nt.x,pn=ge[0]/(cn.x+ne(cn,Nt)/2+xn),Ln=ge[1]/(sn.depth||1);gh(Vt,function(On){On.x=(On.x+xn)*pn,On.y=On.depth*Ln})}return Et}function Fe(dt){var mt=dt.children,Et=dt.parent.children,Vt=dt.i?Et[dt.i-1]:null;if(mt.length){(function(Nt){for(var cn,sn=0,xn=0,pn=Nt.children,Ln=pn.length;--Ln>=0;)(cn=pn[Ln]).z+=sn,cn.m+=sn,sn+=cn.s+(xn+=cn.c)})(dt);var jt=(mt[0].z+mt[mt.length-1].z)/2;Vt?(dt.z=Vt.z+ne(dt._,Vt._),dt.m=dt.z-jt):dt.z=jt}else Vt&&(dt.z=Vt.z+ne(dt._,Vt._));dt.parent.A=function(Nt,cn,sn){if(cn){for(var xn,pn=Nt,Ln=Nt,On=cn,An=pn.parent.children[0],Sn=pn.m,rr=Ln.m,Dr=On.m,Pr=An.m;On=Hl(On),pn=zl(pn),On&&pn;)An=zl(An),(Ln=Hl(Ln)).a=Nt,(xn=On.z+Dr-pn.z-Sn+ne(On._,pn._))>0&&(Cs($s(On,Nt,sn),Nt,xn),Sn+=xn,rr+=xn),Dr+=On.m,Sn+=pn.m,Pr+=An.m,rr+=Ln.m;On&&!Hl(Ln)&&(Ln.t=On,Ln.m+=Dr-rr),pn&&!zl(An)&&(An.t=pn,An.m+=Sn-Pr,sn=Nt)}return sn}(dt,Vt,dt.parent.A||Et[0])}function Je(dt){dt._.x=dt.z+dt.parent.m,dt.m+=dt.parent.m}function rt(dt){dt.x*=ge[0],dt.y=dt.depth*ge[1]}return Me.separation=function(dt){return arguments.length?(ne=dt,Me):ne},Me.size=function(dt){return arguments.length?(xe=(ge=dt)==null?rt:null,Me):xe?null:ge},Me.nodeSize=function(dt){return arguments.length?(xe=(ge=dt)==null?null:rt,Me):xe?ge:null},nf(Me,V)},i.layout.cluster=function(){var V=i.layout.hierarchy().sort(null).value(null),ne=Uf,ge=[1,1],xe=!1;function Me(Fe,Je){var rt,dt=V.call(this,Fe,Je),mt=dt[0],Et=0;rs(mt,function(sn){var xn=sn.children;xn&&xn.length?(sn.x=function(pn){return pn.reduce(function(Ln,On){return Ln+On.x},0)/pn.length}(xn),sn.y=function(pn){return 1+i.max(pn,function(Ln){return Ln.y})}(xn)):(sn.x=rt?Et+=ne(sn,rt):0,sn.y=0,rt=sn)});var Vt=Zu(mt),jt=yh(mt),Nt=Vt.x-ne(Vt,jt)/2,cn=jt.x+ne(jt,Vt)/2;return rs(mt,xe?function(sn){sn.x=(sn.x-mt.x)*ge[0],sn.y=(mt.y-sn.y)*ge[1]}:function(sn){sn.x=(sn.x-Nt)/(cn-Nt)*ge[0],sn.y=(1-(mt.y?sn.y/mt.y:1))*ge[1]}),dt}return Me.separation=function(Fe){return arguments.length?(ne=Fe,Me):ne},Me.size=function(Fe){return arguments.length?(xe=(ge=Fe)==null,Me):xe?null:ge},Me.nodeSize=function(Fe){return arguments.length?(xe=(ge=Fe)!=null,Me):xe?ge:null},nf(Me,V)},i.layout.treemap=function(){var V,ne=i.layout.hierarchy(),ge=Math.round,xe=[1,1],Me=null,Fe=of,Je=!1,rt="squarify",dt=.5*(1+Math.sqrt(5));function mt(sn,xn){for(var pn,Ln,On=-1,An=sn.length;++On0;)Sn.push(pn=rr[On-1]),Sn.area+=pn.area,rt!=="squarify"||(Ln=jt(Sn,Pr))<=Dr?(rr.pop(),Dr=Ln):(Sn.area-=Sn.pop().area,Nt(Sn,Pr,An,!1),Pr=Math.min(An.dx,An.dy),Sn.length=Sn.area=0,Dr=1/0);Sn.length&&(Nt(Sn,Pr,An,!0),Sn.length=Sn.area=0),xn.forEach(Et)}}function Vt(sn){var xn=sn.children;if(xn&&xn.length){var pn,Ln=Fe(sn),On=xn.slice(),An=[];for(mt(On,Ln.dx*Ln.dy/sn.value),An.area=0;pn=On.pop();)An.push(pn),An.area+=pn.area,pn.z!=null&&(Nt(An,pn.z?Ln.dx:Ln.dy,Ln,!On.length),An.length=An.area=0);xn.forEach(Vt)}}function jt(sn,xn){for(var pn,Ln=sn.area,On=0,An=1/0,Sn=-1,rr=sn.length;++SnOn&&(On=pn));return xn*=xn,(Ln*=Ln)?Math.max(xn*On*dt/Ln,Ln/(xn*An*dt)):1/0}function Nt(sn,xn,pn,Ln){var On,An=-1,Sn=sn.length,rr=pn.x,Dr=pn.y,Pr=xn?ge(sn.area/xn):0;if(xn==pn.dx){for((Ln||Pr>pn.dy)&&(Pr=pn.dy);++Anpn.dx)&&(Pr=pn.dx);++An1);return V+ne*xe*Math.sqrt(-2*Math.log(Fe)/Fe)}},logNormal:function(){var V=i.random.normal.apply(i,arguments);return function(){return Math.exp(V())}},bates:function(V){var ne=i.random.irwinHall(V);return function(){return ne()/V}},irwinHall:function(V){return function(){for(var ne=0,ge=0;ge2?np:Kd,mt=xe?Mp:ld;return Me=dt(V,ne,mt,ge),Fe=dt(ne,V,mt,Gl),rt}function rt(dt){return Me(dt)}return rt.invert=function(dt){return Fe(dt)},rt.domain=function(dt){return arguments.length?(V=dt.map(Number),Je()):V},rt.range=function(dt){return arguments.length?(ne=dt,Je()):ne},rt.rangeRound=function(dt){return rt.range(dt).interpolate($h)},rt.clamp=function(dt){return arguments.length?(xe=dt,Je()):xe},rt.interpolate=function(dt){return arguments.length?(ge=dt,Je()):ge},rt.ticks=function(dt){return Wc(V,dt)},rt.tickFormat=function(dt,mt){return d3_scale_linearTickFormat(V,dt,mt)},rt.nice=function(dt){return _l(V,dt),Je()},rt.copy=function(){return ms(V,ne,ge,xe)},Je()}function Ya(V,ne){return i.rebind(V,ne,"range","rangeRound","interpolate","clamp")}function _l(V,ne){return bh(V,Jd(dl(V,ne)[2])),bh(V,Jd(dl(V,ne)[2])),V}function dl(V,ne){ne==null&&(ne=10);var ge=Ip(V),xe=ge[1]-ge[0],Me=Math.pow(10,Math.floor(Math.log(xe/ne)/Math.LN10)),Fe=ne/xe*Me;return Fe<=.15?Me*=10:Fe<=.35?Me*=5:Fe<=.75&&(Me*=2),ge[0]=Math.ceil(ge[0]/Me)*Me,ge[1]=Math.floor(ge[1]/Me)*Me+.5*Me,ge[2]=Me,ge}function Wc(V,ne){return i.range.apply(i,dl(V,ne))}function wl(V,ne,ge,xe){function Me(rt){return(ge?Math.log(rt<0?0:rt):-Math.log(rt>0?0:-rt))/Math.log(ne)}function Fe(rt){return ge?Math.pow(ne,rt):-Math.pow(ne,-rt)}function Je(rt){return V(Me(rt))}return Je.invert=function(rt){return Fe(V.invert(rt))},Je.domain=function(rt){return arguments.length?(ge=rt[0]>=0,V.domain((xe=rt.map(Number)).map(Me)),Je):xe},Je.base=function(rt){return arguments.length?(ne=+rt,V.domain(xe.map(Me)),Je):ne},Je.nice=function(){var rt=bh(xe.map(Me),ge?Math:xi);return V.domain(rt),xe=rt.map(Fe),Je},Je.ticks=function(){var rt=Ip(xe),dt=[],mt=rt[0],Et=rt[1],Vt=Math.floor(Me(mt)),jt=Math.ceil(Me(Et)),Nt=ne%1?2:ne;if(isFinite(jt-Vt)){if(ge){for(;Vt0;cn--)dt.push(Fe(Vt)*cn);for(Vt=0;dt[Vt]Et;jt--);dt=dt.slice(Vt,jt)}return dt},Je.copy=function(){return wl(V.copy(),ne,ge,xe)},Ya(Je,V)}i.scale.linear=function(){return ms([0,1],[0,1],Gl,!1)},i.scale.log=function(){return wl(i.scale.linear().domain([0,1]),10,!0,[1,10])};var xi={floor:function(V){return-Math.ceil(-V)},ceil:function(V){return-Math.floor(-V)}};function mu(V,ne,ge){var xe=xh(ne),Me=xh(1/ne);function Fe(Je){return V(xe(Je))}return Fe.invert=function(Je){return Me(V.invert(Je))},Fe.domain=function(Je){return arguments.length?(V.domain((ge=Je.map(Number)).map(xe)),Fe):ge},Fe.ticks=function(Je){return Wc(ge,Je)},Fe.tickFormat=function(Je,rt){return d3_scale_linearTickFormat(ge,Je,rt)},Fe.nice=function(Je){return Fe.domain(_l(ge,Je))},Fe.exponent=function(Je){return arguments.length?(xe=xh(ne=Je),Me=xh(1/ne),V.domain(ge.map(xe)),Fe):ne},Fe.copy=function(){return mu(V.copy(),ne,ge)},Ya(Fe,V)}function xh(V){return function(ne){return ne<0?-Math.pow(-ne,V):Math.pow(ne,V)}}function js(V,ne){var ge,xe,Me;function Fe(rt){return xe[((ge.get(rt)||(ne.t==="range"?ge.set(rt,V.push(rt)):NaN))-1)%xe.length]}function Je(rt,dt){return i.range(V.length).map(function(mt){return rt+dt*mt})}return Fe.domain=function(rt){if(!arguments.length)return V;V=[],ge=new L;for(var dt,mt=-1,Et=rt.length;++mt0?ge[Fe-1]:V[0],Fejt?0:1;if(Et=mn)return dt(Et,cn)+(mt?dt(mt,1-cn):"")+"Z";var sn,xn,pn,Ln,On,An,Sn,rr,Dr,Pr,Zr,Mo,$o=0,vo=0,zo=[];if((Ln=(+Je.apply(this,arguments)||0)/2)&&(pn=xe===vc?Math.sqrt(mt*mt+Et*Et):+xe.apply(this,arguments),cn||(vo*=-1),Et&&(vo=yt(pn/Et*Math.sin(Ln))),mt&&($o=yt(pn/mt*Math.sin(Ln)))),Et){On=Et*Math.cos(Vt+vo),An=Et*Math.sin(Vt+vo),Sn=Et*Math.cos(jt-vo),rr=Et*Math.sin(jt-vo);var yi=Math.abs(jt-Vt-2*vo)<=gn?0:1;if(vo&&Ps(On,An,Sn,rr)===cn^yi){var Si=(Vt+jt)/2;On=Et*Math.cos(Si),An=Et*Math.sin(Si),Sn=rr=null}}else On=An=0;if(mt){Dr=mt*Math.cos(jt-$o),Pr=mt*Math.sin(jt-$o),Zr=mt*Math.cos(Vt+$o),Mo=mt*Math.sin(Vt+$o);var Hr=Math.abs(Vt-jt+2*$o)<=gn?0:1;if($o&&Ps(Dr,Pr,Zr,Mo)===1-cn^Hr){var Lo=(Vt+jt)/2;Dr=mt*Math.cos(Lo),Pr=mt*Math.sin(Lo),Zr=Mo=null}}else Dr=Pr=0;if(Nt>_t&&(sn=Math.min(Math.abs(Et-mt)/2,+ge.apply(this,arguments)))>.001){xn=mt0?0:1}function Sc(V,ne,ge,xe,Me){var Fe=V[0]-ne[0],Je=V[1]-ne[1],rt=(Me?xe:-xe)/Math.sqrt(Fe*Fe+Je*Je),dt=rt*Je,mt=-rt*Fe,Et=V[0]+dt,Vt=V[1]+mt,jt=ne[0]+dt,Nt=ne[1]+mt,cn=(Et+jt)/2,sn=(Vt+Nt)/2,xn=jt-Et,pn=Nt-Vt,Ln=xn*xn+pn*pn,On=ge-xe,An=Et*Nt-jt*Vt,Sn=(pn<0?-1:1)*Math.sqrt(Math.max(0,On*On*Ln-An*An)),rr=(An*pn-xn*Sn)/Ln,Dr=(-An*xn-pn*Sn)/Ln,Pr=(An*pn+xn*Sn)/Ln,Zr=(-An*xn+pn*Sn)/Ln,Mo=rr-cn,$o=Dr-sn,vo=Pr-cn,zo=Zr-sn;return Mo*Mo+$o*$o>vo*vo+zo*zo&&(rr=Pr,Dr=Zr),[[rr-dt,Dr-mt],[rr*ge/On,Dr*ge/On]]}function tl(){return!0}function gu(V){var ne=io,ge=Qr,xe=tl,Me=ja,Fe=Me.key,Je=.7;function rt(dt){var mt,Et=[],Vt=[],jt=-1,Nt=dt.length,cn=$r(ne),sn=$r(ge);function xn(){Et.push("M",Me(V(Vt),Je))}for(;++jt1&&Me.push("H",xe[0]),Me.join("")},"step-before":Rd,"step-after":Ld,basis:Ka,"basis-open":function(V){if(V.length<4)return ja(V);for(var ne,ge=[],xe=-1,Me=V.length,Fe=[0],Je=[0];++xe<3;)ne=V[xe],Fe.push(ne[0]),Je.push(ne[1]);for(ge.push(Xi(bu,Fe)+","+Xi(bu,Je)),--xe;++xe9&&(Fe=3*ge/Math.sqrt(Fe),rt[dt]=Fe*xe,rt[dt+1]=Fe*Me);for(dt=-1;++dt<=mt;)Fe=(ne[Math.min(mt,dt+1)][0]-ne[Math.max(0,dt-1)][0])/(6*(1+rt[dt]*rt[dt])),Je.push([Fe||0,rt[dt]*Fe||0]);return Je}(V))}});function ja(V){return V.length>1?V.join("L"):V+"Z"}function yu(V){return V.join("L")+"Z"}function Rd(V){for(var ne=0,ge=V.length,xe=V[0],Me=[xe[0],",",xe[1]];++ne1){rt=ne[1],Fe=V[dt],dt++,xe+="C"+(Me[0]+Je[0])+","+(Me[1]+Je[1])+","+(Fe[0]-rt[0])+","+(Fe[1]-rt[1])+","+Fe[0]+","+Fe[1];for(var mt=2;mtgn)+",1 "+Et}function dt(mt,Et,Vt,jt){return"Q 0,0 "+jt}return Fe.radius=function(mt){return arguments.length?(ge=$r(mt),Fe):ge},Fe.source=function(mt){return arguments.length?(V=$r(mt),Fe):V},Fe.target=function(mt){return arguments.length?(ne=$r(mt),Fe):ne},Fe.startAngle=function(mt){return arguments.length?(xe=$r(mt),Fe):xe},Fe.endAngle=function(mt){return arguments.length?(Me=$r(mt),Fe):Me},Fe},i.svg.diagonal=function(){var V=Qf,ne=dd,ge=_h;function xe(Me,Fe){var Je=V.call(this,Me,Fe),rt=ne.call(this,Me,Fe),dt=(Je.y+rt.y)/2,mt=[Je,{x:Je.x,y:dt},{x:rt.x,y:dt},rt];return"M"+(mt=mt.map(ge))[0]+"C"+mt[1]+" "+mt[2]+" "+mt[3]}return xe.source=function(Me){return arguments.length?(V=$r(Me),xe):V},xe.target=function(Me){return arguments.length?(ne=$r(Me),xe):ne},xe.projection=function(Me){return arguments.length?(ge=Me,xe):ge},xe},i.svg.diagonal.radial=function(){var V=i.svg.diagonal(),ne=_h,ge=V.projection;return V.projection=function(xe){return arguments.length?ge(function(Me){return function(){var Fe=Me.apply(this,arguments),Je=Fe[0],rt=Fe[1]-vt;return[Je*Math.cos(rt),Je*Math.sin(rt)]}}(ne=xe)):ne},V},i.svg.symbol=function(){var V=hd,ne=Gc;function ge(xe,Me){return(Dd.get(V.call(this,xe,Me))||rl)(ne.call(this,xe,Me))}return ge.type=function(xe){return arguments.length?(V=$r(xe),ge):V},ge.size=function(xe){return arguments.length?(ne=$r(xe),ge):ne},ge};var Dd=i.map({circle:rl,cross:function(V){var ne=Math.sqrt(V/5)/2;return"M"+-3*ne+","+-ne+"H"+-ne+"V"+-3*ne+"H"+ne+"V"+-ne+"H"+3*ne+"V"+ne+"H"+ne+"V"+3*ne+"H"+-ne+"V"+ne+"H"+-3*ne+"Z"},diamond:function(V){var ne=Math.sqrt(V/(2*fa)),ge=ne*fa;return"M0,"+-ne+"L"+ge+",0 0,"+ne+" "+-ge+",0Z"},square:function(V){var ne=Math.sqrt(V)/2;return"M"+-ne+","+-ne+"L"+ne+","+-ne+" "+ne+","+ne+" "+-ne+","+ne+"Z"},"triangle-down":function(V){var ne=Math.sqrt(V/Vi),ge=ne*Vi/2;return"M0,"+ge+"L"+ne+","+-ge+" "+-ne+","+-ge+"Z"},"triangle-up":function(V){var ne=Math.sqrt(V/Vi),ge=ne*Vi/2;return"M0,"+-ge+"L"+ne+","+ge+" "+-ne+","+ge+"Z"}});i.svg.symbolTypes=Dd.keys();var Vi=Math.sqrt(3),fa=Math.tan(30*bt);Te.transition=function(V){for(var ne,ge,xe=Jl||++kc,Me=El(V),Fe=[],Je=Bd||{time:Date.now(),ease:mc,delay:0,duration:250},rt=-1,dt=this.length;++rt0;)mt[--pn].call(V,xn);if(sn>=1)return Vt.event&&Vt.event.end.call(V,V.__data__,ne),--Et.count?delete Et[xe]:delete V[ge],1}Vt||(Fe=Me.time,Je=Yn(function(cn){var sn=Vt.delay;if(Je.t=sn+Fe,sn<=cn)return jt(cn-sn);Je.c=jt},0,Fe),Vt=Et[xe]={tween:new L,time:Fe,timer:Je,delay:Me.delay,duration:Me.duration,ease:Me.ease,index:ne},Me=null,++Et.count)}Qs.call=Te.call,Qs.empty=Te.empty,Qs.node=Te.node,Qs.size=Te.size,i.transition=function(V,ne){return V&&V.transition?Jl?V.transition(ne):V:i.selection().transition(V)},i.transition.prototype=Qs,Qs.select=function(V){var ne,ge,xe,Me=this.id,Fe=this.namespace,Je=[];V=Pe(V);for(var rt=-1,dt=this.length;++rtrect,.s>rect").attr("width",Fe[1]-Fe[0])}function Nt(sn){sn.select(".extent").attr("y",Je[0]),sn.selectAll(".extent,.e>rect,.w>rect").attr("height",Je[1]-Je[0])}function cn(){var sn,xn,pn=this,Ln=i.select(i.event.target),On=ge.of(pn,arguments),An=i.select(pn),Sn=Ln.datum(),rr=!/^(n|s)$/.test(Sn)&&xe,Dr=!/^(e|w)$/.test(Sn)&&Me,Pr=Ln.classed("extent"),Zr=qt(pn),Mo=i.mouse(pn),$o=i.select(a(pn)).on("keydown.brush",function(){i.event.keyCode==32&&(Pr||(sn=null,Mo[0]-=Fe[1],Mo[1]-=Je[1],Pr=2),he())}).on("keyup.brush",function(){i.event.keyCode==32&&Pr==2&&(Mo[0]+=Fe[1],Mo[1]+=Je[1],Pr=0,he())});if(i.event.changedTouches?$o.on("touchmove.brush",yi).on("touchend.brush",Hr):$o.on("mousemove.brush",yi).on("mouseup.brush",Hr),An.interrupt().selectAll("*").interrupt(),Pr)Mo[0]=Fe[0]-Mo[0],Mo[1]=Je[0]-Mo[1];else if(Sn){var vo=+/w$/.test(Sn),zo=+/^n/.test(Sn);xn=[Fe[1-vo]-Mo[0],Je[1-zo]-Mo[1]],Mo[0]=Fe[vo],Mo[1]=Je[zo]}else i.event.altKey&&(sn=Mo.slice());function yi(){var Lo=i.mouse(pn),ki=!1;xn&&(Lo[0]+=xn[0],Lo[1]+=xn[1]),Pr||(i.event.altKey?(sn||(sn=[(Fe[0]+Fe[1])/2,(Je[0]+Je[1])/2]),Mo[0]=Fe[+(Lo[0](Ae=1))return Ae;for(;feet?fe=Qe:Ae=Qe,Qe=.5*(Ae-fe)+fe}return Qe},p.prototype.solve=function(N,G){return this.sampleCurveY(this.solveCurveX(N,G))};var a=u;function u(N,G){this.x=N,this.y=G}u.prototype={clone:function(){return new u(this.x,this.y)},add:function(N){return this.clone()._add(N)},sub:function(N){return this.clone()._sub(N)},multByPoint:function(N){return this.clone()._multByPoint(N)},divByPoint:function(N){return this.clone()._divByPoint(N)},mult:function(N){return this.clone()._mult(N)},div:function(N){return this.clone()._div(N)},rotate:function(N){return this.clone()._rotate(N)},rotateAround:function(N,G){return this.clone()._rotateAround(N,G)},matMult:function(N){return this.clone()._matMult(N)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(N){return this.x===N.x&&this.y===N.y},dist:function(N){return Math.sqrt(this.distSqr(N))},distSqr:function(N){var G=N.x-this.x,fe=N.y-this.y;return G*G+fe*fe},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(N){return Math.atan2(this.y-N.y,this.x-N.x)},angleWith:function(N){return this.angleWithSep(N.x,N.y)},angleWithSep:function(N,G){return Math.atan2(this.x*G-this.y*N,this.x*N+this.y*G)},_matMult:function(N){var G=N[0]*this.x+N[1]*this.y,fe=N[2]*this.x+N[3]*this.y;return this.x=G,this.y=fe,this},_add:function(N){return this.x+=N.x,this.y+=N.y,this},_sub:function(N){return this.x-=N.x,this.y-=N.y,this},_mult:function(N){return this.x*=N,this.y*=N,this},_div:function(N){return this.x/=N,this.y/=N,this},_multByPoint:function(N){return this.x*=N.x,this.y*=N.y,this},_divByPoint:function(N){return this.x/=N.x,this.y/=N.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var N=this.y;return this.y=this.x,this.x=-N,this},_rotate:function(N){var G=Math.cos(N),fe=Math.sin(N),Ae=G*this.x-fe*this.y,Qe=fe*this.x+G*this.y;return this.x=Ae,this.y=Qe,this},_rotateAround:function(N,G){var fe=Math.cos(N),Ae=Math.sin(N),Qe=G.x+fe*(this.x-G.x)-Ae*(this.y-G.y),et=G.y+Ae*(this.x-G.x)+fe*(this.y-G.y);return this.x=Qe,this.y=et,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(N){return N instanceof u?N:Array.isArray(N)?new u(N[0],N[1]):N};var h=typeof self<"u"?self:{},m=Math.pow(2,53)-1;function v(N,G,fe,Ae){var Qe=new y(N,G,fe,Ae);return function(et){return Qe.solve(et)}}var _=v(.25,.1,.25,1);function S(N,G,fe){return Math.min(fe,Math.max(G,N))}function A(N,G,fe){var Ae=fe-G,Qe=((N-G)%Ae+Ae)%Ae+G;return Qe===G?fe:Qe}function x(N){for(var G=[],fe=arguments.length-1;fe-- >0;)G[fe]=arguments[fe+1];for(var Ae=0,Qe=G;Ae>G/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,N)}()}function E(N){return!!N&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(N)}function C(N,G){N.forEach(function(fe){G[fe]&&(G[fe]=G[fe].bind(G))})}function L(N,G){return N.indexOf(G,N.length-G.length)!==-1}function D(N,G,fe){var Ae={};for(var Qe in N)Ae[Qe]=G.call(fe||this,N[Qe],Qe,N);return Ae}function k(N,G,fe){var Ae={};for(var Qe in N)G.call(fe||this,N[Qe],Qe,N)&&(Ae[Qe]=N[Qe]);return Ae}function I(N){return Array.isArray(N)?N.map(I):typeof N=="object"&&N?D(N,I):N}var z={};function $(N){z[N]||(typeof console<"u"&&console.warn(N),z[N]=!0)}function Q(N,G,fe){return(fe.y-N.y)*(G.x-N.x)>(G.y-N.y)*(fe.x-N.x)}function j(N){for(var G=0,fe=0,Ae=N.length,Qe=Ae-1,et=void 0,ut=void 0;fe@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(Ae,Qe,et,ut){var Tt=et||ut;return G[Qe]=!Tt||Tt.toLowerCase(),""}),G["max-age"]){var fe=parseInt(G["max-age"],10);isNaN(fe)?delete G["max-age"]:G["max-age"]=fe}return G}var te=null;function W(N){if(te==null){var G=N.navigator?N.navigator.userAgent:null;te=!!N.safari||!(!G||!(/\b(iPad|iPhone|iPod)\b/.test(G)||G.match("Safari")&&!G.match("Chrome")))}return te}function K(N){try{var G=h[N];return G.setItem("_mapbox_test_",1),G.removeItem("_mapbox_test_"),!0}catch{return!1}}var oe,q,Y,ee,me=h.performance&&h.performance.now?h.performance.now.bind(h.performance):Date.now.bind(Date),he=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame,se=h.cancelAnimationFrame||h.mozCancelAnimationFrame||h.webkitCancelAnimationFrame||h.msCancelAnimationFrame,ae={now:me,frame:function(N){var G=he(N);return{cancel:function(){return se(G)}}},getImageData:function(N,G){G===void 0&&(G=0);var fe=h.document.createElement("canvas"),Ae=fe.getContext("2d");if(!Ae)throw new Error("failed to create canvas 2d context");return fe.width=N.width,fe.height=N.height,Ae.drawImage(N,0,0,N.width,N.height),Ae.getImageData(-G,-G,N.width+2*G,N.height+2*G)},resolveURL:function(N){return oe||(oe=h.document.createElement("a")),oe.href=N,oe.href},hardwareConcurrency:h.navigator&&h.navigator.hardwareConcurrency||4,get devicePixelRatio(){return h.devicePixelRatio},get prefersReducedMotion(){return!!h.matchMedia&&(q==null&&(q=h.matchMedia("(prefers-reduced-motion: reduce)")),q.matches)}},ce={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},de={supported:!1,testSupport:function(N){!ve&&ee&&(ye?_e(N):Y=N)}},ve=!1,ye=!1;function _e(N){var G=N.createTexture();N.bindTexture(N.TEXTURE_2D,G);try{if(N.texImage2D(N.TEXTURE_2D,0,N.RGBA,N.RGBA,N.UNSIGNED_BYTE,ee),N.isContextLost())return;de.supported=!0}catch{}N.deleteTexture(G),ve=!0}h.document&&((ee=h.document.createElement("img")).onload=function(){Y&&_e(Y),Y=null,ye=!0},ee.onerror=function(){ve=!0,Y=null},ee.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Se="01",Te=function(N,G){this._transformRequestFn=N,this._customAccessToken=G,this._createSkuToken()};function Pe(N){return N.indexOf("mapbox:")===0}Te.prototype._createSkuToken=function(){var N=function(){for(var G="",fe=0;fe<10;fe++)G+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Se,G].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=N.token,this._skuTokenExpiresAt=N.tokenExpiresAt},Te.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Te.prototype.transformRequest=function(N,G){return this._transformRequestFn&&this._transformRequestFn(N,G)||{url:N}},Te.prototype.normalizeStyleURL=function(N,G){if(!Pe(N))return N;var fe=He(N);return fe.path="/styles/v1"+fe.path,this._makeAPIURL(fe,this._customAccessToken||G)},Te.prototype.normalizeGlyphsURL=function(N,G){if(!Pe(N))return N;var fe=He(N);return fe.path="/fonts/v1"+fe.path,this._makeAPIURL(fe,this._customAccessToken||G)},Te.prototype.normalizeSourceURL=function(N,G){if(!Pe(N))return N;var fe=He(N);return fe.path="/v4/"+fe.authority+".json",fe.params.push("secure"),this._makeAPIURL(fe,this._customAccessToken||G)},Te.prototype.normalizeSpriteURL=function(N,G,fe,Ae){var Qe=He(N);return Pe(N)?(Qe.path="/styles/v1"+Qe.path+"/sprite"+G+fe,this._makeAPIURL(Qe,this._customAccessToken||Ae)):(Qe.path+=""+G+fe,Ve(Qe))},Te.prototype.normalizeTileURL=function(N,G){if(this._isSkuTokenExpired()&&this._createSkuToken(),N&&!Pe(N))return N;var fe=He(N),Ae=ae.devicePixelRatio>=2||G===512?"@2x":"",Qe=de.supported?".webp":"$1";fe.path=fe.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+Ae+Qe),fe.path=fe.path.replace(/^.+\/v4\//,"/"),fe.path="/v4"+fe.path;var et=this._customAccessToken||function(ut){for(var Tt=0,Bt=ut;Tt=0&&N.params.splice(Qe,1)}if(Ae.path!=="/"&&(N.path=""+Ae.path+N.path),!ce.REQUIRE_ACCESS_TOKEN)return Ve(N);if(!(G=G||ce.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+fe);if(G[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+fe);return N.params=N.params.filter(function(et){return et.indexOf("access_token")===-1}),N.params.push("access_token="+G),Ve(N)};var Ie=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function ze(N){return Ie.test(N)}var De=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function He(N){var G=N.match(De);if(!G)throw new Error("Unable to parse URL object");return{protocol:G[1],authority:G[2],path:G[3]||"/",params:G[4]?G[4].split("&"):[]}}function Ve(N){var G=N.params.length?"?"+N.params.join("&"):"";return N.protocol+"://"+N.authority+N.path+G}var $e="mapbox.eventData";function Oe(N){if(!N)return null;var G,fe=N.split(".");if(!fe||fe.length!==3)return null;try{return JSON.parse((G=fe[1],decodeURIComponent(h.atob(G).split("").map(function(Ae){return"%"+("00"+Ae.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch{return null}}var ke=function(N){this.type=N,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};ke.prototype.getStorageKey=function(N){var G,fe,Ae=Oe(ce.ACCESS_TOKEN);return G=Ae&&Ae.u?(fe=Ae.u,h.btoa(encodeURIComponent(fe).replace(/%([0-9A-F]{2})/g,function(Qe,et){return String.fromCharCode(+("0x"+et))}))):ce.ACCESS_TOKEN||"",N?$e+"."+N+":"+G:$e+":"+G},ke.prototype.fetchEventData=function(){var N=K("localStorage"),G=this.getStorageKey(),fe=this.getStorageKey("uuid");if(N)try{var Ae=h.localStorage.getItem(G);Ae&&(this.eventData=JSON.parse(Ae));var Qe=h.localStorage.getItem(fe);Qe&&(this.anonId=Qe)}catch{$("Unable to read from LocalStorage")}},ke.prototype.saveEventData=function(){var N=K("localStorage"),G=this.getStorageKey(),fe=this.getStorageKey("uuid");if(N)try{h.localStorage.setItem(fe,this.anonId),Object.keys(this.eventData).length>=1&&h.localStorage.setItem(G,JSON.stringify(this.eventData))}catch{$("Unable to write to LocalStorage")}},ke.prototype.processRequests=function(N){},ke.prototype.postEvent=function(N,G,fe,Ae){var Qe=this;if(ce.EVENTS_URL){var et=He(ce.EVENTS_URL);et.params.push("access_token="+(Ae||ce.ACCESS_TOKEN||""));var ut={event:this.type,created:new Date(N).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:w,skuId:Se,userId:this.anonId},Tt=G?x(ut,G):ut,Bt={url:Ve(et),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Tt])};this.pendingRequest=mn(Bt,function(rn){Qe.pendingRequest=null,fe(rn),Qe.saveEventData(),Qe.processRequests(Ae)})}},ke.prototype.queueRequest=function(N,G){this.queue.push(N),this.processRequests(G)};var Le,We,Ue=function(N){function G(){N.call(this,"map.load"),this.success={},this.skuToken=""}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.postMapLoadEvent=function(fe,Ae,Qe,et){this.skuToken=Qe,(ce.EVENTS_URL&&et||ce.ACCESS_TOKEN&&Array.isArray(fe)&&fe.some(function(ut){return Pe(ut)||ze(ut)}))&&this.queueRequest({id:Ae,timestamp:Date.now()},et)},G.prototype.processRequests=function(fe){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){var Qe=this.queue.shift(),et=Qe.id,ut=Qe.timestamp;et&&this.success[et]||(this.anonId||this.fetchEventData(),E(this.anonId)||(this.anonId=T()),this.postEvent(ut,{skuToken:this.skuToken},function(Tt){Tt||et&&(Ae.success[et]=!0)},fe))}},G}(ke),Ze=function(N){function G(fe){N.call(this,"appUserTurnstile"),this._customAccessToken=fe}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.postTurnstileEvent=function(fe,Ae){ce.EVENTS_URL&&ce.ACCESS_TOKEN&&Array.isArray(fe)&&fe.some(function(Qe){return Pe(Qe)||ze(Qe)})&&this.queueRequest(Date.now(),Ae)},G.prototype.processRequests=function(fe){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var Qe=Oe(ce.ACCESS_TOKEN),et=Qe?Qe.u:ce.ACCESS_TOKEN,ut=et!==this.eventData.tokenU;E(this.anonId)||(this.anonId=T(),ut=!0);var Tt=this.queue.shift();if(this.eventData.lastSuccess){var Bt=new Date(this.eventData.lastSuccess),rn=new Date(Tt),an=(Tt-this.eventData.lastSuccess)/864e5;ut=ut||an>=1||an<-1||Bt.getDate()!==rn.getDate()}else ut=!0;if(!ut)return this.processRequests();this.postEvent(Tt,{"enabled.telemetry":!1},function(_n){_n||(Ae.eventData.lastSuccess=Tt,Ae.eventData.tokenU=et)},fe)}},G}(ke),Xe=new Ze,tt=Xe.postTurnstileEvent.bind(Xe),Ee=new Ue,Ne=Ee.postMapLoadEvent.bind(Ee),je="mapbox-tiles",nt=500,ot=50,Ge=42e4;function ht(){h.caches&&!Le&&(Le=h.caches.open(je))}function pt(N,G,fe){if(ht(),Le){var Ae={status:G.status,statusText:G.statusText,headers:new h.Headers};G.headers.forEach(function(et,ut){return Ae.headers.set(ut,et)});var Qe=X(G.headers.get("Cache-Control")||"");Qe["no-store"]||(Qe["max-age"]&&Ae.headers.set("Expires",new Date(fe+1e3*Qe["max-age"]).toUTCString()),new Date(Ae.headers.get("Expires")).getTime()-feDate.now()&&!Bt["no-cache"]}(Qe);Ae.delete(fe),et&&Ae.put(fe,Qe.clone()),G(null,Qe,et)}).catch(G)}).catch(G)}var It,qt=1/0;function en(){return It==null&&(It=h.OffscreenCanvas&&new h.OffscreenCanvas(1,1).getContext("2d")&&typeof h.createImageBitmap=="function"),It}var Gt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(Gt);var Ct=function(N){function G(fe,Ae,Qe){Ae===401&&ze(Qe)&&(fe+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),N.call(this,fe),this.status=Ae,this.url=Qe,this.name=this.constructor.name,this.message=fe}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},G}(Error),_t=U()?function(){return self.worker&&self.worker.referrer}:function(){return(h.location.protocol==="blob:"?h.parent:h).location.href};function nn(N,G){var fe,Ae=new h.AbortController,Qe=new h.Request(N.url,{method:N.method||"GET",body:N.body,credentials:N.credentials,headers:N.headers,referrer:_t(),signal:Ae.signal}),et=!1,ut=!1,Tt=(fe=Qe.url).indexOf("sku=")>0&&ze(fe);N.type==="json"&&Qe.headers.set("Accept","application/json");var Bt=function(an,_n,Dn){if(!ut){if(an&&an.message!=="SecurityError"&&$(an),_n&&Dn)return rn(_n);var Cn=Date.now();h.fetch(Qe).then(function(Jn){if(Jn.ok){var lr=Tt?Jn.clone():null;return rn(Jn,lr,Cn)}return G(new Ct(Jn.statusText,Jn.status,N.url))}).catch(function(Jn){Jn.code!==20&&G(new Error(Jn.message))})}},rn=function(an,_n,Dn){(N.type==="arrayBuffer"?an.arrayBuffer():N.type==="json"?an.json():an.text()).then(function(Cn){ut||(_n&&Dn&&pt(Qe,_n,Dn),et=!0,G(null,Cn,an.headers.get("Cache-Control"),an.headers.get("Expires")))}).catch(function(Cn){ut||G(new Error(Cn.message))})};return Tt?Dt(Qe,Bt):Bt(null,null),{cancel:function(){ut=!0,et||Ae.abort()}}}var gn=function(N,G){if(fe=N.url,!(/^file:/.test(fe)||/^file:/.test(_t())&&!/^\w+:/.test(fe))){if(h.fetch&&h.Request&&h.AbortController&&h.Request.prototype.hasOwnProperty("signal"))return nn(N,G);if(U()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",N,G,void 0,!0)}var fe;return function(Ae,Qe){var et=new h.XMLHttpRequest;for(var ut in et.open(Ae.method||"GET",Ae.url,!0),Ae.type==="arrayBuffer"&&(et.responseType="arraybuffer"),Ae.headers)et.setRequestHeader(ut,Ae.headers[ut]);return Ae.type==="json"&&(et.responseType="text",et.setRequestHeader("Accept","application/json")),et.withCredentials=Ae.credentials==="include",et.onerror=function(){Qe(new Error(et.statusText))},et.onload=function(){if((et.status>=200&&et.status<300||et.status===0)&&et.response!==null){var Tt=et.response;if(Ae.type==="json")try{Tt=JSON.parse(et.response)}catch(Bt){return Qe(Bt)}Qe(null,Tt,et.getResponseHeader("Cache-Control"),et.getResponseHeader("Expires"))}else Qe(new Ct(et.statusText,et.status,Ae.url))},et.send(Ae.body),{cancel:function(){return et.abort()}}}(N,G)},bn=function(N,G){return gn(x(N,{type:"arrayBuffer"}),G)},mn=function(N,G){return gn(x(N,{method:"POST"}),G)},vt,bt,lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";vt=[],bt=0;var yt=function(N,G){if(de.supported&&(N.headers||(N.headers={}),N.headers.accept="image/webp,*/*"),bt>=ce.MAX_PARALLEL_IMAGE_REQUESTS){var fe={requestParameters:N,callback:G,cancelled:!1,cancel:function(){this.cancelled=!0}};return vt.push(fe),fe}bt++;var Ae=!1,Qe=function(){if(!Ae)for(Ae=!0,bt--;vt.length&&bt0||this._oneTimeListeners&&this._oneTimeListeners[N]&&this._oneTimeListeners[N].length>0||this._eventedParent&&this._eventedParent.listens(N)},Lt.prototype.setEventedParent=function(N,G){return this._eventedParent=N,this._eventedParentData=G,this};var xt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Zt=function(N,G,fe,Ae){this.message=(N?N+": ":"")+fe,Ae&&(this.identifier=Ae),G!=null&&G.__line__&&(this.line=G.__line__)};function Xt(N){var G=N.key,fe=N.value;return fe?[new Zt(G,fe,"constants have been deprecated as of v8")]:[]}function Yt(N){for(var G=[],fe=arguments.length-1;fe-- >0;)G[fe]=arguments[fe+1];for(var Ae=0,Qe=G;Ae":N.itemType.kind==="value"?"array":"array<"+G+">"}return N.kind}var ir=[fn,dn,vn,Nn,er,xr,En,ar(In),Sr];function Wn(N,G){if(G.kind==="error")return null;if(N.kind==="array"){if(G.kind==="array"&&(G.N===0&&G.itemType.kind==="value"||!Wn(N.itemType,G.itemType))&&(typeof N.N!="number"||N.N===G.N))return null}else{if(N.kind===G.kind)return null;if(N.kind==="value"){for(var fe=0,Ae=ir;fe255?255:Bt}function Qe(Bt){return Bt<0?0:Bt>1?1:Bt}function et(Bt){return Bt[Bt.length-1]==="%"?Ae(parseFloat(Bt)/100*255):Ae(parseInt(Bt))}function ut(Bt){return Bt[Bt.length-1]==="%"?Qe(parseFloat(Bt)/100):Qe(parseFloat(Bt))}function Tt(Bt,rn,an){return an<0?an+=1:an>1&&(an-=1),6*an<1?Bt+(rn-Bt)*an*6:2*an<1?rn:3*an<2?Bt+(rn-Bt)*(2/3-an)*6:Bt}try{G.parseCSSColor=function(Bt){var rn,an=Bt.replace(/ /g,"").toLowerCase();if(an in fe)return fe[an].slice();if(an[0]==="#")return an.length===4?(rn=parseInt(an.substr(1),16))>=0&&rn<=4095?[(3840&rn)>>4|(3840&rn)>>8,240&rn|(240&rn)>>4,15&rn|(15&rn)<<4,1]:null:an.length===7&&(rn=parseInt(an.substr(1),16))>=0&&rn<=16777215?[(16711680&rn)>>16,(65280&rn)>>8,255&rn,1]:null;var _n=an.indexOf("("),Dn=an.indexOf(")");if(_n!==-1&&Dn+1===an.length){var Cn=an.substr(0,_n),Jn=an.substr(_n+1,Dn-(_n+1)).split(","),lr=1;switch(Cn){case"rgba":if(Jn.length!==4)return null;lr=ut(Jn.pop());case"rgb":return Jn.length!==3?null:[et(Jn[0]),et(Jn[1]),et(Jn[2]),lr];case"hsla":if(Jn.length!==4)return null;lr=ut(Jn.pop());case"hsl":if(Jn.length!==3)return null;var Ar=(parseFloat(Jn[0])%360+360)%360/360,Or=ut(Jn[1]),jr=ut(Jn[2]),Jr=jr<=.5?jr*(Or+1):jr+Or-jr*Or,uo=2*jr-Jr;return[Ae(255*Tt(uo,Jr,Ar+1/3)),Ae(255*Tt(uo,Jr,Ar)),Ae(255*Tt(uo,Jr,Ar-1/3)),lr];default:return null}}return null}}catch{}}),zr=Ir.parseCSSColor,Fr=function(N,G,fe,Ae){Ae===void 0&&(Ae=1),this.r=N,this.g=G,this.b=fe,this.a=Ae};Fr.parse=function(N){if(N){if(N instanceof Fr)return N;if(typeof N=="string"){var G=zr(N);if(G)return new Fr(G[0]/255*G[3],G[1]/255*G[3],G[2]/255*G[3],G[3])}}},Fr.prototype.toString=function(){var N=this.toArray(),G=N[0],fe=N[1],Ae=N[2],Qe=N[3];return"rgba("+Math.round(G)+","+Math.round(fe)+","+Math.round(Ae)+","+Qe+")"},Fr.prototype.toArray=function(){var N=this,G=N.r,fe=N.g,Ae=N.b,Qe=N.a;return Qe===0?[0,0,0,0]:[255*G/Qe,255*fe/Qe,255*Ae/Qe,Qe]},Fr.black=new Fr(0,0,0,1),Fr.white=new Fr(1,1,1,1),Fr.transparent=new Fr(0,0,0,0),Fr.red=new Fr(1,0,0,1);var Rr=function(N,G,fe){this.sensitivity=N?G?"variant":"case":G?"accent":"base",this.locale=fe,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Rr.prototype.compare=function(N,G){return this.collator.compare(N,G)},Rr.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $r=function(N,G,fe,Ae,Qe){this.text=N,this.image=G,this.scale=fe,this.fontStack=Ae,this.textColor=Qe},Kr=function(N){this.sections=N};Kr.fromString=function(N){return new Kr([new $r(N,null,null,null,null)])},Kr.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(N){return N.text.length!==0||N.image&&N.image.name.length!==0})},Kr.factory=function(N){return N instanceof Kr?N:Kr.fromString(N)},Kr.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(N){return N.text}).join("")},Kr.prototype.serialize=function(){for(var N=["format"],G=0,fe=this.sections;G=0&&N<=255&&typeof G=="number"&&G>=0&&G<=255&&typeof fe=="number"&&fe>=0&&fe<=255?Ae===void 0||typeof Ae=="number"&&Ae>=0&&Ae<=1?null:"Invalid rgba value ["+[N,G,fe,Ae].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof Ae=="number"?[N,G,fe,Ae]:[N,G,fe]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function So(N){if(N===null||typeof N=="string"||typeof N=="boolean"||typeof N=="number"||N instanceof Fr||N instanceof Rr||N instanceof Kr||N instanceof Co)return!0;if(Array.isArray(N)){for(var G=0,fe=N;G2){var Tt=N[1];if(typeof Tt!="string"||!(Tt in br)||Tt==="object")return G.error('The item type argument of "array" must be one of string, number, boolean',1);et=br[Tt],Ae++}else et=In;if(N.length>3){if(N[2]!==null&&(typeof N[2]!="number"||N[2]<0||N[2]!==Math.floor(N[2])))return G.error('The length argument to "array" must be a positive integer literal',2);ut=N[2],Ae++}fe=ar(et,ut)}else fe=br[Qe];for(var Bt=[];Ae1)&&G.push(Ae)}}return G.concat(this.args.map(function(Qe){return Qe.serialize()}))};var Cr=function(N){this.type=xr,this.sections=N};Cr.parse=function(N,G){if(N.length<2)return G.error("Expected at least one argument.");var fe=N[1];if(!Array.isArray(fe)&&typeof fe=="object")return G.error("First argument must be an image or text section.");for(var Ae=[],Qe=!1,et=1;et<=N.length-1;++et){var ut=N[et];if(Qe&&typeof ut=="object"&&!Array.isArray(ut)){Qe=!1;var Tt=null;if(ut["font-scale"]&&!(Tt=G.parse(ut["font-scale"],1,dn)))return null;var Bt=null;if(ut["text-font"]&&!(Bt=G.parse(ut["text-font"],1,ar(vn))))return null;var rn=null;if(ut["text-color"]&&!(rn=G.parse(ut["text-color"],1,er)))return null;var an=Ae[Ae.length-1];an.scale=Tt,an.font=Bt,an.textColor=rn}else{var _n=G.parse(N[et],1,In);if(!_n)return null;var Dn=_n.type.kind;if(Dn!=="string"&&Dn!=="value"&&Dn!=="null"&&Dn!=="resolvedImage")return G.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Qe=!0,Ae.push({content:_n,scale:null,font:null,textColor:null})}}return new Cr(Ae)},Cr.prototype.evaluate=function(N){return new Kr(this.sections.map(function(G){var fe=G.content.evaluate(N);return go(fe)===Sr?new $r("",fe,null,null,null):new $r(li(fe),null,G.scale?G.scale.evaluate(N):null,G.font?G.font.evaluate(N).join(","):null,G.textColor?G.textColor.evaluate(N):null)}))},Cr.prototype.eachChild=function(N){for(var G=0,fe=this.sections;G-1),fe},io.prototype.eachChild=function(N){N(this.input)},io.prototype.outputDefined=function(){return!1},io.prototype.serialize=function(){return["image",this.input.serialize()]};var Qr={"to-boolean":Nn,"to-color":er,"to-number":dn,"to-string":vn},Wr=function(N,G){this.type=N,this.args=G};Wr.parse=function(N,G){if(N.length<2)return G.error("Expected at least one argument.");var fe=N[0];if((fe==="to-boolean"||fe==="to-string")&&N.length!==2)return G.error("Expected one argument.");for(var Ae=Qr[fe],Qe=[],et=1;et4?"Invalid rbga value "+JSON.stringify(G)+": expected an array containing either three or four numeric values.":so(G[0],G[1],G[2],G[3])))return new Fr(G[0]/255,G[1]/255,G[2]/255,G[3])}throw new Yn(fe||"Could not parse color from value '"+(typeof G=="string"?G:String(JSON.stringify(G)))+"'")}if(this.type.kind==="number"){for(var ut=null,Tt=0,Bt=this.args;Tt=G[2]||N[1]<=G[1]||N[3]>=G[3])}function gr(N,G){var fe,Ae=(180+N[0])/360,Qe=(fe=N[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+fe*Math.PI/360)))/360),et=Math.pow(2,G.z);return[Math.round(Ae*et*zn),Math.round(Qe*et*zn)]}function vr(N,G,fe){return G[1]>N[1]!=fe[1]>N[1]&&N[0]<(fe[0]-G[0])*(N[1]-G[1])/(fe[1]-G[1])+G[0]}function nr(N,G){for(var fe=!1,Ae=0,Qe=G.length;Ae0&&_n<0||an<0&&_n>0}function tr(N,G,fe){for(var Ae=0,Qe=fe;Aefe[2]){var Qe=.5*Ae,et=N[0]-fe[0]>Qe?-Ae:fe[0]-N[0]>Qe?Ae:0;et===0&&(et=N[0]-fe[2]>Qe?-Ae:fe[2]-N[0]>Qe?Ae:0),N[0]+=et}Zn(G,N)}function _o(N,G,fe,Ae){for(var Qe=Math.pow(2,Ae.z)*zn,et=[Ae.x*zn,Ae.y*zn],ut=[],Tt=0,Bt=N;Tt=0)return!1;var fe=!0;return N.eachChild(function(Ae){fe&&!Go(Ae,G)&&(fe=!1)}),fe}Eo.parse=function(N,G){if(N.length!==2)return G.error("'within' expression requires exactly one argument, but found "+(N.length-1)+" instead.");if(So(N[1])){var fe=N[1];if(fe.type==="FeatureCollection")for(var Ae=0;AeG))throw new Yn("Input is not a number.");ut=Tt-1}return 0}qo.prototype.parse=function(N,G,fe,Ae,Qe){return Qe===void 0&&(Qe={}),G?this.concat(G,fe,Ae)._parse(N,Qe):this._parse(N,Qe)},qo.prototype._parse=function(N,G){function fe(rn,an,_n){return _n==="assert"?new dr(an,[rn]):_n==="coerce"?new Wr(an,[rn]):rn}if(N!==null&&typeof N!="string"&&typeof N!="boolean"&&typeof N!="number"||(N=["literal",N]),Array.isArray(N)){if(N.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Ae=N[0];if(typeof Ae!="string")return this.error("Expression name must be a string, but found "+typeof Ae+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Qe=this.registry[Ae];if(Qe){var et=Qe.parse(N,this);if(!et)return null;if(this.expectedType){var ut=this.expectedType,Tt=et.type;if(ut.kind!=="string"&&ut.kind!=="number"&&ut.kind!=="boolean"&&ut.kind!=="object"&&ut.kind!=="array"||Tt.kind!=="value")if(ut.kind!=="color"&&ut.kind!=="formatted"&&ut.kind!=="resolvedImage"||Tt.kind!=="value"&&Tt.kind!=="string"){if(this.checkSubtype(ut,Tt))return null}else et=fe(et,ut,G.typeAnnotation||"coerce");else et=fe(et,ut,G.typeAnnotation||"assert")}if(!(et instanceof Pn)&&et.type.kind!=="resolvedImage"&&Ao(et)){var Bt=new Bn;try{et=new Pn(et.type,et.evaluate(Bt))}catch(rn){return this.error(rn.message),null}}return et}return this.error('Unknown expression "'+Ae+'". If you wanted a literal array, use ["literal", [...]].',0)}return N===void 0?this.error("'undefined' value invalid. Use null instead."):typeof N=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof N+" instead.")},qo.prototype.concat=function(N,G,fe){var Ae=typeof N=="number"?this.path.concat(N):this.path,Qe=fe?this.scope.concat(fe):this.scope;return new qo(this.registry,Ae,G||null,Qe,this.errors)},qo.prototype.error=function(N){for(var G=[],fe=arguments.length-1;fe-- >0;)G[fe]=arguments[fe+1];var Ae=""+this.key+G.map(function(Qe){return"["+Qe+"]"}).join("");this.errors.push(new tn(Ae,N))},qo.prototype.checkSubtype=function(N,G){var fe=Wn(N,G);return fe&&this.error(fe),fe};var ko=function(N,G,fe){this.type=N,this.input=G,this.labels=[],this.outputs=[];for(var Ae=0,Qe=fe;Ae=ut)return G.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Bt);var an=G.parse(Tt,rn,Qe);if(!an)return null;Qe=Qe||an.type,Ae.push([ut,an])}return new ko(Qe,fe,Ae)},ko.prototype.evaluate=function(N){var G=this.labels,fe=this.outputs;if(G.length===1)return fe[0].evaluate(N);var Ae=this.input.evaluate(N);if(Ae<=G[0])return fe[0].evaluate(N);var Qe=G.length;return Ae>=G[Qe-1]?fe[Qe-1].evaluate(N):fe[oi(G,Ae)].evaluate(N)},ko.prototype.eachChild=function(N){N(this.input);for(var G=0,fe=this.outputs;G0&&N.push(this.labels[G]),N.push(this.outputs[G].serialize());return N};var mo=Object.freeze({__proto__:null,number:ra,color:function(N,G,fe){return new Fr(ra(N.r,G.r,fe),ra(N.g,G.g,fe),ra(N.b,G.b,fe),ra(N.a,G.a,fe))},array:function(N,G,fe){return N.map(function(Ae,Qe){return ra(Ae,G[Qe],fe)})}}),Aa=.95047,Xl=1,Na=1.08883,us=4/29,wc=6/29,ga=3*wc*wc,Ku=wc*wc*wc,qc=Math.PI/180,Yd=180/Math.PI;function Ql(N){return N>Ku?Math.pow(N,.3333333333333333):N/ga+us}function Ed(N){return N>wc?N*N*N:ga*(N-us)}function Nf(N){return 255*(N<=.0031308?12.92*N:1.055*Math.pow(N,.4166666666666667)-.055)}function mm(N){return(N/=255)<=.04045?N/12.92:Math.pow((N+.055)/1.055,2.4)}function Ws(N){var G=mm(N.r),fe=mm(N.g),Ae=mm(N.b),Qe=Ql((.4124564*G+.3575761*fe+.1804375*Ae)/Aa),et=Ql((.2126729*G+.7151522*fe+.072175*Ae)/Xl);return{l:116*et-16,a:500*(Qe-et),b:200*(et-Ql((.0193339*G+.119192*fe+.9503041*Ae)/Na)),alpha:N.a}}function gm(N){var G=(N.l+16)/116,fe=isNaN(N.a)?G:G+N.a/500,Ae=isNaN(N.b)?G:G-N.b/200;return G=Xl*Ed(G),fe=Aa*Ed(fe),Ae=Na*Ed(Ae),new Fr(Nf(3.2404542*fe-1.5371385*G-.4985314*Ae),Nf(-.969266*fe+1.8760108*G+.041556*Ae),Nf(.0556434*fe-.2040259*G+1.0572252*Ae),N.alpha)}function Gl(N,G,fe){var Ae=G-N;return N+fe*(Ae>180||Ae<-180?Ae-360*Math.round(Ae/360):Ae)}var pc={forward:Ws,reverse:gm,interpolate:function(N,G,fe){return{l:ra(N.l,G.l,fe),a:ra(N.a,G.a,fe),b:ra(N.b,G.b,fe),alpha:ra(N.alpha,G.alpha,fe)}}},Cu={forward:function(N){var G=Ws(N),fe=G.l,Ae=G.a,Qe=G.b,et=Math.atan2(Qe,Ae)*Yd;return{h:et<0?et+360:et,c:Math.sqrt(Ae*Ae+Qe*Qe),l:fe,alpha:N.a}},reverse:function(N){var G=N.h*qc,fe=N.c;return gm({l:N.l,a:Math.cos(G)*fe,b:Math.sin(G)*fe,alpha:N.alpha})},interpolate:function(N,G,fe){return{h:Gl(N.h,G.h,fe),c:ra(N.c,G.c,fe),l:ra(N.l,G.l,fe),alpha:ra(N.alpha,G.alpha,fe)}}},xl=Object.freeze({__proto__:null,lab:pc,hcl:Cu}),la=function(N,G,fe,Ae,Qe){this.type=N,this.operator=G,this.interpolation=fe,this.input=Ae,this.labels=[],this.outputs=[];for(var et=0,ut=Qe;et1}))return G.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Ae={name:"cubic-bezier",controlPoints:Tt}}if(N.length-1<4)return G.error("Expected at least 4 arguments, but found only "+(N.length-1)+".");if((N.length-1)%2!=0)return G.error("Expected an even number of arguments.");if(!(Qe=G.parse(Qe,2,dn)))return null;var Bt=[],rn=null;fe==="interpolate-hcl"||fe==="interpolate-lab"?rn=er:G.expectedType&&G.expectedType.kind!=="value"&&(rn=G.expectedType);for(var an=0;an=_n)return G.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Cn);var lr=G.parse(Dn,Jn,rn);if(!lr)return null;rn=rn||lr.type,Bt.push([_n,lr])}return rn.kind==="number"||rn.kind==="color"||rn.kind==="array"&&rn.itemType.kind==="number"&&typeof rn.N=="number"?new la(rn,fe,Ae,Qe,Bt):G.error("Type "+Fn(rn)+" is not interpolatable.")},la.prototype.evaluate=function(N){var G=this.labels,fe=this.outputs;if(G.length===1)return fe[0].evaluate(N);var Ae=this.input.evaluate(N);if(Ae<=G[0])return fe[0].evaluate(N);var Qe=G.length;if(Ae>=G[Qe-1])return fe[Qe-1].evaluate(N);var et=oi(G,Ae),ut=G[et],Tt=G[et+1],Bt=la.interpolationFactor(this.interpolation,Ae,ut,Tt),rn=fe[et].evaluate(N),an=fe[et+1].evaluate(N);return this.operator==="interpolate"?mo[this.type.kind.toLowerCase()](rn,an,Bt):this.operator==="interpolate-hcl"?Cu.reverse(Cu.interpolate(Cu.forward(rn),Cu.forward(an),Bt)):pc.reverse(pc.interpolate(pc.forward(rn),pc.forward(an),Bt))},la.prototype.eachChild=function(N){N(this.input);for(var G=0,fe=this.outputs;G=fe.length)throw new Yn("Array index out of bounds: "+G+" > "+(fe.length-1)+".");if(G!==Math.floor(G))throw new Yn("Array index must be an integer, but found "+G+" instead.");return fe[G]},iu.prototype.eachChild=function(N){N(this.index),N(this.input)},iu.prototype.outputDefined=function(){return!1},iu.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var mc=function(N,G){this.type=Nn,this.needle=N,this.haystack=G};mc.parse=function(N,G){if(N.length!==3)return G.error("Expected 2 arguments, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1,In),Ae=G.parse(N[2],2,In);return fe&&Ae?Kn(fe.type,[Nn,vn,dn,fn,In])?new mc(fe,Ae):G.error("Expected first argument to be of type boolean, string, number or null, but found "+Fn(fe.type)+" instead"):null},mc.prototype.evaluate=function(N){var G=this.needle.evaluate(N),fe=this.haystack.evaluate(N);if(!fe)return!1;if(!_r(G,["boolean","string","number","null"]))throw new Yn("Expected first argument to be of type boolean, string, number or null, but found "+Fn(go(G))+" instead.");if(!_r(fe,["string","array"]))throw new Yn("Expected second argument to be of type array or string, but found "+Fn(go(fe))+" instead.");return fe.indexOf(G)>=0},mc.prototype.eachChild=function(N){N(this.needle),N(this.haystack)},mc.prototype.outputDefined=function(){return!0},mc.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var ks=function(N,G,fe){this.type=dn,this.needle=N,this.haystack=G,this.fromIndex=fe};ks.parse=function(N,G){if(N.length<=2||N.length>=5)return G.error("Expected 3 or 4 arguments, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1,In),Ae=G.parse(N[2],2,In);if(!fe||!Ae)return null;if(!Kn(fe.type,[Nn,vn,dn,fn,In]))return G.error("Expected first argument to be of type boolean, string, number or null, but found "+Fn(fe.type)+" instead");if(N.length===4){var Qe=G.parse(N[3],3,dn);return Qe?new ks(fe,Ae,Qe):null}return new ks(fe,Ae)},ks.prototype.evaluate=function(N){var G=this.needle.evaluate(N),fe=this.haystack.evaluate(N);if(!_r(G,["boolean","string","number","null"]))throw new Yn("Expected first argument to be of type boolean, string, number or null, but found "+Fn(go(G))+" instead.");if(!_r(fe,["string","array"]))throw new Yn("Expected second argument to be of type array or string, but found "+Fn(go(fe))+" instead.");if(this.fromIndex){var Ae=this.fromIndex.evaluate(N);return fe.indexOf(G,Ae)}return fe.indexOf(G)},ks.prototype.eachChild=function(N){N(this.needle),N(this.haystack),this.fromIndex&&N(this.fromIndex)},ks.prototype.outputDefined=function(){return!1},ks.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var N=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),N]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var $f=function(N,G,fe,Ae,Qe,et){this.inputType=N,this.type=G,this.input=fe,this.cases=Ae,this.outputs=Qe,this.otherwise=et};$f.parse=function(N,G){if(N.length<5)return G.error("Expected at least 4 arguments, but found only "+(N.length-1)+".");if(N.length%2!=1)return G.error("Expected an even number of arguments.");var fe,Ae;G.expectedType&&G.expectedType.kind!=="value"&&(Ae=G.expectedType);for(var Qe={},et=[],ut=2;utNumber.MAX_SAFE_INTEGER)return rn.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Dn=="number"&&Math.floor(Dn)!==Dn)return rn.error("Numeric branch labels must be integer values.");if(fe){if(rn.checkSubtype(fe,go(Dn)))return null}else fe=go(Dn);if(Qe[String(Dn)]!==void 0)return rn.error("Branch labels must be unique.");Qe[String(Dn)]=et.length}var Cn=G.parse(Bt,ut,Ae);if(!Cn)return null;Ae=Ae||Cn.type,et.push(Cn)}var Jn=G.parse(N[1],1,In);if(!Jn)return null;var lr=G.parse(N[N.length-1],N.length-1,Ae);return lr?Jn.type.kind!=="value"&&G.concat(1).checkSubtype(fe,Jn.type)?null:new $f(fe,Ae,Jn,Qe,et,lr):null},$f.prototype.evaluate=function(N){var G=this.input.evaluate(N);return(go(G)===this.inputType&&this.outputs[this.cases[G]]||this.otherwise).evaluate(N)},$f.prototype.eachChild=function(N){N(this.input),this.outputs.forEach(N),N(this.otherwise)},$f.prototype.outputDefined=function(){return this.outputs.every(function(N){return N.outputDefined()})&&this.otherwise.outputDefined()},$f.prototype.serialize=function(){for(var N=this,G=["match",this.input.serialize()],fe=[],Ae={},Qe=0,et=Object.keys(this.cases).sort();Qe=5)return G.error("Expected 3 or 4 arguments, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1,In),Ae=G.parse(N[2],2,dn);if(!fe||!Ae)return null;if(!Kn(fe.type,[ar(In),vn,In]))return G.error("Expected first argument to be of type array or string, but found "+Fn(fe.type)+" instead");if(N.length===4){var Qe=G.parse(N[3],3,dn);return Qe?new Ju(fe.type,fe,Ae,Qe):null}return new Ju(fe.type,fe,Ae)},Ju.prototype.evaluate=function(N){var G=this.input.evaluate(N),fe=this.beginIndex.evaluate(N);if(!_r(G,["string","array"]))throw new Yn("Expected first argument to be of type array or string, but found "+Fn(go(G))+" instead.");if(this.endIndex){var Ae=this.endIndex.evaluate(N);return G.slice(fe,Ae)}return G.slice(fe)},Ju.prototype.eachChild=function(N){N(this.input),N(this.beginIndex),this.endIndex&&N(this.endIndex)},Ju.prototype.outputDefined=function(){return!1},Ju.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var N=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),N]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var uc=ef("==",function(N,G,fe){return G===fe},Es),sd=ef("!=",function(N,G,fe){return G!==fe},function(N,G,fe,Ae){return!Es(0,G,fe,Ae)}),Vf=ef("<",function(N,G,fe){return G",function(N,G,fe){return G>fe},function(N,G,fe,Ae){return Ae.compare(G,fe)>0}),ld=ef("<=",function(N,G,fe){return G<=fe},function(N,G,fe,Ae){return Ae.compare(G,fe)<=0}),Mp=ef(">=",function(N,G,fe){return G>=fe},function(N,G,fe,Ae){return Ae.compare(G,fe)>=0}),Xd=function(N,G,fe,Ae,Qe){this.type=vn,this.number=N,this.locale=G,this.currency=fe,this.minFractionDigits=Ae,this.maxFractionDigits=Qe};Xd.parse=function(N,G){if(N.length!==3)return G.error("Expected two arguments.");var fe=G.parse(N[1],1,dn);if(!fe)return null;var Ae=N[2];if(typeof Ae!="object"||Array.isArray(Ae))return G.error("NumberFormat options argument must be an object.");var Qe=null;if(Ae.locale&&!(Qe=G.parse(Ae.locale,1,vn)))return null;var et=null;if(Ae.currency&&!(et=G.parse(Ae.currency,1,vn)))return null;var ut=null;if(Ae["min-fraction-digits"]&&!(ut=G.parse(Ae["min-fraction-digits"],1,dn)))return null;var Tt=null;return Ae["max-fraction-digits"]&&!(Tt=G.parse(Ae["max-fraction-digits"],1,dn))?null:new Xd(fe,Qe,et,ut,Tt)},Xd.prototype.evaluate=function(N){return new Intl.NumberFormat(this.locale?this.locale.evaluate(N):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(N):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(N):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(N):void 0}).format(this.number.evaluate(N))},Xd.prototype.eachChild=function(N){N(this.number),this.locale&&N(this.locale),this.currency&&N(this.currency),this.minFractionDigits&&N(this.minFractionDigits),this.maxFractionDigits&&N(this.maxFractionDigits)},Xd.prototype.outputDefined=function(){return!1},Xd.prototype.serialize=function(){var N={};return this.locale&&(N.locale=this.locale.serialize()),this.currency&&(N.currency=this.currency.serialize()),this.minFractionDigits&&(N["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(N["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),N]};var bf=function(N){this.type=dn,this.input=N};bf.parse=function(N,G){if(N.length!==2)return G.error("Expected 1 argument, but found "+(N.length-1)+" instead.");var fe=G.parse(N[1],1);return fe?fe.type.kind!=="array"&&fe.type.kind!=="string"&&fe.type.kind!=="value"?G.error("Expected argument of type string or array, but found "+Fn(fe.type)+" instead."):new bf(fe):null},bf.prototype.evaluate=function(N){var G=this.input.evaluate(N);if(typeof G=="string"||Array.isArray(G))return G.length;throw new Yn("Expected value to be of type string or array, but found "+Fn(go(G))+" instead.")},bf.prototype.eachChild=function(N){N(this.input)},bf.prototype.outputDefined=function(){return!1},bf.prototype.serialize=function(){var N=["length"];return this.eachChild(function(G){N.push(G.serialize())}),N};var mh={"==":uc,"!=":sd,">":gc,"<":Vf,">=":Mp,"<=":ld,array:dr,at:iu,boolean:dr,case:yf,coalesce:pu,collator:hn,format:Cr,image:io,in:mc,"index-of":ks,interpolate:la,"interpolate-hcl":la,"interpolate-lab":la,length:bf,let:ju,literal:Pn,match:$f,number:dr,"number-format":Xd,object:dr,slice:Ju,step:ko,string:dr,"to-boolean":Wr,"to-color":Wr,"to-number":Wr,"to-string":Wr,var:po,within:Eo};function cd(N,G){var fe=G[0],Ae=G[1],Qe=G[2],et=G[3];fe=fe.evaluate(N),Ae=Ae.evaluate(N),Qe=Qe.evaluate(N);var ut=et?et.evaluate(N):1,Tt=so(fe,Ae,Qe,ut);if(Tt)throw new Yn(Tt);return new Fr(fe/255*ut,Ae/255*ut,Qe/255*ut,ut)}function Vh(N,G){return N in G}function xf(N,G){var fe=G[N];return fe===void 0?null:fe}function tf(N){return{type:N}}function Au(N){return{result:"success",value:N}}function _f(N){return{result:"error",value:N}}function ud(N){return N["property-type"]==="data-driven"||N["property-type"]==="cross-faded-data-driven"}function nf(N){return!!N.expression&&N.expression.parameters.indexOf("zoom")>-1}function gh(N){return!!N.expression&&N.expression.interpolated}function rs(N){return N instanceof Number?"number":N instanceof String?"string":N instanceof Boolean?"boolean":Array.isArray(N)?"array":N===null?"null":typeof N}function ep(N){return typeof N=="object"&&N!==null&&!Array.isArray(N)}function Ep(N){return N}function vm(N,G){var fe,Ae,Qe,et=G.type==="color",ut=N.stops&&typeof N.stops[0][0]=="object",Tt=ut||N.property!==void 0,Bt=ut||!Tt,rn=N.type||(gh(G)?"exponential":"interval");if(et&&((N=Yt({},N)).stops&&(N.stops=N.stops.map(function(ni){return[ni[0],Fr.parse(ni[1])]})),N.default?N.default=Fr.parse(N.default):N.default=Fr.parse(G.default)),N.colorSpace&&N.colorSpace!=="rgb"&&!xl[N.colorSpace])throw new Error("Unknown color space: "+N.colorSpace);if(rn==="exponential")fe=Pp;else if(rn==="interval")fe=sr;else if(rn==="categorical"){fe=M0,Ae=Object.create(null);for(var an=0,_n=N.stops;an<_n.length;an+=1){var Dn=_n[an];Ae[Dn[0]]=Dn[1]}Qe=typeof N.stops[0][0]}else{if(rn!=="identity")throw new Error('Unknown function type "'+rn+'"');fe=wf}if(ut){for(var Cn={},Jn=[],lr=0;lr=N.stops[Ae-1][0])return N.stops[Ae-1][1];var Qe=oi(N.stops.map(function(et){return et[0]}),fe);return N.stops[Qe][1]}function Pp(N,G,fe){var Ae=N.base!==void 0?N.base:1;if(rs(fe)!=="number")return Pd(N.default,G.default);var Qe=N.stops.length;if(Qe===1||fe<=N.stops[0][0])return N.stops[0][1];if(fe>=N.stops[Qe-1][0])return N.stops[Qe-1][1];var et=oi(N.stops.map(function(_n){return _n[0]}),fe),ut=function(_n,Dn,Cn,Jn){var lr=Jn-Cn,Ar=_n-Cn;return lr===0?0:Dn===1?Ar/lr:(Math.pow(Dn,Ar)-1)/(Math.pow(Dn,lr)-1)}(fe,Ae,N.stops[et][0],N.stops[et+1][0]),Tt=N.stops[et][1],Bt=N.stops[et+1][1],rn=mo[G.type]||Ep;if(N.colorSpace&&N.colorSpace!=="rgb"){var an=xl[N.colorSpace];rn=function(_n,Dn){return an.reverse(an.interpolate(an.forward(_n),an.forward(Dn),ut))}}return typeof Tt.evaluate=="function"?{evaluate:function(){for(var _n=[],Dn=arguments.length;Dn--;)_n[Dn]=arguments[Dn];var Cn=Tt.evaluate.apply(void 0,_n),Jn=Bt.evaluate.apply(void 0,_n);if(Cn!==void 0&&Jn!==void 0)return rn(Cn,Jn,ut)}}:rn(Tt,Bt,ut)}function wf(N,G,fe){return G.type==="color"?fe=Fr.parse(fe):G.type==="formatted"?fe=Kr.fromString(fe.toString()):G.type==="resolvedImage"?fe=Co.fromString(fe.toString()):rs(fe)===G.type||G.type==="enum"&&G.values[fe]||(fe=void 0),Pd(fe,N.default,G.default)}hr.register(mh,{error:[{kind:"error"},[vn],function(N,G){var fe=G[0];throw new Yn(fe.evaluate(N))}],typeof:[vn,[In],function(N,G){return Fn(go(G[0].evaluate(N)))}],"to-rgba":[ar(dn,4),[er],function(N,G){return G[0].evaluate(N).toArray()}],rgb:[er,[dn,dn,dn],cd],rgba:[er,[dn,dn,dn,dn],cd],has:{type:Nn,overloads:[[[vn],function(N,G){return Vh(G[0].evaluate(N),N.properties())}],[[vn,En],function(N,G){var fe=G[0],Ae=G[1];return Vh(fe.evaluate(N),Ae.evaluate(N))}]]},get:{type:In,overloads:[[[vn],function(N,G){return xf(G[0].evaluate(N),N.properties())}],[[vn,En],function(N,G){var fe=G[0],Ae=G[1];return xf(fe.evaluate(N),Ae.evaluate(N))}]]},"feature-state":[In,[vn],function(N,G){return xf(G[0].evaluate(N),N.featureState||{})}],properties:[En,[],function(N){return N.properties()}],"geometry-type":[vn,[],function(N){return N.geometryType()}],id:[In,[],function(N){return N.id()}],zoom:[dn,[],function(N){return N.globals.zoom}],"heatmap-density":[dn,[],function(N){return N.globals.heatmapDensity||0}],"line-progress":[dn,[],function(N){return N.globals.lineProgress||0}],accumulated:[In,[],function(N){return N.globals.accumulated===void 0?null:N.globals.accumulated}],"+":[dn,tf(dn),function(N,G){for(var fe=0,Ae=0,Qe=G;Ae":[Nn,[vn,In],function(N,G){var fe=G[0],Ae=G[1],Qe=N.properties()[fe.value],et=Ae.value;return typeof Qe==typeof et&&Qe>et}],"filter-id->":[Nn,[In],function(N,G){var fe=G[0],Ae=N.id(),Qe=fe.value;return typeof Ae==typeof Qe&&Ae>Qe}],"filter-<=":[Nn,[vn,In],function(N,G){var fe=G[0],Ae=G[1],Qe=N.properties()[fe.value],et=Ae.value;return typeof Qe==typeof et&&Qe<=et}],"filter-id-<=":[Nn,[In],function(N,G){var fe=G[0],Ae=N.id(),Qe=fe.value;return typeof Ae==typeof Qe&&Ae<=Qe}],"filter->=":[Nn,[vn,In],function(N,G){var fe=G[0],Ae=G[1],Qe=N.properties()[fe.value],et=Ae.value;return typeof Qe==typeof et&&Qe>=et}],"filter-id->=":[Nn,[In],function(N,G){var fe=G[0],Ae=N.id(),Qe=fe.value;return typeof Ae==typeof Qe&&Ae>=Qe}],"filter-has":[Nn,[In],function(N,G){return G[0].value in N.properties()}],"filter-has-id":[Nn,[],function(N){return N.id()!==null&&N.id()!==void 0}],"filter-type-in":[Nn,[ar(vn)],function(N,G){return G[0].value.indexOf(N.geometryType())>=0}],"filter-id-in":[Nn,[ar(In)],function(N,G){return G[0].value.indexOf(N.id())>=0}],"filter-in-small":[Nn,[vn,ar(In)],function(N,G){var fe=G[0];return G[1].value.indexOf(N.properties()[fe.value])>=0}],"filter-in-large":[Nn,[vn,ar(In)],function(N,G){var fe=G[0],Ae=G[1];return function(Qe,et,ut,Tt){for(;ut<=Tt;){var Bt=ut+Tt>>1;if(et[Bt]===Qe)return!0;et[Bt]>Qe?Tt=Bt-1:ut=Bt+1}return!1}(N.properties()[fe.value],Ae.value,0,Ae.value.length-1)}],all:{type:Nn,overloads:[[[Nn,Nn],function(N,G){var fe=G[0],Ae=G[1];return fe.evaluate(N)&&Ae.evaluate(N)}],[tf(Nn),function(N,G){for(var fe=0,Ae=G;fe0&&typeof N[0]=="string"&&N[0]in mh}function Gd(N,G){var fe=new qo(mh,[],G?function(Qe){var et={color:er,string:vn,number:dn,enum:vn,boolean:Nn,formatted:xr,resolvedImage:Sr};return Qe.type==="array"?ar(et[Qe.value]||In,Qe.length):et[Qe.type]}(G):void 0),Ae=fe.parse(N,void 0,void 0,void 0,G&&G.type==="string"?{typeAnnotation:"coerce"}:void 0);return Ae?Au(new Of(Ae,G)):_f(fe.errors)}Of.prototype.evaluateWithoutErrorHandling=function(N,G,fe,Ae,Qe,et){return this._evaluator.globals=N,this._evaluator.feature=G,this._evaluator.featureState=fe,this._evaluator.canonical=Ae,this._evaluator.availableImages=Qe||null,this._evaluator.formattedSection=et,this.expression.evaluate(this._evaluator)},Of.prototype.evaluate=function(N,G,fe,Ae,Qe,et){this._evaluator.globals=N,this._evaluator.feature=G||null,this._evaluator.featureState=fe||null,this._evaluator.canonical=Ae,this._evaluator.availableImages=Qe||null,this._evaluator.formattedSection=et||null;try{var ut=this.expression.evaluate(this._evaluator);if(ut==null||typeof ut=="number"&&ut!=ut)return this._defaultValue;if(this._enumValues&&!(ut in this._enumValues))throw new Yn("Expected value to be one of "+Object.keys(this._enumValues).map(function(Tt){return JSON.stringify(Tt)}).join(", ")+", but found "+JSON.stringify(ut)+" instead.");return ut}catch(Tt){return this._warningHistory[Tt.message]||(this._warningHistory[Tt.message]=!0,typeof console<"u"&&console.warn(Tt.message)),this._defaultValue}};var Fa=function(N,G){this.kind=N,this._styleExpression=G,this.isStateDependent=N!=="constant"&&!co(G.expression)};Fa.prototype.evaluateWithoutErrorHandling=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluateWithoutErrorHandling(N,G,fe,Ae,Qe,et)},Fa.prototype.evaluate=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluate(N,G,fe,Ae,Qe,et)};var Qu=function(N,G,fe,Ae){this.kind=N,this.zoomStops=fe,this._styleExpression=G,this.isStateDependent=N!=="camera"&&!co(G.expression),this.interpolationType=Ae};function rf(N,G){if((N=Gd(N,G)).result==="error")return N;var fe=N.value.expression,Ae=ao(fe);if(!Ae&&!ud(G))return _f([new tn("","data expressions not supported")]);var Qe=Go(fe,["zoom"]);if(!Qe&&!nf(G))return _f([new tn("","zoom expressions not supported")]);var et=ym(fe);if(!et&&!Qe)return _f([new tn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(et instanceof tn)return _f([et]);if(et instanceof la&&!gh(G))return _f([new tn("",'"interpolate" expressions cannot be used with this property')]);if(!et)return Au(new Fa(Ae?"constant":"source",N.value));var ut=et instanceof la?et.interpolation:void 0;return Au(new Qu(Ae?"camera":"composite",N.value,et.labels,ut))}Qu.prototype.evaluateWithoutErrorHandling=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluateWithoutErrorHandling(N,G,fe,Ae,Qe,et)},Qu.prototype.evaluate=function(N,G,fe,Ae,Qe,et){return this._styleExpression.evaluate(N,G,fe,Ae,Qe,et)},Qu.prototype.interpolationFactor=function(N,G,fe){return this.interpolationType?la.interpolationFactor(this.interpolationType,N,G,fe):0};var Bc=function(N,G){this._parameters=N,this._specification=G,Yt(this,vm(this._parameters,this._specification))};function ym(N){var G=null;if(N instanceof ju)G=ym(N.result);else if(N instanceof pu)for(var fe=0,Ae=N.args;feAe.maximum?[new Zt(G,fe,fe+" is greater than the maximum value "+Ae.maximum)]:[]}function Uh(N){var G,fe,Ae,Qe=N.valueSpec,et=Qt(N.value.type),ut={},Tt=et!=="categorical"&&N.value.property===void 0,Bt=!Tt,rn=rs(N.value.stops)==="array"&&rs(N.value.stops[0])==="array"&&rs(N.value.stops[0][0])==="object",an=Mu({key:N.key,value:N.value,valueSpec:N.styleSpec.function,style:N.style,styleSpec:N.styleSpec,objectElementValidators:{stops:function(Cn){if(et==="identity")return[new Zt(Cn.key,Cn.value,'identity function may not have a "stops" property')];var Jn=[],lr=Cn.value;return Jn=Jn.concat(Hu({key:Cn.key,value:lr,valueSpec:Cn.valueSpec,style:Cn.style,styleSpec:Cn.styleSpec,arrayElementValidator:_n})),rs(lr)==="array"&&lr.length===0&&Jn.push(new Zt(Cn.key,lr,"array must have at least one stop")),Jn},default:function(Cn){return ms({key:Cn.key,value:Cn.value,valueSpec:Qe,style:Cn.style,styleSpec:Cn.styleSpec})}}});return et==="identity"&&Tt&&an.push(new Zt(N.key,N.value,'missing required property "property"')),et==="identity"||N.value.stops||an.push(new Zt(N.key,N.value,'missing required property "stops"')),et==="exponential"&&N.valueSpec.expression&&!gh(N.valueSpec)&&an.push(new Zt(N.key,N.value,"exponential functions not supported")),N.styleSpec.$version>=8&&(Bt&&!ud(N.valueSpec)?an.push(new Zt(N.key,N.value,"property functions not supported")):Tt&&!nf(N.valueSpec)&&an.push(new Zt(N.key,N.value,"zoom functions not supported"))),et!=="categorical"&&!rn||N.value.property!==void 0||an.push(new Zt(N.key,N.value,'"property" property is required')),an;function _n(Cn){var Jn=[],lr=Cn.value,Ar=Cn.key;if(rs(lr)!=="array")return[new Zt(Ar,lr,"array expected, "+rs(lr)+" found")];if(lr.length!==2)return[new Zt(Ar,lr,"array length 2 expected, length "+lr.length+" found")];if(rn){if(rs(lr[0])!=="object")return[new Zt(Ar,lr,"object expected, "+rs(lr[0])+" found")];if(lr[0].zoom===void 0)return[new Zt(Ar,lr,"object stop key must have zoom")];if(lr[0].value===void 0)return[new Zt(Ar,lr,"object stop key must have value")];if(Ae&&Ae>Qt(lr[0].zoom))return[new Zt(Ar,lr[0].zoom,"stop zoom values must appear in ascending order")];Qt(lr[0].zoom)!==Ae&&(Ae=Qt(lr[0].zoom),fe=void 0,ut={}),Jn=Jn.concat(Mu({key:Ar+"[0]",value:lr[0],valueSpec:{zoom:{}},style:Cn.style,styleSpec:Cn.styleSpec,objectElementValidators:{zoom:Lp,value:Dn}}))}else Jn=Jn.concat(Dn({key:Ar+"[0]",value:lr[0],valueSpec:{},style:Cn.style,styleSpec:Cn.styleSpec},lr));return Rp(Pt(lr[1]))?Jn.concat([new Zt(Ar+"[1]",lr[1],"expressions are not allowed in function stops.")]):Jn.concat(ms({key:Ar+"[1]",value:lr[1],valueSpec:Qe,style:Cn.style,styleSpec:Cn.styleSpec}))}function Dn(Cn,Jn){var lr=rs(Cn.value),Ar=Qt(Cn.value),Or=Cn.value!==null?Cn.value:Jn;if(G){if(lr!==G)return[new Zt(Cn.key,Or,lr+" stop domain type must match previous stop domain type "+G)]}else G=lr;if(lr!=="number"&&lr!=="string"&&lr!=="boolean")return[new Zt(Cn.key,Or,"stop domain value must be a number, string, or boolean")];if(lr!=="number"&&et!=="categorical"){var jr="number expected, "+lr+" found";return ud(Qe)&&et===void 0&&(jr+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Zt(Cn.key,Or,jr)]}return et!=="categorical"||lr!=="number"||isFinite(Ar)&&Math.floor(Ar)===Ar?et!=="categorical"&&lr==="number"&&fe!==void 0&&Ar=2&&N[1]!=="$id"&&N[1]!=="$type";case"in":return N.length>=3&&(typeof N[1]!="string"||Array.isArray(N[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return N.length!==3||Array.isArray(N[1])||Array.isArray(N[2]);case"any":case"all":for(var G=0,fe=N.slice(1);GG?1:0}function Ts(N){if(!Array.isArray(N))return!1;if(N[0]==="within")return!0;for(var G=1;G"||fe==="<="||fe===">="?zl(N[1],N[2],fe):fe==="any"?(G=N.slice(1),["any"].concat(G.map(Uf))):fe==="all"?["all"].concat(N.slice(1).map(Uf)):fe==="none"?["all"].concat(N.slice(1).map(Uf).map($s)):fe==="in"?Hl(N[1],N.slice(2)):fe==="!in"?$s(Hl(N[1],N.slice(2))):fe==="has"?Cs(N[1]):fe==="!has"?$s(Cs(N[1])):fe!=="within"||N}function zl(N,G,fe){switch(N){case"$type":return["filter-type-"+fe,G];case"$id":return["filter-id-"+fe,G];default:return["filter-"+fe,N,G]}}function Hl(N,G){if(G.length===0)return!1;switch(N){case"$type":return["filter-type-in",["literal",G]];case"$id":return["filter-id-in",["literal",G]];default:return G.length>200&&!G.some(function(fe){return typeof fe!=typeof G[0]})?["filter-in-large",N,["literal",G.sort(Oc)]]:["filter-in-small",N,["literal",G]]}}function Cs(N){switch(N){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",N]}}function $s(N){return["!",N]}function Zu(N){return fd(Pt(N.value))?jh(Yt({},N,{expressionContext:"filter",valueSpec:{value:"boolean"}})):yh(N)}function yh(N){var G=N.value,fe=N.key;if(rs(G)!=="array")return[new Zt(fe,G,"array expected, "+rs(G)+" found")];var Ae,Qe=N.styleSpec,et=[];if(G.length<1)return[new Zt(fe,G,"filter array must have at least 1 element")];switch(et=et.concat(Eu({key:fe+"[0]",value:G[0],valueSpec:Qe.filter_operator,style:N.style,styleSpec:N.styleSpec})),Qt(G[0])){case"<":case"<=":case">":case">=":G.length>=2&&Qt(G[1])==="$type"&&et.push(new Zt(fe,G,'"$type" cannot be use with operator "'+G[0]+'"'));case"==":case"!=":G.length!==3&&et.push(new Zt(fe,G,'filter array for operator "'+G[0]+'" must have 3 elements'));case"in":case"!in":G.length>=2&&(Ae=rs(G[1]))!=="string"&&et.push(new Zt(fe+"[1]",G[1],"string expected, "+Ae+" found"));for(var ut=2;ut=an[Cn+0]&&Ae>=an[Cn+1])?(ut[Dn]=!0,et.push(rn[Dn])):ut[Dn]=!1}}},Sf.prototype._forEachCell=function(N,G,fe,Ae,Qe,et,ut,Tt){for(var Bt=this._convertToCellCoord(N),rn=this._convertToCellCoord(G),an=this._convertToCellCoord(fe),_n=this._convertToCellCoord(Ae),Dn=Bt;Dn<=an;Dn++)for(var Cn=rn;Cn<=_n;Cn++){var Jn=this.d*Cn+Dn;if((!Tt||Tt(this._convertFromCellCoord(Dn),this._convertFromCellCoord(Cn),this._convertFromCellCoord(Dn+1),this._convertFromCellCoord(Cn+1)))&&Qe.call(this,N,G,fe,Ae,Jn,et,ut,Tt))return}},Sf.prototype._convertFromCellCoord=function(N){return(N-this.padding)/this.scale},Sf.prototype._convertToCellCoord=function(N){return Math.max(0,Math.min(this.d-1,Math.floor(N*this.scale)+this.padding))},Sf.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var N=this.cells,G=af+this.cells.length+1+1,fe=0,Ae=0;Ae=0)){var _n=N[an];rn[an]=Hi[Bt].shallow.indexOf(an)>=0?_n:Yc(_n,G)}N instanceof Error&&(rn.message=N.message)}if(rn.$name)throw new Error("$name property is reserved for worker serialization logic.");return Bt!=="Object"&&(rn.$name=Bt),rn}throw new Error("can't serialize object of type "+typeof N)}function Kl(N){if(N==null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||N instanceof Boolean||N instanceof Number||N instanceof String||N instanceof Date||N instanceof RegExp||Ru(N)||vc(N)||ArrayBuffer.isView(N)||N instanceof sf)return N;if(Array.isArray(N))return N.map(Kl);if(typeof N=="object"){var G=N.$name||"Object",fe=Hi[G].klass;if(!fe)throw new Error("can't deserialize unregistered class "+G);if(fe.deserialize)return fe.deserialize(N);for(var Ae=Object.create(fe.prototype),Qe=0,et=Object.keys(N);Qe=0?Tt:Kl(Tt)}}return Ae}throw new Error("can't deserialize object of type "+typeof N)}var Fc=function(){this.first=!0};Fc.prototype.update=function(N,G){var fe=Math.floor(N);return this.first?(this.first=!1,this.lastIntegerZoom=fe,this.lastIntegerZoomTime=0,this.lastZoom=N,this.lastFloorZoom=fe,!0):(this.lastFloorZoom>fe?(this.lastIntegerZoom=fe+1,this.lastIntegerZoomTime=G):this.lastFloorZoom=128&&N<=255},Arabic:function(N){return N>=1536&&N<=1791},"Arabic Supplement":function(N){return N>=1872&&N<=1919},"Arabic Extended-A":function(N){return N>=2208&&N<=2303},"Hangul Jamo":function(N){return N>=4352&&N<=4607},"Unified Canadian Aboriginal Syllabics":function(N){return N>=5120&&N<=5759},Khmer:function(N){return N>=6016&&N<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(N){return N>=6320&&N<=6399},"General Punctuation":function(N){return N>=8192&&N<=8303},"Letterlike Symbols":function(N){return N>=8448&&N<=8527},"Number Forms":function(N){return N>=8528&&N<=8591},"Miscellaneous Technical":function(N){return N>=8960&&N<=9215},"Control Pictures":function(N){return N>=9216&&N<=9279},"Optical Character Recognition":function(N){return N>=9280&&N<=9311},"Enclosed Alphanumerics":function(N){return N>=9312&&N<=9471},"Geometric Shapes":function(N){return N>=9632&&N<=9727},"Miscellaneous Symbols":function(N){return N>=9728&&N<=9983},"Miscellaneous Symbols and Arrows":function(N){return N>=11008&&N<=11263},"CJK Radicals Supplement":function(N){return N>=11904&&N<=12031},"Kangxi Radicals":function(N){return N>=12032&&N<=12255},"Ideographic Description Characters":function(N){return N>=12272&&N<=12287},"CJK Symbols and Punctuation":function(N){return N>=12288&&N<=12351},Hiragana:function(N){return N>=12352&&N<=12447},Katakana:function(N){return N>=12448&&N<=12543},Bopomofo:function(N){return N>=12544&&N<=12591},"Hangul Compatibility Jamo":function(N){return N>=12592&&N<=12687},Kanbun:function(N){return N>=12688&&N<=12703},"Bopomofo Extended":function(N){return N>=12704&&N<=12735},"CJK Strokes":function(N){return N>=12736&&N<=12783},"Katakana Phonetic Extensions":function(N){return N>=12784&&N<=12799},"Enclosed CJK Letters and Months":function(N){return N>=12800&&N<=13055},"CJK Compatibility":function(N){return N>=13056&&N<=13311},"CJK Unified Ideographs Extension A":function(N){return N>=13312&&N<=19903},"Yijing Hexagram Symbols":function(N){return N>=19904&&N<=19967},"CJK Unified Ideographs":function(N){return N>=19968&&N<=40959},"Yi Syllables":function(N){return N>=40960&&N<=42127},"Yi Radicals":function(N){return N>=42128&&N<=42191},"Hangul Jamo Extended-A":function(N){return N>=43360&&N<=43391},"Hangul Syllables":function(N){return N>=44032&&N<=55215},"Hangul Jamo Extended-B":function(N){return N>=55216&&N<=55295},"Private Use Area":function(N){return N>=57344&&N<=63743},"CJK Compatibility Ideographs":function(N){return N>=63744&&N<=64255},"Arabic Presentation Forms-A":function(N){return N>=64336&&N<=65023},"Vertical Forms":function(N){return N>=65040&&N<=65055},"CJK Compatibility Forms":function(N){return N>=65072&&N<=65103},"Small Form Variants":function(N){return N>=65104&&N<=65135},"Arabic Presentation Forms-B":function(N){return N>=65136&&N<=65279},"Halfwidth and Fullwidth Forms":function(N){return N>=65280&&N<=65519}};function Hh(N){for(var G=0,fe=N;G=65097&&N<=65103)||si["CJK Compatibility Ideographs"](N)||si["CJK Compatibility"](N)||si["CJK Radicals Supplement"](N)||si["CJK Strokes"](N)||!(!si["CJK Symbols and Punctuation"](N)||N>=12296&&N<=12305||N>=12308&&N<=12319||N===12336)||si["CJK Unified Ideographs Extension A"](N)||si["CJK Unified Ideographs"](N)||si["Enclosed CJK Letters and Months"](N)||si["Hangul Compatibility Jamo"](N)||si["Hangul Jamo Extended-A"](N)||si["Hangul Jamo Extended-B"](N)||si["Hangul Jamo"](N)||si["Hangul Syllables"](N)||si.Hiragana(N)||si["Ideographic Description Characters"](N)||si.Kanbun(N)||si["Kangxi Radicals"](N)||si["Katakana Phonetic Extensions"](N)||si.Katakana(N)&&N!==12540||!(!si["Halfwidth and Fullwidth Forms"](N)||N===65288||N===65289||N===65293||N>=65306&&N<=65310||N===65339||N===65341||N===65343||N>=65371&&N<=65503||N===65507||N>=65512&&N<=65519)||!(!si["Small Form Variants"](N)||N>=65112&&N<=65118||N>=65123&&N<=65126)||si["Unified Canadian Aboriginal Syllabics"](N)||si["Unified Canadian Aboriginal Syllabics Extended"](N)||si["Vertical Forms"](N)||si["Yijing Hexagram Symbols"](N)||si["Yi Syllables"](N)||si["Yi Radicals"](N))))}function Sc(N){return!(Ps(N)||function(G){return!!(si["Latin-1 Supplement"](G)&&(G===167||G===169||G===174||G===177||G===188||G===189||G===190||G===215||G===247)||si["General Punctuation"](G)&&(G===8214||G===8224||G===8225||G===8240||G===8241||G===8251||G===8252||G===8258||G===8263||G===8264||G===8265||G===8273)||si["Letterlike Symbols"](G)||si["Number Forms"](G)||si["Miscellaneous Technical"](G)&&(G>=8960&&G<=8967||G>=8972&&G<=8991||G>=8996&&G<=9e3||G===9003||G>=9085&&G<=9114||G>=9150&&G<=9165||G===9167||G>=9169&&G<=9179||G>=9186&&G<=9215)||si["Control Pictures"](G)&&G!==9251||si["Optical Character Recognition"](G)||si["Enclosed Alphanumerics"](G)||si["Geometric Shapes"](G)||si["Miscellaneous Symbols"](G)&&!(G>=9754&&G<=9759)||si["Miscellaneous Symbols and Arrows"](G)&&(G>=11026&&G<=11055||G>=11088&&G<=11097||G>=11192&&G<=11243)||si["CJK Symbols and Punctuation"](G)||si.Katakana(G)||si["Private Use Area"](G)||si["CJK Compatibility Forms"](G)||si["Small Form Variants"](G)||si["Halfwidth and Fullwidth Forms"](G)||G===8734||G===8756||G===8757||G>=9984&&G<=10087||G>=10102&&G<=10131||G===65532||G===65533)}(N))}function tl(N){return si.Arabic(N)||si["Arabic Supplement"](N)||si["Arabic Extended-A"](N)||si["Arabic Presentation Forms-A"](N)||si["Arabic Presentation Forms-B"](N)}function gu(N){return N>=1424&&N<=2303||si["Arabic Presentation Forms-A"](N)||si["Arabic Presentation Forms-B"](N)}function vu(N,G){return!(!G&&gu(N)||N>=2304&&N<=3583||N>=3840&&N<=4255||si.Khmer(N))}function ja(N){for(var G=0,fe=N;G-1&&(Ka=nl),Id&&Id(N)};function jf(){bu.fire(new it("pluginStateChange",{pluginStatus:Ka,pluginURL:Xi}))}var bu=new Lt,Dp=function(){return Ka},rp=function(){if(Ka!==yu||!Xi)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ka=Rd,jf(),Xi&&bn({url:Xi},function(N){N?Xc(N):(Ka=Ld,jf())})},Lu={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ka===Ld||Lu.applyArabicShaping!=null},isLoading:function(){return Ka===Rd},setState:function(N){Ka=N.pluginStatus,Xi=N.pluginURL},isParsed:function(){return Lu.applyArabicShaping!=null&&Lu.processBidirectionalText!=null&&Lu.processStyledBidirectionalText!=null},getPluginURL:function(){return Xi}},fs=function(N,G){this.zoom=N,G?(this.now=G.now,this.fadeDuration=G.fadeDuration,this.zoomHistory=G.zoomHistory,this.transition=G.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Fc,this.transition={})};fs.prototype.isSupportedScript=function(N){return function(G,fe){for(var Ae=0,Qe=G;Aethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:G+(1-G)*fe}:{fromScale:.5,toScale:1,t:1-(1-fe)*G}};var Qf=function(N,G){this.property=N,this.value=G,this.expression=function(fe,Ae){if(ep(fe))return new Bc(fe,Ae);if(Rp(fe)){var Qe=rf(fe,Ae);if(Qe.result==="error")throw new Error(Qe.value.map(function(ut){return ut.key+": "+ut.message}).join(", "));return Qe.value}var et=fe;return typeof fe=="string"&&Ae.type==="color"&&(et=Fr.parse(fe)),{kind:"constant",evaluate:function(){return et}}}(G===void 0?N.specification.default:G,N.specification)};Qf.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Qf.prototype.possiblyEvaluate=function(N,G,fe){return this.property.possiblyEvaluate(this,N,G,fe)};var dd=function(N){this.property=N,this.value=new Qf(N,void 0)};dd.prototype.transitioned=function(N,G){return new _h(this.property,this.value,G,x({},N.transition,this.transition),N.now)},dd.prototype.untransitioned=function(){return new _h(this.property,this.value,null,{},0)};var Hf=function(N){this._properties=N,this._values=Object.create(N.defaultTransitionablePropertyValues)};Hf.prototype.getValue=function(N){return I(this._values[N].value.value)},Hf.prototype.setValue=function(N,G){this._values.hasOwnProperty(N)||(this._values[N]=new dd(this._values[N].property)),this._values[N].value=new Qf(this._values[N].property,G===null?void 0:I(G))},Hf.prototype.getTransition=function(N){return I(this._values[N].transition)},Hf.prototype.setTransition=function(N,G){this._values.hasOwnProperty(N)||(this._values[N]=new dd(this._values[N].property)),this._values[N].transition=I(G)||void 0},Hf.prototype.serialize=function(){for(var N={},G=0,fe=Object.keys(this._values);Gthis.end)return this.prior=null,Qe;if(this.value.isDataDriven())return this.prior=null,Qe;if(Ae=1)return 1;var Bt=Tt*Tt,rn=Bt*Tt;return 4*(Tt<.5?rn:3*(Tt-Bt)+rn-.75)}(ut))}return Qe};var Gc=function(N){this._properties=N,this._values=Object.create(N.defaultTransitioningPropertyValues)};Gc.prototype.possiblyEvaluate=function(N,G,fe){for(var Ae=new Dd(this._properties),Qe=0,et=Object.keys(this._values);Qeet.zoomHistory.lastIntegerZoom?{from:fe,to:Ae}:{from:Qe,to:Ae}},G.prototype.interpolate=function(fe){return fe},G}(fa),Zf=function(N){this.specification=N};Zf.prototype.possiblyEvaluate=function(N,G,fe,Ae){if(N.value!==void 0){if(N.expression.kind==="constant"){var Qe=N.expression.evaluate(G,null,{},fe,Ae);return this._calculate(Qe,Qe,Qe,G)}return this._calculate(N.expression.evaluate(new fs(Math.floor(G.zoom-1),G)),N.expression.evaluate(new fs(Math.floor(G.zoom),G)),N.expression.evaluate(new fs(Math.floor(G.zoom+1),G)),G)}},Zf.prototype._calculate=function(N,G,fe,Ae){return Ae.zoom>Ae.zoomHistory.lastIntegerZoom?{from:N,to:G}:{from:fe,to:G}},Zf.prototype.interpolate=function(N){return N};var Zl=function(N){this.specification=N};Zl.prototype.possiblyEvaluate=function(N,G,fe,Ae){return!!N.expression.evaluate(G,null,{},fe,Ae)},Zl.prototype.interpolate=function(){return!1};var Jl=function(N){for(var G in this.properties=N,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],N){var fe=N[G];fe.specification.overridable&&this.overridableProperties.push(G);var Ae=this.defaultPropertyValues[G]=new Qf(fe,void 0),Qe=this.defaultTransitionablePropertyValues[G]=new dd(fe);this.defaultTransitioningPropertyValues[G]=Qe.untransitioned(),this.defaultPossiblyEvaluatedValues[G]=Ae.possiblyEvaluate({})}};pi("DataDrivenProperty",fa),pi("DataConstantProperty",Vi),pi("CrossFadedDataDrivenProperty",au),pi("CrossFadedProperty",Zf),pi("ColorRampProperty",Zl);var Bd="-transition",Qs=function(N){function G(fe,Ae){if(N.call(this),this.id=fe.id,this.type=fe.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},fe.type!=="custom"&&(this.metadata=fe.metadata,this.minzoom=fe.minzoom,this.maxzoom=fe.maxzoom,fe.type!=="background"&&(this.source=fe.source,this.sourceLayer=fe["source-layer"],this.filter=fe.filter),Ae.layout&&(this._unevaluatedLayout=new hd(Ae.layout)),Ae.paint)){for(var Qe in this._transitionablePaint=new Hf(Ae.paint),fe.paint)this.setPaintProperty(Qe,fe.paint[Qe],{validate:!1});for(var et in fe.layout)this.setLayoutProperty(et,fe.layout[et],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Dd(Ae.paint)}}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},G.prototype.getLayoutProperty=function(fe){return fe==="visibility"?this.visibility:this._unevaluatedLayout.getValue(fe)},G.prototype.setLayoutProperty=function(fe,Ae,Qe){if(Qe===void 0&&(Qe={}),Ae!=null){var et="layers."+this.id+".layout."+fe;if(this._validate(xh,et,fe,Ae,Qe))return}fe!=="visibility"?this._unevaluatedLayout.setValue(fe,Ae):this.visibility=Ae},G.prototype.getPaintProperty=function(fe){return L(fe,Bd)?this._transitionablePaint.getTransition(fe.slice(0,-11)):this._transitionablePaint.getValue(fe)},G.prototype.setPaintProperty=function(fe,Ae,Qe){if(Qe===void 0&&(Qe={}),Ae!=null){var et="layers."+this.id+".paint."+fe;if(this._validate(mu,et,fe,Ae,Qe))return!1}if(L(fe,Bd))return this._transitionablePaint.setTransition(fe.slice(0,-11),Ae||void 0),!1;var ut=this._transitionablePaint._values[fe],Tt=ut.property.specification["property-type"]==="cross-faded-data-driven",Bt=ut.value.isDataDriven(),rn=ut.value;this._transitionablePaint.setValue(fe,Ae),this._handleSpecialPaintPropertyUpdate(fe);var an=this._transitionablePaint._values[fe].value;return an.isDataDriven()||Bt||Tt||this._handleOverridablePaintPropertyUpdate(fe,rn,an)},G.prototype._handleSpecialPaintPropertyUpdate=function(fe){},G.prototype._handleOverridablePaintPropertyUpdate=function(fe,Ae,Qe){return!1},G.prototype.isHidden=function(fe){return!!(this.minzoom&&fe=this.maxzoom)||this.visibility==="none"},G.prototype.updateTransitions=function(fe){this._transitioningPaint=this._transitionablePaint.transitioned(fe,this._transitioningPaint)},G.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},G.prototype.recalculate=function(fe,Ae){fe.getCrossfadeParameters&&(this._crossfadeParameters=fe.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(fe,void 0,Ae)),this.paint=this._transitioningPaint.possiblyEvaluate(fe,void 0,Ae)},G.prototype.serialize=function(){var fe={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(fe.layout=fe.layout||{},fe.layout.visibility=this.visibility),k(fe,function(Ae,Qe){return!(Ae===void 0||Qe==="layout"&&!Object.keys(Ae).length||Qe==="paint"&&!Object.keys(Ae).length)})},G.prototype._validate=function(fe,Ae,Qe,et,ut){return ut===void 0&&(ut={}),(!ut||ut.validate!==!1)&&js(this,fe.call(wl,{key:Ae,layerType:this.type,objectKey:Qe,value:et,styleSpec:xt,style:{glyphs:!0,sprite:!0}}))},G.prototype.is3D=function(){return!1},G.prototype.isTileClipped=function(){return!1},G.prototype.hasOffscreenPass=function(){return!1},G.prototype.resize=function(){},G.prototype.isStateDependent=function(){for(var fe in this.paint._values){var Ae=this.paint.get(fe);if(Ae instanceof rl&&ud(Ae.property.specification)&&(Ae.value.kind==="source"||Ae.value.kind==="composite")&&Ae.value.isStateDependent)return!0}return!1},G}(Lt),kc={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Iu=function(N,G){this._structArray=N,this._pos1=G*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ea=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function El(N,G){G===void 0&&(G=1);var fe=0,Ae=0;return{members:N.map(function(Qe){var et,ut=(et=Qe.type,kc[et].BYTES_PER_ELEMENT),Tt=fe=Ol(fe,Math.max(G,ut)),Bt=Qe.components||1;return Ae=Math.max(Ae,ut),fe+=ut*Bt,{name:Qe.name,type:Qe.type,components:Bt,offset:Tt}}),size:Ol(fe,Math.max(Ae,G)),alignment:G}}function Ol(N,G){return Math.ceil(N/G)*G}Ea.serialize=function(N,G){return N._trim(),G&&(N.isTransferred=!0,G.push(N.arrayBuffer)),{length:N.length,arrayBuffer:N.arrayBuffer}},Ea.deserialize=function(N){var G=Object.create(this.prototype);return G.arrayBuffer=N.arrayBuffer,G.length=N.length,G.capacity=N.arrayBuffer.byteLength/G.bytesPerElement,G._refreshViews(),G},Ea.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ea.prototype.clear=function(){this.length=0},Ea.prototype.resize=function(N){this.reserve(N),this.length=N},Ea.prototype.reserve=function(N){if(N>this.capacity){this.capacity=Math.max(N,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var G=this.uint8;this._refreshViews(),G&&this.uint8.set(G)}},Ea.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Mi=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,fe,Ae)},G.prototype.emplace=function(fe,Ae,Qe){var et=2*fe;return this.int16[et+0]=Ae,this.int16[et+1]=Qe,fe},G}(Ea);Mi.prototype.bytesPerElement=4,pi("StructArrayLayout2i4",Mi);var kf=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et){var ut=this.length;return this.resize(ut+1),this.emplace(ut,fe,Ae,Qe,et)},G.prototype.emplace=function(fe,Ae,Qe,et,ut){var Tt=4*fe;return this.int16[Tt+0]=Ae,this.int16[Tt+1]=Qe,this.int16[Tt+2]=et,this.int16[Tt+3]=ut,fe},G}(Ea);kf.prototype.bytesPerElement=8,pi("StructArrayLayout4i8",kf);var Ot=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,fe,Ae,Qe,et,ut,Tt)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=6*fe;return this.int16[rn+0]=Ae,this.int16[rn+1]=Qe,this.int16[rn+2]=et,this.int16[rn+3]=ut,this.int16[rn+4]=Tt,this.int16[rn+5]=Bt,fe},G}(Ea);Ot.prototype.bytesPerElement=12,pi("StructArrayLayout2i4i12",Ot);var Mt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,fe,Ae,Qe,et,ut,Tt)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=4*fe,an=8*fe;return this.int16[rn+0]=Ae,this.int16[rn+1]=Qe,this.uint8[an+4]=et,this.uint8[an+5]=ut,this.uint8[an+6]=Tt,this.uint8[an+7]=Bt,fe},G}(Ea);Mt.prototype.bytesPerElement=8,pi("StructArrayLayout2i4ub8",Mt);var Ft=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,fe,Ae)},G.prototype.emplace=function(fe,Ae,Qe){var et=2*fe;return this.float32[et+0]=Ae,this.float32[et+1]=Qe,fe},G}(Ea);Ft.prototype.bytesPerElement=8,pi("StructArrayLayout2f8",Ft);var J=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n){var Dn=this.length;return this.resize(Dn+1),this.emplace(Dn,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn){var Cn=10*fe;return this.uint16[Cn+0]=Ae,this.uint16[Cn+1]=Qe,this.uint16[Cn+2]=et,this.uint16[Cn+3]=ut,this.uint16[Cn+4]=Tt,this.uint16[Cn+5]=Bt,this.uint16[Cn+6]=rn,this.uint16[Cn+7]=an,this.uint16[Cn+8]=_n,this.uint16[Cn+9]=Dn,fe},G}(Ea);J.prototype.bytesPerElement=20,pi("StructArrayLayout10ui20",J);var le=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn){var Jn=this.length;return this.resize(Jn+1),this.emplace(Jn,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn){var lr=12*fe;return this.int16[lr+0]=Ae,this.int16[lr+1]=Qe,this.int16[lr+2]=et,this.int16[lr+3]=ut,this.uint16[lr+4]=Tt,this.uint16[lr+5]=Bt,this.uint16[lr+6]=rn,this.uint16[lr+7]=an,this.int16[lr+8]=_n,this.int16[lr+9]=Dn,this.int16[lr+10]=Cn,this.int16[lr+11]=Jn,fe},G}(Ea);le.prototype.bytesPerElement=24,pi("StructArrayLayout4i4ui4i24",le);var ie=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=3*fe;return this.float32[ut+0]=Ae,this.float32[ut+1]=Qe,this.float32[ut+2]=et,fe},G}(Ea);ie.prototype.bytesPerElement=12,pi("StructArrayLayout3f12",ie);var V=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,fe)},G.prototype.emplace=function(fe,Ae){var Qe=1*fe;return this.uint32[Qe+0]=Ae,fe},G}(Ea);V.prototype.bytesPerElement=4,pi("StructArrayLayout1ul4",V);var ne=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an){var _n=this.length;return this.resize(_n+1),this.emplace(_n,fe,Ae,Qe,et,ut,Tt,Bt,rn,an)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n){var Dn=10*fe,Cn=5*fe;return this.int16[Dn+0]=Ae,this.int16[Dn+1]=Qe,this.int16[Dn+2]=et,this.int16[Dn+3]=ut,this.int16[Dn+4]=Tt,this.int16[Dn+5]=Bt,this.uint32[Cn+3]=rn,this.uint16[Dn+8]=an,this.uint16[Dn+9]=_n,fe},G}(Ea);ne.prototype.bytesPerElement=20,pi("StructArrayLayout6i1ul2ui20",ne);var ge=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,fe,Ae,Qe,et,ut,Tt)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=6*fe;return this.int16[rn+0]=Ae,this.int16[rn+1]=Qe,this.int16[rn+2]=et,this.int16[rn+3]=ut,this.int16[rn+4]=Tt,this.int16[rn+5]=Bt,fe},G}(Ea);ge.prototype.bytesPerElement=12,pi("StructArrayLayout2i2i2i12",ge);var xe=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut){var Tt=this.length;return this.resize(Tt+1),this.emplace(Tt,fe,Ae,Qe,et,ut)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt){var Bt=4*fe,rn=8*fe;return this.float32[Bt+0]=Ae,this.float32[Bt+1]=Qe,this.float32[Bt+2]=et,this.int16[rn+6]=ut,this.int16[rn+7]=Tt,fe},G}(Ea);xe.prototype.bytesPerElement=16,pi("StructArrayLayout2f1f2i16",xe);var Me=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et){var ut=this.length;return this.resize(ut+1),this.emplace(ut,fe,Ae,Qe,et)},G.prototype.emplace=function(fe,Ae,Qe,et,ut){var Tt=12*fe,Bt=3*fe;return this.uint8[Tt+0]=Ae,this.uint8[Tt+1]=Qe,this.float32[Bt+1]=et,this.float32[Bt+2]=ut,fe},G}(Ea);Me.prototype.bytesPerElement=12,pi("StructArrayLayout2ub2f12",Me);var Fe=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=3*fe;return this.uint16[ut+0]=Ae,this.uint16[ut+1]=Qe,this.uint16[ut+2]=et,fe},G}(Ea);Fe.prototype.bytesPerElement=6,pi("StructArrayLayout3ui6",Fe);var Je=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr){var Jr=this.length;return this.resize(Jr+1),this.emplace(Jr,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr){var uo=24*fe,ro=12*fe,Po=48*fe;return this.int16[uo+0]=Ae,this.int16[uo+1]=Qe,this.uint16[uo+2]=et,this.uint16[uo+3]=ut,this.uint32[ro+2]=Tt,this.uint32[ro+3]=Bt,this.uint32[ro+4]=rn,this.uint16[uo+10]=an,this.uint16[uo+11]=_n,this.uint16[uo+12]=Dn,this.float32[ro+7]=Cn,this.float32[ro+8]=Jn,this.uint8[Po+36]=lr,this.uint8[Po+37]=Ar,this.uint8[Po+38]=Or,this.uint32[ro+10]=jr,this.int16[uo+22]=Jr,fe},G}(Ea);Je.prototype.bytesPerElement=48,pi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Je);var rt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr,uo,ro,Po,gi,ni,Ti,vi,na,ea,La){var ca=this.length;return this.resize(ca+1),this.emplace(ca,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr,uo,ro,Po,gi,ni,Ti,vi,na,ea,La)},G.prototype.emplace=function(fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn,lr,Ar,Or,jr,Jr,uo,ro,Po,gi,ni,Ti,vi,na,ea,La,ca){var Zi=34*fe,Bs=17*fe;return this.int16[Zi+0]=Ae,this.int16[Zi+1]=Qe,this.int16[Zi+2]=et,this.int16[Zi+3]=ut,this.int16[Zi+4]=Tt,this.int16[Zi+5]=Bt,this.int16[Zi+6]=rn,this.int16[Zi+7]=an,this.uint16[Zi+8]=_n,this.uint16[Zi+9]=Dn,this.uint16[Zi+10]=Cn,this.uint16[Zi+11]=Jn,this.uint16[Zi+12]=lr,this.uint16[Zi+13]=Ar,this.uint16[Zi+14]=Or,this.uint16[Zi+15]=jr,this.uint16[Zi+16]=Jr,this.uint16[Zi+17]=uo,this.uint16[Zi+18]=ro,this.uint16[Zi+19]=Po,this.uint16[Zi+20]=gi,this.uint16[Zi+21]=ni,this.uint16[Zi+22]=Ti,this.uint32[Bs+12]=vi,this.float32[Bs+13]=na,this.float32[Bs+14]=ea,this.float32[Bs+15]=La,this.float32[Bs+16]=ca,fe},G}(Ea);rt.prototype.bytesPerElement=68,pi("StructArrayLayout8i15ui1ul4f68",rt);var dt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,fe)},G.prototype.emplace=function(fe,Ae){var Qe=1*fe;return this.float32[Qe+0]=Ae,fe},G}(Ea);dt.prototype.bytesPerElement=4,pi("StructArrayLayout1f4",dt);var mt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=3*fe;return this.int16[ut+0]=Ae,this.int16[ut+1]=Qe,this.int16[ut+2]=et,fe},G}(Ea);mt.prototype.bytesPerElement=6,pi("StructArrayLayout3i6",mt);var Et=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe){var et=this.length;return this.resize(et+1),this.emplace(et,fe,Ae,Qe)},G.prototype.emplace=function(fe,Ae,Qe,et){var ut=2*fe,Tt=4*fe;return this.uint32[ut+0]=Ae,this.uint16[Tt+2]=Qe,this.uint16[Tt+3]=et,fe},G}(Ea);Et.prototype.bytesPerElement=8,pi("StructArrayLayout1ul2ui8",Et);var Vt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,fe,Ae)},G.prototype.emplace=function(fe,Ae,Qe){var et=2*fe;return this.uint16[et+0]=Ae,this.uint16[et+1]=Qe,fe},G}(Ea);Vt.prototype.bytesPerElement=4,pi("StructArrayLayout2ui4",Vt);var jt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,fe)},G.prototype.emplace=function(fe,Ae){var Qe=1*fe;return this.uint16[Qe+0]=Ae,fe},G}(Ea);jt.prototype.bytesPerElement=2,pi("StructArrayLayout1ui2",jt);var Nt=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(fe,Ae,Qe,et){var ut=this.length;return this.resize(ut+1),this.emplace(ut,fe,Ae,Qe,et)},G.prototype.emplace=function(fe,Ae,Qe,et,ut){var Tt=4*fe;return this.float32[Tt+0]=Ae,this.float32[Tt+1]=Qe,this.float32[Tt+2]=et,this.float32[Tt+3]=ut,fe},G}(Ea);Nt.prototype.bytesPerElement=16,pi("StructArrayLayout4f16",Nt);var cn=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return fe.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},fe.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},fe.x1.get=function(){return this._structArray.int16[this._pos2+2]},fe.y1.get=function(){return this._structArray.int16[this._pos2+3]},fe.x2.get=function(){return this._structArray.int16[this._pos2+4]},fe.y2.get=function(){return this._structArray.int16[this._pos2+5]},fe.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},fe.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},fe.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},fe.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(G.prototype,fe),G}(Iu);cn.prototype.size=20;var sn=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new cn(this,fe)},G}(ne);pi("CollisionBoxArray",sn);var xn=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return fe.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},fe.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},fe.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},fe.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},fe.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},fe.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},fe.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},fe.segment.get=function(){return this._structArray.uint16[this._pos2+10]},fe.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},fe.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},fe.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},fe.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},fe.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},fe.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},fe.placedOrientation.set=function(Ae){this._structArray.uint8[this._pos1+37]=Ae},fe.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},fe.hidden.set=function(Ae){this._structArray.uint8[this._pos1+38]=Ae},fe.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},fe.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+10]=Ae},fe.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(G.prototype,fe),G}(Iu);xn.prototype.size=48;var pn=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new xn(this,fe)},G}(Je);pi("PlacedSymbolArray",pn);var Ln=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return fe.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},fe.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},fe.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},fe.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},fe.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},fe.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},fe.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},fe.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},fe.key.get=function(){return this._structArray.uint16[this._pos2+8]},fe.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},fe.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},fe.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},fe.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},fe.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},fe.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},fe.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},fe.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},fe.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},fe.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},fe.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},fe.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},fe.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},fe.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},fe.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},fe.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+12]=Ae},fe.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},fe.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},fe.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},fe.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(G.prototype,fe),G}(Iu);Ln.prototype.size=68;var On=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new Ln(this,fe)},G}(rt);pi("SymbolInstanceArray",On);var An=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.getoffsetX=function(fe){return this.float32[1*fe+0]},G}(dt);pi("GlyphOffsetArray",An);var Sn=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.getx=function(fe){return this.int16[3*fe+0]},G.prototype.gety=function(fe){return this.int16[3*fe+1]},G.prototype.gettileUnitDistanceFromAnchor=function(fe){return this.int16[3*fe+2]},G}(mt);pi("SymbolLineVertexArray",Sn);var rr=function(N){function G(){N.apply(this,arguments)}N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G;var fe={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return fe.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},fe.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},fe.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(G.prototype,fe),G}(Iu);rr.prototype.size=8;var Dr=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.get=function(fe){return new rr(this,fe)},G}(Et);pi("FeatureIndexArray",Dr);var Pr=El([{name:"a_pos",components:2,type:"Int16"}],4).members,Zr=function(N){N===void 0&&(N=[]),this.segments=N};function Mo(N,G){return 256*(N=S(Math.floor(N),0,255))+S(Math.floor(G),0,255)}Zr.prototype.prepareSegment=function(N,G,fe,Ae){var Qe=this.segments[this.segments.length-1];return N>Zr.MAX_VERTEX_ARRAY_LENGTH&&$("Max vertices per segment is "+Zr.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+N),(!Qe||Qe.vertexLength+N>Zr.MAX_VERTEX_ARRAY_LENGTH||Qe.sortKey!==Ae)&&(Qe={vertexOffset:G.length,primitiveOffset:fe.length,vertexLength:0,primitiveLength:0},Ae!==void 0&&(Qe.sortKey=Ae),this.segments.push(Qe)),Qe},Zr.prototype.get=function(){return this.segments},Zr.prototype.destroy=function(){for(var N=0,G=this.segments;N>>16)*Tt&65535)<<16)&4294967295)<<15|rn>>>17))*Bt+(((rn>>>16)*Bt&65535)<<16)&4294967295)<<13|et>>>19))+((5*(et>>>16)&65535)<<16)&4294967295))+((58964+(ut>>>16)&65535)<<16);switch(rn=0,Ae){case 3:rn^=(255&G.charCodeAt(an+2))<<16;case 2:rn^=(255&G.charCodeAt(an+1))<<8;case 1:et^=rn=(65535&(rn=(rn=(65535&(rn^=255&G.charCodeAt(an)))*Tt+(((rn>>>16)*Tt&65535)<<16)&4294967295)<<15|rn>>>17))*Bt+(((rn>>>16)*Bt&65535)<<16)&4294967295}return et^=G.length,et=2246822507*(65535&(et^=et>>>16))+((2246822507*(et>>>16)&65535)<<16)&4294967295,et=3266489909*(65535&(et^=et>>>13))+((3266489909*(et>>>16)&65535)<<16)&4294967295,(et^=et>>>16)>>>0}}),zo=O(function(N){N.exports=function(G,fe){for(var Ae,Qe=G.length,et=fe^Qe,ut=0;Qe>=4;)Ae=1540483477*(65535&(Ae=255&G.charCodeAt(ut)|(255&G.charCodeAt(++ut))<<8|(255&G.charCodeAt(++ut))<<16|(255&G.charCodeAt(++ut))<<24))+((1540483477*(Ae>>>16)&65535)<<16),et=1540483477*(65535&et)+((1540483477*(et>>>16)&65535)<<16)^(Ae=1540483477*(65535&(Ae^=Ae>>>24))+((1540483477*(Ae>>>16)&65535)<<16)),Qe-=4,++ut;switch(Qe){case 3:et^=(255&G.charCodeAt(ut+2))<<16;case 2:et^=(255&G.charCodeAt(ut+1))<<8;case 1:et=1540483477*(65535&(et^=255&G.charCodeAt(ut)))+((1540483477*(et>>>16)&65535)<<16)}return et=1540483477*(65535&(et^=et>>>13))+((1540483477*(et>>>16)&65535)<<16),(et^=et>>>15)>>>0}}),yi=vo,Si=vo,Hr=zo;yi.murmur3=Si,yi.murmur2=Hr;var Lo=function(){this.ids=[],this.positions=[],this.indexed=!1};Lo.prototype.add=function(N,G,fe,Ae){this.ids.push(Io(N)),this.positions.push(G,fe,Ae)},Lo.prototype.getPositions=function(N){for(var G=Io(N),fe=0,Ae=this.ids.length-1;fe>1;this.ids[Qe]>=G?Ae=Qe:fe=Qe+1}for(var et=[];this.ids[fe]===G;){var ut=this.positions[3*fe],Tt=this.positions[3*fe+1],Bt=this.positions[3*fe+2];et.push({index:ut,start:Tt,end:Bt}),fe++}return et},Lo.serialize=function(N,G){var fe=new Float64Array(N.ids),Ae=new Uint32Array(N.positions);return $i(fe,Ae,0,fe.length-1),G&&G.push(fe.buffer,Ae.buffer),{ids:fe,positions:Ae}},Lo.deserialize=function(N){var G=new Lo;return G.ids=N.ids,G.positions=N.positions,G.indexed=!0,G};var ki=Math.pow(2,53)-1;function Io(N){var G=+N;return!isNaN(G)&&G<=ki?G:yi(String(N))}function $i(N,G,fe,Ae){for(;fe>1],et=fe-1,ut=Ae+1;;){do et++;while(N[et]Qe);if(et>=ut)break;Ui(N,et,ut),Ui(G,3*et,3*ut),Ui(G,3*et+1,3*ut+1),Ui(G,3*et+2,3*ut+2)}ut-feut.x+1||Btut.y+1)&&$("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return fe}function tc(N,G){return{type:N.type,id:N.id,properties:N.properties,geometry:G?qf(N):[]}}function Wf(N,G,fe,Ae,Qe){N.emplaceBack(2*G+(Ae+1)/2,2*fe+(Qe+1)/2)}var Rl=function(N){this.zoom=N.zoom,this.overscaling=N.overscaling,this.layers=N.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=N.index,this.hasPattern=!1,this.layoutVertexArray=new Mi,this.indexArray=new Fe,this.segments=new Zr,this.programConfigurations=new Tc(N.layers,N.zoom),this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function cg(N,G){for(var fe=0;fe1){if(eh(N,G))return!0;for(var Ae=0;Ae1?N.distSqr(fe):N.distSqr(fe.sub(G)._mult(Qe)._add(G))}function k1(N,G){for(var fe,Ae,Qe,et=!1,ut=0;utG.y!=Qe.y>G.y&&G.x<(Qe.x-Ae.x)*(G.y-Ae.y)/(Qe.y-Ae.y)+Ae.x&&(et=!et);return et}function oc(N,G){for(var fe=!1,Ae=0,Qe=N.length-1;AeG.y!=ut.y>G.y&&G.x<(ut.x-et.x)*(G.y-et.y)/(ut.y-et.y)+et.x&&(fe=!fe)}return fe}function _m(N,G,fe){var Ae=fe[0],Qe=fe[2];if(N.xQe.x&&G.x>Qe.x||N.yQe.y&&G.y>Qe.y)return!1;var et=Q(N,G,fe[0]);return et!==Q(N,G,fe[1])||et!==Q(N,G,fe[2])||et!==Q(N,G,fe[3])}function Yg(N,G,fe){var Ae=G.paint.get(N).value;return Ae.kind==="constant"?Ae.value:fe.programConfigurations.get(G.id).getMaxValue(N)}function wm(N){return Math.sqrt(N[0]*N[0]+N[1]*N[1])}function ub(N,G,fe,Ae,Qe){if(!G[0]&&!G[1])return N;var et=a.convert(G)._mult(Qe);fe==="viewport"&&et._rotate(-Ae);for(var ut=[],Tt=0;Tt=Hs||an<0||an>=Hs)){var _n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,N.sortKey),Dn=_n.vertexLength;Wf(this.layoutVertexArray,rn,an,-1,-1),Wf(this.layoutVertexArray,rn,an,1,-1),Wf(this.layoutVertexArray,rn,an,1,1),Wf(this.layoutVertexArray,rn,an,-1,1),this.indexArray.emplaceBack(Dn,Dn+1,Dn+2),this.indexArray.emplaceBack(Dn,Dn+3,Dn+2),_n.vertexLength+=4,_n.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,N,fe,{},Ae)},pi("CircleBucket",Rl,{omit:["layers"]});var Oh=new Jl({"circle-sort-key":new fa(xt.layout_circle["circle-sort-key"])}),Ex={paint:new Jl({"circle-radius":new fa(xt.paint_circle["circle-radius"]),"circle-color":new fa(xt.paint_circle["circle-color"]),"circle-blur":new fa(xt.paint_circle["circle-blur"]),"circle-opacity":new fa(xt.paint_circle["circle-opacity"]),"circle-translate":new Vi(xt.paint_circle["circle-translate"]),"circle-translate-anchor":new Vi(xt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Vi(xt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Vi(xt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new fa(xt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new fa(xt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new fa(xt.paint_circle["circle-stroke-opacity"])}),layout:Oh},Tf=typeof Float32Array<"u"?Float32Array:Array;function Hv(N){return N[0]=1,N[1]=0,N[2]=0,N[3]=0,N[4]=0,N[5]=1,N[6]=0,N[7]=0,N[8]=0,N[9]=0,N[10]=1,N[11]=0,N[12]=0,N[13]=0,N[14]=0,N[15]=1,N}function Om(N,G,fe){var Ae=G[0],Qe=G[1],et=G[2],ut=G[3],Tt=G[4],Bt=G[5],rn=G[6],an=G[7],_n=G[8],Dn=G[9],Cn=G[10],Jn=G[11],lr=G[12],Ar=G[13],Or=G[14],jr=G[15],Jr=fe[0],uo=fe[1],ro=fe[2],Po=fe[3];return N[0]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[1]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[2]=Jr*et+uo*rn+ro*Cn+Po*Or,N[3]=Jr*ut+uo*an+ro*Jn+Po*jr,Jr=fe[4],uo=fe[5],ro=fe[6],Po=fe[7],N[4]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[5]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[6]=Jr*et+uo*rn+ro*Cn+Po*Or,N[7]=Jr*ut+uo*an+ro*Jn+Po*jr,Jr=fe[8],uo=fe[9],ro=fe[10],Po=fe[11],N[8]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[9]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[10]=Jr*et+uo*rn+ro*Cn+Po*Or,N[11]=Jr*ut+uo*an+ro*Jn+Po*jr,Jr=fe[12],uo=fe[13],ro=fe[14],Po=fe[15],N[12]=Jr*Ae+uo*Tt+ro*_n+Po*lr,N[13]=Jr*Qe+uo*Bt+ro*Dn+Po*Ar,N[14]=Jr*et+uo*rn+ro*Cn+Po*Or,N[15]=Jr*ut+uo*an+ro*Jn+Po*jr,N}Math.hypot||(Math.hypot=function(){for(var N=arguments,G=0,fe=arguments.length;fe--;)G+=N[fe]*N[fe];return Math.sqrt(G)});var Sm=Om,ap,Bp=function(N,G,fe){return N[0]=G[0]-fe[0],N[1]=G[1]-fe[1],N[2]=G[2]-fe[2],N};function P0(N,G,fe){var Ae=G[0],Qe=G[1],et=G[2],ut=G[3];return N[0]=fe[0]*Ae+fe[4]*Qe+fe[8]*et+fe[12]*ut,N[1]=fe[1]*Ae+fe[5]*Qe+fe[9]*et+fe[13]*ut,N[2]=fe[2]*Ae+fe[6]*Qe+fe[10]*et+fe[14]*ut,N[3]=fe[3]*Ae+fe[7]*Qe+fe[11]*et+fe[15]*ut,N}ap=new Tf(3),Tf!=Float32Array&&(ap[0]=0,ap[1]=0,ap[2]=0),function(){var N=new Tf(4);Tf!=Float32Array&&(N[0]=0,N[1]=0,N[2]=0,N[3]=0)}();var ug=function(N){var G=N[0],fe=N[1];return G*G+fe*fe},Zv=(function(){var N=new Tf(2);Tf!=Float32Array&&(N[0]=0,N[1]=0)}(),function(N){function G(fe){N.call(this,fe,Ex)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.createBucket=function(fe){return new Rl(fe)},G.prototype.queryRadius=function(fe){var Ae=fe;return Yg("circle-radius",this,Ae)+Yg("circle-stroke-width",this,Ae)+wm(this.paint.get("circle-translate"))},G.prototype.queryIntersectsFeature=function(fe,Ae,Qe,et,ut,Tt,Bt,rn){for(var an=ub(fe,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Tt.angle,Bt),_n=this.paint.get("circle-radius").evaluate(Ae,Qe)+this.paint.get("circle-stroke-width").evaluate(Ae,Qe),Dn=this.paint.get("circle-pitch-alignment")==="map",Cn=Dn?an:function(gi,ni){return gi.map(function(Ti){return R0(Ti,ni)})}(an,rn),Jn=Dn?_n*Bt:_n,lr=0,Ar=et;lrN.width||Qe.height>N.height||fe.x>N.width-Qe.width||fe.y>N.height-Qe.height)throw new RangeError("out of range source coordinates for image copy");if(Qe.width>G.width||Qe.height>G.height||Ae.x>G.width-Qe.width||Ae.y>G.height-Qe.height)throw new RangeError("out of range destination coordinates for image copy");for(var ut=N.data,Tt=G.data,Bt=0;Bt80*fe){Ae=et=N[0],Qe=ut=N[1];for(var Jn=fe;Jn<_n;Jn+=fe)(Tt=N[Jn])et&&(et=Tt),Bt>ut&&(ut=Bt);rn=(rn=Math.max(et-Ae,ut-Qe))!==0?1/rn:0}return Kg(Dn,Cn,fe,Ae,Qe,rn),Cn}function Px(N,G,fe,Ae,Qe){var et,ut;if(Qe===pl(N,G,fe,Ae)>0)for(et=G;et=G;et-=Ae)ut=hb(et,N[et],N[et+1],ut);return ut&&Cm(ut,ut.next)&&(A1(ut),ut=ut.next),ut}function zp(N,G){if(!N)return N;G||(G=N);var fe,Ae=N;do if(fe=!1,Ae.steiner||!Cm(Ae,Ae.next)&&xu(Ae.prev,Ae,Ae.next)!==0)Ae=Ae.next;else{if(A1(Ae),(Ae=G=Ae.prev)===Ae.next)break;fe=!0}while(fe||Ae!==G);return G}function Kg(N,G,fe,Ae,Qe,et,ut){if(N){!ut&&et&&function(an,_n,Dn,Cn){var Jn=an;do Jn.z===null&&(Jn.z=Jg(Jn.x,Jn.y,_n,Dn,Cn)),Jn.prevZ=Jn.prev,Jn.nextZ=Jn.next,Jn=Jn.next;while(Jn!==an);Jn.prevZ.nextZ=null,Jn.prevZ=null,function(lr){var Ar,Or,jr,Jr,uo,ro,Po,gi,ni=1;do{for(Or=lr,lr=null,uo=null,ro=0;Or;){for(ro++,jr=Or,Po=0,Ar=0;Ar0||gi>0&&jr;)Po!==0&&(gi===0||!jr||Or.z<=jr.z)?(Jr=Or,Or=Or.nextZ,Po--):(Jr=jr,jr=jr.nextZ,gi--),uo?uo.nextZ=Jr:lr=Jr,Jr.prevZ=uo,uo=Jr;Or=jr}uo.nextZ=null,ni*=2}while(ro>1)}(Jn)}(N,Ae,Qe,et);for(var Tt,Bt,rn=N;N.prev!==N.next;)if(Tt=N.prev,Bt=N.next,et?T1(N,Ae,Qe,et):M_(N))G.push(Tt.i/fe),G.push(N.i/fe),G.push(Bt.i/fe),A1(N),N=Bt.next,rn=Bt.next;else if((N=Bt)===rn){ut?ut===1?Kg(N=Tm(zp(N),G,fe),G,fe,Ae,Qe,et,2):ut===2&&zd(N,G,fe,Ae,Qe,et):Kg(zp(N),G,fe,Ae,Qe,et,1);break}}}function M_(N){var G=N.prev,fe=N,Ae=N.next;if(xu(G,fe,Ae)>=0)return!1;for(var Qe=N.next.next;Qe!==N.prev;){if(C1(G.x,G.y,fe.x,fe.y,Ae.x,Ae.y,Qe.x,Qe.y)&&xu(Qe.prev,Qe,Qe.next)>=0)return!1;Qe=Qe.next}return!0}function T1(N,G,fe,Ae){var Qe=N.prev,et=N,ut=N.next;if(xu(Qe,et,ut)>=0)return!1;for(var Tt=Qe.xet.x?Qe.x>ut.x?Qe.x:ut.x:et.x>ut.x?et.x:ut.x,an=Qe.y>et.y?Qe.y>ut.y?Qe.y:ut.y:et.y>ut.y?et.y:ut.y,_n=Jg(Tt,Bt,G,fe,Ae),Dn=Jg(rn,an,G,fe,Ae),Cn=N.prevZ,Jn=N.nextZ;Cn&&Cn.z>=_n&&Jn&&Jn.z<=Dn;){if(Cn!==N.prev&&Cn!==N.next&&C1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Cn.x,Cn.y)&&xu(Cn.prev,Cn,Cn.next)>=0||(Cn=Cn.prevZ,Jn!==N.prev&&Jn!==N.next&&C1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Jn.x,Jn.y)&&xu(Jn.prev,Jn,Jn.next)>=0))return!1;Jn=Jn.nextZ}for(;Cn&&Cn.z>=_n;){if(Cn!==N.prev&&Cn!==N.next&&C1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Cn.x,Cn.y)&&xu(Cn.prev,Cn,Cn.next)>=0)return!1;Cn=Cn.prevZ}for(;Jn&&Jn.z<=Dn;){if(Jn!==N.prev&&Jn!==N.next&&C1(Qe.x,Qe.y,et.x,et.y,ut.x,ut.y,Jn.x,Jn.y)&&xu(Jn.prev,Jn,Jn.next)>=0)return!1;Jn=Jn.nextZ}return!0}function Tm(N,G,fe){var Ae=N;do{var Qe=Ae.prev,et=Ae.next.next;!Cm(Qe,et)&&D0(Qe,Ae,Ae.next,et)&&Fp(Qe,et)&&Fp(et,Qe)&&(G.push(Qe.i/fe),G.push(Ae.i/fe),G.push(et.i/fe),A1(Ae),A1(Ae.next),Ae=N=et),Ae=Ae.next}while(Ae!==N);return zp(Ae)}function zd(N,G,fe,Ae,Qe,et){var ut=N;do{for(var Tt=ut.next.next;Tt!==ut.prev;){if(ut.i!==Tt.i&&zO(ut,Tt)){var Bt=qv(ut,Tt);return ut=zp(ut,ut.next),Bt=zp(Bt,Bt.next),Kg(ut,G,fe,Ae,Qe,et),void Kg(Bt,G,fe,Ae,Qe,et)}Tt=Tt.next}ut=ut.next}while(ut!==N)}function fp(N,G){return N.x-G.x}function I0(N,G){if(G=function(Ae,Qe){var et,ut=Qe,Tt=Ae.x,Bt=Ae.y,rn=-1/0;do{if(Bt<=ut.y&&Bt>=ut.next.y&&ut.next.y!==ut.y){var an=ut.x+(Bt-ut.y)*(ut.next.x-ut.x)/(ut.next.y-ut.y);if(an<=Tt&&an>rn){if(rn=an,an===Tt){if(Bt===ut.y)return ut;if(Bt===ut.next.y)return ut.next}et=ut.x=ut.x&&ut.x>=Cn&&Tt!==ut.x&&C1(Btet.x||ut.x===et.x&&E_(et,ut)))&&(et=ut,lr=_n)),ut=ut.next;while(ut!==Dn);return et}(N,G)){var fe=qv(G,N);zp(G,G.next),zp(fe,fe.next)}}function E_(N,G){return xu(N.prev,N,G.prev)<0&&xu(G.next,N,N.next)<0}function Jg(N,G,fe,Ae,Qe){return(N=1431655765&((N=858993459&((N=252645135&((N=16711935&((N=32767*(N-fe)*Qe)|N<<8))|N<<4))|N<<2))|N<<1))|(G=1431655765&((G=858993459&((G=252645135&((G=16711935&((G=32767*(G-Ae)*Qe)|G<<8))|G<<4))|G<<2))|G<<1))<<1}function P_(N){var G=N,fe=N;do(G.x=0&&(N-ut)*(Ae-Tt)-(fe-ut)*(G-Tt)>=0&&(fe-ut)*(et-Tt)-(Qe-ut)*(Ae-Tt)>=0}function zO(N,G){return N.next.i!==G.i&&N.prev.i!==G.i&&!function(fe,Ae){var Qe=fe;do{if(Qe.i!==fe.i&&Qe.next.i!==fe.i&&Qe.i!==Ae.i&&Qe.next.i!==Ae.i&&D0(Qe,Qe.next,fe,Ae))return!0;Qe=Qe.next}while(Qe!==fe);return!1}(N,G)&&(Fp(N,G)&&Fp(G,N)&&function(fe,Ae){var Qe=fe,et=!1,ut=(fe.x+Ae.x)/2,Tt=(fe.y+Ae.y)/2;do Qe.y>Tt!=Qe.next.y>Tt&&Qe.next.y!==Qe.y&&ut<(Qe.next.x-Qe.x)*(Tt-Qe.y)/(Qe.next.y-Qe.y)+Qe.x&&(et=!et),Qe=Qe.next;while(Qe!==fe);return et}(N,G)&&(xu(N.prev,N,G.prev)||xu(N,G.prev,G))||Cm(N,G)&&xu(N.prev,N,N.next)>0&&xu(G.prev,G,G.next)>0)}function xu(N,G,fe){return(G.y-N.y)*(fe.x-G.x)-(G.x-N.x)*(fe.y-G.y)}function Cm(N,G){return N.x===G.x&&N.y===G.y}function D0(N,G,fe,Ae){var Qe=Ri(xu(N,G,fe)),et=Ri(xu(N,G,Ae)),ut=Ri(xu(fe,Ae,N)),Tt=Ri(xu(fe,Ae,G));return Qe!==et&&ut!==Tt||!(Qe!==0||!Sa(N,fe,G))||!(et!==0||!Sa(N,Ae,G))||!(ut!==0||!Sa(fe,N,Ae))||!(Tt!==0||!Sa(fe,G,Ae))}function Sa(N,G,fe){return G.x<=Math.max(N.x,fe.x)&&G.x>=Math.min(N.x,fe.x)&&G.y<=Math.max(N.y,fe.y)&&G.y>=Math.min(N.y,fe.y)}function Ri(N){return N>0?1:N<0?-1:0}function Fp(N,G){return xu(N.prev,N,N.next)<0?xu(N,G,N.next)>=0&&xu(N,N.prev,G)>=0:xu(N,G,N.prev)<0||xu(N,N.next,G)<0}function qv(N,G){var fe=new Np(N.i,N.x,N.y),Ae=new Np(G.i,G.x,G.y),Qe=N.next,et=G.prev;return N.next=G,G.prev=N,fe.next=Qe,Qe.prev=fe,Ae.next=fe,fe.prev=Ae,et.next=Ae,Ae.prev=et,Ae}function hb(N,G,fe,Ae){var Qe=new Np(N,G,fe);return Ae?(Qe.next=Ae.next,Qe.prev=Ae,Ae.next.prev=Qe,Ae.next=Qe):(Qe.prev=Qe,Qe.next=Qe),Qe}function A1(N){N.next.prev=N.prev,N.prev.next=N.next,N.prevZ&&(N.prevZ.nextZ=N.nextZ),N.nextZ&&(N.nextZ.prevZ=N.prevZ)}function Np(N,G,fe){this.i=N,this.x=G,this.y=fe,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function pl(N,G,fe,Ae){for(var Qe=0,et=G,ut=fe-Ae;etfe;){if(Ae-fe>600){var et=Ae-fe+1,ut=G-fe+1,Tt=Math.log(et),Bt=.5*Math.exp(2*Tt/3),rn=.5*Math.sqrt(Tt*Bt*(et-Bt)/et)*(ut-et/2<0?-1:1);Rx(N,G,Math.max(fe,Math.floor(G-ut*Bt/et+rn)),Math.min(Ae,Math.floor(G+(et-ut)*Bt/et+rn)),Qe)}var an=N[G],_n=fe,Dn=Ae;for(B0(N,fe,G),Qe(N[Ae],an)>0&&B0(N,fe,Ae);_n0;)Dn--}Qe(N[fe],an)===0?B0(N,fe,Dn):B0(N,++Dn,Ae),Dn<=G&&(fe=Dn+1),G<=Dn&&(Ae=Dn-1)}}function B0(N,G,fe){var Ae=N[G];N[G]=N[fe],N[fe]=Ae}function fo(N,G){return NG?1:0}function e0(N,G){var fe=N.length;if(fe<=1)return[N];for(var Ae,Qe,et=[],ut=0;ut1)for(var Bt=0;Bt0&&(Ae+=N[Qe-1].length,fe.holes.push(Ae))}return fe},up.default=Xf;var Fd=function(N){this.zoom=N.zoom,this.overscaling=N.overscaling,this.layers=N.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=N.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mi,this.indexArray=new Fe,this.indexArray2=new Vt,this.programConfigurations=new Tc(N.layers,N.zoom),this.segments=new Zr,this.segments2=new Zr,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};Fd.prototype.populate=function(N,G,fe){this.hasPattern=fg("fill",this.layers,G);for(var Ae=this.layers[0].layout.get("fill-sort-key"),Qe=[],et=0,ut=N;et>3}if(Qe--,Ae===1||Ae===2)et+=N.readSVarint(),ut+=N.readSVarint(),Ae===1&&(G&&Tt.push(G),G=[]),G.push(new a(et,ut));else{if(Ae!==7)throw new Error("unknown command "+Ae);G&&G.push(G[0].clone())}}return G&&Tt.push(G),Tt},Sh.prototype.bbox=function(){var N=this._pbf;N.pos=this._geometry;for(var G=N.readVarint()+N.pos,fe=1,Ae=0,Qe=0,et=0,ut=1/0,Tt=-1/0,Bt=1/0,rn=-1/0;N.pos>3}if(Ae--,fe===1||fe===2)(Qe+=N.readSVarint())Tt&&(Tt=Qe),(et+=N.readSVarint())rn&&(rn=et);else if(fe!==7)throw new Error("unknown command "+fe)}return[ut,Bt,Tt,rn]},Sh.prototype.toGeoJSON=function(N,G,fe){var Ae,Qe,et=this.extent*Math.pow(2,fe),ut=this.extent*N,Tt=this.extent*G,Bt=this.loadGeometry(),rn=Sh.types[this.type];function an(Cn){for(var Jn=0;Jn>3;Qe=ut===1?Ae.readString():ut===2?Ae.readFloat():ut===3?Ae.readDouble():ut===4?Ae.readVarint64():ut===5?Ae.readVarint():ut===6?Ae.readSVarint():ut===7?Ae.readBoolean():null}return Qe}(fe))}function pb(N,G,fe){if(N===3){var Ae=new Lx(fe,fe.readVarint()+fe.pos);Ae.length&&(G[Ae.name]=Ae)}}Yv.prototype.feature=function(N){if(N<0||N>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[N];var G=this._pbf.readVarint()+this._pbf.pos;return new Ll(this._pbf,G,this.extent,this._keys,this._values)};var Cf={VectorTile:function(N,G){this.layers=N.readFields(pb,{},G)},VectorTileFeature:Ll,VectorTileLayer:Lx},$O=Cf.VectorTileFeature.types,M1=Math.pow(2,13);function E1(N,G,fe,Ae,Qe,et,ut,Tt){N.emplaceBack(G,fe,2*Math.floor(Ae*M1)+ut,Qe*M1*2,et*M1*2,Math.round(Tt))}var md=function(N){this.zoom=N.zoom,this.overscaling=N.overscaling,this.layers=N.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=N.index,this.hasPattern=!1,this.layoutVertexArray=new Ot,this.indexArray=new Fe,this.programConfigurations=new Tc(N.layers,N.zoom),this.segments=new Zr,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function D_(N,G){return N.x===G.x&&(N.x<0||N.x>Hs)||N.y===G.y&&(N.y<0||N.y>Hs)}md.prototype.populate=function(N,G,fe){this.features=[],this.hasPattern=fg("fill-extrusion",this.layers,G);for(var Ae=0,Qe=N;AeHs})||Bs.every(function(Ja){return Ja.y<0})||Bs.every(function(Ja){return Ja.y>Hs})))for(var lr=0,Ar=0;Ar=1){var jr=Jn[Ar-1];if(!D_(Or,jr)){_n.vertexLength+4>Zr.MAX_VERTEX_ARRAY_LENGTH&&(_n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Jr=Or.sub(jr)._perp()._unit(),uo=jr.dist(Or);lr+uo>32768&&(lr=0),E1(this.layoutVertexArray,Or.x,Or.y,Jr.x,Jr.y,0,0,lr),E1(this.layoutVertexArray,Or.x,Or.y,Jr.x,Jr.y,0,1,lr),lr+=uo,E1(this.layoutVertexArray,jr.x,jr.y,Jr.x,Jr.y,0,0,lr),E1(this.layoutVertexArray,jr.x,jr.y,Jr.x,Jr.y,0,1,lr);var ro=_n.vertexLength;this.indexArray.emplaceBack(ro,ro+2,ro+1),this.indexArray.emplaceBack(ro+1,ro+2,ro+3),_n.vertexLength+=4,_n.primitiveLength+=2}}}}if(_n.vertexLength+Bt>Zr.MAX_VERTEX_ARRAY_LENGTH&&(_n=this.segments.prepareSegment(Bt,this.layoutVertexArray,this.indexArray)),$O[N.type]==="Polygon"){for(var Po=[],gi=[],ni=_n.vertexLength,Ti=0,vi=Tt;Ti=2&&N[Bt-1].equals(N[Bt-2]);)Bt--;for(var rn=0;rn0;if(gi&&Or>rn){var Ti=an.dist(Cn);if(Ti>2*_n){var vi=an.sub(an.sub(Cn)._mult(_n/Ti)._round());this.updateDistance(Cn,vi),this.addCurrentVertex(vi,lr,0,0,Dn),Cn=vi}}var na=Cn&&Jn,ea=na?fe:Tt?"butt":Ae;if(na&&ea==="round"&&(roQe&&(ea="bevel"),ea==="bevel"&&(ro>2&&(ea="flipbevel"),ro100)jr=Ar.mult(-1);else{var La=ro*lr.add(Ar).mag()/lr.sub(Ar).mag();jr._perp()._mult(La*(ni?-1:1))}this.addCurrentVertex(an,jr,0,0,Dn),this.addCurrentVertex(an,jr.mult(-1),0,0,Dn)}else if(ea==="bevel"||ea==="fakeround"){var ca=-Math.sqrt(ro*ro-1),Zi=ni?ca:0,Bs=ni?0:ca;if(Cn&&this.addCurrentVertex(an,lr,Zi,Bs,Dn),ea==="fakeround")for(var Ja=Math.round(180*Po/Math.PI/20),Vl=1;Vl2*_n){var Fs=an.add(Jn.sub(an)._mult(_n/aa)._round());this.updateDistance(an,Fs),this.addCurrentVertex(Fs,Ar,0,0,Dn),an=Fs}}}}},gd.prototype.addCurrentVertex=function(N,G,fe,Ae,Qe,et){et===void 0&&(et=!1);var ut=G.x+G.y*fe,Tt=G.y-G.x*fe,Bt=-G.x+G.y*Ae,rn=-G.y-G.x*Ae;this.addHalfVertex(N,ut,Tt,et,!1,fe,Qe),this.addHalfVertex(N,Bt,rn,et,!0,-Ae,Qe),this.distance>mb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(N,G,fe,Ae,Qe,et))},gd.prototype.addHalfVertex=function(N,G,fe,Ae,Qe,et,ut){var Tt=N.x,Bt=N.y,rn=.5*(this.lineClips?this.scaledDistance*(mb-1):this.scaledDistance);if(this.layoutVertexArray.emplaceBack((Tt<<1)+(Ae?1:0),(Bt<<1)+(Qe?1:0),Math.round(63*G)+128,Math.round(63*fe)+128,1+(et===0?0:et<0?-1:1)|(63&rn)<<2,rn>>6),this.lineClips){var an=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(an,this.lineClipsArray.length)}var _n=ut.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,_n),ut.primitiveLength++),Qe?this.e2=_n:this.e1=_n},gd.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},gd.prototype.updateDistance=function(N,G){this.distance+=N.dist(G),this.updateScaledDistance()},pi("LineBucket",gd,{omit:["layers","patternFeatures"]});var Nl=new Jl({"line-cap":new Vi(xt.layout_line["line-cap"]),"line-join":new fa(xt.layout_line["line-join"]),"line-miter-limit":new Vi(xt.layout_line["line-miter-limit"]),"line-round-limit":new Vi(xt.layout_line["line-round-limit"]),"line-sort-key":new fa(xt.layout_line["line-sort-key"])}),dg={paint:new Jl({"line-opacity":new fa(xt.paint_line["line-opacity"]),"line-color":new fa(xt.paint_line["line-color"]),"line-translate":new Vi(xt.paint_line["line-translate"]),"line-translate-anchor":new Vi(xt.paint_line["line-translate-anchor"]),"line-width":new fa(xt.paint_line["line-width"]),"line-gap-width":new fa(xt.paint_line["line-gap-width"]),"line-offset":new fa(xt.paint_line["line-offset"]),"line-blur":new fa(xt.paint_line["line-blur"]),"line-dasharray":new Zf(xt.paint_line["line-dasharray"]),"line-pattern":new au(xt.paint_line["line-pattern"]),"line-gradient":new Zl(xt.paint_line["line-gradient"])}),layout:Nl},Dx=function(N){function G(){N.apply(this,arguments)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.possiblyEvaluate=function(fe,Ae){return Ae=new fs(Math.floor(Ae.zoom),{now:Ae.now,fadeDuration:Ae.fadeDuration,zoomHistory:Ae.zoomHistory,transition:Ae.transition}),N.prototype.possiblyEvaluate.call(this,fe,Ae)},G.prototype.evaluate=function(fe,Ae,Qe,et){return Ae=x({},Ae,{zoom:Math.floor(Ae.zoom)}),N.prototype.evaluate.call(this,fe,Ae,Qe,et)},G}(fa),UO=new Dx(dg.paint.properties["line-width"].specification);UO.useIntegerZoom=!0;var t0=function(N){function G(fe){N.call(this,fe,dg),this.gradientVersion=0}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype._handleSpecialPaintPropertyUpdate=function(fe){if(fe==="line-gradient"){var Ae=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=Ae._styleExpression.expression instanceof ko,this.gradientVersion=(this.gradientVersion+1)%m}},G.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},G.prototype.recalculate=function(fe,Ae){N.prototype.recalculate.call(this,fe,Ae),this.paint._values["line-floorwidth"]=UO.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,fe)},G.prototype.createBucket=function(fe){return new gd(fe)},G.prototype.queryRadius=function(fe){var Ae=fe,Qe=gb(Yg("line-width",this,Ae),Yg("line-gap-width",this,Ae)),et=Yg("line-offset",this,Ae);return Qe/2+Math.abs(et)+wm(this.paint.get("line-translate"))},G.prototype.queryIntersectsFeature=function(fe,Ae,Qe,et,ut,Tt,Bt){var rn=ub(fe,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Tt.angle,Bt),an=Bt/2*gb(this.paint.get("line-width").evaluate(Ae,Qe),this.paint.get("line-gap-width").evaluate(Ae,Qe)),_n=this.paint.get("line-offset").evaluate(Ae,Qe);return _n&&(et=function(Dn,Cn){for(var Jn=[],lr=new a(0,0),Ar=0;Ar=3){for(var Or=0;Or0?G+2*N:N}var Mm=El([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),jO=El([{name:"a_projected_pos",components:3,type:"Float32"}],4),z_=(El([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),El([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Sl=(El([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),El([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Kv=El([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function fc(N,G,fe){return N.sections.forEach(function(Ae){Ae.text=function(Qe,et,ut){var Tt=et.layout.get("text-transform").evaluate(ut,{});return Tt==="uppercase"?Qe=Qe.toLocaleUpperCase():Tt==="lowercase"&&(Qe=Qe.toLocaleLowerCase()),Lu.applyArabicShaping&&(Qe=Lu.applyArabicShaping(Qe)),Qe}(Ae.text,G,fe)}),N}El([{name:"triangle",components:3,type:"Uint16"}]),El([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),El([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),El([{type:"Float32",name:"offsetX"}]),El([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Jv={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},$l=24,P1=function(N,G,fe,Ae,Qe){var et,ut,Tt=8*Qe-Ae-1,Bt=(1<>1,an=-7,_n=fe?Qe-1:0,Dn=fe?-1:1,Cn=N[G+_n];for(_n+=Dn,et=Cn&(1<<-an)-1,Cn>>=-an,an+=Tt;an>0;et=256*et+N[G+_n],_n+=Dn,an-=8);for(ut=et&(1<<-an)-1,et>>=-an,an+=Ae;an>0;ut=256*ut+N[G+_n],_n+=Dn,an-=8);if(et===0)et=1-rn;else{if(et===Bt)return ut?NaN:1/0*(Cn?-1:1);ut+=Math.pow(2,Ae),et-=rn}return(Cn?-1:1)*ut*Math.pow(2,et-Ae)},th=function(N,G,fe,Ae,Qe,et){var ut,Tt,Bt,rn=8*et-Qe-1,an=(1<>1,Dn=Qe===23?Math.pow(2,-24)-Math.pow(2,-77):0,Cn=Ae?0:et-1,Jn=Ae?1:-1,lr=G<0||G===0&&1/G<0?1:0;for(G=Math.abs(G),isNaN(G)||G===1/0?(Tt=isNaN(G)?1:0,ut=an):(ut=Math.floor(Math.log(G)/Math.LN2),G*(Bt=Math.pow(2,-ut))<1&&(ut--,Bt*=2),(G+=ut+_n>=1?Dn/Bt:Dn*Math.pow(2,1-_n))*Bt>=2&&(ut++,Bt/=2),ut+_n>=an?(Tt=0,ut=an):ut+_n>=1?(Tt=(G*Bt-1)*Math.pow(2,Qe),ut+=_n):(Tt=G*Math.pow(2,_n-1)*Math.pow(2,Qe),ut=0));Qe>=8;N[fe+Cn]=255&Tt,Cn+=Jn,Tt/=256,Qe-=8);for(ut=ut<0;N[fe+Cn]=255&ut,Cn+=Jn,ut/=256,rn-=8);N[fe+Cn-Jn]|=128*lr},Bx=ic;function ic(N){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(N)?N:new Uint8Array(N||0),this.pos=0,this.type=0,this.length=this.buf.length}ic.Varint=0,ic.Fixed64=1,ic.Bytes=2,ic.Fixed32=5;var F_=4294967296,QO=1/F_,Du=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function su(N){return N.type===ic.Bytes?N.readVarint()+N.pos:N.pos+1}function hg(N,G,fe){return fe?4294967296*G+(N>>>0):4294967296*(G>>>0)+(N>>>0)}function n0(N,G,fe){var Ae=G<=16383?1:G<=2097151?2:G<=268435455?3:Math.floor(Math.log(G)/(7*Math.LN2));fe.realloc(Ae);for(var Qe=fe.pos-1;Qe>=N;Qe--)fe.buf[Qe+Ae]=fe.buf[Qe]}function N_(N,G){for(var fe=0;fe>>8,N[fe+2]=G>>>16,N[fe+3]=G>>>24}function vb(N,G){return(N[G]|N[G+1]<<8|N[G+2]<<16)+(N[G+3]<<24)}ic.prototype={destroy:function(){this.buf=null},readFields:function(N,G,fe){for(fe=fe||this.length;this.pos>3,et=this.pos;this.type=7&Ae,N(Qe,G,this),this.pos===et&&this.skip(Ae)}return G},readMessage:function(N,G){return this.readFields(N,G,this.readVarint()+this.pos)},readFixed32:function(){var N=zx(this.buf,this.pos);return this.pos+=4,N},readSFixed32:function(){var N=vb(this.buf,this.pos);return this.pos+=4,N},readFixed64:function(){var N=zx(this.buf,this.pos)+zx(this.buf,this.pos+4)*F_;return this.pos+=8,N},readSFixed64:function(){var N=zx(this.buf,this.pos)+vb(this.buf,this.pos+4)*F_;return this.pos+=8,N},readFloat:function(){var N=P1(this.buf,this.pos,!0,23,4);return this.pos+=4,N},readDouble:function(){var N=P1(this.buf,this.pos,!0,52,8);return this.pos+=8,N},readVarint:function(N){var G,fe,Ae=this.buf;return G=127&(fe=Ae[this.pos++]),fe<128?G:(G|=(127&(fe=Ae[this.pos++]))<<7,fe<128?G:(G|=(127&(fe=Ae[this.pos++]))<<14,fe<128?G:(G|=(127&(fe=Ae[this.pos++]))<<21,fe<128?G:function(Qe,et,ut){var Tt,Bt,rn=ut.buf;if(Tt=(112&(Bt=rn[ut.pos++]))>>4,Bt<128||(Tt|=(127&(Bt=rn[ut.pos++]))<<3,Bt<128)||(Tt|=(127&(Bt=rn[ut.pos++]))<<10,Bt<128)||(Tt|=(127&(Bt=rn[ut.pos++]))<<17,Bt<128)||(Tt|=(127&(Bt=rn[ut.pos++]))<<24,Bt<128)||(Tt|=(1&(Bt=rn[ut.pos++]))<<31,Bt<128))return hg(Qe,Tt,et);throw new Error("Expected varint not more than 10 bytes")}(G|=(15&(fe=Ae[this.pos]))<<28,N,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var N=this.readVarint();return N%2==1?(N+1)/-2:N/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var N=this.readVarint()+this.pos,G=this.pos;return this.pos=N,N-G>=12&&Du?function(fe,Ae,Qe){return Du.decode(fe.subarray(Ae,Qe))}(this.buf,G,N):function(fe,Ae,Qe){for(var et="",ut=Ae;ut239?4:an>223?3:an>191?2:1;if(ut+Dn>Qe)break;Dn===1?an<128&&(_n=an):Dn===2?(192&(Tt=fe[ut+1]))==128&&(_n=(31&an)<<6|63&Tt)<=127&&(_n=null):Dn===3?(Tt=fe[ut+1],Bt=fe[ut+2],(192&Tt)==128&&(192&Bt)==128&&((_n=(15&an)<<12|(63&Tt)<<6|63&Bt)<=2047||_n>=55296&&_n<=57343)&&(_n=null)):Dn===4&&(Tt=fe[ut+1],Bt=fe[ut+2],rn=fe[ut+3],(192&Tt)==128&&(192&Bt)==128&&(192&rn)==128&&((_n=(15&an)<<18|(63&Tt)<<12|(63&Bt)<<6|63&rn)<=65535||_n>=1114112)&&(_n=null)),_n===null?(_n=65533,Dn=1):_n>65535&&(_n-=65536,et+=String.fromCharCode(_n>>>10&1023|55296),_n=56320|1023&_n),et+=String.fromCharCode(_n),ut+=Dn}return et}(this.buf,G,N)},readBytes:function(){var N=this.readVarint()+this.pos,G=this.buf.subarray(this.pos,N);return this.pos=N,G},readPackedVarint:function(N,G){if(this.type!==ic.Bytes)return N.push(this.readVarint(G));var fe=su(this);for(N=N||[];this.pos127;);else if(G===ic.Bytes)this.pos=this.readVarint()+this.pos;else if(G===ic.Fixed32)this.pos+=4;else{if(G!==ic.Fixed64)throw new Error("Unimplemented type: "+G);this.pos+=8}},writeTag:function(N,G){this.writeVarint(N<<3|G)},realloc:function(N){for(var G=this.length||16;G268435455||N<0?function(G,fe){var Ae,Qe;if(G>=0?(Ae=G%4294967296|0,Qe=G/4294967296|0):(Qe=~(-G/4294967296),4294967295^(Ae=~(-G%4294967296))?Ae=Ae+1|0:(Ae=0,Qe=Qe+1|0)),G>=18446744073709552e3||G<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");fe.realloc(10),function(et,ut,Tt){Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos++]=127&et|128,et>>>=7,Tt.buf[Tt.pos]=127&et}(Ae,0,fe),function(et,ut){var Tt=(7&et)<<4;ut.buf[ut.pos++]|=Tt|((et>>>=3)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et|((et>>>=7)?128:0),et&&(ut.buf[ut.pos++]=127&et)))))}(Qe,fe)}(N,this):(this.realloc(4),this.buf[this.pos++]=127&N|(N>127?128:0),N<=127||(this.buf[this.pos++]=127&(N>>>=7)|(N>127?128:0),N<=127||(this.buf[this.pos++]=127&(N>>>=7)|(N>127?128:0),N<=127||(this.buf[this.pos++]=N>>>7&127))))},writeSVarint:function(N){this.writeVarint(N<0?2*-N-1:2*N)},writeBoolean:function(N){this.writeVarint(!!N)},writeString:function(N){N=String(N),this.realloc(4*N.length),this.pos++;var G=this.pos;this.pos=function(Ae,Qe,et){for(var ut,Tt,Bt=0;Bt55295&&ut<57344){if(!Tt){ut>56319||Bt+1===Qe.length?(Ae[et++]=239,Ae[et++]=191,Ae[et++]=189):Tt=ut;continue}if(ut<56320){Ae[et++]=239,Ae[et++]=191,Ae[et++]=189,Tt=ut;continue}ut=Tt-55296<<10|ut-56320|65536,Tt=null}else Tt&&(Ae[et++]=239,Ae[et++]=191,Ae[et++]=189,Tt=null);ut<128?Ae[et++]=ut:(ut<2048?Ae[et++]=ut>>6|192:(ut<65536?Ae[et++]=ut>>12|224:(Ae[et++]=ut>>18|240,Ae[et++]=ut>>12&63|128),Ae[et++]=ut>>6&63|128),Ae[et++]=63&ut|128)}return et}(this.buf,N,this.pos);var fe=this.pos-G;fe>=128&&n0(G,fe,this),this.pos=G-1,this.writeVarint(fe),this.pos+=fe},writeFloat:function(N){this.realloc(4),th(this.buf,N,this.pos,!0,23,4),this.pos+=4},writeDouble:function(N){this.realloc(8),th(this.buf,N,this.pos,!0,52,8),this.pos+=8},writeBytes:function(N){var G=N.length;this.writeVarint(G),this.realloc(G);for(var fe=0;fe=128&&n0(fe,Ae,this),this.pos=fe-1,this.writeVarint(Ae),this.pos+=Ae},writeMessage:function(N,G,fe){this.writeTag(N,ic.Bytes),this.writeRawMessage(G,fe)},writePackedVarint:function(N,G){G.length&&this.writeMessage(N,N_,G)},writePackedSVarint:function(N,G){G.length&&this.writeMessage(N,ey,G)},writePackedBoolean:function(N,G){G.length&&this.writeMessage(N,R1,G)},writePackedFloat:function(N,G){G.length&&this.writeMessage(N,pg,G)},writePackedDouble:function(N,G){G.length&&this.writeMessage(N,ty,G)},writePackedFixed32:function(N,G){G.length&&this.writeMessage(N,z0,G)},writePackedSFixed32:function(N,G){G.length&&this.writeMessage(N,mg,G)},writePackedFixed64:function(N,G){G.length&&this.writeMessage(N,L1,G)},writePackedSFixed64:function(N,G){G.length&&this.writeMessage(N,I1,G)},writeBytesField:function(N,G){this.writeTag(N,ic.Bytes),this.writeBytes(G)},writeFixed32Field:function(N,G){this.writeTag(N,ic.Fixed32),this.writeFixed32(G)},writeSFixed32Field:function(N,G){this.writeTag(N,ic.Fixed32),this.writeSFixed32(G)},writeFixed64Field:function(N,G){this.writeTag(N,ic.Fixed64),this.writeFixed64(G)},writeSFixed64Field:function(N,G){this.writeTag(N,ic.Fixed64),this.writeSFixed64(G)},writeVarintField:function(N,G){this.writeTag(N,ic.Varint),this.writeVarint(G)},writeSVarintField:function(N,G){this.writeTag(N,ic.Varint),this.writeSVarint(G)},writeStringField:function(N,G){this.writeTag(N,ic.Bytes),this.writeString(G)},writeFloatField:function(N,G){this.writeTag(N,ic.Fixed32),this.writeFloat(G)},writeDoubleField:function(N,G){this.writeTag(N,ic.Fixed64),this.writeDouble(G)},writeBooleanField:function(N,G){this.writeVarintField(N,!!G)}};var Fx=3;function $_(N,G,fe){N===1&&fe.readMessage(Nx,G)}function Nx(N,G,fe){if(N===3){var Ae=fe.readMessage(V_,{}),Qe=Ae.id,et=Ae.bitmap,ut=Ae.width,Tt=Ae.height,Bt=Ae.left,rn=Ae.top,an=Ae.advance;G.push({id:Qe,bitmap:new Fl({width:ut+2*Fx,height:Tt+2*Fx},et),metrics:{width:ut,height:Tt,left:Bt,top:rn,advance:an}})}}function V_(N,G,fe){N===1?G.id=fe.readVarint():N===2?G.bitmap=fe.readBytes():N===3?G.width=fe.readVarint():N===4?G.height=fe.readVarint():N===5?G.left=fe.readSVarint():N===6?G.top=fe.readSVarint():N===7&&(G.advance=fe.readVarint())}var yb=Fx;function D1(N){for(var G=0,fe=0,Ae=0,Qe=N;Ae=0;Dn--){var Cn=ut[Dn];if(!(_n.w>Cn.w||_n.h>Cn.h)){if(_n.x=Cn.x,_n.y=Cn.y,Bt=Math.max(Bt,_n.y+_n.h),Tt=Math.max(Tt,_n.x+_n.w),_n.w===Cn.w&&_n.h===Cn.h){var Jn=ut.pop();Dn0&&bg>Uo&&(Uo=bg)}else{var Dm=Ja[Xs.fontStack],q1=Dm&&Dm[Mc];if(q1&&q1.rect)Im=q1.rect,il=q1.metrics;else{var Wx=Bs[Xs.fontStack],Ec=Wx&&Wx[Mc];if(!Ec)continue;il=Ec.metrics}Mh=(is-Xs.scale)*$l}Hp?(Zi.verticalizable=!0,Bl.push({glyph:Mc,imageName:ah,x:_u,y:qu+Mh,vertical:Hp,scale:Xs.scale,fontStack:Xs.fontStack,sectionIndex:ac,metrics:il,rect:Im}),_u+=Bu*Xs.scale+Fs):(Bl.push({glyph:Mc,imageName:ah,x:_u,y:qu+Mh,vertical:Hp,scale:Xs.scale,fontStack:Xs.fontStack,sectionIndex:ac,metrics:il,rect:Im}),_u+=il.advance*Xs.scale+Fs)}if(Bl.length!==0){var Qc=_u-Fs;Vc=Math.max(Qc,Vc),ZO(Bl,0,Bl.length-1,Uc,Uo)}_u=0;var Hc=zs*is+Uo;Ac.lineOffset=Math.max(Uo,Vs),qu+=Hc,ml=Math.max(Hc,ml),++wu}else qu+=zs,++wu}var _s=qu-ny,Jc=xb(gs),Pc=Jc.horizontalAlign,W1=Jc.verticalAlign;(function(uy,Y1,H0,X1,G1,K1,Zp,fy,JO){var Bm=(Y1-H0)*G1,Sb=0;Sb=K1!==Zp?-fy*X1-ny:(-X1*JO+.5)*Zp;for(var Wu=0,Yx=uy;Wu=0&&Ae>=N&&$x[this.text.charCodeAt(Ae)];Ae--)fe--;this.text=this.text.substring(N,fe),this.sectionIndex=this.sectionIndex.slice(N,fe)},cf.prototype.substring=function(N,G){var fe=new cf;return fe.text=this.text.substring(N,G),fe.sectionIndex=this.sectionIndex.slice(N,G),fe.sections=this.sections,fe},cf.prototype.toString=function(){return this.text},cf.prototype.getMaxScale=function(){var N=this;return this.sectionIndex.reduce(function(G,fe){return Math.max(G,N.sections[fe].scale)},0)},cf.prototype.addTextSection=function(N,G){this.text+=N.text,this.sections.push(B1.forText(N.scale,N.fontStack||G));for(var fe=this.sections.length-1,Ae=0;Ae=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var $x={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Nd={};function ry(N,G,fe,Ae,Qe,et){if(G.imageName){var ut=Ae[G.imageName];return ut?ut.displaySize[0]*G.scale*$l/et+Qe:0}var Tt=fe[G.fontStack],Bt=Tt&&Tt[N];return Bt?Bt.metrics.advance*G.scale+Qe:0}function HO(N,G,fe,Ae){var Qe=Math.pow(N-G,2);return Ae?N=0,an=0,_n=0;_n-fe/2;){if(--ut<0)return!1;Tt-=N[ut].dist(et),et=N[ut]}Tt+=N[ut].dist(N[ut+1]),ut++;for(var Bt=[],rn=0;TtAe;)rn-=Bt.shift().angleDelta;if(rn>Qe)return!1;ut++,Tt+=_n.dist(Dn)}return!0}function N1(N){for(var G=0,fe=0;fern){var Jn=(rn-Bt)/Cn,lr=ra(_n.x,Dn.x,Jn),Ar=ra(_n.y,Dn.y,Jn),Or=new gg(lr,Ar,Dn.angleTo(_n),an);return Or._round(),!ut||F1(N,Or,Tt,ut,G)?Or:void 0}Bt+=Cn}}function $1(N,G,fe,Ae,Qe,et,ut,Tt,Bt){var rn=iy(Ae,et,ut),an=qO(Ae,Qe),_n=an*ut,Dn=N[0].x===0||N[0].x===Bt||N[0].y===0||N[0].y===Bt;return G-_n=0&&uo=0&&ro=0&&Dn+rn<=an){var Po=new gg(uo,ro,jr,Jn);Po._round(),Ae&&!F1(N,Po,et,Ae,Qe)||Cn.push(Po)}}_n+=Or}return Tt||Cn.length||ut||(Cn=rh(N,_n/2,fe,Ae,Qe,et,ut,!0,Bt)),Cn}function H_(N,G,fe,Ae,Qe){for(var et=[],ut=0;ut=Ae&&_n.x>=Ae||(an.x>=Ae?an=new a(Ae,an.y+(_n.y-an.y)*((Ae-an.x)/(_n.x-an.x)))._round():_n.x>=Ae&&(_n=new a(Ae,an.y+(_n.y-an.y)*((Ae-an.x)/(_n.x-an.x)))._round()),an.y>=Qe&&_n.y>=Qe||(an.y>=Qe?an=new a(an.x+(_n.x-an.x)*((Qe-an.y)/(_n.y-an.y)),Qe)._round():_n.y>=Qe&&(_n=new a(an.x+(_n.x-an.x)*((Qe-an.y)/(_n.y-an.y)),Qe)._round()),Bt&&an.equals(Bt[Bt.length-1])||(Bt=[an],et.push(Bt)),Bt.push(_n)))))}return et}var nc=vd;function $0(N,G,fe,Ae){var Qe=[],et=N.image,ut=et.pixelRatio,Tt=et.paddedRect.w-2*nc,Bt=et.paddedRect.h-2*nc,rn=N.right-N.left,an=N.bottom-N.top,_n=et.stretchX||[[0,Tt]],Dn=et.stretchY||[[0,Bt]],Cn=function(zs,gs){return zs+gs[1]-gs[0]},Jn=_n.reduce(Cn,0),lr=Dn.reduce(Cn,0),Ar=Tt-Jn,Or=Bt-lr,jr=0,Jr=Jn,uo=0,ro=lr,Po=0,gi=Ar,ni=0,Ti=Or;if(et.content&&Ae){var vi=et.content;jr=yd(_n,0,vi[0]),uo=yd(Dn,0,vi[1]),Jr=yd(_n,vi[0],vi[2]),ro=yd(Dn,vi[1],vi[3]),Po=vi[0]-jr,ni=vi[1]-uo,gi=vi[2]-vi[0]-Jr,Ti=vi[3]-vi[1]-ro}var na=function(zs,gs,rc,aa){var Fs=V1(zs.stretch-jr,Jr,rn,N.left),$c=r0(zs.fixed-Po,gi,zs.stretch,Jn),xc=V1(gs.stretch-uo,ro,an,N.top),_u=r0(gs.fixed-ni,Ti,gs.stretch,lr),qu=V1(rc.stretch-jr,Jr,rn,N.left),Vc=r0(rc.fixed-Po,gi,rc.stretch,Jn),ml=V1(aa.stretch-uo,ro,an,N.top),Uc=r0(aa.fixed-ni,Ti,aa.stretch,lr),wu=new a(Fs,xc),uf=new a(qu,xc),ff=new a(qu,ml),jc=new a(Fs,ml),is=new a($c/ut,_u/ut),Vs=new a(Vc/ut,Uc/ut),Ac=G*Math.PI/180;if(Ac){var Bl=Math.sin(Ac),Uo=Math.cos(Ac),ql=[Uo,-Bl,Bl,Uo];wu._matMult(ql),uf._matMult(ql),jc._matMult(ql),ff._matMult(ql)}var Xs=zs.stretch+zs.fixed,ac=rc.stretch+rc.fixed,Mc=gs.stretch+gs.fixed,Mh=aa.stretch+aa.fixed;return{tl:wu,tr:uf,bl:jc,br:ff,tex:{x:et.paddedRect.x+nc+Xs,y:et.paddedRect.y+nc+Mc,w:ac-Xs,h:Mh-Mc},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:is,pixelOffsetBR:Vs,minFontScaleX:gi/ut/rn,minFontScaleY:Ti/ut/an,isSDF:fe}};if(Ae&&(et.stretchX||et.stretchY))for(var ea=OS(_n,Ar,Jn),La=OS(Dn,Or,lr),ca=0;ca0&&(Cn=Math.max(10,Cn),this.circleDiameter=Cn)}else{var Jn=et.top*ut-Tt,lr=et.bottom*ut+Tt,Ar=et.left*ut-Tt,Or=et.right*ut+Tt,jr=et.collisionPadding;if(jr&&(Ar-=jr[0]*ut,Jn-=jr[1]*ut,Or+=jr[2]*ut,lr+=jr[3]*ut),rn){var Jr=new a(Ar,Jn),uo=new a(Or,Jn),ro=new a(Ar,lr),Po=new a(Or,lr),gi=rn*Math.PI/180;Jr._rotate(gi),uo._rotate(gi),ro._rotate(gi),Po._rotate(gi),Ar=Math.min(Jr.x,uo.x,ro.x,Po.x),Or=Math.max(Jr.x,uo.x,ro.x,Po.x),Jn=Math.min(Jr.y,uo.y,ro.y,Po.y),lr=Math.max(Jr.y,uo.y,ro.y,Po.y)}N.emplaceBack(G.x,G.y,Ar,Jn,Or,lr,fe,Ae,Qe)}this.boxEndIndex=N.length},oh=function(N,G){if(N===void 0&&(N=[]),G===void 0&&(G=Ch),this.data=N,this.length=this.data.length,this.compare=G,this.length>0)for(var fe=(this.length>>1)-1;fe>=0;fe--)this._down(fe)};function Ch(N,G){return NG?1:0}function Z_(N,G,fe){G===void 0&&(G=1),fe===void 0&&(fe=!1);for(var Ae=1/0,Qe=1/0,et=-1/0,ut=-1/0,Tt=N[0],Bt=0;Btet)&&(et=rn.x),(!Bt||rn.y>ut)&&(ut=rn.y)}var an=et-Ae,_n=ut-Qe,Dn=Math.min(an,_n),Cn=Dn/2,Jn=new oh([],q_);if(Dn===0)return new a(Ae,Qe);for(var lr=Ae;lrOr.d||!Or.d)&&(Or=Jr,fe&&console.log("found best %d after %d probes",Math.round(1e4*Jr.d)/1e4,jr)),Jr.max-Or.d<=G||(Cn=Jr.h/2,Jn.push(new V0(Jr.p.x-Cn,Jr.p.y-Cn,Cn,N)),Jn.push(new V0(Jr.p.x+Cn,Jr.p.y-Cn,Cn,N)),Jn.push(new V0(Jr.p.x-Cn,Jr.p.y+Cn,Cn,N)),Jn.push(new V0(Jr.p.x+Cn,Jr.p.y+Cn,Cn,N)),jr+=4)}return fe&&(console.log("num probes: "+jr),console.log("best distance: "+Or.d)),Or.p}function q_(N,G){return G.max-N.max}function V0(N,G,fe,Ae){this.p=new a(N,G),this.h=fe,this.d=function(Qe,et){for(var ut=!1,Tt=1/0,Bt=0;BtQe.y!=Jn.y>Qe.y&&Qe.x<(Jn.x-Cn.x)*(Qe.y-Cn.y)/(Jn.y-Cn.y)+Cn.x&&(ut=!ut),Tt=Math.min(Tt,Mx(Qe,Cn,Jn))}return(ut?1:-1)*Math.sqrt(Tt)}(this.p,Ae),this.max=this.d+this.h*Math.SQRT2}oh.prototype.push=function(N){this.data.push(N),this.length++,this._up(this.length-1)},oh.prototype.pop=function(){if(this.length!==0){var N=this.data[0],G=this.data.pop();return this.length--,this.length>0&&(this.data[0]=G,this._down(0)),N}},oh.prototype.peek=function(){return this.data[0]},oh.prototype._up=function(N){for(var G=this.data,fe=this.compare,Ae=G[N];N>0;){var Qe=N-1>>1,et=G[Qe];if(fe(Ae,et)>=0)break;G[N]=et,N=Qe}G[N]=Ae},oh.prototype._down=function(N){for(var G=this.data,fe=this.compare,Ae=this.length>>1,Qe=G[N];N=0)break;G[N]=ut,N=et}G[N]=Qe};var Up=7,W_=Number.POSITIVE_INFINITY;function U0(N,G){return G[1]!==W_?function(fe,Ae,Qe){var et=0,ut=0;switch(Ae=Math.abs(Ae),Qe=Math.abs(Qe),fe){case"top-right":case"top-left":case"top":ut=Qe-Up;break;case"bottom-right":case"bottom-left":case"bottom":ut=-Qe+Up}switch(fe){case"top-right":case"bottom-right":case"right":et=-Ae;break;case"top-left":case"bottom-left":case"left":et=Ae}return[et,ut]}(N,G[0],G[1]):function(fe,Ae){var Qe=0,et=0;Ae<0&&(Ae=0);var ut=Ae/Math.sqrt(2);switch(fe){case"top-right":case"top-left":et=ut-Up;break;case"bottom-right":case"bottom-left":et=-ut+Up;break;case"bottom":et=-Ae+Up;break;case"top":et=Ae-Up}switch(fe){case"top-right":case"bottom-right":Qe=-ut;break;case"top-left":case"bottom-left":Qe=ut;break;case"left":Qe=Ae;break;case"right":Qe=-Ae}return[Qe,et]}(N,G[0])}function jp(N){switch(N){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var o0=255,Ra=o0*dp;function bd(N,G,fe,Ae,Qe,et,ut,Tt,Bt,rn,an,_n,Dn,Cn,Jn){var lr=function(uo,ro,Po,gi,ni,Ti,vi,na){for(var ea=gi.layout.get("text-rotate").evaluate(Ti,{})*Math.PI/180,La=[],ca=0,Zi=ro.positionedLines;caRa&&$(N.layerIds[0]+': Value for "text-size" is >= '+o0+'. Reduce your "text-size".'):Ar.kind==="composite"&&((Or=[dp*Cn.compositeTextSizes[0].evaluate(ut,{},Jn),dp*Cn.compositeTextSizes[1].evaluate(ut,{},Jn)])[0]>Ra||Or[1]>Ra)&&$(N.layerIds[0]+': Value for "text-size" is >= '+o0+'. Reduce your "text-size".'),N.addSymbols(N.text,lr,Or,Tt,et,ut,rn,G,Bt.lineStartIndex,Bt.lineLength,Dn,Jn);for(var jr=0,Jr=an;jr=0;ut--)if(Ae.dist(et[ut])0)&&(et.value.kind!=="constant"||et.value.value.length>0),rn=Tt.value.kind!=="constant"||!!Tt.value.value||Object.keys(Tt.parameters).length>0,an=Qe.get("symbol-sort-key");if(this.features=[],Bt||rn){for(var _n=G.iconDependencies,Dn=G.glyphDependencies,Cn=G.availableImages,Jn=new fs(this.zoom),lr=0,Ar=N;lr=0;for(var Ja=0,Vl=ni.sections;Ja=0;Tt--)et[Tt]={x:G[Tt].x,y:G[Tt].y,tileUnitDistanceFromAnchor:Qe},Tt>0&&(Qe+=G[Tt-1].dist(G[Tt]));for(var Bt=0;Bt0},kl.prototype.hasIconData=function(){return this.icon.segments.get().length>0},kl.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},kl.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},kl.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},kl.prototype.addIndicesForPlacedSymbol=function(N,G){for(var fe=N.placedSymbolArray.get(G),Ae=fe.vertexStartIndex+4*fe.numGlyphs,Qe=fe.vertexStartIndex;Qe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(N),this.sortedAngle=N,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var fe=0,Ae=this.symbolInstanceIndexes;fe=0&&Bt.indexOf(ut)===Tt&&G.addIndicesForPlacedSymbol(G.text,ut)}),et.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,et.verticalPlacedTextSymbolIndex),et.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,et.placedIconSymbolIndex),et.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,et.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},pi("SymbolBucket",kl,{omit:["layers","collisionBoxArray","features","compareText"]}),kl.MAX_GLYPHS=65535,kl.addDynamicAttributes=j1;var SS=new Jl({"symbol-placement":new Vi(xt.layout_symbol["symbol-placement"]),"symbol-spacing":new Vi(xt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Vi(xt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new fa(xt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Vi(xt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Vi(xt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Vi(xt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Vi(xt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Vi(xt.layout_symbol["icon-rotation-alignment"]),"icon-size":new fa(xt.layout_symbol["icon-size"]),"icon-text-fit":new Vi(xt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Vi(xt.layout_symbol["icon-text-fit-padding"]),"icon-image":new fa(xt.layout_symbol["icon-image"]),"icon-rotate":new fa(xt.layout_symbol["icon-rotate"]),"icon-padding":new Vi(xt.layout_symbol["icon-padding"]),"icon-keep-upright":new Vi(xt.layout_symbol["icon-keep-upright"]),"icon-offset":new fa(xt.layout_symbol["icon-offset"]),"icon-anchor":new fa(xt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Vi(xt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Vi(xt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Vi(xt.layout_symbol["text-rotation-alignment"]),"text-field":new fa(xt.layout_symbol["text-field"]),"text-font":new fa(xt.layout_symbol["text-font"]),"text-size":new fa(xt.layout_symbol["text-size"]),"text-max-width":new fa(xt.layout_symbol["text-max-width"]),"text-line-height":new Vi(xt.layout_symbol["text-line-height"]),"text-letter-spacing":new fa(xt.layout_symbol["text-letter-spacing"]),"text-justify":new fa(xt.layout_symbol["text-justify"]),"text-radial-offset":new fa(xt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Vi(xt.layout_symbol["text-variable-anchor"]),"text-anchor":new fa(xt.layout_symbol["text-anchor"]),"text-max-angle":new Vi(xt.layout_symbol["text-max-angle"]),"text-writing-mode":new Vi(xt.layout_symbol["text-writing-mode"]),"text-rotate":new fa(xt.layout_symbol["text-rotate"]),"text-padding":new Vi(xt.layout_symbol["text-padding"]),"text-keep-upright":new Vi(xt.layout_symbol["text-keep-upright"]),"text-transform":new fa(xt.layout_symbol["text-transform"]),"text-offset":new fa(xt.layout_symbol["text-offset"]),"text-allow-overlap":new Vi(xt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Vi(xt.layout_symbol["text-ignore-placement"]),"text-optional":new Vi(xt.layout_symbol["text-optional"])}),Y_={paint:new Jl({"icon-opacity":new fa(xt.paint_symbol["icon-opacity"]),"icon-color":new fa(xt.paint_symbol["icon-color"]),"icon-halo-color":new fa(xt.paint_symbol["icon-halo-color"]),"icon-halo-width":new fa(xt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new fa(xt.paint_symbol["icon-halo-blur"]),"icon-translate":new Vi(xt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Vi(xt.paint_symbol["icon-translate-anchor"]),"text-opacity":new fa(xt.paint_symbol["text-opacity"]),"text-color":new fa(xt.paint_symbol["text-color"],{runtimeType:er,getOverride:function(N){return N.textColor},hasOverride:function(N){return!!N.textColor}}),"text-halo-color":new fa(xt.paint_symbol["text-halo-color"]),"text-halo-width":new fa(xt.paint_symbol["text-halo-width"]),"text-halo-blur":new fa(xt.paint_symbol["text-halo-blur"]),"text-translate":new Vi(xt.paint_symbol["text-translate"]),"text-translate-anchor":new Vi(xt.paint_symbol["text-translate-anchor"])}),layout:SS},Pm=function(N){this.type=N.property.overrides?N.property.overrides.runtimeType:fn,this.defaultValue=N};Pm.prototype.evaluate=function(N){if(N.formattedSection){var G=this.defaultValue.property.overrides;if(G&&G.hasOverride(N.formattedSection))return G.getOverride(N.formattedSection)}return N.feature&&N.featureState?this.defaultValue.evaluate(N.feature,N.featureState):this.defaultValue.property.specification.default},Pm.prototype.eachChild=function(N){this.defaultValue.isConstant()||N(this.defaultValue.value._styleExpression.expression)},Pm.prototype.outputDefined=function(){return!1},Pm.prototype.serialize=function(){return null},pi("FormatSectionOverride",Pm,{omit:["defaultValue"]});var fi=function(N){function G(fe){N.call(this,fe,Y_)}return N&&(G.__proto__=N),G.prototype=Object.create(N&&N.prototype),G.prototype.constructor=G,G.prototype.recalculate=function(fe,Ae){if(N.prototype.recalculate.call(this,fe,Ae),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var Qe=this.layout.get("text-writing-mode");if(Qe){for(var et=[],ut=0,Tt=Qe;ut",targetMapId:Ae,sourceMapId:et.mapId})}}},ih.prototype.receive=function(N){var G=N.data,fe=G.id;if(fe&&(!G.targetMapId||this.mapId===G.targetMapId))if(G.type===""){delete this.tasks[fe];var Ae=this.cancelCallbacks[fe];delete this.cancelCallbacks[fe],Ae&&Ae()}else U()||G.mustQueue?(this.tasks[fe]=G,this.taskQueue.push(fe),this.invoker.trigger()):this.processTask(fe,G)},ih.prototype.process=function(){if(this.taskQueue.length){var N=this.taskQueue.shift(),G=this.tasks[N];delete this.tasks[N],this.taskQueue.length&&this.invoker.trigger(),G&&this.processTask(N,G)}},ih.prototype.processTask=function(N,G){var fe=this;if(G.type===""){var Ae=this.callbacks[N];delete this.callbacks[N],Ae&&(G.error?Ae(Kl(G.error)):Ae(null,Kl(G.data)))}else{var Qe=!1,et=W(this.globalScope)?void 0:[],ut=G.hasCallback?function(an,_n){Qe=!0,delete fe.cancelCallbacks[N],fe.target.postMessage({id:N,type:"",sourceMapId:fe.mapId,error:an?Yc(an):null,data:Yc(_n,et)},et)}:function(an){Qe=!0},Tt=null,Bt=Kl(G.data);if(this.parent[G.type])Tt=this.parent[G.type](G.sourceMapId,Bt,ut);else if(this.parent.getWorkerSource){var rn=G.type.split(".");Tt=this.parent.getWorkerSource(G.sourceMapId,rn[0],Bt.source)[rn[1]](Bt,ut)}else ut(new Error("Could not find function "+G.type));!Qe&&Tt&&Tt.cancel&&(this.cancelCallbacks[N]=Tt.cancel)}},ih.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Cc=function(N,G){N&&(G?this.setSouthWest(N).setNorthEast(G):N.length===4?this.setSouthWest([N[0],N[1]]).setNorthEast([N[2],N[3]]):this.setSouthWest(N[0]).setNorthEast(N[1]))};Cc.prototype.setNorthEast=function(N){return this._ne=N instanceof yc?new yc(N.lng,N.lat):yc.convert(N),this},Cc.prototype.setSouthWest=function(N){return this._sw=N instanceof yc?new yc(N.lng,N.lat):yc.convert(N),this},Cc.prototype.extend=function(N){var G,fe,Ae=this._sw,Qe=this._ne;if(N instanceof yc)G=N,fe=N;else{if(!(N instanceof Cc)){if(Array.isArray(N)){if(N.length===4||N.every(Array.isArray)){var et=N;return this.extend(Cc.convert(et))}var ut=N;return this.extend(yc.convert(ut))}return this}if(G=N._sw,fe=N._ne,!G||!fe)return this}return Ae||Qe?(Ae.lng=Math.min(G.lng,Ae.lng),Ae.lat=Math.min(G.lat,Ae.lat),Qe.lng=Math.max(fe.lng,Qe.lng),Qe.lat=Math.max(fe.lat,Qe.lat)):(this._sw=new yc(G.lng,G.lat),this._ne=new yc(fe.lng,fe.lat)),this},Cc.prototype.getCenter=function(){return new yc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Cc.prototype.getSouthWest=function(){return this._sw},Cc.prototype.getNorthEast=function(){return this._ne},Cc.prototype.getNorthWest=function(){return new yc(this.getWest(),this.getNorth())},Cc.prototype.getSouthEast=function(){return new yc(this.getEast(),this.getSouth())},Cc.prototype.getWest=function(){return this._sw.lng},Cc.prototype.getSouth=function(){return this._sw.lat},Cc.prototype.getEast=function(){return this._ne.lng},Cc.prototype.getNorth=function(){return this._ne.lat},Cc.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Cc.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Cc.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Cc.prototype.contains=function(N){var G=yc.convert(N),fe=G.lng,Ae=G.lat,Qe=this._sw.lat<=Ae&&Ae<=this._ne.lat,et=this._sw.lng<=fe&&fe<=this._ne.lng;return this._sw.lng>this._ne.lng&&(et=this._sw.lng>=fe&&fe>=this._ne.lng),Qe&&et},Cc.convert=function(N){return!N||N instanceof Cc?N:new Cc(N)};var XO=63710088e-1,yc=function(N,G){if(isNaN(N)||isNaN(G))throw new Error("Invalid LngLat object: ("+N+", "+G+")");if(this.lng=+N,this.lat=+G,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};yc.prototype.wrap=function(){return new yc(A(this.lng,-180,180),this.lat)},yc.prototype.toArray=function(){return[this.lng,this.lat]},yc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},yc.prototype.distanceTo=function(N){var G=Math.PI/180,fe=this.lat*G,Ae=N.lat*G,Qe=Math.sin(fe)*Math.sin(Ae)+Math.cos(fe)*Math.cos(Ae)*Math.cos((N.lng-this.lng)*G);return XO*Math.acos(Math.min(Qe,1))},yc.prototype.toBounds=function(N){N===void 0&&(N=0);var G=360*N/40075017,fe=G/Math.cos(Math.PI/180*this.lat);return new Cc(new yc(this.lng-fe,this.lat-G),new yc(this.lng+fe,this.lat+G))},yc.convert=function(N){if(N instanceof yc)return N;if(Array.isArray(N)&&(N.length===2||N.length===3))return new yc(Number(N[0]),Number(N[1]));if(!Array.isArray(N)&&typeof N=="object"&&N!==null)return new yc(Number("lng"in N?N.lng:N.lon),Number(N.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var GO=2*Math.PI*XO;function Zx(N){return GO*Math.cos(N*Math.PI/180)}function wb(N){return(180+N)/360}function K_(N){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+N*Math.PI/360)))/360}function qx(N,G){return N/Zx(G)}function J_(N){var G=180-360*N;return 360/Math.PI*Math.atan(Math.exp(G*Math.PI/180))-90}var Lm=function(N,G,fe){fe===void 0&&(fe=0),this.x=+N,this.y=+G,this.z=+fe};Lm.fromLngLat=function(N,G){G===void 0&&(G=0);var fe=yc.convert(N);return new Lm(wb(fe.lng),K_(fe.lat),qx(G,fe.lat))},Lm.prototype.toLngLat=function(){return new yc(360*this.x-180,J_(this.y))},Lm.prototype.toAltitude=function(){return N=this.z,G=this.y,N*Zx(J_(G));var N,G},Lm.prototype.meterInMercatorCoordinateUnits=function(){return 1/GO*(N=J_(this.y),1/Math.cos(N*Math.PI/180));var N};var qh=function(N,G,fe){this.z=N,this.x=G,this.y=fe,this.key=H1(0,N,N,G,fe)};qh.prototype.equals=function(N){return this.z===N.z&&this.x===N.x&&this.y===N.y},qh.prototype.url=function(N,G){var fe,Ae,Qe,et,ut,Tt=(fe=this.x,Ae=this.y,Qe=this.z,et=G_(256*fe,256*(Ae=Math.pow(2,Qe)-Ae-1),Qe),ut=G_(256*(fe+1),256*(Ae+1),Qe),et[0]+","+et[1]+","+ut[0]+","+ut[1]),Bt=function(rn,an,_n){for(var Dn,Cn="",Jn=rn;Jn>0;Jn--)Cn+=(an&(Dn=1<this.canonical.z?new Kc(N,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Kc(N,this.wrap,N,this.canonical.x>>G,this.canonical.y>>G)},Kc.prototype.calculateScaledKey=function(N,G){var fe=this.canonical.z-N;return N>this.canonical.z?H1(this.wrap*+G,N,this.canonical.z,this.canonical.x,this.canonical.y):H1(this.wrap*+G,N,N,this.canonical.x>>fe,this.canonical.y>>fe)},Kc.prototype.isChildOf=function(N){if(N.wrap!==this.wrap)return!1;var G=this.canonical.z-N.canonical.z;return N.overscaledZ===0||N.overscaledZ>G&&N.canonical.y===this.canonical.y>>G},Kc.prototype.children=function(N){if(this.overscaledZ>=N)return[new Kc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var G=this.canonical.z+1,fe=2*this.canonical.x,Ae=2*this.canonical.y;return[new Kc(G,this.wrap,G,fe,Ae),new Kc(G,this.wrap,G,fe+1,Ae),new Kc(G,this.wrap,G,fe,Ae+1),new Kc(G,this.wrap,G,fe+1,Ae+1)]},Kc.prototype.isLessThan=function(N){return this.wrapN.wrap)&&(this.overscaledZN.overscaledZ)&&(this.canonical.xN.canonical.x)&&this.canonical.y=this.dim+1||G<-1||G>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(G+1)*this.stride+(N+1)},Qp.prototype._unpackMapbox=function(N,G,fe){return(256*N*256+256*G+fe)/10-1e4},Qp.prototype._unpackTerrarium=function(N,G,fe){return 256*N+G+fe/256-32768},Qp.prototype.getPixels=function(){return new Yf({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Qp.prototype.backfillBorder=function(N,G,fe){if(this.dim!==N.dim)throw new Error("dem dimension mismatch");var Ae=G*this.dim,Qe=G*this.dim+this.dim,et=fe*this.dim,ut=fe*this.dim+this.dim;switch(G){case-1:Ae=Qe-1;break;case 1:Qe=Ae+1}switch(fe){case-1:et=ut-1;break;case 1:ut=et+1}for(var Tt=-G*this.dim,Bt=-fe*this.dim,rn=et;rn=0&&an[3]>=0&&Tt.insert(ut,an[0],an[1],an[2],an[3])}},bc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Cf.VectorTile(new Bx(this.rawTileData)).layers,this.sourceLayerCoder=new ly(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},bc.prototype.query=function(N,G,fe,Ae){var Qe=this;this.loadVTLayers();for(var et=N.params||{},ut=Hs/N.tileSize/N.scale,Tt=Pu(et.filter),Bt=N.queryGeometry,rn=N.queryPadding*ut,an=ew(Bt),_n=this.grid.query(an.minX-rn,an.minY-rn,an.maxX+rn,an.maxY+rn),Dn=ew(N.cameraQueryGeometry),Cn=0,Jn=this.grid3D.query(Dn.minX-rn,Dn.minY-rn,Dn.maxX+rn,Dn.maxY+rn,function(uo,ro,Po,gi){return function(ni,Ti,vi,na,ea){for(var La=0,ca=ni;La=Zi.x&&ea>=Zi.y)return!0}var Bs=[new a(Ti,vi),new a(Ti,ea),new a(na,ea),new a(na,vi)];if(ni.length>2){for(var Ja=0,Vl=Bs;Ja=0)return!0;return!1}(et,_n)){var Dn=this.sourceLayerCoder.decode(fe),Cn=this.vtLayers[Dn].feature(Ae);if(Qe.needGeometry){var Jn=tc(Cn,!0);if(!Qe.filter(new fs(this.tileID.overscaledZ),Jn,this.tileID.canonical))return}else if(!Qe.filter(new fs(this.tileID.overscaledZ),Cn))return;for(var lr=this.getId(Cn,Dn),Ar=0;Ar<_n.length;Ar++){var Or=_n[Ar];if(!(et&&et.indexOf(Or)<0)){var jr=Tt[Or];if(jr){var Jr={};lr!==void 0&&rn&&(Jr=rn.getState(jr.sourceLayer||"_geojsonTileLayer",lr));var uo=x({},Bt[Or]);uo.paint=KO(uo.paint,jr.paint,Cn,Jr,ut),uo.layout=KO(uo.layout,jr.layout,Cn,Jr,ut);var ro=!an||an(Cn,jr,Jr);if(ro){var Po=new cy(Cn,this.z,this.x,this.y,lr);Po.layer=uo;var gi=N[Or];gi===void 0&&(gi=N[Or]=[]),gi.push({featureIndex:Ae,feature:Po,intersectionZ:ro})}}}}}},bc.prototype.lookupSymbolFeatures=function(N,G,fe,Ae,Qe,et,ut,Tt){var Bt={};this.loadVTLayers();for(var rn=Pu(Qe),an=0,_n=N;an<_n.length;an+=1){var Dn=_n[an];this.loadMatchingFeature(Bt,fe,Ae,Dn,rn,et,ut,Tt,G)}return Bt},bc.prototype.hasLayer=function(N){for(var G=0,fe=this.bucketLayerIDs;GAe)Qe=!1;else if(G)if(this.expirationTimeot&&(N.getActor().send("enforceCacheSizeLimit",nt),qt=0)},i.clamp=S,i.clearTileCache=function(N){var G=h.caches.delete(je);N&&G.catch(N).then(function(){return N()})},i.clipLine=H_,i.clone=function(N){var G=new Tf(16);return G[0]=N[0],G[1]=N[1],G[2]=N[2],G[3]=N[3],G[4]=N[4],G[5]=N[5],G[6]=N[6],G[7]=N[7],G[8]=N[8],G[9]=N[9],G[10]=N[10],G[11]=N[11],G[12]=N[12],G[13]=N[13],G[14]=N[14],G[15]=N[15],G},i.clone$1=I,i.clone$2=function(N){var G=new Tf(3);return G[0]=N[0],G[1]=N[1],G[2]=N[2],G},i.collisionCircleLayout=Kv,i.config=ce,i.create=function(){var N=new Tf(16);return Tf!=Float32Array&&(N[1]=0,N[2]=0,N[3]=0,N[4]=0,N[6]=0,N[7]=0,N[8]=0,N[9]=0,N[11]=0,N[12]=0,N[13]=0,N[14]=0),N[0]=1,N[5]=1,N[10]=1,N[15]=1,N},i.create$1=function(){var N=new Tf(9);return Tf!=Float32Array&&(N[1]=0,N[2]=0,N[3]=0,N[5]=0,N[6]=0,N[7]=0),N[0]=1,N[4]=1,N[8]=1,N},i.create$2=function(){var N=new Tf(4);return Tf!=Float32Array&&(N[1]=0,N[2]=0),N[0]=1,N[3]=1,N},i.createCommonjsModule=O,i.createExpression=Gd,i.createLayout=El,i.createStyleLayer=function(N){return N.type==="custom"?new TS(N):new _b[N.type](N)},i.cross=function(N,G,fe){var Ae=G[0],Qe=G[1],et=G[2],ut=fe[0],Tt=fe[1],Bt=fe[2];return N[0]=Qe*Bt-et*Tt,N[1]=et*ut-Ae*Bt,N[2]=Ae*Tt-Qe*ut,N},i.deepEqual=function N(G,fe){if(Array.isArray(G)){if(!Array.isArray(fe)||G.length!==fe.length)return!1;for(var Ae=0;Ae0&&(et=1/Math.sqrt(et)),N[0]=G[0]*et,N[1]=G[1]*et,N[2]=G[2]*et,N},i.number=ra,i.offscreenCanvasSupported=en,i.ortho=function(N,G,fe,Ae,Qe,et,ut){var Tt=1/(G-fe),Bt=1/(Ae-Qe),rn=1/(et-ut);return N[0]=-2*Tt,N[1]=0,N[2]=0,N[3]=0,N[4]=0,N[5]=-2*Bt,N[6]=0,N[7]=0,N[8]=0,N[9]=0,N[10]=2*rn,N[11]=0,N[12]=(G+fe)*Tt,N[13]=(Qe+Ae)*Bt,N[14]=(ut+et)*rn,N[15]=1,N},i.parseGlyphPBF=function(N){return new Bx(N).readFields($_,[])},i.pbf=Bx,i.performSymbolLayout=function(N,G,fe,Ae,Qe,et,ut){N.createArrays();var Tt=512*N.overscaling;N.tilePixelRatio=Hs/Tt,N.compareText={},N.iconsNeedLinear=!1;var Bt=N.layers[0].layout,rn=N.layers[0]._unevaluatedLayout._values,an={};if(N.textSizeData.kind==="composite"){var _n=N.textSizeData,Dn=_n.minZoom,Cn=_n.maxZoom;an.compositeTextSizes=[rn["text-size"].possiblyEvaluate(new fs(Dn),ut),rn["text-size"].possiblyEvaluate(new fs(Cn),ut)]}if(N.iconSizeData.kind==="composite"){var Jn=N.iconSizeData,lr=Jn.minZoom,Ar=Jn.maxZoom;an.compositeIconSizes=[rn["icon-size"].possiblyEvaluate(new fs(lr),ut),rn["icon-size"].possiblyEvaluate(new fs(Ar),ut)]}an.layoutTextSize=rn["text-size"].possiblyEvaluate(new fs(N.zoom+1),ut),an.layoutIconSize=rn["icon-size"].possiblyEvaluate(new fs(N.zoom+1),ut),an.textMaxSize=rn["text-size"].possiblyEvaluate(new fs(18));for(var Or=Bt.get("text-line-height")*$l,jr=Bt.get("text-rotation-alignment")==="map"&&Bt.get("symbol-placement")!=="point",Jr=Bt.get("text-keep-upright"),uo=Bt.get("text-size"),ro=function(){var ni=gi[Po],Ti=Bt.get("text-font").evaluate(ni,{},ut).join(","),vi=uo.evaluate(ni,{},ut),na=an.layoutTextSize.evaluate(ni,{},ut),ea=an.layoutIconSize.evaluate(ni,{},ut),La={horizontal:{},vertical:void 0},ca=ni.text,Zi=[0,0];if(ca){var Bs=ca.toString(),Ja=Bt.get("text-letter-spacing").evaluate(ni,{},ut)*$l,Vl=function(is){for(var Vs=0,Ac=is;Vs=Hs||hy.y<0||hy.y>=Hs||function(eu,Eh,ev,_g,Ab,nw,Mb,wg,tv,py,Gx,Eb,nv,e3,my,wd,Kx,Jx,e2,Pb,Wh,t2,Rb,zm,rw){var n2,Fm,q0,rv,ov,iv=eu.addToLineVertexArray(Eh,ev),t3=0,ow=0,iw=0,aw=0,gy=-1,W0=-1,Og={},n3=yi(""),vy=0,sw=0;if(wg._unevaluatedLayout.getValue("text-radial-offset")===void 0?(vy=(n2=wg.layout.get("text-offset").evaluate(Wh,{},zm).map(function(Nm){return Nm*$l}))[0],sw=n2[1]):(vy=wg.layout.get("text-radial-offset").evaluate(Wh,{},zm)*$l,sw=W_),eu.allowVerticalPlacement&&_g.vertical){var pp=wg.layout.get("text-rotate").evaluate(Wh,{},zm)+90,r2=_g.vertical;rv=new vg(tv,Eh,py,Gx,Eb,r2,nv,e3,my,pp),Mb&&(ov=new vg(tv,Eh,py,Gx,Eb,Mb,Kx,Jx,my,pp))}if(Ab){var yy=wg.layout.get("icon-rotate").evaluate(Wh,{}),Lb=wg.layout.get("icon-text-fit")!=="none",Od=$0(Ab,yy,Rb,Lb),Sg=Mb?$0(Mb,yy,Rb,Lb):void 0;q0=new vg(tv,Eh,py,Gx,Eb,Ab,Kx,Jx,!1,yy),t3=4*Od.length;var s0=eu.iconSizeData,Ib=null;s0.kind==="source"?(Ib=[dp*wg.layout.get("icon-size").evaluate(Wh,{})])[0]>Ra&&$(eu.layerIds[0]+': Value for "icon-size" is >= '+o0+'. Reduce your "icon-size".'):s0.kind==="composite"&&((Ib=[dp*t2.compositeIconSizes[0].evaluate(Wh,{},zm),dp*t2.compositeIconSizes[1].evaluate(Wh,{},zm)])[0]>Ra||Ib[1]>Ra)&&$(eu.layerIds[0]+': Value for "icon-size" is >= '+o0+'. Reduce your "icon-size".'),eu.addSymbols(eu.icon,Od,Ib,Pb,e2,Wh,!1,Eh,iv.lineStartIndex,iv.lineLength,-1,zm),gy=eu.icon.placedSymbolArray.length-1,Sg&&(ow=4*Sg.length,eu.addSymbols(eu.icon,Sg,Ib,Pb,e2,Wh,Kf.vertical,Eh,iv.lineStartIndex,iv.lineLength,-1,zm),W0=eu.icon.placedSymbolArray.length-1)}for(var l0 in _g.horizontal){var Y0=_g.horizontal[l0];if(!Fm){n3=yi(Y0.text);var AS=wg.layout.get("text-rotate").evaluate(Wh,{},zm);Fm=new vg(tv,Eh,py,Gx,Eb,Y0,nv,e3,my,AS)}var r3=Y0.positionedLines.length===1;if(iw+=bd(eu,Eh,Y0,nw,wg,my,Wh,wd,iv,_g.vertical?Kf.horizontal:Kf.horizontalOnly,r3?Object.keys(_g.horizontal):[l0],Og,gy,t2,zm),r3)break}_g.vertical&&(aw+=bd(eu,Eh,_g.vertical,nw,wg,my,Wh,wd,iv,Kf.vertical,["vertical"],Og,W0,t2,zm));var o3=Fm?Fm.boxStartIndex:eu.collisionBoxArray.length,o2=Fm?Fm.boxEndIndex:eu.collisionBoxArray.length,i2=rv?rv.boxStartIndex:eu.collisionBoxArray.length,MS=rv?rv.boxEndIndex:eu.collisionBoxArray.length,Db=q0?q0.boxStartIndex:eu.collisionBoxArray.length,lw=q0?q0.boxEndIndex:eu.collisionBoxArray.length,ES=ov?ov.boxStartIndex:eu.collisionBoxArray.length,cw=ov?ov.boxEndIndex:eu.collisionBoxArray.length,qp=-1,av=function(Nm,uw){return Nm&&Nm.circleDiameter?Math.max(Nm.circleDiameter,uw):uw};qp=av(Fm,qp),qp=av(rv,qp),qp=av(q0,qp);var i3=(qp=av(ov,qp))>-1?1:0;i3&&(qp*=rw/$l),eu.glyphOffsetArray.length>=kl.MAX_GLYPHS&&$("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Wh.sortKey!==void 0&&eu.addToSortKeyRanges(eu.symbolInstances.length,Wh.sortKey),eu.symbolInstances.emplaceBack(Eh.x,Eh.y,Og.right>=0?Og.right:-1,Og.center>=0?Og.center:-1,Og.left>=0?Og.left:-1,Og.vertical||-1,gy,W0,n3,o3,o2,i2,MS,Db,lw,ES,cw,py,iw,aw,t3,ow,i3,0,nv,vy,sw,qp)}(is,hy,tw,Ac,Bl,Uo,ah,is.layers[0],is.collisionBoxArray,Vs.index,Vs.sourceLayerIndex,is.index,Dm,Qc,Jc,Mc,Wx,Hc,Pc,Hp,Vs,ql,Mh,il,Xs)};if(W1==="line")for(var X1=0,G1=H_(Vs.geometry,0,0,Hs,Hs);X11){var Yx=wS(Wu,_s,Ac.vertical||dc,Bl,Jf,q1);Yx&&H0(Wu,Yx)}}else if(Vs.type==="Polygon")for(var J1=0,xd=e0(Vs.geometry,0);J1=xr.maxzoom||xr.visibility!=="none"&&(u(jn,this.zoom,lt),(Yt[xr.id]=xr.createBucket({index:at.bucketLayerIDs.length,layers:jn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:fn,sourceID:this.source})).populate(dn,Qt,this.tileID.canonical),at.bucketLayerIDs.push(jn.map(function(Wn){return Wn.id})))}}}var Sr=i.mapObject(Qt.glyphDependencies,function(Wn){return Object.keys(Wn).map(Number)});Object.keys(Sr).length?yt.send("getGlyphs",{uid:this.uid,stacks:Sr},function(Wn,Kn){Lt||(Lt=Wn,xt=Kn,ir.call(Rt))}):xt={};var ar=Object.keys(Qt.iconDependencies);ar.length?yt.send("getImages",{icons:ar,source:this.source,tileID:this.tileID,type:"icons"},function(Wn,Kn){Lt||(Lt=Wn,Zt=Kn,ir.call(Rt))}):Zt={};var Fn=Object.keys(Qt.patternDependencies);function ir(){if(Lt)return zt(Lt);if(xt&&Zt&&Xt){var Wn=new p(xt),Kn=new i.ImageAtlas(Zt,Xt);for(var _r in Yt){var Ir=Yt[_r];Ir instanceof i.SymbolBucket?(u(Ir.layers,this.zoom,lt),i.performSymbolLayout(Ir,xt,Wn.positions,Zt,Kn.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Ir.hasPattern&&(Ir instanceof i.LineBucket||Ir instanceof i.FillBucket||Ir instanceof i.FillExtrusionBucket)&&(u(Ir.layers,this.zoom,lt),Ir.addFeatures(Qt,this.tileID.canonical,Kn.patternPositions))}this.status="done",zt(null,{buckets:i.values(Yt).filter(function(zr){return!zr.isEmpty()}),featureIndex:at,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Wn.image,imageAtlas:Kn,glyphMap:this.returnDependencies?xt:null,iconMap:this.returnDependencies?Zt:null,glyphPositions:this.returnDependencies?Wn.positions:null})}}Fn.length?yt.send("getImages",{icons:Fn,source:this.source,tileID:this.tileID,type:"patterns"},function(Wn,Kn){Lt||(Lt=Wn,Xt=Kn,ir.call(Rt))}):Xt={},ir.call(this)};var m=function(vt,bt,lt,yt){this.actor=vt,this.layerIndex=bt,this.availableImages=lt,this.loadVectorData=yt||h,this.loading={},this.loaded={}};m.prototype.loadTile=function(vt,bt){var lt=this,yt=vt.uid;this.loading||(this.loading={});var zt=!!(vt&&vt.request&&vt.request.collectResourceTiming)&&new i.RequestPerformance(vt.request),Rt=this.loading[yt]=new a(vt);Rt.abort=this.loadVectorData(vt,function(it,at){if(delete lt.loading[yt],it||!at)return Rt.status="done",lt.loaded[yt]=Rt,bt(it);var Lt=at.rawData,xt={};at.expires&&(xt.expires=at.expires),at.cacheControl&&(xt.cacheControl=at.cacheControl);var Zt={};if(zt){var Xt=zt.finish();Xt&&(Zt.resourceTiming=JSON.parse(JSON.stringify(Xt)))}Rt.vectorTile=at.vectorTile,Rt.parse(at.vectorTile,lt.layerIndex,lt.availableImages,lt.actor,function(Yt,Qt){if(Yt||!Qt)return bt(Yt);bt(null,i.extend({rawTileData:Lt.slice(0)},Qt,xt,Zt))}),lt.loaded=lt.loaded||{},lt.loaded[yt]=Rt})},m.prototype.reloadTile=function(vt,bt){var lt=this,yt=this.loaded,zt=vt.uid,Rt=this;if(yt&&yt[zt]){var it=yt[zt];it.showCollisionBoxes=vt.showCollisionBoxes;var at=function(Lt,xt){var Zt=it.reloadCallback;Zt&&(delete it.reloadCallback,it.parse(it.vectorTile,Rt.layerIndex,lt.availableImages,Rt.actor,Zt)),bt(Lt,xt)};it.status==="parsing"?it.reloadCallback=at:it.status==="done"&&(it.vectorTile?it.parse(it.vectorTile,this.layerIndex,this.availableImages,this.actor,at):at())}},m.prototype.abortTile=function(vt,bt){var lt=this.loading,yt=vt.uid;lt&<[yt]&<[yt].abort&&(lt[yt].abort(),delete lt[yt]),bt()},m.prototype.removeTile=function(vt,bt){var lt=this.loaded,yt=vt.uid;lt&<[yt]&&delete lt[yt],bt()};var v=i.window.ImageBitmap,_=function(){this.loaded={}};_.prototype.loadTile=function(vt,bt){var lt=vt.uid,yt=vt.encoding,zt=vt.rawImageData,Rt=v&&zt instanceof v?this.getImageData(zt):zt,it=new i.DEMData(lt,Rt,yt);this.loaded=this.loaded||{},this.loaded[lt]=it,bt(null,it)},_.prototype.getImageData=function(vt){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(vt.width,vt.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=vt.width,this.offscreenCanvas.height=vt.height,this.offscreenCanvasContext.drawImage(vt,0,0,vt.width,vt.height);var bt=this.offscreenCanvasContext.getImageData(-1,-1,vt.width+2,vt.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new i.RGBAImage({width:bt.width,height:bt.height},bt.data)},_.prototype.removeTile=function(vt){var bt=this.loaded,lt=vt.uid;bt&&bt[lt]&&delete bt[lt]};var S=function vt(bt,lt){var yt,zt=bt&&bt.type;if(zt==="FeatureCollection")for(yt=0;yt=0!=!!bt&&vt.reverse()}var R=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,M=function(vt){this._feature=vt,this.extent=i.EXTENT,this.type=vt.type,this.properties=vt.tags,"id"in vt&&!isNaN(vt.id)&&(this.id=parseInt(vt.id,10))};M.prototype.loadGeometry=function(){if(this._feature.type===1){for(var vt=[],bt=0,lt=this._feature.geometry;bt>31}function K(vt,bt){for(var lt=vt.loadGeometry(),yt=vt.type,zt=0,Rt=0,it=lt.length,at=0;at>1;Y(vt,bt,it,yt,zt,Rt%2),q(vt,bt,lt,yt,it-1,Rt+1),q(vt,bt,lt,it+1,zt,Rt+1)}}function Y(vt,bt,lt,yt,zt,Rt){for(;zt>yt;){if(zt-yt>600){var it=zt-yt+1,at=lt-yt+1,Lt=Math.log(it),xt=.5*Math.exp(2*Lt/3),Zt=.5*Math.sqrt(Lt*xt*(it-xt)/it)*(at-it/2<0?-1:1);Y(vt,bt,lt,Math.max(yt,Math.floor(lt-at*xt/it+Zt)),Math.min(zt,Math.floor(lt+(it-at)*xt/it+Zt)),Rt)}var Xt=bt[2*lt+Rt],Yt=yt,Qt=zt;for(ee(vt,bt,yt,lt),bt[2*zt+Rt]>Xt&&ee(vt,bt,yt,zt);YtXt;)Qt--}bt[2*yt+Rt]===Xt?ee(vt,bt,yt,Qt):ee(vt,bt,++Qt,zt),Qt<=lt&&(yt=Qt+1),lt<=Qt&&(zt=Qt-1)}}function ee(vt,bt,lt,yt){me(vt,lt,yt),me(bt,2*lt,2*yt),me(bt,2*lt+1,2*yt+1)}function me(vt,bt,lt){var yt=vt[bt];vt[bt]=vt[lt],vt[lt]=yt}function he(vt,bt,lt,yt){var zt=vt-lt,Rt=bt-yt;return zt*zt+Rt*Rt}k.fromVectorTileJs=I,k.fromGeojsonVt=z,k.GeoJSONWrapper=$;var se=function(vt){return vt[0]},ae=function(vt){return vt[1]},ce=function(vt,bt,lt,yt,zt){bt===void 0&&(bt=se),lt===void 0&&(lt=ae),yt===void 0&&(yt=64),zt===void 0&&(zt=Float64Array),this.nodeSize=yt,this.points=vt;for(var Rt=vt.length<65536?Uint16Array:Uint32Array,it=this.ids=new Rt(vt.length),at=this.coords=new zt(2*vt.length),Lt=0;Lt=it&&Xt<=Lt&&Yt>=at&&Yt<=xt&&Pt.push(zt[dn]);else{var vn=Math.floor((fn+Kt)/2);Xt=Rt[2*vn],Yt=Rt[2*vn+1],Xt>=it&&Xt<=Lt&&Yt>=at&&Yt<=xt&&Pt.push(zt[vn]);var Nn=(tn+1)%2;(tn===0?it<=Xt:at<=Yt)&&(Qt.push(fn),Qt.push(vn-1),Qt.push(Nn)),(tn===0?Lt>=Xt:xt>=Yt)&&(Qt.push(vn+1),Qt.push(Kt),Qt.push(Nn))}}return Pt}(this.ids,this.coords,vt,bt,lt,yt,this.nodeSize)},ce.prototype.within=function(vt,bt,lt){return function(yt,zt,Rt,it,at,Lt){for(var xt=[0,yt.length-1,0],Zt=[],Xt=at*at;xt.length;){var Yt=xt.pop(),Qt=xt.pop(),Pt=xt.pop();if(Qt-Pt<=Lt)for(var tn=Pt;tn<=Qt;tn++)he(zt[2*tn],zt[2*tn+1],Rt,it)<=Xt&&Zt.push(yt[tn]);else{var Kt=Math.floor((Pt+Qt)/2),fn=zt[2*Kt],dn=zt[2*Kt+1];he(fn,dn,Rt,it)<=Xt&&Zt.push(yt[Kt]);var vn=(Yt+1)%2;(Yt===0?Rt-at<=fn:it-at<=dn)&&(xt.push(Pt),xt.push(Kt-1),xt.push(vn)),(Yt===0?Rt+at>=fn:it+at>=dn)&&(xt.push(Kt+1),xt.push(Qt),xt.push(vn))}}return Zt}(this.ids,this.coords,vt,bt,lt,this.nodeSize)};var de={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(vt){return vt}},ve=function(vt){this.options=ze(Object.create(de),vt),this.trees=new Array(this.options.maxZoom+1)};function ye(vt,bt,lt,yt,zt){return{x:vt,y:bt,zoom:1/0,id:lt,parentId:-1,numPoints:yt,properties:zt}}function _e(vt,bt){var lt=vt.geometry.coordinates,yt=lt[0],zt=lt[1];return{x:Pe(yt),y:Ie(zt),zoom:1/0,index:bt,parentId:-1}}function Se(vt){return{type:"Feature",id:vt.id,properties:Te(vt),geometry:{type:"Point",coordinates:[(yt=vt.x,360*(yt-.5)),(bt=vt.y,lt=(180-360*bt)*Math.PI/180,360*Math.atan(Math.exp(lt))/Math.PI-90)]}};var bt,lt,yt}function Te(vt){var bt=vt.numPoints,lt=bt>=1e4?Math.round(bt/1e3)+"k":bt>=1e3?Math.round(bt/100)/10+"k":bt;return ze(ze({},vt.properties),{cluster:!0,cluster_id:vt.id,point_count:bt,point_count_abbreviated:lt})}function Pe(vt){return vt/360+.5}function Ie(vt){var bt=Math.sin(vt*Math.PI/180),lt=.5-.25*Math.log((1+bt)/(1-bt))/Math.PI;return lt<0?0:lt>1?1:lt}function ze(vt,bt){for(var lt in bt)vt[lt]=bt[lt];return vt}function De(vt){return vt.x}function He(vt){return vt.y}function Ve(vt,bt,lt,yt){for(var zt,Rt=yt,it=lt-bt>>1,at=lt-bt,Lt=vt[bt],xt=vt[bt+1],Zt=vt[lt],Xt=vt[lt+1],Yt=bt+3;YtRt)zt=Yt,Rt=Qt;else if(Qt===Rt){var Pt=Math.abs(Yt-it);Ptyt&&(zt-bt>3&&Ve(vt,bt,zt,yt),vt[zt+2]=Rt,lt-zt>3&&Ve(vt,zt,lt,yt))}function $e(vt,bt,lt,yt,zt,Rt){var it=zt-lt,at=Rt-yt;if(it!==0||at!==0){var Lt=((vt-lt)*it+(bt-yt)*at)/(it*it+at*at);Lt>1?(lt=zt,yt=Rt):Lt>0&&(lt+=it*Lt,yt+=at*Lt)}return(it=vt-lt)*it+(at=bt-yt)*at}function Oe(vt,bt,lt,yt){var zt={id:vt===void 0?null:vt,type:bt,geometry:lt,tags:yt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Rt){var it=Rt.geometry,at=Rt.type;if(at==="Point"||at==="MultiPoint"||at==="LineString")ke(Rt,it);else if(at==="Polygon"||at==="MultiLineString")for(var Lt=0;Lt0&&(it+=yt?(zt*xt-Lt*Rt)/2:Math.sqrt(Math.pow(Lt-zt,2)+Math.pow(xt-Rt,2))),zt=Lt,Rt=xt}var Zt=bt.length-3;bt[2]=1,Ve(bt,0,Zt,lt),bt[Zt+2]=1,bt.size=Math.abs(it),bt.start=0,bt.end=bt.size}function Ze(vt,bt,lt,yt){for(var zt=0;zt1?1:lt}function Ee(vt,bt,lt,yt,zt,Rt,it,at){if(yt/=bt,Rt>=(lt/=bt)&&it=yt)return null;for(var Lt=[],xt=0;xt=lt&&Pt=yt)){var tn=[];if(Yt==="Point"||Yt==="MultiPoint")Ne(Xt,tn,lt,yt,zt);else if(Yt==="LineString")je(Xt,tn,lt,yt,zt,!1,at.lineMetrics);else if(Yt==="MultiLineString")ot(Xt,tn,lt,yt,zt,!1);else if(Yt==="Polygon")ot(Xt,tn,lt,yt,zt,!0);else if(Yt==="MultiPolygon")for(var Kt=0;Kt=lt&&it<=yt&&(bt.push(vt[Rt]),bt.push(vt[Rt+1]),bt.push(vt[Rt+2]))}}function je(vt,bt,lt,yt,zt,Rt,it){for(var at,Lt,xt=nt(vt),Zt=zt===0?ht:pt,Xt=vt.start,Yt=0;Ytlt&&(Lt=Zt(xt,Qt,Pt,Kt,fn,lt),it&&(xt.start=Xt+at*Lt)):dn>yt?vn=lt&&(Lt=Zt(xt,Qt,Pt,Kt,fn,lt),Nn=!0),vn>yt&&dn<=yt&&(Lt=Zt(xt,Qt,Pt,Kt,fn,yt),Nn=!0),!Rt&&Nn&&(it&&(xt.end=Xt+at*Lt),bt.push(xt),xt=nt(vt)),it&&(Xt+=at)}var er=vt.length-3;Qt=vt[er],Pt=vt[er+1],tn=vt[er+2],(dn=zt===0?Qt:Pt)>=lt&&dn<=yt&&Ge(xt,Qt,Pt,tn),er=xt.length-3,Rt&&er>=3&&(xt[er]!==xt[0]||xt[er+1]!==xt[1])&&Ge(xt,xt[0],xt[1],xt[2]),xt.length&&bt.push(xt)}function nt(vt){var bt=[];return bt.size=vt.size,bt.start=vt.start,bt.end=vt.end,bt}function ot(vt,bt,lt,yt,zt,Rt){for(var it=0;itit.maxX&&(it.maxX=Zt),Xt>it.maxY&&(it.maxY=Xt)}return it}function Gt(vt,bt,lt,yt){var zt=bt.geometry,Rt=bt.type,it=[];if(Rt==="Point"||Rt==="MultiPoint")for(var at=0;at0&&bt.size<(zt?it:yt))lt.numPoints+=bt.length/3;else{for(var at=[],Lt=0;Ltit)&&(lt.numSimplified++,at.push(bt[Lt]),at.push(bt[Lt+1])),lt.numPoints++;zt&&function(xt,Zt){for(var Xt=0,Yt=0,Qt=xt.length,Pt=Qt-2;Yt0===Zt)for(Yt=0,Qt=xt.length;Yt24)throw new Error("maxZoom should be in the 0-24 range");if(bt.promoteId&&bt.generateId)throw new Error("promoteId and generateId cannot be used together.");var yt=function(zt,Rt){var it=[];if(zt.type==="FeatureCollection")for(var at=0;at=yt;xt--){var Zt=+Date.now();at=this._cluster(at,xt),this.trees[xt]=new ce(at,De,He,Rt,Float32Array),lt&&console.log("z%d: %d clusters in %dms",xt,at.length,+Date.now()-Zt)}return lt&&console.timeEnd("total time"),this},ve.prototype.getClusters=function(vt,bt){var lt=((vt[0]+180)%360+360)%360-180,yt=Math.max(-90,Math.min(90,vt[1])),zt=vt[2]===180?180:((vt[2]+180)%360+360)%360-180,Rt=Math.max(-90,Math.min(90,vt[3]));if(vt[2]-vt[0]>=360)lt=-180,zt=180;else if(lt>zt){var it=this.getClusters([lt,yt,180,Rt],bt),at=this.getClusters([-180,yt,zt,Rt],bt);return it.concat(at)}for(var Lt=this.trees[this._limitZoom(bt)],xt=[],Zt=0,Xt=Lt.range(Pe(lt),Ie(Rt),Pe(zt),Ie(yt));Ztbt&&(Pt+=dn.numPoints||1)}if(Pt>=at){for(var vn=Zt.x*Qt,Nn=Zt.y*Qt,er=it&&Qt>1?this._map(Zt,!0):null,En=(xt<<5)+(bt+1)+this.points.length,In=0,jn=Yt;In1)for(var Fn=0,ir=Yt;Fn>5},ve.prototype._getOriginZoom=function(vt){return(vt-this.points.length)%32},ve.prototype._map=function(vt,bt){if(vt.numPoints)return bt?ze({},vt.properties):vt.properties;var lt=this.points[vt.index].properties,yt=this.options.map(lt);return bt&&yt===lt?ze({},yt):yt},_t.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},_t.prototype.splitTile=function(vt,bt,lt,yt,zt,Rt,it){for(var at=[vt,bt,lt,yt],Lt=this.options,xt=Lt.debug;at.length;){yt=at.pop(),lt=at.pop(),bt=at.pop(),vt=at.pop();var Zt=1<1&&console.time("creation"),Yt=this.tiles[Xt]=en(vt,bt,lt,yt,Lt),this.tileCoords.push({z:bt,x:lt,y:yt}),xt)){xt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",bt,lt,yt,Yt.numFeatures,Yt.numPoints,Yt.numSimplified),console.timeEnd("creation"));var Qt="z"+bt;this.stats[Qt]=(this.stats[Qt]||0)+1,this.total++}if(Yt.source=vt,zt){if(bt===Lt.maxZoom||bt===zt)continue;var Pt=1<1&&console.time("clipping");var tn,Kt,fn,dn,vn,Nn,er=.5*Lt.buffer/Lt.extent,En=.5-er,In=.5+er,jn=1+er;tn=Kt=fn=dn=null,vn=Ee(vt,Zt,lt-er,lt+In,0,Yt.minX,Yt.maxX,Lt),Nn=Ee(vt,Zt,lt+En,lt+jn,0,Yt.minX,Yt.maxX,Lt),vt=null,vn&&(tn=Ee(vn,Zt,yt-er,yt+In,1,Yt.minY,Yt.maxY,Lt),Kt=Ee(vn,Zt,yt+En,yt+jn,1,Yt.minY,Yt.maxY,Lt),vn=null),Nn&&(fn=Ee(Nn,Zt,yt-er,yt+In,1,Yt.minY,Yt.maxY,Lt),dn=Ee(Nn,Zt,yt+En,yt+jn,1,Yt.minY,Yt.maxY,Lt),Nn=null),xt>1&&console.timeEnd("clipping"),at.push(tn||[],bt+1,2*lt,2*yt),at.push(Kt||[],bt+1,2*lt,2*yt+1),at.push(fn||[],bt+1,2*lt+1,2*yt),at.push(dn||[],bt+1,2*lt+1,2*yt+1)}}},_t.prototype.getTile=function(vt,bt,lt){var yt=this.options,zt=yt.extent,Rt=yt.debug;if(vt<0||vt>24)return null;var it=1<1&&console.log("drilling down to z%d-%d-%d",vt,bt,lt);for(var Lt,xt=vt,Zt=bt,Xt=lt;!Lt&&xt>0;)xt--,Zt=Math.floor(Zt/2),Xt=Math.floor(Xt/2),Lt=this.tiles[nn(xt,Zt,Xt)];return Lt&&Lt.source?(Rt>1&&console.log("found parent tile z%d-%d-%d",xt,Zt,Xt),Rt>1&&console.time("drilling down"),this.splitTile(Lt.source,xt,Zt,Xt,vt,bt,lt),Rt>1&&console.timeEnd("drilling down"),this.tiles[at]?It(this.tiles[at],zt):null):null};var bn=function(vt){function bt(lt,yt,zt,Rt){vt.call(this,lt,yt,zt,gn),Rt&&(this.loadGeoJSON=Rt)}return vt&&(bt.__proto__=vt),bt.prototype=Object.create(vt&&vt.prototype),bt.prototype.constructor=bt,bt.prototype.loadData=function(lt,yt){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=yt,this._pendingLoadDataParams=lt,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},bt.prototype._loadData=function(){var lt=this;if(this._pendingCallback&&this._pendingLoadDataParams){var yt=this._pendingCallback,zt=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Rt=!!(zt&&zt.request&&zt.request.collectResourceTiming)&&new i.RequestPerformance(zt.request);this.loadGeoJSON(zt,function(it,at){if(it||!at)return yt(it);if(typeof at!="object")return yt(new Error("Input data given to '"+zt.source+"' is not a valid GeoJSON object."));S(at,!0);try{if(zt.filter){var Lt=i.createExpression(zt.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Lt.result==="error")throw new Error(Lt.value.map(function(Yt){return Yt.key+": "+Yt.message}).join(", "));var xt=at.features.filter(function(Yt){return Lt.value.evaluate({zoom:0},Yt)});at={type:"FeatureCollection",features:xt}}lt._geoJSONIndex=zt.cluster?new ve(function(Yt){var Qt=Yt.superclusterOptions,Pt=Yt.clusterProperties;if(!Pt||!Qt)return Qt;for(var tn={},Kt={},fn={accumulated:null,zoom:0},dn={properties:null},vn=Object.keys(Pt),Nn=0,er=vn;Nn=0?0:J.button},w.remove=function(J){J.parentNode&&J.parentNode.removeChild(J)};var A=function(J){function le(){J.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.isLoaded=function(){return this.loaded},le.prototype.setLoaded=function(ie){if(this.loaded!==ie&&(this.loaded=ie,ie)){for(var V=0,ne=this.requestors;V=0?1.2:1))}function E(J,le,ie,V,ne,ge,xe){for(var Me=0;Me65535)Je(new Error("glyphs > 65535 not supported"));else if(mt.ranges[Vt])Je(null,{stack:rt,id:dt,glyph:Et});else{var jt=mt.requests[Vt];jt||(jt=mt.requests[Vt]=[],L.loadGlyphRange(rt,Vt,ie.url,ie.requestManager,function(Nt,cn){if(cn){for(var sn in cn)ie._doesCharSupportLocalGlyph(+sn)||(mt.glyphs[+sn]=cn[+sn]);mt.ranges[Vt]=!0}for(var xn=0,pn=jt;xn1&&(Fe=J[++Me]);var rt=Math.abs(Je-Fe.left),dt=Math.abs(Je-Fe.right),mt=Math.min(rt,dt),Et=void 0,Vt=ne/ie*(V+1);if(Fe.isDash){var jt=V-Math.abs(Vt);Et=Math.sqrt(mt*mt+jt*jt)}else Et=V-Math.sqrt(mt*mt+Vt*Vt);this.data[xe+Je]=Math.max(0,Math.min(255,Et+128))}},$.prototype.addRegularDash=function(J){for(var le=J.length-1;le>=0;--le){var ie=J[le],V=J[le+1];ie.zeroLength?J.splice(le,1):V&&V.isDash===ie.isDash&&(V.left=ie.left,J.splice(le,1))}var ne=J[0],ge=J[J.length-1];ne.isDash===ge.isDash&&(ne.left=ge.left-this.width,ge.right=ne.right+this.width);for(var xe=this.width*this.nextRow,Me=0,Fe=J[Me],Je=0;Je1&&(Fe=J[++Me]);var rt=Math.abs(Je-Fe.left),dt=Math.abs(Je-Fe.right),mt=Math.min(rt,dt),Et=Fe.isDash?mt:-mt;this.data[xe+Je]=Math.max(0,Math.min(255,Et+128))}},$.prototype.addDash=function(J,le){var ie=le?7:0,V=2*ie+1;if(this.nextRow+V>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var ne=0,ge=0;ge=ie&&J.x=V&&J.y0&&(Je[new i.OverscaledTileID(ie.overscaledZ,xe,V.z,ge,V.y-1).key]={backfilled:!1},Je[new i.OverscaledTileID(ie.overscaledZ,ie.wrap,V.z,V.x,V.y-1).key]={backfilled:!1},Je[new i.OverscaledTileID(ie.overscaledZ,Fe,V.z,Me,V.y-1).key]={backfilled:!1}),V.y+10&&(ne.resourceTiming=ie._resourceTiming,ie._resourceTiming=[]),ie.fire(new i.Event("data",ne))}})},le.prototype.onAdd=function(ie){this.map=ie,this.load()},le.prototype.setData=function(ie){var V=this;return this._data=ie,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(ne){if(ne)V.fire(new i.ErrorEvent(ne));else{var ge={dataType:"source",sourceDataType:"content"};V._collectResourceTiming&&V._resourceTiming&&V._resourceTiming.length>0&&(ge.resourceTiming=V._resourceTiming,V._resourceTiming=[]),V.fire(new i.Event("data",ge))}}),this},le.prototype.getClusterExpansionZoom=function(ie,V){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:ie,source:this.id},V),this},le.prototype.getClusterChildren=function(ie,V){return this.actor.send("geojson.getClusterChildren",{clusterId:ie,source:this.id},V),this},le.prototype.getClusterLeaves=function(ie,V,ne,ge){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:ie,limit:V,offset:ne},ge),this},le.prototype._updateWorkerData=function(ie){var V=this;this._loaded=!1;var ne=i.extend({},this.workerOptions),ge=this._data;typeof ge=="string"?(ne.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ge),i.ResourceType.Source),ne.request.collectResourceTiming=this._collectResourceTiming):ne.data=JSON.stringify(ge),this.actor.send(this.type+".loadData",ne,function(xe,Me){V._removed||Me&&Me.abandoned||(V._loaded=!0,Me&&Me.resourceTiming&&Me.resourceTiming[V.id]&&(V._resourceTiming=Me.resourceTiming[V.id].slice(0)),V.actor.send(V.type+".coalesce",{source:ne.source},null),ie(xe))})},le.prototype.loaded=function(){return this._loaded},le.prototype.loadTile=function(ie,V){var ne=this,ge=ie.actor?"reloadTile":"loadTile";ie.actor=this.actor;var xe={type:this.type,uid:ie.uid,tileID:ie.tileID,zoom:ie.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};ie.request=this.actor.send(ge,xe,function(Me,Fe){return delete ie.request,ie.unloadVectorData(),ie.aborted?V(null):Me?V(Me):(ie.loadVectorData(Fe,ne.map.painter,ge==="reloadTile"),V(null))})},le.prototype.abortTile=function(ie){ie.request&&(ie.request.cancel(),delete ie.request),ie.aborted=!0},le.prototype.unloadTile=function(ie){ie.unloadVectorData(),this.actor.send("removeTile",{uid:ie.uid,type:this.type,source:this.id})},le.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},le.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},le.prototype.hasTransition=function(){return!1},le}(i.Evented),oe=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),q=function(J){function le(ie,V,ne,ge){J.call(this),this.id=ie,this.dispatcher=ne,this.coordinates=V.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ge),this.options=V}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(ie,V){var ne=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ge,xe){ne._loaded=!0,ge?ne.fire(new i.ErrorEvent(ge)):xe&&(ne.image=xe,ie&&(ne.coordinates=ie),V&&V(),ne._finishLoading())})},le.prototype.loaded=function(){return this._loaded},le.prototype.updateImage=function(ie){var V=this;return this.image&&ie.url?(this.options.url=ie.url,this.load(ie.coordinates,function(){V.texture=null}),this):this},le.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},le.prototype.onAdd=function(ie){this.map=ie,this.load()},le.prototype.setCoordinates=function(ie){var V=this;this.coordinates=ie;var ne=ie.map(i.MercatorCoordinate.fromLngLat);this.tileID=function(xe){for(var Me=1/0,Fe=1/0,Je=-1/0,rt=-1/0,dt=0,mt=xe;dtV.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+V.start(0)+" and "+V.end(0)+"-second mark."))):this.video.currentTime=ie}},le.prototype.getVideo=function(){return this.video},le.prototype.onAdd=function(ie){this.map||(this.map=ie,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},le.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var ie=this.map.painter.context,V=ie.gl;for(var ne in this.boundsBuffer||(this.boundsBuffer=ie.createVertexBuffer(this._boundsArray,oe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE),V.texSubImage2D(V.TEXTURE_2D,0,0,0,V.RGBA,V.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(ie,this.video,V.RGBA),this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE)),this.tiles){var ge=this.tiles[ne];ge.state!=="loaded"&&(ge.state="loaded",ge.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this.video&&!this.video.paused},le}(q),ee=function(J){function le(ie,V,ne,ge){J.call(this,ie,V,ne,ge),V.coordinates?Array.isArray(V.coordinates)&&V.coordinates.length===4&&!V.coordinates.some(function(xe){return!Array.isArray(xe)||xe.length!==2||xe.some(function(Me){return typeof Me!="number"})})||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'missing required property "coordinates"'))),V.animate&&typeof V.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'optional "animate" property must be a boolean value'))),V.canvas?typeof V.canvas=="string"||V.canvas instanceof i.window.HTMLCanvasElement||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ie,null,'missing required property "canvas"'))),this.options=V,this.animate=V.animate===void 0||V.animate}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},le.prototype.getCanvas=function(){return this.canvas},le.prototype.onAdd=function(ie){this.map=ie,this.load(),this.canvas&&this.animate&&this.play()},le.prototype.onRemove=function(){this.pause()},le.prototype.prepare=function(){var ie=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ie=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ie=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var V=this.map.painter.context,ne=V.gl;for(var ge in this.boundsBuffer||(this.boundsBuffer=V.createVertexBuffer(this._boundsArray,oe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ie||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(V,this.canvas,ne.RGBA,{premultiply:!0}),this.tiles){var xe=this.tiles[ge];xe.state!=="loaded"&&(xe.state="loaded",xe.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this._playing},le.prototype._hasInvalidDimensions=function(){for(var ie=0,V=[this.canvas.width,this.canvas.height];iethis.max){var xe=this._getAndRemoveByKey(this.order[0]);xe&&this.onRemove(xe)}return this},ce.prototype.has=function(J){return J.wrapped().key in this.data},ce.prototype.getAndRemove=function(J){return this.has(J)?this._getAndRemoveByKey(J.wrapped().key):null},ce.prototype._getAndRemoveByKey=function(J){var le=this.data[J].shift();return le.timeout&&clearTimeout(le.timeout),this.data[J].length===0&&delete this.data[J],this.order.splice(this.order.indexOf(J),1),le.value},ce.prototype.getByKey=function(J){var le=this.data[J];return le?le[0].value:null},ce.prototype.get=function(J){return this.has(J)?this.data[J.wrapped().key][0].value:null},ce.prototype.remove=function(J,le){if(!this.has(J))return this;var ie=J.wrapped().key,V=le===void 0?0:this.data[ie].indexOf(le),ne=this.data[ie][V];return this.data[ie].splice(V,1),ne.timeout&&clearTimeout(ne.timeout),this.data[ie].length===0&&delete this.data[ie],this.onRemove(ne.value),this.order.splice(this.order.indexOf(ie),1),this},ce.prototype.setMaxSize=function(J){for(this.max=J;this.order.length>this.max;){var le=this._getAndRemoveByKey(this.order[0]);le&&this.onRemove(le)}return this},ce.prototype.filter=function(J){var le=[];for(var ie in this.data)for(var V=0,ne=this.data[ie];V1||(Math.abs(rt)>1&&(Math.abs(rt+mt)===1?rt+=mt:Math.abs(rt-mt)===1&&(rt-=mt)),Je.dem&&Fe.dem&&(Fe.dem.backfillBorder(Je.dem,rt,dt),Fe.neighboringTiles&&Fe.neighboringTiles[Et]&&(Fe.neighboringTiles[Et].backfilled=!0)))}},le.prototype.getTile=function(ie){return this.getTileByID(ie.key)},le.prototype.getTileByID=function(ie){return this._tiles[ie]},le.prototype._retainLoadedChildren=function(ie,V,ne,ge){for(var xe in this._tiles){var Me=this._tiles[xe];if(!(ge[xe]||!Me.hasData()||Me.tileID.overscaledZ<=V||Me.tileID.overscaledZ>ne)){for(var Fe=Me.tileID;Me&&Me.tileID.overscaledZ>V+1;){var Je=Me.tileID.scaledTo(Me.tileID.overscaledZ-1);(Me=this._tiles[Je.key])&&Me.hasData()&&(Fe=Je)}for(var rt=Fe;rt.overscaledZ>V;)if(ie[(rt=rt.scaledTo(rt.overscaledZ-1)).key]){ge[Fe.key]=Fe;break}}}},le.prototype.findLoadedParent=function(ie,V){if(ie.key in this._loadedParentTiles){var ne=this._loadedParentTiles[ie.key];return ne&&ne.tileID.overscaledZ>=V?ne:null}for(var ge=ie.overscaledZ-1;ge>=V;ge--){var xe=ie.scaledTo(ge),Me=this._getLoadedTile(xe);if(Me)return Me}},le.prototype._getLoadedTile=function(ie){var V=this._tiles[ie.key];return V&&V.hasData()?V:this._cache.getByKey(ie.wrapped().key)},le.prototype.updateCacheSize=function(ie){var V=(Math.ceil(ie.width/this._source.tileSize)+1)*(Math.ceil(ie.height/this._source.tileSize)+1),ne=Math.floor(5*V),ge=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ne):ne;this._cache.setMaxSize(ge)},le.prototype.handleWrapJump=function(ie){var V=(ie-(this._prevLng===void 0?ie:this._prevLng))/360,ne=Math.round(V);if(this._prevLng=ie,ne){var ge={};for(var xe in this._tiles){var Me=this._tiles[xe];Me.tileID=Me.tileID.unwrapTo(Me.tileID.wrap+ne),ge[Me.tileID.key]=Me}for(var Fe in this._tiles=ge,this._timers)clearTimeout(this._timers[Fe]),delete this._timers[Fe];for(var Je in this._tiles){var rt=this._tiles[Je];this._setTileReloadTimer(Je,rt)}}},le.prototype.update=function(ie){var V=this;if(this.transform=ie,this._sourceLoaded&&!this._paused){var ne;this.updateCacheSize(ie),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?ne=ie.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(An){return new i.OverscaledTileID(An.canonical.z,An.wrap,An.canonical.z,An.canonical.x,An.canonical.y)}):(ne=ie.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(ne=ne.filter(function(An){return V._source.hasTile(An)}))):ne=[];var ge=ie.coveringZoomLevel(this._source),xe=Math.max(ge-le.maxOverzooming,this._source.minzoom),Me=Math.max(ge+le.maxUnderzooming,this._source.minzoom),Fe=this._updateRetainedTiles(ne,ge);if(it(this._source.type)){for(var Je={},rt={},dt=0,mt=Object.keys(Fe);dtthis._source.maxzoom){var cn=jt.children(this._source.maxzoom)[0],sn=this.getTile(cn);if(sn&&sn.hasData()){ne[cn.key]=cn;continue}}else{var xn=jt.children(this._source.maxzoom);if(ne[xn[0].key]&&ne[xn[1].key]&&ne[xn[2].key]&&ne[xn[3].key])continue}for(var pn=Nt.wasRequested(),Ln=jt.overscaledZ-1;Ln>=xe;--Ln){var On=jt.scaledTo(Ln);if(ge[On.key]||(ge[On.key]=!0,!(Nt=this.getTile(On))&&pn&&(Nt=this._addTile(On)),Nt&&(ne[On.key]=On,pn=Nt.wasRequested(),Nt.hasData())))break}}}return ne},le.prototype._updateLoadedParentTileCache=function(){for(var ie in this._loadedParentTiles={},this._tiles){for(var V=[],ne=void 0,ge=this._tiles[ie].tileID;ge.overscaledZ>0;){if(ge.key in this._loadedParentTiles){ne=this._loadedParentTiles[ge.key];break}V.push(ge.key);var xe=ge.scaledTo(ge.overscaledZ-1);if(ne=this._getLoadedTile(xe))break;ge=xe}for(var Me=0,Fe=V;Me0||(V.hasData()&&V.state!=="reloading"?this._cache.add(V.tileID,V,V.getExpiryTimeout()):(V.aborted=!0,this._abortTile(V),this._unloadTile(V))))},le.prototype.clearTiles=function(){for(var ie in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(ie);this._cache.reset()},le.prototype.tilesIn=function(ie,V,ne){var ge=this,xe=[],Me=this.transform;if(!Me)return xe;for(var Fe=ne?Me.getCameraQueryGeometry(ie):ie,Je=ie.map(function(Ln){return Me.pointCoordinate(Ln)}),rt=Fe.map(function(Ln){return Me.pointCoordinate(Ln)}),dt=this.getIds(),mt=1/0,Et=1/0,Vt=-1/0,jt=-1/0,Nt=0,cn=rt;Nt=0&&Dr[1].y+rr>=0){var Pr=Je.map(function(Mo){return An.getTilePoint(Mo)}),Zr=rt.map(function(Mo){return An.getTilePoint(Mo)});xe.push({tile:On,tileID:An,queryGeometry:Pr,cameraQueryGeometry:Zr,scale:Sn})}}},pn=0;pn=i.browser.now())return!0}return!1},le.prototype.setFeatureState=function(ie,V,ne){ie=ie||"_geojsonTileLayer",this._state.updateState(ie,V,ne)},le.prototype.removeFeatureState=function(ie,V,ne){ie=ie||"_geojsonTileLayer",this._state.removeFeatureState(ie,V,ne)},le.prototype.getFeatureState=function(ie,V){return ie=ie||"_geojsonTileLayer",this._state.getState(ie,V)},le.prototype.setDependencies=function(ie,V,ne){var ge=this._tiles[ie];ge&&ge.setDependencies(V,ne)},le.prototype.reloadTilesForDependencies=function(ie,V){for(var ne in this._tiles)this._tiles[ne].hasDependency(ie,V)&&this._reloadTile(ne,"reloading");this._cache.filter(function(ge){return!ge.hasDependency(ie,V)})},le}(i.Evented);function Rt(J,le){var ie=Math.abs(2*J.wrap)-+(J.wrap<0),V=Math.abs(2*le.wrap)-+(le.wrap<0);return J.overscaledZ-le.overscaledZ||V-ie||le.canonical.y-J.canonical.y||le.canonical.x-J.canonical.x}function it(J){return J==="raster"||J==="image"||J==="video"}function at(){return new i.window.Worker(Ft.workerUrl)}zt.maxOverzooming=10,zt.maxUnderzooming=3;var Lt="mapboxgl_preloaded_worker_pool",xt=function(){this.active={}};xt.prototype.acquire=function(J){if(!this.workers)for(this.workers=[];this.workers.length0?(V-ge)/xe:0;return this.points[ne].mult(1-Me).add(this.points[le].mult(Me))};var xr=function(J,le,ie){var V=this.boxCells=[],ne=this.circleCells=[];this.xCellCount=Math.ceil(J/ie),this.yCellCount=Math.ceil(le/ie);for(var ge=0;ge=-le[0]&&ie<=le[0]&&V>=-le[1]&&V<=le[1]}function Kn(J,le,ie,V,ne,ge,xe,Me){var Fe=V?J.textSizeData:J.iconSizeData,Je=i.evaluateSizeForZoom(Fe,ie.transform.zoom),rt=[256/ie.width*2+1,256/ie.height*2+1],dt=V?J.text.dynamicLayoutVertexArray:J.icon.dynamicLayoutVertexArray;dt.clear();for(var mt=J.lineVertexArray,Et=V?J.text.placedSymbolArray:J.icon.placedSymbolArray,Vt=ie.transform.width/ie.transform.height,jt=!1,Nt=0;NtMath.abs(ie.x-le.x)*V?{useVertical:!0}:(J===i.WritingMode.vertical?le.yie.x)?{needsFlipping:!0}:null}function zr(J,le,ie,V,ne,ge,xe,Me,Fe,Je,rt,dt,mt,Et){var Vt,jt=le/24,Nt=J.lineOffsetX*jt,cn=J.lineOffsetY*jt;if(J.numGlyphs>1){var sn=J.glyphStartIndex+J.numGlyphs,xn=J.lineStartIndex,pn=J.lineStartIndex+J.lineLength,Ln=_r(jt,Me,Nt,cn,ie,rt,dt,J,Fe,ge,mt);if(!Ln)return{notEnoughRoom:!0};var On=Fn(Ln.first.point,xe).point,An=Fn(Ln.last.point,xe).point;if(V&&!ie){var Sn=Ir(J.writingMode,On,An,Et);if(Sn)return Sn}Vt=[Ln.first];for(var rr=J.glyphStartIndex+1;rr0?Mo.point:Fr(dt,Zr,Dr,1,ne),vo=Ir(J.writingMode,Dr,$o,Et);if(vo)return vo}var zo=Rr(jt*Me.getoffsetX(J.glyphStartIndex),Nt,cn,ie,rt,dt,J.segment,J.lineStartIndex,J.lineStartIndex+J.lineLength,Fe,ge,mt);if(!zo)return{notEnoughRoom:!0};Vt=[zo]}for(var yi=0,Si=Vt;yi0?1:-1,Vt=0;V&&(Et*=-1,Vt=Math.PI),Et<0&&(Vt+=Math.PI);for(var jt=Et>0?Me+xe:Me+xe+1,Nt=ne,cn=ne,sn=0,xn=0,pn=Math.abs(mt),Ln=[];sn+xn<=pn;){if((jt+=Et)=Fe)return null;if(cn=Nt,Ln.push(Nt),(Nt=dt[jt])===void 0){var On=new i.Point(Je.getx(jt),Je.gety(jt)),An=Fn(On,rt);if(An.signedDistanceFromCamera>0)Nt=dt[jt]=An.point;else{var Sn=jt-Et;Nt=Fr(sn===0?ge:new i.Point(Je.getx(Sn),Je.gety(Sn)),On,cn,pn-sn+1,rt)}}sn+=xn,xn=cn.dist(Nt)}var rr=(pn-sn)/xn,Dr=Nt.sub(cn),Pr=Dr.mult(rr)._add(cn);Pr._add(Dr._unit()._perp()._mult(ie*Et));var Zr=Vt+Math.atan2(Nt.y-cn.y,Nt.x-cn.x);return Ln.push(Pr),{point:Pr,angle:Zr,path:Ln}}xr.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},xr.prototype.insert=function(J,le,ie,V,ne){this._forEachCell(le,ie,V,ne,this._insertBoxCell,this.boxUid++),this.boxKeys.push(J),this.bboxes.push(le),this.bboxes.push(ie),this.bboxes.push(V),this.bboxes.push(ne)},xr.prototype.insertCircle=function(J,le,ie,V){this._forEachCell(le-V,ie-V,le+V,ie+V,this._insertCircleCell,this.circleUid++),this.circleKeys.push(J),this.circles.push(le),this.circles.push(ie),this.circles.push(V)},xr.prototype._insertBoxCell=function(J,le,ie,V,ne,ge){this.boxCells[ne].push(ge)},xr.prototype._insertCircleCell=function(J,le,ie,V,ne,ge){this.circleCells[ne].push(ge)},xr.prototype._query=function(J,le,ie,V,ne,ge){if(ie<0||J>this.width||V<0||le>this.height)return!ne&&[];var xe=[];if(J<=0&&le<=0&&this.width<=ie&&this.height<=V){if(ne)return!0;for(var Me=0;Me0:xe},xr.prototype._queryCircle=function(J,le,ie,V,ne){var ge=J-ie,xe=J+ie,Me=le-ie,Fe=le+ie;if(xe<0||ge>this.width||Fe<0||Me>this.height)return!V&&[];var Je=[],rt={hitTest:V,circle:{x:J,y:le,radius:ie},seenUids:{box:{},circle:{}}};return this._forEachCell(ge,Me,xe,Fe,this._queryCellCircle,Je,rt,ne),V?Je.length>0:Je},xr.prototype.query=function(J,le,ie,V,ne){return this._query(J,le,ie,V,!1,ne)},xr.prototype.hitTest=function(J,le,ie,V,ne){return this._query(J,le,ie,V,!0,ne)},xr.prototype.hitTestCircle=function(J,le,ie,V){return this._queryCircle(J,le,ie,!0,V)},xr.prototype._queryCell=function(J,le,ie,V,ne,ge,xe,Me){var Fe=xe.seenUids,Je=this.boxCells[ne];if(Je!==null)for(var rt=this.bboxes,dt=0,mt=Je;dt=rt[Vt+0]&&V>=rt[Vt+1]&&(!Me||Me(this.boxKeys[Et]))){if(xe.hitTest)return ge.push(!0),!0;ge.push({key:this.boxKeys[Et],x1:rt[Vt],y1:rt[Vt+1],x2:rt[Vt+2],y2:rt[Vt+3]})}}}var jt=this.circleCells[ne];if(jt!==null)for(var Nt=this.circles,cn=0,sn=jt;cnxe*xe+Me*Me},xr.prototype._circleAndRectCollide=function(J,le,ie,V,ne,ge,xe){var Me=(ge-V)/2,Fe=Math.abs(J-(V+Me));if(Fe>Me+ie)return!1;var Je=(xe-ne)/2,rt=Math.abs(le-(ne+Je));if(rt>Je+ie)return!1;if(Fe<=Me||rt<=Je)return!0;var dt=Fe-Me,mt=rt-Je;return dt*dt+mt*mt<=ie*ie};var $r=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Kr(J,le){for(var ie=0;ie=1;$o--)Mo.push(Pr.path[$o]);for(var vo=1;vo0){for(var Hr=Mo[0].clone(),Lo=Mo[0].clone(),ki=1;ki=Sn.x&&Lo.x<=rr.x&&Hr.y>=Sn.y&&Lo.y<=rr.y?[Mo]:Lo.xrr.x||Lo.yrr.y?[]:i.clipLine([Mo],Sn.x,Sn.y,rr.x,rr.y)}for(var Io=0,$i=Si;Io<$i.length;Io+=1){var Ui=$i[Io];Dr.reset(Ui,.25*An);var ba;ba=Dr.length<=.5*An?1:Math.ceil(Dr.paddedLength/zo)+1;for(var Pi=0;Pi=this.screenRightBoundary||Vthis.screenBottomBoundary},So.prototype.isInsideGrid=function(J,le,ie,V){return ie>=0&&J=0&&le0?(this.prevPlacement&&this.prevPlacement.variableOffsets[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID].text&&(jt=this.prevPlacement.variableOffsets[dt.crossTileID].anchor),this.variableOffsets[dt.crossTileID]={textOffset:Nt,width:ie,height:V,anchor:J,textBoxScale:ne,prevAnchor:jt},this.markUsedJustification(mt,J,dt,Et),mt.allowVerticalPlacement&&(this.markUsedOrientation(mt,Et,dt),this.placedOrientations[dt.crossTileID]=Et),{shift:cn,placedGlyphBoxes:sn}):void 0},Wr.prototype.placeLayerBucketPart=function(J,le,ie){var V=this,ne=J.parameters,ge=ne.bucket,xe=ne.layout,Me=ne.posMatrix,Fe=ne.textLabelPlaneMatrix,Je=ne.labelToScreenMatrix,rt=ne.textPixelRatio,dt=ne.holdingForFade,mt=ne.collisionBoxArray,Et=ne.partiallyEvaluatedTextSize,Vt=ne.collisionGroup,jt=xe.get("text-optional"),Nt=xe.get("icon-optional"),cn=xe.get("text-allow-overlap"),sn=xe.get("icon-allow-overlap"),xn=xe.get("text-rotation-alignment")==="map",pn=xe.get("text-pitch-alignment")==="map",Ln=xe.get("icon-text-fit")!=="none",On=xe.get("symbol-z-order")==="viewport-y",An=cn&&(sn||!ge.hasIconData()||Nt),Sn=sn&&(cn||!ge.hasTextData()||jt);!ge.collisionArrays&&mt&&ge.deserializeCollisionBoxes(mt);var rr=function(vo,zo){if(!le[vo.crossTileID])if(dt)V.placements[vo.crossTileID]=new Yn(!1,!1,!1);else{var yi,Si=!1,Hr=!1,Lo=!0,ki=null,Io={box:null,offscreen:null},$i={box:null,offscreen:null},Ui=null,ba=null,Pi=0,ds=0,mr=0;zo.textFeatureIndex?Pi=zo.textFeatureIndex:vo.useRuntimeCollisionCircles&&(Pi=vo.featureIndex),zo.verticalTextFeatureIndex&&(ds=zo.verticalTextFeatureIndex);var bs=zo.textBox;if(bs){var Pl=function(tc){var Wf=i.WritingMode.horizontal;if(ge.allowVerticalPlacement&&!tc&&V.prevPlacement){var Rl=V.prevPlacement.placedOrientations[vo.crossTileID];Rl&&(V.placedOrientations[vo.crossTileID]=Rl,Wf=Rl,V.markUsedOrientation(ge,Wf,vo))}return Wf},Ys=function(tc,Wf){if(ge.allowVerticalPlacement&&vo.numVerticalGlyphVertices>0&&zo.verticalTextBox)for(var Rl=0,cg=ge.writingModes;Rl0&&(hl=hl.filter(function(tc){return tc!==hs.anchor})).unshift(hs.anchor)}var Pa=function(tc,Wf,Rl){for(var cg=tc.x2-tc.x1,E0=tc.y2-tc.y1,xm=vo.textBoxScale,Cx=Ln&&!sn?Wf:null,eh={box:[],offscreen:!1},Ax=cn?2*hl.length:hl.length,Wg=0;Wg=hl.length,oc=V.attemptAnchorPlacement(Mx,tc,cg,E0,xm,xn,pn,rt,Me,Vt,k1,vo,ge,Rl,Cx);if(oc&&(eh=oc.placedGlyphBoxes)&&eh.box&&eh.box.length){Si=!0,ki=oc.shift;break}}return eh};Ys(function(){return Pa(bs,zo.iconBox,i.WritingMode.horizontal)},function(){var tc=zo.verticalTextBox,Wf=Io&&Io.box&&Io.box.length;return ge.allowVerticalPlacement&&!Wf&&vo.numVerticalGlyphVertices>0&&tc?Pa(tc,zo.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}}),Io&&(Si=Io.box,Lo=Io.offscreen);var Rs=Pl(Io&&Io.box);if(!Si&&V.prevPlacement){var Ls=V.prevPlacement.variableOffsets[vo.crossTileID];Ls&&(V.variableOffsets[vo.crossTileID]=Ls,V.markUsedJustification(ge,Ls.anchor,vo,Rs))}}else{var ol=function(tc,Wf){var Rl=V.collisionIndex.placeCollisionBox(tc,cn,rt,Me,Vt.predicate);return Rl&&Rl.box&&Rl.box.length&&(V.markUsedOrientation(ge,Wf,vo),V.placedOrientations[vo.crossTileID]=Wf),Rl};Ys(function(){return ol(bs,i.WritingMode.horizontal)},function(){var tc=zo.verticalTextBox;return ge.allowVerticalPlacement&&vo.numVerticalGlyphVertices>0&&tc?ol(tc,i.WritingMode.vertical):{box:null,offscreen:null}}),Pl(Io&&Io.box&&Io.box.length)}}if(Si=(yi=Io)&&yi.box&&yi.box.length>0,Lo=yi&&yi.offscreen,vo.useRuntimeCollisionCircles){var Is=ge.text.placedSymbolArray.get(vo.centerJustifiedTextSymbolIndex),Ds=i.evaluateSizeForFeature(ge.textSizeData,Et,Is),ec=xe.get("text-padding"),Tc=vo.collisionCircleDiameter;Ui=V.collisionIndex.placeCollisionCircles(cn,Is,ge.lineVertexArray,ge.glyphOffsetArray,Ds,Me,Fe,Je,ie,pn,Vt.predicate,Tc,ec),Si=cn||Ui.circles.length>0&&!Ui.collisionDetected,Lo=Lo&&Ui.offscreen}if(zo.iconFeatureIndex&&(mr=zo.iconFeatureIndex),zo.iconBox){var op=function(tc){var Wf=Ln&&ki?Qr(tc,ki.x,ki.y,xn,pn,V.transform.angle):tc;return V.collisionIndex.placeCollisionBox(Wf,sn,rt,Me,Vt.predicate)};Hr=$i&&$i.box&&$i.box.length&&zo.verticalIconBox?(ba=op(zo.verticalIconBox)).box.length>0:(ba=op(zo.iconBox)).box.length>0,Lo=Lo&&ba.offscreen}var ip=jt||vo.numHorizontalGlyphVertices===0&&vo.numVerticalGlyphVertices===0,Hs=Nt||vo.numIconVertices===0;if(ip||Hs?Hs?ip||(Hr=Hr&&Si):Si=Hr&&Si:Hr=Si=Hr&&Si,Si&&yi&&yi.box&&($i&&$i.box&&ds?V.collisionIndex.insertCollisionBox(yi.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,ds,Vt.ID):V.collisionIndex.insertCollisionBox(yi.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,Pi,Vt.ID)),Hr&&ba&&V.collisionIndex.insertCollisionBox(ba.box,xe.get("icon-ignore-placement"),ge.bucketInstanceId,mr,Vt.ID),Ui&&(Si&&V.collisionIndex.insertCollisionCircles(Ui.circles,xe.get("text-ignore-placement"),ge.bucketInstanceId,Pi,Vt.ID),ie)){var wh=ge.bucketInstanceId,pd=V.collisionCircleArrays[wh];pd===void 0&&(pd=V.collisionCircleArrays[wh]=new br);for(var qf=0;qf=0;--Pr){var Zr=Dr[Pr];rr(ge.symbolInstances.get(Zr),ge.collisionArrays[Zr])}else for(var Mo=J.symbolInstanceStart;Mo=0&&(J.text.placedSymbolArray.get(Fe).crossTileID=ne>=0&&Fe!==ne?0:ie.crossTileID)}},Wr.prototype.markUsedOrientation=function(J,le,ie){for(var V=le===i.WritingMode.horizontal||le===i.WritingMode.horizontalOnly?le:0,ne=le===i.WritingMode.vertical?le:0,ge=0,xe=[ie.leftJustifiedTextSymbolIndex,ie.centerJustifiedTextSymbolIndex,ie.rightJustifiedTextSymbolIndex];ge0||pn>0,rr=sn.numIconVertices>0,Dr=V.placedOrientations[sn.crossTileID],Pr=Dr===i.WritingMode.vertical,Zr=Dr===i.WritingMode.horizontal||Dr===i.WritingMode.horizontalOnly;if(Sn){var Mo=vr(An.text),$o=Pr?nr:Mo;Et(J.text,xn,$o);var vo=Zr?nr:Mo;Et(J.text,pn,vo);var zo=An.text.isHidden();[sn.rightJustifiedTextSymbolIndex,sn.centerJustifiedTextSymbolIndex,sn.leftJustifiedTextSymbolIndex].forEach(function(mr){mr>=0&&(J.text.placedSymbolArray.get(mr).hidden=zo||Pr?1:0)}),sn.verticalPlacedTextSymbolIndex>=0&&(J.text.placedSymbolArray.get(sn.verticalPlacedTextSymbolIndex).hidden=zo||Zr?1:0);var yi=V.variableOffsets[sn.crossTileID];yi&&V.markUsedJustification(J,yi.anchor,sn,Dr);var Si=V.placedOrientations[sn.crossTileID];Si&&(V.markUsedJustification(J,"left",sn,Si),V.markUsedOrientation(J,Si,sn))}if(rr){var Hr=vr(An.icon),Lo=!(dt&&sn.verticalPlacedIconSymbolIndex&&Pr);if(sn.placedIconSymbolIndex>=0){var ki=Lo?Hr:nr;Et(J.icon,sn.numIconVertices,ki),J.icon.placedSymbolArray.get(sn.placedIconSymbolIndex).hidden=An.icon.isHidden()}if(sn.verticalPlacedIconSymbolIndex>=0){var Io=Lo?nr:Hr;Et(J.icon,sn.numVerticalIconVertices,Io),J.icon.placedSymbolArray.get(sn.verticalPlacedIconSymbolIndex).hidden=An.icon.isHidden()}}if(J.hasIconCollisionBoxData()||J.hasTextCollisionBoxData()){var $i=J.collisionArrays[cn];if($i){var Ui=new i.Point(0,0);if($i.textBox||$i.verticalTextBox){var ba=!0;if(Fe){var Pi=V.variableOffsets[Ln];Pi?(Ui=io(Pi.anchor,Pi.width,Pi.height,Pi.textOffset,Pi.textBoxScale),Je&&Ui._rotate(rt?V.transform.angle:-V.transform.angle)):ba=!1}$i.textBox&&bo(J.textCollisionBox.collisionVertexArray,An.text.placed,!ba||Pr,Ui.x,Ui.y),$i.verticalTextBox&&bo(J.textCollisionBox.collisionVertexArray,An.text.placed,!ba||Zr,Ui.x,Ui.y)}var ds=!!(!Zr&&$i.verticalIconBox);$i.iconBox&&bo(J.iconCollisionBox.collisionVertexArray,An.icon.placed,ds,dt?Ui.x:0,dt?Ui.y:0),$i.verticalIconBox&&bo(J.iconCollisionBox.collisionVertexArray,An.icon.placed,!ds,dt?Ui.x:0,dt?Ui.y:0)}}},jt=0;jtJ},Wr.prototype.setStale=function(){this.stale=!0};var Bn=Math.pow(2,25),hr=Math.pow(2,24),hn=Math.pow(2,17),zn=Math.pow(2,16),Zn=Math.pow(2,9),yr=Math.pow(2,8),gr=Math.pow(2,1);function vr(J){if(J.opacity===0&&!J.placed)return 0;if(J.opacity===1&&J.placed)return 4294967295;var le=J.placed?1:0,ie=Math.floor(127*J.opacity);return ie*Bn+le*hr+ie*hn+le*zn+ie*Zn+le*yr+ie*gr+le}var nr=0,Qn=function(J){this._sortAcrossTiles=J.layout.get("symbol-z-order")!=="viewport-y"&&J.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Qn.prototype.continuePlacement=function(J,le,ie,V,ne){for(var ge=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var xe=le[J[this._currentPlacementIndex]],Me=this.placement.collisionIndex.transform.zoom;if(xe.type==="symbol"&&(!xe.minzoom||xe.minzoom<=Me)&&(!xe.maxzoom||xe.maxzoom>Me)){if(this._inProgressLayer||(this._inProgressLayer=new Qn(xe)),this._inProgressLayer.continuePlacement(ie[xe.source],this.placement,this._showCollisionBoxes,xe,ge))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Hn.prototype.commit=function(J){return this.placement.commit(J),this.placement};var tr=512/i.EXTENT/2,cr=function(J,le,ie){this.tileID=J,this.indexedSymbolInstances={},this.bucketInstanceId=ie;for(var V=0;VJ.overscaledZ)for(var Me in xe){var Fe=xe[Me];Fe.tileID.isChildOf(J)&&Fe.findMatches(le.symbolInstances,J,ne)}else{var Je=xe[J.scaledTo(Number(ge)).key];Je&&Je.findMatches(le.symbolInstances,J,ne)}}for(var rt=0;rt1?"@2x":"",dt=i.getJSON(ge.transformRequest(ge.normalizeSpriteURL(ne,rt,".json"),i.ResourceType.SpriteJSON),function(Vt,jt){dt=null,Je||(Je=Vt,Me=jt,Et())}),mt=i.getImage(ge.transformRequest(ge.normalizeSpriteURL(ne,rt,".png"),i.ResourceType.SpriteImage),function(Vt,jt){mt=null,Je||(Je=Vt,Fe=jt,Et())});function Et(){if(Je)xe(Je);else if(Me&&Fe){var Vt=i.browser.getImageData(Fe),jt={};for(var Nt in Me){var cn=Me[Nt],sn=cn.width,xn=cn.height,pn=cn.x,Ln=cn.y,On=cn.sdf,An=cn.pixelRatio,Sn=cn.stretchX,rr=cn.stretchY,Dr=cn.content,Pr=new i.RGBAImage({width:sn,height:xn});i.RGBAImage.copy(Vt,Pr,{x:pn,y:Ln},{x:0,y:0},{width:sn,height:xn}),jt[Nt]={data:Pr,pixelRatio:An,sdf:On,stretchX:Sn,stretchY:rr,content:Dr}}xe(null,jt)}}return{cancel:function(){dt&&(dt.cancel(),dt=null),mt&&(mt.cancel(),mt=null)}}}(ie,this.map._requestManager,function(ne,ge){if(V._spriteRequest=null,ne)V.fire(new i.ErrorEvent(ne));else if(ge)for(var xe in ge)V.imageManager.addImage(xe,ge[xe]);V.imageManager.setLoaded(!0),V._availableImages=V.imageManager.listImages(),V.dispatcher.broadcast("setImages",V._availableImages),V.fire(new i.Event("data",{dataType:"style"}))})},le.prototype._validateLayer=function(ie){var V=this.sourceCaches[ie.source];if(V){var ne=ie.sourceLayer;if(ne){var ge=V.getSource();(ge.type==="geojson"||ge.vectorLayerIds&&ge.vectorLayerIds.indexOf(ne)===-1)&&this.fire(new i.ErrorEvent(new Error('Source layer "'+ne+'" does not exist on source "'+ge.id+'" as specified by style layer "'+ie.id+'"')))}}},le.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var ie in this.sourceCaches)if(!this.sourceCaches[ie].loaded())return!1;return!!this.imageManager.isLoaded()},le.prototype._serializeLayers=function(ie){for(var V=[],ne=0,ge=ie;ne0)throw new Error("Unimplemented: "+ge.map(function(xe){return xe.command}).join(", ")+".");return ne.forEach(function(xe){xe.command!=="setTransition"&&V[xe.command].apply(V,xe.args)}),this.stylesheet=ie,!0},le.prototype.addImage=function(ie,V){if(this.getImage(ie))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ie,V),this._afterImageUpdated(ie)},le.prototype.updateImage=function(ie,V){this.imageManager.updateImage(ie,V)},le.prototype.getImage=function(ie){return this.imageManager.getImage(ie)},le.prototype.removeImage=function(ie){if(!this.getImage(ie))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ie),this._afterImageUpdated(ie)},le.prototype._afterImageUpdated=function(ie){this._availableImages=this.imageManager.listImages(),this._changedImages[ie]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},le.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},le.prototype.addSource=function(ie,V,ne){var ge=this;if(ne===void 0&&(ne={}),this._checkLoaded(),this.sourceCaches[ie]!==void 0)throw new Error("There is already a source with this ID");if(!V.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(V).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(V.type)>=0&&this._validate(i.validateStyle.source,"sources."+ie,V,null,ne))){this.map&&this.map._collectResourceTiming&&(V.collectResourceTiming=!0);var xe=this.sourceCaches[ie]=new zt(ie,V,this.dispatcher);xe.style=this,xe.setEventedParent(this,function(){return{isSourceLoaded:ge.loaded(),source:xe.serialize(),sourceId:ie}}),xe.onAdd(this.map),this._changed=!0}},le.prototype.removeSource=function(ie){if(this._checkLoaded(),this.sourceCaches[ie]===void 0)throw new Error("There is no source with this ID");for(var V in this._layers)if(this._layers[V].source===ie)return this.fire(new i.ErrorEvent(new Error('Source "'+ie+'" cannot be removed while layer "'+V+'" is using it.')));var ne=this.sourceCaches[ie];delete this.sourceCaches[ie],delete this._updatedSources[ie],ne.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ie})),ne.setEventedParent(null),ne.clearTiles(),ne.onRemove&&ne.onRemove(this.map),this._changed=!0},le.prototype.setGeoJSONSourceData=function(ie,V){this._checkLoaded(),this.sourceCaches[ie].getSource().setData(V),this._changed=!0},le.prototype.getSource=function(ie){return this.sourceCaches[ie]&&this.sourceCaches[ie].getSource()},le.prototype.addLayer=function(ie,V,ne){ne===void 0&&(ne={}),this._checkLoaded();var ge=ie.id;if(this.getLayer(ge))this.fire(new i.ErrorEvent(new Error('Layer with id "'+ge+'" already exists on this map')));else{var xe;if(ie.type==="custom"){if(to(this,i.validateCustomStyleLayer(ie)))return;xe=i.createStyleLayer(ie)}else{if(typeof ie.source=="object"&&(this.addSource(ge,ie.source),ie=i.clone$1(ie),ie=i.extend(ie,{source:ge})),this._validate(i.validateStyle.layer,"layers."+ge,ie,{arrayIndex:-1},ne))return;xe=i.createStyleLayer(ie),this._validateLayer(xe),xe.setEventedParent(this,{layer:{id:ge}}),this._serializedLayers[xe.id]=xe.serialize()}var Me=V?this._order.indexOf(V):this._order.length;if(V&&Me===-1)this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.')));else{if(this._order.splice(Me,0,ge),this._layerOrderChanged=!0,this._layers[ge]=xe,this._removedLayers[ge]&&xe.source&&xe.type!=="custom"){var Fe=this._removedLayers[ge];delete this._removedLayers[ge],Fe.type!==xe.type?this._updatedSources[xe.source]="clear":(this._updatedSources[xe.source]="reload",this.sourceCaches[xe.source].pause())}this._updateLayer(xe),xe.onAdd&&xe.onAdd(this.map)}}},le.prototype.moveLayer=function(ie,V){if(this._checkLoaded(),this._changed=!0,this._layers[ie]){if(ie!==V){var ne=this._order.indexOf(ie);this._order.splice(ne,1);var ge=V?this._order.indexOf(V):this._order.length;V&&ge===-1?this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.'))):(this._order.splice(ge,0,ie),this._layerOrderChanged=!0)}}else this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be moved.")))},le.prototype.removeLayer=function(ie){this._checkLoaded();var V=this._layers[ie];if(V){V.setEventedParent(null);var ne=this._order.indexOf(ie);this._order.splice(ne,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ie]=V,delete this._layers[ie],delete this._serializedLayers[ie],delete this._updatedLayers[ie],delete this._updatedPaintProps[ie],V.onRemove&&V.onRemove(this.map)}else this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be removed.")))},le.prototype.getLayer=function(ie){return this._layers[ie]},le.prototype.hasLayer=function(ie){return ie in this._layers},le.prototype.setLayerZoomRange=function(ie,V,ne){this._checkLoaded();var ge=this.getLayer(ie);ge?ge.minzoom===V&&ge.maxzoom===ne||(V!=null&&(ge.minzoom=V),ne!=null&&(ge.maxzoom=ne),this._updateLayer(ge)):this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot have zoom extent.")))},le.prototype.setFilter=function(ie,V,ne){ne===void 0&&(ne={}),this._checkLoaded();var ge=this.getLayer(ie);if(ge){if(!i.deepEqual(ge.filter,V))return V==null?(ge.filter=void 0,void this._updateLayer(ge)):void(this._validate(i.validateStyle.filter,"layers."+ge.id+".filter",V,null,ne)||(ge.filter=i.clone$1(V),this._updateLayer(ge)))}else this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be filtered.")))},le.prototype.getFilter=function(ie){return i.clone$1(this.getLayer(ie).filter)},le.prototype.setLayoutProperty=function(ie,V,ne,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ie);xe?i.deepEqual(xe.getLayoutProperty(V),ne)||(xe.setLayoutProperty(V,ne,ge),this._updateLayer(xe)):this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getLayoutProperty=function(ie,V){var ne=this.getLayer(ie);if(ne)return ne.getLayoutProperty(V);this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style.")))},le.prototype.setPaintProperty=function(ie,V,ne,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ie);xe?i.deepEqual(xe.getPaintProperty(V),ne)||(xe.setPaintProperty(V,ne,ge)&&this._updateLayer(xe),this._changed=!0,this._updatedPaintProps[ie]=!0):this.fire(new i.ErrorEvent(new Error("The layer '"+ie+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getPaintProperty=function(ie,V){return this.getLayer(ie).getPaintProperty(V)},le.prototype.setFeatureState=function(ie,V){this._checkLoaded();var ne=ie.source,ge=ie.sourceLayer,xe=this.sourceCaches[ne];if(xe!==void 0){var Me=xe.getSource().type;Me==="geojson"&&ge?this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Me!=="vector"||ge?(ie.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),xe.setFeatureState(ge,ie.id,V)):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ne+"' does not exist in the map's style.")))},le.prototype.removeFeatureState=function(ie,V){this._checkLoaded();var ne=ie.source,ge=this.sourceCaches[ne];if(ge!==void 0){var xe=ge.getSource().type,Me=xe==="vector"?ie.sourceLayer:void 0;xe!=="vector"||Me?V&&typeof ie.id!="string"&&typeof ie.id!="number"?this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):ge.removeFeatureState(Me,ie.id,V):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ne+"' does not exist in the map's style.")))},le.prototype.getFeatureState=function(ie){this._checkLoaded();var V=ie.source,ne=ie.sourceLayer,ge=this.sourceCaches[V];if(ge!==void 0){if(ge.getSource().type!=="vector"||ne)return ie.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ge.getFeatureState(ne,ie.id);this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+V+"' does not exist in the map's style.")))},le.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},le.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(ie){return ie.serialize()}),layers:this._serializeLayers(this._order)},function(ie){return ie!==void 0})},le.prototype._updateLayer=function(ie){this._updatedLayers[ie.id]=!0,ie.source&&!this._updatedSources[ie.source]&&this.sourceCaches[ie.source].getSource().type!=="raster"&&(this._updatedSources[ie.source]="reload",this.sourceCaches[ie.source].pause()),this._changed=!0},le.prototype._flattenAndSortRenderedFeatures=function(ie){for(var V=this,ne=function(Dr){return V._layers[Dr].type==="fill-extrusion"},ge={},xe=[],Me=this._order.length-1;Me>=0;Me--){var Fe=this._order[Me];if(ne(Fe)){ge[Fe]=Me;for(var Je=0,rt=ie;Je=0;Nt--){var cn=this._order[Nt];if(ne(cn))for(var sn=xe.length-1;sn>=0;sn--){var xn=xe[sn].feature;if(ge[xn.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Aa=yl("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),Xl=yl("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),Na=yl(`#pragma mapbox: define highp vec4 color +}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),mo=xl("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Aa=xl("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),Xl=xl("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),Na=xl(`#pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color @@ -2425,7 +2425,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),cs=yl(`varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);}`),us=xl(`varying vec2 v_pos; #pragma mapbox: define highp vec4 outline_color #pragma mapbox: define lowp float opacity void main() { @@ -2441,7 +2441,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 outline_color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),wc=yl(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),wc=xl(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -2465,7 +2465,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),ma=yl(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),ga=xl(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -2489,7 +2489,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),Ku=yl(`varying vec4 v_color;void main() {gl_FragColor=v_color; +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),Ku=xl(`varying vec4 v_color;void main() {gl_FragColor=v_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif @@ -2501,7 +2501,7 @@ void main() { #pragma mapbox: initialize highp float base #pragma mapbox: initialize highp float height #pragma mapbox: initialize highp vec4 color -vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),qc=yl(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),qc=xl(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; #pragma mapbox: define lowp float base #pragma mapbox: define lowp float height #pragma mapbox: define lowp vec4 pattern_from @@ -2535,20 +2535,20 @@ void main() { #pragma mapbox: initialize lowp float pixel_ratio_to vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 ? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),Yd=yl(`#ifdef GL_ES +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),Yd=xl(`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),Ql=yl(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),Ql=xl(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; #define PI 3.141592653589793 void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),Ed=yl(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),Ed=xl(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -2576,7 +2576,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),Nf=yl(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),Nf=xl(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { @@ -2600,7 +2600,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),mm=yl(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),mm=xl(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from @@ -2643,7 +2643,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),Ws=yl(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),Ws=xl(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -2678,11 +2678,11 @@ void main() { #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float floorwidth -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),gm=yl(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),gm=xl(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),Gl=yl(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),Gl=xl(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity @@ -2696,7 +2696,7 @@ void main() { #pragma mapbox: initialize lowp float opacity vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),pc=yl(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),pc=xl(`#define SDF_PX 8.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color @@ -2727,7 +2727,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),Cu=yl(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),Cu=xl(`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; @@ -2764,7 +2764,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function yl(J,le){var ie=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,V=le.match(/attribute ([\w]+) ([\w]+)/g),ne=J.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ge=le.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),xe=ge?ge.concat(ne):ne,Me={};return{fragmentSource:J=J.replace(ie,function(Fe,Je,rt,dt,mt){return Me[mt]=!0,Je==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function xl(J,le){var ie=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,V=le.match(/attribute ([\w]+) ([\w]+)/g),ne=J.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ge=le.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),xe=ge?ge.concat(ne):ne,Me={};return{fragmentSource:J=J.replace(ie,function(Fe,Je,rt,dt,mt){return Me[mt]=!0,Je==="define"?` #ifndef HAS_UNIFORM_u_`+mt+` varying `+rt+" "+dt+" "+mt+`; #else @@ -2813,9 +2813,9 @@ uniform `+rt+" "+dt+" u_"+mt+`; #else `+rt+" "+dt+" "+mt+" = u_"+mt+`; #endif -`}),staticAttributes:V,staticUniforms:xe}}var sa=Object.freeze({__proto__:null,prelude:Go,background:po,backgroundPattern:qo,circle:Ao,clippingMask:oi,heatmap:ko,heatmapTexture:ra,collisionBox:mo,collisionCircle:Aa,debug:Xl,fill:Na,fillOutline:cs,fillOutlinePattern:wc,fillPattern:ma,fillExtrusion:Ku,fillExtrusionPattern:qc,hillshadePrepare:Yd,hillshade:Ql,line:Ed,lineGradient:Nf,linePattern:mm,lineSDF:Ws,raster:gm,symbolIcon:Gl,symbolSDF:pc,symbolTextAndIcon:Cu}),cc=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function hu(J){for(var le=[],ie=0;ie>16,Me>>16],u_pixel_coord_lower:[65535&xe,65535&Me]}}ju.prototype.draw=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je,rt,dt,mt,Et,Vt,jt){var Nt,cn=J.gl;if(!this.failedToCreate){for(var sn in J.program.set(this.program),J.setDepthMode(ie),J.setStencilMode(V),J.setColorMode(ne),J.setCullFace(ge),this.fixedUniforms)this.fixedUniforms[sn].set(xe[sn]);Et&&Et.setUniforms(J,this.binderUniforms,dt,{zoom:mt});for(var xn=(Nt={},Nt[cn.LINES]=2,Nt[cn.TRIANGLES]=3,Nt[cn.LINE_STRIP]=1,Nt)[le],pn=0,Ln=rt.get();pn0?1-1/(1.001-xe):-xe),u_contrast_factor:(ge=ne.paint.get("raster-contrast"),ge>0?1/(1-ge):1+ge),u_spin_weights:xf(ne.paint.get("raster-hue-rotate"))};var ge,xe};function xf(J){J*=Math.PI/180;var le=Math.sin(J),ie=Math.cos(J);return[(2*ie+1)/3,(-Math.sqrt(3)*le-ie+1)/3,(Math.sqrt(3)*le-ie+1)/3]}var cd,nf=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je){var rt=ne.transform;return{u_is_size_zoom_constant:+(J==="constant"||J==="source"),u_is_size_feature_constant:+(J==="constant"||J==="camera"),u_size_t:le?le.uSizeT:0,u_size:le?le.uSize:0,u_camera_to_center_distance:rt.cameraToCenterDistance,u_pitch:rt.pitch/360*2*Math.PI,u_rotate_symbol:+ie,u_aspect_ratio:rt.width/rt.height,u_fade_change:ne.options.fadeDuration?ne.symbolFadeChange:1,u_matrix:ge,u_label_plane_matrix:xe,u_coord_matrix:Me,u_is_text:+Fe,u_pitch_with_map:+V,u_texsize:Je,u_texture:0}},gh=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je,rt){var dt=ne.transform;return i.extend(nf(J,le,ie,V,ne,ge,xe,Me,Fe,Je),{u_gamma_scale:V?Math.cos(dt._pitch)*dt.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+rt})},rs=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je){return i.extend(gh(J,le,ie,V,ne,ge,xe,Me,!0,Fe,!0),{u_texsize_icon:Je,u_texture_icon:1})},ep=function(J,le,ie){return{u_matrix:J,u_opacity:le,u_color:ie}},Ep=function(J,le,ie,V,ne,ge){return i.extend(function(xe,Me,Fe,Je){var rt=Fe.imageManager.getPattern(xe.from.toString()),dt=Fe.imageManager.getPattern(xe.to.toString()),mt=Fe.imageManager.getPixelSize(),Et=mt.width,Vt=mt.height,jt=Math.pow(2,Je.tileID.overscaledZ),Nt=Je.tileSize*Math.pow(2,Fe.transform.tileZoom)/jt,cn=Nt*(Je.tileID.canonical.x+Je.tileID.wrap*jt),sn=Nt*Je.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:rt.tl,u_pattern_br_a:rt.br,u_pattern_tl_b:dt.tl,u_pattern_br_b:dt.br,u_texsize:[Et,Vt],u_mix:Me.t,u_pattern_size_a:rt.displaySize,u_pattern_size_b:dt.displaySize,u_scale_a:Me.fromScale,u_scale_b:Me.toScale,u_tile_units_to_pixels:1/go(Je,1,Fe.transform.tileZoom),u_pixel_coord_upper:[cn>>16,sn>>16],u_pixel_coord_lower:[65535&cn,65535&sn]}}(V,ge,ie,ne),{u_matrix:J,u_opacity:le})},vm={fillExtrusion:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fillExtrusionPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_height_factor:new i.Uniform1f(J,le.u_height_factor),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fill:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},fillPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},fillOutline:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world)}},fillOutlinePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},circle:function(J,le){return{u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(J,le.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},collisionBox:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(J,le.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_overscale_factor:new i.Uniform1f(J,le.u_overscale_factor)}},collisionCircle:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_inv_matrix:new i.UniformMatrix4f(J,le.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(J,le.u_viewport_size)}},debug:function(J,le){return{u_color:new i.UniformColor(J,le.u_color),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_overlay:new i.Uniform1i(J,le.u_overlay),u_overlay_scale:new i.Uniform1f(J,le.u_overlay_scale)}},clippingMask:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmap:function(J,le){return{u_extrude_scale:new i.Uniform1f(J,le.u_extrude_scale),u_intensity:new i.Uniform1f(J,le.u_intensity),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmapTexture:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_color_ramp:new i.Uniform1i(J,le.u_color_ramp),u_opacity:new i.Uniform1f(J,le.u_opacity)}},hillshade:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_latrange:new i.Uniform2f(J,le.u_latrange),u_light:new i.Uniform2f(J,le.u_light),u_shadow:new i.UniformColor(J,le.u_shadow),u_highlight:new i.UniformColor(J,le.u_highlight),u_accent:new i.UniformColor(J,le.u_accent)}},hillshadePrepare:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_dimension:new i.Uniform2f(J,le.u_dimension),u_zoom:new i.Uniform1f(J,le.u_zoom),u_unpack:new i.Uniform4f(J,le.u_unpack)}},line:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels)}},lineGradient:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_image:new i.Uniform1i(J,le.u_image),u_image_height:new i.Uniform1f(J,le.u_image_height)}},linePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_texsize:new i.Uniform2f(J,le.u_texsize),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_image:new i.Uniform1i(J,le.u_image),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},lineSDF:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(J,le.u_patternscale_a),u_patternscale_b:new i.Uniform2f(J,le.u_patternscale_b),u_sdfgamma:new i.Uniform1f(J,le.u_sdfgamma),u_image:new i.Uniform1i(J,le.u_image),u_tex_y_a:new i.Uniform1f(J,le.u_tex_y_a),u_tex_y_b:new i.Uniform1f(J,le.u_tex_y_b),u_mix:new i.Uniform1f(J,le.u_mix)}},raster:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_tl_parent:new i.Uniform2f(J,le.u_tl_parent),u_scale_parent:new i.Uniform1f(J,le.u_scale_parent),u_buffer_scale:new i.Uniform1f(J,le.u_buffer_scale),u_fade_t:new i.Uniform1f(J,le.u_fade_t),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image0:new i.Uniform1i(J,le.u_image0),u_image1:new i.Uniform1i(J,le.u_image1),u_brightness_low:new i.Uniform1f(J,le.u_brightness_low),u_brightness_high:new i.Uniform1f(J,le.u_brightness_high),u_saturation_factor:new i.Uniform1f(J,le.u_saturation_factor),u_contrast_factor:new i.Uniform1f(J,le.u_contrast_factor),u_spin_weights:new i.Uniform3f(J,le.u_spin_weights)}},symbolIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture)}},symbolSDF:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},symbolTextAndIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texsize_icon:new i.Uniform2f(J,le.u_texsize_icon),u_texture:new i.Uniform1i(J,le.u_texture),u_texture_icon:new i.Uniform1i(J,le.u_texture_icon),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},background:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_color:new i.UniformColor(J,le.u_color)}},backgroundPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image:new i.Uniform1i(J,le.u_image),u_pattern_tl_a:new i.Uniform2f(J,le.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(J,le.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(J,le.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(J,le.u_pattern_br_b),u_texsize:new i.Uniform2f(J,le.u_texsize),u_mix:new i.Uniform1f(J,le.u_mix),u_pattern_size_a:new i.Uniform2f(J,le.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(J,le.u_pattern_size_b),u_scale_a:new i.Uniform1f(J,le.u_scale_a),u_scale_b:new i.Uniform1f(J,le.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(J,le.u_tile_units_to_pixels)}}};function Pd(J,le,ie,V,ne,ge,xe){for(var Me=J.context,Fe=Me.gl,Je=J.useProgram("collisionBox"),rt=[],dt=0,mt=0,Et=0;Et0){var pn=i.create(),Ln=cn;i.mul(pn,Nt.placementInvProjMatrix,J.transform.glCoordMatrix),i.mul(pn,pn,Nt.placementViewportMatrix),rt.push({circleArray:xn,circleOffset:mt,transform:Ln,invTransform:pn}),mt=dt+=xn.length/4}sn&&Je.draw(Me,Fe.LINES,bn.disabled,vt.disabled,J.colorModeForRenderPass(),lt.disabled,ef(cn,J.transform,jt),ie.id,sn.layoutVertexBuffer,sn.indexBuffer,sn.segments,null,J.transform.zoom,null,null,sn.collisionVertexBuffer)}}if(xe&&rt.length){var On=J.useProgram("collisionCircle"),An=new i.StructArrayLayout2f1f2i16;An.resize(4*dt),An._trim();for(var Sn=0,rr=0,Dr=rt;rr=0&&(Vt[Nt.associatedIconIndex]={shiftedAnchor:Dr,angle:Pr})}else Kr(Nt.numGlyphs,mt)}if(rt){Et.clear();for(var Mo=J.icon.placedSymbolArray,$o=0;$o0){var xe=i.browser.now(),Me=(xe-J.timeAdded)/ge,Fe=le?(xe-le.timeAdded)/ge:-1,Je=ie.getSource(),rt=ne.coveringZoomLevel({tileSize:Je.tileSize,roundZoom:Je.roundZoom}),dt=!le||Math.abs(le.tileID.overscaledZ-rt)>Math.abs(J.tileID.overscaledZ-rt),mt=dt&&J.refreshedUponExpiration?1:i.clamp(dt?Me:1-Fe,0,1);return J.refreshedUponExpiration&&Me>=1&&(J.refreshedUponExpiration=!1),le?{opacity:1,mix:1-mt}:{opacity:mt,mix:0}}return{opacity:1,mix:0}}var ym=new i.Color(1,0,0,1),Mu=new i.Color(0,1,0,1),Hu=new i.Color(0,0,1,1),Lp=new i.Color(1,0,1,1),Uh=new i.Color(0,1,1,1);function jh(J){var le=J.transform.padding;Eu(J,J.transform.height-(le.top||0),3,ym),Eu(J,le.bottom||0,3,Mu),ud(J,le.left||0,3,Hu),ud(J,J.transform.width-(le.right||0),3,Lp);var ie=J.transform.centerPoint;(function(V,ne,ge,xe){var Me=20,Fe=2;vh(V,ne-Fe/2,ge-Me/2,Fe,Me,xe),vh(V,ne-Me/2,ge-Fe/2,Me,Fe,xe)})(J,ie.x,J.transform.height-ie.y,Uh)}function Eu(J,le,ie,V){vh(J,0,le+ie/2,J.transform.width,ie,V)}function ud(J,le,ie,V){vh(J,le-ie/2,0,ie,J.transform.height,V)}function vh(J,le,ie,V,ne,ge){var xe=J.context,Me=xe.gl;Me.enable(Me.SCISSOR_TEST),Me.scissor(le*i.browser.devicePixelRatio,ie*i.browser.devicePixelRatio,V*i.browser.devicePixelRatio,ne*i.browser.devicePixelRatio),xe.clear({color:ge}),Me.disable(Me.SCISSOR_TEST)}function Pu(J,le,ie){var V=J.context,ne=V.gl,ge=ie.posMatrix,xe=J.useProgram("debug"),Me=bn.disabled,Fe=vt.disabled,Je=J.colorModeForRenderPass(),rt="$debug";V.activeTexture.set(ne.TEXTURE0),J.emptyTexture.bind(ne.LINEAR,ne.CLAMP_TO_EDGE),xe.draw(V,ne.LINE_STRIP,Me,Fe,Je,lt.disabled,ad(ge,i.Color.red),rt,J.debugBuffer,J.tileBorderIndexBuffer,J.debugSegments);var dt=le.getTileByID(ie.key).latestRawTileData,mt=dt&&dt.byteLength||0,Et=Math.floor(mt/1024),Vt=le.getTile(ie).tileSize,jt=512/Math.min(Vt,512)*(ie.overscaledZ/J.transform.zoom)*.5,Nt=ie.canonical.toString();ie.overscaledZ!==ie.canonical.z&&(Nt+=" => "+ie.overscaledZ),function(cn,sn){cn.initDebugOverlayCanvas();var xn=cn.debugOverlayCanvas,pn=cn.context.gl,Ln=cn.debugOverlayCanvas.getContext("2d");Ln.clearRect(0,0,xn.width,xn.height),Ln.shadowColor="white",Ln.shadowBlur=2,Ln.lineWidth=1.5,Ln.strokeStyle="white",Ln.textBaseline="top",Ln.font="bold 36px Open Sans, sans-serif",Ln.fillText(sn,5,5),Ln.strokeText(sn,5,5),cn.debugOverlayTexture.update(xn),cn.debugOverlayTexture.bind(pn.LINEAR,pn.CLAMP_TO_EDGE)}(J,Nt+" "+Et+"kb"),xe.draw(V,ne.TRIANGLES,Me,Fe,bt.alphaBlended,lt.disabled,ad(ge,i.Color.transparent,jt),rt,J.debugBuffer,J.quadTriangleIndexBuffer,J.debugSegments)}var Oc={symbol:function(J,le,ie,V,ne){if(J.renderPass==="translucent"){var ge=vt.disabled,xe=J.colorModeForRenderPass();ie.layout.get("text-variable-anchor")&&function(Me,Fe,Je,rt,dt,mt,Et){for(var Vt=Fe.transform,jt=dt==="map",Nt=mt==="map",cn=0,sn=Me;cn256&&this.clearStencil(),ie.setColorMode(bt.disabled),ie.setDepthMode(bn.disabled);var ne=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ge=0,xe=le;ge256&&this.clearStencil();var J=this.nextStencilID++,le=this.context.gl;return new vt({func:le.NOTEQUAL,mask:255},J,255,le.KEEP,le.KEEP,le.REPLACE)},ks.prototype.stencilModeForClipping=function(J){var le=this.context.gl;return new vt({func:le.EQUAL,mask:255},this._tileClippingMaskIDs[J.key],0,le.KEEP,le.KEEP,le.REPLACE)},ks.prototype.stencilConfigForOverlap=function(J){var le,ie=this.context.gl,V=J.sort(function(Fe,Je){return Je.overscaledZ-Fe.overscaledZ}),ne=V[V.length-1].overscaledZ,ge=V[0].overscaledZ-ne+1;if(ge>1){this.currentStencilSource=void 0,this.nextStencilID+ge>256&&this.clearStencil();for(var xe={},Me=0;Me=0;this.currentLayer--){var Ln=this.style._layers[V[this.currentLayer]],On=ne[Ln.source],An=Je[Ln.source];this._renderTileClippingMasks(Ln,An),this.renderLayer(this,On,Ln,An)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?le.pop():null},ks.prototype.isPatternMissing=function(J){if(!J)return!1;if(!J.from||!J.to)return!0;var le=this.imageManager.getPattern(J.from.toString()),ie=this.imageManager.getPattern(J.to.toString());return!le||!ie},ks.prototype.useProgram=function(J,le){this.cache=this.cache||{};var ie=""+J+(le?le.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[ie]||(this.cache[ie]=new ju(this.context,J,sa[J],le,vm[J],this._showOverdrawInspector)),this.cache[ie]},ks.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},ks.prototype.setBaseState=function(){var J=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(J.FUNC_ADD)},ks.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var J=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,J.RGBA)}},ks.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Uf=function(J,le){this.points=J,this.planes=le};Uf.fromInvProjectionMatrix=function(J,le,ie){var V=Math.pow(2,ie),ne=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(xe){return i.transformMat4([],xe,J)}).map(function(xe){return i.scale$1([],xe,1/xe[3]/le*V)}),ge=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(xe){var Me=i.sub([],ne[xe[0]],ne[xe[1]]),Fe=i.sub([],ne[xe[2]],ne[xe[1]]),Je=i.normalize([],i.cross([],Me,Fe)),rt=-i.dot(Je,ne[xe[1]]);return Je.concat(rt)});return new Uf(ne,ge)};var zl=function(J,le){this.min=J,this.max=le,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};zl.prototype.quadrant=function(J){for(var le=[J%2==0,J<2],ie=i.clone$2(this.min),V=i.clone$2(this.max),ne=0;ne=0;if(ge===0)return 0;ge!==le.length&&(ie=!1)}if(ie)return 2;for(var Me=0;Me<3;Me++){for(var Fe=Number.MAX_VALUE,Je=-Number.MAX_VALUE,rt=0;rtthis.max[Me]-this.min[Me])return 0}return 1};var Hl=function(J,le,ie,V){if(J===void 0&&(J=0),le===void 0&&(le=0),ie===void 0&&(ie=0),V===void 0&&(V=0),isNaN(J)||J<0||isNaN(le)||le<0||isNaN(ie)||ie<0||isNaN(V)||V<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=J,this.bottom=le,this.left=ie,this.right=V};Hl.prototype.interpolate=function(J,le,ie){return le.top!=null&&J.top!=null&&(this.top=i.number(J.top,le.top,ie)),le.bottom!=null&&J.bottom!=null&&(this.bottom=i.number(J.bottom,le.bottom,ie)),le.left!=null&&J.left!=null&&(this.left=i.number(J.left,le.left,ie)),le.right!=null&&J.right!=null&&(this.right=i.number(J.right,le.right,ie)),this},Hl.prototype.getCenter=function(J,le){var ie=i.clamp((this.left+J-this.right)/2,0,J),V=i.clamp((this.top+le-this.bottom)/2,0,le);return new i.Point(ie,V)},Hl.prototype.equals=function(J){return this.top===J.top&&this.bottom===J.bottom&&this.left===J.left&&this.right===J.right},Hl.prototype.clone=function(){return new Hl(this.top,this.bottom,this.left,this.right)},Hl.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Ts=function(J,le,ie,V,ne){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=ne===void 0||ne,this._minZoom=J||0,this._maxZoom=le||22,this._minPitch=ie??0,this._maxPitch=V??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Hl,this._posMatrixCache={},this._alignedPosMatrixCache={}},$s={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Ts.prototype.clone=function(){var J=new Ts(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return J.tileSize=this.tileSize,J.latRange=this.latRange,J.width=this.width,J.height=this.height,J._center=this._center,J.zoom=this.zoom,J.angle=this.angle,J._fov=this._fov,J._pitch=this._pitch,J._unmodified=this._unmodified,J._edgeInsets=this._edgeInsets.clone(),J._calcMatrices(),J},$s.minZoom.get=function(){return this._minZoom},$s.minZoom.set=function(J){this._minZoom!==J&&(this._minZoom=J,this.zoom=Math.max(this.zoom,J))},$s.maxZoom.get=function(){return this._maxZoom},$s.maxZoom.set=function(J){this._maxZoom!==J&&(this._maxZoom=J,this.zoom=Math.min(this.zoom,J))},$s.minPitch.get=function(){return this._minPitch},$s.minPitch.set=function(J){this._minPitch!==J&&(this._minPitch=J,this.pitch=Math.max(this.pitch,J))},$s.maxPitch.get=function(){return this._maxPitch},$s.maxPitch.set=function(J){this._maxPitch!==J&&(this._maxPitch=J,this.pitch=Math.min(this.pitch,J))},$s.renderWorldCopies.get=function(){return this._renderWorldCopies},$s.renderWorldCopies.set=function(J){J===void 0?J=!0:J===null&&(J=!1),this._renderWorldCopies=J},$s.worldSize.get=function(){return this.tileSize*this.scale},$s.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},$s.size.get=function(){return new i.Point(this.width,this.height)},$s.bearing.get=function(){return-this.angle/Math.PI*180},$s.bearing.set=function(J){var le=-i.wrap(J,-180,180)*Math.PI/180;this.angle!==le&&(this._unmodified=!1,this.angle=le,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},$s.pitch.get=function(){return this._pitch/Math.PI*180},$s.pitch.set=function(J){var le=i.clamp(J,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==le&&(this._unmodified=!1,this._pitch=le,this._calcMatrices())},$s.fov.get=function(){return this._fov/Math.PI*180},$s.fov.set=function(J){J=Math.max(.01,Math.min(60,J)),this._fov!==J&&(this._unmodified=!1,this._fov=J/180*Math.PI,this._calcMatrices())},$s.zoom.get=function(){return this._zoom},$s.zoom.set=function(J){var le=Math.min(Math.max(J,this.minZoom),this.maxZoom);this._zoom!==le&&(this._unmodified=!1,this._zoom=le,this.scale=this.zoomScale(le),this.tileZoom=Math.floor(le),this.zoomFraction=le-this.tileZoom,this._constrain(),this._calcMatrices())},$s.center.get=function(){return this._center},$s.center.set=function(J){J.lat===this._center.lat&&J.lng===this._center.lng||(this._unmodified=!1,this._center=J,this._constrain(),this._calcMatrices())},$s.padding.get=function(){return this._edgeInsets.toJSON()},$s.padding.set=function(J){this._edgeInsets.equals(J)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,J,1),this._calcMatrices())},$s.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Ts.prototype.isPaddingEqual=function(J){return this._edgeInsets.equals(J)},Ts.prototype.interpolatePadding=function(J,le,ie){this._unmodified=!1,this._edgeInsets.interpolate(J,le,ie),this._constrain(),this._calcMatrices()},Ts.prototype.coveringZoomLevel=function(J){var le=(J.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/J.tileSize));return Math.max(0,le)},Ts.prototype.getVisibleUnwrappedCoordinates=function(J){var le=[new i.UnwrappedTileID(0,J)];if(this._renderWorldCopies)for(var ie=this.pointCoordinate(new i.Point(0,0)),V=this.pointCoordinate(new i.Point(this.width,0)),ne=this.pointCoordinate(new i.Point(this.width,this.height)),ge=this.pointCoordinate(new i.Point(0,this.height)),xe=Math.floor(Math.min(ie.x,V.x,ne.x,ge.x)),Me=Math.floor(Math.max(ie.x,V.x,ne.x,ge.x)),Fe=xe-1;Fe<=Me+1;Fe++)Fe!==0&&le.push(new i.UnwrappedTileID(Fe,J));return le},Ts.prototype.coveringTiles=function(J){var le=this.coveringZoomLevel(J),ie=le;if(J.minzoom!==void 0&&leJ.maxzoom&&(le=J.maxzoom);var V=i.MercatorCoordinate.fromLngLat(this.center),ne=Math.pow(2,le),ge=[ne*V.x,ne*V.y,0],xe=Uf.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,le),Me=J.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Me=le);var Fe=function(Dr){return{aabb:new zl([Dr*ne,0,0],[(Dr+1)*ne,ne,0]),zoom:0,x:0,y:0,wrap:Dr,fullyVisible:!1}},Je=[],rt=[],dt=le,mt=J.reparseOverscaled?ie:le;if(this._renderWorldCopies)for(var Et=1;Et<=3;Et++)Je.push(Fe(-Et)),Je.push(Fe(Et));for(Je.push(Fe(0));Je.length>0;){var Vt=Je.pop(),jt=Vt.x,Nt=Vt.y,cn=Vt.fullyVisible;if(!cn){var sn=Vt.aabb.intersects(xe);if(sn===0)continue;cn=sn===2}var xn=Vt.aabb.distanceX(ge),pn=Vt.aabb.distanceY(ge),Ln=Math.max(Math.abs(xn),Math.abs(pn)),On=3+(1<On&&Vt.zoom>=Me)rt.push({tileID:new i.OverscaledTileID(Vt.zoom===dt?mt:Vt.zoom,Vt.wrap,Vt.zoom,jt,Nt),distanceSq:i.sqrLen([ge[0]-.5-jt,ge[1]-.5-Nt])});else for(var An=0;An<4;An++){var Sn=(jt<<1)+An%2,rr=(Nt<<1)+(An>>1);Je.push({aabb:Vt.aabb.quadrant(An),zoom:Vt.zoom+1,x:Sn,y:rr,wrap:Vt.wrap,fullyVisible:cn})}}return rt.sort(function(Dr,Pr){return Dr.distanceSq-Pr.distanceSq}).map(function(Dr){return Dr.tileID})},Ts.prototype.resize=function(J,le){this.width=J,this.height=le,this.pixelsToGLUnits=[2/J,-2/le],this._constrain(),this._calcMatrices()},$s.unmodified.get=function(){return this._unmodified},Ts.prototype.zoomScale=function(J){return Math.pow(2,J)},Ts.prototype.scaleZoom=function(J){return Math.log(J)/Math.LN2},Ts.prototype.project=function(J){var le=i.clamp(J.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(J.lng)*this.worldSize,i.mercatorYfromLat(le)*this.worldSize)},Ts.prototype.unproject=function(J){return new i.MercatorCoordinate(J.x/this.worldSize,J.y/this.worldSize).toLngLat()},$s.point.get=function(){return this.project(this.center)},Ts.prototype.setLocationAtPoint=function(J,le){var ie=this.pointCoordinate(le),V=this.pointCoordinate(this.centerPoint),ne=this.locationCoordinate(J),ge=new i.MercatorCoordinate(ne.x-(ie.x-V.x),ne.y-(ie.y-V.y));this.center=this.coordinateLocation(ge),this._renderWorldCopies&&(this.center=this.center.wrap())},Ts.prototype.locationPoint=function(J){return this.coordinatePoint(this.locationCoordinate(J))},Ts.prototype.pointLocation=function(J){return this.coordinateLocation(this.pointCoordinate(J))},Ts.prototype.locationCoordinate=function(J){return i.MercatorCoordinate.fromLngLat(J)},Ts.prototype.coordinateLocation=function(J){return J.toLngLat()},Ts.prototype.pointCoordinate=function(J){var le=[J.x,J.y,0,1],ie=[J.x,J.y,1,1];i.transformMat4(le,le,this.pixelMatrixInverse),i.transformMat4(ie,ie,this.pixelMatrixInverse);var V=le[3],ne=ie[3],ge=le[0]/V,xe=ie[0]/ne,Me=le[1]/V,Fe=ie[1]/ne,Je=le[2]/V,rt=ie[2]/ne,dt=Je===rt?0:(0-Je)/(rt-Je);return new i.MercatorCoordinate(i.number(ge,xe,dt)/this.worldSize,i.number(Me,Fe,dt)/this.worldSize)},Ts.prototype.coordinatePoint=function(J){var le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix),new i.Point(le[0]/le[3],le[1]/le[3])},Ts.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},Ts.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Ts.prototype.setMaxBounds=function(J){J?(this.lngRange=[J.getWest(),J.getEast()],this.latRange=[J.getSouth(),J.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Ts.prototype.calculatePosMatrix=function(J,le){le===void 0&&(le=!1);var ie=J.key,V=le?this._alignedPosMatrixCache:this._posMatrixCache;if(V[ie])return V[ie];var ne=J.canonical,ge=this.worldSize/this.zoomScale(ne.z),xe=ne.x+Math.pow(2,ne.z)*J.wrap,Me=i.identity(new Float64Array(16));return i.translate(Me,Me,[xe*ge,ne.y*ge,0]),i.scale(Me,Me,[ge/i.EXTENT,ge/i.EXTENT,1]),i.multiply(Me,le?this.alignedProjMatrix:this.projMatrix,Me),V[ie]=new Float32Array(Me),V[ie]},Ts.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Ts.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var J,le,ie,V,ne=-90,ge=90,xe=-180,Me=180,Fe=this.size,Je=this._unmodified;if(this.latRange){var rt=this.latRange;ne=i.mercatorYfromLat(rt[1])*this.worldSize,J=(ge=i.mercatorYfromLat(rt[0])*this.worldSize)-nege&&(V=ge-jt)}if(this.lngRange){var Nt=mt.x,cn=Fe.x/2;Nt-cnMe&&(ie=Me-cn)}ie===void 0&&V===void 0||(this.center=this.unproject(new i.Point(ie!==void 0?ie:mt.x,V!==void 0?V:mt.y))),this._unmodified=Je,this._constraining=!1}},Ts.prototype._calcMatrices=function(){if(this.height){var J=this._fov/2,le=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(J)*this.height;var ie=Math.PI/2+this._pitch,V=this._fov*(.5+le.y/this.height),ne=Math.sin(V)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-ie-V,.01,Math.PI-.01)),ge=this.point,xe=ge.x,Me=ge.y,Fe=1.01*(Math.cos(Math.PI/2-this._pitch)*ne+this.cameraToCenterDistance),Je=this.height/50,rt=new Float64Array(16);i.perspective(rt,this._fov,this.width/this.height,Je,Fe),rt[8]=2*-le.x/this.width,rt[9]=2*le.y/this.height,i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[0,0,-this.cameraToCenterDistance]),i.rotateX(rt,rt,this._pitch),i.rotateZ(rt,rt,this.angle),i.translate(rt,rt,[-xe,-Me,0]),this.mercatorMatrix=i.scale([],rt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(rt,rt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=rt,this.invProjMatrix=i.invert([],this.projMatrix);var dt=this.width%2/2,mt=this.height%2/2,Et=Math.cos(this.angle),Vt=Math.sin(this.angle),jt=xe-Math.round(xe)+Et*dt+Vt*mt,Nt=Me-Math.round(Me)+Et*mt+Vt*dt,cn=new Float64Array(rt);if(i.translate(cn,cn,[jt>.5?jt-1:jt,Nt>.5?Nt-1:Nt,0]),this.alignedProjMatrix=cn,rt=i.create(),i.scale(rt,rt,[this.width/2,-this.height/2,1]),i.translate(rt,rt,[1,-1,0]),this.labelPlaneMatrix=rt,rt=i.create(),i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[-1,-1,0]),i.scale(rt,rt,[2/this.width,2/this.height,1]),this.glCoordMatrix=rt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(rt=i.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=rt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Ts.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var J=this.pointCoordinate(new i.Point(0,0)),le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix)[3]/this.cameraToCenterDistance},Ts.prototype.getCameraPoint=function(){var J=this._pitch,le=Math.tan(J)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,le))},Ts.prototype.getCameraQueryGeometry=function(J){var le=this.getCameraPoint();if(J.length===1)return[J[0],le];for(var ie=le.x,V=le.y,ne=le.x,ge=le.y,xe=0,Me=J;xe=3&&!J.some(function(ie){return isNaN(ie)})){var le=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(J[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+J[2],+J[1]],zoom:+J[0],bearing:le,pitch:+(J[4]||0)}),!0}return!1},Zu.prototype._updateHashUnthrottled=function(){var J=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,J)}catch{}};var yh={linearity:.3,easing:i.bezier(0,0,.3,1)},of=i.extend({deceleration:2500,maxSpeed:1400},yh),tp=i.extend({deceleration:20,maxSpeed:1400},yh),Ip=i.extend({deceleration:1e3,maxSpeed:360},yh),bm=i.extend({deceleration:1e3,maxSpeed:90},yh),Kd=function(J){this._map=J,this.clear()};function bh(J,le){(!J.duration||J.duration0&&le-J[0].time>160;)J.shift()},Kd.prototype._onMoveEnd=function(J){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var le={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},ie=0,V=this._inertiaBuffer;ie=this._clickTolerance||this._map.fire(new zc(J.type,this._map,J))},Ya.prototype.dblclick=function(J){return this._firePreventable(new zc(J.type,this._map,J))},Ya.prototype.mouseover=function(J){this._map.fire(new zc(J.type,this._map,J))},Ya.prototype.mouseout=function(J){this._map.fire(new zc(J.type,this._map,J))},Ya.prototype.touchstart=function(J){return this._firePreventable(new np(J.type,this._map,J))},Ya.prototype.touchmove=function(J){this._map.fire(new np(J.type,this._map,J))},Ya.prototype.touchend=function(J){this._map.fire(new np(J.type,this._map,J))},Ya.prototype.touchcancel=function(J){this._map.fire(new np(J.type,this._map,J))},Ya.prototype._firePreventable=function(J){if(this._map.fire(J),J.defaultPrevented)return{}},Ya.prototype.isEnabled=function(){return!0},Ya.prototype.isActive=function(){return!1},Ya.prototype.enable=function(){},Ya.prototype.disable=function(){};var bl=function(J){this._map=J};bl.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},bl.prototype.mousemove=function(J){this._map.fire(new zc(J.type,this._map,J))},bl.prototype.mousedown=function(){this._delayContextMenu=!0},bl.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new zc("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},bl.prototype.contextmenu=function(J){this._delayContextMenu?this._contextMenuEvent=J:this._map.fire(new zc(J.type,this._map,J)),this._map.listens("contextmenu")&&J.preventDefault()},bl.prototype.isEnabled=function(){return!0},bl.prototype.isActive=function(){return!1},bl.prototype.enable=function(){},bl.prototype.disable=function(){};var fl=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._container=J.getContainer(),this._clickTolerance=le.clickTolerance||1};function Wc(J,le){for(var ie={},V=0;Vthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=J.timeStamp),ie.length===this.numTouches&&(this.centroid=function(V){for(var ne=new i.Point(0,0),ge=0,xe=V;ge30)&&(this.aborted=!0)}}},xl.prototype.touchend=function(J,le,ie){if((!this.centroid||J.timeStamp-this.startTime>500)&&(this.aborted=!0),ie.length===0){var V=!this.aborted&&this.centroid;if(this.reset(),V)return V}};var xi=function(J){this.singleTap=new xl(J),this.numTaps=J.numTaps,this.reset()};xi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},xi.prototype.touchstart=function(J,le,ie){this.singleTap.touchstart(J,le,ie)},xi.prototype.touchmove=function(J,le,ie){this.singleTap.touchmove(J,le,ie)},xi.prototype.touchend=function(J,le,ie){var V=this.singleTap.touchend(J,le,ie);if(V){var ne=J.timeStamp-this.lastTime<500,ge=!this.lastTap||this.lastTap.dist(V)<30;if(ne&&ge||this.reset(),this.count++,this.lastTime=J.timeStamp,this.lastTap=V,this.count===this.numTaps)return this.reset(),V}};var pu=function(){this._zoomIn=new xi({numTouches:1,numTaps:2}),this._zoomOut=new xi({numTouches:2,numTaps:1}),this.reset()};pu.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},pu.prototype.touchstart=function(J,le,ie){this._zoomIn.touchstart(J,le,ie),this._zoomOut.touchstart(J,le,ie)},pu.prototype.touchmove=function(J,le,ie){this._zoomIn.touchmove(J,le,ie),this._zoomOut.touchmove(J,le,ie)},pu.prototype.touchend=function(J,le,ie){var V=this,ne=this._zoomIn.touchend(J,le,ie),ge=this._zoomOut.touchend(J,le,ie);return ne?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()+1,around:xe.unproject(ne)},{originalEvent:J})}}):ge?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()-1,around:xe.unproject(ge)},{originalEvent:J})}}):void 0},pu.prototype.touchcancel=function(){this.reset()},pu.prototype.enable=function(){this._enabled=!0},pu.prototype.disable=function(){this._enabled=!1,this.reset()},pu.prototype.isEnabled=function(){return this._enabled},pu.prototype.isActive=function(){return this._active};var xh={};xh[0]=1,xh[2]=2;var js=function(J){this.reset(),this._clickTolerance=J.clickTolerance||1};js.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},js.prototype._correctButton=function(J,le){return!1},js.prototype._move=function(J,le){return{}},js.prototype.mousedown=function(J,le){if(!this._lastPoint){var ie=w.mouseButton(J);this._correctButton(J,ie)&&(this._lastPoint=le,this._eventButton=ie)}},js.prototype.mousemoveWindow=function(J,le){var ie=this._lastPoint;if(ie){if(J.preventDefault(),function(V,ne){var ge=xh[ne];return V.buttons===void 0||(V.buttons&ge)!==ge}(J,this._eventButton))this.reset();else if(this._moved||!(le.dist(ie)0&&(this._active=!0);var V=Wc(ie,le),ne=new i.Point(0,0),ge=new i.Point(0,0),xe=0;for(var Me in V){var Fe=V[Me],Je=this._touches[Me];Je&&(ne._add(Fe),ge._add(Fe.sub(Je)),xe++,V[Me]=Fe)}if(this._touches=V,!(xeMath.abs(J.x)}var Kl=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.reset=function(){J.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},le.prototype._start=function(ie){this._lastPoints=ie,Yc(ie[0].sub(ie[1]))&&(this._valid=!1)},le.prototype._move=function(ie,V,ne){var ge=ie[0].sub(this._lastPoints[0]),xe=ie[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ge,xe,ne.timeStamp),this._valid)return this._lastPoints=ie,this._active=!0,{pitchDelta:(ge.y+xe.y)/2*-.5}},le.prototype.gestureBeginsVertically=function(ie,V,ne){if(this._valid!==void 0)return this._valid;var ge=ie.mag()>=2,xe=V.mag()>=2;if(ge||xe){if(!ge||!xe)return this._firstMove===void 0&&(this._firstMove=ne),ne-this._firstMove<100&&void 0;var Me=ie.y>0==V.y>0;return Yc(ie)&&Yc(V)&&Me}},le}(Ml),Fc={panStep:100,bearingStep:15,pitchStep:10},si=function(){var J=Fc;this._panStep=J.panStep,this._bearingStep=J.bearingStep,this._pitchStep=J.pitchStep,this._rotationDisabled=!1};function Hh(J){return J*(2-J)}si.prototype.reset=function(){this._active=!1},si.prototype.keydown=function(J){var le=this;if(!(J.altKey||J.ctrlKey||J.metaKey)){var ie=0,V=0,ne=0,ge=0,xe=0;switch(J.keyCode){case 61:case 107:case 171:case 187:ie=1;break;case 189:case 109:case 173:ie=-1;break;case 37:J.shiftKey?V=-1:(J.preventDefault(),ge=-1);break;case 39:J.shiftKey?V=1:(J.preventDefault(),ge=1);break;case 38:J.shiftKey?ne=1:(J.preventDefault(),xe=-1);break;case 40:J.shiftKey?ne=-1:(J.preventDefault(),xe=1);break;default:return}return this._rotationDisabled&&(V=0,ne=0),{cameraAnimation:function(Me){var Fe=Me.getZoom();Me.easeTo({duration:300,easeId:"keyboardHandler",easing:Hh,zoom:ie?Math.round(Fe)+ie*(J.shiftKey?2:1):Fe,bearing:Me.getBearing()+V*le._bearingStep,pitch:Me.getPitch()+ne*le._pitchStep,offset:[-ge*le._panStep,-xe*le._panStep],center:Me.getCenter()},{originalEvent:J})}}}},si.prototype.enable=function(){this._enabled=!0},si.prototype.disable=function(){this._enabled=!1,this.reset()},si.prototype.isEnabled=function(){return this._enabled},si.prototype.isActive=function(){return this._active},si.prototype.disableRotation=function(){this._rotationDisabled=!0},si.prototype.enableRotation=function(){this._rotationDisabled=!1};var Ps=4.000244140625,Sc=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._handler=le,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,i.bindAll(["_onTimeout"],this)};Sc.prototype.setZoomRate=function(J){this._defaultZoomRate=J},Sc.prototype.setWheelZoomRate=function(J){this._wheelZoomRate=J},Sc.prototype.isEnabled=function(){return!!this._enabled},Sc.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Sc.prototype.isZooming=function(){return!!this._zooming},Sc.prototype.enable=function(J){this.isEnabled()||(this._enabled=!0,this._aroundCenter=J&&J.around==="center")},Sc.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Sc.prototype.wheel=function(J){if(this.isEnabled()){var le=J.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?40*J.deltaY:J.deltaY,ie=i.browser.now(),V=ie-(this._lastWheelEventTime||0);this._lastWheelEventTime=ie,le!==0&&le%Ps==0?this._type="wheel":le!==0&&Math.abs(le)<4?this._type="trackpad":V>400?(this._type=null,this._lastValue=le,this._timeout=setTimeout(this._onTimeout,40,J)):this._type||(this._type=Math.abs(V*le)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,le+=this._lastValue)),J.shiftKey&&le&&(le/=4),this._type&&(this._lastWheelEvent=J,this._delta-=le,this._active||this._start(J)),J.preventDefault()}},Sc.prototype._onTimeout=function(J){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(J)},Sc.prototype._start=function(J){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var le=w.mousePos(this._el,J);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(le)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Sc.prototype.renderFrame=function(){var J=this;if(this._frameId&&(this._frameId=null,this.isActive())){var le=this._map.transform;if(this._delta!==0){var ie=this._type==="wheel"&&Math.abs(this._delta)>Ps?this._wheelZoomRate:this._defaultZoomRate,V=2/(1+Math.exp(-Math.abs(this._delta*ie)));this._delta<0&&V!==0&&(V=1/V);var ne=typeof this._targetZoom=="number"?le.zoomScale(this._targetZoom):le.scale;this._targetZoom=Math.min(le.maxZoom,Math.max(le.minZoom,le.scaleZoom(ne*V))),this._type==="wheel"&&(this._startZoom=le.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ge,xe=typeof this._targetZoom=="number"?this._targetZoom:le.zoom,Me=this._startZoom,Fe=this._easing,Je=!1;if(this._type==="wheel"&&Me&&Fe){var rt=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),dt=Fe(rt);ge=i.number(Me,xe,dt),rt<1?this._frameId||(this._frameId=!0):Je=!0}else ge=xe,Je=!0;return this._active=!0,Je&&(this._active=!1,this._finishTimeout=setTimeout(function(){J._zooming=!1,J._handler._triggerRenderFrame(),delete J._targetZoom,delete J._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Je,zoomDelta:ge-le.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Sc.prototype._smoothOutEasing=function(J){var le=i.ease;if(this._prevEase){var ie=this._prevEase,V=(i.browser.now()-ie.start)/ie.duration,ne=ie.easing(V+.01)-ie.easing(V),ge=.27/Math.sqrt(ne*ne+1e-4)*.01,xe=Math.sqrt(.0729-ge*ge);le=i.bezier(ge,xe,.25,1)}return this._prevEase={start:i.browser.now(),duration:J,easing:le},le},Sc.prototype.reset=function(){this._active=!1};var tl=function(J,le){this._clickZoom=J,this._tapZoom=le};tl.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},tl.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},tl.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},tl.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var mu=function(){this.reset()};mu.prototype.reset=function(){this._active=!1},mu.prototype.dblclick=function(J,le){return J.preventDefault(),{cameraAnimation:function(ie){ie.easeTo({duration:300,zoom:ie.getZoom()+(J.shiftKey?-1:1),around:ie.unproject(le)},{originalEvent:J})}}},mu.prototype.enable=function(){this._enabled=!0},mu.prototype.disable=function(){this._enabled=!1,this.reset()},mu.prototype.isEnabled=function(){return this._enabled},mu.prototype.isActive=function(){return this._active};var gu=function(){this._tap=new xi({numTouches:1,numTaps:1}),this.reset()};gu.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},gu.prototype.touchstart=function(J,le,ie){this._swipePoint||(this._tapTime&&J.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?ie.length>0&&(this._swipePoint=le[0],this._swipeTouch=ie[0].identifier):this._tap.touchstart(J,le,ie))},gu.prototype.touchmove=function(J,le,ie){if(this._tapTime){if(this._swipePoint){if(ie[0].identifier!==this._swipeTouch)return;var V=le[0],ne=V.y-this._swipePoint.y;return this._swipePoint=V,J.preventDefault(),this._active=!0,{zoomDelta:ne/128}}}else this._tap.touchmove(J,le,ie)},gu.prototype.touchend=function(J,le,ie){this._tapTime?this._swipePoint&&ie.length===0&&this.reset():this._tap.touchend(J,le,ie)&&(this._tapTime=J.timeStamp)},gu.prototype.touchcancel=function(){this.reset()},gu.prototype.enable=function(){this._enabled=!0},gu.prototype.disable=function(){this._enabled=!1,this.reset()},gu.prototype.isEnabled=function(){return this._enabled},gu.prototype.isActive=function(){return this._active};var ja=function(J,le,ie){this._el=J,this._mousePan=le,this._touchPan=ie};ja.prototype.enable=function(J){this._inertiaOptions=J||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},ja.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},ja.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},ja.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var vu=function(J,le,ie){this._pitchWithRotate=J.pitchWithRotate,this._mouseRotate=le,this._mousePitch=ie};vu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},vu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},vu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},vu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Rd=function(J,le,ie,V){this._el=J,this._touchZoom=le,this._touchRotate=ie,this._tapDragZoom=V,this._rotationDisabled=!1,this._enabled=!0};Rd.prototype.enable=function(J){this._touchZoom.enable(J),this._rotationDisabled||this._touchRotate.enable(J),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Rd.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Rd.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Rd.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Rd.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Rd.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Ld=function(J){return J.zoom||J.drag||J.pitch||J.rotate},nl=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le}(i.Event);function Id(J){return J.panDelta&&J.panDelta.mag()||J.zoomDelta||J.bearingDelta||J.pitchDelta}var Ka=function(J,le){this._map=J,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Kd(J),this._bearingSnap=le.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(le),i.bindAll(["handleEvent","handleWindowEvent"],this);var ie=this._el;this._listeners=[[ie,"touchstart",{passive:!0}],[ie,"touchmove",{passive:!1}],[ie,"touchend",void 0],[ie,"touchcancel",void 0],[ie,"mousedown",void 0],[ie,"mousemove",void 0],[ie,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[ie,"mouseover",void 0],[ie,"mouseout",void 0],[ie,"dblclick",void 0],[ie,"click",void 0],[ie,"keydown",{capture:!1}],[ie,"keyup",void 0],[ie,"wheel",{passive:!1}],[ie,"contextmenu",void 0],[i.window,"blur",void 0]];for(var V=0,ne=this._listeners;Vxe?Math.min(2,On):Math.max(.5,On),Pr=Math.pow(Dr,1-Sn),Zr=ge.unproject(pn.add(Ln.mult(Sn*Pr)).mult(rr));ge.setLocationAtPoint(ge.renderWorldCopies?Zr.wrap():Zr,jt)}ne._fireMoveEvents(V)},function(Sn){ne._afterEase(V,Sn)},ie),this},le.prototype._prepareEase=function(ie,V,ne){ne===void 0&&(ne={}),this._moving=!0,V||ne.moving||this.fire(new i.Event("movestart",ie)),this._zooming&&!ne.zooming&&this.fire(new i.Event("zoomstart",ie)),this._rotating&&!ne.rotating&&this.fire(new i.Event("rotatestart",ie)),this._pitching&&!ne.pitching&&this.fire(new i.Event("pitchstart",ie))},le.prototype._fireMoveEvents=function(ie){this.fire(new i.Event("move",ie)),this._zooming&&this.fire(new i.Event("zoom",ie)),this._rotating&&this.fire(new i.Event("rotate",ie)),this._pitching&&this.fire(new i.Event("pitch",ie))},le.prototype._afterEase=function(ie,V){if(!this._easeId||!V||this._easeId!==V){delete this._easeId;var ne=this._zooming,ge=this._rotating,xe=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ne&&this.fire(new i.Event("zoomend",ie)),ge&&this.fire(new i.Event("rotateend",ie)),xe&&this.fire(new i.Event("pitchend",ie)),this.fire(new i.Event("moveend",ie))}},le.prototype.flyTo=function(ie,V){var ne=this;if(!ie.essential&&i.browser.prefersReducedMotion){var ge=i.pick(ie,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ge,V)}this.stop(),ie=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},ie);var xe=this.transform,Me=this.getZoom(),Fe=this.getBearing(),Je=this.getPitch(),rt=this.getPadding(),dt="zoom"in ie?i.clamp(+ie.zoom,xe.minZoom,xe.maxZoom):Me,mt="bearing"in ie?this._normalizeBearing(ie.bearing,Fe):Fe,Et="pitch"in ie?+ie.pitch:Je,Vt="padding"in ie?ie.padding:xe.padding,jt=xe.zoomScale(dt-Me),Nt=i.Point.convert(ie.offset),cn=xe.centerPoint.add(Nt),sn=xe.pointLocation(cn),xn=i.LngLat.convert(ie.center||sn);this._normalizeCenter(xn);var pn=xe.project(sn),Ln=xe.project(xn).sub(pn),On=ie.curve,An=Math.max(xe.width,xe.height),Sn=An/jt,rr=Ln.mag();if("minZoom"in ie){var Dr=i.clamp(Math.min(ie.minZoom,Me,dt),xe.minZoom,xe.maxZoom),Pr=An/xe.zoomScale(Dr-Me);On=Math.sqrt(Pr/rr*2)}var Zr=On*On;function Mo(Io){var $i=(Sn*Sn-An*An+(Io?-1:1)*Zr*Zr*rr*rr)/(2*(Io?Sn:An)*Zr*rr);return Math.log(Math.sqrt($i*$i+1)-$i)}function $o(Io){return(Math.exp(Io)-Math.exp(-Io))/2}function vo(Io){return(Math.exp(Io)+Math.exp(-Io))/2}var zo=Mo(0),yi=function(Io){return vo(zo)/vo(zo+On*Io)},Si=function(Io){return An*((vo(zo)*($o($i=zo+On*Io)/vo($i))-$o(zo))/Zr)/rr;var $i},Hr=(Mo(1)-zo)/On;if(Math.abs(rr)<1e-6||!isFinite(Hr)){if(Math.abs(An-Sn)<1e-6)return this.easeTo(ie,V);var Lo=Snie.maxDuration&&(ie.duration=0),this._zooming=!0,this._rotating=Fe!==mt,this._pitching=Et!==Je,this._padding=!xe.isPaddingEqual(Vt),this._prepareEase(V,!1),this._ease(function(Io){var $i=Io*Hr,Ui=1/yi($i);xe.zoom=Io===1?dt:Me+xe.scaleZoom(Ui),ne._rotating&&(xe.bearing=i.number(Fe,mt,Io)),ne._pitching&&(xe.pitch=i.number(Je,Et,Io)),ne._padding&&(xe.interpolatePadding(rt,Vt,Io),cn=xe.centerPoint.add(Nt));var ba=Io===1?xn:xe.unproject(pn.add(Ln.mult(Si($i))).mult(Ui));xe.setLocationAtPoint(xe.renderWorldCopies?ba.wrap():ba,cn),ne._fireMoveEvents(V)},function(){return ne._afterEase(V)},ie),this},le.prototype.isEasing=function(){return!!this._easeFrameId},le.prototype.stop=function(){return this._stop()},le.prototype._stop=function(ie,V){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var ne=this._onEaseEnd;delete this._onEaseEnd,ne.call(this,V)}if(!ie){var ge=this.handlers;ge&&ge.stop(!1)}return this},le.prototype._ease=function(ie,V,ne){ne.animate===!1||ne.duration===0?(ie(1),V()):(this._easeStart=i.browser.now(),this._easeOptions=ne,this._onEaseFrame=ie,this._onEaseEnd=V,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},le.prototype._renderFrameCallback=function(){var ie=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ie)),ie<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},le.prototype._normalizeBearing=function(ie,V){ie=i.wrap(ie,-180,180);var ne=Math.abs(ie-V);return Math.abs(ie-360-V)180?-360:ne<-180?360:0}},le}(i.Evented),Xc=function(J){J===void 0&&(J={}),this.options=J,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Xc.prototype.getDefaultPosition=function(){return"bottom-right"},Xc.prototype.onAdd=function(J){var le=this.options&&this.options.compact;return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=w.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=w.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),le&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),le===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Xc.prototype.onRemove=function(){w.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Xc.prototype._setElementTitle=function(J,le){var ie=this._map._getUIString("AttributionControl."+le);J.title=ie,J.setAttribute("aria-label",ie)},Xc.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Xc.prototype._updateEditLink=function(){var J=this._editLink;J||(J=this._editLink=this._container.querySelector(".mapbox-improve-map"));var le=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(J){var ie=le.reduce(function(V,ne,ge){return ne.value&&(V+=ne.key+"="+ne.value+(ge=0)return!1;return!0})).join(" | ");xe!==this._attribHTML&&(this._attribHTML=xe,J.length?(this._innerContainer.innerHTML=xe,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Xc.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var jf=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};jf.prototype.onAdd=function(J){this._map=J,this._container=w.create("div","mapboxgl-ctrl");var le=w.create("a","mapboxgl-ctrl-logo");return le.target="_blank",le.rel="noopener nofollow",le.href="https://www.mapbox.com/",le.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),le.setAttribute("rel","noopener nofollow"),this._container.appendChild(le),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},jf.prototype.onRemove=function(){w.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},jf.prototype.getDefaultPosition=function(){return"bottom-left"},jf.prototype._updateLogo=function(J){J&&J.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},jf.prototype._logoRequired=function(){if(this._map.style){var J=this._map.style.sourceCaches;for(var le in J)if(J[le].getSource().mapbox_logo)return!0;return!1}},jf.prototype._updateCompact=function(){var J=this._container.children;if(J.length){var le=J[0];this._map.getCanvasContainer().offsetWidth<250?le.classList.add("mapboxgl-compact"):le.classList.remove("mapboxgl-compact")}};var yu=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};yu.prototype.add=function(J){var le=++this._id;return this._queue.push({callback:J,id:le,cancelled:!1}),le},yu.prototype.remove=function(J){for(var le=this._currentlyRunning,ie=0,V=le?this._queue.concat(le):this._queue;ieV.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(V.minPitch!=null&&V.maxPitch!=null&&V.minPitch>V.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(V.minPitch!=null&&V.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(V.maxPitch!=null&&V.maxPitch>Qf)throw new Error("maxPitch must be less than or equal to 60");var ge=new Ts(V.minZoom,V.maxZoom,V.minPitch,V.maxPitch,V.renderWorldCopies);if(J.call(this,ge,V),this._interactive=V.interactive,this._maxTileCacheSize=V.maxTileCacheSize,this._failIfMajorPerformanceCaveat=V.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=V.preserveDrawingBuffer,this._antialias=V.antialias,this._trackResize=V.trackResize,this._bearingSnap=V.bearingSnap,this._refreshExpiredTiles=V.refreshExpiredTiles,this._fadeDuration=V.fadeDuration,this._crossSourceCollisions=V.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=V.collectResourceTiming,this._renderTaskQueue=new yu,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Dp,V.locale),this._clickTolerance=V.clickTolerance,this._requestManager=new i.RequestManager(V.transformRequest,V.accessToken),typeof V.container=="string"){if(this._container=i.window.document.getElementById(V.container),!this._container)throw new Error("Container '"+V.container+"' not found.")}else{if(!(V.container instanceof Lu))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=V.container}if(V.maxBounds&&this.setMaxBounds(V.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ne._update(!1)}),this.on("moveend",function(){return ne._update(!1)}),this.on("zoom",function(){return ne._update(!0)}),i.window!==void 0&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Ka(this,V);var xe=typeof V.hash=="string"&&V.hash||void 0;this._hash=V.hash&&new Zu(xe).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:V.center,zoom:V.zoom,bearing:V.bearing,pitch:V.pitch}),V.bounds&&(this.resize(),this.fitBounds(V.bounds,i.extend({},V.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=V.localIdeographFontFamily,V.style&&this.setStyle(V.style,{localIdeographFontFamily:V.localIdeographFontFamily}),V.attributionControl&&this.addControl(new Xc({customAttribution:V.customAttribution})),this.addControl(new jf,V.logoPosition),this.on("style.load",function(){ne.transform.unmodified&&ne.jumpTo(ne.style.stylesheet)}),this.on("data",function(Me){ne._update(Me.dataType==="style"),ne.fire(new i.Event(Me.dataType+"data",Me))}),this.on("dataloading",function(Me){ne.fire(new i.Event(Me.dataType+"dataloading",Me))})}J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le;var ie={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return le.prototype._getMapId=function(){return this._mapId},le.prototype.addControl=function(V,ne){if(ne===void 0&&(ne=V.getDefaultPosition?V.getDefaultPosition():"top-right"),!V||!V.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ge=V.onAdd(this);this._controls.push(V);var xe=this._controlPositions[ne];return ne.indexOf("bottom")!==-1?xe.insertBefore(ge,xe.firstChild):xe.appendChild(ge),this},le.prototype.removeControl=function(V){if(!V||!V.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=this._controls.indexOf(V);return ne>-1&&this._controls.splice(ne,1),V.onRemove(this),this},le.prototype.hasControl=function(V){return this._controls.indexOf(V)>-1},le.prototype.resize=function(V){var ne=this._containerDimensions(),ge=ne[0],xe=ne[1];this._resizeCanvas(ge,xe),this.transform.resize(ge,xe),this.painter.resize(ge,xe);var Me=!this._moving;return Me&&(this.stop(),this.fire(new i.Event("movestart",V)).fire(new i.Event("move",V))),this.fire(new i.Event("resize",V)),Me&&this.fire(new i.Event("moveend",V)),this},le.prototype.getBounds=function(){return this.transform.getBounds()},le.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},le.prototype.setMaxBounds=function(V){return this.transform.setMaxBounds(i.LngLatBounds.convert(V)),this._update()},le.prototype.setMinZoom=function(V){if((V=V??-2)>=-2&&V<=this.transform.maxZoom)return this.transform.minZoom=V,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=V,this._update(),this.getZoom()>V&&this.setZoom(V),this;throw new Error("maxZoom must be greater than the current minZoom")},le.prototype.getMaxZoom=function(){return this.transform.maxZoom},le.prototype.setMinPitch=function(V){if((V=V??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(V>=0&&V<=this.transform.maxPitch)return this.transform.minPitch=V,this._update(),this.getPitch()Qf)throw new Error("maxPitch must be less than or equal to 60");if(V>=this.transform.minPitch)return this.transform.maxPitch=V,this._update(),this.getPitch()>V&&this.setPitch(V),this;throw new Error("maxPitch must be greater than the current minPitch")},le.prototype.getMaxPitch=function(){return this.transform.maxPitch},le.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},le.prototype.setRenderWorldCopies=function(V){return this.transform.renderWorldCopies=V,this._update()},le.prototype.project=function(V){return this.transform.locationPoint(i.LngLat.convert(V))},le.prototype.unproject=function(V){return this.transform.pointLocation(i.Point.convert(V))},le.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},le.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},le.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},le.prototype._createDelegatedListener=function(V,ne,ge){var xe,Me=this;if(V==="mouseenter"||V==="mouseover"){var Fe=!1;return{layer:ne,listener:ge,delegates:{mousemove:function(rt){var dt=Me.getLayer(ne)?Me.queryRenderedFeatures(rt.point,{layers:[ne]}):[];dt.length?Fe||(Fe=!0,ge.call(Me,new zc(V,Me,rt.originalEvent,{features:dt}))):Fe=!1},mouseout:function(){Fe=!1}}}}if(V==="mouseleave"||V==="mouseout"){var Je=!1;return{layer:ne,listener:ge,delegates:{mousemove:function(rt){(Me.getLayer(ne)?Me.queryRenderedFeatures(rt.point,{layers:[ne]}):[]).length?Je=!0:Je&&(Je=!1,ge.call(Me,new zc(V,Me,rt.originalEvent)))},mouseout:function(rt){Je&&(Je=!1,ge.call(Me,new zc(V,Me,rt.originalEvent)))}}}}return{layer:ne,listener:ge,delegates:(xe={},xe[V]=function(rt){var dt=Me.getLayer(ne)?Me.queryRenderedFeatures(rt.point,{layers:[ne]}):[];dt.length&&(rt.features=dt,ge.call(Me,rt),delete rt.features)},xe)}},le.prototype.on=function(V,ne,ge){if(ge===void 0)return J.prototype.on.call(this,V,ne);var xe=this._createDelegatedListener(V,ne,ge);for(var Me in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[V]=this._delegatedListeners[V]||[],this._delegatedListeners[V].push(xe),xe.delegates)this.on(Me,xe.delegates[Me]);return this},le.prototype.once=function(V,ne,ge){if(ge===void 0)return J.prototype.once.call(this,V,ne);var xe=this._createDelegatedListener(V,ne,ge);for(var Me in xe.delegates)this.once(Me,xe.delegates[Me]);return this},le.prototype.off=function(V,ne,ge){var xe=this;return ge===void 0?J.prototype.off.call(this,V,ne):(this._delegatedListeners&&this._delegatedListeners[V]&&function(Me){for(var Fe=Me[V],Je=0;Je180;){var xe=ie.locationPoint(J);if(xe.x>=0&&xe.y>=0&&xe.x<=ie.width&&xe.y<=ie.height)break;J.lng>ie.center.lng?J.lng-=360:J.lng+=360}return J}rl.prototype.down=function(J,le){this.mouseRotate.mousedown(J,le),this.mousePitch&&this.mousePitch.mousedown(J,le),w.disableDrag()},rl.prototype.move=function(J,le){var ie=this.map,V=this.mouseRotate.mousemoveWindow(J,le);if(V&&V.bearingDelta&&ie.setBearing(ie.getBearing()+V.bearingDelta),this.mousePitch){var ne=this.mousePitch.mousemoveWindow(J,le);ne&&ne.pitchDelta&&ie.setPitch(ie.getPitch()+ne.pitchDelta)}},rl.prototype.off=function(){var J=this.element;w.removeEventListener(J,"mousedown",this.mousedown),w.removeEventListener(J,"touchstart",this.touchstart,{passive:!1}),w.removeEventListener(J,"touchmove",this.touchmove),w.removeEventListener(J,"touchend",this.touchend),w.removeEventListener(J,"touchcancel",this.reset),this.offTemp()},rl.prototype.offTemp=function(){w.enableDrag(),w.removeEventListener(i.window,"mousemove",this.mousemove),w.removeEventListener(i.window,"mouseup",this.mouseup)},rl.prototype.mousedown=function(J){this.down(i.extend({},J,{ctrlKey:!0,preventDefault:function(){return J.preventDefault()}}),w.mousePos(this.element,J)),w.addEventListener(i.window,"mousemove",this.mousemove),w.addEventListener(i.window,"mouseup",this.mouseup)},rl.prototype.mousemove=function(J){this.move(J,w.mousePos(this.element,J))},rl.prototype.mouseup=function(J){this.mouseRotate.mouseupWindow(J),this.mousePitch&&this.mousePitch.mouseupWindow(J),this.offTemp()},rl.prototype.touchstart=function(J){J.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return J.preventDefault()}},this._startPos))},rl.prototype.touchmove=function(J){J.targetTouches.length!==1?this.reset():(this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.move({preventDefault:function(){return J.preventDefault()}},this._lastPos))},rl.prototype.touchend=function(J){J.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=V}this._isDragging&&(this._pos=ie.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},le.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},le.prototype._addDragHandler=function(ie){this._element.contains(ie.originalEvent.target)&&(ie.preventDefault(),this._positionDelta=ie.point.sub(this._pos).add(this._offset),this._pointerdownPos=ie.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},le.prototype.setDraggable=function(ie){return this._draggable=!!ie,this._map&&(ie?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},le.prototype.isDraggable=function(){return this._draggable},le.prototype.setRotation=function(ie){return this._rotation=ie||0,this._update(),this},le.prototype.getRotation=function(){return this._rotation},le.prototype.setRotationAlignment=function(ie){return this._rotationAlignment=ie||"auto",this._update(),this},le.prototype.getRotationAlignment=function(){return this._rotationAlignment},le.prototype.setPitchAlignment=function(ie){return this._pitchAlignment=ie&&ie!=="auto"?ie:this._rotationAlignment,this._update(),this},le.prototype.getPitchAlignment=function(){return this._pitchAlignment},le}(i.Evented),Zl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Jl=0,Bd=!1,Qs=function(J){function le(ie){J.call(this),this.options=i.extend({},Zl,ie),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.onAdd=function(ie){return this._map=ie,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),V=this._setupUI,au!==void 0?V(au):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(ne){au=ne.state!=="denied",V(au)}):(au=!!i.window.navigator.geolocation,V(au)),this._container;var V},le.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),w.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Jl=0,Bd=!1},le.prototype._isOutOfMapMaxBounds=function(ie){var V=this._map.getMaxBounds(),ne=ie.coords;return V&&(ne.longitudeV.getEast()||ne.latitudeV.getNorth())},le.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},le.prototype._onSuccess=function(ie){if(this._map){if(this._isOutOfMapMaxBounds(ie))return this._setErrorState(),this.fire(new i.Event("outofmaxbounds",ie)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=ie,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(ie),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(ie),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",ie)),this._finish()}},le.prototype._updateCamera=function(ie){var V=new i.LngLat(ie.coords.longitude,ie.coords.latitude),ne=ie.coords.accuracy,ge=this._map.getBearing(),xe=i.extend({bearing:ge},this.options.fitBoundsOptions);this._map.fitBounds(V.toBounds(ne),xe,{geolocateSource:!0})},le.prototype._updateMarker=function(ie){if(ie){var V=new i.LngLat(ie.coords.longitude,ie.coords.latitude);this._accuracyCircleMarker.setLngLat(V).addTo(this._map),this._userLocationDotMarker.setLngLat(V).addTo(this._map),this._accuracy=ie.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},le.prototype._updateCircleRadius=function(){var ie=this._map._container.clientHeight/2,V=this._map.unproject([0,ie]),ne=this._map.unproject([1,ie]),ge=V.distanceTo(ne),xe=Math.ceil(2*this._accuracy/ge);this._circleElement.style.width=xe+"px",this._circleElement.style.height=xe+"px"},le.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},le.prototype._onError=function(ie){if(this._map){if(this.options.trackUserLocation)if(ie.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var V=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=V,this._geolocateButton.setAttribute("aria-label",V),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(ie.code===3&&Bd)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",ie)),this._finish()}},le.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},le.prototype._setupUI=function(ie){var V=this;if(this._container.addEventListener("contextmenu",function(xe){return xe.preventDefault()}),this._geolocateButton=w.create("button","mapboxgl-ctrl-geolocate",this._container),w.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",ie===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var ne=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}else{var ge=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ge,this._geolocateButton.setAttribute("aria-label",ge)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=w.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Zf(this._dotElement),this._circleElement=w.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Zf({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(xe){var Me=xe.originalEvent&&xe.originalEvent.type==="resize";xe.geolocateSource||V._watchState!=="ACTIVE_LOCK"||Me||(V._watchState="BACKGROUND",V._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),V._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),V.fire(new i.Event("trackuserlocationend")))})},le.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Jl--,Bd=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var ie;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Jl>1?(ie={maximumAge:6e5,timeout:0},Bd=!0):(ie=this.options.positionOptions,Bd=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ie)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},le.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},le}(i.Evented),kc={maxWidth:100,unit:"metric"},Iu=function(J){this.options=i.extend({},kc,J),i.bindAll(["_onMove","setUnit"],this)};function Ea(J,le,ie){var V=ie&&ie.maxWidth||100,ne=J._container.clientHeight/2,ge=J.unproject([0,ne]),xe=J.unproject([V,ne]),Me=ge.distanceTo(xe);if(ie&&ie.unit==="imperial"){var Fe=3.2808*Me;Fe>5280?El(le,V,Fe/5280,J._getUIString("ScaleControl.Miles")):El(le,V,Fe,J._getUIString("ScaleControl.Feet"))}else ie&&ie.unit==="nautical"?El(le,V,Me/1852,J._getUIString("ScaleControl.NauticalMiles")):Me>=1e3?El(le,V,Me/1e3,J._getUIString("ScaleControl.Kilometers")):El(le,V,Me,J._getUIString("ScaleControl.Meters"))}function El(J,le,ie,V){var ne,ge,xe,Me=(ne=ie,(ge=Math.pow(10,(""+Math.floor(ne)).length-1))*((xe=ne/ge)>=10?10:xe>=5?5:xe>=3?3:xe>=2?2:xe>=1?1:function(Je){var rt=Math.pow(10,Math.ceil(-Math.log(Je)/Math.LN10));return Math.round(Je*rt)/rt}(xe))),Fe=Me/ie;J.style.width=le*Fe+"px",J.innerHTML=Me+" "+V}Iu.prototype.getDefaultPosition=function(){return"bottom-left"},Iu.prototype._onMove=function(){Ea(this._map,this._container,this.options)},Iu.prototype.onAdd=function(J){return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",J.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Iu.prototype.onRemove=function(){w.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Iu.prototype.setUnit=function(J){this.options.unit=J,Ea(this._map,this._container,this.options)};var _l=function(J){this._fullscreen=!1,J&&J.container&&(J.container instanceof i.window.HTMLElement?this._container=J.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};_l.prototype.onAdd=function(J){return this._map=J,this._container||(this._container=this._map.getContainer()),this._controlContainer=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},_l.prototype.onRemove=function(){w.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},_l.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},_l.prototype._setupUI=function(){var J=this._fullscreenButton=w.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);w.create("span","mapboxgl-ctrl-icon",J).setAttribute("aria-hidden",!0),J.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},_l.prototype._updateTitle=function(){var J=this._getTitle();this._fullscreenButton.setAttribute("aria-label",J),this._fullscreenButton.title=J},_l.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},_l.prototype._isFullscreen=function(){return this._fullscreen},_l.prototype._changeIcon=function(){(i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},_l.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Mi={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Sf=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Ot=function(J){function le(ie){J.call(this),this.options=i.extend(Object.create(Mi),ie),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.addTo=function(ie){return this._map&&this.remove(),this._map=ie,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},le.prototype.isOpen=function(){return!!this._map},le.prototype.remove=function(){return this._content&&w.remove(this._content),this._container&&(w.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},le.prototype.getLngLat=function(){return this._lngLat},le.prototype.setLngLat=function(ie){return this._lngLat=i.LngLat.convert(ie),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},le.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},le.prototype.getElement=function(){return this._container},le.prototype.setText=function(ie){return this.setDOMContent(i.window.document.createTextNode(ie))},le.prototype.setHTML=function(ie){var V,ne=i.window.document.createDocumentFragment(),ge=i.window.document.createElement("body");for(ge.innerHTML=ie;V=ge.firstChild;)ne.appendChild(V);return this.setDOMContent(ne)},le.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},le.prototype.setMaxWidth=function(ie){return this.options.maxWidth=ie,this._update(),this},le.prototype.setDOMContent=function(ie){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=w.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(ie),this._createCloseButton(),this._update(),this._focusFirstElement(),this},le.prototype.addClassName=function(ie){this._container&&this._container.classList.add(ie)},le.prototype.removeClassName=function(ie){this._container&&this._container.classList.remove(ie)},le.prototype.setOffset=function(ie){return this.options.offset=ie,this._update(),this},le.prototype.toggleClassName=function(ie){if(this._container)return this._container.classList.toggle(ie)},le.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=w.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},le.prototype._onMouseUp=function(ie){this._update(ie.point)},le.prototype._onMouseMove=function(ie){this._update(ie.point)},le.prototype._onDrag=function(ie){this._update(ie.point)},le.prototype._update=function(ie){var V=this,ne=this._lngLat||this._trackPointer;if(this._map&&ne&&this._content&&(this._container||(this._container=w.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=w.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(mt){return V._container.classList.add(mt)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Dd(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||ie)){var ge=this._pos=this._trackPointer&&ie?ie:this._map.project(this._lngLat),xe=this.options.anchor,Me=Mt(this.options.offset);if(!xe){var Fe,Je=this._container.offsetWidth,rt=this._container.offsetHeight;Fe=ge.y+Me.bottom.ythis._map.transform.height-rt?["bottom"]:[],ge.xthis._map.transform.width-Je/2&&Fe.push("right"),xe=Fe.length===0?"bottom":Fe.join("-")}var dt=ge.add(Me[xe]).round();w.setTransform(this._container,Vi[xe]+" translate("+dt.x+"px,"+dt.y+"px)"),fa(this._container,xe,"popup")}},le.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var ie=this._container.querySelector(Sf);ie&&ie.focus()}},le.prototype._onClose=function(){this.remove()},le}(i.Evented);function Mt(J){if(J){if(typeof J=="number"){var le=Math.round(Math.sqrt(.5*Math.pow(J,2)));return{center:new i.Point(0,0),top:new i.Point(0,J),"top-left":new i.Point(le,le),"top-right":new i.Point(-le,le),bottom:new i.Point(0,-J),"bottom-left":new i.Point(le,-le),"bottom-right":new i.Point(-le,-le),left:new i.Point(J,0),right:new i.Point(-J,0)}}if(J instanceof i.Point||Array.isArray(J)){var ie=i.Point.convert(J);return{center:ie,top:ie,"top-left":ie,"top-right":ie,bottom:ie,"bottom-left":ie,"bottom-right":ie,left:ie,right:ie}}return{center:i.Point.convert(J.center||[0,0]),top:i.Point.convert(J.top||[0,0]),"top-left":i.Point.convert(J["top-left"]||[0,0]),"top-right":i.Point.convert(J["top-right"]||[0,0]),bottom:i.Point.convert(J.bottom||[0,0]),"bottom-left":i.Point.convert(J["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(J["bottom-right"]||[0,0]),left:i.Point.convert(J.left||[0,0]),right:i.Point.convert(J.right||[0,0])}}return Mt(new i.Point(0,0))}var Ft={version:i.version,supported:O,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Hf,NavigationControl:dd,GeolocateControl:Qs,AttributionControl:Xc,ScaleControl:Iu,FullscreenControl:_l,Popup:Ot,Marker:Zf,Style:ao,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:function(){Yt().acquire(Lt)},clearPrewarmedResources:function(){var J=Ht;J&&(J.isPreloaded()&&J.numActive()===1?(J.release(Lt),Ht=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(J){i.config.ACCESS_TOKEN=J},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(J){i.config.API_URL=J},get workerCount(){return xt.workerCount},set workerCount(J){xt.workerCount=J},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(J){i.config.MAX_PARALLEL_IMAGE_REQUESTS=J},clearStorage:function(J){i.clearTileCache(J)},workerUrl:""};return Ft}),c}()},3108:function(d,l,n){d.exports=n(26099)},26099:function(d,l,n){var c=n(64928),b=n(32420),i=n(51160),O=n(76752),w=n(55616),y=n(31264),p=n(47520),a=n(18400),u=n(72512),h=n(76244);function m(v,_){for(var S=_[0],A=_[1],x=1/(_[2]-S),R=1/(_[3]-A),M=new Array(v.length),T=0,E=v.length/2;T>>1;_.dtype||(_.dtype="array"),typeof _.dtype=="string"?x=new(u(_.dtype))(M):_.dtype&&(x=_.dtype,Array.isArray(x)&&(x.length=M));for(var T=0;TS||Y>1073741824){for(var ae=0;aePe+ze||de>Ie+ze||ve=_e||He===Ve)){var $e=E[De];Ve===void 0&&(Ve=$e.length);for(var Oe=He;Oe=ee&&Le<=he&&We>=me&&We<=se&&Se.push(ke)}var Ue=C[De],Ze=Ue[4*He+0],Xe=Ue[4*He+1],tt=Ue[4*He+2],Ee=Ue[4*He+3],Ne=function(ot,Ge){for(var ht=null,pt=0;ht===null;)if(ht=ot[4*Ge+pt],++pt>ot.length)return null;return ht}(Ue,He+1),je=.5*ze,nt=De+1;Te(Pe,Ie,je,nt,Ze,Xe||tt||Ee||Ne),Te(Pe,Ie+je,je,nt,Xe,tt||Ee||Ne),Te(Pe+je,Ie,je,nt,tt,Ee||Ne),Te(Pe+je,Ie+je,je,nt,Ee,Ne)}}(0,0,1,0,0,1),Se},x;function U(X,te,W){for(var K=1,oe=.5,q=.5,Y=.5,ee=0;ee0){p+=Math.abs(O(y[0]));for(var a=1;a2){for(v=0;v=0))throw new Error("precision must be a positive number");var S=Math.pow(10,_||0);return Math.round(v*S)/S},l.radiansToLength=a,l.lengthToRadians=u,l.lengthToDegrees=function(v,_){return h(u(v,_))},l.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},l.radiansToDegrees=h,l.degreesToRadians=function(v){return v%360*Math.PI/180},l.convertLength=function(v,_,S){if(_===void 0&&(_="kilometers"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(u(v,_),S)},l.convertArea=function(v,_,S){if(_===void 0&&(_="meters"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("area must be a positive number");var A=l.areaFactors[_];if(!A)throw new Error("invalid original units");var x=l.areaFactors[S];if(!x)throw new Error("invalid final units");return v/A*x},l.isNumber=m,l.isObject=function(v){return!!v&&v.constructor===Object},l.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!m(_))throw new Error("bbox must only contain numbers")})},l.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},3256:function(d,l,n){Object.defineProperty(l,"__esModule",{value:!0});var c=n(46284);function b(u,h,m){if(u!==null)for(var v,_,S,A,x,R,M,T,E=0,C=0,L=u.type,D=L==="FeatureCollection",k=L==="Feature",I=D?u.features.length:1,z=0;zR||D>M||k>T)return x=E,R=v,M=D,T=k,void(S=0);var I=c.lineString([x,E],m.properties);if(h(I,v,_,k,S)===!1)return!1;S++,x=E})!==!1&&void 0}}})}function a(u,h){if(!u)throw new Error("geojson is required");y(u,function(m,v,_){if(m.geometry!==null){var S=m.geometry.type,A=m.geometry.coordinates;switch(S){case"LineString":if(h(m,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xw[0]&&(O[0]=w[0]),O[1]>w[1]&&(O[1]=w[1]),O[2]=0))throw new Error("precision must be a positive number");var S=Math.pow(10,_||0);return Math.round(v*S)/S},l.radiansToLength=a,l.lengthToRadians=u,l.lengthToDegrees=function(v,_){return h(u(v,_))},l.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},l.radiansToDegrees=h,l.degreesToRadians=function(v){return v%360*Math.PI/180},l.convertLength=function(v,_,S){if(_===void 0&&(_="kilometers"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(u(v,_),S)},l.convertArea=function(v,_,S){if(_===void 0&&(_="meters"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("area must be a positive number");var A=l.areaFactors[_];if(!A)throw new Error("invalid original units");var x=l.areaFactors[S];if(!x)throw new Error("invalid final units");return v/A*x},l.isNumber=m,l.isObject=function(v){return!!v&&v.constructor===Object},l.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!m(_))throw new Error("bbox must only contain numbers")})},l.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},84880:function(d,l,n){Object.defineProperty(l,"__esModule",{value:!0});var c=n(76796);function b(u,h,m){if(u!==null)for(var v,_,S,A,x,R,M,T,E=0,C=0,L=u.type,D=L==="FeatureCollection",k=L==="Feature",I=D?u.features.length:1,z=0;zR||D>M||k>T)return x=E,R=v,M=D,T=k,void(S=0);var I=c.lineString([x,E],m.properties);if(h(I,v,_,k,S)===!1)return!1;S++,x=E})!==!1&&void 0}}})}function a(u,h){if(!u)throw new Error("geojson is required");y(u,function(m,v,_){if(m.geometry!==null){var S=m.geometry.type,A=m.geometry.coordinates;switch(S){case"LineString":if(h(m,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;x=0))throw new Error("precision must be a positive number");var S=Math.pow(10,_||0);return Math.round(v*S)/S},l.radiansToLength=a,l.lengthToRadians=u,l.lengthToDegrees=function(v,_){return h(u(v,_))},l.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},l.radiansToDegrees=h,l.degreesToRadians=function(v){return v%360*Math.PI/180},l.convertLength=function(v,_,S){if(_===void 0&&(_="kilometers"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(u(v,_),S)},l.convertArea=function(v,_,S){if(_===void 0&&(_="meters"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("area must be a positive number");var A=l.areaFactors[_];if(!A)throw new Error("invalid original units");var x=l.areaFactors[S];if(!x)throw new Error("invalid final units");return v/A*x},l.isNumber=m,l.isObject=function(v){return!!v&&v.constructor===Object},l.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!m(_))throw new Error("bbox must only contain numbers")})},l.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")},l.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},l.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},l.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},l.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},l.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},l.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},l.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},43752:function(d,l,n){Object.defineProperty(l,"__esModule",{value:!0});var c=n(49840);function b(u,h,m){if(u!==null)for(var v,_,S,A,x,R,M,T,E=0,C=0,L=u.type,D=L==="FeatureCollection",k=L==="Feature",I=D?u.features.length:1,z=0;zR||D>M||k>T)return x=E,R=v,M=D,T=k,void(S=0);var I=c.lineString([x,E],m.properties);if(h(I,v,_,k,S)===!1)return!1;S++,x=E})!==!1&&void 0}}})}function a(u,h){if(!u)throw new Error("geojson is required");y(u,function(m,v,_){if(m.geometry!==null){var S=m.geometry.type,A=m.geometry.coordinates;switch(S){case"LineString":if(h(m,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xi&&(i=l[w]),l[w]>16,Me>>16],u_pixel_coord_lower:[65535&xe,65535&Me]}}ju.prototype.draw=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je,rt,dt,mt,Et,Vt,jt){var Nt,cn=J.gl;if(!this.failedToCreate){for(var sn in J.program.set(this.program),J.setDepthMode(ie),J.setStencilMode(V),J.setColorMode(ne),J.setCullFace(ge),this.fixedUniforms)this.fixedUniforms[sn].set(xe[sn]);Et&&Et.setUniforms(J,this.binderUniforms,dt,{zoom:mt});for(var xn=(Nt={},Nt[cn.LINES]=2,Nt[cn.TRIANGLES]=3,Nt[cn.LINE_STRIP]=1,Nt)[le],pn=0,Ln=rt.get();pn0?1-1/(1.001-xe):-xe),u_contrast_factor:(ge=ne.paint.get("raster-contrast"),ge>0?1/(1-ge):1+ge),u_spin_weights:_f(ne.paint.get("raster-hue-rotate"))};var ge,xe};function _f(J){J*=Math.PI/180;var le=Math.sin(J),ie=Math.cos(J);return[(2*ie+1)/3,(-Math.sqrt(3)*le-ie+1)/3,(Math.sqrt(3)*le-ie+1)/3]}var ud,nf=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je){var rt=ne.transform;return{u_is_size_zoom_constant:+(J==="constant"||J==="source"),u_is_size_feature_constant:+(J==="constant"||J==="camera"),u_size_t:le?le.uSizeT:0,u_size:le?le.uSize:0,u_camera_to_center_distance:rt.cameraToCenterDistance,u_pitch:rt.pitch/360*2*Math.PI,u_rotate_symbol:+ie,u_aspect_ratio:rt.width/rt.height,u_fade_change:ne.options.fadeDuration?ne.symbolFadeChange:1,u_matrix:ge,u_label_plane_matrix:xe,u_coord_matrix:Me,u_is_text:+Fe,u_pitch_with_map:+V,u_texsize:Je,u_texture:0}},gh=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je,rt){var dt=ne.transform;return i.extend(nf(J,le,ie,V,ne,ge,xe,Me,Fe,Je),{u_gamma_scale:V?Math.cos(dt._pitch)*dt.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+rt})},rs=function(J,le,ie,V,ne,ge,xe,Me,Fe,Je){return i.extend(gh(J,le,ie,V,ne,ge,xe,Me,!0,Fe,!0),{u_texsize_icon:Je,u_texture_icon:1})},ep=function(J,le,ie){return{u_matrix:J,u_opacity:le,u_color:ie}},Ep=function(J,le,ie,V,ne,ge){return i.extend(function(xe,Me,Fe,Je){var rt=Fe.imageManager.getPattern(xe.from.toString()),dt=Fe.imageManager.getPattern(xe.to.toString()),mt=Fe.imageManager.getPixelSize(),Et=mt.width,Vt=mt.height,jt=Math.pow(2,Je.tileID.overscaledZ),Nt=Je.tileSize*Math.pow(2,Fe.transform.tileZoom)/jt,cn=Nt*(Je.tileID.canonical.x+Je.tileID.wrap*jt),sn=Nt*Je.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:rt.tl,u_pattern_br_a:rt.br,u_pattern_tl_b:dt.tl,u_pattern_br_b:dt.br,u_texsize:[Et,Vt],u_mix:Me.t,u_pattern_size_a:rt.displaySize,u_pattern_size_b:dt.displaySize,u_scale_a:Me.fromScale,u_scale_b:Me.toScale,u_tile_units_to_pixels:1/go(Je,1,Fe.transform.tileZoom),u_pixel_coord_upper:[cn>>16,sn>>16],u_pixel_coord_lower:[65535&cn,65535&sn]}}(V,ge,ie,ne),{u_matrix:J,u_opacity:le})},vm={fillExtrusion:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fillExtrusionPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_height_factor:new i.Uniform1f(J,le.u_height_factor),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fill:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},fillPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},fillOutline:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world)}},fillOutlinePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},circle:function(J,le){return{u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(J,le.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},collisionBox:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(J,le.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_overscale_factor:new i.Uniform1f(J,le.u_overscale_factor)}},collisionCircle:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_inv_matrix:new i.UniformMatrix4f(J,le.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(J,le.u_viewport_size)}},debug:function(J,le){return{u_color:new i.UniformColor(J,le.u_color),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_overlay:new i.Uniform1i(J,le.u_overlay),u_overlay_scale:new i.Uniform1f(J,le.u_overlay_scale)}},clippingMask:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmap:function(J,le){return{u_extrude_scale:new i.Uniform1f(J,le.u_extrude_scale),u_intensity:new i.Uniform1f(J,le.u_intensity),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmapTexture:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_color_ramp:new i.Uniform1i(J,le.u_color_ramp),u_opacity:new i.Uniform1f(J,le.u_opacity)}},hillshade:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_latrange:new i.Uniform2f(J,le.u_latrange),u_light:new i.Uniform2f(J,le.u_light),u_shadow:new i.UniformColor(J,le.u_shadow),u_highlight:new i.UniformColor(J,le.u_highlight),u_accent:new i.UniformColor(J,le.u_accent)}},hillshadePrepare:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_dimension:new i.Uniform2f(J,le.u_dimension),u_zoom:new i.Uniform1f(J,le.u_zoom),u_unpack:new i.Uniform4f(J,le.u_unpack)}},line:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels)}},lineGradient:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_image:new i.Uniform1i(J,le.u_image),u_image_height:new i.Uniform1f(J,le.u_image_height)}},linePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_texsize:new i.Uniform2f(J,le.u_texsize),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_image:new i.Uniform1i(J,le.u_image),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},lineSDF:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(J,le.u_patternscale_a),u_patternscale_b:new i.Uniform2f(J,le.u_patternscale_b),u_sdfgamma:new i.Uniform1f(J,le.u_sdfgamma),u_image:new i.Uniform1i(J,le.u_image),u_tex_y_a:new i.Uniform1f(J,le.u_tex_y_a),u_tex_y_b:new i.Uniform1f(J,le.u_tex_y_b),u_mix:new i.Uniform1f(J,le.u_mix)}},raster:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_tl_parent:new i.Uniform2f(J,le.u_tl_parent),u_scale_parent:new i.Uniform1f(J,le.u_scale_parent),u_buffer_scale:new i.Uniform1f(J,le.u_buffer_scale),u_fade_t:new i.Uniform1f(J,le.u_fade_t),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image0:new i.Uniform1i(J,le.u_image0),u_image1:new i.Uniform1i(J,le.u_image1),u_brightness_low:new i.Uniform1f(J,le.u_brightness_low),u_brightness_high:new i.Uniform1f(J,le.u_brightness_high),u_saturation_factor:new i.Uniform1f(J,le.u_saturation_factor),u_contrast_factor:new i.Uniform1f(J,le.u_contrast_factor),u_spin_weights:new i.Uniform3f(J,le.u_spin_weights)}},symbolIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture)}},symbolSDF:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},symbolTextAndIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texsize_icon:new i.Uniform2f(J,le.u_texsize_icon),u_texture:new i.Uniform1i(J,le.u_texture),u_texture_icon:new i.Uniform1i(J,le.u_texture_icon),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},background:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_color:new i.UniformColor(J,le.u_color)}},backgroundPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image:new i.Uniform1i(J,le.u_image),u_pattern_tl_a:new i.Uniform2f(J,le.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(J,le.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(J,le.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(J,le.u_pattern_br_b),u_texsize:new i.Uniform2f(J,le.u_texsize),u_mix:new i.Uniform1f(J,le.u_mix),u_pattern_size_a:new i.Uniform2f(J,le.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(J,le.u_pattern_size_b),u_scale_a:new i.Uniform1f(J,le.u_scale_a),u_scale_b:new i.Uniform1f(J,le.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(J,le.u_tile_units_to_pixels)}}};function Pd(J,le,ie,V,ne,ge,xe){for(var Me=J.context,Fe=Me.gl,Je=J.useProgram("collisionBox"),rt=[],dt=0,mt=0,Et=0;Et0){var pn=i.create(),Ln=cn;i.mul(pn,Nt.placementInvProjMatrix,J.transform.glCoordMatrix),i.mul(pn,pn,Nt.placementViewportMatrix),rt.push({circleArray:xn,circleOffset:mt,transform:Ln,invTransform:pn}),mt=dt+=xn.length/4}sn&&Je.draw(Me,Fe.LINES,bn.disabled,vt.disabled,J.colorModeForRenderPass(),lt.disabled,ef(cn,J.transform,jt),ie.id,sn.layoutVertexBuffer,sn.indexBuffer,sn.segments,null,J.transform.zoom,null,null,sn.collisionVertexBuffer)}}if(xe&&rt.length){var On=J.useProgram("collisionCircle"),An=new i.StructArrayLayout2f1f2i16;An.resize(4*dt),An._trim();for(var Sn=0,rr=0,Dr=rt;rr=0&&(Vt[Nt.associatedIconIndex]={shiftedAnchor:Dr,angle:Pr})}else Kr(Nt.numGlyphs,mt)}if(rt){Et.clear();for(var Mo=J.icon.placedSymbolArray,$o=0;$o0){var xe=i.browser.now(),Me=(xe-J.timeAdded)/ge,Fe=le?(xe-le.timeAdded)/ge:-1,Je=ie.getSource(),rt=ne.coveringZoomLevel({tileSize:Je.tileSize,roundZoom:Je.roundZoom}),dt=!le||Math.abs(le.tileID.overscaledZ-rt)>Math.abs(J.tileID.overscaledZ-rt),mt=dt&&J.refreshedUponExpiration?1:i.clamp(dt?Me:1-Fe,0,1);return J.refreshedUponExpiration&&Me>=1&&(J.refreshedUponExpiration=!1),le?{opacity:1,mix:1-mt}:{opacity:mt,mix:0}}return{opacity:1,mix:0}}var ym=new i.Color(1,0,0,1),Mu=new i.Color(0,1,0,1),Hu=new i.Color(0,0,1,1),Lp=new i.Color(1,0,1,1),Uh=new i.Color(0,1,1,1);function jh(J){var le=J.transform.padding;Eu(J,J.transform.height-(le.top||0),3,ym),Eu(J,le.bottom||0,3,Mu),fd(J,le.left||0,3,Hu),fd(J,J.transform.width-(le.right||0),3,Lp);var ie=J.transform.centerPoint;(function(V,ne,ge,xe){var Me=20,Fe=2;vh(V,ne-Fe/2,ge-Me/2,Fe,Me,xe),vh(V,ne-Me/2,ge-Fe/2,Me,Fe,xe)})(J,ie.x,J.transform.height-ie.y,Uh)}function Eu(J,le,ie,V){vh(J,0,le+ie/2,J.transform.width,ie,V)}function fd(J,le,ie,V){vh(J,le-ie/2,0,ie,J.transform.height,V)}function vh(J,le,ie,V,ne,ge){var xe=J.context,Me=xe.gl;Me.enable(Me.SCISSOR_TEST),Me.scissor(le*i.browser.devicePixelRatio,ie*i.browser.devicePixelRatio,V*i.browser.devicePixelRatio,ne*i.browser.devicePixelRatio),xe.clear({color:ge}),Me.disable(Me.SCISSOR_TEST)}function Pu(J,le,ie){var V=J.context,ne=V.gl,ge=ie.posMatrix,xe=J.useProgram("debug"),Me=bn.disabled,Fe=vt.disabled,Je=J.colorModeForRenderPass(),rt="$debug";V.activeTexture.set(ne.TEXTURE0),J.emptyTexture.bind(ne.LINEAR,ne.CLAMP_TO_EDGE),xe.draw(V,ne.LINE_STRIP,Me,Fe,Je,lt.disabled,sd(ge,i.Color.red),rt,J.debugBuffer,J.tileBorderIndexBuffer,J.debugSegments);var dt=le.getTileByID(ie.key).latestRawTileData,mt=dt&&dt.byteLength||0,Et=Math.floor(mt/1024),Vt=le.getTile(ie).tileSize,jt=512/Math.min(Vt,512)*(ie.overscaledZ/J.transform.zoom)*.5,Nt=ie.canonical.toString();ie.overscaledZ!==ie.canonical.z&&(Nt+=" => "+ie.overscaledZ),function(cn,sn){cn.initDebugOverlayCanvas();var xn=cn.debugOverlayCanvas,pn=cn.context.gl,Ln=cn.debugOverlayCanvas.getContext("2d");Ln.clearRect(0,0,xn.width,xn.height),Ln.shadowColor="white",Ln.shadowBlur=2,Ln.lineWidth=1.5,Ln.strokeStyle="white",Ln.textBaseline="top",Ln.font="bold 36px Open Sans, sans-serif",Ln.fillText(sn,5,5),Ln.strokeText(sn,5,5),cn.debugOverlayTexture.update(xn),cn.debugOverlayTexture.bind(pn.LINEAR,pn.CLAMP_TO_EDGE)}(J,Nt+" "+Et+"kb"),xe.draw(V,ne.TRIANGLES,Me,Fe,bt.alphaBlended,lt.disabled,sd(ge,i.Color.transparent,jt),rt,J.debugBuffer,J.quadTriangleIndexBuffer,J.debugSegments)}var Oc={symbol:function(J,le,ie,V,ne){if(J.renderPass==="translucent"){var ge=vt.disabled,xe=J.colorModeForRenderPass();ie.layout.get("text-variable-anchor")&&function(Me,Fe,Je,rt,dt,mt,Et){for(var Vt=Fe.transform,jt=dt==="map",Nt=mt==="map",cn=0,sn=Me;cn256&&this.clearStencil(),ie.setColorMode(bt.disabled),ie.setDepthMode(bn.disabled);var ne=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ge=0,xe=le;ge256&&this.clearStencil();var J=this.nextStencilID++,le=this.context.gl;return new vt({func:le.NOTEQUAL,mask:255},J,255,le.KEEP,le.KEEP,le.REPLACE)},Ts.prototype.stencilModeForClipping=function(J){var le=this.context.gl;return new vt({func:le.EQUAL,mask:255},this._tileClippingMaskIDs[J.key],0,le.KEEP,le.KEEP,le.REPLACE)},Ts.prototype.stencilConfigForOverlap=function(J){var le,ie=this.context.gl,V=J.sort(function(Fe,Je){return Je.overscaledZ-Fe.overscaledZ}),ne=V[V.length-1].overscaledZ,ge=V[0].overscaledZ-ne+1;if(ge>1){this.currentStencilSource=void 0,this.nextStencilID+ge>256&&this.clearStencil();for(var xe={},Me=0;Me=0;this.currentLayer--){var Ln=this.style._layers[V[this.currentLayer]],On=ne[Ln.source],An=Je[Ln.source];this._renderTileClippingMasks(Ln,An),this.renderLayer(this,On,Ln,An)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?le.pop():null},Ts.prototype.isPatternMissing=function(J){if(!J)return!1;if(!J.from||!J.to)return!0;var le=this.imageManager.getPattern(J.from.toString()),ie=this.imageManager.getPattern(J.to.toString());return!le||!ie},Ts.prototype.useProgram=function(J,le){this.cache=this.cache||{};var ie=""+J+(le?le.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[ie]||(this.cache[ie]=new ju(this.context,J,la[J],le,vm[J],this._showOverdrawInspector)),this.cache[ie]},Ts.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Ts.prototype.setBaseState=function(){var J=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(J.FUNC_ADD)},Ts.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var J=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,J.RGBA)}},Ts.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Uf=function(J,le){this.points=J,this.planes=le};Uf.fromInvProjectionMatrix=function(J,le,ie){var V=Math.pow(2,ie),ne=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(xe){return i.transformMat4([],xe,J)}).map(function(xe){return i.scale$1([],xe,1/xe[3]/le*V)}),ge=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(xe){var Me=i.sub([],ne[xe[0]],ne[xe[1]]),Fe=i.sub([],ne[xe[2]],ne[xe[1]]),Je=i.normalize([],i.cross([],Me,Fe)),rt=-i.dot(Je,ne[xe[1]]);return Je.concat(rt)});return new Uf(ne,ge)};var zl=function(J,le){this.min=J,this.max=le,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};zl.prototype.quadrant=function(J){for(var le=[J%2==0,J<2],ie=i.clone$2(this.min),V=i.clone$2(this.max),ne=0;ne=0;if(ge===0)return 0;ge!==le.length&&(ie=!1)}if(ie)return 2;for(var Me=0;Me<3;Me++){for(var Fe=Number.MAX_VALUE,Je=-Number.MAX_VALUE,rt=0;rtthis.max[Me]-this.min[Me])return 0}return 1};var Hl=function(J,le,ie,V){if(J===void 0&&(J=0),le===void 0&&(le=0),ie===void 0&&(ie=0),V===void 0&&(V=0),isNaN(J)||J<0||isNaN(le)||le<0||isNaN(ie)||ie<0||isNaN(V)||V<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=J,this.bottom=le,this.left=ie,this.right=V};Hl.prototype.interpolate=function(J,le,ie){return le.top!=null&&J.top!=null&&(this.top=i.number(J.top,le.top,ie)),le.bottom!=null&&J.bottom!=null&&(this.bottom=i.number(J.bottom,le.bottom,ie)),le.left!=null&&J.left!=null&&(this.left=i.number(J.left,le.left,ie)),le.right!=null&&J.right!=null&&(this.right=i.number(J.right,le.right,ie)),this},Hl.prototype.getCenter=function(J,le){var ie=i.clamp((this.left+J-this.right)/2,0,J),V=i.clamp((this.top+le-this.bottom)/2,0,le);return new i.Point(ie,V)},Hl.prototype.equals=function(J){return this.top===J.top&&this.bottom===J.bottom&&this.left===J.left&&this.right===J.right},Hl.prototype.clone=function(){return new Hl(this.top,this.bottom,this.left,this.right)},Hl.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Cs=function(J,le,ie,V,ne){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=ne===void 0||ne,this._minZoom=J||0,this._maxZoom=le||22,this._minPitch=ie??0,this._maxPitch=V??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Hl,this._posMatrixCache={},this._alignedPosMatrixCache={}},$s={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Cs.prototype.clone=function(){var J=new Cs(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return J.tileSize=this.tileSize,J.latRange=this.latRange,J.width=this.width,J.height=this.height,J._center=this._center,J.zoom=this.zoom,J.angle=this.angle,J._fov=this._fov,J._pitch=this._pitch,J._unmodified=this._unmodified,J._edgeInsets=this._edgeInsets.clone(),J._calcMatrices(),J},$s.minZoom.get=function(){return this._minZoom},$s.minZoom.set=function(J){this._minZoom!==J&&(this._minZoom=J,this.zoom=Math.max(this.zoom,J))},$s.maxZoom.get=function(){return this._maxZoom},$s.maxZoom.set=function(J){this._maxZoom!==J&&(this._maxZoom=J,this.zoom=Math.min(this.zoom,J))},$s.minPitch.get=function(){return this._minPitch},$s.minPitch.set=function(J){this._minPitch!==J&&(this._minPitch=J,this.pitch=Math.max(this.pitch,J))},$s.maxPitch.get=function(){return this._maxPitch},$s.maxPitch.set=function(J){this._maxPitch!==J&&(this._maxPitch=J,this.pitch=Math.min(this.pitch,J))},$s.renderWorldCopies.get=function(){return this._renderWorldCopies},$s.renderWorldCopies.set=function(J){J===void 0?J=!0:J===null&&(J=!1),this._renderWorldCopies=J},$s.worldSize.get=function(){return this.tileSize*this.scale},$s.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},$s.size.get=function(){return new i.Point(this.width,this.height)},$s.bearing.get=function(){return-this.angle/Math.PI*180},$s.bearing.set=function(J){var le=-i.wrap(J,-180,180)*Math.PI/180;this.angle!==le&&(this._unmodified=!1,this.angle=le,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},$s.pitch.get=function(){return this._pitch/Math.PI*180},$s.pitch.set=function(J){var le=i.clamp(J,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==le&&(this._unmodified=!1,this._pitch=le,this._calcMatrices())},$s.fov.get=function(){return this._fov/Math.PI*180},$s.fov.set=function(J){J=Math.max(.01,Math.min(60,J)),this._fov!==J&&(this._unmodified=!1,this._fov=J/180*Math.PI,this._calcMatrices())},$s.zoom.get=function(){return this._zoom},$s.zoom.set=function(J){var le=Math.min(Math.max(J,this.minZoom),this.maxZoom);this._zoom!==le&&(this._unmodified=!1,this._zoom=le,this.scale=this.zoomScale(le),this.tileZoom=Math.floor(le),this.zoomFraction=le-this.tileZoom,this._constrain(),this._calcMatrices())},$s.center.get=function(){return this._center},$s.center.set=function(J){J.lat===this._center.lat&&J.lng===this._center.lng||(this._unmodified=!1,this._center=J,this._constrain(),this._calcMatrices())},$s.padding.get=function(){return this._edgeInsets.toJSON()},$s.padding.set=function(J){this._edgeInsets.equals(J)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,J,1),this._calcMatrices())},$s.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Cs.prototype.isPaddingEqual=function(J){return this._edgeInsets.equals(J)},Cs.prototype.interpolatePadding=function(J,le,ie){this._unmodified=!1,this._edgeInsets.interpolate(J,le,ie),this._constrain(),this._calcMatrices()},Cs.prototype.coveringZoomLevel=function(J){var le=(J.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/J.tileSize));return Math.max(0,le)},Cs.prototype.getVisibleUnwrappedCoordinates=function(J){var le=[new i.UnwrappedTileID(0,J)];if(this._renderWorldCopies)for(var ie=this.pointCoordinate(new i.Point(0,0)),V=this.pointCoordinate(new i.Point(this.width,0)),ne=this.pointCoordinate(new i.Point(this.width,this.height)),ge=this.pointCoordinate(new i.Point(0,this.height)),xe=Math.floor(Math.min(ie.x,V.x,ne.x,ge.x)),Me=Math.floor(Math.max(ie.x,V.x,ne.x,ge.x)),Fe=xe-1;Fe<=Me+1;Fe++)Fe!==0&&le.push(new i.UnwrappedTileID(Fe,J));return le},Cs.prototype.coveringTiles=function(J){var le=this.coveringZoomLevel(J),ie=le;if(J.minzoom!==void 0&&leJ.maxzoom&&(le=J.maxzoom);var V=i.MercatorCoordinate.fromLngLat(this.center),ne=Math.pow(2,le),ge=[ne*V.x,ne*V.y,0],xe=Uf.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,le),Me=J.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Me=le);var Fe=function(Dr){return{aabb:new zl([Dr*ne,0,0],[(Dr+1)*ne,ne,0]),zoom:0,x:0,y:0,wrap:Dr,fullyVisible:!1}},Je=[],rt=[],dt=le,mt=J.reparseOverscaled?ie:le;if(this._renderWorldCopies)for(var Et=1;Et<=3;Et++)Je.push(Fe(-Et)),Je.push(Fe(Et));for(Je.push(Fe(0));Je.length>0;){var Vt=Je.pop(),jt=Vt.x,Nt=Vt.y,cn=Vt.fullyVisible;if(!cn){var sn=Vt.aabb.intersects(xe);if(sn===0)continue;cn=sn===2}var xn=Vt.aabb.distanceX(ge),pn=Vt.aabb.distanceY(ge),Ln=Math.max(Math.abs(xn),Math.abs(pn)),On=3+(1<On&&Vt.zoom>=Me)rt.push({tileID:new i.OverscaledTileID(Vt.zoom===dt?mt:Vt.zoom,Vt.wrap,Vt.zoom,jt,Nt),distanceSq:i.sqrLen([ge[0]-.5-jt,ge[1]-.5-Nt])});else for(var An=0;An<4;An++){var Sn=(jt<<1)+An%2,rr=(Nt<<1)+(An>>1);Je.push({aabb:Vt.aabb.quadrant(An),zoom:Vt.zoom+1,x:Sn,y:rr,wrap:Vt.wrap,fullyVisible:cn})}}return rt.sort(function(Dr,Pr){return Dr.distanceSq-Pr.distanceSq}).map(function(Dr){return Dr.tileID})},Cs.prototype.resize=function(J,le){this.width=J,this.height=le,this.pixelsToGLUnits=[2/J,-2/le],this._constrain(),this._calcMatrices()},$s.unmodified.get=function(){return this._unmodified},Cs.prototype.zoomScale=function(J){return Math.pow(2,J)},Cs.prototype.scaleZoom=function(J){return Math.log(J)/Math.LN2},Cs.prototype.project=function(J){var le=i.clamp(J.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(J.lng)*this.worldSize,i.mercatorYfromLat(le)*this.worldSize)},Cs.prototype.unproject=function(J){return new i.MercatorCoordinate(J.x/this.worldSize,J.y/this.worldSize).toLngLat()},$s.point.get=function(){return this.project(this.center)},Cs.prototype.setLocationAtPoint=function(J,le){var ie=this.pointCoordinate(le),V=this.pointCoordinate(this.centerPoint),ne=this.locationCoordinate(J),ge=new i.MercatorCoordinate(ne.x-(ie.x-V.x),ne.y-(ie.y-V.y));this.center=this.coordinateLocation(ge),this._renderWorldCopies&&(this.center=this.center.wrap())},Cs.prototype.locationPoint=function(J){return this.coordinatePoint(this.locationCoordinate(J))},Cs.prototype.pointLocation=function(J){return this.coordinateLocation(this.pointCoordinate(J))},Cs.prototype.locationCoordinate=function(J){return i.MercatorCoordinate.fromLngLat(J)},Cs.prototype.coordinateLocation=function(J){return J.toLngLat()},Cs.prototype.pointCoordinate=function(J){var le=[J.x,J.y,0,1],ie=[J.x,J.y,1,1];i.transformMat4(le,le,this.pixelMatrixInverse),i.transformMat4(ie,ie,this.pixelMatrixInverse);var V=le[3],ne=ie[3],ge=le[0]/V,xe=ie[0]/ne,Me=le[1]/V,Fe=ie[1]/ne,Je=le[2]/V,rt=ie[2]/ne,dt=Je===rt?0:(0-Je)/(rt-Je);return new i.MercatorCoordinate(i.number(ge,xe,dt)/this.worldSize,i.number(Me,Fe,dt)/this.worldSize)},Cs.prototype.coordinatePoint=function(J){var le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix),new i.Point(le[0]/le[3],le[1]/le[3])},Cs.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},Cs.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Cs.prototype.setMaxBounds=function(J){J?(this.lngRange=[J.getWest(),J.getEast()],this.latRange=[J.getSouth(),J.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Cs.prototype.calculatePosMatrix=function(J,le){le===void 0&&(le=!1);var ie=J.key,V=le?this._alignedPosMatrixCache:this._posMatrixCache;if(V[ie])return V[ie];var ne=J.canonical,ge=this.worldSize/this.zoomScale(ne.z),xe=ne.x+Math.pow(2,ne.z)*J.wrap,Me=i.identity(new Float64Array(16));return i.translate(Me,Me,[xe*ge,ne.y*ge,0]),i.scale(Me,Me,[ge/i.EXTENT,ge/i.EXTENT,1]),i.multiply(Me,le?this.alignedProjMatrix:this.projMatrix,Me),V[ie]=new Float32Array(Me),V[ie]},Cs.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Cs.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var J,le,ie,V,ne=-90,ge=90,xe=-180,Me=180,Fe=this.size,Je=this._unmodified;if(this.latRange){var rt=this.latRange;ne=i.mercatorYfromLat(rt[1])*this.worldSize,J=(ge=i.mercatorYfromLat(rt[0])*this.worldSize)-nege&&(V=ge-jt)}if(this.lngRange){var Nt=mt.x,cn=Fe.x/2;Nt-cnMe&&(ie=Me-cn)}ie===void 0&&V===void 0||(this.center=this.unproject(new i.Point(ie!==void 0?ie:mt.x,V!==void 0?V:mt.y))),this._unmodified=Je,this._constraining=!1}},Cs.prototype._calcMatrices=function(){if(this.height){var J=this._fov/2,le=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(J)*this.height;var ie=Math.PI/2+this._pitch,V=this._fov*(.5+le.y/this.height),ne=Math.sin(V)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-ie-V,.01,Math.PI-.01)),ge=this.point,xe=ge.x,Me=ge.y,Fe=1.01*(Math.cos(Math.PI/2-this._pitch)*ne+this.cameraToCenterDistance),Je=this.height/50,rt=new Float64Array(16);i.perspective(rt,this._fov,this.width/this.height,Je,Fe),rt[8]=2*-le.x/this.width,rt[9]=2*le.y/this.height,i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[0,0,-this.cameraToCenterDistance]),i.rotateX(rt,rt,this._pitch),i.rotateZ(rt,rt,this.angle),i.translate(rt,rt,[-xe,-Me,0]),this.mercatorMatrix=i.scale([],rt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(rt,rt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=rt,this.invProjMatrix=i.invert([],this.projMatrix);var dt=this.width%2/2,mt=this.height%2/2,Et=Math.cos(this.angle),Vt=Math.sin(this.angle),jt=xe-Math.round(xe)+Et*dt+Vt*mt,Nt=Me-Math.round(Me)+Et*mt+Vt*dt,cn=new Float64Array(rt);if(i.translate(cn,cn,[jt>.5?jt-1:jt,Nt>.5?Nt-1:Nt,0]),this.alignedProjMatrix=cn,rt=i.create(),i.scale(rt,rt,[this.width/2,-this.height/2,1]),i.translate(rt,rt,[1,-1,0]),this.labelPlaneMatrix=rt,rt=i.create(),i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[-1,-1,0]),i.scale(rt,rt,[2/this.width,2/this.height,1]),this.glCoordMatrix=rt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(rt=i.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=rt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Cs.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var J=this.pointCoordinate(new i.Point(0,0)),le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix)[3]/this.cameraToCenterDistance},Cs.prototype.getCameraPoint=function(){var J=this._pitch,le=Math.tan(J)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,le))},Cs.prototype.getCameraQueryGeometry=function(J){var le=this.getCameraPoint();if(J.length===1)return[J[0],le];for(var ie=le.x,V=le.y,ne=le.x,ge=le.y,xe=0,Me=J;xe=3&&!J.some(function(ie){return isNaN(ie)})){var le=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(J[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+J[2],+J[1]],zoom:+J[0],bearing:le,pitch:+(J[4]||0)}),!0}return!1},Zu.prototype._updateHashUnthrottled=function(){var J=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,J)}catch{}};var yh={linearity:.3,easing:i.bezier(0,0,.3,1)},of=i.extend({deceleration:2500,maxSpeed:1400},yh),tp=i.extend({deceleration:20,maxSpeed:1400},yh),Ip=i.extend({deceleration:1e3,maxSpeed:360},yh),bm=i.extend({deceleration:1e3,maxSpeed:90},yh),Kd=function(J){this._map=J,this.clear()};function bh(J,le){(!J.duration||J.duration0&&le-J[0].time>160;)J.shift()},Kd.prototype._onMoveEnd=function(J){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var le={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},ie=0,V=this._inertiaBuffer;ie=this._clickTolerance||this._map.fire(new zc(J.type,this._map,J))},Ya.prototype.dblclick=function(J){return this._firePreventable(new zc(J.type,this._map,J))},Ya.prototype.mouseover=function(J){this._map.fire(new zc(J.type,this._map,J))},Ya.prototype.mouseout=function(J){this._map.fire(new zc(J.type,this._map,J))},Ya.prototype.touchstart=function(J){return this._firePreventable(new np(J.type,this._map,J))},Ya.prototype.touchmove=function(J){this._map.fire(new np(J.type,this._map,J))},Ya.prototype.touchend=function(J){this._map.fire(new np(J.type,this._map,J))},Ya.prototype.touchcancel=function(J){this._map.fire(new np(J.type,this._map,J))},Ya.prototype._firePreventable=function(J){if(this._map.fire(J),J.defaultPrevented)return{}},Ya.prototype.isEnabled=function(){return!0},Ya.prototype.isActive=function(){return!1},Ya.prototype.enable=function(){},Ya.prototype.disable=function(){};var _l=function(J){this._map=J};_l.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},_l.prototype.mousemove=function(J){this._map.fire(new zc(J.type,this._map,J))},_l.prototype.mousedown=function(){this._delayContextMenu=!0},_l.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new zc("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},_l.prototype.contextmenu=function(J){this._delayContextMenu?this._contextMenuEvent=J:this._map.fire(new zc(J.type,this._map,J)),this._map.listens("contextmenu")&&J.preventDefault()},_l.prototype.isEnabled=function(){return!0},_l.prototype.isActive=function(){return!1},_l.prototype.enable=function(){},_l.prototype.disable=function(){};var dl=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._container=J.getContainer(),this._clickTolerance=le.clickTolerance||1};function Wc(J,le){for(var ie={},V=0;Vthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=J.timeStamp),ie.length===this.numTouches&&(this.centroid=function(V){for(var ne=new i.Point(0,0),ge=0,xe=V;ge30)&&(this.aborted=!0)}}},wl.prototype.touchend=function(J,le,ie){if((!this.centroid||J.timeStamp-this.startTime>500)&&(this.aborted=!0),ie.length===0){var V=!this.aborted&&this.centroid;if(this.reset(),V)return V}};var xi=function(J){this.singleTap=new wl(J),this.numTaps=J.numTaps,this.reset()};xi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},xi.prototype.touchstart=function(J,le,ie){this.singleTap.touchstart(J,le,ie)},xi.prototype.touchmove=function(J,le,ie){this.singleTap.touchmove(J,le,ie)},xi.prototype.touchend=function(J,le,ie){var V=this.singleTap.touchend(J,le,ie);if(V){var ne=J.timeStamp-this.lastTime<500,ge=!this.lastTap||this.lastTap.dist(V)<30;if(ne&&ge||this.reset(),this.count++,this.lastTime=J.timeStamp,this.lastTap=V,this.count===this.numTaps)return this.reset(),V}};var mu=function(){this._zoomIn=new xi({numTouches:1,numTaps:2}),this._zoomOut=new xi({numTouches:2,numTaps:1}),this.reset()};mu.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},mu.prototype.touchstart=function(J,le,ie){this._zoomIn.touchstart(J,le,ie),this._zoomOut.touchstart(J,le,ie)},mu.prototype.touchmove=function(J,le,ie){this._zoomIn.touchmove(J,le,ie),this._zoomOut.touchmove(J,le,ie)},mu.prototype.touchend=function(J,le,ie){var V=this,ne=this._zoomIn.touchend(J,le,ie),ge=this._zoomOut.touchend(J,le,ie);return ne?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()+1,around:xe.unproject(ne)},{originalEvent:J})}}):ge?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()-1,around:xe.unproject(ge)},{originalEvent:J})}}):void 0},mu.prototype.touchcancel=function(){this.reset()},mu.prototype.enable=function(){this._enabled=!0},mu.prototype.disable=function(){this._enabled=!1,this.reset()},mu.prototype.isEnabled=function(){return this._enabled},mu.prototype.isActive=function(){return this._active};var xh={};xh[0]=1,xh[2]=2;var js=function(J){this.reset(),this._clickTolerance=J.clickTolerance||1};js.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},js.prototype._correctButton=function(J,le){return!1},js.prototype._move=function(J,le){return{}},js.prototype.mousedown=function(J,le){if(!this._lastPoint){var ie=w.mouseButton(J);this._correctButton(J,ie)&&(this._lastPoint=le,this._eventButton=ie)}},js.prototype.mousemoveWindow=function(J,le){var ie=this._lastPoint;if(ie){if(J.preventDefault(),function(V,ne){var ge=xh[ne];return V.buttons===void 0||(V.buttons&ge)!==ge}(J,this._eventButton))this.reset();else if(this._moved||!(le.dist(ie)0&&(this._active=!0);var V=Wc(ie,le),ne=new i.Point(0,0),ge=new i.Point(0,0),xe=0;for(var Me in V){var Fe=V[Me],Je=this._touches[Me];Je&&(ne._add(Fe),ge._add(Fe.sub(Je)),xe++,V[Me]=Fe)}if(this._touches=V,!(xeMath.abs(J.x)}var Kl=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.reset=function(){J.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},le.prototype._start=function(ie){this._lastPoints=ie,Yc(ie[0].sub(ie[1]))&&(this._valid=!1)},le.prototype._move=function(ie,V,ne){var ge=ie[0].sub(this._lastPoints[0]),xe=ie[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ge,xe,ne.timeStamp),this._valid)return this._lastPoints=ie,this._active=!0,{pitchDelta:(ge.y+xe.y)/2*-.5}},le.prototype.gestureBeginsVertically=function(ie,V,ne){if(this._valid!==void 0)return this._valid;var ge=ie.mag()>=2,xe=V.mag()>=2;if(ge||xe){if(!ge||!xe)return this._firstMove===void 0&&(this._firstMove=ne),ne-this._firstMove<100&&void 0;var Me=ie.y>0==V.y>0;return Yc(ie)&&Yc(V)&&Me}},le}(Ml),Fc={panStep:100,bearingStep:15,pitchStep:10},si=function(){var J=Fc;this._panStep=J.panStep,this._bearingStep=J.bearingStep,this._pitchStep=J.pitchStep,this._rotationDisabled=!1};function Hh(J){return J*(2-J)}si.prototype.reset=function(){this._active=!1},si.prototype.keydown=function(J){var le=this;if(!(J.altKey||J.ctrlKey||J.metaKey)){var ie=0,V=0,ne=0,ge=0,xe=0;switch(J.keyCode){case 61:case 107:case 171:case 187:ie=1;break;case 189:case 109:case 173:ie=-1;break;case 37:J.shiftKey?V=-1:(J.preventDefault(),ge=-1);break;case 39:J.shiftKey?V=1:(J.preventDefault(),ge=1);break;case 38:J.shiftKey?ne=1:(J.preventDefault(),xe=-1);break;case 40:J.shiftKey?ne=-1:(J.preventDefault(),xe=1);break;default:return}return this._rotationDisabled&&(V=0,ne=0),{cameraAnimation:function(Me){var Fe=Me.getZoom();Me.easeTo({duration:300,easeId:"keyboardHandler",easing:Hh,zoom:ie?Math.round(Fe)+ie*(J.shiftKey?2:1):Fe,bearing:Me.getBearing()+V*le._bearingStep,pitch:Me.getPitch()+ne*le._pitchStep,offset:[-ge*le._panStep,-xe*le._panStep],center:Me.getCenter()},{originalEvent:J})}}}},si.prototype.enable=function(){this._enabled=!0},si.prototype.disable=function(){this._enabled=!1,this.reset()},si.prototype.isEnabled=function(){return this._enabled},si.prototype.isActive=function(){return this._active},si.prototype.disableRotation=function(){this._rotationDisabled=!0},si.prototype.enableRotation=function(){this._rotationDisabled=!1};var Ps=4.000244140625,Sc=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._handler=le,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,i.bindAll(["_onTimeout"],this)};Sc.prototype.setZoomRate=function(J){this._defaultZoomRate=J},Sc.prototype.setWheelZoomRate=function(J){this._wheelZoomRate=J},Sc.prototype.isEnabled=function(){return!!this._enabled},Sc.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Sc.prototype.isZooming=function(){return!!this._zooming},Sc.prototype.enable=function(J){this.isEnabled()||(this._enabled=!0,this._aroundCenter=J&&J.around==="center")},Sc.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Sc.prototype.wheel=function(J){if(this.isEnabled()){var le=J.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?40*J.deltaY:J.deltaY,ie=i.browser.now(),V=ie-(this._lastWheelEventTime||0);this._lastWheelEventTime=ie,le!==0&&le%Ps==0?this._type="wheel":le!==0&&Math.abs(le)<4?this._type="trackpad":V>400?(this._type=null,this._lastValue=le,this._timeout=setTimeout(this._onTimeout,40,J)):this._type||(this._type=Math.abs(V*le)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,le+=this._lastValue)),J.shiftKey&&le&&(le/=4),this._type&&(this._lastWheelEvent=J,this._delta-=le,this._active||this._start(J)),J.preventDefault()}},Sc.prototype._onTimeout=function(J){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(J)},Sc.prototype._start=function(J){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var le=w.mousePos(this._el,J);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(le)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Sc.prototype.renderFrame=function(){var J=this;if(this._frameId&&(this._frameId=null,this.isActive())){var le=this._map.transform;if(this._delta!==0){var ie=this._type==="wheel"&&Math.abs(this._delta)>Ps?this._wheelZoomRate:this._defaultZoomRate,V=2/(1+Math.exp(-Math.abs(this._delta*ie)));this._delta<0&&V!==0&&(V=1/V);var ne=typeof this._targetZoom=="number"?le.zoomScale(this._targetZoom):le.scale;this._targetZoom=Math.min(le.maxZoom,Math.max(le.minZoom,le.scaleZoom(ne*V))),this._type==="wheel"&&(this._startZoom=le.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ge,xe=typeof this._targetZoom=="number"?this._targetZoom:le.zoom,Me=this._startZoom,Fe=this._easing,Je=!1;if(this._type==="wheel"&&Me&&Fe){var rt=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),dt=Fe(rt);ge=i.number(Me,xe,dt),rt<1?this._frameId||(this._frameId=!0):Je=!0}else ge=xe,Je=!0;return this._active=!0,Je&&(this._active=!1,this._finishTimeout=setTimeout(function(){J._zooming=!1,J._handler._triggerRenderFrame(),delete J._targetZoom,delete J._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Je,zoomDelta:ge-le.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Sc.prototype._smoothOutEasing=function(J){var le=i.ease;if(this._prevEase){var ie=this._prevEase,V=(i.browser.now()-ie.start)/ie.duration,ne=ie.easing(V+.01)-ie.easing(V),ge=.27/Math.sqrt(ne*ne+1e-4)*.01,xe=Math.sqrt(.0729-ge*ge);le=i.bezier(ge,xe,.25,1)}return this._prevEase={start:i.browser.now(),duration:J,easing:le},le},Sc.prototype.reset=function(){this._active=!1};var tl=function(J,le){this._clickZoom=J,this._tapZoom=le};tl.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},tl.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},tl.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},tl.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var gu=function(){this.reset()};gu.prototype.reset=function(){this._active=!1},gu.prototype.dblclick=function(J,le){return J.preventDefault(),{cameraAnimation:function(ie){ie.easeTo({duration:300,zoom:ie.getZoom()+(J.shiftKey?-1:1),around:ie.unproject(le)},{originalEvent:J})}}},gu.prototype.enable=function(){this._enabled=!0},gu.prototype.disable=function(){this._enabled=!1,this.reset()},gu.prototype.isEnabled=function(){return this._enabled},gu.prototype.isActive=function(){return this._active};var vu=function(){this._tap=new xi({numTouches:1,numTaps:1}),this.reset()};vu.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},vu.prototype.touchstart=function(J,le,ie){this._swipePoint||(this._tapTime&&J.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?ie.length>0&&(this._swipePoint=le[0],this._swipeTouch=ie[0].identifier):this._tap.touchstart(J,le,ie))},vu.prototype.touchmove=function(J,le,ie){if(this._tapTime){if(this._swipePoint){if(ie[0].identifier!==this._swipeTouch)return;var V=le[0],ne=V.y-this._swipePoint.y;return this._swipePoint=V,J.preventDefault(),this._active=!0,{zoomDelta:ne/128}}}else this._tap.touchmove(J,le,ie)},vu.prototype.touchend=function(J,le,ie){this._tapTime?this._swipePoint&&ie.length===0&&this.reset():this._tap.touchend(J,le,ie)&&(this._tapTime=J.timeStamp)},vu.prototype.touchcancel=function(){this.reset()},vu.prototype.enable=function(){this._enabled=!0},vu.prototype.disable=function(){this._enabled=!1,this.reset()},vu.prototype.isEnabled=function(){return this._enabled},vu.prototype.isActive=function(){return this._active};var ja=function(J,le,ie){this._el=J,this._mousePan=le,this._touchPan=ie};ja.prototype.enable=function(J){this._inertiaOptions=J||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},ja.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},ja.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},ja.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var yu=function(J,le,ie){this._pitchWithRotate=J.pitchWithRotate,this._mouseRotate=le,this._mousePitch=ie};yu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},yu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},yu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},yu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Rd=function(J,le,ie,V){this._el=J,this._touchZoom=le,this._touchRotate=ie,this._tapDragZoom=V,this._rotationDisabled=!1,this._enabled=!0};Rd.prototype.enable=function(J){this._touchZoom.enable(J),this._rotationDisabled||this._touchRotate.enable(J),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Rd.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Rd.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Rd.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Rd.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Rd.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Ld=function(J){return J.zoom||J.drag||J.pitch||J.rotate},nl=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le}(i.Event);function Id(J){return J.panDelta&&J.panDelta.mag()||J.zoomDelta||J.bearingDelta||J.pitchDelta}var Ka=function(J,le){this._map=J,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Kd(J),this._bearingSnap=le.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(le),i.bindAll(["handleEvent","handleWindowEvent"],this);var ie=this._el;this._listeners=[[ie,"touchstart",{passive:!0}],[ie,"touchmove",{passive:!1}],[ie,"touchend",void 0],[ie,"touchcancel",void 0],[ie,"mousedown",void 0],[ie,"mousemove",void 0],[ie,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[ie,"mouseover",void 0],[ie,"mouseout",void 0],[ie,"dblclick",void 0],[ie,"click",void 0],[ie,"keydown",{capture:!1}],[ie,"keyup",void 0],[ie,"wheel",{passive:!1}],[ie,"contextmenu",void 0],[i.window,"blur",void 0]];for(var V=0,ne=this._listeners;Vxe?Math.min(2,On):Math.max(.5,On),Pr=Math.pow(Dr,1-Sn),Zr=ge.unproject(pn.add(Ln.mult(Sn*Pr)).mult(rr));ge.setLocationAtPoint(ge.renderWorldCopies?Zr.wrap():Zr,jt)}ne._fireMoveEvents(V)},function(Sn){ne._afterEase(V,Sn)},ie),this},le.prototype._prepareEase=function(ie,V,ne){ne===void 0&&(ne={}),this._moving=!0,V||ne.moving||this.fire(new i.Event("movestart",ie)),this._zooming&&!ne.zooming&&this.fire(new i.Event("zoomstart",ie)),this._rotating&&!ne.rotating&&this.fire(new i.Event("rotatestart",ie)),this._pitching&&!ne.pitching&&this.fire(new i.Event("pitchstart",ie))},le.prototype._fireMoveEvents=function(ie){this.fire(new i.Event("move",ie)),this._zooming&&this.fire(new i.Event("zoom",ie)),this._rotating&&this.fire(new i.Event("rotate",ie)),this._pitching&&this.fire(new i.Event("pitch",ie))},le.prototype._afterEase=function(ie,V){if(!this._easeId||!V||this._easeId!==V){delete this._easeId;var ne=this._zooming,ge=this._rotating,xe=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ne&&this.fire(new i.Event("zoomend",ie)),ge&&this.fire(new i.Event("rotateend",ie)),xe&&this.fire(new i.Event("pitchend",ie)),this.fire(new i.Event("moveend",ie))}},le.prototype.flyTo=function(ie,V){var ne=this;if(!ie.essential&&i.browser.prefersReducedMotion){var ge=i.pick(ie,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ge,V)}this.stop(),ie=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},ie);var xe=this.transform,Me=this.getZoom(),Fe=this.getBearing(),Je=this.getPitch(),rt=this.getPadding(),dt="zoom"in ie?i.clamp(+ie.zoom,xe.minZoom,xe.maxZoom):Me,mt="bearing"in ie?this._normalizeBearing(ie.bearing,Fe):Fe,Et="pitch"in ie?+ie.pitch:Je,Vt="padding"in ie?ie.padding:xe.padding,jt=xe.zoomScale(dt-Me),Nt=i.Point.convert(ie.offset),cn=xe.centerPoint.add(Nt),sn=xe.pointLocation(cn),xn=i.LngLat.convert(ie.center||sn);this._normalizeCenter(xn);var pn=xe.project(sn),Ln=xe.project(xn).sub(pn),On=ie.curve,An=Math.max(xe.width,xe.height),Sn=An/jt,rr=Ln.mag();if("minZoom"in ie){var Dr=i.clamp(Math.min(ie.minZoom,Me,dt),xe.minZoom,xe.maxZoom),Pr=An/xe.zoomScale(Dr-Me);On=Math.sqrt(Pr/rr*2)}var Zr=On*On;function Mo(Io){var $i=(Sn*Sn-An*An+(Io?-1:1)*Zr*Zr*rr*rr)/(2*(Io?Sn:An)*Zr*rr);return Math.log(Math.sqrt($i*$i+1)-$i)}function $o(Io){return(Math.exp(Io)-Math.exp(-Io))/2}function vo(Io){return(Math.exp(Io)+Math.exp(-Io))/2}var zo=Mo(0),yi=function(Io){return vo(zo)/vo(zo+On*Io)},Si=function(Io){return An*((vo(zo)*($o($i=zo+On*Io)/vo($i))-$o(zo))/Zr)/rr;var $i},Hr=(Mo(1)-zo)/On;if(Math.abs(rr)<1e-6||!isFinite(Hr)){if(Math.abs(An-Sn)<1e-6)return this.easeTo(ie,V);var Lo=Snie.maxDuration&&(ie.duration=0),this._zooming=!0,this._rotating=Fe!==mt,this._pitching=Et!==Je,this._padding=!xe.isPaddingEqual(Vt),this._prepareEase(V,!1),this._ease(function(Io){var $i=Io*Hr,Ui=1/yi($i);xe.zoom=Io===1?dt:Me+xe.scaleZoom(Ui),ne._rotating&&(xe.bearing=i.number(Fe,mt,Io)),ne._pitching&&(xe.pitch=i.number(Je,Et,Io)),ne._padding&&(xe.interpolatePadding(rt,Vt,Io),cn=xe.centerPoint.add(Nt));var ba=Io===1?xn:xe.unproject(pn.add(Ln.mult(Si($i))).mult(Ui));xe.setLocationAtPoint(xe.renderWorldCopies?ba.wrap():ba,cn),ne._fireMoveEvents(V)},function(){return ne._afterEase(V)},ie),this},le.prototype.isEasing=function(){return!!this._easeFrameId},le.prototype.stop=function(){return this._stop()},le.prototype._stop=function(ie,V){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var ne=this._onEaseEnd;delete this._onEaseEnd,ne.call(this,V)}if(!ie){var ge=this.handlers;ge&&ge.stop(!1)}return this},le.prototype._ease=function(ie,V,ne){ne.animate===!1||ne.duration===0?(ie(1),V()):(this._easeStart=i.browser.now(),this._easeOptions=ne,this._onEaseFrame=ie,this._onEaseEnd=V,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},le.prototype._renderFrameCallback=function(){var ie=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ie)),ie<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},le.prototype._normalizeBearing=function(ie,V){ie=i.wrap(ie,-180,180);var ne=Math.abs(ie-V);return Math.abs(ie-360-V)180?-360:ne<-180?360:0}},le}(i.Evented),Xc=function(J){J===void 0&&(J={}),this.options=J,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Xc.prototype.getDefaultPosition=function(){return"bottom-right"},Xc.prototype.onAdd=function(J){var le=this.options&&this.options.compact;return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=w.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=w.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),le&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),le===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Xc.prototype.onRemove=function(){w.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Xc.prototype._setElementTitle=function(J,le){var ie=this._map._getUIString("AttributionControl."+le);J.title=ie,J.setAttribute("aria-label",ie)},Xc.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Xc.prototype._updateEditLink=function(){var J=this._editLink;J||(J=this._editLink=this._container.querySelector(".mapbox-improve-map"));var le=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(J){var ie=le.reduce(function(V,ne,ge){return ne.value&&(V+=ne.key+"="+ne.value+(ge=0)return!1;return!0})).join(" | ");xe!==this._attribHTML&&(this._attribHTML=xe,J.length?(this._innerContainer.innerHTML=xe,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Xc.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var jf=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};jf.prototype.onAdd=function(J){this._map=J,this._container=w.create("div","mapboxgl-ctrl");var le=w.create("a","mapboxgl-ctrl-logo");return le.target="_blank",le.rel="noopener nofollow",le.href="https://www.mapbox.com/",le.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),le.setAttribute("rel","noopener nofollow"),this._container.appendChild(le),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},jf.prototype.onRemove=function(){w.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},jf.prototype.getDefaultPosition=function(){return"bottom-left"},jf.prototype._updateLogo=function(J){J&&J.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},jf.prototype._logoRequired=function(){if(this._map.style){var J=this._map.style.sourceCaches;for(var le in J)if(J[le].getSource().mapbox_logo)return!0;return!1}},jf.prototype._updateCompact=function(){var J=this._container.children;if(J.length){var le=J[0];this._map.getCanvasContainer().offsetWidth<250?le.classList.add("mapboxgl-compact"):le.classList.remove("mapboxgl-compact")}};var bu=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};bu.prototype.add=function(J){var le=++this._id;return this._queue.push({callback:J,id:le,cancelled:!1}),le},bu.prototype.remove=function(J){for(var le=this._currentlyRunning,ie=0,V=le?this._queue.concat(le):this._queue;ieV.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(V.minPitch!=null&&V.maxPitch!=null&&V.minPitch>V.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(V.minPitch!=null&&V.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(V.maxPitch!=null&&V.maxPitch>Qf)throw new Error("maxPitch must be less than or equal to 60");var ge=new Cs(V.minZoom,V.maxZoom,V.minPitch,V.maxPitch,V.renderWorldCopies);if(J.call(this,ge,V),this._interactive=V.interactive,this._maxTileCacheSize=V.maxTileCacheSize,this._failIfMajorPerformanceCaveat=V.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=V.preserveDrawingBuffer,this._antialias=V.antialias,this._trackResize=V.trackResize,this._bearingSnap=V.bearingSnap,this._refreshExpiredTiles=V.refreshExpiredTiles,this._fadeDuration=V.fadeDuration,this._crossSourceCollisions=V.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=V.collectResourceTiming,this._renderTaskQueue=new bu,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Dp,V.locale),this._clickTolerance=V.clickTolerance,this._requestManager=new i.RequestManager(V.transformRequest,V.accessToken),typeof V.container=="string"){if(this._container=i.window.document.getElementById(V.container),!this._container)throw new Error("Container '"+V.container+"' not found.")}else{if(!(V.container instanceof Lu))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=V.container}if(V.maxBounds&&this.setMaxBounds(V.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ne._update(!1)}),this.on("moveend",function(){return ne._update(!1)}),this.on("zoom",function(){return ne._update(!0)}),i.window!==void 0&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Ka(this,V);var xe=typeof V.hash=="string"&&V.hash||void 0;this._hash=V.hash&&new Zu(xe).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:V.center,zoom:V.zoom,bearing:V.bearing,pitch:V.pitch}),V.bounds&&(this.resize(),this.fitBounds(V.bounds,i.extend({},V.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=V.localIdeographFontFamily,V.style&&this.setStyle(V.style,{localIdeographFontFamily:V.localIdeographFontFamily}),V.attributionControl&&this.addControl(new Xc({customAttribution:V.customAttribution})),this.addControl(new jf,V.logoPosition),this.on("style.load",function(){ne.transform.unmodified&&ne.jumpTo(ne.style.stylesheet)}),this.on("data",function(Me){ne._update(Me.dataType==="style"),ne.fire(new i.Event(Me.dataType+"data",Me))}),this.on("dataloading",function(Me){ne.fire(new i.Event(Me.dataType+"dataloading",Me))})}J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le;var ie={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return le.prototype._getMapId=function(){return this._mapId},le.prototype.addControl=function(V,ne){if(ne===void 0&&(ne=V.getDefaultPosition?V.getDefaultPosition():"top-right"),!V||!V.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ge=V.onAdd(this);this._controls.push(V);var xe=this._controlPositions[ne];return ne.indexOf("bottom")!==-1?xe.insertBefore(ge,xe.firstChild):xe.appendChild(ge),this},le.prototype.removeControl=function(V){if(!V||!V.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=this._controls.indexOf(V);return ne>-1&&this._controls.splice(ne,1),V.onRemove(this),this},le.prototype.hasControl=function(V){return this._controls.indexOf(V)>-1},le.prototype.resize=function(V){var ne=this._containerDimensions(),ge=ne[0],xe=ne[1];this._resizeCanvas(ge,xe),this.transform.resize(ge,xe),this.painter.resize(ge,xe);var Me=!this._moving;return Me&&(this.stop(),this.fire(new i.Event("movestart",V)).fire(new i.Event("move",V))),this.fire(new i.Event("resize",V)),Me&&this.fire(new i.Event("moveend",V)),this},le.prototype.getBounds=function(){return this.transform.getBounds()},le.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},le.prototype.setMaxBounds=function(V){return this.transform.setMaxBounds(i.LngLatBounds.convert(V)),this._update()},le.prototype.setMinZoom=function(V){if((V=V??-2)>=-2&&V<=this.transform.maxZoom)return this.transform.minZoom=V,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=V,this._update(),this.getZoom()>V&&this.setZoom(V),this;throw new Error("maxZoom must be greater than the current minZoom")},le.prototype.getMaxZoom=function(){return this.transform.maxZoom},le.prototype.setMinPitch=function(V){if((V=V??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(V>=0&&V<=this.transform.maxPitch)return this.transform.minPitch=V,this._update(),this.getPitch()Qf)throw new Error("maxPitch must be less than or equal to 60");if(V>=this.transform.minPitch)return this.transform.maxPitch=V,this._update(),this.getPitch()>V&&this.setPitch(V),this;throw new Error("maxPitch must be greater than the current minPitch")},le.prototype.getMaxPitch=function(){return this.transform.maxPitch},le.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},le.prototype.setRenderWorldCopies=function(V){return this.transform.renderWorldCopies=V,this._update()},le.prototype.project=function(V){return this.transform.locationPoint(i.LngLat.convert(V))},le.prototype.unproject=function(V){return this.transform.pointLocation(i.Point.convert(V))},le.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},le.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},le.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},le.prototype._createDelegatedListener=function(V,ne,ge){var xe,Me=this;if(V==="mouseenter"||V==="mouseover"){var Fe=!1;return{layer:ne,listener:ge,delegates:{mousemove:function(rt){var dt=Me.getLayer(ne)?Me.queryRenderedFeatures(rt.point,{layers:[ne]}):[];dt.length?Fe||(Fe=!0,ge.call(Me,new zc(V,Me,rt.originalEvent,{features:dt}))):Fe=!1},mouseout:function(){Fe=!1}}}}if(V==="mouseleave"||V==="mouseout"){var Je=!1;return{layer:ne,listener:ge,delegates:{mousemove:function(rt){(Me.getLayer(ne)?Me.queryRenderedFeatures(rt.point,{layers:[ne]}):[]).length?Je=!0:Je&&(Je=!1,ge.call(Me,new zc(V,Me,rt.originalEvent)))},mouseout:function(rt){Je&&(Je=!1,ge.call(Me,new zc(V,Me,rt.originalEvent)))}}}}return{layer:ne,listener:ge,delegates:(xe={},xe[V]=function(rt){var dt=Me.getLayer(ne)?Me.queryRenderedFeatures(rt.point,{layers:[ne]}):[];dt.length&&(rt.features=dt,ge.call(Me,rt),delete rt.features)},xe)}},le.prototype.on=function(V,ne,ge){if(ge===void 0)return J.prototype.on.call(this,V,ne);var xe=this._createDelegatedListener(V,ne,ge);for(var Me in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[V]=this._delegatedListeners[V]||[],this._delegatedListeners[V].push(xe),xe.delegates)this.on(Me,xe.delegates[Me]);return this},le.prototype.once=function(V,ne,ge){if(ge===void 0)return J.prototype.once.call(this,V,ne);var xe=this._createDelegatedListener(V,ne,ge);for(var Me in xe.delegates)this.once(Me,xe.delegates[Me]);return this},le.prototype.off=function(V,ne,ge){var xe=this;return ge===void 0?J.prototype.off.call(this,V,ne):(this._delegatedListeners&&this._delegatedListeners[V]&&function(Me){for(var Fe=Me[V],Je=0;Je180;){var xe=ie.locationPoint(J);if(xe.x>=0&&xe.y>=0&&xe.x<=ie.width&&xe.y<=ie.height)break;J.lng>ie.center.lng?J.lng-=360:J.lng+=360}return J}rl.prototype.down=function(J,le){this.mouseRotate.mousedown(J,le),this.mousePitch&&this.mousePitch.mousedown(J,le),w.disableDrag()},rl.prototype.move=function(J,le){var ie=this.map,V=this.mouseRotate.mousemoveWindow(J,le);if(V&&V.bearingDelta&&ie.setBearing(ie.getBearing()+V.bearingDelta),this.mousePitch){var ne=this.mousePitch.mousemoveWindow(J,le);ne&&ne.pitchDelta&&ie.setPitch(ie.getPitch()+ne.pitchDelta)}},rl.prototype.off=function(){var J=this.element;w.removeEventListener(J,"mousedown",this.mousedown),w.removeEventListener(J,"touchstart",this.touchstart,{passive:!1}),w.removeEventListener(J,"touchmove",this.touchmove),w.removeEventListener(J,"touchend",this.touchend),w.removeEventListener(J,"touchcancel",this.reset),this.offTemp()},rl.prototype.offTemp=function(){w.enableDrag(),w.removeEventListener(i.window,"mousemove",this.mousemove),w.removeEventListener(i.window,"mouseup",this.mouseup)},rl.prototype.mousedown=function(J){this.down(i.extend({},J,{ctrlKey:!0,preventDefault:function(){return J.preventDefault()}}),w.mousePos(this.element,J)),w.addEventListener(i.window,"mousemove",this.mousemove),w.addEventListener(i.window,"mouseup",this.mouseup)},rl.prototype.mousemove=function(J){this.move(J,w.mousePos(this.element,J))},rl.prototype.mouseup=function(J){this.mouseRotate.mouseupWindow(J),this.mousePitch&&this.mousePitch.mouseupWindow(J),this.offTemp()},rl.prototype.touchstart=function(J){J.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return J.preventDefault()}},this._startPos))},rl.prototype.touchmove=function(J){J.targetTouches.length!==1?this.reset():(this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.move({preventDefault:function(){return J.preventDefault()}},this._lastPos))},rl.prototype.touchend=function(J){J.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=V}this._isDragging&&(this._pos=ie.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},le.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},le.prototype._addDragHandler=function(ie){this._element.contains(ie.originalEvent.target)&&(ie.preventDefault(),this._positionDelta=ie.point.sub(this._pos).add(this._offset),this._pointerdownPos=ie.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},le.prototype.setDraggable=function(ie){return this._draggable=!!ie,this._map&&(ie?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},le.prototype.isDraggable=function(){return this._draggable},le.prototype.setRotation=function(ie){return this._rotation=ie||0,this._update(),this},le.prototype.getRotation=function(){return this._rotation},le.prototype.setRotationAlignment=function(ie){return this._rotationAlignment=ie||"auto",this._update(),this},le.prototype.getRotationAlignment=function(){return this._rotationAlignment},le.prototype.setPitchAlignment=function(ie){return this._pitchAlignment=ie&&ie!=="auto"?ie:this._rotationAlignment,this._update(),this},le.prototype.getPitchAlignment=function(){return this._pitchAlignment},le}(i.Evented),Zl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Jl=0,Bd=!1,Qs=function(J){function le(ie){J.call(this),this.options=i.extend({},Zl,ie),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.onAdd=function(ie){return this._map=ie,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),V=this._setupUI,au!==void 0?V(au):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(ne){au=ne.state!=="denied",V(au)}):(au=!!i.window.navigator.geolocation,V(au)),this._container;var V},le.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),w.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Jl=0,Bd=!1},le.prototype._isOutOfMapMaxBounds=function(ie){var V=this._map.getMaxBounds(),ne=ie.coords;return V&&(ne.longitudeV.getEast()||ne.latitudeV.getNorth())},le.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},le.prototype._onSuccess=function(ie){if(this._map){if(this._isOutOfMapMaxBounds(ie))return this._setErrorState(),this.fire(new i.Event("outofmaxbounds",ie)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=ie,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(ie),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(ie),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",ie)),this._finish()}},le.prototype._updateCamera=function(ie){var V=new i.LngLat(ie.coords.longitude,ie.coords.latitude),ne=ie.coords.accuracy,ge=this._map.getBearing(),xe=i.extend({bearing:ge},this.options.fitBoundsOptions);this._map.fitBounds(V.toBounds(ne),xe,{geolocateSource:!0})},le.prototype._updateMarker=function(ie){if(ie){var V=new i.LngLat(ie.coords.longitude,ie.coords.latitude);this._accuracyCircleMarker.setLngLat(V).addTo(this._map),this._userLocationDotMarker.setLngLat(V).addTo(this._map),this._accuracy=ie.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},le.prototype._updateCircleRadius=function(){var ie=this._map._container.clientHeight/2,V=this._map.unproject([0,ie]),ne=this._map.unproject([1,ie]),ge=V.distanceTo(ne),xe=Math.ceil(2*this._accuracy/ge);this._circleElement.style.width=xe+"px",this._circleElement.style.height=xe+"px"},le.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},le.prototype._onError=function(ie){if(this._map){if(this.options.trackUserLocation)if(ie.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var V=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=V,this._geolocateButton.setAttribute("aria-label",V),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(ie.code===3&&Bd)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",ie)),this._finish()}},le.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},le.prototype._setupUI=function(ie){var V=this;if(this._container.addEventListener("contextmenu",function(xe){return xe.preventDefault()}),this._geolocateButton=w.create("button","mapboxgl-ctrl-geolocate",this._container),w.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",ie===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var ne=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}else{var ge=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ge,this._geolocateButton.setAttribute("aria-label",ge)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=w.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Zf(this._dotElement),this._circleElement=w.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Zf({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(xe){var Me=xe.originalEvent&&xe.originalEvent.type==="resize";xe.geolocateSource||V._watchState!=="ACTIVE_LOCK"||Me||(V._watchState="BACKGROUND",V._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),V._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),V.fire(new i.Event("trackuserlocationend")))})},le.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Jl--,Bd=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var ie;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Jl>1?(ie={maximumAge:6e5,timeout:0},Bd=!0):(ie=this.options.positionOptions,Bd=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ie)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},le.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},le}(i.Evented),kc={maxWidth:100,unit:"metric"},Iu=function(J){this.options=i.extend({},kc,J),i.bindAll(["_onMove","setUnit"],this)};function Ea(J,le,ie){var V=ie&&ie.maxWidth||100,ne=J._container.clientHeight/2,ge=J.unproject([0,ne]),xe=J.unproject([V,ne]),Me=ge.distanceTo(xe);if(ie&&ie.unit==="imperial"){var Fe=3.2808*Me;Fe>5280?El(le,V,Fe/5280,J._getUIString("ScaleControl.Miles")):El(le,V,Fe,J._getUIString("ScaleControl.Feet"))}else ie&&ie.unit==="nautical"?El(le,V,Me/1852,J._getUIString("ScaleControl.NauticalMiles")):Me>=1e3?El(le,V,Me/1e3,J._getUIString("ScaleControl.Kilometers")):El(le,V,Me,J._getUIString("ScaleControl.Meters"))}function El(J,le,ie,V){var ne,ge,xe,Me=(ne=ie,(ge=Math.pow(10,(""+Math.floor(ne)).length-1))*((xe=ne/ge)>=10?10:xe>=5?5:xe>=3?3:xe>=2?2:xe>=1?1:function(Je){var rt=Math.pow(10,Math.ceil(-Math.log(Je)/Math.LN10));return Math.round(Je*rt)/rt}(xe))),Fe=Me/ie;J.style.width=le*Fe+"px",J.innerHTML=Me+" "+V}Iu.prototype.getDefaultPosition=function(){return"bottom-left"},Iu.prototype._onMove=function(){Ea(this._map,this._container,this.options)},Iu.prototype.onAdd=function(J){return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",J.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Iu.prototype.onRemove=function(){w.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Iu.prototype.setUnit=function(J){this.options.unit=J,Ea(this._map,this._container,this.options)};var Ol=function(J){this._fullscreen=!1,J&&J.container&&(J.container instanceof i.window.HTMLElement?this._container=J.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};Ol.prototype.onAdd=function(J){return this._map=J,this._container||(this._container=this._map.getContainer()),this._controlContainer=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Ol.prototype.onRemove=function(){w.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Ol.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},Ol.prototype._setupUI=function(){var J=this._fullscreenButton=w.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);w.create("span","mapboxgl-ctrl-icon",J).setAttribute("aria-hidden",!0),J.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Ol.prototype._updateTitle=function(){var J=this._getTitle();this._fullscreenButton.setAttribute("aria-label",J),this._fullscreenButton.title=J},Ol.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Ol.prototype._isFullscreen=function(){return this._fullscreen},Ol.prototype._changeIcon=function(){(i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Ol.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Mi={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},kf=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Ot=function(J){function le(ie){J.call(this),this.options=i.extend(Object.create(Mi),ie),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.addTo=function(ie){return this._map&&this.remove(),this._map=ie,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},le.prototype.isOpen=function(){return!!this._map},le.prototype.remove=function(){return this._content&&w.remove(this._content),this._container&&(w.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},le.prototype.getLngLat=function(){return this._lngLat},le.prototype.setLngLat=function(ie){return this._lngLat=i.LngLat.convert(ie),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},le.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},le.prototype.getElement=function(){return this._container},le.prototype.setText=function(ie){return this.setDOMContent(i.window.document.createTextNode(ie))},le.prototype.setHTML=function(ie){var V,ne=i.window.document.createDocumentFragment(),ge=i.window.document.createElement("body");for(ge.innerHTML=ie;V=ge.firstChild;)ne.appendChild(V);return this.setDOMContent(ne)},le.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},le.prototype.setMaxWidth=function(ie){return this.options.maxWidth=ie,this._update(),this},le.prototype.setDOMContent=function(ie){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=w.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(ie),this._createCloseButton(),this._update(),this._focusFirstElement(),this},le.prototype.addClassName=function(ie){this._container&&this._container.classList.add(ie)},le.prototype.removeClassName=function(ie){this._container&&this._container.classList.remove(ie)},le.prototype.setOffset=function(ie){return this.options.offset=ie,this._update(),this},le.prototype.toggleClassName=function(ie){if(this._container)return this._container.classList.toggle(ie)},le.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=w.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},le.prototype._onMouseUp=function(ie){this._update(ie.point)},le.prototype._onMouseMove=function(ie){this._update(ie.point)},le.prototype._onDrag=function(ie){this._update(ie.point)},le.prototype._update=function(ie){var V=this,ne=this._lngLat||this._trackPointer;if(this._map&&ne&&this._content&&(this._container||(this._container=w.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=w.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(mt){return V._container.classList.add(mt)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Dd(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||ie)){var ge=this._pos=this._trackPointer&&ie?ie:this._map.project(this._lngLat),xe=this.options.anchor,Me=Mt(this.options.offset);if(!xe){var Fe,Je=this._container.offsetWidth,rt=this._container.offsetHeight;Fe=ge.y+Me.bottom.ythis._map.transform.height-rt?["bottom"]:[],ge.xthis._map.transform.width-Je/2&&Fe.push("right"),xe=Fe.length===0?"bottom":Fe.join("-")}var dt=ge.add(Me[xe]).round();w.setTransform(this._container,Vi[xe]+" translate("+dt.x+"px,"+dt.y+"px)"),fa(this._container,xe,"popup")}},le.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var ie=this._container.querySelector(kf);ie&&ie.focus()}},le.prototype._onClose=function(){this.remove()},le}(i.Evented);function Mt(J){if(J){if(typeof J=="number"){var le=Math.round(Math.sqrt(.5*Math.pow(J,2)));return{center:new i.Point(0,0),top:new i.Point(0,J),"top-left":new i.Point(le,le),"top-right":new i.Point(-le,le),bottom:new i.Point(0,-J),"bottom-left":new i.Point(le,-le),"bottom-right":new i.Point(-le,-le),left:new i.Point(J,0),right:new i.Point(-J,0)}}if(J instanceof i.Point||Array.isArray(J)){var ie=i.Point.convert(J);return{center:ie,top:ie,"top-left":ie,"top-right":ie,bottom:ie,"bottom-left":ie,"bottom-right":ie,left:ie,right:ie}}return{center:i.Point.convert(J.center||[0,0]),top:i.Point.convert(J.top||[0,0]),"top-left":i.Point.convert(J["top-left"]||[0,0]),"top-right":i.Point.convert(J["top-right"]||[0,0]),bottom:i.Point.convert(J.bottom||[0,0]),"bottom-left":i.Point.convert(J["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(J["bottom-right"]||[0,0]),left:i.Point.convert(J.left||[0,0]),right:i.Point.convert(J.right||[0,0])}}return Mt(new i.Point(0,0))}var Ft={version:i.version,supported:O,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Hf,NavigationControl:hd,GeolocateControl:Qs,AttributionControl:Xc,ScaleControl:Iu,FullscreenControl:Ol,Popup:Ot,Marker:Zf,Style:ao,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:function(){Yt().acquire(Lt)},clearPrewarmedResources:function(){var J=Zt;J&&(J.isPreloaded()&&J.numActive()===1?(J.release(Lt),Zt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(J){i.config.ACCESS_TOKEN=J},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(J){i.config.API_URL=J},get workerCount(){return xt.workerCount},set workerCount(J){xt.workerCount=J},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(J){i.config.MAX_PARALLEL_IMAGE_REQUESTS=J},clearStorage:function(J){i.clearTileCache(J)},workerUrl:""};return Ft}),c}()},3108:function(d,l,n){d.exports=n(26099)},26099:function(d,l,n){var c=n(64928),b=n(32420),i=n(51160),O=n(76752),w=n(55616),y=n(31264),p=n(47520),a=n(18400),u=n(72512),h=n(76244);function m(v,_){for(var S=_[0],A=_[1],x=1/(_[2]-S),R=1/(_[3]-A),M=new Array(v.length),T=0,E=v.length/2;T>>1;_.dtype||(_.dtype="array"),typeof _.dtype=="string"?x=new(u(_.dtype))(M):_.dtype&&(x=_.dtype,Array.isArray(x)&&(x.length=M));for(var T=0;TS||Y>1073741824){for(var ae=0;aePe+ze||de>Ie+ze||ve=_e||He===Ve)){var $e=E[De];Ve===void 0&&(Ve=$e.length);for(var Oe=He;Oe=ee&&Le<=he&&We>=me&&We<=se&&Se.push(ke)}var Ue=C[De],Ze=Ue[4*He+0],Xe=Ue[4*He+1],tt=Ue[4*He+2],Ee=Ue[4*He+3],Ne=function(ot,Ge){for(var ht=null,pt=0;ht===null;)if(ht=ot[4*Ge+pt],++pt>ot.length)return null;return ht}(Ue,He+1),je=.5*ze,nt=De+1;Te(Pe,Ie,je,nt,Ze,Xe||tt||Ee||Ne),Te(Pe,Ie+je,je,nt,Xe,tt||Ee||Ne),Te(Pe+je,Ie,je,nt,tt,Ee||Ne),Te(Pe+je,Ie+je,je,nt,Ee,Ne)}}(0,0,1,0,0,1),Se},x;function U(X,te,W){for(var K=1,oe=.5,q=.5,Y=.5,ee=0;ee0){p+=Math.abs(O(y[0]));for(var a=1;a2){for(v=0;v=0))throw new Error("precision must be a positive number");var S=Math.pow(10,_||0);return Math.round(v*S)/S},l.radiansToLength=a,l.lengthToRadians=u,l.lengthToDegrees=function(v,_){return h(u(v,_))},l.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},l.radiansToDegrees=h,l.degreesToRadians=function(v){return v%360*Math.PI/180},l.convertLength=function(v,_,S){if(_===void 0&&(_="kilometers"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(u(v,_),S)},l.convertArea=function(v,_,S){if(_===void 0&&(_="meters"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("area must be a positive number");var A=l.areaFactors[_];if(!A)throw new Error("invalid original units");var x=l.areaFactors[S];if(!x)throw new Error("invalid final units");return v/A*x},l.isNumber=m,l.isObject=function(v){return!!v&&v.constructor===Object},l.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!m(_))throw new Error("bbox must only contain numbers")})},l.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},3256:function(d,l,n){Object.defineProperty(l,"__esModule",{value:!0});var c=n(46284);function b(u,h,m){if(u!==null)for(var v,_,S,A,x,R,M,T,E=0,C=0,L=u.type,D=L==="FeatureCollection",k=L==="Feature",I=D?u.features.length:1,z=0;zR||D>M||k>T)return x=E,R=v,M=D,T=k,void(S=0);var I=c.lineString([x,E],m.properties);if(h(I,v,_,k,S)===!1)return!1;S++,x=E})!==!1&&void 0}}})}function a(u,h){if(!u)throw new Error("geojson is required");y(u,function(m,v,_){if(m.geometry!==null){var S=m.geometry.type,A=m.geometry.coordinates;switch(S){case"LineString":if(h(m,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xw[0]&&(O[0]=w[0]),O[1]>w[1]&&(O[1]=w[1]),O[2]=0))throw new Error("precision must be a positive number");var S=Math.pow(10,_||0);return Math.round(v*S)/S},l.radiansToLength=a,l.lengthToRadians=u,l.lengthToDegrees=function(v,_){return h(u(v,_))},l.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},l.radiansToDegrees=h,l.degreesToRadians=function(v){return v%360*Math.PI/180},l.convertLength=function(v,_,S){if(_===void 0&&(_="kilometers"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(u(v,_),S)},l.convertArea=function(v,_,S){if(_===void 0&&(_="meters"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("area must be a positive number");var A=l.areaFactors[_];if(!A)throw new Error("invalid original units");var x=l.areaFactors[S];if(!x)throw new Error("invalid final units");return v/A*x},l.isNumber=m,l.isObject=function(v){return!!v&&v.constructor===Object},l.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!m(_))throw new Error("bbox must only contain numbers")})},l.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},84880:function(d,l,n){Object.defineProperty(l,"__esModule",{value:!0});var c=n(76796);function b(u,h,m){if(u!==null)for(var v,_,S,A,x,R,M,T,E=0,C=0,L=u.type,D=L==="FeatureCollection",k=L==="Feature",I=D?u.features.length:1,z=0;zR||D>M||k>T)return x=E,R=v,M=D,T=k,void(S=0);var I=c.lineString([x,E],m.properties);if(h(I,v,_,k,S)===!1)return!1;S++,x=E})!==!1&&void 0}}})}function a(u,h){if(!u)throw new Error("geojson is required");y(u,function(m,v,_){if(m.geometry!==null){var S=m.geometry.type,A=m.geometry.coordinates;switch(S){case"LineString":if(h(m,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;x=0))throw new Error("precision must be a positive number");var S=Math.pow(10,_||0);return Math.round(v*S)/S},l.radiansToLength=a,l.lengthToRadians=u,l.lengthToDegrees=function(v,_){return h(u(v,_))},l.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},l.radiansToDegrees=h,l.degreesToRadians=function(v){return v%360*Math.PI/180},l.convertLength=function(v,_,S){if(_===void 0&&(_="kilometers"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(u(v,_),S)},l.convertArea=function(v,_,S){if(_===void 0&&(_="meters"),S===void 0&&(S="kilometers"),!(v>=0))throw new Error("area must be a positive number");var A=l.areaFactors[_];if(!A)throw new Error("invalid original units");var x=l.areaFactors[S];if(!x)throw new Error("invalid final units");return v/A*x},l.isNumber=m,l.isObject=function(v){return!!v&&v.constructor===Object},l.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!m(_))throw new Error("bbox must only contain numbers")})},l.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")},l.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},l.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},l.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},l.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},l.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},l.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},l.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},43752:function(d,l,n){Object.defineProperty(l,"__esModule",{value:!0});var c=n(49840);function b(u,h,m){if(u!==null)for(var v,_,S,A,x,R,M,T,E=0,C=0,L=u.type,D=L==="FeatureCollection",k=L==="Feature",I=D?u.features.length:1,z=0;zR||D>M||k>T)return x=E,R=v,M=D,T=k,void(S=0);var I=c.lineString([x,E],m.properties);if(h(I,v,_,k,S)===!1)return!1;S++,x=E})!==!1&&void 0}}})}function a(u,h){if(!u)throw new Error("geojson is required");y(u,function(m,v,_){if(m.geometry!==null){var S=m.geometry.type,A=m.geometry.coordinates;switch(S){case"LineString":if(h(m,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xi&&(i=l[w]),l[w]1?oe-1:0),Y=1;Y1?oe-1:0),Y=1;Y1?oe-1:0),Y=1;Y1?oe-1:0),Y=1;Y2?"one of ".concat(h," ").concat(u.slice(0,m-1).join(", "),", or ")+u[m-1]:m===2?"one of ".concat(h," ").concat(u[0]," or ").concat(u[1]):"of ".concat(h," ").concat(u[0])}return"of ".concat(h," ").concat(String(u))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(u,h,m){var v,_,S,A,x;if(O===void 0&&(O=n(45408)),O(typeof u=="string","'name' must be a string"),typeof h=="string"&&(_="not ",h.substr(0,4)===_)?(v="must not be",h=h.replace(/^not /,"")):v="must be",function(M,T,E){return(E===void 0||E>M.length)&&(E=M.length),M.substring(E-9,E)===T}(u," argument"))S="The ".concat(u," ").concat(v," ").concat(a(h,"type"));else{var R=(typeof x!="number"&&(x=0),x+1>(A=u).length||A.indexOf(".",x)===-1?"argument":"property");S='The "'.concat(u,'" ').concat(R," ").concat(v," ").concat(a(h,"type"))}return S+". Received type ".concat(c(m))},TypeError),p("ERR_INVALID_ARG_VALUE",function(u,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";w===void 0&&(w=n(35840));var v=w.inspect(h);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(u,"' ").concat(m,". Received ").concat(v)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(u,h,m){var v;return v=m&&m.constructor&&m.constructor.name?"instance of ".concat(m.constructor.name):"type ".concat(c(m)),"Expected ".concat(u,' to be returned from the "').concat(h,'"')+" function but got ".concat(v,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var u=arguments.length,h=new Array(u),m=0;m0,"At least one arg needs to be specified");var v="The ",_=h.length;switch(h=h.map(function(S){return'"'.concat(S,'"')}),_){case 1:v+="".concat(h[0]," argument");break;case 2:v+="".concat(h[0]," and ").concat(h[1]," arguments");break;default:v+=h.slice(0,_-1).join(", "),v+=", and ".concat(h[_-1]," arguments")}return"".concat(v," must be specified")},TypeError),d.exports.codes=y},25116:function(d,l,n){function c(de,ve){return function(ye){if(Array.isArray(ye))return ye}(de)||function(ye,_e){var Se=[],Te=!0,Pe=!1,Ie=void 0;try{for(var ze,De=ye[Symbol.iterator]();!(Te=(ze=De.next()).done)&&(Se.push(ze.value),!_e||Se.length!==_e);Te=!0);}catch(He){Pe=!0,Ie=He}finally{try{Te||De.return==null||De.return()}finally{if(Pe)throw Ie}}return Se}(de,ve)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(de){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},b(de)}var i=/a/g.flags!==void 0,O=function(de){var ve=[];return de.forEach(function(ye){return ve.push(ye)}),ve},w=function(de){var ve=[];return de.forEach(function(ye,_e){return ve.push([_e,ye])}),ve},y=Object.is?Object.is:n(39896),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},a=Number.isNaN?Number.isNaN:n(1560);function u(de){return de.call.bind(de)}var h=u(Object.prototype.hasOwnProperty),m=u(Object.prototype.propertyIsEnumerable),v=u(Object.prototype.toString),_=n(35840).types,S=_.isAnyArrayBuffer,A=_.isArrayBufferView,x=_.isDate,R=_.isMap,M=_.isRegExp,T=_.isSet,E=_.isNativeError,C=_.isBoxedPrimitive,L=_.isNumberObject,D=_.isStringObject,k=_.isBooleanObject,I=_.isBigIntObject,z=_.isSymbolObject,$=_.isFloat32Array,Q=_.isFloat64Array;function j(de){if(de.length===0||de.length>10)return!0;for(var ve=0;ve57)return!0}return de.length===10&&de>=Math.pow(2,32)}function U(de){return Object.keys(de).filter(j).concat(p(de).filter(Object.prototype.propertyIsEnumerable.bind(de)))}function X(de,ve){if(de===ve)return 0;for(var ye=de.length,_e=ve.length,Se=0,Te=Math.min(ye,_e);Se"u"?[]:new Uint8Array(256),i=0;i<64;i++)b[c.charCodeAt(i)]=i;var O=function(y){var p,a=new Uint8Array(y),u=a.length,h="";for(p=0;p>2],h+=c[(3&a[p])<<4|a[p+1]>>4],h+=c[(15&a[p+1])<<2|a[p+2]>>6],h+=c[63&a[p+2]];return u%3==2?h=h.substring(0,h.length-1)+"=":u%3==1&&(h=h.substring(0,h.length-2)+"=="),h},w=function(y){var p,a,u,h,m,v=.75*y.length,_=y.length,S=0;y[y.length-1]==="="&&(v--,y[y.length-2]==="="&&v--);var A=new ArrayBuffer(v),x=new Uint8Array(A);for(p=0;p<_;p+=4)a=b[y.charCodeAt(p)],u=b[y.charCodeAt(p+1)],h=b[y.charCodeAt(p+2)],m=b[y.charCodeAt(p+3)],x[S++]=a<<2|u>>4,x[S++]=(15&u)<<4|h>>2,x[S++]=(3&h)<<6|63&m;return A}},59968:function(d,l){l.byteLength=function(p){var a=w(p),u=a[0],h=a[1];return 3*(u+h)/4-h},l.toByteArray=function(p){var a,u,h=w(p),m=h[0],v=h[1],_=new b(function(x,R,M){return 3*(R+M)/4-M}(0,m,v)),S=0,A=v>0?m-4:m;for(u=0;u>16&255,_[S++]=a>>8&255,_[S++]=255&a;return v===2&&(a=c[p.charCodeAt(u)]<<2|c[p.charCodeAt(u+1)]>>4,_[S++]=255&a),v===1&&(a=c[p.charCodeAt(u)]<<10|c[p.charCodeAt(u+1)]<<4|c[p.charCodeAt(u+2)]>>2,_[S++]=a>>8&255,_[S++]=255&a),_},l.fromByteArray=function(p){for(var a,u=p.length,h=u%3,m=[],v=16383,_=0,S=u-h;_S?S:_+v));return h===1?(a=p[u-1],m.push(n[a>>2]+n[a<<4&63]+"==")):h===2&&(a=(p[u-2]<<8)+p[u-1],m.push(n[a>>10]+n[a>>4&63]+n[a<<2&63]+"=")),m.join("")};for(var n=[],c=[],b=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=0;O<64;++O)n[O]=i[O],c[i.charCodeAt(O)]=O;function w(p){var a=p.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var u=p.indexOf("=");return u===-1&&(u=a),[u,u===a?0:4-u%4]}function y(p,a,u){for(var h,m,v=[],_=a;_>18&63]+n[m>>12&63]+n[m>>6&63]+n[63&m]);return v.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},64928:function(d){function l(w,y,p,a,u){for(var h=u+1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)>=0?(h=m,u=m-1):a=m+1}return h}function n(w,y,p,a,u){for(var h=u+1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)>0?(h=m,u=m-1):a=m+1}return h}function c(w,y,p,a,u){for(var h=a-1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)<0?(h=m,a=m+1):u=m-1}return h}function b(w,y,p,a,u){for(var h=a-1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)<=0?(h=m,a=m+1):u=m-1}return h}function i(w,y,p,a,u){for(;a<=u;){var h=a+u>>>1,m=w[h],v=p!==void 0?p(m,y):m-y;if(v===0)return h;v<=0?a=h+1:u=h-1}return-1}function O(w,y,p,a,u,h){return typeof p=="function"?h(w,y,p,a===void 0?0:0|a,u===void 0?w.length-1:0|u):h(w,y,void 0,p===void 0?0:0|p,a===void 0?w.length-1:0|a)}d.exports={ge:function(w,y,p,a,u){return O(w,y,p,a,u,l)},gt:function(w,y,p,a,u){return O(w,y,p,a,u,n)},lt:function(w,y,p,a,u){return O(w,y,p,a,u,c)},le:function(w,y,p,a,u){return O(w,y,p,a,u,b)},eq:function(w,y,p,a,u){return O(w,y,p,a,u,i)}}},308:function(d,l){function n(b){var i=32;return(b&=-b)&&i--,65535&b&&(i-=16),16711935&b&&(i-=8),252645135&b&&(i-=4),858993459&b&&(i-=2),1431655765&b&&(i-=1),i}l.INT_BITS=32,l.INT_MAX=2147483647,l.INT_MIN=-2147483648,l.sign=function(b){return(b>0)-(b<0)},l.abs=function(b){var i=b>>31;return(b^i)-i},l.min=function(b,i){return i^(b^i)&-(b65535)<<4,i|=O=((b>>>=i)>255)<<3,i|=O=((b>>>=O)>15)<<2,(i|=O=((b>>>=O)>3)<<1)|(b>>>=O)>>1},l.log10=function(b){return b>=1e9?9:b>=1e8?8:b>=1e7?7:b>=1e6?6:b>=1e5?5:b>=1e4?4:b>=1e3?3:b>=100?2:b>=10?1:0},l.popCount=function(b){return 16843009*((b=(858993459&(b-=b>>>1&1431655765))+(b>>>2&858993459))+(b>>>4)&252645135)>>>24},l.countTrailingZeros=n,l.nextPow2=function(b){return b+=b===0,--b,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,1+(b|=b>>>16)},l.prevPow2=function(b){return b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,(b|=b>>>16)-(b>>>1)},l.parity=function(b){return b^=b>>>16,b^=b>>>8,b^=b>>>4,27030>>>(b&=15)&1};var c=new Array(256);(function(b){for(var i=0;i<256;++i){var O=i,w=i,y=7;for(O>>>=1;O;O>>>=1)w<<=1,w|=1&O,--y;b[i]=w<>>8&255]<<16|c[b>>>16&255]<<8|c[b>>>24&255]},l.interleave2=function(b,i){return(b=1431655765&((b=858993459&((b=252645135&((b=16711935&((b&=65535)|b<<8))|b<<4))|b<<2))|b<<1))|(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i&=65535)|i<<8))|i<<4))|i<<2))|i<<1))<<1},l.deinterleave2=function(b,i){return(b=65535&((b=16711935&((b=252645135&((b=858993459&((b=b>>>i&1431655765)|b>>>1))|b>>>2))|b>>>4))|b>>>16))<<16>>16},l.interleave3=function(b,i,O){return b=1227133513&((b=3272356035&((b=251719695&((b=4278190335&((b&=1023)|b<<16))|b<<8))|b<<4))|b<<2),(b|=(i=1227133513&((i=3272356035&((i=251719695&((i=4278190335&((i&=1023)|i<<16))|i<<8))|i<<4))|i<<2))<<1)|(O=1227133513&((O=3272356035&((O=251719695&((O=4278190335&((O&=1023)|O<<16))|O<<8))|O<<4))|O<<2))<<2},l.deinterleave3=function(b,i){return(b=1023&((b=4278190335&((b=251719695&((b=3272356035&((b=b>>>i&1227133513)|b>>>2))|b>>>4))|b>>>8))|b>>>16))<<22>>22},l.nextCombination=function(b){var i=b|b-1;return i+1|(~i&-~i)-1>>>n(b)+1}},29620:function(d,l,n){var c=n(32420);d.exports=function(w,y){y||(y={});var p,a,u,h,m,v,_,S,A,x,R,M=y.cutoff==null?.25:y.cutoff,T=y.radius==null?8:y.radius,E=y.channel||0;if(ArrayBuffer.isView(w)||Array.isArray(w)){if(!y.width||!y.height)throw Error("For raw data width and height should be provided by options");p=y.width,a=y.height,h=w,v=y.stride?y.stride:Math.floor(w.length/p/a)}else window.HTMLCanvasElement&&w instanceof window.HTMLCanvasElement?(_=(S=w).getContext("2d"),p=S.width,a=S.height,h=(A=_.getImageData(0,0,p,a)).data,v=4):window.CanvasRenderingContext2D&&w instanceof window.CanvasRenderingContext2D?(_=w,p=(S=w.canvas).width,a=S.height,h=(A=_.getImageData(0,0,p,a)).data,v=4):window.ImageData&&w instanceof window.ImageData&&(A=w,p=w.width,a=w.height,h=A.data,v=4);if(u=Math.max(p,a),window.Uint8ClampedArray&&h instanceof window.Uint8ClampedArray||window.Uint8Array&&h instanceof window.Uint8Array)for(m=h,h=Array(p*a),x=0,R=m.length;x-1?b(y):y}},57916:function(d,l,n){var c=n(8844),b=n(53664),i=n(14500),O=b("%TypeError%"),w=b("%Function.prototype.apply%"),y=b("%Function.prototype.call%"),p=b("%Reflect.apply%",!0)||c.call(y,w),a=b("%Object.defineProperty%",!0),u=b("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}d.exports=function(m){if(typeof m!="function")throw new O("a function is required");var v=p(c,y,arguments);return i(v,1+u(0,m.length-(arguments.length-1)),!0)};var h=function(){return p(c,w,arguments)};a?a(d.exports,"apply",{value:h}):d.exports.apply=h},32420:function(d){d.exports=function(l,n,c){return nc?c:l:ln?n:l}},3808:function(d,l,n){var c=n(32420);function b(i,O){O==null&&(O=!0);var w=i[0],y=i[1],p=i[2],a=i[3];return a==null&&(a=O?1:255),O&&(w*=255,y*=255,p*=255,a*=255),16777216*(w=255&c(w,0,255))+((y=255&c(y,0,255))<<16)+((p=255&c(p,0,255))<<8)+(255&c(a,0,255))}d.exports=b,d.exports.to=b,d.exports.from=function(i,O){var w=(i=+i)>>>24,y=(16711680&i)>>>16,p=(65280&i)>>>8,a=255&i;return O===!1?[w,y,p,a]:[w/255,y/255,p/255,a/255]}},17592:function(d){d.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(d,l,n){var c=n(96824),b=n(32420),i=n(72512);d.exports=function(O,w){w!=="float"&&w||(w="array"),w==="uint"&&(w="uint8"),w==="uint_clamped"&&(w="uint8_clamped");var y=new(i(w))(4),p=w!=="uint8"&&w!=="uint8_clamped";return O.length&&typeof O!="string"||((O=c(O))[0]/=255,O[1]/=255,O[2]/=255),function(a){return a instanceof Uint8Array||a instanceof Uint8ClampedArray||!!(Array.isArray(a)&&(a[0]>1||a[0]===0)&&(a[1]>1||a[1]===0)&&(a[2]>1||a[2]===0)&&(!a[3]||a[3]>1))}(O)?(y[0]=O[0],y[1]=O[1],y[2]=O[2],y[3]=O[3]!=null?O[3]:255,p&&(y[0]/=255,y[1]/=255,y[2]/=255,y[3]/=255),y):(p?(y[0]=O[0],y[1]=O[1],y[2]=O[2],y[3]=O[3]!=null?O[3]:1):(y[0]=b(Math.floor(255*O[0]),0,255),y[1]=b(Math.floor(255*O[1]),0,255),y[2]=b(Math.floor(255*O[2]),0,255),y[3]=O[3]==null?255:b(Math.floor(255*O[3]),0,255)),y)}},81704:function(d,l,n){var c=n(17592),b=n(58908),i=n(31264);d.exports=function(w){var y,p,a=[],u=1;if(typeof w=="string")if(c[w])a=c[w].slice(),p="rgb";else if(w==="transparent")u=0,p="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(w)){var h=w.slice(1);u=1,(_=h.length)<=4?(a=[parseInt(h[0]+h[0],16),parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16)],_===4&&(u=parseInt(h[3]+h[3],16)/255)):(a=[parseInt(h[0]+h[1],16),parseInt(h[2]+h[3],16),parseInt(h[4]+h[5],16)],_===8&&(u=parseInt(h[6]+h[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),p="rgb"}else if(y=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(w)){var m=y[1],v=m==="rgb";p=h=m.replace(/a$/,"");var _=h==="cmyk"?4:h==="gray"?1:3;a=y[2].trim().split(/\s*,\s*/).map(function(A,x){if(/%$/.test(A))return x===_?parseFloat(A)/100:h==="rgb"?255*parseFloat(A)/100:parseFloat(A);if(h[x]==="h"){if(/deg$/.test(A))return parseFloat(A);if(O[A]!==void 0)return O[A]}return parseFloat(A)}),m===h&&a.push(1),u=v||a[_]===void 0?1:a[_],a=a.slice(0,_)}else w.length>10&&/[0-9](?:\s|\/)/.test(w)&&(a=w.match(/([0-9]+)/g).map(function(A){return parseFloat(A)}),p=w.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(w))if(b(w)){var S=i(w.r,w.red,w.R,null);S!==null?(p="rgb",a=[S,i(w.g,w.green,w.G),i(w.b,w.blue,w.B)]):(p="hsl",a=[i(w.h,w.hue,w.H),i(w.s,w.saturation,w.S),i(w.l,w.lightness,w.L,w.b,w.brightness)]),u=i(w.a,w.alpha,w.opacity,1),w.opacity!=null&&(u/=100)}else(Array.isArray(w)||n.g.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(w))&&(a=[w[0],w[1],w[2]],p="rgb",u=w.length===4?w[3]:1);else p="rgb",a=[w>>>16,(65280&w)>>>8,255&w];return{space:p,values:a,alpha:u}};var O={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}},96824:function(d,l,n){var c=n(81704),b=n(53576),i=n(32420);d.exports=function(O){var w,y=c(O);return y.space?((w=Array(3))[0]=i(y.values[0],0,255),w[1]=i(y.values[1],0,255),w[2]=i(y.values[2],0,255),y.space[0]==="h"&&(w=b.rgb(w)),w.push(i(y.alpha,0,1)),w):[]}},53576:function(d,l,n){var c=n(19336);d.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(b){var i,O,w,y,p,a=b[0]/360,u=b[1]/100,h=b[2]/100;if(u===0)return[p=255*h,p,p];i=2*h-(O=h<.5?h*(1+u):h+u-h*u),y=[0,0,0];for(var m=0;m<3;m++)(w=a+.3333333333333333*-(m-1))<0?w++:w>1&&w--,p=6*w<1?i+6*(O-i)*w:2*w<1?O:3*w<2?i+(O-i)*(.6666666666666666-w)*6:i,y[m]=255*p;return y}},c.hsl=function(b){var i,O,w=b[0]/255,y=b[1]/255,p=b[2]/255,a=Math.min(w,y,p),u=Math.max(w,y,p),h=u-a;return u===a?i=0:w===u?i=(y-p)/h:y===u?i=2+(p-w)/h:p===u&&(i=4+(w-y)/h),(i=Math.min(60*i,360))<0&&(i+=360),O=(a+u)/2,[i,100*(u===a?0:O<=.5?h/(u+a):h/(2-u-a)),100*O]}},19336:function(d){d.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(d){d.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(d,l,n){d.exports={parse:n(46416),stringify:n(49395)}},8744:function(d,l,n){var c=n(30584);d.exports={isSize:function(b){return/^[\d\.]/.test(b)||b.indexOf("/")!==-1||c.indexOf(b)!==-1}}},46416:function(d,l,n){var c=n(92384),b=n(68194),i=n(3748),O=n(2904),w=n(47916),y=n(7294),p=n(39956),a=n(8744).isSize;d.exports=h;var u=h.cache={};function h(v){if(typeof v!="string")throw new Error("Font argument must be a string.");if(u[v])return u[v];if(v==="")throw new Error("Cannot parse an empty string.");if(i.indexOf(v)!==-1)return u[v]={system:v};for(var _,S={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},A=p(v,/\s+/);_=A.shift();){if(b.indexOf(_)!==-1)return["style","variant","weight","stretch"].forEach(function(R){S[R]=_}),u[v]=S;if(w.indexOf(_)===-1)if(_!=="normal"&&_!=="small-caps")if(y.indexOf(_)===-1){if(O.indexOf(_)===-1){if(a(_)){var x=p(_,"/");if(S.size=x[0],x[1]!=null?S.lineHeight=m(x[1]):A[0]==="/"&&(A.shift(),S.lineHeight=m(A.shift())),!A.length)throw new Error("Missing required font-family.");return S.family=p(A.join(" "),/\s*,\s*/).map(c),u[v]=S}throw new Error("Unknown or unsupported font token: "+_)}S.weight=_}else S.stretch=_;else S.variant=_;else S.style=_}throw new Error("Missing required font-size.")}function m(v){var _=parseFloat(v);return _.toString()===v?_:v}},49395:function(d,l,n){var c=n(55616),b=n(8744).isSize,i=v(n(68194)),O=v(n(3748)),w=v(n(2904)),y=v(n(47916)),p=v(n(7294)),a={normal:1,"small-caps":1},u={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},h="serif";function m(_,S){if(_&&!S[_]&&!i[_])throw Error("Unknown keyword `"+_+"`");return _}function v(_){for(var S={},A=0;A<_.length;A++)S[_[A]]=1;return S}d.exports=function(_){if((_=c(_,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"})).system)return _.system&&m(_.system,O),_.system;if(m(_.style,y),m(_.variant,a),m(_.weight,w),m(_.stretch,p),_.size==null&&(_.size="1rem"),typeof _.size=="number"&&(_.size+="px"),!b)throw Error("Bad size value `"+_.size+"`");_.family||(_.family=h),Array.isArray(_.family)&&(_.family.length||(_.family=[h]),_.family=_.family.map(function(A){return u[A]?A:'"'+A+'"'}).join(", "));var S=[];return S.push(_.style),_.variant!==_.style&&S.push(_.variant),_.weight!==_.variant&&_.weight!==_.style&&S.push(_.weight),_.stretch!==_.weight&&_.stretch!==_.variant&&_.stretch!==_.style&&S.push(_.stretch),S.push(_.size+(_.lineHeight==null||_.lineHeight==="normal"||_.lineHeight+""=="1"?"":"/"+_.lineHeight)),S.push(_.family),S.filter(Boolean).join(" ")}},27940:function(d,l,n){var c,b=n(81680),i=n(18496),O=n(87396),w=n(95920),y=n(50868),p=n(84323),a=Function.prototype.bind,u=Object.defineProperty,h=Object.prototype.hasOwnProperty;c=function(m,v,_){var S,A=i(v)&&O(v.value);return delete(S=w(v)).writable,delete S.value,S.get=function(){return!_.overwriteDefinition&&h.call(this,m)?A:(v.value=a.call(A,_.resolveContext?_.resolveContext(this):this),u(this,m,v),this[m])},S},d.exports=function(m){var v=y(arguments[1]);return b(v.resolveContext)&&O(v.resolveContext),p(m,function(_,S){return c(S,_,v)})}},21092:function(d,l,n){var c=n(81680),b=n(85488),i=n(38452),O=n(50868),w=n(71056),y=d.exports=function(p,a){var u,h,m,v,_;return arguments.length<2||typeof p!="string"?(v=a,a=p,p=null):v=arguments[2],c(p)?(u=w.call(p,"c"),h=w.call(p,"e"),m=w.call(p,"w")):(u=m=!0,h=!1),_={value:a,configurable:u,enumerable:h,writable:m},v?i(O(v),_):_};y.gs=function(p,a,u){var h,m,v,_;return typeof p!="string"?(v=u,u=a,a=p,p=null):v=arguments[3],c(a)?b(a)?c(u)?b(u)||(v=u,u=void 0):u=void 0:(v=a,a=u=void 0):a=void 0,c(p)?(h=w.call(p,"c"),m=w.call(p,"e")):(h=!0,m=!1),_={get:a,set:u,configurable:h,enumerable:m},v?i(O(v),_):_}},84706:function(d,l,n){function c(m,v){return mv?1:m>=v?0:NaN}n.d(l,{XE:function(){return c},kv:function(){return O},mo:function(){return y},Uf:function(){return p},SY:function(){return a},ik:function(){return u},oh:function(){return h}}),(b=c).length===1&&(i=b,b=function(m,v){return c(i(m),v)});var b,i;function O(m,v){var _,S,A=m.length,x=-1;if(v==null){for(;++x=_)for(S=_;++xS&&(S=_)}else for(;++x=_)for(S=_;++xS&&(S=_);return S}function w(m){return m===null?NaN:+m}function y(m,v){var _,S=m.length,A=S,x=-1,R=0;if(v==null)for(;++x=0;)for(v=(S=m[A]).length;--v>=0;)_[--R]=S[v];return _}function a(m,v){var _,S,A=m.length,x=-1;if(v==null){for(;++x=_)for(S=_;++x_&&(S=_)}else for(;++x=_)for(S=_;++x_&&(S=_);return S}function u(m,v,_){m=+m,v=+v,_=(A=arguments.length)<2?(v=m,m=0,1):A<3?1:+_;for(var S=-1,A=0|Math.max(0,Math.ceil((v-m)/_)),x=new Array(A);++S=A.length)return v!=null&&T.sort(v),_!=null?_(T):T;for(var D,k,I,z=-1,$=T.length,Q=A[E++],j=O(),U=C();++z<$;)(I=j.get(D=Q(k=T[z])+""))?I.push(k):j.set(D,[k]);return j.each(function(X,te){L(U,te,R(X,E,C,L))}),U}function M(T,E){if(++E>A.length)return T;var C,L=x[E-1];return _!=null&&E>=A.length?C=T.entries():(C=[],T.each(function(D,k){C.push({key:k,values:M(D,E)})})),L!=null?C.sort(function(D,k){return L(D.key,k.key)}):C}return S={object:function(T){return R(T,0,y,p)},map:function(T){return R(T,0,a,u)},entries:function(T){return M(R(T,0,a,u),0)},key:function(T){return A.push(T),S},sortKeys:function(T){return x[A.length-1]=T,S},sortValues:function(T){return v=T,S},rollup:function(T){return _=T,S}}}function y(){return{}}function p(v,_,S){v[_]=S}function a(){return O()}function u(v,_,S){v.set(_,S)}function h(){}var m=O.prototype;h.prototype={constructor:h,has:m.has,add:function(v){return this[c+(v+="")]=v,this},remove:m.remove,clear:m.clear,values:m.keys,size:m.size,empty:m.empty,each:m.each}},49812:function(d,l,n){function c(ze,De){var He;function Ve(){var $e,Oe,ke=He.length,Le=0,We=0;for($e=0;$e=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=He>=(ke=(nt+Ge)/2))?nt=ke:Ge=ke,$e=Ee,!(Ee=Ee[Xe=Ze<<1|Ue]))return $e[Xe]=Ne,ze;if(Le=+ze._x.call(null,Ee.data),We=+ze._y.call(null,Ee.data),De===Le&&He===We)return Ne.next=Ee,$e?$e[Xe]=Ne:ze._root=Ne,ze;do $e=$e?$e[Xe]=new Array(4):ze._root=new Array(4),(Ue=De>=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=He>=(ke=(nt+Ge)/2))?nt=ke:Ge=ke;while((Xe=Ze<<1|Ue)==(tt=(We>=ke)<<1|Le>=Oe));return $e[tt]=Ee,$e[Xe]=Ne,ze}function w(ze,De,He,Ve,$e){this.node=ze,this.x0=De,this.y0=He,this.x1=Ve,this.y1=$e}function y(ze){return ze[0]}function p(ze){return ze[1]}function a(ze,De,He){var Ve=new u(De??y,He??p,NaN,NaN,NaN,NaN);return ze==null?Ve:Ve.addAll(ze)}function u(ze,De,He,Ve,$e,Oe){this._x=ze,this._y=De,this._x0=He,this._y0=Ve,this._x1=$e,this._y1=Oe,this._root=void 0}function h(ze){for(var De={data:ze.data},He=De;ze=ze.next;)He=He.next={data:ze.data};return De}n.r(l),n.d(l,{forceCenter:function(){return c},forceCollide:function(){return S},forceLink:function(){return M},forceManyBody:function(){return Se},forceRadial:function(){return Te},forceSimulation:function(){return _e},forceX:function(){return Pe},forceY:function(){return Ie}});var m=a.prototype=u.prototype;function v(ze){return ze.x+ze.vx}function _(ze){return ze.y+ze.vy}function S(ze){var De,He,Ve=1,$e=1;function Oe(){for(var We,Ue,Ze,Xe,tt,Ee,Ne,je=De.length,nt=0;nt<$e;++nt)for(Ue=a(De,v,_).visitAfter(ke),We=0;WeXe+en||wttt+en||DtZe.index){var Gt=Xe-It.x-It.vx,Ct=tt-It.y-It.vy,_t=Gt*Gt+Ct*Ct;_tWe.r&&(We.r=We[Ue].r)}function Le(){if(De){var We,Ue,Ze=De.length;for(He=new Array(Ze),We=0;WeZe&&(Ze=Ve),$eXe&&(Xe=$e));if(We>Ze||Ue>Xe)return this;for(this.cover(We,Ue).cover(Ze,Xe),He=0;Heze||ze>=$e||Ve>De||De>=Oe;)switch(Le=(Dett||(Oe=We.y0)>Ee||(ke=We.x1)=ot)<<1|ze>=nt)&&(We=Ne[Ne.length-1],Ne[Ne.length-1]=Ne[Ne.length-1-Ue],Ne[Ne.length-1-Ue]=We)}else{var Ge=ze-+this._x.call(null,je.data),ht=De-+this._y.call(null,je.data),pt=Ge*Ge+ht*ht;if(pt=(Le=(Ne+nt)/2))?Ne=Le:nt=Le,(Ze=ke>=(We=(je+ot)/2))?je=We:ot=We,De=Ee,!(Ee=Ee[Xe=Ze<<1|Ue]))return this;if(!Ee.length)break;(De[Xe+1&3]||De[Xe+2&3]||De[Xe+3&3])&&(He=De,tt=Xe)}for(;Ee.data!==ze;)if(Ve=Ee,!(Ee=Ee.next))return this;return($e=Ee.next)&&delete Ee.next,Ve?($e?Ve.next=$e:delete Ve.next,this):De?($e?De[Xe]=$e:delete De[Xe],(Ee=De[0]||De[1]||De[2]||De[3])&&Ee===(De[3]||De[2]||De[1]||De[0])&&!Ee.length&&(He?He[tt]=Ee:this._root=Ee),this):(this._root=$e,this)},m.removeAll=function(ze){for(var De=0,He=ze.length;De=0&&(Ue=We.slice(Ze+1),We=We.slice(0,Ze)),We&&!Ve.hasOwnProperty(We))throw new Error("unknown type: "+We);return{type:We,name:Ue}})),ke=-1,Le=Oe.length;if(!(arguments.length<2)){if(De!=null&&typeof De!="function")throw new Error("invalid callback: "+De);for(;++ke0)for(var He,Ve,$e=new Array(He),Oe=0;Oe=0&&De._call.call(null,ze),De=De._next;--$})()}finally{$=0,function(){for(var ze,De,He=k,Ve=1/0;He;)He._call?(Ve>He._time&&(Ve=He._time),ze=He,He=He._next):(De=He._next,He._next=null,He=ze?ze._next=De:k=De);I=ze,ae(Ve)}(),te=0}}function se(){var ze=K.now(),De=ze-X;De>U&&(W-=De,X=ze)}function ae(ze){$||(Q&&(Q=clearTimeout(Q)),ze-te>24?(ze<1/0&&(Q=setTimeout(he,ze-K.now()-W)),j&&(j=clearInterval(j))):(j||(X=K.now(),j=setInterval(se,U)),$=1,oe(he)))}function ce(ze){return ze.x}function de(ze){return ze.y}ee.prototype=me.prototype={constructor:ee,restart:function(ze,De,He){if(typeof ze!="function")throw new TypeError("callback is not a function");He=(He==null?q():+He)+(De==null?0:+De),this._next||I===this||(I?I._next=this:k=this,I=this),this._call=ze,this._time=He,ae()},stop:function(){this._call&&(this._call=null,this._time=1/0,ae())}};var ve=10,ye=Math.PI*(3-Math.sqrt(5));function _e(ze){var De,He=1,Ve=.001,$e=1-Math.pow(Ve,1/300),Oe=0,ke=.6,Le=(0,A.kH)(),We=me(Ze),Ue=z("tick","end");function Ze(){Xe(),Ue.call("tick",De),He1?(je==null?Le.remove(Ne):Le.set(Ne,Ee(je)),De):Le.get(Ne)},find:function(Ne,je,nt){var ot,Ge,ht,pt,wt,Dt=0,It=ze.length;for(nt==null?nt=1/0:nt*=nt,Dt=0;Dt1?(Ue.on(Ne,je),De):Ue.on(Ne)}}}function Se(){var ze,De,He,Ve,$e=b(-30),Oe=1,ke=1/0,Le=.81;function We(tt){var Ee,Ne=ze.length,je=a(ze,ce,de).visitAfter(Ze);for(He=tt,Ee=0;Ee=ke)){(tt.data!==De||tt.next)&&(nt===0&&(ht+=(nt=i())*nt),ot===0&&(ht+=(ot=i())*ot),ht1?R[0]+R.slice(2):R,+S.slice(x+1)]}n.d(l,{E9:function(){return h},SO:function(){return _}});var b,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function O(S){if(!(A=i.exec(S)))throw new Error("invalid format: "+S);var A;return new w({fill:A[1],align:A[2],sign:A[3],symbol:A[4],zero:A[5],width:A[6],comma:A[7],precision:A[8]&&A[8].slice(1),trim:A[9],type:A[10]})}function w(S){this.fill=S.fill===void 0?" ":S.fill+"",this.align=S.align===void 0?">":S.align+"",this.sign=S.sign===void 0?"-":S.sign+"",this.symbol=S.symbol===void 0?"":S.symbol+"",this.zero=!!S.zero,this.width=S.width===void 0?void 0:+S.width,this.comma=!!S.comma,this.precision=S.precision===void 0?void 0:+S.precision,this.trim=!!S.trim,this.type=S.type===void 0?"":S.type+""}function y(S,A){var x=c(S,A);if(!x)return S+"";var R=x[0],M=x[1];return M<0?"0."+new Array(-M).join("0")+R:R.length>M+1?R.slice(0,M+1)+"."+R.slice(M+1):R+new Array(M-R.length+2).join("0")}O.prototype=w.prototype,w.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":function(S,A){return(100*S).toFixed(A)},b:function(S){return Math.round(S).toString(2)},c:function(S){return S+""},d:function(S){return Math.abs(S=Math.round(S))>=1e21?S.toLocaleString("en").replace(/,/g,""):S.toString(10)},e:function(S,A){return S.toExponential(A)},f:function(S,A){return S.toFixed(A)},g:function(S,A){return S.toPrecision(A)},o:function(S){return Math.round(S).toString(8)},p:function(S,A){return y(100*S,A)},r:y,s:function(S,A){var x=c(S,A);if(!x)return S+"";var R=x[0],M=x[1],T=M-(b=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,E=R.length;return T===E?R:T>E?R+new Array(T-E+1).join("0"):T>0?R.slice(0,T)+"."+R.slice(T):"0."+new Array(1-T).join("0")+c(S,Math.max(0,A+T-1))[0]},X:function(S){return Math.round(S).toString(16).toUpperCase()},x:function(S){return Math.round(S).toString(16)}};function a(S){return S}var u,h,m=Array.prototype.map,v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _(S){var A,x,R=S.grouping===void 0||S.thousands===void 0?a:(A=m.call(S.grouping,Number),x=S.thousands+"",function(z,$){for(var Q=z.length,j=[],U=0,X=A[0],te=0;Q>0&&X>0&&(te+X+1>$&&(X=Math.max(1,$-te)),j.push(z.substring(Q-=X,Q+X)),!((te+=X+1)>$));)X=A[U=(U+1)%A.length];return j.reverse().join(x)}),M=S.currency===void 0?"":S.currency[0]+"",T=S.currency===void 0?"":S.currency[1]+"",E=S.decimal===void 0?".":S.decimal+"",C=S.numerals===void 0?a:function(z){return function($){return $.replace(/[0-9]/g,function(Q){return z[+Q]})}}(m.call(S.numerals,String)),L=S.percent===void 0?"%":S.percent+"",D=S.minus===void 0?"-":S.minus+"",k=S.nan===void 0?"NaN":S.nan+"";function I(z){var $=(z=O(z)).fill,Q=z.align,j=z.sign,U=z.symbol,X=z.zero,te=z.width,W=z.comma,K=z.precision,oe=z.trim,q=z.type;q==="n"?(W=!0,q="g"):p[q]||(K===void 0&&(K=12),oe=!0,q="g"),(X||$==="0"&&Q==="=")&&(X=!0,$="0",Q="=");var Y=U==="$"?M:U==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",ee=U==="$"?T:/[%p]/.test(q)?L:"",me=p[q],he=/[defgprs%]/.test(q);function se(ae){var ce,de,ve,ye=Y,_e=ee;if(q==="c")_e=me(ae)+_e,ae="";else{var Se=(ae=+ae)<0||1/ae<0;if(ae=isNaN(ae)?k:me(Math.abs(ae),K),oe&&(ae=function(Ie){e:for(var ze,De=Ie.length,He=1,Ve=-1;He0&&(Ve=0)}return Ve>0?Ie.slice(0,Ve)+Ie.slice(ze+1):Ie}(ae)),Se&&+ae==0&&j!=="+"&&(Se=!1),ye=(Se?j==="("?j:D:j==="-"||j==="("?"":j)+ye,_e=(q==="s"?v[8+b/3]:"")+_e+(Se&&j==="("?")":""),he){for(ce=-1,de=ae.length;++ce(ve=ae.charCodeAt(ce))||ve>57){_e=(ve===46?E+ae.slice(ce+1):ae.slice(ce))+_e,ae=ae.slice(0,ce);break}}}W&&!X&&(ae=R(ae,1/0));var Te=ye.length+ae.length+_e.length,Pe=Te>1)+ye+ae+_e+Pe.slice(Te);break;default:ae=Pe+ye+ae+_e}return C(ae)}return K=K===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K)),se.toString=function(){return z+""},se}return{format:I,formatPrefix:function(z,$){var Q,j=I(((z=O(z)).type="f",z)),U=3*Math.max(-8,Math.min(8,Math.floor((Q=$,((Q=c(Math.abs(Q)))?Q[1]:NaN)/3)))),X=Math.pow(10,-U),te=v[8+U/3];return function(W){return j(X*W)+te}}}}u=_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),h=u.format,u.formatPrefix},87108:function(d,l,n){n.r(l),n.d(l,{geoAiry:function(){return W},geoAiryRaw:function(){return te},geoAitoff:function(){return oe},geoAitoffRaw:function(){return K},geoArmadillo:function(){return Y},geoArmadilloRaw:function(){return q},geoAugust:function(){return me},geoAugustRaw:function(){return ee},geoBaker:function(){return ce},geoBakerRaw:function(){return ae},geoBerghaus:function(){return ye},geoBerghausRaw:function(){return ve},geoBertin1953:function(){return He},geoBertin1953Raw:function(){return De},geoBoggs:function(){return Ze},geoBoggsRaw:function(){return Ue},geoBonne:function(){return je},geoBonneRaw:function(){return Ne},geoBottomley:function(){return ot},geoBottomleyRaw:function(){return nt},geoBromley:function(){return ht},geoBromleyRaw:function(){return Ge},geoChamberlin:function(){return _t},geoChamberlinAfrica:function(){return Ct},geoChamberlinRaw:function(){return en},geoCollignon:function(){return gn},geoCollignonRaw:function(){return nn},geoCraig:function(){return mn},geoCraigRaw:function(){return bn},geoCraster:function(){return lt},geoCrasterRaw:function(){return bt},geoCylindricalEqualArea:function(){return zt},geoCylindricalEqualAreaRaw:function(){return yt},geoCylindricalStereographic:function(){return it},geoCylindricalStereographicRaw:function(){return Rt},geoEckert1:function(){return Lt},geoEckert1Raw:function(){return at},geoEckert2:function(){return Ht},geoEckert2Raw:function(){return xt},geoEckert3:function(){return Yt},geoEckert3Raw:function(){return Xt},geoEckert4:function(){return Pt},geoEckert4Raw:function(){return Qt},geoEckert5:function(){return Kt},geoEckert5Raw:function(){return tn},geoEckert6:function(){return dn},geoEckert6Raw:function(){return fn},geoEisenlohr:function(){return er},geoEisenlohrRaw:function(){return Nn},geoFahey:function(){return Un},geoFaheyRaw:function(){return In},geoFoucaut:function(){return Sr},geoFoucautRaw:function(){return xr},geoFoucautSinusoidal:function(){return Fn},geoFoucautSinusoidalRaw:function(){return ar},geoGilbert:function(){return Ir},geoGingery:function(){return $r},geoGingeryRaw:function(){return zr},geoGinzburg4:function(){return so},geoGinzburg4Raw:function(){return Co},geoGinzburg5:function(){return go},geoGinzburg5Raw:function(){return So},geoGinzburg6:function(){return Pn},geoGinzburg6Raw:function(){return li},geoGinzburg8:function(){return br},geoGinzburg8Raw:function(){return Yn},geoGinzburg9:function(){return Cr},geoGinzburg9Raw:function(){return dr},geoGringorten:function(){return Wr},geoGringortenQuincuncial:function(){return js},geoGringortenRaw:function(){return Qr},geoGuyou:function(){return hn},geoGuyouRaw:function(){return hr},geoHammer:function(){return Pe},geoHammerRaw:function(){return Se},geoHammerRetroazimuthal:function(){return gr},geoHammerRetroazimuthalRaw:function(){return Zn},geoHealpix:function(){return Vr},geoHealpixRaw:function(){return tr},geoHill:function(){return _o},geoHillRaw:function(){return to},geoHomolosine:function(){return po},geoHomolosineRaw:function(){return Go},geoHufnagel:function(){return Ao},geoHufnagelRaw:function(){return qo},geoHyperelliptical:function(){return mo},geoHyperellipticalRaw:function(){return ra},geoInterrupt:function(){return Na},geoInterruptedBoggs:function(){return wc},geoInterruptedHomolosine:function(){return Ku},geoInterruptedMollweide:function(){return Yd},geoInterruptedMollweideHemispheres:function(){return Ed},geoInterruptedQuarticAuthalic:function(){return sr},geoInterruptedSinuMollweide:function(){return mm},geoInterruptedSinusoidal:function(){return gm},geoKavrayskiy7:function(){return pc},geoKavrayskiy7Raw:function(){return Gl},geoLagrange:function(){return yl},geoLagrangeRaw:function(){return Cu},geoLarrivee:function(){return hu},geoLarriveeRaw:function(){return cc},geoLaskowski:function(){return iu},geoLaskowskiRaw:function(){return ju},geoLittrow:function(){return Ss},geoLittrowRaw:function(){return mc},geoLoximuthal:function(){return vf},geoLoximuthalRaw:function(){return $f},geoMiller:function(){return $h},geoMillerRaw:function(){return Ju},geoModifiedStereographic:function(){return ld},geoModifiedStereographicAlaska:function(){return sd},geoModifiedStereographicGs48:function(){return Mp},geoModifiedStereographicGs50:function(){return Xd},geoModifiedStereographicLee:function(){return mh},geoModifiedStereographicMiller:function(){return yf},geoModifiedStereographicRaw:function(){return Es},geoMollweide:function(){return ke},geoMollweideRaw:function(){return Oe},geoMtFlatPolarParabolic:function(){return Au},geoMtFlatPolarParabolicRaw:function(){return tf},geoMtFlatPolarQuartic:function(){return cd},geoMtFlatPolarQuarticRaw:function(){return xf},geoMtFlatPolarSinusoidal:function(){return gh},geoMtFlatPolarSinusoidalRaw:function(){return nf},geoNaturalEarth:function(){return rs.c},geoNaturalEarth2:function(){return Ep},geoNaturalEarth2Raw:function(){return ep},geoNaturalEarthRaw:function(){return rs.g},geoNellHammer:function(){return Pd},geoNellHammerRaw:function(){return vm},geoNicolosi:function(){return _f},geoNicolosiRaw:function(){return Pp},geoPatterson:function(){return Lp},geoPattersonRaw:function(){return Hu},geoPeirceQuincuncial:function(){return os},geoPierceQuincuncial:function(){return os},geoPolyconic:function(){return jh},geoPolyconicRaw:function(){return Uh},geoPolyhedral:function(){return ks},geoPolyhedralButterfly:function(){return yh},geoPolyhedralCollignon:function(){return Ip},geoPolyhedralWaterman:function(){return bm},geoProject:function(){return np},geoQuantize:function(){return af},geoQuincuncial:function(){return xh},geoRectangularPolyconic:function(){return sf},geoRectangularPolyconicRaw:function(){return Of},geoRobinson:function(){return pi},geoRobinsonRaw:function(){return Hi},geoSatellite:function(){return Ru},geoSatelliteRaw:function(){return Qh},geoSinuMollweide:function(){return co},geoSinuMollweideRaw:function(){return ao},geoSinusoidal:function(){return Ee},geoSinusoidalRaw:function(){return tt},geoStitch:function(){return Xi},geoTimes:function(){return jf},geoTimesRaw:function(){return Xc},geoTwoPointAzimuthal:function(){return Lu},geoTwoPointAzimuthalRaw:function(){return Dp},geoTwoPointAzimuthalUsa:function(){return rp},geoTwoPointEquidistant:function(){return fd},geoTwoPointEquidistantRaw:function(){return us},geoTwoPointEquidistantUsa:function(){return Qf},geoVanDerGrinten:function(){return _h},geoVanDerGrinten2:function(){return dd},geoVanDerGrinten2Raw:function(){return Gc},geoVanDerGrinten3:function(){return Dd},geoVanDerGrinten3Raw:function(){return rl},geoVanDerGrinten4:function(){return fa},geoVanDerGrinten4Raw:function(){return Vi},geoVanDerGrintenRaw:function(){return Hf},geoWagner:function(){return Zf},geoWagner4:function(){return kc},geoWagner4Raw:function(){return Qs},geoWagner6:function(){return Ea},geoWagner6Raw:function(){return Iu},geoWagner7:function(){return Zl},geoWagnerRaw:function(){return au},geoWiechel:function(){return _l},geoWiechelRaw:function(){return El},geoWinkel3:function(){return Sf},geoWinkel3Raw:function(){return Mi}});var c=n(87952),b=Math.abs,i=Math.atan,O=Math.atan2,w=Math.cos,y=Math.exp,p=Math.floor,a=Math.log,u=Math.max,h=Math.min,m=Math.pow,v=Math.round,_=Math.sign||function(Ot){return Ot>0?1:Ot<0?-1:0},S=Math.sin,A=Math.tan,x=1e-6,R=1e-12,M=Math.PI,T=M/2,E=M/4,C=Math.SQRT1_2,L=j(2),D=j(M),k=2*M,I=180/M,z=M/180;function $(Ot){return Ot>1?T:Ot<-1?-T:Math.asin(Ot)}function Q(Ot){return Ot>1?0:Ot<-1?M:Math.acos(Ot)}function j(Ot){return Ot>0?Math.sqrt(Ot):0}function U(Ot){return(y(Ot)-y(-Ot))/2}function X(Ot){return(y(Ot)+y(-Ot))/2}function te(Ot){var Mt=A(Ot/2),Ft=2*a(w(Ot/2))/(Mt*Mt);function J(le,ie){var V=w(le),ne=w(ie),ge=S(ie),xe=ne*V,Me=-((1-xe?a((1+xe)/2)/(1-xe):-.5)+Ft/(1+xe));return[Me*ne*S(le),Me*ge]}return J.invert=function(le,ie){var V,ne=j(le*le+ie*ie),ge=-Ot/2,xe=50;if(!ne)return[0,0];do{var Me=ge/2,Fe=w(Me),Je=S(Me),rt=Je/Fe,dt=-a(b(Fe));ge-=V=(2/rt*dt-Ft*rt-ne)/(-dt/(Je*Je)+1-Ft/(2*Fe*Fe))*(Fe<0?.7:1)}while(b(V)>x&&--xe>0);var mt=S(ge);return[O(le*mt,ne*w(ge)),$(ie*mt/ne)]},J}function W(){var Ot=T,Mt=(0,c.U)(te),Ft=Mt(Ot);return Ft.radius=function(J){return arguments.length?Mt(Ot=J*z):Ot*I},Ft.scale(179.976).clipAngle(147)}function K(Ot,Mt){var Ft=w(Mt),J=function(le){return le?le/Math.sin(le):1}(Q(Ft*w(Ot/=2)));return[2*Ft*S(Ot)*J,S(Mt)*J]}function oe(){return(0,c.c)(K).scale(152.63)}function q(Ot){var Mt=S(Ot),Ft=w(Ot),J=Ot>=0?1:-1,le=A(J*Ot),ie=(1+Mt-Ft)/2;function V(ne,ge){var xe=w(ge),Me=w(ne/=2);return[(1+xe)*S(ne),(J*ge>-O(Me,le)-.001?0:10*-J)+ie+S(ge)*Ft-(1+xe)*Mt*Me]}return V.invert=function(ne,ge){var xe=0,Me=0,Fe=50;do{var Je=w(xe),rt=S(xe),dt=w(Me),mt=S(Me),Et=1+dt,Vt=Et*rt-ne,jt=ie+mt*Ft-Et*Mt*Je-ge,Nt=Et*Je/2,cn=-rt*mt,sn=Mt*Et*rt/2,xn=Ft*dt+Mt*Je*mt,pn=cn*sn-xn*Nt,Ln=(jt*cn-Vt*xn)/pn/2,On=(Vt*sn-jt*Nt)/pn;b(On)>2&&(On/=2),xe-=Ln,Me-=On}while((b(Ln)>x||b(On)>x)&&--Fe>0);return J*Me>-O(w(xe),le)-.001?[2*xe,Me]:null},V}function Y(){var Ot=20*z,Mt=Ot>=0?1:-1,Ft=A(Mt*Ot),J=(0,c.U)(q),le=J(Ot),ie=le.stream;return le.parallel=function(V){return arguments.length?(Ft=A((Mt=(Ot=V*z)>=0?1:-1)*Ot),J(Ot)):Ot*I},le.stream=function(V){var ne=le.rotate(),ge=ie(V),xe=(le.rotate([0,0]),ie(V)),Me=le.precision();return le.rotate(ne),ge.sphere=function(){xe.polygonStart(),xe.lineStart();for(var Fe=-180*Mt;Mt*Fe<180;Fe+=90*Mt)xe.point(Fe,90*Mt);if(Ot)for(;Mt*(Fe-=3*Mt*Me)>=-180;)xe.point(Fe,Mt*-O(w(Fe*z/2),Ft)*I);xe.lineEnd(),xe.polygonEnd()},ge},le.scale(218.695).center([0,28.0974])}function ee(Ot,Mt){var Ft=A(Mt/2),J=j(1-Ft*Ft),le=1+J*w(Ot/=2),ie=S(Ot)*J/le,V=Ft/le,ne=ie*ie,ge=V*V;return[1.3333333333333333*ie*(3+ne-3*ge),1.3333333333333333*V*(3+3*ne-ge)]}function me(){return(0,c.c)(ee).scale(66.1603)}K.invert=function(Ot,Mt){if(!(Ot*Ot+4*Mt*Mt>M*M+x)){var Ft=Ot,J=Mt,le=25;do{var ie,V=S(Ft),ne=S(Ft/2),ge=w(Ft/2),xe=S(J),Me=w(J),Fe=S(2*J),Je=xe*xe,rt=Me*Me,dt=ne*ne,mt=1-rt*ge*ge,Et=mt?Q(Me*ge)*j(ie=1/mt):ie=0,Vt=2*Et*Me*ne-Ot,jt=Et*xe-Mt,Nt=ie*(rt*dt+Et*Me*ge*Je),cn=ie*(.5*V*Fe-2*Et*xe*ne),sn=.25*ie*(Fe*ne-Et*xe*rt*V),xn=ie*(Je*ge+Et*dt*Me),pn=cn*sn-xn*Nt;if(!pn)break;var Ln=(jt*cn-Vt*xn)/pn,On=(Vt*sn-jt*Nt)/pn;Ft-=Ln,J-=On}while((b(Ln)>x||b(On)>x)&&--le>0);return[Ft,J]}},ee.invert=function(Ot,Mt){if(Mt*=.375,!(Ot*=.375)&&b(Mt)>1)return null;var Ft=1+Ot*Ot+Mt*Mt,J=j((Ft-j(Ft*Ft-4*Mt*Mt))/2),le=$(J)/3,ie=J?function(xe){return a(xe+j(xe*xe-1))}(b(Mt/J))/3:function(xe){return a(xe+j(xe*xe+1))}(b(Ot))/3,V=w(le),ne=X(ie),ge=ne*ne-V*V;return[2*_(Ot)*O(U(ie)*V,.25-ge),2*_(Mt)*O(ne*S(le),.25+ge)]};var he=j(8),se=a(1+L);function ae(Ot,Mt){var Ft=b(Mt);return FtR&&--ie>0);return[Ot/(w(le)*(he-1/S(le))),_(Mt)*le]};var de=n(69020);function ve(Ot){var Mt=2*M/Ot;function Ft(J,le){var ie=(0,de.O)(J,le);if(b(J)>T){var V=O(ie[1],ie[0]),ne=j(ie[0]*ie[0]+ie[1]*ie[1]),ge=Mt*v((V-T)/Mt)+T,xe=O(S(V-=ge),2-w(V));V=ge+$(M/ne*S(xe))-xe,ie[0]=ne*w(V),ie[1]=ne*S(V)}return ie}return Ft.invert=function(J,le){var ie=j(J*J+le*le);if(ie>T){var V=O(le,J),ne=Mt*v((V-T)/Mt)+T,ge=V>ne?-1:1,xe=ie*w(ne-V),Me=1/A(ge*Q((xe-M)/j(M*(M-2*xe)+ie*ie)));V=ne+2*i((Me+ge*j(Me*Me-3))/3),J=ie*w(V),le=ie*S(V)}return de.O.invert(J,le)},Ft}function ye(){var Ot=5,Mt=(0,c.U)(ve),Ft=Mt(Ot),J=Ft.stream,le=.01,ie=-w(le*z),V=S(le*z);return Ft.lobes=function(ne){return arguments.length?Mt(Ot=+ne):Ot},Ft.stream=function(ne){var ge=Ft.rotate(),xe=J(ne),Me=(Ft.rotate([0,0]),J(ne));return Ft.rotate(ge),xe.sphere=function(){Me.polygonStart(),Me.lineStart();for(var Fe=0,Je=360/Ot,rt=2*M/Ot,dt=90-180/Ot,mt=T;Fe0&&b(J)>x);return V<0?NaN:Ft}function ze(Ot,Mt,Ft){return Mt===void 0&&(Mt=40),Ft===void 0&&(Ft=R),function(J,le,ie,V){var ne,ge,xe;ie=ie===void 0?0:+ie,V=V===void 0?0:+V;for(var Me=0;Mene)ie-=ge/=2,V-=xe/=2;else{ne=dt;var mt=(ie>0?-1:1)*Ft,Et=(V>0?-1:1)*Ft,Vt=Ot(ie+mt,V),jt=Ot(ie,V+Et),Nt=(Vt[0]-Fe[0])/mt,cn=(Vt[1]-Fe[1])/mt,sn=(jt[0]-Fe[0])/Et,xn=(jt[1]-Fe[1])/Et,pn=xn*Nt-cn*sn,Ln=(b(pn)<.5?.5:1)/pn;if(ie+=ge=(rt*sn-Je*xn)*Ln,V+=xe=(Je*cn-rt*Nt)*Ln,b(ge)0&&(ie[1]*=1+V/1.5*ie[0]*ie[0]),ie}return Mt.invert=ze(Mt),Mt}function He(){return(0,c.c)(De()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Ve(Ot,Mt){var Ft,J=Ot*S(Mt),le=30;do Mt-=Ft=(Mt+S(Mt)-J)/(1+w(Mt));while(b(Ft)>x&&--le>0);return Mt/2}function $e(Ot,Mt,Ft){function J(le,ie){return[Ot*le*w(ie=Ve(Ft,ie)),Mt*S(ie)]}return J.invert=function(le,ie){return ie=$(ie/Mt),[le/(Ot*w(ie)),$((2*ie+S(2*ie))/Ft)]},J}Te.invert=function(Ot,Mt){var Ft=2*$(Mt/2);return[Ot*w(Ft/2)/w(Ft),Ft]};var Oe=$e(L/T,L,M);function ke(){return(0,c.c)(Oe).scale(169.529)}var Le=2.00276,We=1.11072;function Ue(Ot,Mt){var Ft=Ve(M,Mt);return[Le*Ot/(1/w(Mt)+We/w(Ft)),(Mt+L*S(Ft))/Le]}function Ze(){return(0,c.c)(Ue).scale(160.857)}function Xe(Ot){var Mt=0,Ft=(0,c.U)(Ot),J=Ft(Mt);return J.parallel=function(le){return arguments.length?Ft(Mt=le*z):Mt*I},J}function tt(Ot,Mt){return[Ot*w(Mt),Mt]}function Ee(){return(0,c.c)(tt).scale(152.63)}function Ne(Ot){if(!Ot)return tt;var Mt=1/A(Ot);function Ft(J,le){var ie=Mt+Ot-le,V=ie&&J*w(le)/ie;return[ie*S(V),Mt-ie*w(V)]}return Ft.invert=function(J,le){var ie=j(J*J+(le=Mt-le)*le),V=Mt+Ot-ie;return[ie/w(V)*O(J,le),V]},Ft}function je(){return Xe(Ne).scale(123.082).center([0,26.1441]).parallel(45)}function nt(Ot){function Mt(Ft,J){var le=T-J,ie=le&&Ft*Ot*S(le)/le;return[le*S(ie)/Ot,T-le*w(ie)]}return Mt.invert=function(Ft,J){var le=Ft*Ot,ie=T-J,V=j(le*le+ie*ie),ne=O(le,ie);return[(V?V/S(V):1)*ne/Ot,T-V]},Mt}function ot(){var Ot=.5,Mt=(0,c.U)(nt),Ft=Mt(Ot);return Ft.fraction=function(J){return arguments.length?Mt(Ot=+J):Ot},Ft.scale(158.837)}Ue.invert=function(Ot,Mt){var Ft,J,le=Le*Mt,ie=Mt<0?-E:E,V=25;do J=le-L*S(ie),ie-=Ft=(S(2*ie)+2*ie-M*S(J))/(2*w(2*ie)+2+M*w(J)*L*w(ie));while(b(Ft)>x&&--V>0);return J=le-L*S(ie),[Ot*(1/w(J)+We/w(ie))/Le,J]},tt.invert=function(Ot,Mt){return[Ot/w(Mt),Mt]};var Ge=$e(1,4/M,M);function ht(){return(0,c.c)(Ge).scale(152.63)}var pt=n(24052),wt=n(92992);function Dt(Ot,Mt,Ft,J,le,ie){var V,ne=w(ie);if(b(Ot)>1||b(ie)>1)V=Q(Ft*le+Mt*J*ne);else{var ge=S(Ot/2),xe=S(ie/2);V=2*$(j(ge*ge+Mt*J*xe*xe))}return b(V)>x?[V,O(J*S(ie),Mt*le-Ft*J*ne)]:[0,0]}function It(Ot,Mt,Ft){return Q((Ot*Ot+Mt*Mt-Ft*Ft)/(2*Ot*Mt))}function qt(Ot){return Ot-2*M*p((Ot+M)/(2*M))}function en(Ot,Mt,Ft){for(var J,le=[[Ot[0],Ot[1],S(Ot[1]),w(Ot[1])],[Mt[0],Mt[1],S(Mt[1]),w(Mt[1])],[Ft[0],Ft[1],S(Ft[1]),w(Ft[1])]],ie=le[2],V=0;V<3;++V,ie=J)J=le[V],ie.v=Dt(J[1]-ie[1],ie[3],ie[2],J[3],J[2],J[0]-ie[0]),ie.point=[0,0];var ne=It(le[0].v[0],le[2].v[0],le[1].v[0]),ge=It(le[0].v[0],le[1].v[0],le[2].v[0]),xe=M-ne;le[2].point[1]=0,le[0].point[0]=-(le[1].point[0]=le[0].v[0]/2);var Me=[le[2].point[0]=le[0].point[0]+le[2].v[0]*w(ne),2*(le[0].point[1]=le[1].point[1]=le[2].v[0]*S(ne))];return function(Fe,Je){var rt,dt=S(Je),mt=w(Je),Et=new Array(3);for(rt=0;rt<3;++rt){var Vt=le[rt];if(Et[rt]=Dt(Je-Vt[1],Vt[3],Vt[2],mt,dt,Fe-Vt[0]),!Et[rt][0])return Vt.point;Et[rt][1]=qt(Et[rt][1]-Vt.v[1])}var jt=Me.slice();for(rt=0;rt<3;++rt){var Nt=rt==2?0:rt+1,cn=It(le[rt].v[0],Et[rt][0],Et[Nt][0]);Et[rt][1]<0&&(cn=-cn),rt?rt==1?(cn=ge-cn,jt[0]-=Et[rt][0]*w(cn),jt[1]-=Et[rt][0]*S(cn)):(cn=xe-cn,jt[0]+=Et[rt][0]*w(cn),jt[1]+=Et[rt][0]*S(cn)):(jt[0]+=Et[rt][0]*w(cn),jt[1]-=Et[rt][0]*S(cn))}return jt[0]/=3,jt[1]/=3,jt}}function Gt(Ot){return Ot[0]*=z,Ot[1]*=z,Ot}function Ct(){return _t([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function _t(Ot,Mt,Ft){var J=(0,pt.c)({type:"MultiPoint",coordinates:[Ot,Mt,Ft]}),le=[-J[0],-J[1]],ie=(0,wt.c)(le),V=en(Gt(ie(Ot)),Gt(ie(Mt)),Gt(ie(Ft)));V.invert=ze(V);var ne=(0,c.c)(V).rotate(le),ge=ne.center;return delete ne.rotate,ne.center=function(xe){return arguments.length?ge(ie(xe)):ie.invert(ge())},ne.clipAngle(90)}function nn(Ot,Mt){var Ft=j(1-S(Mt));return[2/D*Ot*Ft,D*(1-Ft)]}function gn(){return(0,c.c)(nn).scale(95.6464).center([0,30])}function bn(Ot){var Mt=A(Ot);function Ft(J,le){return[J,(J?J/S(J):1)*(S(le)*w(J)-Mt*w(le))]}return Ft.invert=Mt?function(J,le){J&&(le*=S(J)/J);var ie=w(J);return[J,2*O(j(ie*ie+Mt*Mt-le*le)-ie,Mt-le)]}:function(J,le){return[J,$(J?le*A(J)/J:le)]},Ft}function mn(){return Xe(bn).scale(249.828).clipAngle(90)}nn.invert=function(Ot,Mt){var Ft=(Ft=Mt/D-1)*Ft;return[Ft>0?Ot*j(M/Ft)/2:0,$(1-Ft)]};var vt=j(3);function bt(Ot,Mt){return[vt*Ot*(2*w(2*Mt/3)-1)/D,vt*D*S(Mt/3)]}function lt(){return(0,c.c)(bt).scale(156.19)}function yt(Ot){var Mt=w(Ot);function Ft(J,le){return[J*Mt,S(le)/Mt]}return Ft.invert=function(J,le){return[J/Mt,$(le*Mt)]},Ft}function zt(){return Xe(yt).parallel(38.58).scale(195.044)}function Rt(Ot){var Mt=w(Ot);function Ft(J,le){return[J*Mt,(1+Mt)*A(le/2)]}return Ft.invert=function(J,le){return[J/Mt,2*i(le/(1+Mt))]},Ft}function it(){return Xe(Rt).scale(124.75)}function at(Ot,Mt){var Ft=j(8/(3*M));return[Ft*Ot*(1-b(Mt)/M),Ft*Mt]}function Lt(){return(0,c.c)(at).scale(165.664)}function xt(Ot,Mt){var Ft=j(4-3*S(b(Mt)));return[2/j(6*M)*Ot*Ft,_(Mt)*j(2*M/3)*(2-Ft)]}function Ht(){return(0,c.c)(xt).scale(165.664)}function Xt(Ot,Mt){var Ft=j(M*(4+M));return[2/Ft*Ot*(1+j(1-4*Mt*Mt/(M*M))),4/Ft*Mt]}function Yt(){return(0,c.c)(Xt).scale(180.739)}function Qt(Ot,Mt){var Ft=(2+T)*S(Mt);Mt/=2;for(var J=0,le=1/0;J<10&&b(le)>x;J++){var ie=w(Mt);Mt-=le=(Mt+S(Mt)*(ie+2)-Ft)/(2*ie*(1+ie))}return[2/j(M*(4+M))*Ot*(1+w(Mt)),2*j(M/(4+M))*S(Mt)]}function Pt(){return(0,c.c)(Qt).scale(180.739)}function tn(Ot,Mt){return[Ot*(1+w(Mt))/j(2+M),2*Mt/j(2+M)]}function Kt(){return(0,c.c)(tn).scale(173.044)}function fn(Ot,Mt){for(var Ft=(1+T)*S(Mt),J=0,le=1/0;J<10&&b(le)>x;J++)Mt-=le=(Mt+S(Mt)-Ft)/(1+w(Mt));return Ft=j(2+M),[Ot*(1+w(Mt))/Ft,2*Mt/Ft]}function dn(){return(0,c.c)(fn).scale(173.044)}bt.invert=function(Ot,Mt){var Ft=3*$(Mt/(vt*D));return[D*Ot/(vt*(2*w(2*Ft/3)-1)),Ft]},at.invert=function(Ot,Mt){var Ft=j(8/(3*M)),J=Mt/Ft;return[Ot/(Ft*(1-b(J)/M)),J]},xt.invert=function(Ot,Mt){var Ft=2-b(Mt)/j(2*M/3);return[Ot*j(6*M)/(2*Ft),_(Mt)*$((4-Ft*Ft)/3)]},Xt.invert=function(Ot,Mt){var Ft=j(M*(4+M))/2;return[Ot*Ft/(1+j(1-Mt*Mt*(4+M)/(4*M))),Mt*Ft/2]},Qt.invert=function(Ot,Mt){var Ft=Mt*j((4+M)/M)/2,J=$(Ft),le=w(J);return[Ot/(2/j(M*(4+M))*(1+le)),$((J+Ft*(le+2))/(2+T))]},tn.invert=function(Ot,Mt){var Ft=j(2+M),J=Mt*Ft/2;return[Ft*Ot/(1+w(J)),J]},fn.invert=function(Ot,Mt){var Ft=1+T,J=j(Ft/2);return[2*Ot*J/(1+w(Mt*=J)),$((Mt+S(Mt))/Ft)]};var vn=3+2*L;function Nn(Ot,Mt){var Ft=S(Ot/=2),J=w(Ot),le=j(w(Mt)),ie=w(Mt/=2),V=S(Mt)/(ie+L*J*le),ne=j(2/(1+V*V)),ge=j((L*ie+(J+Ft)*le)/(L*ie+(J-Ft)*le));return[vn*(ne*(ge-1/ge)-2*a(ge)),vn*(ne*V*(ge+1/ge)-2*i(V))]}function er(){return(0,c.c)(Nn).scale(62.5271)}Nn.invert=function(Ot,Mt){if(!(Ft=ee.invert(Ot/1.2,1.065*Mt)))return null;var Ft,J=Ft[0],le=Ft[1],ie=20;Ot/=vn,Mt/=vn;do{var V=J/2,ne=le/2,ge=S(V),xe=w(V),Me=S(ne),Fe=w(ne),Je=w(le),rt=j(Je),dt=Me/(Fe+L*xe*rt),mt=dt*dt,Et=j(2/(1+mt)),Vt=(L*Fe+(xe+ge)*rt)/(L*Fe+(xe-ge)*rt),jt=j(Vt),Nt=jt-1/jt,cn=jt+1/jt,sn=Et*Nt-2*a(jt)-Ot,xn=Et*dt*cn-2*i(dt)-Mt,pn=Me&&C*rt*ge*mt/Me,Ln=(L*xe*Fe+rt)/(2*(Fe+L*xe*rt)*(Fe+L*xe*rt)*rt),On=-.5*dt*Et*Et*Et,An=On*pn,Sn=On*Ln,rr=(rr=2*Fe+L*rt*(xe-ge))*rr*jt,Dr=(L*xe*Fe*rt+Je)/rr,Pr=-L*ge*Me/(rt*rr),Zr=Nt*An-2*Dr/jt+Et*(Dr+Dr/Vt),Mo=Nt*Sn-2*Pr/jt+Et*(Pr+Pr/Vt),$o=dt*cn*An-2*pn/(1+mt)+Et*cn*pn+Et*dt*(Dr-Dr/Vt),vo=dt*cn*Sn-2*Ln/(1+mt)+Et*cn*Ln+Et*dt*(Pr-Pr/Vt),zo=Mo*$o-vo*Zr;if(!zo)break;var yi=(xn*Mo-sn*vo)/zo,Si=(sn*$o-xn*Zr)/zo;J-=yi,le=u(-T,h(T,le-Si))}while((b(yi)>x||b(Si)>x)&&--ie>0);return b(b(le)-T)J){var Fe=j(Me),Je=O(xe,ge),rt=Ft*v(Je/Ft),dt=Je-rt,mt=Ot*w(dt),Et=(Ot*S(dt)-dt*S(mt))/(T-mt),Vt=Fr(dt,Et),jt=(M-Ot)/Rr(Vt,mt,M);ge=Fe;var Nt,cn=50;do ge-=Nt=(Ot+Rr(Vt,mt,ge)*jt-Fe)/(Vt(ge)*jt);while(b(Nt)>x&&--cn>0);xe=dt*S(ge),geJ){var ge=j(ne),xe=O(V,ie),Me=Ft*v(xe/Ft),Fe=xe-Me;ie=ge*w(Fe),V=ge*S(Fe);for(var Je=ie-T,rt=S(ie),dt=V/rt,mt=iex||b(Je)>x)&&--mt>0);return[rt,dt]},ge}var Co=Kr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function so(){return(0,c.c)(Co).scale(149.995)}var So=Kr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function go(){return(0,c.c)(So).scale(153.93)}var li=Kr(5/6*M,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Pn(){return(0,c.c)(li).scale(130.945)}function Yn(Ot,Mt){var Ft=Ot*Ot,J=Mt*Mt;return[Ot*(1-.162388*J)*(.87-952426e-9*Ft*Ft),Mt*(1+J/12)]}function br(){return(0,c.c)(Yn).scale(131.747)}Yn.invert=function(Ot,Mt){var Ft,J=Ot,le=Mt,ie=50;do{var V=le*le;le-=Ft=(le*(1+V/12)-Mt)/(1+V/4)}while(b(Ft)>x&&--ie>0);ie=50,Ot/=1-.162388*V;do{var ne=(ne=J*J)*ne;J-=Ft=(J*(.87-952426e-9*ne)-Ot)/(.87-.00476213*ne)}while(b(Ft)>x&&--ie>0);return[J,le]};var dr=Kr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Cr(){return(0,c.c)(dr).scale(131.087)}function io(Ot){var Mt=Ot(T,0)[0]-Ot(-T,0)[0];function Ft(J,le){var ie=J>0?-.5:.5,V=Ot(J+ie*M,le);return V[0]-=ie*Mt,V}return Ot.invert&&(Ft.invert=function(J,le){var ie=J>0?-.5:.5,V=Ot.invert(J+ie*Mt,le),ne=V[0]-ie*M;return ne<-M?ne+=2*M:ne>M&&(ne-=2*M),V[0]=ne,V}),Ft}function Qr(Ot,Mt){var Ft=_(Ot),J=_(Mt),le=w(Mt),ie=w(Ot)*le,V=S(Ot)*le,ne=S(J*Mt);Ot=b(O(V,ne)),Mt=$(ie),b(Ot-T)>x&&(Ot%=T);var ge=function(xe,Me){if(Me===T)return[0,0];var Fe,Je,rt=S(Me),dt=rt*rt,mt=dt*dt,Et=1+mt,Vt=1+3*mt,jt=1-mt,Nt=$(1/j(Et)),cn=jt+dt*Et*Nt,sn=(1-rt)/cn,xn=j(sn),pn=sn*Et,Ln=j(pn),On=xn*jt;if(xe===0)return[0,-(On+dt*Ln)];var An,Sn=w(Me),rr=1/Sn,Dr=2*rt*Sn,Pr=(-cn*Sn-(1-rt)*((-3*dt+Nt*Vt)*Dr))/(cn*cn),Zr=-rr*Dr,Mo=-rr*(dt*Et*Pr+sn*Vt*Dr),$o=-2*rr*(jt*(.5*Pr/xn)-2*dt*xn*Dr),vo=4*xe/M;if(xe>.222*M||Me.175*M){if(Fe=(On+dt*j(pn*(1+mt)-On*On))/(1+mt),xe>M/4)return[Fe,Fe];var zo=Fe,yi=.5*Fe;Fe=.5*(yi+zo),Je=50;do{var Si=Fe*($o+Zr*j(pn-Fe*Fe))+Mo*$(Fe/Ln)-vo;if(!Si)break;Si<0?yi=Fe:zo=Fe,Fe=.5*(yi+zo)}while(b(zo-yi)>x&&--Je>0)}else{Fe=x,Je=25;do{var Hr=Fe*Fe,Lo=j(pn-Hr),ki=$o+Zr*Lo,Io=Fe*ki+Mo*$(Fe/Ln)-vo;Fe-=An=Lo?Io/(ki+(Mo-Zr*Hr)/Lo):0}while(b(An)>x&&--Je>0)}return[Fe,-On-dt*j(pn-Fe*Fe)]}(Ot>M/4?T-Ot:Ot,Mt);return Ot>M/4&&(ne=ge[0],ge[0]=-ge[1],ge[1]=-ne),ge[0]*=Ft,ge[1]*=-J,ge}function Wr(){return(0,c.c)(io(Qr)).scale(239.75)}function bo(Ot,Mt){var Ft,J,le,ie,V,ne;if(Mt=1-x)return Ft=(1-Mt)/4,le=1/(J=X(Ot)),[(ie=((ne=y(2*(ne=Ot)))-1)/(ne+1))+Ft*((V=J*U(Ot))-Ot)/(J*J),le-Ft*ie*le*(V-Ot),le+Ft*ie*le*(V+Ot),2*i(y(Ot))-T+Ft*(V-Ot)/J];var ge=[1,0,0,0,0,0,0,0,0],xe=[j(Mt),0,0,0,0,0,0,0,0],Me=0;for(J=j(1-Mt),V=1;b(xe[Me]/ge[Me])>x&&Me<8;)Ft=ge[Me++],xe[Me]=(Ft-J)/2,ge[Me]=(Ft+J)/2,J=j(Ft*J),V*=2;le=V*ge[Me]*Ot;do le=($(ie=xe[Me]*S(J=le)/ge[Me])+le)/2;while(--Me);return[S(le),ie=w(le),ie/w(le-J),le]}function Bn(Ot,Mt){if(!Mt)return Ot;if(Mt===1)return a(A(Ot/2+E));for(var Ft=1,J=j(1-Mt),le=j(Mt),ie=0;b(le)>x;ie++){if(Ot%M){var V=i(J*A(Ot)/Ft);V<0&&(V+=M),Ot+=V+~~(Ot/M)*M}else Ot+=Ot;le=(Ft+J)/2,J=j(Ft*J),le=((Ft=le)-J)/2}return Ot/(m(2,ie)*Ft)}function hr(Ot,Mt){var Ft=(L-1)/(L+1),J=j(1-Ft*Ft),le=Bn(T,J*J),ie=a(A(M/4+b(Mt)/2)),V=y(-1*ie)/j(Ft),ne=function(xe,Me){var Fe=xe*xe,Je=Me+1,rt=1-Fe-Me*Me;return[.5*((xe>=0?T:-T)-O(rt,2*xe)),-.25*a(rt*rt+4*Fe)+.5*a(Je*Je+Fe)]}(V*w(-1*Ot),V*S(-1*Ot)),ge=function(xe,Me,Fe){var Je=b(xe),rt=U(b(Me));if(Je){var dt=1/S(Je),mt=1/(A(Je)*A(Je)),Et=-(mt+Fe*(rt*rt*dt*dt)-1+Fe),Vt=(-Et+j(Et*Et-(Fe-1)*mt*4))/2;return[Bn(i(1/j(Vt)),Fe)*_(xe),Bn(i(j((Vt/mt-1)/Fe)),1-Fe)*_(Me)]}return[0,Bn(i(rt),1-Fe)*_(Me)]}(ne[0],ne[1],J*J);return[-ge[1],(Mt>=0?1:-1)*(.5*le-ge[0])]}function hn(){return(0,c.c)(io(hr)).scale(151.496)}Qr.invert=function(Ot,Mt){b(Ot)>1&&(Ot=2*_(Ot)-Ot),b(Mt)>1&&(Mt=2*_(Mt)-Mt);var Ft=_(Ot),J=_(Mt),le=-Ft*Ot,ie=-J*Mt,V=ie/le<1,ne=function(Fe,Je){for(var rt=0,dt=1,mt=.5,Et=50;;){var Vt=mt*mt,jt=j(mt),Nt=$(1/j(1+Vt)),cn=1-Vt+mt*(1+Vt)*Nt,sn=(1-jt)/cn,xn=j(sn),pn=sn*(1+Vt),Ln=xn*(1-Vt),On=j(pn-Fe*Fe),An=Je+Ln+mt*On;if(b(dt-rt)0?rt=mt:dt=mt,mt=.5*(rt+dt)}if(!Et)return null;var Sn=$(jt),rr=w(Sn),Dr=1/rr,Pr=2*jt*rr,Zr=(-cn*rr-(-3*mt+Nt*(1+3*Vt))*Pr*(1-jt))/(cn*cn);return[M/4*(Fe*(-2*Dr*((1-Vt)*(.5*Zr/xn)-2*mt*xn*Pr)+-Dr*Pr*On)+-Dr*(mt*(1+Vt)*Zr+sn*(1+3*Vt)*Pr)*$(Fe/j(pn))),Sn]}(V?ie:le,V?le:ie),ge=ne[0],xe=ne[1],Me=w(xe);return V&&(ge=-T-ge),[Ft*(O(S(ge)*Me,-S(xe))+M),J*$(w(ge)*Me)]},hr.invert=function(Ot,Mt){var Ft,J,le,ie,V,ne,ge=(L-1)/(L+1),xe=j(1-ge*ge),Me=(J=-Ot,le=xe*xe,(Ft=.5*Bn(T,xe*xe)-Mt)?(ie=bo(Ft,le),J?(ne=(V=bo(J,1-le))[1]*V[1]+le*ie[0]*ie[0]*V[0]*V[0],[[ie[0]*V[2]/ne,ie[1]*ie[2]*V[0]*V[1]/ne],[ie[1]*V[1]/ne,-ie[0]*ie[2]*V[0]*V[2]/ne],[ie[2]*V[1]*V[2]/ne,-le*ie[0]*ie[1]*V[0]/ne]]):[[ie[0],0],[ie[1],0],[ie[2],0]]):[[0,(V=bo(J,1-le))[0]/V[1]],[1/V[1],0],[V[2]/V[1],0]]),Fe=function(Je,rt){var dt=rt[0]*rt[0]+rt[1]*rt[1];return[(Je[0]*rt[0]+Je[1]*rt[1])/dt,(Je[1]*rt[0]-Je[0]*rt[1])/dt]}(Me[0],Me[1]);return[O(Fe[1],Fe[0])/-1,2*i(y(-.5*a(ge*Fe[0]*Fe[0]+ge*Fe[1]*Fe[1])))-T]};var zn=n(61780);function Zn(Ot){var Mt=S(Ot),Ft=w(Ot),J=yr(Ot);function le(ie,V){var ne=J(ie,V);ie=ne[0],V=ne[1];var ge=S(V),xe=w(V),Me=w(ie),Fe=Q(Mt*ge+Ft*xe*Me),Je=S(Fe),rt=b(Je)>x?Fe/Je:1;return[rt*Ft*S(ie),(b(ie)>T?rt:-rt)*(Mt*xe-Ft*ge*Me)]}return J.invert=yr(-Ot),le.invert=function(ie,V){var ne=j(ie*ie+V*V),ge=-S(ne),xe=w(ne),Me=ne*xe,Fe=-V*ge,Je=ne*Mt,rt=j(Me*Me+Fe*Fe-Je*Je),dt=O(Me*Je+Fe*rt,Fe*Je-Me*rt),mt=(ne>T?-1:1)*O(ie*ge,ne*w(dt)*xe+V*S(dt)*ge);return J.invert(mt,dt)},le}function yr(Ot){var Mt=S(Ot),Ft=w(Ot);return function(J,le){var ie=w(le),V=w(J)*ie,ne=S(J)*ie,ge=S(le);return[O(ne,V*Ft-ge*Mt),$(ge*Ft+V*Mt)]}}function gr(){var Ot=0,Mt=(0,c.U)(Zn),Ft=Mt(Ot),J=Ft.rotate,le=Ft.stream,ie=(0,zn.c)();return Ft.parallel=function(V){if(!arguments.length)return Ot*I;var ne=Ft.rotate();return Mt(Ot=V*z).rotate(ne)},Ft.rotate=function(V){return arguments.length?(J.call(Ft,[V[0],V[1]-Ot*I]),ie.center([-V[0],-V[1]]),Ft):((V=J.call(Ft))[1]+=Ot*I,V)},Ft.stream=function(V){return(V=le(V)).sphere=function(){V.polygonStart();var ne,ge=ie.radius(89.99)().coordinates[0],xe=ge.length-1,Me=-1;for(V.lineStart();++Me=0;)V.point((ne=ge[Me])[0],ne[1]);V.lineEnd(),V.polygonEnd()},V},Ft.scale(79.4187).parallel(45).clipAngle(179.999)}var vr=n(84706),nr=n(16016),Qn=$(1-1/3)*I,Hn=yt(0);function tr(Ot){var Mt=Qn*z,Ft=nn(M,Mt)[0]-nn(-M,Mt)[0],J=Hn(0,Mt)[1],le=nn(0,Mt)[1],ie=D-le,V=k/Ot,ne=4/k,ge=J+ie*ie*4/k;function xe(Me,Fe){var Je,rt=b(Fe);if(rt>Mt){var dt=h(Ot-1,u(0,p((Me+M)/V)));(Je=nn(Me+=M*(Ot-1)/Ot-dt*V,rt))[0]=Je[0]*k/Ft-k*(Ot-1)/(2*Ot)+dt*k/Ot,Je[1]=J+4*(Je[1]-le)*ie/k,Fe<0&&(Je[1]=-Je[1])}else Je=Hn(Me,Fe);return Je[0]*=ne,Je[1]/=ge,Je}return xe.invert=function(Me,Fe){Me/=ne;var Je=b(Fe*=ge);if(Je>J){var rt=h(Ot-1,u(0,p((Me+M)/V)));Me=(Me+M*(Ot-1)/Ot-rt*V)*Ft/k;var dt=nn.invert(Me,.25*(Je-J)*k/ie+le);return dt[0]-=M*(Ot-1)/Ot-rt*V,Fe<0&&(dt[1]=-dt[1]),dt}return Hn.invert(Me,Fe)},xe}function cr(Ot,Mt){return[Ot,1&Mt?90-x:Qn]}function Lr(Ot,Mt){return[Ot,1&Mt?-90+x:-Qn]}function Er(Ot){return[Ot[0]*(1-x),Ot[1]]}function Vr(){var Ot=4,Mt=(0,c.U)(tr),Ft=Mt(Ot),J=Ft.stream;return Ft.lobes=function(le){return arguments.length?Mt(Ot=+le):Ot},Ft.stream=function(le){var ie=Ft.rotate(),V=J(le),ne=(Ft.rotate([0,0]),J(le));return Ft.rotate(ie),V.sphere=function(){var ge,xe;(0,nr.c)((ge=180/Ot,xe=[].concat((0,vr.ik)(-180,180+ge/2,ge).map(cr),(0,vr.ik)(180,-180-ge/2,-ge).map(Lr)),{type:"Polygon",coordinates:[ge===180?xe.map(Er):xe]}),ne)},V},Ft.scale(239.75)}function to(Ot){var Mt,Ft=1+Ot,J=$(S(1/Ft)),le=2*j(M/(Mt=M+4*J*Ft)),ie=.5*le*(Ft+j(Ot*(2+Ot))),V=Ot*Ot,ne=Ft*Ft;function ge(xe,Me){var Fe,Je,rt=1-S(Me);if(rt&&rt<2){var dt,mt=T-Me,Et=25;do{var Vt=S(mt),jt=w(mt),Nt=J+O(Vt,Ft-jt),cn=1+ne-2*Ft*jt;mt-=dt=(mt-V*J-Ft*Vt+cn*Nt-.5*rt*Mt)/(2*Ft*Vt*Nt)}while(b(dt)>R&&--Et>0);Fe=le*j(cn),Je=xe*Nt/M}else Fe=le*(Ot+rt),Je=xe*J/M;return[Fe*S(Je),ie-Fe*w(Je)]}return ge.invert=function(xe,Me){var Fe=xe*xe+(Me-=ie)*Me,Je=(1+ne-Fe/(le*le))/(2*Ft),rt=Q(Je),dt=S(rt),mt=J+O(dt,Ft-Je);return[$(xe/j(Fe))*M/mt,$(1-2*(rt-V*J-Ft*dt+(1+ne-2*Ft*Je)*mt)/Mt)]},ge}function _o(){var Ot=1,Mt=(0,c.U)(to),Ft=Mt(Ot);return Ft.ratio=function(J){return arguments.length?Mt(Ot=+J):Ot},Ft.scale(167.774).center([0,18.67])}var fr=.7109889596207567,Eo=.0528035274542;function ao(Ot,Mt){return Mt>-fr?((Ot=Oe(Ot,Mt))[1]+=Eo,Ot):tt(Ot,Mt)}function co(){return(0,c.c)(ao).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Go(Ot,Mt){return b(Mt)>fr?((Ot=Oe(Ot,Mt))[1]-=Mt>0?Eo:-Eo,Ot):tt(Ot,Mt)}function po(){return(0,c.c)(Go).scale(152.63)}function qo(Ot,Mt,Ft,J){var le=j(4*M/(2*Ft+(1+Ot-Mt/2)*S(2*Ft)+(Ot+Mt)/2*S(4*Ft)+Mt/2*S(6*Ft))),ie=j(J*S(Ft)*j((1+Ot*w(2*Ft)+Mt*w(4*Ft))/(1+Ot+Mt))),V=Ft*ge(1);function ne(Fe){return j(1+Ot*w(2*Fe)+Mt*w(4*Fe))}function ge(Fe){var Je=Fe*Ft;return(2*Je+(1+Ot-Mt/2)*S(2*Je)+(Ot+Mt)/2*S(4*Je)+Mt/2*S(6*Je))/Ft}function xe(Fe){return ne(Fe)*S(Fe)}var Me=function(Fe,Je){var rt=Ft*Ie(ge,V*S(Je)/Ft,Je/M);isNaN(rt)&&(rt=Ft*_(Je));var dt=le*ne(rt);return[dt*ie*Fe/M*w(rt),dt/ie*S(rt)]};return Me.invert=function(Fe,Je){var rt=Ie(xe,Je*ie/le);return[Fe*M/(w(rt)*le*ie*ne(rt)),$(Ft*ge(rt/Ft)/V)]},Ft===0&&(le=j(J/M),(Me=function(Fe,Je){return[Fe*le,S(Je)/le]}).invert=function(Fe,Je){return[Fe/le,$(Je*le)]}),Me}function Ao(){var Ot=1,Mt=0,Ft=45*z,J=2,le=(0,c.U)(qo),ie=le(Ot,Mt,Ft,J);return ie.a=function(V){return arguments.length?le(Ot=+V,Mt,Ft,J):Ot},ie.b=function(V){return arguments.length?le(Ot,Mt=+V,Ft,J):Mt},ie.psiMax=function(V){return arguments.length?le(Ot,Mt,Ft=+V*z,J):Ft*I},ie.ratio=function(V){return arguments.length?le(Ot,Mt,Ft,J=+V):J},ie.scale(180.739)}function oi(Ot,Mt,Ft,J,le,ie,V,ne,ge,xe,Me){if(Me.nanEncountered)return NaN;var Fe,Je,rt,dt,mt,Et,Vt,jt,Nt,cn;if(Je=Ot(Mt+.25*(Fe=Ft-Mt)),rt=Ot(Ft-.25*Fe),isNaN(Je))Me.nanEncountered=!0;else{if(!isNaN(rt))return cn=((Et=(dt=Fe*(J+4*Je+le)/12)+(mt=Fe*(le+4*rt+ie)/12))-V)/15,xe>ge?(Me.maxDepthCount++,Et+cn):Math.abs(cn)rt?mt=Et:dt=Et,Et=dt+mt>>1;while(Et>dt);var Vt=ge[Et+1]-ge[Et];return Vt&&(Vt=(rt-ge[Et+1])/Vt),(Et+1+Vt)/V}var Fe=2*Me(1)/M*ie/Ft,Je=function(rt,dt){var mt=Me(b(S(dt))),Et=J(mt)*rt;return mt/=Fe,[Et,dt>=0?mt:-mt]};return Je.invert=function(rt,dt){var mt;return b(dt*=Fe)<1&&(mt=_(dt)*$(le(b(dt))*ie)),[rt/J(b(dt)),mt]},Je}function mo(){var Ot=0,Mt=2.5,Ft=1.183136,J=(0,c.U)(ra),le=J(Ot,Mt,Ft);return le.alpha=function(ie){return arguments.length?J(Ot=+ie,Mt,Ft):Ot},le.k=function(ie){return arguments.length?J(Ot,Mt=+ie,Ft):Mt},le.gamma=function(ie){return arguments.length?J(Ot,Mt,Ft=+ie):Ft},le.scale(152.63)}function Aa(Ot,Mt){return b(Ot[0]-Mt[0])Fe[Je][2][0];++Je);var dt=Ot(ge-Fe[Je][1][0],xe);return dt[0]+=Ot(Fe[Je][1][0],Me*xe>Me*Fe[Je][0][1]?Fe[Je][0][1]:xe)[0],dt}Ft?ie.invert=Ft(ie):Ot.invert&&(ie.invert=function(ge,xe){for(var Me=le[+(xe<0)],Fe=Mt[+(xe<0)],Je=0,rt=Me.length;Je=0;--Et)Fe=(Me=xe[1][Et])[0][0],Je=Me[0][1],rt=Me[1][1],dt=Me[2][0],mt=Me[2][1],Vt.push(Xl([[dt-x,mt-x],[dt-x,rt+x],[Fe+x,rt+x],[Fe+x,Je-x]],30));return{type:"Polygon",coordinates:[(0,vr.Uf)(Vt)]}}(ge),Mt=ge.map(function(xe){return xe.map(function(Me){return[[Me[0][0]*z,Me[0][1]*z],[Me[1][0]*z,Me[1][1]*z],[Me[2][0]*z,Me[2][1]*z]]})}),le=Mt.map(function(xe){return xe.map(function(Me){var Fe,Je=Ot(Me[0][0],Me[0][1])[0],rt=Ot(Me[2][0],Me[2][1])[0],dt=Ot(Me[1][0],Me[0][1])[1],mt=Ot(Me[1][0],Me[1][1])[1];return dt>mt&&(Fe=dt,dt=mt,mt=Fe),[[Je,dt],[rt,mt]]})}),V):Mt.map(function(xe){return xe.map(function(Me){return[[Me[0][0]*I,Me[0][1]*I],[Me[1][0]*I,Me[1][1]*I],[Me[2][0]*I,Me[2][1]*I]]})})},Mt!=null&&V.lobes(Mt),V}ao.invert=function(Ot,Mt){return Mt>-fr?Oe.invert(Ot,Mt-Eo):tt.invert(Ot,Mt)},Go.invert=function(Ot,Mt){return b(Mt)>fr?Oe.invert(Ot,Mt+(Mt>0?Eo:-Eo)):tt.invert(Ot,Mt)};var cs=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function wc(){return Na(Ue,cs).scale(160.857)}var ma=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Ku(){return Na(Go,ma).scale(152.63)}var qc=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Yd(){return Na(Oe,qc).scale(169.529)}var Ql=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Ed(){return Na(Oe,Ql).scale(169.529).rotate([20,0])}var Nf=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function mm(){return Na(ao,Nf,ze).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ws=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function gm(){return Na(tt,Ws).scale(152.63).rotate([-20,0])}function Gl(Ot,Mt){return[3/k*Ot*j(M*M/3-Mt*Mt),Mt]}function pc(){return(0,c.c)(Gl).scale(158.837)}function Cu(Ot){function Mt(Ft,J){if(b(b(J)-T)2)return null;var ie=(Ft/=2)*Ft,V=(J/=2)*J,ne=2*J/(1+ie+V);return ne=m((1+ne)/(1-ne),1/Ot),[O(2*Ft,1-ie-V)/Ot,$((ne-1)/(ne+1))]},Mt}function yl(){var Ot=.5,Mt=(0,c.U)(Cu),Ft=Mt(Ot);return Ft.spacing=function(J){return arguments.length?Mt(Ot=+J):Ot},Ft.scale(124.75)}Gl.invert=function(Ot,Mt){return[k/3*Ot/j(M*M/3-Mt*Mt),Mt]};var sa=M/L;function cc(Ot,Mt){return[Ot*(1+j(w(Mt)))/2,Mt/(w(Mt/2)*w(Ot/6))]}function hu(){return(0,c.c)(cc).scale(97.2672)}function ju(Ot,Mt){var Ft=Ot*Ot,J=Mt*Mt;return[Ot*(.975534+J*(-.0143059*Ft-.119161+-.0547009*J)),Mt*(1.00384+Ft*(.0802894+-.02855*J+199025e-9*Ft)+J*(.0998909+-.0491032*J))]}function iu(){return(0,c.c)(ju).scale(139.98)}function mc(Ot,Mt){return[S(Ot)/w(Mt),A(Mt)*w(Ot)]}function Ss(){return(0,c.c)(mc).scale(144.049).clipAngle(89.999)}function $f(Ot){var Mt=w(Ot),Ft=A(E+Ot/2);function J(le,ie){var V=ie-Ot,ne=b(V)=0;)Je=(Fe=Ot[Me])[0]+ge*(ie=Je)-xe*rt,rt=Fe[1]+ge*rt+xe*ie;return[Je=ge*(ie=Je)-xe*rt,rt=ge*rt+xe*ie]}return Ft.invert=function(J,le){var ie=20,V=J,ne=le;do{for(var ge,xe=Mt,Me=Ot[xe],Fe=Me[0],Je=Me[1],rt=0,dt=0;--xe>=0;)rt=Fe+V*(ge=rt)-ne*dt,dt=Je+V*dt+ne*ge,Fe=(Me=Ot[xe])[0]+V*(ge=Fe)-ne*Je,Je=Me[1]+V*Je+ne*ge;var mt,Et,Vt=(rt=Fe+V*(ge=rt)-ne*dt)*rt+(dt=Je+V*dt+ne*ge)*dt;V-=mt=((Fe=V*(ge=Fe)-ne*Je-J)*rt+(Je=V*Je+ne*ge-le)*dt)/Vt,ne-=Et=(Je*rt-Fe*dt)/Vt}while(b(mt)+b(Et)>x*x&&--ie>0);if(ie){var jt=j(V*V+ne*ne),Nt=2*i(.5*jt),cn=S(Nt);return[O(V*cn,jt*w(Nt)),jt?$(ne*cn/jt):0]}},Ft}cc.invert=function(Ot,Mt){var Ft=b(Ot),J=b(Mt),le=x,ie=T;Jx||b(Et)>x)&&--le>0);return le&&[Ft,J]},mc.invert=function(Ot,Mt){var Ft=Ot*Ot,J=Mt*Mt+1,le=Ft+J,ie=Ot?C*j((le-j(le*le-4*Ft))/Ft):1/j(J);return[$(Ot*ie),_(Mt)*Q(ie)]},Ju.invert=function(Ot,Mt){return[Ot,2.5*i(y(.8*Mt))-.625*M]};var ef=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],uc=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],ad=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Vf=[[.9245,0],[0,0],[.01943,0]],gc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function sd(){return ld(ef,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Mp(){return ld(uc,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Xd(){return ld(ad,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function yf(){return ld(Vf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function mh(){return ld(gc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function ld(Ot,Mt){var Ft=(0,c.c)(Es(Ot)).rotate(Mt).clipAngle(90),J=(0,wt.c)(Mt),le=Ft.center;return delete Ft.rotate,Ft.center=function(ie){return arguments.length?le(J(ie)):J.invert(le())},Ft}var Vh=j(6),bf=j(7);function tf(Ot,Mt){var Ft=$(7*S(Mt)/(3*Vh));return[Vh*Ot*(2*w(2*Ft/3)-1)/bf,9*S(Ft/3)/bf]}function Au(){return(0,c.c)(tf).scale(164.859)}function xf(Ot,Mt){for(var Ft,J=(1+C)*S(Mt),le=Mt,ie=0;ie<25&&(le-=Ft=(S(le/2)+S(le)-J)/(.5*w(le/2)+w(le)),!(b(Ft)R&&--ne>0);return[Ot/(.84719-.13063*(J=V*V)+(ie=J*(le=J*J))*ie*(.05494*J-.04515-.02326*le+.00331*ie)),V]},vm.invert=function(Ot,Mt){for(var Ft=Mt/2,J=0,le=1/0;J<10&&b(le)>x;++J){var ie=w(Mt/2);Mt-=le=(Mt-A(Mt/2)-Ft)/(1-.5/(ie*ie))}return[2*Ot/(1+w(Mt)),Mt]};var M0=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function sr(){return Na(Se(1/0),M0).rotate([20,0]).scale(152.63)}function Pp(Ot,Mt){var Ft=S(Mt),J=w(Mt),le=_(Ot);if(Ot===0||b(Mt)===T)return[0,Mt];if(Mt===0)return[Ot,0];if(b(Ot)===T)return[Ot*J,T*Ft];var ie=M/(2*Ot)-2*Ot/M,V=2*Mt/M,ne=(1-V*V)/(Ft-V),ge=ie*ie,xe=ne*ne,Me=1+ge/xe,Fe=1+xe/ge,Je=(ie*Ft/ne-ie/2)/Me,rt=(xe*Ft/ge+ne/2)/Fe,dt=rt*rt-(xe*Ft*Ft/ge+ne*Ft-1)/Fe;return[T*(Je+j(Je*Je+J*J/Me)*le),T*(rt+j(dt<0?0:dt)*_(-Mt*ie)*le)]}function _f(){return(0,c.c)(Pp).scale(127.267)}Pp.invert=function(Ot,Mt){var Ft=(Ot/=T)*Ot,J=Ft+(Mt/=T)*Mt,le=M*M;return[Ot?(J-1+j((1-J)*(1-J)+4*Ft))/(2*Ot)*T:0,Ie(function(ie){return J*(M*S(ie)-2*ie)*M+4*ie*ie*(Mt-S(ie))+2*M*ie-le*Mt},0)]};var wf=1.0148,Rp=.23185,Gd=-.14499,Fa=.02406,Qu=wf,rf=5*Rp,Bc=7*Gd,ym=9*Fa,Mu=1.790857183;function Hu(Ot,Mt){var Ft=Mt*Mt;return[Ot,Mt*(wf+Ft*Ft*(Rp+Ft*(Gd+Fa*Ft)))]}function Lp(){return(0,c.c)(Hu).scale(139.319)}function Uh(Ot,Mt){if(b(Mt)Mu?Mt=Mu:Mt<-1.790857183&&(Mt=-1.790857183);var Ft,J=Mt;do{var le=J*J;J-=Ft=(J*(wf+le*le*(Rp+le*(Gd+Fa*le)))-Mt)/(Qu+le*le*(rf+le*(Bc+ym*le)))}while(b(Ft)>x);return[Ot,J]},Uh.invert=function(Ot,Mt){if(b(Mt)x&&--ie>0);return V=A(le),[(b(Mt)=0;)if(Ln=xn[rr],pn[0]===Ln[0]&&pn[1]===Ln[1]){if(An)return[An,pn];An=pn}}}(ge.face,xe.face),Fe=(mt=Me.map(xe.project),Et=Me.map(ge.project),Vt=Pu(mt[1],mt[0]),jt=Pu(Et[1],Et[0]),Nt=function(sn,xn){return O(sn[0]*xn[1]-sn[1]*xn[0],sn[0]*xn[0]+sn[1]*xn[1])}(Vt,jt),cn=Oc(Vt)/Oc(jt),vh([1,0,mt[0][0],0,1,mt[0][1]],vh([cn,0,0,0,cn,0],vh([w(Nt),S(Nt),0,-S(Nt),w(Nt),0],[1,0,-Et[0][0],0,1,-Et[0][1]]))));ge.transform=xe.transform?vh(xe.transform,Fe):Fe;for(var Je=xe.edges,rt=0,dt=Je.length;rt0?[-J[0],0]:[180-J[0],180])};var Mt=Zu.map(function(Ft){return{face:Ft,project:Ot(Ft)}});return[-1,0,0,1,0,1,4,5].forEach(function(Ft,J){var le=Mt[Ft];le&&(le.children||(le.children=[])).push(Mt[J])}),ks(Mt[0],function(Ft,J){return Mt[Ft<-M/2?J<0?6:4:Ft<0?J<0?2:0:Ftge^jt>ge&&ne<(Vt-dt)*(ge-mt)/(jt-mt)+dt&&(xe=!xe)}return xe}(le[0],J))return le.push(Ft),!0})||Ot.push([Ft])}),Wc=[],Ot.length?Ot.length>1?{type:"MultiPolygon",coordinates:Ot}:{type:"Polygon",coordinates:Ot[0]}:null}};function xh(Ot){var Mt=Ot(T,0)[0]-Ot(-T,0)[0];function Ft(J,le){var ie=b(J)0?J-M:J+M,le),ne=(V[0]-V[1])*C,ge=(V[0]+V[1])*C;if(ie)return[ne,ge];var xe=Mt*C,Me=ne>0^ge>0?-1:1;return[Me*ne-_(ge)*xe,Me*ge-_(ne)*xe]}return Ot.invert&&(Ft.invert=function(J,le){var ie=(J+le)*C,V=(le-J)*C,ne=b(ie)<.5*Mt&&b(V)<.5*Mt;if(!ne){var ge=Mt*C,xe=ie>0^V>0?-1:1,Me=-xe*J+(V>0?1:-1)*ge,Fe=-xe*le+(ie>0?1:-1)*ge;ie=(-Me-Fe)*C,V=(Me-Fe)*C}var Je=Ot.invert(ie,V);return ne||(Je[0]+=ie>0?M:-M),Je}),(0,c.c)(Ft).rotate([-90,-90,45]).clipAngle(179.999)}function js(){return xh(Qr).scale(176.423)}function os(){return xh(hr).scale(111.48)}function af(Ot,Mt){if(!(0<=(Mt=+Mt)&&Mt<=20))throw new Error("invalid digits");function Ft(xe){var Me=xe.length,Fe=2,Je=new Array(Me);for(Je[0]=+xe[0].toFixed(Mt),Je[1]=+xe[1].toFixed(Mt);Fe2||rt[0]!=Me[0]||rt[1]!=Me[1])&&(Fe.push(rt),Me=rt)}return Fe.length===1&&xe.length>1&&Fe.push(Ft(xe[xe.length-1])),Fe}function ie(xe){return xe.map(le)}function V(xe){if(xe==null)return xe;var Me;switch(xe.type){case"GeometryCollection":Me={type:"GeometryCollection",geometries:xe.geometries.map(V)};break;case"Point":Me={type:"Point",coordinates:Ft(xe.coordinates)};break;case"MultiPoint":Me={type:xe.type,coordinates:J(xe.coordinates)};break;case"LineString":Me={type:xe.type,coordinates:le(xe.coordinates)};break;case"MultiLineString":case"Polygon":Me={type:xe.type,coordinates:ie(xe.coordinates)};break;case"MultiPolygon":Me={type:"MultiPolygon",coordinates:xe.coordinates.map(ie)};break;default:return xe}return xe.bbox!=null&&(Me.bbox=xe.bbox),Me}function ne(xe){var Me={type:"Feature",properties:xe.properties,geometry:V(xe.geometry)};return xe.id!=null&&(Me.id=xe.id),xe.bbox!=null&&(Me.bbox=xe.bbox),Me}if(Ot!=null)switch(Ot.type){case"Feature":return ne(Ot);case"FeatureCollection":var ge={type:"FeatureCollection",features:Ot.features.map(ne)};return Ot.bbox!=null&&(ge.bbox=Ot.bbox),ge;default:return V(Ot)}return Ot}function Of(Ot){var Mt=S(Ot);function Ft(J,le){var ie=Mt?A(J*Mt/2)/Mt:J/2;if(!le)return[2*ie,-Ot];var V=2*i(ie*S(le)),ne=1/A(le);return[S(V)*ne,le+(1-w(V))*ne-Ot]}return Ft.invert=function(J,le){if(b(le+=Ot)x&&--ge>0);var Je=J*(xe=A(ne)),rt=A(b(le)0?T:-T)*(xe+ie*(Fe-ne)/2+ie*ie*(Fe-2*xe+ne)/2)]}function pi(){return(0,c.c)(Hi).scale(152.63)}function Qh(Ot,Mt){var Ft=function(V){function ne(ge,xe){var Me=w(xe),Fe=(V-1)/(V-Me*w(ge));return[Fe*Me*S(ge),Fe*S(xe)]}return ne.invert=function(ge,xe){var Me=ge*ge+xe*xe,Fe=j(Me),Je=(V-j(1-Me*(V+1)/(V-1)))/((V-1)/Fe+Fe/(V-1));return[O(ge*Je,Fe*j(1-Je*Je)),Fe?$(xe*Je/Fe):0]},ne}(Ot);if(!Mt)return Ft;var J=w(Mt),le=S(Mt);function ie(V,ne){var ge=Ft(V,ne),xe=ge[1],Me=xe*le/(Ot-1)+J;return[ge[0]*J/Me,xe/Me]}return ie.invert=function(V,ne){var ge=(Ot-1)/(Ot-1-ne*le);return Ft.invert(ge*V,ge*ne*J)},ie}function Ru(){var Ot=2,Mt=0,Ft=(0,c.U)(Qh),J=Ft(Ot,Mt);return J.distance=function(le){return arguments.length?Ft(Ot=+le,Mt):Ot},J.tilt=function(le){return arguments.length?Ft(Ot,Mt=le*z):Mt*I},J.scale(432.147).clipAngle(Q(1/Ot)*I-1e-6)}Ml.forEach(function(Ot){Ot[1]*=1.0144}),Hi.invert=function(Ot,Mt){var Ft=Mt/T,J=90*Ft,le=h(18,b(J/5)),ie=u(0,p(le));do{var V=Ml[ie][1],ne=Ml[ie+1][1],ge=Ml[h(19,ie+2)][1],xe=ge-V,Me=ge-2*ne+V,Fe=2*(b(Ft)-ne)/xe,Je=Me/xe,rt=Fe*(1-Je*Fe*(1-2*Je*Fe));if(rt>=0||ie===1){J=(Mt>=0?5:-5)*(rt+le);var dt,mt=50;do rt=(le=h(18,b(J)/5))-(ie=p(le)),V=Ml[ie][1],ne=Ml[ie+1][1],ge=Ml[h(19,ie+2)][1],J-=(dt=(Mt>=0?T:-T)*(ne+rt*(ge-V)/2+rt*rt*(ge-2*ne+V)/2)-Mt)*I;while(b(dt)>R&&--mt>0);break}}while(--ie>=0);var Et=Ml[ie][0],Vt=Ml[ie+1][0],jt=Ml[h(19,ie+2)][0];return[Ot/(Vt+rt*(jt-Et)/2+rt*rt*(jt-2*Vt+Et)/2),J*z]};var vc=1e-4,Yc=1e4,Kl=-180,Fc=Kl+vc,si=180,Hh=si-vc,Ps=-90,Sc=Ps+vc,tl=90,mu=tl-vc;function gu(Ot){return Ot.length>0}function ja(Ot){return Ot===Ps||Ot===tl?[0,Ot]:[Kl,(Mt=Ot,Math.floor(Mt*Yc)/Yc)];var Mt}function vu(Ot){var Mt=Ot[0],Ft=Ot[1],J=!1;return Mt<=Fc?(Mt=Kl,J=!0):Mt>=Hh&&(Mt=si,J=!0),Ft<=Sc?(Ft=Ps,J=!0):Ft>=mu&&(Ft=tl,J=!0),J?[Mt,Ft]:Ot}function Rd(Ot){return Ot.map(vu)}function Ld(Ot,Mt,Ft){for(var J=0,le=Ot.length;J=Hh||Me<=Sc||Me>=mu){ie[V]=vu(ge);for(var Fe=V+1;FeFc&&rtSc&&dt=ne)break;Ft.push({index:-1,polygon:Mt,ring:ie=ie.slice(Fe-1)}),ie[0]=ja(ie[0][1]),V=-1,ne=ie.length}}}}function nl(Ot){var Mt,Ft,J,le,ie,V,ne=Ot.length,ge={},xe={};for(Mt=0;Mt0?M-ne:ne)*I],xe=(0,c.c)(Ot(V)).rotate(ge),Me=(0,wt.c)(ge),Fe=xe.center;return delete xe.rotate,xe.center=function(Je){return arguments.length?Fe(Me(Je)):Me.invert(Fe())},xe.clipAngle(90)}function Dp(Ot){var Mt=w(Ot);function Ft(J,le){var ie=(0,Ts.Y)(J,le);return ie[0]*=Mt,ie}return Ft.invert=function(J,le){return Ts.Y.invert(J/Mt,le)},Ft}function rp(){return Lu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Lu(Ot,Mt){return yu(Dp,Ot,Mt)}function us(Ot){if(!(Ot*=2))return de.O;var Mt=-Ot/2,Ft=-Mt,J=Ot*Ot,le=A(Ft),ie=.5/S(Ft);function V(ne,ge){var xe=Q(w(ge)*w(ne-Mt)),Me=Q(w(ge)*w(ne-Ft));return[((xe*=xe)-(Me*=Me))/(2*Ot),(ge<0?-1:1)*j(4*J*Me-(J-xe+Me)*(J-xe+Me))/(2*Ot)]}return V.invert=function(ne,ge){var xe,Me,Fe=ge*ge,Je=w(j(Fe+(xe=ne+Mt)*xe)),rt=w(j(Fe+(xe=ne+Ft)*xe));return[O(Me=Je-rt,xe=(Je+rt)*le),(ge<0?-1:1)*Q(j(xe*xe+Me*Me)*ie)]},V}function Qf(){return fd([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function fd(Ot,Mt){return yu(us,Ot,Mt)}function Hf(Ot,Mt){if(b(Mt)x&&--ne>0);return[_(Ot)*(j(le*le+4)+le)*M/4,T*V]};var Jl=4*M+3*j(3),Bd=2*j(2*M*j(3)/Jl),Qs=$e(Bd*j(3)/M,Bd,Jl/6);function kc(){return(0,c.c)(Qs).scale(176.84)}function Iu(Ot,Mt){return[Ot*j(1-3*Mt*Mt/(M*M)),Mt]}function Ea(){return(0,c.c)(Iu).scale(152.63)}function El(Ot,Mt){var Ft=w(Mt),J=w(Ot)*Ft,le=1-J,ie=w(Ot=O(S(Ot)*Ft,-S(Mt))),V=S(Ot);return[V*(Ft=j(1-J*J))-ie*le,-ie*Ft-V*le]}function _l(){return(0,c.c)(El).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function Mi(Ot,Mt){var Ft=K(Ot,Mt);return[(Ft[0]+Ot/T)/2,(Ft[1]+Mt)/2]}function Sf(){return(0,c.c)(Mi).scale(158.837)}Iu.invert=function(Ot,Mt){return[Ot/j(1-3*Mt*Mt/(M*M)),Mt]},El.invert=function(Ot,Mt){var Ft=(Ot*Ot+Mt*Mt)/-2,J=j(-Ft*(2+Ft)),le=Mt*Ft+Ot*J,ie=Ot*Ft-Mt*J,V=j(ie*ie+le*le);return[O(J*le,V*(1+Ft)),V?-$(J*ie/V):0]},Mi.invert=function(Ot,Mt){var Ft=Ot,J=Mt,le=25;do{var ie,V=w(J),ne=S(J),ge=S(2*J),xe=ne*ne,Me=V*V,Fe=S(Ft),Je=w(Ft/2),rt=S(Ft/2),dt=rt*rt,mt=1-Me*Je*Je,Et=mt?Q(V*Je)*j(ie=1/mt):ie=0,Vt=.5*(2*Et*V*rt+Ft/T)-Ot,jt=.5*(Et*ne+J)-Mt,Nt=.5*ie*(Me*dt+Et*V*Je*xe)+.5/T,cn=ie*(Fe*ge/4-Et*ne*rt),sn=.125*ie*(ge*rt-Et*ne*Me*Fe),xn=.5*ie*(xe*Je+Et*dt*V)+.5,pn=cn*sn-xn*Nt,Ln=(jt*cn-Vt*xn)/pn,On=(Vt*sn-jt*Nt)/pn;Ft-=Ln,J-=On}while((b(Ln)>x||b(On)>x)&&--le>0);return[Ft,J]}},88728:function(d,l,n){function c(){return new b}function b(){this.reset()}n.d(l,{c:function(){return c}}),b.prototype={constructor:b,reset:function(){this.s=this.t=0},add:function(w){O(i,w,this.t),O(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new b;function O(w,y,p){var a=w.s=y+p,u=a-y,h=a-u;w.t=y-h+(p-u)}},95384:function(d,l,n){n.d(l,{cp:function(){return R},mQ:function(){return h},oB:function(){return v}});var c,b,i,O,w,y=n(88728),p=n(64528),a=n(70932),u=n(16016),h=(0,y.c)(),m=(0,y.c)(),v={point:a.c,lineStart:a.c,lineEnd:a.c,polygonStart:function(){h.reset(),v.lineStart=_,v.lineEnd=S},polygonEnd:function(){var M=+h;m.add(M<0?p.kD+M:M),this.lineStart=this.lineEnd=this.point=a.c},sphere:function(){m.add(p.kD)}};function _(){v.point=A}function S(){x(c,b)}function A(M,T){v.point=x,c=M,b=T,M*=p.qw,T*=p.qw,i=M,O=(0,p.W8)(T=T/2+p.wL),w=(0,p.g$)(T)}function x(M,T){M*=p.qw,T=(T*=p.qw)/2+p.wL;var E=M-i,C=E>=0?1:-1,L=C*E,D=(0,p.W8)(T),k=(0,p.g$)(T),I=w*k,z=O*D+I*(0,p.W8)(L),$=I*C*(0,p.g$)(L);h.add((0,p.WE)($,z)),i=M,O=D,w=k}function R(M){return m.reset(),(0,u.c)(M,v),2*m}},13696:function(d,l,n){n.d(l,{c:function(){return Q}});var c,b,i,O,w,y,p,a,u,h,m=n(88728),v=n(95384),_=n(84220),S=n(64528),A=n(16016),x=(0,m.c)(),R={point:M,lineStart:E,lineEnd:C,polygonStart:function(){R.point=L,R.lineStart=D,R.lineEnd=k,x.reset(),v.oB.polygonStart()},polygonEnd:function(){v.oB.polygonEnd(),R.point=M,R.lineStart=E,R.lineEnd=C,v.mQ<0?(c=-(i=180),b=-(O=90)):x>S.Gg?O=90:x<-S.Gg&&(b=-90),h[0]=c,h[1]=i},sphere:function(){c=-(i=180),b=-(O=90)}};function M(j,U){u.push(h=[c=j,i=j]),UO&&(O=U)}function T(j,U){var X=(0,_.ux)([j*S.qw,U*S.qw]);if(a){var te=(0,_.CW)(a,X),W=[te[1],-te[0],0],K=(0,_.CW)(W,te);(0,_.cJ)(K),K=(0,_.G)(K);var oe,q=j-w,Y=q>0?1:-1,ee=K[0]*S.oh*Y,me=(0,S.a2)(q)>180;me^(Y*wO&&(O=oe):me^(Y*w<(ee=(ee+360)%360-180)&&eeO&&(O=U)),me?jI(c,i)&&(i=j):I(j,i)>I(c,i)&&(c=j):i>=c?(ji&&(i=j)):j>w?I(c,j)>I(c,i)&&(i=j):I(j,i)>I(c,i)&&(c=j)}else u.push(h=[c=j,i=j]);UO&&(O=U),a=X,w=j}function E(){R.point=T}function C(){h[0]=c,h[1]=i,R.point=M,a=null}function L(j,U){if(a){var X=j-w;x.add((0,S.a2)(X)>180?X+(X>0?360:-360):X)}else y=j,p=U;v.oB.point(j,U),T(j,U)}function D(){v.oB.lineStart()}function k(){L(y,p),v.oB.lineEnd(),(0,S.a2)(x)>S.Gg&&(c=-(i=180)),h[0]=c,h[1]=i,a=null}function I(j,U){return(U-=j)<0?U+360:U}function z(j,U){return j[0]-U[0]}function $(j,U){return j[0]<=j[1]?j[0]<=U&&U<=j[1]:UI(te[0],te[1])&&(te[1]=W[1]),I(W[0],te[1])>I(te[0],te[1])&&(te[0]=W[0])):K.push(te=W);for(oe=-1/0,U=0,te=K[X=K.length-1];U<=X;te=W,++U)W=K[U],(q=I(te[1],W[0]))>oe&&(oe=q,c=W[0],i=te[1])}return u=h=null,c===1/0||b===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,b],[i,O]]}},84220:function(d,l,n){n.d(l,{CW:function(){return w},Ez:function(){return O},G:function(){return b},cJ:function(){return a},mg:function(){return y},ux:function(){return i},wx:function(){return p}});var c=n(64528);function b(u){return[(0,c.WE)(u[1],u[0]),(0,c.qR)(u[2])]}function i(u){var h=u[0],m=u[1],v=(0,c.W8)(m);return[v*(0,c.W8)(h),v*(0,c.g$)(h),(0,c.g$)(m)]}function O(u,h){return u[0]*h[0]+u[1]*h[1]+u[2]*h[2]}function w(u,h){return[u[1]*h[2]-u[2]*h[1],u[2]*h[0]-u[0]*h[2],u[0]*h[1]-u[1]*h[0]]}function y(u,h){u[0]+=h[0],u[1]+=h[1],u[2]+=h[2]}function p(u,h){return[u[0]*h,u[1]*h,u[2]*h]}function a(u){var h=(0,c._I)(u[0]*u[0]+u[1]*u[1]+u[2]*u[2]);u[0]/=h,u[1]/=h,u[2]/=h}},24052:function(d,l,n){n.d(l,{c:function(){return X}});var c,b,i,O,w,y,p,a,u,h,m,v,_,S,A,x,R=n(64528),M=n(70932),T=n(16016),E={sphere:M.c,point:C,lineStart:D,lineEnd:z,polygonStart:function(){E.lineStart=$,E.lineEnd=Q},polygonEnd:function(){E.lineStart=D,E.lineEnd=z}};function C(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W);L(K*(0,R.W8)(te),K*(0,R.g$)(te),(0,R.g$)(W))}function L(te,W,K){++c,i+=(te-i)/c,O+=(W-O)/c,w+=(K-w)/c}function D(){E.point=k}function k(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W);S=K*(0,R.W8)(te),A=K*(0,R.g$)(te),x=(0,R.g$)(W),E.point=I,L(S,A,x)}function I(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W),oe=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(W),ee=(0,R.WE)((0,R._I)((ee=A*Y-x*q)*ee+(ee=x*oe-S*Y)*ee+(ee=S*q-A*oe)*ee),S*oe+A*q+x*Y);b+=ee,y+=ee*(S+(S=oe)),p+=ee*(A+(A=q)),a+=ee*(x+(x=Y)),L(S,A,x)}function z(){E.point=C}function $(){E.point=j}function Q(){U(v,_),E.point=C}function j(te,W){v=te,_=W,te*=R.qw,W*=R.qw,E.point=U;var K=(0,R.W8)(W);S=K*(0,R.W8)(te),A=K*(0,R.g$)(te),x=(0,R.g$)(W),L(S,A,x)}function U(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W),oe=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(W),ee=A*Y-x*q,me=x*oe-S*Y,he=S*q-A*oe,se=(0,R._I)(ee*ee+me*me+he*he),ae=(0,R.qR)(se),ce=se&&-ae/se;u+=ce*ee,h+=ce*me,m+=ce*he,b+=ae,y+=ae*(S+(S=oe)),p+=ae*(A+(A=q)),a+=ae*(x+(x=Y)),L(S,A,x)}function X(te){c=b=i=O=w=y=p=a=u=h=m=0,(0,T.c)(te,E);var W=u,K=h,oe=m,q=W*W+K*K+oe*oe;return q0?v<_:v>_)&&(v+=m*i.kD));for(var R,M=v;m>0?M>_:M<_;M-=x)R=(0,c.G)([S,-A*(0,i.W8)(M),-A*(0,i.g$)(M)]),a.point(R[0],R[1])}}function y(a,u){(u=(0,c.ux)(u))[0]-=a,(0,c.cJ)(u);var h=(0,i.mE)(-u[1]);return((-u[2]<0?-h:h)+i.kD-i.Gg)%i.kD}function p(){var a,u,h=b([0,0]),m=b(90),v=b(6),_={point:function(A,x){a.push(A=u(A,x)),A[0]*=i.oh,A[1]*=i.oh}};function S(){var A=h.apply(this,arguments),x=m.apply(this,arguments)*i.qw,R=v.apply(this,arguments)*i.qw;return a=[],u=(0,O.O)(-A[0]*i.qw,-A[1]*i.qw,0).invert,w(_,x,R,1),A={type:"Polygon",coordinates:[a]},a=u=null,A}return S.center=function(A){return arguments.length?(h=typeof A=="function"?A:b([+A[0],+A[1]]),S):h},S.radius=function(A){return arguments.length?(m=typeof A=="function"?A:b(+A),S):m},S.precision=function(A){return arguments.length?(v=typeof A=="function"?A:b(+A),S):v},S}},78284:function(d,l,n){var c=n(14229),b=n(64528);l.c=(0,c.c)(function(){return!0},function(i){var O,w=NaN,y=NaN,p=NaN;return{lineStart:function(){i.lineStart(),O=1},point:function(a,u){var h=a>0?b.pi:-b.pi,m=(0,b.a2)(a-w);(0,b.a2)(m-b.pi)0?b.or:-b.or),i.point(p,y),i.lineEnd(),i.lineStart(),i.point(h,y),i.point(a,y),O=0):p!==h&&m>=b.pi&&((0,b.a2)(w-p)b.Gg?(0,b.MQ)(((0,b.g$)(_)*(R=(0,b.W8)(A))*(0,b.g$)(S)-(0,b.g$)(A)*(x=(0,b.W8)(_))*(0,b.g$)(v))/(x*R*M)):(_+A)/2}(w,y,a,u),i.point(p,y),i.lineEnd(),i.lineStart(),i.point(h,y),O=0),i.point(w=a,y=u),p=h},lineEnd:function(){i.lineEnd(),w=y=NaN},clean:function(){return 2-O}}},function(i,O,w,y){var p;if(i==null)p=w*b.or,y.point(-b.pi,p),y.point(0,p),y.point(b.pi,p),y.point(b.pi,0),y.point(b.pi,-p),y.point(0,-p),y.point(-b.pi,-p),y.point(-b.pi,0),y.point(-b.pi,p);else if((0,b.a2)(i[0]-O[0])>b.Gg){var a=i[0]1&&O.push(O.pop().concat(O.shift()))},result:function(){var w=O;return O=[],i=null,w}}}},2728:function(d,l,n){n.d(l,{c:function(){return y}});var c=n(84220),b=n(61780),i=n(64528),O=n(41860),w=n(14229);function y(p){var a=(0,i.W8)(p),u=6*i.qw,h=a>0,m=(0,i.a2)(a)>i.Gg;function v(A,x){return(0,i.W8)(A)*(0,i.W8)(x)>a}function _(A,x,R){var M=(0,c.ux)(A),T=(0,c.ux)(x),E=[1,0,0],C=(0,c.CW)(M,T),L=(0,c.Ez)(C,C),D=C[0],k=L-D*D;if(!k)return!R&&A;var I=a*L/k,z=-a*D/k,$=(0,c.CW)(E,C),Q=(0,c.wx)(E,I),j=(0,c.wx)(C,z);(0,c.mg)(Q,j);var U=$,X=(0,c.Ez)(Q,U),te=(0,c.Ez)(U,U),W=X*X-te*((0,c.Ez)(Q,Q)-1);if(!(W<0)){var K=(0,i._I)(W),oe=(0,c.wx)(U,(-X-K)/te);if((0,c.mg)(oe,Q),oe=(0,c.G)(oe),!R)return oe;var q,Y=A[0],ee=x[0],me=A[1],he=x[1];ee0^oe[1]<((0,i.a2)(oe[0]-Y)i.pi^(Y<=oe[0]&&oe[0]<=ee)){var ce=(0,c.wx)(U,(-X+K)/te);return(0,c.mg)(ce,Q),[oe,(0,c.G)(ce)]}}}function S(A,x){var R=h?p:i.pi-p,M=0;return A<-R?M|=1:A>R&&(M|=2),x<-R?M|=4:x>R&&(M|=8),M}return(0,w.c)(v,function(A){var x,R,M,T,E;return{lineStart:function(){T=M=!1,E=1},point:function(C,L){var D,k=[C,L],I=v(C,L),z=h?I?0:S(C,L):I?S(C+(C<0?i.pi:-i.pi),L):0;if(!x&&(T=M=I)&&A.lineStart(),I!==M&&(!(D=_(x,k))||(0,O.c)(x,D)||(0,O.c)(k,D))&&(k[2]=1),I!==M)E=0,I?(A.lineStart(),D=_(k,x),A.point(D[0],D[1])):(D=_(x,k),A.point(D[0],D[1],2),A.lineEnd()),x=D;else if(m&&x&&h^I){var $;z&R||!($=_(k,x,!0))||(E=0,h?(A.lineStart(),A.point($[0][0],$[0][1]),A.point($[1][0],$[1][1]),A.lineEnd()):(A.point($[1][0],$[1][1]),A.lineEnd(),A.lineStart(),A.point($[0][0],$[0][1],3)))}!I||x&&(0,O.c)(x,k)||A.point(k[0],k[1]),x=k,M=I,R=z},lineEnd:function(){M&&A.lineEnd(),x=null},clean:function(){return E|(T&&M)<<1}}},function(A,x,R,M){(0,b.Q)(M,p,u,R,A,x)},h?[0,-p]:[-i.pi,p-i.pi])}},14229:function(d,l,n){n.d(l,{c:function(){return y}});var c=n(97208),b=n(32232),i=n(64528),O=n(58196),w=n(84706);function y(u,h,m,v){return function(_){var S,A,x,R=h(_),M=(0,c.c)(),T=h(M),E=!1,C={point:L,lineStart:k,lineEnd:I,polygonStart:function(){C.point=z,C.lineStart=$,C.lineEnd=Q,A=[],S=[]},polygonEnd:function(){C.point=L,C.lineStart=k,C.lineEnd=I,A=(0,w.Uf)(A);var j=(0,O.c)(S,v);A.length?(E||(_.polygonStart(),E=!0),(0,b.c)(A,a,j,m,_)):j&&(E||(_.polygonStart(),E=!0),_.lineStart(),m(null,null,1,_),_.lineEnd()),E&&(_.polygonEnd(),E=!1),A=S=null},sphere:function(){_.polygonStart(),_.lineStart(),m(null,null,1,_),_.lineEnd(),_.polygonEnd()}};function L(j,U){u(j,U)&&_.point(j,U)}function D(j,U){R.point(j,U)}function k(){C.point=D,R.lineStart()}function I(){C.point=L,R.lineEnd()}function z(j,U){x.push([j,U]),T.point(j,U)}function $(){T.lineStart(),x=[]}function Q(){z(x[0][0],x[0][1]),T.lineEnd();var j,U,X,te,W=T.clean(),K=M.result(),oe=K.length;if(x.pop(),S.push(x),x=null,oe)if(1&W){if((U=(X=K[0]).length-1)>0){for(E||(_.polygonStart(),E=!0),_.lineStart(),j=0;j1&&2&W&&K.push(K.pop().concat(K.shift())),A.push(K.filter(p))}return C}}function p(u){return u.length>1}function a(u,h){return((u=u.x)[0]<0?u[1]-i.or-i.Gg:i.or-u[1])-((h=h.x)[0]<0?h[1]-i.or-i.Gg:i.or-h[1])}},21676:function(d,l,n){n.d(l,{c:function(){return p}});var c=n(64528),b=n(97208),i=n(32232),O=n(84706),w=1e9,y=-w;function p(a,u,h,m){function v(R,M){return a<=R&&R<=h&&u<=M&&M<=m}function _(R,M,T,E){var C=0,L=0;if(R==null||(C=S(R,T))!==(L=S(M,T))||x(R,M)<0^T>0)do E.point(C===0||C===3?a:h,C>1?m:u);while((C=(C+T+4)%4)!==L);else E.point(M[0],M[1])}function S(R,M){return(0,c.a2)(R[0]-a)0?0:3:(0,c.a2)(R[0]-h)0?2:1:(0,c.a2)(R[1]-u)0?1:0:M>0?3:2}function A(R,M){return x(R.x,M.x)}function x(R,M){var T=S(R,1),E=S(M,1);return T!==E?T-E:T===0?M[1]-R[1]:T===1?R[0]-M[0]:T===2?R[1]-M[1]:M[0]-R[0]}return function(R){var M,T,E,C,L,D,k,I,z,$,Q,j=R,U=(0,b.c)(),X={point:te,lineStart:function(){X.point=W,T&&T.push(E=[]),$=!0,z=!1,k=I=NaN},lineEnd:function(){M&&(W(C,L),D&&z&&U.rejoin(),M.push(U.result())),X.point=te,z&&j.lineEnd()},polygonStart:function(){j=U,M=[],T=[],Q=!0},polygonEnd:function(){var K=function(){for(var Y=0,ee=0,me=T.length;eem&&(ye-he)*(m-se)>(_e-se)*(a-he)&&++Y:_e<=m&&(ye-he)*(m-se)<(_e-se)*(a-he)&&--Y;return Y}(),oe=Q&&K,q=(M=(0,O.Uf)(M)).length;(oe||q)&&(R.polygonStart(),oe&&(R.lineStart(),_(null,null,1,R),R.lineEnd()),q&&(0,i.c)(M,A,K,_,R),R.polygonEnd()),j=R,M=T=E=null}};function te(K,oe){v(K,oe)&&j.point(K,oe)}function W(K,oe){var q=v(K,oe);if(T&&E.push([K,oe]),$)C=K,L=oe,D=q,$=!1,q&&(j.lineStart(),j.point(K,oe));else if(q&&z)j.point(K,oe);else{var Y=[k=Math.max(y,Math.min(w,k)),I=Math.max(y,Math.min(w,I))],ee=[K=Math.max(y,Math.min(w,K)),oe=Math.max(y,Math.min(w,oe))];(function(me,he,se,ae,ce,de){var ve,ye=me[0],_e=me[1],Se=0,Te=1,Pe=he[0]-ye,Ie=he[1]-_e;if(ve=se-ye,Pe||!(ve>0)){if(ve/=Pe,Pe<0){if(ve0){if(ve>Te)return;ve>Se&&(Se=ve)}if(ve=ce-ye,Pe||!(ve<0)){if(ve/=Pe,Pe<0){if(ve>Te)return;ve>Se&&(Se=ve)}else if(Pe>0){if(ve0)){if(ve/=Ie,Ie<0){if(ve0){if(ve>Te)return;ve>Se&&(Se=ve)}if(ve=de-_e,Ie||!(ve<0)){if(ve/=Ie,Ie<0){if(ve>Te)return;ve>Se&&(Se=ve)}else if(Ie>0){if(ve0&&(me[0]=ye+Se*Pe,me[1]=_e+Se*Ie),Te<1&&(he[0]=ye+Te*Pe,he[1]=_e+Te*Ie),!0}}}}})(Y,ee,a,u,h,m)?(z||(j.lineStart(),j.point(Y[0],Y[1])),j.point(ee[0],ee[1]),q||j.lineEnd(),Q=!1):q&&(j.lineStart(),j.point(K,oe),Q=!1)}k=K,I=oe,z=q}return X}}},32232:function(d,l,n){n.d(l,{c:function(){return O}});var c=n(41860),b=n(64528);function i(y,p,a,u){this.x=y,this.z=p,this.o=a,this.e=u,this.v=!1,this.n=this.p=null}function O(y,p,a,u,h){var m,v,_=[],S=[];if(y.forEach(function(E){if(!((C=E.length-1)<=0)){var C,L,D=E[0],k=E[C];if((0,c.c)(D,k)){if(!D[2]&&!k[2]){for(h.lineStart(),m=0;m=0;--m)h.point((x=A[m])[0],x[1]);else u(M.x,M.p.x,-1,h);M=M.p}A=(M=M.o).z,T=!T}while(!M.v);h.lineEnd()}}}function w(y){if(p=y.length){for(var p,a,u=0,h=y[0];++u0&&(Cr=I(Pn[io],Pn[io-1]))>0&&br<=Cr&&dr<=Cr&&(br+dr-Cr)*(1-Math.pow((br-dr)/Cr,2))S.Gg}).map(bo)).concat((0,oe.ik)((0,S.Km)(io/Zn)*Zn,Cr,Zn).filter(function(Hn){return(0,S.a2)(Hn%gr)>S.Gg}).map(Bn))}return nr.lines=function(){return Qn().map(function(Hn){return{type:"LineString",coordinates:Hn}})},nr.outline=function(){return{type:"Polygon",coordinates:[hr(dr).concat(hn(Qr).slice(1),hr(br).reverse().slice(1),hn(Wr).reverse().slice(1))]}},nr.extent=function(Hn){return arguments.length?nr.extentMajor(Hn).extentMinor(Hn):nr.extentMinor()},nr.extentMajor=function(Hn){return arguments.length?(dr=+Hn[0][0],br=+Hn[1][0],Wr=+Hn[0][1],Qr=+Hn[1][1],dr>br&&(Hn=dr,dr=br,br=Hn),Wr>Qr&&(Hn=Wr,Wr=Qr,Qr=Hn),nr.precision(vr)):[[dr,Wr],[br,Qr]]},nr.extentMinor=function(Hn){return arguments.length?(Yn=+Hn[0][0],Pn=+Hn[1][0],io=+Hn[0][1],Cr=+Hn[1][1],Yn>Pn&&(Hn=Yn,Yn=Pn,Pn=Hn),io>Cr&&(Hn=io,io=Cr,Cr=Hn),nr.precision(vr)):[[Yn,io],[Pn,Cr]]},nr.step=function(Hn){return arguments.length?nr.stepMajor(Hn).stepMinor(Hn):nr.stepMinor()},nr.stepMajor=function(Hn){return arguments.length?(yr=+Hn[0],gr=+Hn[1],nr):[yr,gr]},nr.stepMinor=function(Hn){return arguments.length?(zn=+Hn[0],Zn=+Hn[1],nr):[zn,Zn]},nr.precision=function(Hn){return arguments.length?(vr=+Hn,bo=q(io,Cr,90),Bn=Y(Yn,Pn,vr),hr=q(Wr,Qr,90),hn=Y(dr,br,vr),nr):vr},nr.extentMajor([[-180,-90+S.Gg],[180,90-S.Gg]]).extentMinor([[-180,-80-S.Gg],[180,80+S.Gg]])}function me(){return ee()()}var he,se,ae,ce,de=n(27284),ve=n(7376),ye=(0,_.c)(),_e=(0,_.c)(),Se={point:A.c,lineStart:A.c,lineEnd:A.c,polygonStart:function(){Se.lineStart=Te,Se.lineEnd=ze},polygonEnd:function(){Se.lineStart=Se.lineEnd=Se.point=A.c,ye.add((0,S.a2)(_e)),_e.reset()},result:function(){var Pn=ye/2;return ye.reset(),Pn}};function Te(){Se.point=Pe}function Pe(Pn,Yn){Se.point=Ie,he=ae=Pn,se=ce=Yn}function Ie(Pn,Yn){_e.add(ce*Pn-ae*Yn),ae=Pn,ce=Yn}function ze(){Ie(he,se)}var De,He,Ve,$e,Oe=Se,ke=n(73784),Le=0,We=0,Ue=0,Ze=0,Xe=0,tt=0,Ee=0,Ne=0,je=0,nt={point:ot,lineStart:Ge,lineEnd:wt,polygonStart:function(){nt.lineStart=Dt,nt.lineEnd=It},polygonEnd:function(){nt.point=ot,nt.lineStart=Ge,nt.lineEnd=wt},result:function(){var Pn=je?[Ee/je,Ne/je]:tt?[Ze/tt,Xe/tt]:Ue?[Le/Ue,We/Ue]:[NaN,NaN];return Le=We=Ue=Ze=Xe=tt=Ee=Ne=je=0,Pn}};function ot(Pn,Yn){Le+=Pn,We+=Yn,++Ue}function Ge(){nt.point=ht}function ht(Pn,Yn){nt.point=pt,ot(Ve=Pn,$e=Yn)}function pt(Pn,Yn){var br=Pn-Ve,dr=Yn-$e,Cr=(0,S._I)(br*br+dr*dr);Ze+=Cr*(Ve+Pn)/2,Xe+=Cr*($e+Yn)/2,tt+=Cr,ot(Ve=Pn,$e=Yn)}function wt(){nt.point=ot}function Dt(){nt.point=qt}function It(){en(De,He)}function qt(Pn,Yn){nt.point=en,ot(De=Ve=Pn,He=$e=Yn)}function en(Pn,Yn){var br=Pn-Ve,dr=Yn-$e,Cr=(0,S._I)(br*br+dr*dr);Ze+=Cr*(Ve+Pn)/2,Xe+=Cr*($e+Yn)/2,tt+=Cr,Ee+=(Cr=$e*Pn-Ve*Yn)*(Ve+Pn),Ne+=Cr*($e+Yn),je+=3*Cr,ot(Ve=Pn,$e=Yn)}var Gt=nt;function Ct(Pn){this._context=Pn}Ct.prototype={_radius:4.5,pointRadius:function(Pn){return this._radius=Pn,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Pn,Yn){switch(this._point){case 0:this._context.moveTo(Pn,Yn),this._point=1;break;case 1:this._context.lineTo(Pn,Yn);break;default:this._context.moveTo(Pn+this._radius,Yn),this._context.arc(Pn,Yn,this._radius,0,S.kD)}},result:A.c};var _t,nn,gn,bn,mn,vt=(0,_.c)(),bt={point:A.c,lineStart:function(){bt.point=lt},lineEnd:function(){_t&&yt(nn,gn),bt.point=A.c},polygonStart:function(){_t=!0},polygonEnd:function(){_t=null},result:function(){var Pn=+vt;return vt.reset(),Pn}};function lt(Pn,Yn){bt.point=yt,nn=bn=Pn,gn=mn=Yn}function yt(Pn,Yn){bn-=Pn,mn-=Yn,vt.add((0,S._I)(bn*bn+mn*mn)),bn=Pn,mn=Yn}var zt=bt;function Rt(){this._string=[]}function it(Pn){return"m0,"+Pn+"a"+Pn+","+Pn+" 0 1,1 0,"+-2*Pn+"a"+Pn+","+Pn+" 0 1,1 0,"+2*Pn+"z"}function at(Pn,Yn){var br,dr,Cr=4.5;function io(Qr){return Qr&&(typeof Cr=="function"&&dr.pointRadius(+Cr.apply(this,arguments)),(0,x.c)(Qr,br(dr))),dr.result()}return io.area=function(Qr){return(0,x.c)(Qr,br(Oe)),Oe.result()},io.measure=function(Qr){return(0,x.c)(Qr,br(zt)),zt.result()},io.bounds=function(Qr){return(0,x.c)(Qr,br(ke.c)),ke.c.result()},io.centroid=function(Qr){return(0,x.c)(Qr,br(Gt)),Gt.result()},io.projection=function(Qr){return arguments.length?(br=Qr==null?(Pn=null,ve.c):(Pn=Qr).stream,io):Pn},io.context=function(Qr){return arguments.length?(dr=Qr==null?(Yn=null,new Rt):new Ct(Yn=Qr),typeof Cr!="function"&&dr.pointRadius(Cr),io):Yn},io.pointRadius=function(Qr){return arguments.length?(Cr=typeof Qr=="function"?Qr:(dr.pointRadius(+Qr),+Qr),io):Cr},io.projection(Pn).context(Yn)}Rt.prototype={_radius:4.5,_circle:it(4.5),pointRadius:function(Pn){return(Pn=+Pn)!==this._radius&&(this._radius=Pn,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Pn,Yn){switch(this._point){case 0:this._string.push("M",Pn,",",Yn),this._point=1;break;case 1:this._string.push("L",Pn,",",Yn);break;default:this._circle==null&&(this._circle=it(this._radius)),this._string.push("M",Pn,",",Yn,this._circle)}},result:function(){if(this._string.length){var Pn=this._string.join("");return this._string=[],Pn}return null}};var Lt=n(87952);function xt(Pn){var Yn=0,br=S.pi/3,dr=(0,Lt.U)(Pn),Cr=dr(Yn,br);return Cr.parallels=function(io){return arguments.length?dr(Yn=io[0]*S.qw,br=io[1]*S.qw):[Yn*S.oh,br*S.oh]},Cr}function Ht(Pn,Yn){var br=(0,S.g$)(Pn),dr=(br+(0,S.g$)(Yn))/2;if((0,S.a2)(dr)=.12&&vr<.234&&gr>=-.425&&gr<-.214?Wr:vr>=.166&&vr<.234&&gr>=-.214&&gr<-.115?bo:Qr).invert(zn)},hr.stream=function(zn){return Pn&&Yn===zn?Pn:(Zn=[Qr.stream(Yn=zn),Wr.stream(zn),bo.stream(zn)],yr=Zn.length,Pn={point:function(gr,vr){for(var nr=-1;++nr0?Wr<-S.or+S.Gg&&(Wr=-S.or+S.Gg):Wr>S.or-S.Gg&&(Wr=S.or-S.Gg);var bo=Cr/(0,S.g3)(er(Wr),dr);return[bo*(0,S.g$)(dr*Qr),Cr-bo*(0,S.W8)(dr*Qr)]}return io.invert=function(Qr,Wr){var bo=Cr-Wr,Bn=(0,S.kq)(dr)*(0,S._I)(Qr*Qr+bo*bo),hr=(0,S.WE)(Qr,(0,S.a2)(bo))*(0,S.kq)(bo);return bo*dr<0&&(hr-=S.pi*(0,S.kq)(Qr)*(0,S.kq)(bo)),[hr/dr,2*(0,S.MQ)((0,S.g3)(Cr/Bn,1/dr))-S.or]},io}function In(){return xt(En).scale(109.5).parallels([30,30])}dn.invert=function(Pn,Yn){return[Pn,2*(0,S.MQ)((0,S.oN)(Yn))-S.or]};var Un=n(69604);function xr(Pn,Yn){var br=(0,S.W8)(Pn),dr=Pn===Yn?(0,S.g$)(Pn):(br-(0,S.W8)(Yn))/(Yn-Pn),Cr=br/dr+Pn;if((0,S.a2)(dr)2?dr[2]+90:90]):[(dr=br())[0],dr[1],dr[2]-90]},br([0,0,90]).scale(159.155)}so.invert=(0,Co.g)(function(Pn){return 2*(0,S.MQ)(Pn)}),go.invert=function(Pn,Yn){return[-Yn,2*(0,S.MQ)((0,S.oN)(Pn))-S.or]}},27284:function(d,l,n){n.d(l,{c:function(){return b}});var c=n(64528);function b(i,O){var w=i[0]*c.qw,y=i[1]*c.qw,p=O[0]*c.qw,a=O[1]*c.qw,u=(0,c.W8)(y),h=(0,c.g$)(y),m=(0,c.W8)(a),v=(0,c.g$)(a),_=u*(0,c.W8)(w),S=u*(0,c.g$)(w),A=m*(0,c.W8)(p),x=m*(0,c.g$)(p),R=2*(0,c.qR)((0,c._I)((0,c.SD)(a-y)+u*m*(0,c.SD)(p-w))),M=(0,c.g$)(R),T=R?function(E){var C=(0,c.g$)(E*=R)/M,L=(0,c.g$)(R-E)/M,D=L*_+C*A,k=L*S+C*x,I=L*h+C*v;return[(0,c.WE)(k,D)*c.oh,(0,c.WE)(I,(0,c._I)(D*D+k*k))*c.oh]}:function(){return[w*c.oh,y*c.oh]};return T.distance=R,T}},64528:function(d,l,n){n.d(l,{Gg:function(){return c},Km:function(){return _},MQ:function(){return h},SD:function(){return D},W8:function(){return v},WE:function(){return m},Yz:function(){return A},_I:function(){return T},a2:function(){return u},a6:function(){return E},a8:function(){return b},g$:function(){return R},g3:function(){return x},kD:function(){return y},kq:function(){return M},mE:function(){return C},oN:function(){return S},oh:function(){return p},or:function(){return O},pi:function(){return i},qR:function(){return L},qw:function(){return a},wL:function(){return w}});var c=1e-6,b=1e-12,i=Math.PI,O=i/2,w=i/4,y=2*i,p=180/i,a=i/180,u=Math.abs,h=Math.atan,m=Math.atan2,v=Math.cos,_=Math.ceil,S=Math.exp,A=Math.log,x=Math.pow,R=Math.sin,M=Math.sign||function(k){return k>0?1:k<0?-1:0},T=Math.sqrt,E=Math.tan;function C(k){return k>1?0:k<-1?i:Math.acos(k)}function L(k){return k>1?O:k<-1?-O:Math.asin(k)}function D(k){return(k=R(k/2))*k}},70932:function(d,l,n){function c(){}n.d(l,{c:function(){return c}})},73784:function(d,l,n){var c=n(70932),b=1/0,i=b,O=-b,w=O,y={point:function(p,a){pO&&(O=p),aw&&(w=a)},lineStart:c.c,lineEnd:c.c,polygonStart:c.c,polygonEnd:c.c,result:function(){var p=[[b,i],[O,w]];return O=w=-(i=b=1/0),p}};l.c=y},41860:function(d,l,n){n.d(l,{c:function(){return b}});var c=n(64528);function b(i,O){return(0,c.a2)(i[0]-O[0])=0?1:-1,te=X*U,W=te>i.pi,K=L*Q;if(O.add((0,i.WE)(K*X*(0,i.g$)(te),D*j+K*(0,i.W8)(te))),_+=W?U+X*i.kD:U,W^E>=u^z>=u){var oe=(0,b.CW)((0,b.ux)(T),(0,b.ux)(I));(0,b.cJ)(oe);var q=(0,b.CW)(v,oe);(0,b.cJ)(q);var Y=(W^U>=0?-1:1)*(0,i.qR)(q[2]);(h>Y||h===Y&&(oe[0]||oe[1]))&&(S+=W^U>=0?1:-1)}}return(_<-i.Gg||_4*L&&q--){var se=$+W,ae=Q+K,ce=j+oe,de=(0,y._I)(se*se+ae*ae+ce*ce),ve=(0,y.qR)(ce/=de),ye=(0,y.a2)((0,y.a2)(ce)-1)L||(0,y.a2)((ee*Pe+me*Ie)/he-.5)>.3||$*W+Q*K+j*oe2?Pe[2]%360*y.qw:0,Se()):[oe*y.oh,q*y.oh,Y*y.oh]},ye.angle=function(Pe){return arguments.length?(ee=Pe%360*y.qw,Se()):ee*y.oh},ye.reflectX=function(Pe){return arguments.length?(me=Pe?-1:1,Se()):me<0},ye.reflectY=function(Pe){return arguments.length?(he=Pe?-1:1,Se()):he<0},ye.precision=function(Pe){return arguments.length?(I=_(z,ve=Pe*Pe),Te()):(0,y._I)(ve)},ye.fitExtent=function(Pe,Ie){return(0,u.QX)(ye,Pe,Ie)},ye.fitSize=function(Pe,Ie){return(0,u.UV)(ye,Pe,Ie)},ye.fitWidth=function(Pe,Ie){return(0,u.Qx)(ye,Pe,Ie)},ye.fitHeight=function(Pe,Ie){return(0,u.OW)(ye,Pe,Ie)},function(){return E=T.apply(this,arguments),ye.invert=E.invert&&_e,Se()}}},47984:function(d,l,n){n.d(l,{c:function(){return O},g:function(){return i}});var c=n(87952),b=n(64528);function i(w,y){var p=y*y,a=p*p;return[w*(.8707-.131979*p+a*(a*(.003971*p-.001529*a)-.013791)),y*(1.007226+p*(.015085+a*(.028874*p-.044475-.005916*a)))]}function O(){return(0,c.c)(i).scale(175.295)}i.invert=function(w,y){var p,a=y,u=25;do{var h=a*a,m=h*h;a-=p=(a*(1.007226+h*(.015085+m*(.028874*h-.044475-.005916*m)))-y)/(1.007226+h*(.045255+m*(.259866*h-.311325-.06507600000000001*m)))}while((0,b.a2)(p)>b.Gg&&--u>0);return[w/(.8707+(h=a*a)*(h*(h*h*h*(.003971-.001529*h)-.013791)-.131979)),a]}},4888:function(d,l,n){n.d(l,{c:function(){return w},t:function(){return O}});var c=n(64528),b=n(62280),i=n(87952);function O(y,p){return[(0,c.W8)(p)*(0,c.g$)(y),(0,c.g$)(p)]}function w(){return(0,i.c)(O).scale(249.5).clipAngle(90+c.Gg)}O.invert=(0,b.g)(c.qR)},92992:function(d,l,n){n.d(l,{O:function(){return O},c:function(){return a}});var c=n(68120),b=n(64528);function i(u,h){return[(0,b.a2)(u)>b.pi?u+Math.round(-u/b.kD)*b.kD:u,h]}function O(u,h,m){return(u%=b.kD)?h||m?(0,c.c)(y(u),p(h,m)):y(u):h||m?p(h,m):i}function w(u){return function(h,m){return[(h+=u)>b.pi?h-b.kD:h<-b.pi?h+b.kD:h,m]}}function y(u){var h=w(u);return h.invert=w(-u),h}function p(u,h){var m=(0,b.W8)(u),v=(0,b.g$)(u),_=(0,b.W8)(h),S=(0,b.g$)(h);function A(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,E=(0,b.g$)(x)*M,C=(0,b.g$)(R),L=C*m+T*v;return[(0,b.WE)(E*_-L*S,T*m-C*v),(0,b.qR)(L*_+E*S)]}return A.invert=function(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,E=(0,b.g$)(x)*M,C=(0,b.g$)(R),L=C*_-E*S;return[(0,b.WE)(E*_+C*S,T*m+L*v),(0,b.qR)(L*m-T*v)]},A}function a(u){function h(m){return(m=u(m[0]*b.qw,m[1]*b.qw))[0]*=b.oh,m[1]*=b.oh,m}return u=O(u[0]*b.qw,u[1]*b.qw,u.length>2?u[2]*b.qw:0),h.invert=function(m){return(m=u.invert(m[0]*b.qw,m[1]*b.qw))[0]*=b.oh,m[1]*=b.oh,m},h}i.invert=i},16016:function(d,l,n){function c(p,a){p&&i.hasOwnProperty(p.type)&&i[p.type](p,a)}n.d(l,{c:function(){return y}});var b={Feature:function(p,a){c(p.geometry,a)},FeatureCollection:function(p,a){for(var u=p.features,h=-1,m=u.length;++h=0;)Le+=We[Ue].value;else Le=1;ke.value=Le}function y(ke,Le){var We,Ue,Ze,Xe,tt,Ee=new h(ke),Ne=+ke.value&&(Ee.value=ke.value),je=[Ee];for(Le==null&&(Le=p);We=je.pop();)if(Ne&&(We.value=+We.data.value),(Ze=Le(We.data))&&(tt=Ze.length))for(We.children=new Array(tt),Xe=tt-1;Xe>=0;--Xe)je.push(Ue=We.children[Xe]=new h(Ze[Xe])),Ue.parent=We,Ue.depth=We.depth+1;return Ee.eachBefore(u)}function p(ke){return ke.children}function a(ke){ke.data=ke.data.data}function u(ke){var Le=0;do ke.height=Le;while((ke=ke.parent)&&ke.height<++Le)}function h(ke){this.data=ke,this.depth=this.height=0,this.parent=null}n.r(l),n.d(l,{cluster:function(){return O},hierarchy:function(){return y},pack:function(){return U},packEnclose:function(){return v},packSiblings:function(){return I},partition:function(){return q},stratify:function(){return ae},tree:function(){return Te},treemap:function(){return He},treemapBinary:function(){return Ve},treemapDice:function(){return oe},treemapResquarify:function(){return Oe},treemapSlice:function(){return Pe},treemapSliceDice:function(){return $e},treemapSquarify:function(){return De}}),h.prototype=y.prototype={constructor:h,count:function(){return this.eachAfter(w)},each:function(ke){var Le,We,Ue,Ze,Xe=this,tt=[Xe];do for(Le=tt.reverse(),tt=[];Xe=Le.pop();)if(ke(Xe),We=Xe.children)for(Ue=0,Ze=We.length;Ue=0;--We)Ze.push(Le[We]);return this},sum:function(ke){return this.eachAfter(function(Le){for(var We=+ke(Le.data)||0,Ue=Le.children,Ze=Ue&&Ue.length;--Ze>=0;)We+=Ue[Ze].value;Le.value=We})},sort:function(ke){return this.eachBefore(function(Le){Le.children&&Le.children.sort(ke)})},path:function(ke){for(var Le=this,We=function(Xe,tt){if(Xe===tt)return Xe;var Ee=Xe.ancestors(),Ne=tt.ancestors(),je=null;for(Xe=Ee.pop(),tt=Ne.pop();Xe===tt;)je=Xe,Xe=Ee.pop(),tt=Ne.pop();return je}(Le,ke),Ue=[Le];Le!==We;)Le=Le.parent,Ue.push(Le);for(var Ze=Ue.length;ke!==We;)Ue.splice(Ze,0,ke),ke=ke.parent;return Ue},ancestors:function(){for(var ke=this,Le=[ke];ke=ke.parent;)Le.push(ke);return Le},descendants:function(){var ke=[];return this.each(function(Le){ke.push(Le)}),ke},leaves:function(){var ke=[];return this.eachBefore(function(Le){Le.children||ke.push(Le)}),ke},links:function(){var ke=this,Le=[];return ke.each(function(We){We!==ke&&Le.push({source:We.parent,target:We})}),Le},copy:function(){return y(this).eachBefore(a)}};var m=Array.prototype.slice;function v(ke){for(var Le,We,Ue=0,Ze=(ke=function(tt){for(var Ee,Ne,je=tt.length;je;)Ne=Math.random()*je--|0,Ee=tt[je],tt[je]=tt[Ne],tt[Ne]=Ee;return tt}(m.call(ke))).length,Xe=[];Ue0&&We*We>Ue*Ue+Ze*Ze}function x(ke,Le){for(var We=0;We(tt*=tt)?(Ue=(je+tt-Ze)/(2*je),Xe=Math.sqrt(Math.max(0,tt/je-Ue*Ue)),We.x=ke.x-Ue*Ee-Xe*Ne,We.y=ke.y-Ue*Ne+Xe*Ee):(Ue=(je+Ze-tt)/(2*je),Xe=Math.sqrt(Math.max(0,Ze/je-Ue*Ue)),We.x=Le.x+Ue*Ee-Xe*Ne,We.y=Le.y+Ue*Ne+Xe*Ee)):(We.x=Le.x+We.r,We.y=Le.y)}function C(ke,Le){var We=ke.r+Le.r-1e-6,Ue=Le.x-ke.x,Ze=Le.y-ke.y;return We>0&&We*We>Ue*Ue+Ze*Ze}function L(ke){var Le=ke._,We=ke.next._,Ue=Le.r+We.r,Ze=(Le.x*We.r+We.x*Le.r)/Ue,Xe=(Le.y*We.r+We.y*Le.r)/Ue;return Ze*Ze+Xe*Xe}function D(ke){this._=ke,this.next=null,this.previous=null}function k(ke){if(!(Ze=ke.length))return 0;var Le,We,Ue,Ze,Xe,tt,Ee,Ne,je,nt,ot;if((Le=ke[0]).x=0,Le.y=0,!(Ze>1))return Le.r;if(We=ke[1],Le.x=-We.r,We.x=Le.r,We.y=0,!(Ze>2))return Le.r+We.r;E(We,Le,Ue=ke[2]),Le=new D(Le),We=new D(We),Ue=new D(Ue),Le.next=Ue.previous=We,We.next=Le.previous=Ue,Ue.next=We.previous=Le;e:for(Ee=3;Ee0)throw new Error("cycle");return tt}return We.id=function(Ue){return arguments.length?(ke=z(Ue),We):ke},We.parentId=function(Ue){return arguments.length?(Le=z(Ue),We):Le},We}function ce(ke,Le){return ke.parent===Le.parent?1:2}function de(ke){var Le=ke.children;return Le?Le[0]:ke.t}function ve(ke){var Le=ke.children;return Le?Le[Le.length-1]:ke.t}function ye(ke,Le,We){var Ue=We/(Le.i-ke.i);Le.c-=Ue,Le.s+=We,ke.c+=Ue,Le.z+=We,Le.m+=We}function _e(ke,Le,We){return ke.a.parent===Le.parent?ke.a:We}function Se(ke,Le){this._=ke,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Le}function Te(){var ke=ce,Le=1,We=1,Ue=null;function Ze(Ne){var je=function(It){for(var qt,en,Gt,Ct,_t,nn=new Se(It,0),gn=[nn];qt=gn.pop();)if(Gt=qt._.children)for(qt.children=new Array(_t=Gt.length),Ct=_t-1;Ct>=0;--Ct)gn.push(en=qt.children[Ct]=new Se(Gt[Ct],Ct)),en.parent=qt;return(nn.parent=new Se(null,0)).children=[nn],nn}(Ne);if(je.eachAfter(Xe),je.parent.m=-je.z,je.eachBefore(tt),Ue)Ne.eachBefore(Ee);else{var nt=Ne,ot=Ne,Ge=Ne;Ne.eachBefore(function(It){It.xot.x&&(ot=It),It.depth>Ge.depth&&(Ge=It)});var ht=nt===ot?1:ke(nt,ot)/2,pt=ht-nt.x,wt=Le/(ot.x+ht+pt),Dt=We/(Ge.depth||1);Ne.eachBefore(function(It){It.x=(It.x+pt)*wt,It.y=It.depth*Dt})}return Ne}function Xe(Ne){var je=Ne.children,nt=Ne.parent.children,ot=Ne.i?nt[Ne.i-1]:null;if(je){(function(ht){for(var pt,wt=0,Dt=0,It=ht.children,qt=It.length;--qt>=0;)(pt=It[qt]).z+=wt,pt.m+=wt,wt+=pt.s+(Dt+=pt.c)})(Ne);var Ge=(je[0].z+je[je.length-1].z)/2;ot?(Ne.z=ot.z+ke(Ne._,ot._),Ne.m=Ne.z-Ge):Ne.z=Ge}else ot&&(Ne.z=ot.z+ke(Ne._,ot._));Ne.parent.A=function(ht,pt,wt){if(pt){for(var Dt,It=ht,qt=ht,en=pt,Gt=It.parent.children[0],Ct=It.m,_t=qt.m,nn=en.m,gn=Gt.m;en=ve(en),It=de(It),en&&It;)Gt=de(Gt),(qt=ve(qt)).a=ht,(Dt=en.z+nn-It.z-Ct+ke(en._,It._))>0&&(ye(_e(en,ht,wt),ht,Dt),Ct+=Dt,_t+=Dt),nn+=en.m,Ct+=It.m,gn+=Gt.m,_t+=qt.m;en&&!ve(qt)&&(qt.t=en,qt.m+=nn-_t),It&&!de(Gt)&&(Gt.t=It,Gt.m+=Ct-gn,wt=ht)}return wt}(Ne,ot,Ne.parent.A||nt[0])}function tt(Ne){Ne._.x=Ne.z+Ne.parent.m,Ne.m+=Ne.parent.m}function Ee(Ne){Ne.x*=Le,Ne.y=Ne.depth*We}return Ze.separation=function(Ne){return arguments.length?(ke=Ne,Ze):ke},Ze.size=function(Ne){return arguments.length?(Ue=!1,Le=+Ne[0],We=+Ne[1],Ze):Ue?null:[Le,We]},Ze.nodeSize=function(Ne){return arguments.length?(Ue=!0,Le=+Ne[0],We=+Ne[1],Ze):Ue?[Le,We]:null},Ze}function Pe(ke,Le,We,Ue,Ze){for(var Xe,tt=ke.children,Ee=-1,Ne=tt.length,je=ke.value&&(Ze-We)/ke.value;++EeGe&&(Ge=Ee),Dt=nt*nt*wt,(ht=Math.max(Ge/Dt,Dt/ot))>pt){nt-=Ee;break}pt=ht}It.push(tt={value:nt,dice:Ne1?Ue:1)},We}(Ie);function He(){var ke=De,Le=!1,We=1,Ue=1,Ze=[0],Xe=$,tt=$,Ee=$,Ne=$,je=$;function nt(Ge){return Ge.x0=Ge.y0=0,Ge.x1=We,Ge.y1=Ue,Ge.eachBefore(ot),Ze=[0],Le&&Ge.eachBefore(K),Ge}function ot(Ge){var ht=Ze[Ge.depth],pt=Ge.x0+ht,wt=Ge.y0+ht,Dt=Ge.x1-ht,It=Ge.y1-ht;Dt=Ge-1){var qt=Ee[ot];return qt.x0=pt,qt.y0=wt,qt.x1=Dt,void(qt.y1=It)}for(var en=je[ot],Gt=ht/2+en,Ct=ot+1,_t=Ge-1;Ct<_t;){var nn=Ct+_t>>>1;je[nn]It-wt){var mn=(pt*bn+Dt*gn)/ht;nt(ot,Ct,gn,pt,wt,mn,It),nt(Ct,Ge,bn,mn,wt,Dt,It)}else{var vt=(wt*bn+It*gn)/ht;nt(ot,Ct,gn,pt,wt,Dt,vt),nt(Ct,Ge,bn,pt,vt,Dt,It)}})(0,Ne,ke.value,Le,We,Ue,Ze)}function $e(ke,Le,We,Ue,Ze){(1&ke.depth?Pe:oe)(ke,Le,We,Ue,Ze)}var Oe=function ke(Le){function We(Ue,Ze,Xe,tt,Ee){if((Ne=Ue._squarify)&&Ne.ratio===Le)for(var Ne,je,nt,ot,Ge,ht=-1,pt=Ne.length,wt=Ue.value;++ht1?Ue:1)},We}(Ie)},10132:function(d,l,n){n.d(l,{ak:function(){return A}});var c=Math.PI,b=2*c,i=1e-6,O=b-i;function w(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function y(){return new w}w.prototype=y.prototype={constructor:w,moveTo:function(x,R){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(x,R){this._+="L"+(this._x1=+x)+","+(this._y1=+R)},quadraticCurveTo:function(x,R,M,T){this._+="Q"+ +x+","+ +R+","+(this._x1=+M)+","+(this._y1=+T)},bezierCurveTo:function(x,R,M,T,E,C){this._+="C"+ +x+","+ +R+","+ +M+","+ +T+","+(this._x1=+E)+","+(this._y1=+C)},arcTo:function(x,R,M,T,E){x=+x,R=+R,M=+M,T=+T,E=+E;var C=this._x1,L=this._y1,D=M-x,k=T-R,I=C-x,z=L-R,$=I*I+z*z;if(E<0)throw new Error("negative radius: "+E);if(this._x1===null)this._+="M"+(this._x1=x)+","+(this._y1=R);else if($>i)if(Math.abs(z*D-k*I)>i&&E){var Q=M-C,j=T-L,U=D*D+k*k,X=Q*Q+j*j,te=Math.sqrt(U),W=Math.sqrt($),K=E*Math.tan((c-Math.acos((U+$-X)/(2*te*W)))/2),oe=K/W,q=K/te;Math.abs(oe-1)>i&&(this._+="L"+(x+oe*I)+","+(R+oe*z)),this._+="A"+E+","+E+",0,0,"+ +(z*Q>I*j)+","+(this._x1=x+q*D)+","+(this._y1=R+q*k)}else this._+="L"+(this._x1=x)+","+(this._y1=R)},arc:function(x,R,M,T,E,C){x=+x,R=+R,C=!!C;var L=(M=+M)*Math.cos(T),D=M*Math.sin(T),k=x+L,I=R+D,z=1^C,$=C?T-E:E-T;if(M<0)throw new Error("negative radius: "+M);this._x1===null?this._+="M"+k+","+I:(Math.abs(this._x1-k)>i||Math.abs(this._y1-I)>i)&&(this._+="L"+k+","+I),M&&($<0&&($=$%b+b),$>O?this._+="A"+M+","+M+",0,1,"+z+","+(x-L)+","+(R-D)+"A"+M+","+M+",0,1,"+z+","+(this._x1=k)+","+(this._y1=I):$>i&&(this._+="A"+M+","+M+",0,"+ +($>=c)+","+z+","+(this._x1=x+M*Math.cos(E))+","+(this._y1=R+M*Math.sin(E))))},rect:function(x,R,M,T){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)+"h"+ +M+"v"+ +T+"h"+-M+"Z"},toString:function(){return this._}};var p=y,a=Array.prototype.slice;function u(x){return function(){return x}}function h(x){return x[0]}function m(x){return x[1]}function v(x){return x.source}function _(x){return x.target}function S(x,R,M,T,E){x.moveTo(R,M),x.bezierCurveTo(R=(R+T)/2,M,R,E,T,E)}function A(){return function(x){var R=v,M=_,T=h,E=m,C=null;function L(){var D,k=a.call(arguments),I=R.apply(this,k),z=M.apply(this,k);if(C||(C=D=p()),x(C,+T.apply(this,(k[0]=I,k)),+E.apply(this,k),+T.apply(this,(k[0]=z,k)),+E.apply(this,k)),D)return C=null,D+""||null}return L.source=function(D){return arguments.length?(R=D,L):R},L.target=function(D){return arguments.length?(M=D,L):M},L.x=function(D){return arguments.length?(T=typeof D=="function"?D:u(+D),L):T},L.y=function(D){return arguments.length?(E=typeof D=="function"?D:u(+D),L):E},L.context=function(D){return arguments.length?(C=D??null,L):C},L}(S)}},94336:function(d,l,n){n.d(l,{Yn:function(){return v},m_:function(){return h},E9:function(){return _}});var c=n(8208),b=n(58931),i=n(46192),O=n(68936),w=n(32171),y=n(53528);function p(Ct){if(0<=Ct.y&&Ct.y<100){var _t=new Date(-1,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L);return _t.setFullYear(Ct.y),_t}return new Date(Ct.y,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L)}function a(Ct){if(0<=Ct.y&&Ct.y<100){var _t=new Date(Date.UTC(-1,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L));return _t.setUTCFullYear(Ct.y),_t}return new Date(Date.UTC(Ct.y,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L))}function u(Ct,_t,nn){return{y:Ct,m:_t,d:nn,H:0,M:0,S:0,L:0}}function h(Ct){var _t=Ct.dateTime,nn=Ct.date,gn=Ct.time,bn=Ct.periods,mn=Ct.days,vt=Ct.shortDays,bt=Ct.months,lt=Ct.shortMonths,yt=E(bn),zt=C(bn),Rt=E(mn),it=C(mn),at=E(vt),Lt=C(vt),xt=E(bt),Ht=C(bt),Xt=E(lt),Yt=C(lt),Qt={a:function(vn){return vt[vn.getDay()]},A:function(vn){return mn[vn.getDay()]},b:function(vn){return lt[vn.getMonth()]},B:function(vn){return bt[vn.getMonth()]},c:null,d:ae,e:ae,f:_e,H:ce,I:de,j:ve,L:ye,m:Se,M:Te,p:function(vn){return bn[+(vn.getHours()>=12)]},q:function(vn){return 1+~~(vn.getMonth()/3)},Q:en,s:Gt,S:Pe,u:Ie,U:ze,V:De,w:He,W:Ve,x:null,X:null,y:$e,Y:Oe,Z:ke,"%":qt},Pt={a:function(vn){return vt[vn.getUTCDay()]},A:function(vn){return mn[vn.getUTCDay()]},b:function(vn){return lt[vn.getUTCMonth()]},B:function(vn){return bt[vn.getUTCMonth()]},c:null,d:Le,e:Le,f:tt,H:We,I:Ue,j:Ze,L:Xe,m:Ee,M:Ne,p:function(vn){return bn[+(vn.getUTCHours()>=12)]},q:function(vn){return 1+~~(vn.getUTCMonth()/3)},Q:en,s:Gt,S:je,u:nt,U:ot,V:Ge,w:ht,W:pt,x:null,X:null,y:wt,Y:Dt,Z:It,"%":qt},tn={a:function(vn,Nn,er){var En=at.exec(Nn.slice(er));return En?(vn.w=Lt[En[0].toLowerCase()],er+En[0].length):-1},A:function(vn,Nn,er){var En=Rt.exec(Nn.slice(er));return En?(vn.w=it[En[0].toLowerCase()],er+En[0].length):-1},b:function(vn,Nn,er){var En=Xt.exec(Nn.slice(er));return En?(vn.m=Yt[En[0].toLowerCase()],er+En[0].length):-1},B:function(vn,Nn,er){var En=xt.exec(Nn.slice(er));return En?(vn.m=Ht[En[0].toLowerCase()],er+En[0].length):-1},c:function(vn,Nn,er){return dn(vn,_t,Nn,er)},d:te,e:te,f:ee,H:K,I:K,j:W,L:Y,m:X,M:oe,p:function(vn,Nn,er){var En=yt.exec(Nn.slice(er));return En?(vn.p=zt[En[0].toLowerCase()],er+En[0].length):-1},q:U,Q:he,s:se,S:q,u:D,U:k,V:I,w:L,W:z,x:function(vn,Nn,er){return dn(vn,nn,Nn,er)},X:function(vn,Nn,er){return dn(vn,gn,Nn,er)},y:Q,Y:$,Z:j,"%":me};function Kt(vn,Nn){return function(er){var En,In,Un,xr=[],Sr=-1,ar=0,Fn=vn.length;for(er instanceof Date||(er=new Date(+er));++Sr53)return null;"w"in Un||(Un.w=1),"Z"in Un?(In=(En=a(u(Un.y,0,1))).getUTCDay(),En=In>4||In===0?c.ot.ceil(En):(0,c.ot)(En),En=b.c.offset(En,7*(Un.V-1)),Un.y=En.getUTCFullYear(),Un.m=En.getUTCMonth(),Un.d=En.getUTCDate()+(Un.w+6)%7):(In=(En=p(u(Un.y,0,1))).getDay(),En=In>4||In===0?i.qT.ceil(En):(0,i.qT)(En),En=O.c.offset(En,7*(Un.V-1)),Un.y=En.getFullYear(),Un.m=En.getMonth(),Un.d=En.getDate()+(Un.w+6)%7)}else("W"in Un||"U"in Un)&&("w"in Un||(Un.w="u"in Un?Un.u%7:"W"in Un?1:0),In="Z"in Un?a(u(Un.y,0,1)).getUTCDay():p(u(Un.y,0,1)).getDay(),Un.m=0,Un.d="W"in Un?(Un.w+6)%7+7*Un.W-(In+5)%7:Un.w+7*Un.U-(In+6)%7);return"Z"in Un?(Un.H+=Un.Z/100|0,Un.M+=Un.Z%100,a(Un)):p(Un)}}function dn(vn,Nn,er,En){for(var In,Un,xr=0,Sr=Nn.length,ar=er.length;xr=ar)return-1;if((In=Nn.charCodeAt(xr++))===37){if(In=Nn.charAt(xr++),!(Un=tn[In in S?Nn.charAt(xr++):In])||(En=Un(vn,er,En))<0)return-1}else if(In!=er.charCodeAt(En++))return-1}return En}return Qt.x=Kt(nn,Qt),Qt.X=Kt(gn,Qt),Qt.c=Kt(_t,Qt),Pt.x=Kt(nn,Pt),Pt.X=Kt(gn,Pt),Pt.c=Kt(_t,Pt),{format:function(vn){var Nn=Kt(vn+="",Qt);return Nn.toString=function(){return vn},Nn},parse:function(vn){var Nn=fn(vn+="",!1);return Nn.toString=function(){return vn},Nn},utcFormat:function(vn){var Nn=Kt(vn+="",Pt);return Nn.toString=function(){return vn},Nn},utcParse:function(vn){var Nn=fn(vn+="",!0);return Nn.toString=function(){return vn},Nn}}}var m,v,_,S={"-":"",_:" ",0:"0"},A=/^\s*\d+/,x=/^%/,R=/[\\^$*+?|[\]().{}]/g;function M(Ct,_t,nn){var gn=Ct<0?"-":"",bn=(gn?-Ct:Ct)+"",mn=bn.length;return gn+(mn68?1900:2e3),nn+gn[0].length):-1}function j(Ct,_t,nn){var gn=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(_t.slice(nn,nn+6));return gn?(Ct.Z=gn[1]?0:-(gn[2]+(gn[3]||"00")),nn+gn[0].length):-1}function U(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+1));return gn?(Ct.q=3*gn[0]-3,nn+gn[0].length):-1}function X(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.m=gn[0]-1,nn+gn[0].length):-1}function te(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.d=+gn[0],nn+gn[0].length):-1}function W(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+3));return gn?(Ct.m=0,Ct.d=+gn[0],nn+gn[0].length):-1}function K(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.H=+gn[0],nn+gn[0].length):-1}function oe(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.M=+gn[0],nn+gn[0].length):-1}function q(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.S=+gn[0],nn+gn[0].length):-1}function Y(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+3));return gn?(Ct.L=+gn[0],nn+gn[0].length):-1}function ee(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+6));return gn?(Ct.L=Math.floor(gn[0]/1e3),nn+gn[0].length):-1}function me(Ct,_t,nn){var gn=x.exec(_t.slice(nn,nn+1));return gn?nn+gn[0].length:-1}function he(Ct,_t,nn){var gn=A.exec(_t.slice(nn));return gn?(Ct.Q=+gn[0],nn+gn[0].length):-1}function se(Ct,_t,nn){var gn=A.exec(_t.slice(nn));return gn?(Ct.s=+gn[0],nn+gn[0].length):-1}function ae(Ct,_t){return M(Ct.getDate(),_t,2)}function ce(Ct,_t){return M(Ct.getHours(),_t,2)}function de(Ct,_t){return M(Ct.getHours()%12||12,_t,2)}function ve(Ct,_t){return M(1+O.c.count((0,w.c)(Ct),Ct),_t,3)}function ye(Ct,_t){return M(Ct.getMilliseconds(),_t,3)}function _e(Ct,_t){return ye(Ct,_t)+"000"}function Se(Ct,_t){return M(Ct.getMonth()+1,_t,2)}function Te(Ct,_t){return M(Ct.getMinutes(),_t,2)}function Pe(Ct,_t){return M(Ct.getSeconds(),_t,2)}function Ie(Ct){var _t=Ct.getDay();return _t===0?7:_t}function ze(Ct,_t){return M(i.uU.count((0,w.c)(Ct)-1,Ct),_t,2)}function De(Ct,_t){var nn=Ct.getDay();return Ct=nn>=4||nn===0?(0,i.kD)(Ct):i.kD.ceil(Ct),M(i.kD.count((0,w.c)(Ct),Ct)+((0,w.c)(Ct).getDay()===4),_t,2)}function He(Ct){return Ct.getDay()}function Ve(Ct,_t){return M(i.qT.count((0,w.c)(Ct)-1,Ct),_t,2)}function $e(Ct,_t){return M(Ct.getFullYear()%100,_t,2)}function Oe(Ct,_t){return M(Ct.getFullYear()%1e4,_t,4)}function ke(Ct){var _t=Ct.getTimezoneOffset();return(_t>0?"-":(_t*=-1,"+"))+M(_t/60|0,"0",2)+M(_t%60,"0",2)}function Le(Ct,_t){return M(Ct.getUTCDate(),_t,2)}function We(Ct,_t){return M(Ct.getUTCHours(),_t,2)}function Ue(Ct,_t){return M(Ct.getUTCHours()%12||12,_t,2)}function Ze(Ct,_t){return M(1+b.c.count((0,y.c)(Ct),Ct),_t,3)}function Xe(Ct,_t){return M(Ct.getUTCMilliseconds(),_t,3)}function tt(Ct,_t){return Xe(Ct,_t)+"000"}function Ee(Ct,_t){return M(Ct.getUTCMonth()+1,_t,2)}function Ne(Ct,_t){return M(Ct.getUTCMinutes(),_t,2)}function je(Ct,_t){return M(Ct.getUTCSeconds(),_t,2)}function nt(Ct){var _t=Ct.getUTCDay();return _t===0?7:_t}function ot(Ct,_t){return M(c.EV.count((0,y.c)(Ct)-1,Ct),_t,2)}function Ge(Ct,_t){var nn=Ct.getUTCDay();return Ct=nn>=4||nn===0?(0,c.yA)(Ct):c.yA.ceil(Ct),M(c.yA.count((0,y.c)(Ct),Ct)+((0,y.c)(Ct).getUTCDay()===4),_t,2)}function ht(Ct){return Ct.getUTCDay()}function pt(Ct,_t){return M(c.ot.count((0,y.c)(Ct)-1,Ct),_t,2)}function wt(Ct,_t){return M(Ct.getUTCFullYear()%100,_t,2)}function Dt(Ct,_t){return M(Ct.getUTCFullYear()%1e4,_t,4)}function It(){return"+0000"}function qt(){return"%"}function en(Ct){return+Ct}function Gt(Ct){return Math.floor(+Ct/1e3)}m=h({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"]}),v=m.format,m.parse,_=m.utcFormat,m.utcParse},68936:function(d,l,n){n.d(l,{m:function(){return O}});var c=n(81628),b=n(69792),i=(0,c.c)(function(w){w.setHours(0,0,0,0)},function(w,y){w.setDate(w.getDate()+y)},function(w,y){return(y-w-(y.getTimezoneOffset()-w.getTimezoneOffset())*b.iy)/b.SK},function(w){return w.getDate()-1});l.c=i;var O=i.range},69792:function(d,l,n){n.d(l,{KK:function(){return w},SK:function(){return O},cg:function(){return i},iy:function(){return b},yc:function(){return c}});var c=1e3,b=6e4,i=36e5,O=864e5,w=6048e5},73220:function(d,l,n){n.r(l),n.d(l,{timeDay:function(){return A.c},timeDays:function(){return A.m},timeFriday:function(){return x.iB},timeFridays:function(){return x.sJ},timeHour:function(){return _},timeHours:function(){return S},timeInterval:function(){return c.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return O},timeMinute:function(){return h},timeMinutes:function(){return m},timeMonday:function(){return x.qT},timeMondays:function(){return x.QP},timeMonth:function(){return M},timeMonths:function(){return T},timeSaturday:function(){return x.Wc},timeSaturdays:function(){return x.aI},timeSecond:function(){return p},timeSeconds:function(){return a},timeSunday:function(){return x.uU},timeSundays:function(){return x.Ab},timeThursday:function(){return x.kD},timeThursdays:function(){return x.eC},timeTuesday:function(){return x.Mf},timeTuesdays:function(){return x.Oc},timeWednesday:function(){return x.eg},timeWednesdays:function(){return x.sn},timeWeek:function(){return x.uU},timeWeeks:function(){return x.Ab},timeYear:function(){return E.c},timeYears:function(){return E.Q},utcDay:function(){return $.c},utcDays:function(){return $.o},utcFriday:function(){return Q.od},utcFridays:function(){return Q.iG},utcHour:function(){return I},utcHours:function(){return z},utcMillisecond:function(){return i},utcMilliseconds:function(){return O},utcMinute:function(){return L},utcMinutes:function(){return D},utcMonday:function(){return Q.ot},utcMondays:function(){return Q.iO},utcMonth:function(){return U},utcMonths:function(){return X},utcSaturday:function(){return Q.Ad},utcSaturdays:function(){return Q.K8},utcSecond:function(){return p},utcSeconds:function(){return a},utcSunday:function(){return Q.EV},utcSundays:function(){return Q.Wq},utcThursday:function(){return Q.yA},utcThursdays:function(){return Q.ob},utcTuesday:function(){return Q.sG},utcTuesdays:function(){return Q.kl},utcWednesday:function(){return Q._6},utcWednesdays:function(){return Q.W_},utcWeek:function(){return Q.EV},utcWeeks:function(){return Q.Wq},utcYear:function(){return te.c},utcYears:function(){return te.i}});var c=n(81628),b=(0,c.c)(function(){},function(W,K){W.setTime(+W+K)},function(W,K){return K-W});b.every=function(W){return W=Math.floor(W),isFinite(W)&&W>0?W>1?(0,c.c)(function(K){K.setTime(Math.floor(K/W)*W)},function(K,oe){K.setTime(+K+oe*W)},function(K,oe){return(oe-K)/W}):b:null};var i=b,O=b.range,w=n(69792),y=(0,c.c)(function(W){W.setTime(W-W.getMilliseconds())},function(W,K){W.setTime(+W+K*w.yc)},function(W,K){return(K-W)/w.yc},function(W){return W.getUTCSeconds()}),p=y,a=y.range,u=(0,c.c)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*w.yc)},function(W,K){W.setTime(+W+K*w.iy)},function(W,K){return(K-W)/w.iy},function(W){return W.getMinutes()}),h=u,m=u.range,v=(0,c.c)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*w.yc-W.getMinutes()*w.iy)},function(W,K){W.setTime(+W+K*w.cg)},function(W,K){return(K-W)/w.cg},function(W){return W.getHours()}),_=v,S=v.range,A=n(68936),x=n(46192),R=(0,c.c)(function(W){W.setDate(1),W.setHours(0,0,0,0)},function(W,K){W.setMonth(W.getMonth()+K)},function(W,K){return K.getMonth()-W.getMonth()+12*(K.getFullYear()-W.getFullYear())},function(W){return W.getMonth()}),M=R,T=R.range,E=n(32171),C=(0,c.c)(function(W){W.setUTCSeconds(0,0)},function(W,K){W.setTime(+W+K*w.iy)},function(W,K){return(K-W)/w.iy},function(W){return W.getUTCMinutes()}),L=C,D=C.range,k=(0,c.c)(function(W){W.setUTCMinutes(0,0,0)},function(W,K){W.setTime(+W+K*w.cg)},function(W,K){return(K-W)/w.cg},function(W){return W.getUTCHours()}),I=k,z=k.range,$=n(58931),Q=n(8208),j=(0,c.c)(function(W){W.setUTCDate(1),W.setUTCHours(0,0,0,0)},function(W,K){W.setUTCMonth(W.getUTCMonth()+K)},function(W,K){return K.getUTCMonth()-W.getUTCMonth()+12*(K.getUTCFullYear()-W.getUTCFullYear())},function(W){return W.getUTCMonth()}),U=j,X=j.range,te=n(53528)},81628:function(d,l,n){n.d(l,{c:function(){return i}});var c=new Date,b=new Date;function i(O,w,y,p){function a(u){return O(u=arguments.length===0?new Date:new Date(+u)),u}return a.floor=function(u){return O(u=new Date(+u)),u},a.ceil=function(u){return O(u=new Date(u-1)),w(u,1),O(u),u},a.round=function(u){var h=a(u),m=a.ceil(u);return u-h0))return _;do _.push(v=new Date(+u)),w(u,m),O(u);while(v=h)for(;O(h),!u(h);)h.setTime(h-1)},function(h,m){if(h>=h)if(m<0)for(;++m<=0;)for(;w(h,-1),!u(h););else for(;--m>=0;)for(;w(h,1),!u(h););})},y&&(a.count=function(u,h){return c.setTime(+u),b.setTime(+h),O(c),O(b),Math.floor(y(c,b))},a.every=function(u){return u=Math.floor(u),isFinite(u)&&u>0?u>1?a.filter(p?function(h){return p(h)%u==0}:function(h){return a.count(0,h)%u==0}):a:null}),a}},58931:function(d,l,n){n.d(l,{o:function(){return O}});var c=n(81628),b=n(69792),i=(0,c.c)(function(w){w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCDate(w.getUTCDate()+y)},function(w,y){return(y-w)/b.SK},function(w){return w.getUTCDate()-1});l.c=i;var O=i.range},8208:function(d,l,n){n.d(l,{Ad:function(){return h},EV:function(){return O},K8:function(){return R},W_:function(){return S},Wq:function(){return m},_6:function(){return p},iG:function(){return x},iO:function(){return v},kl:function(){return _},ob:function(){return A},od:function(){return u},ot:function(){return w},sG:function(){return y},yA:function(){return a}});var c=n(81628),b=n(69792);function i(M){return(0,c.c)(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-M)%7),T.setUTCHours(0,0,0,0)},function(T,E){T.setUTCDate(T.getUTCDate()+7*E)},function(T,E){return(E-T)/b.KK})}var O=i(0),w=i(1),y=i(2),p=i(3),a=i(4),u=i(5),h=i(6),m=O.range,v=w.range,_=y.range,S=p.range,A=a.range,x=u.range,R=h.range},53528:function(d,l,n){n.d(l,{i:function(){return i}});var c=n(81628),b=(0,c.c)(function(O){O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},function(O,w){O.setUTCFullYear(O.getUTCFullYear()+w)},function(O,w){return w.getUTCFullYear()-O.getUTCFullYear()},function(O){return O.getUTCFullYear()});b.every=function(O){return isFinite(O=Math.floor(O))&&O>0?(0,c.c)(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/O)*O),w.setUTCMonth(0,1),w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCFullYear(w.getUTCFullYear()+y*O)}):null},l.c=b;var i=b.range},46192:function(d,l,n){n.d(l,{Ab:function(){return m},Mf:function(){return y},Oc:function(){return _},QP:function(){return v},Wc:function(){return h},aI:function(){return R},eC:function(){return A},eg:function(){return p},iB:function(){return u},kD:function(){return a},qT:function(){return w},sJ:function(){return x},sn:function(){return S},uU:function(){return O}});var c=n(81628),b=n(69792);function i(M){return(0,c.c)(function(T){T.setDate(T.getDate()-(T.getDay()+7-M)%7),T.setHours(0,0,0,0)},function(T,E){T.setDate(T.getDate()+7*E)},function(T,E){return(E-T-(E.getTimezoneOffset()-T.getTimezoneOffset())*b.iy)/b.KK})}var O=i(0),w=i(1),y=i(2),p=i(3),a=i(4),u=i(5),h=i(6),m=O.range,v=w.range,_=y.range,S=p.range,A=a.range,x=u.range,R=h.range},32171:function(d,l,n){n.d(l,{Q:function(){return i}});var c=n(81628),b=(0,c.c)(function(O){O.setMonth(0,1),O.setHours(0,0,0,0)},function(O,w){O.setFullYear(O.getFullYear()+w)},function(O,w){return w.getFullYear()-O.getFullYear()},function(O){return O.getFullYear()});b.every=function(O){return isFinite(O=Math.floor(O))&&O>0?(0,c.c)(function(w){w.setFullYear(Math.floor(w.getFullYear()/O)*O),w.setMonth(0,1),w.setHours(0,0,0,0)},function(w,y){w.setFullYear(w.getFullYear()+y*O)}):null},l.c=b;var i=b.range},64348:function(d,l,n){var c=n(39640)(),b=n(53664),i=c&&b("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch{i=!1}var O=b("%SyntaxError%"),w=b("%TypeError%"),y=n(2304);d.exports=function(p,a,u){if(!p||typeof p!="object"&&typeof p!="function")throw new w("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new w("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new w("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new w("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new w("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new w("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,m=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,_=arguments.length>6&&arguments[6],S=!!y&&y(p,a);if(i)i(p,a,{configurable:v===null&&S?S.configurable:!v,enumerable:h===null&&S?S.enumerable:!h,value:u,writable:m===null&&S?S.writable:!m});else{if(!_&&(h||m||v))throw new O("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");p[a]=u}}},81288:function(d,l,n){var c=n(41820),b=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,O=Array.prototype.concat,w=Object.defineProperty,y=n(39640)(),p=w&&y,a=function(h,m,v,_){if(m in h){if(_===!0){if(h[m]===v)return}else if(typeof(S=_)!="function"||i.call(S)!=="[object Function]"||!_())return}var S;p?w(h,m,{configurable:!0,enumerable:!1,value:v,writable:!0}):h[m]=v},u=function(h,m){var v=arguments.length>2?arguments[2]:{},_=c(m);b&&(_=O.call(_,Object.getOwnPropertySymbols(m)));for(var S=0;S<_.length;S+=1)a(h,_[S],m[_[S]],v[_[S]])};u.supportsDescriptors=!!p,d.exports=u},31264:function(d){d.exports=function(){for(var l=0;lp*a){var _=(v-m)/p;y[h]=1e3*_}}return y}function b(i){for(var O=[],w=i[0];w<=i[1];w++)for(var y=String.fromCharCode(w),p=i[0];p0)return function(b,i){var O,w;for(O=new Array(b),w=0;w80*$){Q=U=I[0],j=X=I[1];for(var me=$;meU&&(U=te),W>X&&(X=W);K=(K=Math.max(U-Q,X-j))!==0?1/K:0}return b(Y,ee,$,Q,j,K),ee}function n(I,z,$,Q,j){var U,X;if(j===k(I,z,$,Q)>0)for(U=z;U<$;U+=Q)X=C(U,I[U],I[U+1],X);else for(U=$-Q;U>=z;U-=Q)X=C(U,I[U],I[U+1],X);return X&&A(X,X.next)&&(L(X),X=X.next),X}function c(I,z){if(!I)return I;z||(z=I);var $,Q=I;do if($=!1,Q.steiner||!A(Q,Q.next)&&S(Q.prev,Q,Q.next)!==0)Q=Q.next;else{if(L(Q),(Q=z=Q.prev)===Q.next)break;$=!0}while($||Q!==z);return z}function b(I,z,$,Q,j,U,X){if(I){!X&&U&&function(oe,q,Y,ee){var me=oe;do me.z===null&&(me.z=h(me.x,me.y,q,Y,ee)),me.prevZ=me.prev,me.nextZ=me.next,me=me.next;while(me!==oe);me.prevZ.nextZ=null,me.prevZ=null,function(he){var se,ae,ce,de,ve,ye,_e,Se,Te=1;do{for(ae=he,he=null,ve=null,ye=0;ae;){for(ye++,ce=ae,_e=0,se=0;se0||Se>0&&ce;)_e!==0&&(Se===0||!ce||ae.z<=ce.z)?(de=ae,ae=ae.nextZ,_e--):(de=ce,ce=ce.nextZ,Se--),ve?ve.nextZ=de:he=de,de.prevZ=ve,ve=de;ae=ce}ve.nextZ=null,Te*=2}while(ye>1)}(me)}(I,Q,j,U);for(var te,W,K=I;I.prev!==I.next;)if(te=I.prev,W=I.next,U?O(I,Q,j,U):i(I))z.push(te.i/$),z.push(I.i/$),z.push(W.i/$),L(I),I=W.next,K=W.next;else if((I=W)===K){X?X===1?b(I=w(c(I),z,$),z,$,Q,j,U,2):X===2&&y(I,z,$,Q,j,U):b(c(I),z,$,Q,j,U,1);break}}}function i(I){var z=I.prev,$=I,Q=I.next;if(S(z,$,Q)>=0)return!1;for(var j=I.next.next;j!==I.prev;){if(v(z.x,z.y,$.x,$.y,Q.x,Q.y,j.x,j.y)&&S(j.prev,j,j.next)>=0)return!1;j=j.next}return!0}function O(I,z,$,Q){var j=I.prev,U=I,X=I.next;if(S(j,U,X)>=0)return!1;for(var te=j.xU.x?j.x>X.x?j.x:X.x:U.x>X.x?U.x:X.x,oe=j.y>U.y?j.y>X.y?j.y:X.y:U.y>X.y?U.y:X.y,q=h(te,W,z,$,Q),Y=h(K,oe,z,$,Q),ee=I.prevZ,me=I.nextZ;ee&&ee.z>=q&&me&&me.z<=Y;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&S(ee.prev,ee,ee.next)>=0||(ee=ee.prevZ,me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&S(me.prev,me,me.next)>=0))return!1;me=me.nextZ}for(;ee&&ee.z>=q;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&S(ee.prev,ee,ee.next)>=0)return!1;ee=ee.prevZ}for(;me&&me.z<=Y;){if(me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&S(me.prev,me,me.next)>=0)return!1;me=me.nextZ}return!0}function w(I,z,$){var Q=I;do{var j=Q.prev,U=Q.next.next;!A(j,U)&&x(j,Q,Q.next,U)&&T(j,U)&&T(U,j)&&(z.push(j.i/$),z.push(Q.i/$),z.push(U.i/$),L(Q),L(Q.next),Q=I=U),Q=Q.next}while(Q!==I);return c(Q)}function y(I,z,$,Q,j,U){var X=I;do{for(var te=X.next.next;te!==X.prev;){if(X.i!==te.i&&_(X,te)){var W=E(X,te);return X=c(X,X.next),W=c(W,W.next),b(X,z,$,Q,j,U),void b(W,z,$,Q,j,U)}te=te.next}X=X.next}while(X!==I)}function p(I,z){return I.x-z.x}function a(I,z){if(z=function(Q,j){var U,X=j,te=Q.x,W=Q.y,K=-1/0;do{if(W<=X.y&&W>=X.next.y&&X.next.y!==X.y){var oe=X.x+(W-X.y)*(X.next.x-X.x)/(X.next.y-X.y);if(oe<=te&&oe>K){if(K=oe,oe===te){if(W===X.y)return X;if(W===X.next.y)return X.next}U=X.x=X.x&&X.x>=ee&&te!==X.x&&v(WU.x||X.x===U.x&&u(U,X)))&&(U=X,he=q)),X=X.next;while(X!==Y);return U}(I,z),z){var $=E(z,I);c(z,z.next),c($,$.next)}}function u(I,z){return S(I.prev,I,z.prev)<0&&S(z.next,I,I.next)<0}function h(I,z,$,Q,j){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=32767*(I-$)*j)|I<<8))|I<<4))|I<<2))|I<<1))|(z=1431655765&((z=858993459&((z=252645135&((z=16711935&((z=32767*(z-Q)*j)|z<<8))|z<<4))|z<<2))|z<<1))<<1}function m(I){var z=I,$=I;do(z.x<$.x||z.x===$.x&&z.y<$.y)&&($=z),z=z.next;while(z!==I);return $}function v(I,z,$,Q,j,U,X,te){return(j-X)*(z-te)-(I-X)*(U-te)>=0&&(I-X)*(Q-te)-($-X)*(z-te)>=0&&($-X)*(U-te)-(j-X)*(Q-te)>=0}function _(I,z){return I.next.i!==z.i&&I.prev.i!==z.i&&!function($,Q){var j=$;do{if(j.i!==$.i&&j.next.i!==$.i&&j.i!==Q.i&&j.next.i!==Q.i&&x(j,j.next,$,Q))return!0;j=j.next}while(j!==$);return!1}(I,z)&&(T(I,z)&&T(z,I)&&function($,Q){var j=$,U=!1,X=($.x+Q.x)/2,te=($.y+Q.y)/2;do j.y>te!=j.next.y>te&&j.next.y!==j.y&&X<(j.next.x-j.x)*(te-j.y)/(j.next.y-j.y)+j.x&&(U=!U),j=j.next;while(j!==$);return U}(I,z)&&(S(I.prev,I,z.prev)||S(I,z.prev,z))||A(I,z)&&S(I.prev,I,I.next)>0&&S(z.prev,z,z.next)>0)}function S(I,z,$){return(z.y-I.y)*($.x-z.x)-(z.x-I.x)*($.y-z.y)}function A(I,z){return I.x===z.x&&I.y===z.y}function x(I,z,$,Q){var j=M(S(I,z,$)),U=M(S(I,z,Q)),X=M(S($,Q,I)),te=M(S($,Q,z));return j!==U&&X!==te||!(j!==0||!R(I,$,z))||!(U!==0||!R(I,Q,z))||!(X!==0||!R($,I,Q))||!(te!==0||!R($,z,Q))}function R(I,z,$){return z.x<=Math.max(I.x,$.x)&&z.x>=Math.min(I.x,$.x)&&z.y<=Math.max(I.y,$.y)&&z.y>=Math.min(I.y,$.y)}function M(I){return I>0?1:I<0?-1:0}function T(I,z){return S(I.prev,I,I.next)<0?S(I,z,I.next)>=0&&S(I,I.prev,z)>=0:S(I,z,I.prev)<0||S(I,I.next,z)<0}function E(I,z){var $=new D(I.i,I.x,I.y),Q=new D(z.i,z.x,z.y),j=I.next,U=z.prev;return I.next=z,z.prev=I,$.next=j,j.prev=$,Q.next=$,$.prev=Q,U.next=Q,Q.prev=U,Q}function C(I,z,$,Q){var j=new D(I,z,$);return Q?(j.next=Q.next,j.prev=Q,Q.next.prev=j,Q.next=j):(j.prev=j,j.next=j),j}function L(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function D(I,z,$){this.i=I,this.x=z,this.y=$,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function k(I,z,$,Q){for(var j=0,U=z,X=$-Q;U<$;U+=Q)j+=(I[X]-I[U])*(I[U+1]+I[X+1]),X=U;return j}d.exports=l,d.exports.default=l,l.deviation=function(I,z,$,Q){var j=z&&z.length,U=j?z[0]*$:I.length,X=Math.abs(k(I,0,U,$));if(j)for(var te=0,W=z.length;te0&&(Q+=I[j-1].length,$.holes.push(Q))}return $}},6688:function(d,l,n){var c=n(78484);d.exports=function(b,i){var O,w=[],y=[],p=[],a={},u=[];function h(T){p[T]=!1,a.hasOwnProperty(T)&&Object.keys(a[T]).forEach(function(E){delete a[T][E],p[E]&&h(E)})}function m(T){var E,C,L=!1;for(y.push(T),p[T]=!0,E=0;E=$})})(T);for(var E,C=c(b).components.filter(function($){return $.length>1}),L=1/0,D=0;D=55296&&T<=56319&&(D+=_[++A]),D=k?h.call(k,I,D,x):D,S?(m.value=D,v(R,x,m)):R[x]=D,++x;M=x}}if(M===void 0)for(M=O(_.length),S&&(R=new S(M)),A=0;A0?1:-1}},96936:function(d,l,n){var c=n(85608),b=Math.abs,i=Math.floor;d.exports=function(O){return isNaN(O)?0:(O=Number(O))!==0&&isFinite(O)?c(O)*i(b(O)):O}},81304:function(d,l,n){var c=n(96936),b=Math.max;d.exports=function(i){return b(0,c(i))}},14428:function(d,l,n){var c=n(34044),b=n(9252),i=Function.prototype.bind,O=Function.prototype.call,w=Object.keys,y=Object.prototype.propertyIsEnumerable;d.exports=function(p,a){return function(u,h){var m,v=arguments[2],_=arguments[3];return u=Object(b(u)),c(h),m=w(u),_&&m.sort(typeof _=="function"?i.call(_,u):void 0),typeof p!="function"&&(p=m[p]),O.call(p,m,function(S,A){return y.call(u,S)?O.call(h,v,u[S],S,u,A):a})}}},38452:function(d,l,n){d.exports=n(96276)()?Object.assign:n(81892)},96276:function(d){d.exports=function(){var l,n=Object.assign;return typeof n=="function"&&(n(l={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),l.foo+l.bar+l.trzy==="razdwatrzy")}},81892:function(d,l,n){var c=n(54768),b=n(9252),i=Math.max;d.exports=function(O,w){var y,p,a,u=i(arguments.length,2);for(O=Object(b(O)),a=function(h){try{O[h]=w[h]}catch(m){y||(y=m)}},p=1;p-1}},29768:function(d){var l=Object.prototype.toString,n=l.call("");d.exports=function(c){return typeof c=="string"||c&&typeof c=="object"&&(c instanceof String||l.call(c)===n)||!1}},82252:function(d){var l=Object.create(null),n=Math.random;d.exports=function(){var c;do c=n().toString(36).slice(2);while(l[c]);return c}},52104:function(d,l,n){var c,b=n(69932),i=n(71056),O=n(21092),w=n(92664),y=n(85512),p=Object.defineProperty;c=d.exports=function(a,u){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");y.call(this,a),u=u?i.call(u,"key+value")?"key+value":i.call(u,"key")?"key":"value":"value",p(this,"__kind__",O("",u))},b&&b(c,y),delete c.prototype.constructor,c.prototype=Object.create(y.prototype,{_resolve:O(function(a){return this.__kind__==="value"?this.__list__[a]:this.__kind__==="key+value"?[a,this.__list__[a]]:a})}),p(c.prototype,w.toStringTag,O("c","Array Iterator"))},76024:function(d,l,n){var c=n(60948),b=n(34044),i=n(29768),O=n(76252),w=Array.isArray,y=Function.prototype.call,p=Array.prototype.some;d.exports=function(a,u){var h,m,v,_,S,A,x,R,M=arguments[2];if(w(a)||c(a)?h="array":i(a)?h="string":a=O(a),b(u),v=function(){_=!0},h!=="array")if(h!=="string")for(m=a.next();!m.done;){if(y.call(u,M,m.value,v),_)return;m=a.next()}else for(A=a.length,S=0;S=55296&&R<=56319&&(x+=a[++S]),y.call(u,M,x,v),!_);++S);else p.call(a,function(T){return y.call(u,M,T,v),_})}},76252:function(d,l,n){var c=n(60948),b=n(29768),i=n(52104),O=n(80940),w=n(52891),y=n(92664).iterator;d.exports=function(p){return typeof w(p)[y]=="function"?p[y]():c(p)?new i(p):b(p)?new O(p):new i(p)}},85512:function(d,l,n){var c,b=n(41476),i=n(38452),O=n(34044),w=n(9252),y=n(21092),p=n(27940),a=n(92664),u=Object.defineProperty,h=Object.defineProperties;d.exports=c=function(m,v){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");h(this,{__list__:y("w",w(m)),__context__:y("w",v),__nextIndex__:y("w",0)}),v&&(O(v.on),v.on("_add",this._onAdd),v.on("_delete",this._onDelete),v.on("_clear",this._onClear))},delete c.prototype.constructor,h(c.prototype,i({_next:y(function(){var m;if(this.__list__)return this.__redo__&&(m=this.__redo__.shift())!==void 0?m:this.__nextIndex__=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(v,_){v>=m&&(this.__redo__[_]=++v)},this),this.__redo__.push(m)):u(this,"__redo__",y("c",[m])))}),_onDelete:y(function(m){var v;m>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&((v=this.__redo__.indexOf(m))!==-1&&this.__redo__.splice(v,1),this.__redo__.forEach(function(_,S){_>m&&(this.__redo__[S]=--_)},this)))}),_onClear:y(function(){this.__redo__&&b.call(this.__redo__),this.__nextIndex__=0})}))),u(c.prototype,a.iterator,y(function(){return this}))},76368:function(d,l,n){var c=n(60948),b=n(42584),i=n(29768),O=n(92664).iterator,w=Array.isArray;d.exports=function(y){return!(!b(y)||!w(y)&&!i(y)&&!c(y)&&typeof y[O]!="function")}},80940:function(d,l,n){var c,b=n(69932),i=n(21092),O=n(92664),w=n(85512),y=Object.defineProperty;c=d.exports=function(p){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");p=String(p),w.call(this,p),y(this,"__length__",i("",p.length))},b&&b(c,w),delete c.prototype.constructor,c.prototype=Object.create(w.prototype,{_next:i(function(){if(this.__list__)return this.__nextIndex__=55296&&a<=56319?u+this.__list__[this.__nextIndex__++]:u})}),y(c.prototype,O.toStringTag,i("c","String Iterator"))},52891:function(d,l,n){var c=n(76368);d.exports=function(b){if(!c(b))throw new TypeError(b+" is not iterable");return b}},60964:function(d){function l(n,c){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var b=Object(n),i=1;i0&&E.length>M&&!E.warned){E.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+E.length+" "+String(A)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=S,L.type=A,L.count=E.length,C=L,console&&console.warn&&console.warn(C)}return S}function a(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(S,A,x){var R={fired:!1,wrapFn:void 0,target:S,type:A,listener:x},M=a.bind(R);return M.listener=x,R.wrapFn=M,M}function h(S,A,x){var R=S._events;if(R===void 0)return[];var M=R[A];return M===void 0?[]:typeof M=="function"?x?[M.listener||M]:[M]:x?function(T){for(var E=new Array(T.length),C=0;C0&&(T=A[0]),T instanceof Error)throw T;var E=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw E.context=T,E}var C=M[S];if(C===void 0)return!1;if(typeof C=="function")c(C,this,A);else{var L=C.length,D=v(C,L);for(x=0;x=0;T--)if(x[T]===A||x[T].listener===A){E=x[T].listener,M=T;break}if(M<0)return this;M===0?x.shift():function(C,L){for(;L+1=0;R--)this.removeListener(S,A[R]);return this},i.prototype.listeners=function(S){return h(this,S,!0)},i.prototype.rawListeners=function(S){return h(this,S,!1)},i.listenerCount=function(S,A){return typeof S.listenerCount=="function"?S.listenerCount(A):m.call(S,A)},i.prototype.listenerCount=m,i.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]}},39072:function(d){var l=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};d.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return l()}try{return __global__||l()}finally{delete Object.prototype.__global__}}()},12296:function(d,l,n){d.exports=n(45072)()?globalThis:n(39072)},45072:function(d){d.exports=function(){return typeof globalThis=="object"&&!!globalThis&&globalThis.Array===Array}},38248:function(d,l,n){var c=n(94576);d.exports=function(b){var i=typeof b;if(i==="string"){var O=b;if((b=+b)==0&&c(O))return!1}else if(i!=="number")return!1;return b-b<1}},47520:function(d,l,n){var c=n(72512);d.exports=function(b,i,O){if(!b)throw new TypeError("must specify data as first parameter");if(O=0|+(O||0),Array.isArray(b)&&b[0]&&typeof b[0][0]=="number"){var w,y,p,a,u=b[0].length,h=b.length*u;i&&typeof i!="string"||(i=new(c(i||"float32"))(h+O));var m=i.length-O;if(h!==m)throw new Error("source length "+h+" ("+u+"x"+b.length+") does not match destination length "+m);for(w=0,p=O;wO[0]-p[0]/2&&(_=p[0]/2,S+=p[1]);return w}},71920:function(d){function l(i,O){O||(O={}),(typeof i=="string"||Array.isArray(i))&&(O.family=i);var w=Array.isArray(O.family)?O.family.join(", "):O.family;if(!w)throw Error("`family` must be defined");var y=O.size||O.fontSize||O.em||48,p=O.weight||O.fontWeight||"",a=(i=[O.style||O.fontStyle||"",p,y].join(" ")+"px "+w,O.origin||"top");if(l.cache[w]&&y<=l.cache[w].em)return n(l.cache[w],a);var u=O.canvas||l.canvas,h=u.getContext("2d"),m={upper:O.upper!==void 0?O.upper:"H",lower:O.lower!==void 0?O.lower:"x",descent:O.descent!==void 0?O.descent:"p",ascent:O.ascent!==void 0?O.ascent:"h",tittle:O.tittle!==void 0?O.tittle:"i",overshoot:O.overshoot!==void 0?O.overshoot:"O"},v=Math.ceil(1.5*y);u.height=v,u.width=.5*v,h.font=i;var _="H",S={top:0};h.clearRect(0,0,v,v),h.textBaseline="top",h.fillStyle="black",h.fillText(_,0,0);var A=c(h.getImageData(0,0,v,v));h.clearRect(0,0,v,v),h.textBaseline="bottom",h.fillText(_,0,v);var x=c(h.getImageData(0,0,v,v));S.lineHeight=S.bottom=v-x+A,h.clearRect(0,0,v,v),h.textBaseline="alphabetic",h.fillText(_,0,v);var R=v-c(h.getImageData(0,0,v,v))-1+A;S.baseline=S.alphabetic=R,h.clearRect(0,0,v,v),h.textBaseline="middle",h.fillText(_,0,.5*v);var M=c(h.getImageData(0,0,v,v));S.median=S.middle=v-M-1+A-.5*v,h.clearRect(0,0,v,v),h.textBaseline="hanging",h.fillText(_,0,.5*v);var T=c(h.getImageData(0,0,v,v));S.hanging=v-T-1+A-.5*v,h.clearRect(0,0,v,v),h.textBaseline="ideographic",h.fillText(_,0,v);var E=c(h.getImageData(0,0,v,v));if(S.ideographic=v-E-1+A,m.upper&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.upper,0,0),S.upper=c(h.getImageData(0,0,v,v)),S.capHeight=S.baseline-S.upper),m.lower&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.lower,0,0),S.lower=c(h.getImageData(0,0,v,v)),S.xHeight=S.baseline-S.lower),m.tittle&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.tittle,0,0),S.tittle=c(h.getImageData(0,0,v,v))),m.ascent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.ascent,0,0),S.ascent=c(h.getImageData(0,0,v,v))),m.descent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.descent,0,0),S.descent=b(h.getImageData(0,0,v,v))),m.overshoot){h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.overshoot,0,0);var C=b(h.getImageData(0,0,v,v));S.overshoot=C-R}for(var L in S)S[L]/=y;return S.em=y,l.cache[w]=S,n(S,a)}function n(i,O){var w={};for(var y in typeof O=="string"&&(O=i[O]),i)y!=="em"&&(w[y]=i[y]-O);return w}function c(i){for(var O=i.height,w=i.data,y=3;y0;y-=4)if(w[y]!==0)return Math.floor(.25*(y-3)/O)}d.exports=l,l.canvas=document.createElement("canvas"),l.cache={}},46492:function(d,l,n){var c=n(90720),b=Object.prototype.toString,i=Object.prototype.hasOwnProperty;d.exports=function(O,w,y){if(!c(w))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=y),b.call(O)==="[object Array]"?function(a,u,h){for(var m=0,v=a.length;m"u"&&!n.canvas)return null;var c=n.canvas||document.createElement("canvas");typeof n.width=="number"&&(c.width=n.width),typeof n.height=="number"&&(c.height=n.height);var b,i=n;try{var O=[l];l.indexOf("webgl")===0&&O.push("experimental-"+l);for(var w=0;w"u"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?c:ArrayBuffer,"%ArrayIteratorPrototype%":u&&m?m([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?c:Atomics,"%BigInt%":typeof BigInt>"u"?c:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?c:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?c:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?c:Float32Array,"%Float64Array%":typeof Float64Array>"u"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?c:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?c:Int8Array,"%Int16Array%":typeof Int16Array>"u"?c:Int16Array,"%Int32Array%":typeof Int32Array>"u"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&m?m(m([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map>"u"?c:Map,"%MapIteratorPrototype%":typeof Map<"u"&&u&&m?m(new Map()[Symbol.iterator]()):c,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?c:Promise,"%Proxy%":typeof Proxy>"u"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?c:Set,"%SetIteratorPrototype%":typeof Set<"u"&&u&&m?m(new Set()[Symbol.iterator]()):c,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&m?m(""[Symbol.iterator]()):c,"%Symbol%":u?Symbol:c,"%SyntaxError%":b,"%ThrowTypeError%":a,"%TypedArray%":_,"%TypeError%":O,"%Uint8Array%":typeof Uint8Array>"u"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?c:WeakMap,"%WeakRef%":typeof WeakRef>"u"?c:WeakRef,"%WeakSet%":typeof WeakSet>"u"?c:WeakSet};if(m)try{null.error}catch(Q){var A=m(m(Q));S["%Error.prototype%"]=A}var x=function Q(j){var U;if(j==="%AsyncFunction%")U=w("async function () {}");else if(j==="%GeneratorFunction%")U=w("function* () {}");else if(j==="%AsyncGeneratorFunction%")U=w("async function* () {}");else if(j==="%AsyncGenerator%"){var X=Q("%AsyncGeneratorFunction%");X&&(U=X.prototype)}else if(j==="%AsyncIteratorPrototype%"){var te=Q("%AsyncGenerator%");te&&m&&(U=m(te.prototype))}return S[j]=U,U},R={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=n(8844),T=n(92064),E=M.call(Function.call,Array.prototype.concat),C=M.call(Function.apply,Array.prototype.splice),L=M.call(Function.call,String.prototype.replace),D=M.call(Function.call,String.prototype.slice),k=M.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,$=function(Q,j){var U,X=Q;if(T(R,X)&&(X="%"+(U=R[X])[0]+"%"),T(S,X)){var te=S[X];if(te===v&&(te=x(X)),te===void 0&&!j)throw new O("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:U,name:X,value:te}}throw new b("intrinsic "+Q+" does not exist!")};d.exports=function(Q,j){if(typeof Q!="string"||Q.length===0)throw new O("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new O('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,Q)===null)throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=function(ce){var de=D(ce,0,1),ve=D(ce,-1);if(de==="%"&&ve!=="%")throw new b("invalid intrinsic syntax, expected closing `%`");if(ve==="%"&&de!=="%")throw new b("invalid intrinsic syntax, expected opening `%`");var ye=[];return L(ce,I,function(_e,Se,Te,Pe){ye[ye.length]=Te?L(Pe,z,"$1"):Se||_e}),ye}(Q),X=U.length>0?U[0]:"",te=$("%"+X+"%",j),W=te.name,K=te.value,oe=!1,q=te.alias;q&&(X=q[0],C(U,E([0,1],q)));for(var Y=1,ee=!0;Y=U.length){var ae=y(K,me);K=(ee=!!ae)&&"get"in ae&&!("originalValue"in ae.get)?ae.get:K[me]}else ee=T(K,me),K=K[me];ee&&!oe&&(S[W]=K)}}return K}},12408:function(d){d.exports=function(l,n){var c=n[0],b=n[1],i=n[2],O=n[3],w=n[4],y=n[5],p=n[6],a=n[7],u=n[8],h=n[9],m=n[10],v=n[11],_=n[12],S=n[13],A=n[14],x=n[15];return l[0]=y*(m*x-v*A)-h*(p*x-a*A)+S*(p*v-a*m),l[1]=-(b*(m*x-v*A)-h*(i*x-O*A)+S*(i*v-O*m)),l[2]=b*(p*x-a*A)-y*(i*x-O*A)+S*(i*a-O*p),l[3]=-(b*(p*v-a*m)-y*(i*v-O*m)+h*(i*a-O*p)),l[4]=-(w*(m*x-v*A)-u*(p*x-a*A)+_*(p*v-a*m)),l[5]=c*(m*x-v*A)-u*(i*x-O*A)+_*(i*v-O*m),l[6]=-(c*(p*x-a*A)-w*(i*x-O*A)+_*(i*a-O*p)),l[7]=c*(p*v-a*m)-w*(i*v-O*m)+u*(i*a-O*p),l[8]=w*(h*x-v*S)-u*(y*x-a*S)+_*(y*v-a*h),l[9]=-(c*(h*x-v*S)-u*(b*x-O*S)+_*(b*v-O*h)),l[10]=c*(y*x-a*S)-w*(b*x-O*S)+_*(b*a-O*y),l[11]=-(c*(y*v-a*h)-w*(b*v-O*h)+u*(b*a-O*y)),l[12]=-(w*(h*A-m*S)-u*(y*A-p*S)+_*(y*m-p*h)),l[13]=c*(h*A-m*S)-u*(b*A-i*S)+_*(b*m-i*h),l[14]=-(c*(y*A-p*S)-w*(b*A-i*S)+_*(b*p-i*y)),l[15]=c*(y*m-p*h)-w*(b*m-i*h)+u*(b*p-i*y),l}},76860:function(d){d.exports=function(l){var n=new Float32Array(16);return n[0]=l[0],n[1]=l[1],n[2]=l[2],n[3]=l[3],n[4]=l[4],n[5]=l[5],n[6]=l[6],n[7]=l[7],n[8]=l[8],n[9]=l[9],n[10]=l[10],n[11]=l[11],n[12]=l[12],n[13]=l[13],n[14]=l[14],n[15]=l[15],n}},64492:function(d){d.exports=function(l,n){return l[0]=n[0],l[1]=n[1],l[2]=n[2],l[3]=n[3],l[4]=n[4],l[5]=n[5],l[6]=n[6],l[7]=n[7],l[8]=n[8],l[9]=n[9],l[10]=n[10],l[11]=n[11],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15],l}},54212:function(d){d.exports=function(){var l=new Float32Array(16);return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},70800:function(d){d.exports=function(l){var n=l[0],c=l[1],b=l[2],i=l[3],O=l[4],w=l[5],y=l[6],p=l[7],a=l[8],u=l[9],h=l[10],m=l[11],v=l[12],_=l[13],S=l[14],A=l[15];return(n*w-c*O)*(h*A-m*S)-(n*y-b*O)*(u*A-m*_)+(n*p-i*O)*(u*S-h*_)+(c*y-b*w)*(a*A-m*v)-(c*p-i*w)*(a*S-h*v)+(b*p-i*y)*(a*_-u*v)}},61784:function(d){d.exports=function(l,n){var c=n[0],b=n[1],i=n[2],O=n[3],w=c+c,y=b+b,p=i+i,a=c*w,u=b*w,h=b*y,m=i*w,v=i*y,_=i*p,S=O*w,A=O*y,x=O*p;return l[0]=1-h-_,l[1]=u+x,l[2]=m-A,l[3]=0,l[4]=u-x,l[5]=1-a-_,l[6]=v+S,l[7]=0,l[8]=m+A,l[9]=v-S,l[10]=1-a-h,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},91616:function(d){d.exports=function(l,n,c){var b,i,O,w=c[0],y=c[1],p=c[2],a=Math.sqrt(w*w+y*y+p*p);return Math.abs(a)<1e-6?null:(w*=a=1/a,y*=a,p*=a,b=Math.sin(n),O=1-(i=Math.cos(n)),l[0]=w*w*O+i,l[1]=y*w*O+p*b,l[2]=p*w*O-y*b,l[3]=0,l[4]=w*y*O-p*b,l[5]=y*y*O+i,l[6]=p*y*O+w*b,l[7]=0,l[8]=w*p*O+y*b,l[9]=y*p*O-w*b,l[10]=p*p*O+i,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l)}},51944:function(d){d.exports=function(l,n,c){var b=n[0],i=n[1],O=n[2],w=n[3],y=b+b,p=i+i,a=O+O,u=b*y,h=b*p,m=b*a,v=i*p,_=i*a,S=O*a,A=w*y,x=w*p,R=w*a;return l[0]=1-(v+S),l[1]=h+R,l[2]=m-x,l[3]=0,l[4]=h-R,l[5]=1-(u+S),l[6]=_+A,l[7]=0,l[8]=m+x,l[9]=_-A,l[10]=1-(u+v),l[11]=0,l[12]=c[0],l[13]=c[1],l[14]=c[2],l[15]=1,l}},69444:function(d){d.exports=function(l,n){return l[0]=n[0],l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=n[1],l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=n[2],l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},48268:function(d){d.exports=function(l,n){return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=n[0],l[13]=n[1],l[14]=n[2],l[15]=1,l}},21856:function(d){d.exports=function(l,n){var c=Math.sin(n),b=Math.cos(n);return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=b,l[6]=c,l[7]=0,l[8]=0,l[9]=-c,l[10]=b,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},79216:function(d){d.exports=function(l,n){var c=Math.sin(n),b=Math.cos(n);return l[0]=b,l[1]=0,l[2]=-c,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=c,l[9]=0,l[10]=b,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},57736:function(d){d.exports=function(l,n){var c=Math.sin(n),b=Math.cos(n);return l[0]=b,l[1]=c,l[2]=0,l[3]=0,l[4]=-c,l[5]=b,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},38848:function(d){d.exports=function(l,n,c,b,i,O,w){var y=1/(c-n),p=1/(i-b),a=1/(O-w);return l[0]=2*O*y,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=2*O*p,l[6]=0,l[7]=0,l[8]=(c+n)*y,l[9]=(i+b)*p,l[10]=(w+O)*a,l[11]=-1,l[12]=0,l[13]=0,l[14]=w*O*2*a,l[15]=0,l}},36635:function(d){d.exports=function(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},36524:function(d,l,n){d.exports={create:n(54212),clone:n(76860),copy:n(64492),identity:n(36635),transpose:n(86520),invert:n(4308),adjoint:n(12408),determinant:n(70800),multiply:n(80944),translate:n(35176),scale:n(68152),rotate:n(30016),rotateX:n(15456),rotateY:n(64840),rotateZ:n(4192),fromRotation:n(91616),fromRotationTranslation:n(51944),fromScaling:n(69444),fromTranslation:n(48268),fromXRotation:n(21856),fromYRotation:n(79216),fromZRotation:n(57736),fromQuat:n(61784),frustum:n(38848),perspective:n(51296),perspectiveFromFieldOfView:n(63688),ortho:n(97688),lookAt:n(56508),str:n(89412)}},4308:function(d){d.exports=function(l,n){var c=n[0],b=n[1],i=n[2],O=n[3],w=n[4],y=n[5],p=n[6],a=n[7],u=n[8],h=n[9],m=n[10],v=n[11],_=n[12],S=n[13],A=n[14],x=n[15],R=c*y-b*w,M=c*p-i*w,T=c*a-O*w,E=b*p-i*y,C=b*a-O*y,L=i*a-O*p,D=u*S-h*_,k=u*A-m*_,I=u*x-v*_,z=h*A-m*S,$=h*x-v*S,Q=m*x-v*A,j=R*Q-M*$+T*z+E*I-C*k+L*D;return j?(j=1/j,l[0]=(y*Q-p*$+a*z)*j,l[1]=(i*$-b*Q-O*z)*j,l[2]=(S*L-A*C+x*E)*j,l[3]=(m*C-h*L-v*E)*j,l[4]=(p*I-w*Q-a*k)*j,l[5]=(c*Q-i*I+O*k)*j,l[6]=(A*T-_*L-x*M)*j,l[7]=(u*L-m*T+v*M)*j,l[8]=(w*$-y*I+a*D)*j,l[9]=(b*I-c*$-O*D)*j,l[10]=(_*C-S*T+x*R)*j,l[11]=(h*T-u*C-v*R)*j,l[12]=(y*k-w*z-p*D)*j,l[13]=(c*z-b*k+i*D)*j,l[14]=(S*M-_*E-A*R)*j,l[15]=(u*E-h*M+m*R)*j,l):null}},56508:function(d,l,n){var c=n(36635);d.exports=function(b,i,O,w){var y,p,a,u,h,m,v,_,S,A,x=i[0],R=i[1],M=i[2],T=w[0],E=w[1],C=w[2],L=O[0],D=O[1],k=O[2];return Math.abs(x-L)<1e-6&&Math.abs(R-D)<1e-6&&Math.abs(M-k)<1e-6?c(b):(v=x-L,_=R-D,S=M-k,y=E*(S*=A=1/Math.sqrt(v*v+_*_+S*S))-C*(_*=A),p=C*(v*=A)-T*S,a=T*_-E*v,(A=Math.sqrt(y*y+p*p+a*a))?(y*=A=1/A,p*=A,a*=A):(y=0,p=0,a=0),u=_*a-S*p,h=S*y-v*a,m=v*p-_*y,(A=Math.sqrt(u*u+h*h+m*m))?(u*=A=1/A,h*=A,m*=A):(u=0,h=0,m=0),b[0]=y,b[1]=u,b[2]=v,b[3]=0,b[4]=p,b[5]=h,b[6]=_,b[7]=0,b[8]=a,b[9]=m,b[10]=S,b[11]=0,b[12]=-(y*x+p*R+a*M),b[13]=-(u*x+h*R+m*M),b[14]=-(v*x+_*R+S*M),b[15]=1,b)}},80944:function(d){d.exports=function(l,n,c){var b=n[0],i=n[1],O=n[2],w=n[3],y=n[4],p=n[5],a=n[6],u=n[7],h=n[8],m=n[9],v=n[10],_=n[11],S=n[12],A=n[13],x=n[14],R=n[15],M=c[0],T=c[1],E=c[2],C=c[3];return l[0]=M*b+T*y+E*h+C*S,l[1]=M*i+T*p+E*m+C*A,l[2]=M*O+T*a+E*v+C*x,l[3]=M*w+T*u+E*_+C*R,M=c[4],T=c[5],E=c[6],C=c[7],l[4]=M*b+T*y+E*h+C*S,l[5]=M*i+T*p+E*m+C*A,l[6]=M*O+T*a+E*v+C*x,l[7]=M*w+T*u+E*_+C*R,M=c[8],T=c[9],E=c[10],C=c[11],l[8]=M*b+T*y+E*h+C*S,l[9]=M*i+T*p+E*m+C*A,l[10]=M*O+T*a+E*v+C*x,l[11]=M*w+T*u+E*_+C*R,M=c[12],T=c[13],E=c[14],C=c[15],l[12]=M*b+T*y+E*h+C*S,l[13]=M*i+T*p+E*m+C*A,l[14]=M*O+T*a+E*v+C*x,l[15]=M*w+T*u+E*_+C*R,l}},97688:function(d){d.exports=function(l,n,c,b,i,O,w){var y=1/(n-c),p=1/(b-i),a=1/(O-w);return l[0]=-2*y,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=-2*p,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=2*a,l[11]=0,l[12]=(n+c)*y,l[13]=(i+b)*p,l[14]=(w+O)*a,l[15]=1,l}},51296:function(d){d.exports=function(l,n,c,b,i){var O=1/Math.tan(n/2),w=1/(b-i);return l[0]=O/c,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=O,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=(i+b)*w,l[11]=-1,l[12]=0,l[13]=0,l[14]=2*i*b*w,l[15]=0,l}},63688:function(d){d.exports=function(l,n,c,b){var i=Math.tan(n.upDegrees*Math.PI/180),O=Math.tan(n.downDegrees*Math.PI/180),w=Math.tan(n.leftDegrees*Math.PI/180),y=Math.tan(n.rightDegrees*Math.PI/180),p=2/(w+y),a=2/(i+O);return l[0]=p,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=a,l[6]=0,l[7]=0,l[8]=-(w-y)*p*.5,l[9]=(i-O)*a*.5,l[10]=b/(c-b),l[11]=-1,l[12]=0,l[13]=0,l[14]=b*c/(c-b),l[15]=0,l}},30016:function(d){d.exports=function(l,n,c,b){var i,O,w,y,p,a,u,h,m,v,_,S,A,x,R,M,T,E,C,L,D,k,I,z,$=b[0],Q=b[1],j=b[2],U=Math.sqrt($*$+Q*Q+j*j);return Math.abs(U)<1e-6?null:($*=U=1/U,Q*=U,j*=U,i=Math.sin(c),w=1-(O=Math.cos(c)),y=n[0],p=n[1],a=n[2],u=n[3],h=n[4],m=n[5],v=n[6],_=n[7],S=n[8],A=n[9],x=n[10],R=n[11],M=$*$*w+O,T=Q*$*w+j*i,E=j*$*w-Q*i,C=$*Q*w-j*i,L=Q*Q*w+O,D=j*Q*w+$*i,k=$*j*w+Q*i,I=Q*j*w-$*i,z=j*j*w+O,l[0]=y*M+h*T+S*E,l[1]=p*M+m*T+A*E,l[2]=a*M+v*T+x*E,l[3]=u*M+_*T+R*E,l[4]=y*C+h*L+S*D,l[5]=p*C+m*L+A*D,l[6]=a*C+v*L+x*D,l[7]=u*C+_*L+R*D,l[8]=y*k+h*I+S*z,l[9]=p*k+m*I+A*z,l[10]=a*k+v*I+x*z,l[11]=u*k+_*I+R*z,n!==l&&(l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l)}},15456:function(d){d.exports=function(l,n,c){var b=Math.sin(c),i=Math.cos(c),O=n[4],w=n[5],y=n[6],p=n[7],a=n[8],u=n[9],h=n[10],m=n[11];return n!==l&&(l[0]=n[0],l[1]=n[1],l[2]=n[2],l[3]=n[3],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l[4]=O*i+a*b,l[5]=w*i+u*b,l[6]=y*i+h*b,l[7]=p*i+m*b,l[8]=a*i-O*b,l[9]=u*i-w*b,l[10]=h*i-y*b,l[11]=m*i-p*b,l}},64840:function(d){d.exports=function(l,n,c){var b=Math.sin(c),i=Math.cos(c),O=n[0],w=n[1],y=n[2],p=n[3],a=n[8],u=n[9],h=n[10],m=n[11];return n!==l&&(l[4]=n[4],l[5]=n[5],l[6]=n[6],l[7]=n[7],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l[0]=O*i-a*b,l[1]=w*i-u*b,l[2]=y*i-h*b,l[3]=p*i-m*b,l[8]=O*b+a*i,l[9]=w*b+u*i,l[10]=y*b+h*i,l[11]=p*b+m*i,l}},4192:function(d){d.exports=function(l,n,c){var b=Math.sin(c),i=Math.cos(c),O=n[0],w=n[1],y=n[2],p=n[3],a=n[4],u=n[5],h=n[6],m=n[7];return n!==l&&(l[8]=n[8],l[9]=n[9],l[10]=n[10],l[11]=n[11],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l[0]=O*i+a*b,l[1]=w*i+u*b,l[2]=y*i+h*b,l[3]=p*i+m*b,l[4]=a*i-O*b,l[5]=u*i-w*b,l[6]=h*i-y*b,l[7]=m*i-p*b,l}},68152:function(d){d.exports=function(l,n,c){var b=c[0],i=c[1],O=c[2];return l[0]=n[0]*b,l[1]=n[1]*b,l[2]=n[2]*b,l[3]=n[3]*b,l[4]=n[4]*i,l[5]=n[5]*i,l[6]=n[6]*i,l[7]=n[7]*i,l[8]=n[8]*O,l[9]=n[9]*O,l[10]=n[10]*O,l[11]=n[11]*O,l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15],l}},89412:function(d){d.exports=function(l){return"mat4("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+", "+l[4]+", "+l[5]+", "+l[6]+", "+l[7]+", "+l[8]+", "+l[9]+", "+l[10]+", "+l[11]+", "+l[12]+", "+l[13]+", "+l[14]+", "+l[15]+")"}},35176:function(d){d.exports=function(l,n,c){var b,i,O,w,y,p,a,u,h,m,v,_,S=c[0],A=c[1],x=c[2];return n===l?(l[12]=n[0]*S+n[4]*A+n[8]*x+n[12],l[13]=n[1]*S+n[5]*A+n[9]*x+n[13],l[14]=n[2]*S+n[6]*A+n[10]*x+n[14],l[15]=n[3]*S+n[7]*A+n[11]*x+n[15]):(b=n[0],i=n[1],O=n[2],w=n[3],y=n[4],p=n[5],a=n[6],u=n[7],h=n[8],m=n[9],v=n[10],_=n[11],l[0]=b,l[1]=i,l[2]=O,l[3]=w,l[4]=y,l[5]=p,l[6]=a,l[7]=u,l[8]=h,l[9]=m,l[10]=v,l[11]=_,l[12]=b*S+y*A+h*x+n[12],l[13]=i*S+p*A+m*x+n[13],l[14]=O*S+a*A+v*x+n[14],l[15]=w*S+u*A+_*x+n[15]),l}},86520:function(d){d.exports=function(l,n){if(l===n){var c=n[1],b=n[2],i=n[3],O=n[6],w=n[7],y=n[11];l[1]=n[4],l[2]=n[8],l[3]=n[12],l[4]=c,l[6]=n[9],l[7]=n[13],l[8]=b,l[9]=O,l[11]=n[14],l[12]=i,l[13]=w,l[14]=y}else l[0]=n[0],l[1]=n[4],l[2]=n[8],l[3]=n[12],l[4]=n[1],l[5]=n[5],l[6]=n[9],l[7]=n[13],l[8]=n[2],l[9]=n[6],l[10]=n[10],l[11]=n[14],l[12]=n[3],l[13]=n[7],l[14]=n[11],l[15]=n[15];return l}},23352:function(d,l,n){var c=n(42771),b=n(55616),i=n(28624),O=n(55212),w=n(60463),y=n(72160),p=n(33888),a=n(14144),u=n(51160),h=n(58908),m=n(65819),v=n(23464),_=n(63768),S=n(50896),A=n(71920),x=n(47520),R=n(308).nextPow2,M=new w,T=!1;if(document.body){var E=document.body.appendChild(document.createElement("div"));E.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(E).fontStretch&&(T=!0),document.body.removeChild(E)}var C=function(L){(function(D){return typeof D=="function"&&D._gl&&D.prop&&D.texture&&D.buffer})(L)?(L={regl:L},this.gl=L.regl._gl):this.gl=O(L),this.shader=M.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=L.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),M.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(L)?L:{})};C.prototype.createShader=function(){var L=this.regl,D=L({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:L.prop("count"),offset:L.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:L.this("sizeBuffer")},width:{offset:0,stride:8,buffer:L.this("sizeBuffer")},char:L.this("charBuffer"),position:L.this("position")},uniforms:{atlasSize:function(k,I){return[I.atlas.width,I.atlas.height]},atlasDim:function(k,I){return[I.atlas.cols,I.atlas.rows]},atlas:function(k,I){return I.atlas.texture},charStep:function(k,I){return I.atlas.step},em:function(k,I){return I.atlas.em},color:L.prop("color"),opacity:L.prop("opacity"),viewport:L.this("viewportArray"),scale:L.this("scale"),align:L.prop("align"),baseline:L.prop("baseline"),translate:L.this("translate"),positionOffset:L.prop("positionOffset")},primitive:"points",viewport:L.this("viewport"),vert:` +`):Y=" ".concat(j," ").concat(Y)),$=O(this,u(D).call(this,"".concat(q).concat(Y)))}return Error.stackTraceLimit=W,$.generatedMessage=!Q,Object.defineProperty(w($),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),$.code="ERR_ASSERTION",$.actual=X,$.expected=te,$.operator=j,Error.captureStackTrace&&Error.captureStackTrace(w($),U),$.stack,$.name="AssertionError",O($)}var k,I;return function(z,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create($&&$.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),$&&a(z,$)}(D,L),k=D,I=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:m.custom,value:function(z,$){return m(this,function(Q){for(var j=1;j2?"one of ".concat(h," ").concat(u.slice(0,m-1).join(", "),", or ")+u[m-1]:m===2?"one of ".concat(h," ").concat(u[0]," or ").concat(u[1]):"of ".concat(h," ").concat(u[0])}return"of ".concat(h," ").concat(String(u))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(u,h,m){var v,_,S,A,x;if(O===void 0&&(O=n(45408)),O(typeof u=="string","'name' must be a string"),typeof h=="string"&&(_="not ",h.substr(0,4)===_)?(v="must not be",h=h.replace(/^not /,"")):v="must be",function(M,T,E){return(E===void 0||E>M.length)&&(E=M.length),M.substring(E-9,E)===T}(u," argument"))S="The ".concat(u," ").concat(v," ").concat(a(h,"type"));else{var R=(typeof x!="number"&&(x=0),x+1>(A=u).length||A.indexOf(".",x)===-1?"argument":"property");S='The "'.concat(u,'" ').concat(R," ").concat(v," ").concat(a(h,"type"))}return S+". Received type ".concat(c(m))},TypeError),p("ERR_INVALID_ARG_VALUE",function(u,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";w===void 0&&(w=n(35840));var v=w.inspect(h);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(u,"' ").concat(m,". Received ").concat(v)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(u,h,m){var v;return v=m&&m.constructor&&m.constructor.name?"instance of ".concat(m.constructor.name):"type ".concat(c(m)),"Expected ".concat(u,' to be returned from the "').concat(h,'"')+" function but got ".concat(v,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var u=arguments.length,h=new Array(u),m=0;m0,"At least one arg needs to be specified");var v="The ",_=h.length;switch(h=h.map(function(S){return'"'.concat(S,'"')}),_){case 1:v+="".concat(h[0]," argument");break;case 2:v+="".concat(h[0]," and ").concat(h[1]," arguments");break;default:v+=h.slice(0,_-1).join(", "),v+=", and ".concat(h[_-1]," arguments")}return"".concat(v," must be specified")},TypeError),d.exports.codes=y},25116:function(d,l,n){function c(de,ve){return function(ye){if(Array.isArray(ye))return ye}(de)||function(ye,_e){var Se=[],Te=!0,Pe=!1,Ie=void 0;try{for(var ze,De=ye[Symbol.iterator]();!(Te=(ze=De.next()).done)&&(Se.push(ze.value),!_e||Se.length!==_e);Te=!0);}catch(He){Pe=!0,Ie=He}finally{try{Te||De.return==null||De.return()}finally{if(Pe)throw Ie}}return Se}(de,ve)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(de){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},b(de)}var i=/a/g.flags!==void 0,O=function(de){var ve=[];return de.forEach(function(ye){return ve.push(ye)}),ve},w=function(de){var ve=[];return de.forEach(function(ye,_e){return ve.push([_e,ye])}),ve},y=Object.is?Object.is:n(39896),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},a=Number.isNaN?Number.isNaN:n(1560);function u(de){return de.call.bind(de)}var h=u(Object.prototype.hasOwnProperty),m=u(Object.prototype.propertyIsEnumerable),v=u(Object.prototype.toString),_=n(35840).types,S=_.isAnyArrayBuffer,A=_.isArrayBufferView,x=_.isDate,R=_.isMap,M=_.isRegExp,T=_.isSet,E=_.isNativeError,C=_.isBoxedPrimitive,L=_.isNumberObject,D=_.isStringObject,k=_.isBooleanObject,I=_.isBigIntObject,z=_.isSymbolObject,$=_.isFloat32Array,Q=_.isFloat64Array;function j(de){if(de.length===0||de.length>10)return!0;for(var ve=0;ve57)return!0}return de.length===10&&de>=Math.pow(2,32)}function U(de){return Object.keys(de).filter(j).concat(p(de).filter(Object.prototype.propertyIsEnumerable.bind(de)))}function X(de,ve){if(de===ve)return 0;for(var ye=de.length,_e=ve.length,Se=0,Te=Math.min(ye,_e);Se"u"?[]:new Uint8Array(256),i=0;i<64;i++)b[c.charCodeAt(i)]=i;var O=function(y){var p,a=new Uint8Array(y),u=a.length,h="";for(p=0;p>2],h+=c[(3&a[p])<<4|a[p+1]>>4],h+=c[(15&a[p+1])<<2|a[p+2]>>6],h+=c[63&a[p+2]];return u%3==2?h=h.substring(0,h.length-1)+"=":u%3==1&&(h=h.substring(0,h.length-2)+"=="),h},w=function(y){var p,a,u,h,m,v=.75*y.length,_=y.length,S=0;y[y.length-1]==="="&&(v--,y[y.length-2]==="="&&v--);var A=new ArrayBuffer(v),x=new Uint8Array(A);for(p=0;p<_;p+=4)a=b[y.charCodeAt(p)],u=b[y.charCodeAt(p+1)],h=b[y.charCodeAt(p+2)],m=b[y.charCodeAt(p+3)],x[S++]=a<<2|u>>4,x[S++]=(15&u)<<4|h>>2,x[S++]=(3&h)<<6|63&m;return A}},59968:function(d,l){l.byteLength=function(p){var a=w(p),u=a[0],h=a[1];return 3*(u+h)/4-h},l.toByteArray=function(p){var a,u,h=w(p),m=h[0],v=h[1],_=new b(function(x,R,M){return 3*(R+M)/4-M}(0,m,v)),S=0,A=v>0?m-4:m;for(u=0;u>16&255,_[S++]=a>>8&255,_[S++]=255&a;return v===2&&(a=c[p.charCodeAt(u)]<<2|c[p.charCodeAt(u+1)]>>4,_[S++]=255&a),v===1&&(a=c[p.charCodeAt(u)]<<10|c[p.charCodeAt(u+1)]<<4|c[p.charCodeAt(u+2)]>>2,_[S++]=a>>8&255,_[S++]=255&a),_},l.fromByteArray=function(p){for(var a,u=p.length,h=u%3,m=[],v=16383,_=0,S=u-h;_S?S:_+v));return h===1?(a=p[u-1],m.push(n[a>>2]+n[a<<4&63]+"==")):h===2&&(a=(p[u-2]<<8)+p[u-1],m.push(n[a>>10]+n[a>>4&63]+n[a<<2&63]+"=")),m.join("")};for(var n=[],c=[],b=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=0;O<64;++O)n[O]=i[O],c[i.charCodeAt(O)]=O;function w(p){var a=p.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var u=p.indexOf("=");return u===-1&&(u=a),[u,u===a?0:4-u%4]}function y(p,a,u){for(var h,m,v=[],_=a;_>18&63]+n[m>>12&63]+n[m>>6&63]+n[63&m]);return v.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},64928:function(d){function l(w,y,p,a,u){for(var h=u+1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)>=0?(h=m,u=m-1):a=m+1}return h}function n(w,y,p,a,u){for(var h=u+1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)>0?(h=m,u=m-1):a=m+1}return h}function c(w,y,p,a,u){for(var h=a-1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)<0?(h=m,a=m+1):u=m-1}return h}function b(w,y,p,a,u){for(var h=a-1;a<=u;){var m=a+u>>>1,v=w[m];(p!==void 0?p(v,y):v-y)<=0?(h=m,a=m+1):u=m-1}return h}function i(w,y,p,a,u){for(;a<=u;){var h=a+u>>>1,m=w[h],v=p!==void 0?p(m,y):m-y;if(v===0)return h;v<=0?a=h+1:u=h-1}return-1}function O(w,y,p,a,u,h){return typeof p=="function"?h(w,y,p,a===void 0?0:0|a,u===void 0?w.length-1:0|u):h(w,y,void 0,p===void 0?0:0|p,a===void 0?w.length-1:0|a)}d.exports={ge:function(w,y,p,a,u){return O(w,y,p,a,u,l)},gt:function(w,y,p,a,u){return O(w,y,p,a,u,n)},lt:function(w,y,p,a,u){return O(w,y,p,a,u,c)},le:function(w,y,p,a,u){return O(w,y,p,a,u,b)},eq:function(w,y,p,a,u){return O(w,y,p,a,u,i)}}},308:function(d,l){function n(b){var i=32;return(b&=-b)&&i--,65535&b&&(i-=16),16711935&b&&(i-=8),252645135&b&&(i-=4),858993459&b&&(i-=2),1431655765&b&&(i-=1),i}l.INT_BITS=32,l.INT_MAX=2147483647,l.INT_MIN=-2147483648,l.sign=function(b){return(b>0)-(b<0)},l.abs=function(b){var i=b>>31;return(b^i)-i},l.min=function(b,i){return i^(b^i)&-(b65535)<<4,i|=O=((b>>>=i)>255)<<3,i|=O=((b>>>=O)>15)<<2,(i|=O=((b>>>=O)>3)<<1)|(b>>>=O)>>1},l.log10=function(b){return b>=1e9?9:b>=1e8?8:b>=1e7?7:b>=1e6?6:b>=1e5?5:b>=1e4?4:b>=1e3?3:b>=100?2:b>=10?1:0},l.popCount=function(b){return 16843009*((b=(858993459&(b-=b>>>1&1431655765))+(b>>>2&858993459))+(b>>>4)&252645135)>>>24},l.countTrailingZeros=n,l.nextPow2=function(b){return b+=b===0,--b,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,1+(b|=b>>>16)},l.prevPow2=function(b){return b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,(b|=b>>>16)-(b>>>1)},l.parity=function(b){return b^=b>>>16,b^=b>>>8,b^=b>>>4,27030>>>(b&=15)&1};var c=new Array(256);(function(b){for(var i=0;i<256;++i){var O=i,w=i,y=7;for(O>>>=1;O;O>>>=1)w<<=1,w|=1&O,--y;b[i]=w<>>8&255]<<16|c[b>>>16&255]<<8|c[b>>>24&255]},l.interleave2=function(b,i){return(b=1431655765&((b=858993459&((b=252645135&((b=16711935&((b&=65535)|b<<8))|b<<4))|b<<2))|b<<1))|(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i&=65535)|i<<8))|i<<4))|i<<2))|i<<1))<<1},l.deinterleave2=function(b,i){return(b=65535&((b=16711935&((b=252645135&((b=858993459&((b=b>>>i&1431655765)|b>>>1))|b>>>2))|b>>>4))|b>>>16))<<16>>16},l.interleave3=function(b,i,O){return b=1227133513&((b=3272356035&((b=251719695&((b=4278190335&((b&=1023)|b<<16))|b<<8))|b<<4))|b<<2),(b|=(i=1227133513&((i=3272356035&((i=251719695&((i=4278190335&((i&=1023)|i<<16))|i<<8))|i<<4))|i<<2))<<1)|(O=1227133513&((O=3272356035&((O=251719695&((O=4278190335&((O&=1023)|O<<16))|O<<8))|O<<4))|O<<2))<<2},l.deinterleave3=function(b,i){return(b=1023&((b=4278190335&((b=251719695&((b=3272356035&((b=b>>>i&1227133513)|b>>>2))|b>>>4))|b>>>8))|b>>>16))<<22>>22},l.nextCombination=function(b){var i=b|b-1;return i+1|(~i&-~i)-1>>>n(b)+1}},29620:function(d,l,n){var c=n(32420);d.exports=function(w,y){y||(y={});var p,a,u,h,m,v,_,S,A,x,R,M=y.cutoff==null?.25:y.cutoff,T=y.radius==null?8:y.radius,E=y.channel||0;if(ArrayBuffer.isView(w)||Array.isArray(w)){if(!y.width||!y.height)throw Error("For raw data width and height should be provided by options");p=y.width,a=y.height,h=w,v=y.stride?y.stride:Math.floor(w.length/p/a)}else window.HTMLCanvasElement&&w instanceof window.HTMLCanvasElement?(_=(S=w).getContext("2d"),p=S.width,a=S.height,h=(A=_.getImageData(0,0,p,a)).data,v=4):window.CanvasRenderingContext2D&&w instanceof window.CanvasRenderingContext2D?(_=w,p=(S=w.canvas).width,a=S.height,h=(A=_.getImageData(0,0,p,a)).data,v=4):window.ImageData&&w instanceof window.ImageData&&(A=w,p=w.width,a=w.height,h=A.data,v=4);if(u=Math.max(p,a),window.Uint8ClampedArray&&h instanceof window.Uint8ClampedArray||window.Uint8Array&&h instanceof window.Uint8Array)for(m=h,h=Array(p*a),x=0,R=m.length;x-1?b(y):y}},57916:function(d,l,n){var c=n(8844),b=n(53664),i=n(14500),O=b("%TypeError%"),w=b("%Function.prototype.apply%"),y=b("%Function.prototype.call%"),p=b("%Reflect.apply%",!0)||c.call(y,w),a=b("%Object.defineProperty%",!0),u=b("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}d.exports=function(m){if(typeof m!="function")throw new O("a function is required");var v=p(c,y,arguments);return i(v,1+u(0,m.length-(arguments.length-1)),!0)};var h=function(){return p(c,w,arguments)};a?a(d.exports,"apply",{value:h}):d.exports.apply=h},32420:function(d){d.exports=function(l,n,c){return nc?c:l:ln?n:l}},3808:function(d,l,n){var c=n(32420);function b(i,O){O==null&&(O=!0);var w=i[0],y=i[1],p=i[2],a=i[3];return a==null&&(a=O?1:255),O&&(w*=255,y*=255,p*=255,a*=255),16777216*(w=255&c(w,0,255))+((y=255&c(y,0,255))<<16)+((p=255&c(p,0,255))<<8)+(255&c(a,0,255))}d.exports=b,d.exports.to=b,d.exports.from=function(i,O){var w=(i=+i)>>>24,y=(16711680&i)>>>16,p=(65280&i)>>>8,a=255&i;return O===!1?[w,y,p,a]:[w/255,y/255,p/255,a/255]}},17592:function(d){d.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(d,l,n){var c=n(96824),b=n(32420),i=n(72512);d.exports=function(O,w){w!=="float"&&w||(w="array"),w==="uint"&&(w="uint8"),w==="uint_clamped"&&(w="uint8_clamped");var y=new(i(w))(4),p=w!=="uint8"&&w!=="uint8_clamped";return O.length&&typeof O!="string"||((O=c(O))[0]/=255,O[1]/=255,O[2]/=255),function(a){return a instanceof Uint8Array||a instanceof Uint8ClampedArray||!!(Array.isArray(a)&&(a[0]>1||a[0]===0)&&(a[1]>1||a[1]===0)&&(a[2]>1||a[2]===0)&&(!a[3]||a[3]>1))}(O)?(y[0]=O[0],y[1]=O[1],y[2]=O[2],y[3]=O[3]!=null?O[3]:255,p&&(y[0]/=255,y[1]/=255,y[2]/=255,y[3]/=255),y):(p?(y[0]=O[0],y[1]=O[1],y[2]=O[2],y[3]=O[3]!=null?O[3]:1):(y[0]=b(Math.floor(255*O[0]),0,255),y[1]=b(Math.floor(255*O[1]),0,255),y[2]=b(Math.floor(255*O[2]),0,255),y[3]=O[3]==null?255:b(Math.floor(255*O[3]),0,255)),y)}},81704:function(d,l,n){var c=n(17592),b=n(58908),i=n(31264);d.exports=function(w){var y,p,a=[],u=1;if(typeof w=="string")if(c[w])a=c[w].slice(),p="rgb";else if(w==="transparent")u=0,p="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(w)){var h=w.slice(1);u=1,(_=h.length)<=4?(a=[parseInt(h[0]+h[0],16),parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16)],_===4&&(u=parseInt(h[3]+h[3],16)/255)):(a=[parseInt(h[0]+h[1],16),parseInt(h[2]+h[3],16),parseInt(h[4]+h[5],16)],_===8&&(u=parseInt(h[6]+h[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),p="rgb"}else if(y=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(w)){var m=y[1],v=m==="rgb";p=h=m.replace(/a$/,"");var _=h==="cmyk"?4:h==="gray"?1:3;a=y[2].trim().split(/\s*,\s*/).map(function(A,x){if(/%$/.test(A))return x===_?parseFloat(A)/100:h==="rgb"?255*parseFloat(A)/100:parseFloat(A);if(h[x]==="h"){if(/deg$/.test(A))return parseFloat(A);if(O[A]!==void 0)return O[A]}return parseFloat(A)}),m===h&&a.push(1),u=v||a[_]===void 0?1:a[_],a=a.slice(0,_)}else w.length>10&&/[0-9](?:\s|\/)/.test(w)&&(a=w.match(/([0-9]+)/g).map(function(A){return parseFloat(A)}),p=w.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(w))if(b(w)){var S=i(w.r,w.red,w.R,null);S!==null?(p="rgb",a=[S,i(w.g,w.green,w.G),i(w.b,w.blue,w.B)]):(p="hsl",a=[i(w.h,w.hue,w.H),i(w.s,w.saturation,w.S),i(w.l,w.lightness,w.L,w.b,w.brightness)]),u=i(w.a,w.alpha,w.opacity,1),w.opacity!=null&&(u/=100)}else(Array.isArray(w)||n.g.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(w))&&(a=[w[0],w[1],w[2]],p="rgb",u=w.length===4?w[3]:1);else p="rgb",a=[w>>>16,(65280&w)>>>8,255&w];return{space:p,values:a,alpha:u}};var O={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}},96824:function(d,l,n){var c=n(81704),b=n(53576),i=n(32420);d.exports=function(O){var w,y=c(O);return y.space?((w=Array(3))[0]=i(y.values[0],0,255),w[1]=i(y.values[1],0,255),w[2]=i(y.values[2],0,255),y.space[0]==="h"&&(w=b.rgb(w)),w.push(i(y.alpha,0,1)),w):[]}},53576:function(d,l,n){var c=n(19336);d.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(b){var i,O,w,y,p,a=b[0]/360,u=b[1]/100,h=b[2]/100;if(u===0)return[p=255*h,p,p];i=2*h-(O=h<.5?h*(1+u):h+u-h*u),y=[0,0,0];for(var m=0;m<3;m++)(w=a+.3333333333333333*-(m-1))<0?w++:w>1&&w--,p=6*w<1?i+6*(O-i)*w:2*w<1?O:3*w<2?i+(O-i)*(.6666666666666666-w)*6:i,y[m]=255*p;return y}},c.hsl=function(b){var i,O,w=b[0]/255,y=b[1]/255,p=b[2]/255,a=Math.min(w,y,p),u=Math.max(w,y,p),h=u-a;return u===a?i=0:w===u?i=(y-p)/h:y===u?i=2+(p-w)/h:p===u&&(i=4+(w-y)/h),(i=Math.min(60*i,360))<0&&(i+=360),O=(a+u)/2,[i,100*(u===a?0:O<=.5?h/(u+a):h/(2-u-a)),100*O]}},19336:function(d){d.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(d){d.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(d,l,n){d.exports={parse:n(46416),stringify:n(49395)}},8744:function(d,l,n){var c=n(30584);d.exports={isSize:function(b){return/^[\d\.]/.test(b)||b.indexOf("/")!==-1||c.indexOf(b)!==-1}}},46416:function(d,l,n){var c=n(92384),b=n(68194),i=n(3748),O=n(2904),w=n(47916),y=n(7294),p=n(39956),a=n(8744).isSize;d.exports=h;var u=h.cache={};function h(v){if(typeof v!="string")throw new Error("Font argument must be a string.");if(u[v])return u[v];if(v==="")throw new Error("Cannot parse an empty string.");if(i.indexOf(v)!==-1)return u[v]={system:v};for(var _,S={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},A=p(v,/\s+/);_=A.shift();){if(b.indexOf(_)!==-1)return["style","variant","weight","stretch"].forEach(function(R){S[R]=_}),u[v]=S;if(w.indexOf(_)===-1)if(_!=="normal"&&_!=="small-caps")if(y.indexOf(_)===-1){if(O.indexOf(_)===-1){if(a(_)){var x=p(_,"/");if(S.size=x[0],x[1]!=null?S.lineHeight=m(x[1]):A[0]==="/"&&(A.shift(),S.lineHeight=m(A.shift())),!A.length)throw new Error("Missing required font-family.");return S.family=p(A.join(" "),/\s*,\s*/).map(c),u[v]=S}throw new Error("Unknown or unsupported font token: "+_)}S.weight=_}else S.stretch=_;else S.variant=_;else S.style=_}throw new Error("Missing required font-size.")}function m(v){var _=parseFloat(v);return _.toString()===v?_:v}},49395:function(d,l,n){var c=n(55616),b=n(8744).isSize,i=v(n(68194)),O=v(n(3748)),w=v(n(2904)),y=v(n(47916)),p=v(n(7294)),a={normal:1,"small-caps":1},u={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},h="serif";function m(_,S){if(_&&!S[_]&&!i[_])throw Error("Unknown keyword `"+_+"`");return _}function v(_){for(var S={},A=0;A<_.length;A++)S[_[A]]=1;return S}d.exports=function(_){if((_=c(_,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"})).system)return _.system&&m(_.system,O),_.system;if(m(_.style,y),m(_.variant,a),m(_.weight,w),m(_.stretch,p),_.size==null&&(_.size="1rem"),typeof _.size=="number"&&(_.size+="px"),!b)throw Error("Bad size value `"+_.size+"`");_.family||(_.family=h),Array.isArray(_.family)&&(_.family.length||(_.family=[h]),_.family=_.family.map(function(A){return u[A]?A:'"'+A+'"'}).join(", "));var S=[];return S.push(_.style),_.variant!==_.style&&S.push(_.variant),_.weight!==_.variant&&_.weight!==_.style&&S.push(_.weight),_.stretch!==_.weight&&_.stretch!==_.variant&&_.stretch!==_.style&&S.push(_.stretch),S.push(_.size+(_.lineHeight==null||_.lineHeight==="normal"||_.lineHeight+""=="1"?"":"/"+_.lineHeight)),S.push(_.family),S.filter(Boolean).join(" ")}},27940:function(d,l,n){var c,b=n(81680),i=n(18496),O=n(87396),w=n(95920),y=n(50868),p=n(84323),a=Function.prototype.bind,u=Object.defineProperty,h=Object.prototype.hasOwnProperty;c=function(m,v,_){var S,A=i(v)&&O(v.value);return delete(S=w(v)).writable,delete S.value,S.get=function(){return!_.overwriteDefinition&&h.call(this,m)?A:(v.value=a.call(A,_.resolveContext?_.resolveContext(this):this),u(this,m,v),this[m])},S},d.exports=function(m){var v=y(arguments[1]);return b(v.resolveContext)&&O(v.resolveContext),p(m,function(_,S){return c(S,_,v)})}},21092:function(d,l,n){var c=n(81680),b=n(85488),i=n(38452),O=n(50868),w=n(71056),y=d.exports=function(p,a){var u,h,m,v,_;return arguments.length<2||typeof p!="string"?(v=a,a=p,p=null):v=arguments[2],c(p)?(u=w.call(p,"c"),h=w.call(p,"e"),m=w.call(p,"w")):(u=m=!0,h=!1),_={value:a,configurable:u,enumerable:h,writable:m},v?i(O(v),_):_};y.gs=function(p,a,u){var h,m,v,_;return typeof p!="string"?(v=u,u=a,a=p,p=null):v=arguments[3],c(a)?b(a)?c(u)?b(u)||(v=u,u=void 0):u=void 0:(v=a,a=u=void 0):a=void 0,c(p)?(h=w.call(p,"c"),m=w.call(p,"e")):(h=!0,m=!1),_={get:a,set:u,configurable:h,enumerable:m},v?i(O(v),_):_}},84706:function(d,l,n){function c(m,v){return mv?1:m>=v?0:NaN}n.d(l,{XE:function(){return c},kv:function(){return O},mo:function(){return y},Uf:function(){return p},SY:function(){return a},ik:function(){return u},oh:function(){return h}}),(b=c).length===1&&(i=b,b=function(m,v){return c(i(m),v)});var b,i;function O(m,v){var _,S,A=m.length,x=-1;if(v==null){for(;++x=_)for(S=_;++xS&&(S=_)}else for(;++x=_)for(S=_;++xS&&(S=_);return S}function w(m){return m===null?NaN:+m}function y(m,v){var _,S=m.length,A=S,x=-1,R=0;if(v==null)for(;++x=0;)for(v=(S=m[A]).length;--v>=0;)_[--R]=S[v];return _}function a(m,v){var _,S,A=m.length,x=-1;if(v==null){for(;++x=_)for(S=_;++x_&&(S=_)}else for(;++x=_)for(S=_;++x_&&(S=_);return S}function u(m,v,_){m=+m,v=+v,_=(A=arguments.length)<2?(v=m,m=0,1):A<3?1:+_;for(var S=-1,A=0|Math.max(0,Math.ceil((v-m)/_)),x=new Array(A);++S=A.length)return v!=null&&T.sort(v),_!=null?_(T):T;for(var D,k,I,z=-1,$=T.length,Q=A[E++],j=O(),U=C();++z<$;)(I=j.get(D=Q(k=T[z])+""))?I.push(k):j.set(D,[k]);return j.each(function(X,te){L(U,te,R(X,E,C,L))}),U}function M(T,E){if(++E>A.length)return T;var C,L=x[E-1];return _!=null&&E>=A.length?C=T.entries():(C=[],T.each(function(D,k){C.push({key:k,values:M(D,E)})})),L!=null?C.sort(function(D,k){return L(D.key,k.key)}):C}return S={object:function(T){return R(T,0,y,p)},map:function(T){return R(T,0,a,u)},entries:function(T){return M(R(T,0,a,u),0)},key:function(T){return A.push(T),S},sortKeys:function(T){return x[A.length-1]=T,S},sortValues:function(T){return v=T,S},rollup:function(T){return _=T,S}}}function y(){return{}}function p(v,_,S){v[_]=S}function a(){return O()}function u(v,_,S){v.set(_,S)}function h(){}var m=O.prototype;h.prototype={constructor:h,has:m.has,add:function(v){return this[c+(v+="")]=v,this},remove:m.remove,clear:m.clear,values:m.keys,size:m.size,empty:m.empty,each:m.each}},49812:function(d,l,n){function c(ze,De){var He;function Ve(){var $e,Oe,ke=He.length,Le=0,We=0;for($e=0;$e=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=He>=(ke=(nt+Ge)/2))?nt=ke:Ge=ke,$e=Ee,!(Ee=Ee[Xe=Ze<<1|Ue]))return $e[Xe]=Ne,ze;if(Le=+ze._x.call(null,Ee.data),We=+ze._y.call(null,Ee.data),De===Le&&He===We)return Ne.next=Ee,$e?$e[Xe]=Ne:ze._root=Ne,ze;do $e=$e?$e[Xe]=new Array(4):ze._root=new Array(4),(Ue=De>=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=He>=(ke=(nt+Ge)/2))?nt=ke:Ge=ke;while((Xe=Ze<<1|Ue)==(tt=(We>=ke)<<1|Le>=Oe));return $e[tt]=Ee,$e[Xe]=Ne,ze}function w(ze,De,He,Ve,$e){this.node=ze,this.x0=De,this.y0=He,this.x1=Ve,this.y1=$e}function y(ze){return ze[0]}function p(ze){return ze[1]}function a(ze,De,He){var Ve=new u(De??y,He??p,NaN,NaN,NaN,NaN);return ze==null?Ve:Ve.addAll(ze)}function u(ze,De,He,Ve,$e,Oe){this._x=ze,this._y=De,this._x0=He,this._y0=Ve,this._x1=$e,this._y1=Oe,this._root=void 0}function h(ze){for(var De={data:ze.data},He=De;ze=ze.next;)He=He.next={data:ze.data};return De}n.r(l),n.d(l,{forceCenter:function(){return c},forceCollide:function(){return S},forceLink:function(){return M},forceManyBody:function(){return Se},forceRadial:function(){return Te},forceSimulation:function(){return _e},forceX:function(){return Pe},forceY:function(){return Ie}});var m=a.prototype=u.prototype;function v(ze){return ze.x+ze.vx}function _(ze){return ze.y+ze.vy}function S(ze){var De,He,Ve=1,$e=1;function Oe(){for(var We,Ue,Ze,Xe,tt,Ee,Ne,je=De.length,nt=0;nt<$e;++nt)for(Ue=a(De,v,_).visitAfter(ke),We=0;WeXe+en||wttt+en||DtZe.index){var Gt=Xe-It.x-It.vx,Ct=tt-It.y-It.vy,_t=Gt*Gt+Ct*Ct;_tWe.r&&(We.r=We[Ue].r)}function Le(){if(De){var We,Ue,Ze=De.length;for(He=new Array(Ze),We=0;WeZe&&(Ze=Ve),$eXe&&(Xe=$e));if(We>Ze||Ue>Xe)return this;for(this.cover(We,Ue).cover(Ze,Xe),He=0;Heze||ze>=$e||Ve>De||De>=Oe;)switch(Le=(Dett||(Oe=We.y0)>Ee||(ke=We.x1)=ot)<<1|ze>=nt)&&(We=Ne[Ne.length-1],Ne[Ne.length-1]=Ne[Ne.length-1-Ue],Ne[Ne.length-1-Ue]=We)}else{var Ge=ze-+this._x.call(null,je.data),ht=De-+this._y.call(null,je.data),pt=Ge*Ge+ht*ht;if(pt=(Le=(Ne+nt)/2))?Ne=Le:nt=Le,(Ze=ke>=(We=(je+ot)/2))?je=We:ot=We,De=Ee,!(Ee=Ee[Xe=Ze<<1|Ue]))return this;if(!Ee.length)break;(De[Xe+1&3]||De[Xe+2&3]||De[Xe+3&3])&&(He=De,tt=Xe)}for(;Ee.data!==ze;)if(Ve=Ee,!(Ee=Ee.next))return this;return($e=Ee.next)&&delete Ee.next,Ve?($e?Ve.next=$e:delete Ve.next,this):De?($e?De[Xe]=$e:delete De[Xe],(Ee=De[0]||De[1]||De[2]||De[3])&&Ee===(De[3]||De[2]||De[1]||De[0])&&!Ee.length&&(He?He[tt]=Ee:this._root=Ee),this):(this._root=$e,this)},m.removeAll=function(ze){for(var De=0,He=ze.length;De=0&&(Ue=We.slice(Ze+1),We=We.slice(0,Ze)),We&&!Ve.hasOwnProperty(We))throw new Error("unknown type: "+We);return{type:We,name:Ue}})),ke=-1,Le=Oe.length;if(!(arguments.length<2)){if(De!=null&&typeof De!="function")throw new Error("invalid callback: "+De);for(;++ke0)for(var He,Ve,$e=new Array(He),Oe=0;Oe=0&&De._call.call(null,ze),De=De._next;--$})()}finally{$=0,function(){for(var ze,De,He=k,Ve=1/0;He;)He._call?(Ve>He._time&&(Ve=He._time),ze=He,He=He._next):(De=He._next,He._next=null,He=ze?ze._next=De:k=De);I=ze,ae(Ve)}(),te=0}}function se(){var ze=K.now(),De=ze-X;De>U&&(W-=De,X=ze)}function ae(ze){$||(Q&&(Q=clearTimeout(Q)),ze-te>24?(ze<1/0&&(Q=setTimeout(he,ze-K.now()-W)),j&&(j=clearInterval(j))):(j||(X=K.now(),j=setInterval(se,U)),$=1,oe(he)))}function ce(ze){return ze.x}function de(ze){return ze.y}ee.prototype=me.prototype={constructor:ee,restart:function(ze,De,He){if(typeof ze!="function")throw new TypeError("callback is not a function");He=(He==null?q():+He)+(De==null?0:+De),this._next||I===this||(I?I._next=this:k=this,I=this),this._call=ze,this._time=He,ae()},stop:function(){this._call&&(this._call=null,this._time=1/0,ae())}};var ve=10,ye=Math.PI*(3-Math.sqrt(5));function _e(ze){var De,He=1,Ve=.001,$e=1-Math.pow(Ve,1/300),Oe=0,ke=.6,Le=(0,A.kH)(),We=me(Ze),Ue=z("tick","end");function Ze(){Xe(),Ue.call("tick",De),He1?(je==null?Le.remove(Ne):Le.set(Ne,Ee(je)),De):Le.get(Ne)},find:function(Ne,je,nt){var ot,Ge,ht,pt,wt,Dt=0,It=ze.length;for(nt==null?nt=1/0:nt*=nt,Dt=0;Dt1?(Ue.on(Ne,je),De):Ue.on(Ne)}}}function Se(){var ze,De,He,Ve,$e=b(-30),Oe=1,ke=1/0,Le=.81;function We(tt){var Ee,Ne=ze.length,je=a(ze,ce,de).visitAfter(Ze);for(He=tt,Ee=0;Ee=ke)){(tt.data!==De||tt.next)&&(nt===0&&(ht+=(nt=i())*nt),ot===0&&(ht+=(ot=i())*ot),ht1?R[0]+R.slice(2):R,+S.slice(x+1)]}n.d(l,{E9:function(){return h},SO:function(){return _}});var b,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function O(S){if(!(A=i.exec(S)))throw new Error("invalid format: "+S);var A;return new w({fill:A[1],align:A[2],sign:A[3],symbol:A[4],zero:A[5],width:A[6],comma:A[7],precision:A[8]&&A[8].slice(1),trim:A[9],type:A[10]})}function w(S){this.fill=S.fill===void 0?" ":S.fill+"",this.align=S.align===void 0?">":S.align+"",this.sign=S.sign===void 0?"-":S.sign+"",this.symbol=S.symbol===void 0?"":S.symbol+"",this.zero=!!S.zero,this.width=S.width===void 0?void 0:+S.width,this.comma=!!S.comma,this.precision=S.precision===void 0?void 0:+S.precision,this.trim=!!S.trim,this.type=S.type===void 0?"":S.type+""}function y(S,A){var x=c(S,A);if(!x)return S+"";var R=x[0],M=x[1];return M<0?"0."+new Array(-M).join("0")+R:R.length>M+1?R.slice(0,M+1)+"."+R.slice(M+1):R+new Array(M-R.length+2).join("0")}O.prototype=w.prototype,w.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":function(S,A){return(100*S).toFixed(A)},b:function(S){return Math.round(S).toString(2)},c:function(S){return S+""},d:function(S){return Math.abs(S=Math.round(S))>=1e21?S.toLocaleString("en").replace(/,/g,""):S.toString(10)},e:function(S,A){return S.toExponential(A)},f:function(S,A){return S.toFixed(A)},g:function(S,A){return S.toPrecision(A)},o:function(S){return Math.round(S).toString(8)},p:function(S,A){return y(100*S,A)},r:y,s:function(S,A){var x=c(S,A);if(!x)return S+"";var R=x[0],M=x[1],T=M-(b=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,E=R.length;return T===E?R:T>E?R+new Array(T-E+1).join("0"):T>0?R.slice(0,T)+"."+R.slice(T):"0."+new Array(1-T).join("0")+c(S,Math.max(0,A+T-1))[0]},X:function(S){return Math.round(S).toString(16).toUpperCase()},x:function(S){return Math.round(S).toString(16)}};function a(S){return S}var u,h,m=Array.prototype.map,v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _(S){var A,x,R=S.grouping===void 0||S.thousands===void 0?a:(A=m.call(S.grouping,Number),x=S.thousands+"",function(z,$){for(var Q=z.length,j=[],U=0,X=A[0],te=0;Q>0&&X>0&&(te+X+1>$&&(X=Math.max(1,$-te)),j.push(z.substring(Q-=X,Q+X)),!((te+=X+1)>$));)X=A[U=(U+1)%A.length];return j.reverse().join(x)}),M=S.currency===void 0?"":S.currency[0]+"",T=S.currency===void 0?"":S.currency[1]+"",E=S.decimal===void 0?".":S.decimal+"",C=S.numerals===void 0?a:function(z){return function($){return $.replace(/[0-9]/g,function(Q){return z[+Q]})}}(m.call(S.numerals,String)),L=S.percent===void 0?"%":S.percent+"",D=S.minus===void 0?"-":S.minus+"",k=S.nan===void 0?"NaN":S.nan+"";function I(z){var $=(z=O(z)).fill,Q=z.align,j=z.sign,U=z.symbol,X=z.zero,te=z.width,W=z.comma,K=z.precision,oe=z.trim,q=z.type;q==="n"?(W=!0,q="g"):p[q]||(K===void 0&&(K=12),oe=!0,q="g"),(X||$==="0"&&Q==="=")&&(X=!0,$="0",Q="=");var Y=U==="$"?M:U==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",ee=U==="$"?T:/[%p]/.test(q)?L:"",me=p[q],he=/[defgprs%]/.test(q);function se(ae){var ce,de,ve,ye=Y,_e=ee;if(q==="c")_e=me(ae)+_e,ae="";else{var Se=(ae=+ae)<0||1/ae<0;if(ae=isNaN(ae)?k:me(Math.abs(ae),K),oe&&(ae=function(Ie){e:for(var ze,De=Ie.length,He=1,Ve=-1;He0&&(Ve=0)}return Ve>0?Ie.slice(0,Ve)+Ie.slice(ze+1):Ie}(ae)),Se&&+ae==0&&j!=="+"&&(Se=!1),ye=(Se?j==="("?j:D:j==="-"||j==="("?"":j)+ye,_e=(q==="s"?v[8+b/3]:"")+_e+(Se&&j==="("?")":""),he){for(ce=-1,de=ae.length;++ce(ve=ae.charCodeAt(ce))||ve>57){_e=(ve===46?E+ae.slice(ce+1):ae.slice(ce))+_e,ae=ae.slice(0,ce);break}}}W&&!X&&(ae=R(ae,1/0));var Te=ye.length+ae.length+_e.length,Pe=Te>1)+ye+ae+_e+Pe.slice(Te);break;default:ae=Pe+ye+ae+_e}return C(ae)}return K=K===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K)),se.toString=function(){return z+""},se}return{format:I,formatPrefix:function(z,$){var Q,j=I(((z=O(z)).type="f",z)),U=3*Math.max(-8,Math.min(8,Math.floor((Q=$,((Q=c(Math.abs(Q)))?Q[1]:NaN)/3)))),X=Math.pow(10,-U),te=v[8+U/3];return function(W){return j(X*W)+te}}}}u=_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),h=u.format,u.formatPrefix},87108:function(d,l,n){n.r(l),n.d(l,{geoAiry:function(){return W},geoAiryRaw:function(){return te},geoAitoff:function(){return oe},geoAitoffRaw:function(){return K},geoArmadillo:function(){return Y},geoArmadilloRaw:function(){return q},geoAugust:function(){return me},geoAugustRaw:function(){return ee},geoBaker:function(){return ce},geoBakerRaw:function(){return ae},geoBerghaus:function(){return ye},geoBerghausRaw:function(){return ve},geoBertin1953:function(){return He},geoBertin1953Raw:function(){return De},geoBoggs:function(){return Ze},geoBoggsRaw:function(){return Ue},geoBonne:function(){return je},geoBonneRaw:function(){return Ne},geoBottomley:function(){return ot},geoBottomleyRaw:function(){return nt},geoBromley:function(){return ht},geoBromleyRaw:function(){return Ge},geoChamberlin:function(){return _t},geoChamberlinAfrica:function(){return Ct},geoChamberlinRaw:function(){return en},geoCollignon:function(){return gn},geoCollignonRaw:function(){return nn},geoCraig:function(){return mn},geoCraigRaw:function(){return bn},geoCraster:function(){return lt},geoCrasterRaw:function(){return bt},geoCylindricalEqualArea:function(){return zt},geoCylindricalEqualAreaRaw:function(){return yt},geoCylindricalStereographic:function(){return it},geoCylindricalStereographicRaw:function(){return Rt},geoEckert1:function(){return Lt},geoEckert1Raw:function(){return at},geoEckert2:function(){return Zt},geoEckert2Raw:function(){return xt},geoEckert3:function(){return Yt},geoEckert3Raw:function(){return Xt},geoEckert4:function(){return Pt},geoEckert4Raw:function(){return Qt},geoEckert5:function(){return Kt},geoEckert5Raw:function(){return tn},geoEckert6:function(){return dn},geoEckert6Raw:function(){return fn},geoEisenlohr:function(){return er},geoEisenlohrRaw:function(){return Nn},geoFahey:function(){return jn},geoFaheyRaw:function(){return In},geoFoucaut:function(){return Sr},geoFoucautRaw:function(){return xr},geoFoucautSinusoidal:function(){return Fn},geoFoucautSinusoidalRaw:function(){return ar},geoGilbert:function(){return Ir},geoGingery:function(){return $r},geoGingeryRaw:function(){return zr},geoGinzburg4:function(){return so},geoGinzburg4Raw:function(){return Co},geoGinzburg5:function(){return go},geoGinzburg5Raw:function(){return So},geoGinzburg6:function(){return Pn},geoGinzburg6Raw:function(){return li},geoGinzburg8:function(){return br},geoGinzburg8Raw:function(){return Yn},geoGinzburg9:function(){return Cr},geoGinzburg9Raw:function(){return dr},geoGringorten:function(){return Wr},geoGringortenQuincuncial:function(){return js},geoGringortenRaw:function(){return Qr},geoGuyou:function(){return hn},geoGuyouRaw:function(){return hr},geoHammer:function(){return Pe},geoHammerRaw:function(){return Se},geoHammerRetroazimuthal:function(){return gr},geoHammerRetroazimuthalRaw:function(){return Zn},geoHealpix:function(){return Vr},geoHealpixRaw:function(){return tr},geoHill:function(){return _o},geoHillRaw:function(){return to},geoHomolosine:function(){return po},geoHomolosineRaw:function(){return Go},geoHufnagel:function(){return Ao},geoHufnagelRaw:function(){return qo},geoHyperelliptical:function(){return mo},geoHyperellipticalRaw:function(){return ra},geoInterrupt:function(){return Na},geoInterruptedBoggs:function(){return wc},geoInterruptedHomolosine:function(){return Ku},geoInterruptedMollweide:function(){return Yd},geoInterruptedMollweideHemispheres:function(){return Ed},geoInterruptedQuarticAuthalic:function(){return sr},geoInterruptedSinuMollweide:function(){return mm},geoInterruptedSinusoidal:function(){return gm},geoKavrayskiy7:function(){return pc},geoKavrayskiy7Raw:function(){return Gl},geoLagrange:function(){return xl},geoLagrangeRaw:function(){return Cu},geoLarrivee:function(){return pu},geoLarriveeRaw:function(){return cc},geoLaskowski:function(){return iu},geoLaskowskiRaw:function(){return ju},geoLittrow:function(){return ks},geoLittrowRaw:function(){return mc},geoLoximuthal:function(){return yf},geoLoximuthalRaw:function(){return $f},geoMiller:function(){return $h},geoMillerRaw:function(){return Ju},geoModifiedStereographic:function(){return cd},geoModifiedStereographicAlaska:function(){return ld},geoModifiedStereographicGs48:function(){return Mp},geoModifiedStereographicGs50:function(){return Xd},geoModifiedStereographicLee:function(){return mh},geoModifiedStereographicMiller:function(){return bf},geoModifiedStereographicRaw:function(){return Es},geoMollweide:function(){return ke},geoMollweideRaw:function(){return Oe},geoMtFlatPolarParabolic:function(){return Au},geoMtFlatPolarParabolicRaw:function(){return tf},geoMtFlatPolarQuartic:function(){return ud},geoMtFlatPolarQuarticRaw:function(){return _f},geoMtFlatPolarSinusoidal:function(){return gh},geoMtFlatPolarSinusoidalRaw:function(){return nf},geoNaturalEarth:function(){return rs.c},geoNaturalEarth2:function(){return Ep},geoNaturalEarth2Raw:function(){return ep},geoNaturalEarthRaw:function(){return rs.g},geoNellHammer:function(){return Pd},geoNellHammerRaw:function(){return vm},geoNicolosi:function(){return wf},geoNicolosiRaw:function(){return Pp},geoPatterson:function(){return Lp},geoPattersonRaw:function(){return Hu},geoPeirceQuincuncial:function(){return os},geoPierceQuincuncial:function(){return os},geoPolyconic:function(){return jh},geoPolyconicRaw:function(){return Uh},geoPolyhedral:function(){return Ts},geoPolyhedralButterfly:function(){return yh},geoPolyhedralCollignon:function(){return Ip},geoPolyhedralWaterman:function(){return bm},geoProject:function(){return np},geoQuantize:function(){return af},geoQuincuncial:function(){return xh},geoRectangularPolyconic:function(){return sf},geoRectangularPolyconicRaw:function(){return Sf},geoRobinson:function(){return pi},geoRobinsonRaw:function(){return Hi},geoSatellite:function(){return Ru},geoSatelliteRaw:function(){return Qh},geoSinuMollweide:function(){return co},geoSinuMollweideRaw:function(){return ao},geoSinusoidal:function(){return Ee},geoSinusoidalRaw:function(){return tt},geoStitch:function(){return Xi},geoTimes:function(){return jf},geoTimesRaw:function(){return Xc},geoTwoPointAzimuthal:function(){return Lu},geoTwoPointAzimuthalRaw:function(){return Dp},geoTwoPointAzimuthalUsa:function(){return rp},geoTwoPointEquidistant:function(){return dd},geoTwoPointEquidistantRaw:function(){return fs},geoTwoPointEquidistantUsa:function(){return Qf},geoVanDerGrinten:function(){return _h},geoVanDerGrinten2:function(){return hd},geoVanDerGrinten2Raw:function(){return Gc},geoVanDerGrinten3:function(){return Dd},geoVanDerGrinten3Raw:function(){return rl},geoVanDerGrinten4:function(){return fa},geoVanDerGrinten4Raw:function(){return Vi},geoVanDerGrintenRaw:function(){return Hf},geoWagner:function(){return Zf},geoWagner4:function(){return kc},geoWagner4Raw:function(){return Qs},geoWagner6:function(){return Ea},geoWagner6Raw:function(){return Iu},geoWagner7:function(){return Zl},geoWagnerRaw:function(){return au},geoWiechel:function(){return Ol},geoWiechelRaw:function(){return El},geoWinkel3:function(){return kf},geoWinkel3Raw:function(){return Mi}});var c=n(87952),b=Math.abs,i=Math.atan,O=Math.atan2,w=Math.cos,y=Math.exp,p=Math.floor,a=Math.log,u=Math.max,h=Math.min,m=Math.pow,v=Math.round,_=Math.sign||function(Ot){return Ot>0?1:Ot<0?-1:0},S=Math.sin,A=Math.tan,x=1e-6,R=1e-12,M=Math.PI,T=M/2,E=M/4,C=Math.SQRT1_2,L=j(2),D=j(M),k=2*M,I=180/M,z=M/180;function $(Ot){return Ot>1?T:Ot<-1?-T:Math.asin(Ot)}function Q(Ot){return Ot>1?0:Ot<-1?M:Math.acos(Ot)}function j(Ot){return Ot>0?Math.sqrt(Ot):0}function U(Ot){return(y(Ot)-y(-Ot))/2}function X(Ot){return(y(Ot)+y(-Ot))/2}function te(Ot){var Mt=A(Ot/2),Ft=2*a(w(Ot/2))/(Mt*Mt);function J(le,ie){var V=w(le),ne=w(ie),ge=S(ie),xe=ne*V,Me=-((1-xe?a((1+xe)/2)/(1-xe):-.5)+Ft/(1+xe));return[Me*ne*S(le),Me*ge]}return J.invert=function(le,ie){var V,ne=j(le*le+ie*ie),ge=-Ot/2,xe=50;if(!ne)return[0,0];do{var Me=ge/2,Fe=w(Me),Je=S(Me),rt=Je/Fe,dt=-a(b(Fe));ge-=V=(2/rt*dt-Ft*rt-ne)/(-dt/(Je*Je)+1-Ft/(2*Fe*Fe))*(Fe<0?.7:1)}while(b(V)>x&&--xe>0);var mt=S(ge);return[O(le*mt,ne*w(ge)),$(ie*mt/ne)]},J}function W(){var Ot=T,Mt=(0,c.U)(te),Ft=Mt(Ot);return Ft.radius=function(J){return arguments.length?Mt(Ot=J*z):Ot*I},Ft.scale(179.976).clipAngle(147)}function K(Ot,Mt){var Ft=w(Mt),J=function(le){return le?le/Math.sin(le):1}(Q(Ft*w(Ot/=2)));return[2*Ft*S(Ot)*J,S(Mt)*J]}function oe(){return(0,c.c)(K).scale(152.63)}function q(Ot){var Mt=S(Ot),Ft=w(Ot),J=Ot>=0?1:-1,le=A(J*Ot),ie=(1+Mt-Ft)/2;function V(ne,ge){var xe=w(ge),Me=w(ne/=2);return[(1+xe)*S(ne),(J*ge>-O(Me,le)-.001?0:10*-J)+ie+S(ge)*Ft-(1+xe)*Mt*Me]}return V.invert=function(ne,ge){var xe=0,Me=0,Fe=50;do{var Je=w(xe),rt=S(xe),dt=w(Me),mt=S(Me),Et=1+dt,Vt=Et*rt-ne,jt=ie+mt*Ft-Et*Mt*Je-ge,Nt=Et*Je/2,cn=-rt*mt,sn=Mt*Et*rt/2,xn=Ft*dt+Mt*Je*mt,pn=cn*sn-xn*Nt,Ln=(jt*cn-Vt*xn)/pn/2,On=(Vt*sn-jt*Nt)/pn;b(On)>2&&(On/=2),xe-=Ln,Me-=On}while((b(Ln)>x||b(On)>x)&&--Fe>0);return J*Me>-O(w(xe),le)-.001?[2*xe,Me]:null},V}function Y(){var Ot=20*z,Mt=Ot>=0?1:-1,Ft=A(Mt*Ot),J=(0,c.U)(q),le=J(Ot),ie=le.stream;return le.parallel=function(V){return arguments.length?(Ft=A((Mt=(Ot=V*z)>=0?1:-1)*Ot),J(Ot)):Ot*I},le.stream=function(V){var ne=le.rotate(),ge=ie(V),xe=(le.rotate([0,0]),ie(V)),Me=le.precision();return le.rotate(ne),ge.sphere=function(){xe.polygonStart(),xe.lineStart();for(var Fe=-180*Mt;Mt*Fe<180;Fe+=90*Mt)xe.point(Fe,90*Mt);if(Ot)for(;Mt*(Fe-=3*Mt*Me)>=-180;)xe.point(Fe,Mt*-O(w(Fe*z/2),Ft)*I);xe.lineEnd(),xe.polygonEnd()},ge},le.scale(218.695).center([0,28.0974])}function ee(Ot,Mt){var Ft=A(Mt/2),J=j(1-Ft*Ft),le=1+J*w(Ot/=2),ie=S(Ot)*J/le,V=Ft/le,ne=ie*ie,ge=V*V;return[1.3333333333333333*ie*(3+ne-3*ge),1.3333333333333333*V*(3+3*ne-ge)]}function me(){return(0,c.c)(ee).scale(66.1603)}K.invert=function(Ot,Mt){if(!(Ot*Ot+4*Mt*Mt>M*M+x)){var Ft=Ot,J=Mt,le=25;do{var ie,V=S(Ft),ne=S(Ft/2),ge=w(Ft/2),xe=S(J),Me=w(J),Fe=S(2*J),Je=xe*xe,rt=Me*Me,dt=ne*ne,mt=1-rt*ge*ge,Et=mt?Q(Me*ge)*j(ie=1/mt):ie=0,Vt=2*Et*Me*ne-Ot,jt=Et*xe-Mt,Nt=ie*(rt*dt+Et*Me*ge*Je),cn=ie*(.5*V*Fe-2*Et*xe*ne),sn=.25*ie*(Fe*ne-Et*xe*rt*V),xn=ie*(Je*ge+Et*dt*Me),pn=cn*sn-xn*Nt;if(!pn)break;var Ln=(jt*cn-Vt*xn)/pn,On=(Vt*sn-jt*Nt)/pn;Ft-=Ln,J-=On}while((b(Ln)>x||b(On)>x)&&--le>0);return[Ft,J]}},ee.invert=function(Ot,Mt){if(Mt*=.375,!(Ot*=.375)&&b(Mt)>1)return null;var Ft=1+Ot*Ot+Mt*Mt,J=j((Ft-j(Ft*Ft-4*Mt*Mt))/2),le=$(J)/3,ie=J?function(xe){return a(xe+j(xe*xe-1))}(b(Mt/J))/3:function(xe){return a(xe+j(xe*xe+1))}(b(Ot))/3,V=w(le),ne=X(ie),ge=ne*ne-V*V;return[2*_(Ot)*O(U(ie)*V,.25-ge),2*_(Mt)*O(ne*S(le),.25+ge)]};var he=j(8),se=a(1+L);function ae(Ot,Mt){var Ft=b(Mt);return FtR&&--ie>0);return[Ot/(w(le)*(he-1/S(le))),_(Mt)*le]};var de=n(69020);function ve(Ot){var Mt=2*M/Ot;function Ft(J,le){var ie=(0,de.O)(J,le);if(b(J)>T){var V=O(ie[1],ie[0]),ne=j(ie[0]*ie[0]+ie[1]*ie[1]),ge=Mt*v((V-T)/Mt)+T,xe=O(S(V-=ge),2-w(V));V=ge+$(M/ne*S(xe))-xe,ie[0]=ne*w(V),ie[1]=ne*S(V)}return ie}return Ft.invert=function(J,le){var ie=j(J*J+le*le);if(ie>T){var V=O(le,J),ne=Mt*v((V-T)/Mt)+T,ge=V>ne?-1:1,xe=ie*w(ne-V),Me=1/A(ge*Q((xe-M)/j(M*(M-2*xe)+ie*ie)));V=ne+2*i((Me+ge*j(Me*Me-3))/3),J=ie*w(V),le=ie*S(V)}return de.O.invert(J,le)},Ft}function ye(){var Ot=5,Mt=(0,c.U)(ve),Ft=Mt(Ot),J=Ft.stream,le=.01,ie=-w(le*z),V=S(le*z);return Ft.lobes=function(ne){return arguments.length?Mt(Ot=+ne):Ot},Ft.stream=function(ne){var ge=Ft.rotate(),xe=J(ne),Me=(Ft.rotate([0,0]),J(ne));return Ft.rotate(ge),xe.sphere=function(){Me.polygonStart(),Me.lineStart();for(var Fe=0,Je=360/Ot,rt=2*M/Ot,dt=90-180/Ot,mt=T;Fe0&&b(J)>x);return V<0?NaN:Ft}function ze(Ot,Mt,Ft){return Mt===void 0&&(Mt=40),Ft===void 0&&(Ft=R),function(J,le,ie,V){var ne,ge,xe;ie=ie===void 0?0:+ie,V=V===void 0?0:+V;for(var Me=0;Mene)ie-=ge/=2,V-=xe/=2;else{ne=dt;var mt=(ie>0?-1:1)*Ft,Et=(V>0?-1:1)*Ft,Vt=Ot(ie+mt,V),jt=Ot(ie,V+Et),Nt=(Vt[0]-Fe[0])/mt,cn=(Vt[1]-Fe[1])/mt,sn=(jt[0]-Fe[0])/Et,xn=(jt[1]-Fe[1])/Et,pn=xn*Nt-cn*sn,Ln=(b(pn)<.5?.5:1)/pn;if(ie+=ge=(rt*sn-Je*xn)*Ln,V+=xe=(Je*cn-rt*Nt)*Ln,b(ge)0&&(ie[1]*=1+V/1.5*ie[0]*ie[0]),ie}return Mt.invert=ze(Mt),Mt}function He(){return(0,c.c)(De()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Ve(Ot,Mt){var Ft,J=Ot*S(Mt),le=30;do Mt-=Ft=(Mt+S(Mt)-J)/(1+w(Mt));while(b(Ft)>x&&--le>0);return Mt/2}function $e(Ot,Mt,Ft){function J(le,ie){return[Ot*le*w(ie=Ve(Ft,ie)),Mt*S(ie)]}return J.invert=function(le,ie){return ie=$(ie/Mt),[le/(Ot*w(ie)),$((2*ie+S(2*ie))/Ft)]},J}Te.invert=function(Ot,Mt){var Ft=2*$(Mt/2);return[Ot*w(Ft/2)/w(Ft),Ft]};var Oe=$e(L/T,L,M);function ke(){return(0,c.c)(Oe).scale(169.529)}var Le=2.00276,We=1.11072;function Ue(Ot,Mt){var Ft=Ve(M,Mt);return[Le*Ot/(1/w(Mt)+We/w(Ft)),(Mt+L*S(Ft))/Le]}function Ze(){return(0,c.c)(Ue).scale(160.857)}function Xe(Ot){var Mt=0,Ft=(0,c.U)(Ot),J=Ft(Mt);return J.parallel=function(le){return arguments.length?Ft(Mt=le*z):Mt*I},J}function tt(Ot,Mt){return[Ot*w(Mt),Mt]}function Ee(){return(0,c.c)(tt).scale(152.63)}function Ne(Ot){if(!Ot)return tt;var Mt=1/A(Ot);function Ft(J,le){var ie=Mt+Ot-le,V=ie&&J*w(le)/ie;return[ie*S(V),Mt-ie*w(V)]}return Ft.invert=function(J,le){var ie=j(J*J+(le=Mt-le)*le),V=Mt+Ot-ie;return[ie/w(V)*O(J,le),V]},Ft}function je(){return Xe(Ne).scale(123.082).center([0,26.1441]).parallel(45)}function nt(Ot){function Mt(Ft,J){var le=T-J,ie=le&&Ft*Ot*S(le)/le;return[le*S(ie)/Ot,T-le*w(ie)]}return Mt.invert=function(Ft,J){var le=Ft*Ot,ie=T-J,V=j(le*le+ie*ie),ne=O(le,ie);return[(V?V/S(V):1)*ne/Ot,T-V]},Mt}function ot(){var Ot=.5,Mt=(0,c.U)(nt),Ft=Mt(Ot);return Ft.fraction=function(J){return arguments.length?Mt(Ot=+J):Ot},Ft.scale(158.837)}Ue.invert=function(Ot,Mt){var Ft,J,le=Le*Mt,ie=Mt<0?-E:E,V=25;do J=le-L*S(ie),ie-=Ft=(S(2*ie)+2*ie-M*S(J))/(2*w(2*ie)+2+M*w(J)*L*w(ie));while(b(Ft)>x&&--V>0);return J=le-L*S(ie),[Ot*(1/w(J)+We/w(ie))/Le,J]},tt.invert=function(Ot,Mt){return[Ot/w(Mt),Mt]};var Ge=$e(1,4/M,M);function ht(){return(0,c.c)(Ge).scale(152.63)}var pt=n(24052),wt=n(92992);function Dt(Ot,Mt,Ft,J,le,ie){var V,ne=w(ie);if(b(Ot)>1||b(ie)>1)V=Q(Ft*le+Mt*J*ne);else{var ge=S(Ot/2),xe=S(ie/2);V=2*$(j(ge*ge+Mt*J*xe*xe))}return b(V)>x?[V,O(J*S(ie),Mt*le-Ft*J*ne)]:[0,0]}function It(Ot,Mt,Ft){return Q((Ot*Ot+Mt*Mt-Ft*Ft)/(2*Ot*Mt))}function qt(Ot){return Ot-2*M*p((Ot+M)/(2*M))}function en(Ot,Mt,Ft){for(var J,le=[[Ot[0],Ot[1],S(Ot[1]),w(Ot[1])],[Mt[0],Mt[1],S(Mt[1]),w(Mt[1])],[Ft[0],Ft[1],S(Ft[1]),w(Ft[1])]],ie=le[2],V=0;V<3;++V,ie=J)J=le[V],ie.v=Dt(J[1]-ie[1],ie[3],ie[2],J[3],J[2],J[0]-ie[0]),ie.point=[0,0];var ne=It(le[0].v[0],le[2].v[0],le[1].v[0]),ge=It(le[0].v[0],le[1].v[0],le[2].v[0]),xe=M-ne;le[2].point[1]=0,le[0].point[0]=-(le[1].point[0]=le[0].v[0]/2);var Me=[le[2].point[0]=le[0].point[0]+le[2].v[0]*w(ne),2*(le[0].point[1]=le[1].point[1]=le[2].v[0]*S(ne))];return function(Fe,Je){var rt,dt=S(Je),mt=w(Je),Et=new Array(3);for(rt=0;rt<3;++rt){var Vt=le[rt];if(Et[rt]=Dt(Je-Vt[1],Vt[3],Vt[2],mt,dt,Fe-Vt[0]),!Et[rt][0])return Vt.point;Et[rt][1]=qt(Et[rt][1]-Vt.v[1])}var jt=Me.slice();for(rt=0;rt<3;++rt){var Nt=rt==2?0:rt+1,cn=It(le[rt].v[0],Et[rt][0],Et[Nt][0]);Et[rt][1]<0&&(cn=-cn),rt?rt==1?(cn=ge-cn,jt[0]-=Et[rt][0]*w(cn),jt[1]-=Et[rt][0]*S(cn)):(cn=xe-cn,jt[0]+=Et[rt][0]*w(cn),jt[1]+=Et[rt][0]*S(cn)):(jt[0]+=Et[rt][0]*w(cn),jt[1]-=Et[rt][0]*S(cn))}return jt[0]/=3,jt[1]/=3,jt}}function Gt(Ot){return Ot[0]*=z,Ot[1]*=z,Ot}function Ct(){return _t([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function _t(Ot,Mt,Ft){var J=(0,pt.c)({type:"MultiPoint",coordinates:[Ot,Mt,Ft]}),le=[-J[0],-J[1]],ie=(0,wt.c)(le),V=en(Gt(ie(Ot)),Gt(ie(Mt)),Gt(ie(Ft)));V.invert=ze(V);var ne=(0,c.c)(V).rotate(le),ge=ne.center;return delete ne.rotate,ne.center=function(xe){return arguments.length?ge(ie(xe)):ie.invert(ge())},ne.clipAngle(90)}function nn(Ot,Mt){var Ft=j(1-S(Mt));return[2/D*Ot*Ft,D*(1-Ft)]}function gn(){return(0,c.c)(nn).scale(95.6464).center([0,30])}function bn(Ot){var Mt=A(Ot);function Ft(J,le){return[J,(J?J/S(J):1)*(S(le)*w(J)-Mt*w(le))]}return Ft.invert=Mt?function(J,le){J&&(le*=S(J)/J);var ie=w(J);return[J,2*O(j(ie*ie+Mt*Mt-le*le)-ie,Mt-le)]}:function(J,le){return[J,$(J?le*A(J)/J:le)]},Ft}function mn(){return Xe(bn).scale(249.828).clipAngle(90)}nn.invert=function(Ot,Mt){var Ft=(Ft=Mt/D-1)*Ft;return[Ft>0?Ot*j(M/Ft)/2:0,$(1-Ft)]};var vt=j(3);function bt(Ot,Mt){return[vt*Ot*(2*w(2*Mt/3)-1)/D,vt*D*S(Mt/3)]}function lt(){return(0,c.c)(bt).scale(156.19)}function yt(Ot){var Mt=w(Ot);function Ft(J,le){return[J*Mt,S(le)/Mt]}return Ft.invert=function(J,le){return[J/Mt,$(le*Mt)]},Ft}function zt(){return Xe(yt).parallel(38.58).scale(195.044)}function Rt(Ot){var Mt=w(Ot);function Ft(J,le){return[J*Mt,(1+Mt)*A(le/2)]}return Ft.invert=function(J,le){return[J/Mt,2*i(le/(1+Mt))]},Ft}function it(){return Xe(Rt).scale(124.75)}function at(Ot,Mt){var Ft=j(8/(3*M));return[Ft*Ot*(1-b(Mt)/M),Ft*Mt]}function Lt(){return(0,c.c)(at).scale(165.664)}function xt(Ot,Mt){var Ft=j(4-3*S(b(Mt)));return[2/j(6*M)*Ot*Ft,_(Mt)*j(2*M/3)*(2-Ft)]}function Zt(){return(0,c.c)(xt).scale(165.664)}function Xt(Ot,Mt){var Ft=j(M*(4+M));return[2/Ft*Ot*(1+j(1-4*Mt*Mt/(M*M))),4/Ft*Mt]}function Yt(){return(0,c.c)(Xt).scale(180.739)}function Qt(Ot,Mt){var Ft=(2+T)*S(Mt);Mt/=2;for(var J=0,le=1/0;J<10&&b(le)>x;J++){var ie=w(Mt);Mt-=le=(Mt+S(Mt)*(ie+2)-Ft)/(2*ie*(1+ie))}return[2/j(M*(4+M))*Ot*(1+w(Mt)),2*j(M/(4+M))*S(Mt)]}function Pt(){return(0,c.c)(Qt).scale(180.739)}function tn(Ot,Mt){return[Ot*(1+w(Mt))/j(2+M),2*Mt/j(2+M)]}function Kt(){return(0,c.c)(tn).scale(173.044)}function fn(Ot,Mt){for(var Ft=(1+T)*S(Mt),J=0,le=1/0;J<10&&b(le)>x;J++)Mt-=le=(Mt+S(Mt)-Ft)/(1+w(Mt));return Ft=j(2+M),[Ot*(1+w(Mt))/Ft,2*Mt/Ft]}function dn(){return(0,c.c)(fn).scale(173.044)}bt.invert=function(Ot,Mt){var Ft=3*$(Mt/(vt*D));return[D*Ot/(vt*(2*w(2*Ft/3)-1)),Ft]},at.invert=function(Ot,Mt){var Ft=j(8/(3*M)),J=Mt/Ft;return[Ot/(Ft*(1-b(J)/M)),J]},xt.invert=function(Ot,Mt){var Ft=2-b(Mt)/j(2*M/3);return[Ot*j(6*M)/(2*Ft),_(Mt)*$((4-Ft*Ft)/3)]},Xt.invert=function(Ot,Mt){var Ft=j(M*(4+M))/2;return[Ot*Ft/(1+j(1-Mt*Mt*(4+M)/(4*M))),Mt*Ft/2]},Qt.invert=function(Ot,Mt){var Ft=Mt*j((4+M)/M)/2,J=$(Ft),le=w(J);return[Ot/(2/j(M*(4+M))*(1+le)),$((J+Ft*(le+2))/(2+T))]},tn.invert=function(Ot,Mt){var Ft=j(2+M),J=Mt*Ft/2;return[Ft*Ot/(1+w(J)),J]},fn.invert=function(Ot,Mt){var Ft=1+T,J=j(Ft/2);return[2*Ot*J/(1+w(Mt*=J)),$((Mt+S(Mt))/Ft)]};var vn=3+2*L;function Nn(Ot,Mt){var Ft=S(Ot/=2),J=w(Ot),le=j(w(Mt)),ie=w(Mt/=2),V=S(Mt)/(ie+L*J*le),ne=j(2/(1+V*V)),ge=j((L*ie+(J+Ft)*le)/(L*ie+(J-Ft)*le));return[vn*(ne*(ge-1/ge)-2*a(ge)),vn*(ne*V*(ge+1/ge)-2*i(V))]}function er(){return(0,c.c)(Nn).scale(62.5271)}Nn.invert=function(Ot,Mt){if(!(Ft=ee.invert(Ot/1.2,1.065*Mt)))return null;var Ft,J=Ft[0],le=Ft[1],ie=20;Ot/=vn,Mt/=vn;do{var V=J/2,ne=le/2,ge=S(V),xe=w(V),Me=S(ne),Fe=w(ne),Je=w(le),rt=j(Je),dt=Me/(Fe+L*xe*rt),mt=dt*dt,Et=j(2/(1+mt)),Vt=(L*Fe+(xe+ge)*rt)/(L*Fe+(xe-ge)*rt),jt=j(Vt),Nt=jt-1/jt,cn=jt+1/jt,sn=Et*Nt-2*a(jt)-Ot,xn=Et*dt*cn-2*i(dt)-Mt,pn=Me&&C*rt*ge*mt/Me,Ln=(L*xe*Fe+rt)/(2*(Fe+L*xe*rt)*(Fe+L*xe*rt)*rt),On=-.5*dt*Et*Et*Et,An=On*pn,Sn=On*Ln,rr=(rr=2*Fe+L*rt*(xe-ge))*rr*jt,Dr=(L*xe*Fe*rt+Je)/rr,Pr=-L*ge*Me/(rt*rr),Zr=Nt*An-2*Dr/jt+Et*(Dr+Dr/Vt),Mo=Nt*Sn-2*Pr/jt+Et*(Pr+Pr/Vt),$o=dt*cn*An-2*pn/(1+mt)+Et*cn*pn+Et*dt*(Dr-Dr/Vt),vo=dt*cn*Sn-2*Ln/(1+mt)+Et*cn*Ln+Et*dt*(Pr-Pr/Vt),zo=Mo*$o-vo*Zr;if(!zo)break;var yi=(xn*Mo-sn*vo)/zo,Si=(sn*$o-xn*Zr)/zo;J-=yi,le=u(-T,h(T,le-Si))}while((b(yi)>x||b(Si)>x)&&--ie>0);return b(b(le)-T)J){var Fe=j(Me),Je=O(xe,ge),rt=Ft*v(Je/Ft),dt=Je-rt,mt=Ot*w(dt),Et=(Ot*S(dt)-dt*S(mt))/(T-mt),Vt=Fr(dt,Et),jt=(M-Ot)/Rr(Vt,mt,M);ge=Fe;var Nt,cn=50;do ge-=Nt=(Ot+Rr(Vt,mt,ge)*jt-Fe)/(Vt(ge)*jt);while(b(Nt)>x&&--cn>0);xe=dt*S(ge),geJ){var ge=j(ne),xe=O(V,ie),Me=Ft*v(xe/Ft),Fe=xe-Me;ie=ge*w(Fe),V=ge*S(Fe);for(var Je=ie-T,rt=S(ie),dt=V/rt,mt=iex||b(Je)>x)&&--mt>0);return[rt,dt]},ge}var Co=Kr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function so(){return(0,c.c)(Co).scale(149.995)}var So=Kr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function go(){return(0,c.c)(So).scale(153.93)}var li=Kr(5/6*M,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Pn(){return(0,c.c)(li).scale(130.945)}function Yn(Ot,Mt){var Ft=Ot*Ot,J=Mt*Mt;return[Ot*(1-.162388*J)*(.87-952426e-9*Ft*Ft),Mt*(1+J/12)]}function br(){return(0,c.c)(Yn).scale(131.747)}Yn.invert=function(Ot,Mt){var Ft,J=Ot,le=Mt,ie=50;do{var V=le*le;le-=Ft=(le*(1+V/12)-Mt)/(1+V/4)}while(b(Ft)>x&&--ie>0);ie=50,Ot/=1-.162388*V;do{var ne=(ne=J*J)*ne;J-=Ft=(J*(.87-952426e-9*ne)-Ot)/(.87-.00476213*ne)}while(b(Ft)>x&&--ie>0);return[J,le]};var dr=Kr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Cr(){return(0,c.c)(dr).scale(131.087)}function io(Ot){var Mt=Ot(T,0)[0]-Ot(-T,0)[0];function Ft(J,le){var ie=J>0?-.5:.5,V=Ot(J+ie*M,le);return V[0]-=ie*Mt,V}return Ot.invert&&(Ft.invert=function(J,le){var ie=J>0?-.5:.5,V=Ot.invert(J+ie*Mt,le),ne=V[0]-ie*M;return ne<-M?ne+=2*M:ne>M&&(ne-=2*M),V[0]=ne,V}),Ft}function Qr(Ot,Mt){var Ft=_(Ot),J=_(Mt),le=w(Mt),ie=w(Ot)*le,V=S(Ot)*le,ne=S(J*Mt);Ot=b(O(V,ne)),Mt=$(ie),b(Ot-T)>x&&(Ot%=T);var ge=function(xe,Me){if(Me===T)return[0,0];var Fe,Je,rt=S(Me),dt=rt*rt,mt=dt*dt,Et=1+mt,Vt=1+3*mt,jt=1-mt,Nt=$(1/j(Et)),cn=jt+dt*Et*Nt,sn=(1-rt)/cn,xn=j(sn),pn=sn*Et,Ln=j(pn),On=xn*jt;if(xe===0)return[0,-(On+dt*Ln)];var An,Sn=w(Me),rr=1/Sn,Dr=2*rt*Sn,Pr=(-cn*Sn-(1-rt)*((-3*dt+Nt*Vt)*Dr))/(cn*cn),Zr=-rr*Dr,Mo=-rr*(dt*Et*Pr+sn*Vt*Dr),$o=-2*rr*(jt*(.5*Pr/xn)-2*dt*xn*Dr),vo=4*xe/M;if(xe>.222*M||Me.175*M){if(Fe=(On+dt*j(pn*(1+mt)-On*On))/(1+mt),xe>M/4)return[Fe,Fe];var zo=Fe,yi=.5*Fe;Fe=.5*(yi+zo),Je=50;do{var Si=Fe*($o+Zr*j(pn-Fe*Fe))+Mo*$(Fe/Ln)-vo;if(!Si)break;Si<0?yi=Fe:zo=Fe,Fe=.5*(yi+zo)}while(b(zo-yi)>x&&--Je>0)}else{Fe=x,Je=25;do{var Hr=Fe*Fe,Lo=j(pn-Hr),ki=$o+Zr*Lo,Io=Fe*ki+Mo*$(Fe/Ln)-vo;Fe-=An=Lo?Io/(ki+(Mo-Zr*Hr)/Lo):0}while(b(An)>x&&--Je>0)}return[Fe,-On-dt*j(pn-Fe*Fe)]}(Ot>M/4?T-Ot:Ot,Mt);return Ot>M/4&&(ne=ge[0],ge[0]=-ge[1],ge[1]=-ne),ge[0]*=Ft,ge[1]*=-J,ge}function Wr(){return(0,c.c)(io(Qr)).scale(239.75)}function bo(Ot,Mt){var Ft,J,le,ie,V,ne;if(Mt=1-x)return Ft=(1-Mt)/4,le=1/(J=X(Ot)),[(ie=((ne=y(2*(ne=Ot)))-1)/(ne+1))+Ft*((V=J*U(Ot))-Ot)/(J*J),le-Ft*ie*le*(V-Ot),le+Ft*ie*le*(V+Ot),2*i(y(Ot))-T+Ft*(V-Ot)/J];var ge=[1,0,0,0,0,0,0,0,0],xe=[j(Mt),0,0,0,0,0,0,0,0],Me=0;for(J=j(1-Mt),V=1;b(xe[Me]/ge[Me])>x&&Me<8;)Ft=ge[Me++],xe[Me]=(Ft-J)/2,ge[Me]=(Ft+J)/2,J=j(Ft*J),V*=2;le=V*ge[Me]*Ot;do le=($(ie=xe[Me]*S(J=le)/ge[Me])+le)/2;while(--Me);return[S(le),ie=w(le),ie/w(le-J),le]}function Bn(Ot,Mt){if(!Mt)return Ot;if(Mt===1)return a(A(Ot/2+E));for(var Ft=1,J=j(1-Mt),le=j(Mt),ie=0;b(le)>x;ie++){if(Ot%M){var V=i(J*A(Ot)/Ft);V<0&&(V+=M),Ot+=V+~~(Ot/M)*M}else Ot+=Ot;le=(Ft+J)/2,J=j(Ft*J),le=((Ft=le)-J)/2}return Ot/(m(2,ie)*Ft)}function hr(Ot,Mt){var Ft=(L-1)/(L+1),J=j(1-Ft*Ft),le=Bn(T,J*J),ie=a(A(M/4+b(Mt)/2)),V=y(-1*ie)/j(Ft),ne=function(xe,Me){var Fe=xe*xe,Je=Me+1,rt=1-Fe-Me*Me;return[.5*((xe>=0?T:-T)-O(rt,2*xe)),-.25*a(rt*rt+4*Fe)+.5*a(Je*Je+Fe)]}(V*w(-1*Ot),V*S(-1*Ot)),ge=function(xe,Me,Fe){var Je=b(xe),rt=U(b(Me));if(Je){var dt=1/S(Je),mt=1/(A(Je)*A(Je)),Et=-(mt+Fe*(rt*rt*dt*dt)-1+Fe),Vt=(-Et+j(Et*Et-(Fe-1)*mt*4))/2;return[Bn(i(1/j(Vt)),Fe)*_(xe),Bn(i(j((Vt/mt-1)/Fe)),1-Fe)*_(Me)]}return[0,Bn(i(rt),1-Fe)*_(Me)]}(ne[0],ne[1],J*J);return[-ge[1],(Mt>=0?1:-1)*(.5*le-ge[0])]}function hn(){return(0,c.c)(io(hr)).scale(151.496)}Qr.invert=function(Ot,Mt){b(Ot)>1&&(Ot=2*_(Ot)-Ot),b(Mt)>1&&(Mt=2*_(Mt)-Mt);var Ft=_(Ot),J=_(Mt),le=-Ft*Ot,ie=-J*Mt,V=ie/le<1,ne=function(Fe,Je){for(var rt=0,dt=1,mt=.5,Et=50;;){var Vt=mt*mt,jt=j(mt),Nt=$(1/j(1+Vt)),cn=1-Vt+mt*(1+Vt)*Nt,sn=(1-jt)/cn,xn=j(sn),pn=sn*(1+Vt),Ln=xn*(1-Vt),On=j(pn-Fe*Fe),An=Je+Ln+mt*On;if(b(dt-rt)0?rt=mt:dt=mt,mt=.5*(rt+dt)}if(!Et)return null;var Sn=$(jt),rr=w(Sn),Dr=1/rr,Pr=2*jt*rr,Zr=(-cn*rr-(-3*mt+Nt*(1+3*Vt))*Pr*(1-jt))/(cn*cn);return[M/4*(Fe*(-2*Dr*((1-Vt)*(.5*Zr/xn)-2*mt*xn*Pr)+-Dr*Pr*On)+-Dr*(mt*(1+Vt)*Zr+sn*(1+3*Vt)*Pr)*$(Fe/j(pn))),Sn]}(V?ie:le,V?le:ie),ge=ne[0],xe=ne[1],Me=w(xe);return V&&(ge=-T-ge),[Ft*(O(S(ge)*Me,-S(xe))+M),J*$(w(ge)*Me)]},hr.invert=function(Ot,Mt){var Ft,J,le,ie,V,ne,ge=(L-1)/(L+1),xe=j(1-ge*ge),Me=(J=-Ot,le=xe*xe,(Ft=.5*Bn(T,xe*xe)-Mt)?(ie=bo(Ft,le),J?(ne=(V=bo(J,1-le))[1]*V[1]+le*ie[0]*ie[0]*V[0]*V[0],[[ie[0]*V[2]/ne,ie[1]*ie[2]*V[0]*V[1]/ne],[ie[1]*V[1]/ne,-ie[0]*ie[2]*V[0]*V[2]/ne],[ie[2]*V[1]*V[2]/ne,-le*ie[0]*ie[1]*V[0]/ne]]):[[ie[0],0],[ie[1],0],[ie[2],0]]):[[0,(V=bo(J,1-le))[0]/V[1]],[1/V[1],0],[V[2]/V[1],0]]),Fe=function(Je,rt){var dt=rt[0]*rt[0]+rt[1]*rt[1];return[(Je[0]*rt[0]+Je[1]*rt[1])/dt,(Je[1]*rt[0]-Je[0]*rt[1])/dt]}(Me[0],Me[1]);return[O(Fe[1],Fe[0])/-1,2*i(y(-.5*a(ge*Fe[0]*Fe[0]+ge*Fe[1]*Fe[1])))-T]};var zn=n(61780);function Zn(Ot){var Mt=S(Ot),Ft=w(Ot),J=yr(Ot);function le(ie,V){var ne=J(ie,V);ie=ne[0],V=ne[1];var ge=S(V),xe=w(V),Me=w(ie),Fe=Q(Mt*ge+Ft*xe*Me),Je=S(Fe),rt=b(Je)>x?Fe/Je:1;return[rt*Ft*S(ie),(b(ie)>T?rt:-rt)*(Mt*xe-Ft*ge*Me)]}return J.invert=yr(-Ot),le.invert=function(ie,V){var ne=j(ie*ie+V*V),ge=-S(ne),xe=w(ne),Me=ne*xe,Fe=-V*ge,Je=ne*Mt,rt=j(Me*Me+Fe*Fe-Je*Je),dt=O(Me*Je+Fe*rt,Fe*Je-Me*rt),mt=(ne>T?-1:1)*O(ie*ge,ne*w(dt)*xe+V*S(dt)*ge);return J.invert(mt,dt)},le}function yr(Ot){var Mt=S(Ot),Ft=w(Ot);return function(J,le){var ie=w(le),V=w(J)*ie,ne=S(J)*ie,ge=S(le);return[O(ne,V*Ft-ge*Mt),$(ge*Ft+V*Mt)]}}function gr(){var Ot=0,Mt=(0,c.U)(Zn),Ft=Mt(Ot),J=Ft.rotate,le=Ft.stream,ie=(0,zn.c)();return Ft.parallel=function(V){if(!arguments.length)return Ot*I;var ne=Ft.rotate();return Mt(Ot=V*z).rotate(ne)},Ft.rotate=function(V){return arguments.length?(J.call(Ft,[V[0],V[1]-Ot*I]),ie.center([-V[0],-V[1]]),Ft):((V=J.call(Ft))[1]+=Ot*I,V)},Ft.stream=function(V){return(V=le(V)).sphere=function(){V.polygonStart();var ne,ge=ie.radius(89.99)().coordinates[0],xe=ge.length-1,Me=-1;for(V.lineStart();++Me=0;)V.point((ne=ge[Me])[0],ne[1]);V.lineEnd(),V.polygonEnd()},V},Ft.scale(79.4187).parallel(45).clipAngle(179.999)}var vr=n(84706),nr=n(16016),Qn=$(1-1/3)*I,Hn=yt(0);function tr(Ot){var Mt=Qn*z,Ft=nn(M,Mt)[0]-nn(-M,Mt)[0],J=Hn(0,Mt)[1],le=nn(0,Mt)[1],ie=D-le,V=k/Ot,ne=4/k,ge=J+ie*ie*4/k;function xe(Me,Fe){var Je,rt=b(Fe);if(rt>Mt){var dt=h(Ot-1,u(0,p((Me+M)/V)));(Je=nn(Me+=M*(Ot-1)/Ot-dt*V,rt))[0]=Je[0]*k/Ft-k*(Ot-1)/(2*Ot)+dt*k/Ot,Je[1]=J+4*(Je[1]-le)*ie/k,Fe<0&&(Je[1]=-Je[1])}else Je=Hn(Me,Fe);return Je[0]*=ne,Je[1]/=ge,Je}return xe.invert=function(Me,Fe){Me/=ne;var Je=b(Fe*=ge);if(Je>J){var rt=h(Ot-1,u(0,p((Me+M)/V)));Me=(Me+M*(Ot-1)/Ot-rt*V)*Ft/k;var dt=nn.invert(Me,.25*(Je-J)*k/ie+le);return dt[0]-=M*(Ot-1)/Ot-rt*V,Fe<0&&(dt[1]=-dt[1]),dt}return Hn.invert(Me,Fe)},xe}function cr(Ot,Mt){return[Ot,1&Mt?90-x:Qn]}function Lr(Ot,Mt){return[Ot,1&Mt?-90+x:-Qn]}function Er(Ot){return[Ot[0]*(1-x),Ot[1]]}function Vr(){var Ot=4,Mt=(0,c.U)(tr),Ft=Mt(Ot),J=Ft.stream;return Ft.lobes=function(le){return arguments.length?Mt(Ot=+le):Ot},Ft.stream=function(le){var ie=Ft.rotate(),V=J(le),ne=(Ft.rotate([0,0]),J(le));return Ft.rotate(ie),V.sphere=function(){var ge,xe;(0,nr.c)((ge=180/Ot,xe=[].concat((0,vr.ik)(-180,180+ge/2,ge).map(cr),(0,vr.ik)(180,-180-ge/2,-ge).map(Lr)),{type:"Polygon",coordinates:[ge===180?xe.map(Er):xe]}),ne)},V},Ft.scale(239.75)}function to(Ot){var Mt,Ft=1+Ot,J=$(S(1/Ft)),le=2*j(M/(Mt=M+4*J*Ft)),ie=.5*le*(Ft+j(Ot*(2+Ot))),V=Ot*Ot,ne=Ft*Ft;function ge(xe,Me){var Fe,Je,rt=1-S(Me);if(rt&&rt<2){var dt,mt=T-Me,Et=25;do{var Vt=S(mt),jt=w(mt),Nt=J+O(Vt,Ft-jt),cn=1+ne-2*Ft*jt;mt-=dt=(mt-V*J-Ft*Vt+cn*Nt-.5*rt*Mt)/(2*Ft*Vt*Nt)}while(b(dt)>R&&--Et>0);Fe=le*j(cn),Je=xe*Nt/M}else Fe=le*(Ot+rt),Je=xe*J/M;return[Fe*S(Je),ie-Fe*w(Je)]}return ge.invert=function(xe,Me){var Fe=xe*xe+(Me-=ie)*Me,Je=(1+ne-Fe/(le*le))/(2*Ft),rt=Q(Je),dt=S(rt),mt=J+O(dt,Ft-Je);return[$(xe/j(Fe))*M/mt,$(1-2*(rt-V*J-Ft*dt+(1+ne-2*Ft*Je)*mt)/Mt)]},ge}function _o(){var Ot=1,Mt=(0,c.U)(to),Ft=Mt(Ot);return Ft.ratio=function(J){return arguments.length?Mt(Ot=+J):Ot},Ft.scale(167.774).center([0,18.67])}var fr=.7109889596207567,Eo=.0528035274542;function ao(Ot,Mt){return Mt>-fr?((Ot=Oe(Ot,Mt))[1]+=Eo,Ot):tt(Ot,Mt)}function co(){return(0,c.c)(ao).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Go(Ot,Mt){return b(Mt)>fr?((Ot=Oe(Ot,Mt))[1]-=Mt>0?Eo:-Eo,Ot):tt(Ot,Mt)}function po(){return(0,c.c)(Go).scale(152.63)}function qo(Ot,Mt,Ft,J){var le=j(4*M/(2*Ft+(1+Ot-Mt/2)*S(2*Ft)+(Ot+Mt)/2*S(4*Ft)+Mt/2*S(6*Ft))),ie=j(J*S(Ft)*j((1+Ot*w(2*Ft)+Mt*w(4*Ft))/(1+Ot+Mt))),V=Ft*ge(1);function ne(Fe){return j(1+Ot*w(2*Fe)+Mt*w(4*Fe))}function ge(Fe){var Je=Fe*Ft;return(2*Je+(1+Ot-Mt/2)*S(2*Je)+(Ot+Mt)/2*S(4*Je)+Mt/2*S(6*Je))/Ft}function xe(Fe){return ne(Fe)*S(Fe)}var Me=function(Fe,Je){var rt=Ft*Ie(ge,V*S(Je)/Ft,Je/M);isNaN(rt)&&(rt=Ft*_(Je));var dt=le*ne(rt);return[dt*ie*Fe/M*w(rt),dt/ie*S(rt)]};return Me.invert=function(Fe,Je){var rt=Ie(xe,Je*ie/le);return[Fe*M/(w(rt)*le*ie*ne(rt)),$(Ft*ge(rt/Ft)/V)]},Ft===0&&(le=j(J/M),(Me=function(Fe,Je){return[Fe*le,S(Je)/le]}).invert=function(Fe,Je){return[Fe/le,$(Je*le)]}),Me}function Ao(){var Ot=1,Mt=0,Ft=45*z,J=2,le=(0,c.U)(qo),ie=le(Ot,Mt,Ft,J);return ie.a=function(V){return arguments.length?le(Ot=+V,Mt,Ft,J):Ot},ie.b=function(V){return arguments.length?le(Ot,Mt=+V,Ft,J):Mt},ie.psiMax=function(V){return arguments.length?le(Ot,Mt,Ft=+V*z,J):Ft*I},ie.ratio=function(V){return arguments.length?le(Ot,Mt,Ft,J=+V):J},ie.scale(180.739)}function oi(Ot,Mt,Ft,J,le,ie,V,ne,ge,xe,Me){if(Me.nanEncountered)return NaN;var Fe,Je,rt,dt,mt,Et,Vt,jt,Nt,cn;if(Je=Ot(Mt+.25*(Fe=Ft-Mt)),rt=Ot(Ft-.25*Fe),isNaN(Je))Me.nanEncountered=!0;else{if(!isNaN(rt))return cn=((Et=(dt=Fe*(J+4*Je+le)/12)+(mt=Fe*(le+4*rt+ie)/12))-V)/15,xe>ge?(Me.maxDepthCount++,Et+cn):Math.abs(cn)rt?mt=Et:dt=Et,Et=dt+mt>>1;while(Et>dt);var Vt=ge[Et+1]-ge[Et];return Vt&&(Vt=(rt-ge[Et+1])/Vt),(Et+1+Vt)/V}var Fe=2*Me(1)/M*ie/Ft,Je=function(rt,dt){var mt=Me(b(S(dt))),Et=J(mt)*rt;return mt/=Fe,[Et,dt>=0?mt:-mt]};return Je.invert=function(rt,dt){var mt;return b(dt*=Fe)<1&&(mt=_(dt)*$(le(b(dt))*ie)),[rt/J(b(dt)),mt]},Je}function mo(){var Ot=0,Mt=2.5,Ft=1.183136,J=(0,c.U)(ra),le=J(Ot,Mt,Ft);return le.alpha=function(ie){return arguments.length?J(Ot=+ie,Mt,Ft):Ot},le.k=function(ie){return arguments.length?J(Ot,Mt=+ie,Ft):Mt},le.gamma=function(ie){return arguments.length?J(Ot,Mt,Ft=+ie):Ft},le.scale(152.63)}function Aa(Ot,Mt){return b(Ot[0]-Mt[0])Fe[Je][2][0];++Je);var dt=Ot(ge-Fe[Je][1][0],xe);return dt[0]+=Ot(Fe[Je][1][0],Me*xe>Me*Fe[Je][0][1]?Fe[Je][0][1]:xe)[0],dt}Ft?ie.invert=Ft(ie):Ot.invert&&(ie.invert=function(ge,xe){for(var Me=le[+(xe<0)],Fe=Mt[+(xe<0)],Je=0,rt=Me.length;Je=0;--Et)Fe=(Me=xe[1][Et])[0][0],Je=Me[0][1],rt=Me[1][1],dt=Me[2][0],mt=Me[2][1],Vt.push(Xl([[dt-x,mt-x],[dt-x,rt+x],[Fe+x,rt+x],[Fe+x,Je-x]],30));return{type:"Polygon",coordinates:[(0,vr.Uf)(Vt)]}}(ge),Mt=ge.map(function(xe){return xe.map(function(Me){return[[Me[0][0]*z,Me[0][1]*z],[Me[1][0]*z,Me[1][1]*z],[Me[2][0]*z,Me[2][1]*z]]})}),le=Mt.map(function(xe){return xe.map(function(Me){var Fe,Je=Ot(Me[0][0],Me[0][1])[0],rt=Ot(Me[2][0],Me[2][1])[0],dt=Ot(Me[1][0],Me[0][1])[1],mt=Ot(Me[1][0],Me[1][1])[1];return dt>mt&&(Fe=dt,dt=mt,mt=Fe),[[Je,dt],[rt,mt]]})}),V):Mt.map(function(xe){return xe.map(function(Me){return[[Me[0][0]*I,Me[0][1]*I],[Me[1][0]*I,Me[1][1]*I],[Me[2][0]*I,Me[2][1]*I]]})})},Mt!=null&&V.lobes(Mt),V}ao.invert=function(Ot,Mt){return Mt>-fr?Oe.invert(Ot,Mt-Eo):tt.invert(Ot,Mt)},Go.invert=function(Ot,Mt){return b(Mt)>fr?Oe.invert(Ot,Mt+(Mt>0?Eo:-Eo)):tt.invert(Ot,Mt)};var us=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function wc(){return Na(Ue,us).scale(160.857)}var ga=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Ku(){return Na(Go,ga).scale(152.63)}var qc=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Yd(){return Na(Oe,qc).scale(169.529)}var Ql=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Ed(){return Na(Oe,Ql).scale(169.529).rotate([20,0])}var Nf=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function mm(){return Na(ao,Nf,ze).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ws=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function gm(){return Na(tt,Ws).scale(152.63).rotate([-20,0])}function Gl(Ot,Mt){return[3/k*Ot*j(M*M/3-Mt*Mt),Mt]}function pc(){return(0,c.c)(Gl).scale(158.837)}function Cu(Ot){function Mt(Ft,J){if(b(b(J)-T)2)return null;var ie=(Ft/=2)*Ft,V=(J/=2)*J,ne=2*J/(1+ie+V);return ne=m((1+ne)/(1-ne),1/Ot),[O(2*Ft,1-ie-V)/Ot,$((ne-1)/(ne+1))]},Mt}function xl(){var Ot=.5,Mt=(0,c.U)(Cu),Ft=Mt(Ot);return Ft.spacing=function(J){return arguments.length?Mt(Ot=+J):Ot},Ft.scale(124.75)}Gl.invert=function(Ot,Mt){return[k/3*Ot/j(M*M/3-Mt*Mt),Mt]};var la=M/L;function cc(Ot,Mt){return[Ot*(1+j(w(Mt)))/2,Mt/(w(Mt/2)*w(Ot/6))]}function pu(){return(0,c.c)(cc).scale(97.2672)}function ju(Ot,Mt){var Ft=Ot*Ot,J=Mt*Mt;return[Ot*(.975534+J*(-.0143059*Ft-.119161+-.0547009*J)),Mt*(1.00384+Ft*(.0802894+-.02855*J+199025e-9*Ft)+J*(.0998909+-.0491032*J))]}function iu(){return(0,c.c)(ju).scale(139.98)}function mc(Ot,Mt){return[S(Ot)/w(Mt),A(Mt)*w(Ot)]}function ks(){return(0,c.c)(mc).scale(144.049).clipAngle(89.999)}function $f(Ot){var Mt=w(Ot),Ft=A(E+Ot/2);function J(le,ie){var V=ie-Ot,ne=b(V)=0;)Je=(Fe=Ot[Me])[0]+ge*(ie=Je)-xe*rt,rt=Fe[1]+ge*rt+xe*ie;return[Je=ge*(ie=Je)-xe*rt,rt=ge*rt+xe*ie]}return Ft.invert=function(J,le){var ie=20,V=J,ne=le;do{for(var ge,xe=Mt,Me=Ot[xe],Fe=Me[0],Je=Me[1],rt=0,dt=0;--xe>=0;)rt=Fe+V*(ge=rt)-ne*dt,dt=Je+V*dt+ne*ge,Fe=(Me=Ot[xe])[0]+V*(ge=Fe)-ne*Je,Je=Me[1]+V*Je+ne*ge;var mt,Et,Vt=(rt=Fe+V*(ge=rt)-ne*dt)*rt+(dt=Je+V*dt+ne*ge)*dt;V-=mt=((Fe=V*(ge=Fe)-ne*Je-J)*rt+(Je=V*Je+ne*ge-le)*dt)/Vt,ne-=Et=(Je*rt-Fe*dt)/Vt}while(b(mt)+b(Et)>x*x&&--ie>0);if(ie){var jt=j(V*V+ne*ne),Nt=2*i(.5*jt),cn=S(Nt);return[O(V*cn,jt*w(Nt)),jt?$(ne*cn/jt):0]}},Ft}cc.invert=function(Ot,Mt){var Ft=b(Ot),J=b(Mt),le=x,ie=T;Jx||b(Et)>x)&&--le>0);return le&&[Ft,J]},mc.invert=function(Ot,Mt){var Ft=Ot*Ot,J=Mt*Mt+1,le=Ft+J,ie=Ot?C*j((le-j(le*le-4*Ft))/Ft):1/j(J);return[$(Ot*ie),_(Mt)*Q(ie)]},Ju.invert=function(Ot,Mt){return[Ot,2.5*i(y(.8*Mt))-.625*M]};var ef=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],uc=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],sd=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Vf=[[.9245,0],[0,0],[.01943,0]],gc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function ld(){return cd(ef,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Mp(){return cd(uc,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Xd(){return cd(sd,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function bf(){return cd(Vf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function mh(){return cd(gc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function cd(Ot,Mt){var Ft=(0,c.c)(Es(Ot)).rotate(Mt).clipAngle(90),J=(0,wt.c)(Mt),le=Ft.center;return delete Ft.rotate,Ft.center=function(ie){return arguments.length?le(J(ie)):J.invert(le())},Ft}var Vh=j(6),xf=j(7);function tf(Ot,Mt){var Ft=$(7*S(Mt)/(3*Vh));return[Vh*Ot*(2*w(2*Ft/3)-1)/xf,9*S(Ft/3)/xf]}function Au(){return(0,c.c)(tf).scale(164.859)}function _f(Ot,Mt){for(var Ft,J=(1+C)*S(Mt),le=Mt,ie=0;ie<25&&(le-=Ft=(S(le/2)+S(le)-J)/(.5*w(le/2)+w(le)),!(b(Ft)R&&--ne>0);return[Ot/(.84719-.13063*(J=V*V)+(ie=J*(le=J*J))*ie*(.05494*J-.04515-.02326*le+.00331*ie)),V]},vm.invert=function(Ot,Mt){for(var Ft=Mt/2,J=0,le=1/0;J<10&&b(le)>x;++J){var ie=w(Mt/2);Mt-=le=(Mt-A(Mt/2)-Ft)/(1-.5/(ie*ie))}return[2*Ot/(1+w(Mt)),Mt]};var M0=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function sr(){return Na(Se(1/0),M0).rotate([20,0]).scale(152.63)}function Pp(Ot,Mt){var Ft=S(Mt),J=w(Mt),le=_(Ot);if(Ot===0||b(Mt)===T)return[0,Mt];if(Mt===0)return[Ot,0];if(b(Ot)===T)return[Ot*J,T*Ft];var ie=M/(2*Ot)-2*Ot/M,V=2*Mt/M,ne=(1-V*V)/(Ft-V),ge=ie*ie,xe=ne*ne,Me=1+ge/xe,Fe=1+xe/ge,Je=(ie*Ft/ne-ie/2)/Me,rt=(xe*Ft/ge+ne/2)/Fe,dt=rt*rt-(xe*Ft*Ft/ge+ne*Ft-1)/Fe;return[T*(Je+j(Je*Je+J*J/Me)*le),T*(rt+j(dt<0?0:dt)*_(-Mt*ie)*le)]}function wf(){return(0,c.c)(Pp).scale(127.267)}Pp.invert=function(Ot,Mt){var Ft=(Ot/=T)*Ot,J=Ft+(Mt/=T)*Mt,le=M*M;return[Ot?(J-1+j((1-J)*(1-J)+4*Ft))/(2*Ot)*T:0,Ie(function(ie){return J*(M*S(ie)-2*ie)*M+4*ie*ie*(Mt-S(ie))+2*M*ie-le*Mt},0)]};var Of=1.0148,Rp=.23185,Gd=-.14499,Fa=.02406,Qu=Of,rf=5*Rp,Bc=7*Gd,ym=9*Fa,Mu=1.790857183;function Hu(Ot,Mt){var Ft=Mt*Mt;return[Ot,Mt*(Of+Ft*Ft*(Rp+Ft*(Gd+Fa*Ft)))]}function Lp(){return(0,c.c)(Hu).scale(139.319)}function Uh(Ot,Mt){if(b(Mt)Mu?Mt=Mu:Mt<-1.790857183&&(Mt=-1.790857183);var Ft,J=Mt;do{var le=J*J;J-=Ft=(J*(Of+le*le*(Rp+le*(Gd+Fa*le)))-Mt)/(Qu+le*le*(rf+le*(Bc+ym*le)))}while(b(Ft)>x);return[Ot,J]},Uh.invert=function(Ot,Mt){if(b(Mt)x&&--ie>0);return V=A(le),[(b(Mt)=0;)if(Ln=xn[rr],pn[0]===Ln[0]&&pn[1]===Ln[1]){if(An)return[An,pn];An=pn}}}(ge.face,xe.face),Fe=(mt=Me.map(xe.project),Et=Me.map(ge.project),Vt=Pu(mt[1],mt[0]),jt=Pu(Et[1],Et[0]),Nt=function(sn,xn){return O(sn[0]*xn[1]-sn[1]*xn[0],sn[0]*xn[0]+sn[1]*xn[1])}(Vt,jt),cn=Oc(Vt)/Oc(jt),vh([1,0,mt[0][0],0,1,mt[0][1]],vh([cn,0,0,0,cn,0],vh([w(Nt),S(Nt),0,-S(Nt),w(Nt),0],[1,0,-Et[0][0],0,1,-Et[0][1]]))));ge.transform=xe.transform?vh(xe.transform,Fe):Fe;for(var Je=xe.edges,rt=0,dt=Je.length;rt0?[-J[0],0]:[180-J[0],180])};var Mt=Zu.map(function(Ft){return{face:Ft,project:Ot(Ft)}});return[-1,0,0,1,0,1,4,5].forEach(function(Ft,J){var le=Mt[Ft];le&&(le.children||(le.children=[])).push(Mt[J])}),Ts(Mt[0],function(Ft,J){return Mt[Ft<-M/2?J<0?6:4:Ft<0?J<0?2:0:Ftge^jt>ge&&ne<(Vt-dt)*(ge-mt)/(jt-mt)+dt&&(xe=!xe)}return xe}(le[0],J))return le.push(Ft),!0})||Ot.push([Ft])}),Wc=[],Ot.length?Ot.length>1?{type:"MultiPolygon",coordinates:Ot}:{type:"Polygon",coordinates:Ot[0]}:null}};function xh(Ot){var Mt=Ot(T,0)[0]-Ot(-T,0)[0];function Ft(J,le){var ie=b(J)0?J-M:J+M,le),ne=(V[0]-V[1])*C,ge=(V[0]+V[1])*C;if(ie)return[ne,ge];var xe=Mt*C,Me=ne>0^ge>0?-1:1;return[Me*ne-_(ge)*xe,Me*ge-_(ne)*xe]}return Ot.invert&&(Ft.invert=function(J,le){var ie=(J+le)*C,V=(le-J)*C,ne=b(ie)<.5*Mt&&b(V)<.5*Mt;if(!ne){var ge=Mt*C,xe=ie>0^V>0?-1:1,Me=-xe*J+(V>0?1:-1)*ge,Fe=-xe*le+(ie>0?1:-1)*ge;ie=(-Me-Fe)*C,V=(Me-Fe)*C}var Je=Ot.invert(ie,V);return ne||(Je[0]+=ie>0?M:-M),Je}),(0,c.c)(Ft).rotate([-90,-90,45]).clipAngle(179.999)}function js(){return xh(Qr).scale(176.423)}function os(){return xh(hr).scale(111.48)}function af(Ot,Mt){if(!(0<=(Mt=+Mt)&&Mt<=20))throw new Error("invalid digits");function Ft(xe){var Me=xe.length,Fe=2,Je=new Array(Me);for(Je[0]=+xe[0].toFixed(Mt),Je[1]=+xe[1].toFixed(Mt);Fe2||rt[0]!=Me[0]||rt[1]!=Me[1])&&(Fe.push(rt),Me=rt)}return Fe.length===1&&xe.length>1&&Fe.push(Ft(xe[xe.length-1])),Fe}function ie(xe){return xe.map(le)}function V(xe){if(xe==null)return xe;var Me;switch(xe.type){case"GeometryCollection":Me={type:"GeometryCollection",geometries:xe.geometries.map(V)};break;case"Point":Me={type:"Point",coordinates:Ft(xe.coordinates)};break;case"MultiPoint":Me={type:xe.type,coordinates:J(xe.coordinates)};break;case"LineString":Me={type:xe.type,coordinates:le(xe.coordinates)};break;case"MultiLineString":case"Polygon":Me={type:xe.type,coordinates:ie(xe.coordinates)};break;case"MultiPolygon":Me={type:"MultiPolygon",coordinates:xe.coordinates.map(ie)};break;default:return xe}return xe.bbox!=null&&(Me.bbox=xe.bbox),Me}function ne(xe){var Me={type:"Feature",properties:xe.properties,geometry:V(xe.geometry)};return xe.id!=null&&(Me.id=xe.id),xe.bbox!=null&&(Me.bbox=xe.bbox),Me}if(Ot!=null)switch(Ot.type){case"Feature":return ne(Ot);case"FeatureCollection":var ge={type:"FeatureCollection",features:Ot.features.map(ne)};return Ot.bbox!=null&&(ge.bbox=Ot.bbox),ge;default:return V(Ot)}return Ot}function Sf(Ot){var Mt=S(Ot);function Ft(J,le){var ie=Mt?A(J*Mt/2)/Mt:J/2;if(!le)return[2*ie,-Ot];var V=2*i(ie*S(le)),ne=1/A(le);return[S(V)*ne,le+(1-w(V))*ne-Ot]}return Ft.invert=function(J,le){if(b(le+=Ot)x&&--ge>0);var Je=J*(xe=A(ne)),rt=A(b(le)0?T:-T)*(xe+ie*(Fe-ne)/2+ie*ie*(Fe-2*xe+ne)/2)]}function pi(){return(0,c.c)(Hi).scale(152.63)}function Qh(Ot,Mt){var Ft=function(V){function ne(ge,xe){var Me=w(xe),Fe=(V-1)/(V-Me*w(ge));return[Fe*Me*S(ge),Fe*S(xe)]}return ne.invert=function(ge,xe){var Me=ge*ge+xe*xe,Fe=j(Me),Je=(V-j(1-Me*(V+1)/(V-1)))/((V-1)/Fe+Fe/(V-1));return[O(ge*Je,Fe*j(1-Je*Je)),Fe?$(xe*Je/Fe):0]},ne}(Ot);if(!Mt)return Ft;var J=w(Mt),le=S(Mt);function ie(V,ne){var ge=Ft(V,ne),xe=ge[1],Me=xe*le/(Ot-1)+J;return[ge[0]*J/Me,xe/Me]}return ie.invert=function(V,ne){var ge=(Ot-1)/(Ot-1-ne*le);return Ft.invert(ge*V,ge*ne*J)},ie}function Ru(){var Ot=2,Mt=0,Ft=(0,c.U)(Qh),J=Ft(Ot,Mt);return J.distance=function(le){return arguments.length?Ft(Ot=+le,Mt):Ot},J.tilt=function(le){return arguments.length?Ft(Ot,Mt=le*z):Mt*I},J.scale(432.147).clipAngle(Q(1/Ot)*I-1e-6)}Ml.forEach(function(Ot){Ot[1]*=1.0144}),Hi.invert=function(Ot,Mt){var Ft=Mt/T,J=90*Ft,le=h(18,b(J/5)),ie=u(0,p(le));do{var V=Ml[ie][1],ne=Ml[ie+1][1],ge=Ml[h(19,ie+2)][1],xe=ge-V,Me=ge-2*ne+V,Fe=2*(b(Ft)-ne)/xe,Je=Me/xe,rt=Fe*(1-Je*Fe*(1-2*Je*Fe));if(rt>=0||ie===1){J=(Mt>=0?5:-5)*(rt+le);var dt,mt=50;do rt=(le=h(18,b(J)/5))-(ie=p(le)),V=Ml[ie][1],ne=Ml[ie+1][1],ge=Ml[h(19,ie+2)][1],J-=(dt=(Mt>=0?T:-T)*(ne+rt*(ge-V)/2+rt*rt*(ge-2*ne+V)/2)-Mt)*I;while(b(dt)>R&&--mt>0);break}}while(--ie>=0);var Et=Ml[ie][0],Vt=Ml[ie+1][0],jt=Ml[h(19,ie+2)][0];return[Ot/(Vt+rt*(jt-Et)/2+rt*rt*(jt-2*Vt+Et)/2),J*z]};var vc=1e-4,Yc=1e4,Kl=-180,Fc=Kl+vc,si=180,Hh=si-vc,Ps=-90,Sc=Ps+vc,tl=90,gu=tl-vc;function vu(Ot){return Ot.length>0}function ja(Ot){return Ot===Ps||Ot===tl?[0,Ot]:[Kl,(Mt=Ot,Math.floor(Mt*Yc)/Yc)];var Mt}function yu(Ot){var Mt=Ot[0],Ft=Ot[1],J=!1;return Mt<=Fc?(Mt=Kl,J=!0):Mt>=Hh&&(Mt=si,J=!0),Ft<=Sc?(Ft=Ps,J=!0):Ft>=gu&&(Ft=tl,J=!0),J?[Mt,Ft]:Ot}function Rd(Ot){return Ot.map(yu)}function Ld(Ot,Mt,Ft){for(var J=0,le=Ot.length;J=Hh||Me<=Sc||Me>=gu){ie[V]=yu(ge);for(var Fe=V+1;FeFc&&rtSc&&dt=ne)break;Ft.push({index:-1,polygon:Mt,ring:ie=ie.slice(Fe-1)}),ie[0]=ja(ie[0][1]),V=-1,ne=ie.length}}}}function nl(Ot){var Mt,Ft,J,le,ie,V,ne=Ot.length,ge={},xe={};for(Mt=0;Mt0?M-ne:ne)*I],xe=(0,c.c)(Ot(V)).rotate(ge),Me=(0,wt.c)(ge),Fe=xe.center;return delete xe.rotate,xe.center=function(Je){return arguments.length?Fe(Me(Je)):Me.invert(Fe())},xe.clipAngle(90)}function Dp(Ot){var Mt=w(Ot);function Ft(J,le){var ie=(0,Cs.Y)(J,le);return ie[0]*=Mt,ie}return Ft.invert=function(J,le){return Cs.Y.invert(J/Mt,le)},Ft}function rp(){return Lu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Lu(Ot,Mt){return bu(Dp,Ot,Mt)}function fs(Ot){if(!(Ot*=2))return de.O;var Mt=-Ot/2,Ft=-Mt,J=Ot*Ot,le=A(Ft),ie=.5/S(Ft);function V(ne,ge){var xe=Q(w(ge)*w(ne-Mt)),Me=Q(w(ge)*w(ne-Ft));return[((xe*=xe)-(Me*=Me))/(2*Ot),(ge<0?-1:1)*j(4*J*Me-(J-xe+Me)*(J-xe+Me))/(2*Ot)]}return V.invert=function(ne,ge){var xe,Me,Fe=ge*ge,Je=w(j(Fe+(xe=ne+Mt)*xe)),rt=w(j(Fe+(xe=ne+Ft)*xe));return[O(Me=Je-rt,xe=(Je+rt)*le),(ge<0?-1:1)*Q(j(xe*xe+Me*Me)*ie)]},V}function Qf(){return dd([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function dd(Ot,Mt){return bu(fs,Ot,Mt)}function Hf(Ot,Mt){if(b(Mt)x&&--ne>0);return[_(Ot)*(j(le*le+4)+le)*M/4,T*V]};var Jl=4*M+3*j(3),Bd=2*j(2*M*j(3)/Jl),Qs=$e(Bd*j(3)/M,Bd,Jl/6);function kc(){return(0,c.c)(Qs).scale(176.84)}function Iu(Ot,Mt){return[Ot*j(1-3*Mt*Mt/(M*M)),Mt]}function Ea(){return(0,c.c)(Iu).scale(152.63)}function El(Ot,Mt){var Ft=w(Mt),J=w(Ot)*Ft,le=1-J,ie=w(Ot=O(S(Ot)*Ft,-S(Mt))),V=S(Ot);return[V*(Ft=j(1-J*J))-ie*le,-ie*Ft-V*le]}function Ol(){return(0,c.c)(El).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function Mi(Ot,Mt){var Ft=K(Ot,Mt);return[(Ft[0]+Ot/T)/2,(Ft[1]+Mt)/2]}function kf(){return(0,c.c)(Mi).scale(158.837)}Iu.invert=function(Ot,Mt){return[Ot/j(1-3*Mt*Mt/(M*M)),Mt]},El.invert=function(Ot,Mt){var Ft=(Ot*Ot+Mt*Mt)/-2,J=j(-Ft*(2+Ft)),le=Mt*Ft+Ot*J,ie=Ot*Ft-Mt*J,V=j(ie*ie+le*le);return[O(J*le,V*(1+Ft)),V?-$(J*ie/V):0]},Mi.invert=function(Ot,Mt){var Ft=Ot,J=Mt,le=25;do{var ie,V=w(J),ne=S(J),ge=S(2*J),xe=ne*ne,Me=V*V,Fe=S(Ft),Je=w(Ft/2),rt=S(Ft/2),dt=rt*rt,mt=1-Me*Je*Je,Et=mt?Q(V*Je)*j(ie=1/mt):ie=0,Vt=.5*(2*Et*V*rt+Ft/T)-Ot,jt=.5*(Et*ne+J)-Mt,Nt=.5*ie*(Me*dt+Et*V*Je*xe)+.5/T,cn=ie*(Fe*ge/4-Et*ne*rt),sn=.125*ie*(ge*rt-Et*ne*Me*Fe),xn=.5*ie*(xe*Je+Et*dt*V)+.5,pn=cn*sn-xn*Nt,Ln=(jt*cn-Vt*xn)/pn,On=(Vt*sn-jt*Nt)/pn;Ft-=Ln,J-=On}while((b(Ln)>x||b(On)>x)&&--le>0);return[Ft,J]}},88728:function(d,l,n){function c(){return new b}function b(){this.reset()}n.d(l,{c:function(){return c}}),b.prototype={constructor:b,reset:function(){this.s=this.t=0},add:function(w){O(i,w,this.t),O(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new b;function O(w,y,p){var a=w.s=y+p,u=a-y,h=a-u;w.t=y-h+(p-u)}},95384:function(d,l,n){n.d(l,{cp:function(){return R},mQ:function(){return h},oB:function(){return v}});var c,b,i,O,w,y=n(88728),p=n(64528),a=n(70932),u=n(16016),h=(0,y.c)(),m=(0,y.c)(),v={point:a.c,lineStart:a.c,lineEnd:a.c,polygonStart:function(){h.reset(),v.lineStart=_,v.lineEnd=S},polygonEnd:function(){var M=+h;m.add(M<0?p.kD+M:M),this.lineStart=this.lineEnd=this.point=a.c},sphere:function(){m.add(p.kD)}};function _(){v.point=A}function S(){x(c,b)}function A(M,T){v.point=x,c=M,b=T,M*=p.qw,T*=p.qw,i=M,O=(0,p.W8)(T=T/2+p.wL),w=(0,p.g$)(T)}function x(M,T){M*=p.qw,T=(T*=p.qw)/2+p.wL;var E=M-i,C=E>=0?1:-1,L=C*E,D=(0,p.W8)(T),k=(0,p.g$)(T),I=w*k,z=O*D+I*(0,p.W8)(L),$=I*C*(0,p.g$)(L);h.add((0,p.WE)($,z)),i=M,O=D,w=k}function R(M){return m.reset(),(0,u.c)(M,v),2*m}},13696:function(d,l,n){n.d(l,{c:function(){return Q}});var c,b,i,O,w,y,p,a,u,h,m=n(88728),v=n(95384),_=n(84220),S=n(64528),A=n(16016),x=(0,m.c)(),R={point:M,lineStart:E,lineEnd:C,polygonStart:function(){R.point=L,R.lineStart=D,R.lineEnd=k,x.reset(),v.oB.polygonStart()},polygonEnd:function(){v.oB.polygonEnd(),R.point=M,R.lineStart=E,R.lineEnd=C,v.mQ<0?(c=-(i=180),b=-(O=90)):x>S.Gg?O=90:x<-S.Gg&&(b=-90),h[0]=c,h[1]=i},sphere:function(){c=-(i=180),b=-(O=90)}};function M(j,U){u.push(h=[c=j,i=j]),UO&&(O=U)}function T(j,U){var X=(0,_.ux)([j*S.qw,U*S.qw]);if(a){var te=(0,_.CW)(a,X),W=[te[1],-te[0],0],K=(0,_.CW)(W,te);(0,_.cJ)(K),K=(0,_.G)(K);var oe,q=j-w,Y=q>0?1:-1,ee=K[0]*S.oh*Y,me=(0,S.a2)(q)>180;me^(Y*wO&&(O=oe):me^(Y*w<(ee=(ee+360)%360-180)&&eeO&&(O=U)),me?jI(c,i)&&(i=j):I(j,i)>I(c,i)&&(c=j):i>=c?(ji&&(i=j)):j>w?I(c,j)>I(c,i)&&(i=j):I(j,i)>I(c,i)&&(c=j)}else u.push(h=[c=j,i=j]);UO&&(O=U),a=X,w=j}function E(){R.point=T}function C(){h[0]=c,h[1]=i,R.point=M,a=null}function L(j,U){if(a){var X=j-w;x.add((0,S.a2)(X)>180?X+(X>0?360:-360):X)}else y=j,p=U;v.oB.point(j,U),T(j,U)}function D(){v.oB.lineStart()}function k(){L(y,p),v.oB.lineEnd(),(0,S.a2)(x)>S.Gg&&(c=-(i=180)),h[0]=c,h[1]=i,a=null}function I(j,U){return(U-=j)<0?U+360:U}function z(j,U){return j[0]-U[0]}function $(j,U){return j[0]<=j[1]?j[0]<=U&&U<=j[1]:UI(te[0],te[1])&&(te[1]=W[1]),I(W[0],te[1])>I(te[0],te[1])&&(te[0]=W[0])):K.push(te=W);for(oe=-1/0,U=0,te=K[X=K.length-1];U<=X;te=W,++U)W=K[U],(q=I(te[1],W[0]))>oe&&(oe=q,c=W[0],i=te[1])}return u=h=null,c===1/0||b===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,b],[i,O]]}},84220:function(d,l,n){n.d(l,{CW:function(){return w},Ez:function(){return O},G:function(){return b},cJ:function(){return a},mg:function(){return y},ux:function(){return i},wx:function(){return p}});var c=n(64528);function b(u){return[(0,c.WE)(u[1],u[0]),(0,c.qR)(u[2])]}function i(u){var h=u[0],m=u[1],v=(0,c.W8)(m);return[v*(0,c.W8)(h),v*(0,c.g$)(h),(0,c.g$)(m)]}function O(u,h){return u[0]*h[0]+u[1]*h[1]+u[2]*h[2]}function w(u,h){return[u[1]*h[2]-u[2]*h[1],u[2]*h[0]-u[0]*h[2],u[0]*h[1]-u[1]*h[0]]}function y(u,h){u[0]+=h[0],u[1]+=h[1],u[2]+=h[2]}function p(u,h){return[u[0]*h,u[1]*h,u[2]*h]}function a(u){var h=(0,c._I)(u[0]*u[0]+u[1]*u[1]+u[2]*u[2]);u[0]/=h,u[1]/=h,u[2]/=h}},24052:function(d,l,n){n.d(l,{c:function(){return X}});var c,b,i,O,w,y,p,a,u,h,m,v,_,S,A,x,R=n(64528),M=n(70932),T=n(16016),E={sphere:M.c,point:C,lineStart:D,lineEnd:z,polygonStart:function(){E.lineStart=$,E.lineEnd=Q},polygonEnd:function(){E.lineStart=D,E.lineEnd=z}};function C(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W);L(K*(0,R.W8)(te),K*(0,R.g$)(te),(0,R.g$)(W))}function L(te,W,K){++c,i+=(te-i)/c,O+=(W-O)/c,w+=(K-w)/c}function D(){E.point=k}function k(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W);S=K*(0,R.W8)(te),A=K*(0,R.g$)(te),x=(0,R.g$)(W),E.point=I,L(S,A,x)}function I(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W),oe=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(W),ee=(0,R.WE)((0,R._I)((ee=A*Y-x*q)*ee+(ee=x*oe-S*Y)*ee+(ee=S*q-A*oe)*ee),S*oe+A*q+x*Y);b+=ee,y+=ee*(S+(S=oe)),p+=ee*(A+(A=q)),a+=ee*(x+(x=Y)),L(S,A,x)}function z(){E.point=C}function $(){E.point=j}function Q(){U(v,_),E.point=C}function j(te,W){v=te,_=W,te*=R.qw,W*=R.qw,E.point=U;var K=(0,R.W8)(W);S=K*(0,R.W8)(te),A=K*(0,R.g$)(te),x=(0,R.g$)(W),L(S,A,x)}function U(te,W){te*=R.qw,W*=R.qw;var K=(0,R.W8)(W),oe=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(W),ee=A*Y-x*q,me=x*oe-S*Y,he=S*q-A*oe,se=(0,R._I)(ee*ee+me*me+he*he),ae=(0,R.qR)(se),ce=se&&-ae/se;u+=ce*ee,h+=ce*me,m+=ce*he,b+=ae,y+=ae*(S+(S=oe)),p+=ae*(A+(A=q)),a+=ae*(x+(x=Y)),L(S,A,x)}function X(te){c=b=i=O=w=y=p=a=u=h=m=0,(0,T.c)(te,E);var W=u,K=h,oe=m,q=W*W+K*K+oe*oe;return q0?v<_:v>_)&&(v+=m*i.kD));for(var R,M=v;m>0?M>_:M<_;M-=x)R=(0,c.G)([S,-A*(0,i.W8)(M),-A*(0,i.g$)(M)]),a.point(R[0],R[1])}}function y(a,u){(u=(0,c.ux)(u))[0]-=a,(0,c.cJ)(u);var h=(0,i.mE)(-u[1]);return((-u[2]<0?-h:h)+i.kD-i.Gg)%i.kD}function p(){var a,u,h=b([0,0]),m=b(90),v=b(6),_={point:function(A,x){a.push(A=u(A,x)),A[0]*=i.oh,A[1]*=i.oh}};function S(){var A=h.apply(this,arguments),x=m.apply(this,arguments)*i.qw,R=v.apply(this,arguments)*i.qw;return a=[],u=(0,O.O)(-A[0]*i.qw,-A[1]*i.qw,0).invert,w(_,x,R,1),A={type:"Polygon",coordinates:[a]},a=u=null,A}return S.center=function(A){return arguments.length?(h=typeof A=="function"?A:b([+A[0],+A[1]]),S):h},S.radius=function(A){return arguments.length?(m=typeof A=="function"?A:b(+A),S):m},S.precision=function(A){return arguments.length?(v=typeof A=="function"?A:b(+A),S):v},S}},78284:function(d,l,n){var c=n(14229),b=n(64528);l.c=(0,c.c)(function(){return!0},function(i){var O,w=NaN,y=NaN,p=NaN;return{lineStart:function(){i.lineStart(),O=1},point:function(a,u){var h=a>0?b.pi:-b.pi,m=(0,b.a2)(a-w);(0,b.a2)(m-b.pi)0?b.or:-b.or),i.point(p,y),i.lineEnd(),i.lineStart(),i.point(h,y),i.point(a,y),O=0):p!==h&&m>=b.pi&&((0,b.a2)(w-p)b.Gg?(0,b.MQ)(((0,b.g$)(_)*(R=(0,b.W8)(A))*(0,b.g$)(S)-(0,b.g$)(A)*(x=(0,b.W8)(_))*(0,b.g$)(v))/(x*R*M)):(_+A)/2}(w,y,a,u),i.point(p,y),i.lineEnd(),i.lineStart(),i.point(h,y),O=0),i.point(w=a,y=u),p=h},lineEnd:function(){i.lineEnd(),w=y=NaN},clean:function(){return 2-O}}},function(i,O,w,y){var p;if(i==null)p=w*b.or,y.point(-b.pi,p),y.point(0,p),y.point(b.pi,p),y.point(b.pi,0),y.point(b.pi,-p),y.point(0,-p),y.point(-b.pi,-p),y.point(-b.pi,0),y.point(-b.pi,p);else if((0,b.a2)(i[0]-O[0])>b.Gg){var a=i[0]1&&O.push(O.pop().concat(O.shift()))},result:function(){var w=O;return O=[],i=null,w}}}},2728:function(d,l,n){n.d(l,{c:function(){return y}});var c=n(84220),b=n(61780),i=n(64528),O=n(41860),w=n(14229);function y(p){var a=(0,i.W8)(p),u=6*i.qw,h=a>0,m=(0,i.a2)(a)>i.Gg;function v(A,x){return(0,i.W8)(A)*(0,i.W8)(x)>a}function _(A,x,R){var M=(0,c.ux)(A),T=(0,c.ux)(x),E=[1,0,0],C=(0,c.CW)(M,T),L=(0,c.Ez)(C,C),D=C[0],k=L-D*D;if(!k)return!R&&A;var I=a*L/k,z=-a*D/k,$=(0,c.CW)(E,C),Q=(0,c.wx)(E,I),j=(0,c.wx)(C,z);(0,c.mg)(Q,j);var U=$,X=(0,c.Ez)(Q,U),te=(0,c.Ez)(U,U),W=X*X-te*((0,c.Ez)(Q,Q)-1);if(!(W<0)){var K=(0,i._I)(W),oe=(0,c.wx)(U,(-X-K)/te);if((0,c.mg)(oe,Q),oe=(0,c.G)(oe),!R)return oe;var q,Y=A[0],ee=x[0],me=A[1],he=x[1];ee0^oe[1]<((0,i.a2)(oe[0]-Y)i.pi^(Y<=oe[0]&&oe[0]<=ee)){var ce=(0,c.wx)(U,(-X+K)/te);return(0,c.mg)(ce,Q),[oe,(0,c.G)(ce)]}}}function S(A,x){var R=h?p:i.pi-p,M=0;return A<-R?M|=1:A>R&&(M|=2),x<-R?M|=4:x>R&&(M|=8),M}return(0,w.c)(v,function(A){var x,R,M,T,E;return{lineStart:function(){T=M=!1,E=1},point:function(C,L){var D,k=[C,L],I=v(C,L),z=h?I?0:S(C,L):I?S(C+(C<0?i.pi:-i.pi),L):0;if(!x&&(T=M=I)&&A.lineStart(),I!==M&&(!(D=_(x,k))||(0,O.c)(x,D)||(0,O.c)(k,D))&&(k[2]=1),I!==M)E=0,I?(A.lineStart(),D=_(k,x),A.point(D[0],D[1])):(D=_(x,k),A.point(D[0],D[1],2),A.lineEnd()),x=D;else if(m&&x&&h^I){var $;z&R||!($=_(k,x,!0))||(E=0,h?(A.lineStart(),A.point($[0][0],$[0][1]),A.point($[1][0],$[1][1]),A.lineEnd()):(A.point($[1][0],$[1][1]),A.lineEnd(),A.lineStart(),A.point($[0][0],$[0][1],3)))}!I||x&&(0,O.c)(x,k)||A.point(k[0],k[1]),x=k,M=I,R=z},lineEnd:function(){M&&A.lineEnd(),x=null},clean:function(){return E|(T&&M)<<1}}},function(A,x,R,M){(0,b.Q)(M,p,u,R,A,x)},h?[0,-p]:[-i.pi,p-i.pi])}},14229:function(d,l,n){n.d(l,{c:function(){return y}});var c=n(97208),b=n(32232),i=n(64528),O=n(58196),w=n(84706);function y(u,h,m,v){return function(_){var S,A,x,R=h(_),M=(0,c.c)(),T=h(M),E=!1,C={point:L,lineStart:k,lineEnd:I,polygonStart:function(){C.point=z,C.lineStart=$,C.lineEnd=Q,A=[],S=[]},polygonEnd:function(){C.point=L,C.lineStart=k,C.lineEnd=I,A=(0,w.Uf)(A);var j=(0,O.c)(S,v);A.length?(E||(_.polygonStart(),E=!0),(0,b.c)(A,a,j,m,_)):j&&(E||(_.polygonStart(),E=!0),_.lineStart(),m(null,null,1,_),_.lineEnd()),E&&(_.polygonEnd(),E=!1),A=S=null},sphere:function(){_.polygonStart(),_.lineStart(),m(null,null,1,_),_.lineEnd(),_.polygonEnd()}};function L(j,U){u(j,U)&&_.point(j,U)}function D(j,U){R.point(j,U)}function k(){C.point=D,R.lineStart()}function I(){C.point=L,R.lineEnd()}function z(j,U){x.push([j,U]),T.point(j,U)}function $(){T.lineStart(),x=[]}function Q(){z(x[0][0],x[0][1]),T.lineEnd();var j,U,X,te,W=T.clean(),K=M.result(),oe=K.length;if(x.pop(),S.push(x),x=null,oe)if(1&W){if((U=(X=K[0]).length-1)>0){for(E||(_.polygonStart(),E=!0),_.lineStart(),j=0;j1&&2&W&&K.push(K.pop().concat(K.shift())),A.push(K.filter(p))}return C}}function p(u){return u.length>1}function a(u,h){return((u=u.x)[0]<0?u[1]-i.or-i.Gg:i.or-u[1])-((h=h.x)[0]<0?h[1]-i.or-i.Gg:i.or-h[1])}},21676:function(d,l,n){n.d(l,{c:function(){return p}});var c=n(64528),b=n(97208),i=n(32232),O=n(84706),w=1e9,y=-w;function p(a,u,h,m){function v(R,M){return a<=R&&R<=h&&u<=M&&M<=m}function _(R,M,T,E){var C=0,L=0;if(R==null||(C=S(R,T))!==(L=S(M,T))||x(R,M)<0^T>0)do E.point(C===0||C===3?a:h,C>1?m:u);while((C=(C+T+4)%4)!==L);else E.point(M[0],M[1])}function S(R,M){return(0,c.a2)(R[0]-a)0?0:3:(0,c.a2)(R[0]-h)0?2:1:(0,c.a2)(R[1]-u)0?1:0:M>0?3:2}function A(R,M){return x(R.x,M.x)}function x(R,M){var T=S(R,1),E=S(M,1);return T!==E?T-E:T===0?M[1]-R[1]:T===1?R[0]-M[0]:T===2?R[1]-M[1]:M[0]-R[0]}return function(R){var M,T,E,C,L,D,k,I,z,$,Q,j=R,U=(0,b.c)(),X={point:te,lineStart:function(){X.point=W,T&&T.push(E=[]),$=!0,z=!1,k=I=NaN},lineEnd:function(){M&&(W(C,L),D&&z&&U.rejoin(),M.push(U.result())),X.point=te,z&&j.lineEnd()},polygonStart:function(){j=U,M=[],T=[],Q=!0},polygonEnd:function(){var K=function(){for(var Y=0,ee=0,me=T.length;eem&&(ye-he)*(m-se)>(_e-se)*(a-he)&&++Y:_e<=m&&(ye-he)*(m-se)<(_e-se)*(a-he)&&--Y;return Y}(),oe=Q&&K,q=(M=(0,O.Uf)(M)).length;(oe||q)&&(R.polygonStart(),oe&&(R.lineStart(),_(null,null,1,R),R.lineEnd()),q&&(0,i.c)(M,A,K,_,R),R.polygonEnd()),j=R,M=T=E=null}};function te(K,oe){v(K,oe)&&j.point(K,oe)}function W(K,oe){var q=v(K,oe);if(T&&E.push([K,oe]),$)C=K,L=oe,D=q,$=!1,q&&(j.lineStart(),j.point(K,oe));else if(q&&z)j.point(K,oe);else{var Y=[k=Math.max(y,Math.min(w,k)),I=Math.max(y,Math.min(w,I))],ee=[K=Math.max(y,Math.min(w,K)),oe=Math.max(y,Math.min(w,oe))];(function(me,he,se,ae,ce,de){var ve,ye=me[0],_e=me[1],Se=0,Te=1,Pe=he[0]-ye,Ie=he[1]-_e;if(ve=se-ye,Pe||!(ve>0)){if(ve/=Pe,Pe<0){if(ve0){if(ve>Te)return;ve>Se&&(Se=ve)}if(ve=ce-ye,Pe||!(ve<0)){if(ve/=Pe,Pe<0){if(ve>Te)return;ve>Se&&(Se=ve)}else if(Pe>0){if(ve0)){if(ve/=Ie,Ie<0){if(ve0){if(ve>Te)return;ve>Se&&(Se=ve)}if(ve=de-_e,Ie||!(ve<0)){if(ve/=Ie,Ie<0){if(ve>Te)return;ve>Se&&(Se=ve)}else if(Ie>0){if(ve0&&(me[0]=ye+Se*Pe,me[1]=_e+Se*Ie),Te<1&&(he[0]=ye+Te*Pe,he[1]=_e+Te*Ie),!0}}}}})(Y,ee,a,u,h,m)?(z||(j.lineStart(),j.point(Y[0],Y[1])),j.point(ee[0],ee[1]),q||j.lineEnd(),Q=!1):q&&(j.lineStart(),j.point(K,oe),Q=!1)}k=K,I=oe,z=q}return X}}},32232:function(d,l,n){n.d(l,{c:function(){return O}});var c=n(41860),b=n(64528);function i(y,p,a,u){this.x=y,this.z=p,this.o=a,this.e=u,this.v=!1,this.n=this.p=null}function O(y,p,a,u,h){var m,v,_=[],S=[];if(y.forEach(function(E){if(!((C=E.length-1)<=0)){var C,L,D=E[0],k=E[C];if((0,c.c)(D,k)){if(!D[2]&&!k[2]){for(h.lineStart(),m=0;m=0;--m)h.point((x=A[m])[0],x[1]);else u(M.x,M.p.x,-1,h);M=M.p}A=(M=M.o).z,T=!T}while(!M.v);h.lineEnd()}}}function w(y){if(p=y.length){for(var p,a,u=0,h=y[0];++u0&&(Cr=I(Pn[io],Pn[io-1]))>0&&br<=Cr&&dr<=Cr&&(br+dr-Cr)*(1-Math.pow((br-dr)/Cr,2))S.Gg}).map(bo)).concat((0,oe.ik)((0,S.Km)(io/Zn)*Zn,Cr,Zn).filter(function(Hn){return(0,S.a2)(Hn%gr)>S.Gg}).map(Bn))}return nr.lines=function(){return Qn().map(function(Hn){return{type:"LineString",coordinates:Hn}})},nr.outline=function(){return{type:"Polygon",coordinates:[hr(dr).concat(hn(Qr).slice(1),hr(br).reverse().slice(1),hn(Wr).reverse().slice(1))]}},nr.extent=function(Hn){return arguments.length?nr.extentMajor(Hn).extentMinor(Hn):nr.extentMinor()},nr.extentMajor=function(Hn){return arguments.length?(dr=+Hn[0][0],br=+Hn[1][0],Wr=+Hn[0][1],Qr=+Hn[1][1],dr>br&&(Hn=dr,dr=br,br=Hn),Wr>Qr&&(Hn=Wr,Wr=Qr,Qr=Hn),nr.precision(vr)):[[dr,Wr],[br,Qr]]},nr.extentMinor=function(Hn){return arguments.length?(Yn=+Hn[0][0],Pn=+Hn[1][0],io=+Hn[0][1],Cr=+Hn[1][1],Yn>Pn&&(Hn=Yn,Yn=Pn,Pn=Hn),io>Cr&&(Hn=io,io=Cr,Cr=Hn),nr.precision(vr)):[[Yn,io],[Pn,Cr]]},nr.step=function(Hn){return arguments.length?nr.stepMajor(Hn).stepMinor(Hn):nr.stepMinor()},nr.stepMajor=function(Hn){return arguments.length?(yr=+Hn[0],gr=+Hn[1],nr):[yr,gr]},nr.stepMinor=function(Hn){return arguments.length?(zn=+Hn[0],Zn=+Hn[1],nr):[zn,Zn]},nr.precision=function(Hn){return arguments.length?(vr=+Hn,bo=q(io,Cr,90),Bn=Y(Yn,Pn,vr),hr=q(Wr,Qr,90),hn=Y(dr,br,vr),nr):vr},nr.extentMajor([[-180,-90+S.Gg],[180,90-S.Gg]]).extentMinor([[-180,-80-S.Gg],[180,80+S.Gg]])}function me(){return ee()()}var he,se,ae,ce,de=n(27284),ve=n(7376),ye=(0,_.c)(),_e=(0,_.c)(),Se={point:A.c,lineStart:A.c,lineEnd:A.c,polygonStart:function(){Se.lineStart=Te,Se.lineEnd=ze},polygonEnd:function(){Se.lineStart=Se.lineEnd=Se.point=A.c,ye.add((0,S.a2)(_e)),_e.reset()},result:function(){var Pn=ye/2;return ye.reset(),Pn}};function Te(){Se.point=Pe}function Pe(Pn,Yn){Se.point=Ie,he=ae=Pn,se=ce=Yn}function Ie(Pn,Yn){_e.add(ce*Pn-ae*Yn),ae=Pn,ce=Yn}function ze(){Ie(he,se)}var De,He,Ve,$e,Oe=Se,ke=n(73784),Le=0,We=0,Ue=0,Ze=0,Xe=0,tt=0,Ee=0,Ne=0,je=0,nt={point:ot,lineStart:Ge,lineEnd:wt,polygonStart:function(){nt.lineStart=Dt,nt.lineEnd=It},polygonEnd:function(){nt.point=ot,nt.lineStart=Ge,nt.lineEnd=wt},result:function(){var Pn=je?[Ee/je,Ne/je]:tt?[Ze/tt,Xe/tt]:Ue?[Le/Ue,We/Ue]:[NaN,NaN];return Le=We=Ue=Ze=Xe=tt=Ee=Ne=je=0,Pn}};function ot(Pn,Yn){Le+=Pn,We+=Yn,++Ue}function Ge(){nt.point=ht}function ht(Pn,Yn){nt.point=pt,ot(Ve=Pn,$e=Yn)}function pt(Pn,Yn){var br=Pn-Ve,dr=Yn-$e,Cr=(0,S._I)(br*br+dr*dr);Ze+=Cr*(Ve+Pn)/2,Xe+=Cr*($e+Yn)/2,tt+=Cr,ot(Ve=Pn,$e=Yn)}function wt(){nt.point=ot}function Dt(){nt.point=qt}function It(){en(De,He)}function qt(Pn,Yn){nt.point=en,ot(De=Ve=Pn,He=$e=Yn)}function en(Pn,Yn){var br=Pn-Ve,dr=Yn-$e,Cr=(0,S._I)(br*br+dr*dr);Ze+=Cr*(Ve+Pn)/2,Xe+=Cr*($e+Yn)/2,tt+=Cr,Ee+=(Cr=$e*Pn-Ve*Yn)*(Ve+Pn),Ne+=Cr*($e+Yn),je+=3*Cr,ot(Ve=Pn,$e=Yn)}var Gt=nt;function Ct(Pn){this._context=Pn}Ct.prototype={_radius:4.5,pointRadius:function(Pn){return this._radius=Pn,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Pn,Yn){switch(this._point){case 0:this._context.moveTo(Pn,Yn),this._point=1;break;case 1:this._context.lineTo(Pn,Yn);break;default:this._context.moveTo(Pn+this._radius,Yn),this._context.arc(Pn,Yn,this._radius,0,S.kD)}},result:A.c};var _t,nn,gn,bn,mn,vt=(0,_.c)(),bt={point:A.c,lineStart:function(){bt.point=lt},lineEnd:function(){_t&&yt(nn,gn),bt.point=A.c},polygonStart:function(){_t=!0},polygonEnd:function(){_t=null},result:function(){var Pn=+vt;return vt.reset(),Pn}};function lt(Pn,Yn){bt.point=yt,nn=bn=Pn,gn=mn=Yn}function yt(Pn,Yn){bn-=Pn,mn-=Yn,vt.add((0,S._I)(bn*bn+mn*mn)),bn=Pn,mn=Yn}var zt=bt;function Rt(){this._string=[]}function it(Pn){return"m0,"+Pn+"a"+Pn+","+Pn+" 0 1,1 0,"+-2*Pn+"a"+Pn+","+Pn+" 0 1,1 0,"+2*Pn+"z"}function at(Pn,Yn){var br,dr,Cr=4.5;function io(Qr){return Qr&&(typeof Cr=="function"&&dr.pointRadius(+Cr.apply(this,arguments)),(0,x.c)(Qr,br(dr))),dr.result()}return io.area=function(Qr){return(0,x.c)(Qr,br(Oe)),Oe.result()},io.measure=function(Qr){return(0,x.c)(Qr,br(zt)),zt.result()},io.bounds=function(Qr){return(0,x.c)(Qr,br(ke.c)),ke.c.result()},io.centroid=function(Qr){return(0,x.c)(Qr,br(Gt)),Gt.result()},io.projection=function(Qr){return arguments.length?(br=Qr==null?(Pn=null,ve.c):(Pn=Qr).stream,io):Pn},io.context=function(Qr){return arguments.length?(dr=Qr==null?(Yn=null,new Rt):new Ct(Yn=Qr),typeof Cr!="function"&&dr.pointRadius(Cr),io):Yn},io.pointRadius=function(Qr){return arguments.length?(Cr=typeof Qr=="function"?Qr:(dr.pointRadius(+Qr),+Qr),io):Cr},io.projection(Pn).context(Yn)}Rt.prototype={_radius:4.5,_circle:it(4.5),pointRadius:function(Pn){return(Pn=+Pn)!==this._radius&&(this._radius=Pn,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Pn,Yn){switch(this._point){case 0:this._string.push("M",Pn,",",Yn),this._point=1;break;case 1:this._string.push("L",Pn,",",Yn);break;default:this._circle==null&&(this._circle=it(this._radius)),this._string.push("M",Pn,",",Yn,this._circle)}},result:function(){if(this._string.length){var Pn=this._string.join("");return this._string=[],Pn}return null}};var Lt=n(87952);function xt(Pn){var Yn=0,br=S.pi/3,dr=(0,Lt.U)(Pn),Cr=dr(Yn,br);return Cr.parallels=function(io){return arguments.length?dr(Yn=io[0]*S.qw,br=io[1]*S.qw):[Yn*S.oh,br*S.oh]},Cr}function Zt(Pn,Yn){var br=(0,S.g$)(Pn),dr=(br+(0,S.g$)(Yn))/2;if((0,S.a2)(dr)=.12&&vr<.234&&gr>=-.425&&gr<-.214?Wr:vr>=.166&&vr<.234&&gr>=-.214&&gr<-.115?bo:Qr).invert(zn)},hr.stream=function(zn){return Pn&&Yn===zn?Pn:(Zn=[Qr.stream(Yn=zn),Wr.stream(zn),bo.stream(zn)],yr=Zn.length,Pn={point:function(gr,vr){for(var nr=-1;++nr0?Wr<-S.or+S.Gg&&(Wr=-S.or+S.Gg):Wr>S.or-S.Gg&&(Wr=S.or-S.Gg);var bo=Cr/(0,S.g3)(er(Wr),dr);return[bo*(0,S.g$)(dr*Qr),Cr-bo*(0,S.W8)(dr*Qr)]}return io.invert=function(Qr,Wr){var bo=Cr-Wr,Bn=(0,S.kq)(dr)*(0,S._I)(Qr*Qr+bo*bo),hr=(0,S.WE)(Qr,(0,S.a2)(bo))*(0,S.kq)(bo);return bo*dr<0&&(hr-=S.pi*(0,S.kq)(Qr)*(0,S.kq)(bo)),[hr/dr,2*(0,S.MQ)((0,S.g3)(Cr/Bn,1/dr))-S.or]},io}function In(){return xt(En).scale(109.5).parallels([30,30])}dn.invert=function(Pn,Yn){return[Pn,2*(0,S.MQ)((0,S.oN)(Yn))-S.or]};var jn=n(69604);function xr(Pn,Yn){var br=(0,S.W8)(Pn),dr=Pn===Yn?(0,S.g$)(Pn):(br-(0,S.W8)(Yn))/(Yn-Pn),Cr=br/dr+Pn;if((0,S.a2)(dr)2?dr[2]+90:90]):[(dr=br())[0],dr[1],dr[2]-90]},br([0,0,90]).scale(159.155)}so.invert=(0,Co.g)(function(Pn){return 2*(0,S.MQ)(Pn)}),go.invert=function(Pn,Yn){return[-Yn,2*(0,S.MQ)((0,S.oN)(Pn))-S.or]}},27284:function(d,l,n){n.d(l,{c:function(){return b}});var c=n(64528);function b(i,O){var w=i[0]*c.qw,y=i[1]*c.qw,p=O[0]*c.qw,a=O[1]*c.qw,u=(0,c.W8)(y),h=(0,c.g$)(y),m=(0,c.W8)(a),v=(0,c.g$)(a),_=u*(0,c.W8)(w),S=u*(0,c.g$)(w),A=m*(0,c.W8)(p),x=m*(0,c.g$)(p),R=2*(0,c.qR)((0,c._I)((0,c.SD)(a-y)+u*m*(0,c.SD)(p-w))),M=(0,c.g$)(R),T=R?function(E){var C=(0,c.g$)(E*=R)/M,L=(0,c.g$)(R-E)/M,D=L*_+C*A,k=L*S+C*x,I=L*h+C*v;return[(0,c.WE)(k,D)*c.oh,(0,c.WE)(I,(0,c._I)(D*D+k*k))*c.oh]}:function(){return[w*c.oh,y*c.oh]};return T.distance=R,T}},64528:function(d,l,n){n.d(l,{Gg:function(){return c},Km:function(){return _},MQ:function(){return h},SD:function(){return D},W8:function(){return v},WE:function(){return m},Yz:function(){return A},_I:function(){return T},a2:function(){return u},a6:function(){return E},a8:function(){return b},g$:function(){return R},g3:function(){return x},kD:function(){return y},kq:function(){return M},mE:function(){return C},oN:function(){return S},oh:function(){return p},or:function(){return O},pi:function(){return i},qR:function(){return L},qw:function(){return a},wL:function(){return w}});var c=1e-6,b=1e-12,i=Math.PI,O=i/2,w=i/4,y=2*i,p=180/i,a=i/180,u=Math.abs,h=Math.atan,m=Math.atan2,v=Math.cos,_=Math.ceil,S=Math.exp,A=Math.log,x=Math.pow,R=Math.sin,M=Math.sign||function(k){return k>0?1:k<0?-1:0},T=Math.sqrt,E=Math.tan;function C(k){return k>1?0:k<-1?i:Math.acos(k)}function L(k){return k>1?O:k<-1?-O:Math.asin(k)}function D(k){return(k=R(k/2))*k}},70932:function(d,l,n){function c(){}n.d(l,{c:function(){return c}})},73784:function(d,l,n){var c=n(70932),b=1/0,i=b,O=-b,w=O,y={point:function(p,a){pO&&(O=p),aw&&(w=a)},lineStart:c.c,lineEnd:c.c,polygonStart:c.c,polygonEnd:c.c,result:function(){var p=[[b,i],[O,w]];return O=w=-(i=b=1/0),p}};l.c=y},41860:function(d,l,n){n.d(l,{c:function(){return b}});var c=n(64528);function b(i,O){return(0,c.a2)(i[0]-O[0])=0?1:-1,te=X*U,W=te>i.pi,K=L*Q;if(O.add((0,i.WE)(K*X*(0,i.g$)(te),D*j+K*(0,i.W8)(te))),_+=W?U+X*i.kD:U,W^E>=u^z>=u){var oe=(0,b.CW)((0,b.ux)(T),(0,b.ux)(I));(0,b.cJ)(oe);var q=(0,b.CW)(v,oe);(0,b.cJ)(q);var Y=(W^U>=0?-1:1)*(0,i.qR)(q[2]);(h>Y||h===Y&&(oe[0]||oe[1]))&&(S+=W^U>=0?1:-1)}}return(_<-i.Gg||_4*L&&q--){var se=$+W,ae=Q+K,ce=j+oe,de=(0,y._I)(se*se+ae*ae+ce*ce),ve=(0,y.qR)(ce/=de),ye=(0,y.a2)((0,y.a2)(ce)-1)L||(0,y.a2)((ee*Pe+me*Ie)/he-.5)>.3||$*W+Q*K+j*oe2?Pe[2]%360*y.qw:0,Se()):[oe*y.oh,q*y.oh,Y*y.oh]},ye.angle=function(Pe){return arguments.length?(ee=Pe%360*y.qw,Se()):ee*y.oh},ye.reflectX=function(Pe){return arguments.length?(me=Pe?-1:1,Se()):me<0},ye.reflectY=function(Pe){return arguments.length?(he=Pe?-1:1,Se()):he<0},ye.precision=function(Pe){return arguments.length?(I=_(z,ve=Pe*Pe),Te()):(0,y._I)(ve)},ye.fitExtent=function(Pe,Ie){return(0,u.QX)(ye,Pe,Ie)},ye.fitSize=function(Pe,Ie){return(0,u.UV)(ye,Pe,Ie)},ye.fitWidth=function(Pe,Ie){return(0,u.Qx)(ye,Pe,Ie)},ye.fitHeight=function(Pe,Ie){return(0,u.OW)(ye,Pe,Ie)},function(){return E=T.apply(this,arguments),ye.invert=E.invert&&_e,Se()}}},47984:function(d,l,n){n.d(l,{c:function(){return O},g:function(){return i}});var c=n(87952),b=n(64528);function i(w,y){var p=y*y,a=p*p;return[w*(.8707-.131979*p+a*(a*(.003971*p-.001529*a)-.013791)),y*(1.007226+p*(.015085+a*(.028874*p-.044475-.005916*a)))]}function O(){return(0,c.c)(i).scale(175.295)}i.invert=function(w,y){var p,a=y,u=25;do{var h=a*a,m=h*h;a-=p=(a*(1.007226+h*(.015085+m*(.028874*h-.044475-.005916*m)))-y)/(1.007226+h*(.045255+m*(.259866*h-.311325-.06507600000000001*m)))}while((0,b.a2)(p)>b.Gg&&--u>0);return[w/(.8707+(h=a*a)*(h*(h*h*h*(.003971-.001529*h)-.013791)-.131979)),a]}},4888:function(d,l,n){n.d(l,{c:function(){return w},t:function(){return O}});var c=n(64528),b=n(62280),i=n(87952);function O(y,p){return[(0,c.W8)(p)*(0,c.g$)(y),(0,c.g$)(p)]}function w(){return(0,i.c)(O).scale(249.5).clipAngle(90+c.Gg)}O.invert=(0,b.g)(c.qR)},92992:function(d,l,n){n.d(l,{O:function(){return O},c:function(){return a}});var c=n(68120),b=n(64528);function i(u,h){return[(0,b.a2)(u)>b.pi?u+Math.round(-u/b.kD)*b.kD:u,h]}function O(u,h,m){return(u%=b.kD)?h||m?(0,c.c)(y(u),p(h,m)):y(u):h||m?p(h,m):i}function w(u){return function(h,m){return[(h+=u)>b.pi?h-b.kD:h<-b.pi?h+b.kD:h,m]}}function y(u){var h=w(u);return h.invert=w(-u),h}function p(u,h){var m=(0,b.W8)(u),v=(0,b.g$)(u),_=(0,b.W8)(h),S=(0,b.g$)(h);function A(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,E=(0,b.g$)(x)*M,C=(0,b.g$)(R),L=C*m+T*v;return[(0,b.WE)(E*_-L*S,T*m-C*v),(0,b.qR)(L*_+E*S)]}return A.invert=function(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,E=(0,b.g$)(x)*M,C=(0,b.g$)(R),L=C*_-E*S;return[(0,b.WE)(E*_+C*S,T*m+L*v),(0,b.qR)(L*m-T*v)]},A}function a(u){function h(m){return(m=u(m[0]*b.qw,m[1]*b.qw))[0]*=b.oh,m[1]*=b.oh,m}return u=O(u[0]*b.qw,u[1]*b.qw,u.length>2?u[2]*b.qw:0),h.invert=function(m){return(m=u.invert(m[0]*b.qw,m[1]*b.qw))[0]*=b.oh,m[1]*=b.oh,m},h}i.invert=i},16016:function(d,l,n){function c(p,a){p&&i.hasOwnProperty(p.type)&&i[p.type](p,a)}n.d(l,{c:function(){return y}});var b={Feature:function(p,a){c(p.geometry,a)},FeatureCollection:function(p,a){for(var u=p.features,h=-1,m=u.length;++h=0;)Le+=We[Ue].value;else Le=1;ke.value=Le}function y(ke,Le){var We,Ue,Ze,Xe,tt,Ee=new h(ke),Ne=+ke.value&&(Ee.value=ke.value),je=[Ee];for(Le==null&&(Le=p);We=je.pop();)if(Ne&&(We.value=+We.data.value),(Ze=Le(We.data))&&(tt=Ze.length))for(We.children=new Array(tt),Xe=tt-1;Xe>=0;--Xe)je.push(Ue=We.children[Xe]=new h(Ze[Xe])),Ue.parent=We,Ue.depth=We.depth+1;return Ee.eachBefore(u)}function p(ke){return ke.children}function a(ke){ke.data=ke.data.data}function u(ke){var Le=0;do ke.height=Le;while((ke=ke.parent)&&ke.height<++Le)}function h(ke){this.data=ke,this.depth=this.height=0,this.parent=null}n.r(l),n.d(l,{cluster:function(){return O},hierarchy:function(){return y},pack:function(){return U},packEnclose:function(){return v},packSiblings:function(){return I},partition:function(){return q},stratify:function(){return ae},tree:function(){return Te},treemap:function(){return He},treemapBinary:function(){return Ve},treemapDice:function(){return oe},treemapResquarify:function(){return Oe},treemapSlice:function(){return Pe},treemapSliceDice:function(){return $e},treemapSquarify:function(){return De}}),h.prototype=y.prototype={constructor:h,count:function(){return this.eachAfter(w)},each:function(ke){var Le,We,Ue,Ze,Xe=this,tt=[Xe];do for(Le=tt.reverse(),tt=[];Xe=Le.pop();)if(ke(Xe),We=Xe.children)for(Ue=0,Ze=We.length;Ue=0;--We)Ze.push(Le[We]);return this},sum:function(ke){return this.eachAfter(function(Le){for(var We=+ke(Le.data)||0,Ue=Le.children,Ze=Ue&&Ue.length;--Ze>=0;)We+=Ue[Ze].value;Le.value=We})},sort:function(ke){return this.eachBefore(function(Le){Le.children&&Le.children.sort(ke)})},path:function(ke){for(var Le=this,We=function(Xe,tt){if(Xe===tt)return Xe;var Ee=Xe.ancestors(),Ne=tt.ancestors(),je=null;for(Xe=Ee.pop(),tt=Ne.pop();Xe===tt;)je=Xe,Xe=Ee.pop(),tt=Ne.pop();return je}(Le,ke),Ue=[Le];Le!==We;)Le=Le.parent,Ue.push(Le);for(var Ze=Ue.length;ke!==We;)Ue.splice(Ze,0,ke),ke=ke.parent;return Ue},ancestors:function(){for(var ke=this,Le=[ke];ke=ke.parent;)Le.push(ke);return Le},descendants:function(){var ke=[];return this.each(function(Le){ke.push(Le)}),ke},leaves:function(){var ke=[];return this.eachBefore(function(Le){Le.children||ke.push(Le)}),ke},links:function(){var ke=this,Le=[];return ke.each(function(We){We!==ke&&Le.push({source:We.parent,target:We})}),Le},copy:function(){return y(this).eachBefore(a)}};var m=Array.prototype.slice;function v(ke){for(var Le,We,Ue=0,Ze=(ke=function(tt){for(var Ee,Ne,je=tt.length;je;)Ne=Math.random()*je--|0,Ee=tt[je],tt[je]=tt[Ne],tt[Ne]=Ee;return tt}(m.call(ke))).length,Xe=[];Ue0&&We*We>Ue*Ue+Ze*Ze}function x(ke,Le){for(var We=0;We(tt*=tt)?(Ue=(je+tt-Ze)/(2*je),Xe=Math.sqrt(Math.max(0,tt/je-Ue*Ue)),We.x=ke.x-Ue*Ee-Xe*Ne,We.y=ke.y-Ue*Ne+Xe*Ee):(Ue=(je+Ze-tt)/(2*je),Xe=Math.sqrt(Math.max(0,Ze/je-Ue*Ue)),We.x=Le.x+Ue*Ee-Xe*Ne,We.y=Le.y+Ue*Ne+Xe*Ee)):(We.x=Le.x+We.r,We.y=Le.y)}function C(ke,Le){var We=ke.r+Le.r-1e-6,Ue=Le.x-ke.x,Ze=Le.y-ke.y;return We>0&&We*We>Ue*Ue+Ze*Ze}function L(ke){var Le=ke._,We=ke.next._,Ue=Le.r+We.r,Ze=(Le.x*We.r+We.x*Le.r)/Ue,Xe=(Le.y*We.r+We.y*Le.r)/Ue;return Ze*Ze+Xe*Xe}function D(ke){this._=ke,this.next=null,this.previous=null}function k(ke){if(!(Ze=ke.length))return 0;var Le,We,Ue,Ze,Xe,tt,Ee,Ne,je,nt,ot;if((Le=ke[0]).x=0,Le.y=0,!(Ze>1))return Le.r;if(We=ke[1],Le.x=-We.r,We.x=Le.r,We.y=0,!(Ze>2))return Le.r+We.r;E(We,Le,Ue=ke[2]),Le=new D(Le),We=new D(We),Ue=new D(Ue),Le.next=Ue.previous=We,We.next=Le.previous=Ue,Ue.next=We.previous=Le;e:for(Ee=3;Ee0)throw new Error("cycle");return tt}return We.id=function(Ue){return arguments.length?(ke=z(Ue),We):ke},We.parentId=function(Ue){return arguments.length?(Le=z(Ue),We):Le},We}function ce(ke,Le){return ke.parent===Le.parent?1:2}function de(ke){var Le=ke.children;return Le?Le[0]:ke.t}function ve(ke){var Le=ke.children;return Le?Le[Le.length-1]:ke.t}function ye(ke,Le,We){var Ue=We/(Le.i-ke.i);Le.c-=Ue,Le.s+=We,ke.c+=Ue,Le.z+=We,Le.m+=We}function _e(ke,Le,We){return ke.a.parent===Le.parent?ke.a:We}function Se(ke,Le){this._=ke,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Le}function Te(){var ke=ce,Le=1,We=1,Ue=null;function Ze(Ne){var je=function(It){for(var qt,en,Gt,Ct,_t,nn=new Se(It,0),gn=[nn];qt=gn.pop();)if(Gt=qt._.children)for(qt.children=new Array(_t=Gt.length),Ct=_t-1;Ct>=0;--Ct)gn.push(en=qt.children[Ct]=new Se(Gt[Ct],Ct)),en.parent=qt;return(nn.parent=new Se(null,0)).children=[nn],nn}(Ne);if(je.eachAfter(Xe),je.parent.m=-je.z,je.eachBefore(tt),Ue)Ne.eachBefore(Ee);else{var nt=Ne,ot=Ne,Ge=Ne;Ne.eachBefore(function(It){It.xot.x&&(ot=It),It.depth>Ge.depth&&(Ge=It)});var ht=nt===ot?1:ke(nt,ot)/2,pt=ht-nt.x,wt=Le/(ot.x+ht+pt),Dt=We/(Ge.depth||1);Ne.eachBefore(function(It){It.x=(It.x+pt)*wt,It.y=It.depth*Dt})}return Ne}function Xe(Ne){var je=Ne.children,nt=Ne.parent.children,ot=Ne.i?nt[Ne.i-1]:null;if(je){(function(ht){for(var pt,wt=0,Dt=0,It=ht.children,qt=It.length;--qt>=0;)(pt=It[qt]).z+=wt,pt.m+=wt,wt+=pt.s+(Dt+=pt.c)})(Ne);var Ge=(je[0].z+je[je.length-1].z)/2;ot?(Ne.z=ot.z+ke(Ne._,ot._),Ne.m=Ne.z-Ge):Ne.z=Ge}else ot&&(Ne.z=ot.z+ke(Ne._,ot._));Ne.parent.A=function(ht,pt,wt){if(pt){for(var Dt,It=ht,qt=ht,en=pt,Gt=It.parent.children[0],Ct=It.m,_t=qt.m,nn=en.m,gn=Gt.m;en=ve(en),It=de(It),en&&It;)Gt=de(Gt),(qt=ve(qt)).a=ht,(Dt=en.z+nn-It.z-Ct+ke(en._,It._))>0&&(ye(_e(en,ht,wt),ht,Dt),Ct+=Dt,_t+=Dt),nn+=en.m,Ct+=It.m,gn+=Gt.m,_t+=qt.m;en&&!ve(qt)&&(qt.t=en,qt.m+=nn-_t),It&&!de(Gt)&&(Gt.t=It,Gt.m+=Ct-gn,wt=ht)}return wt}(Ne,ot,Ne.parent.A||nt[0])}function tt(Ne){Ne._.x=Ne.z+Ne.parent.m,Ne.m+=Ne.parent.m}function Ee(Ne){Ne.x*=Le,Ne.y=Ne.depth*We}return Ze.separation=function(Ne){return arguments.length?(ke=Ne,Ze):ke},Ze.size=function(Ne){return arguments.length?(Ue=!1,Le=+Ne[0],We=+Ne[1],Ze):Ue?null:[Le,We]},Ze.nodeSize=function(Ne){return arguments.length?(Ue=!0,Le=+Ne[0],We=+Ne[1],Ze):Ue?[Le,We]:null},Ze}function Pe(ke,Le,We,Ue,Ze){for(var Xe,tt=ke.children,Ee=-1,Ne=tt.length,je=ke.value&&(Ze-We)/ke.value;++EeGe&&(Ge=Ee),Dt=nt*nt*wt,(ht=Math.max(Ge/Dt,Dt/ot))>pt){nt-=Ee;break}pt=ht}It.push(tt={value:nt,dice:Ne1?Ue:1)},We}(Ie);function He(){var ke=De,Le=!1,We=1,Ue=1,Ze=[0],Xe=$,tt=$,Ee=$,Ne=$,je=$;function nt(Ge){return Ge.x0=Ge.y0=0,Ge.x1=We,Ge.y1=Ue,Ge.eachBefore(ot),Ze=[0],Le&&Ge.eachBefore(K),Ge}function ot(Ge){var ht=Ze[Ge.depth],pt=Ge.x0+ht,wt=Ge.y0+ht,Dt=Ge.x1-ht,It=Ge.y1-ht;Dt=Ge-1){var qt=Ee[ot];return qt.x0=pt,qt.y0=wt,qt.x1=Dt,void(qt.y1=It)}for(var en=je[ot],Gt=ht/2+en,Ct=ot+1,_t=Ge-1;Ct<_t;){var nn=Ct+_t>>>1;je[nn]It-wt){var mn=(pt*bn+Dt*gn)/ht;nt(ot,Ct,gn,pt,wt,mn,It),nt(Ct,Ge,bn,mn,wt,Dt,It)}else{var vt=(wt*bn+It*gn)/ht;nt(ot,Ct,gn,pt,wt,Dt,vt),nt(Ct,Ge,bn,pt,vt,Dt,It)}})(0,Ne,ke.value,Le,We,Ue,Ze)}function $e(ke,Le,We,Ue,Ze){(1&ke.depth?Pe:oe)(ke,Le,We,Ue,Ze)}var Oe=function ke(Le){function We(Ue,Ze,Xe,tt,Ee){if((Ne=Ue._squarify)&&Ne.ratio===Le)for(var Ne,je,nt,ot,Ge,ht=-1,pt=Ne.length,wt=Ue.value;++ht1?Ue:1)},We}(Ie)},10132:function(d,l,n){n.d(l,{ak:function(){return A}});var c=Math.PI,b=2*c,i=1e-6,O=b-i;function w(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function y(){return new w}w.prototype=y.prototype={constructor:w,moveTo:function(x,R){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(x,R){this._+="L"+(this._x1=+x)+","+(this._y1=+R)},quadraticCurveTo:function(x,R,M,T){this._+="Q"+ +x+","+ +R+","+(this._x1=+M)+","+(this._y1=+T)},bezierCurveTo:function(x,R,M,T,E,C){this._+="C"+ +x+","+ +R+","+ +M+","+ +T+","+(this._x1=+E)+","+(this._y1=+C)},arcTo:function(x,R,M,T,E){x=+x,R=+R,M=+M,T=+T,E=+E;var C=this._x1,L=this._y1,D=M-x,k=T-R,I=C-x,z=L-R,$=I*I+z*z;if(E<0)throw new Error("negative radius: "+E);if(this._x1===null)this._+="M"+(this._x1=x)+","+(this._y1=R);else if($>i)if(Math.abs(z*D-k*I)>i&&E){var Q=M-C,j=T-L,U=D*D+k*k,X=Q*Q+j*j,te=Math.sqrt(U),W=Math.sqrt($),K=E*Math.tan((c-Math.acos((U+$-X)/(2*te*W)))/2),oe=K/W,q=K/te;Math.abs(oe-1)>i&&(this._+="L"+(x+oe*I)+","+(R+oe*z)),this._+="A"+E+","+E+",0,0,"+ +(z*Q>I*j)+","+(this._x1=x+q*D)+","+(this._y1=R+q*k)}else this._+="L"+(this._x1=x)+","+(this._y1=R)},arc:function(x,R,M,T,E,C){x=+x,R=+R,C=!!C;var L=(M=+M)*Math.cos(T),D=M*Math.sin(T),k=x+L,I=R+D,z=1^C,$=C?T-E:E-T;if(M<0)throw new Error("negative radius: "+M);this._x1===null?this._+="M"+k+","+I:(Math.abs(this._x1-k)>i||Math.abs(this._y1-I)>i)&&(this._+="L"+k+","+I),M&&($<0&&($=$%b+b),$>O?this._+="A"+M+","+M+",0,1,"+z+","+(x-L)+","+(R-D)+"A"+M+","+M+",0,1,"+z+","+(this._x1=k)+","+(this._y1=I):$>i&&(this._+="A"+M+","+M+",0,"+ +($>=c)+","+z+","+(this._x1=x+M*Math.cos(E))+","+(this._y1=R+M*Math.sin(E))))},rect:function(x,R,M,T){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)+"h"+ +M+"v"+ +T+"h"+-M+"Z"},toString:function(){return this._}};var p=y,a=Array.prototype.slice;function u(x){return function(){return x}}function h(x){return x[0]}function m(x){return x[1]}function v(x){return x.source}function _(x){return x.target}function S(x,R,M,T,E){x.moveTo(R,M),x.bezierCurveTo(R=(R+T)/2,M,R,E,T,E)}function A(){return function(x){var R=v,M=_,T=h,E=m,C=null;function L(){var D,k=a.call(arguments),I=R.apply(this,k),z=M.apply(this,k);if(C||(C=D=p()),x(C,+T.apply(this,(k[0]=I,k)),+E.apply(this,k),+T.apply(this,(k[0]=z,k)),+E.apply(this,k)),D)return C=null,D+""||null}return L.source=function(D){return arguments.length?(R=D,L):R},L.target=function(D){return arguments.length?(M=D,L):M},L.x=function(D){return arguments.length?(T=typeof D=="function"?D:u(+D),L):T},L.y=function(D){return arguments.length?(E=typeof D=="function"?D:u(+D),L):E},L.context=function(D){return arguments.length?(C=D??null,L):C},L}(S)}},94336:function(d,l,n){n.d(l,{Yn:function(){return v},m_:function(){return h},E9:function(){return _}});var c=n(8208),b=n(58931),i=n(46192),O=n(68936),w=n(32171),y=n(53528);function p(Ct){if(0<=Ct.y&&Ct.y<100){var _t=new Date(-1,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L);return _t.setFullYear(Ct.y),_t}return new Date(Ct.y,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L)}function a(Ct){if(0<=Ct.y&&Ct.y<100){var _t=new Date(Date.UTC(-1,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L));return _t.setUTCFullYear(Ct.y),_t}return new Date(Date.UTC(Ct.y,Ct.m,Ct.d,Ct.H,Ct.M,Ct.S,Ct.L))}function u(Ct,_t,nn){return{y:Ct,m:_t,d:nn,H:0,M:0,S:0,L:0}}function h(Ct){var _t=Ct.dateTime,nn=Ct.date,gn=Ct.time,bn=Ct.periods,mn=Ct.days,vt=Ct.shortDays,bt=Ct.months,lt=Ct.shortMonths,yt=E(bn),zt=C(bn),Rt=E(mn),it=C(mn),at=E(vt),Lt=C(vt),xt=E(bt),Zt=C(bt),Xt=E(lt),Yt=C(lt),Qt={a:function(vn){return vt[vn.getDay()]},A:function(vn){return mn[vn.getDay()]},b:function(vn){return lt[vn.getMonth()]},B:function(vn){return bt[vn.getMonth()]},c:null,d:ae,e:ae,f:_e,H:ce,I:de,j:ve,L:ye,m:Se,M:Te,p:function(vn){return bn[+(vn.getHours()>=12)]},q:function(vn){return 1+~~(vn.getMonth()/3)},Q:en,s:Gt,S:Pe,u:Ie,U:ze,V:De,w:He,W:Ve,x:null,X:null,y:$e,Y:Oe,Z:ke,"%":qt},Pt={a:function(vn){return vt[vn.getUTCDay()]},A:function(vn){return mn[vn.getUTCDay()]},b:function(vn){return lt[vn.getUTCMonth()]},B:function(vn){return bt[vn.getUTCMonth()]},c:null,d:Le,e:Le,f:tt,H:We,I:Ue,j:Ze,L:Xe,m:Ee,M:Ne,p:function(vn){return bn[+(vn.getUTCHours()>=12)]},q:function(vn){return 1+~~(vn.getUTCMonth()/3)},Q:en,s:Gt,S:je,u:nt,U:ot,V:Ge,w:ht,W:pt,x:null,X:null,y:wt,Y:Dt,Z:It,"%":qt},tn={a:function(vn,Nn,er){var En=at.exec(Nn.slice(er));return En?(vn.w=Lt[En[0].toLowerCase()],er+En[0].length):-1},A:function(vn,Nn,er){var En=Rt.exec(Nn.slice(er));return En?(vn.w=it[En[0].toLowerCase()],er+En[0].length):-1},b:function(vn,Nn,er){var En=Xt.exec(Nn.slice(er));return En?(vn.m=Yt[En[0].toLowerCase()],er+En[0].length):-1},B:function(vn,Nn,er){var En=xt.exec(Nn.slice(er));return En?(vn.m=Zt[En[0].toLowerCase()],er+En[0].length):-1},c:function(vn,Nn,er){return dn(vn,_t,Nn,er)},d:te,e:te,f:ee,H:K,I:K,j:W,L:Y,m:X,M:oe,p:function(vn,Nn,er){var En=yt.exec(Nn.slice(er));return En?(vn.p=zt[En[0].toLowerCase()],er+En[0].length):-1},q:U,Q:he,s:se,S:q,u:D,U:k,V:I,w:L,W:z,x:function(vn,Nn,er){return dn(vn,nn,Nn,er)},X:function(vn,Nn,er){return dn(vn,gn,Nn,er)},y:Q,Y:$,Z:j,"%":me};function Kt(vn,Nn){return function(er){var En,In,jn,xr=[],Sr=-1,ar=0,Fn=vn.length;for(er instanceof Date||(er=new Date(+er));++Sr53)return null;"w"in jn||(jn.w=1),"Z"in jn?(In=(En=a(u(jn.y,0,1))).getUTCDay(),En=In>4||In===0?c.ot.ceil(En):(0,c.ot)(En),En=b.c.offset(En,7*(jn.V-1)),jn.y=En.getUTCFullYear(),jn.m=En.getUTCMonth(),jn.d=En.getUTCDate()+(jn.w+6)%7):(In=(En=p(u(jn.y,0,1))).getDay(),En=In>4||In===0?i.qT.ceil(En):(0,i.qT)(En),En=O.c.offset(En,7*(jn.V-1)),jn.y=En.getFullYear(),jn.m=En.getMonth(),jn.d=En.getDate()+(jn.w+6)%7)}else("W"in jn||"U"in jn)&&("w"in jn||(jn.w="u"in jn?jn.u%7:"W"in jn?1:0),In="Z"in jn?a(u(jn.y,0,1)).getUTCDay():p(u(jn.y,0,1)).getDay(),jn.m=0,jn.d="W"in jn?(jn.w+6)%7+7*jn.W-(In+5)%7:jn.w+7*jn.U-(In+6)%7);return"Z"in jn?(jn.H+=jn.Z/100|0,jn.M+=jn.Z%100,a(jn)):p(jn)}}function dn(vn,Nn,er,En){for(var In,jn,xr=0,Sr=Nn.length,ar=er.length;xr=ar)return-1;if((In=Nn.charCodeAt(xr++))===37){if(In=Nn.charAt(xr++),!(jn=tn[In in S?Nn.charAt(xr++):In])||(En=jn(vn,er,En))<0)return-1}else if(In!=er.charCodeAt(En++))return-1}return En}return Qt.x=Kt(nn,Qt),Qt.X=Kt(gn,Qt),Qt.c=Kt(_t,Qt),Pt.x=Kt(nn,Pt),Pt.X=Kt(gn,Pt),Pt.c=Kt(_t,Pt),{format:function(vn){var Nn=Kt(vn+="",Qt);return Nn.toString=function(){return vn},Nn},parse:function(vn){var Nn=fn(vn+="",!1);return Nn.toString=function(){return vn},Nn},utcFormat:function(vn){var Nn=Kt(vn+="",Pt);return Nn.toString=function(){return vn},Nn},utcParse:function(vn){var Nn=fn(vn+="",!0);return Nn.toString=function(){return vn},Nn}}}var m,v,_,S={"-":"",_:" ",0:"0"},A=/^\s*\d+/,x=/^%/,R=/[\\^$*+?|[\]().{}]/g;function M(Ct,_t,nn){var gn=Ct<0?"-":"",bn=(gn?-Ct:Ct)+"",mn=bn.length;return gn+(mn68?1900:2e3),nn+gn[0].length):-1}function j(Ct,_t,nn){var gn=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(_t.slice(nn,nn+6));return gn?(Ct.Z=gn[1]?0:-(gn[2]+(gn[3]||"00")),nn+gn[0].length):-1}function U(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+1));return gn?(Ct.q=3*gn[0]-3,nn+gn[0].length):-1}function X(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.m=gn[0]-1,nn+gn[0].length):-1}function te(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.d=+gn[0],nn+gn[0].length):-1}function W(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+3));return gn?(Ct.m=0,Ct.d=+gn[0],nn+gn[0].length):-1}function K(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.H=+gn[0],nn+gn[0].length):-1}function oe(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.M=+gn[0],nn+gn[0].length):-1}function q(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+2));return gn?(Ct.S=+gn[0],nn+gn[0].length):-1}function Y(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+3));return gn?(Ct.L=+gn[0],nn+gn[0].length):-1}function ee(Ct,_t,nn){var gn=A.exec(_t.slice(nn,nn+6));return gn?(Ct.L=Math.floor(gn[0]/1e3),nn+gn[0].length):-1}function me(Ct,_t,nn){var gn=x.exec(_t.slice(nn,nn+1));return gn?nn+gn[0].length:-1}function he(Ct,_t,nn){var gn=A.exec(_t.slice(nn));return gn?(Ct.Q=+gn[0],nn+gn[0].length):-1}function se(Ct,_t,nn){var gn=A.exec(_t.slice(nn));return gn?(Ct.s=+gn[0],nn+gn[0].length):-1}function ae(Ct,_t){return M(Ct.getDate(),_t,2)}function ce(Ct,_t){return M(Ct.getHours(),_t,2)}function de(Ct,_t){return M(Ct.getHours()%12||12,_t,2)}function ve(Ct,_t){return M(1+O.c.count((0,w.c)(Ct),Ct),_t,3)}function ye(Ct,_t){return M(Ct.getMilliseconds(),_t,3)}function _e(Ct,_t){return ye(Ct,_t)+"000"}function Se(Ct,_t){return M(Ct.getMonth()+1,_t,2)}function Te(Ct,_t){return M(Ct.getMinutes(),_t,2)}function Pe(Ct,_t){return M(Ct.getSeconds(),_t,2)}function Ie(Ct){var _t=Ct.getDay();return _t===0?7:_t}function ze(Ct,_t){return M(i.uU.count((0,w.c)(Ct)-1,Ct),_t,2)}function De(Ct,_t){var nn=Ct.getDay();return Ct=nn>=4||nn===0?(0,i.kD)(Ct):i.kD.ceil(Ct),M(i.kD.count((0,w.c)(Ct),Ct)+((0,w.c)(Ct).getDay()===4),_t,2)}function He(Ct){return Ct.getDay()}function Ve(Ct,_t){return M(i.qT.count((0,w.c)(Ct)-1,Ct),_t,2)}function $e(Ct,_t){return M(Ct.getFullYear()%100,_t,2)}function Oe(Ct,_t){return M(Ct.getFullYear()%1e4,_t,4)}function ke(Ct){var _t=Ct.getTimezoneOffset();return(_t>0?"-":(_t*=-1,"+"))+M(_t/60|0,"0",2)+M(_t%60,"0",2)}function Le(Ct,_t){return M(Ct.getUTCDate(),_t,2)}function We(Ct,_t){return M(Ct.getUTCHours(),_t,2)}function Ue(Ct,_t){return M(Ct.getUTCHours()%12||12,_t,2)}function Ze(Ct,_t){return M(1+b.c.count((0,y.c)(Ct),Ct),_t,3)}function Xe(Ct,_t){return M(Ct.getUTCMilliseconds(),_t,3)}function tt(Ct,_t){return Xe(Ct,_t)+"000"}function Ee(Ct,_t){return M(Ct.getUTCMonth()+1,_t,2)}function Ne(Ct,_t){return M(Ct.getUTCMinutes(),_t,2)}function je(Ct,_t){return M(Ct.getUTCSeconds(),_t,2)}function nt(Ct){var _t=Ct.getUTCDay();return _t===0?7:_t}function ot(Ct,_t){return M(c.EV.count((0,y.c)(Ct)-1,Ct),_t,2)}function Ge(Ct,_t){var nn=Ct.getUTCDay();return Ct=nn>=4||nn===0?(0,c.yA)(Ct):c.yA.ceil(Ct),M(c.yA.count((0,y.c)(Ct),Ct)+((0,y.c)(Ct).getUTCDay()===4),_t,2)}function ht(Ct){return Ct.getUTCDay()}function pt(Ct,_t){return M(c.ot.count((0,y.c)(Ct)-1,Ct),_t,2)}function wt(Ct,_t){return M(Ct.getUTCFullYear()%100,_t,2)}function Dt(Ct,_t){return M(Ct.getUTCFullYear()%1e4,_t,4)}function It(){return"+0000"}function qt(){return"%"}function en(Ct){return+Ct}function Gt(Ct){return Math.floor(+Ct/1e3)}m=h({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"]}),v=m.format,m.parse,_=m.utcFormat,m.utcParse},68936:function(d,l,n){n.d(l,{m:function(){return O}});var c=n(81628),b=n(69792),i=(0,c.c)(function(w){w.setHours(0,0,0,0)},function(w,y){w.setDate(w.getDate()+y)},function(w,y){return(y-w-(y.getTimezoneOffset()-w.getTimezoneOffset())*b.iy)/b.SK},function(w){return w.getDate()-1});l.c=i;var O=i.range},69792:function(d,l,n){n.d(l,{KK:function(){return w},SK:function(){return O},cg:function(){return i},iy:function(){return b},yc:function(){return c}});var c=1e3,b=6e4,i=36e5,O=864e5,w=6048e5},73220:function(d,l,n){n.r(l),n.d(l,{timeDay:function(){return A.c},timeDays:function(){return A.m},timeFriday:function(){return x.iB},timeFridays:function(){return x.sJ},timeHour:function(){return _},timeHours:function(){return S},timeInterval:function(){return c.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return O},timeMinute:function(){return h},timeMinutes:function(){return m},timeMonday:function(){return x.qT},timeMondays:function(){return x.QP},timeMonth:function(){return M},timeMonths:function(){return T},timeSaturday:function(){return x.Wc},timeSaturdays:function(){return x.aI},timeSecond:function(){return p},timeSeconds:function(){return a},timeSunday:function(){return x.uU},timeSundays:function(){return x.Ab},timeThursday:function(){return x.kD},timeThursdays:function(){return x.eC},timeTuesday:function(){return x.Mf},timeTuesdays:function(){return x.Oc},timeWednesday:function(){return x.eg},timeWednesdays:function(){return x.sn},timeWeek:function(){return x.uU},timeWeeks:function(){return x.Ab},timeYear:function(){return E.c},timeYears:function(){return E.Q},utcDay:function(){return $.c},utcDays:function(){return $.o},utcFriday:function(){return Q.od},utcFridays:function(){return Q.iG},utcHour:function(){return I},utcHours:function(){return z},utcMillisecond:function(){return i},utcMilliseconds:function(){return O},utcMinute:function(){return L},utcMinutes:function(){return D},utcMonday:function(){return Q.ot},utcMondays:function(){return Q.iO},utcMonth:function(){return U},utcMonths:function(){return X},utcSaturday:function(){return Q.Ad},utcSaturdays:function(){return Q.K8},utcSecond:function(){return p},utcSeconds:function(){return a},utcSunday:function(){return Q.EV},utcSundays:function(){return Q.Wq},utcThursday:function(){return Q.yA},utcThursdays:function(){return Q.ob},utcTuesday:function(){return Q.sG},utcTuesdays:function(){return Q.kl},utcWednesday:function(){return Q._6},utcWednesdays:function(){return Q.W_},utcWeek:function(){return Q.EV},utcWeeks:function(){return Q.Wq},utcYear:function(){return te.c},utcYears:function(){return te.i}});var c=n(81628),b=(0,c.c)(function(){},function(W,K){W.setTime(+W+K)},function(W,K){return K-W});b.every=function(W){return W=Math.floor(W),isFinite(W)&&W>0?W>1?(0,c.c)(function(K){K.setTime(Math.floor(K/W)*W)},function(K,oe){K.setTime(+K+oe*W)},function(K,oe){return(oe-K)/W}):b:null};var i=b,O=b.range,w=n(69792),y=(0,c.c)(function(W){W.setTime(W-W.getMilliseconds())},function(W,K){W.setTime(+W+K*w.yc)},function(W,K){return(K-W)/w.yc},function(W){return W.getUTCSeconds()}),p=y,a=y.range,u=(0,c.c)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*w.yc)},function(W,K){W.setTime(+W+K*w.iy)},function(W,K){return(K-W)/w.iy},function(W){return W.getMinutes()}),h=u,m=u.range,v=(0,c.c)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*w.yc-W.getMinutes()*w.iy)},function(W,K){W.setTime(+W+K*w.cg)},function(W,K){return(K-W)/w.cg},function(W){return W.getHours()}),_=v,S=v.range,A=n(68936),x=n(46192),R=(0,c.c)(function(W){W.setDate(1),W.setHours(0,0,0,0)},function(W,K){W.setMonth(W.getMonth()+K)},function(W,K){return K.getMonth()-W.getMonth()+12*(K.getFullYear()-W.getFullYear())},function(W){return W.getMonth()}),M=R,T=R.range,E=n(32171),C=(0,c.c)(function(W){W.setUTCSeconds(0,0)},function(W,K){W.setTime(+W+K*w.iy)},function(W,K){return(K-W)/w.iy},function(W){return W.getUTCMinutes()}),L=C,D=C.range,k=(0,c.c)(function(W){W.setUTCMinutes(0,0,0)},function(W,K){W.setTime(+W+K*w.cg)},function(W,K){return(K-W)/w.cg},function(W){return W.getUTCHours()}),I=k,z=k.range,$=n(58931),Q=n(8208),j=(0,c.c)(function(W){W.setUTCDate(1),W.setUTCHours(0,0,0,0)},function(W,K){W.setUTCMonth(W.getUTCMonth()+K)},function(W,K){return K.getUTCMonth()-W.getUTCMonth()+12*(K.getUTCFullYear()-W.getUTCFullYear())},function(W){return W.getUTCMonth()}),U=j,X=j.range,te=n(53528)},81628:function(d,l,n){n.d(l,{c:function(){return i}});var c=new Date,b=new Date;function i(O,w,y,p){function a(u){return O(u=arguments.length===0?new Date:new Date(+u)),u}return a.floor=function(u){return O(u=new Date(+u)),u},a.ceil=function(u){return O(u=new Date(u-1)),w(u,1),O(u),u},a.round=function(u){var h=a(u),m=a.ceil(u);return u-h0))return _;do _.push(v=new Date(+u)),w(u,m),O(u);while(v=h)for(;O(h),!u(h);)h.setTime(h-1)},function(h,m){if(h>=h)if(m<0)for(;++m<=0;)for(;w(h,-1),!u(h););else for(;--m>=0;)for(;w(h,1),!u(h););})},y&&(a.count=function(u,h){return c.setTime(+u),b.setTime(+h),O(c),O(b),Math.floor(y(c,b))},a.every=function(u){return u=Math.floor(u),isFinite(u)&&u>0?u>1?a.filter(p?function(h){return p(h)%u==0}:function(h){return a.count(0,h)%u==0}):a:null}),a}},58931:function(d,l,n){n.d(l,{o:function(){return O}});var c=n(81628),b=n(69792),i=(0,c.c)(function(w){w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCDate(w.getUTCDate()+y)},function(w,y){return(y-w)/b.SK},function(w){return w.getUTCDate()-1});l.c=i;var O=i.range},8208:function(d,l,n){n.d(l,{Ad:function(){return h},EV:function(){return O},K8:function(){return R},W_:function(){return S},Wq:function(){return m},_6:function(){return p},iG:function(){return x},iO:function(){return v},kl:function(){return _},ob:function(){return A},od:function(){return u},ot:function(){return w},sG:function(){return y},yA:function(){return a}});var c=n(81628),b=n(69792);function i(M){return(0,c.c)(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-M)%7),T.setUTCHours(0,0,0,0)},function(T,E){T.setUTCDate(T.getUTCDate()+7*E)},function(T,E){return(E-T)/b.KK})}var O=i(0),w=i(1),y=i(2),p=i(3),a=i(4),u=i(5),h=i(6),m=O.range,v=w.range,_=y.range,S=p.range,A=a.range,x=u.range,R=h.range},53528:function(d,l,n){n.d(l,{i:function(){return i}});var c=n(81628),b=(0,c.c)(function(O){O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},function(O,w){O.setUTCFullYear(O.getUTCFullYear()+w)},function(O,w){return w.getUTCFullYear()-O.getUTCFullYear()},function(O){return O.getUTCFullYear()});b.every=function(O){return isFinite(O=Math.floor(O))&&O>0?(0,c.c)(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/O)*O),w.setUTCMonth(0,1),w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCFullYear(w.getUTCFullYear()+y*O)}):null},l.c=b;var i=b.range},46192:function(d,l,n){n.d(l,{Ab:function(){return m},Mf:function(){return y},Oc:function(){return _},QP:function(){return v},Wc:function(){return h},aI:function(){return R},eC:function(){return A},eg:function(){return p},iB:function(){return u},kD:function(){return a},qT:function(){return w},sJ:function(){return x},sn:function(){return S},uU:function(){return O}});var c=n(81628),b=n(69792);function i(M){return(0,c.c)(function(T){T.setDate(T.getDate()-(T.getDay()+7-M)%7),T.setHours(0,0,0,0)},function(T,E){T.setDate(T.getDate()+7*E)},function(T,E){return(E-T-(E.getTimezoneOffset()-T.getTimezoneOffset())*b.iy)/b.KK})}var O=i(0),w=i(1),y=i(2),p=i(3),a=i(4),u=i(5),h=i(6),m=O.range,v=w.range,_=y.range,S=p.range,A=a.range,x=u.range,R=h.range},32171:function(d,l,n){n.d(l,{Q:function(){return i}});var c=n(81628),b=(0,c.c)(function(O){O.setMonth(0,1),O.setHours(0,0,0,0)},function(O,w){O.setFullYear(O.getFullYear()+w)},function(O,w){return w.getFullYear()-O.getFullYear()},function(O){return O.getFullYear()});b.every=function(O){return isFinite(O=Math.floor(O))&&O>0?(0,c.c)(function(w){w.setFullYear(Math.floor(w.getFullYear()/O)*O),w.setMonth(0,1),w.setHours(0,0,0,0)},function(w,y){w.setFullYear(w.getFullYear()+y*O)}):null},l.c=b;var i=b.range},64348:function(d,l,n){var c=n(39640)(),b=n(53664),i=c&&b("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch{i=!1}var O=b("%SyntaxError%"),w=b("%TypeError%"),y=n(2304);d.exports=function(p,a,u){if(!p||typeof p!="object"&&typeof p!="function")throw new w("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new w("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new w("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new w("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new w("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new w("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,m=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,_=arguments.length>6&&arguments[6],S=!!y&&y(p,a);if(i)i(p,a,{configurable:v===null&&S?S.configurable:!v,enumerable:h===null&&S?S.enumerable:!h,value:u,writable:m===null&&S?S.writable:!m});else{if(!_&&(h||m||v))throw new O("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");p[a]=u}}},81288:function(d,l,n){var c=n(41820),b=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,O=Array.prototype.concat,w=Object.defineProperty,y=n(39640)(),p=w&&y,a=function(h,m,v,_){if(m in h){if(_===!0){if(h[m]===v)return}else if(typeof(S=_)!="function"||i.call(S)!=="[object Function]"||!_())return}var S;p?w(h,m,{configurable:!0,enumerable:!1,value:v,writable:!0}):h[m]=v},u=function(h,m){var v=arguments.length>2?arguments[2]:{},_=c(m);b&&(_=O.call(_,Object.getOwnPropertySymbols(m)));for(var S=0;S<_.length;S+=1)a(h,_[S],m[_[S]],v[_[S]])};u.supportsDescriptors=!!p,d.exports=u},31264:function(d){d.exports=function(){for(var l=0;lp*a){var _=(v-m)/p;y[h]=1e3*_}}return y}function b(i){for(var O=[],w=i[0];w<=i[1];w++)for(var y=String.fromCharCode(w),p=i[0];p0)return function(b,i){var O,w;for(O=new Array(b),w=0;w80*$){Q=U=I[0],j=X=I[1];for(var me=$;meU&&(U=te),W>X&&(X=W);K=(K=Math.max(U-Q,X-j))!==0?1/K:0}return b(Y,ee,$,Q,j,K),ee}function n(I,z,$,Q,j){var U,X;if(j===k(I,z,$,Q)>0)for(U=z;U<$;U+=Q)X=C(U,I[U],I[U+1],X);else for(U=$-Q;U>=z;U-=Q)X=C(U,I[U],I[U+1],X);return X&&A(X,X.next)&&(L(X),X=X.next),X}function c(I,z){if(!I)return I;z||(z=I);var $,Q=I;do if($=!1,Q.steiner||!A(Q,Q.next)&&S(Q.prev,Q,Q.next)!==0)Q=Q.next;else{if(L(Q),(Q=z=Q.prev)===Q.next)break;$=!0}while($||Q!==z);return z}function b(I,z,$,Q,j,U,X){if(I){!X&&U&&function(oe,q,Y,ee){var me=oe;do me.z===null&&(me.z=h(me.x,me.y,q,Y,ee)),me.prevZ=me.prev,me.nextZ=me.next,me=me.next;while(me!==oe);me.prevZ.nextZ=null,me.prevZ=null,function(he){var se,ae,ce,de,ve,ye,_e,Se,Te=1;do{for(ae=he,he=null,ve=null,ye=0;ae;){for(ye++,ce=ae,_e=0,se=0;se0||Se>0&&ce;)_e!==0&&(Se===0||!ce||ae.z<=ce.z)?(de=ae,ae=ae.nextZ,_e--):(de=ce,ce=ce.nextZ,Se--),ve?ve.nextZ=de:he=de,de.prevZ=ve,ve=de;ae=ce}ve.nextZ=null,Te*=2}while(ye>1)}(me)}(I,Q,j,U);for(var te,W,K=I;I.prev!==I.next;)if(te=I.prev,W=I.next,U?O(I,Q,j,U):i(I))z.push(te.i/$),z.push(I.i/$),z.push(W.i/$),L(I),I=W.next,K=W.next;else if((I=W)===K){X?X===1?b(I=w(c(I),z,$),z,$,Q,j,U,2):X===2&&y(I,z,$,Q,j,U):b(c(I),z,$,Q,j,U,1);break}}}function i(I){var z=I.prev,$=I,Q=I.next;if(S(z,$,Q)>=0)return!1;for(var j=I.next.next;j!==I.prev;){if(v(z.x,z.y,$.x,$.y,Q.x,Q.y,j.x,j.y)&&S(j.prev,j,j.next)>=0)return!1;j=j.next}return!0}function O(I,z,$,Q){var j=I.prev,U=I,X=I.next;if(S(j,U,X)>=0)return!1;for(var te=j.xU.x?j.x>X.x?j.x:X.x:U.x>X.x?U.x:X.x,oe=j.y>U.y?j.y>X.y?j.y:X.y:U.y>X.y?U.y:X.y,q=h(te,W,z,$,Q),Y=h(K,oe,z,$,Q),ee=I.prevZ,me=I.nextZ;ee&&ee.z>=q&&me&&me.z<=Y;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&S(ee.prev,ee,ee.next)>=0||(ee=ee.prevZ,me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&S(me.prev,me,me.next)>=0))return!1;me=me.nextZ}for(;ee&&ee.z>=q;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&S(ee.prev,ee,ee.next)>=0)return!1;ee=ee.prevZ}for(;me&&me.z<=Y;){if(me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&S(me.prev,me,me.next)>=0)return!1;me=me.nextZ}return!0}function w(I,z,$){var Q=I;do{var j=Q.prev,U=Q.next.next;!A(j,U)&&x(j,Q,Q.next,U)&&T(j,U)&&T(U,j)&&(z.push(j.i/$),z.push(Q.i/$),z.push(U.i/$),L(Q),L(Q.next),Q=I=U),Q=Q.next}while(Q!==I);return c(Q)}function y(I,z,$,Q,j,U){var X=I;do{for(var te=X.next.next;te!==X.prev;){if(X.i!==te.i&&_(X,te)){var W=E(X,te);return X=c(X,X.next),W=c(W,W.next),b(X,z,$,Q,j,U),void b(W,z,$,Q,j,U)}te=te.next}X=X.next}while(X!==I)}function p(I,z){return I.x-z.x}function a(I,z){if(z=function(Q,j){var U,X=j,te=Q.x,W=Q.y,K=-1/0;do{if(W<=X.y&&W>=X.next.y&&X.next.y!==X.y){var oe=X.x+(W-X.y)*(X.next.x-X.x)/(X.next.y-X.y);if(oe<=te&&oe>K){if(K=oe,oe===te){if(W===X.y)return X;if(W===X.next.y)return X.next}U=X.x=X.x&&X.x>=ee&&te!==X.x&&v(WU.x||X.x===U.x&&u(U,X)))&&(U=X,he=q)),X=X.next;while(X!==Y);return U}(I,z),z){var $=E(z,I);c(z,z.next),c($,$.next)}}function u(I,z){return S(I.prev,I,z.prev)<0&&S(z.next,I,I.next)<0}function h(I,z,$,Q,j){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=32767*(I-$)*j)|I<<8))|I<<4))|I<<2))|I<<1))|(z=1431655765&((z=858993459&((z=252645135&((z=16711935&((z=32767*(z-Q)*j)|z<<8))|z<<4))|z<<2))|z<<1))<<1}function m(I){var z=I,$=I;do(z.x<$.x||z.x===$.x&&z.y<$.y)&&($=z),z=z.next;while(z!==I);return $}function v(I,z,$,Q,j,U,X,te){return(j-X)*(z-te)-(I-X)*(U-te)>=0&&(I-X)*(Q-te)-($-X)*(z-te)>=0&&($-X)*(U-te)-(j-X)*(Q-te)>=0}function _(I,z){return I.next.i!==z.i&&I.prev.i!==z.i&&!function($,Q){var j=$;do{if(j.i!==$.i&&j.next.i!==$.i&&j.i!==Q.i&&j.next.i!==Q.i&&x(j,j.next,$,Q))return!0;j=j.next}while(j!==$);return!1}(I,z)&&(T(I,z)&&T(z,I)&&function($,Q){var j=$,U=!1,X=($.x+Q.x)/2,te=($.y+Q.y)/2;do j.y>te!=j.next.y>te&&j.next.y!==j.y&&X<(j.next.x-j.x)*(te-j.y)/(j.next.y-j.y)+j.x&&(U=!U),j=j.next;while(j!==$);return U}(I,z)&&(S(I.prev,I,z.prev)||S(I,z.prev,z))||A(I,z)&&S(I.prev,I,I.next)>0&&S(z.prev,z,z.next)>0)}function S(I,z,$){return(z.y-I.y)*($.x-z.x)-(z.x-I.x)*($.y-z.y)}function A(I,z){return I.x===z.x&&I.y===z.y}function x(I,z,$,Q){var j=M(S(I,z,$)),U=M(S(I,z,Q)),X=M(S($,Q,I)),te=M(S($,Q,z));return j!==U&&X!==te||!(j!==0||!R(I,$,z))||!(U!==0||!R(I,Q,z))||!(X!==0||!R($,I,Q))||!(te!==0||!R($,z,Q))}function R(I,z,$){return z.x<=Math.max(I.x,$.x)&&z.x>=Math.min(I.x,$.x)&&z.y<=Math.max(I.y,$.y)&&z.y>=Math.min(I.y,$.y)}function M(I){return I>0?1:I<0?-1:0}function T(I,z){return S(I.prev,I,I.next)<0?S(I,z,I.next)>=0&&S(I,I.prev,z)>=0:S(I,z,I.prev)<0||S(I,I.next,z)<0}function E(I,z){var $=new D(I.i,I.x,I.y),Q=new D(z.i,z.x,z.y),j=I.next,U=z.prev;return I.next=z,z.prev=I,$.next=j,j.prev=$,Q.next=$,$.prev=Q,U.next=Q,Q.prev=U,Q}function C(I,z,$,Q){var j=new D(I,z,$);return Q?(j.next=Q.next,j.prev=Q,Q.next.prev=j,Q.next=j):(j.prev=j,j.next=j),j}function L(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function D(I,z,$){this.i=I,this.x=z,this.y=$,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function k(I,z,$,Q){for(var j=0,U=z,X=$-Q;U<$;U+=Q)j+=(I[X]-I[U])*(I[U+1]+I[X+1]),X=U;return j}d.exports=l,d.exports.default=l,l.deviation=function(I,z,$,Q){var j=z&&z.length,U=j?z[0]*$:I.length,X=Math.abs(k(I,0,U,$));if(j)for(var te=0,W=z.length;te0&&(Q+=I[j-1].length,$.holes.push(Q))}return $}},6688:function(d,l,n){var c=n(78484);d.exports=function(b,i){var O,w=[],y=[],p=[],a={},u=[];function h(T){p[T]=!1,a.hasOwnProperty(T)&&Object.keys(a[T]).forEach(function(E){delete a[T][E],p[E]&&h(E)})}function m(T){var E,C,L=!1;for(y.push(T),p[T]=!0,E=0;E=$})})(T);for(var E,C=c(b).components.filter(function($){return $.length>1}),L=1/0,D=0;D=55296&&T<=56319&&(D+=_[++A]),D=k?h.call(k,I,D,x):D,S?(m.value=D,v(R,x,m)):R[x]=D,++x;M=x}}if(M===void 0)for(M=O(_.length),S&&(R=new S(M)),A=0;A0?1:-1}},96936:function(d,l,n){var c=n(85608),b=Math.abs,i=Math.floor;d.exports=function(O){return isNaN(O)?0:(O=Number(O))!==0&&isFinite(O)?c(O)*i(b(O)):O}},81304:function(d,l,n){var c=n(96936),b=Math.max;d.exports=function(i){return b(0,c(i))}},14428:function(d,l,n){var c=n(34044),b=n(9252),i=Function.prototype.bind,O=Function.prototype.call,w=Object.keys,y=Object.prototype.propertyIsEnumerable;d.exports=function(p,a){return function(u,h){var m,v=arguments[2],_=arguments[3];return u=Object(b(u)),c(h),m=w(u),_&&m.sort(typeof _=="function"?i.call(_,u):void 0),typeof p!="function"&&(p=m[p]),O.call(p,m,function(S,A){return y.call(u,S)?O.call(h,v,u[S],S,u,A):a})}}},38452:function(d,l,n){d.exports=n(96276)()?Object.assign:n(81892)},96276:function(d){d.exports=function(){var l,n=Object.assign;return typeof n=="function"&&(n(l={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),l.foo+l.bar+l.trzy==="razdwatrzy")}},81892:function(d,l,n){var c=n(54768),b=n(9252),i=Math.max;d.exports=function(O,w){var y,p,a,u=i(arguments.length,2);for(O=Object(b(O)),a=function(h){try{O[h]=w[h]}catch(m){y||(y=m)}},p=1;p-1}},29768:function(d){var l=Object.prototype.toString,n=l.call("");d.exports=function(c){return typeof c=="string"||c&&typeof c=="object"&&(c instanceof String||l.call(c)===n)||!1}},82252:function(d){var l=Object.create(null),n=Math.random;d.exports=function(){var c;do c=n().toString(36).slice(2);while(l[c]);return c}},52104:function(d,l,n){var c,b=n(69932),i=n(71056),O=n(21092),w=n(92664),y=n(85512),p=Object.defineProperty;c=d.exports=function(a,u){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");y.call(this,a),u=u?i.call(u,"key+value")?"key+value":i.call(u,"key")?"key":"value":"value",p(this,"__kind__",O("",u))},b&&b(c,y),delete c.prototype.constructor,c.prototype=Object.create(y.prototype,{_resolve:O(function(a){return this.__kind__==="value"?this.__list__[a]:this.__kind__==="key+value"?[a,this.__list__[a]]:a})}),p(c.prototype,w.toStringTag,O("c","Array Iterator"))},76024:function(d,l,n){var c=n(60948),b=n(34044),i=n(29768),O=n(76252),w=Array.isArray,y=Function.prototype.call,p=Array.prototype.some;d.exports=function(a,u){var h,m,v,_,S,A,x,R,M=arguments[2];if(w(a)||c(a)?h="array":i(a)?h="string":a=O(a),b(u),v=function(){_=!0},h!=="array")if(h!=="string")for(m=a.next();!m.done;){if(y.call(u,M,m.value,v),_)return;m=a.next()}else for(A=a.length,S=0;S=55296&&R<=56319&&(x+=a[++S]),y.call(u,M,x,v),!_);++S);else p.call(a,function(T){return y.call(u,M,T,v),_})}},76252:function(d,l,n){var c=n(60948),b=n(29768),i=n(52104),O=n(80940),w=n(52891),y=n(92664).iterator;d.exports=function(p){return typeof w(p)[y]=="function"?p[y]():c(p)?new i(p):b(p)?new O(p):new i(p)}},85512:function(d,l,n){var c,b=n(41476),i=n(38452),O=n(34044),w=n(9252),y=n(21092),p=n(27940),a=n(92664),u=Object.defineProperty,h=Object.defineProperties;d.exports=c=function(m,v){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");h(this,{__list__:y("w",w(m)),__context__:y("w",v),__nextIndex__:y("w",0)}),v&&(O(v.on),v.on("_add",this._onAdd),v.on("_delete",this._onDelete),v.on("_clear",this._onClear))},delete c.prototype.constructor,h(c.prototype,i({_next:y(function(){var m;if(this.__list__)return this.__redo__&&(m=this.__redo__.shift())!==void 0?m:this.__nextIndex__=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(v,_){v>=m&&(this.__redo__[_]=++v)},this),this.__redo__.push(m)):u(this,"__redo__",y("c",[m])))}),_onDelete:y(function(m){var v;m>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&((v=this.__redo__.indexOf(m))!==-1&&this.__redo__.splice(v,1),this.__redo__.forEach(function(_,S){_>m&&(this.__redo__[S]=--_)},this)))}),_onClear:y(function(){this.__redo__&&b.call(this.__redo__),this.__nextIndex__=0})}))),u(c.prototype,a.iterator,y(function(){return this}))},76368:function(d,l,n){var c=n(60948),b=n(42584),i=n(29768),O=n(92664).iterator,w=Array.isArray;d.exports=function(y){return!(!b(y)||!w(y)&&!i(y)&&!c(y)&&typeof y[O]!="function")}},80940:function(d,l,n){var c,b=n(69932),i=n(21092),O=n(92664),w=n(85512),y=Object.defineProperty;c=d.exports=function(p){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");p=String(p),w.call(this,p),y(this,"__length__",i("",p.length))},b&&b(c,w),delete c.prototype.constructor,c.prototype=Object.create(w.prototype,{_next:i(function(){if(this.__list__)return this.__nextIndex__=55296&&a<=56319?u+this.__list__[this.__nextIndex__++]:u})}),y(c.prototype,O.toStringTag,i("c","String Iterator"))},52891:function(d,l,n){var c=n(76368);d.exports=function(b){if(!c(b))throw new TypeError(b+" is not iterable");return b}},60964:function(d){function l(n,c){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var b=Object(n),i=1;i0&&E.length>M&&!E.warned){E.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+E.length+" "+String(A)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=S,L.type=A,L.count=E.length,C=L,console&&console.warn&&console.warn(C)}return S}function a(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(S,A,x){var R={fired:!1,wrapFn:void 0,target:S,type:A,listener:x},M=a.bind(R);return M.listener=x,R.wrapFn=M,M}function h(S,A,x){var R=S._events;if(R===void 0)return[];var M=R[A];return M===void 0?[]:typeof M=="function"?x?[M.listener||M]:[M]:x?function(T){for(var E=new Array(T.length),C=0;C0&&(T=A[0]),T instanceof Error)throw T;var E=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw E.context=T,E}var C=M[S];if(C===void 0)return!1;if(typeof C=="function")c(C,this,A);else{var L=C.length,D=v(C,L);for(x=0;x=0;T--)if(x[T]===A||x[T].listener===A){E=x[T].listener,M=T;break}if(M<0)return this;M===0?x.shift():function(C,L){for(;L+1=0;R--)this.removeListener(S,A[R]);return this},i.prototype.listeners=function(S){return h(this,S,!0)},i.prototype.rawListeners=function(S){return h(this,S,!1)},i.listenerCount=function(S,A){return typeof S.listenerCount=="function"?S.listenerCount(A):m.call(S,A)},i.prototype.listenerCount=m,i.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]}},39072:function(d){var l=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};d.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return l()}try{return __global__||l()}finally{delete Object.prototype.__global__}}()},12296:function(d,l,n){d.exports=n(45072)()?globalThis:n(39072)},45072:function(d){d.exports=function(){return typeof globalThis=="object"&&!!globalThis&&globalThis.Array===Array}},38248:function(d,l,n){var c=n(94576);d.exports=function(b){var i=typeof b;if(i==="string"){var O=b;if((b=+b)==0&&c(O))return!1}else if(i!=="number")return!1;return b-b<1}},47520:function(d,l,n){var c=n(72512);d.exports=function(b,i,O){if(!b)throw new TypeError("must specify data as first parameter");if(O=0|+(O||0),Array.isArray(b)&&b[0]&&typeof b[0][0]=="number"){var w,y,p,a,u=b[0].length,h=b.length*u;i&&typeof i!="string"||(i=new(c(i||"float32"))(h+O));var m=i.length-O;if(h!==m)throw new Error("source length "+h+" ("+u+"x"+b.length+") does not match destination length "+m);for(w=0,p=O;wO[0]-p[0]/2&&(_=p[0]/2,S+=p[1]);return w}},71920:function(d){function l(i,O){O||(O={}),(typeof i=="string"||Array.isArray(i))&&(O.family=i);var w=Array.isArray(O.family)?O.family.join(", "):O.family;if(!w)throw Error("`family` must be defined");var y=O.size||O.fontSize||O.em||48,p=O.weight||O.fontWeight||"",a=(i=[O.style||O.fontStyle||"",p,y].join(" ")+"px "+w,O.origin||"top");if(l.cache[w]&&y<=l.cache[w].em)return n(l.cache[w],a);var u=O.canvas||l.canvas,h=u.getContext("2d"),m={upper:O.upper!==void 0?O.upper:"H",lower:O.lower!==void 0?O.lower:"x",descent:O.descent!==void 0?O.descent:"p",ascent:O.ascent!==void 0?O.ascent:"h",tittle:O.tittle!==void 0?O.tittle:"i",overshoot:O.overshoot!==void 0?O.overshoot:"O"},v=Math.ceil(1.5*y);u.height=v,u.width=.5*v,h.font=i;var _="H",S={top:0};h.clearRect(0,0,v,v),h.textBaseline="top",h.fillStyle="black",h.fillText(_,0,0);var A=c(h.getImageData(0,0,v,v));h.clearRect(0,0,v,v),h.textBaseline="bottom",h.fillText(_,0,v);var x=c(h.getImageData(0,0,v,v));S.lineHeight=S.bottom=v-x+A,h.clearRect(0,0,v,v),h.textBaseline="alphabetic",h.fillText(_,0,v);var R=v-c(h.getImageData(0,0,v,v))-1+A;S.baseline=S.alphabetic=R,h.clearRect(0,0,v,v),h.textBaseline="middle",h.fillText(_,0,.5*v);var M=c(h.getImageData(0,0,v,v));S.median=S.middle=v-M-1+A-.5*v,h.clearRect(0,0,v,v),h.textBaseline="hanging",h.fillText(_,0,.5*v);var T=c(h.getImageData(0,0,v,v));S.hanging=v-T-1+A-.5*v,h.clearRect(0,0,v,v),h.textBaseline="ideographic",h.fillText(_,0,v);var E=c(h.getImageData(0,0,v,v));if(S.ideographic=v-E-1+A,m.upper&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.upper,0,0),S.upper=c(h.getImageData(0,0,v,v)),S.capHeight=S.baseline-S.upper),m.lower&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.lower,0,0),S.lower=c(h.getImageData(0,0,v,v)),S.xHeight=S.baseline-S.lower),m.tittle&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.tittle,0,0),S.tittle=c(h.getImageData(0,0,v,v))),m.ascent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.ascent,0,0),S.ascent=c(h.getImageData(0,0,v,v))),m.descent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.descent,0,0),S.descent=b(h.getImageData(0,0,v,v))),m.overshoot){h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(m.overshoot,0,0);var C=b(h.getImageData(0,0,v,v));S.overshoot=C-R}for(var L in S)S[L]/=y;return S.em=y,l.cache[w]=S,n(S,a)}function n(i,O){var w={};for(var y in typeof O=="string"&&(O=i[O]),i)y!=="em"&&(w[y]=i[y]-O);return w}function c(i){for(var O=i.height,w=i.data,y=3;y0;y-=4)if(w[y]!==0)return Math.floor(.25*(y-3)/O)}d.exports=l,l.canvas=document.createElement("canvas"),l.cache={}},46492:function(d,l,n){var c=n(90720),b=Object.prototype.toString,i=Object.prototype.hasOwnProperty;d.exports=function(O,w,y){if(!c(w))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=y),b.call(O)==="[object Array]"?function(a,u,h){for(var m=0,v=a.length;m"u"&&!n.canvas)return null;var c=n.canvas||document.createElement("canvas");typeof n.width=="number"&&(c.width=n.width),typeof n.height=="number"&&(c.height=n.height);var b,i=n;try{var O=[l];l.indexOf("webgl")===0&&O.push("experimental-"+l);for(var w=0;w"u"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?c:ArrayBuffer,"%ArrayIteratorPrototype%":u&&m?m([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?c:Atomics,"%BigInt%":typeof BigInt>"u"?c:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?c:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?c:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?c:Float32Array,"%Float64Array%":typeof Float64Array>"u"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?c:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?c:Int8Array,"%Int16Array%":typeof Int16Array>"u"?c:Int16Array,"%Int32Array%":typeof Int32Array>"u"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&m?m(m([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map>"u"?c:Map,"%MapIteratorPrototype%":typeof Map<"u"&&u&&m?m(new Map()[Symbol.iterator]()):c,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?c:Promise,"%Proxy%":typeof Proxy>"u"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?c:Set,"%SetIteratorPrototype%":typeof Set<"u"&&u&&m?m(new Set()[Symbol.iterator]()):c,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&m?m(""[Symbol.iterator]()):c,"%Symbol%":u?Symbol:c,"%SyntaxError%":b,"%ThrowTypeError%":a,"%TypedArray%":_,"%TypeError%":O,"%Uint8Array%":typeof Uint8Array>"u"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?c:WeakMap,"%WeakRef%":typeof WeakRef>"u"?c:WeakRef,"%WeakSet%":typeof WeakSet>"u"?c:WeakSet};if(m)try{null.error}catch(Q){var A=m(m(Q));S["%Error.prototype%"]=A}var x=function Q(j){var U;if(j==="%AsyncFunction%")U=w("async function () {}");else if(j==="%GeneratorFunction%")U=w("function* () {}");else if(j==="%AsyncGeneratorFunction%")U=w("async function* () {}");else if(j==="%AsyncGenerator%"){var X=Q("%AsyncGeneratorFunction%");X&&(U=X.prototype)}else if(j==="%AsyncIteratorPrototype%"){var te=Q("%AsyncGenerator%");te&&m&&(U=m(te.prototype))}return S[j]=U,U},R={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=n(8844),T=n(92064),E=M.call(Function.call,Array.prototype.concat),C=M.call(Function.apply,Array.prototype.splice),L=M.call(Function.call,String.prototype.replace),D=M.call(Function.call,String.prototype.slice),k=M.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,$=function(Q,j){var U,X=Q;if(T(R,X)&&(X="%"+(U=R[X])[0]+"%"),T(S,X)){var te=S[X];if(te===v&&(te=x(X)),te===void 0&&!j)throw new O("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:U,name:X,value:te}}throw new b("intrinsic "+Q+" does not exist!")};d.exports=function(Q,j){if(typeof Q!="string"||Q.length===0)throw new O("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new O('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,Q)===null)throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=function(ce){var de=D(ce,0,1),ve=D(ce,-1);if(de==="%"&&ve!=="%")throw new b("invalid intrinsic syntax, expected closing `%`");if(ve==="%"&&de!=="%")throw new b("invalid intrinsic syntax, expected opening `%`");var ye=[];return L(ce,I,function(_e,Se,Te,Pe){ye[ye.length]=Te?L(Pe,z,"$1"):Se||_e}),ye}(Q),X=U.length>0?U[0]:"",te=$("%"+X+"%",j),W=te.name,K=te.value,oe=!1,q=te.alias;q&&(X=q[0],C(U,E([0,1],q)));for(var Y=1,ee=!0;Y=U.length){var ae=y(K,me);K=(ee=!!ae)&&"get"in ae&&!("originalValue"in ae.get)?ae.get:K[me]}else ee=T(K,me),K=K[me];ee&&!oe&&(S[W]=K)}}return K}},12408:function(d){d.exports=function(l,n){var c=n[0],b=n[1],i=n[2],O=n[3],w=n[4],y=n[5],p=n[6],a=n[7],u=n[8],h=n[9],m=n[10],v=n[11],_=n[12],S=n[13],A=n[14],x=n[15];return l[0]=y*(m*x-v*A)-h*(p*x-a*A)+S*(p*v-a*m),l[1]=-(b*(m*x-v*A)-h*(i*x-O*A)+S*(i*v-O*m)),l[2]=b*(p*x-a*A)-y*(i*x-O*A)+S*(i*a-O*p),l[3]=-(b*(p*v-a*m)-y*(i*v-O*m)+h*(i*a-O*p)),l[4]=-(w*(m*x-v*A)-u*(p*x-a*A)+_*(p*v-a*m)),l[5]=c*(m*x-v*A)-u*(i*x-O*A)+_*(i*v-O*m),l[6]=-(c*(p*x-a*A)-w*(i*x-O*A)+_*(i*a-O*p)),l[7]=c*(p*v-a*m)-w*(i*v-O*m)+u*(i*a-O*p),l[8]=w*(h*x-v*S)-u*(y*x-a*S)+_*(y*v-a*h),l[9]=-(c*(h*x-v*S)-u*(b*x-O*S)+_*(b*v-O*h)),l[10]=c*(y*x-a*S)-w*(b*x-O*S)+_*(b*a-O*y),l[11]=-(c*(y*v-a*h)-w*(b*v-O*h)+u*(b*a-O*y)),l[12]=-(w*(h*A-m*S)-u*(y*A-p*S)+_*(y*m-p*h)),l[13]=c*(h*A-m*S)-u*(b*A-i*S)+_*(b*m-i*h),l[14]=-(c*(y*A-p*S)-w*(b*A-i*S)+_*(b*p-i*y)),l[15]=c*(y*m-p*h)-w*(b*m-i*h)+u*(b*p-i*y),l}},76860:function(d){d.exports=function(l){var n=new Float32Array(16);return n[0]=l[0],n[1]=l[1],n[2]=l[2],n[3]=l[3],n[4]=l[4],n[5]=l[5],n[6]=l[6],n[7]=l[7],n[8]=l[8],n[9]=l[9],n[10]=l[10],n[11]=l[11],n[12]=l[12],n[13]=l[13],n[14]=l[14],n[15]=l[15],n}},64492:function(d){d.exports=function(l,n){return l[0]=n[0],l[1]=n[1],l[2]=n[2],l[3]=n[3],l[4]=n[4],l[5]=n[5],l[6]=n[6],l[7]=n[7],l[8]=n[8],l[9]=n[9],l[10]=n[10],l[11]=n[11],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15],l}},54212:function(d){d.exports=function(){var l=new Float32Array(16);return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},70800:function(d){d.exports=function(l){var n=l[0],c=l[1],b=l[2],i=l[3],O=l[4],w=l[5],y=l[6],p=l[7],a=l[8],u=l[9],h=l[10],m=l[11],v=l[12],_=l[13],S=l[14],A=l[15];return(n*w-c*O)*(h*A-m*S)-(n*y-b*O)*(u*A-m*_)+(n*p-i*O)*(u*S-h*_)+(c*y-b*w)*(a*A-m*v)-(c*p-i*w)*(a*S-h*v)+(b*p-i*y)*(a*_-u*v)}},61784:function(d){d.exports=function(l,n){var c=n[0],b=n[1],i=n[2],O=n[3],w=c+c,y=b+b,p=i+i,a=c*w,u=b*w,h=b*y,m=i*w,v=i*y,_=i*p,S=O*w,A=O*y,x=O*p;return l[0]=1-h-_,l[1]=u+x,l[2]=m-A,l[3]=0,l[4]=u-x,l[5]=1-a-_,l[6]=v+S,l[7]=0,l[8]=m+A,l[9]=v-S,l[10]=1-a-h,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},91616:function(d){d.exports=function(l,n,c){var b,i,O,w=c[0],y=c[1],p=c[2],a=Math.sqrt(w*w+y*y+p*p);return Math.abs(a)<1e-6?null:(w*=a=1/a,y*=a,p*=a,b=Math.sin(n),O=1-(i=Math.cos(n)),l[0]=w*w*O+i,l[1]=y*w*O+p*b,l[2]=p*w*O-y*b,l[3]=0,l[4]=w*y*O-p*b,l[5]=y*y*O+i,l[6]=p*y*O+w*b,l[7]=0,l[8]=w*p*O+y*b,l[9]=y*p*O-w*b,l[10]=p*p*O+i,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l)}},51944:function(d){d.exports=function(l,n,c){var b=n[0],i=n[1],O=n[2],w=n[3],y=b+b,p=i+i,a=O+O,u=b*y,h=b*p,m=b*a,v=i*p,_=i*a,S=O*a,A=w*y,x=w*p,R=w*a;return l[0]=1-(v+S),l[1]=h+R,l[2]=m-x,l[3]=0,l[4]=h-R,l[5]=1-(u+S),l[6]=_+A,l[7]=0,l[8]=m+x,l[9]=_-A,l[10]=1-(u+v),l[11]=0,l[12]=c[0],l[13]=c[1],l[14]=c[2],l[15]=1,l}},69444:function(d){d.exports=function(l,n){return l[0]=n[0],l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=n[1],l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=n[2],l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},48268:function(d){d.exports=function(l,n){return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=n[0],l[13]=n[1],l[14]=n[2],l[15]=1,l}},21856:function(d){d.exports=function(l,n){var c=Math.sin(n),b=Math.cos(n);return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=b,l[6]=c,l[7]=0,l[8]=0,l[9]=-c,l[10]=b,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},79216:function(d){d.exports=function(l,n){var c=Math.sin(n),b=Math.cos(n);return l[0]=b,l[1]=0,l[2]=-c,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=c,l[9]=0,l[10]=b,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},57736:function(d){d.exports=function(l,n){var c=Math.sin(n),b=Math.cos(n);return l[0]=b,l[1]=c,l[2]=0,l[3]=0,l[4]=-c,l[5]=b,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},38848:function(d){d.exports=function(l,n,c,b,i,O,w){var y=1/(c-n),p=1/(i-b),a=1/(O-w);return l[0]=2*O*y,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=2*O*p,l[6]=0,l[7]=0,l[8]=(c+n)*y,l[9]=(i+b)*p,l[10]=(w+O)*a,l[11]=-1,l[12]=0,l[13]=0,l[14]=w*O*2*a,l[15]=0,l}},36635:function(d){d.exports=function(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}},36524:function(d,l,n){d.exports={create:n(54212),clone:n(76860),copy:n(64492),identity:n(36635),transpose:n(86520),invert:n(4308),adjoint:n(12408),determinant:n(70800),multiply:n(80944),translate:n(35176),scale:n(68152),rotate:n(30016),rotateX:n(15456),rotateY:n(64840),rotateZ:n(4192),fromRotation:n(91616),fromRotationTranslation:n(51944),fromScaling:n(69444),fromTranslation:n(48268),fromXRotation:n(21856),fromYRotation:n(79216),fromZRotation:n(57736),fromQuat:n(61784),frustum:n(38848),perspective:n(51296),perspectiveFromFieldOfView:n(63688),ortho:n(97688),lookAt:n(56508),str:n(89412)}},4308:function(d){d.exports=function(l,n){var c=n[0],b=n[1],i=n[2],O=n[3],w=n[4],y=n[5],p=n[6],a=n[7],u=n[8],h=n[9],m=n[10],v=n[11],_=n[12],S=n[13],A=n[14],x=n[15],R=c*y-b*w,M=c*p-i*w,T=c*a-O*w,E=b*p-i*y,C=b*a-O*y,L=i*a-O*p,D=u*S-h*_,k=u*A-m*_,I=u*x-v*_,z=h*A-m*S,$=h*x-v*S,Q=m*x-v*A,j=R*Q-M*$+T*z+E*I-C*k+L*D;return j?(j=1/j,l[0]=(y*Q-p*$+a*z)*j,l[1]=(i*$-b*Q-O*z)*j,l[2]=(S*L-A*C+x*E)*j,l[3]=(m*C-h*L-v*E)*j,l[4]=(p*I-w*Q-a*k)*j,l[5]=(c*Q-i*I+O*k)*j,l[6]=(A*T-_*L-x*M)*j,l[7]=(u*L-m*T+v*M)*j,l[8]=(w*$-y*I+a*D)*j,l[9]=(b*I-c*$-O*D)*j,l[10]=(_*C-S*T+x*R)*j,l[11]=(h*T-u*C-v*R)*j,l[12]=(y*k-w*z-p*D)*j,l[13]=(c*z-b*k+i*D)*j,l[14]=(S*M-_*E-A*R)*j,l[15]=(u*E-h*M+m*R)*j,l):null}},56508:function(d,l,n){var c=n(36635);d.exports=function(b,i,O,w){var y,p,a,u,h,m,v,_,S,A,x=i[0],R=i[1],M=i[2],T=w[0],E=w[1],C=w[2],L=O[0],D=O[1],k=O[2];return Math.abs(x-L)<1e-6&&Math.abs(R-D)<1e-6&&Math.abs(M-k)<1e-6?c(b):(v=x-L,_=R-D,S=M-k,y=E*(S*=A=1/Math.sqrt(v*v+_*_+S*S))-C*(_*=A),p=C*(v*=A)-T*S,a=T*_-E*v,(A=Math.sqrt(y*y+p*p+a*a))?(y*=A=1/A,p*=A,a*=A):(y=0,p=0,a=0),u=_*a-S*p,h=S*y-v*a,m=v*p-_*y,(A=Math.sqrt(u*u+h*h+m*m))?(u*=A=1/A,h*=A,m*=A):(u=0,h=0,m=0),b[0]=y,b[1]=u,b[2]=v,b[3]=0,b[4]=p,b[5]=h,b[6]=_,b[7]=0,b[8]=a,b[9]=m,b[10]=S,b[11]=0,b[12]=-(y*x+p*R+a*M),b[13]=-(u*x+h*R+m*M),b[14]=-(v*x+_*R+S*M),b[15]=1,b)}},80944:function(d){d.exports=function(l,n,c){var b=n[0],i=n[1],O=n[2],w=n[3],y=n[4],p=n[5],a=n[6],u=n[7],h=n[8],m=n[9],v=n[10],_=n[11],S=n[12],A=n[13],x=n[14],R=n[15],M=c[0],T=c[1],E=c[2],C=c[3];return l[0]=M*b+T*y+E*h+C*S,l[1]=M*i+T*p+E*m+C*A,l[2]=M*O+T*a+E*v+C*x,l[3]=M*w+T*u+E*_+C*R,M=c[4],T=c[5],E=c[6],C=c[7],l[4]=M*b+T*y+E*h+C*S,l[5]=M*i+T*p+E*m+C*A,l[6]=M*O+T*a+E*v+C*x,l[7]=M*w+T*u+E*_+C*R,M=c[8],T=c[9],E=c[10],C=c[11],l[8]=M*b+T*y+E*h+C*S,l[9]=M*i+T*p+E*m+C*A,l[10]=M*O+T*a+E*v+C*x,l[11]=M*w+T*u+E*_+C*R,M=c[12],T=c[13],E=c[14],C=c[15],l[12]=M*b+T*y+E*h+C*S,l[13]=M*i+T*p+E*m+C*A,l[14]=M*O+T*a+E*v+C*x,l[15]=M*w+T*u+E*_+C*R,l}},97688:function(d){d.exports=function(l,n,c,b,i,O,w){var y=1/(n-c),p=1/(b-i),a=1/(O-w);return l[0]=-2*y,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=-2*p,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=2*a,l[11]=0,l[12]=(n+c)*y,l[13]=(i+b)*p,l[14]=(w+O)*a,l[15]=1,l}},51296:function(d){d.exports=function(l,n,c,b,i){var O=1/Math.tan(n/2),w=1/(b-i);return l[0]=O/c,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=O,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=(i+b)*w,l[11]=-1,l[12]=0,l[13]=0,l[14]=2*i*b*w,l[15]=0,l}},63688:function(d){d.exports=function(l,n,c,b){var i=Math.tan(n.upDegrees*Math.PI/180),O=Math.tan(n.downDegrees*Math.PI/180),w=Math.tan(n.leftDegrees*Math.PI/180),y=Math.tan(n.rightDegrees*Math.PI/180),p=2/(w+y),a=2/(i+O);return l[0]=p,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=a,l[6]=0,l[7]=0,l[8]=-(w-y)*p*.5,l[9]=(i-O)*a*.5,l[10]=b/(c-b),l[11]=-1,l[12]=0,l[13]=0,l[14]=b*c/(c-b),l[15]=0,l}},30016:function(d){d.exports=function(l,n,c,b){var i,O,w,y,p,a,u,h,m,v,_,S,A,x,R,M,T,E,C,L,D,k,I,z,$=b[0],Q=b[1],j=b[2],U=Math.sqrt($*$+Q*Q+j*j);return Math.abs(U)<1e-6?null:($*=U=1/U,Q*=U,j*=U,i=Math.sin(c),w=1-(O=Math.cos(c)),y=n[0],p=n[1],a=n[2],u=n[3],h=n[4],m=n[5],v=n[6],_=n[7],S=n[8],A=n[9],x=n[10],R=n[11],M=$*$*w+O,T=Q*$*w+j*i,E=j*$*w-Q*i,C=$*Q*w-j*i,L=Q*Q*w+O,D=j*Q*w+$*i,k=$*j*w+Q*i,I=Q*j*w-$*i,z=j*j*w+O,l[0]=y*M+h*T+S*E,l[1]=p*M+m*T+A*E,l[2]=a*M+v*T+x*E,l[3]=u*M+_*T+R*E,l[4]=y*C+h*L+S*D,l[5]=p*C+m*L+A*D,l[6]=a*C+v*L+x*D,l[7]=u*C+_*L+R*D,l[8]=y*k+h*I+S*z,l[9]=p*k+m*I+A*z,l[10]=a*k+v*I+x*z,l[11]=u*k+_*I+R*z,n!==l&&(l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l)}},15456:function(d){d.exports=function(l,n,c){var b=Math.sin(c),i=Math.cos(c),O=n[4],w=n[5],y=n[6],p=n[7],a=n[8],u=n[9],h=n[10],m=n[11];return n!==l&&(l[0]=n[0],l[1]=n[1],l[2]=n[2],l[3]=n[3],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l[4]=O*i+a*b,l[5]=w*i+u*b,l[6]=y*i+h*b,l[7]=p*i+m*b,l[8]=a*i-O*b,l[9]=u*i-w*b,l[10]=h*i-y*b,l[11]=m*i-p*b,l}},64840:function(d){d.exports=function(l,n,c){var b=Math.sin(c),i=Math.cos(c),O=n[0],w=n[1],y=n[2],p=n[3],a=n[8],u=n[9],h=n[10],m=n[11];return n!==l&&(l[4]=n[4],l[5]=n[5],l[6]=n[6],l[7]=n[7],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l[0]=O*i-a*b,l[1]=w*i-u*b,l[2]=y*i-h*b,l[3]=p*i-m*b,l[8]=O*b+a*i,l[9]=w*b+u*i,l[10]=y*b+h*i,l[11]=p*b+m*i,l}},4192:function(d){d.exports=function(l,n,c){var b=Math.sin(c),i=Math.cos(c),O=n[0],w=n[1],y=n[2],p=n[3],a=n[4],u=n[5],h=n[6],m=n[7];return n!==l&&(l[8]=n[8],l[9]=n[9],l[10]=n[10],l[11]=n[11],l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15]),l[0]=O*i+a*b,l[1]=w*i+u*b,l[2]=y*i+h*b,l[3]=p*i+m*b,l[4]=a*i-O*b,l[5]=u*i-w*b,l[6]=h*i-y*b,l[7]=m*i-p*b,l}},68152:function(d){d.exports=function(l,n,c){var b=c[0],i=c[1],O=c[2];return l[0]=n[0]*b,l[1]=n[1]*b,l[2]=n[2]*b,l[3]=n[3]*b,l[4]=n[4]*i,l[5]=n[5]*i,l[6]=n[6]*i,l[7]=n[7]*i,l[8]=n[8]*O,l[9]=n[9]*O,l[10]=n[10]*O,l[11]=n[11]*O,l[12]=n[12],l[13]=n[13],l[14]=n[14],l[15]=n[15],l}},89412:function(d){d.exports=function(l){return"mat4("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+", "+l[4]+", "+l[5]+", "+l[6]+", "+l[7]+", "+l[8]+", "+l[9]+", "+l[10]+", "+l[11]+", "+l[12]+", "+l[13]+", "+l[14]+", "+l[15]+")"}},35176:function(d){d.exports=function(l,n,c){var b,i,O,w,y,p,a,u,h,m,v,_,S=c[0],A=c[1],x=c[2];return n===l?(l[12]=n[0]*S+n[4]*A+n[8]*x+n[12],l[13]=n[1]*S+n[5]*A+n[9]*x+n[13],l[14]=n[2]*S+n[6]*A+n[10]*x+n[14],l[15]=n[3]*S+n[7]*A+n[11]*x+n[15]):(b=n[0],i=n[1],O=n[2],w=n[3],y=n[4],p=n[5],a=n[6],u=n[7],h=n[8],m=n[9],v=n[10],_=n[11],l[0]=b,l[1]=i,l[2]=O,l[3]=w,l[4]=y,l[5]=p,l[6]=a,l[7]=u,l[8]=h,l[9]=m,l[10]=v,l[11]=_,l[12]=b*S+y*A+h*x+n[12],l[13]=i*S+p*A+m*x+n[13],l[14]=O*S+a*A+v*x+n[14],l[15]=w*S+u*A+_*x+n[15]),l}},86520:function(d){d.exports=function(l,n){if(l===n){var c=n[1],b=n[2],i=n[3],O=n[6],w=n[7],y=n[11];l[1]=n[4],l[2]=n[8],l[3]=n[12],l[4]=c,l[6]=n[9],l[7]=n[13],l[8]=b,l[9]=O,l[11]=n[14],l[12]=i,l[13]=w,l[14]=y}else l[0]=n[0],l[1]=n[4],l[2]=n[8],l[3]=n[12],l[4]=n[1],l[5]=n[5],l[6]=n[9],l[7]=n[13],l[8]=n[2],l[9]=n[6],l[10]=n[10],l[11]=n[14],l[12]=n[3],l[13]=n[7],l[14]=n[11],l[15]=n[15];return l}},23352:function(d,l,n){var c=n(42771),b=n(55616),i=n(28624),O=n(55212),w=n(60463),y=n(72160),p=n(33888),a=n(14144),u=n(51160),h=n(58908),m=n(65819),v=n(23464),_=n(63768),S=n(50896),A=n(71920),x=n(47520),R=n(308).nextPow2,M=new w,T=!1;if(document.body){var E=document.body.appendChild(document.createElement("div"));E.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(E).fontStretch&&(T=!0),document.body.removeChild(E)}var C=function(L){(function(D){return typeof D=="function"&&D._gl&&D.prop&&D.texture&&D.buffer})(L)?(L={regl:L},this.gl=L.regl._gl):this.gl=O(L),this.shader=M.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=L.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),M.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(L)?L:{})};C.prototype.createShader=function(){var L=this.regl,D=L({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:L.prop("count"),offset:L.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:L.this("sizeBuffer")},width:{offset:0,stride:8,buffer:L.this("sizeBuffer")},char:L.this("charBuffer"),position:L.this("position")},uniforms:{atlasSize:function(k,I){return[I.atlas.width,I.atlas.height]},atlasDim:function(k,I){return[I.atlas.cols,I.atlas.rows]},atlas:function(k,I){return I.atlas.texture},charStep:function(k,I){return I.atlas.step},em:function(k,I){return I.atlas.em},color:L.prop("color"),opacity:L.prop("opacity"),viewport:L.this("viewportArray"),scale:L.this("scale"),align:L.prop("align"),baseline:L.prop("baseline"),translate:L.this("translate"),positionOffset:L.prop("positionOffset")},primitive:"points",viewport:L.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -3565,10 +3565,10 @@ void main() { fragWidth = 1. / gl_PointSize; } `]),_&&($.frag=$.frag.replace("smoothstep","smoothStep"),z.frag=z.frag.replace("smoothstep","smoothStep")),this.drawCircle=T($)}R.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},R.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},R.prototype.draw=function(){for(var T=this,E=arguments.length,C=new Array(E),L=0;LHe)?ze.tree=p(Ie,{bounds:Le}):He&&He.length&&(ze.tree=He),ze.tree){var We={primitive:"points",usage:"static",data:ze.tree,type:"uint32"};ze.elements?ze.elements(We):ze.elements=I.elements(We)}var Ue=S.float32(Ie);return Ve({data:Ue,usage:"dynamic"}),$e({data:S.fract32(Ie,Ue),usage:"dynamic"}),Oe({data:new Uint8Array(ke),type:"uint8",usage:"stream"}),Ie}},{marker:function(Ie,ze,De){var He=ze.activation;if(He.forEach(function(Ue){return Ue&&Ue.destroy&&Ue.destroy()}),He.length=0,Ie&&typeof Ie[0]!="number"){for(var Ve=[],$e=0,Oe=Math.min(Ie.length,ze.count);$e=0)return k;if(T instanceof Uint8Array||T instanceof Uint8ClampedArray)E=T;else{E=new Uint8Array(T.length);for(var I=0,z=T.length;I4*L&&(this.tooManyColors=!0),this.updatePalette(C),D.length===1?D[0]:D},R.prototype.updatePalette=function(T){if(!this.tooManyColors){var E=this.maxColors,C=this.paletteTexture,L=Math.ceil(.25*T.length/E);if(L>1)for(var D=.25*(T=T.slice()).length%E;D2?(T[0],T[2],A=T[1],x=T[3]):T.length?(A=T[0],x=T[1]):(T.x,A=T.y,T.x,T.width,x=T.y+T.height),E.length>2?(R=E[0],M=E[2],E[1],E[3]):E.length?(R=E[0],M=E[1]):(R=E.x,E.y,M=E.x+E.width,E.y,E.height),[R,A,M,x]}function m(v){if(typeof v=="number")return[v,v,v,v];if(v.length===2)return[v[0],v[1],v[0],v[1]];var _=y(v);return[_.x,_.y,_.x+_.width,_.y+_.height]}d.exports=a,a.prototype.render=function(){for(var v,_=this,S=[],A=arguments.length;A--;)S[A]=arguments[A];return S.length&&(v=this).update.apply(v,S),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=O(function(){_.draw(),_.dirty=!0,_.planned=null})):(this.draw(),this.dirty=!0,O(function(){_.dirty=!1})),this)},a.prototype.update=function(){for(var v,_=[],S=arguments.length;S--;)_[S]=arguments[S];if(_.length){for(var A=0;A<_.length;A++)this.updateItem(A,_[A]);this.traces=this.traces.filter(Boolean);for(var x=[],R=0,M=0;Mj))&&(R.lower||!(Q"u"?1:window.devicePixelRatio,Xt=!1,Yt={},Qt=function(tn){},Pt=function(){};if(typeof at=="string"?yt=document.querySelector(at):typeof at=="object"&&(typeof at.nodeName=="string"&&typeof at.appendChild=="function"&&typeof at.getBoundingClientRect=="function"?yt=at:typeof at.drawArrays=="function"||typeof at.drawElements=="function"?Rt=(it=at).canvas:("gl"in at?it=at.gl:"canvas"in at?Rt=i(at.canvas):"container"in at&&(zt=i(at.container)),"attributes"in at&&(lt=at.attributes),"extensions"in at&&(Lt=b(at.extensions)),"optionalExtensions"in at&&(xt=b(at.optionalExtensions)),"onDone"in at&&(Qt=at.onDone),"profile"in at&&(Xt=!!at.profile),"pixelRatio"in at&&(Ht=+at.pixelRatio),"cachedCode"in at&&(Yt=at.cachedCode))),yt&&(yt.nodeName.toLowerCase()==="canvas"?Rt=yt:zt=yt),!it){if(!Rt){if(!(yt=function(tn,Kt,fn){function dn(){var er=window.innerWidth,En=window.innerHeight;tn!==document.body&&(er=(En=Nn.getBoundingClientRect()).right-En.left,En=En.bottom-En.top),Nn.width=fn*er,Nn.height=fn*En}var vn,Nn=document.createElement("canvas");return de(Nn.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),tn.appendChild(Nn),tn===document.body&&(Nn.style.position="absolute",de(tn.style,{margin:0,padding:0})),tn!==document.body&&typeof ResizeObserver=="function"?(vn=new ResizeObserver(function(){setTimeout(dn)})).observe(tn):window.addEventListener("resize",dn,!1),dn(),{canvas:Nn,onDestroy:function(){vn?vn.disconnect():window.removeEventListener("resize",dn),tn.removeChild(Nn)}}}(zt||document.body,0,Ht)))return null;Rt=yt.canvas,Pt=yt.onDestroy}lt.premultipliedAlpha===void 0&&(lt.premultipliedAlpha=!0),it=function(tn,Kt){function fn(dn){try{return tn.getContext(dn,Kt)}catch{return null}}return fn("webgl")||fn("experimental-webgl")||fn("webgl-experimental")}(Rt,lt)}return it?{gl:it,canvas:Rt,container:zt,extensions:Lt,optionalExtensions:xt,pixelRatio:Ht,profile:Xt,cachedCode:Yt,onDone:Qt,onDestroy:Pt}:(Pt(),Qt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function w(lt,yt){for(var zt=Array(lt),Rt=0;Rt>>=yt))<<3,(yt|=zt=(15<(lt>>>=zt))<<2)|(zt=(3<(lt>>>=zt))<<1)|lt>>>zt>>1}function p(){function lt(Rt){e:{for(var it=16;268435456>=it;it*=16)if(Rt<=it){Rt=it;break e}Rt=0}return 0<(it=zt[y(Rt)>>2]).length?it.pop():new ArrayBuffer(Rt)}function yt(Rt){zt[y(Rt.byteLength)>>2].push(Rt)}var zt=w(8,function(){return[]});return{alloc:lt,free:yt,allocType:function(Rt,it){var at=null;switch(Rt){case 5120:at=new Int8Array(lt(it),0,it);break;case 5121:at=new Uint8Array(lt(it),0,it);break;case 5122:at=new Int16Array(lt(2*it),0,it);break;case 5123:at=new Uint16Array(lt(2*it),0,it);break;case 5124:at=new Int32Array(lt(4*it),0,it);break;case 5125:at=new Uint32Array(lt(4*it),0,it);break;case 5126:at=new Float32Array(lt(4*it),0,it);break;default:return null}return at.length!==it?at.subarray(0,it):at},freeType:function(Rt){yt(Rt.buffer)}}}function a(lt){return!!lt&&typeof lt=="object"&&Array.isArray(lt.shape)&&Array.isArray(lt.stride)&&typeof lt.offset=="number"&<.shape.length===lt.stride.length&&(Array.isArray(lt.data)||Ie(lt.data))}function u(lt,yt,zt,Rt,it,at){for(var Lt=0;Lt(Pt=fn)&&(Pt=Qt.buffer.byteLength,Nn===5123?Pt>>=1:Nn===5125&&(Pt>>=2)),Qt.vertCount=Pt,Pt=Kt,0>Kt&&(Pt=4,(Kt=Qt.buffer.dimension)===1&&(Pt=0),Kt===2&&(Pt=1),Kt===3&&(Pt=4)),Qt.primType=Pt}function Lt(Qt){Rt.elementsCount--,delete xt[Qt.id],Qt.buffer.destroy(),Qt.buffer=null}var xt={},Ht=0,Xt={uint8:5121,uint16:5123};yt.oes_element_index_uint&&(Xt.uint32=5125),it.prototype.bind=function(){this.buffer.bind()};var Yt=[];return{create:function(Qt,Pt){function tn(dn){if(dn)if(typeof dn=="number")Kt(dn),fn.primType=4,fn.vertCount=0|dn,fn.type=5121;else{var vn=null,Nn=35044,er=-1,En=-1,In=0,Un=0;Array.isArray(dn)||Ie(dn)||a(dn)?vn=dn:("data"in dn&&(vn=dn.data),"usage"in dn&&(Nn=$e[dn.usage]),"primitive"in dn&&(er=We[dn.primitive]),"count"in dn&&(En=0|dn.count),"type"in dn&&(Un=Xt[dn.type]),"length"in dn?In=0|dn.length:(In=En,Un===5123||Un===5122?In*=2:Un!==5125&&Un!==5124||(In*=4))),at(fn,vn,Nn,er,En,In,Un)}else Kt(),fn.primType=4,fn.vertCount=0,fn.type=5121;return tn}var Kt=zt.create(null,34963,!0),fn=new it(Kt._buffer);return Rt.elementsCount++,tn(Qt),tn._reglType="elements",tn._elements=fn,tn.subdata=function(dn,vn){return Kt.subdata(dn,vn),tn},tn.destroy=function(){Lt(fn)},tn},createStream:function(Qt){var Pt=Yt.pop();return Pt||(Pt=new it(zt.create(null,34963,!0,!1)._buffer)),at(Pt,Qt,35040,-1,-1,0,0),Pt},destroyStream:function(Qt){Yt.push(Qt)},getElements:function(Qt){return typeof Qt=="function"&&Qt._elements instanceof it?Qt._elements:null},clear:function(){ze(xt).forEach(Lt)}}}function x(lt){for(var yt=Te.allocType(5123,lt.length),zt=0;zt>>31<<15,it=(at<<1>>>24)-127,at=at>>13&1023;yt[zt]=-24>it?Rt:-14>it?Rt+(at+1024>>-14-it):15>=Zn,hn.height>>=Zn,Pt(hn,zn[Zn]),Bn.mipmask|=1<hr;++hr)Bn.images[hr]=null;return Bn}function In(Bn){for(var hr=Bn.images,hn=0;hnBn){for(var hr=0;hr=--this.refCount&&Wn(this)}}),Lt.profile&&(at.getTotalTextureSize=function(){var Bn=0;return Object.keys(Qr).forEach(function(hr){Bn+=Qr[hr].stats.size}),Bn}),{create2D:function(Bn,hr){function hn(Zn,yr){var gr=zn.texInfo;Un.call(gr);var vr=En();return typeof Zn=="number"?vn(vr,0|Zn,typeof yr=="number"?0|yr:0|Zn):Zn?(xr(gr,Zn),Nn(vr,Zn)):vn(vr,1,1),gr.genMipmaps&&(vr.mipmask=(vr.width<<1)-1),zn.mipmask=vr.mipmask,Ht(zn,vr),zn.internalformat=vr.internalformat,hn.width=vr.width,hn.height=vr.height,Fn(zn),er(vr,3553),Sr(gr,3553),ir(),In(vr),Lt.profile&&(zn.stats.size=k(zn.internalformat,zn.type,vr.width,vr.height,gr.genMipmaps,!1)),hn.format=So[zn.internalformat],hn.type=go[zn.type],hn.mag=li[gr.magFilter],hn.min=Pn[gr.minFilter],hn.wrapS=Yn[gr.wrapS],hn.wrapT=Yn[gr.wrapT],hn}var zn=new ar(3553);return Qr[zn.id]=zn,at.textureCount++,hn(Bn,hr),hn.subimage=function(Zn,yr,gr,vr){yr|=0,gr|=0,vr|=0;var nr=Kt();return Ht(nr,zn),nr.width=0,nr.height=0,Pt(nr,Zn),nr.width=nr.width||(zn.width>>vr)-yr,nr.height=nr.height||(zn.height>>vr)-gr,Fn(zn),tn(nr,3553,yr,gr,vr),ir(),fn(nr),hn},hn.resize=function(Zn,yr){var gr=0|Zn,vr=0|yr||gr;if(gr===zn.width&&vr===zn.height)return hn;hn.width=zn.width=gr,hn.height=zn.height=vr,Fn(zn);for(var nr=0;zn.mipmask>>nr;++nr){var Qn=gr>>nr,Hn=vr>>nr;if(!Qn||!Hn)break;lt.texImage2D(3553,nr,zn.format,Qn,Hn,0,zn.format,zn.type,null)}return ir(),Lt.profile&&(zn.stats.size=k(zn.internalformat,zn.type,gr,vr,!1,!1)),hn},hn._reglType="texture2d",hn._texture=zn,Lt.profile&&(hn.stats=zn.stats),hn.destroy=function(){zn.decRef()},hn},createCube:function(Bn,hr,hn,zn,Zn,yr){function gr(Qn,Hn,tr,cr,Lr,Er){var Vr,to=vr.texInfo;for(Un.call(to),Vr=0;6>Vr;++Vr)nr[Vr]=En();if(typeof Qn!="number"&&Qn){if(typeof Qn=="object")if(Hn)Nn(nr[0],Qn),Nn(nr[1],Hn),Nn(nr[2],tr),Nn(nr[3],cr),Nn(nr[4],Lr),Nn(nr[5],Er);else if(xr(to,Qn),Xt(vr,Qn),"faces"in Qn)for(Qn=Qn.faces,Vr=0;6>Vr;++Vr)Ht(nr[Vr],vr),Nn(nr[Vr],Qn[Vr]);else for(Vr=0;6>Vr;++Vr)Nn(nr[Vr],Qn)}else for(Qn=0|Qn||1,Vr=0;6>Vr;++Vr)vn(nr[Vr],Qn,Qn);for(Ht(vr,nr[0]),vr.mipmask=to.genMipmaps?(nr[0].width<<1)-1:nr[0].mipmask,vr.internalformat=nr[0].internalformat,gr.width=nr[0].width,gr.height=nr[0].height,Fn(vr),Vr=0;6>Vr;++Vr)er(nr[Vr],34069+Vr);for(Sr(to,34067),ir(),Lt.profile&&(vr.stats.size=k(vr.internalformat,vr.type,gr.width,gr.height,to.genMipmaps,!0)),gr.format=So[vr.internalformat],gr.type=go[vr.type],gr.mag=li[to.magFilter],gr.min=Pn[to.minFilter],gr.wrapS=Yn[to.wrapS],gr.wrapT=Yn[to.wrapT],Vr=0;6>Vr;++Vr)In(nr[Vr]);return gr}var vr=new ar(34067);Qr[vr.id]=vr,at.cubeCount++;var nr=Array(6);return gr(Bn,hr,hn,zn,Zn,yr),gr.subimage=function(Qn,Hn,tr,cr,Lr){tr|=0,cr|=0,Lr|=0;var Er=Kt();return Ht(Er,vr),Er.width=0,Er.height=0,Pt(Er,Hn),Er.width=Er.width||(vr.width>>Lr)-tr,Er.height=Er.height||(vr.height>>Lr)-cr,Fn(vr),tn(Er,34069+Qn,tr,cr,Lr),ir(),fn(Er),gr},gr.resize=function(Qn){if((Qn|=0)!==vr.width){gr.width=vr.width=Qn,gr.height=vr.height=Qn,Fn(vr);for(var Hn=0;6>Hn;++Hn)for(var tr=0;vr.mipmask>>tr;++tr)lt.texImage2D(34069+Hn,tr,vr.format,Qn>>tr,Qn>>tr,0,vr.format,vr.type,null);return ir(),Lt.profile&&(vr.stats.size=k(vr.internalformat,vr.type,gr.width,gr.height,!1,!0)),gr}},gr._reglType="textureCube",gr._texture=vr,Lt.profile&&(gr.stats=vr.stats),gr.destroy=function(){vr.decRef()},gr},clear:function(){for(var Bn=0;Bnzn;++zn)if(hn.mipmask&1<>zn,hn.height>>zn,0,hn.internalformat,hn.type,null);else for(var Zn=0;6>Zn;++Zn)lt.texImage2D(34069+Zn,zn,hn.internalformat,hn.width>>zn,hn.height>>zn,0,hn.internalformat,hn.type,null);Sr(hn.texInfo,hn.target)})},refresh:function(){for(var Bn=0;BnKn;++Kn){for(Rr=0;RrWn;++Wn)ir[Wn].resize(Kn);return Fn.width=Fn.height=Kn,Fn},_reglType:"framebufferCube",destroy:function(){ir.forEach(function(Wn){Wn.destroy()})}})},clear:function(){ze(Sr).forEach(dn)},restore:function(){er.cur=null,er.next=null,er.dirty=!0,ze(Sr).forEach(function(ar){ar.framebuffer=lt.createFramebuffer(),vn(ar)})}})}function $(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function Q(lt,yt,zt,Rt,it,at,Lt){function xt(){this.id=++Yt,this.attributes=[],this.elements=null,this.ownsElements=!1,this.offset=this.count=0,this.instances=-1,this.primitive=4;var tn=yt.oes_vertex_array_object;this.vao=tn?tn.createVertexArrayOES():null,Qt[this.id]=this,this.buffers=[]}var Ht=zt.maxAttributes,Xt=Array(Ht);for(zt=0;zt=xr.byteLength?En.subdata(xr):(En.destroy(),fn.buffers[er]=null)),fn.buffers[er]||(En=fn.buffers[er]=it.create(In,34962,!1,!0)),Un.buffer=it.getBuffer(En),Un.size=0|Un.buffer.dimension,Un.normalized=!1,Un.type=Un.buffer.dtype,Un.offset=0,Un.stride=0,Un.divisor=0,Un.state=1,dn[er]=1):it.getBuffer(In)?(Un.buffer=it.getBuffer(In),Un.size=0|Un.buffer.dimension,Un.normalized=!1,Un.type=Un.buffer.dtype,Un.offset=0,Un.stride=0,Un.divisor=0,Un.state=1):it.getBuffer(In.buffer)?(Un.buffer=it.getBuffer(In.buffer),Un.size=0|(+In.size||Un.buffer.dimension),Un.normalized=!!In.normalized||!1,Un.type="type"in In?Ve[In.type]:Un.buffer.dtype,Un.offset=0|(In.offset||0),Un.stride=0|(In.stride||0),Un.divisor=0|(In.divisor||0),Un.state=1):"x"in In&&(Un.x=+In.x||0,Un.y=+In.y||0,Un.z=+In.z||0,Un.w=+In.w||0,Un.state=2)}for(En=0;EnKt&&(Kt=fn.stats.uniformsCount)}),Kt},zt.getMaxAttributesCount=function(){var Kt=0;return Pt.forEach(function(fn){fn.stats.attributesCount>Kt&&(Kt=fn.stats.attributesCount)}),Kt}),{clear:function(){var Kt=lt.deleteShader.bind(lt);ze(Xt).forEach(Kt),Xt={},ze(Yt).forEach(Kt),Yt={},Pt.forEach(function(fn){lt.deleteProgram(fn.program)}),Pt.length=0,Qt={},zt.shaderCount=0},program:function(Kt,fn,dn,vn){var Nn=Qt[fn];Nn||(Nn=Qt[fn]={});var er=Nn[Kt];if(er&&(er.refCount++,!vn))return er;var En=new xt(fn,Kt);return zt.shaderCount++,Ht(En,dn,vn),er||(Nn[Kt]=En),Pt.push(En),de(En,{destroy:function(){if(En.refCount--,0>=En.refCount){lt.deleteProgram(En.program);var In=Pt.indexOf(En);Pt.splice(In,1),zt.shaderCount--}0>=Nn[En.vertId].refCount&&(lt.deleteShader(Yt[En.vertId]),delete Yt[En.vertId],delete Qt[En.fragId][En.vertId]),Object.keys(Qt[En.fragId]).length||(lt.deleteShader(Xt[En.fragId]),delete Xt[En.fragId],delete Qt[En.fragId])}})},restore:function(){Xt={},Yt={};for(var Kt=0;Kt>>yt|lt<<32-yt}function te(lt,yt){var zt=(65535<)+(65535&yt);return(lt>>16)+(yt>>16)+(zt>>16)<<16|65535&zt}function W(lt){return Array.prototype.slice.call(lt)}function K(lt){return W(lt).join("")}function oe(lt){function yt(){var Yt=[],Qt=[];return de(function(){Yt.push.apply(Yt,W(arguments))},{def:function(){var Pt="v"+it++;return Qt.push(Pt),0He)?ze.tree=p(Ie,{bounds:Le}):He&&He.length&&(ze.tree=He),ze.tree){var We={primitive:"points",usage:"static",data:ze.tree,type:"uint32"};ze.elements?ze.elements(We):ze.elements=I.elements(We)}var Ue=S.float32(Ie);return Ve({data:Ue,usage:"dynamic"}),$e({data:S.fract32(Ie,Ue),usage:"dynamic"}),Oe({data:new Uint8Array(ke),type:"uint8",usage:"stream"}),Ie}},{marker:function(Ie,ze,De){var He=ze.activation;if(He.forEach(function(Ue){return Ue&&Ue.destroy&&Ue.destroy()}),He.length=0,Ie&&typeof Ie[0]!="number"){for(var Ve=[],$e=0,Oe=Math.min(Ie.length,ze.count);$e=0)return k;if(T instanceof Uint8Array||T instanceof Uint8ClampedArray)E=T;else{E=new Uint8Array(T.length);for(var I=0,z=T.length;I4*L&&(this.tooManyColors=!0),this.updatePalette(C),D.length===1?D[0]:D},R.prototype.updatePalette=function(T){if(!this.tooManyColors){var E=this.maxColors,C=this.paletteTexture,L=Math.ceil(.25*T.length/E);if(L>1)for(var D=.25*(T=T.slice()).length%E;D2?(T[0],T[2],A=T[1],x=T[3]):T.length?(A=T[0],x=T[1]):(T.x,A=T.y,T.x,T.width,x=T.y+T.height),E.length>2?(R=E[0],M=E[2],E[1],E[3]):E.length?(R=E[0],M=E[1]):(R=E.x,E.y,M=E.x+E.width,E.y,E.height),[R,A,M,x]}function m(v){if(typeof v=="number")return[v,v,v,v];if(v.length===2)return[v[0],v[1],v[0],v[1]];var _=y(v);return[_.x,_.y,_.x+_.width,_.y+_.height]}d.exports=a,a.prototype.render=function(){for(var v,_=this,S=[],A=arguments.length;A--;)S[A]=arguments[A];return S.length&&(v=this).update.apply(v,S),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=O(function(){_.draw(),_.dirty=!0,_.planned=null})):(this.draw(),this.dirty=!0,O(function(){_.dirty=!1})),this)},a.prototype.update=function(){for(var v,_=[],S=arguments.length;S--;)_[S]=arguments[S];if(_.length){for(var A=0;A<_.length;A++)this.updateItem(A,_[A]);this.traces=this.traces.filter(Boolean);for(var x=[],R=0,M=0;Mj))&&(R.lower||!(Q"u"?1:window.devicePixelRatio,Xt=!1,Yt={},Qt=function(tn){},Pt=function(){};if(typeof at=="string"?yt=document.querySelector(at):typeof at=="object"&&(typeof at.nodeName=="string"&&typeof at.appendChild=="function"&&typeof at.getBoundingClientRect=="function"?yt=at:typeof at.drawArrays=="function"||typeof at.drawElements=="function"?Rt=(it=at).canvas:("gl"in at?it=at.gl:"canvas"in at?Rt=i(at.canvas):"container"in at&&(zt=i(at.container)),"attributes"in at&&(lt=at.attributes),"extensions"in at&&(Lt=b(at.extensions)),"optionalExtensions"in at&&(xt=b(at.optionalExtensions)),"onDone"in at&&(Qt=at.onDone),"profile"in at&&(Xt=!!at.profile),"pixelRatio"in at&&(Zt=+at.pixelRatio),"cachedCode"in at&&(Yt=at.cachedCode))),yt&&(yt.nodeName.toLowerCase()==="canvas"?Rt=yt:zt=yt),!it){if(!Rt){if(!(yt=function(tn,Kt,fn){function dn(){var er=window.innerWidth,En=window.innerHeight;tn!==document.body&&(er=(En=Nn.getBoundingClientRect()).right-En.left,En=En.bottom-En.top),Nn.width=fn*er,Nn.height=fn*En}var vn,Nn=document.createElement("canvas");return de(Nn.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),tn.appendChild(Nn),tn===document.body&&(Nn.style.position="absolute",de(tn.style,{margin:0,padding:0})),tn!==document.body&&typeof ResizeObserver=="function"?(vn=new ResizeObserver(function(){setTimeout(dn)})).observe(tn):window.addEventListener("resize",dn,!1),dn(),{canvas:Nn,onDestroy:function(){vn?vn.disconnect():window.removeEventListener("resize",dn),tn.removeChild(Nn)}}}(zt||document.body,0,Zt)))return null;Rt=yt.canvas,Pt=yt.onDestroy}lt.premultipliedAlpha===void 0&&(lt.premultipliedAlpha=!0),it=function(tn,Kt){function fn(dn){try{return tn.getContext(dn,Kt)}catch{return null}}return fn("webgl")||fn("experimental-webgl")||fn("webgl-experimental")}(Rt,lt)}return it?{gl:it,canvas:Rt,container:zt,extensions:Lt,optionalExtensions:xt,pixelRatio:Zt,profile:Xt,cachedCode:Yt,onDone:Qt,onDestroy:Pt}:(Pt(),Qt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function w(lt,yt){for(var zt=Array(lt),Rt=0;Rt>>=yt))<<3,(yt|=zt=(15<(lt>>>=zt))<<2)|(zt=(3<(lt>>>=zt))<<1)|lt>>>zt>>1}function p(){function lt(Rt){e:{for(var it=16;268435456>=it;it*=16)if(Rt<=it){Rt=it;break e}Rt=0}return 0<(it=zt[y(Rt)>>2]).length?it.pop():new ArrayBuffer(Rt)}function yt(Rt){zt[y(Rt.byteLength)>>2].push(Rt)}var zt=w(8,function(){return[]});return{alloc:lt,free:yt,allocType:function(Rt,it){var at=null;switch(Rt){case 5120:at=new Int8Array(lt(it),0,it);break;case 5121:at=new Uint8Array(lt(it),0,it);break;case 5122:at=new Int16Array(lt(2*it),0,it);break;case 5123:at=new Uint16Array(lt(2*it),0,it);break;case 5124:at=new Int32Array(lt(4*it),0,it);break;case 5125:at=new Uint32Array(lt(4*it),0,it);break;case 5126:at=new Float32Array(lt(4*it),0,it);break;default:return null}return at.length!==it?at.subarray(0,it):at},freeType:function(Rt){yt(Rt.buffer)}}}function a(lt){return!!lt&&typeof lt=="object"&&Array.isArray(lt.shape)&&Array.isArray(lt.stride)&&typeof lt.offset=="number"&<.shape.length===lt.stride.length&&(Array.isArray(lt.data)||Ie(lt.data))}function u(lt,yt,zt,Rt,it,at){for(var Lt=0;Lt(Pt=fn)&&(Pt=Qt.buffer.byteLength,Nn===5123?Pt>>=1:Nn===5125&&(Pt>>=2)),Qt.vertCount=Pt,Pt=Kt,0>Kt&&(Pt=4,(Kt=Qt.buffer.dimension)===1&&(Pt=0),Kt===2&&(Pt=1),Kt===3&&(Pt=4)),Qt.primType=Pt}function Lt(Qt){Rt.elementsCount--,delete xt[Qt.id],Qt.buffer.destroy(),Qt.buffer=null}var xt={},Zt=0,Xt={uint8:5121,uint16:5123};yt.oes_element_index_uint&&(Xt.uint32=5125),it.prototype.bind=function(){this.buffer.bind()};var Yt=[];return{create:function(Qt,Pt){function tn(dn){if(dn)if(typeof dn=="number")Kt(dn),fn.primType=4,fn.vertCount=0|dn,fn.type=5121;else{var vn=null,Nn=35044,er=-1,En=-1,In=0,jn=0;Array.isArray(dn)||Ie(dn)||a(dn)?vn=dn:("data"in dn&&(vn=dn.data),"usage"in dn&&(Nn=$e[dn.usage]),"primitive"in dn&&(er=We[dn.primitive]),"count"in dn&&(En=0|dn.count),"type"in dn&&(jn=Xt[dn.type]),"length"in dn?In=0|dn.length:(In=En,jn===5123||jn===5122?In*=2:jn!==5125&&jn!==5124||(In*=4))),at(fn,vn,Nn,er,En,In,jn)}else Kt(),fn.primType=4,fn.vertCount=0,fn.type=5121;return tn}var Kt=zt.create(null,34963,!0),fn=new it(Kt._buffer);return Rt.elementsCount++,tn(Qt),tn._reglType="elements",tn._elements=fn,tn.subdata=function(dn,vn){return Kt.subdata(dn,vn),tn},tn.destroy=function(){Lt(fn)},tn},createStream:function(Qt){var Pt=Yt.pop();return Pt||(Pt=new it(zt.create(null,34963,!0,!1)._buffer)),at(Pt,Qt,35040,-1,-1,0,0),Pt},destroyStream:function(Qt){Yt.push(Qt)},getElements:function(Qt){return typeof Qt=="function"&&Qt._elements instanceof it?Qt._elements:null},clear:function(){ze(xt).forEach(Lt)}}}function x(lt){for(var yt=Te.allocType(5123,lt.length),zt=0;zt>>31<<15,it=(at<<1>>>24)-127,at=at>>13&1023;yt[zt]=-24>it?Rt:-14>it?Rt+(at+1024>>-14-it):15>=Zn,hn.height>>=Zn,Pt(hn,zn[Zn]),Bn.mipmask|=1<hr;++hr)Bn.images[hr]=null;return Bn}function In(Bn){for(var hr=Bn.images,hn=0;hnBn){for(var hr=0;hr=--this.refCount&&Wn(this)}}),Lt.profile&&(at.getTotalTextureSize=function(){var Bn=0;return Object.keys(Qr).forEach(function(hr){Bn+=Qr[hr].stats.size}),Bn}),{create2D:function(Bn,hr){function hn(Zn,yr){var gr=zn.texInfo;jn.call(gr);var vr=En();return typeof Zn=="number"?vn(vr,0|Zn,typeof yr=="number"?0|yr:0|Zn):Zn?(xr(gr,Zn),Nn(vr,Zn)):vn(vr,1,1),gr.genMipmaps&&(vr.mipmask=(vr.width<<1)-1),zn.mipmask=vr.mipmask,Zt(zn,vr),zn.internalformat=vr.internalformat,hn.width=vr.width,hn.height=vr.height,Fn(zn),er(vr,3553),Sr(gr,3553),ir(),In(vr),Lt.profile&&(zn.stats.size=k(zn.internalformat,zn.type,vr.width,vr.height,gr.genMipmaps,!1)),hn.format=So[zn.internalformat],hn.type=go[zn.type],hn.mag=li[gr.magFilter],hn.min=Pn[gr.minFilter],hn.wrapS=Yn[gr.wrapS],hn.wrapT=Yn[gr.wrapT],hn}var zn=new ar(3553);return Qr[zn.id]=zn,at.textureCount++,hn(Bn,hr),hn.subimage=function(Zn,yr,gr,vr){yr|=0,gr|=0,vr|=0;var nr=Kt();return Zt(nr,zn),nr.width=0,nr.height=0,Pt(nr,Zn),nr.width=nr.width||(zn.width>>vr)-yr,nr.height=nr.height||(zn.height>>vr)-gr,Fn(zn),tn(nr,3553,yr,gr,vr),ir(),fn(nr),hn},hn.resize=function(Zn,yr){var gr=0|Zn,vr=0|yr||gr;if(gr===zn.width&&vr===zn.height)return hn;hn.width=zn.width=gr,hn.height=zn.height=vr,Fn(zn);for(var nr=0;zn.mipmask>>nr;++nr){var Qn=gr>>nr,Hn=vr>>nr;if(!Qn||!Hn)break;lt.texImage2D(3553,nr,zn.format,Qn,Hn,0,zn.format,zn.type,null)}return ir(),Lt.profile&&(zn.stats.size=k(zn.internalformat,zn.type,gr,vr,!1,!1)),hn},hn._reglType="texture2d",hn._texture=zn,Lt.profile&&(hn.stats=zn.stats),hn.destroy=function(){zn.decRef()},hn},createCube:function(Bn,hr,hn,zn,Zn,yr){function gr(Qn,Hn,tr,cr,Lr,Er){var Vr,to=vr.texInfo;for(jn.call(to),Vr=0;6>Vr;++Vr)nr[Vr]=En();if(typeof Qn!="number"&&Qn){if(typeof Qn=="object")if(Hn)Nn(nr[0],Qn),Nn(nr[1],Hn),Nn(nr[2],tr),Nn(nr[3],cr),Nn(nr[4],Lr),Nn(nr[5],Er);else if(xr(to,Qn),Xt(vr,Qn),"faces"in Qn)for(Qn=Qn.faces,Vr=0;6>Vr;++Vr)Zt(nr[Vr],vr),Nn(nr[Vr],Qn[Vr]);else for(Vr=0;6>Vr;++Vr)Nn(nr[Vr],Qn)}else for(Qn=0|Qn||1,Vr=0;6>Vr;++Vr)vn(nr[Vr],Qn,Qn);for(Zt(vr,nr[0]),vr.mipmask=to.genMipmaps?(nr[0].width<<1)-1:nr[0].mipmask,vr.internalformat=nr[0].internalformat,gr.width=nr[0].width,gr.height=nr[0].height,Fn(vr),Vr=0;6>Vr;++Vr)er(nr[Vr],34069+Vr);for(Sr(to,34067),ir(),Lt.profile&&(vr.stats.size=k(vr.internalformat,vr.type,gr.width,gr.height,to.genMipmaps,!0)),gr.format=So[vr.internalformat],gr.type=go[vr.type],gr.mag=li[to.magFilter],gr.min=Pn[to.minFilter],gr.wrapS=Yn[to.wrapS],gr.wrapT=Yn[to.wrapT],Vr=0;6>Vr;++Vr)In(nr[Vr]);return gr}var vr=new ar(34067);Qr[vr.id]=vr,at.cubeCount++;var nr=Array(6);return gr(Bn,hr,hn,zn,Zn,yr),gr.subimage=function(Qn,Hn,tr,cr,Lr){tr|=0,cr|=0,Lr|=0;var Er=Kt();return Zt(Er,vr),Er.width=0,Er.height=0,Pt(Er,Hn),Er.width=Er.width||(vr.width>>Lr)-tr,Er.height=Er.height||(vr.height>>Lr)-cr,Fn(vr),tn(Er,34069+Qn,tr,cr,Lr),ir(),fn(Er),gr},gr.resize=function(Qn){if((Qn|=0)!==vr.width){gr.width=vr.width=Qn,gr.height=vr.height=Qn,Fn(vr);for(var Hn=0;6>Hn;++Hn)for(var tr=0;vr.mipmask>>tr;++tr)lt.texImage2D(34069+Hn,tr,vr.format,Qn>>tr,Qn>>tr,0,vr.format,vr.type,null);return ir(),Lt.profile&&(vr.stats.size=k(vr.internalformat,vr.type,gr.width,gr.height,!1,!0)),gr}},gr._reglType="textureCube",gr._texture=vr,Lt.profile&&(gr.stats=vr.stats),gr.destroy=function(){vr.decRef()},gr},clear:function(){for(var Bn=0;Bnzn;++zn)if(hn.mipmask&1<>zn,hn.height>>zn,0,hn.internalformat,hn.type,null);else for(var Zn=0;6>Zn;++Zn)lt.texImage2D(34069+Zn,zn,hn.internalformat,hn.width>>zn,hn.height>>zn,0,hn.internalformat,hn.type,null);Sr(hn.texInfo,hn.target)})},refresh:function(){for(var Bn=0;BnKn;++Kn){for(Rr=0;RrWn;++Wn)ir[Wn].resize(Kn);return Fn.width=Fn.height=Kn,Fn},_reglType:"framebufferCube",destroy:function(){ir.forEach(function(Wn){Wn.destroy()})}})},clear:function(){ze(Sr).forEach(dn)},restore:function(){er.cur=null,er.next=null,er.dirty=!0,ze(Sr).forEach(function(ar){ar.framebuffer=lt.createFramebuffer(),vn(ar)})}})}function $(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function Q(lt,yt,zt,Rt,it,at,Lt){function xt(){this.id=++Yt,this.attributes=[],this.elements=null,this.ownsElements=!1,this.offset=this.count=0,this.instances=-1,this.primitive=4;var tn=yt.oes_vertex_array_object;this.vao=tn?tn.createVertexArrayOES():null,Qt[this.id]=this,this.buffers=[]}var Zt=zt.maxAttributes,Xt=Array(Zt);for(zt=0;zt=xr.byteLength?En.subdata(xr):(En.destroy(),fn.buffers[er]=null)),fn.buffers[er]||(En=fn.buffers[er]=it.create(In,34962,!1,!0)),jn.buffer=it.getBuffer(En),jn.size=0|jn.buffer.dimension,jn.normalized=!1,jn.type=jn.buffer.dtype,jn.offset=0,jn.stride=0,jn.divisor=0,jn.state=1,dn[er]=1):it.getBuffer(In)?(jn.buffer=it.getBuffer(In),jn.size=0|jn.buffer.dimension,jn.normalized=!1,jn.type=jn.buffer.dtype,jn.offset=0,jn.stride=0,jn.divisor=0,jn.state=1):it.getBuffer(In.buffer)?(jn.buffer=it.getBuffer(In.buffer),jn.size=0|(+In.size||jn.buffer.dimension),jn.normalized=!!In.normalized||!1,jn.type="type"in In?Ve[In.type]:jn.buffer.dtype,jn.offset=0|(In.offset||0),jn.stride=0|(In.stride||0),jn.divisor=0|(In.divisor||0),jn.state=1):"x"in In&&(jn.x=+In.x||0,jn.y=+In.y||0,jn.z=+In.z||0,jn.w=+In.w||0,jn.state=2)}for(En=0;EnKt&&(Kt=fn.stats.uniformsCount)}),Kt},zt.getMaxAttributesCount=function(){var Kt=0;return Pt.forEach(function(fn){fn.stats.attributesCount>Kt&&(Kt=fn.stats.attributesCount)}),Kt}),{clear:function(){var Kt=lt.deleteShader.bind(lt);ze(Xt).forEach(Kt),Xt={},ze(Yt).forEach(Kt),Yt={},Pt.forEach(function(fn){lt.deleteProgram(fn.program)}),Pt.length=0,Qt={},zt.shaderCount=0},program:function(Kt,fn,dn,vn){var Nn=Qt[fn];Nn||(Nn=Qt[fn]={});var er=Nn[Kt];if(er&&(er.refCount++,!vn))return er;var En=new xt(fn,Kt);return zt.shaderCount++,Zt(En,dn,vn),er||(Nn[Kt]=En),Pt.push(En),de(En,{destroy:function(){if(En.refCount--,0>=En.refCount){lt.deleteProgram(En.program);var In=Pt.indexOf(En);Pt.splice(In,1),zt.shaderCount--}0>=Nn[En.vertId].refCount&&(lt.deleteShader(Yt[En.vertId]),delete Yt[En.vertId],delete Qt[En.fragId][En.vertId]),Object.keys(Qt[En.fragId]).length||(lt.deleteShader(Xt[En.fragId]),delete Xt[En.fragId],delete Qt[En.fragId])}})},restore:function(){Xt={},Yt={};for(var Kt=0;Kt>>yt|lt<<32-yt}function te(lt,yt){var zt=(65535<)+(65535&yt);return(lt>>16)+(yt>>16)+(zt>>16)<<16|65535&zt}function W(lt){return Array.prototype.slice.call(lt)}function K(lt){return W(lt).join("")}function oe(lt){function yt(){var Yt=[],Qt=[];return de(function(){Yt.push.apply(Yt,W(arguments))},{def:function(){var Pt="v"+it++;return Qt.push(Pt),0>>4&15)+"0123456789abcdef".charAt(15&Kt);return fn}(function(tn){for(var Kt=Array(tn.length>>2),fn=0;fn>5]|=(255&tn.charCodeAt(fn/8))<<24-fn%32;var dn,vn,Nn,er,En,In,Un,xr,Sr,ar,Fn,ir=8*tn.length;for(tn=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],fn=Array(64),Kt[ir>>5]|=128<<24-ir%32,Kt[15+(ir+64>>9<<4)]=ir,xr=0;xrSr;Sr++){var Wn;16>Sr?fn[Sr]=Kt[Sr+xr]:(ar=Sr,Fn=te(Fn=X(Fn=fn[Sr-2],17)^X(Fn,19)^Fn>>>10,fn[Sr-7]),Wn=X(Wn=fn[Sr-15],7)^X(Wn,18)^Wn>>>3,fn[ar]=te(te(Fn,Wn),fn[Sr-16])),ar=te(te(te(te(Un,ar=X(ar=er,6)^X(ar,11)^X(ar,25)),er&En^~er&In),Ct[Sr]),fn[Sr]),Fn=te(Un=X(Un=ir,2)^X(Un,13)^X(Un,22),ir&dn^ir&vn^dn&vn),Un=In,In=En,En=er,er=te(Nn,ar),Nn=vn,vn=dn,dn=ir,ir=te(ar,Fn)}tn[0]=te(ir,tn[0]),tn[1]=te(dn,tn[1]),tn[2]=te(vn,tn[2]),tn[3]=te(Nn,tn[3]),tn[4]=te(er,tn[4]),tn[5]=te(En,tn[5]),tn[6]=te(In,tn[6]),tn[7]=te(Un,tn[7])}for(Kt="",fn=0;fn<32*tn.length;fn+=8)Kt+=String.fromCharCode(tn[fn>>5]>>>24-fn%32&255);return Kt}(function(tn){for(var Kt,fn,dn="",vn=-1;++vn=Kt&&56320<=fn&&57343>=fn&&(Kt=65536+((1023&Kt)<<10)+(1023&fn),vn++),127>=Kt?dn+=String.fromCharCode(Kt):2047>=Kt?dn+=String.fromCharCode(192|Kt>>>6&31,128|63&Kt):65535>=Kt?dn+=String.fromCharCode(224|Kt>>>12&15,128|Kt>>>6&63,128|63&Kt):2097151>=Kt&&(dn+=String.fromCharCode(240|Kt>>>18&7,128|Kt>>>12&63,128|Kt>>>6&63,128|63&Kt));return dn}(Pt))),Rt[Qt])?Rt[Qt].apply(null,Lt):(Pt=Function.apply(null,at.concat(Pt)),Rt&&(Rt[Qt]=Pt),Pt.apply(null,Lt))}}}function q(lt){return Array.isArray(lt)||Ie(lt)||a(lt)}function Y(lt){return lt.sort(function(yt,zt){return yt==="viewport"?-1:zt==="viewport"?1:yt"+co+"?"+cr+".constant["+co+"]:0;"}).join(""),"}}else{","if(",Vr,"(",cr,".buffer)){",fr,"=",Lr,".createStream(",34962,",",cr,".buffer);","}else{",fr,"=",Lr,".getBuffer(",cr,".buffer);","}",Eo,'="type" in ',cr,"?",Er.glTypes,"[",cr,".type]:",fr,".dtype;",to.normalized,"=!!",cr,".normalized;"),tr("size"),tr("offset"),tr("stride"),tr("divisor"),Hn("}}"),Hn.exit("if(",to.isStream,"){",Lr,".destroyStream(",fr,");","}"),to})}),gr}function Sr(hn,zn,Zn,yr,gr){function vr(_o){var fr=Qn[_o];fr&&(tr[_o]=fr)}var nr=function(_o,fr){if(typeof(Eo=_o.static).frag=="string"&&typeof Eo.vert=="string"){if(0"u"?"Date.now()":"performance.now()"}function nr(_o){_o(tr=zn.def(),"=",vr(),";"),typeof gr=="string"?_o(Er,".count+=",gr,";"):_o(Er,".count++;"),tn&&(yr?_o(cr=zn.def(),"=",to,".getNumPendingQueries();"):_o(to,".beginQuery(",Er,");"))}function Qn(_o){_o(Er,".cpuTime+=",vr(),"-",tr,";"),tn&&(yr?_o(to,".pushScopeStats(",cr,",",to,".getNumPendingQueries(),",Er,");"):_o(to,".endQuery();"))}function Hn(_o){var fr=zn.def(Vr,".profile");zn(Vr,".profile=",_o,";"),zn.exit(Vr,".profile=",fr,";")}var tr,cr,Lr=hn.shared,Er=hn.stats,Vr=Lr.current,to=Lr.timer;if(Zn=Zn.profile){if(me(Zn))return void(Zn.enable?(nr(zn),Qn(zn.exit),Hn("true")):Hn("false"));Hn(Zn=Zn.append(hn,zn))}else Zn=zn.def(Vr,".profile");nr(Lr=hn.block()),zn("if(",Zn,"){",Lr,"}"),Qn(hn=hn.block()),zn.exit("if(",Zn,"){",hn,"}")}function Ir(hn,zn,Zn,yr,gr){function vr(Qn,Hn,tr){function cr(){zn("if(!",to,".buffer){",Er,".enableVertexAttribArray(",Vr,");}");var ao,co=tr.type;ao=tr.size?zn.def(tr.size,"||",Hn):Hn,zn("if(",to,".type!==",co,"||",to,".size!==",ao,"||",Eo.map(function(Go){return to+"."+Go+"!=="+tr[Go]}).join("||"),"){",Er,".bindBuffer(",34962,",",_o,".buffer);",Er,".vertexAttribPointer(",[Vr,ao,co,tr.normalized,tr.stride,tr.offset],");",to,".type=",co,";",to,".size=",ao,";",Eo.map(function(Go){return to+"."+Go+"="+tr[Go]+";"}).join(""),"}"),Pn&&(co=tr.divisor,zn("if(",to,".divisor!==",co,"){",hn.instancing,".vertexAttribDivisorANGLE(",[Vr,co],");",to,".divisor=",co,";}"))}function Lr(){zn("if(",to,".buffer){",Er,".disableVertexAttribArray(",Vr,");",to,".buffer=null;","}if(",_t.map(function(ao,co){return to+"."+ao+"!=="+fr[co]}).join("||"),"){",Er,".vertexAttrib4f(",Vr,",",fr,");",_t.map(function(ao,co){return to+"."+ao+"="+fr[co]+";"}).join(""),"}")}var Er=nr.gl,Vr=zn.def(Qn,".location"),to=zn.def(nr.attributes,"[",Vr,"]");Qn=tr.state;var _o=tr.buffer,fr=[tr.x,tr.y,tr.z,tr.w],Eo=["buffer","normalized","offset","stride"];Qn===1?cr():Qn===2?Lr():(zn("if(",Qn,"===",1,"){"),cr(),zn("}else{"),Lr(),zn("}"))}var nr=hn.shared;yr.forEach(function(Qn){var Hn,tr=Qn.name,cr=Zn.attributes[tr];if(cr){if(!gr(cr))return;Hn=cr.append(hn,zn)}else{if(!gr(bt))return;var Lr=hn.scopeAttrib(tr);Hn={},Object.keys(new go).forEach(function(Er){Hn[Er]=zn.def(Lr,".",Er)})}vr(hn.link(Qn),function(Er){switch(Er){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(Qn.info.type),Hn)})}function zr(hn,zn,Zn,yr,gr,vr){for(var nr,Qn=hn.shared,Hn=Qn.gl,tr=0;tr>1)",Qn],");")}function Go(){Zn(Hn,".drawArraysInstancedANGLE(",[to,_o,fr,Qn],");")}Vr&&Vr!=="null"?ao?co():(Zn("if(",Vr,"){"),co(),Zn("}else{"),Go(),Zn("}")):Go()}function nr(){function co(){Zn(cr+".drawElements("+[to,fr,Eo,_o+"<<(("+Eo+"-5121)>>1)"]+");")}function Go(){Zn(cr+".drawArrays("+[to,_o,fr]+");")}Vr&&Vr!=="null"?ao?co():(Zn("if(",Vr,"){"),co(),Zn("}else{"),Go(),Zn("}")):Go()}var Qn,Hn,tr=hn.shared,cr=tr.gl,Lr=tr.draw,Er=yr.draw,Vr=function(){var co=Er.elements,Go=zn;return co?((co.contextDep&&yr.contextDynamic||co.propDep)&&(Go=Zn),co=co.append(hn,Go),Er.elementsActive&&Go("if("+co+")"+cr+".bindBuffer(34963,"+co+".buffer.buffer);")):(co=Go.def(),Go(co,"=",Lr,".","elements",";","if(",co,"){",cr,".bindBuffer(",34963,",",co,".buffer.buffer);}","else if(",tr.vao,".currentVAO){",co,"=",hn.shared.elements+".getElements("+tr.vao,".currentVAO.elements);",br?"":"if("+co+")"+cr+".bindBuffer(34963,"+co+".buffer.buffer);","}")),co}(),to=gr("primitive"),_o=gr("offset"),fr=function(){var co=Er.count,Go=zn;return co?((co.contextDep&&yr.contextDynamic||co.propDep)&&(Go=Zn),co=co.append(hn,Go)):co=Go.def(Lr,".","count"),co}();if(typeof fr=="number"){if(fr===0)return}else Zn("if(",fr,"){"),Zn.exit("}");Pn&&(Qn=gr("instances"),Hn=hn.instancing);var Eo=Vr+".type",ao=Er.elements&&me(Er.elements)&&!Er.vaoActive;Pn&&(typeof Qn!="number"||0<=Qn)?typeof Qn=="string"?(Zn("if(",Qn,">0){"),vr(),Zn("}else if(",Qn,"<0){"),nr(),Zn("}")):vr():nr()}function Rr(hn,zn,Zn,yr,gr){return gr=(zn=er()).proc("body",gr),Pn&&(zn.instancing=gr.def(zn.shared.extensions,".angle_instanced_arrays")),hn(zn,gr,Zn,yr),zn.compile().body}function $r(hn,zn,Zn,yr){Kn(hn,zn),Zn.useVAO?Zn.drawVAO?zn(hn.shared.vao,".setVAO(",Zn.drawVAO.append(hn,zn),");"):zn(hn.shared.vao,".setVAO(",hn.shared.vao,".targetVAO);"):(zn(hn.shared.vao,".setVAO(null);"),Ir(hn,zn,Zn,yr.attributes,function(){return!0})),zr(hn,zn,Zn,yr.uniforms,function(){return!0},!1),Fr(hn,zn,zn,Zn)}function Kr(hn,zn,Zn,yr){function gr(){return!0}hn.batchId="a1",Kn(hn,zn),Ir(hn,zn,Zn,yr.attributes,gr),zr(hn,zn,Zn,yr.uniforms,gr,!1),Fr(hn,zn,zn,Zn)}function Co(hn,zn,Zn,yr){function gr(Lr){return Lr.contextDep&&nr||Lr.propDep}function vr(Lr){return!gr(Lr)}Kn(hn,zn);var nr=Zn.contextDep,Qn=zn.def(),Hn=zn.def();hn.shared.props=Hn,hn.batchId=Qn;var tr=hn.scope(),cr=hn.scope();zn(tr.entry,"for(",Qn,"=0;",Qn,"<","a1",";++",Qn,"){",Hn,"=","a0","[",Qn,"];",cr,"}",tr.exit),Zn.needsContext&&ar(hn,cr,Zn.context),Zn.needsFramebuffer&&Fn(hn,cr,Zn.framebuffer),Wn(hn,cr,Zn.state,gr),Zn.profile&&gr(Zn.profile)&&_r(hn,cr,Zn,!1,!0),yr?(Zn.useVAO?Zn.drawVAO?gr(Zn.drawVAO)?cr(hn.shared.vao,".setVAO(",Zn.drawVAO.append(hn,cr),");"):tr(hn.shared.vao,".setVAO(",Zn.drawVAO.append(hn,tr),");"):tr(hn.shared.vao,".setVAO(",hn.shared.vao,".targetVAO);"):(tr(hn.shared.vao,".setVAO(null);"),Ir(hn,tr,Zn,yr.attributes,vr),Ir(hn,cr,Zn,yr.attributes,gr)),zr(hn,tr,Zn,yr.uniforms,vr,!1),zr(hn,cr,Zn,yr.uniforms,gr,!0),Fr(hn,tr,cr,Zn)):(zn=hn.global.def("{}"),yr=Zn.shader.progVar.append(hn,cr),Hn=cr.def(yr,".id"),tr=cr.def(zn,"[",Hn,"]"),cr(hn.shared.gl,".useProgram(",yr,".program);","if(!",tr,"){",tr,"=",zn,"[",Hn,"]=",hn.link(function(Lr){return Rr(Kr,hn,Zn,Lr,2)}),"(",yr,");}",tr,".call(this,a0[",Qn,"],",Qn,");"))}function so(hn,zn){function Zn(Qn){var Hn=zn.shader[Qn];Hn&&(Hn=Hn.append(hn,yr),isNaN(Hn)?yr.set(gr.shader,"."+Qn,Hn):yr.set(gr.shader,"."+Qn,hn.link(Hn,{stable:!0})))}var yr=hn.proc("scope",3);hn.batchId="a2";var gr=hn.shared,vr=gr.current;if(ar(hn,yr,zn.context),zn.framebuffer&&zn.framebuffer.append(hn,yr),Y(Object.keys(zn.state)).forEach(function(Qn){var Hn=zn.state[Qn],tr=Hn.append(hn,yr);R(tr)?tr.forEach(function(cr,Lr){isNaN(cr)?yr.set(hn.next[Qn],"["+Lr+"]",cr):yr.set(hn.next[Qn],"["+Lr+"]",hn.link(cr,{stable:!0}))}):me(Hn)?yr.set(gr.next,"."+Qn,hn.link(tr,{stable:!0})):yr.set(gr.next,"."+Qn,tr)}),_r(hn,yr,zn,!0,!0),["elements","offset","count","instances","primitive"].forEach(function(Qn){var Hn=zn.draw[Qn];Hn&&(Hn=Hn.append(hn,yr),isNaN(Hn)?yr.set(gr.draw,"."+Qn,Hn):yr.set(gr.draw,"."+Qn,hn.link(Hn),{stable:!0}))}),Object.keys(zn.uniforms).forEach(function(Qn){var Hn=zn.uniforms[Qn].append(hn,yr);Array.isArray(Hn)&&(Hn="["+Hn.map(function(tr){return isNaN(tr)?tr:hn.link(tr,{stable:!0})})+"]"),yr.set(gr.uniforms,"["+hn.link(yt.id(Qn),{stable:!0})+"]",Hn)}),Object.keys(zn.attributes).forEach(function(Qn){var Hn=zn.attributes[Qn].append(hn,yr),tr=hn.scopeAttrib(Qn);Object.keys(new go).forEach(function(cr){yr.set(tr,"."+cr,Hn[cr])})}),zn.scopeVAO){var nr=zn.scopeVAO.append(hn,yr);isNaN(nr)?yr.set(gr.vao,".targetVAO",nr):yr.set(gr.vao,".targetVAO",hn.link(nr,{stable:!0}))}Zn("vert"),Zn("frag"),0=--this.refCount&&Lt(this)},it.profile&&(Rt.getTotalRenderbufferSize=function(){var Qt=0;return Object.keys(Yt).forEach(function(Pt){Qt+=Yt[Pt].stats.size}),Qt}),{create:function(Qt,Pt){function tn(fn,dn){var vn=0,Nn=0,er=32854;if(typeof fn=="object"&&fn?("shape"in fn?(vn=0|(Nn=fn.shape)[0],Nn=0|Nn[1]):("radius"in fn&&(vn=Nn=0|fn.radius),"width"in fn&&(vn=0|fn.width),"height"in fn&&(Nn=0|fn.height)),"format"in fn&&(er=xt[fn.format])):typeof fn=="number"?(vn=0|fn,Nn=typeof dn=="number"?0|dn:vn):fn||(vn=Nn=1),vn!==Kt.width||Nn!==Kt.height||er!==Kt.format)return tn.width=Kt.width=vn,tn.height=Kt.height=Nn,Kt.format=er,lt.bindRenderbuffer(36161,Kt.renderbuffer),lt.renderbufferStorage(36161,er,vn,Nn),it.profile&&(Kt.stats.size=It[Kt.format]*Kt.width*Kt.height),tn.format=Ht[Kt.format],tn}var Kt=new at(lt.createRenderbuffer());return Yt[Kt.id]=Kt,Rt.renderbufferCount++,tn(Qt,Pt),tn.resize=function(fn,dn){var vn=0|fn,Nn=0|dn||vn;return vn===Kt.width&&Nn===Kt.height||(tn.width=Kt.width=vn,tn.height=Kt.height=Nn,lt.bindRenderbuffer(36161,Kt.renderbuffer),lt.renderbufferStorage(36161,Kt.format,vn,Nn),it.profile&&(Kt.stats.size=It[Kt.format]*Kt.width*Kt.height)),tn},tn._reglType="renderbuffer",tn._renderbuffer=Kt,it.profile&&(tn.stats=Kt.stats),tn.destroy=function(){Kt.decRef()},tn},clear:function(){ze(Yt).forEach(Lt)},restore:function(){ze(Yt).forEach(function(Qt){Qt.renderbuffer=lt.createRenderbuffer(),lt.bindRenderbuffer(36161,Qt.renderbuffer),lt.renderbufferStorage(36161,Qt.format,Qt.width,Qt.height)}),lt.bindRenderbuffer(36161,null)}}},en=[];en[6408]=4,en[6407]=3;var Gt=[];Gt[5121]=1,Gt[5126]=4,Gt[36193]=2;var Ct=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],_t=["x","y","z","w"],nn="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),gn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},bn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},mn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},vt={cw:2304,ccw:2305},bt=new ee(!1,!1,!1,function(){});return function(lt){function yt(){if(Kr.length===0)En&&En.update(),go=null;else{go=_e.next(yt),Yt();for(var Pn=Kr.length-1;0<=Pn;--Pn){var Yn=Kr[Pn];Yn&&Yn(Sr,null,0)}tn.flush(),En&&En.update()}}function zt(){!go&&0=Kr.length&&Rt()}}}}function Xt(){var Pn=Rr.viewport,Yn=Rr.scissor_box;Pn[0]=Pn[1]=Yn[0]=Yn[1]=0,Sr.viewportWidth=Sr.framebufferWidth=Sr.drawingBufferWidth=Pn[2]=Yn[2]=tn.drawingBufferWidth,Sr.viewportHeight=Sr.framebufferHeight=Sr.drawingBufferHeight=Pn[3]=Yn[3]=tn.drawingBufferHeight}function Yt(){Sr.tick+=1,Sr.time=Pt(),Xt(),Fr.procs.poll()}function Qt(){_r.refresh(),Xt(),Fr.procs.refresh(),En&&En.update()}function Pt(){return(Se()-In)/1e3}if(!(lt=O(lt)))return null;var tn=lt.gl,Kt=tn.getContextAttributes();tn.isContextLost();var fn=function(Pn,Yn){function br(Qr){var Wr;Qr=Qr.toLowerCase();try{Wr=dr[Qr]=Pn.getExtension(Qr)}catch{}return!!Wr}for(var dr={},Cr=0;CrYn;++Yn)li(de({framebuffer:Pn.framebuffer.faces[Yn]},Pn),xt);else li(Pn,xt);else xt(0,Pn)},prop:ye.define.bind(null,1),context:ye.define.bind(null,2),this:ye.define.bind(null,3),draw:Lt({}),buffer:function(Pn){return Fn.create(Pn,34962,!1,!1)},elements:function(Pn){return ir.create(Pn,!1)},texture:_r.create2D,cube:_r.createCube,renderbuffer:Ir.create,framebuffer:zr.create,framebufferCube:zr.createCube,vao:Wn.createVAO,attributes:Kt,frame:Ht,on:function(Pn,Yn){var br;switch(Pn){case"frame":return Ht(Yn);case"lost":br=Co;break;case"restore":br=so;break;case"destroy":br=So}return br.push(Yn),{cancel:function(){for(var dr=0;dr4294967295||y(a)!==a)throw new w("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],h=!0,m=!0;if("length"in p&&O){var v=O(p,"length");v&&!v.configurable&&(h=!1),v&&!v.writable&&(m=!1)}return(h||m||!u)&&(i?b(p,"length",a,!0,!0):b(p,"length",a)),p}},29936:function(d,l,n){d.exports=b;var c=n(61252).EventEmitter;function b(){c.call(this)}n(6768)(b,c),b.Readable=n(12348),b.Writable=n(11288),b.Duplex=n(15316),b.Transform=n(22477),b.PassThrough=n(27136),b.finished=n(15932),b.pipeline=n(38180),b.Stream=b,b.prototype.pipe=function(i,O){var w=this;function y(_){i.writable&&i.write(_)===!1&&w.pause&&w.pause()}function p(){w.readable&&w.resume&&w.resume()}w.on("data",y),i.on("drain",p),i._isStdio||O&&O.end===!1||(w.on("end",u),w.on("close",h));var a=!1;function u(){a||(a=!0,i.end())}function h(){a||(a=!0,typeof i.destroy=="function"&&i.destroy())}function m(_){if(v(),c.listenerCount(this,"error")===0)throw _}function v(){w.removeListener("data",y),i.removeListener("drain",p),w.removeListener("end",u),w.removeListener("close",h),w.removeListener("error",m),i.removeListener("error",m),w.removeListener("end",v),w.removeListener("close",v),i.removeListener("close",v)}return w.on("error",m),i.on("error",m),w.on("end",v),w.on("close",v),i.on("close",v),i.emit("pipe",w),i}},92784:function(d){var l={};function n(b,i,O){O||(O=Error);var w=function(y){var p,a;function u(h,m,v){return y.call(this,function(_,S,A){return typeof i=="string"?i:i(_,S,A)}(h,m,v))||this}return a=y,(p=u).prototype=Object.create(a.prototype),p.prototype.constructor=p,p.__proto__=a,u}(O);w.prototype.name=O.name,w.prototype.code=b,l[b]=w}function c(b,i){if(Array.isArray(b)){var O=b.length;return b=b.map(function(w){return String(w)}),O>2?"one of ".concat(i," ").concat(b.slice(0,O-1).join(", "),", or ")+b[O-1]:O===2?"one of ".concat(i," ").concat(b[0]," or ").concat(b[1]):"of ".concat(i," ").concat(b[0])}return"of ".concat(i," ").concat(String(b))}n("ERR_INVALID_OPT_VALUE",function(b,i){return'The value "'+i+'" is invalid for option "'+b+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(b,i,O){var w,y,p,a,u;if(typeof i=="string"&&(y="not ",i.substr(0,4)===y)?(w="must not be",i=i.replace(/^not /,"")):w="must be",function(m,v,_){return(_===void 0||_>m.length)&&(_=m.length),m.substring(_-9,_)===v}(b," argument"))p="The ".concat(b," ").concat(w," ").concat(c(i,"type"));else{var h=(typeof u!="number"&&(u=0),u+1>(a=b).length||a.indexOf(".",u)===-1?"argument":"property");p='The "'.concat(b,'" ').concat(h," ").concat(w," ").concat(c(i,"type"))}return p+". Received type ".concat(typeof O)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),d.exports.i=l},15316:function(d,l,n){var c=n(4168),b=Object.keys||function(m){var v=[];for(var _ in m)v.push(_);return v};d.exports=a;var i=n(12348),O=n(11288);n(6768)(a,i);for(var w=b(O.prototype),y=0;y0)if(typeof se=="string"||ye.objectMode||Object.getPrototypeOf(se)===y.prototype||(se=function(_e){return y.from(_e)}(se)),ce)ye.endEmitted?E(he,new T):I(he,ye,se,!0);else if(ye.ended)E(he,new R);else{if(ye.destroyed)return!1;ye.reading=!1,ye.decoder&&!ae?(se=ye.decoder.write(se),ye.objectMode||se.length!==0?I(he,ye,se,!1):U(he,ye)):I(he,ye,se,!1)}else ce||(ye.reading=!1,U(he,ye));return!ye.ended&&(ye.lengthse.highWaterMark&&(se.highWaterMark=function(ae){return ae>=z?ae=z:(ae--,ae|=ae>>>1,ae|=ae>>>2,ae|=ae>>>4,ae|=ae>>>8,ae|=ae>>>16,ae++),ae}(he)),he<=se.length?he:se.ended?se.length:(se.needReadable=!0,0))}function Q(he){var se=he._readableState;i("emitReadable",se.needReadable,se.emittedReadable),se.needReadable=!1,se.emittedReadable||(i("emitReadable",se.flowing),se.emittedReadable=!0,b.nextTick(j,he))}function j(he){var se=he._readableState;i("emitReadable_",se.destroyed,se.length,se.ended),se.destroyed||!se.length&&!se.ended||(he.emit("readable"),se.emittedReadable=!1),se.needReadable=!se.flowing&&!se.ended&&se.length<=se.highWaterMark,oe(he)}function U(he,se){se.readingMore||(se.readingMore=!0,b.nextTick(X,he,se))}function X(he,se){for(;!se.reading&&!se.ended&&(se.length0,se.resumeScheduled&&!se.paused?se.flowing=!0:he.listenerCount("data")>0&&he.resume()}function W(he){i("readable nexttick read 0"),he.read(0)}function K(he,se){i("resume",se.reading),se.reading||he.read(0),se.resumeScheduled=!1,he.emit("resume"),oe(he),se.flowing&&!se.reading&&he.read(0)}function oe(he){var se=he._readableState;for(i("flow",se.flowing);se.flowing&&he.read()!==null;);}function q(he,se){return se.length===0?null:(se.objectMode?ae=se.buffer.shift():!he||he>=se.length?(ae=se.decoder?se.buffer.join(""):se.buffer.length===1?se.buffer.first():se.buffer.concat(se.length),se.buffer.clear()):ae=se.buffer.consume(he,se.decoder),ae);var ae}function Y(he){var se=he._readableState;i("endReadable",se.endEmitted),se.endEmitted||(se.ended=!0,b.nextTick(ee,se,he))}function ee(he,se){if(i("endReadableNT",he.endEmitted,he.length),!he.endEmitted&&he.length===0&&(he.endEmitted=!0,se.readable=!1,se.emit("end"),he.autoDestroy)){var ae=se._writableState;(!ae||ae.autoDestroy&&ae.finished)&&se.destroy()}}function me(he,se){for(var ae=0,ce=he.length;ae=se.highWaterMark:se.length>0)||se.ended))return i("read: emitReadable",se.length,se.ended),se.length===0&&se.ended?Y(this):Q(this),null;if((he=$(he,se))===0&&se.ended)return se.length===0&&Y(this),null;var ce,de=se.needReadable;return i("need readable",de),(se.length===0||se.length-he0?q(he,se):null)===null?(se.needReadable=se.length<=se.highWaterMark,he=0):(se.length-=he,se.awaitDrain=0),se.length===0&&(se.ended||(se.needReadable=!0),ae!==he&&se.ended&&Y(this)),ce!==null&&this.emit("data",ce),ce},D.prototype._read=function(he){E(this,new M("_read()"))},D.prototype.pipe=function(he,se){var ae=this,ce=this._readableState;switch(ce.pipesCount){case 0:ce.pipes=he;break;case 1:ce.pipes=[ce.pipes,he];break;default:ce.pipes.push(he)}ce.pipesCount+=1,i("pipe count=%d opts=%j",ce.pipesCount,se);var de=se&&se.end===!1||he===b.stdout||he===b.stderr?ze:ve;function ve(){i("onend"),he.end()}ce.endEmitted?b.nextTick(de):ae.once("end",de),he.on("unpipe",function De(He,Ve){i("onunpipe"),He===ae&&Ve&&Ve.hasUnpiped===!1&&(Ve.hasUnpiped=!0,i("cleanup"),he.removeListener("close",Pe),he.removeListener("finish",Ie),he.removeListener("drain",ye),he.removeListener("error",Te),he.removeListener("unpipe",De),ae.removeListener("end",ve),ae.removeListener("end",ze),ae.removeListener("data",Se),_e=!0,!ce.awaitDrain||he._writableState&&!he._writableState.needDrain||ye())});var ye=function(De){return function(){var He=De._readableState;i("pipeOnDrain",He.awaitDrain),He.awaitDrain&&He.awaitDrain--,He.awaitDrain===0&&O(De,"data")&&(He.flowing=!0,oe(De))}}(ae);he.on("drain",ye);var _e=!1;function Se(De){i("ondata");var He=he.write(De);i("dest.write",He),He===!1&&((ce.pipesCount===1&&ce.pipes===he||ce.pipesCount>1&&me(ce.pipes,he)!==-1)&&!_e&&(i("false write response, pause",ce.awaitDrain),ce.awaitDrain++),ae.pause())}function Te(De){i("onerror",De),ze(),he.removeListener("error",Te),O(he,"error")===0&&E(he,De)}function Pe(){he.removeListener("finish",Ie),ze()}function Ie(){i("onfinish"),he.removeListener("close",Pe),ze()}function ze(){i("unpipe"),ae.unpipe(he)}return ae.on("data",Se),function(De,He,Ve){if(typeof De.prependListener=="function")return De.prependListener(He,Ve);De._events&&De._events[He]?Array.isArray(De._events[He])?De._events[He].unshift(Ve):De._events[He]=[Ve,De._events[He]]:De.on(He,Ve)}(he,"error",Te),he.once("close",Pe),he.once("finish",Ie),he.emit("pipe",ae),ce.flowing||(i("pipe resume"),ae.resume()),he},D.prototype.unpipe=function(he){var se=this._readableState,ae={hasUnpiped:!1};if(se.pipesCount===0)return this;if(se.pipesCount===1)return he&&he!==se.pipes||(he||(he=se.pipes),se.pipes=null,se.pipesCount=0,se.flowing=!1,he&&he.emit("unpipe",this,ae)),this;if(!he){var ce=se.pipes,de=se.pipesCount;se.pipes=null,se.pipesCount=0,se.flowing=!1;for(var ve=0;ve0,ce.flowing!==!1&&this.resume()):he==="readable"&&(ce.endEmitted||ce.readableListening||(ce.readableListening=ce.needReadable=!0,ce.flowing=!1,ce.emittedReadable=!1,i("on readable",ce.length,ce.reading),ce.length?Q(this):ce.reading||b.nextTick(W,this))),ae},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(he,se){var ae=w.prototype.removeListener.call(this,he,se);return he==="readable"&&b.nextTick(te,this),ae},D.prototype.removeAllListeners=function(he){var se=w.prototype.removeAllListeners.apply(this,arguments);return he!=="readable"&&he!==void 0||b.nextTick(te,this),se},D.prototype.resume=function(){var he=this._readableState;return he.flowing||(i("resume"),he.flowing=!he.readableListening,function(se,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,b.nextTick(K,se,ae))}(this,he)),he.paused=!1,this},D.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(he){var se=this,ae=this._readableState,ce=!1;for(var de in he.on("end",function(){if(i("wrapped end"),ae.decoder&&!ae.ended){var ye=ae.decoder.end();ye&&ye.length&&se.push(ye)}se.push(null)}),he.on("data",function(ye){i("wrapped data"),ae.decoder&&(ye=ae.decoder.write(ye)),ae.objectMode&&ye==null||(ae.objectMode||ye&&ye.length)&&(se.push(ye)||(ce=!0,he.pause()))}),he)this[de]===void 0&&typeof he[de]=="function"&&(this[de]=function(ye){return function(){return he[ye].apply(he,arguments)}}(de));for(var ve=0;ve-1))throw new T(U);return this._writableState.defaultEncoding=U,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),D.prototype._write=function(U,X,te){te(new _("_write()"))},D.prototype._writev=null,D.prototype.end=function(U,X,te){var W=this._writableState;return typeof U=="function"?(te=U,U=null,X=null):typeof X=="function"&&(te=X,X=null),U!=null&&this.write(U,X),W.corked&&(W.corked=1,this.uncork()),W.ending||function(K,oe,q){oe.ending=!0,j(K,oe),q&&(oe.finished?b.nextTick(q):K.once("finish",q)),oe.ended=!0,K.writable=!1}(this,W,te),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(U){this._writableState&&(this._writableState.destroyed=U)}}),D.prototype.destroy=u.destroy,D.prototype._undestroy=u.undestroy,D.prototype._destroy=function(U,X){X(U)}},60328:function(d,l,n){var c,b=n(4168);function i(R,M,T){return M in R?Object.defineProperty(R,M,{value:T,enumerable:!0,configurable:!0,writable:!0}):R[M]=T,R}var O=n(15932),w=Symbol("lastResolve"),y=Symbol("lastReject"),p=Symbol("error"),a=Symbol("ended"),u=Symbol("lastPromise"),h=Symbol("handlePromise"),m=Symbol("stream");function v(R,M){return{value:R,done:M}}function _(R){var M=R[w];if(M!==null){var T=R[m].read();T!==null&&(R[u]=null,R[w]=null,R[y]=null,M(v(T,!1)))}}function S(R){b.nextTick(_,R)}var A=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((i(c={get stream(){return this[m]},next:function(){var R=this,M=this[p];if(M!==null)return Promise.reject(M);if(this[a])return Promise.resolve(v(void 0,!0));if(this[m].destroyed)return new Promise(function(L,D){b.nextTick(function(){R[p]?D(R[p]):L(v(void 0,!0))})});var T,E=this[u];if(E)T=new Promise(function(L,D){return function(k,I){L.then(function(){D[a]?k(v(void 0,!0)):D[h](k,I)},I)}}(E,this));else{var C=this[m].read();if(C!==null)return Promise.resolve(v(C,!1));T=new Promise(this[h])}return this[u]=T,T}},Symbol.asyncIterator,function(){return this}),i(c,"return",function(){var R=this;return new Promise(function(M,T){R[m].destroy(null,function(E){E?T(E):M(v(void 0,!0))})})}),c),A);d.exports=function(R){var M,T=Object.create(x,(i(M={},m,{value:R,writable:!0}),i(M,w,{value:null,writable:!0}),i(M,y,{value:null,writable:!0}),i(M,p,{value:null,writable:!0}),i(M,a,{value:R._readableState.endEmitted,writable:!0}),i(M,h,{value:function(E,C){var L=T[m].read();L?(T[u]=null,T[w]=null,T[y]=null,E(v(L,!1))):(T[w]=E,T[y]=C)},writable:!0}),M));return T[u]=null,O(R,function(E){if(E&&E.code!=="ERR_STREAM_PREMATURE_CLOSE"){var C=T[y];return C!==null&&(T[u]=null,T[w]=null,T[y]=null,C(E)),void(T[p]=E)}var L=T[w];L!==null&&(T[u]=null,T[w]=null,T[y]=null,L(v(void 0,!0))),T[a]=!0}),R.on("readable",S.bind(null,T)),T}},47264:function(d,l,n){function c(p,a){var u=Object.keys(p);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(p);a&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(p,m).enumerable})),u.push.apply(u,h)}return u}function b(p,a,u){return a in p?Object.defineProperty(p,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):p[a]=u,p}function i(p,a){for(var u=0;u0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(h){var m={data:h,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(this.length!==0){var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(h){if(this.length===0)return"";for(var m=this.head,v=""+m.data;m=m.next;)v+=h+m.data;return v}},{key:"concat",value:function(h){if(this.length===0)return O.alloc(0);for(var m,v,_,S=O.allocUnsafe(h>>>0),A=this.head,x=0;A;)m=A.data,v=S,_=x,O.prototype.copy.call(m,v,_),x+=A.data.length,A=A.next;return S}},{key:"consume",value:function(h,m){var v;return hS.length?S.length:h;if(A===S.length?_+=S:_+=S.slice(0,h),(h-=A)==0){A===S.length?(++v,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=S.slice(A));break}++v}return this.length-=v,_}},{key:"_getBuffer",value:function(h){var m=O.allocUnsafe(h),v=this.head,_=1;for(v.data.copy(m),h-=v.data.length;v=v.next;){var S=v.data,A=h>S.length?S.length:h;if(S.copy(m,m.length-h,0,A),(h-=A)==0){A===S.length?(++_,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=S.slice(A));break}++_}return this.length-=_,m}},{key:y,value:function(h,m){return w(this,function(v){for(var _=1;_0,function(R){m||(m=R),R&&_.forEach(y),x||(_.forEach(y),v(m))})});return u.reduce(p)}},24888:function(d,l,n){var c=n(92784).i.ERR_INVALID_OPT_VALUE;d.exports={getHighWaterMark:function(b,i,O,w){var y=function(p,a,u){return p.highWaterMark!=null?p.highWaterMark:a?p[u]:null}(i,w,O);if(y!=null){if(!isFinite(y)||Math.floor(y)!==y||y<0)throw new c(w?O:"highWaterMark",y);return Math.floor(y)}return b.objectMode?16:16384}}},4776:function(d,l,n){d.exports=n(61252).EventEmitter},86032:function(d,l,n){var c=n(30456).Buffer,b=c.isEncoding||function(v){switch((v=""+v)&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(v){var _;switch(this.encoding=function(S){var A=function(x){if(!x)return"utf8";for(var R;;)switch(x){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return x;default:if(R)return;x=(""+x).toLowerCase(),R=!0}}(S);if(typeof A!="string"&&(c.isEncoding===b||!b(S)))throw new Error("Unknown encoding: "+S);return A||S}(v),this.encoding){case"utf16le":this.text=y,this.end=p,_=4;break;case"utf8":this.fillLast=w,_=4;break;case"base64":this.text=a,this.end=u,_=3;break;default:return this.write=h,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(_)}function O(v){return v<=127?0:v>>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function w(v){var _=this.lastTotal-this.lastNeed,S=function(A,x,R){if((192&x[0])!=128)return A.lastNeed=0,"�";if(A.lastNeed>1&&x.length>1){if((192&x[1])!=128)return A.lastNeed=1,"�";if(A.lastNeed>2&&x.length>2&&(192&x[2])!=128)return A.lastNeed=2,"�"}}(this,v);return S!==void 0?S:this.lastNeed<=v.length?(v.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,_,0,v.length),void(this.lastNeed-=v.length))}function y(v,_){if((v.length-_)%2==0){var S=v.toString("utf16le",_);if(S){var A=S.charCodeAt(S.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",_,v.length-1)}function p(v){var _=v&&v.length?this.write(v):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,S)}return _}function a(v,_){var S=(v.length-_)%3;return S===0?v.toString("base64",_):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",_,v.length-S))}function u(v){var _=v&&v.length?this.write(v):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function h(v){return v.toString(this.encoding)}function m(v){return v&&v.length?this.write(v):""}l.o=i,i.prototype.write=function(v){if(v.length===0)return"";var _,S;if(this.lastNeed){if((_=this.fillLast(v))===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S=0?(E>0&&(x.lastNeed=E-1),E):--T=0?(E>0&&(x.lastNeed=E-2),E):--T=0?(E>0&&(E===2?E=0:x.lastNeed=E-3),E):0}(this,v,_);if(!this.lastNeed)return v.toString("utf8",_);this.lastTotal=S;var A=v.length-(S-this.lastNeed);return v.copy(this.lastChar,0,A),v.toString("utf8",_,A)},i.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},55619:function(d,l,n){var c=n(45408),b=n(86844)("stream-parser");d.exports=function(x){var R=x&&typeof x._transform=="function",M=x&&typeof x._write=="function";if(!R&&!M)throw new Error("must pass a Writable or Transform stream in");b("extending Parser into stream"),x._bytes=a,x._skipBytes=u,R&&(x._passthrough=h),R?x._transform=v:x._write=m};var i=-1,O=0,w=1,y=2;function p(x){b("initializing parser stream"),x._parserBytesLeft=0,x._parserBuffers=[],x._parserBuffered=0,x._parserState=i,x._parserCallback=null,typeof x.push=="function"&&(x._parserOutput=x.push.bind(x)),x._parserInit=!0}function a(x,R){c(!this._parserCallback,'there is already a "callback" set!'),c(isFinite(x)&&x>0,'can only buffer a finite number of bytes > 0, got "'+x+'"'),this._parserInit||p(this),b("buffering %o bytes",x),this._parserBytesLeft=x,this._parserCallback=R,this._parserState=O}function u(x,R){c(!this._parserCallback,'there is already a "callback" set!'),c(x>0,'can only skip > 0 bytes, got "'+x+'"'),this._parserInit||p(this),b("skipping %o bytes",x),this._parserBytesLeft=x,this._parserCallback=R,this._parserState=w}function h(x,R){c(!this._parserCallback,'There is already a "callback" set!'),c(x>0,'can only pass through > 0 bytes, got "'+x+'"'),this._parserInit||p(this),b("passing through %o bytes",x),this._parserBytesLeft=x,this._parserCallback=R,this._parserState=y}function m(x,R,M){this._parserInit||p(this),b("write(%o bytes)",x.length),typeof R=="function"&&(M=R),S(this,x,null,M)}function v(x,R,M){this._parserInit||p(this),b("transform(%o bytes)",x.length),typeof R!="function"&&(R=this._parserOutput),S(this,x,R,M)}function _(x,R,M,T){if(x._parserBytesLeft-=R.length,b("%o bytes left for stream piece",x._parserBytesLeft),x._parserState===O?(x._parserBuffers.push(R),x._parserBuffered+=R.length):x._parserState===y&&M(R),x._parserBytesLeft!==0)return T;var E=x._parserCallback;if(E&&x._parserState===O&&x._parserBuffers.length>1&&(R=Buffer.concat(x._parserBuffers,x._parserBuffered)),x._parserState!==O&&(R=null),x._parserCallback=null,x._parserBuffered=0,x._parserState=i,x._parserBuffers.splice(0),E){var C=[];R&&C.push(R),M&&C.push(M);var L=E.length>C.length;L&&C.push(A(T));var D=E.apply(x,C);if(!L||T===D)return T}}var S=A(function x(R,M,T,E){return R._parserBytesLeft<=0?E(new Error("got data but not currently parsing anything")):M.length<=R._parserBytesLeft?function(){return _(R,M,T,E)}:function(){var C=M.slice(0,R._parserBytesLeft);return _(R,C,T,function(L){return L?E(L):M.length>C.length?function(){return x(R,M.slice(C.length),T,E)}:void 0})}});function A(x){return function(){for(var R=x.apply(this,arguments);typeof R=="function";)R=R();return R}}},86844:function(d,l,n){var c=n(4168);function b(){var i;try{i=l.storage.debug}catch{}return!i&&c!==void 0&&"env"in c&&(i=c.env.DEBUG),i}(l=d.exports=n(89416)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},l.formatArgs=function(i){var O=this.useColors;if(i[0]=(O?"%c":"")+this.namespace+(O?" %c":" ")+i[0]+(O?"%c ":" ")+"+"+l.humanize(this.diff),O){var w="color: "+this.color;i.splice(1,0,w,"color: inherit");var y=0,p=0;i[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(y++,a==="%c"&&(p=y))}),i.splice(p,0,w)}},l.save=function(i){try{i==null?l.storage.removeItem("debug"):l.storage.debug=i}catch{}},l.load=b,l.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},l.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),l.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],l.formatters.j=function(i){try{return JSON.stringify(i)}catch(O){return"[UnexpectedJSONParseError]: "+O.message}},l.enable(b())},89416:function(d,l,n){var c;function b(i){function O(){if(O.enabled){var w=O,y=+new Date,p=y-(c||y);w.diff=p,w.prev=c,w.curr=y,c=y;for(var a=new Array(arguments.length),u=0;u0)return function(a){if(!((a=String(a)).length>100)){var u=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(a);if(u){var h=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*h;case"days":case"day":case"d":return h*b;case"hours":case"hour":case"hrs":case"hr":case"h":return h*c;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}(O);if(p==="number"&&isNaN(O)===!1)return w.long?i(y=O,b,"day")||i(y,c,"hour")||i(y,n,"minute")||i(y,l,"second")||y+" ms":function(a){return a>=b?Math.round(a/b)+"d":a>=c?Math.round(a/c)+"h":a>=n?Math.round(a/n)+"m":a>=l?Math.round(a/l)+"s":a+"ms"}(O);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(O))}},39956:function(d,l,n){var c=n(32868);d.exports=function(b,i,O){if(b==null)throw Error("First argument should be a string");if(i==null)throw Error("Separator should be a string or a RegExp");O?(typeof O=="string"||Array.isArray(O))&&(O={ignore:O}):O={},O.escape==null&&(O.escape=!0),O.ignore==null?O.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:(typeof O.ignore=="string"&&(O.ignore=[O.ignore]),O.ignore=O.ignore.map(function(m){return m.length===1&&(m+=m),m}));var w=c.parse(b,{flat:!0,brackets:O.ignore}),y=w[0].split(i);if(O.escape){for(var p=[],a=0;a0;){A=R[R.length-1];var M=l[A];if(O[A]=0&&y[A].push(w[E])}O[A]=T}else{if(b[A]===c[A]){var C=[],L=[],D=0;for(T=x.length-1;T>=0;--T){var k=x[T];if(i[k]=!1,C.push(k),L.push(y[k]),D+=y[k].length,w[k]=h.length,k===A){x.length=T;break}}h.push(C);var I=new Array(D);for(T=0;T1&&(u=1),u<-1&&(u=-1),(w*a-y*p<0?-1:1)*Math.acos(u)};l.default=function(w){var y=w.px,p=w.py,a=w.cx,u=w.cy,h=w.rx,m=w.ry,v=w.xAxisRotation,_=v===void 0?0:v,S=w.largeArcFlag,A=S===void 0?0:S,x=w.sweepFlag,R=x===void 0?0:x,M=[];if(h===0||m===0)return[];var T=Math.sin(_*c/360),E=Math.cos(_*c/360),C=E*(y-a)/2+T*(p-u)/2,L=-T*(y-a)/2+E*(p-u)/2;if(C===0&&L===0)return[];h=Math.abs(h),m=Math.abs(m);var D=Math.pow(C,2)/Math.pow(h,2)+Math.pow(L,2)/Math.pow(m,2);D>1&&(h*=Math.sqrt(D),m*=Math.sqrt(D));var k=function(W,K,oe,q,Y,ee,me,he,se,ae,ce,de){var ve=Math.pow(Y,2),ye=Math.pow(ee,2),_e=Math.pow(ce,2),Se=Math.pow(de,2),Te=ve*ye-ve*Se-ye*_e;Te<0&&(Te=0),Te/=ve*Se+ye*_e;var Pe=(Te=Math.sqrt(Te)*(me===he?-1:1))*Y/ee*de,Ie=Te*-ee/Y*ce,ze=ae*Pe-se*Ie+(W+oe)/2,De=se*Pe+ae*Ie+(K+q)/2,He=(ce-Pe)/Y,Ve=(de-Ie)/ee,$e=(-ce-Pe)/Y,Oe=(-de-Ie)/ee,ke=O(1,0,He,Ve),Le=O(He,Ve,$e,Oe);return he===0&&Le>0&&(Le-=c),he===1&&Le<0&&(Le+=c),[ze,De,ke,Le]}(y,p,a,u,h,m,A,R,T,E,C,L),I=function(W,K){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function(oe,q){var Y=[],ee=!0,me=!1,he=void 0;try{for(var se,ae=oe[Symbol.iterator]();!(ee=(se=ae.next()).done)&&(Y.push(se.value),!q||Y.length!==q);ee=!0);}catch(ce){me=!0,he=ce}finally{try{!ee&&ae.return&&ae.return()}finally{if(me)throw he}}return Y}(W,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(k,4),z=I[0],$=I[1],Q=I[2],j=I[3],U=Math.abs(j)/(c/4);Math.abs(1-U)<1e-7&&(U=1);var X=Math.max(Math.ceil(U),1);j/=X;for(var te=0;tep[2]&&(p[2]=h[m+0]),h[m+1]>p[3]&&(p[3]=h[m+1]);return p}},41976:function(d,l,n){d.exports=function(O){for(var w,y=[],p=0,a=0,u=0,h=0,m=null,v=null,_=0,S=0,A=0,x=O.length;A4?(p=R[R.length-4],a=R[R.length-3]):(p=_,a=S),y.push(R)}return y};var c=n(92848);function b(O,w,y,p){return["C",O,w,y,p,y,p]}function i(O,w,y,p,a,u){return["C",O/3+.6666666666666666*y,w/3+.6666666666666666*p,a/3+.6666666666666666*y,u/3+.6666666666666666*p,a,u]}},20472:function(d,l,n){var c,b=n(74840),i=n(21984),O=n(22235),w=n(53520),y=n(29620),p=document.createElement("canvas"),a=p.getContext("2d");d.exports=function(u,h){if(!w(u))throw Error("Argument should be valid svg path string");var m,v;h||(h={}),h.shape?(m=h.shape[0],v=h.shape[1]):(m=p.width=h.w||h.width||200,v=p.height=h.h||h.height||200);var _=Math.min(m,v),S=h.stroke||0,A=h.viewbox||h.viewBox||b(u),x=[m/(A[2]-A[0]),v/(A[3]-A[1])],R=Math.min(x[0]||0,x[1]||0)/2;if(a.fillStyle="black",a.fillRect(0,0,m,v),a.fillStyle="white",S&&(typeof S!="number"&&(S=1),a.strokeStyle=S>0?"white":"black",a.lineWidth=Math.abs(S)),a.translate(.5*m,.5*v),a.scale(R,R),function(){if(c!=null)return c;var E=document.createElement("canvas").getContext("2d");if(E.canvas.width=E.canvas.height=1,!window.Path2D)return c=!1;var C=new Path2D("M0,0h1v1h-1v-1Z");E.fillStyle="black",E.fill(C);var L=E.getImageData(0,0,1,1);return c=L&&L.data&&L.data[3]===255}()){var M=new Path2D(u);a.fill(M),S&&a.stroke(M)}else{var T=i(u);O(a,T),a.fill(),S&&a.stroke()}return a.setTransform(1,0,0,1,0,0),y(a,{cutoff:h.cutoff!=null?h.cutoff:.5,radius:h.radius!=null?h.radius:.5*_})}},49760:function(d,l,n){var c;(function(b){var i=/^\s+/,O=/\s+$/,w=0,y=b.round,p=b.min,a=b.max,u=b.random;function h(ce,de){if(de=de||{},(ce=ce||"")instanceof h)return ce;if(!(this instanceof h))return new h(ce,de);var ve=function(ye){var _e,Se,Te,Pe={r:0,g:0,b:0},Ie=1,ze=null,De=null,He=null,Ve=!1,$e=!1;return typeof ye=="string"&&(ye=function(Oe){Oe=Oe.replace(i,"").replace(O,"").toLowerCase();var ke,Le=!1;if(Q[Oe])Oe=Q[Oe],Le=!0;else if(Oe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ke=se.rgb.exec(Oe))?{r:ke[1],g:ke[2],b:ke[3]}:(ke=se.rgba.exec(Oe))?{r:ke[1],g:ke[2],b:ke[3],a:ke[4]}:(ke=se.hsl.exec(Oe))?{h:ke[1],s:ke[2],l:ke[3]}:(ke=se.hsla.exec(Oe))?{h:ke[1],s:ke[2],l:ke[3],a:ke[4]}:(ke=se.hsv.exec(Oe))?{h:ke[1],s:ke[2],v:ke[3]}:(ke=se.hsva.exec(Oe))?{h:ke[1],s:ke[2],v:ke[3],a:ke[4]}:(ke=se.hex8.exec(Oe))?{r:W(ke[1]),g:W(ke[2]),b:W(ke[3]),a:Y(ke[4]),format:Le?"name":"hex8"}:(ke=se.hex6.exec(Oe))?{r:W(ke[1]),g:W(ke[2]),b:W(ke[3]),format:Le?"name":"hex"}:(ke=se.hex4.exec(Oe))?{r:W(ke[1]+""+ke[1]),g:W(ke[2]+""+ke[2]),b:W(ke[3]+""+ke[3]),a:Y(ke[4]+""+ke[4]),format:Le?"name":"hex8"}:!!(ke=se.hex3.exec(Oe))&&{r:W(ke[1]+""+ke[1]),g:W(ke[2]+""+ke[2]),b:W(ke[3]+""+ke[3]),format:Le?"name":"hex"}}(ye)),typeof ye=="object"&&(ae(ye.r)&&ae(ye.g)&&ae(ye.b)?(_e=ye.r,Se=ye.g,Te=ye.b,Pe={r:255*X(_e,255),g:255*X(Se,255),b:255*X(Te,255)},Ve=!0,$e=String(ye.r).substr(-1)==="%"?"prgb":"rgb"):ae(ye.h)&&ae(ye.s)&&ae(ye.v)?(ze=oe(ye.s),De=oe(ye.v),Pe=function(Oe,ke,Le){Oe=6*X(Oe,360),ke=X(ke,100),Le=X(Le,100);var We=b.floor(Oe),Ue=Oe-We,Ze=Le*(1-ke),Xe=Le*(1-Ue*ke),tt=Le*(1-(1-Ue)*ke),Ee=We%6;return{r:255*[Le,Xe,Ze,Ze,tt,Le][Ee],g:255*[tt,Le,Le,Xe,Ze,Ze][Ee],b:255*[Ze,Ze,tt,Le,Le,Xe][Ee]}}(ye.h,ze,De),Ve=!0,$e="hsv"):ae(ye.h)&&ae(ye.s)&&ae(ye.l)&&(ze=oe(ye.s),He=oe(ye.l),Pe=function(Oe,ke,Le){var We,Ue,Ze;function Xe(Ne,je,nt){return nt<0&&(nt+=1),nt>1&&(nt-=1),nt<1/6?Ne+6*(je-Ne)*nt:nt<.5?je:nt<2/3?Ne+(je-Ne)*(2/3-nt)*6:Ne}if(Oe=X(Oe,360),ke=X(ke,100),Le=X(Le,100),ke===0)We=Ue=Ze=Le;else{var tt=Le<.5?Le*(1+ke):Le+ke-Le*ke,Ee=2*Le-tt;We=Xe(Ee,tt,Oe+1/3),Ue=Xe(Ee,tt,Oe),Ze=Xe(Ee,tt,Oe-1/3)}return{r:255*We,g:255*Ue,b:255*Ze}}(ye.h,ze,He),Ve=!0,$e="hsl"),ye.hasOwnProperty("a")&&(Ie=ye.a)),Ie=U(Ie),{ok:Ve,format:ye.format||$e,r:p(255,a(Pe.r,0)),g:p(255,a(Pe.g,0)),b:p(255,a(Pe.b,0)),a:Ie}}(ce);this._originalInput=ce,this._r=ve.r,this._g=ve.g,this._b=ve.b,this._a=ve.a,this._roundA=y(100*this._a)/100,this._format=de.format||ve.format,this._gradientType=de.gradientType,this._r<1&&(this._r=y(this._r)),this._g<1&&(this._g=y(this._g)),this._b<1&&(this._b=y(this._b)),this._ok=ve.ok,this._tc_id=w++}function m(ce,de,ve){ce=X(ce,255),de=X(de,255),ve=X(ve,255);var ye,_e,Se=a(ce,de,ve),Te=p(ce,de,ve),Pe=(Se+Te)/2;if(Se==Te)ye=_e=0;else{var Ie=Se-Te;switch(_e=Pe>.5?Ie/(2-Se-Te):Ie/(Se+Te),Se){case ce:ye=(de-ve)/Ie+(de>1)+720)%360;--de;)ye.h=(ye.h+_e)%360,Se.push(h(ye));return Se}function $(ce,de){de=de||6;for(var ve=h(ce).toHsv(),ye=ve.h,_e=ve.s,Se=ve.v,Te=[],Pe=1/de;de--;)Te.push(h({h:ye,s:_e,v:Se})),Se=(Se+Pe)%1;return Te}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ce=this.toRgb();return(299*ce.r+587*ce.g+114*ce.b)/1e3},getLuminance:function(){var ce,de,ve,ye=this.toRgb();return ce=ye.r/255,de=ye.g/255,ve=ye.b/255,.2126*(ce<=.03928?ce/12.92:b.pow((ce+.055)/1.055,2.4))+.7152*(de<=.03928?de/12.92:b.pow((de+.055)/1.055,2.4))+.0722*(ve<=.03928?ve/12.92:b.pow((ve+.055)/1.055,2.4))},setAlpha:function(ce){return this._a=U(ce),this._roundA=y(100*this._a)/100,this},toHsv:function(){var ce=v(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,v:ce.v,a:this._a}},toHsvString:function(){var ce=v(this._r,this._g,this._b),de=y(360*ce.h),ve=y(100*ce.s),ye=y(100*ce.v);return this._a==1?"hsv("+de+", "+ve+"%, "+ye+"%)":"hsva("+de+", "+ve+"%, "+ye+"%, "+this._roundA+")"},toHsl:function(){var ce=m(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,l:ce.l,a:this._a}},toHslString:function(){var ce=m(this._r,this._g,this._b),de=y(360*ce.h),ve=y(100*ce.s),ye=y(100*ce.l);return this._a==1?"hsl("+de+", "+ve+"%, "+ye+"%)":"hsla("+de+", "+ve+"%, "+ye+"%, "+this._roundA+")"},toHex:function(ce){return _(this._r,this._g,this._b,ce)},toHexString:function(ce){return"#"+this.toHex(ce)},toHex8:function(ce){return function(de,ve,ye,_e,Se){var Te=[K(y(de).toString(16)),K(y(ve).toString(16)),K(y(ye).toString(16)),K(q(_e))];return Se&&Te[0].charAt(0)==Te[0].charAt(1)&&Te[1].charAt(0)==Te[1].charAt(1)&&Te[2].charAt(0)==Te[2].charAt(1)&&Te[3].charAt(0)==Te[3].charAt(1)?Te[0].charAt(0)+Te[1].charAt(0)+Te[2].charAt(0)+Te[3].charAt(0):Te.join("")}(this._r,this._g,this._b,this._a,ce)},toHex8String:function(ce){return"#"+this.toHex8(ce)},toRgb:function(){return{r:y(this._r),g:y(this._g),b:y(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+y(this._r)+", "+y(this._g)+", "+y(this._b)+")":"rgba("+y(this._r)+", "+y(this._g)+", "+y(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:y(100*X(this._r,255))+"%",g:y(100*X(this._g,255))+"%",b:y(100*X(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+y(100*X(this._r,255))+"%, "+y(100*X(this._g,255))+"%, "+y(100*X(this._b,255))+"%)":"rgba("+y(100*X(this._r,255))+"%, "+y(100*X(this._g,255))+"%, "+y(100*X(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(j[_(this._r,this._g,this._b,!0)]||!1)},toFilter:function(ce){var de="#"+S(this._r,this._g,this._b,this._a),ve=de,ye=this._gradientType?"GradientType = 1, ":"";if(ce){var _e=h(ce);ve="#"+S(_e._r,_e._g,_e._b,_e._a)}return"progid:DXImageTransform.Microsoft.gradient("+ye+"startColorstr="+de+",endColorstr="+ve+")"},toString:function(ce){var de=!!ce;ce=ce||this._format;var ve=!1,ye=this._a<1&&this._a>=0;return de||!ye||ce!=="hex"&&ce!=="hex6"&&ce!=="hex3"&&ce!=="hex4"&&ce!=="hex8"&&ce!=="name"?(ce==="rgb"&&(ve=this.toRgbString()),ce==="prgb"&&(ve=this.toPercentageRgbString()),ce!=="hex"&&ce!=="hex6"||(ve=this.toHexString()),ce==="hex3"&&(ve=this.toHexString(!0)),ce==="hex4"&&(ve=this.toHex8String(!0)),ce==="hex8"&&(ve=this.toHex8String()),ce==="name"&&(ve=this.toName()),ce==="hsl"&&(ve=this.toHslString()),ce==="hsv"&&(ve=this.toHsvString()),ve||this.toHexString()):ce==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(ce,de){var ve=ce.apply(null,[this].concat([].slice.call(de)));return this._r=ve._r,this._g=ve._g,this._b=ve._b,this.setAlpha(ve._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(T,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(ce,de){return ce.apply(null,[this].concat([].slice.call(de)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},h.fromRatio=function(ce,de){if(typeof ce=="object"){var ve={};for(var ye in ce)ce.hasOwnProperty(ye)&&(ve[ye]=ye==="a"?ce[ye]:oe(ce[ye]));ce=ve}return h(ce,de)},h.equals=function(ce,de){return!(!ce||!de)&&h(ce).toRgbString()==h(de).toRgbString()},h.random=function(){return h.fromRatio({r:u(),g:u(),b:u()})},h.mix=function(ce,de,ve){ve=ve===0?0:ve||50;var ye=h(ce).toRgb(),_e=h(de).toRgb(),Se=ve/100;return h({r:(_e.r-ye.r)*Se+ye.r,g:(_e.g-ye.g)*Se+ye.g,b:(_e.b-ye.b)*Se+ye.b,a:(_e.a-ye.a)*Se+ye.a})},h.readability=function(ce,de){var ve=h(ce),ye=h(de);return(b.max(ve.getLuminance(),ye.getLuminance())+.05)/(b.min(ve.getLuminance(),ye.getLuminance())+.05)},h.isReadable=function(ce,de,ve){var ye,_e,Se,Te,Pe,Ie=h.readability(ce,de);switch(_e=!1,(Se=ve,(Te=((Se=Se||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&Te!=="AAA"&&(Te="AA"),(Pe=(Se.size||"small").toLowerCase())!=="small"&&Pe!=="large"&&(Pe="small"),ye={level:Te,size:Pe}).level+ye.size){case"AAsmall":case"AAAlarge":_e=Ie>=4.5;break;case"AAlarge":_e=Ie>=3;break;case"AAAsmall":_e=Ie>=7}return _e},h.mostReadable=function(ce,de,ve){var ye,_e,Se,Te,Pe=null,Ie=0;_e=(ve=ve||{}).includeFallbackColors,Se=ve.level,Te=ve.size;for(var ze=0;zeIe&&(Ie=ye,Pe=h(de[ze]));return h.isReadable(ce,Pe,{level:Se,size:Te})||!_e?Pe:(ve.includeFallbackColors=!1,h.mostReadable(ce,["#fff","#000"],ve))};var Q=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=h.hexNames=function(ce){var de={};for(var ve in ce)ce.hasOwnProperty(ve)&&(de[ce[ve]]=ve);return de}(Q);function U(ce){return ce=parseFloat(ce),(isNaN(ce)||ce<0||ce>1)&&(ce=1),ce}function X(ce,de){(function(ye){return typeof ye=="string"&&ye.indexOf(".")!=-1&&parseFloat(ye)===1})(ce)&&(ce="100%");var ve=function(ye){return typeof ye=="string"&&ye.indexOf("%")!=-1}(ce);return ce=p(de,a(0,parseFloat(ce))),ve&&(ce=parseInt(ce*de,10)/100),b.abs(ce-de)<1e-6?1:ce%de/parseFloat(de)}function te(ce){return p(1,a(0,ce))}function W(ce){return parseInt(ce,16)}function K(ce){return ce.length==1?"0"+ce:""+ce}function oe(ce){return ce<=1&&(ce=100*ce+"%"),ce}function q(ce){return b.round(255*parseFloat(ce)).toString(16)}function Y(ce){return W(ce)/255}var ee,me,he,se=(me="[\\s|\\(]+("+(ee="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?",he="[\\s|\\(]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?",{CSS_UNIT:new RegExp(ee),rgb:new RegExp("rgb"+me),rgba:new RegExp("rgba"+he),hsl:new RegExp("hsl"+me),hsla:new RegExp("hsla"+he),hsv:new RegExp("hsv"+me),hsva:new RegExp("hsva"+he),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function ae(ce){return!!se.CSS_UNIT.exec(ce)}d.exports?d.exports=h:(c=(function(){return h}).call(l,n,l,d))===void 0||(d.exports=c)})(Math)},37816:function(d){d.exports=n,d.exports.float32=d.exports.float=n,d.exports.fract32=d.exports.fract=function(c,b){if(c.length){if(c instanceof Float32Array)return new Float32Array(c.length);b instanceof Float32Array||(b=n(c));for(var i=0,O=b.length;i":(O.length>100&&(O=O.slice(0,99)+"…"),O=O.replace(b,function(w){switch(w){case` +`);return Rt&&(Qt=function(tn){for(var Kt,fn="",dn=0;dn>>4&15)+"0123456789abcdef".charAt(15&Kt);return fn}(function(tn){for(var Kt=Array(tn.length>>2),fn=0;fn>5]|=(255&tn.charCodeAt(fn/8))<<24-fn%32;var dn,vn,Nn,er,En,In,jn,xr,Sr,ar,Fn,ir=8*tn.length;for(tn=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],fn=Array(64),Kt[ir>>5]|=128<<24-ir%32,Kt[15+(ir+64>>9<<4)]=ir,xr=0;xrSr;Sr++){var Wn;16>Sr?fn[Sr]=Kt[Sr+xr]:(ar=Sr,Fn=te(Fn=X(Fn=fn[Sr-2],17)^X(Fn,19)^Fn>>>10,fn[Sr-7]),Wn=X(Wn=fn[Sr-15],7)^X(Wn,18)^Wn>>>3,fn[ar]=te(te(Fn,Wn),fn[Sr-16])),ar=te(te(te(te(jn,ar=X(ar=er,6)^X(ar,11)^X(ar,25)),er&En^~er&In),Ct[Sr]),fn[Sr]),Fn=te(jn=X(jn=ir,2)^X(jn,13)^X(jn,22),ir&dn^ir&vn^dn&vn),jn=In,In=En,En=er,er=te(Nn,ar),Nn=vn,vn=dn,dn=ir,ir=te(ar,Fn)}tn[0]=te(ir,tn[0]),tn[1]=te(dn,tn[1]),tn[2]=te(vn,tn[2]),tn[3]=te(Nn,tn[3]),tn[4]=te(er,tn[4]),tn[5]=te(En,tn[5]),tn[6]=te(In,tn[6]),tn[7]=te(jn,tn[7])}for(Kt="",fn=0;fn<32*tn.length;fn+=8)Kt+=String.fromCharCode(tn[fn>>5]>>>24-fn%32&255);return Kt}(function(tn){for(var Kt,fn,dn="",vn=-1;++vn=Kt&&56320<=fn&&57343>=fn&&(Kt=65536+((1023&Kt)<<10)+(1023&fn),vn++),127>=Kt?dn+=String.fromCharCode(Kt):2047>=Kt?dn+=String.fromCharCode(192|Kt>>>6&31,128|63&Kt):65535>=Kt?dn+=String.fromCharCode(224|Kt>>>12&15,128|Kt>>>6&63,128|63&Kt):2097151>=Kt&&(dn+=String.fromCharCode(240|Kt>>>18&7,128|Kt>>>12&63,128|Kt>>>6&63,128|63&Kt));return dn}(Pt))),Rt[Qt])?Rt[Qt].apply(null,Lt):(Pt=Function.apply(null,at.concat(Pt)),Rt&&(Rt[Qt]=Pt),Pt.apply(null,Lt))}}}function q(lt){return Array.isArray(lt)||Ie(lt)||a(lt)}function Y(lt){return lt.sort(function(yt,zt){return yt==="viewport"?-1:zt==="viewport"?1:yt"+co+"?"+cr+".constant["+co+"]:0;"}).join(""),"}}else{","if(",Vr,"(",cr,".buffer)){",fr,"=",Lr,".createStream(",34962,",",cr,".buffer);","}else{",fr,"=",Lr,".getBuffer(",cr,".buffer);","}",Eo,'="type" in ',cr,"?",Er.glTypes,"[",cr,".type]:",fr,".dtype;",to.normalized,"=!!",cr,".normalized;"),tr("size"),tr("offset"),tr("stride"),tr("divisor"),Hn("}}"),Hn.exit("if(",to.isStream,"){",Lr,".destroyStream(",fr,");","}"),to})}),gr}function Sr(hn,zn,Zn,yr,gr){function vr(_o){var fr=Qn[_o];fr&&(tr[_o]=fr)}var nr=function(_o,fr){if(typeof(Eo=_o.static).frag=="string"&&typeof Eo.vert=="string"){if(0"u"?"Date.now()":"performance.now()"}function nr(_o){_o(tr=zn.def(),"=",vr(),";"),typeof gr=="string"?_o(Er,".count+=",gr,";"):_o(Er,".count++;"),tn&&(yr?_o(cr=zn.def(),"=",to,".getNumPendingQueries();"):_o(to,".beginQuery(",Er,");"))}function Qn(_o){_o(Er,".cpuTime+=",vr(),"-",tr,";"),tn&&(yr?_o(to,".pushScopeStats(",cr,",",to,".getNumPendingQueries(),",Er,");"):_o(to,".endQuery();"))}function Hn(_o){var fr=zn.def(Vr,".profile");zn(Vr,".profile=",_o,";"),zn.exit(Vr,".profile=",fr,";")}var tr,cr,Lr=hn.shared,Er=hn.stats,Vr=Lr.current,to=Lr.timer;if(Zn=Zn.profile){if(me(Zn))return void(Zn.enable?(nr(zn),Qn(zn.exit),Hn("true")):Hn("false"));Hn(Zn=Zn.append(hn,zn))}else Zn=zn.def(Vr,".profile");nr(Lr=hn.block()),zn("if(",Zn,"){",Lr,"}"),Qn(hn=hn.block()),zn.exit("if(",Zn,"){",hn,"}")}function Ir(hn,zn,Zn,yr,gr){function vr(Qn,Hn,tr){function cr(){zn("if(!",to,".buffer){",Er,".enableVertexAttribArray(",Vr,");}");var ao,co=tr.type;ao=tr.size?zn.def(tr.size,"||",Hn):Hn,zn("if(",to,".type!==",co,"||",to,".size!==",ao,"||",Eo.map(function(Go){return to+"."+Go+"!=="+tr[Go]}).join("||"),"){",Er,".bindBuffer(",34962,",",_o,".buffer);",Er,".vertexAttribPointer(",[Vr,ao,co,tr.normalized,tr.stride,tr.offset],");",to,".type=",co,";",to,".size=",ao,";",Eo.map(function(Go){return to+"."+Go+"="+tr[Go]+";"}).join(""),"}"),Pn&&(co=tr.divisor,zn("if(",to,".divisor!==",co,"){",hn.instancing,".vertexAttribDivisorANGLE(",[Vr,co],");",to,".divisor=",co,";}"))}function Lr(){zn("if(",to,".buffer){",Er,".disableVertexAttribArray(",Vr,");",to,".buffer=null;","}if(",_t.map(function(ao,co){return to+"."+ao+"!=="+fr[co]}).join("||"),"){",Er,".vertexAttrib4f(",Vr,",",fr,");",_t.map(function(ao,co){return to+"."+ao+"="+fr[co]+";"}).join(""),"}")}var Er=nr.gl,Vr=zn.def(Qn,".location"),to=zn.def(nr.attributes,"[",Vr,"]");Qn=tr.state;var _o=tr.buffer,fr=[tr.x,tr.y,tr.z,tr.w],Eo=["buffer","normalized","offset","stride"];Qn===1?cr():Qn===2?Lr():(zn("if(",Qn,"===",1,"){"),cr(),zn("}else{"),Lr(),zn("}"))}var nr=hn.shared;yr.forEach(function(Qn){var Hn,tr=Qn.name,cr=Zn.attributes[tr];if(cr){if(!gr(cr))return;Hn=cr.append(hn,zn)}else{if(!gr(bt))return;var Lr=hn.scopeAttrib(tr);Hn={},Object.keys(new go).forEach(function(Er){Hn[Er]=zn.def(Lr,".",Er)})}vr(hn.link(Qn),function(Er){switch(Er){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(Qn.info.type),Hn)})}function zr(hn,zn,Zn,yr,gr,vr){for(var nr,Qn=hn.shared,Hn=Qn.gl,tr=0;tr>1)",Qn],");")}function Go(){Zn(Hn,".drawArraysInstancedANGLE(",[to,_o,fr,Qn],");")}Vr&&Vr!=="null"?ao?co():(Zn("if(",Vr,"){"),co(),Zn("}else{"),Go(),Zn("}")):Go()}function nr(){function co(){Zn(cr+".drawElements("+[to,fr,Eo,_o+"<<(("+Eo+"-5121)>>1)"]+");")}function Go(){Zn(cr+".drawArrays("+[to,_o,fr]+");")}Vr&&Vr!=="null"?ao?co():(Zn("if(",Vr,"){"),co(),Zn("}else{"),Go(),Zn("}")):Go()}var Qn,Hn,tr=hn.shared,cr=tr.gl,Lr=tr.draw,Er=yr.draw,Vr=function(){var co=Er.elements,Go=zn;return co?((co.contextDep&&yr.contextDynamic||co.propDep)&&(Go=Zn),co=co.append(hn,Go),Er.elementsActive&&Go("if("+co+")"+cr+".bindBuffer(34963,"+co+".buffer.buffer);")):(co=Go.def(),Go(co,"=",Lr,".","elements",";","if(",co,"){",cr,".bindBuffer(",34963,",",co,".buffer.buffer);}","else if(",tr.vao,".currentVAO){",co,"=",hn.shared.elements+".getElements("+tr.vao,".currentVAO.elements);",br?"":"if("+co+")"+cr+".bindBuffer(34963,"+co+".buffer.buffer);","}")),co}(),to=gr("primitive"),_o=gr("offset"),fr=function(){var co=Er.count,Go=zn;return co?((co.contextDep&&yr.contextDynamic||co.propDep)&&(Go=Zn),co=co.append(hn,Go)):co=Go.def(Lr,".","count"),co}();if(typeof fr=="number"){if(fr===0)return}else Zn("if(",fr,"){"),Zn.exit("}");Pn&&(Qn=gr("instances"),Hn=hn.instancing);var Eo=Vr+".type",ao=Er.elements&&me(Er.elements)&&!Er.vaoActive;Pn&&(typeof Qn!="number"||0<=Qn)?typeof Qn=="string"?(Zn("if(",Qn,">0){"),vr(),Zn("}else if(",Qn,"<0){"),nr(),Zn("}")):vr():nr()}function Rr(hn,zn,Zn,yr,gr){return gr=(zn=er()).proc("body",gr),Pn&&(zn.instancing=gr.def(zn.shared.extensions,".angle_instanced_arrays")),hn(zn,gr,Zn,yr),zn.compile().body}function $r(hn,zn,Zn,yr){Kn(hn,zn),Zn.useVAO?Zn.drawVAO?zn(hn.shared.vao,".setVAO(",Zn.drawVAO.append(hn,zn),");"):zn(hn.shared.vao,".setVAO(",hn.shared.vao,".targetVAO);"):(zn(hn.shared.vao,".setVAO(null);"),Ir(hn,zn,Zn,yr.attributes,function(){return!0})),zr(hn,zn,Zn,yr.uniforms,function(){return!0},!1),Fr(hn,zn,zn,Zn)}function Kr(hn,zn,Zn,yr){function gr(){return!0}hn.batchId="a1",Kn(hn,zn),Ir(hn,zn,Zn,yr.attributes,gr),zr(hn,zn,Zn,yr.uniforms,gr,!1),Fr(hn,zn,zn,Zn)}function Co(hn,zn,Zn,yr){function gr(Lr){return Lr.contextDep&&nr||Lr.propDep}function vr(Lr){return!gr(Lr)}Kn(hn,zn);var nr=Zn.contextDep,Qn=zn.def(),Hn=zn.def();hn.shared.props=Hn,hn.batchId=Qn;var tr=hn.scope(),cr=hn.scope();zn(tr.entry,"for(",Qn,"=0;",Qn,"<","a1",";++",Qn,"){",Hn,"=","a0","[",Qn,"];",cr,"}",tr.exit),Zn.needsContext&&ar(hn,cr,Zn.context),Zn.needsFramebuffer&&Fn(hn,cr,Zn.framebuffer),Wn(hn,cr,Zn.state,gr),Zn.profile&&gr(Zn.profile)&&_r(hn,cr,Zn,!1,!0),yr?(Zn.useVAO?Zn.drawVAO?gr(Zn.drawVAO)?cr(hn.shared.vao,".setVAO(",Zn.drawVAO.append(hn,cr),");"):tr(hn.shared.vao,".setVAO(",Zn.drawVAO.append(hn,tr),");"):tr(hn.shared.vao,".setVAO(",hn.shared.vao,".targetVAO);"):(tr(hn.shared.vao,".setVAO(null);"),Ir(hn,tr,Zn,yr.attributes,vr),Ir(hn,cr,Zn,yr.attributes,gr)),zr(hn,tr,Zn,yr.uniforms,vr,!1),zr(hn,cr,Zn,yr.uniforms,gr,!0),Fr(hn,tr,cr,Zn)):(zn=hn.global.def("{}"),yr=Zn.shader.progVar.append(hn,cr),Hn=cr.def(yr,".id"),tr=cr.def(zn,"[",Hn,"]"),cr(hn.shared.gl,".useProgram(",yr,".program);","if(!",tr,"){",tr,"=",zn,"[",Hn,"]=",hn.link(function(Lr){return Rr(Kr,hn,Zn,Lr,2)}),"(",yr,");}",tr,".call(this,a0[",Qn,"],",Qn,");"))}function so(hn,zn){function Zn(Qn){var Hn=zn.shader[Qn];Hn&&(Hn=Hn.append(hn,yr),isNaN(Hn)?yr.set(gr.shader,"."+Qn,Hn):yr.set(gr.shader,"."+Qn,hn.link(Hn,{stable:!0})))}var yr=hn.proc("scope",3);hn.batchId="a2";var gr=hn.shared,vr=gr.current;if(ar(hn,yr,zn.context),zn.framebuffer&&zn.framebuffer.append(hn,yr),Y(Object.keys(zn.state)).forEach(function(Qn){var Hn=zn.state[Qn],tr=Hn.append(hn,yr);R(tr)?tr.forEach(function(cr,Lr){isNaN(cr)?yr.set(hn.next[Qn],"["+Lr+"]",cr):yr.set(hn.next[Qn],"["+Lr+"]",hn.link(cr,{stable:!0}))}):me(Hn)?yr.set(gr.next,"."+Qn,hn.link(tr,{stable:!0})):yr.set(gr.next,"."+Qn,tr)}),_r(hn,yr,zn,!0,!0),["elements","offset","count","instances","primitive"].forEach(function(Qn){var Hn=zn.draw[Qn];Hn&&(Hn=Hn.append(hn,yr),isNaN(Hn)?yr.set(gr.draw,"."+Qn,Hn):yr.set(gr.draw,"."+Qn,hn.link(Hn),{stable:!0}))}),Object.keys(zn.uniforms).forEach(function(Qn){var Hn=zn.uniforms[Qn].append(hn,yr);Array.isArray(Hn)&&(Hn="["+Hn.map(function(tr){return isNaN(tr)?tr:hn.link(tr,{stable:!0})})+"]"),yr.set(gr.uniforms,"["+hn.link(yt.id(Qn),{stable:!0})+"]",Hn)}),Object.keys(zn.attributes).forEach(function(Qn){var Hn=zn.attributes[Qn].append(hn,yr),tr=hn.scopeAttrib(Qn);Object.keys(new go).forEach(function(cr){yr.set(tr,"."+cr,Hn[cr])})}),zn.scopeVAO){var nr=zn.scopeVAO.append(hn,yr);isNaN(nr)?yr.set(gr.vao,".targetVAO",nr):yr.set(gr.vao,".targetVAO",hn.link(nr,{stable:!0}))}Zn("vert"),Zn("frag"),0=--this.refCount&&Lt(this)},it.profile&&(Rt.getTotalRenderbufferSize=function(){var Qt=0;return Object.keys(Yt).forEach(function(Pt){Qt+=Yt[Pt].stats.size}),Qt}),{create:function(Qt,Pt){function tn(fn,dn){var vn=0,Nn=0,er=32854;if(typeof fn=="object"&&fn?("shape"in fn?(vn=0|(Nn=fn.shape)[0],Nn=0|Nn[1]):("radius"in fn&&(vn=Nn=0|fn.radius),"width"in fn&&(vn=0|fn.width),"height"in fn&&(Nn=0|fn.height)),"format"in fn&&(er=xt[fn.format])):typeof fn=="number"?(vn=0|fn,Nn=typeof dn=="number"?0|dn:vn):fn||(vn=Nn=1),vn!==Kt.width||Nn!==Kt.height||er!==Kt.format)return tn.width=Kt.width=vn,tn.height=Kt.height=Nn,Kt.format=er,lt.bindRenderbuffer(36161,Kt.renderbuffer),lt.renderbufferStorage(36161,er,vn,Nn),it.profile&&(Kt.stats.size=It[Kt.format]*Kt.width*Kt.height),tn.format=Zt[Kt.format],tn}var Kt=new at(lt.createRenderbuffer());return Yt[Kt.id]=Kt,Rt.renderbufferCount++,tn(Qt,Pt),tn.resize=function(fn,dn){var vn=0|fn,Nn=0|dn||vn;return vn===Kt.width&&Nn===Kt.height||(tn.width=Kt.width=vn,tn.height=Kt.height=Nn,lt.bindRenderbuffer(36161,Kt.renderbuffer),lt.renderbufferStorage(36161,Kt.format,vn,Nn),it.profile&&(Kt.stats.size=It[Kt.format]*Kt.width*Kt.height)),tn},tn._reglType="renderbuffer",tn._renderbuffer=Kt,it.profile&&(tn.stats=Kt.stats),tn.destroy=function(){Kt.decRef()},tn},clear:function(){ze(Yt).forEach(Lt)},restore:function(){ze(Yt).forEach(function(Qt){Qt.renderbuffer=lt.createRenderbuffer(),lt.bindRenderbuffer(36161,Qt.renderbuffer),lt.renderbufferStorage(36161,Qt.format,Qt.width,Qt.height)}),lt.bindRenderbuffer(36161,null)}}},en=[];en[6408]=4,en[6407]=3;var Gt=[];Gt[5121]=1,Gt[5126]=4,Gt[36193]=2;var Ct=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],_t=["x","y","z","w"],nn="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),gn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},bn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},mn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},vt={cw:2304,ccw:2305},bt=new ee(!1,!1,!1,function(){});return function(lt){function yt(){if(Kr.length===0)En&&En.update(),go=null;else{go=_e.next(yt),Yt();for(var Pn=Kr.length-1;0<=Pn;--Pn){var Yn=Kr[Pn];Yn&&Yn(Sr,null,0)}tn.flush(),En&&En.update()}}function zt(){!go&&0=Kr.length&&Rt()}}}}function Xt(){var Pn=Rr.viewport,Yn=Rr.scissor_box;Pn[0]=Pn[1]=Yn[0]=Yn[1]=0,Sr.viewportWidth=Sr.framebufferWidth=Sr.drawingBufferWidth=Pn[2]=Yn[2]=tn.drawingBufferWidth,Sr.viewportHeight=Sr.framebufferHeight=Sr.drawingBufferHeight=Pn[3]=Yn[3]=tn.drawingBufferHeight}function Yt(){Sr.tick+=1,Sr.time=Pt(),Xt(),Fr.procs.poll()}function Qt(){_r.refresh(),Xt(),Fr.procs.refresh(),En&&En.update()}function Pt(){return(Se()-In)/1e3}if(!(lt=O(lt)))return null;var tn=lt.gl,Kt=tn.getContextAttributes();tn.isContextLost();var fn=function(Pn,Yn){function br(Qr){var Wr;Qr=Qr.toLowerCase();try{Wr=dr[Qr]=Pn.getExtension(Qr)}catch{}return!!Wr}for(var dr={},Cr=0;CrYn;++Yn)li(de({framebuffer:Pn.framebuffer.faces[Yn]},Pn),xt);else li(Pn,xt);else xt(0,Pn)},prop:ye.define.bind(null,1),context:ye.define.bind(null,2),this:ye.define.bind(null,3),draw:Lt({}),buffer:function(Pn){return Fn.create(Pn,34962,!1,!1)},elements:function(Pn){return ir.create(Pn,!1)},texture:_r.create2D,cube:_r.createCube,renderbuffer:Ir.create,framebuffer:zr.create,framebufferCube:zr.createCube,vao:Wn.createVAO,attributes:Kt,frame:Zt,on:function(Pn,Yn){var br;switch(Pn){case"frame":return Zt(Yn);case"lost":br=Co;break;case"restore":br=so;break;case"destroy":br=So}return br.push(Yn),{cancel:function(){for(var dr=0;dr4294967295||y(a)!==a)throw new w("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],h=!0,m=!0;if("length"in p&&O){var v=O(p,"length");v&&!v.configurable&&(h=!1),v&&!v.writable&&(m=!1)}return(h||m||!u)&&(i?b(p,"length",a,!0,!0):b(p,"length",a)),p}},29936:function(d,l,n){d.exports=b;var c=n(61252).EventEmitter;function b(){c.call(this)}n(6768)(b,c),b.Readable=n(12348),b.Writable=n(11288),b.Duplex=n(15316),b.Transform=n(22477),b.PassThrough=n(27136),b.finished=n(15932),b.pipeline=n(38180),b.Stream=b,b.prototype.pipe=function(i,O){var w=this;function y(_){i.writable&&i.write(_)===!1&&w.pause&&w.pause()}function p(){w.readable&&w.resume&&w.resume()}w.on("data",y),i.on("drain",p),i._isStdio||O&&O.end===!1||(w.on("end",u),w.on("close",h));var a=!1;function u(){a||(a=!0,i.end())}function h(){a||(a=!0,typeof i.destroy=="function"&&i.destroy())}function m(_){if(v(),c.listenerCount(this,"error")===0)throw _}function v(){w.removeListener("data",y),i.removeListener("drain",p),w.removeListener("end",u),w.removeListener("close",h),w.removeListener("error",m),i.removeListener("error",m),w.removeListener("end",v),w.removeListener("close",v),i.removeListener("close",v)}return w.on("error",m),i.on("error",m),w.on("end",v),w.on("close",v),i.on("close",v),i.emit("pipe",w),i}},92784:function(d){var l={};function n(b,i,O){O||(O=Error);var w=function(y){var p,a;function u(h,m,v){return y.call(this,function(_,S,A){return typeof i=="string"?i:i(_,S,A)}(h,m,v))||this}return a=y,(p=u).prototype=Object.create(a.prototype),p.prototype.constructor=p,p.__proto__=a,u}(O);w.prototype.name=O.name,w.prototype.code=b,l[b]=w}function c(b,i){if(Array.isArray(b)){var O=b.length;return b=b.map(function(w){return String(w)}),O>2?"one of ".concat(i," ").concat(b.slice(0,O-1).join(", "),", or ")+b[O-1]:O===2?"one of ".concat(i," ").concat(b[0]," or ").concat(b[1]):"of ".concat(i," ").concat(b[0])}return"of ".concat(i," ").concat(String(b))}n("ERR_INVALID_OPT_VALUE",function(b,i){return'The value "'+i+'" is invalid for option "'+b+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(b,i,O){var w,y,p,a,u;if(typeof i=="string"&&(y="not ",i.substr(0,4)===y)?(w="must not be",i=i.replace(/^not /,"")):w="must be",function(m,v,_){return(_===void 0||_>m.length)&&(_=m.length),m.substring(_-9,_)===v}(b," argument"))p="The ".concat(b," ").concat(w," ").concat(c(i,"type"));else{var h=(typeof u!="number"&&(u=0),u+1>(a=b).length||a.indexOf(".",u)===-1?"argument":"property");p='The "'.concat(b,'" ').concat(h," ").concat(w," ").concat(c(i,"type"))}return p+". Received type ".concat(typeof O)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),d.exports.i=l},15316:function(d,l,n){var c=n(4168),b=Object.keys||function(m){var v=[];for(var _ in m)v.push(_);return v};d.exports=a;var i=n(12348),O=n(11288);n(6768)(a,i);for(var w=b(O.prototype),y=0;y0)if(typeof se=="string"||ye.objectMode||Object.getPrototypeOf(se)===y.prototype||(se=function(_e){return y.from(_e)}(se)),ce)ye.endEmitted?E(he,new T):I(he,ye,se,!0);else if(ye.ended)E(he,new R);else{if(ye.destroyed)return!1;ye.reading=!1,ye.decoder&&!ae?(se=ye.decoder.write(se),ye.objectMode||se.length!==0?I(he,ye,se,!1):U(he,ye)):I(he,ye,se,!1)}else ce||(ye.reading=!1,U(he,ye));return!ye.ended&&(ye.lengthse.highWaterMark&&(se.highWaterMark=function(ae){return ae>=z?ae=z:(ae--,ae|=ae>>>1,ae|=ae>>>2,ae|=ae>>>4,ae|=ae>>>8,ae|=ae>>>16,ae++),ae}(he)),he<=se.length?he:se.ended?se.length:(se.needReadable=!0,0))}function Q(he){var se=he._readableState;i("emitReadable",se.needReadable,se.emittedReadable),se.needReadable=!1,se.emittedReadable||(i("emitReadable",se.flowing),se.emittedReadable=!0,b.nextTick(j,he))}function j(he){var se=he._readableState;i("emitReadable_",se.destroyed,se.length,se.ended),se.destroyed||!se.length&&!se.ended||(he.emit("readable"),se.emittedReadable=!1),se.needReadable=!se.flowing&&!se.ended&&se.length<=se.highWaterMark,oe(he)}function U(he,se){se.readingMore||(se.readingMore=!0,b.nextTick(X,he,se))}function X(he,se){for(;!se.reading&&!se.ended&&(se.length0,se.resumeScheduled&&!se.paused?se.flowing=!0:he.listenerCount("data")>0&&he.resume()}function W(he){i("readable nexttick read 0"),he.read(0)}function K(he,se){i("resume",se.reading),se.reading||he.read(0),se.resumeScheduled=!1,he.emit("resume"),oe(he),se.flowing&&!se.reading&&he.read(0)}function oe(he){var se=he._readableState;for(i("flow",se.flowing);se.flowing&&he.read()!==null;);}function q(he,se){return se.length===0?null:(se.objectMode?ae=se.buffer.shift():!he||he>=se.length?(ae=se.decoder?se.buffer.join(""):se.buffer.length===1?se.buffer.first():se.buffer.concat(se.length),se.buffer.clear()):ae=se.buffer.consume(he,se.decoder),ae);var ae}function Y(he){var se=he._readableState;i("endReadable",se.endEmitted),se.endEmitted||(se.ended=!0,b.nextTick(ee,se,he))}function ee(he,se){if(i("endReadableNT",he.endEmitted,he.length),!he.endEmitted&&he.length===0&&(he.endEmitted=!0,se.readable=!1,se.emit("end"),he.autoDestroy)){var ae=se._writableState;(!ae||ae.autoDestroy&&ae.finished)&&se.destroy()}}function me(he,se){for(var ae=0,ce=he.length;ae=se.highWaterMark:se.length>0)||se.ended))return i("read: emitReadable",se.length,se.ended),se.length===0&&se.ended?Y(this):Q(this),null;if((he=$(he,se))===0&&se.ended)return se.length===0&&Y(this),null;var ce,de=se.needReadable;return i("need readable",de),(se.length===0||se.length-he0?q(he,se):null)===null?(se.needReadable=se.length<=se.highWaterMark,he=0):(se.length-=he,se.awaitDrain=0),se.length===0&&(se.ended||(se.needReadable=!0),ae!==he&&se.ended&&Y(this)),ce!==null&&this.emit("data",ce),ce},D.prototype._read=function(he){E(this,new M("_read()"))},D.prototype.pipe=function(he,se){var ae=this,ce=this._readableState;switch(ce.pipesCount){case 0:ce.pipes=he;break;case 1:ce.pipes=[ce.pipes,he];break;default:ce.pipes.push(he)}ce.pipesCount+=1,i("pipe count=%d opts=%j",ce.pipesCount,se);var de=se&&se.end===!1||he===b.stdout||he===b.stderr?ze:ve;function ve(){i("onend"),he.end()}ce.endEmitted?b.nextTick(de):ae.once("end",de),he.on("unpipe",function De(He,Ve){i("onunpipe"),He===ae&&Ve&&Ve.hasUnpiped===!1&&(Ve.hasUnpiped=!0,i("cleanup"),he.removeListener("close",Pe),he.removeListener("finish",Ie),he.removeListener("drain",ye),he.removeListener("error",Te),he.removeListener("unpipe",De),ae.removeListener("end",ve),ae.removeListener("end",ze),ae.removeListener("data",Se),_e=!0,!ce.awaitDrain||he._writableState&&!he._writableState.needDrain||ye())});var ye=function(De){return function(){var He=De._readableState;i("pipeOnDrain",He.awaitDrain),He.awaitDrain&&He.awaitDrain--,He.awaitDrain===0&&O(De,"data")&&(He.flowing=!0,oe(De))}}(ae);he.on("drain",ye);var _e=!1;function Se(De){i("ondata");var He=he.write(De);i("dest.write",He),He===!1&&((ce.pipesCount===1&&ce.pipes===he||ce.pipesCount>1&&me(ce.pipes,he)!==-1)&&!_e&&(i("false write response, pause",ce.awaitDrain),ce.awaitDrain++),ae.pause())}function Te(De){i("onerror",De),ze(),he.removeListener("error",Te),O(he,"error")===0&&E(he,De)}function Pe(){he.removeListener("finish",Ie),ze()}function Ie(){i("onfinish"),he.removeListener("close",Pe),ze()}function ze(){i("unpipe"),ae.unpipe(he)}return ae.on("data",Se),function(De,He,Ve){if(typeof De.prependListener=="function")return De.prependListener(He,Ve);De._events&&De._events[He]?Array.isArray(De._events[He])?De._events[He].unshift(Ve):De._events[He]=[Ve,De._events[He]]:De.on(He,Ve)}(he,"error",Te),he.once("close",Pe),he.once("finish",Ie),he.emit("pipe",ae),ce.flowing||(i("pipe resume"),ae.resume()),he},D.prototype.unpipe=function(he){var se=this._readableState,ae={hasUnpiped:!1};if(se.pipesCount===0)return this;if(se.pipesCount===1)return he&&he!==se.pipes||(he||(he=se.pipes),se.pipes=null,se.pipesCount=0,se.flowing=!1,he&&he.emit("unpipe",this,ae)),this;if(!he){var ce=se.pipes,de=se.pipesCount;se.pipes=null,se.pipesCount=0,se.flowing=!1;for(var ve=0;ve0,ce.flowing!==!1&&this.resume()):he==="readable"&&(ce.endEmitted||ce.readableListening||(ce.readableListening=ce.needReadable=!0,ce.flowing=!1,ce.emittedReadable=!1,i("on readable",ce.length,ce.reading),ce.length?Q(this):ce.reading||b.nextTick(W,this))),ae},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(he,se){var ae=w.prototype.removeListener.call(this,he,se);return he==="readable"&&b.nextTick(te,this),ae},D.prototype.removeAllListeners=function(he){var se=w.prototype.removeAllListeners.apply(this,arguments);return he!=="readable"&&he!==void 0||b.nextTick(te,this),se},D.prototype.resume=function(){var he=this._readableState;return he.flowing||(i("resume"),he.flowing=!he.readableListening,function(se,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,b.nextTick(K,se,ae))}(this,he)),he.paused=!1,this},D.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(he){var se=this,ae=this._readableState,ce=!1;for(var de in he.on("end",function(){if(i("wrapped end"),ae.decoder&&!ae.ended){var ye=ae.decoder.end();ye&&ye.length&&se.push(ye)}se.push(null)}),he.on("data",function(ye){i("wrapped data"),ae.decoder&&(ye=ae.decoder.write(ye)),ae.objectMode&&ye==null||(ae.objectMode||ye&&ye.length)&&(se.push(ye)||(ce=!0,he.pause()))}),he)this[de]===void 0&&typeof he[de]=="function"&&(this[de]=function(ye){return function(){return he[ye].apply(he,arguments)}}(de));for(var ve=0;ve-1))throw new T(U);return this._writableState.defaultEncoding=U,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),D.prototype._write=function(U,X,te){te(new _("_write()"))},D.prototype._writev=null,D.prototype.end=function(U,X,te){var W=this._writableState;return typeof U=="function"?(te=U,U=null,X=null):typeof X=="function"&&(te=X,X=null),U!=null&&this.write(U,X),W.corked&&(W.corked=1,this.uncork()),W.ending||function(K,oe,q){oe.ending=!0,j(K,oe),q&&(oe.finished?b.nextTick(q):K.once("finish",q)),oe.ended=!0,K.writable=!1}(this,W,te),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(U){this._writableState&&(this._writableState.destroyed=U)}}),D.prototype.destroy=u.destroy,D.prototype._undestroy=u.undestroy,D.prototype._destroy=function(U,X){X(U)}},60328:function(d,l,n){var c,b=n(4168);function i(R,M,T){return M in R?Object.defineProperty(R,M,{value:T,enumerable:!0,configurable:!0,writable:!0}):R[M]=T,R}var O=n(15932),w=Symbol("lastResolve"),y=Symbol("lastReject"),p=Symbol("error"),a=Symbol("ended"),u=Symbol("lastPromise"),h=Symbol("handlePromise"),m=Symbol("stream");function v(R,M){return{value:R,done:M}}function _(R){var M=R[w];if(M!==null){var T=R[m].read();T!==null&&(R[u]=null,R[w]=null,R[y]=null,M(v(T,!1)))}}function S(R){b.nextTick(_,R)}var A=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((i(c={get stream(){return this[m]},next:function(){var R=this,M=this[p];if(M!==null)return Promise.reject(M);if(this[a])return Promise.resolve(v(void 0,!0));if(this[m].destroyed)return new Promise(function(L,D){b.nextTick(function(){R[p]?D(R[p]):L(v(void 0,!0))})});var T,E=this[u];if(E)T=new Promise(function(L,D){return function(k,I){L.then(function(){D[a]?k(v(void 0,!0)):D[h](k,I)},I)}}(E,this));else{var C=this[m].read();if(C!==null)return Promise.resolve(v(C,!1));T=new Promise(this[h])}return this[u]=T,T}},Symbol.asyncIterator,function(){return this}),i(c,"return",function(){var R=this;return new Promise(function(M,T){R[m].destroy(null,function(E){E?T(E):M(v(void 0,!0))})})}),c),A);d.exports=function(R){var M,T=Object.create(x,(i(M={},m,{value:R,writable:!0}),i(M,w,{value:null,writable:!0}),i(M,y,{value:null,writable:!0}),i(M,p,{value:null,writable:!0}),i(M,a,{value:R._readableState.endEmitted,writable:!0}),i(M,h,{value:function(E,C){var L=T[m].read();L?(T[u]=null,T[w]=null,T[y]=null,E(v(L,!1))):(T[w]=E,T[y]=C)},writable:!0}),M));return T[u]=null,O(R,function(E){if(E&&E.code!=="ERR_STREAM_PREMATURE_CLOSE"){var C=T[y];return C!==null&&(T[u]=null,T[w]=null,T[y]=null,C(E)),void(T[p]=E)}var L=T[w];L!==null&&(T[u]=null,T[w]=null,T[y]=null,L(v(void 0,!0))),T[a]=!0}),R.on("readable",S.bind(null,T)),T}},47264:function(d,l,n){function c(p,a){var u=Object.keys(p);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(p);a&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(p,m).enumerable})),u.push.apply(u,h)}return u}function b(p,a,u){return a in p?Object.defineProperty(p,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):p[a]=u,p}function i(p,a){for(var u=0;u0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(h){var m={data:h,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(this.length!==0){var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(h){if(this.length===0)return"";for(var m=this.head,v=""+m.data;m=m.next;)v+=h+m.data;return v}},{key:"concat",value:function(h){if(this.length===0)return O.alloc(0);for(var m,v,_,S=O.allocUnsafe(h>>>0),A=this.head,x=0;A;)m=A.data,v=S,_=x,O.prototype.copy.call(m,v,_),x+=A.data.length,A=A.next;return S}},{key:"consume",value:function(h,m){var v;return hS.length?S.length:h;if(A===S.length?_+=S:_+=S.slice(0,h),(h-=A)==0){A===S.length?(++v,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=S.slice(A));break}++v}return this.length-=v,_}},{key:"_getBuffer",value:function(h){var m=O.allocUnsafe(h),v=this.head,_=1;for(v.data.copy(m),h-=v.data.length;v=v.next;){var S=v.data,A=h>S.length?S.length:h;if(S.copy(m,m.length-h,0,A),(h-=A)==0){A===S.length?(++_,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=S.slice(A));break}++_}return this.length-=_,m}},{key:y,value:function(h,m){return w(this,function(v){for(var _=1;_0,function(R){m||(m=R),R&&_.forEach(y),x||(_.forEach(y),v(m))})});return u.reduce(p)}},24888:function(d,l,n){var c=n(92784).i.ERR_INVALID_OPT_VALUE;d.exports={getHighWaterMark:function(b,i,O,w){var y=function(p,a,u){return p.highWaterMark!=null?p.highWaterMark:a?p[u]:null}(i,w,O);if(y!=null){if(!isFinite(y)||Math.floor(y)!==y||y<0)throw new c(w?O:"highWaterMark",y);return Math.floor(y)}return b.objectMode?16:16384}}},4776:function(d,l,n){d.exports=n(61252).EventEmitter},86032:function(d,l,n){var c=n(30456).Buffer,b=c.isEncoding||function(v){switch((v=""+v)&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(v){var _;switch(this.encoding=function(S){var A=function(x){if(!x)return"utf8";for(var R;;)switch(x){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return x;default:if(R)return;x=(""+x).toLowerCase(),R=!0}}(S);if(typeof A!="string"&&(c.isEncoding===b||!b(S)))throw new Error("Unknown encoding: "+S);return A||S}(v),this.encoding){case"utf16le":this.text=y,this.end=p,_=4;break;case"utf8":this.fillLast=w,_=4;break;case"base64":this.text=a,this.end=u,_=3;break;default:return this.write=h,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(_)}function O(v){return v<=127?0:v>>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function w(v){var _=this.lastTotal-this.lastNeed,S=function(A,x,R){if((192&x[0])!=128)return A.lastNeed=0,"�";if(A.lastNeed>1&&x.length>1){if((192&x[1])!=128)return A.lastNeed=1,"�";if(A.lastNeed>2&&x.length>2&&(192&x[2])!=128)return A.lastNeed=2,"�"}}(this,v);return S!==void 0?S:this.lastNeed<=v.length?(v.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,_,0,v.length),void(this.lastNeed-=v.length))}function y(v,_){if((v.length-_)%2==0){var S=v.toString("utf16le",_);if(S){var A=S.charCodeAt(S.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",_,v.length-1)}function p(v){var _=v&&v.length?this.write(v):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,S)}return _}function a(v,_){var S=(v.length-_)%3;return S===0?v.toString("base64",_):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",_,v.length-S))}function u(v){var _=v&&v.length?this.write(v):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function h(v){return v.toString(this.encoding)}function m(v){return v&&v.length?this.write(v):""}l.o=i,i.prototype.write=function(v){if(v.length===0)return"";var _,S;if(this.lastNeed){if((_=this.fillLast(v))===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S=0?(E>0&&(x.lastNeed=E-1),E):--T=0?(E>0&&(x.lastNeed=E-2),E):--T=0?(E>0&&(E===2?E=0:x.lastNeed=E-3),E):0}(this,v,_);if(!this.lastNeed)return v.toString("utf8",_);this.lastTotal=S;var A=v.length-(S-this.lastNeed);return v.copy(this.lastChar,0,A),v.toString("utf8",_,A)},i.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},55619:function(d,l,n){var c=n(45408),b=n(86844)("stream-parser");d.exports=function(x){var R=x&&typeof x._transform=="function",M=x&&typeof x._write=="function";if(!R&&!M)throw new Error("must pass a Writable or Transform stream in");b("extending Parser into stream"),x._bytes=a,x._skipBytes=u,R&&(x._passthrough=h),R?x._transform=v:x._write=m};var i=-1,O=0,w=1,y=2;function p(x){b("initializing parser stream"),x._parserBytesLeft=0,x._parserBuffers=[],x._parserBuffered=0,x._parserState=i,x._parserCallback=null,typeof x.push=="function"&&(x._parserOutput=x.push.bind(x)),x._parserInit=!0}function a(x,R){c(!this._parserCallback,'there is already a "callback" set!'),c(isFinite(x)&&x>0,'can only buffer a finite number of bytes > 0, got "'+x+'"'),this._parserInit||p(this),b("buffering %o bytes",x),this._parserBytesLeft=x,this._parserCallback=R,this._parserState=O}function u(x,R){c(!this._parserCallback,'there is already a "callback" set!'),c(x>0,'can only skip > 0 bytes, got "'+x+'"'),this._parserInit||p(this),b("skipping %o bytes",x),this._parserBytesLeft=x,this._parserCallback=R,this._parserState=w}function h(x,R){c(!this._parserCallback,'There is already a "callback" set!'),c(x>0,'can only pass through > 0 bytes, got "'+x+'"'),this._parserInit||p(this),b("passing through %o bytes",x),this._parserBytesLeft=x,this._parserCallback=R,this._parserState=y}function m(x,R,M){this._parserInit||p(this),b("write(%o bytes)",x.length),typeof R=="function"&&(M=R),S(this,x,null,M)}function v(x,R,M){this._parserInit||p(this),b("transform(%o bytes)",x.length),typeof R!="function"&&(R=this._parserOutput),S(this,x,R,M)}function _(x,R,M,T){if(x._parserBytesLeft-=R.length,b("%o bytes left for stream piece",x._parserBytesLeft),x._parserState===O?(x._parserBuffers.push(R),x._parserBuffered+=R.length):x._parserState===y&&M(R),x._parserBytesLeft!==0)return T;var E=x._parserCallback;if(E&&x._parserState===O&&x._parserBuffers.length>1&&(R=Buffer.concat(x._parserBuffers,x._parserBuffered)),x._parserState!==O&&(R=null),x._parserCallback=null,x._parserBuffered=0,x._parserState=i,x._parserBuffers.splice(0),E){var C=[];R&&C.push(R),M&&C.push(M);var L=E.length>C.length;L&&C.push(A(T));var D=E.apply(x,C);if(!L||T===D)return T}}var S=A(function x(R,M,T,E){return R._parserBytesLeft<=0?E(new Error("got data but not currently parsing anything")):M.length<=R._parserBytesLeft?function(){return _(R,M,T,E)}:function(){var C=M.slice(0,R._parserBytesLeft);return _(R,C,T,function(L){return L?E(L):M.length>C.length?function(){return x(R,M.slice(C.length),T,E)}:void 0})}});function A(x){return function(){for(var R=x.apply(this,arguments);typeof R=="function";)R=R();return R}}},86844:function(d,l,n){var c=n(4168);function b(){var i;try{i=l.storage.debug}catch{}return!i&&c!==void 0&&"env"in c&&(i=c.env.DEBUG),i}(l=d.exports=n(89416)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},l.formatArgs=function(i){var O=this.useColors;if(i[0]=(O?"%c":"")+this.namespace+(O?" %c":" ")+i[0]+(O?"%c ":" ")+"+"+l.humanize(this.diff),O){var w="color: "+this.color;i.splice(1,0,w,"color: inherit");var y=0,p=0;i[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(y++,a==="%c"&&(p=y))}),i.splice(p,0,w)}},l.save=function(i){try{i==null?l.storage.removeItem("debug"):l.storage.debug=i}catch{}},l.load=b,l.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},l.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),l.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],l.formatters.j=function(i){try{return JSON.stringify(i)}catch(O){return"[UnexpectedJSONParseError]: "+O.message}},l.enable(b())},89416:function(d,l,n){var c;function b(i){function O(){if(O.enabled){var w=O,y=+new Date,p=y-(c||y);w.diff=p,w.prev=c,w.curr=y,c=y;for(var a=new Array(arguments.length),u=0;u0)return function(a){if(!((a=String(a)).length>100)){var u=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(a);if(u){var h=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*h;case"days":case"day":case"d":return h*b;case"hours":case"hour":case"hrs":case"hr":case"h":return h*c;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}(O);if(p==="number"&&isNaN(O)===!1)return w.long?i(y=O,b,"day")||i(y,c,"hour")||i(y,n,"minute")||i(y,l,"second")||y+" ms":function(a){return a>=b?Math.round(a/b)+"d":a>=c?Math.round(a/c)+"h":a>=n?Math.round(a/n)+"m":a>=l?Math.round(a/l)+"s":a+"ms"}(O);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(O))}},39956:function(d,l,n){var c=n(32868);d.exports=function(b,i,O){if(b==null)throw Error("First argument should be a string");if(i==null)throw Error("Separator should be a string or a RegExp");O?(typeof O=="string"||Array.isArray(O))&&(O={ignore:O}):O={},O.escape==null&&(O.escape=!0),O.ignore==null?O.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:(typeof O.ignore=="string"&&(O.ignore=[O.ignore]),O.ignore=O.ignore.map(function(m){return m.length===1&&(m+=m),m}));var w=c.parse(b,{flat:!0,brackets:O.ignore}),y=w[0].split(i);if(O.escape){for(var p=[],a=0;a0;){A=R[R.length-1];var M=l[A];if(O[A]=0&&y[A].push(w[E])}O[A]=T}else{if(b[A]===c[A]){var C=[],L=[],D=0;for(T=x.length-1;T>=0;--T){var k=x[T];if(i[k]=!1,C.push(k),L.push(y[k]),D+=y[k].length,w[k]=h.length,k===A){x.length=T;break}}h.push(C);var I=new Array(D);for(T=0;T1&&(u=1),u<-1&&(u=-1),(w*a-y*p<0?-1:1)*Math.acos(u)};l.default=function(w){var y=w.px,p=w.py,a=w.cx,u=w.cy,h=w.rx,m=w.ry,v=w.xAxisRotation,_=v===void 0?0:v,S=w.largeArcFlag,A=S===void 0?0:S,x=w.sweepFlag,R=x===void 0?0:x,M=[];if(h===0||m===0)return[];var T=Math.sin(_*c/360),E=Math.cos(_*c/360),C=E*(y-a)/2+T*(p-u)/2,L=-T*(y-a)/2+E*(p-u)/2;if(C===0&&L===0)return[];h=Math.abs(h),m=Math.abs(m);var D=Math.pow(C,2)/Math.pow(h,2)+Math.pow(L,2)/Math.pow(m,2);D>1&&(h*=Math.sqrt(D),m*=Math.sqrt(D));var k=function(W,K,oe,q,Y,ee,me,he,se,ae,ce,de){var ve=Math.pow(Y,2),ye=Math.pow(ee,2),_e=Math.pow(ce,2),Se=Math.pow(de,2),Te=ve*ye-ve*Se-ye*_e;Te<0&&(Te=0),Te/=ve*Se+ye*_e;var Pe=(Te=Math.sqrt(Te)*(me===he?-1:1))*Y/ee*de,Ie=Te*-ee/Y*ce,ze=ae*Pe-se*Ie+(W+oe)/2,De=se*Pe+ae*Ie+(K+q)/2,He=(ce-Pe)/Y,Ve=(de-Ie)/ee,$e=(-ce-Pe)/Y,Oe=(-de-Ie)/ee,ke=O(1,0,He,Ve),Le=O(He,Ve,$e,Oe);return he===0&&Le>0&&(Le-=c),he===1&&Le<0&&(Le+=c),[ze,De,ke,Le]}(y,p,a,u,h,m,A,R,T,E,C,L),I=function(W,K){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function(oe,q){var Y=[],ee=!0,me=!1,he=void 0;try{for(var se,ae=oe[Symbol.iterator]();!(ee=(se=ae.next()).done)&&(Y.push(se.value),!q||Y.length!==q);ee=!0);}catch(ce){me=!0,he=ce}finally{try{!ee&&ae.return&&ae.return()}finally{if(me)throw he}}return Y}(W,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(k,4),z=I[0],$=I[1],Q=I[2],j=I[3],U=Math.abs(j)/(c/4);Math.abs(1-U)<1e-7&&(U=1);var X=Math.max(Math.ceil(U),1);j/=X;for(var te=0;tep[2]&&(p[2]=h[m+0]),h[m+1]>p[3]&&(p[3]=h[m+1]);return p}},41976:function(d,l,n){d.exports=function(O){for(var w,y=[],p=0,a=0,u=0,h=0,m=null,v=null,_=0,S=0,A=0,x=O.length;A4?(p=R[R.length-4],a=R[R.length-3]):(p=_,a=S),y.push(R)}return y};var c=n(92848);function b(O,w,y,p){return["C",O,w,y,p,y,p]}function i(O,w,y,p,a,u){return["C",O/3+.6666666666666666*y,w/3+.6666666666666666*p,a/3+.6666666666666666*y,u/3+.6666666666666666*p,a,u]}},20472:function(d,l,n){var c,b=n(74840),i=n(21984),O=n(22235),w=n(53520),y=n(29620),p=document.createElement("canvas"),a=p.getContext("2d");d.exports=function(u,h){if(!w(u))throw Error("Argument should be valid svg path string");var m,v;h||(h={}),h.shape?(m=h.shape[0],v=h.shape[1]):(m=p.width=h.w||h.width||200,v=p.height=h.h||h.height||200);var _=Math.min(m,v),S=h.stroke||0,A=h.viewbox||h.viewBox||b(u),x=[m/(A[2]-A[0]),v/(A[3]-A[1])],R=Math.min(x[0]||0,x[1]||0)/2;if(a.fillStyle="black",a.fillRect(0,0,m,v),a.fillStyle="white",S&&(typeof S!="number"&&(S=1),a.strokeStyle=S>0?"white":"black",a.lineWidth=Math.abs(S)),a.translate(.5*m,.5*v),a.scale(R,R),function(){if(c!=null)return c;var E=document.createElement("canvas").getContext("2d");if(E.canvas.width=E.canvas.height=1,!window.Path2D)return c=!1;var C=new Path2D("M0,0h1v1h-1v-1Z");E.fillStyle="black",E.fill(C);var L=E.getImageData(0,0,1,1);return c=L&&L.data&&L.data[3]===255}()){var M=new Path2D(u);a.fill(M),S&&a.stroke(M)}else{var T=i(u);O(a,T),a.fill(),S&&a.stroke()}return a.setTransform(1,0,0,1,0,0),y(a,{cutoff:h.cutoff!=null?h.cutoff:.5,radius:h.radius!=null?h.radius:.5*_})}},49760:function(d,l,n){var c;(function(b){var i=/^\s+/,O=/\s+$/,w=0,y=b.round,p=b.min,a=b.max,u=b.random;function h(ce,de){if(de=de||{},(ce=ce||"")instanceof h)return ce;if(!(this instanceof h))return new h(ce,de);var ve=function(ye){var _e,Se,Te,Pe={r:0,g:0,b:0},Ie=1,ze=null,De=null,He=null,Ve=!1,$e=!1;return typeof ye=="string"&&(ye=function(Oe){Oe=Oe.replace(i,"").replace(O,"").toLowerCase();var ke,Le=!1;if(Q[Oe])Oe=Q[Oe],Le=!0;else if(Oe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ke=se.rgb.exec(Oe))?{r:ke[1],g:ke[2],b:ke[3]}:(ke=se.rgba.exec(Oe))?{r:ke[1],g:ke[2],b:ke[3],a:ke[4]}:(ke=se.hsl.exec(Oe))?{h:ke[1],s:ke[2],l:ke[3]}:(ke=se.hsla.exec(Oe))?{h:ke[1],s:ke[2],l:ke[3],a:ke[4]}:(ke=se.hsv.exec(Oe))?{h:ke[1],s:ke[2],v:ke[3]}:(ke=se.hsva.exec(Oe))?{h:ke[1],s:ke[2],v:ke[3],a:ke[4]}:(ke=se.hex8.exec(Oe))?{r:W(ke[1]),g:W(ke[2]),b:W(ke[3]),a:Y(ke[4]),format:Le?"name":"hex8"}:(ke=se.hex6.exec(Oe))?{r:W(ke[1]),g:W(ke[2]),b:W(ke[3]),format:Le?"name":"hex"}:(ke=se.hex4.exec(Oe))?{r:W(ke[1]+""+ke[1]),g:W(ke[2]+""+ke[2]),b:W(ke[3]+""+ke[3]),a:Y(ke[4]+""+ke[4]),format:Le?"name":"hex8"}:!!(ke=se.hex3.exec(Oe))&&{r:W(ke[1]+""+ke[1]),g:W(ke[2]+""+ke[2]),b:W(ke[3]+""+ke[3]),format:Le?"name":"hex"}}(ye)),typeof ye=="object"&&(ae(ye.r)&&ae(ye.g)&&ae(ye.b)?(_e=ye.r,Se=ye.g,Te=ye.b,Pe={r:255*X(_e,255),g:255*X(Se,255),b:255*X(Te,255)},Ve=!0,$e=String(ye.r).substr(-1)==="%"?"prgb":"rgb"):ae(ye.h)&&ae(ye.s)&&ae(ye.v)?(ze=oe(ye.s),De=oe(ye.v),Pe=function(Oe,ke,Le){Oe=6*X(Oe,360),ke=X(ke,100),Le=X(Le,100);var We=b.floor(Oe),Ue=Oe-We,Ze=Le*(1-ke),Xe=Le*(1-Ue*ke),tt=Le*(1-(1-Ue)*ke),Ee=We%6;return{r:255*[Le,Xe,Ze,Ze,tt,Le][Ee],g:255*[tt,Le,Le,Xe,Ze,Ze][Ee],b:255*[Ze,Ze,tt,Le,Le,Xe][Ee]}}(ye.h,ze,De),Ve=!0,$e="hsv"):ae(ye.h)&&ae(ye.s)&&ae(ye.l)&&(ze=oe(ye.s),He=oe(ye.l),Pe=function(Oe,ke,Le){var We,Ue,Ze;function Xe(Ne,je,nt){return nt<0&&(nt+=1),nt>1&&(nt-=1),nt<1/6?Ne+6*(je-Ne)*nt:nt<.5?je:nt<2/3?Ne+(je-Ne)*(2/3-nt)*6:Ne}if(Oe=X(Oe,360),ke=X(ke,100),Le=X(Le,100),ke===0)We=Ue=Ze=Le;else{var tt=Le<.5?Le*(1+ke):Le+ke-Le*ke,Ee=2*Le-tt;We=Xe(Ee,tt,Oe+1/3),Ue=Xe(Ee,tt,Oe),Ze=Xe(Ee,tt,Oe-1/3)}return{r:255*We,g:255*Ue,b:255*Ze}}(ye.h,ze,He),Ve=!0,$e="hsl"),ye.hasOwnProperty("a")&&(Ie=ye.a)),Ie=U(Ie),{ok:Ve,format:ye.format||$e,r:p(255,a(Pe.r,0)),g:p(255,a(Pe.g,0)),b:p(255,a(Pe.b,0)),a:Ie}}(ce);this._originalInput=ce,this._r=ve.r,this._g=ve.g,this._b=ve.b,this._a=ve.a,this._roundA=y(100*this._a)/100,this._format=de.format||ve.format,this._gradientType=de.gradientType,this._r<1&&(this._r=y(this._r)),this._g<1&&(this._g=y(this._g)),this._b<1&&(this._b=y(this._b)),this._ok=ve.ok,this._tc_id=w++}function m(ce,de,ve){ce=X(ce,255),de=X(de,255),ve=X(ve,255);var ye,_e,Se=a(ce,de,ve),Te=p(ce,de,ve),Pe=(Se+Te)/2;if(Se==Te)ye=_e=0;else{var Ie=Se-Te;switch(_e=Pe>.5?Ie/(2-Se-Te):Ie/(Se+Te),Se){case ce:ye=(de-ve)/Ie+(de>1)+720)%360;--de;)ye.h=(ye.h+_e)%360,Se.push(h(ye));return Se}function $(ce,de){de=de||6;for(var ve=h(ce).toHsv(),ye=ve.h,_e=ve.s,Se=ve.v,Te=[],Pe=1/de;de--;)Te.push(h({h:ye,s:_e,v:Se})),Se=(Se+Pe)%1;return Te}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ce=this.toRgb();return(299*ce.r+587*ce.g+114*ce.b)/1e3},getLuminance:function(){var ce,de,ve,ye=this.toRgb();return ce=ye.r/255,de=ye.g/255,ve=ye.b/255,.2126*(ce<=.03928?ce/12.92:b.pow((ce+.055)/1.055,2.4))+.7152*(de<=.03928?de/12.92:b.pow((de+.055)/1.055,2.4))+.0722*(ve<=.03928?ve/12.92:b.pow((ve+.055)/1.055,2.4))},setAlpha:function(ce){return this._a=U(ce),this._roundA=y(100*this._a)/100,this},toHsv:function(){var ce=v(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,v:ce.v,a:this._a}},toHsvString:function(){var ce=v(this._r,this._g,this._b),de=y(360*ce.h),ve=y(100*ce.s),ye=y(100*ce.v);return this._a==1?"hsv("+de+", "+ve+"%, "+ye+"%)":"hsva("+de+", "+ve+"%, "+ye+"%, "+this._roundA+")"},toHsl:function(){var ce=m(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,l:ce.l,a:this._a}},toHslString:function(){var ce=m(this._r,this._g,this._b),de=y(360*ce.h),ve=y(100*ce.s),ye=y(100*ce.l);return this._a==1?"hsl("+de+", "+ve+"%, "+ye+"%)":"hsla("+de+", "+ve+"%, "+ye+"%, "+this._roundA+")"},toHex:function(ce){return _(this._r,this._g,this._b,ce)},toHexString:function(ce){return"#"+this.toHex(ce)},toHex8:function(ce){return function(de,ve,ye,_e,Se){var Te=[K(y(de).toString(16)),K(y(ve).toString(16)),K(y(ye).toString(16)),K(q(_e))];return Se&&Te[0].charAt(0)==Te[0].charAt(1)&&Te[1].charAt(0)==Te[1].charAt(1)&&Te[2].charAt(0)==Te[2].charAt(1)&&Te[3].charAt(0)==Te[3].charAt(1)?Te[0].charAt(0)+Te[1].charAt(0)+Te[2].charAt(0)+Te[3].charAt(0):Te.join("")}(this._r,this._g,this._b,this._a,ce)},toHex8String:function(ce){return"#"+this.toHex8(ce)},toRgb:function(){return{r:y(this._r),g:y(this._g),b:y(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+y(this._r)+", "+y(this._g)+", "+y(this._b)+")":"rgba("+y(this._r)+", "+y(this._g)+", "+y(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:y(100*X(this._r,255))+"%",g:y(100*X(this._g,255))+"%",b:y(100*X(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+y(100*X(this._r,255))+"%, "+y(100*X(this._g,255))+"%, "+y(100*X(this._b,255))+"%)":"rgba("+y(100*X(this._r,255))+"%, "+y(100*X(this._g,255))+"%, "+y(100*X(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(j[_(this._r,this._g,this._b,!0)]||!1)},toFilter:function(ce){var de="#"+S(this._r,this._g,this._b,this._a),ve=de,ye=this._gradientType?"GradientType = 1, ":"";if(ce){var _e=h(ce);ve="#"+S(_e._r,_e._g,_e._b,_e._a)}return"progid:DXImageTransform.Microsoft.gradient("+ye+"startColorstr="+de+",endColorstr="+ve+")"},toString:function(ce){var de=!!ce;ce=ce||this._format;var ve=!1,ye=this._a<1&&this._a>=0;return de||!ye||ce!=="hex"&&ce!=="hex6"&&ce!=="hex3"&&ce!=="hex4"&&ce!=="hex8"&&ce!=="name"?(ce==="rgb"&&(ve=this.toRgbString()),ce==="prgb"&&(ve=this.toPercentageRgbString()),ce!=="hex"&&ce!=="hex6"||(ve=this.toHexString()),ce==="hex3"&&(ve=this.toHexString(!0)),ce==="hex4"&&(ve=this.toHex8String(!0)),ce==="hex8"&&(ve=this.toHex8String()),ce==="name"&&(ve=this.toName()),ce==="hsl"&&(ve=this.toHslString()),ce==="hsv"&&(ve=this.toHsvString()),ve||this.toHexString()):ce==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(ce,de){var ve=ce.apply(null,[this].concat([].slice.call(de)));return this._r=ve._r,this._g=ve._g,this._b=ve._b,this.setAlpha(ve._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(T,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(ce,de){return ce.apply(null,[this].concat([].slice.call(de)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},h.fromRatio=function(ce,de){if(typeof ce=="object"){var ve={};for(var ye in ce)ce.hasOwnProperty(ye)&&(ve[ye]=ye==="a"?ce[ye]:oe(ce[ye]));ce=ve}return h(ce,de)},h.equals=function(ce,de){return!(!ce||!de)&&h(ce).toRgbString()==h(de).toRgbString()},h.random=function(){return h.fromRatio({r:u(),g:u(),b:u()})},h.mix=function(ce,de,ve){ve=ve===0?0:ve||50;var ye=h(ce).toRgb(),_e=h(de).toRgb(),Se=ve/100;return h({r:(_e.r-ye.r)*Se+ye.r,g:(_e.g-ye.g)*Se+ye.g,b:(_e.b-ye.b)*Se+ye.b,a:(_e.a-ye.a)*Se+ye.a})},h.readability=function(ce,de){var ve=h(ce),ye=h(de);return(b.max(ve.getLuminance(),ye.getLuminance())+.05)/(b.min(ve.getLuminance(),ye.getLuminance())+.05)},h.isReadable=function(ce,de,ve){var ye,_e,Se,Te,Pe,Ie=h.readability(ce,de);switch(_e=!1,(Se=ve,(Te=((Se=Se||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&Te!=="AAA"&&(Te="AA"),(Pe=(Se.size||"small").toLowerCase())!=="small"&&Pe!=="large"&&(Pe="small"),ye={level:Te,size:Pe}).level+ye.size){case"AAsmall":case"AAAlarge":_e=Ie>=4.5;break;case"AAlarge":_e=Ie>=3;break;case"AAAsmall":_e=Ie>=7}return _e},h.mostReadable=function(ce,de,ve){var ye,_e,Se,Te,Pe=null,Ie=0;_e=(ve=ve||{}).includeFallbackColors,Se=ve.level,Te=ve.size;for(var ze=0;zeIe&&(Ie=ye,Pe=h(de[ze]));return h.isReadable(ce,Pe,{level:Se,size:Te})||!_e?Pe:(ve.includeFallbackColors=!1,h.mostReadable(ce,["#fff","#000"],ve))};var Q=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=h.hexNames=function(ce){var de={};for(var ve in ce)ce.hasOwnProperty(ve)&&(de[ce[ve]]=ve);return de}(Q);function U(ce){return ce=parseFloat(ce),(isNaN(ce)||ce<0||ce>1)&&(ce=1),ce}function X(ce,de){(function(ye){return typeof ye=="string"&&ye.indexOf(".")!=-1&&parseFloat(ye)===1})(ce)&&(ce="100%");var ve=function(ye){return typeof ye=="string"&&ye.indexOf("%")!=-1}(ce);return ce=p(de,a(0,parseFloat(ce))),ve&&(ce=parseInt(ce*de,10)/100),b.abs(ce-de)<1e-6?1:ce%de/parseFloat(de)}function te(ce){return p(1,a(0,ce))}function W(ce){return parseInt(ce,16)}function K(ce){return ce.length==1?"0"+ce:""+ce}function oe(ce){return ce<=1&&(ce=100*ce+"%"),ce}function q(ce){return b.round(255*parseFloat(ce)).toString(16)}function Y(ce){return W(ce)/255}var ee,me,he,se=(me="[\\s|\\(]+("+(ee="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?",he="[\\s|\\(]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?",{CSS_UNIT:new RegExp(ee),rgb:new RegExp("rgb"+me),rgba:new RegExp("rgba"+he),hsl:new RegExp("hsl"+me),hsla:new RegExp("hsla"+he),hsv:new RegExp("hsv"+me),hsva:new RegExp("hsva"+he),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function ae(ce){return!!se.CSS_UNIT.exec(ce)}d.exports?d.exports=h:(c=(function(){return h}).call(l,n,l,d))===void 0||(d.exports=c)})(Math)},37816:function(d){d.exports=n,d.exports.float32=d.exports.float=n,d.exports.fract32=d.exports.fract=function(c,b){if(c.length){if(c instanceof Float32Array)return new Float32Array(c.length);b instanceof Float32Array||(b=n(c));for(var i=0,O=b.length;i":(O.length>100&&(O=O.slice(0,99)+"…"),O=O.replace(b,function(w){switch(w){case` `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}))}},7328:function(d,l,n){var c=n(81680),b={object:!0,function:!0,undefined:!0};d.exports=function(i){return!!c(i)&&hasOwnProperty.call(b,typeof i)}},87396:function(d,l,n){var c=n(57980),b=n(85488);d.exports=function(i){return b(i)?i:c(i,"%v is not a plain function",arguments[1])}},85488:function(d,l,n){var c=n(73384),b=/^\s*class[\s{/}]/,i=Function.prototype.toString;d.exports=function(O){return!!c(O)&&!b.test(i.call(O))}},54612:function(d,l,n){var c=n(7328);d.exports=function(b){if(!c(b))return!1;try{return!!b.constructor&&b.constructor.prototype===b}catch{return!1}}},33940:function(d,l,n){var c=n(81680),b=n(7328),i=Object.prototype.toString;d.exports=function(O){if(!c(O))return null;if(b(O)){var w=O.toString;if(typeof w!="function"||w===i)return null}try{return""+O}catch{return null}}},18496:function(d,l,n){var c=n(57980),b=n(81680);d.exports=function(i){return b(i)?i:c(i,"Cannot use %v",arguments[1])}},81680:function(d){d.exports=function(l){return l!=null}},14144:function(d,l,n){var c=n(308),b=n(10352),i=n(33576).Buffer;n.g.__TYPEDARRAY_POOL||(n.g.__TYPEDARRAY_POOL={UINT8:b([32,0]),UINT16:b([32,0]),UINT32:b([32,0]),BIGUINT64:b([32,0]),INT8:b([32,0]),INT16:b([32,0]),INT32:b([32,0]),BIGINT64:b([32,0]),FLOAT:b([32,0]),DOUBLE:b([32,0]),DATA:b([32,0]),UINT8C:b([32,0]),BUFFER:b([32,0])});var O=typeof Uint8ClampedArray<"u",w=typeof BigUint64Array<"u",y=typeof BigInt64Array<"u",p=n.g.__TYPEDARRAY_POOL;p.UINT8C||(p.UINT8C=b([32,0])),p.BIGUINT64||(p.BIGUINT64=b([32,0])),p.BIGINT64||(p.BIGINT64=b([32,0])),p.BUFFER||(p.BUFFER=b([32,0]));var a=p.DATA,u=p.BUFFER;function h(I){if(I){var z=I.length||I.byteLength,$=c.log2(z);a[$].push(I)}}function m(I){I=c.nextPow2(I);var z=c.log2(I),$=a[z];return $.length>0?$.pop():new ArrayBuffer(I)}function v(I){return new Uint8Array(m(I),0,I)}function _(I){return new Uint16Array(m(2*I),0,I)}function S(I){return new Uint32Array(m(4*I),0,I)}function A(I){return new Int8Array(m(I),0,I)}function x(I){return new Int16Array(m(2*I),0,I)}function R(I){return new Int32Array(m(4*I),0,I)}function M(I){return new Float32Array(m(4*I),0,I)}function T(I){return new Float64Array(m(8*I),0,I)}function E(I){return O?new Uint8ClampedArray(m(I),0,I):v(I)}function C(I){return w?new BigUint64Array(m(8*I),0,I):null}function L(I){return y?new BigInt64Array(m(8*I),0,I):null}function D(I){return new DataView(m(I),0,I)}function k(I){I=c.nextPow2(I);var z=c.log2(I),$=u[z];return $.length>0?$.pop():new i(I)}l.free=function(I){if(i.isBuffer(I))u[c.log2(I.length)].push(I);else{if(Object.prototype.toString.call(I)!=="[object ArrayBuffer]"&&(I=I.buffer),!I)return;var z=I.length||I.byteLength,$=0|c.log2(z);a[$].push(I)}},l.freeUint8=l.freeUint16=l.freeUint32=l.freeBigUint64=l.freeInt8=l.freeInt16=l.freeInt32=l.freeBigInt64=l.freeFloat32=l.freeFloat=l.freeFloat64=l.freeDouble=l.freeUint8Clamped=l.freeDataView=function(I){h(I.buffer)},l.freeArrayBuffer=h,l.freeBuffer=function(I){u[c.log2(I.length)].push(I)},l.malloc=function(I,z){if(z===void 0||z==="arraybuffer")return m(I);switch(z){case"uint8":return v(I);case"uint16":return _(I);case"uint32":return S(I);case"int8":return A(I);case"int16":return x(I);case"int32":return R(I);case"float":case"float32":return M(I);case"double":case"float64":return T(I);case"uint8_clamped":return E(I);case"bigint64":return L(I);case"biguint64":return C(I);case"buffer":return k(I);case"data":case"dataview":return D(I);default:return null}return null},l.mallocArrayBuffer=m,l.mallocUint8=v,l.mallocUint16=_,l.mallocUint32=S,l.mallocInt8=A,l.mallocInt16=x,l.mallocInt32=R,l.mallocFloat32=l.mallocFloat=M,l.mallocFloat64=l.mallocDouble=T,l.mallocUint8Clamped=E,l.mallocBigUint64=C,l.mallocBigInt64=L,l.mallocDataView=D,l.mallocBuffer=k,l.clearCache=function(){for(var I=0;I<32;++I)p.UINT8[I].length=0,p.UINT16[I].length=0,p.UINT32[I].length=0,p.INT8[I].length=0,p.INT16[I].length=0,p.INT32[I].length=0,p.FLOAT[I].length=0,p.DOUBLE[I].length=0,p.BIGUINT64[I].length=0,p.BIGINT64[I].length=0,p.UINT8C[I].length=0,a[I].length=0,u[I].length=0}},92384:function(d){var l=/[\'\"]/;d.exports=function(n){return n?(l.test(n.charAt(0))&&(n=n.substr(1)),l.test(n.charAt(n.length-1))&&(n=n.substr(0,n.length-1)),n):""}},45223:function(d){d.exports=function(l,n,c){Array.isArray(c)||(c=[].slice.call(arguments,2));for(var b=0,i=c.length;b=K)return Y;switch(Y){case"%s":return String(W[te++]);case"%d":return Number(W[te++]);case"%j":try{return JSON.stringify(W[te++])}catch{return"[Circular]"}default:return Y}}),q=W[te];te=3&&(te.depth=arguments[2]),arguments.length>=4&&(te.colors=arguments[3]),S(X)?te.showHidden=X:X&&l._extend(te,X),M(te.showHidden)&&(te.showHidden=!1),M(te.depth)&&(te.depth=2),M(te.colors)&&(te.colors=!1),M(te.customInspect)&&(te.customInspect=!0),te.colors&&(te.stylize=a),h(te,U,te.depth)}function a(U,X){var te=p.styles[X];return te?"\x1B["+p.colors[te][0]+"m"+U+"\x1B["+p.colors[te][1]+"m":U}function u(U,X){return U}function h(U,X,te){if(U.customInspect&&X&&D(X.inspect)&&X.inspect!==l.inspect&&(!X.constructor||X.constructor.prototype!==X)){var W=X.inspect(te,U);return R(W)||(W=h(U,W,te)),W}var K=function(ae,ce){if(M(ce))return ae.stylize("undefined","undefined");if(R(ce)){var de="'"+JSON.stringify(ce).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ae.stylize(de,"string")}return x(ce)?ae.stylize(""+ce,"number"):S(ce)?ae.stylize(""+ce,"boolean"):A(ce)?ae.stylize("null","null"):void 0}(U,X);if(K)return K;var oe=Object.keys(X),q=function(ae){var ce={};return ae.forEach(function(de,ve){ce[de]=!0}),ce}(oe);if(U.showHidden&&(oe=Object.getOwnPropertyNames(X)),L(X)&&(oe.indexOf("message")>=0||oe.indexOf("description")>=0))return m(X);if(oe.length===0){if(D(X)){var Y=X.name?": "+X.name:"";return U.stylize("[Function"+Y+"]","special")}if(T(X))return U.stylize(RegExp.prototype.toString.call(X),"regexp");if(C(X))return U.stylize(Date.prototype.toString.call(X),"date");if(L(X))return m(X)}var ee,me="",he=!1,se=["{","}"];return _(X)&&(he=!0,se=["[","]"]),D(X)&&(me=" [Function"+(X.name?": "+X.name:"")+"]"),T(X)&&(me=" "+RegExp.prototype.toString.call(X)),C(X)&&(me=" "+Date.prototype.toUTCString.call(X)),L(X)&&(me=" "+m(X)),oe.length!==0||he&&X.length!=0?te<0?T(X)?U.stylize(RegExp.prototype.toString.call(X),"regexp"):U.stylize("[Object]","special"):(U.seen.push(X),ee=he?function(ae,ce,de,ve,ye){for(var _e=[],Se=0,Te=ce.length;Se60?de[0]+(ce===""?"":ce+` `)+" "+ae.join(`, @@ -3578,35 +3578,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).slice(2):` `+Y.split(` `).map(function(me){return" "+me}).join(` -`)):Y=U.stylize("[Circular]","special")),M(q)){if(oe&&K.match(/^\d+$/))return Y;(q=JSON.stringify(""+K)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=U.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=U.stylize(q,"string"))}return q+": "+Y}function _(U){return Array.isArray(U)}function S(U){return typeof U=="boolean"}function A(U){return U===null}function x(U){return typeof U=="number"}function R(U){return typeof U=="string"}function M(U){return U===void 0}function T(U){return E(U)&&k(U)==="[object RegExp]"}function E(U){return typeof U=="object"&&U!==null}function C(U){return E(U)&&k(U)==="[object Date]"}function L(U){return E(U)&&(k(U)==="[object Error]"||U instanceof Error)}function D(U){return typeof U=="function"}function k(U){return Object.prototype.toString.call(U)}function I(U){return U<10?"0"+U.toString(10):U.toString(10)}l.debuglog=function(U){if(U=U.toUpperCase(),!O[U])if(w.test(U)){var X=c.pid;O[U]=function(){var te=l.format.apply(l,arguments);console.error("%s %d: %s",U,X,te)}}else O[U]=function(){};return O[U]},l.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},l.types=n(41088),l.isArray=_,l.isBoolean=S,l.isNull=A,l.isNullOrUndefined=function(U){return U==null},l.isNumber=x,l.isString=R,l.isSymbol=function(U){return typeof U=="symbol"},l.isUndefined=M,l.isRegExp=T,l.types.isRegExp=T,l.isObject=E,l.isDate=C,l.types.isDate=C,l.isError=L,l.types.isNativeError=L,l.isFunction=D,l.isPrimitive=function(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||U===void 0},l.isBuffer=n(75272);var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $(U,X){return Object.prototype.hasOwnProperty.call(U,X)}l.log=function(){var U,X;console.log("%s - %s",(X=[I((U=new Date).getHours()),I(U.getMinutes()),I(U.getSeconds())].join(":"),[U.getDate(),z[U.getMonth()],X].join(" ")),l.format.apply(l,arguments))},l.inherits=n(6768),l._extend=function(U,X){if(!X||!E(X))return U;for(var te=Object.keys(X),W=te.length;W--;)U[te[W]]=X[te[W]];return U};var Q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function j(U,X){if(!U){var te=new Error("Promise was rejected with a falsy value");te.reason=U,U=te}return X(U)}l.promisify=function(U){if(typeof U!="function")throw new TypeError('The "original" argument must be of type Function');if(Q&&U[Q]){var X;if(typeof(X=U[Q])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,Q,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var te,W,K=new Promise(function(Y,ee){te=Y,W=ee}),oe=[],q=0;q"u"?n.g:globalThis,u=b(),h=O("String.prototype.slice"),m=Object.getPrototypeOf,v=O("Array.prototype.indexOf",!0)||function(S,A){for(var x=0;x-1?A:A==="Object"&&function(x){var R=!1;return c(_,function(M,T){if(!R)try{M(x),R=h(T,1)}catch{}}),R}(S)}return w?function(x){var R=!1;return c(_,function(M,T){if(!R)try{"$"+M(x)===T&&(R=h(T,1))}catch{}}),R}(S):null}},67020:function(d,l,n){var c=n(38700),b=n(50896),i=c.instance();function O(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}O.prototype=new c.baseCalendar,b(O.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(m,v){if(typeof m=="string"){var _=m.match(y);return _?_[0]:""}var S=this._validateYear(m),A=m.month(),x=""+this.toChineseMonth(S,A);return v&&x.length<2&&(x="0"+x),this.isIntercalaryMonth(S,A)&&(x+="i"),x},monthNames:function(m){if(typeof m=="string"){var v=m.match(p);return v?v[0]:""}var _=this._validateYear(m),S=m.month(),A=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(_,S)-1];return this.isIntercalaryMonth(_,S)&&(A="闰"+A),A},monthNamesShort:function(m){if(typeof m=="string"){var v=m.match(a);return v?v[0]:""}var _=this._validateYear(m),S=m.month(),A=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(_,S)-1];return this.isIntercalaryMonth(_,S)&&(A="闰"+A),A},parseMonth:function(m,v){m=this._validateYear(m);var _,S=parseInt(v);if(isNaN(S))v[0]==="闰"&&(_=!0,v=v.substring(1)),v[v.length-1]==="月"&&(v=v.substring(0,v.length-1)),S=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(v);else{var A=v[v.length-1];_=A==="i"||A==="I"}return this.toMonthIndex(m,S,_)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(m,v){if(m.year&&(m=m.year()),typeof m!="number"||m<1888||m>2111)throw v.replace(/\{0\}/,this.local.name);return m},toMonthIndex:function(m,v,_){var S=this.intercalaryMonth(m);if(_&&v!==S||v<1||v>12)throw c.local.invalidMonth.replace(/\{0\}/,this.local.name);return S?!_&&v<=S?v-1:v:v-1},toChineseMonth:function(m,v){m.year&&(v=(m=m.year()).month());var _=this.intercalaryMonth(m);if(v<0||v>(_?12:11))throw c.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?v<_?v+1:v:v+1},intercalaryMonth:function(m){return m=this._validateYear(m),u[m-u[0]]>>13},isIntercalaryMonth:function(m,v){m.year&&(v=(m=m.year()).month());var _=this.intercalaryMonth(m);return!!_&&_===v},leapYear:function(m){return this.intercalaryMonth(m)!==0},weekOfYear:function(m,v,_){var S,A=this._validateYear(m,c.local.invalidyear),x=h[A-h[0]],R=x>>9&4095,M=x>>5&15,T=31&x;(S=i.newDate(R,M,T)).add(4-(S.dayOfWeek()||7),"d");var E=this.toJD(m,v,_)-S.toJD();return 1+Math.floor(E/7)},monthsInYear:function(m){return this.leapYear(m)?13:12},daysInMonth:function(m,v){m.year&&(v=m.month(),m=m.year()),m=this._validateYear(m);var _=u[m-u[0]];if(v>(_>>13?12:11))throw c.local.invalidMonth.replace(/\{0\}/,this.local.name);return _&1<<12-v?30:29},weekDay:function(m,v,_){return(this.dayOfWeek(m,v,_)||7)<6},toJD:function(m,v,_){var S=this._validate(m,x,_,c.local.invalidDate);m=this._validateYear(S.year()),v=S.month(),_=S.day();var A=this.isIntercalaryMonth(m,v),x=this.toChineseMonth(m,v),R=function(M,T,E,C,L){var D,k,I;if(typeof M=="object")k=M,D=T||{};else{var z;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof E=="number"&&E>=1&&E<=30))throw new Error("Lunar day outside range 1 - 30");typeof C=="object"?(z=!1,D=C):(z=!!C,D={}),k={year:M,month:T,day:E,isIntercalary:z}}I=k.day-1;var $,Q=u[k.year-u[0]],j=Q>>13;$=j&&(k.month>j||k.isIntercalary)?k.month:k.month-1;for(var U=0;U<$;U++)I+=Q&1<<12-U?30:29;var X=h[k.year-h[0]],te=new Date(X>>9&4095,(X>>5&15)-1,(31&X)+I);return D.year=te.getFullYear(),D.month=1+te.getMonth(),D.day=te.getDate(),D}(m,x,_,A);return i.toJD(R.year,R.month,R.day)},fromJD:function(m){var v=i.fromJD(m),_=function(A,x,R,M){var T,E;if(typeof A=="object")T=A,E=x||{};else{if(!(typeof A=="number"&&A>=1888&&A<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof x=="number"&&x>=1&&x<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof R=="number"&&R>=1&&R<=31))throw new Error("Solar day outside range 1 - 31");T={year:A,month:x,day:R},E={}}var C=h[T.year-h[0]],L=T.year<<9|T.month<<5|T.day;E.year=L>=C?T.year:T.year-1,C=h[E.year-h[0]];var D,k=new Date(C>>9&4095,(C>>5&15)-1,31&C),I=new Date(T.year,T.month-1,T.day);D=Math.round((I-k)/864e5);var z,$=u[E.year-u[0]];for(z=0;z<13;z++){var Q=$&1<<12-z?30:29;if(D>13;return!j||z=2&&a<=6},extraInfo:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return{century:O[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return w=a.year()+(a.year()<0?1:0),y=a.month(),(p=a.day())+(y>1?16:0)+(y>2?32*(y-2):0)+400*(w-1)+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w+.5)-Math.floor(this.jdEpoch)-1;var y=Math.floor(w/400)+1;w-=400*(y-1),w+=w>15?16:0;var p=Math.floor(w/32)+1,a=w-32*(p-1)+1;return this.newDate(y<=0?y-1:y,p,a)}});var O={20:"Fruitbat",21:"Anchovy"};c.calendars.discworld=i},65168:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(O){var w=this._validate(O,this.minMonth,this.minDay,c.local.invalidYear);return(O=w.year()+(w.year()<0?1:0))%4==3||O%4==-1},monthsInYear:function(O){return this._validate(O,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear),13},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(O,w){var y=this._validate(O,w,this.minDay,c.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===13&&this.leapYear(y.year())?1:0)},weekDay:function(O,w,y){return(this.dayOfWeek(O,w,y)||7)<6},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);return(O=p.year())<0&&O++,p.day()+30*(p.month()-1)+365*(O-1)+Math.floor(O/4)+this.jdEpoch-1},fromJD:function(O){var w=Math.floor(O)+.5-this.jdEpoch,y=Math.floor((w-Math.floor((w+366)/1461))/365)+1;y<=0&&y--,w=Math.floor(O)+.5-this.newDate(y,1,1).toJD();var p=Math.floor(w/30)+1,a=w-30*(p-1)+1;return this.newDate(y,p,a)}}),c.calendars.ethiopian=i},2084:function(d,l,n){var c=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}function O(w,y){return w-y*Math.floor(w/y)}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return this._leapYear(y.year())},_leapYear:function(w){return O(7*(w=w<0?w+1:w)+1,19)<7},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,c.local.invalidYear),this._leapYear(w.year?w.year():w)?13:12},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){return w=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear).year(),this.toJD(w===-1?1:w+1,7,1)-this.toJD(w,7,1)},daysInMonth:function(w,y){return w.year&&(y=w.month(),w=w.year()),this._validate(w,y,this.minDay,c.local.invalidMonth),y===12&&this.leapYear(w)||y===8&&O(this.daysInYear(w),10)===5?30:y===9&&O(this.daysInYear(w),10)===3?29:this.daysPerMonth[y-1]},weekDay:function(w,y,p){return this.dayOfWeek(w,y,p)!==6},extraInfo:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);w=a.year(),y=a.month(),p=a.day();var u=w<=0?w+1:w,h=this.jdEpoch+this._delay1(u)+this._delay2(u)+p+1;if(y<7){for(var m=7;m<=this.monthsInYear(w);m++)h+=this.daysInMonth(w,m);for(m=1;m=this.toJD(y===-1?1:y+1,7,1);)y++;for(var p=wthis.toJD(y,p,this.daysInMonth(y,p));)p++;var a=w-this.toJD(y,p,1)+1;return this.newDate(y,p,a)}}),c.calendars.hebrew=i},26368:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(O){return(11*this._validate(O,this.minMonth,this.minDay,c.local.invalidYear).year()+14)%30<11},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(O){return this.leapYear(O)?355:354},daysInMonth:function(O,w){var y=this._validate(O,w,this.minDay,c.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===12&&this.leapYear(y.year())?1:0)},weekDay:function(O,w,y){return this.dayOfWeek(O,w,y)!==5},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);return O=p.year(),w=p.month(),O=O<=0?O+1:O,(y=p.day())+Math.ceil(29.5*(w-1))+354*(O-1)+Math.floor((3+11*O)/30)+this.jdEpoch-1},fromJD:function(O){O=Math.floor(O)+.5;var w=Math.floor((30*(O-this.jdEpoch)+10646)/10631);w=w<=0?w-1:w;var y=Math.min(12,Math.ceil((O-29-this.toJD(w,1,1))/29.5)+1),p=O-this.toJD(w,y,1)+1;return this.newDate(w,y,p)}}),c.calendars.islamic=i},24747:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(O){var w=this._validate(O,this.minMonth,this.minDay,c.local.invalidYear);return(O=w.year()<0?w.year()+1:w.year())%4==0},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(O,w){var y=this._validate(O,w,this.minDay,c.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===2&&this.leapYear(y.year())?1:0)},weekDay:function(O,w,y){return(this.dayOfWeek(O,w,y)||7)<6},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);return O=p.year(),w=p.month(),y=p.day(),O<0&&O++,w<=2&&(O--,w+=12),Math.floor(365.25*(O+4716))+Math.floor(30.6001*(w+1))+y-1524.5},fromJD:function(O){var w=Math.floor(O+.5)+1524,y=Math.floor((w-122.1)/365.25),p=Math.floor(365.25*y),a=Math.floor((w-p)/30.6001),u=a-Math.floor(a<14?1:13),h=y-Math.floor(u>2?4716:4715),m=w-p-Math.floor(30.6001*a);return h<=0&&h--,this.newDate(h,u,m)}}),c.calendars.julian=i},65616:function(d,l,n){var c=n(38700),b=n(50896);function i(y){this.local=this.regionalOptions[y||""]||this.regionalOptions[""]}function O(y,p){return y-p*Math.floor(y/p)}function w(y,p){return O(y-1,p)+1}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(y){return this._validate(y,this.minMonth,this.minDay,c.local.invalidYear),!1},formatYear:function(y){y=this._validate(y,this.minMonth,this.minDay,c.local.invalidYear).year();var p=Math.floor(y/400);return y%=400,y+=y<0?400:0,p+"."+Math.floor(y/20)+"."+y%20},forYear:function(y){if((y=y.split(".")).length<3)throw"Invalid Mayan year";for(var p=0,a=0;a19||a>0&&u<0)throw"Invalid Mayan year";p=20*p+u}return p},monthsInYear:function(y){return this._validate(y,this.minMonth,this.minDay,c.local.invalidYear),18},weekOfYear:function(y,p,a){return this._validate(y,p,a,c.local.invalidDate),0},daysInYear:function(y){return this._validate(y,this.minMonth,this.minDay,c.local.invalidYear),360},daysInMonth:function(y,p){return this._validate(y,p,this.minDay,c.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(y,p,a){return this._validate(y,p,a,c.local.invalidDate).day()},weekDay:function(y,p,a){return this._validate(y,p,a,c.local.invalidDate),!0},extraInfo:function(y,p,a){var u=this._validate(y,p,a,c.local.invalidDate).toJD(),h=this._toHaab(u),m=this._toTzolkin(u);return{haabMonthName:this.local.haabMonths[h[0]-1],haabMonth:h[0],haabDay:h[1],tzolkinDayName:this.local.tzolkinMonths[m[0]-1],tzolkinDay:m[0],tzolkinTrecena:m[1]}},_toHaab:function(y){var p=O(8+(y-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,O(p,20)]},_toTzolkin:function(y){return[w(20+(y-=this.jdEpoch),20),w(y+4,13)]},toJD:function(y,p,a){var u=this._validate(y,p,a,c.local.invalidDate);return u.day()+20*u.month()+360*u.year()+this.jdEpoch},fromJD:function(y){y=Math.floor(y)+.5-this.jdEpoch;var p=Math.floor(y/360);y%=360,y+=y<0?360:0;var a=Math.floor(y/20),u=y%20;return this.newDate(p,a,u)}}),c.calendars.mayan=i},30632:function(d,l,n){var c=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar;var O=c.instance("gregorian");b(i.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return O.leapYear(y.year()+(y.year()<1?1:0)+1469)},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return(this.dayOfWeek(w,y,p)||7)<6},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidMonth);(w=a.year())<0&&w++;for(var u=a.day(),h=1;h=this.toJD(y+1,1,1);)y++;for(var p=w-Math.floor(this.toJD(y,1,1)+.5)+1,a=1;p>this.daysInMonth(y,a);)p-=this.daysInMonth(y,a),a++;return this.newDate(y,a,p)}}),c.calendars.nanakshahi=i},73040:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(O){return this.daysInYear(O)!==this.daysPerYear},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(O){if(O=this._validate(O,this.minMonth,this.minDay,c.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[O]===void 0)return this.daysPerYear;for(var w=0,y=this.minMonth;y<=12;y++)w+=this.NEPALI_CALENDAR_DATA[O][y];return w},daysInMonth:function(O,w){return O.year&&(w=O.month(),O=O.year()),this._validate(O,w,this.minDay,c.local.invalidMonth),this.NEPALI_CALENDAR_DATA[O]===void 0?this.daysPerMonth[w-1]:this.NEPALI_CALENDAR_DATA[O][w]},weekDay:function(O,w,y){return this.dayOfWeek(O,w,y)!==6},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);O=p.year(),w=p.month(),y=p.day();var a=c.instance(),u=0,h=w,m=O;this._createMissingCalendarData(O);var v=O-(h>9||h===9&&y>=this.NEPALI_CALENDAR_DATA[m][0]?56:57);for(w!==9&&(u=y,h--);h!==9;)h<=0&&(h=12,m--),u+=this.NEPALI_CALENDAR_DATA[m][h],h--;return w===9?(u+=y-this.NEPALI_CALENDAR_DATA[m][0])<0&&(u+=a.daysInYear(v)):u+=this.NEPALI_CALENDAR_DATA[m][9]-this.NEPALI_CALENDAR_DATA[m][0],a.newDate(v,1,1).add(u,"d").toJD()},fromJD:function(O){var w=c.instance().fromJD(O),y=w.year(),p=w.dayOfYear(),a=y+56;this._createMissingCalendarData(a);for(var u=9,h=this.NEPALI_CALENDAR_DATA[a][0],m=this.NEPALI_CALENDAR_DATA[a][u]-h+1;p>m;)++u>12&&(u=1,a++),m+=this.NEPALI_CALENDAR_DATA[a][u];var v=this.NEPALI_CALENDAR_DATA[a][u]-(m-p);return this.newDate(a,u,v)},_createMissingCalendarData:function(O){var w=this.daysPerMonth.slice(0);w.unshift(17);for(var y=O-1;y0?474:473))%2820+474+38)%2816<682},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(-(a.dayOfWeek()+1)%7,"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return this.dayOfWeek(w,y,p)!==5},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);w=a.year(),y=a.month(),p=a.day();var u=w-(w>=0?474:473),h=474+O(u,2820);return p+(y<=7?31*(y-1):30*(y-1)+6)+Math.floor((682*h-110)/2816)+365*(h-1)+1029983*Math.floor(u/2820)+this.jdEpoch-1},fromJD:function(w){var y=(w=Math.floor(w)+.5)-this.toJD(475,1,1),p=Math.floor(y/1029983),a=O(y,1029983),u=2820;if(a!==1029982){var h=Math.floor(a/366),m=O(a,366);u=Math.floor((2134*h+2816*m+2815)/1028522)+h+1}var v=u+2820*p+474;v=v<=0?v-1:v;var _=w-this.toJD(v,1,1)+1,S=_<=186?Math.ceil(_/31):Math.ceil((_-6)/30),A=w-this.toJD(v,S,1)+1;return this.newDate(v,S,A)}}),c.calendars.persian=i,c.calendars.jalali=i},51456:function(d,l,n){var c=n(38700),b=n(50896),i=c.instance();function O(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}O.prototype=new c.baseCalendar,b(O.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,p){var a=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return(this.dayOfWeek(w,y,p)||7)<6},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),p=this._g2tYear(y.year());return this.newDate(p,y.month(),y.day())},_t2gYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)},_g2tYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)}}),c.calendars.taiwan=O},4592:function(d,l,n){var c=n(38700),b=n(50896),i=c.instance();function O(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}O.prototype=new c.baseCalendar,b(O.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,p){var a=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return(this.dayOfWeek(w,y,p)||7)<6},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),p=this._g2tYear(y.year());return this.newDate(p,y.month(),y.day())},_t2gYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)},_g2tYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)}}),c.calendars.thai=O},45348:function(d,l,n){var c=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return this.daysInYear(y.year())===355},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){for(var y=0,p=1;p<=12;p++)y+=this.daysInMonth(w,p);return y},daysInMonth:function(w,y){for(var p=this._validate(w,y,this.minDay,c.local.invalidMonth).toJD()-24e5+.5,a=0,u=0;up)return O[a]-O[a-1];a++}return 30},weekDay:function(w,y,p){return this.dayOfWeek(w,y,p)!==5},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate),u=12*(a.year()-1)+a.month()-15292;return a.day()+O[u-1]-1+24e5-.5},fromJD:function(w){for(var y=w-24e5+.5,p=0,a=0;ay);a++)p++;var u=p+15292,h=Math.floor((u-1)/12),m=h+1,v=u-12*h,_=y-O[p-1]+1;return this.newDate(m,v,_)},isValid:function(w,y,p){var a=c.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(w=w.year!=null?w.year:w)>=1276&&w<=1500),a},_validate:function(w,y,p,a){var u=c.baseCalendar.prototype._validate.apply(this,arguments);if(u.year<1276||u.year>1500)throw a.replace(/\{0\}/,this.local.name);return u}}),c.calendars.ummalqura=i;var O=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(d,l,n){var c=n(50896);function b(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(a,u,h,m){if(this._calendar=a,this._year=u,this._month=h,this._day=m,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function O(a,u){return"000000".substring(0,u-(a=""+a).length)+a}function w(){this.shortYearCutoff="+10"}function y(a){this.local=this.regionalOptions[a]||this.regionalOptions[""]}c(b.prototype,{instance:function(a,u){a=(a||"gregorian").toLowerCase(),u=u||"";var h=this._localCals[a+"-"+u];if(!h&&this.calendars[a]&&(h=new this.calendars[a](u),this._localCals[a+"-"+u]=h),!h)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,a);return h},newDate:function(a,u,h,m,v){return(m=(a!=null&&a.year?a.calendar():typeof m=="string"?this.instance(m,v):m)||this.instance()).newDate(a,u,h)},substituteDigits:function(a){return function(u){return(u+"").replace(/[0-9]/g,function(h){return a[h]})}},substituteChineseDigits:function(a,u){return function(h){for(var m="",v=0;h>0;){var _=h%10;m=(_===0?"":a[_]+u[v])+m,v++,h=Math.floor(h/10)}return m.indexOf(a[1]+u[1])===0&&(m=m.substr(1)),m||a[0]}}}),c(i.prototype,{newDate:function(a,u,h){return this._calendar.newDate(a??this,u,h)},year:function(a){return arguments.length===0?this._year:this.set(a,"y")},month:function(a){return arguments.length===0?this._month:this.set(a,"m")},day:function(a){return arguments.length===0?this._day:this.set(a,"d")},date:function(a,u,h){if(!this._calendar.isValid(a,u,h))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=a,this._month=u,this._day=h,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(a,u){return this._calendar.add(this,a,u)},set:function(a,u){return this._calendar.set(this,a,u)},compareTo:function(a){if(this._calendar.name!==a._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,a._calendar.local.name);var u=this._year!==a._year?this._year-a._year:this._month!==a._month?this.monthOfYear()-a.monthOfYear():this._day-a._day;return u===0?0:u<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(a){return this._calendar.fromJD(a)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(a){return this._calendar.fromJSDate(a)},toString:function(){return(this.year()<0?"-":"")+O(Math.abs(this.year()),4)+"-"+O(this.month(),2)+"-"+O(this.day(),2)}}),c(w.prototype,{_validateLevel:0,newDate:function(a,u,h){return a==null?this.today():(a.year&&(this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate),h=a.day(),u=a.month(),a=a.year()),new i(this,a,u,h))},today:function(){return this.fromJSDate(new Date)},epoch:function(a){return this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(a){var u=this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(u.year()<0?"-":"")+O(Math.abs(u.year()),4)},monthsInYear:function(a){return this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(a,u){var h=this._validate(a,u,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(h.month()+this.monthsInYear(h)-this.firstMonth)%this.monthsInYear(h)+this.minMonth},fromMonthOfYear:function(a,u){var h=(u+this.firstMonth-2*this.minMonth)%this.monthsInYear(a)+this.minMonth;return this._validate(a,h,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),h},daysInYear:function(a){var u=this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(u)?366:365},dayOfYear:function(a,u,h){var m=this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate);return m.toJD()-this.newDate(m.year(),this.fromMonthOfYear(m.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(a,u,h){var m=this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(m))+2)%this.daysInWeek()},extraInfo:function(a,u,h){return this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(a,u,h){return this._validate(a,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(a,this._add(a,u,h),u,h)},_add:function(a,u,h){if(this._validateLevel++,h==="d"||h==="w"){var m=a.toJD()+u*(h==="w"?this.daysInWeek():1),v=a.calendar().fromJD(m);return this._validateLevel--,[v.year(),v.month(),v.day()]}try{var _=a.year()+(h==="y"?u:0),S=a.monthOfYear()+(h==="m"?u:0);v=a.day(),h==="y"?(a.month()!==this.fromMonthOfYear(_,S)&&(S=this.newDate(_,a.month(),this.minDay).monthOfYear()),S=Math.min(S,this.monthsInYear(_)),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,S)))):h==="m"&&(function(x){for(;SR-1+x.minMonth;)_++,S-=R,R=x.monthsInYear(_)}(this),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,S))));var A=[_,this.fromMonthOfYear(_,S),v];return this._validateLevel--,A}catch(x){throw this._validateLevel--,x}},_correctAdd:function(a,u,h,m){if(!(this.hasYearZero||m!=="y"&&m!=="m"||u[0]!==0&&a.year()>0==u[0]>0)){var v={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[m],_=h<0?-1:1;u=this._add(a,h*v[0]+_*v[1],v[2])}return a.date(u[0],u[1],u[2])},set:function(a,u,h){this._validate(a,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var m=h==="y"?u:a.year(),v=h==="m"?u:a.month(),_=h==="d"?u:a.day();return h!=="y"&&h!=="m"||(_=Math.min(_,this.daysInMonth(m,v))),a.date(m,v,_)},isValid:function(a,u,h){this._validateLevel++;var m=this.hasYearZero||a!==0;if(m){var v=this.newDate(a,u,this.minDay);m=u>=this.minMonth&&u-this.minMonth=this.minDay&&h-this.minDay13.5?13:1),R=v-(x>2.5?4716:4715);return R<=0&&R--,this.newDate(R,x,A)},toJSDate:function(a,u,h){var m=this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=new Date(m.year(),m.month()-1,m.day());return v.setHours(0),v.setMinutes(0),v.setSeconds(0),v.setMilliseconds(0),v.setHours(v.getHours()>12?v.getHours()+2:0),v},fromJSDate:function(a){return this.newDate(a.getFullYear(),a.getMonth()+1,a.getDate())}});var p=d.exports=new b;p.cdate=i,p.baseCalendar=w,p.calendars.gregorian=y},15168:function(d,l,n){var c=n(50896),b=n(38700);c(b.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),b.local=b.regionalOptions[""],c(b.cdate.prototype,{formatDate:function(i,O){return typeof i!="string"&&(O=i,i=""),this._calendar.formatDate(i||"",this,O)}}),c(b.baseCalendar.prototype,{UNIX_EPOCH:b.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:b.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(i,O,w){if(typeof i!="string"&&(w=O,O=i,i=""),!O)return"";if(O.calendar()!==this)throw b.local.invalidFormat||b.regionalOptions[""].invalidFormat;i=i||this.local.dateFormat;for(var y,p,a,u=(w=w||{}).dayNamesShort||this.local.dayNamesShort,h=w.dayNames||this.local.dayNames,m=w.monthNumbers||this.local.monthNumbers,v=w.monthNamesShort||this.local.monthNamesShort,_=w.monthNames||this.local.monthNames,S=(w.calculateWeek||this.local.calculateWeek,function(k,I){for(var z=1;D+z1}),A=function(k,I,z,$){var Q=""+I;if(S(k,$))for(;Q.length1},C=function(X,te){var W=E(X,te),K=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],oe=new RegExp("^-?\\d{1,"+K+"}"),q=O.substring($).match(oe);if(!q)throw(b.local.missingNumberAt||b.regionalOptions[""].missingNumberAt).replace(/\{0\}/,$);return $+=q[0].length,parseInt(q[0],10)},L=this,D=function(){if(typeof h=="function"){E("m");var X=h.call(L,O.substring($));return $+=X.length,X}return C("m")},k=function(X,te,W,K){for(var oe=E(X,K)?W:te,q=0;q-1){A=1,x=R;for(var U=this.daysInMonth(S,A);x>U;U=this.daysInMonth(S,A))A++,x-=U}return _>-1?this.fromJD(_):this.newDate(S,A,x)},determineDate:function(i,O,w,y,p){w&&typeof w!="object"&&(p=y,y=w,w=null),typeof y!="string"&&(p=y,y="");var a=this;return O=O?O.newDate():null,i==null?O:typeof i=="string"?function(u){try{return a.parseDate(y,u,p)}catch{}for(var h=((u=u.toLowerCase()).match(/^c/)&&w?w.newDate():null)||a.today(),m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,v=m.exec(u);v;)h.add(parseInt(v[1],10),v[2]||"d"),v=m.exec(u);return h}(i):typeof i=="number"?isNaN(i)||i===1/0||i===-1/0?O:a.today().add(i,"d"):a.newDate(i)}})},21576:function(){},19768:function(){},63436:function(d,l,n){var c=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],b=typeof globalThis>"u"?n.g:globalThis;d.exports=function(){for(var i=[],O=0;O>8&15|Pe>>4&240,Pe>>4&15|240&Pe,(15&Pe)<<4|15&Pe,1):Ie===8?C(Pe>>24&255,Pe>>16&255,Pe>>8&255,(255&Pe)/255):Ie===4?C(Pe>>12&15|Pe>>8&240,Pe>>8&15|Pe>>4&240,Pe>>4&15|240&Pe,((15&Pe)<<4|15&Pe)/255):null):(Pe=h.exec(Te))?new D(Pe[1],Pe[2],Pe[3],1):(Pe=m.exec(Te))?new D(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,1):(Pe=v.exec(Te))?C(Pe[1],Pe[2],Pe[3],Pe[4]):(Pe=_.exec(Te))?C(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,Pe[4]):(Pe=S.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,1):(Pe=A.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,Pe[4]):x.hasOwnProperty(Te)?E(x[Te]):Te==="transparent"?new D(NaN,NaN,NaN,0):null}function E(Te){return new D(Te>>16&255,Te>>8&255,255&Te,1)}function C(Te,Pe,Ie,ze){return ze<=0&&(Te=Pe=Ie=NaN),new D(Te,Pe,Ie,ze)}function L(Te,Pe,Ie,ze){return arguments.length===1?((De=Te)instanceof i||(De=T(De)),De?new D((De=De.rgb()).r,De.g,De.b,De.opacity):new D):new D(Te,Pe,Ie,ze??1);var De}function D(Te,Pe,Ie,ze){this.r=+Te,this.g=+Pe,this.b=+Ie,this.opacity=+ze}function k(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b))}function I(){var Te=z(this.opacity);return"".concat(Te===1?"rgb(":"rgba(").concat($(this.r),", ").concat($(this.g),", ").concat($(this.b)).concat(Te===1?")":", ".concat(Te,")"))}function z(Te){return isNaN(Te)?1:Math.max(0,Math.min(1,Te))}function $(Te){return Math.max(0,Math.min(255,Math.round(Te)||0))}function Q(Te){return((Te=$(Te))<16?"0":"")+Te.toString(16)}function j(Te,Pe,Ie,ze){return ze<=0?Te=Pe=Ie=NaN:Ie<=0||Ie>=1?Te=Pe=NaN:Pe<=0&&(Te=NaN),new X(Te,Pe,Ie,ze)}function U(Te){if(Te instanceof X)return new X(Te.h,Te.s,Te.l,Te.opacity);if(Te instanceof i||(Te=T(Te)),!Te)return new X;if(Te instanceof X)return Te;var Pe=(Te=Te.rgb()).r/255,Ie=Te.g/255,ze=Te.b/255,De=Math.min(Pe,Ie,ze),He=Math.max(Pe,Ie,ze),Ve=NaN,$e=He-De,Oe=(He+De)/2;return $e?(Ve=Pe===He?(Ie-ze)/$e+6*(Ie0&&Oe<1?0:Ve,new X(Ve,$e,Oe,Te.opacity)}function X(Te,Pe,Ie,ze){this.h=+Te,this.s=+Pe,this.l=+Ie,this.opacity=+ze}function te(Te){return(Te=(Te||0)%360)<0?Te+360:Te}function W(Te){return Math.max(0,Math.min(1,Te||0))}function K(Te,Pe,Ie){return 255*(Te<60?Pe+(Ie-Pe)*Te/60:Te<180?Ie:Te<240?Pe+(Ie-Pe)*(240-Te)/60:Pe)}c(i,T,{copy:function(Te){return Object.assign(new this.constructor,this,Te)},displayable:function(){return this.rgb().displayable()},hex:R,formatHex:R,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return U(this).formatHsl()},formatRgb:M,toString:M}),c(D,L,b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},darker:function(Te){return Te=Te==null?O:Math.pow(O,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},rgb:function(){return this},clamp:function(){return new D($(this.r),$(this.g),$(this.b),z(this.opacity))},displayable:function(){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:k,formatHex:k,formatHex8:function(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b)).concat(Q(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:I,toString:I})),c(X,function(Te,Pe,Ie,ze){return arguments.length===1?U(Te):new X(Te,Pe,Ie,ze??1)},b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new X(this.h,this.s,this.l*Te,this.opacity)},darker:function(Te){return Te=Te==null?O:Math.pow(O,Te),new X(this.h,this.s,this.l*Te,this.opacity)},rgb:function(){var Te=this.h%360+360*(this.h<0),Pe=isNaN(Te)||isNaN(this.s)?0:this.s,Ie=this.l,ze=Ie+(Ie<.5?Ie:1-Ie)*Pe,De=2*Ie-ze;return new D(K(Te>=240?Te-240:Te+120,De,ze),K(Te,De,ze),K(Te<120?Te+240:Te-120,De,ze),this.opacity)},clamp:function(){return new X(te(this.h),W(this.s),W(this.l),z(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var Te=z(this.opacity);return"".concat(Te===1?"hsl(":"hsla(").concat(te(this.h),", ").concat(100*W(this.s),"%, ").concat(100*W(this.l),"%").concat(Te===1?")":", ".concat(Te,")"))}}));var oe=function(Te){return function(){return Te}};function q(Te,Pe){var Ie=Pe-Te;return Ie?function(ze,De){return function(He){return ze+He*De}}(Te,Ie):oe(isNaN(Te)?Pe:Te)}var Y=function Te(Pe){var Ie=function(De){return(De=+De)==1?q:function(He,Ve){return Ve-He?function($e,Oe,ke){return $e=Math.pow($e,ke),Oe=Math.pow(Oe,ke)-$e,ke=1/ke,function(Le){return Math.pow($e+Le*Oe,ke)}}(He,Ve,De):oe(isNaN(He)?Ve:He)}}(Pe);function ze(De,He){var Ve=Ie((De=L(De)).r,(He=L(He)).r),$e=Ie(De.g,He.g),Oe=Ie(De.b,He.b),ke=q(De.opacity,He.opacity);return function(Le){return De.r=Ve(Le),De.g=$e(Le),De.b=Oe(Le),De.opacity=ke(Le),De+""}}return ze.gamma=Te,ze}(1);function ee(Te,Pe){var Ie,ze=Pe?Pe.length:0,De=Te?Math.min(ze,Te.length):0,He=new Array(De),Ve=new Array(ze);for(Ie=0;IeHe&&(De=Pe.slice(He,De),$e[Ve]?$e[Ve]+=De:$e[++Ve]=De),(Ie=Ie[0])===(ze=ze[0])?$e[Ve]?$e[Ve]+=ze:$e[++Ve]=ze:($e[++Ve]=null,Oe.push({i:Ve,x:he(Ie,ze)})),He=de.lastIndex;return He{const f=document.getElementById(t.id);f&&vhe.Plots.resize(f)},o=f=>{const P=JSON.parse(f);vhe.react(t.id,P.data,P.layout)};ag(()=>{o(t.figureJson),window.addEventListener("resize",e)}),Nle(()=>{window.removeEventListener("resize",e)}),Ni(()=>t.figureJson,f=>{o(f)})}}),hm=(t,e)=>{const o=t.__vccOpts||t;for(const[f,P]of e)o[f]=P;return o},qke=["id"];function Wke(t,e,o,f,P,d){return Bo(),Da("div",{id:t.id,style:{height:"100%",width:"100%"}},null,8,qke)}const Kle=hm(Zke,[["render",Wke]]);class ru{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,o,f){let P=[];return this.decompose(0,e,P,2),f.length&&f.decompose(0,f.length,P,3),this.decompose(o,this.length,P,1),n_.from(P,this.length-(o-e)+f.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,o=this.length){let f=[];return this.decompose(e,o,f,0),n_.from(f,o-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let o=this.scanIdentical(e,1),f=this.length-this.scanIdentical(e,-1),P=new sI(this),d=new sI(e);for(let l=o,n=o;;){if(P.next(l),d.next(l),l=0,P.lineBreak!=d.lineBreak||P.done!=d.done||P.value!=d.value)return!1;if(n+=P.value.length,P.done||n>=f)return!0}}iter(e=1){return new sI(this,e)}iterRange(e,o=this.length){return new _ve(this,e,o)}iterLines(e,o){let f;if(e==null)f=this.iter();else{o==null&&(o=this.lines+1);let P=this.line(e).from;f=this.iterRange(P,Math.max(P,o==this.lines+1?this.length:o<=1?0:this.line(o-1).to))}return new wve(f)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ru.empty:e.length<=32?new Fh(e):n_.from(Fh.split(e,[]))}}class Fh extends ru{constructor(e,o=Yke(e)){super(),this.text=e,this.length=o}get lines(){return this.text.length}get children(){return null}lineInner(e,o,f,P){for(let d=0;;d++){let l=this.text[d],n=P+l.length;if((o?f:n)>=e)return new Xke(P,n,f,l);P=n+1,f++}}decompose(e,o,f,P){let d=e<=0&&o>=this.length?this:new Fh(yhe(this.text,e,o),Math.min(o,this.length)-Math.max(0,e));if(P&1){let l=f.pop(),n=fH(d.text,l.text.slice(),0,d.length);if(n.length<=32)f.push(new Fh(n,l.length+d.length));else{let c=n.length>>1;f.push(new Fh(n.slice(0,c)),new Fh(n.slice(c)))}}else f.push(d)}replace(e,o,f){if(!(f instanceof Fh))return super.replace(e,o,f);let P=fH(this.text,fH(f.text,yhe(this.text,0,e)),o),d=this.length+f.length-(o-e);return P.length<=32?new Fh(P,d):n_.from(Fh.split(P,[]),d)}sliceString(e,o=this.length,f=` +`)):Y=U.stylize("[Circular]","special")),M(q)){if(oe&&K.match(/^\d+$/))return Y;(q=JSON.stringify(""+K)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=U.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=U.stylize(q,"string"))}return q+": "+Y}function _(U){return Array.isArray(U)}function S(U){return typeof U=="boolean"}function A(U){return U===null}function x(U){return typeof U=="number"}function R(U){return typeof U=="string"}function M(U){return U===void 0}function T(U){return E(U)&&k(U)==="[object RegExp]"}function E(U){return typeof U=="object"&&U!==null}function C(U){return E(U)&&k(U)==="[object Date]"}function L(U){return E(U)&&(k(U)==="[object Error]"||U instanceof Error)}function D(U){return typeof U=="function"}function k(U){return Object.prototype.toString.call(U)}function I(U){return U<10?"0"+U.toString(10):U.toString(10)}l.debuglog=function(U){if(U=U.toUpperCase(),!O[U])if(w.test(U)){var X=c.pid;O[U]=function(){var te=l.format.apply(l,arguments);console.error("%s %d: %s",U,X,te)}}else O[U]=function(){};return O[U]},l.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},l.types=n(41088),l.isArray=_,l.isBoolean=S,l.isNull=A,l.isNullOrUndefined=function(U){return U==null},l.isNumber=x,l.isString=R,l.isSymbol=function(U){return typeof U=="symbol"},l.isUndefined=M,l.isRegExp=T,l.types.isRegExp=T,l.isObject=E,l.isDate=C,l.types.isDate=C,l.isError=L,l.types.isNativeError=L,l.isFunction=D,l.isPrimitive=function(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||U===void 0},l.isBuffer=n(75272);var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $(U,X){return Object.prototype.hasOwnProperty.call(U,X)}l.log=function(){var U,X;console.log("%s - %s",(X=[I((U=new Date).getHours()),I(U.getMinutes()),I(U.getSeconds())].join(":"),[U.getDate(),z[U.getMonth()],X].join(" ")),l.format.apply(l,arguments))},l.inherits=n(6768),l._extend=function(U,X){if(!X||!E(X))return U;for(var te=Object.keys(X),W=te.length;W--;)U[te[W]]=X[te[W]];return U};var Q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function j(U,X){if(!U){var te=new Error("Promise was rejected with a falsy value");te.reason=U,U=te}return X(U)}l.promisify=function(U){if(typeof U!="function")throw new TypeError('The "original" argument must be of type Function');if(Q&&U[Q]){var X;if(typeof(X=U[Q])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,Q,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var te,W,K=new Promise(function(Y,ee){te=Y,W=ee}),oe=[],q=0;q"u"?n.g:globalThis,u=b(),h=O("String.prototype.slice"),m=Object.getPrototypeOf,v=O("Array.prototype.indexOf",!0)||function(S,A){for(var x=0;x-1?A:A==="Object"&&function(x){var R=!1;return c(_,function(M,T){if(!R)try{M(x),R=h(T,1)}catch{}}),R}(S)}return w?function(x){var R=!1;return c(_,function(M,T){if(!R)try{"$"+M(x)===T&&(R=h(T,1))}catch{}}),R}(S):null}},67020:function(d,l,n){var c=n(38700),b=n(50896),i=c.instance();function O(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}O.prototype=new c.baseCalendar,b(O.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(m,v){if(typeof m=="string"){var _=m.match(y);return _?_[0]:""}var S=this._validateYear(m),A=m.month(),x=""+this.toChineseMonth(S,A);return v&&x.length<2&&(x="0"+x),this.isIntercalaryMonth(S,A)&&(x+="i"),x},monthNames:function(m){if(typeof m=="string"){var v=m.match(p);return v?v[0]:""}var _=this._validateYear(m),S=m.month(),A=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(_,S)-1];return this.isIntercalaryMonth(_,S)&&(A="闰"+A),A},monthNamesShort:function(m){if(typeof m=="string"){var v=m.match(a);return v?v[0]:""}var _=this._validateYear(m),S=m.month(),A=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(_,S)-1];return this.isIntercalaryMonth(_,S)&&(A="闰"+A),A},parseMonth:function(m,v){m=this._validateYear(m);var _,S=parseInt(v);if(isNaN(S))v[0]==="闰"&&(_=!0,v=v.substring(1)),v[v.length-1]==="月"&&(v=v.substring(0,v.length-1)),S=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(v);else{var A=v[v.length-1];_=A==="i"||A==="I"}return this.toMonthIndex(m,S,_)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(m,v){if(m.year&&(m=m.year()),typeof m!="number"||m<1888||m>2111)throw v.replace(/\{0\}/,this.local.name);return m},toMonthIndex:function(m,v,_){var S=this.intercalaryMonth(m);if(_&&v!==S||v<1||v>12)throw c.local.invalidMonth.replace(/\{0\}/,this.local.name);return S?!_&&v<=S?v-1:v:v-1},toChineseMonth:function(m,v){m.year&&(v=(m=m.year()).month());var _=this.intercalaryMonth(m);if(v<0||v>(_?12:11))throw c.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?v<_?v+1:v:v+1},intercalaryMonth:function(m){return m=this._validateYear(m),u[m-u[0]]>>13},isIntercalaryMonth:function(m,v){m.year&&(v=(m=m.year()).month());var _=this.intercalaryMonth(m);return!!_&&_===v},leapYear:function(m){return this.intercalaryMonth(m)!==0},weekOfYear:function(m,v,_){var S,A=this._validateYear(m,c.local.invalidyear),x=h[A-h[0]],R=x>>9&4095,M=x>>5&15,T=31&x;(S=i.newDate(R,M,T)).add(4-(S.dayOfWeek()||7),"d");var E=this.toJD(m,v,_)-S.toJD();return 1+Math.floor(E/7)},monthsInYear:function(m){return this.leapYear(m)?13:12},daysInMonth:function(m,v){m.year&&(v=m.month(),m=m.year()),m=this._validateYear(m);var _=u[m-u[0]];if(v>(_>>13?12:11))throw c.local.invalidMonth.replace(/\{0\}/,this.local.name);return _&1<<12-v?30:29},weekDay:function(m,v,_){return(this.dayOfWeek(m,v,_)||7)<6},toJD:function(m,v,_){var S=this._validate(m,x,_,c.local.invalidDate);m=this._validateYear(S.year()),v=S.month(),_=S.day();var A=this.isIntercalaryMonth(m,v),x=this.toChineseMonth(m,v),R=function(M,T,E,C,L){var D,k,I;if(typeof M=="object")k=M,D=T||{};else{var z;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof E=="number"&&E>=1&&E<=30))throw new Error("Lunar day outside range 1 - 30");typeof C=="object"?(z=!1,D=C):(z=!!C,D={}),k={year:M,month:T,day:E,isIntercalary:z}}I=k.day-1;var $,Q=u[k.year-u[0]],j=Q>>13;$=j&&(k.month>j||k.isIntercalary)?k.month:k.month-1;for(var U=0;U<$;U++)I+=Q&1<<12-U?30:29;var X=h[k.year-h[0]],te=new Date(X>>9&4095,(X>>5&15)-1,(31&X)+I);return D.year=te.getFullYear(),D.month=1+te.getMonth(),D.day=te.getDate(),D}(m,x,_,A);return i.toJD(R.year,R.month,R.day)},fromJD:function(m){var v=i.fromJD(m),_=function(A,x,R,M){var T,E;if(typeof A=="object")T=A,E=x||{};else{if(!(typeof A=="number"&&A>=1888&&A<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof x=="number"&&x>=1&&x<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof R=="number"&&R>=1&&R<=31))throw new Error("Solar day outside range 1 - 31");T={year:A,month:x,day:R},E={}}var C=h[T.year-h[0]],L=T.year<<9|T.month<<5|T.day;E.year=L>=C?T.year:T.year-1,C=h[E.year-h[0]];var D,k=new Date(C>>9&4095,(C>>5&15)-1,31&C),I=new Date(T.year,T.month-1,T.day);D=Math.round((I-k)/864e5);var z,$=u[E.year-u[0]];for(z=0;z<13;z++){var Q=$&1<<12-z?30:29;if(D>13;return!j||z=2&&a<=6},extraInfo:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return{century:O[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return w=a.year()+(a.year()<0?1:0),y=a.month(),(p=a.day())+(y>1?16:0)+(y>2?32*(y-2):0)+400*(w-1)+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w+.5)-Math.floor(this.jdEpoch)-1;var y=Math.floor(w/400)+1;w-=400*(y-1),w+=w>15?16:0;var p=Math.floor(w/32)+1,a=w-32*(p-1)+1;return this.newDate(y<=0?y-1:y,p,a)}});var O={20:"Fruitbat",21:"Anchovy"};c.calendars.discworld=i},65168:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(O){var w=this._validate(O,this.minMonth,this.minDay,c.local.invalidYear);return(O=w.year()+(w.year()<0?1:0))%4==3||O%4==-1},monthsInYear:function(O){return this._validate(O,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear),13},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(O,w){var y=this._validate(O,w,this.minDay,c.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===13&&this.leapYear(y.year())?1:0)},weekDay:function(O,w,y){return(this.dayOfWeek(O,w,y)||7)<6},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);return(O=p.year())<0&&O++,p.day()+30*(p.month()-1)+365*(O-1)+Math.floor(O/4)+this.jdEpoch-1},fromJD:function(O){var w=Math.floor(O)+.5-this.jdEpoch,y=Math.floor((w-Math.floor((w+366)/1461))/365)+1;y<=0&&y--,w=Math.floor(O)+.5-this.newDate(y,1,1).toJD();var p=Math.floor(w/30)+1,a=w-30*(p-1)+1;return this.newDate(y,p,a)}}),c.calendars.ethiopian=i},2084:function(d,l,n){var c=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}function O(w,y){return w-y*Math.floor(w/y)}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return this._leapYear(y.year())},_leapYear:function(w){return O(7*(w=w<0?w+1:w)+1,19)<7},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,c.local.invalidYear),this._leapYear(w.year?w.year():w)?13:12},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){return w=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear).year(),this.toJD(w===-1?1:w+1,7,1)-this.toJD(w,7,1)},daysInMonth:function(w,y){return w.year&&(y=w.month(),w=w.year()),this._validate(w,y,this.minDay,c.local.invalidMonth),y===12&&this.leapYear(w)||y===8&&O(this.daysInYear(w),10)===5?30:y===9&&O(this.daysInYear(w),10)===3?29:this.daysPerMonth[y-1]},weekDay:function(w,y,p){return this.dayOfWeek(w,y,p)!==6},extraInfo:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);w=a.year(),y=a.month(),p=a.day();var u=w<=0?w+1:w,h=this.jdEpoch+this._delay1(u)+this._delay2(u)+p+1;if(y<7){for(var m=7;m<=this.monthsInYear(w);m++)h+=this.daysInMonth(w,m);for(m=1;m=this.toJD(y===-1?1:y+1,7,1);)y++;for(var p=wthis.toJD(y,p,this.daysInMonth(y,p));)p++;var a=w-this.toJD(y,p,1)+1;return this.newDate(y,p,a)}}),c.calendars.hebrew=i},26368:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(O){return(11*this._validate(O,this.minMonth,this.minDay,c.local.invalidYear).year()+14)%30<11},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(O){return this.leapYear(O)?355:354},daysInMonth:function(O,w){var y=this._validate(O,w,this.minDay,c.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===12&&this.leapYear(y.year())?1:0)},weekDay:function(O,w,y){return this.dayOfWeek(O,w,y)!==5},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);return O=p.year(),w=p.month(),O=O<=0?O+1:O,(y=p.day())+Math.ceil(29.5*(w-1))+354*(O-1)+Math.floor((3+11*O)/30)+this.jdEpoch-1},fromJD:function(O){O=Math.floor(O)+.5;var w=Math.floor((30*(O-this.jdEpoch)+10646)/10631);w=w<=0?w-1:w;var y=Math.min(12,Math.ceil((O-29-this.toJD(w,1,1))/29.5)+1),p=O-this.toJD(w,y,1)+1;return this.newDate(w,y,p)}}),c.calendars.islamic=i},24747:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(O){var w=this._validate(O,this.minMonth,this.minDay,c.local.invalidYear);return(O=w.year()<0?w.year()+1:w.year())%4==0},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(O,w){var y=this._validate(O,w,this.minDay,c.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===2&&this.leapYear(y.year())?1:0)},weekDay:function(O,w,y){return(this.dayOfWeek(O,w,y)||7)<6},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);return O=p.year(),w=p.month(),y=p.day(),O<0&&O++,w<=2&&(O--,w+=12),Math.floor(365.25*(O+4716))+Math.floor(30.6001*(w+1))+y-1524.5},fromJD:function(O){var w=Math.floor(O+.5)+1524,y=Math.floor((w-122.1)/365.25),p=Math.floor(365.25*y),a=Math.floor((w-p)/30.6001),u=a-Math.floor(a<14?1:13),h=y-Math.floor(u>2?4716:4715),m=w-p-Math.floor(30.6001*a);return h<=0&&h--,this.newDate(h,u,m)}}),c.calendars.julian=i},65616:function(d,l,n){var c=n(38700),b=n(50896);function i(y){this.local=this.regionalOptions[y||""]||this.regionalOptions[""]}function O(y,p){return y-p*Math.floor(y/p)}function w(y,p){return O(y-1,p)+1}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(y){return this._validate(y,this.minMonth,this.minDay,c.local.invalidYear),!1},formatYear:function(y){y=this._validate(y,this.minMonth,this.minDay,c.local.invalidYear).year();var p=Math.floor(y/400);return y%=400,y+=y<0?400:0,p+"."+Math.floor(y/20)+"."+y%20},forYear:function(y){if((y=y.split(".")).length<3)throw"Invalid Mayan year";for(var p=0,a=0;a19||a>0&&u<0)throw"Invalid Mayan year";p=20*p+u}return p},monthsInYear:function(y){return this._validate(y,this.minMonth,this.minDay,c.local.invalidYear),18},weekOfYear:function(y,p,a){return this._validate(y,p,a,c.local.invalidDate),0},daysInYear:function(y){return this._validate(y,this.minMonth,this.minDay,c.local.invalidYear),360},daysInMonth:function(y,p){return this._validate(y,p,this.minDay,c.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(y,p,a){return this._validate(y,p,a,c.local.invalidDate).day()},weekDay:function(y,p,a){return this._validate(y,p,a,c.local.invalidDate),!0},extraInfo:function(y,p,a){var u=this._validate(y,p,a,c.local.invalidDate).toJD(),h=this._toHaab(u),m=this._toTzolkin(u);return{haabMonthName:this.local.haabMonths[h[0]-1],haabMonth:h[0],haabDay:h[1],tzolkinDayName:this.local.tzolkinMonths[m[0]-1],tzolkinDay:m[0],tzolkinTrecena:m[1]}},_toHaab:function(y){var p=O(8+(y-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,O(p,20)]},_toTzolkin:function(y){return[w(20+(y-=this.jdEpoch),20),w(y+4,13)]},toJD:function(y,p,a){var u=this._validate(y,p,a,c.local.invalidDate);return u.day()+20*u.month()+360*u.year()+this.jdEpoch},fromJD:function(y){y=Math.floor(y)+.5-this.jdEpoch;var p=Math.floor(y/360);y%=360,y+=y<0?360:0;var a=Math.floor(y/20),u=y%20;return this.newDate(p,a,u)}}),c.calendars.mayan=i},30632:function(d,l,n){var c=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar;var O=c.instance("gregorian");b(i.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return O.leapYear(y.year()+(y.year()<1?1:0)+1469)},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return(this.dayOfWeek(w,y,p)||7)<6},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidMonth);(w=a.year())<0&&w++;for(var u=a.day(),h=1;h=this.toJD(y+1,1,1);)y++;for(var p=w-Math.floor(this.toJD(y,1,1)+.5)+1,a=1;p>this.daysInMonth(y,a);)p-=this.daysInMonth(y,a),a++;return this.newDate(y,a,p)}}),c.calendars.nanakshahi=i},73040:function(d,l,n){var c=n(38700),b=n(50896);function i(O){this.local=this.regionalOptions[O||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(O){return this.daysInYear(O)!==this.daysPerYear},weekOfYear:function(O,w,y){var p=this.newDate(O,w,y);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(O){if(O=this._validate(O,this.minMonth,this.minDay,c.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[O]===void 0)return this.daysPerYear;for(var w=0,y=this.minMonth;y<=12;y++)w+=this.NEPALI_CALENDAR_DATA[O][y];return w},daysInMonth:function(O,w){return O.year&&(w=O.month(),O=O.year()),this._validate(O,w,this.minDay,c.local.invalidMonth),this.NEPALI_CALENDAR_DATA[O]===void 0?this.daysPerMonth[w-1]:this.NEPALI_CALENDAR_DATA[O][w]},weekDay:function(O,w,y){return this.dayOfWeek(O,w,y)!==6},toJD:function(O,w,y){var p=this._validate(O,w,y,c.local.invalidDate);O=p.year(),w=p.month(),y=p.day();var a=c.instance(),u=0,h=w,m=O;this._createMissingCalendarData(O);var v=O-(h>9||h===9&&y>=this.NEPALI_CALENDAR_DATA[m][0]?56:57);for(w!==9&&(u=y,h--);h!==9;)h<=0&&(h=12,m--),u+=this.NEPALI_CALENDAR_DATA[m][h],h--;return w===9?(u+=y-this.NEPALI_CALENDAR_DATA[m][0])<0&&(u+=a.daysInYear(v)):u+=this.NEPALI_CALENDAR_DATA[m][9]-this.NEPALI_CALENDAR_DATA[m][0],a.newDate(v,1,1).add(u,"d").toJD()},fromJD:function(O){var w=c.instance().fromJD(O),y=w.year(),p=w.dayOfYear(),a=y+56;this._createMissingCalendarData(a);for(var u=9,h=this.NEPALI_CALENDAR_DATA[a][0],m=this.NEPALI_CALENDAR_DATA[a][u]-h+1;p>m;)++u>12&&(u=1,a++),m+=this.NEPALI_CALENDAR_DATA[a][u];var v=this.NEPALI_CALENDAR_DATA[a][u]-(m-p);return this.newDate(a,u,v)},_createMissingCalendarData:function(O){var w=this.daysPerMonth.slice(0);w.unshift(17);for(var y=O-1;y0?474:473))%2820+474+38)%2816<682},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(-(a.dayOfWeek()+1)%7,"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return this.dayOfWeek(w,y,p)!==5},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);w=a.year(),y=a.month(),p=a.day();var u=w-(w>=0?474:473),h=474+O(u,2820);return p+(y<=7?31*(y-1):30*(y-1)+6)+Math.floor((682*h-110)/2816)+365*(h-1)+1029983*Math.floor(u/2820)+this.jdEpoch-1},fromJD:function(w){var y=(w=Math.floor(w)+.5)-this.toJD(475,1,1),p=Math.floor(y/1029983),a=O(y,1029983),u=2820;if(a!==1029982){var h=Math.floor(a/366),m=O(a,366);u=Math.floor((2134*h+2816*m+2815)/1028522)+h+1}var v=u+2820*p+474;v=v<=0?v-1:v;var _=w-this.toJD(v,1,1)+1,S=_<=186?Math.ceil(_/31):Math.ceil((_-6)/30),A=w-this.toJD(v,S,1)+1;return this.newDate(v,S,A)}}),c.calendars.persian=i,c.calendars.jalali=i},51456:function(d,l,n){var c=n(38700),b=n(50896),i=c.instance();function O(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}O.prototype=new c.baseCalendar,b(O.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,p){var a=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return(this.dayOfWeek(w,y,p)||7)<6},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),p=this._g2tYear(y.year());return this.newDate(p,y.month(),y.day())},_t2gYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)},_g2tYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)}}),c.calendars.taiwan=O},4592:function(d,l,n){var c=n(38700),b=n(50896),i=c.instance();function O(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}O.prototype=new c.baseCalendar,b(O.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,p){var a=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var p=this._validate(w,y,this.minDay,c.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(w,y,p){return(this.dayOfWeek(w,y,p)||7)<6},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),p=this._g2tYear(y.year());return this.newDate(p,y.month(),y.day())},_t2gYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)},_g2tYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)}}),c.calendars.thai=O},45348:function(d,l,n){var c=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new c.baseCalendar,b(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,c.local.invalidYear);return this.daysInYear(y.year())===355},weekOfYear:function(w,y,p){var a=this.newDate(w,y,p);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){for(var y=0,p=1;p<=12;p++)y+=this.daysInMonth(w,p);return y},daysInMonth:function(w,y){for(var p=this._validate(w,y,this.minDay,c.local.invalidMonth).toJD()-24e5+.5,a=0,u=0;up)return O[a]-O[a-1];a++}return 30},weekDay:function(w,y,p){return this.dayOfWeek(w,y,p)!==5},toJD:function(w,y,p){var a=this._validate(w,y,p,c.local.invalidDate),u=12*(a.year()-1)+a.month()-15292;return a.day()+O[u-1]-1+24e5-.5},fromJD:function(w){for(var y=w-24e5+.5,p=0,a=0;ay);a++)p++;var u=p+15292,h=Math.floor((u-1)/12),m=h+1,v=u-12*h,_=y-O[p-1]+1;return this.newDate(m,v,_)},isValid:function(w,y,p){var a=c.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(w=w.year!=null?w.year:w)>=1276&&w<=1500),a},_validate:function(w,y,p,a){var u=c.baseCalendar.prototype._validate.apply(this,arguments);if(u.year<1276||u.year>1500)throw a.replace(/\{0\}/,this.local.name);return u}}),c.calendars.ummalqura=i;var O=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(d,l,n){var c=n(50896);function b(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(a,u,h,m){if(this._calendar=a,this._year=u,this._month=h,this._day=m,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function O(a,u){return"000000".substring(0,u-(a=""+a).length)+a}function w(){this.shortYearCutoff="+10"}function y(a){this.local=this.regionalOptions[a]||this.regionalOptions[""]}c(b.prototype,{instance:function(a,u){a=(a||"gregorian").toLowerCase(),u=u||"";var h=this._localCals[a+"-"+u];if(!h&&this.calendars[a]&&(h=new this.calendars[a](u),this._localCals[a+"-"+u]=h),!h)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,a);return h},newDate:function(a,u,h,m,v){return(m=(a!=null&&a.year?a.calendar():typeof m=="string"?this.instance(m,v):m)||this.instance()).newDate(a,u,h)},substituteDigits:function(a){return function(u){return(u+"").replace(/[0-9]/g,function(h){return a[h]})}},substituteChineseDigits:function(a,u){return function(h){for(var m="",v=0;h>0;){var _=h%10;m=(_===0?"":a[_]+u[v])+m,v++,h=Math.floor(h/10)}return m.indexOf(a[1]+u[1])===0&&(m=m.substr(1)),m||a[0]}}}),c(i.prototype,{newDate:function(a,u,h){return this._calendar.newDate(a??this,u,h)},year:function(a){return arguments.length===0?this._year:this.set(a,"y")},month:function(a){return arguments.length===0?this._month:this.set(a,"m")},day:function(a){return arguments.length===0?this._day:this.set(a,"d")},date:function(a,u,h){if(!this._calendar.isValid(a,u,h))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=a,this._month=u,this._day=h,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(a,u){return this._calendar.add(this,a,u)},set:function(a,u){return this._calendar.set(this,a,u)},compareTo:function(a){if(this._calendar.name!==a._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,a._calendar.local.name);var u=this._year!==a._year?this._year-a._year:this._month!==a._month?this.monthOfYear()-a.monthOfYear():this._day-a._day;return u===0?0:u<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(a){return this._calendar.fromJD(a)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(a){return this._calendar.fromJSDate(a)},toString:function(){return(this.year()<0?"-":"")+O(Math.abs(this.year()),4)+"-"+O(this.month(),2)+"-"+O(this.day(),2)}}),c(w.prototype,{_validateLevel:0,newDate:function(a,u,h){return a==null?this.today():(a.year&&(this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate),h=a.day(),u=a.month(),a=a.year()),new i(this,a,u,h))},today:function(){return this.fromJSDate(new Date)},epoch:function(a){return this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(a){var u=this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(u.year()<0?"-":"")+O(Math.abs(u.year()),4)},monthsInYear:function(a){return this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(a,u){var h=this._validate(a,u,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(h.month()+this.monthsInYear(h)-this.firstMonth)%this.monthsInYear(h)+this.minMonth},fromMonthOfYear:function(a,u){var h=(u+this.firstMonth-2*this.minMonth)%this.monthsInYear(a)+this.minMonth;return this._validate(a,h,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),h},daysInYear:function(a){var u=this._validate(a,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(u)?366:365},dayOfYear:function(a,u,h){var m=this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate);return m.toJD()-this.newDate(m.year(),this.fromMonthOfYear(m.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(a,u,h){var m=this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(m))+2)%this.daysInWeek()},extraInfo:function(a,u,h){return this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(a,u,h){return this._validate(a,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(a,this._add(a,u,h),u,h)},_add:function(a,u,h){if(this._validateLevel++,h==="d"||h==="w"){var m=a.toJD()+u*(h==="w"?this.daysInWeek():1),v=a.calendar().fromJD(m);return this._validateLevel--,[v.year(),v.month(),v.day()]}try{var _=a.year()+(h==="y"?u:0),S=a.monthOfYear()+(h==="m"?u:0);v=a.day(),h==="y"?(a.month()!==this.fromMonthOfYear(_,S)&&(S=this.newDate(_,a.month(),this.minDay).monthOfYear()),S=Math.min(S,this.monthsInYear(_)),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,S)))):h==="m"&&(function(x){for(;SR-1+x.minMonth;)_++,S-=R,R=x.monthsInYear(_)}(this),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,S))));var A=[_,this.fromMonthOfYear(_,S),v];return this._validateLevel--,A}catch(x){throw this._validateLevel--,x}},_correctAdd:function(a,u,h,m){if(!(this.hasYearZero||m!=="y"&&m!=="m"||u[0]!==0&&a.year()>0==u[0]>0)){var v={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[m],_=h<0?-1:1;u=this._add(a,h*v[0]+_*v[1],v[2])}return a.date(u[0],u[1],u[2])},set:function(a,u,h){this._validate(a,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var m=h==="y"?u:a.year(),v=h==="m"?u:a.month(),_=h==="d"?u:a.day();return h!=="y"&&h!=="m"||(_=Math.min(_,this.daysInMonth(m,v))),a.date(m,v,_)},isValid:function(a,u,h){this._validateLevel++;var m=this.hasYearZero||a!==0;if(m){var v=this.newDate(a,u,this.minDay);m=u>=this.minMonth&&u-this.minMonth=this.minDay&&h-this.minDay13.5?13:1),R=v-(x>2.5?4716:4715);return R<=0&&R--,this.newDate(R,x,A)},toJSDate:function(a,u,h){var m=this._validate(a,u,h,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=new Date(m.year(),m.month()-1,m.day());return v.setHours(0),v.setMinutes(0),v.setSeconds(0),v.setMilliseconds(0),v.setHours(v.getHours()>12?v.getHours()+2:0),v},fromJSDate:function(a){return this.newDate(a.getFullYear(),a.getMonth()+1,a.getDate())}});var p=d.exports=new b;p.cdate=i,p.baseCalendar=w,p.calendars.gregorian=y},15168:function(d,l,n){var c=n(50896),b=n(38700);c(b.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),b.local=b.regionalOptions[""],c(b.cdate.prototype,{formatDate:function(i,O){return typeof i!="string"&&(O=i,i=""),this._calendar.formatDate(i||"",this,O)}}),c(b.baseCalendar.prototype,{UNIX_EPOCH:b.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:b.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(i,O,w){if(typeof i!="string"&&(w=O,O=i,i=""),!O)return"";if(O.calendar()!==this)throw b.local.invalidFormat||b.regionalOptions[""].invalidFormat;i=i||this.local.dateFormat;for(var y,p,a,u=(w=w||{}).dayNamesShort||this.local.dayNamesShort,h=w.dayNames||this.local.dayNames,m=w.monthNumbers||this.local.monthNumbers,v=w.monthNamesShort||this.local.monthNamesShort,_=w.monthNames||this.local.monthNames,S=(w.calculateWeek||this.local.calculateWeek,function(k,I){for(var z=1;D+z1}),A=function(k,I,z,$){var Q=""+I;if(S(k,$))for(;Q.length1},C=function(X,te){var W=E(X,te),K=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],oe=new RegExp("^-?\\d{1,"+K+"}"),q=O.substring($).match(oe);if(!q)throw(b.local.missingNumberAt||b.regionalOptions[""].missingNumberAt).replace(/\{0\}/,$);return $+=q[0].length,parseInt(q[0],10)},L=this,D=function(){if(typeof h=="function"){E("m");var X=h.call(L,O.substring($));return $+=X.length,X}return C("m")},k=function(X,te,W,K){for(var oe=E(X,K)?W:te,q=0;q-1){A=1,x=R;for(var U=this.daysInMonth(S,A);x>U;U=this.daysInMonth(S,A))A++,x-=U}return _>-1?this.fromJD(_):this.newDate(S,A,x)},determineDate:function(i,O,w,y,p){w&&typeof w!="object"&&(p=y,y=w,w=null),typeof y!="string"&&(p=y,y="");var a=this;return O=O?O.newDate():null,i==null?O:typeof i=="string"?function(u){try{return a.parseDate(y,u,p)}catch{}for(var h=((u=u.toLowerCase()).match(/^c/)&&w?w.newDate():null)||a.today(),m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,v=m.exec(u);v;)h.add(parseInt(v[1],10),v[2]||"d"),v=m.exec(u);return h}(i):typeof i=="number"?isNaN(i)||i===1/0||i===-1/0?O:a.today().add(i,"d"):a.newDate(i)}})},21576:function(){},19768:function(){},63436:function(d,l,n){var c=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],b=typeof globalThis>"u"?n.g:globalThis;d.exports=function(){for(var i=[],O=0;O>8&15|Pe>>4&240,Pe>>4&15|240&Pe,(15&Pe)<<4|15&Pe,1):Ie===8?C(Pe>>24&255,Pe>>16&255,Pe>>8&255,(255&Pe)/255):Ie===4?C(Pe>>12&15|Pe>>8&240,Pe>>8&15|Pe>>4&240,Pe>>4&15|240&Pe,((15&Pe)<<4|15&Pe)/255):null):(Pe=h.exec(Te))?new D(Pe[1],Pe[2],Pe[3],1):(Pe=m.exec(Te))?new D(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,1):(Pe=v.exec(Te))?C(Pe[1],Pe[2],Pe[3],Pe[4]):(Pe=_.exec(Te))?C(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,Pe[4]):(Pe=S.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,1):(Pe=A.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,Pe[4]):x.hasOwnProperty(Te)?E(x[Te]):Te==="transparent"?new D(NaN,NaN,NaN,0):null}function E(Te){return new D(Te>>16&255,Te>>8&255,255&Te,1)}function C(Te,Pe,Ie,ze){return ze<=0&&(Te=Pe=Ie=NaN),new D(Te,Pe,Ie,ze)}function L(Te,Pe,Ie,ze){return arguments.length===1?((De=Te)instanceof i||(De=T(De)),De?new D((De=De.rgb()).r,De.g,De.b,De.opacity):new D):new D(Te,Pe,Ie,ze??1);var De}function D(Te,Pe,Ie,ze){this.r=+Te,this.g=+Pe,this.b=+Ie,this.opacity=+ze}function k(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b))}function I(){var Te=z(this.opacity);return"".concat(Te===1?"rgb(":"rgba(").concat($(this.r),", ").concat($(this.g),", ").concat($(this.b)).concat(Te===1?")":", ".concat(Te,")"))}function z(Te){return isNaN(Te)?1:Math.max(0,Math.min(1,Te))}function $(Te){return Math.max(0,Math.min(255,Math.round(Te)||0))}function Q(Te){return((Te=$(Te))<16?"0":"")+Te.toString(16)}function j(Te,Pe,Ie,ze){return ze<=0?Te=Pe=Ie=NaN:Ie<=0||Ie>=1?Te=Pe=NaN:Pe<=0&&(Te=NaN),new X(Te,Pe,Ie,ze)}function U(Te){if(Te instanceof X)return new X(Te.h,Te.s,Te.l,Te.opacity);if(Te instanceof i||(Te=T(Te)),!Te)return new X;if(Te instanceof X)return Te;var Pe=(Te=Te.rgb()).r/255,Ie=Te.g/255,ze=Te.b/255,De=Math.min(Pe,Ie,ze),He=Math.max(Pe,Ie,ze),Ve=NaN,$e=He-De,Oe=(He+De)/2;return $e?(Ve=Pe===He?(Ie-ze)/$e+6*(Ie0&&Oe<1?0:Ve,new X(Ve,$e,Oe,Te.opacity)}function X(Te,Pe,Ie,ze){this.h=+Te,this.s=+Pe,this.l=+Ie,this.opacity=+ze}function te(Te){return(Te=(Te||0)%360)<0?Te+360:Te}function W(Te){return Math.max(0,Math.min(1,Te||0))}function K(Te,Pe,Ie){return 255*(Te<60?Pe+(Ie-Pe)*Te/60:Te<180?Ie:Te<240?Pe+(Ie-Pe)*(240-Te)/60:Pe)}c(i,T,{copy:function(Te){return Object.assign(new this.constructor,this,Te)},displayable:function(){return this.rgb().displayable()},hex:R,formatHex:R,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return U(this).formatHsl()},formatRgb:M,toString:M}),c(D,L,b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},darker:function(Te){return Te=Te==null?O:Math.pow(O,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},rgb:function(){return this},clamp:function(){return new D($(this.r),$(this.g),$(this.b),z(this.opacity))},displayable:function(){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:k,formatHex:k,formatHex8:function(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b)).concat(Q(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:I,toString:I})),c(X,function(Te,Pe,Ie,ze){return arguments.length===1?U(Te):new X(Te,Pe,Ie,ze??1)},b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new X(this.h,this.s,this.l*Te,this.opacity)},darker:function(Te){return Te=Te==null?O:Math.pow(O,Te),new X(this.h,this.s,this.l*Te,this.opacity)},rgb:function(){var Te=this.h%360+360*(this.h<0),Pe=isNaN(Te)||isNaN(this.s)?0:this.s,Ie=this.l,ze=Ie+(Ie<.5?Ie:1-Ie)*Pe,De=2*Ie-ze;return new D(K(Te>=240?Te-240:Te+120,De,ze),K(Te,De,ze),K(Te<120?Te+240:Te-120,De,ze),this.opacity)},clamp:function(){return new X(te(this.h),W(this.s),W(this.l),z(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var Te=z(this.opacity);return"".concat(Te===1?"hsl(":"hsla(").concat(te(this.h),", ").concat(100*W(this.s),"%, ").concat(100*W(this.l),"%").concat(Te===1?")":", ".concat(Te,")"))}}));var oe=function(Te){return function(){return Te}};function q(Te,Pe){var Ie=Pe-Te;return Ie?function(ze,De){return function(He){return ze+He*De}}(Te,Ie):oe(isNaN(Te)?Pe:Te)}var Y=function Te(Pe){var Ie=function(De){return(De=+De)==1?q:function(He,Ve){return Ve-He?function($e,Oe,ke){return $e=Math.pow($e,ke),Oe=Math.pow(Oe,ke)-$e,ke=1/ke,function(Le){return Math.pow($e+Le*Oe,ke)}}(He,Ve,De):oe(isNaN(He)?Ve:He)}}(Pe);function ze(De,He){var Ve=Ie((De=L(De)).r,(He=L(He)).r),$e=Ie(De.g,He.g),Oe=Ie(De.b,He.b),ke=q(De.opacity,He.opacity);return function(Le){return De.r=Ve(Le),De.g=$e(Le),De.b=Oe(Le),De.opacity=ke(Le),De+""}}return ze.gamma=Te,ze}(1);function ee(Te,Pe){var Ie,ze=Pe?Pe.length:0,De=Te?Math.min(ze,Te.length):0,He=new Array(De),Ve=new Array(ze);for(Ie=0;IeHe&&(De=Pe.slice(He,De),$e[Ve]?$e[Ve]+=De:$e[++Ve]=De),(Ie=Ie[0])===(ze=ze[0])?$e[Ve]?$e[Ve]+=ze:$e[++Ve]=ze:($e[++Ve]=null,Oe.push({i:Ve,x:he(Ie,ze)})),He=de.lastIndex;return He{const f=document.getElementById(t.id);f&&yhe.Plots.resize(f)},o=f=>{const P=JSON.parse(f);yhe.react(t.id,P.data,P.layout)};sg(()=>{o(t.figureJson),window.addEventListener("resize",e)}),Nle(()=>{window.removeEventListener("resize",e)}),Ni(()=>t.figureJson,f=>{o(f)})}}),hm=(t,e)=>{const o=t.__vccOpts||t;for(const[f,P]of e)o[f]=P;return o},Wke=["id"];function Yke(t,e,o,f,P,d){return Do(),Da("div",{id:t.id,style:{height:"100%",width:"100%"}},null,8,Wke)}const Kle=hm(qke,[["render",Yke]]);class ru{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,o,f){let P=[];return this.decompose(0,e,P,2),f.length&&f.decompose(0,f.length,P,3),this.decompose(o,this.length,P,1),n_.from(P,this.length-(o-e)+f.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,o=this.length){let f=[];return this.decompose(e,o,f,0),n_.from(f,o-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let o=this.scanIdentical(e,1),f=this.length-this.scanIdentical(e,-1),P=new lI(this),d=new lI(e);for(let l=o,n=o;;){if(P.next(l),d.next(l),l=0,P.lineBreak!=d.lineBreak||P.done!=d.done||P.value!=d.value)return!1;if(n+=P.value.length,P.done||n>=f)return!0}}iter(e=1){return new lI(this,e)}iterRange(e,o=this.length){return new wve(this,e,o)}iterLines(e,o){let f;if(e==null)f=this.iter();else{o==null&&(o=this.lines+1);let P=this.line(e).from;f=this.iterRange(P,Math.max(P,o==this.lines+1?this.length:o<=1?0:this.line(o-1).to))}return new Ove(f)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ru.empty:e.length<=32?new Fh(e):n_.from(Fh.split(e,[]))}}class Fh extends ru{constructor(e,o=Xke(e)){super(),this.text=e,this.length=o}get lines(){return this.text.length}get children(){return null}lineInner(e,o,f,P){for(let d=0;;d++){let l=this.text[d],n=P+l.length;if((o?f:n)>=e)return new Gke(P,n,f,l);P=n+1,f++}}decompose(e,o,f,P){let d=e<=0&&o>=this.length?this:new Fh(bhe(this.text,e,o),Math.min(o,this.length)-Math.max(0,e));if(P&1){let l=f.pop(),n=fH(d.text,l.text.slice(),0,d.length);if(n.length<=32)f.push(new Fh(n,l.length+d.length));else{let c=n.length>>1;f.push(new Fh(n.slice(0,c)),new Fh(n.slice(c)))}}else f.push(d)}replace(e,o,f){if(!(f instanceof Fh))return super.replace(e,o,f);let P=fH(this.text,fH(f.text,bhe(this.text,0,e)),o),d=this.length+f.length-(o-e);return P.length<=32?new Fh(P,d):n_.from(Fh.split(P,[]),d)}sliceString(e,o=this.length,f=` `){let P="";for(let d=0,l=0;d<=o&&le&&l&&(P+=f),ed&&(P+=n.slice(Math.max(0,e-d),o-d)),d=c+1}return P}flatten(e){for(let o of this.text)e.push(o)}scanIdentical(){return 0}static split(e,o){let f=[],P=-1;for(let d of e)f.push(d),P+=d.length+1,f.length==32&&(o.push(new Fh(f,P)),f=[],P=-1);return P>-1&&o.push(new Fh(f,P)),o}}class n_ extends ru{constructor(e,o){super(),this.children=e,this.length=o,this.lines=0;for(let f of e)this.lines+=f.lines}lineInner(e,o,f,P){for(let d=0;;d++){let l=this.children[d],n=P+l.length,c=f+l.lines-1;if((o?c:n)>=e)return l.lineInner(e,o,f,P);P=n+1,f=c+1}}decompose(e,o,f,P){for(let d=0,l=0;l<=o&&d=l){let b=P&((l<=e?1:0)|(c>=o?2:0));l>=e&&c<=o&&!b?f.push(n):n.decompose(e-l,o-l,f,b)}l=c+1}}replace(e,o,f){if(f.lines=d&&o<=n){let c=l.replace(e-d,o-d,f),b=this.lines-l.lines+c.lines;if(c.lines>5-1&&c.lines>b>>5+1){let i=this.children.slice();return i[P]=c,new n_(i,this.length-(o-e)+f.length)}return super.replace(d,n,c)}d=n+1}return super.replace(e,o,f)}sliceString(e,o=this.length,f=` -`){let P="";for(let d=0,l=0;de&&d&&(P+=f),el&&(P+=n.sliceString(e-l,o-l,f)),l=c+1}return P}flatten(e){for(let o of this.children)o.flatten(e)}scanIdentical(e,o){if(!(e instanceof n_))return 0;let f=0,[P,d,l,n]=o>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;P+=o,d+=o){if(P==l||d==n)return f;let c=this.children[P],b=e.children[d];if(c!=b)return f+c.scanIdentical(b,o);f+=c.length+1}}static from(e,o=e.reduce((f,P)=>f+P.length+1,-1)){let f=0;for(let y of e)f+=y.lines;if(f<32){let y=[];for(let p of e)p.flatten(y);return new Fh(y,o)}let P=Math.max(32,f>>5),d=P<<1,l=P>>1,n=[],c=0,b=-1,i=[];function O(y){let p;if(y.lines>d&&y instanceof n_)for(let a of y.children)O(a);else y.lines>l&&(c>l||!c)?(w(),n.push(y)):y instanceof Fh&&c&&(p=i[i.length-1])instanceof Fh&&y.lines+p.lines<=32?(c+=y.lines,b+=y.length+1,i[i.length-1]=new Fh(p.text.concat(y.text),p.length+1+y.length)):(c+y.lines>P&&w(),c+=y.lines,b+=y.length+1,i.push(y))}function w(){c!=0&&(n.push(i.length==1?i[0]:n_.from(i,b)),b=-1,c=i.length=0)}for(let y of e)O(y);return w(),n.length==1?n[0]:new n_(n,o)}}ru.empty=new Fh([""],0);function Yke(t){let e=-1;for(let o of t)e+=o.length+1;return e}function fH(t,e,o=0,f=1e9){for(let P=0,d=0,l=!0;d=o&&(c>f&&(n=n.slice(0,f-P)),P0?1:(e instanceof Fh?e.text.length:e.children.length)<<1]}nextInner(e,o){for(this.done=this.lineBreak=!1;;){let f=this.nodes.length-1,P=this.nodes[f],d=this.offsets[f],l=d>>1,n=P instanceof Fh?P.text.length:P.children.length;if(l==(o>0?n:0)){if(f==0)return this.done=!0,this.value="",this;o>0&&this.offsets[f-1]++,this.nodes.pop(),this.offsets.pop()}else if((d&1)==(o>0?0:1)){if(this.offsets[f]+=o,e==0)return this.lineBreak=!0,this.value=` -`,this;e--}else if(P instanceof Fh){let c=P.text[l+(o<0?-1:0)];if(this.offsets[f]+=o,c.length>Math.max(0,e))return this.value=e==0?c:o>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=P.children[l+(o<0?-1:0)];e>c.length?(e-=c.length,this.offsets[f]+=o):(o<0&&this.offsets[f]--,this.nodes.push(c),this.offsets.push(o>0?1:(c instanceof Fh?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class _ve{constructor(e,o,f){this.value="",this.done=!1,this.cursor=new sI(e,o>f?-1:1),this.pos=o>f?e.length:0,this.from=Math.min(o,f),this.to=Math.max(o,f)}nextInner(e,o){if(o<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,o<0?this.pos-this.to:this.from-this.pos);let f=o<0?this.pos-this.from:this.to-this.pos;e>f&&(e=f),f-=e;let{value:P}=this.cursor.next(e);return this.pos+=(P.length+e)*o,this.value=P.length<=f?P:o<0?P.slice(P.length-f):P.slice(0,f),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class wve{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:o,lineBreak:f,value:P}=this.inner.next(e);return o&&this.afterBreak?(this.value="",this.afterBreak=!1):o?(this.done=!0,this.value=""):f?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=P,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ru.prototype[Symbol.iterator]=function(){return this.iter()},sI.prototype[Symbol.iterator]=_ve.prototype[Symbol.iterator]=wve.prototype[Symbol.iterator]=function(){return this});let Xke=class{constructor(e,o,f,P){this.from=e,this.to=o,this.number=f,this.text=P}get length(){return this.to-this.from}},YA="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return YA[e-1]<=t;return!1}function bhe(t){return t>=127462&&t<=127487}const xhe=8205;function ng(t,e,o=!0,f=!0){return(o?Ove:Kke)(t,e,f)}function Ove(t,e,o){if(e==t.length)return e;e&&Sve(t.charCodeAt(e))&&kve(t.charCodeAt(e-1))&&e--;let f=Jm(t,e);for(e+=Wy(f);e=0&&bhe(Jm(t,l));)d++,l-=2;if(d%2==0)break;e+=2}else break}return e}function Kke(t,e,o){for(;e>0;){let f=Ove(t,e-2,o);if(f=56320&&t<57344}function kve(t){return t>=55296&&t<56320}function Jm(t,e){let o=t.charCodeAt(e);if(!kve(o)||e+1==t.length)return o;let f=t.charCodeAt(e+1);return Sve(f)?(o-55296<<10)+(f-56320)+65536:o}function Jle(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Wy(t){return t<65536?1:2}const Rae=/\r\n?|\n/;var tg=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(tg||(tg={}));class f_{constructor(e){this.sections=e}get length(){let e=0;for(let o=0;oe)return d+(e-P);d+=n}else{if(f!=tg.Simple&&b>=e&&(f==tg.TrackDel&&Pe||f==tg.TrackBefore&&Pe))return null;if(b>e||b==e&&o<0&&!n)return e==P||o<0?d:d+c;d+=c}P=b}if(e>P)throw new RangeError(`Position ${e} is out of range for changeset of length ${P}`);return d}touchesRange(e,o=e){for(let f=0,P=0;f=0&&P<=o&&n>=e)return Po?"cover":!0;P=n}return!1}toString(){let e="";for(let o=0;o=0?":"+P:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(o=>typeof o!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new f_(e)}static create(e){return new f_(e)}}class wp extends f_{constructor(e,o){super(e),this.inserted=o}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Lae(this,(o,f,P,d,l)=>e=e.replace(P,P+(f-o),l),!1),e}mapDesc(e,o=!1){return Iae(this,e,o,!0)}invert(e){let o=this.sections.slice(),f=[];for(let P=0,d=0;P=0){o[P]=n,o[P+1]=l;let c=P>>1;for(;f.length0&&q4(f,o,d.text),d.forward(i),n+=i}let b=e[l++];for(;n>1].toJSON()))}return e}static of(e,o,f){let P=[],d=[],l=0,n=null;function c(i=!1){if(!i&&!P.length)return;lw||O<0||w>o)throw new RangeError(`Invalid change range ${O} to ${w} (in doc of length ${o})`);let p=y?typeof y=="string"?ru.of(y.split(f||Rae)):y:ru.empty,a=p.length;if(O==w&&a==0)return;Ol&&Fg(P,O-l,-1),Fg(P,w-O,a),q4(d,P,p),l=w}}return b(e),c(!n),n}static empty(e){return new wp(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let o=[],f=[];for(let P=0;Pn&&typeof l!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(d.length==1)o.push(d[0],0);else{for(;f.length=0&&o<=0&&o==t[P+1]?t[P]+=e:e==0&&t[P]==0?t[P+1]+=o:f?(t[P]+=e,t[P+1]+=o):t.push(e,o)}function q4(t,e,o){if(o.length==0)return;let f=e.length-2>>1;if(f>1])),!(o||l==t.sections.length||t.sections[l+1]<0);)n=t.sections[l++],c=t.sections[l++];e(P,b,d,i,O),P=b,d=i}}}function Iae(t,e,o,f=!1){let P=[],d=f?[]:null,l=new AI(t),n=new AI(e);for(let c=-1;;)if(l.ins==-1&&n.ins==-1){let b=Math.min(l.len,n.len);Fg(P,b,-1),l.forward(b),n.forward(b)}else if(n.ins>=0&&(l.ins<0||c==l.i||l.off==0&&(n.len=0&&c=0){let b=0,i=l.len;for(;i;)if(n.ins==-1){let O=Math.min(i,n.len);b+=O,i-=O,n.forward(O)}else if(n.ins==0&&n.lenc||l.ins>=0&&l.len>c)&&(n||f.length>b),d.forward2(c),l.forward(c)}}}}class AI{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return o>=e.length?ru.empty:e[o]}textBit(e){let{inserted:o}=this.set,f=this.i-2>>1;return f>=o.length&&!e?ru.empty:o[f].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class iT{constructor(e,o,f){this.from=e,this.to=o,this.flags=f}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,o=-1){let f,P;return this.empty?f=P=e.mapPos(this.from,o):(f=e.mapPos(this.from,1),P=e.mapPos(this.to,-1)),f==this.from&&P==this.to?this:new iT(f,P,this.flags)}extend(e,o=e){if(e<=this.anchor&&o>=this.anchor)return Yo.range(e,o);let f=Math.abs(e-this.anchor)>Math.abs(o-this.anchor)?e:o;return Yo.range(this.anchor,f)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Yo.range(e.anchor,e.head)}static create(e,o,f){return new iT(e,o,f)}}class Yo{constructor(e,o){this.ranges=e,this.mainIndex=o}map(e,o=-1){return e.empty?this:Yo.create(this.ranges.map(f=>f.map(e,o)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let o=0;oe.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Yo(e.ranges.map(o=>iT.fromJSON(o)),e.main)}static single(e,o=e){return new Yo([Yo.range(e,o)],0)}static create(e,o=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let f=0,P=0;Pe?8:0)|d)}static normalized(e,o=0){let f=e[o];e.sort((P,d)=>P.from-d.from),o=e.indexOf(f);for(let P=1;Pd.head?Yo.range(c,n):Yo.range(n,c))}}return new Yo(e,o)}}function Cve(t,e){for(let o of t.ranges)if(o.to>e)throw new RangeError("Selection points outside of document")}let ece=0;class Ba{constructor(e,o,f,P,d){this.combine=e,this.compareInput=o,this.compare=f,this.isStatic=P,this.id=ece++,this.default=e([]),this.extensions=typeof d=="function"?d(this):d}get reader(){return this}static define(e={}){return new Ba(e.combine||(o=>o),e.compareInput||((o,f)=>o===f),e.compare||(e.combine?(o,f)=>o===f:tce),!!e.static,e.enables)}of(e){return new dH([],this,0,e)}compute(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new dH(e,this,1,o)}computeN(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new dH(e,this,2,o)}from(e,o){return o||(o=f=>f),this.compute([e],f=>o(f.field(e)))}}function tce(t,e){return t==e||t.length==e.length&&t.every((o,f)=>o===e[f])}class dH{constructor(e,o,f,P){this.dependencies=e,this.facet=o,this.type=f,this.value=P,this.id=ece++}dynamicSlot(e){var o;let f=this.value,P=this.facet.compareInput,d=this.id,l=e[d]>>1,n=this.type==2,c=!1,b=!1,i=[];for(let O of this.dependencies)O=="doc"?c=!0:O=="selection"?b=!0:((o=e[O.id])!==null&&o!==void 0?o:1)&1||i.push(e[O.id]);return{create(O){return O.values[l]=f(O),1},update(O,w){if(c&&w.docChanged||b&&(w.docChanged||w.selection)||Dae(O,i)){let y=f(O);if(n?!_he(y,O.values[l],P):!P(y,O.values[l]))return O.values[l]=y,1}return 0},reconfigure:(O,w)=>{let y,p=w.config.address[d];if(p!=null){let a=FH(w,p);if(this.dependencies.every(u=>u instanceof Ba?w.facet(u)===O.facet(u):u instanceof Ap?w.field(u,!1)==O.field(u,!1):!0)||(n?_he(y=f(O),a,P):P(y=f(O),a)))return O.values[l]=a,0}else y=f(O);return O.values[l]=y,1}}}}function _he(t,e,o){if(t.length!=e.length)return!1;for(let f=0;ft[c.id]),P=o.map(c=>c.type),d=f.filter(c=>!(c&1)),l=t[e.id]>>1;function n(c){let b=[];for(let i=0;if===P),e);return e.provide&&(o.provides=e.provide(o)),o}create(e){let o=e.facet(whe).find(f=>f.field==this);return((o==null?void 0:o.create)||this.createF)(e)}slot(e){let o=e[this.id]>>1;return{create:f=>(f.values[o]=this.create(f),1),update:(f,P)=>{let d=f.values[o],l=this.updateF(d,P);return this.compareF(d,l)?0:(f.values[o]=l,1)},reconfigure:(f,P)=>P.config.address[this.id]!=null?(f.values[o]=P.field(this),0):(f.values[o]=this.create(f),1)}}init(e){return[this,whe.of({field:this,create:e})]}get extension(){return this}}const tT={lowest:4,low:3,default:2,high:1,highest:0};function LL(t){return e=>new Ave(e,t)}const Nv={highest:LL(tT.highest),high:LL(tT.high),default:LL(tT.default),low:LL(tT.low),lowest:LL(tT.lowest)};class Ave{constructor(e,o){this.inner=e,this.prec=o}}class hD{of(e){return new Bae(this,e)}reconfigure(e){return hD.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Bae{constructor(e,o){this.compartment=e,this.inner=o}}class zH{constructor(e,o,f,P,d,l){for(this.base=e,this.compartments=o,this.dynamicSlots=f,this.address=P,this.staticValues=d,this.facets=l,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,o,f){let P=[],d=Object.create(null),l=new Map;for(let w of eTe(e,o,l))w instanceof Ap?P.push(w):(d[w.facet.id]||(d[w.facet.id]=[])).push(w);let n=Object.create(null),c=[],b=[];for(let w of P)n[w.id]=b.length<<1,b.push(y=>w.slot(y));let i=f==null?void 0:f.config.facets;for(let w in d){let y=d[w],p=y[0].facet,a=i&&i[w]||[];if(y.every(u=>u.type==0))if(n[p.id]=c.length<<1|1,tce(a,y))c.push(f.facet(p));else{let u=p.combine(y.map(h=>h.value));c.push(f&&p.compare(u,f.facet(p))?f.facet(p):u)}else{for(let u of y)u.type==0?(n[u.id]=c.length<<1|1,c.push(u.value)):(n[u.id]=b.length<<1,b.push(h=>u.dynamicSlot(h)));n[p.id]=b.length<<1,b.push(u=>Jke(u,p,y))}}let O=b.map(w=>w(n));return new zH(e,l,O,n,c,d)}}function eTe(t,e,o){let f=[[],[],[],[],[]],P=new Map;function d(l,n){let c=P.get(l);if(c!=null){if(c<=n)return;let b=f[c].indexOf(l);b>-1&&f[c].splice(b,1),l instanceof Bae&&o.delete(l.compartment)}if(P.set(l,n),Array.isArray(l))for(let b of l)d(b,n);else if(l instanceof Bae){if(o.has(l.compartment))throw new RangeError("Duplicate use of compartment in extensions");let b=e.get(l.compartment)||l.inner;o.set(l.compartment,b),d(b,n)}else if(l instanceof Ave)d(l.inner,l.prec);else if(l instanceof Ap)f[n].push(l),l.provides&&d(l.provides,n);else if(l instanceof dH)f[n].push(l),l.facet.extensions&&d(l.facet.extensions,tT.default);else{let b=l.extension;if(!b)throw new Error(`Unrecognized extension value in extension set (${l}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);d(b,n)}}return d(t,tT.default),f.reduce((l,n)=>l.concat(n))}function lI(t,e){if(e&1)return 2;let o=e>>1,f=t.status[o];if(f==4)throw new Error("Cyclic dependency between fields and/or facets");if(f&2)return f;t.status[o]=4;let P=t.computeSlot(t,t.config.dynamicSlots[o]);return t.status[o]=2|P}function FH(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const Mve=Ba.define(),zae=Ba.define({combine:t=>t.some(e=>e),static:!0}),Eve=Ba.define({combine:t=>t.length?t[0]:void 0,static:!0}),Pve=Ba.define(),Rve=Ba.define(),Lve=Ba.define(),Ive=Ba.define({combine:t=>t.length?t[0]:!1});class LO{constructor(e,o){this.type=e,this.value=o}static define(){return new tTe}}class tTe{of(e){return new LO(this,e)}}class nTe{constructor(e){this.map=e}of(e){return new cl(this,e)}}class cl{constructor(e,o){this.type=e,this.value=o}map(e){let o=this.type.map(this.value,e);return o===void 0?void 0:o==this.value?this:new cl(this.type,o)}is(e){return this.type==e}static define(e={}){return new nTe(e.map||(o=>o))}static mapEffects(e,o){if(!e.length)return e;let f=[];for(let P of e){let d=P.map(o);d&&f.push(d)}return f}}cl.reconfigure=cl.define();cl.appendConfig=cl.define();class Sp{constructor(e,o,f,P,d,l){this.startState=e,this.changes=o,this.selection=f,this.effects=P,this.annotations=d,this.scrollIntoView=l,this._doc=null,this._state=null,f&&Cve(f,o.newLength),d.some(n=>n.type==Sp.time)||(this.annotations=d.concat(Sp.time.of(Date.now())))}static create(e,o,f,P,d,l){return new Sp(e,o,f,P,d,l)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let o of this.annotations)if(o.type==e)return o.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let o=this.annotation(Sp.userEvent);return!!(o&&(o==e||o.length>e.length&&o.slice(0,e.length)==e&&o[e.length]=="."))}}Sp.time=LO.define();Sp.userEvent=LO.define();Sp.addToHistory=LO.define();Sp.remote=LO.define();function rTe(t,e){let o=[];for(let f=0,P=0;;){let d,l;if(f=t[f]))d=t[f++],l=t[f++];else if(P=0;P--){let d=f[P](t);d instanceof Sp?t=d:Array.isArray(d)&&d.length==1&&d[0]instanceof Sp?t=d[0]:t=Bve(e,XA(d),!1)}return t}function iTe(t){let e=t.startState,o=e.facet(Lve),f=t;for(let P=o.length-1;P>=0;P--){let d=o[P](t);d&&Object.keys(d).length&&(f=Dve(f,Fae(e,d,t.changes.newLength),!0))}return f==t?t:Sp.create(e,t.changes,t.selection,f.effects,f.annotations,f.scrollIntoView)}const aTe=[];function XA(t){return t==null?aTe:Array.isArray(t)?t:[t]}var Ad=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Ad||(Ad={}));const sTe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Nae;try{Nae=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function lTe(t){if(Nae)return Nae.test(t);for(let e=0;e"€"&&(o.toUpperCase()!=o.toLowerCase()||sTe.test(o)))return!0}return!1}function cTe(t){return e=>{if(!/\S/.test(e))return Ad.Space;if(lTe(e))return Ad.Word;for(let o=0;o-1)return Ad.Word;return Ad.Other}}class jl{constructor(e,o,f,P,d,l){this.config=e,this.doc=o,this.selection=f,this.values=P,this.status=e.statusTemplate.slice(),this.computeSlot=d,l&&(l._state=this);for(let n=0;nP.set(b,c)),o=null),P.set(n.value.compartment,n.value.extension)):n.is(cl.reconfigure)?(o=null,f=n.value):n.is(cl.appendConfig)&&(o=null,f=XA(f).concat(n.value));let d;o?d=e.startState.values.slice():(o=zH.resolve(f,P,this),d=new jl(o,this.doc,this.selection,o.dynamicSlots.map(()=>null),(c,b)=>b.reconfigure(c,this),null).values);let l=e.startState.facet(zae)?e.newSelection:e.newSelection.asSingle();new jl(o,e.newDoc,l,d,(n,c)=>c.update(n,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(o=>({changes:{from:o.from,to:o.to,insert:e},range:Yo.cursor(o.from+e.length)}))}changeByRange(e){let o=this.selection,f=e(o.ranges[0]),P=this.changes(f.changes),d=[f.range],l=XA(f.effects);for(let n=1;nl.spec.fromJSON(n,c)))}}return jl.create({doc:e.doc,selection:Yo.fromJSON(e.selection),extensions:o.extensions?P.concat([o.extensions]):P})}static create(e={}){let o=zH.resolve(e.extensions||[],new Map),f=e.doc instanceof ru?e.doc:ru.of((e.doc||"").split(o.staticFacet(jl.lineSeparator)||Rae)),P=e.selection?e.selection instanceof Yo?e.selection:Yo.single(e.selection.anchor,e.selection.head):Yo.single(0);return Cve(P,f.length),o.staticFacet(zae)||(P=P.asSingle()),new jl(o,f,P,o.dynamicSlots.map(()=>null),(d,l)=>l.create(d),null)}get tabSize(){return this.facet(jl.tabSize)}get lineBreak(){return this.facet(jl.lineSeparator)||` -`}get readOnly(){return this.facet(Ive)}phrase(e,...o){for(let f of this.facet(jl.phrases))if(Object.prototype.hasOwnProperty.call(f,e)){e=f[e];break}return o.length&&(e=e.replace(/\$(\$|\d*)/g,(f,P)=>{if(P=="$")return"$";let d=+(P||1);return!d||d>o.length?f:o[d-1]})),e}languageDataAt(e,o,f=-1){let P=[];for(let d of this.facet(Mve))for(let l of d(this,o,f))Object.prototype.hasOwnProperty.call(l,e)&&P.push(l[e]);return P}charCategorizer(e){return cTe(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:o,from:f,length:P}=this.doc.lineAt(e),d=this.charCategorizer(e),l=e-f,n=e-f;for(;l>0;){let c=ng(o,l,!1);if(d(o.slice(c,l))!=Ad.Word)break;l=c}for(;nt.length?t[0]:4});jl.lineSeparator=Eve;jl.readOnly=Ive;jl.phrases=Ba.define({compare(t,e){let o=Object.keys(t),f=Object.keys(e);return o.length==f.length&&o.every(P=>t[P]==e[P])}});jl.languageData=Mve;jl.changeFilter=Pve;jl.transactionFilter=Rve;jl.transactionExtender=Lve;hD.reconfigure=cl.define();function b_(t,e,o={}){let f={};for(let P of t)for(let d of Object.keys(P)){let l=P[d],n=f[d];if(n===void 0)f[d]=l;else if(!(n===l||l===void 0))if(Object.hasOwnProperty.call(o,d))f[d]=o[d](n,l);else throw new Error("Config merge conflict for field "+d)}for(let P in e)f[P]===void 0&&(f[P]=e[P]);return f}class pT{eq(e){return this==e}range(e,o=e){return $ae.create(e,o,this)}}pT.prototype.startSide=pT.prototype.endSide=0;pT.prototype.point=!1;pT.prototype.mapMode=tg.TrackDel;let $ae=class zve{constructor(e,o,f){this.from=e,this.to=o,this.value=f}static create(e,o,f){return new zve(e,o,f)}};function Vae(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class nce{constructor(e,o,f,P){this.from=e,this.to=o,this.value=f,this.maxPoint=P}get length(){return this.to[this.to.length-1]}findIndex(e,o,f,P=0){let d=f?this.to:this.from;for(let l=P,n=d.length;;){if(l==n)return l;let c=l+n>>1,b=d[c]-e||(f?this.value[c].endSide:this.value[c].startSide)-o;if(c==l)return b>=0?l:n;b>=0?n=c:l=c+1}}between(e,o,f,P){for(let d=this.findIndex(o,-1e9,!0),l=this.findIndex(f,1e9,!1,d);dy||w==y&&b.startSide>0&&b.endSide<=0)continue;(y-w||b.endSide-b.startSide)<0||(l<0&&(l=w),b.point&&(n=Math.max(n,y-w)),f.push(b),P.push(w-l),d.push(y-l))}return{mapped:f.length?new nce(P,d,f,n):null,pos:l}}}class Vu{constructor(e,o,f,P){this.chunkPos=e,this.chunk=o,this.nextLayer=f,this.maxPoint=P}static create(e,o,f,P){return new Vu(e,o,f,P)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let o of this.chunk)e+=o.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:o=[],sort:f=!1,filterFrom:P=0,filterTo:d=this.length}=e,l=e.filter;if(o.length==0&&!l)return this;if(f&&(o=o.slice().sort(Vae)),this.isEmpty)return o.length?Vu.of(o):this;let n=new Fve(this,null,-1).goto(0),c=0,b=[],i=new rS;for(;n.value||c=0){let O=o[c++];i.addInner(O.from,O.to,O.value)||b.push(O)}else n.rangeIndex==1&&n.chunkIndexthis.chunkEnd(n.chunkIndex)||dn.to||d=d&&e<=d+l.length&&l.between(d,e-d,o-d,f)===!1)return}this.nextLayer.between(e,o,f)}}iter(e=0){return MI.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,o=0){return MI.from(e).goto(o)}static compare(e,o,f,P,d=-1){let l=e.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=d),n=o.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=d),c=Ohe(l,n,f),b=new IL(l,c,d),i=new IL(n,c,d);f.iterGaps((O,w,y)=>She(b,O,i,w,y,P)),f.empty&&f.length==0&&She(b,0,i,0,0,P)}static eq(e,o,f=0,P){P==null&&(P=1e9-1);let d=e.filter(i=>!i.isEmpty&&o.indexOf(i)<0),l=o.filter(i=>!i.isEmpty&&e.indexOf(i)<0);if(d.length!=l.length)return!1;if(!d.length)return!0;let n=Ohe(d,l),c=new IL(d,n,0).goto(f),b=new IL(l,n,0).goto(f);for(;;){if(c.to!=b.to||!Uae(c.active,b.active)||c.point&&(!b.point||!c.point.eq(b.point)))return!1;if(c.to>P)return!0;c.next(),b.next()}}static spans(e,o,f,P,d=-1){let l=new IL(e,null,d).goto(o),n=o,c=l.openStart;for(;;){let b=Math.min(l.to,f);if(l.point){let i=l.activeForPoint(l.to),O=l.pointFromn&&(P.span(n,b,l.active,c),c=l.openEnd(b));if(l.to>f)return c+(l.point&&l.to>f?1:0);n=l.to,l.next()}}static of(e,o=!1){let f=new rS;for(let P of e instanceof $ae?[e]:o?uTe(e):e)f.add(P.from,P.to,P.value);return f.finish()}}Vu.empty=new Vu([],[],null,-1);function uTe(t){if(t.length>1)for(let e=t[0],o=1;o0)return t.slice().sort(Vae);e=f}return t}Vu.empty.nextLayer=Vu.empty;class rS{finishChunk(e){this.chunks.push(new nce(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,o,f){this.addInner(e,o,f)||(this.nextLayer||(this.nextLayer=new rS)).add(e,o,f)}addInner(e,o,f){let P=e-this.lastTo||f.startSide-this.last.endSide;if(P<=0&&(e-this.lastFrom||f.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return P<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(o-this.chunkStart),this.last=f,this.lastFrom=e,this.lastTo=o,this.value.push(f),f.point&&(this.maxPoint=Math.max(this.maxPoint,o-e)),!0)}addChunk(e,o){if((e-this.lastTo||o.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,o.maxPoint),this.chunks.push(o),this.chunkPos.push(e);let f=o.value.length-1;return this.last=o.value[f],this.lastFrom=o.from[f]+e,this.lastTo=o.to[f]+e,!0}finish(){return this.finishInner(Vu.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let o=Vu.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,o}}function Ohe(t,e,o){let f=new Map;for(let d of t)for(let l=0;l=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=f&&P.push(new Fve(l,o,f,d));return P.length==1?P[0]:new MI(P)}get startSide(){return this.value?this.value.startSide:0}goto(e,o=-1e9){for(let f of this.heap)f.goto(e,o);for(let f=this.heap.length>>1;f>=0;f--)cie(this.heap,f);return this.next(),this}forward(e,o){for(let f of this.heap)f.forward(e,o);for(let f=this.heap.length>>1;f>=0;f--)cie(this.heap,f);(this.to-e||this.value.endSide-o)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),cie(this.heap,0)}}}function cie(t,e){for(let o=t[e];;){let f=(e<<1)+1;if(f>=t.length)break;let P=t[f];if(f+1=0&&(P=t[f+1],f++),o.compare(P)<0)break;t[f]=o,t[e]=P,e=f}}class IL{constructor(e,o,f){this.minPoint=f,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=MI.from(e,o,f)}goto(e,o=-1e9){return this.cursor.goto(e,o),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=o,this.openStart=-1,this.next(),this}forward(e,o){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-o)<0;)this.removeActive(this.minActive);this.cursor.forward(e,o)}removeActive(e){SQ(this.active,e),SQ(this.activeTo,e),SQ(this.activeRank,e),this.minActive=khe(this.active,this.activeTo)}addActive(e){let o=0,{value:f,to:P,rank:d}=this.cursor;for(;o-1&&(this.activeTo[P]-this.cursor.from||this.active[P].endSide-this.cursor.startSide)<0){if(this.activeTo[P]>e){this.to=this.activeTo[P],this.endSide=this.active[P].endSide;break}this.removeActive(P),f&&SQ(f,P)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let d=this.cursor.value;if(!d.point)this.addActive(f),this.cursor.next();else if(o&&this.cursor.to==this.to&&this.cursor.from=0&&f[P]=0&&!(this.activeRank[f]e||this.activeTo[f]==e&&this.active[f].endSide>=this.point.endSide)&&o.push(this.active[f]);return o.reverse()}openEnd(e){let o=0;for(let f=this.activeTo.length-1;f>=0&&this.activeTo[f]>e;f--)o++;return o}}function She(t,e,o,f,P,d){t.goto(e),o.goto(f);let l=f+P,n=f,c=f-e;for(;;){let b=t.to+c-o.to||t.endSide-o.endSide,i=b<0?t.to+c:o.to,O=Math.min(i,l);if(t.point||o.point?t.point&&o.point&&(t.point==o.point||t.point.eq(o.point))&&Uae(t.activeForPoint(t.to),o.activeForPoint(o.to))||d.comparePoint(n,O,t.point,o.point):O>n&&!Uae(t.active,o.active)&&d.compareRange(n,O,t.active,o.active),i>l)break;n=i,b<=0&&t.next(),b>=0&&o.next()}}function Uae(t,e){if(t.length!=e.length)return!1;for(let o=0;o=e;f--)t[f+1]=t[f];t[e]=o}function khe(t,e){let o=-1,f=1e9;for(let P=0;P=e)return P;if(P==t.length)break;d+=t.charCodeAt(P)==9?o-d%o:1,P=ng(t,P)}return f===!0?-1:t.length}const Qae="ͼ",The=typeof Symbol>"u"?"__"+Qae:Symbol.for(Qae),Hae=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Che=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class oS{constructor(e,o){this.rules=[];let{finish:f}=o||{};function P(l){return/^@/.test(l)?[l]:l.split(/,\s*/)}function d(l,n,c,b){let i=[],O=/^@(\w+)\b/.exec(l[0]),w=O&&O[1]=="keyframes";if(O&&n==null)return c.push(l[0]+";");for(let y in n){let p=n[y];if(/&/.test(y))d(y.split(/,\s*/).map(a=>l.map(u=>a.replace(/&/,u))).reduce((a,u)=>a.concat(u)),p,c);else if(p&&typeof p=="object"){if(!O)throw new RangeError("The value of a property ("+y+") should be a primitive value.");d(P(y),p,i,w)}else p!=null&&i.push(y.replace(/_.*/,"").replace(/[A-Z]/g,a=>"-"+a.toLowerCase())+": "+p+";")}(i.length||w)&&c.push((f&&!O&&!b?l.map(f):l).join(", ")+" {"+i.join(" ")+"}")}for(let l in e)d(P(l),e[l],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let e=Che[The]||1;return Che[The]=e+1,Qae+e.toString(36)}static mount(e,o,f){let P=e[Hae],d=f&&f.nonce;P?d&&P.setNonce(d):P=new fTe(e,d),P.mount(Array.isArray(o)?o:[o])}}let Ahe=new Map;class fTe{constructor(e,o){let f=e.ownerDocument||e,P=f.defaultView;if(!e.head&&e.adoptedStyleSheets&&P.CSSStyleSheet){let d=Ahe.get(f);if(d)return e.adoptedStyleSheets=[d.sheet,...e.adoptedStyleSheets],e[Hae]=d;this.sheet=new P.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],Ahe.set(f,this)}else{this.styleTag=f.createElement("style"),o&&this.styleTag.setAttribute("nonce",o);let d=e.head||e;d.insertBefore(this.styleTag,d.firstChild)}this.modules=[],e[Hae]=this}mount(e){let o=this.sheet,f=0,P=0;for(let d=0;d-1&&(this.modules.splice(n,1),P--,n=-1),n==-1){if(this.modules.splice(P++,0,l),o)for(let c=0;c",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},dTe=typeof navigator<"u"&&/Mac/.test(navigator.platform),hTe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var eg=0;eg<10;eg++)iS[48+eg]=iS[96+eg]=String(eg);for(var eg=1;eg<=24;eg++)iS[eg+111]="F"+eg;for(var eg=65;eg<=90;eg++)iS[eg]=String.fromCharCode(eg+32),EI[eg]=String.fromCharCode(eg);for(var uie in iS)EI.hasOwnProperty(uie)||(EI[uie]=iS[uie]);function pTe(t){var e=dTe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||hTe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",o=!e&&t.key||(t.shiftKey?EI:iS)[t.keyCode]||t.key||"Unidentified";return o=="Esc"&&(o="Escape"),o=="Del"&&(o="Delete"),o=="Left"&&(o="ArrowLeft"),o=="Up"&&(o="ArrowUp"),o=="Right"&&(o="ArrowRight"),o=="Down"&&(o="ArrowDown"),o}function NH(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function Zae(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function mTe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function hH(t,e){if(!e.anchorNode)return!1;try{return Zae(t,e.anchorNode)}catch{return!1}}function cM(t){return t.nodeType==3?mT(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function $H(t,e,o,f){return o?Mhe(t,e,o,f,-1)||Mhe(t,e,o,f,1):!1}function PI(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function Mhe(t,e,o,f,P){for(;;){if(t==o&&e==f)return!0;if(e==(P<0?0:CO(t))){if(t.nodeName=="DIV")return!1;let d=t.parentNode;if(!d||d.nodeType!=1)return!1;e=PI(t)+(P<0?0:1),t=d}else if(t.nodeType==1){if(t=t.childNodes[e+(P<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=P<0?CO(t):0}else return!1}}function CO(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function WZ(t,e){let o=e?t.left:t.right;return{left:o,right:o,top:t.top,bottom:t.bottom}}function gTe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function vTe(t,e,o,f,P,d,l,n){let c=t.ownerDocument,b=c.defaultView||window;for(let i=t,O=!1;i&&!O;)if(i.nodeType==1){let w,y=i==c.body,p=1,a=1;if(y)w=gTe(b);else{if(/^(fixed|sticky)$/.test(getComputedStyle(i).position)&&(O=!0),i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth){i=i.assignedSlot||i.parentNode;continue}let m=i.getBoundingClientRect();p=m.width/i.offsetWidth,a=m.height/i.offsetHeight,w={left:m.left,right:m.left+i.clientWidth*p,top:m.top,bottom:m.top+i.clientHeight*a}}let u=0,h=0;if(P=="nearest")e.top0&&e.bottom>w.bottom+h&&(h=e.bottom-w.bottom+h+l)):e.bottom>w.bottom&&(h=e.bottom-w.bottom+l,o<0&&e.top-h0&&e.right>w.right+u&&(u=e.right-w.right+u+d)):e.right>w.right&&(u=e.right-w.right+d,o<0&&e.lefto.clientHeight||o.scrollWidth>o.clientWidth)return o;o=o.assignedSlot||o.parentNode}else if(o.nodeType==11)o=o.host;else break;return null}class bTe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:o,focusNode:f}=e;this.set(o,Math.min(e.anchorOffset,o?CO(o):0),f,Math.min(e.focusOffset,f?CO(f):0))}set(e,o,f,P){this.anchorNode=e,this.anchorOffset=o,this.focusNode=f,this.focusOffset=P}}let MA=null;function Nve(t){if(t.setActive)return t.setActive();if(MA)return t.focus(MA);let e=[];for(let o=t;o&&(e.push(o,o.scrollTop,o.scrollLeft),o!=o.ownerDocument);o=o.parentNode);if(t.focus(MA==null?{get preventScroll(){return MA={preventScroll:!0},!0}}:void 0),!MA){MA=!1;for(let o=0;oMath.max(1,t.scrollHeight-t.clientHeight-4)}class $g{constructor(e,o,f=!0){this.node=e,this.offset=o,this.precise=f}static before(e,o){return new $g(e.parentNode,PI(e),o)}static after(e,o){return new $g(e.parentNode,PI(e)+1,o)}}const rce=[];class id{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let o=this.posAtStart;for(let f of this.children){if(f==e)return o;o+=f.length+f.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,o){if(this.flags&2){let f=this.dom,P=null,d;for(let l of this.children){if(l.flags&7){if(!l.dom&&(d=P?P.nextSibling:f.firstChild)){let n=id.get(d);(!n||!n.parent&&n.canReuseDOM(l))&&l.reuseDOM(d)}l.sync(e,o),l.flags&=-8}if(d=P?P.nextSibling:f.firstChild,o&&!o.written&&o.node==f&&d!=l.dom&&(o.written=!0),l.dom.parentNode==f)for(;d&&d!=l.dom;)d=Phe(d);else f.insertBefore(l.dom,d);P=l.dom}for(d=P?P.nextSibling:f.firstChild,d&&o&&o.node==f&&(o.written=!0);d;)d=Phe(d)}else if(this.flags&1)for(let f of this.children)f.flags&7&&(f.sync(e,o),f.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,o){let f;if(e==this.dom)f=this.dom.childNodes[o];else{let P=CO(e)==0?0:o==0?-1:1;for(;;){let d=e.parentNode;if(d==this.dom)break;P==0&&d.firstChild!=d.lastChild&&(e==d.firstChild?P=-1:P=1),e=d}P<0?f=e:f=e.nextSibling}if(f==this.dom.firstChild)return 0;for(;f&&!id.get(f);)f=f.nextSibling;if(!f)return this.length;for(let P=0,d=0;;P++){let l=this.children[P];if(l.dom==f)return d;d+=l.length+l.breakAfter}}domBoundsAround(e,o,f=0){let P=-1,d=-1,l=-1,n=-1;for(let c=0,b=f,i=f;co)return O.domBoundsAround(e,o,b);if(w>=e&&P==-1&&(P=c,d=b),b>o&&O.dom.parentNode==this.dom){l=c,n=i;break}i=w,b=w+O.breakAfter}return{from:d,to:n<0?f+this.length:n,startDOM:(P?this.children[P-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:l=0?this.children[l].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let o=this.parent;o;o=o.parent){if(e&&(o.flags|=2),o.flags&1)return;o.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let o=e.parent;if(!o)return e;e=o}}replaceChildren(e,o,f=rce){this.markDirty();for(let P=e;Pthis.pos||e==this.pos&&(o>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let f=this.children[--this.i];this.pos-=f.length+f.breakAfter}}}function jve(t,e,o,f,P,d,l,n,c){let{children:b}=t,i=b.length?b[e]:null,O=d.length?d[d.length-1]:null,w=O?O.breakAfter:l;if(!(e==f&&i&&!l&&!w&&d.length<2&&i.merge(o,P,d.length?O:null,o==0,n,c))){if(f0&&(!l&&d.length&&i.merge(o,i.length,d[0],!1,n,0)?i.breakAfter=d.shift().breakAfter:(o2);var Ua={mac:Ihe||/Mac/.test(Dv.platform),windows:/Win/.test(Dv.platform),linux:/Linux|X11/.test(Dv.platform),ie:YZ,ie_version:Hve?qae.documentMode||6:Yae?+Yae[1]:Wae?+Wae[1]:0,gecko:Rhe,gecko_version:Rhe?+(/Firefox\/(\d+)/.exec(Dv.userAgent)||[0,0])[1]:0,chrome:!!fie,chrome_version:fie?+fie[1]:0,ios:Ihe,android:/Android\b/.test(Dv.userAgent),webkit:Lhe,safari:Zve,webkit_version:Lhe?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:qae.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const wTe=256;class AO extends id{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,o){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(o&&o.node==this.dom&&(o.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,o,f){return this.flags&8||f&&(!(f instanceof AO)||this.length-(o-e)+f.length>wTe||f.flags&8)?!1:(this.text=this.text.slice(0,e)+(f?f.text:"")+this.text.slice(o),this.markDirty(),!0)}split(e){let o=new AO(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),o.flags|=this.flags&8,o}localPosFromDOM(e,o){return e==this.dom?o:o?this.text.length:0}domAtPos(e){return new $g(this.dom,e)}domBoundsAround(e,o,f){return{from:f,to:f+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,o){return OTe(this.dom,e,o)}}class MO extends id{constructor(e,o=[],f=0){super(),this.mark=e,this.children=o,this.length=f;for(let P of o)P.setParent(this)}setAttrs(e){if($ve(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let o in this.mark.attrs)e.setAttribute(o,this.mark.attrs[o]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,o){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,o)}merge(e,o,f,P,d,l){return f&&(!(f instanceof MO&&f.mark.eq(this.mark))||e&&d<=0||oe&&o.push(f=e&&(P=d),f=c,d++}let l=this.length-e;return this.length=e,P>-1&&(this.children.length=P,this.markDirty()),new MO(this.mark,o,l)}domAtPos(e){return qve(this,e)}coordsAt(e,o){return Yve(this,e,o)}}function OTe(t,e,o){let f=t.nodeValue.length;e>f&&(e=f);let P=e,d=e,l=0;e==0&&o<0||e==f&&o>=0?Ua.chrome||Ua.gecko||(e?(P--,l=1):d=0)?0:n.length-1];return Ua.safari&&!l&&c.width==0&&(c=Array.prototype.find.call(n,b=>b.width)||c),l?WZ(c,l<0):c||null}class W4 extends id{static create(e,o,f){return new W4(e,o,f)}constructor(e,o,f){super(),this.widget=e,this.length=o,this.side=f,this.prevWidget=null}split(e){let o=W4.create(this.widget,this.length-e,this.side);return this.length-=e,o}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,o,f,P,d,l){return f&&(!(f instanceof W4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0)?$g.before(this.dom):$g.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,o){let f=this.widget.coordsAt(this.dom,e,o);if(f)return f;let P=this.dom.getClientRects(),d=null;if(!P.length)return null;let l=this.side?this.side<0:e>0;for(let n=l?P.length-1:0;d=P[n],!(e>0?n==0:n==P.length-1||d.top0?$g.before(this.dom):$g.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ru.empty}get isHidden(){return!0}}AO.prototype.children=W4.prototype.children=uM.prototype.children=rce;function qve(t,e){let o=t.dom,{children:f}=t,P=0;for(let d=0;Pd&&e0;d--){let l=f[d-1];if(l.dom.parentNode==o)return l.domAtPos(l.length)}for(let d=P;d0&&e instanceof MO&&P.length&&(f=P[P.length-1])instanceof MO&&f.mark.eq(e.mark)?Wve(f,e.children[0],o-1):(P.push(e),e.setParent(t)),t.length+=e.length}function Yve(t,e,o){let f=null,P=-1,d=null,l=-1;function n(b,i){for(let O=0,w=0;O=i&&(y.children.length?n(y,i-w):(!d||d.isHidden&&o>0)&&(p>i||w==p&&y.getSide()>0)?(d=y,l=i-w):(w-1?1:0)!=P.length-(o&&P.indexOf(o)>-1?1:0))return!1;for(let d of f)if(d!=o&&(P.indexOf(d)==-1||t[d]!==e[d]))return!1;return!0}function Gae(t,e,o){let f=!1;if(e)for(let P in e)o&&P in o||(f=!0,P=="style"?t.style.cssText="":t.removeAttribute(P));if(o)for(let P in o)e&&e[P]==o[P]||(f=!0,P=="style"?t.style.cssText=o[P]:t.setAttribute(P,o[P]));return f}function kTe(t){let e=Object.create(null);for(let o=0;o0&&this.children[f-1].length==0;)this.children[--f].destroy();return this.children.length=f,this.markDirty(),this.length=e,o}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){oce(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,o){Wve(this,e,o)}addLineDeco(e){let o=e.spec.attributes,f=e.spec.class;o&&(this.attrs=Xae(o,this.attrs||{})),f&&(this.attrs=Xae({class:f},this.attrs||{}))}domAtPos(e){return qve(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,o){var f;this.dom?this.flags&4&&($ve(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Gae(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,o);let P=this.dom.lastChild;for(;P&&id.get(P)instanceof MO;)P=P.lastChild;if(!P||!this.length||P.nodeName!="BR"&&((f=id.get(P))===null||f===void 0?void 0:f.isEditable)==!1&&(!Ua.ios||!this.children.some(d=>d instanceof AO))){let d=document.createElement("BR");d.cmIgnore=!0,this.dom.appendChild(d)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,o;for(let f of this.children){if(!(f instanceof AO)||/[^ -~]/.test(f.text))return null;let P=cM(f.dom);if(P.length!=1)return null;e+=P[0].width,o=P[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:o}:null}coordsAt(e,o){let f=Yve(this,e,o);if(!this.children.length&&f&&this.parent){let{heightOracle:P}=this.parent.view.viewState,d=f.bottom-f.top;if(Math.abs(d-P.lineHeight)<2&&P.textHeight=o){if(d instanceof _p)return d;if(l>o)break}P=l+d.breakAfter}return null}}class J4 extends id{constructor(e,o,f){super(),this.widget=e,this.length=o,this.deco=f,this.breakAfter=0,this.prevWidget=null}merge(e,o,f,P,d,l){return f&&(!(f instanceof J4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0}}class wx{eq(e){return!1}updateDOM(e,o){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,o,f){return null}get isHidden(){return!1}destroy(e){}}var T0=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(T0||(T0={}));class es extends pT{constructor(e,o,f,P){super(),this.startSide=e,this.endSide=o,this.widget=f,this.spec=P}get heightRelevant(){return!1}static mark(e){return new pD(e)}static widget(e){let o=Math.max(-1e4,Math.min(1e4,e.side||0)),f=!!e.block;return o+=f&&!e.inlineOrder?o>0?3e8:-4e8:o>0?1e8:-1e8,new aS(e,o,o,f,e.widget||null,!1)}static replace(e){let o=!!e.block,f,P;if(e.isBlockGap)f=-5e8,P=4e8;else{let{start:d,end:l}=Xve(e,o);f=(d?o?-3e8:-1:5e8)-1,P=(l?o?2e8:1:-6e8)+1}return new aS(e,f,P,o,e.widget||null,!0)}static line(e){return new mD(e)}static set(e,o=!1){return Vu.of(e,o)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}es.none=Vu.empty;class pD extends es{constructor(e){let{start:o,end:f}=Xve(e);super(o?-1:5e8,f?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var o,f;return this==e||e instanceof pD&&this.tagName==e.tagName&&(this.class||((o=this.attrs)===null||o===void 0?void 0:o.class))==(e.class||((f=e.attrs)===null||f===void 0?void 0:f.class))&&oce(this.attrs,e.attrs,"class")}range(e,o=e){if(e>=o)throw new RangeError("Mark decorations may not be empty");return super.range(e,o)}}pD.prototype.point=!1;class mD extends es{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof mD&&this.spec.class==e.spec.class&&oce(this.spec.attributes,e.spec.attributes)}range(e,o=e){if(o!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,o)}}mD.prototype.mapMode=tg.TrackBefore;mD.prototype.point=!0;class aS extends es{constructor(e,o,f,P,d,l){super(o,f,d,e),this.block=P,this.isReplace=l,this.mapMode=P?o<=0?tg.TrackBefore:tg.TrackAfter:tg.TrackDel}get type(){return this.startSide!=this.endSide?T0.WidgetRange:this.startSide<=0?T0.WidgetBefore:T0.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof aS&&TTe(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,o=e){if(this.isReplace&&(e>o||e==o&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&o!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,o)}}aS.prototype.point=!0;function Xve(t,e=!1){let{inclusiveStart:o,inclusiveEnd:f}=t;return o==null&&(o=t.inclusive),f==null&&(f=t.inclusive),{start:o??e,end:f??e}}function TTe(t,e){return t==e||!!(t&&e&&t.compare(e))}function Kae(t,e,o,f=0){let P=o.length-1;P>=0&&o[P]+f>=t?o[P]=Math.max(o[P],e):o.push(t,e)}class cI{constructor(e,o,f,P){this.doc=e,this.pos=o,this.end=f,this.disallowBlockEffectsFor=P,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=o}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof J4&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new _p),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(TQ(new uM(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof J4)&&this.getLine()}buildText(e,o,f){for(;e>0;){if(this.textOff==this.text.length){let{value:d,lineBreak:l,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(l){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=d,this.textOff=0}let P=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(o.slice(o.length-f)),this.getLine().append(TQ(new AO(this.text.slice(this.textOff,this.textOff+P)),o),f),this.atCursorPos=!0,this.textOff+=P,e-=P,f=0}}span(e,o,f,P){this.buildText(o-e,f,P),this.pos=o,this.openStart<0&&(this.openStart=P)}point(e,o,f,P,d,l){if(this.disallowBlockEffectsFor[l]&&f instanceof aS){if(f.block)throw new RangeError("Block decorations may not be specified via plugins");if(o>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let n=o-e;if(f instanceof aS)if(f.block)f.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new J4(f.widget||new Bhe("div"),n,f));else{let c=W4.create(f.widget||new Bhe("span"),n,n?0:f.startSide),b=this.atCursorPos&&!c.isEditable&&d<=P.length&&(e0),i=!c.isEditable&&(eP.length||f.startSide<=0),O=this.getLine();this.pendingBuffer==2&&!b&&!c.isEditable&&(this.pendingBuffer=0),this.flushBuffer(P),b&&(O.append(TQ(new uM(1),P),d),d=P.length+Math.max(0,d-P.length)),O.append(TQ(c,P),d),this.atCursorPos=i,this.pendingBuffer=i?eP.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=P.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(f);n&&(this.textOff+n<=this.text.length?this.textOff+=n:(this.skip+=n-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=o),this.openStart<0&&(this.openStart=d)}static build(e,o,f,P,d){let l=new cI(e,o,f,d);return l.openEnd=Vu.spans(P,o,f,l),l.openStart<0&&(l.openStart=l.openEnd),l.finish(l.openEnd),l}}function TQ(t,e){for(let o of e)t=new MO(o,[t],t.length);return t}class Bhe extends wx{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Gve=Ba.define(),Kve=Ba.define(),Jve=Ba.define(),eye=Ba.define(),Jae=Ba.define(),tye=Ba.define(),nye=Ba.define(),rye=Ba.define({combine:t=>t.some(e=>e)}),oye=Ba.define({combine:t=>t.some(e=>e)});class KA{constructor(e,o="nearest",f="nearest",P=5,d=5,l=!1){this.range=e,this.y=o,this.x=f,this.yMargin=P,this.xMargin=d,this.isSnapshot=l}map(e){return e.empty?this:new KA(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new KA(Yo.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const CQ=cl.define({map:(t,e)=>t.map(e)});function tb(t,e,o){let f=t.facet(eye);f.length?f[0](e):window.onerror?window.onerror(String(e),o,void 0,void 0,e):o?console.error(o+":",e):console.error(e)}const XZ=Ba.define({combine:t=>t.length?t[0]:!0});let CTe=0;const WL=Ba.define();class Wd{constructor(e,o,f,P,d){this.id=e,this.create=o,this.domEventHandlers=f,this.domEventObservers=P,this.extension=d(this)}static define(e,o){const{eventHandlers:f,eventObservers:P,provide:d,decorations:l}=o||{};return new Wd(CTe++,e,f,P,n=>{let c=[WL.of(n)];return l&&c.push(RI.of(b=>{let i=b.plugin(n);return i?l(i):es.none})),d&&c.push(d(n)),c})}static fromClass(e,o){return Wd.define(f=>new e(f),o)}}class die{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let o=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(o)}catch(f){if(tb(o.state,f,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(o){tb(e.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var o;if(!((o=this.value)===null||o===void 0)&&o.destroy)try{this.value.destroy()}catch(f){tb(e.state,f,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const iye=Ba.define(),ice=Ba.define(),RI=Ba.define(),ace=Ba.define(),aye=Ba.define();function zhe(t,e,o){let f=t.state.facet(aye);if(!f.length)return f;let P=f.map(l=>l instanceof Function?l(t):l),d=[];return Vu.spans(P,e,o,{point(){},span(l,n,c,b){let i=d;for(let O=c.length-1;O>=0;O--,b--){let w=c[O].spec.bidiIsolate,y;if(w!=null)if(b>0&&i.length&&(y=i[i.length-1]).to==l&&y.direction==w)y.to=n,i=y.inner;else{let p={from:l,to:n,direction:w,inner:[]};i.push(p),i=p.inner}}}}),d}const sye=Ba.define();function lye(t){let e=0,o=0,f=0,P=0;for(let d of t.state.facet(sye)){let l=d(t);l&&(l.left!=null&&(e=Math.max(e,l.left)),l.right!=null&&(o=Math.max(o,l.right)),l.top!=null&&(f=Math.max(f,l.top)),l.bottom!=null&&(P=Math.max(P,l.bottom)))}return{left:e,right:o,top:f,bottom:P}}const YL=Ba.define();class nb{constructor(e,o,f,P){this.fromA=e,this.toA=o,this.fromB=f,this.toB=P}join(e){return new nb(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let o=e.length,f=this;for(;o>0;o--){let P=e[o-1];if(!(P.fromA>f.toA)){if(P.toAi)break;d+=2}if(!c)return f;new nb(c.fromA,c.toA,c.fromB,c.toB).addToSet(f),l=c.toA,n=c.toB}}}class VH{constructor(e,o,f){this.view=e,this.state=o,this.transactions=f,this.flags=0,this.startState=e.state,this.changes=wp.empty(this.startState.doc.length);for(let d of f)this.changes=this.changes.compose(d.changes);let P=[];this.changes.iterChangedRanges((d,l,n,c)=>P.push(new nb(d,l,n,c))),this.changedRanges=P}static create(e,o,f){return new VH(e,o,f)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var qd=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(qd||(qd={}));const LI=qd.LTR,cye=qd.RTL;function uye(t){let e=[];for(let o=0;o=o){if(n.level==f)return l;(d<0||(P!=0?P<0?n.fromo:e[d].level>n.level))&&(d=l)}}if(d<0)throw new RangeError("Index out of range");return d}}function fye(t,e){if(t.length!=e.length)return!1;for(let o=0;o=0;a-=3)if(Y2[a+1]==-y){let u=Y2[a+2],h=u&2?P:u&4?u&1?d:P:0;h&&(pf[O]=pf[Y2[a]]=h),n=a;break}}else{if(Y2.length==189)break;Y2[n++]=O,Y2[n++]=w,Y2[n++]=c}else if((p=pf[O])==2||p==1){let a=p==P;c=a?0:1;for(let u=n-3;u>=0;u-=3){let h=Y2[u+2];if(h&2)break;if(a)Y2[u+2]|=2;else{if(h&4)break;Y2[u+2]|=4}}}}}function ITe(t,e,o,f){for(let P=0,d=f;P<=o.length;P++){let l=P?o[P-1].to:t,n=Pc;)p==u&&(p=o[--a].from,u=a?o[a-1].to:t),pf[--p]=y;c=i}else d=b,c++}}}function tse(t,e,o,f,P,d,l){let n=f%2?2:1;if(f%2==P%2)for(let c=e,b=0;cc&&l.push(new Y4(c,a.from,y));let u=a.direction==LI!=!(y%2);nse(t,u?f+1:f,P,a.inner,a.from,a.to,l),c=a.to}p=a.to}else{if(p==o||(i?pf[p]!=n:pf[p]==n))break;p++}w?tse(t,c,p,f+1,P,w,l):ce;){let i=!0,O=!1;if(!b||c>d[b-1].to){let a=pf[c-1];a!=n&&(i=!1,O=a==16)}let w=!i&&n==1?[]:null,y=i?f:f+1,p=c;e:for(;;)if(b&&p==d[b-1].to){if(O)break e;let a=d[--b];if(!i)for(let u=a.from,h=b;;){if(u==e)break e;if(h&&d[h-1].to==u)u=d[--h].from;else{if(pf[u-1]==n)break e;break}}if(w)w.push(a);else{a.topf.length;)pf[pf.length]=256;let f=[],P=e==LI?0:1;return nse(t,P,P,o,0,t.length,f),f}function dye(t){return[new Y4(0,t,0)]}let hye="";function BTe(t,e,o,f,P){var d;let l=f.head-t.from,n=-1;if(l==0){if(!P||!t.length)return null;e[0].level!=o&&(l=e[0].side(!1,o),n=0)}else if(l==t.length){if(P)return null;let w=e[e.length-1];w.level!=o&&(l=w.side(!0,o),n=e.length-1)}n<0&&(n=Y4.find(e,l,(d=f.bidiLevel)!==null&&d!==void 0?d:-1,f.assoc));let c=e[n];l==c.side(P,o)&&(c=e[n+=P?1:-1],l=c.side(!P,o));let b=P==(c.dir==o),i=ng(t.text,l,b);if(hye=t.text.slice(Math.min(l,i),Math.max(l,i)),i!=c.side(P,o))return Yo.cursor(i+t.from,b?-1:1,c.level);let O=n==(P?e.length-1:0)?null:e[n+(P?1:-1)];return!O&&c.level!=o?Yo.cursor(P?t.to:t.from,P?-1:1,o):O&&O.level0&&f.length&&(f.every(({fromA:b,toA:i})=>ithis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let P=-1;this.view.inputState.composing>=0&&(!((o=this.domChanged)===null||o===void 0)&&o.newSel?P=this.domChanged.newSel.head:!jTe(e.changes,this.hasComposition)&&!e.selectionSet&&(P=e.state.selection.main.head));let d=P>-1?FTe(this.view,e.changes,P):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:b,to:i}=this.hasComposition;f=new nb(b,i,e.changes.mapPos(b,-1),e.changes.mapPos(i,1)).addToSet(f.slice())}this.hasComposition=d?{from:d.range.fromB,to:d.range.toB}:null,(Ua.ie||Ua.chrome)&&!d&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let l=this.decorations,n=this.updateDeco(),c=VTe(l,n,e.changes);return f=nb.extendWithRanges(f,c),!(this.flags&7)&&f.length==0?!1:(this.updateInner(f,e.startState.doc.length,d),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,o,f){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,o,f);let{observer:P}=this.view;P.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let l=Ua.chrome||Ua.ios?{node:P.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,l),this.flags&=-8,l&&(l.written||P.selectionRange.focusNode!=l.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(l=>l.flags&=-9);let d=[];if(this.view.viewport.from||this.view.viewport.to=0?P[l]:null;if(!n)break;let{fromA:c,toA:b,fromB:i,toB:O}=n,w,y,p,a;if(f&&f.range.fromBi){let _=cI.build(this.view.state.doc,i,f.range.fromB,this.decorations,this.dynamicDecorationMap),S=cI.build(this.view.state.doc,f.range.toB,O,this.decorations,this.dynamicDecorationMap);y=_.breakAtStart,p=_.openStart,a=S.openEnd;let A=this.compositionView(f);S.breakAtStart?A.breakAfter=1:S.content.length&&A.merge(A.length,A.length,S.content[0],!1,S.openStart,0)&&(A.breakAfter=S.content[0].breakAfter,S.content.shift()),_.content.length&&A.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),w=_.content.concat(A).concat(S.content)}else({content:w,breakAtStart:y,openStart:p,openEnd:a}=cI.build(this.view.state.doc,i,O,this.decorations,this.dynamicDecorationMap));let{i:u,off:h}=d.findPos(b,1),{i:m,off:v}=d.findPos(c,-1);jve(this,m,v,u,h,w,y,p,a)}f&&this.fixCompositionDOM(f)}compositionView(e){let o=new AO(e.text.nodeValue);o.flags|=8;for(let{deco:P}of e.marks)o=new MO(P,[o],o.length);let f=new _p;return f.append(o,0),f}fixCompositionDOM(e){let o=(d,l)=>{l.flags|=8|(l.children.some(c=>c.flags&7)?1:0),this.markedForComposition.add(l);let n=id.get(d);n&&n!=l&&(n.dom=null),l.setDOM(d)},f=this.childPos(e.range.fromB,1),P=this.children[f.i];o(e.line,P);for(let d=e.marks.length-1;d>=-1;d--)f=P.childPos(f.off,1),P=P.children[f.i],o(d>=0?e.marks[d].node:e.text,P)}updateSelection(e=!1,o=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let f=this.view.root.activeElement,P=f==this.dom,d=!P&&hH(this.dom,this.view.observer.selectionRange)&&!(f&&this.dom.contains(f));if(!(P||o||d))return;let l=this.forceSelection;this.forceSelection=!1;let n=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(n.anchor)),b=n.empty?c:this.moveToLine(this.domAtPos(n.head));if(Ua.gecko&&n.empty&&!this.hasComposition&&zTe(c)){let O=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(O,c.node.childNodes[c.offset]||null)),c=b=new $g(O,0),l=!0}let i=this.view.observer.selectionRange;(l||!i.focusNode||!$H(c.node,c.offset,i.anchorNode,i.anchorOffset)||!$H(b.node,b.offset,i.focusNode,i.focusOffset))&&(this.view.observer.ignore(()=>{Ua.android&&Ua.chrome&&this.dom.contains(i.focusNode)&&UTe(i.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let O=NH(this.view.root);if(O)if(n.empty){if(Ua.gecko){let w=NTe(c.node,c.offset);if(w&&w!=3){let y=mye(c.node,c.offset,w==1?1:-1);y&&(c=new $g(y.node,y.offset))}}O.collapse(c.node,c.offset),n.bidiLevel!=null&&O.caretBidiLevel!==void 0&&(O.caretBidiLevel=n.bidiLevel)}else if(O.extend){O.collapse(c.node,c.offset);try{O.extend(b.node,b.offset)}catch{}}else{let w=document.createRange();n.anchor>n.head&&([c,b]=[b,c]),w.setEnd(b.node,b.offset),w.setStart(c.node,c.offset),O.removeAllRanges(),O.addRange(w)}d&&this.view.root.activeElement==this.dom&&(this.dom.blur(),f&&f.focus())}),this.view.observer.setSelectionRange(c,b)),this.impreciseAnchor=c.precise?null:new $g(i.anchorNode,i.anchorOffset),this.impreciseHead=b.precise?null:new $g(i.focusNode,i.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,o=e.state.selection.main,f=NH(e.root),{anchorNode:P,anchorOffset:d}=e.observer.selectionRange;if(!f||!o.empty||!o.assoc||!f.modify)return;let l=_p.find(this,o.head);if(!l)return;let n=l.posAtStart;if(o.head==n||o.head==n+l.length)return;let c=this.coordsAt(o.head,-1),b=this.coordsAt(o.head,1);if(!c||!b||c.bottom>b.top)return;let i=this.domAtPos(o.head+o.assoc);f.collapse(i.node,i.offset),f.modify("move",o.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let O=e.observer.selectionRange;e.docView.posFromDOM(O.anchorNode,O.anchorOffset)!=o.from&&f.collapse(P,d)}moveToLine(e){let o=this.dom,f;if(e.node!=o)return e;for(let P=e.offset;!f&&P=0;P--){let d=id.get(o.childNodes[P]);d instanceof _p&&(f=d.domAtPos(d.length))}return f?new $g(f.node,f.offset,!0):e}nearest(e){for(let o=e;o;){let f=id.get(o);if(f&&f.rootView==this)return f;o=o.parentNode}return null}posFromDOM(e,o){let f=this.nearest(e);if(!f)throw new RangeError("Trying to find position for a DOM position outside of the document");return f.localPosFromDOM(e,o)+f.posAtStart}domAtPos(e){let{i:o,off:f}=this.childCursor().findPos(e,-1);for(;o=0;l--){let n=this.children[l],c=d-n.breakAfter,b=c-n.length;if(ce||n.covers(1))&&(!f||n instanceof _p&&!(f instanceof _p&&o>=0))&&(f=n,P=b),d=b}return f?f.coordsAt(e-P,o):null}coordsForChar(e){let{i:o,off:f}=this.childPos(e,1),P=this.children[o];if(!(P instanceof _p))return null;for(;P.children.length;){let{i:n,off:c}=P.childPos(f,1);for(;;n++){if(n==P.children.length)return null;if((P=P.children[n]).length)break}f=c}if(!(P instanceof AO))return null;let d=ng(P.text,f);if(d==f)return null;let l=mT(P.dom,f,d).getClientRects();for(let n=0;nMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,n=-1,c=this.view.textDirection==qd.LTR;for(let b=0,i=0;iP)break;if(b>=f){let y=O.dom.getBoundingClientRect();if(o.push(y.height),l){let p=O.dom.lastChild,a=p?cM(p):[];if(a.length){let u=a[a.length-1],h=c?u.right-y.left:y.right-u.left;h>n&&(n=h,this.minWidth=d,this.minWidthFrom=b,this.minWidthTo=w)}}}b=w+O.breakAfter}return o}textDirectionAt(e){let{i:o}=this.childPos(e,1);return getComputedStyle(this.children[o].dom).direction=="rtl"?qd.RTL:qd.LTR}measureTextSize(){for(let d of this.children)if(d instanceof _p){let l=d.measureTextSize();if(l)return l}let e=document.createElement("div"),o,f,P;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let d=cM(e.firstChild)[0];o=e.getBoundingClientRect().height,f=d?d.width/27:7,P=d?d.height:o,e.remove()}),{lineHeight:o,charWidth:f,textHeight:P}}childCursor(e=this.length){let o=this.children.length;return o&&(e-=this.children[--o].length),new Uve(this.children,e,o)}computeBlockGapDeco(){let e=[],o=this.view.viewState;for(let f=0,P=0;;P++){let d=P==o.viewports.length?null:o.viewports[P],l=d?d.from-1:this.length;if(l>f){let n=(o.lineBlockAt(l).bottom-o.lineBlockAt(f).top)/this.view.scaleY;e.push(es.replace({widget:new Nhe(n),block:!0,inclusive:!0,isBlockGap:!0}).range(f,l))}if(!d)break;f=d.to+1}return es.set(e)}updateDeco(){let e=this.view.state.facet(RI).map((o,f)=>(this.dynamicDecorationMap[f]=typeof o=="function")?o(this.view):o);for(let o=e.length;oo.anchor?-1:1),P;if(!f)return;!o.empty&&(P=this.coordsAt(o.anchor,o.anchor>o.head?-1:1))&&(f={left:Math.min(f.left,P.left),top:Math.min(f.top,P.top),right:Math.max(f.right,P.right),bottom:Math.max(f.bottom,P.bottom)});let d=lye(this.view),l={left:f.left-d.left,top:f.top-d.top,right:f.right+d.right,bottom:f.bottom+d.bottom},{offsetWidth:n,offsetHeight:c}=this.view.scrollDOM;vTe(this.view.scrollDOM,l,o.head0)f=f.childNodes[P-1],P=CO(f);else break}if(o>=0)for(let f=t,P=e;;){if(f.nodeType==3)return{node:f,offset:P};if(f.nodeType==1&&P=0)f=f.childNodes[P],P=0;else break}return null}function NTe(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e{fe.from&&(o=!0)}),o}function QTe(t,e,o=1){let f=t.charCategorizer(e),P=t.doc.lineAt(e),d=e-P.from;if(P.length==0)return Yo.cursor(e);d==0?o=1:d==P.length&&(o=-1);let l=d,n=d;o<0?l=ng(P.text,d,!1):n=ng(P.text,d);let c=f(P.text.slice(l,n));for(;l>0;){let b=ng(P.text,l,!1);if(f(P.text.slice(b,l))!=c)break;l=b}for(;nt?e.left-t:Math.max(0,t-e.right)}function ZTe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function hie(t,e){return t.tope.top+1}function $he(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function rse(t,e,o){let f,P,d,l,n=!1,c,b,i,O;for(let p=t.firstChild;p;p=p.nextSibling){let a=cM(p);for(let u=0;uv||l==v&&d>m){f=p,P=h,d=m,l=v;let _=v?o0?u0)}m==0?o>h.bottom&&(!i||i.bottomh.top)&&(b=p,O=h):i&&hie(i,h)?i=Vhe(i,h.bottom):O&&hie(O,h)&&(O=$he(O,h.top))}}if(i&&i.bottom>=o?(f=c,P=i):O&&O.top<=o&&(f=b,P=O),!f)return{node:t,offset:0};let w=Math.max(P.left,Math.min(P.right,e));if(f.nodeType==3)return Uhe(f,w,o);if(n&&f.contentEditable!="false")return rse(f,w,o);let y=Array.prototype.indexOf.call(t.childNodes,f)+(e>=(P.left+P.right)/2?1:0);return{node:t,offset:y}}function Uhe(t,e,o){let f=t.nodeValue.length,P=-1,d=1e9,l=0;for(let n=0;no?i.top-o:o-i.bottom)-1;if(i.left-1<=e&&i.right+1>=e&&O=(i.left+i.right)/2,y=w;if((Ua.chrome||Ua.gecko)&&mT(t,n).getBoundingClientRect().left==i.right&&(y=!w),O<=0)return{node:t,offset:n+(y?1:0)};P=n+(y?1:0),d=O}}}return{node:t,offset:P>-1?P:l>0?t.nodeValue.length:0}}function gye(t,e,o,f=-1){var P,d;let l=t.contentDOM.getBoundingClientRect(),n=l.top+t.viewState.paddingTop,c,{docHeight:b}=t.viewState,{x:i,y:O}=e,w=O-n;if(w<0)return 0;if(w>b)return t.state.doc.length;for(let _=t.viewState.heightOracle.textHeight/2,S=!1;c=t.elementAtHeight(w),c.type!=T0.Text;)for(;w=f>0?c.bottom+_:c.top-_,!(w>=0&&w<=b);){if(S)return o?null:0;S=!0,f=-f}O=n+w;let y=c.from;if(yt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:o?null:jhe(t,l,c,i,O);let p=t.dom.ownerDocument,a=t.root.elementFromPoint?t.root:p,u=a.elementFromPoint(i,O);u&&!t.contentDOM.contains(u)&&(u=null),u||(i=Math.max(l.left+1,Math.min(l.right-1,i)),u=a.elementFromPoint(i,O),u&&!t.contentDOM.contains(u)&&(u=null));let h,m=-1;if(u&&((P=t.docView.nearest(u))===null||P===void 0?void 0:P.isEditable)!=!1){if(p.caretPositionFromPoint){let _=p.caretPositionFromPoint(i,O);_&&({offsetNode:h,offset:m}=_)}else if(p.caretRangeFromPoint){let _=p.caretRangeFromPoint(i,O);_&&({startContainer:h,startOffset:m}=_,(!t.contentDOM.contains(h)||Ua.safari&&qTe(h,m,i)||Ua.chrome&&WTe(h,m,i))&&(h=void 0))}}if(!h||!t.docView.dom.contains(h)){let _=_p.find(t.docView,y);if(!_)return w>c.top+c.height/2?c.to:c.from;({node:h,offset:m}=rse(_.dom,i,O))}let v=t.docView.nearest(h);if(!v)return null;if(v.isWidget&&((d=v.dom)===null||d===void 0?void 0:d.nodeType)==1){let _=v.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?v.posAtStart:v.posAtEnd}else return v.localPosFromDOM(h,m)+v.posAtStart}function jhe(t,e,o,f,P){let d=Math.round((f-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&o.height>t.defaultLineHeight*1.5){let n=t.viewState.heightOracle.textHeight,c=Math.floor((P-o.top-(t.defaultLineHeight-n)*.5)/n);d+=c*t.viewState.heightOracle.lineLength}let l=t.state.sliceDoc(o.from,o.to);return o.from+jae(l,d,t.state.tabSize)}function qTe(t,e,o){let f;if(t.nodeType!=3||e!=(f=t.nodeValue.length))return!1;for(let P=t.nextSibling;P;P=P.nextSibling)if(P.nodeType!=1||P.nodeName!="BR")return!1;return mT(t,f-1,f).getBoundingClientRect().left>o}function WTe(t,e,o){if(e!=0)return!1;for(let P=t;;){let d=P.parentNode;if(!d||d.nodeType!=1||d.firstChild!=P)return!1;if(d.classList.contains("cm-line"))break;P=d}let f=t.nodeType==1?t.getBoundingClientRect():mT(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return o-f.left>5}function ose(t,e){let o=t.lineBlockAt(e);if(Array.isArray(o.type)){for(let f of o.type)if(f.to>e||f.to==e&&(f.to==o.to||f.type==T0.Text))return f}return o}function YTe(t,e,o,f){let P=ose(t,e.head),d=!f||P.type!=T0.Text||!(t.lineWrapping||P.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>P.from?e.head-1:e.head);if(d){let l=t.dom.getBoundingClientRect(),n=t.textDirectionAt(P.from),c=t.posAtCoords({x:o==(n==qd.LTR)?l.right-1:l.left+1,y:(d.top+d.bottom)/2});if(c!=null)return Yo.cursor(c,o?-1:1)}return Yo.cursor(o?P.to:P.from,o?-1:1)}function Qhe(t,e,o,f){let P=t.state.doc.lineAt(e.head),d=t.bidiSpans(P),l=t.textDirectionAt(P.from);for(let n=e,c=null;;){let b=BTe(P,d,l,n,o),i=hye;if(!b){if(P.number==(o?t.state.doc.lines:1))return n;i=` -`,P=t.state.doc.line(P.number+(o?1:-1)),d=t.bidiSpans(P),b=Yo.cursor(o?P.from:P.to)}if(c){if(!c(i))return n}else{if(!f)return b;c=f(i)}n=b}}function XTe(t,e,o){let f=t.state.charCategorizer(e),P=f(o);return d=>{let l=f(d);return P==Ad.Space&&(P=l),P==l}}function GTe(t,e,o,f){let P=e.head,d=o?1:-1;if(P==(o?t.state.doc.length:0))return Yo.cursor(P,e.assoc);let l=e.goalColumn,n,c=t.contentDOM.getBoundingClientRect(),b=t.coordsAtPos(P,e.assoc||-1),i=t.documentTop;if(b)l==null&&(l=b.left-c.left),n=d<0?b.top:b.bottom;else{let y=t.viewState.lineBlockAt(P);l==null&&(l=Math.min(c.right-c.left,t.defaultCharacterWidth*(P-y.from))),n=(d<0?y.top:y.bottom)+i}let O=c.left+l,w=f??t.viewState.heightOracle.textHeight>>1;for(let y=0;;y+=10){let p=n+(w+y)*d,a=gye(t,{x:O,y:p},!1,d);if(pc.bottom||(d<0?aP)){let u=t.docView.coordsForChar(a),h=!u||p{if(e>d&&eP(t)),o.from,e.head>o.from?-1:1);return f==o.from?o:Yo.cursor(f,fnull),Ua.gecko&&p6e(e.contentDOM.ownerDocument)}handleEvent(e){!a6e(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,o){let f=this.handlers[e];if(f){for(let P of f.observers)P(this.view,o);for(let P of f.handlers){if(o.defaultPrevented)break;if(P(this.view,o)){o.preventDefault();break}}}}ensureHandlers(e){let o=JTe(e),f=this.handlers,P=this.view.contentDOM;for(let d in o)if(d!="scroll"){let l=!o[d].handlers.length,n=f[d];n&&l!=!n.handlers.length&&(P.removeEventListener(d,this.handleEvent),n=null),n||P.addEventListener(d,this.handleEvent,{passive:l})}for(let d in f)d!="scroll"&&!o[d]&&P.removeEventListener(d,this.handleEvent);this.handlers=o}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()f.keyCode==e.keyCode))&&!e.ctrlKey||e6e.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=o||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,GA(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Ua.safari&&!Ua.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Hhe(t,e){return(o,f)=>{try{return e.call(t,f,o)}catch(P){tb(o.state,P)}}}function JTe(t){let e=Object.create(null);function o(f){return e[f]||(e[f]={observers:[],handlers:[]})}for(let f of t){let P=f.spec;if(P&&P.domEventHandlers)for(let d in P.domEventHandlers){let l=P.domEventHandlers[d];l&&o(d).handlers.push(Hhe(f.value,l))}if(P&&P.domEventObservers)for(let d in P.domEventObservers){let l=P.domEventObservers[d];l&&o(d).observers.push(Hhe(f.value,l))}}for(let f in xx)o(f).handlers.push(xx[f]);for(let f in _x)o(f).observers.push(_x[f]);return e}const vye=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],e6e="dthko",yye=[16,17,18,20,91,92,224,225],AQ=6;function MQ(t){return Math.max(0,t)*.7+8}function t6e(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class n6e{constructor(e,o,f,P){this.view=e,this.startEvent=o,this.style=f,this.mustSelect=P,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=o,this.scrollParent=yTe(e.contentDOM),this.atoms=e.state.facet(ace).map(l=>l(e));let d=e.contentDOM.ownerDocument;d.addEventListener("mousemove",this.move=this.move.bind(this)),d.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=o.shiftKey,this.multiple=e.state.facet(jl.allowMultipleSelections)&&r6e(e,o),this.dragging=i6e(e,o)&&wye(o)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var o;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&t6e(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let f=0,P=0,d=((o=this.scrollParent)===null||o===void 0?void 0:o.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},l=lye(this.view);e.clientX-l.left<=d.left+AQ?f=-MQ(d.left-e.clientX):e.clientX+l.right>=d.right-AQ&&(f=MQ(e.clientX-d.right)),e.clientY-l.top<=d.top+AQ?P=-MQ(d.top-e.clientY):e.clientY+l.bottom>=d.bottom-AQ&&(P=MQ(e.clientY-d.bottom)),this.setScrollSpeed(f,P)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,o){this.scrollSpeed={x:e,y:o},e||o?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let o=null;for(let f=0;fthis.select(this.lastEvent),20)}}function r6e(t,e){let o=t.state.facet(Gve);return o.length?o[0](e):Ua.mac?e.metaKey:e.ctrlKey}function o6e(t,e){let o=t.state.facet(Kve);return o.length?o[0](e):Ua.mac?!e.altKey:!e.ctrlKey}function i6e(t,e){let{main:o}=t.state.selection;if(o.empty)return!1;let f=NH(t.root);if(!f||f.rangeCount==0)return!0;let P=f.getRangeAt(0).getClientRects();for(let d=0;d=e.clientX&&l.top<=e.clientY&&l.bottom>=e.clientY)return!0}return!1}function a6e(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let o=e.target,f;o!=t.contentDOM;o=o.parentNode)if(!o||o.nodeType==11||(f=id.get(o))&&f.ignoreEvent(e))return!1;return!0}const xx=Object.create(null),_x=Object.create(null),bye=Ua.ie&&Ua.ie_version<15||Ua.ios&&Ua.webkit_version<604;function s6e(t){let e=t.dom.parentNode;if(!e)return;let o=e.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus(),setTimeout(()=>{t.focus(),o.remove(),xye(t,o.value)},50)}function xye(t,e){let{state:o}=t,f,P=1,d=o.toText(e),l=d.lines==o.selection.ranges.length;if(ise!=null&&o.selection.ranges.every(c=>c.empty)&&ise==d.toString()){let c=-1;f=o.changeByRange(b=>{let i=o.doc.lineAt(b.from);if(i.from==c)return{range:b};c=i.from;let O=o.toText((l?d.line(P++).text:e)+o.lineBreak);return{changes:{from:i.from,insert:O},range:Yo.cursor(b.from+O.length)}})}else l?f=o.changeByRange(c=>{let b=d.line(P++);return{changes:{from:c.from,to:c.to,insert:b.text},range:Yo.cursor(c.from+b.length)}}):f=o.replaceSelection(d);t.dispatch(f,{userEvent:"input.paste",scrollIntoView:!0})}_x.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};xx.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&(t.inputState.lastEscPress=Date.now()),!1);_x.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};_x.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};xx.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let o=null;for(let f of t.state.facet(Jve))if(o=f(t,e),o)break;if(!o&&e.button==0&&(o=u6e(t,e)),o){let f=!t.hasFocus;t.inputState.startMouseSelection(new n6e(t,e,o,f)),f&&t.observer.ignore(()=>Nve(t.contentDOM));let P=t.inputState.mouseSelection;if(P)return P.start(e),P.dragging===!1}return!1};function Zhe(t,e,o,f){if(f==1)return Yo.cursor(e,o);if(f==2)return QTe(t.state,e,o);{let P=_p.find(t.docView,e),d=t.state.doc.lineAt(P?P.posAtEnd:e),l=P?P.posAtStart:d.from,n=P?P.posAtEnd:d.to;return nt>=e.top&&t<=e.bottom,qhe=(t,e,o)=>_ye(e,o)&&t>=o.left&&t<=o.right;function l6e(t,e,o,f){let P=_p.find(t.docView,e);if(!P)return 1;let d=e-P.posAtStart;if(d==0)return 1;if(d==P.length)return-1;let l=P.coordsAt(d,-1);if(l&&qhe(o,f,l))return-1;let n=P.coordsAt(d,1);return n&&qhe(o,f,n)?1:l&&_ye(f,l)?-1:1}function Whe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:o,bias:l6e(t,o,e.clientX,e.clientY)}}const c6e=Ua.ie&&Ua.ie_version<=11;let Yhe=null,Xhe=0,Ghe=0;function wye(t){if(!c6e)return t.detail;let e=Yhe,o=Ghe;return Yhe=t,Ghe=Date.now(),Xhe=!e||o>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Xhe+1)%3:1}function u6e(t,e){let o=Whe(t,e),f=wye(e),P=t.state.selection;return{update(d){d.docChanged&&(o.pos=d.changes.mapPos(o.pos),P=P.map(d.changes))},get(d,l,n){let c=Whe(t,d),b,i=Zhe(t,c.pos,c.bias,f);if(o.pos!=c.pos&&!l){let O=Zhe(t,o.pos,o.bias,f),w=Math.min(O.from,i.from),y=Math.max(O.to,i.to);i=w1&&(b=f6e(P,c.pos))?b:n?P.addRange(i):Yo.create([i])}}}function f6e(t,e){for(let o=0;o=e)return Yo.create(t.ranges.slice(0,o).concat(t.ranges.slice(o+1)),t.mainIndex==o?0:t.mainIndex-(t.mainIndex>o?1:0))}return null}xx.dragstart=(t,e)=>{let{selection:{main:o}}=t.state;if(e.target.draggable){let P=t.docView.nearest(e.target);if(P&&P.isWidget){let d=P.posAtStart,l=d+P.length;(d>=o.to||l<=o.from)&&(o=Yo.range(d,l))}}let{inputState:f}=t;return f.mouseSelection&&(f.mouseSelection.dragging=!0),f.draggedContent=o,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(o.from,o.to)),e.dataTransfer.effectAllowed="copyMove"),!1};xx.dragend=t=>(t.inputState.draggedContent=null,!1);function Khe(t,e,o,f){if(!o)return;let P=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:d}=t.inputState,l=f&&d&&o6e(t,e)?{from:d.from,to:d.to}:null,n={from:P,insert:o},c=t.state.changes(l?[l,n]:n);t.focus(),t.dispatch({changes:c,selection:{anchor:c.mapPos(P,-1),head:c.mapPos(P,1)},userEvent:l?"move.drop":"input.drop"}),t.inputState.draggedContent=null}xx.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let o=e.dataTransfer.files;if(o&&o.length){let f=Array(o.length),P=0,d=()=>{++P==o.length&&Khe(t,e,f.filter(l=>l!=null).join(t.state.lineBreak),!1)};for(let l=0;l{/[\x00-\x08\x0e-\x1f]{2}/.test(n.result)||(f[l]=n.result),d()},n.readAsText(o[l])}return!0}else{let f=e.dataTransfer.getData("Text");if(f)return Khe(t,e,f,!0),!0}return!1};xx.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let o=bye?null:e.clipboardData;return o?(xye(t,o.getData("text/plain")||o.getData("text/uri-text")),!0):(s6e(t),!1)};function d6e(t,e){let o=t.dom.parentNode;if(!o)return;let f=o.appendChild(document.createElement("textarea"));f.style.cssText="position: fixed; left: -10000px; top: 10px",f.value=e,f.focus(),f.selectionEnd=e.length,f.selectionStart=0,setTimeout(()=>{f.remove(),t.focus()},50)}function h6e(t){let e=[],o=[],f=!1;for(let P of t.selection.ranges)P.empty||(e.push(t.sliceDoc(P.from,P.to)),o.push(P));if(!e.length){let P=-1;for(let{from:d}of t.selection.ranges){let l=t.doc.lineAt(d);l.number>P&&(e.push(l.text),o.push({from:l.from,to:Math.min(t.doc.length,l.to+1)})),P=l.number}f=!0}return{text:e.join(t.lineBreak),ranges:o,linewise:f}}let ise=null;xx.copy=xx.cut=(t,e)=>{let{text:o,ranges:f,linewise:P}=h6e(t.state);if(!o&&!P)return!1;ise=P?o:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:f,scrollIntoView:!0,userEvent:"delete.cut"});let d=bye?null:e.clipboardData;return d?(d.clearData(),d.setData("text/plain",o),!0):(d6e(t,o),!1)};const Oye=LO.define();function Sye(t,e){let o=[];for(let f of t.facet(nye)){let P=f(t,e);P&&o.push(P)}return o?t.update({effects:o,annotations:Oye.of(!0)}):null}function kye(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let o=Sye(t.state,e);o?t.dispatch(o):t.update([])}},10)}_x.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),kye(t)};_x.blur=t=>{t.observer.clearSelectionRange(),kye(t)};_x.compositionstart=_x.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)};_x.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Ua.chrome&&Ua.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)};_x.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};xx.beforeinput=(t,e)=>{var o;let f;if(Ua.chrome&&Ua.android&&(f=vye.find(P=>P.inputType==e.inputType))&&(t.observer.delayAndroidKey(f.key,f.keyCode),f.key=="Backspace"||f.key=="Delete")){let P=((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0;setTimeout(()=>{var d;(((d=window.visualViewport)===null||d===void 0?void 0:d.height)||0)>P+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};const Jhe=new Set;function p6e(t){Jhe.has(t)||(Jhe.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const epe=["pre-wrap","normal","pre-line","break-spaces"];class m6e{constructor(e){this.lineWrapping=e,this.doc=ru.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,o){let f=this.doc.lineAt(o).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(f+=Math.max(0,Math.ceil((o-e-f*this.lineLength*.5)/this.lineLength))),this.lineHeight*f}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return epe.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let o=!1;for(let f=0;f-1,c=Math.round(o)!=Math.round(this.lineHeight)||this.lineWrapping!=n;if(this.lineWrapping=n,this.lineHeight=o,this.charWidth=f,this.textHeight=P,this.lineLength=d,c){this.heightSamples={};for(let b=0;b0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,o){this.height!=o&&(Math.abs(this.height-o)>mH&&(e.heightChanged=!0),this.height=o)}replace(e,o,f){return C0.of(f)}decomposeLeft(e,o){o.push(this)}decomposeRight(e,o){o.push(this)}applyChanges(e,o,f,P){let d=this,l=f.doc;for(let n=P.length-1;n>=0;n--){let{fromA:c,toA:b,fromB:i,toB:O}=P[n],w=d.lineAt(c,rd.ByPosNoHeight,f.setDoc(o),0,0),y=w.to>=b?w:d.lineAt(b,rd.ByPosNoHeight,f,0,0);for(O+=y.to-b,b=y.to;n>0&&w.from<=P[n-1].toA;)c=P[n-1].fromA,i=P[n-1].fromB,n--,cd*2){let n=e[o-1];n.break?e.splice(--o,1,n.left,null,n.right):e.splice(--o,1,n.left,n.right),f+=1+n.break,P-=n.size}else if(d>P*2){let n=e[f];n.break?e.splice(f,1,n.left,null,n.right):e.splice(f,1,n.left,n.right),f+=2+n.break,d-=n.size}else break;else if(P=d&&l(this.blockAt(0,f,P,d))}updateHeight(e,o=0,f=!1,P){return P&&P.from<=o&&P.more&&this.setHeight(e,P.heights[P.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Rv extends Tye{constructor(e,o){super(e,o,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,o,f,P){return new r_(P,this.length,f,this.height,this.breaks)}replace(e,o,f){let P=f[0];return f.length==1&&(P instanceof Rv||P instanceof Km&&P.flags&4)&&Math.abs(this.length-P.length)<10?(P instanceof Km?P=new Rv(P.length,this.height):P.height=this.height,this.outdated||(P.outdated=!1),P):C0.of(f)}updateHeight(e,o=0,f=!1,P){return P&&P.from<=o&&P.more?this.setHeight(e,P.heights[P.index++]):(f||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Km extends C0{constructor(e){super(e,0)}heightMetrics(e,o){let f=e.doc.lineAt(o).number,P=e.doc.lineAt(o+this.length).number,d=P-f+1,l,n=0;if(e.lineWrapping){let c=Math.min(this.height,e.lineHeight*d);l=c/d,this.length>d+1&&(n=(this.height-c)/(this.length-d-1))}else l=this.height/d;return{firstLine:f,lastLine:P,perLine:l,perChar:n}}blockAt(e,o,f,P){let{firstLine:d,lastLine:l,perLine:n,perChar:c}=this.heightMetrics(o,P);if(o.lineWrapping){let b=P+Math.round(Math.max(0,Math.min(1,(e-f)/this.height))*this.length),i=o.doc.lineAt(b),O=n+i.length*c,w=Math.max(f,e-O/2);return new r_(i.from,i.length,w,O,0)}else{let b=Math.max(0,Math.min(l-d,Math.floor((e-f)/n))),{from:i,length:O}=o.doc.line(d+b);return new r_(i,O,f+n*b,n,0)}}lineAt(e,o,f,P,d){if(o==rd.ByHeight)return this.blockAt(e,f,P,d);if(o==rd.ByPosNoHeight){let{from:y,to:p}=f.doc.lineAt(e);return new r_(y,p-y,0,0,0)}let{firstLine:l,perLine:n,perChar:c}=this.heightMetrics(f,d),b=f.doc.lineAt(e),i=n+b.length*c,O=b.number-l,w=P+n*O+c*(b.from-d-O);return new r_(b.from,b.length,Math.max(P,Math.min(w,P+this.height-i)),i,0)}forEachLine(e,o,f,P,d,l){e=Math.max(e,d),o=Math.min(o,d+this.length);let{firstLine:n,perLine:c,perChar:b}=this.heightMetrics(f,d);for(let i=e,O=P;i<=o;){let w=f.doc.lineAt(i);if(i==e){let p=w.number-n;O+=c*p+b*(e-d-p)}let y=c+b*w.length;l(new r_(w.from,w.length,O,y,0)),O+=y,i=w.to+1}}replace(e,o,f){let P=this.length-o;if(P>0){let d=f[f.length-1];d instanceof Km?f[f.length-1]=new Km(d.length+P):f.push(null,new Km(P-1))}if(e>0){let d=f[0];d instanceof Km?f[0]=new Km(e+d.length):f.unshift(new Km(e-1),null)}return C0.of(f)}decomposeLeft(e,o){o.push(new Km(e-1),null)}decomposeRight(e,o){o.push(null,new Km(this.length-e-1))}updateHeight(e,o=0,f=!1,P){let d=o+this.length;if(P&&P.from<=o+this.length&&P.more){let l=[],n=Math.max(o,P.from),c=-1;for(P.from>o&&l.push(new Km(P.from-o-1).updateHeight(e,o));n<=d&&P.more;){let i=e.doc.lineAt(n).length;l.length&&l.push(null);let O=P.heights[P.index++];c==-1?c=O:Math.abs(O-c)>=mH&&(c=-2);let w=new Rv(i,O);w.outdated=!1,l.push(w),n+=i+1}n<=d&&l.push(null,new Km(d-n).updateHeight(e,n));let b=C0.of(l);return(c<0||Math.abs(b.height-this.height)>=mH||Math.abs(c-this.heightMetrics(e,o).perLine)>=mH)&&(e.heightChanged=!0),b}else(f||this.outdated)&&(this.setHeight(e,e.heightForGap(o,o+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class v6e extends C0{constructor(e,o,f){super(e.length+o+f.length,e.height+f.height,o|(e.outdated||f.outdated?2:0)),this.left=e,this.right=f,this.size=e.size+f.size}get break(){return this.flags&1}blockAt(e,o,f,P){let d=f+this.left.height;return en))return b;let i=o==rd.ByPosNoHeight?rd.ByPosNoHeight:rd.ByPos;return c?b.join(this.right.lineAt(n,i,f,l,n)):this.left.lineAt(n,i,f,P,d).join(b)}forEachLine(e,o,f,P,d,l){let n=P+this.left.height,c=d+this.left.length+this.break;if(this.break)e=c&&this.right.forEachLine(e,o,f,n,c,l);else{let b=this.lineAt(c,rd.ByPos,f,P,d);e=e&&b.from<=o&&l(b),o>b.to&&this.right.forEachLine(b.to+1,o,f,n,c,l)}}replace(e,o,f){let P=this.left.length+this.break;if(othis.left.length)return this.balanced(this.left,this.right.replace(e-P,o-P,f));let d=[];e>0&&this.decomposeLeft(e,d);let l=d.length;for(let n of f)d.push(n);if(e>0&&tpe(d,l-1),o=f&&o.push(null)),e>f&&this.right.decomposeLeft(e-f,o)}decomposeRight(e,o){let f=this.left.length,P=f+this.break;if(e>=P)return this.right.decomposeRight(e-P,o);e2*o.size||o.size>2*e.size?C0.of(this.break?[e,null,o]:[e,o]):(this.left=e,this.right=o,this.height=e.height+o.height,this.outdated=e.outdated||o.outdated,this.size=e.size+o.size,this.length=e.length+this.break+o.length,this)}updateHeight(e,o=0,f=!1,P){let{left:d,right:l}=this,n=o+d.length+this.break,c=null;return P&&P.from<=o+d.length&&P.more?c=d=d.updateHeight(e,o,f,P):d.updateHeight(e,o,f),P&&P.from<=n+l.length&&P.more?c=l=l.updateHeight(e,n,f,P):l.updateHeight(e,n,f),c?this.balanced(d,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function tpe(t,e){let o,f;t[e]==null&&(o=t[e-1])instanceof Km&&(f=t[e+1])instanceof Km&&t.splice(e-1,3,new Km(o.length+1+f.length))}const y6e=5;class sce{constructor(e,o){this.pos=e,this.oracle=o,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,o){if(this.lineStart>-1){let f=Math.min(o,this.lineEnd),P=this.nodes[this.nodes.length-1];P instanceof Rv?P.length+=f-this.pos:(f>this.pos||!this.isCovered)&&this.nodes.push(new Rv(f-this.pos,-1)),this.writtenTo=f,o>f&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=o}point(e,o,f){if(e=y6e)&&this.addLineDeco(P,d,l)}else o>e&&this.span(e,o);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:o}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=o,this.writtenToe&&this.nodes.push(new Rv(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,o){let f=new Km(o-e);return this.oracle.doc.lineAt(e).to==o&&(f.flags|=4),f}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Rv)return e;let o=new Rv(0,-1);return this.nodes.push(o),o}addBlock(e){this.enterLine();let o=e.deco;o&&o.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,o&&o.endSide>0&&(this.covering=e)}addLineDeco(e,o,f){let P=this.ensureLine();P.length+=f,P.collapsed+=f,P.widgetHeight=Math.max(P.widgetHeight,e),P.breaks+=o,this.writtenTo=this.pos=this.pos+f}finish(e){let o=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(o instanceof Rv)&&!this.isCovered?this.nodes.push(new Rv(0,-1)):(this.writtenToi.clientHeight||i.scrollWidth>i.clientWidth)&&O.overflow!="visible"){let w=i.getBoundingClientRect();d=Math.max(d,w.left),l=Math.min(l,w.right),n=Math.max(n,w.top),c=b==t.parentNode?w.bottom:Math.min(c,w.bottom)}b=O.position=="absolute"||O.position=="fixed"?i.offsetParent:i.parentNode}else if(b.nodeType==11)b=b.host;else break;return{left:d-o.left,right:Math.max(d,l)-o.left,top:n-(o.top+e),bottom:Math.max(n,c)-(o.top+e)}}function w6e(t,e){let o=t.getBoundingClientRect();return{left:0,right:o.right-o.left,top:e,bottom:o.bottom-(o.top+e)}}class mie{constructor(e,o,f){this.from=e,this.to=o,this.size=f}static same(e,o){if(e.length!=o.length)return!1;for(let f=0;ftypeof f!="function"&&f.class=="cm-lineWrapping");this.heightOracle=new m6e(o),this.stateDeco=e.facet(RI).filter(f=>typeof f!="function"),this.heightMap=C0.empty().applyChanges(this.stateDeco,ru.empty,this.heightOracle.setDoc(e.doc),[new nb(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=es.set(this.lineGaps.map(f=>f.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:o}=this.state.selection;for(let f=0;f<=1;f++){let P=f?o.head:o.anchor;if(!e.some(({from:d,to:l})=>P>=d&&P<=l)){let{from:d,to:l}=this.lineBlockAt(P);e.push(new EQ(d,l))}}this.viewports=e.sort((f,P)=>f.from-P.from),this.scaler=this.heightMap.height<=7e6?rpe:new T6e(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:XL(e,this.scaler))})}update(e,o=null){this.state=e.state;let f=this.stateDeco;this.stateDeco=this.state.facet(RI).filter(i=>typeof i!="function");let P=e.changedRanges,d=nb.extendWithRanges(P,b6e(f,this.stateDeco,e?e.changes:wp.empty(this.state.doc.length))),l=this.heightMap.height,n=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),d),this.heightMap.height!=l&&(e.flags|=2),n?(this.scrollAnchorPos=e.changes.mapPos(n.from,-1),this.scrollAnchorHeight=n.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let c=d.length?this.mapViewport(this.viewport,e.changes):this.viewport;(o&&(o.range.headc.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,o));let b=!e.changes.empty||e.flags&2||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),b&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),o&&(this.scrollTarget=o),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(oye)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let o=e.contentDOM,f=window.getComputedStyle(o),P=this.heightOracle,d=f.whiteSpace;this.defaultTextDirection=f.direction=="rtl"?qd.RTL:qd.LTR;let l=this.heightOracle.mustRefreshForWrapping(d),n=o.getBoundingClientRect(),c=l||this.mustMeasureContent||this.contentDOMHeight!=n.height;this.contentDOMHeight=n.height,this.mustMeasureContent=!1;let b=0,i=0;if(n.width&&n.height){let _=n.width/o.offsetWidth,S=n.height/o.offsetHeight;(_>.995&&_<1.005||!isFinite(_)||Math.abs(n.width-o.offsetWidth)<1)&&(_=1),(S>.995&&S<1.005||!isFinite(S)||Math.abs(n.height-o.offsetHeight)<1)&&(S=1),(this.scaleX!=_||this.scaleY!=S)&&(this.scaleX=_,this.scaleY=S,b|=8,l=c=!0)}let O=(parseInt(f.paddingTop)||0)*this.scaleY,w=(parseInt(f.paddingBottom)||0)*this.scaleY;(this.paddingTop!=O||this.paddingBottom!=w)&&(this.paddingTop=O,this.paddingBottom=w,b|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(P.lineWrapping&&(c=!0),this.editorWidth=e.scrollDOM.clientWidth,b|=8);let y=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=y&&(this.scrollAnchorHeight=-1,this.scrollTop=y),this.scrolledToBottom=Vve(e.scrollDOM);let p=(this.printing?w6e:_6e)(o,this.paddingTop),a=p.top-this.pixelViewport.top,u=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let h=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(h!=this.inView&&(this.inView=h,h&&(c=!0)),!this.inView&&!this.scrollTarget)return 0;let m=n.width;if((this.contentDOMWidth!=m||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=n.width,this.editorHeight=e.scrollDOM.clientHeight,b|=8),c){let _=e.docView.measureVisibleLineHeights(this.viewport);if(P.mustRefreshForHeights(_)&&(l=!0),l||P.lineWrapping&&Math.abs(m-this.contentDOMWidth)>P.charWidth){let{lineHeight:S,charWidth:A,textHeight:x}=e.docView.measureTextSize();l=S>0&&P.refresh(d,S,A,x,m/A,_),l&&(e.docView.minWidth=0,b|=8)}a>0&&u>0?i=Math.max(a,u):a<0&&u<0&&(i=Math.min(a,u)),P.heightChanged=!1;for(let S of this.viewports){let A=S.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(S);this.heightMap=(l?C0.empty().applyChanges(this.stateDeco,ru.empty,this.heightOracle,[new nb(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(P,0,l,new g6e(S.from,A))}P.heightChanged&&(b|=2)}let v=!this.viewportIsAppropriate(this.viewport,i)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(this.viewport=this.getViewport(i,this.scrollTarget)),this.updateForViewport(),(b&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(l?[]:this.lineGaps,e)),b|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),b}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,o){let f=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),P=this.heightMap,d=this.heightOracle,{visibleTop:l,visibleBottom:n}=this,c=new EQ(P.lineAt(l-f*1e3,rd.ByHeight,d,0,0).from,P.lineAt(n+(1-f)*1e3,rd.ByHeight,d,0,0).to);if(o){let{head:b}=o.range;if(bc.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),O=P.lineAt(b,rd.ByPos,d,0,0),w;o.y=="center"?w=(O.top+O.bottom)/2-i/2:o.y=="start"||o.y=="nearest"&&b=n+Math.max(10,Math.min(f,250)))&&P>l-2*1e3&&d>1,l=P<<1;if(this.defaultTextDirection!=qd.LTR&&!f)return[];let n=[],c=(b,i,O,w)=>{if(i-bb&&uu.from>=O.from&&u.to<=O.to&&Math.abs(u.from-b)u.fromh));if(!a){if(iu.from<=i&&u.to>=i)){let u=o.moveToLineBoundary(Yo.cursor(i),!1,!0).head;u>b&&(i=u)}a=new mie(b,i,this.gapSize(O,b,i,w))}n.push(a)};for(let b of this.viewportLines){if(b.lengthb.from&&c(b.from,w,b,i),yo.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let o=[];Vu.spans(e,this.viewport.from,this.viewport.to,{span(P,d){o.push({from:P,to:d})},point(){}},20);let f=o.length!=this.visibleRanges.length||this.visibleRanges.some((P,d)=>P.from!=o[d].from||P.to!=o[d].to);return this.visibleRanges=o,f?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(o=>o.from<=e&&o.to>=e)||XL(this.heightMap.lineAt(e,rd.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return XL(this.heightMap.lineAt(this.scaler.fromDOM(e),rd.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let o=this.lineBlockAtHeight(e+8);return o.from>=this.viewport.from||this.viewportLines[0].top-e>200?o:this.viewportLines[0]}elementAtHeight(e){return XL(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class EQ{constructor(e,o){this.from=e,this.to=o}}function S6e(t,e,o){let f=[],P=t,d=0;return Vu.spans(o,t,e,{span(){},point(l,n){l>P&&(f.push({from:P,to:l}),d+=l-P),P=n}},20),P=1)return e[e.length-1].to;let f=Math.floor(t*o);for(let P=0;;P++){let{from:d,to:l}=e[P],n=l-d;if(f<=n)return d+f;f-=n}}function RQ(t,e){let o=0;for(let{from:f,to:P}of t.ranges){if(e<=P){o+=e-f;break}o+=P-f}return o/t.total}function k6e(t,e){for(let o of t)if(e(o))return o}const rpe={toDOM(t){return t},fromDOM(t){return t},scale:1};class T6e{constructor(e,o,f){let P=0,d=0,l=0;this.viewports=f.map(({from:n,to:c})=>{let b=o.lineAt(n,rd.ByPos,e,0,0).top,i=o.lineAt(c,rd.ByPos,e,0,0).bottom;return P+=i-b,{from:n,to:c,top:b,bottom:i,domTop:0,domBottom:0}}),this.scale=(7e6-P)/(o.height-P);for(let n of this.viewports)n.domTop=l+(n.top-d)*this.scale,l=n.domBottom=n.domTop+(n.bottom-n.top),d=n.bottom}toDOM(e){for(let o=0,f=0,P=0;;o++){let d=oXL(P,e)):t._content)}const LQ=Ba.define({combine:t=>t.join(" ")}),ase=Ba.define({combine:t=>t.indexOf(!0)>-1}),sse=oS.newName(),Cye=oS.newName(),Aye=oS.newName(),Mye={"&light":"."+Cye,"&dark":"."+Aye};function lse(t,e,o){return new oS(e,{finish(f){return/&/.test(f)?f.replace(/&\w*/,P=>{if(P=="&")return t;if(!o||!o[P])throw new RangeError(`Unsupported selector: ${P}`);return o[P]}):t+" "+f}})}const C6e=lse("."+sse,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Mye),GL="￿";class A6e{constructor(e,o){this.points=e,this.text="",this.lineSeparator=o.facet(jl.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=GL}readRange(e,o){if(!e)return this;let f=e.parentNode;for(let P=e;;){this.findPointBefore(f,P);let d=this.text.length;this.readNode(P);let l=P.nextSibling;if(l==o)break;let n=id.get(P),c=id.get(l);(n&&c?n.breakAfter:(n?n.breakAfter:ope(P))||ope(l)&&(P.nodeName!="BR"||P.cmIgnore)&&this.text.length>d)&&this.lineBreak(),P=l}return this.findPointBefore(f,o),this}readTextNode(e){let o=e.nodeValue;for(let f of this.points)f.node==e&&(f.pos=this.text.length+Math.min(f.offset,o.length));for(let f=0,P=this.lineSeparator?null:/\r\n?|\n/g;;){let d=-1,l=1,n;if(this.lineSeparator?(d=o.indexOf(this.lineSeparator,f),l=this.lineSeparator.length):(n=P.exec(o))&&(d=n.index,l=n[0].length),this.append(o.slice(f,d<0?o.length:d)),d<0)break;if(this.lineBreak(),l>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=l-1);f=d+l}}readNode(e){if(e.cmIgnore)return;let o=id.get(e),f=o&&o.overrideDOMText;if(f!=null){this.findPointInside(e,f.length);for(let P=f.iter();!P.next().done;)P.lineBreak?this.lineBreak():this.append(P.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,o){for(let f of this.points)f.node==e&&e.childNodes[f.offset]==o&&(f.pos=this.text.length)}findPointInside(e,o){for(let f of this.points)(e.nodeType==3?f.node==e:e.contains(f.node))&&(f.pos=this.text.length+(M6e(e,f.node,f.offset)?o:0))}}function M6e(t,e,o){for(;;){if(!e||o-1)this.newSel=null;else if(o>-1&&(this.bounds=e.docView.domBoundsAround(o,f,0))){let n=d||l?[]:L6e(e),c=new A6e(n,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=I6e(n,this.bounds.from)}else{let n=e.observer.selectionRange,c=d&&d.node==n.focusNode&&d.offset==n.focusOffset||!Zae(e.contentDOM,n.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(n.focusNode,n.focusOffset),b=l&&l.node==n.anchorNode&&l.offset==n.anchorOffset||!Zae(e.contentDOM,n.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(n.anchorNode,n.anchorOffset);this.newSel=Yo.single(b,c)}}}function Eye(t,e){let o,{newSel:f}=e,P=t.state.selection.main,d=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:l,to:n}=e.bounds,c=P.from,b=null;(d===8||Ua.android&&e.text.length=P.from&&o.to<=P.to&&(o.from!=P.from||o.to!=P.to)&&P.to-P.from-(o.to-o.from)<=4?o={from:P.from,to:P.to,insert:t.state.doc.slice(P.from,o.from).append(o.insert).append(t.state.doc.slice(o.to,P.to))}:(Ua.mac||Ua.android)&&o&&o.from==o.to&&o.from==P.head-1&&/^\. ?$/.test(o.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(f&&o.insert.length==2&&(f=Yo.single(f.main.anchor-1,f.main.head-1)),o={from:P.from,to:P.to,insert:ru.of([" "])}):Ua.chrome&&o&&o.from==o.to&&o.from==P.head&&o.insert.toString()==` - `&&t.lineWrapping&&(f&&(f=Yo.single(f.main.anchor-1,f.main.head-1)),o={from:P.from,to:P.to,insert:ru.of([" "])}),o){if(Ua.ios&&t.inputState.flushIOSKey()||Ua.android&&(o.from==P.from&&o.to==P.to&&o.insert.length==1&&o.insert.lines==2&&GA(t.contentDOM,"Enter",13)||(o.from==P.from-1&&o.to==P.to&&o.insert.length==0||d==8&&o.insert.lengthP.head)&&GA(t.contentDOM,"Backspace",8)||o.from==P.from&&o.to==P.to+1&&o.insert.length==0&&GA(t.contentDOM,"Delete",46)))return!0;let l=o.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let n,c=()=>n||(n=P6e(t,o,f));return t.state.facet(tye).some(b=>b(t,o.from,o.to,l,c))||t.dispatch(c()),!0}else if(f&&!f.main.eq(P)){let l=!1,n="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(l=!0),n=t.inputState.lastSelectionOrigin),t.dispatch({selection:f,scrollIntoView:l,userEvent:n}),!0}else return!1}function P6e(t,e,o){let f,P=t.state,d=P.selection.main;if(e.from>=d.from&&e.to<=d.to&&e.to-e.from>=(d.to-d.from)/3&&(!o||o.main.empty&&o.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let n=d.frome.to?P.sliceDoc(e.to,d.to):"";f=P.replaceSelection(t.state.toText(n+e.insert.sliceString(0,void 0,t.state.lineBreak)+c))}else{let n=P.changes(e),c=o&&o.main.to<=n.newLength?o.main:void 0;if(P.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=d.to&&e.to>=d.to-10){let b=t.state.sliceDoc(e.from,e.to),i,O=o&&pye(t,o.main.head);if(O){let p=e.insert.length-(e.to-e.from);i={from:O.from,to:O.to-p}}else i=t.state.doc.lineAt(d.head);let w=d.to-e.to,y=d.to-d.from;f=P.changeByRange(p=>{if(p.from==d.from&&p.to==d.to)return{changes:n,range:c||p.map(n)};let a=p.to-w,u=a-b.length;if(p.to-p.from!=y||t.state.sliceDoc(u,a)!=b||p.to>=i.from&&p.from<=i.to)return{range:p};let h=P.changes({from:u,to:a,insert:e.insert}),m=p.to-d.to;return{changes:h,range:c?Yo.range(Math.max(0,c.anchor+m),Math.max(0,c.head+m)):p.map(h)}})}else f={changes:n,selection:c&&P.selection.replaceRange(c)}}let l="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,l+=".compose",t.inputState.compositionFirstChange&&(l+=".start",t.inputState.compositionFirstChange=!1)),P.update(f,{userEvent:l,scrollIntoView:!0})}function R6e(t,e,o,f){let P=Math.min(t.length,e.length),d=0;for(;d0&&n>0&&t.charCodeAt(l-1)==e.charCodeAt(n-1);)l--,n--;if(f=="end"){let c=Math.max(0,d-Math.min(l,n));o-=l+c-d}if(l=l?d-o:0;d-=c,n=d+(n-l),l=d}else if(n=n?d-o:0;d-=c,l=d+(l-n),n=d}return{from:d,toA:l,toB:n}}function L6e(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:o,anchorOffset:f,focusNode:P,focusOffset:d}=t.observer.selectionRange;return o&&(e.push(new ipe(o,f)),(P!=o||d!=f)&&e.push(new ipe(P,d))),e}function I6e(t,e){if(t.length==0)return null;let o=t[0].pos,f=t.length==2?t[1].pos:o;return o>-1&&f>-1?Yo.single(o+e,f+e):null}const D6e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},gie=Ua.ie&&Ua.ie_version<=11;class B6e{constructor(e){this.view=e,this.active=!1,this.selectionRange=new bTe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(o=>{for(let f of o)this.queue.push(f);(Ua.ie&&Ua.ie_version<=11||Ua.ios&&e.composing)&&o.some(f=>f.type=="childList"&&f.removedNodes.length||f.type=="characterData"&&f.oldValue.length>f.target.nodeValue.length)?this.flushSoon():this.flush()}),gie&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var o;((o=this.view.docView)===null||o===void 0?void 0:o.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),o.length>0&&o[o.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(o=>{o.length>0&&o[o.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((o,f)=>o!=e[f]))){this.gapIntersection.disconnect();for(let o of e)this.gapIntersection.observe(o);this.gaps=e}}onSelectionChange(e){let o=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:f}=this,P=this.selectionRange;if(f.state.facet(XZ)?f.root.activeElement!=this.dom:!hH(f.dom,P))return;let d=P.anchorNode&&f.docView.nearest(P.anchorNode);if(d&&d.ignoreEvent(e)){o||(this.selectionChanged=!1);return}(Ua.ie&&Ua.ie_version<=11||Ua.android&&Ua.chrome)&&!f.state.selection.main.empty&&P.focusNode&&$H(P.focusNode,P.focusOffset,P.anchorNode,P.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,o=Ua.safari&&e.root.nodeType==11&&mTe(this.dom.ownerDocument)==this.dom&&z6e(this.view)||NH(e.root);if(!o||this.selectionRange.eq(o))return!1;let f=hH(this.dom,o);return f&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let d=this.delayedAndroidKey;d&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=d.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&d.force&&GA(this.dom,d.key,d.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(P)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:o,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let o=-1,f=-1,P=!1;for(let d of e){let l=this.readMutation(d);l&&(l.typeOver&&(P=!0),o==-1?{from:o,to:f}=l:(o=Math.min(l.from,o),f=Math.max(l.to,f)))}return{from:o,to:f,typeOver:P}}readChange(){let{from:e,to:o,typeOver:f}=this.processRecords(),P=this.selectionChanged&&hH(this.dom,this.selectionRange);if(e<0&&!P)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let d=new E6e(this.view,e,o,f);return this.view.docView.domChanged={newSel:d.newSel?d.newSel.main:null},d}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let o=this.readChange();if(!o)return this.view.requestMeasure(),!1;let f=this.view.state,P=Eye(this.view,o);return this.view.state==f&&this.view.update([]),P}readMutation(e){let o=this.view.docView.nearest(e.target);if(!o||o.ignoreMutation(e))return null;if(o.markDirty(e.type=="attributes"),e.type=="attributes"&&(o.flags|=4),e.type=="childList"){let f=ape(o,e.previousSibling||e.target.previousSibling,-1),P=ape(o,e.nextSibling||e.target.nextSibling,1);return{from:f?o.posAfter(f):o.posAtStart,to:P?o.posBefore(P):o.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,o,f;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(o=this.gapIntersection)===null||o===void 0||o.disconnect(),(f=this.resizeScroll)===null||f===void 0||f.disconnect();for(let P of this.scrollTargets)P.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function ape(t,e,o){for(;e;){let f=id.get(e);if(f&&f.parent==t)return f;let P=e.parentNode;e=P!=t.dom?P:o>0?e.nextSibling:e.previousSibling}return null}function z6e(t){let e=null;function o(c){c.preventDefault(),c.stopImmediatePropagation(),e=c.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",o,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",o,!0),!e)return null;let f=e.startContainer,P=e.startOffset,d=e.endContainer,l=e.endOffset,n=t.docView.domAtPos(t.state.selection.main.anchor);return $H(n.node,n.offset,d,l)&&([f,P,d,l]=[d,l,f,P]),{anchorNode:f,anchorOffset:P,focusNode:d,focusOffset:l}}class Oa{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:o}=e;this.dispatchTransactions=e.dispatchTransactions||o&&(f=>f.forEach(P=>o(P,this)))||(f=>this.update(f)),this.dispatch=this.dispatch.bind(this),this._root=e.root||xTe(e.parent)||document,this.viewState=new npe(e.state||jl.create(e)),e.scrollTo&&e.scrollTo.is(CQ)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(WL).map(f=>new die(f));for(let f of this.plugins)f.update(this);this.observer=new B6e(this),this.inputState=new KTe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Fhe(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let o=e.length==1&&e[0]instanceof Sp?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(o,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let o=!1,f=!1,P,d=this.state;for(let w of e){if(w.startState!=d)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");d=w.state}if(this.destroyed){this.viewState.state=d;return}let l=this.hasFocus,n=0,c=null;e.some(w=>w.annotation(Oye))?(this.inputState.notifiedFocused=l,n=1):l!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=l,c=Sye(d,l),c||(n=1));let b=this.observer.delayedAndroidKey,i=null;if(b?(this.observer.clearDelayedAndroidKey(),i=this.observer.readChange(),(i&&!this.state.doc.eq(d.doc)||!this.state.selection.eq(d.selection))&&(i=null)):this.observer.clear(),d.facet(jl.phrases)!=this.state.facet(jl.phrases))return this.setState(d);P=VH.create(this,d,e),P.flags|=n;let O=this.viewState.scrollTarget;try{this.updateState=2;for(let w of e){if(O&&(O=O.map(w.changes)),w.scrollIntoView){let{main:y}=w.state.selection;O=new KA(y.empty?y:Yo.cursor(y.head,y.head>y.anchor?-1:1))}for(let y of w.effects)y.is(CQ)&&(O=y.value.clip(this.state))}this.viewState.update(P,O),this.bidiCache=UH.update(this.bidiCache,P.changes),P.empty||(this.updatePlugins(P),this.inputState.update(P)),o=this.docView.update(P),this.state.facet(YL)!=this.styleModules&&this.mountStyles(),f=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(o,e.some(w=>w.isUserEvent("select.pointer")))}finally{this.updateState=0}if(P.startState.facet(LQ)!=P.state.facet(LQ)&&(this.viewState.mustMeasureContent=!0),(o||f||O||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!P.empty)for(let w of this.state.facet(Jae))try{w(P)}catch(y){tb(this.state,y,"update listener")}(c||i)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),i&&!Eye(this,i)&&b.force&&GA(this.contentDOM,b.key,b.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let o=this.hasFocus;try{for(let f of this.plugins)f.destroy(this);this.viewState=new npe(e),this.plugins=e.facet(WL).map(f=>new die(f)),this.pluginMap.clear();for(let f of this.plugins)f.update(this);this.docView.destroy(),this.docView=new Fhe(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}o&&this.focus(),this.requestMeasure()}updatePlugins(e){let o=e.startState.facet(WL),f=e.state.facet(WL);if(o!=f){let P=[];for(let d of f){let l=o.indexOf(d);if(l<0)P.push(new die(d));else{let n=this.plugins[l];n.mustUpdate=e,P.push(n)}}for(let d of this.plugins)d.mustUpdate!=e&&d.destroy(this);this.plugins=P,this.pluginMap.clear()}else for(let P of this.plugins)P.mustUpdate=e;for(let P=0;P-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let o=null,f=this.scrollDOM,P=f.scrollTop*this.scaleY,{scrollAnchorPos:d,scrollAnchorHeight:l}=this.viewState;Math.abs(P-this.viewState.scrollTop)>1&&(l=-1),this.viewState.scrollAnchorHeight=-1;try{for(let n=0;;n++){if(l<0)if(Vve(f))d=-1,l=this.viewState.heightMap.height;else{let y=this.viewState.scrollAnchorAt(P);d=y.from,l=y.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(n>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let b=[];c&4||([this.measureRequests,b]=[b,this.measureRequests]);let i=b.map(y=>{try{return y.read(this)}catch(p){return tb(this.state,p),spe}}),O=VH.create(this,this.state,[]),w=!1;O.flags|=c,o?o.flags|=c:o=O,this.updateState=2,O.empty||(this.updatePlugins(O),this.inputState.update(O),this.updateAttrs(),w=this.docView.update(O));for(let y=0;y1||p<-1){P=P+p,f.scrollTop=P/this.scaleY,l=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(o&&!o.empty)for(let n of this.state.facet(Jae))n(o)}get themeClasses(){return sse+" "+(this.state.facet(ase)?Aye:Cye)+" "+this.state.facet(LQ)}updateAttrs(){let e=lpe(this,iye,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),o={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(XZ)?"true":"false",class:"cm-content",style:`${Ua.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(o["aria-readonly"]="true"),lpe(this,ice,o);let f=this.observer.ignore(()=>{let P=Gae(this.contentDOM,this.contentAttrs,o),d=Gae(this.dom,this.editorAttrs,e);return P||d});return this.editorAttrs=e,this.contentAttrs=o,f}showAnnouncements(e){let o=!0;for(let f of e)for(let P of f.effects)if(P.is(Oa.announce)){o&&(this.announceDOM.textContent=""),o=!1;let d=this.announceDOM.appendChild(document.createElement("div"));d.textContent=P.value}}mountStyles(){this.styleModules=this.state.facet(YL);let e=this.state.facet(Oa.cspNonce);oS.mount(this.root,this.styleModules.concat(C6e).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let o=0;of.spec==e)||null),o&&o.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,o,f){return pie(this,e,Qhe(this,e,o,f))}moveByGroup(e,o){return pie(this,e,Qhe(this,e,o,f=>XTe(this,e.head,f)))}moveToLineBoundary(e,o,f=!0){return YTe(this,e,o,f)}moveVertically(e,o,f){return pie(this,e,GTe(this,e,o,f))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,o=0){return this.docView.posFromDOM(e,o)}posAtCoords(e,o=!0){return this.readMeasured(),gye(this,e,o)}coordsAtPos(e,o=1){this.readMeasured();let f=this.docView.coordsAt(e,o);if(!f||f.left==f.right)return f;let P=this.state.doc.lineAt(e),d=this.bidiSpans(P),l=d[Y4.find(d,e-P.from,-1,o)];return WZ(f,l.dir==qd.LTR==o>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(rye)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>F6e)return dye(e.length);let o=this.textDirectionAt(e.from),f;for(let d of this.bidiCache)if(d.from==e.from&&d.dir==o&&(d.fresh||fye(d.isolates,f=zhe(this,e.from,e.to))))return d.order;f||(f=zhe(this,e.from,e.to));let P=DTe(e.text,o,f);return this.bidiCache.push(new UH(e.from,e.to,o,f,!0,P)),P}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Ua.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Nve(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,o={}){return CQ.of(new KA(typeof e=="number"?Yo.cursor(e):e,o.y,o.x,o.yMargin,o.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:o}=this.scrollDOM,f=this.viewState.scrollAnchorAt(e);return CQ.of(new KA(Yo.cursor(f.from),"start","start",f.top-e,o,!0))}static domEventHandlers(e){return Wd.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Wd.define(()=>({}),{eventObservers:e})}static theme(e,o){let f=oS.newName(),P=[LQ.of(f),YL.of(lse(`.${f}`,e))];return o&&o.dark&&P.push(ase.of(!0)),P}static baseTheme(e){return Nv.lowest(YL.of(lse("."+sse,e,Mye)))}static findFromDOM(e){var o;let f=e.querySelector(".cm-content"),P=f&&id.get(f)||id.get(e);return((o=P==null?void 0:P.rootView)===null||o===void 0?void 0:o.view)||null}}Oa.styleModule=YL;Oa.inputHandler=tye;Oa.focusChangeEffect=nye;Oa.perLineTextDirection=rye;Oa.exceptionSink=eye;Oa.updateListener=Jae;Oa.editable=XZ;Oa.mouseSelectionStyle=Jve;Oa.dragMovesSelection=Kve;Oa.clickAddsSelectionRange=Gve;Oa.decorations=RI;Oa.atomicRanges=ace;Oa.bidiIsolatedRanges=aye;Oa.scrollMargins=sye;Oa.darkTheme=ase;Oa.cspNonce=Ba.define({combine:t=>t.length?t[0]:""});Oa.contentAttributes=ice;Oa.editorAttributes=iye;Oa.lineWrapping=Oa.contentAttributes.of({class:"cm-lineWrapping"});Oa.announce=cl.define();const F6e=4096,spe={};class UH{constructor(e,o,f,P,d,l){this.from=e,this.to=o,this.dir=f,this.isolates=P,this.fresh=d,this.order=l}static update(e,o){if(o.empty&&!e.some(d=>d.fresh))return e;let f=[],P=e.length?e[e.length-1].dir:qd.LTR;for(let d=Math.max(0,e.length-10);d=0;P--){let d=f[P],l=typeof d=="function"?d(t):d;l&&Xae(l,o)}return o}const N6e=Ua.mac?"mac":Ua.windows?"win":Ua.linux?"linux":"key";function $6e(t,e){const o=t.split(/-(?!$)/);let f=o[o.length-1];f=="Space"&&(f=" ");let P,d,l,n;for(let c=0;cf.concat(P),[]))),o}function U6e(t,e,o){return Rye(Pye(t.state),e,t,o)}let H4=null;const j6e=4e3;function Q6e(t,e=N6e){let o=Object.create(null),f=Object.create(null),P=(l,n)=>{let c=f[l];if(c==null)f[l]=n;else if(c!=n)throw new Error("Key binding "+l+" is used both as a regular binding and as a multi-stroke prefix")},d=(l,n,c,b,i)=>{var O,w;let y=o[l]||(o[l]=Object.create(null)),p=n.split(/ (?!$)/).map(h=>$6e(h,e));for(let h=1;h{let _=H4={view:v,prefix:m,scope:l};return setTimeout(()=>{H4==_&&(H4=null)},j6e),!0}]})}let a=p.join(" ");P(a,!1);let u=y[a]||(y[a]={preventDefault:!1,stopPropagation:!1,run:((w=(O=y._any)===null||O===void 0?void 0:O.run)===null||w===void 0?void 0:w.slice())||[]});c&&u.run.push(c),b&&(u.preventDefault=!0),i&&(u.stopPropagation=!0)};for(let l of t){let n=l.scope?l.scope.split(" "):["editor"];if(l.any)for(let b of n){let i=o[b]||(o[b]=Object.create(null));i._any||(i._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let O in i)i[O].run.push(l.any)}let c=l[e]||l.key;if(c)for(let b of n)d(b,c,l.run,l.preventDefault,l.stopPropagation),l.shift&&d(b,"Shift-"+c,l.shift,l.preventDefault,l.stopPropagation)}return o}function Rye(t,e,o,f){let P=pTe(e),d=Jm(P,0),l=Wy(d)==P.length&&P!=" ",n="",c=!1,b=!1,i=!1;H4&&H4.view==o&&H4.scope==f&&(n=H4.prefix+" ",yye.indexOf(e.keyCode)<0&&(b=!0,H4=null));let O=new Set,w=u=>{if(u){for(let h of u.run)if(!O.has(h)&&(O.add(h),h(o,e)))return u.stopPropagation&&(i=!0),!0;u.preventDefault&&(u.stopPropagation&&(i=!0),b=!0)}return!1},y=t[f],p,a;return y&&(w(y[n+IQ(P,e,!l)])?c=!0:l&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Ua.windows&&e.ctrlKey&&e.altKey)&&(p=iS[e.keyCode])&&p!=P?(w(y[n+IQ(p,e,!0)])||e.shiftKey&&(a=EI[e.keyCode])!=P&&a!=p&&w(y[n+IQ(a,e,!1)]))&&(c=!0):l&&e.shiftKey&&w(y[n+IQ(P,e,!0)])&&(c=!0),!c&&w(y._any)&&(c=!0)),b&&(c=!0),c&&i&&e.stopPropagation(),c}class gD{constructor(e,o,f,P,d){this.className=e,this.left=o,this.top=f,this.width=P,this.height=d}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,o){return o.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,o,f){if(f.empty){let P=e.coordsAtPos(f.head,f.assoc||1);if(!P)return[];let d=Lye(e);return[new gD(o,P.left-d.left,P.top-d.top,null,P.bottom-P.top)]}else return H6e(e,o,f)}}function Lye(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==qd.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function upe(t,e,o){let f=Yo.cursor(e);return{from:Math.max(o.from,t.moveToLineBoundary(f,!1,!0).from),to:Math.min(o.to,t.moveToLineBoundary(f,!0,!0).from),type:T0.Text}}function H6e(t,e,o){if(o.to<=t.viewport.from||o.from>=t.viewport.to)return[];let f=Math.max(o.from,t.viewport.from),P=Math.min(o.to,t.viewport.to),d=t.textDirection==qd.LTR,l=t.contentDOM,n=l.getBoundingClientRect(),c=Lye(t),b=l.querySelector(".cm-line"),i=b&&window.getComputedStyle(b),O=n.left+(i?parseInt(i.paddingLeft)+Math.min(0,parseInt(i.textIndent)):0),w=n.right-(i?parseInt(i.paddingRight):0),y=ose(t,f),p=ose(t,P),a=y.type==T0.Text?y:null,u=p.type==T0.Text?p:null;if(a&&(t.lineWrapping||y.widgetLineBreaks)&&(a=upe(t,f,a)),u&&(t.lineWrapping||p.widgetLineBreaks)&&(u=upe(t,P,u)),a&&u&&a.from==u.from)return m(v(o.from,o.to,a));{let S=a?v(o.from,null,a):_(y,!1),A=u?v(null,o.to,u):_(p,!0),x=[];return(a||y).to<(u||p).from-(a&&u?1:0)||y.widgetLineBreaks>1&&S.bottom+t.defaultLineHeight/2C&&D.from=I)break;j>k&&E(Math.max(Q,k),S==null&&Q<=C,Math.min(j,I),A==null&&j>=L,$.dir)}if(k=z.to+1,k>=I)break}return T.length==0&&E(C,S==null,L,A==null,t.textDirection),{top:R,bottom:M,horizontal:T}}function _(S,A){let x=n.top+(A?S.top:S.bottom);return{top:x,bottom:x,horizontal:[]}}}function Z6e(t,e){return t.constructor==e.constructor&&t.eq(e)}class q6e{constructor(e,o){this.view=e,this.layer=o,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),o.above&&this.dom.classList.add("cm-layer-above"),o.class&&this.dom.classList.add(o.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),o.mount&&o.mount(this.dom,e)}update(e){e.startState.facet(gH)!=e.state.facet(gH)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let o=0,f=e.facet(gH);for(;o!Z6e(o,this.drawn[f]))){let o=this.dom.firstChild,f=0;for(let P of e)P.update&&o&&P.constructor&&this.drawn[f].constructor&&P.update(o,this.drawn[f])?(o=o.nextSibling,f++):this.dom.insertBefore(P.draw(),o);for(;o;){let P=o.nextSibling;o.remove(),o=P}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const gH=Ba.define();function Iye(t){return[Wd.define(e=>new q6e(e,t)),gH.of(t)]}const Dye=!Ua.ios,II=Ba.define({combine(t){return b_(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,o)=>Math.min(e,o),drawRangeCursor:(e,o)=>e||o})}});function W6e(t={}){return[II.of(t),Y6e,X6e,G6e,oye.of(!0)]}function Bye(t){return t.startState.facet(II)!=t.state.facet(II)}const Y6e=Iye({above:!0,markers(t){let{state:e}=t,o=e.facet(II),f=[];for(let P of e.selection.ranges){let d=P==e.selection.main;if(P.empty?!d||Dye:o.drawRangeCursor){let l=d?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=P.empty?P:Yo.cursor(P.head,P.head>P.anchor?-1:1);for(let c of gD.forRange(t,l,n))f.push(c)}}return f},update(t,e){t.transactions.some(f=>f.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let o=Bye(t);return o&&fpe(t.state,e),t.docChanged||t.selectionSet||o},mount(t,e){fpe(e.state,t)},class:"cm-cursorLayer"});function fpe(t,e){e.style.animationDuration=t.facet(II).cursorBlinkRate+"ms"}const X6e=Iye({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:gD.forRange(t,"cm-selectionBackground",e)).reduce((e,o)=>e.concat(o))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Bye(t)},class:"cm-selectionLayer"}),cse={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Dye&&(cse[".cm-line"].caretColor="transparent !important",cse[".cm-content"]={caretColor:"transparent !important"});const G6e=Nv.highest(Oa.theme(cse)),zye=cl.define({map(t,e){return t==null?null:e.mapPos(t)}}),KL=Ap.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((o,f)=>f.is(zye)?f.value:o,t)}}),K6e=Wd.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let o=t.state.field(KL);o==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(KL)!=o||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(KL),o=e!=null&&t.coordsAtPos(e);if(!o)return null;let f=t.scrollDOM.getBoundingClientRect();return{left:o.left-f.left+t.scrollDOM.scrollLeft*t.scaleX,top:o.top-f.top+t.scrollDOM.scrollTop*t.scaleY,height:o.bottom-o.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:o}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/o+"px",this.cursor.style.height=t.height/o+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(KL)!=t&&this.view.dispatch({effects:zye.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function J6e(){return[KL,K6e]}function dpe(t,e,o,f,P){e.lastIndex=0;for(let d=t.iterRange(o,f),l=o,n;!d.next().done;l+=d.value.length)if(!d.lineBreak)for(;n=e.exec(d.value);)P(l+n.index,n)}function eCe(t,e){let o=t.visibleRanges;if(o.length==1&&o[0].from==t.viewport.from&&o[0].to==t.viewport.to)return o;let f=[];for(let{from:P,to:d}of o)P=Math.max(t.state.doc.lineAt(P).from,P-e),d=Math.min(t.state.doc.lineAt(d).to,d+e),f.length&&f[f.length-1].to>=P?f[f.length-1].to=d:f.push({from:P,to:d});return f}class tCe{constructor(e){const{regexp:o,decoration:f,decorate:P,boundary:d,maxLength:l=1e3}=e;if(!o.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=o,P)this.addMatch=(n,c,b,i)=>P(i,b,b+n[0].length,n,c);else if(typeof f=="function")this.addMatch=(n,c,b,i)=>{let O=f(n,c,b);O&&i(b,b+n[0].length,O)};else if(f)this.addMatch=(n,c,b,i)=>i(b,b+n[0].length,f);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=d,this.maxLength=l}createDeco(e){let o=new rS,f=o.add.bind(o);for(let{from:P,to:d}of eCe(e,this.maxLength))dpe(e.state.doc,this.regexp,P,d,(l,n)=>this.addMatch(n,e,l,f));return o.finish()}updateDeco(e,o){let f=1e9,P=-1;return e.docChanged&&e.changes.iterChanges((d,l,n,c)=>{c>e.view.viewport.from&&n1e3?this.createDeco(e.view):P>-1?this.updateRange(e.view,o.map(e.changes),f,P):o}updateRange(e,o,f,P){for(let d of e.visibleRanges){let l=Math.max(d.from,f),n=Math.min(d.to,P);if(n>l){let c=e.state.doc.lineAt(l),b=c.toc.from;l--)if(this.boundary.test(c.text[l-1-c.from])){i=l;break}for(;nw.push(h.range(a,u));if(c==b)for(this.regexp.lastIndex=i-c.from;(y=this.regexp.exec(c.text))&&y.indexthis.addMatch(u,e,a,p));o=o.update({filterFrom:i,filterTo:O,filter:(a,u)=>aO,add:w})}}return o}}const use=/x/.unicode!=null?"gu":"g",nCe=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,use),rCe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let vie=null;function oCe(){var t;if(vie==null&&typeof document<"u"&&document.body){let e=document.body.style;vie=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return vie||!1}const vH=Ba.define({combine(t){let e=b_(t,{render:null,specialChars:nCe,addSpecialChars:null});return(e.replaceTabs=!oCe())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,use)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,use)),e}});function iCe(t={}){return[vH.of(t),aCe()]}let hpe=null;function aCe(){return hpe||(hpe=Wd.fromClass(class{constructor(t){this.view=t,this.decorations=es.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(vH)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new tCe({regexp:t.specialChars,decoration:(e,o,f)=>{let{doc:P}=o.state,d=Jm(e[0],0);if(d==9){let l=P.lineAt(f),n=o.state.tabSize,c=bx(l.text,n,f-l.from);return es.replace({widget:new uCe((n-c%n)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[d]||(this.decorationCache[d]=es.replace({widget:new cCe(t,d)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(vH);t.startState.facet(vH)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const sCe="•";function lCe(t){return t>=32?sCe:t==10?"␤":String.fromCharCode(9216+t)}class cCe extends wx{constructor(e,o){super(),this.options=e,this.code=o}eq(e){return e.code==this.code}toDOM(e){let o=lCe(this.code),f=e.state.phrase("Control character")+" "+(rCe[this.code]||"0x"+this.code.toString(16)),P=this.options.render&&this.options.render(this.code,f,o);if(P)return P;let d=document.createElement("span");return d.textContent=o,d.title=f,d.setAttribute("aria-label",f),d.className="cm-specialChar",d}ignoreEvent(){return!1}}class uCe extends wx{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function fCe(){return hCe}const dCe=es.line({class:"cm-activeLine"}),hCe=Wd.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,o=[];for(let f of t.state.selection.ranges){let P=t.lineBlockAt(f.head);P.from>e&&(o.push(dCe.range(P.from)),e=P.from)}return es.set(o)}},{decorations:t=>t.decorations});class pCe extends wx{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let o=e.firstChild?cM(e.firstChild):[];if(!o.length)return null;let f=window.getComputedStyle(e.parentNode),P=WZ(o[0],f.direction!="rtl"),d=parseInt(f.lineHeight);return P.bottom-P.top>d*1.5?{left:P.left,right:P.right,top:P.top,bottom:P.top+d}:P}ignoreEvent(){return!1}}function mCe(t){return Wd.fromClass(class{constructor(e){this.view=e,this.placeholder=t?es.set([es.widget({widget:new pCe(t),side:1}).range(0)]):es.none}get decorations(){return this.view.state.doc.length?es.none:this.placeholder}},{decorations:e=>e.decorations})}const fse=2e3;function gCe(t,e,o){let f=Math.min(e.line,o.line),P=Math.max(e.line,o.line),d=[];if(e.off>fse||o.off>fse||e.col<0||o.col<0){let l=Math.min(e.off,o.off),n=Math.max(e.off,o.off);for(let c=f;c<=P;c++){let b=t.doc.line(c);b.length<=n&&d.push(Yo.range(b.from+l,b.to+n))}}else{let l=Math.min(e.col,o.col),n=Math.max(e.col,o.col);for(let c=f;c<=P;c++){let b=t.doc.line(c),i=jae(b.text,l,t.tabSize,!0);if(i<0)d.push(Yo.cursor(b.to));else{let O=jae(b.text,n,t.tabSize);d.push(Yo.range(b.from+i,b.from+O))}}}return d}function vCe(t,e){let o=t.coordsAtPos(t.viewport.from);return o?Math.round(Math.abs((o.left-e)/t.defaultCharacterWidth)):-1}function ppe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),f=t.state.doc.lineAt(o),P=o-f.from,d=P>fse?-1:P==f.length?vCe(t,e.clientX):bx(f.text,t.state.tabSize,o-f.from);return{line:f.number,col:d,off:P}}function yCe(t,e){let o=ppe(t,e),f=t.state.selection;return o?{update(P){if(P.docChanged){let d=P.changes.mapPos(P.startState.doc.line(o.line).from),l=P.state.doc.lineAt(d);o={line:l.number,col:o.col,off:Math.min(o.off,l.length)},f=f.map(P.changes)}},get(P,d,l){let n=ppe(t,P);if(!n)return f;let c=gCe(t.state,o,n);return c.length?l?Yo.create(c.concat(f.ranges)):Yo.create(c):f}}:null}function bCe(t){let e=(t==null?void 0:t.eventFilter)||(o=>o.altKey&&o.button==0);return Oa.mouseSelectionStyle.of((o,f)=>e(f)?yCe(o,f):null)}const xCe={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},_Ce={style:"cursor: crosshair"};function wCe(t={}){let[e,o]=xCe[t.key||"Alt"],f=Wd.fromClass(class{constructor(P){this.view=P,this.isDown=!1}set(P){this.isDown!=P&&(this.isDown=P,this.view.update([]))}},{eventObservers:{keydown(P){this.set(P.keyCode==e||o(P))},keyup(P){(P.keyCode==e||!o(P))&&this.set(!1)},mousemove(P){this.set(o(P))}}});return[f,Oa.contentAttributes.of(P=>{var d;return!((d=P.plugin(f))===null||d===void 0)&&d.isDown?_Ce:null})]}const DL="-10000px";class Fye{constructor(e,o,f){this.facet=o,this.createTooltipView=f,this.input=e.state.facet(o),this.tooltips=this.input.filter(P=>P),this.tooltipViews=this.tooltips.map(f)}update(e,o){var f;let P=e.state.facet(this.facet),d=P.filter(c=>c);if(P===this.input){for(let c of this.tooltipViews)c.update&&c.update(e);return!1}let l=[],n=o?[]:null;for(let c=0;co[b]=c),o.length=n.length),this.input=P,this.tooltips=d,this.tooltipViews=l,!0}}function OCe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const yie=Ba.define({combine:t=>{var e,o,f;return{position:Ua.ios?"absolute":((e=t.find(P=>P.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((o=t.find(P=>P.parent))===null||o===void 0?void 0:o.parent)||null,tooltipSpace:((f=t.find(P=>P.tooltipSpace))===null||f===void 0?void 0:f.tooltipSpace)||OCe}}}),mpe=new WeakMap,lce=Wd.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(yie);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Fye(t,cce,o=>this.createTooltip(o)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(o=>{Date.now()>this.lastTransaction-50&&o.length>0&&o[o.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let o=e||t.geometryChanged,f=t.state.facet(yie);if(f.position!=this.position&&!this.madeAbsolute){this.position=f.position;for(let P of this.manager.tooltipViews)P.dom.style.position=this.position;o=!0}if(f.parent!=this.parent){this.parent&&this.container.remove(),this.parent=f.parent,this.createContainer();for(let P of this.manager.tooltipViews)this.container.appendChild(P.dom);o=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);o&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let o=document.createElement("div");o.className="cm-tooltip-arrow",e.dom.appendChild(o)}return e.dom.style.position=this.position,e.dom.style.top=DL,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let o of this.manager.tooltipViews)o.dom.remove(),(t=o.destroy)===null||t===void 0||t.call(o);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,o=1,f=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:P}=this.manager.tooltipViews[0];if(Ua.gecko)f=P.offsetParent!=this.container.ownerDocument.body;else if(this.view.scaleX!=1||this.view.scaleY!=1)f=!0;else if(P.style.top==DL&&P.style.left=="0px"){let d=P.getBoundingClientRect();f=Math.abs(d.top+1e4)>1||Math.abs(d.left)>1}}if(f||this.position=="absolute")if(this.parent){let P=this.parent.getBoundingClientRect();P.width&&P.height&&(e=P.width/this.parent.offsetWidth,o=P.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:o}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((P,d)=>{let l=this.manager.tooltipViews[d];return l.getCoords?l.getCoords(P.pos):this.view.coordsAtPos(P.pos)}),size:this.manager.tooltipViews.map(({dom:P})=>P.getBoundingClientRect()),space:this.view.state.facet(yie).tooltipSpace(this.view),scaleX:e,scaleY:o,makeAbsolute:f}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let n of this.manager.tooltipViews)n.dom.style.position="absolute"}let{editor:o,space:f,scaleX:P,scaleY:d}=t,l=[];for(let n=0;n=Math.min(o.bottom,f.bottom)||O.rightMath.min(o.right,f.right)+.1){i.style.top=DL;continue}let y=c.arrow?b.dom.querySelector(".cm-tooltip-arrow"):null,p=y?7:0,a=w.right-w.left,u=(e=mpe.get(b))!==null&&e!==void 0?e:w.bottom-w.top,h=b.offset||kCe,m=this.view.textDirection==qd.LTR,v=w.width>f.right-f.left?m?f.left:f.right-w.width:m?Math.min(O.left-(y?14:0)+h.x,f.right-a):Math.max(f.left,O.left-a+(y?14:0)-h.x),_=this.above[n];!c.strictSide&&(_?O.top-(w.bottom-w.top)-h.yf.bottom)&&_==f.bottom-O.bottom>O.top-f.top&&(_=this.above[n]=!_);let S=(_?O.top-f.top:f.bottom-O.bottom)-p;if(Sv&&R.topA&&(A=_?R.top-u-2-p:R.bottom+p+2);if(this.position=="absolute"?(i.style.top=(A-t.parent.top)/d+"px",i.style.left=(v-t.parent.left)/P+"px"):(i.style.top=A/d+"px",i.style.left=v/P+"px"),y){let R=O.left+(m?h.x:-h.x)-(v+14-7);y.style.left=R/P+"px"}b.overlap!==!0&&l.push({left:v,top:A,right:x,bottom:A+u}),i.classList.toggle("cm-tooltip-above",_),i.classList.toggle("cm-tooltip-below",!_),b.positioned&&b.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=DL}},{eventObservers:{scroll(){this.maybeMeasure()}}}),SCe=Oa.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),kCe={x:0,y:0},cce=Ba.define({enables:[lce,SCe]}),jH=Ba.define();class GZ{static create(e){return new GZ(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Fye(e,jH,o=>this.createHostedView(o))}createHostedView(e){let o=e.create(this.view);return o.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(o.dom),this.mounted&&o.mount&&o.mount(this.view),o}mount(e){for(let o of this.manager.tooltipViews)o.mount&&o.mount(e);this.mounted=!0}positioned(e){for(let o of this.manager.tooltipViews)o.positioned&&o.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let o of this.manager.tooltipViews)(e=o.destroy)===null||e===void 0||e.call(o)}passProp(e){let o;for(let f of this.manager.tooltipViews){let P=f[e];if(P!==void 0){if(o===void 0)o=P;else if(o!==P)return}}return o}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const TCe=cce.compute([jH],t=>{let e=t.facet(jH).filter(o=>o);return e.length===0?null:{pos:Math.min(...e.map(o=>o.pos)),end:Math.max(...e.map(o=>{var f;return(f=o.end)!==null&&f!==void 0?f:o.pos})),create:GZ.create,above:e[0].above,arrow:e.some(o=>o.arrow)}});class CCe{constructor(e,o,f,P,d){this.view=e,this.source=o,this.field=f,this.setHover=P,this.hoverTime=d,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||o.xn.right+e.defaultCharacterWidth)return;let c=e.bidiSpans(e.state.doc.lineAt(P)).find(i=>i.from<=P&&i.to>=P),b=c&&c.dir==qd.RTL?-1:1;d=o.x{this.pending==n&&(this.pending=null,c&&e.dispatch({effects:this.setHover.of(c)}))},c=>tb(e.state,c,"hover tooltip"))}else l&&e.dispatch({effects:this.setHover.of(l)})}get tooltip(){let e=this.view.plugin(lce),o=e?e.manager.tooltips.findIndex(f=>f.create==GZ.create):-1;return o>-1?e.manager.tooltipViews[o]:null}mousemove(e){var o;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:f,tooltip:P}=this;if(f&&P&&!ACe(P.dom,e)||this.pending){let{pos:d}=f||this.pending,l=(o=f==null?void 0:f.end)!==null&&o!==void 0?o:d;(d==l?this.view.posAtCoords(this.lastMove)!=d:!MCe(this.view,d,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:o}=this;if(o){let{tooltip:f}=this;f&&f.dom.contains(e.relatedTarget)?this.watchTooltipLeave(f.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let o=f=>{e.removeEventListener("mouseleave",o),this.active&&!this.view.dom.contains(f.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",o)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const DQ=4;function ACe(t,e){let o=t.getBoundingClientRect();return e.clientX>=o.left-DQ&&e.clientX<=o.right+DQ&&e.clientY>=o.top-DQ&&e.clientY<=o.bottom+DQ}function MCe(t,e,o,f,P,d){let l=t.scrollDOM.getBoundingClientRect(),n=t.documentTop+t.documentPadding.top+t.contentHeight;if(l.left>f||l.rightP||Math.min(l.bottom,n)=e&&c<=o}function ECe(t,e={}){let o=cl.define(),f=Ap.define({create(){return null},update(P,d){if(P&&(e.hideOnChange&&(d.docChanged||d.selection)||e.hideOn&&e.hideOn(d,P)))return null;if(P&&d.docChanged){let l=d.changes.mapPos(P.pos,-1,tg.TrackDel);if(l==null)return null;let n=Object.assign(Object.create(null),P);n.pos=l,P.end!=null&&(n.end=d.changes.mapPos(P.end)),P=n}for(let l of d.effects)l.is(o)&&(P=l.value),l.is(PCe)&&(P=null);return P},provide:P=>jH.from(P)});return[f,Wd.define(P=>new CCe(P,t,f,o,e.hoverTime||300)),TCe]}function Nye(t,e){let o=t.plugin(lce);if(!o)return null;let f=o.manager.tooltips.indexOf(e);return f<0?null:o.manager.tooltipViews[f]}const PCe=cl.define(),gpe=Ba.define({combine(t){let e,o;for(let f of t)e=e||f.topContainer,o=o||f.bottomContainer;return{topContainer:e,bottomContainer:o}}});function DI(t,e){let o=t.plugin($ye),f=o?o.specs.indexOf(e):-1;return f>-1?o.panels[f]:null}const $ye=Wd.fromClass(class{constructor(t){this.input=t.state.facet(BI),this.specs=this.input.filter(o=>o),this.panels=this.specs.map(o=>o(t));let e=t.state.facet(gpe);this.top=new BQ(t,!0,e.topContainer),this.bottom=new BQ(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(o=>o.top)),this.bottom.sync(this.panels.filter(o=>!o.top));for(let o of this.panels)o.dom.classList.add("cm-panel"),o.mount&&o.mount()}update(t){let e=t.state.facet(gpe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new BQ(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new BQ(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let o=t.state.facet(BI);if(o!=this.input){let f=o.filter(c=>c),P=[],d=[],l=[],n=[];for(let c of f){let b=this.specs.indexOf(c),i;b<0?(i=c(t.view),n.push(i)):(i=this.panels[b],i.update&&i.update(t)),P.push(i),(i.top?d:l).push(i)}this.specs=f,this.panels=P,this.top.sync(d),this.bottom.sync(l);for(let c of n)c.dom.classList.add("cm-panel"),c.mount&&c.mount()}else for(let f of this.panels)f.update&&f.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Oa.scrollMargins.of(e=>{let o=e.plugin(t);return o&&{top:o.top.scrollMargin(),bottom:o.bottom.scrollMargin()}})});class BQ{constructor(e,o,f){this.view=e,this.top=o,this.container=f,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let o of this.panels)o.destroy&&e.indexOf(o)<0&&o.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let o=this.container||this.view.dom;o.insertBefore(this.dom,this.top?o.firstChild:null)}let e=this.dom.firstChild;for(let o of this.panels)if(o.dom.parentNode==this.dom){for(;e!=o.dom;)e=vpe(e);e=e.nextSibling}else this.dom.insertBefore(o.dom,e);for(;e;)e=vpe(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function vpe(t){let e=t.nextSibling;return t.remove(),e}const BI=Ba.define({enables:$ye});class EO extends pT{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}EO.prototype.elementClass="";EO.prototype.toDOM=void 0;EO.prototype.mapMode=tg.TrackBefore;EO.prototype.startSide=EO.prototype.endSide=-1;EO.prototype.point=!0;const yH=Ba.define(),RCe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Vu.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},uI=Ba.define();function LCe(t){return[Vye(),uI.of(Object.assign(Object.assign({},RCe),t))]}const dse=Ba.define({combine:t=>t.some(e=>e)});function Vye(t){let e=[ICe];return t&&t.fixed===!1&&e.push(dse.of(!0)),e}const ICe=Wd.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(uI).map(e=>new bpe(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(dse),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,o=t.view.viewport,f=Math.min(e.to,o.to)-Math.max(e.from,o.from);this.syncGutters(f<(o.to-o.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(dse)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let o=Vu.iter(this.view.state.facet(yH),this.view.viewport.from),f=[],P=this.gutters.map(d=>new DCe(d,this.view.viewport,-this.view.documentPadding.top));for(let d of this.view.viewportLineBlocks)if(f.length&&(f=[]),Array.isArray(d.type)){let l=!0;for(let n of d.type)if(n.type==T0.Text&&l){hse(o,f,n.from);for(let c of P)c.line(this.view,n,f);l=!1}else if(n.widget)for(let c of P)c.widget(this.view,n)}else if(d.type==T0.Text){hse(o,f,d.from);for(let l of P)l.line(this.view,d,f)}else if(d.widget)for(let l of P)l.widget(this.view,d);for(let d of P)d.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(uI),o=t.state.facet(uI),f=t.docChanged||t.heightChanged||t.viewportChanged||!Vu.eq(t.startState.facet(yH),t.state.facet(yH),t.view.viewport.from,t.view.viewport.to);if(e==o)for(let P of this.gutters)P.update(t)&&(f=!0);else{f=!0;let P=[];for(let d of o){let l=e.indexOf(d);l<0?P.push(new bpe(this.view,d)):(this.gutters[l].update(t),P.push(this.gutters[l]))}for(let d of this.gutters)d.dom.remove(),P.indexOf(d)<0&&d.destroy();for(let d of P)this.dom.appendChild(d.dom);this.gutters=P}return f}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Oa.scrollMargins.of(e=>{let o=e.plugin(t);return!o||o.gutters.length==0||!o.fixed?null:e.textDirection==qd.LTR?{left:o.dom.offsetWidth*e.scaleX}:{right:o.dom.offsetWidth*e.scaleX}})});function ype(t){return Array.isArray(t)?t:[t]}function hse(t,e,o){for(;t.value&&t.from<=o;)t.from==o&&e.push(t.value),t.next()}class DCe{constructor(e,o,f){this.gutter=e,this.height=f,this.i=0,this.cursor=Vu.iter(e.markers,o.from)}addElement(e,o,f){let{gutter:P}=this,d=(o.top-this.height)/e.scaleY,l=o.height/e.scaleY;if(this.i==P.elements.length){let n=new Uye(e,l,d,f);P.elements.push(n),P.dom.appendChild(n.dom)}else P.elements[this.i].update(e,l,d,f);this.height=o.bottom,this.i++}line(e,o,f){let P=[];hse(this.cursor,P,o.from),f.length&&(P=P.concat(f));let d=this.gutter.config.lineMarker(e,o,P);d&&P.unshift(d);let l=this.gutter;P.length==0&&!l.config.renderEmptyElements||this.addElement(e,o,P)}widget(e,o){let f=this.gutter.config.widgetMarker(e,o.widget,o);f&&this.addElement(e,o,[f])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let o=e.elements.pop();e.dom.removeChild(o.dom),o.destroy()}}}class bpe{constructor(e,o){this.view=e,this.config=o,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let f in o.domEventHandlers)this.dom.addEventListener(f,P=>{let d=P.target,l;if(d!=this.dom&&this.dom.contains(d)){for(;d.parentNode!=this.dom;)d=d.parentNode;let c=d.getBoundingClientRect();l=(c.top+c.bottom)/2}else l=P.clientY;let n=e.lineBlockAtHeight(l-e.documentTop);o.domEventHandlers[f](e,n,P)&&P.preventDefault()});this.markers=ype(o.markers(e)),o.initialSpacer&&(this.spacer=new Uye(e,0,0,[o.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let o=this.markers;if(this.markers=ype(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let P=this.config.updateSpacer(this.spacer.markers[0],e);P!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[P])}let f=e.view.viewport;return!Vu.eq(this.markers,o,f.from,f.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class Uye{constructor(e,o,f,P){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,o,f,P)}update(e,o,f,P){this.height!=o&&(this.height=o,this.dom.style.height=o+"px"),this.above!=f&&(this.dom.style.marginTop=(this.above=f)?f+"px":""),BCe(this.markers,P)||this.setMarkers(e,P)}setMarkers(e,o){let f="cm-gutterElement",P=this.dom.firstChild;for(let d=0,l=0;;){let n=l,c=dd(n,c,b)||l(n,c,b):l}return f}})}});class bie extends EO{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function xie(t,e){return t.state.facet(VA).formatNumber(e,t.state)}const FCe=uI.compute([VA],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(zCe)},lineMarker(e,o,f){return f.some(P=>P.toDOM)?null:new bie(xie(e,e.state.doc.lineAt(o.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(VA)!=e.state.facet(VA),initialSpacer(e){return new bie(xie(e,xpe(e.state.doc.lines)))},updateSpacer(e,o){let f=xie(o.view,xpe(o.view.state.doc.lines));return f==e.number?e:new bie(f)},domEventHandlers:t.facet(VA).domEventHandlers}));function NCe(t={}){return[VA.of(t),Vye(),FCe]}function xpe(t){let e=9;for(;e{let e=[],o=-1;for(let f of t.selection.ranges){let P=t.doc.lineAt(f.head).from;P>o&&(o=P,e.push($Ce.range(P)))}return Vu.of(e)});function UCe(){return VCe}const jye=1024;let jCe=0,Xy=class{constructor(e,o){this.from=e,this.to=o}};class ul{constructor(e={}){this.id=jCe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Cp.match(e)),o=>{let f=e(o);return f===void 0?null:[this,f]}}}ul.closedBy=new ul({deserialize:t=>t.split(" ")});ul.openedBy=new ul({deserialize:t=>t.split(" ")});ul.group=new ul({deserialize:t=>t.split(" ")});ul.contextHash=new ul({perNode:!0});ul.lookAhead=new ul({perNode:!0});ul.mounted=new ul({perNode:!0});class zI{constructor(e,o,f){this.tree=e,this.overlay=o,this.parser=f}static get(e){return e&&e.props&&e.props[ul.mounted.id]}}const QCe=Object.create(null);class Cp{constructor(e,o,f,P=0){this.name=e,this.props=o,this.id=f,this.flags=P}static define(e){let o=e.props&&e.props.length?Object.create(null):QCe,f=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),P=new Cp(e.name||"",o,e.id,f);if(e.props){for(let d of e.props)if(Array.isArray(d)||(d=d(P)),d){if(d[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");o[d[0].id]=d[1]}}return P}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let o=this.prop(ul.group);return o?o.indexOf(e)>-1:!1}return this.id==e}static match(e){let o=Object.create(null);for(let f in e)for(let P of f.split(" "))o[P]=e[f];return f=>{for(let P=f.prop(ul.group),d=-1;d<(P?P.length:0);d++){let l=o[d<0?f.name:P[d]];if(l)return l}}}}Cp.none=new Cp("",Object.create(null),0,8);class vD{constructor(e){this.types=e;for(let o=0;o0;for(let c=this.cursor(l|mf.IncludeAnonymous);;){let b=!1;if(c.from<=d&&c.to>=P&&(!n&&c.type.isAnonymous||o(c)!==!1)){if(c.firstChild())continue;b=!0}for(;b&&f&&(n||!c.type.isAnonymous)&&f(c),!c.nextSibling();){if(!c.parent())return;b=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let o in this.props)e.push([+o,this.props[o]]);return e}balance(e={}){return this.children.length<=8?this:dce(Cp.none,this.children,this.positions,0,this.children.length,0,this.length,(o,f,P)=>new Su(this.type,o,f,P,this.propValues),e.makeTree||((o,f,P)=>new Su(Cp.none,o,f,P)))}static build(e){return WCe(e)}}Su.empty=new Su(Cp.none,[],[],0);class uce{constructor(e,o){this.buffer=e,this.index=o}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new uce(this.buffer,this.index)}}class sS{constructor(e,o,f){this.buffer=e,this.length=o,this.set=f}get type(){return Cp.none}toString(){let e=[];for(let o=0;o0));c=l[c+3]);return n}slice(e,o,f){let P=this.buffer,d=new Uint16Array(o-e),l=0;for(let n=e,c=0;n=e&&oe;case 1:return o<=e&&f>e;case 2:return f>e;case 4:return!0}}function FI(t,e,o,f){for(var P;t.from==t.to||(o<1?t.from>=e:t.from>e)||(o>-1?t.to<=e:t.to0?n.length:-1;e!=b;e+=o){let i=n[e],O=c[e]+l.from;if(Qye(P,f,O,O+i.length)){if(i instanceof sS){if(d&mf.ExcludeBuffers)continue;let w=i.findChild(0,i.buffer.length,o,f-O,P);if(w>-1)return new i_(new HCe(l,i,e,O),null,w)}else if(d&mf.IncludeAnonymous||!i.type.isAnonymous||fce(i)){let w;if(!(d&mf.IgnoreMounts)&&(w=zI.get(i))&&!w.overlay)return new jg(w.tree,O,e,l);let y=new jg(i,O,e,l);return d&mf.IncludeAnonymous||!y.type.isAnonymous?y:y.nextChild(o<0?i.children.length-1:0,o,f,P)}}}if(d&mf.IncludeAnonymous||!l.type.isAnonymous||(l.index>=0?e=l.index+o:e=o<0?-1:l._parent._tree.children.length,l=l._parent,!l))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,o,f=0){let P;if(!(f&mf.IgnoreOverlays)&&(P=zI.get(this._tree))&&P.overlay){let d=e-this.from;for(let{from:l,to:n}of P.overlay)if((o>0?l<=d:l=d:n>d))return new jg(P.tree,P.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,o,f)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function wpe(t,e,o,f){let P=t.cursor(),d=[];if(!P.firstChild())return d;if(o!=null){for(;!P.type.is(o);)if(!P.nextSibling())return d}for(;;){if(f!=null&&P.type.is(f))return d;if(P.type.is(e)&&d.push(P.node),!P.nextSibling())return f==null?d:[]}}function pse(t,e,o=e.length-1){for(let f=t.parent;o>=0;f=f.parent){if(!f)return!1;if(!f.type.isAnonymous){if(e[o]&&e[o]!=f.name)return!1;o--}}return!0}class HCe{constructor(e,o,f,P){this.parent=e,this.buffer=o,this.index=f,this.start=P}}class i_ extends Hye{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,o,f){super(),this.context=e,this._parent=o,this.index=f,this.type=e.buffer.set.types[e.buffer.buffer[f]]}child(e,o,f){let{buffer:P}=this.context,d=P.findChild(this.index+4,P.buffer[this.index+3],e,o-this.context.start,f);return d<0?null:new i_(this.context,this,d)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,o,f=0){if(f&mf.ExcludeBuffers)return null;let{buffer:P}=this.context,d=P.findChild(this.index+4,P.buffer[this.index+3],o>0?1:-1,e-this.context.start,o);return d<0?null:new i_(this.context,this,d)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,o=e.buffer[this.index+3];return o<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new i_(this.context,this._parent,o):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,o=this._parent?this._parent.index+4:0;return this.index==o?this.externalSibling(-1):new i_(this.context,this._parent,e.findChild(o,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],o=[],{buffer:f}=this.context,P=this.index+4,d=f.buffer[this.index+3];if(d>P){let l=f.buffer[this.index+1];e.push(f.slice(P,d,l)),o.push(0)}return new Su(this.type,e,o,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Zye(t){if(!t.length)return null;let e=0,o=t[0];for(let d=1;do.from||l.to=e){let n=new jg(l.tree,l.overlay[0].from+d.from,-1,d);(P||(P=[f])).push(FI(n,e,o,!1))}}return P?Zye(P):f}class QH{get name(){return this.type.name}constructor(e,o=0){if(this.mode=o,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof jg)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let f=e._parent;f;f=f._parent)this.stack.unshift(f.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,o){this.index=e;let{start:f,buffer:P}=this.buffer;return this.type=o||P.set.types[P.buffer[e]],this.from=f+P.buffer[e+1],this.to=f+P.buffer[e+2],!0}yield(e){return e?e instanceof jg?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,o,f){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,o,f,this.mode));let{buffer:P}=this.buffer,d=P.findChild(this.index+4,P.buffer[this.index+3],e,o-this.buffer.start,f);return d<0?!1:(this.stack.push(this.index),this.yieldBuf(d))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,o,f=this.mode){return this.buffer?f&mf.ExcludeBuffers?!1:this.enterChild(1,e,o):this.yield(this._tree.enter(e,o,f))}parent(){if(!this.buffer)return this.yieldNode(this.mode&mf.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&mf.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:o}=this.buffer,f=this.stack.length-1;if(e<0){let P=f<0?0:this.stack[f]+4;if(this.index!=P)return this.yieldBuf(o.findChild(P,this.index,-1,0,4))}else{let P=o.buffer[this.index+3];if(P<(f<0?o.buffer.length:o.buffer[this.stack[f]+3]))return this.yieldBuf(P)}return f<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let o,f,{buffer:P}=this;if(P){if(e>0){if(this.index-1)for(let d=o+e,l=e<0?-1:f._tree.children.length;d!=l;d+=e){let n=f._tree.children[d];if(this.mode&mf.IncludeAnonymous||n instanceof sS||!n.type.isAnonymous||fce(n))return!1}return!0}move(e,o){if(o&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,o=0){for(;(this.from==this.to||(o<1?this.from>=e:this.from>e)||(o>-1?this.to<=e:this.to=0;){for(let l=e;l;l=l._parent)if(l.index==P){if(P==this.index)return l;o=l,f=d+1;break e}P=this.stack[--d]}for(let P=f;P=0;d--){if(d<0)return pse(this.node,e,P);let l=f[o.buffer[this.stack[d]]];if(!l.isAnonymous){if(e[P]&&e[P]!=l.name)return!1;P--}}return!0}}function fce(t){return t.children.some(e=>e instanceof sS||!e.type.isAnonymous||fce(e))}function WCe(t){var e;let{buffer:o,nodeSet:f,maxBufferLength:P=jye,reused:d=[],minRepeatType:l=f.types.length}=t,n=Array.isArray(o)?new uce(o,o.length):o,c=f.types,b=0,i=0;function O(S,A,x,R,M,T){let{id:E,start:C,end:L,size:D}=n,k=i;for(;D<0;)if(n.next(),D==-1){let j=d[E];x.push(j),R.push(C-S);return}else if(D==-3){b=E;return}else if(D==-4){i=E;return}else throw new RangeError(`Unrecognized record size: ${D}`);let I=c[E],z,$,Q=C-S;if(L-C<=P&&($=u(n.pos-A,M))){let j=new Uint16Array($.size-$.skip),U=n.pos-$.size,X=j.length;for(;n.pos>U;)X=h($.start,j,X);z=new sS(j,L-$.start,f),Q=$.start-S}else{let j=n.pos-D;n.next();let U=[],X=[],te=E>=l?E:-1,W=0,K=L;for(;n.pos>j;)te>=0&&n.id==te&&n.size>=0?(n.end<=K-P&&(p(U,X,C,W,n.end,K,te,k),W=U.length,K=n.end),n.next()):T>2500?w(C,j,U,X):O(C,j,U,X,te,T+1);if(te>=0&&W>0&&W-1&&W>0){let oe=y(I);z=dce(I,U,X,0,U.length,0,L-C,oe,oe)}else z=a(I,U,X,L-C,k-L)}x.push(z),R.push(Q)}function w(S,A,x,R){let M=[],T=0,E=-1;for(;n.pos>A;){let{id:C,start:L,end:D,size:k}=n;if(k>4)n.next();else{if(E>-1&&L=0;D-=3)C[k++]=M[D],C[k++]=M[D+1]-L,C[k++]=M[D+2]-L,C[k++]=k;x.push(new sS(C,M[2]-L,f)),R.push(L-S)}}function y(S){return(A,x,R)=>{let M=0,T=A.length-1,E,C;if(T>=0&&(E=A[T])instanceof Su){if(!T&&E.type==S&&E.length==R)return E;(C=E.prop(ul.lookAhead))&&(M=x[T]+E.length+C)}return a(S,A,x,R,M)}}function p(S,A,x,R,M,T,E,C){let L=[],D=[];for(;S.length>R;)L.push(S.pop()),D.push(A.pop()+x-M);S.push(a(f.types[E],L,D,T-M,C-T)),A.push(M-x)}function a(S,A,x,R,M=0,T){if(b){let E=[ul.contextHash,b];T=T?[E].concat(T):[E]}if(M>25){let E=[ul.lookAhead,M];T=T?[E].concat(T):[E]}return new Su(S,A,x,R,T)}function u(S,A){let x=n.fork(),R=0,M=0,T=0,E=x.end-P,C={size:0,start:0,skip:0};e:for(let L=x.pos-S;x.pos>L;){let D=x.size;if(x.id==A&&D>=0){C.size=R,C.start=M,C.skip=T,T+=4,R+=4,x.next();continue}let k=x.pos-D;if(D<0||k=l?4:0,z=x.start;for(x.next();x.pos>k;){if(x.size<0)if(x.size==-3)I+=4;else break e;else x.id>=l&&(I+=4);x.next()}M=z,R+=D,T+=I}return(A<0||R==S)&&(C.size=R,C.start=M,C.skip=T),C.size>4?C:void 0}function h(S,A,x){let{id:R,start:M,end:T,size:E}=n;if(n.next(),E>=0&&R4){let L=n.pos-(E-4);for(;n.pos>L;)x=h(S,A,x)}A[--x]=C,A[--x]=T-S,A[--x]=M-S,A[--x]=R}else E==-3?b=R:E==-4&&(i=R);return x}let m=[],v=[];for(;n.pos>0;)O(t.start||0,t.bufferStart||0,m,v,-1,0);let _=(e=t.length)!==null&&e!==void 0?e:m.length?v[0]+m[0].length:0;return new Su(c[t.topID],m.reverse(),v.reverse(),_)}const Ope=new WeakMap;function bH(t,e){if(!t.isAnonymous||e instanceof sS||e.type!=t)return 1;let o=Ope.get(e);if(o==null){o=1;for(let f of e.children){if(f.type!=t||!(f instanceof Su)){o=1;break}o+=bH(t,f)}Ope.set(e,o)}return o}function dce(t,e,o,f,P,d,l,n,c){let b=0;for(let p=f;p=i)break;A+=x}if(v==_+1){if(A>i){let x=p[_];y(x.children,x.positions,0,x.children.length,a[_]+m);continue}O.push(p[_])}else{let x=a[v-1]+p[v-1].length-S;O.push(dce(t,p,a,_,v,S,x,null,c))}w.push(S+m-d)}}return y(e,o,f,P,0),(n||c)(O,w,l)}class hce{constructor(){this.map=new WeakMap}setBuffer(e,o,f){let P=this.map.get(e);P||this.map.set(e,P=new Map),P.set(o,f)}getBuffer(e,o){let f=this.map.get(e);return f&&f.get(o)}set(e,o){e instanceof i_?this.setBuffer(e.context.buffer,e.index,o):e instanceof jg&&this.map.set(e.tree,o)}get(e){return e instanceof i_?this.getBuffer(e.context.buffer,e.index):e instanceof jg?this.map.get(e.tree):void 0}cursorSet(e,o){e.buffer?this.setBuffer(e.buffer.buffer,e.index,o):this.map.set(e.tree,o)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class SO{constructor(e,o,f,P,d=!1,l=!1){this.from=e,this.to=o,this.tree=f,this.offset=P,this.open=(d?1:0)|(l?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,o=[],f=!1){let P=[new SO(0,e.length,e,0,!1,f)];for(let d of o)d.to>e.length&&P.push(d);return P}static applyChanges(e,o,f=128){if(!o.length)return e;let P=[],d=1,l=e.length?e[0]:null;for(let n=0,c=0,b=0;;n++){let i=n=f)for(;l&&l.from=w.from||O<=w.to||b){let y=Math.max(w.from,c)-b,p=Math.min(w.to,O)-b;w=y>=p?null:new SO(y,p,w.tree,w.offset+b,n>0,!!i)}if(w&&P.push(w),l.to>O)break;l=dnew Xy(P.from,P.to)):[new Xy(0,0)]:[new Xy(0,e.length)],this.createParse(e,o||[],f)}parse(e,o,f){let P=this.startParse(e,o,f);for(;;){let d=P.advance();if(d)return d}}}class YCe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,o){return this.string.slice(e,o)}}function qye(t){return(e,o,f,P)=>new GCe(e,t,o,f,P)}class Spe{constructor(e,o,f,P,d){this.parser=e,this.parse=o,this.overlay=f,this.target=P,this.from=d}}function kpe(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class XCe{constructor(e,o,f,P,d,l,n){this.parser=e,this.predicate=o,this.mounts=f,this.index=P,this.start=d,this.target=l,this.prev=n,this.depth=0,this.ranges=[]}}const mse=new ul({perNode:!0});class GCe{constructor(e,o,f,P,d){this.nest=o,this.input=f,this.fragments=P,this.ranges=d,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let f=this.baseParse.advance();if(!f)return null;if(this.baseParse=null,this.baseTree=f,this.startInner(),this.stoppedAt!=null)for(let P of this.inner)P.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let f=this.baseTree;return this.stoppedAt!=null&&(f=new Su(f.type,f.children,f.positions,f.length,f.propValues.concat([[mse,this.stoppedAt]]))),f}let e=this.inner[this.innerDone],o=e.parse.advance();if(o){this.innerDone++;let f=Object.assign(Object.create(null),e.target.props);f[ul.mounted.id]=new zI(o,e.overlay,e.parser),e.target.props=f}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let o=this.innerDone;o=this.stoppedAt)n=!1;else if(e.hasNode(P)){if(o){let b=o.mounts.find(i=>i.frag.from<=P.from&&i.frag.to>=P.to&&i.mount.overlay);if(b)for(let i of b.mount.overlay){let O=i.from+b.pos,w=i.to+b.pos;O>=P.from&&w<=P.to&&!o.ranges.some(y=>y.fromO)&&o.ranges.push({from:O,to:w})}}n=!1}else if(f&&(l=KCe(f.ranges,P.from,P.to)))n=l!=2;else if(!P.type.isAnonymous&&(d=this.nest(P,this.input))&&(P.fromnew Xy(O.from-P.from,O.to-P.from)):null,P.tree,i.length?i[0].from:P.from)),d.overlay?i.length&&(f={ranges:i,depth:0,prev:f}):n=!1}}else o&&(c=o.predicate(P))&&(c===!0&&(c=new Xy(P.from,P.to)),c.fromnew Xy(i.from-o.start,i.to-o.start)),o.target,b[0].from))),o=o.prev}f&&!--f.depth&&(f=f.prev)}}}}function KCe(t,e,o){for(let f of t){if(f.from>=o)break;if(f.to>e)return f.from<=e&&f.to>=o?2:1}return 0}function Tpe(t,e,o,f,P,d){if(e=e.to);f++);let l=P.children[f],n=l.buffer,c=[f];function b(i,O,w,y,p,a){let u=o[a],h=[],m=[];Tpe(l,i,u,h,m,y);let v=n[u+1],_=n[u+2];c.push(h.length);let S=a?b(u+4,n[u+3],l.set.types[n[u]],v,_-v,a-1):e.toTree();return h.push(S),m.push(v-y),Tpe(l,n[u+3],O,h,m,y),new Su(w,h,m,p)}P.children[f]=b(0,n.length,Cp.none,0,l.length,o.length-1);for(let i of c){let O=t.tree.children[i],w=t.tree.positions[i];t.yield(new jg(O,w+t.from,i,t._tree))}}class Cpe{constructor(e,o){this.offset=o,this.done=!1,this.cursor=e.cursor(mf.IncludeAnonymous|mf.IgnoreMounts)}moveTo(e){let{cursor:o}=this,f=e-this.offset;for(;!this.done&&o.from=e&&o.enter(f,1,mf.IgnoreOverlays|mf.ExcludeBuffers)||o.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let o=this.cursor.tree;;){if(o==e.tree)return!0;if(o.children.length&&o.positions[0]==0&&o.children[0]instanceof Su)o=o.children[0];else break}return!1}}let e8e=class{constructor(e){var o;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let f=this.curFrag=e[0];this.curTo=(o=f.tree.prop(mse))!==null&&o!==void 0?o:f.to,this.inner=new Cpe(f.tree,-f.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let o=this.curFrag=this.fragments[this.fragI];this.curTo=(e=o.tree.prop(mse))!==null&&e!==void 0?e:o.to,this.inner=new Cpe(o.tree,-o.offset)}}findMounts(e,o){var f;let P=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let d=this.inner.cursor.node;d;d=d.parent){let l=(f=d.tree)===null||f===void 0?void 0:f.prop(ul.mounted);if(l&&l.parser==o)for(let n=this.fragI;n=d.to)break;c.tree==this.curFrag.tree&&P.push({frag:c,pos:d.from-c.offset,mount:l})}}}return P}};function Ape(t,e){let o=null,f=e;for(let P=1,d=0;P=n)break;c.to<=l||(o||(f=o=e.slice()),c.fromn&&o.splice(d+1,0,new Xy(n,c.to))):c.to>n?o[d--]=new Xy(n,c.to):o.splice(d--,1))}}return f}function t8e(t,e,o,f){let P=0,d=0,l=!1,n=!1,c=-1e9,b=[];for(;;){let i=P==t.length?1e9:l?t[P].to:t[P].from,O=d==e.length?1e9:n?e[d].to:e[d].from;if(l!=n){let w=Math.max(c,o),y=Math.min(i,O,f);wnew Xy(w.from+f,w.to+f)),O=t8e(e,i,c,b);for(let w=0,y=c;;w++){let p=w==O.length,a=p?b:O[w].from;if(a>y&&o.push(new SO(y,a,P.tree,-l,d.from>=y||d.openStart,d.to<=a||d.openEnd)),p)break;y=O[w].to}}else o.push(new SO(c,b,P.tree,-l,d.from>=l||d.openStart,d.to<=n||d.openEnd))}return o}let n8e=0;class px{constructor(e,o,f){this.set=e,this.base=o,this.modified=f,this.id=n8e++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let o=new px([],null,[]);if(o.set.push(o),e)for(let f of e.set)o.set.push(f);return o}static defineModifier(){let e=new HH;return o=>o.modified.indexOf(e)>-1?o:HH.get(o.base||o,o.modified.concat(e).sort((f,P)=>f.id-P.id))}}let r8e=0;class HH{constructor(){this.instances=[],this.id=r8e++}static get(e,o){if(!o.length)return e;let f=o[0].instances.find(n=>n.base==e&&o8e(o,n.modified));if(f)return f;let P=[],d=new px(P,e,o);for(let n of o)n.instances.push(d);let l=i8e(o);for(let n of e.set)if(!n.modified.length)for(let c of l)P.push(HH.get(n,c));return d}}function o8e(t,e){return t.length==e.length&&t.every((o,f)=>o==e[f])}function i8e(t){let e=[[]];for(let o=0;of.length-o.length)}function mS(t){let e=Object.create(null);for(let o in t){let f=t[o];Array.isArray(f)||(f=[f]);for(let P of o.split(" "))if(P){let d=[],l=2,n=P;for(let O=0;;){if(n=="..."&&O>0&&O+3==P.length){l=1;break}let w=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(n);if(!w)throw new RangeError("Invalid path: "+P);if(d.push(w[0]=="*"?"":w[0][0]=='"'?JSON.parse(w[0]):w[0]),O+=w[0].length,O==P.length)break;let y=P[O++];if(O==P.length&&y=="!"){l=0;break}if(y!="/")throw new RangeError("Invalid path: "+P);n=P.slice(O)}let c=d.length-1,b=d[c];if(!b)throw new RangeError("Invalid path: "+P);let i=new ZH(f,l,c>0?d.slice(0,c):null);e[b]=i.sort(e[b])}}return Wye.add(e)}const Wye=new ul;class ZH{constructor(e,o,f,P){this.tags=e,this.mode=o,this.context=f,this.next=P}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let l=P;for(let n of d)for(let c of n.set){let b=o[c.id];if(b){l=l?l+" "+b:b;break}}return l},scope:f}}function a8e(t,e){let o=null;for(let f of t){let P=f.style(e);P&&(o=o?o+" "+P:P)}return o}function s8e(t,e,o,f=0,P=t.length){let d=new l8e(f,Array.isArray(e)?e:[e],o);d.highlightRange(t.cursor(),f,P,"",d.highlighters),d.flush(P)}class l8e{constructor(e,o,f){this.at=e,this.highlighters=o,this.span=f,this.class=""}startSpan(e,o){o!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=o)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,o,f,P,d){let{type:l,from:n,to:c}=e;if(n>=f||c<=o)return;l.isTop&&(d=this.highlighters.filter(y=>!y.scope||y.scope(l)));let b=P,i=c8e(e)||ZH.empty,O=a8e(d,i.tags);if(O&&(b&&(b+=" "),b+=O,i.mode==1&&(P+=(P?" ":"")+O)),this.startSpan(Math.max(o,n),b),i.opaque)return;let w=e.tree&&e.tree.prop(ul.mounted);if(w&&w.overlay){let y=e.node.enter(w.overlay[0].from+n,1),p=this.highlighters.filter(u=>!u.scope||u.scope(w.tree.type)),a=e.firstChild();for(let u=0,h=n;;u++){let m=u=v||!e.nextSibling())););if(!m||v>f)break;h=m.to+n,h>o&&(this.highlightRange(y.cursor(),Math.max(o,m.from+n),Math.min(f,h),"",p),this.startSpan(Math.min(f,h),b))}a&&e.parent()}else if(e.firstChild()){w&&(P="");do if(!(e.to<=o)){if(e.from>=f)break;this.highlightRange(e,o,f,P,d),this.startSpan(Math.min(f,e.to),b)}while(e.nextSibling());e.parent()}}}function c8e(t){let e=t.type.prop(Wye);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const ia=px.define,FQ=ia(),j4=ia(),Epe=ia(j4),Ppe=ia(j4),Q4=ia(),NQ=ia(Q4),_ie=ia(Q4),K2=ia(),Zk=ia(K2),X2=ia(),G2=ia(),gse=ia(),BL=ia(gse),$Q=ia(),Gn={comment:FQ,lineComment:ia(FQ),blockComment:ia(FQ),docComment:ia(FQ),name:j4,variableName:ia(j4),typeName:Epe,tagName:ia(Epe),propertyName:Ppe,attributeName:ia(Ppe),className:ia(j4),labelName:ia(j4),namespace:ia(j4),macroName:ia(j4),literal:Q4,string:NQ,docString:ia(NQ),character:ia(NQ),attributeValue:ia(NQ),number:_ie,integer:ia(_ie),float:ia(_ie),bool:ia(Q4),regexp:ia(Q4),escape:ia(Q4),color:ia(Q4),url:ia(Q4),keyword:X2,self:ia(X2),null:ia(X2),atom:ia(X2),unit:ia(X2),modifier:ia(X2),operatorKeyword:ia(X2),controlKeyword:ia(X2),definitionKeyword:ia(X2),moduleKeyword:ia(X2),operator:G2,derefOperator:ia(G2),arithmeticOperator:ia(G2),logicOperator:ia(G2),bitwiseOperator:ia(G2),compareOperator:ia(G2),updateOperator:ia(G2),definitionOperator:ia(G2),typeOperator:ia(G2),controlOperator:ia(G2),punctuation:gse,separator:ia(gse),bracket:BL,angleBracket:ia(BL),squareBracket:ia(BL),paren:ia(BL),brace:ia(BL),content:K2,heading:Zk,heading1:ia(Zk),heading2:ia(Zk),heading3:ia(Zk),heading4:ia(Zk),heading5:ia(Zk),heading6:ia(Zk),contentSeparator:ia(K2),list:ia(K2),quote:ia(K2),emphasis:ia(K2),strong:ia(K2),link:ia(K2),monospace:ia(K2),strikethrough:ia(K2),inserted:ia(),deleted:ia(),changed:ia(),invalid:ia(),meta:$Q,documentMeta:ia($Q),annotation:ia($Q),processingInstruction:ia($Q),definition:px.defineModifier(),constant:px.defineModifier(),function:px.defineModifier(),standard:px.defineModifier(),local:px.defineModifier(),special:px.defineModifier()};Yye([{tag:Gn.link,class:"tok-link"},{tag:Gn.heading,class:"tok-heading"},{tag:Gn.emphasis,class:"tok-emphasis"},{tag:Gn.strong,class:"tok-strong"},{tag:Gn.keyword,class:"tok-keyword"},{tag:Gn.atom,class:"tok-atom"},{tag:Gn.bool,class:"tok-bool"},{tag:Gn.url,class:"tok-url"},{tag:Gn.labelName,class:"tok-labelName"},{tag:Gn.inserted,class:"tok-inserted"},{tag:Gn.deleted,class:"tok-deleted"},{tag:Gn.literal,class:"tok-literal"},{tag:Gn.string,class:"tok-string"},{tag:Gn.number,class:"tok-number"},{tag:[Gn.regexp,Gn.escape,Gn.special(Gn.string)],class:"tok-string2"},{tag:Gn.variableName,class:"tok-variableName"},{tag:Gn.local(Gn.variableName),class:"tok-variableName tok-local"},{tag:Gn.definition(Gn.variableName),class:"tok-variableName tok-definition"},{tag:Gn.special(Gn.variableName),class:"tok-variableName2"},{tag:Gn.definition(Gn.propertyName),class:"tok-propertyName tok-definition"},{tag:Gn.typeName,class:"tok-typeName"},{tag:Gn.namespace,class:"tok-namespace"},{tag:Gn.className,class:"tok-className"},{tag:Gn.macroName,class:"tok-macroName"},{tag:Gn.propertyName,class:"tok-propertyName"},{tag:Gn.operator,class:"tok-operator"},{tag:Gn.comment,class:"tok-comment"},{tag:Gn.meta,class:"tok-meta"},{tag:Gn.invalid,class:"tok-invalid"},{tag:Gn.punctuation,class:"tok-punctuation"}]);var wie;const aT=new ul;function mce(t){return Ba.define({combine:t?e=>e.concat(t):void 0})}const gce=new ul;class Gy{constructor(e,o,f=[],P=""){this.data=e,this.name=P,jl.prototype.hasOwnProperty("tree")||Object.defineProperty(jl.prototype,"tree",{get(){return Gu(this)}}),this.parser=o,this.extension=[cS.of(this),jl.languageData.of((d,l,n)=>{let c=Rpe(d,l,n),b=c.type.prop(aT);if(!b)return[];let i=d.facet(b),O=c.type.prop(gce);if(O){let w=c.resolve(l-c.from,n);for(let y of O)if(y.test(w,d)){let p=d.facet(y.facet);return y.type=="replace"?p:p.concat(i)}}return i})].concat(f)}isActiveAt(e,o,f=-1){return Rpe(e,o,f).type.prop(aT)==this.data}findRegions(e){let o=e.facet(cS);if((o==null?void 0:o.data)==this.data)return[{from:0,to:e.doc.length}];if(!o||!o.allowsNesting)return[];let f=[],P=(d,l)=>{if(d.prop(aT)==this.data){f.push({from:l,to:l+d.length});return}let n=d.prop(ul.mounted);if(n){if(n.tree.prop(aT)==this.data){if(n.overlay)for(let c of n.overlay)f.push({from:c.from+l,to:c.to+l});else f.push({from:l,to:l+d.length});return}else if(n.overlay){let c=f.length;if(P(n.tree,n.overlay[0].from+l),f.length>c)return}}for(let c=0;cf.isTop?o:void 0)]}),e.name)}configure(e,o){return new lS(this.data,this.parser.configure(e),o||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Gu(t){let e=t.field(Gy.state,!1);return e?e.tree:Su.empty}class u8e{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,o){let f=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,o):this.string.slice(e-f,o-f)}}let zL=null;class NI{constructor(e,o,f=[],P,d,l,n,c){this.parser=e,this.state=o,this.fragments=f,this.tree=P,this.treeLen=d,this.viewport=l,this.skipped=n,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}static create(e,o,f){return new NI(e,o,[],Su.empty,0,f,[],null)}startParse(){return this.parser.startParse(new u8e(this.state.doc),this.fragments)}work(e,o){return o!=null&&o>=this.state.doc.length&&(o=void 0),this.tree!=Su.empty&&this.isDone(o??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var f;if(typeof e=="number"){let P=Date.now()+e;e=()=>Date.now()>P}for(this.parse||(this.parse=this.startParse()),o!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>o)&&o=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(o=this.parse.advance()););}),this.treeLen=e,this.tree=o,this.fragments=this.withoutTempSkipped(SO.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let o=zL;zL=this;try{return e()}finally{zL=o}}withoutTempSkipped(e){for(let o;o=this.tempSkipped.pop();)e=Lpe(e,o.from,o.to);return e}changes(e,o){let{fragments:f,tree:P,treeLen:d,viewport:l,skipped:n}=this;if(this.takeTree(),!e.empty){let c=[];if(e.iterChangedRanges((b,i,O,w)=>c.push({fromA:b,toA:i,fromB:O,toB:w})),f=SO.applyChanges(f,c),P=Su.empty,d=0,l={from:e.mapPos(l.from,-1),to:e.mapPos(l.to,1)},this.skipped.length){n=[];for(let b of this.skipped){let i=e.mapPos(b.from,1),O=e.mapPos(b.to,-1);ie.from&&(this.fragments=Lpe(this.fragments,P,d),this.skipped.splice(f--,1))}return this.skipped.length>=o?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,o){this.skipped.push({from:e,to:o})}static getSkippingParser(e){return new class extends pce{createParse(o,f,P){let d=P[0].from,l=P[P.length-1].to;return{parsedPos:d,advance(){let c=zL;if(c){for(let b of P)c.tempSkipped.push(b);e&&(c.scheduleOn=c.scheduleOn?Promise.all([c.scheduleOn,e]):e)}return this.parsedPos=l,new Su(Cp.none,[],[],l-d)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let o=this.fragments;return this.treeLen>=e&&o.length&&o[0].from==0&&o[0].to>=e}static get(){return zL}}function Lpe(t,e,o){return SO.applyChanges(t,[{fromA:e,toA:o,fromB:e,toB:o}])}class fM{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let o=this.context.changes(e.changes,e.state),f=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),o.viewport.to);return o.work(20,f)||o.takeTree(),new fM(o)}static init(e){let o=Math.min(3e3,e.doc.length),f=NI.create(e.facet(cS).parser,e,{from:0,to:o});return f.work(20,o)||f.takeTree(),new fM(f)}}Gy.state=Ap.define({create:fM.init,update(t,e){for(let o of e.effects)if(o.is(Gy.setState))return o.value;return e.startState.facet(cS)!=e.state.facet(cS)?fM.init(e.state):t.apply(e)}});let Xye=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Xye=t=>{let e=-1,o=setTimeout(()=>{e=requestIdleCallback(t,{timeout:500-100})},100);return()=>e<0?clearTimeout(o):cancelIdleCallback(e)});const Oie=typeof navigator<"u"&&(!((wie=navigator.scheduling)===null||wie===void 0)&&wie.isInputPending)?()=>navigator.scheduling.isInputPending():null,f8e=Wd.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let o=this.view.state.field(Gy.state).context;(o.updateViewport(e.view.viewport)||this.view.viewport.to>o.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(o)}scheduleWork(){if(this.working)return;let{state:e}=this.view,o=e.field(Gy.state);(o.tree!=o.context.tree||!o.context.isDone(e.doc.length))&&(this.working=Xye(this.work))}work(e){this.working=null;let o=Date.now();if(this.chunkEndP+1e3,c=d.context.work(()=>Oie&&Oie()||Date.now()>l,P+(n?0:1e5));this.chunkBudget-=Date.now()-o,(c||this.chunkBudget<=0)&&(d.context.takeTree(),this.view.dispatch({effects:Gy.setState.of(new fM(d.context))})),this.chunkBudget>0&&!(c&&!n)&&this.scheduleWork(),this.checkAsyncSchedule(d.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(o=>tb(this.view.state,o)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),cS=Ba.define({combine(t){return t.length?t[0]:null},enables:t=>[Gy.state,f8e,Oa.contentAttributes.compute([t],e=>{let o=e.facet(t);return o&&o.name?{"data-language":o.name}:{}})]});class gT{constructor(e,o=[]){this.language=e,this.support=o,this.extension=[e,o]}}class qH{constructor(e,o,f,P,d,l=void 0){this.name=e,this.alias=o,this.extensions=f,this.filename=P,this.loadFunc=d,this.support=l,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:o,support:f}=e;if(!o){if(!f)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");o=()=>Promise.resolve(f)}return new qH(e.name,(e.alias||[]).concat(e.name).map(P=>P.toLowerCase()),e.extensions||[],e.filename,o,f)}static matchFilename(e,o){for(let P of e)if(P.filename&&P.filename.test(o))return P;let f=/\.([^.]+)$/.exec(o);if(f){for(let P of e)if(P.extensions.indexOf(f[1])>-1)return P}return null}static matchLanguageName(e,o,f=!0){o=o.toLowerCase();for(let P of e)if(P.alias.some(d=>d==o))return P;if(f)for(let P of e)for(let d of P.alias){let l=o.indexOf(d);if(l>-1&&(d.length>2||!/\w/.test(o[l-1])&&!/\w/.test(o[l+d.length])))return P}return null}}const d8e=Ba.define(),wT=Ba.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(o=>o!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function WH(t){let e=t.facet(wT);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function $I(t,e){let o="",f=t.tabSize,P=t.facet(wT)[0];if(P==" "){for(;e>=f;)o+=" ",e-=f;P=" "}for(let d=0;d=e?h8e(t,o,e):null}class KZ{constructor(e,o={}){this.state=e,this.options=o,this.unit=WH(e)}lineAt(e,o=1){let f=this.state.doc.lineAt(e),{simulateBreak:P,simulateDoubleBreak:d}=this.options;return P!=null&&P>=f.from&&P<=f.to?d&&P==e?{text:"",from:e}:(o<0?P-1&&(d+=l-this.countColumn(f,f.search(/\S|$/))),d}countColumn(e,o=e.length){return bx(e,this.state.tabSize,o)}lineIndent(e,o=1){let{text:f,from:P}=this.lineAt(e,o),d=this.options.overrideIndentation;if(d){let l=d(P);if(l>-1)return l}return this.countColumn(f,f.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const OT=new ul;function h8e(t,e,o){let f=e.resolveStack(o),P=f.node.enterUnfinishedNodesBefore(o);if(P!=f.node){let d=[];for(let l=P;l!=f.node;l=l.parent)d.push(l);for(let l=d.length-1;l>=0;l--)f={node:d[l],next:f}}return Gye(f,t,o)}function Gye(t,e,o){for(let f=t;f;f=f.next){let P=m8e(f.node);if(P)return P(yce.create(e,o,f))}return 0}function p8e(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function m8e(t){let e=t.type.prop(OT);if(e)return e;let o=t.firstChild,f;if(o&&(f=o.type.prop(ul.closedBy))){let P=t.lastChild,d=P&&f.indexOf(P.name)>-1;return l=>Kye(l,!0,1,void 0,d&&!p8e(l)?P.from:void 0)}return t.parent==null?g8e:null}function g8e(){return 0}class yce extends KZ{constructor(e,o,f){super(e.state,e.options),this.base=e,this.pos=o,this.context=f}get node(){return this.context.node}static create(e,o,f){return new yce(e,o,f)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let o=this.state.doc.lineAt(e.from);for(;;){let f=e.resolve(o.from);for(;f.parent&&f.parent.from==f.from;)f=f.parent;if(v8e(f,e))break;o=this.state.doc.lineAt(f.from)}return this.lineIndent(o.from)}continue(){return Gye(this.context.next,this.base,this.pos)}}function v8e(t,e){for(let o=e;o;o=o.parent)if(t==o)return!0;return!1}function y8e(t){let e=t.node,o=e.childAfter(e.from),f=e.lastChild;if(!o)return null;let P=t.options.simulateBreak,d=t.state.doc.lineAt(o.from),l=P==null||P<=d.from?d.to:Math.min(d.to,P);for(let n=o.to;;){let c=e.childAfter(n);if(!c||c==f)return null;if(!c.type.isSkipped)return c.fromKye(f,e,o,t)}function Kye(t,e,o,f,P){let d=t.textAfter,l=d.match(/^\s*/)[0].length,n=f&&d.slice(l,l+f.length)==f||P==t.pos+l,c=e?y8e(t):null;return c?n?t.column(c.from):t.column(c.to):t.baseIndent+(n?0:t.unit*o)}const b8e=t=>t.baseIndent;function fI({except:t,units:e=1}={}){return o=>{let f=t&&t.test(o.textAfter);return o.baseIndent+(f?0:e*o.unit)}}const x8e=200;function _8e(){return jl.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let o=t.newDoc,{head:f}=t.newSelection.main,P=o.lineAt(f);if(f>P.from+x8e)return t;let d=o.sliceString(P.from,f);if(!e.some(b=>b.test(d)))return t;let{state:l}=t,n=-1,c=[];for(let{head:b}of l.selection.ranges){let i=l.doc.lineAt(b);if(i.from==n)continue;n=i.from;let O=vce(l,i.from);if(O==null)continue;let w=/^\s*/.exec(i.text)[0],y=$I(l,O);w!=y&&c.push({from:i.from,to:i.from+w.length,insert:y})}return c.length?[t,{changes:c,sequential:!0}]:t})}const Jye=Ba.define(),gS=new ul;function bce(t){let e=t.firstChild,o=t.lastChild;return e&&e.too)continue;if(d&&n.from=e&&b.to>o&&(d=b)}}return d}function O8e(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function YH(t,e,o){for(let f of t.facet(Jye)){let P=f(t,e,o);if(P)return P}return w8e(t,e,o)}function ebe(t,e){let o=e.mapPos(t.from,1),f=e.mapPos(t.to,-1);return o>=f?void 0:{from:o,to:f}}const JZ=cl.define({map:ebe}),yD=cl.define({map:ebe});function tbe(t){let e=[];for(let{head:o}of t.state.selection.ranges)e.some(f=>f.from<=o&&f.to>=o)||e.push(t.lineBlockAt(o));return e}const vT=Ap.define({create(){return es.none},update(t,e){t=t.map(e.changes);for(let o of e.effects)if(o.is(JZ)&&!S8e(t,o.value.from,o.value.to)){let{preparePlaceholder:f}=e.state.facet(xce),P=f?es.replace({widget:new P8e(f(e.state,o.value))}):Ipe;t=t.update({add:[P.range(o.value.from,o.value.to)]})}else o.is(yD)&&(t=t.update({filter:(f,P)=>o.value.from!=f||o.value.to!=P,filterFrom:o.value.from,filterTo:o.value.to}));if(e.selection){let o=!1,{head:f}=e.selection.main;t.between(f,f,(P,d)=>{Pf&&(o=!0)}),o&&(t=t.update({filterFrom:f,filterTo:f,filter:(P,d)=>d<=f||P>=f}))}return t},provide:t=>Oa.decorations.from(t),toJSON(t,e){let o=[];return t.between(0,e.doc.length,(f,P)=>{o.push(f,P)}),o},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let o=0;o{(!P||P.from>d)&&(P={from:d,to:l})}),P}function S8e(t,e,o){let f=!1;return t.between(e,e,(P,d)=>{P==e&&d==o&&(f=!0)}),f}function nbe(t,e){return t.field(vT,!1)?e:e.concat(cl.appendConfig.of(obe()))}const k8e=t=>{for(let e of tbe(t)){let o=YH(t.state,e.from,e.to);if(o)return t.dispatch({effects:nbe(t.state,[JZ.of(o),rbe(t,o)])}),!0}return!1},T8e=t=>{if(!t.state.field(vT,!1))return!1;let e=[];for(let o of tbe(t)){let f=XH(t.state,o.from,o.to);f&&e.push(yD.of(f),rbe(t,f,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function rbe(t,e,o=!0){let f=t.state.doc.lineAt(e.from).number,P=t.state.doc.lineAt(e.to).number;return Oa.announce.of(`${t.state.phrase(o?"Folded lines":"Unfolded lines")} ${f} ${t.state.phrase("to")} ${P}.`)}const C8e=t=>{let{state:e}=t,o=[];for(let f=0;f{let e=t.state.field(vT,!1);if(!e||!e.size)return!1;let o=[];return e.between(0,t.state.doc.length,(f,P)=>{o.push(yD.of({from:f,to:P}))}),t.dispatch({effects:o}),!0},M8e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:k8e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:T8e},{key:"Ctrl-Alt-[",run:C8e},{key:"Ctrl-Alt-]",run:A8e}],E8e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},xce=Ba.define({combine(t){return b_(t,E8e)}});function obe(t){let e=[vT,I8e];return t&&e.push(xce.of(t)),e}function ibe(t,e){let{state:o}=t,f=o.facet(xce),P=l=>{let n=t.lineBlockAt(t.posAtDOM(l.target)),c=XH(t.state,n.from,n.to);c&&t.dispatch({effects:yD.of(c)}),l.preventDefault()};if(f.placeholderDOM)return f.placeholderDOM(t,P,e);let d=document.createElement("span");return d.textContent=f.placeholderText,d.setAttribute("aria-label",o.phrase("folded code")),d.title=o.phrase("unfold"),d.className="cm-foldPlaceholder",d.onclick=P,d}const Ipe=es.replace({widget:new class extends wx{toDOM(t){return ibe(t,null)}}});class P8e extends wx{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return ibe(e,this.value)}}const R8e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Sie extends EO{constructor(e,o){super(),this.config=e,this.open=o}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let o=document.createElement("span");return o.textContent=this.open?this.config.openText:this.config.closedText,o.title=e.state.phrase(this.open?"Fold line":"Unfold line"),o}}function L8e(t={}){let e=Object.assign(Object.assign({},R8e),t),o=new Sie(e,!0),f=new Sie(e,!1),P=Wd.fromClass(class{constructor(l){this.from=l.viewport.from,this.markers=this.buildMarkers(l)}update(l){(l.docChanged||l.viewportChanged||l.startState.facet(cS)!=l.state.facet(cS)||l.startState.field(vT,!1)!=l.state.field(vT,!1)||Gu(l.startState)!=Gu(l.state)||e.foldingChanged(l))&&(this.markers=this.buildMarkers(l.view))}buildMarkers(l){let n=new rS;for(let c of l.viewportLineBlocks){let b=XH(l.state,c.from,c.to)?f:YH(l.state,c.from,c.to)?o:null;b&&n.add(c.from,c.from,b)}return n.finish()}}),{domEventHandlers:d}=e;return[P,LCe({class:"cm-foldGutter",markers(l){var n;return((n=l.plugin(P))===null||n===void 0?void 0:n.markers)||Vu.empty},initialSpacer(){return new Sie(e,!1)},domEventHandlers:Object.assign(Object.assign({},d),{click:(l,n,c)=>{if(d.click&&d.click(l,n,c))return!0;let b=XH(l.state,n.from,n.to);if(b)return l.dispatch({effects:yD.of(b)}),!0;let i=YH(l.state,n.from,n.to);return i?(l.dispatch({effects:JZ.of(i)}),!0):!1}})}),obe()]}const I8e=Oa.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class bD{constructor(e,o){this.specs=e;let f;function P(n){let c=oS.newName();return(f||(f=Object.create(null)))["."+c]=n,c}const d=typeof o.all=="string"?o.all:o.all?P(o.all):void 0,l=o.scope;this.scope=l instanceof Gy?n=>n.prop(aT)==l.data:l?n=>n==l:void 0,this.style=Yye(e.map(n=>({tag:n.tag,class:n.class||P(Object.assign({},n,{tag:null}))})),{all:d}).style,this.module=f?new oS(f):null,this.themeType=o.themeType}static define(e,o){return new bD(e,o||{})}}const vse=Ba.define(),abe=Ba.define({combine(t){return t.length?[t[0]]:null}});function kie(t){let e=t.facet(vse);return e.length?e:t.facet(abe)}function sbe(t,e){let o=[B8e],f;return t instanceof bD&&(t.module&&o.push(Oa.styleModule.of(t.module)),f=t.themeType),e!=null&&e.fallback?o.push(abe.of(t)):f?o.push(vse.computeN([Oa.darkTheme],P=>P.facet(Oa.darkTheme)==(f=="dark")?[t]:[])):o.push(vse.of(t)),o}class D8e{constructor(e){this.markCache=Object.create(null),this.tree=Gu(e.state),this.decorations=this.buildDeco(e,kie(e.state))}update(e){let o=Gu(e.state),f=kie(e.state),P=f!=kie(e.startState);o.length{f.add(l,n,this.markCache[c]||(this.markCache[c]=es.mark({class:c})))},P,d);return f.finish()}}const B8e=Nv.high(Wd.fromClass(D8e,{decorations:t=>t.decorations})),z8e=bD.define([{tag:Gn.meta,color:"#404740"},{tag:Gn.link,textDecoration:"underline"},{tag:Gn.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Gn.emphasis,fontStyle:"italic"},{tag:Gn.strong,fontWeight:"bold"},{tag:Gn.strikethrough,textDecoration:"line-through"},{tag:Gn.keyword,color:"#708"},{tag:[Gn.atom,Gn.bool,Gn.url,Gn.contentSeparator,Gn.labelName],color:"#219"},{tag:[Gn.literal,Gn.inserted],color:"#164"},{tag:[Gn.string,Gn.deleted],color:"#a11"},{tag:[Gn.regexp,Gn.escape,Gn.special(Gn.string)],color:"#e40"},{tag:Gn.definition(Gn.variableName),color:"#00f"},{tag:Gn.local(Gn.variableName),color:"#30a"},{tag:[Gn.typeName,Gn.namespace],color:"#085"},{tag:Gn.className,color:"#167"},{tag:[Gn.special(Gn.variableName),Gn.macroName],color:"#256"},{tag:Gn.definition(Gn.propertyName),color:"#00c"},{tag:Gn.comment,color:"#940"},{tag:Gn.invalid,color:"#f00"}]),F8e=Oa.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),lbe=1e4,cbe="()[]{}",ube=Ba.define({combine(t){return b_(t,{afterCursor:!0,brackets:cbe,maxScanDistance:lbe,renderMatch:V8e})}}),N8e=es.mark({class:"cm-matchingBracket"}),$8e=es.mark({class:"cm-nonmatchingBracket"});function V8e(t){let e=[],o=t.matched?N8e:$8e;return e.push(o.range(t.start.from,t.start.to)),t.end&&e.push(o.range(t.end.from,t.end.to)),e}const U8e=Ap.define({create(){return es.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let o=[],f=e.state.facet(ube);for(let P of e.state.selection.ranges){if(!P.empty)continue;let d=a_(e.state,P.head,-1,f)||P.head>0&&a_(e.state,P.head-1,1,f)||f.afterCursor&&(a_(e.state,P.head,1,f)||P.headOa.decorations.from(t)}),j8e=[U8e,F8e];function Q8e(t={}){return[ube.of(t),j8e]}const fbe=new ul;function yse(t,e,o){let f=t.prop(e<0?ul.openedBy:ul.closedBy);if(f)return f;if(t.name.length==1){let P=o.indexOf(t.name);if(P>-1&&P%2==(e<0?1:0))return[o[P+e]]}return null}function bse(t){let e=t.type.prop(fbe);return e?e(t.node):t}function a_(t,e,o,f={}){let P=f.maxScanDistance||lbe,d=f.brackets||cbe,l=Gu(t),n=l.resolveInner(e,o);for(let c=n;c;c=c.parent){let b=yse(c.type,o,d);if(b&&c.from0?e>=i.from&&ei.from&&e<=i.to))return H8e(t,e,o,c,i,b,d)}}return Z8e(t,e,o,l,n.type,P,d)}function H8e(t,e,o,f,P,d,l){let n=f.parent,c={from:P.from,to:P.to},b=0,i=n==null?void 0:n.cursor();if(i&&(o<0?i.childBefore(f.from):i.childAfter(f.to)))do if(o<0?i.to<=f.from:i.from>=f.to){if(b==0&&d.indexOf(i.type.name)>-1&&i.from0)return null;let b={from:o<0?e-1:e,to:o>0?e+1:e},i=t.doc.iterRange(e,o>0?t.doc.length:0),O=0;for(let w=0;!i.next().done&&w<=d;){let y=i.value;o<0&&(w+=y.length);let p=e+w*o;for(let a=o>0?0:y.length-1,u=o>0?y.length:-1;a!=u;a+=o){let h=l.indexOf(y[a]);if(!(h<0||f.resolveInner(p+a,1).type!=P))if(h%2==0==o>0)O++;else{if(O==1)return{start:b,end:{from:p+a,to:p+a+1},matched:h>>1==c>>1};O--}}o>0&&(w+=y.length)}return i.done?{start:b,matched:!1}:null}const q8e=Object.create(null),Dpe=[Cp.none],Bpe=[],zpe=Object.create(null),W8e=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])W8e[t]=Y8e(q8e,e);function Tie(t,e){Bpe.indexOf(t)>-1||(Bpe.push(t),console.warn(e))}function Y8e(t,e){let o=[];for(let n of e.split(" ")){let c=[];for(let b of n.split(".")){let i=t[b]||Gn[b];i?typeof i=="function"?c.length?c=c.map(i):Tie(b,`Modifier ${b} used at start of tag`):c.length?Tie(b,`Tag ${b} used as modifier`):c=Array.isArray(i)?i:[i]:Tie(b,`Unknown highlighting tag ${b}`)}for(let b of c)o.push(b)}if(!o.length)return 0;let f=e.replace(/ /g,"_"),P=f+" "+o.map(n=>n.id),d=zpe[P];if(d)return d.id;let l=zpe[P]=Cp.define({id:Dpe.length,name:f,props:[mS({[f]:o})]});return Dpe.push(l),l.id}const X8e=t=>{let{state:e}=t,o=e.doc.lineAt(e.selection.main.from),f=wce(t.state,o.from);return f.line?G8e(t):f.block?J8e(t):!1};function _ce(t,e){return({state:o,dispatch:f})=>{if(o.readOnly)return!1;let P=t(e,o);return P?(f(o.update(P)),!0):!1}}const G8e=_ce(nAe,0),K8e=_ce(dbe,0),J8e=_ce((t,e)=>dbe(t,e,tAe(e)),0);function wce(t,e){let o=t.languageDataAt("commentTokens",e);return o.length?o[0]:{}}const FL=50;function eAe(t,{open:e,close:o},f,P){let d=t.sliceDoc(f-FL,f),l=t.sliceDoc(P,P+FL),n=/\s*$/.exec(d)[0].length,c=/^\s*/.exec(l)[0].length,b=d.length-n;if(d.slice(b-e.length,b)==e&&l.slice(c,c+o.length)==o)return{open:{pos:f-n,margin:n&&1},close:{pos:P+c,margin:c&&1}};let i,O;P-f<=2*FL?i=O=t.sliceDoc(f,P):(i=t.sliceDoc(f,f+FL),O=t.sliceDoc(P-FL,P));let w=/^\s*/.exec(i)[0].length,y=/\s*$/.exec(O)[0].length,p=O.length-y-o.length;return i.slice(w,w+e.length)==e&&O.slice(p,p+o.length)==o?{open:{pos:f+w+e.length,margin:/\s/.test(i.charAt(w+e.length))?1:0},close:{pos:P-y-o.length,margin:/\s/.test(O.charAt(p-1))?1:0}}:null}function tAe(t){let e=[];for(let o of t.selection.ranges){let f=t.doc.lineAt(o.from),P=o.to<=f.to?f:t.doc.lineAt(o.to),d=e.length-1;d>=0&&e[d].to>f.from?e[d].to=P.to:e.push({from:f.from+/^\s*/.exec(f.text)[0].length,to:P.to})}return e}function dbe(t,e,o=e.selection.ranges){let f=o.map(d=>wce(e,d.from).block);if(!f.every(d=>d))return null;let P=o.map((d,l)=>eAe(e,f[l],d.from,d.to));if(t!=2&&!P.every(d=>d))return{changes:e.changes(o.map((d,l)=>P[l]?[]:[{from:d.from,insert:f[l].open+" "},{from:d.to,insert:" "+f[l].close}]))};if(t!=1&&P.some(d=>d)){let d=[];for(let l=0,n;lP&&(d==l||l>O.from)){P=O.from;let w=/^\s*/.exec(O.text)[0].length,y=w==O.length,p=O.text.slice(w,w+b.length)==b?w:-1;wd.comment<0&&(!d.empty||d.single))){let d=[];for(let{line:n,token:c,indent:b,empty:i,single:O}of f)(O||!i)&&d.push({from:n.from+b,insert:c+" "});let l=e.changes(d);return{changes:l,selection:e.selection.map(l,1)}}else if(t!=1&&f.some(d=>d.comment>=0)){let d=[];for(let{line:l,comment:n,token:c}of f)if(n>=0){let b=l.from+n,i=b+c.length;l.text[i-l.from]==" "&&i++,d.push({from:b,to:i})}return{changes:d}}return null}const xse=LO.define(),rAe=LO.define(),oAe=Ba.define(),hbe=Ba.define({combine(t){return b_(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,o)=>o},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,o)=>(f,P)=>e(f,P)||o(f,P)})}}),pbe=Ap.define({create(){return s_.empty},update(t,e){let o=e.state.facet(hbe),f=e.annotation(xse);if(f){let c=b1.fromTransaction(e,f.selection),b=f.side,i=b==0?t.undone:t.done;return c?i=GH(i,i.length,o.minDepth,c):i=vbe(i,e.startState.selection),new s_(b==0?f.rest:i,b==0?i:f.rest)}let P=e.annotation(rAe);if((P=="full"||P=="before")&&(t=t.isolate()),e.annotation(Sp.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let d=b1.fromTransaction(e),l=e.annotation(Sp.time),n=e.annotation(Sp.userEvent);return d?t=t.addChanges(d,l,n,o,e):e.selection&&(t=t.addSelection(e.startState.selection,l,n,o.newGroupDelay)),(P=="full"||P=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new s_(t.done.map(b1.fromJSON),t.undone.map(b1.fromJSON))}});function iAe(t={}){return[pbe,hbe.of(t),Oa.domEventHandlers({beforeinput(e,o){let f=e.inputType=="historyUndo"?mbe:e.inputType=="historyRedo"?_se:null;return f?(e.preventDefault(),f(o)):!1}})]}function eq(t,e){return function({state:o,dispatch:f}){if(!e&&o.readOnly)return!1;let P=o.field(pbe,!1);if(!P)return!1;let d=P.pop(t,o,e);return d?(f(d),!0):!1}}const mbe=eq(0,!1),_se=eq(1,!1),aAe=eq(0,!0),sAe=eq(1,!0);class b1{constructor(e,o,f,P,d){this.changes=e,this.effects=o,this.mapped=f,this.startSelection=P,this.selectionsAfter=d}setSelAfter(e){return new b1(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,o,f;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(o=this.mapped)===null||o===void 0?void 0:o.toJSON(),startSelection:(f=this.startSelection)===null||f===void 0?void 0:f.toJSON(),selectionsAfter:this.selectionsAfter.map(P=>P.toJSON())}}static fromJSON(e){return new b1(e.changes&&wp.fromJSON(e.changes),[],e.mapped&&f_.fromJSON(e.mapped),e.startSelection&&Yo.fromJSON(e.startSelection),e.selectionsAfter.map(Yo.fromJSON))}static fromTransaction(e,o){let f=Ky;for(let P of e.startState.facet(oAe)){let d=P(e);d.length&&(f=f.concat(d))}return!f.length&&e.changes.empty?null:new b1(e.changes.invert(e.startState.doc),f,void 0,o||e.startState.selection,Ky)}static selection(e){return new b1(void 0,Ky,void 0,void 0,e)}}function GH(t,e,o,f){let P=e+1>o+20?e-o-1:0,d=t.slice(P,e);return d.push(f),d}function lAe(t,e){let o=[],f=!1;return t.iterChangedRanges((P,d)=>o.push(P,d)),e.iterChangedRanges((P,d,l,n)=>{for(let c=0;c=b&&l<=i&&(f=!0)}}),f}function cAe(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((o,f)=>o.empty!=e.ranges[f].empty).length===0}function gbe(t,e){return t.length?e.length?t.concat(e):t:e}const Ky=[],uAe=200;function vbe(t,e){if(t.length){let o=t[t.length-1],f=o.selectionsAfter.slice(Math.max(0,o.selectionsAfter.length-uAe));return f.length&&f[f.length-1].eq(e)?t:(f.push(e),GH(t,t.length-1,1e9,o.setSelAfter(f)))}else return[b1.selection([e])]}function fAe(t){let e=t[t.length-1],o=t.slice();return o[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),o}function Cie(t,e){if(!t.length)return t;let o=t.length,f=Ky;for(;o;){let P=dAe(t[o-1],e,f);if(P.changes&&!P.changes.empty||P.effects.length){let d=t.slice(0,o);return d[o-1]=P,d}else e=P.mapped,o--,f=P.selectionsAfter}return f.length?[b1.selection(f)]:Ky}function dAe(t,e,o){let f=gbe(t.selectionsAfter.length?t.selectionsAfter.map(n=>n.map(e)):Ky,o);if(!t.changes)return b1.selection(f);let P=t.changes.map(e),d=e.mapDesc(t.changes,!0),l=t.mapped?t.mapped.composeDesc(d):d;return new b1(P,cl.mapEffects(t.effects,e),l,t.startSelection.map(d),f)}const hAe=/^(input\.type|delete)($|\.)/;class s_{constructor(e,o,f=0,P=void 0){this.done=e,this.undone=o,this.prevTime=f,this.prevUserEvent=P}isolate(){return this.prevTime?new s_(this.done,this.undone):this}addChanges(e,o,f,P,d){let l=this.done,n=l[l.length-1];return n&&n.changes&&!n.changes.empty&&e.changes&&(!f||hAe.test(f))&&(!n.selectionsAfter.length&&o-this.prevTime0&&o-this.prevTimeo.empty?t.moveByChar(o,e):tq(o,e))}function Zg(t){return t.textDirectionAt(t.state.selection.main.head)==qd.LTR}const bbe=t=>ybe(t,!Zg(t)),xbe=t=>ybe(t,Zg(t));function _be(t,e){return Ox(t,o=>o.empty?t.moveByGroup(o,e):tq(o,e))}const mAe=t=>_be(t,!Zg(t)),gAe=t=>_be(t,Zg(t));function vAe(t,e,o){if(e.type.prop(o))return!0;let f=e.to-e.from;return f&&(f>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function nq(t,e,o){let f=Gu(t).resolveInner(e.head),P=o?ul.closedBy:ul.openedBy;for(let c=e.head;;){let b=o?f.childAfter(c):f.childBefore(c);if(!b)break;vAe(t,b,P)?f=b:c=o?b.to:b.from}let d=f.type.prop(P),l,n;return d&&(l=o?a_(t,f.from,1):a_(t,f.to,-1))&&l.matched?n=o?l.end.to:l.end.from:n=o?f.to:f.from,Yo.cursor(n,o?-1:1)}const yAe=t=>Ox(t,e=>nq(t.state,e,!Zg(t))),bAe=t=>Ox(t,e=>nq(t.state,e,Zg(t)));function wbe(t,e){return Ox(t,o=>{if(!o.empty)return tq(o,e);let f=t.moveVertically(o,e);return f.head!=o.head?f:t.moveToLineBoundary(o,e)})}const Obe=t=>wbe(t,!1),Sbe=t=>wbe(t,!0);function kbe(t){let e=t.scrollDOM.clientHeightl.empty?t.moveVertically(l,e,o.height):tq(l,e));if(P.eq(f.selection))return!1;let d;if(o.selfScroll){let l=t.coordsAtPos(f.selection.main.head),n=t.scrollDOM.getBoundingClientRect(),c=n.top+o.marginTop,b=n.bottom-o.marginBottom;l&&l.top>c&&l.bottomTbe(t,!1),wse=t=>Tbe(t,!0);function vS(t,e,o){let f=t.lineBlockAt(e.head),P=t.moveToLineBoundary(e,o);if(P.head==e.head&&P.head!=(o?f.to:f.from)&&(P=t.moveToLineBoundary(e,o,!1)),!o&&P.head==f.from&&f.length){let d=/^\s*/.exec(t.state.sliceDoc(f.from,Math.min(f.from+100,f.to)))[0].length;d&&e.head!=f.from+d&&(P=Yo.cursor(f.from+d))}return P}const xAe=t=>Ox(t,e=>vS(t,e,!0)),_Ae=t=>Ox(t,e=>vS(t,e,!1)),wAe=t=>Ox(t,e=>vS(t,e,!Zg(t))),OAe=t=>Ox(t,e=>vS(t,e,Zg(t))),SAe=t=>Ox(t,e=>Yo.cursor(t.lineBlockAt(e.head).from,1)),kAe=t=>Ox(t,e=>Yo.cursor(t.lineBlockAt(e.head).to,-1));function TAe(t,e,o){let f=!1,P=AM(t.selection,d=>{let l=a_(t,d.head,-1)||a_(t,d.head,1)||d.head>0&&a_(t,d.head-1,1)||d.headTAe(t,e,!1);function ab(t,e){let o=AM(t.state.selection,f=>{let P=e(f);return Yo.range(f.anchor,P.head,P.goalColumn,P.bidiLevel||void 0)});return o.eq(t.state.selection)?!1:(t.dispatch(x_(t.state,o)),!0)}function Cbe(t,e){return ab(t,o=>t.moveByChar(o,e))}const Abe=t=>Cbe(t,!Zg(t)),Mbe=t=>Cbe(t,Zg(t));function Ebe(t,e){return ab(t,o=>t.moveByGroup(o,e))}const AAe=t=>Ebe(t,!Zg(t)),MAe=t=>Ebe(t,Zg(t)),EAe=t=>ab(t,e=>nq(t.state,e,!Zg(t))),PAe=t=>ab(t,e=>nq(t.state,e,Zg(t)));function Pbe(t,e){return ab(t,o=>t.moveVertically(o,e))}const Rbe=t=>Pbe(t,!1),Lbe=t=>Pbe(t,!0);function Ibe(t,e){return ab(t,o=>t.moveVertically(o,e,kbe(t).height))}const Npe=t=>Ibe(t,!1),$pe=t=>Ibe(t,!0),RAe=t=>ab(t,e=>vS(t,e,!0)),LAe=t=>ab(t,e=>vS(t,e,!1)),IAe=t=>ab(t,e=>vS(t,e,!Zg(t))),DAe=t=>ab(t,e=>vS(t,e,Zg(t))),BAe=t=>ab(t,e=>Yo.cursor(t.lineBlockAt(e.head).from)),zAe=t=>ab(t,e=>Yo.cursor(t.lineBlockAt(e.head).to)),Vpe=({state:t,dispatch:e})=>(e(x_(t,{anchor:0})),!0),Upe=({state:t,dispatch:e})=>(e(x_(t,{anchor:t.doc.length})),!0),jpe=({state:t,dispatch:e})=>(e(x_(t,{anchor:t.selection.main.anchor,head:0})),!0),Qpe=({state:t,dispatch:e})=>(e(x_(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),FAe=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),NAe=({state:t,dispatch:e})=>{let o=rq(t).map(({from:f,to:P})=>Yo.range(f,Math.min(P+1,t.doc.length)));return e(t.update({selection:Yo.create(o),userEvent:"select"})),!0},$Ae=({state:t,dispatch:e})=>{let o=AM(t.selection,f=>{var P;let d=Gu(t).resolveStack(f.from,1);for(let l=d;l;l=l.next){let{node:n}=l;if((n.from=f.to||n.to>f.to&&n.from<=f.from)&&(!((P=n.parent)===null||P===void 0)&&P.parent))return Yo.range(n.to,n.from)}return f});return e(x_(t,o)),!0},VAe=({state:t,dispatch:e})=>{let o=t.selection,f=null;return o.ranges.length>1?f=Yo.create([o.main]):o.main.empty||(f=Yo.create([Yo.cursor(o.main.head)])),f?(e(x_(t,f)),!0):!1};function xD(t,e){if(t.state.readOnly)return!1;let o="delete.selection",{state:f}=t,P=f.changeByRange(d=>{let{from:l,to:n}=d;if(l==n){let c=e(d);cl&&(o="delete.forward",c=VQ(t,c,!0)),l=Math.min(l,c),n=Math.max(n,c)}else l=VQ(t,l,!1),n=VQ(t,n,!0);return l==n?{range:d}:{changes:{from:l,to:n},range:Yo.cursor(l,lP(t)))f.between(e,e,(P,d)=>{Pe&&(e=o?d:P)});return e}const Dbe=(t,e)=>xD(t,o=>{let f=o.from,{state:P}=t,d=P.doc.lineAt(f),l,n;if(!e&&f>d.from&&fDbe(t,!1),Bbe=t=>Dbe(t,!0),zbe=(t,e)=>xD(t,o=>{let f=o.head,{state:P}=t,d=P.doc.lineAt(f),l=P.charCategorizer(f);for(let n=null;;){if(f==(e?d.to:d.from)){f==o.head&&d.number!=(e?P.doc.lines:1)&&(f+=e?1:-1);break}let c=ng(d.text,f-d.from,e)+d.from,b=d.text.slice(Math.min(f,c)-d.from,Math.max(f,c)-d.from),i=l(b);if(n!=null&&i!=n)break;(b!=" "||f!=o.head)&&(n=i),f=c}return f}),Fbe=t=>zbe(t,!1),UAe=t=>zbe(t,!0),jAe=t=>xD(t,e=>{let o=t.lineBlockAt(e.head).to;return e.headxD(t,e=>{let o=t.moveToLineBoundary(e,!1).head;return e.head>o?o:Math.max(0,e.head-1)}),HAe=t=>xD(t,e=>{let o=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let o=t.changeByRange(f=>({changes:{from:f.from,to:f.to,insert:ru.of(["",""])},range:Yo.cursor(f.from)}));return e(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0},qAe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=t.changeByRange(f=>{if(!f.empty||f.from==0||f.from==t.doc.length)return{range:f};let P=f.from,d=t.doc.lineAt(P),l=P==d.from?P-1:ng(d.text,P-d.from,!1)+d.from,n=P==d.to?P+1:ng(d.text,P-d.from,!0)+d.from;return{changes:{from:l,to:n,insert:t.doc.slice(P,n).append(t.doc.slice(l,P))},range:Yo.cursor(n)}});return o.changes.empty?!1:(e(t.update(o,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function rq(t){let e=[],o=-1;for(let f of t.selection.ranges){let P=t.doc.lineAt(f.from),d=t.doc.lineAt(f.to);if(!f.empty&&f.to==d.from&&(d=t.doc.lineAt(f.to-1)),o>=P.number){let l=e[e.length-1];l.to=d.to,l.ranges.push(f)}else e.push({from:P.from,to:d.to,ranges:[f]});o=d.number+1}return e}function Nbe(t,e,o){if(t.readOnly)return!1;let f=[],P=[];for(let d of rq(t)){if(o?d.to==t.doc.length:d.from==0)continue;let l=t.doc.lineAt(o?d.to+1:d.from-1),n=l.length+1;if(o){f.push({from:d.to,to:l.to},{from:d.from,insert:l.text+t.lineBreak});for(let c of d.ranges)P.push(Yo.range(Math.min(t.doc.length,c.anchor+n),Math.min(t.doc.length,c.head+n)))}else{f.push({from:l.from,to:d.from},{from:d.to,insert:t.lineBreak+l.text});for(let c of d.ranges)P.push(Yo.range(c.anchor-n,c.head-n))}}return f.length?(e(t.update({changes:f,scrollIntoView:!0,selection:Yo.create(P,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const WAe=({state:t,dispatch:e})=>Nbe(t,e,!1),YAe=({state:t,dispatch:e})=>Nbe(t,e,!0);function $be(t,e,o){if(t.readOnly)return!1;let f=[];for(let P of rq(t))o?f.push({from:P.from,insert:t.doc.slice(P.from,P.to)+t.lineBreak}):f.push({from:P.to,insert:t.lineBreak+t.doc.slice(P.from,P.to)});return e(t.update({changes:f,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const XAe=({state:t,dispatch:e})=>$be(t,e,!1),GAe=({state:t,dispatch:e})=>$be(t,e,!0),KAe=t=>{if(t.state.readOnly)return!1;let{state:e}=t,o=e.changes(rq(e).map(({from:P,to:d})=>(P>0?P--:dt.moveVertically(P,!0)).map(o);return t.dispatch({changes:o,selection:f,scrollIntoView:!0,userEvent:"delete.line"}),!0};function JAe(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let o=Gu(t).resolveInner(e),f=o.childBefore(e),P=o.childAfter(e),d;return f&&P&&f.to<=e&&P.from>=e&&(d=f.type.prop(ul.closedBy))&&d.indexOf(P.name)>-1&&t.doc.lineAt(f.to).from==t.doc.lineAt(P.from).from&&!/\S/.test(t.sliceDoc(f.to,P.from))?{from:f.to,to:P.from}:null}const eMe=Vbe(!1),tMe=Vbe(!0);function Vbe(t){return({state:e,dispatch:o})=>{if(e.readOnly)return!1;let f=e.changeByRange(P=>{let{from:d,to:l}=P,n=e.doc.lineAt(d),c=!t&&d==l&&JAe(e,d);t&&(d=l=(l<=n.to?n:e.doc.lineAt(l)).to);let b=new KZ(e,{simulateBreak:d,simulateDoubleBreak:!!c}),i=vce(b,d);for(i==null&&(i=bx(/^\s*/.exec(e.doc.lineAt(d).text)[0],e.tabSize));ln.from&&d{let P=[];for(let l=f.from;l<=f.to;){let n=t.doc.lineAt(l);n.number>o&&(f.empty||f.to>n.from)&&(e(n,P,f),o=n.number),l=n.to+1}let d=t.changes(P);return{changes:P,range:Yo.range(d.mapPos(f.anchor,1),d.mapPos(f.head,1))}})}const nMe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=Object.create(null),f=new KZ(t,{overrideIndentation:d=>{let l=o[d];return l??-1}}),P=Oce(t,(d,l,n)=>{let c=vce(f,d.from);if(c==null)return;/\S/.test(d.text)||(c=0);let b=/^\s*/.exec(d.text)[0],i=$I(t,c);(b!=i||n.fromt.readOnly?!1:(e(t.update(Oce(t,(o,f)=>{f.push({from:o.from,insert:t.facet(wT)})}),{userEvent:"input.indent"})),!0),jbe=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Oce(t,(o,f)=>{let P=/^\s*/.exec(o.text)[0];if(!P)return;let d=bx(P,t.tabSize),l=0,n=$I(t,Math.max(0,d-WH(t)));for(;l({mac:t.key,run:t.run,shift:t.shift}))),iMe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:yAe,shift:EAe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:bAe,shift:PAe},{key:"Alt-ArrowUp",run:WAe},{key:"Shift-Alt-ArrowUp",run:XAe},{key:"Alt-ArrowDown",run:YAe},{key:"Shift-Alt-ArrowDown",run:GAe},{key:"Escape",run:VAe},{key:"Mod-Enter",run:tMe},{key:"Alt-l",mac:"Ctrl-l",run:NAe},{key:"Mod-i",run:$Ae,preventDefault:!0},{key:"Mod-[",run:jbe},{key:"Mod-]",run:Ube},{key:"Mod-Alt-\\",run:nMe},{key:"Shift-Mod-k",run:KAe},{key:"Shift-Mod-\\",run:CAe},{key:"Mod-/",run:X8e},{key:"Alt-A",run:K8e}].concat(oMe),aMe={key:"Tab",run:Ube,shift:jbe};function Df(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,o=arguments[1];if(o&&typeof o=="object"&&o.nodeType==null&&!Array.isArray(o)){for(var f in o)if(Object.prototype.hasOwnProperty.call(o,f)){var P=o[f];typeof P=="string"?t.setAttribute(f,P):P!=null&&(t[f]=P)}e++}for(;et.normalize("NFKD"):t=>t;class dM{constructor(e,o,f=0,P=e.length,d,l){this.test=l,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(f,P),this.bufferStart=f,this.normalize=d?n=>d(Hpe(n)):Hpe,this.query=this.normalize(o)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Jm(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let o=Jle(e),f=this.bufferStart+this.bufferPos;this.bufferPos+=Wy(e);let P=this.normalize(o);for(let d=0,l=f;;d++){let n=P.charCodeAt(d),c=this.match(n,l);if(d==P.length-1){if(c)return this.value=c,this;break}l==f&&dthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let o=this.matchPos<=this.to&&this.re.exec(this.curLine);if(o){let f=this.curLineStart+o.index,P=f+o[0].length;if(this.matchPos=KH(this.text,P+(f==P?1:0)),f==this.curLineStart+this.curLine.length&&this.nextLine(),(fthis.value.to)&&(!this.test||this.test(f,P,o)))return this.value={from:f,to:P,match:o},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=f||P.to<=o){let n=new JA(o,e.sliceString(o,f));return Aie.set(e,n),n}if(P.from==o&&P.to==f)return P;let{text:d,from:l}=P;return l>o&&(d=e.sliceString(o,l)+d,l=o),P.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,o=this.re.exec(this.flat.text);if(o&&!o[0]&&o.index==e&&(this.re.lastIndex=e+1,o=this.re.exec(this.flat.text)),o){let f=this.flat.from+o.index,P=f+o[0].length;if((this.flat.to>=this.to||o.index+o[0].length<=this.flat.text.length-10)&&(!this.test||this.test(f,P,o)))return this.value={from:f,to:P,match:o},this.matchPos=KH(this.text,P+(f==P?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=JA.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Zbe.prototype[Symbol.iterator]=qbe.prototype[Symbol.iterator]=function(){return this});function sMe(t){try{return new RegExp(t,Sce),!0}catch{return!1}}function KH(t,e){if(e>=t.length)return e;let o=t.lineAt(e),f;for(;e=56320&&f<57344;)e++;return e}function Sse(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),o=Df("input",{class:"cm-textfield",name:"line",value:e}),f=Df("form",{class:"cm-gotoLine",onkeydown:d=>{d.keyCode==27?(d.preventDefault(),t.dispatch({effects:JH.of(!1)}),t.focus()):d.keyCode==13&&(d.preventDefault(),P())},onsubmit:d=>{d.preventDefault(),P()}},Df("label",t.state.phrase("Go to line"),": ",o)," ",Df("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function P(){let d=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.value);if(!d)return;let{state:l}=t,n=l.doc.lineAt(l.selection.main.head),[,c,b,i,O]=d,w=i?+i.slice(1):0,y=b?+b:n.number;if(b&&O){let u=y/100;c&&(u=u*(c=="-"?-1:1)+n.number/l.doc.lines),y=Math.round(l.doc.lines*u)}else b&&c&&(y=y*(c=="-"?-1:1)+n.number);let p=l.doc.line(Math.max(1,Math.min(l.doc.lines,y))),a=Yo.cursor(p.from+Math.max(0,Math.min(w,p.length)));t.dispatch({effects:[JH.of(!1),Oa.scrollIntoView(a.from,{y:"center"})],selection:a}),t.focus()}return{dom:f}}const JH=cl.define(),Zpe=Ap.define({create(){return!0},update(t,e){for(let o of e.effects)o.is(JH)&&(t=o.value);return t},provide:t=>BI.from(t,e=>e?Sse:null)}),lMe=t=>{let e=DI(t,Sse);if(!e){let o=[JH.of(!0)];t.state.field(Zpe,!1)==null&&o.push(cl.appendConfig.of([Zpe,cMe])),t.dispatch({effects:o}),e=DI(t,Sse)}return e&&e.dom.querySelector("input").select(),!0},cMe=Oa.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),uMe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Wbe=Ba.define({combine(t){return b_(t,uMe,{highlightWordAroundCursor:(e,o)=>e||o,minSelectionLength:Math.min,maxMatches:Math.min})}});function fMe(t){let e=[gMe,mMe];return t&&e.push(Wbe.of(t)),e}const dMe=es.mark({class:"cm-selectionMatch"}),hMe=es.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function qpe(t,e,o,f){return(o==0||t(e.sliceDoc(o-1,o))!=Ad.Word)&&(f==e.doc.length||t(e.sliceDoc(f,f+1))!=Ad.Word)}function pMe(t,e,o,f){return t(e.sliceDoc(o,o+1))==Ad.Word&&t(e.sliceDoc(f-1,f))==Ad.Word}const mMe=Wd.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Wbe),{state:o}=t,f=o.selection;if(f.ranges.length>1)return es.none;let P=f.main,d,l=null;if(P.empty){if(!e.highlightWordAroundCursor)return es.none;let c=o.wordAt(P.head);if(!c)return es.none;l=o.charCategorizer(P.head),d=o.sliceDoc(c.from,c.to)}else{let c=P.to-P.from;if(c200)return es.none;if(e.wholeWords){if(d=o.sliceDoc(P.from,P.to),l=o.charCategorizer(P.head),!(qpe(l,o,P.from,P.to)&&pMe(l,o,P.from,P.to)))return es.none}else if(d=o.sliceDoc(P.from,P.to).trim(),!d)return es.none}let n=[];for(let c of t.visibleRanges){let b=new dM(o.doc,d,c.from,c.to);for(;!b.next().done;){let{from:i,to:O}=b.value;if((!l||qpe(l,o,i,O))&&(P.empty&&i<=P.from&&O>=P.to?n.push(hMe.range(i,O)):(i>=P.to||O<=P.from)&&n.push(dMe.range(i,O)),n.length>e.maxMatches))return es.none}}return es.set(n)}},{decorations:t=>t.decorations}),gMe=Oa.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),vMe=({state:t,dispatch:e})=>{let{selection:o}=t,f=Yo.create(o.ranges.map(P=>t.wordAt(P.head)||Yo.cursor(P.head)),o.mainIndex);return f.eq(o)?!1:(e(t.update({selection:f})),!0)};function yMe(t,e){let{main:o,ranges:f}=t.selection,P=t.wordAt(o.head),d=P&&P.from==o.from&&P.to==o.to;for(let l=!1,n=new dM(t.doc,e,f[f.length-1].to);;)if(n.next(),n.done){if(l)return null;n=new dM(t.doc,e,0,Math.max(0,f[f.length-1].from-1)),l=!0}else{if(l&&f.some(c=>c.from==n.value.from))continue;if(d){let c=t.wordAt(n.value.from);if(!c||c.from!=n.value.from||c.to!=n.value.to)continue}return n.value}}const bMe=({state:t,dispatch:e})=>{let{ranges:o}=t.selection;if(o.some(d=>d.from===d.to))return vMe({state:t,dispatch:e});let f=t.sliceDoc(o[0].from,o[0].to);if(t.selection.ranges.some(d=>t.sliceDoc(d.from,d.to)!=f))return!1;let P=yMe(t,f);return P?(e(t.update({selection:t.selection.addRange(Yo.range(P.from,P.to),!1),effects:Oa.scrollIntoView(P.to)})),!0):!1},MM=Ba.define({combine(t){return b_(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new PMe(e),scrollToMatch:e=>Oa.scrollIntoView(e)})}});class Ybe{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||sMe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(o,f)=>f=="n"?` -`:f=="r"?"\r":f=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new OMe(this):new _Me(this)}getCursor(e,o=0,f){let P=e.doc?e:jl.create({doc:e});return f==null&&(f=P.doc.length),this.regexp?FA(this,P,o,f):zA(this,P,o,f)}}class Xbe{constructor(e){this.spec=e}}function zA(t,e,o,f){return new dM(e.doc,t.unquoted,o,f,t.caseSensitive?void 0:P=>P.toLowerCase(),t.wholeWord?xMe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function xMe(t,e){return(o,f,P,d)=>((d>o||d+P.length=o)return null;P.push(f.value)}return P}highlight(e,o,f,P){let d=zA(this.spec,e,Math.max(0,o-this.spec.unquoted.length),Math.min(f+this.spec.unquoted.length,e.doc.length));for(;!d.next().done;)P(d.value.from,d.value.to)}}function FA(t,e,o,f){return new Zbe(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?wMe(e.charCategorizer(e.selection.main.head)):void 0},o,f)}function eZ(t,e){return t.slice(ng(t,e,!1),e)}function tZ(t,e){return t.slice(e,ng(t,e))}function wMe(t){return(e,o,f)=>!f[0].length||(t(eZ(f.input,f.index))!=Ad.Word||t(tZ(f.input,f.index))!=Ad.Word)&&(t(tZ(f.input,f.index+f[0].length))!=Ad.Word||t(eZ(f.input,f.index+f[0].length))!=Ad.Word)}class OMe extends Xbe{nextMatch(e,o,f){let P=FA(this.spec,e,f,e.doc.length).next();return P.done&&(P=FA(this.spec,e,0,o).next()),P.done?null:P.value}prevMatchInRange(e,o,f){for(let P=1;;P++){let d=Math.max(o,f-P*1e4),l=FA(this.spec,e,d,f),n=null;for(;!l.next().done;)n=l.value;if(n&&(d==o||n.from>d+10))return n;if(d==o)return null}}prevMatch(e,o,f){return this.prevMatchInRange(e,0,o)||this.prevMatchInRange(e,f,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(o,f)=>f=="$"?"$":f=="&"?e.match[0]:f!="0"&&+f=o)return null;P.push(f.value)}return P}highlight(e,o,f,P){let d=FA(this.spec,e,Math.max(0,o-250),Math.min(f+250,e.doc.length));for(;!d.next().done;)P(d.value.from,d.value.to)}}const VI=cl.define(),kce=cl.define(),eS=Ap.define({create(t){return new Mie(kse(t).create(),null)},update(t,e){for(let o of e.effects)o.is(VI)?t=new Mie(o.value.create(),t.panel):o.is(kce)&&(t=new Mie(t.query,o.value?Tce:null));return t},provide:t=>BI.from(t,e=>e.panel)});class Mie{constructor(e,o){this.query=e,this.panel=o}}const SMe=es.mark({class:"cm-searchMatch"}),kMe=es.mark({class:"cm-searchMatch cm-searchMatch-selected"}),TMe=Wd.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(eS))}update(t){let e=t.state.field(eS);(e!=t.startState.field(eS)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return es.none;let{view:o}=this,f=new rS;for(let P=0,d=o.visibleRanges,l=d.length;Pd[P+1].from-2*250;)c=d[++P].to;t.highlight(o.state,n,c,(b,i)=>{let O=o.state.selection.ranges.some(w=>w.from==b&&w.to==i);f.add(b,i,O?kMe:SMe)})}return f.finish()}},{decorations:t=>t.decorations});function _D(t){return e=>{let o=e.state.field(eS,!1);return o&&o.query.spec.valid?t(e,o):Jbe(e)}}const nZ=_D((t,{query:e})=>{let{to:o}=t.state.selection.main,f=e.nextMatch(t.state,o,o);if(!f)return!1;let P=Yo.single(f.from,f.to),d=t.state.facet(MM);return t.dispatch({selection:P,effects:[Cce(t,f),d.scrollToMatch(P.main,t)],userEvent:"select.search"}),Kbe(t),!0}),rZ=_D((t,{query:e})=>{let{state:o}=t,{from:f}=o.selection.main,P=e.prevMatch(o,f,f);if(!P)return!1;let d=Yo.single(P.from,P.to),l=t.state.facet(MM);return t.dispatch({selection:d,effects:[Cce(t,P),l.scrollToMatch(d.main,t)],userEvent:"select.search"}),Kbe(t),!0}),CMe=_D((t,{query:e})=>{let o=e.matchAll(t.state,1e3);return!o||!o.length?!1:(t.dispatch({selection:Yo.create(o.map(f=>Yo.range(f.from,f.to))),userEvent:"select.search.matches"}),!0)}),AMe=({state:t,dispatch:e})=>{let o=t.selection;if(o.ranges.length>1||o.main.empty)return!1;let{from:f,to:P}=o.main,d=[],l=0;for(let n=new dM(t.doc,t.sliceDoc(f,P));!n.next().done;){if(d.length>1e3)return!1;n.value.from==f&&(l=d.length),d.push(Yo.range(n.value.from,n.value.to))}return e(t.update({selection:Yo.create(d,l),userEvent:"select.search.matches"})),!0},Wpe=_D((t,{query:e})=>{let{state:o}=t,{from:f,to:P}=o.selection.main;if(o.readOnly)return!1;let d=e.nextMatch(o,f,f);if(!d)return!1;let l=[],n,c,b=[];if(d.from==f&&d.to==P&&(c=o.toText(e.getReplacement(d)),l.push({from:d.from,to:d.to,insert:c}),d=e.nextMatch(o,d.from,d.to),b.push(Oa.announce.of(o.phrase("replaced match on line $",o.doc.lineAt(f).number)+"."))),d){let i=l.length==0||l[0].from>=d.to?0:d.to-d.from-c.length;n=Yo.single(d.from-i,d.to-i),b.push(Cce(t,d)),b.push(o.facet(MM).scrollToMatch(n.main,t))}return t.dispatch({changes:l,selection:n,effects:b,userEvent:"input.replace"}),!0}),MMe=_D((t,{query:e})=>{if(t.state.readOnly)return!1;let o=e.matchAll(t.state,1e9).map(P=>{let{from:d,to:l}=P;return{from:d,to:l,insert:e.getReplacement(P)}});if(!o.length)return!1;let f=t.state.phrase("replaced $ matches",o.length)+".";return t.dispatch({changes:o,effects:Oa.announce.of(f),userEvent:"input.replace.all"}),!0});function Tce(t){return t.state.facet(MM).createPanel(t)}function kse(t,e){var o,f,P,d,l;let n=t.selection.main,c=n.empty||n.to>n.from+100?"":t.sliceDoc(n.from,n.to);if(e&&!c)return e;let b=t.facet(MM);return new Ybe({search:((o=e==null?void 0:e.literal)!==null&&o!==void 0?o:b.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:(f=e==null?void 0:e.caseSensitive)!==null&&f!==void 0?f:b.caseSensitive,literal:(P=e==null?void 0:e.literal)!==null&&P!==void 0?P:b.literal,regexp:(d=e==null?void 0:e.regexp)!==null&&d!==void 0?d:b.regexp,wholeWord:(l=e==null?void 0:e.wholeWord)!==null&&l!==void 0?l:b.wholeWord})}function Gbe(t){let e=DI(t,Tce);return e&&e.dom.querySelector("[main-field]")}function Kbe(t){let e=Gbe(t);e&&e==t.root.activeElement&&e.select()}const Jbe=t=>{let e=t.state.field(eS,!1);if(e&&e.panel){let o=Gbe(t);if(o&&o!=t.root.activeElement){let f=kse(t.state,e.query.spec);f.valid&&t.dispatch({effects:VI.of(f)}),o.focus(),o.select()}}else t.dispatch({effects:[kce.of(!0),e?VI.of(kse(t.state,e.query.spec)):cl.appendConfig.of(LMe)]});return!0},exe=t=>{let e=t.state.field(eS,!1);if(!e||!e.panel)return!1;let o=DI(t,Tce);return o&&o.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:kce.of(!1)}),!0},EMe=[{key:"Mod-f",run:Jbe,scope:"editor search-panel"},{key:"F3",run:nZ,shift:rZ,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:nZ,shift:rZ,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:exe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:AMe},{key:"Mod-Alt-g",run:lMe},{key:"Mod-d",run:bMe,preventDefault:!0}];class PMe{constructor(e){this.view=e;let o=this.query=e.state.field(eS).query.spec;this.commit=this.commit.bind(this),this.searchField=Df("input",{value:o.search,placeholder:Cv(e,"Find"),"aria-label":Cv(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Df("input",{value:o.replace,placeholder:Cv(e,"Replace"),"aria-label":Cv(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Df("input",{type:"checkbox",name:"case",form:"",checked:o.caseSensitive,onchange:this.commit}),this.reField=Df("input",{type:"checkbox",name:"re",form:"",checked:o.regexp,onchange:this.commit}),this.wordField=Df("input",{type:"checkbox",name:"word",form:"",checked:o.wholeWord,onchange:this.commit});function f(P,d,l){return Df("button",{class:"cm-button",name:P,onclick:d,type:"button"},l)}this.dom=Df("div",{onkeydown:P=>this.keydown(P),class:"cm-search"},[this.searchField,f("next",()=>nZ(e),[Cv(e,"next")]),f("prev",()=>rZ(e),[Cv(e,"previous")]),f("select",()=>CMe(e),[Cv(e,"all")]),Df("label",null,[this.caseField,Cv(e,"match case")]),Df("label",null,[this.reField,Cv(e,"regexp")]),Df("label",null,[this.wordField,Cv(e,"by word")]),...e.state.readOnly?[]:[Df("br"),this.replaceField,f("replace",()=>Wpe(e),[Cv(e,"replace")]),f("replaceAll",()=>MMe(e),[Cv(e,"replace all")])],Df("button",{name:"close",onclick:()=>exe(e),"aria-label":Cv(e,"close"),type:"button"},["×"])])}commit(){let e=new Ybe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:VI.of(e)}))}keydown(e){U6e(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?rZ:nZ)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Wpe(this.view))}update(e){for(let o of e.transactions)for(let f of o.effects)f.is(VI)&&!f.value.eq(this.query)&&this.setQuery(f.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(MM).top}}function Cv(t,e){return t.state.phrase(e)}const UQ=30,jQ=/[\s\.,:;?!]/;function Cce(t,{from:e,to:o}){let f=t.state.doc.lineAt(e),P=t.state.doc.lineAt(o).to,d=Math.max(f.from,e-UQ),l=Math.min(P,o+UQ),n=t.state.sliceDoc(d,l);if(d!=f.from){for(let c=0;cn.length-UQ;c--)if(!jQ.test(n[c-1])&&jQ.test(n[c])){n=n.slice(0,c);break}}return Oa.announce.of(`${t.state.phrase("current match")}. ${n} ${t.state.phrase("on line")} ${f.number}.`)}const RMe=Oa.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),LMe=[eS,Nv.low(TMe),RMe];class Ace{constructor(e,o,f){this.state=e,this.pos=o,this.explicit=f,this.abortListeners=[]}tokenBefore(e){let o=Gu(this.state).resolveInner(this.pos,-1);for(;o&&e.indexOf(o.name)<0;)o=o.parent;return o?{from:o.from,to:this.pos,text:this.state.sliceDoc(o.from,this.pos),type:o.type}:null}matchBefore(e){let o=this.state.doc.lineAt(this.pos),f=Math.max(o.from,this.pos-250),P=o.text.slice(f-o.from,this.pos-o.from),d=P.search(txe(e,!1));return d<0?null:{from:f+d,to:this.pos,text:P.slice(d)}}get aborted(){return this.abortListeners==null}addEventListener(e,o){e=="abort"&&this.abortListeners&&this.abortListeners.push(o)}}function Ype(t){let e=Object.keys(t).join(""),o=/\w/.test(e);return o&&(e=e.replace(/\w/g,"")),`[${o?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function IMe(t){let e=Object.create(null),o=Object.create(null);for(let{label:P}of t){e[P[0]]=!0;for(let d=1;dtypeof P=="string"?{label:P}:P),[o,f]=e.every(P=>/^\w+$/.test(P.label))?[/\w*$/,/\w+$/]:IMe(e);return P=>{let d=P.matchBefore(f);return d||P.explicit?{from:d?d.from:P.pos,options:e,validFor:o}:null}}function Mce(t,e){return o=>{for(let f=Gu(o.state).resolveInner(o.pos,-1);f;f=f.parent){if(t.indexOf(f.name)>-1)return null;if(f.type.isTop)break}return e(o)}}class Xpe{constructor(e,o,f,P){this.completion=e,this.source=o,this.match=f,this.score=P}}function tS(t){return t.selection.main.from}function txe(t,e){var o;let{source:f}=t,P=e&&f[0]!="^",d=f[f.length-1]!="$";return!P&&!d?t:new RegExp(`${P?"^":""}(?:${f})${d?"$":""}`,(o=t.flags)!==null&&o!==void 0?o:t.ignoreCase?"i":"")}const nxe=LO.define();function DMe(t,e,o,f){let{main:P}=t.selection,d=o-P.from,l=f-P.from;return Object.assign(Object.assign({},t.changeByRange(n=>n!=P&&o!=f&&t.sliceDoc(n.from+d,n.from+l)!=t.sliceDoc(o,f)?{range:n}:{changes:{from:n.from+d,to:f==P.from?n.to:n.from+l,insert:e},range:Yo.cursor(n.from+d+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Gpe=new WeakMap;function BMe(t){if(!Array.isArray(t))return t;let e=Gpe.get(t);return e||Gpe.set(t,e=oq(t)),e}const Ece=cl.define(),UI=cl.define();class zMe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let o=0;o=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(A=Jle(S))!=A.toLowerCase()?1:A!=A.toUpperCase()?2:0;(!m||x==1&&u||_==0&&x!=0)&&(o[O]==S||f[O]==S&&(w=!0)?l[O++]=m:l.length&&(h=!1)),_=x,m+=Wy(S)}return O==c&&l[0]==0&&h?this.result(-100+(w?-200:0),l,e):y==c&&p==0?this.ret(-200-e.length+(a==e.length?0:-100),[0,a]):n>-1?this.ret(-700-e.length,[n,n+this.pattern.length]):y==c?this.ret(-200+-700-e.length,[p,a]):O==c?this.result(-100+(w?-200:0)+-700+(h?0:-1100),l,e):o.length==2?!1:this.result((P[0]?-700:0)+-200+-1100,P,e)}result(e,o,f){let P=[],d=0;for(let l of o){let n=l+(this.astral?Wy(Jm(f,l)):1);d&&P[d-1]==l?P[d-1]=n:(P[d++]=l,P[d++]=n)}return this.ret(e-f.length,P)}}const Vg=Ba.define({combine(t){return b_(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:FMe,compareCompletions:(e,o)=>e.label.localeCompare(o.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,o)=>e&&o,closeOnBlur:(e,o)=>e&&o,icons:(e,o)=>e&&o,tooltipClass:(e,o)=>f=>Kpe(e(f),o(f)),optionClass:(e,o)=>f=>Kpe(e(f),o(f)),addToOptions:(e,o)=>e.concat(o)})}});function Kpe(t,e){return t?e?t+" "+e:t:e}function FMe(t,e,o,f,P,d){let l=t.textDirection==qd.RTL,n=l,c=!1,b="top",i,O,w=e.left-P.left,y=P.right-e.right,p=f.right-f.left,a=f.bottom-f.top;if(n&&w=a||m>e.top?i=o.bottom-e.top:(b="bottom",i=e.bottom-o.top)}let u=(e.bottom-e.top)/d.offsetHeight,h=(e.right-e.left)/d.offsetWidth;return{style:`${b}: ${i/u}px; max-width: ${O/h}px`,class:"cm-completionInfo-"+(c?l?"left-narrow":"right-narrow":n?"left":"right")}}function NMe(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(o){let f=document.createElement("div");return f.classList.add("cm-completionIcon"),o.type&&f.classList.add(...o.type.split(/\s+/g).map(P=>"cm-completionIcon-"+P)),f.setAttribute("aria-hidden","true"),f},position:20}),e.push({render(o,f,P,d){let l=document.createElement("span");l.className="cm-completionLabel";let n=o.displayLabel||o.label,c=0;for(let b=0;bc&&l.appendChild(document.createTextNode(n.slice(c,i)));let w=l.appendChild(document.createElement("span"));w.appendChild(document.createTextNode(n.slice(i,O))),w.className="cm-completionMatchedText",c=O}return co.position-f.position).map(o=>o.render)}function Eie(t,e,o){if(t<=o)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let P=Math.floor(e/o);return{from:P*o,to:(P+1)*o}}let f=Math.floor((t-e)/o);return{from:t-(f+1)*o,to:t-f*o}}class $Me{constructor(e,o,f){this.view=e,this.stateField=o,this.applyCompletion=f,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:c=>this.placeInfo(c),key:this},this.space=null,this.currentClass="";let P=e.state.field(o),{options:d,selected:l}=P.open,n=e.state.facet(Vg);this.optionContent=NMe(n),this.optionClass=n.optionClass,this.tooltipClass=n.tooltipClass,this.range=Eie(d.length,l,n.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",c=>{let{options:b}=e.state.field(o).open;for(let i=c.target,O;i&&i!=this.dom;i=i.parentNode)if(i.nodeName=="LI"&&(O=/-(\d+)$/.exec(i.id))&&+O[1]{let b=e.state.field(this.stateField,!1);b&&b.tooltip&&e.state.facet(Vg).closeOnBlur&&c.relatedTarget!=e.contentDOM&&e.dispatch({effects:UI.of(null)})}),this.showOptions(d,P.id)}mount(){this.updateSel()}showOptions(e,o){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,o,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var o;let f=e.state.field(this.stateField),P=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),f!=P){let{options:d,selected:l,disabled:n}=f.open;(!P.open||P.open.options!=d)&&(this.range=Eie(d.length,l,e.state.facet(Vg).maxRenderedOptions),this.showOptions(d,f.id)),this.updateSel(),n!=((o=P.open)===null||o===void 0?void 0:o.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!n)}}updateTooltipClass(e){let o=this.tooltipClass(e);if(o!=this.currentClass){for(let f of this.currentClass.split(" "))f&&this.dom.classList.remove(f);for(let f of o.split(" "))f&&this.dom.classList.add(f);this.currentClass=o}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),o=e.open;if((o.selected>-1&&o.selected=this.range.to)&&(this.range=Eie(o.options.length,o.selected,this.view.state.facet(Vg).maxRenderedOptions),this.showOptions(o.options,e.id)),this.updateSelectedOption(o.selected)){this.destroyInfo();let{completion:f}=o.options[o.selected],{info:P}=f;if(!P)return;let d=typeof P=="string"?document.createTextNode(P):P(f);if(!d)return;"then"in d?d.then(l=>{l&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(l,f)}).catch(l=>tb(this.view.state,l,"completion info")):this.addInfoPane(d,f)}}addInfoPane(e,o){this.destroyInfo();let f=this.info=document.createElement("div");if(f.className="cm-tooltip cm-completionInfo",e.nodeType!=null)f.appendChild(e),this.infoDestroy=null;else{let{dom:P,destroy:d}=e;f.appendChild(P),this.infoDestroy=d||null}this.dom.appendChild(f),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let o=null;for(let f=this.list.firstChild,P=this.range.from;f;f=f.nextSibling,P++)f.nodeName!="LI"||!f.id?P--:P==e?f.hasAttribute("aria-selected")||(f.setAttribute("aria-selected","true"),o=f):f.hasAttribute("aria-selected")&&f.removeAttribute("aria-selected");return o&&UMe(this.list,o),o}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let o=this.dom.getBoundingClientRect(),f=this.info.getBoundingClientRect(),P=e.getBoundingClientRect(),d=this.space;if(!d){let l=this.dom.ownerDocument.defaultView||window;d={left:0,top:0,right:l.innerWidth,bottom:l.innerHeight}}return P.top>Math.min(d.bottom,o.bottom)-10||P.bottomf.from||f.from==0))if(d=w,typeof b!="string"&&b.header)P.appendChild(b.header(b));else{let y=P.appendChild(document.createElement("completion-section"));y.textContent=w}}const i=P.appendChild(document.createElement("li"));i.id=o+"-"+l,i.setAttribute("role","option");let O=this.optionClass(n);O&&(i.className=O);for(let w of this.optionContent){let y=w(n,this.view.state,this.view,c);y&&i.appendChild(y)}}return f.from&&P.classList.add("cm-completionListIncompleteTop"),f.tonew $Me(o,t,e)}function UMe(t,e){let o=t.getBoundingClientRect(),f=e.getBoundingClientRect(),P=o.height/t.offsetHeight;f.topo.bottom&&(t.scrollTop+=(f.bottom-o.bottom)/P)}function Jpe(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function jMe(t,e){let o=[],f=null,P=c=>{o.push(c);let{section:b}=c.completion;if(b){f||(f=[]);let i=typeof b=="string"?b:b.name;f.some(O=>O.name==i)||f.push(typeof b=="string"?{name:i}:b)}};for(let c of t)if(c.hasResult()){let b=c.result.getMatch;if(c.result.filter===!1)for(let i of c.result.options)P(new Xpe(i,c.source,b?b(i):[],1e9-o.length));else{let i=new zMe(e.sliceDoc(c.from,c.to));for(let O of c.result.options)if(i.match(O.label)){let w=O.displayLabel?b?b(O,i.matched):[]:i.matched;P(new Xpe(O,c.source,w,i.score+(O.boost||0)))}}}if(f){let c=Object.create(null),b=0,i=(O,w)=>{var y,p;return((y=O.rank)!==null&&y!==void 0?y:1e9)-((p=w.rank)!==null&&p!==void 0?p:1e9)||(O.namei.score-b.score||n(b.completion,i.completion))){let b=c.completion;!l||l.label!=b.label||l.detail!=b.detail||l.type!=null&&b.type!=null&&l.type!=b.type||l.apply!=b.apply||l.boost!=b.boost?d.push(c):Jpe(c.completion)>Jpe(l)&&(d[d.length-1]=c),l=c.completion}return d}class UA{constructor(e,o,f,P,d,l){this.options=e,this.attrs=o,this.tooltip=f,this.timestamp=P,this.selected=d,this.disabled=l}setSelected(e,o){return e==this.selected||e>=this.options.length?this:new UA(this.options,eme(o,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,o,f,P,d){let l=jMe(e,o);if(!l.length)return P&&e.some(c=>c.state==1)?new UA(P.options,P.attrs,P.tooltip,P.timestamp,P.selected,!0):null;let n=o.facet(Vg).selectOnOpen?0:-1;if(P&&P.selected!=n&&P.selected!=-1){let c=P.options[P.selected].completion;for(let b=0;bb.hasResult()?Math.min(c,b.from):c,1e8),create:WMe,above:d.aboveCursor},P?P.timestamp:Date.now(),n,!1)}map(e){return new UA(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class oZ{constructor(e,o,f){this.active=e,this.id=o,this.open=f}static start(){return new oZ(ZMe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:o}=e,f=o.facet(Vg),d=(f.override||o.languageDataAt("autocomplete",tS(o)).map(BMe)).map(n=>(this.active.find(b=>b.source==n)||new v1(n,this.active.some(b=>b.state!=0)?1:0)).update(e,f));d.length==this.active.length&&d.every((n,c)=>n==this.active[c])&&(d=this.active);let l=this.open;l&&e.docChanged&&(l=l.map(e.changes)),e.selection||d.some(n=>n.hasResult()&&e.changes.touchesRange(n.from,n.to))||!QMe(d,this.active)?l=UA.build(d,o,this.id,l,f):l&&l.disabled&&!d.some(n=>n.state==1)&&(l=null),!l&&d.every(n=>n.state!=1)&&d.some(n=>n.hasResult())&&(d=d.map(n=>n.hasResult()?new v1(n.source,0):n));for(let n of e.effects)n.is(oxe)&&(l=l&&l.setSelected(n.value,this.id));return d==this.active&&l==this.open?this:new oZ(d,this.id,l)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:HMe}}function QMe(t,e){if(t==e)return!0;for(let o=0,f=0;;){for(;o-1&&(o["aria-activedescendant"]=t+"-"+e),o}const ZMe=[];function Tse(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class v1{constructor(e,o,f=-1){this.source=e,this.state=o,this.explicitPos=f}hasResult(){return!1}update(e,o){let f=Tse(e),P=this;f?P=P.handleUserEvent(e,f,o):e.docChanged?P=P.handleChange(e):e.selection&&P.state!=0&&(P=new v1(P.source,0));for(let d of e.effects)if(d.is(Ece))P=new v1(P.source,1,d.value?tS(e.state):-1);else if(d.is(UI))P=new v1(P.source,0);else if(d.is(rxe))for(let l of d.value)l.source==P.source&&(P=l);return P}handleUserEvent(e,o,f){return o=="delete"||!f.activateOnTyping?this.map(e.changes):new v1(this.source,1)}handleChange(e){return e.changes.touchesRange(tS(e.startState))?new v1(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new v1(this.source,this.state,e.mapPos(this.explicitPos))}}class eM extends v1{constructor(e,o,f,P,d){super(e,2,o),this.result=f,this.from=P,this.to=d}hasResult(){return!0}handleUserEvent(e,o,f){var P;let d=e.changes.mapPos(this.from),l=e.changes.mapPos(this.to,1),n=tS(e.state);if((this.explicitPos<0?n<=d:nl||o=="delete"&&tS(e.startState)==this.from)return new v1(this.source,o=="input"&&f.activateOnTyping?1:0);let c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),b;return qMe(this.result.validFor,e.state,d,l)?new eM(this.source,c,this.result,d,l):this.result.update&&(b=this.result.update(this.result,d,l,new Ace(e.state,n,c>=0)))?new eM(this.source,c,b,b.from,(P=b.to)!==null&&P!==void 0?P:tS(e.state)):new v1(this.source,1,c)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new v1(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new eM(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function qMe(t,e,o,f){if(!t)return!1;let P=e.sliceDoc(o,f);return typeof t=="function"?t(P,o,f,e):txe(t,!0).test(P)}const rxe=cl.define({map(t,e){return t.map(o=>o.map(e))}}),oxe=cl.define(),Iv=Ap.define({create(){return oZ.start()},update(t,e){return t.update(e)},provide:t=>[cce.from(t,e=>e.tooltip),Oa.contentAttributes.from(t,e=>e.attrs)]});function ixe(t,e){const o=e.completion.apply||e.completion.label;let f=t.state.field(Iv).active.find(P=>P.source==e.source);return f instanceof eM?(typeof o=="string"?t.dispatch(Object.assign(Object.assign({},DMe(t.state,o,f.from,f.to)),{annotations:nxe.of(e.completion)})):o(t,e.completion,f.from,f.to),!0):!1}const WMe=VMe(Iv,ixe);function QQ(t,e="option"){return o=>{let f=o.state.field(Iv,!1);if(!f||!f.open||f.open.disabled||Date.now()-f.open.timestamp-1?f.open.selected+P*(t?1:-1):t?0:l-1;return n<0?n=e=="page"?0:l-1:n>=l&&(n=e=="page"?l-1:0),o.dispatch({effects:oxe.of(n)}),!0}}const YMe=t=>{let e=t.state.field(Iv,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(Iv,!1)?(t.dispatch({effects:Ece.of(!0)}),!0):!1,GMe=t=>{let e=t.state.field(Iv,!1);return!e||!e.active.some(o=>o.state!=0)?!1:(t.dispatch({effects:UI.of(null)}),!0)};class KMe{constructor(e,o){this.active=e,this.context=o,this.time=Date.now(),this.updates=[],this.done=void 0}}const JMe=50,eEe=1e3,tEe=Wd.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of t.state.field(Iv).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(Iv);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Iv)==e)return;let o=t.transactions.some(f=>(f.selection||f.docChanged)&&!Tse(f));for(let f=0;fJMe&&Date.now()-P.time>eEe){for(let d of P.context.abortListeners)try{d()}catch(l){tb(this.view.state,l)}P.context.abortListeners=null,this.running.splice(f--,1)}else P.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(f=>f.state==1&&!this.running.some(P=>P.active.source==f.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let f of t.transactions)Tse(f)=="input"?this.composing=2:this.composing==2&&f.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(Iv);for(let o of e.active)o.state==1&&!this.running.some(f=>f.active.source==o.source)&&this.startQuery(o)}startQuery(t){let{state:e}=this.view,o=tS(e),f=new Ace(e,o,t.explicitPos==o),P=new KMe(t,f);this.running.push(P),Promise.resolve(t.source(f)).then(d=>{P.context.aborted||(P.done=d||null,this.scheduleAccept())},d=>{this.view.dispatch({effects:UI.of(null)}),tb(this.view.state,d)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Vg).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],o=this.view.state.facet(Vg);for(let f=0;fl.source==P.active.source);if(d&&d.state==1)if(P.done==null){let l=new v1(P.active.source,0);for(let n of P.updates)l=l.update(n,o);l.state!=1&&e.push(l)}else this.startQuery(d)}e.length&&this.view.dispatch({effects:rxe.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Iv,!1);if(e&&e.tooltip&&this.view.state.facet(Vg).closeOnBlur){let o=e.open&&Nye(this.view,e.open.tooltip);(!o||!o.dom.contains(t.relatedTarget))&&this.view.dispatch({effects:UI.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Ece.of(!1)}),20),this.composing=0}}}),axe=Oa.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class nEe{constructor(e,o,f,P){this.field=e,this.line=o,this.from=f,this.to=P}}class Pce{constructor(e,o,f){this.field=e,this.from=o,this.to=f}map(e){let o=e.mapPos(this.from,-1,tg.TrackDel),f=e.mapPos(this.to,1,tg.TrackDel);return o==null||f==null?null:new Pce(this.field,o,f)}}class Rce{constructor(e,o){this.lines=e,this.fieldPositions=o}instantiate(e,o){let f=[],P=[o],d=e.doc.lineAt(o),l=/^\s*/.exec(d.text)[0];for(let c of this.lines){if(f.length){let b=l,i=/^\t*/.exec(c)[0].length;for(let O=0;Onew Pce(c.field,P[c.line]+c.from,P[c.line]+c.to));return{text:f,ranges:n}}static parse(e){let o=[],f=[],P=[],d;for(let l of e.split(/\r\n?|\n/)){for(;d=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(l);){let n=d[1]?+d[1]:null,c=d[2]||d[3]||"",b=-1;for(let i=0;i=b&&O.field++}P.push(new nEe(b,f.length,d.index,d.index+c.length)),l=l.slice(0,d.index)+c+l.slice(d.index+d[0].length)}for(let n;n=/\\([{}])/.exec(l);){l=l.slice(0,n.index)+n[1]+l.slice(n.index+n[0].length);for(let c of P)c.line==f.length&&c.from>n.index&&(c.from--,c.to--)}f.push(l)}return new Rce(f,P)}}let rEe=es.widget({widget:new class extends wx{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),oEe=es.mark({class:"cm-snippetField"});class EM{constructor(e,o){this.ranges=e,this.active=o,this.deco=es.set(e.map(f=>(f.from==f.to?rEe:oEe).range(f.from,f.to)))}map(e){let o=[];for(let f of this.ranges){let P=f.map(e);if(!P)return null;o.push(P)}return new EM(o,this.active)}selectionInsideField(e){return e.ranges.every(o=>this.ranges.some(f=>f.field==this.active&&f.from<=o.from&&f.to>=o.to))}}const wD=cl.define({map(t,e){return t&&t.map(e)}}),iEe=cl.define(),jI=Ap.define({create(){return null},update(t,e){for(let o of e.effects){if(o.is(wD))return o.value;if(o.is(iEe)&&t)return new EM(t.ranges,o.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Oa.decorations.from(t,e=>e?e.deco:es.none)});function Lce(t,e){return Yo.create(t.filter(o=>o.field==e).map(o=>Yo.range(o.from,o.to)))}function aEe(t){let e=Rce.parse(t);return(o,f,P,d)=>{let{text:l,ranges:n}=e.instantiate(o.state,P),c={changes:{from:P,to:d,insert:ru.of(l)},scrollIntoView:!0,annotations:f?nxe.of(f):void 0};if(n.length&&(c.selection=Lce(n,0)),n.length>1){let b=new EM(n,0),i=c.effects=[wD.of(b)];o.state.field(jI,!1)===void 0&&i.push(cl.appendConfig.of([jI,fEe,dEe,axe]))}o.dispatch(o.state.update(c))}}function sxe(t){return({state:e,dispatch:o})=>{let f=e.field(jI,!1);if(!f||t<0&&f.active==0)return!1;let P=f.active+t,d=t>0&&!f.ranges.some(l=>l.field==P+t);return o(e.update({selection:Lce(f.ranges,P),effects:wD.of(d?null:new EM(f.ranges,P)),scrollIntoView:!0})),!0}}const sEe=({state:t,dispatch:e})=>t.field(jI,!1)?(e(t.update({effects:wD.of(null)})),!0):!1,lEe=sxe(1),cEe=sxe(-1),uEe=[{key:"Tab",run:lEe,shift:cEe},{key:"Escape",run:sEe}],tme=Ba.define({combine(t){return t.length?t[0]:uEe}}),fEe=Nv.highest(IO.compute([tme],t=>t.facet(tme)));function Hd(t,e){return Object.assign(Object.assign({},e),{apply:aEe(t)})}const dEe=Oa.domEventHandlers({mousedown(t,e){let o=e.state.field(jI,!1),f;if(!o||(f=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let P=o.ranges.find(d=>d.from<=f&&d.to>=f);return!P||P.field==o.active?!1:(e.dispatch({selection:Lce(o.ranges,P.field),effects:wD.of(o.ranges.some(d=>d.field>P.field)?new EM(o.ranges,P.field):null),scrollIntoView:!0}),!0)}}),QI={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},sT=cl.define({map(t,e){let o=e.mapPos(t,-1,tg.TrackAfter);return o??void 0}}),Ice=new class extends pT{};Ice.startSide=1;Ice.endSide=-1;const lxe=Ap.define({create(){return Vu.empty},update(t,e){if(t=t.map(e.changes),e.selection){let o=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:f=>f>=o.from&&f<=o.to})}for(let o of e.effects)o.is(sT)&&(t=t.update({add:[Ice.range(o.value,o.value+1)]}));return t}});function hEe(){return[mEe,lxe]}const Pie="()[]{}<>";function cxe(t){for(let e=0;e{if((pEe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let P=t.state.selection.main;if(f.length>2||f.length==2&&Wy(Jm(f,0))==1||e!=P.from||o!=P.to)return!1;let d=yEe(t.state,f);return d?(t.dispatch(d),!0):!1}),gEe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let f=uxe(t,t.selection.main.head).brackets||QI.brackets,P=null,d=t.changeByRange(l=>{if(l.empty){let n=bEe(t.doc,l.head);for(let c of f)if(c==n&&iq(t.doc,l.head)==cxe(Jm(c,0)))return{changes:{from:l.head-c.length,to:l.head+c.length},range:Yo.cursor(l.head-c.length)}}return{range:P=l}});return P||e(t.update(d,{scrollIntoView:!0,userEvent:"delete.backward"})),!P},vEe=[{key:"Backspace",run:gEe}];function yEe(t,e){let o=uxe(t,t.selection.main.head),f=o.brackets||QI.brackets;for(let P of f){let d=cxe(Jm(P,0));if(e==P)return d==P?wEe(t,P,f.indexOf(P+P+P)>-1,o):xEe(t,P,d,o.before||QI.before);if(e==d&&fxe(t,t.selection.main.from))return _Ee(t,P,d)}return null}function fxe(t,e){let o=!1;return t.field(lxe).between(0,t.doc.length,f=>{f==e&&(o=!0)}),o}function iq(t,e){let o=t.sliceString(e,e+2);return o.slice(0,Wy(Jm(o,0)))}function bEe(t,e){let o=t.sliceString(e-2,e);return Wy(Jm(o,0))==o.length?o:o.slice(1)}function xEe(t,e,o,f){let P=null,d=t.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:o,from:l.to}],effects:sT.of(l.to+e.length),range:Yo.range(l.anchor+e.length,l.head+e.length)};let n=iq(t.doc,l.head);return!n||/\s/.test(n)||f.indexOf(n)>-1?{changes:{insert:e+o,from:l.head},effects:sT.of(l.head+e.length),range:Yo.cursor(l.head+e.length)}:{range:P=l}});return P?null:t.update(d,{scrollIntoView:!0,userEvent:"input.type"})}function _Ee(t,e,o){let f=null,P=t.changeByRange(d=>d.empty&&iq(t.doc,d.head)==o?{changes:{from:d.head,to:d.head+o.length,insert:o},range:Yo.cursor(d.head+o.length)}:f={range:d});return f?null:t.update(P,{scrollIntoView:!0,userEvent:"input.type"})}function wEe(t,e,o,f){let P=f.stringPrefixes||QI.stringPrefixes,d=null,l=t.changeByRange(n=>{if(!n.empty)return{changes:[{insert:e,from:n.from},{insert:e,from:n.to}],effects:sT.of(n.to+e.length),range:Yo.range(n.anchor+e.length,n.head+e.length)};let c=n.head,b=iq(t.doc,c),i;if(b==e){if(nme(t,c))return{changes:{insert:e+e,from:c},effects:sT.of(c+e.length),range:Yo.cursor(c+e.length)};if(fxe(t,c)){let w=o&&t.sliceDoc(c,c+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+w.length,insert:w},range:Yo.cursor(c+w.length)}}}else{if(o&&t.sliceDoc(c-2*e.length,c)==e+e&&(i=rme(t,c-2*e.length,P))>-1&&nme(t,i))return{changes:{insert:e+e+e+e,from:c},effects:sT.of(c+e.length),range:Yo.cursor(c+e.length)};if(t.charCategorizer(c)(b)!=Ad.Word&&rme(t,c,P)>-1&&!OEe(t,c,e,P))return{changes:{insert:e+e,from:c},effects:sT.of(c+e.length),range:Yo.cursor(c+e.length)}}return{range:d=n}});return d?null:t.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function nme(t,e){let o=Gu(t).resolveInner(e+1);return o.parent&&o.from==e}function OEe(t,e,o,f){let P=Gu(t).resolveInner(e,-1),d=f.reduce((l,n)=>Math.max(l,n.length),0);for(let l=0;l<5;l++){let n=t.sliceDoc(P.from,Math.min(P.to,P.from+o.length+d)),c=n.indexOf(o);if(!c||c>-1&&f.indexOf(n.slice(0,c))>-1){let i=P.firstChild;for(;i&&i.from==P.from&&i.to-i.from>o.length+c;){if(t.sliceDoc(i.to-o.length,i.to)==o)return!1;i=i.firstChild}return!0}let b=P.to==e&&P.parent;if(!b)break;P=b}return!1}function rme(t,e,o){let f=t.charCategorizer(e);if(f(t.sliceDoc(e-1,e))!=Ad.Word)return e;for(let P of o){let d=e-P.length;if(t.sliceDoc(d,e)==P&&f(t.sliceDoc(d-1,d))!=Ad.Word)return d}return-1}function hM(t={}){return[Iv,Vg.of(t),tEe,SEe,axe]}const dxe=[{key:"Ctrl-Space",run:XMe},{key:"Escape",run:GMe},{key:"ArrowDown",run:QQ(!0)},{key:"ArrowUp",run:QQ(!1)},{key:"PageDown",run:QQ(!0,"page")},{key:"PageUp",run:QQ(!1,"page")},{key:"Enter",run:YMe}],SEe=Nv.highest(IO.computeN([Vg],t=>t.facet(Vg).defaultKeymap?[dxe]:[]));class kEe{constructor(e,o,f){this.from=e,this.to=o,this.diagnostic=f}}class nT{constructor(e,o,f){this.diagnostics=e,this.panel=o,this.selected=f}static init(e,o,f){let P=e,d=f.facet(mxe).markerFilter;d&&(P=d(P));let l=es.set(P.map(n=>n.from==n.to||n.from==n.to-1&&f.doc.lineAt(n.from).to==n.from?es.widget({widget:new IEe(n),diagnostic:n}).range(n.from):es.mark({attributes:{class:"cm-lintRange cm-lintRange-"+n.severity+(n.markClass?" "+n.markClass:"")},diagnostic:n}).range(n.from,n.to)),!0);return new nT(l,o,pM(l))}}function pM(t,e=null,o=0){let f=null;return t.between(o,1e9,(P,d,{spec:l})=>{if(!(e&&l.diagnostic!=e))return f=new kEe(P,d,l.diagnostic),!1}),f}function TEe(t,e){let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(f=>f.is(hxe))||t.changes.touchesRange(o.from,o.to))}function CEe(t,e){return t.field(Fv,!1)?e:e.concat(cl.appendConfig.of(zEe))}const hxe=cl.define(),Dce=cl.define(),pxe=cl.define(),Fv=Ap.define({create(){return new nT(es.none,null,null)},update(t,e){if(e.docChanged){let o=t.diagnostics.map(e.changes),f=null;if(t.selected){let P=e.changes.mapPos(t.selected.from,1);f=pM(o,t.selected.diagnostic,P)||pM(o,null,P)}t=new nT(o,t.panel,f)}for(let o of e.effects)o.is(hxe)?t=nT.init(o.value,t.panel,e.state):o.is(Dce)?t=new nT(t.diagnostics,o.value?aq.open:null,t.selected):o.is(pxe)&&(t=new nT(t.diagnostics,t.panel,o.value));return t},provide:t=>[BI.from(t,e=>e.panel),Oa.decorations.from(t,e=>e.diagnostics)]}),AEe=es.mark({class:"cm-lintRange cm-lintRange-active"});function MEe(t,e,o){let{diagnostics:f}=t.state.field(Fv),P=[],d=2e8,l=0;f.between(e-(o<0?1:0),e+(o>0?1:0),(c,b,{spec:i})=>{e>=c&&e<=b&&(c==b||(e>c||o>0)&&(evxe(t,o,!1)))}const PEe=t=>{let e=t.state.field(Fv,!1);(!e||!e.panel)&&t.dispatch({effects:CEe(t.state,[Dce.of(!0)])});let o=DI(t,aq.open);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},ome=t=>{let e=t.state.field(Fv,!1);return!e||!e.panel?!1:(t.dispatch({effects:Dce.of(!1)}),!0)},REe=t=>{let e=t.state.field(Fv,!1);if(!e)return!1;let o=t.state.selection.main,f=e.diagnostics.iter(o.to+1);return!f.value&&(f=e.diagnostics.iter(0),!f.value||f.from==o.from&&f.to==o.to)?!1:(t.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0}),!0)},LEe=[{key:"Mod-Shift-m",run:PEe,preventDefault:!0},{key:"F8",run:REe}],mxe=Ba.define({combine(t){return Object.assign({sources:t.map(e=>e.source)},b_(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,o)=>e?o?f=>e(f)||o(f):e:o}))}});function gxe(t){let e=[];if(t)e:for(let{name:o}of t){for(let f=0;fd.toLowerCase()==P.toLowerCase())){e.push(P);continue e}}e.push("")}return e}function vxe(t,e,o){var f;let P=o?gxe(e.actions):[];return Df("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Df("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(f=e.actions)===null||f===void 0?void 0:f.map((d,l)=>{let n=!1,c=w=>{if(w.preventDefault(),n)return;n=!0;let y=pM(t.state.field(Fv).diagnostics,e);y&&d.apply(t,y.from,y.to)},{name:b}=d,i=P[l]?b.indexOf(P[l]):-1,O=i<0?b:[b.slice(0,i),Df("u",b.slice(i,i+1)),b.slice(i+1)];return Df("button",{type:"button",class:"cm-diagnosticAction",onclick:c,onmousedown:c,"aria-label":` Action: ${b}${i<0?"":` (access key "${P[l]})"`}.`},O)}),e.source&&Df("div",{class:"cm-diagnosticSource"},e.source))}class IEe extends wx{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Df("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class ime{constructor(e,o){this.diagnostic=o,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=vxe(e,o,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class aq{constructor(e){this.view=e,this.items=[];let o=P=>{if(P.keyCode==27)ome(this.view),this.view.focus();else if(P.keyCode==38||P.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(P.keyCode==40||P.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(P.keyCode==36)this.moveSelection(0);else if(P.keyCode==35)this.moveSelection(this.items.length-1);else if(P.keyCode==13)this.view.focus();else if(P.keyCode>=65&&P.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:d}=this.items[this.selectedIndex],l=gxe(d.actions);for(let n=0;n{for(let d=0;dome(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Fv).selected;if(!e)return-1;for(let o=0;o{let b=-1,i;for(let O=f;Of&&(this.items.splice(f,b-f),P=!0)),o&&i.diagnostic==o.diagnostic?i.dom.hasAttribute("aria-selected")||(i.dom.setAttribute("aria-selected","true"),d=i):i.dom.hasAttribute("aria-selected")&&i.dom.removeAttribute("aria-selected"),f++});f({sel:d.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:n})=>{let c=n.height/this.list.offsetHeight;l.topn.bottom&&(this.list.scrollTop+=(l.bottom-n.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),P&&this.sync()}sync(){let e=this.list.firstChild;function o(){let f=e;e=f.nextSibling,f.remove()}for(let f of this.items)if(f.dom.parentNode==this.list){for(;e!=f.dom;)o();e=f.dom.nextSibling}else this.list.insertBefore(f.dom,e);for(;e;)o()}moveSelection(e){if(this.selectedIndex<0)return;let o=this.view.state.field(Fv),f=pM(o.diagnostics,this.items[e].diagnostic);f&&this.view.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0,effects:pxe.of(f)})}static open(e){return new aq(e)}}function DEe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function HQ(t){return DEe(``,'width="6" height="3"')}const BEe=Oa.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:HQ("#d11")},".cm-lintRange-warning":{backgroundImage:HQ("orange")},".cm-lintRange-info":{backgroundImage:HQ("#999")},".cm-lintRange-hint":{backgroundImage:HQ("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),zEe=[Fv,Oa.decorations.compute([Fv],t=>{let{selected:e,panel:o}=t.field(Fv);return!e||!o||e.from==e.to?es.none:es.set([AEe.range(e.from,e.to)])}),ECe(MEe,{hideOn:TEe}),BEe],FEe=(()=>[NCe(),UCe(),iCe(),iAe(),L8e(),W6e(),J6e(),jl.allowMultipleSelections.of(!0),_8e(),sbe(z8e,{fallback:!0}),Q8e(),hEe(),hM(),bCe(),wCe(),fCe(),fMe(),IO.of([...vEe,...iMe,...EMe,...pAe,...M8e,...dxe,...LEe])])();/*! +`){let P="";for(let d=0,l=0;de&&d&&(P+=f),el&&(P+=n.sliceString(e-l,o-l,f)),l=c+1}return P}flatten(e){for(let o of this.children)o.flatten(e)}scanIdentical(e,o){if(!(e instanceof n_))return 0;let f=0,[P,d,l,n]=o>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;P+=o,d+=o){if(P==l||d==n)return f;let c=this.children[P],b=e.children[d];if(c!=b)return f+c.scanIdentical(b,o);f+=c.length+1}}static from(e,o=e.reduce((f,P)=>f+P.length+1,-1)){let f=0;for(let y of e)f+=y.lines;if(f<32){let y=[];for(let p of e)p.flatten(y);return new Fh(y,o)}let P=Math.max(32,f>>5),d=P<<1,l=P>>1,n=[],c=0,b=-1,i=[];function O(y){let p;if(y.lines>d&&y instanceof n_)for(let a of y.children)O(a);else y.lines>l&&(c>l||!c)?(w(),n.push(y)):y instanceof Fh&&c&&(p=i[i.length-1])instanceof Fh&&y.lines+p.lines<=32?(c+=y.lines,b+=y.length+1,i[i.length-1]=new Fh(p.text.concat(y.text),p.length+1+y.length)):(c+y.lines>P&&w(),c+=y.lines,b+=y.length+1,i.push(y))}function w(){c!=0&&(n.push(i.length==1?i[0]:n_.from(i,b)),b=-1,c=i.length=0)}for(let y of e)O(y);return w(),n.length==1?n[0]:new n_(n,o)}}ru.empty=new Fh([""],0);function Xke(t){let e=-1;for(let o of t)e+=o.length+1;return e}function fH(t,e,o=0,f=1e9){for(let P=0,d=0,l=!0;d=o&&(c>f&&(n=n.slice(0,f-P)),P0?1:(e instanceof Fh?e.text.length:e.children.length)<<1]}nextInner(e,o){for(this.done=this.lineBreak=!1;;){let f=this.nodes.length-1,P=this.nodes[f],d=this.offsets[f],l=d>>1,n=P instanceof Fh?P.text.length:P.children.length;if(l==(o>0?n:0)){if(f==0)return this.done=!0,this.value="",this;o>0&&this.offsets[f-1]++,this.nodes.pop(),this.offsets.pop()}else if((d&1)==(o>0?0:1)){if(this.offsets[f]+=o,e==0)return this.lineBreak=!0,this.value=` +`,this;e--}else if(P instanceof Fh){let c=P.text[l+(o<0?-1:0)];if(this.offsets[f]+=o,c.length>Math.max(0,e))return this.value=e==0?c:o>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=P.children[l+(o<0?-1:0)];e>c.length?(e-=c.length,this.offsets[f]+=o):(o<0&&this.offsets[f]--,this.nodes.push(c),this.offsets.push(o>0?1:(c instanceof Fh?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class wve{constructor(e,o,f){this.value="",this.done=!1,this.cursor=new lI(e,o>f?-1:1),this.pos=o>f?e.length:0,this.from=Math.min(o,f),this.to=Math.max(o,f)}nextInner(e,o){if(o<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,o<0?this.pos-this.to:this.from-this.pos);let f=o<0?this.pos-this.from:this.to-this.pos;e>f&&(e=f),f-=e;let{value:P}=this.cursor.next(e);return this.pos+=(P.length+e)*o,this.value=P.length<=f?P:o<0?P.slice(P.length-f):P.slice(0,f),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Ove{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:o,lineBreak:f,value:P}=this.inner.next(e);return o&&this.afterBreak?(this.value="",this.afterBreak=!1):o?(this.done=!0,this.value=""):f?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=P,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ru.prototype[Symbol.iterator]=function(){return this.iter()},lI.prototype[Symbol.iterator]=wve.prototype[Symbol.iterator]=Ove.prototype[Symbol.iterator]=function(){return this});let Gke=class{constructor(e,o,f,P){this.from=e,this.to=o,this.number=f,this.text=P}get length(){return this.to-this.from}},XA="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return XA[e-1]<=t;return!1}function xhe(t){return t>=127462&&t<=127487}const _he=8205;function ng(t,e,o=!0,f=!0){return(o?Sve:Jke)(t,e,f)}function Sve(t,e,o){if(e==t.length)return e;e&&kve(t.charCodeAt(e))&&Tve(t.charCodeAt(e-1))&&e--;let f=Jm(t,e);for(e+=Wy(f);e=0&&xhe(Jm(t,l));)d++,l-=2;if(d%2==0)break;e+=2}else break}return e}function Jke(t,e,o){for(;e>0;){let f=Sve(t,e-2,o);if(f=56320&&t<57344}function Tve(t){return t>=55296&&t<56320}function Jm(t,e){let o=t.charCodeAt(e);if(!Tve(o)||e+1==t.length)return o;let f=t.charCodeAt(e+1);return kve(f)?(o-55296<<10)+(f-56320)+65536:o}function Jle(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Wy(t){return t<65536?1:2}const Rae=/\r\n?|\n/;var tg=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(tg||(tg={}));class f_{constructor(e){this.sections=e}get length(){let e=0;for(let o=0;oe)return d+(e-P);d+=n}else{if(f!=tg.Simple&&b>=e&&(f==tg.TrackDel&&Pe||f==tg.TrackBefore&&Pe))return null;if(b>e||b==e&&o<0&&!n)return e==P||o<0?d:d+c;d+=c}P=b}if(e>P)throw new RangeError(`Position ${e} is out of range for changeset of length ${P}`);return d}touchesRange(e,o=e){for(let f=0,P=0;f=0&&P<=o&&n>=e)return Po?"cover":!0;P=n}return!1}toString(){let e="";for(let o=0;o=0?":"+P:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(o=>typeof o!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new f_(e)}static create(e){return new f_(e)}}class wp extends f_{constructor(e,o){super(e),this.inserted=o}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Lae(this,(o,f,P,d,l)=>e=e.replace(P,P+(f-o),l),!1),e}mapDesc(e,o=!1){return Iae(this,e,o,!0)}invert(e){let o=this.sections.slice(),f=[];for(let P=0,d=0;P=0){o[P]=n,o[P+1]=l;let c=P>>1;for(;f.length0&&q4(f,o,d.text),d.forward(i),n+=i}let b=e[l++];for(;n>1].toJSON()))}return e}static of(e,o,f){let P=[],d=[],l=0,n=null;function c(i=!1){if(!i&&!P.length)return;lw||O<0||w>o)throw new RangeError(`Invalid change range ${O} to ${w} (in doc of length ${o})`);let p=y?typeof y=="string"?ru.of(y.split(f||Rae)):y:ru.empty,a=p.length;if(O==w&&a==0)return;Ol&&Ng(P,O-l,-1),Ng(P,w-O,a),q4(d,P,p),l=w}}return b(e),c(!n),n}static empty(e){return new wp(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let o=[],f=[];for(let P=0;Pn&&typeof l!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(d.length==1)o.push(d[0],0);else{for(;f.length=0&&o<=0&&o==t[P+1]?t[P]+=e:e==0&&t[P]==0?t[P+1]+=o:f?(t[P]+=e,t[P+1]+=o):t.push(e,o)}function q4(t,e,o){if(o.length==0)return;let f=e.length-2>>1;if(f>1])),!(o||l==t.sections.length||t.sections[l+1]<0);)n=t.sections[l++],c=t.sections[l++];e(P,b,d,i,O),P=b,d=i}}}function Iae(t,e,o,f=!1){let P=[],d=f?[]:null,l=new MI(t),n=new MI(e);for(let c=-1;;)if(l.ins==-1&&n.ins==-1){let b=Math.min(l.len,n.len);Ng(P,b,-1),l.forward(b),n.forward(b)}else if(n.ins>=0&&(l.ins<0||c==l.i||l.off==0&&(n.len=0&&c=0){let b=0,i=l.len;for(;i;)if(n.ins==-1){let O=Math.min(i,n.len);b+=O,i-=O,n.forward(O)}else if(n.ins==0&&n.lenc||l.ins>=0&&l.len>c)&&(n||f.length>b),d.forward2(c),l.forward(c)}}}}class MI{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return o>=e.length?ru.empty:e[o]}textBit(e){let{inserted:o}=this.set,f=this.i-2>>1;return f>=o.length&&!e?ru.empty:o[f].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class aT{constructor(e,o,f){this.from=e,this.to=o,this.flags=f}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,o=-1){let f,P;return this.empty?f=P=e.mapPos(this.from,o):(f=e.mapPos(this.from,1),P=e.mapPos(this.to,-1)),f==this.from&&P==this.to?this:new aT(f,P,this.flags)}extend(e,o=e){if(e<=this.anchor&&o>=this.anchor)return Yo.range(e,o);let f=Math.abs(e-this.anchor)>Math.abs(o-this.anchor)?e:o;return Yo.range(this.anchor,f)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Yo.range(e.anchor,e.head)}static create(e,o,f){return new aT(e,o,f)}}class Yo{constructor(e,o){this.ranges=e,this.mainIndex=o}map(e,o=-1){return e.empty?this:Yo.create(this.ranges.map(f=>f.map(e,o)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let o=0;oe.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Yo(e.ranges.map(o=>aT.fromJSON(o)),e.main)}static single(e,o=e){return new Yo([Yo.range(e,o)],0)}static create(e,o=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let f=0,P=0;Pe?8:0)|d)}static normalized(e,o=0){let f=e[o];e.sort((P,d)=>P.from-d.from),o=e.indexOf(f);for(let P=1;Pd.head?Yo.range(c,n):Yo.range(n,c))}}return new Yo(e,o)}}function Ave(t,e){for(let o of t.ranges)if(o.to>e)throw new RangeError("Selection points outside of document")}let ece=0;class Ba{constructor(e,o,f,P,d){this.combine=e,this.compareInput=o,this.compare=f,this.isStatic=P,this.id=ece++,this.default=e([]),this.extensions=typeof d=="function"?d(this):d}get reader(){return this}static define(e={}){return new Ba(e.combine||(o=>o),e.compareInput||((o,f)=>o===f),e.compare||(e.combine?(o,f)=>o===f:tce),!!e.static,e.enables)}of(e){return new dH([],this,0,e)}compute(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new dH(e,this,1,o)}computeN(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new dH(e,this,2,o)}from(e,o){return o||(o=f=>f),this.compute([e],f=>o(f.field(e)))}}function tce(t,e){return t==e||t.length==e.length&&t.every((o,f)=>o===e[f])}class dH{constructor(e,o,f,P){this.dependencies=e,this.facet=o,this.type=f,this.value=P,this.id=ece++}dynamicSlot(e){var o;let f=this.value,P=this.facet.compareInput,d=this.id,l=e[d]>>1,n=this.type==2,c=!1,b=!1,i=[];for(let O of this.dependencies)O=="doc"?c=!0:O=="selection"?b=!0:((o=e[O.id])!==null&&o!==void 0?o:1)&1||i.push(e[O.id]);return{create(O){return O.values[l]=f(O),1},update(O,w){if(c&&w.docChanged||b&&(w.docChanged||w.selection)||Dae(O,i)){let y=f(O);if(n?!whe(y,O.values[l],P):!P(y,O.values[l]))return O.values[l]=y,1}return 0},reconfigure:(O,w)=>{let y,p=w.config.address[d];if(p!=null){let a=FH(w,p);if(this.dependencies.every(u=>u instanceof Ba?w.facet(u)===O.facet(u):u instanceof Ap?w.field(u,!1)==O.field(u,!1):!0)||(n?whe(y=f(O),a,P):P(y=f(O),a)))return O.values[l]=a,0}else y=f(O);return O.values[l]=y,1}}}}function whe(t,e,o){if(t.length!=e.length)return!1;for(let f=0;ft[c.id]),P=o.map(c=>c.type),d=f.filter(c=>!(c&1)),l=t[e.id]>>1;function n(c){let b=[];for(let i=0;if===P),e);return e.provide&&(o.provides=e.provide(o)),o}create(e){let o=e.facet(Ohe).find(f=>f.field==this);return((o==null?void 0:o.create)||this.createF)(e)}slot(e){let o=e[this.id]>>1;return{create:f=>(f.values[o]=this.create(f),1),update:(f,P)=>{let d=f.values[o],l=this.updateF(d,P);return this.compareF(d,l)?0:(f.values[o]=l,1)},reconfigure:(f,P)=>P.config.address[this.id]!=null?(f.values[o]=P.field(this),0):(f.values[o]=this.create(f),1)}}init(e){return[this,Ohe.of({field:this,create:e})]}get extension(){return this}}const nT={lowest:4,low:3,default:2,high:1,highest:0};function IL(t){return e=>new Mve(e,t)}const Vv={highest:IL(nT.highest),high:IL(nT.high),default:IL(nT.default),low:IL(nT.low),lowest:IL(nT.lowest)};class Mve{constructor(e,o){this.inner=e,this.prec=o}}class pD{of(e){return new Bae(this,e)}reconfigure(e){return pD.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Bae{constructor(e,o){this.compartment=e,this.inner=o}}class zH{constructor(e,o,f,P,d,l){for(this.base=e,this.compartments=o,this.dynamicSlots=f,this.address=P,this.staticValues=d,this.facets=l,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,o,f){let P=[],d=Object.create(null),l=new Map;for(let w of tTe(e,o,l))w instanceof Ap?P.push(w):(d[w.facet.id]||(d[w.facet.id]=[])).push(w);let n=Object.create(null),c=[],b=[];for(let w of P)n[w.id]=b.length<<1,b.push(y=>w.slot(y));let i=f==null?void 0:f.config.facets;for(let w in d){let y=d[w],p=y[0].facet,a=i&&i[w]||[];if(y.every(u=>u.type==0))if(n[p.id]=c.length<<1|1,tce(a,y))c.push(f.facet(p));else{let u=p.combine(y.map(h=>h.value));c.push(f&&p.compare(u,f.facet(p))?f.facet(p):u)}else{for(let u of y)u.type==0?(n[u.id]=c.length<<1|1,c.push(u.value)):(n[u.id]=b.length<<1,b.push(h=>u.dynamicSlot(h)));n[p.id]=b.length<<1,b.push(u=>eTe(u,p,y))}}let O=b.map(w=>w(n));return new zH(e,l,O,n,c,d)}}function tTe(t,e,o){let f=[[],[],[],[],[]],P=new Map;function d(l,n){let c=P.get(l);if(c!=null){if(c<=n)return;let b=f[c].indexOf(l);b>-1&&f[c].splice(b,1),l instanceof Bae&&o.delete(l.compartment)}if(P.set(l,n),Array.isArray(l))for(let b of l)d(b,n);else if(l instanceof Bae){if(o.has(l.compartment))throw new RangeError("Duplicate use of compartment in extensions");let b=e.get(l.compartment)||l.inner;o.set(l.compartment,b),d(b,n)}else if(l instanceof Mve)d(l.inner,l.prec);else if(l instanceof Ap)f[n].push(l),l.provides&&d(l.provides,n);else if(l instanceof dH)f[n].push(l),l.facet.extensions&&d(l.facet.extensions,nT.default);else{let b=l.extension;if(!b)throw new Error(`Unrecognized extension value in extension set (${l}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);d(b,n)}}return d(t,nT.default),f.reduce((l,n)=>l.concat(n))}function cI(t,e){if(e&1)return 2;let o=e>>1,f=t.status[o];if(f==4)throw new Error("Cyclic dependency between fields and/or facets");if(f&2)return f;t.status[o]=4;let P=t.computeSlot(t,t.config.dynamicSlots[o]);return t.status[o]=2|P}function FH(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const Eve=Ba.define(),zae=Ba.define({combine:t=>t.some(e=>e),static:!0}),Pve=Ba.define({combine:t=>t.length?t[0]:void 0,static:!0}),Rve=Ba.define(),Lve=Ba.define(),Ive=Ba.define(),Dve=Ba.define({combine:t=>t.length?t[0]:!1});class LO{constructor(e,o){this.type=e,this.value=o}static define(){return new nTe}}class nTe{of(e){return new LO(this,e)}}class rTe{constructor(e){this.map=e}of(e){return new cl(this,e)}}class cl{constructor(e,o){this.type=e,this.value=o}map(e){let o=this.type.map(this.value,e);return o===void 0?void 0:o==this.value?this:new cl(this.type,o)}is(e){return this.type==e}static define(e={}){return new rTe(e.map||(o=>o))}static mapEffects(e,o){if(!e.length)return e;let f=[];for(let P of e){let d=P.map(o);d&&f.push(d)}return f}}cl.reconfigure=cl.define();cl.appendConfig=cl.define();class Sp{constructor(e,o,f,P,d,l){this.startState=e,this.changes=o,this.selection=f,this.effects=P,this.annotations=d,this.scrollIntoView=l,this._doc=null,this._state=null,f&&Ave(f,o.newLength),d.some(n=>n.type==Sp.time)||(this.annotations=d.concat(Sp.time.of(Date.now())))}static create(e,o,f,P,d,l){return new Sp(e,o,f,P,d,l)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let o of this.annotations)if(o.type==e)return o.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let o=this.annotation(Sp.userEvent);return!!(o&&(o==e||o.length>e.length&&o.slice(0,e.length)==e&&o[e.length]=="."))}}Sp.time=LO.define();Sp.userEvent=LO.define();Sp.addToHistory=LO.define();Sp.remote=LO.define();function oTe(t,e){let o=[];for(let f=0,P=0;;){let d,l;if(f=t[f]))d=t[f++],l=t[f++];else if(P=0;P--){let d=f[P](t);d instanceof Sp?t=d:Array.isArray(d)&&d.length==1&&d[0]instanceof Sp?t=d[0]:t=zve(e,GA(d),!1)}return t}function aTe(t){let e=t.startState,o=e.facet(Ive),f=t;for(let P=o.length-1;P>=0;P--){let d=o[P](t);d&&Object.keys(d).length&&(f=Bve(f,Fae(e,d,t.changes.newLength),!0))}return f==t?t:Sp.create(e,t.changes,t.selection,f.effects,f.annotations,f.scrollIntoView)}const sTe=[];function GA(t){return t==null?sTe:Array.isArray(t)?t:[t]}var Md=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Md||(Md={}));const lTe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Nae;try{Nae=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function cTe(t){if(Nae)return Nae.test(t);for(let e=0;e"€"&&(o.toUpperCase()!=o.toLowerCase()||lTe.test(o)))return!0}return!1}function uTe(t){return e=>{if(!/\S/.test(e))return Md.Space;if(cTe(e))return Md.Word;for(let o=0;o-1)return Md.Word;return Md.Other}}class jl{constructor(e,o,f,P,d,l){this.config=e,this.doc=o,this.selection=f,this.values=P,this.status=e.statusTemplate.slice(),this.computeSlot=d,l&&(l._state=this);for(let n=0;nP.set(b,c)),o=null),P.set(n.value.compartment,n.value.extension)):n.is(cl.reconfigure)?(o=null,f=n.value):n.is(cl.appendConfig)&&(o=null,f=GA(f).concat(n.value));let d;o?d=e.startState.values.slice():(o=zH.resolve(f,P,this),d=new jl(o,this.doc,this.selection,o.dynamicSlots.map(()=>null),(c,b)=>b.reconfigure(c,this),null).values);let l=e.startState.facet(zae)?e.newSelection:e.newSelection.asSingle();new jl(o,e.newDoc,l,d,(n,c)=>c.update(n,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(o=>({changes:{from:o.from,to:o.to,insert:e},range:Yo.cursor(o.from+e.length)}))}changeByRange(e){let o=this.selection,f=e(o.ranges[0]),P=this.changes(f.changes),d=[f.range],l=GA(f.effects);for(let n=1;nl.spec.fromJSON(n,c)))}}return jl.create({doc:e.doc,selection:Yo.fromJSON(e.selection),extensions:o.extensions?P.concat([o.extensions]):P})}static create(e={}){let o=zH.resolve(e.extensions||[],new Map),f=e.doc instanceof ru?e.doc:ru.of((e.doc||"").split(o.staticFacet(jl.lineSeparator)||Rae)),P=e.selection?e.selection instanceof Yo?e.selection:Yo.single(e.selection.anchor,e.selection.head):Yo.single(0);return Ave(P,f.length),o.staticFacet(zae)||(P=P.asSingle()),new jl(o,f,P,o.dynamicSlots.map(()=>null),(d,l)=>l.create(d),null)}get tabSize(){return this.facet(jl.tabSize)}get lineBreak(){return this.facet(jl.lineSeparator)||` +`}get readOnly(){return this.facet(Dve)}phrase(e,...o){for(let f of this.facet(jl.phrases))if(Object.prototype.hasOwnProperty.call(f,e)){e=f[e];break}return o.length&&(e=e.replace(/\$(\$|\d*)/g,(f,P)=>{if(P=="$")return"$";let d=+(P||1);return!d||d>o.length?f:o[d-1]})),e}languageDataAt(e,o,f=-1){let P=[];for(let d of this.facet(Eve))for(let l of d(this,o,f))Object.prototype.hasOwnProperty.call(l,e)&&P.push(l[e]);return P}charCategorizer(e){return uTe(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:o,from:f,length:P}=this.doc.lineAt(e),d=this.charCategorizer(e),l=e-f,n=e-f;for(;l>0;){let c=ng(o,l,!1);if(d(o.slice(c,l))!=Md.Word)break;l=c}for(;nt.length?t[0]:4});jl.lineSeparator=Pve;jl.readOnly=Dve;jl.phrases=Ba.define({compare(t,e){let o=Object.keys(t),f=Object.keys(e);return o.length==f.length&&o.every(P=>t[P]==e[P])}});jl.languageData=Eve;jl.changeFilter=Rve;jl.transactionFilter=Lve;jl.transactionExtender=Ive;pD.reconfigure=cl.define();function b_(t,e,o={}){let f={};for(let P of t)for(let d of Object.keys(P)){let l=P[d],n=f[d];if(n===void 0)f[d]=l;else if(!(n===l||l===void 0))if(Object.hasOwnProperty.call(o,d))f[d]=o[d](n,l);else throw new Error("Config merge conflict for field "+d)}for(let P in e)f[P]===void 0&&(f[P]=e[P]);return f}class pT{eq(e){return this==e}range(e,o=e){return $ae.create(e,o,this)}}pT.prototype.startSide=pT.prototype.endSide=0;pT.prototype.point=!1;pT.prototype.mapMode=tg.TrackDel;let $ae=class Fve{constructor(e,o,f){this.from=e,this.to=o,this.value=f}static create(e,o,f){return new Fve(e,o,f)}};function Vae(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class nce{constructor(e,o,f,P){this.from=e,this.to=o,this.value=f,this.maxPoint=P}get length(){return this.to[this.to.length-1]}findIndex(e,o,f,P=0){let d=f?this.to:this.from;for(let l=P,n=d.length;;){if(l==n)return l;let c=l+n>>1,b=d[c]-e||(f?this.value[c].endSide:this.value[c].startSide)-o;if(c==l)return b>=0?l:n;b>=0?n=c:l=c+1}}between(e,o,f,P){for(let d=this.findIndex(o,-1e9,!0),l=this.findIndex(f,1e9,!1,d);dy||w==y&&b.startSide>0&&b.endSide<=0)continue;(y-w||b.endSide-b.startSide)<0||(l<0&&(l=w),b.point&&(n=Math.max(n,y-w)),f.push(b),P.push(w-l),d.push(y-l))}return{mapped:f.length?new nce(P,d,f,n):null,pos:l}}}class Vu{constructor(e,o,f,P){this.chunkPos=e,this.chunk=o,this.nextLayer=f,this.maxPoint=P}static create(e,o,f,P){return new Vu(e,o,f,P)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let o of this.chunk)e+=o.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:o=[],sort:f=!1,filterFrom:P=0,filterTo:d=this.length}=e,l=e.filter;if(o.length==0&&!l)return this;if(f&&(o=o.slice().sort(Vae)),this.isEmpty)return o.length?Vu.of(o):this;let n=new Nve(this,null,-1).goto(0),c=0,b=[],i=new oS;for(;n.value||c=0){let O=o[c++];i.addInner(O.from,O.to,O.value)||b.push(O)}else n.rangeIndex==1&&n.chunkIndexthis.chunkEnd(n.chunkIndex)||dn.to||d=d&&e<=d+l.length&&l.between(d,e-d,o-d,f)===!1)return}this.nextLayer.between(e,o,f)}}iter(e=0){return EI.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,o=0){return EI.from(e).goto(o)}static compare(e,o,f,P,d=-1){let l=e.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=d),n=o.filter(O=>O.maxPoint>0||!O.isEmpty&&O.maxPoint>=d),c=She(l,n,f),b=new DL(l,c,d),i=new DL(n,c,d);f.iterGaps((O,w,y)=>khe(b,O,i,w,y,P)),f.empty&&f.length==0&&khe(b,0,i,0,0,P)}static eq(e,o,f=0,P){P==null&&(P=1e9-1);let d=e.filter(i=>!i.isEmpty&&o.indexOf(i)<0),l=o.filter(i=>!i.isEmpty&&e.indexOf(i)<0);if(d.length!=l.length)return!1;if(!d.length)return!0;let n=She(d,l),c=new DL(d,n,0).goto(f),b=new DL(l,n,0).goto(f);for(;;){if(c.to!=b.to||!Uae(c.active,b.active)||c.point&&(!b.point||!c.point.eq(b.point)))return!1;if(c.to>P)return!0;c.next(),b.next()}}static spans(e,o,f,P,d=-1){let l=new DL(e,null,d).goto(o),n=o,c=l.openStart;for(;;){let b=Math.min(l.to,f);if(l.point){let i=l.activeForPoint(l.to),O=l.pointFromn&&(P.span(n,b,l.active,c),c=l.openEnd(b));if(l.to>f)return c+(l.point&&l.to>f?1:0);n=l.to,l.next()}}static of(e,o=!1){let f=new oS;for(let P of e instanceof $ae?[e]:o?fTe(e):e)f.add(P.from,P.to,P.value);return f.finish()}}Vu.empty=new Vu([],[],null,-1);function fTe(t){if(t.length>1)for(let e=t[0],o=1;o0)return t.slice().sort(Vae);e=f}return t}Vu.empty.nextLayer=Vu.empty;class oS{finishChunk(e){this.chunks.push(new nce(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,o,f){this.addInner(e,o,f)||(this.nextLayer||(this.nextLayer=new oS)).add(e,o,f)}addInner(e,o,f){let P=e-this.lastTo||f.startSide-this.last.endSide;if(P<=0&&(e-this.lastFrom||f.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return P<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(o-this.chunkStart),this.last=f,this.lastFrom=e,this.lastTo=o,this.value.push(f),f.point&&(this.maxPoint=Math.max(this.maxPoint,o-e)),!0)}addChunk(e,o){if((e-this.lastTo||o.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,o.maxPoint),this.chunks.push(o),this.chunkPos.push(e);let f=o.value.length-1;return this.last=o.value[f],this.lastFrom=o.from[f]+e,this.lastTo=o.to[f]+e,!0}finish(){return this.finishInner(Vu.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let o=Vu.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,o}}function She(t,e,o){let f=new Map;for(let d of t)for(let l=0;l=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=f&&P.push(new Nve(l,o,f,d));return P.length==1?P[0]:new EI(P)}get startSide(){return this.value?this.value.startSide:0}goto(e,o=-1e9){for(let f of this.heap)f.goto(e,o);for(let f=this.heap.length>>1;f>=0;f--)cie(this.heap,f);return this.next(),this}forward(e,o){for(let f of this.heap)f.forward(e,o);for(let f=this.heap.length>>1;f>=0;f--)cie(this.heap,f);(this.to-e||this.value.endSide-o)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),cie(this.heap,0)}}}function cie(t,e){for(let o=t[e];;){let f=(e<<1)+1;if(f>=t.length)break;let P=t[f];if(f+1=0&&(P=t[f+1],f++),o.compare(P)<0)break;t[f]=o,t[e]=P,e=f}}class DL{constructor(e,o,f){this.minPoint=f,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=EI.from(e,o,f)}goto(e,o=-1e9){return this.cursor.goto(e,o),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=o,this.openStart=-1,this.next(),this}forward(e,o){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-o)<0;)this.removeActive(this.minActive);this.cursor.forward(e,o)}removeActive(e){SQ(this.active,e),SQ(this.activeTo,e),SQ(this.activeRank,e),this.minActive=The(this.active,this.activeTo)}addActive(e){let o=0,{value:f,to:P,rank:d}=this.cursor;for(;o-1&&(this.activeTo[P]-this.cursor.from||this.active[P].endSide-this.cursor.startSide)<0){if(this.activeTo[P]>e){this.to=this.activeTo[P],this.endSide=this.active[P].endSide;break}this.removeActive(P),f&&SQ(f,P)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let d=this.cursor.value;if(!d.point)this.addActive(f),this.cursor.next();else if(o&&this.cursor.to==this.to&&this.cursor.from=0&&f[P]=0&&!(this.activeRank[f]e||this.activeTo[f]==e&&this.active[f].endSide>=this.point.endSide)&&o.push(this.active[f]);return o.reverse()}openEnd(e){let o=0;for(let f=this.activeTo.length-1;f>=0&&this.activeTo[f]>e;f--)o++;return o}}function khe(t,e,o,f,P,d){t.goto(e),o.goto(f);let l=f+P,n=f,c=f-e;for(;;){let b=t.to+c-o.to||t.endSide-o.endSide,i=b<0?t.to+c:o.to,O=Math.min(i,l);if(t.point||o.point?t.point&&o.point&&(t.point==o.point||t.point.eq(o.point))&&Uae(t.activeForPoint(t.to),o.activeForPoint(o.to))||d.comparePoint(n,O,t.point,o.point):O>n&&!Uae(t.active,o.active)&&d.compareRange(n,O,t.active,o.active),i>l)break;n=i,b<=0&&t.next(),b>=0&&o.next()}}function Uae(t,e){if(t.length!=e.length)return!1;for(let o=0;o=e;f--)t[f+1]=t[f];t[e]=o}function The(t,e){let o=-1,f=1e9;for(let P=0;P=e)return P;if(P==t.length)break;d+=t.charCodeAt(P)==9?o-d%o:1,P=ng(t,P)}return f===!0?-1:t.length}const Qae="ͼ",Che=typeof Symbol>"u"?"__"+Qae:Symbol.for(Qae),Hae=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Ahe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class iS{constructor(e,o){this.rules=[];let{finish:f}=o||{};function P(l){return/^@/.test(l)?[l]:l.split(/,\s*/)}function d(l,n,c,b){let i=[],O=/^@(\w+)\b/.exec(l[0]),w=O&&O[1]=="keyframes";if(O&&n==null)return c.push(l[0]+";");for(let y in n){let p=n[y];if(/&/.test(y))d(y.split(/,\s*/).map(a=>l.map(u=>a.replace(/&/,u))).reduce((a,u)=>a.concat(u)),p,c);else if(p&&typeof p=="object"){if(!O)throw new RangeError("The value of a property ("+y+") should be a primitive value.");d(P(y),p,i,w)}else p!=null&&i.push(y.replace(/_.*/,"").replace(/[A-Z]/g,a=>"-"+a.toLowerCase())+": "+p+";")}(i.length||w)&&c.push((f&&!O&&!b?l.map(f):l).join(", ")+" {"+i.join(" ")+"}")}for(let l in e)d(P(l),e[l],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let e=Ahe[Che]||1;return Ahe[Che]=e+1,Qae+e.toString(36)}static mount(e,o,f){let P=e[Hae],d=f&&f.nonce;P?d&&P.setNonce(d):P=new dTe(e,d),P.mount(Array.isArray(o)?o:[o])}}let Mhe=new Map;class dTe{constructor(e,o){let f=e.ownerDocument||e,P=f.defaultView;if(!e.head&&e.adoptedStyleSheets&&P.CSSStyleSheet){let d=Mhe.get(f);if(d)return e.adoptedStyleSheets=[d.sheet,...e.adoptedStyleSheets],e[Hae]=d;this.sheet=new P.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],Mhe.set(f,this)}else{this.styleTag=f.createElement("style"),o&&this.styleTag.setAttribute("nonce",o);let d=e.head||e;d.insertBefore(this.styleTag,d.firstChild)}this.modules=[],e[Hae]=this}mount(e){let o=this.sheet,f=0,P=0;for(let d=0;d-1&&(this.modules.splice(n,1),P--,n=-1),n==-1){if(this.modules.splice(P++,0,l),o)for(let c=0;c",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},hTe=typeof navigator<"u"&&/Mac/.test(navigator.platform),pTe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var eg=0;eg<10;eg++)aS[48+eg]=aS[96+eg]=String(eg);for(var eg=1;eg<=24;eg++)aS[eg+111]="F"+eg;for(var eg=65;eg<=90;eg++)aS[eg]=String.fromCharCode(eg+32),PI[eg]=String.fromCharCode(eg);for(var uie in aS)PI.hasOwnProperty(uie)||(PI[uie]=aS[uie]);function mTe(t){var e=hTe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||pTe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",o=!e&&t.key||(t.shiftKey?PI:aS)[t.keyCode]||t.key||"Unidentified";return o=="Esc"&&(o="Escape"),o=="Del"&&(o="Delete"),o=="Left"&&(o="ArrowLeft"),o=="Up"&&(o="ArrowUp"),o=="Right"&&(o="ArrowRight"),o=="Down"&&(o="ArrowDown"),o}function NH(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function Zae(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function gTe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function hH(t,e){if(!e.anchorNode)return!1;try{return Zae(t,e.anchorNode)}catch{return!1}}function uM(t){return t.nodeType==3?mT(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function $H(t,e,o,f){return o?Ehe(t,e,o,f,-1)||Ehe(t,e,o,f,1):!1}function RI(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function Ehe(t,e,o,f,P){for(;;){if(t==o&&e==f)return!0;if(e==(P<0?0:CO(t))){if(t.nodeName=="DIV")return!1;let d=t.parentNode;if(!d||d.nodeType!=1)return!1;e=RI(t)+(P<0?0:1),t=d}else if(t.nodeType==1){if(t=t.childNodes[e+(P<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=P<0?CO(t):0}else return!1}}function CO(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function WZ(t,e){let o=e?t.left:t.right;return{left:o,right:o,top:t.top,bottom:t.bottom}}function vTe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function yTe(t,e,o,f,P,d,l,n){let c=t.ownerDocument,b=c.defaultView||window;for(let i=t,O=!1;i&&!O;)if(i.nodeType==1){let w,y=i==c.body,p=1,a=1;if(y)w=vTe(b);else{if(/^(fixed|sticky)$/.test(getComputedStyle(i).position)&&(O=!0),i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth){i=i.assignedSlot||i.parentNode;continue}let m=i.getBoundingClientRect();p=m.width/i.offsetWidth,a=m.height/i.offsetHeight,w={left:m.left,right:m.left+i.clientWidth*p,top:m.top,bottom:m.top+i.clientHeight*a}}let u=0,h=0;if(P=="nearest")e.top0&&e.bottom>w.bottom+h&&(h=e.bottom-w.bottom+h+l)):e.bottom>w.bottom&&(h=e.bottom-w.bottom+l,o<0&&e.top-h0&&e.right>w.right+u&&(u=e.right-w.right+u+d)):e.right>w.right&&(u=e.right-w.right+d,o<0&&e.lefto.clientHeight||o.scrollWidth>o.clientWidth)return o;o=o.assignedSlot||o.parentNode}else if(o.nodeType==11)o=o.host;else break;return null}class xTe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:o,focusNode:f}=e;this.set(o,Math.min(e.anchorOffset,o?CO(o):0),f,Math.min(e.focusOffset,f?CO(f):0))}set(e,o,f,P){this.anchorNode=e,this.anchorOffset=o,this.focusNode=f,this.focusOffset=P}}let EA=null;function $ve(t){if(t.setActive)return t.setActive();if(EA)return t.focus(EA);let e=[];for(let o=t;o&&(e.push(o,o.scrollTop,o.scrollLeft),o!=o.ownerDocument);o=o.parentNode);if(t.focus(EA==null?{get preventScroll(){return EA={preventScroll:!0},!0}}:void 0),!EA){EA=!1;for(let o=0;oMath.max(1,t.scrollHeight-t.clientHeight-4)}class Vg{constructor(e,o,f=!0){this.node=e,this.offset=o,this.precise=f}static before(e,o){return new Vg(e.parentNode,RI(e),o)}static after(e,o){return new Vg(e.parentNode,RI(e)+1,o)}}const rce=[];class id{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let o=this.posAtStart;for(let f of this.children){if(f==e)return o;o+=f.length+f.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,o){if(this.flags&2){let f=this.dom,P=null,d;for(let l of this.children){if(l.flags&7){if(!l.dom&&(d=P?P.nextSibling:f.firstChild)){let n=id.get(d);(!n||!n.parent&&n.canReuseDOM(l))&&l.reuseDOM(d)}l.sync(e,o),l.flags&=-8}if(d=P?P.nextSibling:f.firstChild,o&&!o.written&&o.node==f&&d!=l.dom&&(o.written=!0),l.dom.parentNode==f)for(;d&&d!=l.dom;)d=Rhe(d);else f.insertBefore(l.dom,d);P=l.dom}for(d=P?P.nextSibling:f.firstChild,d&&o&&o.node==f&&(o.written=!0);d;)d=Rhe(d)}else if(this.flags&1)for(let f of this.children)f.flags&7&&(f.sync(e,o),f.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,o){let f;if(e==this.dom)f=this.dom.childNodes[o];else{let P=CO(e)==0?0:o==0?-1:1;for(;;){let d=e.parentNode;if(d==this.dom)break;P==0&&d.firstChild!=d.lastChild&&(e==d.firstChild?P=-1:P=1),e=d}P<0?f=e:f=e.nextSibling}if(f==this.dom.firstChild)return 0;for(;f&&!id.get(f);)f=f.nextSibling;if(!f)return this.length;for(let P=0,d=0;;P++){let l=this.children[P];if(l.dom==f)return d;d+=l.length+l.breakAfter}}domBoundsAround(e,o,f=0){let P=-1,d=-1,l=-1,n=-1;for(let c=0,b=f,i=f;co)return O.domBoundsAround(e,o,b);if(w>=e&&P==-1&&(P=c,d=b),b>o&&O.dom.parentNode==this.dom){l=c,n=i;break}i=w,b=w+O.breakAfter}return{from:d,to:n<0?f+this.length:n,startDOM:(P?this.children[P-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:l=0?this.children[l].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let o=this.parent;o;o=o.parent){if(e&&(o.flags|=2),o.flags&1)return;o.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let o=e.parent;if(!o)return e;e=o}}replaceChildren(e,o,f=rce){this.markDirty();for(let P=e;Pthis.pos||e==this.pos&&(o>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let f=this.children[--this.i];this.pos-=f.length+f.breakAfter}}}function Qve(t,e,o,f,P,d,l,n,c){let{children:b}=t,i=b.length?b[e]:null,O=d.length?d[d.length-1]:null,w=O?O.breakAfter:l;if(!(e==f&&i&&!l&&!w&&d.length<2&&i.merge(o,P,d.length?O:null,o==0,n,c))){if(f0&&(!l&&d.length&&i.merge(o,i.length,d[0],!1,n,0)?i.breakAfter=d.shift().breakAfter:(o2);var Ua={mac:Dhe||/Mac/.test(zv.platform),windows:/Win/.test(zv.platform),linux:/Linux|X11/.test(zv.platform),ie:YZ,ie_version:Zve?qae.documentMode||6:Yae?+Yae[1]:Wae?+Wae[1]:0,gecko:Lhe,gecko_version:Lhe?+(/Firefox\/(\d+)/.exec(zv.userAgent)||[0,0])[1]:0,chrome:!!fie,chrome_version:fie?+fie[1]:0,ios:Dhe,android:/Android\b/.test(zv.userAgent),webkit:Ihe,safari:qve,webkit_version:Ihe?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:qae.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const OTe=256;class AO extends id{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,o){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(o&&o.node==this.dom&&(o.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,o,f){return this.flags&8||f&&(!(f instanceof AO)||this.length-(o-e)+f.length>OTe||f.flags&8)?!1:(this.text=this.text.slice(0,e)+(f?f.text:"")+this.text.slice(o),this.markDirty(),!0)}split(e){let o=new AO(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),o.flags|=this.flags&8,o}localPosFromDOM(e,o){return e==this.dom?o:o?this.text.length:0}domAtPos(e){return new Vg(this.dom,e)}domBoundsAround(e,o,f){return{from:f,to:f+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,o){return STe(this.dom,e,o)}}class MO extends id{constructor(e,o=[],f=0){super(),this.mark=e,this.children=o,this.length=f;for(let P of o)P.setParent(this)}setAttrs(e){if(Vve(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let o in this.mark.attrs)e.setAttribute(o,this.mark.attrs[o]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,o){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,o)}merge(e,o,f,P,d,l){return f&&(!(f instanceof MO&&f.mark.eq(this.mark))||e&&d<=0||oe&&o.push(f=e&&(P=d),f=c,d++}let l=this.length-e;return this.length=e,P>-1&&(this.children.length=P,this.markDirty()),new MO(this.mark,o,l)}domAtPos(e){return Wve(this,e)}coordsAt(e,o){return Xve(this,e,o)}}function STe(t,e,o){let f=t.nodeValue.length;e>f&&(e=f);let P=e,d=e,l=0;e==0&&o<0||e==f&&o>=0?Ua.chrome||Ua.gecko||(e?(P--,l=1):d=0)?0:n.length-1];return Ua.safari&&!l&&c.width==0&&(c=Array.prototype.find.call(n,b=>b.width)||c),l?WZ(c,l<0):c||null}class W4 extends id{static create(e,o,f){return new W4(e,o,f)}constructor(e,o,f){super(),this.widget=e,this.length=o,this.side=f,this.prevWidget=null}split(e){let o=W4.create(this.widget,this.length-e,this.side);return this.length-=e,o}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,o,f,P,d,l){return f&&(!(f instanceof W4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0)?Vg.before(this.dom):Vg.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,o){let f=this.widget.coordsAt(this.dom,e,o);if(f)return f;let P=this.dom.getClientRects(),d=null;if(!P.length)return null;let l=this.side?this.side<0:e>0;for(let n=l?P.length-1:0;d=P[n],!(e>0?n==0:n==P.length-1||d.top0?Vg.before(this.dom):Vg.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ru.empty}get isHidden(){return!0}}AO.prototype.children=W4.prototype.children=fM.prototype.children=rce;function Wve(t,e){let o=t.dom,{children:f}=t,P=0;for(let d=0;Pd&&e0;d--){let l=f[d-1];if(l.dom.parentNode==o)return l.domAtPos(l.length)}for(let d=P;d0&&e instanceof MO&&P.length&&(f=P[P.length-1])instanceof MO&&f.mark.eq(e.mark)?Yve(f,e.children[0],o-1):(P.push(e),e.setParent(t)),t.length+=e.length}function Xve(t,e,o){let f=null,P=-1,d=null,l=-1;function n(b,i){for(let O=0,w=0;O=i&&(y.children.length?n(y,i-w):(!d||d.isHidden&&o>0)&&(p>i||w==p&&y.getSide()>0)?(d=y,l=i-w):(w-1?1:0)!=P.length-(o&&P.indexOf(o)>-1?1:0))return!1;for(let d of f)if(d!=o&&(P.indexOf(d)==-1||t[d]!==e[d]))return!1;return!0}function Gae(t,e,o){let f=!1;if(e)for(let P in e)o&&P in o||(f=!0,P=="style"?t.style.cssText="":t.removeAttribute(P));if(o)for(let P in o)e&&e[P]==o[P]||(f=!0,P=="style"?t.style.cssText=o[P]:t.setAttribute(P,o[P]));return f}function TTe(t){let e=Object.create(null);for(let o=0;o0&&this.children[f-1].length==0;)this.children[--f].destroy();return this.children.length=f,this.markDirty(),this.length=e,o}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){oce(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,o){Yve(this,e,o)}addLineDeco(e){let o=e.spec.attributes,f=e.spec.class;o&&(this.attrs=Xae(o,this.attrs||{})),f&&(this.attrs=Xae({class:f},this.attrs||{}))}domAtPos(e){return Wve(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,o){var f;this.dom?this.flags&4&&(Vve(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Gae(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,o);let P=this.dom.lastChild;for(;P&&id.get(P)instanceof MO;)P=P.lastChild;if(!P||!this.length||P.nodeName!="BR"&&((f=id.get(P))===null||f===void 0?void 0:f.isEditable)==!1&&(!Ua.ios||!this.children.some(d=>d instanceof AO))){let d=document.createElement("BR");d.cmIgnore=!0,this.dom.appendChild(d)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,o;for(let f of this.children){if(!(f instanceof AO)||/[^ -~]/.test(f.text))return null;let P=uM(f.dom);if(P.length!=1)return null;e+=P[0].width,o=P[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:o}:null}coordsAt(e,o){let f=Xve(this,e,o);if(!this.children.length&&f&&this.parent){let{heightOracle:P}=this.parent.view.viewState,d=f.bottom-f.top;if(Math.abs(d-P.lineHeight)<2&&P.textHeight=o){if(d instanceof _p)return d;if(l>o)break}P=l+d.breakAfter}return null}}class eS extends id{constructor(e,o,f){super(),this.widget=e,this.length=o,this.deco=f,this.breakAfter=0,this.prevWidget=null}merge(e,o,f,P,d,l){return f&&(!(f instanceof eS)||!this.widget.compare(f.widget)||e>0&&d<=0||o0}}class Ox{eq(e){return!1}updateDOM(e,o){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,o,f){return null}get isHidden(){return!1}destroy(e){}}var T0=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(T0||(T0={}));class es extends pT{constructor(e,o,f,P){super(),this.startSide=e,this.endSide=o,this.widget=f,this.spec=P}get heightRelevant(){return!1}static mark(e){return new mD(e)}static widget(e){let o=Math.max(-1e4,Math.min(1e4,e.side||0)),f=!!e.block;return o+=f&&!e.inlineOrder?o>0?3e8:-4e8:o>0?1e8:-1e8,new sS(e,o,o,f,e.widget||null,!1)}static replace(e){let o=!!e.block,f,P;if(e.isBlockGap)f=-5e8,P=4e8;else{let{start:d,end:l}=Gve(e,o);f=(d?o?-3e8:-1:5e8)-1,P=(l?o?2e8:1:-6e8)+1}return new sS(e,f,P,o,e.widget||null,!0)}static line(e){return new gD(e)}static set(e,o=!1){return Vu.of(e,o)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}es.none=Vu.empty;class mD extends es{constructor(e){let{start:o,end:f}=Gve(e);super(o?-1:5e8,f?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var o,f;return this==e||e instanceof mD&&this.tagName==e.tagName&&(this.class||((o=this.attrs)===null||o===void 0?void 0:o.class))==(e.class||((f=e.attrs)===null||f===void 0?void 0:f.class))&&oce(this.attrs,e.attrs,"class")}range(e,o=e){if(e>=o)throw new RangeError("Mark decorations may not be empty");return super.range(e,o)}}mD.prototype.point=!1;class gD extends es{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof gD&&this.spec.class==e.spec.class&&oce(this.spec.attributes,e.spec.attributes)}range(e,o=e){if(o!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,o)}}gD.prototype.mapMode=tg.TrackBefore;gD.prototype.point=!0;class sS extends es{constructor(e,o,f,P,d,l){super(o,f,d,e),this.block=P,this.isReplace=l,this.mapMode=P?o<=0?tg.TrackBefore:tg.TrackAfter:tg.TrackDel}get type(){return this.startSide!=this.endSide?T0.WidgetRange:this.startSide<=0?T0.WidgetBefore:T0.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof sS&&CTe(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,o=e){if(this.isReplace&&(e>o||e==o&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&o!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,o)}}sS.prototype.point=!0;function Gve(t,e=!1){let{inclusiveStart:o,inclusiveEnd:f}=t;return o==null&&(o=t.inclusive),f==null&&(f=t.inclusive),{start:o??e,end:f??e}}function CTe(t,e){return t==e||!!(t&&e&&t.compare(e))}function Kae(t,e,o,f=0){let P=o.length-1;P>=0&&o[P]+f>=t?o[P]=Math.max(o[P],e):o.push(t,e)}class uI{constructor(e,o,f,P){this.doc=e,this.pos=o,this.end=f,this.disallowBlockEffectsFor=P,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=o}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof eS&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new _p),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(TQ(new fM(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof eS)&&this.getLine()}buildText(e,o,f){for(;e>0;){if(this.textOff==this.text.length){let{value:d,lineBreak:l,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(l){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=d,this.textOff=0}let P=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(o.slice(o.length-f)),this.getLine().append(TQ(new AO(this.text.slice(this.textOff,this.textOff+P)),o),f),this.atCursorPos=!0,this.textOff+=P,e-=P,f=0}}span(e,o,f,P){this.buildText(o-e,f,P),this.pos=o,this.openStart<0&&(this.openStart=P)}point(e,o,f,P,d,l){if(this.disallowBlockEffectsFor[l]&&f instanceof sS){if(f.block)throw new RangeError("Block decorations may not be specified via plugins");if(o>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let n=o-e;if(f instanceof sS)if(f.block)f.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new eS(f.widget||new zhe("div"),n,f));else{let c=W4.create(f.widget||new zhe("span"),n,n?0:f.startSide),b=this.atCursorPos&&!c.isEditable&&d<=P.length&&(e0),i=!c.isEditable&&(eP.length||f.startSide<=0),O=this.getLine();this.pendingBuffer==2&&!b&&!c.isEditable&&(this.pendingBuffer=0),this.flushBuffer(P),b&&(O.append(TQ(new fM(1),P),d),d=P.length+Math.max(0,d-P.length)),O.append(TQ(c,P),d),this.atCursorPos=i,this.pendingBuffer=i?eP.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=P.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(f);n&&(this.textOff+n<=this.text.length?this.textOff+=n:(this.skip+=n-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=o),this.openStart<0&&(this.openStart=d)}static build(e,o,f,P,d){let l=new uI(e,o,f,d);return l.openEnd=Vu.spans(P,o,f,l),l.openStart<0&&(l.openStart=l.openEnd),l.finish(l.openEnd),l}}function TQ(t,e){for(let o of e)t=new MO(o,[t],t.length);return t}class zhe extends Ox{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Kve=Ba.define(),Jve=Ba.define(),eye=Ba.define(),tye=Ba.define(),Jae=Ba.define(),nye=Ba.define(),rye=Ba.define(),oye=Ba.define({combine:t=>t.some(e=>e)}),iye=Ba.define({combine:t=>t.some(e=>e)});class JA{constructor(e,o="nearest",f="nearest",P=5,d=5,l=!1){this.range=e,this.y=o,this.x=f,this.yMargin=P,this.xMargin=d,this.isSnapshot=l}map(e){return e.empty?this:new JA(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new JA(Yo.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const CQ=cl.define({map:(t,e)=>t.map(e)});function tb(t,e,o){let f=t.facet(tye);f.length?f[0](e):window.onerror?window.onerror(String(e),o,void 0,void 0,e):o?console.error(o+":",e):console.error(e)}const XZ=Ba.define({combine:t=>t.length?t[0]:!0});let ATe=0;const YL=Ba.define();class Wd{constructor(e,o,f,P,d){this.id=e,this.create=o,this.domEventHandlers=f,this.domEventObservers=P,this.extension=d(this)}static define(e,o){const{eventHandlers:f,eventObservers:P,provide:d,decorations:l}=o||{};return new Wd(ATe++,e,f,P,n=>{let c=[YL.of(n)];return l&&c.push(LI.of(b=>{let i=b.plugin(n);return i?l(i):es.none})),d&&c.push(d(n)),c})}static fromClass(e,o){return Wd.define(f=>new e(f),o)}}class die{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let o=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(o)}catch(f){if(tb(o.state,f,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(o){tb(e.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var o;if(!((o=this.value)===null||o===void 0)&&o.destroy)try{this.value.destroy()}catch(f){tb(e.state,f,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const aye=Ba.define(),ice=Ba.define(),LI=Ba.define(),ace=Ba.define(),sye=Ba.define();function Fhe(t,e,o){let f=t.state.facet(sye);if(!f.length)return f;let P=f.map(l=>l instanceof Function?l(t):l),d=[];return Vu.spans(P,e,o,{point(){},span(l,n,c,b){let i=d;for(let O=c.length-1;O>=0;O--,b--){let w=c[O].spec.bidiIsolate,y;if(w!=null)if(b>0&&i.length&&(y=i[i.length-1]).to==l&&y.direction==w)y.to=n,i=y.inner;else{let p={from:l,to:n,direction:w,inner:[]};i.push(p),i=p.inner}}}}),d}const lye=Ba.define();function cye(t){let e=0,o=0,f=0,P=0;for(let d of t.state.facet(lye)){let l=d(t);l&&(l.left!=null&&(e=Math.max(e,l.left)),l.right!=null&&(o=Math.max(o,l.right)),l.top!=null&&(f=Math.max(f,l.top)),l.bottom!=null&&(P=Math.max(P,l.bottom)))}return{left:e,right:o,top:f,bottom:P}}const XL=Ba.define();class nb{constructor(e,o,f,P){this.fromA=e,this.toA=o,this.fromB=f,this.toB=P}join(e){return new nb(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let o=e.length,f=this;for(;o>0;o--){let P=e[o-1];if(!(P.fromA>f.toA)){if(P.toAi)break;d+=2}if(!c)return f;new nb(c.fromA,c.toA,c.fromB,c.toB).addToSet(f),l=c.toA,n=c.toB}}}class VH{constructor(e,o,f){this.view=e,this.state=o,this.transactions=f,this.flags=0,this.startState=e.state,this.changes=wp.empty(this.startState.doc.length);for(let d of f)this.changes=this.changes.compose(d.changes);let P=[];this.changes.iterChangedRanges((d,l,n,c)=>P.push(new nb(d,l,n,c))),this.changedRanges=P}static create(e,o,f){return new VH(e,o,f)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var qd=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(qd||(qd={}));const II=qd.LTR,uye=qd.RTL;function fye(t){let e=[];for(let o=0;o=o){if(n.level==f)return l;(d<0||(P!=0?P<0?n.fromo:e[d].level>n.level))&&(d=l)}}if(d<0)throw new RangeError("Index out of range");return d}}function dye(t,e){if(t.length!=e.length)return!1;for(let o=0;o=0;a-=3)if(Y2[a+1]==-y){let u=Y2[a+2],h=u&2?P:u&4?u&1?d:P:0;h&&(pf[O]=pf[Y2[a]]=h),n=a;break}}else{if(Y2.length==189)break;Y2[n++]=O,Y2[n++]=w,Y2[n++]=c}else if((p=pf[O])==2||p==1){let a=p==P;c=a?0:1;for(let u=n-3;u>=0;u-=3){let h=Y2[u+2];if(h&2)break;if(a)Y2[u+2]|=2;else{if(h&4)break;Y2[u+2]|=4}}}}}function DTe(t,e,o,f){for(let P=0,d=f;P<=o.length;P++){let l=P?o[P-1].to:t,n=Pc;)p==u&&(p=o[--a].from,u=a?o[a-1].to:t),pf[--p]=y;c=i}else d=b,c++}}}function tse(t,e,o,f,P,d,l){let n=f%2?2:1;if(f%2==P%2)for(let c=e,b=0;cc&&l.push(new Y4(c,a.from,y));let u=a.direction==II!=!(y%2);nse(t,u?f+1:f,P,a.inner,a.from,a.to,l),c=a.to}p=a.to}else{if(p==o||(i?pf[p]!=n:pf[p]==n))break;p++}w?tse(t,c,p,f+1,P,w,l):ce;){let i=!0,O=!1;if(!b||c>d[b-1].to){let a=pf[c-1];a!=n&&(i=!1,O=a==16)}let w=!i&&n==1?[]:null,y=i?f:f+1,p=c;e:for(;;)if(b&&p==d[b-1].to){if(O)break e;let a=d[--b];if(!i)for(let u=a.from,h=b;;){if(u==e)break e;if(h&&d[h-1].to==u)u=d[--h].from;else{if(pf[u-1]==n)break e;break}}if(w)w.push(a);else{a.topf.length;)pf[pf.length]=256;let f=[],P=e==II?0:1;return nse(t,P,P,o,0,t.length,f),f}function hye(t){return[new Y4(0,t,0)]}let pye="";function zTe(t,e,o,f,P){var d;let l=f.head-t.from,n=-1;if(l==0){if(!P||!t.length)return null;e[0].level!=o&&(l=e[0].side(!1,o),n=0)}else if(l==t.length){if(P)return null;let w=e[e.length-1];w.level!=o&&(l=w.side(!0,o),n=e.length-1)}n<0&&(n=Y4.find(e,l,(d=f.bidiLevel)!==null&&d!==void 0?d:-1,f.assoc));let c=e[n];l==c.side(P,o)&&(c=e[n+=P?1:-1],l=c.side(!P,o));let b=P==(c.dir==o),i=ng(t.text,l,b);if(pye=t.text.slice(Math.min(l,i),Math.max(l,i)),i!=c.side(P,o))return Yo.cursor(i+t.from,b?-1:1,c.level);let O=n==(P?e.length-1:0)?null:e[n+(P?1:-1)];return!O&&c.level!=o?Yo.cursor(P?t.to:t.from,P?-1:1,o):O&&O.level0&&f.length&&(f.every(({fromA:b,toA:i})=>ithis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let P=-1;this.view.inputState.composing>=0&&(!((o=this.domChanged)===null||o===void 0)&&o.newSel?P=this.domChanged.newSel.head:!QTe(e.changes,this.hasComposition)&&!e.selectionSet&&(P=e.state.selection.main.head));let d=P>-1?NTe(this.view,e.changes,P):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:b,to:i}=this.hasComposition;f=new nb(b,i,e.changes.mapPos(b,-1),e.changes.mapPos(i,1)).addToSet(f.slice())}this.hasComposition=d?{from:d.range.fromB,to:d.range.toB}:null,(Ua.ie||Ua.chrome)&&!d&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let l=this.decorations,n=this.updateDeco(),c=UTe(l,n,e.changes);return f=nb.extendWithRanges(f,c),!(this.flags&7)&&f.length==0?!1:(this.updateInner(f,e.startState.doc.length,d),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,o,f){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,o,f);let{observer:P}=this.view;P.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let l=Ua.chrome||Ua.ios?{node:P.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,l),this.flags&=-8,l&&(l.written||P.selectionRange.focusNode!=l.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(l=>l.flags&=-9);let d=[];if(this.view.viewport.from||this.view.viewport.to=0?P[l]:null;if(!n)break;let{fromA:c,toA:b,fromB:i,toB:O}=n,w,y,p,a;if(f&&f.range.fromBi){let _=uI.build(this.view.state.doc,i,f.range.fromB,this.decorations,this.dynamicDecorationMap),S=uI.build(this.view.state.doc,f.range.toB,O,this.decorations,this.dynamicDecorationMap);y=_.breakAtStart,p=_.openStart,a=S.openEnd;let A=this.compositionView(f);S.breakAtStart?A.breakAfter=1:S.content.length&&A.merge(A.length,A.length,S.content[0],!1,S.openStart,0)&&(A.breakAfter=S.content[0].breakAfter,S.content.shift()),_.content.length&&A.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),w=_.content.concat(A).concat(S.content)}else({content:w,breakAtStart:y,openStart:p,openEnd:a}=uI.build(this.view.state.doc,i,O,this.decorations,this.dynamicDecorationMap));let{i:u,off:h}=d.findPos(b,1),{i:m,off:v}=d.findPos(c,-1);Qve(this,m,v,u,h,w,y,p,a)}f&&this.fixCompositionDOM(f)}compositionView(e){let o=new AO(e.text.nodeValue);o.flags|=8;for(let{deco:P}of e.marks)o=new MO(P,[o],o.length);let f=new _p;return f.append(o,0),f}fixCompositionDOM(e){let o=(d,l)=>{l.flags|=8|(l.children.some(c=>c.flags&7)?1:0),this.markedForComposition.add(l);let n=id.get(d);n&&n!=l&&(n.dom=null),l.setDOM(d)},f=this.childPos(e.range.fromB,1),P=this.children[f.i];o(e.line,P);for(let d=e.marks.length-1;d>=-1;d--)f=P.childPos(f.off,1),P=P.children[f.i],o(d>=0?e.marks[d].node:e.text,P)}updateSelection(e=!1,o=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let f=this.view.root.activeElement,P=f==this.dom,d=!P&&hH(this.dom,this.view.observer.selectionRange)&&!(f&&this.dom.contains(f));if(!(P||o||d))return;let l=this.forceSelection;this.forceSelection=!1;let n=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(n.anchor)),b=n.empty?c:this.moveToLine(this.domAtPos(n.head));if(Ua.gecko&&n.empty&&!this.hasComposition&&FTe(c)){let O=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(O,c.node.childNodes[c.offset]||null)),c=b=new Vg(O,0),l=!0}let i=this.view.observer.selectionRange;(l||!i.focusNode||!$H(c.node,c.offset,i.anchorNode,i.anchorOffset)||!$H(b.node,b.offset,i.focusNode,i.focusOffset))&&(this.view.observer.ignore(()=>{Ua.android&&Ua.chrome&&this.dom.contains(i.focusNode)&&jTe(i.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let O=NH(this.view.root);if(O)if(n.empty){if(Ua.gecko){let w=$Te(c.node,c.offset);if(w&&w!=3){let y=gye(c.node,c.offset,w==1?1:-1);y&&(c=new Vg(y.node,y.offset))}}O.collapse(c.node,c.offset),n.bidiLevel!=null&&O.caretBidiLevel!==void 0&&(O.caretBidiLevel=n.bidiLevel)}else if(O.extend){O.collapse(c.node,c.offset);try{O.extend(b.node,b.offset)}catch{}}else{let w=document.createRange();n.anchor>n.head&&([c,b]=[b,c]),w.setEnd(b.node,b.offset),w.setStart(c.node,c.offset),O.removeAllRanges(),O.addRange(w)}d&&this.view.root.activeElement==this.dom&&(this.dom.blur(),f&&f.focus())}),this.view.observer.setSelectionRange(c,b)),this.impreciseAnchor=c.precise?null:new Vg(i.anchorNode,i.anchorOffset),this.impreciseHead=b.precise?null:new Vg(i.focusNode,i.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,o=e.state.selection.main,f=NH(e.root),{anchorNode:P,anchorOffset:d}=e.observer.selectionRange;if(!f||!o.empty||!o.assoc||!f.modify)return;let l=_p.find(this,o.head);if(!l)return;let n=l.posAtStart;if(o.head==n||o.head==n+l.length)return;let c=this.coordsAt(o.head,-1),b=this.coordsAt(o.head,1);if(!c||!b||c.bottom>b.top)return;let i=this.domAtPos(o.head+o.assoc);f.collapse(i.node,i.offset),f.modify("move",o.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let O=e.observer.selectionRange;e.docView.posFromDOM(O.anchorNode,O.anchorOffset)!=o.from&&f.collapse(P,d)}moveToLine(e){let o=this.dom,f;if(e.node!=o)return e;for(let P=e.offset;!f&&P=0;P--){let d=id.get(o.childNodes[P]);d instanceof _p&&(f=d.domAtPos(d.length))}return f?new Vg(f.node,f.offset,!0):e}nearest(e){for(let o=e;o;){let f=id.get(o);if(f&&f.rootView==this)return f;o=o.parentNode}return null}posFromDOM(e,o){let f=this.nearest(e);if(!f)throw new RangeError("Trying to find position for a DOM position outside of the document");return f.localPosFromDOM(e,o)+f.posAtStart}domAtPos(e){let{i:o,off:f}=this.childCursor().findPos(e,-1);for(;o=0;l--){let n=this.children[l],c=d-n.breakAfter,b=c-n.length;if(ce||n.covers(1))&&(!f||n instanceof _p&&!(f instanceof _p&&o>=0))&&(f=n,P=b),d=b}return f?f.coordsAt(e-P,o):null}coordsForChar(e){let{i:o,off:f}=this.childPos(e,1),P=this.children[o];if(!(P instanceof _p))return null;for(;P.children.length;){let{i:n,off:c}=P.childPos(f,1);for(;;n++){if(n==P.children.length)return null;if((P=P.children[n]).length)break}f=c}if(!(P instanceof AO))return null;let d=ng(P.text,f);if(d==f)return null;let l=mT(P.dom,f,d).getClientRects();for(let n=0;nMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,n=-1,c=this.view.textDirection==qd.LTR;for(let b=0,i=0;iP)break;if(b>=f){let y=O.dom.getBoundingClientRect();if(o.push(y.height),l){let p=O.dom.lastChild,a=p?uM(p):[];if(a.length){let u=a[a.length-1],h=c?u.right-y.left:y.right-u.left;h>n&&(n=h,this.minWidth=d,this.minWidthFrom=b,this.minWidthTo=w)}}}b=w+O.breakAfter}return o}textDirectionAt(e){let{i:o}=this.childPos(e,1);return getComputedStyle(this.children[o].dom).direction=="rtl"?qd.RTL:qd.LTR}measureTextSize(){for(let d of this.children)if(d instanceof _p){let l=d.measureTextSize();if(l)return l}let e=document.createElement("div"),o,f,P;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let d=uM(e.firstChild)[0];o=e.getBoundingClientRect().height,f=d?d.width/27:7,P=d?d.height:o,e.remove()}),{lineHeight:o,charWidth:f,textHeight:P}}childCursor(e=this.length){let o=this.children.length;return o&&(e-=this.children[--o].length),new jve(this.children,e,o)}computeBlockGapDeco(){let e=[],o=this.view.viewState;for(let f=0,P=0;;P++){let d=P==o.viewports.length?null:o.viewports[P],l=d?d.from-1:this.length;if(l>f){let n=(o.lineBlockAt(l).bottom-o.lineBlockAt(f).top)/this.view.scaleY;e.push(es.replace({widget:new $he(n),block:!0,inclusive:!0,isBlockGap:!0}).range(f,l))}if(!d)break;f=d.to+1}return es.set(e)}updateDeco(){let e=this.view.state.facet(LI).map((o,f)=>(this.dynamicDecorationMap[f]=typeof o=="function")?o(this.view):o);for(let o=e.length;oo.anchor?-1:1),P;if(!f)return;!o.empty&&(P=this.coordsAt(o.anchor,o.anchor>o.head?-1:1))&&(f={left:Math.min(f.left,P.left),top:Math.min(f.top,P.top),right:Math.max(f.right,P.right),bottom:Math.max(f.bottom,P.bottom)});let d=cye(this.view),l={left:f.left-d.left,top:f.top-d.top,right:f.right+d.right,bottom:f.bottom+d.bottom},{offsetWidth:n,offsetHeight:c}=this.view.scrollDOM;yTe(this.view.scrollDOM,l,o.head0)f=f.childNodes[P-1],P=CO(f);else break}if(o>=0)for(let f=t,P=e;;){if(f.nodeType==3)return{node:f,offset:P};if(f.nodeType==1&&P=0)f=f.childNodes[P],P=0;else break}return null}function $Te(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e{fe.from&&(o=!0)}),o}function HTe(t,e,o=1){let f=t.charCategorizer(e),P=t.doc.lineAt(e),d=e-P.from;if(P.length==0)return Yo.cursor(e);d==0?o=1:d==P.length&&(o=-1);let l=d,n=d;o<0?l=ng(P.text,d,!1):n=ng(P.text,d);let c=f(P.text.slice(l,n));for(;l>0;){let b=ng(P.text,l,!1);if(f(P.text.slice(b,l))!=c)break;l=b}for(;nt?e.left-t:Math.max(0,t-e.right)}function qTe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function hie(t,e){return t.tope.top+1}function Vhe(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function rse(t,e,o){let f,P,d,l,n=!1,c,b,i,O;for(let p=t.firstChild;p;p=p.nextSibling){let a=uM(p);for(let u=0;uv||l==v&&d>m){f=p,P=h,d=m,l=v;let _=v?o0?u0)}m==0?o>h.bottom&&(!i||i.bottomh.top)&&(b=p,O=h):i&&hie(i,h)?i=Uhe(i,h.bottom):O&&hie(O,h)&&(O=Vhe(O,h.top))}}if(i&&i.bottom>=o?(f=c,P=i):O&&O.top<=o&&(f=b,P=O),!f)return{node:t,offset:0};let w=Math.max(P.left,Math.min(P.right,e));if(f.nodeType==3)return jhe(f,w,o);if(n&&f.contentEditable!="false")return rse(f,w,o);let y=Array.prototype.indexOf.call(t.childNodes,f)+(e>=(P.left+P.right)/2?1:0);return{node:t,offset:y}}function jhe(t,e,o){let f=t.nodeValue.length,P=-1,d=1e9,l=0;for(let n=0;no?i.top-o:o-i.bottom)-1;if(i.left-1<=e&&i.right+1>=e&&O=(i.left+i.right)/2,y=w;if((Ua.chrome||Ua.gecko)&&mT(t,n).getBoundingClientRect().left==i.right&&(y=!w),O<=0)return{node:t,offset:n+(y?1:0)};P=n+(y?1:0),d=O}}}return{node:t,offset:P>-1?P:l>0?t.nodeValue.length:0}}function vye(t,e,o,f=-1){var P,d;let l=t.contentDOM.getBoundingClientRect(),n=l.top+t.viewState.paddingTop,c,{docHeight:b}=t.viewState,{x:i,y:O}=e,w=O-n;if(w<0)return 0;if(w>b)return t.state.doc.length;for(let _=t.viewState.heightOracle.textHeight/2,S=!1;c=t.elementAtHeight(w),c.type!=T0.Text;)for(;w=f>0?c.bottom+_:c.top-_,!(w>=0&&w<=b);){if(S)return o?null:0;S=!0,f=-f}O=n+w;let y=c.from;if(yt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:o?null:Qhe(t,l,c,i,O);let p=t.dom.ownerDocument,a=t.root.elementFromPoint?t.root:p,u=a.elementFromPoint(i,O);u&&!t.contentDOM.contains(u)&&(u=null),u||(i=Math.max(l.left+1,Math.min(l.right-1,i)),u=a.elementFromPoint(i,O),u&&!t.contentDOM.contains(u)&&(u=null));let h,m=-1;if(u&&((P=t.docView.nearest(u))===null||P===void 0?void 0:P.isEditable)!=!1){if(p.caretPositionFromPoint){let _=p.caretPositionFromPoint(i,O);_&&({offsetNode:h,offset:m}=_)}else if(p.caretRangeFromPoint){let _=p.caretRangeFromPoint(i,O);_&&({startContainer:h,startOffset:m}=_,(!t.contentDOM.contains(h)||Ua.safari&&WTe(h,m,i)||Ua.chrome&&YTe(h,m,i))&&(h=void 0))}}if(!h||!t.docView.dom.contains(h)){let _=_p.find(t.docView,y);if(!_)return w>c.top+c.height/2?c.to:c.from;({node:h,offset:m}=rse(_.dom,i,O))}let v=t.docView.nearest(h);if(!v)return null;if(v.isWidget&&((d=v.dom)===null||d===void 0?void 0:d.nodeType)==1){let _=v.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?v.posAtStart:v.posAtEnd}else return v.localPosFromDOM(h,m)+v.posAtStart}function Qhe(t,e,o,f,P){let d=Math.round((f-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&o.height>t.defaultLineHeight*1.5){let n=t.viewState.heightOracle.textHeight,c=Math.floor((P-o.top-(t.defaultLineHeight-n)*.5)/n);d+=c*t.viewState.heightOracle.lineLength}let l=t.state.sliceDoc(o.from,o.to);return o.from+jae(l,d,t.state.tabSize)}function WTe(t,e,o){let f;if(t.nodeType!=3||e!=(f=t.nodeValue.length))return!1;for(let P=t.nextSibling;P;P=P.nextSibling)if(P.nodeType!=1||P.nodeName!="BR")return!1;return mT(t,f-1,f).getBoundingClientRect().left>o}function YTe(t,e,o){if(e!=0)return!1;for(let P=t;;){let d=P.parentNode;if(!d||d.nodeType!=1||d.firstChild!=P)return!1;if(d.classList.contains("cm-line"))break;P=d}let f=t.nodeType==1?t.getBoundingClientRect():mT(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return o-f.left>5}function ose(t,e){let o=t.lineBlockAt(e);if(Array.isArray(o.type)){for(let f of o.type)if(f.to>e||f.to==e&&(f.to==o.to||f.type==T0.Text))return f}return o}function XTe(t,e,o,f){let P=ose(t,e.head),d=!f||P.type!=T0.Text||!(t.lineWrapping||P.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>P.from?e.head-1:e.head);if(d){let l=t.dom.getBoundingClientRect(),n=t.textDirectionAt(P.from),c=t.posAtCoords({x:o==(n==qd.LTR)?l.right-1:l.left+1,y:(d.top+d.bottom)/2});if(c!=null)return Yo.cursor(c,o?-1:1)}return Yo.cursor(o?P.to:P.from,o?-1:1)}function Hhe(t,e,o,f){let P=t.state.doc.lineAt(e.head),d=t.bidiSpans(P),l=t.textDirectionAt(P.from);for(let n=e,c=null;;){let b=zTe(P,d,l,n,o),i=pye;if(!b){if(P.number==(o?t.state.doc.lines:1))return n;i=` +`,P=t.state.doc.line(P.number+(o?1:-1)),d=t.bidiSpans(P),b=Yo.cursor(o?P.from:P.to)}if(c){if(!c(i))return n}else{if(!f)return b;c=f(i)}n=b}}function GTe(t,e,o){let f=t.state.charCategorizer(e),P=f(o);return d=>{let l=f(d);return P==Md.Space&&(P=l),P==l}}function KTe(t,e,o,f){let P=e.head,d=o?1:-1;if(P==(o?t.state.doc.length:0))return Yo.cursor(P,e.assoc);let l=e.goalColumn,n,c=t.contentDOM.getBoundingClientRect(),b=t.coordsAtPos(P,e.assoc||-1),i=t.documentTop;if(b)l==null&&(l=b.left-c.left),n=d<0?b.top:b.bottom;else{let y=t.viewState.lineBlockAt(P);l==null&&(l=Math.min(c.right-c.left,t.defaultCharacterWidth*(P-y.from))),n=(d<0?y.top:y.bottom)+i}let O=c.left+l,w=f??t.viewState.heightOracle.textHeight>>1;for(let y=0;;y+=10){let p=n+(w+y)*d,a=vye(t,{x:O,y:p},!1,d);if(pc.bottom||(d<0?aP)){let u=t.docView.coordsForChar(a),h=!u||p{if(e>d&&eP(t)),o.from,e.head>o.from?-1:1);return f==o.from?o:Yo.cursor(f,fnull),Ua.gecko&&m6e(e.contentDOM.ownerDocument)}handleEvent(e){!s6e(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,o){let f=this.handlers[e];if(f){for(let P of f.observers)P(this.view,o);for(let P of f.handlers){if(o.defaultPrevented)break;if(P(this.view,o)){o.preventDefault();break}}}}ensureHandlers(e){let o=e6e(e),f=this.handlers,P=this.view.contentDOM;for(let d in o)if(d!="scroll"){let l=!o[d].handlers.length,n=f[d];n&&l!=!n.handlers.length&&(P.removeEventListener(d,this.handleEvent),n=null),n||P.addEventListener(d,this.handleEvent,{passive:l})}for(let d in f)d!="scroll"&&!o[d]&&P.removeEventListener(d,this.handleEvent);this.handlers=o}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()f.keyCode==e.keyCode))&&!e.ctrlKey||t6e.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=o||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,KA(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Ua.safari&&!Ua.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Zhe(t,e){return(o,f)=>{try{return e.call(t,f,o)}catch(P){tb(o.state,P)}}}function e6e(t){let e=Object.create(null);function o(f){return e[f]||(e[f]={observers:[],handlers:[]})}for(let f of t){let P=f.spec;if(P&&P.domEventHandlers)for(let d in P.domEventHandlers){let l=P.domEventHandlers[d];l&&o(d).handlers.push(Zhe(f.value,l))}if(P&&P.domEventObservers)for(let d in P.domEventObservers){let l=P.domEventObservers[d];l&&o(d).observers.push(Zhe(f.value,l))}}for(let f in _x)o(f).handlers.push(_x[f]);for(let f in wx)o(f).observers.push(wx[f]);return e}const yye=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],t6e="dthko",bye=[16,17,18,20,91,92,224,225],AQ=6;function MQ(t){return Math.max(0,t)*.7+8}function n6e(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class r6e{constructor(e,o,f,P){this.view=e,this.startEvent=o,this.style=f,this.mustSelect=P,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=o,this.scrollParent=bTe(e.contentDOM),this.atoms=e.state.facet(ace).map(l=>l(e));let d=e.contentDOM.ownerDocument;d.addEventListener("mousemove",this.move=this.move.bind(this)),d.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=o.shiftKey,this.multiple=e.state.facet(jl.allowMultipleSelections)&&o6e(e,o),this.dragging=a6e(e,o)&&Oye(o)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var o;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&n6e(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let f=0,P=0,d=((o=this.scrollParent)===null||o===void 0?void 0:o.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},l=cye(this.view);e.clientX-l.left<=d.left+AQ?f=-MQ(d.left-e.clientX):e.clientX+l.right>=d.right-AQ&&(f=MQ(e.clientX-d.right)),e.clientY-l.top<=d.top+AQ?P=-MQ(d.top-e.clientY):e.clientY+l.bottom>=d.bottom-AQ&&(P=MQ(e.clientY-d.bottom)),this.setScrollSpeed(f,P)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,o){this.scrollSpeed={x:e,y:o},e||o?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let o=null;for(let f=0;fthis.select(this.lastEvent),20)}}function o6e(t,e){let o=t.state.facet(Kve);return o.length?o[0](e):Ua.mac?e.metaKey:e.ctrlKey}function i6e(t,e){let o=t.state.facet(Jve);return o.length?o[0](e):Ua.mac?!e.altKey:!e.ctrlKey}function a6e(t,e){let{main:o}=t.state.selection;if(o.empty)return!1;let f=NH(t.root);if(!f||f.rangeCount==0)return!0;let P=f.getRangeAt(0).getClientRects();for(let d=0;d=e.clientX&&l.top<=e.clientY&&l.bottom>=e.clientY)return!0}return!1}function s6e(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let o=e.target,f;o!=t.contentDOM;o=o.parentNode)if(!o||o.nodeType==11||(f=id.get(o))&&f.ignoreEvent(e))return!1;return!0}const _x=Object.create(null),wx=Object.create(null),xye=Ua.ie&&Ua.ie_version<15||Ua.ios&&Ua.webkit_version<604;function l6e(t){let e=t.dom.parentNode;if(!e)return;let o=e.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus(),setTimeout(()=>{t.focus(),o.remove(),_ye(t,o.value)},50)}function _ye(t,e){let{state:o}=t,f,P=1,d=o.toText(e),l=d.lines==o.selection.ranges.length;if(ise!=null&&o.selection.ranges.every(c=>c.empty)&&ise==d.toString()){let c=-1;f=o.changeByRange(b=>{let i=o.doc.lineAt(b.from);if(i.from==c)return{range:b};c=i.from;let O=o.toText((l?d.line(P++).text:e)+o.lineBreak);return{changes:{from:i.from,insert:O},range:Yo.cursor(b.from+O.length)}})}else l?f=o.changeByRange(c=>{let b=d.line(P++);return{changes:{from:c.from,to:c.to,insert:b.text},range:Yo.cursor(c.from+b.length)}}):f=o.replaceSelection(d);t.dispatch(f,{userEvent:"input.paste",scrollIntoView:!0})}wx.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};_x.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&(t.inputState.lastEscPress=Date.now()),!1);wx.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};wx.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};_x.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let o=null;for(let f of t.state.facet(eye))if(o=f(t,e),o)break;if(!o&&e.button==0&&(o=f6e(t,e)),o){let f=!t.hasFocus;t.inputState.startMouseSelection(new r6e(t,e,o,f)),f&&t.observer.ignore(()=>$ve(t.contentDOM));let P=t.inputState.mouseSelection;if(P)return P.start(e),P.dragging===!1}return!1};function qhe(t,e,o,f){if(f==1)return Yo.cursor(e,o);if(f==2)return HTe(t.state,e,o);{let P=_p.find(t.docView,e),d=t.state.doc.lineAt(P?P.posAtEnd:e),l=P?P.posAtStart:d.from,n=P?P.posAtEnd:d.to;return nt>=e.top&&t<=e.bottom,Whe=(t,e,o)=>wye(e,o)&&t>=o.left&&t<=o.right;function c6e(t,e,o,f){let P=_p.find(t.docView,e);if(!P)return 1;let d=e-P.posAtStart;if(d==0)return 1;if(d==P.length)return-1;let l=P.coordsAt(d,-1);if(l&&Whe(o,f,l))return-1;let n=P.coordsAt(d,1);return n&&Whe(o,f,n)?1:l&&wye(f,l)?-1:1}function Yhe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:o,bias:c6e(t,o,e.clientX,e.clientY)}}const u6e=Ua.ie&&Ua.ie_version<=11;let Xhe=null,Ghe=0,Khe=0;function Oye(t){if(!u6e)return t.detail;let e=Xhe,o=Khe;return Xhe=t,Khe=Date.now(),Ghe=!e||o>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Ghe+1)%3:1}function f6e(t,e){let o=Yhe(t,e),f=Oye(e),P=t.state.selection;return{update(d){d.docChanged&&(o.pos=d.changes.mapPos(o.pos),P=P.map(d.changes))},get(d,l,n){let c=Yhe(t,d),b,i=qhe(t,c.pos,c.bias,f);if(o.pos!=c.pos&&!l){let O=qhe(t,o.pos,o.bias,f),w=Math.min(O.from,i.from),y=Math.max(O.to,i.to);i=w1&&(b=d6e(P,c.pos))?b:n?P.addRange(i):Yo.create([i])}}}function d6e(t,e){for(let o=0;o=e)return Yo.create(t.ranges.slice(0,o).concat(t.ranges.slice(o+1)),t.mainIndex==o?0:t.mainIndex-(t.mainIndex>o?1:0))}return null}_x.dragstart=(t,e)=>{let{selection:{main:o}}=t.state;if(e.target.draggable){let P=t.docView.nearest(e.target);if(P&&P.isWidget){let d=P.posAtStart,l=d+P.length;(d>=o.to||l<=o.from)&&(o=Yo.range(d,l))}}let{inputState:f}=t;return f.mouseSelection&&(f.mouseSelection.dragging=!0),f.draggedContent=o,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(o.from,o.to)),e.dataTransfer.effectAllowed="copyMove"),!1};_x.dragend=t=>(t.inputState.draggedContent=null,!1);function Jhe(t,e,o,f){if(!o)return;let P=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:d}=t.inputState,l=f&&d&&i6e(t,e)?{from:d.from,to:d.to}:null,n={from:P,insert:o},c=t.state.changes(l?[l,n]:n);t.focus(),t.dispatch({changes:c,selection:{anchor:c.mapPos(P,-1),head:c.mapPos(P,1)},userEvent:l?"move.drop":"input.drop"}),t.inputState.draggedContent=null}_x.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let o=e.dataTransfer.files;if(o&&o.length){let f=Array(o.length),P=0,d=()=>{++P==o.length&&Jhe(t,e,f.filter(l=>l!=null).join(t.state.lineBreak),!1)};for(let l=0;l{/[\x00-\x08\x0e-\x1f]{2}/.test(n.result)||(f[l]=n.result),d()},n.readAsText(o[l])}return!0}else{let f=e.dataTransfer.getData("Text");if(f)return Jhe(t,e,f,!0),!0}return!1};_x.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let o=xye?null:e.clipboardData;return o?(_ye(t,o.getData("text/plain")||o.getData("text/uri-text")),!0):(l6e(t),!1)};function h6e(t,e){let o=t.dom.parentNode;if(!o)return;let f=o.appendChild(document.createElement("textarea"));f.style.cssText="position: fixed; left: -10000px; top: 10px",f.value=e,f.focus(),f.selectionEnd=e.length,f.selectionStart=0,setTimeout(()=>{f.remove(),t.focus()},50)}function p6e(t){let e=[],o=[],f=!1;for(let P of t.selection.ranges)P.empty||(e.push(t.sliceDoc(P.from,P.to)),o.push(P));if(!e.length){let P=-1;for(let{from:d}of t.selection.ranges){let l=t.doc.lineAt(d);l.number>P&&(e.push(l.text),o.push({from:l.from,to:Math.min(t.doc.length,l.to+1)})),P=l.number}f=!0}return{text:e.join(t.lineBreak),ranges:o,linewise:f}}let ise=null;_x.copy=_x.cut=(t,e)=>{let{text:o,ranges:f,linewise:P}=p6e(t.state);if(!o&&!P)return!1;ise=P?o:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:f,scrollIntoView:!0,userEvent:"delete.cut"});let d=xye?null:e.clipboardData;return d?(d.clearData(),d.setData("text/plain",o),!0):(h6e(t,o),!1)};const Sye=LO.define();function kye(t,e){let o=[];for(let f of t.facet(rye)){let P=f(t,e);P&&o.push(P)}return o?t.update({effects:o,annotations:Sye.of(!0)}):null}function Tye(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let o=kye(t.state,e);o?t.dispatch(o):t.update([])}},10)}wx.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),Tye(t)};wx.blur=t=>{t.observer.clearSelectionRange(),Tye(t)};wx.compositionstart=wx.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)};wx.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Ua.chrome&&Ua.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)};wx.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};_x.beforeinput=(t,e)=>{var o;let f;if(Ua.chrome&&Ua.android&&(f=yye.find(P=>P.inputType==e.inputType))&&(t.observer.delayAndroidKey(f.key,f.keyCode),f.key=="Backspace"||f.key=="Delete")){let P=((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0;setTimeout(()=>{var d;(((d=window.visualViewport)===null||d===void 0?void 0:d.height)||0)>P+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};const epe=new Set;function m6e(t){epe.has(t)||(epe.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const tpe=["pre-wrap","normal","pre-line","break-spaces"];class g6e{constructor(e){this.lineWrapping=e,this.doc=ru.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,o){let f=this.doc.lineAt(o).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(f+=Math.max(0,Math.ceil((o-e-f*this.lineLength*.5)/this.lineLength))),this.lineHeight*f}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return tpe.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let o=!1;for(let f=0;f-1,c=Math.round(o)!=Math.round(this.lineHeight)||this.lineWrapping!=n;if(this.lineWrapping=n,this.lineHeight=o,this.charWidth=f,this.textHeight=P,this.lineLength=d,c){this.heightSamples={};for(let b=0;b0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,o){this.height!=o&&(Math.abs(this.height-o)>mH&&(e.heightChanged=!0),this.height=o)}replace(e,o,f){return C0.of(f)}decomposeLeft(e,o){o.push(this)}decomposeRight(e,o){o.push(this)}applyChanges(e,o,f,P){let d=this,l=f.doc;for(let n=P.length-1;n>=0;n--){let{fromA:c,toA:b,fromB:i,toB:O}=P[n],w=d.lineAt(c,rd.ByPosNoHeight,f.setDoc(o),0,0),y=w.to>=b?w:d.lineAt(b,rd.ByPosNoHeight,f,0,0);for(O+=y.to-b,b=y.to;n>0&&w.from<=P[n-1].toA;)c=P[n-1].fromA,i=P[n-1].fromB,n--,cd*2){let n=e[o-1];n.break?e.splice(--o,1,n.left,null,n.right):e.splice(--o,1,n.left,n.right),f+=1+n.break,P-=n.size}else if(d>P*2){let n=e[f];n.break?e.splice(f,1,n.left,null,n.right):e.splice(f,1,n.left,n.right),f+=2+n.break,d-=n.size}else break;else if(P=d&&l(this.blockAt(0,f,P,d))}updateHeight(e,o=0,f=!1,P){return P&&P.from<=o&&P.more&&this.setHeight(e,P.heights[P.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Iv extends Cye{constructor(e,o){super(e,o,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,o,f,P){return new r_(P,this.length,f,this.height,this.breaks)}replace(e,o,f){let P=f[0];return f.length==1&&(P instanceof Iv||P instanceof Km&&P.flags&4)&&Math.abs(this.length-P.length)<10?(P instanceof Km?P=new Iv(P.length,this.height):P.height=this.height,this.outdated||(P.outdated=!1),P):C0.of(f)}updateHeight(e,o=0,f=!1,P){return P&&P.from<=o&&P.more?this.setHeight(e,P.heights[P.index++]):(f||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Km extends C0{constructor(e){super(e,0)}heightMetrics(e,o){let f=e.doc.lineAt(o).number,P=e.doc.lineAt(o+this.length).number,d=P-f+1,l,n=0;if(e.lineWrapping){let c=Math.min(this.height,e.lineHeight*d);l=c/d,this.length>d+1&&(n=(this.height-c)/(this.length-d-1))}else l=this.height/d;return{firstLine:f,lastLine:P,perLine:l,perChar:n}}blockAt(e,o,f,P){let{firstLine:d,lastLine:l,perLine:n,perChar:c}=this.heightMetrics(o,P);if(o.lineWrapping){let b=P+Math.round(Math.max(0,Math.min(1,(e-f)/this.height))*this.length),i=o.doc.lineAt(b),O=n+i.length*c,w=Math.max(f,e-O/2);return new r_(i.from,i.length,w,O,0)}else{let b=Math.max(0,Math.min(l-d,Math.floor((e-f)/n))),{from:i,length:O}=o.doc.line(d+b);return new r_(i,O,f+n*b,n,0)}}lineAt(e,o,f,P,d){if(o==rd.ByHeight)return this.blockAt(e,f,P,d);if(o==rd.ByPosNoHeight){let{from:y,to:p}=f.doc.lineAt(e);return new r_(y,p-y,0,0,0)}let{firstLine:l,perLine:n,perChar:c}=this.heightMetrics(f,d),b=f.doc.lineAt(e),i=n+b.length*c,O=b.number-l,w=P+n*O+c*(b.from-d-O);return new r_(b.from,b.length,Math.max(P,Math.min(w,P+this.height-i)),i,0)}forEachLine(e,o,f,P,d,l){e=Math.max(e,d),o=Math.min(o,d+this.length);let{firstLine:n,perLine:c,perChar:b}=this.heightMetrics(f,d);for(let i=e,O=P;i<=o;){let w=f.doc.lineAt(i);if(i==e){let p=w.number-n;O+=c*p+b*(e-d-p)}let y=c+b*w.length;l(new r_(w.from,w.length,O,y,0)),O+=y,i=w.to+1}}replace(e,o,f){let P=this.length-o;if(P>0){let d=f[f.length-1];d instanceof Km?f[f.length-1]=new Km(d.length+P):f.push(null,new Km(P-1))}if(e>0){let d=f[0];d instanceof Km?f[0]=new Km(e+d.length):f.unshift(new Km(e-1),null)}return C0.of(f)}decomposeLeft(e,o){o.push(new Km(e-1),null)}decomposeRight(e,o){o.push(null,new Km(this.length-e-1))}updateHeight(e,o=0,f=!1,P){let d=o+this.length;if(P&&P.from<=o+this.length&&P.more){let l=[],n=Math.max(o,P.from),c=-1;for(P.from>o&&l.push(new Km(P.from-o-1).updateHeight(e,o));n<=d&&P.more;){let i=e.doc.lineAt(n).length;l.length&&l.push(null);let O=P.heights[P.index++];c==-1?c=O:Math.abs(O-c)>=mH&&(c=-2);let w=new Iv(i,O);w.outdated=!1,l.push(w),n+=i+1}n<=d&&l.push(null,new Km(d-n).updateHeight(e,n));let b=C0.of(l);return(c<0||Math.abs(b.height-this.height)>=mH||Math.abs(c-this.heightMetrics(e,o).perLine)>=mH)&&(e.heightChanged=!0),b}else(f||this.outdated)&&(this.setHeight(e,e.heightForGap(o,o+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class y6e extends C0{constructor(e,o,f){super(e.length+o+f.length,e.height+f.height,o|(e.outdated||f.outdated?2:0)),this.left=e,this.right=f,this.size=e.size+f.size}get break(){return this.flags&1}blockAt(e,o,f,P){let d=f+this.left.height;return en))return b;let i=o==rd.ByPosNoHeight?rd.ByPosNoHeight:rd.ByPos;return c?b.join(this.right.lineAt(n,i,f,l,n)):this.left.lineAt(n,i,f,P,d).join(b)}forEachLine(e,o,f,P,d,l){let n=P+this.left.height,c=d+this.left.length+this.break;if(this.break)e=c&&this.right.forEachLine(e,o,f,n,c,l);else{let b=this.lineAt(c,rd.ByPos,f,P,d);e=e&&b.from<=o&&l(b),o>b.to&&this.right.forEachLine(b.to+1,o,f,n,c,l)}}replace(e,o,f){let P=this.left.length+this.break;if(othis.left.length)return this.balanced(this.left,this.right.replace(e-P,o-P,f));let d=[];e>0&&this.decomposeLeft(e,d);let l=d.length;for(let n of f)d.push(n);if(e>0&&npe(d,l-1),o=f&&o.push(null)),e>f&&this.right.decomposeLeft(e-f,o)}decomposeRight(e,o){let f=this.left.length,P=f+this.break;if(e>=P)return this.right.decomposeRight(e-P,o);e2*o.size||o.size>2*e.size?C0.of(this.break?[e,null,o]:[e,o]):(this.left=e,this.right=o,this.height=e.height+o.height,this.outdated=e.outdated||o.outdated,this.size=e.size+o.size,this.length=e.length+this.break+o.length,this)}updateHeight(e,o=0,f=!1,P){let{left:d,right:l}=this,n=o+d.length+this.break,c=null;return P&&P.from<=o+d.length&&P.more?c=d=d.updateHeight(e,o,f,P):d.updateHeight(e,o,f),P&&P.from<=n+l.length&&P.more?c=l=l.updateHeight(e,n,f,P):l.updateHeight(e,n,f),c?this.balanced(d,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function npe(t,e){let o,f;t[e]==null&&(o=t[e-1])instanceof Km&&(f=t[e+1])instanceof Km&&t.splice(e-1,3,new Km(o.length+1+f.length))}const b6e=5;class sce{constructor(e,o){this.pos=e,this.oracle=o,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,o){if(this.lineStart>-1){let f=Math.min(o,this.lineEnd),P=this.nodes[this.nodes.length-1];P instanceof Iv?P.length+=f-this.pos:(f>this.pos||!this.isCovered)&&this.nodes.push(new Iv(f-this.pos,-1)),this.writtenTo=f,o>f&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=o}point(e,o,f){if(e=b6e)&&this.addLineDeco(P,d,l)}else o>e&&this.span(e,o);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:o}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=o,this.writtenToe&&this.nodes.push(new Iv(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,o){let f=new Km(o-e);return this.oracle.doc.lineAt(e).to==o&&(f.flags|=4),f}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Iv)return e;let o=new Iv(0,-1);return this.nodes.push(o),o}addBlock(e){this.enterLine();let o=e.deco;o&&o.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,o&&o.endSide>0&&(this.covering=e)}addLineDeco(e,o,f){let P=this.ensureLine();P.length+=f,P.collapsed+=f,P.widgetHeight=Math.max(P.widgetHeight,e),P.breaks+=o,this.writtenTo=this.pos=this.pos+f}finish(e){let o=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(o instanceof Iv)&&!this.isCovered?this.nodes.push(new Iv(0,-1)):(this.writtenToi.clientHeight||i.scrollWidth>i.clientWidth)&&O.overflow!="visible"){let w=i.getBoundingClientRect();d=Math.max(d,w.left),l=Math.min(l,w.right),n=Math.max(n,w.top),c=b==t.parentNode?w.bottom:Math.min(c,w.bottom)}b=O.position=="absolute"||O.position=="fixed"?i.offsetParent:i.parentNode}else if(b.nodeType==11)b=b.host;else break;return{left:d-o.left,right:Math.max(d,l)-o.left,top:n-(o.top+e),bottom:Math.max(n,c)-(o.top+e)}}function O6e(t,e){let o=t.getBoundingClientRect();return{left:0,right:o.right-o.left,top:e,bottom:o.bottom-(o.top+e)}}class mie{constructor(e,o,f){this.from=e,this.to=o,this.size=f}static same(e,o){if(e.length!=o.length)return!1;for(let f=0;ftypeof f!="function"&&f.class=="cm-lineWrapping");this.heightOracle=new g6e(o),this.stateDeco=e.facet(LI).filter(f=>typeof f!="function"),this.heightMap=C0.empty().applyChanges(this.stateDeco,ru.empty,this.heightOracle.setDoc(e.doc),[new nb(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=es.set(this.lineGaps.map(f=>f.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:o}=this.state.selection;for(let f=0;f<=1;f++){let P=f?o.head:o.anchor;if(!e.some(({from:d,to:l})=>P>=d&&P<=l)){let{from:d,to:l}=this.lineBlockAt(P);e.push(new EQ(d,l))}}this.viewports=e.sort((f,P)=>f.from-P.from),this.scaler=this.heightMap.height<=7e6?ope:new C6e(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:GL(e,this.scaler))})}update(e,o=null){this.state=e.state;let f=this.stateDeco;this.stateDeco=this.state.facet(LI).filter(i=>typeof i!="function");let P=e.changedRanges,d=nb.extendWithRanges(P,x6e(f,this.stateDeco,e?e.changes:wp.empty(this.state.doc.length))),l=this.heightMap.height,n=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),d),this.heightMap.height!=l&&(e.flags|=2),n?(this.scrollAnchorPos=e.changes.mapPos(n.from,-1),this.scrollAnchorHeight=n.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let c=d.length?this.mapViewport(this.viewport,e.changes):this.viewport;(o&&(o.range.headc.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,o));let b=!e.changes.empty||e.flags&2||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),b&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),o&&(this.scrollTarget=o),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(iye)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let o=e.contentDOM,f=window.getComputedStyle(o),P=this.heightOracle,d=f.whiteSpace;this.defaultTextDirection=f.direction=="rtl"?qd.RTL:qd.LTR;let l=this.heightOracle.mustRefreshForWrapping(d),n=o.getBoundingClientRect(),c=l||this.mustMeasureContent||this.contentDOMHeight!=n.height;this.contentDOMHeight=n.height,this.mustMeasureContent=!1;let b=0,i=0;if(n.width&&n.height){let _=n.width/o.offsetWidth,S=n.height/o.offsetHeight;(_>.995&&_<1.005||!isFinite(_)||Math.abs(n.width-o.offsetWidth)<1)&&(_=1),(S>.995&&S<1.005||!isFinite(S)||Math.abs(n.height-o.offsetHeight)<1)&&(S=1),(this.scaleX!=_||this.scaleY!=S)&&(this.scaleX=_,this.scaleY=S,b|=8,l=c=!0)}let O=(parseInt(f.paddingTop)||0)*this.scaleY,w=(parseInt(f.paddingBottom)||0)*this.scaleY;(this.paddingTop!=O||this.paddingBottom!=w)&&(this.paddingTop=O,this.paddingBottom=w,b|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(P.lineWrapping&&(c=!0),this.editorWidth=e.scrollDOM.clientWidth,b|=8);let y=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=y&&(this.scrollAnchorHeight=-1,this.scrollTop=y),this.scrolledToBottom=Uve(e.scrollDOM);let p=(this.printing?O6e:w6e)(o,this.paddingTop),a=p.top-this.pixelViewport.top,u=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let h=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(h!=this.inView&&(this.inView=h,h&&(c=!0)),!this.inView&&!this.scrollTarget)return 0;let m=n.width;if((this.contentDOMWidth!=m||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=n.width,this.editorHeight=e.scrollDOM.clientHeight,b|=8),c){let _=e.docView.measureVisibleLineHeights(this.viewport);if(P.mustRefreshForHeights(_)&&(l=!0),l||P.lineWrapping&&Math.abs(m-this.contentDOMWidth)>P.charWidth){let{lineHeight:S,charWidth:A,textHeight:x}=e.docView.measureTextSize();l=S>0&&P.refresh(d,S,A,x,m/A,_),l&&(e.docView.minWidth=0,b|=8)}a>0&&u>0?i=Math.max(a,u):a<0&&u<0&&(i=Math.min(a,u)),P.heightChanged=!1;for(let S of this.viewports){let A=S.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(S);this.heightMap=(l?C0.empty().applyChanges(this.stateDeco,ru.empty,this.heightOracle,[new nb(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(P,0,l,new v6e(S.from,A))}P.heightChanged&&(b|=2)}let v=!this.viewportIsAppropriate(this.viewport,i)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(this.viewport=this.getViewport(i,this.scrollTarget)),this.updateForViewport(),(b&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(l?[]:this.lineGaps,e)),b|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),b}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,o){let f=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),P=this.heightMap,d=this.heightOracle,{visibleTop:l,visibleBottom:n}=this,c=new EQ(P.lineAt(l-f*1e3,rd.ByHeight,d,0,0).from,P.lineAt(n+(1-f)*1e3,rd.ByHeight,d,0,0).to);if(o){let{head:b}=o.range;if(bc.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),O=P.lineAt(b,rd.ByPos,d,0,0),w;o.y=="center"?w=(O.top+O.bottom)/2-i/2:o.y=="start"||o.y=="nearest"&&b=n+Math.max(10,Math.min(f,250)))&&P>l-2*1e3&&d>1,l=P<<1;if(this.defaultTextDirection!=qd.LTR&&!f)return[];let n=[],c=(b,i,O,w)=>{if(i-bb&&uu.from>=O.from&&u.to<=O.to&&Math.abs(u.from-b)u.fromh));if(!a){if(iu.from<=i&&u.to>=i)){let u=o.moveToLineBoundary(Yo.cursor(i),!1,!0).head;u>b&&(i=u)}a=new mie(b,i,this.gapSize(O,b,i,w))}n.push(a)};for(let b of this.viewportLines){if(b.lengthb.from&&c(b.from,w,b,i),yo.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let o=[];Vu.spans(e,this.viewport.from,this.viewport.to,{span(P,d){o.push({from:P,to:d})},point(){}},20);let f=o.length!=this.visibleRanges.length||this.visibleRanges.some((P,d)=>P.from!=o[d].from||P.to!=o[d].to);return this.visibleRanges=o,f?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(o=>o.from<=e&&o.to>=e)||GL(this.heightMap.lineAt(e,rd.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return GL(this.heightMap.lineAt(this.scaler.fromDOM(e),rd.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let o=this.lineBlockAtHeight(e+8);return o.from>=this.viewport.from||this.viewportLines[0].top-e>200?o:this.viewportLines[0]}elementAtHeight(e){return GL(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class EQ{constructor(e,o){this.from=e,this.to=o}}function k6e(t,e,o){let f=[],P=t,d=0;return Vu.spans(o,t,e,{span(){},point(l,n){l>P&&(f.push({from:P,to:l}),d+=l-P),P=n}},20),P=1)return e[e.length-1].to;let f=Math.floor(t*o);for(let P=0;;P++){let{from:d,to:l}=e[P],n=l-d;if(f<=n)return d+f;f-=n}}function RQ(t,e){let o=0;for(let{from:f,to:P}of t.ranges){if(e<=P){o+=e-f;break}o+=P-f}return o/t.total}function T6e(t,e){for(let o of t)if(e(o))return o}const ope={toDOM(t){return t},fromDOM(t){return t},scale:1};class C6e{constructor(e,o,f){let P=0,d=0,l=0;this.viewports=f.map(({from:n,to:c})=>{let b=o.lineAt(n,rd.ByPos,e,0,0).top,i=o.lineAt(c,rd.ByPos,e,0,0).bottom;return P+=i-b,{from:n,to:c,top:b,bottom:i,domTop:0,domBottom:0}}),this.scale=(7e6-P)/(o.height-P);for(let n of this.viewports)n.domTop=l+(n.top-d)*this.scale,l=n.domBottom=n.domTop+(n.bottom-n.top),d=n.bottom}toDOM(e){for(let o=0,f=0,P=0;;o++){let d=oGL(P,e)):t._content)}const LQ=Ba.define({combine:t=>t.join(" ")}),ase=Ba.define({combine:t=>t.indexOf(!0)>-1}),sse=iS.newName(),Aye=iS.newName(),Mye=iS.newName(),Eye={"&light":"."+Aye,"&dark":"."+Mye};function lse(t,e,o){return new iS(e,{finish(f){return/&/.test(f)?f.replace(/&\w*/,P=>{if(P=="&")return t;if(!o||!o[P])throw new RangeError(`Unsupported selector: ${P}`);return o[P]}):t+" "+f}})}const A6e=lse("."+sse,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Eye),KL="￿";class M6e{constructor(e,o){this.points=e,this.text="",this.lineSeparator=o.facet(jl.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=KL}readRange(e,o){if(!e)return this;let f=e.parentNode;for(let P=e;;){this.findPointBefore(f,P);let d=this.text.length;this.readNode(P);let l=P.nextSibling;if(l==o)break;let n=id.get(P),c=id.get(l);(n&&c?n.breakAfter:(n?n.breakAfter:ipe(P))||ipe(l)&&(P.nodeName!="BR"||P.cmIgnore)&&this.text.length>d)&&this.lineBreak(),P=l}return this.findPointBefore(f,o),this}readTextNode(e){let o=e.nodeValue;for(let f of this.points)f.node==e&&(f.pos=this.text.length+Math.min(f.offset,o.length));for(let f=0,P=this.lineSeparator?null:/\r\n?|\n/g;;){let d=-1,l=1,n;if(this.lineSeparator?(d=o.indexOf(this.lineSeparator,f),l=this.lineSeparator.length):(n=P.exec(o))&&(d=n.index,l=n[0].length),this.append(o.slice(f,d<0?o.length:d)),d<0)break;if(this.lineBreak(),l>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=l-1);f=d+l}}readNode(e){if(e.cmIgnore)return;let o=id.get(e),f=o&&o.overrideDOMText;if(f!=null){this.findPointInside(e,f.length);for(let P=f.iter();!P.next().done;)P.lineBreak?this.lineBreak():this.append(P.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,o){for(let f of this.points)f.node==e&&e.childNodes[f.offset]==o&&(f.pos=this.text.length)}findPointInside(e,o){for(let f of this.points)(e.nodeType==3?f.node==e:e.contains(f.node))&&(f.pos=this.text.length+(E6e(e,f.node,f.offset)?o:0))}}function E6e(t,e,o){for(;;){if(!e||o-1)this.newSel=null;else if(o>-1&&(this.bounds=e.docView.domBoundsAround(o,f,0))){let n=d||l?[]:I6e(e),c=new M6e(n,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=D6e(n,this.bounds.from)}else{let n=e.observer.selectionRange,c=d&&d.node==n.focusNode&&d.offset==n.focusOffset||!Zae(e.contentDOM,n.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(n.focusNode,n.focusOffset),b=l&&l.node==n.anchorNode&&l.offset==n.anchorOffset||!Zae(e.contentDOM,n.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(n.anchorNode,n.anchorOffset);this.newSel=Yo.single(b,c)}}}function Pye(t,e){let o,{newSel:f}=e,P=t.state.selection.main,d=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:l,to:n}=e.bounds,c=P.from,b=null;(d===8||Ua.android&&e.text.length=P.from&&o.to<=P.to&&(o.from!=P.from||o.to!=P.to)&&P.to-P.from-(o.to-o.from)<=4?o={from:P.from,to:P.to,insert:t.state.doc.slice(P.from,o.from).append(o.insert).append(t.state.doc.slice(o.to,P.to))}:(Ua.mac||Ua.android)&&o&&o.from==o.to&&o.from==P.head-1&&/^\. ?$/.test(o.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(f&&o.insert.length==2&&(f=Yo.single(f.main.anchor-1,f.main.head-1)),o={from:P.from,to:P.to,insert:ru.of([" "])}):Ua.chrome&&o&&o.from==o.to&&o.from==P.head&&o.insert.toString()==` + `&&t.lineWrapping&&(f&&(f=Yo.single(f.main.anchor-1,f.main.head-1)),o={from:P.from,to:P.to,insert:ru.of([" "])}),o){if(Ua.ios&&t.inputState.flushIOSKey()||Ua.android&&(o.from==P.from&&o.to==P.to&&o.insert.length==1&&o.insert.lines==2&&KA(t.contentDOM,"Enter",13)||(o.from==P.from-1&&o.to==P.to&&o.insert.length==0||d==8&&o.insert.lengthP.head)&&KA(t.contentDOM,"Backspace",8)||o.from==P.from&&o.to==P.to+1&&o.insert.length==0&&KA(t.contentDOM,"Delete",46)))return!0;let l=o.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let n,c=()=>n||(n=R6e(t,o,f));return t.state.facet(nye).some(b=>b(t,o.from,o.to,l,c))||t.dispatch(c()),!0}else if(f&&!f.main.eq(P)){let l=!1,n="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(l=!0),n=t.inputState.lastSelectionOrigin),t.dispatch({selection:f,scrollIntoView:l,userEvent:n}),!0}else return!1}function R6e(t,e,o){let f,P=t.state,d=P.selection.main;if(e.from>=d.from&&e.to<=d.to&&e.to-e.from>=(d.to-d.from)/3&&(!o||o.main.empty&&o.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let n=d.frome.to?P.sliceDoc(e.to,d.to):"";f=P.replaceSelection(t.state.toText(n+e.insert.sliceString(0,void 0,t.state.lineBreak)+c))}else{let n=P.changes(e),c=o&&o.main.to<=n.newLength?o.main:void 0;if(P.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=d.to&&e.to>=d.to-10){let b=t.state.sliceDoc(e.from,e.to),i,O=o&&mye(t,o.main.head);if(O){let p=e.insert.length-(e.to-e.from);i={from:O.from,to:O.to-p}}else i=t.state.doc.lineAt(d.head);let w=d.to-e.to,y=d.to-d.from;f=P.changeByRange(p=>{if(p.from==d.from&&p.to==d.to)return{changes:n,range:c||p.map(n)};let a=p.to-w,u=a-b.length;if(p.to-p.from!=y||t.state.sliceDoc(u,a)!=b||p.to>=i.from&&p.from<=i.to)return{range:p};let h=P.changes({from:u,to:a,insert:e.insert}),m=p.to-d.to;return{changes:h,range:c?Yo.range(Math.max(0,c.anchor+m),Math.max(0,c.head+m)):p.map(h)}})}else f={changes:n,selection:c&&P.selection.replaceRange(c)}}let l="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,l+=".compose",t.inputState.compositionFirstChange&&(l+=".start",t.inputState.compositionFirstChange=!1)),P.update(f,{userEvent:l,scrollIntoView:!0})}function L6e(t,e,o,f){let P=Math.min(t.length,e.length),d=0;for(;d0&&n>0&&t.charCodeAt(l-1)==e.charCodeAt(n-1);)l--,n--;if(f=="end"){let c=Math.max(0,d-Math.min(l,n));o-=l+c-d}if(l=l?d-o:0;d-=c,n=d+(n-l),l=d}else if(n=n?d-o:0;d-=c,l=d+(l-n),n=d}return{from:d,toA:l,toB:n}}function I6e(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:o,anchorOffset:f,focusNode:P,focusOffset:d}=t.observer.selectionRange;return o&&(e.push(new ape(o,f)),(P!=o||d!=f)&&e.push(new ape(P,d))),e}function D6e(t,e){if(t.length==0)return null;let o=t[0].pos,f=t.length==2?t[1].pos:o;return o>-1&&f>-1?Yo.single(o+e,f+e):null}const B6e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},gie=Ua.ie&&Ua.ie_version<=11;class z6e{constructor(e){this.view=e,this.active=!1,this.selectionRange=new xTe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(o=>{for(let f of o)this.queue.push(f);(Ua.ie&&Ua.ie_version<=11||Ua.ios&&e.composing)&&o.some(f=>f.type=="childList"&&f.removedNodes.length||f.type=="characterData"&&f.oldValue.length>f.target.nodeValue.length)?this.flushSoon():this.flush()}),gie&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var o;((o=this.view.docView)===null||o===void 0?void 0:o.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),o.length>0&&o[o.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(o=>{o.length>0&&o[o.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((o,f)=>o!=e[f]))){this.gapIntersection.disconnect();for(let o of e)this.gapIntersection.observe(o);this.gaps=e}}onSelectionChange(e){let o=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:f}=this,P=this.selectionRange;if(f.state.facet(XZ)?f.root.activeElement!=this.dom:!hH(f.dom,P))return;let d=P.anchorNode&&f.docView.nearest(P.anchorNode);if(d&&d.ignoreEvent(e)){o||(this.selectionChanged=!1);return}(Ua.ie&&Ua.ie_version<=11||Ua.android&&Ua.chrome)&&!f.state.selection.main.empty&&P.focusNode&&$H(P.focusNode,P.focusOffset,P.anchorNode,P.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,o=Ua.safari&&e.root.nodeType==11&&gTe(this.dom.ownerDocument)==this.dom&&F6e(this.view)||NH(e.root);if(!o||this.selectionRange.eq(o))return!1;let f=hH(this.dom,o);return f&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let d=this.delayedAndroidKey;d&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=d.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&d.force&&KA(this.dom,d.key,d.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(P)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:o,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let o=-1,f=-1,P=!1;for(let d of e){let l=this.readMutation(d);l&&(l.typeOver&&(P=!0),o==-1?{from:o,to:f}=l:(o=Math.min(l.from,o),f=Math.max(l.to,f)))}return{from:o,to:f,typeOver:P}}readChange(){let{from:e,to:o,typeOver:f}=this.processRecords(),P=this.selectionChanged&&hH(this.dom,this.selectionRange);if(e<0&&!P)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let d=new P6e(this.view,e,o,f);return this.view.docView.domChanged={newSel:d.newSel?d.newSel.main:null},d}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let o=this.readChange();if(!o)return this.view.requestMeasure(),!1;let f=this.view.state,P=Pye(this.view,o);return this.view.state==f&&this.view.update([]),P}readMutation(e){let o=this.view.docView.nearest(e.target);if(!o||o.ignoreMutation(e))return null;if(o.markDirty(e.type=="attributes"),e.type=="attributes"&&(o.flags|=4),e.type=="childList"){let f=spe(o,e.previousSibling||e.target.previousSibling,-1),P=spe(o,e.nextSibling||e.target.nextSibling,1);return{from:f?o.posAfter(f):o.posAtStart,to:P?o.posBefore(P):o.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,o,f;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(o=this.gapIntersection)===null||o===void 0||o.disconnect(),(f=this.resizeScroll)===null||f===void 0||f.disconnect();for(let P of this.scrollTargets)P.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function spe(t,e,o){for(;e;){let f=id.get(e);if(f&&f.parent==t)return f;let P=e.parentNode;e=P!=t.dom?P:o>0?e.nextSibling:e.previousSibling}return null}function F6e(t){let e=null;function o(c){c.preventDefault(),c.stopImmediatePropagation(),e=c.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",o,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",o,!0),!e)return null;let f=e.startContainer,P=e.startOffset,d=e.endContainer,l=e.endOffset,n=t.docView.domAtPos(t.state.selection.main.anchor);return $H(n.node,n.offset,d,l)&&([f,P,d,l]=[d,l,f,P]),{anchorNode:f,anchorOffset:P,focusNode:d,focusOffset:l}}class Oa{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:o}=e;this.dispatchTransactions=e.dispatchTransactions||o&&(f=>f.forEach(P=>o(P,this)))||(f=>this.update(f)),this.dispatch=this.dispatch.bind(this),this._root=e.root||_Te(e.parent)||document,this.viewState=new rpe(e.state||jl.create(e)),e.scrollTo&&e.scrollTo.is(CQ)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(YL).map(f=>new die(f));for(let f of this.plugins)f.update(this);this.observer=new z6e(this),this.inputState=new JTe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Nhe(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let o=e.length==1&&e[0]instanceof Sp?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(o,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let o=!1,f=!1,P,d=this.state;for(let w of e){if(w.startState!=d)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");d=w.state}if(this.destroyed){this.viewState.state=d;return}let l=this.hasFocus,n=0,c=null;e.some(w=>w.annotation(Sye))?(this.inputState.notifiedFocused=l,n=1):l!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=l,c=kye(d,l),c||(n=1));let b=this.observer.delayedAndroidKey,i=null;if(b?(this.observer.clearDelayedAndroidKey(),i=this.observer.readChange(),(i&&!this.state.doc.eq(d.doc)||!this.state.selection.eq(d.selection))&&(i=null)):this.observer.clear(),d.facet(jl.phrases)!=this.state.facet(jl.phrases))return this.setState(d);P=VH.create(this,d,e),P.flags|=n;let O=this.viewState.scrollTarget;try{this.updateState=2;for(let w of e){if(O&&(O=O.map(w.changes)),w.scrollIntoView){let{main:y}=w.state.selection;O=new JA(y.empty?y:Yo.cursor(y.head,y.head>y.anchor?-1:1))}for(let y of w.effects)y.is(CQ)&&(O=y.value.clip(this.state))}this.viewState.update(P,O),this.bidiCache=UH.update(this.bidiCache,P.changes),P.empty||(this.updatePlugins(P),this.inputState.update(P)),o=this.docView.update(P),this.state.facet(XL)!=this.styleModules&&this.mountStyles(),f=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(o,e.some(w=>w.isUserEvent("select.pointer")))}finally{this.updateState=0}if(P.startState.facet(LQ)!=P.state.facet(LQ)&&(this.viewState.mustMeasureContent=!0),(o||f||O||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!P.empty)for(let w of this.state.facet(Jae))try{w(P)}catch(y){tb(this.state,y,"update listener")}(c||i)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),i&&!Pye(this,i)&&b.force&&KA(this.contentDOM,b.key,b.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let o=this.hasFocus;try{for(let f of this.plugins)f.destroy(this);this.viewState=new rpe(e),this.plugins=e.facet(YL).map(f=>new die(f)),this.pluginMap.clear();for(let f of this.plugins)f.update(this);this.docView.destroy(),this.docView=new Nhe(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}o&&this.focus(),this.requestMeasure()}updatePlugins(e){let o=e.startState.facet(YL),f=e.state.facet(YL);if(o!=f){let P=[];for(let d of f){let l=o.indexOf(d);if(l<0)P.push(new die(d));else{let n=this.plugins[l];n.mustUpdate=e,P.push(n)}}for(let d of this.plugins)d.mustUpdate!=e&&d.destroy(this);this.plugins=P,this.pluginMap.clear()}else for(let P of this.plugins)P.mustUpdate=e;for(let P=0;P-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let o=null,f=this.scrollDOM,P=f.scrollTop*this.scaleY,{scrollAnchorPos:d,scrollAnchorHeight:l}=this.viewState;Math.abs(P-this.viewState.scrollTop)>1&&(l=-1),this.viewState.scrollAnchorHeight=-1;try{for(let n=0;;n++){if(l<0)if(Uve(f))d=-1,l=this.viewState.heightMap.height;else{let y=this.viewState.scrollAnchorAt(P);d=y.from,l=y.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(n>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let b=[];c&4||([this.measureRequests,b]=[b,this.measureRequests]);let i=b.map(y=>{try{return y.read(this)}catch(p){return tb(this.state,p),lpe}}),O=VH.create(this,this.state,[]),w=!1;O.flags|=c,o?o.flags|=c:o=O,this.updateState=2,O.empty||(this.updatePlugins(O),this.inputState.update(O),this.updateAttrs(),w=this.docView.update(O));for(let y=0;y1||p<-1){P=P+p,f.scrollTop=P/this.scaleY,l=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(o&&!o.empty)for(let n of this.state.facet(Jae))n(o)}get themeClasses(){return sse+" "+(this.state.facet(ase)?Mye:Aye)+" "+this.state.facet(LQ)}updateAttrs(){let e=cpe(this,aye,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),o={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(XZ)?"true":"false",class:"cm-content",style:`${Ua.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(o["aria-readonly"]="true"),cpe(this,ice,o);let f=this.observer.ignore(()=>{let P=Gae(this.contentDOM,this.contentAttrs,o),d=Gae(this.dom,this.editorAttrs,e);return P||d});return this.editorAttrs=e,this.contentAttrs=o,f}showAnnouncements(e){let o=!0;for(let f of e)for(let P of f.effects)if(P.is(Oa.announce)){o&&(this.announceDOM.textContent=""),o=!1;let d=this.announceDOM.appendChild(document.createElement("div"));d.textContent=P.value}}mountStyles(){this.styleModules=this.state.facet(XL);let e=this.state.facet(Oa.cspNonce);iS.mount(this.root,this.styleModules.concat(A6e).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let o=0;of.spec==e)||null),o&&o.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,o,f){return pie(this,e,Hhe(this,e,o,f))}moveByGroup(e,o){return pie(this,e,Hhe(this,e,o,f=>GTe(this,e.head,f)))}moveToLineBoundary(e,o,f=!0){return XTe(this,e,o,f)}moveVertically(e,o,f){return pie(this,e,KTe(this,e,o,f))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,o=0){return this.docView.posFromDOM(e,o)}posAtCoords(e,o=!0){return this.readMeasured(),vye(this,e,o)}coordsAtPos(e,o=1){this.readMeasured();let f=this.docView.coordsAt(e,o);if(!f||f.left==f.right)return f;let P=this.state.doc.lineAt(e),d=this.bidiSpans(P),l=d[Y4.find(d,e-P.from,-1,o)];return WZ(f,l.dir==qd.LTR==o>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(oye)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>N6e)return hye(e.length);let o=this.textDirectionAt(e.from),f;for(let d of this.bidiCache)if(d.from==e.from&&d.dir==o&&(d.fresh||dye(d.isolates,f=Fhe(this,e.from,e.to))))return d.order;f||(f=Fhe(this,e.from,e.to));let P=BTe(e.text,o,f);return this.bidiCache.push(new UH(e.from,e.to,o,f,!0,P)),P}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Ua.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{$ve(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,o={}){return CQ.of(new JA(typeof e=="number"?Yo.cursor(e):e,o.y,o.x,o.yMargin,o.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:o}=this.scrollDOM,f=this.viewState.scrollAnchorAt(e);return CQ.of(new JA(Yo.cursor(f.from),"start","start",f.top-e,o,!0))}static domEventHandlers(e){return Wd.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Wd.define(()=>({}),{eventObservers:e})}static theme(e,o){let f=iS.newName(),P=[LQ.of(f),XL.of(lse(`.${f}`,e))];return o&&o.dark&&P.push(ase.of(!0)),P}static baseTheme(e){return Vv.lowest(XL.of(lse("."+sse,e,Eye)))}static findFromDOM(e){var o;let f=e.querySelector(".cm-content"),P=f&&id.get(f)||id.get(e);return((o=P==null?void 0:P.rootView)===null||o===void 0?void 0:o.view)||null}}Oa.styleModule=XL;Oa.inputHandler=nye;Oa.focusChangeEffect=rye;Oa.perLineTextDirection=oye;Oa.exceptionSink=tye;Oa.updateListener=Jae;Oa.editable=XZ;Oa.mouseSelectionStyle=eye;Oa.dragMovesSelection=Jve;Oa.clickAddsSelectionRange=Kve;Oa.decorations=LI;Oa.atomicRanges=ace;Oa.bidiIsolatedRanges=sye;Oa.scrollMargins=lye;Oa.darkTheme=ase;Oa.cspNonce=Ba.define({combine:t=>t.length?t[0]:""});Oa.contentAttributes=ice;Oa.editorAttributes=aye;Oa.lineWrapping=Oa.contentAttributes.of({class:"cm-lineWrapping"});Oa.announce=cl.define();const N6e=4096,lpe={};class UH{constructor(e,o,f,P,d,l){this.from=e,this.to=o,this.dir=f,this.isolates=P,this.fresh=d,this.order=l}static update(e,o){if(o.empty&&!e.some(d=>d.fresh))return e;let f=[],P=e.length?e[e.length-1].dir:qd.LTR;for(let d=Math.max(0,e.length-10);d=0;P--){let d=f[P],l=typeof d=="function"?d(t):d;l&&Xae(l,o)}return o}const $6e=Ua.mac?"mac":Ua.windows?"win":Ua.linux?"linux":"key";function V6e(t,e){const o=t.split(/-(?!$)/);let f=o[o.length-1];f=="Space"&&(f=" ");let P,d,l,n;for(let c=0;cf.concat(P),[]))),o}function j6e(t,e,o){return Lye(Rye(t.state),e,t,o)}let H4=null;const Q6e=4e3;function H6e(t,e=$6e){let o=Object.create(null),f=Object.create(null),P=(l,n)=>{let c=f[l];if(c==null)f[l]=n;else if(c!=n)throw new Error("Key binding "+l+" is used both as a regular binding and as a multi-stroke prefix")},d=(l,n,c,b,i)=>{var O,w;let y=o[l]||(o[l]=Object.create(null)),p=n.split(/ (?!$)/).map(h=>V6e(h,e));for(let h=1;h{let _=H4={view:v,prefix:m,scope:l};return setTimeout(()=>{H4==_&&(H4=null)},Q6e),!0}]})}let a=p.join(" ");P(a,!1);let u=y[a]||(y[a]={preventDefault:!1,stopPropagation:!1,run:((w=(O=y._any)===null||O===void 0?void 0:O.run)===null||w===void 0?void 0:w.slice())||[]});c&&u.run.push(c),b&&(u.preventDefault=!0),i&&(u.stopPropagation=!0)};for(let l of t){let n=l.scope?l.scope.split(" "):["editor"];if(l.any)for(let b of n){let i=o[b]||(o[b]=Object.create(null));i._any||(i._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let O in i)i[O].run.push(l.any)}let c=l[e]||l.key;if(c)for(let b of n)d(b,c,l.run,l.preventDefault,l.stopPropagation),l.shift&&d(b,"Shift-"+c,l.shift,l.preventDefault,l.stopPropagation)}return o}function Lye(t,e,o,f){let P=mTe(e),d=Jm(P,0),l=Wy(d)==P.length&&P!=" ",n="",c=!1,b=!1,i=!1;H4&&H4.view==o&&H4.scope==f&&(n=H4.prefix+" ",bye.indexOf(e.keyCode)<0&&(b=!0,H4=null));let O=new Set,w=u=>{if(u){for(let h of u.run)if(!O.has(h)&&(O.add(h),h(o,e)))return u.stopPropagation&&(i=!0),!0;u.preventDefault&&(u.stopPropagation&&(i=!0),b=!0)}return!1},y=t[f],p,a;return y&&(w(y[n+IQ(P,e,!l)])?c=!0:l&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Ua.windows&&e.ctrlKey&&e.altKey)&&(p=aS[e.keyCode])&&p!=P?(w(y[n+IQ(p,e,!0)])||e.shiftKey&&(a=PI[e.keyCode])!=P&&a!=p&&w(y[n+IQ(a,e,!1)]))&&(c=!0):l&&e.shiftKey&&w(y[n+IQ(P,e,!0)])&&(c=!0),!c&&w(y._any)&&(c=!0)),b&&(c=!0),c&&i&&e.stopPropagation(),c}class vD{constructor(e,o,f,P,d){this.className=e,this.left=o,this.top=f,this.width=P,this.height=d}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,o){return o.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,o,f){if(f.empty){let P=e.coordsAtPos(f.head,f.assoc||1);if(!P)return[];let d=Iye(e);return[new vD(o,P.left-d.left,P.top-d.top,null,P.bottom-P.top)]}else return Z6e(e,o,f)}}function Iye(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==qd.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function fpe(t,e,o){let f=Yo.cursor(e);return{from:Math.max(o.from,t.moveToLineBoundary(f,!1,!0).from),to:Math.min(o.to,t.moveToLineBoundary(f,!0,!0).from),type:T0.Text}}function Z6e(t,e,o){if(o.to<=t.viewport.from||o.from>=t.viewport.to)return[];let f=Math.max(o.from,t.viewport.from),P=Math.min(o.to,t.viewport.to),d=t.textDirection==qd.LTR,l=t.contentDOM,n=l.getBoundingClientRect(),c=Iye(t),b=l.querySelector(".cm-line"),i=b&&window.getComputedStyle(b),O=n.left+(i?parseInt(i.paddingLeft)+Math.min(0,parseInt(i.textIndent)):0),w=n.right-(i?parseInt(i.paddingRight):0),y=ose(t,f),p=ose(t,P),a=y.type==T0.Text?y:null,u=p.type==T0.Text?p:null;if(a&&(t.lineWrapping||y.widgetLineBreaks)&&(a=fpe(t,f,a)),u&&(t.lineWrapping||p.widgetLineBreaks)&&(u=fpe(t,P,u)),a&&u&&a.from==u.from)return m(v(o.from,o.to,a));{let S=a?v(o.from,null,a):_(y,!1),A=u?v(null,o.to,u):_(p,!0),x=[];return(a||y).to<(u||p).from-(a&&u?1:0)||y.widgetLineBreaks>1&&S.bottom+t.defaultLineHeight/2C&&D.from=I)break;j>k&&E(Math.max(Q,k),S==null&&Q<=C,Math.min(j,I),A==null&&j>=L,$.dir)}if(k=z.to+1,k>=I)break}return T.length==0&&E(C,S==null,L,A==null,t.textDirection),{top:R,bottom:M,horizontal:T}}function _(S,A){let x=n.top+(A?S.top:S.bottom);return{top:x,bottom:x,horizontal:[]}}}function q6e(t,e){return t.constructor==e.constructor&&t.eq(e)}class W6e{constructor(e,o){this.view=e,this.layer=o,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),o.above&&this.dom.classList.add("cm-layer-above"),o.class&&this.dom.classList.add(o.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),o.mount&&o.mount(this.dom,e)}update(e){e.startState.facet(gH)!=e.state.facet(gH)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let o=0,f=e.facet(gH);for(;o!q6e(o,this.drawn[f]))){let o=this.dom.firstChild,f=0;for(let P of e)P.update&&o&&P.constructor&&this.drawn[f].constructor&&P.update(o,this.drawn[f])?(o=o.nextSibling,f++):this.dom.insertBefore(P.draw(),o);for(;o;){let P=o.nextSibling;o.remove(),o=P}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const gH=Ba.define();function Dye(t){return[Wd.define(e=>new W6e(e,t)),gH.of(t)]}const Bye=!Ua.ios,DI=Ba.define({combine(t){return b_(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,o)=>Math.min(e,o),drawRangeCursor:(e,o)=>e||o})}});function Y6e(t={}){return[DI.of(t),X6e,G6e,K6e,iye.of(!0)]}function zye(t){return t.startState.facet(DI)!=t.state.facet(DI)}const X6e=Dye({above:!0,markers(t){let{state:e}=t,o=e.facet(DI),f=[];for(let P of e.selection.ranges){let d=P==e.selection.main;if(P.empty?!d||Bye:o.drawRangeCursor){let l=d?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=P.empty?P:Yo.cursor(P.head,P.head>P.anchor?-1:1);for(let c of vD.forRange(t,l,n))f.push(c)}}return f},update(t,e){t.transactions.some(f=>f.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let o=zye(t);return o&&dpe(t.state,e),t.docChanged||t.selectionSet||o},mount(t,e){dpe(e.state,t)},class:"cm-cursorLayer"});function dpe(t,e){e.style.animationDuration=t.facet(DI).cursorBlinkRate+"ms"}const G6e=Dye({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:vD.forRange(t,"cm-selectionBackground",e)).reduce((e,o)=>e.concat(o))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||zye(t)},class:"cm-selectionLayer"}),cse={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Bye&&(cse[".cm-line"].caretColor="transparent !important",cse[".cm-content"]={caretColor:"transparent !important"});const K6e=Vv.highest(Oa.theme(cse)),Fye=cl.define({map(t,e){return t==null?null:e.mapPos(t)}}),JL=Ap.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((o,f)=>f.is(Fye)?f.value:o,t)}}),J6e=Wd.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let o=t.state.field(JL);o==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(JL)!=o||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(JL),o=e!=null&&t.coordsAtPos(e);if(!o)return null;let f=t.scrollDOM.getBoundingClientRect();return{left:o.left-f.left+t.scrollDOM.scrollLeft*t.scaleX,top:o.top-f.top+t.scrollDOM.scrollTop*t.scaleY,height:o.bottom-o.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:o}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/o+"px",this.cursor.style.height=t.height/o+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(JL)!=t&&this.view.dispatch({effects:Fye.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function eCe(){return[JL,J6e]}function hpe(t,e,o,f,P){e.lastIndex=0;for(let d=t.iterRange(o,f),l=o,n;!d.next().done;l+=d.value.length)if(!d.lineBreak)for(;n=e.exec(d.value);)P(l+n.index,n)}function tCe(t,e){let o=t.visibleRanges;if(o.length==1&&o[0].from==t.viewport.from&&o[0].to==t.viewport.to)return o;let f=[];for(let{from:P,to:d}of o)P=Math.max(t.state.doc.lineAt(P).from,P-e),d=Math.min(t.state.doc.lineAt(d).to,d+e),f.length&&f[f.length-1].to>=P?f[f.length-1].to=d:f.push({from:P,to:d});return f}class nCe{constructor(e){const{regexp:o,decoration:f,decorate:P,boundary:d,maxLength:l=1e3}=e;if(!o.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=o,P)this.addMatch=(n,c,b,i)=>P(i,b,b+n[0].length,n,c);else if(typeof f=="function")this.addMatch=(n,c,b,i)=>{let O=f(n,c,b);O&&i(b,b+n[0].length,O)};else if(f)this.addMatch=(n,c,b,i)=>i(b,b+n[0].length,f);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=d,this.maxLength=l}createDeco(e){let o=new oS,f=o.add.bind(o);for(let{from:P,to:d}of tCe(e,this.maxLength))hpe(e.state.doc,this.regexp,P,d,(l,n)=>this.addMatch(n,e,l,f));return o.finish()}updateDeco(e,o){let f=1e9,P=-1;return e.docChanged&&e.changes.iterChanges((d,l,n,c)=>{c>e.view.viewport.from&&n1e3?this.createDeco(e.view):P>-1?this.updateRange(e.view,o.map(e.changes),f,P):o}updateRange(e,o,f,P){for(let d of e.visibleRanges){let l=Math.max(d.from,f),n=Math.min(d.to,P);if(n>l){let c=e.state.doc.lineAt(l),b=c.toc.from;l--)if(this.boundary.test(c.text[l-1-c.from])){i=l;break}for(;nw.push(h.range(a,u));if(c==b)for(this.regexp.lastIndex=i-c.from;(y=this.regexp.exec(c.text))&&y.indexthis.addMatch(u,e,a,p));o=o.update({filterFrom:i,filterTo:O,filter:(a,u)=>aO,add:w})}}return o}}const use=/x/.unicode!=null?"gu":"g",rCe=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,use),oCe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let vie=null;function iCe(){var t;if(vie==null&&typeof document<"u"&&document.body){let e=document.body.style;vie=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return vie||!1}const vH=Ba.define({combine(t){let e=b_(t,{render:null,specialChars:rCe,addSpecialChars:null});return(e.replaceTabs=!iCe())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,use)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,use)),e}});function aCe(t={}){return[vH.of(t),sCe()]}let ppe=null;function sCe(){return ppe||(ppe=Wd.fromClass(class{constructor(t){this.view=t,this.decorations=es.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(vH)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new nCe({regexp:t.specialChars,decoration:(e,o,f)=>{let{doc:P}=o.state,d=Jm(e[0],0);if(d==9){let l=P.lineAt(f),n=o.state.tabSize,c=xx(l.text,n,f-l.from);return es.replace({widget:new fCe((n-c%n)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[d]||(this.decorationCache[d]=es.replace({widget:new uCe(t,d)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(vH);t.startState.facet(vH)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const lCe="•";function cCe(t){return t>=32?lCe:t==10?"␤":String.fromCharCode(9216+t)}class uCe extends Ox{constructor(e,o){super(),this.options=e,this.code=o}eq(e){return e.code==this.code}toDOM(e){let o=cCe(this.code),f=e.state.phrase("Control character")+" "+(oCe[this.code]||"0x"+this.code.toString(16)),P=this.options.render&&this.options.render(this.code,f,o);if(P)return P;let d=document.createElement("span");return d.textContent=o,d.title=f,d.setAttribute("aria-label",f),d.className="cm-specialChar",d}ignoreEvent(){return!1}}class fCe extends Ox{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function dCe(){return pCe}const hCe=es.line({class:"cm-activeLine"}),pCe=Wd.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,o=[];for(let f of t.state.selection.ranges){let P=t.lineBlockAt(f.head);P.from>e&&(o.push(hCe.range(P.from)),e=P.from)}return es.set(o)}},{decorations:t=>t.decorations});class mCe extends Ox{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let o=e.firstChild?uM(e.firstChild):[];if(!o.length)return null;let f=window.getComputedStyle(e.parentNode),P=WZ(o[0],f.direction!="rtl"),d=parseInt(f.lineHeight);return P.bottom-P.top>d*1.5?{left:P.left,right:P.right,top:P.top,bottom:P.top+d}:P}ignoreEvent(){return!1}}function gCe(t){return Wd.fromClass(class{constructor(e){this.view=e,this.placeholder=t?es.set([es.widget({widget:new mCe(t),side:1}).range(0)]):es.none}get decorations(){return this.view.state.doc.length?es.none:this.placeholder}},{decorations:e=>e.decorations})}const fse=2e3;function vCe(t,e,o){let f=Math.min(e.line,o.line),P=Math.max(e.line,o.line),d=[];if(e.off>fse||o.off>fse||e.col<0||o.col<0){let l=Math.min(e.off,o.off),n=Math.max(e.off,o.off);for(let c=f;c<=P;c++){let b=t.doc.line(c);b.length<=n&&d.push(Yo.range(b.from+l,b.to+n))}}else{let l=Math.min(e.col,o.col),n=Math.max(e.col,o.col);for(let c=f;c<=P;c++){let b=t.doc.line(c),i=jae(b.text,l,t.tabSize,!0);if(i<0)d.push(Yo.cursor(b.to));else{let O=jae(b.text,n,t.tabSize);d.push(Yo.range(b.from+i,b.from+O))}}}return d}function yCe(t,e){let o=t.coordsAtPos(t.viewport.from);return o?Math.round(Math.abs((o.left-e)/t.defaultCharacterWidth)):-1}function mpe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),f=t.state.doc.lineAt(o),P=o-f.from,d=P>fse?-1:P==f.length?yCe(t,e.clientX):xx(f.text,t.state.tabSize,o-f.from);return{line:f.number,col:d,off:P}}function bCe(t,e){let o=mpe(t,e),f=t.state.selection;return o?{update(P){if(P.docChanged){let d=P.changes.mapPos(P.startState.doc.line(o.line).from),l=P.state.doc.lineAt(d);o={line:l.number,col:o.col,off:Math.min(o.off,l.length)},f=f.map(P.changes)}},get(P,d,l){let n=mpe(t,P);if(!n)return f;let c=vCe(t.state,o,n);return c.length?l?Yo.create(c.concat(f.ranges)):Yo.create(c):f}}:null}function xCe(t){let e=(t==null?void 0:t.eventFilter)||(o=>o.altKey&&o.button==0);return Oa.mouseSelectionStyle.of((o,f)=>e(f)?bCe(o,f):null)}const _Ce={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},wCe={style:"cursor: crosshair"};function OCe(t={}){let[e,o]=_Ce[t.key||"Alt"],f=Wd.fromClass(class{constructor(P){this.view=P,this.isDown=!1}set(P){this.isDown!=P&&(this.isDown=P,this.view.update([]))}},{eventObservers:{keydown(P){this.set(P.keyCode==e||o(P))},keyup(P){(P.keyCode==e||!o(P))&&this.set(!1)},mousemove(P){this.set(o(P))}}});return[f,Oa.contentAttributes.of(P=>{var d;return!((d=P.plugin(f))===null||d===void 0)&&d.isDown?wCe:null})]}const BL="-10000px";class Nye{constructor(e,o,f){this.facet=o,this.createTooltipView=f,this.input=e.state.facet(o),this.tooltips=this.input.filter(P=>P),this.tooltipViews=this.tooltips.map(f)}update(e,o){var f;let P=e.state.facet(this.facet),d=P.filter(c=>c);if(P===this.input){for(let c of this.tooltipViews)c.update&&c.update(e);return!1}let l=[],n=o?[]:null;for(let c=0;co[b]=c),o.length=n.length),this.input=P,this.tooltips=d,this.tooltipViews=l,!0}}function SCe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const yie=Ba.define({combine:t=>{var e,o,f;return{position:Ua.ios?"absolute":((e=t.find(P=>P.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((o=t.find(P=>P.parent))===null||o===void 0?void 0:o.parent)||null,tooltipSpace:((f=t.find(P=>P.tooltipSpace))===null||f===void 0?void 0:f.tooltipSpace)||SCe}}}),gpe=new WeakMap,lce=Wd.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(yie);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Nye(t,cce,o=>this.createTooltip(o)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(o=>{Date.now()>this.lastTransaction-50&&o.length>0&&o[o.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let o=e||t.geometryChanged,f=t.state.facet(yie);if(f.position!=this.position&&!this.madeAbsolute){this.position=f.position;for(let P of this.manager.tooltipViews)P.dom.style.position=this.position;o=!0}if(f.parent!=this.parent){this.parent&&this.container.remove(),this.parent=f.parent,this.createContainer();for(let P of this.manager.tooltipViews)this.container.appendChild(P.dom);o=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);o&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let o=document.createElement("div");o.className="cm-tooltip-arrow",e.dom.appendChild(o)}return e.dom.style.position=this.position,e.dom.style.top=BL,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let o of this.manager.tooltipViews)o.dom.remove(),(t=o.destroy)===null||t===void 0||t.call(o);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,o=1,f=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:P}=this.manager.tooltipViews[0];if(Ua.gecko)f=P.offsetParent!=this.container.ownerDocument.body;else if(this.view.scaleX!=1||this.view.scaleY!=1)f=!0;else if(P.style.top==BL&&P.style.left=="0px"){let d=P.getBoundingClientRect();f=Math.abs(d.top+1e4)>1||Math.abs(d.left)>1}}if(f||this.position=="absolute")if(this.parent){let P=this.parent.getBoundingClientRect();P.width&&P.height&&(e=P.width/this.parent.offsetWidth,o=P.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:o}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((P,d)=>{let l=this.manager.tooltipViews[d];return l.getCoords?l.getCoords(P.pos):this.view.coordsAtPos(P.pos)}),size:this.manager.tooltipViews.map(({dom:P})=>P.getBoundingClientRect()),space:this.view.state.facet(yie).tooltipSpace(this.view),scaleX:e,scaleY:o,makeAbsolute:f}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let n of this.manager.tooltipViews)n.dom.style.position="absolute"}let{editor:o,space:f,scaleX:P,scaleY:d}=t,l=[];for(let n=0;n=Math.min(o.bottom,f.bottom)||O.rightMath.min(o.right,f.right)+.1){i.style.top=BL;continue}let y=c.arrow?b.dom.querySelector(".cm-tooltip-arrow"):null,p=y?7:0,a=w.right-w.left,u=(e=gpe.get(b))!==null&&e!==void 0?e:w.bottom-w.top,h=b.offset||TCe,m=this.view.textDirection==qd.LTR,v=w.width>f.right-f.left?m?f.left:f.right-w.width:m?Math.min(O.left-(y?14:0)+h.x,f.right-a):Math.max(f.left,O.left-a+(y?14:0)-h.x),_=this.above[n];!c.strictSide&&(_?O.top-(w.bottom-w.top)-h.yf.bottom)&&_==f.bottom-O.bottom>O.top-f.top&&(_=this.above[n]=!_);let S=(_?O.top-f.top:f.bottom-O.bottom)-p;if(Sv&&R.topA&&(A=_?R.top-u-2-p:R.bottom+p+2);if(this.position=="absolute"?(i.style.top=(A-t.parent.top)/d+"px",i.style.left=(v-t.parent.left)/P+"px"):(i.style.top=A/d+"px",i.style.left=v/P+"px"),y){let R=O.left+(m?h.x:-h.x)-(v+14-7);y.style.left=R/P+"px"}b.overlap!==!0&&l.push({left:v,top:A,right:x,bottom:A+u}),i.classList.toggle("cm-tooltip-above",_),i.classList.toggle("cm-tooltip-below",!_),b.positioned&&b.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=BL}},{eventObservers:{scroll(){this.maybeMeasure()}}}),kCe=Oa.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),TCe={x:0,y:0},cce=Ba.define({enables:[lce,kCe]}),jH=Ba.define();class GZ{static create(e){return new GZ(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Nye(e,jH,o=>this.createHostedView(o))}createHostedView(e){let o=e.create(this.view);return o.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(o.dom),this.mounted&&o.mount&&o.mount(this.view),o}mount(e){for(let o of this.manager.tooltipViews)o.mount&&o.mount(e);this.mounted=!0}positioned(e){for(let o of this.manager.tooltipViews)o.positioned&&o.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let o of this.manager.tooltipViews)(e=o.destroy)===null||e===void 0||e.call(o)}passProp(e){let o;for(let f of this.manager.tooltipViews){let P=f[e];if(P!==void 0){if(o===void 0)o=P;else if(o!==P)return}}return o}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const CCe=cce.compute([jH],t=>{let e=t.facet(jH).filter(o=>o);return e.length===0?null:{pos:Math.min(...e.map(o=>o.pos)),end:Math.max(...e.map(o=>{var f;return(f=o.end)!==null&&f!==void 0?f:o.pos})),create:GZ.create,above:e[0].above,arrow:e.some(o=>o.arrow)}});class ACe{constructor(e,o,f,P,d){this.view=e,this.source=o,this.field=f,this.setHover=P,this.hoverTime=d,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||o.xn.right+e.defaultCharacterWidth)return;let c=e.bidiSpans(e.state.doc.lineAt(P)).find(i=>i.from<=P&&i.to>=P),b=c&&c.dir==qd.RTL?-1:1;d=o.x{this.pending==n&&(this.pending=null,c&&e.dispatch({effects:this.setHover.of(c)}))},c=>tb(e.state,c,"hover tooltip"))}else l&&e.dispatch({effects:this.setHover.of(l)})}get tooltip(){let e=this.view.plugin(lce),o=e?e.manager.tooltips.findIndex(f=>f.create==GZ.create):-1;return o>-1?e.manager.tooltipViews[o]:null}mousemove(e){var o;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:f,tooltip:P}=this;if(f&&P&&!MCe(P.dom,e)||this.pending){let{pos:d}=f||this.pending,l=(o=f==null?void 0:f.end)!==null&&o!==void 0?o:d;(d==l?this.view.posAtCoords(this.lastMove)!=d:!ECe(this.view,d,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:o}=this;if(o){let{tooltip:f}=this;f&&f.dom.contains(e.relatedTarget)?this.watchTooltipLeave(f.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let o=f=>{e.removeEventListener("mouseleave",o),this.active&&!this.view.dom.contains(f.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",o)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const DQ=4;function MCe(t,e){let o=t.getBoundingClientRect();return e.clientX>=o.left-DQ&&e.clientX<=o.right+DQ&&e.clientY>=o.top-DQ&&e.clientY<=o.bottom+DQ}function ECe(t,e,o,f,P,d){let l=t.scrollDOM.getBoundingClientRect(),n=t.documentTop+t.documentPadding.top+t.contentHeight;if(l.left>f||l.rightP||Math.min(l.bottom,n)=e&&c<=o}function PCe(t,e={}){let o=cl.define(),f=Ap.define({create(){return null},update(P,d){if(P&&(e.hideOnChange&&(d.docChanged||d.selection)||e.hideOn&&e.hideOn(d,P)))return null;if(P&&d.docChanged){let l=d.changes.mapPos(P.pos,-1,tg.TrackDel);if(l==null)return null;let n=Object.assign(Object.create(null),P);n.pos=l,P.end!=null&&(n.end=d.changes.mapPos(P.end)),P=n}for(let l of d.effects)l.is(o)&&(P=l.value),l.is(RCe)&&(P=null);return P},provide:P=>jH.from(P)});return[f,Wd.define(P=>new ACe(P,t,f,o,e.hoverTime||300)),CCe]}function $ye(t,e){let o=t.plugin(lce);if(!o)return null;let f=o.manager.tooltips.indexOf(e);return f<0?null:o.manager.tooltipViews[f]}const RCe=cl.define(),vpe=Ba.define({combine(t){let e,o;for(let f of t)e=e||f.topContainer,o=o||f.bottomContainer;return{topContainer:e,bottomContainer:o}}});function BI(t,e){let o=t.plugin(Vye),f=o?o.specs.indexOf(e):-1;return f>-1?o.panels[f]:null}const Vye=Wd.fromClass(class{constructor(t){this.input=t.state.facet(zI),this.specs=this.input.filter(o=>o),this.panels=this.specs.map(o=>o(t));let e=t.state.facet(vpe);this.top=new BQ(t,!0,e.topContainer),this.bottom=new BQ(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(o=>o.top)),this.bottom.sync(this.panels.filter(o=>!o.top));for(let o of this.panels)o.dom.classList.add("cm-panel"),o.mount&&o.mount()}update(t){let e=t.state.facet(vpe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new BQ(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new BQ(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let o=t.state.facet(zI);if(o!=this.input){let f=o.filter(c=>c),P=[],d=[],l=[],n=[];for(let c of f){let b=this.specs.indexOf(c),i;b<0?(i=c(t.view),n.push(i)):(i=this.panels[b],i.update&&i.update(t)),P.push(i),(i.top?d:l).push(i)}this.specs=f,this.panels=P,this.top.sync(d),this.bottom.sync(l);for(let c of n)c.dom.classList.add("cm-panel"),c.mount&&c.mount()}else for(let f of this.panels)f.update&&f.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Oa.scrollMargins.of(e=>{let o=e.plugin(t);return o&&{top:o.top.scrollMargin(),bottom:o.bottom.scrollMargin()}})});class BQ{constructor(e,o,f){this.view=e,this.top=o,this.container=f,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let o of this.panels)o.destroy&&e.indexOf(o)<0&&o.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let o=this.container||this.view.dom;o.insertBefore(this.dom,this.top?o.firstChild:null)}let e=this.dom.firstChild;for(let o of this.panels)if(o.dom.parentNode==this.dom){for(;e!=o.dom;)e=ype(e);e=e.nextSibling}else this.dom.insertBefore(o.dom,e);for(;e;)e=ype(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function ype(t){let e=t.nextSibling;return t.remove(),e}const zI=Ba.define({enables:Vye});class EO extends pT{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}EO.prototype.elementClass="";EO.prototype.toDOM=void 0;EO.prototype.mapMode=tg.TrackBefore;EO.prototype.startSide=EO.prototype.endSide=-1;EO.prototype.point=!0;const yH=Ba.define(),LCe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Vu.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},fI=Ba.define();function ICe(t){return[Uye(),fI.of(Object.assign(Object.assign({},LCe),t))]}const dse=Ba.define({combine:t=>t.some(e=>e)});function Uye(t){let e=[DCe];return t&&t.fixed===!1&&e.push(dse.of(!0)),e}const DCe=Wd.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(fI).map(e=>new xpe(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(dse),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,o=t.view.viewport,f=Math.min(e.to,o.to)-Math.max(e.from,o.from);this.syncGutters(f<(o.to-o.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(dse)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let o=Vu.iter(this.view.state.facet(yH),this.view.viewport.from),f=[],P=this.gutters.map(d=>new BCe(d,this.view.viewport,-this.view.documentPadding.top));for(let d of this.view.viewportLineBlocks)if(f.length&&(f=[]),Array.isArray(d.type)){let l=!0;for(let n of d.type)if(n.type==T0.Text&&l){hse(o,f,n.from);for(let c of P)c.line(this.view,n,f);l=!1}else if(n.widget)for(let c of P)c.widget(this.view,n)}else if(d.type==T0.Text){hse(o,f,d.from);for(let l of P)l.line(this.view,d,f)}else if(d.widget)for(let l of P)l.widget(this.view,d);for(let d of P)d.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(fI),o=t.state.facet(fI),f=t.docChanged||t.heightChanged||t.viewportChanged||!Vu.eq(t.startState.facet(yH),t.state.facet(yH),t.view.viewport.from,t.view.viewport.to);if(e==o)for(let P of this.gutters)P.update(t)&&(f=!0);else{f=!0;let P=[];for(let d of o){let l=e.indexOf(d);l<0?P.push(new xpe(this.view,d)):(this.gutters[l].update(t),P.push(this.gutters[l]))}for(let d of this.gutters)d.dom.remove(),P.indexOf(d)<0&&d.destroy();for(let d of P)this.dom.appendChild(d.dom);this.gutters=P}return f}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Oa.scrollMargins.of(e=>{let o=e.plugin(t);return!o||o.gutters.length==0||!o.fixed?null:e.textDirection==qd.LTR?{left:o.dom.offsetWidth*e.scaleX}:{right:o.dom.offsetWidth*e.scaleX}})});function bpe(t){return Array.isArray(t)?t:[t]}function hse(t,e,o){for(;t.value&&t.from<=o;)t.from==o&&e.push(t.value),t.next()}class BCe{constructor(e,o,f){this.gutter=e,this.height=f,this.i=0,this.cursor=Vu.iter(e.markers,o.from)}addElement(e,o,f){let{gutter:P}=this,d=(o.top-this.height)/e.scaleY,l=o.height/e.scaleY;if(this.i==P.elements.length){let n=new jye(e,l,d,f);P.elements.push(n),P.dom.appendChild(n.dom)}else P.elements[this.i].update(e,l,d,f);this.height=o.bottom,this.i++}line(e,o,f){let P=[];hse(this.cursor,P,o.from),f.length&&(P=P.concat(f));let d=this.gutter.config.lineMarker(e,o,P);d&&P.unshift(d);let l=this.gutter;P.length==0&&!l.config.renderEmptyElements||this.addElement(e,o,P)}widget(e,o){let f=this.gutter.config.widgetMarker(e,o.widget,o);f&&this.addElement(e,o,[f])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let o=e.elements.pop();e.dom.removeChild(o.dom),o.destroy()}}}class xpe{constructor(e,o){this.view=e,this.config=o,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let f in o.domEventHandlers)this.dom.addEventListener(f,P=>{let d=P.target,l;if(d!=this.dom&&this.dom.contains(d)){for(;d.parentNode!=this.dom;)d=d.parentNode;let c=d.getBoundingClientRect();l=(c.top+c.bottom)/2}else l=P.clientY;let n=e.lineBlockAtHeight(l-e.documentTop);o.domEventHandlers[f](e,n,P)&&P.preventDefault()});this.markers=bpe(o.markers(e)),o.initialSpacer&&(this.spacer=new jye(e,0,0,[o.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let o=this.markers;if(this.markers=bpe(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let P=this.config.updateSpacer(this.spacer.markers[0],e);P!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[P])}let f=e.view.viewport;return!Vu.eq(this.markers,o,f.from,f.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class jye{constructor(e,o,f,P){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,o,f,P)}update(e,o,f,P){this.height!=o&&(this.height=o,this.dom.style.height=o+"px"),this.above!=f&&(this.dom.style.marginTop=(this.above=f)?f+"px":""),zCe(this.markers,P)||this.setMarkers(e,P)}setMarkers(e,o){let f="cm-gutterElement",P=this.dom.firstChild;for(let d=0,l=0;;){let n=l,c=dd(n,c,b)||l(n,c,b):l}return f}})}});class bie extends EO{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function xie(t,e){return t.state.facet(UA).formatNumber(e,t.state)}const NCe=fI.compute([UA],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(FCe)},lineMarker(e,o,f){return f.some(P=>P.toDOM)?null:new bie(xie(e,e.state.doc.lineAt(o.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(UA)!=e.state.facet(UA),initialSpacer(e){return new bie(xie(e,_pe(e.state.doc.lines)))},updateSpacer(e,o){let f=xie(o.view,_pe(o.view.state.doc.lines));return f==e.number?e:new bie(f)},domEventHandlers:t.facet(UA).domEventHandlers}));function $Ce(t={}){return[UA.of(t),Uye(),NCe]}function _pe(t){let e=9;for(;e{let e=[],o=-1;for(let f of t.selection.ranges){let P=t.doc.lineAt(f.head).from;P>o&&(o=P,e.push(VCe.range(P)))}return Vu.of(e)});function jCe(){return UCe}const Qye=1024;let QCe=0,Xy=class{constructor(e,o){this.from=e,this.to=o}};class fl{constructor(e={}){this.id=QCe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Cp.match(e)),o=>{let f=e(o);return f===void 0?null:[this,f]}}}fl.closedBy=new fl({deserialize:t=>t.split(" ")});fl.openedBy=new fl({deserialize:t=>t.split(" ")});fl.group=new fl({deserialize:t=>t.split(" ")});fl.contextHash=new fl({perNode:!0});fl.lookAhead=new fl({perNode:!0});fl.mounted=new fl({perNode:!0});class FI{constructor(e,o,f){this.tree=e,this.overlay=o,this.parser=f}static get(e){return e&&e.props&&e.props[fl.mounted.id]}}const HCe=Object.create(null);class Cp{constructor(e,o,f,P=0){this.name=e,this.props=o,this.id=f,this.flags=P}static define(e){let o=e.props&&e.props.length?Object.create(null):HCe,f=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),P=new Cp(e.name||"",o,e.id,f);if(e.props){for(let d of e.props)if(Array.isArray(d)||(d=d(P)),d){if(d[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");o[d[0].id]=d[1]}}return P}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let o=this.prop(fl.group);return o?o.indexOf(e)>-1:!1}return this.id==e}static match(e){let o=Object.create(null);for(let f in e)for(let P of f.split(" "))o[P]=e[f];return f=>{for(let P=f.prop(fl.group),d=-1;d<(P?P.length:0);d++){let l=o[d<0?f.name:P[d]];if(l)return l}}}}Cp.none=new Cp("",Object.create(null),0,8);class yD{constructor(e){this.types=e;for(let o=0;o0;for(let c=this.cursor(l|mf.IncludeAnonymous);;){let b=!1;if(c.from<=d&&c.to>=P&&(!n&&c.type.isAnonymous||o(c)!==!1)){if(c.firstChild())continue;b=!0}for(;b&&f&&(n||!c.type.isAnonymous)&&f(c),!c.nextSibling();){if(!c.parent())return;b=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let o in this.props)e.push([+o,this.props[o]]);return e}balance(e={}){return this.children.length<=8?this:dce(Cp.none,this.children,this.positions,0,this.children.length,0,this.length,(o,f,P)=>new ku(this.type,o,f,P,this.propValues),e.makeTree||((o,f,P)=>new ku(Cp.none,o,f,P)))}static build(e){return YCe(e)}}ku.empty=new ku(Cp.none,[],[],0);class uce{constructor(e,o){this.buffer=e,this.index=o}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new uce(this.buffer,this.index)}}class lS{constructor(e,o,f){this.buffer=e,this.length=o,this.set=f}get type(){return Cp.none}toString(){let e=[];for(let o=0;o0));c=l[c+3]);return n}slice(e,o,f){let P=this.buffer,d=new Uint16Array(o-e),l=0;for(let n=e,c=0;n=e&&oe;case 1:return o<=e&&f>e;case 2:return f>e;case 4:return!0}}function NI(t,e,o,f){for(var P;t.from==t.to||(o<1?t.from>=e:t.from>e)||(o>-1?t.to<=e:t.to0?n.length:-1;e!=b;e+=o){let i=n[e],O=c[e]+l.from;if(Hye(P,f,O,O+i.length)){if(i instanceof lS){if(d&mf.ExcludeBuffers)continue;let w=i.findChild(0,i.buffer.length,o,f-O,P);if(w>-1)return new i_(new ZCe(l,i,e,O),null,w)}else if(d&mf.IncludeAnonymous||!i.type.isAnonymous||fce(i)){let w;if(!(d&mf.IgnoreMounts)&&(w=FI.get(i))&&!w.overlay)return new Qg(w.tree,O,e,l);let y=new Qg(i,O,e,l);return d&mf.IncludeAnonymous||!y.type.isAnonymous?y:y.nextChild(o<0?i.children.length-1:0,o,f,P)}}}if(d&mf.IncludeAnonymous||!l.type.isAnonymous||(l.index>=0?e=l.index+o:e=o<0?-1:l._parent._tree.children.length,l=l._parent,!l))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,o,f=0){let P;if(!(f&mf.IgnoreOverlays)&&(P=FI.get(this._tree))&&P.overlay){let d=e-this.from;for(let{from:l,to:n}of P.overlay)if((o>0?l<=d:l=d:n>d))return new Qg(P.tree,P.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,o,f)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Ope(t,e,o,f){let P=t.cursor(),d=[];if(!P.firstChild())return d;if(o!=null){for(;!P.type.is(o);)if(!P.nextSibling())return d}for(;;){if(f!=null&&P.type.is(f))return d;if(P.type.is(e)&&d.push(P.node),!P.nextSibling())return f==null?d:[]}}function pse(t,e,o=e.length-1){for(let f=t.parent;o>=0;f=f.parent){if(!f)return!1;if(!f.type.isAnonymous){if(e[o]&&e[o]!=f.name)return!1;o--}}return!0}class ZCe{constructor(e,o,f,P){this.parent=e,this.buffer=o,this.index=f,this.start=P}}class i_ extends Zye{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,o,f){super(),this.context=e,this._parent=o,this.index=f,this.type=e.buffer.set.types[e.buffer.buffer[f]]}child(e,o,f){let{buffer:P}=this.context,d=P.findChild(this.index+4,P.buffer[this.index+3],e,o-this.context.start,f);return d<0?null:new i_(this.context,this,d)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,o,f=0){if(f&mf.ExcludeBuffers)return null;let{buffer:P}=this.context,d=P.findChild(this.index+4,P.buffer[this.index+3],o>0?1:-1,e-this.context.start,o);return d<0?null:new i_(this.context,this,d)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,o=e.buffer[this.index+3];return o<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new i_(this.context,this._parent,o):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,o=this._parent?this._parent.index+4:0;return this.index==o?this.externalSibling(-1):new i_(this.context,this._parent,e.findChild(o,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],o=[],{buffer:f}=this.context,P=this.index+4,d=f.buffer[this.index+3];if(d>P){let l=f.buffer[this.index+1];e.push(f.slice(P,d,l)),o.push(0)}return new ku(this.type,e,o,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function qye(t){if(!t.length)return null;let e=0,o=t[0];for(let d=1;do.from||l.to=e){let n=new Qg(l.tree,l.overlay[0].from+d.from,-1,d);(P||(P=[f])).push(NI(n,e,o,!1))}}return P?qye(P):f}class QH{get name(){return this.type.name}constructor(e,o=0){if(this.mode=o,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Qg)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let f=e._parent;f;f=f._parent)this.stack.unshift(f.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,o){this.index=e;let{start:f,buffer:P}=this.buffer;return this.type=o||P.set.types[P.buffer[e]],this.from=f+P.buffer[e+1],this.to=f+P.buffer[e+2],!0}yield(e){return e?e instanceof Qg?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,o,f){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,o,f,this.mode));let{buffer:P}=this.buffer,d=P.findChild(this.index+4,P.buffer[this.index+3],e,o-this.buffer.start,f);return d<0?!1:(this.stack.push(this.index),this.yieldBuf(d))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,o,f=this.mode){return this.buffer?f&mf.ExcludeBuffers?!1:this.enterChild(1,e,o):this.yield(this._tree.enter(e,o,f))}parent(){if(!this.buffer)return this.yieldNode(this.mode&mf.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&mf.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:o}=this.buffer,f=this.stack.length-1;if(e<0){let P=f<0?0:this.stack[f]+4;if(this.index!=P)return this.yieldBuf(o.findChild(P,this.index,-1,0,4))}else{let P=o.buffer[this.index+3];if(P<(f<0?o.buffer.length:o.buffer[this.stack[f]+3]))return this.yieldBuf(P)}return f<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let o,f,{buffer:P}=this;if(P){if(e>0){if(this.index-1)for(let d=o+e,l=e<0?-1:f._tree.children.length;d!=l;d+=e){let n=f._tree.children[d];if(this.mode&mf.IncludeAnonymous||n instanceof lS||!n.type.isAnonymous||fce(n))return!1}return!0}move(e,o){if(o&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,o=0){for(;(this.from==this.to||(o<1?this.from>=e:this.from>e)||(o>-1?this.to<=e:this.to=0;){for(let l=e;l;l=l._parent)if(l.index==P){if(P==this.index)return l;o=l,f=d+1;break e}P=this.stack[--d]}for(let P=f;P=0;d--){if(d<0)return pse(this.node,e,P);let l=f[o.buffer[this.stack[d]]];if(!l.isAnonymous){if(e[P]&&e[P]!=l.name)return!1;P--}}return!0}}function fce(t){return t.children.some(e=>e instanceof lS||!e.type.isAnonymous||fce(e))}function YCe(t){var e;let{buffer:o,nodeSet:f,maxBufferLength:P=Qye,reused:d=[],minRepeatType:l=f.types.length}=t,n=Array.isArray(o)?new uce(o,o.length):o,c=f.types,b=0,i=0;function O(S,A,x,R,M,T){let{id:E,start:C,end:L,size:D}=n,k=i;for(;D<0;)if(n.next(),D==-1){let j=d[E];x.push(j),R.push(C-S);return}else if(D==-3){b=E;return}else if(D==-4){i=E;return}else throw new RangeError(`Unrecognized record size: ${D}`);let I=c[E],z,$,Q=C-S;if(L-C<=P&&($=u(n.pos-A,M))){let j=new Uint16Array($.size-$.skip),U=n.pos-$.size,X=j.length;for(;n.pos>U;)X=h($.start,j,X);z=new lS(j,L-$.start,f),Q=$.start-S}else{let j=n.pos-D;n.next();let U=[],X=[],te=E>=l?E:-1,W=0,K=L;for(;n.pos>j;)te>=0&&n.id==te&&n.size>=0?(n.end<=K-P&&(p(U,X,C,W,n.end,K,te,k),W=U.length,K=n.end),n.next()):T>2500?w(C,j,U,X):O(C,j,U,X,te,T+1);if(te>=0&&W>0&&W-1&&W>0){let oe=y(I);z=dce(I,U,X,0,U.length,0,L-C,oe,oe)}else z=a(I,U,X,L-C,k-L)}x.push(z),R.push(Q)}function w(S,A,x,R){let M=[],T=0,E=-1;for(;n.pos>A;){let{id:C,start:L,end:D,size:k}=n;if(k>4)n.next();else{if(E>-1&&L=0;D-=3)C[k++]=M[D],C[k++]=M[D+1]-L,C[k++]=M[D+2]-L,C[k++]=k;x.push(new lS(C,M[2]-L,f)),R.push(L-S)}}function y(S){return(A,x,R)=>{let M=0,T=A.length-1,E,C;if(T>=0&&(E=A[T])instanceof ku){if(!T&&E.type==S&&E.length==R)return E;(C=E.prop(fl.lookAhead))&&(M=x[T]+E.length+C)}return a(S,A,x,R,M)}}function p(S,A,x,R,M,T,E,C){let L=[],D=[];for(;S.length>R;)L.push(S.pop()),D.push(A.pop()+x-M);S.push(a(f.types[E],L,D,T-M,C-T)),A.push(M-x)}function a(S,A,x,R,M=0,T){if(b){let E=[fl.contextHash,b];T=T?[E].concat(T):[E]}if(M>25){let E=[fl.lookAhead,M];T=T?[E].concat(T):[E]}return new ku(S,A,x,R,T)}function u(S,A){let x=n.fork(),R=0,M=0,T=0,E=x.end-P,C={size:0,start:0,skip:0};e:for(let L=x.pos-S;x.pos>L;){let D=x.size;if(x.id==A&&D>=0){C.size=R,C.start=M,C.skip=T,T+=4,R+=4,x.next();continue}let k=x.pos-D;if(D<0||k=l?4:0,z=x.start;for(x.next();x.pos>k;){if(x.size<0)if(x.size==-3)I+=4;else break e;else x.id>=l&&(I+=4);x.next()}M=z,R+=D,T+=I}return(A<0||R==S)&&(C.size=R,C.start=M,C.skip=T),C.size>4?C:void 0}function h(S,A,x){let{id:R,start:M,end:T,size:E}=n;if(n.next(),E>=0&&R4){let L=n.pos-(E-4);for(;n.pos>L;)x=h(S,A,x)}A[--x]=C,A[--x]=T-S,A[--x]=M-S,A[--x]=R}else E==-3?b=R:E==-4&&(i=R);return x}let m=[],v=[];for(;n.pos>0;)O(t.start||0,t.bufferStart||0,m,v,-1,0);let _=(e=t.length)!==null&&e!==void 0?e:m.length?v[0]+m[0].length:0;return new ku(c[t.topID],m.reverse(),v.reverse(),_)}const Spe=new WeakMap;function bH(t,e){if(!t.isAnonymous||e instanceof lS||e.type!=t)return 1;let o=Spe.get(e);if(o==null){o=1;for(let f of e.children){if(f.type!=t||!(f instanceof ku)){o=1;break}o+=bH(t,f)}Spe.set(e,o)}return o}function dce(t,e,o,f,P,d,l,n,c){let b=0;for(let p=f;p=i)break;A+=x}if(v==_+1){if(A>i){let x=p[_];y(x.children,x.positions,0,x.children.length,a[_]+m);continue}O.push(p[_])}else{let x=a[v-1]+p[v-1].length-S;O.push(dce(t,p,a,_,v,S,x,null,c))}w.push(S+m-d)}}return y(e,o,f,P,0),(n||c)(O,w,l)}class hce{constructor(){this.map=new WeakMap}setBuffer(e,o,f){let P=this.map.get(e);P||this.map.set(e,P=new Map),P.set(o,f)}getBuffer(e,o){let f=this.map.get(e);return f&&f.get(o)}set(e,o){e instanceof i_?this.setBuffer(e.context.buffer,e.index,o):e instanceof Qg&&this.map.set(e.tree,o)}get(e){return e instanceof i_?this.getBuffer(e.context.buffer,e.index):e instanceof Qg?this.map.get(e.tree):void 0}cursorSet(e,o){e.buffer?this.setBuffer(e.buffer.buffer,e.index,o):this.map.set(e.tree,o)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class SO{constructor(e,o,f,P,d=!1,l=!1){this.from=e,this.to=o,this.tree=f,this.offset=P,this.open=(d?1:0)|(l?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,o=[],f=!1){let P=[new SO(0,e.length,e,0,!1,f)];for(let d of o)d.to>e.length&&P.push(d);return P}static applyChanges(e,o,f=128){if(!o.length)return e;let P=[],d=1,l=e.length?e[0]:null;for(let n=0,c=0,b=0;;n++){let i=n=f)for(;l&&l.from=w.from||O<=w.to||b){let y=Math.max(w.from,c)-b,p=Math.min(w.to,O)-b;w=y>=p?null:new SO(y,p,w.tree,w.offset+b,n>0,!!i)}if(w&&P.push(w),l.to>O)break;l=dnew Xy(P.from,P.to)):[new Xy(0,0)]:[new Xy(0,e.length)],this.createParse(e,o||[],f)}parse(e,o,f){let P=this.startParse(e,o,f);for(;;){let d=P.advance();if(d)return d}}}class XCe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,o){return this.string.slice(e,o)}}function Wye(t){return(e,o,f,P)=>new KCe(e,t,o,f,P)}class kpe{constructor(e,o,f,P,d){this.parser=e,this.parse=o,this.overlay=f,this.target=P,this.from=d}}function Tpe(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class GCe{constructor(e,o,f,P,d,l,n){this.parser=e,this.predicate=o,this.mounts=f,this.index=P,this.start=d,this.target=l,this.prev=n,this.depth=0,this.ranges=[]}}const mse=new fl({perNode:!0});class KCe{constructor(e,o,f,P,d){this.nest=o,this.input=f,this.fragments=P,this.ranges=d,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let f=this.baseParse.advance();if(!f)return null;if(this.baseParse=null,this.baseTree=f,this.startInner(),this.stoppedAt!=null)for(let P of this.inner)P.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let f=this.baseTree;return this.stoppedAt!=null&&(f=new ku(f.type,f.children,f.positions,f.length,f.propValues.concat([[mse,this.stoppedAt]]))),f}let e=this.inner[this.innerDone],o=e.parse.advance();if(o){this.innerDone++;let f=Object.assign(Object.create(null),e.target.props);f[fl.mounted.id]=new FI(o,e.overlay,e.parser),e.target.props=f}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let o=this.innerDone;o=this.stoppedAt)n=!1;else if(e.hasNode(P)){if(o){let b=o.mounts.find(i=>i.frag.from<=P.from&&i.frag.to>=P.to&&i.mount.overlay);if(b)for(let i of b.mount.overlay){let O=i.from+b.pos,w=i.to+b.pos;O>=P.from&&w<=P.to&&!o.ranges.some(y=>y.fromO)&&o.ranges.push({from:O,to:w})}}n=!1}else if(f&&(l=JCe(f.ranges,P.from,P.to)))n=l!=2;else if(!P.type.isAnonymous&&(d=this.nest(P,this.input))&&(P.fromnew Xy(O.from-P.from,O.to-P.from)):null,P.tree,i.length?i[0].from:P.from)),d.overlay?i.length&&(f={ranges:i,depth:0,prev:f}):n=!1}}else o&&(c=o.predicate(P))&&(c===!0&&(c=new Xy(P.from,P.to)),c.fromnew Xy(i.from-o.start,i.to-o.start)),o.target,b[0].from))),o=o.prev}f&&!--f.depth&&(f=f.prev)}}}}function JCe(t,e,o){for(let f of t){if(f.from>=o)break;if(f.to>e)return f.from<=e&&f.to>=o?2:1}return 0}function Cpe(t,e,o,f,P,d){if(e=e.to);f++);let l=P.children[f],n=l.buffer,c=[f];function b(i,O,w,y,p,a){let u=o[a],h=[],m=[];Cpe(l,i,u,h,m,y);let v=n[u+1],_=n[u+2];c.push(h.length);let S=a?b(u+4,n[u+3],l.set.types[n[u]],v,_-v,a-1):e.toTree();return h.push(S),m.push(v-y),Cpe(l,n[u+3],O,h,m,y),new ku(w,h,m,p)}P.children[f]=b(0,n.length,Cp.none,0,l.length,o.length-1);for(let i of c){let O=t.tree.children[i],w=t.tree.positions[i];t.yield(new Qg(O,w+t.from,i,t._tree))}}class Ape{constructor(e,o){this.offset=o,this.done=!1,this.cursor=e.cursor(mf.IncludeAnonymous|mf.IgnoreMounts)}moveTo(e){let{cursor:o}=this,f=e-this.offset;for(;!this.done&&o.from=e&&o.enter(f,1,mf.IgnoreOverlays|mf.ExcludeBuffers)||o.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let o=this.cursor.tree;;){if(o==e.tree)return!0;if(o.children.length&&o.positions[0]==0&&o.children[0]instanceof ku)o=o.children[0];else break}return!1}}let t8e=class{constructor(e){var o;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let f=this.curFrag=e[0];this.curTo=(o=f.tree.prop(mse))!==null&&o!==void 0?o:f.to,this.inner=new Ape(f.tree,-f.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let o=this.curFrag=this.fragments[this.fragI];this.curTo=(e=o.tree.prop(mse))!==null&&e!==void 0?e:o.to,this.inner=new Ape(o.tree,-o.offset)}}findMounts(e,o){var f;let P=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let d=this.inner.cursor.node;d;d=d.parent){let l=(f=d.tree)===null||f===void 0?void 0:f.prop(fl.mounted);if(l&&l.parser==o)for(let n=this.fragI;n=d.to)break;c.tree==this.curFrag.tree&&P.push({frag:c,pos:d.from-c.offset,mount:l})}}}return P}};function Mpe(t,e){let o=null,f=e;for(let P=1,d=0;P=n)break;c.to<=l||(o||(f=o=e.slice()),c.fromn&&o.splice(d+1,0,new Xy(n,c.to))):c.to>n?o[d--]=new Xy(n,c.to):o.splice(d--,1))}}return f}function n8e(t,e,o,f){let P=0,d=0,l=!1,n=!1,c=-1e9,b=[];for(;;){let i=P==t.length?1e9:l?t[P].to:t[P].from,O=d==e.length?1e9:n?e[d].to:e[d].from;if(l!=n){let w=Math.max(c,o),y=Math.min(i,O,f);wnew Xy(w.from+f,w.to+f)),O=n8e(e,i,c,b);for(let w=0,y=c;;w++){let p=w==O.length,a=p?b:O[w].from;if(a>y&&o.push(new SO(y,a,P.tree,-l,d.from>=y||d.openStart,d.to<=a||d.openEnd)),p)break;y=O[w].to}}else o.push(new SO(c,b,P.tree,-l,d.from>=l||d.openStart,d.to<=n||d.openEnd))}return o}let r8e=0;class mx{constructor(e,o,f){this.set=e,this.base=o,this.modified=f,this.id=r8e++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let o=new mx([],null,[]);if(o.set.push(o),e)for(let f of e.set)o.set.push(f);return o}static defineModifier(){let e=new HH;return o=>o.modified.indexOf(e)>-1?o:HH.get(o.base||o,o.modified.concat(e).sort((f,P)=>f.id-P.id))}}let o8e=0;class HH{constructor(){this.instances=[],this.id=o8e++}static get(e,o){if(!o.length)return e;let f=o[0].instances.find(n=>n.base==e&&i8e(o,n.modified));if(f)return f;let P=[],d=new mx(P,e,o);for(let n of o)n.instances.push(d);let l=a8e(o);for(let n of e.set)if(!n.modified.length)for(let c of l)P.push(HH.get(n,c));return d}}function i8e(t,e){return t.length==e.length&&t.every((o,f)=>o==e[f])}function a8e(t){let e=[[]];for(let o=0;of.length-o.length)}function gS(t){let e=Object.create(null);for(let o in t){let f=t[o];Array.isArray(f)||(f=[f]);for(let P of o.split(" "))if(P){let d=[],l=2,n=P;for(let O=0;;){if(n=="..."&&O>0&&O+3==P.length){l=1;break}let w=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(n);if(!w)throw new RangeError("Invalid path: "+P);if(d.push(w[0]=="*"?"":w[0][0]=='"'?JSON.parse(w[0]):w[0]),O+=w[0].length,O==P.length)break;let y=P[O++];if(O==P.length&&y=="!"){l=0;break}if(y!="/")throw new RangeError("Invalid path: "+P);n=P.slice(O)}let c=d.length-1,b=d[c];if(!b)throw new RangeError("Invalid path: "+P);let i=new ZH(f,l,c>0?d.slice(0,c):null);e[b]=i.sort(e[b])}}return Yye.add(e)}const Yye=new fl;class ZH{constructor(e,o,f,P){this.tags=e,this.mode=o,this.context=f,this.next=P}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let l=P;for(let n of d)for(let c of n.set){let b=o[c.id];if(b){l=l?l+" "+b:b;break}}return l},scope:f}}function s8e(t,e){let o=null;for(let f of t){let P=f.style(e);P&&(o=o?o+" "+P:P)}return o}function l8e(t,e,o,f=0,P=t.length){let d=new c8e(f,Array.isArray(e)?e:[e],o);d.highlightRange(t.cursor(),f,P,"",d.highlighters),d.flush(P)}class c8e{constructor(e,o,f){this.at=e,this.highlighters=o,this.span=f,this.class=""}startSpan(e,o){o!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=o)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,o,f,P,d){let{type:l,from:n,to:c}=e;if(n>=f||c<=o)return;l.isTop&&(d=this.highlighters.filter(y=>!y.scope||y.scope(l)));let b=P,i=u8e(e)||ZH.empty,O=s8e(d,i.tags);if(O&&(b&&(b+=" "),b+=O,i.mode==1&&(P+=(P?" ":"")+O)),this.startSpan(Math.max(o,n),b),i.opaque)return;let w=e.tree&&e.tree.prop(fl.mounted);if(w&&w.overlay){let y=e.node.enter(w.overlay[0].from+n,1),p=this.highlighters.filter(u=>!u.scope||u.scope(w.tree.type)),a=e.firstChild();for(let u=0,h=n;;u++){let m=u=v||!e.nextSibling())););if(!m||v>f)break;h=m.to+n,h>o&&(this.highlightRange(y.cursor(),Math.max(o,m.from+n),Math.min(f,h),"",p),this.startSpan(Math.min(f,h),b))}a&&e.parent()}else if(e.firstChild()){w&&(P="");do if(!(e.to<=o)){if(e.from>=f)break;this.highlightRange(e,o,f,P,d),this.startSpan(Math.min(f,e.to),b)}while(e.nextSibling());e.parent()}}}function u8e(t){let e=t.type.prop(Yye);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const ia=mx.define,FQ=ia(),j4=ia(),Ppe=ia(j4),Rpe=ia(j4),Q4=ia(),NQ=ia(Q4),_ie=ia(Q4),K2=ia(),qk=ia(K2),X2=ia(),G2=ia(),gse=ia(),zL=ia(gse),$Q=ia(),Gn={comment:FQ,lineComment:ia(FQ),blockComment:ia(FQ),docComment:ia(FQ),name:j4,variableName:ia(j4),typeName:Ppe,tagName:ia(Ppe),propertyName:Rpe,attributeName:ia(Rpe),className:ia(j4),labelName:ia(j4),namespace:ia(j4),macroName:ia(j4),literal:Q4,string:NQ,docString:ia(NQ),character:ia(NQ),attributeValue:ia(NQ),number:_ie,integer:ia(_ie),float:ia(_ie),bool:ia(Q4),regexp:ia(Q4),escape:ia(Q4),color:ia(Q4),url:ia(Q4),keyword:X2,self:ia(X2),null:ia(X2),atom:ia(X2),unit:ia(X2),modifier:ia(X2),operatorKeyword:ia(X2),controlKeyword:ia(X2),definitionKeyword:ia(X2),moduleKeyword:ia(X2),operator:G2,derefOperator:ia(G2),arithmeticOperator:ia(G2),logicOperator:ia(G2),bitwiseOperator:ia(G2),compareOperator:ia(G2),updateOperator:ia(G2),definitionOperator:ia(G2),typeOperator:ia(G2),controlOperator:ia(G2),punctuation:gse,separator:ia(gse),bracket:zL,angleBracket:ia(zL),squareBracket:ia(zL),paren:ia(zL),brace:ia(zL),content:K2,heading:qk,heading1:ia(qk),heading2:ia(qk),heading3:ia(qk),heading4:ia(qk),heading5:ia(qk),heading6:ia(qk),contentSeparator:ia(K2),list:ia(K2),quote:ia(K2),emphasis:ia(K2),strong:ia(K2),link:ia(K2),monospace:ia(K2),strikethrough:ia(K2),inserted:ia(),deleted:ia(),changed:ia(),invalid:ia(),meta:$Q,documentMeta:ia($Q),annotation:ia($Q),processingInstruction:ia($Q),definition:mx.defineModifier(),constant:mx.defineModifier(),function:mx.defineModifier(),standard:mx.defineModifier(),local:mx.defineModifier(),special:mx.defineModifier()};Xye([{tag:Gn.link,class:"tok-link"},{tag:Gn.heading,class:"tok-heading"},{tag:Gn.emphasis,class:"tok-emphasis"},{tag:Gn.strong,class:"tok-strong"},{tag:Gn.keyword,class:"tok-keyword"},{tag:Gn.atom,class:"tok-atom"},{tag:Gn.bool,class:"tok-bool"},{tag:Gn.url,class:"tok-url"},{tag:Gn.labelName,class:"tok-labelName"},{tag:Gn.inserted,class:"tok-inserted"},{tag:Gn.deleted,class:"tok-deleted"},{tag:Gn.literal,class:"tok-literal"},{tag:Gn.string,class:"tok-string"},{tag:Gn.number,class:"tok-number"},{tag:[Gn.regexp,Gn.escape,Gn.special(Gn.string)],class:"tok-string2"},{tag:Gn.variableName,class:"tok-variableName"},{tag:Gn.local(Gn.variableName),class:"tok-variableName tok-local"},{tag:Gn.definition(Gn.variableName),class:"tok-variableName tok-definition"},{tag:Gn.special(Gn.variableName),class:"tok-variableName2"},{tag:Gn.definition(Gn.propertyName),class:"tok-propertyName tok-definition"},{tag:Gn.typeName,class:"tok-typeName"},{tag:Gn.namespace,class:"tok-namespace"},{tag:Gn.className,class:"tok-className"},{tag:Gn.macroName,class:"tok-macroName"},{tag:Gn.propertyName,class:"tok-propertyName"},{tag:Gn.operator,class:"tok-operator"},{tag:Gn.comment,class:"tok-comment"},{tag:Gn.meta,class:"tok-meta"},{tag:Gn.invalid,class:"tok-invalid"},{tag:Gn.punctuation,class:"tok-punctuation"}]);var wie;const sT=new fl;function mce(t){return Ba.define({combine:t?e=>e.concat(t):void 0})}const gce=new fl;class Gy{constructor(e,o,f=[],P=""){this.data=e,this.name=P,jl.prototype.hasOwnProperty("tree")||Object.defineProperty(jl.prototype,"tree",{get(){return Gu(this)}}),this.parser=o,this.extension=[uS.of(this),jl.languageData.of((d,l,n)=>{let c=Lpe(d,l,n),b=c.type.prop(sT);if(!b)return[];let i=d.facet(b),O=c.type.prop(gce);if(O){let w=c.resolve(l-c.from,n);for(let y of O)if(y.test(w,d)){let p=d.facet(y.facet);return y.type=="replace"?p:p.concat(i)}}return i})].concat(f)}isActiveAt(e,o,f=-1){return Lpe(e,o,f).type.prop(sT)==this.data}findRegions(e){let o=e.facet(uS);if((o==null?void 0:o.data)==this.data)return[{from:0,to:e.doc.length}];if(!o||!o.allowsNesting)return[];let f=[],P=(d,l)=>{if(d.prop(sT)==this.data){f.push({from:l,to:l+d.length});return}let n=d.prop(fl.mounted);if(n){if(n.tree.prop(sT)==this.data){if(n.overlay)for(let c of n.overlay)f.push({from:c.from+l,to:c.to+l});else f.push({from:l,to:l+d.length});return}else if(n.overlay){let c=f.length;if(P(n.tree,n.overlay[0].from+l),f.length>c)return}}for(let c=0;cf.isTop?o:void 0)]}),e.name)}configure(e,o){return new cS(this.data,this.parser.configure(e),o||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Gu(t){let e=t.field(Gy.state,!1);return e?e.tree:ku.empty}class f8e{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,o){let f=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,o):this.string.slice(e-f,o-f)}}let FL=null;class $I{constructor(e,o,f=[],P,d,l,n,c){this.parser=e,this.state=o,this.fragments=f,this.tree=P,this.treeLen=d,this.viewport=l,this.skipped=n,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}static create(e,o,f){return new $I(e,o,[],ku.empty,0,f,[],null)}startParse(){return this.parser.startParse(new f8e(this.state.doc),this.fragments)}work(e,o){return o!=null&&o>=this.state.doc.length&&(o=void 0),this.tree!=ku.empty&&this.isDone(o??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var f;if(typeof e=="number"){let P=Date.now()+e;e=()=>Date.now()>P}for(this.parse||(this.parse=this.startParse()),o!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>o)&&o=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(o=this.parse.advance()););}),this.treeLen=e,this.tree=o,this.fragments=this.withoutTempSkipped(SO.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let o=FL;FL=this;try{return e()}finally{FL=o}}withoutTempSkipped(e){for(let o;o=this.tempSkipped.pop();)e=Ipe(e,o.from,o.to);return e}changes(e,o){let{fragments:f,tree:P,treeLen:d,viewport:l,skipped:n}=this;if(this.takeTree(),!e.empty){let c=[];if(e.iterChangedRanges((b,i,O,w)=>c.push({fromA:b,toA:i,fromB:O,toB:w})),f=SO.applyChanges(f,c),P=ku.empty,d=0,l={from:e.mapPos(l.from,-1),to:e.mapPos(l.to,1)},this.skipped.length){n=[];for(let b of this.skipped){let i=e.mapPos(b.from,1),O=e.mapPos(b.to,-1);ie.from&&(this.fragments=Ipe(this.fragments,P,d),this.skipped.splice(f--,1))}return this.skipped.length>=o?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,o){this.skipped.push({from:e,to:o})}static getSkippingParser(e){return new class extends pce{createParse(o,f,P){let d=P[0].from,l=P[P.length-1].to;return{parsedPos:d,advance(){let c=FL;if(c){for(let b of P)c.tempSkipped.push(b);e&&(c.scheduleOn=c.scheduleOn?Promise.all([c.scheduleOn,e]):e)}return this.parsedPos=l,new ku(Cp.none,[],[],l-d)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let o=this.fragments;return this.treeLen>=e&&o.length&&o[0].from==0&&o[0].to>=e}static get(){return FL}}function Ipe(t,e,o){return SO.applyChanges(t,[{fromA:e,toA:o,fromB:e,toB:o}])}class dM{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let o=this.context.changes(e.changes,e.state),f=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),o.viewport.to);return o.work(20,f)||o.takeTree(),new dM(o)}static init(e){let o=Math.min(3e3,e.doc.length),f=$I.create(e.facet(uS).parser,e,{from:0,to:o});return f.work(20,o)||f.takeTree(),new dM(f)}}Gy.state=Ap.define({create:dM.init,update(t,e){for(let o of e.effects)if(o.is(Gy.setState))return o.value;return e.startState.facet(uS)!=e.state.facet(uS)?dM.init(e.state):t.apply(e)}});let Gye=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Gye=t=>{let e=-1,o=setTimeout(()=>{e=requestIdleCallback(t,{timeout:500-100})},100);return()=>e<0?clearTimeout(o):cancelIdleCallback(e)});const Oie=typeof navigator<"u"&&(!((wie=navigator.scheduling)===null||wie===void 0)&&wie.isInputPending)?()=>navigator.scheduling.isInputPending():null,d8e=Wd.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let o=this.view.state.field(Gy.state).context;(o.updateViewport(e.view.viewport)||this.view.viewport.to>o.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(o)}scheduleWork(){if(this.working)return;let{state:e}=this.view,o=e.field(Gy.state);(o.tree!=o.context.tree||!o.context.isDone(e.doc.length))&&(this.working=Gye(this.work))}work(e){this.working=null;let o=Date.now();if(this.chunkEndP+1e3,c=d.context.work(()=>Oie&&Oie()||Date.now()>l,P+(n?0:1e5));this.chunkBudget-=Date.now()-o,(c||this.chunkBudget<=0)&&(d.context.takeTree(),this.view.dispatch({effects:Gy.setState.of(new dM(d.context))})),this.chunkBudget>0&&!(c&&!n)&&this.scheduleWork(),this.checkAsyncSchedule(d.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(o=>tb(this.view.state,o)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),uS=Ba.define({combine(t){return t.length?t[0]:null},enables:t=>[Gy.state,d8e,Oa.contentAttributes.compute([t],e=>{let o=e.facet(t);return o&&o.name?{"data-language":o.name}:{}})]});class gT{constructor(e,o=[]){this.language=e,this.support=o,this.extension=[e,o]}}class qH{constructor(e,o,f,P,d,l=void 0){this.name=e,this.alias=o,this.extensions=f,this.filename=P,this.loadFunc=d,this.support=l,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:o,support:f}=e;if(!o){if(!f)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");o=()=>Promise.resolve(f)}return new qH(e.name,(e.alias||[]).concat(e.name).map(P=>P.toLowerCase()),e.extensions||[],e.filename,o,f)}static matchFilename(e,o){for(let P of e)if(P.filename&&P.filename.test(o))return P;let f=/\.([^.]+)$/.exec(o);if(f){for(let P of e)if(P.extensions.indexOf(f[1])>-1)return P}return null}static matchLanguageName(e,o,f=!0){o=o.toLowerCase();for(let P of e)if(P.alias.some(d=>d==o))return P;if(f)for(let P of e)for(let d of P.alias){let l=o.indexOf(d);if(l>-1&&(d.length>2||!/\w/.test(o[l-1])&&!/\w/.test(o[l+d.length])))return P}return null}}const h8e=Ba.define(),wT=Ba.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(o=>o!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function WH(t){let e=t.facet(wT);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function VI(t,e){let o="",f=t.tabSize,P=t.facet(wT)[0];if(P==" "){for(;e>=f;)o+=" ",e-=f;P=" "}for(let d=0;d=e?p8e(t,o,e):null}class KZ{constructor(e,o={}){this.state=e,this.options=o,this.unit=WH(e)}lineAt(e,o=1){let f=this.state.doc.lineAt(e),{simulateBreak:P,simulateDoubleBreak:d}=this.options;return P!=null&&P>=f.from&&P<=f.to?d&&P==e?{text:"",from:e}:(o<0?P-1&&(d+=l-this.countColumn(f,f.search(/\S|$/))),d}countColumn(e,o=e.length){return xx(e,this.state.tabSize,o)}lineIndent(e,o=1){let{text:f,from:P}=this.lineAt(e,o),d=this.options.overrideIndentation;if(d){let l=d(P);if(l>-1)return l}return this.countColumn(f,f.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const OT=new fl;function p8e(t,e,o){let f=e.resolveStack(o),P=f.node.enterUnfinishedNodesBefore(o);if(P!=f.node){let d=[];for(let l=P;l!=f.node;l=l.parent)d.push(l);for(let l=d.length-1;l>=0;l--)f={node:d[l],next:f}}return Kye(f,t,o)}function Kye(t,e,o){for(let f=t;f;f=f.next){let P=g8e(f.node);if(P)return P(yce.create(e,o,f))}return 0}function m8e(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function g8e(t){let e=t.type.prop(OT);if(e)return e;let o=t.firstChild,f;if(o&&(f=o.type.prop(fl.closedBy))){let P=t.lastChild,d=P&&f.indexOf(P.name)>-1;return l=>Jye(l,!0,1,void 0,d&&!m8e(l)?P.from:void 0)}return t.parent==null?v8e:null}function v8e(){return 0}class yce extends KZ{constructor(e,o,f){super(e.state,e.options),this.base=e,this.pos=o,this.context=f}get node(){return this.context.node}static create(e,o,f){return new yce(e,o,f)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let o=this.state.doc.lineAt(e.from);for(;;){let f=e.resolve(o.from);for(;f.parent&&f.parent.from==f.from;)f=f.parent;if(y8e(f,e))break;o=this.state.doc.lineAt(f.from)}return this.lineIndent(o.from)}continue(){return Kye(this.context.next,this.base,this.pos)}}function y8e(t,e){for(let o=e;o;o=o.parent)if(t==o)return!0;return!1}function b8e(t){let e=t.node,o=e.childAfter(e.from),f=e.lastChild;if(!o)return null;let P=t.options.simulateBreak,d=t.state.doc.lineAt(o.from),l=P==null||P<=d.from?d.to:Math.min(d.to,P);for(let n=o.to;;){let c=e.childAfter(n);if(!c||c==f)return null;if(!c.type.isSkipped)return c.fromJye(f,e,o,t)}function Jye(t,e,o,f,P){let d=t.textAfter,l=d.match(/^\s*/)[0].length,n=f&&d.slice(l,l+f.length)==f||P==t.pos+l,c=e?b8e(t):null;return c?n?t.column(c.from):t.column(c.to):t.baseIndent+(n?0:t.unit*o)}const x8e=t=>t.baseIndent;function dI({except:t,units:e=1}={}){return o=>{let f=t&&t.test(o.textAfter);return o.baseIndent+(f?0:e*o.unit)}}const _8e=200;function w8e(){return jl.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let o=t.newDoc,{head:f}=t.newSelection.main,P=o.lineAt(f);if(f>P.from+_8e)return t;let d=o.sliceString(P.from,f);if(!e.some(b=>b.test(d)))return t;let{state:l}=t,n=-1,c=[];for(let{head:b}of l.selection.ranges){let i=l.doc.lineAt(b);if(i.from==n)continue;n=i.from;let O=vce(l,i.from);if(O==null)continue;let w=/^\s*/.exec(i.text)[0],y=VI(l,O);w!=y&&c.push({from:i.from,to:i.from+w.length,insert:y})}return c.length?[t,{changes:c,sequential:!0}]:t})}const ebe=Ba.define(),vS=new fl;function bce(t){let e=t.firstChild,o=t.lastChild;return e&&e.too)continue;if(d&&n.from=e&&b.to>o&&(d=b)}}return d}function S8e(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function YH(t,e,o){for(let f of t.facet(ebe)){let P=f(t,e,o);if(P)return P}return O8e(t,e,o)}function tbe(t,e){let o=e.mapPos(t.from,1),f=e.mapPos(t.to,-1);return o>=f?void 0:{from:o,to:f}}const JZ=cl.define({map:tbe}),bD=cl.define({map:tbe});function nbe(t){let e=[];for(let{head:o}of t.state.selection.ranges)e.some(f=>f.from<=o&&f.to>=o)||e.push(t.lineBlockAt(o));return e}const vT=Ap.define({create(){return es.none},update(t,e){t=t.map(e.changes);for(let o of e.effects)if(o.is(JZ)&&!k8e(t,o.value.from,o.value.to)){let{preparePlaceholder:f}=e.state.facet(xce),P=f?es.replace({widget:new R8e(f(e.state,o.value))}):Dpe;t=t.update({add:[P.range(o.value.from,o.value.to)]})}else o.is(bD)&&(t=t.update({filter:(f,P)=>o.value.from!=f||o.value.to!=P,filterFrom:o.value.from,filterTo:o.value.to}));if(e.selection){let o=!1,{head:f}=e.selection.main;t.between(f,f,(P,d)=>{Pf&&(o=!0)}),o&&(t=t.update({filterFrom:f,filterTo:f,filter:(P,d)=>d<=f||P>=f}))}return t},provide:t=>Oa.decorations.from(t),toJSON(t,e){let o=[];return t.between(0,e.doc.length,(f,P)=>{o.push(f,P)}),o},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let o=0;o{(!P||P.from>d)&&(P={from:d,to:l})}),P}function k8e(t,e,o){let f=!1;return t.between(e,e,(P,d)=>{P==e&&d==o&&(f=!0)}),f}function rbe(t,e){return t.field(vT,!1)?e:e.concat(cl.appendConfig.of(ibe()))}const T8e=t=>{for(let e of nbe(t)){let o=YH(t.state,e.from,e.to);if(o)return t.dispatch({effects:rbe(t.state,[JZ.of(o),obe(t,o)])}),!0}return!1},C8e=t=>{if(!t.state.field(vT,!1))return!1;let e=[];for(let o of nbe(t)){let f=XH(t.state,o.from,o.to);f&&e.push(bD.of(f),obe(t,f,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function obe(t,e,o=!0){let f=t.state.doc.lineAt(e.from).number,P=t.state.doc.lineAt(e.to).number;return Oa.announce.of(`${t.state.phrase(o?"Folded lines":"Unfolded lines")} ${f} ${t.state.phrase("to")} ${P}.`)}const A8e=t=>{let{state:e}=t,o=[];for(let f=0;f{let e=t.state.field(vT,!1);if(!e||!e.size)return!1;let o=[];return e.between(0,t.state.doc.length,(f,P)=>{o.push(bD.of({from:f,to:P}))}),t.dispatch({effects:o}),!0},E8e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:T8e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:C8e},{key:"Ctrl-Alt-[",run:A8e},{key:"Ctrl-Alt-]",run:M8e}],P8e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},xce=Ba.define({combine(t){return b_(t,P8e)}});function ibe(t){let e=[vT,D8e];return t&&e.push(xce.of(t)),e}function abe(t,e){let{state:o}=t,f=o.facet(xce),P=l=>{let n=t.lineBlockAt(t.posAtDOM(l.target)),c=XH(t.state,n.from,n.to);c&&t.dispatch({effects:bD.of(c)}),l.preventDefault()};if(f.placeholderDOM)return f.placeholderDOM(t,P,e);let d=document.createElement("span");return d.textContent=f.placeholderText,d.setAttribute("aria-label",o.phrase("folded code")),d.title=o.phrase("unfold"),d.className="cm-foldPlaceholder",d.onclick=P,d}const Dpe=es.replace({widget:new class extends Ox{toDOM(t){return abe(t,null)}}});class R8e extends Ox{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return abe(e,this.value)}}const L8e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Sie extends EO{constructor(e,o){super(),this.config=e,this.open=o}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let o=document.createElement("span");return o.textContent=this.open?this.config.openText:this.config.closedText,o.title=e.state.phrase(this.open?"Fold line":"Unfold line"),o}}function I8e(t={}){let e=Object.assign(Object.assign({},L8e),t),o=new Sie(e,!0),f=new Sie(e,!1),P=Wd.fromClass(class{constructor(l){this.from=l.viewport.from,this.markers=this.buildMarkers(l)}update(l){(l.docChanged||l.viewportChanged||l.startState.facet(uS)!=l.state.facet(uS)||l.startState.field(vT,!1)!=l.state.field(vT,!1)||Gu(l.startState)!=Gu(l.state)||e.foldingChanged(l))&&(this.markers=this.buildMarkers(l.view))}buildMarkers(l){let n=new oS;for(let c of l.viewportLineBlocks){let b=XH(l.state,c.from,c.to)?f:YH(l.state,c.from,c.to)?o:null;b&&n.add(c.from,c.from,b)}return n.finish()}}),{domEventHandlers:d}=e;return[P,ICe({class:"cm-foldGutter",markers(l){var n;return((n=l.plugin(P))===null||n===void 0?void 0:n.markers)||Vu.empty},initialSpacer(){return new Sie(e,!1)},domEventHandlers:Object.assign(Object.assign({},d),{click:(l,n,c)=>{if(d.click&&d.click(l,n,c))return!0;let b=XH(l.state,n.from,n.to);if(b)return l.dispatch({effects:bD.of(b)}),!0;let i=YH(l.state,n.from,n.to);return i?(l.dispatch({effects:JZ.of(i)}),!0):!1}})}),ibe()]}const D8e=Oa.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class xD{constructor(e,o){this.specs=e;let f;function P(n){let c=iS.newName();return(f||(f=Object.create(null)))["."+c]=n,c}const d=typeof o.all=="string"?o.all:o.all?P(o.all):void 0,l=o.scope;this.scope=l instanceof Gy?n=>n.prop(sT)==l.data:l?n=>n==l:void 0,this.style=Xye(e.map(n=>({tag:n.tag,class:n.class||P(Object.assign({},n,{tag:null}))})),{all:d}).style,this.module=f?new iS(f):null,this.themeType=o.themeType}static define(e,o){return new xD(e,o||{})}}const vse=Ba.define(),sbe=Ba.define({combine(t){return t.length?[t[0]]:null}});function kie(t){let e=t.facet(vse);return e.length?e:t.facet(sbe)}function lbe(t,e){let o=[z8e],f;return t instanceof xD&&(t.module&&o.push(Oa.styleModule.of(t.module)),f=t.themeType),e!=null&&e.fallback?o.push(sbe.of(t)):f?o.push(vse.computeN([Oa.darkTheme],P=>P.facet(Oa.darkTheme)==(f=="dark")?[t]:[])):o.push(vse.of(t)),o}class B8e{constructor(e){this.markCache=Object.create(null),this.tree=Gu(e.state),this.decorations=this.buildDeco(e,kie(e.state))}update(e){let o=Gu(e.state),f=kie(e.state),P=f!=kie(e.startState);o.length{f.add(l,n,this.markCache[c]||(this.markCache[c]=es.mark({class:c})))},P,d);return f.finish()}}const z8e=Vv.high(Wd.fromClass(B8e,{decorations:t=>t.decorations})),F8e=xD.define([{tag:Gn.meta,color:"#404740"},{tag:Gn.link,textDecoration:"underline"},{tag:Gn.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Gn.emphasis,fontStyle:"italic"},{tag:Gn.strong,fontWeight:"bold"},{tag:Gn.strikethrough,textDecoration:"line-through"},{tag:Gn.keyword,color:"#708"},{tag:[Gn.atom,Gn.bool,Gn.url,Gn.contentSeparator,Gn.labelName],color:"#219"},{tag:[Gn.literal,Gn.inserted],color:"#164"},{tag:[Gn.string,Gn.deleted],color:"#a11"},{tag:[Gn.regexp,Gn.escape,Gn.special(Gn.string)],color:"#e40"},{tag:Gn.definition(Gn.variableName),color:"#00f"},{tag:Gn.local(Gn.variableName),color:"#30a"},{tag:[Gn.typeName,Gn.namespace],color:"#085"},{tag:Gn.className,color:"#167"},{tag:[Gn.special(Gn.variableName),Gn.macroName],color:"#256"},{tag:Gn.definition(Gn.propertyName),color:"#00c"},{tag:Gn.comment,color:"#940"},{tag:Gn.invalid,color:"#f00"}]),N8e=Oa.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),cbe=1e4,ube="()[]{}",fbe=Ba.define({combine(t){return b_(t,{afterCursor:!0,brackets:ube,maxScanDistance:cbe,renderMatch:U8e})}}),$8e=es.mark({class:"cm-matchingBracket"}),V8e=es.mark({class:"cm-nonmatchingBracket"});function U8e(t){let e=[],o=t.matched?$8e:V8e;return e.push(o.range(t.start.from,t.start.to)),t.end&&e.push(o.range(t.end.from,t.end.to)),e}const j8e=Ap.define({create(){return es.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let o=[],f=e.state.facet(fbe);for(let P of e.state.selection.ranges){if(!P.empty)continue;let d=a_(e.state,P.head,-1,f)||P.head>0&&a_(e.state,P.head-1,1,f)||f.afterCursor&&(a_(e.state,P.head,1,f)||P.headOa.decorations.from(t)}),Q8e=[j8e,N8e];function H8e(t={}){return[fbe.of(t),Q8e]}const dbe=new fl;function yse(t,e,o){let f=t.prop(e<0?fl.openedBy:fl.closedBy);if(f)return f;if(t.name.length==1){let P=o.indexOf(t.name);if(P>-1&&P%2==(e<0?1:0))return[o[P+e]]}return null}function bse(t){let e=t.type.prop(dbe);return e?e(t.node):t}function a_(t,e,o,f={}){let P=f.maxScanDistance||cbe,d=f.brackets||ube,l=Gu(t),n=l.resolveInner(e,o);for(let c=n;c;c=c.parent){let b=yse(c.type,o,d);if(b&&c.from0?e>=i.from&&ei.from&&e<=i.to))return Z8e(t,e,o,c,i,b,d)}}return q8e(t,e,o,l,n.type,P,d)}function Z8e(t,e,o,f,P,d,l){let n=f.parent,c={from:P.from,to:P.to},b=0,i=n==null?void 0:n.cursor();if(i&&(o<0?i.childBefore(f.from):i.childAfter(f.to)))do if(o<0?i.to<=f.from:i.from>=f.to){if(b==0&&d.indexOf(i.type.name)>-1&&i.from0)return null;let b={from:o<0?e-1:e,to:o>0?e+1:e},i=t.doc.iterRange(e,o>0?t.doc.length:0),O=0;for(let w=0;!i.next().done&&w<=d;){let y=i.value;o<0&&(w+=y.length);let p=e+w*o;for(let a=o>0?0:y.length-1,u=o>0?y.length:-1;a!=u;a+=o){let h=l.indexOf(y[a]);if(!(h<0||f.resolveInner(p+a,1).type!=P))if(h%2==0==o>0)O++;else{if(O==1)return{start:b,end:{from:p+a,to:p+a+1},matched:h>>1==c>>1};O--}}o>0&&(w+=y.length)}return i.done?{start:b,matched:!1}:null}const W8e=Object.create(null),Bpe=[Cp.none],zpe=[],Fpe=Object.create(null),Y8e=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Y8e[t]=X8e(W8e,e);function Tie(t,e){zpe.indexOf(t)>-1||(zpe.push(t),console.warn(e))}function X8e(t,e){let o=[];for(let n of e.split(" ")){let c=[];for(let b of n.split(".")){let i=t[b]||Gn[b];i?typeof i=="function"?c.length?c=c.map(i):Tie(b,`Modifier ${b} used at start of tag`):c.length?Tie(b,`Tag ${b} used as modifier`):c=Array.isArray(i)?i:[i]:Tie(b,`Unknown highlighting tag ${b}`)}for(let b of c)o.push(b)}if(!o.length)return 0;let f=e.replace(/ /g,"_"),P=f+" "+o.map(n=>n.id),d=Fpe[P];if(d)return d.id;let l=Fpe[P]=Cp.define({id:Bpe.length,name:f,props:[gS({[f]:o})]});return Bpe.push(l),l.id}const G8e=t=>{let{state:e}=t,o=e.doc.lineAt(e.selection.main.from),f=wce(t.state,o.from);return f.line?K8e(t):f.block?eAe(t):!1};function _ce(t,e){return({state:o,dispatch:f})=>{if(o.readOnly)return!1;let P=t(e,o);return P?(f(o.update(P)),!0):!1}}const K8e=_ce(rAe,0),J8e=_ce(hbe,0),eAe=_ce((t,e)=>hbe(t,e,nAe(e)),0);function wce(t,e){let o=t.languageDataAt("commentTokens",e);return o.length?o[0]:{}}const NL=50;function tAe(t,{open:e,close:o},f,P){let d=t.sliceDoc(f-NL,f),l=t.sliceDoc(P,P+NL),n=/\s*$/.exec(d)[0].length,c=/^\s*/.exec(l)[0].length,b=d.length-n;if(d.slice(b-e.length,b)==e&&l.slice(c,c+o.length)==o)return{open:{pos:f-n,margin:n&&1},close:{pos:P+c,margin:c&&1}};let i,O;P-f<=2*NL?i=O=t.sliceDoc(f,P):(i=t.sliceDoc(f,f+NL),O=t.sliceDoc(P-NL,P));let w=/^\s*/.exec(i)[0].length,y=/\s*$/.exec(O)[0].length,p=O.length-y-o.length;return i.slice(w,w+e.length)==e&&O.slice(p,p+o.length)==o?{open:{pos:f+w+e.length,margin:/\s/.test(i.charAt(w+e.length))?1:0},close:{pos:P-y-o.length,margin:/\s/.test(O.charAt(p-1))?1:0}}:null}function nAe(t){let e=[];for(let o of t.selection.ranges){let f=t.doc.lineAt(o.from),P=o.to<=f.to?f:t.doc.lineAt(o.to),d=e.length-1;d>=0&&e[d].to>f.from?e[d].to=P.to:e.push({from:f.from+/^\s*/.exec(f.text)[0].length,to:P.to})}return e}function hbe(t,e,o=e.selection.ranges){let f=o.map(d=>wce(e,d.from).block);if(!f.every(d=>d))return null;let P=o.map((d,l)=>tAe(e,f[l],d.from,d.to));if(t!=2&&!P.every(d=>d))return{changes:e.changes(o.map((d,l)=>P[l]?[]:[{from:d.from,insert:f[l].open+" "},{from:d.to,insert:" "+f[l].close}]))};if(t!=1&&P.some(d=>d)){let d=[];for(let l=0,n;lP&&(d==l||l>O.from)){P=O.from;let w=/^\s*/.exec(O.text)[0].length,y=w==O.length,p=O.text.slice(w,w+b.length)==b?w:-1;wd.comment<0&&(!d.empty||d.single))){let d=[];for(let{line:n,token:c,indent:b,empty:i,single:O}of f)(O||!i)&&d.push({from:n.from+b,insert:c+" "});let l=e.changes(d);return{changes:l,selection:e.selection.map(l,1)}}else if(t!=1&&f.some(d=>d.comment>=0)){let d=[];for(let{line:l,comment:n,token:c}of f)if(n>=0){let b=l.from+n,i=b+c.length;l.text[i-l.from]==" "&&i++,d.push({from:b,to:i})}return{changes:d}}return null}const xse=LO.define(),oAe=LO.define(),iAe=Ba.define(),pbe=Ba.define({combine(t){return b_(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,o)=>o},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,o)=>(f,P)=>e(f,P)||o(f,P)})}}),mbe=Ap.define({create(){return s_.empty},update(t,e){let o=e.state.facet(pbe),f=e.annotation(xse);if(f){let c=b1.fromTransaction(e,f.selection),b=f.side,i=b==0?t.undone:t.done;return c?i=GH(i,i.length,o.minDepth,c):i=ybe(i,e.startState.selection),new s_(b==0?f.rest:i,b==0?i:f.rest)}let P=e.annotation(oAe);if((P=="full"||P=="before")&&(t=t.isolate()),e.annotation(Sp.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let d=b1.fromTransaction(e),l=e.annotation(Sp.time),n=e.annotation(Sp.userEvent);return d?t=t.addChanges(d,l,n,o,e):e.selection&&(t=t.addSelection(e.startState.selection,l,n,o.newGroupDelay)),(P=="full"||P=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new s_(t.done.map(b1.fromJSON),t.undone.map(b1.fromJSON))}});function aAe(t={}){return[mbe,pbe.of(t),Oa.domEventHandlers({beforeinput(e,o){let f=e.inputType=="historyUndo"?gbe:e.inputType=="historyRedo"?_se:null;return f?(e.preventDefault(),f(o)):!1}})]}function eq(t,e){return function({state:o,dispatch:f}){if(!e&&o.readOnly)return!1;let P=o.field(mbe,!1);if(!P)return!1;let d=P.pop(t,o,e);return d?(f(d),!0):!1}}const gbe=eq(0,!1),_se=eq(1,!1),sAe=eq(0,!0),lAe=eq(1,!0);class b1{constructor(e,o,f,P,d){this.changes=e,this.effects=o,this.mapped=f,this.startSelection=P,this.selectionsAfter=d}setSelAfter(e){return new b1(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,o,f;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(o=this.mapped)===null||o===void 0?void 0:o.toJSON(),startSelection:(f=this.startSelection)===null||f===void 0?void 0:f.toJSON(),selectionsAfter:this.selectionsAfter.map(P=>P.toJSON())}}static fromJSON(e){return new b1(e.changes&&wp.fromJSON(e.changes),[],e.mapped&&f_.fromJSON(e.mapped),e.startSelection&&Yo.fromJSON(e.startSelection),e.selectionsAfter.map(Yo.fromJSON))}static fromTransaction(e,o){let f=Ky;for(let P of e.startState.facet(iAe)){let d=P(e);d.length&&(f=f.concat(d))}return!f.length&&e.changes.empty?null:new b1(e.changes.invert(e.startState.doc),f,void 0,o||e.startState.selection,Ky)}static selection(e){return new b1(void 0,Ky,void 0,void 0,e)}}function GH(t,e,o,f){let P=e+1>o+20?e-o-1:0,d=t.slice(P,e);return d.push(f),d}function cAe(t,e){let o=[],f=!1;return t.iterChangedRanges((P,d)=>o.push(P,d)),e.iterChangedRanges((P,d,l,n)=>{for(let c=0;c=b&&l<=i&&(f=!0)}}),f}function uAe(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((o,f)=>o.empty!=e.ranges[f].empty).length===0}function vbe(t,e){return t.length?e.length?t.concat(e):t:e}const Ky=[],fAe=200;function ybe(t,e){if(t.length){let o=t[t.length-1],f=o.selectionsAfter.slice(Math.max(0,o.selectionsAfter.length-fAe));return f.length&&f[f.length-1].eq(e)?t:(f.push(e),GH(t,t.length-1,1e9,o.setSelAfter(f)))}else return[b1.selection([e])]}function dAe(t){let e=t[t.length-1],o=t.slice();return o[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),o}function Cie(t,e){if(!t.length)return t;let o=t.length,f=Ky;for(;o;){let P=hAe(t[o-1],e,f);if(P.changes&&!P.changes.empty||P.effects.length){let d=t.slice(0,o);return d[o-1]=P,d}else e=P.mapped,o--,f=P.selectionsAfter}return f.length?[b1.selection(f)]:Ky}function hAe(t,e,o){let f=vbe(t.selectionsAfter.length?t.selectionsAfter.map(n=>n.map(e)):Ky,o);if(!t.changes)return b1.selection(f);let P=t.changes.map(e),d=e.mapDesc(t.changes,!0),l=t.mapped?t.mapped.composeDesc(d):d;return new b1(P,cl.mapEffects(t.effects,e),l,t.startSelection.map(d),f)}const pAe=/^(input\.type|delete)($|\.)/;class s_{constructor(e,o,f=0,P=void 0){this.done=e,this.undone=o,this.prevTime=f,this.prevUserEvent=P}isolate(){return this.prevTime?new s_(this.done,this.undone):this}addChanges(e,o,f,P,d){let l=this.done,n=l[l.length-1];return n&&n.changes&&!n.changes.empty&&e.changes&&(!f||pAe.test(f))&&(!n.selectionsAfter.length&&o-this.prevTime0&&o-this.prevTimeo.empty?t.moveByChar(o,e):tq(o,e))}function Zg(t){return t.textDirectionAt(t.state.selection.main.head)==qd.LTR}const xbe=t=>bbe(t,!Zg(t)),_be=t=>bbe(t,Zg(t));function wbe(t,e){return Sx(t,o=>o.empty?t.moveByGroup(o,e):tq(o,e))}const gAe=t=>wbe(t,!Zg(t)),vAe=t=>wbe(t,Zg(t));function yAe(t,e,o){if(e.type.prop(o))return!0;let f=e.to-e.from;return f&&(f>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function nq(t,e,o){let f=Gu(t).resolveInner(e.head),P=o?fl.closedBy:fl.openedBy;for(let c=e.head;;){let b=o?f.childAfter(c):f.childBefore(c);if(!b)break;yAe(t,b,P)?f=b:c=o?b.to:b.from}let d=f.type.prop(P),l,n;return d&&(l=o?a_(t,f.from,1):a_(t,f.to,-1))&&l.matched?n=o?l.end.to:l.end.from:n=o?f.to:f.from,Yo.cursor(n,o?-1:1)}const bAe=t=>Sx(t,e=>nq(t.state,e,!Zg(t))),xAe=t=>Sx(t,e=>nq(t.state,e,Zg(t)));function Obe(t,e){return Sx(t,o=>{if(!o.empty)return tq(o,e);let f=t.moveVertically(o,e);return f.head!=o.head?f:t.moveToLineBoundary(o,e)})}const Sbe=t=>Obe(t,!1),kbe=t=>Obe(t,!0);function Tbe(t){let e=t.scrollDOM.clientHeightl.empty?t.moveVertically(l,e,o.height):tq(l,e));if(P.eq(f.selection))return!1;let d;if(o.selfScroll){let l=t.coordsAtPos(f.selection.main.head),n=t.scrollDOM.getBoundingClientRect(),c=n.top+o.marginTop,b=n.bottom-o.marginBottom;l&&l.top>c&&l.bottomCbe(t,!1),wse=t=>Cbe(t,!0);function yS(t,e,o){let f=t.lineBlockAt(e.head),P=t.moveToLineBoundary(e,o);if(P.head==e.head&&P.head!=(o?f.to:f.from)&&(P=t.moveToLineBoundary(e,o,!1)),!o&&P.head==f.from&&f.length){let d=/^\s*/.exec(t.state.sliceDoc(f.from,Math.min(f.from+100,f.to)))[0].length;d&&e.head!=f.from+d&&(P=Yo.cursor(f.from+d))}return P}const _Ae=t=>Sx(t,e=>yS(t,e,!0)),wAe=t=>Sx(t,e=>yS(t,e,!1)),OAe=t=>Sx(t,e=>yS(t,e,!Zg(t))),SAe=t=>Sx(t,e=>yS(t,e,Zg(t))),kAe=t=>Sx(t,e=>Yo.cursor(t.lineBlockAt(e.head).from,1)),TAe=t=>Sx(t,e=>Yo.cursor(t.lineBlockAt(e.head).to,-1));function CAe(t,e,o){let f=!1,P=MM(t.selection,d=>{let l=a_(t,d.head,-1)||a_(t,d.head,1)||d.head>0&&a_(t,d.head-1,1)||d.headCAe(t,e,!1);function ab(t,e){let o=MM(t.state.selection,f=>{let P=e(f);return Yo.range(f.anchor,P.head,P.goalColumn,P.bidiLevel||void 0)});return o.eq(t.state.selection)?!1:(t.dispatch(x_(t.state,o)),!0)}function Abe(t,e){return ab(t,o=>t.moveByChar(o,e))}const Mbe=t=>Abe(t,!Zg(t)),Ebe=t=>Abe(t,Zg(t));function Pbe(t,e){return ab(t,o=>t.moveByGroup(o,e))}const MAe=t=>Pbe(t,!Zg(t)),EAe=t=>Pbe(t,Zg(t)),PAe=t=>ab(t,e=>nq(t.state,e,!Zg(t))),RAe=t=>ab(t,e=>nq(t.state,e,Zg(t)));function Rbe(t,e){return ab(t,o=>t.moveVertically(o,e))}const Lbe=t=>Rbe(t,!1),Ibe=t=>Rbe(t,!0);function Dbe(t,e){return ab(t,o=>t.moveVertically(o,e,Tbe(t).height))}const $pe=t=>Dbe(t,!1),Vpe=t=>Dbe(t,!0),LAe=t=>ab(t,e=>yS(t,e,!0)),IAe=t=>ab(t,e=>yS(t,e,!1)),DAe=t=>ab(t,e=>yS(t,e,!Zg(t))),BAe=t=>ab(t,e=>yS(t,e,Zg(t))),zAe=t=>ab(t,e=>Yo.cursor(t.lineBlockAt(e.head).from)),FAe=t=>ab(t,e=>Yo.cursor(t.lineBlockAt(e.head).to)),Upe=({state:t,dispatch:e})=>(e(x_(t,{anchor:0})),!0),jpe=({state:t,dispatch:e})=>(e(x_(t,{anchor:t.doc.length})),!0),Qpe=({state:t,dispatch:e})=>(e(x_(t,{anchor:t.selection.main.anchor,head:0})),!0),Hpe=({state:t,dispatch:e})=>(e(x_(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),NAe=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),$Ae=({state:t,dispatch:e})=>{let o=rq(t).map(({from:f,to:P})=>Yo.range(f,Math.min(P+1,t.doc.length)));return e(t.update({selection:Yo.create(o),userEvent:"select"})),!0},VAe=({state:t,dispatch:e})=>{let o=MM(t.selection,f=>{var P;let d=Gu(t).resolveStack(f.from,1);for(let l=d;l;l=l.next){let{node:n}=l;if((n.from=f.to||n.to>f.to&&n.from<=f.from)&&(!((P=n.parent)===null||P===void 0)&&P.parent))return Yo.range(n.to,n.from)}return f});return e(x_(t,o)),!0},UAe=({state:t,dispatch:e})=>{let o=t.selection,f=null;return o.ranges.length>1?f=Yo.create([o.main]):o.main.empty||(f=Yo.create([Yo.cursor(o.main.head)])),f?(e(x_(t,f)),!0):!1};function _D(t,e){if(t.state.readOnly)return!1;let o="delete.selection",{state:f}=t,P=f.changeByRange(d=>{let{from:l,to:n}=d;if(l==n){let c=e(d);cl&&(o="delete.forward",c=VQ(t,c,!0)),l=Math.min(l,c),n=Math.max(n,c)}else l=VQ(t,l,!1),n=VQ(t,n,!0);return l==n?{range:d}:{changes:{from:l,to:n},range:Yo.cursor(l,lP(t)))f.between(e,e,(P,d)=>{Pe&&(e=o?d:P)});return e}const Bbe=(t,e)=>_D(t,o=>{let f=o.from,{state:P}=t,d=P.doc.lineAt(f),l,n;if(!e&&f>d.from&&fBbe(t,!1),zbe=t=>Bbe(t,!0),Fbe=(t,e)=>_D(t,o=>{let f=o.head,{state:P}=t,d=P.doc.lineAt(f),l=P.charCategorizer(f);for(let n=null;;){if(f==(e?d.to:d.from)){f==o.head&&d.number!=(e?P.doc.lines:1)&&(f+=e?1:-1);break}let c=ng(d.text,f-d.from,e)+d.from,b=d.text.slice(Math.min(f,c)-d.from,Math.max(f,c)-d.from),i=l(b);if(n!=null&&i!=n)break;(b!=" "||f!=o.head)&&(n=i),f=c}return f}),Nbe=t=>Fbe(t,!1),jAe=t=>Fbe(t,!0),QAe=t=>_D(t,e=>{let o=t.lineBlockAt(e.head).to;return e.head_D(t,e=>{let o=t.moveToLineBoundary(e,!1).head;return e.head>o?o:Math.max(0,e.head-1)}),ZAe=t=>_D(t,e=>{let o=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let o=t.changeByRange(f=>({changes:{from:f.from,to:f.to,insert:ru.of(["",""])},range:Yo.cursor(f.from)}));return e(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0},WAe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=t.changeByRange(f=>{if(!f.empty||f.from==0||f.from==t.doc.length)return{range:f};let P=f.from,d=t.doc.lineAt(P),l=P==d.from?P-1:ng(d.text,P-d.from,!1)+d.from,n=P==d.to?P+1:ng(d.text,P-d.from,!0)+d.from;return{changes:{from:l,to:n,insert:t.doc.slice(P,n).append(t.doc.slice(l,P))},range:Yo.cursor(n)}});return o.changes.empty?!1:(e(t.update(o,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function rq(t){let e=[],o=-1;for(let f of t.selection.ranges){let P=t.doc.lineAt(f.from),d=t.doc.lineAt(f.to);if(!f.empty&&f.to==d.from&&(d=t.doc.lineAt(f.to-1)),o>=P.number){let l=e[e.length-1];l.to=d.to,l.ranges.push(f)}else e.push({from:P.from,to:d.to,ranges:[f]});o=d.number+1}return e}function $be(t,e,o){if(t.readOnly)return!1;let f=[],P=[];for(let d of rq(t)){if(o?d.to==t.doc.length:d.from==0)continue;let l=t.doc.lineAt(o?d.to+1:d.from-1),n=l.length+1;if(o){f.push({from:d.to,to:l.to},{from:d.from,insert:l.text+t.lineBreak});for(let c of d.ranges)P.push(Yo.range(Math.min(t.doc.length,c.anchor+n),Math.min(t.doc.length,c.head+n)))}else{f.push({from:l.from,to:d.from},{from:d.to,insert:t.lineBreak+l.text});for(let c of d.ranges)P.push(Yo.range(c.anchor-n,c.head-n))}}return f.length?(e(t.update({changes:f,scrollIntoView:!0,selection:Yo.create(P,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const YAe=({state:t,dispatch:e})=>$be(t,e,!1),XAe=({state:t,dispatch:e})=>$be(t,e,!0);function Vbe(t,e,o){if(t.readOnly)return!1;let f=[];for(let P of rq(t))o?f.push({from:P.from,insert:t.doc.slice(P.from,P.to)+t.lineBreak}):f.push({from:P.to,insert:t.lineBreak+t.doc.slice(P.from,P.to)});return e(t.update({changes:f,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const GAe=({state:t,dispatch:e})=>Vbe(t,e,!1),KAe=({state:t,dispatch:e})=>Vbe(t,e,!0),JAe=t=>{if(t.state.readOnly)return!1;let{state:e}=t,o=e.changes(rq(e).map(({from:P,to:d})=>(P>0?P--:dt.moveVertically(P,!0)).map(o);return t.dispatch({changes:o,selection:f,scrollIntoView:!0,userEvent:"delete.line"}),!0};function eMe(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let o=Gu(t).resolveInner(e),f=o.childBefore(e),P=o.childAfter(e),d;return f&&P&&f.to<=e&&P.from>=e&&(d=f.type.prop(fl.closedBy))&&d.indexOf(P.name)>-1&&t.doc.lineAt(f.to).from==t.doc.lineAt(P.from).from&&!/\S/.test(t.sliceDoc(f.to,P.from))?{from:f.to,to:P.from}:null}const tMe=Ube(!1),nMe=Ube(!0);function Ube(t){return({state:e,dispatch:o})=>{if(e.readOnly)return!1;let f=e.changeByRange(P=>{let{from:d,to:l}=P,n=e.doc.lineAt(d),c=!t&&d==l&&eMe(e,d);t&&(d=l=(l<=n.to?n:e.doc.lineAt(l)).to);let b=new KZ(e,{simulateBreak:d,simulateDoubleBreak:!!c}),i=vce(b,d);for(i==null&&(i=xx(/^\s*/.exec(e.doc.lineAt(d).text)[0],e.tabSize));ln.from&&d{let P=[];for(let l=f.from;l<=f.to;){let n=t.doc.lineAt(l);n.number>o&&(f.empty||f.to>n.from)&&(e(n,P,f),o=n.number),l=n.to+1}let d=t.changes(P);return{changes:P,range:Yo.range(d.mapPos(f.anchor,1),d.mapPos(f.head,1))}})}const rMe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=Object.create(null),f=new KZ(t,{overrideIndentation:d=>{let l=o[d];return l??-1}}),P=Oce(t,(d,l,n)=>{let c=vce(f,d.from);if(c==null)return;/\S/.test(d.text)||(c=0);let b=/^\s*/.exec(d.text)[0],i=VI(t,c);(b!=i||n.fromt.readOnly?!1:(e(t.update(Oce(t,(o,f)=>{f.push({from:o.from,insert:t.facet(wT)})}),{userEvent:"input.indent"})),!0),Qbe=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Oce(t,(o,f)=>{let P=/^\s*/.exec(o.text)[0];if(!P)return;let d=xx(P,t.tabSize),l=0,n=VI(t,Math.max(0,d-WH(t)));for(;l({mac:t.key,run:t.run,shift:t.shift}))),aMe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:bAe,shift:PAe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:xAe,shift:RAe},{key:"Alt-ArrowUp",run:YAe},{key:"Shift-Alt-ArrowUp",run:GAe},{key:"Alt-ArrowDown",run:XAe},{key:"Shift-Alt-ArrowDown",run:KAe},{key:"Escape",run:UAe},{key:"Mod-Enter",run:nMe},{key:"Alt-l",mac:"Ctrl-l",run:$Ae},{key:"Mod-i",run:VAe,preventDefault:!0},{key:"Mod-[",run:Qbe},{key:"Mod-]",run:jbe},{key:"Mod-Alt-\\",run:rMe},{key:"Shift-Mod-k",run:JAe},{key:"Shift-Mod-\\",run:AAe},{key:"Mod-/",run:G8e},{key:"Alt-A",run:J8e}].concat(iMe),sMe={key:"Tab",run:jbe,shift:Qbe};function Bf(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,o=arguments[1];if(o&&typeof o=="object"&&o.nodeType==null&&!Array.isArray(o)){for(var f in o)if(Object.prototype.hasOwnProperty.call(o,f)){var P=o[f];typeof P=="string"?t.setAttribute(f,P):P!=null&&(t[f]=P)}e++}for(;et.normalize("NFKD"):t=>t;class hM{constructor(e,o,f=0,P=e.length,d,l){this.test=l,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(f,P),this.bufferStart=f,this.normalize=d?n=>d(Zpe(n)):Zpe,this.query=this.normalize(o)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Jm(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let o=Jle(e),f=this.bufferStart+this.bufferPos;this.bufferPos+=Wy(e);let P=this.normalize(o);for(let d=0,l=f;;d++){let n=P.charCodeAt(d),c=this.match(n,l);if(d==P.length-1){if(c)return this.value=c,this;break}l==f&&dthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let o=this.matchPos<=this.to&&this.re.exec(this.curLine);if(o){let f=this.curLineStart+o.index,P=f+o[0].length;if(this.matchPos=KH(this.text,P+(f==P?1:0)),f==this.curLineStart+this.curLine.length&&this.nextLine(),(fthis.value.to)&&(!this.test||this.test(f,P,o)))return this.value={from:f,to:P,match:o},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=f||P.to<=o){let n=new eM(o,e.sliceString(o,f));return Aie.set(e,n),n}if(P.from==o&&P.to==f)return P;let{text:d,from:l}=P;return l>o&&(d=e.sliceString(o,l)+d,l=o),P.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,o=this.re.exec(this.flat.text);if(o&&!o[0]&&o.index==e&&(this.re.lastIndex=e+1,o=this.re.exec(this.flat.text)),o){let f=this.flat.from+o.index,P=f+o[0].length;if((this.flat.to>=this.to||o.index+o[0].length<=this.flat.text.length-10)&&(!this.test||this.test(f,P,o)))return this.value={from:f,to:P,match:o},this.matchPos=KH(this.text,P+(f==P?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=eM.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(qbe.prototype[Symbol.iterator]=Wbe.prototype[Symbol.iterator]=function(){return this});function lMe(t){try{return new RegExp(t,Sce),!0}catch{return!1}}function KH(t,e){if(e>=t.length)return e;let o=t.lineAt(e),f;for(;e=56320&&f<57344;)e++;return e}function Sse(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),o=Bf("input",{class:"cm-textfield",name:"line",value:e}),f=Bf("form",{class:"cm-gotoLine",onkeydown:d=>{d.keyCode==27?(d.preventDefault(),t.dispatch({effects:JH.of(!1)}),t.focus()):d.keyCode==13&&(d.preventDefault(),P())},onsubmit:d=>{d.preventDefault(),P()}},Bf("label",t.state.phrase("Go to line"),": ",o)," ",Bf("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function P(){let d=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.value);if(!d)return;let{state:l}=t,n=l.doc.lineAt(l.selection.main.head),[,c,b,i,O]=d,w=i?+i.slice(1):0,y=b?+b:n.number;if(b&&O){let u=y/100;c&&(u=u*(c=="-"?-1:1)+n.number/l.doc.lines),y=Math.round(l.doc.lines*u)}else b&&c&&(y=y*(c=="-"?-1:1)+n.number);let p=l.doc.line(Math.max(1,Math.min(l.doc.lines,y))),a=Yo.cursor(p.from+Math.max(0,Math.min(w,p.length)));t.dispatch({effects:[JH.of(!1),Oa.scrollIntoView(a.from,{y:"center"})],selection:a}),t.focus()}return{dom:f}}const JH=cl.define(),qpe=Ap.define({create(){return!0},update(t,e){for(let o of e.effects)o.is(JH)&&(t=o.value);return t},provide:t=>zI.from(t,e=>e?Sse:null)}),cMe=t=>{let e=BI(t,Sse);if(!e){let o=[JH.of(!0)];t.state.field(qpe,!1)==null&&o.push(cl.appendConfig.of([qpe,uMe])),t.dispatch({effects:o}),e=BI(t,Sse)}return e&&e.dom.querySelector("input").select(),!0},uMe=Oa.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),fMe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ybe=Ba.define({combine(t){return b_(t,fMe,{highlightWordAroundCursor:(e,o)=>e||o,minSelectionLength:Math.min,maxMatches:Math.min})}});function dMe(t){let e=[vMe,gMe];return t&&e.push(Ybe.of(t)),e}const hMe=es.mark({class:"cm-selectionMatch"}),pMe=es.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Wpe(t,e,o,f){return(o==0||t(e.sliceDoc(o-1,o))!=Md.Word)&&(f==e.doc.length||t(e.sliceDoc(f,f+1))!=Md.Word)}function mMe(t,e,o,f){return t(e.sliceDoc(o,o+1))==Md.Word&&t(e.sliceDoc(f-1,f))==Md.Word}const gMe=Wd.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Ybe),{state:o}=t,f=o.selection;if(f.ranges.length>1)return es.none;let P=f.main,d,l=null;if(P.empty){if(!e.highlightWordAroundCursor)return es.none;let c=o.wordAt(P.head);if(!c)return es.none;l=o.charCategorizer(P.head),d=o.sliceDoc(c.from,c.to)}else{let c=P.to-P.from;if(c200)return es.none;if(e.wholeWords){if(d=o.sliceDoc(P.from,P.to),l=o.charCategorizer(P.head),!(Wpe(l,o,P.from,P.to)&&mMe(l,o,P.from,P.to)))return es.none}else if(d=o.sliceDoc(P.from,P.to).trim(),!d)return es.none}let n=[];for(let c of t.visibleRanges){let b=new hM(o.doc,d,c.from,c.to);for(;!b.next().done;){let{from:i,to:O}=b.value;if((!l||Wpe(l,o,i,O))&&(P.empty&&i<=P.from&&O>=P.to?n.push(pMe.range(i,O)):(i>=P.to||O<=P.from)&&n.push(hMe.range(i,O)),n.length>e.maxMatches))return es.none}}return es.set(n)}},{decorations:t=>t.decorations}),vMe=Oa.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),yMe=({state:t,dispatch:e})=>{let{selection:o}=t,f=Yo.create(o.ranges.map(P=>t.wordAt(P.head)||Yo.cursor(P.head)),o.mainIndex);return f.eq(o)?!1:(e(t.update({selection:f})),!0)};function bMe(t,e){let{main:o,ranges:f}=t.selection,P=t.wordAt(o.head),d=P&&P.from==o.from&&P.to==o.to;for(let l=!1,n=new hM(t.doc,e,f[f.length-1].to);;)if(n.next(),n.done){if(l)return null;n=new hM(t.doc,e,0,Math.max(0,f[f.length-1].from-1)),l=!0}else{if(l&&f.some(c=>c.from==n.value.from))continue;if(d){let c=t.wordAt(n.value.from);if(!c||c.from!=n.value.from||c.to!=n.value.to)continue}return n.value}}const xMe=({state:t,dispatch:e})=>{let{ranges:o}=t.selection;if(o.some(d=>d.from===d.to))return yMe({state:t,dispatch:e});let f=t.sliceDoc(o[0].from,o[0].to);if(t.selection.ranges.some(d=>t.sliceDoc(d.from,d.to)!=f))return!1;let P=bMe(t,f);return P?(e(t.update({selection:t.selection.addRange(Yo.range(P.from,P.to),!1),effects:Oa.scrollIntoView(P.to)})),!0):!1},EM=Ba.define({combine(t){return b_(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new RMe(e),scrollToMatch:e=>Oa.scrollIntoView(e)})}});class Xbe{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||lMe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(o,f)=>f=="n"?` +`:f=="r"?"\r":f=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new SMe(this):new wMe(this)}getCursor(e,o=0,f){let P=e.doc?e:jl.create({doc:e});return f==null&&(f=P.doc.length),this.regexp?NA(this,P,o,f):FA(this,P,o,f)}}class Gbe{constructor(e){this.spec=e}}function FA(t,e,o,f){return new hM(e.doc,t.unquoted,o,f,t.caseSensitive?void 0:P=>P.toLowerCase(),t.wholeWord?_Me(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function _Me(t,e){return(o,f,P,d)=>((d>o||d+P.length=o)return null;P.push(f.value)}return P}highlight(e,o,f,P){let d=FA(this.spec,e,Math.max(0,o-this.spec.unquoted.length),Math.min(f+this.spec.unquoted.length,e.doc.length));for(;!d.next().done;)P(d.value.from,d.value.to)}}function NA(t,e,o,f){return new qbe(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?OMe(e.charCategorizer(e.selection.main.head)):void 0},o,f)}function eZ(t,e){return t.slice(ng(t,e,!1),e)}function tZ(t,e){return t.slice(e,ng(t,e))}function OMe(t){return(e,o,f)=>!f[0].length||(t(eZ(f.input,f.index))!=Md.Word||t(tZ(f.input,f.index))!=Md.Word)&&(t(tZ(f.input,f.index+f[0].length))!=Md.Word||t(eZ(f.input,f.index+f[0].length))!=Md.Word)}class SMe extends Gbe{nextMatch(e,o,f){let P=NA(this.spec,e,f,e.doc.length).next();return P.done&&(P=NA(this.spec,e,0,o).next()),P.done?null:P.value}prevMatchInRange(e,o,f){for(let P=1;;P++){let d=Math.max(o,f-P*1e4),l=NA(this.spec,e,d,f),n=null;for(;!l.next().done;)n=l.value;if(n&&(d==o||n.from>d+10))return n;if(d==o)return null}}prevMatch(e,o,f){return this.prevMatchInRange(e,0,o)||this.prevMatchInRange(e,f,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(o,f)=>f=="$"?"$":f=="&"?e.match[0]:f!="0"&&+f=o)return null;P.push(f.value)}return P}highlight(e,o,f,P){let d=NA(this.spec,e,Math.max(0,o-250),Math.min(f+250,e.doc.length));for(;!d.next().done;)P(d.value.from,d.value.to)}}const UI=cl.define(),kce=cl.define(),tS=Ap.define({create(t){return new Mie(kse(t).create(),null)},update(t,e){for(let o of e.effects)o.is(UI)?t=new Mie(o.value.create(),t.panel):o.is(kce)&&(t=new Mie(t.query,o.value?Tce:null));return t},provide:t=>zI.from(t,e=>e.panel)});class Mie{constructor(e,o){this.query=e,this.panel=o}}const kMe=es.mark({class:"cm-searchMatch"}),TMe=es.mark({class:"cm-searchMatch cm-searchMatch-selected"}),CMe=Wd.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(tS))}update(t){let e=t.state.field(tS);(e!=t.startState.field(tS)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return es.none;let{view:o}=this,f=new oS;for(let P=0,d=o.visibleRanges,l=d.length;Pd[P+1].from-2*250;)c=d[++P].to;t.highlight(o.state,n,c,(b,i)=>{let O=o.state.selection.ranges.some(w=>w.from==b&&w.to==i);f.add(b,i,O?TMe:kMe)})}return f.finish()}},{decorations:t=>t.decorations});function wD(t){return e=>{let o=e.state.field(tS,!1);return o&&o.query.spec.valid?t(e,o):exe(e)}}const nZ=wD((t,{query:e})=>{let{to:o}=t.state.selection.main,f=e.nextMatch(t.state,o,o);if(!f)return!1;let P=Yo.single(f.from,f.to),d=t.state.facet(EM);return t.dispatch({selection:P,effects:[Cce(t,f),d.scrollToMatch(P.main,t)],userEvent:"select.search"}),Jbe(t),!0}),rZ=wD((t,{query:e})=>{let{state:o}=t,{from:f}=o.selection.main,P=e.prevMatch(o,f,f);if(!P)return!1;let d=Yo.single(P.from,P.to),l=t.state.facet(EM);return t.dispatch({selection:d,effects:[Cce(t,P),l.scrollToMatch(d.main,t)],userEvent:"select.search"}),Jbe(t),!0}),AMe=wD((t,{query:e})=>{let o=e.matchAll(t.state,1e3);return!o||!o.length?!1:(t.dispatch({selection:Yo.create(o.map(f=>Yo.range(f.from,f.to))),userEvent:"select.search.matches"}),!0)}),MMe=({state:t,dispatch:e})=>{let o=t.selection;if(o.ranges.length>1||o.main.empty)return!1;let{from:f,to:P}=o.main,d=[],l=0;for(let n=new hM(t.doc,t.sliceDoc(f,P));!n.next().done;){if(d.length>1e3)return!1;n.value.from==f&&(l=d.length),d.push(Yo.range(n.value.from,n.value.to))}return e(t.update({selection:Yo.create(d,l),userEvent:"select.search.matches"})),!0},Ype=wD((t,{query:e})=>{let{state:o}=t,{from:f,to:P}=o.selection.main;if(o.readOnly)return!1;let d=e.nextMatch(o,f,f);if(!d)return!1;let l=[],n,c,b=[];if(d.from==f&&d.to==P&&(c=o.toText(e.getReplacement(d)),l.push({from:d.from,to:d.to,insert:c}),d=e.nextMatch(o,d.from,d.to),b.push(Oa.announce.of(o.phrase("replaced match on line $",o.doc.lineAt(f).number)+"."))),d){let i=l.length==0||l[0].from>=d.to?0:d.to-d.from-c.length;n=Yo.single(d.from-i,d.to-i),b.push(Cce(t,d)),b.push(o.facet(EM).scrollToMatch(n.main,t))}return t.dispatch({changes:l,selection:n,effects:b,userEvent:"input.replace"}),!0}),EMe=wD((t,{query:e})=>{if(t.state.readOnly)return!1;let o=e.matchAll(t.state,1e9).map(P=>{let{from:d,to:l}=P;return{from:d,to:l,insert:e.getReplacement(P)}});if(!o.length)return!1;let f=t.state.phrase("replaced $ matches",o.length)+".";return t.dispatch({changes:o,effects:Oa.announce.of(f),userEvent:"input.replace.all"}),!0});function Tce(t){return t.state.facet(EM).createPanel(t)}function kse(t,e){var o,f,P,d,l;let n=t.selection.main,c=n.empty||n.to>n.from+100?"":t.sliceDoc(n.from,n.to);if(e&&!c)return e;let b=t.facet(EM);return new Xbe({search:((o=e==null?void 0:e.literal)!==null&&o!==void 0?o:b.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:(f=e==null?void 0:e.caseSensitive)!==null&&f!==void 0?f:b.caseSensitive,literal:(P=e==null?void 0:e.literal)!==null&&P!==void 0?P:b.literal,regexp:(d=e==null?void 0:e.regexp)!==null&&d!==void 0?d:b.regexp,wholeWord:(l=e==null?void 0:e.wholeWord)!==null&&l!==void 0?l:b.wholeWord})}function Kbe(t){let e=BI(t,Tce);return e&&e.dom.querySelector("[main-field]")}function Jbe(t){let e=Kbe(t);e&&e==t.root.activeElement&&e.select()}const exe=t=>{let e=t.state.field(tS,!1);if(e&&e.panel){let o=Kbe(t);if(o&&o!=t.root.activeElement){let f=kse(t.state,e.query.spec);f.valid&&t.dispatch({effects:UI.of(f)}),o.focus(),o.select()}}else t.dispatch({effects:[kce.of(!0),e?UI.of(kse(t.state,e.query.spec)):cl.appendConfig.of(IMe)]});return!0},txe=t=>{let e=t.state.field(tS,!1);if(!e||!e.panel)return!1;let o=BI(t,Tce);return o&&o.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:kce.of(!1)}),!0},PMe=[{key:"Mod-f",run:exe,scope:"editor search-panel"},{key:"F3",run:nZ,shift:rZ,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:nZ,shift:rZ,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:txe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:MMe},{key:"Mod-Alt-g",run:cMe},{key:"Mod-d",run:xMe,preventDefault:!0}];class RMe{constructor(e){this.view=e;let o=this.query=e.state.field(tS).query.spec;this.commit=this.commit.bind(this),this.searchField=Bf("input",{value:o.search,placeholder:Mv(e,"Find"),"aria-label":Mv(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Bf("input",{value:o.replace,placeholder:Mv(e,"Replace"),"aria-label":Mv(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Bf("input",{type:"checkbox",name:"case",form:"",checked:o.caseSensitive,onchange:this.commit}),this.reField=Bf("input",{type:"checkbox",name:"re",form:"",checked:o.regexp,onchange:this.commit}),this.wordField=Bf("input",{type:"checkbox",name:"word",form:"",checked:o.wholeWord,onchange:this.commit});function f(P,d,l){return Bf("button",{class:"cm-button",name:P,onclick:d,type:"button"},l)}this.dom=Bf("div",{onkeydown:P=>this.keydown(P),class:"cm-search"},[this.searchField,f("next",()=>nZ(e),[Mv(e,"next")]),f("prev",()=>rZ(e),[Mv(e,"previous")]),f("select",()=>AMe(e),[Mv(e,"all")]),Bf("label",null,[this.caseField,Mv(e,"match case")]),Bf("label",null,[this.reField,Mv(e,"regexp")]),Bf("label",null,[this.wordField,Mv(e,"by word")]),...e.state.readOnly?[]:[Bf("br"),this.replaceField,f("replace",()=>Ype(e),[Mv(e,"replace")]),f("replaceAll",()=>EMe(e),[Mv(e,"replace all")])],Bf("button",{name:"close",onclick:()=>txe(e),"aria-label":Mv(e,"close"),type:"button"},["×"])])}commit(){let e=new Xbe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:UI.of(e)}))}keydown(e){j6e(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?rZ:nZ)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Ype(this.view))}update(e){for(let o of e.transactions)for(let f of o.effects)f.is(UI)&&!f.value.eq(this.query)&&this.setQuery(f.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(EM).top}}function Mv(t,e){return t.state.phrase(e)}const UQ=30,jQ=/[\s\.,:;?!]/;function Cce(t,{from:e,to:o}){let f=t.state.doc.lineAt(e),P=t.state.doc.lineAt(o).to,d=Math.max(f.from,e-UQ),l=Math.min(P,o+UQ),n=t.state.sliceDoc(d,l);if(d!=f.from){for(let c=0;cn.length-UQ;c--)if(!jQ.test(n[c-1])&&jQ.test(n[c])){n=n.slice(0,c);break}}return Oa.announce.of(`${t.state.phrase("current match")}. ${n} ${t.state.phrase("on line")} ${f.number}.`)}const LMe=Oa.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),IMe=[tS,Vv.low(CMe),LMe];class Ace{constructor(e,o,f){this.state=e,this.pos=o,this.explicit=f,this.abortListeners=[]}tokenBefore(e){let o=Gu(this.state).resolveInner(this.pos,-1);for(;o&&e.indexOf(o.name)<0;)o=o.parent;return o?{from:o.from,to:this.pos,text:this.state.sliceDoc(o.from,this.pos),type:o.type}:null}matchBefore(e){let o=this.state.doc.lineAt(this.pos),f=Math.max(o.from,this.pos-250),P=o.text.slice(f-o.from,this.pos-o.from),d=P.search(nxe(e,!1));return d<0?null:{from:f+d,to:this.pos,text:P.slice(d)}}get aborted(){return this.abortListeners==null}addEventListener(e,o){e=="abort"&&this.abortListeners&&this.abortListeners.push(o)}}function Xpe(t){let e=Object.keys(t).join(""),o=/\w/.test(e);return o&&(e=e.replace(/\w/g,"")),`[${o?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function DMe(t){let e=Object.create(null),o=Object.create(null);for(let{label:P}of t){e[P[0]]=!0;for(let d=1;dtypeof P=="string"?{label:P}:P),[o,f]=e.every(P=>/^\w+$/.test(P.label))?[/\w*$/,/\w+$/]:DMe(e);return P=>{let d=P.matchBefore(f);return d||P.explicit?{from:d?d.from:P.pos,options:e,validFor:o}:null}}function Mce(t,e){return o=>{for(let f=Gu(o.state).resolveInner(o.pos,-1);f;f=f.parent){if(t.indexOf(f.name)>-1)return null;if(f.type.isTop)break}return e(o)}}class Gpe{constructor(e,o,f,P){this.completion=e,this.source=o,this.match=f,this.score=P}}function nS(t){return t.selection.main.from}function nxe(t,e){var o;let{source:f}=t,P=e&&f[0]!="^",d=f[f.length-1]!="$";return!P&&!d?t:new RegExp(`${P?"^":""}(?:${f})${d?"$":""}`,(o=t.flags)!==null&&o!==void 0?o:t.ignoreCase?"i":"")}const rxe=LO.define();function BMe(t,e,o,f){let{main:P}=t.selection,d=o-P.from,l=f-P.from;return Object.assign(Object.assign({},t.changeByRange(n=>n!=P&&o!=f&&t.sliceDoc(n.from+d,n.from+l)!=t.sliceDoc(o,f)?{range:n}:{changes:{from:n.from+d,to:f==P.from?n.to:n.from+l,insert:e},range:Yo.cursor(n.from+d+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Kpe=new WeakMap;function zMe(t){if(!Array.isArray(t))return t;let e=Kpe.get(t);return e||Kpe.set(t,e=oq(t)),e}const Ece=cl.define(),jI=cl.define();class FMe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let o=0;o=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(A=Jle(S))!=A.toLowerCase()?1:A!=A.toUpperCase()?2:0;(!m||x==1&&u||_==0&&x!=0)&&(o[O]==S||f[O]==S&&(w=!0)?l[O++]=m:l.length&&(h=!1)),_=x,m+=Wy(S)}return O==c&&l[0]==0&&h?this.result(-100+(w?-200:0),l,e):y==c&&p==0?this.ret(-200-e.length+(a==e.length?0:-100),[0,a]):n>-1?this.ret(-700-e.length,[n,n+this.pattern.length]):y==c?this.ret(-200+-700-e.length,[p,a]):O==c?this.result(-100+(w?-200:0)+-700+(h?0:-1100),l,e):o.length==2?!1:this.result((P[0]?-700:0)+-200+-1100,P,e)}result(e,o,f){let P=[],d=0;for(let l of o){let n=l+(this.astral?Wy(Jm(f,l)):1);d&&P[d-1]==l?P[d-1]=n:(P[d++]=l,P[d++]=n)}return this.ret(e-f.length,P)}}const Ug=Ba.define({combine(t){return b_(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:NMe,compareCompletions:(e,o)=>e.label.localeCompare(o.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,o)=>e&&o,closeOnBlur:(e,o)=>e&&o,icons:(e,o)=>e&&o,tooltipClass:(e,o)=>f=>Jpe(e(f),o(f)),optionClass:(e,o)=>f=>Jpe(e(f),o(f)),addToOptions:(e,o)=>e.concat(o)})}});function Jpe(t,e){return t?e?t+" "+e:t:e}function NMe(t,e,o,f,P,d){let l=t.textDirection==qd.RTL,n=l,c=!1,b="top",i,O,w=e.left-P.left,y=P.right-e.right,p=f.right-f.left,a=f.bottom-f.top;if(n&&w=a||m>e.top?i=o.bottom-e.top:(b="bottom",i=e.bottom-o.top)}let u=(e.bottom-e.top)/d.offsetHeight,h=(e.right-e.left)/d.offsetWidth;return{style:`${b}: ${i/u}px; max-width: ${O/h}px`,class:"cm-completionInfo-"+(c?l?"left-narrow":"right-narrow":n?"left":"right")}}function $Me(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(o){let f=document.createElement("div");return f.classList.add("cm-completionIcon"),o.type&&f.classList.add(...o.type.split(/\s+/g).map(P=>"cm-completionIcon-"+P)),f.setAttribute("aria-hidden","true"),f},position:20}),e.push({render(o,f,P,d){let l=document.createElement("span");l.className="cm-completionLabel";let n=o.displayLabel||o.label,c=0;for(let b=0;bc&&l.appendChild(document.createTextNode(n.slice(c,i)));let w=l.appendChild(document.createElement("span"));w.appendChild(document.createTextNode(n.slice(i,O))),w.className="cm-completionMatchedText",c=O}return co.position-f.position).map(o=>o.render)}function Eie(t,e,o){if(t<=o)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let P=Math.floor(e/o);return{from:P*o,to:(P+1)*o}}let f=Math.floor((t-e)/o);return{from:t-(f+1)*o,to:t-f*o}}class VMe{constructor(e,o,f){this.view=e,this.stateField=o,this.applyCompletion=f,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:c=>this.placeInfo(c),key:this},this.space=null,this.currentClass="";let P=e.state.field(o),{options:d,selected:l}=P.open,n=e.state.facet(Ug);this.optionContent=$Me(n),this.optionClass=n.optionClass,this.tooltipClass=n.tooltipClass,this.range=Eie(d.length,l,n.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",c=>{let{options:b}=e.state.field(o).open;for(let i=c.target,O;i&&i!=this.dom;i=i.parentNode)if(i.nodeName=="LI"&&(O=/-(\d+)$/.exec(i.id))&&+O[1]{let b=e.state.field(this.stateField,!1);b&&b.tooltip&&e.state.facet(Ug).closeOnBlur&&c.relatedTarget!=e.contentDOM&&e.dispatch({effects:jI.of(null)})}),this.showOptions(d,P.id)}mount(){this.updateSel()}showOptions(e,o){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,o,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var o;let f=e.state.field(this.stateField),P=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),f!=P){let{options:d,selected:l,disabled:n}=f.open;(!P.open||P.open.options!=d)&&(this.range=Eie(d.length,l,e.state.facet(Ug).maxRenderedOptions),this.showOptions(d,f.id)),this.updateSel(),n!=((o=P.open)===null||o===void 0?void 0:o.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!n)}}updateTooltipClass(e){let o=this.tooltipClass(e);if(o!=this.currentClass){for(let f of this.currentClass.split(" "))f&&this.dom.classList.remove(f);for(let f of o.split(" "))f&&this.dom.classList.add(f);this.currentClass=o}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),o=e.open;if((o.selected>-1&&o.selected=this.range.to)&&(this.range=Eie(o.options.length,o.selected,this.view.state.facet(Ug).maxRenderedOptions),this.showOptions(o.options,e.id)),this.updateSelectedOption(o.selected)){this.destroyInfo();let{completion:f}=o.options[o.selected],{info:P}=f;if(!P)return;let d=typeof P=="string"?document.createTextNode(P):P(f);if(!d)return;"then"in d?d.then(l=>{l&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(l,f)}).catch(l=>tb(this.view.state,l,"completion info")):this.addInfoPane(d,f)}}addInfoPane(e,o){this.destroyInfo();let f=this.info=document.createElement("div");if(f.className="cm-tooltip cm-completionInfo",e.nodeType!=null)f.appendChild(e),this.infoDestroy=null;else{let{dom:P,destroy:d}=e;f.appendChild(P),this.infoDestroy=d||null}this.dom.appendChild(f),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let o=null;for(let f=this.list.firstChild,P=this.range.from;f;f=f.nextSibling,P++)f.nodeName!="LI"||!f.id?P--:P==e?f.hasAttribute("aria-selected")||(f.setAttribute("aria-selected","true"),o=f):f.hasAttribute("aria-selected")&&f.removeAttribute("aria-selected");return o&&jMe(this.list,o),o}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let o=this.dom.getBoundingClientRect(),f=this.info.getBoundingClientRect(),P=e.getBoundingClientRect(),d=this.space;if(!d){let l=this.dom.ownerDocument.defaultView||window;d={left:0,top:0,right:l.innerWidth,bottom:l.innerHeight}}return P.top>Math.min(d.bottom,o.bottom)-10||P.bottomf.from||f.from==0))if(d=w,typeof b!="string"&&b.header)P.appendChild(b.header(b));else{let y=P.appendChild(document.createElement("completion-section"));y.textContent=w}}const i=P.appendChild(document.createElement("li"));i.id=o+"-"+l,i.setAttribute("role","option");let O=this.optionClass(n);O&&(i.className=O);for(let w of this.optionContent){let y=w(n,this.view.state,this.view,c);y&&i.appendChild(y)}}return f.from&&P.classList.add("cm-completionListIncompleteTop"),f.tonew VMe(o,t,e)}function jMe(t,e){let o=t.getBoundingClientRect(),f=e.getBoundingClientRect(),P=o.height/t.offsetHeight;f.topo.bottom&&(t.scrollTop+=(f.bottom-o.bottom)/P)}function eme(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function QMe(t,e){let o=[],f=null,P=c=>{o.push(c);let{section:b}=c.completion;if(b){f||(f=[]);let i=typeof b=="string"?b:b.name;f.some(O=>O.name==i)||f.push(typeof b=="string"?{name:i}:b)}};for(let c of t)if(c.hasResult()){let b=c.result.getMatch;if(c.result.filter===!1)for(let i of c.result.options)P(new Gpe(i,c.source,b?b(i):[],1e9-o.length));else{let i=new FMe(e.sliceDoc(c.from,c.to));for(let O of c.result.options)if(i.match(O.label)){let w=O.displayLabel?b?b(O,i.matched):[]:i.matched;P(new Gpe(O,c.source,w,i.score+(O.boost||0)))}}}if(f){let c=Object.create(null),b=0,i=(O,w)=>{var y,p;return((y=O.rank)!==null&&y!==void 0?y:1e9)-((p=w.rank)!==null&&p!==void 0?p:1e9)||(O.namei.score-b.score||n(b.completion,i.completion))){let b=c.completion;!l||l.label!=b.label||l.detail!=b.detail||l.type!=null&&b.type!=null&&l.type!=b.type||l.apply!=b.apply||l.boost!=b.boost?d.push(c):eme(c.completion)>eme(l)&&(d[d.length-1]=c),l=c.completion}return d}class jA{constructor(e,o,f,P,d,l){this.options=e,this.attrs=o,this.tooltip=f,this.timestamp=P,this.selected=d,this.disabled=l}setSelected(e,o){return e==this.selected||e>=this.options.length?this:new jA(this.options,tme(o,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,o,f,P,d){let l=QMe(e,o);if(!l.length)return P&&e.some(c=>c.state==1)?new jA(P.options,P.attrs,P.tooltip,P.timestamp,P.selected,!0):null;let n=o.facet(Ug).selectOnOpen?0:-1;if(P&&P.selected!=n&&P.selected!=-1){let c=P.options[P.selected].completion;for(let b=0;bb.hasResult()?Math.min(c,b.from):c,1e8),create:YMe,above:d.aboveCursor},P?P.timestamp:Date.now(),n,!1)}map(e){return new jA(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class oZ{constructor(e,o,f){this.active=e,this.id=o,this.open=f}static start(){return new oZ(qMe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:o}=e,f=o.facet(Ug),d=(f.override||o.languageDataAt("autocomplete",nS(o)).map(zMe)).map(n=>(this.active.find(b=>b.source==n)||new v1(n,this.active.some(b=>b.state!=0)?1:0)).update(e,f));d.length==this.active.length&&d.every((n,c)=>n==this.active[c])&&(d=this.active);let l=this.open;l&&e.docChanged&&(l=l.map(e.changes)),e.selection||d.some(n=>n.hasResult()&&e.changes.touchesRange(n.from,n.to))||!HMe(d,this.active)?l=jA.build(d,o,this.id,l,f):l&&l.disabled&&!d.some(n=>n.state==1)&&(l=null),!l&&d.every(n=>n.state!=1)&&d.some(n=>n.hasResult())&&(d=d.map(n=>n.hasResult()?new v1(n.source,0):n));for(let n of e.effects)n.is(ixe)&&(l=l&&l.setSelected(n.value,this.id));return d==this.active&&l==this.open?this:new oZ(d,this.id,l)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:ZMe}}function HMe(t,e){if(t==e)return!0;for(let o=0,f=0;;){for(;o-1&&(o["aria-activedescendant"]=t+"-"+e),o}const qMe=[];function Tse(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class v1{constructor(e,o,f=-1){this.source=e,this.state=o,this.explicitPos=f}hasResult(){return!1}update(e,o){let f=Tse(e),P=this;f?P=P.handleUserEvent(e,f,o):e.docChanged?P=P.handleChange(e):e.selection&&P.state!=0&&(P=new v1(P.source,0));for(let d of e.effects)if(d.is(Ece))P=new v1(P.source,1,d.value?nS(e.state):-1);else if(d.is(jI))P=new v1(P.source,0);else if(d.is(oxe))for(let l of d.value)l.source==P.source&&(P=l);return P}handleUserEvent(e,o,f){return o=="delete"||!f.activateOnTyping?this.map(e.changes):new v1(this.source,1)}handleChange(e){return e.changes.touchesRange(nS(e.startState))?new v1(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new v1(this.source,this.state,e.mapPos(this.explicitPos))}}class tM extends v1{constructor(e,o,f,P,d){super(e,2,o),this.result=f,this.from=P,this.to=d}hasResult(){return!0}handleUserEvent(e,o,f){var P;let d=e.changes.mapPos(this.from),l=e.changes.mapPos(this.to,1),n=nS(e.state);if((this.explicitPos<0?n<=d:nl||o=="delete"&&nS(e.startState)==this.from)return new v1(this.source,o=="input"&&f.activateOnTyping?1:0);let c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),b;return WMe(this.result.validFor,e.state,d,l)?new tM(this.source,c,this.result,d,l):this.result.update&&(b=this.result.update(this.result,d,l,new Ace(e.state,n,c>=0)))?new tM(this.source,c,b,b.from,(P=b.to)!==null&&P!==void 0?P:nS(e.state)):new v1(this.source,1,c)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new v1(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new tM(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function WMe(t,e,o,f){if(!t)return!1;let P=e.sliceDoc(o,f);return typeof t=="function"?t(P,o,f,e):nxe(t,!0).test(P)}const oxe=cl.define({map(t,e){return t.map(o=>o.map(e))}}),ixe=cl.define(),Bv=Ap.define({create(){return oZ.start()},update(t,e){return t.update(e)},provide:t=>[cce.from(t,e=>e.tooltip),Oa.contentAttributes.from(t,e=>e.attrs)]});function axe(t,e){const o=e.completion.apply||e.completion.label;let f=t.state.field(Bv).active.find(P=>P.source==e.source);return f instanceof tM?(typeof o=="string"?t.dispatch(Object.assign(Object.assign({},BMe(t.state,o,f.from,f.to)),{annotations:rxe.of(e.completion)})):o(t,e.completion,f.from,f.to),!0):!1}const YMe=UMe(Bv,axe);function QQ(t,e="option"){return o=>{let f=o.state.field(Bv,!1);if(!f||!f.open||f.open.disabled||Date.now()-f.open.timestamp-1?f.open.selected+P*(t?1:-1):t?0:l-1;return n<0?n=e=="page"?0:l-1:n>=l&&(n=e=="page"?l-1:0),o.dispatch({effects:ixe.of(n)}),!0}}const XMe=t=>{let e=t.state.field(Bv,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(Bv,!1)?(t.dispatch({effects:Ece.of(!0)}),!0):!1,KMe=t=>{let e=t.state.field(Bv,!1);return!e||!e.active.some(o=>o.state!=0)?!1:(t.dispatch({effects:jI.of(null)}),!0)};class JMe{constructor(e,o){this.active=e,this.context=o,this.time=Date.now(),this.updates=[],this.done=void 0}}const eEe=50,tEe=1e3,nEe=Wd.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of t.state.field(Bv).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(Bv);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Bv)==e)return;let o=t.transactions.some(f=>(f.selection||f.docChanged)&&!Tse(f));for(let f=0;feEe&&Date.now()-P.time>tEe){for(let d of P.context.abortListeners)try{d()}catch(l){tb(this.view.state,l)}P.context.abortListeners=null,this.running.splice(f--,1)}else P.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(f=>f.state==1&&!this.running.some(P=>P.active.source==f.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let f of t.transactions)Tse(f)=="input"?this.composing=2:this.composing==2&&f.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(Bv);for(let o of e.active)o.state==1&&!this.running.some(f=>f.active.source==o.source)&&this.startQuery(o)}startQuery(t){let{state:e}=this.view,o=nS(e),f=new Ace(e,o,t.explicitPos==o),P=new JMe(t,f);this.running.push(P),Promise.resolve(t.source(f)).then(d=>{P.context.aborted||(P.done=d||null,this.scheduleAccept())},d=>{this.view.dispatch({effects:jI.of(null)}),tb(this.view.state,d)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Ug).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],o=this.view.state.facet(Ug);for(let f=0;fl.source==P.active.source);if(d&&d.state==1)if(P.done==null){let l=new v1(P.active.source,0);for(let n of P.updates)l=l.update(n,o);l.state!=1&&e.push(l)}else this.startQuery(d)}e.length&&this.view.dispatch({effects:oxe.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Bv,!1);if(e&&e.tooltip&&this.view.state.facet(Ug).closeOnBlur){let o=e.open&&$ye(this.view,e.open.tooltip);(!o||!o.dom.contains(t.relatedTarget))&&this.view.dispatch({effects:jI.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Ece.of(!1)}),20),this.composing=0}}}),sxe=Oa.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class rEe{constructor(e,o,f,P){this.field=e,this.line=o,this.from=f,this.to=P}}class Pce{constructor(e,o,f){this.field=e,this.from=o,this.to=f}map(e){let o=e.mapPos(this.from,-1,tg.TrackDel),f=e.mapPos(this.to,1,tg.TrackDel);return o==null||f==null?null:new Pce(this.field,o,f)}}class Rce{constructor(e,o){this.lines=e,this.fieldPositions=o}instantiate(e,o){let f=[],P=[o],d=e.doc.lineAt(o),l=/^\s*/.exec(d.text)[0];for(let c of this.lines){if(f.length){let b=l,i=/^\t*/.exec(c)[0].length;for(let O=0;Onew Pce(c.field,P[c.line]+c.from,P[c.line]+c.to));return{text:f,ranges:n}}static parse(e){let o=[],f=[],P=[],d;for(let l of e.split(/\r\n?|\n/)){for(;d=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(l);){let n=d[1]?+d[1]:null,c=d[2]||d[3]||"",b=-1;for(let i=0;i=b&&O.field++}P.push(new rEe(b,f.length,d.index,d.index+c.length)),l=l.slice(0,d.index)+c+l.slice(d.index+d[0].length)}for(let n;n=/\\([{}])/.exec(l);){l=l.slice(0,n.index)+n[1]+l.slice(n.index+n[0].length);for(let c of P)c.line==f.length&&c.from>n.index&&(c.from--,c.to--)}f.push(l)}return new Rce(f,P)}}let oEe=es.widget({widget:new class extends Ox{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),iEe=es.mark({class:"cm-snippetField"});class PM{constructor(e,o){this.ranges=e,this.active=o,this.deco=es.set(e.map(f=>(f.from==f.to?oEe:iEe).range(f.from,f.to)))}map(e){let o=[];for(let f of this.ranges){let P=f.map(e);if(!P)return null;o.push(P)}return new PM(o,this.active)}selectionInsideField(e){return e.ranges.every(o=>this.ranges.some(f=>f.field==this.active&&f.from<=o.from&&f.to>=o.to))}}const OD=cl.define({map(t,e){return t&&t.map(e)}}),aEe=cl.define(),QI=Ap.define({create(){return null},update(t,e){for(let o of e.effects){if(o.is(OD))return o.value;if(o.is(aEe)&&t)return new PM(t.ranges,o.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Oa.decorations.from(t,e=>e?e.deco:es.none)});function Lce(t,e){return Yo.create(t.filter(o=>o.field==e).map(o=>Yo.range(o.from,o.to)))}function sEe(t){let e=Rce.parse(t);return(o,f,P,d)=>{let{text:l,ranges:n}=e.instantiate(o.state,P),c={changes:{from:P,to:d,insert:ru.of(l)},scrollIntoView:!0,annotations:f?rxe.of(f):void 0};if(n.length&&(c.selection=Lce(n,0)),n.length>1){let b=new PM(n,0),i=c.effects=[OD.of(b)];o.state.field(QI,!1)===void 0&&i.push(cl.appendConfig.of([QI,dEe,hEe,sxe]))}o.dispatch(o.state.update(c))}}function lxe(t){return({state:e,dispatch:o})=>{let f=e.field(QI,!1);if(!f||t<0&&f.active==0)return!1;let P=f.active+t,d=t>0&&!f.ranges.some(l=>l.field==P+t);return o(e.update({selection:Lce(f.ranges,P),effects:OD.of(d?null:new PM(f.ranges,P)),scrollIntoView:!0})),!0}}const lEe=({state:t,dispatch:e})=>t.field(QI,!1)?(e(t.update({effects:OD.of(null)})),!0):!1,cEe=lxe(1),uEe=lxe(-1),fEe=[{key:"Tab",run:cEe,shift:uEe},{key:"Escape",run:lEe}],nme=Ba.define({combine(t){return t.length?t[0]:fEe}}),dEe=Vv.highest(IO.compute([nme],t=>t.facet(nme)));function Hd(t,e){return Object.assign(Object.assign({},e),{apply:sEe(t)})}const hEe=Oa.domEventHandlers({mousedown(t,e){let o=e.state.field(QI,!1),f;if(!o||(f=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let P=o.ranges.find(d=>d.from<=f&&d.to>=f);return!P||P.field==o.active?!1:(e.dispatch({selection:Lce(o.ranges,P.field),effects:OD.of(o.ranges.some(d=>d.field>P.field)?new PM(o.ranges,P.field):null),scrollIntoView:!0}),!0)}}),HI={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},lT=cl.define({map(t,e){let o=e.mapPos(t,-1,tg.TrackAfter);return o??void 0}}),Ice=new class extends pT{};Ice.startSide=1;Ice.endSide=-1;const cxe=Ap.define({create(){return Vu.empty},update(t,e){if(t=t.map(e.changes),e.selection){let o=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:f=>f>=o.from&&f<=o.to})}for(let o of e.effects)o.is(lT)&&(t=t.update({add:[Ice.range(o.value,o.value+1)]}));return t}});function pEe(){return[gEe,cxe]}const Pie="()[]{}<>";function uxe(t){for(let e=0;e{if((mEe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let P=t.state.selection.main;if(f.length>2||f.length==2&&Wy(Jm(f,0))==1||e!=P.from||o!=P.to)return!1;let d=bEe(t.state,f);return d?(t.dispatch(d),!0):!1}),vEe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let f=fxe(t,t.selection.main.head).brackets||HI.brackets,P=null,d=t.changeByRange(l=>{if(l.empty){let n=xEe(t.doc,l.head);for(let c of f)if(c==n&&iq(t.doc,l.head)==uxe(Jm(c,0)))return{changes:{from:l.head-c.length,to:l.head+c.length},range:Yo.cursor(l.head-c.length)}}return{range:P=l}});return P||e(t.update(d,{scrollIntoView:!0,userEvent:"delete.backward"})),!P},yEe=[{key:"Backspace",run:vEe}];function bEe(t,e){let o=fxe(t,t.selection.main.head),f=o.brackets||HI.brackets;for(let P of f){let d=uxe(Jm(P,0));if(e==P)return d==P?OEe(t,P,f.indexOf(P+P+P)>-1,o):_Ee(t,P,d,o.before||HI.before);if(e==d&&dxe(t,t.selection.main.from))return wEe(t,P,d)}return null}function dxe(t,e){let o=!1;return t.field(cxe).between(0,t.doc.length,f=>{f==e&&(o=!0)}),o}function iq(t,e){let o=t.sliceString(e,e+2);return o.slice(0,Wy(Jm(o,0)))}function xEe(t,e){let o=t.sliceString(e-2,e);return Wy(Jm(o,0))==o.length?o:o.slice(1)}function _Ee(t,e,o,f){let P=null,d=t.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:o,from:l.to}],effects:lT.of(l.to+e.length),range:Yo.range(l.anchor+e.length,l.head+e.length)};let n=iq(t.doc,l.head);return!n||/\s/.test(n)||f.indexOf(n)>-1?{changes:{insert:e+o,from:l.head},effects:lT.of(l.head+e.length),range:Yo.cursor(l.head+e.length)}:{range:P=l}});return P?null:t.update(d,{scrollIntoView:!0,userEvent:"input.type"})}function wEe(t,e,o){let f=null,P=t.changeByRange(d=>d.empty&&iq(t.doc,d.head)==o?{changes:{from:d.head,to:d.head+o.length,insert:o},range:Yo.cursor(d.head+o.length)}:f={range:d});return f?null:t.update(P,{scrollIntoView:!0,userEvent:"input.type"})}function OEe(t,e,o,f){let P=f.stringPrefixes||HI.stringPrefixes,d=null,l=t.changeByRange(n=>{if(!n.empty)return{changes:[{insert:e,from:n.from},{insert:e,from:n.to}],effects:lT.of(n.to+e.length),range:Yo.range(n.anchor+e.length,n.head+e.length)};let c=n.head,b=iq(t.doc,c),i;if(b==e){if(rme(t,c))return{changes:{insert:e+e,from:c},effects:lT.of(c+e.length),range:Yo.cursor(c+e.length)};if(dxe(t,c)){let w=o&&t.sliceDoc(c,c+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+w.length,insert:w},range:Yo.cursor(c+w.length)}}}else{if(o&&t.sliceDoc(c-2*e.length,c)==e+e&&(i=ome(t,c-2*e.length,P))>-1&&rme(t,i))return{changes:{insert:e+e+e+e,from:c},effects:lT.of(c+e.length),range:Yo.cursor(c+e.length)};if(t.charCategorizer(c)(b)!=Md.Word&&ome(t,c,P)>-1&&!SEe(t,c,e,P))return{changes:{insert:e+e,from:c},effects:lT.of(c+e.length),range:Yo.cursor(c+e.length)}}return{range:d=n}});return d?null:t.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function rme(t,e){let o=Gu(t).resolveInner(e+1);return o.parent&&o.from==e}function SEe(t,e,o,f){let P=Gu(t).resolveInner(e,-1),d=f.reduce((l,n)=>Math.max(l,n.length),0);for(let l=0;l<5;l++){let n=t.sliceDoc(P.from,Math.min(P.to,P.from+o.length+d)),c=n.indexOf(o);if(!c||c>-1&&f.indexOf(n.slice(0,c))>-1){let i=P.firstChild;for(;i&&i.from==P.from&&i.to-i.from>o.length+c;){if(t.sliceDoc(i.to-o.length,i.to)==o)return!1;i=i.firstChild}return!0}let b=P.to==e&&P.parent;if(!b)break;P=b}return!1}function ome(t,e,o){let f=t.charCategorizer(e);if(f(t.sliceDoc(e-1,e))!=Md.Word)return e;for(let P of o){let d=e-P.length;if(t.sliceDoc(d,e)==P&&f(t.sliceDoc(d-1,d))!=Md.Word)return d}return-1}function pM(t={}){return[Bv,Ug.of(t),nEe,kEe,sxe]}const hxe=[{key:"Ctrl-Space",run:GMe},{key:"Escape",run:KMe},{key:"ArrowDown",run:QQ(!0)},{key:"ArrowUp",run:QQ(!1)},{key:"PageDown",run:QQ(!0,"page")},{key:"PageUp",run:QQ(!1,"page")},{key:"Enter",run:XMe}],kEe=Vv.highest(IO.computeN([Ug],t=>t.facet(Ug).defaultKeymap?[hxe]:[]));class TEe{constructor(e,o,f){this.from=e,this.to=o,this.diagnostic=f}}class rT{constructor(e,o,f){this.diagnostics=e,this.panel=o,this.selected=f}static init(e,o,f){let P=e,d=f.facet(gxe).markerFilter;d&&(P=d(P));let l=es.set(P.map(n=>n.from==n.to||n.from==n.to-1&&f.doc.lineAt(n.from).to==n.from?es.widget({widget:new DEe(n),diagnostic:n}).range(n.from):es.mark({attributes:{class:"cm-lintRange cm-lintRange-"+n.severity+(n.markClass?" "+n.markClass:"")},diagnostic:n}).range(n.from,n.to)),!0);return new rT(l,o,mM(l))}}function mM(t,e=null,o=0){let f=null;return t.between(o,1e9,(P,d,{spec:l})=>{if(!(e&&l.diagnostic!=e))return f=new TEe(P,d,l.diagnostic),!1}),f}function CEe(t,e){let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(f=>f.is(pxe))||t.changes.touchesRange(o.from,o.to))}function AEe(t,e){return t.field($v,!1)?e:e.concat(cl.appendConfig.of(FEe))}const pxe=cl.define(),Dce=cl.define(),mxe=cl.define(),$v=Ap.define({create(){return new rT(es.none,null,null)},update(t,e){if(e.docChanged){let o=t.diagnostics.map(e.changes),f=null;if(t.selected){let P=e.changes.mapPos(t.selected.from,1);f=mM(o,t.selected.diagnostic,P)||mM(o,null,P)}t=new rT(o,t.panel,f)}for(let o of e.effects)o.is(pxe)?t=rT.init(o.value,t.panel,e.state):o.is(Dce)?t=new rT(t.diagnostics,o.value?aq.open:null,t.selected):o.is(mxe)&&(t=new rT(t.diagnostics,t.panel,o.value));return t},provide:t=>[zI.from(t,e=>e.panel),Oa.decorations.from(t,e=>e.diagnostics)]}),MEe=es.mark({class:"cm-lintRange cm-lintRange-active"});function EEe(t,e,o){let{diagnostics:f}=t.state.field($v),P=[],d=2e8,l=0;f.between(e-(o<0?1:0),e+(o>0?1:0),(c,b,{spec:i})=>{e>=c&&e<=b&&(c==b||(e>c||o>0)&&(eyxe(t,o,!1)))}const REe=t=>{let e=t.state.field($v,!1);(!e||!e.panel)&&t.dispatch({effects:AEe(t.state,[Dce.of(!0)])});let o=BI(t,aq.open);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},ime=t=>{let e=t.state.field($v,!1);return!e||!e.panel?!1:(t.dispatch({effects:Dce.of(!1)}),!0)},LEe=t=>{let e=t.state.field($v,!1);if(!e)return!1;let o=t.state.selection.main,f=e.diagnostics.iter(o.to+1);return!f.value&&(f=e.diagnostics.iter(0),!f.value||f.from==o.from&&f.to==o.to)?!1:(t.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0}),!0)},IEe=[{key:"Mod-Shift-m",run:REe,preventDefault:!0},{key:"F8",run:LEe}],gxe=Ba.define({combine(t){return Object.assign({sources:t.map(e=>e.source)},b_(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,o)=>e?o?f=>e(f)||o(f):e:o}))}});function vxe(t){let e=[];if(t)e:for(let{name:o}of t){for(let f=0;fd.toLowerCase()==P.toLowerCase())){e.push(P);continue e}}e.push("")}return e}function yxe(t,e,o){var f;let P=o?vxe(e.actions):[];return Bf("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Bf("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(f=e.actions)===null||f===void 0?void 0:f.map((d,l)=>{let n=!1,c=w=>{if(w.preventDefault(),n)return;n=!0;let y=mM(t.state.field($v).diagnostics,e);y&&d.apply(t,y.from,y.to)},{name:b}=d,i=P[l]?b.indexOf(P[l]):-1,O=i<0?b:[b.slice(0,i),Bf("u",b.slice(i,i+1)),b.slice(i+1)];return Bf("button",{type:"button",class:"cm-diagnosticAction",onclick:c,onmousedown:c,"aria-label":` Action: ${b}${i<0?"":` (access key "${P[l]})"`}.`},O)}),e.source&&Bf("div",{class:"cm-diagnosticSource"},e.source))}class DEe extends Ox{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Bf("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class ame{constructor(e,o){this.diagnostic=o,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=yxe(e,o,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class aq{constructor(e){this.view=e,this.items=[];let o=P=>{if(P.keyCode==27)ime(this.view),this.view.focus();else if(P.keyCode==38||P.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(P.keyCode==40||P.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(P.keyCode==36)this.moveSelection(0);else if(P.keyCode==35)this.moveSelection(this.items.length-1);else if(P.keyCode==13)this.view.focus();else if(P.keyCode>=65&&P.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:d}=this.items[this.selectedIndex],l=vxe(d.actions);for(let n=0;n{for(let d=0;dime(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field($v).selected;if(!e)return-1;for(let o=0;o{let b=-1,i;for(let O=f;Of&&(this.items.splice(f,b-f),P=!0)),o&&i.diagnostic==o.diagnostic?i.dom.hasAttribute("aria-selected")||(i.dom.setAttribute("aria-selected","true"),d=i):i.dom.hasAttribute("aria-selected")&&i.dom.removeAttribute("aria-selected"),f++});f({sel:d.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:n})=>{let c=n.height/this.list.offsetHeight;l.topn.bottom&&(this.list.scrollTop+=(l.bottom-n.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),P&&this.sync()}sync(){let e=this.list.firstChild;function o(){let f=e;e=f.nextSibling,f.remove()}for(let f of this.items)if(f.dom.parentNode==this.list){for(;e!=f.dom;)o();e=f.dom.nextSibling}else this.list.insertBefore(f.dom,e);for(;e;)o()}moveSelection(e){if(this.selectedIndex<0)return;let o=this.view.state.field($v),f=mM(o.diagnostics,this.items[e].diagnostic);f&&this.view.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0,effects:mxe.of(f)})}static open(e){return new aq(e)}}function BEe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function HQ(t){return BEe(``,'width="6" height="3"')}const zEe=Oa.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:HQ("#d11")},".cm-lintRange-warning":{backgroundImage:HQ("orange")},".cm-lintRange-info":{backgroundImage:HQ("#999")},".cm-lintRange-hint":{backgroundImage:HQ("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),FEe=[$v,Oa.decorations.compute([$v],t=>{let{selected:e,panel:o}=t.field($v);return!e||!o||e.from==e.to?es.none:es.set([MEe.range(e.from,e.to)])}),PCe(EEe,{hideOn:CEe}),zEe],NEe=(()=>[$Ce(),jCe(),aCe(),aAe(),I8e(),Y6e(),eCe(),jl.allowMultipleSelections.of(!0),w8e(),lbe(F8e,{fallback:!0}),H8e(),pEe(),pM(),xCe(),OCe(),dCe(),dMe(),IO.of([...yEe,...aMe,...PMe,...mAe,...E8e,...hxe,...IEe])])();/*! * VueCodemirror v6.1.1 * Copyright (c) Surmon. All rights reserved. * Released under the MIT License. * Surmon -*/var NEe=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[FEe]}),$Ee=Symbol("vue-codemirror-global-config"),S0,VEe=function(t){var e=t.onUpdate,o=t.onChange,f=t.onFocus,P=t.onBlur,d=function(l,n){var c={};for(var b in l)Object.prototype.hasOwnProperty.call(l,b)&&n.indexOf(b)<0&&(c[b]=l[b]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(b=Object.getOwnPropertySymbols(l);io%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,o,f=0){let P=e.parser.context;return new iZ(e,[],o,f,f,0,[],0,P?new sme(P,P.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,o){this.stack.push(this.state,o,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var o;let f=e>>19,P=e&65535,{parser:d}=this.p,l=d.dynamicPrecedence(P);if(l&&(this.score+=l),f==0){this.pushState(d.getGoto(this.state,P,!0),this.reducePos),P=2e3&&!(!((o=this.p.parser.nodeSet.types[P])===null||o===void 0)&&o.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=b):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(P,c)}storeNode(e,o,f,P=4,d=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&l.buffer[n-4]==0&&l.buffer[n-1]>-1){if(o==f)return;if(l.buffer[n-2]>=o){l.buffer[n-2]=f;return}}}if(!d||this.pos==f)this.buffer.push(e,o,f,P);else{let l=this.buffer.length;if(l>0&&this.buffer[l-4]!=0)for(;l>0&&this.buffer[l-2]>f;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,P>4&&(P-=4);this.buffer[l]=e,this.buffer[l+1]=o,this.buffer[l+2]=f,this.buffer[l+3]=P}}shift(e,o,f,P){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=P,this.shiftContext(o,f),o<=this.p.parser.maxNode&&this.buffer.push(o,f,P,4);else{let d=e,{parser:l}=this.p;(P>this.pos||o<=l.maxNode)&&(this.pos=P,l.stateFlag(d,1)||(this.reducePos=P)),this.pushState(d,f),this.shiftContext(o,f),o<=l.maxNode&&this.buffer.push(o,f,P,4)}}apply(e,o,f,P){e&65536?this.reduce(e):this.shift(e,o,f,P)}useNode(e,o){let f=this.p.reused.length-1;(f<0||this.p.reused[f]!=e)&&(this.p.reused.push(e),f++);let P=this.pos;this.reducePos=this.pos=P+e.length,this.pushState(o,P),this.buffer.push(f,P,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,o=e.buffer.length;for(;o>0&&e.buffer[o-2]>e.reducePos;)o-=4;let f=e.buffer.slice(o),P=e.bufferBase+o;for(;e&&P==e.bufferBase;)e=e.parent;return new iZ(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,f,P,this.curContext,this.lookAhead,e)}recoverByDelete(e,o){let f=e<=this.p.parser.maxNode;f&&this.storeNode(e,this.pos,o,4),this.storeNode(0,this.pos,o,f?8:4),this.pos=this.reducePos=o,this.score-=190}canShift(e){for(let o=new qEe(this);;){let f=this.p.parser.stateSlot(o.state,4)||this.p.parser.hasAction(o.state,e);if(f==0)return!1;if(!(f&65536))return!0;o.reduce(f)}}recoverByInsert(e){if(this.stack.length>=300)return[];let o=this.p.parser.nextStates(this.state);if(o.length>8||this.stack.length>=120){let P=[];for(let d=0,l;dc&1&&n==l)||P.push(o[d],l)}o=P}let f=[];for(let P=0;P>19,P=o&65535,d=this.stack.length-f*3;if(d<0||e.getGoto(this.stack[d],P,!1)<0){let l=this.findForcedReduction();if(l==null)return!1;o=l}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(o),!0}findForcedReduction(){let{parser:e}=this.p,o=[],f=(P,d)=>{if(!o.includes(P))return o.push(P),e.allActions(P,l=>{if(!(l&393216))if(l&65536){let n=(l>>19)-d;if(n>1){let c=l&65535,b=this.stack.length-n*3;if(b>=0&&e.getGoto(this.stack[b],c,!1)>=0)return n<<19|65536|c}}else{let n=f(l,d+1);if(n!=null)return n}})};return f(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let o=0;othis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class sme{constructor(e,o){this.tracker=e,this.context=o,this.hash=e.strict?e.hash(o):0}}class qEe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let o=e&65535,f=e>>19;f==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(f-1)*3;let P=this.start.p.parser.getGoto(this.stack[this.base-3],o,!0);this.state=P}}class aZ{constructor(e,o,f){this.stack=e,this.pos=o,this.index=f,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,o=e.bufferBase+e.buffer.length){return new aZ(e,o,o-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new aZ(this.stack,this.pos,this.index)}}function JL(t,e=Uint16Array){if(typeof t!="string")return t;let o=null;for(let f=0,P=0;f=92&&l--,l>=34&&l--;let c=l-32;if(c>=46&&(c-=46,n=!0),d+=c,n)break;d*=46}o?o[P++]=d:o=new e(d)}return o}class _H{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const lme=new _H;class WEe{constructor(e,o){this.input=e,this.ranges=o,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=lme,this.rangeIndex=0,this.pos=this.chunkPos=o[0].from,this.range=o[0],this.end=o[o.length-1].to,this.readNext()}resolveOffset(e,o){let f=this.range,P=this.rangeIndex,d=this.pos+e;for(;df.to:d>=f.to;){if(P==this.ranges.length-1)return null;let l=this.ranges[++P];d+=l.from-f.to,f=l}return d}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,o.from);return this.end}peek(e){let o=this.chunkOff+e,f,P;if(o>=0&&o=this.chunk2Pos&&fn.to&&(this.chunk2=this.chunk2.slice(0,n.to-f)),P=this.chunk2.charCodeAt(0)}}return f>=this.token.lookAhead&&(this.token.lookAhead=f+1),P}acceptToken(e,o=0){let f=o?this.resolveOffset(o,-1):this.pos;if(f==null||f=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,o){if(o?(this.token=o,o.start=e,o.lookAhead=e+1,o.value=o.extended=-1):this.token=lme,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&o<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,o-this.chunkPos);if(e>=this.chunk2Pos&&o<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,o-this.chunk2Pos);if(e>=this.range.from&&o<=this.range.to)return this.input.read(e,o);let f="";for(let P of this.ranges){if(P.from>=o)break;P.to>e&&(f+=this.input.read(Math.max(P.from,e),Math.min(P.to,o)))}return f}}class tM{constructor(e,o){this.data=e,this.id=o}token(e,o){let{parser:f}=o.p;bxe(this.data,e,o,this.id,f.data,f.tokenPrecTable)}}tM.prototype.contextual=tM.prototype.fallback=tM.prototype.extend=!1;class sZ{constructor(e,o,f){this.precTable=o,this.elseToken=f,this.data=typeof e=="string"?JL(e):e}token(e,o){let f=e.pos,P=0;for(;;){let d=e.next<0,l=e.resolveOffset(1,1);if(bxe(this.data,e,o,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(d||P++,l==null)break;e.reset(l,e.token)}P&&(e.reset(f,e.token),e.acceptToken(this.elseToken,P))}}sZ.prototype.contextual=tM.prototype.fallback=tM.prototype.extend=!1;class A0{constructor(e,o={}){this.token=e,this.contextual=!!o.contextual,this.fallback=!!o.fallback,this.extend=!!o.extend}}function bxe(t,e,o,f,P,d){let l=0,n=1<0){let p=t[y];if(c.allows(p)&&(e.token.value==-1||e.token.value==p||YEe(p,e.token.value,P,d))){e.acceptToken(p);break}}let i=e.next,O=0,w=t[l+2];if(e.next<0&&w>O&&t[b+w*3-3]==65535){l=t[b+w*3-1];continue e}for(;O>1,p=b+y+(y<<1),a=t[p],u=t[p+1]||65536;if(i=u)O=y+1;else{l=t[p+2],e.advance();continue e}}break}}function cme(t,e,o){for(let f=e,P;(P=t[f])!=65535;f++)if(P==o)return f-e;return-1}function YEe(t,e,o,f){let P=cme(o,f,e);return P<0||cme(o,f,t)e)&&!f.type.isError)return o<0?Math.max(0,Math.min(f.to-1,e-25)):Math.min(t.length,Math.max(f.from+1,e+25));if(o<0?f.prevSibling():f.nextSibling())break;if(!f.parent())return o<0?0:t.length}}let XEe=class{constructor(e,o){this.fragments=e,this.nodeSet=o,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?ume(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?ume(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=l,null;if(d instanceof Su){if(l==e){if(l=Math.max(this.safeFrom,e)&&(this.trees.push(d),this.start.push(l),this.index.push(0))}else this.index[o]++,this.nextStart=l+d.length}}};class GEe{constructor(e,o){this.stream=o,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(f=>new _H)}getActions(e){let o=0,f=null,{parser:P}=e.p,{tokenizers:d}=P,l=P.stateSlot(e.state,3),n=e.curContext?e.curContext.hash:0,c=0;for(let b=0;bO.end+25&&(c=Math.max(O.lookAhead,c)),O.value!=0)){let w=o;if(O.extended>-1&&(o=this.addActions(e,O.extended,O.end,o)),o=this.addActions(e,O.value,O.end,o),!i.extend&&(f=O,o>w))break}}for(;this.actions.length>o;)this.actions.pop();return c&&e.setLookAhead(c),!f&&e.pos==this.stream.end&&(f=new _H,f.value=e.p.parser.eofTerm,f.start=f.end=e.pos,o=this.addActions(e,f.value,f.end,o)),this.mainToken=f,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let o=new _H,{pos:f,p:P}=e;return o.start=f,o.end=Math.min(f+1,P.stream.end),o.value=f==P.stream.end?P.parser.eofTerm:0,o}updateCachedToken(e,o,f){let P=this.stream.clipPos(f.pos);if(o.token(this.stream.reset(P,e),f),e.value>-1){let{parser:d}=f.p;for(let l=0;l=0&&f.p.parser.dialect.allows(n>>1)){n&1?e.extended=n>>1:e.value=n>>1;break}}}else e.value=0,e.end=this.stream.clipPos(P+1)}putAction(e,o,f,P){for(let d=0;de.bufferLength*4?new XEe(f,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,o=this.minStackPos,f=this.stacks=[],P,d;if(this.bigReductionCount>300&&e.length==1){let[l]=e;for(;l.forceReduce()&&l.stack.length&&l.stack[l.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let l=0;lo)f.push(n);else{if(this.advanceStack(n,f,e))continue;{P||(P=[],d=[]),P.push(n);let c=this.tokens.getMainToken(n);d.push(c.value,c.end)}}break}}if(!f.length){let l=P&&e7e(P);if(l)return Av&&console.log("Finish with "+this.stackID(l)),this.stackToTree(l);if(this.parser.strict)throw Av&&P&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+o);this.recovering||(this.recovering=5)}if(this.recovering&&P){let l=this.stoppedAt!=null&&P[0].pos>this.stoppedAt?P[0]:this.runRecovery(P,d,f);if(l)return Av&&console.log("Force-finish "+this.stackID(l)),this.stackToTree(l.forceAll())}if(this.recovering){let l=this.recovering==1?1:this.recovering*3;if(f.length>l)for(f.sort((n,c)=>c.score-n.score);f.length>l;)f.pop();f.some(n=>n.reducePos>o)&&this.recovering--}else if(f.length>1){e:for(let l=0;l500&&b.buffer.length>500)if((n.score-b.score||n.buffer.length-b.buffer.length)>0)f.splice(c--,1);else{f.splice(l--,1);continue e}}}f.length>12&&f.splice(12,f.length-12)}this.minStackPos=f[0].pos;for(let l=1;l ":"";if(this.stoppedAt!=null&&P>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let b=e.curContext&&e.curContext.tracker.strict,i=b?e.curContext.hash:0;for(let O=this.fragments.nodeAt(P);O;){let w=this.parser.nodeSet.types[O.type.id]==O.type?d.getGoto(e.state,O.type.id):-1;if(w>-1&&O.length&&(!b||(O.prop(ul.contextHash)||0)==i))return e.useNode(O,w),Av&&console.log(l+this.stackID(e)+` (via reuse of ${d.getName(O.type.id)})`),!0;if(!(O instanceof Su)||O.children.length==0||O.positions[0]>0)break;let y=O.children[0];if(y instanceof Su&&O.positions[0]==0)O=y;else break}}let n=d.stateSlot(e.state,4);if(n>0)return e.reduce(n),Av&&console.log(l+this.stackID(e)+` (via always-reduce ${d.getName(n&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let b=0;bP?o.push(p):f.push(p)}return!1}advanceFully(e,o){let f=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>f)return fme(e,o),!0}}runRecovery(e,o,f){let P=null,d=!1;for(let l=0;l ":"";if(n.deadEnd&&(d||(d=!0,n.restart(),Av&&console.log(i+this.stackID(n)+" (restarted)"),this.advanceFully(n,f))))continue;let O=n.split(),w=i;for(let y=0;O.forceReduce()&&y<10&&(Av&&console.log(w+this.stackID(O)+" (via force-reduce)"),!this.advanceFully(O,f));y++)Av&&(w=this.stackID(O)+" -> ");for(let y of n.recoverByInsert(c))Av&&console.log(i+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,f);this.stream.end>n.pos?(b==n.pos&&(b++,c=0),n.recoverByDelete(c,b),Av&&console.log(i+this.stackID(n)+` (via recover-delete ${this.parser.getName(c)})`),fme(n,f)):(!P||P.scoret;class Bce{constructor(e){this.start=e.start,this.shift=e.shift||Lie,this.reduce=e.reduce||Lie,this.reuse=e.reuse||Lie,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class uS extends pce{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let o=e.nodeNames.split(" ");this.minRepeatTerm=o.length;for(let n=0;ne.topRules[n][1]),P=[];for(let n=0;n=0)d(i,c,n[b++]);else{let O=n[b+-i];for(let w=-i;w>0;w--)d(n[b++],c,O);b++}}}this.nodeSet=new vD(o.map((n,c)=>Cp.define({name:c>=this.minRepeatTerm?void 0:n,id:c,props:P[c],top:f.indexOf(c)>-1,error:c==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(c)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=jye;let l=JL(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new tM(l,n):n),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,o,f){let P=new KEe(this,e,o,f);for(let d of this.wrappers)P=d(P,e,o,f);return P}getGoto(e,o,f=!1){let P=this.goto;if(o>=P[0])return-1;for(let d=P[o+1];;){let l=P[d++],n=l&1,c=P[d++];if(n&&f)return c;for(let b=d+(l>>1);d0}validAction(e,o){return!!this.allActions(e,f=>f==o?!0:null)}allActions(e,o){let f=this.stateSlot(e,4),P=f?o(f):void 0;for(let d=this.stateSlot(e,1);P==null;d+=3){if(this.data[d]==65535)if(this.data[d+1]==1)d=_O(this.data,d+2);else break;P=o(_O(this.data,d+1))}return P}nextStates(e){let o=[];for(let f=this.stateSlot(e,1);;f+=3){if(this.data[f]==65535)if(this.data[f+1]==1)f=_O(this.data,f+2);else break;if(!(this.data[f+2]&1)){let P=this.data[f+1];o.some((d,l)=>l&1&&d==P)||o.push(this.data[f],P)}}return o}configure(e){let o=Object.assign(Object.create(uS.prototype),this);if(e.props&&(o.nodeSet=this.nodeSet.extend(...e.props)),e.top){let f=this.topRules[e.top];if(!f)throw new RangeError(`Invalid top rule name ${e.top}`);o.top=f}return e.tokenizers&&(o.tokenizers=this.tokenizers.map(f=>{let P=e.tokenizers.find(d=>d.from==f);return P?P.to:f})),e.specializers&&(o.specializers=this.specializers.slice(),o.specializerSpecs=this.specializerSpecs.map((f,P)=>{let d=e.specializers.find(n=>n.from==f.external);if(!d)return f;let l=Object.assign(Object.assign({},f),{external:d.to});return o.specializers[P]=dme(l),l})),e.contextTracker&&(o.context=e.contextTracker),e.dialect&&(o.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(o.strict=e.strict),e.wrap&&(o.wrappers=o.wrappers.concat(e.wrap)),e.bufferLength!=null&&(o.bufferLength=e.bufferLength),o}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let o=this.dynamicPrecedences;return o==null?0:o[e]||0}parseDialect(e){let o=Object.keys(this.dialects),f=o.map(()=>!1);if(e)for(let d of e.split(" ")){let l=o.indexOf(d);l>=0&&(f[l]=!0)}let P=null;for(let d=0;df)&&o.p.parser.stateFlag(o.state,2)&&(!e||e.scoret.external(o,f)<<1|e}return t.get}const t7e=1,xxe=201,_xe=202,n7e=203,hme=204,r7e=205,o7e=206,i7e=207,a7e=2,s7e=208,l7e=209,c7e=3,u7e=210,f7e=211,d7e=4,h7e=212,p7e=213,m7e=5,g7e=214,v7e=26,y7e=27,b7e=51,x7e=52,_7e=57,w7e=58,O7e=59,S7e=61,k7e=62,T7e=63,C7e=64,A7e=65,M7e=67,E7e=251,P7e=74,R7e=270,L7e=115,I7e=133,D7e=154,B7e=155,z7e=158,HI=10,ZI=13,zce=32,lq=9,Fce=35,F7e=40,N7e=46,pme=123,wxe=39,Oxe=34,$7e=92,V7e=new Set([y7e,b7e,x7e,R7e,M7e,I7e,w7e,O7e,E7e,C7e,A7e,P7e,k7e,T7e,D7e,B7e,z7e,L7e]);function Iie(t){return t==HI||t==ZI}const U7e=new A0((t,e)=>{let o;if(t.next<0)t.acceptToken(o7e);else if(e.context.depth<0)Iie(t.next)&&t.acceptToken(r7e,1);else if(((o=t.peek(-1))<0||Iie(o))&&e.canShift(hme)){let f=0;for(;t.next==zce||t.next==lq;)t.advance(),f++;(t.next==HI||t.next==ZI||t.next==Fce)&&t.acceptToken(hme,-f)}else Iie(t.next)&&t.acceptToken(n7e,1)},{contextual:!0}),j7e=new A0((t,e)=>{let o=e.context.depth;if(o<0)return;let f=t.peek(-1);if(f==HI||f==ZI){let P=0,d=0;for(;;){if(t.next==zce)P++;else if(t.next==lq)P+=8-P%8;else break;t.advance(),d++}P!=o&&t.next!=HI&&t.next!=ZI&&t.next!=Fce&&(P{for(let e=0;e<5;e++){if(t.next!="print".charCodeAt(e))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let e=0;;e++){let o=t.peek(e);if(!(o==zce||o==lq)){o!=F7e&&o!=N7e&&o!=HI&&o!=ZI&&o!=Fce&&t.acceptToken(t7e);return}}});function cq(t,e,o,f,P){return new A0(d=>{let l=d.pos;for(;!(d.next<0);)if(d.next==pme)if(d.peek(1)==pme)d.advance(2);else{if(d.pos==l){d.acceptToken(f,1);return}break}else if(d.next==$7e)d.advance(),d.next>=0&&d.advance();else if(d.next==t&&(e==1||d.peek(1)==t&&d.peek(2)==t)){if(d.pos==l){d.acceptToken(P,e);return}break}else d.advance();d.pos>l&&d.acceptToken(o)})}const W7e=cq(wxe,1,i7e,a7e,s7e),Y7e=cq(Oxe,1,l7e,c7e,u7e),X7e=cq(wxe,3,f7e,d7e,h7e),G7e=cq(Oxe,3,p7e,m7e,g7e),K7e=mS({'async "*" "**" FormatConversion FormatSpec':Gn.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":Gn.controlKeyword,"in not and or is del":Gn.operatorKeyword,"from def class global nonlocal lambda":Gn.definitionKeyword,import:Gn.moduleKeyword,"with as print":Gn.keyword,Boolean:Gn.bool,None:Gn.null,VariableName:Gn.variableName,"CallExpression/VariableName":Gn.function(Gn.variableName),"FunctionDefinition/VariableName":Gn.function(Gn.definition(Gn.variableName)),"ClassDefinition/VariableName":Gn.definition(Gn.className),PropertyName:Gn.propertyName,"CallExpression/MemberExpression/PropertyName":Gn.function(Gn.propertyName),Comment:Gn.lineComment,Number:Gn.number,String:Gn.string,FormatString:Gn.special(Gn.string),UpdateOp:Gn.updateOperator,"ArithOp!":Gn.arithmeticOperator,BitOp:Gn.bitwiseOperator,CompareOp:Gn.compareOperator,AssignOp:Gn.definitionOperator,Ellipsis:Gn.punctuation,At:Gn.meta,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace,".":Gn.derefOperator,", ;":Gn.separator}),J7e={__proto__:null,await:48,or:58,and:60,in:64,not:66,is:68,if:74,else:76,lambda:80,yield:98,from:100,async:106,for:108,None:168,True:170,False:170,del:184,pass:188,break:192,continue:196,return:200,raise:208,import:212,as:214,global:218,nonlocal:220,assert:224,type:229,elif:242,while:246,try:252,except:254,finally:256,with:260,def:264,class:274,match:285,case:291},ePe=uS.deserialize({version:14,states:"#&jO`Q#yOOP$bOSOOO%kQ&nO'#HcOOQS'#Cq'#CqOOQS'#Cr'#CrO'ZQ#xO'#CpO(|Q&nO'#HbOOQS'#Hc'#HcOOQS'#DW'#DWOOQS'#Hb'#HbO)jQ#xO'#DaO)}Q#xO'#DhO*_Q#xO'#DlOOQS'#Dw'#DwO*rO,UO'#DwO*zO7[O'#DwO+SOWO'#DxO+_O`O'#DxO+jOpO'#DxO+uO!bO'#DxO-wQ&nO'#HSOOQS'#HS'#HSO'ZQ#xO'#HRO/ZQ&nO'#HROOQS'#Ee'#EeO/rQ#xO'#EfOOQS'#HQ'#HQO/|Q#xO'#HPOOQV'#HP'#HPO0XQ#xO'#F]OOQS'#Ge'#GeO0^Q#xO'#F[OOQV'#IY'#IYOOQV'#HO'#HOOOQV'#Ft'#FtQ`Q#yOOO'ZQ#xO'#CsO0lQ#xO'#DPO0sQ#xO'#DTO1RQ#xO'#HgO1cQ&nO'#EYO'ZQ#xO'#EZOOQS'#E]'#E]OOQS'#E_'#E_OOQS'#Ea'#EaO1wQ#xO'#EcO2_Q#xO'#EgO0XQ#xO'#EiO2rQ&nO'#EiO0XQ#xO'#ElO/rQ#xO'#EoO0XQ#xO'#EqO/rQ#xO'#EwO/rQ#xO'#EzO2}Q#xO'#E|O3UQ#xO'#FRO3aQ#xO'#E}O/rQ#xO'#FRO0XQ#xO'#FTO0XQ#xO'#FYO3fQ#xO'#F_P3mO#xO'#G}POOO)CBq)CBqOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Ck'#CkOOQS'#Cl'#ClOOQS'#Cn'#CnO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO3xQ#xO'#DqOOQS,5:[,5:[O4]Q#xO'#HqOOQS,5:_,5:_O4jQMlO,5:_O4oQ&nO,59[O0lQ#xO,59dO0lQ#xO,59dO0lQ#xO,59dO7_Q#xO,59dO7dQ#xO,59dO7kQ#xO,59lO7rQ#xO'#HbO8xQ#xO'#HaOOQS'#Ha'#HaOOQS'#D^'#D^O9aQ#xO,59cO'ZQ#xO,59cO9oQ#xO,59cOOQS,59{,59{O9tQ#xO,5:TO'ZQ#xO,5:TOOQS,5:S,5:SO:SQ#xO,5:SO:XQ#xO,5:ZO'ZQ#xO,5:ZO'ZQ#xO,5:XOOQS,5:W,5:WO:jQ#xO,5:WO:oQ#xO,5:YOOOO'#F|'#F|O:tO,UO,5:cOOQS,5:c,5:cOOOO'#F}'#F}O:|O7[O,5:cO;UQ#xO'#DyOOOW'#GO'#GOO;fOWO,5:dOOQS,5:d,5:dO;UQ#xO'#D}OOO`'#GR'#GRO;qO`O,5:dO;UQ#xO'#EOOOOp'#GS'#GSO;|OpO,5:dO;UQ#xO'#EPOOO!b'#GT'#GTOROOQS,5>R,5>RO/rQ#xO'#EUOOQS'#EV'#EVOGZQ#xO'#GWOGkQ#xO,59OOGkQ#xO,59OO)pQ#xO,5:rOGyQ&nO'#HjOOQS,5:u,5:uOOQS,5:},5:}OH^Q#xO,5;ROHoQ#xO,5;TOOQS'#GZ'#GZOH}Q&nO,5;TOI]Q#xO,5;TOIbQ#xO'#IWOOQS,5;W,5;WOIpQ#xO'#ISOOQS,5;Z,5;ZOJRQ#xO,5;]O3aQ#xO,5;cO3aQ#xO,5;fOJZQ&nO'#IZO'ZQ#xO'#IZOJeQ#xO,5;hO2}Q#xO,5;hO/rQ#xO,5;mO0XQ#xO,5;oOJjQ#yO'#ExOKvQ#{O,5;iO! [Q#xO'#I[O3aQ#xO,5;mO! gQ#xO,5;oO! oQ#xO,5;tO! zQ&nO,5;yO'ZQ#xO,5;yPOOO,5=i,5=iP!!ROSO,5=iP!!WO#xO,5=iO!${Q&nO1G.lO!%SQ&nO1G.lO!'sQ&nO1G.lO!'}Q&nO1G.lO!*hQ&nO1G.lO!*{Q&nO1G.lO!+`Q#xO'#HpO!+nQ&nO'#HSO/rQ#xO'#HpO!+xQ#xO'#HoOOQS,5:],5:]O!,QQ#xO,5:]O!,VQ#xO'#HrO!,bQ#xO'#HrO!,uQ#xO,5>]OOQS'#Du'#DuOOQS1G/y1G/yOOQS1G/O1G/OO!-uQ&nO1G/OO!-|Q&nO1G/OO0lQ#xO1G/OO!.iQ#xO1G/WOOQS'#D]'#D]O/rQ#xO,59vOOQS1G.}1G.}O!.pQ#xO1G/gO!/QQ#xO1G/gO!/YQ#xO1G/hO'ZQ#xO'#HiO!/_Q#xO'#HiO!/dQ&nO1G.}O!/tQ#xO,59kO!0zQ#xO,5>XO!1[Q#xO,5>XO!1dQ#xO1G/oO!1iQ&nO1G/oOOQS1G/n1G/nO!1yQ#xO,5>SO!2pQ#xO,5>SO/rQ#xO1G/sO!3_Q#xO1G/uO!3dQ&nO1G/uO!3tQ&nO1G/sOOQS1G/r1G/rOOQS1G/t1G/tOOOO-E9z-E9zOOQS1G/}1G/}OOOO-E9{-E9{O!4UQ#xO'#H|O/rQ#xO'#H|O!4dQ#xO,5:eOOOW-E9|-E9|OOQS1G0O1G0OO!4oQ#xO,5:iOOO`-E:P-E:PO!4zQ#xO,5:jOOOp-E:Q-E:QO!5VQ#xO,5:kOOO!b-E:R-E:ROOQS-E:S-E:SO!5bQ!LUO1G3XO!6RQ&nO1G3XO'ZQ#xO,5oOOQS1G1c1G1cO!7RQ#xO1G1cOOQS'#DX'#DXO/rQ#xO,5>OOOQS,5>O,5>OO!7WQ#xO'#FuO!7cQ#xO,59qO!7kQ#xO1G/ZO!7uQ&nO,5>SOOQS1G3m1G3mOOQS,5:p,5:pO!8fQ#xO'#HROOQS,5UO!9gQ#xO,5>UO/rQ#xO1G0mO/rQ#xO1G0mO0XQ#xO1G0oOOQS-E:X-E:XO!9xQ#xO1G0oO!:TQ#xO1G0oO!:YQ#xO,5>rO!:hQ#xO,5>rO!:vQ#xO,5>nO!;^Q#xO,5>nO!;oQ#xO'#EsO/rQ#xO1G0wO!;zQ#xO1G0wO!uO!BzQ#xO,5>uO!CSQ&nO,5>uO/rQ#xO1G1SO!C^Q#xO1G1SO3aQ#xO1G1XO! gQ#xO1G1ZOOQV,5;d,5;dO!CcQ#zO,5;dO!ChQ#{O1G1TO!F|Q#xO'#GbO3aQ#xO1G1TO3aQ#xO1G1TO!G^Q#xO,5>vO!GkQ#xO,5>vO0XQ#xO,5>vOOQV1G1X1G1XO!GsQ#xO'#FVO!HUQMlO1G1ZO!H^Q#xO1G1ZOOQV1G1`1G1`O3aQ#xO1G1`O!HcQ#xO1G1`O!HkQ#xO'#FaOOQV1G1e1G1eO! zQ&nO1G1ePOOO1G3T1G3TP!HpOSO1G3TOOQS,5>[,5>[OOQS'#Dr'#DrO/rQ#xO,5>[O!HuQ#xO,5>ZO!IYQ#xO,5>ZOOQS1G/w1G/wO!IbQ#xO,5>^O!IrQ#xO,5>^O!IzQ#xO,5>^O!J_Q#xO,5>^O!JoQ#xO,5>^OOQS1G3w1G3wOOQS7+$j7+$jO!7kQ#xO7+$rO!LbQ#xO1G/OO!LiQ#xO1G/OOOQS1G/b1G/bOOQS,5TO'ZQ#xO,5>TOOQS7+$i7+$iO!MVQ#xO7+%RO!M_Q#xO7+%SO!MdQ#xO1G3sOOQS7+%Z7+%ZO!MtQ#xO1G3sO!M|Q#xO7+%ZOOQS,5hO##PQ#xO,5>hO##PQ#xO,5>hO##_O$ISO'#D{O##jO#tO'#H}OOOW1G0P1G0PO##oQ#xO1G0POOO`1G0T1G0TO##wQ#xO1G0TOOOp1G0U1G0UO#$PQ#xO1G0UOOO!b1G0V1G0VO#$XQ#xO1G0VO#$aQ!LUO7+(sO#%QQ&nO1G2]P#%kQ#xO'#GVOOQS,5i,5>iOOOW7+%k7+%kOOO`7+%o7+%oOOOp7+%p7+%pOOO!b7+%q7+%qO#:`Q#xO1G3XO#:yQ#xO1G3XP'ZQ#xO'#FxO/rQ#xO<qO#;mQ#xO,5>qO0XQ#xO,5>qO#pOOQS<sO#sOOQS1G0y1G0yOOQS<xO#DpQ#xO,5>xOOQS,5>x,5>xO#D{Q#xO,5>wO#E^Q#xO,5>wOOQS1G1]1G1]OOQS,5;s,5;sOOQV<XAN>XO#HmQ#xO<eAN>eO/rQ#xO1G2PO#H}Q&nO1G2PP#IXQ#xO'#FyOOQS1G2V1G2VP#IfQ#xO'#GPO#IsQ#xO7+)nO#JZQ#xO,5:hOOOO-E:O-E:OO#JfQ#xO7+(sOOQSAN?_AN?_O#KPQ#xO,5VOOQSANBaANBaOOOO7+%n7+%nOOQS7+'|7+'|O$+jQ#xO<zO$.`Q#xO,5>zO0XQ#xO,5|O$!pQ#xO,5>|OOQS1G1s1G1sO$2WQ&nO,5<_OOQU7+'S7+'SO$$mQ#xO1G/kO$!pQ#xO,5<]O$2_Q#xO,5>}O$2fQ#xO,5>}OOQS1G1v1G1vOOQS7+'V7+'VP$!pQ#xO'#GkO$2nQ#xO1G4hO$2xQ#xO1G4hO$3QQ#xO1G4hOOQS7+%V7+%VO$3`Q#xO1G1wO$3nQ&nO'#FdO$3uQ#xO,5=UOOQS,5=U,5=UO$4TQ#xO1G4iOOQS-E:h-E:hO$!pQ#xO,5=TO$4[Q#xO,5=TO$4aQ#xO7+*SOOQS-E:g-E:gO$4kQ#xO7+*SO$!pQ#xO,5<^P$!pQ#xO'#GjO$4sQ#xO1G2oO$!pQ#xO1G2oP$5RQ#xO'#GiO$5YQ#xO<fPP>i?Z?^PP'a'aPP?vPP'a'aPP'a'a'a'a'a?z@t'aP@wP@}EXHxPH|IYI^IbIf'aPPPIjIs'XP'X'XP'XP'XP'XP'XP'X'X'XP'XPP'XPP'XP'XPIyJVJ_PJfJlPJfPJfJfPPPJfPLzPMTM_MeLzPJfMnPJfPMuM{PNPNe! S! mNPNP! s!!QNPNPNPNP!!f!!l!!o!!t!!w!#R!#X!#e!#w!#}!$X!$_!${!%R!%X!%_!%i!%o!%u!%{!&R!&X!&k!&u!&{!'R!'X!'c!'i!'o!'u!'{!(V!(]!(g!(m!(v!(|!)]!)e!)o!)vPPPPPPPPPPPPPPPPP!)|!*P!*V!*`!*j!*uPPPPPPPPPPPP!/l!1Q!5T!8hPP!8p!9S!9]!:U!9{!:_!:e!:h!:k!:n!:v!;gPPPPPPPPP!;j!;yPPPP!V!>`!?[!?_]jOs#v$w*W,d(TeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z}!hQ#r$P$b$q$}%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!P!iQ#r$P$b$q$}%S%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!R!jQ#r$P$b$q$}%S%T%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!T!kQ#r$P$b$q$}%S%T%U%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!V!lQ#r$P$b$q$}%S%T%U%V%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!X!mQ#r$P$b$q$}%S%T%U%V%W%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!]!mQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O(TTOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z&iVOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1Z%sXOYZ[isw}!O!S!U!V!Z!n!p#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$VvQ/t/SR1W1Y'zeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZW#ym!P!Q$hW$Rv&q/S1YQ$j!RQ$n!TQ${![Q$|!]W%Z!n(O*v,zS&p$S$TQ'e$vQ)Y&jQ)h'QU)i'S)j)kU)l'U)m+}W)s'Y,Q-j.dQ*d'nW*e'p,s-}.lQ,P)rS,r*f*gY-d+x-e.a.b/XQ-g+zQ-t,hQ-x,kQ.j-vl.o.R.u.v.x/d/f/k0R0W0]0b0m0r0uQ/W.`Q/l.wQ/x/^Q0T/hU0h0^0k0sX0n0c0o0v0wR&o$R!_!|YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sR%k!{Q#QYQ&W#cQ&Z#gQ&]#jQ&_#mQ&x$^Q&{$aR-`+lT/R.Y0[![!oQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OQ&m#zQ't$|R*p'uR'}%ZQ%d!rR/v/[(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZS#pd#q!P.s.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0w(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZT#pd#qT#d`#ee(|&W&Z&]&_)O)Q)S)U-`._T+m({+nT#ha#iT#kb#lT#nc#oQ$`xQ,P)sR,q*eX$^x$_$`&zQ'[$nQ'r${Q'u$|R*V'eQ)t'YV-i,Q-j.dZlOs$w*W,dXpOs*W,dQ$x!YQ']$oQ'^$pQ'o$zQ's$|Q*T'dQ*['iQ*_'jQ*`'kQ*m'qS*o't'uQ,W)yQ,Y)zQ,Z){Q,_*RS,a*U*nQ,e*YQ,f*ZS,g*]*^Q,w*pQ-l,VQ-m,XQ-o,`S-p,b,cQ-u,iQ-w,jQ.e-nQ.g-qQ.h-sQ.i-tQ/Y.fQ/Z.jQ/p.{R0Z/qWpOs*W,dR#|oQ'q${S*U'e'rR,c*VQ,p*eR-{,qQ*n'qQ,b*UR-q,cZnOos*W,dQ'w$}R*r'xT.P,x.Qu.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0ut.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uQ/l.wX0n0c0o0v0w!P.r.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0wQ/a.qR/}/bg/d.t/e/y0Q0V0e0g0i0t0x0yu.y.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uX/_.o.y/x0hR/z/^V0j0^0k0sR/q.{QsOS$Os,dR,d*WQ&r$UR)_&rS%z#W$WS(p%z(sT(s%}&tQ%n#OQ%u#SW(b%n%u(g(kQ(g%rR(k%wQ&}$bR)e&}Q(v&OQ+_(qT+e(v+_Q(P%]R*w(PS(S%`%aY*{(S*|-Q.W/PU*|(T(U(VU-Q*}+O+PS.W-R-SR/P.XQ#_^R&R#_Q#b_R&T#bQ#e`R&X#eQ(y&US+j(y+kR+k(zQ+n({R-a+nQ#iaR&[#iQ#lbR&^#lQ#ocR&`#oQ#qdR&a#qQ#tgQ&c#rW&f#t&c)b+uQ)b&wR+u1OQ$_xS&y$_&zR&z$`Q'X$lR)q'XQ&k#yR)Z&kQ$h!QR'R$hQ+y)iS-f+y.cR.c-gQ'V$jR)n'VQ,R)tR-k,RQ#wkR&h#wQ)x']R,U)xQ'`$qS*P'`*QR*Q'aQ'h$xR*X'hQ'm$yS*c'm,nR,n*dQ,t*iR.O,tWoOs*W,dR#{oQ.Q,xR.m.Qd/e.t/y0Q0V0e0g0i0t0x0yR0P/eU/].o/x0hR/w/]Q0d0VS0p0d0qR0q0eS0_/y/zR0l0_Q/g.tR0S/gR!`PXrOs*W,dWqOs*W,dR'f$wYkOs$w*W,dR&g#v[xOs#v$w*W,dR&x$^&hQOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1ZQ!sTQ#rfQ$PtU$by%p(eS$q!W$tQ$}!^Q%S!hQ%T!iQ%U!jQ%V!kQ%W!lQ%X!mQ%r#PQ%w#TQ%}#XQ&O#YQ&t$XQ'a$rQ'x%OQ)W&dU)c&|)d+vW)|'_*O,],^Q+R(_Q+[(nQ,[)}Q-Z+dQ0Y/oR1O1TQ#OYQ#SZQ$o!UQ$p!VQ%`!pQ(V%a^(^%m%t(a(i+T+W+Y^*x(R*z-O-P.V/O/sQ+O(TQ+P(UQ,X)yQ,}*yQ-R*}Q.T,{Q.U,|Q.X-SQ.|.SR/r.}[gOs#v$w*W,d!^!{YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sQ#W[Q#uiS$Ww}Q$e!OW$l!S$a'b*SS$y!Z$uW%Y!n(O*v,zY&U#c#g#j#m+l`&e#s&b)V)X)a+t-b1SQ&u$YQ&v$[Q&w$^Q'{%[Q(]%kW(m%y(o+]+aQ(q%{Q(z&VQ)]&oS)`&s1QQ)f'OQ)g'PU)o'W)p,OQ)v'ZQ*]'iY*a'l*b,l,m-yQ*t'}S+Q(Y1RW+c(u+^-W-[W+g(x+i-^-_Q,T)wQ,i*^Q,v*lQ-]+hQ-c+wQ-z,pQ.]-YR.k-{hUOs#s#v$w&b&s(Y)V)X*W,d%Y!zYZ[iw}!O!S!U!V!Z!n!p#c#g#j#m$Y$[$^$a$u%[%a%k%m%t%y%{&V&o'O'P'W'Z'b'i'l'}(O(R(T(U(a(i(o(u(x)a)p)w)y*S*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$QuW%e!t!x0{1VQ%f!uQ%g!vQ%i!yQ%s0zS(X%h1PQ(Z0|Q([0}Q-T+UQ.[-US/Q.Y0[R1X1ZU$Uv/S1YR)^&q[hOs#v$w*W,da!}Y#c#g#j#m$^$a+lQ#][Q$ZwR$d}Q%o#OQ%v#SQ%|#WQ'{%YQ(h%rQ(l%wQ(t%}Q(w&OQ+`(qQ,y*tQ.Z-TQ/U.[R/u/TQ$cyQ(d%pR+V(eQ/T.YR0f0[R#VZR#[[R%_!nQ%]!nV*u(O*v,z!]!qQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OR%b!pQ&W#cQ&Z#gQ&]#jQ&_#mR-`+lQ(}&WQ)P&ZQ)R&]Q)T&_Q+p)OQ+q)QQ+r)SQ+s)UQ.^-`R/V._Q$m!SQ&{$aQ*R'bR,`*SQ#zmQ$f!PQ$i!QR'T$hQ)h'SR+|)kQ)h'SQ+{)jR+|)kR$k!RR)u'YXqOs*W,dQ$s!WR'c$tQ$z!ZR'd$uR*k'pQ*i'pV-|,s-}.lQ.{.RQ/i.uR/j.vU.t.R.u.vQ/n.xQ/y/^Q0O/dU0Q/f0R0bQ0V/kQ0e0WQ0g0]U0i0^0k0sQ0t0mQ0x0rR0y0uR/m.wR/{/^",nodeNames:"⚠ print { { { { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatConversion FormatSpec FormatReplacement FormatReplacement FormatReplacement FormatReplacement ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:283,context:Z7e,nodeProps:[["group",-15,8,88,90,91,93,95,97,99,101,102,103,105,108,111,113,"Statement Statement",-22,10,20,23,27,42,51,52,58,59,62,63,64,65,66,69,72,73,74,82,83,84,85,"Expression",-10,117,119,122,124,125,129,131,136,138,141,"Statement",-9,146,147,150,151,153,154,155,156,157,"Pattern"],["openedBy",25,"(",56,"[",60,"{"],["closedBy",26,")",57,"]",61,"}"]],propSources:[K7e],skippedNodes:[0,6],repeatNodeCount:38,tokenData:"%-W#sR!`OX%TXY=|Y[%T[]=|]p%Tpq=|qr@_rsDOst!+|tu%Tuv!Nnvw#!|wx#$Wxy#:Uyz#;Yz{#<^{|#>x|}#@S}!O#AW!O!P#Ci!P!Q#N_!Q!R$!y!R![$&w![!]$1e!]!^$3s!^!_$4w!_!`$7c!`!a$8m!a!b%T!b!c$;U!c!d$W!e!h$W#V#Y$Q<%lO$Xc&r!b&jS&mW%p!TOX%TXY=|Y[%T[]=|]p%Tpq=|qr%Trs&Vsw%Twx/Xx#O%T#O#P?d#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#s?i[&r!bOY%TYZ=|Z]%T]^=|^#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=P;=`<%l8^<%lO%T!q@hd&r!b&jS&mWOr%Trs&Vsw%Twx/Xx!_%T!_!`Av!`#O%T#O#P7o#P#T%T#T#UBz#U#f%T#f#gBz#g#hBz#h#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qBR]oR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qCV]!nR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cDXa&r!b&jS&hsOYE^YZ%TZ]E^]^%T^rE^rs!)|swE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cEia&r!b&jS&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cFw]&r!b&jS&hsOr%Trs'Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cGya&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxIOx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cIXa&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxJ^x#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#_Jg_&r!b&mW&hsOYJ^YZ1XZ]J^]^1X^rJ^rsKfs#OJ^#O#PL`#P#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`!!o<%lOJ^#_KmZ&r!b&hsOr1Xrs2ys#O1X#O#P3q#P#o1X#o#p4`#p#q1X#q#r4`#r;'S1X;'S;=`7i<%lO1X#_LeW&r!bO#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`! r;=`<%lL}<%lOJ^{MUZ&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l<%lOL}{M|V&hsOr4`rs5ds#O4`#O#P5y#P;'S4`;'S;=`6t<%lO4`{NfRO;'SL};'S;=`No;=`OL}{Nv[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lL}<%lOL}{! oP;=`<%lL}#_! y[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lJ^<%lOL}#_!!rP;=`<%lJ^#c!!zW&r!bO#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!(q;=`<%l!#d<%lOE^!P!#m]&jS&mW&hsOY!#dYZ8^Z]!#d]^8^^r!#drs!$fsw!#dwx!%Yx#O!#d#O#P!'Y#P;'S!#d;'S;=`!(k<%lO!#d!P!$mX&jS&hsOr8^rs9rsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`^s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!>e_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!?ds#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!?k_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!3`s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!@q[U!T&r!bOY!=UYZ1XZ]!=U]^1X^#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!Ec;=`<%l4`<%lO!=U!]!AnZU!T&mWOY!AgYZ4`Z]!Ag]^4`^r!Agrs!Bas#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!BfZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!CXs#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!C^ZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!4Ys#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!DUWU!TOY!AgYZ4`Z]!Ag]^4`^;'S!Ag;'S;=`!Dn;=`<%l4`<%lO!Ag!]!DsW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!Ag<%lO4`!]!E`P;=`<%l!Ag#o!EhW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!=U<%lO4`#o!FTP;=`<%l!=U#s!F_[U!T&r!bOY!+|YZ%TZ]!+|]^%T^#o!+|#o#p!GT#p#q!+|#q#r!GT#r;'S!+|;'S;=`!Mq;=`<%l8^<%lO!+|!a!G^]U!T&jS&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!H^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!IVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!I^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!5wsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!J^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!KVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!K^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!Agx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!L[WU!TOY!GTYZ8^Z]!GT]^8^^;'S!GT;'S;=`!Lt;=`<%l8^<%lO!GT!a!L{Y&jS&mWOr8^rs9Qsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`Q<%lO$TP;=`<%l$ei&r!b&jS&mW&g`&SsOr%Trs$@Ssw%Twx$C`x!Q%T!Q![$Q<%lO$Q<%lO$Q<%lO$Q<%lO$Q<%lO$J7e[t]||-1}],tokenPrec:7372}),mme=new hce,Sxe=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function qQ(t){return(e,o,f)=>{if(f)return!1;let P=e.node.getChild("VariableName");return P&&o(P,t),!0}}const tPe={FunctionDefinition:qQ("function"),ClassDefinition:qQ("class"),ForStatement(t,e,o){if(o){for(let f=t.node.firstChild;f;f=f.nextSibling)if(f.name=="VariableName")e(f,"variable");else if(f.name=="in")break}},ImportStatement(t,e){var o,f;let{node:P}=t,d=((o=P.firstChild)===null||o===void 0?void 0:o.name)=="from";for(let l=P.getChild("import");l;l=l.nextSibling)l.name=="VariableName"&&((f=l.nextSibling)===null||f===void 0?void 0:f.name)!="as"&&e(l,d?"variable":"namespace")},AssignStatement(t,e){for(let o=t.node.firstChild;o;o=o.nextSibling)if(o.name=="VariableName")e(o,"variable");else if(o.name==":"||o.name=="AssignOp")break},ParamList(t,e){for(let o=null,f=t.node.firstChild;f;f=f.nextSibling)f.name=="VariableName"&&(!o||!/\*|AssignOp/.test(o.name))&&e(f,"variable"),o=f},CapturePattern:qQ("variable"),AsPattern:qQ("variable"),__proto__:null};function kxe(t,e){let o=mme.get(e);if(o)return o;let f=[],P=!0;function d(l,n){let c=t.sliceString(l.from,l.to);f.push({label:c,type:n})}return e.cursor(mf.IncludeAnonymous).iterate(l=>{if(l.name){let n=tPe[l.name];if(n&&n(l,d,P)||!P&&Sxe.has(l.name))return!1;P=!1}else if(l.to-l.from>8192){for(let n of kxe(t,l.node))f.push(n);return!1}}),mme.set(e,f),f}const gme=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Txe=["String","FormatString","Comment","PropertyName"];function nPe(t){let e=Gu(t.state).resolveInner(t.pos,-1);if(Txe.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&gme.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let P=e;P;P=P.parent)Sxe.has(P.name)&&(f=f.concat(kxe(t.state.doc,P)));return{options:f,from:o?e.from:t.pos,validFor:gme}}const rPe=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),oPe=[Hd("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Hd("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Hd("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Hd("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Hd(`if \${}: +*/var $Ee=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[NEe]}),VEe=Symbol("vue-codemirror-global-config"),S0,UEe=function(t){var e=t.onUpdate,o=t.onChange,f=t.onFocus,P=t.onBlur,d=function(l,n){var c={};for(var b in l)Object.prototype.hasOwnProperty.call(l,b)&&n.indexOf(b)<0&&(c[b]=l[b]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(b=Object.getOwnPropertySymbols(l);io%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,o,f=0){let P=e.parser.context;return new iZ(e,[],o,f,f,0,[],0,P?new lme(P,P.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,o){this.stack.push(this.state,o,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var o;let f=e>>19,P=e&65535,{parser:d}=this.p,l=d.dynamicPrecedence(P);if(l&&(this.score+=l),f==0){this.pushState(d.getGoto(this.state,P,!0),this.reducePos),P=2e3&&!(!((o=this.p.parser.nodeSet.types[P])===null||o===void 0)&&o.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=b):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(P,c)}storeNode(e,o,f,P=4,d=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&l.buffer[n-4]==0&&l.buffer[n-1]>-1){if(o==f)return;if(l.buffer[n-2]>=o){l.buffer[n-2]=f;return}}}if(!d||this.pos==f)this.buffer.push(e,o,f,P);else{let l=this.buffer.length;if(l>0&&this.buffer[l-4]!=0)for(;l>0&&this.buffer[l-2]>f;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,P>4&&(P-=4);this.buffer[l]=e,this.buffer[l+1]=o,this.buffer[l+2]=f,this.buffer[l+3]=P}}shift(e,o,f,P){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=P,this.shiftContext(o,f),o<=this.p.parser.maxNode&&this.buffer.push(o,f,P,4);else{let d=e,{parser:l}=this.p;(P>this.pos||o<=l.maxNode)&&(this.pos=P,l.stateFlag(d,1)||(this.reducePos=P)),this.pushState(d,f),this.shiftContext(o,f),o<=l.maxNode&&this.buffer.push(o,f,P,4)}}apply(e,o,f,P){e&65536?this.reduce(e):this.shift(e,o,f,P)}useNode(e,o){let f=this.p.reused.length-1;(f<0||this.p.reused[f]!=e)&&(this.p.reused.push(e),f++);let P=this.pos;this.reducePos=this.pos=P+e.length,this.pushState(o,P),this.buffer.push(f,P,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,o=e.buffer.length;for(;o>0&&e.buffer[o-2]>e.reducePos;)o-=4;let f=e.buffer.slice(o),P=e.bufferBase+o;for(;e&&P==e.bufferBase;)e=e.parent;return new iZ(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,f,P,this.curContext,this.lookAhead,e)}recoverByDelete(e,o){let f=e<=this.p.parser.maxNode;f&&this.storeNode(e,this.pos,o,4),this.storeNode(0,this.pos,o,f?8:4),this.pos=this.reducePos=o,this.score-=190}canShift(e){for(let o=new WEe(this);;){let f=this.p.parser.stateSlot(o.state,4)||this.p.parser.hasAction(o.state,e);if(f==0)return!1;if(!(f&65536))return!0;o.reduce(f)}}recoverByInsert(e){if(this.stack.length>=300)return[];let o=this.p.parser.nextStates(this.state);if(o.length>8||this.stack.length>=120){let P=[];for(let d=0,l;dc&1&&n==l)||P.push(o[d],l)}o=P}let f=[];for(let P=0;P>19,P=o&65535,d=this.stack.length-f*3;if(d<0||e.getGoto(this.stack[d],P,!1)<0){let l=this.findForcedReduction();if(l==null)return!1;o=l}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(o),!0}findForcedReduction(){let{parser:e}=this.p,o=[],f=(P,d)=>{if(!o.includes(P))return o.push(P),e.allActions(P,l=>{if(!(l&393216))if(l&65536){let n=(l>>19)-d;if(n>1){let c=l&65535,b=this.stack.length-n*3;if(b>=0&&e.getGoto(this.stack[b],c,!1)>=0)return n<<19|65536|c}}else{let n=f(l,d+1);if(n!=null)return n}})};return f(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let o=0;othis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class lme{constructor(e,o){this.tracker=e,this.context=o,this.hash=e.strict?e.hash(o):0}}class WEe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let o=e&65535,f=e>>19;f==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(f-1)*3;let P=this.start.p.parser.getGoto(this.stack[this.base-3],o,!0);this.state=P}}class aZ{constructor(e,o,f){this.stack=e,this.pos=o,this.index=f,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,o=e.bufferBase+e.buffer.length){return new aZ(e,o,o-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new aZ(this.stack,this.pos,this.index)}}function eI(t,e=Uint16Array){if(typeof t!="string")return t;let o=null;for(let f=0,P=0;f=92&&l--,l>=34&&l--;let c=l-32;if(c>=46&&(c-=46,n=!0),d+=c,n)break;d*=46}o?o[P++]=d:o=new e(d)}return o}class _H{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const cme=new _H;class YEe{constructor(e,o){this.input=e,this.ranges=o,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=cme,this.rangeIndex=0,this.pos=this.chunkPos=o[0].from,this.range=o[0],this.end=o[o.length-1].to,this.readNext()}resolveOffset(e,o){let f=this.range,P=this.rangeIndex,d=this.pos+e;for(;df.to:d>=f.to;){if(P==this.ranges.length-1)return null;let l=this.ranges[++P];d+=l.from-f.to,f=l}return d}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,o.from);return this.end}peek(e){let o=this.chunkOff+e,f,P;if(o>=0&&o=this.chunk2Pos&&fn.to&&(this.chunk2=this.chunk2.slice(0,n.to-f)),P=this.chunk2.charCodeAt(0)}}return f>=this.token.lookAhead&&(this.token.lookAhead=f+1),P}acceptToken(e,o=0){let f=o?this.resolveOffset(o,-1):this.pos;if(f==null||f=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,o){if(o?(this.token=o,o.start=e,o.lookAhead=e+1,o.value=o.extended=-1):this.token=cme,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&o<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,o-this.chunkPos);if(e>=this.chunk2Pos&&o<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,o-this.chunk2Pos);if(e>=this.range.from&&o<=this.range.to)return this.input.read(e,o);let f="";for(let P of this.ranges){if(P.from>=o)break;P.to>e&&(f+=this.input.read(Math.max(P.from,e),Math.min(P.to,o)))}return f}}class nM{constructor(e,o){this.data=e,this.id=o}token(e,o){let{parser:f}=o.p;xxe(this.data,e,o,this.id,f.data,f.tokenPrecTable)}}nM.prototype.contextual=nM.prototype.fallback=nM.prototype.extend=!1;class sZ{constructor(e,o,f){this.precTable=o,this.elseToken=f,this.data=typeof e=="string"?eI(e):e}token(e,o){let f=e.pos,P=0;for(;;){let d=e.next<0,l=e.resolveOffset(1,1);if(xxe(this.data,e,o,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(d||P++,l==null)break;e.reset(l,e.token)}P&&(e.reset(f,e.token),e.acceptToken(this.elseToken,P))}}sZ.prototype.contextual=nM.prototype.fallback=nM.prototype.extend=!1;class A0{constructor(e,o={}){this.token=e,this.contextual=!!o.contextual,this.fallback=!!o.fallback,this.extend=!!o.extend}}function xxe(t,e,o,f,P,d){let l=0,n=1<0){let p=t[y];if(c.allows(p)&&(e.token.value==-1||e.token.value==p||XEe(p,e.token.value,P,d))){e.acceptToken(p);break}}let i=e.next,O=0,w=t[l+2];if(e.next<0&&w>O&&t[b+w*3-3]==65535){l=t[b+w*3-1];continue e}for(;O>1,p=b+y+(y<<1),a=t[p],u=t[p+1]||65536;if(i=u)O=y+1;else{l=t[p+2],e.advance();continue e}}break}}function ume(t,e,o){for(let f=e,P;(P=t[f])!=65535;f++)if(P==o)return f-e;return-1}function XEe(t,e,o,f){let P=ume(o,f,e);return P<0||ume(o,f,t)e)&&!f.type.isError)return o<0?Math.max(0,Math.min(f.to-1,e-25)):Math.min(t.length,Math.max(f.from+1,e+25));if(o<0?f.prevSibling():f.nextSibling())break;if(!f.parent())return o<0?0:t.length}}let GEe=class{constructor(e,o){this.fragments=e,this.nodeSet=o,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?fme(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?fme(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=l,null;if(d instanceof ku){if(l==e){if(l=Math.max(this.safeFrom,e)&&(this.trees.push(d),this.start.push(l),this.index.push(0))}else this.index[o]++,this.nextStart=l+d.length}}};class KEe{constructor(e,o){this.stream=o,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(f=>new _H)}getActions(e){let o=0,f=null,{parser:P}=e.p,{tokenizers:d}=P,l=P.stateSlot(e.state,3),n=e.curContext?e.curContext.hash:0,c=0;for(let b=0;bO.end+25&&(c=Math.max(O.lookAhead,c)),O.value!=0)){let w=o;if(O.extended>-1&&(o=this.addActions(e,O.extended,O.end,o)),o=this.addActions(e,O.value,O.end,o),!i.extend&&(f=O,o>w))break}}for(;this.actions.length>o;)this.actions.pop();return c&&e.setLookAhead(c),!f&&e.pos==this.stream.end&&(f=new _H,f.value=e.p.parser.eofTerm,f.start=f.end=e.pos,o=this.addActions(e,f.value,f.end,o)),this.mainToken=f,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let o=new _H,{pos:f,p:P}=e;return o.start=f,o.end=Math.min(f+1,P.stream.end),o.value=f==P.stream.end?P.parser.eofTerm:0,o}updateCachedToken(e,o,f){let P=this.stream.clipPos(f.pos);if(o.token(this.stream.reset(P,e),f),e.value>-1){let{parser:d}=f.p;for(let l=0;l=0&&f.p.parser.dialect.allows(n>>1)){n&1?e.extended=n>>1:e.value=n>>1;break}}}else e.value=0,e.end=this.stream.clipPos(P+1)}putAction(e,o,f,P){for(let d=0;de.bufferLength*4?new GEe(f,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,o=this.minStackPos,f=this.stacks=[],P,d;if(this.bigReductionCount>300&&e.length==1){let[l]=e;for(;l.forceReduce()&&l.stack.length&&l.stack[l.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let l=0;lo)f.push(n);else{if(this.advanceStack(n,f,e))continue;{P||(P=[],d=[]),P.push(n);let c=this.tokens.getMainToken(n);d.push(c.value,c.end)}}break}}if(!f.length){let l=P&&t7e(P);if(l)return Ev&&console.log("Finish with "+this.stackID(l)),this.stackToTree(l);if(this.parser.strict)throw Ev&&P&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+o);this.recovering||(this.recovering=5)}if(this.recovering&&P){let l=this.stoppedAt!=null&&P[0].pos>this.stoppedAt?P[0]:this.runRecovery(P,d,f);if(l)return Ev&&console.log("Force-finish "+this.stackID(l)),this.stackToTree(l.forceAll())}if(this.recovering){let l=this.recovering==1?1:this.recovering*3;if(f.length>l)for(f.sort((n,c)=>c.score-n.score);f.length>l;)f.pop();f.some(n=>n.reducePos>o)&&this.recovering--}else if(f.length>1){e:for(let l=0;l500&&b.buffer.length>500)if((n.score-b.score||n.buffer.length-b.buffer.length)>0)f.splice(c--,1);else{f.splice(l--,1);continue e}}}f.length>12&&f.splice(12,f.length-12)}this.minStackPos=f[0].pos;for(let l=1;l ":"";if(this.stoppedAt!=null&&P>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let b=e.curContext&&e.curContext.tracker.strict,i=b?e.curContext.hash:0;for(let O=this.fragments.nodeAt(P);O;){let w=this.parser.nodeSet.types[O.type.id]==O.type?d.getGoto(e.state,O.type.id):-1;if(w>-1&&O.length&&(!b||(O.prop(fl.contextHash)||0)==i))return e.useNode(O,w),Ev&&console.log(l+this.stackID(e)+` (via reuse of ${d.getName(O.type.id)})`),!0;if(!(O instanceof ku)||O.children.length==0||O.positions[0]>0)break;let y=O.children[0];if(y instanceof ku&&O.positions[0]==0)O=y;else break}}let n=d.stateSlot(e.state,4);if(n>0)return e.reduce(n),Ev&&console.log(l+this.stackID(e)+` (via always-reduce ${d.getName(n&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let b=0;bP?o.push(p):f.push(p)}return!1}advanceFully(e,o){let f=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>f)return dme(e,o),!0}}runRecovery(e,o,f){let P=null,d=!1;for(let l=0;l ":"";if(n.deadEnd&&(d||(d=!0,n.restart(),Ev&&console.log(i+this.stackID(n)+" (restarted)"),this.advanceFully(n,f))))continue;let O=n.split(),w=i;for(let y=0;O.forceReduce()&&y<10&&(Ev&&console.log(w+this.stackID(O)+" (via force-reduce)"),!this.advanceFully(O,f));y++)Ev&&(w=this.stackID(O)+" -> ");for(let y of n.recoverByInsert(c))Ev&&console.log(i+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,f);this.stream.end>n.pos?(b==n.pos&&(b++,c=0),n.recoverByDelete(c,b),Ev&&console.log(i+this.stackID(n)+` (via recover-delete ${this.parser.getName(c)})`),dme(n,f)):(!P||P.scoret;class Bce{constructor(e){this.start=e.start,this.shift=e.shift||Lie,this.reduce=e.reduce||Lie,this.reuse=e.reuse||Lie,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class fS extends pce{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let o=e.nodeNames.split(" ");this.minRepeatTerm=o.length;for(let n=0;ne.topRules[n][1]),P=[];for(let n=0;n=0)d(i,c,n[b++]);else{let O=n[b+-i];for(let w=-i;w>0;w--)d(n[b++],c,O);b++}}}this.nodeSet=new yD(o.map((n,c)=>Cp.define({name:c>=this.minRepeatTerm?void 0:n,id:c,props:P[c],top:f.indexOf(c)>-1,error:c==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(c)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Qye;let l=eI(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new nM(l,n):n),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,o,f){let P=new JEe(this,e,o,f);for(let d of this.wrappers)P=d(P,e,o,f);return P}getGoto(e,o,f=!1){let P=this.goto;if(o>=P[0])return-1;for(let d=P[o+1];;){let l=P[d++],n=l&1,c=P[d++];if(n&&f)return c;for(let b=d+(l>>1);d0}validAction(e,o){return!!this.allActions(e,f=>f==o?!0:null)}allActions(e,o){let f=this.stateSlot(e,4),P=f?o(f):void 0;for(let d=this.stateSlot(e,1);P==null;d+=3){if(this.data[d]==65535)if(this.data[d+1]==1)d=_O(this.data,d+2);else break;P=o(_O(this.data,d+1))}return P}nextStates(e){let o=[];for(let f=this.stateSlot(e,1);;f+=3){if(this.data[f]==65535)if(this.data[f+1]==1)f=_O(this.data,f+2);else break;if(!(this.data[f+2]&1)){let P=this.data[f+1];o.some((d,l)=>l&1&&d==P)||o.push(this.data[f],P)}}return o}configure(e){let o=Object.assign(Object.create(fS.prototype),this);if(e.props&&(o.nodeSet=this.nodeSet.extend(...e.props)),e.top){let f=this.topRules[e.top];if(!f)throw new RangeError(`Invalid top rule name ${e.top}`);o.top=f}return e.tokenizers&&(o.tokenizers=this.tokenizers.map(f=>{let P=e.tokenizers.find(d=>d.from==f);return P?P.to:f})),e.specializers&&(o.specializers=this.specializers.slice(),o.specializerSpecs=this.specializerSpecs.map((f,P)=>{let d=e.specializers.find(n=>n.from==f.external);if(!d)return f;let l=Object.assign(Object.assign({},f),{external:d.to});return o.specializers[P]=hme(l),l})),e.contextTracker&&(o.context=e.contextTracker),e.dialect&&(o.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(o.strict=e.strict),e.wrap&&(o.wrappers=o.wrappers.concat(e.wrap)),e.bufferLength!=null&&(o.bufferLength=e.bufferLength),o}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let o=this.dynamicPrecedences;return o==null?0:o[e]||0}parseDialect(e){let o=Object.keys(this.dialects),f=o.map(()=>!1);if(e)for(let d of e.split(" ")){let l=o.indexOf(d);l>=0&&(f[l]=!0)}let P=null;for(let d=0;df)&&o.p.parser.stateFlag(o.state,2)&&(!e||e.scoret.external(o,f)<<1|e}return t.get}const n7e=1,_xe=201,wxe=202,r7e=203,pme=204,o7e=205,i7e=206,a7e=207,s7e=2,l7e=208,c7e=209,u7e=3,f7e=210,d7e=211,h7e=4,p7e=212,m7e=213,g7e=5,v7e=214,y7e=26,b7e=27,x7e=51,_7e=52,w7e=57,O7e=58,S7e=59,k7e=61,T7e=62,C7e=63,A7e=64,M7e=65,E7e=67,P7e=251,R7e=74,L7e=270,I7e=115,D7e=133,B7e=154,z7e=155,F7e=158,ZI=10,qI=13,zce=32,lq=9,Fce=35,N7e=40,$7e=46,mme=123,Oxe=39,Sxe=34,V7e=92,U7e=new Set([b7e,x7e,_7e,L7e,E7e,D7e,O7e,S7e,P7e,A7e,M7e,R7e,T7e,C7e,B7e,z7e,F7e,I7e]);function Iie(t){return t==ZI||t==qI}const j7e=new A0((t,e)=>{let o;if(t.next<0)t.acceptToken(i7e);else if(e.context.depth<0)Iie(t.next)&&t.acceptToken(o7e,1);else if(((o=t.peek(-1))<0||Iie(o))&&e.canShift(pme)){let f=0;for(;t.next==zce||t.next==lq;)t.advance(),f++;(t.next==ZI||t.next==qI||t.next==Fce)&&t.acceptToken(pme,-f)}else Iie(t.next)&&t.acceptToken(r7e,1)},{contextual:!0}),Q7e=new A0((t,e)=>{let o=e.context.depth;if(o<0)return;let f=t.peek(-1);if(f==ZI||f==qI){let P=0,d=0;for(;;){if(t.next==zce)P++;else if(t.next==lq)P+=8-P%8;else break;t.advance(),d++}P!=o&&t.next!=ZI&&t.next!=qI&&t.next!=Fce&&(P{for(let e=0;e<5;e++){if(t.next!="print".charCodeAt(e))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let e=0;;e++){let o=t.peek(e);if(!(o==zce||o==lq)){o!=N7e&&o!=$7e&&o!=ZI&&o!=qI&&o!=Fce&&t.acceptToken(n7e);return}}});function cq(t,e,o,f,P){return new A0(d=>{let l=d.pos;for(;!(d.next<0);)if(d.next==mme)if(d.peek(1)==mme)d.advance(2);else{if(d.pos==l){d.acceptToken(f,1);return}break}else if(d.next==V7e)d.advance(),d.next>=0&&d.advance();else if(d.next==t&&(e==1||d.peek(1)==t&&d.peek(2)==t)){if(d.pos==l){d.acceptToken(P,e);return}break}else d.advance();d.pos>l&&d.acceptToken(o)})}const Y7e=cq(Oxe,1,a7e,s7e,l7e),X7e=cq(Sxe,1,c7e,u7e,f7e),G7e=cq(Oxe,3,d7e,h7e,p7e),K7e=cq(Sxe,3,m7e,g7e,v7e),J7e=gS({'async "*" "**" FormatConversion FormatSpec':Gn.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":Gn.controlKeyword,"in not and or is del":Gn.operatorKeyword,"from def class global nonlocal lambda":Gn.definitionKeyword,import:Gn.moduleKeyword,"with as print":Gn.keyword,Boolean:Gn.bool,None:Gn.null,VariableName:Gn.variableName,"CallExpression/VariableName":Gn.function(Gn.variableName),"FunctionDefinition/VariableName":Gn.function(Gn.definition(Gn.variableName)),"ClassDefinition/VariableName":Gn.definition(Gn.className),PropertyName:Gn.propertyName,"CallExpression/MemberExpression/PropertyName":Gn.function(Gn.propertyName),Comment:Gn.lineComment,Number:Gn.number,String:Gn.string,FormatString:Gn.special(Gn.string),UpdateOp:Gn.updateOperator,"ArithOp!":Gn.arithmeticOperator,BitOp:Gn.bitwiseOperator,CompareOp:Gn.compareOperator,AssignOp:Gn.definitionOperator,Ellipsis:Gn.punctuation,At:Gn.meta,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace,".":Gn.derefOperator,", ;":Gn.separator}),ePe={__proto__:null,await:48,or:58,and:60,in:64,not:66,is:68,if:74,else:76,lambda:80,yield:98,from:100,async:106,for:108,None:168,True:170,False:170,del:184,pass:188,break:192,continue:196,return:200,raise:208,import:212,as:214,global:218,nonlocal:220,assert:224,type:229,elif:242,while:246,try:252,except:254,finally:256,with:260,def:264,class:274,match:285,case:291},tPe=fS.deserialize({version:14,states:"#&jO`Q#yOOP$bOSOOO%kQ&nO'#HcOOQS'#Cq'#CqOOQS'#Cr'#CrO'ZQ#xO'#CpO(|Q&nO'#HbOOQS'#Hc'#HcOOQS'#DW'#DWOOQS'#Hb'#HbO)jQ#xO'#DaO)}Q#xO'#DhO*_Q#xO'#DlOOQS'#Dw'#DwO*rO,UO'#DwO*zO7[O'#DwO+SOWO'#DxO+_O`O'#DxO+jOpO'#DxO+uO!bO'#DxO-wQ&nO'#HSOOQS'#HS'#HSO'ZQ#xO'#HRO/ZQ&nO'#HROOQS'#Ee'#EeO/rQ#xO'#EfOOQS'#HQ'#HQO/|Q#xO'#HPOOQV'#HP'#HPO0XQ#xO'#F]OOQS'#Ge'#GeO0^Q#xO'#F[OOQV'#IY'#IYOOQV'#HO'#HOOOQV'#Ft'#FtQ`Q#yOOO'ZQ#xO'#CsO0lQ#xO'#DPO0sQ#xO'#DTO1RQ#xO'#HgO1cQ&nO'#EYO'ZQ#xO'#EZOOQS'#E]'#E]OOQS'#E_'#E_OOQS'#Ea'#EaO1wQ#xO'#EcO2_Q#xO'#EgO0XQ#xO'#EiO2rQ&nO'#EiO0XQ#xO'#ElO/rQ#xO'#EoO0XQ#xO'#EqO/rQ#xO'#EwO/rQ#xO'#EzO2}Q#xO'#E|O3UQ#xO'#FRO3aQ#xO'#E}O/rQ#xO'#FRO0XQ#xO'#FTO0XQ#xO'#FYO3fQ#xO'#F_P3mO#xO'#G}POOO)CBq)CBqOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Ck'#CkOOQS'#Cl'#ClOOQS'#Cn'#CnO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO3xQ#xO'#DqOOQS,5:[,5:[O4]Q#xO'#HqOOQS,5:_,5:_O4jQMlO,5:_O4oQ&nO,59[O0lQ#xO,59dO0lQ#xO,59dO0lQ#xO,59dO7_Q#xO,59dO7dQ#xO,59dO7kQ#xO,59lO7rQ#xO'#HbO8xQ#xO'#HaOOQS'#Ha'#HaOOQS'#D^'#D^O9aQ#xO,59cO'ZQ#xO,59cO9oQ#xO,59cOOQS,59{,59{O9tQ#xO,5:TO'ZQ#xO,5:TOOQS,5:S,5:SO:SQ#xO,5:SO:XQ#xO,5:ZO'ZQ#xO,5:ZO'ZQ#xO,5:XOOQS,5:W,5:WO:jQ#xO,5:WO:oQ#xO,5:YOOOO'#F|'#F|O:tO,UO,5:cOOQS,5:c,5:cOOOO'#F}'#F}O:|O7[O,5:cO;UQ#xO'#DyOOOW'#GO'#GOO;fOWO,5:dOOQS,5:d,5:dO;UQ#xO'#D}OOO`'#GR'#GRO;qO`O,5:dO;UQ#xO'#EOOOOp'#GS'#GSO;|OpO,5:dO;UQ#xO'#EPOOO!b'#GT'#GTOROOQS,5>R,5>RO/rQ#xO'#EUOOQS'#EV'#EVOGZQ#xO'#GWOGkQ#xO,59OOGkQ#xO,59OO)pQ#xO,5:rOGyQ&nO'#HjOOQS,5:u,5:uOOQS,5:},5:}OH^Q#xO,5;ROHoQ#xO,5;TOOQS'#GZ'#GZOH}Q&nO,5;TOI]Q#xO,5;TOIbQ#xO'#IWOOQS,5;W,5;WOIpQ#xO'#ISOOQS,5;Z,5;ZOJRQ#xO,5;]O3aQ#xO,5;cO3aQ#xO,5;fOJZQ&nO'#IZO'ZQ#xO'#IZOJeQ#xO,5;hO2}Q#xO,5;hO/rQ#xO,5;mO0XQ#xO,5;oOJjQ#yO'#ExOKvQ#{O,5;iO! [Q#xO'#I[O3aQ#xO,5;mO! gQ#xO,5;oO! oQ#xO,5;tO! zQ&nO,5;yO'ZQ#xO,5;yPOOO,5=i,5=iP!!ROSO,5=iP!!WO#xO,5=iO!${Q&nO1G.lO!%SQ&nO1G.lO!'sQ&nO1G.lO!'}Q&nO1G.lO!*hQ&nO1G.lO!*{Q&nO1G.lO!+`Q#xO'#HpO!+nQ&nO'#HSO/rQ#xO'#HpO!+xQ#xO'#HoOOQS,5:],5:]O!,QQ#xO,5:]O!,VQ#xO'#HrO!,bQ#xO'#HrO!,uQ#xO,5>]OOQS'#Du'#DuOOQS1G/y1G/yOOQS1G/O1G/OO!-uQ&nO1G/OO!-|Q&nO1G/OO0lQ#xO1G/OO!.iQ#xO1G/WOOQS'#D]'#D]O/rQ#xO,59vOOQS1G.}1G.}O!.pQ#xO1G/gO!/QQ#xO1G/gO!/YQ#xO1G/hO'ZQ#xO'#HiO!/_Q#xO'#HiO!/dQ&nO1G.}O!/tQ#xO,59kO!0zQ#xO,5>XO!1[Q#xO,5>XO!1dQ#xO1G/oO!1iQ&nO1G/oOOQS1G/n1G/nO!1yQ#xO,5>SO!2pQ#xO,5>SO/rQ#xO1G/sO!3_Q#xO1G/uO!3dQ&nO1G/uO!3tQ&nO1G/sOOQS1G/r1G/rOOQS1G/t1G/tOOOO-E9z-E9zOOQS1G/}1G/}OOOO-E9{-E9{O!4UQ#xO'#H|O/rQ#xO'#H|O!4dQ#xO,5:eOOOW-E9|-E9|OOQS1G0O1G0OO!4oQ#xO,5:iOOO`-E:P-E:PO!4zQ#xO,5:jOOOp-E:Q-E:QO!5VQ#xO,5:kOOO!b-E:R-E:ROOQS-E:S-E:SO!5bQ!LUO1G3XO!6RQ&nO1G3XO'ZQ#xO,5oOOQS1G1c1G1cO!7RQ#xO1G1cOOQS'#DX'#DXO/rQ#xO,5>OOOQS,5>O,5>OO!7WQ#xO'#FuO!7cQ#xO,59qO!7kQ#xO1G/ZO!7uQ&nO,5>SOOQS1G3m1G3mOOQS,5:p,5:pO!8fQ#xO'#HROOQS,5UO!9gQ#xO,5>UO/rQ#xO1G0mO/rQ#xO1G0mO0XQ#xO1G0oOOQS-E:X-E:XO!9xQ#xO1G0oO!:TQ#xO1G0oO!:YQ#xO,5>rO!:hQ#xO,5>rO!:vQ#xO,5>nO!;^Q#xO,5>nO!;oQ#xO'#EsO/rQ#xO1G0wO!;zQ#xO1G0wO!uO!BzQ#xO,5>uO!CSQ&nO,5>uO/rQ#xO1G1SO!C^Q#xO1G1SO3aQ#xO1G1XO! gQ#xO1G1ZOOQV,5;d,5;dO!CcQ#zO,5;dO!ChQ#{O1G1TO!F|Q#xO'#GbO3aQ#xO1G1TO3aQ#xO1G1TO!G^Q#xO,5>vO!GkQ#xO,5>vO0XQ#xO,5>vOOQV1G1X1G1XO!GsQ#xO'#FVO!HUQMlO1G1ZO!H^Q#xO1G1ZOOQV1G1`1G1`O3aQ#xO1G1`O!HcQ#xO1G1`O!HkQ#xO'#FaOOQV1G1e1G1eO! zQ&nO1G1ePOOO1G3T1G3TP!HpOSO1G3TOOQS,5>[,5>[OOQS'#Dr'#DrO/rQ#xO,5>[O!HuQ#xO,5>ZO!IYQ#xO,5>ZOOQS1G/w1G/wO!IbQ#xO,5>^O!IrQ#xO,5>^O!IzQ#xO,5>^O!J_Q#xO,5>^O!JoQ#xO,5>^OOQS1G3w1G3wOOQS7+$j7+$jO!7kQ#xO7+$rO!LbQ#xO1G/OO!LiQ#xO1G/OOOQS1G/b1G/bOOQS,5TO'ZQ#xO,5>TOOQS7+$i7+$iO!MVQ#xO7+%RO!M_Q#xO7+%SO!MdQ#xO1G3sOOQS7+%Z7+%ZO!MtQ#xO1G3sO!M|Q#xO7+%ZOOQS,5hO##PQ#xO,5>hO##PQ#xO,5>hO##_O$ISO'#D{O##jO#tO'#H}OOOW1G0P1G0PO##oQ#xO1G0POOO`1G0T1G0TO##wQ#xO1G0TOOOp1G0U1G0UO#$PQ#xO1G0UOOO!b1G0V1G0VO#$XQ#xO1G0VO#$aQ!LUO7+(sO#%QQ&nO1G2]P#%kQ#xO'#GVOOQS,5i,5>iOOOW7+%k7+%kOOO`7+%o7+%oOOOp7+%p7+%pOOO!b7+%q7+%qO#:`Q#xO1G3XO#:yQ#xO1G3XP'ZQ#xO'#FxO/rQ#xO<qO#;mQ#xO,5>qO0XQ#xO,5>qO#pOOQS<sO#sOOQS1G0y1G0yOOQS<xO#DpQ#xO,5>xOOQS,5>x,5>xO#D{Q#xO,5>wO#E^Q#xO,5>wOOQS1G1]1G1]OOQS,5;s,5;sOOQV<XAN>XO#HmQ#xO<eAN>eO/rQ#xO1G2PO#H}Q&nO1G2PP#IXQ#xO'#FyOOQS1G2V1G2VP#IfQ#xO'#GPO#IsQ#xO7+)nO#JZQ#xO,5:hOOOO-E:O-E:OO#JfQ#xO7+(sOOQSAN?_AN?_O#KPQ#xO,5VOOQSANBaANBaOOOO7+%n7+%nOOQS7+'|7+'|O$+jQ#xO<zO$.`Q#xO,5>zO0XQ#xO,5|O$!pQ#xO,5>|OOQS1G1s1G1sO$2WQ&nO,5<_OOQU7+'S7+'SO$$mQ#xO1G/kO$!pQ#xO,5<]O$2_Q#xO,5>}O$2fQ#xO,5>}OOQS1G1v1G1vOOQS7+'V7+'VP$!pQ#xO'#GkO$2nQ#xO1G4hO$2xQ#xO1G4hO$3QQ#xO1G4hOOQS7+%V7+%VO$3`Q#xO1G1wO$3nQ&nO'#FdO$3uQ#xO,5=UOOQS,5=U,5=UO$4TQ#xO1G4iOOQS-E:h-E:hO$!pQ#xO,5=TO$4[Q#xO,5=TO$4aQ#xO7+*SOOQS-E:g-E:gO$4kQ#xO7+*SO$!pQ#xO,5<^P$!pQ#xO'#GjO$4sQ#xO1G2oO$!pQ#xO1G2oP$5RQ#xO'#GiO$5YQ#xO<fPP>i?Z?^PP'a'aPP?vPP'a'aPP'a'a'a'a'a?z@t'aP@wP@}EXHxPH|IYI^IbIf'aPPPIjIs'XP'X'XP'XP'XP'XP'XP'X'X'XP'XPP'XPP'XP'XPIyJVJ_PJfJlPJfPJfJfPPPJfPLzPMTM_MeLzPJfMnPJfPMuM{PNPNe! S! mNPNP! s!!QNPNPNPNP!!f!!l!!o!!t!!w!#R!#X!#e!#w!#}!$X!$_!${!%R!%X!%_!%i!%o!%u!%{!&R!&X!&k!&u!&{!'R!'X!'c!'i!'o!'u!'{!(V!(]!(g!(m!(v!(|!)]!)e!)o!)vPPPPPPPPPPPPPPPPP!)|!*P!*V!*`!*j!*uPPPPPPPPPPPP!/l!1Q!5T!8hPP!8p!9S!9]!:U!9{!:_!:e!:h!:k!:n!:v!;gPPPPPPPPP!;j!;yPPPP!V!>`!?[!?_]jOs#v$w*W,d(TeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z}!hQ#r$P$b$q$}%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!P!iQ#r$P$b$q$}%S%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!R!jQ#r$P$b$q$}%S%T%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!T!kQ#r$P$b$q$}%S%T%U%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!V!lQ#r$P$b$q$}%S%T%U%V%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!X!mQ#r$P$b$q$}%S%T%U%V%W%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!]!mQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O(TTOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z&iVOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1Z%sXOYZ[isw}!O!S!U!V!Z!n!p#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$VvQ/t/SR1W1Y'zeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZW#ym!P!Q$hW$Rv&q/S1YQ$j!RQ$n!TQ${![Q$|!]W%Z!n(O*v,zS&p$S$TQ'e$vQ)Y&jQ)h'QU)i'S)j)kU)l'U)m+}W)s'Y,Q-j.dQ*d'nW*e'p,s-}.lQ,P)rS,r*f*gY-d+x-e.a.b/XQ-g+zQ-t,hQ-x,kQ.j-vl.o.R.u.v.x/d/f/k0R0W0]0b0m0r0uQ/W.`Q/l.wQ/x/^Q0T/hU0h0^0k0sX0n0c0o0v0wR&o$R!_!|YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sR%k!{Q#QYQ&W#cQ&Z#gQ&]#jQ&_#mQ&x$^Q&{$aR-`+lT/R.Y0[![!oQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OQ&m#zQ't$|R*p'uR'}%ZQ%d!rR/v/[(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZS#pd#q!P.s.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0w(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZT#pd#qT#d`#ee(|&W&Z&]&_)O)Q)S)U-`._T+m({+nT#ha#iT#kb#lT#nc#oQ$`xQ,P)sR,q*eX$^x$_$`&zQ'[$nQ'r${Q'u$|R*V'eQ)t'YV-i,Q-j.dZlOs$w*W,dXpOs*W,dQ$x!YQ']$oQ'^$pQ'o$zQ's$|Q*T'dQ*['iQ*_'jQ*`'kQ*m'qS*o't'uQ,W)yQ,Y)zQ,Z){Q,_*RS,a*U*nQ,e*YQ,f*ZS,g*]*^Q,w*pQ-l,VQ-m,XQ-o,`S-p,b,cQ-u,iQ-w,jQ.e-nQ.g-qQ.h-sQ.i-tQ/Y.fQ/Z.jQ/p.{R0Z/qWpOs*W,dR#|oQ'q${S*U'e'rR,c*VQ,p*eR-{,qQ*n'qQ,b*UR-q,cZnOos*W,dQ'w$}R*r'xT.P,x.Qu.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0ut.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uQ/l.wX0n0c0o0v0w!P.r.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0wQ/a.qR/}/bg/d.t/e/y0Q0V0e0g0i0t0x0yu.y.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uX/_.o.y/x0hR/z/^V0j0^0k0sR/q.{QsOS$Os,dR,d*WQ&r$UR)_&rS%z#W$WS(p%z(sT(s%}&tQ%n#OQ%u#SW(b%n%u(g(kQ(g%rR(k%wQ&}$bR)e&}Q(v&OQ+_(qT+e(v+_Q(P%]R*w(PS(S%`%aY*{(S*|-Q.W/PU*|(T(U(VU-Q*}+O+PS.W-R-SR/P.XQ#_^R&R#_Q#b_R&T#bQ#e`R&X#eQ(y&US+j(y+kR+k(zQ+n({R-a+nQ#iaR&[#iQ#lbR&^#lQ#ocR&`#oQ#qdR&a#qQ#tgQ&c#rW&f#t&c)b+uQ)b&wR+u1OQ$_xS&y$_&zR&z$`Q'X$lR)q'XQ&k#yR)Z&kQ$h!QR'R$hQ+y)iS-f+y.cR.c-gQ'V$jR)n'VQ,R)tR-k,RQ#wkR&h#wQ)x']R,U)xQ'`$qS*P'`*QR*Q'aQ'h$xR*X'hQ'm$yS*c'm,nR,n*dQ,t*iR.O,tWoOs*W,dR#{oQ.Q,xR.m.Qd/e.t/y0Q0V0e0g0i0t0x0yR0P/eU/].o/x0hR/w/]Q0d0VS0p0d0qR0q0eS0_/y/zR0l0_Q/g.tR0S/gR!`PXrOs*W,dWqOs*W,dR'f$wYkOs$w*W,dR&g#v[xOs#v$w*W,dR&x$^&hQOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1ZQ!sTQ#rfQ$PtU$by%p(eS$q!W$tQ$}!^Q%S!hQ%T!iQ%U!jQ%V!kQ%W!lQ%X!mQ%r#PQ%w#TQ%}#XQ&O#YQ&t$XQ'a$rQ'x%OQ)W&dU)c&|)d+vW)|'_*O,],^Q+R(_Q+[(nQ,[)}Q-Z+dQ0Y/oR1O1TQ#OYQ#SZQ$o!UQ$p!VQ%`!pQ(V%a^(^%m%t(a(i+T+W+Y^*x(R*z-O-P.V/O/sQ+O(TQ+P(UQ,X)yQ,}*yQ-R*}Q.T,{Q.U,|Q.X-SQ.|.SR/r.}[gOs#v$w*W,d!^!{YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sQ#W[Q#uiS$Ww}Q$e!OW$l!S$a'b*SS$y!Z$uW%Y!n(O*v,zY&U#c#g#j#m+l`&e#s&b)V)X)a+t-b1SQ&u$YQ&v$[Q&w$^Q'{%[Q(]%kW(m%y(o+]+aQ(q%{Q(z&VQ)]&oS)`&s1QQ)f'OQ)g'PU)o'W)p,OQ)v'ZQ*]'iY*a'l*b,l,m-yQ*t'}S+Q(Y1RW+c(u+^-W-[W+g(x+i-^-_Q,T)wQ,i*^Q,v*lQ-]+hQ-c+wQ-z,pQ.]-YR.k-{hUOs#s#v$w&b&s(Y)V)X*W,d%Y!zYZ[iw}!O!S!U!V!Z!n!p#c#g#j#m$Y$[$^$a$u%[%a%k%m%t%y%{&V&o'O'P'W'Z'b'i'l'}(O(R(T(U(a(i(o(u(x)a)p)w)y*S*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$QuW%e!t!x0{1VQ%f!uQ%g!vQ%i!yQ%s0zS(X%h1PQ(Z0|Q([0}Q-T+UQ.[-US/Q.Y0[R1X1ZU$Uv/S1YR)^&q[hOs#v$w*W,da!}Y#c#g#j#m$^$a+lQ#][Q$ZwR$d}Q%o#OQ%v#SQ%|#WQ'{%YQ(h%rQ(l%wQ(t%}Q(w&OQ+`(qQ,y*tQ.Z-TQ/U.[R/u/TQ$cyQ(d%pR+V(eQ/T.YR0f0[R#VZR#[[R%_!nQ%]!nV*u(O*v,z!]!qQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OR%b!pQ&W#cQ&Z#gQ&]#jQ&_#mR-`+lQ(}&WQ)P&ZQ)R&]Q)T&_Q+p)OQ+q)QQ+r)SQ+s)UQ.^-`R/V._Q$m!SQ&{$aQ*R'bR,`*SQ#zmQ$f!PQ$i!QR'T$hQ)h'SR+|)kQ)h'SQ+{)jR+|)kR$k!RR)u'YXqOs*W,dQ$s!WR'c$tQ$z!ZR'd$uR*k'pQ*i'pV-|,s-}.lQ.{.RQ/i.uR/j.vU.t.R.u.vQ/n.xQ/y/^Q0O/dU0Q/f0R0bQ0V/kQ0e0WQ0g0]U0i0^0k0sQ0t0mQ0x0rR0y0uR/m.wR/{/^",nodeNames:"⚠ print { { { { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatConversion FormatSpec FormatReplacement FormatReplacement FormatReplacement FormatReplacement ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:283,context:q7e,nodeProps:[["group",-15,8,88,90,91,93,95,97,99,101,102,103,105,108,111,113,"Statement Statement",-22,10,20,23,27,42,51,52,58,59,62,63,64,65,66,69,72,73,74,82,83,84,85,"Expression",-10,117,119,122,124,125,129,131,136,138,141,"Statement",-9,146,147,150,151,153,154,155,156,157,"Pattern"],["openedBy",25,"(",56,"[",60,"{"],["closedBy",26,")",57,"]",61,"}"]],propSources:[J7e],skippedNodes:[0,6],repeatNodeCount:38,tokenData:"%-W#sR!`OX%TXY=|Y[%T[]=|]p%Tpq=|qr@_rsDOst!+|tu%Tuv!Nnvw#!|wx#$Wxy#:Uyz#;Yz{#<^{|#>x|}#@S}!O#AW!O!P#Ci!P!Q#N_!Q!R$!y!R![$&w![!]$1e!]!^$3s!^!_$4w!_!`$7c!`!a$8m!a!b%T!b!c$;U!c!d$W!e!h$W#V#Y$Q<%lO$Xc&r!b&jS&mW%p!TOX%TXY=|Y[%T[]=|]p%Tpq=|qr%Trs&Vsw%Twx/Xx#O%T#O#P?d#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#s?i[&r!bOY%TYZ=|Z]%T]^=|^#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=P;=`<%l8^<%lO%T!q@hd&r!b&jS&mWOr%Trs&Vsw%Twx/Xx!_%T!_!`Av!`#O%T#O#P7o#P#T%T#T#UBz#U#f%T#f#gBz#g#hBz#h#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qBR]oR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qCV]!nR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cDXa&r!b&jS&hsOYE^YZ%TZ]E^]^%T^rE^rs!)|swE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cEia&r!b&jS&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cFw]&r!b&jS&hsOr%Trs'Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cGya&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxIOx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cIXa&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxJ^x#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#_Jg_&r!b&mW&hsOYJ^YZ1XZ]J^]^1X^rJ^rsKfs#OJ^#O#PL`#P#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`!!o<%lOJ^#_KmZ&r!b&hsOr1Xrs2ys#O1X#O#P3q#P#o1X#o#p4`#p#q1X#q#r4`#r;'S1X;'S;=`7i<%lO1X#_LeW&r!bO#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`! r;=`<%lL}<%lOJ^{MUZ&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l<%lOL}{M|V&hsOr4`rs5ds#O4`#O#P5y#P;'S4`;'S;=`6t<%lO4`{NfRO;'SL};'S;=`No;=`OL}{Nv[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lL}<%lOL}{! oP;=`<%lL}#_! y[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lJ^<%lOL}#_!!rP;=`<%lJ^#c!!zW&r!bO#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!(q;=`<%l!#d<%lOE^!P!#m]&jS&mW&hsOY!#dYZ8^Z]!#d]^8^^r!#drs!$fsw!#dwx!%Yx#O!#d#O#P!'Y#P;'S!#d;'S;=`!(k<%lO!#d!P!$mX&jS&hsOr8^rs9rsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`^s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!>e_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!?ds#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!?k_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!3`s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!@q[U!T&r!bOY!=UYZ1XZ]!=U]^1X^#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!Ec;=`<%l4`<%lO!=U!]!AnZU!T&mWOY!AgYZ4`Z]!Ag]^4`^r!Agrs!Bas#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!BfZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!CXs#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!C^ZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!4Ys#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!DUWU!TOY!AgYZ4`Z]!Ag]^4`^;'S!Ag;'S;=`!Dn;=`<%l4`<%lO!Ag!]!DsW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!Ag<%lO4`!]!E`P;=`<%l!Ag#o!EhW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!=U<%lO4`#o!FTP;=`<%l!=U#s!F_[U!T&r!bOY!+|YZ%TZ]!+|]^%T^#o!+|#o#p!GT#p#q!+|#q#r!GT#r;'S!+|;'S;=`!Mq;=`<%l8^<%lO!+|!a!G^]U!T&jS&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!H^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!IVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!I^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!5wsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!J^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!KVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!K^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!Agx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!L[WU!TOY!GTYZ8^Z]!GT]^8^^;'S!GT;'S;=`!Lt;=`<%l8^<%lO!GT!a!L{Y&jS&mWOr8^rs9Qsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`Q<%lO$TP;=`<%l$ei&r!b&jS&mW&g`&SsOr%Trs$@Ssw%Twx$C`x!Q%T!Q![$Q<%lO$Q<%lO$Q<%lO$Q<%lO$Q<%lO$ePe[t]||-1}],tokenPrec:7372}),gme=new hce,kxe=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function qQ(t){return(e,o,f)=>{if(f)return!1;let P=e.node.getChild("VariableName");return P&&o(P,t),!0}}const nPe={FunctionDefinition:qQ("function"),ClassDefinition:qQ("class"),ForStatement(t,e,o){if(o){for(let f=t.node.firstChild;f;f=f.nextSibling)if(f.name=="VariableName")e(f,"variable");else if(f.name=="in")break}},ImportStatement(t,e){var o,f;let{node:P}=t,d=((o=P.firstChild)===null||o===void 0?void 0:o.name)=="from";for(let l=P.getChild("import");l;l=l.nextSibling)l.name=="VariableName"&&((f=l.nextSibling)===null||f===void 0?void 0:f.name)!="as"&&e(l,d?"variable":"namespace")},AssignStatement(t,e){for(let o=t.node.firstChild;o;o=o.nextSibling)if(o.name=="VariableName")e(o,"variable");else if(o.name==":"||o.name=="AssignOp")break},ParamList(t,e){for(let o=null,f=t.node.firstChild;f;f=f.nextSibling)f.name=="VariableName"&&(!o||!/\*|AssignOp/.test(o.name))&&e(f,"variable"),o=f},CapturePattern:qQ("variable"),AsPattern:qQ("variable"),__proto__:null};function Txe(t,e){let o=gme.get(e);if(o)return o;let f=[],P=!0;function d(l,n){let c=t.sliceString(l.from,l.to);f.push({label:c,type:n})}return e.cursor(mf.IncludeAnonymous).iterate(l=>{if(l.name){let n=nPe[l.name];if(n&&n(l,d,P)||!P&&kxe.has(l.name))return!1;P=!1}else if(l.to-l.from>8192){for(let n of Txe(t,l.node))f.push(n);return!1}}),gme.set(e,f),f}const vme=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Cxe=["String","FormatString","Comment","PropertyName"];function rPe(t){let e=Gu(t.state).resolveInner(t.pos,-1);if(Cxe.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&vme.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let P=e;P;P=P.parent)kxe.has(P.name)&&(f=f.concat(Txe(t.state.doc,P)));return{options:f,from:o?e.from:t.pos,validFor:vme}}const oPe=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),iPe=[Hd("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Hd("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Hd("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Hd("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Hd(`if \${}: -`,{label:"if",detail:"block",type:"keyword"}),Hd("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Hd("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Hd("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Hd("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],iPe=Mce(Txe,oq(rPe.concat(oPe)));function vme(t,e){let o=t.baseIndentFor(e),f=t.lineAt(t.pos,-1),P=f.from+f.text.length;return/^\s*($|#)/.test(f.text)&&t.node.too?null:o+t.unit}const Die=lS.define({name:"python",parser:ePe.configure({props:[OT.add({Body:t=>{var e;return(e=vme(t,t.node))!==null&&e!==void 0?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except |finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":xH({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":xH({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":xH({closing:"]"}),"String FormatString":()=>null,Script:t=>{if(t.pos+/\s*/.exec(t.textAfter)[0].length>=t.node.to){let e=null;for(let o=t.node,f=o.to;o=o.lastChild,!(!o||o.to!=f);)o.type.name=="Body"&&(e=o);if(e){let o=vme(t,e);if(o!=null)return o}}return t.continue()}}),gS.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":bce,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function yme(){return new gT(Die,[Die.data.of({autocomplete:nPe}),Die.data.of({autocomplete:iPe})])}const aPe="#e5c07b",bme="#e06c75",sPe="#56b6c2",lPe="#ffffff",wH="#abb2bf",Ase="#7d8799",cPe="#61afef",uPe="#98c379",xme="#d19a66",fPe="#c678dd",dPe="#21252b",_me="#2c313a",wme="#282c34",Bie="#353a42",hPe="#3E4451",Ome="#528bff",pPe=Oa.theme({"&":{color:wH,backgroundColor:wme},".cm-content":{caretColor:Ome},".cm-cursor, .cm-dropCursor":{borderLeftColor:Ome},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:hPe},".cm-panels":{backgroundColor:dPe,color:wH},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:wme,color:Ase,border:"none"},".cm-activeLineGutter":{backgroundColor:_me},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Bie},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Bie,borderBottomColor:Bie},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:_me,color:wH}}},{dark:!0}),mPe=bD.define([{tag:Gn.keyword,color:fPe},{tag:[Gn.name,Gn.deleted,Gn.character,Gn.propertyName,Gn.macroName],color:bme},{tag:[Gn.function(Gn.variableName),Gn.labelName],color:cPe},{tag:[Gn.color,Gn.constant(Gn.name),Gn.standard(Gn.name)],color:xme},{tag:[Gn.definition(Gn.name),Gn.separator],color:wH},{tag:[Gn.typeName,Gn.className,Gn.number,Gn.changed,Gn.annotation,Gn.modifier,Gn.self,Gn.namespace],color:aPe},{tag:[Gn.operator,Gn.operatorKeyword,Gn.url,Gn.escape,Gn.regexp,Gn.link,Gn.special(Gn.string)],color:sPe},{tag:[Gn.meta,Gn.comment],color:Ase},{tag:Gn.strong,fontWeight:"bold"},{tag:Gn.emphasis,fontStyle:"italic"},{tag:Gn.strikethrough,textDecoration:"line-through"},{tag:Gn.link,color:Ase,textDecoration:"underline"},{tag:Gn.heading,fontWeight:"bold",color:bme},{tag:[Gn.atom,Gn.bool,Gn.special(Gn.variableName)],color:xme},{tag:[Gn.processingInstruction,Gn.string,Gn.inserted],color:uPe},{tag:Gn.invalid,color:lPe}]),mM=[pPe,sbe(mPe)];function ti(t,e){return o=>Object.keys(t).reduce((f,P)=>{const l=typeof t[P]=="object"&&t[P]!=null&&!Array.isArray(t[P])?t[P]:{type:t[P]};return o&&P in o?f[P]={...l,default:o[P]}:f[P]=l,e&&!f[P].source&&(f[P].source=e),f},{})}const xs=ti({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),ou=typeof window<"u",Nce=ou&&"IntersectionObserver"in window,gPe=ou&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Sme(t,e,o){vPe(t,e),e.set(t,o)}function vPe(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function yPe(t,e,o){return t.set(Cxe(t,e),o),o}function qk(t,e){return t.get(Cxe(t,e))}function Cxe(t,e,o){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:o;throw new TypeError("Private element is not present on this object")}function Axe(t,e,o){const f=e.length-1;if(f<0)return t===void 0?o:t;for(let P=0;PyS(t[f],e[f]))}function yT(t,e,o){return t==null||!e||typeof e!="string"?o:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),Axe(t,e.split("."),o))}function y1(t,e,o){if(e===!0)return t===void 0?o:t;if(e==null||typeof e=="boolean")return o;if(t!==Object(t)){if(typeof e!="function")return o;const P=e(t,o);return typeof P>"u"?o:P}if(typeof e=="string")return yT(t,e,o);if(Array.isArray(e))return Axe(t,e,o);if(typeof e!="function")return o;const f=e(t,o);return typeof f>"u"?o:f}function lT(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(o,f)=>e+f)}function Ma(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(t==null||t===""))return isNaN(+t)?String(t):isFinite(+t)?`${Number(t)}${e}`:void 0}function Mse(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function $ce(t){if(t&&"$el"in t){const e=t.$el;return(e==null?void 0:e.nodeType)===Node.TEXT_NODE?e.nextElementSibling:e}return t}const kme=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Ese=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function zie(t,e){return e.every(o=>t.hasOwnProperty(o))}function Vce(t,e){const o={},f=new Set(Object.keys(t));for(const P of e)f.has(P)&&(o[P]=t[P]);return o}function Tme(t,e,o){const f=Object.create(null),P=Object.create(null);for(const d in t)e.some(l=>l instanceof RegExp?l.test(d):l===d)&&!(o!=null&&o.some(l=>l===d))?f[d]=t[d]:P[d]=t[d];return[f,P]}function __(t,e){const o={...t};return e.forEach(f=>delete o[f]),o}function bPe(t,e){const o={};return e.forEach(f=>o[f]=t[f]),o}const Mxe=/^on[^a-z]/,uq=t=>Mxe.test(t),xPe=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],_Pe=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function wPe(t){return t.isComposing&&_Pe.includes(t.key)}function fq(t){const[e,o]=Tme(t,[Mxe]),f=__(e,xPe),[P,d]=Tme(o,["class","style","id",/^data-/]);return Object.assign(P,e),Object.assign(d,f),[P,d]}function fm(t){return t==null?[]:Array.isArray(t)?t:[t]}function OPe(t,e){let o=0;const f=function(){for(var P=arguments.length,d=new Array(P),l=0;lt(...d),wa(e))};return f.clear=()=>{clearTimeout(o)},f.immediate=t,f}function Qg(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(o,t))}function Cme(t){const e=t.toString().trim();return e.includes(".")?e.length-e.indexOf(".")-1:0}function Ame(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function Mme(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function SPe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let f=0;for(;f0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const f={};for(const P in t)f[P]=t[P];for(const P in e){const d=t[P],l=e[P];if(Mse(d)&&Mse(l)){f[P]=Ug(d,l,o);continue}if(Array.isArray(d)&&Array.isArray(l)&&o){f[P]=o(d,l);continue}f[P]=l}return f}function Exe(t){return t.map(e=>e.type===ya?Exe(e.children):e).flat()}function fT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(fT.cache.has(t))return fT.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return fT.cache.set(t,e),e}fT.cache=new Map;function jA(t,e){if(!e||typeof e!="object")return[];if(Array.isArray(e))return e.map(o=>jA(t,o)).flat(1);if(e.suspense)return jA(t,e.ssContent);if(Array.isArray(e.children))return e.children.map(o=>jA(t,o)).flat(1);if(e.component){if(Object.getOwnPropertySymbols(e.component.provides).includes(t))return[e.component];if(e.component.subTree)return jA(t,e.component.subTree).flat(1)}return[]}var WQ=new WeakMap,EA=new WeakMap;class kPe{constructor(e){Sme(this,WQ,[]),Sme(this,EA,0),this.size=e}push(e){qk(WQ,this)[qk(EA,this)]=e,yPe(EA,this,(qk(EA,this)+1)%this.size)}values(){return qk(WQ,this).slice(qk(EA,this)).concat(qk(WQ,this).slice(0,qk(EA,this)))}}function Uce(t){const e=lm({}),o=jn(t);return kp(()=>{for(const f in o.value)e[f]=o.value[f]},{flush:"sync"}),CM(e)}function lZ(t,e){return t.includes(e)}function Pxe(t){return t[2].toLowerCase()+t.slice(3)}const rg=()=>[Function,Array];function Eme(t,e){return e="on"+v_(e),!!(t[e]||t[`${e}Once`]||t[`${e}Capture`]||t[`${e}OnceCapture`]||t[`${e}CaptureOnce`])}function Rxe(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f1&&arguments[1]!==void 0?arguments[1]:!0;const o=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(f=>`${f}${e?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...t.querySelectorAll(o)]}function Lxe(t,e,o){let f,P=t.indexOf(document.activeElement);const d=e==="next"?1:-1;do P+=d,f=t[P];while((!f||f.offsetParent==null||!((o==null?void 0:o(f))??!0))&&P=0);return f}function cZ(t,e){var f,P,d,l;const o=qI(t);if(!e)(t===document.activeElement||!t.contains(document.activeElement))&&((f=o[0])==null||f.focus());else if(e==="first")(P=o[0])==null||P.focus();else if(e==="last")(d=o.at(-1))==null||d.focus();else if(typeof e=="number")(l=o[e])==null||l.focus();else{const n=Lxe(o,e);n?n.focus():cZ(t,e==="next"?"first":"last")}}function YQ(t){return t==null||typeof t=="string"&&t.trim()===""}function Ixe(){}function gM(t,e){if(!(ou&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${e})`)))return null;try{return!!t&&t.matches(e)}catch{return null}}function dq(t){return t.some(e=>iM(e)?e.type===k0?!1:e.type!==ya||dq(e.children):!0)?t:null}function TPe(t,e){if(!ou||t===0)return e(),()=>{};const o=window.setTimeout(e,t);return()=>window.clearTimeout(o)}function Pme(t,e){const o=Ai();return kp(()=>{o.value=t()},{flush:"sync",...e}),TM(o)}function CPe(t,e){const o=t.clientX,f=t.clientY,P=e.getBoundingClientRect(),d=P.left,l=P.top,n=P.right,c=P.bottom;return o>=d&&o<=n&&f>=l&&f<=c}function Pse(){const t=Ai(),e=o=>{t.value=o};return Object.defineProperty(e,"value",{enumerable:!0,get:()=>t.value,set:o=>t.value=o}),Object.defineProperty(e,"el",{enumerable:!0,get:()=>$ce(t.value)}),e}const Dxe=["top","bottom"],APe=["start","end","left","right"];function Rse(t,e){let[o,f]=t.split(" ");return f||(f=lZ(Dxe,o)?"start":lZ(APe,o)?"top":"center"),{side:Lse(o,e),align:Lse(f,e)}}function Lse(t,e){return t==="start"?e?"right":"left":t==="end"?e?"left":"right":t}function Fie(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function Nie(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function Rme(t){return{side:t.align,align:t.side}}function Lme(t){return lZ(Dxe,t.side)?"y":"x"}class dT{constructor(e){let{x:o,y:f,width:P,height:d}=e;this.x=o,this.y=f,this.width=P,this.height=d}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Ime(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function Bxe(t){return Array.isArray(t)?new dT({x:t[0],y:t[1],width:0,height:0}):t.getBoundingClientRect()}function jce(t){const e=t.getBoundingClientRect(),o=getComputedStyle(t),f=o.transform;if(f){let P,d,l,n,c;if(f.startsWith("matrix3d("))P=f.slice(9,-1).split(/, /),d=+P[0],l=+P[5],n=+P[12],c=+P[13];else if(f.startsWith("matrix("))P=f.slice(7,-1).split(/, /),d=+P[0],l=+P[3],n=+P[4],c=+P[5];else return new dT(e);const b=o.transformOrigin,i=e.x-n-(1-d)*parseFloat(b),O=e.y-c-(1-l)*parseFloat(b.slice(b.indexOf(" ")+1)),w=d?e.width/d:t.offsetWidth+1,y=l?e.height/l:t.offsetHeight+1;return new dT({x:i,y:O,width:w,height:y})}else return new dT(e)}function QA(t,e,o){if(typeof t.animate>"u")return{finished:Promise.resolve()};let f;try{f=t.animate(e,o)}catch{return{finished:Promise.resolve()}}return typeof f.finished>"u"&&(f.finished=new Promise(P=>{f.onfinish=()=>{P(f)}})),f}const OH=new WeakMap;function MPe(t,e){Object.keys(e).forEach(o=>{if(uq(o)){const f=Pxe(o),P=OH.get(t);if(e[o]==null)P==null||P.forEach(d=>{const[l,n]=d;l===f&&(t.removeEventListener(f,n),P.delete(d))});else if(!P||![...P].some(d=>d[0]===f&&d[1]===e[o])){t.addEventListener(f,e[o]);const d=P||new Set;d.add([f,e[o]]),OH.has(t)||OH.set(t,d)}}else e[o]==null?t.removeAttribute(o):t.setAttribute(o,e[o])})}function EPe(t,e){Object.keys(e).forEach(o=>{if(uq(o)){const f=Pxe(o),P=OH.get(t);P==null||P.forEach(d=>{const[l,n]=d;l===f&&(t.removeEventListener(f,n),P.delete(d))})}else t.removeAttribute(o)})}const PA=2.4,Dme=.2126729,Bme=.7151522,zme=.072175,PPe=.55,RPe=.58,LPe=.57,IPe=.62,XQ=.03,Fme=1.45,DPe=5e-4,BPe=1.25,zPe=1.25,Nme=.078,$me=12.82051282051282,GQ=.06,Vme=.001;function Ume(t,e){const o=(t.r/255)**PA,f=(t.g/255)**PA,P=(t.b/255)**PA,d=(e.r/255)**PA,l=(e.g/255)**PA,n=(e.b/255)**PA;let c=o*Dme+f*Bme+P*zme,b=d*Dme+l*Bme+n*zme;if(c<=XQ&&(c+=(XQ-c)**Fme),b<=XQ&&(b+=(XQ-b)**Fme),Math.abs(b-c)c){const O=(b**PPe-c**RPe)*BPe;i=O-Vme?0:O>-Nme?O-O*$me*GQ:O+GQ}return i*100}function FPe(t,e){e=Array.isArray(e)?e.slice(0,-1).map(o=>`'${o}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const uZ=.20689655172413793,NPe=t=>t>uZ**3?Math.cbrt(t):t/(3*uZ**2)+4/29,$Pe=t=>t>uZ?t**3:3*uZ**2*(t-4/29);function zxe(t){const e=NPe,o=e(t[1]);return[116*o-16,500*(e(t[0]/.95047)-o),200*(o-e(t[2]/1.08883))]}function Fxe(t){const e=$Pe,o=(t[0]+16)/116;return[e(o+t[1]/500)*.95047,e(o),e(o-t[2]/200)*1.08883]}const VPe=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],UPe=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,jPe=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],QPe=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function Nxe(t){const e=Array(3),o=UPe,f=VPe;for(let P=0;P<3;++P)e[P]=Math.round(Qg(o(f[P][0]*t[0]+f[P][1]*t[1]+f[P][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function Qce(t){let{r:e,g:o,b:f}=t;const P=[0,0,0],d=QPe,l=jPe;e=d(e/255),o=d(o/255),f=d(f/255);for(let n=0;n<3;++n)P[n]=l[n][0]*e+l[n][1]*o+l[n][2]*f;return P}function Ise(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function HPe(t){return Ise(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const jme=/^(?(?:rgb|hsl)a?)\((?.+)\)/,ZPe={rgb:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),rgba:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),hsl:(t,e,o,f)=>Qme({h:t,s:e,l:o,a:f}),hsla:(t,e,o,f)=>Qme({h:t,s:e,l:o,a:f}),hsv:(t,e,o,f)=>WI({h:t,s:e,v:o,a:f}),hsva:(t,e,o,f)=>WI({h:t,s:e,v:o,a:f})};function l_(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&jme.test(t)){const{groups:e}=t.match(jme),{fn:o,values:f}=e,P=f.split(/,\s*/).map(d=>d.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(d)/100:parseFloat(d));return ZPe[o](...P)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length),WPe(e)}else if(typeof t=="object"){if(zie(t,["r","g","b"]))return t;if(zie(t,["h","s","l"]))return WI($xe(t));if(zie(t,["h","s","v"]))return WI(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name} -Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function WI(t){const{h:e,s:o,v:f,a:P}=t,d=n=>{const c=(n+e/60)%6;return f-f*o*Math.max(Math.min(c,4-c,1),0)},l=[d(5),d(3),d(1)].map(n=>Math.round(n*255));return{r:l[0],g:l[1],b:l[2],a:P}}function Qme(t){return WI($xe(t))}function $xe(t){const{h:e,s:o,l:f,a:P}=t,d=f+o*Math.min(f,1-f),l=d===0?0:2-2*f/d;return{h:e,s:l,v:d,a:P}}function KQ(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function qPe(t){let{r:e,g:o,b:f,a:P}=t;return`#${[KQ(e),KQ(o),KQ(f),P!==void 0?KQ(Math.round(P*255)):""].join("")}`}function WPe(t){t=YPe(t);let[e,o,f,P]=SPe(t,2).map(d=>parseInt(d,16));return P=P===void 0?P:P/255,{r:e,g:o,b:f,a:P}}function YPe(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=Ame(Ame(t,6),8,"F")),t}function XPe(t,e){const o=zxe(Qce(t));return o[0]=o[0]+e*10,Nxe(Fxe(o))}function GPe(t,e){const o=zxe(Qce(t));return o[0]=o[0]-e*10,Nxe(Fxe(o))}function KPe(t){const e=l_(t);return Qce(e)[1]}function Vxe(t){const e=Math.abs(Ume(l_(0),l_(t)));return Math.abs(Ume(l_(16777215),l_(t)))>Math.min(e,50)?"#fff":"#000"}function ph(t,e){const o=Zle();if(!o)throw new Error(`[Vuetify] ${t} ${e||"must be called from inside a setup function"}`);return o}function w_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const e=ph(t).type;return fT((e==null?void 0:e.aliasName)||(e==null?void 0:e.name))}let Uxe=0,SH=new WeakMap;function Vv(){const t=ph("getUid");if(SH.has(t))return SH.get(t);{const e=Uxe++;return SH.set(t,e),e}}Vv.reset=()=>{Uxe=0,SH=new WeakMap};function JPe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ph("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const vM=Symbol.for("vuetify:defaults");function e9e(t){return ei(t)}function Hce(){const t=vl(vM);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function ib(t,e){const o=Hce(),f=ei(t),P=jn(()=>{if(wa(e==null?void 0:e.disabled))return o.value;const l=wa(e==null?void 0:e.scoped),n=wa(e==null?void 0:e.reset),c=wa(e==null?void 0:e.root);if(f.value==null&&!(l||n||c))return o.value;let b=Ug(f.value,{prev:o.value});if(l)return b;if(n||c){const i=Number(n||1/0);for(let O=0;O<=i&&!(!b||!("prev"in b));O++)b=b.prev;return b&&typeof c=="string"&&c in b&&(b=Ug(Ug(b,{prev:b}),b[c])),b}return b.prev?Ug(b.prev,b):b});return gf(vM,P),P}function t9e(t,e){var o,f;return typeof((o=t.props)==null?void 0:o[e])<"u"||typeof((f=t.props)==null?void 0:f[fT(e)])<"u"}function n9e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hce();const f=ph("useDefaults");if(e=e??f.type.name??f.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const P=jn(()=>{var c;return(c=o.value)==null?void 0:c[t._as??e]}),d=new Proxy(t,{get(c,b){var O,w,y,p,a,u,h;const i=Reflect.get(c,b);return b==="class"||b==="style"?[(O=P.value)==null?void 0:O[b],i].filter(m=>m!=null):typeof b=="string"&&!t9e(f.vnode,b)?((w=P.value)==null?void 0:w[b])!==void 0?(y=P.value)==null?void 0:y[b]:((a=(p=o.value)==null?void 0:p.global)==null?void 0:a[b])!==void 0?(h=(u=o.value)==null?void 0:u.global)==null?void 0:h[b]:i:i}}),l=Ai();kp(()=>{if(P.value){const c=Object.entries(P.value).filter(b=>{let[i]=b;return i.startsWith(i[0].toUpperCase())});l.value=c.length?Object.fromEntries(c):void 0}else l.value=void 0});function n(){const c=JPe(vM,f);gf(vM,jn(()=>l.value?Ug((c==null?void 0:c.value)??{},l.value):c==null?void 0:c.value))}return{props:d,provideSubDefaults:n}}function PM(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=ti(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(f){return Vce(f,e)},t.props._as=String,t.setup=function(f,P){const d=Hce();if(!d.value)return t._setup(f,P);const{props:l,provideSubDefaults:n}=n9e(f,f._as??t.name,d),c=t._setup(l,P);return n(),c}}return t}function ta(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?PM:Hg)(e)}function r9e(t,e){return e.props=t,e}function hq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",o=arguments.length>2?arguments[2]:void 0;return ta()({name:o??v_(rb(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...xs()},setup(f,P){let{slots:d}=P;return()=>{var l;return w1(f.tag,{class:[t,f.class],style:f.style},(l=d.default)==null?void 0:l.call(d))}}})}function jxe(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const fZ="cubic-bezier(0.4, 0, 0.2, 1)",o9e="cubic-bezier(0.0, 0, 0.2, 1)",i9e="cubic-bezier(0.4, 0, 1, 1)";function Hme(t,e,o){return Object.keys(t).filter(f=>uq(f)&&f.endsWith(e)).reduce((f,P)=>(f[P.slice(0,-e.length)]=d=>t[P](d,o(d)),f),{})}function Qxe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(e?a9e(t):Zce(t))return t;t=t.parentElement}return document.scrollingElement}function dZ(t,e){const o=[];if(e&&t&&!e.contains(t))return o;for(;t&&(Zce(t)&&o.push(t),t!==e);)t=t.parentElement;return o}function Zce(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}function a9e(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["scroll","auto"].includes(e.overflowY)}function s9e(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function Ca(t){const e=ph("useRender");e.render=t}function fS(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const o=Pse(),f=ei();if(ou){const P=new ResizeObserver(d=>{t==null||t(d,P),d.length&&(e==="content"?f.value=d[0].contentRect:f.value=d[0].target.getBoundingClientRect())});dm(()=>{P.disconnect()}),Ni(()=>o.el,(d,l)=>{l&&(P.unobserve(l),f.value=void 0),d&&P.observe(d)},{flush:"post"})}return{resizeRef:o,contentRect:TM(f)}}const YI=Symbol.for("vuetify:layout"),Hxe=Symbol.for("vuetify:layout-item"),Zme=1e3,l9e=ti({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),qce=ti({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function Zxe(){const t=vl(YI);if(!t)throw new Error("[Vuetify] Could not find injected layout");return{layoutIsReady:lc(),getLayoutItem:t.getLayoutItem,mainRect:t.mainRect,mainStyles:t.mainStyles}}function Wce(t){const e=vl(YI);if(!e)throw new Error("[Vuetify] Could not find injected layout");const o=t.id??`layout-item-${Vv()}`,f=ph("useLayoutItem");gf(Hxe,{id:o});const P=Ai(!1);Ble(()=>P.value=!0),Dle(()=>P.value=!1);const d=lc(),{layoutItemStyles:l,layoutItemScrimStyles:n}=e.register(f,{...t,active:jn(()=>P.value?!1:t.active.value),id:o});return dm(()=>e.unregister(o)),{layoutItemStyles:l,layoutRect:e.layoutRect,layoutItemScrimStyles:n,layoutIsReady:d}}const c9e=(t,e,o,f)=>{let P={top:0,left:0,right:0,bottom:0};const d=[{id:"",layer:{...P}}];for(const l of t){const n=e.get(l),c=o.get(l),b=f.get(l);if(!n||!c||!b)continue;const i={...P,[n.value]:parseInt(P[n.value],10)+(b.value?parseInt(c.value,10):0)};d.push({id:l,layer:i}),P=i}return d};function u9e(t){const e=vl(YI,null),o=jn(()=>e?e.rootZIndex.value-100:Zme),f=ei([]),P=lm(new Map),d=lm(new Map),l=lm(new Map),n=lm(new Map),c=lm(new Map),{resizeRef:b,contentRect:i}=fS(),O=Pme(()=>{const S=[...new Set([...l.values()].map(x=>x.value))].sort((x,R)=>x-R),A=[];for(const x of S){const R=f.value.filter(M=>{var T;return((T=l.get(M))==null?void 0:T.value)===x});A.push(...R)}return c9e(A,P,d,n)}),w=jn(()=>!Array.from(c.values()).some(S=>S.value)),y=jn(()=>O.value[O.value.length-1].layer),p=jn(()=>({"--v-layout-left":Ma(y.value.left),"--v-layout-right":Ma(y.value.right),"--v-layout-top":Ma(y.value.top),"--v-layout-bottom":Ma(y.value.bottom),...w.value?void 0:{transition:"none"}})),a=Pme(()=>O.value.slice(1).map((S,A)=>{let{id:x}=S;const{layer:R}=O.value[A],M=d.get(x),T=P.get(x);return{id:x,...R,size:Number(M.value),position:T.value}})),u=S=>a.value.find(A=>A.id===S),h=ph("createLayout"),m=lc();gf(YI,{register:(S,A)=>{let{id:x,order:R,position:M,layoutSize:T,elementSize:E,active:C,disableTransitions:L,absolute:D}=A;l.set(x,R),P.set(x,M),d.set(x,T),n.set(x,C),L&&c.set(x,L);const I=jA(Hxe,h==null?void 0:h.vnode).indexOf(S);I>-1?f.value.splice(I,0,x):f.value.push(x);const z=jn(()=>a.value.findIndex(U=>U.id===x)),$=jn(()=>o.value+O.value.length*2-z.value*2),Q=jn(()=>{const U=M.value==="left"||M.value==="right",X=M.value==="right",te=M.value==="bottom",W=E.value??T.value,K=W===0?"%":"px",oe={[M.value]:0,zIndex:$.value,transform:`translate${U?"X":"Y"}(${(C.value?0:-(W===0?100:W))*(X||te?-1:1)}${K})`,position:D.value||o.value!==Zme?"absolute":"fixed",...w.value?void 0:{transition:"none"}};if(z.value<0)throw new Error(`Layout item "${x}" is missing`);const q=a.value[z.value];if(!q)throw new Error(`[Vuetify] Could not find layout item "${x}"`);return{...oe,height:U?`calc(100% - ${q.top}px - ${q.bottom}px)`:E.value?`${E.value}px`:void 0,left:X?void 0:`${q.left}px`,right:X?`${q.right}px`:void 0,top:M.value!=="bottom"?`${q.top}px`:void 0,bottom:M.value!=="top"?`${q.bottom}px`:void 0,width:U?E.value?`${E.value}px`:void 0:`calc(100% - ${q.left}px - ${q.right}px)`}}),j=jn(()=>({zIndex:$.value-1}));return{layoutItemStyles:Q,layoutItemScrimStyles:j,zIndex:$}},unregister:S=>{l.delete(S),P.delete(S),d.delete(S),n.delete(S),c.delete(S),f.value=f.value.filter(A=>A!==S)},mainRect:y,mainStyles:p,getLayoutItem:u,items:a,layoutRect:i,rootZIndex:o,layoutIsReady:m});const v=jn(()=>["v-layout",{"v-layout--full-height":t.fullHeight}]),_=jn(()=>({zIndex:e?o.value:void 0,position:e?"relative":void 0,overflow:e?"hidden":void 0}));return{layoutClasses:v,layoutStyles:_,getLayoutItem:u,items:a,layoutRect:i,layoutIsReady:m,layoutRef:b}}function x1(t,e){let o;function f(){o=cD(),o.run(()=>e.length?e(()=>{o==null||o.stop(),f()}):e())}Ni(t,P=>{P&&!o?f():P||(o==null||o.stop(),o=void 0)},{immediate:!0}),ig(()=>{o==null||o.stop()})}function Al(t,e,o){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:O=>O,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:O=>O;const d=ph("useProxiedModel"),l=ei(t[e]!==void 0?t[e]:o),n=fT(e),b=jn(n!==e?()=>{var O,w,y,p;return t[e],!!(((O=d.vnode.props)!=null&&O.hasOwnProperty(e)||(w=d.vnode.props)!=null&&w.hasOwnProperty(n))&&((y=d.vnode.props)!=null&&y.hasOwnProperty(`onUpdate:${e}`)||(p=d.vnode.props)!=null&&p.hasOwnProperty(`onUpdate:${n}`)))}:()=>{var O,w;return t[e],!!((O=d.vnode.props)!=null&&O.hasOwnProperty(e)&&((w=d.vnode.props)!=null&&w.hasOwnProperty(`onUpdate:${e}`)))});x1(()=>!b.value,()=>{Ni(()=>t[e],O=>{l.value=O})});const i=jn({get(){const O=t[e];return f(b.value?O:l.value)},set(O){const w=P(O),y=As(b.value?t[e]:l.value);y===w||f(y)===O||(l.value=w,d==null||d.emit(`update:${e}`,w))}});return Object.defineProperty(i,"externalValue",{get:()=>b.value?t[e]:l.value}),i}const f9e={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},qme="$vuetify.",Wme=(t,e)=>t.replace(/\{(\d+)\}/g,(o,f)=>String(e[+f])),qxe=(t,e,o)=>function(f){for(var P=arguments.length,d=new Array(P>1?P-1:0),l=1;lnew Intl.NumberFormat([t.value,e.value],f).format(o)}function $ie(t,e,o){const f=Al(t,e,t[e]??o.value);return f.value=t[e]??o.value,Ni(o,P=>{t[e]==null&&(f.value=o.value)}),f}function Yxe(t){return e=>{const o=$ie(e,"locale",t.current),f=$ie(e,"fallback",t.fallback),P=$ie(e,"messages",t.messages);return{name:"vuetify",current:o,fallback:f,messages:P,t:qxe(o,f,P),n:Wxe(o,f),provide:Yxe({current:o,fallback:f,messages:P})}}}function d9e(t){const e=Ai((t==null?void 0:t.locale)??"en"),o=Ai((t==null?void 0:t.fallback)??"en"),f=ei({en:f9e,...t==null?void 0:t.messages});return{name:"vuetify",current:e,fallback:o,messages:f,t:qxe(e,o,f),n:Wxe(e,o),provide:Yxe({current:e,fallback:o,messages:f})}}const hZ=Symbol.for("vuetify:locale");function h9e(t){return t.name!=null}function p9e(t){const e=t!=null&&t.adapter&&h9e(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:d9e(t),o=g9e(e,t);return{...e,...o}}function Sx(){const t=vl(hZ);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function m9e(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function g9e(t,e){const o=ei((e==null?void 0:e.rtl)??m9e()),f=jn(()=>o.value[t.current.value]??!1);return{isRtl:f,rtl:o,rtlClasses:jn(()=>`v-locale--is-${f.value?"rtl":"ltr"}`)}}function qg(){const t=vl(hZ);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const pZ=Symbol.for("vuetify:theme"),Ff=ti({theme:String},"theme");function Yme(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function v9e(){var f,P;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yme();const e=Yme();if(!t)return{...e,isDisabled:!0};const o={};for(const[d,l]of Object.entries(t.themes??{})){const n=l.dark||d==="dark"?(f=e.themes)==null?void 0:f.dark:(P=e.themes)==null?void 0:P.light;o[d]=Ug(n,l)}return Ug(e,{...t,themes:o})}function y9e(t){const e=v9e(t),o=ei(e.defaultTheme),f=ei(e.themes),P=jn(()=>{const i={};for(const[O,w]of Object.entries(f.value)){const y=i[O]={...w,colors:{...w.colors}};if(e.variations)for(const p of e.variations.colors){const a=y.colors[p];if(a)for(const u of["lighten","darken"]){const h=u==="lighten"?XPe:GPe;for(const m of lT(e.variations[u],1))y.colors[`${p}-${u}-${m}`]=qPe(h(l_(a),m))}}for(const p of Object.keys(y.colors)){if(/^on-[a-z]/.test(p)||y.colors[`on-${p}`])continue;const a=`on-${p}`,u=l_(y.colors[p]);y.colors[a]=Vxe(u)}}return i}),d=jn(()=>P.value[o.value]),l=jn(()=>{var p;const i=[];(p=d.value)!=null&&p.dark&&Wk(i,":root",["color-scheme: dark"]),Wk(i,":root",Xme(d.value));for(const[a,u]of Object.entries(P.value))Wk(i,`.v-theme--${a}`,[`color-scheme: ${u.dark?"dark":"normal"}`,...Xme(u)]);const O=[],w=[],y=new Set(Object.values(P.value).flatMap(a=>Object.keys(a.colors)));for(const a of y)/^on-[a-z]/.test(a)?Wk(w,`.${a}`,[`color: rgb(var(--v-theme-${a})) !important`]):(Wk(O,`.bg-${a}`,[`--v-theme-overlay-multiplier: var(--v-theme-${a}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${a})) !important`,`color: rgb(var(--v-theme-on-${a})) !important`]),Wk(w,`.text-${a}`,[`color: rgb(var(--v-theme-${a})) !important`]),Wk(w,`.border-${a}`,[`--v-border-color: var(--v-theme-${a})`]));return i.push(...O,...w),i.map((a,u)=>u===0?a:` ${a}`).join("")});function n(){return{style:[{children:l.value,id:"vuetify-theme-stylesheet",nonce:e.cspNonce||!1}]}}function c(i){if(e.isDisabled)return;const O=i._context.provides.usehead;if(O)if(O.push){const w=O.push(n);ou&&Ni(l,()=>{w.patch(n)})}else ou?(O.addHeadObjs(jn(n)),kp(()=>O.updateDOM())):O.addHeadObjs(n());else{let y=function(){if(typeof document<"u"&&!w){const p=document.createElement("style");p.type="text/css",p.id="vuetify-theme-stylesheet",e.cspNonce&&p.setAttribute("nonce",e.cspNonce),w=p,document.head.appendChild(w)}w&&(w.innerHTML=l.value)},w=ou?document.getElementById("vuetify-theme-stylesheet"):null;ou?Ni(l,y,{immediate:!0}):y()}}const b=jn(()=>e.isDisabled?void 0:`v-theme--${o.value}`);return{install:c,isDisabled:e.isDisabled,name:o,themes:f,current:d,computedThemes:P,themeClasses:b,styles:l,global:{name:o,current:d}}}function Md(t){ph("provideTheme");const e=vl(pZ,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=jn(()=>t.theme??e.name.value),f=jn(()=>e.themes.value[o.value]),P=jn(()=>e.isDisabled?void 0:`v-theme--${o.value}`),d={...e,name:o,current:f,themeClasses:P};return gf(pZ,d),d}function Wk(t,e,o){t.push(`${e} { +`,{label:"if",detail:"block",type:"keyword"}),Hd("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Hd("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Hd("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Hd("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],aPe=Mce(Cxe,oq(oPe.concat(iPe)));function yme(t,e){let o=t.baseIndentFor(e),f=t.lineAt(t.pos,-1),P=f.from+f.text.length;return/^\s*($|#)/.test(f.text)&&t.node.too?null:o+t.unit}const Die=cS.define({name:"python",parser:tPe.configure({props:[OT.add({Body:t=>{var e;return(e=yme(t,t.node))!==null&&e!==void 0?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except |finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":xH({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":xH({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":xH({closing:"]"}),"String FormatString":()=>null,Script:t=>{if(t.pos+/\s*/.exec(t.textAfter)[0].length>=t.node.to){let e=null;for(let o=t.node,f=o.to;o=o.lastChild,!(!o||o.to!=f);)o.type.name=="Body"&&(e=o);if(e){let o=yme(t,e);if(o!=null)return o}}return t.continue()}}),vS.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":bce,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function bme(){return new gT(Die,[Die.data.of({autocomplete:rPe}),Die.data.of({autocomplete:aPe})])}const sPe="#e5c07b",xme="#e06c75",lPe="#56b6c2",cPe="#ffffff",wH="#abb2bf",Ase="#7d8799",uPe="#61afef",fPe="#98c379",_me="#d19a66",dPe="#c678dd",hPe="#21252b",wme="#2c313a",Ome="#282c34",Bie="#353a42",pPe="#3E4451",Sme="#528bff",mPe=Oa.theme({"&":{color:wH,backgroundColor:Ome},".cm-content":{caretColor:Sme},".cm-cursor, .cm-dropCursor":{borderLeftColor:Sme},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:pPe},".cm-panels":{backgroundColor:hPe,color:wH},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Ome,color:Ase,border:"none"},".cm-activeLineGutter":{backgroundColor:wme},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Bie},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Bie,borderBottomColor:Bie},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:wme,color:wH}}},{dark:!0}),gPe=xD.define([{tag:Gn.keyword,color:dPe},{tag:[Gn.name,Gn.deleted,Gn.character,Gn.propertyName,Gn.macroName],color:xme},{tag:[Gn.function(Gn.variableName),Gn.labelName],color:uPe},{tag:[Gn.color,Gn.constant(Gn.name),Gn.standard(Gn.name)],color:_me},{tag:[Gn.definition(Gn.name),Gn.separator],color:wH},{tag:[Gn.typeName,Gn.className,Gn.number,Gn.changed,Gn.annotation,Gn.modifier,Gn.self,Gn.namespace],color:sPe},{tag:[Gn.operator,Gn.operatorKeyword,Gn.url,Gn.escape,Gn.regexp,Gn.link,Gn.special(Gn.string)],color:lPe},{tag:[Gn.meta,Gn.comment],color:Ase},{tag:Gn.strong,fontWeight:"bold"},{tag:Gn.emphasis,fontStyle:"italic"},{tag:Gn.strikethrough,textDecoration:"line-through"},{tag:Gn.link,color:Ase,textDecoration:"underline"},{tag:Gn.heading,fontWeight:"bold",color:xme},{tag:[Gn.atom,Gn.bool,Gn.special(Gn.variableName)],color:_me},{tag:[Gn.processingInstruction,Gn.string,Gn.inserted],color:fPe},{tag:Gn.invalid,color:cPe}]),gM=[mPe,lbe(gPe)];function ei(t,e){return o=>Object.keys(t).reduce((f,P)=>{const l=typeof t[P]=="object"&&t[P]!=null&&!Array.isArray(t[P])?t[P]:{type:t[P]};return o&&P in o?f[P]={...l,default:o[P]}:f[P]=l,e&&!f[P].source&&(f[P].source=e),f},{})}const ys=ei({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),ou=typeof window<"u",Nce=ou&&"IntersectionObserver"in window,vPe=ou&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function kme(t,e,o){yPe(t,e),e.set(t,o)}function yPe(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bPe(t,e,o){return t.set(Axe(t,e),o),o}function Wk(t,e){return t.get(Axe(t,e))}function Axe(t,e,o){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:o;throw new TypeError("Private element is not present on this object")}function Mxe(t,e,o){const f=e.length-1;if(f<0)return t===void 0?o:t;for(let P=0;PbS(t[f],e[f]))}function yT(t,e,o){return t==null||!e||typeof e!="string"?o:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),Mxe(t,e.split("."),o))}function y1(t,e,o){if(e===!0)return t===void 0?o:t;if(e==null||typeof e=="boolean")return o;if(t!==Object(t)){if(typeof e!="function")return o;const P=e(t,o);return typeof P>"u"?o:P}if(typeof e=="string")return yT(t,e,o);if(Array.isArray(e))return Mxe(t,e,o);if(typeof e!="function")return o;const f=e(t,o);return typeof f>"u"?o:f}function X4(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(o,f)=>e+f)}function Ma(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(t==null||t===""))return isNaN(+t)?String(t):isFinite(+t)?`${Number(t)}${e}`:void 0}function Mse(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function $ce(t){if(t&&"$el"in t){const e=t.$el;return(e==null?void 0:e.nodeType)===Node.TEXT_NODE?e.nextElementSibling:e}return t}const Tme=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Ese=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function zie(t,e){return e.every(o=>t.hasOwnProperty(o))}function Vce(t,e){const o={},f=new Set(Object.keys(t));for(const P of e)f.has(P)&&(o[P]=t[P]);return o}function Cme(t,e,o){const f=Object.create(null),P=Object.create(null);for(const d in t)e.some(l=>l instanceof RegExp?l.test(d):l===d)&&!(o!=null&&o.some(l=>l===d))?f[d]=t[d]:P[d]=t[d];return[f,P]}function __(t,e){const o={...t};return e.forEach(f=>delete o[f]),o}function xPe(t,e){const o={};return e.forEach(f=>o[f]=t[f]),o}const Exe=/^on[^a-z]/,uq=t=>Exe.test(t),_Pe=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],wPe=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function OPe(t){return t.isComposing&&wPe.includes(t.key)}function fq(t){const[e,o]=Cme(t,[Exe]),f=__(e,_Pe),[P,d]=Cme(o,["class","style","id",/^data-/]);return Object.assign(P,e),Object.assign(d,f),[P,d]}function fm(t){return t==null?[]:Array.isArray(t)?t:[t]}function SPe(t,e){let o=0;const f=function(){for(var P=arguments.length,d=new Array(P),l=0;lt(...d),wa(e))};return f.clear=()=>{clearTimeout(o)},f.immediate=t,f}function rg(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(o,t))}function Ame(t){const e=t.toString().trim();return e.includes(".")?e.length-e.indexOf(".")-1:0}function Mme(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function Eme(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function kPe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let f=0;for(;f0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const f={};for(const P in t)f[P]=t[P];for(const P in e){const d=t[P],l=e[P];if(Mse(d)&&Mse(l)){f[P]=jg(d,l,o);continue}if(Array.isArray(d)&&Array.isArray(l)&&o){f[P]=o(d,l);continue}f[P]=l}return f}function Pxe(t){return t.map(e=>e.type===ma?Pxe(e.children):e).flat()}function fT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(fT.cache.has(t))return fT.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return fT.cache.set(t,e),e}fT.cache=new Map;function QA(t,e){if(!e||typeof e!="object")return[];if(Array.isArray(e))return e.map(o=>QA(t,o)).flat(1);if(e.suspense)return QA(t,e.ssContent);if(Array.isArray(e.children))return e.children.map(o=>QA(t,o)).flat(1);if(e.component){if(Object.getOwnPropertySymbols(e.component.provides).includes(t))return[e.component];if(e.component.subTree)return QA(t,e.component.subTree).flat(1)}return[]}var WQ=new WeakMap,PA=new WeakMap;class TPe{constructor(e){kme(this,WQ,[]),kme(this,PA,0),this.size=e}push(e){Wk(WQ,this)[Wk(PA,this)]=e,bPe(PA,this,(Wk(PA,this)+1)%this.size)}values(){return Wk(WQ,this).slice(Wk(PA,this)).concat(Wk(WQ,this).slice(0,Wk(PA,this)))}}function Uce(t){const e=lm({}),o=Un(t);return kp(()=>{for(const f in o.value)e[f]=o.value[f]},{flush:"sync"}),AM(e)}function lZ(t,e){return t.includes(e)}function Rxe(t){return t[2].toLowerCase()+t.slice(3)}const og=()=>[Function,Array];function Pme(t,e){return e="on"+v_(e),!!(t[e]||t[`${e}Once`]||t[`${e}Capture`]||t[`${e}OnceCapture`]||t[`${e}CaptureOnce`])}function Lxe(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f1&&arguments[1]!==void 0?arguments[1]:!0;const o=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(f=>`${f}${e?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...t.querySelectorAll(o)]}function Ixe(t,e,o){let f,P=t.indexOf(document.activeElement);const d=e==="next"?1:-1;do P+=d,f=t[P];while((!f||f.offsetParent==null||!((o==null?void 0:o(f))??!0))&&P=0);return f}function cZ(t,e){var f,P,d,l;const o=WI(t);if(!e)(t===document.activeElement||!t.contains(document.activeElement))&&((f=o[0])==null||f.focus());else if(e==="first")(P=o[0])==null||P.focus();else if(e==="last")(d=o.at(-1))==null||d.focus();else if(typeof e=="number")(l=o[e])==null||l.focus();else{const n=Ixe(o,e);n?n.focus():cZ(t,e==="next"?"first":"last")}}function YQ(t){return t==null||typeof t=="string"&&t.trim()===""}function Dxe(){}function vM(t,e){if(!(ou&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${e})`)))return null;try{return!!t&&t.matches(e)}catch{return null}}function dq(t){return t.some(e=>aM(e)?e.type===k0?!1:e.type!==ma||dq(e.children):!0)?t:null}function CPe(t,e){if(!ou||t===0)return e(),()=>{};const o=window.setTimeout(e,t);return()=>window.clearTimeout(o)}function Rme(t,e){const o=Ai();return kp(()=>{o.value=t()},{flush:"sync",...e}),CM(o)}function APe(t,e){const o=t.clientX,f=t.clientY,P=e.getBoundingClientRect(),d=P.left,l=P.top,n=P.right,c=P.bottom;return o>=d&&o<=n&&f>=l&&f<=c}function Pse(){const t=Ai(),e=o=>{t.value=o};return Object.defineProperty(e,"value",{enumerable:!0,get:()=>t.value,set:o=>t.value=o}),Object.defineProperty(e,"el",{enumerable:!0,get:()=>$ce(t.value)}),e}const Bxe=["top","bottom"],MPe=["start","end","left","right"];function Rse(t,e){let[o,f]=t.split(" ");return f||(f=lZ(Bxe,o)?"start":lZ(MPe,o)?"top":"center"),{side:Lse(o,e),align:Lse(f,e)}}function Lse(t,e){return t==="start"?e?"right":"left":t==="end"?e?"left":"right":t}function Fie(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function Nie(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function Lme(t){return{side:t.align,align:t.side}}function Ime(t){return lZ(Bxe,t.side)?"y":"x"}class dT{constructor(e){let{x:o,y:f,width:P,height:d}=e;this.x=o,this.y=f,this.width=P,this.height=d}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Dme(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function zxe(t){return Array.isArray(t)?new dT({x:t[0],y:t[1],width:0,height:0}):t.getBoundingClientRect()}function jce(t){const e=t.getBoundingClientRect(),o=getComputedStyle(t),f=o.transform;if(f){let P,d,l,n,c;if(f.startsWith("matrix3d("))P=f.slice(9,-1).split(/, /),d=+P[0],l=+P[5],n=+P[12],c=+P[13];else if(f.startsWith("matrix("))P=f.slice(7,-1).split(/, /),d=+P[0],l=+P[3],n=+P[4],c=+P[5];else return new dT(e);const b=o.transformOrigin,i=e.x-n-(1-d)*parseFloat(b),O=e.y-c-(1-l)*parseFloat(b.slice(b.indexOf(" ")+1)),w=d?e.width/d:t.offsetWidth+1,y=l?e.height/l:t.offsetHeight+1;return new dT({x:i,y:O,width:w,height:y})}else return new dT(e)}function HA(t,e,o){if(typeof t.animate>"u")return{finished:Promise.resolve()};let f;try{f=t.animate(e,o)}catch{return{finished:Promise.resolve()}}return typeof f.finished>"u"&&(f.finished=new Promise(P=>{f.onfinish=()=>{P(f)}})),f}const OH=new WeakMap;function EPe(t,e){Object.keys(e).forEach(o=>{if(uq(o)){const f=Rxe(o),P=OH.get(t);if(e[o]==null)P==null||P.forEach(d=>{const[l,n]=d;l===f&&(t.removeEventListener(f,n),P.delete(d))});else if(!P||![...P].some(d=>d[0]===f&&d[1]===e[o])){t.addEventListener(f,e[o]);const d=P||new Set;d.add([f,e[o]]),OH.has(t)||OH.set(t,d)}}else e[o]==null?t.removeAttribute(o):t.setAttribute(o,e[o])})}function PPe(t,e){Object.keys(e).forEach(o=>{if(uq(o)){const f=Rxe(o),P=OH.get(t);P==null||P.forEach(d=>{const[l,n]=d;l===f&&(t.removeEventListener(f,n),P.delete(d))})}else t.removeAttribute(o)})}const RA=2.4,Bme=.2126729,zme=.7151522,Fme=.072175,RPe=.55,LPe=.58,IPe=.57,DPe=.62,XQ=.03,Nme=1.45,BPe=5e-4,zPe=1.25,FPe=1.25,$me=.078,Vme=12.82051282051282,GQ=.06,Ume=.001;function jme(t,e){const o=(t.r/255)**RA,f=(t.g/255)**RA,P=(t.b/255)**RA,d=(e.r/255)**RA,l=(e.g/255)**RA,n=(e.b/255)**RA;let c=o*Bme+f*zme+P*Fme,b=d*Bme+l*zme+n*Fme;if(c<=XQ&&(c+=(XQ-c)**Nme),b<=XQ&&(b+=(XQ-b)**Nme),Math.abs(b-c)c){const O=(b**RPe-c**LPe)*zPe;i=O-Ume?0:O>-$me?O-O*Vme*GQ:O+GQ}return i*100}function NPe(t,e){e=Array.isArray(e)?e.slice(0,-1).map(o=>`'${o}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const uZ=.20689655172413793,$Pe=t=>t>uZ**3?Math.cbrt(t):t/(3*uZ**2)+4/29,VPe=t=>t>uZ?t**3:3*uZ**2*(t-4/29);function Fxe(t){const e=$Pe,o=e(t[1]);return[116*o-16,500*(e(t[0]/.95047)-o),200*(o-e(t[2]/1.08883))]}function Nxe(t){const e=VPe,o=(t[0]+16)/116;return[e(o+t[1]/500)*.95047,e(o),e(o-t[2]/200)*1.08883]}const UPe=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],jPe=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,QPe=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],HPe=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function $xe(t){const e=Array(3),o=jPe,f=UPe;for(let P=0;P<3;++P)e[P]=Math.round(rg(o(f[P][0]*t[0]+f[P][1]*t[1]+f[P][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function Qce(t){let{r:e,g:o,b:f}=t;const P=[0,0,0],d=HPe,l=QPe;e=d(e/255),o=d(o/255),f=d(f/255);for(let n=0;n<3;++n)P[n]=l[n][0]*e+l[n][1]*o+l[n][2]*f;return P}function Ise(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function ZPe(t){return Ise(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const Qme=/^(?(?:rgb|hsl)a?)\((?.+)\)/,qPe={rgb:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),rgba:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),hsl:(t,e,o,f)=>Hme({h:t,s:e,l:o,a:f}),hsla:(t,e,o,f)=>Hme({h:t,s:e,l:o,a:f}),hsv:(t,e,o,f)=>YI({h:t,s:e,v:o,a:f}),hsva:(t,e,o,f)=>YI({h:t,s:e,v:o,a:f})};function l_(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&Qme.test(t)){const{groups:e}=t.match(Qme),{fn:o,values:f}=e,P=f.split(/,\s*/).map(d=>d.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(d)/100:parseFloat(d));return qPe[o](...P)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length),YPe(e)}else if(typeof t=="object"){if(zie(t,["r","g","b"]))return t;if(zie(t,["h","s","l"]))return YI(Vxe(t));if(zie(t,["h","s","v"]))return YI(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name} +Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function YI(t){const{h:e,s:o,v:f,a:P}=t,d=n=>{const c=(n+e/60)%6;return f-f*o*Math.max(Math.min(c,4-c,1),0)},l=[d(5),d(3),d(1)].map(n=>Math.round(n*255));return{r:l[0],g:l[1],b:l[2],a:P}}function Hme(t){return YI(Vxe(t))}function Vxe(t){const{h:e,s:o,l:f,a:P}=t,d=f+o*Math.min(f,1-f),l=d===0?0:2-2*f/d;return{h:e,s:l,v:d,a:P}}function KQ(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function WPe(t){let{r:e,g:o,b:f,a:P}=t;return`#${[KQ(e),KQ(o),KQ(f),P!==void 0?KQ(Math.round(P*255)):""].join("")}`}function YPe(t){t=XPe(t);let[e,o,f,P]=kPe(t,2).map(d=>parseInt(d,16));return P=P===void 0?P:P/255,{r:e,g:o,b:f,a:P}}function XPe(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=Mme(Mme(t,6),8,"F")),t}function GPe(t,e){const o=Fxe(Qce(t));return o[0]=o[0]+e*10,$xe(Nxe(o))}function KPe(t,e){const o=Fxe(Qce(t));return o[0]=o[0]-e*10,$xe(Nxe(o))}function JPe(t){const e=l_(t);return Qce(e)[1]}function Uxe(t){const e=Math.abs(jme(l_(0),l_(t)));return Math.abs(jme(l_(16777215),l_(t)))>Math.min(e,50)?"#fff":"#000"}function ph(t,e){const o=Zle();if(!o)throw new Error(`[Vuetify] ${t} ${e||"must be called from inside a setup function"}`);return o}function w_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const e=ph(t).type;return fT((e==null?void 0:e.aliasName)||(e==null?void 0:e.name))}let jxe=0,SH=new WeakMap;function O1(){const t=ph("getUid");if(SH.has(t))return SH.get(t);{const e=jxe++;return SH.set(t,e),e}}O1.reset=()=>{jxe=0,SH=new WeakMap};function e9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ph("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const yM=Symbol.for("vuetify:defaults");function t9e(t){return ti(t)}function Hce(){const t=yl(yM);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function ib(t,e){const o=Hce(),f=ti(t),P=Un(()=>{if(wa(e==null?void 0:e.disabled))return o.value;const l=wa(e==null?void 0:e.scoped),n=wa(e==null?void 0:e.reset),c=wa(e==null?void 0:e.root);if(f.value==null&&!(l||n||c))return o.value;let b=jg(f.value,{prev:o.value});if(l)return b;if(n||c){const i=Number(n||1/0);for(let O=0;O<=i&&!(!b||!("prev"in b));O++)b=b.prev;return b&&typeof c=="string"&&c in b&&(b=jg(jg(b,{prev:b}),b[c])),b}return b.prev?jg(b.prev,b):b});return gf(yM,P),P}function n9e(t,e){var o,f;return typeof((o=t.props)==null?void 0:o[e])<"u"||typeof((f=t.props)==null?void 0:f[fT(e)])<"u"}function r9e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hce();const f=ph("useDefaults");if(e=e??f.type.name??f.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const P=Un(()=>{var c;return(c=o.value)==null?void 0:c[t._as??e]}),d=new Proxy(t,{get(c,b){var O,w,y,p,a,u,h;const i=Reflect.get(c,b);return b==="class"||b==="style"?[(O=P.value)==null?void 0:O[b],i].filter(m=>m!=null):typeof b=="string"&&!n9e(f.vnode,b)?((w=P.value)==null?void 0:w[b])!==void 0?(y=P.value)==null?void 0:y[b]:((a=(p=o.value)==null?void 0:p.global)==null?void 0:a[b])!==void 0?(h=(u=o.value)==null?void 0:u.global)==null?void 0:h[b]:i:i}}),l=Ai();kp(()=>{if(P.value){const c=Object.entries(P.value).filter(b=>{let[i]=b;return i.startsWith(i[0].toUpperCase())});l.value=c.length?Object.fromEntries(c):void 0}else l.value=void 0});function n(){const c=e9e(yM,f);gf(yM,Un(()=>l.value?jg((c==null?void 0:c.value)??{},l.value):c==null?void 0:c.value))}return{props:d,provideSubDefaults:n}}function RM(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=ei(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(f){return Vce(f,e)},t.props._as=String,t.setup=function(f,P){const d=Hce();if(!d.value)return t._setup(f,P);const{props:l,provideSubDefaults:n}=r9e(f,f._as??t.name,d),c=t._setup(l,P);return n(),c}}return t}function Ji(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?RM:Hg)(e)}function o9e(t,e){return e.props=t,e}function hq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",o=arguments.length>2?arguments[2]:void 0;return Ji()({name:o??v_(rb(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...ys()},setup(f,P){let{slots:d}=P;return()=>{var l;return w1(f.tag,{class:[t,f.class],style:f.style},(l=d.default)==null?void 0:l.call(d))}}})}function Qxe(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const fZ="cubic-bezier(0.4, 0, 0.2, 1)",i9e="cubic-bezier(0.0, 0, 0.2, 1)",a9e="cubic-bezier(0.4, 0, 1, 1)";function Zme(t,e,o){return Object.keys(t).filter(f=>uq(f)&&f.endsWith(e)).reduce((f,P)=>(f[P.slice(0,-e.length)]=d=>t[P](d,o(d)),f),{})}function Hxe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(e?s9e(t):Zce(t))return t;t=t.parentElement}return document.scrollingElement}function dZ(t,e){const o=[];if(e&&t&&!e.contains(t))return o;for(;t&&(Zce(t)&&o.push(t),t!==e);)t=t.parentElement;return o}function Zce(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}function s9e(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["scroll","auto"].includes(e.overflowY)}function l9e(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function ka(t){const e=ph("useRender");e.render=t}function dS(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const o=Pse(),f=ti();if(ou){const P=new ResizeObserver(d=>{t==null||t(d,P),d.length&&(e==="content"?f.value=d[0].contentRect:f.value=d[0].target.getBoundingClientRect())});dm(()=>{P.disconnect()}),Ni(()=>o.el,(d,l)=>{l&&(P.unobserve(l),f.value=void 0),d&&P.observe(d)},{flush:"post"})}return{resizeRef:o,contentRect:CM(f)}}const XI=Symbol.for("vuetify:layout"),Zxe=Symbol.for("vuetify:layout-item"),qme=1e3,c9e=ei({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),qce=ei({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function qxe(){const t=yl(XI);if(!t)throw new Error("[Vuetify] Could not find injected layout");return{layoutIsReady:lc(),getLayoutItem:t.getLayoutItem,mainRect:t.mainRect,mainStyles:t.mainStyles}}function Wce(t){const e=yl(XI);if(!e)throw new Error("[Vuetify] Could not find injected layout");const o=t.id??`layout-item-${O1()}`,f=ph("useLayoutItem");gf(Zxe,{id:o});const P=Ai(!1);Ble(()=>P.value=!0),Dle(()=>P.value=!1);const d=lc(),{layoutItemStyles:l,layoutItemScrimStyles:n}=e.register(f,{...t,active:Un(()=>P.value?!1:t.active.value),id:o});return dm(()=>e.unregister(o)),{layoutItemStyles:l,layoutRect:e.layoutRect,layoutItemScrimStyles:n,layoutIsReady:d}}const u9e=(t,e,o,f)=>{let P={top:0,left:0,right:0,bottom:0};const d=[{id:"",layer:{...P}}];for(const l of t){const n=e.get(l),c=o.get(l),b=f.get(l);if(!n||!c||!b)continue;const i={...P,[n.value]:parseInt(P[n.value],10)+(b.value?parseInt(c.value,10):0)};d.push({id:l,layer:i}),P=i}return d};function f9e(t){const e=yl(XI,null),o=Un(()=>e?e.rootZIndex.value-100:qme),f=ti([]),P=lm(new Map),d=lm(new Map),l=lm(new Map),n=lm(new Map),c=lm(new Map),{resizeRef:b,contentRect:i}=dS(),O=Rme(()=>{const S=[...new Set([...l.values()].map(x=>x.value))].sort((x,R)=>x-R),A=[];for(const x of S){const R=f.value.filter(M=>{var T;return((T=l.get(M))==null?void 0:T.value)===x});A.push(...R)}return u9e(A,P,d,n)}),w=Un(()=>!Array.from(c.values()).some(S=>S.value)),y=Un(()=>O.value[O.value.length-1].layer),p=Un(()=>({"--v-layout-left":Ma(y.value.left),"--v-layout-right":Ma(y.value.right),"--v-layout-top":Ma(y.value.top),"--v-layout-bottom":Ma(y.value.bottom),...w.value?void 0:{transition:"none"}})),a=Rme(()=>O.value.slice(1).map((S,A)=>{let{id:x}=S;const{layer:R}=O.value[A],M=d.get(x),T=P.get(x);return{id:x,...R,size:Number(M.value),position:T.value}})),u=S=>a.value.find(A=>A.id===S),h=ph("createLayout"),m=lc();gf(XI,{register:(S,A)=>{let{id:x,order:R,position:M,layoutSize:T,elementSize:E,active:C,disableTransitions:L,absolute:D}=A;l.set(x,R),P.set(x,M),d.set(x,T),n.set(x,C),L&&c.set(x,L);const I=QA(Zxe,h==null?void 0:h.vnode).indexOf(S);I>-1?f.value.splice(I,0,x):f.value.push(x);const z=Un(()=>a.value.findIndex(U=>U.id===x)),$=Un(()=>o.value+O.value.length*2-z.value*2),Q=Un(()=>{const U=M.value==="left"||M.value==="right",X=M.value==="right",te=M.value==="bottom",W=E.value??T.value,K=W===0?"%":"px",oe={[M.value]:0,zIndex:$.value,transform:`translate${U?"X":"Y"}(${(C.value?0:-(W===0?100:W))*(X||te?-1:1)}${K})`,position:D.value||o.value!==qme?"absolute":"fixed",...w.value?void 0:{transition:"none"}};if(z.value<0)throw new Error(`Layout item "${x}" is missing`);const q=a.value[z.value];if(!q)throw new Error(`[Vuetify] Could not find layout item "${x}"`);return{...oe,height:U?`calc(100% - ${q.top}px - ${q.bottom}px)`:E.value?`${E.value}px`:void 0,left:X?void 0:`${q.left}px`,right:X?`${q.right}px`:void 0,top:M.value!=="bottom"?`${q.top}px`:void 0,bottom:M.value!=="top"?`${q.bottom}px`:void 0,width:U?E.value?`${E.value}px`:void 0:`calc(100% - ${q.left}px - ${q.right}px)`}}),j=Un(()=>({zIndex:$.value-1}));return{layoutItemStyles:Q,layoutItemScrimStyles:j,zIndex:$}},unregister:S=>{l.delete(S),P.delete(S),d.delete(S),n.delete(S),c.delete(S),f.value=f.value.filter(A=>A!==S)},mainRect:y,mainStyles:p,getLayoutItem:u,items:a,layoutRect:i,rootZIndex:o,layoutIsReady:m});const v=Un(()=>["v-layout",{"v-layout--full-height":t.fullHeight}]),_=Un(()=>({zIndex:e?o.value:void 0,position:e?"relative":void 0,overflow:e?"hidden":void 0}));return{layoutClasses:v,layoutStyles:_,getLayoutItem:u,items:a,layoutRect:i,layoutIsReady:m,layoutRef:b}}function x1(t,e){let o;function f(){o=uD(),o.run(()=>e.length?e(()=>{o==null||o.stop(),f()}):e())}Ni(t,P=>{P&&!o?f():P||(o==null||o.stop(),o=void 0)},{immediate:!0}),ag(()=>{o==null||o.stop()})}function bl(t,e,o){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:O=>O,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:O=>O;const d=ph("useProxiedModel"),l=ti(t[e]!==void 0?t[e]:o),n=fT(e),b=Un(n!==e?()=>{var O,w,y,p;return t[e],!!(((O=d.vnode.props)!=null&&O.hasOwnProperty(e)||(w=d.vnode.props)!=null&&w.hasOwnProperty(n))&&((y=d.vnode.props)!=null&&y.hasOwnProperty(`onUpdate:${e}`)||(p=d.vnode.props)!=null&&p.hasOwnProperty(`onUpdate:${n}`)))}:()=>{var O,w;return t[e],!!((O=d.vnode.props)!=null&&O.hasOwnProperty(e)&&((w=d.vnode.props)!=null&&w.hasOwnProperty(`onUpdate:${e}`)))});x1(()=>!b.value,()=>{Ni(()=>t[e],O=>{l.value=O})});const i=Un({get(){const O=t[e];return f(b.value?O:l.value)},set(O){const w=P(O),y=As(b.value?t[e]:l.value);y===w||f(y)===O||(l.value=w,d==null||d.emit(`update:${e}`,w))}});return Object.defineProperty(i,"externalValue",{get:()=>b.value?t[e]:l.value}),i}const d9e={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},Wme="$vuetify.",Yme=(t,e)=>t.replace(/\{(\d+)\}/g,(o,f)=>String(e[+f])),Wxe=(t,e,o)=>function(f){for(var P=arguments.length,d=new Array(P>1?P-1:0),l=1;lnew Intl.NumberFormat([t.value,e.value],f).format(o)}function $ie(t,e,o){const f=bl(t,e,t[e]??o.value);return f.value=t[e]??o.value,Ni(o,P=>{t[e]==null&&(f.value=o.value)}),f}function Xxe(t){return e=>{const o=$ie(e,"locale",t.current),f=$ie(e,"fallback",t.fallback),P=$ie(e,"messages",t.messages);return{name:"vuetify",current:o,fallback:f,messages:P,t:Wxe(o,f,P),n:Yxe(o,f),provide:Xxe({current:o,fallback:f,messages:P})}}}function h9e(t){const e=Ai((t==null?void 0:t.locale)??"en"),o=Ai((t==null?void 0:t.fallback)??"en"),f=ti({en:d9e,...t==null?void 0:t.messages});return{name:"vuetify",current:e,fallback:o,messages:f,t:Wxe(e,o,f),n:Yxe(e,o),provide:Xxe({current:e,fallback:o,messages:f})}}const hZ=Symbol.for("vuetify:locale");function p9e(t){return t.name!=null}function m9e(t){const e=t!=null&&t.adapter&&p9e(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:h9e(t),o=v9e(e,t);return{...e,...o}}function sb(){const t=yl(hZ);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function g9e(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function v9e(t,e){const o=ti((e==null?void 0:e.rtl)??g9e()),f=Un(()=>o.value[t.current.value]??!1);return{isRtl:f,rtl:o,rtlClasses:Un(()=>`v-locale--is-${f.value?"rtl":"ltr"}`)}}function qg(){const t=yl(hZ);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const pZ=Symbol.for("vuetify:theme"),vf=ei({theme:String},"theme");function Xme(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function y9e(){var f,P;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xme();const e=Xme();if(!t)return{...e,isDisabled:!0};const o={};for(const[d,l]of Object.entries(t.themes??{})){const n=l.dark||d==="dark"?(f=e.themes)==null?void 0:f.dark:(P=e.themes)==null?void 0:P.light;o[d]=jg(n,l)}return jg(e,{...t,themes:o})}function b9e(t){const e=y9e(t),o=ti(e.defaultTheme),f=ti(e.themes),P=Un(()=>{const i={};for(const[O,w]of Object.entries(f.value)){const y=i[O]={...w,colors:{...w.colors}};if(e.variations)for(const p of e.variations.colors){const a=y.colors[p];if(a)for(const u of["lighten","darken"]){const h=u==="lighten"?GPe:KPe;for(const m of X4(e.variations[u],1))y.colors[`${p}-${u}-${m}`]=WPe(h(l_(a),m))}}for(const p of Object.keys(y.colors)){if(/^on-[a-z]/.test(p)||y.colors[`on-${p}`])continue;const a=`on-${p}`,u=l_(y.colors[p]);y.colors[a]=Uxe(u)}}return i}),d=Un(()=>P.value[o.value]),l=Un(()=>{var p;const i=[];(p=d.value)!=null&&p.dark&&Yk(i,":root",["color-scheme: dark"]),Yk(i,":root",Gme(d.value));for(const[a,u]of Object.entries(P.value))Yk(i,`.v-theme--${a}`,[`color-scheme: ${u.dark?"dark":"normal"}`,...Gme(u)]);const O=[],w=[],y=new Set(Object.values(P.value).flatMap(a=>Object.keys(a.colors)));for(const a of y)/^on-[a-z]/.test(a)?Yk(w,`.${a}`,[`color: rgb(var(--v-theme-${a})) !important`]):(Yk(O,`.bg-${a}`,[`--v-theme-overlay-multiplier: var(--v-theme-${a}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${a})) !important`,`color: rgb(var(--v-theme-on-${a})) !important`]),Yk(w,`.text-${a}`,[`color: rgb(var(--v-theme-${a})) !important`]),Yk(w,`.border-${a}`,[`--v-border-color: var(--v-theme-${a})`]));return i.push(...O,...w),i.map((a,u)=>u===0?a:` ${a}`).join("")});function n(){return{style:[{children:l.value,id:"vuetify-theme-stylesheet",nonce:e.cspNonce||!1}]}}function c(i){if(e.isDisabled)return;const O=i._context.provides.usehead;if(O)if(O.push){const w=O.push(n);ou&&Ni(l,()=>{w.patch(n)})}else ou?(O.addHeadObjs(Un(n)),kp(()=>O.updateDOM())):O.addHeadObjs(n());else{let y=function(){if(typeof document<"u"&&!w){const p=document.createElement("style");p.type="text/css",p.id="vuetify-theme-stylesheet",e.cspNonce&&p.setAttribute("nonce",e.cspNonce),w=p,document.head.appendChild(w)}w&&(w.innerHTML=l.value)},w=ou?document.getElementById("vuetify-theme-stylesheet"):null;ou?Ni(l,y,{immediate:!0}):y()}}const b=Un(()=>e.isDisabled?void 0:`v-theme--${o.value}`);return{install:c,isDisabled:e.isDisabled,name:o,themes:f,current:d,computedThemes:P,themeClasses:b,styles:l,global:{name:o,current:d}}}function ad(t){ph("provideTheme");const e=yl(pZ,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=Un(()=>t.theme??e.name.value),f=Un(()=>e.themes.value[o.value]),P=Un(()=>e.isDisabled?void 0:`v-theme--${o.value}`),d={...e,name:o,current:f,themeClasses:P};return gf(pZ,d),d}function Yk(t,e,o){t.push(`${e} { `,...o.map(f=>` ${f}; `),`} -`)}function Xme(t){const e=t.dark?2:1,o=t.dark?1:2,f=[];for(const[P,d]of Object.entries(t.colors)){const l=l_(d);f.push(`--v-theme-${P}: ${l.r},${l.g},${l.b}`),P.startsWith("on-")||f.push(`--v-theme-${P}-overlay-multiplier: ${KPe(d)>.18?e:o}`)}for(const[P,d]of Object.entries(t.variables)){const l=typeof d=="string"&&d.startsWith("#")?l_(d):void 0,n=l?`${l.r}, ${l.g}, ${l.b}`:void 0;f.push(`--v-${P}: ${n??d}`)}return f}const b9e=ti({...xs(),...l9e({fullHeight:!0}),...Ff()},"VApp"),x9e=ta()({name:"VApp",props:b9e(),setup(t,e){let{slots:o}=e;const f=Md(t),{layoutClasses:P,getLayoutItem:d,items:l,layoutRef:n}=u9e(t),{rtlClasses:c}=qg();return Ca(()=>Zt("div",{ref:n,class:["v-application",f.themeClasses.value,P.value,c.value,t.class],style:[t.style]},[Zt("div",{class:"v-application__wrap"},[Zt(uSe,null,{default:()=>{var b;return[Zt(ya,null,[(b=o.default)==null?void 0:b.call(o)])]}})])])),{getLayoutItem:d,items:l,theme:f}}});const Tu=ti({tag:{type:String,default:"div"}},"tag"),_9e=ti({text:String,...xs(),...Tu()},"VToolbarTitle"),w9e=ta()({name:"VToolbarTitle",props:_9e(),setup(t,e){let{slots:o}=e;return Ca(()=>{const f=!!(o.default||o.text||t.text);return Zt(t.tag,{class:["v-toolbar-title",t.class],style:t.style},{default:()=>{var P;return[f&&Zt("div",{class:"v-toolbar-title__placeholder"},[o.text?o.text():t.text,(P=o.default)==null?void 0:P.call(o)])]}})}),{}}}),O9e=ti({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Uv(t,e,o){return ta()({name:t,props:O9e({mode:o,origin:e}),setup(f,P){let{slots:d}=P;const l={onBeforeEnter(n){f.origin&&(n.style.transformOrigin=f.origin)},onLeave(n){if(f.leaveAbsolute){const{offsetTop:c,offsetLeft:b,offsetWidth:i,offsetHeight:O}=n;n._transitionInitialStyles={position:n.style.position,top:n.style.top,left:n.style.left,width:n.style.width,height:n.style.height},n.style.position="absolute",n.style.top=`${c}px`,n.style.left=`${b}px`,n.style.width=`${i}px`,n.style.height=`${O}px`}f.hideOnLeave&&n.style.setProperty("display","none","important")},onAfterLeave(n){if(f.leaveAbsolute&&(n!=null&&n._transitionInitialStyles)){const{position:c,top:b,left:i,width:O,height:w}=n._transitionInitialStyles;delete n._transitionInitialStyles,n.style.position=c||"",n.style.top=b||"",n.style.left=i||"",n.style.width=O||"",n.style.height=w||""}}};return()=>{const n=f.group?Wle:h_;return w1(n,{name:f.disabled?"":t,css:!f.disabled,...f.group?void 0:{mode:f.mode},...f.disabled?{}:l},d.default)}}})}function Xxe(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return ta()({name:t,props:{mode:{type:String,default:o},disabled:Boolean,group:Boolean},setup(f,P){let{slots:d}=P;const l=f.group?Wle:h_;return()=>w1(l,{name:f.disabled?"":t,css:!f.disabled,...f.disabled?{}:e},d.default)}})}function Gxe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",f=rb(`offset-${o}`);return{onBeforeEnter(l){l._parent=l.parentNode,l._initialStyle={transition:l.style.transition,overflow:l.style.overflow,[o]:l.style[o]}},onEnter(l){const n=l._initialStyle;l.style.setProperty("transition","none","important"),l.style.overflow="hidden";const c=`${l[f]}px`;l.style[o]="0",l.offsetHeight,l.style.transition=n.transition,t&&l._parent&&l._parent.classList.add(t),requestAnimationFrame(()=>{l.style[o]=c})},onAfterEnter:d,onEnterCancelled:d,onLeave(l){l._initialStyle={transition:"",overflow:l.style.overflow,[o]:l.style[o]},l.style.overflow="hidden",l.style[o]=`${l[f]}px`,l.offsetHeight,requestAnimationFrame(()=>l.style[o]="0")},onAfterLeave:P,onLeaveCancelled:P};function P(l){t&&l._parent&&l._parent.classList.remove(t),d(l)}function d(l){const n=l._initialStyle[o];l.style.overflow=l._initialStyle.overflow,n!=null&&(l.style[o]=n),delete l._initialStyle}}const S9e=ti({target:[Object,Array]},"v-dialog-transition"),Yce=ta()({name:"VDialogTransition",props:S9e(),setup(t,e){let{slots:o}=e;const f={onBeforeEnter(P){P.style.pointerEvents="none",P.style.visibility="hidden"},async onEnter(P,d){var w;await new Promise(y=>requestAnimationFrame(y)),await new Promise(y=>requestAnimationFrame(y)),P.style.visibility="";const{x:l,y:n,sx:c,sy:b,speed:i}=Kme(t.target,P),O=QA(P,[{transform:`translate(${l}px, ${n}px) scale(${c}, ${b})`,opacity:0},{}],{duration:225*i,easing:o9e});(w=Gme(P))==null||w.forEach(y=>{QA(y,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*i,easing:fZ})}),O.finished.then(()=>d())},onAfterEnter(P){P.style.removeProperty("pointer-events")},onBeforeLeave(P){P.style.pointerEvents="none"},async onLeave(P,d){var w;await new Promise(y=>requestAnimationFrame(y));const{x:l,y:n,sx:c,sy:b,speed:i}=Kme(t.target,P);QA(P,[{},{transform:`translate(${l}px, ${n}px) scale(${c}, ${b})`,opacity:0}],{duration:125*i,easing:i9e}).finished.then(()=>d()),(w=Gme(P))==null||w.forEach(y=>{QA(y,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*i,easing:fZ})})},onAfterLeave(P){P.style.removeProperty("pointer-events")}};return()=>t.target?Zt(h_,Di({name:"dialog-transition"},f,{css:!1}),o):Zt(h_,{name:"dialog-transition"},o)}});function Gme(t){var o;const e=(o=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:o.children;return e&&[...e]}function Kme(t,e){const o=Bxe(t),f=jce(e),[P,d]=getComputedStyle(e).transformOrigin.split(" ").map(h=>parseFloat(h)),[l,n]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let c=o.left+o.width/2;l==="left"||n==="left"?c-=o.width/2:(l==="right"||n==="right")&&(c+=o.width/2);let b=o.top+o.height/2;l==="top"||n==="top"?b-=o.height/2:(l==="bottom"||n==="bottom")&&(b+=o.height/2);const i=o.width/f.width,O=o.height/f.height,w=Math.max(1,i,O),y=i/w||0,p=O/w||0,a=f.width*f.height/(window.innerWidth*window.innerHeight),u=a>.12?Math.min(1.5,(a-.12)*10+1):1;return{x:c-(P+f.left),y:b-(d+f.top),sx:y,sy:p,speed:u}}Uv("fab-transition","center center","out-in");Uv("dialog-bottom-transition");Uv("dialog-top-transition");const Jme=Uv("fade-transition"),Kxe=Uv("scale-transition");Uv("scroll-x-transition");Uv("scroll-x-reverse-transition");Uv("scroll-y-transition");Uv("scroll-y-reverse-transition");Uv("slide-x-transition");Uv("slide-x-reverse-transition");const Jxe=Uv("slide-y-transition");Uv("slide-y-reverse-transition");const Xce=Xxe("expand-transition",Gxe()),e2e=Xxe("expand-x-transition",Gxe("",!0)),k9e=ti({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),du=ta(!1)({name:"VDefaultsProvider",props:k9e(),setup(t,e){let{slots:o}=e;const{defaults:f,disabled:P,reset:d,root:l,scoped:n}=CM(t);return ib(f,{reset:d,root:l,scoped:n,disabled:P}),()=>{var c;return(c=o.default)==null?void 0:c.call(o)}}});const O_=ti({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function S_(t){return{dimensionStyles:jn(()=>{const o={},f=Ma(t.height),P=Ma(t.maxHeight),d=Ma(t.maxWidth),l=Ma(t.minHeight),n=Ma(t.minWidth),c=Ma(t.width);return f!=null&&(o.height=f),P!=null&&(o.maxHeight=P),d!=null&&(o.maxWidth=d),l!=null&&(o.minHeight=l),n!=null&&(o.minWidth=n),c!=null&&(o.width=c),o})}}function T9e(t){return{aspectStyles:jn(()=>{const e=Number(t.aspectRatio);return e?{paddingBottom:String(1/e*100)+"%"}:void 0})}}const t2e=ti({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...xs(),...O_()},"VResponsive"),ege=ta()({name:"VResponsive",props:t2e(),setup(t,e){let{slots:o}=e;const{aspectStyles:f}=T9e(t),{dimensionStyles:P}=S_(t);return Ca(()=>{var d;return Zt("div",{class:["v-responsive",{"v-responsive--inline":t.inline},t.class],style:[P.value,t.style]},[Zt("div",{class:"v-responsive__sizer",style:f.value},null),(d=o.additional)==null?void 0:d.call(o),o.default&&Zt("div",{class:["v-responsive__content",t.contentClass]},[o.default()])])}),{}}});function Gce(t){return Uce(()=>{const e=[],o={};if(t.value.background)if(Ise(t.value.background)){if(o.backgroundColor=t.value.background,!t.value.text&&HPe(t.value.background)){const f=l_(t.value.background);if(f.a==null||f.a===1){const P=Vxe(f);o.color=P,o.caretColor=P}}}else e.push(`bg-${t.value.background}`);return t.value.text&&(Ise(t.value.text)?(o.color=t.value.text,o.caretColor=t.value.text):e.push(`text-${t.value.text}`)),{colorClasses:e,colorStyles:o}})}function $v(t,e){const o=jn(()=>({text:Dc(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:P}=Gce(o);return{textColorClasses:f,textColorStyles:P}}function og(t,e){const o=jn(()=>({background:Dc(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:P}=Gce(o);return{backgroundColorClasses:f,backgroundColorStyles:P}}const pm=ti({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function sg(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{roundedClasses:jn(()=>{const f=Dc(t)?t.value:t.rounded,P=Dc(t)?t.value:t.tile,d=[];if(f===!0||f==="")d.push(`${e}--rounded`);else if(typeof f=="string"||f===0)for(const l of String(f).split(" "))d.push(`rounded-${l}`);else(P||f===!1)&&d.push("rounded-0");return d})}}const ST=ti({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:t=>t!==!0}},"transition"),X4=(t,e)=>{let{slots:o}=e;const{transition:f,disabled:P,group:d,...l}=t,{component:n=d?Wle:h_,...c}=typeof f=="object"?f:{};return w1(n,Di(typeof f=="string"?{name:P?"":f}:c,typeof f=="string"?{}:Object.fromEntries(Object.entries({disabled:P,group:d}).filter(b=>{let[i,O]=b;return O!==void 0})),l),o)};function C9e(t,e){if(!Nce)return;const o=e.modifiers||{},f=e.value,{handler:P,options:d}=typeof f=="object"?f:{handler:f,options:{}},l=new IntersectionObserver(function(){var O;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0;const b=(O=t._observe)==null?void 0:O[e.instance.$.uid];if(!b)return;const i=n.some(w=>w.isIntersecting);P&&(!o.quiet||b.init)&&(!o.once||i||b.init)&&P(i,n,c),i&&o.once?n2e(t,e):b.init=!0},d);t._observe=Object(t._observe),t._observe[e.instance.$.uid]={init:!1,observer:l},l.observe(t)}function n2e(t,e){var f;const o=(f=t._observe)==null?void 0:f[e.instance.$.uid];o&&(o.observer.unobserve(t),delete t._observe[e.instance.$.uid])}const A9e={mounted:C9e,unmounted:n2e},Kce=A9e,M9e=ti({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...t2e(),...xs(),...pm(),...ST()},"VImg"),kT=ta()({name:"VImg",directives:{intersect:Kce},props:M9e(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,e){let{emit:o,slots:f}=e;const{backgroundColorClasses:P,backgroundColorStyles:d}=og(Oi(t,"color")),{roundedClasses:l}=sg(t),n=ph("VImg"),c=Ai(""),b=ei(),i=Ai(t.eager?"loading":"idle"),O=Ai(),w=Ai(),y=jn(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),p=jn(()=>y.value.aspect||O.value/w.value||0);Ni(()=>t.src,()=>{a(i.value!=="idle")}),Ni(p,(C,L)=>{!C&&L&&b.value&&_(b.value)}),zle(()=>a());function a(C){if(!(t.eager&&C)&&!(Nce&&!C&&!t.eager)){if(i.value="loading",y.value.lazySrc){const L=new Image;L.src=y.value.lazySrc,_(L,null)}y.value.src&&lc(()=>{var L;o("loadstart",((L=b.value)==null?void 0:L.currentSrc)||y.value.src),setTimeout(()=>{var D;if(!n.isUnmounted)if((D=b.value)!=null&&D.complete){if(b.value.naturalWidth||h(),i.value==="error")return;p.value||_(b.value,null),i.value==="loading"&&u()}else p.value||_(b.value),m()})})}}function u(){var C;n.isUnmounted||(m(),_(b.value),i.value="loaded",o("load",((C=b.value)==null?void 0:C.currentSrc)||y.value.src))}function h(){var C;n.isUnmounted||(i.value="error",o("error",((C=b.value)==null?void 0:C.currentSrc)||y.value.src))}function m(){const C=b.value;C&&(c.value=C.currentSrc||C.src)}let v=-1;dm(()=>{clearTimeout(v)});function _(C){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const D=()=>{if(clearTimeout(v),n.isUnmounted)return;const{naturalHeight:k,naturalWidth:I}=C;k||I?(O.value=I,w.value=k):!C.complete&&i.value==="loading"&&L!=null?v=window.setTimeout(D,L):(C.currentSrc.endsWith(".svg")||C.currentSrc.startsWith("data:image/svg+xml"))&&(O.value=1,w.value=1)};D()}const S=jn(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),A=()=>{var D;if(!y.value.src||i.value==="idle")return null;const C=Zt("img",{class:["v-img__img",S.value],style:{objectPosition:t.position},src:y.value.src,srcset:y.value.srcset,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable,sizes:t.sizes,ref:b,onLoad:u,onError:h},null),L=(D=f.sources)==null?void 0:D.call(f);return Zt(X4,{transition:t.transition,appear:!0},{default:()=>[Tp(L?Zt("picture",{class:"v-img__picture"},[L,C]):C,[[pS,i.value==="loaded"]])]})},x=()=>Zt(X4,{transition:t.transition},{default:()=>[y.value.lazySrc&&i.value!=="loaded"&&Zt("img",{class:["v-img__img","v-img__img--preload",S.value],style:{objectPosition:t.position},src:y.value.lazySrc,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable},null)]}),R=()=>f.placeholder?Zt(X4,{transition:t.transition,appear:!0},{default:()=>[(i.value==="loading"||i.value==="error"&&!f.error)&&Zt("div",{class:"v-img__placeholder"},[f.placeholder()])]}):null,M=()=>f.error?Zt(X4,{transition:t.transition,appear:!0},{default:()=>[i.value==="error"&&Zt("div",{class:"v-img__error"},[f.error()])]}):null,T=()=>t.gradient?Zt("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,E=Ai(!1);{const C=Ni(p,L=>{L&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{E.value=!0})}),C())})}return Ca(()=>{const C=ege.filterProps(t);return Tp(Zt(ege,Di({class:["v-img",{"v-img--booting":!E.value},P.value,l.value,t.class],style:[{width:Ma(t.width==="auto"?O.value:t.width)},d.value,t.style]},C,{aspectRatio:p.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>Zt(ya,null,[Zt(A,null,null),Zt(x,null,null),Zt(T,null,null),Zt(R,null,null),Zt(M,null,null)]),default:f.default}),[[y_("intersect"),{handler:a,options:t.options},null,{once:!0}]])}),{currentSrc:c,image:b,state:i,naturalWidth:O,naturalHeight:w}}}),k_=ti({border:[Boolean,Number,String]},"border");function DO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{borderClasses:jn(()=>{const f=Dc(t)?t.value:t.border,P=[];if(f===!0||f==="")P.push(`${e}--border`);else if(typeof f=="string"||f===0)for(const d of String(f).split(" "))P.push(`border-${d}`);return P})}}const jv=ti({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function sb(t){return{elevationClasses:jn(()=>{const o=Dc(t)?t.value:t.elevation,f=[];return o==null||f.push(`elevation-${o}`),f})}}const E9e=[null,"prominent","default","comfortable","compact"],r2e=ti({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:t=>E9e.includes(t)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...k_(),...xs(),...jv(),...pm(),...Tu({tag:"header"}),...Ff()},"VToolbar"),tge=ta()({name:"VToolbar",props:r2e(),setup(t,e){var y;let{slots:o}=e;const{backgroundColorClasses:f,backgroundColorStyles:P}=og(Oi(t,"color")),{borderClasses:d}=DO(t),{elevationClasses:l}=sb(t),{roundedClasses:n}=sg(t),{themeClasses:c}=Md(t),{rtlClasses:b}=qg(),i=Ai(!!(t.extended||(y=o.extension)!=null&&y.call(o))),O=jn(()=>parseInt(Number(t.height)+(t.density==="prominent"?Number(t.height):0)-(t.density==="comfortable"?8:0)-(t.density==="compact"?16:0),10)),w=jn(()=>i.value?parseInt(Number(t.extensionHeight)+(t.density==="prominent"?Number(t.extensionHeight):0)-(t.density==="comfortable"?4:0)-(t.density==="compact"?8:0),10):0);return ib({VBtn:{variant:"text"}}),Ca(()=>{var h;const p=!!(t.title||o.title),a=!!(o.image||t.image),u=(h=o.extension)==null?void 0:h.call(o);return i.value=!!(t.extended||u),Zt(t.tag,{class:["v-toolbar",{"v-toolbar--absolute":t.absolute,"v-toolbar--collapse":t.collapse,"v-toolbar--flat":t.flat,"v-toolbar--floating":t.floating,[`v-toolbar--density-${t.density}`]:!0},f.value,d.value,l.value,n.value,c.value,b.value,t.class],style:[P.value,t.style]},{default:()=>[a&&Zt("div",{key:"image",class:"v-toolbar__image"},[o.image?Zt(du,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},o.image):Zt(kT,{key:"image-img",cover:!0,src:t.image},null)]),Zt(du,{defaults:{VTabs:{height:Ma(O.value)}}},{default:()=>{var m,v,_;return[Zt("div",{class:"v-toolbar__content",style:{height:Ma(O.value)}},[o.prepend&&Zt("div",{class:"v-toolbar__prepend"},[(m=o.prepend)==null?void 0:m.call(o)]),p&&Zt(w9e,{key:"title",text:t.title},{text:o.title}),(v=o.default)==null?void 0:v.call(o),o.append&&Zt("div",{class:"v-toolbar__append"},[(_=o.append)==null?void 0:_.call(o)])])]}}),Zt(du,{defaults:{VTabs:{height:Ma(w.value)}}},{default:()=>[Zt(Xce,null,{default:()=>[i.value&&Zt("div",{class:"v-toolbar__extension",style:{height:Ma(w.value)}},[u])]})]})]})}),{contentHeight:O,extensionHeight:w}}}),P9e=ti({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function R9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:o}=e;let f=0,P=0;const d=ei(null),l=Ai(0),n=Ai(0),c=Ai(0),b=Ai(!1),i=Ai(!1),O=jn(()=>Number(t.scrollThreshold)),w=jn(()=>Qg((O.value-l.value)/O.value||0)),y=()=>{const p=d.value;if(!p||o&&!o.value)return;f=l.value,l.value="window"in p?p.pageYOffset:p.scrollTop;const a=p instanceof Window?document.documentElement.scrollHeight:p.scrollHeight;if(P!==a){P=a;return}i.value=l.value{n.value=n.value||l.value}),Ni(b,()=>{n.value=0}),ag(()=>{Ni(()=>t.scrollTarget,p=>{var u;const a=p?document.querySelector(p):window;a&&a!==d.value&&((u=d.value)==null||u.removeEventListener("scroll",y),d.value=a,d.value.addEventListener("scroll",y,{passive:!0}))},{immediate:!0})}),dm(()=>{var p;(p=d.value)==null||p.removeEventListener("scroll",y)}),o&&Ni(o,y,{immediate:!0}),{scrollThreshold:O,currentScroll:l,currentThreshold:c,isScrollActive:b,scrollRatio:w,isScrollingUp:i,savedScroll:n}}function pq(){const t=Ai(!1);return ag(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:jn(()=>t.value?void 0:{transition:"none !important"}),isBooted:TM(t)}}const L9e=ti({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},...r2e(),...qce(),...P9e(),height:{type:[Number,String],default:64}},"VAppBar"),I9e=ta()({name:"VAppBar",props:L9e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ei(),P=Al(t,"modelValue"),d=jn(()=>{var _;const v=new Set(((_=t.scrollBehavior)==null?void 0:_.split(" "))??[]);return{hide:v.has("hide"),fullyHide:v.has("fully-hide"),inverted:v.has("inverted"),collapse:v.has("collapse"),elevate:v.has("elevate"),fadeImage:v.has("fade-image")}}),l=jn(()=>{const v=d.value;return v.hide||v.fullyHide||v.inverted||v.collapse||v.elevate||v.fadeImage||!P.value}),{currentScroll:n,scrollThreshold:c,isScrollingUp:b,scrollRatio:i}=R9e(t,{canScroll:l}),O=jn(()=>d.value.hide||d.value.fullyHide),w=jn(()=>t.collapse||d.value.collapse&&(d.value.inverted?i.value>0:i.value===0)),y=jn(()=>t.flat||d.value.fullyHide&&!P.value||d.value.elevate&&(d.value.inverted?n.value>0:n.value===0)),p=jn(()=>d.value.fadeImage?d.value.inverted?1-i.value:i.value:void 0),a=jn(()=>{var S,A;const v=Number(((S=f.value)==null?void 0:S.contentHeight)??t.height),_=Number(((A=f.value)==null?void 0:A.extensionHeight)??0);return O.value?n.value!!t.scrollBehavior),()=>{kp(()=>{O.value?d.value.inverted?P.value=n.value>c.value:P.value=b.value||n.valueparseInt(t.order,10)),position:Oi(t,"location"),layoutSize:a,elementSize:Ai(void 0),active:P,absolute:Oi(t,"absolute")});return Ca(()=>{const v=tge.filterProps(t);return Zt(tge,Di({ref:f,class:["v-app-bar",{"v-app-bar--bottom":t.location==="bottom"},t.class],style:[{...h.value,"--v-toolbar-image-opacity":p.value,height:void 0,...u.value},t.style]},v,{collapse:w.value,flat:y.value}),o)}),m}});const D9e=[null,"default","comfortable","compact"],Qv=ti({density:{type:String,default:"default",validator:t=>D9e.includes(t)}},"density");function kx(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{densityClasses:jn(()=>`${e}--density-${t.density}`)}}const B9e=["elevated","flat","tonal","outlined","text","plain"];function TT(t,e){return Zt(ya,null,[t&&Zt("span",{key:"overlay",class:`${e}__overlay`},null),Zt("span",{key:"underlay",class:`${e}__underlay`},null)])}const Tx=ti({color:String,variant:{type:String,default:"elevated",validator:t=>B9e.includes(t)}},"variant");function CT(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();const o=jn(()=>{const{variant:d}=wa(t);return`${e}--variant-${d}`}),{colorClasses:f,colorStyles:P}=Gce(jn(()=>{const{variant:d,color:l}=wa(t);return{[["elevated","flat"].includes(d)?"background":"text"]:l}}));return{colorClasses:f,colorStyles:P,variantClasses:o}}const o2e=ti({baseColor:String,divided:Boolean,...k_(),...xs(),...Qv(),...jv(),...pm(),...Tu(),...Ff(),...Tx()},"VBtnGroup"),nge=ta()({name:"VBtnGroup",props:o2e(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=Md(t),{densityClasses:P}=kx(t),{borderClasses:d}=DO(t),{elevationClasses:l}=sb(t),{roundedClasses:n}=sg(t);ib({VBtn:{height:"auto",baseColor:Oi(t,"baseColor"),color:Oi(t,"color"),density:Oi(t,"density"),flat:!0,variant:Oi(t,"variant")}}),Ca(()=>Zt(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},f.value,d.value,P.value,l.value,n.value,t.class],style:t.style},o))}}),mq=ti({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Jce=ti({value:null,disabled:Boolean,selectedClass:String},"group-item");function eue(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const f=ph("useGroupItem");if(!f)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const P=Vv();gf(Symbol.for(`${e.description}:id`),P);const d=vl(e,null);if(!d){if(!o)return d;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const l=Oi(t,"value"),n=jn(()=>!!(d.disabled.value||t.disabled));d.register({id:P,value:l,disabled:n},f),dm(()=>{d.unregister(P)});const c=jn(()=>d.isSelected(P)),b=jn(()=>d.items.value[0].id===P),i=jn(()=>d.items.value[d.items.value.length-1].id===P),O=jn(()=>c.value&&[d.selectedClass.value,t.selectedClass]);return Ni(c,w=>{f.emit("group:selected",{value:w})},{flush:"sync"}),{id:P,isSelected:c,isFirst:b,isLast:i,toggle:()=>d.select(P,!c.value),select:w=>d.select(P,w),selectedClass:O,value:l,disabled:n,group:d}}function gq(t,e){let o=!1;const f=lm([]),P=Al(t,"modelValue",[],w=>w==null?[]:i2e(f,fm(w)),w=>{const y=F9e(f,w);return t.multiple?y:y[0]}),d=ph("useGroup");function l(w,y){const p=w,a=Symbol.for(`${e.description}:id`),h=jA(a,d==null?void 0:d.vnode).indexOf(y);wa(p.value)==null&&(p.value=h,p.useIndexAsValue=!0),h>-1?f.splice(h,0,p):f.push(p)}function n(w){if(o)return;c();const y=f.findIndex(p=>p.id===w);f.splice(y,1)}function c(){const w=f.find(y=>!y.disabled);w&&t.mandatory==="force"&&!P.value.length&&(P.value=[w.id])}ag(()=>{c()}),dm(()=>{o=!0}),Fle(()=>{for(let w=0;wa.id===w);if(!(y&&(p!=null&&p.disabled)))if(t.multiple){const a=P.value.slice(),u=a.findIndex(m=>m===w),h=~u;if(y=y??!h,h&&t.mandatory&&a.length<=1||!h&&t.max!=null&&a.length+1>t.max)return;u<0&&y?a.push(w):u>=0&&!y&&a.splice(u,1),P.value=a}else{const a=P.value.includes(w);if(t.mandatory&&a)return;P.value=y??!a?[w]:[]}}function i(w){if(t.multiple,P.value.length){const y=P.value[0],p=f.findIndex(h=>h.id===y);let a=(p+w)%f.length,u=f[a];for(;u.disabled&&a!==p;)a=(a+w)%f.length,u=f[a];if(u.disabled)return;P.value=[f[a].id]}else{const y=f.find(p=>!p.disabled);y&&(P.value=[y.id])}}const O={register:l,unregister:n,selected:P,select:b,disabled:Oi(t,"disabled"),prev:()=>i(f.length-1),next:()=>i(1),isSelected:w=>P.value.includes(w),selectedClass:jn(()=>t.selectedClass),items:jn(()=>f),getItemIndex:w=>z9e(f,w)};return gf(e,O),O}function z9e(t,e){const o=i2e(t,[e]);return o.length?t.findIndex(f=>f.id===o[0]):-1}function i2e(t,e){const o=[];return e.forEach(f=>{const P=t.find(l=>yS(f,l.value)),d=t[f];(P==null?void 0:P.value)!=null?o.push(P.id):d!=null&&o.push(d.id)}),o}function F9e(t,e){const o=[];return e.forEach(f=>{const P=t.findIndex(d=>d.id===f);if(~P){const d=t[P];o.push(d.value!=null?d.value:P)}}),o}const a2e=Symbol.for("vuetify:v-btn-toggle"),N9e=ti({...o2e(),...mq()},"VBtnToggle"),s2e=ta()({name:"VBtnToggle",props:N9e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isSelected:f,next:P,prev:d,select:l,selected:n}=gq(t,a2e);return Ca(()=>{const c=nge.filterProps(t);return Zt(nge,Di({class:["v-btn-toggle",t.class]},c,{style:t.style}),{default:()=>{var b;return[(b=o.default)==null?void 0:b.call(o,{isSelected:f,next:P,prev:d,select:l,selected:n})]}})}),{next:P,prev:d,select:l}}});const l2e={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},c2e={component:t=>w1(f2e,{...t,class:"mdi"})},Cl=[String,Function,Object,Array],Dse=Symbol.for("vuetify:icons"),vq=ti({icon:{type:Cl},tag:{type:String,required:!0}},"icon"),rge=ta()({name:"VComponentIcon",props:vq(),setup(t,e){let{slots:o}=e;return()=>{const f=t.icon;return Zt(t.tag,null,{default:()=>{var P;return[t.icon?Zt(f,null,null):(P=o.default)==null?void 0:P.call(o)]}})}}}),u2e=PM({name:"VSvgIcon",inheritAttrs:!1,props:vq(),setup(t,e){let{attrs:o}=e;return()=>Zt(t.tag,Di(o,{style:null}),{default:()=>[Zt("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(f=>Array.isArray(f)?Zt("path",{d:f[0],"fill-opacity":f[1]},null):Zt("path",{d:f},null)):Zt("path",{d:t.icon},null)])]})}});PM({name:"VLigatureIcon",props:vq(),setup(t){return()=>Zt(t.tag,null,{default:()=>[t.icon]})}});const f2e=PM({name:"VClassIcon",props:vq(),setup(t){return()=>Zt(t.tag,{class:t.icon},null)}});function $9e(){return{svg:{component:u2e},class:{component:f2e}}}function V9e(t){const e=$9e(),o=(t==null?void 0:t.defaultSet)??"mdi";return o==="mdi"&&!e.mdi&&(e.mdi=c2e),Ug({defaultSet:o,sets:e,aliases:{...l2e,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},t)}const U9e=t=>{const e=vl(Dse);if(!e)throw new Error("Missing Vuetify Icons provide!");return{iconData:jn(()=>{var c;const f=wa(t);if(!f)return{component:rge};let P=f;if(typeof P=="string"&&(P=P.trim(),P.startsWith("$")&&(P=(c=e.aliases)==null?void 0:c[P.slice(1)])),Array.isArray(P))return{component:u2e,icon:P};if(typeof P!="string")return{component:rge,icon:P};const d=Object.keys(e.sets).find(b=>typeof P=="string"&&P.startsWith(`${b}:`)),l=d?P.slice(d.length+1):P;return{component:e.sets[d??e.defaultSet].component,icon:l}})}},j9e=["x-small","small","default","large","x-large"],RM=ti({size:{type:[String,Number],default:"default"}},"size");function OD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return Uce(()=>{let o,f;return lZ(j9e,t.size)?o=`${e}--size-${t.size}`:t.size&&(f={width:Ma(t.size),height:Ma(t.size)}),{sizeClasses:o,sizeStyles:f}})}const Q9e=ti({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Cl,...xs(),...RM(),...Tu({tag:"i"}),...Ff()},"VIcon"),Tl=ta()({name:"VIcon",props:Q9e(),setup(t,e){let{attrs:o,slots:f}=e;const P=ei(),{themeClasses:d}=Md(t),{iconData:l}=U9e(jn(()=>P.value||t.icon)),{sizeClasses:n}=OD(t),{textColorClasses:c,textColorStyles:b}=$v(Oi(t,"color"));return Ca(()=>{var w,y;const i=(w=f.default)==null?void 0:w.call(f);i&&(P.value=(y=Exe(i).filter(p=>p.type===dD&&p.children&&typeof p.children=="string")[0])==null?void 0:y.children);const O=!!(o.onClick||o.onClickOnce);return Zt(l.value.component,{tag:t.tag,icon:l.value.icon,class:["v-icon","notranslate",d.value,n.value,c.value,{"v-icon--clickable":O,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[n.value?void 0:{fontSize:Ma(t.size),height:Ma(t.size),width:Ma(t.size)},b.value,t.style],role:O?"button":void 0,"aria-hidden":!O,tabindex:O?t.disabled?-1:0:void 0},{default:()=>[i]})}),{}}});function d2e(t,e){const o=ei(),f=Ai(!1);if(Nce){const P=new IntersectionObserver(d=>{t==null||t(d,P),f.value=!!d.find(l=>l.isIntersecting)},e);dm(()=>{P.disconnect()}),Ni(o,(d,l)=>{l&&(P.unobserve(l),f.value=!1),d&&P.observe(d)},{flush:"post"})}return{intersectionRef:o,isIntersecting:f}}const H9e=ti({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...xs(),...RM(),...Tu({tag:"div"}),...Ff()},"VProgressCircular"),SD=ta()({name:"VProgressCircular",props:H9e(),setup(t,e){let{slots:o}=e;const f=20,P=2*Math.PI*f,d=ei(),{themeClasses:l}=Md(t),{sizeClasses:n,sizeStyles:c}=OD(t),{textColorClasses:b,textColorStyles:i}=$v(Oi(t,"color")),{textColorClasses:O,textColorStyles:w}=$v(Oi(t,"bgColor")),{intersectionRef:y,isIntersecting:p}=d2e(),{resizeRef:a,contentRect:u}=fS(),h=jn(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),m=jn(()=>Number(t.width)),v=jn(()=>c.value?Number(t.size):u.value?u.value.width:Math.max(m.value,32)),_=jn(()=>f/(1-m.value/v.value)*2),S=jn(()=>m.value/v.value*_.value),A=jn(()=>Ma((100-h.value)/100*P));return kp(()=>{y.value=d.value,a.value=d.value}),Ca(()=>Zt(t.tag,{ref:d,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":p.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},l.value,n.value,b.value,t.class],style:[c.value,i.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:h.value},{default:()=>[Zt("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[Zt("circle",{class:["v-progress-circular__underlay",O.value],style:w.value,fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":S.value,"stroke-dasharray":P,"stroke-dashoffset":0},null),Zt("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":S.value,"stroke-dasharray":P,"stroke-dashoffset":A.value},null)]),o.default&&Zt("div",{class:"v-progress-circular__content"},[o.default({value:h.value})])]})),{}}});const oge={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},kD=ti({location:String},"location");function yq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2?arguments[2]:void 0;const{isRtl:f}=qg();return{locationStyles:jn(()=>{if(!t.location)return{};const{side:d,align:l}=Rse(t.location.split(" ").length>1?t.location:`${t.location} center`,f.value);function n(b){return o?o(b):0}const c={};return d!=="center"&&(e?c[oge[d]]=`calc(100% - ${n(d)}px)`:c[d]=0),l!=="center"?e?c[oge[l]]=`calc(100% - ${n(l)}px)`:c[l]=0:(d==="center"?c.top=c.left="50%":c[{top:"left",bottom:"left",left:"top",right:"top"}[d]]="50%",c.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[d]),c})}}const Z9e=ti({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...xs(),...kD({location:"top"}),...pm(),...Tu(),...Ff()},"VProgressLinear"),h2e=ta()({name:"VProgressLinear",props:Z9e(),emits:{"update:modelValue":t=>!0},setup(t,e){var E;let{slots:o}=e;const f=Al(t,"modelValue"),{isRtl:P,rtlClasses:d}=qg(),{themeClasses:l}=Md(t),{locationStyles:n}=yq(t),{textColorClasses:c,textColorStyles:b}=$v(t,"color"),{backgroundColorClasses:i,backgroundColorStyles:O}=og(jn(()=>t.bgColor||t.color)),{backgroundColorClasses:w,backgroundColorStyles:y}=og(jn(()=>t.bufferColor||t.bgColor||t.color)),{backgroundColorClasses:p,backgroundColorStyles:a}=og(t,"color"),{roundedClasses:u}=sg(t),{intersectionRef:h,isIntersecting:m}=d2e(),v=jn(()=>parseFloat(t.max)),_=jn(()=>parseFloat(t.height)),S=jn(()=>Qg(parseFloat(t.bufferValue)/v.value*100,0,100)),A=jn(()=>Qg(parseFloat(f.value)/v.value*100,0,100)),x=jn(()=>P.value!==t.reverse),R=jn(()=>t.indeterminate?"fade-transition":"slide-x-transition"),M=ou&&((E=window.matchMedia)==null?void 0:E.call(window,"(forced-colors: active)").matches);function T(C){if(!h.value)return;const{left:L,right:D,width:k}=h.value.getBoundingClientRect(),I=x.value?k-C.clientX+(D-k):C.clientX-L;f.value=Math.round(I/k*v.value)}return Ca(()=>Zt(t.tag,{ref:h,class:["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&m.value,"v-progress-linear--reverse":x.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped},u.value,l.value,d.value,t.class],style:[{bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?Ma(_.value):0,"--v-progress-linear-height":Ma(_.value),...t.absolute?n.value:{}},t.style],role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:A.value,onClick:t.clickable&&T},{default:()=>[t.stream&&Zt("div",{key:"stream",class:["v-progress-linear__stream",c.value],style:{...b.value,[x.value?"left":"right"]:Ma(-_.value),borderTop:`${Ma(_.value/2)} dotted`,opacity:parseFloat(t.bufferOpacity),top:`calc(50% - ${Ma(_.value/4)})`,width:Ma(100-S.value,"%"),"--v-progress-linear-stream-to":Ma(_.value*(x.value?1:-1))}},null),Zt("div",{class:["v-progress-linear__background",M?void 0:i.value],style:[O.value,{opacity:parseFloat(t.bgOpacity),width:t.stream?0:void 0}]},null),Zt("div",{class:["v-progress-linear__buffer",M?void 0:w.value],style:[y.value,{opacity:parseFloat(t.bufferOpacity),width:Ma(S.value,"%")}]},null),Zt(h_,{name:R.value},{default:()=>[t.indeterminate?Zt("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(C=>Zt("div",{key:C,class:["v-progress-linear__indeterminate",C,M?void 0:p.value],style:a.value},null))]):Zt("div",{class:["v-progress-linear__determinate",M?void 0:p.value],style:[a.value,{width:Ma(A.value,"%")}]},null)]}),o.default&&Zt("div",{class:"v-progress-linear__content"},[o.default({value:A.value,buffer:S.value})])]})),{}}}),bq=ti({loading:[Boolean,String]},"loader");function TD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{loaderClasses:jn(()=>({[`${e}--loading`]:t.loading}))}}function xq(t,e){var f;let{slots:o}=e;return Zt("div",{class:`${t.name}__loader`},[((f=o.default)==null?void 0:f.call(o,{color:t.color,isActive:t.active}))||Zt(h2e,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const q9e=["static","relative","fixed","absolute","sticky"],_q=ti({position:{type:String,validator:t=>q9e.includes(t)}},"position");function wq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{positionClasses:jn(()=>t.position?`${e}--${t.position}`:void 0)}}function W9e(){const t=ph("useRoute");return jn(()=>{var e;return(e=t==null?void 0:t.proxy)==null?void 0:e.$route})}function p2e(){var t,e;return(e=(t=ph("useRouter"))==null?void 0:t.proxy)==null?void 0:e.$router}function Oq(t,e){var b,i;const o=SI("RouterLink"),f=jn(()=>!!(t.href||t.to)),P=jn(()=>(f==null?void 0:f.value)||Eme(e,"click")||Eme(t,"click"));if(typeof o=="string"||!("useLink"in o))return{isLink:f,isClickable:P,href:Oi(t,"href")};const d=jn(()=>({...t,to:Oi(()=>t.to||"")})),l=o.useLink(d.value),n=jn(()=>t.to?l:void 0),c=W9e();return{isLink:f,isClickable:P,route:(b=n.value)==null?void 0:b.route,navigate:(i=n.value)==null?void 0:i.navigate,isActive:jn(()=>{var O,w,y;return n.value?t.exact?c.value?((y=n.value.isExactActive)==null?void 0:y.value)&&yS(n.value.route.value.query,c.value.query):((w=n.value.isExactActive)==null?void 0:w.value)??!1:((O=n.value.isActive)==null?void 0:O.value)??!1:!1}),href:jn(()=>{var O;return t.to?(O=n.value)==null?void 0:O.route.value.href:t.href})}}const Sq=ti({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Vie=!1;function Y9e(t,e){let o=!1,f,P;ou&&(lc(()=>{window.addEventListener("popstate",d),f=t==null?void 0:t.beforeEach((l,n,c)=>{Vie?o?e(c):c():setTimeout(()=>o?e(c):c()),Vie=!0}),P=t==null?void 0:t.afterEach(()=>{Vie=!1})}),ig(()=>{window.removeEventListener("popstate",d),f==null||f(),P==null||P()}));function d(l){var n;(n=l.state)!=null&&n.replaced||(o=!0,setTimeout(()=>o=!1))}}function X9e(t,e){Ni(()=>{var o;return(o=t.isActive)==null?void 0:o.value},o=>{t.isLink.value&&o&&e&&lc(()=>{e(!0)})},{immediate:!0})}const Bse=Symbol("rippleStop"),G9e=80;function ige(t,e){t.style.transform=e,t.style.webkitTransform=e}function zse(t){return t.constructor.name==="TouchEvent"}function m2e(t){return t.constructor.name==="KeyboardEvent"}const K9e=function(t,e){var O;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=0,P=0;if(!m2e(t)){const w=e.getBoundingClientRect(),y=zse(t)?t.touches[t.touches.length-1]:t;f=y.clientX-w.left,P=y.clientY-w.top}let d=0,l=.3;(O=e._ripple)!=null&&O.circle?(l=.15,d=e.clientWidth/2,d=o.center?d:d+Math.sqrt((f-d)**2+(P-d)**2)/4):d=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const n=`${(e.clientWidth-d*2)/2}px`,c=`${(e.clientHeight-d*2)/2}px`,b=o.center?n:`${f-d}px`,i=o.center?c:`${P-d}px`;return{radius:d,scale:l,x:b,y:i,centerX:n,centerY:c}},mZ={show(t,e){var y;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((y=e==null?void 0:e._ripple)!=null&&y.enabled))return;const f=document.createElement("span"),P=document.createElement("span");f.appendChild(P),f.className="v-ripple__container",o.class&&(f.className+=` ${o.class}`);const{radius:d,scale:l,x:n,y:c,centerX:b,centerY:i}=K9e(t,e,o),O=`${d*2}px`;P.className="v-ripple__animation",P.style.width=O,P.style.height=O,e.appendChild(f);const w=window.getComputedStyle(e);w&&w.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),P.classList.add("v-ripple__animation--enter"),P.classList.add("v-ripple__animation--visible"),ige(P,`translate(${n}, ${c}) scale3d(${l},${l},${l})`),P.dataset.activated=String(performance.now()),setTimeout(()=>{P.classList.remove("v-ripple__animation--enter"),P.classList.add("v-ripple__animation--in"),ige(P,`translate(${b}, ${i}) scale3d(1,1,1)`)},0)},hide(t){var d;if(!((d=t==null?void 0:t._ripple)!=null&&d.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const o=e[e.length-1];if(o.dataset.isHiding)return;o.dataset.isHiding="true";const f=performance.now()-Number(o.dataset.activated),P=Math.max(250-f,0);setTimeout(()=>{o.classList.remove("v-ripple__animation--in"),o.classList.add("v-ripple__animation--out"),setTimeout(()=>{var n;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((n=o.parentNode)==null?void 0:n.parentNode)===t&&t.removeChild(o.parentNode)},300)},P)}};function g2e(t){return typeof t>"u"||!!t}function XI(t){const e={},o=t.currentTarget;if(!(!(o!=null&&o._ripple)||o._ripple.touched||t[Bse])){if(t[Bse]=!0,zse(t))o._ripple.touched=!0,o._ripple.isTouch=!0;else if(o._ripple.isTouch)return;if(e.center=o._ripple.centered||m2e(t),o._ripple.class&&(e.class=o._ripple.class),zse(t)){if(o._ripple.showTimerCommit)return;o._ripple.showTimerCommit=()=>{mZ.show(t,o,e)},o._ripple.showTimer=window.setTimeout(()=>{var f;(f=o==null?void 0:o._ripple)!=null&&f.showTimerCommit&&(o._ripple.showTimerCommit(),o._ripple.showTimerCommit=null)},G9e)}else mZ.show(t,o,e)}}function age(t){t[Bse]=!0}function Bv(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{Bv(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),mZ.hide(e)}}function v2e(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let GI=!1;function y2e(t){!GI&&(t.keyCode===kme.enter||t.keyCode===kme.space)&&(GI=!0,XI(t))}function b2e(t){GI=!1,Bv(t)}function x2e(t){GI&&(GI=!1,Bv(t))}function _2e(t,e,o){const{value:f,modifiers:P}=e,d=g2e(f);if(d||mZ.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=d,t._ripple.centered=P.center,t._ripple.circle=P.circle,Mse(f)&&f.class&&(t._ripple.class=f.class),d&&!o){if(P.stop){t.addEventListener("touchstart",age,{passive:!0}),t.addEventListener("mousedown",age);return}t.addEventListener("touchstart",XI,{passive:!0}),t.addEventListener("touchend",Bv,{passive:!0}),t.addEventListener("touchmove",v2e,{passive:!0}),t.addEventListener("touchcancel",Bv),t.addEventListener("mousedown",XI),t.addEventListener("mouseup",Bv),t.addEventListener("mouseleave",Bv),t.addEventListener("keydown",y2e),t.addEventListener("keyup",b2e),t.addEventListener("blur",x2e),t.addEventListener("dragstart",Bv,{passive:!0})}else!d&&o&&w2e(t)}function w2e(t){t.removeEventListener("mousedown",XI),t.removeEventListener("touchstart",XI),t.removeEventListener("touchend",Bv),t.removeEventListener("touchmove",v2e),t.removeEventListener("touchcancel",Bv),t.removeEventListener("mouseup",Bv),t.removeEventListener("mouseleave",Bv),t.removeEventListener("keydown",y2e),t.removeEventListener("keyup",b2e),t.removeEventListener("dragstart",Bv),t.removeEventListener("blur",x2e)}function J9e(t,e){_2e(t,e,!1)}function eRe(t){delete t._ripple,w2e(t)}function tRe(t,e){if(e.value===e.oldValue)return;const o=g2e(e.oldValue);_2e(t,e,o)}const AT={mounted:J9e,unmounted:eRe,updated:tRe},nRe=ti({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:a2e},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Cl,appendIcon:Cl,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...k_(),...xs(),...Qv(),...O_(),...jv(),...Jce(),...bq(),...kD(),..._q(),...pm(),...Sq(),...RM(),...Tu({tag:"button"}),...Ff(),...Tx({variant:"elevated"})},"VBtn"),ps=ta()({name:"VBtn",props:nRe(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:P}=Md(t),{borderClasses:d}=DO(t),{densityClasses:l}=kx(t),{dimensionStyles:n}=S_(t),{elevationClasses:c}=sb(t),{loaderClasses:b}=TD(t),{locationStyles:i}=yq(t),{positionClasses:O}=wq(t),{roundedClasses:w}=sg(t),{sizeClasses:y,sizeStyles:p}=OD(t),a=eue(t,t.symbol,!1),u=Oq(t,o),h=jn(()=>{var T;return t.active!==void 0?t.active:u.isLink.value?(T=u.isActive)==null?void 0:T.value:a==null?void 0:a.isSelected.value}),m=jn(()=>{var E,C;return{color:(a==null?void 0:a.isSelected.value)&&(!u.isLink.value||((E=u.isActive)==null?void 0:E.value))||!a||((C=u.isActive)==null?void 0:C.value)?t.color??t.baseColor:t.baseColor,variant:t.variant}}),{colorClasses:v,colorStyles:_,variantClasses:S}=CT(m),A=jn(()=>(a==null?void 0:a.disabled.value)||t.disabled),x=jn(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),R=jn(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function M(T){var E;A.value||u.isLink.value&&(T.metaKey||T.ctrlKey||T.shiftKey||T.button!==0||o.target==="_blank")||((E=u.navigate)==null||E.call(u,T),a==null||a.toggle())}return X9e(u,a==null?void 0:a.select),Ca(()=>{const T=u.isLink.value?"a":t.tag,E=!!(t.prependIcon||f.prepend),C=!!(t.appendIcon||f.append),L=!!(t.icon&&t.icon!==!0);return Tp(Zt(T,{type:T==="a"?void 0:"button",class:["v-btn",a==null?void 0:a.selectedClass.value,{"v-btn--active":h.value,"v-btn--block":t.block,"v-btn--disabled":A.value,"v-btn--elevated":x.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--readonly":t.readonly,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},P.value,d.value,v.value,l.value,c.value,b.value,O.value,w.value,y.value,S.value,t.class],style:[_.value,n.value,i.value,p.value,t.style],"aria-busy":t.loading?!0:void 0,disabled:A.value||void 0,href:u.href.value,tabindex:t.loading||t.readonly?-1:void 0,onClick:M,value:R.value},{default:()=>{var D;return[TT(!0,"v-btn"),!t.icon&&E&&Zt("span",{key:"prepend",class:"v-btn__prepend"},[f.prepend?Zt(du,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},f.prepend):Zt(Tl,{key:"prepend-icon",icon:t.prependIcon},null)]),Zt("span",{class:"v-btn__content","data-no-activator":""},[!f.default&&L?Zt(Tl,{key:"content-icon",icon:t.icon},null):Zt(du,{key:"content-defaults",disabled:!L,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var k;return[((k=f.default)==null?void 0:k.call(f))??t.text]}})]),!t.icon&&C&&Zt("span",{key:"append",class:"v-btn__append"},[f.append?Zt(du,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},f.append):Zt(Tl,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&Zt("span",{key:"loader",class:"v-btn__loader"},[((D=f.loader)==null?void 0:D.call(f))??Zt(SD,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,width:"2"},null)])]}}),[[AT,!A.value&&t.ripple,"",{center:!!t.icon}]])}),{group:a}}});const rRe=hq("v-alert-title"),oRe=["success","info","warning","error"],iRe=ti({border:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["top","end","bottom","start"].includes(t)},borderColor:String,closable:Boolean,closeIcon:{type:Cl,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:t=>oRe.includes(t)},...xs(),...Qv(),...O_(),...jv(),...kD(),..._q(),...pm(),...Tu(),...Ff(),...Tx({variant:"flat"})},"VAlert"),sge=ta()({name:"VAlert",props:iRe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{emit:o,slots:f}=e;const P=Al(t,"modelValue"),d=jn(()=>{if(t.icon!==!1)return t.type?t.icon??`$${t.type}`:t.icon}),l=jn(()=>({color:t.color??t.type,variant:t.variant})),{themeClasses:n}=Md(t),{colorClasses:c,colorStyles:b,variantClasses:i}=CT(l),{densityClasses:O}=kx(t),{dimensionStyles:w}=S_(t),{elevationClasses:y}=sb(t),{locationStyles:p}=yq(t),{positionClasses:a}=wq(t),{roundedClasses:u}=sg(t),{textColorClasses:h,textColorStyles:m}=$v(Oi(t,"borderColor")),{t:v}=Sx(),_=jn(()=>({"aria-label":v(t.closeLabel),onClick(S){P.value=!1,o("click:close",S)}}));return()=>{const S=!!(f.prepend||d.value),A=!!(f.title||t.title),x=!!(f.close||t.closable);return P.value&&Zt(t.tag,{class:["v-alert",t.border&&{"v-alert--border":!!t.border,[`v-alert--border-${t.border===!0?"start":t.border}`]:!0},{"v-alert--prominent":t.prominent},n.value,c.value,O.value,y.value,a.value,u.value,i.value,t.class],style:[b.value,w.value,p.value,t.style],role:"alert"},{default:()=>{var R,M;return[TT(!1,"v-alert"),t.border&&Zt("div",{key:"border",class:["v-alert__border",h.value],style:m.value},null),S&&Zt("div",{key:"prepend",class:"v-alert__prepend"},[f.prepend?Zt(du,{key:"prepend-defaults",disabled:!d.value,defaults:{VIcon:{density:t.density,icon:d.value,size:t.prominent?44:28}}},f.prepend):Zt(Tl,{key:"prepend-icon",density:t.density,icon:d.value,size:t.prominent?44:28},null)]),Zt("div",{class:"v-alert__content"},[A&&Zt(rRe,{key:"title"},{default:()=>{var T;return[((T=f.title)==null?void 0:T.call(f))??t.title]}}),((R=f.text)==null?void 0:R.call(f))??t.text,(M=f.default)==null?void 0:M.call(f)]),f.append&&Zt("div",{key:"append",class:"v-alert__append"},[f.append()]),x&&Zt("div",{key:"close",class:"v-alert__close"},[f.close?Zt(du,{key:"close-defaults",defaults:{VBtn:{icon:t.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var T;return[(T=f.close)==null?void 0:T.call(f,{props:_.value})]}}):Zt(ps,Di({key:"close-btn",icon:t.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}});const aRe=ti({start:Boolean,end:Boolean,icon:Cl,image:String,text:String,...xs(),...Qv(),...pm(),...RM(),...Tu(),...Ff(),...Tx({variant:"flat"})},"VAvatar"),PO=ta()({name:"VAvatar",props:aRe(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=Md(t),{colorClasses:P,colorStyles:d,variantClasses:l}=CT(t),{densityClasses:n}=kx(t),{roundedClasses:c}=sg(t),{sizeClasses:b,sizeStyles:i}=OD(t);return Ca(()=>Zt(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},f.value,P.value,n.value,c.value,b.value,l.value,t.class],style:[d.value,i.value,t.style]},{default:()=>[o.default?Zt(du,{key:"content-defaults",defaults:{VImg:{cover:!0,src:t.image},VIcon:{icon:t.icon}}},{default:()=>[o.default()]}):t.image?Zt(kT,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?Zt(Tl,{key:"icon",icon:t.icon},null):t.text,TT(!1,"v-avatar")]})),{}}});const sRe=ti({text:String,onClick:rg(),...xs(),...Ff()},"VLabel"),kq=ta()({name:"VLabel",props:sRe(),setup(t,e){let{slots:o}=e;return Ca(()=>{var f;return Zt("label",{class:["v-label",{"v-label--clickable":!!t.onClick},t.class],style:t.style,onClick:t.onClick},[t.text,(f=o.default)==null?void 0:f.call(o)])}),{}}});const O2e=Symbol.for("vuetify:selection-control-group"),S2e=ti({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Cl,trueIcon:Cl,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:yS},...xs(),...Qv(),...Ff()},"SelectionControlGroup"),lRe=ti({...S2e({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");ta()({name:"VSelectionControlGroup",props:lRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=Al(t,"modelValue"),P=Vv(),d=jn(()=>t.id||`v-selection-control-group-${P}`),l=jn(()=>t.name||d.value),n=new Set;return gf(O2e,{modelValue:f,forceUpdate:()=>{n.forEach(c=>c())},onForceUpdate:c=>{n.add(c),ig(()=>{n.delete(c)})}}),ib({[t.defaultsTarget]:{color:Oi(t,"color"),disabled:Oi(t,"disabled"),density:Oi(t,"density"),error:Oi(t,"error"),inline:Oi(t,"inline"),modelValue:f,multiple:jn(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),name:l,falseIcon:Oi(t,"falseIcon"),trueIcon:Oi(t,"trueIcon"),readonly:Oi(t,"readonly"),ripple:Oi(t,"ripple"),type:Oi(t,"type"),valueComparator:Oi(t,"valueComparator")}}),Ca(()=>{var c;return Zt("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(c=o.default)==null?void 0:c.call(o)])}),{}}});const tue=ti({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...xs(),...S2e()},"VSelectionControl");function cRe(t){const e=vl(O2e,void 0),{densityClasses:o}=kx(t),f=Al(t,"modelValue"),P=jn(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),d=jn(()=>t.falseValue!==void 0?t.falseValue:!1),l=jn(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),n=jn({get(){const y=e?e.modelValue.value:f.value;return l.value?fm(y).some(p=>t.valueComparator(p,P.value)):t.valueComparator(y,P.value)},set(y){if(t.readonly)return;const p=y?P.value:d.value;let a=p;l.value&&(a=y?[...fm(f.value),p]:fm(f.value).filter(u=>!t.valueComparator(u,P.value))),e?e.modelValue.value=a:f.value=a}}),{textColorClasses:c,textColorStyles:b}=$v(jn(()=>{if(!(t.error||t.disabled))return n.value?t.color:t.baseColor})),{backgroundColorClasses:i,backgroundColorStyles:O}=og(jn(()=>n.value&&!t.error&&!t.disabled?t.color:t.baseColor)),w=jn(()=>n.value?t.trueIcon:t.falseIcon);return{group:e,densityClasses:o,trueValue:P,falseValue:d,model:n,textColorClasses:c,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:O,icon:w}}const gZ=ta()({name:"VSelectionControl",directives:{Ripple:AT},inheritAttrs:!1,props:tue(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{group:P,densityClasses:d,icon:l,model:n,textColorClasses:c,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:O,trueValue:w}=cRe(t),y=Vv(),p=Ai(!1),a=Ai(!1),u=ei(),h=jn(()=>t.id||`input-${y}`),m=jn(()=>!t.disabled&&!t.readonly);P==null||P.onForceUpdate(()=>{u.value&&(u.value.checked=n.value)});function v(x){m.value&&(p.value=!0,gM(x.target,":focus-visible")!==!1&&(a.value=!0))}function _(){p.value=!1,a.value=!1}function S(x){x.stopPropagation()}function A(x){if(!m.value){u.value&&(u.value.checked=n.value);return}t.readonly&&P&&lc(()=>P.forceUpdate()),n.value=x.target.checked}return Ca(()=>{var E,C;const x=f.label?f.label({label:t.label,props:{for:h.value}}):t.label,[R,M]=fq(o),T=Zt("input",Di({ref:u,checked:n.value,disabled:!!t.disabled,id:h.value,onBlur:_,onFocus:v,onInput:A,"aria-disabled":!!t.disabled,"aria-label":t.label,type:t.type,value:w.value,name:t.name,"aria-checked":t.type==="checkbox"?n.value:void 0},M),null);return Zt("div",Di({class:["v-selection-control",{"v-selection-control--dirty":n.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":p.value,"v-selection-control--focus-visible":a.value,"v-selection-control--inline":t.inline},d.value,t.class]},R,{style:t.style}),[Zt("div",{class:["v-selection-control__wrapper",c.value],style:b.value},[(E=f.default)==null?void 0:E.call(f,{backgroundColorClasses:i,backgroundColorStyles:O}),Tp(Zt("div",{class:["v-selection-control__input"]},[((C=f.input)==null?void 0:C.call(f,{model:n,textColorClasses:c,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:O,inputNode:T,icon:l.value,props:{onFocus:v,onBlur:_,id:h.value}}))??Zt(ya,null,[l.value&&Zt(Tl,{key:"icon",icon:l.value},null),T])]),[[y_("ripple"),t.ripple&&[!t.disabled&&!t.readonly,null,["center","circle"]]]])]),x&&Zt(kq,{for:h.value,onClick:S},{default:()=>[x]})])}),{isFocused:p,input:u}}}),uRe=ti({indeterminate:Boolean,indeterminateIcon:{type:Cl,default:"$checkboxIndeterminate"},...tue({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),LM=ta()({name:"VCheckboxBtn",props:uRe(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{slots:o}=e;const f=Al(t,"indeterminate"),P=Al(t,"modelValue");function d(c){f.value&&(f.value=!1)}const l=jn(()=>f.value?t.indeterminateIcon:t.falseIcon),n=jn(()=>f.value?t.indeterminateIcon:t.trueIcon);return Ca(()=>{const c=__(gZ.filterProps(t),["modelValue"]);return Zt(gZ,Di(c,{modelValue:P.value,"onUpdate:modelValue":[b=>P.value=b,d],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:l.value,trueIcon:n.value,"aria-checked":f.value?"mixed":void 0}),o)}),{}}});function k2e(t){const{t:e}=Sx();function o(f){let{name:P}=f;const d={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[P],l=t[`onClick:${P}`],n=l&&d?e(`$vuetify.input.${d}`,t.label??""):void 0;return Zt(Tl,{icon:t[`${P}Icon`],"aria-label":n,onClick:l},null)}return{InputIcon:o}}const fRe=ti({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...xs(),...ST({transition:{component:Jxe,leaveAbsolute:!0,group:!0}})},"VMessages"),dRe=ta()({name:"VMessages",props:fRe(),setup(t,e){let{slots:o}=e;const f=jn(()=>fm(t.messages)),{textColorClasses:P,textColorStyles:d}=$v(jn(()=>t.color));return Ca(()=>Zt(X4,{transition:t.transition,tag:"div",class:["v-messages",P.value,t.class],style:[d.value,t.style],role:"alert","aria-live":"polite"},{default:()=>[t.active&&f.value.map((l,n)=>Zt("div",{class:"v-messages__message",key:`${n}-${f.value}`},[o.message?o.message({message:l}):l]))]})),{}}}),Tq=ti({focused:Boolean,"onUpdate:focused":rg()},"focus");function IM(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();const o=Al(t,"focused"),f=jn(()=>({[`${e}--focused`]:o.value}));function P(){o.value=!0}function d(){o.value=!1}return{focusClasses:f,isFocused:o,focus:P,blur:d}}const T2e=Symbol.for("vuetify:form"),hRe=ti({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function pRe(t){const e=Al(t,"modelValue"),o=jn(()=>t.disabled),f=jn(()=>t.readonly),P=Ai(!1),d=ei([]),l=ei([]);async function n(){const i=[];let O=!0;l.value=[],P.value=!0;for(const w of d.value){const y=await w.validate();if(y.length>0&&(O=!1,i.push({id:w.id,errorMessages:y})),!O&&t.fastFail)break}return l.value=i,P.value=!1,{valid:O,errors:l.value}}function c(){d.value.forEach(i=>i.reset())}function b(){d.value.forEach(i=>i.resetValidation())}return Ni(d,()=>{let i=0,O=0;const w=[];for(const y of d.value)y.isValid===!1?(O++,w.push({id:y.id,errorMessages:y.errorMessages})):y.isValid===!0&&i++;l.value=w,e.value=O>0?!1:i===d.value.length?!0:null},{deep:!0,flush:"post"}),gf(T2e,{register:i=>{let{id:O,vm:w,validate:y,reset:p,resetValidation:a}=i;d.value.some(u=>u.id===O),d.value.push({id:O,validate:y,reset:p,resetValidation:a,vm:uD(w),isValid:null,errorMessages:[]})},unregister:i=>{d.value=d.value.filter(O=>O.id!==i)},update:(i,O,w)=>{const y=d.value.find(p=>p.id===i);y&&(y.isValid=O,y.errorMessages=w)},isDisabled:o,isReadonly:f,isValidating:P,isValid:e,items:d,validateOn:Oi(t,"validateOn")}),{errors:l,isDisabled:o,isReadonly:f,isValidating:P,isValid:e,items:d,validate:n,reset:c,resetValidation:b}}function Cq(){return vl(T2e,null)}const mRe=ti({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Tq()},"validation");function gRe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_(),o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vv();const f=Al(t,"modelValue"),P=jn(()=>t.validationValue===void 0?f.value:t.validationValue),d=Cq(),l=ei([]),n=Ai(!0),c=jn(()=>!!(fm(f.value===""?null:f.value).length||fm(P.value===""?null:P.value).length)),b=jn(()=>!!(t.disabled??(d==null?void 0:d.isDisabled.value))),i=jn(()=>!!(t.readonly??(d==null?void 0:d.isReadonly.value))),O=jn(()=>{var S;return(S=t.errorMessages)!=null&&S.length?fm(t.errorMessages).concat(l.value).slice(0,Math.max(0,+t.maxErrors)):l.value}),w=jn(()=>{let S=(t.validateOn??(d==null?void 0:d.validateOn.value))||"input";S==="lazy"&&(S="input lazy");const A=new Set((S==null?void 0:S.split(" "))??[]);return{blur:A.has("blur")||A.has("input"),input:A.has("input"),submit:A.has("submit"),lazy:A.has("lazy")}}),y=jn(()=>{var S;return t.error||(S=t.errorMessages)!=null&&S.length?!1:t.rules.length?n.value?l.value.length||w.value.lazy?null:!0:!l.value.length:!0}),p=Ai(!1),a=jn(()=>({[`${e}--error`]:y.value===!1,[`${e}--dirty`]:c.value,[`${e}--disabled`]:b.value,[`${e}--readonly`]:i.value})),u=ph("validation"),h=jn(()=>t.name??wa(o));zle(()=>{d==null||d.register({id:h.value,vm:u,validate:_,reset:m,resetValidation:v})}),dm(()=>{d==null||d.unregister(h.value)}),ag(async()=>{w.value.lazy||await _(!0),d==null||d.update(h.value,y.value,O.value)}),x1(()=>w.value.input,()=>{Ni(P,()=>{if(P.value!=null)_();else if(t.focused){const S=Ni(()=>t.focused,A=>{A||_(),S()})}})}),x1(()=>w.value.blur,()=>{Ni(()=>t.focused,S=>{S||_()})}),Ni([y,O],()=>{d==null||d.update(h.value,y.value,O.value)});async function m(){f.value=null,await lc(),await v()}async function v(){n.value=!0,w.value.lazy?l.value=[]:await _(!0)}async function _(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=[];p.value=!0;for(const x of t.rules){if(A.length>=+(t.maxErrors??1))break;const M=await(typeof x=="function"?x:()=>x)(P.value);if(M!==!0){if(M!==!1&&typeof M!="string"){console.warn(`${M} is not a valid value. Rule functions must return boolean true or a string.`);continue}A.push(M||"")}}return l.value=A,p.value=!1,n.value=S,l.value}return{errorMessages:O,isDirty:c,isDisabled:b,isReadonly:i,isPristine:n,isValid:y,isValidating:p,reset:m,resetValidation:v,validate:_,validationClasses:a}}const DM=ti({id:String,appendIcon:Cl,centerAffix:{type:Boolean,default:!0},prependIcon:Cl,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":rg(),"onClick:append":rg(),...xs(),...Qv(),...bPe(O_(),["maxWidth","minWidth","width"]),...Ff(),...mRe()},"VInput"),p_=ta()({name:"VInput",props:{...DM()},emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f,emit:P}=e;const{densityClasses:d}=kx(t),{dimensionStyles:l}=S_(t),{themeClasses:n}=Md(t),{rtlClasses:c}=qg(),{InputIcon:b}=k2e(t),i=Vv(),O=jn(()=>t.id||`input-${i}`),w=jn(()=>`${O.value}-messages`),{errorMessages:y,isDirty:p,isDisabled:a,isReadonly:u,isPristine:h,isValid:m,isValidating:v,reset:_,resetValidation:S,validate:A,validationClasses:x}=gRe(t,"v-input",O),R=jn(()=>({id:O,messagesId:w,isDirty:p,isDisabled:a,isReadonly:u,isPristine:h,isValid:m,isValidating:v,reset:_,resetValidation:S,validate:A})),M=jn(()=>{var T;return(T=t.errorMessages)!=null&&T.length||!h.value&&y.value.length?y.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages});return Ca(()=>{var D,k,I,z;const T=!!(f.prepend||t.prependIcon),E=!!(f.append||t.appendIcon),C=M.value.length>0,L=!t.hideDetails||t.hideDetails==="auto"&&(C||!!f.details);return Zt("div",{class:["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix,"v-input--hide-spin-buttons":t.hideSpinButtons},d.value,n.value,c.value,x.value,t.class],style:[l.value,t.style]},[T&&Zt("div",{key:"prepend",class:"v-input__prepend"},[(D=f.prepend)==null?void 0:D.call(f,R.value),t.prependIcon&&Zt(b,{key:"prepend-icon",name:"prepend"},null)]),f.default&&Zt("div",{class:"v-input__control"},[(k=f.default)==null?void 0:k.call(f,R.value)]),E&&Zt("div",{key:"append",class:"v-input__append"},[t.appendIcon&&Zt(b,{key:"append-icon",name:"append"},null),(I=f.append)==null?void 0:I.call(f,R.value)]),L&&Zt("div",{class:"v-input__details"},[Zt(dRe,{id:w.value,active:C,messages:M.value},{message:f.message}),(z=f.details)==null?void 0:z.call(f,R.value)])])}),{reset:_,resetValidation:S,validate:A,isValid:m,errorMessages:y}}});const Aq=["sm","md","lg","xl","xxl"],Fse=Symbol.for("vuetify:display"),lge={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},vRe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lge;return Ug(lge,t)};function cge(t){return ou&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function uge(t){return ou&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function fge(t){const e=ou&&!t?window.navigator.userAgent:"ssr";function o(p){return!!e.match(p)}const f=o(/android/i),P=o(/iphone|ipad|ipod/i),d=o(/cordova/i),l=o(/electron/i),n=o(/chrome/i),c=o(/edge/i),b=o(/firefox/i),i=o(/opera/i),O=o(/win/i),w=o(/mac/i),y=o(/linux/i);return{android:f,ios:P,cordova:d,electron:l,chrome:n,edge:c,firefox:b,opera:i,win:O,mac:w,linux:y,touch:gPe,ssr:e==="ssr"}}function yRe(t,e){const{thresholds:o,mobileBreakpoint:f}=vRe(t),P=Ai(uge(e)),d=Ai(fge(e)),l=lm({}),n=Ai(cge(e));function c(){P.value=uge(),n.value=cge()}function b(){c(),d.value=fge()}return kp(()=>{const i=n.value=o.xxl,u=i?"xs":O?"sm":w?"md":y?"lg":p?"xl":"xxl",h=typeof f=="number"?f:o[f],m=n.value0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();const o=vl(Fse);if(!o)throw new Error("Could not find Vuetify display injection");const f=jn(()=>{if(t.mobile!=null)return t.mobile;if(!t.mobileBreakpoint)return o.mobile.value;const d=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:o.thresholds.value[t.mobileBreakpoint];return o.width.valuee?{[`${e}--mobile`]:f.value}:{});return{...o,displayClasses:P,mobile:f}}const C2e=Symbol.for("vuetify:goto");function A2e(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5}}}function bRe(t){return nue(t)??(document.scrollingElement||document.body)}function nue(t){return typeof t=="string"?document.querySelector(t):$ce(t)}function Uie(t,e,o){if(typeof t=="number")return e&&o?-t:t;let f=nue(t),P=0;for(;f;)P+=e?f.offsetLeft:f.offsetTop,f=f.offsetParent;return P}function xRe(t,e){return{rtl:e.isRtl,options:Ug(A2e(),t)}}async function dge(t,e,o,f){const P=o?"scrollLeft":"scrollTop",d=Ug((f==null?void 0:f.options)??A2e(),e),l=f==null?void 0:f.rtl.value,n=(typeof t=="number"?t:nue(t))??0,c=d.container==="parent"&&n instanceof HTMLElement?n.parentElement:bRe(d.container),b=typeof d.easing=="function"?d.easing:d.patterns[d.easing];if(!b)throw new TypeError(`Easing function "${d.easing}" not found.`);let i;if(typeof n=="number")i=Uie(n,o,l);else if(i=Uie(n,o,l)-Uie(c,o,l),d.layout){const p=window.getComputedStyle(n).getPropertyValue("--v-layout-top");p&&(i-=parseInt(p,10))}i+=d.offset,i=wRe(c,i,!!l,!!o);const O=c[P]??0;if(i===O)return Promise.resolve(i);const w=performance.now();return new Promise(y=>requestAnimationFrame(function p(a){const h=(a-w)/d.duration,m=Math.floor(O+(i-O)*b(Qg(h,0,1)));if(c[P]=m,h>=1&&Math.abs(m-c[P])<10)return y(i);if(h>2)return y(c[P]);requestAnimationFrame(p)}))}function _Re(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=vl(C2e),{isRtl:o}=qg();if(!e)throw new Error("[Vuetify] Could not find injected goto instance");const f={...e,rtl:jn(()=>e.rtl.value||o.value)};async function P(d,l){return dge(d,Ug(t,l),!1,f)}return P.horizontal=async(d,l)=>dge(d,Ug(t,l),!0,f),P}function wRe(t,e,o,f){const{scrollWidth:P,scrollHeight:d}=t,[l,n]=t===document.scrollingElement?[window.innerWidth,window.innerHeight]:[t.offsetWidth,t.offsetHeight];let c,b;return f?o?(c=-(P-l),b=0):(c=0,b=P-l):(c=0,b=d+-n),Math.max(Math.min(e,b),c)}function ORe(t){let{selectedElement:e,containerElement:o,isRtl:f,isHorizontal:P}=t;const d=KI(P,o),l=M2e(P,f,o),n=KI(P,e),c=E2e(P,e),b=n*.4;return l>c?c-b:l+dtypeof t=="boolean"||["always","desktop","mobile"].includes(t)},...xs(),...CD({mobile:null}),...Tu(),...mq({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),pge=ta()({name:"VSlideGroup",props:P2e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isRtl:f}=qg(),{displayClasses:P,mobile:d}=bS(t),l=gq(t,t.symbol),n=Ai(!1),c=Ai(0),b=Ai(0),i=Ai(0),O=jn(()=>t.direction==="horizontal"),{resizeRef:w,contentRect:y}=fS(),{resizeRef:p,contentRect:a}=fS(),u=_Re(),h=jn(()=>({container:w.el,duration:200,easing:"easeOutQuart"})),m=jn(()=>l.selected.value.length?l.items.value.findIndex(j=>j.id===l.selected.value[0]):-1),v=jn(()=>l.selected.value.length?l.items.value.findIndex(j=>j.id===l.selected.value[l.selected.value.length-1]):-1);if(ou){let j=-1;Ni(()=>[l.selected.value,y.value,a.value,O.value],()=>{cancelAnimationFrame(j),j=requestAnimationFrame(()=>{if(y.value&&a.value){const U=O.value?"width":"height";b.value=y.value[U],i.value=a.value[U],n.value=b.value+1=0&&p.el){const U=p.el.children[v.value];S(U,t.centerActive)}})})}const _=Ai(!1);function S(j,U){let X=0;U?X=SRe({containerElement:w.el,isHorizontal:O.value,selectedElement:j}):X=ORe({containerElement:w.el,isHorizontal:O.value,isRtl:f.value,selectedElement:j}),A(X)}function A(j){if(!ou||!w.el)return;const U=KI(O.value,w.el),X=M2e(O.value,f.value,w.el);if(!(hge(O.value,w.el)<=U||Math.abs(j-X)<16)){if(O.value&&f.value&&w.el){const{scrollWidth:W,offsetWidth:K}=w.el;j=W-K-j}O.value?u.horizontal(j,h.value):u(j,h.value)}}function x(j){const{scrollTop:U,scrollLeft:X}=j.target;c.value=O.value?X:U}function R(j){if(_.value=!0,!(!n.value||!p.el)){for(const U of j.composedPath())for(const X of p.el.children)if(X===U){S(X);return}}}function M(j){_.value=!1}let T=!1;function E(j){var U;!T&&!_.value&&!(j.relatedTarget&&((U=p.el)!=null&&U.contains(j.relatedTarget)))&&D(),T=!1}function C(){T=!0}function L(j){if(!p.el)return;function U(X){j.preventDefault(),D(X)}O.value?j.key==="ArrowRight"?U(f.value?"prev":"next"):j.key==="ArrowLeft"&&U(f.value?"next":"prev"):j.key==="ArrowDown"?U("next"):j.key==="ArrowUp"&&U("prev"),j.key==="Home"?U("first"):j.key==="End"&&U("last")}function D(j){var X,te;if(!p.el)return;let U;if(!j)U=qI(p.el)[0];else if(j==="next"){if(U=(X=p.el.querySelector(":focus"))==null?void 0:X.nextElementSibling,!U)return D("first")}else if(j==="prev"){if(U=(te=p.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!U)return D("last")}else j==="first"?U=p.el.firstElementChild:j==="last"&&(U=p.el.lastElementChild);U&&U.focus({preventScroll:!0})}function k(j){const U=O.value&&f.value?-1:1,X=(j==="prev"?-U:U)*b.value;let te=c.value+X;if(O.value&&f.value&&w.el){const{scrollWidth:W,offsetWidth:K}=w.el;te+=W-K}A(te)}const I=jn(()=>({next:l.next,prev:l.prev,select:l.select,isSelected:l.isSelected})),z=jn(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!d.value;case!0:return n.value||Math.abs(c.value)>0;case"mobile":return d.value||n.value||Math.abs(c.value)>0;default:return!d.value&&(n.value||Math.abs(c.value)>0)}}),$=jn(()=>Math.abs(c.value)>1),Q=jn(()=>{if(!w.value)return!1;const j=hge(O.value,w.el),U=kRe(O.value,w.el);return j-U-Math.abs(c.value)>1});return Ca(()=>Zt(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!O.value,"v-slide-group--has-affixes":z.value,"v-slide-group--is-overflowing":n.value},P.value,t.class],style:t.style,tabindex:_.value||l.selected.value.length?-1:0,onFocus:E},{default:()=>{var j,U,X;return[z.value&&Zt("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!$.value}],onMousedown:C,onClick:()=>$.value&&k("prev")},[((j=o.prev)==null?void 0:j.call(o,I.value))??Zt(Jme,null,{default:()=>[Zt(Tl,{icon:f.value?t.nextIcon:t.prevIcon},null)]})]),Zt("div",{key:"container",ref:w,class:"v-slide-group__container",onScroll:x},[Zt("div",{ref:p,class:"v-slide-group__content",onFocusin:R,onFocusout:M,onKeydown:L},[(U=o.default)==null?void 0:U.call(o,I.value)])]),z.value&&Zt("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Q.value}],onMousedown:C,onClick:()=>Q.value&&k("next")},[((X=o.next)==null?void 0:X.call(o,I.value))??Zt(Jme,null,{default:()=>[Zt(Tl,{icon:f.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:l.selected,scrollTo:k,scrollOffset:c,focus:D}}}),R2e=Symbol.for("vuetify:v-chip-group"),CRe=ti({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:yS},...P2e(),...xs(),...mq({selectedClass:"v-chip--selected"}),...Tu(),...Ff(),...Tx({variant:"tonal"})},"VChipGroup");ta()({name:"VChipGroup",props:CRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{themeClasses:f}=Md(t),{isSelected:P,select:d,next:l,prev:n,selected:c}=gq(t,R2e);return ib({VChip:{color:Oi(t,"color"),disabled:Oi(t,"disabled"),filter:Oi(t,"filter"),variant:Oi(t,"variant")}}),Ca(()=>{const b=pge.filterProps(t);return Zt(pge,Di(b,{class:["v-chip-group",{"v-chip-group--column":t.column},f.value,t.class],style:t.style}),{default:()=>{var i;return[(i=o.default)==null?void 0:i.call(o,{isSelected:P,select:d,next:l,prev:n,selected:c.value})]}})}),{}}});const ARe=ti({activeClass:String,appendAvatar:String,appendIcon:Cl,closable:Boolean,closeIcon:{type:Cl,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Cl,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:rg(),onClickOnce:rg(),...k_(),...xs(),...Qv(),...jv(),...Jce(),...pm(),...Sq(),...RM(),...Tu({tag:"span"}),...Ff(),...Tx({variant:"tonal"})},"VChip"),AD=ta()({name:"VChip",directives:{Ripple:AT},props:ARe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{t:d}=Sx(),{borderClasses:l}=DO(t),{colorClasses:n,colorStyles:c,variantClasses:b}=CT(t),{densityClasses:i}=kx(t),{elevationClasses:O}=sb(t),{roundedClasses:w}=sg(t),{sizeClasses:y}=OD(t),{themeClasses:p}=Md(t),a=Al(t,"modelValue"),u=eue(t,R2e,!1),h=Oq(t,o),m=jn(()=>t.link!==!1&&h.isLink.value),v=jn(()=>!t.disabled&&t.link!==!1&&(!!u||t.link||h.isClickable.value)),_=jn(()=>({"aria-label":d(t.closeLabel),onClick(x){x.preventDefault(),x.stopPropagation(),a.value=!1,f("click:close",x)}}));function S(x){var R;f("click",x),v.value&&((R=h.navigate)==null||R.call(h,x),u==null||u.toggle())}function A(x){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),S(x))}return()=>{const x=h.isLink.value?"a":t.tag,R=!!(t.appendIcon||t.appendAvatar),M=!!(R||P.append),T=!!(P.close||t.closable),E=!!(P.filter||t.filter)&&u,C=!!(t.prependIcon||t.prependAvatar),L=!!(C||P.prepend),D=!u||u.isSelected.value;return a.value&&Tp(Zt(x,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":v.value,"v-chip--filter":E,"v-chip--pill":t.pill},p.value,l.value,D?n.value:void 0,i.value,O.value,w.value,y.value,b.value,u==null?void 0:u.selectedClass.value,t.class],style:[D?c.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:h.href.value,tabindex:v.value?0:void 0,onClick:S,onKeydown:v.value&&!m.value&&A},{default:()=>{var k;return[TT(v.value,"v-chip"),E&&Zt(e2e,{key:"filter"},{default:()=>[Tp(Zt("div",{class:"v-chip__filter"},[P.filter?Zt(du,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},P.filter):Zt(Tl,{key:"filter-icon",icon:t.filterIcon},null)]),[[pS,u.isSelected.value]])]}),L&&Zt("div",{key:"prepend",class:"v-chip__prepend"},[P.prepend?Zt(du,{key:"prepend-defaults",disabled:!C,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},P.prepend):Zt(ya,null,[t.prependIcon&&Zt(Tl,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&Zt(PO,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),Zt("div",{class:"v-chip__content","data-no-activator":""},[((k=P.default)==null?void 0:k.call(P,{isSelected:u==null?void 0:u.isSelected.value,selectedClass:u==null?void 0:u.selectedClass.value,select:u==null?void 0:u.select,toggle:u==null?void 0:u.toggle,value:u==null?void 0:u.value.value,disabled:t.disabled}))??t.text]),M&&Zt("div",{key:"append",class:"v-chip__append"},[P.append?Zt(du,{key:"append-defaults",disabled:!R,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},P.append):Zt(ya,null,[t.appendIcon&&Zt(Tl,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&Zt(PO,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),T&&Zt("button",Di({key:"close",class:"v-chip__close",type:"button"},_.value),[P.close?Zt(du,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},P.close):Zt(Tl,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[y_("ripple"),v.value&&t.ripple,null]])}}});const Nse=Symbol.for("vuetify:list");function L2e(){const t=vl(Nse,{hasPrepend:Ai(!1),updateHasPrepend:()=>null}),e={hasPrepend:Ai(!1),updateHasPrepend:o=>{o&&(e.hasPrepend.value=o)}};return gf(Nse,e),t}function I2e(){return vl(Nse,null)}const rue=t=>{const e={activate:o=>{let{id:f,value:P,activated:d}=o;return f=As(f),t&&!P&&d.size===1&&d.has(f)||(P?d.add(f):d.delete(f)),d},in:(o,f,P)=>{let d=new Set;if(o!=null)for(const l of fm(o))d=e.activate({id:l,value:!0,activated:new Set(d),children:f,parents:P});return d},out:o=>Array.from(o)};return e},D2e=t=>{const e=rue(t);return{activate:f=>{let{activated:P,id:d,...l}=f;d=As(d);const n=P.has(d)?new Set([d]):new Set;return e.activate({...l,id:d,activated:n})},in:(f,P,d)=>{let l=new Set;if(f!=null){const n=fm(f);n.length&&(l=e.in(n.slice(0,1),P,d))}return l},out:(f,P,d)=>e.out(f,P,d)}},MRe=t=>{const e=rue(t);return{activate:f=>{let{id:P,activated:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.activate({id:P,activated:d,children:l,...n})},in:e.in,out:e.out}},ERe=t=>{const e=D2e(t);return{activate:f=>{let{id:P,activated:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.activate({id:P,activated:d,children:l,...n})},in:e.in,out:e.out}},PRe={open:t=>{let{id:e,value:o,opened:f,parents:P}=t;if(o){const d=new Set;d.add(e);let l=P.get(e);for(;l!=null;)d.add(l),l=P.get(l);return d}else return f.delete(e),f},select:()=>null},B2e={open:t=>{let{id:e,value:o,opened:f,parents:P}=t;if(o){let d=P.get(e);for(f.add(e);d!=null&&d!==e;)f.add(d),d=P.get(d);return f}else f.delete(e);return f},select:()=>null},RRe={open:B2e.open,select:t=>{let{id:e,value:o,opened:f,parents:P}=t;if(!o)return f;const d=[];let l=P.get(e);for(;l!=null;)d.push(l),l=P.get(l);return new Set(d)}},oue=t=>{const e={select:o=>{let{id:f,value:P,selected:d}=o;if(f=As(f),t&&!P){const l=Array.from(d.entries()).reduce((n,c)=>{let[b,i]=c;return i==="on"&&n.push(b),n},[]);if(l.length===1&&l[0]===f)return d}return d.set(f,P?"on":"off"),d},in:(o,f,P)=>{let d=new Map;for(const l of o||[])d=e.select({id:l,value:!0,selected:new Map(d),children:f,parents:P});return d},out:o=>{const f=[];for(const[P,d]of o.entries())d==="on"&&f.push(P);return f}};return e},z2e=t=>{const e=oue(t);return{select:f=>{let{selected:P,id:d,...l}=f;d=As(d);const n=P.has(d)?new Map([[d,P.get(d)]]):new Map;return e.select({...l,id:d,selected:n})},in:(f,P,d)=>{let l=new Map;return f!=null&&f.length&&(l=e.in(f.slice(0,1),P,d)),l},out:(f,P,d)=>e.out(f,P,d)}},LRe=t=>{const e=oue(t);return{select:f=>{let{id:P,selected:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.select({id:P,selected:d,children:l,...n})},in:e.in,out:e.out}},IRe=t=>{const e=z2e(t);return{select:f=>{let{id:P,selected:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.select({id:P,selected:d,children:l,...n})},in:e.in,out:e.out}},DRe=t=>{const e={select:o=>{let{id:f,value:P,selected:d,children:l,parents:n}=o;f=As(f);const c=new Map(d),b=[f];for(;b.length;){const O=b.shift();d.set(O,P?"on":"off"),l.has(O)&&b.push(...l.get(O))}let i=n.get(f);for(;i;){const O=l.get(i),w=O.every(p=>d.get(p)==="on"),y=O.every(p=>!d.has(p)||d.get(p)==="off");d.set(i,w?"on":y?"off":"indeterminate"),i=n.get(i)}return t&&!P&&Array.from(d.entries()).reduce((w,y)=>{let[p,a]=y;return a==="on"&&w.push(p),w},[]).length===0?c:d},in:(o,f,P)=>{let d=new Map;for(const l of o||[])d=e.select({id:l,value:!0,selected:new Map(d),children:f,parents:P});return d},out:(o,f)=>{const P=[];for(const[d,l]of o.entries())l==="on"&&!f.has(d)&&P.push(d);return P}};return e},JI=Symbol.for("vuetify:nested"),F2e={id:Ai(),root:{register:()=>null,unregister:()=>null,parents:ei(new Map),children:ei(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ei(!1),selectable:ei(!1),opened:ei(new Set),activated:ei(new Set),selected:ei(new Map),selectedValues:ei([])}},BRe=ti({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),zRe=t=>{let e=!1;const o=ei(new Map),f=ei(new Map),P=Al(t,"opened",t.opened,y=>new Set(y),y=>[...y.values()]),d=jn(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return MRe(t.mandatory);case"single-leaf":return ERe(t.mandatory);case"independent":return rue(t.mandatory);case"single-independent":default:return D2e(t.mandatory)}}),l=jn(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return IRe(t.mandatory);case"leaf":return LRe(t.mandatory);case"independent":return oue(t.mandatory);case"single-independent":return z2e(t.mandatory);case"classic":default:return DRe(t.mandatory)}}),n=jn(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return RRe;case"single":return PRe;case"multiple":default:return B2e}}),c=Al(t,"activated",t.activated,y=>d.value.in(y,o.value,f.value),y=>d.value.out(y,o.value,f.value)),b=Al(t,"selected",t.selected,y=>l.value.in(y,o.value,f.value),y=>l.value.out(y,o.value,f.value));dm(()=>{e=!0});function i(y){const p=[];let a=y;for(;a!=null;)p.unshift(a),a=f.value.get(a);return p}const O=ph("nested"),w={id:Ai(),root:{opened:P,activatable:Oi(t,"activatable"),selectable:Oi(t,"selectable"),activated:c,selected:b,selectedValues:jn(()=>{const y=[];for(const[p,a]of b.value.entries())a==="on"&&y.push(p);return y}),register:(y,p,a)=>{p&&y!==p&&f.value.set(y,p),a&&o.value.set(y,[]),p!=null&&o.value.set(p,[...o.value.get(p)||[],y])},unregister:y=>{if(e)return;o.value.delete(y);const p=f.value.get(y);if(p){const a=o.value.get(p)??[];o.value.set(p,a.filter(u=>u!==y))}f.value.delete(y)},open:(y,p,a)=>{O.emit("click:open",{id:y,value:p,path:i(y),event:a});const u=n.value.open({id:y,value:p,opened:new Set(P.value),children:o.value,parents:f.value,event:a});u&&(P.value=u)},openOnSelect:(y,p,a)=>{const u=n.value.select({id:y,value:p,selected:new Map(b.value),opened:new Set(P.value),children:o.value,parents:f.value,event:a});u&&(P.value=u)},select:(y,p,a)=>{O.emit("click:select",{id:y,value:p,path:i(y),event:a});const u=l.value.select({id:y,value:p,selected:new Map(b.value),children:o.value,parents:f.value,event:a});u&&(b.value=u),w.root.openOnSelect(y,p,a)},activate:(y,p,a)=>{if(!t.activatable)return w.root.select(y,!0,a);O.emit("click:activate",{id:y,value:p,path:i(y),event:a});const u=d.value.activate({id:y,value:p,activated:new Set(c.value),children:o.value,parents:f.value,event:a});u&&(c.value=u)},children:o,parents:f}};return gf(JI,w),w.root},N2e=(t,e)=>{const o=vl(JI,F2e),f=Symbol(Vv()),P=jn(()=>t.value!==void 0?t.value:f),d={...o,id:P,open:(l,n)=>o.root.open(P.value,l,n),openOnSelect:(l,n)=>o.root.openOnSelect(P.value,l,n),isOpen:jn(()=>o.root.opened.value.has(P.value)),parent:jn(()=>o.root.parents.value.get(P.value)),activate:(l,n)=>o.root.activate(P.value,l,n),isActivated:jn(()=>o.root.activated.value.has(As(P.value))),select:(l,n)=>o.root.select(P.value,l,n),isSelected:jn(()=>o.root.selected.value.get(As(P.value))==="on"),isIndeterminate:jn(()=>o.root.selected.value.get(P.value)==="indeterminate"),isLeaf:jn(()=>!o.root.children.value.get(P.value)),isGroupActivator:o.isGroupActivator};return!o.isGroupActivator&&o.root.register(P.value,o.id.value,e),dm(()=>{!o.isGroupActivator&&o.root.unregister(P.value)}),e&&gf(JI,d),d},FRe=()=>{const t=vl(JI,F2e);gf(JI,{...t,isGroupActivator:!0})},NRe=PM({name:"VListGroupActivator",setup(t,e){let{slots:o}=e;return FRe(),()=>{var f;return(f=o.default)==null?void 0:f.call(o)}}}),$Re=ti({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Cl,default:"$collapse"},expandIcon:{type:Cl,default:"$expand"},prependIcon:Cl,appendIcon:Cl,fluid:Boolean,subgroup:Boolean,title:String,value:null,...xs(),...Tu()},"VListGroup"),mge=ta()({name:"VListGroup",props:$Re(),setup(t,e){let{slots:o}=e;const{isOpen:f,open:P,id:d}=N2e(Oi(t,"value"),!0),l=jn(()=>`v-list-group--id-${String(d.value)}`),n=I2e(),{isBooted:c}=pq();function b(y){y.stopPropagation(),P(!f.value,y)}const i=jn(()=>({onClick:b,class:"v-list-group__header",id:l.value})),O=jn(()=>f.value?t.collapseIcon:t.expandIcon),w=jn(()=>({VListItem:{active:f.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&O.value,appendIcon:t.appendIcon||!t.subgroup&&O.value,title:t.title,value:t.value}}));return Ca(()=>Zt(t.tag,{class:["v-list-group",{"v-list-group--prepend":n==null?void 0:n.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":f.value},t.class],style:t.style},{default:()=>[o.activator&&Zt(du,{defaults:w.value},{default:()=>[Zt(NRe,null,{default:()=>[o.activator({props:i.value,isOpen:f.value})]})]}),Zt(X4,{transition:{component:Xce},disabled:!c.value},{default:()=>{var y;return[Tp(Zt("div",{class:"v-list-group__items",role:"group","aria-labelledby":l.value},[(y=o.default)==null?void 0:y.call(o)]),[[pS,f.value]])]}})]})),{isOpen:f}}});const VRe=ti({opacity:[Number,String],...xs(),...Tu()},"VListItemSubtitle"),URe=ta()({name:"VListItemSubtitle",props:VRe(),setup(t,e){let{slots:o}=e;return Ca(()=>Zt(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},o)),{}}}),qy=hq("v-list-item-title"),jRe=ti({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Cl,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Cl,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:rg(),onClickOnce:rg(),...k_(),...xs(),...Qv(),...O_(),...jv(),...pm(),...Sq(),...Tu(),...Ff(),...Tx({variant:"text"})},"VListItem"),Bf=ta()({name:"VListItem",directives:{Ripple:AT},props:jRe(),emits:{click:t=>!0},setup(t,e){let{attrs:o,slots:f,emit:P}=e;const d=Oq(t,o),l=jn(()=>t.value===void 0?d.href.value:t.value),{activate:n,isActivated:c,select:b,isSelected:i,isIndeterminate:O,isGroupActivator:w,root:y,parent:p,openOnSelect:a}=N2e(l,!1),u=I2e(),h=jn(()=>{var j;return t.active!==!1&&(t.active||((j=d.isActive)==null?void 0:j.value)||(y.activatable.value?c.value:i.value))}),m=jn(()=>t.link!==!1&&d.isLink.value),v=jn(()=>!t.disabled&&t.link!==!1&&(t.link||d.isClickable.value||!!u&&(y.selectable.value||y.activatable.value||t.value!=null))),_=jn(()=>t.rounded||t.nav),S=jn(()=>t.color??t.activeColor),A=jn(()=>({color:h.value?S.value??t.baseColor:t.baseColor,variant:t.variant}));Ni(()=>{var j;return(j=d.isActive)==null?void 0:j.value},j=>{j&&p.value!=null&&y.open(p.value,!0),j&&a(j)},{immediate:!0});const{themeClasses:x}=Md(t),{borderClasses:R}=DO(t),{colorClasses:M,colorStyles:T,variantClasses:E}=CT(A),{densityClasses:C}=kx(t),{dimensionStyles:L}=S_(t),{elevationClasses:D}=sb(t),{roundedClasses:k}=sg(_),I=jn(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),z=jn(()=>({isActive:h.value,select:b,isSelected:i.value,isIndeterminate:O.value}));function $(j){var U;P("click",j),v.value&&((U=d.navigate)==null||U.call(d,j),!w&&(y.activatable.value?n(!c.value,j):(y.selectable.value||t.value!=null)&&b(!i.value,j)))}function Q(j){(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),$(j))}return Ca(()=>{const j=m.value?"a":t.tag,U=f.title||t.title!=null,X=f.subtitle||t.subtitle!=null,te=!!(t.appendAvatar||t.appendIcon),W=!!(te||f.append),K=!!(t.prependAvatar||t.prependIcon),oe=!!(K||f.prepend);return u==null||u.updateHasPrepend(oe),t.activeColor&&FPe("active-color",["color","base-color"]),Tp(Zt(j,{class:["v-list-item",{"v-list-item--active":h.value,"v-list-item--disabled":t.disabled,"v-list-item--link":v.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!oe&&(u==null?void 0:u.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&h.value},x.value,R.value,M.value,C.value,D.value,I.value,k.value,E.value,t.class],style:[T.value,L.value,t.style],href:d.href.value,tabindex:v.value?u?-2:0:void 0,onClick:$,onKeydown:v.value&&!m.value&&Q},{default:()=>{var q;return[TT(v.value||h.value,"v-list-item"),oe&&Zt("div",{key:"prepend",class:"v-list-item__prepend"},[f.prepend?Zt(du,{key:"prepend-defaults",disabled:!K,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var Y;return[(Y=f.prepend)==null?void 0:Y.call(f,z.value)]}}):Zt(ya,null,[t.prependAvatar&&Zt(PO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&Zt(Tl,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),Zt("div",{class:"v-list-item__spacer"},null)]),Zt("div",{class:"v-list-item__content","data-no-activator":""},[U&&Zt(qy,{key:"title"},{default:()=>{var Y;return[((Y=f.title)==null?void 0:Y.call(f,{title:t.title}))??t.title]}}),X&&Zt(URe,{key:"subtitle"},{default:()=>{var Y;return[((Y=f.subtitle)==null?void 0:Y.call(f,{subtitle:t.subtitle}))??t.subtitle]}}),(q=f.default)==null?void 0:q.call(f,z.value)]),W&&Zt("div",{key:"append",class:"v-list-item__append"},[f.append?Zt(du,{key:"append-defaults",disabled:!te,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var Y;return[(Y=f.append)==null?void 0:Y.call(f,z.value)]}}):Zt(ya,null,[t.appendIcon&&Zt(Tl,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&Zt(PO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),Zt("div",{class:"v-list-item__spacer"},null)])]}}),[[y_("ripple"),v.value&&t.ripple]])}),{activate:n,isActivated:c,isGroupActivator:w,isSelected:i,list:u,select:b}}}),QRe=ti({color:String,inset:Boolean,sticky:Boolean,title:String,...xs(),...Tu()},"VListSubheader"),HRe=ta()({name:"VListSubheader",props:QRe(),setup(t,e){let{slots:o}=e;const{textColorClasses:f,textColorStyles:P}=$v(Oi(t,"color"));return Ca(()=>{const d=!!(o.default||t.title);return Zt(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},f.value,t.class],style:[{textColorStyles:P},t.style]},{default:()=>{var l;return[d&&Zt("div",{class:"v-list-subheader__text"},[((l=o.default)==null?void 0:l.call(o))??t.title])]}})}),{}}});const ZRe=ti({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...xs(),...Ff()},"VDivider"),yM=ta()({name:"VDivider",props:ZRe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:P}=Md(t),{textColorClasses:d,textColorStyles:l}=$v(Oi(t,"color")),n=jn(()=>{const c={};return t.length&&(c[t.vertical?"height":"width"]=Ma(t.length)),t.thickness&&(c[t.vertical?"borderRightWidth":"borderTopWidth"]=Ma(t.thickness)),c});return Ca(()=>{const c=Zt("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},P.value,d.value,t.class],style:[n.value,l.value,{"--v-border-opacity":t.opacity},t.style],"aria-orientation":!o.role||o.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${o.role||"separator"}`},null);return f.default?Zt("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[c,Zt("div",{class:"v-divider__content"},[f.default()]),c]):c}),{}}}),qRe=ti({items:Array,returnObject:Boolean},"VListChildren"),$2e=ta()({name:"VListChildren",props:qRe(),setup(t,e){let{slots:o}=e;return L2e(),()=>{var f,P;return((f=o.default)==null?void 0:f.call(o))??((P=t.items)==null?void 0:P.map(d=>{var w,y;let{children:l,props:n,type:c,raw:b}=d;if(c==="divider")return((w=o.divider)==null?void 0:w.call(o,{props:n}))??Zt(yM,n,null);if(c==="subheader")return((y=o.subheader)==null?void 0:y.call(o,{props:n}))??Zt(HRe,n,null);const i={subtitle:o.subtitle?p=>{var a;return(a=o.subtitle)==null?void 0:a.call(o,{...p,item:b})}:void 0,prepend:o.prepend?p=>{var a;return(a=o.prepend)==null?void 0:a.call(o,{...p,item:b})}:void 0,append:o.append?p=>{var a;return(a=o.append)==null?void 0:a.call(o,{...p,item:b})}:void 0,title:o.title?p=>{var a;return(a=o.title)==null?void 0:a.call(o,{...p,item:b})}:void 0},O=mge.filterProps(n);return l?Zt(mge,Di({value:n==null?void 0:n.value},O),{activator:p=>{let{props:a}=p;const u={...n,...a,value:t.returnObject?b:n.value};return o.header?o.header({props:u}):Zt(Bf,u,i)},default:()=>Zt($2e,{items:l,returnObject:t.returnObject},o)}):o.item?o.item({props:n}):Zt(Bf,Di(n,{value:t.returnObject?b:n.value}),i)}))}}}),V2e=ti({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:yS}},"list-items");function Z4(t,e){const o=y1(e,t.itemTitle,e),f=y1(e,t.itemValue,o),P=y1(e,t.itemChildren),d=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?__(e,["children"]):e:void 0:y1(e,t.itemProps),l={title:o,value:f,...d};return{title:String(l.title??""),value:l.value,props:l,children:Array.isArray(P)?U2e(t,P):void 0,raw:e}}function U2e(t,e){const o=[];for(const f of e)o.push(Z4(t,f));return o}function iue(t){const e=jn(()=>U2e(t,t.items)),o=jn(()=>e.value.some(d=>d.value===null));function f(d){return o.value||(d=d.filter(l=>l!==null)),d.map(l=>t.returnObject&&typeof l=="string"?Z4(t,l):e.value.find(n=>t.valueComparator(l,n.value))||Z4(t,l))}function P(d){return t.returnObject?d.map(l=>{let{raw:n}=l;return n}):d.map(l=>{let{value:n}=l;return n})}return{items:e,transformIn:f,transformOut:P}}function WRe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function YRe(t,e){const o=y1(e,t.itemType,"item"),f=WRe(e)?e:y1(e,t.itemTitle),P=y1(e,t.itemValue,void 0),d=y1(e,t.itemChildren),l=t.itemProps===!0?__(e,["children"]):y1(e,t.itemProps),n={title:f,value:P,...l};return{type:o,title:n.title,value:n.value,props:n,children:o==="item"&&d?j2e(t,d):void 0,raw:e}}function j2e(t,e){const o=[];for(const f of e)o.push(YRe(t,f));return o}function XRe(t){return{items:jn(()=>j2e(t,t.items))}}const GRe=ti({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":rg(),"onClick:select":rg(),"onUpdate:opened":rg(),...BRe({selectStrategy:"single-leaf",openStrategy:"list"}),...k_(),...xs(),...Qv(),...O_(),...jv(),itemType:{type:String,default:"type"},...V2e(),...pm(),...Tu(),...Ff(),...Tx({variant:"text"})},"VList"),m_=ta()({name:"VList",props:GRe(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:o}=e;const{items:f}=XRe(t),{themeClasses:P}=Md(t),{backgroundColorClasses:d,backgroundColorStyles:l}=og(Oi(t,"bgColor")),{borderClasses:n}=DO(t),{densityClasses:c}=kx(t),{dimensionStyles:b}=S_(t),{elevationClasses:i}=sb(t),{roundedClasses:O}=sg(t),{children:w,open:y,parents:p,select:a}=zRe(t),u=jn(()=>t.lines?`v-list--${t.lines}-line`:void 0),h=Oi(t,"activeColor"),m=Oi(t,"baseColor"),v=Oi(t,"color");L2e(),ib({VListGroup:{activeColor:h,baseColor:m,color:v,expandIcon:Oi(t,"expandIcon"),collapseIcon:Oi(t,"collapseIcon")},VListItem:{activeClass:Oi(t,"activeClass"),activeColor:h,baseColor:m,color:v,density:Oi(t,"density"),disabled:Oi(t,"disabled"),lines:Oi(t,"lines"),nav:Oi(t,"nav"),slim:Oi(t,"slim"),variant:Oi(t,"variant")}});const _=Ai(!1),S=ei();function A(C){_.value=!0}function x(C){_.value=!1}function R(C){var L;!_.value&&!(C.relatedTarget&&((L=S.value)!=null&&L.contains(C.relatedTarget)))&&E()}function M(C){const L=C.target;if(!(!S.value||["INPUT","TEXTAREA"].includes(L.tagName))){if(C.key==="ArrowDown")E("next");else if(C.key==="ArrowUp")E("prev");else if(C.key==="Home")E("first");else if(C.key==="End")E("last");else return;C.preventDefault()}}function T(C){_.value=!0}function E(C){if(S.value)return cZ(S.value,C)}return Ca(()=>Zt(t.tag,{ref:S,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},P.value,d.value,n.value,c.value,i.value,u.value,O.value,t.class],style:[l.value,b.value,t.style],tabindex:t.disabled||_.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:A,onFocusout:x,onFocus:R,onKeydown:M,onMousedown:T},{default:()=>[Zt($2e,{items:f.value,returnObject:t.returnObject},o)]})),{open:y,select:a,focus:E,children:w,parents:p}}});function jie(t,e){return{x:t.x+e.x,y:t.y+e.y}}function KRe(t,e){return{x:t.x-e.x,y:t.y-e.y}}function gge(t,e){if(t.side==="top"||t.side==="bottom"){const{side:o,align:f}=t,P=f==="left"?0:f==="center"?e.width/2:f==="right"?e.width:f,d=o==="top"?0:o==="bottom"?e.height:o;return jie({x:P,y:d},e)}else if(t.side==="left"||t.side==="right"){const{side:o,align:f}=t,P=o==="left"?0:o==="right"?e.width:o,d=f==="top"?0:f==="center"?e.height/2:f==="bottom"?e.height:f;return jie({x:P,y:d},e)}return jie({x:e.width/2,y:e.height/2},e)}const Q2e={static:tLe,connected:rLe},JRe=ti({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in Q2e},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function eLe(t,e){const o=ei({}),f=ei();ou&&x1(()=>!!(e.isActive.value&&t.locationStrategy),d=>{var l,n;Ni(()=>t.locationStrategy,d),ig(()=>{window.removeEventListener("resize",P),f.value=void 0}),window.addEventListener("resize",P,{passive:!0}),typeof t.locationStrategy=="function"?f.value=(l=t.locationStrategy(e,t,o))==null?void 0:l.updateLocation:f.value=(n=Q2e[t.locationStrategy](e,t,o))==null?void 0:n.updateLocation});function P(d){var l;(l=f.value)==null||l.call(f,d)}return{contentStyles:o,updateLocation:f}}function tLe(){}function nLe(t,e){e?t.style.removeProperty("left"):t.style.removeProperty("right");const o=jce(t);return e?o.x+=parseFloat(t.style.right||0):o.x-=parseFloat(t.style.left||0),o.y-=parseFloat(t.style.top||0),o}function rLe(t,e,o){(Array.isArray(t.target.value)||s9e(t.target.value))&&Object.assign(o.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:P,preferredOrigin:d}=Uce(()=>{const p=Rse(e.location,t.isRtl.value),a=e.origin==="overlap"?p:e.origin==="auto"?Fie(p):Rse(e.origin,t.isRtl.value);return p.side===a.side&&p.align===Nie(a).align?{preferredAnchor:Rme(p),preferredOrigin:Rme(a)}:{preferredAnchor:p,preferredOrigin:a}}),[l,n,c,b]=["minWidth","minHeight","maxWidth","maxHeight"].map(p=>jn(()=>{const a=parseFloat(e[p]);return isNaN(a)?1/0:a})),i=jn(()=>{if(Array.isArray(e.offset))return e.offset;if(typeof e.offset=="string"){const p=e.offset.split(" ").map(parseFloat);return p.length<2&&p.push(0),p}return typeof e.offset=="number"?[e.offset,0]:[0,0]});let O=!1;const w=new ResizeObserver(()=>{O&&y()});Ni([t.target,t.contentEl],(p,a)=>{let[u,h]=p,[m,v]=a;m&&!Array.isArray(m)&&w.unobserve(m),u&&!Array.isArray(u)&&w.observe(u),v&&w.unobserve(v),h&&w.observe(h)},{immediate:!0}),ig(()=>{w.disconnect()});function y(){if(O=!1,requestAnimationFrame(()=>O=!0),!t.target.value||!t.contentEl.value)return;const p=Bxe(t.target.value),a=nLe(t.contentEl.value,t.isRtl.value),u=dZ(t.contentEl.value),h=12;u.length||(u.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(a.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),a.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const m=u.reduce((E,C)=>{const L=C.getBoundingClientRect(),D=new dT({x:C===document.documentElement?0:L.x,y:C===document.documentElement?0:L.y,width:C.clientWidth,height:C.clientHeight});return E?new dT({x:Math.max(E.left,D.left),y:Math.max(E.top,D.top),width:Math.min(E.right,D.right)-Math.max(E.left,D.left),height:Math.min(E.bottom,D.bottom)-Math.max(E.top,D.top)}):D},void 0);m.x+=h,m.y+=h,m.width-=h*2,m.height-=h*2;let v={anchor:P.value,origin:d.value};function _(E){const C=new dT(a),L=gge(E.anchor,p),D=gge(E.origin,C);let{x:k,y:I}=KRe(L,D);switch(E.anchor.side){case"top":I-=i.value[0];break;case"bottom":I+=i.value[0];break;case"left":k-=i.value[0];break;case"right":k+=i.value[0];break}switch(E.anchor.align){case"top":I-=i.value[1];break;case"bottom":I+=i.value[1];break;case"left":k-=i.value[1];break;case"right":k+=i.value[1];break}return C.x+=k,C.y+=I,C.width=Math.min(C.width,c.value),C.height=Math.min(C.height,b.value),{overflows:Ime(C,m),x:k,y:I}}let S=0,A=0;const x={x:0,y:0},R={x:!1,y:!1};let M=-1;for(;!(M++>10);){const{x:E,y:C,overflows:L}=_(v);S+=E,A+=C,a.x+=E,a.y+=C;{const D=Lme(v.anchor),k=L.x.before||L.x.after,I=L.y.before||L.y.after;let z=!1;if(["x","y"].forEach($=>{if($==="x"&&k&&!R.x||$==="y"&&I&&!R.y){const Q={anchor:{...v.anchor},origin:{...v.origin}},j=$==="x"?D==="y"?Nie:Fie:D==="y"?Fie:Nie;Q.anchor=j(Q.anchor),Q.origin=j(Q.origin);const{overflows:U}=_(Q);(U[$].before<=L[$].before&&U[$].after<=L[$].after||U[$].before+U[$].after<(L[$].before+L[$].after)/2)&&(v=Q,z=R[$]=!0)}}),z)continue}L.x.before&&(S+=L.x.before,a.x+=L.x.before),L.x.after&&(S-=L.x.after,a.x-=L.x.after),L.y.before&&(A+=L.y.before,a.y+=L.y.before),L.y.after&&(A-=L.y.after,a.y-=L.y.after);{const D=Ime(a,m);x.x=m.width-D.x.before-D.x.after,x.y=m.height-D.y.before-D.y.after,S+=D.x.before,a.x+=D.x.before,A+=D.y.before,a.y+=D.y.before}break}const T=Lme(v.anchor);return Object.assign(o.value,{"--v-overlay-anchor-origin":`${v.anchor.side} ${v.anchor.align}`,transformOrigin:`${v.origin.side} ${v.origin.align}`,top:Ma(Qie(A)),left:t.isRtl.value?void 0:Ma(Qie(S)),right:t.isRtl.value?Ma(Qie(-S)):void 0,minWidth:Ma(T==="y"?Math.min(l.value,p.width):l.value),maxWidth:Ma(vge(Qg(x.x,l.value===1/0?0:l.value,c.value))),maxHeight:Ma(vge(Qg(x.y,n.value===1/0?0:n.value,b.value)))}),{available:x,contentBox:a}}return Ni(()=>[P.value,d.value,e.offset,e.minWidth,e.minHeight,e.maxWidth,e.maxHeight],()=>y()),lc(()=>{const p=y();if(!p)return;const{available:a,contentBox:u}=p;u.height>a.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function Qie(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function vge(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let $se=!0;const vZ=[];function oLe(t){!$se||vZ.length?(vZ.push(t),Vse()):($se=!1,t(),Vse())}let yge=-1;function Vse(){cancelAnimationFrame(yge),yge=requestAnimationFrame(()=>{const t=vZ.shift();t&&t(),vZ.length?Vse():$se=!0})}const kH={none:null,close:sLe,block:lLe,reposition:cLe},iLe=ti({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in kH}},"VOverlay-scroll-strategies");function aLe(t,e){if(!ou)return;let o;kp(async()=>{o==null||o.stop(),e.isActive.value&&t.scrollStrategy&&(o=cD(),await new Promise(f=>setTimeout(f)),o.active&&o.run(()=>{var f;typeof t.scrollStrategy=="function"?t.scrollStrategy(e,t,o):(f=kH[t.scrollStrategy])==null||f.call(kH,e,t,o)}))}),ig(()=>{o==null||o.stop()})}function sLe(t){function e(o){t.isActive.value=!1}H2e(t.targetEl.value??t.contentEl.value,e)}function lLe(t,e){var l;const o=(l=t.root.value)==null?void 0:l.offsetParent,f=[...new Set([...dZ(t.targetEl.value,e.contained?o:void 0),...dZ(t.contentEl.value,e.contained?o:void 0)])].filter(n=>!n.classList.contains("v-overlay-scroll-blocked")),P=window.innerWidth-document.documentElement.offsetWidth,d=(n=>Zce(n)&&n)(o||document.documentElement);d&&t.root.value.classList.add("v-overlay--scroll-blocked"),f.forEach((n,c)=>{n.style.setProperty("--v-body-scroll-x",Ma(-n.scrollLeft)),n.style.setProperty("--v-body-scroll-y",Ma(-n.scrollTop)),n!==document.documentElement&&n.style.setProperty("--v-scrollbar-offset",Ma(P)),n.classList.add("v-overlay-scroll-blocked")}),ig(()=>{f.forEach((n,c)=>{const b=parseFloat(n.style.getPropertyValue("--v-body-scroll-x")),i=parseFloat(n.style.getPropertyValue("--v-body-scroll-y")),O=n.style.scrollBehavior;n.style.scrollBehavior="auto",n.style.removeProperty("--v-body-scroll-x"),n.style.removeProperty("--v-body-scroll-y"),n.style.removeProperty("--v-scrollbar-offset"),n.classList.remove("v-overlay-scroll-blocked"),n.scrollLeft=-b,n.scrollTop=-i,n.style.scrollBehavior=O}),d&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function cLe(t,e,o){let f=!1,P=-1,d=-1;function l(n){oLe(()=>{var i,O;const c=performance.now();(O=(i=t.updateLocation).value)==null||O.call(i,n),f=(performance.now()-c)/(1e3/60)>2})}d=(typeof requestIdleCallback>"u"?n=>n():requestIdleCallback)(()=>{o.run(()=>{H2e(t.targetEl.value??t.contentEl.value,n=>{f?(cancelAnimationFrame(P),P=requestAnimationFrame(()=>{P=requestAnimationFrame(()=>{l(n)})})):l(n)})})}),ig(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(d),cancelAnimationFrame(P)})}function H2e(t,e){const o=[document,...dZ(t)];o.forEach(f=>{f.addEventListener("scroll",e,{passive:!0})}),ig(()=>{o.forEach(f=>{f.removeEventListener("scroll",e)})})}const Use=Symbol.for("vuetify:v-menu"),Z2e=ti({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function q2e(t,e){let o=()=>{};function f(l){o==null||o();const n=Number(l?t.openDelay:t.closeDelay);return new Promise(c=>{o=TPe(n,()=>{e==null||e(l),c(l)})})}function P(){return f(!0)}function d(){return f(!1)}return{clearDelay:o,runOpenDelay:P,runCloseDelay:d}}const uLe=ti({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...Z2e()},"VOverlay-activator");function fLe(t,e){let{isActive:o,isTop:f}=e;const P=ph("useActivator"),d=ei();let l=!1,n=!1,c=!0;const b=jn(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),i=jn(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!b.value),{runOpenDelay:O,runCloseDelay:w}=q2e(t,x=>{x===(t.openOnHover&&l||b.value&&n)&&!(t.openOnHover&&o.value&&!f.value)&&(o.value!==x&&(c=!0),o.value=x)}),y=ei(),p={onClick:x=>{x.stopPropagation(),d.value=x.currentTarget||x.target,o.value||(y.value=[x.clientX,x.clientY]),o.value=!o.value},onMouseenter:x=>{var R;(R=x.sourceCapabilities)!=null&&R.firesTouchEvents||(l=!0,d.value=x.currentTarget||x.target,O())},onMouseleave:x=>{l=!1,w()},onFocus:x=>{gM(x.target,":focus-visible")!==!1&&(n=!0,x.stopPropagation(),d.value=x.currentTarget||x.target,O())},onBlur:x=>{n=!1,x.stopPropagation(),w()}},a=jn(()=>{const x={};return i.value&&(x.onClick=p.onClick),t.openOnHover&&(x.onMouseenter=p.onMouseenter,x.onMouseleave=p.onMouseleave),b.value&&(x.onFocus=p.onFocus,x.onBlur=p.onBlur),x}),u=jn(()=>{const x={};if(t.openOnHover&&(x.onMouseenter=()=>{l=!0,O()},x.onMouseleave=()=>{l=!1,w()}),b.value&&(x.onFocusin=()=>{n=!0,O()},x.onFocusout=()=>{n=!1,w()}),t.closeOnContentClick){const R=vl(Use,null);x.onClick=()=>{o.value=!1,R==null||R.closeParents()}}return x}),h=jn(()=>{const x={};return t.openOnHover&&(x.onMouseenter=()=>{c&&(l=!0,c=!1,O())},x.onMouseleave=()=>{l=!1,w()}),x});Ni(f,x=>{x&&(t.openOnHover&&!l&&(!b.value||!n)||b.value&&!n&&(!t.openOnHover||!l))&&(o.value=!1)}),Ni(o,x=>{x||setTimeout(()=>{y.value=void 0})},{flush:"post"});const m=Pse();kp(()=>{m.value&&lc(()=>{d.value=m.el})});const v=Pse(),_=jn(()=>t.target==="cursor"&&y.value?y.value:v.value?v.el:W2e(t.target,P)||d.value),S=jn(()=>Array.isArray(_.value)?void 0:_.value);let A;return Ni(()=>!!t.activator,x=>{x&&ou?(A=cD(),A.run(()=>{dLe(t,P,{activatorEl:d,activatorEvents:a})})):A&&A.stop()},{flush:"post",immediate:!0}),ig(()=>{A==null||A.stop()}),{activatorEl:d,activatorRef:m,target:_,targetEl:S,targetRef:v,activatorEvents:a,contentEvents:u,scrimEvents:h}}function dLe(t,e,o){let{activatorEl:f,activatorEvents:P}=o;Ni(()=>t.activator,(c,b)=>{if(b&&c!==b){const i=n(b);i&&l(i)}c&&lc(()=>d())},{immediate:!0}),Ni(()=>t.activatorProps,()=>{d()}),ig(()=>{l()});function d(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;c&&MPe(c,Di(P.value,b))}function l(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;c&&EPe(c,Di(P.value,b))}function n(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator;const b=W2e(c,e);return f.value=(b==null?void 0:b.nodeType)===Node.ELEMENT_NODE?b:void 0,f.value}}function W2e(t,e){var f,P;if(!t)return;let o;if(t==="parent"){let d=(P=(f=e==null?void 0:e.proxy)==null?void 0:f.$el)==null?void 0:P.parentNode;for(;d!=null&&d.hasAttribute("data-no-activator");)d=d.parentNode;o=d}else typeof t=="string"?o=document.querySelector(t):"$el"in t?o=t.$el:o=t;return o}function hLe(){if(!ou)return Ai(!1);const{ssr:t}=bS();if(t){const e=Ai(!1);return ag(()=>{e.value=!0}),e}else return Ai(!0)}const Y2e=ti({eager:Boolean},"lazy");function X2e(t,e){const o=Ai(!1),f=jn(()=>o.value||t.eager||e.value);Ni(e,()=>o.value=!0);function P(){t.eager||(o.value=!1)}return{isBooted:o,hasContent:f,onAfterLeave:P}}function BM(){const e=ph("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const bge=Symbol.for("vuetify:stack"),NL=lm([]);function pLe(t,e,o){const f=ph("useStack"),P=!o,d=vl(bge,void 0),l=lm({activeChildren:new Set});gf(bge,l);const n=Ai(+e.value);x1(t,()=>{var O;const i=(O=NL.at(-1))==null?void 0:O[1];n.value=i?i+10:+e.value,P&&NL.push([f.uid,n.value]),d==null||d.activeChildren.add(f.uid),ig(()=>{if(P){const w=As(NL).findIndex(y=>y[0]===f.uid);NL.splice(w,1)}d==null||d.activeChildren.delete(f.uid)})});const c=Ai(!0);P&&kp(()=>{var O;const i=((O=NL.at(-1))==null?void 0:O[0])===f.uid;setTimeout(()=>c.value=i)});const b=jn(()=>!l.activeChildren.size);return{globalTop:TM(c),localTop:b,stackStyles:jn(()=>({zIndex:n.value}))}}function mLe(t){return{teleportTarget:jn(()=>{const o=t();if(o===!0||!ou)return;const f=o===!1?document.body:typeof o=="string"?document.querySelector(o):o;if(f==null)return;let P=f.querySelector(":scope > .v-overlay-container");return P||(P=document.createElement("div"),P.className="v-overlay-container",f.appendChild(P)),P})}}function gLe(){return!0}function G2e(t,e,o){if(!t||K2e(t,o)===!1)return!1;const f=jxe(e);if(typeof ShadowRoot<"u"&&f instanceof ShadowRoot&&f.host===t.target)return!1;const P=(typeof o.value=="object"&&o.value.include||(()=>[]))();return P.push(e),!P.some(d=>d==null?void 0:d.contains(t.target))}function K2e(t,e){return(typeof e.value=="object"&&e.value.closeConditional||gLe)(t)}function vLe(t,e,o){const f=typeof o.value=="function"?o.value:o.value.handler;e._clickOutside.lastMousedownWasOutside&&G2e(t,e,o)&&setTimeout(()=>{K2e(t,o)&&f&&f(t)},0)}function xge(t,e){const o=jxe(t);e(document),typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&e(o)}const yLe={mounted(t,e){const o=P=>vLe(P,t,e),f=P=>{t._clickOutside.lastMousedownWasOutside=G2e(P,t,e)};xge(t,P=>{P.addEventListener("click",o,!0),P.addEventListener("mousedown",f,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:o,onMousedown:f}},unmounted(t,e){t._clickOutside&&(xge(t,o=>{var d;if(!o||!((d=t._clickOutside)!=null&&d[e.instance.$.uid]))return;const{onClick:f,onMousedown:P}=t._clickOutside[e.instance.$.uid];o.removeEventListener("click",f,!0),o.removeEventListener("mousedown",P,!0)}),delete t._clickOutside[e.instance.$.uid])}};function bLe(t){const{modelValue:e,color:o,...f}=t;return Zt(h_,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&&Zt("div",Di({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},f),null)]})}const MD=ti({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...uLe(),...xs(),...O_(),...Y2e(),...JRe(),...iLe(),...Ff(),...ST()},"VOverlay"),dS=ta()({name:"VOverlay",directives:{ClickOutside:yLe},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...MD()},emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,e){let{slots:o,attrs:f,emit:P}=e;const d=Al(t,"modelValue"),l=jn({get:()=>d.value,set:K=>{K&&t.disabled||(d.value=K)}}),{themeClasses:n}=Md(t),{rtlClasses:c,isRtl:b}=qg(),{hasContent:i,onAfterLeave:O}=X2e(t,l),w=og(jn(()=>typeof t.scrim=="string"?t.scrim:null)),{globalTop:y,localTop:p,stackStyles:a}=pLe(l,Oi(t,"zIndex"),t._disableGlobalStack),{activatorEl:u,activatorRef:h,target:m,targetEl:v,targetRef:_,activatorEvents:S,contentEvents:A,scrimEvents:x}=fLe(t,{isActive:l,isTop:p}),{teleportTarget:R}=mLe(()=>{var q;const K=t.attach||t.contained;if(K)return K;const oe=(q=u==null?void 0:u.value)==null?void 0:q.getRootNode();return oe instanceof ShadowRoot?oe:!1}),{dimensionStyles:M}=S_(t),T=hLe(),{scopeId:E}=BM();Ni(()=>t.disabled,K=>{K&&(l.value=!1)});const C=ei(),L=ei(),D=ei(),{contentStyles:k,updateLocation:I}=eLe(t,{isRtl:b,contentEl:D,target:m,isActive:l});aLe(t,{root:C,contentEl:D,targetEl:v,isActive:l,updateLocation:I});function z(K){P("click:outside",K),t.persistent?X():l.value=!1}function $(K){return l.value&&y.value&&(!t.scrim||K.target===L.value)}ou&&Ni(l,K=>{K?window.addEventListener("keydown",Q):window.removeEventListener("keydown",Q)},{immediate:!0}),dm(()=>{ou&&window.removeEventListener("keydown",Q)});function Q(K){var oe,q;K.key==="Escape"&&y.value&&(t.persistent?X():(l.value=!1,(oe=D.value)!=null&&oe.contains(document.activeElement)&&((q=u.value)==null||q.focus())))}const j=p2e();x1(()=>t.closeOnBack,()=>{Y9e(j,K=>{y.value&&l.value?(K(!1),t.persistent?X():l.value=!1):K()})});const U=ei();Ni(()=>l.value&&(t.absolute||t.contained)&&R.value==null,K=>{if(K){const oe=Qxe(C.value);oe&&oe!==document.scrollingElement&&(U.value=oe.scrollTop)}});function X(){t.noClickAnimation||D.value&&QA(D.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:fZ})}function te(){P("afterEnter")}function W(){O(),P("afterLeave")}return Ca(()=>{var K;return Zt(ya,null,[(K=o.activator)==null?void 0:K.call(o,{isActive:l.value,targetRef:_,props:Di({ref:h},S.value,t.activatorProps)}),T.value&&i.value&&Zt(qSe,{disabled:!R.value,to:R.value},{default:()=>[Zt("div",Di({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":l.value,"v-overlay--contained":t.contained},n.value,c.value,t.class],style:[a.value,{"--v-overlay-opacity":t.opacity,top:Ma(U.value)},t.style],ref:C},E,f),[Zt(bLe,Di({color:w,modelValue:l.value&&!!t.scrim,ref:L},x.value),null),Zt(X4,{appear:!0,persisted:!0,transition:t.transition,target:m.value,onAfterEnter:te,onAfterLeave:W},{default:()=>{var oe;return[Tp(Zt("div",Di({ref:D,class:["v-overlay__content",t.contentClass],style:[M.value,k.value]},A.value,t.contentProps),[(oe=o.default)==null?void 0:oe.call(o,{isActive:l})]),[[pS,l.value],[y_("click-outside"),{handler:z,closeConditional:$,include:()=>[u.value]}]])]}})])]})])}),{activatorEl:u,scrimEl:L,target:m,animateClick:X,contentEl:D,globalTop:y,localTop:p,updateLocation:I}}}),Hie=Symbol("Forwarded refs");function Zie(t,e){let o=t;for(;o;){const f=Reflect.getOwnPropertyDescriptor(o,e);if(f)return f;o=Object.getPrototypeOf(o)}}function T_(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f!0},setup(t,e){let{slots:o}=e;const f=Al(t,"modelValue"),{scopeId:P}=BM(),d=Vv(),l=jn(()=>t.id||`v-menu-${d}`),n=ei(),c=vl(Use,null),b=Ai(0);gf(Use,{register(){++b.value},unregister(){--b.value},closeParents(a){setTimeout(()=>{var u;!b.value&&!t.persistent&&(a==null||(u=n.value)!=null&&u.contentEl&&!CPe(a,n.value.contentEl))&&(f.value=!1,c==null||c.closeParents())},40)}});async function i(a){var m,v,_;const u=a.relatedTarget,h=a.target;await lc(),f.value&&u!==h&&((m=n.value)!=null&&m.contentEl)&&((v=n.value)!=null&&v.globalTop)&&![document,n.value.contentEl].includes(h)&&!n.value.contentEl.contains(h)&&((_=qI(n.value.contentEl)[0])==null||_.focus())}Ni(f,a=>{a?(c==null||c.register(),document.addEventListener("focusin",i,{once:!0})):(c==null||c.unregister(),document.removeEventListener("focusin",i))});function O(a){c==null||c.closeParents(a)}function w(a){var u,h,m;if(!t.disabled)if(a.key==="Tab"||a.key==="Enter"&&!t.closeOnContentClick){if(a.key==="Enter"&&(a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLInputElement&&a.target.closest("form")))return;a.key==="Enter"&&a.preventDefault(),Lxe(qI((u=n.value)==null?void 0:u.contentEl,!1),a.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(f.value=!1,(m=(h=n.value)==null?void 0:h.activatorEl)==null||m.focus())}else["Enter"," "].includes(a.key)&&t.closeOnContentClick&&(f.value=!1,c==null||c.closeParents())}function y(a){var h;if(t.disabled)return;const u=(h=n.value)==null?void 0:h.contentEl;u&&f.value?a.key==="ArrowDown"?(a.preventDefault(),cZ(u,"next")):a.key==="ArrowUp"&&(a.preventDefault(),cZ(u,"prev")):["ArrowDown","ArrowUp"].includes(a.key)&&(f.value=!0,a.preventDefault(),setTimeout(()=>setTimeout(()=>y(a))))}const p=jn(()=>Di({"aria-haspopup":"menu","aria-expanded":String(f.value),"aria-owns":l.value,onKeydown:y},t.activatorProps));return Ca(()=>{const a=dS.filterProps(t);return Zt(dS,Di({ref:n,id:l.value,class:["v-menu",t.class],style:t.style},a,{modelValue:f.value,"onUpdate:modelValue":u=>f.value=u,absolute:!0,activatorProps:p.value,"onClick:outside":O,onKeydown:w},P),{activator:o.activator,default:function(){for(var u=arguments.length,h=new Array(u),m=0;m{var v;return[(v=o.default)==null?void 0:v.call(o,...h)]}})}})}),T_({id:l,ΨopenChildren:b},n)}});const _Le=ti({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...xs(),...ST({transition:{component:Jxe}})},"VCounter"),J2e=ta()({name:"VCounter",functional:!0,props:_Le(),setup(t,e){let{slots:o}=e;const f=jn(()=>t.max?`${t.value} / ${t.max}`:String(t.value));return Ca(()=>Zt(X4,{transition:t.transition},{default:()=>[Tp(Zt("div",{class:["v-counter",{"text-error":t.max&&!t.disabled&&parseFloat(t.value)>parseFloat(t.max)},t.class],style:t.style},[o.default?o.default({counter:f.value,max:t.max,value:t.value}):f.value]),[[pS,t.active]])]})),{}}});const wLe=ti({floating:Boolean,...xs()},"VFieldLabel"),JQ=ta()({name:"VFieldLabel",props:wLe(),setup(t,e){let{slots:o}=e;return Ca(()=>Zt(kq,{class:["v-field-label",{"v-field-label--floating":t.floating},t.class],style:t.style,"aria-hidden":t.floating||void 0},o)),{}}}),OLe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],aue=ti({appendInnerIcon:Cl,bgColor:String,clearable:Boolean,clearIcon:{type:Cl,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Cl,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:t=>OLe.includes(t)},"onClick:clear":rg(),"onClick:appendInner":rg(),"onClick:prependInner":rg(),...xs(),...bq(),...pm(),...Ff()},"VField"),sue=ta()({name:"VField",inheritAttrs:!1,props:{id:String,...Tq(),...aue()},emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{themeClasses:d}=Md(t),{loaderClasses:l}=TD(t),{focusClasses:n,isFocused:c,focus:b,blur:i}=IM(t),{InputIcon:O}=k2e(t),{roundedClasses:w}=sg(t),{rtlClasses:y}=qg(),p=jn(()=>t.dirty||t.active),a=jn(()=>!t.singleLine&&!!(t.label||P.label)),u=Vv(),h=jn(()=>t.id||`input-${u}`),m=jn(()=>`${h.value}-messages`),v=ei(),_=ei(),S=ei(),A=jn(()=>["plain","underlined"].includes(t.variant)),{backgroundColorClasses:x,backgroundColorStyles:R}=og(Oi(t,"bgColor")),{textColorClasses:M,textColorStyles:T}=$v(jn(()=>t.error||t.disabled?void 0:p.value&&c.value?t.color:t.baseColor));Ni(p,D=>{if(a.value){const k=v.value.$el,I=_.value.$el;requestAnimationFrame(()=>{const z=jce(k),$=I.getBoundingClientRect(),Q=$.x-z.x,j=$.y-z.y-(z.height/2-$.height/2),U=$.width/.75,X=Math.abs(U-z.width)>1?{maxWidth:Ma(U)}:void 0,te=getComputedStyle(k),W=getComputedStyle(I),K=parseFloat(te.transitionDuration)*1e3||150,oe=parseFloat(W.getPropertyValue("--v-field-label-scale")),q=W.getPropertyValue("color");k.style.visibility="visible",I.style.visibility="hidden",QA(k,{transform:`translate(${Q}px, ${j}px) scale(${oe})`,color:q,...X},{duration:K,easing:fZ,direction:D?"normal":"reverse"}).finished.then(()=>{k.style.removeProperty("visibility"),I.style.removeProperty("visibility")})})}},{flush:"post"});const E=jn(()=>({isActive:p,isFocused:c,controlRef:S,blur:i,focus:b}));function C(D){D.target!==document.activeElement&&D.preventDefault()}function L(D){var k;D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),D.stopPropagation(),(k=t["onClick:clear"])==null||k.call(t,new MouseEvent("click")))}return Ca(()=>{var Q,j,U;const D=t.variant==="outlined",k=!!(P["prepend-inner"]||t.prependInnerIcon),I=!!(t.clearable||P.clear),z=!!(P["append-inner"]||t.appendInnerIcon||I),$=()=>P.label?P.label({...E.value,label:t.label,props:{for:h.value}}):t.label;return Zt("div",Di({class:["v-field",{"v-field--active":p.value,"v-field--appended":z,"v-field--center-affix":t.centerAffix??!A.value,"v-field--disabled":t.disabled,"v-field--dirty":t.dirty,"v-field--error":t.error,"v-field--flat":t.flat,"v-field--has-background":!!t.bgColor,"v-field--persistent-clear":t.persistentClear,"v-field--prepended":k,"v-field--reverse":t.reverse,"v-field--single-line":t.singleLine,"v-field--no-label":!$(),[`v-field--variant-${t.variant}`]:!0},d.value,x.value,n.value,l.value,w.value,y.value,t.class],style:[R.value,t.style],onClick:C},o),[Zt("div",{class:"v-field__overlay"},null),Zt(xq,{name:"v-field",active:!!t.loading,color:t.error?"error":typeof t.loading=="string"?t.loading:t.color},{default:P.loader}),k&&Zt("div",{key:"prepend",class:"v-field__prepend-inner"},[t.prependInnerIcon&&Zt(O,{key:"prepend-icon",name:"prependInner"},null),(Q=P["prepend-inner"])==null?void 0:Q.call(P,E.value)]),Zt("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(t.variant)&&a.value&&Zt(JQ,{key:"floating-label",ref:_,class:[M.value],floating:!0,for:h.value,style:T.value},{default:()=>[$()]}),Zt(JQ,{ref:v,for:h.value},{default:()=>[$()]}),(j=P.default)==null?void 0:j.call(P,{...E.value,props:{id:h.value,class:"v-field__input","aria-describedby":m.value},focus:b,blur:i})]),I&&Zt(e2e,{key:"clear"},{default:()=>[Tp(Zt("div",{class:"v-field__clearable",onMousedown:X=>{X.preventDefault(),X.stopPropagation()}},[Zt(du,{defaults:{VIcon:{icon:t.clearIcon}}},{default:()=>[P.clear?P.clear({...E.value,props:{onKeydown:L,onFocus:b,onBlur:i,onClick:t["onClick:clear"]}}):Zt(O,{name:"clear",onKeydown:L,onFocus:b,onBlur:i},null)]})]),[[pS,t.dirty]])]}),z&&Zt("div",{key:"append",class:"v-field__append-inner"},[(U=P["append-inner"])==null?void 0:U.call(P,E.value),t.appendInnerIcon&&Zt(O,{key:"append-icon",name:"appendInner"},null)]),Zt("div",{class:["v-field__outline",M.value],style:T.value},[D&&Zt(ya,null,[Zt("div",{class:"v-field__outline__start"},null),a.value&&Zt("div",{class:"v-field__outline__notch"},[Zt(JQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})]),Zt("div",{class:"v-field__outline__end"},null)]),A.value&&a.value&&Zt(JQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})])])}),{controlRef:S}}});function e_e(t){const e=Object.keys(sue.props).filter(o=>!uq(o)&&o!=="class"&&o!=="style");return Vce(t,e)}const SLe=["color","file","time","date","datetime-local","week","month"],Mq=ti({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...DM(),...aue()},"VTextField"),um=ta()({name:"VTextField",directives:{Intersect:Kce},inheritAttrs:!1,props:Mq(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const d=Al(t,"modelValue"),{isFocused:l,focus:n,blur:c}=IM(t),b=jn(()=>typeof t.counterValue=="function"?t.counterValue(d.value):typeof t.counterValue=="number"?t.counterValue:(d.value??"").toString().length),i=jn(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),O=jn(()=>["plain","underlined"].includes(t.variant));function w(A,x){var R,M;!t.autofocus||!A||(M=(R=x[0].target)==null?void 0:R.focus)==null||M.call(R)}const y=ei(),p=ei(),a=ei(),u=jn(()=>SLe.includes(t.type)||t.persistentPlaceholder||l.value||t.active);function h(){var A;a.value!==document.activeElement&&((A=a.value)==null||A.focus()),l.value||n()}function m(A){f("mousedown:control",A),A.target!==a.value&&(h(),A.preventDefault())}function v(A){h(),f("click:control",A)}function _(A){A.stopPropagation(),h(),lc(()=>{d.value=null,Rxe(t["onClick:clear"],A)})}function S(A){var R;const x=A.target;if(d.value=x.value,(R=t.modelModifiers)!=null&&R.trim&&["text","search","password","tel","url"].includes(t.type)){const M=[x.selectionStart,x.selectionEnd];lc(()=>{x.selectionStart=M[0],x.selectionEnd=M[1]})}}return Ca(()=>{const A=!!(P.counter||t.counter!==!1&&t.counter!=null),x=!!(A||P.details),[R,M]=fq(o),{modelValue:T,...E}=p_.filterProps(t),C=e_e(t);return Zt(p_,Di({ref:y,modelValue:d.value,"onUpdate:modelValue":L=>d.value=L,class:["v-text-field",{"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-input--plain-underlined":O.value},t.class],style:t.style},R,E,{centerAffix:!O.value,focused:l.value}),{...P,default:L=>{let{id:D,isDisabled:k,isDirty:I,isReadonly:z,isValid:$}=L;return Zt(sue,Di({ref:p,onMousedown:m,onClick:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"],role:t.role},C,{id:D.value,active:u.value||I.value,dirty:I.value||t.dirty,disabled:k.value,focused:l.value,error:$.value===!1}),{...P,default:Q=>{let{props:{class:j,...U}}=Q;const X=Tp(Zt("input",Di({ref:a,value:d.value,onInput:S,autofocus:t.autofocus,readonly:z.value,disabled:k.value,name:t.name,placeholder:t.placeholder,size:1,type:t.type,onFocus:h,onBlur:c},U,M),null),[[y_("intersect"),{handler:w},null,{once:!0}]]);return Zt(ya,null,[t.prefix&&Zt("span",{class:"v-text-field__prefix"},[Zt("span",{class:"v-text-field__prefix__text"},[t.prefix])]),P.default?Zt("div",{class:j,"data-no-activator":""},[P.default(),X]):TO(X,{class:j}),t.suffix&&Zt("span",{class:"v-text-field__suffix"},[Zt("span",{class:"v-text-field__suffix__text"},[t.suffix])])])}})},details:x?L=>{var D;return Zt(ya,null,[(D=P.details)==null?void 0:D.call(P,L),A&&Zt(ya,null,[Zt("span",null,null),Zt(J2e,{active:t.persistentCounter||l.value,value:b.value,max:i.value,disabled:t.disabled},P.counter)])])}:void 0})}),T_({},y,p,a)}});const kLe=ti({renderless:Boolean,...xs()},"VVirtualScrollItem"),TLe=ta()({name:"VVirtualScrollItem",inheritAttrs:!1,props:kLe(),emits:{"update:height":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{resizeRef:d,contentRect:l}=fS(void 0,"border");Ni(()=>{var n;return(n=l.value)==null?void 0:n.height},n=>{n!=null&&f("update:height",n)}),Ca(()=>{var n,c;return t.renderless?Zt(ya,null,[(n=P.default)==null?void 0:n.call(P,{itemRef:d})]):Zt("div",Di({ref:d,class:["v-virtual-scroll__item",t.class],style:t.style},o),[(c=P.default)==null?void 0:c.call(P)])})}}),CLe=-1,ALe=1,qie=100,MLe=ti({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function ELe(t,e){const o=bS(),f=Ai(0);kp(()=>{f.value=parseFloat(t.itemHeight||0)});const P=Ai(0),d=Ai(Math.ceil((parseInt(t.height)||o.height.value)/(f.value||16))||1),l=Ai(0),n=Ai(0),c=ei(),b=ei();let i=0;const{resizeRef:O,contentRect:w}=fS();kp(()=>{O.value=c.value});const y=jn(()=>{var Q;return c.value===document.documentElement?o.height.value:((Q=w.value)==null?void 0:Q.height)||parseInt(t.height)||0}),p=jn(()=>!!(c.value&&b.value&&y.value&&f.value));let a=Array.from({length:e.value.length}),u=Array.from({length:e.value.length});const h=Ai(0);let m=-1;function v(Q){return a[Q]||f.value}const _=OPe(()=>{const Q=performance.now();u[0]=0;const j=e.value.length;for(let U=1;U<=j-1;U++)u[U]=(u[U-1]||0)+v(U-1);h.value=Math.max(h.value,performance.now()-Q)},h),S=Ni(p,Q=>{Q&&(S(),i=b.value.offsetTop,_.immediate(),k(),~m&&lc(()=>{ou&&window.requestAnimationFrame(()=>{z(m),m=-1})}))});ig(()=>{_.clear()});function A(Q,j){const U=a[Q],X=f.value;f.value=X?Math.min(f.value,j):j,(U!==j||X!==f.value)&&(a[Q]=j,_())}function x(Q){return Q=Qg(Q,0,e.value.length-1),u[Q]||0}function R(Q){return PLe(u,Q)}let M=0,T=0,E=0;Ni(y,(Q,j)=>{j&&(k(),Q{T=0,k()}))});function C(){if(!c.value||!b.value)return;const Q=c.value.scrollTop,j=performance.now();j-E>500?(T=Math.sign(Q-M),i=b.value.offsetTop):T=Q-M,M=Q,E=j,k()}function L(){!c.value||!b.value||(T=0,E=0,k())}let D=-1;function k(){cancelAnimationFrame(D),D=requestAnimationFrame(I)}function I(){if(!c.value||!y.value)return;const Q=M-i,j=Math.sign(T),U=Math.max(0,Q-qie),X=Qg(R(U),0,e.value.length),te=Q+y.value+qie,W=Qg(R(te)+1,X+1,e.value.length);if((j!==CLe||Xd.value)){const K=x(P.value)-x(X),oe=x(W)-x(d.value);Math.max(K,oe)>qie?(P.value=X,d.value=W):(X<=0&&(P.value=X),W>=e.value.length&&(d.value=W))}l.value=x(P.value),n.value=x(e.value.length)-x(d.value)}function z(Q){const j=x(Q);!c.value||Q&&!j?m=Q:c.value.scrollTop=j}const $=jn(()=>e.value.slice(P.value,d.value).map((Q,j)=>({raw:Q,index:j+P.value})));return Ni(e,()=>{a=Array.from({length:e.value.length}),u=Array.from({length:e.value.length}),_.immediate(),k()},{deep:!0}),{containerRef:c,markerRef:b,computedItems:$,paddingTop:l,paddingBottom:n,scrollToIndex:z,handleScroll:C,handleScrollend:L,handleItemResize:A}}function PLe(t,e){let o=t.length-1,f=0,P=0,d=null,l=-1;if(t[o]>1,d=t[P],d>e)o=P-1;else if(d[]},renderless:Boolean,...MLe(),...xs(),...O_()},"VVirtualScroll"),lue=ta()({name:"VVirtualScroll",props:RLe(),setup(t,e){let{slots:o}=e;const f=ph("VVirtualScroll"),{dimensionStyles:P}=S_(t),{containerRef:d,markerRef:l,handleScroll:n,handleScrollend:c,handleItemResize:b,scrollToIndex:i,paddingTop:O,paddingBottom:w,computedItems:y}=ELe(t,Oi(t,"items"));return x1(()=>t.renderless,()=>{function p(){var h,m;const u=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";d.value===document.documentElement?(document[u]("scroll",n,{passive:!0}),document[u]("scrollend",c)):((h=d.value)==null||h[u]("scroll",n,{passive:!0}),(m=d.value)==null||m[u]("scrollend",c))}ag(()=>{d.value=Qxe(f.vnode.el,!0),p(!0)}),ig(p)}),Ca(()=>{const p=y.value.map(a=>Zt(TLe,{key:a.index,renderless:t.renderless,"onUpdate:height":u=>b(a.index,u)},{default:u=>{var h;return(h=o.default)==null?void 0:h.call(o,{item:a.raw,index:a.index,...u})}}));return t.renderless?Zt(ya,null,[Zt("div",{ref:l,class:"v-virtual-scroll__spacer",style:{paddingTop:Ma(O.value)}},null),p,Zt("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Ma(w.value)}},null)]):Zt("div",{ref:d,class:["v-virtual-scroll",t.class],onScrollPassive:n,onScrollend:c,style:[P.value,t.style]},[Zt("div",{ref:l,class:"v-virtual-scroll__container",style:{paddingTop:Ma(O.value),paddingBottom:Ma(w.value)}},[p])])}),{scrollToIndex:i}}});function cue(t,e){const o=Ai(!1);let f;function P(n){cancelAnimationFrame(f),o.value=!0,f=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>{o.value=!1})})}async function d(){await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>{if(o.value){const c=Ni(o,()=>{c(),n()})}else n()})}async function l(n){var i,O;if(n.key==="Tab"&&((i=e.value)==null||i.focus()),!["PageDown","PageUp","Home","End"].includes(n.key))return;const c=(O=t.value)==null?void 0:O.$el;if(!c)return;(n.key==="Home"||n.key==="End")&&c.scrollTo({top:n.key==="Home"?0:c.scrollHeight,behavior:"smooth"}),await d();const b=c.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(n.key==="PageDown"||n.key==="Home"){const w=c.getBoundingClientRect().top;for(const y of b)if(y.getBoundingClientRect().top>=w){y.focus();break}}else{const w=c.getBoundingClientRect().bottom;for(const y of[...b].reverse())if(y.getBoundingClientRect().bottom<=w){y.focus();break}}}return{onListScroll:P,onListKeydown:l}}const uue=ti({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:Cl,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...V2e({itemChildren:!1})},"Select"),LLe=ti({...uue(),...__(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ST({transition:{component:Yce}})},"VSelect"),ED=ta()({name:"VSelect",props:LLe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=Sx(),P=ei(),d=ei(),l=ei(),n=Al(t,"menu"),c=jn({get:()=>n.value,set:$=>{var Q;n.value&&!$&&((Q=d.value)!=null&&Q.ΨopenChildren)||(n.value=$)}}),{items:b,transformIn:i,transformOut:O}=iue(t),w=Al(t,"modelValue",[],$=>i($===null?[null]:fm($)),$=>{const Q=O($);return t.multiple?Q:Q[0]??null}),y=jn(()=>typeof t.counterValue=="function"?t.counterValue(w.value):typeof t.counterValue=="number"?t.counterValue:w.value.length),p=Cq(),a=jn(()=>w.value.map($=>$.value)),u=Ai(!1),h=jn(()=>c.value?t.closeText:t.openText);let m="",v;const _=jn(()=>t.hideSelected?b.value.filter($=>!w.value.some(Q=>t.valueComparator(Q,$))):b.value),S=jn(()=>t.hideNoData&&!_.value.length||t.readonly||(p==null?void 0:p.isReadonly.value)),A=jn(()=>{var $;return{...t.menuProps,activatorProps:{...(($=t.menuProps)==null?void 0:$.activatorProps)||{},"aria-haspopup":"listbox"}}}),x=ei(),{onListScroll:R,onListKeydown:M}=cue(x,P);function T($){t.openOnClear&&(c.value=!0)}function E(){S.value||(c.value=!c.value)}function C($){var te,W;if(!$.key||t.readonly||p!=null&&p.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes($.key)&&$.preventDefault(),["Enter","ArrowDown"," "].includes($.key)&&(c.value=!0),["Escape","Tab"].includes($.key)&&(c.value=!1),$.key==="Home"?(te=x.value)==null||te.focus("first"):$.key==="End"&&((W=x.value)==null||W.focus("last"));const Q=1e3;function j(K){const oe=K.key.length===1,q=!K.ctrlKey&&!K.metaKey&&!K.altKey;return oe&&q}if(t.multiple||!j($))return;const U=performance.now();U-v>Q&&(m=""),m+=$.key.toLowerCase(),v=U;const X=b.value.find(K=>K.title.toLowerCase().startsWith(m));if(X!==void 0){w.value=[X];const K=_.value.indexOf(X);ou&&window.requestAnimationFrame(()=>{var oe;K>=0&&((oe=l.value)==null||oe.scrollToIndex(K))})}}function L($){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!$.props.disabled)if(t.multiple){const j=w.value.findIndex(X=>t.valueComparator(X.value,$.value)),U=Q??!~j;if(~j){const X=U?[...w.value,$]:[...w.value];X.splice(j,1),w.value=X}else U&&(w.value=[...w.value,$])}else{const j=Q!==!1;w.value=j?[$]:[],lc(()=>{c.value=!1})}}function D($){var Q;(Q=x.value)!=null&&Q.$el.contains($.relatedTarget)||(c.value=!1)}function k(){var $;u.value&&(($=P.value)==null||$.focus())}function I($){u.value=!0}function z($){if($==null)w.value=[];else if(gM(P.value,":autofill")||gM(P.value,":-webkit-autofill")){const Q=b.value.find(j=>j.title===$);Q&&L(Q)}else P.value&&(P.value.value="")}return Ni(c,()=>{if(!t.hideSelected&&c.value&&w.value.length){const $=_.value.findIndex(Q=>w.value.some(j=>t.valueComparator(j.value,Q.value)));ou&&window.requestAnimationFrame(()=>{var Q;$>=0&&((Q=l.value)==null||Q.scrollToIndex($))})}}),Ni(()=>t.items,($,Q)=>{c.value||u.value&&!Q.length&&$.length&&(c.value=!0)}),Ca(()=>{const $=!!(t.chips||o.chip),Q=!!(!t.hideNoData||_.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),j=w.value.length>0,U=um.filterProps(t),X=j||!u.value&&t.label&&!t.persistentPlaceholder?void 0:t.placeholder;return Zt(um,Di({ref:P},U,{modelValue:w.value.map(te=>te.props.value).join(", "),"onUpdate:modelValue":z,focused:u.value,"onUpdate:focused":te=>u.value=te,validationValue:w.externalValue,counterValue:y.value,dirty:j,class:["v-select",{"v-select--active-menu":c.value,"v-select--chips":!!t.chips,[`v-select--${t.multiple?"multiple":"single"}`]:!0,"v-select--selected":w.value.length,"v-select--selection-slot":!!o.selection},t.class],style:t.style,inputmode:"none",placeholder:X,"onClick:clear":T,"onMousedown:control":E,onBlur:D,onKeydown:C,"aria-label":f(h.value),title:f(h.value)}),{...o,default:()=>Zt(ya,null,[Zt(hS,Di({ref:d,modelValue:c.value,"onUpdate:modelValue":te=>c.value=te,activator:"parent",contentClass:"v-select__content",disabled:S.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:k},A.value),{default:()=>[Q&&Zt(m_,Di({ref:x,selected:a.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:te=>te.preventDefault(),onKeydown:M,onFocusin:I,onScrollPassive:R,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var te,W,K;return[(te=o["prepend-item"])==null?void 0:te.call(o),!_.value.length&&!t.hideNoData&&(((W=o["no-data"])==null?void 0:W.call(o))??Zt(Bf,{title:f(t.noDataText)},null)),Zt(lue,{ref:l,renderless:!0,items:_.value},{default:oe=>{var he;let{item:q,index:Y,itemRef:ee}=oe;const me=Di(q.props,{ref:ee,key:Y,onClick:()=>L(q,null)});return((he=o.item)==null?void 0:he.call(o,{item:q,index:Y,props:me}))??Zt(Bf,Di(me,{role:"option"}),{prepend:se=>{let{isSelected:ae}=se;return Zt(ya,null,[t.multiple&&!t.hideSelected?Zt(LM,{key:q.value,modelValue:ae,ripple:!1,tabindex:"-1"},null):void 0,q.props.prependAvatar&&Zt(PO,{image:q.props.prependAvatar},null),q.props.prependIcon&&Zt(Tl,{icon:q.props.prependIcon},null)])}})}}),(K=o["append-item"])==null?void 0:K.call(o)]}})]}),w.value.map((te,W)=>{function K(ee){ee.stopPropagation(),ee.preventDefault(),L(te,!1)}const oe={"onClick:close":K,onKeydown(ee){ee.key!=="Enter"&&ee.key!==" "||(ee.preventDefault(),ee.stopPropagation(),K(ee))},onMousedown(ee){ee.preventDefault(),ee.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},q=$?!!o.chip:!!o.selection,Y=q?dq($?o.chip({item:te,index:W,props:oe}):o.selection({item:te,index:W})):void 0;if(!(q&&!Y))return Zt("div",{key:te.value,class:"v-select__selection"},[$?o.chip?Zt(du,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:te.title}}},{default:()=>[Y]}):Zt(AD,Di({key:"chip",closable:t.closableChips,size:"small",text:te.title,disabled:te.props.disabled},oe),null):Y??Zt("span",{class:"v-select__selection-text"},[te.title,t.multiple&&Wt==null||e==null?-1:t.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),fue=ti({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function DLe(t,e,o){var n;const f=[],P=(o==null?void 0:o.default)??ILe,d=o!=null&&o.filterKeys?fm(o.filterKeys):!1,l=Object.keys((o==null?void 0:o.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return f;e:for(let c=0;c0)&&!(o!=null&&o.noFilter)){if(typeof b=="object"){const u=d||Object.keys(i);for(const h of u){const m=y1(i,h),v=(n=o==null?void 0:o.customKeyFilter)==null?void 0:n[h];if(y=v?v(m,e,b):P(m,e,b),y!==-1&&y!==!1)v?O[h]=y:w[h]=y;else if((o==null?void 0:o.filterMode)==="every")continue e}}else y=P(b,e,b),y!==-1&&y!==!1&&(w.title=y);const p=Object.keys(w).length,a=Object.keys(O).length;if(!p&&!a||(o==null?void 0:o.filterMode)==="union"&&a!==l&&!p||(o==null?void 0:o.filterMode)==="intersection"&&(a!==l||!p))continue}f.push({index:c,matches:{...w,...O}})}return f}function due(t,e,o,f){const P=ei([]),d=ei(new Map),l=jn(()=>f!=null&&f.transform?wa(e).map(c=>[c,f.transform(c)]):wa(e));kp(()=>{const c=typeof o=="function"?o():wa(o),b=typeof c!="string"&&typeof c!="number"?"":String(c),i=DLe(l.value,b,{customKeyFilter:{...t.customKeyFilter,...wa(f==null?void 0:f.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),O=wa(e),w=[],y=new Map;i.forEach(p=>{let{index:a,matches:u}=p;const h=O[a];w.push(h),y.set(h.value,u)}),P.value=w,d.value=y});function n(c){return d.value.get(c.value)}return{filteredItems:P,filteredMatches:d,getMatches:n}}function BLe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?Zt(ya,null,[Zt("span",{class:"v-autocomplete__unmask"},[t.substr(0,e)]),Zt("span",{class:"v-autocomplete__mask"},[t.substr(e,o)]),Zt("span",{class:"v-autocomplete__unmask"},[t.substr(e+o)])]):t}const zLe=ti({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...fue({filterKeys:["title"]}),...uue(),...__(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ST({transition:!1})},"VAutocomplete"),hue=ta()({name:"VAutocomplete",props:zLe(),emits:{"update:focused":t=>!0,"update:search":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=Sx(),P=ei(),d=Ai(!1),l=Ai(!0),n=Ai(!1),c=ei(),b=ei(),i=Al(t,"menu"),O=jn({get:()=>i.value,set:me=>{var he;i.value&&!me&&((he=c.value)!=null&&he.ΨopenChildren)||(i.value=me)}}),w=Ai(-1),y=jn(()=>{var me;return(me=P.value)==null?void 0:me.color}),p=jn(()=>O.value?t.closeText:t.openText),{items:a,transformIn:u,transformOut:h}=iue(t),{textColorClasses:m,textColorStyles:v}=$v(y),_=Al(t,"search",""),S=Al(t,"modelValue",[],me=>u(me===null?[null]:fm(me)),me=>{const he=h(me);return t.multiple?he:he[0]??null}),A=jn(()=>typeof t.counterValue=="function"?t.counterValue(S.value):typeof t.counterValue=="number"?t.counterValue:S.value.length),x=Cq(),{filteredItems:R,getMatches:M}=due(t,a,()=>l.value?"":_.value),T=jn(()=>t.hideSelected?R.value.filter(me=>!S.value.some(he=>he.value===me.value)):R.value),E=jn(()=>!!(t.chips||o.chip)),C=jn(()=>E.value||!!o.selection),L=jn(()=>S.value.map(me=>me.props.value)),D=jn(()=>{var he;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&_.value===((he=T.value[0])==null?void 0:he.title))&&T.value.length>0&&!l.value&&!n.value}),k=jn(()=>t.hideNoData&&!T.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),I=ei(),{onListScroll:z,onListKeydown:$}=cue(I,P);function Q(me){t.openOnClear&&(O.value=!0),_.value=""}function j(){k.value||(O.value=!0)}function U(me){k.value||(d.value&&(me.preventDefault(),me.stopPropagation()),O.value=!O.value)}function X(me){var ae,ce,de;if(t.readonly||x!=null&&x.isReadonly.value)return;const he=P.value.selectionStart,se=S.value.length;if((w.value>-1||["Enter","ArrowDown","ArrowUp"].includes(me.key))&&me.preventDefault(),["Enter","ArrowDown"].includes(me.key)&&(O.value=!0),["Escape"].includes(me.key)&&(O.value=!1),D.value&&["Enter","Tab"].includes(me.key)&&!S.value.some(ve=>{let{value:ye}=ve;return ye===T.value[0].value})&&ee(T.value[0]),me.key==="ArrowDown"&&D.value&&((ae=I.value)==null||ae.focus("next")),["Backspace","Delete"].includes(me.key)){if(!t.multiple&&C.value&&S.value.length>0&&!_.value)return ee(S.value[0],!1);if(~w.value){const ve=w.value;ee(S.value[w.value],!1),w.value=ve>=se-1?se-2:ve}else me.key==="Backspace"&&!_.value&&(w.value=se-1)}if(t.multiple){if(me.key==="ArrowLeft"){if(w.value<0&&he>0)return;const ve=w.value>-1?w.value-1:se-1;S.value[ve]?w.value=ve:(w.value=-1,P.value.setSelectionRange((ce=_.value)==null?void 0:ce.length,(de=_.value)==null?void 0:de.length))}if(me.key==="ArrowRight"){if(w.value<0)return;const ve=w.value+1;S.value[ve]?w.value=ve:(w.value=-1,P.value.setSelectionRange(0,0))}}}function te(me){if(gM(P.value,":autofill")||gM(P.value,":-webkit-autofill")){const he=a.value.find(se=>se.title===me.target.value);he&&ee(he)}}function W(){var me;d.value&&(l.value=!0,(me=P.value)==null||me.focus())}function K(me){d.value=!0,setTimeout(()=>{n.value=!0})}function oe(me){n.value=!1}function q(me){(me==null||me===""&&!t.multiple&&!C.value)&&(S.value=[])}const Y=Ai(!1);function ee(me){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!me||me.props.disabled))if(t.multiple){const se=S.value.findIndex(ce=>t.valueComparator(ce.value,me.value)),ae=he??!~se;if(~se){const ce=ae?[...S.value,me]:[...S.value];ce.splice(se,1),S.value=ce}else ae&&(S.value=[...S.value,me]);t.clearOnSelect&&(_.value="")}else{const se=he!==!1;S.value=se?[me]:[],_.value=se&&!C.value?me.title:"",lc(()=>{O.value=!1,l.value=!0})}}return Ni(d,(me,he)=>{var se;me!==he&&(me?(Y.value=!0,_.value=t.multiple||C.value?"":String(((se=S.value.at(-1))==null?void 0:se.props.title)??""),l.value=!0,lc(()=>Y.value=!1)):(!t.multiple&&_.value==null&&(S.value=[]),O.value=!1,S.value.some(ae=>{let{title:ce}=ae;return ce===_.value})||(_.value=""),w.value=-1))}),Ni(_,me=>{!d.value||Y.value||(me&&(O.value=!0),l.value=!me)}),Ni(O,()=>{if(!t.hideSelected&&O.value&&S.value.length){const me=T.value.findIndex(he=>S.value.some(se=>he.value===se.value));ou&&window.requestAnimationFrame(()=>{var he;me>=0&&((he=b.value)==null||he.scrollToIndex(me))})}}),Ni(()=>t.items,(me,he)=>{O.value||d.value&&!he.length&&me.length&&(O.value=!0)}),Ca(()=>{const me=!!(!t.hideNoData||T.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),he=S.value.length>0,se=um.filterProps(t);return Zt(um,Di({ref:P},se,{modelValue:_.value,"onUpdate:modelValue":[ae=>_.value=ae,q],focused:d.value,"onUpdate:focused":ae=>d.value=ae,validationValue:S.externalValue,counterValue:A.value,dirty:he,onChange:te,class:["v-autocomplete",`v-autocomplete--${t.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":O.value,"v-autocomplete--chips":!!t.chips,"v-autocomplete--selection-slot":!!C.value,"v-autocomplete--selecting-index":w.value>-1},t.class],style:t.style,readonly:t.readonly,placeholder:he?void 0:t.placeholder,"onClick:clear":Q,"onMousedown:control":j,onKeydown:X}),{...o,default:()=>Zt(ya,null,[Zt(hS,Di({ref:c,modelValue:O.value,"onUpdate:modelValue":ae=>O.value=ae,activator:"parent",contentClass:"v-autocomplete__content",disabled:k.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:W},t.menuProps),{default:()=>[me&&Zt(m_,Di({ref:I,selected:L.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:ae=>ae.preventDefault(),onKeydown:$,onFocusin:K,onFocusout:oe,onScrollPassive:z,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var ae,ce,de;return[(ae=o["prepend-item"])==null?void 0:ae.call(o),!T.value.length&&!t.hideNoData&&(((ce=o["no-data"])==null?void 0:ce.call(o))??Zt(Bf,{title:f(t.noDataText)},null)),Zt(lue,{ref:b,renderless:!0,items:T.value},{default:ve=>{var Pe;let{item:ye,index:_e,itemRef:Se}=ve;const Te=Di(ye.props,{ref:Se,key:_e,active:D.value&&_e===0?!0:void 0,onClick:()=>ee(ye,null)});return((Pe=o.item)==null?void 0:Pe.call(o,{item:ye,index:_e,props:Te}))??Zt(Bf,Di(Te,{role:"option"}),{prepend:Ie=>{let{isSelected:ze}=Ie;return Zt(ya,null,[t.multiple&&!t.hideSelected?Zt(LM,{key:ye.value,modelValue:ze,ripple:!1,tabindex:"-1"},null):void 0,ye.props.prependAvatar&&Zt(PO,{image:ye.props.prependAvatar},null),ye.props.prependIcon&&Zt(Tl,{icon:ye.props.prependIcon},null)])},title:()=>{var Ie,ze;return l.value?ye.title:BLe(ye.title,(Ie=M(ye))==null?void 0:Ie.title,((ze=_.value)==null?void 0:ze.length)??0)}})}}),(de=o["append-item"])==null?void 0:de.call(o)]}})]}),S.value.map((ae,ce)=>{function de(Se){Se.stopPropagation(),Se.preventDefault(),ee(ae,!1)}const ve={"onClick:close":de,onKeydown(Se){Se.key!=="Enter"&&Se.key!==" "||(Se.preventDefault(),Se.stopPropagation(),de(Se))},onMousedown(Se){Se.preventDefault(),Se.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ye=E.value?!!o.chip:!!o.selection,_e=ye?dq(E.value?o.chip({item:ae,index:ce,props:ve}):o.selection({item:ae,index:ce})):void 0;if(!(ye&&!_e))return Zt("div",{key:ae.value,class:["v-autocomplete__selection",ce===w.value&&["v-autocomplete__selection--selected",m.value]],style:ce===w.value?v.value:{}},[E.value?o.chip?Zt(du,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:ae.title}}},{default:()=>[_e]}):Zt(AD,Di({key:"chip",closable:t.closableChips,size:"small",text:ae.title,disabled:ae.props.disabled},ve),null):_e??Zt("span",{class:"v-autocomplete__selection-text"},[ae.title,t.multiple&&ce!0,afterLeave:()=>!0},setup(t,e){let{emit:o,slots:f}=e;const P=Al(t,"modelValue"),{scopeId:d}=BM(),l=ei();function n(i){var y,p;const O=i.relatedTarget,w=i.target;if(O!==w&&((y=l.value)!=null&&y.contentEl)&&((p=l.value)!=null&&p.globalTop)&&![document,l.value.contentEl].includes(w)&&!l.value.contentEl.contains(w)){const a=qI(l.value.contentEl);if(!a.length)return;const u=a[0],h=a[a.length-1];O===u?h.focus():u.focus()}}ou&&Ni(()=>P.value&&t.retainFocus,i=>{i?document.addEventListener("focusin",n):document.removeEventListener("focusin",n)},{immediate:!0});function c(){var i;(i=l.value)!=null&&i.contentEl&&!l.value.contentEl.contains(document.activeElement)&&l.value.contentEl.focus({preventScroll:!0})}function b(){o("afterLeave")}return Ni(P,async i=>{var O;i||(await lc(),(O=l.value.activatorEl)==null||O.focus({preventScroll:!0}))}),Ca(()=>{const i=dS.filterProps(t),O=Di({"aria-haspopup":"dialog","aria-expanded":String(P.value)},t.activatorProps),w=Di({tabindex:-1},t.contentProps);return Zt(dS,Di({ref:l,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},i,{modelValue:P.value,"onUpdate:modelValue":y=>P.value=y,"aria-modal":"true",activatorProps:O,contentProps:w,role:"dialog",onAfterEnter:c,onAfterLeave:b},d),{activator:f.activator,default:function(){for(var y=arguments.length,p=new Array(y),a=0;a{var u;return[(u=f.default)==null?void 0:u.call(f,...p)]}})}})}),T_({},l)}});const t_e=ta()({name:"VCardActions",props:xs(),setup(t,e){let{slots:o}=e;return ib({VBtn:{slim:!0,variant:"text"}}),Ca(()=>{var f;return Zt("div",{class:["v-card-actions",t.class],style:t.style},[(f=o.default)==null?void 0:f.call(o)])}),{}}}),NLe=ti({opacity:[Number,String],...xs(),...Tu()},"VCardSubtitle"),n_e=ta()({name:"VCardSubtitle",props:NLe(),setup(t,e){let{slots:o}=e;return Ca(()=>Zt(t.tag,{class:["v-card-subtitle",t.class],style:[{"--v-card-subtitle-opacity":t.opacity},t.style]},o)),{}}}),PD=hq("v-card-title"),$Le=ti({appendAvatar:String,appendIcon:Cl,prependAvatar:String,prependIcon:Cl,subtitle:[String,Number],title:[String,Number],...xs(),...Qv()},"VCardItem"),VLe=ta()({name:"VCardItem",props:$Le(),setup(t,e){let{slots:o}=e;return Ca(()=>{var b;const f=!!(t.prependAvatar||t.prependIcon),P=!!(f||o.prepend),d=!!(t.appendAvatar||t.appendIcon),l=!!(d||o.append),n=!!(t.title!=null||o.title),c=!!(t.subtitle!=null||o.subtitle);return Zt("div",{class:["v-card-item",t.class],style:t.style},[P&&Zt("div",{key:"prepend",class:"v-card-item__prepend"},[o.prepend?Zt(du,{key:"prepend-defaults",disabled:!f,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},o.prepend):Zt(ya,null,[t.prependAvatar&&Zt(PO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&Zt(Tl,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),Zt("div",{class:"v-card-item__content"},[n&&Zt(PD,{key:"title"},{default:()=>{var i;return[((i=o.title)==null?void 0:i.call(o))??t.title]}}),c&&Zt(n_e,{key:"subtitle"},{default:()=>{var i;return[((i=o.subtitle)==null?void 0:i.call(o))??t.subtitle]}}),(b=o.default)==null?void 0:b.call(o)]),l&&Zt("div",{key:"append",class:"v-card-item__append"},[o.append?Zt(du,{key:"append-defaults",disabled:!d,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},o.append):Zt(ya,null,[t.appendIcon&&Zt(Tl,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&Zt(PO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),ULe=ti({opacity:[Number,String],...xs(),...Tu()},"VCardText"),pue=ta()({name:"VCardText",props:ULe(),setup(t,e){let{slots:o}=e;return Ca(()=>Zt(t.tag,{class:["v-card-text",t.class],style:[{"--v-card-text-opacity":t.opacity},t.style]},o)),{}}}),jLe=ti({appendAvatar:String,appendIcon:Cl,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Cl,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...k_(),...xs(),...Qv(),...O_(),...jv(),...bq(),...kD(),..._q(),...pm(),...Sq(),...Tu(),...Ff(),...Tx({variant:"elevated"})},"VCard"),BO=ta()({name:"VCard",directives:{Ripple:AT},props:jLe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:P}=Md(t),{borderClasses:d}=DO(t),{colorClasses:l,colorStyles:n,variantClasses:c}=CT(t),{densityClasses:b}=kx(t),{dimensionStyles:i}=S_(t),{elevationClasses:O}=sb(t),{loaderClasses:w}=TD(t),{locationStyles:y}=yq(t),{positionClasses:p}=wq(t),{roundedClasses:a}=sg(t),u=Oq(t,o),h=jn(()=>t.link!==!1&&u.isLink.value),m=jn(()=>!t.disabled&&t.link!==!1&&(t.link||u.isClickable.value));return Ca(()=>{const v=h.value?"a":t.tag,_=!!(f.title||t.title!=null),S=!!(f.subtitle||t.subtitle!=null),A=_||S,x=!!(f.append||t.appendAvatar||t.appendIcon),R=!!(f.prepend||t.prependAvatar||t.prependIcon),M=!!(f.image||t.image),T=A||R||x,E=!!(f.text||t.text!=null);return Tp(Zt(v,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":m.value},P.value,d.value,l.value,b.value,O.value,w.value,p.value,a.value,c.value,t.class],style:[n.value,i.value,y.value,t.style],href:u.href.value,onClick:m.value&&u.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var C;return[M&&Zt("div",{key:"image",class:"v-card__image"},[f.image?Zt(du,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},f.image):Zt(kT,{key:"image-img",cover:!0,src:t.image},null)]),Zt(xq,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:f.loader}),T&&Zt(VLe,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:f.item,prepend:f.prepend,title:f.title,subtitle:f.subtitle,append:f.append}),E&&Zt(pue,{key:"text"},{default:()=>{var L;return[((L=f.text)==null?void 0:L.call(f))??t.text]}}),(C=f.default)==null?void 0:C.call(f),f.actions&&Zt(t_e,null,{default:f.actions}),TT(m.value,"v-card")]}}),[[y_("ripple"),m.value&&t.ripple]])}),{}}});const mue=Symbol.for("vuetify:v-slider");function jse(t,e,o){const f=o==="vertical",P=e.getBoundingClientRect(),d="touches"in t?t.touches[0]:t;return f?d.clientY-(P.top+P.height/2):d.clientX-(P.left+P.width/2)}function QLe(t,e){return"touches"in t&&t.touches.length?t.touches[0][e]:"changedTouches"in t&&t.changedTouches.length?t.changedTouches[0][e]:t[e]}const r_e=ti({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:t=>typeof t=="boolean"||t==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:t=>typeof t=="boolean"||t==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)},reverse:Boolean,...pm(),...jv({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),o_e=t=>{const e=jn(()=>parseFloat(t.min)),o=jn(()=>parseFloat(t.max)),f=jn(()=>+t.step>0?parseFloat(t.step):0),P=jn(()=>Math.max(Cme(f.value),Cme(e.value)));function d(l){if(l=parseFloat(l),f.value<=0)return l;const n=Qg(l,e.value,o.value),c=e.value%f.value,b=Math.round((n-c)/f.value)*f.value+c;return parseFloat(Math.min(b,o.value).toFixed(P.value))}return{min:e,max:o,step:f,decimals:P,roundValue:d}},i_e=t=>{let{props:e,steps:o,onSliderStart:f,onSliderMove:P,onSliderEnd:d,getActiveThumb:l}=t;const{isRtl:n}=qg(),c=Oi(e,"reverse"),b=jn(()=>e.direction==="vertical"),i=jn(()=>b.value!==c.value),{min:O,max:w,step:y,decimals:p,roundValue:a}=o,u=jn(()=>parseInt(e.thumbSize,10)),h=jn(()=>parseInt(e.tickSize,10)),m=jn(()=>parseInt(e.trackSize,10)),v=jn(()=>(w.value-O.value)/y.value),_=Oi(e,"disabled"),S=jn(()=>e.error||e.disabled?void 0:e.thumbColor??e.color),A=jn(()=>e.error||e.disabled?void 0:e.trackColor??e.color),x=jn(()=>e.error||e.disabled?void 0:e.trackFillColor??e.color),R=Ai(!1),M=Ai(0),T=ei(),E=ei();function C(oe){var de;const q=e.direction==="vertical",Y=q?"top":"left",ee=q?"height":"width",me=q?"clientY":"clientX",{[Y]:he,[ee]:se}=(de=T.value)==null?void 0:de.$el.getBoundingClientRect(),ae=QLe(oe,me);let ce=Math.min(Math.max((ae-he-M.value)/se,0),1)||0;return(q?i.value:i.value!==n.value)&&(ce=1-ce),a(O.value+ce*(w.value-O.value))}const L=oe=>{d({value:C(oe)}),R.value=!1,M.value=0},D=oe=>{E.value=l(oe),E.value&&(E.value.focus(),R.value=!0,E.value.contains(oe.target)?M.value=jse(oe,E.value,e.direction):(M.value=0,P({value:C(oe)})),f({value:C(oe)}))},k={passive:!0,capture:!0};function I(oe){P({value:C(oe)})}function z(oe){oe.stopPropagation(),oe.preventDefault(),L(oe),window.removeEventListener("mousemove",I,k),window.removeEventListener("mouseup",z)}function $(oe){var q;L(oe),window.removeEventListener("touchmove",I,k),(q=oe.target)==null||q.removeEventListener("touchend",$)}function Q(oe){var q;D(oe),window.addEventListener("touchmove",I,k),(q=oe.target)==null||q.addEventListener("touchend",$,{passive:!1})}function j(oe){oe.preventDefault(),D(oe),window.addEventListener("mousemove",I,k),window.addEventListener("mouseup",z,{passive:!1})}const U=oe=>{const q=(oe-O.value)/(w.value-O.value)*100;return Qg(isNaN(q)?0:q,0,100)},X=Oi(e,"showTicks"),te=jn(()=>X.value?e.ticks?Array.isArray(e.ticks)?e.ticks.map(oe=>({value:oe,position:U(oe),label:oe.toString()})):Object.keys(e.ticks).map(oe=>({value:parseFloat(oe),position:U(parseFloat(oe)),label:e.ticks[oe]})):v.value!==1/0?lT(v.value+1).map(oe=>{const q=O.value+oe*y.value;return{value:q,position:U(q)}}):[]:[]),W=jn(()=>te.value.some(oe=>{let{label:q}=oe;return!!q})),K={activeThumbRef:E,color:Oi(e,"color"),decimals:p,disabled:_,direction:Oi(e,"direction"),elevation:Oi(e,"elevation"),hasLabels:W,isReversed:c,indexFromEnd:i,min:O,max:w,mousePressed:R,numTicks:v,onSliderMousedown:j,onSliderTouchstart:Q,parsedTicks:te,parseMouseMove:C,position:U,readonly:Oi(e,"readonly"),rounded:Oi(e,"rounded"),roundValue:a,showTicks:X,startOffset:M,step:y,thumbSize:u,thumbColor:S,thumbLabel:Oi(e,"thumbLabel"),ticks:Oi(e,"ticks"),tickSize:h,trackColor:A,trackContainerRef:T,trackFillColor:x,trackSize:m,vertical:b};return gf(mue,K),K},HLe=ti({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,...xs()},"VSliderThumb"),Qse=ta()({name:"VSliderThumb",directives:{Ripple:AT},props:HLe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=vl(mue),{isRtl:d,rtlClasses:l}=qg();if(!P)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:n,step:c,disabled:b,thumbSize:i,thumbLabel:O,direction:w,isReversed:y,vertical:p,readonly:a,elevation:u,mousePressed:h,decimals:m,indexFromEnd:v}=P,_=jn(()=>b.value?void 0:u.value),{elevationClasses:S}=sb(_),{textColorClasses:A,textColorStyles:x}=$v(n),{pageup:R,pagedown:M,end:T,home:E,left:C,right:L,down:D,up:k}=Ese,I=[R,M,T,E,C,L,D,k],z=jn(()=>c.value?[1,2,3]:[1,5,10]);function $(j,U){if(!I.includes(j.key))return;j.preventDefault();const X=c.value||.1,te=(t.max-t.min)/X;if([C,L,D,k].includes(j.key)){const K=(p.value?[d.value?C:L,y.value?D:k]:v.value!==d.value?[C,k]:[L,k]).includes(j.key)?1:-1,oe=j.shiftKey?2:j.ctrlKey?1:0;U=U+K*X*z.value[oe]}else if(j.key===E)U=t.min;else if(j.key===T)U=t.max;else{const W=j.key===M?1:-1;U=U-W*X*(te>100?te/10:10)}return Math.max(t.min,Math.min(t.max,U))}function Q(j){const U=$(j,t.modelValue);U!=null&&f("update:modelValue",U)}return Ca(()=>{const j=Ma(v.value?100-t.position:t.position,"%");return Zt("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":t.focused,"v-slider-thumb--pressed":t.focused&&h.value},t.class,l.value],style:[{"--v-slider-thumb-position":j,"--v-slider-thumb-size":Ma(i.value)},t.style],role:"slider",tabindex:b.value?-1:0,"aria-label":t.name,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,"aria-readonly":!!a.value,"aria-orientation":w.value,onKeydown:a.value?void 0:Q},[Zt("div",{class:["v-slider-thumb__surface",A.value,S.value],style:{...x.value}},null),Tp(Zt("div",{class:["v-slider-thumb__ripple",A.value],style:x.value},null),[[y_("ripple"),t.ripple,null,{circle:!0,center:!0}]]),Zt(Kxe,{origin:"bottom center"},{default:()=>{var U;return[Tp(Zt("div",{class:"v-slider-thumb__label-container"},[Zt("div",{class:["v-slider-thumb__label"]},[Zt("div",null,[((U=o["thumb-label"])==null?void 0:U.call(o,{modelValue:t.modelValue}))??t.modelValue.toFixed(c.value?m.value:1)])])]),[[pS,O.value&&t.focused||O.value==="always"]])]}})])}),{}}});const ZLe=ti({start:{type:Number,required:!0},stop:{type:Number,required:!0},...xs()},"VSliderTrack"),a_e=ta()({name:"VSliderTrack",props:ZLe(),emits:{},setup(t,e){let{slots:o}=e;const f=vl(mue);if(!f)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:P,parsedTicks:d,rounded:l,showTicks:n,tickSize:c,trackColor:b,trackFillColor:i,trackSize:O,vertical:w,min:y,max:p,indexFromEnd:a}=f,{roundedClasses:u}=sg(l),{backgroundColorClasses:h,backgroundColorStyles:m}=og(i),{backgroundColorClasses:v,backgroundColorStyles:_}=og(b),S=jn(()=>`inset-${w.value?"block":"inline"}-${a.value?"end":"start"}`),A=jn(()=>w.value?"height":"width"),x=jn(()=>({[S.value]:"0%",[A.value]:"100%"})),R=jn(()=>t.stop-t.start),M=jn(()=>({[S.value]:Ma(t.start,"%"),[A.value]:Ma(R.value,"%")})),T=jn(()=>n.value?(w.value?d.value.slice().reverse():d.value).map((C,L)=>{var k;const D=C.value!==y.value&&C.value!==p.value?Ma(C.position,"%"):void 0;return Zt("div",{key:C.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":C.position>=t.start&&C.position<=t.stop,"v-slider-track__tick--first":C.value===y.value,"v-slider-track__tick--last":C.value===p.value}],style:{[S.value]:D}},[(C.label||o["tick-label"])&&Zt("div",{class:"v-slider-track__tick-label"},[((k=o["tick-label"])==null?void 0:k.call(o,{tick:C,index:L}))??C.label])])}):[]);return Ca(()=>Zt("div",{class:["v-slider-track",u.value,t.class],style:[{"--v-slider-track-size":Ma(O.value),"--v-slider-tick-size":Ma(c.value)},t.style]},[Zt("div",{class:["v-slider-track__background",v.value,{"v-slider-track__background--opacity":!!P.value||!i.value}],style:{...x.value,..._.value}},null),Zt("div",{class:["v-slider-track__fill",h.value],style:{...M.value,...m.value}},null),n.value&&Zt("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":n.value==="always"}]},[T.value])])),{}}}),qLe=ti({...Tq(),...r_e(),...DM(),modelValue:{type:[Number,String],default:0}},"VSlider"),gue=ta()({name:"VSlider",props:qLe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,start:t=>!0,end:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=ei(),{rtlClasses:d}=qg(),l=o_e(t),n=Al(t,"modelValue",void 0,A=>l.roundValue(A??l.min.value)),{min:c,max:b,mousePressed:i,roundValue:O,onSliderMousedown:w,onSliderTouchstart:y,trackContainerRef:p,position:a,hasLabels:u,readonly:h}=i_e({props:t,steps:l,onSliderStart:()=>{f("start",n.value)},onSliderEnd:A=>{let{value:x}=A;const R=O(x);n.value=R,f("end",R)},onSliderMove:A=>{let{value:x}=A;return n.value=O(x)},getActiveThumb:()=>{var A;return(A=P.value)==null?void 0:A.$el}}),{isFocused:m,focus:v,blur:_}=IM(t),S=jn(()=>a(n.value));return Ca(()=>{const A=p_.filterProps(t),x=!!(t.label||o.label||o.prepend);return Zt(p_,Di({class:["v-slider",{"v-slider--has-labels":!!o["tick-label"]||u.value,"v-slider--focused":m.value,"v-slider--pressed":i.value,"v-slider--disabled":t.disabled},d.value,t.class],style:t.style},A,{focused:m.value}),{...o,prepend:x?R=>{var M,T;return Zt(ya,null,[((M=o.label)==null?void 0:M.call(o,R))??(t.label?Zt(kq,{id:R.id.value,class:"v-slider__label",text:t.label},null):void 0),(T=o.prepend)==null?void 0:T.call(o,R)])}:void 0,default:R=>{let{id:M,messagesId:T}=R;return Zt("div",{class:"v-slider__container",onMousedown:h.value?void 0:w,onTouchstartPassive:h.value?void 0:y},[Zt("input",{id:M.value,name:t.name||M.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:n.value},null),Zt(a_e,{ref:p,start:0,stop:S.value},{"tick-label":o["tick-label"]}),Zt(Qse,{ref:P,"aria-describedby":T.value,focused:m.value,min:c.value,max:b.value,modelValue:n.value,"onUpdate:modelValue":E=>n.value=E,position:S.value,elevation:t.elevation,onFocus:v,onBlur:_,ripple:t.ripple,name:t.name},{"thumb-label":o["thumb-label"]})])}})}),{}}});function WLe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?Zt(ya,null,[Zt("span",{class:"v-combobox__unmask"},[t.substr(0,e)]),Zt("span",{class:"v-combobox__mask"},[t.substr(e,o)]),Zt("span",{class:"v-combobox__unmask"},[t.substr(e+o)])]):t}const YLe=ti({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...fue({filterKeys:["title"]}),...uue({hideNoData:!0,returnObject:!0}),...__(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ST({transition:!1})},"VCombobox"),vue=ta()({name:"VCombobox",props:YLe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:search":t=>!0,"update:menu":t=>!0},setup(t,e){var he;let{emit:o,slots:f}=e;const{t:P}=Sx(),d=ei(),l=Ai(!1),n=Ai(!0),c=Ai(!1),b=ei(),i=ei(),O=Al(t,"menu"),w=jn({get:()=>O.value,set:se=>{var ae;O.value&&!se&&((ae=b.value)!=null&&ae.ΨopenChildren)||(O.value=se)}}),y=Ai(-1);let p=!1;const a=jn(()=>{var se;return(se=d.value)==null?void 0:se.color}),u=jn(()=>w.value?t.closeText:t.openText),{items:h,transformIn:m,transformOut:v}=iue(t),{textColorClasses:_,textColorStyles:S}=$v(a),A=Al(t,"modelValue",[],se=>m(fm(se)),se=>{const ae=v(se);return t.multiple?ae:ae[0]??null}),x=Cq(),R=jn(()=>!!(t.chips||f.chip)),M=jn(()=>R.value||!!f.selection),T=Ai(!t.multiple&&!M.value?((he=A.value[0])==null?void 0:he.title)??"":""),E=jn({get:()=>T.value,set:se=>{var ae;if(T.value=se??"",!t.multiple&&!M.value&&(A.value=[Z4(t,se)]),se&&t.multiple&&((ae=t.delimiters)!=null&&ae.length)){const ce=se.split(new RegExp(`(?:${t.delimiters.join("|")})+`));ce.length>1&&(ce.forEach(de=>{de=de.trim(),de&&q(Z4(t,de))}),T.value="")}se||(y.value=-1),n.value=!se}}),C=jn(()=>typeof t.counterValue=="function"?t.counterValue(A.value):typeof t.counterValue=="number"?t.counterValue:t.multiple?A.value.length:E.value.length);Ni(T,se=>{p?lc(()=>p=!1):l.value&&!w.value&&(w.value=!0),o("update:search",se)}),Ni(A,se=>{var ae;!t.multiple&&!M.value&&(T.value=((ae=se[0])==null?void 0:ae.title)??"")});const{filteredItems:L,getMatches:D}=due(t,h,()=>n.value?"":E.value),k=jn(()=>t.hideSelected?L.value.filter(se=>!A.value.some(ae=>ae.value===se.value)):L.value),I=jn(()=>A.value.map(se=>se.value)),z=jn(()=>{var ae;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&E.value===((ae=k.value[0])==null?void 0:ae.title))&&k.value.length>0&&!n.value&&!c.value}),$=jn(()=>t.hideNoData&&!k.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),Q=ei(),{onListScroll:j,onListKeydown:U}=cue(Q,d);function X(se){p=!0,t.openOnClear&&(w.value=!0)}function te(){$.value||(w.value=!0)}function W(se){$.value||(l.value&&(se.preventDefault(),se.stopPropagation()),w.value=!w.value)}function K(se){var de;if(wPe(se)||t.readonly||x!=null&&x.isReadonly.value)return;const ae=d.value.selectionStart,ce=A.value.length;if((y.value>-1||["Enter","ArrowDown","ArrowUp"].includes(se.key))&&se.preventDefault(),["Enter","ArrowDown"].includes(se.key)&&(w.value=!0),["Escape"].includes(se.key)&&(w.value=!1),["Enter","Escape","Tab"].includes(se.key)&&(z.value&&["Enter","Tab"].includes(se.key)&&!A.value.some(ve=>{let{value:ye}=ve;return ye===k.value[0].value})&&q(L.value[0]),n.value=!0),se.key==="ArrowDown"&&z.value&&((de=Q.value)==null||de.focus("next")),se.key==="Enter"&&E.value&&(q(Z4(t,E.value)),M.value&&(T.value="")),["Backspace","Delete"].includes(se.key)){if(!t.multiple&&M.value&&A.value.length>0&&!E.value)return q(A.value[0],!1);if(~y.value){const ve=y.value;q(A.value[y.value],!1),y.value=ve>=ce-1?ce-2:ve}else se.key==="Backspace"&&!E.value&&(y.value=ce-1)}if(t.multiple){if(se.key==="ArrowLeft"){if(y.value<0&&ae>0)return;const ve=y.value>-1?y.value-1:ce-1;A.value[ve]?y.value=ve:(y.value=-1,d.value.setSelectionRange(E.value.length,E.value.length))}if(se.key==="ArrowRight"){if(y.value<0)return;const ve=y.value+1;A.value[ve]?y.value=ve:(y.value=-1,d.value.setSelectionRange(0,0))}}}function oe(){var se;l.value&&(n.value=!0,(se=d.value)==null||se.focus())}function q(se){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!se||se.props.disabled))if(t.multiple){const ce=A.value.findIndex(ve=>t.valueComparator(ve.value,se.value)),de=ae??!~ce;if(~ce){const ve=de?[...A.value,se]:[...A.value];ve.splice(ce,1),A.value=ve}else de&&(A.value=[...A.value,se]);t.clearOnSelect&&(E.value="")}else{const ce=ae!==!1;A.value=ce?[se]:[],T.value=ce&&!M.value?se.title:"",lc(()=>{w.value=!1,n.value=!0})}}function Y(se){l.value=!0,setTimeout(()=>{c.value=!0})}function ee(se){c.value=!1}function me(se){(se==null||se===""&&!t.multiple&&!M.value)&&(A.value=[])}return Ni(l,(se,ae)=>{if(!(se||se===ae)&&(y.value=-1,w.value=!1,E.value)){if(t.multiple){q(Z4(t,E.value));return}if(!M.value)return;A.value.some(ce=>{let{title:de}=ce;return de===E.value})?T.value="":q(Z4(t,E.value))}}),Ni(w,()=>{if(!t.hideSelected&&w.value&&A.value.length){const se=k.value.findIndex(ae=>A.value.some(ce=>t.valueComparator(ce.value,ae.value)));ou&&window.requestAnimationFrame(()=>{var ae;se>=0&&((ae=i.value)==null||ae.scrollToIndex(se))})}}),Ni(()=>t.items,(se,ae)=>{w.value||l.value&&!ae.length&&se.length&&(w.value=!0)}),Ca(()=>{const se=!!(!t.hideNoData||k.value.length||f["prepend-item"]||f["append-item"]||f["no-data"]),ae=A.value.length>0,ce=um.filterProps(t);return Zt(um,Di({ref:d},ce,{modelValue:E.value,"onUpdate:modelValue":[de=>E.value=de,me],focused:l.value,"onUpdate:focused":de=>l.value=de,validationValue:A.externalValue,counterValue:C.value,dirty:ae,class:["v-combobox",{"v-combobox--active-menu":w.value,"v-combobox--chips":!!t.chips,"v-combobox--selection-slot":!!M.value,"v-combobox--selecting-index":y.value>-1,[`v-combobox--${t.multiple?"multiple":"single"}`]:!0},t.class],style:t.style,readonly:t.readonly,placeholder:ae?void 0:t.placeholder,"onClick:clear":X,"onMousedown:control":te,onKeydown:K}),{...f,default:()=>Zt(ya,null,[Zt(hS,Di({ref:b,modelValue:w.value,"onUpdate:modelValue":de=>w.value=de,activator:"parent",contentClass:"v-combobox__content",disabled:$.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:oe},t.menuProps),{default:()=>[se&&Zt(m_,Di({ref:Q,selected:I.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:de=>de.preventDefault(),onKeydown:U,onFocusin:Y,onFocusout:ee,onScrollPassive:j,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var de,ve,ye;return[(de=f["prepend-item"])==null?void 0:de.call(f),!k.value.length&&!t.hideNoData&&(((ve=f["no-data"])==null?void 0:ve.call(f))??Zt(Bf,{title:P(t.noDataText)},null)),Zt(lue,{ref:i,renderless:!0,items:k.value},{default:_e=>{var ze;let{item:Se,index:Te,itemRef:Pe}=_e;const Ie=Di(Se.props,{ref:Pe,key:Te,active:z.value&&Te===0?!0:void 0,onClick:()=>q(Se,null)});return((ze=f.item)==null?void 0:ze.call(f,{item:Se,index:Te,props:Ie}))??Zt(Bf,Di(Ie,{role:"option"}),{prepend:De=>{let{isSelected:He}=De;return Zt(ya,null,[t.multiple&&!t.hideSelected?Zt(LM,{key:Se.value,modelValue:He,ripple:!1,tabindex:"-1"},null):void 0,Se.props.prependAvatar&&Zt(PO,{image:Se.props.prependAvatar},null),Se.props.prependIcon&&Zt(Tl,{icon:Se.props.prependIcon},null)])},title:()=>{var De,He;return n.value?Se.title:WLe(Se.title,(De=D(Se))==null?void 0:De.title,((He=E.value)==null?void 0:He.length)??0)}})}}),(ye=f["append-item"])==null?void 0:ye.call(f)]}})]}),A.value.map((de,ve)=>{function ye(Pe){Pe.stopPropagation(),Pe.preventDefault(),q(de,!1)}const _e={"onClick:close":ye,onKeydown(Pe){Pe.key!=="Enter"&&Pe.key!==" "||(Pe.preventDefault(),Pe.stopPropagation(),ye(Pe))},onMousedown(Pe){Pe.preventDefault(),Pe.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},Se=R.value?!!f.chip:!!f.selection,Te=Se?dq(R.value?f.chip({item:de,index:ve,props:_e}):f.selection({item:de,index:ve})):void 0;if(!(Se&&!Te))return Zt("div",{key:de.value,class:["v-combobox__selection",ve===y.value&&["v-combobox__selection--selected",_.value]],style:ve===y.value?S.value:{}},[R.value?f.chip?Zt(du,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:de.title}}},{default:()=>[Te]}):Zt(AD,Di({key:"chip",closable:t.closableChips,size:"small",text:de.title,disabled:de.props.disabled},_e),null):Te??Zt("span",{class:"v-combobox__selection-text"},[de.title,t.multiple&&ve0&&f.push(P),f}function GLe(t,e,o){const f=o??Pq[e.slice(-2).toUpperCase()]??0,P=new Date(t);for(;P.getDay()!==f;)P.setDate(P.getDate()-1);return P}function KLe(t,e){const o=new Date(t),f=((Pq[e.slice(-2).toUpperCase()]??0)+6)%7;for(;o.getDay()!==f;)o.setDate(o.getDate()+1);return o}function s_e(t){return new Date(t.getFullYear(),t.getMonth(),1)}function l_e(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function JLe(t){const e=t.split("-").map(Number);return new Date(e[0],e[1]-1,e[2])}const eIe=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function c_e(t){if(t==null)return new Date;if(t instanceof Date)return t;if(typeof t=="string"){let e;if(eIe.test(t))return JLe(t);if(e=Date.parse(t),!isNaN(e))return new Date(e)}return null}const _ge=new Date(2e3,0,2);function tIe(t,e){const o=e??Pq[t.slice(-2).toUpperCase()]??0;return lT(7).map(f=>{const P=new Date(_ge);return P.setDate(_ge.getDate()+o+f),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(P)})}function nIe(t,e,o,f){const P=c_e(t)??new Date,d=f==null?void 0:f[e];if(typeof d=="function")return d(P,e,o);let l={};switch(e){case"fullDate":l={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":l={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const n=P.getDate(),c=new Intl.DateTimeFormat(o,{month:"long"}).format(P);return`${n} ${c}`;case"normalDateWithWeekday":l={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":l={month:"short",day:"numeric"};break;case"year":l={year:"numeric"};break;case"month":l={month:"long"};break;case"monthShort":l={month:"short"};break;case"monthAndYear":l={month:"long",year:"numeric"};break;case"monthAndDate":l={month:"long",day:"numeric"};break;case"weekday":l={weekday:"long"};break;case"weekdayShort":l={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(o).format(P.getDate());case"hours12h":l={hour:"numeric",hour12:!0};break;case"hours24h":l={hour:"numeric",hour12:!1};break;case"minutes":l={minute:"numeric"};break;case"seconds":l={second:"numeric"};break;case"fullTime":l={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":l={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":l={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":l={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":l={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":l={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":l={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":l={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":l={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":l={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:l=d??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(o,l).format(P)}function rIe(t,e){const o=t.toJsDate(e),f=o.getFullYear(),P=Mme(String(o.getMonth()+1),2,"0"),d=Mme(String(o.getDate()),2,"0");return`${f}-${P}-${d}`}function oIe(t){const[e,o,f]=t.split("-").map(Number);return new Date(e,o-1,f)}function iIe(t,e){const o=new Date(t);return o.setMinutes(o.getMinutes()+e),o}function aIe(t,e){const o=new Date(t);return o.setHours(o.getHours()+e),o}function sIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e),o}function lIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e*7),o}function cIe(t,e){const o=new Date(t);return o.setDate(1),o.setMonth(o.getMonth()+e),o}function uIe(t){return t.getFullYear()}function fIe(t){return t.getMonth()}function dIe(t){return t.getDate()}function hIe(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function pIe(t){return new Date(t.getFullYear(),t.getMonth()-1,1)}function mIe(t){return t.getHours()}function gIe(t){return t.getMinutes()}function vIe(t){return new Date(t.getFullYear(),0,1)}function yIe(t){return new Date(t.getFullYear(),11,31)}function bIe(t,e){return yZ(t,e[0])&&wIe(t,e[1])}function xIe(t){const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function yZ(t,e){return t.getTime()>e.getTime()}function _Ie(t,e){return yZ(Hse(t),Hse(e))}function wIe(t,e){return t.getTime(){o.locale=t.locale[f]??f??o.locale}),o}const zIe=ti({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),u_e=Symbol.for("vuetify:datatable:expanded");function FIe(t){const e=Oi(t,"expandOnClick"),o=Al(t,"expanded",t.expanded,n=>new Set(n),n=>[...n.values()]);function f(n,c){const b=new Set(o.value);c?b.add(n.value):b.delete(n.value),o.value=b}function P(n){return o.value.has(n.value)}function d(n){f(n,!P(n))}const l={expand:f,expanded:o,expandOnClick:e,isExpanded:P,toggleExpand:d};return gf(u_e,l),l}function f_e(){const t=vl(u_e);if(!t)throw new Error("foo");return t}const NIe=ti({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),d_e=Symbol.for("vuetify:data-table-group");function $Ie(t){return{groupBy:Al(t,"groupBy")}}function VIe(t){const{disableSort:e,groupBy:o,sortBy:f}=t,P=ei(new Set),d=jn(()=>o.value.map(i=>({...i,order:i.order??!1})).concat(e!=null&&e.value?[]:f.value));function l(i){return P.value.has(i.id)}function n(i){const O=new Set(P.value);l(i)?O.delete(i.id):O.add(i.id),P.value=O}function c(i){function O(w){const y=[];for(const p of w.items)"type"in p&&p.type==="group"?y.push(...O(p)):y.push(p);return y}return O({type:"group",items:i,id:"dummy",key:"dummy",value:"dummy",depth:0})}const b={sortByWithGroups:d,toggleGroup:n,opened:P,groupBy:o,extractRows:c,isGroupOpen:l};return gf(d_e,b),b}function h_e(){const t=vl(d_e);if(!t)throw new Error("Missing group!");return t}function UIe(t,e){if(!t.length)return[];const o=new Map;for(const f of t){const P=yT(f.raw,e);o.has(P)||o.set(P,[]),o.get(P).push(f)}return o}function p_e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!e.length)return[];const P=UIe(t,e[0]),d=[],l=e.slice(1);return P.forEach((n,c)=>{const b=e[0],i=`${f}_${b}_${c}`;d.push({depth:o,id:i,key:b,value:c,items:l.length?p_e(n,l,o+1,i):n,type:"group"})}),d}function m_e(t,e){const o=[];for(const f of t)"type"in f&&f.type==="group"?(f.value!=null&&o.push(f),(e.has(f.id)||f.value==null)&&o.push(...m_e(f.items,e))):o.push(f);return o}function jIe(t,e,o){return{flatItems:jn(()=>{if(!e.value.length)return t.value;const P=p_e(t.value,e.value.map(d=>d.key));return m_e(P,o.value)})}}function QIe(t){let{page:e,itemsPerPage:o,sortBy:f,groupBy:P,search:d}=t;const l=ph("VDataTable"),n=jn(()=>({page:e.value,itemsPerPage:o.value,sortBy:f.value,groupBy:P.value,search:d.value}));let c=null;Ni(n,()=>{yS(c,n.value)||(c&&c.search!==n.value.search&&(e.value=1),l.emit("update:options",n.value),c=n.value)},{deep:!0,immediate:!0})}const HIe=ti({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),g_e=Symbol.for("vuetify:data-table-pagination");function ZIe(t){const e=Al(t,"page",void 0,f=>+(f??1)),o=Al(t,"itemsPerPage",void 0,f=>+(f??10));return{page:e,itemsPerPage:o}}function qIe(t){const{page:e,itemsPerPage:o,itemsLength:f}=t,P=jn(()=>o.value===-1?0:o.value*(e.value-1)),d=jn(()=>o.value===-1?f.value:Math.min(f.value,P.value+o.value)),l=jn(()=>o.value===-1||f.value===0?1:Math.ceil(f.value/o.value));kp(()=>{e.value>l.value&&(e.value=l.value)});function n(w){o.value=w,e.value=1}function c(){e.value=Qg(e.value+1,1,l.value)}function b(){e.value=Qg(e.value-1,1,l.value)}function i(w){e.value=Qg(w,1,l.value)}const O={page:e,itemsPerPage:o,startIndex:P,stopIndex:d,pageCount:l,itemsLength:f,nextPage:c,prevPage:b,setPage:i,setItemsPerPage:n};return gf(g_e,O),O}function WIe(){const t=vl(g_e);if(!t)throw new Error("Missing pagination!");return t}function YIe(t){const e=ph("usePaginatedItems"),{items:o,startIndex:f,stopIndex:P,itemsPerPage:d}=t,l=jn(()=>d.value<=0?o.value:o.value.slice(f.value,P.value));return Ni(l,n=>{e.emit("update:currentItems",n)}),{paginatedItems:l}}const XIe={showSelectAll:!1,allSelected:()=>[],select:t=>{var f;let{items:e,value:o}=t;return new Set(o?[(f=e[0])==null?void 0:f.value]:[])},selectAll:t=>{let{selected:e}=t;return e}},v_e={showSelectAll:!0,allSelected:t=>{let{currentPage:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const P of e)o?f.add(P.value):f.delete(P.value);return f},selectAll:t=>{let{value:e,currentPage:o,selected:f}=t;return v_e.select({items:o,value:e,selected:f})}},y_e={showSelectAll:!0,allSelected:t=>{let{allItems:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const P of e)o?f.add(P.value):f.delete(P.value);return f},selectAll:t=>{let{value:e,allItems:o,selected:f}=t;return y_e.select({items:o,value:e,selected:f})}},GIe=ti({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:yS}},"DataTable-select"),b_e=Symbol.for("vuetify:data-table-selection");function KIe(t,e){let{allItems:o,currentPage:f}=e;const P=Al(t,"modelValue",t.modelValue,h=>new Set(fm(h).map(m=>{var v;return((v=o.value.find(_=>t.valueComparator(m,_.value)))==null?void 0:v.value)??m})),h=>[...h.values()]),d=jn(()=>o.value.filter(h=>h.selectable)),l=jn(()=>f.value.filter(h=>h.selectable)),n=jn(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single":return XIe;case"all":return y_e;case"page":default:return v_e}});function c(h){return fm(h).every(m=>P.value.has(m.value))}function b(h){return fm(h).some(m=>P.value.has(m.value))}function i(h,m){const v=n.value.select({items:h,value:m,selected:new Set(P.value)});P.value=v}function O(h){i([h],!c([h]))}function w(h){const m=n.value.selectAll({value:h,allItems:d.value,currentPage:l.value,selected:new Set(P.value)});P.value=m}const y=jn(()=>P.value.size>0),p=jn(()=>{const h=n.value.allSelected({allItems:d.value,currentPage:l.value});return!!h.length&&c(h)}),a=jn(()=>n.value.showSelectAll),u={toggleSelect:O,select:i,selectAll:w,isSelected:c,isSomeSelected:b,someSelected:y,allSelected:p,showSelectAll:a};return gf(b_e,u),u}function Rq(){const t=vl(b_e);if(!t)throw new Error("Missing selection!");return t}const JIe=ti({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),x_e=Symbol.for("vuetify:data-table-sort");function eDe(t){const e=Al(t,"sortBy"),o=Oi(t,"mustSort"),f=Oi(t,"multiSort");return{sortBy:e,mustSort:o,multiSort:f}}function tDe(t){const{sortBy:e,mustSort:o,multiSort:f,page:P}=t,d=c=>{if(c.key==null)return;let b=e.value.map(O=>({...O}))??[];const i=b.find(O=>O.key===c.key);i?i.order==="desc"?o.value?i.order="asc":b=b.filter(O=>O.key!==c.key):i.order="desc":f.value?b=[...b,{key:c.key,order:"asc"}]:b=[{key:c.key,order:"asc"}],e.value=b,P&&(P.value=1)};function l(c){return!!e.value.find(b=>b.key===c.key)}const n={sortBy:e,toggleSort:d,isSorted:l};return gf(x_e,n),n}function __e(){const t=vl(x_e);if(!t)throw new Error("Missing sort!");return t}function nDe(t,e,o,f){const P=Sx();return{sortedItems:jn(()=>{var l,n;return o.value.length?rDe(e.value,o.value,P.current.value,{transform:f==null?void 0:f.transform,sortFunctions:{...t.customKeySort,...(l=f==null?void 0:f.sortFunctions)==null?void 0:l.value},sortRawFunctions:(n=f==null?void 0:f.sortRawFunctions)==null?void 0:n.value}):e.value})}}function rDe(t,e,o,f){const P=new Intl.Collator(o,{sensitivity:"accent",usage:"sort"});return t.map(l=>[l,f!=null&&f.transform?f.transform(l):l]).sort((l,n)=>{var c,b;for(let i=0;im!=null?m.toString().toLocaleLowerCase():m),p!==a)return YQ(p)&&YQ(a)?0:YQ(p)?-1:YQ(a)?1:!isNaN(p)&&!isNaN(a)?Number(p)-Number(a):P.compare(p,a)}}return 0}).map(l=>{let[n]=l;return n})}function oDe(){const t=ei([]);N1e(()=>t.value=[]);function e(o,f){t.value[f]=o}return{refs:t,updateRef:e}}const iDe=ti({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:t=>t.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:t=>t%1===0},totalVisible:[Number,String],firstIcon:{type:Cl,default:"$first"},prevIcon:{type:Cl,default:"$prev"},nextIcon:{type:Cl,default:"$next"},lastIcon:{type:Cl,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...k_(),...xs(),...Qv(),...jv(),...pm(),...RM(),...Tu({tag:"nav"}),...Ff(),...Tx({variant:"text"})},"VPagination"),Sge=ta()({name:"VPagination",props:iDe(),emits:{"update:modelValue":t=>!0,first:t=>!0,prev:t=>!0,next:t=>!0,last:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=Al(t,"modelValue"),{t:d,n:l}=Sx(),{isRtl:n}=qg(),{themeClasses:c}=Md(t),{width:b}=bS(),i=Ai(-1);ib(void 0,{scoped:!0});const{resizeRef:O}=fS(R=>{if(!R.length)return;const{target:M,contentRect:T}=R[0],E=M.querySelector(".v-pagination__list > *");if(!E)return;const C=T.width,L=E.offsetWidth+parseFloat(getComputedStyle(E).marginRight)*2;i.value=a(C,L)}),w=jn(()=>parseInt(t.length,10)),y=jn(()=>parseInt(t.start,10)),p=jn(()=>t.totalVisible!=null?parseInt(t.totalVisible,10):i.value>=0?i.value:a(b.value,58));function a(R,M){const T=t.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((R-M*T)/M).toFixed(2)))}const u=jn(()=>{if(w.value<=0||isNaN(w.value)||w.value>Number.MAX_SAFE_INTEGER)return[];if(p.value<=0)return[];if(p.value===1)return[P.value];if(w.value<=p.value)return lT(w.value,y.value);const R=p.value%2===0,M=R?p.value/2:Math.floor(p.value/2),T=R?M:M+1,E=w.value-M;if(T-P.value>=0)return[...lT(Math.max(1,p.value-1),y.value),t.ellipsis,w.value];if(P.value-E>=(R?1:0)){const C=p.value-1,L=w.value-C+y.value;return[y.value,t.ellipsis,...lT(C,L)]}else{const C=Math.max(1,p.value-3),L=C===1?P.value:P.value-Math.ceil(C/2)+y.value;return[y.value,t.ellipsis,...lT(C,L),t.ellipsis,w.value]}});function h(R,M,T){R.preventDefault(),P.value=M,T&&f(T,M)}const{refs:m,updateRef:v}=oDe();ib({VPaginationBtn:{color:Oi(t,"color"),border:Oi(t,"border"),density:Oi(t,"density"),size:Oi(t,"size"),variant:Oi(t,"variant"),rounded:Oi(t,"rounded"),elevation:Oi(t,"elevation")}});const _=jn(()=>u.value.map((R,M)=>{const T=E=>v(E,M);if(typeof R=="string")return{isActive:!1,key:`ellipsis-${M}`,page:R,props:{ref:T,ellipsis:!0,icon:!0,disabled:!0}};{const E=R===P.value;return{isActive:E,key:R,page:l(R),props:{ref:T,ellipsis:!1,icon:!0,disabled:!!t.disabled||+t.length<2,color:E?t.activeColor:t.color,"aria-current":E,"aria-label":d(E?t.currentPageAriaLabel:t.pageAriaLabel,R),onClick:C=>h(C,R)}}}})),S=jn(()=>{const R=!!t.disabled||P.value<=y.value,M=!!t.disabled||P.value>=y.value+w.value-1;return{first:t.showFirstLastPage?{icon:n.value?t.lastIcon:t.firstIcon,onClick:T=>h(T,y.value,"first"),disabled:R,"aria-label":d(t.firstAriaLabel),"aria-disabled":R}:void 0,prev:{icon:n.value?t.nextIcon:t.prevIcon,onClick:T=>h(T,P.value-1,"prev"),disabled:R,"aria-label":d(t.previousAriaLabel),"aria-disabled":R},next:{icon:n.value?t.prevIcon:t.nextIcon,onClick:T=>h(T,P.value+1,"next"),disabled:M,"aria-label":d(t.nextAriaLabel),"aria-disabled":M},last:t.showFirstLastPage?{icon:n.value?t.firstIcon:t.lastIcon,onClick:T=>h(T,y.value+w.value-1,"last"),disabled:M,"aria-label":d(t.lastAriaLabel),"aria-disabled":M}:void 0}});function A(){var M;const R=P.value-y.value;(M=m.value[R])==null||M.$el.focus()}function x(R){R.key===Ese.left&&!t.disabled&&P.value>+t.start?(P.value=P.value-1,lc(A)):R.key===Ese.right&&!t.disabled&&P.valueZt(t.tag,{ref:O,class:["v-pagination",c.value,t.class],style:t.style,role:"navigation","aria-label":d(t.ariaLabel),onKeydown:x,"data-test":"v-pagination-root"},{default:()=>[Zt("ul",{class:"v-pagination__list"},[t.showFirstLastPage&&Zt("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[o.first?o.first(S.value.first):Zt(ps,Di({_as:"VPaginationBtn"},S.value.first),null)]),Zt("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[o.prev?o.prev(S.value.prev):Zt(ps,Di({_as:"VPaginationBtn"},S.value.prev),null)]),_.value.map((R,M)=>Zt("li",{key:R.key,class:["v-pagination__item",{"v-pagination__item--is-active":R.isActive}],"data-test":"v-pagination-item"},[o.item?o.item(R):Zt(ps,Di({_as:"VPaginationBtn"},R.props),{default:()=>[R.page]})])),Zt("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[o.next?o.next(S.value.next):Zt(ps,Di({_as:"VPaginationBtn"},S.value.next),null)]),t.showFirstLastPage&&Zt("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[o.last?o.last(S.value.last):Zt(ps,Di({_as:"VPaginationBtn"},S.value.last),null)])])]})),{}}}),w_e=ti({prevIcon:{type:Cl,default:"$prev"},nextIcon:{type:Cl,default:"$next"},firstIcon:{type:Cl,default:"$first"},lastIcon:{type:Cl,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),kge=ta()({name:"VDataTableFooter",props:w_e(),setup(t,e){let{slots:o}=e;const{t:f}=Sx(),{page:P,pageCount:d,startIndex:l,stopIndex:n,itemsLength:c,itemsPerPage:b,setItemsPerPage:i}=WIe(),O=jn(()=>t.itemsPerPageOptions.map(w=>typeof w=="number"?{value:w,title:w===-1?f("$vuetify.dataFooter.itemsPerPageAll"):String(w)}:{...w,title:isNaN(Number(w.title))?f(w.title):w.title}));return Ca(()=>{var y;const w=Sge.filterProps(t);return Zt("div",{class:"v-data-table-footer"},[(y=o.prepend)==null?void 0:y.call(o),Zt("div",{class:"v-data-table-footer__items-per-page"},[Zt("span",null,[f(t.itemsPerPageText)]),Zt(ED,{items:O.value,modelValue:b.value,"onUpdate:modelValue":p=>i(Number(p)),density:"compact",variant:"outlined","hide-details":!0},null)]),Zt("div",{class:"v-data-table-footer__info"},[Zt("div",null,[f(t.pageText,c.value?l.value+1:0,n.value,c.value)])]),Zt("div",{class:"v-data-table-footer__pagination"},[Zt(Sge,Di({modelValue:P.value,"onUpdate:modelValue":p=>P.value=p,density:"comfortable","first-aria-label":t.firstPageLabel,"last-aria-label":t.lastPageLabel,length:d.value,"next-aria-label":t.nextPageLabel,"previous-aria-label":t.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":t.showCurrentPage?1:0,variant:"plain"},w),null)])])}),{}}}),bZ=r9e({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(t,e)=>{let{slots:o}=e;const f=t.tag??"td";return Zt(f,{class:["v-data-table__td",{"v-data-table-column--fixed":t.fixed,"v-data-table-column--last-fixed":t.lastFixed,"v-data-table-column--no-padding":t.noPadding,"v-data-table-column--nowrap":t.nowrap},`v-data-table-column--align-${t.align}`],style:{height:Ma(t.height),width:Ma(t.width),maxWidth:Ma(t.maxWidth),left:Ma(t.fixedOffset||null)}},{default:()=>{var P;return[(P=o.default)==null?void 0:P.call(o)]}})}),aDe=ti({headers:Array},"DataTable-header"),O_e=Symbol.for("vuetify:data-table-headers"),S_e={title:"",sortable:!1},sDe={...S_e,width:48};function lDe(){const e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(o=>({element:o,priority:0}));return{enqueue:(o,f)=>{let P=!1;for(let d=0;df){e.splice(d,0,{element:o,priority:f}),P=!0;break}P||e.push({element:o,priority:f})},size:()=>e.length,count:()=>{let o=0;if(!e.length)return 0;const f=Math.floor(e[0].priority);for(let P=0;Pe.shift()}}function Zse(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!t.children)e.push(t);else for(const o of t.children)Zse(o,e);return e}function k_e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const o of t)o.key&&e.add(o.key),o.children&&k_e(o.children,e);return e}function cDe(t){if(t.key){if(t.key==="data-table-group")return S_e;if(["data-table-expand","data-table-select"].includes(t.key))return sDe}}function yue(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.children?Math.max(e,...t.children.map(o=>yue(o,e+1))):e}function uDe(t){let e=!1;function o(d){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(d)if(l&&(d.fixed=!0),d.fixed)if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n],!0);else e?isNaN(+d.width)&&(`${d.key}`,void 0):d.lastFixed=!0,e=!0;else if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n]);else e=!1}for(let d=t.length-1;d>=0;d--)o(t[d]);function f(d){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!d)return l;if(d.children){d.fixedOffset=l;for(const n of d.children)l=f(n,l)}else d.fixed&&(d.fixedOffset=l,l+=parseFloat(d.width||"0")||0);return l}let P=0;for(const d of t)P=f(d,P)}function fDe(t,e){const o=[];let f=0;const P=lDe(t);for(;P.size()>0;){let l=P.count();const n=[];let c=1;for(;l>0;){const{element:b,priority:i}=P.dequeue(),O=e-f-yue(b);if(n.push({...b,rowspan:O??1,colspan:b.children?Zse(b).length:1}),b.children)for(const w of b.children){const y=i%1+c/Math.pow(10,f+2);P.enqueue(w,f+O+y)}c+=1,l-=1}f+=1,o.push(n)}return{columns:t.map(l=>Zse(l)).flat(),headers:o}}function T_e(t){const e=[];for(const o of t){const f={...cDe(o),...o},P=f.key??(typeof f.value=="string"?f.value:null),d=f.value??P??null,l={...f,key:P,value:d,sortable:f.sortable??(f.key!=null||!!f.sort),children:f.children?T_e(f.children):void 0};e.push(l)}return e}function dDe(t,e){const o=ei([]),f=ei([]),P=ei({}),d=ei({}),l=ei({});kp(()=>{var a,u,h;const b=(t.headers||Object.keys(t.items[0]??{}).map(m=>({key:m,title:v_(m)}))).slice(),i=k_e(b);(a=e==null?void 0:e.groupBy)!=null&&a.value.length&&!i.has("data-table-group")&&b.unshift({key:"data-table-group",title:"Group"}),(u=e==null?void 0:e.showSelect)!=null&&u.value&&!i.has("data-table-select")&&b.unshift({key:"data-table-select"}),(h=e==null?void 0:e.showExpand)!=null&&h.value&&!i.has("data-table-expand")&&b.push({key:"data-table-expand"});const O=T_e(b);uDe(O);const w=Math.max(...O.map(m=>yue(m)))+1,y=fDe(O,w);o.value=y.headers,f.value=y.columns;const p=y.headers.flat(1);for(const m of p)m.key&&(m.sortable&&(m.sort&&(P.value[m.key]=m.sort),m.sortRaw&&(d.value[m.key]=m.sortRaw)),m.filter&&(l.value[m.key]=m.filter))});const n={headers:o,columns:f,sortFunctions:P,sortRawFunctions:d,filterFunctions:l};return gf(O_e,n),n}function Lq(){const t=vl(O_e);if(!t)throw new Error("Missing headers!");return t}const C_e=ti({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:Cl,default:"$sortAsc"},sortDescIcon:{type:Cl,default:"$sortDesc"},headerProps:{type:Object},...CD(),...bq()},"VDataTableHeaders"),Tge=ta()({name:"VDataTableHeaders",props:C_e(),setup(t,e){let{slots:o}=e;const{t:f}=Sx(),{toggleSort:P,sortBy:d,isSorted:l}=__e(),{someSelected:n,allSelected:c,selectAll:b,showSelectAll:i}=Rq(),{columns:O,headers:w}=Lq(),{loaderClasses:y}=TD(t);function p(R,M){if(!(!t.sticky&&!R.fixed))return{position:"sticky",left:R.fixed?Ma(R.fixedOffset):void 0,top:t.sticky?`calc(var(--v-table-header-height) * ${M})`:void 0}}function a(R){const M=d.value.find(T=>T.key===R.key);return M?M.order==="asc"?t.sortAscIcon:t.sortDescIcon:t.sortAscIcon}const{backgroundColorClasses:u,backgroundColorStyles:h}=og(t,"color"),{displayClasses:m,mobile:v}=bS(t),_=jn(()=>({headers:w.value,columns:O.value,toggleSort:P,isSorted:l,sortBy:d.value,someSelected:n.value,allSelected:c.value,selectAll:b,getSortIcon:a})),S=jn(()=>["v-data-table__th",{"v-data-table__th--sticky":t.sticky},m.value,y.value]),A=R=>{let{column:M,x:T,y:E}=R;const C=M.key==="data-table-select"||M.key==="data-table-expand",L=Di(t.headerProps??{},M.headerProps??{});return Zt(bZ,Di({tag:"th",align:M.align,class:[{"v-data-table__th--sortable":M.sortable&&!t.disableSort,"v-data-table__th--sorted":l(M),"v-data-table__th--fixed":M.fixed},...S.value],style:{width:Ma(M.width),minWidth:Ma(M.minWidth),maxWidth:Ma(M.maxWidth),...p(M,E)},colspan:M.colspan,rowspan:M.rowspan,onClick:M.sortable?()=>P(M):void 0,fixed:M.fixed,nowrap:M.nowrap,lastFixed:M.lastFixed,noPadding:C},L),{default:()=>{var I;const D=`header.${M.key}`,k={column:M,selectAll:b,isSorted:l,toggleSort:P,sortBy:d.value,someSelected:n.value,allSelected:c.value,getSortIcon:a};return o[D]?o[D](k):M.key==="data-table-select"?((I=o["header.data-table-select"])==null?void 0:I.call(o,k))??(i.value&&Zt(LM,{modelValue:c.value,indeterminate:n.value&&!c.value,"onUpdate:modelValue":b},null)):Zt("div",{class:"v-data-table-header__content"},[Zt("span",null,[M.title]),M.sortable&&!t.disableSort&&Zt(Tl,{key:"icon",class:"v-data-table-header__sort-icon",icon:a(M)},null),t.multiSort&&l(M)&&Zt("div",{key:"badge",class:["v-data-table-header__sort-badge",...u.value],style:h.value},[d.value.findIndex(z=>z.key===M.key)+1])])}})},x=()=>{const R=Di(t.headerProps??{}??{}),M=jn(()=>O.value.filter(E=>(E==null?void 0:E.sortable)&&!t.disableSort)),T=jn(()=>{if(O.value.find(C=>C.key==="data-table-select")!=null)return c.value?"$checkboxOn":n.value?"$checkboxIndeterminate":"$checkboxOff"});return Zt(bZ,Di({tag:"th",class:[...S.value],colspan:w.value.length+1},R),{default:()=>[Zt("div",{class:"v-data-table-header__content"},[Zt(ED,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:M.value,label:f("$vuetify.dataTable.sortBy"),multiple:t.multiSort,variant:"underlined","onClick:clear":()=>d.value=[],appendIcon:T.value,"onClick:append":()=>b(!c.value)},{...o,chip:E=>{var C;return Zt(AD,{onClick:(C=E.item.raw)!=null&&C.sortable?()=>P(E.item.raw):void 0,onMousedown:L=>{L.preventDefault(),L.stopPropagation()}},{default:()=>[E.item.title,Zt(Tl,{class:["v-data-table__td-sort-icon",l(E.item.raw)&&"v-data-table__td-sort-icon-active"],icon:a(E.item.raw),size:"small"},null)]})}})])]})};Ca(()=>v.value?Zt("tr",null,[Zt(x,null,null)]):Zt(ya,null,[o.headers?o.headers(_.value):w.value.map((R,M)=>Zt("tr",null,[R.map((T,E)=>Zt(A,{column:T,x:E,y:M},null))])),t.loading&&Zt("tr",{class:"v-data-table-progress"},[Zt("th",{colspan:O.value.length},[Zt(xq,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0},{default:o.loader})])])]))}}),hDe=ti({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),pDe=ta()({name:"VDataTableGroupHeaderRow",props:hDe(),setup(t,e){let{slots:o}=e;const{isGroupOpen:f,toggleGroup:P,extractRows:d}=h_e(),{isSelected:l,isSomeSelected:n,select:c}=Rq(),{columns:b}=Lq(),i=jn(()=>d([t.item]));return()=>Zt("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":t.item.depth}},[b.value.map(O=>{var w,y;if(O.key==="data-table-group"){const p=f(t.item)?"$expand":"$next",a=()=>P(t.item);return((w=o["data-table-group"])==null?void 0:w.call(o,{item:t.item,count:i.value.length,props:{icon:p,onClick:a}}))??Zt(bZ,{class:"v-data-table-group-header-row__column"},{default:()=>[Zt(ps,{size:"small",variant:"text",icon:p,onClick:a},null),Zt("span",null,[t.item.value]),Zt("span",null,[Cs("("),i.value.length,Cs(")")])]})}if(O.key==="data-table-select"){const p=l(i.value),a=n(i.value)&&!p,u=h=>c(i.value,h);return((y=o["data-table-select"])==null?void 0:y.call(o,{props:{modelValue:p,indeterminate:a,"onUpdate:modelValue":u}}))??Zt("td",null,[Zt(LM,{modelValue:p,indeterminate:a,"onUpdate:modelValue":u},null)])}return Zt("td",null,null)})])}}),mDe=ti({index:Number,item:Object,cellProps:[Object,Function],onClick:rg(),onContextmenu:rg(),onDblclick:rg(),...CD()},"VDataTableRow"),gDe=ta()({name:"VDataTableRow",props:mDe(),setup(t,e){let{slots:o}=e;const{displayClasses:f,mobile:P}=bS(t,"v-data-table__tr"),{isSelected:d,toggleSelect:l,someSelected:n,allSelected:c,selectAll:b}=Rq(),{isExpanded:i,toggleExpand:O}=f_e(),{toggleSort:w,sortBy:y,isSorted:p}=__e(),{columns:a}=Lq();Ca(()=>Zt("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(t.onClick||t.onContextmenu||t.onDblclick)},f.value],onClick:t.onClick,onContextmenu:t.onContextmenu,onDblclick:t.onDblclick},[t.item&&a.value.map((u,h)=>{const m=t.item,v=`item.${u.key}`,_=`header.${u.key}`,S={index:t.index,item:m.raw,internalItem:m,value:yT(m.columns,u.key),column:u,isSelected:d,toggleSelect:l,isExpanded:i,toggleExpand:O},A={column:u,selectAll:b,isSorted:p,toggleSort:w,sortBy:y.value,someSelected:n.value,allSelected:c.value,getSortIcon:()=>""},x=typeof t.cellProps=="function"?t.cellProps({index:S.index,item:S.item,internalItem:S.internalItem,value:S.value,column:u}):t.cellProps,R=typeof u.cellProps=="function"?u.cellProps({index:S.index,item:S.item,internalItem:S.internalItem,value:S.value}):u.cellProps;return Zt(bZ,Di({align:u.align,class:{"v-data-table__td--expanded-row":u.key==="data-table-expand","v-data-table__td--select-row":u.key==="data-table-select"},fixed:u.fixed,fixedOffset:u.fixedOffset,lastFixed:u.lastFixed,maxWidth:P.value?void 0:u.maxWidth,noPadding:u.key==="data-table-select"||u.key==="data-table-expand",nowrap:u.nowrap,width:P.value?void 0:u.width},x,R),{default:()=>{var T,E,C,L,D;if(o[v]&&!P.value)return(T=o[v])==null?void 0:T.call(o,S);if(u.key==="data-table-select")return((E=o["item.data-table-select"])==null?void 0:E.call(o,S))??Zt(LM,{disabled:!m.selectable,modelValue:d([m]),onClick:DH(()=>l(m),["stop"])},null);if(u.key==="data-table-expand")return((C=o["item.data-table-expand"])==null?void 0:C.call(o,S))??Zt(ps,{icon:i(m)?"$collapse":"$expand",size:"small",variant:"text",onClick:DH(()=>O(m),["stop"])},null);const M=sc(S.value);return P.value?Zt(ya,null,[Zt("div",{class:"v-data-table__td-title"},[((L=o[_])==null?void 0:L.call(o,A))??u.title]),Zt("div",{class:"v-data-table__td-value"},[((D=o[v])==null?void 0:D.call(o,S))??M])]):M}})})]))}}),A_e=ti({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...CD()},"VDataTableRows"),Cge=ta()({name:"VDataTableRows",inheritAttrs:!1,props:A_e(),setup(t,e){let{attrs:o,slots:f}=e;const{columns:P}=Lq(),{expandOnClick:d,toggleExpand:l,isExpanded:n}=f_e(),{isSelected:c,toggleSelect:b}=Rq(),{toggleGroup:i,isGroupOpen:O}=h_e(),{t:w}=Sx(),{mobile:y}=bS(t);return Ca(()=>{var p,a;return t.loading&&(!t.items.length||f.loading)?Zt("tr",{class:"v-data-table-rows-loading",key:"loading"},[Zt("td",{colspan:P.value.length},[((p=f.loading)==null?void 0:p.call(f))??w(t.loadingText)])]):!t.loading&&!t.items.length&&!t.hideNoData?Zt("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[Zt("td",{colspan:P.value.length},[((a=f["no-data"])==null?void 0:a.call(f))??w(t.noDataText)])]):Zt(ya,null,[t.items.map((u,h)=>{var _;if(u.type==="group"){const S={index:h,item:u,columns:P.value,isExpanded:n,toggleExpand:l,isSelected:c,toggleSelect:b,toggleGroup:i,isGroupOpen:O};return f["group-header"]?f["group-header"](S):Zt(pDe,Di({key:`group-header_${u.id}`,item:u},Hme(o,":group-header",()=>S)),f)}const m={index:h,item:u.raw,internalItem:u,columns:P.value,isExpanded:n,toggleExpand:l,isSelected:c,toggleSelect:b},v={...m,props:Di({key:`item_${u.key??u.index}`,onClick:d.value?()=>{l(u)}:void 0,index:h,item:u,cellProps:t.cellProps,mobile:y.value},Hme(o,":row",()=>m),typeof t.rowProps=="function"?t.rowProps({item:m.item,index:m.index,internalItem:m.internalItem}):t.rowProps)};return Zt(ya,{key:v.props.key},[f.item?f.item(v):Zt(gDe,v.props,f),n(u)&&((_=f["expanded-row"])==null?void 0:_.call(f,m))])})])}),{}}});const M_e=ti({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...xs(),...Qv(),...Tu(),...Ff()},"VTable"),Age=ta()({name:"VTable",props:M_e(),setup(t,e){let{slots:o,emit:f}=e;const{themeClasses:P}=Md(t),{densityClasses:d}=kx(t);return Ca(()=>Zt(t.tag,{class:["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!o.top,"v-table--has-bottom":!!o.bottom,"v-table--hover":t.hover},P.value,d.value,t.class],style:t.style},{default:()=>{var l,n,c;return[(l=o.top)==null?void 0:l.call(o),o.default?Zt("div",{class:"v-table__wrapper",style:{height:Ma(t.height)}},[Zt("table",null,[o.default()])]):(n=o.wrapper)==null?void 0:n.call(o),(c=o.bottom)==null?void 0:c.call(o)]}})),{}}}),vDe=ti({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function yDe(t,e,o,f){const P=t.returnObject?e:y1(e,t.itemValue),d=y1(e,t.itemSelectable,!0),l=f.reduce((n,c)=>(c.key!=null&&(n[c.key]=y1(e,c.value)),n),{});return{type:"item",key:t.returnObject?y1(e,t.itemValue):P,index:o,value:P,selectable:d,columns:l,raw:e}}function bDe(t,e,o){return e.map((f,P)=>yDe(t,f,P,o))}function xDe(t,e){return{items:jn(()=>bDe(t,t.items,e.value))}}const _De=ti({...A_e(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...zIe(),...NIe(),...aDe(),...vDe(),...GIe(),...JIe(),...C_e(),...M_e()},"DataTable"),wDe=ti({...HIe(),..._De(),...fue(),...w_e()},"VDataTable"),Iq=ta()({name:"VDataTable",props:wDe(),emits:{"update:modelValue":t=>!0,"update:page":t=>!0,"update:itemsPerPage":t=>!0,"update:sortBy":t=>!0,"update:options":t=>!0,"update:groupBy":t=>!0,"update:expanded":t=>!0,"update:currentItems":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{groupBy:P}=$Ie(t),{sortBy:d,multiSort:l,mustSort:n}=eDe(t),{page:c,itemsPerPage:b}=ZIe(t),{disableSort:i}=CM(t),{columns:O,headers:w,sortFunctions:y,sortRawFunctions:p,filterFunctions:a}=dDe(t,{groupBy:P,showSelect:Oi(t,"showSelect"),showExpand:Oi(t,"showExpand")}),{items:u}=xDe(t,O),h=Oi(t,"search"),{filteredItems:m}=due(t,u,h,{transform:q=>q.columns,customKeyFilter:a}),{toggleSort:v}=tDe({sortBy:d,multiSort:l,mustSort:n,page:c}),{sortByWithGroups:_,opened:S,extractRows:A,isGroupOpen:x,toggleGroup:R}=VIe({groupBy:P,sortBy:d,disableSort:i}),{sortedItems:M}=nDe(t,m,_,{transform:q=>({...q.raw,...q.columns}),sortFunctions:y,sortRawFunctions:p}),{flatItems:T}=jIe(M,P,S),E=jn(()=>T.value.length),{startIndex:C,stopIndex:L,pageCount:D,setItemsPerPage:k}=qIe({page:c,itemsPerPage:b,itemsLength:E}),{paginatedItems:I}=YIe({items:T,startIndex:C,stopIndex:L,itemsPerPage:b}),z=jn(()=>A(I.value)),{isSelected:$,select:Q,selectAll:j,toggleSelect:U,someSelected:X,allSelected:te}=KIe(t,{allItems:u,currentPage:z}),{isExpanded:W,toggleExpand:K}=FIe(t);QIe({page:c,itemsPerPage:b,sortBy:d,groupBy:P,search:h}),ib({VDataTableRows:{hideNoData:Oi(t,"hideNoData"),noDataText:Oi(t,"noDataText"),loading:Oi(t,"loading"),loadingText:Oi(t,"loadingText")}});const oe=jn(()=>({page:c.value,itemsPerPage:b.value,sortBy:d.value,pageCount:D.value,toggleSort:v,setItemsPerPage:k,someSelected:X.value,allSelected:te.value,isSelected:$,select:Q,selectAll:j,toggleSelect:U,isExpanded:W,toggleExpand:K,isGroupOpen:x,toggleGroup:R,items:z.value.map(q=>q.raw),internalItems:z.value,groupedItems:I.value,columns:O.value,headers:w.value}));return Ca(()=>{const q=kge.filterProps(t),Y=Tge.filterProps(t),ee=Cge.filterProps(t),me=Age.filterProps(t);return Zt(Age,Di({class:["v-data-table",{"v-data-table--show-select":t.showSelect,"v-data-table--loading":t.loading},t.class],style:t.style},me),{top:()=>{var he;return(he=f.top)==null?void 0:he.call(f,oe.value)},default:()=>{var he,se,ae,ce,de,ve;return f.default?f.default(oe.value):Zt(ya,null,[(he=f.colgroup)==null?void 0:he.call(f,oe.value),!t.hideDefaultHeader&&Zt("thead",{key:"thead"},[Zt(Tge,Y,f)]),(se=f.thead)==null?void 0:se.call(f,oe.value),!t.hideDefaultBody&&Zt("tbody",null,[(ae=f["body.prepend"])==null?void 0:ae.call(f,oe.value),f.body?f.body(oe.value):Zt(Cge,Di(o,ee,{items:I.value}),f),(ce=f["body.append"])==null?void 0:ce.call(f,oe.value)]),(de=f.tbody)==null?void 0:de.call(f,oe.value),(ve=f.tfoot)==null?void 0:ve.call(f,oe.value)])},bottom:()=>f.bottom?f.bottom(oe.value):!t.hideDefaultFooter&&Zt(ya,null,[Zt(yM,null,null),Zt(kge,q,{prepend:f["footer.prepend"]})])})}),{}}});const ODe=ti({fluid:{type:Boolean,default:!1},...xs(),...Tu()},"VContainer"),bM=ta()({name:"VContainer",props:ODe(),setup(t,e){let{slots:o}=e;const{rtlClasses:f}=qg();return Ca(()=>Zt(t.tag,{class:["v-container",{"v-container--fluid":t.fluid},f.value,t.class],style:t.style},o)),{}}}),E_e=(()=>Aq.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),P_e=(()=>Aq.reduce((t,e)=>{const o="offset"+v_(e);return t[o]={type:[String,Number],default:null},t},{}))(),R_e=(()=>Aq.reduce((t,e)=>{const o="order"+v_(e);return t[o]={type:[String,Number],default:null},t},{}))(),Mge={col:Object.keys(E_e),offset:Object.keys(P_e),order:Object.keys(R_e)};function SDe(t,e,o){let f=t;if(!(o==null||o===!1)){if(e){const P=e.replace(t,"");f+=`-${P}`}return t==="col"&&(f="v-"+f),t==="col"&&(o===""||o===!0)||(f+=`-${o}`),f.toLowerCase()}}const kDe=["auto","start","end","center","baseline","stretch"],TDe=ti({cols:{type:[Boolean,String,Number],default:!1},...E_e,offset:{type:[String,Number],default:null},...P_e,order:{type:[String,Number],default:null},...R_e,alignSelf:{type:String,default:null,validator:t=>kDe.includes(t)},...xs(),...Tu()},"VCol"),hT=ta()({name:"VCol",props:TDe(),setup(t,e){let{slots:o}=e;const f=jn(()=>{const P=[];let d;for(d in Mge)Mge[d].forEach(n=>{const c=t[n],b=SDe(d,n,c);b&&P.push(b)});const l=P.some(n=>n.startsWith("v-col-"));return P.push({"v-col":!l||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),P});return()=>{var P;return w1(t.tag,{class:[f.value,t.class],style:t.style},(P=o.default)==null?void 0:P.call(o))}}}),bue=["start","end","center"],L_e=["space-between","space-around","space-evenly"];function xue(t,e){return Aq.reduce((o,f)=>{const P=t+v_(f);return o[P]=e(),o},{})}const CDe=[...bue,"baseline","stretch"],I_e=t=>CDe.includes(t),D_e=xue("align",()=>({type:String,default:null,validator:I_e})),ADe=[...bue,...L_e],B_e=t=>ADe.includes(t),z_e=xue("justify",()=>({type:String,default:null,validator:B_e})),MDe=[...bue,...L_e,"stretch"],F_e=t=>MDe.includes(t),N_e=xue("alignContent",()=>({type:String,default:null,validator:F_e})),Ege={align:Object.keys(D_e),justify:Object.keys(z_e),alignContent:Object.keys(N_e)},EDe={align:"align",justify:"justify",alignContent:"align-content"};function PDe(t,e,o){let f=EDe[t];if(o!=null){if(e){const P=e.replace(t,"");f+=`-${P}`}return f+=`-${o}`,f.toLowerCase()}}const RDe=ti({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:I_e},...D_e,justify:{type:String,default:null,validator:B_e},...z_e,alignContent:{type:String,default:null,validator:F_e},...N_e,...xs(),...Tu()},"VRow"),Dq=ta()({name:"VRow",props:RDe(),setup(t,e){let{slots:o}=e;const f=jn(()=>{const P=[];let d;for(d in Ege)Ege[d].forEach(l=>{const n=t[l],c=PDe(d,l,n);c&&P.push(c)});return P.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),P});return()=>{var P;return w1(t.tag,{class:["v-row",f.value,t.class],style:t.style},(P=o.default)==null?void 0:P.call(o))}}}),$_e=hq("v-spacer","div","VSpacer");const eD=Symbol.for("vuetify:v-expansion-panel"),V_e=ti({...xs(),...Y2e()},"VExpansionPanelText"),xZ=ta()({name:"VExpansionPanelText",props:V_e(),setup(t,e){let{slots:o}=e;const f=vl(eD);if(!f)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:P,onAfterLeave:d}=X2e(t,f.isSelected);return Ca(()=>Zt(Xce,{onAfterLeave:d},{default:()=>{var l;return[Tp(Zt("div",{class:["v-expansion-panel-text",t.class],style:t.style},[o.default&&P.value&&Zt("div",{class:"v-expansion-panel-text__wrapper"},[(l=o.default)==null?void 0:l.call(o)])]),[[pS,f.isSelected.value]])]}})),{}}}),U_e=ti({color:String,expandIcon:{type:Cl,default:"$expand"},collapseIcon:{type:Cl,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...xs()},"VExpansionPanelTitle"),_Z=ta()({name:"VExpansionPanelTitle",directives:{Ripple:AT},props:U_e(),setup(t,e){let{slots:o}=e;const f=vl(eD);if(!f)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:P,backgroundColorStyles:d}=og(t,"color"),l=jn(()=>({collapseIcon:t.collapseIcon,disabled:f.disabled.value,expanded:f.isSelected.value,expandIcon:t.expandIcon,readonly:t.readonly})),n=jn(()=>f.isSelected.value?t.collapseIcon:t.expandIcon);return Ca(()=>{var c;return Tp(Zt("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":f.isSelected.value,"v-expansion-panel-title--focusable":t.focusable,"v-expansion-panel-title--static":t.static},P.value,t.class],style:[d.value,t.style],type:"button",tabindex:f.disabled.value?-1:void 0,disabled:f.disabled.value,"aria-expanded":f.isSelected.value,onClick:t.readonly?void 0:f.toggle},[Zt("span",{class:"v-expansion-panel-title__overlay"},null),(c=o.default)==null?void 0:c.call(o,l.value),!t.hideActions&&Zt(du,{defaults:{VIcon:{icon:n.value}}},{default:()=>{var b;return[Zt("span",{class:"v-expansion-panel-title__icon"},[((b=o.actions)==null?void 0:b.call(o,l.value))??Zt(Tl,null,null)])]}})]),[[y_("ripple"),t.ripple]])}),{}}}),j_e=ti({title:String,text:String,bgColor:String,...jv(),...Jce(),...pm(),...Tu(),...U_e(),...V_e()},"VExpansionPanel"),Q_e=ta()({name:"VExpansionPanel",props:j_e(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:o}=e;const f=eue(t,eD),{backgroundColorClasses:P,backgroundColorStyles:d}=og(t,"bgColor"),{elevationClasses:l}=sb(t),{roundedClasses:n}=sg(t),c=jn(()=>(f==null?void 0:f.disabled.value)||t.disabled),b=jn(()=>f.group.items.value.reduce((w,y,p)=>(f.group.selected.value.includes(y.id)&&w.push(p),w),[])),i=jn(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===1)}),O=jn(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===-1)});return gf(eD,f),Ca(()=>{const w=!!(o.text||t.text),y=!!(o.title||t.title),p=_Z.filterProps(t),a=xZ.filterProps(t);return Zt(t.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":f.isSelected.value,"v-expansion-panel--before-active":i.value,"v-expansion-panel--after-active":O.value,"v-expansion-panel--disabled":c.value},n.value,P.value,t.class],style:[d.value,t.style]},{default:()=>[Zt("div",{class:["v-expansion-panel__shadow",...l.value]},null),Zt(du,{defaults:{VExpansionPanelTitle:{...p},VExpansionPanelText:{...a}}},{default:()=>{var u;return[y&&Zt(_Z,{key:"title"},{default:()=>[o.title?o.title():t.title]}),w&&Zt(xZ,{key:"text"},{default:()=>[o.text?o.text():t.text]}),(u=o.default)==null?void 0:u.call(o)]}})]})}),{groupItem:f}}}),LDe=["default","accordion","inset","popout"],IDe=ti({flat:Boolean,...mq(),...Vce(j_e(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...Ff(),...xs(),...Tu(),variant:{type:String,default:"default",validator:t=>LDe.includes(t)}},"VExpansionPanels"),H_e=ta()({name:"VExpansionPanels",props:IDe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{next:f,prev:P}=gq(t,eD),{themeClasses:d}=Md(t),l=jn(()=>t.variant&&`v-expansion-panels--variant-${t.variant}`);return ib({VExpansionPanel:{bgColor:Oi(t,"bgColor"),collapseIcon:Oi(t,"collapseIcon"),color:Oi(t,"color"),eager:Oi(t,"eager"),elevation:Oi(t,"elevation"),expandIcon:Oi(t,"expandIcon"),focusable:Oi(t,"focusable"),hideActions:Oi(t,"hideActions"),readonly:Oi(t,"readonly"),ripple:Oi(t,"ripple"),rounded:Oi(t,"rounded"),static:Oi(t,"static")}}),Ca(()=>Zt(t.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":t.flat,"v-expansion-panels--tile":t.tile},d.value,l.value,t.class],style:t.style},{default:()=>{var n;return[(n=o.default)==null?void 0:n.call(o,{prev:P,next:f})]}})),{next:f,prev:P}}});const DDe=ti({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...k_(),...xs(),...jv(),...qce(),...pm(),...Tu({tag:"footer"}),...Ff()},"VFooter"),BDe=ta()({name:"VFooter",props:DDe(),setup(t,e){let{slots:o}=e;const f=ei(),P=Ai(),{themeClasses:d}=Md(t),{backgroundColorClasses:l,backgroundColorStyles:n}=og(Oi(t,"color")),{borderClasses:c}=DO(t),{elevationClasses:b}=sb(t),{roundedClasses:i}=sg(t),O=Ai(32),{resizeRef:w}=fS(p=>{p.length&&(O.value=p[0].target.clientHeight)}),y=jn(()=>t.height==="auto"?O.value:parseInt(t.height,10));return x1(()=>t.app,()=>{const p=Wce({id:t.name,order:jn(()=>parseInt(t.order,10)),position:jn(()=>"bottom"),layoutSize:y,elementSize:jn(()=>t.height==="auto"?void 0:y.value),active:jn(()=>t.app),absolute:Oi(t,"absolute")});kp(()=>{f.value=p.layoutItemStyles.value,P.value=p.layoutIsReady})}),Ca(()=>Zt(t.tag,{ref:w,class:["v-footer",d.value,l.value,c.value,b.value,i.value,t.class],style:[n.value,t.app?f.value:{height:Ma(t.height)},t.style]},o)),t.app?P.value:{}}}),zDe=ti({...xs(),...hRe()},"VForm"),FDe=ta()({name:"VForm",props:zDe(),emits:{"update:modelValue":t=>!0,submit:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=pRe(t),d=ei();function l(c){c.preventDefault(),P.reset()}function n(c){const b=c,i=P.validate();b.then=i.then.bind(i),b.catch=i.catch.bind(i),b.finally=i.finally.bind(i),f("submit",b),b.defaultPrevented||i.then(O=>{var y;let{valid:w}=O;w&&((y=d.value)==null||y.submit())}),b.preventDefault()}return Ca(()=>{var c;return Zt("form",{ref:d,class:["v-form",t.class],style:t.style,novalidate:!0,onReset:l,onSubmit:n},[(c=o.default)==null?void 0:c.call(o,P)])}),T_(P,d)}});const NDe=ti({scrollable:Boolean,...xs(),...O_(),...Tu({tag:"main"})},"VMain"),$De=ta()({name:"VMain",props:NDe(),setup(t,e){let{slots:o}=e;const{dimensionStyles:f}=S_(t),{mainStyles:P,layoutIsReady:d}=Zxe(),{ssrBootStyles:l}=pq();return Ca(()=>Zt(t.tag,{class:["v-main",{"v-main--scrollable":t.scrollable},t.class],style:[P.value,l.value,f.value,t.style]},{default:()=>{var n,c;return[t.scrollable?Zt("div",{class:"v-main__scroller"},[(n=o.default)==null?void 0:n.call(o)]):(c=o.default)==null?void 0:c.call(o)]}})),d}});function VDe(t){let{rootEl:e,isSticky:o,layoutItemStyles:f}=t;const P=Ai(!1),d=Ai(0),l=jn(()=>{const b=typeof P.value=="boolean"?"top":P.value;return[o.value?{top:"auto",bottom:"auto",height:void 0}:void 0,P.value?{[b]:Ma(d.value)}:{top:f.value.top}]});ag(()=>{Ni(o,b=>{b?window.addEventListener("scroll",c,{passive:!0}):window.removeEventListener("scroll",c)},{immediate:!0})}),dm(()=>{window.removeEventListener("scroll",c)});let n=0;function c(){const b=n>window.scrollY?"up":"down",i=e.value.getBoundingClientRect(),O=parseFloat(f.value.top??0),w=window.scrollY-Math.max(0,d.value-O),y=i.height+Math.max(d.value,O)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(e.value).getPropertyValue("--v-body-scroll-y"))||0;i.height0;o--){if(t[o].t===t[o-1].t)continue;const f=Pge(e),P=(t[o].d-t[o-1].d)/(t[o].t-t[o-1].t);e+=(P-f)*Math.abs(P),o===t.length-1&&(e*=.5)}return Pge(e)*1e3}function QDe(){const t={};function e(P){Array.from(P.changedTouches).forEach(d=>{(t[d.identifier]??(t[d.identifier]=new kPe(jDe))).push([P.timeStamp,d])})}function o(P){Array.from(P.changedTouches).forEach(d=>{delete t[d.identifier]})}function f(P){var b;const d=(b=t[P])==null?void 0:b.values().reverse();if(!d)throw new Error(`No samples for touch id ${P}`);const l=d[0],n=[],c=[];for(const i of d){if(l[0]-i[0]>UDe)break;n.push({t:i[0],d:i[1].clientX}),c.push({t:i[0],d:i[1].clientY})}return{x:Rge(n),y:Rge(c),get direction(){const{x:i,y:O}=this,[w,y]=[Math.abs(i),Math.abs(O)];return w>y&&i>=0?"right":w>y&&i<=0?"left":y>w&&O>=0?"down":y>w&&O<=0?"up":HDe()}}}return{addMovement:e,endTouch:o,getVelocity:f}}function HDe(){throw new Error}function ZDe(t){let{el:e,isActive:o,isTemporary:f,width:P,touchless:d,position:l}=t;ag(()=>{window.addEventListener("touchstart",m,{passive:!0}),window.addEventListener("touchmove",v,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),dm(()=>{window.removeEventListener("touchstart",m),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",_)});const n=jn(()=>["left","right"].includes(l.value)),{addMovement:c,endTouch:b,getVelocity:i}=QDe();let O=!1;const w=Ai(!1),y=Ai(0),p=Ai(0);let a;function u(A,x){return(l.value==="left"?A:l.value==="right"?document.documentElement.clientWidth-A:l.value==="top"?A:l.value==="bottom"?document.documentElement.clientHeight-A:RA())-(x?P.value:0)}function h(A){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const R=l.value==="left"?(A-p.value)/P.value:l.value==="right"?(document.documentElement.clientWidth-A-p.value)/P.value:l.value==="top"?(A-p.value)/P.value:l.value==="bottom"?(document.documentElement.clientHeight-A-p.value)/P.value:RA();return x?Math.max(0,Math.min(1,R)):R}function m(A){if(d.value)return;const x=A.changedTouches[0].clientX,R=A.changedTouches[0].clientY,M=25,T=l.value==="left"?xdocument.documentElement.clientWidth-M:l.value==="top"?Rdocument.documentElement.clientHeight-M:RA(),E=o.value&&(l.value==="left"?xdocument.documentElement.clientWidth-P.value:l.value==="top"?Rdocument.documentElement.clientHeight-P.value:RA());(T||E||o.value&&f.value)&&(a=[x,R],p.value=u(n.value?x:R,o.value),y.value=h(n.value?x:R),O=p.value>-20&&p.value<80,b(A),c(A))}function v(A){const x=A.changedTouches[0].clientX,R=A.changedTouches[0].clientY;if(O){if(!A.cancelable){O=!1;return}const T=Math.abs(x-a[0]),E=Math.abs(R-a[1]);(n.value?T>E&&T>3:E>T&&E>3)?(w.value=!0,O=!1):(n.value?E:T)>3&&(O=!1)}if(!w.value)return;A.preventDefault(),c(A);const M=h(n.value?x:R,!1);y.value=Math.max(0,Math.min(1,M)),M>1?p.value=u(n.value?x:R,!0):M<0&&(p.value=u(n.value?x:R,!1))}function _(A){if(O=!1,!w.value)return;c(A),w.value=!1;const x=i(A.changedTouches[0].identifier),R=Math.abs(x.x),M=Math.abs(x.y);(n.value?R>M&&R>400:M>R&&M>3)?o.value=x.direction===({left:"right",right:"left",top:"down",bottom:"up"}[l.value]||RA()):o.value=y.value>.5}const S=jn(()=>w.value?{transform:l.value==="left"?`translateX(calc(-100% + ${y.value*P.value}px))`:l.value==="right"?`translateX(calc(100% - ${y.value*P.value}px))`:l.value==="top"?`translateY(calc(-100% + ${y.value*P.value}px))`:l.value==="bottom"?`translateY(calc(100% - ${y.value*P.value}px))`:RA(),transition:"none"}:void 0);return x1(w,()=>{var R,M;const A=((R=e.value)==null?void 0:R.style.transform)??null,x=((M=e.value)==null?void 0:M.style.transition)??null;kp(()=>{var T,E,C,L;(E=e.value)==null||E.style.setProperty("transform",((T=S.value)==null?void 0:T.transform)||"none"),(L=e.value)==null||L.style.setProperty("transition",((C=S.value)==null?void 0:C.transition)||null)}),ig(()=>{var T,E;(T=e.value)==null||T.style.setProperty("transform",A),(E=e.value)==null||E.style.setProperty("transition",x)})}),{isDragging:w,dragProgress:y,dragStyles:S}}function RA(){throw new Error}const qDe=["start","end","left","right","top","bottom"],WDe=ti({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:t=>qDe.includes(t)},sticky:Boolean,...k_(),...xs(),...Z2e(),...CD({mobile:null}),...jv(),...qce(),...pm(),...Tu({tag:"nav"}),...Ff()},"VNavigationDrawer"),Z_e=ta()({name:"VNavigationDrawer",props:WDe(),emits:{"update:modelValue":t=>!0,"update:rail":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{isRtl:d}=qg(),{themeClasses:l}=Md(t),{borderClasses:n}=DO(t),{backgroundColorClasses:c,backgroundColorStyles:b}=og(Oi(t,"color")),{elevationClasses:i}=sb(t),{displayClasses:O,mobile:w}=bS(t),{roundedClasses:y}=sg(t),p=p2e(),a=Al(t,"modelValue",null,X=>!!X),{ssrBootStyles:u}=pq(),{scopeId:h}=BM(),m=ei(),v=Ai(!1),{runOpenDelay:_,runCloseDelay:S}=q2e(t,X=>{v.value=X}),A=jn(()=>t.rail&&t.expandOnHover&&v.value?Number(t.width):Number(t.rail?t.railWidth:t.width)),x=jn(()=>Lse(t.location,d.value)),R=jn(()=>t.persistent),M=jn(()=>!t.permanent&&(w.value||t.temporary)),T=jn(()=>t.sticky&&!M.value&&x.value!=="bottom");x1(()=>t.expandOnHover&&t.rail!=null,()=>{Ni(v,X=>f("update:rail",!X))}),x1(()=>!t.disableResizeWatcher,()=>{Ni(M,X=>!t.permanent&&lc(()=>a.value=!X))}),x1(()=>!t.disableRouteWatcher&&!!p,()=>{Ni(p.currentRoute,()=>M.value&&(a.value=!1))}),Ni(()=>t.permanent,X=>{X&&(a.value=!0)}),t.modelValue==null&&!M.value&&(a.value=t.permanent||!w.value);const{isDragging:E,dragProgress:C}=ZDe({el:m,isActive:a,isTemporary:M,width:A,touchless:Oi(t,"touchless"),position:x}),L=jn(()=>{const X=M.value?0:t.rail&&t.expandOnHover?Number(t.railWidth):A.value;return E.value?X*C.value:X}),D=jn(()=>["top","bottom"].includes(t.location)?0:A.value),{layoutItemStyles:k,layoutItemScrimStyles:I,layoutIsReady:z}=Wce({id:t.name,order:jn(()=>parseInt(t.order,10)),position:x,layoutSize:L,elementSize:D,active:jn(()=>a.value||E.value),disableTransitions:jn(()=>E.value),absolute:jn(()=>t.absolute||T.value&&typeof $.value!="string")}),{isStuck:$,stickyStyles:Q}=VDe({rootEl:m,isSticky:T,layoutItemStyles:k}),j=og(jn(()=>typeof t.scrim=="string"?t.scrim:null)),U=jn(()=>({...E.value?{opacity:C.value*.2,transition:"none"}:void 0,...I.value}));return ib({VList:{bgColor:"transparent"}}),Ca(()=>{const X=P.image||t.image;return Zt(ya,null,[Zt(t.tag,Di({ref:m,onMouseenter:_,onMouseleave:S,class:["v-navigation-drawer",`v-navigation-drawer--${x.value}`,{"v-navigation-drawer--expand-on-hover":t.expandOnHover,"v-navigation-drawer--floating":t.floating,"v-navigation-drawer--is-hovering":v.value,"v-navigation-drawer--rail":t.rail,"v-navigation-drawer--temporary":M.value,"v-navigation-drawer--persistent":R.value,"v-navigation-drawer--active":a.value,"v-navigation-drawer--sticky":T.value},l.value,c.value,n.value,O.value,i.value,y.value,t.class],style:[b.value,k.value,u.value,Q.value,t.style,["top","bottom"].includes(x.value)?{height:"auto"}:{}]},h,o),{default:()=>{var te,W,K;return[X&&Zt("div",{key:"image",class:"v-navigation-drawer__img"},[P.image?Zt(du,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:t.image}}},P.image):Zt(kT,{key:"image-img",alt:"",cover:!0,height:"inherit",src:t.image},null)]),P.prepend&&Zt("div",{class:"v-navigation-drawer__prepend"},[(te=P.prepend)==null?void 0:te.call(P)]),Zt("div",{class:"v-navigation-drawer__content"},[(W=P.default)==null?void 0:W.call(P)]),P.append&&Zt("div",{class:"v-navigation-drawer__append"},[(K=P.append)==null?void 0:K.call(P)])]}}),Zt(h_,{name:"fade-transition"},{default:()=>[M.value&&(E.value||a.value)&&!!t.scrim&&Zt("div",Di({class:["v-navigation-drawer__scrim",j.backgroundColorClasses.value],style:[U.value,j.backgroundColorStyles.value],onClick:()=>{R.value||(a.value=!1)}},h),null)]})])}),z.then(()=>({isStuck:$}))}}),YDe=ti({...Tq(),...DM(),...r_e(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),_ue=ta()({name:"VRangeSlider",props:YDe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,end:t=>!0,start:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=ei(),d=ei(),l=ei(),{rtlClasses:n}=qg();function c(T){if(!P.value||!d.value)return;const E=jse(T,P.value.$el,t.direction),C=jse(T,d.value.$el,t.direction),L=Math.abs(E),D=Math.abs(C);return LT!=null&&T.length?T.map(E=>b.roundValue(E)):[0,0]),{activeThumbRef:O,hasLabels:w,max:y,min:p,mousePressed:a,onSliderMousedown:u,onSliderTouchstart:h,position:m,trackContainerRef:v,readonly:_}=i_e({props:t,steps:b,onSliderStart:()=>{f("start",i.value)},onSliderEnd:T=>{var L;let{value:E}=T;const C=O.value===((L=P.value)==null?void 0:L.$el)?[E,i.value[1]]:[i.value[0],E];!t.strict&&C[0]{var D,k,I,z;let{value:E}=T;const[C,L]=i.value;!t.strict&&C===L&&C!==p.value&&(O.value=E>C?(D=d.value)==null?void 0:D.$el:(k=P.value)==null?void 0:k.$el,(I=O.value)==null||I.focus()),O.value===((z=P.value)==null?void 0:z.$el)?i.value=[Math.min(E,L),L]:i.value=[C,Math.max(C,E)]},getActiveThumb:c}),{isFocused:S,focus:A,blur:x}=IM(t),R=jn(()=>m(i.value[0])),M=jn(()=>m(i.value[1]));return Ca(()=>{const T=p_.filterProps(t),E=!!(t.label||o.label||o.prepend);return Zt(p_,Di({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!o["tick-label"]||w.value,"v-slider--focused":S.value,"v-slider--pressed":a.value,"v-slider--disabled":t.disabled},n.value,t.class],style:t.style,ref:l},T,{focused:S.value}),{...o,prepend:E?C=>{var L,D;return Zt(ya,null,[((L=o.label)==null?void 0:L.call(o,C))??(t.label?Zt(kq,{class:"v-slider__label",text:t.label},null):void 0),(D=o.prepend)==null?void 0:D.call(o,C)])}:void 0,default:C=>{var k,I;let{id:L,messagesId:D}=C;return Zt("div",{class:"v-slider__container",onMousedown:_.value?void 0:u,onTouchstartPassive:_.value?void 0:h},[Zt("input",{id:`${L.value}_start`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[0]},null),Zt("input",{id:`${L.value}_stop`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[1]},null),Zt(a_e,{ref:v,start:R.value,stop:M.value},{"tick-label":o["tick-label"]}),Zt(Qse,{ref:P,"aria-describedby":D.value,focused:S&&O.value===((k=P.value)==null?void 0:k.$el),modelValue:i.value[0],"onUpdate:modelValue":z=>i.value=[z,i.value[1]],onFocus:z=>{var $,Q,j,U;A(),O.value=($=P.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[1]===p.value&&z.relatedTarget!==((Q=d.value)==null?void 0:Q.$el)&&((j=P.value)==null||j.$el.blur(),(U=d.value)==null||U.$el.focus())},onBlur:()=>{x(),O.value=void 0},min:p.value,max:i.value[1],position:R.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]}),Zt(Qse,{ref:d,"aria-describedby":D.value,focused:S&&O.value===((I=d.value)==null?void 0:I.$el),modelValue:i.value[1],"onUpdate:modelValue":z=>i.value=[i.value[0],z],onFocus:z=>{var $,Q,j,U;A(),O.value=($=d.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[0]===y.value&&z.relatedTarget!==((Q=P.value)==null?void 0:Q.$el)&&((j=d.value)==null||j.$el.blur(),(U=P.value)==null||U.$el.focus())},onBlur:()=>{x(),O.value=void 0},min:i.value[0],max:y.value,position:M.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]})])}})}),{}}});function XDe(t){const e=Ai(t());let o=-1;function f(){clearInterval(o)}function P(){f(),lc(()=>e.value=t())}function d(l){const n=l?getComputedStyle(l):{transitionDuration:.2},c=parseFloat(n.transitionDuration)*1e3||200;if(f(),e.value<=0)return;const b=performance.now();o=window.setInterval(()=>{const i=performance.now()-b+c;e.value=Math.max(t()-i,0),e.value<=0&&f()},c)}return ig(f),{clear:f,time:e,start:d,reset:P}}const GDe=ti({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...kD({location:"bottom"}),..._q(),...pm(),...Tx(),...Ff(),...__(MD({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),KDe=ta()({name:"VSnackbar",props:GDe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=Al(t,"modelValue"),{positionClasses:P}=wq(t),{scopeId:d}=BM(),{themeClasses:l}=Md(t),{colorClasses:n,colorStyles:c,variantClasses:b}=CT(t),{roundedClasses:i}=sg(t),O=XDe(()=>Number(t.timeout)),w=ei(),y=ei(),p=Ai(!1),a=Ai(0),u=ei(),h=vl(YI,void 0);x1(()=>!!h,()=>{const T=Zxe();kp(()=>{u.value=T.mainStyles.value})}),Ni(f,v),Ni(()=>t.timeout,v),ag(()=>{f.value&&v()});let m=-1;function v(){O.reset(),window.clearTimeout(m);const T=Number(t.timeout);if(!f.value||T===-1)return;const E=$ce(y.value);O.start(E),m=window.setTimeout(()=>{f.value=!1},T)}function _(){O.reset(),window.clearTimeout(m)}function S(){p.value=!0,_()}function A(){p.value=!1,v()}function x(T){a.value=T.touches[0].clientY}function R(T){Math.abs(a.value-T.changedTouches[0].clientY)>50&&(f.value=!1)}const M=jn(()=>t.location.split(" ").reduce((T,E)=>(T[`v-snackbar--${E}`]=!0,T),{}));return Ca(()=>{const T=dS.filterProps(t),E=!!(o.default||o.text||t.text);return Zt(dS,Di({ref:w,class:["v-snackbar",{"v-snackbar--active":f.value,"v-snackbar--multi-line":t.multiLine&&!t.vertical,"v-snackbar--timer":!!t.timer,"v-snackbar--vertical":t.vertical},M.value,P.value,t.class],style:[u.value,t.style]},T,{modelValue:f.value,"onUpdate:modelValue":C=>f.value=C,contentProps:Di({class:["v-snackbar__wrapper",l.value,n.value,i.value,b.value],style:[c.value],onPointerenter:S,onPointerleave:A},T.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:x,onTouchend:R},d),{default:()=>{var C,L;return[TT(!1,"v-snackbar"),t.timer&&!p.value&&Zt("div",{key:"timer",class:"v-snackbar__timer"},[Zt(h2e,{ref:y,color:typeof t.timer=="string"?t.timer:"info",max:t.timeout,"model-value":O.time.value},null)]),E&&Zt("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((C=o.text)==null?void 0:C.call(o))??t.text,(L=o.default)==null?void 0:L.call(o)]),o.actions&&Zt(du,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[Zt("div",{class:"v-snackbar__actions"},[o.actions({isActive:f})])]})]},activator:o.activator})}),T_({},w)}});const JDe=ti({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...DM(),...tue()},"VSwitch"),$A=ta()({name:"VSwitch",inheritAttrs:!1,props:JDe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const P=Al(t,"indeterminate"),d=Al(t,"modelValue"),{loaderClasses:l}=TD(t),{isFocused:n,focus:c,blur:b}=IM(t),i=ei(),O=ou&&window.matchMedia("(forced-colors: active)").matches,w=jn(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),y=Vv(),p=jn(()=>t.id||`switch-${y}`);function a(){P.value&&(P.value=!1)}function u(h){var m,v;h.stopPropagation(),h.preventDefault(),(v=(m=i.value)==null?void 0:m.input)==null||v.click()}return Ca(()=>{const[h,m]=fq(o),v=p_.filterProps(t),_=gZ.filterProps(t);return Zt(p_,Di({class:["v-switch",{"v-switch--flat":t.flat},{"v-switch--inset":t.inset},{"v-switch--indeterminate":P.value},l.value,t.class]},h,v,{modelValue:d.value,"onUpdate:modelValue":S=>d.value=S,id:p.value,focused:n.value,style:t.style}),{...f,default:S=>{let{id:A,messagesId:x,isDisabled:R,isReadonly:M,isValid:T}=S;const E={model:d,isValid:T};return Zt(gZ,Di({ref:i},_,{modelValue:d.value,"onUpdate:modelValue":[C=>d.value=C,a],id:A.value,"aria-describedby":x.value,type:"checkbox","aria-checked":P.value?"mixed":void 0,disabled:R.value,readonly:M.value,onFocus:c,onBlur:b},m),{...f,default:C=>{let{backgroundColorClasses:L,backgroundColorStyles:D}=C;return Zt("div",{class:["v-switch__track",O?void 0:L.value],style:D.value,onClick:u},[f["track-true"]&&Zt("div",{key:"prepend",class:"v-switch__track-true"},[f["track-true"](E)]),f["track-false"]&&Zt("div",{key:"append",class:"v-switch__track-false"},[f["track-false"](E)])])},input:C=>{let{inputNode:L,icon:D,backgroundColorClasses:k,backgroundColorStyles:I}=C;return Zt(ya,null,[L,Zt("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||t.loading},t.inset||O?void 0:k.value],style:t.inset?void 0:I.value},[f.thumb?Zt(du,{defaults:{VIcon:{icon:D,size:"x-small"}}},{default:()=>[f.thumb({...E,icon:D})]}):Zt(Kxe,null,{default:()=>[t.loading?Zt(xq,{name:"v-switch",active:!0,color:T.value===!1?void 0:w.value},{default:z=>f.loader?f.loader(z):Zt(SD,{active:z.isActive,color:z.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&Zt(Tl,{key:String(D),icon:D,size:"x-small"},null)]})])])}})}})}),{}}});const eBe=ti({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseFloat(t))},maxRows:{type:[Number,String],validator:t=>!isNaN(parseFloat(t))},suffix:String,modelModifiers:Object,...DM(),...aue()},"VTextarea"),RD=ta()({name:"VTextarea",directives:{Intersect:Kce},inheritAttrs:!1,props:eBe(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const d=Al(t,"modelValue"),{isFocused:l,focus:n,blur:c}=IM(t),b=jn(()=>typeof t.counterValue=="function"?t.counterValue(d.value):(d.value||"").toString().length),i=jn(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter});function O(E,C){var L,D;!t.autofocus||!E||(D=(L=C[0].target)==null?void 0:L.focus)==null||D.call(L)}const w=ei(),y=ei(),p=Ai(""),a=ei(),u=jn(()=>t.persistentPlaceholder||l.value||t.active);function h(){var E;a.value!==document.activeElement&&((E=a.value)==null||E.focus()),l.value||n()}function m(E){h(),f("click:control",E)}function v(E){f("mousedown:control",E)}function _(E){E.stopPropagation(),h(),lc(()=>{d.value="",Rxe(t["onClick:clear"],E)})}function S(E){var L;const C=E.target;if(d.value=C.value,(L=t.modelModifiers)!=null&&L.trim){const D=[C.selectionStart,C.selectionEnd];lc(()=>{C.selectionStart=D[0],C.selectionEnd=D[1]})}}const A=ei(),x=ei(+t.rows),R=jn(()=>["plain","underlined"].includes(t.variant));kp(()=>{t.autoGrow||(x.value=+t.rows)});function M(){t.autoGrow&&lc(()=>{if(!A.value||!y.value)return;const E=getComputedStyle(A.value),C=getComputedStyle(y.value.$el),L=parseFloat(E.getPropertyValue("--v-field-padding-top"))+parseFloat(E.getPropertyValue("--v-input-padding-top"))+parseFloat(E.getPropertyValue("--v-field-padding-bottom")),D=A.value.scrollHeight,k=parseFloat(E.lineHeight),I=Math.max(parseFloat(t.rows)*k+L,parseFloat(C.getPropertyValue("--v-input-control-height"))),z=parseFloat(t.maxRows)*k+L||1/0,$=Qg(D??0,I,z);x.value=Math.floor(($-L)/k),p.value=Ma($)})}ag(M),Ni(d,M),Ni(()=>t.rows,M),Ni(()=>t.maxRows,M),Ni(()=>t.density,M);let T;return Ni(A,E=>{E?(T=new ResizeObserver(M),T.observe(A.value)):T==null||T.disconnect()}),dm(()=>{T==null||T.disconnect()}),Ca(()=>{const E=!!(P.counter||t.counter||t.counterValue),C=!!(E||P.details),[L,D]=fq(o),{modelValue:k,...I}=p_.filterProps(t),z=e_e(t);return Zt(p_,Di({ref:w,modelValue:d.value,"onUpdate:modelValue":$=>d.value=$,class:["v-textarea v-text-field",{"v-textarea--prefixed":t.prefix,"v-textarea--suffixed":t.suffix,"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-textarea--auto-grow":t.autoGrow,"v-textarea--no-resize":t.noResize||t.autoGrow,"v-input--plain-underlined":R.value},t.class],style:t.style},L,I,{centerAffix:x.value===1&&!R.value,focused:l.value}),{...P,default:$=>{let{id:Q,isDisabled:j,isDirty:U,isReadonly:X,isValid:te}=$;return Zt(sue,Di({ref:y,style:{"--v-textarea-control-height":p.value},onClick:m,onMousedown:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},z,{id:Q.value,active:u.value||U.value,centerAffix:x.value===1&&!R.value,dirty:U.value||t.dirty,disabled:j.value,focused:l.value,error:te.value===!1}),{...P,default:W=>{let{props:{class:K,...oe}}=W;return Zt(ya,null,[t.prefix&&Zt("span",{class:"v-text-field__prefix"},[t.prefix]),Tp(Zt("textarea",Di({ref:a,class:K,value:d.value,onInput:S,autofocus:t.autofocus,readonly:X.value,disabled:j.value,placeholder:t.placeholder,rows:t.rows,name:t.name,onFocus:h,onBlur:c},oe,D),null),[[y_("intersect"),{handler:O},null,{once:!0}]]),t.autoGrow&&Tp(Zt("textarea",{class:[K,"v-textarea__sizer"],id:`${oe.id}-sizer`,"onUpdate:modelValue":q=>d.value=q,ref:A,readonly:!0,"aria-hidden":"true"},null),[[L5e,d.value]]),t.suffix&&Zt("span",{class:"v-text-field__suffix"},[t.suffix])])}})},details:C?$=>{var Q;return Zt(ya,null,[(Q=P.details)==null?void 0:Q.call(P,$),E&&Zt(ya,null,[Zt("span",null,null),Zt(J2e,{active:t.persistentCounter||l.value,value:b.value,max:i.value,disabled:t.disabled},P.counter)])])}:void 0})}),T_({},w,y,a)}});const tBe=ti({id:String,text:String,...__(MD({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),q_e=ta()({name:"VTooltip",props:tBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=Al(t,"modelValue"),{scopeId:P}=BM(),d=Vv(),l=jn(()=>t.id||`v-tooltip-${d}`),n=ei(),c=jn(()=>t.location.split(" ").length>1?t.location:t.location+" center"),b=jn(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),i=jn(()=>t.transition?t.transition:f.value?"scale-transition":"fade-transition"),O=jn(()=>Di({"aria-describedby":l.value},t.activatorProps));return Ca(()=>{const w=dS.filterProps(t);return Zt(dS,Di({ref:n,class:["v-tooltip",t.class],style:t.style,id:l.value},w,{modelValue:f.value,"onUpdate:modelValue":y=>f.value=y,transition:i.value,absolute:!0,location:c.value,origin:b.value,persistent:!0,role:"tooltip",activatorProps:O.value,_disableGlobalStack:!0},P),{activator:o.activator,default:function(){var u;for(var y=arguments.length,p=new Array(y),a=0;a{const P=o.replace(/_/g,"-");return e[P]=f,e},{})},getEventBindings(t){return t.component==="v-card"?{}:{[t.triggerEvent]:()=>this.runCode(!0,t.id,t.value),keydown:e=>this.handleEnterPress(e,t.id,t.component,t.value)}},handleEnterPress(t,e,o,f){t.key==="Enter"&&(o==="v-text-field"||o==="v-textarea"||o==="v-number-input")&&this.runCode(!0,e,f)},getChildren(t){return t.map(e=>this.allComponents[e])},runCode(t,e,o){this.allComponents[e].component==="v-btn"&&(o=!0,this.allComponents[e].value=!0),this.$emit("runCode",t,e,o)}}},iBe={key:0},aBe={key:1};function sBe(t,e,o,f,P,d){const l=Zd("plotly-plot"),n=Zd("component-wrapper",!0);return Bo(!0),Da(ya,null,ob(o.renderComponents,c=>(Bo(),Da("div",{key:c.id},[Zt(Dq,{class:"pa-5"},{default:Oo(()=>[c.component==="plotly-plot"?(Bo(),la(l,{key:0,id:c.id,figureJson:c.figure_json},null,8,["id","figureJson"])):c.component==="zt-html"?(Bo(),la(bM,{key:1,innerHTML:c.v_html},null,8,["innerHTML"])):(Bo(),la(SI(c.component),Di({key:2},d.componentBind(c),{modelValue:c.value,"onUpdate:modelValue":b=>c.value=b},TSe(d.getEventBindings(c))),V1e({_:2},[c.component!=="v-data-table"?{name:"default",fn:Oo(()=>[c.childComponents?(Bo(),Da("div",iBe,[Zt(n,{renderComponents:d.getChildren(c.childComponents),allComponents:o.allComponents,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):c.component==="v-btn"?(Bo(),Da("div",aBe,sc(c.text),1)):Wa("",!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"]))]),_:2},1024)]))),128)}const W_e=hm(oBe,[["render",sBe]]),lBe={emits:["runCode"],components:{"v-slider":gue,"v-text-field":um,"v-textarea":RD,"v-range-slider":_ue,"v-select":ED,"v-combobox":vue,"v-btn":ps,"v-img":kT,"v-data-table":Iq,"v-autocomplete":hue,"v-card":BO,"v-text":wue,"plotly-plot":Kle,"component-wrapper":W_e},props:{rowData:{type:Object},columnData:{type:Object},components:{type:Object,required:!0}},methods:{runCode(t,e,o){this.$emit("runCode",t,e,o)},componentWidth(t){return t.width?t.width:!1}}},cBe={key:0},uBe={key:1},fBe={key:1},dBe={key:0},hBe={key:1};function pBe(t,e,o,f,P,d){const l=Zd("component-wrapper"),n=Zd("layout-component",!0);return Bo(),Da(ya,null,[o.rowData?(Bo(),la(Dq,{key:0},{default:Oo(()=>[(Bo(!0),Da(ya,null,ob(o.rowData.components,(c,b)=>(Bo(),la(hT,{key:b,cols:d.componentWidth(c)},{default:Oo(()=>[typeof c=="string"?(Bo(),Da("div",cBe,[Zt(l,{renderComponents:[o.components[c]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Bo(),Da("div",uBe,[Zt(n,{"column-data":c,components:o.components,onRunCode:d.runCode},null,8,["column-data","components","onRunCode"])]))]),_:2},1032,["cols"]))),128))]),_:1})):Wa("",!0),o.columnData?(Bo(),Da("div",fBe,[(Bo(!0),Da(ya,null,ob(o.columnData.components,(c,b)=>(Bo(),Da("div",{key:b},[typeof c=="string"?(Bo(),Da("div",dBe,[Zt(l,{renderComponents:[o.components[c]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Bo(),Da("div",hBe,[Zt(n,{"row-data":c,components:o.components,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"])]))]))),128))])):Wa("",!0)],64)}const mBe=hm(lBe,[["render",pBe]]),Pv=lm({copilot_active:!1,connection_lost:!1,timers:{}}),Kh={clock:'',cubic:'',circleAdd:'',code:'',delete:'',done:'',dot:'',dropdown:' ',duplicate:'',edit:'',markdown:'',message:'',more:'',notebook:'',logo:'',monitor:'',play:'',save:'',undo:'',redo:' ',settings:'',share:'',sql:' ',status:'',stop:'',text:'',visibility:'',copilot:'GitHub Copilot'},gBe={component:t=>w1(t.tag,{...t,innerHTML:t.icon})},vBe={class:"divider"},yBe=Hg({__name:"AddCell",props:{onClick:null,cellId:String},emits:["createCodeCell"],setup(t){const e=ei([{title:"Code",cellType:"code",icon:`ztIcon:${Kh.code}`},{title:"SQL",cellType:"sql",icon:`ztIcon:${Kh.sql}`},{title:"Markdown",cellType:"markdown",icon:`ztIcon:${Kh.markdown}`},{title:"Text",cellType:"text",icon:`ztIcon:${Kh.text}`}]);return(o,f)=>(Bo(),la(hS,{transition:"scale-transition",minWidth:"0",target:"cursor"},{activator:Oo(({props:P})=>[pa("div",Di(t.cellId?{...P,id:"addCell"+t.cellId}:P,{class:"activator-area"}),[pa("div",vBe,[Zt(yM,{class:"divider__divider-line",color:"bluegrey-darken-2"}),Zt(ps,{"prepend-icon":`ztIcon:${wa(Kh).circleAdd}`,variant:"plain",density:"compact",ripple:!1,class:"divider__btn bg-background"},{default:Oo(()=>[Cs("Add cell")]),_:1},8,["prepend-icon"])])],16)]),default:Oo(()=>[Zt(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[(Bo(!0),Da(ya,null,ob(e.value,(P,d)=>(Bo(),la(Bf,Di({key:d,class:"add-cell-item"},t.cellId?{id:"addCell_"+P.title+"_"+t.cellId}:{},{onClick:l=>o.$emit("createCodeCell",P.cellType)}),{prepend:Oo(()=>[Zt(Tl,{icon:P.icon},null,8,["icon"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs(sc(P.title),1)]),_:2},1024)]),_:2},1040,["onClick"]))),128))]),_:1})]),_:1}))}});const Oue=hm(yBe,[["__scopeId","data-v-c00c2563"]]);function bBe(t,e){const o=jn(()=>t.value);return{cellTypeColor:jn(()=>{if(e!=null&&e.value)return"error";switch(t.value){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),cellTypeIcon:o}}var xBe=!1;/*! +`)}function Gme(t){const e=t.dark?2:1,o=t.dark?1:2,f=[];for(const[P,d]of Object.entries(t.colors)){const l=l_(d);f.push(`--v-theme-${P}: ${l.r},${l.g},${l.b}`),P.startsWith("on-")||f.push(`--v-theme-${P}-overlay-multiplier: ${JPe(d)>.18?e:o}`)}for(const[P,d]of Object.entries(t.variables)){const l=typeof d=="string"&&d.startsWith("#")?l_(d):void 0,n=l?`${l.r}, ${l.g}, ${l.b}`:void 0;f.push(`--v-${P}: ${n??d}`)}return f}const x9e=ei({...ys(),...c9e({fullHeight:!0}),...vf()},"VApp"),_9e=Ji()({name:"VApp",props:x9e(),setup(t,e){let{slots:o}=e;const f=ad(t),{layoutClasses:P,getLayoutItem:d,items:l,layoutRef:n}=f9e(t),{rtlClasses:c}=qg();return ka(()=>Ht("div",{ref:n,class:["v-application",f.themeClasses.value,P.value,c.value,t.class],style:[t.style]},[Ht("div",{class:"v-application__wrap"},[Ht(fSe,null,{default:()=>{var b;return[Ht(ma,null,[(b=o.default)==null?void 0:b.call(o)])]}})])])),{getLayoutItem:d,items:l,theme:f}}});const hu=ei({tag:{type:String,default:"div"}},"tag"),w9e=ei({text:String,...ys(),...hu()},"VToolbarTitle"),O9e=Ji()({name:"VToolbarTitle",props:w9e(),setup(t,e){let{slots:o}=e;return ka(()=>{const f=!!(o.default||o.text||t.text);return Ht(t.tag,{class:["v-toolbar-title",t.class],style:t.style},{default:()=>{var P;return[f&&Ht("div",{class:"v-toolbar-title__placeholder"},[o.text?o.text():t.text,(P=o.default)==null?void 0:P.call(o)])]}})}),{}}}),S9e=ei({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function jv(t,e,o){return Ji()({name:t,props:S9e({mode:o,origin:e}),setup(f,P){let{slots:d}=P;const l={onBeforeEnter(n){f.origin&&(n.style.transformOrigin=f.origin)},onLeave(n){if(f.leaveAbsolute){const{offsetTop:c,offsetLeft:b,offsetWidth:i,offsetHeight:O}=n;n._transitionInitialStyles={position:n.style.position,top:n.style.top,left:n.style.left,width:n.style.width,height:n.style.height},n.style.position="absolute",n.style.top=`${c}px`,n.style.left=`${b}px`,n.style.width=`${i}px`,n.style.height=`${O}px`}f.hideOnLeave&&n.style.setProperty("display","none","important")},onAfterLeave(n){if(f.leaveAbsolute&&(n!=null&&n._transitionInitialStyles)){const{position:c,top:b,left:i,width:O,height:w}=n._transitionInitialStyles;delete n._transitionInitialStyles,n.style.position=c||"",n.style.top=b||"",n.style.left=i||"",n.style.width=O||"",n.style.height=w||""}}};return()=>{const n=f.group?Wle:h_;return w1(n,{name:f.disabled?"":t,css:!f.disabled,...f.group?void 0:{mode:f.mode},...f.disabled?{}:l},d.default)}}})}function Gxe(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Ji()({name:t,props:{mode:{type:String,default:o},disabled:Boolean,group:Boolean},setup(f,P){let{slots:d}=P;const l=f.group?Wle:h_;return()=>w1(l,{name:f.disabled?"":t,css:!f.disabled,...f.disabled?{}:e},d.default)}})}function Kxe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",f=rb(`offset-${o}`);return{onBeforeEnter(l){l._parent=l.parentNode,l._initialStyle={transition:l.style.transition,overflow:l.style.overflow,[o]:l.style[o]}},onEnter(l){const n=l._initialStyle;l.style.setProperty("transition","none","important"),l.style.overflow="hidden";const c=`${l[f]}px`;l.style[o]="0",l.offsetHeight,l.style.transition=n.transition,t&&l._parent&&l._parent.classList.add(t),requestAnimationFrame(()=>{l.style[o]=c})},onAfterEnter:d,onEnterCancelled:d,onLeave(l){l._initialStyle={transition:"",overflow:l.style.overflow,[o]:l.style[o]},l.style.overflow="hidden",l.style[o]=`${l[f]}px`,l.offsetHeight,requestAnimationFrame(()=>l.style[o]="0")},onAfterLeave:P,onLeaveCancelled:P};function P(l){t&&l._parent&&l._parent.classList.remove(t),d(l)}function d(l){const n=l._initialStyle[o];l.style.overflow=l._initialStyle.overflow,n!=null&&(l.style[o]=n),delete l._initialStyle}}const k9e=ei({target:[Object,Array]},"v-dialog-transition"),Yce=Ji()({name:"VDialogTransition",props:k9e(),setup(t,e){let{slots:o}=e;const f={onBeforeEnter(P){P.style.pointerEvents="none",P.style.visibility="hidden"},async onEnter(P,d){var w;await new Promise(y=>requestAnimationFrame(y)),await new Promise(y=>requestAnimationFrame(y)),P.style.visibility="";const{x:l,y:n,sx:c,sy:b,speed:i}=Jme(t.target,P),O=HA(P,[{transform:`translate(${l}px, ${n}px) scale(${c}, ${b})`,opacity:0},{}],{duration:225*i,easing:i9e});(w=Kme(P))==null||w.forEach(y=>{HA(y,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*i,easing:fZ})}),O.finished.then(()=>d())},onAfterEnter(P){P.style.removeProperty("pointer-events")},onBeforeLeave(P){P.style.pointerEvents="none"},async onLeave(P,d){var w;await new Promise(y=>requestAnimationFrame(y));const{x:l,y:n,sx:c,sy:b,speed:i}=Jme(t.target,P);HA(P,[{},{transform:`translate(${l}px, ${n}px) scale(${c}, ${b})`,opacity:0}],{duration:125*i,easing:a9e}).finished.then(()=>d()),(w=Kme(P))==null||w.forEach(y=>{HA(y,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*i,easing:fZ})})},onAfterLeave(P){P.style.removeProperty("pointer-events")}};return()=>t.target?Ht(h_,Ii({name:"dialog-transition"},f,{css:!1}),o):Ht(h_,{name:"dialog-transition"},o)}});function Kme(t){var o;const e=(o=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:o.children;return e&&[...e]}function Jme(t,e){const o=zxe(t),f=jce(e),[P,d]=getComputedStyle(e).transformOrigin.split(" ").map(h=>parseFloat(h)),[l,n]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let c=o.left+o.width/2;l==="left"||n==="left"?c-=o.width/2:(l==="right"||n==="right")&&(c+=o.width/2);let b=o.top+o.height/2;l==="top"||n==="top"?b-=o.height/2:(l==="bottom"||n==="bottom")&&(b+=o.height/2);const i=o.width/f.width,O=o.height/f.height,w=Math.max(1,i,O),y=i/w||0,p=O/w||0,a=f.width*f.height/(window.innerWidth*window.innerHeight),u=a>.12?Math.min(1.5,(a-.12)*10+1):1;return{x:c-(P+f.left),y:b-(d+f.top),sx:y,sy:p,speed:u}}jv("fab-transition","center center","out-in");jv("dialog-bottom-transition");jv("dialog-top-transition");const ege=jv("fade-transition"),Jxe=jv("scale-transition");jv("scroll-x-transition");jv("scroll-x-reverse-transition");jv("scroll-y-transition");jv("scroll-y-reverse-transition");jv("slide-x-transition");jv("slide-x-reverse-transition");const e2e=jv("slide-y-transition");jv("slide-y-reverse-transition");const Xce=Gxe("expand-transition",Kxe()),t2e=Gxe("expand-x-transition",Kxe("",!0)),T9e=ei({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),du=Ji(!1)({name:"VDefaultsProvider",props:T9e(),setup(t,e){let{slots:o}=e;const{defaults:f,disabled:P,reset:d,root:l,scoped:n}=AM(t);return ib(f,{reset:d,root:l,scoped:n,disabled:P}),()=>{var c;return(c=o.default)==null?void 0:c.call(o)}}});const O_=ei({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function S_(t){return{dimensionStyles:Un(()=>{const o={},f=Ma(t.height),P=Ma(t.maxHeight),d=Ma(t.maxWidth),l=Ma(t.minHeight),n=Ma(t.minWidth),c=Ma(t.width);return f!=null&&(o.height=f),P!=null&&(o.maxHeight=P),d!=null&&(o.maxWidth=d),l!=null&&(o.minHeight=l),n!=null&&(o.minWidth=n),c!=null&&(o.width=c),o})}}function C9e(t){return{aspectStyles:Un(()=>{const e=Number(t.aspectRatio);return e?{paddingBottom:String(1/e*100)+"%"}:void 0})}}const n2e=ei({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...ys(),...O_()},"VResponsive"),tge=Ji()({name:"VResponsive",props:n2e(),setup(t,e){let{slots:o}=e;const{aspectStyles:f}=C9e(t),{dimensionStyles:P}=S_(t);return ka(()=>{var d;return Ht("div",{class:["v-responsive",{"v-responsive--inline":t.inline},t.class],style:[P.value,t.style]},[Ht("div",{class:"v-responsive__sizer",style:f.value},null),(d=o.additional)==null?void 0:d.call(o),o.default&&Ht("div",{class:["v-responsive__content",t.contentClass]},[o.default()])])}),{}}});function Gce(t){return Uce(()=>{const e=[],o={};if(t.value.background)if(Ise(t.value.background)){if(o.backgroundColor=t.value.background,!t.value.text&&ZPe(t.value.background)){const f=l_(t.value.background);if(f.a==null||f.a===1){const P=Uxe(f);o.color=P,o.caretColor=P}}}else e.push(`bg-${t.value.background}`);return t.value.text&&(Ise(t.value.text)?(o.color=t.value.text,o.caretColor=t.value.text):e.push(`text-${t.value.text}`)),{colorClasses:e,colorStyles:o}})}function Uv(t,e){const o=Un(()=>({text:Dc(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:P}=Gce(o);return{textColorClasses:f,textColorStyles:P}}function ig(t,e){const o=Un(()=>({background:Dc(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:P}=Gce(o);return{backgroundColorClasses:f,backgroundColorStyles:P}}const pm=ei({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function lg(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{roundedClasses:Un(()=>{const f=Dc(t)?t.value:t.rounded,P=Dc(t)?t.value:t.tile,d=[];if(f===!0||f==="")d.push(`${e}--rounded`);else if(typeof f=="string"||f===0)for(const l of String(f).split(" "))d.push(`rounded-${l}`);else(P||f===!1)&&d.push("rounded-0");return d})}}const ST=ei({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:t=>t!==!0}},"transition"),G4=(t,e)=>{let{slots:o}=e;const{transition:f,disabled:P,group:d,...l}=t,{component:n=d?Wle:h_,...c}=typeof f=="object"?f:{};return w1(n,Ii(typeof f=="string"?{name:P?"":f}:c,typeof f=="string"?{}:Object.fromEntries(Object.entries({disabled:P,group:d}).filter(b=>{let[i,O]=b;return O!==void 0})),l),o)};function A9e(t,e){if(!Nce)return;const o=e.modifiers||{},f=e.value,{handler:P,options:d}=typeof f=="object"?f:{handler:f,options:{}},l=new IntersectionObserver(function(){var O;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0;const b=(O=t._observe)==null?void 0:O[e.instance.$.uid];if(!b)return;const i=n.some(w=>w.isIntersecting);P&&(!o.quiet||b.init)&&(!o.once||i||b.init)&&P(i,n,c),i&&o.once?r2e(t,e):b.init=!0},d);t._observe=Object(t._observe),t._observe[e.instance.$.uid]={init:!1,observer:l},l.observe(t)}function r2e(t,e){var f;const o=(f=t._observe)==null?void 0:f[e.instance.$.uid];o&&(o.observer.unobserve(t),delete t._observe[e.instance.$.uid])}const M9e={mounted:A9e,unmounted:r2e},Kce=M9e,E9e=ei({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...n2e(),...ys(),...pm(),...ST()},"VImg"),kT=Ji()({name:"VImg",directives:{intersect:Kce},props:E9e(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,e){let{emit:o,slots:f}=e;const{backgroundColorClasses:P,backgroundColorStyles:d}=ig(Oi(t,"color")),{roundedClasses:l}=lg(t),n=ph("VImg"),c=Ai(""),b=ti(),i=Ai(t.eager?"loading":"idle"),O=Ai(),w=Ai(),y=Un(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),p=Un(()=>y.value.aspect||O.value/w.value||0);Ni(()=>t.src,()=>{a(i.value!=="idle")}),Ni(p,(C,L)=>{!C&&L&&b.value&&_(b.value)}),zle(()=>a());function a(C){if(!(t.eager&&C)&&!(Nce&&!C&&!t.eager)){if(i.value="loading",y.value.lazySrc){const L=new Image;L.src=y.value.lazySrc,_(L,null)}y.value.src&&lc(()=>{var L;o("loadstart",((L=b.value)==null?void 0:L.currentSrc)||y.value.src),setTimeout(()=>{var D;if(!n.isUnmounted)if((D=b.value)!=null&&D.complete){if(b.value.naturalWidth||h(),i.value==="error")return;p.value||_(b.value,null),i.value==="loading"&&u()}else p.value||_(b.value),m()})})}}function u(){var C;n.isUnmounted||(m(),_(b.value),i.value="loaded",o("load",((C=b.value)==null?void 0:C.currentSrc)||y.value.src))}function h(){var C;n.isUnmounted||(i.value="error",o("error",((C=b.value)==null?void 0:C.currentSrc)||y.value.src))}function m(){const C=b.value;C&&(c.value=C.currentSrc||C.src)}let v=-1;dm(()=>{clearTimeout(v)});function _(C){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const D=()=>{if(clearTimeout(v),n.isUnmounted)return;const{naturalHeight:k,naturalWidth:I}=C;k||I?(O.value=I,w.value=k):!C.complete&&i.value==="loading"&&L!=null?v=window.setTimeout(D,L):(C.currentSrc.endsWith(".svg")||C.currentSrc.startsWith("data:image/svg+xml"))&&(O.value=1,w.value=1)};D()}const S=Un(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),A=()=>{var D;if(!y.value.src||i.value==="idle")return null;const C=Ht("img",{class:["v-img__img",S.value],style:{objectPosition:t.position},src:y.value.src,srcset:y.value.srcset,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable,sizes:t.sizes,ref:b,onLoad:u,onError:h},null),L=(D=f.sources)==null?void 0:D.call(f);return Ht(G4,{transition:t.transition,appear:!0},{default:()=>[Tp(L?Ht("picture",{class:"v-img__picture"},[L,C]):C,[[mS,i.value==="loaded"]])]})},x=()=>Ht(G4,{transition:t.transition},{default:()=>[y.value.lazySrc&&i.value!=="loaded"&&Ht("img",{class:["v-img__img","v-img__img--preload",S.value],style:{objectPosition:t.position},src:y.value.lazySrc,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable},null)]}),R=()=>f.placeholder?Ht(G4,{transition:t.transition,appear:!0},{default:()=>[(i.value==="loading"||i.value==="error"&&!f.error)&&Ht("div",{class:"v-img__placeholder"},[f.placeholder()])]}):null,M=()=>f.error?Ht(G4,{transition:t.transition,appear:!0},{default:()=>[i.value==="error"&&Ht("div",{class:"v-img__error"},[f.error()])]}):null,T=()=>t.gradient?Ht("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,E=Ai(!1);{const C=Ni(p,L=>{L&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{E.value=!0})}),C())})}return ka(()=>{const C=tge.filterProps(t);return Tp(Ht(tge,Ii({class:["v-img",{"v-img--booting":!E.value},P.value,l.value,t.class],style:[{width:Ma(t.width==="auto"?O.value:t.width)},d.value,t.style]},C,{aspectRatio:p.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>Ht(ma,null,[Ht(A,null,null),Ht(x,null,null),Ht(T,null,null),Ht(R,null,null),Ht(M,null,null)]),default:f.default}),[[y_("intersect"),{handler:a,options:t.options},null,{once:!0}]])}),{currentSrc:c,image:b,state:i,naturalWidth:O,naturalHeight:w}}}),k_=ei({border:[Boolean,Number,String]},"border");function DO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{borderClasses:Un(()=>{const f=Dc(t)?t.value:t.border,P=[];if(f===!0||f==="")P.push(`${e}--border`);else if(typeof f=="string"||f===0)for(const d of String(f).split(" "))P.push(`border-${d}`);return P})}}const Qv=ei({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function lb(t){return{elevationClasses:Un(()=>{const o=Dc(t)?t.value:t.elevation,f=[];return o==null||f.push(`elevation-${o}`),f})}}const P9e=[null,"prominent","default","comfortable","compact"],o2e=ei({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:t=>P9e.includes(t)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...k_(),...ys(),...Qv(),...pm(),...hu({tag:"header"}),...vf()},"VToolbar"),nge=Ji()({name:"VToolbar",props:o2e(),setup(t,e){var y;let{slots:o}=e;const{backgroundColorClasses:f,backgroundColorStyles:P}=ig(Oi(t,"color")),{borderClasses:d}=DO(t),{elevationClasses:l}=lb(t),{roundedClasses:n}=lg(t),{themeClasses:c}=ad(t),{rtlClasses:b}=qg(),i=Ai(!!(t.extended||(y=o.extension)!=null&&y.call(o))),O=Un(()=>parseInt(Number(t.height)+(t.density==="prominent"?Number(t.height):0)-(t.density==="comfortable"?8:0)-(t.density==="compact"?16:0),10)),w=Un(()=>i.value?parseInt(Number(t.extensionHeight)+(t.density==="prominent"?Number(t.extensionHeight):0)-(t.density==="comfortable"?4:0)-(t.density==="compact"?8:0),10):0);return ib({VBtn:{variant:"text"}}),ka(()=>{var h;const p=!!(t.title||o.title),a=!!(o.image||t.image),u=(h=o.extension)==null?void 0:h.call(o);return i.value=!!(t.extended||u),Ht(t.tag,{class:["v-toolbar",{"v-toolbar--absolute":t.absolute,"v-toolbar--collapse":t.collapse,"v-toolbar--flat":t.flat,"v-toolbar--floating":t.floating,[`v-toolbar--density-${t.density}`]:!0},f.value,d.value,l.value,n.value,c.value,b.value,t.class],style:[P.value,t.style]},{default:()=>[a&&Ht("div",{key:"image",class:"v-toolbar__image"},[o.image?Ht(du,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},o.image):Ht(kT,{key:"image-img",cover:!0,src:t.image},null)]),Ht(du,{defaults:{VTabs:{height:Ma(O.value)}}},{default:()=>{var m,v,_;return[Ht("div",{class:"v-toolbar__content",style:{height:Ma(O.value)}},[o.prepend&&Ht("div",{class:"v-toolbar__prepend"},[(m=o.prepend)==null?void 0:m.call(o)]),p&&Ht(O9e,{key:"title",text:t.title},{text:o.title}),(v=o.default)==null?void 0:v.call(o),o.append&&Ht("div",{class:"v-toolbar__append"},[(_=o.append)==null?void 0:_.call(o)])])]}}),Ht(du,{defaults:{VTabs:{height:Ma(w.value)}}},{default:()=>[Ht(Xce,null,{default:()=>[i.value&&Ht("div",{class:"v-toolbar__extension",style:{height:Ma(w.value)}},[u])]})]})]})}),{contentHeight:O,extensionHeight:w}}}),R9e=ei({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function L9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:o}=e;let f=0,P=0;const d=ti(null),l=Ai(0),n=Ai(0),c=Ai(0),b=Ai(!1),i=Ai(!1),O=Un(()=>Number(t.scrollThreshold)),w=Un(()=>rg((O.value-l.value)/O.value||0)),y=()=>{const p=d.value;if(!p||o&&!o.value)return;f=l.value,l.value="window"in p?p.pageYOffset:p.scrollTop;const a=p instanceof Window?document.documentElement.scrollHeight:p.scrollHeight;if(P!==a){P=a;return}i.value=l.value{n.value=n.value||l.value}),Ni(b,()=>{n.value=0}),sg(()=>{Ni(()=>t.scrollTarget,p=>{var u;const a=p?document.querySelector(p):window;a&&a!==d.value&&((u=d.value)==null||u.removeEventListener("scroll",y),d.value=a,d.value.addEventListener("scroll",y,{passive:!0}))},{immediate:!0})}),dm(()=>{var p;(p=d.value)==null||p.removeEventListener("scroll",y)}),o&&Ni(o,y,{immediate:!0}),{scrollThreshold:O,currentScroll:l,currentThreshold:c,isScrollActive:b,scrollRatio:w,isScrollingUp:i,savedScroll:n}}function pq(){const t=Ai(!1);return sg(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:Un(()=>t.value?void 0:{transition:"none !important"}),isBooted:CM(t)}}const I9e=ei({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},...o2e(),...qce(),...R9e(),height:{type:[Number,String],default:64}},"VAppBar"),D9e=Ji()({name:"VAppBar",props:I9e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ti(),P=bl(t,"modelValue"),d=Un(()=>{var _;const v=new Set(((_=t.scrollBehavior)==null?void 0:_.split(" "))??[]);return{hide:v.has("hide"),fullyHide:v.has("fully-hide"),inverted:v.has("inverted"),collapse:v.has("collapse"),elevate:v.has("elevate"),fadeImage:v.has("fade-image")}}),l=Un(()=>{const v=d.value;return v.hide||v.fullyHide||v.inverted||v.collapse||v.elevate||v.fadeImage||!P.value}),{currentScroll:n,scrollThreshold:c,isScrollingUp:b,scrollRatio:i}=L9e(t,{canScroll:l}),O=Un(()=>d.value.hide||d.value.fullyHide),w=Un(()=>t.collapse||d.value.collapse&&(d.value.inverted?i.value>0:i.value===0)),y=Un(()=>t.flat||d.value.fullyHide&&!P.value||d.value.elevate&&(d.value.inverted?n.value>0:n.value===0)),p=Un(()=>d.value.fadeImage?d.value.inverted?1-i.value:i.value:void 0),a=Un(()=>{var S,A;const v=Number(((S=f.value)==null?void 0:S.contentHeight)??t.height),_=Number(((A=f.value)==null?void 0:A.extensionHeight)??0);return O.value?n.value!!t.scrollBehavior),()=>{kp(()=>{O.value?d.value.inverted?P.value=n.value>c.value:P.value=b.value||n.valueparseInt(t.order,10)),position:Oi(t,"location"),layoutSize:a,elementSize:Ai(void 0),active:P,absolute:Oi(t,"absolute")});return ka(()=>{const v=nge.filterProps(t);return Ht(nge,Ii({ref:f,class:["v-app-bar",{"v-app-bar--bottom":t.location==="bottom"},t.class],style:[{...h.value,"--v-toolbar-image-opacity":p.value,height:void 0,...u.value},t.style]},v,{collapse:w.value,flat:y.value}),o)}),m}});const B9e=[null,"default","comfortable","compact"],S1=ei({density:{type:String,default:"default",validator:t=>B9e.includes(t)}},"density");function kx(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{densityClasses:Un(()=>`${e}--density-${t.density}`)}}const z9e=["elevated","flat","tonal","outlined","text","plain"];function TT(t,e){return Ht(ma,null,[t&&Ht("span",{key:"overlay",class:`${e}__overlay`},null),Ht("span",{key:"underlay",class:`${e}__underlay`},null)])}const Tx=ei({color:String,variant:{type:String,default:"elevated",validator:t=>z9e.includes(t)}},"variant");function CT(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();const o=Un(()=>{const{variant:d}=wa(t);return`${e}--variant-${d}`}),{colorClasses:f,colorStyles:P}=Gce(Un(()=>{const{variant:d,color:l}=wa(t);return{[["elevated","flat"].includes(d)?"background":"text"]:l}}));return{colorClasses:f,colorStyles:P,variantClasses:o}}const i2e=ei({baseColor:String,divided:Boolean,...k_(),...ys(),...S1(),...Qv(),...pm(),...hu(),...vf(),...Tx()},"VBtnGroup"),rge=Ji()({name:"VBtnGroup",props:i2e(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=ad(t),{densityClasses:P}=kx(t),{borderClasses:d}=DO(t),{elevationClasses:l}=lb(t),{roundedClasses:n}=lg(t);ib({VBtn:{height:"auto",baseColor:Oi(t,"baseColor"),color:Oi(t,"color"),density:Oi(t,"density"),flat:!0,variant:Oi(t,"variant")}}),ka(()=>Ht(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},f.value,d.value,P.value,l.value,n.value,t.class],style:t.style},o))}}),mq=ei({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Jce=ei({value:null,disabled:Boolean,selectedClass:String},"group-item");function eue(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const f=ph("useGroupItem");if(!f)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const P=O1();gf(Symbol.for(`${e.description}:id`),P);const d=yl(e,null);if(!d){if(!o)return d;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const l=Oi(t,"value"),n=Un(()=>!!(d.disabled.value||t.disabled));d.register({id:P,value:l,disabled:n},f),dm(()=>{d.unregister(P)});const c=Un(()=>d.isSelected(P)),b=Un(()=>d.items.value[0].id===P),i=Un(()=>d.items.value[d.items.value.length-1].id===P),O=Un(()=>c.value&&[d.selectedClass.value,t.selectedClass]);return Ni(c,w=>{f.emit("group:selected",{value:w})},{flush:"sync"}),{id:P,isSelected:c,isFirst:b,isLast:i,toggle:()=>d.select(P,!c.value),select:w=>d.select(P,w),selectedClass:O,value:l,disabled:n,group:d}}function gq(t,e){let o=!1;const f=lm([]),P=bl(t,"modelValue",[],w=>w==null?[]:a2e(f,fm(w)),w=>{const y=N9e(f,w);return t.multiple?y:y[0]}),d=ph("useGroup");function l(w,y){const p=w,a=Symbol.for(`${e.description}:id`),h=QA(a,d==null?void 0:d.vnode).indexOf(y);wa(p.value)==null&&(p.value=h,p.useIndexAsValue=!0),h>-1?f.splice(h,0,p):f.push(p)}function n(w){if(o)return;c();const y=f.findIndex(p=>p.id===w);f.splice(y,1)}function c(){const w=f.find(y=>!y.disabled);w&&t.mandatory==="force"&&!P.value.length&&(P.value=[w.id])}sg(()=>{c()}),dm(()=>{o=!0}),Fle(()=>{for(let w=0;wa.id===w);if(!(y&&(p!=null&&p.disabled)))if(t.multiple){const a=P.value.slice(),u=a.findIndex(m=>m===w),h=~u;if(y=y??!h,h&&t.mandatory&&a.length<=1||!h&&t.max!=null&&a.length+1>t.max)return;u<0&&y?a.push(w):u>=0&&!y&&a.splice(u,1),P.value=a}else{const a=P.value.includes(w);if(t.mandatory&&a)return;P.value=y??!a?[w]:[]}}function i(w){if(t.multiple,P.value.length){const y=P.value[0],p=f.findIndex(h=>h.id===y);let a=(p+w)%f.length,u=f[a];for(;u.disabled&&a!==p;)a=(a+w)%f.length,u=f[a];if(u.disabled)return;P.value=[f[a].id]}else{const y=f.find(p=>!p.disabled);y&&(P.value=[y.id])}}const O={register:l,unregister:n,selected:P,select:b,disabled:Oi(t,"disabled"),prev:()=>i(f.length-1),next:()=>i(1),isSelected:w=>P.value.includes(w),selectedClass:Un(()=>t.selectedClass),items:Un(()=>f),getItemIndex:w=>F9e(f,w)};return gf(e,O),O}function F9e(t,e){const o=a2e(t,[e]);return o.length?t.findIndex(f=>f.id===o[0]):-1}function a2e(t,e){const o=[];return e.forEach(f=>{const P=t.find(l=>bS(f,l.value)),d=t[f];(P==null?void 0:P.value)!=null?o.push(P.id):d!=null&&o.push(d.id)}),o}function N9e(t,e){const o=[];return e.forEach(f=>{const P=t.findIndex(d=>d.id===f);if(~P){const d=t[P];o.push(d.value!=null?d.value:P)}}),o}const s2e=Symbol.for("vuetify:v-btn-toggle"),$9e=ei({...i2e(),...mq()},"VBtnToggle"),l2e=Ji()({name:"VBtnToggle",props:$9e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isSelected:f,next:P,prev:d,select:l,selected:n}=gq(t,s2e);return ka(()=>{const c=rge.filterProps(t);return Ht(rge,Ii({class:["v-btn-toggle",t.class]},c,{style:t.style}),{default:()=>{var b;return[(b=o.default)==null?void 0:b.call(o,{isSelected:f,next:P,prev:d,select:l,selected:n})]}})}),{next:P,prev:d,select:l}}});const c2e={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},u2e={component:t=>w1(d2e,{...t,class:"mdi"})},ul=[String,Function,Object,Array],Dse=Symbol.for("vuetify:icons"),vq=ei({icon:{type:ul},tag:{type:String,required:!0}},"icon"),oge=Ji()({name:"VComponentIcon",props:vq(),setup(t,e){let{slots:o}=e;return()=>{const f=t.icon;return Ht(t.tag,null,{default:()=>{var P;return[t.icon?Ht(f,null,null):(P=o.default)==null?void 0:P.call(o)]}})}}}),f2e=RM({name:"VSvgIcon",inheritAttrs:!1,props:vq(),setup(t,e){let{attrs:o}=e;return()=>Ht(t.tag,Ii(o,{style:null}),{default:()=>[Ht("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(f=>Array.isArray(f)?Ht("path",{d:f[0],"fill-opacity":f[1]},null):Ht("path",{d:f},null)):Ht("path",{d:t.icon},null)])]})}});RM({name:"VLigatureIcon",props:vq(),setup(t){return()=>Ht(t.tag,null,{default:()=>[t.icon]})}});const d2e=RM({name:"VClassIcon",props:vq(),setup(t){return()=>Ht(t.tag,{class:t.icon},null)}});function V9e(){return{svg:{component:f2e},class:{component:d2e}}}function U9e(t){const e=V9e(),o=(t==null?void 0:t.defaultSet)??"mdi";return o==="mdi"&&!e.mdi&&(e.mdi=u2e),jg({defaultSet:o,sets:e,aliases:{...c2e,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},t)}const j9e=t=>{const e=yl(Dse);if(!e)throw new Error("Missing Vuetify Icons provide!");return{iconData:Un(()=>{var c;const f=wa(t);if(!f)return{component:oge};let P=f;if(typeof P=="string"&&(P=P.trim(),P.startsWith("$")&&(P=(c=e.aliases)==null?void 0:c[P.slice(1)])),Array.isArray(P))return{component:f2e,icon:P};if(typeof P!="string")return{component:oge,icon:P};const d=Object.keys(e.sets).find(b=>typeof P=="string"&&P.startsWith(`${b}:`)),l=d?P.slice(d.length+1):P;return{component:e.sets[d??e.defaultSet].component,icon:l}})}},Q9e=["x-small","small","default","large","x-large"],AT=ei({size:{type:[String,Number],default:"default"}},"size");function SD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return Uce(()=>{let o,f;return lZ(Q9e,t.size)?o=`${e}--size-${t.size}`:t.size&&(f={width:Ma(t.size),height:Ma(t.size)}),{sizeClasses:o,sizeStyles:f}})}const H9e=ei({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:ul,...ys(),...AT(),...hu({tag:"i"}),...vf()},"VIcon"),Al=Ji()({name:"VIcon",props:H9e(),setup(t,e){let{attrs:o,slots:f}=e;const P=ti(),{themeClasses:d}=ad(t),{iconData:l}=j9e(Un(()=>P.value||t.icon)),{sizeClasses:n}=SD(t),{textColorClasses:c,textColorStyles:b}=Uv(Oi(t,"color"));return ka(()=>{var w,y;const i=(w=f.default)==null?void 0:w.call(f);i&&(P.value=(y=Pxe(i).filter(p=>p.type===hD&&p.children&&typeof p.children=="string")[0])==null?void 0:y.children);const O=!!(o.onClick||o.onClickOnce);return Ht(l.value.component,{tag:t.tag,icon:l.value.icon,class:["v-icon","notranslate",d.value,n.value,c.value,{"v-icon--clickable":O,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[n.value?void 0:{fontSize:Ma(t.size),height:Ma(t.size),width:Ma(t.size)},b.value,t.style],role:O?"button":void 0,"aria-hidden":!O,tabindex:O?t.disabled?-1:0:void 0},{default:()=>[i]})}),{}}});function h2e(t,e){const o=ti(),f=Ai(!1);if(Nce){const P=new IntersectionObserver(d=>{t==null||t(d,P),f.value=!!d.find(l=>l.isIntersecting)},e);dm(()=>{P.disconnect()}),Ni(o,(d,l)=>{l&&(P.unobserve(l),f.value=!1),d&&P.observe(d)},{flush:"post"})}return{intersectionRef:o,isIntersecting:f}}const Z9e=ei({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ys(),...AT(),...hu({tag:"div"}),...vf()},"VProgressCircular"),LM=Ji()({name:"VProgressCircular",props:Z9e(),setup(t,e){let{slots:o}=e;const f=20,P=2*Math.PI*f,d=ti(),{themeClasses:l}=ad(t),{sizeClasses:n,sizeStyles:c}=SD(t),{textColorClasses:b,textColorStyles:i}=Uv(Oi(t,"color")),{textColorClasses:O,textColorStyles:w}=Uv(Oi(t,"bgColor")),{intersectionRef:y,isIntersecting:p}=h2e(),{resizeRef:a,contentRect:u}=dS(),h=Un(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),m=Un(()=>Number(t.width)),v=Un(()=>c.value?Number(t.size):u.value?u.value.width:Math.max(m.value,32)),_=Un(()=>f/(1-m.value/v.value)*2),S=Un(()=>m.value/v.value*_.value),A=Un(()=>Ma((100-h.value)/100*P));return kp(()=>{y.value=d.value,a.value=d.value}),ka(()=>Ht(t.tag,{ref:d,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":p.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},l.value,n.value,b.value,t.class],style:[c.value,i.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:h.value},{default:()=>[Ht("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[Ht("circle",{class:["v-progress-circular__underlay",O.value],style:w.value,fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":S.value,"stroke-dasharray":P,"stroke-dashoffset":0},null),Ht("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":S.value,"stroke-dasharray":P,"stroke-dashoffset":A.value},null)]),o.default&&Ht("div",{class:"v-progress-circular__content"},[o.default({value:h.value})])]})),{}}});const ige={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},kD=ei({location:String},"location");function yq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2?arguments[2]:void 0;const{isRtl:f}=qg();return{locationStyles:Un(()=>{if(!t.location)return{};const{side:d,align:l}=Rse(t.location.split(" ").length>1?t.location:`${t.location} center`,f.value);function n(b){return o?o(b):0}const c={};return d!=="center"&&(e?c[ige[d]]=`calc(100% - ${n(d)}px)`:c[d]=0),l!=="center"?e?c[ige[l]]=`calc(100% - ${n(l)}px)`:c[l]=0:(d==="center"?c.top=c.left="50%":c[{top:"left",bottom:"left",left:"top",right:"top"}[d]]="50%",c.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[d]),c})}}const q9e=ei({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...ys(),...kD({location:"top"}),...pm(),...hu(),...vf()},"VProgressLinear"),p2e=Ji()({name:"VProgressLinear",props:q9e(),emits:{"update:modelValue":t=>!0},setup(t,e){var E;let{slots:o}=e;const f=bl(t,"modelValue"),{isRtl:P,rtlClasses:d}=qg(),{themeClasses:l}=ad(t),{locationStyles:n}=yq(t),{textColorClasses:c,textColorStyles:b}=Uv(t,"color"),{backgroundColorClasses:i,backgroundColorStyles:O}=ig(Un(()=>t.bgColor||t.color)),{backgroundColorClasses:w,backgroundColorStyles:y}=ig(Un(()=>t.bufferColor||t.bgColor||t.color)),{backgroundColorClasses:p,backgroundColorStyles:a}=ig(t,"color"),{roundedClasses:u}=lg(t),{intersectionRef:h,isIntersecting:m}=h2e(),v=Un(()=>parseFloat(t.max)),_=Un(()=>parseFloat(t.height)),S=Un(()=>rg(parseFloat(t.bufferValue)/v.value*100,0,100)),A=Un(()=>rg(parseFloat(f.value)/v.value*100,0,100)),x=Un(()=>P.value!==t.reverse),R=Un(()=>t.indeterminate?"fade-transition":"slide-x-transition"),M=ou&&((E=window.matchMedia)==null?void 0:E.call(window,"(forced-colors: active)").matches);function T(C){if(!h.value)return;const{left:L,right:D,width:k}=h.value.getBoundingClientRect(),I=x.value?k-C.clientX+(D-k):C.clientX-L;f.value=Math.round(I/k*v.value)}return ka(()=>Ht(t.tag,{ref:h,class:["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&m.value,"v-progress-linear--reverse":x.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped},u.value,l.value,d.value,t.class],style:[{bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?Ma(_.value):0,"--v-progress-linear-height":Ma(_.value),...t.absolute?n.value:{}},t.style],role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:A.value,onClick:t.clickable&&T},{default:()=>[t.stream&&Ht("div",{key:"stream",class:["v-progress-linear__stream",c.value],style:{...b.value,[x.value?"left":"right"]:Ma(-_.value),borderTop:`${Ma(_.value/2)} dotted`,opacity:parseFloat(t.bufferOpacity),top:`calc(50% - ${Ma(_.value/4)})`,width:Ma(100-S.value,"%"),"--v-progress-linear-stream-to":Ma(_.value*(x.value?1:-1))}},null),Ht("div",{class:["v-progress-linear__background",M?void 0:i.value],style:[O.value,{opacity:parseFloat(t.bgOpacity),width:t.stream?0:void 0}]},null),Ht("div",{class:["v-progress-linear__buffer",M?void 0:w.value],style:[y.value,{opacity:parseFloat(t.bufferOpacity),width:Ma(S.value,"%")}]},null),Ht(h_,{name:R.value},{default:()=>[t.indeterminate?Ht("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(C=>Ht("div",{key:C,class:["v-progress-linear__indeterminate",C,M?void 0:p.value],style:a.value},null))]):Ht("div",{class:["v-progress-linear__determinate",M?void 0:p.value],style:[a.value,{width:Ma(A.value,"%")}]},null)]}),o.default&&Ht("div",{class:"v-progress-linear__content"},[o.default({value:A.value,buffer:S.value})])]})),{}}}),bq=ei({loading:[Boolean,String]},"loader");function TD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{loaderClasses:Un(()=>({[`${e}--loading`]:t.loading}))}}function xq(t,e){var f;let{slots:o}=e;return Ht("div",{class:`${t.name}__loader`},[((f=o.default)==null?void 0:f.call(o,{color:t.color,isActive:t.active}))||Ht(p2e,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const W9e=["static","relative","fixed","absolute","sticky"],_q=ei({position:{type:String,validator:t=>W9e.includes(t)}},"position");function wq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();return{positionClasses:Un(()=>t.position?`${e}--${t.position}`:void 0)}}function Y9e(){const t=ph("useRoute");return Un(()=>{var e;return(e=t==null?void 0:t.proxy)==null?void 0:e.$route})}function m2e(){var t,e;return(e=(t=ph("useRouter"))==null?void 0:t.proxy)==null?void 0:e.$router}function Oq(t,e){var b,i;const o=kI("RouterLink"),f=Un(()=>!!(t.href||t.to)),P=Un(()=>(f==null?void 0:f.value)||Pme(e,"click")||Pme(t,"click"));if(typeof o=="string"||!("useLink"in o))return{isLink:f,isClickable:P,href:Oi(t,"href")};const d=Un(()=>({...t,to:Oi(()=>t.to||"")})),l=o.useLink(d.value),n=Un(()=>t.to?l:void 0),c=Y9e();return{isLink:f,isClickable:P,route:(b=n.value)==null?void 0:b.route,navigate:(i=n.value)==null?void 0:i.navigate,isActive:Un(()=>{var O,w,y;return n.value?t.exact?c.value?((y=n.value.isExactActive)==null?void 0:y.value)&&bS(n.value.route.value.query,c.value.query):((w=n.value.isExactActive)==null?void 0:w.value)??!1:((O=n.value.isActive)==null?void 0:O.value)??!1:!1}),href:Un(()=>{var O;return t.to?(O=n.value)==null?void 0:O.route.value.href:t.href})}}const Sq=ei({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Vie=!1;function X9e(t,e){let o=!1,f,P;ou&&(lc(()=>{window.addEventListener("popstate",d),f=t==null?void 0:t.beforeEach((l,n,c)=>{Vie?o?e(c):c():setTimeout(()=>o?e(c):c()),Vie=!0}),P=t==null?void 0:t.afterEach(()=>{Vie=!1})}),ag(()=>{window.removeEventListener("popstate",d),f==null||f(),P==null||P()}));function d(l){var n;(n=l.state)!=null&&n.replaced||(o=!0,setTimeout(()=>o=!1))}}function G9e(t,e){Ni(()=>{var o;return(o=t.isActive)==null?void 0:o.value},o=>{t.isLink.value&&o&&e&&lc(()=>{e(!0)})},{immediate:!0})}const Bse=Symbol("rippleStop"),K9e=80;function age(t,e){t.style.transform=e,t.style.webkitTransform=e}function zse(t){return t.constructor.name==="TouchEvent"}function g2e(t){return t.constructor.name==="KeyboardEvent"}const J9e=function(t,e){var O;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=0,P=0;if(!g2e(t)){const w=e.getBoundingClientRect(),y=zse(t)?t.touches[t.touches.length-1]:t;f=y.clientX-w.left,P=y.clientY-w.top}let d=0,l=.3;(O=e._ripple)!=null&&O.circle?(l=.15,d=e.clientWidth/2,d=o.center?d:d+Math.sqrt((f-d)**2+(P-d)**2)/4):d=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const n=`${(e.clientWidth-d*2)/2}px`,c=`${(e.clientHeight-d*2)/2}px`,b=o.center?n:`${f-d}px`,i=o.center?c:`${P-d}px`;return{radius:d,scale:l,x:b,y:i,centerX:n,centerY:c}},mZ={show(t,e){var y;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((y=e==null?void 0:e._ripple)!=null&&y.enabled))return;const f=document.createElement("span"),P=document.createElement("span");f.appendChild(P),f.className="v-ripple__container",o.class&&(f.className+=` ${o.class}`);const{radius:d,scale:l,x:n,y:c,centerX:b,centerY:i}=J9e(t,e,o),O=`${d*2}px`;P.className="v-ripple__animation",P.style.width=O,P.style.height=O,e.appendChild(f);const w=window.getComputedStyle(e);w&&w.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),P.classList.add("v-ripple__animation--enter"),P.classList.add("v-ripple__animation--visible"),age(P,`translate(${n}, ${c}) scale3d(${l},${l},${l})`),P.dataset.activated=String(performance.now()),setTimeout(()=>{P.classList.remove("v-ripple__animation--enter"),P.classList.add("v-ripple__animation--in"),age(P,`translate(${b}, ${i}) scale3d(1,1,1)`)},0)},hide(t){var d;if(!((d=t==null?void 0:t._ripple)!=null&&d.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const o=e[e.length-1];if(o.dataset.isHiding)return;o.dataset.isHiding="true";const f=performance.now()-Number(o.dataset.activated),P=Math.max(250-f,0);setTimeout(()=>{o.classList.remove("v-ripple__animation--in"),o.classList.add("v-ripple__animation--out"),setTimeout(()=>{var n;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((n=o.parentNode)==null?void 0:n.parentNode)===t&&t.removeChild(o.parentNode)},300)},P)}};function v2e(t){return typeof t>"u"||!!t}function GI(t){const e={},o=t.currentTarget;if(!(!(o!=null&&o._ripple)||o._ripple.touched||t[Bse])){if(t[Bse]=!0,zse(t))o._ripple.touched=!0,o._ripple.isTouch=!0;else if(o._ripple.isTouch)return;if(e.center=o._ripple.centered||g2e(t),o._ripple.class&&(e.class=o._ripple.class),zse(t)){if(o._ripple.showTimerCommit)return;o._ripple.showTimerCommit=()=>{mZ.show(t,o,e)},o._ripple.showTimer=window.setTimeout(()=>{var f;(f=o==null?void 0:o._ripple)!=null&&f.showTimerCommit&&(o._ripple.showTimerCommit(),o._ripple.showTimerCommit=null)},K9e)}else mZ.show(t,o,e)}}function sge(t){t[Bse]=!0}function Fv(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{Fv(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),mZ.hide(e)}}function y2e(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let KI=!1;function b2e(t){!KI&&(t.keyCode===Tme.enter||t.keyCode===Tme.space)&&(KI=!0,GI(t))}function x2e(t){KI=!1,Fv(t)}function _2e(t){KI&&(KI=!1,Fv(t))}function w2e(t,e,o){const{value:f,modifiers:P}=e,d=v2e(f);if(d||mZ.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=d,t._ripple.centered=P.center,t._ripple.circle=P.circle,Mse(f)&&f.class&&(t._ripple.class=f.class),d&&!o){if(P.stop){t.addEventListener("touchstart",sge,{passive:!0}),t.addEventListener("mousedown",sge);return}t.addEventListener("touchstart",GI,{passive:!0}),t.addEventListener("touchend",Fv,{passive:!0}),t.addEventListener("touchmove",y2e,{passive:!0}),t.addEventListener("touchcancel",Fv),t.addEventListener("mousedown",GI),t.addEventListener("mouseup",Fv),t.addEventListener("mouseleave",Fv),t.addEventListener("keydown",b2e),t.addEventListener("keyup",x2e),t.addEventListener("blur",_2e),t.addEventListener("dragstart",Fv,{passive:!0})}else!d&&o&&O2e(t)}function O2e(t){t.removeEventListener("mousedown",GI),t.removeEventListener("touchstart",GI),t.removeEventListener("touchend",Fv),t.removeEventListener("touchmove",y2e),t.removeEventListener("touchcancel",Fv),t.removeEventListener("mouseup",Fv),t.removeEventListener("mouseleave",Fv),t.removeEventListener("keydown",b2e),t.removeEventListener("keyup",x2e),t.removeEventListener("dragstart",Fv),t.removeEventListener("blur",_2e)}function eRe(t,e){w2e(t,e,!1)}function tRe(t){delete t._ripple,O2e(t)}function nRe(t,e){if(e.value===e.oldValue)return;const o=v2e(e.oldValue);w2e(t,e,o)}const MT={mounted:eRe,unmounted:tRe,updated:nRe},rRe=ei({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:s2e},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:ul,appendIcon:ul,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...k_(),...ys(),...S1(),...O_(),...Qv(),...Jce(),...bq(),...kD(),..._q(),...pm(),...Sq(),...AT(),...hu({tag:"button"}),...vf(),...Tx({variant:"elevated"})},"VBtn"),ls=Ji()({name:"VBtn",props:rRe(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:P}=ad(t),{borderClasses:d}=DO(t),{densityClasses:l}=kx(t),{dimensionStyles:n}=S_(t),{elevationClasses:c}=lb(t),{loaderClasses:b}=TD(t),{locationStyles:i}=yq(t),{positionClasses:O}=wq(t),{roundedClasses:w}=lg(t),{sizeClasses:y,sizeStyles:p}=SD(t),a=eue(t,t.symbol,!1),u=Oq(t,o),h=Un(()=>{var T;return t.active!==void 0?t.active:u.isLink.value?(T=u.isActive)==null?void 0:T.value:a==null?void 0:a.isSelected.value}),m=Un(()=>{var E,C;return{color:(a==null?void 0:a.isSelected.value)&&(!u.isLink.value||((E=u.isActive)==null?void 0:E.value))||!a||((C=u.isActive)==null?void 0:C.value)?t.color??t.baseColor:t.baseColor,variant:t.variant}}),{colorClasses:v,colorStyles:_,variantClasses:S}=CT(m),A=Un(()=>(a==null?void 0:a.disabled.value)||t.disabled),x=Un(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),R=Un(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function M(T){var E;A.value||u.isLink.value&&(T.metaKey||T.ctrlKey||T.shiftKey||T.button!==0||o.target==="_blank")||((E=u.navigate)==null||E.call(u,T),a==null||a.toggle())}return G9e(u,a==null?void 0:a.select),ka(()=>{const T=u.isLink.value?"a":t.tag,E=!!(t.prependIcon||f.prepend),C=!!(t.appendIcon||f.append),L=!!(t.icon&&t.icon!==!0);return Tp(Ht(T,{type:T==="a"?void 0:"button",class:["v-btn",a==null?void 0:a.selectedClass.value,{"v-btn--active":h.value,"v-btn--block":t.block,"v-btn--disabled":A.value,"v-btn--elevated":x.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--readonly":t.readonly,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},P.value,d.value,v.value,l.value,c.value,b.value,O.value,w.value,y.value,S.value,t.class],style:[_.value,n.value,i.value,p.value,t.style],"aria-busy":t.loading?!0:void 0,disabled:A.value||void 0,href:u.href.value,tabindex:t.loading||t.readonly?-1:void 0,onClick:M,value:R.value},{default:()=>{var D;return[TT(!0,"v-btn"),!t.icon&&E&&Ht("span",{key:"prepend",class:"v-btn__prepend"},[f.prepend?Ht(du,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},f.prepend):Ht(Al,{key:"prepend-icon",icon:t.prependIcon},null)]),Ht("span",{class:"v-btn__content","data-no-activator":""},[!f.default&&L?Ht(Al,{key:"content-icon",icon:t.icon},null):Ht(du,{key:"content-defaults",disabled:!L,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var k;return[((k=f.default)==null?void 0:k.call(f))??t.text]}})]),!t.icon&&C&&Ht("span",{key:"append",class:"v-btn__append"},[f.append?Ht(du,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},f.append):Ht(Al,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&Ht("span",{key:"loader",class:"v-btn__loader"},[((D=f.loader)==null?void 0:D.call(f))??Ht(LM,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,width:"2"},null)])]}}),[[MT,!A.value&&t.ripple,"",{center:!!t.icon}]])}),{group:a}}});const oRe=hq("v-alert-title"),iRe=["success","info","warning","error"],aRe=ei({border:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["top","end","bottom","start"].includes(t)},borderColor:String,closable:Boolean,closeIcon:{type:ul,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:t=>iRe.includes(t)},...ys(),...S1(),...O_(),...Qv(),...kD(),..._q(),...pm(),...hu(),...vf(),...Tx({variant:"flat"})},"VAlert"),lge=Ji()({name:"VAlert",props:aRe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{emit:o,slots:f}=e;const P=bl(t,"modelValue"),d=Un(()=>{if(t.icon!==!1)return t.type?t.icon??`$${t.type}`:t.icon}),l=Un(()=>({color:t.color??t.type,variant:t.variant})),{themeClasses:n}=ad(t),{colorClasses:c,colorStyles:b,variantClasses:i}=CT(l),{densityClasses:O}=kx(t),{dimensionStyles:w}=S_(t),{elevationClasses:y}=lb(t),{locationStyles:p}=yq(t),{positionClasses:a}=wq(t),{roundedClasses:u}=lg(t),{textColorClasses:h,textColorStyles:m}=Uv(Oi(t,"borderColor")),{t:v}=sb(),_=Un(()=>({"aria-label":v(t.closeLabel),onClick(S){P.value=!1,o("click:close",S)}}));return()=>{const S=!!(f.prepend||d.value),A=!!(f.title||t.title),x=!!(f.close||t.closable);return P.value&&Ht(t.tag,{class:["v-alert",t.border&&{"v-alert--border":!!t.border,[`v-alert--border-${t.border===!0?"start":t.border}`]:!0},{"v-alert--prominent":t.prominent},n.value,c.value,O.value,y.value,a.value,u.value,i.value,t.class],style:[b.value,w.value,p.value,t.style],role:"alert"},{default:()=>{var R,M;return[TT(!1,"v-alert"),t.border&&Ht("div",{key:"border",class:["v-alert__border",h.value],style:m.value},null),S&&Ht("div",{key:"prepend",class:"v-alert__prepend"},[f.prepend?Ht(du,{key:"prepend-defaults",disabled:!d.value,defaults:{VIcon:{density:t.density,icon:d.value,size:t.prominent?44:28}}},f.prepend):Ht(Al,{key:"prepend-icon",density:t.density,icon:d.value,size:t.prominent?44:28},null)]),Ht("div",{class:"v-alert__content"},[A&&Ht(oRe,{key:"title"},{default:()=>{var T;return[((T=f.title)==null?void 0:T.call(f))??t.title]}}),((R=f.text)==null?void 0:R.call(f))??t.text,(M=f.default)==null?void 0:M.call(f)]),f.append&&Ht("div",{key:"append",class:"v-alert__append"},[f.append()]),x&&Ht("div",{key:"close",class:"v-alert__close"},[f.close?Ht(du,{key:"close-defaults",defaults:{VBtn:{icon:t.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var T;return[(T=f.close)==null?void 0:T.call(f,{props:_.value})]}}):Ht(ls,Ii({key:"close-btn",icon:t.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}});const sRe=ei({start:Boolean,end:Boolean,icon:ul,image:String,text:String,...ys(),...S1(),...pm(),...AT(),...hu(),...vf(),...Tx({variant:"flat"})},"VAvatar"),PO=Ji()({name:"VAvatar",props:sRe(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=ad(t),{colorClasses:P,colorStyles:d,variantClasses:l}=CT(t),{densityClasses:n}=kx(t),{roundedClasses:c}=lg(t),{sizeClasses:b,sizeStyles:i}=SD(t);return ka(()=>Ht(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},f.value,P.value,n.value,c.value,b.value,l.value,t.class],style:[d.value,i.value,t.style]},{default:()=>[o.default?Ht(du,{key:"content-defaults",defaults:{VImg:{cover:!0,src:t.image},VIcon:{icon:t.icon}}},{default:()=>[o.default()]}):t.image?Ht(kT,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?Ht(Al,{key:"icon",icon:t.icon},null):t.text,TT(!1,"v-avatar")]})),{}}});const lRe=ei({text:String,onClick:og(),...ys(),...vf()},"VLabel"),kq=Ji()({name:"VLabel",props:lRe(),setup(t,e){let{slots:o}=e;return ka(()=>{var f;return Ht("label",{class:["v-label",{"v-label--clickable":!!t.onClick},t.class],style:t.style,onClick:t.onClick},[t.text,(f=o.default)==null?void 0:f.call(o)])}),{}}});const S2e=Symbol.for("vuetify:selection-control-group"),k2e=ei({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:ul,trueIcon:ul,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:bS},...ys(),...S1(),...vf()},"SelectionControlGroup"),cRe=ei({...k2e({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Ji()({name:"VSelectionControlGroup",props:cRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=bl(t,"modelValue"),P=O1(),d=Un(()=>t.id||`v-selection-control-group-${P}`),l=Un(()=>t.name||d.value),n=new Set;return gf(S2e,{modelValue:f,forceUpdate:()=>{n.forEach(c=>c())},onForceUpdate:c=>{n.add(c),ag(()=>{n.delete(c)})}}),ib({[t.defaultsTarget]:{color:Oi(t,"color"),disabled:Oi(t,"disabled"),density:Oi(t,"density"),error:Oi(t,"error"),inline:Oi(t,"inline"),modelValue:f,multiple:Un(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),name:l,falseIcon:Oi(t,"falseIcon"),trueIcon:Oi(t,"trueIcon"),readonly:Oi(t,"readonly"),ripple:Oi(t,"ripple"),type:Oi(t,"type"),valueComparator:Oi(t,"valueComparator")}}),ka(()=>{var c;return Ht("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(c=o.default)==null?void 0:c.call(o)])}),{}}});const tue=ei({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...ys(),...k2e()},"VSelectionControl");function uRe(t){const e=yl(S2e,void 0),{densityClasses:o}=kx(t),f=bl(t,"modelValue"),P=Un(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),d=Un(()=>t.falseValue!==void 0?t.falseValue:!1),l=Un(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),n=Un({get(){const y=e?e.modelValue.value:f.value;return l.value?fm(y).some(p=>t.valueComparator(p,P.value)):t.valueComparator(y,P.value)},set(y){if(t.readonly)return;const p=y?P.value:d.value;let a=p;l.value&&(a=y?[...fm(f.value),p]:fm(f.value).filter(u=>!t.valueComparator(u,P.value))),e?e.modelValue.value=a:f.value=a}}),{textColorClasses:c,textColorStyles:b}=Uv(Un(()=>{if(!(t.error||t.disabled))return n.value?t.color:t.baseColor})),{backgroundColorClasses:i,backgroundColorStyles:O}=ig(Un(()=>n.value&&!t.error&&!t.disabled?t.color:t.baseColor)),w=Un(()=>n.value?t.trueIcon:t.falseIcon);return{group:e,densityClasses:o,trueValue:P,falseValue:d,model:n,textColorClasses:c,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:O,icon:w}}const gZ=Ji()({name:"VSelectionControl",directives:{Ripple:MT},inheritAttrs:!1,props:tue(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{group:P,densityClasses:d,icon:l,model:n,textColorClasses:c,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:O,trueValue:w}=uRe(t),y=O1(),p=Ai(!1),a=Ai(!1),u=ti(),h=Un(()=>t.id||`input-${y}`),m=Un(()=>!t.disabled&&!t.readonly);P==null||P.onForceUpdate(()=>{u.value&&(u.value.checked=n.value)});function v(x){m.value&&(p.value=!0,vM(x.target,":focus-visible")!==!1&&(a.value=!0))}function _(){p.value=!1,a.value=!1}function S(x){x.stopPropagation()}function A(x){if(!m.value){u.value&&(u.value.checked=n.value);return}t.readonly&&P&&lc(()=>P.forceUpdate()),n.value=x.target.checked}return ka(()=>{var E,C;const x=f.label?f.label({label:t.label,props:{for:h.value}}):t.label,[R,M]=fq(o),T=Ht("input",Ii({ref:u,checked:n.value,disabled:!!t.disabled,id:h.value,onBlur:_,onFocus:v,onInput:A,"aria-disabled":!!t.disabled,"aria-label":t.label,type:t.type,value:w.value,name:t.name,"aria-checked":t.type==="checkbox"?n.value:void 0},M),null);return Ht("div",Ii({class:["v-selection-control",{"v-selection-control--dirty":n.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":p.value,"v-selection-control--focus-visible":a.value,"v-selection-control--inline":t.inline},d.value,t.class]},R,{style:t.style}),[Ht("div",{class:["v-selection-control__wrapper",c.value],style:b.value},[(E=f.default)==null?void 0:E.call(f,{backgroundColorClasses:i,backgroundColorStyles:O}),Tp(Ht("div",{class:["v-selection-control__input"]},[((C=f.input)==null?void 0:C.call(f,{model:n,textColorClasses:c,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:O,inputNode:T,icon:l.value,props:{onFocus:v,onBlur:_,id:h.value}}))??Ht(ma,null,[l.value&&Ht(Al,{key:"icon",icon:l.value},null),T])]),[[y_("ripple"),t.ripple&&[!t.disabled&&!t.readonly,null,["center","circle"]]]])]),x&&Ht(kq,{for:h.value,onClick:S},{default:()=>[x]})])}),{isFocused:p,input:u}}}),fRe=ei({indeterminate:Boolean,indeterminateIcon:{type:ul,default:"$checkboxIndeterminate"},...tue({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),IM=Ji()({name:"VCheckboxBtn",props:fRe(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{slots:o}=e;const f=bl(t,"indeterminate"),P=bl(t,"modelValue");function d(c){f.value&&(f.value=!1)}const l=Un(()=>f.value?t.indeterminateIcon:t.falseIcon),n=Un(()=>f.value?t.indeterminateIcon:t.trueIcon);return ka(()=>{const c=__(gZ.filterProps(t),["modelValue"]);return Ht(gZ,Ii(c,{modelValue:P.value,"onUpdate:modelValue":[b=>P.value=b,d],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:l.value,trueIcon:n.value,"aria-checked":f.value?"mixed":void 0}),o)}),{}}});function T2e(t){const{t:e}=sb();function o(f){let{name:P}=f;const d={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[P],l=t[`onClick:${P}`],n=l&&d?e(`$vuetify.input.${d}`,t.label??""):void 0;return Ht(Al,{icon:t[`${P}Icon`],"aria-label":n,onClick:l},null)}return{InputIcon:o}}const dRe=ei({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...ys(),...ST({transition:{component:e2e,leaveAbsolute:!0,group:!0}})},"VMessages"),hRe=Ji()({name:"VMessages",props:dRe(),setup(t,e){let{slots:o}=e;const f=Un(()=>fm(t.messages)),{textColorClasses:P,textColorStyles:d}=Uv(Un(()=>t.color));return ka(()=>Ht(G4,{transition:t.transition,tag:"div",class:["v-messages",P.value,t.class],style:[d.value,t.style],role:"alert","aria-live":"polite"},{default:()=>[t.active&&f.value.map((l,n)=>Ht("div",{class:"v-messages__message",key:`${n}-${f.value}`},[o.message?o.message({message:l}):l]))]})),{}}}),Tq=ei({focused:Boolean,"onUpdate:focused":og()},"focus");function DM(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();const o=bl(t,"focused"),f=Un(()=>({[`${e}--focused`]:o.value}));function P(){o.value=!0}function d(){o.value=!1}return{focusClasses:f,isFocused:o,focus:P,blur:d}}const C2e=Symbol.for("vuetify:form"),pRe=ei({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function mRe(t){const e=bl(t,"modelValue"),o=Un(()=>t.disabled),f=Un(()=>t.readonly),P=Ai(!1),d=ti([]),l=ti([]);async function n(){const i=[];let O=!0;l.value=[],P.value=!0;for(const w of d.value){const y=await w.validate();if(y.length>0&&(O=!1,i.push({id:w.id,errorMessages:y})),!O&&t.fastFail)break}return l.value=i,P.value=!1,{valid:O,errors:l.value}}function c(){d.value.forEach(i=>i.reset())}function b(){d.value.forEach(i=>i.resetValidation())}return Ni(d,()=>{let i=0,O=0;const w=[];for(const y of d.value)y.isValid===!1?(O++,w.push({id:y.id,errorMessages:y.errorMessages})):y.isValid===!0&&i++;l.value=w,e.value=O>0?!1:i===d.value.length?!0:null},{deep:!0,flush:"post"}),gf(C2e,{register:i=>{let{id:O,vm:w,validate:y,reset:p,resetValidation:a}=i;d.value.some(u=>u.id===O),d.value.push({id:O,validate:y,reset:p,resetValidation:a,vm:fD(w),isValid:null,errorMessages:[]})},unregister:i=>{d.value=d.value.filter(O=>O.id!==i)},update:(i,O,w)=>{const y=d.value.find(p=>p.id===i);y&&(y.isValid=O,y.errorMessages=w)},isDisabled:o,isReadonly:f,isValidating:P,isValid:e,items:d,validateOn:Oi(t,"validateOn")}),{errors:l,isDisabled:o,isReadonly:f,isValidating:P,isValid:e,items:d,validate:n,reset:c,resetValidation:b}}function Cq(){return yl(C2e,null)}const gRe=ei({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Tq()},"validation");function vRe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_(),o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:O1();const f=bl(t,"modelValue"),P=Un(()=>t.validationValue===void 0?f.value:t.validationValue),d=Cq(),l=ti([]),n=Ai(!0),c=Un(()=>!!(fm(f.value===""?null:f.value).length||fm(P.value===""?null:P.value).length)),b=Un(()=>!!(t.disabled??(d==null?void 0:d.isDisabled.value))),i=Un(()=>!!(t.readonly??(d==null?void 0:d.isReadonly.value))),O=Un(()=>{var S;return(S=t.errorMessages)!=null&&S.length?fm(t.errorMessages).concat(l.value).slice(0,Math.max(0,+t.maxErrors)):l.value}),w=Un(()=>{let S=(t.validateOn??(d==null?void 0:d.validateOn.value))||"input";S==="lazy"&&(S="input lazy");const A=new Set((S==null?void 0:S.split(" "))??[]);return{blur:A.has("blur")||A.has("input"),input:A.has("input"),submit:A.has("submit"),lazy:A.has("lazy")}}),y=Un(()=>{var S;return t.error||(S=t.errorMessages)!=null&&S.length?!1:t.rules.length?n.value?l.value.length||w.value.lazy?null:!0:!l.value.length:!0}),p=Ai(!1),a=Un(()=>({[`${e}--error`]:y.value===!1,[`${e}--dirty`]:c.value,[`${e}--disabled`]:b.value,[`${e}--readonly`]:i.value})),u=ph("validation"),h=Un(()=>t.name??wa(o));zle(()=>{d==null||d.register({id:h.value,vm:u,validate:_,reset:m,resetValidation:v})}),dm(()=>{d==null||d.unregister(h.value)}),sg(async()=>{w.value.lazy||await _(!0),d==null||d.update(h.value,y.value,O.value)}),x1(()=>w.value.input,()=>{Ni(P,()=>{if(P.value!=null)_();else if(t.focused){const S=Ni(()=>t.focused,A=>{A||_(),S()})}})}),x1(()=>w.value.blur,()=>{Ni(()=>t.focused,S=>{S||_()})}),Ni([y,O],()=>{d==null||d.update(h.value,y.value,O.value)});async function m(){f.value=null,await lc(),await v()}async function v(){n.value=!0,w.value.lazy?l.value=[]:await _(!0)}async function _(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=[];p.value=!0;for(const x of t.rules){if(A.length>=+(t.maxErrors??1))break;const M=await(typeof x=="function"?x:()=>x)(P.value);if(M!==!0){if(M!==!1&&typeof M!="string"){console.warn(`${M} is not a valid value. Rule functions must return boolean true or a string.`);continue}A.push(M||"")}}return l.value=A,p.value=!1,n.value=S,l.value}return{errorMessages:O,isDirty:c,isDisabled:b,isReadonly:i,isPristine:n,isValid:y,isValidating:p,reset:m,resetValidation:v,validate:_,validationClasses:a}}const BM=ei({id:String,appendIcon:ul,centerAffix:{type:Boolean,default:!0},prependIcon:ul,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":og(),"onClick:append":og(),...ys(),...S1(),...xPe(O_(),["maxWidth","minWidth","width"]),...vf(),...gRe()},"VInput"),p_=Ji()({name:"VInput",props:{...BM()},emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f,emit:P}=e;const{densityClasses:d}=kx(t),{dimensionStyles:l}=S_(t),{themeClasses:n}=ad(t),{rtlClasses:c}=qg(),{InputIcon:b}=T2e(t),i=O1(),O=Un(()=>t.id||`input-${i}`),w=Un(()=>`${O.value}-messages`),{errorMessages:y,isDirty:p,isDisabled:a,isReadonly:u,isPristine:h,isValid:m,isValidating:v,reset:_,resetValidation:S,validate:A,validationClasses:x}=vRe(t,"v-input",O),R=Un(()=>({id:O,messagesId:w,isDirty:p,isDisabled:a,isReadonly:u,isPristine:h,isValid:m,isValidating:v,reset:_,resetValidation:S,validate:A})),M=Un(()=>{var T;return(T=t.errorMessages)!=null&&T.length||!h.value&&y.value.length?y.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages});return ka(()=>{var D,k,I,z;const T=!!(f.prepend||t.prependIcon),E=!!(f.append||t.appendIcon),C=M.value.length>0,L=!t.hideDetails||t.hideDetails==="auto"&&(C||!!f.details);return Ht("div",{class:["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix,"v-input--hide-spin-buttons":t.hideSpinButtons},d.value,n.value,c.value,x.value,t.class],style:[l.value,t.style]},[T&&Ht("div",{key:"prepend",class:"v-input__prepend"},[(D=f.prepend)==null?void 0:D.call(f,R.value),t.prependIcon&&Ht(b,{key:"prepend-icon",name:"prepend"},null)]),f.default&&Ht("div",{class:"v-input__control"},[(k=f.default)==null?void 0:k.call(f,R.value)]),E&&Ht("div",{key:"append",class:"v-input__append"},[t.appendIcon&&Ht(b,{key:"append-icon",name:"append"},null),(I=f.append)==null?void 0:I.call(f,R.value)]),L&&Ht("div",{class:"v-input__details"},[Ht(hRe,{id:w.value,active:C,messages:M.value},{message:f.message}),(z=f.details)==null?void 0:z.call(f,R.value)])])}),{reset:_,resetValidation:S,validate:A,isValid:m,errorMessages:y}}});const Aq=["sm","md","lg","xl","xxl"],Fse=Symbol.for("vuetify:display"),cge={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},yRe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cge;return jg(cge,t)};function uge(t){return ou&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function fge(t){return ou&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function dge(t){const e=ou&&!t?window.navigator.userAgent:"ssr";function o(p){return!!e.match(p)}const f=o(/android/i),P=o(/iphone|ipad|ipod/i),d=o(/cordova/i),l=o(/electron/i),n=o(/chrome/i),c=o(/edge/i),b=o(/firefox/i),i=o(/opera/i),O=o(/win/i),w=o(/mac/i),y=o(/linux/i);return{android:f,ios:P,cordova:d,electron:l,chrome:n,edge:c,firefox:b,opera:i,win:O,mac:w,linux:y,touch:vPe,ssr:e==="ssr"}}function bRe(t,e){const{thresholds:o,mobileBreakpoint:f}=yRe(t),P=Ai(fge(e)),d=Ai(dge(e)),l=lm({}),n=Ai(uge(e));function c(){P.value=fge(),n.value=uge()}function b(){c(),d.value=dge()}return kp(()=>{const i=n.value=o.xxl,u=i?"xs":O?"sm":w?"md":y?"lg":p?"xl":"xxl",h=typeof f=="number"?f:o[f],m=n.value0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w_();const o=yl(Fse);if(!o)throw new Error("Could not find Vuetify display injection");const f=Un(()=>{if(t.mobile!=null)return t.mobile;if(!t.mobileBreakpoint)return o.mobile.value;const d=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:o.thresholds.value[t.mobileBreakpoint];return o.width.valuee?{[`${e}--mobile`]:f.value}:{});return{...o,displayClasses:P,mobile:f}}const A2e=Symbol.for("vuetify:goto");function M2e(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5}}}function xRe(t){return nue(t)??(document.scrollingElement||document.body)}function nue(t){return typeof t=="string"?document.querySelector(t):$ce(t)}function Uie(t,e,o){if(typeof t=="number")return e&&o?-t:t;let f=nue(t),P=0;for(;f;)P+=e?f.offsetLeft:f.offsetTop,f=f.offsetParent;return P}function _Re(t,e){return{rtl:e.isRtl,options:jg(M2e(),t)}}async function hge(t,e,o,f){const P=o?"scrollLeft":"scrollTop",d=jg((f==null?void 0:f.options)??M2e(),e),l=f==null?void 0:f.rtl.value,n=(typeof t=="number"?t:nue(t))??0,c=d.container==="parent"&&n instanceof HTMLElement?n.parentElement:xRe(d.container),b=typeof d.easing=="function"?d.easing:d.patterns[d.easing];if(!b)throw new TypeError(`Easing function "${d.easing}" not found.`);let i;if(typeof n=="number")i=Uie(n,o,l);else if(i=Uie(n,o,l)-Uie(c,o,l),d.layout){const p=window.getComputedStyle(n).getPropertyValue("--v-layout-top");p&&(i-=parseInt(p,10))}i+=d.offset,i=ORe(c,i,!!l,!!o);const O=c[P]??0;if(i===O)return Promise.resolve(i);const w=performance.now();return new Promise(y=>requestAnimationFrame(function p(a){const h=(a-w)/d.duration,m=Math.floor(O+(i-O)*b(rg(h,0,1)));if(c[P]=m,h>=1&&Math.abs(m-c[P])<10)return y(i);if(h>2)return y(c[P]);requestAnimationFrame(p)}))}function wRe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=yl(A2e),{isRtl:o}=qg();if(!e)throw new Error("[Vuetify] Could not find injected goto instance");const f={...e,rtl:Un(()=>e.rtl.value||o.value)};async function P(d,l){return hge(d,jg(t,l),!1,f)}return P.horizontal=async(d,l)=>hge(d,jg(t,l),!0,f),P}function ORe(t,e,o,f){const{scrollWidth:P,scrollHeight:d}=t,[l,n]=t===document.scrollingElement?[window.innerWidth,window.innerHeight]:[t.offsetWidth,t.offsetHeight];let c,b;return f?o?(c=-(P-l),b=0):(c=0,b=P-l):(c=0,b=d+-n),Math.max(Math.min(e,b),c)}function SRe(t){let{selectedElement:e,containerElement:o,isRtl:f,isHorizontal:P}=t;const d=JI(P,o),l=E2e(P,f,o),n=JI(P,e),c=P2e(P,e),b=n*.4;return l>c?c-b:l+dtypeof t=="boolean"||["always","desktop","mobile"].includes(t)},...ys(),...CD({mobile:null}),...hu(),...mq({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),mge=Ji()({name:"VSlideGroup",props:R2e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isRtl:f}=qg(),{displayClasses:P,mobile:d}=xS(t),l=gq(t,t.symbol),n=Ai(!1),c=Ai(0),b=Ai(0),i=Ai(0),O=Un(()=>t.direction==="horizontal"),{resizeRef:w,contentRect:y}=dS(),{resizeRef:p,contentRect:a}=dS(),u=wRe(),h=Un(()=>({container:w.el,duration:200,easing:"easeOutQuart"})),m=Un(()=>l.selected.value.length?l.items.value.findIndex(j=>j.id===l.selected.value[0]):-1),v=Un(()=>l.selected.value.length?l.items.value.findIndex(j=>j.id===l.selected.value[l.selected.value.length-1]):-1);if(ou){let j=-1;Ni(()=>[l.selected.value,y.value,a.value,O.value],()=>{cancelAnimationFrame(j),j=requestAnimationFrame(()=>{if(y.value&&a.value){const U=O.value?"width":"height";b.value=y.value[U],i.value=a.value[U],n.value=b.value+1=0&&p.el){const U=p.el.children[v.value];S(U,t.centerActive)}})})}const _=Ai(!1);function S(j,U){let X=0;U?X=kRe({containerElement:w.el,isHorizontal:O.value,selectedElement:j}):X=SRe({containerElement:w.el,isHorizontal:O.value,isRtl:f.value,selectedElement:j}),A(X)}function A(j){if(!ou||!w.el)return;const U=JI(O.value,w.el),X=E2e(O.value,f.value,w.el);if(!(pge(O.value,w.el)<=U||Math.abs(j-X)<16)){if(O.value&&f.value&&w.el){const{scrollWidth:W,offsetWidth:K}=w.el;j=W-K-j}O.value?u.horizontal(j,h.value):u(j,h.value)}}function x(j){const{scrollTop:U,scrollLeft:X}=j.target;c.value=O.value?X:U}function R(j){if(_.value=!0,!(!n.value||!p.el)){for(const U of j.composedPath())for(const X of p.el.children)if(X===U){S(X);return}}}function M(j){_.value=!1}let T=!1;function E(j){var U;!T&&!_.value&&!(j.relatedTarget&&((U=p.el)!=null&&U.contains(j.relatedTarget)))&&D(),T=!1}function C(){T=!0}function L(j){if(!p.el)return;function U(X){j.preventDefault(),D(X)}O.value?j.key==="ArrowRight"?U(f.value?"prev":"next"):j.key==="ArrowLeft"&&U(f.value?"next":"prev"):j.key==="ArrowDown"?U("next"):j.key==="ArrowUp"&&U("prev"),j.key==="Home"?U("first"):j.key==="End"&&U("last")}function D(j){var X,te;if(!p.el)return;let U;if(!j)U=WI(p.el)[0];else if(j==="next"){if(U=(X=p.el.querySelector(":focus"))==null?void 0:X.nextElementSibling,!U)return D("first")}else if(j==="prev"){if(U=(te=p.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!U)return D("last")}else j==="first"?U=p.el.firstElementChild:j==="last"&&(U=p.el.lastElementChild);U&&U.focus({preventScroll:!0})}function k(j){const U=O.value&&f.value?-1:1,X=(j==="prev"?-U:U)*b.value;let te=c.value+X;if(O.value&&f.value&&w.el){const{scrollWidth:W,offsetWidth:K}=w.el;te+=W-K}A(te)}const I=Un(()=>({next:l.next,prev:l.prev,select:l.select,isSelected:l.isSelected})),z=Un(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!d.value;case!0:return n.value||Math.abs(c.value)>0;case"mobile":return d.value||n.value||Math.abs(c.value)>0;default:return!d.value&&(n.value||Math.abs(c.value)>0)}}),$=Un(()=>Math.abs(c.value)>1),Q=Un(()=>{if(!w.value)return!1;const j=pge(O.value,w.el),U=TRe(O.value,w.el);return j-U-Math.abs(c.value)>1});return ka(()=>Ht(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!O.value,"v-slide-group--has-affixes":z.value,"v-slide-group--is-overflowing":n.value},P.value,t.class],style:t.style,tabindex:_.value||l.selected.value.length?-1:0,onFocus:E},{default:()=>{var j,U,X;return[z.value&&Ht("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!$.value}],onMousedown:C,onClick:()=>$.value&&k("prev")},[((j=o.prev)==null?void 0:j.call(o,I.value))??Ht(ege,null,{default:()=>[Ht(Al,{icon:f.value?t.nextIcon:t.prevIcon},null)]})]),Ht("div",{key:"container",ref:w,class:"v-slide-group__container",onScroll:x},[Ht("div",{ref:p,class:"v-slide-group__content",onFocusin:R,onFocusout:M,onKeydown:L},[(U=o.default)==null?void 0:U.call(o,I.value)])]),z.value&&Ht("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Q.value}],onMousedown:C,onClick:()=>Q.value&&k("next")},[((X=o.next)==null?void 0:X.call(o,I.value))??Ht(ege,null,{default:()=>[Ht(Al,{icon:f.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:l.selected,scrollTo:k,scrollOffset:c,focus:D}}}),L2e=Symbol.for("vuetify:v-chip-group"),ARe=ei({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:bS},...R2e(),...ys(),...mq({selectedClass:"v-chip--selected"}),...hu(),...vf(),...Tx({variant:"tonal"})},"VChipGroup");Ji()({name:"VChipGroup",props:ARe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{themeClasses:f}=ad(t),{isSelected:P,select:d,next:l,prev:n,selected:c}=gq(t,L2e);return ib({VChip:{color:Oi(t,"color"),disabled:Oi(t,"disabled"),filter:Oi(t,"filter"),variant:Oi(t,"variant")}}),ka(()=>{const b=mge.filterProps(t);return Ht(mge,Ii(b,{class:["v-chip-group",{"v-chip-group--column":t.column},f.value,t.class],style:t.style}),{default:()=>{var i;return[(i=o.default)==null?void 0:i.call(o,{isSelected:P,select:d,next:l,prev:n,selected:c.value})]}})}),{}}});const MRe=ei({activeClass:String,appendAvatar:String,appendIcon:ul,closable:Boolean,closeIcon:{type:ul,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:ul,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:og(),onClickOnce:og(),...k_(),...ys(),...S1(),...Qv(),...Jce(),...pm(),...Sq(),...AT(),...hu({tag:"span"}),...vf(),...Tx({variant:"tonal"})},"VChip"),AD=Ji()({name:"VChip",directives:{Ripple:MT},props:MRe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{t:d}=sb(),{borderClasses:l}=DO(t),{colorClasses:n,colorStyles:c,variantClasses:b}=CT(t),{densityClasses:i}=kx(t),{elevationClasses:O}=lb(t),{roundedClasses:w}=lg(t),{sizeClasses:y}=SD(t),{themeClasses:p}=ad(t),a=bl(t,"modelValue"),u=eue(t,L2e,!1),h=Oq(t,o),m=Un(()=>t.link!==!1&&h.isLink.value),v=Un(()=>!t.disabled&&t.link!==!1&&(!!u||t.link||h.isClickable.value)),_=Un(()=>({"aria-label":d(t.closeLabel),onClick(x){x.preventDefault(),x.stopPropagation(),a.value=!1,f("click:close",x)}}));function S(x){var R;f("click",x),v.value&&((R=h.navigate)==null||R.call(h,x),u==null||u.toggle())}function A(x){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),S(x))}return()=>{const x=h.isLink.value?"a":t.tag,R=!!(t.appendIcon||t.appendAvatar),M=!!(R||P.append),T=!!(P.close||t.closable),E=!!(P.filter||t.filter)&&u,C=!!(t.prependIcon||t.prependAvatar),L=!!(C||P.prepend),D=!u||u.isSelected.value;return a.value&&Tp(Ht(x,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":v.value,"v-chip--filter":E,"v-chip--pill":t.pill},p.value,l.value,D?n.value:void 0,i.value,O.value,w.value,y.value,b.value,u==null?void 0:u.selectedClass.value,t.class],style:[D?c.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:h.href.value,tabindex:v.value?0:void 0,onClick:S,onKeydown:v.value&&!m.value&&A},{default:()=>{var k;return[TT(v.value,"v-chip"),E&&Ht(t2e,{key:"filter"},{default:()=>[Tp(Ht("div",{class:"v-chip__filter"},[P.filter?Ht(du,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},P.filter):Ht(Al,{key:"filter-icon",icon:t.filterIcon},null)]),[[mS,u.isSelected.value]])]}),L&&Ht("div",{key:"prepend",class:"v-chip__prepend"},[P.prepend?Ht(du,{key:"prepend-defaults",disabled:!C,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},P.prepend):Ht(ma,null,[t.prependIcon&&Ht(Al,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&Ht(PO,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),Ht("div",{class:"v-chip__content","data-no-activator":""},[((k=P.default)==null?void 0:k.call(P,{isSelected:u==null?void 0:u.isSelected.value,selectedClass:u==null?void 0:u.selectedClass.value,select:u==null?void 0:u.select,toggle:u==null?void 0:u.toggle,value:u==null?void 0:u.value.value,disabled:t.disabled}))??t.text]),M&&Ht("div",{key:"append",class:"v-chip__append"},[P.append?Ht(du,{key:"append-defaults",disabled:!R,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},P.append):Ht(ma,null,[t.appendIcon&&Ht(Al,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&Ht(PO,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),T&&Ht("button",Ii({key:"close",class:"v-chip__close",type:"button"},_.value),[P.close?Ht(du,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},P.close):Ht(Al,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[y_("ripple"),v.value&&t.ripple,null]])}}});const Nse=Symbol.for("vuetify:list");function I2e(){const t=yl(Nse,{hasPrepend:Ai(!1),updateHasPrepend:()=>null}),e={hasPrepend:Ai(!1),updateHasPrepend:o=>{o&&(e.hasPrepend.value=o)}};return gf(Nse,e),t}function D2e(){return yl(Nse,null)}const rue=t=>{const e={activate:o=>{let{id:f,value:P,activated:d}=o;return f=As(f),t&&!P&&d.size===1&&d.has(f)||(P?d.add(f):d.delete(f)),d},in:(o,f,P)=>{let d=new Set;if(o!=null)for(const l of fm(o))d=e.activate({id:l,value:!0,activated:new Set(d),children:f,parents:P});return d},out:o=>Array.from(o)};return e},B2e=t=>{const e=rue(t);return{activate:f=>{let{activated:P,id:d,...l}=f;d=As(d);const n=P.has(d)?new Set([d]):new Set;return e.activate({...l,id:d,activated:n})},in:(f,P,d)=>{let l=new Set;if(f!=null){const n=fm(f);n.length&&(l=e.in(n.slice(0,1),P,d))}return l},out:(f,P,d)=>e.out(f,P,d)}},ERe=t=>{const e=rue(t);return{activate:f=>{let{id:P,activated:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.activate({id:P,activated:d,children:l,...n})},in:e.in,out:e.out}},PRe=t=>{const e=B2e(t);return{activate:f=>{let{id:P,activated:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.activate({id:P,activated:d,children:l,...n})},in:e.in,out:e.out}},RRe={open:t=>{let{id:e,value:o,opened:f,parents:P}=t;if(o){const d=new Set;d.add(e);let l=P.get(e);for(;l!=null;)d.add(l),l=P.get(l);return d}else return f.delete(e),f},select:()=>null},z2e={open:t=>{let{id:e,value:o,opened:f,parents:P}=t;if(o){let d=P.get(e);for(f.add(e);d!=null&&d!==e;)f.add(d),d=P.get(d);return f}else f.delete(e);return f},select:()=>null},LRe={open:z2e.open,select:t=>{let{id:e,value:o,opened:f,parents:P}=t;if(!o)return f;const d=[];let l=P.get(e);for(;l!=null;)d.push(l),l=P.get(l);return new Set(d)}},oue=t=>{const e={select:o=>{let{id:f,value:P,selected:d}=o;if(f=As(f),t&&!P){const l=Array.from(d.entries()).reduce((n,c)=>{let[b,i]=c;return i==="on"&&n.push(b),n},[]);if(l.length===1&&l[0]===f)return d}return d.set(f,P?"on":"off"),d},in:(o,f,P)=>{let d=new Map;for(const l of o||[])d=e.select({id:l,value:!0,selected:new Map(d),children:f,parents:P});return d},out:o=>{const f=[];for(const[P,d]of o.entries())d==="on"&&f.push(P);return f}};return e},F2e=t=>{const e=oue(t);return{select:f=>{let{selected:P,id:d,...l}=f;d=As(d);const n=P.has(d)?new Map([[d,P.get(d)]]):new Map;return e.select({...l,id:d,selected:n})},in:(f,P,d)=>{let l=new Map;return f!=null&&f.length&&(l=e.in(f.slice(0,1),P,d)),l},out:(f,P,d)=>e.out(f,P,d)}},IRe=t=>{const e=oue(t);return{select:f=>{let{id:P,selected:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.select({id:P,selected:d,children:l,...n})},in:e.in,out:e.out}},DRe=t=>{const e=F2e(t);return{select:f=>{let{id:P,selected:d,children:l,...n}=f;return P=As(P),l.has(P)?d:e.select({id:P,selected:d,children:l,...n})},in:e.in,out:e.out}},BRe=t=>{const e={select:o=>{let{id:f,value:P,selected:d,children:l,parents:n}=o;f=As(f);const c=new Map(d),b=[f];for(;b.length;){const O=b.shift();d.set(O,P?"on":"off"),l.has(O)&&b.push(...l.get(O))}let i=n.get(f);for(;i;){const O=l.get(i),w=O.every(p=>d.get(p)==="on"),y=O.every(p=>!d.has(p)||d.get(p)==="off");d.set(i,w?"on":y?"off":"indeterminate"),i=n.get(i)}return t&&!P&&Array.from(d.entries()).reduce((w,y)=>{let[p,a]=y;return a==="on"&&w.push(p),w},[]).length===0?c:d},in:(o,f,P)=>{let d=new Map;for(const l of o||[])d=e.select({id:l,value:!0,selected:new Map(d),children:f,parents:P});return d},out:(o,f)=>{const P=[];for(const[d,l]of o.entries())l==="on"&&!f.has(d)&&P.push(d);return P}};return e},eD=Symbol.for("vuetify:nested"),N2e={id:Ai(),root:{register:()=>null,unregister:()=>null,parents:ti(new Map),children:ti(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ti(!1),selectable:ti(!1),opened:ti(new Set),activated:ti(new Set),selected:ti(new Map),selectedValues:ti([])}},zRe=ei({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),FRe=t=>{let e=!1;const o=ti(new Map),f=ti(new Map),P=bl(t,"opened",t.opened,y=>new Set(y),y=>[...y.values()]),d=Un(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return ERe(t.mandatory);case"single-leaf":return PRe(t.mandatory);case"independent":return rue(t.mandatory);case"single-independent":default:return B2e(t.mandatory)}}),l=Un(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return DRe(t.mandatory);case"leaf":return IRe(t.mandatory);case"independent":return oue(t.mandatory);case"single-independent":return F2e(t.mandatory);case"classic":default:return BRe(t.mandatory)}}),n=Un(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return LRe;case"single":return RRe;case"multiple":default:return z2e}}),c=bl(t,"activated",t.activated,y=>d.value.in(y,o.value,f.value),y=>d.value.out(y,o.value,f.value)),b=bl(t,"selected",t.selected,y=>l.value.in(y,o.value,f.value),y=>l.value.out(y,o.value,f.value));dm(()=>{e=!0});function i(y){const p=[];let a=y;for(;a!=null;)p.unshift(a),a=f.value.get(a);return p}const O=ph("nested"),w={id:Ai(),root:{opened:P,activatable:Oi(t,"activatable"),selectable:Oi(t,"selectable"),activated:c,selected:b,selectedValues:Un(()=>{const y=[];for(const[p,a]of b.value.entries())a==="on"&&y.push(p);return y}),register:(y,p,a)=>{p&&y!==p&&f.value.set(y,p),a&&o.value.set(y,[]),p!=null&&o.value.set(p,[...o.value.get(p)||[],y])},unregister:y=>{if(e)return;o.value.delete(y);const p=f.value.get(y);if(p){const a=o.value.get(p)??[];o.value.set(p,a.filter(u=>u!==y))}f.value.delete(y)},open:(y,p,a)=>{O.emit("click:open",{id:y,value:p,path:i(y),event:a});const u=n.value.open({id:y,value:p,opened:new Set(P.value),children:o.value,parents:f.value,event:a});u&&(P.value=u)},openOnSelect:(y,p,a)=>{const u=n.value.select({id:y,value:p,selected:new Map(b.value),opened:new Set(P.value),children:o.value,parents:f.value,event:a});u&&(P.value=u)},select:(y,p,a)=>{O.emit("click:select",{id:y,value:p,path:i(y),event:a});const u=l.value.select({id:y,value:p,selected:new Map(b.value),children:o.value,parents:f.value,event:a});u&&(b.value=u),w.root.openOnSelect(y,p,a)},activate:(y,p,a)=>{if(!t.activatable)return w.root.select(y,!0,a);O.emit("click:activate",{id:y,value:p,path:i(y),event:a});const u=d.value.activate({id:y,value:p,activated:new Set(c.value),children:o.value,parents:f.value,event:a});u&&(c.value=u)},children:o,parents:f}};return gf(eD,w),w.root},$2e=(t,e)=>{const o=yl(eD,N2e),f=Symbol(O1()),P=Un(()=>t.value!==void 0?t.value:f),d={...o,id:P,open:(l,n)=>o.root.open(P.value,l,n),openOnSelect:(l,n)=>o.root.openOnSelect(P.value,l,n),isOpen:Un(()=>o.root.opened.value.has(P.value)),parent:Un(()=>o.root.parents.value.get(P.value)),activate:(l,n)=>o.root.activate(P.value,l,n),isActivated:Un(()=>o.root.activated.value.has(As(P.value))),select:(l,n)=>o.root.select(P.value,l,n),isSelected:Un(()=>o.root.selected.value.get(As(P.value))==="on"),isIndeterminate:Un(()=>o.root.selected.value.get(P.value)==="indeterminate"),isLeaf:Un(()=>!o.root.children.value.get(P.value)),isGroupActivator:o.isGroupActivator};return!o.isGroupActivator&&o.root.register(P.value,o.id.value,e),dm(()=>{!o.isGroupActivator&&o.root.unregister(P.value)}),e&&gf(eD,d),d},NRe=()=>{const t=yl(eD,N2e);gf(eD,{...t,isGroupActivator:!0})},$Re=RM({name:"VListGroupActivator",setup(t,e){let{slots:o}=e;return NRe(),()=>{var f;return(f=o.default)==null?void 0:f.call(o)}}}),VRe=ei({activeColor:String,baseColor:String,color:String,collapseIcon:{type:ul,default:"$collapse"},expandIcon:{type:ul,default:"$expand"},prependIcon:ul,appendIcon:ul,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ys(),...hu()},"VListGroup"),gge=Ji()({name:"VListGroup",props:VRe(),setup(t,e){let{slots:o}=e;const{isOpen:f,open:P,id:d}=$2e(Oi(t,"value"),!0),l=Un(()=>`v-list-group--id-${String(d.value)}`),n=D2e(),{isBooted:c}=pq();function b(y){y.stopPropagation(),P(!f.value,y)}const i=Un(()=>({onClick:b,class:"v-list-group__header",id:l.value})),O=Un(()=>f.value?t.collapseIcon:t.expandIcon),w=Un(()=>({VListItem:{active:f.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&O.value,appendIcon:t.appendIcon||!t.subgroup&&O.value,title:t.title,value:t.value}}));return ka(()=>Ht(t.tag,{class:["v-list-group",{"v-list-group--prepend":n==null?void 0:n.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":f.value},t.class],style:t.style},{default:()=>[o.activator&&Ht(du,{defaults:w.value},{default:()=>[Ht($Re,null,{default:()=>[o.activator({props:i.value,isOpen:f.value})]})]}),Ht(G4,{transition:{component:Xce},disabled:!c.value},{default:()=>{var y;return[Tp(Ht("div",{class:"v-list-group__items",role:"group","aria-labelledby":l.value},[(y=o.default)==null?void 0:y.call(o)]),[[mS,f.value]])]}})]})),{isOpen:f}}});const URe=ei({opacity:[Number,String],...ys(),...hu()},"VListItemSubtitle"),jRe=Ji()({name:"VListItemSubtitle",props:URe(),setup(t,e){let{slots:o}=e;return ka(()=>Ht(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},o)),{}}}),qy=hq("v-list-item-title"),QRe=ei({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:ul,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:ul,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:og(),onClickOnce:og(),...k_(),...ys(),...S1(),...O_(),...Qv(),...pm(),...Sq(),...hu(),...vf(),...Tx({variant:"text"})},"VListItem"),zf=Ji()({name:"VListItem",directives:{Ripple:MT},props:QRe(),emits:{click:t=>!0},setup(t,e){let{attrs:o,slots:f,emit:P}=e;const d=Oq(t,o),l=Un(()=>t.value===void 0?d.href.value:t.value),{activate:n,isActivated:c,select:b,isSelected:i,isIndeterminate:O,isGroupActivator:w,root:y,parent:p,openOnSelect:a}=$2e(l,!1),u=D2e(),h=Un(()=>{var j;return t.active!==!1&&(t.active||((j=d.isActive)==null?void 0:j.value)||(y.activatable.value?c.value:i.value))}),m=Un(()=>t.link!==!1&&d.isLink.value),v=Un(()=>!t.disabled&&t.link!==!1&&(t.link||d.isClickable.value||!!u&&(y.selectable.value||y.activatable.value||t.value!=null))),_=Un(()=>t.rounded||t.nav),S=Un(()=>t.color??t.activeColor),A=Un(()=>({color:h.value?S.value??t.baseColor:t.baseColor,variant:t.variant}));Ni(()=>{var j;return(j=d.isActive)==null?void 0:j.value},j=>{j&&p.value!=null&&y.open(p.value,!0),j&&a(j)},{immediate:!0});const{themeClasses:x}=ad(t),{borderClasses:R}=DO(t),{colorClasses:M,colorStyles:T,variantClasses:E}=CT(A),{densityClasses:C}=kx(t),{dimensionStyles:L}=S_(t),{elevationClasses:D}=lb(t),{roundedClasses:k}=lg(_),I=Un(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),z=Un(()=>({isActive:h.value,select:b,isSelected:i.value,isIndeterminate:O.value}));function $(j){var U;P("click",j),v.value&&((U=d.navigate)==null||U.call(d,j),!w&&(y.activatable.value?n(!c.value,j):(y.selectable.value||t.value!=null)&&b(!i.value,j)))}function Q(j){(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),$(j))}return ka(()=>{const j=m.value?"a":t.tag,U=f.title||t.title!=null,X=f.subtitle||t.subtitle!=null,te=!!(t.appendAvatar||t.appendIcon),W=!!(te||f.append),K=!!(t.prependAvatar||t.prependIcon),oe=!!(K||f.prepend);return u==null||u.updateHasPrepend(oe),t.activeColor&&NPe("active-color",["color","base-color"]),Tp(Ht(j,{class:["v-list-item",{"v-list-item--active":h.value,"v-list-item--disabled":t.disabled,"v-list-item--link":v.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!oe&&(u==null?void 0:u.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&h.value},x.value,R.value,M.value,C.value,D.value,I.value,k.value,E.value,t.class],style:[T.value,L.value,t.style],href:d.href.value,tabindex:v.value?u?-2:0:void 0,onClick:$,onKeydown:v.value&&!m.value&&Q},{default:()=>{var q;return[TT(v.value||h.value,"v-list-item"),oe&&Ht("div",{key:"prepend",class:"v-list-item__prepend"},[f.prepend?Ht(du,{key:"prepend-defaults",disabled:!K,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var Y;return[(Y=f.prepend)==null?void 0:Y.call(f,z.value)]}}):Ht(ma,null,[t.prependAvatar&&Ht(PO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&Ht(Al,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),Ht("div",{class:"v-list-item__spacer"},null)]),Ht("div",{class:"v-list-item__content","data-no-activator":""},[U&&Ht(qy,{key:"title"},{default:()=>{var Y;return[((Y=f.title)==null?void 0:Y.call(f,{title:t.title}))??t.title]}}),X&&Ht(jRe,{key:"subtitle"},{default:()=>{var Y;return[((Y=f.subtitle)==null?void 0:Y.call(f,{subtitle:t.subtitle}))??t.subtitle]}}),(q=f.default)==null?void 0:q.call(f,z.value)]),W&&Ht("div",{key:"append",class:"v-list-item__append"},[f.append?Ht(du,{key:"append-defaults",disabled:!te,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var Y;return[(Y=f.append)==null?void 0:Y.call(f,z.value)]}}):Ht(ma,null,[t.appendIcon&&Ht(Al,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&Ht(PO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),Ht("div",{class:"v-list-item__spacer"},null)])]}}),[[y_("ripple"),v.value&&t.ripple]])}),{activate:n,isActivated:c,isGroupActivator:w,isSelected:i,list:u,select:b}}}),HRe=ei({color:String,inset:Boolean,sticky:Boolean,title:String,...ys(),...hu()},"VListSubheader"),ZRe=Ji()({name:"VListSubheader",props:HRe(),setup(t,e){let{slots:o}=e;const{textColorClasses:f,textColorStyles:P}=Uv(Oi(t,"color"));return ka(()=>{const d=!!(o.default||t.title);return Ht(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},f.value,t.class],style:[{textColorStyles:P},t.style]},{default:()=>{var l;return[d&&Ht("div",{class:"v-list-subheader__text"},[((l=o.default)==null?void 0:l.call(o))??t.title])]}})}),{}}});const qRe=ei({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...ys(),...vf()},"VDivider"),bM=Ji()({name:"VDivider",props:qRe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:P}=ad(t),{textColorClasses:d,textColorStyles:l}=Uv(Oi(t,"color")),n=Un(()=>{const c={};return t.length&&(c[t.vertical?"height":"width"]=Ma(t.length)),t.thickness&&(c[t.vertical?"borderRightWidth":"borderTopWidth"]=Ma(t.thickness)),c});return ka(()=>{const c=Ht("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},P.value,d.value,t.class],style:[n.value,l.value,{"--v-border-opacity":t.opacity},t.style],"aria-orientation":!o.role||o.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${o.role||"separator"}`},null);return f.default?Ht("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[c,Ht("div",{class:"v-divider__content"},[f.default()]),c]):c}),{}}}),WRe=ei({items:Array,returnObject:Boolean},"VListChildren"),V2e=Ji()({name:"VListChildren",props:WRe(),setup(t,e){let{slots:o}=e;return I2e(),()=>{var f,P;return((f=o.default)==null?void 0:f.call(o))??((P=t.items)==null?void 0:P.map(d=>{var w,y;let{children:l,props:n,type:c,raw:b}=d;if(c==="divider")return((w=o.divider)==null?void 0:w.call(o,{props:n}))??Ht(bM,n,null);if(c==="subheader")return((y=o.subheader)==null?void 0:y.call(o,{props:n}))??Ht(ZRe,n,null);const i={subtitle:o.subtitle?p=>{var a;return(a=o.subtitle)==null?void 0:a.call(o,{...p,item:b})}:void 0,prepend:o.prepend?p=>{var a;return(a=o.prepend)==null?void 0:a.call(o,{...p,item:b})}:void 0,append:o.append?p=>{var a;return(a=o.append)==null?void 0:a.call(o,{...p,item:b})}:void 0,title:o.title?p=>{var a;return(a=o.title)==null?void 0:a.call(o,{...p,item:b})}:void 0},O=gge.filterProps(n);return l?Ht(gge,Ii({value:n==null?void 0:n.value},O),{activator:p=>{let{props:a}=p;const u={...n,...a,value:t.returnObject?b:n.value};return o.header?o.header({props:u}):Ht(zf,u,i)},default:()=>Ht(V2e,{items:l,returnObject:t.returnObject},o)}):o.item?o.item({props:n}):Ht(zf,Ii(n,{value:t.returnObject?b:n.value}),i)}))}}}),U2e=ei({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:bS}},"list-items");function Z4(t,e){const o=y1(e,t.itemTitle,e),f=y1(e,t.itemValue,o),P=y1(e,t.itemChildren),d=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?__(e,["children"]):e:void 0:y1(e,t.itemProps),l={title:o,value:f,...d};return{title:String(l.title??""),value:l.value,props:l,children:Array.isArray(P)?j2e(t,P):void 0,raw:e}}function j2e(t,e){const o=[];for(const f of e)o.push(Z4(t,f));return o}function iue(t){const e=Un(()=>j2e(t,t.items)),o=Un(()=>e.value.some(d=>d.value===null));function f(d){return o.value||(d=d.filter(l=>l!==null)),d.map(l=>t.returnObject&&typeof l=="string"?Z4(t,l):e.value.find(n=>t.valueComparator(l,n.value))||Z4(t,l))}function P(d){return t.returnObject?d.map(l=>{let{raw:n}=l;return n}):d.map(l=>{let{value:n}=l;return n})}return{items:e,transformIn:f,transformOut:P}}function YRe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function XRe(t,e){const o=y1(e,t.itemType,"item"),f=YRe(e)?e:y1(e,t.itemTitle),P=y1(e,t.itemValue,void 0),d=y1(e,t.itemChildren),l=t.itemProps===!0?__(e,["children"]):y1(e,t.itemProps),n={title:f,value:P,...l};return{type:o,title:n.title,value:n.value,props:n,children:o==="item"&&d?Q2e(t,d):void 0,raw:e}}function Q2e(t,e){const o=[];for(const f of e)o.push(XRe(t,f));return o}function GRe(t){return{items:Un(()=>Q2e(t,t.items))}}const KRe=ei({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":og(),"onClick:select":og(),"onUpdate:opened":og(),...zRe({selectStrategy:"single-leaf",openStrategy:"list"}),...k_(),...ys(),...S1(),...O_(),...Qv(),itemType:{type:String,default:"type"},...U2e(),...pm(),...hu(),...vf(),...Tx({variant:"text"})},"VList"),m_=Ji()({name:"VList",props:KRe(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:o}=e;const{items:f}=GRe(t),{themeClasses:P}=ad(t),{backgroundColorClasses:d,backgroundColorStyles:l}=ig(Oi(t,"bgColor")),{borderClasses:n}=DO(t),{densityClasses:c}=kx(t),{dimensionStyles:b}=S_(t),{elevationClasses:i}=lb(t),{roundedClasses:O}=lg(t),{children:w,open:y,parents:p,select:a}=FRe(t),u=Un(()=>t.lines?`v-list--${t.lines}-line`:void 0),h=Oi(t,"activeColor"),m=Oi(t,"baseColor"),v=Oi(t,"color");I2e(),ib({VListGroup:{activeColor:h,baseColor:m,color:v,expandIcon:Oi(t,"expandIcon"),collapseIcon:Oi(t,"collapseIcon")},VListItem:{activeClass:Oi(t,"activeClass"),activeColor:h,baseColor:m,color:v,density:Oi(t,"density"),disabled:Oi(t,"disabled"),lines:Oi(t,"lines"),nav:Oi(t,"nav"),slim:Oi(t,"slim"),variant:Oi(t,"variant")}});const _=Ai(!1),S=ti();function A(C){_.value=!0}function x(C){_.value=!1}function R(C){var L;!_.value&&!(C.relatedTarget&&((L=S.value)!=null&&L.contains(C.relatedTarget)))&&E()}function M(C){const L=C.target;if(!(!S.value||["INPUT","TEXTAREA"].includes(L.tagName))){if(C.key==="ArrowDown")E("next");else if(C.key==="ArrowUp")E("prev");else if(C.key==="Home")E("first");else if(C.key==="End")E("last");else return;C.preventDefault()}}function T(C){_.value=!0}function E(C){if(S.value)return cZ(S.value,C)}return ka(()=>Ht(t.tag,{ref:S,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},P.value,d.value,n.value,c.value,i.value,u.value,O.value,t.class],style:[l.value,b.value,t.style],tabindex:t.disabled||_.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:A,onFocusout:x,onFocus:R,onKeydown:M,onMousedown:T},{default:()=>[Ht(V2e,{items:f.value,returnObject:t.returnObject},o)]})),{open:y,select:a,focus:E,children:w,parents:p}}});function jie(t,e){return{x:t.x+e.x,y:t.y+e.y}}function JRe(t,e){return{x:t.x-e.x,y:t.y-e.y}}function vge(t,e){if(t.side==="top"||t.side==="bottom"){const{side:o,align:f}=t,P=f==="left"?0:f==="center"?e.width/2:f==="right"?e.width:f,d=o==="top"?0:o==="bottom"?e.height:o;return jie({x:P,y:d},e)}else if(t.side==="left"||t.side==="right"){const{side:o,align:f}=t,P=o==="left"?0:o==="right"?e.width:o,d=f==="top"?0:f==="center"?e.height/2:f==="bottom"?e.height:f;return jie({x:P,y:d},e)}return jie({x:e.width/2,y:e.height/2},e)}const H2e={static:nLe,connected:oLe},eLe=ei({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in H2e},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function tLe(t,e){const o=ti({}),f=ti();ou&&x1(()=>!!(e.isActive.value&&t.locationStrategy),d=>{var l,n;Ni(()=>t.locationStrategy,d),ag(()=>{window.removeEventListener("resize",P),f.value=void 0}),window.addEventListener("resize",P,{passive:!0}),typeof t.locationStrategy=="function"?f.value=(l=t.locationStrategy(e,t,o))==null?void 0:l.updateLocation:f.value=(n=H2e[t.locationStrategy](e,t,o))==null?void 0:n.updateLocation});function P(d){var l;(l=f.value)==null||l.call(f,d)}return{contentStyles:o,updateLocation:f}}function nLe(){}function rLe(t,e){e?t.style.removeProperty("left"):t.style.removeProperty("right");const o=jce(t);return e?o.x+=parseFloat(t.style.right||0):o.x-=parseFloat(t.style.left||0),o.y-=parseFloat(t.style.top||0),o}function oLe(t,e,o){(Array.isArray(t.target.value)||l9e(t.target.value))&&Object.assign(o.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:P,preferredOrigin:d}=Uce(()=>{const p=Rse(e.location,t.isRtl.value),a=e.origin==="overlap"?p:e.origin==="auto"?Fie(p):Rse(e.origin,t.isRtl.value);return p.side===a.side&&p.align===Nie(a).align?{preferredAnchor:Lme(p),preferredOrigin:Lme(a)}:{preferredAnchor:p,preferredOrigin:a}}),[l,n,c,b]=["minWidth","minHeight","maxWidth","maxHeight"].map(p=>Un(()=>{const a=parseFloat(e[p]);return isNaN(a)?1/0:a})),i=Un(()=>{if(Array.isArray(e.offset))return e.offset;if(typeof e.offset=="string"){const p=e.offset.split(" ").map(parseFloat);return p.length<2&&p.push(0),p}return typeof e.offset=="number"?[e.offset,0]:[0,0]});let O=!1;const w=new ResizeObserver(()=>{O&&y()});Ni([t.target,t.contentEl],(p,a)=>{let[u,h]=p,[m,v]=a;m&&!Array.isArray(m)&&w.unobserve(m),u&&!Array.isArray(u)&&w.observe(u),v&&w.unobserve(v),h&&w.observe(h)},{immediate:!0}),ag(()=>{w.disconnect()});function y(){if(O=!1,requestAnimationFrame(()=>O=!0),!t.target.value||!t.contentEl.value)return;const p=zxe(t.target.value),a=rLe(t.contentEl.value,t.isRtl.value),u=dZ(t.contentEl.value),h=12;u.length||(u.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(a.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),a.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const m=u.reduce((E,C)=>{const L=C.getBoundingClientRect(),D=new dT({x:C===document.documentElement?0:L.x,y:C===document.documentElement?0:L.y,width:C.clientWidth,height:C.clientHeight});return E?new dT({x:Math.max(E.left,D.left),y:Math.max(E.top,D.top),width:Math.min(E.right,D.right)-Math.max(E.left,D.left),height:Math.min(E.bottom,D.bottom)-Math.max(E.top,D.top)}):D},void 0);m.x+=h,m.y+=h,m.width-=h*2,m.height-=h*2;let v={anchor:P.value,origin:d.value};function _(E){const C=new dT(a),L=vge(E.anchor,p),D=vge(E.origin,C);let{x:k,y:I}=JRe(L,D);switch(E.anchor.side){case"top":I-=i.value[0];break;case"bottom":I+=i.value[0];break;case"left":k-=i.value[0];break;case"right":k+=i.value[0];break}switch(E.anchor.align){case"top":I-=i.value[1];break;case"bottom":I+=i.value[1];break;case"left":k-=i.value[1];break;case"right":k+=i.value[1];break}return C.x+=k,C.y+=I,C.width=Math.min(C.width,c.value),C.height=Math.min(C.height,b.value),{overflows:Dme(C,m),x:k,y:I}}let S=0,A=0;const x={x:0,y:0},R={x:!1,y:!1};let M=-1;for(;!(M++>10);){const{x:E,y:C,overflows:L}=_(v);S+=E,A+=C,a.x+=E,a.y+=C;{const D=Ime(v.anchor),k=L.x.before||L.x.after,I=L.y.before||L.y.after;let z=!1;if(["x","y"].forEach($=>{if($==="x"&&k&&!R.x||$==="y"&&I&&!R.y){const Q={anchor:{...v.anchor},origin:{...v.origin}},j=$==="x"?D==="y"?Nie:Fie:D==="y"?Fie:Nie;Q.anchor=j(Q.anchor),Q.origin=j(Q.origin);const{overflows:U}=_(Q);(U[$].before<=L[$].before&&U[$].after<=L[$].after||U[$].before+U[$].after<(L[$].before+L[$].after)/2)&&(v=Q,z=R[$]=!0)}}),z)continue}L.x.before&&(S+=L.x.before,a.x+=L.x.before),L.x.after&&(S-=L.x.after,a.x-=L.x.after),L.y.before&&(A+=L.y.before,a.y+=L.y.before),L.y.after&&(A-=L.y.after,a.y-=L.y.after);{const D=Dme(a,m);x.x=m.width-D.x.before-D.x.after,x.y=m.height-D.y.before-D.y.after,S+=D.x.before,a.x+=D.x.before,A+=D.y.before,a.y+=D.y.before}break}const T=Ime(v.anchor);return Object.assign(o.value,{"--v-overlay-anchor-origin":`${v.anchor.side} ${v.anchor.align}`,transformOrigin:`${v.origin.side} ${v.origin.align}`,top:Ma(Qie(A)),left:t.isRtl.value?void 0:Ma(Qie(S)),right:t.isRtl.value?Ma(Qie(-S)):void 0,minWidth:Ma(T==="y"?Math.min(l.value,p.width):l.value),maxWidth:Ma(yge(rg(x.x,l.value===1/0?0:l.value,c.value))),maxHeight:Ma(yge(rg(x.y,n.value===1/0?0:n.value,b.value)))}),{available:x,contentBox:a}}return Ni(()=>[P.value,d.value,e.offset,e.minWidth,e.minHeight,e.maxWidth,e.maxHeight],()=>y()),lc(()=>{const p=y();if(!p)return;const{available:a,contentBox:u}=p;u.height>a.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function Qie(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function yge(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let $se=!0;const vZ=[];function iLe(t){!$se||vZ.length?(vZ.push(t),Vse()):($se=!1,t(),Vse())}let bge=-1;function Vse(){cancelAnimationFrame(bge),bge=requestAnimationFrame(()=>{const t=vZ.shift();t&&t(),vZ.length?Vse():$se=!0})}const kH={none:null,close:lLe,block:cLe,reposition:uLe},aLe=ei({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in kH}},"VOverlay-scroll-strategies");function sLe(t,e){if(!ou)return;let o;kp(async()=>{o==null||o.stop(),e.isActive.value&&t.scrollStrategy&&(o=uD(),await new Promise(f=>setTimeout(f)),o.active&&o.run(()=>{var f;typeof t.scrollStrategy=="function"?t.scrollStrategy(e,t,o):(f=kH[t.scrollStrategy])==null||f.call(kH,e,t,o)}))}),ag(()=>{o==null||o.stop()})}function lLe(t){function e(o){t.isActive.value=!1}Z2e(t.targetEl.value??t.contentEl.value,e)}function cLe(t,e){var l;const o=(l=t.root.value)==null?void 0:l.offsetParent,f=[...new Set([...dZ(t.targetEl.value,e.contained?o:void 0),...dZ(t.contentEl.value,e.contained?o:void 0)])].filter(n=>!n.classList.contains("v-overlay-scroll-blocked")),P=window.innerWidth-document.documentElement.offsetWidth,d=(n=>Zce(n)&&n)(o||document.documentElement);d&&t.root.value.classList.add("v-overlay--scroll-blocked"),f.forEach((n,c)=>{n.style.setProperty("--v-body-scroll-x",Ma(-n.scrollLeft)),n.style.setProperty("--v-body-scroll-y",Ma(-n.scrollTop)),n!==document.documentElement&&n.style.setProperty("--v-scrollbar-offset",Ma(P)),n.classList.add("v-overlay-scroll-blocked")}),ag(()=>{f.forEach((n,c)=>{const b=parseFloat(n.style.getPropertyValue("--v-body-scroll-x")),i=parseFloat(n.style.getPropertyValue("--v-body-scroll-y")),O=n.style.scrollBehavior;n.style.scrollBehavior="auto",n.style.removeProperty("--v-body-scroll-x"),n.style.removeProperty("--v-body-scroll-y"),n.style.removeProperty("--v-scrollbar-offset"),n.classList.remove("v-overlay-scroll-blocked"),n.scrollLeft=-b,n.scrollTop=-i,n.style.scrollBehavior=O}),d&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function uLe(t,e,o){let f=!1,P=-1,d=-1;function l(n){iLe(()=>{var i,O;const c=performance.now();(O=(i=t.updateLocation).value)==null||O.call(i,n),f=(performance.now()-c)/(1e3/60)>2})}d=(typeof requestIdleCallback>"u"?n=>n():requestIdleCallback)(()=>{o.run(()=>{Z2e(t.targetEl.value??t.contentEl.value,n=>{f?(cancelAnimationFrame(P),P=requestAnimationFrame(()=>{P=requestAnimationFrame(()=>{l(n)})})):l(n)})})}),ag(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(d),cancelAnimationFrame(P)})}function Z2e(t,e){const o=[document,...dZ(t)];o.forEach(f=>{f.addEventListener("scroll",e,{passive:!0})}),ag(()=>{o.forEach(f=>{f.removeEventListener("scroll",e)})})}const Use=Symbol.for("vuetify:v-menu"),q2e=ei({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function W2e(t,e){let o=()=>{};function f(l){o==null||o();const n=Number(l?t.openDelay:t.closeDelay);return new Promise(c=>{o=CPe(n,()=>{e==null||e(l),c(l)})})}function P(){return f(!0)}function d(){return f(!1)}return{clearDelay:o,runOpenDelay:P,runCloseDelay:d}}const fLe=ei({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...q2e()},"VOverlay-activator");function dLe(t,e){let{isActive:o,isTop:f}=e;const P=ph("useActivator"),d=ti();let l=!1,n=!1,c=!0;const b=Un(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),i=Un(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!b.value),{runOpenDelay:O,runCloseDelay:w}=W2e(t,x=>{x===(t.openOnHover&&l||b.value&&n)&&!(t.openOnHover&&o.value&&!f.value)&&(o.value!==x&&(c=!0),o.value=x)}),y=ti(),p={onClick:x=>{x.stopPropagation(),d.value=x.currentTarget||x.target,o.value||(y.value=[x.clientX,x.clientY]),o.value=!o.value},onMouseenter:x=>{var R;(R=x.sourceCapabilities)!=null&&R.firesTouchEvents||(l=!0,d.value=x.currentTarget||x.target,O())},onMouseleave:x=>{l=!1,w()},onFocus:x=>{vM(x.target,":focus-visible")!==!1&&(n=!0,x.stopPropagation(),d.value=x.currentTarget||x.target,O())},onBlur:x=>{n=!1,x.stopPropagation(),w()}},a=Un(()=>{const x={};return i.value&&(x.onClick=p.onClick),t.openOnHover&&(x.onMouseenter=p.onMouseenter,x.onMouseleave=p.onMouseleave),b.value&&(x.onFocus=p.onFocus,x.onBlur=p.onBlur),x}),u=Un(()=>{const x={};if(t.openOnHover&&(x.onMouseenter=()=>{l=!0,O()},x.onMouseleave=()=>{l=!1,w()}),b.value&&(x.onFocusin=()=>{n=!0,O()},x.onFocusout=()=>{n=!1,w()}),t.closeOnContentClick){const R=yl(Use,null);x.onClick=()=>{o.value=!1,R==null||R.closeParents()}}return x}),h=Un(()=>{const x={};return t.openOnHover&&(x.onMouseenter=()=>{c&&(l=!0,c=!1,O())},x.onMouseleave=()=>{l=!1,w()}),x});Ni(f,x=>{x&&(t.openOnHover&&!l&&(!b.value||!n)||b.value&&!n&&(!t.openOnHover||!l))&&(o.value=!1)}),Ni(o,x=>{x||setTimeout(()=>{y.value=void 0})},{flush:"post"});const m=Pse();kp(()=>{m.value&&lc(()=>{d.value=m.el})});const v=Pse(),_=Un(()=>t.target==="cursor"&&y.value?y.value:v.value?v.el:Y2e(t.target,P)||d.value),S=Un(()=>Array.isArray(_.value)?void 0:_.value);let A;return Ni(()=>!!t.activator,x=>{x&&ou?(A=uD(),A.run(()=>{hLe(t,P,{activatorEl:d,activatorEvents:a})})):A&&A.stop()},{flush:"post",immediate:!0}),ag(()=>{A==null||A.stop()}),{activatorEl:d,activatorRef:m,target:_,targetEl:S,targetRef:v,activatorEvents:a,contentEvents:u,scrimEvents:h}}function hLe(t,e,o){let{activatorEl:f,activatorEvents:P}=o;Ni(()=>t.activator,(c,b)=>{if(b&&c!==b){const i=n(b);i&&l(i)}c&&lc(()=>d())},{immediate:!0}),Ni(()=>t.activatorProps,()=>{d()}),ag(()=>{l()});function d(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;c&&EPe(c,Ii(P.value,b))}function l(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;c&&PPe(c,Ii(P.value,b))}function n(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator;const b=Y2e(c,e);return f.value=(b==null?void 0:b.nodeType)===Node.ELEMENT_NODE?b:void 0,f.value}}function Y2e(t,e){var f,P;if(!t)return;let o;if(t==="parent"){let d=(P=(f=e==null?void 0:e.proxy)==null?void 0:f.$el)==null?void 0:P.parentNode;for(;d!=null&&d.hasAttribute("data-no-activator");)d=d.parentNode;o=d}else typeof t=="string"?o=document.querySelector(t):"$el"in t?o=t.$el:o=t;return o}function pLe(){if(!ou)return Ai(!1);const{ssr:t}=xS();if(t){const e=Ai(!1);return sg(()=>{e.value=!0}),e}else return Ai(!0)}const X2e=ei({eager:Boolean},"lazy");function G2e(t,e){const o=Ai(!1),f=Un(()=>o.value||t.eager||e.value);Ni(e,()=>o.value=!0);function P(){t.eager||(o.value=!1)}return{isBooted:o,hasContent:f,onAfterLeave:P}}function zM(){const e=ph("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const xge=Symbol.for("vuetify:stack"),$L=lm([]);function mLe(t,e,o){const f=ph("useStack"),P=!o,d=yl(xge,void 0),l=lm({activeChildren:new Set});gf(xge,l);const n=Ai(+e.value);x1(t,()=>{var O;const i=(O=$L.at(-1))==null?void 0:O[1];n.value=i?i+10:+e.value,P&&$L.push([f.uid,n.value]),d==null||d.activeChildren.add(f.uid),ag(()=>{if(P){const w=As($L).findIndex(y=>y[0]===f.uid);$L.splice(w,1)}d==null||d.activeChildren.delete(f.uid)})});const c=Ai(!0);P&&kp(()=>{var O;const i=((O=$L.at(-1))==null?void 0:O[0])===f.uid;setTimeout(()=>c.value=i)});const b=Un(()=>!l.activeChildren.size);return{globalTop:CM(c),localTop:b,stackStyles:Un(()=>({zIndex:n.value}))}}function gLe(t){return{teleportTarget:Un(()=>{const o=t();if(o===!0||!ou)return;const f=o===!1?document.body:typeof o=="string"?document.querySelector(o):o;if(f==null)return;let P=f.querySelector(":scope > .v-overlay-container");return P||(P=document.createElement("div"),P.className="v-overlay-container",f.appendChild(P)),P})}}function vLe(){return!0}function K2e(t,e,o){if(!t||J2e(t,o)===!1)return!1;const f=Qxe(e);if(typeof ShadowRoot<"u"&&f instanceof ShadowRoot&&f.host===t.target)return!1;const P=(typeof o.value=="object"&&o.value.include||(()=>[]))();return P.push(e),!P.some(d=>d==null?void 0:d.contains(t.target))}function J2e(t,e){return(typeof e.value=="object"&&e.value.closeConditional||vLe)(t)}function yLe(t,e,o){const f=typeof o.value=="function"?o.value:o.value.handler;e._clickOutside.lastMousedownWasOutside&&K2e(t,e,o)&&setTimeout(()=>{J2e(t,o)&&f&&f(t)},0)}function _ge(t,e){const o=Qxe(t);e(document),typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&e(o)}const bLe={mounted(t,e){const o=P=>yLe(P,t,e),f=P=>{t._clickOutside.lastMousedownWasOutside=K2e(P,t,e)};_ge(t,P=>{P.addEventListener("click",o,!0),P.addEventListener("mousedown",f,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:o,onMousedown:f}},unmounted(t,e){t._clickOutside&&(_ge(t,o=>{var d;if(!o||!((d=t._clickOutside)!=null&&d[e.instance.$.uid]))return;const{onClick:f,onMousedown:P}=t._clickOutside[e.instance.$.uid];o.removeEventListener("click",f,!0),o.removeEventListener("mousedown",P,!0)}),delete t._clickOutside[e.instance.$.uid])}};function xLe(t){const{modelValue:e,color:o,...f}=t;return Ht(h_,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&&Ht("div",Ii({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},f),null)]})}const MD=ei({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...fLe(),...ys(),...O_(),...X2e(),...eLe(),...aLe(),...vf(),...ST()},"VOverlay"),hS=Ji()({name:"VOverlay",directives:{ClickOutside:bLe},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...MD()},emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,e){let{slots:o,attrs:f,emit:P}=e;const d=bl(t,"modelValue"),l=Un({get:()=>d.value,set:K=>{K&&t.disabled||(d.value=K)}}),{themeClasses:n}=ad(t),{rtlClasses:c,isRtl:b}=qg(),{hasContent:i,onAfterLeave:O}=G2e(t,l),w=ig(Un(()=>typeof t.scrim=="string"?t.scrim:null)),{globalTop:y,localTop:p,stackStyles:a}=mLe(l,Oi(t,"zIndex"),t._disableGlobalStack),{activatorEl:u,activatorRef:h,target:m,targetEl:v,targetRef:_,activatorEvents:S,contentEvents:A,scrimEvents:x}=dLe(t,{isActive:l,isTop:p}),{teleportTarget:R}=gLe(()=>{var q;const K=t.attach||t.contained;if(K)return K;const oe=(q=u==null?void 0:u.value)==null?void 0:q.getRootNode();return oe instanceof ShadowRoot?oe:!1}),{dimensionStyles:M}=S_(t),T=pLe(),{scopeId:E}=zM();Ni(()=>t.disabled,K=>{K&&(l.value=!1)});const C=ti(),L=ti(),D=ti(),{contentStyles:k,updateLocation:I}=tLe(t,{isRtl:b,contentEl:D,target:m,isActive:l});sLe(t,{root:C,contentEl:D,targetEl:v,isActive:l,updateLocation:I});function z(K){P("click:outside",K),t.persistent?X():l.value=!1}function $(K){return l.value&&y.value&&(!t.scrim||K.target===L.value)}ou&&Ni(l,K=>{K?window.addEventListener("keydown",Q):window.removeEventListener("keydown",Q)},{immediate:!0}),dm(()=>{ou&&window.removeEventListener("keydown",Q)});function Q(K){var oe,q;K.key==="Escape"&&y.value&&(t.persistent?X():(l.value=!1,(oe=D.value)!=null&&oe.contains(document.activeElement)&&((q=u.value)==null||q.focus())))}const j=m2e();x1(()=>t.closeOnBack,()=>{X9e(j,K=>{y.value&&l.value?(K(!1),t.persistent?X():l.value=!1):K()})});const U=ti();Ni(()=>l.value&&(t.absolute||t.contained)&&R.value==null,K=>{if(K){const oe=Hxe(C.value);oe&&oe!==document.scrollingElement&&(U.value=oe.scrollTop)}});function X(){t.noClickAnimation||D.value&&HA(D.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:fZ})}function te(){P("afterEnter")}function W(){O(),P("afterLeave")}return ka(()=>{var K;return Ht(ma,null,[(K=o.activator)==null?void 0:K.call(o,{isActive:l.value,targetRef:_,props:Ii({ref:h},S.value,t.activatorProps)}),T.value&&i.value&&Ht(WSe,{disabled:!R.value,to:R.value},{default:()=>[Ht("div",Ii({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":l.value,"v-overlay--contained":t.contained},n.value,c.value,t.class],style:[a.value,{"--v-overlay-opacity":t.opacity,top:Ma(U.value)},t.style],ref:C},E,f),[Ht(xLe,Ii({color:w,modelValue:l.value&&!!t.scrim,ref:L},x.value),null),Ht(G4,{appear:!0,persisted:!0,transition:t.transition,target:m.value,onAfterEnter:te,onAfterLeave:W},{default:()=>{var oe;return[Tp(Ht("div",Ii({ref:D,class:["v-overlay__content",t.contentClass],style:[M.value,k.value]},A.value,t.contentProps),[(oe=o.default)==null?void 0:oe.call(o,{isActive:l})]),[[mS,l.value],[y_("click-outside"),{handler:z,closeConditional:$,include:()=>[u.value]}]])]}})])]})])}),{activatorEl:u,scrimEl:L,target:m,animateClick:X,contentEl:D,globalTop:y,localTop:p,updateLocation:I}}}),Hie=Symbol("Forwarded refs");function Zie(t,e){let o=t;for(;o;){const f=Reflect.getOwnPropertyDescriptor(o,e);if(f)return f;o=Object.getPrototypeOf(o)}}function T_(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f!0},setup(t,e){let{slots:o}=e;const f=bl(t,"modelValue"),{scopeId:P}=zM(),d=O1(),l=Un(()=>t.id||`v-menu-${d}`),n=ti(),c=yl(Use,null),b=Ai(0);gf(Use,{register(){++b.value},unregister(){--b.value},closeParents(a){setTimeout(()=>{var u;!b.value&&!t.persistent&&(a==null||(u=n.value)!=null&&u.contentEl&&!APe(a,n.value.contentEl))&&(f.value=!1,c==null||c.closeParents())},40)}});async function i(a){var m,v,_;const u=a.relatedTarget,h=a.target;await lc(),f.value&&u!==h&&((m=n.value)!=null&&m.contentEl)&&((v=n.value)!=null&&v.globalTop)&&![document,n.value.contentEl].includes(h)&&!n.value.contentEl.contains(h)&&((_=WI(n.value.contentEl)[0])==null||_.focus())}Ni(f,a=>{a?(c==null||c.register(),document.addEventListener("focusin",i,{once:!0})):(c==null||c.unregister(),document.removeEventListener("focusin",i))});function O(a){c==null||c.closeParents(a)}function w(a){var u,h,m;if(!t.disabled)if(a.key==="Tab"||a.key==="Enter"&&!t.closeOnContentClick){if(a.key==="Enter"&&(a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLInputElement&&a.target.closest("form")))return;a.key==="Enter"&&a.preventDefault(),Ixe(WI((u=n.value)==null?void 0:u.contentEl,!1),a.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(f.value=!1,(m=(h=n.value)==null?void 0:h.activatorEl)==null||m.focus())}else["Enter"," "].includes(a.key)&&t.closeOnContentClick&&(f.value=!1,c==null||c.closeParents())}function y(a){var h;if(t.disabled)return;const u=(h=n.value)==null?void 0:h.contentEl;u&&f.value?a.key==="ArrowDown"?(a.preventDefault(),cZ(u,"next")):a.key==="ArrowUp"&&(a.preventDefault(),cZ(u,"prev")):["ArrowDown","ArrowUp"].includes(a.key)&&(f.value=!0,a.preventDefault(),setTimeout(()=>setTimeout(()=>y(a))))}const p=Un(()=>Ii({"aria-haspopup":"menu","aria-expanded":String(f.value),"aria-owns":l.value,onKeydown:y},t.activatorProps));return ka(()=>{const a=hS.filterProps(t);return Ht(hS,Ii({ref:n,id:l.value,class:["v-menu",t.class],style:t.style},a,{modelValue:f.value,"onUpdate:modelValue":u=>f.value=u,absolute:!0,activatorProps:p.value,"onClick:outside":O,onKeydown:w},P),{activator:o.activator,default:function(){for(var u=arguments.length,h=new Array(u),m=0;m{var v;return[(v=o.default)==null?void 0:v.call(o,...h)]}})}})}),T_({id:l,ΨopenChildren:b},n)}});const wLe=ei({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...ys(),...ST({transition:{component:e2e}})},"VCounter"),e_e=Ji()({name:"VCounter",functional:!0,props:wLe(),setup(t,e){let{slots:o}=e;const f=Un(()=>t.max?`${t.value} / ${t.max}`:String(t.value));return ka(()=>Ht(G4,{transition:t.transition},{default:()=>[Tp(Ht("div",{class:["v-counter",{"text-error":t.max&&!t.disabled&&parseFloat(t.value)>parseFloat(t.max)},t.class],style:t.style},[o.default?o.default({counter:f.value,max:t.max,value:t.value}):f.value]),[[mS,t.active]])]})),{}}});const OLe=ei({floating:Boolean,...ys()},"VFieldLabel"),JQ=Ji()({name:"VFieldLabel",props:OLe(),setup(t,e){let{slots:o}=e;return ka(()=>Ht(kq,{class:["v-field-label",{"v-field-label--floating":t.floating},t.class],style:t.style,"aria-hidden":t.floating||void 0},o)),{}}}),SLe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],aue=ei({appendInnerIcon:ul,bgColor:String,clearable:Boolean,clearIcon:{type:ul,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:ul,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:t=>SLe.includes(t)},"onClick:clear":og(),"onClick:appendInner":og(),"onClick:prependInner":og(),...ys(),...bq(),...pm(),...vf()},"VField"),sue=Ji()({name:"VField",inheritAttrs:!1,props:{id:String,...Tq(),...aue()},emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{themeClasses:d}=ad(t),{loaderClasses:l}=TD(t),{focusClasses:n,isFocused:c,focus:b,blur:i}=DM(t),{InputIcon:O}=T2e(t),{roundedClasses:w}=lg(t),{rtlClasses:y}=qg(),p=Un(()=>t.dirty||t.active),a=Un(()=>!t.singleLine&&!!(t.label||P.label)),u=O1(),h=Un(()=>t.id||`input-${u}`),m=Un(()=>`${h.value}-messages`),v=ti(),_=ti(),S=ti(),A=Un(()=>["plain","underlined"].includes(t.variant)),{backgroundColorClasses:x,backgroundColorStyles:R}=ig(Oi(t,"bgColor")),{textColorClasses:M,textColorStyles:T}=Uv(Un(()=>t.error||t.disabled?void 0:p.value&&c.value?t.color:t.baseColor));Ni(p,D=>{if(a.value){const k=v.value.$el,I=_.value.$el;requestAnimationFrame(()=>{const z=jce(k),$=I.getBoundingClientRect(),Q=$.x-z.x,j=$.y-z.y-(z.height/2-$.height/2),U=$.width/.75,X=Math.abs(U-z.width)>1?{maxWidth:Ma(U)}:void 0,te=getComputedStyle(k),W=getComputedStyle(I),K=parseFloat(te.transitionDuration)*1e3||150,oe=parseFloat(W.getPropertyValue("--v-field-label-scale")),q=W.getPropertyValue("color");k.style.visibility="visible",I.style.visibility="hidden",HA(k,{transform:`translate(${Q}px, ${j}px) scale(${oe})`,color:q,...X},{duration:K,easing:fZ,direction:D?"normal":"reverse"}).finished.then(()=>{k.style.removeProperty("visibility"),I.style.removeProperty("visibility")})})}},{flush:"post"});const E=Un(()=>({isActive:p,isFocused:c,controlRef:S,blur:i,focus:b}));function C(D){D.target!==document.activeElement&&D.preventDefault()}function L(D){var k;D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),D.stopPropagation(),(k=t["onClick:clear"])==null||k.call(t,new MouseEvent("click")))}return ka(()=>{var Q,j,U;const D=t.variant==="outlined",k=!!(P["prepend-inner"]||t.prependInnerIcon),I=!!(t.clearable||P.clear),z=!!(P["append-inner"]||t.appendInnerIcon||I),$=()=>P.label?P.label({...E.value,label:t.label,props:{for:h.value}}):t.label;return Ht("div",Ii({class:["v-field",{"v-field--active":p.value,"v-field--appended":z,"v-field--center-affix":t.centerAffix??!A.value,"v-field--disabled":t.disabled,"v-field--dirty":t.dirty,"v-field--error":t.error,"v-field--flat":t.flat,"v-field--has-background":!!t.bgColor,"v-field--persistent-clear":t.persistentClear,"v-field--prepended":k,"v-field--reverse":t.reverse,"v-field--single-line":t.singleLine,"v-field--no-label":!$(),[`v-field--variant-${t.variant}`]:!0},d.value,x.value,n.value,l.value,w.value,y.value,t.class],style:[R.value,t.style],onClick:C},o),[Ht("div",{class:"v-field__overlay"},null),Ht(xq,{name:"v-field",active:!!t.loading,color:t.error?"error":typeof t.loading=="string"?t.loading:t.color},{default:P.loader}),k&&Ht("div",{key:"prepend",class:"v-field__prepend-inner"},[t.prependInnerIcon&&Ht(O,{key:"prepend-icon",name:"prependInner"},null),(Q=P["prepend-inner"])==null?void 0:Q.call(P,E.value)]),Ht("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(t.variant)&&a.value&&Ht(JQ,{key:"floating-label",ref:_,class:[M.value],floating:!0,for:h.value,style:T.value},{default:()=>[$()]}),Ht(JQ,{ref:v,for:h.value},{default:()=>[$()]}),(j=P.default)==null?void 0:j.call(P,{...E.value,props:{id:h.value,class:"v-field__input","aria-describedby":m.value},focus:b,blur:i})]),I&&Ht(t2e,{key:"clear"},{default:()=>[Tp(Ht("div",{class:"v-field__clearable",onMousedown:X=>{X.preventDefault(),X.stopPropagation()}},[Ht(du,{defaults:{VIcon:{icon:t.clearIcon}}},{default:()=>[P.clear?P.clear({...E.value,props:{onKeydown:L,onFocus:b,onBlur:i,onClick:t["onClick:clear"]}}):Ht(O,{name:"clear",onKeydown:L,onFocus:b,onBlur:i},null)]})]),[[mS,t.dirty]])]}),z&&Ht("div",{key:"append",class:"v-field__append-inner"},[(U=P["append-inner"])==null?void 0:U.call(P,E.value),t.appendInnerIcon&&Ht(O,{key:"append-icon",name:"appendInner"},null)]),Ht("div",{class:["v-field__outline",M.value],style:T.value},[D&&Ht(ma,null,[Ht("div",{class:"v-field__outline__start"},null),a.value&&Ht("div",{class:"v-field__outline__notch"},[Ht(JQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})]),Ht("div",{class:"v-field__outline__end"},null)]),A.value&&a.value&&Ht(JQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})])])}),{controlRef:S}}});function t_e(t){const e=Object.keys(sue.props).filter(o=>!uq(o)&&o!=="class"&&o!=="style");return Vce(t,e)}const kLe=["color","file","time","date","datetime-local","week","month"],Mq=ei({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...BM(),...aue()},"VTextField"),um=Ji()({name:"VTextField",directives:{Intersect:Kce},inheritAttrs:!1,props:Mq(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const d=bl(t,"modelValue"),{isFocused:l,focus:n,blur:c}=DM(t),b=Un(()=>typeof t.counterValue=="function"?t.counterValue(d.value):typeof t.counterValue=="number"?t.counterValue:(d.value??"").toString().length),i=Un(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),O=Un(()=>["plain","underlined"].includes(t.variant));function w(A,x){var R,M;!t.autofocus||!A||(M=(R=x[0].target)==null?void 0:R.focus)==null||M.call(R)}const y=ti(),p=ti(),a=ti(),u=Un(()=>kLe.includes(t.type)||t.persistentPlaceholder||l.value||t.active);function h(){var A;a.value!==document.activeElement&&((A=a.value)==null||A.focus()),l.value||n()}function m(A){f("mousedown:control",A),A.target!==a.value&&(h(),A.preventDefault())}function v(A){h(),f("click:control",A)}function _(A){A.stopPropagation(),h(),lc(()=>{d.value=null,Lxe(t["onClick:clear"],A)})}function S(A){var R;const x=A.target;if(d.value=x.value,(R=t.modelModifiers)!=null&&R.trim&&["text","search","password","tel","url"].includes(t.type)){const M=[x.selectionStart,x.selectionEnd];lc(()=>{x.selectionStart=M[0],x.selectionEnd=M[1]})}}return ka(()=>{const A=!!(P.counter||t.counter!==!1&&t.counter!=null),x=!!(A||P.details),[R,M]=fq(o),{modelValue:T,...E}=p_.filterProps(t),C=t_e(t);return Ht(p_,Ii({ref:y,modelValue:d.value,"onUpdate:modelValue":L=>d.value=L,class:["v-text-field",{"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-input--plain-underlined":O.value},t.class],style:t.style},R,E,{centerAffix:!O.value,focused:l.value}),{...P,default:L=>{let{id:D,isDisabled:k,isDirty:I,isReadonly:z,isValid:$}=L;return Ht(sue,Ii({ref:p,onMousedown:m,onClick:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"],role:t.role},C,{id:D.value,active:u.value||I.value,dirty:I.value||t.dirty,disabled:k.value,focused:l.value,error:$.value===!1}),{...P,default:Q=>{let{props:{class:j,...U}}=Q;const X=Tp(Ht("input",Ii({ref:a,value:d.value,onInput:S,autofocus:t.autofocus,readonly:z.value,disabled:k.value,name:t.name,placeholder:t.placeholder,size:1,type:t.type,onFocus:h,onBlur:c},U,M),null),[[y_("intersect"),{handler:w},null,{once:!0}]]);return Ht(ma,null,[t.prefix&&Ht("span",{class:"v-text-field__prefix"},[Ht("span",{class:"v-text-field__prefix__text"},[t.prefix])]),P.default?Ht("div",{class:j,"data-no-activator":""},[P.default(),X]):TO(X,{class:j}),t.suffix&&Ht("span",{class:"v-text-field__suffix"},[Ht("span",{class:"v-text-field__suffix__text"},[t.suffix])])])}})},details:x?L=>{var D;return Ht(ma,null,[(D=P.details)==null?void 0:D.call(P,L),A&&Ht(ma,null,[Ht("span",null,null),Ht(e_e,{active:t.persistentCounter||l.value,value:b.value,max:i.value,disabled:t.disabled},P.counter)])])}:void 0})}),T_({},y,p,a)}});const TLe=ei({renderless:Boolean,...ys()},"VVirtualScrollItem"),CLe=Ji()({name:"VVirtualScrollItem",inheritAttrs:!1,props:TLe(),emits:{"update:height":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{resizeRef:d,contentRect:l}=dS(void 0,"border");Ni(()=>{var n;return(n=l.value)==null?void 0:n.height},n=>{n!=null&&f("update:height",n)}),ka(()=>{var n,c;return t.renderless?Ht(ma,null,[(n=P.default)==null?void 0:n.call(P,{itemRef:d})]):Ht("div",Ii({ref:d,class:["v-virtual-scroll__item",t.class],style:t.style},o),[(c=P.default)==null?void 0:c.call(P)])})}}),ALe=-1,MLe=1,qie=100,ELe=ei({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function PLe(t,e){const o=xS(),f=Ai(0);kp(()=>{f.value=parseFloat(t.itemHeight||0)});const P=Ai(0),d=Ai(Math.ceil((parseInt(t.height)||o.height.value)/(f.value||16))||1),l=Ai(0),n=Ai(0),c=ti(),b=ti();let i=0;const{resizeRef:O,contentRect:w}=dS();kp(()=>{O.value=c.value});const y=Un(()=>{var Q;return c.value===document.documentElement?o.height.value:((Q=w.value)==null?void 0:Q.height)||parseInt(t.height)||0}),p=Un(()=>!!(c.value&&b.value&&y.value&&f.value));let a=Array.from({length:e.value.length}),u=Array.from({length:e.value.length});const h=Ai(0);let m=-1;function v(Q){return a[Q]||f.value}const _=SPe(()=>{const Q=performance.now();u[0]=0;const j=e.value.length;for(let U=1;U<=j-1;U++)u[U]=(u[U-1]||0)+v(U-1);h.value=Math.max(h.value,performance.now()-Q)},h),S=Ni(p,Q=>{Q&&(S(),i=b.value.offsetTop,_.immediate(),k(),~m&&lc(()=>{ou&&window.requestAnimationFrame(()=>{z(m),m=-1})}))});ag(()=>{_.clear()});function A(Q,j){const U=a[Q],X=f.value;f.value=X?Math.min(f.value,j):j,(U!==j||X!==f.value)&&(a[Q]=j,_())}function x(Q){return Q=rg(Q,0,e.value.length-1),u[Q]||0}function R(Q){return RLe(u,Q)}let M=0,T=0,E=0;Ni(y,(Q,j)=>{j&&(k(),Q{T=0,k()}))});function C(){if(!c.value||!b.value)return;const Q=c.value.scrollTop,j=performance.now();j-E>500?(T=Math.sign(Q-M),i=b.value.offsetTop):T=Q-M,M=Q,E=j,k()}function L(){!c.value||!b.value||(T=0,E=0,k())}let D=-1;function k(){cancelAnimationFrame(D),D=requestAnimationFrame(I)}function I(){if(!c.value||!y.value)return;const Q=M-i,j=Math.sign(T),U=Math.max(0,Q-qie),X=rg(R(U),0,e.value.length),te=Q+y.value+qie,W=rg(R(te)+1,X+1,e.value.length);if((j!==ALe||Xd.value)){const K=x(P.value)-x(X),oe=x(W)-x(d.value);Math.max(K,oe)>qie?(P.value=X,d.value=W):(X<=0&&(P.value=X),W>=e.value.length&&(d.value=W))}l.value=x(P.value),n.value=x(e.value.length)-x(d.value)}function z(Q){const j=x(Q);!c.value||Q&&!j?m=Q:c.value.scrollTop=j}const $=Un(()=>e.value.slice(P.value,d.value).map((Q,j)=>({raw:Q,index:j+P.value})));return Ni(e,()=>{a=Array.from({length:e.value.length}),u=Array.from({length:e.value.length}),_.immediate(),k()},{deep:!0}),{containerRef:c,markerRef:b,computedItems:$,paddingTop:l,paddingBottom:n,scrollToIndex:z,handleScroll:C,handleScrollend:L,handleItemResize:A}}function RLe(t,e){let o=t.length-1,f=0,P=0,d=null,l=-1;if(t[o]>1,d=t[P],d>e)o=P-1;else if(d[]},renderless:Boolean,...ELe(),...ys(),...O_()},"VVirtualScroll"),lue=Ji()({name:"VVirtualScroll",props:LLe(),setup(t,e){let{slots:o}=e;const f=ph("VVirtualScroll"),{dimensionStyles:P}=S_(t),{containerRef:d,markerRef:l,handleScroll:n,handleScrollend:c,handleItemResize:b,scrollToIndex:i,paddingTop:O,paddingBottom:w,computedItems:y}=PLe(t,Oi(t,"items"));return x1(()=>t.renderless,()=>{function p(){var h,m;const u=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";d.value===document.documentElement?(document[u]("scroll",n,{passive:!0}),document[u]("scrollend",c)):((h=d.value)==null||h[u]("scroll",n,{passive:!0}),(m=d.value)==null||m[u]("scrollend",c))}sg(()=>{d.value=Hxe(f.vnode.el,!0),p(!0)}),ag(p)}),ka(()=>{const p=y.value.map(a=>Ht(CLe,{key:a.index,renderless:t.renderless,"onUpdate:height":u=>b(a.index,u)},{default:u=>{var h;return(h=o.default)==null?void 0:h.call(o,{item:a.raw,index:a.index,...u})}}));return t.renderless?Ht(ma,null,[Ht("div",{ref:l,class:"v-virtual-scroll__spacer",style:{paddingTop:Ma(O.value)}},null),p,Ht("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Ma(w.value)}},null)]):Ht("div",{ref:d,class:["v-virtual-scroll",t.class],onScrollPassive:n,onScrollend:c,style:[P.value,t.style]},[Ht("div",{ref:l,class:"v-virtual-scroll__container",style:{paddingTop:Ma(O.value),paddingBottom:Ma(w.value)}},[p])])}),{scrollToIndex:i}}});function cue(t,e){const o=Ai(!1);let f;function P(n){cancelAnimationFrame(f),o.value=!0,f=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>{o.value=!1})})}async function d(){await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>{if(o.value){const c=Ni(o,()=>{c(),n()})}else n()})}async function l(n){var i,O;if(n.key==="Tab"&&((i=e.value)==null||i.focus()),!["PageDown","PageUp","Home","End"].includes(n.key))return;const c=(O=t.value)==null?void 0:O.$el;if(!c)return;(n.key==="Home"||n.key==="End")&&c.scrollTo({top:n.key==="Home"?0:c.scrollHeight,behavior:"smooth"}),await d();const b=c.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(n.key==="PageDown"||n.key==="Home"){const w=c.getBoundingClientRect().top;for(const y of b)if(y.getBoundingClientRect().top>=w){y.focus();break}}else{const w=c.getBoundingClientRect().bottom;for(const y of[...b].reverse())if(y.getBoundingClientRect().bottom<=w){y.focus();break}}}return{onListScroll:P,onListKeydown:l}}const uue=ei({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:ul,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...U2e({itemChildren:!1})},"Select"),ILe=ei({...uue(),...__(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ST({transition:{component:Yce}})},"VSelect"),ED=Ji()({name:"VSelect",props:ILe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=sb(),P=ti(),d=ti(),l=ti(),n=bl(t,"menu"),c=Un({get:()=>n.value,set:$=>{var Q;n.value&&!$&&((Q=d.value)!=null&&Q.ΨopenChildren)||(n.value=$)}}),{items:b,transformIn:i,transformOut:O}=iue(t),w=bl(t,"modelValue",[],$=>i($===null?[null]:fm($)),$=>{const Q=O($);return t.multiple?Q:Q[0]??null}),y=Un(()=>typeof t.counterValue=="function"?t.counterValue(w.value):typeof t.counterValue=="number"?t.counterValue:w.value.length),p=Cq(),a=Un(()=>w.value.map($=>$.value)),u=Ai(!1),h=Un(()=>c.value?t.closeText:t.openText);let m="",v;const _=Un(()=>t.hideSelected?b.value.filter($=>!w.value.some(Q=>t.valueComparator(Q,$))):b.value),S=Un(()=>t.hideNoData&&!_.value.length||t.readonly||(p==null?void 0:p.isReadonly.value)),A=Un(()=>{var $;return{...t.menuProps,activatorProps:{...(($=t.menuProps)==null?void 0:$.activatorProps)||{},"aria-haspopup":"listbox"}}}),x=ti(),{onListScroll:R,onListKeydown:M}=cue(x,P);function T($){t.openOnClear&&(c.value=!0)}function E(){S.value||(c.value=!c.value)}function C($){var te,W;if(!$.key||t.readonly||p!=null&&p.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes($.key)&&$.preventDefault(),["Enter","ArrowDown"," "].includes($.key)&&(c.value=!0),["Escape","Tab"].includes($.key)&&(c.value=!1),$.key==="Home"?(te=x.value)==null||te.focus("first"):$.key==="End"&&((W=x.value)==null||W.focus("last"));const Q=1e3;function j(K){const oe=K.key.length===1,q=!K.ctrlKey&&!K.metaKey&&!K.altKey;return oe&&q}if(t.multiple||!j($))return;const U=performance.now();U-v>Q&&(m=""),m+=$.key.toLowerCase(),v=U;const X=b.value.find(K=>K.title.toLowerCase().startsWith(m));if(X!==void 0){w.value=[X];const K=_.value.indexOf(X);ou&&window.requestAnimationFrame(()=>{var oe;K>=0&&((oe=l.value)==null||oe.scrollToIndex(K))})}}function L($){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!$.props.disabled)if(t.multiple){const j=w.value.findIndex(X=>t.valueComparator(X.value,$.value)),U=Q??!~j;if(~j){const X=U?[...w.value,$]:[...w.value];X.splice(j,1),w.value=X}else U&&(w.value=[...w.value,$])}else{const j=Q!==!1;w.value=j?[$]:[],lc(()=>{c.value=!1})}}function D($){var Q;(Q=x.value)!=null&&Q.$el.contains($.relatedTarget)||(c.value=!1)}function k(){var $;u.value&&(($=P.value)==null||$.focus())}function I($){u.value=!0}function z($){if($==null)w.value=[];else if(vM(P.value,":autofill")||vM(P.value,":-webkit-autofill")){const Q=b.value.find(j=>j.title===$);Q&&L(Q)}else P.value&&(P.value.value="")}return Ni(c,()=>{if(!t.hideSelected&&c.value&&w.value.length){const $=_.value.findIndex(Q=>w.value.some(j=>t.valueComparator(j.value,Q.value)));ou&&window.requestAnimationFrame(()=>{var Q;$>=0&&((Q=l.value)==null||Q.scrollToIndex($))})}}),Ni(()=>t.items,($,Q)=>{c.value||u.value&&!Q.length&&$.length&&(c.value=!0)}),ka(()=>{const $=!!(t.chips||o.chip),Q=!!(!t.hideNoData||_.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),j=w.value.length>0,U=um.filterProps(t),X=j||!u.value&&t.label&&!t.persistentPlaceholder?void 0:t.placeholder;return Ht(um,Ii({ref:P},U,{modelValue:w.value.map(te=>te.props.value).join(", "),"onUpdate:modelValue":z,focused:u.value,"onUpdate:focused":te=>u.value=te,validationValue:w.externalValue,counterValue:y.value,dirty:j,class:["v-select",{"v-select--active-menu":c.value,"v-select--chips":!!t.chips,[`v-select--${t.multiple?"multiple":"single"}`]:!0,"v-select--selected":w.value.length,"v-select--selection-slot":!!o.selection},t.class],style:t.style,inputmode:"none",placeholder:X,"onClick:clear":T,"onMousedown:control":E,onBlur:D,onKeydown:C,"aria-label":f(h.value),title:f(h.value)}),{...o,default:()=>Ht(ma,null,[Ht(pS,Ii({ref:d,modelValue:c.value,"onUpdate:modelValue":te=>c.value=te,activator:"parent",contentClass:"v-select__content",disabled:S.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:k},A.value),{default:()=>[Q&&Ht(m_,Ii({ref:x,selected:a.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:te=>te.preventDefault(),onKeydown:M,onFocusin:I,onScrollPassive:R,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var te,W,K;return[(te=o["prepend-item"])==null?void 0:te.call(o),!_.value.length&&!t.hideNoData&&(((W=o["no-data"])==null?void 0:W.call(o))??Ht(zf,{title:f(t.noDataText)},null)),Ht(lue,{ref:l,renderless:!0,items:_.value},{default:oe=>{var he;let{item:q,index:Y,itemRef:ee}=oe;const me=Ii(q.props,{ref:ee,key:Y,onClick:()=>L(q,null)});return((he=o.item)==null?void 0:he.call(o,{item:q,index:Y,props:me}))??Ht(zf,Ii(me,{role:"option"}),{prepend:se=>{let{isSelected:ae}=se;return Ht(ma,null,[t.multiple&&!t.hideSelected?Ht(IM,{key:q.value,modelValue:ae,ripple:!1,tabindex:"-1"},null):void 0,q.props.prependAvatar&&Ht(PO,{image:q.props.prependAvatar},null),q.props.prependIcon&&Ht(Al,{icon:q.props.prependIcon},null)])}})}}),(K=o["append-item"])==null?void 0:K.call(o)]}})]}),w.value.map((te,W)=>{function K(ee){ee.stopPropagation(),ee.preventDefault(),L(te,!1)}const oe={"onClick:close":K,onKeydown(ee){ee.key!=="Enter"&&ee.key!==" "||(ee.preventDefault(),ee.stopPropagation(),K(ee))},onMousedown(ee){ee.preventDefault(),ee.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},q=$?!!o.chip:!!o.selection,Y=q?dq($?o.chip({item:te,index:W,props:oe}):o.selection({item:te,index:W})):void 0;if(!(q&&!Y))return Ht("div",{key:te.value,class:"v-select__selection"},[$?o.chip?Ht(du,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:te.title}}},{default:()=>[Y]}):Ht(AD,Ii({key:"chip",closable:t.closableChips,size:"small",text:te.title,disabled:te.props.disabled},oe),null):Y??Ht("span",{class:"v-select__selection-text"},[te.title,t.multiple&&Wt==null||e==null?-1:t.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),fue=ei({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function BLe(t,e,o){var n;const f=[],P=(o==null?void 0:o.default)??DLe,d=o!=null&&o.filterKeys?fm(o.filterKeys):!1,l=Object.keys((o==null?void 0:o.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return f;e:for(let c=0;c0)&&!(o!=null&&o.noFilter)){if(typeof b=="object"){const u=d||Object.keys(i);for(const h of u){const m=y1(i,h),v=(n=o==null?void 0:o.customKeyFilter)==null?void 0:n[h];if(y=v?v(m,e,b):P(m,e,b),y!==-1&&y!==!1)v?O[h]=y:w[h]=y;else if((o==null?void 0:o.filterMode)==="every")continue e}}else y=P(b,e,b),y!==-1&&y!==!1&&(w.title=y);const p=Object.keys(w).length,a=Object.keys(O).length;if(!p&&!a||(o==null?void 0:o.filterMode)==="union"&&a!==l&&!p||(o==null?void 0:o.filterMode)==="intersection"&&(a!==l||!p))continue}f.push({index:c,matches:{...w,...O}})}return f}function due(t,e,o,f){const P=ti([]),d=ti(new Map),l=Un(()=>f!=null&&f.transform?wa(e).map(c=>[c,f.transform(c)]):wa(e));kp(()=>{const c=typeof o=="function"?o():wa(o),b=typeof c!="string"&&typeof c!="number"?"":String(c),i=BLe(l.value,b,{customKeyFilter:{...t.customKeyFilter,...wa(f==null?void 0:f.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),O=wa(e),w=[],y=new Map;i.forEach(p=>{let{index:a,matches:u}=p;const h=O[a];w.push(h),y.set(h.value,u)}),P.value=w,d.value=y});function n(c){return d.value.get(c.value)}return{filteredItems:P,filteredMatches:d,getMatches:n}}function zLe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?Ht(ma,null,[Ht("span",{class:"v-autocomplete__unmask"},[t.substr(0,e)]),Ht("span",{class:"v-autocomplete__mask"},[t.substr(e,o)]),Ht("span",{class:"v-autocomplete__unmask"},[t.substr(e+o)])]):t}const FLe=ei({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...fue({filterKeys:["title"]}),...uue(),...__(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ST({transition:!1})},"VAutocomplete"),hue=Ji()({name:"VAutocomplete",props:FLe(),emits:{"update:focused":t=>!0,"update:search":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=sb(),P=ti(),d=Ai(!1),l=Ai(!0),n=Ai(!1),c=ti(),b=ti(),i=bl(t,"menu"),O=Un({get:()=>i.value,set:me=>{var he;i.value&&!me&&((he=c.value)!=null&&he.ΨopenChildren)||(i.value=me)}}),w=Ai(-1),y=Un(()=>{var me;return(me=P.value)==null?void 0:me.color}),p=Un(()=>O.value?t.closeText:t.openText),{items:a,transformIn:u,transformOut:h}=iue(t),{textColorClasses:m,textColorStyles:v}=Uv(y),_=bl(t,"search",""),S=bl(t,"modelValue",[],me=>u(me===null?[null]:fm(me)),me=>{const he=h(me);return t.multiple?he:he[0]??null}),A=Un(()=>typeof t.counterValue=="function"?t.counterValue(S.value):typeof t.counterValue=="number"?t.counterValue:S.value.length),x=Cq(),{filteredItems:R,getMatches:M}=due(t,a,()=>l.value?"":_.value),T=Un(()=>t.hideSelected?R.value.filter(me=>!S.value.some(he=>he.value===me.value)):R.value),E=Un(()=>!!(t.chips||o.chip)),C=Un(()=>E.value||!!o.selection),L=Un(()=>S.value.map(me=>me.props.value)),D=Un(()=>{var he;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&_.value===((he=T.value[0])==null?void 0:he.title))&&T.value.length>0&&!l.value&&!n.value}),k=Un(()=>t.hideNoData&&!T.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),I=ti(),{onListScroll:z,onListKeydown:$}=cue(I,P);function Q(me){t.openOnClear&&(O.value=!0),_.value=""}function j(){k.value||(O.value=!0)}function U(me){k.value||(d.value&&(me.preventDefault(),me.stopPropagation()),O.value=!O.value)}function X(me){var ae,ce,de;if(t.readonly||x!=null&&x.isReadonly.value)return;const he=P.value.selectionStart,se=S.value.length;if((w.value>-1||["Enter","ArrowDown","ArrowUp"].includes(me.key))&&me.preventDefault(),["Enter","ArrowDown"].includes(me.key)&&(O.value=!0),["Escape"].includes(me.key)&&(O.value=!1),D.value&&["Enter","Tab"].includes(me.key)&&!S.value.some(ve=>{let{value:ye}=ve;return ye===T.value[0].value})&&ee(T.value[0]),me.key==="ArrowDown"&&D.value&&((ae=I.value)==null||ae.focus("next")),["Backspace","Delete"].includes(me.key)){if(!t.multiple&&C.value&&S.value.length>0&&!_.value)return ee(S.value[0],!1);if(~w.value){const ve=w.value;ee(S.value[w.value],!1),w.value=ve>=se-1?se-2:ve}else me.key==="Backspace"&&!_.value&&(w.value=se-1)}if(t.multiple){if(me.key==="ArrowLeft"){if(w.value<0&&he>0)return;const ve=w.value>-1?w.value-1:se-1;S.value[ve]?w.value=ve:(w.value=-1,P.value.setSelectionRange((ce=_.value)==null?void 0:ce.length,(de=_.value)==null?void 0:de.length))}if(me.key==="ArrowRight"){if(w.value<0)return;const ve=w.value+1;S.value[ve]?w.value=ve:(w.value=-1,P.value.setSelectionRange(0,0))}}}function te(me){if(vM(P.value,":autofill")||vM(P.value,":-webkit-autofill")){const he=a.value.find(se=>se.title===me.target.value);he&&ee(he)}}function W(){var me;d.value&&(l.value=!0,(me=P.value)==null||me.focus())}function K(me){d.value=!0,setTimeout(()=>{n.value=!0})}function oe(me){n.value=!1}function q(me){(me==null||me===""&&!t.multiple&&!C.value)&&(S.value=[])}const Y=Ai(!1);function ee(me){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!me||me.props.disabled))if(t.multiple){const se=S.value.findIndex(ce=>t.valueComparator(ce.value,me.value)),ae=he??!~se;if(~se){const ce=ae?[...S.value,me]:[...S.value];ce.splice(se,1),S.value=ce}else ae&&(S.value=[...S.value,me]);t.clearOnSelect&&(_.value="")}else{const se=he!==!1;S.value=se?[me]:[],_.value=se&&!C.value?me.title:"",lc(()=>{O.value=!1,l.value=!0})}}return Ni(d,(me,he)=>{var se;me!==he&&(me?(Y.value=!0,_.value=t.multiple||C.value?"":String(((se=S.value.at(-1))==null?void 0:se.props.title)??""),l.value=!0,lc(()=>Y.value=!1)):(!t.multiple&&_.value==null&&(S.value=[]),O.value=!1,S.value.some(ae=>{let{title:ce}=ae;return ce===_.value})||(_.value=""),w.value=-1))}),Ni(_,me=>{!d.value||Y.value||(me&&(O.value=!0),l.value=!me)}),Ni(O,()=>{if(!t.hideSelected&&O.value&&S.value.length){const me=T.value.findIndex(he=>S.value.some(se=>he.value===se.value));ou&&window.requestAnimationFrame(()=>{var he;me>=0&&((he=b.value)==null||he.scrollToIndex(me))})}}),Ni(()=>t.items,(me,he)=>{O.value||d.value&&!he.length&&me.length&&(O.value=!0)}),ka(()=>{const me=!!(!t.hideNoData||T.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),he=S.value.length>0,se=um.filterProps(t);return Ht(um,Ii({ref:P},se,{modelValue:_.value,"onUpdate:modelValue":[ae=>_.value=ae,q],focused:d.value,"onUpdate:focused":ae=>d.value=ae,validationValue:S.externalValue,counterValue:A.value,dirty:he,onChange:te,class:["v-autocomplete",`v-autocomplete--${t.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":O.value,"v-autocomplete--chips":!!t.chips,"v-autocomplete--selection-slot":!!C.value,"v-autocomplete--selecting-index":w.value>-1},t.class],style:t.style,readonly:t.readonly,placeholder:he?void 0:t.placeholder,"onClick:clear":Q,"onMousedown:control":j,onKeydown:X}),{...o,default:()=>Ht(ma,null,[Ht(pS,Ii({ref:c,modelValue:O.value,"onUpdate:modelValue":ae=>O.value=ae,activator:"parent",contentClass:"v-autocomplete__content",disabled:k.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:W},t.menuProps),{default:()=>[me&&Ht(m_,Ii({ref:I,selected:L.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:ae=>ae.preventDefault(),onKeydown:$,onFocusin:K,onFocusout:oe,onScrollPassive:z,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var ae,ce,de;return[(ae=o["prepend-item"])==null?void 0:ae.call(o),!T.value.length&&!t.hideNoData&&(((ce=o["no-data"])==null?void 0:ce.call(o))??Ht(zf,{title:f(t.noDataText)},null)),Ht(lue,{ref:b,renderless:!0,items:T.value},{default:ve=>{var Pe;let{item:ye,index:_e,itemRef:Se}=ve;const Te=Ii(ye.props,{ref:Se,key:_e,active:D.value&&_e===0?!0:void 0,onClick:()=>ee(ye,null)});return((Pe=o.item)==null?void 0:Pe.call(o,{item:ye,index:_e,props:Te}))??Ht(zf,Ii(Te,{role:"option"}),{prepend:Ie=>{let{isSelected:ze}=Ie;return Ht(ma,null,[t.multiple&&!t.hideSelected?Ht(IM,{key:ye.value,modelValue:ze,ripple:!1,tabindex:"-1"},null):void 0,ye.props.prependAvatar&&Ht(PO,{image:ye.props.prependAvatar},null),ye.props.prependIcon&&Ht(Al,{icon:ye.props.prependIcon},null)])},title:()=>{var Ie,ze;return l.value?ye.title:zLe(ye.title,(Ie=M(ye))==null?void 0:Ie.title,((ze=_.value)==null?void 0:ze.length)??0)}})}}),(de=o["append-item"])==null?void 0:de.call(o)]}})]}),S.value.map((ae,ce)=>{function de(Se){Se.stopPropagation(),Se.preventDefault(),ee(ae,!1)}const ve={"onClick:close":de,onKeydown(Se){Se.key!=="Enter"&&Se.key!==" "||(Se.preventDefault(),Se.stopPropagation(),de(Se))},onMousedown(Se){Se.preventDefault(),Se.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ye=E.value?!!o.chip:!!o.selection,_e=ye?dq(E.value?o.chip({item:ae,index:ce,props:ve}):o.selection({item:ae,index:ce})):void 0;if(!(ye&&!_e))return Ht("div",{key:ae.value,class:["v-autocomplete__selection",ce===w.value&&["v-autocomplete__selection--selected",m.value]],style:ce===w.value?v.value:{}},[E.value?o.chip?Ht(du,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:ae.title}}},{default:()=>[_e]}):Ht(AD,Ii({key:"chip",closable:t.closableChips,size:"small",text:ae.title,disabled:ae.props.disabled},ve),null):_e??Ht("span",{class:"v-autocomplete__selection-text"},[ae.title,t.multiple&&ce!0,afterLeave:()=>!0},setup(t,e){let{emit:o,slots:f}=e;const P=bl(t,"modelValue"),{scopeId:d}=zM(),l=ti();function n(i){var y,p;const O=i.relatedTarget,w=i.target;if(O!==w&&((y=l.value)!=null&&y.contentEl)&&((p=l.value)!=null&&p.globalTop)&&![document,l.value.contentEl].includes(w)&&!l.value.contentEl.contains(w)){const a=WI(l.value.contentEl);if(!a.length)return;const u=a[0],h=a[a.length-1];O===u?h.focus():u.focus()}}ou&&Ni(()=>P.value&&t.retainFocus,i=>{i?document.addEventListener("focusin",n):document.removeEventListener("focusin",n)},{immediate:!0});function c(){var i;(i=l.value)!=null&&i.contentEl&&!l.value.contentEl.contains(document.activeElement)&&l.value.contentEl.focus({preventScroll:!0})}function b(){o("afterLeave")}return Ni(P,async i=>{var O;i||(await lc(),(O=l.value.activatorEl)==null||O.focus({preventScroll:!0}))}),ka(()=>{const i=hS.filterProps(t),O=Ii({"aria-haspopup":"dialog","aria-expanded":String(P.value)},t.activatorProps),w=Ii({tabindex:-1},t.contentProps);return Ht(hS,Ii({ref:l,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},i,{modelValue:P.value,"onUpdate:modelValue":y=>P.value=y,"aria-modal":"true",activatorProps:O,contentProps:w,role:"dialog",onAfterEnter:c,onAfterLeave:b},d),{activator:f.activator,default:function(){for(var y=arguments.length,p=new Array(y),a=0;a{var u;return[(u=f.default)==null?void 0:u.call(f,...p)]}})}})}),T_({},l)}});const n_e=Ji()({name:"VCardActions",props:ys(),setup(t,e){let{slots:o}=e;return ib({VBtn:{slim:!0,variant:"text"}}),ka(()=>{var f;return Ht("div",{class:["v-card-actions",t.class],style:t.style},[(f=o.default)==null?void 0:f.call(o)])}),{}}}),$Le=ei({opacity:[Number,String],...ys(),...hu()},"VCardSubtitle"),r_e=Ji()({name:"VCardSubtitle",props:$Le(),setup(t,e){let{slots:o}=e;return ka(()=>Ht(t.tag,{class:["v-card-subtitle",t.class],style:[{"--v-card-subtitle-opacity":t.opacity},t.style]},o)),{}}}),PD=hq("v-card-title"),VLe=ei({appendAvatar:String,appendIcon:ul,prependAvatar:String,prependIcon:ul,subtitle:[String,Number],title:[String,Number],...ys(),...S1()},"VCardItem"),ULe=Ji()({name:"VCardItem",props:VLe(),setup(t,e){let{slots:o}=e;return ka(()=>{var b;const f=!!(t.prependAvatar||t.prependIcon),P=!!(f||o.prepend),d=!!(t.appendAvatar||t.appendIcon),l=!!(d||o.append),n=!!(t.title!=null||o.title),c=!!(t.subtitle!=null||o.subtitle);return Ht("div",{class:["v-card-item",t.class],style:t.style},[P&&Ht("div",{key:"prepend",class:"v-card-item__prepend"},[o.prepend?Ht(du,{key:"prepend-defaults",disabled:!f,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},o.prepend):Ht(ma,null,[t.prependAvatar&&Ht(PO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&Ht(Al,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),Ht("div",{class:"v-card-item__content"},[n&&Ht(PD,{key:"title"},{default:()=>{var i;return[((i=o.title)==null?void 0:i.call(o))??t.title]}}),c&&Ht(r_e,{key:"subtitle"},{default:()=>{var i;return[((i=o.subtitle)==null?void 0:i.call(o))??t.subtitle]}}),(b=o.default)==null?void 0:b.call(o)]),l&&Ht("div",{key:"append",class:"v-card-item__append"},[o.append?Ht(du,{key:"append-defaults",disabled:!d,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},o.append):Ht(ma,null,[t.appendIcon&&Ht(Al,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&Ht(PO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),jLe=ei({opacity:[Number,String],...ys(),...hu()},"VCardText"),pue=Ji()({name:"VCardText",props:jLe(),setup(t,e){let{slots:o}=e;return ka(()=>Ht(t.tag,{class:["v-card-text",t.class],style:[{"--v-card-text-opacity":t.opacity},t.style]},o)),{}}}),QLe=ei({appendAvatar:String,appendIcon:ul,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:ul,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...k_(),...ys(),...S1(),...O_(),...Qv(),...bq(),...kD(),..._q(),...pm(),...Sq(),...hu(),...vf(),...Tx({variant:"elevated"})},"VCard"),BO=Ji()({name:"VCard",directives:{Ripple:MT},props:QLe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:P}=ad(t),{borderClasses:d}=DO(t),{colorClasses:l,colorStyles:n,variantClasses:c}=CT(t),{densityClasses:b}=kx(t),{dimensionStyles:i}=S_(t),{elevationClasses:O}=lb(t),{loaderClasses:w}=TD(t),{locationStyles:y}=yq(t),{positionClasses:p}=wq(t),{roundedClasses:a}=lg(t),u=Oq(t,o),h=Un(()=>t.link!==!1&&u.isLink.value),m=Un(()=>!t.disabled&&t.link!==!1&&(t.link||u.isClickable.value));return ka(()=>{const v=h.value?"a":t.tag,_=!!(f.title||t.title!=null),S=!!(f.subtitle||t.subtitle!=null),A=_||S,x=!!(f.append||t.appendAvatar||t.appendIcon),R=!!(f.prepend||t.prependAvatar||t.prependIcon),M=!!(f.image||t.image),T=A||R||x,E=!!(f.text||t.text!=null);return Tp(Ht(v,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":m.value},P.value,d.value,l.value,b.value,O.value,w.value,p.value,a.value,c.value,t.class],style:[n.value,i.value,y.value,t.style],href:u.href.value,onClick:m.value&&u.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var C;return[M&&Ht("div",{key:"image",class:"v-card__image"},[f.image?Ht(du,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},f.image):Ht(kT,{key:"image-img",cover:!0,src:t.image},null)]),Ht(xq,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:f.loader}),T&&Ht(ULe,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:f.item,prepend:f.prepend,title:f.title,subtitle:f.subtitle,append:f.append}),E&&Ht(pue,{key:"text"},{default:()=>{var L;return[((L=f.text)==null?void 0:L.call(f))??t.text]}}),(C=f.default)==null?void 0:C.call(f),f.actions&&Ht(n_e,null,{default:f.actions}),TT(m.value,"v-card")]}}),[[y_("ripple"),m.value&&t.ripple]])}),{}}});const mue=Symbol.for("vuetify:v-slider");function jse(t,e,o){const f=o==="vertical",P=e.getBoundingClientRect(),d="touches"in t?t.touches[0]:t;return f?d.clientY-(P.top+P.height/2):d.clientX-(P.left+P.width/2)}function HLe(t,e){return"touches"in t&&t.touches.length?t.touches[0][e]:"changedTouches"in t&&t.changedTouches.length?t.changedTouches[0][e]:t[e]}const o_e=ei({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:t=>typeof t=="boolean"||t==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:t=>typeof t=="boolean"||t==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)},reverse:Boolean,...pm(),...Qv({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),i_e=t=>{const e=Un(()=>parseFloat(t.min)),o=Un(()=>parseFloat(t.max)),f=Un(()=>+t.step>0?parseFloat(t.step):0),P=Un(()=>Math.max(Ame(f.value),Ame(e.value)));function d(l){if(l=parseFloat(l),f.value<=0)return l;const n=rg(l,e.value,o.value),c=e.value%f.value,b=Math.round((n-c)/f.value)*f.value+c;return parseFloat(Math.min(b,o.value).toFixed(P.value))}return{min:e,max:o,step:f,decimals:P,roundValue:d}},a_e=t=>{let{props:e,steps:o,onSliderStart:f,onSliderMove:P,onSliderEnd:d,getActiveThumb:l}=t;const{isRtl:n}=qg(),c=Oi(e,"reverse"),b=Un(()=>e.direction==="vertical"),i=Un(()=>b.value!==c.value),{min:O,max:w,step:y,decimals:p,roundValue:a}=o,u=Un(()=>parseInt(e.thumbSize,10)),h=Un(()=>parseInt(e.tickSize,10)),m=Un(()=>parseInt(e.trackSize,10)),v=Un(()=>(w.value-O.value)/y.value),_=Oi(e,"disabled"),S=Un(()=>e.error||e.disabled?void 0:e.thumbColor??e.color),A=Un(()=>e.error||e.disabled?void 0:e.trackColor??e.color),x=Un(()=>e.error||e.disabled?void 0:e.trackFillColor??e.color),R=Ai(!1),M=Ai(0),T=ti(),E=ti();function C(oe){var de;const q=e.direction==="vertical",Y=q?"top":"left",ee=q?"height":"width",me=q?"clientY":"clientX",{[Y]:he,[ee]:se}=(de=T.value)==null?void 0:de.$el.getBoundingClientRect(),ae=HLe(oe,me);let ce=Math.min(Math.max((ae-he-M.value)/se,0),1)||0;return(q?i.value:i.value!==n.value)&&(ce=1-ce),a(O.value+ce*(w.value-O.value))}const L=oe=>{d({value:C(oe)}),R.value=!1,M.value=0},D=oe=>{E.value=l(oe),E.value&&(E.value.focus(),R.value=!0,E.value.contains(oe.target)?M.value=jse(oe,E.value,e.direction):(M.value=0,P({value:C(oe)})),f({value:C(oe)}))},k={passive:!0,capture:!0};function I(oe){P({value:C(oe)})}function z(oe){oe.stopPropagation(),oe.preventDefault(),L(oe),window.removeEventListener("mousemove",I,k),window.removeEventListener("mouseup",z)}function $(oe){var q;L(oe),window.removeEventListener("touchmove",I,k),(q=oe.target)==null||q.removeEventListener("touchend",$)}function Q(oe){var q;D(oe),window.addEventListener("touchmove",I,k),(q=oe.target)==null||q.addEventListener("touchend",$,{passive:!1})}function j(oe){oe.preventDefault(),D(oe),window.addEventListener("mousemove",I,k),window.addEventListener("mouseup",z,{passive:!1})}const U=oe=>{const q=(oe-O.value)/(w.value-O.value)*100;return rg(isNaN(q)?0:q,0,100)},X=Oi(e,"showTicks"),te=Un(()=>X.value?e.ticks?Array.isArray(e.ticks)?e.ticks.map(oe=>({value:oe,position:U(oe),label:oe.toString()})):Object.keys(e.ticks).map(oe=>({value:parseFloat(oe),position:U(parseFloat(oe)),label:e.ticks[oe]})):v.value!==1/0?X4(v.value+1).map(oe=>{const q=O.value+oe*y.value;return{value:q,position:U(q)}}):[]:[]),W=Un(()=>te.value.some(oe=>{let{label:q}=oe;return!!q})),K={activeThumbRef:E,color:Oi(e,"color"),decimals:p,disabled:_,direction:Oi(e,"direction"),elevation:Oi(e,"elevation"),hasLabels:W,isReversed:c,indexFromEnd:i,min:O,max:w,mousePressed:R,numTicks:v,onSliderMousedown:j,onSliderTouchstart:Q,parsedTicks:te,parseMouseMove:C,position:U,readonly:Oi(e,"readonly"),rounded:Oi(e,"rounded"),roundValue:a,showTicks:X,startOffset:M,step:y,thumbSize:u,thumbColor:S,thumbLabel:Oi(e,"thumbLabel"),ticks:Oi(e,"ticks"),tickSize:h,trackColor:A,trackContainerRef:T,trackFillColor:x,trackSize:m,vertical:b};return gf(mue,K),K},ZLe=ei({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,...ys()},"VSliderThumb"),Qse=Ji()({name:"VSliderThumb",directives:{Ripple:MT},props:ZLe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=yl(mue),{isRtl:d,rtlClasses:l}=qg();if(!P)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:n,step:c,disabled:b,thumbSize:i,thumbLabel:O,direction:w,isReversed:y,vertical:p,readonly:a,elevation:u,mousePressed:h,decimals:m,indexFromEnd:v}=P,_=Un(()=>b.value?void 0:u.value),{elevationClasses:S}=lb(_),{textColorClasses:A,textColorStyles:x}=Uv(n),{pageup:R,pagedown:M,end:T,home:E,left:C,right:L,down:D,up:k}=Ese,I=[R,M,T,E,C,L,D,k],z=Un(()=>c.value?[1,2,3]:[1,5,10]);function $(j,U){if(!I.includes(j.key))return;j.preventDefault();const X=c.value||.1,te=(t.max-t.min)/X;if([C,L,D,k].includes(j.key)){const K=(p.value?[d.value?C:L,y.value?D:k]:v.value!==d.value?[C,k]:[L,k]).includes(j.key)?1:-1,oe=j.shiftKey?2:j.ctrlKey?1:0;U=U+K*X*z.value[oe]}else if(j.key===E)U=t.min;else if(j.key===T)U=t.max;else{const W=j.key===M?1:-1;U=U-W*X*(te>100?te/10:10)}return Math.max(t.min,Math.min(t.max,U))}function Q(j){const U=$(j,t.modelValue);U!=null&&f("update:modelValue",U)}return ka(()=>{const j=Ma(v.value?100-t.position:t.position,"%");return Ht("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":t.focused,"v-slider-thumb--pressed":t.focused&&h.value},t.class,l.value],style:[{"--v-slider-thumb-position":j,"--v-slider-thumb-size":Ma(i.value)},t.style],role:"slider",tabindex:b.value?-1:0,"aria-label":t.name,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,"aria-readonly":!!a.value,"aria-orientation":w.value,onKeydown:a.value?void 0:Q},[Ht("div",{class:["v-slider-thumb__surface",A.value,S.value],style:{...x.value}},null),Tp(Ht("div",{class:["v-slider-thumb__ripple",A.value],style:x.value},null),[[y_("ripple"),t.ripple,null,{circle:!0,center:!0}]]),Ht(Jxe,{origin:"bottom center"},{default:()=>{var U;return[Tp(Ht("div",{class:"v-slider-thumb__label-container"},[Ht("div",{class:["v-slider-thumb__label"]},[Ht("div",null,[((U=o["thumb-label"])==null?void 0:U.call(o,{modelValue:t.modelValue}))??t.modelValue.toFixed(c.value?m.value:1)])])]),[[mS,O.value&&t.focused||O.value==="always"]])]}})])}),{}}});const qLe=ei({start:{type:Number,required:!0},stop:{type:Number,required:!0},...ys()},"VSliderTrack"),s_e=Ji()({name:"VSliderTrack",props:qLe(),emits:{},setup(t,e){let{slots:o}=e;const f=yl(mue);if(!f)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:P,parsedTicks:d,rounded:l,showTicks:n,tickSize:c,trackColor:b,trackFillColor:i,trackSize:O,vertical:w,min:y,max:p,indexFromEnd:a}=f,{roundedClasses:u}=lg(l),{backgroundColorClasses:h,backgroundColorStyles:m}=ig(i),{backgroundColorClasses:v,backgroundColorStyles:_}=ig(b),S=Un(()=>`inset-${w.value?"block":"inline"}-${a.value?"end":"start"}`),A=Un(()=>w.value?"height":"width"),x=Un(()=>({[S.value]:"0%",[A.value]:"100%"})),R=Un(()=>t.stop-t.start),M=Un(()=>({[S.value]:Ma(t.start,"%"),[A.value]:Ma(R.value,"%")})),T=Un(()=>n.value?(w.value?d.value.slice().reverse():d.value).map((C,L)=>{var k;const D=C.value!==y.value&&C.value!==p.value?Ma(C.position,"%"):void 0;return Ht("div",{key:C.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":C.position>=t.start&&C.position<=t.stop,"v-slider-track__tick--first":C.value===y.value,"v-slider-track__tick--last":C.value===p.value}],style:{[S.value]:D}},[(C.label||o["tick-label"])&&Ht("div",{class:"v-slider-track__tick-label"},[((k=o["tick-label"])==null?void 0:k.call(o,{tick:C,index:L}))??C.label])])}):[]);return ka(()=>Ht("div",{class:["v-slider-track",u.value,t.class],style:[{"--v-slider-track-size":Ma(O.value),"--v-slider-tick-size":Ma(c.value)},t.style]},[Ht("div",{class:["v-slider-track__background",v.value,{"v-slider-track__background--opacity":!!P.value||!i.value}],style:{...x.value,..._.value}},null),Ht("div",{class:["v-slider-track__fill",h.value],style:{...M.value,...m.value}},null),n.value&&Ht("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":n.value==="always"}]},[T.value])])),{}}}),WLe=ei({...Tq(),...o_e(),...BM(),modelValue:{type:[Number,String],default:0}},"VSlider"),gue=Ji()({name:"VSlider",props:WLe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,start:t=>!0,end:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=ti(),{rtlClasses:d}=qg(),l=i_e(t),n=bl(t,"modelValue",void 0,A=>l.roundValue(A??l.min.value)),{min:c,max:b,mousePressed:i,roundValue:O,onSliderMousedown:w,onSliderTouchstart:y,trackContainerRef:p,position:a,hasLabels:u,readonly:h}=a_e({props:t,steps:l,onSliderStart:()=>{f("start",n.value)},onSliderEnd:A=>{let{value:x}=A;const R=O(x);n.value=R,f("end",R)},onSliderMove:A=>{let{value:x}=A;return n.value=O(x)},getActiveThumb:()=>{var A;return(A=P.value)==null?void 0:A.$el}}),{isFocused:m,focus:v,blur:_}=DM(t),S=Un(()=>a(n.value));return ka(()=>{const A=p_.filterProps(t),x=!!(t.label||o.label||o.prepend);return Ht(p_,Ii({class:["v-slider",{"v-slider--has-labels":!!o["tick-label"]||u.value,"v-slider--focused":m.value,"v-slider--pressed":i.value,"v-slider--disabled":t.disabled},d.value,t.class],style:t.style},A,{focused:m.value}),{...o,prepend:x?R=>{var M,T;return Ht(ma,null,[((M=o.label)==null?void 0:M.call(o,R))??(t.label?Ht(kq,{id:R.id.value,class:"v-slider__label",text:t.label},null):void 0),(T=o.prepend)==null?void 0:T.call(o,R)])}:void 0,default:R=>{let{id:M,messagesId:T}=R;return Ht("div",{class:"v-slider__container",onMousedown:h.value?void 0:w,onTouchstartPassive:h.value?void 0:y},[Ht("input",{id:M.value,name:t.name||M.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:n.value},null),Ht(s_e,{ref:p,start:0,stop:S.value},{"tick-label":o["tick-label"]}),Ht(Qse,{ref:P,"aria-describedby":T.value,focused:m.value,min:c.value,max:b.value,modelValue:n.value,"onUpdate:modelValue":E=>n.value=E,position:S.value,elevation:t.elevation,onFocus:v,onBlur:_,ripple:t.ripple,name:t.name},{"thumb-label":o["thumb-label"]})])}})}),{}}});function YLe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?Ht(ma,null,[Ht("span",{class:"v-combobox__unmask"},[t.substr(0,e)]),Ht("span",{class:"v-combobox__mask"},[t.substr(e,o)]),Ht("span",{class:"v-combobox__unmask"},[t.substr(e+o)])]):t}const XLe=ei({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...fue({filterKeys:["title"]}),...uue({hideNoData:!0,returnObject:!0}),...__(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ST({transition:!1})},"VCombobox"),vue=Ji()({name:"VCombobox",props:XLe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:search":t=>!0,"update:menu":t=>!0},setup(t,e){var he;let{emit:o,slots:f}=e;const{t:P}=sb(),d=ti(),l=Ai(!1),n=Ai(!0),c=Ai(!1),b=ti(),i=ti(),O=bl(t,"menu"),w=Un({get:()=>O.value,set:se=>{var ae;O.value&&!se&&((ae=b.value)!=null&&ae.ΨopenChildren)||(O.value=se)}}),y=Ai(-1);let p=!1;const a=Un(()=>{var se;return(se=d.value)==null?void 0:se.color}),u=Un(()=>w.value?t.closeText:t.openText),{items:h,transformIn:m,transformOut:v}=iue(t),{textColorClasses:_,textColorStyles:S}=Uv(a),A=bl(t,"modelValue",[],se=>m(fm(se)),se=>{const ae=v(se);return t.multiple?ae:ae[0]??null}),x=Cq(),R=Un(()=>!!(t.chips||f.chip)),M=Un(()=>R.value||!!f.selection),T=Ai(!t.multiple&&!M.value?((he=A.value[0])==null?void 0:he.title)??"":""),E=Un({get:()=>T.value,set:se=>{var ae;if(T.value=se??"",!t.multiple&&!M.value&&(A.value=[Z4(t,se)]),se&&t.multiple&&((ae=t.delimiters)!=null&&ae.length)){const ce=se.split(new RegExp(`(?:${t.delimiters.join("|")})+`));ce.length>1&&(ce.forEach(de=>{de=de.trim(),de&&q(Z4(t,de))}),T.value="")}se||(y.value=-1),n.value=!se}}),C=Un(()=>typeof t.counterValue=="function"?t.counterValue(A.value):typeof t.counterValue=="number"?t.counterValue:t.multiple?A.value.length:E.value.length);Ni(T,se=>{p?lc(()=>p=!1):l.value&&!w.value&&(w.value=!0),o("update:search",se)}),Ni(A,se=>{var ae;!t.multiple&&!M.value&&(T.value=((ae=se[0])==null?void 0:ae.title)??"")});const{filteredItems:L,getMatches:D}=due(t,h,()=>n.value?"":E.value),k=Un(()=>t.hideSelected?L.value.filter(se=>!A.value.some(ae=>ae.value===se.value)):L.value),I=Un(()=>A.value.map(se=>se.value)),z=Un(()=>{var ae;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&E.value===((ae=k.value[0])==null?void 0:ae.title))&&k.value.length>0&&!n.value&&!c.value}),$=Un(()=>t.hideNoData&&!k.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),Q=ti(),{onListScroll:j,onListKeydown:U}=cue(Q,d);function X(se){p=!0,t.openOnClear&&(w.value=!0)}function te(){$.value||(w.value=!0)}function W(se){$.value||(l.value&&(se.preventDefault(),se.stopPropagation()),w.value=!w.value)}function K(se){var de;if(OPe(se)||t.readonly||x!=null&&x.isReadonly.value)return;const ae=d.value.selectionStart,ce=A.value.length;if((y.value>-1||["Enter","ArrowDown","ArrowUp"].includes(se.key))&&se.preventDefault(),["Enter","ArrowDown"].includes(se.key)&&(w.value=!0),["Escape"].includes(se.key)&&(w.value=!1),["Enter","Escape","Tab"].includes(se.key)&&(z.value&&["Enter","Tab"].includes(se.key)&&!A.value.some(ve=>{let{value:ye}=ve;return ye===k.value[0].value})&&q(L.value[0]),n.value=!0),se.key==="ArrowDown"&&z.value&&((de=Q.value)==null||de.focus("next")),se.key==="Enter"&&E.value&&(q(Z4(t,E.value)),M.value&&(T.value="")),["Backspace","Delete"].includes(se.key)){if(!t.multiple&&M.value&&A.value.length>0&&!E.value)return q(A.value[0],!1);if(~y.value){const ve=y.value;q(A.value[y.value],!1),y.value=ve>=ce-1?ce-2:ve}else se.key==="Backspace"&&!E.value&&(y.value=ce-1)}if(t.multiple){if(se.key==="ArrowLeft"){if(y.value<0&&ae>0)return;const ve=y.value>-1?y.value-1:ce-1;A.value[ve]?y.value=ve:(y.value=-1,d.value.setSelectionRange(E.value.length,E.value.length))}if(se.key==="ArrowRight"){if(y.value<0)return;const ve=y.value+1;A.value[ve]?y.value=ve:(y.value=-1,d.value.setSelectionRange(0,0))}}}function oe(){var se;l.value&&(n.value=!0,(se=d.value)==null||se.focus())}function q(se){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!se||se.props.disabled))if(t.multiple){const ce=A.value.findIndex(ve=>t.valueComparator(ve.value,se.value)),de=ae??!~ce;if(~ce){const ve=de?[...A.value,se]:[...A.value];ve.splice(ce,1),A.value=ve}else de&&(A.value=[...A.value,se]);t.clearOnSelect&&(E.value="")}else{const ce=ae!==!1;A.value=ce?[se]:[],T.value=ce&&!M.value?se.title:"",lc(()=>{w.value=!1,n.value=!0})}}function Y(se){l.value=!0,setTimeout(()=>{c.value=!0})}function ee(se){c.value=!1}function me(se){(se==null||se===""&&!t.multiple&&!M.value)&&(A.value=[])}return Ni(l,(se,ae)=>{if(!(se||se===ae)&&(y.value=-1,w.value=!1,E.value)){if(t.multiple){q(Z4(t,E.value));return}if(!M.value)return;A.value.some(ce=>{let{title:de}=ce;return de===E.value})?T.value="":q(Z4(t,E.value))}}),Ni(w,()=>{if(!t.hideSelected&&w.value&&A.value.length){const se=k.value.findIndex(ae=>A.value.some(ce=>t.valueComparator(ce.value,ae.value)));ou&&window.requestAnimationFrame(()=>{var ae;se>=0&&((ae=i.value)==null||ae.scrollToIndex(se))})}}),Ni(()=>t.items,(se,ae)=>{w.value||l.value&&!ae.length&&se.length&&(w.value=!0)}),ka(()=>{const se=!!(!t.hideNoData||k.value.length||f["prepend-item"]||f["append-item"]||f["no-data"]),ae=A.value.length>0,ce=um.filterProps(t);return Ht(um,Ii({ref:d},ce,{modelValue:E.value,"onUpdate:modelValue":[de=>E.value=de,me],focused:l.value,"onUpdate:focused":de=>l.value=de,validationValue:A.externalValue,counterValue:C.value,dirty:ae,class:["v-combobox",{"v-combobox--active-menu":w.value,"v-combobox--chips":!!t.chips,"v-combobox--selection-slot":!!M.value,"v-combobox--selecting-index":y.value>-1,[`v-combobox--${t.multiple?"multiple":"single"}`]:!0},t.class],style:t.style,readonly:t.readonly,placeholder:ae?void 0:t.placeholder,"onClick:clear":X,"onMousedown:control":te,onKeydown:K}),{...f,default:()=>Ht(ma,null,[Ht(pS,Ii({ref:b,modelValue:w.value,"onUpdate:modelValue":de=>w.value=de,activator:"parent",contentClass:"v-combobox__content",disabled:$.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:oe},t.menuProps),{default:()=>[se&&Ht(m_,Ii({ref:Q,selected:I.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:de=>de.preventDefault(),onKeydown:U,onFocusin:Y,onFocusout:ee,onScrollPassive:j,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var de,ve,ye;return[(de=f["prepend-item"])==null?void 0:de.call(f),!k.value.length&&!t.hideNoData&&(((ve=f["no-data"])==null?void 0:ve.call(f))??Ht(zf,{title:P(t.noDataText)},null)),Ht(lue,{ref:i,renderless:!0,items:k.value},{default:_e=>{var ze;let{item:Se,index:Te,itemRef:Pe}=_e;const Ie=Ii(Se.props,{ref:Pe,key:Te,active:z.value&&Te===0?!0:void 0,onClick:()=>q(Se,null)});return((ze=f.item)==null?void 0:ze.call(f,{item:Se,index:Te,props:Ie}))??Ht(zf,Ii(Ie,{role:"option"}),{prepend:De=>{let{isSelected:He}=De;return Ht(ma,null,[t.multiple&&!t.hideSelected?Ht(IM,{key:Se.value,modelValue:He,ripple:!1,tabindex:"-1"},null):void 0,Se.props.prependAvatar&&Ht(PO,{image:Se.props.prependAvatar},null),Se.props.prependIcon&&Ht(Al,{icon:Se.props.prependIcon},null)])},title:()=>{var De,He;return n.value?Se.title:YLe(Se.title,(De=D(Se))==null?void 0:De.title,((He=E.value)==null?void 0:He.length)??0)}})}}),(ye=f["append-item"])==null?void 0:ye.call(f)]}})]}),A.value.map((de,ve)=>{function ye(Pe){Pe.stopPropagation(),Pe.preventDefault(),q(de,!1)}const _e={"onClick:close":ye,onKeydown(Pe){Pe.key!=="Enter"&&Pe.key!==" "||(Pe.preventDefault(),Pe.stopPropagation(),ye(Pe))},onMousedown(Pe){Pe.preventDefault(),Pe.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},Se=R.value?!!f.chip:!!f.selection,Te=Se?dq(R.value?f.chip({item:de,index:ve,props:_e}):f.selection({item:de,index:ve})):void 0;if(!(Se&&!Te))return Ht("div",{key:de.value,class:["v-combobox__selection",ve===y.value&&["v-combobox__selection--selected",_.value]],style:ve===y.value?S.value:{}},[R.value?f.chip?Ht(du,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:de.title}}},{default:()=>[Te]}):Ht(AD,Ii({key:"chip",closable:t.closableChips,size:"small",text:de.title,disabled:de.props.disabled},_e),null):Te??Ht("span",{class:"v-combobox__selection-text"},[de.title,t.multiple&&ve0&&f.push(P),f}function KLe(t,e,o){const f=o??Pq[e.slice(-2).toUpperCase()]??0,P=new Date(t);for(;P.getDay()!==f;)P.setDate(P.getDate()-1);return P}function JLe(t,e){const o=new Date(t),f=((Pq[e.slice(-2).toUpperCase()]??0)+6)%7;for(;o.getDay()!==f;)o.setDate(o.getDate()+1);return o}function l_e(t){return new Date(t.getFullYear(),t.getMonth(),1)}function c_e(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function eIe(t){const e=t.split("-").map(Number);return new Date(e[0],e[1]-1,e[2])}const tIe=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function u_e(t){if(t==null)return new Date;if(t instanceof Date)return t;if(typeof t=="string"){let e;if(tIe.test(t))return eIe(t);if(e=Date.parse(t),!isNaN(e))return new Date(e)}return null}const wge=new Date(2e3,0,2);function nIe(t,e){const o=e??Pq[t.slice(-2).toUpperCase()]??0;return X4(7).map(f=>{const P=new Date(wge);return P.setDate(wge.getDate()+o+f),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(P)})}function rIe(t,e,o,f){const P=u_e(t)??new Date,d=f==null?void 0:f[e];if(typeof d=="function")return d(P,e,o);let l={};switch(e){case"fullDate":l={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":l={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const n=P.getDate(),c=new Intl.DateTimeFormat(o,{month:"long"}).format(P);return`${n} ${c}`;case"normalDateWithWeekday":l={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":l={month:"short",day:"numeric"};break;case"year":l={year:"numeric"};break;case"month":l={month:"long"};break;case"monthShort":l={month:"short"};break;case"monthAndYear":l={month:"long",year:"numeric"};break;case"monthAndDate":l={month:"long",day:"numeric"};break;case"weekday":l={weekday:"long"};break;case"weekdayShort":l={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(o).format(P.getDate());case"hours12h":l={hour:"numeric",hour12:!0};break;case"hours24h":l={hour:"numeric",hour12:!1};break;case"minutes":l={minute:"numeric"};break;case"seconds":l={second:"numeric"};break;case"fullTime":l={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":l={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":l={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":l={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":l={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":l={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":l={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":l={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":l={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":l={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:l=d??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(o,l).format(P)}function oIe(t,e){const o=t.toJsDate(e),f=o.getFullYear(),P=Eme(String(o.getMonth()+1),2,"0"),d=Eme(String(o.getDate()),2,"0");return`${f}-${P}-${d}`}function iIe(t){const[e,o,f]=t.split("-").map(Number);return new Date(e,o-1,f)}function aIe(t,e){const o=new Date(t);return o.setMinutes(o.getMinutes()+e),o}function sIe(t,e){const o=new Date(t);return o.setHours(o.getHours()+e),o}function lIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e),o}function cIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e*7),o}function uIe(t,e){const o=new Date(t);return o.setDate(1),o.setMonth(o.getMonth()+e),o}function fIe(t){return t.getFullYear()}function dIe(t){return t.getMonth()}function hIe(t){return t.getDate()}function pIe(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function mIe(t){return new Date(t.getFullYear(),t.getMonth()-1,1)}function gIe(t){return t.getHours()}function vIe(t){return t.getMinutes()}function yIe(t){return new Date(t.getFullYear(),0,1)}function bIe(t){return new Date(t.getFullYear(),11,31)}function xIe(t,e){return yZ(t,e[0])&&OIe(t,e[1])}function _Ie(t){const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function yZ(t,e){return t.getTime()>e.getTime()}function wIe(t,e){return yZ(Hse(t),Hse(e))}function OIe(t,e){return t.getTime(){o.locale=t.locale[f]??f??o.locale}),o}const FIe=ei({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),f_e=Symbol.for("vuetify:datatable:expanded");function NIe(t){const e=Oi(t,"expandOnClick"),o=bl(t,"expanded",t.expanded,n=>new Set(n),n=>[...n.values()]);function f(n,c){const b=new Set(o.value);c?b.add(n.value):b.delete(n.value),o.value=b}function P(n){return o.value.has(n.value)}function d(n){f(n,!P(n))}const l={expand:f,expanded:o,expandOnClick:e,isExpanded:P,toggleExpand:d};return gf(f_e,l),l}function d_e(){const t=yl(f_e);if(!t)throw new Error("foo");return t}const $Ie=ei({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),h_e=Symbol.for("vuetify:data-table-group");function VIe(t){return{groupBy:bl(t,"groupBy")}}function UIe(t){const{disableSort:e,groupBy:o,sortBy:f}=t,P=ti(new Set),d=Un(()=>o.value.map(i=>({...i,order:i.order??!1})).concat(e!=null&&e.value?[]:f.value));function l(i){return P.value.has(i.id)}function n(i){const O=new Set(P.value);l(i)?O.delete(i.id):O.add(i.id),P.value=O}function c(i){function O(w){const y=[];for(const p of w.items)"type"in p&&p.type==="group"?y.push(...O(p)):y.push(p);return y}return O({type:"group",items:i,id:"dummy",key:"dummy",value:"dummy",depth:0})}const b={sortByWithGroups:d,toggleGroup:n,opened:P,groupBy:o,extractRows:c,isGroupOpen:l};return gf(h_e,b),b}function p_e(){const t=yl(h_e);if(!t)throw new Error("Missing group!");return t}function jIe(t,e){if(!t.length)return[];const o=new Map;for(const f of t){const P=yT(f.raw,e);o.has(P)||o.set(P,[]),o.get(P).push(f)}return o}function m_e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!e.length)return[];const P=jIe(t,e[0]),d=[],l=e.slice(1);return P.forEach((n,c)=>{const b=e[0],i=`${f}_${b}_${c}`;d.push({depth:o,id:i,key:b,value:c,items:l.length?m_e(n,l,o+1,i):n,type:"group"})}),d}function g_e(t,e){const o=[];for(const f of t)"type"in f&&f.type==="group"?(f.value!=null&&o.push(f),(e.has(f.id)||f.value==null)&&o.push(...g_e(f.items,e))):o.push(f);return o}function QIe(t,e,o){return{flatItems:Un(()=>{if(!e.value.length)return t.value;const P=m_e(t.value,e.value.map(d=>d.key));return g_e(P,o.value)})}}function HIe(t){let{page:e,itemsPerPage:o,sortBy:f,groupBy:P,search:d}=t;const l=ph("VDataTable"),n=Un(()=>({page:e.value,itemsPerPage:o.value,sortBy:f.value,groupBy:P.value,search:d.value}));let c=null;Ni(n,()=>{bS(c,n.value)||(c&&c.search!==n.value.search&&(e.value=1),l.emit("update:options",n.value),c=n.value)},{deep:!0,immediate:!0})}const ZIe=ei({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),v_e=Symbol.for("vuetify:data-table-pagination");function qIe(t){const e=bl(t,"page",void 0,f=>+(f??1)),o=bl(t,"itemsPerPage",void 0,f=>+(f??10));return{page:e,itemsPerPage:o}}function WIe(t){const{page:e,itemsPerPage:o,itemsLength:f}=t,P=Un(()=>o.value===-1?0:o.value*(e.value-1)),d=Un(()=>o.value===-1?f.value:Math.min(f.value,P.value+o.value)),l=Un(()=>o.value===-1||f.value===0?1:Math.ceil(f.value/o.value));kp(()=>{e.value>l.value&&(e.value=l.value)});function n(w){o.value=w,e.value=1}function c(){e.value=rg(e.value+1,1,l.value)}function b(){e.value=rg(e.value-1,1,l.value)}function i(w){e.value=rg(w,1,l.value)}const O={page:e,itemsPerPage:o,startIndex:P,stopIndex:d,pageCount:l,itemsLength:f,nextPage:c,prevPage:b,setPage:i,setItemsPerPage:n};return gf(v_e,O),O}function YIe(){const t=yl(v_e);if(!t)throw new Error("Missing pagination!");return t}function XIe(t){const e=ph("usePaginatedItems"),{items:o,startIndex:f,stopIndex:P,itemsPerPage:d}=t,l=Un(()=>d.value<=0?o.value:o.value.slice(f.value,P.value));return Ni(l,n=>{e.emit("update:currentItems",n)}),{paginatedItems:l}}const GIe={showSelectAll:!1,allSelected:()=>[],select:t=>{var f;let{items:e,value:o}=t;return new Set(o?[(f=e[0])==null?void 0:f.value]:[])},selectAll:t=>{let{selected:e}=t;return e}},y_e={showSelectAll:!0,allSelected:t=>{let{currentPage:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const P of e)o?f.add(P.value):f.delete(P.value);return f},selectAll:t=>{let{value:e,currentPage:o,selected:f}=t;return y_e.select({items:o,value:e,selected:f})}},b_e={showSelectAll:!0,allSelected:t=>{let{allItems:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const P of e)o?f.add(P.value):f.delete(P.value);return f},selectAll:t=>{let{value:e,allItems:o,selected:f}=t;return b_e.select({items:o,value:e,selected:f})}},KIe=ei({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:bS}},"DataTable-select"),x_e=Symbol.for("vuetify:data-table-selection");function JIe(t,e){let{allItems:o,currentPage:f}=e;const P=bl(t,"modelValue",t.modelValue,h=>new Set(fm(h).map(m=>{var v;return((v=o.value.find(_=>t.valueComparator(m,_.value)))==null?void 0:v.value)??m})),h=>[...h.values()]),d=Un(()=>o.value.filter(h=>h.selectable)),l=Un(()=>f.value.filter(h=>h.selectable)),n=Un(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single":return GIe;case"all":return b_e;case"page":default:return y_e}});function c(h){return fm(h).every(m=>P.value.has(m.value))}function b(h){return fm(h).some(m=>P.value.has(m.value))}function i(h,m){const v=n.value.select({items:h,value:m,selected:new Set(P.value)});P.value=v}function O(h){i([h],!c([h]))}function w(h){const m=n.value.selectAll({value:h,allItems:d.value,currentPage:l.value,selected:new Set(P.value)});P.value=m}const y=Un(()=>P.value.size>0),p=Un(()=>{const h=n.value.allSelected({allItems:d.value,currentPage:l.value});return!!h.length&&c(h)}),a=Un(()=>n.value.showSelectAll),u={toggleSelect:O,select:i,selectAll:w,isSelected:c,isSomeSelected:b,someSelected:y,allSelected:p,showSelectAll:a};return gf(x_e,u),u}function Rq(){const t=yl(x_e);if(!t)throw new Error("Missing selection!");return t}const eDe=ei({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),__e=Symbol.for("vuetify:data-table-sort");function tDe(t){const e=bl(t,"sortBy"),o=Oi(t,"mustSort"),f=Oi(t,"multiSort");return{sortBy:e,mustSort:o,multiSort:f}}function nDe(t){const{sortBy:e,mustSort:o,multiSort:f,page:P}=t,d=c=>{if(c.key==null)return;let b=e.value.map(O=>({...O}))??[];const i=b.find(O=>O.key===c.key);i?i.order==="desc"?o.value?i.order="asc":b=b.filter(O=>O.key!==c.key):i.order="desc":f.value?b=[...b,{key:c.key,order:"asc"}]:b=[{key:c.key,order:"asc"}],e.value=b,P&&(P.value=1)};function l(c){return!!e.value.find(b=>b.key===c.key)}const n={sortBy:e,toggleSort:d,isSorted:l};return gf(__e,n),n}function w_e(){const t=yl(__e);if(!t)throw new Error("Missing sort!");return t}function rDe(t,e,o,f){const P=sb();return{sortedItems:Un(()=>{var l,n;return o.value.length?oDe(e.value,o.value,P.current.value,{transform:f==null?void 0:f.transform,sortFunctions:{...t.customKeySort,...(l=f==null?void 0:f.sortFunctions)==null?void 0:l.value},sortRawFunctions:(n=f==null?void 0:f.sortRawFunctions)==null?void 0:n.value}):e.value})}}function oDe(t,e,o,f){const P=new Intl.Collator(o,{sensitivity:"accent",usage:"sort"});return t.map(l=>[l,f!=null&&f.transform?f.transform(l):l]).sort((l,n)=>{var c,b;for(let i=0;im!=null?m.toString().toLocaleLowerCase():m),p!==a)return YQ(p)&&YQ(a)?0:YQ(p)?-1:YQ(a)?1:!isNaN(p)&&!isNaN(a)?Number(p)-Number(a):P.compare(p,a)}}return 0}).map(l=>{let[n]=l;return n})}function iDe(){const t=ti([]);$1e(()=>t.value=[]);function e(o,f){t.value[f]=o}return{refs:t,updateRef:e}}const aDe=ei({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:t=>t.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:t=>t%1===0},totalVisible:[Number,String],firstIcon:{type:ul,default:"$first"},prevIcon:{type:ul,default:"$prev"},nextIcon:{type:ul,default:"$next"},lastIcon:{type:ul,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...k_(),...ys(),...S1(),...Qv(),...pm(),...AT(),...hu({tag:"nav"}),...vf(),...Tx({variant:"text"})},"VPagination"),kge=Ji()({name:"VPagination",props:aDe(),emits:{"update:modelValue":t=>!0,first:t=>!0,prev:t=>!0,next:t=>!0,last:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=bl(t,"modelValue"),{t:d,n:l}=sb(),{isRtl:n}=qg(),{themeClasses:c}=ad(t),{width:b}=xS(),i=Ai(-1);ib(void 0,{scoped:!0});const{resizeRef:O}=dS(R=>{if(!R.length)return;const{target:M,contentRect:T}=R[0],E=M.querySelector(".v-pagination__list > *");if(!E)return;const C=T.width,L=E.offsetWidth+parseFloat(getComputedStyle(E).marginRight)*2;i.value=a(C,L)}),w=Un(()=>parseInt(t.length,10)),y=Un(()=>parseInt(t.start,10)),p=Un(()=>t.totalVisible!=null?parseInt(t.totalVisible,10):i.value>=0?i.value:a(b.value,58));function a(R,M){const T=t.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((R-M*T)/M).toFixed(2)))}const u=Un(()=>{if(w.value<=0||isNaN(w.value)||w.value>Number.MAX_SAFE_INTEGER)return[];if(p.value<=0)return[];if(p.value===1)return[P.value];if(w.value<=p.value)return X4(w.value,y.value);const R=p.value%2===0,M=R?p.value/2:Math.floor(p.value/2),T=R?M:M+1,E=w.value-M;if(T-P.value>=0)return[...X4(Math.max(1,p.value-1),y.value),t.ellipsis,w.value];if(P.value-E>=(R?1:0)){const C=p.value-1,L=w.value-C+y.value;return[y.value,t.ellipsis,...X4(C,L)]}else{const C=Math.max(1,p.value-3),L=C===1?P.value:P.value-Math.ceil(C/2)+y.value;return[y.value,t.ellipsis,...X4(C,L),t.ellipsis,w.value]}});function h(R,M,T){R.preventDefault(),P.value=M,T&&f(T,M)}const{refs:m,updateRef:v}=iDe();ib({VPaginationBtn:{color:Oi(t,"color"),border:Oi(t,"border"),density:Oi(t,"density"),size:Oi(t,"size"),variant:Oi(t,"variant"),rounded:Oi(t,"rounded"),elevation:Oi(t,"elevation")}});const _=Un(()=>u.value.map((R,M)=>{const T=E=>v(E,M);if(typeof R=="string")return{isActive:!1,key:`ellipsis-${M}`,page:R,props:{ref:T,ellipsis:!0,icon:!0,disabled:!0}};{const E=R===P.value;return{isActive:E,key:R,page:l(R),props:{ref:T,ellipsis:!1,icon:!0,disabled:!!t.disabled||+t.length<2,color:E?t.activeColor:t.color,"aria-current":E,"aria-label":d(E?t.currentPageAriaLabel:t.pageAriaLabel,R),onClick:C=>h(C,R)}}}})),S=Un(()=>{const R=!!t.disabled||P.value<=y.value,M=!!t.disabled||P.value>=y.value+w.value-1;return{first:t.showFirstLastPage?{icon:n.value?t.lastIcon:t.firstIcon,onClick:T=>h(T,y.value,"first"),disabled:R,"aria-label":d(t.firstAriaLabel),"aria-disabled":R}:void 0,prev:{icon:n.value?t.nextIcon:t.prevIcon,onClick:T=>h(T,P.value-1,"prev"),disabled:R,"aria-label":d(t.previousAriaLabel),"aria-disabled":R},next:{icon:n.value?t.prevIcon:t.nextIcon,onClick:T=>h(T,P.value+1,"next"),disabled:M,"aria-label":d(t.nextAriaLabel),"aria-disabled":M},last:t.showFirstLastPage?{icon:n.value?t.firstIcon:t.lastIcon,onClick:T=>h(T,y.value+w.value-1,"last"),disabled:M,"aria-label":d(t.lastAriaLabel),"aria-disabled":M}:void 0}});function A(){var M;const R=P.value-y.value;(M=m.value[R])==null||M.$el.focus()}function x(R){R.key===Ese.left&&!t.disabled&&P.value>+t.start?(P.value=P.value-1,lc(A)):R.key===Ese.right&&!t.disabled&&P.valueHt(t.tag,{ref:O,class:["v-pagination",c.value,t.class],style:t.style,role:"navigation","aria-label":d(t.ariaLabel),onKeydown:x,"data-test":"v-pagination-root"},{default:()=>[Ht("ul",{class:"v-pagination__list"},[t.showFirstLastPage&&Ht("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[o.first?o.first(S.value.first):Ht(ls,Ii({_as:"VPaginationBtn"},S.value.first),null)]),Ht("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[o.prev?o.prev(S.value.prev):Ht(ls,Ii({_as:"VPaginationBtn"},S.value.prev),null)]),_.value.map((R,M)=>Ht("li",{key:R.key,class:["v-pagination__item",{"v-pagination__item--is-active":R.isActive}],"data-test":"v-pagination-item"},[o.item?o.item(R):Ht(ls,Ii({_as:"VPaginationBtn"},R.props),{default:()=>[R.page]})])),Ht("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[o.next?o.next(S.value.next):Ht(ls,Ii({_as:"VPaginationBtn"},S.value.next),null)]),t.showFirstLastPage&&Ht("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[o.last?o.last(S.value.last):Ht(ls,Ii({_as:"VPaginationBtn"},S.value.last),null)])])]})),{}}}),O_e=ei({prevIcon:{type:ul,default:"$prev"},nextIcon:{type:ul,default:"$next"},firstIcon:{type:ul,default:"$first"},lastIcon:{type:ul,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Tge=Ji()({name:"VDataTableFooter",props:O_e(),setup(t,e){let{slots:o}=e;const{t:f}=sb(),{page:P,pageCount:d,startIndex:l,stopIndex:n,itemsLength:c,itemsPerPage:b,setItemsPerPage:i}=YIe(),O=Un(()=>t.itemsPerPageOptions.map(w=>typeof w=="number"?{value:w,title:w===-1?f("$vuetify.dataFooter.itemsPerPageAll"):String(w)}:{...w,title:isNaN(Number(w.title))?f(w.title):w.title}));return ka(()=>{var y;const w=kge.filterProps(t);return Ht("div",{class:"v-data-table-footer"},[(y=o.prepend)==null?void 0:y.call(o),Ht("div",{class:"v-data-table-footer__items-per-page"},[Ht("span",null,[f(t.itemsPerPageText)]),Ht(ED,{items:O.value,modelValue:b.value,"onUpdate:modelValue":p=>i(Number(p)),density:"compact",variant:"outlined","hide-details":!0},null)]),Ht("div",{class:"v-data-table-footer__info"},[Ht("div",null,[f(t.pageText,c.value?l.value+1:0,n.value,c.value)])]),Ht("div",{class:"v-data-table-footer__pagination"},[Ht(kge,Ii({modelValue:P.value,"onUpdate:modelValue":p=>P.value=p,density:"comfortable","first-aria-label":t.firstPageLabel,"last-aria-label":t.lastPageLabel,length:d.value,"next-aria-label":t.nextPageLabel,"previous-aria-label":t.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":t.showCurrentPage?1:0,variant:"plain"},w),null)])])}),{}}}),bZ=o9e({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(t,e)=>{let{slots:o}=e;const f=t.tag??"td";return Ht(f,{class:["v-data-table__td",{"v-data-table-column--fixed":t.fixed,"v-data-table-column--last-fixed":t.lastFixed,"v-data-table-column--no-padding":t.noPadding,"v-data-table-column--nowrap":t.nowrap},`v-data-table-column--align-${t.align}`],style:{height:Ma(t.height),width:Ma(t.width),maxWidth:Ma(t.maxWidth),left:Ma(t.fixedOffset||null)}},{default:()=>{var P;return[(P=o.default)==null?void 0:P.call(o)]}})}),sDe=ei({headers:Array},"DataTable-header"),S_e=Symbol.for("vuetify:data-table-headers"),k_e={title:"",sortable:!1},lDe={...k_e,width:48};function cDe(){const e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(o=>({element:o,priority:0}));return{enqueue:(o,f)=>{let P=!1;for(let d=0;df){e.splice(d,0,{element:o,priority:f}),P=!0;break}P||e.push({element:o,priority:f})},size:()=>e.length,count:()=>{let o=0;if(!e.length)return 0;const f=Math.floor(e[0].priority);for(let P=0;Pe.shift()}}function Zse(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!t.children)e.push(t);else for(const o of t.children)Zse(o,e);return e}function T_e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const o of t)o.key&&e.add(o.key),o.children&&T_e(o.children,e);return e}function uDe(t){if(t.key){if(t.key==="data-table-group")return k_e;if(["data-table-expand","data-table-select"].includes(t.key))return lDe}}function yue(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.children?Math.max(e,...t.children.map(o=>yue(o,e+1))):e}function fDe(t){let e=!1;function o(d){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(d)if(l&&(d.fixed=!0),d.fixed)if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n],!0);else e?isNaN(+d.width)&&(`${d.key}`,void 0):d.lastFixed=!0,e=!0;else if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n]);else e=!1}for(let d=t.length-1;d>=0;d--)o(t[d]);function f(d){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!d)return l;if(d.children){d.fixedOffset=l;for(const n of d.children)l=f(n,l)}else d.fixed&&(d.fixedOffset=l,l+=parseFloat(d.width||"0")||0);return l}let P=0;for(const d of t)P=f(d,P)}function dDe(t,e){const o=[];let f=0;const P=cDe(t);for(;P.size()>0;){let l=P.count();const n=[];let c=1;for(;l>0;){const{element:b,priority:i}=P.dequeue(),O=e-f-yue(b);if(n.push({...b,rowspan:O??1,colspan:b.children?Zse(b).length:1}),b.children)for(const w of b.children){const y=i%1+c/Math.pow(10,f+2);P.enqueue(w,f+O+y)}c+=1,l-=1}f+=1,o.push(n)}return{columns:t.map(l=>Zse(l)).flat(),headers:o}}function C_e(t){const e=[];for(const o of t){const f={...uDe(o),...o},P=f.key??(typeof f.value=="string"?f.value:null),d=f.value??P??null,l={...f,key:P,value:d,sortable:f.sortable??(f.key!=null||!!f.sort),children:f.children?C_e(f.children):void 0};e.push(l)}return e}function hDe(t,e){const o=ti([]),f=ti([]),P=ti({}),d=ti({}),l=ti({});kp(()=>{var a,u,h;const b=(t.headers||Object.keys(t.items[0]??{}).map(m=>({key:m,title:v_(m)}))).slice(),i=T_e(b);(a=e==null?void 0:e.groupBy)!=null&&a.value.length&&!i.has("data-table-group")&&b.unshift({key:"data-table-group",title:"Group"}),(u=e==null?void 0:e.showSelect)!=null&&u.value&&!i.has("data-table-select")&&b.unshift({key:"data-table-select"}),(h=e==null?void 0:e.showExpand)!=null&&h.value&&!i.has("data-table-expand")&&b.push({key:"data-table-expand"});const O=C_e(b);fDe(O);const w=Math.max(...O.map(m=>yue(m)))+1,y=dDe(O,w);o.value=y.headers,f.value=y.columns;const p=y.headers.flat(1);for(const m of p)m.key&&(m.sortable&&(m.sort&&(P.value[m.key]=m.sort),m.sortRaw&&(d.value[m.key]=m.sortRaw)),m.filter&&(l.value[m.key]=m.filter))});const n={headers:o,columns:f,sortFunctions:P,sortRawFunctions:d,filterFunctions:l};return gf(S_e,n),n}function Lq(){const t=yl(S_e);if(!t)throw new Error("Missing headers!");return t}const A_e=ei({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:ul,default:"$sortAsc"},sortDescIcon:{type:ul,default:"$sortDesc"},headerProps:{type:Object},...CD(),...bq()},"VDataTableHeaders"),Cge=Ji()({name:"VDataTableHeaders",props:A_e(),setup(t,e){let{slots:o}=e;const{t:f}=sb(),{toggleSort:P,sortBy:d,isSorted:l}=w_e(),{someSelected:n,allSelected:c,selectAll:b,showSelectAll:i}=Rq(),{columns:O,headers:w}=Lq(),{loaderClasses:y}=TD(t);function p(R,M){if(!(!t.sticky&&!R.fixed))return{position:"sticky",left:R.fixed?Ma(R.fixedOffset):void 0,top:t.sticky?`calc(var(--v-table-header-height) * ${M})`:void 0}}function a(R){const M=d.value.find(T=>T.key===R.key);return M?M.order==="asc"?t.sortAscIcon:t.sortDescIcon:t.sortAscIcon}const{backgroundColorClasses:u,backgroundColorStyles:h}=ig(t,"color"),{displayClasses:m,mobile:v}=xS(t),_=Un(()=>({headers:w.value,columns:O.value,toggleSort:P,isSorted:l,sortBy:d.value,someSelected:n.value,allSelected:c.value,selectAll:b,getSortIcon:a})),S=Un(()=>["v-data-table__th",{"v-data-table__th--sticky":t.sticky},m.value,y.value]),A=R=>{let{column:M,x:T,y:E}=R;const C=M.key==="data-table-select"||M.key==="data-table-expand",L=Ii(t.headerProps??{},M.headerProps??{});return Ht(bZ,Ii({tag:"th",align:M.align,class:[{"v-data-table__th--sortable":M.sortable&&!t.disableSort,"v-data-table__th--sorted":l(M),"v-data-table__th--fixed":M.fixed},...S.value],style:{width:Ma(M.width),minWidth:Ma(M.minWidth),maxWidth:Ma(M.maxWidth),...p(M,E)},colspan:M.colspan,rowspan:M.rowspan,onClick:M.sortable?()=>P(M):void 0,fixed:M.fixed,nowrap:M.nowrap,lastFixed:M.lastFixed,noPadding:C},L),{default:()=>{var I;const D=`header.${M.key}`,k={column:M,selectAll:b,isSorted:l,toggleSort:P,sortBy:d.value,someSelected:n.value,allSelected:c.value,getSortIcon:a};return o[D]?o[D](k):M.key==="data-table-select"?((I=o["header.data-table-select"])==null?void 0:I.call(o,k))??(i.value&&Ht(IM,{modelValue:c.value,indeterminate:n.value&&!c.value,"onUpdate:modelValue":b},null)):Ht("div",{class:"v-data-table-header__content"},[Ht("span",null,[M.title]),M.sortable&&!t.disableSort&&Ht(Al,{key:"icon",class:"v-data-table-header__sort-icon",icon:a(M)},null),t.multiSort&&l(M)&&Ht("div",{key:"badge",class:["v-data-table-header__sort-badge",...u.value],style:h.value},[d.value.findIndex(z=>z.key===M.key)+1])])}})},x=()=>{const R=Ii(t.headerProps??{}??{}),M=Un(()=>O.value.filter(E=>(E==null?void 0:E.sortable)&&!t.disableSort)),T=Un(()=>{if(O.value.find(C=>C.key==="data-table-select")!=null)return c.value?"$checkboxOn":n.value?"$checkboxIndeterminate":"$checkboxOff"});return Ht(bZ,Ii({tag:"th",class:[...S.value],colspan:w.value.length+1},R),{default:()=>[Ht("div",{class:"v-data-table-header__content"},[Ht(ED,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:M.value,label:f("$vuetify.dataTable.sortBy"),multiple:t.multiSort,variant:"underlined","onClick:clear":()=>d.value=[],appendIcon:T.value,"onClick:append":()=>b(!c.value)},{...o,chip:E=>{var C;return Ht(AD,{onClick:(C=E.item.raw)!=null&&C.sortable?()=>P(E.item.raw):void 0,onMousedown:L=>{L.preventDefault(),L.stopPropagation()}},{default:()=>[E.item.title,Ht(Al,{class:["v-data-table__td-sort-icon",l(E.item.raw)&&"v-data-table__td-sort-icon-active"],icon:a(E.item.raw),size:"small"},null)]})}})])]})};ka(()=>v.value?Ht("tr",null,[Ht(x,null,null)]):Ht(ma,null,[o.headers?o.headers(_.value):w.value.map((R,M)=>Ht("tr",null,[R.map((T,E)=>Ht(A,{column:T,x:E,y:M},null))])),t.loading&&Ht("tr",{class:"v-data-table-progress"},[Ht("th",{colspan:O.value.length},[Ht(xq,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0},{default:o.loader})])])]))}}),pDe=ei({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),mDe=Ji()({name:"VDataTableGroupHeaderRow",props:pDe(),setup(t,e){let{slots:o}=e;const{isGroupOpen:f,toggleGroup:P,extractRows:d}=p_e(),{isSelected:l,isSomeSelected:n,select:c}=Rq(),{columns:b}=Lq(),i=Un(()=>d([t.item]));return()=>Ht("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":t.item.depth}},[b.value.map(O=>{var w,y;if(O.key==="data-table-group"){const p=f(t.item)?"$expand":"$next",a=()=>P(t.item);return((w=o["data-table-group"])==null?void 0:w.call(o,{item:t.item,count:i.value.length,props:{icon:p,onClick:a}}))??Ht(bZ,{class:"v-data-table-group-header-row__column"},{default:()=>[Ht(ls,{size:"small",variant:"text",icon:p,onClick:a},null),Ht("span",null,[t.item.value]),Ht("span",null,[Ss("("),i.value.length,Ss(")")])]})}if(O.key==="data-table-select"){const p=l(i.value),a=n(i.value)&&!p,u=h=>c(i.value,h);return((y=o["data-table-select"])==null?void 0:y.call(o,{props:{modelValue:p,indeterminate:a,"onUpdate:modelValue":u}}))??Ht("td",null,[Ht(IM,{modelValue:p,indeterminate:a,"onUpdate:modelValue":u},null)])}return Ht("td",null,null)})])}}),gDe=ei({index:Number,item:Object,cellProps:[Object,Function],onClick:og(),onContextmenu:og(),onDblclick:og(),...CD()},"VDataTableRow"),vDe=Ji()({name:"VDataTableRow",props:gDe(),setup(t,e){let{slots:o}=e;const{displayClasses:f,mobile:P}=xS(t,"v-data-table__tr"),{isSelected:d,toggleSelect:l,someSelected:n,allSelected:c,selectAll:b}=Rq(),{isExpanded:i,toggleExpand:O}=d_e(),{toggleSort:w,sortBy:y,isSorted:p}=w_e(),{columns:a}=Lq();ka(()=>Ht("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(t.onClick||t.onContextmenu||t.onDblclick)},f.value],onClick:t.onClick,onContextmenu:t.onContextmenu,onDblclick:t.onDblclick},[t.item&&a.value.map((u,h)=>{const m=t.item,v=`item.${u.key}`,_=`header.${u.key}`,S={index:t.index,item:m.raw,internalItem:m,value:yT(m.columns,u.key),column:u,isSelected:d,toggleSelect:l,isExpanded:i,toggleExpand:O},A={column:u,selectAll:b,isSorted:p,toggleSort:w,sortBy:y.value,someSelected:n.value,allSelected:c.value,getSortIcon:()=>""},x=typeof t.cellProps=="function"?t.cellProps({index:S.index,item:S.item,internalItem:S.internalItem,value:S.value,column:u}):t.cellProps,R=typeof u.cellProps=="function"?u.cellProps({index:S.index,item:S.item,internalItem:S.internalItem,value:S.value}):u.cellProps;return Ht(bZ,Ii({align:u.align,class:{"v-data-table__td--expanded-row":u.key==="data-table-expand","v-data-table__td--select-row":u.key==="data-table-select"},fixed:u.fixed,fixedOffset:u.fixedOffset,lastFixed:u.lastFixed,maxWidth:P.value?void 0:u.maxWidth,noPadding:u.key==="data-table-select"||u.key==="data-table-expand",nowrap:u.nowrap,width:P.value?void 0:u.width},x,R),{default:()=>{var T,E,C,L,D;if(o[v]&&!P.value)return(T=o[v])==null?void 0:T.call(o,S);if(u.key==="data-table-select")return((E=o["item.data-table-select"])==null?void 0:E.call(o,S))??Ht(IM,{disabled:!m.selectable,modelValue:d([m]),onClick:DH(()=>l(m),["stop"])},null);if(u.key==="data-table-expand")return((C=o["item.data-table-expand"])==null?void 0:C.call(o,S))??Ht(ls,{icon:i(m)?"$collapse":"$expand",size:"small",variant:"text",onClick:DH(()=>O(m),["stop"])},null);const M=sc(S.value);return P.value?Ht(ma,null,[Ht("div",{class:"v-data-table__td-title"},[((L=o[_])==null?void 0:L.call(o,A))??u.title]),Ht("div",{class:"v-data-table__td-value"},[((D=o[v])==null?void 0:D.call(o,S))??M])]):M}})})]))}}),M_e=ei({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...CD()},"VDataTableRows"),Age=Ji()({name:"VDataTableRows",inheritAttrs:!1,props:M_e(),setup(t,e){let{attrs:o,slots:f}=e;const{columns:P}=Lq(),{expandOnClick:d,toggleExpand:l,isExpanded:n}=d_e(),{isSelected:c,toggleSelect:b}=Rq(),{toggleGroup:i,isGroupOpen:O}=p_e(),{t:w}=sb(),{mobile:y}=xS(t);return ka(()=>{var p,a;return t.loading&&(!t.items.length||f.loading)?Ht("tr",{class:"v-data-table-rows-loading",key:"loading"},[Ht("td",{colspan:P.value.length},[((p=f.loading)==null?void 0:p.call(f))??w(t.loadingText)])]):!t.loading&&!t.items.length&&!t.hideNoData?Ht("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[Ht("td",{colspan:P.value.length},[((a=f["no-data"])==null?void 0:a.call(f))??w(t.noDataText)])]):Ht(ma,null,[t.items.map((u,h)=>{var _;if(u.type==="group"){const S={index:h,item:u,columns:P.value,isExpanded:n,toggleExpand:l,isSelected:c,toggleSelect:b,toggleGroup:i,isGroupOpen:O};return f["group-header"]?f["group-header"](S):Ht(mDe,Ii({key:`group-header_${u.id}`,item:u},Zme(o,":group-header",()=>S)),f)}const m={index:h,item:u.raw,internalItem:u,columns:P.value,isExpanded:n,toggleExpand:l,isSelected:c,toggleSelect:b},v={...m,props:Ii({key:`item_${u.key??u.index}`,onClick:d.value?()=>{l(u)}:void 0,index:h,item:u,cellProps:t.cellProps,mobile:y.value},Zme(o,":row",()=>m),typeof t.rowProps=="function"?t.rowProps({item:m.item,index:m.index,internalItem:m.internalItem}):t.rowProps)};return Ht(ma,{key:v.props.key},[f.item?f.item(v):Ht(vDe,v.props,f),n(u)&&((_=f["expanded-row"])==null?void 0:_.call(f,m))])})])}),{}}});const E_e=ei({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...ys(),...S1(),...hu(),...vf()},"VTable"),Mge=Ji()({name:"VTable",props:E_e(),setup(t,e){let{slots:o,emit:f}=e;const{themeClasses:P}=ad(t),{densityClasses:d}=kx(t);return ka(()=>Ht(t.tag,{class:["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!o.top,"v-table--has-bottom":!!o.bottom,"v-table--hover":t.hover},P.value,d.value,t.class],style:t.style},{default:()=>{var l,n,c;return[(l=o.top)==null?void 0:l.call(o),o.default?Ht("div",{class:"v-table__wrapper",style:{height:Ma(t.height)}},[Ht("table",null,[o.default()])]):(n=o.wrapper)==null?void 0:n.call(o),(c=o.bottom)==null?void 0:c.call(o)]}})),{}}}),yDe=ei({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function bDe(t,e,o,f){const P=t.returnObject?e:y1(e,t.itemValue),d=y1(e,t.itemSelectable,!0),l=f.reduce((n,c)=>(c.key!=null&&(n[c.key]=y1(e,c.value)),n),{});return{type:"item",key:t.returnObject?y1(e,t.itemValue):P,index:o,value:P,selectable:d,columns:l,raw:e}}function xDe(t,e,o){return e.map((f,P)=>bDe(t,f,P,o))}function _De(t,e){return{items:Un(()=>xDe(t,t.items,e.value))}}const wDe=ei({...M_e(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...FIe(),...$Ie(),...sDe(),...yDe(),...KIe(),...eDe(),...A_e(),...E_e()},"DataTable"),ODe=ei({...ZIe(),...wDe(),...fue(),...O_e()},"VDataTable"),Iq=Ji()({name:"VDataTable",props:ODe(),emits:{"update:modelValue":t=>!0,"update:page":t=>!0,"update:itemsPerPage":t=>!0,"update:sortBy":t=>!0,"update:options":t=>!0,"update:groupBy":t=>!0,"update:expanded":t=>!0,"update:currentItems":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{groupBy:P}=VIe(t),{sortBy:d,multiSort:l,mustSort:n}=tDe(t),{page:c,itemsPerPage:b}=qIe(t),{disableSort:i}=AM(t),{columns:O,headers:w,sortFunctions:y,sortRawFunctions:p,filterFunctions:a}=hDe(t,{groupBy:P,showSelect:Oi(t,"showSelect"),showExpand:Oi(t,"showExpand")}),{items:u}=_De(t,O),h=Oi(t,"search"),{filteredItems:m}=due(t,u,h,{transform:q=>q.columns,customKeyFilter:a}),{toggleSort:v}=nDe({sortBy:d,multiSort:l,mustSort:n,page:c}),{sortByWithGroups:_,opened:S,extractRows:A,isGroupOpen:x,toggleGroup:R}=UIe({groupBy:P,sortBy:d,disableSort:i}),{sortedItems:M}=rDe(t,m,_,{transform:q=>({...q.raw,...q.columns}),sortFunctions:y,sortRawFunctions:p}),{flatItems:T}=QIe(M,P,S),E=Un(()=>T.value.length),{startIndex:C,stopIndex:L,pageCount:D,setItemsPerPage:k}=WIe({page:c,itemsPerPage:b,itemsLength:E}),{paginatedItems:I}=XIe({items:T,startIndex:C,stopIndex:L,itemsPerPage:b}),z=Un(()=>A(I.value)),{isSelected:$,select:Q,selectAll:j,toggleSelect:U,someSelected:X,allSelected:te}=JIe(t,{allItems:u,currentPage:z}),{isExpanded:W,toggleExpand:K}=NIe(t);HIe({page:c,itemsPerPage:b,sortBy:d,groupBy:P,search:h}),ib({VDataTableRows:{hideNoData:Oi(t,"hideNoData"),noDataText:Oi(t,"noDataText"),loading:Oi(t,"loading"),loadingText:Oi(t,"loadingText")}});const oe=Un(()=>({page:c.value,itemsPerPage:b.value,sortBy:d.value,pageCount:D.value,toggleSort:v,setItemsPerPage:k,someSelected:X.value,allSelected:te.value,isSelected:$,select:Q,selectAll:j,toggleSelect:U,isExpanded:W,toggleExpand:K,isGroupOpen:x,toggleGroup:R,items:z.value.map(q=>q.raw),internalItems:z.value,groupedItems:I.value,columns:O.value,headers:w.value}));return ka(()=>{const q=Tge.filterProps(t),Y=Cge.filterProps(t),ee=Age.filterProps(t),me=Mge.filterProps(t);return Ht(Mge,Ii({class:["v-data-table",{"v-data-table--show-select":t.showSelect,"v-data-table--loading":t.loading},t.class],style:t.style},me),{top:()=>{var he;return(he=f.top)==null?void 0:he.call(f,oe.value)},default:()=>{var he,se,ae,ce,de,ve;return f.default?f.default(oe.value):Ht(ma,null,[(he=f.colgroup)==null?void 0:he.call(f,oe.value),!t.hideDefaultHeader&&Ht("thead",{key:"thead"},[Ht(Cge,Y,f)]),(se=f.thead)==null?void 0:se.call(f,oe.value),!t.hideDefaultBody&&Ht("tbody",null,[(ae=f["body.prepend"])==null?void 0:ae.call(f,oe.value),f.body?f.body(oe.value):Ht(Age,Ii(o,ee,{items:I.value}),f),(ce=f["body.append"])==null?void 0:ce.call(f,oe.value)]),(de=f.tbody)==null?void 0:de.call(f,oe.value),(ve=f.tfoot)==null?void 0:ve.call(f,oe.value)])},bottom:()=>f.bottom?f.bottom(oe.value):!t.hideDefaultFooter&&Ht(ma,null,[Ht(bM,null,null),Ht(Tge,q,{prepend:f["footer.prepend"]})])})}),{}}});const SDe=ei({fluid:{type:Boolean,default:!1},...ys(),...hu()},"VContainer"),xM=Ji()({name:"VContainer",props:SDe(),setup(t,e){let{slots:o}=e;const{rtlClasses:f}=qg();return ka(()=>Ht(t.tag,{class:["v-container",{"v-container--fluid":t.fluid},f.value,t.class],style:t.style},o)),{}}}),P_e=(()=>Aq.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),R_e=(()=>Aq.reduce((t,e)=>{const o="offset"+v_(e);return t[o]={type:[String,Number],default:null},t},{}))(),L_e=(()=>Aq.reduce((t,e)=>{const o="order"+v_(e);return t[o]={type:[String,Number],default:null},t},{}))(),Ege={col:Object.keys(P_e),offset:Object.keys(R_e),order:Object.keys(L_e)};function kDe(t,e,o){let f=t;if(!(o==null||o===!1)){if(e){const P=e.replace(t,"");f+=`-${P}`}return t==="col"&&(f="v-"+f),t==="col"&&(o===""||o===!0)||(f+=`-${o}`),f.toLowerCase()}}const TDe=["auto","start","end","center","baseline","stretch"],CDe=ei({cols:{type:[Boolean,String,Number],default:!1},...P_e,offset:{type:[String,Number],default:null},...R_e,order:{type:[String,Number],default:null},...L_e,alignSelf:{type:String,default:null,validator:t=>TDe.includes(t)},...ys(),...hu()},"VCol"),hT=Ji()({name:"VCol",props:CDe(),setup(t,e){let{slots:o}=e;const f=Un(()=>{const P=[];let d;for(d in Ege)Ege[d].forEach(n=>{const c=t[n],b=kDe(d,n,c);b&&P.push(b)});const l=P.some(n=>n.startsWith("v-col-"));return P.push({"v-col":!l||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),P});return()=>{var P;return w1(t.tag,{class:[f.value,t.class],style:t.style},(P=o.default)==null?void 0:P.call(o))}}}),bue=["start","end","center"],I_e=["space-between","space-around","space-evenly"];function xue(t,e){return Aq.reduce((o,f)=>{const P=t+v_(f);return o[P]=e(),o},{})}const ADe=[...bue,"baseline","stretch"],D_e=t=>ADe.includes(t),B_e=xue("align",()=>({type:String,default:null,validator:D_e})),MDe=[...bue,...I_e],z_e=t=>MDe.includes(t),F_e=xue("justify",()=>({type:String,default:null,validator:z_e})),EDe=[...bue,...I_e,"stretch"],N_e=t=>EDe.includes(t),$_e=xue("alignContent",()=>({type:String,default:null,validator:N_e})),Pge={align:Object.keys(B_e),justify:Object.keys(F_e),alignContent:Object.keys($_e)},PDe={align:"align",justify:"justify",alignContent:"align-content"};function RDe(t,e,o){let f=PDe[t];if(o!=null){if(e){const P=e.replace(t,"");f+=`-${P}`}return f+=`-${o}`,f.toLowerCase()}}const LDe=ei({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:D_e},...B_e,justify:{type:String,default:null,validator:z_e},...F_e,alignContent:{type:String,default:null,validator:N_e},...$_e,...ys(),...hu()},"VRow"),Dq=Ji()({name:"VRow",props:LDe(),setup(t,e){let{slots:o}=e;const f=Un(()=>{const P=[];let d;for(d in Pge)Pge[d].forEach(l=>{const n=t[l],c=RDe(d,l,n);c&&P.push(c)});return P.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),P});return()=>{var P;return w1(t.tag,{class:["v-row",f.value,t.class],style:t.style},(P=o.default)==null?void 0:P.call(o))}}}),V_e=hq("v-spacer","div","VSpacer");const tD=Symbol.for("vuetify:v-expansion-panel"),U_e=ei({...ys(),...X2e()},"VExpansionPanelText"),xZ=Ji()({name:"VExpansionPanelText",props:U_e(),setup(t,e){let{slots:o}=e;const f=yl(tD);if(!f)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:P,onAfterLeave:d}=G2e(t,f.isSelected);return ka(()=>Ht(Xce,{onAfterLeave:d},{default:()=>{var l;return[Tp(Ht("div",{class:["v-expansion-panel-text",t.class],style:t.style},[o.default&&P.value&&Ht("div",{class:"v-expansion-panel-text__wrapper"},[(l=o.default)==null?void 0:l.call(o)])]),[[mS,f.isSelected.value]])]}})),{}}}),j_e=ei({color:String,expandIcon:{type:ul,default:"$expand"},collapseIcon:{type:ul,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...ys()},"VExpansionPanelTitle"),_Z=Ji()({name:"VExpansionPanelTitle",directives:{Ripple:MT},props:j_e(),setup(t,e){let{slots:o}=e;const f=yl(tD);if(!f)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:P,backgroundColorStyles:d}=ig(t,"color"),l=Un(()=>({collapseIcon:t.collapseIcon,disabled:f.disabled.value,expanded:f.isSelected.value,expandIcon:t.expandIcon,readonly:t.readonly})),n=Un(()=>f.isSelected.value?t.collapseIcon:t.expandIcon);return ka(()=>{var c;return Tp(Ht("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":f.isSelected.value,"v-expansion-panel-title--focusable":t.focusable,"v-expansion-panel-title--static":t.static},P.value,t.class],style:[d.value,t.style],type:"button",tabindex:f.disabled.value?-1:void 0,disabled:f.disabled.value,"aria-expanded":f.isSelected.value,onClick:t.readonly?void 0:f.toggle},[Ht("span",{class:"v-expansion-panel-title__overlay"},null),(c=o.default)==null?void 0:c.call(o,l.value),!t.hideActions&&Ht(du,{defaults:{VIcon:{icon:n.value}}},{default:()=>{var b;return[Ht("span",{class:"v-expansion-panel-title__icon"},[((b=o.actions)==null?void 0:b.call(o,l.value))??Ht(Al,null,null)])]}})]),[[y_("ripple"),t.ripple]])}),{}}}),Q_e=ei({title:String,text:String,bgColor:String,...Qv(),...Jce(),...pm(),...hu(),...j_e(),...U_e()},"VExpansionPanel"),H_e=Ji()({name:"VExpansionPanel",props:Q_e(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:o}=e;const f=eue(t,tD),{backgroundColorClasses:P,backgroundColorStyles:d}=ig(t,"bgColor"),{elevationClasses:l}=lb(t),{roundedClasses:n}=lg(t),c=Un(()=>(f==null?void 0:f.disabled.value)||t.disabled),b=Un(()=>f.group.items.value.reduce((w,y,p)=>(f.group.selected.value.includes(y.id)&&w.push(p),w),[])),i=Un(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===1)}),O=Un(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===-1)});return gf(tD,f),ka(()=>{const w=!!(o.text||t.text),y=!!(o.title||t.title),p=_Z.filterProps(t),a=xZ.filterProps(t);return Ht(t.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":f.isSelected.value,"v-expansion-panel--before-active":i.value,"v-expansion-panel--after-active":O.value,"v-expansion-panel--disabled":c.value},n.value,P.value,t.class],style:[d.value,t.style]},{default:()=>[Ht("div",{class:["v-expansion-panel__shadow",...l.value]},null),Ht(du,{defaults:{VExpansionPanelTitle:{...p},VExpansionPanelText:{...a}}},{default:()=>{var u;return[y&&Ht(_Z,{key:"title"},{default:()=>[o.title?o.title():t.title]}),w&&Ht(xZ,{key:"text"},{default:()=>[o.text?o.text():t.text]}),(u=o.default)==null?void 0:u.call(o)]}})]})}),{groupItem:f}}}),IDe=["default","accordion","inset","popout"],DDe=ei({flat:Boolean,...mq(),...Vce(Q_e(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...vf(),...ys(),...hu(),variant:{type:String,default:"default",validator:t=>IDe.includes(t)}},"VExpansionPanels"),Z_e=Ji()({name:"VExpansionPanels",props:DDe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{next:f,prev:P}=gq(t,tD),{themeClasses:d}=ad(t),l=Un(()=>t.variant&&`v-expansion-panels--variant-${t.variant}`);return ib({VExpansionPanel:{bgColor:Oi(t,"bgColor"),collapseIcon:Oi(t,"collapseIcon"),color:Oi(t,"color"),eager:Oi(t,"eager"),elevation:Oi(t,"elevation"),expandIcon:Oi(t,"expandIcon"),focusable:Oi(t,"focusable"),hideActions:Oi(t,"hideActions"),readonly:Oi(t,"readonly"),ripple:Oi(t,"ripple"),rounded:Oi(t,"rounded"),static:Oi(t,"static")}}),ka(()=>Ht(t.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":t.flat,"v-expansion-panels--tile":t.tile},d.value,l.value,t.class],style:t.style},{default:()=>{var n;return[(n=o.default)==null?void 0:n.call(o,{prev:P,next:f})]}})),{next:f,prev:P}}});const BDe=ei({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...k_(),...ys(),...Qv(),...qce(),...pm(),...hu({tag:"footer"}),...vf()},"VFooter"),zDe=Ji()({name:"VFooter",props:BDe(),setup(t,e){let{slots:o}=e;const f=ti(),P=Ai(),{themeClasses:d}=ad(t),{backgroundColorClasses:l,backgroundColorStyles:n}=ig(Oi(t,"color")),{borderClasses:c}=DO(t),{elevationClasses:b}=lb(t),{roundedClasses:i}=lg(t),O=Ai(32),{resizeRef:w}=dS(p=>{p.length&&(O.value=p[0].target.clientHeight)}),y=Un(()=>t.height==="auto"?O.value:parseInt(t.height,10));return x1(()=>t.app,()=>{const p=Wce({id:t.name,order:Un(()=>parseInt(t.order,10)),position:Un(()=>"bottom"),layoutSize:y,elementSize:Un(()=>t.height==="auto"?void 0:y.value),active:Un(()=>t.app),absolute:Oi(t,"absolute")});kp(()=>{f.value=p.layoutItemStyles.value,P.value=p.layoutIsReady})}),ka(()=>Ht(t.tag,{ref:w,class:["v-footer",d.value,l.value,c.value,b.value,i.value,t.class],style:[n.value,t.app?f.value:{height:Ma(t.height)},t.style]},o)),t.app?P.value:{}}}),FDe=ei({...ys(),...pRe()},"VForm"),NDe=Ji()({name:"VForm",props:FDe(),emits:{"update:modelValue":t=>!0,submit:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=mRe(t),d=ti();function l(c){c.preventDefault(),P.reset()}function n(c){const b=c,i=P.validate();b.then=i.then.bind(i),b.catch=i.catch.bind(i),b.finally=i.finally.bind(i),f("submit",b),b.defaultPrevented||i.then(O=>{var y;let{valid:w}=O;w&&((y=d.value)==null||y.submit())}),b.preventDefault()}return ka(()=>{var c;return Ht("form",{ref:d,class:["v-form",t.class],style:t.style,novalidate:!0,onReset:l,onSubmit:n},[(c=o.default)==null?void 0:c.call(o,P)])}),T_(P,d)}});const $De=ei({scrollable:Boolean,...ys(),...O_(),...hu({tag:"main"})},"VMain"),VDe=Ji()({name:"VMain",props:$De(),setup(t,e){let{slots:o}=e;const{dimensionStyles:f}=S_(t),{mainStyles:P,layoutIsReady:d}=qxe(),{ssrBootStyles:l}=pq();return ka(()=>Ht(t.tag,{class:["v-main",{"v-main--scrollable":t.scrollable},t.class],style:[P.value,l.value,f.value,t.style]},{default:()=>{var n,c;return[t.scrollable?Ht("div",{class:"v-main__scroller"},[(n=o.default)==null?void 0:n.call(o)]):(c=o.default)==null?void 0:c.call(o)]}})),d}});function UDe(t){let{rootEl:e,isSticky:o,layoutItemStyles:f}=t;const P=Ai(!1),d=Ai(0),l=Un(()=>{const b=typeof P.value=="boolean"?"top":P.value;return[o.value?{top:"auto",bottom:"auto",height:void 0}:void 0,P.value?{[b]:Ma(d.value)}:{top:f.value.top}]});sg(()=>{Ni(o,b=>{b?window.addEventListener("scroll",c,{passive:!0}):window.removeEventListener("scroll",c)},{immediate:!0})}),dm(()=>{window.removeEventListener("scroll",c)});let n=0;function c(){const b=n>window.scrollY?"up":"down",i=e.value.getBoundingClientRect(),O=parseFloat(f.value.top??0),w=window.scrollY-Math.max(0,d.value-O),y=i.height+Math.max(d.value,O)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(e.value).getPropertyValue("--v-body-scroll-y"))||0;i.height0;o--){if(t[o].t===t[o-1].t)continue;const f=Rge(e),P=(t[o].d-t[o-1].d)/(t[o].t-t[o-1].t);e+=(P-f)*Math.abs(P),o===t.length-1&&(e*=.5)}return Rge(e)*1e3}function HDe(){const t={};function e(P){Array.from(P.changedTouches).forEach(d=>{(t[d.identifier]??(t[d.identifier]=new TPe(QDe))).push([P.timeStamp,d])})}function o(P){Array.from(P.changedTouches).forEach(d=>{delete t[d.identifier]})}function f(P){var b;const d=(b=t[P])==null?void 0:b.values().reverse();if(!d)throw new Error(`No samples for touch id ${P}`);const l=d[0],n=[],c=[];for(const i of d){if(l[0]-i[0]>jDe)break;n.push({t:i[0],d:i[1].clientX}),c.push({t:i[0],d:i[1].clientY})}return{x:Lge(n),y:Lge(c),get direction(){const{x:i,y:O}=this,[w,y]=[Math.abs(i),Math.abs(O)];return w>y&&i>=0?"right":w>y&&i<=0?"left":y>w&&O>=0?"down":y>w&&O<=0?"up":ZDe()}}}return{addMovement:e,endTouch:o,getVelocity:f}}function ZDe(){throw new Error}function qDe(t){let{el:e,isActive:o,isTemporary:f,width:P,touchless:d,position:l}=t;sg(()=>{window.addEventListener("touchstart",m,{passive:!0}),window.addEventListener("touchmove",v,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),dm(()=>{window.removeEventListener("touchstart",m),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",_)});const n=Un(()=>["left","right"].includes(l.value)),{addMovement:c,endTouch:b,getVelocity:i}=HDe();let O=!1;const w=Ai(!1),y=Ai(0),p=Ai(0);let a;function u(A,x){return(l.value==="left"?A:l.value==="right"?document.documentElement.clientWidth-A:l.value==="top"?A:l.value==="bottom"?document.documentElement.clientHeight-A:LA())-(x?P.value:0)}function h(A){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const R=l.value==="left"?(A-p.value)/P.value:l.value==="right"?(document.documentElement.clientWidth-A-p.value)/P.value:l.value==="top"?(A-p.value)/P.value:l.value==="bottom"?(document.documentElement.clientHeight-A-p.value)/P.value:LA();return x?Math.max(0,Math.min(1,R)):R}function m(A){if(d.value)return;const x=A.changedTouches[0].clientX,R=A.changedTouches[0].clientY,M=25,T=l.value==="left"?xdocument.documentElement.clientWidth-M:l.value==="top"?Rdocument.documentElement.clientHeight-M:LA(),E=o.value&&(l.value==="left"?xdocument.documentElement.clientWidth-P.value:l.value==="top"?Rdocument.documentElement.clientHeight-P.value:LA());(T||E||o.value&&f.value)&&(a=[x,R],p.value=u(n.value?x:R,o.value),y.value=h(n.value?x:R),O=p.value>-20&&p.value<80,b(A),c(A))}function v(A){const x=A.changedTouches[0].clientX,R=A.changedTouches[0].clientY;if(O){if(!A.cancelable){O=!1;return}const T=Math.abs(x-a[0]),E=Math.abs(R-a[1]);(n.value?T>E&&T>3:E>T&&E>3)?(w.value=!0,O=!1):(n.value?E:T)>3&&(O=!1)}if(!w.value)return;A.preventDefault(),c(A);const M=h(n.value?x:R,!1);y.value=Math.max(0,Math.min(1,M)),M>1?p.value=u(n.value?x:R,!0):M<0&&(p.value=u(n.value?x:R,!1))}function _(A){if(O=!1,!w.value)return;c(A),w.value=!1;const x=i(A.changedTouches[0].identifier),R=Math.abs(x.x),M=Math.abs(x.y);(n.value?R>M&&R>400:M>R&&M>3)?o.value=x.direction===({left:"right",right:"left",top:"down",bottom:"up"}[l.value]||LA()):o.value=y.value>.5}const S=Un(()=>w.value?{transform:l.value==="left"?`translateX(calc(-100% + ${y.value*P.value}px))`:l.value==="right"?`translateX(calc(100% - ${y.value*P.value}px))`:l.value==="top"?`translateY(calc(-100% + ${y.value*P.value}px))`:l.value==="bottom"?`translateY(calc(100% - ${y.value*P.value}px))`:LA(),transition:"none"}:void 0);return x1(w,()=>{var R,M;const A=((R=e.value)==null?void 0:R.style.transform)??null,x=((M=e.value)==null?void 0:M.style.transition)??null;kp(()=>{var T,E,C,L;(E=e.value)==null||E.style.setProperty("transform",((T=S.value)==null?void 0:T.transform)||"none"),(L=e.value)==null||L.style.setProperty("transition",((C=S.value)==null?void 0:C.transition)||null)}),ag(()=>{var T,E;(T=e.value)==null||T.style.setProperty("transform",A),(E=e.value)==null||E.style.setProperty("transition",x)})}),{isDragging:w,dragProgress:y,dragStyles:S}}function LA(){throw new Error}const WDe=["start","end","left","right","top","bottom"],YDe=ei({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:t=>WDe.includes(t)},sticky:Boolean,...k_(),...ys(),...q2e(),...CD({mobile:null}),...Qv(),...qce(),...pm(),...hu({tag:"nav"}),...vf()},"VNavigationDrawer"),q_e=Ji()({name:"VNavigationDrawer",props:YDe(),emits:{"update:modelValue":t=>!0,"update:rail":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const{isRtl:d}=qg(),{themeClasses:l}=ad(t),{borderClasses:n}=DO(t),{backgroundColorClasses:c,backgroundColorStyles:b}=ig(Oi(t,"color")),{elevationClasses:i}=lb(t),{displayClasses:O,mobile:w}=xS(t),{roundedClasses:y}=lg(t),p=m2e(),a=bl(t,"modelValue",null,X=>!!X),{ssrBootStyles:u}=pq(),{scopeId:h}=zM(),m=ti(),v=Ai(!1),{runOpenDelay:_,runCloseDelay:S}=W2e(t,X=>{v.value=X}),A=Un(()=>t.rail&&t.expandOnHover&&v.value?Number(t.width):Number(t.rail?t.railWidth:t.width)),x=Un(()=>Lse(t.location,d.value)),R=Un(()=>t.persistent),M=Un(()=>!t.permanent&&(w.value||t.temporary)),T=Un(()=>t.sticky&&!M.value&&x.value!=="bottom");x1(()=>t.expandOnHover&&t.rail!=null,()=>{Ni(v,X=>f("update:rail",!X))}),x1(()=>!t.disableResizeWatcher,()=>{Ni(M,X=>!t.permanent&&lc(()=>a.value=!X))}),x1(()=>!t.disableRouteWatcher&&!!p,()=>{Ni(p.currentRoute,()=>M.value&&(a.value=!1))}),Ni(()=>t.permanent,X=>{X&&(a.value=!0)}),t.modelValue==null&&!M.value&&(a.value=t.permanent||!w.value);const{isDragging:E,dragProgress:C}=qDe({el:m,isActive:a,isTemporary:M,width:A,touchless:Oi(t,"touchless"),position:x}),L=Un(()=>{const X=M.value?0:t.rail&&t.expandOnHover?Number(t.railWidth):A.value;return E.value?X*C.value:X}),D=Un(()=>["top","bottom"].includes(t.location)?0:A.value),{layoutItemStyles:k,layoutItemScrimStyles:I,layoutIsReady:z}=Wce({id:t.name,order:Un(()=>parseInt(t.order,10)),position:x,layoutSize:L,elementSize:D,active:Un(()=>a.value||E.value),disableTransitions:Un(()=>E.value),absolute:Un(()=>t.absolute||T.value&&typeof $.value!="string")}),{isStuck:$,stickyStyles:Q}=UDe({rootEl:m,isSticky:T,layoutItemStyles:k}),j=ig(Un(()=>typeof t.scrim=="string"?t.scrim:null)),U=Un(()=>({...E.value?{opacity:C.value*.2,transition:"none"}:void 0,...I.value}));return ib({VList:{bgColor:"transparent"}}),ka(()=>{const X=P.image||t.image;return Ht(ma,null,[Ht(t.tag,Ii({ref:m,onMouseenter:_,onMouseleave:S,class:["v-navigation-drawer",`v-navigation-drawer--${x.value}`,{"v-navigation-drawer--expand-on-hover":t.expandOnHover,"v-navigation-drawer--floating":t.floating,"v-navigation-drawer--is-hovering":v.value,"v-navigation-drawer--rail":t.rail,"v-navigation-drawer--temporary":M.value,"v-navigation-drawer--persistent":R.value,"v-navigation-drawer--active":a.value,"v-navigation-drawer--sticky":T.value},l.value,c.value,n.value,O.value,i.value,y.value,t.class],style:[b.value,k.value,u.value,Q.value,t.style,["top","bottom"].includes(x.value)?{height:"auto"}:{}]},h,o),{default:()=>{var te,W,K;return[X&&Ht("div",{key:"image",class:"v-navigation-drawer__img"},[P.image?Ht(du,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:t.image}}},P.image):Ht(kT,{key:"image-img",alt:"",cover:!0,height:"inherit",src:t.image},null)]),P.prepend&&Ht("div",{class:"v-navigation-drawer__prepend"},[(te=P.prepend)==null?void 0:te.call(P)]),Ht("div",{class:"v-navigation-drawer__content"},[(W=P.default)==null?void 0:W.call(P)]),P.append&&Ht("div",{class:"v-navigation-drawer__append"},[(K=P.append)==null?void 0:K.call(P)])]}}),Ht(h_,{name:"fade-transition"},{default:()=>[M.value&&(E.value||a.value)&&!!t.scrim&&Ht("div",Ii({class:["v-navigation-drawer__scrim",j.backgroundColorClasses.value],style:[U.value,j.backgroundColorStyles.value],onClick:()=>{R.value||(a.value=!1)}},h),null)]})])}),z.then(()=>({isStuck:$}))}}),XDe=ei({...Tq(),...BM(),...o_e(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),_ue=Ji()({name:"VRangeSlider",props:XDe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,end:t=>!0,start:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const P=ti(),d=ti(),l=ti(),{rtlClasses:n}=qg();function c(T){if(!P.value||!d.value)return;const E=jse(T,P.value.$el,t.direction),C=jse(T,d.value.$el,t.direction),L=Math.abs(E),D=Math.abs(C);return LT!=null&&T.length?T.map(E=>b.roundValue(E)):[0,0]),{activeThumbRef:O,hasLabels:w,max:y,min:p,mousePressed:a,onSliderMousedown:u,onSliderTouchstart:h,position:m,trackContainerRef:v,readonly:_}=a_e({props:t,steps:b,onSliderStart:()=>{f("start",i.value)},onSliderEnd:T=>{var L;let{value:E}=T;const C=O.value===((L=P.value)==null?void 0:L.$el)?[E,i.value[1]]:[i.value[0],E];!t.strict&&C[0]{var D,k,I,z;let{value:E}=T;const[C,L]=i.value;!t.strict&&C===L&&C!==p.value&&(O.value=E>C?(D=d.value)==null?void 0:D.$el:(k=P.value)==null?void 0:k.$el,(I=O.value)==null||I.focus()),O.value===((z=P.value)==null?void 0:z.$el)?i.value=[Math.min(E,L),L]:i.value=[C,Math.max(C,E)]},getActiveThumb:c}),{isFocused:S,focus:A,blur:x}=DM(t),R=Un(()=>m(i.value[0])),M=Un(()=>m(i.value[1]));return ka(()=>{const T=p_.filterProps(t),E=!!(t.label||o.label||o.prepend);return Ht(p_,Ii({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!o["tick-label"]||w.value,"v-slider--focused":S.value,"v-slider--pressed":a.value,"v-slider--disabled":t.disabled},n.value,t.class],style:t.style,ref:l},T,{focused:S.value}),{...o,prepend:E?C=>{var L,D;return Ht(ma,null,[((L=o.label)==null?void 0:L.call(o,C))??(t.label?Ht(kq,{class:"v-slider__label",text:t.label},null):void 0),(D=o.prepend)==null?void 0:D.call(o,C)])}:void 0,default:C=>{var k,I;let{id:L,messagesId:D}=C;return Ht("div",{class:"v-slider__container",onMousedown:_.value?void 0:u,onTouchstartPassive:_.value?void 0:h},[Ht("input",{id:`${L.value}_start`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[0]},null),Ht("input",{id:`${L.value}_stop`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[1]},null),Ht(s_e,{ref:v,start:R.value,stop:M.value},{"tick-label":o["tick-label"]}),Ht(Qse,{ref:P,"aria-describedby":D.value,focused:S&&O.value===((k=P.value)==null?void 0:k.$el),modelValue:i.value[0],"onUpdate:modelValue":z=>i.value=[z,i.value[1]],onFocus:z=>{var $,Q,j,U;A(),O.value=($=P.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[1]===p.value&&z.relatedTarget!==((Q=d.value)==null?void 0:Q.$el)&&((j=P.value)==null||j.$el.blur(),(U=d.value)==null||U.$el.focus())},onBlur:()=>{x(),O.value=void 0},min:p.value,max:i.value[1],position:R.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]}),Ht(Qse,{ref:d,"aria-describedby":D.value,focused:S&&O.value===((I=d.value)==null?void 0:I.$el),modelValue:i.value[1],"onUpdate:modelValue":z=>i.value=[i.value[0],z],onFocus:z=>{var $,Q,j,U;A(),O.value=($=d.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[0]===y.value&&z.relatedTarget!==((Q=P.value)==null?void 0:Q.$el)&&((j=d.value)==null||j.$el.blur(),(U=P.value)==null||U.$el.focus())},onBlur:()=>{x(),O.value=void 0},min:i.value[0],max:y.value,position:M.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]})])}})}),{}}});const GDe=ei({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:ul,default:"$ratingEmpty"},fullIcon:{type:ul,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},ripple:Boolean,...ys(),...S1(),...AT(),...hu(),...vf()},"VRating"),wue=Ji()({name:"VRating",props:GDe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=sb(),{themeClasses:P}=ad(t),d=bl(t,"modelValue"),l=Un(()=>rg(parseFloat(d.value),0,+t.length)),n=Un(()=>X4(Number(t.length),1)),c=Un(()=>n.value.flatMap(a=>t.halfIncrements?[a-.5,a]:[a])),b=Ai(-1),i=Un(()=>c.value.map(a=>{const u=t.hover&&b.value>-1,h=l.value>=a,m=b.value>=a,_=(u?m:h)?t.fullIcon:t.emptyIcon,S=t.activeColor??t.color,A=h||m?S:t.color;return{isFilled:h,isHovered:m,icon:_,color:A}})),O=Un(()=>[0,...c.value].map(a=>{function u(){b.value=a}function h(){b.value=-1}function m(){t.disabled||t.readonly||(d.value=l.value===a&&t.clearable?0:a)}return{onMouseenter:t.hover?u:void 0,onMouseleave:t.hover?h:void 0,onClick:m}})),w=Un(()=>t.name??`v-rating-${O1()}`);function y(a){var R,M;let{value:u,index:h,showStar:m=!0}=a;const{onMouseenter:v,onMouseleave:_,onClick:S}=O.value[h+1],A=`${w.value}-${String(u).replace(".","-")}`,x={color:(R=i.value[h])==null?void 0:R.color,density:t.density,disabled:t.disabled,icon:(M=i.value[h])==null?void 0:M.icon,ripple:t.ripple,size:t.size,variant:"plain"};return Ht(ma,null,[Ht("label",{for:A,class:{"v-rating__item--half":t.halfIncrements&&u%1>0,"v-rating__item--full":t.halfIncrements&&u%1===0},onMouseenter:v,onMouseleave:_,onClick:S},[Ht("span",{class:"v-rating__hidden"},[f(t.itemAriaLabel,u,t.length)]),m?o.item?o.item({...i.value[h],props:x,value:u,index:h,rating:l.value}):Ht(ls,Ii({"aria-label":f(t.itemAriaLabel,u,t.length)},x),null):void 0]),Ht("input",{class:"v-rating__hidden",name:w.value,id:A,type:"radio",value:u,checked:l.value===u,tabindex:-1,readonly:t.readonly,disabled:t.disabled},null)])}function p(a){return o["item-label"]?o["item-label"](a):a.label?Ht("span",null,[a.label]):Ht("span",null,[Ss(" ")])}return ka(()=>{var u;const a=!!((u=t.itemLabels)!=null&&u.length)||o["item-label"];return Ht(t.tag,{class:["v-rating",{"v-rating--hover":t.hover,"v-rating--readonly":t.readonly},P.value,t.class],style:t.style},{default:()=>[Ht(y,{value:0,index:-1,showStar:!1},null),n.value.map((h,m)=>{var v,_;return Ht("div",{class:"v-rating__wrapper"},[a&&t.itemLabelPosition==="top"?p({value:h,index:m,label:(v=t.itemLabels)==null?void 0:v[m]}):void 0,Ht("div",{class:"v-rating__item"},[t.halfIncrements?Ht(ma,null,[Ht(y,{value:h-.5,index:m*2},null),Ht(y,{value:h,index:m*2+1},null)]):Ht(y,{value:h,index:m},null)]),a&&t.itemLabelPosition==="bottom"?p({value:h,index:m,label:(_=t.itemLabels)==null?void 0:_[m]}):void 0])})]})}),{}}});function KDe(t){const e=Ai(t());let o=-1;function f(){clearInterval(o)}function P(){f(),lc(()=>e.value=t())}function d(l){const n=l?getComputedStyle(l):{transitionDuration:.2},c=parseFloat(n.transitionDuration)*1e3||200;if(f(),e.value<=0)return;const b=performance.now();o=window.setInterval(()=>{const i=performance.now()-b+c;e.value=Math.max(t()-i,0),e.value<=0&&f()},c)}return ag(f),{clear:f,time:e,start:d,reset:P}}const JDe=ei({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...kD({location:"bottom"}),..._q(),...pm(),...Tx(),...vf(),...__(MD({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),eBe=Ji()({name:"VSnackbar",props:JDe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=bl(t,"modelValue"),{positionClasses:P}=wq(t),{scopeId:d}=zM(),{themeClasses:l}=ad(t),{colorClasses:n,colorStyles:c,variantClasses:b}=CT(t),{roundedClasses:i}=lg(t),O=KDe(()=>Number(t.timeout)),w=ti(),y=ti(),p=Ai(!1),a=Ai(0),u=ti(),h=yl(XI,void 0);x1(()=>!!h,()=>{const T=qxe();kp(()=>{u.value=T.mainStyles.value})}),Ni(f,v),Ni(()=>t.timeout,v),sg(()=>{f.value&&v()});let m=-1;function v(){O.reset(),window.clearTimeout(m);const T=Number(t.timeout);if(!f.value||T===-1)return;const E=$ce(y.value);O.start(E),m=window.setTimeout(()=>{f.value=!1},T)}function _(){O.reset(),window.clearTimeout(m)}function S(){p.value=!0,_()}function A(){p.value=!1,v()}function x(T){a.value=T.touches[0].clientY}function R(T){Math.abs(a.value-T.changedTouches[0].clientY)>50&&(f.value=!1)}const M=Un(()=>t.location.split(" ").reduce((T,E)=>(T[`v-snackbar--${E}`]=!0,T),{}));return ka(()=>{const T=hS.filterProps(t),E=!!(o.default||o.text||t.text);return Ht(hS,Ii({ref:w,class:["v-snackbar",{"v-snackbar--active":f.value,"v-snackbar--multi-line":t.multiLine&&!t.vertical,"v-snackbar--timer":!!t.timer,"v-snackbar--vertical":t.vertical},M.value,P.value,t.class],style:[u.value,t.style]},T,{modelValue:f.value,"onUpdate:modelValue":C=>f.value=C,contentProps:Ii({class:["v-snackbar__wrapper",l.value,n.value,i.value,b.value],style:[c.value],onPointerenter:S,onPointerleave:A},T.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:x,onTouchend:R},d),{default:()=>{var C,L;return[TT(!1,"v-snackbar"),t.timer&&!p.value&&Ht("div",{key:"timer",class:"v-snackbar__timer"},[Ht(p2e,{ref:y,color:typeof t.timer=="string"?t.timer:"info",max:t.timeout,"model-value":O.time.value},null)]),E&&Ht("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((C=o.text)==null?void 0:C.call(o))??t.text,(L=o.default)==null?void 0:L.call(o)]),o.actions&&Ht(du,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[Ht("div",{class:"v-snackbar__actions"},[o.actions({isActive:f})])]})]},activator:o.activator})}),T_({},w)}});const tBe=ei({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...BM(),...tue()},"VSwitch"),VA=Ji()({name:"VSwitch",inheritAttrs:!1,props:tBe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const P=bl(t,"indeterminate"),d=bl(t,"modelValue"),{loaderClasses:l}=TD(t),{isFocused:n,focus:c,blur:b}=DM(t),i=ti(),O=ou&&window.matchMedia("(forced-colors: active)").matches,w=Un(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),y=O1(),p=Un(()=>t.id||`switch-${y}`);function a(){P.value&&(P.value=!1)}function u(h){var m,v;h.stopPropagation(),h.preventDefault(),(v=(m=i.value)==null?void 0:m.input)==null||v.click()}return ka(()=>{const[h,m]=fq(o),v=p_.filterProps(t),_=gZ.filterProps(t);return Ht(p_,Ii({class:["v-switch",{"v-switch--flat":t.flat},{"v-switch--inset":t.inset},{"v-switch--indeterminate":P.value},l.value,t.class]},h,v,{modelValue:d.value,"onUpdate:modelValue":S=>d.value=S,id:p.value,focused:n.value,style:t.style}),{...f,default:S=>{let{id:A,messagesId:x,isDisabled:R,isReadonly:M,isValid:T}=S;const E={model:d,isValid:T};return Ht(gZ,Ii({ref:i},_,{modelValue:d.value,"onUpdate:modelValue":[C=>d.value=C,a],id:A.value,"aria-describedby":x.value,type:"checkbox","aria-checked":P.value?"mixed":void 0,disabled:R.value,readonly:M.value,onFocus:c,onBlur:b},m),{...f,default:C=>{let{backgroundColorClasses:L,backgroundColorStyles:D}=C;return Ht("div",{class:["v-switch__track",O?void 0:L.value],style:D.value,onClick:u},[f["track-true"]&&Ht("div",{key:"prepend",class:"v-switch__track-true"},[f["track-true"](E)]),f["track-false"]&&Ht("div",{key:"append",class:"v-switch__track-false"},[f["track-false"](E)])])},input:C=>{let{inputNode:L,icon:D,backgroundColorClasses:k,backgroundColorStyles:I}=C;return Ht(ma,null,[L,Ht("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||t.loading},t.inset||O?void 0:k.value],style:t.inset?void 0:I.value},[f.thumb?Ht(du,{defaults:{VIcon:{icon:D,size:"x-small"}}},{default:()=>[f.thumb({...E,icon:D})]}):Ht(Jxe,null,{default:()=>[t.loading?Ht(xq,{name:"v-switch",active:!0,color:T.value===!1?void 0:w.value},{default:z=>f.loader?f.loader(z):Ht(LM,{active:z.isActive,color:z.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&Ht(Al,{key:String(D),icon:D,size:"x-small"},null)]})])])}})}})}),{}}});const nBe=ei({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseFloat(t))},maxRows:{type:[Number,String],validator:t=>!isNaN(parseFloat(t))},suffix:String,modelModifiers:Object,...BM(),...aue()},"VTextarea"),RD=Ji()({name:"VTextarea",directives:{Intersect:Kce},inheritAttrs:!1,props:nBe(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:P}=e;const d=bl(t,"modelValue"),{isFocused:l,focus:n,blur:c}=DM(t),b=Un(()=>typeof t.counterValue=="function"?t.counterValue(d.value):(d.value||"").toString().length),i=Un(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter});function O(E,C){var L,D;!t.autofocus||!E||(D=(L=C[0].target)==null?void 0:L.focus)==null||D.call(L)}const w=ti(),y=ti(),p=Ai(""),a=ti(),u=Un(()=>t.persistentPlaceholder||l.value||t.active);function h(){var E;a.value!==document.activeElement&&((E=a.value)==null||E.focus()),l.value||n()}function m(E){h(),f("click:control",E)}function v(E){f("mousedown:control",E)}function _(E){E.stopPropagation(),h(),lc(()=>{d.value="",Lxe(t["onClick:clear"],E)})}function S(E){var L;const C=E.target;if(d.value=C.value,(L=t.modelModifiers)!=null&&L.trim){const D=[C.selectionStart,C.selectionEnd];lc(()=>{C.selectionStart=D[0],C.selectionEnd=D[1]})}}const A=ti(),x=ti(+t.rows),R=Un(()=>["plain","underlined"].includes(t.variant));kp(()=>{t.autoGrow||(x.value=+t.rows)});function M(){t.autoGrow&&lc(()=>{if(!A.value||!y.value)return;const E=getComputedStyle(A.value),C=getComputedStyle(y.value.$el),L=parseFloat(E.getPropertyValue("--v-field-padding-top"))+parseFloat(E.getPropertyValue("--v-input-padding-top"))+parseFloat(E.getPropertyValue("--v-field-padding-bottom")),D=A.value.scrollHeight,k=parseFloat(E.lineHeight),I=Math.max(parseFloat(t.rows)*k+L,parseFloat(C.getPropertyValue("--v-input-control-height"))),z=parseFloat(t.maxRows)*k+L||1/0,$=rg(D??0,I,z);x.value=Math.floor(($-L)/k),p.value=Ma($)})}sg(M),Ni(d,M),Ni(()=>t.rows,M),Ni(()=>t.maxRows,M),Ni(()=>t.density,M);let T;return Ni(A,E=>{E?(T=new ResizeObserver(M),T.observe(A.value)):T==null||T.disconnect()}),dm(()=>{T==null||T.disconnect()}),ka(()=>{const E=!!(P.counter||t.counter||t.counterValue),C=!!(E||P.details),[L,D]=fq(o),{modelValue:k,...I}=p_.filterProps(t),z=t_e(t);return Ht(p_,Ii({ref:w,modelValue:d.value,"onUpdate:modelValue":$=>d.value=$,class:["v-textarea v-text-field",{"v-textarea--prefixed":t.prefix,"v-textarea--suffixed":t.suffix,"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-textarea--auto-grow":t.autoGrow,"v-textarea--no-resize":t.noResize||t.autoGrow,"v-input--plain-underlined":R.value},t.class],style:t.style},L,I,{centerAffix:x.value===1&&!R.value,focused:l.value}),{...P,default:$=>{let{id:Q,isDisabled:j,isDirty:U,isReadonly:X,isValid:te}=$;return Ht(sue,Ii({ref:y,style:{"--v-textarea-control-height":p.value},onClick:m,onMousedown:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},z,{id:Q.value,active:u.value||U.value,centerAffix:x.value===1&&!R.value,dirty:U.value||t.dirty,disabled:j.value,focused:l.value,error:te.value===!1}),{...P,default:W=>{let{props:{class:K,...oe}}=W;return Ht(ma,null,[t.prefix&&Ht("span",{class:"v-text-field__prefix"},[t.prefix]),Tp(Ht("textarea",Ii({ref:a,class:K,value:d.value,onInput:S,autofocus:t.autofocus,readonly:X.value,disabled:j.value,placeholder:t.placeholder,rows:t.rows,name:t.name,onFocus:h,onBlur:c},oe,D),null),[[y_("intersect"),{handler:O},null,{once:!0}]]),t.autoGrow&&Tp(Ht("textarea",{class:[K,"v-textarea__sizer"],id:`${oe.id}-sizer`,"onUpdate:modelValue":q=>d.value=q,ref:A,readonly:!0,"aria-hidden":"true"},null),[[I5e,d.value]]),t.suffix&&Ht("span",{class:"v-text-field__suffix"},[t.suffix])])}})},details:C?$=>{var Q;return Ht(ma,null,[(Q=P.details)==null?void 0:Q.call(P,$),E&&Ht(ma,null,[Ht("span",null,null),Ht(e_e,{active:t.persistentCounter||l.value,value:b.value,max:i.value,disabled:t.disabled},P.counter)])])}:void 0})}),T_({},w,y,a)}});const rBe=ei({id:String,text:String,...__(MD({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),W_e=Ji()({name:"VTooltip",props:rBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=bl(t,"modelValue"),{scopeId:P}=zM(),d=O1(),l=Un(()=>t.id||`v-tooltip-${d}`),n=ti(),c=Un(()=>t.location.split(" ").length>1?t.location:t.location+" center"),b=Un(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),i=Un(()=>t.transition?t.transition:f.value?"scale-transition":"fade-transition"),O=Un(()=>Ii({"aria-describedby":l.value},t.activatorProps));return ka(()=>{const w=hS.filterProps(t);return Ht(hS,Ii({ref:n,class:["v-tooltip",t.class],style:t.style,id:l.value},w,{modelValue:f.value,"onUpdate:modelValue":y=>f.value=y,transition:i.value,absolute:!0,location:c.value,origin:b.value,persistent:!0,role:"tooltip",activatorProps:O.value,_disableGlobalStack:!0},P),{activator:o.activator,default:function(){var u;for(var y=arguments.length,p=new Array(y),a=0;a{const P=o.replace(/_/g,"-");return e[P]=f,e},{})},getEventBindings(t){return t.component==="v-card"?{}:{[t.triggerEvent]:()=>this.runCode(!0,t.id,t.value),keydown:e=>this.handleEnterPress(e,t.id,t.component,t.value)}},handleEnterPress(t,e,o,f){t.key==="Enter"&&(o==="v-text-field"||o==="v-textarea"||o==="v-number-input")&&this.runCode(!0,e,f)},getChildren(t){return t.map(e=>this.allComponents[e])},runCode(t,e,o){this.allComponents[e].component==="v-btn"&&(o=!0,this.allComponents[e].value=!0),this.$emit("runCode",t,e,o)}}},sBe={key:0},lBe={key:1};function cBe(t,e,o,f,P,d){const l=Zd("plotly-plot"),n=Zd("component-wrapper",!0);return Do(!0),Da(ma,null,ob(o.renderComponents,c=>(Do(),Da("div",{key:c.id},[Ht(Dq,{class:"pa-5"},{default:Oo(()=>[c.component==="plotly-plot"?(Do(),sa(l,{key:0,id:c.id,figureJson:c.figure_json},null,8,["id","figureJson"])):c.component==="zt-html"?(Do(),sa(xM,{key:1,innerHTML:c.v_html},null,8,["innerHTML"])):(Do(),sa(kI(c.component),Ii({key:2},d.componentBind(c),{modelValue:c.value,"onUpdate:modelValue":b=>c.value=b},CSe(d.getEventBindings(c))),U1e({_:2},[c.component!=="v-data-table"?{name:"default",fn:Oo(()=>[c.childComponents?(Do(),Da("div",sBe,[Ht(n,{renderComponents:d.getChildren(c.childComponents),allComponents:o.allComponents,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):c.component==="v-btn"?(Do(),Da("div",lBe,sc(c.text),1)):Za("",!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"]))]),_:2},1024)]))),128)}const Y_e=hm(aBe,[["render",cBe]]),uBe={emits:["runCode"],components:{"v-slider":gue,"v-rating":wue,"v-text-field":um,"v-textarea":RD,"v-range-slider":_ue,"v-select":ED,"v-combobox":vue,"v-btn":ls,"v-img":kT,"v-data-table":Iq,"v-autocomplete":hue,"v-card":BO,"v-text":Oue,"plotly-plot":Kle,"component-wrapper":Y_e},props:{rowData:{type:Object},columnData:{type:Object},components:{type:Object,required:!0}},methods:{runCode(t,e,o){this.$emit("runCode",t,e,o)},componentWidth(t){return t.width?t.width:!1}}},fBe={key:0},dBe={key:1},hBe={key:1},pBe={key:0},mBe={key:1};function gBe(t,e,o,f,P,d){const l=Zd("component-wrapper"),n=Zd("layout-component",!0);return Do(),Da(ma,null,[o.rowData?(Do(),sa(Dq,{key:0},{default:Oo(()=>[(Do(!0),Da(ma,null,ob(o.rowData.components,(c,b)=>(Do(),sa(hT,{key:b,cols:d.componentWidth(c)},{default:Oo(()=>[typeof c=="string"?(Do(),Da("div",fBe,[Ht(l,{renderComponents:[o.components[c]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Do(),Da("div",dBe,[Ht(n,{"column-data":c,components:o.components,onRunCode:d.runCode},null,8,["column-data","components","onRunCode"])]))]),_:2},1032,["cols"]))),128))]),_:1})):Za("",!0),o.columnData?(Do(),Da("div",hBe,[(Do(!0),Da(ma,null,ob(o.columnData.components,(c,b)=>(Do(),Da("div",{key:b},[typeof c=="string"?(Do(),Da("div",pBe,[Ht(l,{renderComponents:[o.components[c]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Do(),Da("div",mBe,[Ht(n,{"row-data":c,components:o.components,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"])]))]))),128))])):Za("",!0)],64)}const vBe=hm(uBe,[["render",gBe]]),Lv=lm({copilot_active:!1,connection_lost:!1,timers:{}}),Kh={clock:'',cubic:'',circleAdd:'',code:'',delete:'',done:'',dot:'',dropdown:' ',duplicate:'',edit:'',markdown:'',message:'',more:'',notebook:'',logo:'',monitor:'',play:'',save:'',undo:'',redo:' ',settings:'',share:'',sql:' ',status:'',stop:'',text:'',visibility:'',copilot:'GitHub Copilot'},yBe={component:t=>w1(t.tag,{...t,innerHTML:t.icon})},bBe={class:"divider"},xBe=Hg({__name:"AddCell",props:{onClick:null,cellId:String},emits:["createCodeCell"],setup(t){const e=ti([{title:"Code",cellType:"code",icon:`ztIcon:${Kh.code}`},{title:"SQL",cellType:"sql",icon:`ztIcon:${Kh.sql}`},{title:"Markdown",cellType:"markdown",icon:`ztIcon:${Kh.markdown}`},{title:"Text",cellType:"text",icon:`ztIcon:${Kh.text}`}]);return(o,f)=>(Do(),sa(pS,{transition:"scale-transition",minWidth:"0",target:"cursor"},{activator:Oo(({props:P})=>[ha("div",Ii(t.cellId?{...P,id:"addCell"+t.cellId}:P,{class:"activator-area"}),[ha("div",bBe,[Ht(bM,{class:"divider__divider-line",color:"bluegrey-darken-2"}),Ht(ls,{"prepend-icon":`ztIcon:${wa(Kh).circleAdd}`,variant:"plain",density:"compact",ripple:!1,class:"divider__btn bg-background"},{default:Oo(()=>[Ss("Add cell")]),_:1},8,["prepend-icon"])])],16)]),default:Oo(()=>[Ht(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[(Do(!0),Da(ma,null,ob(e.value,(P,d)=>(Do(),sa(zf,Ii({key:d,class:"add-cell-item"},t.cellId?{id:"addCell_"+P.title+"_"+t.cellId}:{},{onClick:l=>o.$emit("createCodeCell",P.cellType)}),{prepend:Oo(()=>[Ht(Al,{icon:P.icon},null,8,["icon"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss(sc(P.title),1)]),_:2},1024)]),_:2},1040,["onClick"]))),128))]),_:1})]),_:1}))}});const Sue=hm(xBe,[["__scopeId","data-v-c00c2563"]]);function _Be(t,e){const o=Un(()=>t.value);return{cellTypeColor:Un(()=>{if(e!=null&&e.value)return"error";switch(t.value){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),cellTypeIcon:o}}var wBe=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Y_e;const Bq=t=>Y_e=t,X_e=Symbol();function qse(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var dI;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(dI||(dI={}));function _Be(){const t=cD(!0),e=t.run(()=>ei({}));let o=[],f=[];const P=uD({install(d){Bq(P),P._a=d,d.provide(X_e,P),d.config.globalProperties.$pinia=P,f.forEach(l=>o.push(l)),f=[]},use(d){return!this._a&&!xBe?f.push(d):o.push(d),this},_p:o,_a:null,_e:t,_s:new Map,state:e});return P}const G_e=()=>{};function Lge(t,e,o,f=G_e){t.push(e);const P=()=>{const d=t.indexOf(e);d>-1&&(t.splice(d,1),f())};return!o&&u1e()&&ig(P),P}function LA(t,...e){t.slice().forEach(o=>{o(...e)})}const wBe=t=>t();function Wse(t,e){t instanceof Map&&e instanceof Map&&e.forEach((o,f)=>t.set(f,o)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const f=e[o],P=t[o];qse(P)&&qse(f)&&t.hasOwnProperty(o)&&!Dc(f)&&!OO(f)?t[o]=Wse(P,f):t[o]=f}return t}const OBe=Symbol();function SBe(t){return!qse(t)||!t.hasOwnProperty(OBe)}const{assign:$4}=Object;function kBe(t){return!!(Dc(t)&&t.effect)}function TBe(t,e,o,f){const{state:P,actions:d,getters:l}=e,n=o.state.value[t];let c;function b(){n||(o.state.value[t]=P?P():{});const i=CM(o.state.value[t]);return $4(i,d,Object.keys(l||{}).reduce((O,w)=>(O[w]=uD(jn(()=>{Bq(o);const y=o._s.get(t);return l[w].call(y,y)})),O),{}))}return c=K_e(t,b,e,o,f,!0),c}function K_e(t,e,o={},f,P,d){let l;const n=$4({actions:{}},o),c={deep:!0};let b,i,O=[],w=[],y;const p=f.state.value[t];!d&&!p&&(f.state.value[t]={}),ei({});let a;function u(R){let M;b=i=!1,typeof R=="function"?(R(f.state.value[t]),M={type:dI.patchFunction,storeId:t,events:y}):(Wse(f.state.value[t],R),M={type:dI.patchObject,payload:R,storeId:t,events:y});const T=a=Symbol();lc().then(()=>{a===T&&(b=!0)}),i=!0,LA(O,M,f.state.value[t])}const h=d?function(){const{state:M}=o,T=M?M():{};this.$patch(E=>{$4(E,T)})}:G_e;function m(){l.stop(),O=[],w=[],f._s.delete(t)}function v(R,M){return function(){Bq(f);const T=Array.from(arguments),E=[],C=[];function L(I){E.push(I)}function D(I){C.push(I)}LA(w,{args:T,name:R,store:S,after:L,onError:D});let k;try{k=M.apply(this&&this.$id===t?this:S,T)}catch(I){throw LA(C,I),I}return k instanceof Promise?k.then(I=>(LA(E,I),I)).catch(I=>(LA(C,I),Promise.reject(I))):(LA(E,k),k)}}const _={_p:f,$id:t,$onAction:Lge.bind(null,w),$patch:u,$reset:h,$subscribe(R,M={}){const T=Lge(O,R,M.detached,()=>E()),E=l.run(()=>Ni(()=>f.state.value[t],C=>{(M.flush==="sync"?i:b)&&R({storeId:t,type:dI.direct,events:y},C)},$4({},c,M)));return T},$dispose:m},S=lm(_);f._s.set(t,S);const x=(f._a&&f._a.runWithContext||wBe)(()=>f._e.run(()=>(l=cD()).run(e)));for(const R in x){const M=x[R];if(Dc(M)&&!kBe(M)||OO(M))d||(p&&SBe(M)&&(Dc(M)?M.value=p[R]:Wse(M,p[R])),f.state.value[t][R]=M);else if(typeof M=="function"){const T=v(R,M);x[R]=T,n.actions[R]=M}}return $4(S,x),$4(As(S),x),Object.defineProperty(S,"$state",{get:()=>f.state.value[t],set:R=>{u(M=>{$4(M,R)})}}),f._p.forEach(R=>{$4(S,l.run(()=>R({store:S,app:f._a,pinia:f,options:n})))}),p&&d&&o.hydrate&&o.hydrate(S.$state,p),b=!0,i=!0,S}function CBe(t,e,o){let f,P;const d=typeof e=="function";typeof t=="string"?(f=t,P=d?o:e):(P=t,f=t.id);function l(n,c){const b=DSe();return n=n||(b?vl(X_e,null):null),n&&Bq(n),n=Y_e,n._s.has(f)||(d?K_e(f,e,P,n):TBe(f,P,n)),n._s.get(f)}return l.$id=f,l}function Sue(t){{t=As(t);const e={};for(const o in t){const f=t[o];(Dc(f)||OO(f))&&(e[o]=Oi(t,o))}return e}}const LD=CBe("comments",()=>{const t=Ai(!1),e=ei([]),o=ei(),f=ei(!0);function P(a,u,h,m){var _,S;const v={cellId:u,cellName:m,cellType:h};for(const A in a){const x=[];for(const M in a[A].replies){const T=(S=(_=a[A])==null?void 0:_.replies)==null?void 0:S[M];x.push({id:M,cell:v,userName:"",date:(T==null?void 0:T.date)??"",comment:(T==null?void 0:T.comment)??"",replies:[],resolved:(T==null?void 0:T.resolved)??!1})}const R={id:A,cell:v,userName:"",date:a[A].date??"",comment:a[A].comment??"",replies:x,resolved:a[A].resolved??!1};e.value.push(R)}}const d=jn(()=>(f.value=!0,o.value?e.value.filter(u=>{var h;return u.cell.cellId===((h=o.value)==null?void 0:h.cellId)})??[]:e.value)),l=jn(()=>a=>e.value.filter(u=>u.cell.cellId===a).length);async function n(a){try{const u={cellId:a.cell.cellId??"",commentId:a.id,comment:a.comment,date:a.date};await fu.post("api/add_comment",u),e.value.push(a)}catch(u){console.error("Error adding comment:",u)}}async function c(a,u,h){try{if(h){const m=e.value.find(v=>v.id===h);if(m){const v={cellId:m.cell.cellId??"",parentCommentId:h,commentId:a};await fu.post("api/delete_reply",v),m.replies=m.replies.filter(_=>_.id!==a)}}else{const m={cellId:u,commentId:a};await fu.post("api/delete_comment",m),e.value=e.value.filter(v=>v.id!==a)}}catch(m){console.error("Error deleting comment:",m)}}async function b(a,u,h,m){try{const v=e.value.find(_=>_.id===(m??a));if(m){const _={cellId:u,parentCommentId:m,commentId:a,comment:h};await fu.post("api/edit_reply",_);const S=v==null?void 0:v.replies.find(A=>A.id===a);S&&(S.comment=h)}else{const _={cellId:u,commentId:a,comment:h};await fu.post("api/edit_comment",_),v&&(v.comment=h)}}catch(v){console.error("Error editing comment:",v)}}async function i(a,u){try{const h={cellId:u.cell.cellId??"",parentCommentId:a,commentId:u.id,comment:u.comment,date:u.date};await fu.post("api/add_reply",h);const m=e.value.find(v=>v.id===a);m==null||m.replies.push(u)}catch(h){console.error("Error replying to comment:",h)}}async function O(a,u){try{const h={cellId:u,commentId:a,resolved:!0};await fu.post("api/resolve_comment",h);const m=e.value.find(v=>v.id===a);m&&(m.resolved=!0)}catch(h){console.error("Error resolving comment:",h)}}function w(){t.value=!1,o.value=void 0}function y(){t.value=!0}function p(a){t.value=!0,o.value=a}return{showComments:t,allComments:e,selectedCell:o,editorAvailable:f,commentsByCell:l,displayedComments:d,addComment:n,editComment:b,deleteComment:c,replyComment:i,closeComments:w,resolveComment:O,showAllComments:y,showCommentsPerCell:p,loadComments:P}}),ABe={class:"content"},MBe={key:0,class:"header"},EBe={key:0,class:"click-edit"},PBe={key:0,class:"click-edit__show-text"},RBe={key:1,class:"click-edit__edit-field-wrapper"},LBe={key:1,class:"text-bluegrey-darken-1 text-ellipsis click-edit__static-name"},IBe={class:"actions"},DBe={key:1,class:"text-primary message-btn__counter"},BBe=Hg({__name:"Cell",props:{isDevMode:Boolean,cellType:{type:String,default:"code"},cellId:String,error:Boolean,hideCell:{type:Boolean,default:!1},hideCode:{type:Boolean,default:!1},expandCode:{type:Boolean,default:!1},nonReactive:{type:Boolean,default:!1},showTable:{type:Boolean,default:!1},cellName:{type:String,default:null}},emits:["delete","play","save","expandCodeUpdate","updateReactivity","updateShowTable","hideCode","addCell","renameCell"],setup(t,{emit:e}){const o=t,f=LD(),{commentsByCell:P}=Sue(f),d=jn(()=>P.value(o.cellId)),{cellTypeColor:l}=bBe(Oi(o.cellType),Oi(o.error)),n=ei(o.hideCell||!1),c=ei(o.hideCode||!1),b=ei(o.expandCode||!1),i=ei(o.nonReactive||!1),O=ei(o.showTable||!1),w=ei(o.cellName||o.cellType),y=ei(""),p=ei(null),a=ei(!1),u=jn(()=>o.cellType==="code"||o.cellType==="sql"),h=jn(()=>o.cellType==="markdown"||o.cellType==="text"),m=jn(()=>o.cellType==="code"||o.cellType==="sql"),v=jn(()=>_T().name==="/app"),_=async E=>{const C={cellId:o.cellId,hideCell:E};await fu.post("api/hide_cell",C)},S=async E=>{const C={cellId:o.cellId,hideCode:E};await fu.post("api/hide_code",C),e("hideCode",E)},A=async E=>{const C={cellId:o.cellId,expandCode:E};await fu.post("api/expand_code",C),e("expandCodeUpdate",E)},x=async E=>{const C={cellId:o.cellId,nonReactive:E};await fu.post("api/cell_reactivity",C),e("updateReactivity",E)},R=async E=>{const C={cellId:o.cellId,showTable:E};await fu.post("api/show_table",C),e("updateShowTable",E)},M=()=>{a.value=!a.value,a.value&&(y.value=w.value,lc(()=>{p.value&&p.value.focus()}))},T=async()=>{const E={cellId:o.cellId,cellName:y.value};await fu.post("api/rename_cell",E),w.value=y.value,a.value=!1,e("renameCell",w.value)};return(E,C)=>(Bo(),Da(ya,null,[t.isDevMode||!t.isDevMode&&!n.value?(Bo(),la(BO,{key:0,id:"codeCard"+t.cellId,class:zv(["cell",{"cell--dev":t.isDevMode}]),color:"bluegrey-darken-4"},{default:Oo(()=>[Zt(yM,{class:"indicator",vertical:"",color:wa(l),thickness:4},null,8,["color"]),pa("div",ABe,[t.isDevMode?(Bo(),Da("header",MBe,[m.value?(Bo(),Da("div",EBe,[a.value?Wa("",!0):(Bo(),Da("div",PBe,[pa("h4",{class:"text-bluegrey-darken-1 text-ellipsis click-edit__name",onClick:M},sc(w.value),1)])),a.value?(Bo(),Da("div",RBe,[Zt(um,{modelValue:y.value,"onUpdate:modelValue":C[0]||(C[0]=L=>y.value=L),placeholder:t.cellType,density:"compact",variant:"plain","hide-details":"",ref_key:"cellNameField",ref:p,class:"click-edit__edit-field",onKeydown:cve(T,["enter"]),"onUpdate:focused":C[1]||(C[1]=L=>{L||T()})},null,8,["modelValue","placeholder","onKeydown"])])):Wa("",!0)])):(Bo(),Da("h4",LBe,sc(w.value),1)),Zt(du,{defaults:{VIcon:{color:"bluegrey"},VBtn:{variant:"text",size:"small"}}},{default:Oo(()=>[pa("div",IBe,[h.value?(Bo(),la(ps,{key:0,icon:`ztIcon:${wa(Kh).save}`,onClick:C[2]||(C[2]=L=>E.$emit("save"))},null,8,["icon"])):Wa("",!0),u.value?(Bo(),la(ps,{key:1,id:"runCode"+t.cellId,icon:`ztIcon:${wa(Kh).play}`,onClick:C[3]||(C[3]=L=>E.$emit("play"))},null,8,["id","icon"])):Wa("",!0),Zt(ps,{class:zv(["message-btn","pa-0",{"message-btn--alert":d.value}]),onClick:C[4]||(C[4]=L=>wa(f).showCommentsPerCell({cellId:t.cellId,cellName:w.value,cellType:t.cellType})),ripple:!1,slim:"",rounded:"circle"},{default:Oo(()=>[d.value===0?(Bo(),la(Tl,{key:0,size:"x-large",icon:`ztIcon:${wa(Kh).message}`},null,8,["icon"])):(Bo(),Da("span",DBe,sc(d.value),1))]),_:1},8,["class"]),Zt(hS,{"close-on-content-click":!1},{activator:Oo(({props:L})=>[Zt(ps,Di({icon:`ztIcon:${wa(Kh).more}`,id:"cellToolbar"+t.cellId},L),null,16,["icon","id"])]),default:Oo(()=>[Zt(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[m.value?(Bo(),la(Bf,{key:0,id:"updateCellReactivity"+t.cellId},{prepend:Oo(()=>[Zt($A,{modelValue:i.value,"onUpdate:modelValue":[C[5]||(C[5]=L=>i.value=L),x]},null,8,["modelValue"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Non-Reactive")]),_:1})]),_:1},8,["id"])):Wa("",!0),Zt(Bf,{id:"hideCell"+t.cellId},{prepend:Oo(()=>[Zt($A,{modelValue:n.value,"onUpdate:modelValue":[C[6]||(C[6]=L=>n.value=L),_],id:"hideCellSwitch"+t.cellId},null,8,["modelValue","id"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Hide Cell")]),_:1})]),_:1},8,["id"]),m.value?(Bo(),la(Bf,{key:1,id:"expandCode"+t.cellId},{prepend:Oo(()=>[Zt($A,{modelValue:c.value,"onUpdate:modelValue":[C[7]||(C[7]=L=>c.value=L),S]},null,8,["modelValue"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Hide Code")]),_:1})]),_:1},8,["id"])):Wa("",!0),m.value?(Bo(),la(Bf,{key:2,id:"expandCode"+t.cellId},{prepend:Oo(()=>[Zt($A,{modelValue:b.value,"onUpdate:modelValue":[C[8]||(C[8]=L=>b.value=L),A]},null,8,["modelValue"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Expand Code")]),_:1})]),_:1},8,["id"])):Wa("",!0),t.cellType==="sql"?(Bo(),la(Bf,{key:3,id:"updateShowTable"+t.cellId},{prepend:Oo(()=>[Zt($A,{modelValue:O.value,"onUpdate:modelValue":[C[9]||(C[9]=L=>O.value=L),R]},null,8,["modelValue"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Show Table")]),_:1})]),_:1},8,["id"])):Wa("",!0),Zt(Bf,{"base-color":"error",id:"deleteCell"+t.cellId,class:"delete-cell",onClick:C[10]||(C[10]=L=>E.$emit("delete"))},{prepend:Oo(()=>[Zt(Tl,{icon:`ztIcon:${wa(Kh).delete}`},null,8,["icon"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Delete Cell")]),_:1})]),_:1},8,["id"])]),_:1})]),_:1})])]),_:1})])):Wa("",!0),t.isDevMode||!t.isDevMode&&m.value?(Bo(),Da("div",{key:1,class:zv(["code",{"code--dev":t.isDevMode}])},[Ade(E.$slots,"code",{},void 0,!0)],2)):Wa("",!0),t.isDevMode&&!v.value&&t.cellType==="text"?Wa("",!0):(Bo(),Da("div",{key:2,class:zv(["outcome",{"outcome--dev":t.isDevMode}])},[Ade(E.$slots,"outcome",{},void 0,!0)],2))]),i.value?(Bo(),la(q_e,{key:0,text:"Cell is Stale"},{activator:Oo(({props:L})=>[Zt(yM,Di(L,{class:"indicator",vertical:"",color:"warning",thickness:8}),null,16)]),_:1})):Wa("",!0)]),_:3},8,["id","class"])):Wa("",!0),t.isDevMode?(Bo(),la(Oue,{key:1,"cell-id":t.cellId,onCreateCodeCell:C[11]||(C[11]=L=>E.$emit("addCell",L))},null,8,["cell-id"])):Wa("",!0)],64))}});const zq=hm(BBe,[["__scopeId","data-v-c84bd489"]]);function zBe(t,e,o=void 0){let f=()=>{};return(...P)=>(f(),new Promise((d,l)=>{const n=setTimeout(()=>d(t(...P)),e);f=()=>{clearTimeout(n),o!==void 0&&l(o)}}))}var FBe=Object.defineProperty,NBe=(t,e,o)=>e in t?FBe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,J_e=(t,e,o)=>(NBe(t,typeof e!="symbol"?e+"":e,o),o);const kue=Ap.define({create(){return{suggestion:null}},update(t,e){const o=e.effects.find(f=>f.is(ewe));return e.state.doc&&o&&e.state.doc==o.value.doc?{suggestion:o.value.text}:{suggestion:null}}}),ewe=cl.define();function $Be(t,e){const o=t.state.selection.main.head,f=[],P=es.widget({widget:new VBe(e),side:1});return f.push(P.range(o)),es.set(f)}class VBe extends wx{constructor(e){super(),J_e(this,"suggestion"),this.suggestion=e}toDOM(){const e=document.createElement("span");return e.style.opacity="0.4",e.className="cm-inline-suggestion",e.textContent=this.suggestion,e}}const UBe=t=>Wd.fromClass(class{async update(e){const o=e.state.doc;if(!e.docChanged)return;const f=await t(e.state);e.view.dispatch({effects:ewe.of({text:f,doc:o})})}}),jBe=Wd.fromClass(class{constructor(){J_e(this,"decorations"),this.decorations=es.none}update(t){var e;const o=(e=t.state.field(kue))==null?void 0:e.suggestion;if(!o){this.decorations=es.none;return}this.decorations=$Be(t.view,o)}},{decorations:t=>t.decorations}),QBe=Nv.highest(IO.of([{key:"Tab",run:t=>{var e;const o=(e=t.state.field(kue))==null?void 0:e.suggestion;return o?(t.dispatch({...HBe(t.state,o,t.state.selection.main.head,t.state.selection.main.head)}),!0):!1}}]));function HBe(t,e,o,f){return{...t.changeByRange(P=>{if(P==t.selection.main)return{changes:{from:o,to:f,insert:e},range:Yo.cursor(o+e.length)};const d=f-o;return!P.empty||d&&t.sliceDoc(P.from-d,P.from)!=t.sliceDoc(o,f)?{range:P}:{changes:{from:P.from-d,to:P.from,insert:e},range:Yo.cursor(P.from-d+e.length)}}),userEvent:"input.complete"}}function ZBe(t){const{delay:e=500}=t,o=zBe(t.fetchFn,e);return[kue,UBe(o),jBe,QBe]}const qBe={components:{cell:zq,codemirror:sq,"v-slider":gue,"v-text-field":um,"v-textarea":RD,"v-range-slider":_ue,"v-select":ED,"v-combobox":vue,"v-btn":ps,"v-img":kT,"v-data-table":Iq,"v-autocomplete":hue,"v-card":BO,"v-text":wue,"plotly-plot":Kle,"layout-component":mBe,"component-wrapper":W_e},props:{cellData:{type:Object,required:!0},completions:{type:Object,required:!0}},inheritAttrs:!1,emits:["componentValueChange","runCode","deleteCell","createCell","saveCell","copilotCompletion","updateTimers"],data(){return{isFocused:!1,copilotSuggestion:"",copilotAccepted:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],compDict:{}}},setup(){const t=Ai(null);return{view:t,handleReady:o=>{t.value=o.view}}},computed:{isAppRoute(){return _T().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode(!1,"","")},e=IO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)},{key:"Tab",run:()=>(this.copilotSuggestion&&(this.copilotAccepted=!0),!1)}]),o=async P=>{if(Pv.copilot_active){this.copilotSuggestion&&(this.copilotAccepted?(await fu.post("copilot/accept_completion",{uuid:this.copilotSuggestion}),this.copilotAccepted=!1):await fu.post("copilot/reject_completion",{uuid:this.copilotSuggestion}),this.copilotSuggestion="");const d=P.selection.main.head,l=P.doc.lineAt(d).number,n=d-P.doc.line(l).from,c=new Promise((b,i)=>{this.$emit("copilotCompletion",this.cellData.id,l,n,O=>{b(O)})});try{const b=await c;if(b.status===200&&b.data.completions.length>0)return this.copilotSuggestion=b.data.completions[0].uuid,b.data.completions[0].displayText}catch(b){console.log("Error fetching suggestion:",b)}}return""},f=async P=>{const d=P.matchBefore(/\w*/);return{from:d?d.from:P.pos,options:this.completions.map(n=>({label:n.label,type:n.type,apply:(c,b,i,O)=>{const w=b.label;c.dispatch({changes:{from:i,to:O??P.pos,insert:w}})}}))}};return this.$devMode&&!this.isAppRoute?[Nv.highest(e),yme(),wT.of(" "),mM,ZBe({fetchFn:o,delay:400}),hM({override:[f]})]:[jl.readOnly.of(!0),Nv.highest(e),yme(),mM,hM({override:[f]})]},unplacedComponents(){var f;const t=P=>{let d=[];for(const l of P)for(const n of(l==null?void 0:l.components)??[])typeof n=="string"?d.push(n):n&&n.components&&(d=d.concat(t([n])));return d},e=P=>{let d=[],l=[];for(const n of P)this.compDict[n.id]=n,n.childComponents?d.push.apply(d,Object.values(n.childComponents)):n.component==="v-timer"&&(l.push(n),d.push(n.id));return this.$emit("updateTimers",this.cellData.id,l),d},o=t(((f=this.cellData.layout)==null?void 0:f.rows)??[]).concat(e(this.cellData.components));return this.cellData.components.filter(P=>!o.includes(P.id))},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},mounted(){this.cellData.hideCell&&this.unplacedComponents},methods:{runCode(t,e,o){!this.$devMode&&t?this.$emit("componentValueChange",this.cellData.id,e,o,this.cellData.nonReactive):this.$emit("runCode",this.cellData.id,this.cellData.nonReactive,e)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){var f,P,d,l;if(!this.$devMode||!((f=this.view)!=null&&f.hasFocus))return;const t=(P=this.view)==null?void 0:P.state.selection.main.head,e=(d=this.view)==null?void 0:d.state.doc.lineAt(t).number,o=t-((l=this.view)==null?void 0:l.state.doc.line(e).from);this.$emit("saveCell",this.cellData.id,this.cellData.code,e,o)},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const WBe={key:1},YBe={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},XBe={class:"text-ellipsis app-static-name"},GBe={key:2},KBe={class:"text-caption text-disabled text-right"},JBe=["id"],eze=["id"],tze=["id"];function nze(t,e,o,f,P,d){const l=Zd("codemirror"),n=Zd("layout-component"),c=Zd("component-wrapper"),b=Zd("cell");return Bo(),la(b,{"cell-id":o.cellData.id,"cell-type":"code","hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,"cell-name":o.cellData.cellName,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:e[4]||(e[4]=i=>d.runCode(!1,"","")),onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=i=>d.expandCodeUpdate(i)),onHideCode:e[6]||(e[6]=i=>d.hideCode(i)),onRenameCell:e[7]||(e[7]=i=>d.renameCell(i)),onUpdateReactivity:e[8]||(e[8]=i=>d.updateReactivity(i)),onAddCell:e[9]||(e[9]=i=>d.createCell(i))},{code:Oo(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Bo(),la(l,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onReady:f.handleReady,onKeyup:d.saveCell,code:o.cellData.code,id:"codeMirrorDev"+o.cellData.id},null,8,["modelValue","extensions","onReady","onKeyup","code","id"])):(Bo(),Da("div",WBe,[o.cellData.hideCode?(Bo(),Da("h4",YBe,sc(o.cellData.cellName),1)):(Bo(),la(H_e,{key:1,modelValue:P.expanded,"onUpdate:modelValue":e[3]||(e[3]=i=>P.expanded=i)},{default:Oo(()=>[Zt(Q_e,{modelValue:P.expanded,"onUpdate:modelValue":e[2]||(e[2]=i=>P.expanded=i),"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Zt(_Z,{class:"text-bluegrey-darken-1",id:"codeMirrorAppTitle"+o.cellData.id},{default:Oo(()=>[pa("h4",XBe,sc(o.cellData.cellName),1)]),_:1},8,["id"]),Zt(xZ,null,{default:Oo(()=>[Zt(l,{modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,code:o.cellData.code,id:"codeMirrorApp"+o.cellData.id},null,8,["modelValue","extensions","code","id"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Bo(),Da("div",GBe,[pa("p",KBe,sc(d.shortcutText)+" to run",1)])):Wa("",!0)]),outcome:Oo(()=>{var i,O,w;return[pa("div",{id:"outputContainer_"+o.cellData.id},[(O=(i=o.cellData.layout)==null?void 0:i.rows)!=null&&O.length?(Bo(!0),Da(ya,{key:0},ob((w=o.cellData.layout)==null?void 0:w.rows,(y,p)=>(Bo(),la(n,{key:p,"row-data":y,components:P.compDict,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"]))),128)):Wa("",!0),d.unplacedComponents.length?(Bo(),Da("div",{key:1,id:"unplacedComponents"+o.cellData.id},[Zt(c,{renderComponents:d.unplacedComponents,allComponents:P.compDict,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])],8,eze)):Wa("",!0),pa("pre",{class:"code-output",id:"cellOutput"+o.cellData.id},sc(o.cellData.output),9,tze)],8,JBe)]}),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","cell-name","is-dev-mode","onDelete"])}const twe=hm(qBe,[["render",nze],["__scopeId","data-v-3780137e"]]);function Tue(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let MT=Tue();function nwe(t){MT=t}const rwe=/[&<>"']/,rze=new RegExp(rwe.source,"g"),owe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,oze=new RegExp(owe.source,"g"),ize={"&":"&","<":"<",">":">",'"':""","'":"'"},Ige=t=>ize[t];function Lv(t,e){if(e){if(rwe.test(t))return t.replace(rze,Ige)}else if(owe.test(t))return t.replace(oze,Ige);return t}const aze=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function sze(t){return t.replace(aze,(e,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const lze=/(^|[^\[])\^/g;function ku(t,e){t=typeof t=="string"?t:t.source,e=e||"";const o={replace:(f,P)=>(P=typeof P=="object"&&"source"in P?P.source:P,P=P.replace(lze,"$1"),t=t.replace(f,P),o),getRegex:()=>new RegExp(t,e)};return o}function Dge(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const wZ={exec:()=>null};function Bge(t,e){const o=t.replace(/\|/g,(d,l,n)=>{let c=!1,b=l;for(;--b>=0&&n[b]==="\\";)c=!c;return c?"|":" |"}),f=o.split(/ \|/);let P=0;if(f[0].trim()||f.shift(),f.length>0&&!f[f.length-1].trim()&&f.pop(),e)if(f.length>e)f.splice(e);else for(;f.lengthX_e=t,G_e=Symbol();function qse(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var hI;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(hI||(hI={}));function OBe(){const t=uD(!0),e=t.run(()=>ti({}));let o=[],f=[];const P=fD({install(d){Bq(P),P._a=d,d.provide(G_e,P),d.config.globalProperties.$pinia=P,f.forEach(l=>o.push(l)),f=[]},use(d){return!this._a&&!wBe?f.push(d):o.push(d),this},_p:o,_a:null,_e:t,_s:new Map,state:e});return P}const K_e=()=>{};function Ige(t,e,o,f=K_e){t.push(e);const P=()=>{const d=t.indexOf(e);d>-1&&(t.splice(d,1),f())};return!o&&f1e()&&ag(P),P}function IA(t,...e){t.slice().forEach(o=>{o(...e)})}const SBe=t=>t();function Wse(t,e){t instanceof Map&&e instanceof Map&&e.forEach((o,f)=>t.set(f,o)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const f=e[o],P=t[o];qse(P)&&qse(f)&&t.hasOwnProperty(o)&&!Dc(f)&&!OO(f)?t[o]=Wse(P,f):t[o]=f}return t}const kBe=Symbol();function TBe(t){return!qse(t)||!t.hasOwnProperty(kBe)}const{assign:$4}=Object;function CBe(t){return!!(Dc(t)&&t.effect)}function ABe(t,e,o,f){const{state:P,actions:d,getters:l}=e,n=o.state.value[t];let c;function b(){n||(o.state.value[t]=P?P():{});const i=AM(o.state.value[t]);return $4(i,d,Object.keys(l||{}).reduce((O,w)=>(O[w]=fD(Un(()=>{Bq(o);const y=o._s.get(t);return l[w].call(y,y)})),O),{}))}return c=J_e(t,b,e,o,f,!0),c}function J_e(t,e,o={},f,P,d){let l;const n=$4({actions:{}},o),c={deep:!0};let b,i,O=[],w=[],y;const p=f.state.value[t];!d&&!p&&(f.state.value[t]={}),ti({});let a;function u(R){let M;b=i=!1,typeof R=="function"?(R(f.state.value[t]),M={type:hI.patchFunction,storeId:t,events:y}):(Wse(f.state.value[t],R),M={type:hI.patchObject,payload:R,storeId:t,events:y});const T=a=Symbol();lc().then(()=>{a===T&&(b=!0)}),i=!0,IA(O,M,f.state.value[t])}const h=d?function(){const{state:M}=o,T=M?M():{};this.$patch(E=>{$4(E,T)})}:K_e;function m(){l.stop(),O=[],w=[],f._s.delete(t)}function v(R,M){return function(){Bq(f);const T=Array.from(arguments),E=[],C=[];function L(I){E.push(I)}function D(I){C.push(I)}IA(w,{args:T,name:R,store:S,after:L,onError:D});let k;try{k=M.apply(this&&this.$id===t?this:S,T)}catch(I){throw IA(C,I),I}return k instanceof Promise?k.then(I=>(IA(E,I),I)).catch(I=>(IA(C,I),Promise.reject(I))):(IA(E,k),k)}}const _={_p:f,$id:t,$onAction:Ige.bind(null,w),$patch:u,$reset:h,$subscribe(R,M={}){const T=Ige(O,R,M.detached,()=>E()),E=l.run(()=>Ni(()=>f.state.value[t],C=>{(M.flush==="sync"?i:b)&&R({storeId:t,type:hI.direct,events:y},C)},$4({},c,M)));return T},$dispose:m},S=lm(_);f._s.set(t,S);const x=(f._a&&f._a.runWithContext||SBe)(()=>f._e.run(()=>(l=uD()).run(e)));for(const R in x){const M=x[R];if(Dc(M)&&!CBe(M)||OO(M))d||(p&&TBe(M)&&(Dc(M)?M.value=p[R]:Wse(M,p[R])),f.state.value[t][R]=M);else if(typeof M=="function"){const T=v(R,M);x[R]=T,n.actions[R]=M}}return $4(S,x),$4(As(S),x),Object.defineProperty(S,"$state",{get:()=>f.state.value[t],set:R=>{u(M=>{$4(M,R)})}}),f._p.forEach(R=>{$4(S,l.run(()=>R({store:S,app:f._a,pinia:f,options:n})))}),p&&d&&o.hydrate&&o.hydrate(S.$state,p),b=!0,i=!0,S}function MBe(t,e,o){let f,P;const d=typeof e=="function";typeof t=="string"?(f=t,P=d?o:e):(P=t,f=t.id);function l(n,c){const b=BSe();return n=n||(b?yl(G_e,null):null),n&&Bq(n),n=X_e,n._s.has(f)||(d?J_e(f,e,P,n):ABe(f,P,n)),n._s.get(f)}return l.$id=f,l}function kue(t){{t=As(t);const e={};for(const o in t){const f=t[o];(Dc(f)||OO(f))&&(e[o]=Oi(t,o))}return e}}const LD=MBe("comments",()=>{const t=Ai(!1),e=ti([]),o=ti(),f=ti(!0);function P(a,u,h,m){var _,S;const v={cellId:u,cellName:m,cellType:h};for(const A in a){const x=[];for(const M in a[A].replies){const T=(S=(_=a[A])==null?void 0:_.replies)==null?void 0:S[M];x.push({id:M,cell:v,userName:"",date:(T==null?void 0:T.date)??"",comment:(T==null?void 0:T.comment)??"",replies:[],resolved:(T==null?void 0:T.resolved)??!1})}const R={id:A,cell:v,userName:"",date:a[A].date??"",comment:a[A].comment??"",replies:x,resolved:a[A].resolved??!1};e.value.push(R)}}const d=Un(()=>(f.value=!0,o.value?e.value.filter(u=>{var h;return u.cell.cellId===((h=o.value)==null?void 0:h.cellId)})??[]:e.value)),l=Un(()=>a=>e.value.filter(u=>u.cell.cellId===a).length);async function n(a){try{const u={cellId:a.cell.cellId??"",commentId:a.id,comment:a.comment,date:a.date};await fu.post("api/add_comment",u),e.value.push(a)}catch(u){console.error("Error adding comment:",u)}}async function c(a,u,h){try{if(h){const m=e.value.find(v=>v.id===h);if(m){const v={cellId:m.cell.cellId??"",parentCommentId:h,commentId:a};await fu.post("api/delete_reply",v),m.replies=m.replies.filter(_=>_.id!==a)}}else{const m={cellId:u,commentId:a};await fu.post("api/delete_comment",m),e.value=e.value.filter(v=>v.id!==a)}}catch(m){console.error("Error deleting comment:",m)}}async function b(a,u,h,m){try{const v=e.value.find(_=>_.id===(m??a));if(m){const _={cellId:u,parentCommentId:m,commentId:a,comment:h};await fu.post("api/edit_reply",_);const S=v==null?void 0:v.replies.find(A=>A.id===a);S&&(S.comment=h)}else{const _={cellId:u,commentId:a,comment:h};await fu.post("api/edit_comment",_),v&&(v.comment=h)}}catch(v){console.error("Error editing comment:",v)}}async function i(a,u){try{const h={cellId:u.cell.cellId??"",parentCommentId:a,commentId:u.id,comment:u.comment,date:u.date};await fu.post("api/add_reply",h);const m=e.value.find(v=>v.id===a);m==null||m.replies.push(u)}catch(h){console.error("Error replying to comment:",h)}}async function O(a,u){try{const h={cellId:u,commentId:a,resolved:!0};await fu.post("api/resolve_comment",h);const m=e.value.find(v=>v.id===a);m&&(m.resolved=!0)}catch(h){console.error("Error resolving comment:",h)}}function w(){t.value=!1,o.value=void 0}function y(){t.value=!0}function p(a){t.value=!0,o.value=a}return{showComments:t,allComments:e,selectedCell:o,editorAvailable:f,commentsByCell:l,displayedComments:d,addComment:n,editComment:b,deleteComment:c,replyComment:i,closeComments:w,resolveComment:O,showAllComments:y,showCommentsPerCell:p,loadComments:P}}),EBe={class:"content"},PBe={key:0,class:"header"},RBe={key:0,class:"click-edit"},LBe={key:0,class:"click-edit__show-text"},IBe={class:"loading-wrapper"},DBe={key:1,class:"click-edit__edit-field-wrapper"},BBe={key:1,class:"text-bluegrey-darken-1 text-ellipsis click-edit__static-name"},zBe={class:"actions"},FBe={key:1,class:"text-primary message-btn__counter"},NBe=Hg({__name:"Cell",props:{isDevMode:Boolean,cellType:{type:String,default:"code"},cellId:String,error:Boolean,hideCell:{type:Boolean,default:!1},hideCode:{type:Boolean,default:!1},expandCode:{type:Boolean,default:!1},nonReactive:{type:Boolean,default:!1},showTable:{type:Boolean,default:!1},cellName:{type:String,default:null},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},emits:["delete","play","save","expandCodeUpdate","updateReactivity","updateShowTable","hideCode","addCell","renameCell"],setup(t,{emit:e}){const o=t,f=LD(),{commentsByCell:P}=kue(f),d=Un(()=>P.value(o.cellId)),{cellTypeColor:l}=_Be(Oi(o.cellType),Oi(o.error)),n=ti(o.hideCell||!1),c=ti(o.hideCode||!1),b=ti(o.expandCode||!1),i=ti(o.nonReactive||!1),O=ti(o.showTable||!1),w=ti(o.cellName||o.cellType),y=ti(""),p=ti(null),a=ti(!1),u=Un(()=>o.cellType==="code"||o.cellType==="sql"),h=Un(()=>o.cellType==="markdown"||o.cellType==="text"),m=Un(()=>o.cellType==="code"||o.cellType==="sql"),v=Un(()=>_T().name==="/app"),_=async E=>{const C={cellId:o.cellId,hideCell:E};await fu.post("api/hide_cell",C)},S=async E=>{const C={cellId:o.cellId,hideCode:E};await fu.post("api/hide_code",C),e("hideCode",E)},A=async E=>{const C={cellId:o.cellId,expandCode:E};await fu.post("api/expand_code",C),e("expandCodeUpdate",E)},x=async E=>{const C={cellId:o.cellId,nonReactive:E};await fu.post("api/cell_reactivity",C),e("updateReactivity",E)},R=async E=>{const C={cellId:o.cellId,showTable:E};await fu.post("api/show_table",C),e("updateShowTable",E)},M=()=>{a.value=!a.value,a.value&&(y.value=w.value,lc(()=>{p.value&&p.value.focus()}))},T=async()=>{const E={cellId:o.cellId,cellName:y.value};await fu.post("api/rename_cell",E),w.value=y.value,a.value=!1,e("renameCell",w.value)};return(E,C)=>(Do(),Da(ma,null,[t.isDevMode||!t.isDevMode&&!n.value?(Do(),sa(BO,{key:0,id:"codeCard"+t.cellId,class:Nv(["cell",{"cell--dev":t.isDevMode}]),color:"bluegrey-darken-4"},{default:Oo(()=>[Ht(bM,{class:"indicator",vertical:"",color:wa(l),thickness:4},null,8,["color"]),ha("div",EBe,[t.isDevMode?(Do(),Da("header",PBe,[m.value?(Do(),Da("div",RBe,[a.value?Za("",!0):(Do(),Da("div",LBe,[ha("div",IBe,[t.cellId==t.currentlyExecutingCell&&t.isCodeRunning?(Do(),sa(LM,{key:0,indeterminate:"",size:"24",class:"ml-1 mr-2 green-loader"})):Za("",!0)]),ha("h4",{class:"text-bluegrey-darken-1 text-ellipsis click-edit__name",onClick:M},sc(w.value),1)])),a.value?(Do(),Da("div",DBe,[Ht(um,{modelValue:y.value,"onUpdate:modelValue":C[0]||(C[0]=L=>y.value=L),placeholder:t.cellType,density:"compact",variant:"plain","hide-details":"",ref_key:"cellNameField",ref:p,class:"click-edit__edit-field",onKeydown:uve(T,["enter"]),"onUpdate:focused":C[1]||(C[1]=L=>{L||T()})},null,8,["modelValue","placeholder","onKeydown"])])):Za("",!0)])):(Do(),Da("h4",BBe,sc(w.value),1)),Ht(du,{defaults:{VIcon:{color:"bluegrey"},VBtn:{variant:"text",size:"small"}}},{default:Oo(()=>[ha("div",zBe,[h.value?(Do(),sa(ls,{key:0,icon:`ztIcon:${wa(Kh).save}`,onClick:C[2]||(C[2]=L=>E.$emit("save"))},null,8,["icon"])):Za("",!0),u.value?(Do(),sa(ls,{key:1,id:"runCode"+t.cellId,icon:`ztIcon:${wa(Kh).play}`,onClick:C[3]||(C[3]=L=>E.$emit("play"))},null,8,["id","icon"])):Za("",!0),Ht(ls,{class:Nv(["message-btn","pa-0",{"message-btn--alert":d.value}]),onClick:C[4]||(C[4]=L=>wa(f).showCommentsPerCell({cellId:t.cellId,cellName:w.value,cellType:t.cellType})),ripple:!1,slim:"",rounded:"circle"},{default:Oo(()=>[d.value===0?(Do(),sa(Al,{key:0,size:"x-large",icon:`ztIcon:${wa(Kh).message}`},null,8,["icon"])):(Do(),Da("span",FBe,sc(d.value),1))]),_:1},8,["class"]),Ht(pS,{"close-on-content-click":!1},{activator:Oo(({props:L})=>[Ht(ls,Ii({icon:`ztIcon:${wa(Kh).more}`,id:"cellToolbar"+t.cellId},L),null,16,["icon","id"])]),default:Oo(()=>[Ht(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[m.value?(Do(),sa(zf,{key:0,id:"updateCellReactivity"+t.cellId},{prepend:Oo(()=>[Ht(VA,{modelValue:i.value,"onUpdate:modelValue":[C[5]||(C[5]=L=>i.value=L),x]},null,8,["modelValue"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Non-Reactive")]),_:1})]),_:1},8,["id"])):Za("",!0),Ht(zf,{id:"hideCell"+t.cellId},{prepend:Oo(()=>[Ht(VA,{modelValue:n.value,"onUpdate:modelValue":[C[6]||(C[6]=L=>n.value=L),_],id:"hideCellSwitch"+t.cellId},null,8,["modelValue","id"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Hide Cell")]),_:1})]),_:1},8,["id"]),m.value?(Do(),sa(zf,{key:1,id:"expandCode"+t.cellId},{prepend:Oo(()=>[Ht(VA,{modelValue:c.value,"onUpdate:modelValue":[C[7]||(C[7]=L=>c.value=L),S]},null,8,["modelValue"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Hide Code")]),_:1})]),_:1},8,["id"])):Za("",!0),m.value?(Do(),sa(zf,{key:2,id:"expandCode"+t.cellId},{prepend:Oo(()=>[Ht(VA,{modelValue:b.value,"onUpdate:modelValue":[C[8]||(C[8]=L=>b.value=L),A]},null,8,["modelValue"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Expand Code")]),_:1})]),_:1},8,["id"])):Za("",!0),t.cellType==="sql"?(Do(),sa(zf,{key:3,id:"updateShowTable"+t.cellId},{prepend:Oo(()=>[Ht(VA,{modelValue:O.value,"onUpdate:modelValue":[C[9]||(C[9]=L=>O.value=L),R]},null,8,["modelValue"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Show Table")]),_:1})]),_:1},8,["id"])):Za("",!0),Ht(zf,{"base-color":"error",id:"deleteCell"+t.cellId,class:"delete-cell",onClick:C[10]||(C[10]=L=>E.$emit("delete"))},{prepend:Oo(()=>[Ht(Al,{icon:`ztIcon:${wa(Kh).delete}`},null,8,["icon"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Delete Cell")]),_:1})]),_:1},8,["id"])]),_:1})]),_:1})])]),_:1})])):Za("",!0),t.isDevMode||!t.isDevMode&&m.value?(Do(),Da("div",{key:1,class:Nv(["code",{"code--dev":t.isDevMode}])},[Mde(E.$slots,"code",{},void 0,!0)],2)):Za("",!0),t.isDevMode&&!v.value&&t.cellType==="text"?Za("",!0):(Do(),Da("div",{key:2,class:Nv(["outcome",{"outcome--dev":t.isDevMode}])},[Mde(E.$slots,"outcome",{},void 0,!0)],2))]),i.value?(Do(),sa(W_e,{key:0,text:"Cell is Stale"},{activator:Oo(({props:L})=>[Ht(bM,Ii(L,{class:"indicator",vertical:"",color:"warning",thickness:8}),null,16)]),_:1})):Za("",!0)]),_:3},8,["id","class"])):Za("",!0),t.isDevMode?(Do(),sa(Sue,{key:1,"cell-id":t.cellId,onCreateCodeCell:C[11]||(C[11]=L=>E.$emit("addCell",L))},null,8,["cell-id"])):Za("",!0)],64))}});const zq=hm(NBe,[["__scopeId","data-v-09a4d2b3"]]);function $Be(t,e,o=void 0){let f=()=>{};return(...P)=>(f(),new Promise((d,l)=>{const n=setTimeout(()=>d(t(...P)),e);f=()=>{clearTimeout(n),o!==void 0&&l(o)}}))}var VBe=Object.defineProperty,UBe=(t,e,o)=>e in t?VBe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,ewe=(t,e,o)=>(UBe(t,typeof e!="symbol"?e+"":e,o),o);const Tue=Ap.define({create(){return{suggestion:null}},update(t,e){const o=e.effects.find(f=>f.is(twe));return e.state.doc&&o&&e.state.doc==o.value.doc?{suggestion:o.value.text}:{suggestion:null}}}),twe=cl.define();function jBe(t,e){const o=t.state.selection.main.head,f=[],P=es.widget({widget:new QBe(e),side:1});return f.push(P.range(o)),es.set(f)}class QBe extends Ox{constructor(e){super(),ewe(this,"suggestion"),this.suggestion=e}toDOM(){const e=document.createElement("span");return e.style.opacity="0.4",e.className="cm-inline-suggestion",e.textContent=this.suggestion,e}}const HBe=t=>Wd.fromClass(class{async update(e){const o=e.state.doc;if(!e.docChanged)return;const f=await t(e.state);e.view.dispatch({effects:twe.of({text:f,doc:o})})}}),ZBe=Wd.fromClass(class{constructor(){ewe(this,"decorations"),this.decorations=es.none}update(t){var e;const o=(e=t.state.field(Tue))==null?void 0:e.suggestion;if(!o){this.decorations=es.none;return}this.decorations=jBe(t.view,o)}},{decorations:t=>t.decorations}),qBe=Vv.highest(IO.of([{key:"Tab",run:t=>{var e;const o=(e=t.state.field(Tue))==null?void 0:e.suggestion;return o?(t.dispatch({...WBe(t.state,o,t.state.selection.main.head,t.state.selection.main.head)}),!0):!1}}]));function WBe(t,e,o,f){return{...t.changeByRange(P=>{if(P==t.selection.main)return{changes:{from:o,to:f,insert:e},range:Yo.cursor(o+e.length)};const d=f-o;return!P.empty||d&&t.sliceDoc(P.from-d,P.from)!=t.sliceDoc(o,f)?{range:P}:{changes:{from:P.from-d,to:P.from,insert:e},range:Yo.cursor(P.from-d+e.length)}}),userEvent:"input.complete"}}function YBe(t){const{delay:e=500}=t,o=$Be(t.fetchFn,e);return[Tue,HBe(o),ZBe,qBe]}const XBe={components:{cell:zq,codemirror:sq,"v-slider":gue,"v-rating":wue,"v-text-field":um,"v-textarea":RD,"v-range-slider":_ue,"v-select":ED,"v-combobox":vue,"v-btn":ls,"v-img":kT,"v-data-table":Iq,"v-autocomplete":hue,"v-card":BO,"v-text":Oue,"plotly-plot":Kle,"layout-component":vBe,"component-wrapper":Y_e},props:{cellData:{type:Object,required:!0},completions:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},inheritAttrs:!1,emits:["componentValueChange","runCode","deleteCell","createCell","saveCell","copilotCompletion","updateTimers"],data(){return{isFocused:!1,copilotSuggestion:"",copilotAccepted:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],compDict:{}}},setup(){const t=Ai(null);return{view:t,handleReady:o=>{t.value=o.view}}},computed:{isAppRoute(){return _T().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode(!1,"","")},e=IO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)},{key:"Tab",run:()=>(this.copilotSuggestion&&(this.copilotAccepted=!0),!1)}]),o=async P=>{if(Lv.copilot_active){this.copilotSuggestion&&(this.copilotAccepted?(await fu.post("copilot/accept_completion",{uuid:this.copilotSuggestion}),this.copilotAccepted=!1):await fu.post("copilot/reject_completion",{uuid:this.copilotSuggestion}),this.copilotSuggestion="");const d=P.selection.main.head,l=P.doc.lineAt(d).number,n=d-P.doc.line(l).from,c=new Promise((b,i)=>{this.$emit("copilotCompletion",this.cellData.id,l,n,O=>{b(O)})});try{const b=await c;if(b.status===200&&b.data.completions.length>0)return this.copilotSuggestion=b.data.completions[0].uuid,b.data.completions[0].displayText}catch(b){console.log("Error fetching suggestion:",b)}}return""},f=async P=>{const d=P.matchBefore(/\w*/);return{from:d?d.from:P.pos,options:this.completions.map(n=>({label:n.label,type:n.type,apply:(c,b,i,O)=>{const w=b.label;c.dispatch({changes:{from:i,to:O??P.pos,insert:w}})}}))}};return this.$devMode&&!this.isAppRoute?[Vv.highest(e),bme(),wT.of(" "),gM,YBe({fetchFn:o,delay:400}),pM({override:[f]})]:[jl.readOnly.of(!0),Vv.highest(e),bme(),gM,pM({override:[f]})]},unplacedComponents(){var f;const t=P=>{let d=[];for(const l of P)for(const n of(l==null?void 0:l.components)??[])typeof n=="string"?d.push(n):n&&n.components&&(d=d.concat(t([n])));return d},e=P=>{let d=[],l=[];for(const n of P)this.compDict[n.id]=n,n.childComponents?d.push.apply(d,Object.values(n.childComponents)):n.component==="v-timer"&&(l.push(n),d.push(n.id));return this.$emit("updateTimers",this.cellData.id,l),d},o=t(((f=this.cellData.layout)==null?void 0:f.rows)??[]).concat(e(this.cellData.components));return this.cellData.components.filter(P=>!o.includes(P.id))},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},mounted(){this.cellData.hideCell&&this.unplacedComponents},methods:{runCode(t,e,o){!this.$devMode&&t?this.$emit("componentValueChange",this.cellData.id,e,o,this.cellData.nonReactive):this.$emit("runCode",this.cellData.id,this.cellData.nonReactive,e)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){var f,P,d,l;if(!this.$devMode||!((f=this.view)!=null&&f.hasFocus))return;const t=(P=this.view)==null?void 0:P.state.selection.main.head,e=(d=this.view)==null?void 0:d.state.doc.lineAt(t).number,o=t-((l=this.view)==null?void 0:l.state.doc.line(e).from);this.$emit("saveCell",this.cellData.id,this.cellData.code,e,o)},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const GBe={key:1},KBe={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},JBe={class:"text-ellipsis app-static-name"},eze={key:2},tze={class:"text-caption text-disabled text-right"},nze=["id"],rze=["id"],oze=["id"];function ize(t,e,o,f,P,d){const l=Zd("codemirror"),n=Zd("layout-component"),c=Zd("component-wrapper"),b=Zd("cell");return Do(),sa(b,{"cell-id":o.cellData.id,"cell-type":"code","hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,"cell-name":o.cellData.cellName,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:e[4]||(e[4]=i=>d.runCode(!1,"","")),onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=i=>d.expandCodeUpdate(i)),onHideCode:e[6]||(e[6]=i=>d.hideCode(i)),onRenameCell:e[7]||(e[7]=i=>d.renameCell(i)),onUpdateReactivity:e[8]||(e[8]=i=>d.updateReactivity(i)),onAddCell:e[9]||(e[9]=i=>d.createCell(i))},{code:Oo(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Do(),sa(l,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onReady:f.handleReady,onKeyup:d.saveCell,code:o.cellData.code,id:"codeMirrorDev"+o.cellData.id},null,8,["modelValue","extensions","onReady","onKeyup","code","id"])):(Do(),Da("div",GBe,[o.cellData.hideCode?(Do(),Da("h4",KBe,sc(o.cellData.cellName),1)):(Do(),sa(Z_e,{key:1,modelValue:P.expanded,"onUpdate:modelValue":e[3]||(e[3]=i=>P.expanded=i)},{default:Oo(()=>[Ht(H_e,{modelValue:P.expanded,"onUpdate:modelValue":e[2]||(e[2]=i=>P.expanded=i),"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Ht(_Z,{class:"text-bluegrey-darken-1",id:"codeMirrorAppTitle"+o.cellData.id},{default:Oo(()=>[ha("h4",JBe,sc(o.cellData.cellName),1)]),_:1},8,["id"]),Ht(xZ,null,{default:Oo(()=>[Ht(l,{modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,code:o.cellData.code,id:"codeMirrorApp"+o.cellData.id},null,8,["modelValue","extensions","code","id"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Do(),Da("div",eze,[ha("p",tze,sc(d.shortcutText)+" to run",1)])):Za("",!0)]),outcome:Oo(()=>{var i,O,w;return[ha("div",{id:"outputContainer_"+o.cellData.id},[(O=(i=o.cellData.layout)==null?void 0:i.rows)!=null&&O.length?(Do(!0),Da(ma,{key:0},ob((w=o.cellData.layout)==null?void 0:w.rows,(y,p)=>(Do(),sa(n,{key:p,"row-data":y,components:P.compDict,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"]))),128)):Za("",!0),d.unplacedComponents.length?(Do(),Da("div",{key:1,id:"unplacedComponents"+o.cellData.id},[Ht(c,{renderComponents:d.unplacedComponents,allComponents:P.compDict,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])],8,rze)):Za("",!0),ha("pre",{class:"code-output",id:"cellOutput"+o.cellData.id},sc(o.cellData.output),9,oze)],8,nze)]}),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","cell-name","currentlyExecutingCell","isCodeRunning","is-dev-mode","onDelete"])}const nwe=hm(XBe,[["render",ize],["__scopeId","data-v-062456ec"]]);function Cue(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let ET=Cue();function rwe(t){ET=t}const owe=/[&<>"']/,aze=new RegExp(owe.source,"g"),iwe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,sze=new RegExp(iwe.source,"g"),lze={"&":"&","<":"<",">":">",'"':""","'":"'"},Dge=t=>lze[t];function Dv(t,e){if(e){if(owe.test(t))return t.replace(aze,Dge)}else if(iwe.test(t))return t.replace(sze,Dge);return t}const cze=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function uze(t){return t.replace(cze,(e,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const fze=/(^|[^\[])\^/g;function Tu(t,e){t=typeof t=="string"?t:t.source,e=e||"";const o={replace:(f,P)=>(P=typeof P=="object"&&"source"in P?P.source:P,P=P.replace(fze,"$1"),t=t.replace(f,P),o),getRegex:()=>new RegExp(t,e)};return o}function Bge(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const wZ={exec:()=>null};function zge(t,e){const o=t.replace(/\|/g,(d,l,n)=>{let c=!1,b=l;for(;--b>=0&&n[b]==="\\";)c=!c;return c?"|":" |"}),f=o.split(/ \|/);let P=0;if(f[0].trim()||f.shift(),f.length>0&&!f[f.length-1].trim()&&f.pop(),e)if(f.length>e)f.splice(e);else for(;f.length{const d=P.match(/^\s+/);if(d===null)return P;const[l]=d;return l.length>=f.length?P.slice(f.length):P}).join(` -`)}class OZ{constructor(e){_c(this,"options");_c(this,"rules");_c(this,"lexer");this.options=e||MT}space(e){const o=this.rules.block.newline.exec(e);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(e){const o=this.rules.block.code.exec(e);if(o){const f=o[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?f:eH(f,` -`)}}}fences(e){const o=this.rules.block.fences.exec(e);if(o){const f=o[0],P=uze(f,o[3]||"");return{type:"code",raw:f,lang:o[2]?o[2].trim().replace(this.rules.inline._escapes,"$1"):o[2],text:P}}}heading(e){const o=this.rules.block.heading.exec(e);if(o){let f=o[2].trim();if(/#$/.test(f)){const P=eH(f,"#");(this.options.pedantic||!P||/ $/.test(P))&&(f=P.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:f,tokens:this.lexer.inline(f)}}}hr(e){const o=this.rules.block.hr.exec(e);if(o)return{type:"hr",raw:o[0]}}blockquote(e){const o=this.rules.block.blockquote.exec(e);if(o){const f=eH(o[0].replace(/^ *>[ \t]?/gm,""),` +`)}class OZ{constructor(e){_c(this,"options");_c(this,"rules");_c(this,"lexer");this.options=e||ET}space(e){const o=this.rules.block.newline.exec(e);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(e){const o=this.rules.block.code.exec(e);if(o){const f=o[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?f:eH(f,` +`)}}}fences(e){const o=this.rules.block.fences.exec(e);if(o){const f=o[0],P=hze(f,o[3]||"");return{type:"code",raw:f,lang:o[2]?o[2].trim().replace(this.rules.inline._escapes,"$1"):o[2],text:P}}}heading(e){const o=this.rules.block.heading.exec(e);if(o){let f=o[2].trim();if(/#$/.test(f)){const P=eH(f,"#");(this.options.pedantic||!P||/ $/.test(P))&&(f=P.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:f,tokens:this.lexer.inline(f)}}}hr(e){const o=this.rules.block.hr.exec(e);if(o)return{type:"hr",raw:o[0]}}blockquote(e){const o=this.rules.block.blockquote.exec(e);if(o){const f=eH(o[0].replace(/^ *>[ \t]?/gm,""),` `),P=this.lexer.state.top;this.lexer.state.top=!0;const d=this.lexer.blockTokens(f);return this.lexer.state.top=P,{type:"blockquote",raw:o[0],tokens:d,text:f}}}list(e){let o=this.rules.block.list.exec(e);if(o){let f=o[1].trim();const P=f.length>1,d={type:"list",raw:"",ordered:P,start:P?+f.slice(0,-1):"",loose:!1,items:[]};f=P?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=P?f:"[*+-]");const l=new RegExp(`^( {0,3}${f})((?:[ ][^\\n]*)?(?:\\n|$))`);let n="",c="",b=!1;for(;e;){let i=!1;if(!(o=l.exec(e))||this.rules.block.hr.test(e))break;n=o[0],e=e.substring(n.length);let O=o[2].split(` `,1)[0].replace(/^\t+/,h=>" ".repeat(3*h.length)),w=e.split(` `,1)[0],y=0;this.options.pedantic?(y=2,c=O.trimStart()):(y=o[2].search(/[^ ]/),y=y>4?1:y,c=O.slice(y),y+=o[1].length);let p=!1;if(!O&&/^ *$/.test(w)&&(n+=w+` @@ -3614,10 +3614,10 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function `,1)[0];if(w=S,this.options.pedantic&&(w=w.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),v.test(w)||_.test(w)||h.test(w)||m.test(e))break;if(w.search(/[^ ]/)>=y||!w.trim())c+=` `+w.slice(y);else{if(p||O.search(/[^ ]/)>=4||v.test(O)||_.test(O)||m.test(O))break;c+=` `+w}!p&&!w.trim()&&(p=!0),n+=S+` -`,e=e.substring(S.length+1),O=w.slice(y)}}d.loose||(b?d.loose=!0:/\n *\n *$/.test(n)&&(b=!0));let a=null,u;this.options.gfm&&(a=/^\[[ xX]\] /.exec(c),a&&(u=a[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),d.items.push({type:"list_item",raw:n,task:!!a,checked:u,loose:!1,text:c,tokens:[]}),d.raw+=n}d.items[d.items.length-1].raw=n.trimEnd(),d.items[d.items.length-1].text=c.trimEnd(),d.raw=d.raw.trimEnd();for(let i=0;iy.type==="space"),w=O.length>0&&O.some(y=>/\n.*\n/.test(y.raw));d.loose=w}if(d.loose)for(let i=0;i$/,"$1").replace(this.rules.inline._escapes,"$1"):"",d=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline._escapes,"$1"):o[3];return{type:"def",tag:f,raw:o[0],href:P,title:d}}}table(e){const o=this.rules.block.table.exec(e);if(o){if(!/[:|]/.test(o[2]))return;const f={type:"table",raw:o[0],header:Bge(o[1]).map(P=>({text:P,tokens:[]})),align:o[2].replace(/^\||\| *$/g,"").split("|"),rows:o[3]&&o[3].trim()?o[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(f.header.length===f.align.length){let P=f.align.length,d,l,n,c;for(d=0;d({text:b,tokens:[]}));for(P=f.header.length,l=0;l/i.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(e){const o=this.rules.inline.link.exec(e);if(o){const f=o[2].trim();if(!this.options.pedantic&&/^$/.test(f))return;const l=eH(f.slice(0,-1),"\\");if((f.length-l.length)%2===0)return}else{const l=cze(o[2],"()");if(l>-1){const c=(o[0].indexOf("!")===0?5:4)+o[1].length+l;o[2]=o[2].substring(0,l),o[0]=o[0].substring(0,c).trim(),o[3]=""}}let P=o[2],d="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(P);l&&(P=l[1],d=l[3])}else d=o[3]?o[3].slice(1,-1):"";return P=P.trim(),/^$/.test(f)?P=P.slice(1):P=P.slice(1,-1)),zge(o,{href:P&&P.replace(this.rules.inline._escapes,"$1"),title:d&&d.replace(this.rules.inline._escapes,"$1")},o[0],this.lexer)}}reflink(e,o){let f;if((f=this.rules.inline.reflink.exec(e))||(f=this.rules.inline.nolink.exec(e))){let P=(f[2]||f[1]).replace(/\s+/g," ");if(P=o[P.toLowerCase()],!P){const d=f[0].charAt(0);return{type:"text",raw:d,text:d}}return zge(f,P,f[0],this.lexer)}}emStrong(e,o,f=""){let P=this.rules.inline.emStrong.lDelim.exec(e);if(!P||P[3]&&f.match(/[\p{L}\p{N}]/u))return;if(!(P[1]||P[2]||"")||!f||this.rules.inline.punctuation.exec(f)){const l=[...P[0]].length-1;let n,c,b=l,i=0;const O=P[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(O.lastIndex=0,o=o.slice(-1*e.length+l);(P=O.exec(o))!=null;){if(n=P[1]||P[2]||P[3]||P[4]||P[5]||P[6],!n)continue;if(c=[...n].length,P[3]||P[4]){b+=c;continue}else if((P[5]||P[6])&&l%3&&!((l+c)%3)){i+=c;continue}if(b-=c,b>0)continue;c=Math.min(c,c+b+i);const w=[...P[0]][0].length,y=e.slice(0,l+P.index+w+c);if(Math.min(l,c)%2){const a=y.slice(1,-1);return{type:"em",raw:y,text:a,tokens:this.lexer.inlineTokens(a)}}const p=y.slice(2,-2);return{type:"strong",raw:y,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const o=this.rules.inline.code.exec(e);if(o){let f=o[2].replace(/\n/g," ");const P=/[^ ]/.test(f),d=/^ /.test(f)&&/ $/.test(f);return P&&d&&(f=f.substring(1,f.length-1)),f=Lv(f,!0),{type:"codespan",raw:o[0],text:f}}}br(e){const o=this.rules.inline.br.exec(e);if(o)return{type:"br",raw:o[0]}}del(e){const o=this.rules.inline.del.exec(e);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(e){const o=this.rules.inline.autolink.exec(e);if(o){let f,P;return o[2]==="@"?(f=Lv(o[1]),P="mailto:"+f):(f=Lv(o[1]),P=f),{type:"link",raw:o[0],text:f,href:P,tokens:[{type:"text",raw:f,text:f}]}}}url(e){let o;if(o=this.rules.inline.url.exec(e)){let f,P;if(o[2]==="@")f=Lv(o[0]),P="mailto:"+f;else{let d;do d=o[0],o[0]=this.rules.inline._backpedal.exec(o[0])[0];while(d!==o[0]);f=Lv(o[0]),o[1]==="www."?P="http://"+o[0]:P=o[0]}return{type:"link",raw:o[0],text:f,href:P,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(e){const o=this.rules.inline.text.exec(e);if(o){let f;return this.lexer.state.inRawBlock?f=o[0]:f=Lv(o[0]),{type:"text",raw:o[0],text:f}}}}const ls={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:wZ,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};ls._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;ls._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;ls.def=ku(ls.def).replace("label",ls._label).replace("title",ls._title).getRegex();ls.bullet=/(?:[*+-]|\d{1,9}[.)])/;ls.listItemStart=ku(/^( *)(bull) */).replace("bull",ls.bullet).getRegex();ls.list=ku(ls.list).replace(/bull/g,ls.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ls.def.source+")").getRegex();ls._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";ls._comment=/|$)/;ls.html=ku(ls.html,"i").replace("comment",ls._comment).replace("tag",ls._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();ls.lheading=ku(ls.lheading).replace(/bull/g,ls.bullet).getRegex();ls.paragraph=ku(ls._paragraph).replace("hr",ls.hr).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",")|<(?:script|pre|style|textarea|!--)").replace("tag",ls._tag).getRegex();ls.blockquote=ku(ls.blockquote).replace("paragraph",ls.paragraph).getRegex();ls.normal={...ls};ls.gfm={...ls.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};ls.gfm.table=ku(ls.gfm.table).replace("hr",ls.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ls._tag).getRegex();ls.gfm.paragraph=ku(ls._paragraph).replace("hr",ls.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ls.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ls._tag).getRegex();ls.pedantic={...ls.normal,html:ku(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ls._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:wZ,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ku(ls.normal._paragraph).replace("hr",ls.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",ls.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const va={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:wZ,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:wZ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";va.punctuation=ku(va.punctuation,"u").replace(/punctuation/g,va._punctuation).getRegex();va.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;va.anyPunctuation=/\\[punct]/g;va._escapes=/\\([punct])/g;va._comment=ku(ls._comment).replace("(?:-->|$)","-->").getRegex();va.emStrong.lDelim=ku(va.emStrong.lDelim,"u").replace(/punct/g,va._punctuation).getRegex();va.emStrong.rDelimAst=ku(va.emStrong.rDelimAst,"gu").replace(/punct/g,va._punctuation).getRegex();va.emStrong.rDelimUnd=ku(va.emStrong.rDelimUnd,"gu").replace(/punct/g,va._punctuation).getRegex();va.anyPunctuation=ku(va.anyPunctuation,"gu").replace(/punct/g,va._punctuation).getRegex();va._escapes=ku(va._escapes,"gu").replace(/punct/g,va._punctuation).getRegex();va._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;va._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])?)+(?![-_])/;va.autolink=ku(va.autolink).replace("scheme",va._scheme).replace("email",va._email).getRegex();va._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;va.tag=ku(va.tag).replace("comment",va._comment).replace("attribute",va._attribute).getRegex();va._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;va._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;va._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;va.link=ku(va.link).replace("label",va._label).replace("href",va._href).replace("title",va._title).getRegex();va.reflink=ku(va.reflink).replace("label",va._label).replace("ref",ls._label).getRegex();va.nolink=ku(va.nolink).replace("ref",ls._label).getRegex();va.reflinkSearch=ku(va.reflinkSearch,"g").replace("reflink",va.reflink).replace("nolink",va.nolink).getRegex();va.normal={...va};va.pedantic={...va.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ku(/^!?\[(label)\]\((.*?)\)/).replace("label",va._label).getRegex(),reflink:ku(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",va._label).getRegex()};va.gfm={...va.normal,escape:ku(va.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\y.type==="space"),w=O.length>0&&O.some(y=>/\n.*\n/.test(y.raw));d.loose=w}if(d.loose)for(let i=0;i$/,"$1").replace(this.rules.inline._escapes,"$1"):"",d=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline._escapes,"$1"):o[3];return{type:"def",tag:f,raw:o[0],href:P,title:d}}}table(e){const o=this.rules.block.table.exec(e);if(o){if(!/[:|]/.test(o[2]))return;const f={type:"table",raw:o[0],header:zge(o[1]).map(P=>({text:P,tokens:[]})),align:o[2].replace(/^\||\| *$/g,"").split("|"),rows:o[3]&&o[3].trim()?o[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(f.header.length===f.align.length){let P=f.align.length,d,l,n,c;for(d=0;d({text:b,tokens:[]}));for(P=f.header.length,l=0;l/i.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(e){const o=this.rules.inline.link.exec(e);if(o){const f=o[2].trim();if(!this.options.pedantic&&/^$/.test(f))return;const l=eH(f.slice(0,-1),"\\");if((f.length-l.length)%2===0)return}else{const l=dze(o[2],"()");if(l>-1){const c=(o[0].indexOf("!")===0?5:4)+o[1].length+l;o[2]=o[2].substring(0,l),o[0]=o[0].substring(0,c).trim(),o[3]=""}}let P=o[2],d="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(P);l&&(P=l[1],d=l[3])}else d=o[3]?o[3].slice(1,-1):"";return P=P.trim(),/^$/.test(f)?P=P.slice(1):P=P.slice(1,-1)),Fge(o,{href:P&&P.replace(this.rules.inline._escapes,"$1"),title:d&&d.replace(this.rules.inline._escapes,"$1")},o[0],this.lexer)}}reflink(e,o){let f;if((f=this.rules.inline.reflink.exec(e))||(f=this.rules.inline.nolink.exec(e))){let P=(f[2]||f[1]).replace(/\s+/g," ");if(P=o[P.toLowerCase()],!P){const d=f[0].charAt(0);return{type:"text",raw:d,text:d}}return Fge(f,P,f[0],this.lexer)}}emStrong(e,o,f=""){let P=this.rules.inline.emStrong.lDelim.exec(e);if(!P||P[3]&&f.match(/[\p{L}\p{N}]/u))return;if(!(P[1]||P[2]||"")||!f||this.rules.inline.punctuation.exec(f)){const l=[...P[0]].length-1;let n,c,b=l,i=0;const O=P[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(O.lastIndex=0,o=o.slice(-1*e.length+l);(P=O.exec(o))!=null;){if(n=P[1]||P[2]||P[3]||P[4]||P[5]||P[6],!n)continue;if(c=[...n].length,P[3]||P[4]){b+=c;continue}else if((P[5]||P[6])&&l%3&&!((l+c)%3)){i+=c;continue}if(b-=c,b>0)continue;c=Math.min(c,c+b+i);const w=[...P[0]][0].length,y=e.slice(0,l+P.index+w+c);if(Math.min(l,c)%2){const a=y.slice(1,-1);return{type:"em",raw:y,text:a,tokens:this.lexer.inlineTokens(a)}}const p=y.slice(2,-2);return{type:"strong",raw:y,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const o=this.rules.inline.code.exec(e);if(o){let f=o[2].replace(/\n/g," ");const P=/[^ ]/.test(f),d=/^ /.test(f)&&/ $/.test(f);return P&&d&&(f=f.substring(1,f.length-1)),f=Dv(f,!0),{type:"codespan",raw:o[0],text:f}}}br(e){const o=this.rules.inline.br.exec(e);if(o)return{type:"br",raw:o[0]}}del(e){const o=this.rules.inline.del.exec(e);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(e){const o=this.rules.inline.autolink.exec(e);if(o){let f,P;return o[2]==="@"?(f=Dv(o[1]),P="mailto:"+f):(f=Dv(o[1]),P=f),{type:"link",raw:o[0],text:f,href:P,tokens:[{type:"text",raw:f,text:f}]}}}url(e){let o;if(o=this.rules.inline.url.exec(e)){let f,P;if(o[2]==="@")f=Dv(o[0]),P="mailto:"+f;else{let d;do d=o[0],o[0]=this.rules.inline._backpedal.exec(o[0])[0];while(d!==o[0]);f=Dv(o[0]),o[1]==="www."?P="http://"+o[0]:P=o[0]}return{type:"link",raw:o[0],text:f,href:P,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(e){const o=this.rules.inline.text.exec(e);if(o){let f;return this.lexer.state.inRawBlock?f=o[0]:f=Dv(o[0]),{type:"text",raw:o[0],text:f}}}}const cs={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:wZ,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};cs._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;cs._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;cs.def=Tu(cs.def).replace("label",cs._label).replace("title",cs._title).getRegex();cs.bullet=/(?:[*+-]|\d{1,9}[.)])/;cs.listItemStart=Tu(/^( *)(bull) */).replace("bull",cs.bullet).getRegex();cs.list=Tu(cs.list).replace(/bull/g,cs.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+cs.def.source+")").getRegex();cs._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";cs._comment=/|$)/;cs.html=Tu(cs.html,"i").replace("comment",cs._comment).replace("tag",cs._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();cs.lheading=Tu(cs.lheading).replace(/bull/g,cs.bullet).getRegex();cs.paragraph=Tu(cs._paragraph).replace("hr",cs.hr).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",")|<(?:script|pre|style|textarea|!--)").replace("tag",cs._tag).getRegex();cs.blockquote=Tu(cs.blockquote).replace("paragraph",cs.paragraph).getRegex();cs.normal={...cs};cs.gfm={...cs.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};cs.gfm.table=Tu(cs.gfm.table).replace("hr",cs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",cs._tag).getRegex();cs.gfm.paragraph=Tu(cs._paragraph).replace("hr",cs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",cs.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",cs._tag).getRegex();cs.pedantic={...cs.normal,html:Tu(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cs._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:wZ,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Tu(cs.normal._paragraph).replace("hr",cs.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",cs.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const ya={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:wZ,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:wZ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";ya.punctuation=Tu(ya.punctuation,"u").replace(/punctuation/g,ya._punctuation).getRegex();ya.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;ya.anyPunctuation=/\\[punct]/g;ya._escapes=/\\([punct])/g;ya._comment=Tu(cs._comment).replace("(?:-->|$)","-->").getRegex();ya.emStrong.lDelim=Tu(ya.emStrong.lDelim,"u").replace(/punct/g,ya._punctuation).getRegex();ya.emStrong.rDelimAst=Tu(ya.emStrong.rDelimAst,"gu").replace(/punct/g,ya._punctuation).getRegex();ya.emStrong.rDelimUnd=Tu(ya.emStrong.rDelimUnd,"gu").replace(/punct/g,ya._punctuation).getRegex();ya.anyPunctuation=Tu(ya.anyPunctuation,"gu").replace(/punct/g,ya._punctuation).getRegex();ya._escapes=Tu(ya._escapes,"gu").replace(/punct/g,ya._punctuation).getRegex();ya._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;ya._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])?)+(?![-_])/;ya.autolink=Tu(ya.autolink).replace("scheme",ya._scheme).replace("email",ya._email).getRegex();ya._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;ya.tag=Tu(ya.tag).replace("comment",ya._comment).replace("attribute",ya._attribute).getRegex();ya._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;ya._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;ya._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;ya.link=Tu(ya.link).replace("label",ya._label).replace("href",ya._href).replace("title",ya._title).getRegex();ya.reflink=Tu(ya.reflink).replace("label",ya._label).replace("ref",cs._label).getRegex();ya.nolink=Tu(ya.nolink).replace("ref",cs._label).getRegex();ya.reflinkSearch=Tu(ya.reflinkSearch,"g").replace("reflink",ya.reflink).replace("nolink",ya.nolink).getRegex();ya.normal={...ya};ya.pedantic={...ya.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Tu(/^!?\[(label)\]\((.*?)\)/).replace("label",ya._label).getRegex(),reflink:Tu(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ya._label).getRegex()};ya.gfm={...ya.normal,escape:Tu(ya.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\c+" ".repeat(b.length));let f,P,d,l;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(n=>(f=n.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))){if(f=this.tokenizer.space(e)){e=e.substring(f.raw.length),f.raw.length===1&&o.length>0?o[o.length-1].raw+=` `:o.push(f);continue}if(f=this.tokenizer.code(e)){e=e.substring(f.raw.length),P=o[o.length-1],P&&(P.type==="paragraph"||P.type==="text")?(P.raw+=` `+f.raw,P.text+=` @@ -3627,9 +3627,9 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function `+f.raw,P.text+=` `+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=P.text):o.push(f),l=d.length!==e.length,e=e.substring(f.raw.length);continue}if(f=this.tokenizer.text(e)){e=e.substring(f.raw.length),P=o[o.length-1],P&&P.type==="text"?(P.raw+=` `+f.raw,P.text+=` -`+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=P.text):o.push(f);continue}if(e){const n="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(n);break}else throw new Error(n)}}return this.state.top=!0,o}inline(e,o=[]){return this.inlineQueue.push({src:e,tokens:o}),o}inlineTokens(e,o=[]){let f,P,d,l=e,n,c,b;if(this.tokens.links){const i=Object.keys(this.tokens.links);if(i.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)i.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,n.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(c||(b=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(i=>(f=i.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))){if(f=this.tokenizer.escape(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.tag(e)){e=e.substring(f.raw.length),P=o[o.length-1],P&&f.type==="text"&&P.type==="text"?(P.raw+=f.raw,P.text+=f.text):o.push(f);continue}if(f=this.tokenizer.link(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(f.raw.length),P=o[o.length-1],P&&f.type==="text"&&P.type==="text"?(P.raw+=f.raw,P.text+=f.text):o.push(f);continue}if(f=this.tokenizer.emStrong(e,l,b)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.codespan(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.br(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.del(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.autolink(e)){e=e.substring(f.raw.length),o.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(e))){e=e.substring(f.raw.length),o.push(f);continue}if(d=e,this.options.extensions&&this.options.extensions.startInline){let i=1/0;const O=e.slice(1);let w;this.options.extensions.startInline.forEach(y=>{w=y.call({lexer:this},O),typeof w=="number"&&w>=0&&(i=Math.min(i,w))}),i<1/0&&i>=0&&(d=e.substring(0,i+1))}if(f=this.tokenizer.inlineText(d)){e=e.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(b=f.raw.slice(-1)),c=!0,P=o[o.length-1],P&&P.type==="text"?(P.raw+=f.raw,P.text+=f.text):o.push(f);continue}if(e){const i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return o}}class SZ{constructor(e){_c(this,"options");this.options=e||MT}code(e,o,f){var d;const P=(d=(o||"").match(/^\S*/))==null?void 0:d[0];return e=e.replace(/\n$/,"")+` -`,P?'
    '+(f?e:Lv(e,!0))+`
    -`:"
    "+(f?e:Lv(e,!0))+`
    +`+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=P.text):o.push(f);continue}if(e){const n="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(n);break}else throw new Error(n)}}return this.state.top=!0,o}inline(e,o=[]){return this.inlineQueue.push({src:e,tokens:o}),o}inlineTokens(e,o=[]){let f,P,d,l=e,n,c,b;if(this.tokens.links){const i=Object.keys(this.tokens.links);if(i.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)i.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,n.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(c||(b=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(i=>(f=i.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))){if(f=this.tokenizer.escape(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.tag(e)){e=e.substring(f.raw.length),P=o[o.length-1],P&&f.type==="text"&&P.type==="text"?(P.raw+=f.raw,P.text+=f.text):o.push(f);continue}if(f=this.tokenizer.link(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(f.raw.length),P=o[o.length-1],P&&f.type==="text"&&P.type==="text"?(P.raw+=f.raw,P.text+=f.text):o.push(f);continue}if(f=this.tokenizer.emStrong(e,l,b)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.codespan(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.br(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.del(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.autolink(e)){e=e.substring(f.raw.length),o.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(e))){e=e.substring(f.raw.length),o.push(f);continue}if(d=e,this.options.extensions&&this.options.extensions.startInline){let i=1/0;const O=e.slice(1);let w;this.options.extensions.startInline.forEach(y=>{w=y.call({lexer:this},O),typeof w=="number"&&w>=0&&(i=Math.min(i,w))}),i<1/0&&i>=0&&(d=e.substring(0,i+1))}if(f=this.tokenizer.inlineText(d)){e=e.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(b=f.raw.slice(-1)),c=!0,P=o[o.length-1],P&&P.type==="text"?(P.raw+=f.raw,P.text+=f.text):o.push(f);continue}if(e){const i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return o}}class SZ{constructor(e){_c(this,"options");this.options=e||ET}code(e,o,f){var d;const P=(d=(o||"").match(/^\S*/))==null?void 0:d[0];return e=e.replace(/\n$/,"")+` +`,P?'
    '+(f?e:Dv(e,!0))+`
    +`:"
    "+(f?e:Dv(e,!0))+`
    `}blockquote(e){return`
    ${e}
    `}html(e,o){return e}heading(e,o,f){return`${e} @@ -3645,14 +3645,14 @@ ${e} `}tablerow(e){return` ${e} `}tablecell(e,o){const f=o.header?"th":"td";return(o.align?`<${f} align="${o.align}">`:`<${f}>`)+e+` -`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
    "}del(e){return`${e}`}link(e,o,f){const P=Dge(e);if(P===null)return f;e=P;let d='
    ",d}image(e,o,f){const P=Dge(e);if(P===null)return f;e=P;let d=`${f}0&&w.tokens[0].type==="paragraph"?(w.tokens[0].text=u+" "+w.tokens[0].text,w.tokens[0].tokens&&w.tokens[0].tokens.length>0&&w.tokens[0].tokens[0].type==="text"&&(w.tokens[0].tokens[0].text=u+" "+w.tokens[0].tokens[0].text)):w.tokens.unshift({type:"text",text:u+" "}):a+=u+" "}a+=this.parse(w.tokens,b),i+=this.renderer.listitem(a,p,!!y)}f+=this.renderer.list(i,n,c);continue}case"html":{const l=d;f+=this.renderer.html(l.text,l.block);continue}case"paragraph":{const l=d;f+=this.renderer.paragraph(this.parseInline(l.tokens));continue}case"text":{let l=d,n=l.tokens?this.parseInline(l.tokens):l.text;for(;P+1{f=f.concat(this.walkTokens(n[c],o))}):n.tokens&&(f=f.concat(this.walkTokens(n.tokens,o)))}}return f}use(...e){const o=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(f=>{const P={...f};if(P.async=this.defaults.async||P.async||!1,f.extensions&&(f.extensions.forEach(d=>{if(!d.name)throw new Error("extension name required");if("renderer"in d){const l=o.renderers[d.name];l?o.renderers[d.name]=function(...n){let c=d.renderer.apply(this,n);return c===!1&&(c=l.apply(this,n)),c}:o.renderers[d.name]=d.renderer}if("tokenizer"in d){if(!d.level||d.level!=="block"&&d.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=o[d.level];l?l.unshift(d.tokenizer):o[d.level]=[d.tokenizer],d.start&&(d.level==="block"?o.startBlock?o.startBlock.push(d.start):o.startBlock=[d.start]:d.level==="inline"&&(o.startInline?o.startInline.push(d.start):o.startInline=[d.start]))}"childTokens"in d&&d.childTokens&&(o.childTokens[d.name]=d.childTokens)}),P.extensions=o),f.renderer){const d=this.defaults.renderer||new SZ(this.defaults);for(const l in f.renderer){const n=f.renderer[l],c=l,b=d[c];d[c]=(...i)=>{let O=n.apply(d,i);return O===!1&&(O=b.apply(d,i)),O||""}}P.renderer=d}if(f.tokenizer){const d=this.defaults.tokenizer||new OZ(this.defaults);for(const l in f.tokenizer){const n=f.tokenizer[l],c=l,b=d[c];d[c]=(...i)=>{let O=n.apply(d,i);return O===!1&&(O=b.apply(d,i)),O}}P.tokenizer=d}if(f.hooks){const d=this.defaults.hooks||new hI;for(const l in f.hooks){const n=f.hooks[l],c=l,b=d[c];hI.passThroughHooks.has(l)?d[c]=i=>{if(this.defaults.async)return Promise.resolve(n.call(d,i)).then(w=>b.call(d,w));const O=n.call(d,i);return b.call(d,O)}:d[c]=(...i)=>{let O=n.apply(d,i);return O===!1&&(O=b.apply(d,i)),O}}P.hooks=d}if(f.walkTokens){const d=this.defaults.walkTokens,l=f.walkTokens;P.walkTokens=function(n){let c=[];return c.push(l.call(this,n)),d&&(c=c.concat(d.call(this,n))),c}}this.defaults={...this.defaults,...P}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,o){return c_.lex(e,o??this.defaults)}parser(e,o){return u_.parse(e,o??this.defaults)}}iD=new WeakSet,Yse=function(e,o){return(f,P)=>{const d={...P},l={...this.defaults,...d};this.defaults.async===!0&&d.async===!1&&(l.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),l.async=!0);const n=gQ(this,PZ,iwe).call(this,!!l.silent,!!l.async);if(typeof f>"u"||f===null)return n(new Error("marked(): input parameter is undefined or null"));if(typeof f!="string")return n(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(f)+", string expected"));if(l.hooks&&(l.hooks.options=l),l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(f):f).then(c=>e(c,l)).then(c=>l.walkTokens?Promise.all(this.walkTokens(c,l.walkTokens)).then(()=>c):c).then(c=>o(c,l)).then(c=>l.hooks?l.hooks.postprocess(c):c).catch(n);try{l.hooks&&(f=l.hooks.preprocess(f));const c=e(f,l);l.walkTokens&&this.walkTokens(c,l.walkTokens);let b=o(c,l);return l.hooks&&(b=l.hooks.postprocess(b)),b}catch(c){return n(c)}}},PZ=new WeakSet,iwe=function(e,o){return f=>{if(f.message+=` -Please report this to https://github.com/markedjs/marked.`,e){const P="

    An error occurred:

    "+Lv(f.message+"",!0)+"
    ";return o?Promise.resolve(P):P}if(o)return Promise.reject(f);throw f}};const bT=new fze;function Uu(t,e){return bT.parse(t,e)}Uu.options=Uu.setOptions=function(t){return bT.setOptions(t),Uu.defaults=bT.defaults,nwe(Uu.defaults),Uu};Uu.getDefaults=Tue;Uu.defaults=MT;Uu.use=function(...t){return bT.use(...t),Uu.defaults=bT.defaults,nwe(Uu.defaults),Uu};Uu.walkTokens=function(t,e){return bT.walkTokens(t,e)};Uu.parseInline=bT.parseInline;Uu.Parser=u_;Uu.parser=u_.parse;Uu.Renderer=SZ;Uu.TextRenderer=Cue;Uu.Lexer=c_;Uu.lexer=c_.lex;Uu.Tokenizer=OZ;Uu.Hooks=hI;Uu.parse=Uu;Uu.options;Uu.setOptions;Uu.use;Uu.walkTokens;Uu.parseInline;u_.parse;c_.lex;class kZ{static create(e,o,f,P,d){let l=P+(P<<8)+e+(o<<4)|0;return new kZ(e,o,f,l,d,[],[])}constructor(e,o,f,P,d,l,n){this.type=e,this.value=o,this.from=f,this.hash=P,this.end=d,this.children=l,this.positions=n,this.hashProp=[[ul.contextHash,P]]}addChild(e,o){e.prop(ul.contextHash)!=this.hash&&(e=new Su(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(o)}toTree(e,o=this.end){let f=this.children.length-1;return f>=0&&(o=Math.max(o,this.positions[f]+this.children[f].length+this.from)),new Su(e.types[this.type],this.children,this.positions,o-this.from).balance({makeTree:(P,d,l)=>new Su(Cp.none,P,d,l,this.hashProp)})}}var Wi;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.URL=33]="URL",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel"})(Wi||(Wi={}));class dze{constructor(e,o){this.start=e,this.content=o,this.marks=[],this.parsers=[]}}class hze{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return pI(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,o=0,f=0){for(let P=o;P=e.stack[o.depth+1].value+o.baseIndent)return!0;if(o.indent>=o.baseIndent+4)return!1;let f=(t.type==Wi.OrderedList?Eue:Mue)(o,e,!1);return f>0&&(t.type!=Wi.BulletList||Aue(o,e,!1)<0)&&o.text.charCodeAt(o.pos+f-1)==t.value}const awe={[Wi.Blockquote](t,e,o){return o.next!=62?!1:(o.markers.push(uu(Wi.QuoteMark,e.lineStart+o.pos,e.lineStart+o.pos+1)),o.moveBase(o.pos+(lb(o.text.charCodeAt(o.pos+1))?2:1)),t.end=e.lineStart+o.text.length,!0)},[Wi.ListItem](t,e,o){return o.indent-1?!1:(o.moveBaseColumn(o.baseIndent+t.value),!0)},[Wi.OrderedList]:Fge,[Wi.BulletList]:Fge,[Wi.Document](){return!0}};function lb(t){return t==32||t==9||t==10||t==13}function pI(t,e=0){for(;eo&&lb(t.charCodeAt(e-1));)e--;return e}function swe(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e-1&&t.depth==e.stack.length||f<3?-1:1}function cwe(t,e){for(let o=t.stack.length-1;o>=0;o--)if(t.stack[o].type==e)return!0;return!1}function Mue(t,e,o){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||lb(t.text.charCodeAt(t.pos+1)))&&(!o||cwe(e,Wi.BulletList)||t.skipSpace(t.pos+2)=48&&P<=57;){f++;if(f==t.text.length)return-1;P=t.text.charCodeAt(f)}return f==t.pos||f>t.pos+9||P!=46&&P!=41||ft.pos+1||t.next!=49)?-1:f+1-t.pos}function uwe(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e6?-1:o}function fwe(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e/,hwe=/\?>/,Gse=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,pwe=/\?>/,Gse=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(f);if(d)return t.append(uu(Wi.Comment,o,o+1+d[0].length));let l=/^\?[^]*?\?>/.exec(f);if(l)return t.append(uu(Wi.ProcessingInstruction,o,o+1+l[0].length));let n=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(f);return n?t.append(uu(Wi.HTMLTag,o,o+1+n[0].length)):-1},Emphasis(t,e,o){if(e!=95&&e!=42)return-1;let f=o+1;for(;t.char(f)==e;)f++;let P=t.slice(o-1,o),d=t.slice(f,f+1),l=nD.test(P),n=nD.test(d),c=/\s|^$/.test(P),b=/\s|^$/.test(d),i=!b&&(!n||c||l),O=!c&&(!l||b||n),w=i&&(e==42||!O||l),y=O&&(e==42||!i||n);return t.append(new mx(e==95?bwe:xwe,o,f,(w?1:0)|(y?2:0)))},HardBreak(t,e,o){if(e==92&&t.char(o+1)==10)return t.append(uu(Wi.HardBreak,o,o+2));if(e==32){let f=o+1;for(;t.char(f)==32;)f++;if(t.char(f)==10&&f>=o+2)return t.append(uu(Wi.HardBreak,o,f+1))}return-1},Link(t,e,o){return e==91?t.append(new mx(VL,o,o+1,1)):-1},Image(t,e,o){return e==33&&t.char(o+1)==91?t.append(new mx(Vge,o,o+2,1)):-1},LinkEnd(t,e,o){if(e!=93)return-1;for(let f=t.parts.length-1;f>=0;f--){let P=t.parts[f];if(P instanceof mx&&(P.type==VL||P.type==Vge)){if(!P.side||t.skipSpace(P.to)==o&&!/[(\[]/.test(t.slice(o+1,o+2)))return t.parts[f]=null,-1;let d=t.takeContent(f),l=t.parts[f]=xze(t,d,P.type==VL?Wi.Link:Wi.Image,P.from,o+1);if(P.type==VL)for(let n=0;ne?uu(Wi.URL,e+o,d+o):d==t.length?null:!1}}function wwe(t,e,o){let f=t.charCodeAt(e);if(f!=39&&f!=34&&f!=40)return!1;let P=f==40?41:f;for(let d=e+1,l=!1;d=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,o){return this.text.slice(e-this.offset,o-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,o,f,P,d){return this.append(new mx(e,o,f,(P?1:0)|(d?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let f=e;f=e;c--){let a=this.parts[c];if(a instanceof mx&&a.side&1&&a.type==P.type&&!(d&&(P.side&1||a.side&2)&&(a.to-a.from+l)%3==0&&((a.to-a.from)%3||l%3))){n=a;break}}if(!n)continue;let b=P.type.resolve,i=[],O=n.from,w=P.to;if(d){let a=Math.min(2,n.to-n.from,l);O=n.to-a,w=P.from+a,b=a==1?"Emphasis":"StrongEmphasis"}n.type.mark&&i.push(this.elt(n.type.mark,O,n.to));for(let a=c+1;a=0;o--){let f=this.parts[o];if(f instanceof mx&&f.type==e)return o}return null}takeContent(e){let o=this.resolveMarkers(e);return this.parts.length=e,o}skipSpace(e){return pI(this.text,e-this.offset)+this.offset}elt(e,o,f,P){return typeof e=="string"?uu(this.parser.getNodeType(e),o,f,P):new ywe(e,o)}}function Jse(t,e){if(!e.length)return t;if(!t.length)return e;let o=t.slice(),f=0;for(let P of e){for(;f(e?e-1:0))return!1;if(this.fragmentEnd<0){let d=this.fragment.to;for(;d>0&&this.input.read(d-1,d)!=` -`;)d--;this.fragmentEnd=d?d-1:0}let f=this.cursor;f||(f=this.cursor=this.fragment.tree.cursor(),f.firstChild());let P=e+this.fragment.offset;for(;f.to<=P;)if(!f.parent())return!1;for(;;){if(f.from>=P)return this.fragment.from<=o;if(!f.childAfter(P))return!1}}matches(e){let o=this.cursor.tree;return o&&o.prop(ul.contextHash)==e}takeNodes(e){let o=this.cursor,f=this.fragment.offset,P=this.fragmentEnd-(this.fragment.openEnd?1:0),d=e.absoluteLineStart,l=d,n=e.block.children.length,c=l,b=n;for(;;){if(o.to-f>P){if(o.type.isAnonymous&&o.firstChild())continue;break}let i=Swe(o.from-f,e.ranges);if(o.to-f<=e.ranges[e.rangeI].to)e.addNode(o.tree,i);else{let O=new Su(e.parser.nodeSet.types[Wi.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(O,o.tree),e.addNode(O,i)}if(o.type.is("Block")&&(wze.indexOf(o.type.id)<0?(l=o.to-f,n=e.block.children.length):(l=c,n=b,c=o.to-f,b=e.block.children.length)),!o.nextSibling())break}for(;e.block.children.length>n;)e.block.children.pop(),e.block.positions.pop();return l-d}}function Swe(t,e){let o=t;for(let f=1;ftH[t]),Object.keys(tH).map(t=>gze[t]),Object.keys(tH),vze,awe,Object.keys(Yie).map(t=>Yie[t]),Object.keys(Yie),[]);function Tze(t,e,o){let f=[];for(let P=t.firstChild,d=e;;P=P.nextSibling){let l=P?P.from:o;if(l>d&&f.push({from:d,to:l}),!P)break;d=P.to}return f}function Cze(t){let{codeParser:e,htmlParser:o}=t;return{wrap:qye((P,d)=>{let l=P.type.id;if(e&&(l==Wi.CodeBlock||l==Wi.FencedCode)){let n="";if(l==Wi.FencedCode){let b=P.node.getChild(Wi.CodeInfo);b&&(n=d.read(b.from,b.to))}let c=e(n);if(c)return{parser:c,overlay:b=>b.type.id==Wi.CodeText}}else if(o&&(l==Wi.HTMLBlock||l==Wi.HTMLTag))return{parser:o,overlay:Tze(P.node,P.from,P.to)};return null})}}const Aze={resolve:"Strikethrough",mark:"StrikethroughMark"},Mze={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Gn.strikethrough}},{name:"StrikethroughMark",style:Gn.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,o){if(e!=126||t.char(o+1)!=126||t.char(o+2)==126)return-1;let f=t.slice(o-1,o),P=t.slice(o+2,o+3),d=/\s|^$/.test(f),l=/\s|^$/.test(P),n=nD.test(f),c=nD.test(P);return t.addDelimiter(Aze,o,o+2,!l&&(!c||d||n),!d&&(!n||l||c))},after:"Emphasis"}]};function mI(t,e,o=0,f,P=0){let d=0,l=!0,n=-1,c=-1,b=!1,i=()=>{f.push(t.elt("TableCell",P+n,P+c,t.parser.parseInline(e.slice(n,c),P+n)))};for(let O=o;O-1)&&d++,l=!1,f&&(n>-1&&i(),f.push(t.elt("TableDelimiter",O+P,O+P+1))),n=c=-1):(b||w!=32&&w!=9)&&(n<0&&(n=O),c=O+1),b=!b&&w==92}return n>-1&&(d++,f&&i()),d}function jge(t,e){for(let o=e;oP instanceof Qge)||!jge(e.text,e.basePos))return!1;let f=t.scanLine(t.absoluteLineEnd+1).text;return kwe.test(f)&&mI(t,e.text,e.basePos)==mI(t,f,e.basePos)},before:"SetextHeading"}]};class Pze{nextLine(){return!1}finish(e,o){return e.addLeafElement(o,e.elt("Task",o.start,o.start+o.content.length,[e.elt("TaskMarker",o.start,o.start+3),...e.parser.parseInline(o.content.slice(3),o.start+3)])),!0}}const Rze={defineNodes:[{name:"Task",block:!0,style:Gn.list},{name:"TaskMarker",style:Gn.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new Pze:null},after:"SetextHeading"}]},Hge=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,Zge=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,Lze=/[\w-]+\.[\w-]+($|\/)/,qge=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Wge=/\/[a-zA-Z\d@.]+/gy;function Yge(t,e,o,f){let P=0;for(let d=e;d-1)return-1;let f=e+o[0].length;for(;;){let P=t[f-1],d;if(/[?!.,:*_~]/.test(P)||P==")"&&Yge(t,e,f,")")>Yge(t,e,f,"("))f--;else if(P==";"&&(d=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,f))))f=e+d.index;else break}return f}function Xge(t,e){qge.lastIndex=e;let o=qge.exec(t);if(!o)return-1;let f=o[0][o[0].length-1];return f=="_"||f=="-"?-1:e+o[0].length-(f=="."?1:0)}const Dze={parseInline:[{name:"Autolink",parse(t,e,o){let f=o-t.offset;Hge.lastIndex=f;let P=Hge.exec(t.text),d=-1;return!P||(P[1]||P[2]?d=Ize(t.text,f+P[0].length):P[3]?d=Xge(t.text,f):(d=Xge(t.text,f+P[0].length),d>-1&&P[0]=="xmpp:"&&(Wge.lastIndex=d,P=Wge.exec(t.text),P&&(d=P.index+P[0].length))),d<0)?-1:(t.addElement(t.elt("URL",o,d+t.offset)),d+t.offset)}}]},Bze=[Eze,Rze,Mze,Dze];function Twe(t,e,o){return(f,P,d)=>{if(P!=t||f.char(d+1)==t)return-1;let l=[f.elt(o,d,d+1)];for(let n=d+1;n=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function Iwe(t){return t==9||t==10||t==13||t==32}let e0e=null,t0e=null,n0e=0;function tle(t,e){let o=t.pos+e;if(n0e==o&&t0e==t)return e0e;let f=t.peek(e);for(;Iwe(f);)f=t.peek(++e);let P="";for(;lFe(f);)P+=String.fromCharCode(f),f=t.peek(++e);return t0e=t,n0e=o,e0e=P?P.toLowerCase():f==cFe||f==uFe?void 0:null}const Dwe=60,CZ=62,Pue=47,cFe=63,uFe=33,fFe=45;function r0e(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let o=0;o-1?new r0e(tle(f,1)||"",t):t},reduce(t,e){return e==Pwe&&t?t.parent:t},reuse(t,e,o,f){let P=e.type.id;return P==TZ||P==nFe?new r0e(tle(f,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),pFe=new A0((t,e)=>{if(t.next!=Dwe){t.next<0&&e.context&&t.acceptToken(Xie);return}t.advance();let o=t.next==Pue;o&&t.advance();let f=tle(t,0);if(f===void 0)return;if(!f)return t.acceptToken(o?Xze:TZ);let P=e.context?e.context.name:null;if(o){if(f==P)return t.acceptToken(qze);if(P&&sFe[P])return t.acceptToken(Xie,-2);if(e.dialectEnabled(oFe))return t.acceptToken(Wze);for(let d=e.context;d;d=d.parent)if(d.name==f)return;t.acceptToken(Yze)}else{if(f=="script")return t.acceptToken(Cwe);if(f=="style")return t.acceptToken(Awe);if(f=="textarea")return t.acceptToken(Mwe);if(aFe.hasOwnProperty(f))return t.acceptToken(Ewe);P&&Jge[P]&&Jge[P][f]?t.acceptToken(Xie,-1):t.acceptToken(TZ)}},{contextual:!0}),mFe=new A0(t=>{for(let e=0,o=0;;o++){if(t.next<0){o&&t.acceptToken(Kge);break}if(t.next==fFe)e++;else if(t.next==CZ&&e>=2){o>=3&&t.acceptToken(Kge,-2);break}else e=0;t.advance()}});function gFe(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const vFe=new A0((t,e)=>{if(t.next==Pue&&t.peek(1)==CZ){let o=e.dialectEnabled(iFe)||gFe(e.context);t.acceptToken(o?Zze:Gge,2)}else t.next==CZ&&t.acceptToken(Gge,1)});function Rue(t,e,o){let f=2+t.length;return new A0(P=>{for(let d=0,l=0,n=0;;n++){if(P.next<0){n&&P.acceptToken(e);break}if(d==0&&P.next==Dwe||d==1&&P.next==Pue||d>=2&&dl?P.acceptToken(e,-l):P.acceptToken(o,-(l-2));break}else if((P.next==10||P.next==13)&&n){P.acceptToken(e,1);break}else d=l=0;P.advance()}})}const yFe=Rue("script",$ze,Vze),bFe=Rue("style",Uze,jze),xFe=Rue("textarea",Qze,Hze),_Fe=mS({"Text RawText":Gn.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Gn.angleBracket,TagName:Gn.tagName,"MismatchedCloseTag/TagName":[Gn.tagName,Gn.invalid],AttributeName:Gn.attributeName,"AttributeValue UnquotedAttributeValue":Gn.attributeValue,Is:Gn.definitionOperator,"EntityReference CharacterReference":Gn.character,Comment:Gn.blockComment,ProcessingInst:Gn.processingInstruction,DoctypeDecl:Gn.documentMeta}),wFe=uS.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:hFe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[_Fe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let b=n.type.id;if(b==Jze)return Gie(n,c,o);if(b==eFe)return Gie(n,c,f);if(b==tFe)return Gie(n,c,P);if(b==Pwe&&d.length){let i=n.node,O=i.firstChild,w=O&&o0e(O,c),y;if(w){for(let p of d)if(p.tag==w&&(!p.attrs||p.attrs(y||(y=Bwe(i,c))))){let a=i.lastChild,u=a.type.id==rFe?a.from:i.to;if(u>O.to)return{parser:p.parser,overlay:[{from:O.to,to:u}]}}}}if(l&&b==Rwe){let i=n.node,O;if(O=i.firstChild){let w=l[c.read(O.from,O.to)];if(w)for(let y of w){if(y.tagName&&y.tagName!=o0e(i.parent,c))continue;let p=i.lastChild;if(p.type.id==ele){let a=p.from+1,u=p.lastChild,h=p.to-(u&&u.isError?0:1);if(h>a)return{parser:y.parser,overlay:[{from:a,to:h}]}}else if(p.type.id==Lwe)return{parser:y.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}const OFe=96,i0e=1,SFe=97,kFe=98,a0e=2,Fwe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],TFe=58,CFe=40,Nwe=95,AFe=91,TH=45,MFe=46,EFe=35,PFe=37,RFe=38,LFe=92,IFe=10;function AZ(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function DFe(t){return t>=48&&t<=57}const BFe=new A0((t,e)=>{for(let o=!1,f=0,P=0;;P++){let{next:d}=t;if(AZ(d)||d==TH||d==Nwe||o&&DFe(d))!o&&(d!=TH||P>0)&&(o=!0),f===P&&d==TH&&f++,t.advance();else if(d==LFe&&t.peek(1)!=IFe)t.advance(),t.next>-1&&t.advance(),o=!0;else{o&&t.acceptToken(d==CFe?SFe:f==2&&e.canShift(a0e)?a0e:kFe);break}}}),zFe=new A0(t=>{if(Fwe.includes(t.peek(-1))){let{next:e}=t;(AZ(e)||e==Nwe||e==EFe||e==MFe||e==AFe||e==TFe||e==TH||e==RFe)&&t.acceptToken(OFe)}}),FFe=new A0(t=>{if(!Fwe.includes(t.peek(-1))){let{next:e}=t;if(e==PFe&&(t.advance(),t.acceptToken(i0e)),AZ(e)){do t.advance();while(AZ(t.next));t.acceptToken(i0e)}}}),NFe=mS({"AtKeyword import charset namespace keyframes media supports":Gn.definitionKeyword,"from to selector":Gn.keyword,NamespaceName:Gn.namespace,KeyframeName:Gn.labelName,KeyframeRangeName:Gn.operatorKeyword,TagName:Gn.tagName,ClassName:Gn.className,PseudoClassName:Gn.constant(Gn.className),IdName:Gn.labelName,"FeatureName PropertyName":Gn.propertyName,AttributeName:Gn.attributeName,NumberLiteral:Gn.number,KeywordQuery:Gn.keyword,UnaryQueryOp:Gn.operatorKeyword,"CallTag ValueName":Gn.atom,VariableName:Gn.variableName,Callee:Gn.operatorKeyword,Unit:Gn.unit,"UniversalSelector NestingSelector":Gn.definitionOperator,MatchOp:Gn.compareOperator,"ChildOp SiblingOp, LogicOp":Gn.logicOperator,BinOp:Gn.arithmeticOperator,Important:Gn.modifier,Comment:Gn.blockComment,ColorLiteral:Gn.color,"ParenthesizedContent StringLiteral":Gn.string,":":Gn.punctuation,"PseudoOp #":Gn.derefOperator,"; ,":Gn.separator,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace}),$Fe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},VFe={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},UFe={__proto__:null,not:128,only:128},jFe=uS.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[zFe,FFe,BFe,1,2,3,4,new sZ("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:t=>$Fe[t]||-1},{term:56,get:t=>VFe[t]||-1},{term:98,get:t=>UFe[t]||-1}],tokenPrec:1169});let Kie=null;function Jie(){if(!Kie&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],o=new Set;for(let f in t)f!="cssText"&&f!="cssFloat"&&typeof t[f]=="string"&&(/[A-Z]/.test(f)&&(f=f.replace(/[A-Z]/g,P=>"-"+P.toLowerCase())),o.has(f)||(e.push(f),o.add(f)));Kie=e.sort().map(f=>({type:"property",label:f}))}return Kie||[]}const s0e=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),l0e=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),QFe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),F4=/^(\w[\w-]*|-\w[\w-]*|)$/,HFe=/^-(-[\w-]*)?$/;function ZFe(t,e){var o;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let f=(o=t.parent)===null||o===void 0?void 0:o.firstChild;return(f==null?void 0:f.name)!="Callee"?!1:e.sliceString(f.from,f.to)=="var"}const c0e=new hce,qFe=["Declaration"];function WFe(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function $we(t,e,o){if(e.to-e.from>4096){let f=c0e.get(e);if(f)return f;let P=[],d=new Set,l=e.cursor(mf.IncludeAnonymous);if(l.firstChild())do for(let n of $we(t,l.node,o))d.has(n.label)||(d.add(n.label),P.push(n));while(l.nextSibling());return c0e.set(e,P),P}else{let f=[],P=new Set;return e.cursor().iterate(d=>{var l;if(o(d)&&d.matchContext(qFe)&&((l=d.node.nextSibling)===null||l===void 0?void 0:l.name)==":"){let n=t.sliceString(d.from,d.to);P.has(n)||(P.add(n),f.push({label:n,type:"variable"}))}}),f}}const YFe=t=>e=>{let{state:o,pos:f}=e,P=Gu(o).resolveInner(f,-1),d=P.type.isError&&P.from==P.to-1&&o.doc.sliceString(P.from,P.to)=="-";if(P.name=="PropertyName"||(d||P.name=="TagName")&&/^(Block|Styles)$/.test(P.resolve(P.to).name))return{from:P.from,options:Jie(),validFor:F4};if(P.name=="ValueName")return{from:P.from,options:l0e,validFor:F4};if(P.name=="PseudoClassName")return{from:P.from,options:s0e,validFor:F4};if(t(P)||(e.explicit||d)&&ZFe(P,o.doc))return{from:t(P)||d?P.from:f,options:$we(o.doc,WFe(P),t),validFor:HFe};if(P.name=="TagName"){for(let{parent:c}=P;c;c=c.parent)if(c.name=="Block")return{from:P.from,options:Jie(),validFor:F4};return{from:P.from,options:QFe,validFor:F4}}if(!e.explicit)return null;let l=P.resolve(f),n=l.childBefore(f);return n&&n.name==":"&&l.name=="PseudoClassSelector"?{from:f,options:s0e,validFor:F4}:n&&n.name==":"&&l.name=="Declaration"||l.name=="ArgList"?{from:f,options:l0e,validFor:F4}:l.name=="Block"||l.name=="Styles"?{from:f,options:Jie(),validFor:F4}:null},XFe=YFe(t=>t.name=="VariableName"),MZ=lS.define({name:"css",parser:jFe.configure({props:[OT.add({Declaration:fI()}),gS.add({"Block KeyframeList":bce})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function GFe(){return new gT(MZ,MZ.data.of({autocomplete:XFe}))}const KFe=304,u0e=1,JFe=2,eNe=305,tNe=307,nNe=308,rNe=3,oNe=4,iNe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Vwe=125,aNe=59,f0e=47,sNe=42,lNe=43,cNe=45,uNe=new Bce({start:!1,shift(t,e){return e==rNe||e==oNe||e==tNe?t:e==nNe},strict:!1}),fNe=new A0((t,e)=>{let{next:o}=t;(o==Vwe||o==-1||e.context)&&t.acceptToken(eNe)},{contextual:!0,fallback:!0}),dNe=new A0((t,e)=>{let{next:o}=t,f;iNe.indexOf(o)>-1||o==f0e&&((f=t.peek(1))==f0e||f==sNe)||o!=Vwe&&o!=aNe&&o!=-1&&!e.context&&t.acceptToken(KFe)},{contextual:!0}),hNe=new A0((t,e)=>{let{next:o}=t;if((o==lNe||o==cNe)&&(t.advance(),o==t.next)){t.advance();let f=!e.context&&e.canShift(u0e);t.acceptToken(f?u0e:JFe)}},{contextual:!0}),pNe=mS({"get set async static":Gn.modifier,"for while do if else switch try catch finally return throw break continue default case":Gn.controlKeyword,"in of await yield void typeof delete instanceof":Gn.operatorKeyword,"let var const using function class extends":Gn.definitionKeyword,"import export from":Gn.moduleKeyword,"with debugger as new":Gn.keyword,TemplateString:Gn.special(Gn.string),super:Gn.atom,BooleanLiteral:Gn.bool,this:Gn.self,null:Gn.null,Star:Gn.modifier,VariableName:Gn.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Gn.function(Gn.variableName),VariableDefinition:Gn.definition(Gn.variableName),Label:Gn.labelName,PropertyName:Gn.propertyName,PrivatePropertyName:Gn.special(Gn.propertyName),"CallExpression/MemberExpression/PropertyName":Gn.function(Gn.propertyName),"FunctionDeclaration/VariableDefinition":Gn.function(Gn.definition(Gn.variableName)),"ClassDeclaration/VariableDefinition":Gn.definition(Gn.className),PropertyDefinition:Gn.definition(Gn.propertyName),PrivatePropertyDefinition:Gn.definition(Gn.special(Gn.propertyName)),UpdateOp:Gn.updateOperator,"LineComment Hashbang":Gn.lineComment,BlockComment:Gn.blockComment,Number:Gn.number,String:Gn.string,Escape:Gn.escape,ArithOp:Gn.arithmeticOperator,LogicOp:Gn.logicOperator,BitOp:Gn.bitwiseOperator,CompareOp:Gn.compareOperator,RegExp:Gn.regexp,Equals:Gn.definitionOperator,Arrow:Gn.function(Gn.punctuation),": Spread":Gn.punctuation,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace,"InterpolationStart InterpolationEnd":Gn.special(Gn.brace),".":Gn.derefOperator,", ;":Gn.separator,"@":Gn.meta,TypeName:Gn.typeName,TypeDefinition:Gn.definition(Gn.typeName),"type enum interface implements namespace module declare":Gn.definitionKeyword,"abstract global Privacy readonly override":Gn.modifier,"is keyof unique infer":Gn.operatorKeyword,JSXAttributeValue:Gn.attributeValue,JSXText:Gn.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Gn.angleBracket,"JSXIdentifier JSXNameSpacedName":Gn.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Gn.attributeName,"JSXBuiltin/JSXIdentifier":Gn.standard(Gn.tagName)}),mNe={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},gNe={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},vNe={__proto__:null,"<":139},yNe=uS.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-ElOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-ExQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AfQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AnQSO,5=sO!AsQSO,5=sO!AxQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BWQWO,5=`O!B`Q,UO,5=aO!BkQSO,5=cO!BpQ`O,5=fO!BxQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!B}QSO'#HRO9{Q,UO'#HTO!CSQSO'#HTOOQQ,5=i,5=iO!CXQSO'#HUO!CjQSO'#CmO!CoQSO,58}O!CyQSO,58}O!FOQUO,58}OOQQ,58},58}O!F`Q(C[O,58}O%[QUO,58}O!HkQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IRQSO,5=uO`QUO,5={O`QUO,5=}O!IWQSO,5>PO`QUO,5>RO!I]QSO,5>UO!IbQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!MlQSO,5>fOOQQ,5>h,5>hO!MlQSO,5>hOOQQ,5>j,5>jO!MqQWO'#DYO%[QUO'#JiO!N`QWO'#JiO!N}QWO'#DhO# `QWO'#DhO##qQUO'#DhO##xQSO'#JhO#$QQSO,5:RO#$VQSO'#EnO#$eQSO'#JvO#$mQSO,5;XO#$rQWO'#DhO#%PQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%WQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%`QSO,5@TO#%eQ!LQO,5:pOOQO-E<_-E<_O#&kQ(C`O,5:{OChQWO,5:oO#&uQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'SQ(C[O,5:{O#'_Q(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'mQ(C[O,5:{POOO'#IU'#IUP#(RO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#(mQUO'#I[OOQO-EWQ(CjO1G0yO#>_Q(CjO1G0yO#@VQ(CjO1G0yO#CVQ$IUO'#CgO#ETQ$IUO1G1[O#E[Q$IUO'#JfO!,YQSO1G1bO#ElQ(CjO,5?SOOQ(CW-EeQSO1G3kO$.fQUO1G3mO$2jQUO'#HlOOQQ1G3p1G3pO$2wQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$3PQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$7WQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$7]Q$IUO,5:SOOQO,5;Y,5;YO$7gQWO'#I]O$7}QSO,5@SOOQ(CY1G/m1G/mO$8VQWO'#IcO$8aQSO,5@bOOQ(CW1G0s1G0sO# `QWO,5:SOOQO'#I`'#I`O$8iQWO,5:nOOQ(CY,5:n,5:nO#%ZQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8pQ(C[O1G0gO$8{Q(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$9ZQ(C[O1G0gOOQO1G0Z1G0ZO$9oQ(CjO1G0gPOOO-EvO$:]QSO1G5mO$:eQSO1G5zO$:mQbO1G5{O9TQSO,5>|O$:wQ(CjO1G5xO%[QUO1G5xO$;XQ(C[O1G5xO$;jQSO1G5wO$;jQSO1G5wO9TQSO1G5wO$;rQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$WOOQQ,5>W,5>WO%[QUO'#HmO%(vQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%({QWO1G5oO%)aQ$IUO1G0tO%)kQSO1G0tOOQO1G/n1G/nO%)vQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EjQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9oQ(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%*QQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%*]Q(C[O7+&RO%*kQ(CjO7++dO%[QUO7++dO%*{QSO7++cO%*{QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%+TQSO1G4kOOQO7+%z7+%zO#%ZQSO<xOOQO-E<[-E<[O%2yQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%3TQSO1G5qOOQ(CY<tQ$IUO1G0yO%>{Q$IUO1G0yO%@sQ$IUO1G0yO%AWQ(CjO<XOOQQ,5>Z,5>ZO& PQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO& UQ$IUO1G5{O>jQSO7+%YOOQ(CY<jQSO<jQSO7+)dO&6mQSO<{AN>{O%[QUOAN?XOOQO<PQSO7+*ZO&>[QSO<= ZO&>dQ`O7+*]OOQ(CW<nQ`O<uQSO<= dOOQQG27kG27kO9eQ(C[OG27kO!*SQUO1G4vO&>}QSO7++uO%MbQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&?VQSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#NWQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&?_QSOANBTOOQQ<fOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#APOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#C^O#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,sO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#C^O!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,sO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,sO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ tOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!jOz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#]O#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$zOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O`0gO'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+sO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#C^Om!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ tO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!jO#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#]O#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,sO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#C^O#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,sO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,sOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$J]Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$KOO(d$ZO~P#,sO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,sO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,sO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O`4`O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,sO!Y$|O~P#,sO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%%QOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O`5TO'v#mO'xTO'{UO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#C^O#Y5lO!W#bi!X#bi~O!W![i!X![i~P#C^O_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$J]O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$KOO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,sOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#C^OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%3jO#h9zO~P%3jOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5uOl9|O~P%5uOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%8QOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%8QOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:lO(k#|O~P%:lOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%yP?^P?^PPP?^PAOP?^P?^P?^PASPPAXPArPFjPPPFnPPPPFnIoPPPIuJpPFnPMOPPPP! ^FnPPPFnPFnP!#lFnP!'Q!(S!(]P!)P!)T!)PPPPPP!,`!(SPP!,|!-vP!0jFnFn!0o!3y!8`!8`!}P#@^#@e#@mPPPP#D{#Gr#NZ#N^#Na$ Y$ ]$ `$ g$ oPP$ u$ y$!q$#p$#t$$YPP$$^$$d$$hP$$k$$o$$r$%h$&P$&h$&l$&o$&r$&x$&{$'P$'TR!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ,T&^Q/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5T1VQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:uNe,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[pNe],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#mNe[t]||-1},{term:330,get:t=>gNe[t]||-1},{term:68,get:t=>vNe[t]||-1}],tokenPrec:12868}),Uwe=[Hd("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Hd("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Hd("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Hd("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Hd("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Hd(`try { +`);f=P<0?o:o.slice(0,P)}return e+f.length>this.to?f.slice(0,this.to-e):f}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,o,f=0){this.block=kZ.create(e,f,this.lineStart+o,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,o,f=0){this.startContext(this.parser.getNodeType(e),o,f)}addNode(e,o,f){typeof e=="number"&&(e=new ku(this.parser.nodeSet.types[e],_M,_M,(f??this.prevLineEnd())-o)),this.block.addChild(e,o-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,o){this.addNode(this.buffer.writeElements(Jse(o.children,e.marks),-o.from).finish(o.type,o.to-o.from),o.from)}finishContext(){let e=this.stack.pop(),o=this.stack[this.stack.length-1];o.addChild(e.toTree(this.parser.nodeSet),e.from-o.from),this.block=o}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?gwe(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let f of e.parsers)if(f.finish(this,e))return;let o=Jse(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(o,-e.start).finish(Wi.Paragraph,e.content.length),e.start)}elt(e,o,f,P){return typeof e=="string"?uu(this.parser.getNodeType(e),o,f,P):new bwe(e,o)}get buffer(){return new ywe(this.parser.nodeSet)}}function gwe(t,e,o,f,P){let d=t[e].to,l=[],n=[],c=o.from+f;function b(i,O){for(;O?i>=d:i>d;){let w=t[e+1].from-d;f+=w,i+=w,e++,d=t[e].to}}for(let i=o.firstChild;i;i=i.nextSibling){b(i.from+f,!0);let O=i.from+f,w,y=P.get(i.tree);y?w=y:i.to+f>d?(w=gwe(t,e,i,f,P),b(i.to+f,!1)):w=i.toTree(),l.push(w),n.push(O-c)}return b(o.to+f,!1),new ku(o.type,l,n,o.to+f-c,o.tree?o.tree.propValues:void 0)}class Fq extends pce{constructor(e,o,f,P,d,l,n,c,b){super(),this.nodeSet=e,this.blockParsers=o,this.leafBlockParsers=f,this.blockNames=P,this.endLeafBlock=d,this.skipContextMarkup=l,this.inlineParsers=n,this.inlineNames=c,this.wrappers=b,this.nodeTypes=Object.create(null);for(let i of e.types)this.nodeTypes[i.name]=i.id}createParse(e,o,f){let P=new wze(this,e,o,f);for(let d of this.wrappers)P=d(P,e,o,f);return P}configure(e){let o=Kse(e);if(!o)return this;let{nodeSet:f,skipContextMarkup:P}=this,d=this.blockParsers.slice(),l=this.leafBlockParsers.slice(),n=this.blockNames.slice(),c=this.inlineParsers.slice(),b=this.inlineNames.slice(),i=this.endLeafBlock.slice(),O=this.wrappers;if(VL(o.defineNodes)){P=Object.assign({},P);let w=f.types.slice(),y;for(let p of o.defineNodes){let{name:a,block:u,composite:h,style:m}=typeof p=="string"?{name:p}:p;if(w.some(S=>S.name==a))continue;h&&(P[w.length]=(S,A,x)=>h(A,x,S.value));let v=w.length,_=h?["Block","BlockContext"]:u?v>=Wi.ATXHeading1&&v<=Wi.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;w.push(Cp.define({id:v,name:a,props:_&&[[fl.group,_]]})),m&&(y||(y={}),Array.isArray(m)||m instanceof mx?y[a]=m:Object.assign(y,m))}f=new yD(w),y&&(f=f.extend(gS(y)))}if(VL(o.props)&&(f=f.extend(...o.props)),VL(o.remove))for(let w of o.remove){let y=this.blockNames.indexOf(w),p=this.inlineNames.indexOf(w);y>-1&&(d[y]=l[y]=void 0),p>-1&&(c[p]=void 0)}if(VL(o.parseBlock))for(let w of o.parseBlock){let y=n.indexOf(w.name);if(y>-1)d[y]=w.parse,l[y]=w.leaf;else{let p=w.before?nH(n,w.before):w.after?nH(n,w.after)+1:n.length-1;d.splice(p,0,w.parse),l.splice(p,0,w.leaf),n.splice(p,0,w.name)}w.endLeaf&&i.push(w.endLeaf)}if(VL(o.parseInline))for(let w of o.parseInline){let y=b.indexOf(w.name);if(y>-1)c[y]=w.parse;else{let p=w.before?nH(b,w.before):w.after?nH(b,w.after)+1:b.length-1;c.splice(p,0,w.parse),b.splice(p,0,w.name)}}return o.wrap&&(O=O.concat(o.wrap)),new Fq(f,d,l,n,i,P,c,b,O)}getNodeType(e){let o=this.nodeTypes[e];if(o==null)throw new RangeError(`Unknown node type '${e}'`);return o}parseInline(e,o){let f=new Sze(this,e,o);e:for(let P=o;P=0){P=n;continue e}}P++}return f.resolveMarkers(0)}}function VL(t){return t!=null&&t.length>0}function Kse(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let e=Kse(t[0]);if(t.length==1)return e;let o=Kse(t.slice(1));if(!o||!e)return e||o;let f=(l,n)=>(l||_M).concat(n||_M),P=e.wrap,d=o.wrap;return{props:f(e.props,o.props),defineNodes:f(e.defineNodes,o.defineNodes),parseBlock:f(e.parseBlock,o.parseBlock),parseInline:f(e.parseInline,o.parseInline),remove:f(e.remove,o.remove),wrap:P?d?(l,n,c,b)=>P(d(l,n,c,b),n,c,b):P:d}}function nH(t,e){let o=t.indexOf(e);if(o<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return o}let vwe=[Cp.none];for(let t=1,e;e=Wi[t];t++)vwe[t]=Cp.define({id:t,name:e,props:t>=Wi.Escape?[]:[[fl.group,t in swe?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});const _M=[];let ywe=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,o,f,P=0){return this.content.push(e,o,f,4+P*4),this}writeElements(e,o=0){for(let f of e)f.writeTo(this,o);return this}finish(e,o){return ku.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:o})}},nD=class{constructor(e,o,f,P=_M){this.type=e,this.from=o,this.to=f,this.children=P}writeTo(e,o){let f=e.content.length;e.writeElements(this.children,o),e.content.push(this.type,this.from+o,this.to+o,e.content.length+4-f)}toTree(e){return new ywe(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class bwe{constructor(e,o){this.tree=e,this.from=o}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return _M}writeTo(e,o){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+o,this.to+o,-1)}toTree(){return this.tree}}function uu(t,e,o,f){return new nD(t,e,o,f)}const xwe={resolve:"Emphasis",mark:"EmphasisMark"},_we={resolve:"Emphasis",mark:"EmphasisMark"},UL={},Uge={};class gx{constructor(e,o,f,P){this.type=e,this.from=o,this.to=f,this.side=P}}const jge="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let rD=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{rD=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const Yie={Escape(t,e,o){if(e!=92||o==t.end-1)return-1;let f=t.char(o+1);for(let P=0;P]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(f);if(P)return t.append(uu(Wi.URL,o,o+1+P[0].length));let d=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(f);if(d)return t.append(uu(Wi.Comment,o,o+1+d[0].length));let l=/^\?[^]*?\?>/.exec(f);if(l)return t.append(uu(Wi.ProcessingInstruction,o,o+1+l[0].length));let n=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(f);return n?t.append(uu(Wi.HTMLTag,o,o+1+n[0].length)):-1},Emphasis(t,e,o){if(e!=95&&e!=42)return-1;let f=o+1;for(;t.char(f)==e;)f++;let P=t.slice(o-1,o),d=t.slice(f,f+1),l=rD.test(P),n=rD.test(d),c=/\s|^$/.test(P),b=/\s|^$/.test(d),i=!b&&(!n||c||l),O=!c&&(!l||b||n),w=i&&(e==42||!O||l),y=O&&(e==42||!i||n);return t.append(new gx(e==95?xwe:_we,o,f,(w?1:0)|(y?2:0)))},HardBreak(t,e,o){if(e==92&&t.char(o+1)==10)return t.append(uu(Wi.HardBreak,o,o+2));if(e==32){let f=o+1;for(;t.char(f)==32;)f++;if(t.char(f)==10&&f>=o+2)return t.append(uu(Wi.HardBreak,o,f+1))}return-1},Link(t,e,o){return e==91?t.append(new gx(UL,o,o+1,1)):-1},Image(t,e,o){return e==33&&t.char(o+1)==91?t.append(new gx(Uge,o,o+2,1)):-1},LinkEnd(t,e,o){if(e!=93)return-1;for(let f=t.parts.length-1;f>=0;f--){let P=t.parts[f];if(P instanceof gx&&(P.type==UL||P.type==Uge)){if(!P.side||t.skipSpace(P.to)==o&&!/[(\[]/.test(t.slice(o+1,o+2)))return t.parts[f]=null,-1;let d=t.takeContent(f),l=t.parts[f]=Oze(t,d,P.type==UL?Wi.Link:Wi.Image,P.from,o+1);if(P.type==UL)for(let n=0;ne?uu(Wi.URL,e+o,d+o):d==t.length?null:!1}}function Owe(t,e,o){let f=t.charCodeAt(e);if(f!=39&&f!=34&&f!=40)return!1;let P=f==40?41:f;for(let d=e+1,l=!1;d=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,o){return this.text.slice(e-this.offset,o-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,o,f,P,d){return this.append(new gx(e,o,f,(P?1:0)|(d?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let f=e;f=e;c--){let a=this.parts[c];if(a instanceof gx&&a.side&1&&a.type==P.type&&!(d&&(P.side&1||a.side&2)&&(a.to-a.from+l)%3==0&&((a.to-a.from)%3||l%3))){n=a;break}}if(!n)continue;let b=P.type.resolve,i=[],O=n.from,w=P.to;if(d){let a=Math.min(2,n.to-n.from,l);O=n.to-a,w=P.from+a,b=a==1?"Emphasis":"StrongEmphasis"}n.type.mark&&i.push(this.elt(n.type.mark,O,n.to));for(let a=c+1;a=0;o--){let f=this.parts[o];if(f instanceof gx&&f.type==e)return o}return null}takeContent(e){let o=this.resolveMarkers(e);return this.parts.length=e,o}skipSpace(e){return mI(this.text,e-this.offset)+this.offset}elt(e,o,f,P){return typeof e=="string"?uu(this.parser.getNodeType(e),o,f,P):new bwe(e,o)}}function Jse(t,e){if(!e.length)return t;if(!t.length)return e;let o=t.slice(),f=0;for(let P of e){for(;f(e?e-1:0))return!1;if(this.fragmentEnd<0){let d=this.fragment.to;for(;d>0&&this.input.read(d-1,d)!=` +`;)d--;this.fragmentEnd=d?d-1:0}let f=this.cursor;f||(f=this.cursor=this.fragment.tree.cursor(),f.firstChild());let P=e+this.fragment.offset;for(;f.to<=P;)if(!f.parent())return!1;for(;;){if(f.from>=P)return this.fragment.from<=o;if(!f.childAfter(P))return!1}}matches(e){let o=this.cursor.tree;return o&&o.prop(fl.contextHash)==e}takeNodes(e){let o=this.cursor,f=this.fragment.offset,P=this.fragmentEnd-(this.fragment.openEnd?1:0),d=e.absoluteLineStart,l=d,n=e.block.children.length,c=l,b=n;for(;;){if(o.to-f>P){if(o.type.isAnonymous&&o.firstChild())continue;break}let i=kwe(o.from-f,e.ranges);if(o.to-f<=e.ranges[e.rangeI].to)e.addNode(o.tree,i);else{let O=new ku(e.parser.nodeSet.types[Wi.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(O,o.tree),e.addNode(O,i)}if(o.type.is("Block")&&(kze.indexOf(o.type.id)<0?(l=o.to-f,n=e.block.children.length):(l=c,n=b,c=o.to-f,b=e.block.children.length)),!o.nextSibling())break}for(;e.block.children.length>n;)e.block.children.pop(),e.block.positions.pop();return l-d}}function kwe(t,e){let o=t;for(let f=1;ftH[t]),Object.keys(tH).map(t=>bze[t]),Object.keys(tH),xze,swe,Object.keys(Yie).map(t=>Yie[t]),Object.keys(Yie),[]);function Mze(t,e,o){let f=[];for(let P=t.firstChild,d=e;;P=P.nextSibling){let l=P?P.from:o;if(l>d&&f.push({from:d,to:l}),!P)break;d=P.to}return f}function Eze(t){let{codeParser:e,htmlParser:o}=t;return{wrap:Wye((P,d)=>{let l=P.type.id;if(e&&(l==Wi.CodeBlock||l==Wi.FencedCode)){let n="";if(l==Wi.FencedCode){let b=P.node.getChild(Wi.CodeInfo);b&&(n=d.read(b.from,b.to))}let c=e(n);if(c)return{parser:c,overlay:b=>b.type.id==Wi.CodeText}}else if(o&&(l==Wi.HTMLBlock||l==Wi.HTMLTag))return{parser:o,overlay:Mze(P.node,P.from,P.to)};return null})}}const Pze={resolve:"Strikethrough",mark:"StrikethroughMark"},Rze={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Gn.strikethrough}},{name:"StrikethroughMark",style:Gn.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,o){if(e!=126||t.char(o+1)!=126||t.char(o+2)==126)return-1;let f=t.slice(o-1,o),P=t.slice(o+2,o+3),d=/\s|^$/.test(f),l=/\s|^$/.test(P),n=rD.test(f),c=rD.test(P);return t.addDelimiter(Pze,o,o+2,!l&&(!c||d||n),!d&&(!n||l||c))},after:"Emphasis"}]};function gI(t,e,o=0,f,P=0){let d=0,l=!0,n=-1,c=-1,b=!1,i=()=>{f.push(t.elt("TableCell",P+n,P+c,t.parser.parseInline(e.slice(n,c),P+n)))};for(let O=o;O-1)&&d++,l=!1,f&&(n>-1&&i(),f.push(t.elt("TableDelimiter",O+P,O+P+1))),n=c=-1):(b||w!=32&&w!=9)&&(n<0&&(n=O),c=O+1),b=!b&&w==92}return n>-1&&(d++,f&&i()),d}function Qge(t,e){for(let o=e;oP instanceof Hge)||!Qge(e.text,e.basePos))return!1;let f=t.scanLine(t.absoluteLineEnd+1).text;return Twe.test(f)&&gI(t,e.text,e.basePos)==gI(t,f,e.basePos)},before:"SetextHeading"}]};class Ize{nextLine(){return!1}finish(e,o){return e.addLeafElement(o,e.elt("Task",o.start,o.start+o.content.length,[e.elt("TaskMarker",o.start,o.start+3),...e.parser.parseInline(o.content.slice(3),o.start+3)])),!0}}const Dze={defineNodes:[{name:"Task",block:!0,style:Gn.list},{name:"TaskMarker",style:Gn.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new Ize:null},after:"SetextHeading"}]},Zge=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,qge=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,Bze=/[\w-]+\.[\w-]+($|\/)/,Wge=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Yge=/\/[a-zA-Z\d@.]+/gy;function Xge(t,e,o,f){let P=0;for(let d=e;d-1)return-1;let f=e+o[0].length;for(;;){let P=t[f-1],d;if(/[?!.,:*_~]/.test(P)||P==")"&&Xge(t,e,f,")")>Xge(t,e,f,"("))f--;else if(P==";"&&(d=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,f))))f=e+d.index;else break}return f}function Gge(t,e){Wge.lastIndex=e;let o=Wge.exec(t);if(!o)return-1;let f=o[0][o[0].length-1];return f=="_"||f=="-"?-1:e+o[0].length-(f=="."?1:0)}const Fze={parseInline:[{name:"Autolink",parse(t,e,o){let f=o-t.offset;Zge.lastIndex=f;let P=Zge.exec(t.text),d=-1;return!P||(P[1]||P[2]?d=zze(t.text,f+P[0].length):P[3]?d=Gge(t.text,f):(d=Gge(t.text,f+P[0].length),d>-1&&P[0]=="xmpp:"&&(Yge.lastIndex=d,P=Yge.exec(t.text),P&&(d=P.index+P[0].length))),d<0)?-1:(t.addElement(t.elt("URL",o,d+t.offset)),d+t.offset)}}]},Nze=[Lze,Dze,Rze,Fze];function Cwe(t,e,o){return(f,P,d)=>{if(P!=t||f.char(d+1)==t)return-1;let l=[f.elt(o,d,d+1)];for(let n=d+1;n=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function Dwe(t){return t==9||t==10||t==13||t==32}let t0e=null,n0e=null,r0e=0;function tle(t,e){let o=t.pos+e;if(r0e==o&&n0e==t)return t0e;let f=t.peek(e);for(;Dwe(f);)f=t.peek(++e);let P="";for(;fFe(f);)P+=String.fromCharCode(f),f=t.peek(++e);return n0e=t,r0e=o,t0e=P?P.toLowerCase():f==dFe||f==hFe?void 0:null}const Bwe=60,CZ=62,Rue=47,dFe=63,hFe=33,pFe=45;function o0e(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let o=0;o-1?new o0e(tle(f,1)||"",t):t},reduce(t,e){return e==Rwe&&t?t.parent:t},reuse(t,e,o,f){let P=e.type.id;return P==TZ||P==iFe?new o0e(tle(f,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),vFe=new A0((t,e)=>{if(t.next!=Bwe){t.next<0&&e.context&&t.acceptToken(Xie);return}t.advance();let o=t.next==Rue;o&&t.advance();let f=tle(t,0);if(f===void 0)return;if(!f)return t.acceptToken(o?Jze:TZ);let P=e.context?e.context.name:null;if(o){if(f==P)return t.acceptToken(Xze);if(P&&uFe[P])return t.acceptToken(Xie,-2);if(e.dialectEnabled(sFe))return t.acceptToken(Gze);for(let d=e.context;d;d=d.parent)if(d.name==f)return;t.acceptToken(Kze)}else{if(f=="script")return t.acceptToken(Awe);if(f=="style")return t.acceptToken(Mwe);if(f=="textarea")return t.acceptToken(Ewe);if(cFe.hasOwnProperty(f))return t.acceptToken(Pwe);P&&e0e[P]&&e0e[P][f]?t.acceptToken(Xie,-1):t.acceptToken(TZ)}},{contextual:!0}),yFe=new A0(t=>{for(let e=0,o=0;;o++){if(t.next<0){o&&t.acceptToken(Jge);break}if(t.next==pFe)e++;else if(t.next==CZ&&e>=2){o>=3&&t.acceptToken(Jge,-2);break}else e=0;t.advance()}});function bFe(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const xFe=new A0((t,e)=>{if(t.next==Rue&&t.peek(1)==CZ){let o=e.dialectEnabled(lFe)||bFe(e.context);t.acceptToken(o?Yze:Kge,2)}else t.next==CZ&&t.acceptToken(Kge,1)});function Lue(t,e,o){let f=2+t.length;return new A0(P=>{for(let d=0,l=0,n=0;;n++){if(P.next<0){n&&P.acceptToken(e);break}if(d==0&&P.next==Bwe||d==1&&P.next==Rue||d>=2&&dl?P.acceptToken(e,-l):P.acceptToken(o,-(l-2));break}else if((P.next==10||P.next==13)&&n){P.acceptToken(e,1);break}else d=l=0;P.advance()}})}const _Fe=Lue("script",jze,Qze),wFe=Lue("style",Hze,Zze),OFe=Lue("textarea",qze,Wze),SFe=gS({"Text RawText":Gn.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Gn.angleBracket,TagName:Gn.tagName,"MismatchedCloseTag/TagName":[Gn.tagName,Gn.invalid],AttributeName:Gn.attributeName,"AttributeValue UnquotedAttributeValue":Gn.attributeValue,Is:Gn.definitionOperator,"EntityReference CharacterReference":Gn.character,Comment:Gn.blockComment,ProcessingInst:Gn.processingInstruction,DoctypeDecl:Gn.documentMeta}),kFe=fS.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:gFe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[SFe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let b=n.type.id;if(b==nFe)return Gie(n,c,o);if(b==rFe)return Gie(n,c,f);if(b==oFe)return Gie(n,c,P);if(b==Rwe&&d.length){let i=n.node,O=i.firstChild,w=O&&i0e(O,c),y;if(w){for(let p of d)if(p.tag==w&&(!p.attrs||p.attrs(y||(y=zwe(i,c))))){let a=i.lastChild,u=a.type.id==aFe?a.from:i.to;if(u>O.to)return{parser:p.parser,overlay:[{from:O.to,to:u}]}}}}if(l&&b==Lwe){let i=n.node,O;if(O=i.firstChild){let w=l[c.read(O.from,O.to)];if(w)for(let y of w){if(y.tagName&&y.tagName!=i0e(i.parent,c))continue;let p=i.lastChild;if(p.type.id==ele){let a=p.from+1,u=p.lastChild,h=p.to-(u&&u.isError?0:1);if(h>a)return{parser:y.parser,overlay:[{from:a,to:h}]}}else if(p.type.id==Iwe)return{parser:y.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}const TFe=96,a0e=1,CFe=97,AFe=98,s0e=2,Nwe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],MFe=58,EFe=40,$we=95,PFe=91,TH=45,RFe=46,LFe=35,IFe=37,DFe=38,BFe=92,zFe=10;function AZ(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function FFe(t){return t>=48&&t<=57}const NFe=new A0((t,e)=>{for(let o=!1,f=0,P=0;;P++){let{next:d}=t;if(AZ(d)||d==TH||d==$we||o&&FFe(d))!o&&(d!=TH||P>0)&&(o=!0),f===P&&d==TH&&f++,t.advance();else if(d==BFe&&t.peek(1)!=zFe)t.advance(),t.next>-1&&t.advance(),o=!0;else{o&&t.acceptToken(d==EFe?CFe:f==2&&e.canShift(s0e)?s0e:AFe);break}}}),$Fe=new A0(t=>{if(Nwe.includes(t.peek(-1))){let{next:e}=t;(AZ(e)||e==$we||e==LFe||e==RFe||e==PFe||e==MFe||e==TH||e==DFe)&&t.acceptToken(TFe)}}),VFe=new A0(t=>{if(!Nwe.includes(t.peek(-1))){let{next:e}=t;if(e==IFe&&(t.advance(),t.acceptToken(a0e)),AZ(e)){do t.advance();while(AZ(t.next));t.acceptToken(a0e)}}}),UFe=gS({"AtKeyword import charset namespace keyframes media supports":Gn.definitionKeyword,"from to selector":Gn.keyword,NamespaceName:Gn.namespace,KeyframeName:Gn.labelName,KeyframeRangeName:Gn.operatorKeyword,TagName:Gn.tagName,ClassName:Gn.className,PseudoClassName:Gn.constant(Gn.className),IdName:Gn.labelName,"FeatureName PropertyName":Gn.propertyName,AttributeName:Gn.attributeName,NumberLiteral:Gn.number,KeywordQuery:Gn.keyword,UnaryQueryOp:Gn.operatorKeyword,"CallTag ValueName":Gn.atom,VariableName:Gn.variableName,Callee:Gn.operatorKeyword,Unit:Gn.unit,"UniversalSelector NestingSelector":Gn.definitionOperator,MatchOp:Gn.compareOperator,"ChildOp SiblingOp, LogicOp":Gn.logicOperator,BinOp:Gn.arithmeticOperator,Important:Gn.modifier,Comment:Gn.blockComment,ColorLiteral:Gn.color,"ParenthesizedContent StringLiteral":Gn.string,":":Gn.punctuation,"PseudoOp #":Gn.derefOperator,"; ,":Gn.separator,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace}),jFe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},QFe={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},HFe={__proto__:null,not:128,only:128},ZFe=fS.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[$Fe,VFe,NFe,1,2,3,4,new sZ("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:t=>jFe[t]||-1},{term:56,get:t=>QFe[t]||-1},{term:98,get:t=>HFe[t]||-1}],tokenPrec:1169});let Kie=null;function Jie(){if(!Kie&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],o=new Set;for(let f in t)f!="cssText"&&f!="cssFloat"&&typeof t[f]=="string"&&(/[A-Z]/.test(f)&&(f=f.replace(/[A-Z]/g,P=>"-"+P.toLowerCase())),o.has(f)||(e.push(f),o.add(f)));Kie=e.sort().map(f=>({type:"property",label:f}))}return Kie||[]}const l0e=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),c0e=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),qFe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),F4=/^(\w[\w-]*|-\w[\w-]*|)$/,WFe=/^-(-[\w-]*)?$/;function YFe(t,e){var o;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let f=(o=t.parent)===null||o===void 0?void 0:o.firstChild;return(f==null?void 0:f.name)!="Callee"?!1:e.sliceString(f.from,f.to)=="var"}const u0e=new hce,XFe=["Declaration"];function GFe(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function Vwe(t,e,o){if(e.to-e.from>4096){let f=u0e.get(e);if(f)return f;let P=[],d=new Set,l=e.cursor(mf.IncludeAnonymous);if(l.firstChild())do for(let n of Vwe(t,l.node,o))d.has(n.label)||(d.add(n.label),P.push(n));while(l.nextSibling());return u0e.set(e,P),P}else{let f=[],P=new Set;return e.cursor().iterate(d=>{var l;if(o(d)&&d.matchContext(XFe)&&((l=d.node.nextSibling)===null||l===void 0?void 0:l.name)==":"){let n=t.sliceString(d.from,d.to);P.has(n)||(P.add(n),f.push({label:n,type:"variable"}))}}),f}}const KFe=t=>e=>{let{state:o,pos:f}=e,P=Gu(o).resolveInner(f,-1),d=P.type.isError&&P.from==P.to-1&&o.doc.sliceString(P.from,P.to)=="-";if(P.name=="PropertyName"||(d||P.name=="TagName")&&/^(Block|Styles)$/.test(P.resolve(P.to).name))return{from:P.from,options:Jie(),validFor:F4};if(P.name=="ValueName")return{from:P.from,options:c0e,validFor:F4};if(P.name=="PseudoClassName")return{from:P.from,options:l0e,validFor:F4};if(t(P)||(e.explicit||d)&&YFe(P,o.doc))return{from:t(P)||d?P.from:f,options:Vwe(o.doc,GFe(P),t),validFor:WFe};if(P.name=="TagName"){for(let{parent:c}=P;c;c=c.parent)if(c.name=="Block")return{from:P.from,options:Jie(),validFor:F4};return{from:P.from,options:qFe,validFor:F4}}if(!e.explicit)return null;let l=P.resolve(f),n=l.childBefore(f);return n&&n.name==":"&&l.name=="PseudoClassSelector"?{from:f,options:l0e,validFor:F4}:n&&n.name==":"&&l.name=="Declaration"||l.name=="ArgList"?{from:f,options:c0e,validFor:F4}:l.name=="Block"||l.name=="Styles"?{from:f,options:Jie(),validFor:F4}:null},JFe=KFe(t=>t.name=="VariableName"),MZ=cS.define({name:"css",parser:ZFe.configure({props:[OT.add({Declaration:dI()}),vS.add({"Block KeyframeList":bce})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function eNe(){return new gT(MZ,MZ.data.of({autocomplete:JFe}))}const tNe=304,f0e=1,nNe=2,rNe=305,oNe=307,iNe=308,aNe=3,sNe=4,lNe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Uwe=125,cNe=59,d0e=47,uNe=42,fNe=43,dNe=45,hNe=new Bce({start:!1,shift(t,e){return e==aNe||e==sNe||e==oNe?t:e==iNe},strict:!1}),pNe=new A0((t,e)=>{let{next:o}=t;(o==Uwe||o==-1||e.context)&&t.acceptToken(rNe)},{contextual:!0,fallback:!0}),mNe=new A0((t,e)=>{let{next:o}=t,f;lNe.indexOf(o)>-1||o==d0e&&((f=t.peek(1))==d0e||f==uNe)||o!=Uwe&&o!=cNe&&o!=-1&&!e.context&&t.acceptToken(tNe)},{contextual:!0}),gNe=new A0((t,e)=>{let{next:o}=t;if((o==fNe||o==dNe)&&(t.advance(),o==t.next)){t.advance();let f=!e.context&&e.canShift(f0e);t.acceptToken(f?f0e:nNe)}},{contextual:!0}),vNe=gS({"get set async static":Gn.modifier,"for while do if else switch try catch finally return throw break continue default case":Gn.controlKeyword,"in of await yield void typeof delete instanceof":Gn.operatorKeyword,"let var const using function class extends":Gn.definitionKeyword,"import export from":Gn.moduleKeyword,"with debugger as new":Gn.keyword,TemplateString:Gn.special(Gn.string),super:Gn.atom,BooleanLiteral:Gn.bool,this:Gn.self,null:Gn.null,Star:Gn.modifier,VariableName:Gn.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Gn.function(Gn.variableName),VariableDefinition:Gn.definition(Gn.variableName),Label:Gn.labelName,PropertyName:Gn.propertyName,PrivatePropertyName:Gn.special(Gn.propertyName),"CallExpression/MemberExpression/PropertyName":Gn.function(Gn.propertyName),"FunctionDeclaration/VariableDefinition":Gn.function(Gn.definition(Gn.variableName)),"ClassDeclaration/VariableDefinition":Gn.definition(Gn.className),PropertyDefinition:Gn.definition(Gn.propertyName),PrivatePropertyDefinition:Gn.definition(Gn.special(Gn.propertyName)),UpdateOp:Gn.updateOperator,"LineComment Hashbang":Gn.lineComment,BlockComment:Gn.blockComment,Number:Gn.number,String:Gn.string,Escape:Gn.escape,ArithOp:Gn.arithmeticOperator,LogicOp:Gn.logicOperator,BitOp:Gn.bitwiseOperator,CompareOp:Gn.compareOperator,RegExp:Gn.regexp,Equals:Gn.definitionOperator,Arrow:Gn.function(Gn.punctuation),": Spread":Gn.punctuation,"( )":Gn.paren,"[ ]":Gn.squareBracket,"{ }":Gn.brace,"InterpolationStart InterpolationEnd":Gn.special(Gn.brace),".":Gn.derefOperator,", ;":Gn.separator,"@":Gn.meta,TypeName:Gn.typeName,TypeDefinition:Gn.definition(Gn.typeName),"type enum interface implements namespace module declare":Gn.definitionKeyword,"abstract global Privacy readonly override":Gn.modifier,"is keyof unique infer":Gn.operatorKeyword,JSXAttributeValue:Gn.attributeValue,JSXText:Gn.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Gn.angleBracket,"JSXIdentifier JSXNameSpacedName":Gn.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Gn.attributeName,"JSXBuiltin/JSXIdentifier":Gn.standard(Gn.tagName)}),yNe={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},bNe={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},xNe={__proto__:null,"<":139},_Ne=fS.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-ElOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-ExQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AfQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AnQSO,5=sO!AsQSO,5=sO!AxQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BWQWO,5=`O!B`Q,UO,5=aO!BkQSO,5=cO!BpQ`O,5=fO!BxQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!B}QSO'#HRO9{Q,UO'#HTO!CSQSO'#HTOOQQ,5=i,5=iO!CXQSO'#HUO!CjQSO'#CmO!CoQSO,58}O!CyQSO,58}O!FOQUO,58}OOQQ,58},58}O!F`Q(C[O,58}O%[QUO,58}O!HkQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IRQSO,5=uO`QUO,5={O`QUO,5=}O!IWQSO,5>PO`QUO,5>RO!I]QSO,5>UO!IbQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!MlQSO,5>fOOQQ,5>h,5>hO!MlQSO,5>hOOQQ,5>j,5>jO!MqQWO'#DYO%[QUO'#JiO!N`QWO'#JiO!N}QWO'#DhO# `QWO'#DhO##qQUO'#DhO##xQSO'#JhO#$QQSO,5:RO#$VQSO'#EnO#$eQSO'#JvO#$mQSO,5;XO#$rQWO'#DhO#%PQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%WQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%`QSO,5@TO#%eQ!LQO,5:pOOQO-E<_-E<_O#&kQ(C`O,5:{OChQWO,5:oO#&uQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'SQ(C[O,5:{O#'_Q(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'mQ(C[O,5:{POOO'#IU'#IUP#(RO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#(mQUO'#I[OOQO-EWQ(CjO1G0yO#>_Q(CjO1G0yO#@VQ(CjO1G0yO#CVQ$IUO'#CgO#ETQ$IUO1G1[O#E[Q$IUO'#JfO!,YQSO1G1bO#ElQ(CjO,5?SOOQ(CW-EeQSO1G3kO$.fQUO1G3mO$2jQUO'#HlOOQQ1G3p1G3pO$2wQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$3PQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$7WQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$7]Q$IUO,5:SOOQO,5;Y,5;YO$7gQWO'#I]O$7}QSO,5@SOOQ(CY1G/m1G/mO$8VQWO'#IcO$8aQSO,5@bOOQ(CW1G0s1G0sO# `QWO,5:SOOQO'#I`'#I`O$8iQWO,5:nOOQ(CY,5:n,5:nO#%ZQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8pQ(C[O1G0gO$8{Q(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$9ZQ(C[O1G0gOOQO1G0Z1G0ZO$9oQ(CjO1G0gPOOO-EvO$:]QSO1G5mO$:eQSO1G5zO$:mQbO1G5{O9TQSO,5>|O$:wQ(CjO1G5xO%[QUO1G5xO$;XQ(C[O1G5xO$;jQSO1G5wO$;jQSO1G5wO9TQSO1G5wO$;rQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$WOOQQ,5>W,5>WO%[QUO'#HmO%(vQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%({QWO1G5oO%)aQ$IUO1G0tO%)kQSO1G0tOOQO1G/n1G/nO%)vQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EjQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9oQ(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%*QQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%*]Q(C[O7+&RO%*kQ(CjO7++dO%[QUO7++dO%*{QSO7++cO%*{QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%+TQSO1G4kOOQO7+%z7+%zO#%ZQSO<xOOQO-E<[-E<[O%2yQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%3TQSO1G5qOOQ(CY<tQ$IUO1G0yO%>{Q$IUO1G0yO%@sQ$IUO1G0yO%AWQ(CjO<XOOQQ,5>Z,5>ZO& PQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO& UQ$IUO1G5{O>jQSO7+%YOOQ(CY<jQSO<jQSO7+)dO&6mQSO<{AN>{O%[QUOAN?XOOQO<PQSO7+*ZO&>[QSO<= ZO&>dQ`O7+*]OOQ(CW<nQ`O<uQSO<= dOOQQG27kG27kO9eQ(C[OG27kO!*SQUO1G4vO&>}QSO7++uO%MbQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&?VQSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#NWQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&?_QSOANBTOOQQ<fOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#APOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#C^O#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,sO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#C^O!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,sO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,sO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ tOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!jOz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#]O#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$zOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O`0gO'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+sO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#C^Om!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ tO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!jO#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#]O#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,sO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#C^O#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,sO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,sOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$J]Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$KOO(d$ZO~P#,sO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,sO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,sO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O`4`O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,sO!Y$|O~P#,sO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%%QOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O`5TO'v#mO'xTO'{UO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#C^O#Y5lO!W#bi!X#bi~O!W![i!X![i~P#C^O_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$J]O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$KOO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,sOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#C^OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%3jO#h9zO~P%3jOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5uOl9|O~P%5uOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%8QOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%8QOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:lO(k#|O~P%:lOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%yP?^P?^PPP?^PAOP?^P?^P?^PASPPAXPArPFjPPPFnPPPPFnIoPPPIuJpPFnPMOPPPP! ^FnPPPFnPFnP!#lFnP!'Q!(S!(]P!)P!)T!)PPPPPP!,`!(SPP!,|!-vP!0jFnFn!0o!3y!8`!8`!}P#@^#@e#@mPPPP#D{#Gr#NZ#N^#Na$ Y$ ]$ `$ g$ oPP$ u$ y$!q$#p$#t$$YPP$$^$$d$$hP$$k$$o$$r$%h$&P$&h$&l$&o$&r$&x$&{$'P$'TR!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ,T&^Q/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5T1VQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:hNe,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[vNe],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#yNe[t]||-1},{term:330,get:t=>bNe[t]||-1},{term:68,get:t=>xNe[t]||-1}],tokenPrec:12868}),jwe=[Hd("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Hd("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Hd("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Hd("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Hd("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Hd(`try { \${} } catch (\${error}) { \${} @@ -3664,13 +3664,13 @@ Please report this to https://github.com/markedjs/marked.`,e){const P="

    An err constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),Hd('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Hd('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],bNe=Uwe.concat([Hd("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Hd("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Hd("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),d0e=new hce,jwe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function UL(t){return(e,o)=>{let f=e.node.getChild("VariableDefinition");return f&&o(f,t),!0}}const xNe=["FunctionDeclaration"],_Ne={FunctionDeclaration:UL("function"),ClassDeclaration:UL("class"),ClassExpression:()=>!0,EnumDeclaration:UL("constant"),TypeAliasDeclaration:UL("type"),NamespaceDeclaration:UL("namespace"),VariableDefinition(t,e){t.matchContext(xNe)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function Qwe(t,e){let o=d0e.get(e);if(o)return o;let f=[],P=!0;function d(l,n){let c=t.sliceString(l.from,l.to);f.push({label:c,type:n})}return e.cursor(mf.IncludeAnonymous).iterate(l=>{if(P)P=!1;else if(l.name){let n=_Ne[l.name];if(n&&n(l,d)||jwe.has(l.name))return!1}else if(l.to-l.from>8192){for(let n of Qwe(t,l.node))f.push(n);return!1}}),d0e.set(e,f),f}const h0e=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Hwe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function wNe(t){let e=Gu(t.state).resolveInner(t.pos,-1);if(Hwe.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&h0e.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let P=e;P;P=P.parent)jwe.has(P.name)&&(f=f.concat(Qwe(t.state.doc,P)));return{options:f,from:o?e.from:t.pos,validFor:h0e}}const d_=lS.define({name:"javascript",parser:yNe.configure({props:[OT.add({IfStatement:fI({except:/^\s*({|else\b)/}),TryStatement:fI({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:b8e,SwitchBody:t=>{let e=t.textAfter,o=/^\s*\}/.test(e),f=/^\s*(case|default)\b/.test(e);return t.baseIndent+(o?0:f?1:2)*t.unit},Block:xH({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":fI({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),gS.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":bce,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Zwe={test:t=>/^JSX/.test(t.name),facet:mce({commentTokens:{block:{open:"{/*",close:"*/}"}}})},qwe=d_.configure({dialect:"ts"},"typescript"),Wwe=d_.configure({dialect:"jsx",props:[gce.add(t=>t.isTop?[Zwe]:void 0)]}),Ywe=d_.configure({dialect:"jsx ts",props:[gce.add(t=>t.isTop?[Zwe]:void 0)]},"typescript");let Xwe=t=>({label:t,type:"keyword"});const Gwe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Xwe),ONe=Gwe.concat(["declare","implements","private","protected","public"].map(Xwe));function SNe(t={}){let e=t.jsx?t.typescript?Ywe:Wwe:t.typescript?qwe:d_,o=t.typescript?bNe.concat(ONe):Uwe.concat(Gwe);return new gT(e,[d_.data.of({autocomplete:Mce(Hwe,oq(o))}),d_.data.of({autocomplete:wNe}),t.jsx?CNe:[]])}function kNe(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function p0e(t,e,o=t.length){for(let f=e==null?void 0:e.firstChild;f;f=f.nextSibling)if(f.name=="JSXIdentifier"||f.name=="JSXBuiltin"||f.name=="JSXNamespacedName"||f.name=="JSXMemberExpression")return t.sliceString(f.from,Math.min(f.to,o));return""}const TNe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),CNe=Oa.inputHandler.of((t,e,o,f,P)=>{if((TNe?t.composing:t.compositionStarted)||t.state.readOnly||e!=o||f!=">"&&f!="/"||!d_.isActiveAt(t.state,e,-1))return!1;let d=P(),{state:l}=d,n=l.changeByRange(c=>{var b;let{head:i}=c,O=Gu(l).resolveInner(i-1,-1),w;if(O.name=="JSXStartTag"&&(O=O.parent),!(l.doc.sliceString(i-1,i)!=f||O.name=="JSXAttributeValue"&&O.to>i)){if(f==">"&&O.name=="JSXFragmentTag")return{range:c,changes:{from:i,insert:""}};if(f=="/"&&O.name=="JSXStartCloseTag"){let y=O.parent,p=y.parent;if(p&&y.from==i-2&&((w=p0e(l.doc,p.firstChild,i))||((b=p.firstChild)===null||b===void 0?void 0:b.name)=="JSXFragmentTag")){let a=`${w}>`;return{range:Yo.cursor(i+a.length,-1),changes:{from:i,insert:a}}}}else if(f==">"){let y=kNe(O);if(y&&!/^\/?>|^<\//.test(l.doc.sliceString(i,i+2))&&(w=p0e(l.doc,y,i)))return{range:c,changes:{from:i,insert:``}}}}return{range:c}});return n.changes.empty?!1:(t.dispatch([d,l.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),jL=["_blank","_self","_top","_parent"],eae=["ascii","utf-8","utf-16","latin1","latin1"],tae=["get","post","put","delete"],nae=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Mv=["true","false"],qa={},ANe={a:{attrs:{href:null,ping:null,type:null,media:null,target:jL,hreflang:null}},abbr:qa,address:qa,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:qa,aside:qa,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:qa,base:{attrs:{href:null,target:jL}},bdi:qa,bdo:qa,blockquote:{attrs:{cite:null}},body:qa,br:qa,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:nae,formmethod:tae,formnovalidate:["novalidate"],formtarget:jL,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:qa,center:qa,cite:qa,code:qa,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:qa,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:qa,div:qa,dl:qa,dt:qa,em:qa,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:qa,figure:qa,footer:qa,form:{attrs:{action:null,name:null,"accept-charset":eae,autocomplete:["on","off"],enctype:nae,method:tae,novalidate:["novalidate"],target:jL}},h1:qa,h2:qa,h3:qa,h4:qa,h5:qa,h6:qa,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:qa,hgroup:qa,hr:qa,html:{attrs:{manifest:null}},i:qa,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:nae,formmethod:tae,formnovalidate:["novalidate"],formtarget:jL,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:qa,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:qa,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:qa,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:eae,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:qa,noscript:qa,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:qa,param:{attrs:{name:null,value:null}},pre:qa,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:qa,rt:qa,ruby:qa,samp:qa,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:eae}},section:qa,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:qa,source:{attrs:{src:null,type:null,media:null}},span:qa,strong:qa,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:qa,summary:qa,sup:qa,table:qa,tbody:qa,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:qa,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:qa,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:qa,time:{attrs:{datetime:null}},title:qa,tr:qa,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:qa,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:qa},Kwe={accesskey:null,class:null,contenteditable:Mv,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Mv,autocorrect:Mv,autocapitalize:Mv,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Mv,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Mv,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Mv,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Mv,"aria-hidden":Mv,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Mv,"aria-multiselectable":Mv,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Mv,"aria-relevant":null,"aria-required":Mv,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Jwe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of Jwe)Kwe[t]=null;class rD{constructor(e,o){this.tags=Object.assign(Object.assign({},ANe),e),this.globalAttrs=Object.assign(Object.assign({},Kwe),o),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}rD.default=new rD;function _M(t,e,o=t.length){if(!e)return"";let f=e.firstChild,P=f&&f.getChild("TagName");return P?t.sliceString(P.from,Math.min(P.to,o)):""}function wM(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function eOe(t,e,o){let f=o.tags[_M(t,wM(e))];return(f==null?void 0:f.children)||o.allTags}function Lue(t,e){let o=[];for(let f=wM(e);f&&!f.type.isTop;f=wM(f.parent)){let P=_M(t,f);if(P&&f.lastChild.name=="CloseTag")break;P&&o.indexOf(P)<0&&(e.name=="EndTag"||e.from>=f.firstChild.to)&&o.push(P)}return o}const tOe=/^[:\-\.\w\u00b7-\uffff]*$/;function m0e(t,e,o,f,P){let d=/\s*>/.test(t.sliceDoc(P,P+5))?"":">",l=wM(o,!0);return{from:f,to:P,options:eOe(t.doc,l,e).map(n=>({label:n,type:"type"})).concat(Lue(t.doc,o).map((n,c)=>({label:"/"+n,apply:"/"+n+d,type:"type",boost:99-c}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function g0e(t,e,o,f){let P=/\s*>/.test(t.sliceDoc(f,f+5))?"":">";return{from:o,to:f,options:Lue(t.doc,e).map((d,l)=>({label:d,apply:d+P,type:"type",boost:99-l})),validFor:tOe}}function MNe(t,e,o,f){let P=[],d=0;for(let l of eOe(t.doc,o,e))P.push({label:"<"+l,type:"type"});for(let l of Lue(t.doc,o))P.push({label:"",type:"type",boost:99-d++});return{from:f,to:f,options:P,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function ENe(t,e,o,f,P){let d=wM(o),l=d?e.tags[_M(t.doc,d)]:null,n=l&&l.attrs?Object.keys(l.attrs):[],c=l&&l.globalAttrs===!1?n:n.length?n.concat(e.globalAttrNames):e.globalAttrNames;return{from:f,to:P,options:c.map(b=>({label:b,type:"property"})),validFor:tOe}}function PNe(t,e,o,f,P){var d;let l=(d=o.parent)===null||d===void 0?void 0:d.getChild("AttributeName"),n=[],c;if(l){let b=t.sliceDoc(l.from,l.to),i=e.globalAttrs[b];if(!i){let O=wM(o),w=O?e.tags[_M(t.doc,O)]:null;i=(w==null?void 0:w.attrs)&&w.attrs[b]}if(i){let O=t.sliceDoc(f,P).toLowerCase(),w='"',y='"';/^['"]/.test(O)?(c=O[0]=='"'?/^[^"]*$/:/^[^']*$/,w="",y=t.sliceDoc(P,P+1)==O[0]?"":O[0],O=O.slice(1),f++):c=/^[^\s<>='"]*$/;for(let p of i)n.push({label:p,apply:w+p+y,type:"constant"})}}return{from:f,to:P,options:n,validFor:c}}function nOe(t,e){let{state:o,pos:f}=e,P=Gu(o).resolveInner(f,-1),d=P.resolve(f);for(let l=f,n;d==P&&(n=P.childBefore(l));){let c=n.lastChild;if(!c||!c.type.isError||c.fromnOe(f,P)}const INe=d_.parser.configure({top:"SingleExpression"}),rOe=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:qwe.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:Wwe.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:Ywe.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:INe},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:d_.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:MZ.parser}],oOe=[{name:"style",parser:MZ.parser.configure({top:"Styles"})}].concat(Jwe.map(t=>({name:t,parser:d_.parser}))),iOe=lS.define({name:"html",parser:wFe.configure({props:[OT.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].lengtht.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),CH=iOe.configure({wrap:zwe(rOe,oOe)});function DNe(t={}){let e="",o;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(o=zwe((t.nestedLanguages||[]).concat(rOe),(t.nestedAttributes||[]).concat(oOe)));let f=o?iOe.configure({wrap:o,dialect:e}):e?CH.configure({dialect:e}):CH;return new gT(f,[CH.data.of({autocomplete:LNe(t)}),t.autoCloseTags!==!1?BNe:[],SNe().support,GFe().support])}const v0e=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),BNe=Oa.inputHandler.of((t,e,o,f,P)=>{if(t.composing||t.state.readOnly||e!=o||f!=">"&&f!="/"||!CH.isActiveAt(t.state,e,-1))return!1;let d=P(),{state:l}=d,n=l.changeByRange(c=>{var b,i,O;let w=l.doc.sliceString(c.from-1,c.to)==f,{head:y}=c,p=Gu(l).resolveInner(y-1,-1),a;if((p.name=="TagName"||p.name=="StartTag")&&(p=p.parent),w&&f==">"&&p.name=="OpenTag"){if(((i=(b=p.parent)===null||b===void 0?void 0:b.lastChild)===null||i===void 0?void 0:i.name)!="CloseTag"&&(a=_M(l.doc,p.parent,y))&&!v0e.has(a)){let u=y+(l.doc.sliceString(y,y+1)===">"?1:0),h=``;return{range:c,changes:{from:y,to:u,insert:h}}}}else if(w&&f=="/"&&p.name=="IncompleteCloseTag"){let u=p.parent;if(p.from==y-2&&((O=u.lastChild)===null||O===void 0?void 0:O.name)!="CloseTag"&&(a=_M(l.doc,u,y))&&!v0e.has(a)){let h=y+(l.doc.sliceString(y,y+1)===">"?1:0),m=`${a}>`;return{range:Yo.cursor(y+m.length,-1),changes:{from:y,to:h,insert:m}}}}return{range:c}});return n.changes.empty?!1:(t.dispatch([d,l.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),aOe=mce({commentTokens:{block:{open:""}}}),sOe=new ul,lOe=kze.configure({props:[gS.add(t=>!t.is("Block")||t.is("Document")||nle(t)!=null?void 0:(e,o)=>({from:o.doc.lineAt(e.from).to,to:e.to})),sOe.add(nle),OT.add({Document:()=>null}),aT.add({Document:aOe})]});function nle(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function zNe(t,e){let o=t;for(;;){let f=o.nextSibling,P;if(!f||(P=nle(f.type))!=null&&P<=e)break;o=f}return o.to}const FNe=Jye.of((t,e,o)=>{for(let f=Gu(t).resolveInner(o,-1);f&&!(f.fromo)return{from:o,to:d}}return null});function Iue(t){return new Gy(aOe,t,[FNe],"markdown")}const NNe=Iue(lOe),$Ne=lOe.configure([Bze,Fze,zze,Nze,{props:[gS.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),cOe=Iue($Ne);function VNe(t,e){return o=>{if(o&&t){let f=null;if(o=/\S*/.exec(o)[0],typeof t=="function"?f=t(o):f=qH.matchLanguageName(t,o,!0),f instanceof qH)return f.support?f.support.language.parser:NI.getSkippingParser(f.load());if(f)return f.parser}return e?e.parser:null}}class rH{constructor(e,o,f,P,d,l,n){this.node=e,this.from=o,this.to=f,this.spaceBefore=P,this.spaceAfter=d,this.type=l,this.item=n}blank(e,o=!0){let f=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;f.length0;P--)f+=" ";return f+(o?this.spaceAfter:"")}}marker(e,o){let f=this.node.name=="OrderedList"?String(+fOe(this.item,e)[2]+o):"";return this.spaceBefore+f+this.type+this.spaceAfter}}function uOe(t,e){let o=[];for(let P=t;P&&P.name!="Document";P=P.parent)(P.name=="ListItem"||P.name=="Blockquote"||P.name=="FencedCode")&&o.push(P);let f=[];for(let P=o.length-1;P>=0;P--){let d=o[P],l,n=e.lineAt(d.from),c=d.from-n.from;if(d.name=="FencedCode")f.push(new rH(d,c,c,"","","",null));else if(d.name=="Blockquote"&&(l=/^ *>( ?)/.exec(n.text.slice(c))))f.push(new rH(d,c,c+l[0].length,"",l[1],">",null));else if(d.name=="ListItem"&&d.parent.name=="OrderedList"&&(l=/^( *)\d+([.)])( *)/.exec(n.text.slice(c)))){let b=l[3],i=l[0].length;b.length>=4&&(b=b.slice(0,b.length-4),i-=4),f.push(new rH(d.parent,c,c+i,l[1],b,l[2],d))}else if(d.name=="ListItem"&&d.parent.name=="BulletList"&&(l=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(n.text.slice(c)))){let b=l[4],i=l[0].length;b.length>4&&(b=b.slice(0,b.length-4),i-=4);let O=l[2];l[3]&&(O+=l[3].replace(/[xX]/," ")),f.push(new rH(d.parent,c,c+i,l[1],b,O,d))}}return f}function fOe(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function rae(t,e,o,f=0){for(let P=-1,d=t;;){if(d.name=="ListItem"){let n=fOe(d,e),c=+n[2];if(P>=0){if(c!=P+1)return;o.push({from:d.from+n[1].length,to:d.from+n[0].length,insert:String(P+2+f)})}P=c}let l=d.nextSibling;if(!l)break;d=l}}function rle(t,e){let o=/^[ \t]*/.exec(t)[0].length;if(!o||e.facet(wT)!=" ")return t;let f=bx(t,4,o),P="";for(let d=f;d>0;)d>=4?(P+=" ",d-=4):(P+=" ",d--);return P+t.slice(o)}const UNe=({state:t,dispatch:e})=>{let o=Gu(t),{doc:f}=t,P=null,d=t.changeByRange(l=>{if(!l.empty||!cOe.isActiveAt(t,l.from))return P={range:l};let n=l.from,c=f.lineAt(n),b=uOe(o.resolveInner(n,-1),f);for(;b.length&&b[b.length-1].from>n-c.from;)b.pop();if(!b.length)return P={range:l};let i=b[b.length-1];if(i.to-i.spaceAfter.length>n-c.from)return P={range:l};let O=n>=i.to-i.spaceAfter.length&&!/\S/.test(c.text.slice(i.to));if(i.item&&O)if(i.node.firstChild.to>=n||c.from>0&&!/[^\s>]/.test(f.lineAt(c.from-1).text)){let u=b.length>1?b[b.length-2]:null,h,m="";u&&u.item?(h=c.from+u.from,m=u.marker(f,1)):h=c.from+(u?u.to:0);let v=[{from:h,to:n,insert:m}];return i.node.name=="OrderedList"&&rae(i.item,f,v,-2),u&&u.node.name=="OrderedList"&&rae(u.item,f,v),{range:Yo.cursor(h+m.length),changes:v}}else{let u="";for(let h=0,m=b.length-2;h<=m;h++)u+=b[h].blank(h\s*$/.exec(u.text);if(h&&h.index==i.from){let m=t.changes([{from:u.from+h.index,to:u.to},{from:c.from+i.from,to:c.to}]);return{range:l.map(m),changes:m}}}let w=[];i.node.name=="OrderedList"&&rae(i.item,f,w);let y=i.item&&i.item.from]*/.exec(c.text)[0].length>=i.to)for(let u=0,h=b.length-1;u<=h;u++)p+=u==h&&!y?b[u].marker(f,1):b[u].blank(uc.from&&/\s/.test(c.text.charAt(a-c.from-1));)a--;return p=rle(p,t),w.push({from:a,to:n,insert:t.lineBreak+p}),{range:Yo.cursor(a+p.length+1),changes:w}});return P?!1:(e(t.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)};function y0e(t){return t.name=="QuoteMark"||t.name=="ListMark"}function jNe(t,e){let o=t.resolveInner(e,-1),f=e;y0e(o)&&(f=o.from,o=o.parent);for(let P;P=o.childBefore(f);)if(y0e(P))f=P.from;else if(P.name=="OrderedList"||P.name=="BulletList")o=P.lastChild,f=o.to;else break;return o}const QNe=({state:t,dispatch:e})=>{let o=Gu(t),f=null,P=t.changeByRange(d=>{let l=d.from,{doc:n}=t;if(d.empty&&cOe.isActiveAt(t,d.from)){let c=n.lineAt(l),b=uOe(jNe(o,l),n);if(b.length){let i=b[b.length-1],O=i.to-i.spaceAfter.length+(i.spaceAfter?1:0);if(l-c.from>O&&!/\S/.test(c.text.slice(O,l-c.from)))return{range:Yo.cursor(c.from+O),changes:{from:c.from+O,to:l}};if(l-c.from==O&&(!i.item||c.from<=i.item.from||!/\S/.test(c.text.slice(0,i.to)))){let w=c.from+i.from;if(i.item&&i.node.fromd.createCell(c))},{code:Oo(()=>[t.$devMode&&!d.isMobile?(Bo(),la(l,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=c=>o.cellData.code=c),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):Wa("",!0)]),outcome:Oo(()=>[pa("div",{class:"markdown-content",innerHTML:d.compiledMarkdown},null,8,YNe)]),_:1},8,["cell-id","is-dev-mode","hide-cell","cell-name","onDelete","onSave"])}const hOe=hm(WNe,[["render",XNe],["__scopeId","data-v-d5250b54"]]);var GNe={exports:{}};(function(t){(function(){var e=function(r){if(r===null)return"null";if(r===void 0)return"undefined";var g=typeof r;return g==="object"&&(Array.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="Array")?"array":g==="object"&&(String.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="String")?"string":g},o=function(r){return["undefined","boolean","number","string","function","xml","null"].indexOf(r)!==-1},f=function(r,g){var B=Array.prototype.slice.call(r);return B.sort(g)},P=function(r,g){return d(function(B,H){return r.eq(g(B),g(H))})},d=function(r){return{eq:r}},l=d(function(r,g){return r===g}),n=l,c=function(r){return d(function(g,B){if(g.length!==B.length)return!1;for(var H=g.length,re=0;re{var H;return B(r,g.prototype)?!0:((H=r.constructor)===null||H===void 0?void 0:H.name)===g.name},p=r=>{const g=typeof r;return r===null?"null":g==="object"&&Array.isArray(r)?"array":g==="object"&&y(r,String,(B,H)=>H.isPrototypeOf(B))?"string":g},a=r=>g=>p(g)===r,u=r=>g=>typeof g===r,h=r=>g=>r===g,m=(r,g)=>_(r)&&y(r,g,(B,H)=>w(B)===H),v=a("string"),_=a("object"),S=r=>m(r,Object),A=a("array"),x=h(null),R=u("boolean"),M=h(void 0),T=r=>r==null,E=r=>!T(r),C=u("function"),L=u("number"),D=(r,g)=>{if(A(r)){for(let B=0,H=r.length;B{},I=(r,g)=>(...B)=>r(g.apply(null,B)),z=(r,g)=>B=>r(g(B)),$=r=>()=>r,Q=r=>r,j=(r,g)=>r===g;function U(r,...g){return(...B)=>{const H=g.concat(B);return r.apply(null,H)}}const X=r=>g=>!r(g),te=r=>()=>{throw new Error(r)},W=r=>r(),K=r=>{r()},oe=$(!1),q=$(!0);class Y{constructor(g,B){this.tag=g,this.value=B}static some(g){return new Y(!0,g)}static none(){return Y.singletonNone}fold(g,B){return this.tag?B(this.value):g()}isSome(){return this.tag}isNone(){return!this.tag}map(g){return this.tag?Y.some(g(this.value)):Y.none()}bind(g){return this.tag?g(this.value):Y.none()}exists(g){return this.tag&&g(this.value)}forall(g){return!this.tag||g(this.value)}filter(g){return!this.tag||g(this.value)?this:Y.none()}getOr(g){return this.tag?this.value:g}or(g){return this.tag?this:g}getOrThunk(g){return this.tag?this.value:g()}orThunk(g){return this.tag?this:g()}getOrDie(g){if(this.tag)return this.value;throw new Error(g??"Called getOrDie on None")}static from(g){return E(g)?Y.some(g):Y.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(g){this.tag&&g(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}Y.singletonNone=new Y(!1);const ee=Array.prototype.slice,me=Array.prototype.indexOf,he=Array.prototype.push,se=(r,g)=>me.call(r,g),ae=(r,g)=>{const B=se(r,g);return B===-1?Y.none():Y.some(B)},ce=(r,g)=>se(r,g)>-1,de=(r,g)=>{for(let B=0,H=r.length;B{const B=r.length,H=new Array(B);for(let re=0;re{for(let B=0,H=r.length;B{for(let B=r.length-1;B>=0;B--){const H=r[B];g(H,B)}},Se=(r,g)=>{const B=[],H=[];for(let re=0,be=r.length;re{const B=[];for(let H=0,re=r.length;H(_e(r,(H,re)=>{B=g(B,H,re)}),B),Ie=(r,g,B)=>(ye(r,(H,re)=>{B=g(B,H,re)}),B),ze=(r,g,B)=>{for(let H=0,re=r.length;Hze(r,g,oe),He=(r,g)=>{for(let B=0,H=r.length;B{const g=[];for(let B=0,H=r.length;BVe(ve(r,g)),Oe=(r,g)=>{for(let B=0,H=r.length;B{const g=ee.call(r,0);return g.reverse(),g},Le=(r,g)=>Te(r,B=>!ce(g,B)),We=(r,g)=>{const B={};for(let H=0,re=r.length;H{const B=ee.call(r,0);return B.sort(g),B},Ze=(r,g)=>g>=0&&gZe(r,0),tt=r=>Ze(r,r.length-1),Ee=C(Array.from)?Array.from:r=>ee.call(r),Ne=(r,g)=>{for(let B=0;B{const B=[],H=C(g)?re=>de(B,be=>g(be,re)):re=>ce(B,re);for(let re=0,be=r.length;re{const B=nt(r);for(let H=0,re=B.length;Hpt(r,(B,H)=>({k:H,v:g(B,H)})),pt=(r,g)=>{const B={};return Ge(r,(H,re)=>{const be=g(H,re);B[be.k]=be.v}),B},wt=r=>(g,B)=>{r[B]=g},Dt=(r,g,B,H)=>{Ge(r,(re,be)=>{(g(re,be)?B:H)(re,be)})},It=(r,g)=>{const B={},H={};return Dt(r,g,wt(B),wt(H)),{t:B,f:H}},qt=(r,g)=>{const B={};return Dt(r,g,wt(B),k),B},en=(r,g)=>{const B=[];return Ge(r,(H,re)=>{B.push(g(H,re))}),B},Gt=r=>en(r,Q),Ct=(r,g)=>_t(r,g)?Y.from(r[g]):Y.none(),_t=(r,g)=>ot.call(r,g),nn=(r,g)=>_t(r,g)&&r[g]!==void 0&&r[g]!==null,gn=(r,g,B=O)=>i(B).eq(r,g),bn=r=>{const g={};return ye(r,B=>{g[B]={}}),nt(g)},mn=r=>r.length!==void 0,vt=Array.isArray,bt=r=>{if(vt(r))return r;{const g=[];for(let B=0,H=r.length;B{if(!r)return!1;if(B=B||r,mn(r)){for(let H=0,re=r.length;H{const B=[];return lt(r,(H,re)=>{B.push(g(H,re,r))}),B},zt=(r,g)=>{const B=[];return lt(r,(H,re)=>{(!g||g(H,re,r))&&B.push(H)}),B},Rt=(r,g)=>{if(r){for(let B=0,H=r.length;B{let re=M(B)?r[0]:B;for(let be=0;be{for(let H=0,re=r.length;Hr[r.length-1],xt=r=>{let g=!1,B;return(...H)=>(g||(g=!0,B=r.apply(null,H)),B)},Ht=(r,g,B,H)=>{const re=r.isiOS()&&/ipad/i.test(B)===!0,be=r.isiOS()&&!re,Re=r.isiOS()||r.isAndroid(),Ke=Re||H("(pointer:coarse)"),ct=re||!be&&Re&&H("(min-device-width:768px)"),kt=be||Re&&!ct,Wt=g.isSafari()&&r.isiOS()&&/safari/i.test(B)===!1,Jt=!kt&&!ct&&!Wt;return{isiPad:$(re),isiPhone:$(be),isTablet:$(ct),isPhone:$(kt),isTouch:$(Ke),isAndroid:r.isAndroid,isiOS:r.isiOS,isWebView:$(Wt),isDesktop:$(Jt)}},Xt=(r,g)=>{for(let B=0;B{const B=Xt(r,g);if(!B)return{major:0,minor:0};const H=re=>Number(g.replace(B,"$"+re));return tn(H(1),H(2))},Qt=(r,g)=>{const B=String(g).toLowerCase();return r.length===0?Pt():Yt(r,B)},Pt=()=>tn(0,0),tn=(r,g)=>({major:r,minor:g}),Kt={nu:tn,detect:Qt,unknown:Pt},fn=(r,g)=>Ne(g.brands,B=>{const H=B.brand.toLowerCase();return De(r,re=>{var be;return H===((be=re.brand)===null||be===void 0?void 0:be.toLowerCase())}).map(re=>({current:re.name,version:Kt.nu(parseInt(B.version,10),0)}))}),dn=(r,g)=>{const B=String(g).toLowerCase();return De(r,H=>H.search(B))},vn=(r,g)=>dn(r,g).map(B=>{const H=Kt.detect(B.versionRegexes,g);return{current:B.name,version:H}}),Nn=(r,g)=>dn(r,g).map(B=>{const H=Kt.detect(B.versionRegexes,g);return{current:B.name,version:H}}),er=(r,g)=>r.substring(g),En=(r,g,B)=>g===""||r.length>=g.length&&r.substr(B,B+g.length)===g,In=(r,g)=>xr(r,g)?er(r,g.length):r,Un=(r,g,B=0,H)=>{const re=r.indexOf(g,B);return re!==-1?M(H)?!0:re+g.length<=H:!1},xr=(r,g)=>En(r,g,0),Sr=(r,g)=>En(r,g,r.length-g.length),ar=r=>g=>g.replace(r,""),Fn=ar(/^\s+|\s+$/g),ir=ar(/^\s+/g),Wn=ar(/\s+$/g),Kn=r=>r.length>0,_r=r=>!Kn(r),Ir=(r,g)=>g<=0?"":new Array(g+1).join(r),zr=(r,g=10)=>{const B=parseInt(r,g);return isNaN(B)?Y.none():Y.some(B)},Fr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Rr=r=>g=>Un(g,r),$r=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:r=>Un(r,"edge/")&&Un(r,"chrome")&&Un(r,"safari")&&Un(r,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Fr],search:r=>Un(r,"chrome")&&!Un(r,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:r=>Un(r,"msie")||Un(r,"trident")},{name:"Opera",versionRegexes:[Fr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Rr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Rr("firefox")},{name:"Safari",versionRegexes:[Fr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:r=>(Un(r,"safari")||Un(r,"mobile/"))&&Un(r,"applewebkit")}],Kr=[{name:"Windows",search:Rr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:r=>Un(r,"iphone")||Un(r,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Rr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Rr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Rr("linux"),versionRegexes:[]},{name:"Solaris",search:Rr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Rr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Rr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Co={browsers:$($r),oses:$(Kr)},so="Edge",So="Chromium",go="IE",li="Opera",Pn="Firefox",Yn="Safari",br=()=>dr({current:void 0,version:Kt.unknown()}),dr=r=>{const g=r.current,B=r.version,H=re=>()=>g===re;return{current:g,version:B,isEdge:H(so),isChromium:H(So),isIE:H(go),isOpera:H(li),isFirefox:H(Pn),isSafari:H(Yn)}},Cr={unknown:br,nu:dr,edge:$(so),chromium:$(So),ie:$(go),opera:$(li),firefox:$(Pn),safari:$(Yn)},io="Windows",Qr="iOS",Wr="Android",bo="Linux",Bn="macOS",hr="Solaris",hn="FreeBSD",zn="ChromeOS",Zn=()=>yr({current:void 0,version:Kt.unknown()}),yr=r=>{const g=r.current,B=r.version,H=re=>()=>g===re;return{current:g,version:B,isWindows:H(io),isiOS:H(Qr),isAndroid:H(Wr),isMacOS:H(Bn),isLinux:H(bo),isSolaris:H(hr),isFreeBSD:H(hn),isChromeOS:H(zn)}},gr={unknown:Zn,nu:yr,windows:$(io),ios:$(Qr),android:$(Wr),linux:$(bo),macos:$(Bn),solaris:$(hr),freebsd:$(hn),chromeos:$(zn)},nr={detect:(r,g,B)=>{const H=Co.browsers(),re=Co.oses(),be=g.bind(ct=>fn(H,ct)).orThunk(()=>vn(H,r)).fold(Cr.unknown,Cr.nu),Re=Nn(re,r).fold(gr.unknown,gr.nu),Ke=Ht(Re,be,r,B);return{browser:be,os:Re,deviceType:Ke}}},Qn=r=>window.matchMedia(r).matches;let Hn=xt(()=>nr.detect(navigator.userAgent,Y.from(navigator.userAgentData),Qn));const tr=()=>Hn(),cr=navigator.userAgent,Lr=tr(),Er=Lr.browser,Vr=Lr.os,to=Lr.deviceType,_o=cr.indexOf("Windows Phone")!==-1,fr={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Er.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Er.isIE(),windowsPhone:_o,browser:{current:Er.current,version:Er.version,isChromium:Er.isChromium,isEdge:Er.isEdge,isFirefox:Er.isFirefox,isIE:Er.isIE,isOpera:Er.isOpera,isSafari:Er.isSafari},os:{current:Vr.current,version:Vr.version,isAndroid:Vr.isAndroid,isChromeOS:Vr.isChromeOS,isFreeBSD:Vr.isFreeBSD,isiOS:Vr.isiOS,isLinux:Vr.isLinux,isMacOS:Vr.isMacOS,isSolaris:Vr.isSolaris,isWindows:Vr.isWindows},deviceType:{isDesktop:to.isDesktop,isiPad:to.isiPad,isiPhone:to.isiPhone,isPhone:to.isPhone,isTablet:to.isTablet,isTouch:to.isTouch,isWebView:to.isWebView}},Eo=/^\s*|\s*$/g,ao=r=>T(r)?"":(""+r).replace(Eo,""),co=(r,g)=>g?g==="array"&&vt(r)?!0:typeof r===g:r!==void 0,Go=(r,g,B={})=>{const H=v(r)?r.split(g||","):r||[];let re=H.length;for(;re--;)B[H[re]]={};return B},po=_t,qo=(r,...g)=>{for(let B=0;Bg.call(H,re,be,B)===!1?!1:(Ao(re,g,B,H),!0)))},mo={trim:ao,isArray:vt,is:co,toArray:bt,makeMap:Go,each:lt,map:yt,grep:zt,inArray:Rt,hasOwn:po,extend:qo,walk:Ao,resolve:(r,g=window)=>{const B=r.split(".");for(let H=0,re=B.length;HA(r)?r:r===""?[]:yt(r.split(g||","),ao),_addCacheSuffix:r=>{const g=fr.cacheSuffix;return g&&(r+=(r.indexOf("?")===-1?"?":"&")+g),r}},Aa=(r,g,B=j)=>r.exists(H=>B(H,g)),Xl=(r,g,B=j)=>cs(r,g,B).getOr(r.isNone()&&g.isNone()),Na=r=>{const g=[],B=H=>{g.push(H)};for(let H=0;Hr.isSome()&&g.isSome()?Y.some(B(r.getOrDie(),g.getOrDie())):Y.none(),wc=(r,g,B,H)=>r.isSome()&&g.isSome()&&B.isSome()?Y.some(H(r.getOrDie(),g.getOrDie(),B.getOrDie())):Y.none(),ma=(r,g)=>r?Y.some(g):Y.none(),Ku=typeof window<"u"?window:Function("return this;")(),qc=(r,g)=>{let B=g??Ku;for(let H=0;H{const B=r.split(".");return qc(B,g)},Ql=(r,g)=>Yd(r,g),Ed=(r,g)=>{const B=Ql(r,g);if(B==null)throw new Error(r+" not available on this browser");return B},Nf=Object.getPrototypeOf,mm=r=>Ed("HTMLElement",r),Ws=r=>{const g=Yd("ownerDocument.defaultView",r);return _(r)&&(mm(g).prototype.isPrototypeOf(r)||/^HTML\w*Element$/.test(Nf(r).constructor.name))},gm=8,Gl=9,pc=11,Cu=1,yl=3,sa=r=>r.dom.nodeName.toLowerCase(),cc=r=>r.dom.nodeType,hu=r=>g=>cc(g)===r,ju=r=>cc(r)===gm||sa(r)==="#comment",iu=r=>mc(r)&&Ws(r.dom),mc=hu(Cu),Ss=hu(yl),$f=hu(Gl),vf=hu(pc),Ju=r=>g=>mc(g)&&sa(g)===r,$h=(r,g,B)=>{if(v(B)||R(B)||L(B))r.setAttribute(g,B+"");else throw console.error("Invalid call to Attribute.set. Key ",g,":: Value ",B,":: Element ",r),new Error("Attribute value was not simple")},Es=(r,g,B)=>{$h(r.dom,g,B)},ef=(r,g)=>{const B=r.dom;Ge(g,(H,re)=>{$h(B,re,H)})},uc=(r,g)=>{const B=r.dom.getAttribute(g);return B===null?void 0:B},ad=(r,g)=>Y.from(uc(r,g)),Vf=(r,g)=>{const B=r.dom;return B&&B.hasAttribute?B.hasAttribute(g):!1},gc=(r,g)=>{r.dom.removeAttribute(g)},sd=r=>{const g=r.dom.attributes;return g==null||g.length===0},Mp=r=>Ie(r.dom.attributes,(g,B)=>(g[B.name]=B.value,g),{}),Xd=(r,g)=>{const B=uc(r,g);return B===void 0||B===""?[]:B.split(" ")},yf=(r,g,B)=>{const re=Xd(r,g).concat([B]);return Es(r,g,re.join(" ")),!0},mh=(r,g,B)=>{const H=Te(Xd(r,g),re=>re!==B);return H.length>0?Es(r,g,H.join(" ")):gc(r,g),!1},ld=r=>r.dom.classList!==void 0,Vh=r=>Xd(r,"class"),bf=(r,g)=>yf(r,"class",g),tf=(r,g)=>mh(r,"class",g),Au=(r,g)=>ce(Vh(r),g)?tf(r,g):bf(r,g),xf=(r,g)=>{ld(r)?r.dom.classList.add(g):bf(r,g)},cd=r=>{(ld(r)?r.dom.classList:Vh(r)).length===0&&gc(r,"class")},nf=(r,g)=>{ld(r)?r.dom.classList.remove(g):tf(r,g),cd(r)},gh=(r,g)=>{const B=ld(r)?r.dom.classList.toggle(g):Au(r,g);return cd(r),B},rs=(r,g)=>ld(r)&&r.dom.classList.contains(g),ep=(r,g)=>{const H=(g||document).createElement("div");if(H.innerHTML=r,!H.hasChildNodes()||H.childNodes.length>1){const re="HTML does not have a single root node";throw console.error(re,r),new Error(re)}return Pd(H.childNodes[0])},Ep=(r,g)=>{const H=(g||document).createElement(r);return Pd(H)},vm=(r,g)=>{const H=(g||document).createTextNode(r);return Pd(H)},Pd=r=>{if(r==null)throw new Error("Node cannot be null or undefined");return{dom:r}},sr={fromHtml:ep,fromTag:Ep,fromText:vm,fromDom:Pd,fromPoint:(r,g,B)=>Y.from(r.dom.elementFromPoint(g,B)).map(Pd)},Pp=(r,g)=>{const B=[],H=be=>(B.push(be),g(be));let re=g(r);do re=re.bind(H);while(re.isSome());return B},_f=(r,g)=>{const B=r.dom;if(B.nodeType!==Cu)return!1;{const H=B;if(H.matches!==void 0)return H.matches(g);if(H.msMatchesSelector!==void 0)return H.msMatchesSelector(g);if(H.webkitMatchesSelector!==void 0)return H.webkitMatchesSelector(g);if(H.mozMatchesSelector!==void 0)return H.mozMatchesSelector(g);throw new Error("Browser lacks native selectors")}},wf=r=>r.nodeType!==Cu&&r.nodeType!==Gl&&r.nodeType!==pc||r.childElementCount===0,Rp=(r,g)=>{const B=g===void 0?document:g.dom;return wf(B)?[]:ve(B.querySelectorAll(r),sr.fromDom)},Gd=(r,g)=>{const B=g===void 0?document:g.dom;return wf(B)?Y.none():Y.from(B.querySelector(r)).map(sr.fromDom)},Fa=(r,g)=>r.dom===g.dom,Qu=(r,g)=>{const B=r.dom,H=g.dom;return B===H?!1:B.contains(H)},rf=r=>sr.fromDom(r.dom.ownerDocument),Bc=r=>$f(r)?r:rf(r),ym=r=>sr.fromDom(Bc(r).dom.documentElement),Mu=r=>sr.fromDom(Bc(r).dom.defaultView),Hu=r=>Y.from(r.dom.parentNode).map(sr.fromDom),Lp=r=>Y.from(r.dom.parentElement).map(sr.fromDom),Uh=(r,g)=>{const B=C(g)?g:oe;let H=r.dom;const re=[];for(;H.parentNode!==null&&H.parentNode!==void 0;){const be=H.parentNode,Re=sr.fromDom(be);if(re.push(Re),B(Re)===!0)break;H=be}return re},jh=r=>{const g=B=>Te(B,H=>!Fa(r,H));return Hu(r).map(Oc).map(g).getOr([])},Eu=r=>Y.from(r.dom.previousSibling).map(sr.fromDom),ud=r=>Y.from(r.dom.nextSibling).map(sr.fromDom),vh=r=>ke(Pp(r,Eu)),Pu=r=>Pp(r,ud),Oc=r=>ve(r.dom.childNodes,sr.fromDom),ks=(r,g)=>{const B=r.dom.childNodes;return Y.from(B[g]).map(sr.fromDom)},Uf=r=>ks(r,0),zl=r=>ks(r,r.dom.childNodes.length-1),Hl=r=>r.dom.childNodes.length,Ts=r=>{const g=r.dom.head;if(g==null)throw new Error("Head is not available yet");return sr.fromDom(g)},$s=r=>vf(r)&&E(r.dom.host),Zu=C(Element.prototype.attachShadow)&&C(Node.prototype.getRootNode),yh=$(Zu),of=Zu?r=>sr.fromDom(r.dom.getRootNode()):Bc,tp=r=>$s(r)?r:Ts(Bc(r)),Ip=r=>$s(r)?r:sr.fromDom(Bc(r).dom.body),bm=r=>{const g=of(r);return $s(g)?Y.some(g):Y.none()},Kd=r=>sr.fromDom(r.dom.host),bh=r=>{if(yh()&&E(r.target)){const g=sr.fromDom(r.target);if(mc(g)&&Jd(g)&&r.composed&&r.composedPath){const B=r.composedPath();if(B)return Xe(B)}}return Y.from(r.target)},Jd=r=>E(r.dom.shadowRoot),zc=r=>{const g=Ss(r)?r.dom.parentNode:r.dom;if(g==null||g.ownerDocument===null)return!1;const B=g.ownerDocument;return bm(sr.fromDom(g)).fold(()=>B.body.contains(g),z(zc,Kd))};var np=(r,g,B,H,re)=>r(B,H)?Y.some(B):C(re)&&re(B)?Y.none():g(B,H,re);const ms=(r,g,B)=>{let H=r.dom;const re=C(B)?B:oe;for(;H.parentNode;){H=H.parentNode;const be=sr.fromDom(H);if(g(be))return Y.some(be);if(re(be))break}return Y.none()},Ya=(r,g,B)=>np((re,be)=>be(re),ms,r,g,B),bl=(r,g)=>{const B=r.dom;return B.parentNode?fl(sr.fromDom(B.parentNode),H=>!Fa(r,H)&&g(H)):Y.none()},fl=(r,g)=>{const B=re=>g(sr.fromDom(re));return De(r.dom.childNodes,B).map(sr.fromDom)},Wc=(r,g)=>{const B=H=>{for(let re=0;rems(r,H=>_f(H,g),B),xi=(r,g)=>Gd(g,r),pu=(r,g,B)=>np((re,be)=>_f(re,be),xl,r,g,B),xh=r=>pu(r,"[contenteditable]"),js=(r,g=!1)=>zc(r)?r.dom.isContentEditable:xh(r).fold($(g),B=>os(B)==="true"),os=r=>r.dom.contentEditable,af=r=>r.style!==void 0&&C(r.style.getPropertyValue),Of=(r,g,B)=>{if(!v(B))throw console.error("Invalid call to CSS.set. Property ",g,":: Value ",B,":: Element ",r),new Error("CSS value must be a string: "+B);af(r)&&r.style.setProperty(g,B)},sf=(r,g)=>{af(r)&&r.style.removeProperty(g)},Ml=(r,g,B)=>{const H=r.dom;Of(H,g,B)},Hi=(r,g)=>{const B=r.dom;Ge(g,(H,re)=>{Of(B,re,H)})},pi=(r,g)=>{const B=r.dom,re=window.getComputedStyle(B).getPropertyValue(g);return re===""&&!zc(r)?Qh(B,g):re},Qh=(r,g)=>af(r)?r.style.getPropertyValue(g):"",Ru=(r,g)=>{const B=r.dom,H=Qh(B,g);return Y.from(H).filter(re=>re.length>0)},vc=r=>{const g={},B=r.dom;if(af(B))for(let H=0;H{const B=r.dom;sf(B,g),Aa(ad(r,"style").map(Fn),"")&&gc(r,"style")},Kl=r=>r.dom.offsetWidth,Fc=(r,g)=>{Hu(r).each(H=>{H.dom.insertBefore(g.dom,r.dom)})},si=(r,g)=>{ud(r).fold(()=>{Hu(r).each(re=>{Ps(re,g)})},H=>{Fc(H,g)})},Hh=(r,g)=>{Uf(r).fold(()=>{Ps(r,g)},H=>{r.dom.insertBefore(g.dom,H.dom)})},Ps=(r,g)=>{r.dom.appendChild(g.dom)},Sc=(r,g)=>{Fc(r,g),Ps(g,r)},tl=(r,g)=>{ye(g,(B,H)=>{const re=H===0?r:g[H-1];si(re,B)})},mu=(r,g)=>{ye(g,B=>{Ps(r,B)})},gu=r=>{r.dom.textContent="",ye(Oc(r),g=>{ja(g)})},ja=r=>{const g=r.dom;g.parentNode!==null&&g.parentNode.removeChild(g)},vu=r=>{const g=Oc(r);g.length>0&&tl(r,g),ja(r)},Rd=(r,g)=>{const H=(g||document).createElement("div");return H.innerHTML=r,Oc(sr.fromDom(H))},Ld=r=>ve(r,sr.fromDom),nl=r=>r.dom.innerHTML,Id=(r,g)=>{const H=rf(r).dom,re=sr.fromDom(H.createDocumentFragment()),be=Rd(g,H);mu(re,be),gu(r),Ps(r,re)},Ka=r=>{const g=sr.fromTag("div"),B=sr.fromDom(r.dom.cloneNode(!0));return Ps(g,B),nl(g)},Xi=(r,g,B,H,re,be,Re)=>({target:r,x:g,y:B,stop:H,prevent:re,kill:be,raw:Re}),Xc=r=>{const g=sr.fromDom(bh(r).getOr(r.target)),B=()=>r.stopPropagation(),H=()=>r.preventDefault(),re=I(H,B);return Xi(g,r.clientX,r.clientY,B,H,re,r)},jf=(r,g)=>B=>{r(B)&&g(Xc(B))},yu=(r,g,B,H,re)=>{const be=jf(B,H);return r.dom.addEventListener(g,be,re),{unbind:U(rp,r,g,be,re)}},Dp=(r,g,B,H)=>yu(r,g,B,H,!1),rp=(r,g,B,H)=>{r.dom.removeEventListener(g,B,H)},Lu=(r,g)=>({left:r,top:g,translate:(H,re)=>Lu(r+H,g+re)}),us=Lu,Qf=r=>{const g=r.getBoundingClientRect();return us(g.left,g.top)},fd=(r,g)=>r!==void 0?r:g!==void 0?g:0,Hf=r=>{const g=r.dom.ownerDocument,B=g.body,H=g.defaultView,re=g.documentElement;if(B===r.dom)return us(B.offsetLeft,B.offsetTop);const be=fd(H==null?void 0:H.pageYOffset,re.scrollTop),Re=fd(H==null?void 0:H.pageXOffset,re.scrollLeft),Ke=fd(re.clientTop,B.clientTop),ct=fd(re.clientLeft,B.clientLeft);return _h(r).translate(Re-ct,be-Ke)},_h=r=>{const g=r.dom,H=g.ownerDocument.body;return H===g?us(H.offsetLeft,H.offsetTop):zc(r)?Qf(g):us(0,0)},Gc=r=>{const g=r!==void 0?r.dom:document,B=g.body.scrollLeft||g.documentElement.scrollLeft,H=g.body.scrollTop||g.documentElement.scrollTop;return us(B,H)},dd=(r,g,B)=>{const re=(B!==void 0?B.dom:document).defaultView;re&&re.scrollTo(r,g)},rl=(r,g)=>{tr().browser.isSafari()&&C(r.dom.scrollIntoViewIfNeeded)?r.dom.scrollIntoViewIfNeeded(!1):r.dom.scrollIntoView(g)},Dd=r=>{const g=r===void 0?window:r;return tr().browser.isFirefox()?Y.none():Y.from(g.visualViewport)},Vi=(r,g,B,H)=>({x:r,y:g,width:B,height:H,right:r+B,bottom:g+H}),fa=r=>{const g=r===void 0?window:r,B=g.document,H=Gc(sr.fromDom(B));return Dd(g).fold(()=>{const re=g.document.documentElement,be=re.clientWidth,Re=re.clientHeight;return Vi(H.left,H.top,be,Re)},re=>Vi(Math.max(re.pageLeft,H.left),Math.max(re.pageTop,H.top),re.width,re.height))},au=(r,g)=>Te(Oc(r),g),Zf=(r,g)=>{let B=[];return ye(Oc(r),H=>{g(H)&&(B=B.concat([H])),B=B.concat(Zf(H,g))}),B},Zl=(r,g)=>Rp(g,r),Jl=(r,g,B)=>ms(r,g,B).isSome(),Bd=(r,g)=>bl(r,g).isSome(),Qs=(r,g)=>Wc(r,g).isSome();class kc{constructor(g,B){this.node=g,this.rootNode=B,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(g){return this.node=this.findSibling(this.node,"firstChild","nextSibling",g),this.node}prev(g){return this.node=this.findSibling(this.node,"lastChild","previousSibling",g),this.node}prev2(g){return this.node=this.findPreviousNode(this.node,g),this.node}findSibling(g,B,H,re){if(g){if(!re&&g[B])return g[B];if(g!==this.rootNode){let be=g[H];if(be)return be;for(let Re=g.parentNode;Re&&Re!==this.rootNode;Re=Re.parentNode)if(be=Re[H],be)return be}}}findPreviousNode(g,B){if(g){const H=g.previousSibling;if(this.rootNode&&H===this.rootNode)return;if(H){if(!B){for(let be=H.lastChild;be;be=be.lastChild)if(!be.lastChild)return be}return H}const re=g.parentNode;if(re&&re!==this.rootNode)return re}}}const Iu="\uFEFF",Ea=" ",El=r=>r===Iu,_l=r=>r.replace(/\uFEFF/g,""),Mi=/^[ \t\r\n]*$/,Sf=r=>Mi.test(r),Ot=r=>{for(const g of r)if(!El(g))return!1;return!0},Mt=r=>" \f \v".indexOf(r)!==-1,Ft=r=>r===` -`||r==="\r",J=(r,g)=>g=0?Ft(r[g]):!1,le=(r,g=4,B=!0,H=!0)=>{const re=Ir(" ",g),be=r.replace(/\t/g,re);return Ie(be,(Ke,ct)=>Mt(ct)||ct===Ea?Ke.pcIsSpace||Ke.str===""&&B||Ke.str.length===be.length-1&&H||J(be,Ke.str.length+1)?{pcIsSpace:!1,str:Ke.str+Ea}:{pcIsSpace:!0,str:Ke.str+" "}:{pcIsSpace:Ft(ct),str:Ke.str+ct},{pcIsSpace:!1,str:""}).str},ie=r=>g=>!!g&&g.nodeType===r,V=r=>!!r&&!Object.getPrototypeOf(r),ne=ie(1),ge=r=>ne(r)&&iu(sr.fromDom(r)),xe=r=>ne(r)&&r.namespaceURI==="http://www.w3.org/2000/svg",Me=r=>{const g=r.toLowerCase();return B=>E(B)&&B.nodeName.toLowerCase()===g},Fe=r=>{const g=r.map(B=>B.toLowerCase());return B=>{if(B&&B.nodeName){const H=B.nodeName.toLowerCase();return ce(g,H)}return!1}},Je=(r,g)=>{const B=g.toLowerCase().split(" ");return H=>{if(ne(H)){const re=H.ownerDocument.defaultView;if(re)for(let be=0;beg=>ne(g)&&g.hasAttribute(r),dt=r=>ne(r)&&r.hasAttribute("data-mce-bogus"),mt=r=>ne(r)&&r.getAttribute("data-mce-bogus")==="all",Et=r=>ne(r)&&r.tagName==="TABLE",Vt=r=>g=>!!(ge(g)&&(g.contentEditable===r||g.getAttribute("data-mce-contenteditable")===r)),jt=Fe(["textarea","input"]),Nt=ie(3),cn=ie(4),sn=ie(7),xn=ie(8),pn=ie(9),Ln=ie(11),On=Me("br"),An=Me("img"),Sn=Vt("true"),rr=Vt("false"),Dr=Fe(["td","th"]),Pr=Fe(["td","th","caption"]),Zr=Fe(["video","audio","object","embed"]),Mo=Me("li"),$o=Me("details"),vo=Me("summary"),zo={skipBogus:!0,includeZwsp:!1,checkRootAsContent:!1},yi=(r,g,B)=>{const H=sr.fromDom(g),re=sr.fromDom(r),be=B.getWhitespaceElements();return Jl(re,Ke=>_t(be,sa(Ke)),U(Fa,H))},Si=r=>ne(r)&&r.nodeName==="A"&&!r.hasAttribute("href")&&(r.hasAttribute("name")||r.hasAttribute("id")),Hr=(r,g)=>ne(r)&&_t(g.getNonEmptyElements(),r.nodeName),Lo=rt("data-mce-bookmark"),ki=r=>Lp(sr.fromDom(r)).exists(g=>!js(g)),Io=(r,g,B)=>Sf(r.data)&&!yi(r,g,B),$i=(r,g,B,H)=>Nt(r)&&!Io(r,g,B)&&(!H.includeZwsp||!Ot(r.data)),Ui=(r,g,B,H)=>C(H.isContent)&&H.isContent(g)||Hr(g,r)||Lo(g)||Si(g)||$i(g,B,r,H)||rr(g)||Sn(g)&&ki(g),ba=(r,g,B)=>{const H={...zo,...B};if(H.checkRootAsContent&&Ui(r,g,g,H))return!1;let re=g.firstChild,be=0;if(!re)return!0;const Re=new kc(re,g);do{if(H.skipBogus&&ne(re)){const Ke=re.getAttribute("data-mce-bogus");if(Ke){re=Re.next(Ke==="all");continue}}if(xn(re)){re=Re.next(!0);continue}if(On(re)){be++,re=Re.next();continue}if(Ui(r,re,g,H))return!1;re=Re.next()}while(re);return be<=1},Pi=(r,g,B)=>ba(r,g.dom,{checkRootAsContent:!0,...B}),fs=(r,g,B)=>Ui(r,g,g,{includeZwsp:zo.includeZwsp,...B}),mr=r=>{let g=r;return{get:()=>g,set:re=>{g=re}}},ys=r=>{const g=mr(Y.none()),B=()=>g.get().each(r);return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(Ke))}}},Pl=r=>{const g=mr(Y.none()),B=()=>g.get().each(Ke=>clearInterval(Ke));return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(setInterval(Ke,r)))}}},Ys=()=>{const r=ys(k);return{...r,on:B=>r.get().each(B)}},dl=r=>{const g=r.toLowerCase();return g==="svg"?"svg":g==="math"?"math":"html"},ds=r=>dl(r)!=="html",Pa=r=>ds(r.nodeName),Rs=r=>dl(r.nodeName),Ls=["svg","math"],ol=()=>{const r=Ys(),g=()=>r.get().map(Rs).getOr("html");return{track:re=>(Pa(re)?r.set(re):r.get().exists(be=>!be.contains(re))&&r.clear(),g()),current:g,reset:()=>{r.clear()}}},Is="data-mce-block",Ds=r=>Te(nt(r),g=>!/[A-Z]/.test(g)),ec=r=>ve(Ds(r),g=>{const B=CSS.escape(g);return`${B}:`+ve(Ls,H=>`not(${H} ${B})`).join(":")}).join(","),Tc=(r,g)=>E(g.querySelector(r))?(g.setAttribute(Is,"true"),g.getAttribute("data-mce-selected")==="inline-boundary"&&g.removeAttribute("data-mce-selected"),!0):(g.removeAttribute(Is),!1),op=(r,g)=>{const B=ec(r.getTransparentElements()),H=ec(r.getBlockElements());return Te(g.querySelectorAll(B),re=>Tc(H,re))},ip=(r,g,B)=>{var H;const re=B?"lastChild":"firstChild";for(let be=g[re];be;be=be[re])if(ba(r,be,{checkRootAsContent:!0})){(H=be.parentNode)===null||H===void 0||H.removeChild(be);return}},Hs=(r,g,B)=>{const H=document.createRange(),re=g.parentNode;if(re){H.setStartBefore(g),H.setEndBefore(B);const be=H.extractContents();ip(r,be,!0),H.setStartAfter(B),H.setEndAfter(g);const Re=H.extractContents();ip(r,Re,!1),ba(r,be,{checkRootAsContent:!0})||re.insertBefore(be,g),ba(r,B,{checkRootAsContent:!0})||re.insertBefore(B,g),ba(r,Re,{checkRootAsContent:!0})||re.insertBefore(Re,g),re.removeChild(g)}},wh=(r,g,B)=>{const H=r.getBlockElements(),re=sr.fromDom(g),be=Ke=>sa(Ke)in H,Re=Ke=>Fa(Ke,re);ye(Ld(B),Ke=>{ms(Ke,be,Re).each(ct=>{const kt=au(Ke,Wt=>be(Wt)&&!r.isValidChild(sa(ct),sa(Wt)));if(kt.length>0){const Wt=Lp(ct);ye(kt,Jt=>{ms(Jt,be,Re).each(ln=>{Hs(r,ln.dom,Jt.dom)})}),Wt.each(Jt=>op(r,Jt.dom))}})})},hd=(r,g,B)=>{ye([...B,...xm(r,g)?[g]:[]],H=>ye(Zl(sr.fromDom(H),H.nodeName.toLowerCase()),re=>{Cx(r,re.dom)&&vu(re)}))},qf=(r,g)=>{const B=op(r,g);wh(r,g,B),hd(r,g,B)},tc=(r,g)=>{if(E0(r,g)){const B=ec(r.getBlockElements());Tc(B,g)}},Wf=(r,g,B)=>{const H=be=>Fa(be,sr.fromDom(g)),re=Uh(sr.fromDom(B),H);Ze(re,re.length-2).filter(mc).fold(()=>qf(r,g),be=>qf(r,be.dom))},Rl=r=>r.hasAttribute(Is),lg=(r,g)=>_t(r.getTransparentElements(),g),E0=(r,g)=>ne(g)&&lg(r,g.nodeName),xm=(r,g)=>E0(r,g)&&Rl(g),Cx=(r,g)=>E0(r,g)&&!Rl(g),eh=(r,g)=>g.type===1&&lg(r,g.name)&&v(g.attr(Is)),Ax=tr().browser,Wg=r=>De(r,mc),Mx=r=>Ax.isFirefox()&&sa(r)==="table"?Wg(Oc(r)).filter(g=>sa(g)==="caption").bind(g=>Wg(Pu(g)).map(B=>{const H=B.dom.offsetTop,re=g.dom.offsetTop,be=g.dom.offsetHeight;return H<=re?-be:0})).getOr(0):0,O1=(r,g)=>r.children&&ce(r.children,g),oc=(r,g,B)=>{let H=0,re=0;const be=r.ownerDocument;if(B=B||r,g){if(B===r&&g.getBoundingClientRect&&pi(sr.fromDom(r),"position")==="static"){const Ke=g.getBoundingClientRect();return H=Ke.left+(be.documentElement.scrollLeft||r.scrollLeft)-be.documentElement.clientLeft,re=Ke.top+(be.documentElement.scrollTop||r.scrollTop)-be.documentElement.clientTop,{x:H,y:re}}let Re=g;for(;Re&&Re!==B&&Re.nodeType&&!O1(Re,B);){const Ke=Re;H+=Ke.offsetLeft||0,re+=Ke.offsetTop||0,Re=Ke.offsetParent}for(Re=g.parentNode;Re&&Re!==B&&Re.nodeType&&!O1(Re,B);)H-=Re.scrollLeft||0,re-=Re.scrollTop||0,Re=Re.parentNode;re+=Mx(sr.fromDom(g))}return{x:H,y:re}},_m=(r,g={})=>{let B=0;const H={},re=sr.fromDom(r),be=Bc(re),Re=pr=>{g.referrerPolicy=pr},Ke=pr=>{g.contentCssCors=pr},ct=pr=>{Ps(tp(re),pr)},kt=pr=>{const Tr=tp(re);xi(Tr,"#"+pr).each(ja)},Wt=pr=>Ct(H,pr).getOrThunk(()=>({id:"mce-u"+B++,passed:[],failed:[],count:0})),Jt=pr=>new Promise((Tr,wr)=>{let Ur;const wo=mo._addCacheSuffix(pr),jo=Wt(wo);H[wo]=jo,jo.count++;const di=(bi,Bi)=>{ye(bi,K),jo.status=Bi,jo.passed=[],jo.failed=[],Ur&&(Ur.onload=null,Ur.onerror=null,Ur=null)},lo=()=>di(jo.passed,2),eo=()=>di(jo.failed,3);if(Tr&&jo.passed.push(Tr),wr&&jo.failed.push(wr),jo.status===1)return;if(jo.status===2){lo();return}if(jo.status===3){eo();return}jo.status=1;const xo=sr.fromTag("link",be.dom);ef(xo,{rel:"stylesheet",type:"text/css",id:jo.id}),g.contentCssCors&&Es(xo,"crossOrigin","anonymous"),g.referrerPolicy&&Es(xo,"referrerpolicy",g.referrerPolicy),Ur=xo.dom,Ur.onload=lo,Ur.onerror=eo,ct(xo),Es(xo,"href",wo)}),ln=(pr,Tr)=>{const wr=Wt(pr);H[pr]=wr,wr.count++;const Ur=sr.fromTag("style",be.dom);ef(Ur,{rel:"stylesheet",type:"text/css",id:wr.id}),Ur.dom.innerHTML=Tr,ct(Ur)},kn=pr=>Promise.allSettled(ve(pr,wr=>Jt(wr).then($(wr)))).then(wr=>{const Ur=Se(wr,wo=>wo.status==="fulfilled");return Ur.fail.length>0?Promise.reject(ve(Ur.fail,wo=>wo.reason)):ve(Ur.pass,wo=>wo.value)}),Vn=pr=>{const Tr=mo._addCacheSuffix(pr);Ct(H,Tr).each(wr=>{--wr.count===0&&(delete H[Tr],kt(wr.id))})};return{load:Jt,loadRawCss:ln,loadAll:kn,unload:Vn,unloadRawCss:pr=>{Ct(H,pr).each(Tr=>{--Tr.count===0&&(delete H[pr],kt(Tr.id))})},unloadAll:pr=>{ye(pr,Tr=>{Vn(Tr)})},_setReferrerPolicy:Re,_setContentCssCors:Ke}},wm=(()=>{const r=new WeakMap;return{forElement:(B,H)=>{const be=of(B).dom;return Y.from(r.get(be)).getOrThunk(()=>{const Re=_m(be,H);return r.set(be,Re),Re})}}})(),cb=r=>r.nodeName.toLowerCase()==="span",Oh=(r,g)=>E(r)&&(fs(g,r)||g.isInline(r.nodeName.toLowerCase())),Ex=(r,g,B)=>{const H=new kc(r,g).prev(!1),re=new kc(r,g).next(!1),be=M(H)||Oh(H,B),Re=M(re)||Oh(re,B);return be&&Re},kf=r=>cb(r)&&r.getAttribute("data-mce-type")==="bookmark",Hv=(r,g,B)=>Nt(r)&&r.data.length>0&&Ex(r,g,B),Om=r=>ne(r)?r.childNodes.length>0:!1,Sm=r=>Ln(r)||pn(r),ap=(r,g,B,H)=>{var re;const be=H||g;if(ne(g)&&kf(g))return g;const Re=g.childNodes;for(let Ke=Re.length-1;Ke>=0;Ke--)ap(r,Re[Ke],B,be);if(ne(g)){const Ke=g.childNodes;Ke.length===1&&kf(Ke[0])&&((re=g.parentNode)===null||re===void 0||re.insertBefore(Ke[0],g))}return!Sm(g)&&!fs(B,g)&&!Om(g)&&!Hv(g,be,B)&&r.remove(g),g},Bp=mo.makeMap,P0=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cg=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zv=/[<>&\"\']/g,R0=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,C_={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},sp={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},A_={"<":"<",">":">","&":"&",""":'"',"'":"'"},ub=r=>{const g=sr.fromTag("div").dom;return g.innerHTML=r,g.textContent||g.innerText||r},Fl=(r,g)=>{const B={};if(r){const H=r.split(",");g=g||10;for(let re=0;rer.replace(g?P0:cg,B=>sp[B]||B),Xg=r=>(""+r).replace(Zv,g=>sp[g]||g),Gg=(r,g)=>r.replace(g?P0:cg,B=>B.length>1?"&#"+((B.charCodeAt(0)-55296)*1024+(B.charCodeAt(1)-56320)+65536)+";":sp[B]||"&#"+B.charCodeAt(0)+";"),lp=(r,g,B)=>{const H=B||Yf;return r.replace(g?P0:cg,re=>sp[re]||H[re]||re)},up={encodeRaw:km,encodeAllRaw:Xg,encodeNumeric:Gg,encodeNamed:lp,getEncodeFunc:(r,g)=>{const B=Fl(g)||Yf,H=(Re,Ke)=>Re.replace(Ke?P0:cg,ct=>sp[ct]!==void 0?sp[ct]:B[ct]!==void 0?B[ct]:ct.length>1?"&#"+((ct.charCodeAt(0)-55296)*1024+(ct.charCodeAt(1)-56320)+65536)+";":"&#"+ct.charCodeAt(0)+";"),re=(Re,Ke)=>lp(Re,Ke,B),be=Bp(r.replace(/\+/g,","));return be.named&&be.numeric?H:be.named?g?re:lp:be.numeric?Gg:km},decode:r=>r.replace(R0,(g,B)=>B?(B.charAt(0).toLowerCase()==="x"?B=parseInt(B.substr(1),16):B=parseInt(B,10),B>65535?(B-=65536,String.fromCharCode(55296+(B>>10),56320+(B&1023))):C_[B]||String.fromCharCode(B)):A_[g]||Yf[g]||ub(g))},Xf=(r,g)=>(r=mo.trim(r),r?r.split(g||" "):[]),L0=r=>new RegExp("^"+r.replace(/([?+*])/g,".$1")+"$"),Px=r=>_(r)&&r.source&&Object.prototype.toString.call(r)==="[object RegExp]",zp=r=>{const g=B=>A(B)?ve(B,g):Px(B)?new RegExp(B.source,B.flags):_(B)?ht(B,g):B;return g(r)},Kg=r=>{const g=/^(~)?(.+)$/;return $e(Xf(r,","),B=>{const H=g.exec(B);if(H){const be=H[1]==="~"?"span":"div",Re=H[2];return[{cloneName:be,name:Re}]}else return[]})},M_=r=>Object.freeze(["id","accesskey","class","dir","lang","style","tabindex","title","role",...r!=="html4"?["contenteditable","contextmenu","draggable","dropzone","hidden","spellcheck","translate","itemprop","itemscope","itemtype"]:[],...r!=="html5-strict"?["xml:lang"]:[]]),S1=r=>{let g,B;g="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",B="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",r!=="html4"&&(g+=" article aside details dialog figure main header footer hgroup section nav "+"a ins del canvas map",B+=" audio canvas command data datalist mark meter output picture progress time wbr video ruby bdi keygen svg"),r!=="html5-strict"&&(B=[B,"acronym applet basefont big font strike tt"].join(" "),g=[g,"center dir isindex noframes"].join(" "));const H=[g,B].join(" ");return{blockContent:g,phrasingContent:B,flowContent:H}},Tm=r=>{const{blockContent:g,phrasingContent:B,flowContent:H}=S1(r),re=be=>Object.freeze(be.split(" "));return Object.freeze({blockContent:re(g),phrasingContent:re(B),flowContent:re(H)})},zd={html4:xt(()=>Tm("html4")),html5:xt(()=>Tm("html5")),"html5-strict":xt(()=>Tm("html5-strict"))},fp=(r,g)=>{const{blockContent:B,phrasingContent:H,flowContent:re}=zd[r]();return g==="blocks"?Y.some(B):g==="phrasing"?Y.some(H):g==="flow"?Y.some(re):Y.none()},I0=r=>{const g=M_(r),{phrasingContent:B,flowContent:H}=S1(r),re={},be=(ct,kt,Wt)=>{re[ct]={attributes:We(kt,$({})),attributesOrder:kt,children:We(Wt,$({}))}},Re=(ct,kt="",Wt="")=>{const Jt=Xf(Wt),ln=Xf(ct);let kn=ln.length;const Vn=[...g,...Xf(kt)];for(;kn--;)be(ln[kn],Vn.slice(),Jt)},Ke=(ct,kt)=>{const Wt=Xf(ct),Jt=Xf(kt);let ln=Wt.length;for(;ln--;){const kn=re[Wt[ln]];for(let Vn=0,Rn=Jt.length;Vn{Re(Wt,"",B)}),ye(Xf("center dir isindex noframes"),Wt=>{Re(Wt,"",H)})),Re("html","manifest","head body"),Re("head","","base command link meta noscript script style title"),Re("title hr noscript br"),Re("base","href target"),Re("link","href rel media hreflang type sizes hreflang"),Re("meta","name http-equiv content charset"),Re("style","media type scoped"),Re("script","src async defer type charset"),Re("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",H),Re("dd div","",H),Re("address dt caption","",r==="html4"?B:H),Re("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",B),Re("blockquote","cite",H),Re("ol","reversed start type","li"),Re("ul","","li"),Re("li","value",H),Re("dl","","dt dd"),Re("a","href target rel media hreflang type",r==="html4"?B:H),Re("q","cite",B),Re("ins del","cite datetime",H),Re("img","src sizes srcset alt usemap ismap width height"),Re("iframe","src name width height",H),Re("embed","src type width height"),Re("object","data type typemustmatch name usemap form width height",[H,"param"].join(" ")),Re("param","name value"),Re("map","name",[H,"area"].join(" ")),Re("area","alt coords shape href target rel media hreflang type"),Re("table","border","caption colgroup thead tfoot tbody tr"+(r==="html4"?" col":"")),Re("colgroup","span","col"),Re("col","span"),Re("tbody thead tfoot","","tr"),Re("tr","","td th"),Re("td","colspan rowspan headers",H),Re("th","colspan rowspan headers scope abbr",H),Re("form","accept-charset action autocomplete enctype method name novalidate target",H),Re("fieldset","disabled form name",[H,"legend"].join(" ")),Re("label","form for",B),Re("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Re("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",r==="html4"?H:B),Re("select","disabled form multiple name required size","option optgroup"),Re("optgroup","disabled label","option"),Re("option","disabled label selected value"),Re("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Re("menu","type label",[H,"li"].join(" ")),Re("noscript","",H),r!=="html4"&&(Re("wbr"),Re("ruby","",[B,"rt rp"].join(" ")),Re("figcaption","",H),Re("mark rt rp bdi","",B),Re("summary","",[B,"h1 h2 h3 h4 h5 h6"].join(" ")),Re("canvas","width height",H),Re("data","value",B),Re("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[H,"track source"].join(" ")),Re("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[H,"track source"].join(" ")),Re("picture","","img source"),Re("source","src srcset type media sizes"),Re("track","kind src srclang label default"),Re("datalist","",[B,"option"].join(" ")),Re("article section nav aside main header footer","",H),Re("hgroup","","h1 h2 h3 h4 h5 h6"),Re("figure","",[H,"figcaption"].join(" ")),Re("time","datetime",B),Re("dialog","open",H),Re("command","type label icon disabled checked radiogroup command"),Re("output","for form name",B),Re("progress","value max",B),Re("meter","value min max low high optimum",B),Re("details","open",[H,"summary"].join(" ")),Re("keygen","autofocus challenge disabled form keytype name"),be("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),r!=="html5-strict"&&(Ke("script","language xml:space"),Ke("style","xml:space"),Ke("object","declare classid code codebase codetype archive standby align border hspace vspace"),Ke("embed","align name hspace vspace"),Ke("param","valuetype type"),Ke("a","charset name rev shape coords"),Ke("br","clear"),Ke("applet","codebase archive code object alt name width height align hspace vspace"),Ke("img","name longdesc align border hspace vspace"),Ke("iframe","longdesc frameborder marginwidth marginheight scrolling align"),Ke("font basefont","size color face"),Ke("input","usemap align"),Ke("select"),Ke("textarea"),Ke("h1 h2 h3 h4 h5 h6 div p legend caption","align"),Ke("ul","type compact"),Ke("li","type"),Ke("ol dl menu dir","compact"),Ke("pre","width xml:space"),Ke("hr","align noshade size width"),Ke("isindex","prompt"),Ke("table","summary width frame rules cellspacing cellpadding align bgcolor"),Ke("col","width align char charoff valign"),Ke("colgroup","width align char charoff valign"),Ke("thead","align char charoff valign"),Ke("tr","align char charoff valign bgcolor"),Ke("th","axis align char charoff valign nowrap bgcolor width height"),Ke("form","accept"),Ke("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),Ke("tfoot","align char charoff valign"),Ke("tbody","align char charoff valign"),Ke("area","nohref"),Ke("body","background bgcolor text link vlink alink")),r!=="html4"&&(Ke("input button select textarea","autofocus"),Ke("input textarea","placeholder"),Ke("a","download"),Ke("link script img","crossorigin"),Ke("img","loading"),Ke("iframe","sandbox seamless allow allowfullscreen loading referrerpolicy")),r!=="html4"&&ye([re.video,re.audio],ct=>{delete ct.children.audio,delete ct.children.video}),ye(Xf("a form meter progress dfn"),ct=>{re[ct]&&delete re[ct].children[ct]}),delete re.caption.children.table,delete re.script,re},E_=r=>r==="-"?"remove":"add",Jg=r=>{const g=/^(@?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)$/;return Y.from(g.exec(r)).map(B=>({preset:B[1]==="@",name:B[2]}))},P_=r=>{const g=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return $e(Xf(r,","),B=>{const H=g.exec(B);if(H){const re=H[1],be=re?E_(re):"replace",Re=H[2],Ke=$e(Xf(H[3],"|"),ct=>Jg(ct).toArray());return[{operation:be,name:Re,validChildren:Ke}]}else return[]})},k1=(r,g)=>{const B=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,H=/[*?+]/,{attributes:re,attributesOrder:be}=g;return ye(Xf(r,"|"),Re=>{const Ke=B.exec(Re);if(Ke){const ct={},kt=Ke[1],Wt=Ke[2].replace(/[\\:]:/g,":"),Jt=Ke[3],ln=Ke[4];if(kt==="!"&&(g.attributesRequired=g.attributesRequired||[],g.attributesRequired.push(Wt),ct.required=!0),kt==="-"){delete re[Wt],be.splice(mo.inArray(be,Wt),1);return}if(Jt&&(Jt==="="?(g.attributesDefault=g.attributesDefault||[],g.attributesDefault.push({name:Wt,value:ln}),ct.defaultValue=ln):Jt==="~"?(g.attributesForced=g.attributesForced||[],g.attributesForced.push({name:Wt,value:ln}),ct.forcedValue=ln):Jt==="<"&&(ct.validValues=mo.makeMap(ln,"?"))),H.test(Wt)){const kn=ct;g.attributePatterns=g.attributePatterns||[],kn.pattern=L0(Wt),g.attributePatterns.push(kn)}else re[Wt]||be.push(Wt),re[Wt]=ct}})},zO=(r,g)=>{Ge(r.attributes,(B,H)=>{g.attributes[H]=B}),g.attributesOrder.push(...r.attributesOrder)},bu=(r,g)=>{const B=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return $e(Xf(g,","),H=>{const re=B.exec(H);if(re){const be=re[1],Re=re[2],Ke=re[3],ct=re[4],kt=re[5],Wt={attributes:{},attributesOrder:[]};if(r.each(Jt=>zO(Jt,Wt)),be==="#"?Wt.paddEmpty=!0:be==="-"&&(Wt.removeEmpty=!0),ct==="!"&&(Wt.removeEmptyAttrs=!0),kt&&k1(kt,Wt),Ke&&(Wt.outputName=Re),Re==="@")if(r.isNone())r=Y.some(Wt);else return[];return[Ke?{name:Re,element:Wt,aliasName:Ke}:{name:Re,element:Wt}]}else return[]})},Cm={},D0=mo.makeMap,Sa=mo.each,Ri=mo.extend,Fp=mo.explode,qv=(r,g={})=>{const B=D0(r," ",D0(r.toUpperCase()," "));return Ri(B,g)},db=r=>qv("td th li dt dd figcaption caption details summary",r.getTextBlockElements()),T1=(r,g)=>{if(r){const B={};return v(r)&&(r={"*":r}),Sa(r,(H,re)=>{B[re]=B[re.toUpperCase()]=g==="map"?D0(H,/[, ]/):Fp(H,/[, ]/)}),B}else return},Np=(r={})=>{var g;const B={},H={};let re=[];const be={},Re={},Ke=(zi,ss,Rc)=>{const cu=r[zi];if(cu)return D0(cu,/[, ]/,D0(cu.toUpperCase(),/[, ]/));{let Nu=Cm[zi];return Nu||(Nu=qv(ss,Rc),Cm[zi]=Nu),Nu}},ct=(g=r.schema)!==null&&g!==void 0?g:"html5",kt=I0(ct);r.verify_html===!1&&(r.valid_elements="*[*]");const Wt=T1(r.valid_styles),Jt=T1(r.invalid_styles,"map"),ln=T1(r.valid_classes,"map"),kn=Ke("whitespace_elements","pre script noscript style textarea video audio iframe object code"),Vn=Ke("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),Rn=Ke("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),qn=Ke("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),pr="td th iframe video audio object script code",Tr=Ke("non_empty_elements",pr+" pre svg textarea summary",Rn),wr=Ke("move_caret_before_on_enter_elements",pr+" table",Rn),Ur="h1 h2 h3 h4 h5 h6",wo=Ke("text_block_elements",Ur+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),jo=Ke("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",wo),di=Ke("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),lo=Ke("transparent_elements","a ins del canvas map"),eo=Ke("wrap_block_elements","pre "+Ur);Sa("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),zi=>{Re[zi]=new RegExp("]*>","gi")});const xo=zi=>{const ss=Y.from(B["@"]),Rc=/[*?+]/;ye(bu(ss,zi??""),({name:cu,element:Nu,aliasName:nd})=>{if(nd&&(B[nd]=Nu),Rc.test(cu)){const wu=Nu;wu.pattern=L0(cu),re.push(wu)}else B[cu]=Nu})},bi=zi=>{re=[],ye(nt(B),ss=>{delete B[ss]}),xo(zi)},Bi=(zi,ss)=>{var Rc,cu;delete Cm.text_block_elements,delete Cm.block_elements;const Nu=ss.extends?!om(ss.extends):!1,nd=ss.extends;if(H[zi]=nd?H[nd]:{},be[zi]=nd??zi,Tr[zi.toUpperCase()]={},Tr[zi]={},Nu||(jo[zi.toUpperCase()]={},jo[zi]={}),nd&&!B[zi]&&B[nd]){const wu=zp(B[nd]);delete wu.removeEmptyAttrs,delete wu.removeEmpty,B[zi]=wu}else B[zi]={attributesOrder:[],attributes:{}};if(A(ss.attributes)){const wu=fh=>{Ou.attributesOrder.push(fh),Ou.attributes[fh]={}},Ou=(Rc=B[zi])!==null&&Rc!==void 0?Rc:{};delete Ou.attributesDefault,delete Ou.attributesForced,delete Ou.attributePatterns,delete Ou.attributesRequired,Ou.attributesOrder=[],Ou.attributes={},ye(ss.attributes,fh=>{const Ig=M_(ct);Jg(fh).each(({preset:Xm,name:x0})=>{Xm?x0==="global"&&ye(Ig,wu):wu(x0)})}),B[zi]=Ou}if(R(ss.padEmpty)){const wu=(cu=B[zi])!==null&&cu!==void 0?cu:{};wu.paddEmpty=ss.padEmpty,B[zi]=wu}if(A(ss.children)){const wu={},Ou=Ig=>{wu[Ig]={}},fh=Ig=>{fp(ct,Ig).each(Xm=>{ye(Xm,Ou)})};ye(ss.children,Ig=>{Jg(Ig).each(({preset:Xm,name:x0})=>{Xm?fh(x0):Ou(x0)})}),H[zi]=wu}nd&&Ge(H,(wu,Ou)=>{wu[nd]&&(H[Ou]=wu=Ri({},H[Ou]),wu[zi]=wu[nd])})},$a=zi=>{ye(Kg(zi??""),({name:ss,cloneName:Rc})=>{Bi(ss,{extends:Rc})})},Ia=zi=>{_(zi)?Ge(zi,(ss,Rc)=>Bi(Rc,ss)):v(zi)&&$a(zi)},Us=zi=>{ye(P_(zi??""),({operation:ss,name:Rc,validChildren:cu})=>{const Nu=ss==="replace"?{"#comment":{}}:H[Rc],nd=Ou=>{ss==="remove"?delete Nu[Ou]:Nu[Ou]={}},wu=Ou=>{fp(ct,Ou).each(fh=>{ye(fh,nd)})};ye(cu,({preset:Ou,name:fh})=>{Ou?wu(fh):nd(fh)}),H[Rc]=Nu})},sl=zi=>{const ss=B[zi];if(ss)return ss;let Rc=re.length;for(;Rc--;){const cu=re[Rc];if(cu.pattern.test(zi))return cu}},nu=()=>{r.valid_elements?(bi(r.valid_elements),Sa(kt,(zi,ss)=>{H[ss]=zi.children})):(Sa(kt,(zi,ss)=>{B[ss]={attributes:zi.attributes,attributesOrder:zi.attributesOrder},H[ss]=zi.children}),Sa(Xf("strong/b em/i"),zi=>{const ss=Xf(zi,"/");B[ss[1]].outputName=ss[0]}),Sa(di,(zi,ss)=>{B[ss]&&(r.padd_empty_block_inline_children&&(B[ss].paddInEmptyBlock=!0),B[ss].removeEmpty=!0)}),Sa(Xf("ol ul blockquote a table tbody"),zi=>{B[zi]&&(B[zi].removeEmpty=!0)}),Sa(Xf("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),zi=>{B[zi]&&(B[zi].paddEmpty=!0)}),Sa(Xf("span"),zi=>{B[zi].removeEmptyAttrs=!0})),delete B.svg,Ia(r.custom_elements),Us(r.valid_children),xo(r.extended_valid_elements),Us("+ol[ul|ol],+ul[ul|ol]"),Sa({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(zi,ss)=>{B[ss]&&(B[ss].parentsRequired=Xf(zi))}),r.invalid_elements&&Sa(Fp(r.invalid_elements),zi=>{B[zi]&&delete B[zi]}),sl("span")||xo("span[!data-mce-type|*]")},jd=$(Wt),ml=$(Jt),Wo=$(ln),Ei=$(qn),ws=$(jo),ii=$(wo),Qi=$(di),Qa=$(Object.seal(Rn)),ci=$(Vn),Va=$(Tr),Xa=$(wr),If=$(kn),el=$(lo),Yu=$(eo),Pg=$(Object.seal(Re)),m1=(zi,ss)=>{const Rc=H[zi.toLowerCase()];return!!(Rc&&Rc[ss.toLowerCase()])},Dh=(zi,ss)=>{const Rc=sl(zi);if(Rc)if(ss){if(Rc.attributes[ss])return!0;const cu=Rc.attributePatterns;if(cu){let Nu=cu.length;for(;Nu--;)if(cu[Nu].pattern.test(ss))return!0}}else return!0;return!1},om=zi=>_t(ws(),zi),Rg=zi=>!xr(zi,"#")&&Dh(zi)&&!om(zi),xp=zi=>_t(Yu(),zi)||Rg(zi),Lg=$(be);return nu(),{type:ct,children:H,elements:B,getValidStyles:jd,getValidClasses:Wo,getBlockElements:ws,getInvalidStyles:ml,getVoidElements:Qa,getTextBlockElements:ii,getTextInlineElements:Qi,getBoolAttrs:Ei,getElementRule:sl,getSelfClosingElements:ci,getNonEmptyElements:Va,getMoveCaretBeforeOnEnterElements:Xa,getWhitespaceElements:If,getTransparentElements:el,getSpecialElements:Pg,isValidChild:m1,isValid:Dh,isBlock:om,isInline:Rg,isWrapper:xp,getCustomElements:Lg,addValidElements:xo,setValidElements:bi,addCustomElements:Ia,addValidChildren:Us}},hl=r=>({value:FO(r)}),FO=r=>In(r,"#").toUpperCase(),Rx=r=>{const g=r.toString(16);return(g.length===1?"0"+g:g).toUpperCase()},B0=r=>{const g=Rx(r.red)+Rx(r.green)+Rx(r.blue);return hl(g)},fo=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,e0=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,xS=(r,g,B,H)=>({red:r,green:g,blue:B,alpha:H}),ug=(r,g,B,H)=>{const re=parseInt(r,10),be=parseInt(g,10),Re=parseInt(B,10),Ke=parseFloat(H);return xS(re,be,Re,Ke)},R_=r=>fo.test(r)?"rgb":e0.test(r)?"rgba":"other",Fd=r=>{const g=fo.exec(r);if(g!==null)return Y.some(ug(g[1],g[2],g[3],"1"));const B=e0.exec(r);return B!==null?Y.some(ug(B[1],B[2],B[3],B[4])):Y.none()},L_=r=>`rgba(${r.red},${r.green},${r.blue},${r.alpha})`,Am=r=>Fd(r).map(B0).map(g=>"#"+g.value).getOr(r),I_=(r={},g)=>{const B=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,H=/\s*([^:]+):\s*([^;]+);?/g,re=/\s+$/,be={};let Re,Ke;const ct=Iu;g&&(Re=g.getValidStyles(),Ke=g.getInvalidStyles());const kt=(`\\" \\' \\; \\: ; : `+ct).split(" ");for(let Jt=0;Jt{const ln={};let kn=!1;const Vn=r.url_converter,Rn=r.url_converter_scope||Wt,qn=(lo,eo,xo)=>{const bi=ln[lo+"-top"+eo];if(!bi)return;const Bi=ln[lo+"-right"+eo];if(!Bi)return;const $a=ln[lo+"-bottom"+eo];if(!$a)return;const Ia=ln[lo+"-left"+eo];if(!Ia)return;const Us=[bi,Bi,$a,Ia];let sl=Us.length-1;for(;sl--&&Us[sl]===Us[sl+1];);sl>-1&&xo||(ln[lo+eo]=sl===-1?Us[0]:Us.join(" "),delete ln[lo+"-top"+eo],delete ln[lo+"-right"+eo],delete ln[lo+"-bottom"+eo],delete ln[lo+"-left"+eo])},pr=lo=>{const eo=ln[lo];if(!eo)return;const xo=eo.indexOf(",")>-1?[eo]:eo.split(" ");let bi=xo.length;for(;bi--;)if(xo[bi]!==xo[0])return!1;return ln[lo]=xo[0],!0},Tr=(lo,eo,xo,bi)=>{pr(eo)&&pr(xo)&&pr(bi)&&(ln[lo]=ln[eo]+" "+ln[xo]+" "+ln[bi],delete ln[eo],delete ln[xo],delete ln[bi])},wr=lo=>(kn=!0,be[lo]),Ur=(lo,eo)=>(kn&&(lo=lo.replace(/\uFEFF[0-9]/g,xo=>be[xo])),eo||(lo=lo.replace(/\\([\'\";:])/g,"$1")),lo),wo=lo=>String.fromCharCode(parseInt(lo.slice(1),16)),jo=lo=>lo.replace(/\\[0-9a-f]+/gi,wo),di=(lo,eo,xo,bi,Bi,$a)=>{if(Bi=Bi||$a,Bi)return Bi=Ur(Bi),"'"+Bi.replace(/\'/g,"\\'")+"'";if(eo=Ur(eo||xo||bi||""),!r.allow_script_urls){const Ia=eo.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(Ia)||!r.allow_svg_data_urls&&/^data:image\/svg/i.test(Ia))return""}return Vn&&(eo=Vn.call(Rn,eo,"style")),"url('"+eo.replace(/\'/g,"\\'")+"')"};if(Jt){Jt=Jt.replace(/[\u0000-\u001F]/g,""),Jt=Jt.replace(/\\[\"\';:\uFEFF]/g,wr).replace(/\"[^\"]+\"|\'[^\']+\'/g,eo=>eo.replace(/[;:]/g,wr));let lo;for(;lo=H.exec(Jt);){H.lastIndex=lo.index+lo[0].length;let eo=lo[1].replace(re,"").toLowerCase(),xo=lo[2].replace(re,"");if(eo&&xo){if(eo=jo(eo),xo=jo(xo),eo.indexOf(ct)!==-1||eo.indexOf('"')!==-1||!r.allow_script_urls&&(eo==="behavior"||/expression\s*\(|\/\*|\*\//.test(xo)))continue;eo==="font-weight"&&xo==="700"?xo="bold":(eo==="color"||eo==="background-color")&&(xo=xo.toLowerCase()),R_(xo)==="rgb"&&Fd(xo).each(bi=>{xo=Am(L_(bi)).toLowerCase()}),xo=xo.replace(B,di),ln[eo]=kn?Ur(xo,!0):xo}}qn("border","",!0),qn("border","-width"),qn("border","-color"),qn("border","-style"),qn("padding",""),qn("margin",""),Tr("border","border-width","border-style","border-color"),ln.border==="medium none"&&delete ln.border,ln["border-image"]==="none"&&delete ln["border-image"]}return ln},serialize:(Jt,ln)=>{let kn="";const Vn=(qn,pr)=>{const Tr=pr[qn];if(Tr)for(let wr=0,Ur=Tr.length;wr0?" ":"")+wo+": "+jo+";")}},Rn=(qn,pr)=>{if(!Ke||!pr)return!0;let Tr=Ke["*"];return Tr&&Tr[qn]?!1:(Tr=Ke[pr],!(Tr&&Tr[qn]))};return ln&&Re?(Vn("*",Re),Vn(ln,Re)):Ge(Jt,(qn,pr)=>{qn&&Rn(pr,ln)&&(kn+=(kn.length>0?" ":"")+pr+": "+qn+";")}),kn}};return Wt},Wv={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Ll=r=>r instanceof Event||C(r.initEvent),Sh=r=>r.isDefaultPrevented===q||r.isDefaultPrevented===oe,NO=r=>T(r.preventDefault)||Ll(r),$p=(r,g)=>{const B=g??{};for(const H in r)_t(Wv,H)||(B[H]=r[H]);return E(r.composedPath)&&(B.composedPath=()=>r.composedPath()),E(r.getModifierState)&&(B.getModifierState=H=>r.getModifierState(H)),E(r.getTargetRanges)&&(B.getTargetRanges=()=>r.getTargetRanges()),B},Lx=(r,g,B,H)=>{var re;const be=$p(g,H);return be.type=r,T(be.target)&&(be.target=(re=be.srcElement)!==null&&re!==void 0?re:B),NO(g)&&(be.preventDefault=()=>{be.defaultPrevented=!0,be.isDefaultPrevented=q,C(g.preventDefault)&&g.preventDefault()},be.stopPropagation=()=>{be.cancelBubble=!0,be.isPropagationStopped=q,C(g.stopPropagation)&&g.stopPropagation()},be.stopImmediatePropagation=()=>{be.isImmediatePropagationStopped=q,be.stopPropagation()},Sh(be)||(be.isDefaultPrevented=be.defaultPrevented===!0?q:oe,be.isPropagationStopped=be.cancelBubble===!0?q:oe,be.isImmediatePropagationStopped=oe)),be},Yv="mce-data-",Xv=/^(?:mouse|contextmenu)|click/,hb=(r,g,B,H)=>{r.addEventListener(g,B,H||!1)},Tf=(r,g,B,H)=>{r.removeEventListener(g,B,H||!1)},$O=r=>E(r)&&Xv.test(r.type),C1=(r,g)=>{const B=Lx(r.type,r,document,g);if($O(r)&&M(r.pageX)&&!M(r.clientX)){const H=B.target.ownerDocument||document,re=H.documentElement,be=H.body,Re=B;Re.pageX=r.clientX+(re&&re.scrollLeft||be&&be.scrollLeft||0)-(re&&re.clientLeft||be&&be.clientLeft||0),Re.pageY=r.clientY+(re&&re.scrollTop||be&&be.scrollTop||0)-(re&&re.clientTop||be&&be.clientTop||0)}return B},A1=(r,g,B)=>{const H=r.document,re={type:"ready"};if(B.domLoaded){g(re);return}const be=()=>H.readyState==="complete"||H.readyState==="interactive"&&H.body,Re=()=>{Tf(r,"DOMContentLoaded",Re),Tf(r,"load",Re),B.domLoaded||(B.domLoaded=!0,g(re)),r=null};be()?Re():hb(r,"DOMContentLoaded",Re),B.domLoaded||hb(r,"load",Re)};class pd{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Yv+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(g,B,H,re){const be=this;let Re;const Ke=window,ct=ln=>{be.executeHandlers(C1(ln||Ke.event),kt)};if(!g||Nt(g)||xn(g))return H;let kt;g[be.expando]?kt=g[be.expando]:(kt=be.count++,g[be.expando]=kt,be.events[kt]={}),re=re||g;const Wt=B.split(" ");let Jt=Wt.length;for(;Jt--;){let ln=Wt[Jt],kn=ct,Vn=!1,Rn=!1;if(ln==="DOMContentLoaded"&&(ln="ready"),be.domLoaded&&ln==="ready"&&g.readyState==="complete"){H.call(re,C1({type:ln}));continue}!be.hasFocusIn&&(ln==="focusin"||ln==="focusout")&&(Vn=!0,Rn=ln==="focusin"?"focus":"blur",kn=qn=>{const pr=C1(qn||Ke.event);pr.type=pr.type==="focus"?"focusin":"focusout",be.executeHandlers(pr,kt)}),Re=be.events[kt][ln],Re?ln==="ready"&&be.domLoaded?H(C1({type:ln})):Re.push({func:H,scope:re}):(be.events[kt][ln]=Re=[{func:H,scope:re}],Re.fakeName=Rn,Re.capture=Vn,Re.nativeHandler=kn,ln==="ready"?A1(g,kn,be):hb(g,Rn||ln,kn,Vn))}return g=Re=null,H}unbind(g,B,H){if(!g||Nt(g)||xn(g))return this;const re=g[this.expando];if(re){let be=this.events[re];if(B){const Re=B.split(" ");let Ke=Re.length;for(;Ke--;){const ct=Re[Ke],kt=be[ct];if(kt){if(H){let Wt=kt.length;for(;Wt--;)if(kt[Wt].func===H){const Jt=kt.nativeHandler,ln=kt.fakeName,kn=kt.capture,Vn=kt.slice(0,Wt).concat(kt.slice(Wt+1));Vn.nativeHandler=Jt,Vn.fakeName=ln,Vn.capture=kn,be[ct]=Vn}}(!H||kt.length===0)&&(delete be[ct],Tf(g,kt.fakeName||ct,kt.nativeHandler,kt.capture))}}}else Ge(be,(Re,Ke)=>{Tf(g,Re.fakeName||Ke,Re.nativeHandler,Re.capture)}),be={};for(const Re in be)if(_t(be,Re))return this;delete this.events[re];try{delete g[this.expando]}catch{g[this.expando]=null}}return this}fire(g,B,H){return this.dispatch(g,B,H)}dispatch(g,B,H){if(!g||Nt(g)||xn(g))return this;const re=C1({type:B,target:g},H);do{const be=g[this.expando];be&&this.executeHandlers(re,be),g=g.parentNode||g.ownerDocument||g.defaultView||g.parentWindow}while(g&&!re.isPropagationStopped());return this}clean(g){if(!g||Nt(g)||xn(g))return this;if(g[this.expando]&&this.unbind(g),g.getElementsByTagName||(g=g.document),g&&g.getElementsByTagName){this.unbind(g);const B=g.getElementsByTagName("*");let H=B.length;for(;H--;)g=B[H],g[this.expando]&&this.unbind(g)}return this}destroy(){this.events={}}cancel(g){return g&&(g.preventDefault(),g.stopImmediatePropagation()),!1}executeHandlers(g,B){const H=this.events[B],re=H&&H[g.type];if(re)for(let be=0,Re=re.length;be{T(B)||B===""?gc(r,g):Es(r,g,B)},kh=r=>r.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),Do=(r,g)=>{let B=0;if(r)for(let H=r.nodeType,re=r.previousSibling;re;re=re.previousSibling){const be=re.nodeType;g&&Nt(re)&&(be===H||!re.data.length)||(B++,H=be)}return B},Ix=(r,g)=>{const B=uc(g,"style"),H=r.serialize(r.parse(B),sa(g));Gf(g,B_,H)},lf=(r,g)=>L(r)?_t(Gv,g)?r+"":r+"px":r,pb=(r,g,B)=>{const H=kh(g);T(B)||B===""?Yc(r,H):Ml(r,H,lf(B,H))},md=(r,g,B)=>{const H=g.keep_values,re={set:(Re,Ke,ct)=>{const kt=sr.fromDom(Re);C(g.url_converter)&&E(Ke)&&(Ke=g.url_converter.call(g.url_converter_scope||B(),String(Ke),ct,Re));const Wt="data-mce-"+ct;Gf(kt,Wt,Ke),Gf(kt,ct,Ke)},get:(Re,Ke)=>{const ct=sr.fromDom(Re);return uc(ct,"data-mce-"+Ke)||uc(ct,Ke)}},be={style:{set:(Re,Ke)=>{const ct=sr.fromDom(Re);H&&Gf(ct,B_,Ke),gc(ct,"style"),v(Ke)&&Hi(ct,r.parse(Ke))},get:Re=>{const Ke=sr.fromDom(Re),ct=uc(Ke,B_)||uc(Ke,"style");return r.serialize(r.parse(ct),sa(Ke))}}};return H&&(be.href=be.src=re),be},Nl=(r,g={})=>{const B={},H=window,re={};let be=0;const Re=!0,Ke=!0,ct=wm.forElement(sr.fromDom(r),{contentCssCors:g.contentCssCors,referrerPolicy:g.referrerPolicy}),kt=[],Wt=g.schema?g.schema:Np({}),Jt=I_({url_converter:g.url_converter,url_converter_scope:g.url_converter_scope},g.schema),ln=g.ownEvents?new pd:pd.Event,kn=Wt.getBlockElements(),Vn=Yr=>v(Yr)?_t(kn,Yr):ne(Yr)&&(_t(kn,Yr.nodeName)||xm(Wt,Yr)),Rn=Yr=>Yr&&r&&v(Yr)?r.getElementById(Yr):Yr,qn=Yr=>{const Gr=Rn(Yr);return E(Gr)?sr.fromDom(Gr):null},pr=(Yr,Gr,Xo="")=>{let Vo;const Gi=qn(Yr);if(E(Gi)&&mc(Gi)){const ts=q2[Gr];ts&&ts.get?Vo=ts.get(Gi.dom,Gr):Vo=uc(Gi,Gr)}return E(Vo)?Vo:Xo},Tr=Yr=>{const Gr=Rn(Yr);return T(Gr)?[]:Gr.attributes},wr=(Yr,Gr,Xo)=>{Ei(Yr,Vo=>{if(ne(Vo)){const Gi=sr.fromDom(Vo),ts=Xo===""?null:Xo,Lc=uc(Gi,Gr),_0=q2[Gr];_0&&_0.set?_0.set(Gi.dom,ts,Gr):Gf(Gi,Gr,ts),Lc!==ts&&g.onSetAttrib&&g.onSetAttrib({attrElm:Gi.dom,attrName:Gr,attrValue:ts})}})},Ur=(Yr,Gr)=>Yr.cloneNode(Gr),wo=()=>g.root_element||r.body,jo=Yr=>{const Gr=fa(Yr);return{x:Gr.x,y:Gr.y,w:Gr.width,h:Gr.height}},di=(Yr,Gr)=>oc(r.body,Rn(Yr),Gr),lo=(Yr,Gr,Xo)=>{Ei(Yr,Vo=>{const Gi=sr.fromDom(Vo);pb(Gi,Gr,Xo),g.update_styles&&Ix(Jt,Gi)})},eo=(Yr,Gr)=>{Ei(Yr,Xo=>{const Vo=sr.fromDom(Xo);Ge(Gr,(Gi,ts)=>{pb(Vo,ts,Gi)}),g.update_styles&&Ix(Jt,Vo)})},xo=(Yr,Gr,Xo)=>{const Vo=Rn(Yr);if(!(T(Vo)||!ge(Vo)&&!xe(Vo)))return Xo?pi(sr.fromDom(Vo),kh(Gr)):(Gr=Gr.replace(/-(\D)/g,(Gi,ts)=>ts.toUpperCase()),Gr==="float"&&(Gr="cssFloat"),Vo.style?Vo.style[Gr]:void 0)},bi=Yr=>{const Gr=Rn(Yr);if(!Gr)return{w:0,h:0};let Xo=xo(Gr,"width"),Vo=xo(Gr,"height");return(!Xo||Xo.indexOf("px")===-1)&&(Xo="0"),(!Vo||Vo.indexOf("px")===-1)&&(Vo="0"),{w:parseInt(Xo,10)||Gr.offsetWidth||Gr.clientWidth,h:parseInt(Vo,10)||Gr.offsetHeight||Gr.clientHeight}},Bi=Yr=>{const Gr=Rn(Yr),Xo=di(Gr),Vo=bi(Gr);return{x:Xo.x,y:Xo.y,w:Vo.w,h:Vo.h}},$a=(Yr,Gr)=>{if(!Yr)return!1;const Xo=A(Yr)?Yr:[Yr];return de(Xo,Vo=>_f(sr.fromDom(Vo),Gr))},Ia=(Yr,Gr,Xo,Vo)=>{const Gi=[];let ts=Rn(Yr);Vo=Vo===void 0;const Lc=Xo||(wo().nodeName!=="BODY"?wo().parentNode:null);if(v(Gr))if(Gr==="*")Gr=ne;else{const _0=Gr;Gr=_A=>$a(_A,_0)}for(;ts&&!(ts===Lc||T(ts.nodeType)||pn(ts)||Ln(ts));){if(!Gr||Gr(ts))if(Vo)Gi.push(ts);else return[ts];ts=ts.parentNode}return Vo?Gi:null},Us=(Yr,Gr,Xo)=>{const Vo=Ia(Yr,Gr,Xo,!1);return Vo&&Vo.length>0?Vo[0]:null},sl=(Yr,Gr,Xo)=>{let Vo=Gr;if(Yr){v(Gr)&&(Vo=Gi=>$a(Gi,Gr));for(let Gi=Yr[Xo];Gi;Gi=Gi[Xo])if(C(Vo)&&Vo(Gi))return Gi}return null},nu=(Yr,Gr)=>sl(Yr,Gr,"nextSibling"),jd=(Yr,Gr)=>sl(Yr,Gr,"previousSibling"),ml=Yr=>C(Yr.querySelectorAll),Wo=(Yr,Gr)=>{var Xo,Vo;const Gi=(Vo=(Xo=Rn(Gr))!==null&&Xo!==void 0?Xo:g.root_element)!==null&&Vo!==void 0?Vo:r;return ml(Gi)?Ee(Gi.querySelectorAll(Yr)):[]},Ei=function(Yr,Gr,Xo){const Vo=Xo??this;if(A(Yr)){const Gi=[];return D_(Yr,(ts,Lc)=>{const _0=Rn(ts);_0&&Gi.push(Gr.call(Vo,_0,Lc))}),Gi}else{const Gi=Rn(Yr);return Gi?Gr.call(Vo,Gi):!1}},ws=(Yr,Gr)=>{Ei(Yr,Xo=>{Ge(Gr,(Vo,Gi)=>{wr(Xo,Gi,Vo)})})},ii=(Yr,Gr)=>{Ei(Yr,Xo=>{const Vo=sr.fromDom(Xo);Id(Vo,Gr)})},Qi=(Yr,Gr,Xo,Vo,Gi)=>Ei(Yr,ts=>{const Lc=v(Gr)?r.createElement(Gr):Gr;return E(Xo)&&ws(Lc,Xo),Vo&&(!v(Vo)&&Vo.nodeType?Lc.appendChild(Vo):v(Vo)&&ii(Lc,Vo)),Gi?Lc:ts.appendChild(Lc)}),Qa=(Yr,Gr,Xo)=>Qi(r.createElement(Yr),Yr,Gr,Xo,!0),ci=up.decode,Va=up.encodeAllRaw,Xa=(Yr,Gr,Xo="")=>{let Vo="<"+Yr;for(const Gi in Gr)nn(Gr,Gi)&&(Vo+=" "+Gi+'="'+Va(Gr[Gi])+'"');return _r(Xo)&&_t(Wt.getVoidElements(),Yr)?Vo+" />":Vo+">"+Xo+""},If=Yr=>{const Gr=r.createElement("div"),Xo=r.createDocumentFragment();Xo.appendChild(Gr),Yr&&(Gr.innerHTML=Yr);let Vo;for(;Vo=Gr.firstChild;)Xo.appendChild(Vo);return Xo.removeChild(Gr),Xo},el=(Yr,Gr)=>Ei(Yr,Xo=>{const Vo=sr.fromDom(Xo);return Gr&&ye(Oc(Vo),Gi=>{Ss(Gi)&&Gi.dom.length===0?ja(Gi):Fc(Vo,Gi)}),ja(Vo),Vo.dom}),Yu=Yr=>Ei(Yr,Gr=>{const Xo=Gr.attributes;for(let Vo=Xo.length-1;Vo>=0;Vo--)Gr.removeAttributeNode(Xo.item(Vo))}),Pg=Yr=>Jt.parse(Yr),m1=(Yr,Gr)=>Jt.serialize(Yr,Gr),Dh=Yr=>{if(kv!==Nl.DOM&&r===document){if(B[Yr])return;B[Yr]=!0}let Gr=r.getElementById("mceDefaultStyles");if(!Gr){Gr=r.createElement("style"),Gr.id="mceDefaultStyles",Gr.type="text/css";const Xo=r.head;Xo.firstChild?Xo.insertBefore(Gr,Xo.firstChild):Xo.appendChild(Gr)}Gr.styleSheet?Gr.styleSheet.cssText+=Yr:Gr.appendChild(r.createTextNode(Yr))},om=Yr=>{Yr||(Yr=""),ye(Yr.split(","),Gr=>{re[Gr]=!0,ct.load(Gr).catch(k)})},Rg=(Yr,Gr,Xo)=>{Ei(Yr,Vo=>{if(ne(Vo)){const Gi=sr.fromDom(Vo),ts=Gr.split(" ");ye(ts,Lc=>{E(Xo)?(Xo?xf:nf)(Gi,Lc):gh(Gi,Lc)})}})},xp=(Yr,Gr)=>{Rg(Yr,Gr,!0)},Lg=(Yr,Gr)=>{Rg(Yr,Gr,!1)},zi=(Yr,Gr)=>{const Xo=qn(Yr),Vo=Gr.split(" ");return E(Xo)&&Oe(Vo,Gi=>rs(Xo,Gi))},ss=Yr=>{Ei(Yr,Gr=>Yc(sr.fromDom(Gr),"display"))},Rc=Yr=>{Ei(Yr,Gr=>Ml(sr.fromDom(Gr),"display","none"))},cu=Yr=>{const Gr=qn(Yr);return E(Gr)&&Aa(Ru(Gr,"display"),"none")},Nu=Yr=>(Yr||"mce_")+be++,nd=Yr=>{const Gr=qn(Yr);return E(Gr)?ne(Gr.dom)?Gr.dom.outerHTML:Ka(Gr):""},wu=(Yr,Gr)=>{Ei(Yr,Xo=>{ne(Xo)&&(Xo.outerHTML=Gr)})},Ou=(Yr,Gr)=>{const Xo=Rn(Gr);return Ei(Yr,Vo=>{const Gi=Xo==null?void 0:Xo.parentNode,ts=Xo==null?void 0:Xo.nextSibling;return Gi&&(ts?Gi.insertBefore(Vo,ts):Gi.appendChild(Vo)),Vo})},fh=(Yr,Gr,Xo)=>Ei(Gr,Vo=>{var Gi;const ts=A(Gr)?Yr.cloneNode(!0):Yr;return Xo&&D_(VO(Vo.childNodes),Lc=>{ts.appendChild(Lc)}),(Gi=Vo.parentNode)===null||Gi===void 0||Gi.replaceChild(ts,Vo),Vo}),Ig=(Yr,Gr)=>{if(Yr.nodeName!==Gr.toUpperCase()){const Xo=Qa(Gr);return D_(Tr(Yr),Vo=>{wr(Xo,Vo.nodeName,pr(Yr,Vo.nodeName))}),fh(Xo,Yr,!0),Xo}else return Yr},Xm=(Yr,Gr)=>{let Xo=Yr;for(;Xo;){let Vo=Gr;for(;Vo&&Xo!==Vo;)Vo=Vo.parentNode;if(Xo===Vo)break;Xo=Xo.parentNode}return!Xo&&Yr.ownerDocument?Yr.ownerDocument.documentElement:Xo},x0=(Yr,Gr,Xo)=>S(Gr)?ba(Wt,Yr,{...Xo,isContent:Gi=>{const ts=Gi.nodeName.toLowerCase();return!!Gr[ts]}}):ba(Wt,Yr,Xo),Dg=()=>r.createRange(),ux=(Yr,Gr,Xo)=>{let Vo=Dg(),Gi,ts;if(Yr&&Gr&&Yr.parentNode&&Gr.parentNode){const Lc=Yr.parentNode;return Vo.setStart(Lc,Do(Yr)),Vo.setEnd(Gr.parentNode,Do(Gr)),Gi=Vo.extractContents(),Vo=Dg(),Vo.setStart(Gr.parentNode,Do(Gr)+1),Vo.setEnd(Lc,Do(Yr)+1),ts=Vo.extractContents(),Lc.insertBefore(ap(kv,Gi,Wt),Yr),Xo?Lc.insertBefore(Xo,Yr):Lc.insertBefore(Gr,Yr),Lc.insertBefore(ap(kv,ts,Wt),Yr),el(Yr),Xo||Gr}else return},Z2=(Yr,Gr,Xo,Vo)=>{if(A(Yr)){let Gi=Yr.length;const ts=[];for(;Gi--;)ts[Gi]=Z2(Yr[Gi],Gr,Xo,Vo);return ts}else return g.collect&&(Yr===r||Yr===H)&&kt.push([Yr,Gr,Xo,Vo]),ln.bind(Yr,Gr,Xo,Vo||kv)},hO=(Yr,Gr,Xo)=>{if(A(Yr)){let Vo=Yr.length;const Gi=[];for(;Vo--;)Gi[Vo]=hO(Yr[Vo],Gr,Xo);return Gi}else{if(kt.length>0&&(Yr===r||Yr===H)){let Vo=kt.length;for(;Vo--;){const[Gi,ts,Lc]=kt[Vo];Yr===Gi&&(!Gr||Gr===ts)&&(!Xo||Xo===Lc)&&ln.unbind(Gi,ts,Lc)}}return ln.unbind(Yr,Gr,Xo)}},xA=(Yr,Gr,Xo)=>ln.dispatch(Yr,Gr,Xo),fx=(Yr,Gr,Xo)=>ln.dispatch(Yr,Gr,Xo),$k=Yr=>{if(Yr&&ge(Yr)){const Gr=Yr.getAttribute("data-mce-contenteditable");return Gr&&Gr!=="inherit"?Gr:Yr.contentEditable!=="inherit"?Yr.contentEditable:null}else return null},kv={doc:r,settings:g,win:H,files:re,stdMode:Re,boxModel:Ke,styleSheetLoader:ct,boundEvents:kt,styles:Jt,schema:Wt,events:ln,isBlock:Vn,root:null,clone:Ur,getRoot:wo,getViewPort:jo,getRect:Bi,getSize:bi,getParent:Us,getParents:Ia,get:Rn,getNext:nu,getPrev:jd,select:Wo,is:$a,add:Qi,create:Qa,createHTML:Xa,createFragment:If,remove:el,setStyle:lo,getStyle:xo,setStyles:eo,removeAllAttribs:Yu,setAttrib:wr,setAttribs:ws,getAttrib:pr,getPos:di,parseStyle:Pg,serializeStyle:m1,addStyle:Dh,loadCSS:om,addClass:xp,removeClass:Lg,hasClass:zi,toggleClass:Rg,show:ss,hide:Rc,isHidden:cu,uniqueId:Nu,setHTML:ii,getOuterHTML:nd,setOuterHTML:wu,decode:ci,encode:Va,insertAfter:Ou,replace:fh,rename:Ig,findCommonAncestor:Xm,run:Ei,getAttribs:Tr,isEmpty:x0,createRng:Dg,nodeIndex:Do,split:ux,bind:Z2,unbind:hO,fire:fx,dispatch:xA,getContentEditable:$k,getContentEditableParent:Yr=>{const Gr=wo();let Xo=null;for(let Vo=Yr;Vo&&Vo!==Gr&&(Xo=$k(Vo),Xo===null);Vo=Vo.parentNode);return Xo},isEditable:Yr=>{if(E(Yr)){const Gr=ne(Yr)?Yr:Yr.parentElement;return E(Gr)&&ge(Gr)&&js(sr.fromDom(Gr))}else return!1},destroy:()=>{if(kt.length>0){let Yr=kt.length;for(;Yr--;){const[Gr,Xo,Vo]=kt[Yr];ln.unbind(Gr,Xo,Vo)}}Ge(re,(Yr,Gr)=>{ct.unload(Gr),delete re[Gr]})},isChildOf:(Yr,Gr)=>Yr===Gr||Gr.contains(Yr),dumpRng:Yr=>"startContainer: "+Yr.startContainer.nodeName+", startOffset: "+Yr.startOffset+", endContainer: "+Yr.endContainer.nodeName+", endOffset: "+Yr.endOffset},q2=md(Jt,g,$(kv));return kv};Nl.DOM=Nl(document),Nl.nodeIndex=Do;const fg=Nl.DOM,Dx=0,UO=1,t0=2,mb=3;class Mm{constructor(g={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=g}_setReferrerPolicy(g){this.settings.referrerPolicy=g}loadScript(g){return new Promise((B,H)=>{const re=fg;let be;const Re=()=>{re.remove(kt),be&&(be.onerror=be.onload=be=null)},Ke=()=>{Re(),B()},ct=()=>{Re(),H("Failed to load script: "+g)},kt=re.uniqueId();be=document.createElement("script"),be.id=kt,be.type="text/javascript",be.src=mo._addCacheSuffix(g),this.settings.referrerPolicy&&re.setAttrib(be,"referrerpolicy",this.settings.referrerPolicy),be.onload=Ke,be.onerror=ct,(document.getElementsByTagName("head")[0]||document.body).appendChild(be)})}isDone(g){return this.states[g]===t0}markDone(g){this.states[g]=t0}add(g){const B=this;return B.queue.push(g),B.states[g]===void 0&&(B.states[g]=Dx),new Promise((re,be)=>{B.scriptLoadedCallbacks[g]||(B.scriptLoadedCallbacks[g]=[]),B.scriptLoadedCallbacks[g].push({resolve:re,reject:be})})}load(g){return this.add(g)}remove(g){delete this.states[g],delete this.scriptLoadedCallbacks[g]}loadQueue(){const g=this.queue;return this.queue=[],this.loadScripts(g)}loadScripts(g){const B=this,H=(ct,kt)=>{Ct(B.scriptLoadedCallbacks,kt).each(Wt=>{ye(Wt,Jt=>Jt[ct](kt))}),delete B.scriptLoadedCallbacks[kt]},re=ct=>{const kt=Te(ct,Wt=>Wt.status==="rejected");return kt.length>0?Promise.reject($e(kt,({reason:Wt})=>A(Wt)?Wt:[Wt])):Promise.resolve()},be=ct=>Promise.allSettled(ve(ct,kt=>B.states[kt]===t0?(H("resolve",kt),Promise.resolve()):B.states[kt]===mb?(H("reject",kt),Promise.reject(kt)):(B.states[kt]=UO,B.loadScript(kt).then(()=>{B.states[kt]=t0,H("resolve",kt);const Wt=B.queue;return Wt.length>0?(B.queue=[],be(Wt).then(re)):Promise.resolve()},()=>(B.states[kt]=mb,H("reject",kt),Promise.reject(kt)))))),Re=ct=>(B.loading=!0,be(ct).then(kt=>{B.loading=!1;const Wt=B.queueLoadedCallbacks.shift();return Y.from(Wt).each(K),re(kt)})),Ke=bn(g);return B.loading?new Promise((ct,kt)=>{B.queueLoadedCallbacks.push(()=>{Re(Ke).then(ct,kt)})}):Re(Ke)}}Mm.ScriptLoader=new Mm;const jO=(r,g)=>{const B=r.indexOf(g);return B!==-1&&r.indexOf(g,B+1)>B},z_=r=>_(r)&&_t(r,"raw"),wl=r=>A(r)&&r.length>1,Kv={},fc=mr("en"),Jv=()=>Ct(Kv,fc.get()),Du={getData:()=>ht(Kv,r=>({...r})),setCode:r=>{r&&fc.set(r)},getCode:()=>fc.get(),add:(r,g)=>{let B=Kv[r];B||(Kv[r]=B={});const H=ve(nt(g),re=>re.toLowerCase());Ge(g,(re,be)=>{const Re=be.toLowerCase();Re!==be&&jO(H,Re)?(_t(g,Re)||(B[Re]=re),B[be]=re):B[Re]=re})},translate:r=>{const g=Jv().getOr({}),B=Re=>C(Re)?Object.prototype.toString.call(Re):H(Re)?"":""+Re,H=Re=>Re===""||Re===null||Re===void 0,re=Re=>{const Ke=B(Re);return _t(g,Ke)?B(g[Ke]):Ct(g,Ke.toLowerCase()).map(B).getOr(Ke)},be=Re=>Re.replace(/{context:\w+}$/,"");if(H(r))return"";if(z_(r))return B(r.raw);if(wl(r)){const Re=r.slice(1),Ke=re(r[0]).replace(/\{([0-9]+)\}/g,(ct,kt)=>_t(Re,kt)?B(Re[kt]):ct);return be(Ke)}return be(re(r))},isRtl:()=>Jv().bind(r=>Ct(r,"_dir")).exists(r=>r==="rtl"),hasCode:r=>_t(Kv,r)},su=()=>{const r=[],g={},B={},H=[],re=(Rn,qn)=>{const pr=Te(H,Tr=>Tr.name===Rn&&Tr.state===qn);ye(pr,Tr=>Tr.resolve())},be=Rn=>_t(g,Rn),Re=Rn=>_t(B,Rn),Ke=Rn=>{if(B[Rn])return B[Rn].instance},ct=(Rn,qn)=>{const pr=Du.getCode(),Tr=","+(qn||"")+",";!pr||qn&&Tr.indexOf(","+pr+",")===-1||Mm.ScriptLoader.add(g[Rn]+"/langs/"+pr+".js")},kt=(Rn,qn)=>{su.languageLoad!==!1&&(be(Rn)?ct(Rn,qn):Vn(Rn,"loaded").then(()=>ct(Rn,qn)))},Wt=(Rn,qn)=>(r.push(qn),B[Rn]={instance:qn},re(Rn,"added"),qn),Jt=Rn=>{delete g[Rn],delete B[Rn]},ln=(Rn,qn)=>v(qn)?v(Rn)?{prefix:"",resource:qn,suffix:""}:{prefix:Rn.prefix,resource:qn,suffix:Rn.suffix}:qn,kn=(Rn,qn)=>{if(g[Rn])return Promise.resolve();let pr=v(qn)?qn:qn.prefix+qn.resource+qn.suffix;pr.indexOf("/")!==0&&pr.indexOf("://")===-1&&(pr=su.baseURL+"/"+pr),g[Rn]=pr.substring(0,pr.lastIndexOf("/"));const Tr=()=>(re(Rn,"loaded"),Promise.resolve());return B[Rn]?Tr():Mm.ScriptLoader.add(pr).then(Tr)},Vn=(Rn,qn="added")=>qn==="added"&&Re(Rn)||qn==="loaded"&&be(Rn)?Promise.resolve():new Promise(pr=>{H.push({name:Rn,state:qn,resolve:pr})});return{items:r,urls:g,lookup:B,get:Ke,requireLangPack:kt,add:Wt,remove:Jt,createUrl:ln,load:kn,waitFor:Vn}};su.languageLoad=!0,su.baseURL="",su.PluginManager=su(),su.ThemeManager=su(),su.ModelManager=su();const dg=(r,g)=>{let B=null;return{cancel:()=>{x(B)||(clearTimeout(B),B=null)},throttle:(...be)=>{x(B)&&(B=setTimeout(()=>{B=null,r.apply(null,be)},g))}}},n0=(r,g)=>{let B=null;const H=()=>{x(B)||(clearTimeout(B),B=null)};return{cancel:H,throttle:(...be)=>{H(),B=setTimeout(()=>{B=null,r.apply(null,be)},g)}}},N_=(r,g,B)=>xl(r,g,B).isSome(),ey=$("mce-annotation"),hg=$("data-mce-annotation"),ty=$("data-mce-annotation-uid"),E1=$("data-mce-annotation-active"),z0=$("data-mce-annotation-classes"),pg=$("data-mce-annotation-attrs"),P1=r=>g=>Fa(g,r),R1=(r,g)=>{const B=r.selection.getRng(),H=sr.fromDom(B.startContainer),re=sr.fromDom(r.getBody()),be=g.fold(()=>"."+ey(),ct=>`[${hg()}="${ct}"]`),Re=ks(H,B.startOffset).getOr(H);return pu(Re,be,P1(re)).bind(ct=>ad(ct,`${ty()}`).bind(kt=>ad(ct,`${hg()}`).map(Wt=>{const Jt=gb(r,kt);return{uid:kt,name:Wt,elements:Jt}})))},zx=r=>mc(r)&&rs(r,ey()),F0=(r,g)=>Vf(r,"data-mce-bogus")||N_(r,'[data-mce-bogus="all"]',P1(g)),gb=(r,g)=>{const B=sr.fromDom(r.getBody()),H=Zl(B,`[${ty()}="${g}"]`);return Te(H,re=>!F0(re,B))},Fx=(r,g)=>{const B=sr.fromDom(r.getBody()),H=Zl(B,`[${hg()}="${g}"]`),re={};return ye(H,be=>{if(!F0(be,B)){const Re=uc(be,ty()),Ke=Ct(re,Re).getOr([]);re[Re]=Ke.concat([be])}}),re},$_=(r,g)=>{const B=mr({}),H=()=>({listeners:[],previous:Ys()}),re=(Jt,ln)=>{be(Jt,kn=>(ln(kn),kn))},be=(Jt,ln)=>{const kn=B.get(),Vn=Ct(kn,Jt).getOrThunk(H),Rn=ln(Vn);kn[Jt]=Rn,B.set(kn)},Re=(Jt,ln,kn)=>{re(Jt,Vn=>{ye(Vn.listeners,Rn=>Rn(!0,Jt,{uid:ln,nodes:ve(kn,qn=>qn.dom)}))})},Ke=Jt=>{re(Jt,ln=>{ye(ln.listeners,kn=>kn(!1,Jt))})},ct=(Jt,ln)=>{ye(gb(r,Jt),kn=>{ln?Es(kn,E1(),"true"):gc(kn,E1())})},kt=n0(()=>{const Jt=Ue(g.getNames());ye(Jt,ln=>{be(ln,kn=>{const Vn=kn.previous.get();return R1(r,Y.some(ln)).fold(()=>{Vn.each(Rn=>{Ke(ln),kn.previous.clear(),ct(Rn,!1)})},({uid:Rn,name:qn,elements:pr})=>{Aa(Vn,Rn)||(Vn.each(Tr=>ct(Tr,!1)),Re(qn,Rn,pr),kn.previous.set(Rn),ct(Rn,!0))}),{previous:kn.previous,listeners:kn.listeners}})})},30);return r.on("remove",()=>{kt.cancel()}),r.on("NodeChange",()=>{kt.throttle()}),{addListener:(Jt,ln)=>{be(Jt,kn=>({previous:kn.previous,listeners:kn.listeners.concat([ln])}))}}},Nx=(r,g)=>{const B=hg(),H=be=>Y.from(be.attr(B)).bind(g.lookup),re=be=>{var Re,Ke;be.attr(ty(),null),be.attr(hg(),null),be.attr(E1(),null);const ct=Y.from(be.attr(pg())).map(ln=>ln.split(",")).getOr([]),kt=Y.from(be.attr(z0())).map(ln=>ln.split(",")).getOr([]);ye(ct,ln=>be.attr(ln,null));const Wt=(Ke=(Re=be.attr("class"))===null||Re===void 0?void 0:Re.split(" "))!==null&&Ke!==void 0?Ke:[],Jt=Le(Wt,[ey()].concat(kt));be.attr("class",Jt.length>0?Jt.join(" "):null),be.attr(z0(),null),be.attr(pg(),null)};r.serializer.addTempAttr(E1()),r.serializer.addAttributeFilter(B,be=>{for(const Re of be)H(Re).each(Ke=>{Ke.persistent===!1&&(Re.name==="span"?Re.unwrap():re(Re))})})},V_=()=>{const r={};return{register:(re,be)=>{r[re]={name:re,settings:be}},lookup:re=>Ct(r,re).map(be=>be.settings),getNames:()=>nt(r)}};let vb=0;const L1=r=>{const B=new Date().getTime(),H=Math.floor(Math.random()*1e9);return vb++,r+"_"+H+vb+String(B)},gd=(r,g)=>{ye(g,B=>{xf(r,B)})},U_=(r,g)=>{ye(g,B=>{nf(r,B)})},yb=(r,g)=>sr.fromDom(r.dom.cloneNode(g)),Th=r=>yb(r,!1),Kf=r=>yb(r,!0),ny=(r,g)=>{const B=sr.fromTag(g),H=Mp(r);return ef(B,H),B},I1=(r,g)=>{const B=ny(r,g);si(r,B);const H=Oc(r);return mu(B,H),ja(r),B},cf=(r,g,B=oe)=>{const H=new kc(r,g),re=be=>{let Re;do Re=H[be]();while(Re&&!Nt(Re)&&!B(Re));return Y.from(Re).filter(Nt)};return{current:()=>Y.from(H.current()).filter(Nt),next:()=>re("next"),prev:()=>re("prev"),prev2:()=>re("prev2")}},Em=(r,g)=>{const B=g||(Re=>r.isBlock(Re)||On(Re)||rr(Re)),H=(Re,Ke,ct,kt)=>{if(Nt(Re)){const Wt=kt(Re,Ke,Re.data);if(Wt!==-1)return Y.some({container:Re,offset:Wt})}return ct().bind(Wt=>H(Wt.container,Wt.offset,ct,kt))};return{backwards:(Re,Ke,ct,kt)=>{const Wt=cf(Re,kt??r.getRoot(),B);return H(Re,Ke,()=>Wt.prev().map(Jt=>({container:Jt,offset:Jt.length})),ct).getOrNull()},forwards:(Re,Ke,ct,kt)=>{const Wt=cf(Re,kt??r.getRoot(),B);return H(Re,Ke,()=>Wt.next().map(Jt=>({container:Jt,offset:0})),ct).getOrNull()}}},Nd=((r,g)=>{const B=be=>{if(!r(be))throw new Error("Can only get "+g+" value of a "+g+" node");return H(be).getOr("")},H=be=>r(be)?Y.from(be.dom.nodeValue):Y.none();return{get:B,getOption:H,set:(be,Re)=>{if(!r(be))throw new Error("Can only set raw "+g+" value of a "+g+" node");be.dom.nodeValue=Re}}})(Ss,"text"),ry=r=>Nd.get(r),HO=r=>Nd.getOption(r),Vx=(r,g)=>Nd.set(r,g),D1=["td","th"],j_=["thead","tbody","tfoot"],oy=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],bb=["li","dd","dt"],ZO=["ul","ol","dl"],Cf=["pre","script","textarea","style"],mg=r=>{let g;return B=>(g=g||We(r,q),_t(g,sa(B)))},dp=r=>sa(r)==="table",N0=r=>mc(r)&&sa(r)==="br",Q_=mg(oy),Vp=mg(ZO),nh=mg(bb),B1=mg(j_),z1=mg(D1),iy=mg(Cf),qO=r=>{const g=[];let B=r.dom;for(;B;)g.push(sr.fromDom(B)),B=B.lastChild;return g},_S=r=>{const g=Zl(r,"br"),B=Te(qO(r).slice(-1),N0);g.length===B.length&&ye(B,ja)},F1=()=>{const r=sr.fromTag("br");return Es(r,"data-mce-bogus","1"),r},rh=r=>{gu(r),Ps(r,F1())},H_=(r,g)=>{zl(r).each(B=>{Eu(B).each(H=>{g.isBlock(sa(r))&&N0(B)&&g.isBlock(sa(H))&&ja(B)})})},nc=Iu,$0=El,vd=_l,wS=r=>r.insertContent(nc,{preserve_zwsp:!0}),N1=ne,r0=Nt,gg=r=>(r0(r)&&(r=r.parentNode),N1(r)&&r.hasAttribute("data-mce-caret")),oh=r=>r0(r)&&$0(r.data),Ch=r=>gg(r)||oh(r),Z_=r=>r.firstChild!==r.lastChild||!On(r.firstChild),q_=(r,g)=>{var B;const re=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(nc),be=r.parentNode;if(g){const Re=r.previousSibling;if(r0(Re)){if(Ch(Re))return Re;if(jp(Re))return Re.splitText(Re.data.length-1)}be==null||be.insertBefore(re,r)}else{const Re=r.nextSibling;if(r0(Re)){if(Ch(Re))return Re;if(U0(Re))return Re.splitText(1),Re}r.nextSibling?be==null||be.insertBefore(re,r.nextSibling):be==null||be.appendChild(re)}return re},V0=r=>{const g=r.container();return Nt(g)?g.data.charAt(r.offset())===nc||r.isAtStart()&&oh(g.previousSibling):!1},Up=r=>{const g=r.container();return Nt(g)?g.data.charAt(r.offset()-1)===nc||r.isAtEnd()&&oh(g.nextSibling):!1},W_=(r,g,B)=>{var H;const be=((H=g.ownerDocument)!==null&&H!==void 0?H:document).createElement(r);be.setAttribute("data-mce-caret",B?"before":"after"),be.setAttribute("data-mce-bogus","all"),be.appendChild(F1().dom);const Re=g.parentNode;return B?Re==null||Re.insertBefore(be,g):g.nextSibling?Re==null||Re.insertBefore(be,g.nextSibling):Re==null||Re.appendChild(be),be},U0=r=>r0(r)&&r.data[0]===nc,jp=r=>r0(r)&&r.data[r.data.length-1]===nc,o0=r=>{var g;const B=r.getElementsByTagName("br"),H=B[B.length-1];dt(H)&&((g=H.parentNode)===null||g===void 0||g.removeChild(H))},Ra=r=>r&&r.hasAttribute("data-mce-caret")?(o0(r),r.removeAttribute("data-mce-caret"),r.removeAttribute("data-mce-bogus"),r.removeAttribute("style"),r.removeAttribute("data-mce-style"),r.removeAttribute("_moz_abspos"),r):null,yd=r=>gg(r.startContainer),Zh=Math.round,i0=r=>r?{left:Zh(r.left),top:Zh(r.top),bottom:Zh(r.bottom),right:Zh(r.right),width:Zh(r.width),height:Zh(r.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Il=(r,g)=>(r=i0(r),g||(r.left=r.left+r.width),r.right=r.left,r.width=0,r),WO=(r,g)=>r.left===g.left&&r.top===g.top&&r.bottom===g.bottom&&r.right===g.right,$1=(r,g,B)=>r>=0&&r<=Math.min(g.height,B.height)/2,V1=(r,g)=>{const B=Math.min(g.height/2,r.height/2);return r.bottom-Bg.bottom?!1:$1(g.top-r.bottom,r,g)},Ux=(r,g)=>r.top>g.bottom?!0:r.bottomg>=r.left&&g<=r.right&&B>=r.top&&B<=r.bottom,Dl=r=>Ie(r,(g,B)=>g.fold(()=>Y.some(B),H=>{const re=Math.min(B.left,H.left),be=Math.min(B.top,H.top),Re=Math.max(B.right,H.right),Ke=Math.max(B.bottom,H.bottom);return Y.some({top:be,right:Re,bottom:Ke,left:re,width:Re-re,height:Ke-be})}),Y.none()),Ol=(r,g,B)=>{const H=Math.max(Math.min(g,r.left+r.width),r.left),re=Math.max(Math.min(B,r.top+r.height),r.top);return Math.sqrt((g-H)*(g-H)+(B-re)*(B-re))},OS=(r,g)=>Math.max(0,Math.min(r.bottom,g.bottom)-Math.max(r.top,g.top)),Y_=(r,g,B)=>Math.min(Math.max(r,g),B),Pm=r=>{const g=r.startContainer,B=r.startOffset;return g===r.endContainer&&g.hasChildNodes()&&r.endOffset===B+1?g.childNodes[B]:null},fi=(r,g)=>{if(ne(r)&&r.hasChildNodes()){const B=r.childNodes,H=Y_(g,0,B.length-1);return B[H]}else return r},SS=(r,g)=>{if(!(g<0&&ne(r)&&r.hasChildNodes()))return fi(r,g)},YO=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),jx=r=>v(r)&&r.charCodeAt(0)>=768&&YO.test(r),X_=(...r)=>g=>{for(let B=0;Bg=>{for(let B=0;BHx(r)?!1:TS(r)?!Rm(r.parentNode):Qx(r)||j0(r)||Ah(r)||Cc(r),G_=r=>ne(r)&&r.getAttribute("unselectable")==="true",Cc=r=>!G_(r)&&sy(r),XO=(r,g)=>{for(let B=r.parentNode;B&&B!==g;B=B.parentNode){if(Cc(B))return!1;if(xb(B))return!0}return!0},yc=r=>Cc(r)?!Ie(Ee(r.getElementsByTagName("*")),(g,B)=>g||xb(B),!1):!1,GO=r=>Qx(r)||yc(r),Zx=(r,g)=>ih(r)&&XO(r,g),_b=ne,K_=ih,qx=Je("display","block table"),J_=Je("float","left right"),Lm=kS(_b,K_,X(J_)),qh=X(Je("white-space","pre pre-line pre-wrap")),U1=Nt,Kc=On,j1=Nl.nodeIndex,Qp=SS,ly=r=>r?r.createRange():Nl.DOM.createRng(),cy=r=>v(r)&&/[\r\n\t ]/.test(r),wb=r=>!!r.setStart&&!!r.setEnd,Q1=r=>{const g=r.startContainer,B=r.startOffset;if(cy(r.toString())&&qh(g.parentNode)&&Nt(g)){const H=g.data;if(cy(H[B-1])||cy(H[B+1]))return!0}return!1},bc=r=>{const g=r.ownerDocument,B=ly(g),H=g.createTextNode(Ea),re=r.parentNode;re.insertBefore(H,r),B.setStart(H,0),B.setEnd(H,1);const be=i0(B.getBoundingClientRect());return re.removeChild(H),be},KO=r=>{const g=r.startContainer,B=r.endContainer,H=r.startOffset,re=r.endOffset;if(g===B&&Nt(B)&&H===0&&re===1){const be=r.cloneRange();return be.setEndAfter(B),Q0(be)}else return null},ew=r=>r.left===0&&r.right===0&&r.top===0&&r.bottom===0,Q0=r=>{var g;let B;const H=r.getClientRects();return H.length>0?B=i0(H[0]):B=i0(r.getBoundingClientRect()),!wb(r)&&Kc(r)&&ew(B)?bc(r):ew(B)&&wb(r)&&(g=KO(r))!==null&&g!==void 0?g:B},Nc=(r,g)=>{const B=Il(r,g);return B.width=1,B.right=B.left+1,B},vg=r=>{const g=[],B=Re=>{Re.height!==0&&(g.length>0&&WO(Re,g[g.length-1])||g.push(Re))},H=(Re,Ke)=>{const ct=ly(Re.ownerDocument);if(Ke0&&(ct.setStart(Re,Ke-1),ct.setEnd(Re,Ke),Q1(ct)||B(Nc(Q0(ct),!1))),Ke{const H=()=>(U1(r),g===0),re=()=>U1(r)?g>=r.data.length:g>=r.childNodes.length,be=()=>{const Wt=ly(r.ownerDocument);return Wt.setStart(r,g),Wt.setEnd(r,g),Wt},Re=()=>(B||(B=vg(qr(r,g))),B),Ke=()=>Re().length>0,ct=Wt=>Wt&&r===Wt.container()&&g===Wt.offset(),kt=Wt=>Qp(r,Wt?g-1:g);return{container:$(r),offset:$(g),toRange:be,getClientRects:Re,isVisible:Ke,isAtStart:H,isAtEnd:re,isEqual:ct,getNode:kt}};qr.fromRangeStart=r=>qr(r.startContainer,r.startOffset),qr.fromRangeEnd=r=>qr(r.endContainer,r.endOffset),qr.after=r=>qr(r.parentNode,j1(r)+1),qr.before=r=>qr(r.parentNode,j1(r)),qr.isAbove=(r,g)=>cs(Xe(g.getClientRects()),tt(r.getClientRects()),V1).getOr(!1),qr.isBelow=(r,g)=>cs(tt(g.getClientRects()),Xe(r.getClientRects()),Ux).getOr(!1),qr.isAtStart=r=>r?r.isAtStart():!1,qr.isAtEnd=r=>r?r.isAtEnd():!1,qr.isTextPosition=r=>r?Nt(r.container()):!1,qr.isElementPosition=r=>!qr.isTextPosition(r);const N=(r,g)=>{Nt(g)&&g.data.length===0&&r.remove(g)},G=(r,g,B)=>{g.insertNode(B),N(r,B.previousSibling),N(r,B.nextSibling)},fe=(r,g,B)=>{const H=Y.from(B.firstChild),re=Y.from(B.lastChild);g.insertNode(B),H.each(be=>N(r,be.previousSibling)),re.each(be=>N(r,be.nextSibling))},Ae=(r,g,B)=>{Ln(B)?fe(r,g,B):G(r,g,B)},Qe=Nt,et=dt,ut=Nl.nodeIndex,Tt=r=>{const g=r.parentNode;return et(g)?Tt(g):g},Bt=r=>r?it(r.childNodes,(g,B)=>(et(B)&&B.nodeName!=="BR"?g=g.concat(Bt(B)):g.push(B),g),[]):[],rn=(r,g)=>{let B=r;for(;(B=B.previousSibling)&&Qe(B);)g+=B.data.length;return g},an=r=>g=>r===g,_n=r=>{let g,B;g=Bt(Tt(r)),B=at(g,an(r),r),g=g.slice(0,B+1);const H=it(g,(re,be,Re)=>(Qe(be)&&Qe(g[Re-1])&&re++,re),0);return g=zt(g,Fe([r.nodeName])),B=at(g,an(r),r),B-H},Dn=r=>(Qe(r)?"text()":r.nodeName.toLowerCase())+"["+_n(r)+"]",Cn=(r,g,B)=>{const H=[];for(let re=g.parentNode;re&&re!==r&&!(B&&B(re));re=re.parentNode)H.push(re);return H},Jn=(r,g)=>{let B=[],H=g.container(),re=g.offset(),be;if(Qe(H))be=rn(H,re);else{const Ke=H.childNodes;re>=Ke.length?(be="after",re=Ke.length-1):be="before",H=Ke[re]}B.push(Dn(H));let Re=Cn(r,H);return Re=zt(Re,X(dt)),B=B.concat(yt(Re,Ke=>Dn(Ke))),B.reverse().join("/")+","+be},lr=(r,g,B)=>{let H=Bt(r);return H=zt(H,(re,be)=>!Qe(re)||!Qe(H[be-1])),H=zt(H,Fe([g])),H[B]},Ar=(r,g)=>{let B=r,H=0;for(;Qe(B);){const re=B.data.length;if(g>=H&&g<=H+re){r=B,g=g-H;break}if(!Qe(B.nextSibling)){r=B,g=re;break}H+=re,B=B.nextSibling}return Qe(r)&&g>r.data.length&&(g=r.data.length),qr(r,g)},Or=(r,g)=>{if(!g)return null;const B=g.split(","),H=B[0].split("/"),re=B.length>1?B[1]:"before",be=it(H,(Re,Ke)=>{const ct=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(Ke);return ct?(ct[1]==="text()"&&(ct[1]="#text"),lr(Re,ct[1],parseInt(ct[2],10))):null},r);if(!be)return null;if(!Qe(be)&&be.parentNode){let Re;return re==="after"?Re=ut(be)+1:Re=ut(be),qr(be.parentNode,Re)}return Ar(be,parseInt(re,10))},jr=rr,Jr=(r,g,B)=>{let H=r(g.data.slice(0,B)).length;for(let re=g.previousSibling;re&&Nt(re);re=re.previousSibling)H+=r(re.data).length;return H},uo=(r,g,B,H,re)=>{const be=re?H.startContainer:H.endContainer;let Re=re?H.startOffset:H.endOffset;const Ke=[],ct=r.getRoot();if(Nt(be))Ke.push(B?Jr(g,be,Re):Re);else{let kt=0;const Wt=be.childNodes;Re>=Wt.length&&Wt.length&&(kt=1,Re=Math.max(0,Wt.length-1)),Ke.push(r.nodeIndex(Wt[Re],B)+kt)}for(let kt=be;kt&&kt!==ct;kt=kt.parentNode)Ke.push(r.nodeIndex(kt,B));return Ke},ro=(r,g,B,H)=>{const re=g.dom,be=uo(re,r,B,H,!0),Re=g.isForward(),Ke=yd(H)?{isFakeCaret:!0}:{};if(g.isCollapsed())return{start:be,forward:Re,...Ke};{const ct=uo(re,r,B,H,!1);return{start:be,end:ct,forward:Re,...Ke}}},Po=(r,g,B)=>{let H=0;return mo.each(r.select(g),re=>{if(re.getAttribute("data-mce-bogus")!=="all"){if(re===B)return!1;H++;return}}),H},gi=(r,g)=>{let B=g?r.startContainer:r.endContainer,H=g?r.startOffset:r.endOffset;if(ne(B)&&B.nodeName==="TR"){const re=B.childNodes;B=re[Math.min(g?H:H-1,re.length-1)],B&&(H=g?0:B.childNodes.length,g?r.setStart(B,H):r.setEnd(B,H))}},ni=r=>(gi(r,!0),gi(r,!1),r),Ti=(r,g)=>{if(ne(r)&&(r=fi(r,g),jr(r)))return r;if(Ch(r)){Nt(r)&&gg(r)&&(r=r.parentNode);let B=r.previousSibling;if(jr(B)||(B=r.nextSibling,jr(B)))return B}},vi=r=>Ti(r.startContainer,r.startOffset)||Ti(r.endContainer,r.endOffset),na=(r,g,B)=>{const H=B.getNode(),re=B.getRng();if(H.nodeName==="IMG"||jr(H)){const Re=H.nodeName;return{name:Re,index:Po(B.dom,Re,H)}}const be=vi(re);if(be){const Re=be.tagName;return{name:Re,index:Po(B.dom,Re,be)}}return ro(r,B,g,re)},Ji=r=>{const g=r.getRng();return{start:Jn(r.dom.getRoot(),qr.fromRangeStart(g)),end:Jn(r.dom.getRoot(),qr.fromRangeEnd(g)),forward:r.isForward()}},La=r=>({rng:r.getRng(),forward:r.isForward()}),ca=(r,g,B)=>{const H={"data-mce-type":"bookmark",id:g,style:"overflow:hidden;line-height:0px"};return B?r.create("span",H,""):r.create("span",H)},Zi=(r,g)=>{const B=r.dom;let H=r.getRng();const re=B.uniqueId(),be=r.isCollapsed(),Re=r.getNode(),Ke=Re.nodeName,ct=r.isForward();if(Ke==="IMG")return{name:Ke,index:Po(B,Ke,Re)};const kt=ni(H.cloneRange());if(!be){kt.collapse(!1);const Jt=ca(B,re+"_end",g);Ae(B,kt,Jt)}H=ni(H),H.collapse(!0);const Wt=ca(B,re+"_start",g);return Ae(B,H,Wt),r.moveToBookmark({id:re,keep:!0,forward:ct}),{id:re,forward:ct}},Bs=(r,g,B=!1)=>g===2?na(vd,B,r):g===3?Ji(r):g?La(r):Zi(r,!1),Ja=U(na,Q,!0),Vl=r=>{const g=be=>be(r),B=$(r),H=()=>re,re={tag:!0,inner:r,fold:(be,Re)=>Re(r),isValue:q,isError:oe,map:be=>gs.value(be(r)),mapError:H,bind:g,exists:g,forall:g,getOr:B,or:H,getOrThunk:B,orThunk:H,getOrDie:B,each:be=>{be(r)},toOptional:()=>Y.some(r)};return re},ka=r=>{const g=()=>B,B={tag:!1,inner:r,fold:(H,re)=>H(r),isValue:oe,isError:q,map:g,mapError:H=>gs.error(H(r)),bind:g,exists:oe,forall:q,getOr:Q,or:Q,getOrThunk:W,orThunk:W,getOrDie:te(String(r)),each:k,toOptional:Y.none};return B},gs={value:Vl,error:ka,fromOption:(r,g)=>r.fold(()=>ka(g),Vl)},aa={generate:r=>{if(!A(r))throw new Error("cases must be an array");if(r.length===0)throw new Error("there must be at least one case");const g=[],B={};return ye(r,(H,re)=>{const be=nt(H);if(be.length!==1)throw new Error("one and only one name per case");const Re=be[0],Ke=H[Re];if(B[Re]!==void 0)throw new Error("duplicate key detected:"+Re);if(Re==="cata")throw new Error("cannot have a case named cata (sorry)");if(!A(Ke))throw new Error("case arguments must be an array");g.push(Re),B[Re]=(...ct)=>{const kt=ct.length;if(kt!==Ke.length)throw new Error("Wrong number of arguments to case "+Re+". Expected "+Ke.length+" ("+Ke+"), got "+kt);return{fold:(...Jt)=>{if(Jt.length!==r.length)throw new Error("Wrong number of arguments to fold. Expected "+r.length+", got "+Jt.length);return Jt[re].apply(null,ct)},match:Jt=>{const ln=nt(Jt);if(g.length!==ln.length)throw new Error("Wrong number of arguments to match. Expected: "+g.join(",")+` +}`,{label:"class",detail:"definition",type:"keyword"}),Hd('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Hd('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],wNe=jwe.concat([Hd("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Hd("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Hd("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),h0e=new hce,Qwe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function jL(t){return(e,o)=>{let f=e.node.getChild("VariableDefinition");return f&&o(f,t),!0}}const ONe=["FunctionDeclaration"],SNe={FunctionDeclaration:jL("function"),ClassDeclaration:jL("class"),ClassExpression:()=>!0,EnumDeclaration:jL("constant"),TypeAliasDeclaration:jL("type"),NamespaceDeclaration:jL("namespace"),VariableDefinition(t,e){t.matchContext(ONe)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function Hwe(t,e){let o=h0e.get(e);if(o)return o;let f=[],P=!0;function d(l,n){let c=t.sliceString(l.from,l.to);f.push({label:c,type:n})}return e.cursor(mf.IncludeAnonymous).iterate(l=>{if(P)P=!1;else if(l.name){let n=SNe[l.name];if(n&&n(l,d)||Qwe.has(l.name))return!1}else if(l.to-l.from>8192){for(let n of Hwe(t,l.node))f.push(n);return!1}}),h0e.set(e,f),f}const p0e=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Zwe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function kNe(t){let e=Gu(t.state).resolveInner(t.pos,-1);if(Zwe.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&p0e.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let P=e;P;P=P.parent)Qwe.has(P.name)&&(f=f.concat(Hwe(t.state.doc,P)));return{options:f,from:o?e.from:t.pos,validFor:p0e}}const d_=cS.define({name:"javascript",parser:_Ne.configure({props:[OT.add({IfStatement:dI({except:/^\s*({|else\b)/}),TryStatement:dI({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:x8e,SwitchBody:t=>{let e=t.textAfter,o=/^\s*\}/.test(e),f=/^\s*(case|default)\b/.test(e);return t.baseIndent+(o?0:f?1:2)*t.unit},Block:xH({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":dI({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),vS.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":bce,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),qwe={test:t=>/^JSX/.test(t.name),facet:mce({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Wwe=d_.configure({dialect:"ts"},"typescript"),Ywe=d_.configure({dialect:"jsx",props:[gce.add(t=>t.isTop?[qwe]:void 0)]}),Xwe=d_.configure({dialect:"jsx ts",props:[gce.add(t=>t.isTop?[qwe]:void 0)]},"typescript");let Gwe=t=>({label:t,type:"keyword"});const Kwe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Gwe),TNe=Kwe.concat(["declare","implements","private","protected","public"].map(Gwe));function CNe(t={}){let e=t.jsx?t.typescript?Xwe:Ywe:t.typescript?Wwe:d_,o=t.typescript?wNe.concat(TNe):jwe.concat(Kwe);return new gT(e,[d_.data.of({autocomplete:Mce(Zwe,oq(o))}),d_.data.of({autocomplete:kNe}),t.jsx?ENe:[]])}function ANe(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function m0e(t,e,o=t.length){for(let f=e==null?void 0:e.firstChild;f;f=f.nextSibling)if(f.name=="JSXIdentifier"||f.name=="JSXBuiltin"||f.name=="JSXNamespacedName"||f.name=="JSXMemberExpression")return t.sliceString(f.from,Math.min(f.to,o));return""}const MNe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),ENe=Oa.inputHandler.of((t,e,o,f,P)=>{if((MNe?t.composing:t.compositionStarted)||t.state.readOnly||e!=o||f!=">"&&f!="/"||!d_.isActiveAt(t.state,e,-1))return!1;let d=P(),{state:l}=d,n=l.changeByRange(c=>{var b;let{head:i}=c,O=Gu(l).resolveInner(i-1,-1),w;if(O.name=="JSXStartTag"&&(O=O.parent),!(l.doc.sliceString(i-1,i)!=f||O.name=="JSXAttributeValue"&&O.to>i)){if(f==">"&&O.name=="JSXFragmentTag")return{range:c,changes:{from:i,insert:""}};if(f=="/"&&O.name=="JSXStartCloseTag"){let y=O.parent,p=y.parent;if(p&&y.from==i-2&&((w=m0e(l.doc,p.firstChild,i))||((b=p.firstChild)===null||b===void 0?void 0:b.name)=="JSXFragmentTag")){let a=`${w}>`;return{range:Yo.cursor(i+a.length,-1),changes:{from:i,insert:a}}}}else if(f==">"){let y=ANe(O);if(y&&!/^\/?>|^<\//.test(l.doc.sliceString(i,i+2))&&(w=m0e(l.doc,y,i)))return{range:c,changes:{from:i,insert:``}}}}return{range:c}});return n.changes.empty?!1:(t.dispatch([d,l.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),QL=["_blank","_self","_top","_parent"],eae=["ascii","utf-8","utf-16","latin1","latin1"],tae=["get","post","put","delete"],nae=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Pv=["true","false"],Wa={},PNe={a:{attrs:{href:null,ping:null,type:null,media:null,target:QL,hreflang:null}},abbr:Wa,address:Wa,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Wa,aside:Wa,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Wa,base:{attrs:{href:null,target:QL}},bdi:Wa,bdo:Wa,blockquote:{attrs:{cite:null}},body:Wa,br:Wa,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:nae,formmethod:tae,formnovalidate:["novalidate"],formtarget:QL,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Wa,center:Wa,cite:Wa,code:Wa,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Wa,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Wa,div:Wa,dl:Wa,dt:Wa,em:Wa,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Wa,figure:Wa,footer:Wa,form:{attrs:{action:null,name:null,"accept-charset":eae,autocomplete:["on","off"],enctype:nae,method:tae,novalidate:["novalidate"],target:QL}},h1:Wa,h2:Wa,h3:Wa,h4:Wa,h5:Wa,h6:Wa,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Wa,hgroup:Wa,hr:Wa,html:{attrs:{manifest:null}},i:Wa,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:nae,formmethod:tae,formnovalidate:["novalidate"],formtarget:QL,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Wa,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Wa,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Wa,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:eae,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Wa,noscript:Wa,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Wa,param:{attrs:{name:null,value:null}},pre:Wa,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Wa,rt:Wa,ruby:Wa,samp:Wa,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:eae}},section:Wa,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Wa,source:{attrs:{src:null,type:null,media:null}},span:Wa,strong:Wa,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Wa,summary:Wa,sup:Wa,table:Wa,tbody:Wa,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Wa,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Wa,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Wa,time:{attrs:{datetime:null}},title:Wa,tr:Wa,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Wa,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Wa},Jwe={accesskey:null,class:null,contenteditable:Pv,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Pv,autocorrect:Pv,autocapitalize:Pv,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Pv,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Pv,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Pv,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Pv,"aria-hidden":Pv,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Pv,"aria-multiselectable":Pv,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Pv,"aria-relevant":null,"aria-required":Pv,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},eOe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of eOe)Jwe[t]=null;class oD{constructor(e,o){this.tags=Object.assign(Object.assign({},PNe),e),this.globalAttrs=Object.assign(Object.assign({},Jwe),o),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}oD.default=new oD;function wM(t,e,o=t.length){if(!e)return"";let f=e.firstChild,P=f&&f.getChild("TagName");return P?t.sliceString(P.from,Math.min(P.to,o)):""}function OM(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function tOe(t,e,o){let f=o.tags[wM(t,OM(e))];return(f==null?void 0:f.children)||o.allTags}function Iue(t,e){let o=[];for(let f=OM(e);f&&!f.type.isTop;f=OM(f.parent)){let P=wM(t,f);if(P&&f.lastChild.name=="CloseTag")break;P&&o.indexOf(P)<0&&(e.name=="EndTag"||e.from>=f.firstChild.to)&&o.push(P)}return o}const nOe=/^[:\-\.\w\u00b7-\uffff]*$/;function g0e(t,e,o,f,P){let d=/\s*>/.test(t.sliceDoc(P,P+5))?"":">",l=OM(o,!0);return{from:f,to:P,options:tOe(t.doc,l,e).map(n=>({label:n,type:"type"})).concat(Iue(t.doc,o).map((n,c)=>({label:"/"+n,apply:"/"+n+d,type:"type",boost:99-c}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function v0e(t,e,o,f){let P=/\s*>/.test(t.sliceDoc(f,f+5))?"":">";return{from:o,to:f,options:Iue(t.doc,e).map((d,l)=>({label:d,apply:d+P,type:"type",boost:99-l})),validFor:nOe}}function RNe(t,e,o,f){let P=[],d=0;for(let l of tOe(t.doc,o,e))P.push({label:"<"+l,type:"type"});for(let l of Iue(t.doc,o))P.push({label:"",type:"type",boost:99-d++});return{from:f,to:f,options:P,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function LNe(t,e,o,f,P){let d=OM(o),l=d?e.tags[wM(t.doc,d)]:null,n=l&&l.attrs?Object.keys(l.attrs):[],c=l&&l.globalAttrs===!1?n:n.length?n.concat(e.globalAttrNames):e.globalAttrNames;return{from:f,to:P,options:c.map(b=>({label:b,type:"property"})),validFor:nOe}}function INe(t,e,o,f,P){var d;let l=(d=o.parent)===null||d===void 0?void 0:d.getChild("AttributeName"),n=[],c;if(l){let b=t.sliceDoc(l.from,l.to),i=e.globalAttrs[b];if(!i){let O=OM(o),w=O?e.tags[wM(t.doc,O)]:null;i=(w==null?void 0:w.attrs)&&w.attrs[b]}if(i){let O=t.sliceDoc(f,P).toLowerCase(),w='"',y='"';/^['"]/.test(O)?(c=O[0]=='"'?/^[^"]*$/:/^[^']*$/,w="",y=t.sliceDoc(P,P+1)==O[0]?"":O[0],O=O.slice(1),f++):c=/^[^\s<>='"]*$/;for(let p of i)n.push({label:p,apply:w+p+y,type:"constant"})}}return{from:f,to:P,options:n,validFor:c}}function rOe(t,e){let{state:o,pos:f}=e,P=Gu(o).resolveInner(f,-1),d=P.resolve(f);for(let l=f,n;d==P&&(n=P.childBefore(l));){let c=n.lastChild;if(!c||!c.type.isError||c.fromrOe(f,P)}const zNe=d_.parser.configure({top:"SingleExpression"}),oOe=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:Wwe.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:Ywe.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:Xwe.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:zNe},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:d_.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:MZ.parser}],iOe=[{name:"style",parser:MZ.parser.configure({top:"Styles"})}].concat(eOe.map(t=>({name:t,parser:d_.parser}))),aOe=cS.define({name:"html",parser:kFe.configure({props:[OT.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].lengtht.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),CH=aOe.configure({wrap:Fwe(oOe,iOe)});function FNe(t={}){let e="",o;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(o=Fwe((t.nestedLanguages||[]).concat(oOe),(t.nestedAttributes||[]).concat(iOe)));let f=o?aOe.configure({wrap:o,dialect:e}):e?CH.configure({dialect:e}):CH;return new gT(f,[CH.data.of({autocomplete:BNe(t)}),t.autoCloseTags!==!1?NNe:[],CNe().support,eNe().support])}const y0e=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),NNe=Oa.inputHandler.of((t,e,o,f,P)=>{if(t.composing||t.state.readOnly||e!=o||f!=">"&&f!="/"||!CH.isActiveAt(t.state,e,-1))return!1;let d=P(),{state:l}=d,n=l.changeByRange(c=>{var b,i,O;let w=l.doc.sliceString(c.from-1,c.to)==f,{head:y}=c,p=Gu(l).resolveInner(y-1,-1),a;if((p.name=="TagName"||p.name=="StartTag")&&(p=p.parent),w&&f==">"&&p.name=="OpenTag"){if(((i=(b=p.parent)===null||b===void 0?void 0:b.lastChild)===null||i===void 0?void 0:i.name)!="CloseTag"&&(a=wM(l.doc,p.parent,y))&&!y0e.has(a)){let u=y+(l.doc.sliceString(y,y+1)===">"?1:0),h=``;return{range:c,changes:{from:y,to:u,insert:h}}}}else if(w&&f=="/"&&p.name=="IncompleteCloseTag"){let u=p.parent;if(p.from==y-2&&((O=u.lastChild)===null||O===void 0?void 0:O.name)!="CloseTag"&&(a=wM(l.doc,u,y))&&!y0e.has(a)){let h=y+(l.doc.sliceString(y,y+1)===">"?1:0),m=`${a}>`;return{range:Yo.cursor(y+m.length,-1),changes:{from:y,to:h,insert:m}}}}return{range:c}});return n.changes.empty?!1:(t.dispatch([d,l.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),sOe=mce({commentTokens:{block:{open:""}}}),lOe=new fl,cOe=Aze.configure({props:[vS.add(t=>!t.is("Block")||t.is("Document")||nle(t)!=null?void 0:(e,o)=>({from:o.doc.lineAt(e.from).to,to:e.to})),lOe.add(nle),OT.add({Document:()=>null}),sT.add({Document:sOe})]});function nle(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function $Ne(t,e){let o=t;for(;;){let f=o.nextSibling,P;if(!f||(P=nle(f.type))!=null&&P<=e)break;o=f}return o.to}const VNe=ebe.of((t,e,o)=>{for(let f=Gu(t).resolveInner(o,-1);f&&!(f.fromo)return{from:o,to:d}}return null});function Due(t){return new Gy(sOe,t,[VNe],"markdown")}const UNe=Due(cOe),jNe=cOe.configure([Nze,Vze,$ze,Uze,{props:[vS.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),uOe=Due(jNe);function QNe(t,e){return o=>{if(o&&t){let f=null;if(o=/\S*/.exec(o)[0],typeof t=="function"?f=t(o):f=qH.matchLanguageName(t,o,!0),f instanceof qH)return f.support?f.support.language.parser:$I.getSkippingParser(f.load());if(f)return f.parser}return e?e.parser:null}}class rH{constructor(e,o,f,P,d,l,n){this.node=e,this.from=o,this.to=f,this.spaceBefore=P,this.spaceAfter=d,this.type=l,this.item=n}blank(e,o=!0){let f=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;f.length0;P--)f+=" ";return f+(o?this.spaceAfter:"")}}marker(e,o){let f=this.node.name=="OrderedList"?String(+dOe(this.item,e)[2]+o):"";return this.spaceBefore+f+this.type+this.spaceAfter}}function fOe(t,e){let o=[];for(let P=t;P&&P.name!="Document";P=P.parent)(P.name=="ListItem"||P.name=="Blockquote"||P.name=="FencedCode")&&o.push(P);let f=[];for(let P=o.length-1;P>=0;P--){let d=o[P],l,n=e.lineAt(d.from),c=d.from-n.from;if(d.name=="FencedCode")f.push(new rH(d,c,c,"","","",null));else if(d.name=="Blockquote"&&(l=/^ *>( ?)/.exec(n.text.slice(c))))f.push(new rH(d,c,c+l[0].length,"",l[1],">",null));else if(d.name=="ListItem"&&d.parent.name=="OrderedList"&&(l=/^( *)\d+([.)])( *)/.exec(n.text.slice(c)))){let b=l[3],i=l[0].length;b.length>=4&&(b=b.slice(0,b.length-4),i-=4),f.push(new rH(d.parent,c,c+i,l[1],b,l[2],d))}else if(d.name=="ListItem"&&d.parent.name=="BulletList"&&(l=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(n.text.slice(c)))){let b=l[4],i=l[0].length;b.length>4&&(b=b.slice(0,b.length-4),i-=4);let O=l[2];l[3]&&(O+=l[3].replace(/[xX]/," ")),f.push(new rH(d.parent,c,c+i,l[1],b,O,d))}}return f}function dOe(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function rae(t,e,o,f=0){for(let P=-1,d=t;;){if(d.name=="ListItem"){let n=dOe(d,e),c=+n[2];if(P>=0){if(c!=P+1)return;o.push({from:d.from+n[1].length,to:d.from+n[0].length,insert:String(P+2+f)})}P=c}let l=d.nextSibling;if(!l)break;d=l}}function rle(t,e){let o=/^[ \t]*/.exec(t)[0].length;if(!o||e.facet(wT)!=" ")return t;let f=xx(t,4,o),P="";for(let d=f;d>0;)d>=4?(P+=" ",d-=4):(P+=" ",d--);return P+t.slice(o)}const HNe=({state:t,dispatch:e})=>{let o=Gu(t),{doc:f}=t,P=null,d=t.changeByRange(l=>{if(!l.empty||!uOe.isActiveAt(t,l.from))return P={range:l};let n=l.from,c=f.lineAt(n),b=fOe(o.resolveInner(n,-1),f);for(;b.length&&b[b.length-1].from>n-c.from;)b.pop();if(!b.length)return P={range:l};let i=b[b.length-1];if(i.to-i.spaceAfter.length>n-c.from)return P={range:l};let O=n>=i.to-i.spaceAfter.length&&!/\S/.test(c.text.slice(i.to));if(i.item&&O)if(i.node.firstChild.to>=n||c.from>0&&!/[^\s>]/.test(f.lineAt(c.from-1).text)){let u=b.length>1?b[b.length-2]:null,h,m="";u&&u.item?(h=c.from+u.from,m=u.marker(f,1)):h=c.from+(u?u.to:0);let v=[{from:h,to:n,insert:m}];return i.node.name=="OrderedList"&&rae(i.item,f,v,-2),u&&u.node.name=="OrderedList"&&rae(u.item,f,v),{range:Yo.cursor(h+m.length),changes:v}}else{let u="";for(let h=0,m=b.length-2;h<=m;h++)u+=b[h].blank(h\s*$/.exec(u.text);if(h&&h.index==i.from){let m=t.changes([{from:u.from+h.index,to:u.to},{from:c.from+i.from,to:c.to}]);return{range:l.map(m),changes:m}}}let w=[];i.node.name=="OrderedList"&&rae(i.item,f,w);let y=i.item&&i.item.from]*/.exec(c.text)[0].length>=i.to)for(let u=0,h=b.length-1;u<=h;u++)p+=u==h&&!y?b[u].marker(f,1):b[u].blank(uc.from&&/\s/.test(c.text.charAt(a-c.from-1));)a--;return p=rle(p,t),w.push({from:a,to:n,insert:t.lineBreak+p}),{range:Yo.cursor(a+p.length+1),changes:w}});return P?!1:(e(t.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)};function b0e(t){return t.name=="QuoteMark"||t.name=="ListMark"}function ZNe(t,e){let o=t.resolveInner(e,-1),f=e;b0e(o)&&(f=o.from,o=o.parent);for(let P;P=o.childBefore(f);)if(b0e(P))f=P.from;else if(P.name=="OrderedList"||P.name=="BulletList")o=P.lastChild,f=o.to;else break;return o}const qNe=({state:t,dispatch:e})=>{let o=Gu(t),f=null,P=t.changeByRange(d=>{let l=d.from,{doc:n}=t;if(d.empty&&uOe.isActiveAt(t,d.from)){let c=n.lineAt(l),b=fOe(ZNe(o,l),n);if(b.length){let i=b[b.length-1],O=i.to-i.spaceAfter.length+(i.spaceAfter?1:0);if(l-c.from>O&&!/\S/.test(c.text.slice(O,l-c.from)))return{range:Yo.cursor(c.from+O),changes:{from:c.from+O,to:l}};if(l-c.from==O&&(!i.item||c.from<=i.item.from||!/\S/.test(c.text.slice(0,i.to)))){let w=c.from+i.from;if(i.item&&i.node.fromd.createCell(c))},{code:Oo(()=>[t.$devMode&&!d.isMobile?(Do(),sa(l,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=c=>o.cellData.code=c),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):Za("",!0)]),outcome:Oo(()=>[ha("div",{class:"markdown-content",innerHTML:d.compiledMarkdown},null,8,KNe)]),_:1},8,["cell-id","is-dev-mode","hide-cell","cell-name","onDelete","onSave"])}const pOe=hm(GNe,[["render",JNe],["__scopeId","data-v-d5250b54"]]);var e$e={exports:{}};(function(t){(function(){var e=function(r){if(r===null)return"null";if(r===void 0)return"undefined";var g=typeof r;return g==="object"&&(Array.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="Array")?"array":g==="object"&&(String.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="String")?"string":g},o=function(r){return["undefined","boolean","number","string","function","xml","null"].indexOf(r)!==-1},f=function(r,g){var B=Array.prototype.slice.call(r);return B.sort(g)},P=function(r,g){return d(function(B,H){return r.eq(g(B),g(H))})},d=function(r){return{eq:r}},l=d(function(r,g){return r===g}),n=l,c=function(r){return d(function(g,B){if(g.length!==B.length)return!1;for(var H=g.length,re=0;re{var H;return B(r,g.prototype)?!0:((H=r.constructor)===null||H===void 0?void 0:H.name)===g.name},p=r=>{const g=typeof r;return r===null?"null":g==="object"&&Array.isArray(r)?"array":g==="object"&&y(r,String,(B,H)=>H.isPrototypeOf(B))?"string":g},a=r=>g=>p(g)===r,u=r=>g=>typeof g===r,h=r=>g=>r===g,m=(r,g)=>_(r)&&y(r,g,(B,H)=>w(B)===H),v=a("string"),_=a("object"),S=r=>m(r,Object),A=a("array"),x=h(null),R=u("boolean"),M=h(void 0),T=r=>r==null,E=r=>!T(r),C=u("function"),L=u("number"),D=(r,g)=>{if(A(r)){for(let B=0,H=r.length;B{},I=(r,g)=>(...B)=>r(g.apply(null,B)),z=(r,g)=>B=>r(g(B)),$=r=>()=>r,Q=r=>r,j=(r,g)=>r===g;function U(r,...g){return(...B)=>{const H=g.concat(B);return r.apply(null,H)}}const X=r=>g=>!r(g),te=r=>()=>{throw new Error(r)},W=r=>r(),K=r=>{r()},oe=$(!1),q=$(!0);class Y{constructor(g,B){this.tag=g,this.value=B}static some(g){return new Y(!0,g)}static none(){return Y.singletonNone}fold(g,B){return this.tag?B(this.value):g()}isSome(){return this.tag}isNone(){return!this.tag}map(g){return this.tag?Y.some(g(this.value)):Y.none()}bind(g){return this.tag?g(this.value):Y.none()}exists(g){return this.tag&&g(this.value)}forall(g){return!this.tag||g(this.value)}filter(g){return!this.tag||g(this.value)?this:Y.none()}getOr(g){return this.tag?this.value:g}or(g){return this.tag?this:g}getOrThunk(g){return this.tag?this.value:g()}orThunk(g){return this.tag?this:g()}getOrDie(g){if(this.tag)return this.value;throw new Error(g??"Called getOrDie on None")}static from(g){return E(g)?Y.some(g):Y.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(g){this.tag&&g(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}Y.singletonNone=new Y(!1);const ee=Array.prototype.slice,me=Array.prototype.indexOf,he=Array.prototype.push,se=(r,g)=>me.call(r,g),ae=(r,g)=>{const B=se(r,g);return B===-1?Y.none():Y.some(B)},ce=(r,g)=>se(r,g)>-1,de=(r,g)=>{for(let B=0,H=r.length;B{const B=r.length,H=new Array(B);for(let re=0;re{for(let B=0,H=r.length;B{for(let B=r.length-1;B>=0;B--){const H=r[B];g(H,B)}},Se=(r,g)=>{const B=[],H=[];for(let re=0,be=r.length;re{const B=[];for(let H=0,re=r.length;H(_e(r,(H,re)=>{B=g(B,H,re)}),B),Ie=(r,g,B)=>(ye(r,(H,re)=>{B=g(B,H,re)}),B),ze=(r,g,B)=>{for(let H=0,re=r.length;Hze(r,g,oe),He=(r,g)=>{for(let B=0,H=r.length;B{const g=[];for(let B=0,H=r.length;BVe(ve(r,g)),Oe=(r,g)=>{for(let B=0,H=r.length;B{const g=ee.call(r,0);return g.reverse(),g},Le=(r,g)=>Te(r,B=>!ce(g,B)),We=(r,g)=>{const B={};for(let H=0,re=r.length;H{const B=ee.call(r,0);return B.sort(g),B},Ze=(r,g)=>g>=0&&gZe(r,0),tt=r=>Ze(r,r.length-1),Ee=C(Array.from)?Array.from:r=>ee.call(r),Ne=(r,g)=>{for(let B=0;B{const B=[],H=C(g)?re=>de(B,be=>g(be,re)):re=>ce(B,re);for(let re=0,be=r.length;re{const B=nt(r);for(let H=0,re=B.length;Hpt(r,(B,H)=>({k:H,v:g(B,H)})),pt=(r,g)=>{const B={};return Ge(r,(H,re)=>{const be=g(H,re);B[be.k]=be.v}),B},wt=r=>(g,B)=>{r[B]=g},Dt=(r,g,B,H)=>{Ge(r,(re,be)=>{(g(re,be)?B:H)(re,be)})},It=(r,g)=>{const B={},H={};return Dt(r,g,wt(B),wt(H)),{t:B,f:H}},qt=(r,g)=>{const B={};return Dt(r,g,wt(B),k),B},en=(r,g)=>{const B=[];return Ge(r,(H,re)=>{B.push(g(H,re))}),B},Gt=r=>en(r,Q),Ct=(r,g)=>_t(r,g)?Y.from(r[g]):Y.none(),_t=(r,g)=>ot.call(r,g),nn=(r,g)=>_t(r,g)&&r[g]!==void 0&&r[g]!==null,gn=(r,g,B=O)=>i(B).eq(r,g),bn=r=>{const g={};return ye(r,B=>{g[B]={}}),nt(g)},mn=r=>r.length!==void 0,vt=Array.isArray,bt=r=>{if(vt(r))return r;{const g=[];for(let B=0,H=r.length;B{if(!r)return!1;if(B=B||r,mn(r)){for(let H=0,re=r.length;H{const B=[];return lt(r,(H,re)=>{B.push(g(H,re,r))}),B},zt=(r,g)=>{const B=[];return lt(r,(H,re)=>{(!g||g(H,re,r))&&B.push(H)}),B},Rt=(r,g)=>{if(r){for(let B=0,H=r.length;B{let re=M(B)?r[0]:B;for(let be=0;be{for(let H=0,re=r.length;Hr[r.length-1],xt=r=>{let g=!1,B;return(...H)=>(g||(g=!0,B=r.apply(null,H)),B)},Zt=(r,g,B,H)=>{const re=r.isiOS()&&/ipad/i.test(B)===!0,be=r.isiOS()&&!re,Re=r.isiOS()||r.isAndroid(),Ke=Re||H("(pointer:coarse)"),ct=re||!be&&Re&&H("(min-device-width:768px)"),kt=be||Re&&!ct,Wt=g.isSafari()&&r.isiOS()&&/safari/i.test(B)===!1,Jt=!kt&&!ct&&!Wt;return{isiPad:$(re),isiPhone:$(be),isTablet:$(ct),isPhone:$(kt),isTouch:$(Ke),isAndroid:r.isAndroid,isiOS:r.isiOS,isWebView:$(Wt),isDesktop:$(Jt)}},Xt=(r,g)=>{for(let B=0;B{const B=Xt(r,g);if(!B)return{major:0,minor:0};const H=re=>Number(g.replace(B,"$"+re));return tn(H(1),H(2))},Qt=(r,g)=>{const B=String(g).toLowerCase();return r.length===0?Pt():Yt(r,B)},Pt=()=>tn(0,0),tn=(r,g)=>({major:r,minor:g}),Kt={nu:tn,detect:Qt,unknown:Pt},fn=(r,g)=>Ne(g.brands,B=>{const H=B.brand.toLowerCase();return De(r,re=>{var be;return H===((be=re.brand)===null||be===void 0?void 0:be.toLowerCase())}).map(re=>({current:re.name,version:Kt.nu(parseInt(B.version,10),0)}))}),dn=(r,g)=>{const B=String(g).toLowerCase();return De(r,H=>H.search(B))},vn=(r,g)=>dn(r,g).map(B=>{const H=Kt.detect(B.versionRegexes,g);return{current:B.name,version:H}}),Nn=(r,g)=>dn(r,g).map(B=>{const H=Kt.detect(B.versionRegexes,g);return{current:B.name,version:H}}),er=(r,g)=>r.substring(g),En=(r,g,B)=>g===""||r.length>=g.length&&r.substr(B,B+g.length)===g,In=(r,g)=>xr(r,g)?er(r,g.length):r,jn=(r,g,B=0,H)=>{const re=r.indexOf(g,B);return re!==-1?M(H)?!0:re+g.length<=H:!1},xr=(r,g)=>En(r,g,0),Sr=(r,g)=>En(r,g,r.length-g.length),ar=r=>g=>g.replace(r,""),Fn=ar(/^\s+|\s+$/g),ir=ar(/^\s+/g),Wn=ar(/\s+$/g),Kn=r=>r.length>0,_r=r=>!Kn(r),Ir=(r,g)=>g<=0?"":new Array(g+1).join(r),zr=(r,g=10)=>{const B=parseInt(r,g);return isNaN(B)?Y.none():Y.some(B)},Fr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Rr=r=>g=>jn(g,r),$r=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:r=>jn(r,"edge/")&&jn(r,"chrome")&&jn(r,"safari")&&jn(r,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Fr],search:r=>jn(r,"chrome")&&!jn(r,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:r=>jn(r,"msie")||jn(r,"trident")},{name:"Opera",versionRegexes:[Fr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Rr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Rr("firefox")},{name:"Safari",versionRegexes:[Fr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:r=>(jn(r,"safari")||jn(r,"mobile/"))&&jn(r,"applewebkit")}],Kr=[{name:"Windows",search:Rr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:r=>jn(r,"iphone")||jn(r,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Rr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Rr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Rr("linux"),versionRegexes:[]},{name:"Solaris",search:Rr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Rr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Rr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Co={browsers:$($r),oses:$(Kr)},so="Edge",So="Chromium",go="IE",li="Opera",Pn="Firefox",Yn="Safari",br=()=>dr({current:void 0,version:Kt.unknown()}),dr=r=>{const g=r.current,B=r.version,H=re=>()=>g===re;return{current:g,version:B,isEdge:H(so),isChromium:H(So),isIE:H(go),isOpera:H(li),isFirefox:H(Pn),isSafari:H(Yn)}},Cr={unknown:br,nu:dr,edge:$(so),chromium:$(So),ie:$(go),opera:$(li),firefox:$(Pn),safari:$(Yn)},io="Windows",Qr="iOS",Wr="Android",bo="Linux",Bn="macOS",hr="Solaris",hn="FreeBSD",zn="ChromeOS",Zn=()=>yr({current:void 0,version:Kt.unknown()}),yr=r=>{const g=r.current,B=r.version,H=re=>()=>g===re;return{current:g,version:B,isWindows:H(io),isiOS:H(Qr),isAndroid:H(Wr),isMacOS:H(Bn),isLinux:H(bo),isSolaris:H(hr),isFreeBSD:H(hn),isChromeOS:H(zn)}},gr={unknown:Zn,nu:yr,windows:$(io),ios:$(Qr),android:$(Wr),linux:$(bo),macos:$(Bn),solaris:$(hr),freebsd:$(hn),chromeos:$(zn)},nr={detect:(r,g,B)=>{const H=Co.browsers(),re=Co.oses(),be=g.bind(ct=>fn(H,ct)).orThunk(()=>vn(H,r)).fold(Cr.unknown,Cr.nu),Re=Nn(re,r).fold(gr.unknown,gr.nu),Ke=Zt(Re,be,r,B);return{browser:be,os:Re,deviceType:Ke}}},Qn=r=>window.matchMedia(r).matches;let Hn=xt(()=>nr.detect(navigator.userAgent,Y.from(navigator.userAgentData),Qn));const tr=()=>Hn(),cr=navigator.userAgent,Lr=tr(),Er=Lr.browser,Vr=Lr.os,to=Lr.deviceType,_o=cr.indexOf("Windows Phone")!==-1,fr={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Er.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Er.isIE(),windowsPhone:_o,browser:{current:Er.current,version:Er.version,isChromium:Er.isChromium,isEdge:Er.isEdge,isFirefox:Er.isFirefox,isIE:Er.isIE,isOpera:Er.isOpera,isSafari:Er.isSafari},os:{current:Vr.current,version:Vr.version,isAndroid:Vr.isAndroid,isChromeOS:Vr.isChromeOS,isFreeBSD:Vr.isFreeBSD,isiOS:Vr.isiOS,isLinux:Vr.isLinux,isMacOS:Vr.isMacOS,isSolaris:Vr.isSolaris,isWindows:Vr.isWindows},deviceType:{isDesktop:to.isDesktop,isiPad:to.isiPad,isiPhone:to.isiPhone,isPhone:to.isPhone,isTablet:to.isTablet,isTouch:to.isTouch,isWebView:to.isWebView}},Eo=/^\s*|\s*$/g,ao=r=>T(r)?"":(""+r).replace(Eo,""),co=(r,g)=>g?g==="array"&&vt(r)?!0:typeof r===g:r!==void 0,Go=(r,g,B={})=>{const H=v(r)?r.split(g||","):r||[];let re=H.length;for(;re--;)B[H[re]]={};return B},po=_t,qo=(r,...g)=>{for(let B=0;Bg.call(H,re,be,B)===!1?!1:(Ao(re,g,B,H),!0)))},mo={trim:ao,isArray:vt,is:co,toArray:bt,makeMap:Go,each:lt,map:yt,grep:zt,inArray:Rt,hasOwn:po,extend:qo,walk:Ao,resolve:(r,g=window)=>{const B=r.split(".");for(let H=0,re=B.length;HA(r)?r:r===""?[]:yt(r.split(g||","),ao),_addCacheSuffix:r=>{const g=fr.cacheSuffix;return g&&(r+=(r.indexOf("?")===-1?"?":"&")+g),r}},Aa=(r,g,B=j)=>r.exists(H=>B(H,g)),Xl=(r,g,B=j)=>us(r,g,B).getOr(r.isNone()&&g.isNone()),Na=r=>{const g=[],B=H=>{g.push(H)};for(let H=0;Hr.isSome()&&g.isSome()?Y.some(B(r.getOrDie(),g.getOrDie())):Y.none(),wc=(r,g,B,H)=>r.isSome()&&g.isSome()&&B.isSome()?Y.some(H(r.getOrDie(),g.getOrDie(),B.getOrDie())):Y.none(),ga=(r,g)=>r?Y.some(g):Y.none(),Ku=typeof window<"u"?window:Function("return this;")(),qc=(r,g)=>{let B=g??Ku;for(let H=0;H{const B=r.split(".");return qc(B,g)},Ql=(r,g)=>Yd(r,g),Ed=(r,g)=>{const B=Ql(r,g);if(B==null)throw new Error(r+" not available on this browser");return B},Nf=Object.getPrototypeOf,mm=r=>Ed("HTMLElement",r),Ws=r=>{const g=Yd("ownerDocument.defaultView",r);return _(r)&&(mm(g).prototype.isPrototypeOf(r)||/^HTML\w*Element$/.test(Nf(r).constructor.name))},gm=8,Gl=9,pc=11,Cu=1,xl=3,la=r=>r.dom.nodeName.toLowerCase(),cc=r=>r.dom.nodeType,pu=r=>g=>cc(g)===r,ju=r=>cc(r)===gm||la(r)==="#comment",iu=r=>mc(r)&&Ws(r.dom),mc=pu(Cu),ks=pu(xl),$f=pu(Gl),yf=pu(pc),Ju=r=>g=>mc(g)&&la(g)===r,$h=(r,g,B)=>{if(v(B)||R(B)||L(B))r.setAttribute(g,B+"");else throw console.error("Invalid call to Attribute.set. Key ",g,":: Value ",B,":: Element ",r),new Error("Attribute value was not simple")},Es=(r,g,B)=>{$h(r.dom,g,B)},ef=(r,g)=>{const B=r.dom;Ge(g,(H,re)=>{$h(B,re,H)})},uc=(r,g)=>{const B=r.dom.getAttribute(g);return B===null?void 0:B},sd=(r,g)=>Y.from(uc(r,g)),Vf=(r,g)=>{const B=r.dom;return B&&B.hasAttribute?B.hasAttribute(g):!1},gc=(r,g)=>{r.dom.removeAttribute(g)},ld=r=>{const g=r.dom.attributes;return g==null||g.length===0},Mp=r=>Ie(r.dom.attributes,(g,B)=>(g[B.name]=B.value,g),{}),Xd=(r,g)=>{const B=uc(r,g);return B===void 0||B===""?[]:B.split(" ")},bf=(r,g,B)=>{const re=Xd(r,g).concat([B]);return Es(r,g,re.join(" ")),!0},mh=(r,g,B)=>{const H=Te(Xd(r,g),re=>re!==B);return H.length>0?Es(r,g,H.join(" ")):gc(r,g),!1},cd=r=>r.dom.classList!==void 0,Vh=r=>Xd(r,"class"),xf=(r,g)=>bf(r,"class",g),tf=(r,g)=>mh(r,"class",g),Au=(r,g)=>ce(Vh(r),g)?tf(r,g):xf(r,g),_f=(r,g)=>{cd(r)?r.dom.classList.add(g):xf(r,g)},ud=r=>{(cd(r)?r.dom.classList:Vh(r)).length===0&&gc(r,"class")},nf=(r,g)=>{cd(r)?r.dom.classList.remove(g):tf(r,g),ud(r)},gh=(r,g)=>{const B=cd(r)?r.dom.classList.toggle(g):Au(r,g);return ud(r),B},rs=(r,g)=>cd(r)&&r.dom.classList.contains(g),ep=(r,g)=>{const H=(g||document).createElement("div");if(H.innerHTML=r,!H.hasChildNodes()||H.childNodes.length>1){const re="HTML does not have a single root node";throw console.error(re,r),new Error(re)}return Pd(H.childNodes[0])},Ep=(r,g)=>{const H=(g||document).createElement(r);return Pd(H)},vm=(r,g)=>{const H=(g||document).createTextNode(r);return Pd(H)},Pd=r=>{if(r==null)throw new Error("Node cannot be null or undefined");return{dom:r}},sr={fromHtml:ep,fromTag:Ep,fromText:vm,fromDom:Pd,fromPoint:(r,g,B)=>Y.from(r.dom.elementFromPoint(g,B)).map(Pd)},Pp=(r,g)=>{const B=[],H=be=>(B.push(be),g(be));let re=g(r);do re=re.bind(H);while(re.isSome());return B},wf=(r,g)=>{const B=r.dom;if(B.nodeType!==Cu)return!1;{const H=B;if(H.matches!==void 0)return H.matches(g);if(H.msMatchesSelector!==void 0)return H.msMatchesSelector(g);if(H.webkitMatchesSelector!==void 0)return H.webkitMatchesSelector(g);if(H.mozMatchesSelector!==void 0)return H.mozMatchesSelector(g);throw new Error("Browser lacks native selectors")}},Of=r=>r.nodeType!==Cu&&r.nodeType!==Gl&&r.nodeType!==pc||r.childElementCount===0,Rp=(r,g)=>{const B=g===void 0?document:g.dom;return Of(B)?[]:ve(B.querySelectorAll(r),sr.fromDom)},Gd=(r,g)=>{const B=g===void 0?document:g.dom;return Of(B)?Y.none():Y.from(B.querySelector(r)).map(sr.fromDom)},Fa=(r,g)=>r.dom===g.dom,Qu=(r,g)=>{const B=r.dom,H=g.dom;return B===H?!1:B.contains(H)},rf=r=>sr.fromDom(r.dom.ownerDocument),Bc=r=>$f(r)?r:rf(r),ym=r=>sr.fromDom(Bc(r).dom.documentElement),Mu=r=>sr.fromDom(Bc(r).dom.defaultView),Hu=r=>Y.from(r.dom.parentNode).map(sr.fromDom),Lp=r=>Y.from(r.dom.parentElement).map(sr.fromDom),Uh=(r,g)=>{const B=C(g)?g:oe;let H=r.dom;const re=[];for(;H.parentNode!==null&&H.parentNode!==void 0;){const be=H.parentNode,Re=sr.fromDom(be);if(re.push(Re),B(Re)===!0)break;H=be}return re},jh=r=>{const g=B=>Te(B,H=>!Fa(r,H));return Hu(r).map(Oc).map(g).getOr([])},Eu=r=>Y.from(r.dom.previousSibling).map(sr.fromDom),fd=r=>Y.from(r.dom.nextSibling).map(sr.fromDom),vh=r=>ke(Pp(r,Eu)),Pu=r=>Pp(r,fd),Oc=r=>ve(r.dom.childNodes,sr.fromDom),Ts=(r,g)=>{const B=r.dom.childNodes;return Y.from(B[g]).map(sr.fromDom)},Uf=r=>Ts(r,0),zl=r=>Ts(r,r.dom.childNodes.length-1),Hl=r=>r.dom.childNodes.length,Cs=r=>{const g=r.dom.head;if(g==null)throw new Error("Head is not available yet");return sr.fromDom(g)},$s=r=>yf(r)&&E(r.dom.host),Zu=C(Element.prototype.attachShadow)&&C(Node.prototype.getRootNode),yh=$(Zu),of=Zu?r=>sr.fromDom(r.dom.getRootNode()):Bc,tp=r=>$s(r)?r:Cs(Bc(r)),Ip=r=>$s(r)?r:sr.fromDom(Bc(r).dom.body),bm=r=>{const g=of(r);return $s(g)?Y.some(g):Y.none()},Kd=r=>sr.fromDom(r.dom.host),bh=r=>{if(yh()&&E(r.target)){const g=sr.fromDom(r.target);if(mc(g)&&Jd(g)&&r.composed&&r.composedPath){const B=r.composedPath();if(B)return Xe(B)}}return Y.from(r.target)},Jd=r=>E(r.dom.shadowRoot),zc=r=>{const g=ks(r)?r.dom.parentNode:r.dom;if(g==null||g.ownerDocument===null)return!1;const B=g.ownerDocument;return bm(sr.fromDom(g)).fold(()=>B.body.contains(g),z(zc,Kd))};var np=(r,g,B,H,re)=>r(B,H)?Y.some(B):C(re)&&re(B)?Y.none():g(B,H,re);const ms=(r,g,B)=>{let H=r.dom;const re=C(B)?B:oe;for(;H.parentNode;){H=H.parentNode;const be=sr.fromDom(H);if(g(be))return Y.some(be);if(re(be))break}return Y.none()},Ya=(r,g,B)=>np((re,be)=>be(re),ms,r,g,B),_l=(r,g)=>{const B=r.dom;return B.parentNode?dl(sr.fromDom(B.parentNode),H=>!Fa(r,H)&&g(H)):Y.none()},dl=(r,g)=>{const B=re=>g(sr.fromDom(re));return De(r.dom.childNodes,B).map(sr.fromDom)},Wc=(r,g)=>{const B=H=>{for(let re=0;rems(r,H=>wf(H,g),B),xi=(r,g)=>Gd(g,r),mu=(r,g,B)=>np((re,be)=>wf(re,be),wl,r,g,B),xh=r=>mu(r,"[contenteditable]"),js=(r,g=!1)=>zc(r)?r.dom.isContentEditable:xh(r).fold($(g),B=>os(B)==="true"),os=r=>r.dom.contentEditable,af=r=>r.style!==void 0&&C(r.style.getPropertyValue),Sf=(r,g,B)=>{if(!v(B))throw console.error("Invalid call to CSS.set. Property ",g,":: Value ",B,":: Element ",r),new Error("CSS value must be a string: "+B);af(r)&&r.style.setProperty(g,B)},sf=(r,g)=>{af(r)&&r.style.removeProperty(g)},Ml=(r,g,B)=>{const H=r.dom;Sf(H,g,B)},Hi=(r,g)=>{const B=r.dom;Ge(g,(H,re)=>{Sf(B,re,H)})},pi=(r,g)=>{const B=r.dom,re=window.getComputedStyle(B).getPropertyValue(g);return re===""&&!zc(r)?Qh(B,g):re},Qh=(r,g)=>af(r)?r.style.getPropertyValue(g):"",Ru=(r,g)=>{const B=r.dom,H=Qh(B,g);return Y.from(H).filter(re=>re.length>0)},vc=r=>{const g={},B=r.dom;if(af(B))for(let H=0;H{const B=r.dom;sf(B,g),Aa(sd(r,"style").map(Fn),"")&&gc(r,"style")},Kl=r=>r.dom.offsetWidth,Fc=(r,g)=>{Hu(r).each(H=>{H.dom.insertBefore(g.dom,r.dom)})},si=(r,g)=>{fd(r).fold(()=>{Hu(r).each(re=>{Ps(re,g)})},H=>{Fc(H,g)})},Hh=(r,g)=>{Uf(r).fold(()=>{Ps(r,g)},H=>{r.dom.insertBefore(g.dom,H.dom)})},Ps=(r,g)=>{r.dom.appendChild(g.dom)},Sc=(r,g)=>{Fc(r,g),Ps(g,r)},tl=(r,g)=>{ye(g,(B,H)=>{const re=H===0?r:g[H-1];si(re,B)})},gu=(r,g)=>{ye(g,B=>{Ps(r,B)})},vu=r=>{r.dom.textContent="",ye(Oc(r),g=>{ja(g)})},ja=r=>{const g=r.dom;g.parentNode!==null&&g.parentNode.removeChild(g)},yu=r=>{const g=Oc(r);g.length>0&&tl(r,g),ja(r)},Rd=(r,g)=>{const H=(g||document).createElement("div");return H.innerHTML=r,Oc(sr.fromDom(H))},Ld=r=>ve(r,sr.fromDom),nl=r=>r.dom.innerHTML,Id=(r,g)=>{const H=rf(r).dom,re=sr.fromDom(H.createDocumentFragment()),be=Rd(g,H);gu(re,be),vu(r),Ps(r,re)},Ka=r=>{const g=sr.fromTag("div"),B=sr.fromDom(r.dom.cloneNode(!0));return Ps(g,B),nl(g)},Xi=(r,g,B,H,re,be,Re)=>({target:r,x:g,y:B,stop:H,prevent:re,kill:be,raw:Re}),Xc=r=>{const g=sr.fromDom(bh(r).getOr(r.target)),B=()=>r.stopPropagation(),H=()=>r.preventDefault(),re=I(H,B);return Xi(g,r.clientX,r.clientY,B,H,re,r)},jf=(r,g)=>B=>{r(B)&&g(Xc(B))},bu=(r,g,B,H,re)=>{const be=jf(B,H);return r.dom.addEventListener(g,be,re),{unbind:U(rp,r,g,be,re)}},Dp=(r,g,B,H)=>bu(r,g,B,H,!1),rp=(r,g,B,H)=>{r.dom.removeEventListener(g,B,H)},Lu=(r,g)=>({left:r,top:g,translate:(H,re)=>Lu(r+H,g+re)}),fs=Lu,Qf=r=>{const g=r.getBoundingClientRect();return fs(g.left,g.top)},dd=(r,g)=>r!==void 0?r:g!==void 0?g:0,Hf=r=>{const g=r.dom.ownerDocument,B=g.body,H=g.defaultView,re=g.documentElement;if(B===r.dom)return fs(B.offsetLeft,B.offsetTop);const be=dd(H==null?void 0:H.pageYOffset,re.scrollTop),Re=dd(H==null?void 0:H.pageXOffset,re.scrollLeft),Ke=dd(re.clientTop,B.clientTop),ct=dd(re.clientLeft,B.clientLeft);return _h(r).translate(Re-ct,be-Ke)},_h=r=>{const g=r.dom,H=g.ownerDocument.body;return H===g?fs(H.offsetLeft,H.offsetTop):zc(r)?Qf(g):fs(0,0)},Gc=r=>{const g=r!==void 0?r.dom:document,B=g.body.scrollLeft||g.documentElement.scrollLeft,H=g.body.scrollTop||g.documentElement.scrollTop;return fs(B,H)},hd=(r,g,B)=>{const re=(B!==void 0?B.dom:document).defaultView;re&&re.scrollTo(r,g)},rl=(r,g)=>{tr().browser.isSafari()&&C(r.dom.scrollIntoViewIfNeeded)?r.dom.scrollIntoViewIfNeeded(!1):r.dom.scrollIntoView(g)},Dd=r=>{const g=r===void 0?window:r;return tr().browser.isFirefox()?Y.none():Y.from(g.visualViewport)},Vi=(r,g,B,H)=>({x:r,y:g,width:B,height:H,right:r+B,bottom:g+H}),fa=r=>{const g=r===void 0?window:r,B=g.document,H=Gc(sr.fromDom(B));return Dd(g).fold(()=>{const re=g.document.documentElement,be=re.clientWidth,Re=re.clientHeight;return Vi(H.left,H.top,be,Re)},re=>Vi(Math.max(re.pageLeft,H.left),Math.max(re.pageTop,H.top),re.width,re.height))},au=(r,g)=>Te(Oc(r),g),Zf=(r,g)=>{let B=[];return ye(Oc(r),H=>{g(H)&&(B=B.concat([H])),B=B.concat(Zf(H,g))}),B},Zl=(r,g)=>Rp(g,r),Jl=(r,g,B)=>ms(r,g,B).isSome(),Bd=(r,g)=>_l(r,g).isSome(),Qs=(r,g)=>Wc(r,g).isSome();class kc{constructor(g,B){this.node=g,this.rootNode=B,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(g){return this.node=this.findSibling(this.node,"firstChild","nextSibling",g),this.node}prev(g){return this.node=this.findSibling(this.node,"lastChild","previousSibling",g),this.node}prev2(g){return this.node=this.findPreviousNode(this.node,g),this.node}findSibling(g,B,H,re){if(g){if(!re&&g[B])return g[B];if(g!==this.rootNode){let be=g[H];if(be)return be;for(let Re=g.parentNode;Re&&Re!==this.rootNode;Re=Re.parentNode)if(be=Re[H],be)return be}}}findPreviousNode(g,B){if(g){const H=g.previousSibling;if(this.rootNode&&H===this.rootNode)return;if(H){if(!B){for(let be=H.lastChild;be;be=be.lastChild)if(!be.lastChild)return be}return H}const re=g.parentNode;if(re&&re!==this.rootNode)return re}}}const Iu="\uFEFF",Ea=" ",El=r=>r===Iu,Ol=r=>r.replace(/\uFEFF/g,""),Mi=/^[ \t\r\n]*$/,kf=r=>Mi.test(r),Ot=r=>{for(const g of r)if(!El(g))return!1;return!0},Mt=r=>" \f \v".indexOf(r)!==-1,Ft=r=>r===` +`||r==="\r",J=(r,g)=>g=0?Ft(r[g]):!1,le=(r,g=4,B=!0,H=!0)=>{const re=Ir(" ",g),be=r.replace(/\t/g,re);return Ie(be,(Ke,ct)=>Mt(ct)||ct===Ea?Ke.pcIsSpace||Ke.str===""&&B||Ke.str.length===be.length-1&&H||J(be,Ke.str.length+1)?{pcIsSpace:!1,str:Ke.str+Ea}:{pcIsSpace:!0,str:Ke.str+" "}:{pcIsSpace:Ft(ct),str:Ke.str+ct},{pcIsSpace:!1,str:""}).str},ie=r=>g=>!!g&&g.nodeType===r,V=r=>!!r&&!Object.getPrototypeOf(r),ne=ie(1),ge=r=>ne(r)&&iu(sr.fromDom(r)),xe=r=>ne(r)&&r.namespaceURI==="http://www.w3.org/2000/svg",Me=r=>{const g=r.toLowerCase();return B=>E(B)&&B.nodeName.toLowerCase()===g},Fe=r=>{const g=r.map(B=>B.toLowerCase());return B=>{if(B&&B.nodeName){const H=B.nodeName.toLowerCase();return ce(g,H)}return!1}},Je=(r,g)=>{const B=g.toLowerCase().split(" ");return H=>{if(ne(H)){const re=H.ownerDocument.defaultView;if(re)for(let be=0;beg=>ne(g)&&g.hasAttribute(r),dt=r=>ne(r)&&r.hasAttribute("data-mce-bogus"),mt=r=>ne(r)&&r.getAttribute("data-mce-bogus")==="all",Et=r=>ne(r)&&r.tagName==="TABLE",Vt=r=>g=>!!(ge(g)&&(g.contentEditable===r||g.getAttribute("data-mce-contenteditable")===r)),jt=Fe(["textarea","input"]),Nt=ie(3),cn=ie(4),sn=ie(7),xn=ie(8),pn=ie(9),Ln=ie(11),On=Me("br"),An=Me("img"),Sn=Vt("true"),rr=Vt("false"),Dr=Fe(["td","th"]),Pr=Fe(["td","th","caption"]),Zr=Fe(["video","audio","object","embed"]),Mo=Me("li"),$o=Me("details"),vo=Me("summary"),zo={skipBogus:!0,includeZwsp:!1,checkRootAsContent:!1},yi=(r,g,B)=>{const H=sr.fromDom(g),re=sr.fromDom(r),be=B.getWhitespaceElements();return Jl(re,Ke=>_t(be,la(Ke)),U(Fa,H))},Si=r=>ne(r)&&r.nodeName==="A"&&!r.hasAttribute("href")&&(r.hasAttribute("name")||r.hasAttribute("id")),Hr=(r,g)=>ne(r)&&_t(g.getNonEmptyElements(),r.nodeName),Lo=rt("data-mce-bookmark"),ki=r=>Lp(sr.fromDom(r)).exists(g=>!js(g)),Io=(r,g,B)=>kf(r.data)&&!yi(r,g,B),$i=(r,g,B,H)=>Nt(r)&&!Io(r,g,B)&&(!H.includeZwsp||!Ot(r.data)),Ui=(r,g,B,H)=>C(H.isContent)&&H.isContent(g)||Hr(g,r)||Lo(g)||Si(g)||$i(g,B,r,H)||rr(g)||Sn(g)&&ki(g),ba=(r,g,B)=>{const H={...zo,...B};if(H.checkRootAsContent&&Ui(r,g,g,H))return!1;let re=g.firstChild,be=0;if(!re)return!0;const Re=new kc(re,g);do{if(H.skipBogus&&ne(re)){const Ke=re.getAttribute("data-mce-bogus");if(Ke){re=Re.next(Ke==="all");continue}}if(xn(re)){re=Re.next(!0);continue}if(On(re)){be++,re=Re.next();continue}if(Ui(r,re,g,H))return!1;re=Re.next()}while(re);return be<=1},Pi=(r,g,B)=>ba(r,g.dom,{checkRootAsContent:!0,...B}),ds=(r,g,B)=>Ui(r,g,g,{includeZwsp:zo.includeZwsp,...B}),mr=r=>{let g=r;return{get:()=>g,set:re=>{g=re}}},bs=r=>{const g=mr(Y.none()),B=()=>g.get().each(r);return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(Ke))}}},Pl=r=>{const g=mr(Y.none()),B=()=>g.get().each(Ke=>clearInterval(Ke));return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(setInterval(Ke,r)))}}},Ys=()=>{const r=bs(k);return{...r,on:B=>r.get().each(B)}},hl=r=>{const g=r.toLowerCase();return g==="svg"?"svg":g==="math"?"math":"html"},hs=r=>hl(r)!=="html",Pa=r=>hs(r.nodeName),Rs=r=>hl(r.nodeName),Ls=["svg","math"],ol=()=>{const r=Ys(),g=()=>r.get().map(Rs).getOr("html");return{track:re=>(Pa(re)?r.set(re):r.get().exists(be=>!be.contains(re))&&r.clear(),g()),current:g,reset:()=>{r.clear()}}},Is="data-mce-block",Ds=r=>Te(nt(r),g=>!/[A-Z]/.test(g)),ec=r=>ve(Ds(r),g=>{const B=CSS.escape(g);return`${B}:`+ve(Ls,H=>`not(${H} ${B})`).join(":")}).join(","),Tc=(r,g)=>E(g.querySelector(r))?(g.setAttribute(Is,"true"),g.getAttribute("data-mce-selected")==="inline-boundary"&&g.removeAttribute("data-mce-selected"),!0):(g.removeAttribute(Is),!1),op=(r,g)=>{const B=ec(r.getTransparentElements()),H=ec(r.getBlockElements());return Te(g.querySelectorAll(B),re=>Tc(H,re))},ip=(r,g,B)=>{var H;const re=B?"lastChild":"firstChild";for(let be=g[re];be;be=be[re])if(ba(r,be,{checkRootAsContent:!0})){(H=be.parentNode)===null||H===void 0||H.removeChild(be);return}},Hs=(r,g,B)=>{const H=document.createRange(),re=g.parentNode;if(re){H.setStartBefore(g),H.setEndBefore(B);const be=H.extractContents();ip(r,be,!0),H.setStartAfter(B),H.setEndAfter(g);const Re=H.extractContents();ip(r,Re,!1),ba(r,be,{checkRootAsContent:!0})||re.insertBefore(be,g),ba(r,B,{checkRootAsContent:!0})||re.insertBefore(B,g),ba(r,Re,{checkRootAsContent:!0})||re.insertBefore(Re,g),re.removeChild(g)}},wh=(r,g,B)=>{const H=r.getBlockElements(),re=sr.fromDom(g),be=Ke=>la(Ke)in H,Re=Ke=>Fa(Ke,re);ye(Ld(B),Ke=>{ms(Ke,be,Re).each(ct=>{const kt=au(Ke,Wt=>be(Wt)&&!r.isValidChild(la(ct),la(Wt)));if(kt.length>0){const Wt=Lp(ct);ye(kt,Jt=>{ms(Jt,be,Re).each(ln=>{Hs(r,ln.dom,Jt.dom)})}),Wt.each(Jt=>op(r,Jt.dom))}})})},pd=(r,g,B)=>{ye([...B,...xm(r,g)?[g]:[]],H=>ye(Zl(sr.fromDom(H),H.nodeName.toLowerCase()),re=>{Cx(r,re.dom)&&yu(re)}))},qf=(r,g)=>{const B=op(r,g);wh(r,g,B),pd(r,g,B)},tc=(r,g)=>{if(E0(r,g)){const B=ec(r.getBlockElements());Tc(B,g)}},Wf=(r,g,B)=>{const H=be=>Fa(be,sr.fromDom(g)),re=Uh(sr.fromDom(B),H);Ze(re,re.length-2).filter(mc).fold(()=>qf(r,g),be=>qf(r,be.dom))},Rl=r=>r.hasAttribute(Is),cg=(r,g)=>_t(r.getTransparentElements(),g),E0=(r,g)=>ne(g)&&cg(r,g.nodeName),xm=(r,g)=>E0(r,g)&&Rl(g),Cx=(r,g)=>E0(r,g)&&!Rl(g),eh=(r,g)=>g.type===1&&cg(r,g.name)&&v(g.attr(Is)),Ax=tr().browser,Wg=r=>De(r,mc),Mx=r=>Ax.isFirefox()&&la(r)==="table"?Wg(Oc(r)).filter(g=>la(g)==="caption").bind(g=>Wg(Pu(g)).map(B=>{const H=B.dom.offsetTop,re=g.dom.offsetTop,be=g.dom.offsetHeight;return H<=re?-be:0})).getOr(0):0,k1=(r,g)=>r.children&&ce(r.children,g),oc=(r,g,B)=>{let H=0,re=0;const be=r.ownerDocument;if(B=B||r,g){if(B===r&&g.getBoundingClientRect&&pi(sr.fromDom(r),"position")==="static"){const Ke=g.getBoundingClientRect();return H=Ke.left+(be.documentElement.scrollLeft||r.scrollLeft)-be.documentElement.clientLeft,re=Ke.top+(be.documentElement.scrollTop||r.scrollTop)-be.documentElement.clientTop,{x:H,y:re}}let Re=g;for(;Re&&Re!==B&&Re.nodeType&&!k1(Re,B);){const Ke=Re;H+=Ke.offsetLeft||0,re+=Ke.offsetTop||0,Re=Ke.offsetParent}for(Re=g.parentNode;Re&&Re!==B&&Re.nodeType&&!k1(Re,B);)H-=Re.scrollLeft||0,re-=Re.scrollTop||0,Re=Re.parentNode;re+=Mx(sr.fromDom(g))}return{x:H,y:re}},_m=(r,g={})=>{let B=0;const H={},re=sr.fromDom(r),be=Bc(re),Re=pr=>{g.referrerPolicy=pr},Ke=pr=>{g.contentCssCors=pr},ct=pr=>{Ps(tp(re),pr)},kt=pr=>{const Tr=tp(re);xi(Tr,"#"+pr).each(ja)},Wt=pr=>Ct(H,pr).getOrThunk(()=>({id:"mce-u"+B++,passed:[],failed:[],count:0})),Jt=pr=>new Promise((Tr,wr)=>{let Ur;const wo=mo._addCacheSuffix(pr),jo=Wt(wo);H[wo]=jo,jo.count++;const di=(bi,Bi)=>{ye(bi,K),jo.status=Bi,jo.passed=[],jo.failed=[],Ur&&(Ur.onload=null,Ur.onerror=null,Ur=null)},lo=()=>di(jo.passed,2),eo=()=>di(jo.failed,3);if(Tr&&jo.passed.push(Tr),wr&&jo.failed.push(wr),jo.status===1)return;if(jo.status===2){lo();return}if(jo.status===3){eo();return}jo.status=1;const xo=sr.fromTag("link",be.dom);ef(xo,{rel:"stylesheet",type:"text/css",id:jo.id}),g.contentCssCors&&Es(xo,"crossOrigin","anonymous"),g.referrerPolicy&&Es(xo,"referrerpolicy",g.referrerPolicy),Ur=xo.dom,Ur.onload=lo,Ur.onerror=eo,ct(xo),Es(xo,"href",wo)}),ln=(pr,Tr)=>{const wr=Wt(pr);H[pr]=wr,wr.count++;const Ur=sr.fromTag("style",be.dom);ef(Ur,{rel:"stylesheet",type:"text/css",id:wr.id}),Ur.dom.innerHTML=Tr,ct(Ur)},kn=pr=>Promise.allSettled(ve(pr,wr=>Jt(wr).then($(wr)))).then(wr=>{const Ur=Se(wr,wo=>wo.status==="fulfilled");return Ur.fail.length>0?Promise.reject(ve(Ur.fail,wo=>wo.reason)):ve(Ur.pass,wo=>wo.value)}),Vn=pr=>{const Tr=mo._addCacheSuffix(pr);Ct(H,Tr).each(wr=>{--wr.count===0&&(delete H[Tr],kt(wr.id))})};return{load:Jt,loadRawCss:ln,loadAll:kn,unload:Vn,unloadRawCss:pr=>{Ct(H,pr).each(Tr=>{--Tr.count===0&&(delete H[pr],kt(Tr.id))})},unloadAll:pr=>{ye(pr,Tr=>{Vn(Tr)})},_setReferrerPolicy:Re,_setContentCssCors:Ke}},wm=(()=>{const r=new WeakMap;return{forElement:(B,H)=>{const be=of(B).dom;return Y.from(r.get(be)).getOrThunk(()=>{const Re=_m(be,H);return r.set(be,Re),Re})}}})(),ub=r=>r.nodeName.toLowerCase()==="span",Oh=(r,g)=>E(r)&&(ds(g,r)||g.isInline(r.nodeName.toLowerCase())),Ex=(r,g,B)=>{const H=new kc(r,g).prev(!1),re=new kc(r,g).next(!1),be=M(H)||Oh(H,B),Re=M(re)||Oh(re,B);return be&&Re},Tf=r=>ub(r)&&r.getAttribute("data-mce-type")==="bookmark",Hv=(r,g,B)=>Nt(r)&&r.data.length>0&&Ex(r,g,B),Om=r=>ne(r)?r.childNodes.length>0:!1,Sm=r=>Ln(r)||pn(r),ap=(r,g,B,H)=>{var re;const be=H||g;if(ne(g)&&Tf(g))return g;const Re=g.childNodes;for(let Ke=Re.length-1;Ke>=0;Ke--)ap(r,Re[Ke],B,be);if(ne(g)){const Ke=g.childNodes;Ke.length===1&&Tf(Ke[0])&&((re=g.parentNode)===null||re===void 0||re.insertBefore(Ke[0],g))}return!Sm(g)&&!ds(B,g)&&!Om(g)&&!Hv(g,be,B)&&r.remove(g),g},Bp=mo.makeMap,P0=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ug=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zv=/[<>&\"\']/g,R0=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,C_={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},sp={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},A_={"<":"<",">":">","&":"&",""":'"',"'":"'"},fb=r=>{const g=sr.fromTag("div").dom;return g.innerHTML=r,g.textContent||g.innerText||r},Fl=(r,g)=>{const B={};if(r){const H=r.split(",");g=g||10;for(let re=0;rer.replace(g?P0:ug,B=>sp[B]||B),Xg=r=>(""+r).replace(Zv,g=>sp[g]||g),Gg=(r,g)=>r.replace(g?P0:ug,B=>B.length>1?"&#"+((B.charCodeAt(0)-55296)*1024+(B.charCodeAt(1)-56320)+65536)+";":sp[B]||"&#"+B.charCodeAt(0)+";"),lp=(r,g,B)=>{const H=B||Yf;return r.replace(g?P0:ug,re=>sp[re]||H[re]||re)},up={encodeRaw:km,encodeAllRaw:Xg,encodeNumeric:Gg,encodeNamed:lp,getEncodeFunc:(r,g)=>{const B=Fl(g)||Yf,H=(Re,Ke)=>Re.replace(Ke?P0:ug,ct=>sp[ct]!==void 0?sp[ct]:B[ct]!==void 0?B[ct]:ct.length>1?"&#"+((ct.charCodeAt(0)-55296)*1024+(ct.charCodeAt(1)-56320)+65536)+";":"&#"+ct.charCodeAt(0)+";"),re=(Re,Ke)=>lp(Re,Ke,B),be=Bp(r.replace(/\+/g,","));return be.named&&be.numeric?H:be.named?g?re:lp:be.numeric?Gg:km},decode:r=>r.replace(R0,(g,B)=>B?(B.charAt(0).toLowerCase()==="x"?B=parseInt(B.substr(1),16):B=parseInt(B,10),B>65535?(B-=65536,String.fromCharCode(55296+(B>>10),56320+(B&1023))):C_[B]||String.fromCharCode(B)):A_[g]||Yf[g]||fb(g))},Xf=(r,g)=>(r=mo.trim(r),r?r.split(g||" "):[]),L0=r=>new RegExp("^"+r.replace(/([?+*])/g,".$1")+"$"),Px=r=>_(r)&&r.source&&Object.prototype.toString.call(r)==="[object RegExp]",zp=r=>{const g=B=>A(B)?ve(B,g):Px(B)?new RegExp(B.source,B.flags):_(B)?ht(B,g):B;return g(r)},Kg=r=>{const g=/^(~)?(.+)$/;return $e(Xf(r,","),B=>{const H=g.exec(B);if(H){const be=H[1]==="~"?"span":"div",Re=H[2];return[{cloneName:be,name:Re}]}else return[]})},M_=r=>Object.freeze(["id","accesskey","class","dir","lang","style","tabindex","title","role",...r!=="html4"?["contenteditable","contextmenu","draggable","dropzone","hidden","spellcheck","translate","itemprop","itemscope","itemtype"]:[],...r!=="html5-strict"?["xml:lang"]:[]]),T1=r=>{let g,B;g="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",B="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",r!=="html4"&&(g+=" article aside details dialog figure main header footer hgroup section nav "+"a ins del canvas map",B+=" audio canvas command data datalist mark meter output picture progress time wbr video ruby bdi keygen svg"),r!=="html5-strict"&&(B=[B,"acronym applet basefont big font strike tt"].join(" "),g=[g,"center dir isindex noframes"].join(" "));const H=[g,B].join(" ");return{blockContent:g,phrasingContent:B,flowContent:H}},Tm=r=>{const{blockContent:g,phrasingContent:B,flowContent:H}=T1(r),re=be=>Object.freeze(be.split(" "));return Object.freeze({blockContent:re(g),phrasingContent:re(B),flowContent:re(H)})},zd={html4:xt(()=>Tm("html4")),html5:xt(()=>Tm("html5")),"html5-strict":xt(()=>Tm("html5-strict"))},fp=(r,g)=>{const{blockContent:B,phrasingContent:H,flowContent:re}=zd[r]();return g==="blocks"?Y.some(B):g==="phrasing"?Y.some(H):g==="flow"?Y.some(re):Y.none()},I0=r=>{const g=M_(r),{phrasingContent:B,flowContent:H}=T1(r),re={},be=(ct,kt,Wt)=>{re[ct]={attributes:We(kt,$({})),attributesOrder:kt,children:We(Wt,$({}))}},Re=(ct,kt="",Wt="")=>{const Jt=Xf(Wt),ln=Xf(ct);let kn=ln.length;const Vn=[...g,...Xf(kt)];for(;kn--;)be(ln[kn],Vn.slice(),Jt)},Ke=(ct,kt)=>{const Wt=Xf(ct),Jt=Xf(kt);let ln=Wt.length;for(;ln--;){const kn=re[Wt[ln]];for(let Vn=0,Rn=Jt.length;Vn{Re(Wt,"",B)}),ye(Xf("center dir isindex noframes"),Wt=>{Re(Wt,"",H)})),Re("html","manifest","head body"),Re("head","","base command link meta noscript script style title"),Re("title hr noscript br"),Re("base","href target"),Re("link","href rel media hreflang type sizes hreflang"),Re("meta","name http-equiv content charset"),Re("style","media type scoped"),Re("script","src async defer type charset"),Re("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",H),Re("dd div","",H),Re("address dt caption","",r==="html4"?B:H),Re("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",B),Re("blockquote","cite",H),Re("ol","reversed start type","li"),Re("ul","","li"),Re("li","value",H),Re("dl","","dt dd"),Re("a","href target rel media hreflang type",r==="html4"?B:H),Re("q","cite",B),Re("ins del","cite datetime",H),Re("img","src sizes srcset alt usemap ismap width height"),Re("iframe","src name width height",H),Re("embed","src type width height"),Re("object","data type typemustmatch name usemap form width height",[H,"param"].join(" ")),Re("param","name value"),Re("map","name",[H,"area"].join(" ")),Re("area","alt coords shape href target rel media hreflang type"),Re("table","border","caption colgroup thead tfoot tbody tr"+(r==="html4"?" col":"")),Re("colgroup","span","col"),Re("col","span"),Re("tbody thead tfoot","","tr"),Re("tr","","td th"),Re("td","colspan rowspan headers",H),Re("th","colspan rowspan headers scope abbr",H),Re("form","accept-charset action autocomplete enctype method name novalidate target",H),Re("fieldset","disabled form name",[H,"legend"].join(" ")),Re("label","form for",B),Re("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Re("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",r==="html4"?H:B),Re("select","disabled form multiple name required size","option optgroup"),Re("optgroup","disabled label","option"),Re("option","disabled label selected value"),Re("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Re("menu","type label",[H,"li"].join(" ")),Re("noscript","",H),r!=="html4"&&(Re("wbr"),Re("ruby","",[B,"rt rp"].join(" ")),Re("figcaption","",H),Re("mark rt rp bdi","",B),Re("summary","",[B,"h1 h2 h3 h4 h5 h6"].join(" ")),Re("canvas","width height",H),Re("data","value",B),Re("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[H,"track source"].join(" ")),Re("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[H,"track source"].join(" ")),Re("picture","","img source"),Re("source","src srcset type media sizes"),Re("track","kind src srclang label default"),Re("datalist","",[B,"option"].join(" ")),Re("article section nav aside main header footer","",H),Re("hgroup","","h1 h2 h3 h4 h5 h6"),Re("figure","",[H,"figcaption"].join(" ")),Re("time","datetime",B),Re("dialog","open",H),Re("command","type label icon disabled checked radiogroup command"),Re("output","for form name",B),Re("progress","value max",B),Re("meter","value min max low high optimum",B),Re("details","open",[H,"summary"].join(" ")),Re("keygen","autofocus challenge disabled form keytype name"),be("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),r!=="html5-strict"&&(Ke("script","language xml:space"),Ke("style","xml:space"),Ke("object","declare classid code codebase codetype archive standby align border hspace vspace"),Ke("embed","align name hspace vspace"),Ke("param","valuetype type"),Ke("a","charset name rev shape coords"),Ke("br","clear"),Ke("applet","codebase archive code object alt name width height align hspace vspace"),Ke("img","name longdesc align border hspace vspace"),Ke("iframe","longdesc frameborder marginwidth marginheight scrolling align"),Ke("font basefont","size color face"),Ke("input","usemap align"),Ke("select"),Ke("textarea"),Ke("h1 h2 h3 h4 h5 h6 div p legend caption","align"),Ke("ul","type compact"),Ke("li","type"),Ke("ol dl menu dir","compact"),Ke("pre","width xml:space"),Ke("hr","align noshade size width"),Ke("isindex","prompt"),Ke("table","summary width frame rules cellspacing cellpadding align bgcolor"),Ke("col","width align char charoff valign"),Ke("colgroup","width align char charoff valign"),Ke("thead","align char charoff valign"),Ke("tr","align char charoff valign bgcolor"),Ke("th","axis align char charoff valign nowrap bgcolor width height"),Ke("form","accept"),Ke("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),Ke("tfoot","align char charoff valign"),Ke("tbody","align char charoff valign"),Ke("area","nohref"),Ke("body","background bgcolor text link vlink alink")),r!=="html4"&&(Ke("input button select textarea","autofocus"),Ke("input textarea","placeholder"),Ke("a","download"),Ke("link script img","crossorigin"),Ke("img","loading"),Ke("iframe","sandbox seamless allow allowfullscreen loading referrerpolicy")),r!=="html4"&&ye([re.video,re.audio],ct=>{delete ct.children.audio,delete ct.children.video}),ye(Xf("a form meter progress dfn"),ct=>{re[ct]&&delete re[ct].children[ct]}),delete re.caption.children.table,delete re.script,re},E_=r=>r==="-"?"remove":"add",Jg=r=>{const g=/^(@?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)$/;return Y.from(g.exec(r)).map(B=>({preset:B[1]==="@",name:B[2]}))},P_=r=>{const g=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return $e(Xf(r,","),B=>{const H=g.exec(B);if(H){const re=H[1],be=re?E_(re):"replace",Re=H[2],Ke=$e(Xf(H[3],"|"),ct=>Jg(ct).toArray());return[{operation:be,name:Re,validChildren:Ke}]}else return[]})},C1=(r,g)=>{const B=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,H=/[*?+]/,{attributes:re,attributesOrder:be}=g;return ye(Xf(r,"|"),Re=>{const Ke=B.exec(Re);if(Ke){const ct={},kt=Ke[1],Wt=Ke[2].replace(/[\\:]:/g,":"),Jt=Ke[3],ln=Ke[4];if(kt==="!"&&(g.attributesRequired=g.attributesRequired||[],g.attributesRequired.push(Wt),ct.required=!0),kt==="-"){delete re[Wt],be.splice(mo.inArray(be,Wt),1);return}if(Jt&&(Jt==="="?(g.attributesDefault=g.attributesDefault||[],g.attributesDefault.push({name:Wt,value:ln}),ct.defaultValue=ln):Jt==="~"?(g.attributesForced=g.attributesForced||[],g.attributesForced.push({name:Wt,value:ln}),ct.forcedValue=ln):Jt==="<"&&(ct.validValues=mo.makeMap(ln,"?"))),H.test(Wt)){const kn=ct;g.attributePatterns=g.attributePatterns||[],kn.pattern=L0(Wt),g.attributePatterns.push(kn)}else re[Wt]||be.push(Wt),re[Wt]=ct}})},zO=(r,g)=>{Ge(r.attributes,(B,H)=>{g.attributes[H]=B}),g.attributesOrder.push(...r.attributesOrder)},xu=(r,g)=>{const B=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return $e(Xf(g,","),H=>{const re=B.exec(H);if(re){const be=re[1],Re=re[2],Ke=re[3],ct=re[4],kt=re[5],Wt={attributes:{},attributesOrder:[]};if(r.each(Jt=>zO(Jt,Wt)),be==="#"?Wt.paddEmpty=!0:be==="-"&&(Wt.removeEmpty=!0),ct==="!"&&(Wt.removeEmptyAttrs=!0),kt&&C1(kt,Wt),Ke&&(Wt.outputName=Re),Re==="@")if(r.isNone())r=Y.some(Wt);else return[];return[Ke?{name:Re,element:Wt,aliasName:Ke}:{name:Re,element:Wt}]}else return[]})},Cm={},D0=mo.makeMap,Sa=mo.each,Ri=mo.extend,Fp=mo.explode,qv=(r,g={})=>{const B=D0(r," ",D0(r.toUpperCase()," "));return Ri(B,g)},hb=r=>qv("td th li dt dd figcaption caption details summary",r.getTextBlockElements()),A1=(r,g)=>{if(r){const B={};return v(r)&&(r={"*":r}),Sa(r,(H,re)=>{B[re]=B[re.toUpperCase()]=g==="map"?D0(H,/[, ]/):Fp(H,/[, ]/)}),B}else return},Np=(r={})=>{var g;const B={},H={};let re=[];const be={},Re={},Ke=(zi,ss,Rc)=>{const cu=r[zi];if(cu)return D0(cu,/[, ]/,D0(cu.toUpperCase(),/[, ]/));{let Nu=Cm[zi];return Nu||(Nu=qv(ss,Rc),Cm[zi]=Nu),Nu}},ct=(g=r.schema)!==null&&g!==void 0?g:"html5",kt=I0(ct);r.verify_html===!1&&(r.valid_elements="*[*]");const Wt=A1(r.valid_styles),Jt=A1(r.invalid_styles,"map"),ln=A1(r.valid_classes,"map"),kn=Ke("whitespace_elements","pre script noscript style textarea video audio iframe object code"),Vn=Ke("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),Rn=Ke("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),qn=Ke("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),pr="td th iframe video audio object script code",Tr=Ke("non_empty_elements",pr+" pre svg textarea summary",Rn),wr=Ke("move_caret_before_on_enter_elements",pr+" table",Rn),Ur="h1 h2 h3 h4 h5 h6",wo=Ke("text_block_elements",Ur+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),jo=Ke("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",wo),di=Ke("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),lo=Ke("transparent_elements","a ins del canvas map"),eo=Ke("wrap_block_elements","pre "+Ur);Sa("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),zi=>{Re[zi]=new RegExp("]*>","gi")});const xo=zi=>{const ss=Y.from(B["@"]),Rc=/[*?+]/;ye(xu(ss,zi??""),({name:cu,element:Nu,aliasName:nd})=>{if(nd&&(B[nd]=Nu),Rc.test(cu)){const Ou=Nu;Ou.pattern=L0(cu),re.push(Ou)}else B[cu]=Nu})},bi=zi=>{re=[],ye(nt(B),ss=>{delete B[ss]}),xo(zi)},Bi=(zi,ss)=>{var Rc,cu;delete Cm.text_block_elements,delete Cm.block_elements;const Nu=ss.extends?!om(ss.extends):!1,nd=ss.extends;if(H[zi]=nd?H[nd]:{},be[zi]=nd??zi,Tr[zi.toUpperCase()]={},Tr[zi]={},Nu||(jo[zi.toUpperCase()]={},jo[zi]={}),nd&&!B[zi]&&B[nd]){const Ou=zp(B[nd]);delete Ou.removeEmptyAttrs,delete Ou.removeEmpty,B[zi]=Ou}else B[zi]={attributesOrder:[],attributes:{}};if(A(ss.attributes)){const Ou=fh=>{Su.attributesOrder.push(fh),Su.attributes[fh]={}},Su=(Rc=B[zi])!==null&&Rc!==void 0?Rc:{};delete Su.attributesDefault,delete Su.attributesForced,delete Su.attributePatterns,delete Su.attributesRequired,Su.attributesOrder=[],Su.attributes={},ye(ss.attributes,fh=>{const Dg=M_(ct);Jg(fh).each(({preset:Xm,name:x0})=>{Xm?x0==="global"&&ye(Dg,Ou):Ou(x0)})}),B[zi]=Su}if(R(ss.padEmpty)){const Ou=(cu=B[zi])!==null&&cu!==void 0?cu:{};Ou.paddEmpty=ss.padEmpty,B[zi]=Ou}if(A(ss.children)){const Ou={},Su=Dg=>{Ou[Dg]={}},fh=Dg=>{fp(ct,Dg).each(Xm=>{ye(Xm,Su)})};ye(ss.children,Dg=>{Jg(Dg).each(({preset:Xm,name:x0})=>{Xm?fh(x0):Su(x0)})}),H[zi]=Ou}nd&&Ge(H,(Ou,Su)=>{Ou[nd]&&(H[Su]=Ou=Ri({},H[Su]),Ou[zi]=Ou[nd])})},$a=zi=>{ye(Kg(zi??""),({name:ss,cloneName:Rc})=>{Bi(ss,{extends:Rc})})},Ia=zi=>{_(zi)?Ge(zi,(ss,Rc)=>Bi(Rc,ss)):v(zi)&&$a(zi)},Us=zi=>{ye(P_(zi??""),({operation:ss,name:Rc,validChildren:cu})=>{const Nu=ss==="replace"?{"#comment":{}}:H[Rc],nd=Su=>{ss==="remove"?delete Nu[Su]:Nu[Su]={}},Ou=Su=>{fp(ct,Su).each(fh=>{ye(fh,nd)})};ye(cu,({preset:Su,name:fh})=>{Su?Ou(fh):nd(fh)}),H[Rc]=Nu})},sl=zi=>{const ss=B[zi];if(ss)return ss;let Rc=re.length;for(;Rc--;){const cu=re[Rc];if(cu.pattern.test(zi))return cu}},nu=()=>{r.valid_elements?(bi(r.valid_elements),Sa(kt,(zi,ss)=>{H[ss]=zi.children})):(Sa(kt,(zi,ss)=>{B[ss]={attributes:zi.attributes,attributesOrder:zi.attributesOrder},H[ss]=zi.children}),Sa(Xf("strong/b em/i"),zi=>{const ss=Xf(zi,"/");B[ss[1]].outputName=ss[0]}),Sa(di,(zi,ss)=>{B[ss]&&(r.padd_empty_block_inline_children&&(B[ss].paddInEmptyBlock=!0),B[ss].removeEmpty=!0)}),Sa(Xf("ol ul blockquote a table tbody"),zi=>{B[zi]&&(B[zi].removeEmpty=!0)}),Sa(Xf("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),zi=>{B[zi]&&(B[zi].paddEmpty=!0)}),Sa(Xf("span"),zi=>{B[zi].removeEmptyAttrs=!0})),delete B.svg,Ia(r.custom_elements),Us(r.valid_children),xo(r.extended_valid_elements),Us("+ol[ul|ol],+ul[ul|ol]"),Sa({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(zi,ss)=>{B[ss]&&(B[ss].parentsRequired=Xf(zi))}),r.invalid_elements&&Sa(Fp(r.invalid_elements),zi=>{B[zi]&&delete B[zi]}),sl("span")||xo("span[!data-mce-type|*]")},jd=$(Wt),vl=$(Jt),Wo=$(ln),Ei=$(qn),ws=$(jo),ii=$(wo),Qi=$(di),Qa=$(Object.seal(Rn)),ci=$(Vn),Va=$(Tr),Xa=$(wr),Df=$(kn),el=$(lo),Yu=$(eo),Rg=$(Object.seal(Re)),m1=(zi,ss)=>{const Rc=H[zi.toLowerCase()];return!!(Rc&&Rc[ss.toLowerCase()])},Dh=(zi,ss)=>{const Rc=sl(zi);if(Rc)if(ss){if(Rc.attributes[ss])return!0;const cu=Rc.attributePatterns;if(cu){let Nu=cu.length;for(;Nu--;)if(cu[Nu].pattern.test(ss))return!0}}else return!0;return!1},om=zi=>_t(ws(),zi),Lg=zi=>!xr(zi,"#")&&Dh(zi)&&!om(zi),xp=zi=>_t(Yu(),zi)||Lg(zi),Ig=$(be);return nu(),{type:ct,children:H,elements:B,getValidStyles:jd,getValidClasses:Wo,getBlockElements:ws,getInvalidStyles:vl,getVoidElements:Qa,getTextBlockElements:ii,getTextInlineElements:Qi,getBoolAttrs:Ei,getElementRule:sl,getSelfClosingElements:ci,getNonEmptyElements:Va,getMoveCaretBeforeOnEnterElements:Xa,getWhitespaceElements:Df,getTransparentElements:el,getSpecialElements:Rg,isValidChild:m1,isValid:Dh,isBlock:om,isInline:Lg,isWrapper:xp,getCustomElements:Ig,addValidElements:xo,setValidElements:bi,addCustomElements:Ia,addValidChildren:Us}},pl=r=>({value:FO(r)}),FO=r=>In(r,"#").toUpperCase(),Rx=r=>{const g=r.toString(16);return(g.length===1?"0"+g:g).toUpperCase()},B0=r=>{const g=Rx(r.red)+Rx(r.green)+Rx(r.blue);return pl(g)},fo=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,e0=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,_S=(r,g,B,H)=>({red:r,green:g,blue:B,alpha:H}),fg=(r,g,B,H)=>{const re=parseInt(r,10),be=parseInt(g,10),Re=parseInt(B,10),Ke=parseFloat(H);return _S(re,be,Re,Ke)},R_=r=>fo.test(r)?"rgb":e0.test(r)?"rgba":"other",Fd=r=>{const g=fo.exec(r);if(g!==null)return Y.some(fg(g[1],g[2],g[3],"1"));const B=e0.exec(r);return B!==null?Y.some(fg(B[1],B[2],B[3],B[4])):Y.none()},L_=r=>`rgba(${r.red},${r.green},${r.blue},${r.alpha})`,Am=r=>Fd(r).map(B0).map(g=>"#"+g.value).getOr(r),I_=(r={},g)=>{const B=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,H=/\s*([^:]+):\s*([^;]+);?/g,re=/\s+$/,be={};let Re,Ke;const ct=Iu;g&&(Re=g.getValidStyles(),Ke=g.getInvalidStyles());const kt=(`\\" \\' \\; \\: ; : `+ct).split(" ");for(let Jt=0;Jt{const ln={};let kn=!1;const Vn=r.url_converter,Rn=r.url_converter_scope||Wt,qn=(lo,eo,xo)=>{const bi=ln[lo+"-top"+eo];if(!bi)return;const Bi=ln[lo+"-right"+eo];if(!Bi)return;const $a=ln[lo+"-bottom"+eo];if(!$a)return;const Ia=ln[lo+"-left"+eo];if(!Ia)return;const Us=[bi,Bi,$a,Ia];let sl=Us.length-1;for(;sl--&&Us[sl]===Us[sl+1];);sl>-1&&xo||(ln[lo+eo]=sl===-1?Us[0]:Us.join(" "),delete ln[lo+"-top"+eo],delete ln[lo+"-right"+eo],delete ln[lo+"-bottom"+eo],delete ln[lo+"-left"+eo])},pr=lo=>{const eo=ln[lo];if(!eo)return;const xo=eo.indexOf(",")>-1?[eo]:eo.split(" ");let bi=xo.length;for(;bi--;)if(xo[bi]!==xo[0])return!1;return ln[lo]=xo[0],!0},Tr=(lo,eo,xo,bi)=>{pr(eo)&&pr(xo)&&pr(bi)&&(ln[lo]=ln[eo]+" "+ln[xo]+" "+ln[bi],delete ln[eo],delete ln[xo],delete ln[bi])},wr=lo=>(kn=!0,be[lo]),Ur=(lo,eo)=>(kn&&(lo=lo.replace(/\uFEFF[0-9]/g,xo=>be[xo])),eo||(lo=lo.replace(/\\([\'\";:])/g,"$1")),lo),wo=lo=>String.fromCharCode(parseInt(lo.slice(1),16)),jo=lo=>lo.replace(/\\[0-9a-f]+/gi,wo),di=(lo,eo,xo,bi,Bi,$a)=>{if(Bi=Bi||$a,Bi)return Bi=Ur(Bi),"'"+Bi.replace(/\'/g,"\\'")+"'";if(eo=Ur(eo||xo||bi||""),!r.allow_script_urls){const Ia=eo.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(Ia)||!r.allow_svg_data_urls&&/^data:image\/svg/i.test(Ia))return""}return Vn&&(eo=Vn.call(Rn,eo,"style")),"url('"+eo.replace(/\'/g,"\\'")+"')"};if(Jt){Jt=Jt.replace(/[\u0000-\u001F]/g,""),Jt=Jt.replace(/\\[\"\';:\uFEFF]/g,wr).replace(/\"[^\"]+\"|\'[^\']+\'/g,eo=>eo.replace(/[;:]/g,wr));let lo;for(;lo=H.exec(Jt);){H.lastIndex=lo.index+lo[0].length;let eo=lo[1].replace(re,"").toLowerCase(),xo=lo[2].replace(re,"");if(eo&&xo){if(eo=jo(eo),xo=jo(xo),eo.indexOf(ct)!==-1||eo.indexOf('"')!==-1||!r.allow_script_urls&&(eo==="behavior"||/expression\s*\(|\/\*|\*\//.test(xo)))continue;eo==="font-weight"&&xo==="700"?xo="bold":(eo==="color"||eo==="background-color")&&(xo=xo.toLowerCase()),R_(xo)==="rgb"&&Fd(xo).each(bi=>{xo=Am(L_(bi)).toLowerCase()}),xo=xo.replace(B,di),ln[eo]=kn?Ur(xo,!0):xo}}qn("border","",!0),qn("border","-width"),qn("border","-color"),qn("border","-style"),qn("padding",""),qn("margin",""),Tr("border","border-width","border-style","border-color"),ln.border==="medium none"&&delete ln.border,ln["border-image"]==="none"&&delete ln["border-image"]}return ln},serialize:(Jt,ln)=>{let kn="";const Vn=(qn,pr)=>{const Tr=pr[qn];if(Tr)for(let wr=0,Ur=Tr.length;wr0?" ":"")+wo+": "+jo+";")}},Rn=(qn,pr)=>{if(!Ke||!pr)return!0;let Tr=Ke["*"];return Tr&&Tr[qn]?!1:(Tr=Ke[pr],!(Tr&&Tr[qn]))};return ln&&Re?(Vn("*",Re),Vn(ln,Re)):Ge(Jt,(qn,pr)=>{qn&&Rn(pr,ln)&&(kn+=(kn.length>0?" ":"")+pr+": "+qn+";")}),kn}};return Wt},Wv={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Ll=r=>r instanceof Event||C(r.initEvent),Sh=r=>r.isDefaultPrevented===q||r.isDefaultPrevented===oe,NO=r=>T(r.preventDefault)||Ll(r),$p=(r,g)=>{const B=g??{};for(const H in r)_t(Wv,H)||(B[H]=r[H]);return E(r.composedPath)&&(B.composedPath=()=>r.composedPath()),E(r.getModifierState)&&(B.getModifierState=H=>r.getModifierState(H)),E(r.getTargetRanges)&&(B.getTargetRanges=()=>r.getTargetRanges()),B},Lx=(r,g,B,H)=>{var re;const be=$p(g,H);return be.type=r,T(be.target)&&(be.target=(re=be.srcElement)!==null&&re!==void 0?re:B),NO(g)&&(be.preventDefault=()=>{be.defaultPrevented=!0,be.isDefaultPrevented=q,C(g.preventDefault)&&g.preventDefault()},be.stopPropagation=()=>{be.cancelBubble=!0,be.isPropagationStopped=q,C(g.stopPropagation)&&g.stopPropagation()},be.stopImmediatePropagation=()=>{be.isImmediatePropagationStopped=q,be.stopPropagation()},Sh(be)||(be.isDefaultPrevented=be.defaultPrevented===!0?q:oe,be.isPropagationStopped=be.cancelBubble===!0?q:oe,be.isImmediatePropagationStopped=oe)),be},Yv="mce-data-",Xv=/^(?:mouse|contextmenu)|click/,pb=(r,g,B,H)=>{r.addEventListener(g,B,H||!1)},Cf=(r,g,B,H)=>{r.removeEventListener(g,B,H||!1)},$O=r=>E(r)&&Xv.test(r.type),M1=(r,g)=>{const B=Lx(r.type,r,document,g);if($O(r)&&M(r.pageX)&&!M(r.clientX)){const H=B.target.ownerDocument||document,re=H.documentElement,be=H.body,Re=B;Re.pageX=r.clientX+(re&&re.scrollLeft||be&&be.scrollLeft||0)-(re&&re.clientLeft||be&&be.clientLeft||0),Re.pageY=r.clientY+(re&&re.scrollTop||be&&be.scrollTop||0)-(re&&re.clientTop||be&&be.clientTop||0)}return B},E1=(r,g,B)=>{const H=r.document,re={type:"ready"};if(B.domLoaded){g(re);return}const be=()=>H.readyState==="complete"||H.readyState==="interactive"&&H.body,Re=()=>{Cf(r,"DOMContentLoaded",Re),Cf(r,"load",Re),B.domLoaded||(B.domLoaded=!0,g(re)),r=null};be()?Re():pb(r,"DOMContentLoaded",Re),B.domLoaded||pb(r,"load",Re)};class md{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Yv+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(g,B,H,re){const be=this;let Re;const Ke=window,ct=ln=>{be.executeHandlers(M1(ln||Ke.event),kt)};if(!g||Nt(g)||xn(g))return H;let kt;g[be.expando]?kt=g[be.expando]:(kt=be.count++,g[be.expando]=kt,be.events[kt]={}),re=re||g;const Wt=B.split(" ");let Jt=Wt.length;for(;Jt--;){let ln=Wt[Jt],kn=ct,Vn=!1,Rn=!1;if(ln==="DOMContentLoaded"&&(ln="ready"),be.domLoaded&&ln==="ready"&&g.readyState==="complete"){H.call(re,M1({type:ln}));continue}!be.hasFocusIn&&(ln==="focusin"||ln==="focusout")&&(Vn=!0,Rn=ln==="focusin"?"focus":"blur",kn=qn=>{const pr=M1(qn||Ke.event);pr.type=pr.type==="focus"?"focusin":"focusout",be.executeHandlers(pr,kt)}),Re=be.events[kt][ln],Re?ln==="ready"&&be.domLoaded?H(M1({type:ln})):Re.push({func:H,scope:re}):(be.events[kt][ln]=Re=[{func:H,scope:re}],Re.fakeName=Rn,Re.capture=Vn,Re.nativeHandler=kn,ln==="ready"?E1(g,kn,be):pb(g,Rn||ln,kn,Vn))}return g=Re=null,H}unbind(g,B,H){if(!g||Nt(g)||xn(g))return this;const re=g[this.expando];if(re){let be=this.events[re];if(B){const Re=B.split(" ");let Ke=Re.length;for(;Ke--;){const ct=Re[Ke],kt=be[ct];if(kt){if(H){let Wt=kt.length;for(;Wt--;)if(kt[Wt].func===H){const Jt=kt.nativeHandler,ln=kt.fakeName,kn=kt.capture,Vn=kt.slice(0,Wt).concat(kt.slice(Wt+1));Vn.nativeHandler=Jt,Vn.fakeName=ln,Vn.capture=kn,be[ct]=Vn}}(!H||kt.length===0)&&(delete be[ct],Cf(g,kt.fakeName||ct,kt.nativeHandler,kt.capture))}}}else Ge(be,(Re,Ke)=>{Cf(g,Re.fakeName||Ke,Re.nativeHandler,Re.capture)}),be={};for(const Re in be)if(_t(be,Re))return this;delete this.events[re];try{delete g[this.expando]}catch{g[this.expando]=null}}return this}fire(g,B,H){return this.dispatch(g,B,H)}dispatch(g,B,H){if(!g||Nt(g)||xn(g))return this;const re=M1({type:B,target:g},H);do{const be=g[this.expando];be&&this.executeHandlers(re,be),g=g.parentNode||g.ownerDocument||g.defaultView||g.parentWindow}while(g&&!re.isPropagationStopped());return this}clean(g){if(!g||Nt(g)||xn(g))return this;if(g[this.expando]&&this.unbind(g),g.getElementsByTagName||(g=g.document),g&&g.getElementsByTagName){this.unbind(g);const B=g.getElementsByTagName("*");let H=B.length;for(;H--;)g=B[H],g[this.expando]&&this.unbind(g)}return this}destroy(){this.events={}}cancel(g){return g&&(g.preventDefault(),g.stopImmediatePropagation()),!1}executeHandlers(g,B){const H=this.events[B],re=H&&H[g.type];if(re)for(let be=0,Re=re.length;be{T(B)||B===""?gc(r,g):Es(r,g,B)},kh=r=>r.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),Bo=(r,g)=>{let B=0;if(r)for(let H=r.nodeType,re=r.previousSibling;re;re=re.previousSibling){const be=re.nodeType;g&&Nt(re)&&(be===H||!re.data.length)||(B++,H=be)}return B},Ix=(r,g)=>{const B=uc(g,"style"),H=r.serialize(r.parse(B),la(g));Gf(g,B_,H)},lf=(r,g)=>L(r)?_t(Gv,g)?r+"":r+"px":r,mb=(r,g,B)=>{const H=kh(g);T(B)||B===""?Yc(r,H):Ml(r,H,lf(B,H))},gd=(r,g,B)=>{const H=g.keep_values,re={set:(Re,Ke,ct)=>{const kt=sr.fromDom(Re);C(g.url_converter)&&E(Ke)&&(Ke=g.url_converter.call(g.url_converter_scope||B(),String(Ke),ct,Re));const Wt="data-mce-"+ct;Gf(kt,Wt,Ke),Gf(kt,ct,Ke)},get:(Re,Ke)=>{const ct=sr.fromDom(Re);return uc(ct,"data-mce-"+Ke)||uc(ct,Ke)}},be={style:{set:(Re,Ke)=>{const ct=sr.fromDom(Re);H&&Gf(ct,B_,Ke),gc(ct,"style"),v(Ke)&&Hi(ct,r.parse(Ke))},get:Re=>{const Ke=sr.fromDom(Re),ct=uc(Ke,B_)||uc(Ke,"style");return r.serialize(r.parse(ct),la(Ke))}}};return H&&(be.href=be.src=re),be},Nl=(r,g={})=>{const B={},H=window,re={};let be=0;const Re=!0,Ke=!0,ct=wm.forElement(sr.fromDom(r),{contentCssCors:g.contentCssCors,referrerPolicy:g.referrerPolicy}),kt=[],Wt=g.schema?g.schema:Np({}),Jt=I_({url_converter:g.url_converter,url_converter_scope:g.url_converter_scope},g.schema),ln=g.ownEvents?new md:md.Event,kn=Wt.getBlockElements(),Vn=Yr=>v(Yr)?_t(kn,Yr):ne(Yr)&&(_t(kn,Yr.nodeName)||xm(Wt,Yr)),Rn=Yr=>Yr&&r&&v(Yr)?r.getElementById(Yr):Yr,qn=Yr=>{const Gr=Rn(Yr);return E(Gr)?sr.fromDom(Gr):null},pr=(Yr,Gr,Xo="")=>{let Vo;const Gi=qn(Yr);if(E(Gi)&&mc(Gi)){const ts=q2[Gr];ts&&ts.get?Vo=ts.get(Gi.dom,Gr):Vo=uc(Gi,Gr)}return E(Vo)?Vo:Xo},Tr=Yr=>{const Gr=Rn(Yr);return T(Gr)?[]:Gr.attributes},wr=(Yr,Gr,Xo)=>{Ei(Yr,Vo=>{if(ne(Vo)){const Gi=sr.fromDom(Vo),ts=Xo===""?null:Xo,Lc=uc(Gi,Gr),_0=q2[Gr];_0&&_0.set?_0.set(Gi.dom,ts,Gr):Gf(Gi,Gr,ts),Lc!==ts&&g.onSetAttrib&&g.onSetAttrib({attrElm:Gi.dom,attrName:Gr,attrValue:ts})}})},Ur=(Yr,Gr)=>Yr.cloneNode(Gr),wo=()=>g.root_element||r.body,jo=Yr=>{const Gr=fa(Yr);return{x:Gr.x,y:Gr.y,w:Gr.width,h:Gr.height}},di=(Yr,Gr)=>oc(r.body,Rn(Yr),Gr),lo=(Yr,Gr,Xo)=>{Ei(Yr,Vo=>{const Gi=sr.fromDom(Vo);mb(Gi,Gr,Xo),g.update_styles&&Ix(Jt,Gi)})},eo=(Yr,Gr)=>{Ei(Yr,Xo=>{const Vo=sr.fromDom(Xo);Ge(Gr,(Gi,ts)=>{mb(Vo,ts,Gi)}),g.update_styles&&Ix(Jt,Vo)})},xo=(Yr,Gr,Xo)=>{const Vo=Rn(Yr);if(!(T(Vo)||!ge(Vo)&&!xe(Vo)))return Xo?pi(sr.fromDom(Vo),kh(Gr)):(Gr=Gr.replace(/-(\D)/g,(Gi,ts)=>ts.toUpperCase()),Gr==="float"&&(Gr="cssFloat"),Vo.style?Vo.style[Gr]:void 0)},bi=Yr=>{const Gr=Rn(Yr);if(!Gr)return{w:0,h:0};let Xo=xo(Gr,"width"),Vo=xo(Gr,"height");return(!Xo||Xo.indexOf("px")===-1)&&(Xo="0"),(!Vo||Vo.indexOf("px")===-1)&&(Vo="0"),{w:parseInt(Xo,10)||Gr.offsetWidth||Gr.clientWidth,h:parseInt(Vo,10)||Gr.offsetHeight||Gr.clientHeight}},Bi=Yr=>{const Gr=Rn(Yr),Xo=di(Gr),Vo=bi(Gr);return{x:Xo.x,y:Xo.y,w:Vo.w,h:Vo.h}},$a=(Yr,Gr)=>{if(!Yr)return!1;const Xo=A(Yr)?Yr:[Yr];return de(Xo,Vo=>wf(sr.fromDom(Vo),Gr))},Ia=(Yr,Gr,Xo,Vo)=>{const Gi=[];let ts=Rn(Yr);Vo=Vo===void 0;const Lc=Xo||(wo().nodeName!=="BODY"?wo().parentNode:null);if(v(Gr))if(Gr==="*")Gr=ne;else{const _0=Gr;Gr=wA=>$a(wA,_0)}for(;ts&&!(ts===Lc||T(ts.nodeType)||pn(ts)||Ln(ts));){if(!Gr||Gr(ts))if(Vo)Gi.push(ts);else return[ts];ts=ts.parentNode}return Vo?Gi:null},Us=(Yr,Gr,Xo)=>{const Vo=Ia(Yr,Gr,Xo,!1);return Vo&&Vo.length>0?Vo[0]:null},sl=(Yr,Gr,Xo)=>{let Vo=Gr;if(Yr){v(Gr)&&(Vo=Gi=>$a(Gi,Gr));for(let Gi=Yr[Xo];Gi;Gi=Gi[Xo])if(C(Vo)&&Vo(Gi))return Gi}return null},nu=(Yr,Gr)=>sl(Yr,Gr,"nextSibling"),jd=(Yr,Gr)=>sl(Yr,Gr,"previousSibling"),vl=Yr=>C(Yr.querySelectorAll),Wo=(Yr,Gr)=>{var Xo,Vo;const Gi=(Vo=(Xo=Rn(Gr))!==null&&Xo!==void 0?Xo:g.root_element)!==null&&Vo!==void 0?Vo:r;return vl(Gi)?Ee(Gi.querySelectorAll(Yr)):[]},Ei=function(Yr,Gr,Xo){const Vo=Xo??this;if(A(Yr)){const Gi=[];return D_(Yr,(ts,Lc)=>{const _0=Rn(ts);_0&&Gi.push(Gr.call(Vo,_0,Lc))}),Gi}else{const Gi=Rn(Yr);return Gi?Gr.call(Vo,Gi):!1}},ws=(Yr,Gr)=>{Ei(Yr,Xo=>{Ge(Gr,(Vo,Gi)=>{wr(Xo,Gi,Vo)})})},ii=(Yr,Gr)=>{Ei(Yr,Xo=>{const Vo=sr.fromDom(Xo);Id(Vo,Gr)})},Qi=(Yr,Gr,Xo,Vo,Gi)=>Ei(Yr,ts=>{const Lc=v(Gr)?r.createElement(Gr):Gr;return E(Xo)&&ws(Lc,Xo),Vo&&(!v(Vo)&&Vo.nodeType?Lc.appendChild(Vo):v(Vo)&&ii(Lc,Vo)),Gi?Lc:ts.appendChild(Lc)}),Qa=(Yr,Gr,Xo)=>Qi(r.createElement(Yr),Yr,Gr,Xo,!0),ci=up.decode,Va=up.encodeAllRaw,Xa=(Yr,Gr,Xo="")=>{let Vo="<"+Yr;for(const Gi in Gr)nn(Gr,Gi)&&(Vo+=" "+Gi+'="'+Va(Gr[Gi])+'"');return _r(Xo)&&_t(Wt.getVoidElements(),Yr)?Vo+" />":Vo+">"+Xo+""},Df=Yr=>{const Gr=r.createElement("div"),Xo=r.createDocumentFragment();Xo.appendChild(Gr),Yr&&(Gr.innerHTML=Yr);let Vo;for(;Vo=Gr.firstChild;)Xo.appendChild(Vo);return Xo.removeChild(Gr),Xo},el=(Yr,Gr)=>Ei(Yr,Xo=>{const Vo=sr.fromDom(Xo);return Gr&&ye(Oc(Vo),Gi=>{ks(Gi)&&Gi.dom.length===0?ja(Gi):Fc(Vo,Gi)}),ja(Vo),Vo.dom}),Yu=Yr=>Ei(Yr,Gr=>{const Xo=Gr.attributes;for(let Vo=Xo.length-1;Vo>=0;Vo--)Gr.removeAttributeNode(Xo.item(Vo))}),Rg=Yr=>Jt.parse(Yr),m1=(Yr,Gr)=>Jt.serialize(Yr,Gr),Dh=Yr=>{if(Cv!==Nl.DOM&&r===document){if(B[Yr])return;B[Yr]=!0}let Gr=r.getElementById("mceDefaultStyles");if(!Gr){Gr=r.createElement("style"),Gr.id="mceDefaultStyles",Gr.type="text/css";const Xo=r.head;Xo.firstChild?Xo.insertBefore(Gr,Xo.firstChild):Xo.appendChild(Gr)}Gr.styleSheet?Gr.styleSheet.cssText+=Yr:Gr.appendChild(r.createTextNode(Yr))},om=Yr=>{Yr||(Yr=""),ye(Yr.split(","),Gr=>{re[Gr]=!0,ct.load(Gr).catch(k)})},Lg=(Yr,Gr,Xo)=>{Ei(Yr,Vo=>{if(ne(Vo)){const Gi=sr.fromDom(Vo),ts=Gr.split(" ");ye(ts,Lc=>{E(Xo)?(Xo?_f:nf)(Gi,Lc):gh(Gi,Lc)})}})},xp=(Yr,Gr)=>{Lg(Yr,Gr,!0)},Ig=(Yr,Gr)=>{Lg(Yr,Gr,!1)},zi=(Yr,Gr)=>{const Xo=qn(Yr),Vo=Gr.split(" ");return E(Xo)&&Oe(Vo,Gi=>rs(Xo,Gi))},ss=Yr=>{Ei(Yr,Gr=>Yc(sr.fromDom(Gr),"display"))},Rc=Yr=>{Ei(Yr,Gr=>Ml(sr.fromDom(Gr),"display","none"))},cu=Yr=>{const Gr=qn(Yr);return E(Gr)&&Aa(Ru(Gr,"display"),"none")},Nu=Yr=>(Yr||"mce_")+be++,nd=Yr=>{const Gr=qn(Yr);return E(Gr)?ne(Gr.dom)?Gr.dom.outerHTML:Ka(Gr):""},Ou=(Yr,Gr)=>{Ei(Yr,Xo=>{ne(Xo)&&(Xo.outerHTML=Gr)})},Su=(Yr,Gr)=>{const Xo=Rn(Gr);return Ei(Yr,Vo=>{const Gi=Xo==null?void 0:Xo.parentNode,ts=Xo==null?void 0:Xo.nextSibling;return Gi&&(ts?Gi.insertBefore(Vo,ts):Gi.appendChild(Vo)),Vo})},fh=(Yr,Gr,Xo)=>Ei(Gr,Vo=>{var Gi;const ts=A(Gr)?Yr.cloneNode(!0):Yr;return Xo&&D_(VO(Vo.childNodes),Lc=>{ts.appendChild(Lc)}),(Gi=Vo.parentNode)===null||Gi===void 0||Gi.replaceChild(ts,Vo),Vo}),Dg=(Yr,Gr)=>{if(Yr.nodeName!==Gr.toUpperCase()){const Xo=Qa(Gr);return D_(Tr(Yr),Vo=>{wr(Xo,Vo.nodeName,pr(Yr,Vo.nodeName))}),fh(Xo,Yr,!0),Xo}else return Yr},Xm=(Yr,Gr)=>{let Xo=Yr;for(;Xo;){let Vo=Gr;for(;Vo&&Xo!==Vo;)Vo=Vo.parentNode;if(Xo===Vo)break;Xo=Xo.parentNode}return!Xo&&Yr.ownerDocument?Yr.ownerDocument.documentElement:Xo},x0=(Yr,Gr,Xo)=>S(Gr)?ba(Wt,Yr,{...Xo,isContent:Gi=>{const ts=Gi.nodeName.toLowerCase();return!!Gr[ts]}}):ba(Wt,Yr,Xo),Bg=()=>r.createRange(),fx=(Yr,Gr,Xo)=>{let Vo=Bg(),Gi,ts;if(Yr&&Gr&&Yr.parentNode&&Gr.parentNode){const Lc=Yr.parentNode;return Vo.setStart(Lc,Bo(Yr)),Vo.setEnd(Gr.parentNode,Bo(Gr)),Gi=Vo.extractContents(),Vo=Bg(),Vo.setStart(Gr.parentNode,Bo(Gr)+1),Vo.setEnd(Lc,Bo(Yr)+1),ts=Vo.extractContents(),Lc.insertBefore(ap(Cv,Gi,Wt),Yr),Xo?Lc.insertBefore(Xo,Yr):Lc.insertBefore(Gr,Yr),Lc.insertBefore(ap(Cv,ts,Wt),Yr),el(Yr),Xo||Gr}else return},Z2=(Yr,Gr,Xo,Vo)=>{if(A(Yr)){let Gi=Yr.length;const ts=[];for(;Gi--;)ts[Gi]=Z2(Yr[Gi],Gr,Xo,Vo);return ts}else return g.collect&&(Yr===r||Yr===H)&&kt.push([Yr,Gr,Xo,Vo]),ln.bind(Yr,Gr,Xo,Vo||Cv)},hO=(Yr,Gr,Xo)=>{if(A(Yr)){let Vo=Yr.length;const Gi=[];for(;Vo--;)Gi[Vo]=hO(Yr[Vo],Gr,Xo);return Gi}else{if(kt.length>0&&(Yr===r||Yr===H)){let Vo=kt.length;for(;Vo--;){const[Gi,ts,Lc]=kt[Vo];Yr===Gi&&(!Gr||Gr===ts)&&(!Xo||Xo===Lc)&&ln.unbind(Gi,ts,Lc)}}return ln.unbind(Yr,Gr,Xo)}},_A=(Yr,Gr,Xo)=>ln.dispatch(Yr,Gr,Xo),dx=(Yr,Gr,Xo)=>ln.dispatch(Yr,Gr,Xo),Vk=Yr=>{if(Yr&&ge(Yr)){const Gr=Yr.getAttribute("data-mce-contenteditable");return Gr&&Gr!=="inherit"?Gr:Yr.contentEditable!=="inherit"?Yr.contentEditable:null}else return null},Cv={doc:r,settings:g,win:H,files:re,stdMode:Re,boxModel:Ke,styleSheetLoader:ct,boundEvents:kt,styles:Jt,schema:Wt,events:ln,isBlock:Vn,root:null,clone:Ur,getRoot:wo,getViewPort:jo,getRect:Bi,getSize:bi,getParent:Us,getParents:Ia,get:Rn,getNext:nu,getPrev:jd,select:Wo,is:$a,add:Qi,create:Qa,createHTML:Xa,createFragment:Df,remove:el,setStyle:lo,getStyle:xo,setStyles:eo,removeAllAttribs:Yu,setAttrib:wr,setAttribs:ws,getAttrib:pr,getPos:di,parseStyle:Rg,serializeStyle:m1,addStyle:Dh,loadCSS:om,addClass:xp,removeClass:Ig,hasClass:zi,toggleClass:Lg,show:ss,hide:Rc,isHidden:cu,uniqueId:Nu,setHTML:ii,getOuterHTML:nd,setOuterHTML:Ou,decode:ci,encode:Va,insertAfter:Su,replace:fh,rename:Dg,findCommonAncestor:Xm,run:Ei,getAttribs:Tr,isEmpty:x0,createRng:Bg,nodeIndex:Bo,split:fx,bind:Z2,unbind:hO,fire:dx,dispatch:_A,getContentEditable:Vk,getContentEditableParent:Yr=>{const Gr=wo();let Xo=null;for(let Vo=Yr;Vo&&Vo!==Gr&&(Xo=Vk(Vo),Xo===null);Vo=Vo.parentNode);return Xo},isEditable:Yr=>{if(E(Yr)){const Gr=ne(Yr)?Yr:Yr.parentElement;return E(Gr)&&ge(Gr)&&js(sr.fromDom(Gr))}else return!1},destroy:()=>{if(kt.length>0){let Yr=kt.length;for(;Yr--;){const[Gr,Xo,Vo]=kt[Yr];ln.unbind(Gr,Xo,Vo)}}Ge(re,(Yr,Gr)=>{ct.unload(Gr),delete re[Gr]})},isChildOf:(Yr,Gr)=>Yr===Gr||Gr.contains(Yr),dumpRng:Yr=>"startContainer: "+Yr.startContainer.nodeName+", startOffset: "+Yr.startOffset+", endContainer: "+Yr.endContainer.nodeName+", endOffset: "+Yr.endOffset},q2=gd(Jt,g,$(Cv));return Cv};Nl.DOM=Nl(document),Nl.nodeIndex=Bo;const dg=Nl.DOM,Dx=0,UO=1,t0=2,gb=3;class Mm{constructor(g={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=g}_setReferrerPolicy(g){this.settings.referrerPolicy=g}loadScript(g){return new Promise((B,H)=>{const re=dg;let be;const Re=()=>{re.remove(kt),be&&(be.onerror=be.onload=be=null)},Ke=()=>{Re(),B()},ct=()=>{Re(),H("Failed to load script: "+g)},kt=re.uniqueId();be=document.createElement("script"),be.id=kt,be.type="text/javascript",be.src=mo._addCacheSuffix(g),this.settings.referrerPolicy&&re.setAttrib(be,"referrerpolicy",this.settings.referrerPolicy),be.onload=Ke,be.onerror=ct,(document.getElementsByTagName("head")[0]||document.body).appendChild(be)})}isDone(g){return this.states[g]===t0}markDone(g){this.states[g]=t0}add(g){const B=this;return B.queue.push(g),B.states[g]===void 0&&(B.states[g]=Dx),new Promise((re,be)=>{B.scriptLoadedCallbacks[g]||(B.scriptLoadedCallbacks[g]=[]),B.scriptLoadedCallbacks[g].push({resolve:re,reject:be})})}load(g){return this.add(g)}remove(g){delete this.states[g],delete this.scriptLoadedCallbacks[g]}loadQueue(){const g=this.queue;return this.queue=[],this.loadScripts(g)}loadScripts(g){const B=this,H=(ct,kt)=>{Ct(B.scriptLoadedCallbacks,kt).each(Wt=>{ye(Wt,Jt=>Jt[ct](kt))}),delete B.scriptLoadedCallbacks[kt]},re=ct=>{const kt=Te(ct,Wt=>Wt.status==="rejected");return kt.length>0?Promise.reject($e(kt,({reason:Wt})=>A(Wt)?Wt:[Wt])):Promise.resolve()},be=ct=>Promise.allSettled(ve(ct,kt=>B.states[kt]===t0?(H("resolve",kt),Promise.resolve()):B.states[kt]===gb?(H("reject",kt),Promise.reject(kt)):(B.states[kt]=UO,B.loadScript(kt).then(()=>{B.states[kt]=t0,H("resolve",kt);const Wt=B.queue;return Wt.length>0?(B.queue=[],be(Wt).then(re)):Promise.resolve()},()=>(B.states[kt]=gb,H("reject",kt),Promise.reject(kt)))))),Re=ct=>(B.loading=!0,be(ct).then(kt=>{B.loading=!1;const Wt=B.queueLoadedCallbacks.shift();return Y.from(Wt).each(K),re(kt)})),Ke=bn(g);return B.loading?new Promise((ct,kt)=>{B.queueLoadedCallbacks.push(()=>{Re(Ke).then(ct,kt)})}):Re(Ke)}}Mm.ScriptLoader=new Mm;const jO=(r,g)=>{const B=r.indexOf(g);return B!==-1&&r.indexOf(g,B+1)>B},z_=r=>_(r)&&_t(r,"raw"),Sl=r=>A(r)&&r.length>1,Kv={},fc=mr("en"),Jv=()=>Ct(Kv,fc.get()),Du={getData:()=>ht(Kv,r=>({...r})),setCode:r=>{r&&fc.set(r)},getCode:()=>fc.get(),add:(r,g)=>{let B=Kv[r];B||(Kv[r]=B={});const H=ve(nt(g),re=>re.toLowerCase());Ge(g,(re,be)=>{const Re=be.toLowerCase();Re!==be&&jO(H,Re)?(_t(g,Re)||(B[Re]=re),B[be]=re):B[Re]=re})},translate:r=>{const g=Jv().getOr({}),B=Re=>C(Re)?Object.prototype.toString.call(Re):H(Re)?"":""+Re,H=Re=>Re===""||Re===null||Re===void 0,re=Re=>{const Ke=B(Re);return _t(g,Ke)?B(g[Ke]):Ct(g,Ke.toLowerCase()).map(B).getOr(Ke)},be=Re=>Re.replace(/{context:\w+}$/,"");if(H(r))return"";if(z_(r))return B(r.raw);if(Sl(r)){const Re=r.slice(1),Ke=re(r[0]).replace(/\{([0-9]+)\}/g,(ct,kt)=>_t(Re,kt)?B(Re[kt]):ct);return be(Ke)}return be(re(r))},isRtl:()=>Jv().bind(r=>Ct(r,"_dir")).exists(r=>r==="rtl"),hasCode:r=>_t(Kv,r)},su=()=>{const r=[],g={},B={},H=[],re=(Rn,qn)=>{const pr=Te(H,Tr=>Tr.name===Rn&&Tr.state===qn);ye(pr,Tr=>Tr.resolve())},be=Rn=>_t(g,Rn),Re=Rn=>_t(B,Rn),Ke=Rn=>{if(B[Rn])return B[Rn].instance},ct=(Rn,qn)=>{const pr=Du.getCode(),Tr=","+(qn||"")+",";!pr||qn&&Tr.indexOf(","+pr+",")===-1||Mm.ScriptLoader.add(g[Rn]+"/langs/"+pr+".js")},kt=(Rn,qn)=>{su.languageLoad!==!1&&(be(Rn)?ct(Rn,qn):Vn(Rn,"loaded").then(()=>ct(Rn,qn)))},Wt=(Rn,qn)=>(r.push(qn),B[Rn]={instance:qn},re(Rn,"added"),qn),Jt=Rn=>{delete g[Rn],delete B[Rn]},ln=(Rn,qn)=>v(qn)?v(Rn)?{prefix:"",resource:qn,suffix:""}:{prefix:Rn.prefix,resource:qn,suffix:Rn.suffix}:qn,kn=(Rn,qn)=>{if(g[Rn])return Promise.resolve();let pr=v(qn)?qn:qn.prefix+qn.resource+qn.suffix;pr.indexOf("/")!==0&&pr.indexOf("://")===-1&&(pr=su.baseURL+"/"+pr),g[Rn]=pr.substring(0,pr.lastIndexOf("/"));const Tr=()=>(re(Rn,"loaded"),Promise.resolve());return B[Rn]?Tr():Mm.ScriptLoader.add(pr).then(Tr)},Vn=(Rn,qn="added")=>qn==="added"&&Re(Rn)||qn==="loaded"&&be(Rn)?Promise.resolve():new Promise(pr=>{H.push({name:Rn,state:qn,resolve:pr})});return{items:r,urls:g,lookup:B,get:Ke,requireLangPack:kt,add:Wt,remove:Jt,createUrl:ln,load:kn,waitFor:Vn}};su.languageLoad=!0,su.baseURL="",su.PluginManager=su(),su.ThemeManager=su(),su.ModelManager=su();const hg=(r,g)=>{let B=null;return{cancel:()=>{x(B)||(clearTimeout(B),B=null)},throttle:(...be)=>{x(B)&&(B=setTimeout(()=>{B=null,r.apply(null,be)},g))}}},n0=(r,g)=>{let B=null;const H=()=>{x(B)||(clearTimeout(B),B=null)};return{cancel:H,throttle:(...be)=>{H(),B=setTimeout(()=>{B=null,r.apply(null,be)},g)}}},N_=(r,g,B)=>wl(r,g,B).isSome(),ey=$("mce-annotation"),pg=$("data-mce-annotation"),ty=$("data-mce-annotation-uid"),R1=$("data-mce-annotation-active"),z0=$("data-mce-annotation-classes"),mg=$("data-mce-annotation-attrs"),L1=r=>g=>Fa(g,r),I1=(r,g)=>{const B=r.selection.getRng(),H=sr.fromDom(B.startContainer),re=sr.fromDom(r.getBody()),be=g.fold(()=>"."+ey(),ct=>`[${pg()}="${ct}"]`),Re=Ts(H,B.startOffset).getOr(H);return mu(Re,be,L1(re)).bind(ct=>sd(ct,`${ty()}`).bind(kt=>sd(ct,`${pg()}`).map(Wt=>{const Jt=vb(r,kt);return{uid:kt,name:Wt,elements:Jt}})))},zx=r=>mc(r)&&rs(r,ey()),F0=(r,g)=>Vf(r,"data-mce-bogus")||N_(r,'[data-mce-bogus="all"]',L1(g)),vb=(r,g)=>{const B=sr.fromDom(r.getBody()),H=Zl(B,`[${ty()}="${g}"]`);return Te(H,re=>!F0(re,B))},Fx=(r,g)=>{const B=sr.fromDom(r.getBody()),H=Zl(B,`[${pg()}="${g}"]`),re={};return ye(H,be=>{if(!F0(be,B)){const Re=uc(be,ty()),Ke=Ct(re,Re).getOr([]);re[Re]=Ke.concat([be])}}),re},$_=(r,g)=>{const B=mr({}),H=()=>({listeners:[],previous:Ys()}),re=(Jt,ln)=>{be(Jt,kn=>(ln(kn),kn))},be=(Jt,ln)=>{const kn=B.get(),Vn=Ct(kn,Jt).getOrThunk(H),Rn=ln(Vn);kn[Jt]=Rn,B.set(kn)},Re=(Jt,ln,kn)=>{re(Jt,Vn=>{ye(Vn.listeners,Rn=>Rn(!0,Jt,{uid:ln,nodes:ve(kn,qn=>qn.dom)}))})},Ke=Jt=>{re(Jt,ln=>{ye(ln.listeners,kn=>kn(!1,Jt))})},ct=(Jt,ln)=>{ye(vb(r,Jt),kn=>{ln?Es(kn,R1(),"true"):gc(kn,R1())})},kt=n0(()=>{const Jt=Ue(g.getNames());ye(Jt,ln=>{be(ln,kn=>{const Vn=kn.previous.get();return I1(r,Y.some(ln)).fold(()=>{Vn.each(Rn=>{Ke(ln),kn.previous.clear(),ct(Rn,!1)})},({uid:Rn,name:qn,elements:pr})=>{Aa(Vn,Rn)||(Vn.each(Tr=>ct(Tr,!1)),Re(qn,Rn,pr),kn.previous.set(Rn),ct(Rn,!0))}),{previous:kn.previous,listeners:kn.listeners}})})},30);return r.on("remove",()=>{kt.cancel()}),r.on("NodeChange",()=>{kt.throttle()}),{addListener:(Jt,ln)=>{be(Jt,kn=>({previous:kn.previous,listeners:kn.listeners.concat([ln])}))}}},Nx=(r,g)=>{const B=pg(),H=be=>Y.from(be.attr(B)).bind(g.lookup),re=be=>{var Re,Ke;be.attr(ty(),null),be.attr(pg(),null),be.attr(R1(),null);const ct=Y.from(be.attr(mg())).map(ln=>ln.split(",")).getOr([]),kt=Y.from(be.attr(z0())).map(ln=>ln.split(",")).getOr([]);ye(ct,ln=>be.attr(ln,null));const Wt=(Ke=(Re=be.attr("class"))===null||Re===void 0?void 0:Re.split(" "))!==null&&Ke!==void 0?Ke:[],Jt=Le(Wt,[ey()].concat(kt));be.attr("class",Jt.length>0?Jt.join(" "):null),be.attr(z0(),null),be.attr(mg(),null)};r.serializer.addTempAttr(R1()),r.serializer.addAttributeFilter(B,be=>{for(const Re of be)H(Re).each(Ke=>{Ke.persistent===!1&&(Re.name==="span"?Re.unwrap():re(Re))})})},V_=()=>{const r={};return{register:(re,be)=>{r[re]={name:re,settings:be}},lookup:re=>Ct(r,re).map(be=>be.settings),getNames:()=>nt(r)}};let yb=0;const D1=r=>{const B=new Date().getTime(),H=Math.floor(Math.random()*1e9);return yb++,r+"_"+H+yb+String(B)},vd=(r,g)=>{ye(g,B=>{_f(r,B)})},U_=(r,g)=>{ye(g,B=>{nf(r,B)})},bb=(r,g)=>sr.fromDom(r.dom.cloneNode(g)),Th=r=>bb(r,!1),Kf=r=>bb(r,!0),ny=(r,g)=>{const B=sr.fromTag(g),H=Mp(r);return ef(B,H),B},B1=(r,g)=>{const B=ny(r,g);si(r,B);const H=Oc(r);return gu(B,H),ja(r),B},cf=(r,g,B=oe)=>{const H=new kc(r,g),re=be=>{let Re;do Re=H[be]();while(Re&&!Nt(Re)&&!B(Re));return Y.from(Re).filter(Nt)};return{current:()=>Y.from(H.current()).filter(Nt),next:()=>re("next"),prev:()=>re("prev"),prev2:()=>re("prev2")}},Em=(r,g)=>{const B=g||(Re=>r.isBlock(Re)||On(Re)||rr(Re)),H=(Re,Ke,ct,kt)=>{if(Nt(Re)){const Wt=kt(Re,Ke,Re.data);if(Wt!==-1)return Y.some({container:Re,offset:Wt})}return ct().bind(Wt=>H(Wt.container,Wt.offset,ct,kt))};return{backwards:(Re,Ke,ct,kt)=>{const Wt=cf(Re,kt??r.getRoot(),B);return H(Re,Ke,()=>Wt.prev().map(Jt=>({container:Jt,offset:Jt.length})),ct).getOrNull()},forwards:(Re,Ke,ct,kt)=>{const Wt=cf(Re,kt??r.getRoot(),B);return H(Re,Ke,()=>Wt.next().map(Jt=>({container:Jt,offset:0})),ct).getOrNull()}}},Nd=((r,g)=>{const B=be=>{if(!r(be))throw new Error("Can only get "+g+" value of a "+g+" node");return H(be).getOr("")},H=be=>r(be)?Y.from(be.dom.nodeValue):Y.none();return{get:B,getOption:H,set:(be,Re)=>{if(!r(be))throw new Error("Can only set raw "+g+" value of a "+g+" node");be.dom.nodeValue=Re}}})(ks,"text"),ry=r=>Nd.get(r),HO=r=>Nd.getOption(r),Vx=(r,g)=>Nd.set(r,g),z1=["td","th"],j_=["thead","tbody","tfoot"],oy=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],xb=["li","dd","dt"],ZO=["ul","ol","dl"],Af=["pre","script","textarea","style"],gg=r=>{let g;return B=>(g=g||We(r,q),_t(g,la(B)))},dp=r=>la(r)==="table",N0=r=>mc(r)&&la(r)==="br",Q_=gg(oy),Vp=gg(ZO),nh=gg(xb),F1=gg(j_),N1=gg(z1),iy=gg(Af),qO=r=>{const g=[];let B=r.dom;for(;B;)g.push(sr.fromDom(B)),B=B.lastChild;return g},wS=r=>{const g=Zl(r,"br"),B=Te(qO(r).slice(-1),N0);g.length===B.length&&ye(B,ja)},$1=()=>{const r=sr.fromTag("br");return Es(r,"data-mce-bogus","1"),r},rh=r=>{vu(r),Ps(r,$1())},H_=(r,g)=>{zl(r).each(B=>{Eu(B).each(H=>{g.isBlock(la(r))&&N0(B)&&g.isBlock(la(H))&&ja(B)})})},nc=Iu,$0=El,yd=Ol,OS=r=>r.insertContent(nc,{preserve_zwsp:!0}),V1=ne,r0=Nt,vg=r=>(r0(r)&&(r=r.parentNode),V1(r)&&r.hasAttribute("data-mce-caret")),oh=r=>r0(r)&&$0(r.data),Ch=r=>vg(r)||oh(r),Z_=r=>r.firstChild!==r.lastChild||!On(r.firstChild),q_=(r,g)=>{var B;const re=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(nc),be=r.parentNode;if(g){const Re=r.previousSibling;if(r0(Re)){if(Ch(Re))return Re;if(jp(Re))return Re.splitText(Re.data.length-1)}be==null||be.insertBefore(re,r)}else{const Re=r.nextSibling;if(r0(Re)){if(Ch(Re))return Re;if(U0(Re))return Re.splitText(1),Re}r.nextSibling?be==null||be.insertBefore(re,r.nextSibling):be==null||be.appendChild(re)}return re},V0=r=>{const g=r.container();return Nt(g)?g.data.charAt(r.offset())===nc||r.isAtStart()&&oh(g.previousSibling):!1},Up=r=>{const g=r.container();return Nt(g)?g.data.charAt(r.offset()-1)===nc||r.isAtEnd()&&oh(g.nextSibling):!1},W_=(r,g,B)=>{var H;const be=((H=g.ownerDocument)!==null&&H!==void 0?H:document).createElement(r);be.setAttribute("data-mce-caret",B?"before":"after"),be.setAttribute("data-mce-bogus","all"),be.appendChild($1().dom);const Re=g.parentNode;return B?Re==null||Re.insertBefore(be,g):g.nextSibling?Re==null||Re.insertBefore(be,g.nextSibling):Re==null||Re.appendChild(be),be},U0=r=>r0(r)&&r.data[0]===nc,jp=r=>r0(r)&&r.data[r.data.length-1]===nc,o0=r=>{var g;const B=r.getElementsByTagName("br"),H=B[B.length-1];dt(H)&&((g=H.parentNode)===null||g===void 0||g.removeChild(H))},Ra=r=>r&&r.hasAttribute("data-mce-caret")?(o0(r),r.removeAttribute("data-mce-caret"),r.removeAttribute("data-mce-bogus"),r.removeAttribute("style"),r.removeAttribute("data-mce-style"),r.removeAttribute("_moz_abspos"),r):null,bd=r=>vg(r.startContainer),Zh=Math.round,i0=r=>r?{left:Zh(r.left),top:Zh(r.top),bottom:Zh(r.bottom),right:Zh(r.right),width:Zh(r.width),height:Zh(r.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Il=(r,g)=>(r=i0(r),g||(r.left=r.left+r.width),r.right=r.left,r.width=0,r),WO=(r,g)=>r.left===g.left&&r.top===g.top&&r.bottom===g.bottom&&r.right===g.right,U1=(r,g,B)=>r>=0&&r<=Math.min(g.height,B.height)/2,j1=(r,g)=>{const B=Math.min(g.height/2,r.height/2);return r.bottom-Bg.bottom?!1:U1(g.top-r.bottom,r,g)},Ux=(r,g)=>r.top>g.bottom?!0:r.bottomg>=r.left&&g<=r.right&&B>=r.top&&B<=r.bottom,Dl=r=>Ie(r,(g,B)=>g.fold(()=>Y.some(B),H=>{const re=Math.min(B.left,H.left),be=Math.min(B.top,H.top),Re=Math.max(B.right,H.right),Ke=Math.max(B.bottom,H.bottom);return Y.some({top:be,right:Re,bottom:Ke,left:re,width:Re-re,height:Ke-be})}),Y.none()),kl=(r,g,B)=>{const H=Math.max(Math.min(g,r.left+r.width),r.left),re=Math.max(Math.min(B,r.top+r.height),r.top);return Math.sqrt((g-H)*(g-H)+(B-re)*(B-re))},SS=(r,g)=>Math.max(0,Math.min(r.bottom,g.bottom)-Math.max(r.top,g.top)),Y_=(r,g,B)=>Math.min(Math.max(r,g),B),Pm=r=>{const g=r.startContainer,B=r.startOffset;return g===r.endContainer&&g.hasChildNodes()&&r.endOffset===B+1?g.childNodes[B]:null},fi=(r,g)=>{if(ne(r)&&r.hasChildNodes()){const B=r.childNodes,H=Y_(g,0,B.length-1);return B[H]}else return r},kS=(r,g)=>{if(!(g<0&&ne(r)&&r.hasChildNodes()))return fi(r,g)},YO=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),jx=r=>v(r)&&r.charCodeAt(0)>=768&&YO.test(r),X_=(...r)=>g=>{for(let B=0;Bg=>{for(let B=0;BHx(r)?!1:CS(r)?!Rm(r.parentNode):Qx(r)||j0(r)||Ah(r)||Cc(r),G_=r=>ne(r)&&r.getAttribute("unselectable")==="true",Cc=r=>!G_(r)&&sy(r),XO=(r,g)=>{for(let B=r.parentNode;B&&B!==g;B=B.parentNode){if(Cc(B))return!1;if(_b(B))return!0}return!0},yc=r=>Cc(r)?!Ie(Ee(r.getElementsByTagName("*")),(g,B)=>g||_b(B),!1):!1,GO=r=>Qx(r)||yc(r),Zx=(r,g)=>ih(r)&&XO(r,g),wb=ne,K_=ih,qx=Je("display","block table"),J_=Je("float","left right"),Lm=TS(wb,K_,X(J_)),qh=X(Je("white-space","pre pre-line pre-wrap")),Q1=Nt,Kc=On,H1=Nl.nodeIndex,Qp=kS,ly=r=>r?r.createRange():Nl.DOM.createRng(),cy=r=>v(r)&&/[\r\n\t ]/.test(r),Ob=r=>!!r.setStart&&!!r.setEnd,Z1=r=>{const g=r.startContainer,B=r.startOffset;if(cy(r.toString())&&qh(g.parentNode)&&Nt(g)){const H=g.data;if(cy(H[B-1])||cy(H[B+1]))return!0}return!1},bc=r=>{const g=r.ownerDocument,B=ly(g),H=g.createTextNode(Ea),re=r.parentNode;re.insertBefore(H,r),B.setStart(H,0),B.setEnd(H,1);const be=i0(B.getBoundingClientRect());return re.removeChild(H),be},KO=r=>{const g=r.startContainer,B=r.endContainer,H=r.startOffset,re=r.endOffset;if(g===B&&Nt(B)&&H===0&&re===1){const be=r.cloneRange();return be.setEndAfter(B),Q0(be)}else return null},ew=r=>r.left===0&&r.right===0&&r.top===0&&r.bottom===0,Q0=r=>{var g;let B;const H=r.getClientRects();return H.length>0?B=i0(H[0]):B=i0(r.getBoundingClientRect()),!Ob(r)&&Kc(r)&&ew(B)?bc(r):ew(B)&&Ob(r)&&(g=KO(r))!==null&&g!==void 0?g:B},Nc=(r,g)=>{const B=Il(r,g);return B.width=1,B.right=B.left+1,B},yg=r=>{const g=[],B=Re=>{Re.height!==0&&(g.length>0&&WO(Re,g[g.length-1])||g.push(Re))},H=(Re,Ke)=>{const ct=ly(Re.ownerDocument);if(Ke0&&(ct.setStart(Re,Ke-1),ct.setEnd(Re,Ke),Z1(ct)||B(Nc(Q0(ct),!1))),Ke{const H=()=>(Q1(r),g===0),re=()=>Q1(r)?g>=r.data.length:g>=r.childNodes.length,be=()=>{const Wt=ly(r.ownerDocument);return Wt.setStart(r,g),Wt.setEnd(r,g),Wt},Re=()=>(B||(B=yg(qr(r,g))),B),Ke=()=>Re().length>0,ct=Wt=>Wt&&r===Wt.container()&&g===Wt.offset(),kt=Wt=>Qp(r,Wt?g-1:g);return{container:$(r),offset:$(g),toRange:be,getClientRects:Re,isVisible:Ke,isAtStart:H,isAtEnd:re,isEqual:ct,getNode:kt}};qr.fromRangeStart=r=>qr(r.startContainer,r.startOffset),qr.fromRangeEnd=r=>qr(r.endContainer,r.endOffset),qr.after=r=>qr(r.parentNode,H1(r)+1),qr.before=r=>qr(r.parentNode,H1(r)),qr.isAbove=(r,g)=>us(Xe(g.getClientRects()),tt(r.getClientRects()),j1).getOr(!1),qr.isBelow=(r,g)=>us(tt(g.getClientRects()),Xe(r.getClientRects()),Ux).getOr(!1),qr.isAtStart=r=>r?r.isAtStart():!1,qr.isAtEnd=r=>r?r.isAtEnd():!1,qr.isTextPosition=r=>r?Nt(r.container()):!1,qr.isElementPosition=r=>!qr.isTextPosition(r);const N=(r,g)=>{Nt(g)&&g.data.length===0&&r.remove(g)},G=(r,g,B)=>{g.insertNode(B),N(r,B.previousSibling),N(r,B.nextSibling)},fe=(r,g,B)=>{const H=Y.from(B.firstChild),re=Y.from(B.lastChild);g.insertNode(B),H.each(be=>N(r,be.previousSibling)),re.each(be=>N(r,be.nextSibling))},Ae=(r,g,B)=>{Ln(B)?fe(r,g,B):G(r,g,B)},Qe=Nt,et=dt,ut=Nl.nodeIndex,Tt=r=>{const g=r.parentNode;return et(g)?Tt(g):g},Bt=r=>r?it(r.childNodes,(g,B)=>(et(B)&&B.nodeName!=="BR"?g=g.concat(Bt(B)):g.push(B),g),[]):[],rn=(r,g)=>{let B=r;for(;(B=B.previousSibling)&&Qe(B);)g+=B.data.length;return g},an=r=>g=>r===g,_n=r=>{let g,B;g=Bt(Tt(r)),B=at(g,an(r),r),g=g.slice(0,B+1);const H=it(g,(re,be,Re)=>(Qe(be)&&Qe(g[Re-1])&&re++,re),0);return g=zt(g,Fe([r.nodeName])),B=at(g,an(r),r),B-H},Dn=r=>(Qe(r)?"text()":r.nodeName.toLowerCase())+"["+_n(r)+"]",Cn=(r,g,B)=>{const H=[];for(let re=g.parentNode;re&&re!==r&&!(B&&B(re));re=re.parentNode)H.push(re);return H},Jn=(r,g)=>{let B=[],H=g.container(),re=g.offset(),be;if(Qe(H))be=rn(H,re);else{const Ke=H.childNodes;re>=Ke.length?(be="after",re=Ke.length-1):be="before",H=Ke[re]}B.push(Dn(H));let Re=Cn(r,H);return Re=zt(Re,X(dt)),B=B.concat(yt(Re,Ke=>Dn(Ke))),B.reverse().join("/")+","+be},lr=(r,g,B)=>{let H=Bt(r);return H=zt(H,(re,be)=>!Qe(re)||!Qe(H[be-1])),H=zt(H,Fe([g])),H[B]},Ar=(r,g)=>{let B=r,H=0;for(;Qe(B);){const re=B.data.length;if(g>=H&&g<=H+re){r=B,g=g-H;break}if(!Qe(B.nextSibling)){r=B,g=re;break}H+=re,B=B.nextSibling}return Qe(r)&&g>r.data.length&&(g=r.data.length),qr(r,g)},Or=(r,g)=>{if(!g)return null;const B=g.split(","),H=B[0].split("/"),re=B.length>1?B[1]:"before",be=it(H,(Re,Ke)=>{const ct=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(Ke);return ct?(ct[1]==="text()"&&(ct[1]="#text"),lr(Re,ct[1],parseInt(ct[2],10))):null},r);if(!be)return null;if(!Qe(be)&&be.parentNode){let Re;return re==="after"?Re=ut(be)+1:Re=ut(be),qr(be.parentNode,Re)}return Ar(be,parseInt(re,10))},jr=rr,Jr=(r,g,B)=>{let H=r(g.data.slice(0,B)).length;for(let re=g.previousSibling;re&&Nt(re);re=re.previousSibling)H+=r(re.data).length;return H},uo=(r,g,B,H,re)=>{const be=re?H.startContainer:H.endContainer;let Re=re?H.startOffset:H.endOffset;const Ke=[],ct=r.getRoot();if(Nt(be))Ke.push(B?Jr(g,be,Re):Re);else{let kt=0;const Wt=be.childNodes;Re>=Wt.length&&Wt.length&&(kt=1,Re=Math.max(0,Wt.length-1)),Ke.push(r.nodeIndex(Wt[Re],B)+kt)}for(let kt=be;kt&&kt!==ct;kt=kt.parentNode)Ke.push(r.nodeIndex(kt,B));return Ke},ro=(r,g,B,H)=>{const re=g.dom,be=uo(re,r,B,H,!0),Re=g.isForward(),Ke=bd(H)?{isFakeCaret:!0}:{};if(g.isCollapsed())return{start:be,forward:Re,...Ke};{const ct=uo(re,r,B,H,!1);return{start:be,end:ct,forward:Re,...Ke}}},Po=(r,g,B)=>{let H=0;return mo.each(r.select(g),re=>{if(re.getAttribute("data-mce-bogus")!=="all"){if(re===B)return!1;H++;return}}),H},gi=(r,g)=>{let B=g?r.startContainer:r.endContainer,H=g?r.startOffset:r.endOffset;if(ne(B)&&B.nodeName==="TR"){const re=B.childNodes;B=re[Math.min(g?H:H-1,re.length-1)],B&&(H=g?0:B.childNodes.length,g?r.setStart(B,H):r.setEnd(B,H))}},ni=r=>(gi(r,!0),gi(r,!1),r),Ti=(r,g)=>{if(ne(r)&&(r=fi(r,g),jr(r)))return r;if(Ch(r)){Nt(r)&&vg(r)&&(r=r.parentNode);let B=r.previousSibling;if(jr(B)||(B=r.nextSibling,jr(B)))return B}},vi=r=>Ti(r.startContainer,r.startOffset)||Ti(r.endContainer,r.endOffset),na=(r,g,B)=>{const H=B.getNode(),re=B.getRng();if(H.nodeName==="IMG"||jr(H)){const Re=H.nodeName;return{name:Re,index:Po(B.dom,Re,H)}}const be=vi(re);if(be){const Re=be.tagName;return{name:Re,index:Po(B.dom,Re,be)}}return ro(r,B,g,re)},ea=r=>{const g=r.getRng();return{start:Jn(r.dom.getRoot(),qr.fromRangeStart(g)),end:Jn(r.dom.getRoot(),qr.fromRangeEnd(g)),forward:r.isForward()}},La=r=>({rng:r.getRng(),forward:r.isForward()}),ca=(r,g,B)=>{const H={"data-mce-type":"bookmark",id:g,style:"overflow:hidden;line-height:0px"};return B?r.create("span",H,""):r.create("span",H)},Zi=(r,g)=>{const B=r.dom;let H=r.getRng();const re=B.uniqueId(),be=r.isCollapsed(),Re=r.getNode(),Ke=Re.nodeName,ct=r.isForward();if(Ke==="IMG")return{name:Ke,index:Po(B,Ke,Re)};const kt=ni(H.cloneRange());if(!be){kt.collapse(!1);const Jt=ca(B,re+"_end",g);Ae(B,kt,Jt)}H=ni(H),H.collapse(!0);const Wt=ca(B,re+"_start",g);return Ae(B,H,Wt),r.moveToBookmark({id:re,keep:!0,forward:ct}),{id:re,forward:ct}},Bs=(r,g,B=!1)=>g===2?na(yd,B,r):g===3?ea(r):g?La(r):Zi(r,!1),Ja=U(na,Q,!0),Vl=r=>{const g=be=>be(r),B=$(r),H=()=>re,re={tag:!0,inner:r,fold:(be,Re)=>Re(r),isValue:q,isError:oe,map:be=>gs.value(be(r)),mapError:H,bind:g,exists:g,forall:g,getOr:B,or:H,getOrThunk:B,orThunk:H,getOrDie:B,each:be=>{be(r)},toOptional:()=>Y.some(r)};return re},Ta=r=>{const g=()=>B,B={tag:!1,inner:r,fold:(H,re)=>H(r),isValue:oe,isError:q,map:g,mapError:H=>gs.error(H(r)),bind:g,exists:oe,forall:q,getOr:Q,or:Q,getOrThunk:W,orThunk:W,getOrDie:te(String(r)),each:k,toOptional:Y.none};return B},gs={value:Vl,error:Ta,fromOption:(r,g)=>r.fold(()=>Ta(g),Vl)},aa={generate:r=>{if(!A(r))throw new Error("cases must be an array");if(r.length===0)throw new Error("there must be at least one case");const g=[],B={};return ye(r,(H,re)=>{const be=nt(H);if(be.length!==1)throw new Error("one and only one name per case");const Re=be[0],Ke=H[Re];if(B[Re]!==void 0)throw new Error("duplicate key detected:"+Re);if(Re==="cata")throw new Error("cannot have a case named cata (sorry)");if(!A(Ke))throw new Error("case arguments must be an array");g.push(Re),B[Re]=(...ct)=>{const kt=ct.length;if(kt!==Ke.length)throw new Error("Wrong number of arguments to case "+Re+". Expected "+Ke.length+" ("+Ke+"), got "+kt);return{fold:(...Jt)=>{if(Jt.length!==r.length)throw new Error("Wrong number of arguments to fold. Expected "+r.length+", got "+Jt.length);return Jt[re].apply(null,ct)},match:Jt=>{const ln=nt(Jt);if(g.length!==ln.length)throw new Error("Wrong number of arguments to match. Expected: "+g.join(",")+` Actual: `+ln.join(","));if(!Oe(g,Vn=>ce(ln,Vn)))throw new Error("Not all branches were specified when using match. Specified: "+ln.join(", ")+` -Required: `+g.join(", "));return Jt[Re].apply(null,ct)},log:Jt=>{console.log(Jt,{constructors:g,constructor:Re,params:ct})}}}}),B}};aa.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Fs=r=>{const g=[],B=[];return ye(r,H=>{H.fold(re=>{g.push(re)},re=>{B.push(re)})}),{errors:g,values:B}},$c=r=>r.type==="inline-command"||r.type==="inline-format",xc=r=>r.type==="block-command"||r.type==="block-format",xu=(r,g)=>(r.type==="block-command"||r.type==="block-format")&&r.trigger===g,qu=r=>{var g;const B=re=>gs.error({message:re,pattern:r}),H=(re,be,Re)=>{if(r.format!==void 0){let Ke;if(A(r.format)){if(!Oe(r.format,v))return B(re+" pattern has non-string items in the `format` array");Ke=r.format}else if(v(r.format))Ke=[r.format];else return B(re+" pattern has non-string `format` parameter");return gs.value(be(Ke))}else return r.cmd!==void 0?v(r.cmd)?gs.value(Re(r.cmd,r.value)):B(re+" pattern has non-string `cmd` parameter"):B(re+" pattern is missing both `format` and `cmd` parameters")};if(!_(r))return B("Raw pattern is not an object");if(!v(r.start))return B("Raw pattern is missing `start` parameter");if(r.end!==void 0){if(!v(r.end))return B("Inline pattern has non-string `end` parameter");if(r.start.length===0&&r.end.length===0)return B("Inline pattern has empty `start` and `end` parameters");let re=r.start,be=r.end;return be.length===0&&(be=re,re=""),H("Inline",Re=>({type:"inline-format",start:re,end:be,format:Re}),(Re,Ke)=>({type:"inline-command",start:re,end:be,cmd:Re,value:Ke}))}else{if(r.replacement!==void 0)return v(r.replacement)?r.start.length===0?B("Replacement pattern has empty `start` parameter"):gs.value({type:"inline-command",start:"",end:r.start,cmd:"mceInsertContent",value:r.replacement}):B("Replacement pattern has non-string `replacement` parameter");{const re=(g=r.trigger)!==null&&g!==void 0?g:"space";return r.start.length===0?B("Block pattern has empty `start` parameter"):H("Block",be=>({type:"block-format",start:r.start,format:be[0],trigger:re}),(be,Re)=>({type:"block-command",start:r.start,cmd:be,value:Re,trigger:re}))}}},Vc=r=>Te(r,xc),pl=r=>Te(r,$c),Uc=(r,g)=>({inlinePatterns:pl(r),blockPatterns:Vc(r),dynamicPatternsLookup:g}),_u=(r,g)=>({...r,blockPatterns:Te(r.blockPatterns,B=>xu(B,g))}),uf=r=>{const g=Fs(ve(r,qu));return ye(g.errors,B=>console.error(B.message,B.pattern)),g.values},ff=r=>g=>{const B=r(g);return uf(B)},jc=tr().deviceType,is=jc.isTouch(),Vs=Nl.DOM,Ac=r=>{const g=r.indexOf("=")>0?r.split(/[;,](?![^=;,]*(?:[;,]|$))/):r.split(",");return Ie(g,(B,H)=>{const re=H.split("="),be=re[0],Re=re.length>1?re[1]:be;return B[Fn(be)]=Fn(Re),B},{})},Bl=r=>m(r,RegExp),Uo=r=>g=>g.options.get(r),ql=r=>v(r)||_(r),Xs=(r,g="")=>B=>{const H=v(B);if(H)if(B.indexOf("=")!==-1){const re=Ac(B);return{value:Ct(re,r.id).getOr(g),valid:H}}else return{value:B,valid:H};else return{valid:!1,message:"Must be a string."}},ac=r=>{const g=r.options.register;g("id",{processor:"string",default:r.id}),g("selector",{processor:"string"}),g("target",{processor:"object"}),g("suffix",{processor:"string"}),g("cache_suffix",{processor:"string"}),g("base_url",{processor:"string"}),g("referrer_policy",{processor:"string",default:""}),g("language_load",{processor:"boolean",default:!0}),g("inline",{processor:"boolean",default:!1}),g("iframe_attrs",{processor:"object",default:{}}),g("doctype",{processor:"string",default:""}),g("document_base_url",{processor:"string",default:r.documentBaseUrl}),g("body_id",{processor:Xs(r,"tinymce"),default:"tinymce"}),g("body_class",{processor:Xs(r),default:""}),g("content_security_policy",{processor:"string",default:""}),g("br_in_pre",{processor:"boolean",default:!0}),g("forced_root_block",{processor:B=>{const H=v(B)&&Kn(B);return H?{value:B,valid:H}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),g("forced_root_block_attrs",{processor:"object",default:{}}),g("newline_behavior",{processor:B=>{const H=ce(["block","linebreak","invert","default"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),g("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),g("no_newline_selector",{processor:"string",default:""}),g("keep_styles",{processor:"boolean",default:!0}),g("end_container_on_empty_block",{processor:B=>R(B)?{valid:!0,value:B}:v(B)?{valid:!0,value:B}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),g("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),g("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),g("font_size_classes",{processor:"string",default:""}),g("automatic_uploads",{processor:"boolean",default:!0}),g("images_reuse_filename",{processor:"boolean",default:!1}),g("images_replace_blob_uris",{processor:"boolean",default:!0}),g("icons",{processor:"string",default:""}),g("icons_url",{processor:"string",default:""}),g("images_upload_url",{processor:"string",default:""}),g("images_upload_base_path",{processor:"string",default:""}),g("images_upload_credentials",{processor:"boolean",default:!1}),g("images_upload_handler",{processor:"function"}),g("language",{processor:"string",default:"en"}),g("language_url",{processor:"string",default:""}),g("entity_encoding",{processor:"string",default:"named"}),g("indent",{processor:"boolean",default:!0}),g("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_use_margin",{processor:"boolean",default:!1}),g("indentation",{processor:"string",default:"40px"}),g("content_css",{processor:B=>{const H=B===!1||v(B)||D(B,v);return H?v(B)?{value:ve(B.split(","),Fn),valid:H}:A(B)?{value:B,valid:H}:B===!1?{value:[],valid:H}:{value:B,valid:H}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:K1(r)?[]:["default"]}),g("content_style",{processor:"string"}),g("content_css_cors",{processor:"boolean",default:!1}),g("font_css",{processor:B=>{const H=v(B)||D(B,v);return H?{value:A(B)?B:ve(B.split(","),Fn),valid:H}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),g("inline_boundaries",{processor:"boolean",default:!0}),g("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),g("object_resizing",{processor:B=>{const H=R(B)||v(B);return H?B===!1||jc.isiPhone()||jc.isiPad()?{value:"",valid:H}:{value:B===!0?"table,img,figure.image,div,video,iframe":B,valid:H}:{valid:!1,message:"Must be boolean or a string"}},default:!is}),g("resize_img_proportional",{processor:"boolean",default:!0}),g("event_root",{processor:"string"}),g("service_message",{processor:"string"}),g("theme",{processor:B=>B===!1||v(B)||C(B),default:"silver"}),g("theme_url",{processor:"string"}),g("formats",{processor:"object"}),g("format_empty_lines",{processor:"boolean",default:!1}),g("format_noneditable_selector",{processor:"string",default:""}),g("preview_styles",{processor:B=>{const H=B===!1||v(B);return H?{value:B===!1?"":B,valid:H}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),g("custom_ui_selector",{processor:"string",default:""}),g("hidden_input",{processor:"boolean",default:!0}),g("submit_patch",{processor:"boolean",default:!0}),g("encoding",{processor:"string"}),g("add_form_submit_trigger",{processor:"boolean",default:!0}),g("add_unload_trigger",{processor:"boolean",default:!0}),g("custom_undo_redo_levels",{processor:"number",default:0}),g("disable_nodechange",{processor:"boolean",default:!1}),g("readonly",{processor:"boolean",default:!1}),g("editable_root",{processor:"boolean",default:!0}),g("plugins",{processor:"string[]",default:[]}),g("external_plugins",{processor:"object"}),g("forced_plugins",{processor:"string[]"}),g("model",{processor:"string",default:r.hasPlugin("rtc")?"plugin":"dom"}),g("model_url",{processor:"string"}),g("block_unsupported_drop",{processor:"boolean",default:!0}),g("visual",{processor:"boolean",default:!0}),g("visual_table_class",{processor:"string",default:"mce-item-table"}),g("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),g("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),g("setup",{processor:"function"}),g("init_instance_callback",{processor:"function"}),g("url_converter",{processor:"function",default:r.convertURL}),g("url_converter_scope",{processor:"object",default:r}),g("urlconverter_callback",{processor:"function"}),g("allow_conditional_comments",{processor:"boolean",default:!1}),g("allow_html_data_urls",{processor:"boolean",default:!1}),g("allow_svg_data_urls",{processor:"boolean"}),g("allow_html_in_named_anchor",{processor:"boolean",default:!1}),g("allow_script_urls",{processor:"boolean",default:!1}),g("allow_unsafe_link_target",{processor:"boolean",default:!1}),g("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),g("fix_list_elements",{processor:"boolean",default:!1}),g("preserve_cdata",{processor:"boolean",default:!1}),g("remove_trailing_brs",{processor:"boolean",default:!0}),g("pad_empty_with_br",{processor:"boolean",default:!1}),g("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),g("element_format",{processor:"string",default:"html"}),g("entities",{processor:"string"}),g("schema",{processor:"string",default:"html5"}),g("convert_urls",{processor:"boolean",default:!0}),g("relative_urls",{processor:"boolean",default:!0}),g("remove_script_host",{processor:"boolean",default:!0}),g("custom_elements",{processor:ql}),g("extended_valid_elements",{processor:"string"}),g("invalid_elements",{processor:"string"}),g("invalid_styles",{processor:ql}),g("valid_children",{processor:"string"}),g("valid_classes",{processor:ql}),g("valid_elements",{processor:"string"}),g("valid_styles",{processor:ql}),g("verify_html",{processor:"boolean",default:!0}),g("auto_focus",{processor:B=>v(B)||B===!0}),g("browser_spellcheck",{processor:"boolean",default:!1}),g("protect",{processor:"array"}),g("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),g("deprecation_warnings",{processor:"boolean",default:!0}),g("a11y_advanced_options",{processor:"boolean",default:!1}),g("api_key",{processor:"string"}),g("license_key",{processor:"string"}),g("paste_block_drop",{processor:"boolean",default:!1}),g("paste_data_images",{processor:"boolean",default:!0}),g("paste_preprocess",{processor:"function"}),g("paste_postprocess",{processor:"function"}),g("paste_webkit_styles",{processor:"string",default:"none"}),g("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),g("paste_merge_formats",{processor:"boolean",default:!0}),g("smart_paste",{processor:"boolean",default:!0}),g("paste_as_text",{processor:"boolean",default:!1}),g("paste_tab_spaces",{processor:"number",default:4}),g("text_patterns",{processor:B=>D(B,_)||B===!1?{value:uf(B===!1?[]:B),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1",trigger:"space"},{start:"##",format:"h2",trigger:"space"},{start:"###",format:"h3",trigger:"space"},{start:"####",format:"h4",trigger:"space"},{start:"#####",format:"h5",trigger:"space"},{start:"######",format:"h6",trigger:"space"},{start:"1.",cmd:"InsertOrderedList",trigger:"space"},{start:"*",cmd:"InsertUnorderedList",trigger:"space"},{start:"-",cmd:"InsertUnorderedList",trigger:"space"},{start:">",cmd:"mceBlockQuote",trigger:"space"},{start:"---",cmd:"InsertHorizontalRule",trigger:"space"}]}),g("text_patterns_lookup",{processor:B=>C(B)?{value:ff(B),valid:!0}:{valid:!1,message:"Must be a single function"},default:B=>[]}),g("noneditable_class",{processor:"string",default:"mceNonEditable"}),g("editable_class",{processor:"string",default:"mceEditable"}),g("noneditable_regexp",{processor:B=>D(B,Bl)?{value:B,valid:!0}:Bl(B)?{value:[B],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),g("table_tab_navigation",{processor:"boolean",default:!0}),g("highlight_on_focus",{processor:"boolean",default:!0}),g("xss_sanitization",{processor:"boolean",default:!0}),g("details_initial_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("details_serialized_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("init_content_sync",{processor:"boolean",default:!1}),g("newdocument_content",{processor:"string",default:""}),g("sandbox_iframes",{processor:"boolean",default:!0}),g("sandbox_iframes_exclusions",{processor:"string[]",default:["youtube.com","youtu.be","vimeo.com","player.vimeo.com","dailymotion.com","embed.music.apple.com","open.spotify.com","giphy.com","dai.ly","codepen.io"]}),g("convert_unsafe_embeds",{processor:"boolean",default:!0}),r.on("ScriptsLoaded",()=>{g("directionality",{processor:"string",default:Du.isRtl()?"rtl":void 0}),g("placeholder",{processor:"string",default:Vs.getAttrib(r.getElement(),"placeholder")})})},Mc=Uo("iframe_attrs"),Mh=Uo("doctype"),il=Uo("document_base_url"),Im=Uo("body_id"),ah=Uo("body_class"),Bu=Uo("content_security_policy"),Hp=Uo("br_in_pre"),dc=Uo("forced_root_block"),Jf=Uo("forced_root_block_attrs"),yg=Uo("newline_behavior"),Dm=Uo("br_newline_selector"),H1=Uo("no_newline_selector"),Wx=Uo("keep_styles"),Ec=Uo("end_container_on_empty_block"),Qc=Uo("automatic_uploads"),Hc=Uo("images_reuse_filename"),_s=Uo("images_replace_blob_uris"),Jc=Uo("icons"),Pc=Uo("icons_url"),Z1=Uo("images_upload_url"),uy=Uo("images_upload_base_path"),q1=Uo("images_upload_credentials"),H0=Uo("images_upload_handler"),W1=Uo("content_css_cors"),Y1=Uo("referrer_policy"),X1=Uo("language"),Zp=Uo("language_url"),fy=Uo("indent_use_margin"),JO=Uo("indentation"),Bm=Uo("content_css"),Ob=Uo("content_style"),Wu=Uo("font_css"),Yx=Uo("directionality"),G1=Uo("inline_boundaries_selector"),bd=Uo("object_resizing"),a0=Uo("resize_img_proportional"),dy=Uo("placeholder"),hp=Uo("event_root"),xd=Uo("service_message"),bg=Uo("theme"),Sb=Uo("theme_url"),kb=Uo("model"),Xx=Uo("model_url"),Z0=Uo("inline_boundaries"),Tb=Uo("formats"),tw=Uo("preview_styles"),hy=Uo("format_empty_lines"),eu=Uo("format_noneditable_selector"),Eh=Uo("custom_ui_selector"),K1=Uo("inline"),xg=Uo("hidden_input"),Cb=Uo("submit_patch"),nw=Uo("add_form_submit_trigger"),Ab=Uo("add_unload_trigger"),_g=Uo("custom_undo_redo_levels"),J1=Uo("disable_nodechange"),py=Uo("readonly"),Gx=Uo("editable_root"),Mb=Uo("content_css_cors"),ev=Uo("plugins"),e3=Uo("external_plugins"),my=Uo("block_unsupported_drop"),_d=Uo("visual"),Kx=Uo("visual_table_class"),Jx=Uo("visual_anchor_class"),e2=Uo("iframe_aria_text"),Eb=Uo("setup"),Wh=Uo("init_instance_callback"),t2=Uo("urlconverter_callback"),Pb=Uo("auto_focus"),zm=Uo("browser_spellcheck"),rw=Uo("protect"),n2=Uo("paste_block_drop"),Fm=Uo("paste_data_images"),q0=Uo("paste_preprocess"),tv=Uo("paste_postprocess"),nv=Uo("newdocument_content"),rv=Uo("paste_webkit_styles"),t3=Uo("paste_remove_styles_if_webkit"),ow=Uo("paste_merge_formats"),iw=Uo("smart_paste"),aw=Uo("paste_as_text"),gy=Uo("paste_tab_spaces"),W0=Uo("allow_html_data_urls"),wg=Uo("text_patterns"),n3=Uo("text_patterns_lookup"),vy=Uo("noneditable_class"),sw=Uo("editable_class"),pp=Uo("noneditable_regexp"),r2=Uo("preserve_cdata"),yy=Uo("highlight_on_focus"),Rb=Uo("xss_sanitization"),wd=Uo("init_content_sync"),Og=r=>r.options.isSet("text_patterns_lookup"),s0=r=>mo.explode(r.options.get("font_size_style_values")),Lb=r=>mo.explode(r.options.get("font_size_classes")),l0=r=>r.options.get("encoding")==="xml",Y0=r=>mo.explode(r.options.get("images_file_types")),CS=Uo("table_tab_navigation"),r3=Uo("details_initial_state"),o3=Uo("details_serialized_state"),o2=Uo("sandbox_iframes"),i2=r=>r.options.get("sandbox_iframes_exclusions"),AS=Uo("convert_unsafe_embeds"),Ib=Uo("license_key"),lw=Uo("api_key"),MS=ne,cw=Nt,qp=r=>{const g=r.parentNode;g&&g.removeChild(r)},ov=r=>{const g=vd(r);return{count:r.length-g.length,text:g}},i3=r=>{let g;for(;(g=r.data.lastIndexOf(nc))!==-1;)r.deleteData(g,1)},Nm=(r,g)=>(by(r),g),uw=(r,g)=>{const B=ov(r.data.substr(0,g.offset())),H=ov(r.data.substr(g.offset()));return(B.text+H.text).length>0?(i3(r),qr(r,g.offset()-B.count)):g},ES=(r,g)=>{const B=g.container(),H=ae(Ee(B.childNodes),r).map(re=>recw(r)&&g.container()===r?uw(r,g):Nm(r,g),a3=(r,g)=>g.container()===r.parentNode?ES(r,g):Nm(r,g),zM=(r,g)=>qr.isTextPosition(g)?ET(r,g):a3(r,g),by=r=>{MS(r)&&Ch(r)&&(Z_(r)?r.removeAttribute("data-mce-caret"):qp(r)),cw(r)&&(i3(r),r.data.length===0&&qp(r))},ID=rr,a2=Zr,s3=Dr,s2="*[contentEditable=false],video,audio,embed,object",l2=(r,g,B)=>{const H=Il(g.getBoundingClientRect(),B);let re,be;if(r.tagName==="BODY"){const Ke=r.ownerDocument.documentElement;re=r.scrollLeft||Ke.scrollLeft,be=r.scrollTop||Ke.scrollTop}else{const Ke=r.getBoundingClientRect();re=r.scrollLeft-Ke.left,be=r.scrollTop-Ke.top}H.left+=re,H.right+=re,H.top+=be,H.bottom+=be,H.width=1;let Re=g.offsetWidth-g.clientWidth;return Re>0&&(B&&(Re*=-1),H.left+=Re,H.right+=Re),H},FM=r=>{var g,B;const H=Zl(sr.fromDom(r),s2);for(let re=0;re{const re=Ys();let be,Re;const Ke=dc(r),ct=r.dom,kt=(Rn,qn)=>{let pr;if(Wt(),s3(qn))return null;if(B(qn)){const Tr=W_(Ke,qn,Rn),wr=l2(g,qn,Rn);ct.setStyle(Tr,"top",wr.top),ct.setStyle(Tr,"caret-color","transparent"),Re=Tr;const Ur=ct.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});ct.setStyles(Ur,{...wr}),ct.add(g,Ur),re.set({caret:Ur,element:qn,before:Rn}),Rn&&ct.addClass(Ur,"mce-visual-caret-before"),Jt(),pr=qn.ownerDocument.createRange(),pr.setStart(Tr,0),pr.setEnd(Tr,0)}else return Re=q_(qn,Rn),pr=qn.ownerDocument.createRange(),l3(Re.nextSibling)?(pr.setStart(Re,0),pr.setEnd(Re,0)):(pr.setStart(Re,1),pr.setEnd(Re,1)),pr;return pr},Wt=()=>{FM(g),Re&&(by(Re),Re=null),re.on(Rn=>{ct.remove(Rn.caret),re.clear()}),be&&(clearInterval(be),be=void 0)},Jt=()=>{be=setInterval(()=>{re.on(Rn=>{H()?ct.toggleClass(Rn.caret,"mce-visual-caret-hidden"):ct.addClass(Rn.caret,"mce-visual-caret-hidden")})},500)};return{show:kt,hide:Wt,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{re.on(Rn=>{const qn=l2(g,Rn.element,Rn.before);ct.setStyles(Rn.caret,{...qn})})},destroy:()=>clearInterval(be)}},NM=()=>fr.browser.isFirefox(),l3=r=>ID(r)||a2(r),iv=r=>(l3(r)||Et(r)&&NM())&&Lp(sr.fromDom(r)).exists(js),PS=Sn,RS=rr,$M=Zr,LS=Je("display","block table table-cell table-caption list-item"),RT=Ch,LT=gg,IT=ne,c2=Nt,c3=ih,Db=r=>r>0,av=r=>r<0,fw=(r,g)=>{let B;for(;B=r(g);)if(!LT(B))return B;return null},u2=(r,g,B,H,re)=>{const be=new kc(r,H),Re=RS(r)||LT(r);let Ke;if(av(g)){if(Re&&(Ke=fw(be.prev.bind(be),!0),B(Ke)))return Ke;for(;Ke=fw(be.prev.bind(be),re);)if(B(Ke))return Ke}if(Db(g)){if(Re&&(Ke=fw(be.next.bind(be),!0),B(Ke)))return Ke;for(;Ke=fw(be.next.bind(be),re);)if(B(Ke))return Ke}return null},VM=(r,g)=>{const B=re=>PS(re.dom),H=re=>re.dom===g;return ms(sr.fromDom(r),B,H).map(re=>re.dom).getOr(g)},c0=(r,g)=>{for(;r&&r!==g;){if(LS(r))return r;r=r.parentNode}return null},Wp=(r,g,B)=>c0(r.container(),B)===c0(g.container(),B),u3=(r,g)=>{if(!g)return Y.none();const B=g.container(),H=g.offset();return IT(B)?Y.from(B.childNodes[H+r]):Y.none()},UM=(r,g)=>{var B;const re=((B=g.ownerDocument)!==null&&B!==void 0?B:document).createRange();return r?(re.setStartBefore(g),re.setEndBefore(g)):(re.setStartAfter(g),re.setEndAfter(g)),re},DD=(r,g,B)=>c0(g,r)===c0(B,r),Bb=(r,g,B)=>{const H=r?"previousSibling":"nextSibling";let re=B;for(;re&&re!==g;){let be=re[H];if(be&&RT(be)&&(be=be[H]),RS(be)||$M(be)){if(DD(g,be,re))return be;break}if(c3(be))break;re=re.parentNode}return null},f2=U(UM,!0),d2=U(UM,!1),$d=(r,g,B)=>{let H;const re=U(Bb,!0,g),be=U(Bb,!1,g),Re=B.startContainer,Ke=B.startOffset;if(gg(Re)){const ct=c2(Re)?Re.parentNode:Re,kt=ct.getAttribute("data-mce-caret");if(kt==="before"&&(H=ct.nextSibling,iv(H)))return f2(H);if(kt==="after"&&(H=ct.previousSibling,iv(H)))return d2(H)}if(!B.collapsed)return B;if(Nt(Re)){if(RT(Re)){if(r===1){if(H=be(Re),H)return f2(H);if(H=re(Re),H)return d2(H)}if(r===-1){if(H=re(Re),H)return d2(H);if(H=be(Re),H)return f2(H)}return B}if(jp(Re)&&Ke>=Re.data.length-1)return r===1&&(H=be(Re),H)?f2(H):B;if(U0(Re)&&Ke<=1)return r===-1&&(H=re(Re),H)?d2(H):B;if(Ke===Re.data.length)return H=be(Re),H?f2(H):B;if(Ke===0)return H=re(Re),H?d2(H):B}return B},f3=(r,g)=>u3(r?0:-1,g).filter(RS),zb=(r,g,B)=>{const H=$d(r,g,B);return r===-1?qr.fromRangeStart(H):qr.fromRangeEnd(H)},d3=r=>Y.from(r.getNode()).map(sr.fromDom),DT=r=>Y.from(r.getNode(!0)).map(sr.fromDom),IS=(r,g)=>{let B=g;for(;B=r(B);)if(B.isVisible())return B;return B},h3=(r,g)=>{const B=Wp(r,g);return!B&&On(r.getNode())?!0:B};var Af;(function(r){r[r.Backwards=-1]="Backwards",r[r.Forwards=1]="Forwards"})(Af||(Af={}));const p3=rr,Sg=Nt,DS=ne,BS=On,sv=ih,BT=GO,xy=Zx,m3=(r,g)=>{const B=[];let H=r;for(;H&&H!==g;)B.push(H),H=H.parentNode;return B},g3=(r,g)=>r.hasChildNodes()&&g{if(Db(r)){if(sv(g.previousSibling)&&!Sg(g.previousSibling))return qr.before(g);if(Sg(g))return qr(g,0)}if(av(r)){if(sv(g.nextSibling)&&!Sg(g.nextSibling))return qr.after(g);if(Sg(g))return qr(g,g.data.length)}return av(r)?BS(g)?qr.before(g):qr.after(g):qr.before(g)},Fb=(r,g)=>{const B=g.nextSibling;return B&&sv(B)?Sg(B)?qr(B,0):qr.before(B):h2(Af.Forwards,qr.after(g),r)},h2=(r,g,B)=>{let H,re,be,Re;if(!DS(B)||!g)return null;if(g.isEqual(qr.after(B))&&B.lastChild){if(Re=qr.after(B.lastChild),av(r)&&sv(B.lastChild)&&DS(B.lastChild))return BS(B.lastChild)?qr.before(B.lastChild):Re}else Re=g;const Ke=Re.container();let ct=Re.offset();if(Sg(Ke)){if(av(r)&&ct>0)return qr(Ke,--ct);if(Db(r)&&ct0&&(re=g3(Ke,ct-1),sv(re)))return!BT(re)&&(be=u2(re,r,xy,re),be)?Sg(be)?qr(be,be.data.length):qr.after(be):Sg(re)?qr(re,re.data.length):qr.before(re);if(Db(r)&&ct({next:g=>h2(Af.Forwards,g,r),prev:g=>h2(Af.Backwards,g,r)}),zT=(r,g,B)=>{const H=r?qr.before(B):qr.after(B);return Yp(r,g,H)},FS=r=>On(r)?qr.before(r):qr.after(r),NS=r=>qr.isTextPosition(r)?r.offset()===0:ih(r.getNode()),FT=r=>{if(qr.isTextPosition(r)){const g=r.container();return r.offset()===g.data.length}else return ih(r.getNode(!0))},$S=(r,g)=>!qr.isTextPosition(r)&&!qr.isTextPosition(g)&&r.getNode()===g.getNode(!0),NT=r=>!qr.isTextPosition(r)&&On(r.getNode()),$T=(r,g,B)=>r?!$S(g,B)&&!NT(g)&&FT(g)&&NS(B):!$S(B,g)&&NS(g)&&FT(B),Yp=(r,g,B)=>{const H=Od(g);return Y.from(r?H.next(B):H.prev(B))},lv=(r,g,B)=>Yp(r,g,B).bind(H=>Wp(B,H,g)&&$T(r,B,H)?Yp(r,g,H):Y.some(H)),VT=(r,g,B,H)=>lv(r,g,B).bind(re=>H(re)?VT(r,g,re,H):Y.some(re)),Nb=(r,g)=>{const B=r?g.firstChild:g.lastChild;return Nt(B)?Y.some(qr(B,r?0:B.data.length)):B?ih(B)?Y.some(r?qr.before(B):FS(B)):zT(r,g,B):Y.none()},sh=U(Yp,!0),mp=U(Yp,!1),lh=U(Nb,!0),Xp=U(Nb,!1),v3="_mce_caret",Gp=r=>ne(r)&&r.id===v3,$b=(r,g)=>{let B=g;for(;B&&B!==r;){if(Gp(B))return B;B=B.parentNode}return null},jM=r=>v(r.start),UT=r=>_t(r,"rng"),QM=r=>_t(r,"id"),jT=r=>_t(r,"name"),QT=r=>mo.isArray(r.start),VS=r=>!jT(r)&&R(r.forward)?r.forward:!0,US=(r,g)=>(ne(g)&&r.isBlock(g)&&!g.innerHTML&&(g.innerHTML='
    '),g),ed=(r,g)=>{const B=Y.from(Or(r.getRoot(),g.start)),H=Y.from(Or(r.getRoot(),g.end));return cs(B,H,(re,be)=>{const Re=r.createRng();return Re.setStart(re.container(),re.offset()),Re.setEnd(be.container(),be.offset()),{range:Re,forward:VS(g)}})},jS=(r,g)=>{var B;const re=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(nc);r.appendChild(re),g.setStart(re,0),g.setEnd(re,0)},_y=r=>!r.hasChildNodes(),p2=(r,g)=>Xp(r).fold(oe,B=>(g.setStart(B.container(),B.offset()),g.setEnd(B.container(),B.offset()),!0)),QS=(r,g,B)=>_y(g)&&$b(r,g)?(jS(g,B),!0):!1,y3=(r,g,B,H)=>{const re=B[g?"start":"end"],be=r.getRoot();if(re){let Re=be,Ke=re[0];for(let ct=re.length-1;Re&&ct>=1;ct--){const kt=Re.childNodes;if(QS(be,Re,H))return!0;if(re[ct]>kt.length-1)return QS(be,Re,H)?!0:p2(Re,H);Re=kt[re[ct]]}Nt(Re)&&(Ke=Math.min(re[0],Re.data.length)),ne(Re)&&(Ke=Math.min(re[0],Re.childNodes.length)),g?H.setStart(Re,Ke):H.setEnd(Re,Ke)}return!0},dw=r=>Nt(r)&&r.data.length>0,HS=(r,g,B)=>{const H=r.get(B.id+"_"+g),re=H==null?void 0:H.parentNode,be=B.keep;if(H&&re){let Re,Ke;if(g==="start"?be?H.hasChildNodes()?(Re=H.firstChild,Ke=1):dw(H.nextSibling)?(Re=H.nextSibling,Ke=0):dw(H.previousSibling)?(Re=H.previousSibling,Ke=H.previousSibling.data.length):(Re=re,Ke=r.nodeIndex(H)+1):(Re=re,Ke=r.nodeIndex(H)):be?H.hasChildNodes()?(Re=H.firstChild,Ke=1):dw(H.previousSibling)?(Re=H.previousSibling,Ke=H.previousSibling.data.length):(Re=re,Ke=r.nodeIndex(H)):(Re=re,Ke=r.nodeIndex(H)),!be){const ct=H.previousSibling,kt=H.nextSibling;mo.each(mo.grep(H.childNodes),Jt=>{Nt(Jt)&&(Jt.data=Jt.data.replace(/\uFEFF/g,""))});let Wt;for(;Wt=r.get(B.id+"_"+g);)r.remove(Wt,!0);if(Nt(kt)&&Nt(ct)&&!fr.browser.isOpera()){const Jt=ct.data.length;ct.appendData(kt.data),r.remove(kt),Re=ct,Ke=Jt}}return Y.some(qr(Re,Ke))}else return Y.none()},m2=(r,g)=>{const B=r.createRng();return y3(r,!0,g,B)&&y3(r,!1,g,B)?Y.some({range:B,forward:VS(g)}):Y.none()},ZS=(r,g)=>{const B=HS(r,"start",g),H=HS(r,"end",g);return cs(B,H.or(B),(re,be)=>{const Re=r.createRng();return Re.setStart(US(r,re.container()),re.offset()),Re.setEnd(US(r,be.container()),be.offset()),{range:Re,forward:VS(g)}})},X0=(r,g)=>Y.from(r.select(g.name)[g.index]).map(B=>{const H=r.createRng();return H.selectNode(B),{range:H,forward:!0}}),Vb=(r,g)=>{const B=r.dom;if(g){if(QT(g))return m2(B,g);if(jM(g))return ed(B,g);if(QM(g))return ZS(B,g);if(jT(g))return X0(B,g);if(UT(g))return Y.some({range:g.rng,forward:VS(g)})}return Y.none()},HT=(r,g,B)=>Bs(r,g,B),cv=(r,g)=>{Vb(r,g).each(({range:B,forward:H})=>{r.setRng(B,H)})},Kp=r=>ne(r)&&r.tagName==="SPAN"&&r.getAttribute("data-mce-type")==="bookmark",G0=(r=>g=>r===g)(Ea),Ub=r=>r!==""&&` \f -\r \v`.indexOf(r)!==-1,qS=r=>!Ub(r)&&!G0(r)&&!El(r),b3=r=>{const g=[];if(r)for(let B=0;B$e(r,g=>{const B=Pm(g);return B?[sr.fromDom(B)]:[]}),HM=r=>b3(r).length>1,ZM=r=>Te(qT(r),z1),WT=r=>Zl(r,"td[data-mce-selected],th[data-mce-selected]"),wy=(r,g)=>{const B=WT(g);return B.length>0?B:ZM(r)},g2=r=>wy(b3(r.selection.getSel()),sr.fromDom(r.getBody())),hw=(r,g)=>xl(r,"table",g),qM=r=>{const g=r.startContainer,B=r.startOffset;return Nt(g)?B===0?Y.some(sr.fromDom(g)):Y.none():Y.from(g.childNodes[B]).map(sr.fromDom)},WM=r=>{const g=r.endContainer,B=r.endOffset;return Nt(g)?B===g.data.length?Y.some(sr.fromDom(g)):Y.none():Y.from(g.childNodes[B-1]).map(sr.fromDom)},v2=r=>Uf(r).fold($([r]),g=>[r].concat(v2(g))),WS=r=>zl(r).fold($([r]),g=>sa(g)==="br"?Eu(g).map(B=>[r].concat(WS(B))).getOr([]):[r].concat(WS(g))),x3=(r,g)=>cs(qM(g),WM(g),(B,H)=>{const re=De(v2(r),U(Fa,B)),be=De(WS(r),U(Fa,H));return re.isSome()&&be.isSome()}).getOr(!1),YS=(r,g,B,H)=>{const re=B,be=new kc(B,re),Re=qt(r.schema.getMoveCaretBeforeOnEnterElements(),(ct,kt)=>!ce(["td","th","table"],kt.toLowerCase()));let Ke=B;do{if(Nt(Ke)&&mo.trim(Ke.data).length!==0){H?g.setStart(Ke,0):g.setEnd(Ke,Ke.data.length);return}if(Re[Ke.nodeName]){H?g.setStartBefore(Ke):Ke.nodeName==="BR"?g.setEndBefore(Ke):g.setEndAfter(Ke);return}}while(Ke=H?be.next():be.prev());re.nodeName==="BODY"&&(H?g.setStart(re,0):g.setEnd(re,re.childNodes.length))},XS=r=>{const g=r.selection.getSel();return E(g)&&g.rangeCount>0},y2=(r,g)=>{const B=g2(r);B.length>0?ye(B,H=>{const re=H.dom,be=r.dom.createRng();be.setStartBefore(re),be.setEndAfter(re),g(be,!0)}):g(r.selection.getRng(),!1)},GS=(r,g,B)=>{const H=Zi(r,g);B(H),r.moveToBookmark(H)},b2=r=>L(r==null?void 0:r.nodeType),KS=r=>ne(r)&&!Kp(r)&&!Gp(r)&&!dt(r),hs=(r,g)=>{if(KS(g)&&!/^(TD|TH)$/.test(g.nodeName)){const B=r.getAttrib(g,"data-mce-selected"),H=parseInt(B,10);return!isNaN(H)&&H>0}else return!1},K0=(r,g,B)=>{const{selection:H,dom:re}=r,be=H.getNode(),Re=rr(be);GS(H,!0,()=>{g()}),Re&&rr(be)&&re.isChildOf(be,r.getBody())?r.selection.select(be):B(H.getStart())&&jb(re,H)},jb=(r,g)=>{var B,H;const re=g.getRng(),{startContainer:be,startOffset:Re}=re,Ke=g.getNode();if(!hs(r,Ke)&&ne(be)){const ct=be.childNodes,kt=r.getRoot();let Wt;if(Re{if(r){const H=g?"nextSibling":"previousSibling";for(r=B?r:r[H];r;r=r[H])if(ne(r)||!e5(r))return r}},JS=(r,g)=>!!r.getTextBlockElements()[g.nodeName.toLowerCase()]||xm(r,g),uv=(r,g,B)=>r.schema.isValidChild(g,B),e5=(r,g=!1)=>{if(E(r)&&Nt(r)){const B=g?r.data.replace(/ /g," "):r.data;return Sf(B)}else return!1},_3=r=>E(r)&&Nt(r)&&r.length===0,t5=(r,g)=>{const B="[data-mce-cef-wrappable]",H=eu(r),re=_r(H)?B:`${B},${H}`;return _f(sr.fromDom(g),re)},n5=(r,g)=>{const B=r.dom;return KS(g)&&B.getContentEditable(g)==="false"&&t5(r,g)&&B.select('[contenteditable="true"]',g).length===0},Qb=(r,g)=>C(r)?r(g):(E(g)&&(r=r.replace(/%(\w+)/g,(B,H)=>g[H]||B)),r),w3=(r,g)=>(r=r||"",g=g||"",r=""+(r.nodeName||r),g=""+(g.nodeName||g),r.toLowerCase()===g.toLowerCase()),Hb=(r,g)=>{if(T(r))return null;{let B=String(r);return(g==="color"||g==="backgroundColor")&&(B=Am(B)),g==="fontWeight"&&r===700&&(B="bold"),g==="fontFamily"&&(B=B.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),B}},O3=(r,g,B)=>{const H=r.getStyle(g,B);return Hb(H,B)},YT=(r,g)=>{let B;return r.getParent(g,H=>ne(H)?(B=r.getStyle(H,"text-decoration"),!!B&&B!=="none"):!1),B},x2=(r,g,B)=>r.getParents(g,B,r.getRoot()),S3=(r,g,B)=>{const H=r.formatter.get(g);return E(H)&&de(H,B)},YM=(r,g)=>S3(r,g,H=>{const re=be=>C(be)||be.length>1&&be.charAt(0)==="%";return de(["styles","attributes"],be=>Ct(H,be).exists(Re=>{const Ke=A(Re)?Re:Gt(Re);return de(Ke,re)}))}),k3=(r,g,B)=>{const H=["inline","block","selector","attributes","styles","classes"],re=be=>qt(be,(Re,Ke)=>de(H,ct=>ct===Ke));return S3(r,g,be=>{const Re=re(be);return S3(r,B,Ke=>{const ct=re(Ke);return gn(Re,ct)})})},fv=r=>nn(r,"block"),XM=r=>fv(r)&&r.wrapper===!0,mw=r=>fv(r)&&r.wrapper!==!0,$m=r=>nn(r,"selector"),Mf=r=>nn(r,"inline"),GM=r=>$m(r)&&Mf(r)&&Aa(Ct(r,"mixed"),!0),u0=r=>$m(r)&&r.expand!==!1&&!Mf(r),KM=r=>{const g=[];let B=r;for(;B;){if(Nt(B)&&B.data!==nc||B.childNodes.length>1)return[];ne(B)&&g.push(B),B=B.firstChild}return g},XT=r=>KM(r).length>0,gw=r=>Gp(r.dom)&&XT(r.dom),_2=Kp,GT=x2,KT=e5,BD=JS,zD=r=>On(r)&&r.getAttribute("data-mce-bogus")&&!r.nextSibling,JT=(r,g)=>{let B=g;for(;B;){if(ne(B)&&r.getContentEditable(B))return r.getContentEditable(B)==="false"?B:g;B=B.parentNode}return g},e6=(r,g,B,H)=>{const re=g.data;if(r){for(let be=B;be>0;be--)if(H(re.charAt(be-1)))return be}else for(let be=B;bee6(r,g,B,H=>G0(H)||Ub(H)),Ef=(r,g,B)=>e6(r,g,B,qS),vw=(r,g,B,H,re,be)=>{let Re;const Ke=r.getParent(B,r.isBlock)||g,ct=(Wt,Jt,ln)=>{const kn=Em(r),Vn=re?kn.backwards:kn.forwards;return Y.from(Vn(Wt,Jt,(Rn,qn)=>_2(Rn.parentNode)?-1:(Re=Rn,ln(re,Rn,qn)),Ke))};return ct(B,H,hi).bind(Wt=>be?ct(Wt.container,Wt.offset+(re?-1:0),Ef):Y.some(Wt)).orThunk(()=>Re?Y.some({container:Re,offset:re?0:Re.length}):Y.none())},Pf=(r,g,B,H,re)=>{const be=H[re];Nt(H)&&_r(H.data)&&be&&(H=be);const Re=GT(r,H);for(let Ke=0;Ke{var re;let be=B;const Re=r.getRoot(),Ke=g[0];if(fv(Ke)&&(be=Ke.wrapper?null:r.getParent(B,Ke.block,Re)),!be){const ct=(re=r.getParent(B,"LI,TD,TH,SUMMARY"))!==null&&re!==void 0?re:Re;be=r.getParent(Nt(B)?B.parentNode:B,kt=>kt!==Re&&BD(r.schema,kt),ct)}if(be&&fv(Ke)&&Ke.wrapper&&(be=GT(r,be,"ul,ol").reverse()[0]||be),!be)for(be=B;be&&be[H]&&!r.isBlock(be[H])&&(be=be[H],!w3(be,"br")););return be||B},r5=(r,g,B,H)=>{const re=B.parentNode;return E(B[H])?!1:re===g||T(re)||r.isBlock(re)?!0:r5(r,g,re,H)},Zb=(r,g,B,H,re)=>{let be=B;const Re=re?"previousSibling":"nextSibling",Ke=r.getRoot();if(Nt(B)&&!KT(B)&&(re?H>0:H_2(r.parentNode)||_2(r),Oy=(r,g,B,H=!1)=>{let{startContainer:re,startOffset:be,endContainer:Re,endOffset:Ke}=g;const ct=B[0];return ne(re)&&re.hasChildNodes()&&(re=fi(re,be),Nt(re)&&(be=0)),ne(Re)&&Re.hasChildNodes()&&(Re=fi(Re,g.collapsed?Ke:Ke-1),Nt(Re)&&(Ke=Re.data.length)),re=JT(r,re),Re=JT(r,Re),T3(re)&&(re=_2(re)?re:re.parentNode,g.collapsed?re=re.previousSibling||re:re=re.nextSibling||re,Nt(re)&&(be=g.collapsed?re.length:0)),T3(Re)&&(Re=_2(Re)?Re:Re.parentNode,g.collapsed?Re=Re.nextSibling||Re:Re=Re.previousSibling||Re,Nt(Re)&&(Ke=g.collapsed?0:Re.length)),g.collapsed&&(vw(r,r.getRoot(),re,be,!0,H).each(({container:Jt,offset:ln})=>{re=Jt,be=ln}),vw(r,r.getRoot(),Re,Ke,!1,H).each(({container:Jt,offset:ln})=>{Re=Jt,Ke=ln})),(Mf(ct)||ct.block_expand)&&((!Mf(ct)||!Nt(re)||be===0)&&(re=Zb(r,B,re,be,!0)),(!Mf(ct)||!Nt(Re)||Ke===Re.data.length)&&(Re=Zb(r,B,Re,Ke,!1))),u0(ct)&&(re=Pf(r,B,g,re,"previousSibling"),Re=Pf(r,B,g,Re,"nextSibling")),(fv(ct)||$m(ct))&&(re=Vm(r,B,re,"previousSibling"),Re=Vm(r,B,Re,"nextSibling"),fv(ct)&&(r.isBlock(re)||(re=Zb(r,B,re,be,!0),Nt(re)&&(be=0)),r.isBlock(Re)||(Re=Zb(r,B,Re,Ke,!1),Nt(Re)&&(Ke=Re.data.length)))),ne(re)&&re.parentNode&&(be=r.nodeIndex(re),re=re.parentNode),ne(Re)&&Re.parentNode&&(Ke=r.nodeIndex(Re)+1,Re=Re.parentNode),{startContainer:re,startOffset:be,endContainer:Re,endOffset:Ke}},yw=(r,g,B)=>{var H;const re=g.startOffset,be=fi(g.startContainer,re),Re=g.endOffset,Ke=fi(g.endContainer,Re-1),ct=qn=>{const pr=qn[0];Nt(pr)&&pr===be&&re>=pr.data.length&&qn.splice(0,1);const Tr=qn[qn.length-1];return Re===0&&qn.length>0&&Tr===Ke&&Nt(Tr)&&qn.splice(qn.length-1,1),qn},kt=(qn,pr,Tr)=>{const wr=[];for(;qn&&qn!==Tr;qn=qn[pr])wr.push(qn);return wr},Wt=(qn,pr)=>r.getParent(qn,Tr=>Tr.parentNode===pr,pr),Jt=(qn,pr,Tr)=>{const wr=Tr?"nextSibling":"previousSibling";for(let Ur=qn,wo=Ur.parentNode;Ur&&Ur!==pr;Ur=wo){wo=Ur.parentNode;const jo=kt(Ur===qn?Ur:Ur[wr],wr);jo.length&&(Tr||jo.reverse(),B(ct(jo)))}};if(be===Ke)return B(ct([be]));const ln=(H=r.findCommonAncestor(be,Ke))!==null&&H!==void 0?H:r.getRoot();if(r.isChildOf(be,Ke))return Jt(be,ln,!0);if(r.isChildOf(Ke,be))return Jt(Ke,ln);const kn=Wt(be,ln)||be,Vn=Wt(Ke,ln)||Ke;Jt(be,kn,!0);const Rn=kt(kn===be?kn:kn.nextSibling,"nextSibling",Vn===Ke?Vn.nextSibling:Vn);Rn.length&&B(ct(Rn)),Jt(Ke,Vn)},t6=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],JM=r=>Ss(r)&&ry(r)===nc,eE=(r,g,B,H)=>Hu(g).fold(()=>"skipping",re=>H==="br"||JM(g)?"valid":zx(g)?"existing":Gp(g.dom)?"caret":de(t6,be=>_f(g,be))?"valid-block":!uv(r,B,H)||!uv(r,sa(re),B)?"invalid-child":"valid"),tE=(r,g)=>{const B=Oy(r.dom,g,[{inline:"span"}]);g.setStart(B.startContainer,B.startOffset),g.setEnd(B.endContainer,B.endOffset),r.selection.setRng(g)},Sy=(r,g,B,H,re,be)=>{const{uid:Re=g,...Ke}=B;xf(r,ey()),Es(r,`${ty()}`,Re),Es(r,`${hg()}`,H);const{attributes:ct={},classes:kt=[]}=re(Re,Ke);if(ef(r,ct),gd(r,kt),be){kt.length>0&&Es(r,`${z0()}`,kt.join(","));const Wt=nt(ct);Wt.length>0&&Es(r,`${pg()}`,Wt.join(","))}},bw=r=>{nf(r,ey()),gc(r,`${ty()}`),gc(r,`${hg()}`),gc(r,`${E1()}`);const g=ad(r,`${pg()}`).map(H=>H.split(",")).getOr([]),B=ad(r,`${z0()}`).map(H=>H.split(",")).getOr([]);ye(g,H=>gc(r,H)),U_(r,B),gc(r,`${z0()}`),gc(r,`${pg()}`)},xw=(r,g,B,H,re)=>{const be=sr.fromTag("span",r);return Sy(be,g,B,H,re,!1),be},C3=(r,g,B,H,re,be)=>{const Re=[],Ke=xw(r.getDoc(),B,be,H,re),ct=Ys(),kt=()=>{ct.clear()},Wt=()=>ct.get().getOrThunk(()=>{const Vn=Th(Ke);return Re.push(Vn),ct.set(Vn),Vn}),Jt=Vn=>{ye(Vn,ln)},ln=Vn=>{switch(eE(r,Vn,"span",sa(Vn))){case"invalid-child":{kt();const qn=Oc(Vn);Jt(qn),kt();break}case"valid-block":{kt(),Sy(Vn,B,be,H,re,!0);break}case"valid":{const qn=Wt();Sc(Vn,qn);break}}},kn=Vn=>{const Rn=ve(Vn,sr.fromDom);Jt(Rn)};return yw(r.dom,g,Vn=>{kt(),kn(Vn)}),Re},gp=(r,g,B,H)=>{r.undoManager.transact(()=>{const re=r.selection,be=re.getRng(),Re=g2(r).length>0,Ke=L1("mce-annotation");if(be.collapsed&&!Re&&tE(r,be),re.getRng().collapsed&&!Re){const ct=xw(r.getDoc(),Ke,H,g,B.decorate);Id(ct,Ea),re.getRng().insertNode(ct.dom),re.select(ct.dom)}else GS(re,!1,()=>{y2(r,ct=>{C3(r,ct,Ke,g,B.decorate,H)})})})},J0=r=>{const g=V_();Nx(r,g);const B=$_(r,g),H=Ju("span"),re=be=>{ye(be,Re=>{H(Re)?vu(Re):bw(Re)})};return{register:(be,Re)=>{g.register(be,Re)},annotate:(be,Re)=>{g.lookup(be).each(Ke=>{gp(r,be,Ke,Re)})},annotationChanged:(be,Re)=>{B.addListener(be,Re)},remove:be=>{R1(r,Y.some(be)).each(({elements:Re})=>{const Ke=r.selection.getBookmark();re(Re),r.selection.moveToBookmark(Ke)})},removeAll:be=>{const Re=r.selection.getBookmark();Ge(Fx(r,be),(Ke,ct)=>{re(Ke)}),r.selection.moveToBookmark(Re)},getAll:be=>{const Re=Fx(r,be);return ht(Re,Ke=>ve(Ke,ct=>ct.dom))}}},ky=r=>({getBookmark:U(HT,r),moveToBookmark:U(cv,r)});ky.isBookmarkNode=Kp;const Ty=(r,g,B)=>B.collapsed?!1:de(B.getClientRects(),H=>ay(H,r,g)),nE=(r,g)=>r.dispatch("PreProcess",g),A3=(r,g)=>r.dispatch("PostProcess",g),M3=r=>{r.dispatch("remove")},rE=r=>{r.dispatch("detach")},oE=(r,g)=>{r.dispatch("SwitchMode",{mode:g})},iE=(r,g,B,H,re)=>{r.dispatch("ObjectResizeStart",{target:g,width:B,height:H,origin:re})},aE=(r,g,B,H,re)=>{r.dispatch("ObjectResized",{target:g,width:B,height:H,origin:re})},n6=r=>{r.dispatch("PreInit")},E3=r=>{r.dispatch("PostRender")},sE=r=>{r.dispatch("Init")},P3=(r,g)=>{r.dispatch("PlaceholderToggle",{state:g})},Sd=(r,g,B)=>{r.dispatch(g,B)},Um=(r,g,B,H)=>{r.dispatch("FormatApply",{format:g,node:B,vars:H})},Jp=(r,g,B,H)=>{r.dispatch("FormatRemove",{format:g,node:B,vars:H})},R3=(r,g)=>r.dispatch("BeforeSetContent",g),L3=(r,g)=>r.dispatch("SetContent",g),r6=(r,g)=>r.dispatch("BeforeGetContent",g),o5=(r,g)=>r.dispatch("GetContent",g),o6=(r,g)=>{r.dispatch("AutocompleterStart",g)},i5=(r,g)=>{r.dispatch("AutocompleterUpdate",g)},i6=(r,g)=>{r.dispatch("AutocompleterUpdateActiveRange",g)},a6=r=>{r.dispatch("AutocompleterEnd")},lE=(r,g,B)=>r.dispatch("PastePreProcess",{content:g,internal:B}),cE=(r,g,B)=>r.dispatch("PastePostProcess",{node:g,internal:B}),I3=(r,g)=>r.dispatch("PastePlainTextToggle",{state:g}),a5=(r,g)=>r.dispatch("EditableRootStateChange",{state:g}),Fo={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:r=>r.shiftKey||r.ctrlKey||r.altKey||Fo.metaKeyPressed(r),metaKeyPressed:r=>fr.os.isMacOS()||fr.os.isiOS()?r.metaKey:r.ctrlKey&&!r.altKey},Ph="data-mce-selected",s6="table,img,figure.image,hr,video,span.mce-preview-object,details",s5=Math.abs,_w=Math.round,ww={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},D3=r=>r.type==="longpress"||r.type.indexOf("touch")===0,Ow=(r,g)=>{const B=g.dom,H=g.getDoc(),re=document,be=g.getBody();let Re,Ke,ct,kt,Wt,Jt,ln,kn,Vn,Rn,qn,pr,Tr,wr,Ur,wo,jo;const di=ci=>E(ci)&&(An(ci)||B.is(ci,"figure.image")),lo=ci=>Zr(ci)||B.hasClass(ci,"mce-preview-object"),eo=(ci,Va)=>{if(D3(ci)){const Xa=ci.touches[0];return di(ci.target)&&!Ty(Xa.clientX,Xa.clientY,Va)}else return di(ci.target)&&!Ty(ci.clientX,ci.clientY,Va)},xo=ci=>{const Va=ci.target;eo(ci,g.selection.getRng())&&!ci.isDefaultPrevented()&&g.selection.select(Va)},bi=ci=>B.hasClass(ci,"mce-preview-object")&&E(ci.firstElementChild)?[ci,ci.firstElementChild]:B.is(ci,"figure.image")?[ci.querySelector("img")]:[ci],Bi=ci=>{const Va=bd(g);return!Va||ci.getAttribute("data-mce-resize")==="false"||ci===g.getBody()?!1:B.hasClass(ci,"mce-preview-object")&&E(ci.firstElementChild)?_f(sr.fromDom(ci.firstElementChild),Va):_f(sr.fromDom(ci),Va)},$a=(ci,Va)=>{if(lo(Va))return ci.create("img",{src:fr.transparentSrc});if(Et(Va)){const If=xr(kt.name,"n")?Xe:tt,el=Va.cloneNode(!0);return If(ci.select("tr",el)).each(Yu=>{const Pg=ci.select("td,th",Yu);ci.setStyle(Yu,"height",null),ye(Pg,m1=>ci.setStyle(m1,"height",null))}),el}else return Va.cloneNode(!0)},Ia=(ci,Va,Xa)=>{if(E(Xa)){const If=bi(ci);ye(If,el=>{el.style[Va]||!g.schema.isValid(el.nodeName.toLowerCase(),Va)?B.setStyle(el,Va,Xa):B.setAttrib(el,Va,""+Xa)})}},Us=(ci,Va,Xa)=>{Ia(ci,"width",Va),Ia(ci,"height",Xa)},sl=ci=>{let Va,Xa,If,el,Yu;Va=ci.screenX-Jt,Xa=ci.screenY-ln,wr=Va*kt[2]+Rn,Ur=Xa*kt[3]+qn,wr=wr<5?5:wr,Ur=Ur<5?5:Ur,(di(Re)||lo(Re))&&a0(g)!==!1?If=!Fo.modifierPressed(ci):If=Fo.modifierPressed(ci),If&&(s5(Va)>s5(Xa)?(Ur=_w(wr*pr),wr=_w(Ur/pr)):(wr=_w(Ur/pr),Ur=_w(wr*pr))),Us(Ke,wr,Ur),el=kt.startPos.x+Va,Yu=kt.startPos.y+Xa,el=el>0?el:0,Yu=Yu>0?Yu:0,B.setStyles(ct,{left:el,top:Yu,display:"block"}),ct.innerHTML=wr+" × "+Ur,kt[2]<0&&Ke.clientWidth<=wr&&B.setStyle(Ke,"left",kn+(Rn-wr)),kt[3]<0&&Ke.clientHeight<=Ur&&B.setStyle(Ke,"top",Vn+(qn-Ur)),Va=be.scrollWidth-wo,Xa=be.scrollHeight-jo,Va+Xa!==0&&B.setStyles(ct,{left:el-Va,top:Yu-Xa}),Tr||(iE(g,Re,Rn,qn,"corner-"+kt.name),Tr=!0)},nu=()=>{const ci=Tr;Tr=!1,ci&&(Ia(Re,"width",wr),Ia(Re,"height",Ur)),B.unbind(H,"mousemove",sl),B.unbind(H,"mouseup",nu),re!==H&&(B.unbind(re,"mousemove",sl),B.unbind(re,"mouseup",nu)),B.remove(Ke),B.remove(ct),B.remove(Wt),jd(Re),ci&&(aE(g,Re,wr,Ur,"corner-"+kt.name),B.setAttrib(Re,"style",B.getAttrib(Re,"style"))),g.nodeChanged()},jd=ci=>{ii();const Va=B.getPos(ci,be),Xa=Va.x,If=Va.y,el=ci.getBoundingClientRect(),Yu=el.width||el.right-el.left,Pg=el.height||el.bottom-el.top;Re!==ci&&(Wo(),Re=ci,wr=Ur=0);const m1=g.dispatch("ObjectSelected",{target:ci});Bi(ci)&&!m1.isDefaultPrevented()?Ge(ww,(Dh,om)=>{const Rg=Lg=>{const zi=bi(Re)[0];Jt=Lg.screenX,ln=Lg.screenY,Rn=zi.clientWidth,qn=zi.clientHeight,pr=qn/Rn,kt=Dh,kt.name=om,kt.startPos={x:Yu*Dh[0]+Xa,y:Pg*Dh[1]+If},wo=be.scrollWidth,jo=be.scrollHeight,Wt=B.add(be,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),B.setStyles(Wt,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),Ke=$a(B,Re),B.addClass(Ke,"mce-clonedresizable"),B.setAttrib(Ke,"data-mce-bogus","all"),Ke.contentEditable="false",B.setStyles(Ke,{left:Xa,top:If,margin:0}),Us(Ke,Yu,Pg),Ke.removeAttribute(Ph),be.appendChild(Ke),B.bind(H,"mousemove",sl),B.bind(H,"mouseup",nu),re!==H&&(B.bind(re,"mousemove",sl),B.bind(re,"mouseup",nu)),ct=B.add(be,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},Rn+" × "+qn)};let xp=B.get("mceResizeHandle"+om);xp&&B.remove(xp),xp=B.add(be,"div",{id:"mceResizeHandle"+om,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+om+"-resize; margin:0; padding:0"}),B.bind(xp,"mousedown",Lg=>{Lg.stopImmediatePropagation(),Lg.preventDefault(),Rg(Lg)}),Dh.elm=xp,B.setStyles(xp,{left:Yu*Dh[0]+Xa-xp.offsetWidth/2,top:Pg*Dh[1]+If-xp.offsetHeight/2})}):Wo(!1)},ml=dg(jd,0),Wo=(ci=!0)=>{ml.cancel(),ii(),Re&&ci&&Re.removeAttribute(Ph),Ge(ww,(Va,Xa)=>{const If=B.get("mceResizeHandle"+Xa);If&&(B.unbind(If),B.remove(If))})},Ei=(ci,Va)=>B.isChildOf(ci,Va),ws=ci=>{if(Tr||g.removed||g.composing)return;const Va=ci.type==="mousedown"?ci.target:r.getNode(),Xa=pu(sr.fromDom(Va),s6).map(el=>el.dom).filter(el=>B.isEditable(el.parentElement)||el.nodeName==="IMG"&&B.isEditable(el)).getOrUndefined(),If=E(Xa)?B.getAttrib(Xa,Ph,"1"):"1";if(ye(B.select(`img[${Ph}],hr[${Ph}]`),el=>{el.removeAttribute(Ph)}),E(Xa)&&Ei(Xa,be)&&g.hasFocus()){Qi();const el=r.getStart(!0);if(Ei(el,Xa)&&Ei(r.getEnd(!0),Xa)){B.setAttrib(Xa,Ph,If),ml.throttle(Xa);return}}Wo()},ii=()=>{Ge(ww,ci=>{ci.elm&&(B.unbind(ci.elm),delete ci.elm)})},Qi=()=>{try{g.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return g.on("init",()=>{Qi(),g.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",ws),g.on("keyup compositionend",ci=>{Re&&Re.nodeName==="TABLE"&&ws(ci)}),g.on("hide blur",Wo),g.on("contextmenu longpress",xo,!0)}),g.on("remove",ii),{isResizable:Bi,showResizeRect:jd,hideResizeRect:Wo,updateResizeRect:ws,destroy:()=>{ml.cancel(),Re=Ke=Wt=null}}},l6=(r,g)=>{g.fold(B=>{r.setStartBefore(B.dom)},(B,H)=>{r.setStart(B.dom,H)},B=>{r.setStartAfter(B.dom)})},c6=(r,g)=>{g.fold(B=>{r.setEndBefore(B.dom)},(B,H)=>{r.setEnd(B.dom,H)},B=>{r.setEndAfter(B.dom)})},l5=(r,g,B)=>{const H=r.document.createRange();return l6(H,g),c6(H,B),H},c5=(r,g,B,H,re)=>{const be=r.document.createRange();return be.setStart(g.dom,B),be.setEnd(H.dom,re),be},dv=aa.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),u5=(r,g,B)=>g(sr.fromDom(B.startContainer),B.startOffset,sr.fromDom(B.endContainer),B.endOffset),u6=(r,g)=>g.match({domRange:B=>({ltr:$(B),rtl:Y.none}),relative:(B,H)=>({ltr:xt(()=>l5(r,B,H)),rtl:xt(()=>Y.some(l5(r,H,B)))}),exact:(B,H,re,be)=>({ltr:xt(()=>c5(r,B,H,re,be)),rtl:xt(()=>Y.some(c5(r,re,be,B,H)))})}),uE=(r,g)=>{const B=g.ltr();return B.collapsed?g.rtl().filter(re=>re.collapsed===!1).map(re=>dv.rtl(sr.fromDom(re.endContainer),re.endOffset,sr.fromDom(re.startContainer),re.startOffset)).getOrThunk(()=>u5(r,dv.ltr,B)):u5(r,dv.ltr,B)},fE=(r,g)=>{const B=u6(r,g);return uE(r,B)};dv.ltr,dv.rtl;const Yh={create:(r,g,B,H)=>({start:r,soffset:g,finish:B,foffset:H})},ch=(r,g,B)=>{var H,re;return Y.from((re=(H=r.dom).caretPositionFromPoint)===null||re===void 0?void 0:re.call(H,g,B)).bind(be=>{if(be.offsetNode===null)return Y.none();const Re=r.dom.createRange();return Re.setStart(be.offsetNode,be.offset),Re.collapse(),Y.some(Re)})},w2=(r,g,B)=>{var H,re;return Y.from((re=(H=r.dom).caretRangeFromPoint)===null||re===void 0?void 0:re.call(H,g,B))},FD=(()=>document.caretPositionFromPoint?ch:document.caretRangeFromPoint?w2:Y.none)(),dE=(r,g,B)=>{const H=sr.fromDom(r.document);return FD(H,g,B).map(re=>Yh.create(sr.fromDom(re.startContainer),re.startOffset,sr.fromDom(re.endContainer),re.endOffset))},f5=aa.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),as=(r,g,B,H)=>r.fold(g,B,H),ND=r=>r.fold(Q,Q,Q),d6=f5.before,h6=f5.on,$D=f5.after,Cy={before:d6,on:h6,after:$D,cata:as,getStart:ND},Sw=aa.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),hE=r=>Sw.exact(r.start,r.soffset,r.finish,r.foffset),pE=r=>r.match({domRange:g=>sr.fromDom(g.startContainer),relative:(g,B)=>Cy.getStart(g),exact:(g,B,H,re)=>g}),mE=Sw.domRange,B3=Sw.relative,kw=Sw.exact,p6=r=>{const g=pE(r);return Mu(g)},VD=Yh.create,O2={domRange:mE,relative:B3,exact:kw,exactFromRange:hE,getWin:p6,range:VD},d5=(r,g)=>{const B=sa(r);return B==="input"?Cy.after(r):ce(["br","img"],B)?g===0?Cy.before(r):Cy.after(r):Cy.on(r,g)},UD=(r,g)=>{const B=r.fold(Cy.before,d5,Cy.after),H=g.fold(Cy.before,d5,Cy.after);return O2.relative(B,H)},m6=(r,g,B,H)=>{const re=d5(r,g),be=d5(B,H);return O2.relative(re,be)},gE=r=>r.match({domRange:g=>{const B=sr.fromDom(g.startContainer),H=sr.fromDom(g.endContainer);return m6(B,g.startOffset,H,g.endOffset)},relative:UD,exact:m6}),ea=(r,g)=>{const H=(g||document).createDocumentFragment();return ye(r,re=>{H.appendChild(re.dom)}),sr.fromDom(H)},pe=r=>{const g=O2.getWin(r).dom,B=(re,be,Re,Ke)=>c5(g,re,be,Re,Ke),H=gE(r);return fE(g,H).match({ltr:B,rtl:B})},Ce=(r,g,B)=>dE(r,g,B),Ye=(r,g,B)=>{const H=Mu(sr.fromDom(B));return Ce(H.dom,r,g).map(re=>{const be=B.createRange();return be.setStart(re.start.dom,re.soffset),be.setEnd(re.finish.dom,re.foffset),be}).getOrUndefined()},st=(r,g)=>E(r)&&E(g)&&r.startContainer===g.startContainer&&r.startOffset===g.startOffset&&r.endContainer===g.endContainer&&r.endOffset===g.endOffset,St=(r,g,B)=>{let H=r;for(;H&&H!==g;){if(B(H))return H;H=H.parentNode}return null},Ut=(r,g,B)=>St(r,g,B)!==null,un=(r,g,B)=>Ut(r,g,H=>H.nodeName===B),Tn=(r,g)=>Ch(r)&&!Ut(r,g,Gp),$n=(r,g,B)=>{const H=g.parentNode;if(H){const re=new kc(g,r.getParent(H,r.isBlock)||r.getRoot());let be;for(;be=re[B?"prev":"next"]();)if(On(be))return!0}return!1},ur=(r,g)=>{var B;return((B=r.previousSibling)===null||B===void 0?void 0:B.nodeName)===g},Nr=(r,g)=>{let B=g;for(;B&&B!==r;){if(rr(B))return!0;B=B.parentNode}return!1},Ro=(r,g,B,H,re)=>{const be=r.getRoot(),Re=r.schema.getNonEmptyElements(),Ke=re.parentNode;let ct,kt;if(!Ke)return Y.none();const Wt=r.getParent(Ke,r.isBlock)||be;if(H&&On(re)&&g&&r.isEmpty(Wt))return Y.some(qr(Ke,r.nodeIndex(re)));const Jt=new kc(re,Wt);for(;kt=Jt[H?"prev":"next"]();){if(r.getContentEditableParent(kt)==="false"||Tn(kt,be))return Y.none();if(Nt(kt)&&kt.data.length>0)return un(kt,be,"A")?Y.none():Y.some(qr(kt,H?kt.data.length:0));if(r.isBlock(kt)||Re[kt.nodeName.toLowerCase()])return Y.none();ct=kt}return xn(ct)?Y.none():B&&ct?Y.some(qr(ct,0)):Y.none()},ai=(r,g,B,H)=>{const re=r.getRoot();let be,Re=!1,Ke=B?H.startContainer:H.endContainer,ct=B?H.startOffset:H.endOffset;const kt=ne(Ke)&&ct===Ke.childNodes.length,Wt=r.schema.getNonEmptyElements();let Jt=B;if(Ch(Ke))return Y.none();if(ne(Ke)&&ct>Ke.childNodes.length-1&&(Jt=!1),pn(Ke)&&(Ke=re,ct=0),Ke===re){if(Jt&&(be=Ke.childNodes[ct>0?ct-1:0],be&&(Ch(be)||Wt[be.nodeName]||Et(be))))return Y.none();if(Ke.hasChildNodes()){if(ct=Math.min(!Jt&&ct>0?ct-1:ct,Ke.childNodes.length-1),Ke=Ke.childNodes[ct],ct=Nt(Ke)&&kt?Ke.data.length:0,!g&&Ke===re.lastChild&&Et(Ke)||Nr(re,Ke)||Ch(Ke)||$o(Ke))return Y.none();if(Ke.hasChildNodes()&&!Et(Ke)){be=Ke;const ln=new kc(Ke,re);do{if(rr(be)||Ch(be)){Re=!1;break}if(Nt(be)&&be.data.length>0){ct=Jt?0:be.data.length,Ke=be,Re=!0;break}if(Wt[be.nodeName.toLowerCase()]&&!Pr(be)){ct=r.nodeIndex(be),Ke=be.parentNode,Jt||ct++,Re=!0;break}}while(be=Jt?ln.next():ln.prev())}}}return g&&(Nt(Ke)&&ct===0&&Ro(r,kt,g,!0,Ke).each(ln=>{Ke=ln.container(),ct=ln.offset(),Re=!0}),ne(Ke)&&(be=Ke.childNodes[ct],be||(be=Ke.childNodes[ct-1]),be&&On(be)&&!ur(be,"A")&&!$n(r,be,!1)&&!$n(r,be,!0)&&Ro(r,kt,g,!0,be).each(ln=>{Ke=ln.container(),ct=ln.offset(),Re=!0}))),Jt&&!g&&Nt(Ke)&&ct===Ke.data.length&&Ro(r,kt,g,!1,Ke).each(ln=>{Ke=ln.container(),ct=ln.offset(),Re=!0}),Re&&Ke?Y.some(qr(Ke,ct)):Y.none()},Ko=(r,g)=>{const B=g.collapsed,H=g.cloneRange(),re=qr.fromRangeStart(g);return ai(r,B,!0,H).each(be=>{(!B||!qr.isAbove(re,be))&&H.setStart(be.container(),be.offset())}),B||ai(r,B,!1,H).each(be=>{H.setEnd(be.container(),be.offset())}),B&&H.collapse(!0),st(g,H)?Y.none():Y.some(H)},Qo=(r,g)=>r.splitText(g),_i=r=>{let g=r.startContainer,B=r.startOffset,H=r.endContainer,re=r.endOffset;if(g===H&&Nt(g)){if(B>0&&BB){re=re-B;const be=Qo(H,re).previousSibling;g=H=be,re=be.data.length,B=0}else re=0}else if(Nt(g)&&B>0&&B0&&re({walk:(be,Re)=>yw(r,be,Re),split:_i,expand:(be,Re={type:"word"})=>{if(Re.type==="word"){const Ke=Oy(r,be,[{inline:"span"}]),ct=r.createRng();return ct.setStart(Ke.startContainer,Ke.startOffset),ct.setEnd(Ke.endContainer,Ke.endOffset),ct}return be},normalize:be=>Ko(r,be).fold(oe,Re=>(be.setStart(Re.startContainer,Re.startOffset),be.setEnd(Re.endContainer,Re.endOffset),!0))});To.compareRanges=st,To.getCaretRangeFromPoint=Ye,To.getSelectedNode=Pm,To.getNode=fi;const Yi=((r,g)=>{const B=(Ke,ct)=>{if(!L(ct)&&!ct.match(/^[0-9]+$/))throw new Error(r+".set accepts only positive integer values. Value was "+ct);const kt=Ke.dom;af(kt)&&(kt.style[r]=ct+"px")},H=Ke=>{const ct=g(Ke);if(ct<=0||ct===null){const kt=pi(Ke,r);return parseFloat(kt)||0}return ct},re=H,be=(Ke,ct)=>Ie(ct,(kt,Wt)=>{const Jt=pi(Ke,Wt),ln=Jt===void 0?0:parseInt(Jt,10);return isNaN(ln)?kt:kt+ln},0);return{set:B,get:H,getOuter:re,aggregate:be,max:(Ke,ct,kt)=>{const Wt=be(Ke,kt);return ct>Wt?ct-Wt:0}}})("height",r=>{const g=r.dom;return zc(r)?g.getBoundingClientRect().height:g.offsetHeight}),ri=r=>Yi.get(r),Ms=()=>sr.fromDom(document),al=(r,g)=>r.view(g).fold($([]),H=>{const re=r.owner(H),be=al(r,re);return[H].concat(be)}),Gs=(r,g)=>{const B=g.owner(r);return al(g,B)};var e1=Object.freeze({__proto__:null,view:r=>{var g;return(r.dom===document?Y.none():Y.from((g=r.dom.defaultView)===null||g===void 0?void 0:g.frameElement)).map(sr.fromDom)},owner:r=>Bc(r)});const Ay=r=>{const g=Ms(),B=Gc(g),H=Gs(r,e1),re=_h(r),be=Pe(H,(Re,Ke)=>{const ct=_h(Ke);return{left:Re.left+ct.left,top:Re.top+ct.top}},{left:0,top:0});return us(be.left+re.left+B.left,be.top+re.top+B.top)},My=r=>sa(r)==="textarea",Zs=(r,g)=>r.dispatch("ScrollIntoView",g).isDefaultPrevented(),Rh=(r,g)=>{r.dispatch("AfterScrollIntoView",g)},Lh=(r,g)=>{const B=Oc(r);if(B.length===0||My(r))return{element:r,offset:g};if(g{const B=Hf(r),H=ri(r);return{element:r,bottom:B.top+H,height:H,pos:B,cleanup:g}},Qm=(r,g)=>{const B=Lh(r,g),H=sr.fromHtml(''+nc+"");return Fc(B.element,H),jm(H,()=>ja(H))},Za=r=>jm(sr.fromDom(r),k),tu=(r,g,B,H)=>{xa(r,(re,be)=>Tw(r,g,B,H),B)},t1=(r,g,B,H,re)=>{const be={elm:H.element.dom,alignToTop:re};if(Zs(r,be))return;const Re=Gc(g).top;B(r,g,Re,H,re),Rh(r,be)},Tw=(r,g,B,H)=>{const re=sr.fromDom(r.getBody()),be=sr.fromDom(r.getDoc());Kl(re);const Re=Qm(sr.fromDom(B.startContainer),B.startOffset);t1(r,be,g,Re,H),Re.cleanup()},vp=(r,g,B,H)=>{const re=sr.fromDom(r.getDoc());t1(r,re,B,Za(g),H)},xa=(r,g,B)=>{const H=B.startContainer,re=B.startOffset,be=B.endContainer,Re=B.endOffset;g(sr.fromDom(H),sr.fromDom(be));const Ke=r.dom.createRng();Ke.setStart(H,re),Ke.setEnd(be,Re),r.selection.setRng(B)},h5=(r,g,B,H,re)=>{const be=g.pos;if(H)dd(be.left,be.top,re);else{const Re=be.top-B+g.height;dd(-r.getBody().getBoundingClientRect().left,Re,re)}},p5=(r,g,B,H,re,be)=>{const Re=H+B,Ke=re.pos.top,ct=re.bottom,kt=ct-Ke>=H;KeRe?h5(r,re,H,kt?be!==!1:be===!0,g):ct>Re&&!kt&&h5(r,re,H,be===!0,g)},z3=(r,g,B,H,re)=>{const be=Mu(g).dom.innerHeight;p5(r,g,B,be,H,re)},g6=(r,g,B,H,re)=>{const be=Mu(g).dom.innerHeight;p5(r,g,B,be,H,re);const Re=Ay(H.element),Ke=fa(window);Re.topKe.bottom&&rl(H.element,re===!0)},qb=(r,g,B)=>tu(r,z3,g,B),hv=(r,g,B)=>vp(r,g,z3,B),v6=(r,g,B)=>tu(r,g6,g,B),Cw=(r,g,B)=>vp(r,g,g6,B),Nq=(r,g,B)=>{(r.inline?hv:Cw)(r,g,B)},m5=(r,g,B)=>{(r.inline?qb:v6)(r,g,B)},F3=(r,g=!1)=>r.dom.focus({preventScroll:g}),Aw=r=>{const g=of(r).dom;return r.dom===g.activeElement},vE=(r=Ms())=>Y.from(r.dom.activeElement).map(sr.fromDom),jD=r=>vE(of(r)).filter(g=>r.dom.contains(g.dom)),QD=(r,g)=>{const B=Ss(g)?ry(g).length:Oc(g).length+1;return r>B?B:r<0?0:r},$q=r=>O2.range(r.start,QD(r.soffset,r.start),r.finish,QD(r.foffset,r.finish)),HD=(r,g)=>!V(g.dom)&&(Qu(r,g)||Fa(r,g)),yE=r=>g=>HD(r,g.start)&&HD(r,g.finish),Nue=r=>r.inline||fr.browser.isFirefox(),Vq=r=>O2.range(sr.fromDom(r.startContainer),r.startOffset,sr.fromDom(r.endContainer),r.endOffset),ZD=r=>{const g=r.getSelection();return(!g||g.rangeCount===0?Y.none():Y.from(g.getRangeAt(0))).map(Vq)},bE=r=>{const g=Mu(r);return ZD(g.dom).filter(yE(r))},xE=(r,g)=>Y.from(g).filter(yE(r)).map($q),_E=r=>{const g=document.createRange();try{return g.setStart(r.start.dom,r.soffset),g.setEnd(r.finish.dom,r.foffset),Y.some(g)}catch{return Y.none()}},g5=r=>{const g=Nue(r)?bE(sr.fromDom(r.getBody())):Y.none();r.bookmark=g.isSome()?g:r.bookmark},y6=r=>(r.bookmark?r.bookmark:Y.none()).bind(B=>xE(sr.fromDom(r.getBody()),B)).bind(_E),qD=r=>{y6(r).each(g=>r.selection.setRng(g))},WD={isEditorUIElement:r=>{const g=r.className.toString();return g.indexOf("tox-")!==-1||g.indexOf("mce-")!==-1}},YD=(r,g)=>(L(g)||(g=0),setTimeout(r,g)),Uq=(r,g)=>(L(g)||(g=0),setInterval(r,g)),kg={setEditorTimeout:(r,g,B)=>YD(()=>{r.removed||g()},B),setEditorInterval:(r,g,B)=>{const H=Uq(()=>{r.removed?clearInterval(H):g()},B);return H}},XD=r=>r.type==="nodechange"&&r.selectionChange,GD=(r,g)=>{const B=()=>{g.throttle()};Nl.DOM.bind(document,"mouseup",B),r.on("remove",()=>{Nl.DOM.unbind(document,"mouseup",B)})},KD=(r,g)=>{r.on("mouseup touchend",B=>{g.throttle()})},JD=(r,g)=>{KD(r,g),r.on("keyup NodeChange AfterSetSelectionRange",B=>{XD(B)||g5(r)})},jq=r=>{const g=dg(()=>{g5(r)},0);r.on("init",()=>{r.inline&&GD(r,g),JD(r,g)}),r.on("remove",()=>{g.cancel()})};let N3;const OE=Nl.DOM,Qq=r=>ne(r)&&WD.isEditorUIElement(r),SE=r=>{const g=r.classList;return g!==void 0?g.contains("tox-edit-area")||g.contains("tox-edit-area__iframe")||g.contains("mce-content-body"):!1},b6=(r,g)=>{const B=Eh(r);return OE.getParent(g,re=>Qq(re)||(B?r.dom.is(re,B):!1))!==null},kE=r=>{try{const g=of(sr.fromDom(r.getElement()));return vE(g).fold(()=>document.body,B=>B.dom)}catch{return document.body}},Hq=(r,g)=>{const B=g.editor;jq(B);const H=(re,be)=>{if(yy(re)&&re.inline!==!0){const Re=sr.fromDom(re.getContainer());be(Re,"tox-edit-focus")}};B.on("focusin",()=>{const re=r.focusedEditor;SE(kE(B))&&H(B,xf),re!==B&&(re&&re.dispatch("blur",{focusedEditor:B}),r.setActive(B),r.focusedEditor=B,B.dispatch("focus",{blurredEditor:re}),B.focus(!0))}),B.on("focusout",()=>{kg.setEditorTimeout(B,()=>{const re=r.focusedEditor;(!SE(kE(B))||re!==B)&&H(B,nf),!b6(B,kE(B))&&re===B&&(B.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})}),N3||(N3=re=>{const be=r.activeEditor;be&&bh(re).each(Re=>{const Ke=Re;Ke.ownerDocument===document&&Ke!==document.body&&!b6(be,Ke)&&r.focusedEditor===be&&(be.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})},OE.bind(document,"focusin",N3))},x6=(r,g)=>{r.focusedEditor===g.editor&&(r.focusedEditor=null),!r.activeEditor&&N3&&(OE.unbind(document,"focusin",N3),N3=null)},eB=r=>{r.on("AddEditor",U(Hq,r)),r.on("RemoveEditor",U(x6,r))},Zq=(r,g)=>r.dom.getParent(g,B=>r.dom.getContentEditable(B)==="true"),tB=r=>r.collapsed?Y.from(fi(r.startContainer,r.startOffset)).map(sr.fromDom):Y.none(),nB=(r,g)=>tB(g).bind(B=>B1(B)?Y.some(B):Qu(r,B)?Y.none():Y.some(r)),rB=(r,g)=>{nB(sr.fromDom(r.getBody()),g).bind(B=>lh(B.dom)).fold(()=>{r.selection.normalize()},B=>r.selection.setRng(B.toRange()))},TE=r=>{if(r.setActive)try{r.setActive()}catch{r.focus()}else r.focus()},qq=r=>Aw(r)||jD(r).isSome(),Wq=r=>E(r.iframeElement)&&Aw(sr.fromDom(r.iframeElement)),Yq=r=>{const g=r.getBody();return g&&qq(sr.fromDom(g))},oB=r=>{const g=of(sr.fromDom(r.getElement()));return vE(g).filter(B=>!SE(B.dom)&&b6(r,B.dom)).isSome()},Mw=r=>r.inline?Yq(r):Wq(r),v5=r=>Mw(r)||oB(r),Xq=r=>{const g=r.selection,B=r.getBody();let H=g.getRng();r.quirks.refreshContentEditable();const re=Re=>{y6(Re).each(Ke=>{Re.selection.setRng(Ke),H=Ke})};!Mw(r)&&r.hasEditableRoot()&&re(r);const be=Zq(r,g.getNode());if(be&&r.dom.isChildOf(be,B)){TE(be),r.hasEditableRoot()||re(r),rB(r,H),CE(r);return}r.inline||(fr.browser.isOpera()||TE(B),r.getWin().focus()),(fr.browser.isFirefox()||r.inline)&&(TE(B),rB(r,H)),CE(r)},CE=r=>r.editorManager.setActive(r),AE=(r,g)=>{r.removed||(g?CE(r):Xq(r))},iB=(r,g)=>g.collapsed?r.isEditable(g.startContainer):r.isEditable(g.startContainer)&&r.isEditable(g.endContainer),ME=(r,g,B,H,re)=>{const be=B?g.startContainer:g.endContainer,Re=B?g.startOffset:g.endOffset;return Y.from(be).map(sr.fromDom).map(Ke=>!H||!g.collapsed?ks(Ke,re(Ke,Re)).getOr(Ke):Ke).bind(Ke=>mc(Ke)?Y.some(Ke):Hu(Ke).filter(mc)).map(Ke=>Ke.dom).getOr(r)},EE=(r,g,B=!1)=>ME(r,g,!0,B,(H,re)=>Math.min(Hl(H),re)),PE=(r,g,B=!1)=>ME(r,g,!1,B,(H,re)=>re>0?re-1:re),aB=(r,g)=>{const B=r;for(;r&&Nt(r)&&r.length===0;)r=g?r.nextSibling:r.previousSibling;return r||B},Gq=(r,g)=>{if(!g)return r;let B=g.startContainer,H=g.endContainer;const re=g.startOffset,be=g.endOffset;let Re=g.commonAncestorContainer;g.collapsed||(B===H&&be-re<2&&B.hasChildNodes()&&(Re=B.childNodes[re]),Nt(B)&&Nt(H)&&(B.length===re?B=aB(B.nextSibling,!0):B=B.parentNode,be===0?H=aB(H.previousSibling,!1):H=H.parentNode,B&&B===H&&(Re=B)));const Ke=Nt(Re)?Re.parentNode:Re;return ge(Ke)?Ke:r},Kq=(r,g,B,H)=>{const re=[],be=r.getRoot(),Re=r.getParent(B||EE(be,g,g.collapsed),r.isBlock),Ke=r.getParent(H||PE(be,g,g.collapsed),r.isBlock);if(Re&&Re!==be&&re.push(Re),Re&&Ke&&Re!==Ke){let ct;const kt=new kc(Re,be);for(;(ct=kt.next())&&ct!==Ke;)r.isBlock(ct)&&re.push(ct)}return Ke&&Re!==Ke&&Ke!==be&&re.push(Ke),re},Jq=(r,g,B)=>Y.from(g).bind(H=>Y.from(H.parentNode).map(re=>{const be=r.nodeIndex(H),Re=r.createRng();return Re.setStart(re,be),Re.setEnd(re,be+1),B&&(YS(r,Re,H,!0),YS(r,Re,H,!1)),Re})),$3=(r,g)=>ve(g,B=>{const H=r.dispatch("GetSelectionRange",{range:B});return H.range!==B?H.range:B}),sB={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},y5=(r,g,B)=>{const H=B?"lastChild":"firstChild",re=B?"prev":"next";if(r[H])return r[H];if(r!==g){let be=r[re];if(be)return be;for(let Re=r.parent;Re&&Re!==g;Re=Re.parent)if(be=Re[re],be)return be}},lB=r=>{var g;const B=(g=r.value)!==null&&g!==void 0?g:"";if(!Sf(B))return!1;const H=r.parent;return!(H&&(H.name!=="span"||H.attr("style"))&&/^[ ]+$/.test(B))},RE=r=>{const g=r.name==="a"&&!r.attr("href")&&r.attr("id");return r.attr("name")||r.attr("id")&&!r.firstChild||r.attr("data-mce-bookmark")||g};class yp{static create(g,B){const H=new yp(g,sB[g]||1);return B&&Ge(B,(re,be)=>{H.attr(be,re)}),H}constructor(g,B){this.name=g,this.type=B,B===1&&(this.attributes=[],this.attributes.map={})}replace(g){const B=this;return g.parent&&g.remove(),B.insert(g,B),B.remove(),B}attr(g,B){const H=this;if(!v(g))return E(g)&&Ge(g,(be,Re)=>{H.attr(Re,be)}),H;const re=H.attributes;if(re){if(B!==void 0){if(B===null){if(g in re.map){delete re.map[g];let be=re.length;for(;be--;)if(re[be].name===g)return re.splice(be,1),H}return H}if(g in re.map){let be=re.length;for(;be--;)if(re[be].name===g){re[be].value=B;break}}else re.push({name:g,value:B});return re.map[g]=B,H}return re.map[g]}}clone(){const g=this,B=new yp(g.name,g.type),H=g.attributes;if(H){const re=[];re.map={};for(let be=0,Re=H.length;bev(r.nodeValue)&&r.nodeValue.includes(nc),uB=r=>`${r.length===0?"":`${ve(r,g=>`[${g}]`).join(",")},`}[data-mce-bogus="all"]`,tW=(r,g)=>g.querySelectorAll(uB(r)),fB=r=>document.createTreeWalker(r,NodeFilter.SHOW_COMMENT,g=>cB(g)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),dB=r=>document.createTreeWalker(r,NodeFilter.SHOW_TEXT,g=>{if(cB(g)){const B=g.parentNode;return B&&_t(eW,B.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP}),nW=r=>fB(r).nextNode()!==null,rW=r=>dB(r).nextNode()!==null,oW=(r,g)=>g.querySelector(uB(r))!==null,iW=(r,g)=>{ye(tW(r,g),B=>{const H=sr.fromDom(B);uc(H,"data-mce-bogus")==="all"?ja(H):ye(r,re=>{Vf(H,re)&&gc(H,re)})})},hB=r=>{let g=r.nextNode();for(;g!==null;)g.nodeValue=null,g=r.nextNode()},_6=I(hB,fB),pB=I(hB,dB),LE=(r,g)=>{const B=[{condition:U(oW,g),action:U(iW,g)},{condition:nW,action:_6},{condition:rW,action:pB}];let H=r,re=!1;return ye(B,({condition:be,action:Re})=>{be(H)&&(re||(H=r.cloneNode(!0),re=!0),Re(H))}),H},mB=r=>{const g=Zl(r,"[data-mce-bogus]");ye(g,B=>{uc(B,"data-mce-bogus")==="all"?ja(B):N0(B)?(Fc(B,sr.fromText(Iu)),ja(B)):vu(B)})},gB=r=>{const g=Zl(r,"input");ye(g,B=>{gc(B,"name")})},aW=(r,g)=>{const B=dc(r),H=new RegExp(`^(<${B}[^>]*>( | |\\s| |
    |)<\\/${B}>[\r +Required: `+g.join(", "));return Jt[Re].apply(null,ct)},log:Jt=>{console.log(Jt,{constructors:g,constructor:Re,params:ct})}}}}),B}};aa.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Fs=r=>{const g=[],B=[];return ye(r,H=>{H.fold(re=>{g.push(re)},re=>{B.push(re)})}),{errors:g,values:B}},$c=r=>r.type==="inline-command"||r.type==="inline-format",xc=r=>r.type==="block-command"||r.type==="block-format",_u=(r,g)=>(r.type==="block-command"||r.type==="block-format")&&r.trigger===g,qu=r=>{var g;const B=re=>gs.error({message:re,pattern:r}),H=(re,be,Re)=>{if(r.format!==void 0){let Ke;if(A(r.format)){if(!Oe(r.format,v))return B(re+" pattern has non-string items in the `format` array");Ke=r.format}else if(v(r.format))Ke=[r.format];else return B(re+" pattern has non-string `format` parameter");return gs.value(be(Ke))}else return r.cmd!==void 0?v(r.cmd)?gs.value(Re(r.cmd,r.value)):B(re+" pattern has non-string `cmd` parameter"):B(re+" pattern is missing both `format` and `cmd` parameters")};if(!_(r))return B("Raw pattern is not an object");if(!v(r.start))return B("Raw pattern is missing `start` parameter");if(r.end!==void 0){if(!v(r.end))return B("Inline pattern has non-string `end` parameter");if(r.start.length===0&&r.end.length===0)return B("Inline pattern has empty `start` and `end` parameters");let re=r.start,be=r.end;return be.length===0&&(be=re,re=""),H("Inline",Re=>({type:"inline-format",start:re,end:be,format:Re}),(Re,Ke)=>({type:"inline-command",start:re,end:be,cmd:Re,value:Ke}))}else{if(r.replacement!==void 0)return v(r.replacement)?r.start.length===0?B("Replacement pattern has empty `start` parameter"):gs.value({type:"inline-command",start:"",end:r.start,cmd:"mceInsertContent",value:r.replacement}):B("Replacement pattern has non-string `replacement` parameter");{const re=(g=r.trigger)!==null&&g!==void 0?g:"space";return r.start.length===0?B("Block pattern has empty `start` parameter"):H("Block",be=>({type:"block-format",start:r.start,format:be[0],trigger:re}),(be,Re)=>({type:"block-command",start:r.start,cmd:be,value:Re,trigger:re}))}}},Vc=r=>Te(r,xc),ml=r=>Te(r,$c),Uc=(r,g)=>({inlinePatterns:ml(r),blockPatterns:Vc(r),dynamicPatternsLookup:g}),wu=(r,g)=>({...r,blockPatterns:Te(r.blockPatterns,B=>_u(B,g))}),uf=r=>{const g=Fs(ve(r,qu));return ye(g.errors,B=>console.error(B.message,B.pattern)),g.values},ff=r=>g=>{const B=r(g);return uf(B)},jc=tr().deviceType,is=jc.isTouch(),Vs=Nl.DOM,Ac=r=>{const g=r.indexOf("=")>0?r.split(/[;,](?![^=;,]*(?:[;,]|$))/):r.split(",");return Ie(g,(B,H)=>{const re=H.split("="),be=re[0],Re=re.length>1?re[1]:be;return B[Fn(be)]=Fn(Re),B},{})},Bl=r=>m(r,RegExp),Uo=r=>g=>g.options.get(r),ql=r=>v(r)||_(r),Xs=(r,g="")=>B=>{const H=v(B);if(H)if(B.indexOf("=")!==-1){const re=Ac(B);return{value:Ct(re,r.id).getOr(g),valid:H}}else return{value:B,valid:H};else return{valid:!1,message:"Must be a string."}},ac=r=>{const g=r.options.register;g("id",{processor:"string",default:r.id}),g("selector",{processor:"string"}),g("target",{processor:"object"}),g("suffix",{processor:"string"}),g("cache_suffix",{processor:"string"}),g("base_url",{processor:"string"}),g("referrer_policy",{processor:"string",default:""}),g("language_load",{processor:"boolean",default:!0}),g("inline",{processor:"boolean",default:!1}),g("iframe_attrs",{processor:"object",default:{}}),g("doctype",{processor:"string",default:""}),g("document_base_url",{processor:"string",default:r.documentBaseUrl}),g("body_id",{processor:Xs(r,"tinymce"),default:"tinymce"}),g("body_class",{processor:Xs(r),default:""}),g("content_security_policy",{processor:"string",default:""}),g("br_in_pre",{processor:"boolean",default:!0}),g("forced_root_block",{processor:B=>{const H=v(B)&&Kn(B);return H?{value:B,valid:H}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),g("forced_root_block_attrs",{processor:"object",default:{}}),g("newline_behavior",{processor:B=>{const H=ce(["block","linebreak","invert","default"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),g("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),g("no_newline_selector",{processor:"string",default:""}),g("keep_styles",{processor:"boolean",default:!0}),g("end_container_on_empty_block",{processor:B=>R(B)?{valid:!0,value:B}:v(B)?{valid:!0,value:B}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),g("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),g("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),g("font_size_classes",{processor:"string",default:""}),g("automatic_uploads",{processor:"boolean",default:!0}),g("images_reuse_filename",{processor:"boolean",default:!1}),g("images_replace_blob_uris",{processor:"boolean",default:!0}),g("icons",{processor:"string",default:""}),g("icons_url",{processor:"string",default:""}),g("images_upload_url",{processor:"string",default:""}),g("images_upload_base_path",{processor:"string",default:""}),g("images_upload_credentials",{processor:"boolean",default:!1}),g("images_upload_handler",{processor:"function"}),g("language",{processor:"string",default:"en"}),g("language_url",{processor:"string",default:""}),g("entity_encoding",{processor:"string",default:"named"}),g("indent",{processor:"boolean",default:!0}),g("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_use_margin",{processor:"boolean",default:!1}),g("indentation",{processor:"string",default:"40px"}),g("content_css",{processor:B=>{const H=B===!1||v(B)||D(B,v);return H?v(B)?{value:ve(B.split(","),Fn),valid:H}:A(B)?{value:B,valid:H}:B===!1?{value:[],valid:H}:{value:B,valid:H}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:ev(r)?[]:["default"]}),g("content_style",{processor:"string"}),g("content_css_cors",{processor:"boolean",default:!1}),g("font_css",{processor:B=>{const H=v(B)||D(B,v);return H?{value:A(B)?B:ve(B.split(","),Fn),valid:H}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),g("inline_boundaries",{processor:"boolean",default:!0}),g("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),g("object_resizing",{processor:B=>{const H=R(B)||v(B);return H?B===!1||jc.isiPhone()||jc.isiPad()?{value:"",valid:H}:{value:B===!0?"table,img,figure.image,div,video,iframe":B,valid:H}:{valid:!1,message:"Must be boolean or a string"}},default:!is}),g("resize_img_proportional",{processor:"boolean",default:!0}),g("event_root",{processor:"string"}),g("service_message",{processor:"string"}),g("theme",{processor:B=>B===!1||v(B)||C(B),default:"silver"}),g("theme_url",{processor:"string"}),g("formats",{processor:"object"}),g("format_empty_lines",{processor:"boolean",default:!1}),g("format_noneditable_selector",{processor:"string",default:""}),g("preview_styles",{processor:B=>{const H=B===!1||v(B);return H?{value:B===!1?"":B,valid:H}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),g("custom_ui_selector",{processor:"string",default:""}),g("hidden_input",{processor:"boolean",default:!0}),g("submit_patch",{processor:"boolean",default:!0}),g("encoding",{processor:"string"}),g("add_form_submit_trigger",{processor:"boolean",default:!0}),g("add_unload_trigger",{processor:"boolean",default:!0}),g("custom_undo_redo_levels",{processor:"number",default:0}),g("disable_nodechange",{processor:"boolean",default:!1}),g("readonly",{processor:"boolean",default:!1}),g("editable_root",{processor:"boolean",default:!0}),g("plugins",{processor:"string[]",default:[]}),g("external_plugins",{processor:"object"}),g("forced_plugins",{processor:"string[]"}),g("model",{processor:"string",default:r.hasPlugin("rtc")?"plugin":"dom"}),g("model_url",{processor:"string"}),g("block_unsupported_drop",{processor:"boolean",default:!0}),g("visual",{processor:"boolean",default:!0}),g("visual_table_class",{processor:"string",default:"mce-item-table"}),g("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),g("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),g("setup",{processor:"function"}),g("init_instance_callback",{processor:"function"}),g("url_converter",{processor:"function",default:r.convertURL}),g("url_converter_scope",{processor:"object",default:r}),g("urlconverter_callback",{processor:"function"}),g("allow_conditional_comments",{processor:"boolean",default:!1}),g("allow_html_data_urls",{processor:"boolean",default:!1}),g("allow_svg_data_urls",{processor:"boolean"}),g("allow_html_in_named_anchor",{processor:"boolean",default:!1}),g("allow_script_urls",{processor:"boolean",default:!1}),g("allow_unsafe_link_target",{processor:"boolean",default:!1}),g("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),g("fix_list_elements",{processor:"boolean",default:!1}),g("preserve_cdata",{processor:"boolean",default:!1}),g("remove_trailing_brs",{processor:"boolean",default:!0}),g("pad_empty_with_br",{processor:"boolean",default:!1}),g("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),g("element_format",{processor:"string",default:"html"}),g("entities",{processor:"string"}),g("schema",{processor:"string",default:"html5"}),g("convert_urls",{processor:"boolean",default:!0}),g("relative_urls",{processor:"boolean",default:!0}),g("remove_script_host",{processor:"boolean",default:!0}),g("custom_elements",{processor:ql}),g("extended_valid_elements",{processor:"string"}),g("invalid_elements",{processor:"string"}),g("invalid_styles",{processor:ql}),g("valid_children",{processor:"string"}),g("valid_classes",{processor:ql}),g("valid_elements",{processor:"string"}),g("valid_styles",{processor:ql}),g("verify_html",{processor:"boolean",default:!0}),g("auto_focus",{processor:B=>v(B)||B===!0}),g("browser_spellcheck",{processor:"boolean",default:!1}),g("protect",{processor:"array"}),g("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),g("deprecation_warnings",{processor:"boolean",default:!0}),g("a11y_advanced_options",{processor:"boolean",default:!1}),g("api_key",{processor:"string"}),g("license_key",{processor:"string"}),g("paste_block_drop",{processor:"boolean",default:!1}),g("paste_data_images",{processor:"boolean",default:!0}),g("paste_preprocess",{processor:"function"}),g("paste_postprocess",{processor:"function"}),g("paste_webkit_styles",{processor:"string",default:"none"}),g("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),g("paste_merge_formats",{processor:"boolean",default:!0}),g("smart_paste",{processor:"boolean",default:!0}),g("paste_as_text",{processor:"boolean",default:!1}),g("paste_tab_spaces",{processor:"number",default:4}),g("text_patterns",{processor:B=>D(B,_)||B===!1?{value:uf(B===!1?[]:B),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1",trigger:"space"},{start:"##",format:"h2",trigger:"space"},{start:"###",format:"h3",trigger:"space"},{start:"####",format:"h4",trigger:"space"},{start:"#####",format:"h5",trigger:"space"},{start:"######",format:"h6",trigger:"space"},{start:"1.",cmd:"InsertOrderedList",trigger:"space"},{start:"*",cmd:"InsertUnorderedList",trigger:"space"},{start:"-",cmd:"InsertUnorderedList",trigger:"space"},{start:">",cmd:"mceBlockQuote",trigger:"space"},{start:"---",cmd:"InsertHorizontalRule",trigger:"space"}]}),g("text_patterns_lookup",{processor:B=>C(B)?{value:ff(B),valid:!0}:{valid:!1,message:"Must be a single function"},default:B=>[]}),g("noneditable_class",{processor:"string",default:"mceNonEditable"}),g("editable_class",{processor:"string",default:"mceEditable"}),g("noneditable_regexp",{processor:B=>D(B,Bl)?{value:B,valid:!0}:Bl(B)?{value:[B],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),g("table_tab_navigation",{processor:"boolean",default:!0}),g("highlight_on_focus",{processor:"boolean",default:!0}),g("xss_sanitization",{processor:"boolean",default:!0}),g("details_initial_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("details_serialized_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("init_content_sync",{processor:"boolean",default:!1}),g("newdocument_content",{processor:"string",default:""}),g("sandbox_iframes",{processor:"boolean",default:!0}),g("sandbox_iframes_exclusions",{processor:"string[]",default:["youtube.com","youtu.be","vimeo.com","player.vimeo.com","dailymotion.com","embed.music.apple.com","open.spotify.com","giphy.com","dai.ly","codepen.io"]}),g("convert_unsafe_embeds",{processor:"boolean",default:!0}),r.on("ScriptsLoaded",()=>{g("directionality",{processor:"string",default:Du.isRtl()?"rtl":void 0}),g("placeholder",{processor:"string",default:Vs.getAttrib(r.getElement(),"placeholder")})})},Mc=Uo("iframe_attrs"),Mh=Uo("doctype"),il=Uo("document_base_url"),Im=Uo("body_id"),ah=Uo("body_class"),Bu=Uo("content_security_policy"),Hp=Uo("br_in_pre"),dc=Uo("forced_root_block"),Jf=Uo("forced_root_block_attrs"),bg=Uo("newline_behavior"),Dm=Uo("br_newline_selector"),q1=Uo("no_newline_selector"),Wx=Uo("keep_styles"),Ec=Uo("end_container_on_empty_block"),Qc=Uo("automatic_uploads"),Hc=Uo("images_reuse_filename"),_s=Uo("images_replace_blob_uris"),Jc=Uo("icons"),Pc=Uo("icons_url"),W1=Uo("images_upload_url"),uy=Uo("images_upload_base_path"),Y1=Uo("images_upload_credentials"),H0=Uo("images_upload_handler"),X1=Uo("content_css_cors"),G1=Uo("referrer_policy"),K1=Uo("language"),Zp=Uo("language_url"),fy=Uo("indent_use_margin"),JO=Uo("indentation"),Bm=Uo("content_css"),Sb=Uo("content_style"),Wu=Uo("font_css"),Yx=Uo("directionality"),J1=Uo("inline_boundaries_selector"),xd=Uo("object_resizing"),a0=Uo("resize_img_proportional"),dy=Uo("placeholder"),hp=Uo("event_root"),_d=Uo("service_message"),xg=Uo("theme"),kb=Uo("theme_url"),Tb=Uo("model"),Xx=Uo("model_url"),Z0=Uo("inline_boundaries"),Cb=Uo("formats"),tw=Uo("preview_styles"),hy=Uo("format_empty_lines"),eu=Uo("format_noneditable_selector"),Eh=Uo("custom_ui_selector"),ev=Uo("inline"),_g=Uo("hidden_input"),Ab=Uo("submit_patch"),nw=Uo("add_form_submit_trigger"),Mb=Uo("add_unload_trigger"),wg=Uo("custom_undo_redo_levels"),tv=Uo("disable_nodechange"),py=Uo("readonly"),Gx=Uo("editable_root"),Eb=Uo("content_css_cors"),nv=Uo("plugins"),e3=Uo("external_plugins"),my=Uo("block_unsupported_drop"),wd=Uo("visual"),Kx=Uo("visual_table_class"),Jx=Uo("visual_anchor_class"),e2=Uo("iframe_aria_text"),Pb=Uo("setup"),Wh=Uo("init_instance_callback"),t2=Uo("urlconverter_callback"),Rb=Uo("auto_focus"),zm=Uo("browser_spellcheck"),rw=Uo("protect"),n2=Uo("paste_block_drop"),Fm=Uo("paste_data_images"),q0=Uo("paste_preprocess"),rv=Uo("paste_postprocess"),ov=Uo("newdocument_content"),iv=Uo("paste_webkit_styles"),t3=Uo("paste_remove_styles_if_webkit"),ow=Uo("paste_merge_formats"),iw=Uo("smart_paste"),aw=Uo("paste_as_text"),gy=Uo("paste_tab_spaces"),W0=Uo("allow_html_data_urls"),Og=Uo("text_patterns"),n3=Uo("text_patterns_lookup"),vy=Uo("noneditable_class"),sw=Uo("editable_class"),pp=Uo("noneditable_regexp"),r2=Uo("preserve_cdata"),yy=Uo("highlight_on_focus"),Lb=Uo("xss_sanitization"),Od=Uo("init_content_sync"),Sg=r=>r.options.isSet("text_patterns_lookup"),s0=r=>mo.explode(r.options.get("font_size_style_values")),Ib=r=>mo.explode(r.options.get("font_size_classes")),l0=r=>r.options.get("encoding")==="xml",Y0=r=>mo.explode(r.options.get("images_file_types")),AS=Uo("table_tab_navigation"),r3=Uo("details_initial_state"),o3=Uo("details_serialized_state"),o2=Uo("sandbox_iframes"),i2=r=>r.options.get("sandbox_iframes_exclusions"),MS=Uo("convert_unsafe_embeds"),Db=Uo("license_key"),lw=Uo("api_key"),ES=ne,cw=Nt,qp=r=>{const g=r.parentNode;g&&g.removeChild(r)},av=r=>{const g=yd(r);return{count:r.length-g.length,text:g}},i3=r=>{let g;for(;(g=r.data.lastIndexOf(nc))!==-1;)r.deleteData(g,1)},Nm=(r,g)=>(by(r),g),uw=(r,g)=>{const B=av(r.data.substr(0,g.offset())),H=av(r.data.substr(g.offset()));return(B.text+H.text).length>0?(i3(r),qr(r,g.offset()-B.count)):g},PS=(r,g)=>{const B=g.container(),H=ae(Ee(B.childNodes),r).map(re=>recw(r)&&g.container()===r?uw(r,g):Nm(r,g),a3=(r,g)=>g.container()===r.parentNode?PS(r,g):Nm(r,g),FM=(r,g)=>qr.isTextPosition(g)?PT(r,g):a3(r,g),by=r=>{ES(r)&&Ch(r)&&(Z_(r)?r.removeAttribute("data-mce-caret"):qp(r)),cw(r)&&(i3(r),r.data.length===0&&qp(r))},ID=rr,a2=Zr,s3=Dr,s2="*[contentEditable=false],video,audio,embed,object",l2=(r,g,B)=>{const H=Il(g.getBoundingClientRect(),B);let re,be;if(r.tagName==="BODY"){const Ke=r.ownerDocument.documentElement;re=r.scrollLeft||Ke.scrollLeft,be=r.scrollTop||Ke.scrollTop}else{const Ke=r.getBoundingClientRect();re=r.scrollLeft-Ke.left,be=r.scrollTop-Ke.top}H.left+=re,H.right+=re,H.top+=be,H.bottom+=be,H.width=1;let Re=g.offsetWidth-g.clientWidth;return Re>0&&(B&&(Re*=-1),H.left+=Re,H.right+=Re),H},NM=r=>{var g,B;const H=Zl(sr.fromDom(r),s2);for(let re=0;re{const re=Ys();let be,Re;const Ke=dc(r),ct=r.dom,kt=(Rn,qn)=>{let pr;if(Wt(),s3(qn))return null;if(B(qn)){const Tr=W_(Ke,qn,Rn),wr=l2(g,qn,Rn);ct.setStyle(Tr,"top",wr.top),ct.setStyle(Tr,"caret-color","transparent"),Re=Tr;const Ur=ct.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});ct.setStyles(Ur,{...wr}),ct.add(g,Ur),re.set({caret:Ur,element:qn,before:Rn}),Rn&&ct.addClass(Ur,"mce-visual-caret-before"),Jt(),pr=qn.ownerDocument.createRange(),pr.setStart(Tr,0),pr.setEnd(Tr,0)}else return Re=q_(qn,Rn),pr=qn.ownerDocument.createRange(),l3(Re.nextSibling)?(pr.setStart(Re,0),pr.setEnd(Re,0)):(pr.setStart(Re,1),pr.setEnd(Re,1)),pr;return pr},Wt=()=>{NM(g),Re&&(by(Re),Re=null),re.on(Rn=>{ct.remove(Rn.caret),re.clear()}),be&&(clearInterval(be),be=void 0)},Jt=()=>{be=setInterval(()=>{re.on(Rn=>{H()?ct.toggleClass(Rn.caret,"mce-visual-caret-hidden"):ct.addClass(Rn.caret,"mce-visual-caret-hidden")})},500)};return{show:kt,hide:Wt,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{re.on(Rn=>{const qn=l2(g,Rn.element,Rn.before);ct.setStyles(Rn.caret,{...qn})})},destroy:()=>clearInterval(be)}},$M=()=>fr.browser.isFirefox(),l3=r=>ID(r)||a2(r),sv=r=>(l3(r)||Et(r)&&$M())&&Lp(sr.fromDom(r)).exists(js),RS=Sn,LS=rr,VM=Zr,IS=Je("display","block table table-cell table-caption list-item"),LT=Ch,IT=vg,DT=ne,c2=Nt,c3=ih,Bb=r=>r>0,lv=r=>r<0,fw=(r,g)=>{let B;for(;B=r(g);)if(!IT(B))return B;return null},u2=(r,g,B,H,re)=>{const be=new kc(r,H),Re=LS(r)||IT(r);let Ke;if(lv(g)){if(Re&&(Ke=fw(be.prev.bind(be),!0),B(Ke)))return Ke;for(;Ke=fw(be.prev.bind(be),re);)if(B(Ke))return Ke}if(Bb(g)){if(Re&&(Ke=fw(be.next.bind(be),!0),B(Ke)))return Ke;for(;Ke=fw(be.next.bind(be),re);)if(B(Ke))return Ke}return null},UM=(r,g)=>{const B=re=>RS(re.dom),H=re=>re.dom===g;return ms(sr.fromDom(r),B,H).map(re=>re.dom).getOr(g)},c0=(r,g)=>{for(;r&&r!==g;){if(IS(r))return r;r=r.parentNode}return null},Wp=(r,g,B)=>c0(r.container(),B)===c0(g.container(),B),u3=(r,g)=>{if(!g)return Y.none();const B=g.container(),H=g.offset();return DT(B)?Y.from(B.childNodes[H+r]):Y.none()},jM=(r,g)=>{var B;const re=((B=g.ownerDocument)!==null&&B!==void 0?B:document).createRange();return r?(re.setStartBefore(g),re.setEndBefore(g)):(re.setStartAfter(g),re.setEndAfter(g)),re},DD=(r,g,B)=>c0(g,r)===c0(B,r),zb=(r,g,B)=>{const H=r?"previousSibling":"nextSibling";let re=B;for(;re&&re!==g;){let be=re[H];if(be&<(be)&&(be=be[H]),LS(be)||VM(be)){if(DD(g,be,re))return be;break}if(c3(be))break;re=re.parentNode}return null},f2=U(jM,!0),d2=U(jM,!1),$d=(r,g,B)=>{let H;const re=U(zb,!0,g),be=U(zb,!1,g),Re=B.startContainer,Ke=B.startOffset;if(vg(Re)){const ct=c2(Re)?Re.parentNode:Re,kt=ct.getAttribute("data-mce-caret");if(kt==="before"&&(H=ct.nextSibling,sv(H)))return f2(H);if(kt==="after"&&(H=ct.previousSibling,sv(H)))return d2(H)}if(!B.collapsed)return B;if(Nt(Re)){if(LT(Re)){if(r===1){if(H=be(Re),H)return f2(H);if(H=re(Re),H)return d2(H)}if(r===-1){if(H=re(Re),H)return d2(H);if(H=be(Re),H)return f2(H)}return B}if(jp(Re)&&Ke>=Re.data.length-1)return r===1&&(H=be(Re),H)?f2(H):B;if(U0(Re)&&Ke<=1)return r===-1&&(H=re(Re),H)?d2(H):B;if(Ke===Re.data.length)return H=be(Re),H?f2(H):B;if(Ke===0)return H=re(Re),H?d2(H):B}return B},f3=(r,g)=>u3(r?0:-1,g).filter(LS),Fb=(r,g,B)=>{const H=$d(r,g,B);return r===-1?qr.fromRangeStart(H):qr.fromRangeEnd(H)},d3=r=>Y.from(r.getNode()).map(sr.fromDom),BT=r=>Y.from(r.getNode(!0)).map(sr.fromDom),DS=(r,g)=>{let B=g;for(;B=r(B);)if(B.isVisible())return B;return B},h3=(r,g)=>{const B=Wp(r,g);return!B&&On(r.getNode())?!0:B};var Mf;(function(r){r[r.Backwards=-1]="Backwards",r[r.Forwards=1]="Forwards"})(Mf||(Mf={}));const p3=rr,kg=Nt,BS=ne,zS=On,cv=ih,zT=GO,xy=Zx,m3=(r,g)=>{const B=[];let H=r;for(;H&&H!==g;)B.push(H),H=H.parentNode;return B},g3=(r,g)=>r.hasChildNodes()&&g{if(Bb(r)){if(cv(g.previousSibling)&&!kg(g.previousSibling))return qr.before(g);if(kg(g))return qr(g,0)}if(lv(r)){if(cv(g.nextSibling)&&!kg(g.nextSibling))return qr.after(g);if(kg(g))return qr(g,g.data.length)}return lv(r)?zS(g)?qr.before(g):qr.after(g):qr.before(g)},Nb=(r,g)=>{const B=g.nextSibling;return B&&cv(B)?kg(B)?qr(B,0):qr.before(B):h2(Mf.Forwards,qr.after(g),r)},h2=(r,g,B)=>{let H,re,be,Re;if(!BS(B)||!g)return null;if(g.isEqual(qr.after(B))&&B.lastChild){if(Re=qr.after(B.lastChild),lv(r)&&cv(B.lastChild)&&BS(B.lastChild))return zS(B.lastChild)?qr.before(B.lastChild):Re}else Re=g;const Ke=Re.container();let ct=Re.offset();if(kg(Ke)){if(lv(r)&&ct>0)return qr(Ke,--ct);if(Bb(r)&&ct0&&(re=g3(Ke,ct-1),cv(re)))return!zT(re)&&(be=u2(re,r,xy,re),be)?kg(be)?qr(be,be.data.length):qr.after(be):kg(re)?qr(re,re.data.length):qr.before(re);if(Bb(r)&&ct({next:g=>h2(Mf.Forwards,g,r),prev:g=>h2(Mf.Backwards,g,r)}),FT=(r,g,B)=>{const H=r?qr.before(B):qr.after(B);return Yp(r,g,H)},NS=r=>On(r)?qr.before(r):qr.after(r),$S=r=>qr.isTextPosition(r)?r.offset()===0:ih(r.getNode()),NT=r=>{if(qr.isTextPosition(r)){const g=r.container();return r.offset()===g.data.length}else return ih(r.getNode(!0))},VS=(r,g)=>!qr.isTextPosition(r)&&!qr.isTextPosition(g)&&r.getNode()===g.getNode(!0),$T=r=>!qr.isTextPosition(r)&&On(r.getNode()),VT=(r,g,B)=>r?!VS(g,B)&&!$T(g)&&NT(g)&&$S(B):!VS(B,g)&&$S(g)&&NT(B),Yp=(r,g,B)=>{const H=Sd(g);return Y.from(r?H.next(B):H.prev(B))},uv=(r,g,B)=>Yp(r,g,B).bind(H=>Wp(B,H,g)&&VT(r,B,H)?Yp(r,g,H):Y.some(H)),UT=(r,g,B,H)=>uv(r,g,B).bind(re=>H(re)?UT(r,g,re,H):Y.some(re)),$b=(r,g)=>{const B=r?g.firstChild:g.lastChild;return Nt(B)?Y.some(qr(B,r?0:B.data.length)):B?ih(B)?Y.some(r?qr.before(B):NS(B)):FT(r,g,B):Y.none()},sh=U(Yp,!0),mp=U(Yp,!1),lh=U($b,!0),Xp=U($b,!1),v3="_mce_caret",Gp=r=>ne(r)&&r.id===v3,Vb=(r,g)=>{let B=g;for(;B&&B!==r;){if(Gp(B))return B;B=B.parentNode}return null},QM=r=>v(r.start),jT=r=>_t(r,"rng"),HM=r=>_t(r,"id"),QT=r=>_t(r,"name"),HT=r=>mo.isArray(r.start),US=r=>!QT(r)&&R(r.forward)?r.forward:!0,jS=(r,g)=>(ne(g)&&r.isBlock(g)&&!g.innerHTML&&(g.innerHTML='
    '),g),ed=(r,g)=>{const B=Y.from(Or(r.getRoot(),g.start)),H=Y.from(Or(r.getRoot(),g.end));return us(B,H,(re,be)=>{const Re=r.createRng();return Re.setStart(re.container(),re.offset()),Re.setEnd(be.container(),be.offset()),{range:Re,forward:US(g)}})},QS=(r,g)=>{var B;const re=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(nc);r.appendChild(re),g.setStart(re,0),g.setEnd(re,0)},_y=r=>!r.hasChildNodes(),p2=(r,g)=>Xp(r).fold(oe,B=>(g.setStart(B.container(),B.offset()),g.setEnd(B.container(),B.offset()),!0)),HS=(r,g,B)=>_y(g)&&Vb(r,g)?(QS(g,B),!0):!1,y3=(r,g,B,H)=>{const re=B[g?"start":"end"],be=r.getRoot();if(re){let Re=be,Ke=re[0];for(let ct=re.length-1;Re&&ct>=1;ct--){const kt=Re.childNodes;if(HS(be,Re,H))return!0;if(re[ct]>kt.length-1)return HS(be,Re,H)?!0:p2(Re,H);Re=kt[re[ct]]}Nt(Re)&&(Ke=Math.min(re[0],Re.data.length)),ne(Re)&&(Ke=Math.min(re[0],Re.childNodes.length)),g?H.setStart(Re,Ke):H.setEnd(Re,Ke)}return!0},dw=r=>Nt(r)&&r.data.length>0,ZS=(r,g,B)=>{const H=r.get(B.id+"_"+g),re=H==null?void 0:H.parentNode,be=B.keep;if(H&&re){let Re,Ke;if(g==="start"?be?H.hasChildNodes()?(Re=H.firstChild,Ke=1):dw(H.nextSibling)?(Re=H.nextSibling,Ke=0):dw(H.previousSibling)?(Re=H.previousSibling,Ke=H.previousSibling.data.length):(Re=re,Ke=r.nodeIndex(H)+1):(Re=re,Ke=r.nodeIndex(H)):be?H.hasChildNodes()?(Re=H.firstChild,Ke=1):dw(H.previousSibling)?(Re=H.previousSibling,Ke=H.previousSibling.data.length):(Re=re,Ke=r.nodeIndex(H)):(Re=re,Ke=r.nodeIndex(H)),!be){const ct=H.previousSibling,kt=H.nextSibling;mo.each(mo.grep(H.childNodes),Jt=>{Nt(Jt)&&(Jt.data=Jt.data.replace(/\uFEFF/g,""))});let Wt;for(;Wt=r.get(B.id+"_"+g);)r.remove(Wt,!0);if(Nt(kt)&&Nt(ct)&&!fr.browser.isOpera()){const Jt=ct.data.length;ct.appendData(kt.data),r.remove(kt),Re=ct,Ke=Jt}}return Y.some(qr(Re,Ke))}else return Y.none()},m2=(r,g)=>{const B=r.createRng();return y3(r,!0,g,B)&&y3(r,!1,g,B)?Y.some({range:B,forward:US(g)}):Y.none()},qS=(r,g)=>{const B=ZS(r,"start",g),H=ZS(r,"end",g);return us(B,H.or(B),(re,be)=>{const Re=r.createRng();return Re.setStart(jS(r,re.container()),re.offset()),Re.setEnd(jS(r,be.container()),be.offset()),{range:Re,forward:US(g)}})},X0=(r,g)=>Y.from(r.select(g.name)[g.index]).map(B=>{const H=r.createRng();return H.selectNode(B),{range:H,forward:!0}}),Ub=(r,g)=>{const B=r.dom;if(g){if(HT(g))return m2(B,g);if(QM(g))return ed(B,g);if(HM(g))return qS(B,g);if(QT(g))return X0(B,g);if(jT(g))return Y.some({range:g.rng,forward:US(g)})}return Y.none()},ZT=(r,g,B)=>Bs(r,g,B),fv=(r,g)=>{Ub(r,g).each(({range:B,forward:H})=>{r.setRng(B,H)})},Kp=r=>ne(r)&&r.tagName==="SPAN"&&r.getAttribute("data-mce-type")==="bookmark",G0=(r=>g=>r===g)(Ea),jb=r=>r!==""&&` \f +\r \v`.indexOf(r)!==-1,WS=r=>!jb(r)&&!G0(r)&&!El(r),b3=r=>{const g=[];if(r)for(let B=0;B$e(r,g=>{const B=Pm(g);return B?[sr.fromDom(B)]:[]}),ZM=r=>b3(r).length>1,qM=r=>Te(WT(r),N1),YT=r=>Zl(r,"td[data-mce-selected],th[data-mce-selected]"),wy=(r,g)=>{const B=YT(g);return B.length>0?B:qM(r)},g2=r=>wy(b3(r.selection.getSel()),sr.fromDom(r.getBody())),hw=(r,g)=>wl(r,"table",g),WM=r=>{const g=r.startContainer,B=r.startOffset;return Nt(g)?B===0?Y.some(sr.fromDom(g)):Y.none():Y.from(g.childNodes[B]).map(sr.fromDom)},YM=r=>{const g=r.endContainer,B=r.endOffset;return Nt(g)?B===g.data.length?Y.some(sr.fromDom(g)):Y.none():Y.from(g.childNodes[B-1]).map(sr.fromDom)},v2=r=>Uf(r).fold($([r]),g=>[r].concat(v2(g))),YS=r=>zl(r).fold($([r]),g=>la(g)==="br"?Eu(g).map(B=>[r].concat(YS(B))).getOr([]):[r].concat(YS(g))),x3=(r,g)=>us(WM(g),YM(g),(B,H)=>{const re=De(v2(r),U(Fa,B)),be=De(YS(r),U(Fa,H));return re.isSome()&&be.isSome()}).getOr(!1),XS=(r,g,B,H)=>{const re=B,be=new kc(B,re),Re=qt(r.schema.getMoveCaretBeforeOnEnterElements(),(ct,kt)=>!ce(["td","th","table"],kt.toLowerCase()));let Ke=B;do{if(Nt(Ke)&&mo.trim(Ke.data).length!==0){H?g.setStart(Ke,0):g.setEnd(Ke,Ke.data.length);return}if(Re[Ke.nodeName]){H?g.setStartBefore(Ke):Ke.nodeName==="BR"?g.setEndBefore(Ke):g.setEndAfter(Ke);return}}while(Ke=H?be.next():be.prev());re.nodeName==="BODY"&&(H?g.setStart(re,0):g.setEnd(re,re.childNodes.length))},GS=r=>{const g=r.selection.getSel();return E(g)&&g.rangeCount>0},y2=(r,g)=>{const B=g2(r);B.length>0?ye(B,H=>{const re=H.dom,be=r.dom.createRng();be.setStartBefore(re),be.setEndAfter(re),g(be,!0)}):g(r.selection.getRng(),!1)},KS=(r,g,B)=>{const H=Zi(r,g);B(H),r.moveToBookmark(H)},b2=r=>L(r==null?void 0:r.nodeType),JS=r=>ne(r)&&!Kp(r)&&!Gp(r)&&!dt(r),ps=(r,g)=>{if(JS(g)&&!/^(TD|TH)$/.test(g.nodeName)){const B=r.getAttrib(g,"data-mce-selected"),H=parseInt(B,10);return!isNaN(H)&&H>0}else return!1},K0=(r,g,B)=>{const{selection:H,dom:re}=r,be=H.getNode(),Re=rr(be);KS(H,!0,()=>{g()}),Re&&rr(be)&&re.isChildOf(be,r.getBody())?r.selection.select(be):B(H.getStart())&&Qb(re,H)},Qb=(r,g)=>{var B,H;const re=g.getRng(),{startContainer:be,startOffset:Re}=re,Ke=g.getNode();if(!ps(r,Ke)&&ne(be)){const ct=be.childNodes,kt=r.getRoot();let Wt;if(Re{if(r){const H=g?"nextSibling":"previousSibling";for(r=B?r:r[H];r;r=r[H])if(ne(r)||!t5(r))return r}},e5=(r,g)=>!!r.getTextBlockElements()[g.nodeName.toLowerCase()]||xm(r,g),dv=(r,g,B)=>r.schema.isValidChild(g,B),t5=(r,g=!1)=>{if(E(r)&&Nt(r)){const B=g?r.data.replace(/ /g," "):r.data;return kf(B)}else return!1},_3=r=>E(r)&&Nt(r)&&r.length===0,n5=(r,g)=>{const B="[data-mce-cef-wrappable]",H=eu(r),re=_r(H)?B:`${B},${H}`;return wf(sr.fromDom(g),re)},r5=(r,g)=>{const B=r.dom;return JS(g)&&B.getContentEditable(g)==="false"&&n5(r,g)&&B.select('[contenteditable="true"]',g).length===0},Hb=(r,g)=>C(r)?r(g):(E(g)&&(r=r.replace(/%(\w+)/g,(B,H)=>g[H]||B)),r),w3=(r,g)=>(r=r||"",g=g||"",r=""+(r.nodeName||r),g=""+(g.nodeName||g),r.toLowerCase()===g.toLowerCase()),Zb=(r,g)=>{if(T(r))return null;{let B=String(r);return(g==="color"||g==="backgroundColor")&&(B=Am(B)),g==="fontWeight"&&r===700&&(B="bold"),g==="fontFamily"&&(B=B.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),B}},O3=(r,g,B)=>{const H=r.getStyle(g,B);return Zb(H,B)},XT=(r,g)=>{let B;return r.getParent(g,H=>ne(H)?(B=r.getStyle(H,"text-decoration"),!!B&&B!=="none"):!1),B},x2=(r,g,B)=>r.getParents(g,B,r.getRoot()),S3=(r,g,B)=>{const H=r.formatter.get(g);return E(H)&&de(H,B)},XM=(r,g)=>S3(r,g,H=>{const re=be=>C(be)||be.length>1&&be.charAt(0)==="%";return de(["styles","attributes"],be=>Ct(H,be).exists(Re=>{const Ke=A(Re)?Re:Gt(Re);return de(Ke,re)}))}),k3=(r,g,B)=>{const H=["inline","block","selector","attributes","styles","classes"],re=be=>qt(be,(Re,Ke)=>de(H,ct=>ct===Ke));return S3(r,g,be=>{const Re=re(be);return S3(r,B,Ke=>{const ct=re(Ke);return gn(Re,ct)})})},hv=r=>nn(r,"block"),GM=r=>hv(r)&&r.wrapper===!0,mw=r=>hv(r)&&r.wrapper!==!0,$m=r=>nn(r,"selector"),Ef=r=>nn(r,"inline"),KM=r=>$m(r)&&Ef(r)&&Aa(Ct(r,"mixed"),!0),u0=r=>$m(r)&&r.expand!==!1&&!Ef(r),JM=r=>{const g=[];let B=r;for(;B;){if(Nt(B)&&B.data!==nc||B.childNodes.length>1)return[];ne(B)&&g.push(B),B=B.firstChild}return g},GT=r=>JM(r).length>0,gw=r=>Gp(r.dom)&>(r.dom),_2=Kp,KT=x2,JT=t5,BD=e5,zD=r=>On(r)&&r.getAttribute("data-mce-bogus")&&!r.nextSibling,e6=(r,g)=>{let B=g;for(;B;){if(ne(B)&&r.getContentEditable(B))return r.getContentEditable(B)==="false"?B:g;B=B.parentNode}return g},t6=(r,g,B,H)=>{const re=g.data;if(r){for(let be=B;be>0;be--)if(H(re.charAt(be-1)))return be}else for(let be=B;bet6(r,g,B,H=>G0(H)||jb(H)),Pf=(r,g,B)=>t6(r,g,B,WS),vw=(r,g,B,H,re,be)=>{let Re;const Ke=r.getParent(B,r.isBlock)||g,ct=(Wt,Jt,ln)=>{const kn=Em(r),Vn=re?kn.backwards:kn.forwards;return Y.from(Vn(Wt,Jt,(Rn,qn)=>_2(Rn.parentNode)?-1:(Re=Rn,ln(re,Rn,qn)),Ke))};return ct(B,H,hi).bind(Wt=>be?ct(Wt.container,Wt.offset+(re?-1:0),Pf):Y.some(Wt)).orThunk(()=>Re?Y.some({container:Re,offset:re?0:Re.length}):Y.none())},Rf=(r,g,B,H,re)=>{const be=H[re];Nt(H)&&_r(H.data)&&be&&(H=be);const Re=KT(r,H);for(let Ke=0;Ke{var re;let be=B;const Re=r.getRoot(),Ke=g[0];if(hv(Ke)&&(be=Ke.wrapper?null:r.getParent(B,Ke.block,Re)),!be){const ct=(re=r.getParent(B,"LI,TD,TH,SUMMARY"))!==null&&re!==void 0?re:Re;be=r.getParent(Nt(B)?B.parentNode:B,kt=>kt!==Re&&BD(r.schema,kt),ct)}if(be&&hv(Ke)&&Ke.wrapper&&(be=KT(r,be,"ul,ol").reverse()[0]||be),!be)for(be=B;be&&be[H]&&!r.isBlock(be[H])&&(be=be[H],!w3(be,"br")););return be||B},o5=(r,g,B,H)=>{const re=B.parentNode;return E(B[H])?!1:re===g||T(re)||r.isBlock(re)?!0:o5(r,g,re,H)},qb=(r,g,B,H,re)=>{let be=B;const Re=re?"previousSibling":"nextSibling",Ke=r.getRoot();if(Nt(B)&&!JT(B)&&(re?H>0:H_2(r.parentNode)||_2(r),Oy=(r,g,B,H=!1)=>{let{startContainer:re,startOffset:be,endContainer:Re,endOffset:Ke}=g;const ct=B[0];return ne(re)&&re.hasChildNodes()&&(re=fi(re,be),Nt(re)&&(be=0)),ne(Re)&&Re.hasChildNodes()&&(Re=fi(Re,g.collapsed?Ke:Ke-1),Nt(Re)&&(Ke=Re.data.length)),re=e6(r,re),Re=e6(r,Re),T3(re)&&(re=_2(re)?re:re.parentNode,g.collapsed?re=re.previousSibling||re:re=re.nextSibling||re,Nt(re)&&(be=g.collapsed?re.length:0)),T3(Re)&&(Re=_2(Re)?Re:Re.parentNode,g.collapsed?Re=Re.nextSibling||Re:Re=Re.previousSibling||Re,Nt(Re)&&(Ke=g.collapsed?0:Re.length)),g.collapsed&&(vw(r,r.getRoot(),re,be,!0,H).each(({container:Jt,offset:ln})=>{re=Jt,be=ln}),vw(r,r.getRoot(),Re,Ke,!1,H).each(({container:Jt,offset:ln})=>{Re=Jt,Ke=ln})),(Ef(ct)||ct.block_expand)&&((!Ef(ct)||!Nt(re)||be===0)&&(re=qb(r,B,re,be,!0)),(!Ef(ct)||!Nt(Re)||Ke===Re.data.length)&&(Re=qb(r,B,Re,Ke,!1))),u0(ct)&&(re=Rf(r,B,g,re,"previousSibling"),Re=Rf(r,B,g,Re,"nextSibling")),(hv(ct)||$m(ct))&&(re=Vm(r,B,re,"previousSibling"),Re=Vm(r,B,Re,"nextSibling"),hv(ct)&&(r.isBlock(re)||(re=qb(r,B,re,be,!0),Nt(re)&&(be=0)),r.isBlock(Re)||(Re=qb(r,B,Re,Ke,!1),Nt(Re)&&(Ke=Re.data.length)))),ne(re)&&re.parentNode&&(be=r.nodeIndex(re),re=re.parentNode),ne(Re)&&Re.parentNode&&(Ke=r.nodeIndex(Re)+1,Re=Re.parentNode),{startContainer:re,startOffset:be,endContainer:Re,endOffset:Ke}},yw=(r,g,B)=>{var H;const re=g.startOffset,be=fi(g.startContainer,re),Re=g.endOffset,Ke=fi(g.endContainer,Re-1),ct=qn=>{const pr=qn[0];Nt(pr)&&pr===be&&re>=pr.data.length&&qn.splice(0,1);const Tr=qn[qn.length-1];return Re===0&&qn.length>0&&Tr===Ke&&Nt(Tr)&&qn.splice(qn.length-1,1),qn},kt=(qn,pr,Tr)=>{const wr=[];for(;qn&&qn!==Tr;qn=qn[pr])wr.push(qn);return wr},Wt=(qn,pr)=>r.getParent(qn,Tr=>Tr.parentNode===pr,pr),Jt=(qn,pr,Tr)=>{const wr=Tr?"nextSibling":"previousSibling";for(let Ur=qn,wo=Ur.parentNode;Ur&&Ur!==pr;Ur=wo){wo=Ur.parentNode;const jo=kt(Ur===qn?Ur:Ur[wr],wr);jo.length&&(Tr||jo.reverse(),B(ct(jo)))}};if(be===Ke)return B(ct([be]));const ln=(H=r.findCommonAncestor(be,Ke))!==null&&H!==void 0?H:r.getRoot();if(r.isChildOf(be,Ke))return Jt(be,ln,!0);if(r.isChildOf(Ke,be))return Jt(Ke,ln);const kn=Wt(be,ln)||be,Vn=Wt(Ke,ln)||Ke;Jt(be,kn,!0);const Rn=kt(kn===be?kn:kn.nextSibling,"nextSibling",Vn===Ke?Vn.nextSibling:Vn);Rn.length&&B(ct(Rn)),Jt(Ke,Vn)},n6=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],eE=r=>ks(r)&&ry(r)===nc,tE=(r,g,B,H)=>Hu(g).fold(()=>"skipping",re=>H==="br"||eE(g)?"valid":zx(g)?"existing":Gp(g.dom)?"caret":de(n6,be=>wf(g,be))?"valid-block":!dv(r,B,H)||!dv(r,la(re),B)?"invalid-child":"valid"),nE=(r,g)=>{const B=Oy(r.dom,g,[{inline:"span"}]);g.setStart(B.startContainer,B.startOffset),g.setEnd(B.endContainer,B.endOffset),r.selection.setRng(g)},Sy=(r,g,B,H,re,be)=>{const{uid:Re=g,...Ke}=B;_f(r,ey()),Es(r,`${ty()}`,Re),Es(r,`${pg()}`,H);const{attributes:ct={},classes:kt=[]}=re(Re,Ke);if(ef(r,ct),vd(r,kt),be){kt.length>0&&Es(r,`${z0()}`,kt.join(","));const Wt=nt(ct);Wt.length>0&&Es(r,`${mg()}`,Wt.join(","))}},bw=r=>{nf(r,ey()),gc(r,`${ty()}`),gc(r,`${pg()}`),gc(r,`${R1()}`);const g=sd(r,`${mg()}`).map(H=>H.split(",")).getOr([]),B=sd(r,`${z0()}`).map(H=>H.split(",")).getOr([]);ye(g,H=>gc(r,H)),U_(r,B),gc(r,`${z0()}`),gc(r,`${mg()}`)},xw=(r,g,B,H,re)=>{const be=sr.fromTag("span",r);return Sy(be,g,B,H,re,!1),be},C3=(r,g,B,H,re,be)=>{const Re=[],Ke=xw(r.getDoc(),B,be,H,re),ct=Ys(),kt=()=>{ct.clear()},Wt=()=>ct.get().getOrThunk(()=>{const Vn=Th(Ke);return Re.push(Vn),ct.set(Vn),Vn}),Jt=Vn=>{ye(Vn,ln)},ln=Vn=>{switch(tE(r,Vn,"span",la(Vn))){case"invalid-child":{kt();const qn=Oc(Vn);Jt(qn),kt();break}case"valid-block":{kt(),Sy(Vn,B,be,H,re,!0);break}case"valid":{const qn=Wt();Sc(Vn,qn);break}}},kn=Vn=>{const Rn=ve(Vn,sr.fromDom);Jt(Rn)};return yw(r.dom,g,Vn=>{kt(),kn(Vn)}),Re},gp=(r,g,B,H)=>{r.undoManager.transact(()=>{const re=r.selection,be=re.getRng(),Re=g2(r).length>0,Ke=D1("mce-annotation");if(be.collapsed&&!Re&&nE(r,be),re.getRng().collapsed&&!Re){const ct=xw(r.getDoc(),Ke,H,g,B.decorate);Id(ct,Ea),re.getRng().insertNode(ct.dom),re.select(ct.dom)}else KS(re,!1,()=>{y2(r,ct=>{C3(r,ct,Ke,g,B.decorate,H)})})})},J0=r=>{const g=V_();Nx(r,g);const B=$_(r,g),H=Ju("span"),re=be=>{ye(be,Re=>{H(Re)?yu(Re):bw(Re)})};return{register:(be,Re)=>{g.register(be,Re)},annotate:(be,Re)=>{g.lookup(be).each(Ke=>{gp(r,be,Ke,Re)})},annotationChanged:(be,Re)=>{B.addListener(be,Re)},remove:be=>{I1(r,Y.some(be)).each(({elements:Re})=>{const Ke=r.selection.getBookmark();re(Re),r.selection.moveToBookmark(Ke)})},removeAll:be=>{const Re=r.selection.getBookmark();Ge(Fx(r,be),(Ke,ct)=>{re(Ke)}),r.selection.moveToBookmark(Re)},getAll:be=>{const Re=Fx(r,be);return ht(Re,Ke=>ve(Ke,ct=>ct.dom))}}},ky=r=>({getBookmark:U(ZT,r),moveToBookmark:U(fv,r)});ky.isBookmarkNode=Kp;const Ty=(r,g,B)=>B.collapsed?!1:de(B.getClientRects(),H=>ay(H,r,g)),rE=(r,g)=>r.dispatch("PreProcess",g),A3=(r,g)=>r.dispatch("PostProcess",g),M3=r=>{r.dispatch("remove")},oE=r=>{r.dispatch("detach")},iE=(r,g)=>{r.dispatch("SwitchMode",{mode:g})},aE=(r,g,B,H,re)=>{r.dispatch("ObjectResizeStart",{target:g,width:B,height:H,origin:re})},sE=(r,g,B,H,re)=>{r.dispatch("ObjectResized",{target:g,width:B,height:H,origin:re})},r6=r=>{r.dispatch("PreInit")},E3=r=>{r.dispatch("PostRender")},lE=r=>{r.dispatch("Init")},P3=(r,g)=>{r.dispatch("PlaceholderToggle",{state:g})},kd=(r,g,B)=>{r.dispatch(g,B)},Um=(r,g,B,H)=>{r.dispatch("FormatApply",{format:g,node:B,vars:H})},Jp=(r,g,B,H)=>{r.dispatch("FormatRemove",{format:g,node:B,vars:H})},R3=(r,g)=>r.dispatch("BeforeSetContent",g),L3=(r,g)=>r.dispatch("SetContent",g),o6=(r,g)=>r.dispatch("BeforeGetContent",g),i5=(r,g)=>r.dispatch("GetContent",g),i6=(r,g)=>{r.dispatch("AutocompleterStart",g)},a5=(r,g)=>{r.dispatch("AutocompleterUpdate",g)},a6=(r,g)=>{r.dispatch("AutocompleterUpdateActiveRange",g)},s6=r=>{r.dispatch("AutocompleterEnd")},cE=(r,g,B)=>r.dispatch("PastePreProcess",{content:g,internal:B}),uE=(r,g,B)=>r.dispatch("PastePostProcess",{node:g,internal:B}),I3=(r,g)=>r.dispatch("PastePlainTextToggle",{state:g}),s5=(r,g)=>r.dispatch("EditableRootStateChange",{state:g}),Fo={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:r=>r.shiftKey||r.ctrlKey||r.altKey||Fo.metaKeyPressed(r),metaKeyPressed:r=>fr.os.isMacOS()||fr.os.isiOS()?r.metaKey:r.ctrlKey&&!r.altKey},Ph="data-mce-selected",l6="table,img,figure.image,hr,video,span.mce-preview-object,details",l5=Math.abs,_w=Math.round,ww={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},D3=r=>r.type==="longpress"||r.type.indexOf("touch")===0,Ow=(r,g)=>{const B=g.dom,H=g.getDoc(),re=document,be=g.getBody();let Re,Ke,ct,kt,Wt,Jt,ln,kn,Vn,Rn,qn,pr,Tr,wr,Ur,wo,jo;const di=ci=>E(ci)&&(An(ci)||B.is(ci,"figure.image")),lo=ci=>Zr(ci)||B.hasClass(ci,"mce-preview-object"),eo=(ci,Va)=>{if(D3(ci)){const Xa=ci.touches[0];return di(ci.target)&&!Ty(Xa.clientX,Xa.clientY,Va)}else return di(ci.target)&&!Ty(ci.clientX,ci.clientY,Va)},xo=ci=>{const Va=ci.target;eo(ci,g.selection.getRng())&&!ci.isDefaultPrevented()&&g.selection.select(Va)},bi=ci=>B.hasClass(ci,"mce-preview-object")&&E(ci.firstElementChild)?[ci,ci.firstElementChild]:B.is(ci,"figure.image")?[ci.querySelector("img")]:[ci],Bi=ci=>{const Va=xd(g);return!Va||ci.getAttribute("data-mce-resize")==="false"||ci===g.getBody()?!1:B.hasClass(ci,"mce-preview-object")&&E(ci.firstElementChild)?wf(sr.fromDom(ci.firstElementChild),Va):wf(sr.fromDom(ci),Va)},$a=(ci,Va)=>{if(lo(Va))return ci.create("img",{src:fr.transparentSrc});if(Et(Va)){const Df=xr(kt.name,"n")?Xe:tt,el=Va.cloneNode(!0);return Df(ci.select("tr",el)).each(Yu=>{const Rg=ci.select("td,th",Yu);ci.setStyle(Yu,"height",null),ye(Rg,m1=>ci.setStyle(m1,"height",null))}),el}else return Va.cloneNode(!0)},Ia=(ci,Va,Xa)=>{if(E(Xa)){const Df=bi(ci);ye(Df,el=>{el.style[Va]||!g.schema.isValid(el.nodeName.toLowerCase(),Va)?B.setStyle(el,Va,Xa):B.setAttrib(el,Va,""+Xa)})}},Us=(ci,Va,Xa)=>{Ia(ci,"width",Va),Ia(ci,"height",Xa)},sl=ci=>{let Va,Xa,Df,el,Yu;Va=ci.screenX-Jt,Xa=ci.screenY-ln,wr=Va*kt[2]+Rn,Ur=Xa*kt[3]+qn,wr=wr<5?5:wr,Ur=Ur<5?5:Ur,(di(Re)||lo(Re))&&a0(g)!==!1?Df=!Fo.modifierPressed(ci):Df=Fo.modifierPressed(ci),Df&&(l5(Va)>l5(Xa)?(Ur=_w(wr*pr),wr=_w(Ur/pr)):(wr=_w(Ur/pr),Ur=_w(wr*pr))),Us(Ke,wr,Ur),el=kt.startPos.x+Va,Yu=kt.startPos.y+Xa,el=el>0?el:0,Yu=Yu>0?Yu:0,B.setStyles(ct,{left:el,top:Yu,display:"block"}),ct.innerHTML=wr+" × "+Ur,kt[2]<0&&Ke.clientWidth<=wr&&B.setStyle(Ke,"left",kn+(Rn-wr)),kt[3]<0&&Ke.clientHeight<=Ur&&B.setStyle(Ke,"top",Vn+(qn-Ur)),Va=be.scrollWidth-wo,Xa=be.scrollHeight-jo,Va+Xa!==0&&B.setStyles(ct,{left:el-Va,top:Yu-Xa}),Tr||(aE(g,Re,Rn,qn,"corner-"+kt.name),Tr=!0)},nu=()=>{const ci=Tr;Tr=!1,ci&&(Ia(Re,"width",wr),Ia(Re,"height",Ur)),B.unbind(H,"mousemove",sl),B.unbind(H,"mouseup",nu),re!==H&&(B.unbind(re,"mousemove",sl),B.unbind(re,"mouseup",nu)),B.remove(Ke),B.remove(ct),B.remove(Wt),jd(Re),ci&&(sE(g,Re,wr,Ur,"corner-"+kt.name),B.setAttrib(Re,"style",B.getAttrib(Re,"style"))),g.nodeChanged()},jd=ci=>{ii();const Va=B.getPos(ci,be),Xa=Va.x,Df=Va.y,el=ci.getBoundingClientRect(),Yu=el.width||el.right-el.left,Rg=el.height||el.bottom-el.top;Re!==ci&&(Wo(),Re=ci,wr=Ur=0);const m1=g.dispatch("ObjectSelected",{target:ci});Bi(ci)&&!m1.isDefaultPrevented()?Ge(ww,(Dh,om)=>{const Lg=Ig=>{const zi=bi(Re)[0];Jt=Ig.screenX,ln=Ig.screenY,Rn=zi.clientWidth,qn=zi.clientHeight,pr=qn/Rn,kt=Dh,kt.name=om,kt.startPos={x:Yu*Dh[0]+Xa,y:Rg*Dh[1]+Df},wo=be.scrollWidth,jo=be.scrollHeight,Wt=B.add(be,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),B.setStyles(Wt,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),Ke=$a(B,Re),B.addClass(Ke,"mce-clonedresizable"),B.setAttrib(Ke,"data-mce-bogus","all"),Ke.contentEditable="false",B.setStyles(Ke,{left:Xa,top:Df,margin:0}),Us(Ke,Yu,Rg),Ke.removeAttribute(Ph),be.appendChild(Ke),B.bind(H,"mousemove",sl),B.bind(H,"mouseup",nu),re!==H&&(B.bind(re,"mousemove",sl),B.bind(re,"mouseup",nu)),ct=B.add(be,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},Rn+" × "+qn)};let xp=B.get("mceResizeHandle"+om);xp&&B.remove(xp),xp=B.add(be,"div",{id:"mceResizeHandle"+om,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+om+"-resize; margin:0; padding:0"}),B.bind(xp,"mousedown",Ig=>{Ig.stopImmediatePropagation(),Ig.preventDefault(),Lg(Ig)}),Dh.elm=xp,B.setStyles(xp,{left:Yu*Dh[0]+Xa-xp.offsetWidth/2,top:Rg*Dh[1]+Df-xp.offsetHeight/2})}):Wo(!1)},vl=hg(jd,0),Wo=(ci=!0)=>{vl.cancel(),ii(),Re&&ci&&Re.removeAttribute(Ph),Ge(ww,(Va,Xa)=>{const Df=B.get("mceResizeHandle"+Xa);Df&&(B.unbind(Df),B.remove(Df))})},Ei=(ci,Va)=>B.isChildOf(ci,Va),ws=ci=>{if(Tr||g.removed||g.composing)return;const Va=ci.type==="mousedown"?ci.target:r.getNode(),Xa=mu(sr.fromDom(Va),l6).map(el=>el.dom).filter(el=>B.isEditable(el.parentElement)||el.nodeName==="IMG"&&B.isEditable(el)).getOrUndefined(),Df=E(Xa)?B.getAttrib(Xa,Ph,"1"):"1";if(ye(B.select(`img[${Ph}],hr[${Ph}]`),el=>{el.removeAttribute(Ph)}),E(Xa)&&Ei(Xa,be)&&g.hasFocus()){Qi();const el=r.getStart(!0);if(Ei(el,Xa)&&Ei(r.getEnd(!0),Xa)){B.setAttrib(Xa,Ph,Df),vl.throttle(Xa);return}}Wo()},ii=()=>{Ge(ww,ci=>{ci.elm&&(B.unbind(ci.elm),delete ci.elm)})},Qi=()=>{try{g.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return g.on("init",()=>{Qi(),g.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",ws),g.on("keyup compositionend",ci=>{Re&&Re.nodeName==="TABLE"&&ws(ci)}),g.on("hide blur",Wo),g.on("contextmenu longpress",xo,!0)}),g.on("remove",ii),{isResizable:Bi,showResizeRect:jd,hideResizeRect:Wo,updateResizeRect:ws,destroy:()=>{vl.cancel(),Re=Ke=Wt=null}}},c6=(r,g)=>{g.fold(B=>{r.setStartBefore(B.dom)},(B,H)=>{r.setStart(B.dom,H)},B=>{r.setStartAfter(B.dom)})},u6=(r,g)=>{g.fold(B=>{r.setEndBefore(B.dom)},(B,H)=>{r.setEnd(B.dom,H)},B=>{r.setEndAfter(B.dom)})},c5=(r,g,B)=>{const H=r.document.createRange();return c6(H,g),u6(H,B),H},u5=(r,g,B,H,re)=>{const be=r.document.createRange();return be.setStart(g.dom,B),be.setEnd(H.dom,re),be},pv=aa.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),f5=(r,g,B)=>g(sr.fromDom(B.startContainer),B.startOffset,sr.fromDom(B.endContainer),B.endOffset),f6=(r,g)=>g.match({domRange:B=>({ltr:$(B),rtl:Y.none}),relative:(B,H)=>({ltr:xt(()=>c5(r,B,H)),rtl:xt(()=>Y.some(c5(r,H,B)))}),exact:(B,H,re,be)=>({ltr:xt(()=>u5(r,B,H,re,be)),rtl:xt(()=>Y.some(u5(r,re,be,B,H)))})}),fE=(r,g)=>{const B=g.ltr();return B.collapsed?g.rtl().filter(re=>re.collapsed===!1).map(re=>pv.rtl(sr.fromDom(re.endContainer),re.endOffset,sr.fromDom(re.startContainer),re.startOffset)).getOrThunk(()=>f5(r,pv.ltr,B)):f5(r,pv.ltr,B)},dE=(r,g)=>{const B=f6(r,g);return fE(r,B)};pv.ltr,pv.rtl;const Yh={create:(r,g,B,H)=>({start:r,soffset:g,finish:B,foffset:H})},ch=(r,g,B)=>{var H,re;return Y.from((re=(H=r.dom).caretPositionFromPoint)===null||re===void 0?void 0:re.call(H,g,B)).bind(be=>{if(be.offsetNode===null)return Y.none();const Re=r.dom.createRange();return Re.setStart(be.offsetNode,be.offset),Re.collapse(),Y.some(Re)})},w2=(r,g,B)=>{var H,re;return Y.from((re=(H=r.dom).caretRangeFromPoint)===null||re===void 0?void 0:re.call(H,g,B))},FD=(()=>document.caretPositionFromPoint?ch:document.caretRangeFromPoint?w2:Y.none)(),hE=(r,g,B)=>{const H=sr.fromDom(r.document);return FD(H,g,B).map(re=>Yh.create(sr.fromDom(re.startContainer),re.startOffset,sr.fromDom(re.endContainer),re.endOffset))},d5=aa.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),as=(r,g,B,H)=>r.fold(g,B,H),ND=r=>r.fold(Q,Q,Q),h6=d5.before,p6=d5.on,$D=d5.after,Cy={before:h6,on:p6,after:$D,cata:as,getStart:ND},Sw=aa.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),pE=r=>Sw.exact(r.start,r.soffset,r.finish,r.foffset),mE=r=>r.match({domRange:g=>sr.fromDom(g.startContainer),relative:(g,B)=>Cy.getStart(g),exact:(g,B,H,re)=>g}),gE=Sw.domRange,B3=Sw.relative,kw=Sw.exact,m6=r=>{const g=mE(r);return Mu(g)},VD=Yh.create,O2={domRange:gE,relative:B3,exact:kw,exactFromRange:pE,getWin:m6,range:VD},h5=(r,g)=>{const B=la(r);return B==="input"?Cy.after(r):ce(["br","img"],B)?g===0?Cy.before(r):Cy.after(r):Cy.on(r,g)},UD=(r,g)=>{const B=r.fold(Cy.before,h5,Cy.after),H=g.fold(Cy.before,h5,Cy.after);return O2.relative(B,H)},g6=(r,g,B,H)=>{const re=h5(r,g),be=h5(B,H);return O2.relative(re,be)},vE=r=>r.match({domRange:g=>{const B=sr.fromDom(g.startContainer),H=sr.fromDom(g.endContainer);return g6(B,g.startOffset,H,g.endOffset)},relative:UD,exact:g6}),ta=(r,g)=>{const H=(g||document).createDocumentFragment();return ye(r,re=>{H.appendChild(re.dom)}),sr.fromDom(H)},pe=r=>{const g=O2.getWin(r).dom,B=(re,be,Re,Ke)=>u5(g,re,be,Re,Ke),H=vE(r);return dE(g,H).match({ltr:B,rtl:B})},Ce=(r,g,B)=>hE(r,g,B),Ye=(r,g,B)=>{const H=Mu(sr.fromDom(B));return Ce(H.dom,r,g).map(re=>{const be=B.createRange();return be.setStart(re.start.dom,re.soffset),be.setEnd(re.finish.dom,re.foffset),be}).getOrUndefined()},st=(r,g)=>E(r)&&E(g)&&r.startContainer===g.startContainer&&r.startOffset===g.startOffset&&r.endContainer===g.endContainer&&r.endOffset===g.endOffset,St=(r,g,B)=>{let H=r;for(;H&&H!==g;){if(B(H))return H;H=H.parentNode}return null},Ut=(r,g,B)=>St(r,g,B)!==null,un=(r,g,B)=>Ut(r,g,H=>H.nodeName===B),Tn=(r,g)=>Ch(r)&&!Ut(r,g,Gp),$n=(r,g,B)=>{const H=g.parentNode;if(H){const re=new kc(g,r.getParent(H,r.isBlock)||r.getRoot());let be;for(;be=re[B?"prev":"next"]();)if(On(be))return!0}return!1},ur=(r,g)=>{var B;return((B=r.previousSibling)===null||B===void 0?void 0:B.nodeName)===g},Nr=(r,g)=>{let B=g;for(;B&&B!==r;){if(rr(B))return!0;B=B.parentNode}return!1},Ro=(r,g,B,H,re)=>{const be=r.getRoot(),Re=r.schema.getNonEmptyElements(),Ke=re.parentNode;let ct,kt;if(!Ke)return Y.none();const Wt=r.getParent(Ke,r.isBlock)||be;if(H&&On(re)&&g&&r.isEmpty(Wt))return Y.some(qr(Ke,r.nodeIndex(re)));const Jt=new kc(re,Wt);for(;kt=Jt[H?"prev":"next"]();){if(r.getContentEditableParent(kt)==="false"||Tn(kt,be))return Y.none();if(Nt(kt)&&kt.data.length>0)return un(kt,be,"A")?Y.none():Y.some(qr(kt,H?kt.data.length:0));if(r.isBlock(kt)||Re[kt.nodeName.toLowerCase()])return Y.none();ct=kt}return xn(ct)?Y.none():B&&ct?Y.some(qr(ct,0)):Y.none()},ai=(r,g,B,H)=>{const re=r.getRoot();let be,Re=!1,Ke=B?H.startContainer:H.endContainer,ct=B?H.startOffset:H.endOffset;const kt=ne(Ke)&&ct===Ke.childNodes.length,Wt=r.schema.getNonEmptyElements();let Jt=B;if(Ch(Ke))return Y.none();if(ne(Ke)&&ct>Ke.childNodes.length-1&&(Jt=!1),pn(Ke)&&(Ke=re,ct=0),Ke===re){if(Jt&&(be=Ke.childNodes[ct>0?ct-1:0],be&&(Ch(be)||Wt[be.nodeName]||Et(be))))return Y.none();if(Ke.hasChildNodes()){if(ct=Math.min(!Jt&&ct>0?ct-1:ct,Ke.childNodes.length-1),Ke=Ke.childNodes[ct],ct=Nt(Ke)&&kt?Ke.data.length:0,!g&&Ke===re.lastChild&&Et(Ke)||Nr(re,Ke)||Ch(Ke)||$o(Ke))return Y.none();if(Ke.hasChildNodes()&&!Et(Ke)){be=Ke;const ln=new kc(Ke,re);do{if(rr(be)||Ch(be)){Re=!1;break}if(Nt(be)&&be.data.length>0){ct=Jt?0:be.data.length,Ke=be,Re=!0;break}if(Wt[be.nodeName.toLowerCase()]&&!Pr(be)){ct=r.nodeIndex(be),Ke=be.parentNode,Jt||ct++,Re=!0;break}}while(be=Jt?ln.next():ln.prev())}}}return g&&(Nt(Ke)&&ct===0&&Ro(r,kt,g,!0,Ke).each(ln=>{Ke=ln.container(),ct=ln.offset(),Re=!0}),ne(Ke)&&(be=Ke.childNodes[ct],be||(be=Ke.childNodes[ct-1]),be&&On(be)&&!ur(be,"A")&&!$n(r,be,!1)&&!$n(r,be,!0)&&Ro(r,kt,g,!0,be).each(ln=>{Ke=ln.container(),ct=ln.offset(),Re=!0}))),Jt&&!g&&Nt(Ke)&&ct===Ke.data.length&&Ro(r,kt,g,!1,Ke).each(ln=>{Ke=ln.container(),ct=ln.offset(),Re=!0}),Re&&Ke?Y.some(qr(Ke,ct)):Y.none()},Ko=(r,g)=>{const B=g.collapsed,H=g.cloneRange(),re=qr.fromRangeStart(g);return ai(r,B,!0,H).each(be=>{(!B||!qr.isAbove(re,be))&&H.setStart(be.container(),be.offset())}),B||ai(r,B,!1,H).each(be=>{H.setEnd(be.container(),be.offset())}),B&&H.collapse(!0),st(g,H)?Y.none():Y.some(H)},Qo=(r,g)=>r.splitText(g),_i=r=>{let g=r.startContainer,B=r.startOffset,H=r.endContainer,re=r.endOffset;if(g===H&&Nt(g)){if(B>0&&BB){re=re-B;const be=Qo(H,re).previousSibling;g=H=be,re=be.data.length,B=0}else re=0}else if(Nt(g)&&B>0&&B0&&re({walk:(be,Re)=>yw(r,be,Re),split:_i,expand:(be,Re={type:"word"})=>{if(Re.type==="word"){const Ke=Oy(r,be,[{inline:"span"}]),ct=r.createRng();return ct.setStart(Ke.startContainer,Ke.startOffset),ct.setEnd(Ke.endContainer,Ke.endOffset),ct}return be},normalize:be=>Ko(r,be).fold(oe,Re=>(be.setStart(Re.startContainer,Re.startOffset),be.setEnd(Re.endContainer,Re.endOffset),!0))});To.compareRanges=st,To.getCaretRangeFromPoint=Ye,To.getSelectedNode=Pm,To.getNode=fi;const Yi=((r,g)=>{const B=(Ke,ct)=>{if(!L(ct)&&!ct.match(/^[0-9]+$/))throw new Error(r+".set accepts only positive integer values. Value was "+ct);const kt=Ke.dom;af(kt)&&(kt.style[r]=ct+"px")},H=Ke=>{const ct=g(Ke);if(ct<=0||ct===null){const kt=pi(Ke,r);return parseFloat(kt)||0}return ct},re=H,be=(Ke,ct)=>Ie(ct,(kt,Wt)=>{const Jt=pi(Ke,Wt),ln=Jt===void 0?0:parseInt(Jt,10);return isNaN(ln)?kt:kt+ln},0);return{set:B,get:H,getOuter:re,aggregate:be,max:(Ke,ct,kt)=>{const Wt=be(Ke,kt);return ct>Wt?ct-Wt:0}}})("height",r=>{const g=r.dom;return zc(r)?g.getBoundingClientRect().height:g.offsetHeight}),ri=r=>Yi.get(r),Ms=()=>sr.fromDom(document),al=(r,g)=>r.view(g).fold($([]),H=>{const re=r.owner(H),be=al(r,re);return[H].concat(be)}),Gs=(r,g)=>{const B=g.owner(r);return al(g,B)};var e1=Object.freeze({__proto__:null,view:r=>{var g;return(r.dom===document?Y.none():Y.from((g=r.dom.defaultView)===null||g===void 0?void 0:g.frameElement)).map(sr.fromDom)},owner:r=>Bc(r)});const Ay=r=>{const g=Ms(),B=Gc(g),H=Gs(r,e1),re=_h(r),be=Pe(H,(Re,Ke)=>{const ct=_h(Ke);return{left:Re.left+ct.left,top:Re.top+ct.top}},{left:0,top:0});return fs(be.left+re.left+B.left,be.top+re.top+B.top)},My=r=>la(r)==="textarea",Zs=(r,g)=>r.dispatch("ScrollIntoView",g).isDefaultPrevented(),Rh=(r,g)=>{r.dispatch("AfterScrollIntoView",g)},Lh=(r,g)=>{const B=Oc(r);if(B.length===0||My(r))return{element:r,offset:g};if(g{const B=Hf(r),H=ri(r);return{element:r,bottom:B.top+H,height:H,pos:B,cleanup:g}},Qm=(r,g)=>{const B=Lh(r,g),H=sr.fromHtml(''+nc+"");return Fc(B.element,H),jm(H,()=>ja(H))},qa=r=>jm(sr.fromDom(r),k),tu=(r,g,B,H)=>{xa(r,(re,be)=>Tw(r,g,B,H),B)},t1=(r,g,B,H,re)=>{const be={elm:H.element.dom,alignToTop:re};if(Zs(r,be))return;const Re=Gc(g).top;B(r,g,Re,H,re),Rh(r,be)},Tw=(r,g,B,H)=>{const re=sr.fromDom(r.getBody()),be=sr.fromDom(r.getDoc());Kl(re);const Re=Qm(sr.fromDom(B.startContainer),B.startOffset);t1(r,be,g,Re,H),Re.cleanup()},vp=(r,g,B,H)=>{const re=sr.fromDom(r.getDoc());t1(r,re,B,qa(g),H)},xa=(r,g,B)=>{const H=B.startContainer,re=B.startOffset,be=B.endContainer,Re=B.endOffset;g(sr.fromDom(H),sr.fromDom(be));const Ke=r.dom.createRng();Ke.setStart(H,re),Ke.setEnd(be,Re),r.selection.setRng(B)},p5=(r,g,B,H,re)=>{const be=g.pos;if(H)hd(be.left,be.top,re);else{const Re=be.top-B+g.height;hd(-r.getBody().getBoundingClientRect().left,Re,re)}},m5=(r,g,B,H,re,be)=>{const Re=H+B,Ke=re.pos.top,ct=re.bottom,kt=ct-Ke>=H;KeRe?p5(r,re,H,kt?be!==!1:be===!0,g):ct>Re&&!kt&&p5(r,re,H,be===!0,g)},z3=(r,g,B,H,re)=>{const be=Mu(g).dom.innerHeight;m5(r,g,B,be,H,re)},v6=(r,g,B,H,re)=>{const be=Mu(g).dom.innerHeight;m5(r,g,B,be,H,re);const Re=Ay(H.element),Ke=fa(window);Re.topKe.bottom&&rl(H.element,re===!0)},Wb=(r,g,B)=>tu(r,z3,g,B),mv=(r,g,B)=>vp(r,g,z3,B),y6=(r,g,B)=>tu(r,v6,g,B),Cw=(r,g,B)=>vp(r,g,v6,B),Nq=(r,g,B)=>{(r.inline?mv:Cw)(r,g,B)},g5=(r,g,B)=>{(r.inline?Wb:y6)(r,g,B)},F3=(r,g=!1)=>r.dom.focus({preventScroll:g}),Aw=r=>{const g=of(r).dom;return r.dom===g.activeElement},yE=(r=Ms())=>Y.from(r.dom.activeElement).map(sr.fromDom),jD=r=>yE(of(r)).filter(g=>r.dom.contains(g.dom)),QD=(r,g)=>{const B=ks(g)?ry(g).length:Oc(g).length+1;return r>B?B:r<0?0:r},$q=r=>O2.range(r.start,QD(r.soffset,r.start),r.finish,QD(r.foffset,r.finish)),HD=(r,g)=>!V(g.dom)&&(Qu(r,g)||Fa(r,g)),bE=r=>g=>HD(r,g.start)&&HD(r,g.finish),$ue=r=>r.inline||fr.browser.isFirefox(),Vq=r=>O2.range(sr.fromDom(r.startContainer),r.startOffset,sr.fromDom(r.endContainer),r.endOffset),ZD=r=>{const g=r.getSelection();return(!g||g.rangeCount===0?Y.none():Y.from(g.getRangeAt(0))).map(Vq)},xE=r=>{const g=Mu(r);return ZD(g.dom).filter(bE(r))},_E=(r,g)=>Y.from(g).filter(bE(r)).map($q),wE=r=>{const g=document.createRange();try{return g.setStart(r.start.dom,r.soffset),g.setEnd(r.finish.dom,r.foffset),Y.some(g)}catch{return Y.none()}},v5=r=>{const g=$ue(r)?xE(sr.fromDom(r.getBody())):Y.none();r.bookmark=g.isSome()?g:r.bookmark},b6=r=>(r.bookmark?r.bookmark:Y.none()).bind(B=>_E(sr.fromDom(r.getBody()),B)).bind(wE),qD=r=>{b6(r).each(g=>r.selection.setRng(g))},WD={isEditorUIElement:r=>{const g=r.className.toString();return g.indexOf("tox-")!==-1||g.indexOf("mce-")!==-1}},YD=(r,g)=>(L(g)||(g=0),setTimeout(r,g)),Uq=(r,g)=>(L(g)||(g=0),setInterval(r,g)),Tg={setEditorTimeout:(r,g,B)=>YD(()=>{r.removed||g()},B),setEditorInterval:(r,g,B)=>{const H=Uq(()=>{r.removed?clearInterval(H):g()},B);return H}},XD=r=>r.type==="nodechange"&&r.selectionChange,GD=(r,g)=>{const B=()=>{g.throttle()};Nl.DOM.bind(document,"mouseup",B),r.on("remove",()=>{Nl.DOM.unbind(document,"mouseup",B)})},KD=(r,g)=>{r.on("mouseup touchend",B=>{g.throttle()})},JD=(r,g)=>{KD(r,g),r.on("keyup NodeChange AfterSetSelectionRange",B=>{XD(B)||v5(r)})},jq=r=>{const g=hg(()=>{v5(r)},0);r.on("init",()=>{r.inline&&GD(r,g),JD(r,g)}),r.on("remove",()=>{g.cancel()})};let N3;const SE=Nl.DOM,Qq=r=>ne(r)&&WD.isEditorUIElement(r),kE=r=>{const g=r.classList;return g!==void 0?g.contains("tox-edit-area")||g.contains("tox-edit-area__iframe")||g.contains("mce-content-body"):!1},x6=(r,g)=>{const B=Eh(r);return SE.getParent(g,re=>Qq(re)||(B?r.dom.is(re,B):!1))!==null},TE=r=>{try{const g=of(sr.fromDom(r.getElement()));return yE(g).fold(()=>document.body,B=>B.dom)}catch{return document.body}},Hq=(r,g)=>{const B=g.editor;jq(B);const H=(re,be)=>{if(yy(re)&&re.inline!==!0){const Re=sr.fromDom(re.getContainer());be(Re,"tox-edit-focus")}};B.on("focusin",()=>{const re=r.focusedEditor;kE(TE(B))&&H(B,_f),re!==B&&(re&&re.dispatch("blur",{focusedEditor:B}),r.setActive(B),r.focusedEditor=B,B.dispatch("focus",{blurredEditor:re}),B.focus(!0))}),B.on("focusout",()=>{Tg.setEditorTimeout(B,()=>{const re=r.focusedEditor;(!kE(TE(B))||re!==B)&&H(B,nf),!x6(B,TE(B))&&re===B&&(B.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})}),N3||(N3=re=>{const be=r.activeEditor;be&&bh(re).each(Re=>{const Ke=Re;Ke.ownerDocument===document&&Ke!==document.body&&!x6(be,Ke)&&r.focusedEditor===be&&(be.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})},SE.bind(document,"focusin",N3))},_6=(r,g)=>{r.focusedEditor===g.editor&&(r.focusedEditor=null),!r.activeEditor&&N3&&(SE.unbind(document,"focusin",N3),N3=null)},eB=r=>{r.on("AddEditor",U(Hq,r)),r.on("RemoveEditor",U(_6,r))},Zq=(r,g)=>r.dom.getParent(g,B=>r.dom.getContentEditable(B)==="true"),tB=r=>r.collapsed?Y.from(fi(r.startContainer,r.startOffset)).map(sr.fromDom):Y.none(),nB=(r,g)=>tB(g).bind(B=>F1(B)?Y.some(B):Qu(r,B)?Y.none():Y.some(r)),rB=(r,g)=>{nB(sr.fromDom(r.getBody()),g).bind(B=>lh(B.dom)).fold(()=>{r.selection.normalize()},B=>r.selection.setRng(B.toRange()))},CE=r=>{if(r.setActive)try{r.setActive()}catch{r.focus()}else r.focus()},qq=r=>Aw(r)||jD(r).isSome(),Wq=r=>E(r.iframeElement)&&Aw(sr.fromDom(r.iframeElement)),Yq=r=>{const g=r.getBody();return g&&qq(sr.fromDom(g))},oB=r=>{const g=of(sr.fromDom(r.getElement()));return yE(g).filter(B=>!kE(B.dom)&&x6(r,B.dom)).isSome()},Mw=r=>r.inline?Yq(r):Wq(r),y5=r=>Mw(r)||oB(r),Xq=r=>{const g=r.selection,B=r.getBody();let H=g.getRng();r.quirks.refreshContentEditable();const re=Re=>{b6(Re).each(Ke=>{Re.selection.setRng(Ke),H=Ke})};!Mw(r)&&r.hasEditableRoot()&&re(r);const be=Zq(r,g.getNode());if(be&&r.dom.isChildOf(be,B)){CE(be),r.hasEditableRoot()||re(r),rB(r,H),AE(r);return}r.inline||(fr.browser.isOpera()||CE(B),r.getWin().focus()),(fr.browser.isFirefox()||r.inline)&&(CE(B),rB(r,H)),AE(r)},AE=r=>r.editorManager.setActive(r),ME=(r,g)=>{r.removed||(g?AE(r):Xq(r))},iB=(r,g)=>g.collapsed?r.isEditable(g.startContainer):r.isEditable(g.startContainer)&&r.isEditable(g.endContainer),EE=(r,g,B,H,re)=>{const be=B?g.startContainer:g.endContainer,Re=B?g.startOffset:g.endOffset;return Y.from(be).map(sr.fromDom).map(Ke=>!H||!g.collapsed?Ts(Ke,re(Ke,Re)).getOr(Ke):Ke).bind(Ke=>mc(Ke)?Y.some(Ke):Hu(Ke).filter(mc)).map(Ke=>Ke.dom).getOr(r)},PE=(r,g,B=!1)=>EE(r,g,!0,B,(H,re)=>Math.min(Hl(H),re)),RE=(r,g,B=!1)=>EE(r,g,!1,B,(H,re)=>re>0?re-1:re),aB=(r,g)=>{const B=r;for(;r&&Nt(r)&&r.length===0;)r=g?r.nextSibling:r.previousSibling;return r||B},Gq=(r,g)=>{if(!g)return r;let B=g.startContainer,H=g.endContainer;const re=g.startOffset,be=g.endOffset;let Re=g.commonAncestorContainer;g.collapsed||(B===H&&be-re<2&&B.hasChildNodes()&&(Re=B.childNodes[re]),Nt(B)&&Nt(H)&&(B.length===re?B=aB(B.nextSibling,!0):B=B.parentNode,be===0?H=aB(H.previousSibling,!1):H=H.parentNode,B&&B===H&&(Re=B)));const Ke=Nt(Re)?Re.parentNode:Re;return ge(Ke)?Ke:r},Kq=(r,g,B,H)=>{const re=[],be=r.getRoot(),Re=r.getParent(B||PE(be,g,g.collapsed),r.isBlock),Ke=r.getParent(H||RE(be,g,g.collapsed),r.isBlock);if(Re&&Re!==be&&re.push(Re),Re&&Ke&&Re!==Ke){let ct;const kt=new kc(Re,be);for(;(ct=kt.next())&&ct!==Ke;)r.isBlock(ct)&&re.push(ct)}return Ke&&Re!==Ke&&Ke!==be&&re.push(Ke),re},Jq=(r,g,B)=>Y.from(g).bind(H=>Y.from(H.parentNode).map(re=>{const be=r.nodeIndex(H),Re=r.createRng();return Re.setStart(re,be),Re.setEnd(re,be+1),B&&(XS(r,Re,H,!0),XS(r,Re,H,!1)),Re})),$3=(r,g)=>ve(g,B=>{const H=r.dispatch("GetSelectionRange",{range:B});return H.range!==B?H.range:B}),sB={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},b5=(r,g,B)=>{const H=B?"lastChild":"firstChild",re=B?"prev":"next";if(r[H])return r[H];if(r!==g){let be=r[re];if(be)return be;for(let Re=r.parent;Re&&Re!==g;Re=Re.parent)if(be=Re[re],be)return be}},lB=r=>{var g;const B=(g=r.value)!==null&&g!==void 0?g:"";if(!kf(B))return!1;const H=r.parent;return!(H&&(H.name!=="span"||H.attr("style"))&&/^[ ]+$/.test(B))},LE=r=>{const g=r.name==="a"&&!r.attr("href")&&r.attr("id");return r.attr("name")||r.attr("id")&&!r.firstChild||r.attr("data-mce-bookmark")||g};class yp{static create(g,B){const H=new yp(g,sB[g]||1);return B&&Ge(B,(re,be)=>{H.attr(be,re)}),H}constructor(g,B){this.name=g,this.type=B,B===1&&(this.attributes=[],this.attributes.map={})}replace(g){const B=this;return g.parent&&g.remove(),B.insert(g,B),B.remove(),B}attr(g,B){const H=this;if(!v(g))return E(g)&&Ge(g,(be,Re)=>{H.attr(Re,be)}),H;const re=H.attributes;if(re){if(B!==void 0){if(B===null){if(g in re.map){delete re.map[g];let be=re.length;for(;be--;)if(re[be].name===g)return re.splice(be,1),H}return H}if(g in re.map){let be=re.length;for(;be--;)if(re[be].name===g){re[be].value=B;break}}else re.push({name:g,value:B});return re.map[g]=B,H}return re.map[g]}}clone(){const g=this,B=new yp(g.name,g.type),H=g.attributes;if(H){const re=[];re.map={};for(let be=0,Re=H.length;bev(r.nodeValue)&&r.nodeValue.includes(nc),uB=r=>`${r.length===0?"":`${ve(r,g=>`[${g}]`).join(",")},`}[data-mce-bogus="all"]`,tW=(r,g)=>g.querySelectorAll(uB(r)),fB=r=>document.createTreeWalker(r,NodeFilter.SHOW_COMMENT,g=>cB(g)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),dB=r=>document.createTreeWalker(r,NodeFilter.SHOW_TEXT,g=>{if(cB(g)){const B=g.parentNode;return B&&_t(eW,B.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP}),nW=r=>fB(r).nextNode()!==null,rW=r=>dB(r).nextNode()!==null,oW=(r,g)=>g.querySelector(uB(r))!==null,iW=(r,g)=>{ye(tW(r,g),B=>{const H=sr.fromDom(B);uc(H,"data-mce-bogus")==="all"?ja(H):ye(r,re=>{Vf(H,re)&&gc(H,re)})})},hB=r=>{let g=r.nextNode();for(;g!==null;)g.nodeValue=null,g=r.nextNode()},w6=I(hB,fB),pB=I(hB,dB),IE=(r,g)=>{const B=[{condition:U(oW,g),action:U(iW,g)},{condition:nW,action:w6},{condition:rW,action:pB}];let H=r,re=!1;return ye(B,({condition:be,action:Re})=>{be(H)&&(re||(H=r.cloneNode(!0),re=!0),Re(H))}),H},mB=r=>{const g=Zl(r,"[data-mce-bogus]");ye(g,B=>{uc(B,"data-mce-bogus")==="all"?ja(B):N0(B)?(Fc(B,sr.fromText(Iu)),ja(B)):yu(B)})},gB=r=>{const g=Zl(r,"input");ye(g,B=>{gc(B,"name")})},aW=(r,g)=>{const B=dc(r),H=new RegExp(`^(<${B}[^>]*>( | |\\s| |
    |)<\\/${B}>[\r ]*|
    [\r -]*)$`);return g.replace(H,"")},sW=(r,g)=>{const B=r.getDoc(),H=of(sr.fromDom(r.getBody())),re=sr.fromTag("div",B);Es(re,"data-mce-bogus","all"),Hi(re,{position:"fixed",left:"-9999999px",top:"0"}),Id(re,g.innerHTML),mB(re),gB(re);const be=Ip(H);Ps(be,re);const Re=vd(re.dom.innerText);return ja(re),Re},lW=(r,g,B)=>{let H;return g.format==="raw"?H=mo.trim(vd(LE(B,r.serializer.getTempAttrs()).innerHTML)):g.format==="text"?H=sW(r,B):g.format==="tree"?H=r.serializer.serialize(B,g):H=aW(r,r.serializer.serialize(B,g)),g.format!=="text"&&!iy(sr.fromDom(B))&&v(H)?mo.trim(H):H},cW=(r,g)=>Y.from(r.getBody()).fold($(g.format==="tree"?new yp("body",11):""),B=>lW(r,g,B)),IE=mo.makeMap,vB=r=>{const g=[];r=r||{};const B=r.indent,H=IE(r.indent_before||""),re=IE(r.indent_after||""),be=up.getEncodeFunc(r.entity_encoding||"raw",r.entities),Re=r.element_format!=="xhtml";return{start:(Ke,ct,kt)=>{if(B&&H[Ke]&&g.length>0){const Wt=g[g.length-1];Wt.length>0&&Wt!==` +]*)$`);return g.replace(H,"")},sW=(r,g)=>{const B=r.getDoc(),H=of(sr.fromDom(r.getBody())),re=sr.fromTag("div",B);Es(re,"data-mce-bogus","all"),Hi(re,{position:"fixed",left:"-9999999px",top:"0"}),Id(re,g.innerHTML),mB(re),gB(re);const be=Ip(H);Ps(be,re);const Re=yd(re.dom.innerText);return ja(re),Re},lW=(r,g,B)=>{let H;return g.format==="raw"?H=mo.trim(yd(IE(B,r.serializer.getTempAttrs()).innerHTML)):g.format==="text"?H=sW(r,B):g.format==="tree"?H=r.serializer.serialize(B,g):H=aW(r,r.serializer.serialize(B,g)),g.format!=="text"&&!iy(sr.fromDom(B))&&v(H)?mo.trim(H):H},cW=(r,g)=>Y.from(r.getBody()).fold($(g.format==="tree"?new yp("body",11):""),B=>lW(r,g,B)),DE=mo.makeMap,vB=r=>{const g=[];r=r||{};const B=r.indent,H=DE(r.indent_before||""),re=DE(r.indent_after||""),be=up.getEncodeFunc(r.entity_encoding||"raw",r.entities),Re=r.element_format!=="xhtml";return{start:(Ke,ct,kt)=>{if(B&&H[Ke]&&g.length>0){const Wt=g[g.length-1];Wt.length>0&&Wt!==` `&&g.push(` `)}if(g.push("<",Ke),ct)for(let Wt=0,Jt=ct.length;Wt0){const Wt=g[g.length-1];Wt.length>0&&Wt!==` `&&g.push(` @@ -3678,76 +3678,76 @@ Required: `+g.join(", "));return Jt[Re].apply(null,ct)},log:Jt=>{console.log(Jt, `&&g.push(` `))},text:(Ke,ct)=>{Ke.length>0&&(g[g.length]=ct?Ke:be(Ke))},cdata:Ke=>{g.push("")},comment:Ke=>{g.push("")},pi:(Ke,ct)=>{ct?g.push(""):g.push(""),B&&g.push(` `)},doctype:Ke=>{g.push("",B?` -`:"")},reset:()=>{g.length=0},getContent:()=>g.join("").replace(/\n$/,"")}},Wb=(r={},g=Np())=>{const B=vB(r);return r.validate="validate"in r?r.validate:!0,{serialize:re=>{const be=r.validate,Re={3:ct=>{var kt;B.text((kt=ct.value)!==null&&kt!==void 0?kt:"",ct.raw)},8:ct=>{var kt;B.comment((kt=ct.value)!==null&&kt!==void 0?kt:"")},7:ct=>{B.pi(ct.name,ct.value)},10:ct=>{var kt;B.doctype((kt=ct.value)!==null&&kt!==void 0?kt:"")},4:ct=>{var kt;B.cdata((kt=ct.value)!==null&&kt!==void 0?kt:"")},11:ct=>{let kt=ct;if(kt=kt.firstChild)do Ke(kt);while(kt=kt.next)}};B.reset();const Ke=ct=>{var kt;const Wt=Re[ct.type];if(Wt)Wt(ct);else{const Jt=ct.name,ln=Jt in g.getVoidElements();let kn=ct.attributes;if(be&&kn&&kn.length>1){const Vn=[];Vn.map={};const Rn=g.getElementRule(ct.name);if(Rn){for(let qn=0,pr=Rn.attributesOrder.length;qn{g.length=0},getContent:()=>g.join("").replace(/\n$/,"")}},Yb=(r={},g=Np())=>{const B=vB(r);return r.validate="validate"in r?r.validate:!0,{serialize:re=>{const be=r.validate,Re={3:ct=>{var kt;B.text((kt=ct.value)!==null&&kt!==void 0?kt:"",ct.raw)},8:ct=>{var kt;B.comment((kt=ct.value)!==null&&kt!==void 0?kt:"")},7:ct=>{B.pi(ct.name,ct.value)},10:ct=>{var kt;B.doctype((kt=ct.value)!==null&&kt!==void 0?kt:"")},4:ct=>{var kt;B.cdata((kt=ct.value)!==null&&kt!==void 0?kt:"")},11:ct=>{let kt=ct;if(kt=kt.firstChild)do Ke(kt);while(kt=kt.next)}};B.reset();const Ke=ct=>{var kt;const Wt=Re[ct.type];if(Wt)Wt(ct);else{const Jt=ct.name,ln=Jt in g.getVoidElements();let kn=ct.attributes;if(be&&kn&&kn.length>1){const Vn=[];Vn.map={};const Rn=g.getElementRule(ct.name);if(Rn){for(let qn=0,pr=Rn.attributesOrder.length;qn{DE.add(g)});const yB=new Set;ye(["background-color"],g=>{yB.add(g)});const bB=["font","text-decoration","text-emphasis"],uW=(r,g)=>r.parseStyle(r.getAttrib(g,"style")),V3=(r,g)=>nt(uW(r,g)),fW=r=>DE.has(r),dW=r=>yB.has(r),xB=(r,g)=>de(V3(r,g),B=>fW(B)),hW=(r,g)=>xB(r,g)&&de(V3(r,g),B=>dW(B)),pW=r=>Te(r,g=>de(bB,B=>xr(g,B))),mW=(r,g,B)=>{const H=V3(r,g),re=V3(r,B),be=Re=>{var Ke,ct;const kt=(Ke=r.getStyle(g,Re))!==null&&Ke!==void 0?Ke:"",Wt=(ct=r.getStyle(B,Re))!==null&&ct!==void 0?ct:"";return Kn(kt)&&Kn(Wt)&&kt!==Wt};return de(H,Re=>{const Ke=ct=>de(ct,kt=>kt===Re);if(!Ke(re)&&Ke(bB)){const ct=pW(re);return de(ct,be)}else return be(Re)})},_B=(r,g,B)=>Y.from(B.container()).filter(Nt).exists(H=>{const re=r?0:-1;return g(H.data.charAt(B.offset()+re))}),BE=U(_B,!0,Ub),zE=U(_B,!1,Ub),gW=r=>{const g=r.container();return Nt(g)&&(g.data.length===0||$0(g.data)&&ky.isBookmarkNode(g.parentNode))},S2=(r,g)=>B=>u3(r?0:-1,B).filter(g).isSome(),wB=r=>An(r)&&pi(sr.fromDom(r),"display")==="block",OB=r=>rr(r)&&!mt(r),vW=S2(!0,wB),yW=S2(!1,wB),Li=S2(!0,Zr),U3=S2(!1,Zr),FE=S2(!0,Et),NE=S2(!1,Et),Ey=S2(!0,OB),k2=S2(!1,OB),bW=r=>r.slice(0,-1),xW=(r,g,B)=>Qu(g,r)?bW(Uh(r,H=>B(H)||Fa(H,g))):[],SB=(r,g)=>xW(r,g,oe),Yb=(r,g)=>[r].concat(SB(r,g)),j3=(r,g,B)=>VT(r,g,B,gW),kB=r=>g=>r.isBlock(sa(g)),_W=(r,g,B)=>De(Yb(sr.fromDom(g.container()),r),kB(B)),TB=(r,g,B,H)=>j3(r,g.dom,B).forall(re=>_W(g,B,H).fold(()=>!Wp(re,B,g.dom),be=>!Wp(re,B,g.dom)&&Qu(be,sr.fromDom(re.container())))),da=(r,g,B,H)=>_W(g,B,H).fold(()=>j3(r,g.dom,B).forall(re=>!Wp(re,B,g.dom)),re=>j3(r,re.dom,B).isNone()),$E=U(da,!1),Ta=U(da,!0),CB=U(TB,!1),$ue=U(TB,!0),Vue=r=>d3(r).exists(N0),w6=(r,g,B,H)=>{const re=Te(Yb(sr.fromDom(B.container()),g),Re=>H.isBlock(sa(Re))),be=Xe(re).getOr(g);return Yp(r,be.dom,B).filter(Vue)},AB=(r,g,B)=>d3(g).exists(N0)||w6(!0,r,g,B).isSome(),VE=(r,g,B)=>DT(g).exists(N0)||w6(!1,r,g,B).isSome(),MB=U(w6,!1),wW=U(w6,!0),oa=r=>qr.isTextPosition(r)&&!r.isAtStart()&&!r.isAtEnd(),EB=(r,g,B)=>{const H=Te(Yb(sr.fromDom(g.container()),r),re=>B.isBlock(sa(re)));return Xe(H).getOr(r)},PB=(r,g,B)=>oa(g)?zE(g):zE(g)||mp(EB(r,g,B).dom,g).exists(zE),RB=(r,g,B)=>oa(g)?BE(g):BE(g)||sh(EB(r,g,B).dom,g).exists(BE),b5=r=>ce(["pre","pre-wrap"],r),O6=r=>d3(r).bind(g=>Ya(g,mc)).exists(g=>b5(pi(g,"white-space"))),OW=(r,g)=>mp(r.dom,g).isNone(),SW=(r,g)=>sh(r.dom,g).isNone(),kW=(r,g,B)=>OW(r,g)||SW(r,g)||$E(r,g,B)||Ta(r,g,B)||VE(r,g,B)||AB(r,g,B),LB=r=>E(r)&&rr(r)&&LS(r),IB=(r,g)=>B=>LB(new kc(B,r)[g]()),Uue=(r,g)=>{const B=sh(r.dom,g).getOr(g),H=IB(r.dom,"next");return g.isAtEnd()&&(H(g.container())||H(B.container()))},jue=(r,g)=>{const B=mp(r.dom,g).getOr(g),H=IB(r.dom,"prev");return g.isAtStart()&&(H(g.container())||H(B.container()))},DB=(r,g,B)=>O6(g)?!1:kW(r,g,B)||PB(r,g,B)||RB(r,g,B),x5=(r,g,B)=>O6(g)?!1:$E(r,g,B)||CB(r,g,B)||VE(r,g,B)||PB(r,g,B)||jue(r,g),TW=r=>{const g=r.container(),B=r.offset();return Nt(g)&&BO6(g)?!1:Ta(r,g,B)||$ue(r,g,B)||AB(r,g,B)||RB(r,g,B)||Uue(r,g),S6=(r,g,B)=>x5(r,g,B)||_5(r,TW(g),B),BB=(r,g)=>G0(r.charAt(g)),za=(r,g)=>Ub(r.charAt(g)),zB=r=>{const g=r.container();return Nt(g)&&Un(g.data,Ea)},k6=r=>{const g=r.split("");return ve(g,(B,H)=>G0(B)&&H>0&&H{const re=g.data,be=qr(g,0);return!B&&BB(re,0)&&!S6(r,be,H)?(g.data=" "+re.slice(1),!0):B&&za(re,0)&&x5(r,be,H)?(g.data=Ea+re.slice(1),!0):!1},FB=r=>{const g=r.data,B=k6(g);return B!==g?(r.data=B,!0):!1},jE=(r,g,B,H)=>{const re=g.data,be=qr(g,re.length-1);return!B&&BB(re,re.length-1)&&!S6(r,be,H)?(g.data=re.slice(0,-1)+" ",!0):B&&za(re,re.length-1)&&_5(r,be,H)?(g.data=re.slice(0,-1)+Ea,!0):!1},NB=(r,g,B)=>{const H=g.container();if(!Nt(H))return Y.none();if(zB(g)){const re=UE(r,H,!1,B)||FB(H)||jE(r,H,!1,B);return ma(re,g)}else if(S6(r,g,B)){const re=UE(r,H,!0,B)||jE(r,H,!0,B);return ma(re,g)}else return Y.none()},$B=r=>{const g=sr.fromDom(r.getBody());r.selection.isCollapsed()&&NB(g,qr.fromRangeStart(r.selection.getRng()),r.schema).each(B=>{r.selection.setRng(B.toRange())})},VB=(r,g,B,H)=>{if(B===0)return;const re=sr.fromDom(r),be=ms(re,kt=>H.isBlock(sa(kt))).getOr(re),Re=r.data.slice(g,g+B),Ke=g+B>=r.data.length&&_5(be,qr(r,r.data.length),H),ct=g===0&&x5(be,qr(r,0),H);r.replaceData(g,B,le(Re,4,ct,Ke))},w5=(r,g,B)=>{const H=r.data.slice(g),re=H.length-ir(H).length;VB(r,g,re,B)},QE=(r,g,B)=>{const H=r.data.slice(0,g),re=H.length-Wn(H).length;VB(r,g-re,re,B)},HE=(r,g,B,H,re=!0)=>{const be=Wn(r.data).length,Re=re?r:g,Ke=re?g:r;return re?Re.appendData(Ke.data):Re.insertData(0,Ke.data),ja(sr.fromDom(Ke)),H&&w5(Re,be,B),Re},CW=(r,g)=>{const B=r.container(),H=r.offset();return!qr.isTextPosition(r)&&B===g.parentNode&&H>qr.before(g).offset()},AW=(r,g)=>CW(g,r)?qr(g.container(),g.offset()-1):g,MW=r=>Nt(r)?qr(r,0):qr.before(r),EW=r=>Nt(r)?qr(r,r.data.length):qr.after(r),UB=r=>ih(r.previousSibling)?Y.some(EW(r.previousSibling)):r.previousSibling?Xp(r.previousSibling):Y.none(),jB=r=>ih(r.nextSibling)?Y.some(MW(r.nextSibling)):r.nextSibling?lh(r.nextSibling):Y.none(),ZE=(r,g)=>Y.from(g.previousSibling?g.previousSibling:g.parentNode).bind(B=>mp(r,qr.before(B))).orThunk(()=>sh(r,qr.after(g))),qE=(r,g)=>sh(r,qr.after(g)).orThunk(()=>mp(r,qr.before(g))),PW=(r,g)=>UB(g).orThunk(()=>jB(g)).orThunk(()=>ZE(r,g)),RW=(r,g)=>jB(g).orThunk(()=>UB(g)).orThunk(()=>qE(r,g)),LW=(r,g,B)=>r?RW(g,B):PW(g,B),IW=(r,g,B)=>LW(r,g,B).map(U(AW,B)),QB=(r,g,B)=>{B.fold(()=>{r.focus()},H=>{r.selection.setRng(H.toRange(),g)})},DW=r=>g=>g.dom===r,BW=(r,g)=>g&&_t(r.schema.getBlockElements(),sa(g)),zW=(r,g,B)=>{if(Pi(r,g)){const H=sr.fromHtml('
    ');return B?ye(Oc(g),re=>{gw(re)||ja(re)}):gu(g),Ps(g,H),Y.some(qr.before(H.dom))}else return Y.none()},HB=(r,g,B,H)=>{const re=Eu(r).filter(Ss),be=ud(r).filter(Ss);return ja(r),wc(re,be,g,(Re,Ke,ct)=>{const kt=Re.dom,Wt=Ke.dom,Jt=kt.data.length;return HE(kt,Wt,B,H),ct.container()===Wt?qr(kt,Jt):ct}).orThunk(()=>(H&&(re.each(Re=>QE(Re.dom,Re.dom.length,B)),be.each(Re=>w5(Re.dom,0,B))),g))},FW=(r,g)=>_t(r.schema.getTextInlineElements(),sa(g)),Ew=(r,g,B,H=!0,re=!1)=>{const be=IW(g,r.getBody(),B.dom),Re=ms(B,U(BW,r),DW(r.getBody())),Ke=HB(B,be,r.schema,FW(r,B));r.dom.isEmpty(r.getBody())?(r.setContent(""),r.selection.setCursorLocation()):Re.bind(ct=>zW(r.schema,ct,re)).fold(()=>{H&&QB(r,g,Ke)},ct=>{H&&QB(r,g,Y.some(ct))})},Pw=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,NW=r=>Pw.test(r),T2=(r,g)=>_f(sr.fromDom(g),G1(r))&&!xm(r.schema,g)&&r.dom.isEditable(g),ZB=r=>{var g;return Nl.DOM.getStyle(r,"direction",!0)==="rtl"||NW((g=r.textContent)!==null&&g!==void 0?g:"")},$W=(r,g,B)=>Te(Nl.DOM.getParents(B.container(),"*",g),r),Xb=(r,g,B)=>{const H=$W(r,g,B);return Y.from(H[H.length-1])},qB=(r,g,B)=>{const H=c0(g,r),re=c0(B,r);return E(H)&&H===re},WB=r=>V0(r)||Up(r),Tg=(r,g)=>{const B=g.container(),H=g.offset();return r?oh(B)?Nt(B.nextSibling)?qr(B.nextSibling,0):qr.after(B):V0(g)?qr(B,H+1):g:oh(B)?Nt(B.previousSibling)?qr(B.previousSibling,B.previousSibling.data.length):qr.before(B):Up(g)?qr(B,H-1):g},Xh=U(Tg,!0),YB=U(Tg,!1),XB=(r,g)=>{const B=H=>H.stopImmediatePropagation();r.on("beforeinput input",B,!0),r.getDoc().execCommand(g),r.off("beforeinput input",B)},VW=r=>{r.execCommand("delete")},T6=r=>XB(r,"Delete"),GB=r=>XB(r,"ForwardDelete"),Rw=r=>g=>Aa(Hu(g),r,Fa),UW=r=>Q_(r)||nh(r),C6=(r,g)=>Qu(r,g)?Ya(g,UW,Rw(r)):Y.none(),hc=(r,g=!0)=>{r.dom.isEmpty(r.getBody())&&r.setContent("",{no_selection:!g})},O5=(r,g,B)=>cs(lh(B),Xp(B),(H,re)=>{const be=Tg(!0,H),Re=Tg(!1,re),Ke=Tg(!1,g);return r?sh(B,Ke).exists(ct=>ct.isEqual(Re)&&g.isEqual(be)):mp(B,Ke).exists(ct=>ct.isEqual(be)&&g.isEqual(Re))}).getOr(!0),Lw=r=>(ju(r)?Eu(r):zl(r)).bind(Lw).orThunk(()=>Y.some(r)),KB=(r,g,B,H=!0)=>{var re;g.deleteContents();const be=Lw(B).getOr(B),Re=sr.fromDom((re=r.dom.getParent(be.dom,r.dom.isBlock))!==null&&re!==void 0?re:B.dom);if(Re.dom===r.getBody()?hc(r,H):Pi(r.schema,Re,{checkRootAsContent:!1})&&(rh(Re),H&&r.selection.setCursorLocation(Re.dom,0)),!Fa(B,Re)){const Ke=Aa(Hu(Re),B)?[]:jh(Re);ye(Ke.concat(Oc(B)),ct=>{!Fa(ct,Re)&&!Qu(ct,Re)&&Pi(r.schema,ct)&&ja(ct)})}},Q3=r=>g=>Fa(r,g),Hm=r=>Zl(r,"td,th"),H3=(r,g)=>hw(sr.fromDom(r),g),Ul=r=>cs(r.startTable,r.endTable,(g,B)=>{const H=Qs(g,be=>Fa(be,B)),re=Qs(B,be=>Fa(be,g));return!H&&!re?r:{...r,startTable:H?Y.none():r.startTable,endTable:re?Y.none():r.endTable,isSameTable:!1,isMultiTable:!1}}).getOr(r),S5=r=>Ul(r),JB=(r,g)=>{const B=H3(r.startContainer,g),H=H3(r.endContainer,g),re=B.isSome(),be=H.isSome(),Re=cs(B,H,Fa).getOr(!1);return S5({startTable:B,endTable:H,isStartInTable:re,isEndInTable:be,isSameTable:Re,isMultiTable:!Re&&re&&be})},A6=(r,g)=>({start:r,end:g}),WE=(r,g,B)=>({rng:r,table:g,cells:B}),Iw=aa.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),Z3=(r,g)=>pu(sr.fromDom(r),"td,th",g),M6=r=>!Fa(r.start,r.end),k5=(r,g)=>hw(r.start,g).bind(B=>hw(r.end,g).bind(H=>ma(Fa(B,H),B))),YE=(r,g)=>!M6(r)&&k5(r,g).exists(B=>{const H=B.dom.rows;return H.length===1&&H[0].cells.length===1}),ez=(r,g)=>{const B=Z3(r.startContainer,g),H=Z3(r.endContainer,g);return cs(B,H,A6)},tz=r=>g=>hw(g,r).bind(B=>tt(Hm(B)).map(H=>A6(g,H))),nz=r=>g=>hw(g,r).bind(B=>Xe(Hm(B)).map(H=>A6(H,g))),E6=r=>g=>k5(g,r).map(B=>WE(g,B,Hm(B))),XE=(r,g,B,H)=>{if(B.collapsed||!r.forall(M6))return Y.none();if(g.isSameTable){const re=r.bind(E6(H));return Y.some({start:re,end:re})}else{const re=Z3(B.startContainer,H),be=Z3(B.endContainer,H),Re=re.bind(tz(H)).bind(E6(H)),Ke=be.bind(nz(H)).bind(E6(H));return Y.some({start:Re,end:Ke})}},Dw=(r,g)=>He(r,B=>Fa(B,g)),P6=r=>cs(Dw(r.cells,r.rng.start),Dw(r.cells,r.rng.end),(g,B)=>r.cells.slice(g,B+1)),GE=(r,g,B)=>r.exists(H=>YE(H,B)&&x3(H.start,g)),rz=(r,g)=>{const{startTable:B,endTable:H}=g,re=r.cloneRange();return B.each(be=>re.setStartAfter(be.dom)),H.each(be=>re.setEndBefore(be.dom)),re},jW=(r,g,B,H)=>XE(r,g,B,H).bind(({start:re,end:be})=>re.or(be)).bind(re=>{const{isSameTable:be}=g,Re=P6(re).getOr([]);if(be&&re.cells.length===Re.length)return Y.some(Iw.fullTable(re.table));if(Re.length>0){if(be)return Y.some(Iw.partialTable(Re,Y.none()));{const Ke=rz(B,g);return Y.some(Iw.partialTable(Re,Y.some({...g,rng:Ke})))}}else return Y.none()}),oz=(r,g,B,H)=>XE(r,g,B,H).bind(({start:re,end:be})=>{const Re=re.bind(P6).getOr([]),Ke=be.bind(P6).getOr([]);if(Re.length>0&&Ke.length>0){const ct=rz(B,g);return Y.some(Iw.multiTable(Re,Ke,ct))}else return Y.none()}),iz=(r,g)=>{const B=Q3(r),H=ez(g,B),re=JB(g,B);return GE(H,g,B)?H.map(be=>Iw.singleCellTable(g,be.start)):re.isMultiTable?oz(H,re,g,B):jW(H,re,g,B)},KE=r=>ye(r,g=>{gc(g,"contenteditable"),rh(g)}),R6=(r,g)=>Y.from(r.dom.getParent(g,r.dom.isBlock)).map(sr.fromDom),az=(r,g,B)=>{B.each(H=>{g?ja(H):(rh(H),r.selection.setCursorLocation(H.dom,0))})},L6=(r,g,B,H)=>{const re=B.cloneRange();H?(re.setStart(B.startContainer,B.startOffset),re.setEndAfter(g.dom.lastChild)):(re.setStartBefore(g.dom.firstChild),re.setEnd(B.endContainer,B.endOffset)),I6(r,re,g,!1).each(be=>be())},JE=r=>{const g=g2(r),B=sr.fromDom(r.selection.getNode());Dr(B.dom)&&Pi(r.schema,B)?r.selection.setCursorLocation(B.dom,0):r.selection.collapse(!0),g.length>1&&de(g,H=>Fa(H,B))&&Es(B,"data-mce-selected","1")},e7=(r,g,B)=>Y.some(()=>{const H=r.selection.getRng(),re=B.bind(({rng:be,isStartInTable:Re})=>{const Ke=R6(r,Re?be.endContainer:be.startContainer);be.deleteContents(),az(r,Re,Ke.filter(U(Pi,r.schema)));const ct=Re?g[0]:g[g.length-1];return L6(r,ct,H,Re),Pi(r.schema,ct)?Y.none():Y.some(Re?g.slice(1):g.slice(0,-1))}).getOr(g);KE(re),JE(r)}),sz=(r,g,B,H)=>Y.some(()=>{const re=r.selection.getRng(),be=g[0],Re=B[B.length-1];L6(r,be,re,!0),L6(r,Re,re,!1);const Ke=Pi(r.schema,be)?g:g.slice(1),ct=Pi(r.schema,Re)?B:B.slice(0,-1);KE(Ke.concat(ct)),H.deleteContents(),JE(r)}),I6=(r,g,B,H=!0)=>Y.some(()=>{KB(r,g,B,H)}),lz=(r,g)=>Y.some(()=>Ew(r,!1,g)),cz=(r,g,B)=>iz(g,B).bind(H=>H.fold(U(I6,r),U(lz,r),U(e7,r),U(sz,r))),uz=(r,g)=>T5(r,g),fz=(r,g,B,H)=>D6(g,H).fold(()=>cz(r,g,B),re=>uz(r,re)),t7=(r,g,B)=>{const H=sr.fromDom(r.getBody()),re=r.selection.getRng();return B.length!==0?e7(r,B,Y.none()):fz(r,H,re,g)},n7=(r,g)=>De(Yb(g,r),z1),D6=(r,g)=>De(Yb(g,r),Ju("caption")),dz=(r,g,B,H,re)=>lv(B,r.getBody(),re).bind(be=>n7(g,sr.fromDom(be.getNode())).bind(Re=>Fa(Re,H)?Y.none():Y.some(k))),T5=(r,g)=>Y.some(()=>{rh(g),r.selection.setCursorLocation(g.dom,0)}),hz=(r,g,B,H)=>lh(r.dom).bind(re=>Xp(r.dom).map(be=>g?B.isEqual(re)&&H.isEqual(be):B.isEqual(be)&&H.isEqual(re))).getOr(!0),pz=(r,g)=>T5(r,g),r7=(r,g,B)=>D6(r,sr.fromDom(B.getNode())).fold(()=>Y.some(k),H=>ma(!Fa(H,g),k)),B6=(r,g,B,H,re)=>lv(B,r.getBody(),re).fold(()=>Y.some(k),be=>hz(H,B,re,be)?pz(r,H):r7(g,H,be)),o7=(r,g,B,H)=>{const re=qr.fromRangeStart(r.selection.getRng());return n7(B,H).bind(be=>Pi(r.schema,be,{checkRootAsContent:!1})?T5(r,be):dz(r,B,g,be,re))},z6=(r,g,B,H)=>{const re=qr.fromRangeStart(r.selection.getRng());return Pi(r.schema,H)?T5(r,H):B6(r,B,g,H,re)},i7=(r,g)=>r?FE(g):NE(g),F6=(r,g)=>{const B=qr.fromRangeStart(r.selection.getRng());return i7(g,B)||Yp(g,r.getBody(),B).exists(H=>i7(g,H))},a7=(r,g,B)=>{const H=sr.fromDom(r.getBody());return D6(H,B).fold(()=>o7(r,g,H,B).orThunk(()=>ma(F6(r,g),k)),re=>z6(r,g,H,re))},Bw=(r,g)=>{const B=sr.fromDom(r.selection.getStart(!0)),H=g2(r);return r.selection.isCollapsed()&&H.length===0?a7(r,g,B):t7(r,B,H)},Gb=(r,g)=>{let B=g;for(;B&&B!==r;){if(Sn(B)||rr(B))return B;B=B.parentNode}return null},mz=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],q3=mo.each,C5=r=>{const g=r.dom,B=new Set(r.serializer.getTempAttrs()),H=(be,Re)=>{if(be.nodeName!==Re.nodeName||be.nodeType!==Re.nodeType)return!1;const Ke=kt=>{const Wt={};return q3(g.getAttribs(kt),Jt=>{const ln=Jt.nodeName.toLowerCase();ln!=="style"&&!re(ln)&&(Wt[ln]=g.getAttrib(kt,ln))}),Wt},ct=(kt,Wt)=>{for(const Jt in kt)if(_t(kt,Jt)){const ln=Wt[Jt];if(M(ln)||kt[Jt]!==ln)return!1;delete Wt[Jt]}for(const Jt in Wt)if(_t(Wt,Jt))return!1;return!0};return ne(be)&&ne(Re)&&(!ct(Ke(be),Ke(Re))||!ct(g.parseStyle(g.getAttrib(be,"style")),g.parseStyle(g.getAttrib(Re,"style"))))?!1:!Kp(be)&&!Kp(Re)},re=be=>de(mz,Re=>xr(be,Re))||B.has(be);return{compare:H,isAttributeInternal:re}},N6=r=>["h1","h2","h3","h4","h5","h6"].includes(r.name),W3=r=>r.name==="summary",C2=(r,g)=>{let B=r;for(;B=B.walk();)g(B)},s7=(r,g,B,H)=>{const re=B.name;for(let be=0,Re=r.length;be{const H={nodes:{},attributes:{}};return B.firstChild&&C2(B,re=>{s7(r,g,re,H)}),H},gz=(r,g)=>{const B=(H,re)=>{Ge(H,be=>{const Re=Ee(be.nodes);ye(be.filter.callbacks,Ke=>{for(let ct=Re.length-1;ct>=0;ct--){const kt=Re[ct];(!(re?kt.attr(be.filter.name)!==void 0:kt.name===be.filter.name)||T(kt.parent))&&Re.splice(ct,1)}Re.length>0&&Ke(Re,be.filter.name,g)})})};B(r.nodes,!1),B(r.attributes,!0)},l7=(r,g,B,H={})=>{const re=QW(r,g,B);gz(re,H)},$6=(r,g,B,H)=>{if((r.pad_empty_with_br||g.insert)&&B(H)){const be=new yp("br",1);g.insert&&be.attr("data-mce-bogus","1"),H.empty().append(be)}else H.empty().append(new yp("#text",3)).value=Ea},HW=r=>{var g;return Kb(r,"#text")&&((g=r==null?void 0:r.firstChild)===null||g===void 0?void 0:g.value)===Ea},Kb=(r,g)=>{const B=r==null?void 0:r.firstChild;return E(B)&&B===r.lastChild&&B.name===g},zw=(r,g)=>{const B=r.getElementRule(g.name);return(B==null?void 0:B.paddEmpty)===!0},V6=(r,g,B,H)=>H.isEmpty(g,B,re=>zw(r,re)),Vd=(r,g)=>E(r)&&(g(r)||r.name==="br"),ZW=r=>{let g;for(let B=r;B;B=B.parent){const H=B.attr("contenteditable");if(H==="false")break;H==="true"&&(g=B)}return Y.from(g)},c7=(r,g,B=r.parent)=>{if(g.getSpecialElements()[r.name])r.empty().remove();else{const H=r.children();for(const re of H)B&&!g.isValidChild(B.name,re.name)&&c7(re,g,B);r.unwrap()}},pv=(r,g,B,H=k)=>{const re=g.getTextBlockElements(),be=g.getNonEmptyElements(),Re=g.getWhitespaceElements(),Ke=mo.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),ct=new Set,kt=Wt=>Wt!==B&&!Ke[Wt.name];for(let Wt=0;Wt1)if(vz(g,Jt,ln))c7(Jt,g);else{Rn.reverse(),kn=Rn[0].clone(),H(kn);let qn=kn;for(let pr=0;pr0?(Vn=Rn[pr].clone(),H(Vn),qn.append(Vn)):Vn=qn;for(let Tr=Rn[pr].firstChild;Tr&&Tr!==Rn[pr+1];){const wr=Tr.next;Vn.append(Tr),Tr=wr}qn=Vn}V6(g,be,Re,kn)?ln.insert(Jt,Rn[0],!0):(ln.insert(kn,Rn[0],!0),ln.insert(Jt,kn)),ln=Rn[0],(V6(g,be,Re,ln)||Kb(ln,"br"))&&ln.empty().remove()}else if(Jt.parent){if(Jt.name==="li"){let qn=Jt.prev;if(qn&&(qn.name==="ul"||qn.name==="ol")){qn.append(Jt);continue}if(qn=Jt.next,qn&&(qn.name==="ul"||qn.name==="ol")&&qn.firstChild){qn.insert(Jt,qn.firstChild,!0);continue}const pr=new yp("ul",1);H(pr),Jt.wrap(pr);continue}if(g.isValidChild(Jt.parent.name,"div")&&g.isValidChild("div",Jt.name)){const qn=new yp("div",1);H(qn),Jt.wrap(qn)}else c7(Jt,g)}}},qs=(r,g)=>{let B=r;for(;B;){if(B.name===g)return!0;B=B.parent}return!1},vz=(r,g,B=g.parent)=>B?r.children[g.name]&&!r.isValidChild(B.name,g.name)||g.name==="a"&&qs(B,"a")?!0:W3(B)&&N6(g)?!((B==null?void 0:B.firstChild)===g&&(B==null?void 0:B.lastChild)===g):!1:!1,qW=(r,g,B,H)=>{const re=document.createRange();return re.setStart(r,g),re.setEnd(B,H),re},WW=r=>{const g=qr.fromRangeStart(r),B=qr.fromRangeEnd(r),H=r.commonAncestorContainer;return Yp(!1,H,B).map(re=>!Wp(g,B,H)&&Wp(g,re,H)?qW(g.container(),g.offset(),re.container(),re.offset()):r).getOr(r)},Wl=r=>r.collapsed?r:WW(r),yz=r=>E(r.firstChild)&&r.firstChild===r.lastChild,A5=r=>r.name==="br"||r.value===Ea,M5=(r,g)=>r.getBlockElements()[g.name]&&yz(g)&&A5(g.firstChild),U6=(r,g)=>{const B=r.getNonEmptyElements();return E(g)&&(g.isEmpty(B)||M5(r,g))},j6=(r,g)=>{let B=g.firstChild,H=g.lastChild;return B&&B.name==="meta"&&(B=B.next),H&&H.attr("id")==="mce_marker"&&(H=H.prev),U6(r,H)&&(H=H==null?void 0:H.prev),!B||B!==H?!1:B.name==="ul"||B.name==="ol"},bz=r=>{var g,B;const H=r.firstChild,re=r.lastChild;return H&&H.nodeName==="META"&&((g=H.parentNode)===null||g===void 0||g.removeChild(H)),re&&re.id==="mce_marker"&&((B=re.parentNode)===null||B===void 0||B.removeChild(re)),r},Que=(r,g,B)=>{const H=g.serialize(B),re=r.createFragment(H);return bz(re)},YW=r=>{var g;return Te((g=r==null?void 0:r.childNodes)!==null&&g!==void 0?g:[],B=>B.nodeName==="LI")},Hue=r=>r.data===Ea||On(r),XW=r=>E(r==null?void 0:r.firstChild)&&r.firstChild===r.lastChild&&Hue(r.firstChild),GW=r=>!r.firstChild||XW(r),Zue=r=>r.length>0&&GW(r[r.length-1])?r.slice(0,-1):r,u7=(r,g)=>{const B=r.getParent(g,r.isBlock);return B&&B.nodeName==="LI"?B:null},kd=(r,g)=>!!u7(r,g),xz=(r,g)=>{const B=g.cloneRange(),H=g.cloneRange();return B.setStartBefore(r),H.setEndAfter(r),[B.cloneContents(),H.cloneContents()]},_z=(r,g)=>{const B=qr.before(r),re=Od(g).next(B);return re?re.toRange():null},wz=(r,g)=>{const B=qr.after(r),re=Od(g).prev(B);return re?re.toRange():null},KW=(r,g,B,H)=>{const re=xz(r,H),be=r.parentNode;return be&&(be.insertBefore(re[0],r),mo.each(g,Re=>{be.insertBefore(Re,r)}),be.insertBefore(re[1],r),be.removeChild(r)),wz(g[g.length-1],B)},JW=(r,g,B)=>{const H=r.parentNode;return H&&mo.each(g,re=>{H.insertBefore(re,r)}),_z(r,B)},Zm=(r,g,B,H)=>(H.insertAfter(g.reverse(),r),wz(g[0],B)),mv=(r,g,B,H)=>{const re=Que(g,r,H),be=u7(g,B.startContainer),Re=Zue(YW(re.firstChild)),Ke=1,ct=2,kt=g.getRoot(),Wt=Jt=>{const ln=qr.fromRangeStart(B),kn=Od(g.getRoot()),Vn=Jt===Ke?kn.prev(ln):kn.next(ln),Rn=Vn==null?void 0:Vn.getNode();return Rn?u7(g,Rn)!==be:!0};return be?Wt(Ke)?JW(be,Re,kt):Wt(ct)?Zm(be,Re,kt,g):KW(be,Re,kt,B):null},eY=["pre"],f7=(r,g,B,H)=>{var re;const be=g.firstChild,Re=g.lastChild,Ke=Re.attr("data-mce-type")==="bookmark"?Re.prev:Re,ct=be===Ke,kt=ce(eY,be.name);if(ct&&kt){const Wt=be.attr("contenteditable")!=="false",Jt=((re=r.getParent(B,r.isBlock))===null||re===void 0?void 0:re.nodeName.toLowerCase())===be.name,ln=Y.from(Gb(H,B)).forall(Sn);return Wt&&Jt&&ln}else return!1},E5=Dr,tY=(r,g,B)=>{if(E(B)){const H=r.getParent(g.endContainer,E5);return B===H&&x3(sr.fromDom(B),g)}else return!1},nY=(r,g,B)=>{var H;if(B.getAttribute("data-mce-bogus")==="all")(H=B.parentNode)===null||H===void 0||H.insertBefore(r.dom.createFragment(g),B);else{const re=B.firstChild,be=B.lastChild;!re||re===be&&re.nodeName==="BR"?r.dom.setHTML(B,g):r.selection.setContent(g,{no_events:!0})}},P5=(r,g,B)=>{Y.from(r.getParent(g,"td,th")).map(sr.fromDom).each(H=>H_(H,B))},Q6=(r,g)=>{const B=r.schema.getTextInlineElements(),H=r.dom;if(g){const re=r.getBody(),be=C5(r),Re="*[data-mce-fragment]",Ke=H.select(Re);mo.each(Ke,ct=>{const kt=ln=>E(B[ln.nodeName.toLowerCase()]),Wt=ln=>ln.childNodes.length===1;if((ln=>!(xB(H,ln)||hW(H,ln)))(ct)&&kt(ct)&&Wt(ct)){const ln=V3(H,ct),kn=(pr,Tr)=>Oe(pr,wr=>ce(Tr,wr)),Vn=pr=>Wt(ct)&&H.is(pr,Re)&&kt(pr)&&(pr.nodeName===ct.nodeName&&kn(ln,V3(H,pr))||Vn(pr.children[0])),Rn=pr=>E(pr)&&pr!==re&&(be.compare(ct,pr)||Rn(pr.parentElement)),qn=pr=>E(pr)&&pr!==re&&H.is(pr,Re)&&(mW(H,ct,pr)||qn(pr.parentElement));(Vn(ct.children[0])||Rn(ct.parentElement)&&!qn(ct.parentElement))&&H.remove(ct,!0)}})}},d7=r=>{let g=r;for(;g=g.walk();)g.type===1&&g.attr("data-mce-fragment","1")},rY=r=>{mo.each(r.getElementsByTagName("*"),g=>{g.removeAttribute("data-mce-fragment")})},gv=r=>!!r.getAttribute("data-mce-fragment"),oY=(r,g)=>E(g)&&!r.schema.getVoidElements()[g.nodeName],iY=(r,g)=>{var B,H,re;let be;const Re=r.dom,Ke=r.selection;if(!g)return;Ke.scrollIntoView(g);const ct=Gb(r.getBody(),g);if(ct&&Re.getContentEditable(ct)==="false"){Re.remove(g),Ke.select(ct);return}let kt=Re.createRng();const Wt=g.previousSibling;if(Nt(Wt)){kt.setStart(Wt,(H=(B=Wt.nodeValue)===null||B===void 0?void 0:B.length)!==null&&H!==void 0?H:0);const kn=g.nextSibling;Nt(kn)&&(Wt.appendData(kn.data),(re=kn.parentNode)===null||re===void 0||re.removeChild(kn))}else kt.setStartBefore(g),kt.setEndBefore(g);const Jt=kn=>{let Vn=qr.fromRangeStart(kn);return Vn=Od(r.getBody()).next(Vn),Vn==null?void 0:Vn.toRange()},ln=Re.getParent(g,Re.isBlock);if(Re.remove(g),ln&&Re.isEmpty(ln)){const kn=E5(ln);gu(sr.fromDom(ln)),kt.setStart(ln,0),kt.setEnd(ln,0),!kn&&!gv(ln)&&(be=Jt(kt))?(kt=be,Re.remove(ln)):Re.add(ln,Re.create("br",kn?{}:{"data-mce-bogus":"1"}))}Ke.setRng(kt)},f0=r=>{const g=r.dom,B=Wl(r.selection.getRng());r.selection.setRng(B);const H=g.getParent(B.startContainer,E5);tY(g,B,H)?I6(r,B,sr.fromDom(H)):B.startContainer===B.endContainer&&B.endOffset-B.startOffset===1&&Nt(B.startContainer.childNodes[B.startOffset])?B.deleteContents():r.getDoc().execCommand("Delete",!1)},R5=r=>{for(let g=r;g;g=g.walk())if(g.attr("id")==="mce_marker")return Y.some(g);return Y.none()},n1=(r,g,B)=>{var H;return de(B.children(),N6)&&((H=r.getParent(g,r.isBlock))===null||H===void 0?void 0:H.nodeName)==="SUMMARY"},aY=(r,g,B)=>{var H,re;const be=r.selection,Re=r.dom,Ke=r.parser,ct=B.merge,kt=Wb({validate:!0},r.schema),Wt='';B.preserve_zwsp||(g=vd(g)),g.indexOf("{$caret}")===-1&&(g+="{$caret}"),g=g.replace(/\{\$caret\}/,Wt);let Jt=be.getRng();const ln=Jt.startContainer,kn=r.getBody();ln===kn&&be.isCollapsed()&&Re.isBlock(kn.firstChild)&&oY(r,kn.firstChild)&&Re.isEmpty(kn.firstChild)&&(Jt=Re.createRng(),Jt.setStart(kn.firstChild,0),Jt.setEnd(kn.firstChild,0),be.setRng(Jt)),be.isCollapsed()||f0(r);const Vn=be.getNode(),Rn={context:Vn.nodeName.toLowerCase(),data:B.data,insert:!0},qn=Ke.parse(g,Rn);if(B.paste===!0&&j6(r.schema,qn)&&kd(Re,Vn))return Jt=mv(kt,Re,be.getRng(),qn),Jt&&be.setRng(Jt),g;B.paste===!0&&f7(Re,qn,Vn,r.getBody())&&((H=qn.firstChild)===null||H===void 0||H.unwrap()),d7(qn);let pr=qn.lastChild;if(pr&&pr.attr("id")==="mce_marker"){const Tr=pr;for(pr=pr.prev;pr;pr=pr.walk(!0))if(pr.type===3||!Re.isBlock(pr.name)){pr.parent&&r.schema.isValidChild(pr.parent.name,"span")&&pr.parent.insert(Tr,pr,pr.name==="br");break}}if(r._selectionOverrides.showBlockCaretContainer(Vn),!Rn.invalid&&!n1(Re,Vn,qn))g=kt.serialize(qn),nY(r,g,Vn);else{r.selection.setContent(Wt);let Tr=be.getNode(),wr;const Ur=r.getBody();for(pn(Tr)?Tr=wr=Ur:wr=Tr;wr&&wr!==Ur;)Tr=wr,wr=wr.parentNode;g=Tr===Ur?Ur.innerHTML:Re.getOuterHTML(Tr);const wo=Ke.parse(g),jo=R5(wo),di=jo.bind(ZW).getOr(wo);jo.each(bi=>bi.replace(qn));const lo=qn.children(),eo=(re=qn.parent)!==null&&re!==void 0?re:wo;qn.unwrap();const xo=Te(lo,bi=>vz(r.schema,bi,eo));pv(xo,r.schema,di),l7(Ke.getNodeFilters(),Ke.getAttributeFilters(),wo),g=kt.serialize(wo),Tr===Ur?Re.setHTML(Ur,g):Re.setOuterHTML(Tr,g)}return Q6(r,ct),iY(r,Re.get("mce_marker")),rY(r.getBody()),P5(Re,be.getStart(),r.schema),Wf(r.schema,r.getBody(),be.getStart()),g},Ks=r=>r instanceof yp,Y3=r=>{Mw(r)&&lh(r.getBody()).each(g=>{const B=g.getNode(),H=Et(B)?lh(B).getOr(g):g;r.selection.setRng(H.toRange())})},X3=(r,g,B)=>{r.dom.setHTML(r.getBody(),g),B!==!0&&Y3(r)},Oz=(r,g,B,H)=>{if(B=vd(B),B.length===0||/^\s+$/.test(B)){const re='
    ';g.nodeName==="TABLE"?B=""+re+"":/^(UL|OL)$/.test(g.nodeName)&&(B="

  • "+re+"
  • ");const be=dc(r);return r.schema.isValidChild(g.nodeName.toLowerCase(),be.toLowerCase())?(B=re,B=r.dom.createHTML(be,Jf(r),B)):B||(B=re),X3(r,B,H.no_selection),{content:B,html:B}}else{H.format!=="raw"&&(B=Wb({validate:!1},r.schema).serialize(r.parser.parse(B,{isRootContent:!0,insert:!0})));const re=iy(sr.fromDom(g))?B:mo.trim(B);return X3(r,re,H.no_selection),{content:re,html:re}}},h7=(r,g,B,H)=>{l7(r.parser.getNodeFilters(),r.parser.getAttributeFilters(),B);const re=Wb({validate:!1},r.schema).serialize(B),be=vd(iy(sr.fromDom(g))?re:mo.trim(re));return X3(r,be,H.no_selection),{content:B,html:be}},p7=(r,g,B)=>Y.from(r.getBody()).map(H=>Ks(g)?h7(r,H,g,B):Oz(r,H,g,B)).getOr({content:g,html:Ks(B.content)?"":B.content}),Sz=r=>C(r)?r:oe,m7=(r,g,B)=>{let H=r.dom;const re=Sz(B);for(;H.parentNode;){H=H.parentNode;const be=sr.fromDom(H),Re=g(be);if(Re.isSome())return Re;if(re(be))break}return Y.none()},g7=(r,g,B)=>{const H=g(r),re=Sz(B);return H.orThunk(()=>re(r)?Y.none():m7(r,g,re))},H6=w3,v7=(r,g,B)=>{const H=r.formatter.get(B);if(H)for(let re=0;re{const be=r.dom.getRoot();if(g===be)return!1;const Re=r.dom.getParent(g,Ke=>v7(r,Ke,B)?!0:Ke.parentNode===be||!!Py(r,Ke,B,H,!0));return!!Py(r,Re,B,H,re)},I5=(r,g,B)=>Mf(B)&&H6(g,B.inline)||fv(B)&&H6(g,B.block)?!0:$m(B)?ne(g)&&r.is(g,B.selector):!1,D5=(r,g,B,H,re,be)=>{const Re=B[H],Ke=H==="attributes";if(C(B.onmatch))return B.onmatch(g,B,H);if(Re){if(mn(Re)){for(let ct=0;ct{const be=r.formatter.get(B),Re=r.dom;if(be&&ne(g))for(let Ke=0;Ke{if(H)return L5(r,H,g,B,re);if(H=r.selection.getNode(),L5(r,H,g,B,re))return!0;const be=r.selection.getStart();return!!(be!==H&&L5(r,be,g,B,re))},sY=(r,g,B)=>{const H=[],re={},be=r.selection.getStart();return r.dom.getParent(be,Re=>{for(let Ke=0;Ke{const B=re=>Fa(re,sr.fromDom(r.getBody())),H=(re,be)=>Py(r,re.dom,be)?Y.some(be):Y.none();return Y.from(r.selection.getStart(!0)).bind(re=>g7(sr.fromDom(re),be=>Ne(g,Re=>H(be,Re)),B)).getOrNull()},cY=(r,g)=>{const B=r.formatter.get(g),H=r.dom;if(B&&r.selection.isEditable()){const re=r.selection.getStart(),be=x2(H,re);for(let Re=B.length-1;Re>=0;Re--){const Ke=B[Re];if(!$m(Ke))return!0;for(let ct=be.length-1;ct>=0;ct--)if(H.is(be[ct],Ke.selector))return!0}}return!1},kz=(r,g,B)=>Ie(B,(H,re)=>{const be=YM(r,re);return r.formatter.matchNode(g,re,{},be)?H.concat([re]):H},[]),B5=nc,uY=(r,g)=>r.importNode(g,!0),b7=r=>{if(r){const g=new kc(r,r);for(let B=g.current();B;B=g.next())if(Nt(B))return B}return null},Z6=r=>{const g=sr.fromTag("span");return ef(g,{id:v3,"data-mce-bogus":"1","data-mce-type":"format-caret"}),r&&Ps(g,sr.fromText(B5)),g},fY=r=>{const g=b7(r);return g&&g.data.charAt(0)===B5&&g.deleteData(0,1),g},x7=(r,g,B)=>{const H=r.dom,re=r.selection;if(XT(g))Ew(r,!1,sr.fromDom(g),B,!0);else{const be=re.getRng(),Re=H.getParent(g,H.isBlock),Ke=be.startContainer,ct=be.startOffset,kt=be.endContainer,Wt=be.endOffset,Jt=fY(g);H.remove(g,!0),Ke===Jt&&ct>0&&be.setStart(Jt,ct-1),kt===Jt&&Wt>0&&be.setEnd(Jt,Wt-1),Re&&H.isEmpty(Re)&&rh(sr.fromDom(Re)),re.setRng(be)}},q6=(r,g,B)=>{const H=r.dom,re=r.selection;if(g)x7(r,g,B);else if(g=$b(r.getBody(),re.getStart()),!g)for(;g=H.get(v3);)x7(r,g,B)},dY=(r,g,B)=>{var H,re;const be=r.dom,Re=be.getParent(B,U(JS,r.schema));Re&&be.isEmpty(Re)?(H=B.parentNode)===null||H===void 0||H.replaceChild(g,B):(_S(sr.fromDom(B)),be.isEmpty(B)?(re=B.parentNode)===null||re===void 0||re.replaceChild(g,B):be.insertAfter(g,B))},_7=(r,g)=>(r.appendChild(g),g),Cg=(r,g)=>{var B;const H=Pe(r,(be,Re)=>_7(be,Re.cloneNode(!1)),g),re=(B=H.ownerDocument)!==null&&B!==void 0?B:document;return _7(H,re.createTextNode(B5))},hY=(r,g,B,H,re,be)=>{const Re=r.formatter,Ke=r.dom,ct=Te(nt(Re.get()),Jt=>Jt!==H&&!Un(Jt,"removeformat")),kt=kz(r,B,ct);if(Te(kt,Jt=>!k3(r,Jt,H)).length>0){const Jt=B.cloneNode(!1);return Ke.add(g,Jt),Re.remove(H,re,Jt,be),Ke.remove(Jt),Y.some(Jt)}else return Y.none()},Tz=(r,g,B)=>{let H;const re=r.selection,be=r.formatter.get(g);if(!be)return;const Re=re.getRng();let Ke=Re.startOffset;const kt=Re.startContainer.nodeValue;H=$b(r.getBody(),re.getStart());const Wt=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(kt&&Ke>0&&Ke{const re=r.dom,be=r.selection;let Re=!1;const Ke=r.formatter.get(g);if(!Ke)return;const ct=be.getRng(),kt=ct.startContainer,Wt=ct.startOffset;let Jt=kt;Nt(kt)&&(Wt!==kt.data.length&&(Re=!0),Jt=Jt.parentNode);const ln=[];let kn;for(;Jt;){if(Py(r,Jt,g,B,H)){kn=Jt;break}Jt.nextSibling&&(Re=!0),ln.push(Jt),Jt=Jt.parentNode}if(kn)if(Re){const Vn=be.getBookmark();ct.collapse(!0);let Rn=Oy(re,ct,Ke,!0);Rn=_i(Rn),r.formatter.remove(g,B,Rn,H),be.moveToBookmark(Vn)}else{const Vn=$b(r.getBody(),kn),Rn=E(Vn)?re.getParents(kn.parentNode,q,Vn):[],qn=Z6(!1).dom;dY(r,qn,Vn??kn);const pr=hY(r,qn,kn,g,B,H),Tr=Cg([...ln,...pr.toArray(),...Rn],qn);Vn&&x7(r,Vn,E(Vn)),be.setCursorLocation(Tr,1),re.isEmpty(kn)&&re.remove(kn)}},O7=(r,g,B)=>{const H=r.selection,re=r.getBody();q6(r,null,B),(g===8||g===46)&&H.isCollapsed()&&H.getStart().innerHTML===B5&&q6(r,$b(re,H.getStart()),!0),(g===37||g===39)&&q6(r,$b(re,H.getStart()),!0)},Cz=r=>Nt(r)&&Sr(r.data,Ea),Az=r=>{r.on("mouseup keydown",g=>{O7(r,g.keyCode,Cz(r.selection.getRng().endContainer))})},Mz=r=>{const g=Z6(!1),B=Cg(r,g.dom);return{caretContainer:g,caretPosition:qr(B,0)}},Ez=(r,g)=>{const{caretContainer:B,caretPosition:H}=Mz(g);return Fc(sr.fromDom(r),B),ja(sr.fromDom(r)),H},S7=(r,g)=>{const{caretContainer:B,caretPosition:H}=Mz(g);return r.insertNode(B.dom),H},k7=(r,g)=>{if(Gp(g.dom))return!1;const B=r.schema.getTextInlineElements();return _t(B,sa(g))&&!Gp(g.dom)&&!dt(g.dom)},em={},Pz=Fe(["pre"]),pY=(r,g)=>{em[r]||(em[r]=[]),em[r].push(g)},que=(r,g)=>{_t(em,r)&&ye(em[r],B=>{B(g)})};pY("pre",r=>{const g=r.selection.getRng(),B=re=>be=>{const Re=be.previousSibling;return Pz(Re)&&ce(re,Re)},H=(re,be)=>{const Re=sr.fromDom(be),Ke=Bc(Re).dom;ja(Re),mu(sr.fromDom(re),[sr.fromTag("br",Ke),sr.fromTag("br",Ke),...Oc(Re)])};if(!g.collapsed){const re=r.selection.getSelectedBlocks(),be=Te(Te(re,Pz),B(re));ye(be,Re=>{H(Re.previousSibling,Re)})}});const W6=["fontWeight","fontStyle","color","fontSize","fontFamily"],mY=r=>_(r.styles)&&de(nt(r.styles),g=>ce(W6,g)),Wue=r=>De(r,g=>Mf(g)&&g.inline==="span"&&mY(g)),Rz=(r,g)=>{const B=r.get(g);return A(B)?Wue(B):Y.none()},Y6=(r,g)=>mp(g,qr.fromRangeStart(r)).isNone(),r1=(r,g)=>sh(g,qr.fromRangeEnd(r)).exists(B=>!On(B.getNode())||sh(g,B).isSome())===!1,X6=r=>g=>Mo(g)&&r.isEditable(g),G6=r=>{const g=r.getSelectedBlocks(),B=r.getRng();if(r.isCollapsed())return[];if(g.length===1)return Y6(B,g[0])&&r1(B,g[0])?g:[];{const H=Xe(g).filter(Re=>Y6(B,Re)).toArray(),re=tt(g).filter(Re=>r1(B,Re)).toArray(),be=g.slice(1,-1);return H.concat(be).concat(re)}},T7=r=>Te(G6(r),X6(r.dom)),Lz=r=>Te(r.getSelectedBlocks(),X6(r.dom)),K6=mo.each,C7=r=>ne(r)&&!Kp(r)&&!Gp(r)&&!dt(r),A7=(r,g)=>{for(let B=r;B;B=B[g]){if(Nt(B)&&Kn(B.data))return r;if(ne(B)&&!Kp(B))return B}return r},J6=(r,g,B)=>{const H=C5(r),re=ge(g)&&r.dom.isEditable(g),be=ge(B)&&r.dom.isEditable(B);if(re&&be){const Re=A7(g,"previousSibling"),Ke=A7(B,"nextSibling");if(H.compare(Re,Ke)){for(let ct=Re.nextSibling;ct&&ct!==Ke;){const kt=ct;ct=ct.nextSibling,Re.appendChild(kt)}return r.dom.remove(Ke),mo.each(mo.grep(Ke.childNodes),ct=>{Re.appendChild(ct)}),Re}}return B},Iz=(r,g,B,H)=>{var re;if(H&&g.merge_siblings!==!1){const be=(re=J6(r,pw(H),H))!==null&&re!==void 0?re:H;J6(r,be,pw(be,!0))}},Dz=(r,g,B)=>{if(g.clear_child_styles){const H=g.links?"*:not(a)":"*";K6(r.select(H,B),re=>{C7(re)&&r.isEditable(re)&&K6(g.styles,(be,Re)=>{r.setStyle(re,Re,"")})})}},M7=(r,g,B)=>{K6(r.childNodes,H=>{C7(H)&&(g(H)&&B(H),H.hasChildNodes()&&M7(H,g,B))})},Fw=(r,g)=>{g.nodeName==="SPAN"&&r.getAttribs(g).length===0&&r.remove(g,!0)},E7=(r,g)=>B=>!!(B&&O3(r,B,g)),Bz=(r,g,B)=>H=>{r.setStyle(H,g,B),H.getAttribute("style")===""&&H.removeAttribute("style"),Fw(r,H)},A2=aa.generate([{keep:[]},{rename:["name"]},{removed:[]}]),gY=/^(src|href|style)$/,P7=mo.each,eC=w3,vY=r=>/^(TR|TH|TD)$/.test(r.nodeName),zz=(r,g,B)=>r.isChildOf(g,B)&&g!==B&&!r.isBlock(B),R7=(r,g,B)=>{let H=g[B?"startContainer":"endContainer"],re=g[B?"startOffset":"endOffset"];if(ne(H)){const be=H.childNodes.length-1;!B&&re&&re--,H=H.childNodes[re>be?be:re]}return Nt(H)&&B&&re>=H.data.length&&(H=new kc(H,r.getBody()).next()||H),Nt(H)&&!B&&re===0&&(H=new kc(H,r.getBody()).prev()||H),H},Fz=(r,g)=>{const B=g?"firstChild":"lastChild",H=r[B];return vY(r)&&H?r.nodeName==="TR"&&H[B]||H:r},z5=(r,g,B,H)=>{var re;const be=r.create(B,H);return(re=g.parentNode)===null||re===void 0||re.insertBefore(be,g),be.appendChild(g),be},M2=(r,g,B,H,re)=>{const be=sr.fromDom(g),Re=sr.fromDom(r.create(H,re)),Ke=B?Pu(be):vh(be);return mu(Re,Ke),B?(Fc(be,Re),Hh(Re,be)):(si(be,Re),Ps(Re,be)),Re.dom},yY=(r,g)=>g.links&&r.nodeName==="A",Nz=(r,g,B)=>{const H=g.parentNode;let re;const be=r.dom,Re=dc(r);fv(B)&&H===be.getRoot()&&(!B.list_block||!eC(g,B.list_block))&&ye(Ee(g.childNodes),Ke=>{uv(r,Re,Ke.nodeName.toLowerCase())?re?re.appendChild(Ke):(re=z5(be,Ke,Re),be.setAttribs(re,Jf(r))):re=null}),!(GM(B)&&!eC(B.inline,g))&&be.remove(g,!0)},F5=(r,g,B)=>L(r)?{name:g,value:null}:{name:r,value:Qb(g,B)},L7=(r,g)=>{r.getAttrib(g,"style")===""&&(g.removeAttribute("style"),g.removeAttribute("data-mce-style"))},I7=(r,g,B,H,re)=>{let be=!1;P7(B.styles,(Re,Ke)=>{const{name:ct,value:kt}=F5(Ke,Re,H),Wt=Hb(kt,ct);(B.remove_similar||x(kt)||!ne(re)||eC(O3(r,re,ct),Wt))&&r.setStyle(g,ct,""),be=!0}),be&&L7(r,g)},bY=(r,g,B)=>{g==="removeformat"?ye(Lz(r.selection),H=>{ye(W6,re=>r.dom.setStyle(H,re,"")),L7(r.dom,H)}):Rz(r.formatter,g).each(H=>{ye(Lz(r.selection),re=>I7(r.dom,re,H,B,null))})},D7=(r,g,B,H,re)=>{const be=r.dom,Re=C5(r),Ke=r.schema;if(Mf(g)&&lg(Ke,g.inline)&&xm(Ke,H)&&H.parentElement===r.getBody())return Nz(r,H,g),A2.removed();if(!g.ceFalseOverride&&H&&be.getContentEditableParent(H)==="false"||H&&!I5(be,H,g)&&!yY(H,g))return A2.keep();const ct=H,kt=g.preserve_attributes;if(Mf(g)&&g.remove==="all"&&A(kt)){const Wt=Te(be.getAttribs(ct),Jt=>ce(kt,Jt.name.toLowerCase()));if(be.removeAllAttribs(ct),ye(Wt,Jt=>be.setAttrib(ct,Jt.name,Jt.value)),Wt.length>0)return A2.rename("span")}if(g.remove!=="all"){I7(be,ct,g,B,re),P7(g.attributes,(Jt,ln)=>{const{name:kn,value:Vn}=F5(ln,Jt,B);if(g.remove_similar||x(Vn)||!ne(re)||eC(be.getAttrib(re,kn),Vn)){if(kn==="class"){const Rn=be.getAttrib(ct,kn);if(Rn){let qn="";if(ye(Rn.split(/\s+/),pr=>{/mce\-\w+/.test(pr)&&(qn+=(qn?" ":"")+pr)}),qn){be.setAttrib(ct,kn,qn);return}}}if(gY.test(kn)&&ct.removeAttribute("data-mce-"+kn),kn==="style"&&Fe(["li"])(ct)&&be.getStyle(ct,"list-style-type")==="none"){ct.removeAttribute(kn),be.setStyle(ct,"list-style-type","none");return}kn==="class"&&ct.removeAttribute("className"),ct.removeAttribute(kn)}}),P7(g.classes,Jt=>{Jt=Qb(Jt,B),(!ne(re)||be.hasClass(re,Jt))&&be.removeClass(ct,Jt)});const Wt=be.getAttribs(ct);for(let Jt=0;Jt{let be;return g.parentNode&&ye(x2(r.dom,g.parentNode).reverse(),Re=>{if(!be&&ne(Re)&&Re.id!=="_start"&&Re.id!=="_end"){const Ke=Py(r,Re,B,H,re);Ke&&Ke.split!==!1&&(be=Re)}}),be},Nw=(r,g,B,H)=>D7(r,g,B,H,H).fold($(H),re=>(r.dom.createFragment().appendChild(H),r.dom.rename(H,re)),$(null)),$z=(r,g,B,H,re,be,Re,Ke)=>{var ct,kt;let Wt,Jt;const ln=r.dom;if(B){const kn=B.parentNode;for(let Vn=H.parentNode;Vn&&Vn!==kn;Vn=Vn.parentNode){let Rn=ln.clone(Vn,!1);for(let qn=0;qn{const be=r.formatter.get(g),Re=be[0],Ke=r.dom,ct=r.selection,kt=Rn=>{const qn=xY(r,Rn,g,B,re);return $z(r,be,qn,Rn,Rn,!0,Re,B)},Wt=Rn=>Kp(Rn)&&ne(Rn)&&(Rn.id==="_start"||Rn.id==="_end"),Jt=Rn=>de(be,qn=>E2(r,qn,B,Rn,Rn)),ln=Rn=>{const qn=Ee(Rn.childNodes),Tr=Jt(Rn)||de(be,wo=>I5(Ke,Rn,wo)),wr=Rn.parentNode;if(!Tr&&E(wr)&&u0(Re)&&Jt(wr),Re.deep&&qn.length)for(let wo=0;wo{ne(Rn)&&r.dom.getStyle(Rn,"text-decoration")===wo&&Rn.parentNode&&YT(Ke,Rn.parentNode)===wo&&E2(r,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:wo}},void 0,Rn)})},kn=Rn=>{const qn=Ke.get(Rn?"_start":"_end");if(qn){let pr=qn[Rn?"firstChild":"lastChild"];return Wt(pr)&&(pr=pr[Rn?"firstChild":"lastChild"]),Nt(pr)&&pr.data.length===0&&(pr=Rn?qn.previousSibling||qn.nextSibling:qn.nextSibling||qn.previousSibling),Ke.remove(qn,!0),pr}else return null},Vn=Rn=>{let qn,pr,Tr=Oy(Ke,Rn,be,Rn.collapsed);if(Re.split){if(Tr=_i(Tr),qn=R7(r,Tr,!0),pr=R7(r,Tr),qn!==pr){if(qn=Fz(qn,!0),pr=Fz(pr,!1),zz(Ke,qn,pr)){const Ur=Y.from(qn.firstChild).getOr(qn);kt(M2(Ke,Ur,!0,"span",{id:"_start","data-mce-type":"bookmark"})),kn(!0);return}if(zz(Ke,pr,qn)){const Ur=Y.from(pr.lastChild).getOr(pr);kt(M2(Ke,Ur,!1,"span",{id:"_end","data-mce-type":"bookmark"})),kn(!1);return}qn=z5(Ke,qn,"span",{id:"_start","data-mce-type":"bookmark"}),pr=z5(Ke,pr,"span",{id:"_end","data-mce-type":"bookmark"});const wr=Ke.createRng();wr.setStartAfter(qn),wr.setEndBefore(pr),yw(Ke,wr,Ur=>{ye(Ur,wo=>{!Kp(wo)&&!Kp(wo.parentNode)&&kt(wo)})}),kt(qn),kt(pr),qn=kn(!0),pr=kn()}else qn=pr=kt(qn);Tr.startContainer=qn.parentNode?qn.parentNode:qn,Tr.startOffset=Ke.nodeIndex(qn),Tr.endContainer=pr.parentNode?pr.parentNode:pr,Tr.endOffset=Ke.nodeIndex(pr)+1}yw(Ke,Tr,wr=>{ye(wr,ln)})};if(H){if(b2(H)){const Rn=Ke.createRng();Rn.setStartBefore(H),Rn.setEndAfter(H),Vn(Rn)}else Vn(H);Jp(r,g,H,B);return}!ct.isCollapsed()||!Mf(Re)||g2(r).length?(K0(r,()=>y2(r,Vn),Rn=>Mf(Re)&&y7(r,g,B,Rn)),r.nodeChanged()):w7(r,g,B,re),bY(r,g,B),Jp(r,g,H,B)},B7=(r,g,B,H,re)=>{(H||r.selection.isEditable())&&Vz(r,g,B,H,re)},E2=(r,g,B,H,re)=>D7(r,g,B,H,re).fold(oe,be=>(r.dom.rename(H,be),!0),q),z7=mo.each,_Y=(r,g,B,H)=>{const re=be=>{if(ge(be)&&ne(be.parentNode)&&r.isEditable(be)){const Re=YT(r,be.parentNode);r.getStyle(be,"color")&&Re?r.setStyle(be,"text-decoration",Re):r.getStyle(be,"text-decoration")===Re&&r.setStyle(be,"text-decoration",null)}};g.styles&&(g.styles.color||g.styles.textDecoration)&&(mo.walk(H,re,"childNodes"),re(H))},Uz=(r,g,B,H)=>{if(g.styles&&g.styles.backgroundColor){const re=E7(r,"fontSize");M7(H,be=>re(be)&&r.isEditable(be),Bz(r,"backgroundColor",Qb(g.styles.backgroundColor,B)))}},wY=(r,g,B,H)=>{if(Mf(g)&&(g.inline==="sub"||g.inline==="sup")){const re=E7(r,"fontSize");M7(H,Re=>re(Re)&&r.isEditable(Re),Bz(r,"fontSize",""));const be=Te(r.select(g.inline==="sup"?"sub":"sup",H),r.isEditable);r.remove(be,!0)}},OY=(r,g,B,H)=>{z7(g,re=>{Mf(re)&&z7(r.dom.select(re.inline,H),be=>{C7(be)&&E2(r,re,B,be,re.exact?be:null)}),Dz(r.dom,re,H)})},tC=(r,g,B,H,re)=>{const be=re.parentNode;Py(r,be,B,H)&&E2(r,g,H,re)||g.merge_with_parents&&be&&r.dom.getParent(be,Re=>Py(r,Re,B,H)?(E2(r,g,H,re),!0):!1)},N5=mo.each,F7=(r,g,B,H)=>{if(hy(r)&&Mf(g)&&B.parentNode){const re=db(r.schema),be=Bd(sr.fromDom(B),Re=>Gp(Re.dom));return nn(re,H)&&ba(r.schema,B.parentNode,{skipBogus:!1,includeZwsp:!0})&&!be}else return!1},jz=(r,g,B,H)=>{if(N5(B.styles,(re,be)=>{r.setStyle(g,be,Qb(re,H))}),B.styles){const re=r.getAttrib(g,"style");re&&r.setAttrib(g,"data-mce-style",re)}},SY=(r,g,B,H)=>{const re=r.formatter.get(g),be=re[0],Re=!H&&r.selection.isCollapsed(),Ke=r.dom,ct=r.selection,kt=(Vn,Rn=be)=>{C(Rn.onformat)&&Rn.onformat(Vn,Rn,B,H),jz(Ke,Vn,Rn,B),N5(Rn.attributes,(qn,pr)=>{Ke.setAttrib(Vn,pr,Qb(qn,B))}),N5(Rn.classes,qn=>{const pr=Qb(qn,B);Ke.hasClass(Vn,pr)||Ke.addClass(Vn,pr)})},Wt=(Vn,Rn)=>{let qn=!1;return N5(Vn,pr=>$m(pr)?Ke.getContentEditable(Rn)==="false"&&!pr.ceFalseOverride||E(pr.collapsed)&&pr.collapsed!==Re?!0:Ke.is(Rn,pr.selector)&&!Gp(Rn)?(kt(Rn,pr),qn=!0,!1):!0:!1),qn},Jt=Vn=>{if(v(Vn)){const Rn=Ke.create(Vn);return kt(Rn),Rn}else return null},ln=(Vn,Rn,qn)=>{const pr=[];let Tr=!0;const wr=be.inline||be.block,Ur=Jt(wr),wo=lo=>XM(be)&&Py(r,lo,g,B),jo=(lo,eo,xo)=>{const bi=mw(be)&&JS(r.schema,lo)&&uv(r,eo,wr);return xo&&bi},di=(lo,eo,xo,bi)=>{const Bi=lo.nodeName.toLowerCase(),$a=uv(r,wr,Bi)&&uv(r,eo,wr),Ia=!qn&&Nt(lo)&&$0(lo.data),Us=Gp(lo),sl=!Mf(be)||!Vn.isBlock(lo);return(xo||bi)&&$a&&!Ia&&!Us&&sl};yw(Vn,Rn,lo=>{let eo;const xo=bi=>{let Bi=!1,$a=Tr,Ia=!1;const Us=bi.parentNode,sl=Us.nodeName.toLowerCase(),nu=Vn.getContentEditable(bi);E(nu)&&($a=Tr,Tr=nu==="true",Bi=!0,Ia=n5(r,bi));const jd=Tr&&!Bi;if(On(bi)&&!F7(r,be,bi,sl)){eo=null,fv(be)&&Vn.remove(bi);return}if(wo(bi)){eo=null;return}if(jo(bi,sl,jd)){const ml=Vn.rename(bi,wr);kt(ml),pr.push(ml),eo=null;return}if($m(be)){let ml=Wt(re,bi);if(!ml&&E(Us)&&u0(be)&&(ml=Wt(re,Us)),!Mf(be)||ml){eo=null;return}}E(Ur)&&di(bi,sl,jd,Ia)?(eo||(eo=Vn.clone(Ur,!1),Us.insertBefore(eo,bi),pr.push(eo)),Ia&&Bi&&(Tr=$a),eo.appendChild(bi)):(eo=null,ye(Ee(bi.childNodes),xo),Bi&&(Tr=$a),eo=null)};ye(lo,xo)}),be.links===!0&&ye(pr,lo=>{const eo=xo=>{xo.nodeName==="A"&&kt(xo,be),ye(Ee(xo.childNodes),eo)};eo(lo)}),ye(pr,lo=>{const eo=Bi=>{let $a=0;return ye(Bi.childNodes,Ia=>{!_3(Ia)&&!Kp(Ia)&&$a++}),$a},xo=Bi=>De(Bi.childNodes,KS).filter(Ia=>Vn.getContentEditable(Ia)!=="false"&&I5(Vn,Ia,be)).map(Ia=>{const Us=Vn.clone(Ia,!1);return kt(Us),Vn.replace(Us,Bi,!0),Vn.remove(Ia,!0),Us}).getOr(Bi),bi=eo(lo);if((pr.length>1||!Vn.isBlock(lo))&&bi===0){Vn.remove(lo,!0);return}(Mf(be)||fv(be)&&be.wrapper)&&(!be.exact&&bi===1&&(lo=xo(lo)),OY(r,re,B,lo),tC(r,be,g,B,lo),Uz(Vn,be,B,lo),_Y(Vn,be,B,lo),wY(Vn,be,B,lo),Iz(r,be,B,lo))})},kn=b2(H)?H:ct.getNode();if(Ke.getContentEditable(kn)==="false"&&!n5(r,kn)){H=kn,Wt(re,H),Um(r,g,H,B);return}if(be){if(H)if(b2(H)){if(!Wt(re,H)){const Vn=Ke.createRng();Vn.setStartBefore(H),Vn.setEndAfter(H),ln(Ke,Oy(Ke,Vn,re),!0)}}else ln(Ke,H,!0);else!Re||!Mf(be)||g2(r).length?(ct.setRng(Wl(ct.getRng())),K0(r,()=>{y2(r,(Vn,Rn)=>{const qn=Rn?Vn:Oy(Ke,Vn,re);ln(Ke,qn,!1)})},q),r.nodeChanged()):Tz(r,g,B),Rz(r.formatter,g).each(Vn=>{ye(T7(r.selection),Rn=>jz(Ke,Rn,Vn,B))});que(g,r)}Um(r,g,H,B)},N7=(r,g,B,H)=>{(H||r.selection.isEditable())&&SY(r,g,B,H)},nC=r=>_t(r,"vars"),Qz=(r,g)=>{r.set({}),g.on("NodeChange",B=>{$5(g,B.element,r.get())}),g.on("FormatApply FormatRemove",B=>{const H=Y.from(B.node).map(re=>b2(re)?re:re.startContainer).bind(re=>ne(re)?Y.some(re):Y.from(re.parentElement)).getOrThunk(()=>Hz(g));$5(g,H,r.get())})},Hz=r=>r.selection.getStart(),Zz=(r,g,B,H,re)=>ze(g,Ke=>{const ct=r.formatter.matchNode(Ke,B,re??{},H);return!M(ct)},Ke=>v7(r,Ke,B)?!0:H?!1:E(r.formatter.matchNode(Ke,B,re,!0))),qz=(r,g)=>{const B=g??Hz(r);return Te(x2(r.dom,B),H=>ne(H)&&!dt(H))},$5=(r,g,B)=>{const H=qz(r,g);Ge(B,(re,be)=>{const Re=Ke=>{const ct=Zz(r,H,be,Ke.similar,nC(Ke)?Ke.vars:void 0),kt=ct.isSome();if(Ke.state.get()!==kt){Ke.state.set(kt);const Wt=ct.getOr(g);nC(Ke)?Ke.callback(kt,{node:Wt,format:be,parents:H}):ye(Ke.callbacks,Jt=>Jt(kt,{node:Wt,format:be,parents:H}))}};ye([re.withSimilar,re.withoutSimilar],Re),ye(re.withVars,Re)})},Jb=(r,g,B,H,re,be)=>{const Re=g.get();ye(B.split(","),Ke=>{const ct=Ct(Re,Ke).getOrThunk(()=>{const Wt={withSimilar:{state:mr(!1),similar:!0,callbacks:[]},withoutSimilar:{state:mr(!1),similar:!1,callbacks:[]},withVars:[]};return Re[Ke]=Wt,Wt}),kt=()=>{const Wt=qz(r);return Zz(r,Wt,Ke,re,be).isSome()};if(M(be)){const Wt=re?ct.withSimilar:ct.withoutSimilar;Wt.callbacks.push(H),Wt.callbacks.length===1&&Wt.state.set(kt())}else ct.withVars.push({state:mr(kt()),similar:re,vars:be,callback:H})}),g.set(Re)},kY=(r,g,B)=>{const H=r.get();ye(g.split(","),re=>Ct(H,re).each(be=>{H[re]={withSimilar:{...be.withSimilar,callbacks:Te(be.withSimilar.callbacks,Re=>Re!==B)},withoutSimilar:{...be.withoutSimilar,callbacks:Te(be.withoutSimilar.callbacks,Re=>Re!==B)},withVars:Te(be.withVars,Re=>Re.callback!==B)}})),r.set(H)},$7=(r,g,B,H,re,be)=>(Jb(r,g,B,H,re,be),{unbind:()=>kY(g,B,H)}),Fu=(r,g,B,H)=>{const re=r.formatter.get(g);re&&(y7(r,g,B,H)&&(!("toggle"in re[0])||re[0].toggle)?B7(r,g,B,H):N7(r,g,B,H))},rC=mo.explode,oC=()=>{const r={};return{addFilter:(re,be)=>{ye(rC(re),Re=>{_t(r,Re)||(r[Re]={name:Re,callbacks:[]}),r[Re].callbacks.push(be)})},getFilters:()=>Gt(r),removeFilter:(re,be)=>{ye(rC(re),Re=>{if(_t(r,Re))if(E(be)){const Ke=r[Re],ct=Te(Ke.callbacks,kt=>kt!==be);ct.length>0?Ke.callbacks=ct:delete r[Re]}else delete r[Re]})}}},ex=(r,g)=>{ye(g,B=>{r.attr(B,null)})},Wz=(r,g,B)=>{r.addNodeFilter("font",H=>{ye(H,re=>{const be=g.parse(re.attr("style")),Re=re.attr("color"),Ke=re.attr("face"),ct=re.attr("size");Re&&(be.color=Re),Ke&&(be["font-family"]=Ke),ct&&zr(ct).each(kt=>{be["font-size"]=B[kt-1]}),re.name="span",re.attr("style",g.serialize(be)),ex(re,["color","face","size"])})})},Yz=(r,g,B)=>{r.addNodeFilter("strike",H=>{const re=g.type!=="html4";ye(H,be=>{if(re)be.name="s";else{const Re=B.parse(be.attr("style"));Re["text-decoration"]="line-through",be.name="span",be.attr("style",B.serialize(Re))}})})},V5=(r,g,B)=>{var H;const re=I_();g.convert_fonts_to_spans&&Wz(r,re,mo.explode((H=g.font_size_legacy_values)!==null&&H!==void 0?H:"")),Yz(r,B,re)},TY=(r,g,B)=>{g.inline_styles&&V5(r,g,B)},CY=r=>fetch(r).then(g=>g.ok?g.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${r} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),G3=r=>{const g=/([a-z0-9+\/=\s]+)/i.exec(r);return g?g[1]:""},V7=r=>{const[g,...B]=r.split(","),H=B.join(","),re=/data:([^/]+\/[^;]+)(;.+)?/.exec(g);if(re){const be=re[2]===";base64",Re=be?G3(H):decodeURIComponent(H);return Y.some({type:re[1],data:Re,base64Encoded:be})}else return Y.none()},P2=(r,g,B=!0)=>{let H=g;if(B)try{H=atob(g)}catch{return Y.none()}const re=new Uint8Array(H.length);for(let be=0;benew Promise((g,B)=>{V7(r).bind(({type:H,data:re,base64Encoded:be})=>P2(H,re,be)).fold(()=>B("Invalid data URI"),g)}),R2=r=>xr(r,"blob:")?CY(r):xr(r,"data:")?AY(r):Promise.reject("Unknown URI format"),Xz=r=>new Promise((g,B)=>{const H=new FileReader;H.onloadend=()=>{g(H.result)},H.onerror=()=>{var re;B((re=H.error)===null||re===void 0?void 0:re.message)},H.readAsDataURL(r)});let d0=0;const U5=r=>(r||"blobid")+d0++,iC=(r,g,B)=>V7(r).bind(({data:H,type:re,base64Encoded:be})=>{if(g&&!be)return Y.none();{const Re=be?H:btoa(H);return B(Re,re)}}),aC=(r,g,B)=>{const H=r.create(U5(),g,B);return r.add(H),H},Gz=(r,g,B=!1)=>iC(g,B,(H,re)=>Y.from(r.getByData(H,re)).orThunk(()=>P2(re,H).map(be=>aC(r,be,H)))),sC=(r,g)=>{const B=()=>Promise.reject("Invalid data URI");if(xr(g,"blob:")){const H=r.getByUri(g);return E(H)?Promise.resolve(H):R2(g).then(re=>Xz(re).then(be=>iC(be,!1,Re=>Y.some(aC(r,re,Re))).getOrThunk(B)))}else return xr(g,"data:")?Gz(r,g).fold(B,H=>Promise.resolve(H)):Promise.reject("Unknown image data format")},MY=/^(?:(?:(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)([A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*))(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?)$/,o1=r=>Y.from(r.match(MY)).bind(g=>Ze(g,1)).map(g=>xr(g,"www.")?g.substring(4):g),j5=(r,g)=>{Y.from(r.attr("src")).bind(o1).forall(B=>!ce(g,B))&&r.attr("sandbox","")},lC=(r,g)=>xr(r,`${g}/`),U7=r=>M(r)?"iframe":lC(r,"image")?"img":lC(r,"video")?"video":lC(r,"audio")?"audio":"iframe",j7=({type:r,src:g,width:B,height:H}={},re,be)=>{const Re=U7(r),Ke=new yp(Re,1);return Ke.attr(Re==="audio"?{src:g}:{src:g,width:B,height:H}),(Re==="audio"||Re==="video")&&Ke.attr("controls",""),Re==="iframe"&&re&&j5(Ke,be),Ke},$w=r=>E(r.attr("data-mce-bogus")),Q7=r=>r.attr("src")===fr.transparentSrc||E(r.attr("data-mce-placeholder")),EY=(r,g)=>{const{blob_cache:B}=g;if(B){const H=re=>{const be=re.attr("src");Q7(re)||$w(re)||T(be)||Gz(B,be,!0).each(Re=>{re.attr("src",Re.blobUri())})};r.addAttributeFilter("src",re=>ye(re,H))}},Kz=(r,g)=>{var B,H;const re=r.schema;r.addAttributeFilter("href",ct=>{let kt=ct.length;const Wt=ln=>ln.split(" ").filter(Vn=>Vn.length>0).concat(["noopener"]).sort().join(" "),Jt=ln=>{const kn=ln?mo.trim(ln):"";return/\b(noopener)\b/g.test(kn)?kn:Wt(kn)};if(!g.allow_unsafe_link_target)for(;kt--;){const ln=ct[kt];ln.name==="a"&&ln.attr("target")==="_blank"&&ln.attr("rel",Jt(ln.attr("rel")))}}),g.allow_html_in_named_anchor||r.addAttributeFilter("id,name",ct=>{let kt=ct.length,Wt,Jt,ln,kn;for(;kt--;)if(kn=ct[kt],kn.name==="a"&&kn.firstChild&&!kn.attr("href"))for(ln=kn.parent,Wt=kn.lastChild;Wt&&ln;)Jt=Wt.prev,ln.insert(Wt,kn),Wt=Jt}),g.fix_list_elements&&r.addNodeFilter("ul,ol",ct=>{let kt=ct.length,Wt,Jt;for(;kt--;)if(Wt=ct[kt],Jt=Wt.parent,Jt&&(Jt.name==="ul"||Jt.name==="ol"))if(Wt.prev&&Wt.prev.name==="li")Wt.prev.append(Wt);else{const ln=new yp("li",1);ln.attr("style","list-style-type: none"),Wt.wrap(ln)}});const be=re.getValidClasses();g.validate&&be&&r.addAttributeFilter("class",ct=>{var kt;let Wt=ct.length;for(;Wt--;){const Jt=ct[Wt],ln=(kt=Jt.attr("class"))!==null&&kt!==void 0?kt:"",kn=mo.explode(ln," ");let Vn="";for(let Rn=0;Rnye(ct,kt=>{kt.replace(j7({type:kt.attr("type"),src:kt.name==="object"?kt.attr("data"):kt.attr("src"),width:kt.attr("width"),height:kt.attr("height")},Re,Ke))})),Re&&r.addNodeFilter("iframe",ct=>ye(ct,kt=>j5(kt,Ke)))},{entries:Jz,setPrototypeOf:eF,isFrozen:PY,getPrototypeOf:RY,getOwnPropertyDescriptor:Q5}=Object;let{freeze:qm,seal:i1,create:H7}=Object,{apply:Z7,construct:cC}=typeof Reflect<"u"&&Reflect;Z7||(Z7=function(g,B,H){return g.apply(B,H)}),qm||(qm=function(g){return g}),i1||(i1=function(g){return g}),cC||(cC=function(g,B){return new g(...B)});const tF=a1(Array.prototype.forEach),LY=a1(Array.prototype.pop),H5=a1(Array.prototype.push),uC=a1(String.prototype.toLowerCase),q7=a1(String.prototype.toString),IY=a1(String.prototype.match),vv=a1(String.prototype.replace),DY=a1(String.prototype.indexOf),BY=a1(String.prototype.trim),h0=a1(RegExp.prototype.test),Z5=zY(TypeError);function a1(r){return function(g){for(var B=arguments.length,H=new Array(B>1?B-1:0),re=1;re/gm),VY=i1(/\${[\w\W]*}/gm),UY=i1(/^data-[\-\w.\u00B7-\uFFFF]/),jY=i1(/^aria-[\-\w]+$/),hC=i1(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aF=i1(/^(?:\w+script|data):/i),Yue=i1(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K3=i1(/^html$/i);var sF=Object.freeze({__proto__:null,MUSTACHE_EXPR:NY,ERB_EXPR:$Y,TMPLIT_EXPR:VY,DATA_ATTR:UY,ARIA_ATTR:jY,IS_ALLOWED_URI:hC,IS_SCRIPT_OR_DATA:aF,ATTR_WHITESPACE:Yue,DOCTYPE_NAME:K3});const lF=()=>typeof window>"u"?null:window,QY=function(g,B){if(typeof g!="object"||typeof g.createPolicy!="function")return null;let H=null;const re="data-tt-policy-suffix";B&&B.hasAttribute(re)&&(H=B.getAttribute(re));const be="dompurify"+(H?"#"+H:"");try{return g.createPolicy(be,{createHTML(Re){return Re},createScriptURL(Re){return Re}})}catch{return console.warn("TrustedTypes policy "+be+" could not be created."),null}};function q5(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lF();const g=Ga=>q5(Ga);if(g.version="3.0.5",g.removed=[],!r||!r.document||r.document.nodeType!==9)return g.isSupported=!1,g;const B=r.document,H=B.currentScript;let{document:re}=r;const{DocumentFragment:be,HTMLTemplateElement:Re,Node:Ke,Element:ct,NodeFilter:kt,NamedNodeMap:Wt=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:Jt,DOMParser:ln,trustedTypes:kn}=r,Vn=ct.prototype,Rn=fC(Vn,"cloneNode"),qn=fC(Vn,"nextSibling"),pr=fC(Vn,"childNodes"),Tr=fC(Vn,"parentNode");if(typeof Re=="function"){const Ga=re.createElement("template");Ga.content&&Ga.content.ownerDocument&&(re=Ga.content.ownerDocument)}let wr,Ur="";const{implementation:wo,createNodeIterator:jo,createDocumentFragment:di,getElementsByTagName:lo}=re,{importNode:eo}=B;let xo={};g.isSupported=typeof Jz=="function"&&typeof Tr=="function"&&wo&&wo.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:bi,ERB_EXPR:Bi,TMPLIT_EXPR:$a,DATA_ATTR:Ia,ARIA_ATTR:Us,IS_SCRIPT_OR_DATA:sl,ATTR_WHITESPACE:nu}=sF;let{IS_ALLOWED_URI:jd}=sF,ml=null;const Wo=Sl({},[...Uw,...W7,...Y7,...X7,...rF]);let Ei=null;const ws=Sl({},[...oF,...G7,...iF,...dC]);let ii=Object.seal(Object.create(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}})),Qi=null,Qa=null,ci=!0,Va=!0,Xa=!1,If=!0,el=!1,Yu=!1,Pg=!1,m1=!1,Dh=!1,om=!1,Rg=!1,xp=!0,Lg=!1;const zi="user-content-";let ss=!0,Rc=!1,cu={},Nu=null;const nd=Sl({},["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"]);let wu=null;const Ou=Sl({},["audio","video","img","source","image","track"]);let fh=null;const Ig=Sl({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xm="http://www.w3.org/1998/Math/MathML",x0="http://www.w3.org/2000/svg",Dg="http://www.w3.org/1999/xhtml";let ux=Dg,Z2=!1,hO=null;const xA=Sl({},[Xm,x0,Dg],q7);let fx;const $k=["application/xhtml+xml","text/html"],lQ="text/html";let Bh,pO=null;const wL=re.createElement("form"),OL=function(no){return no instanceof RegExp||no instanceof Function},kv=function(no){if(!(pO&&pO===no)){if((!no||typeof no!="object")&&(no={}),no=Vw(no),fx=$k.indexOf(no.PARSER_MEDIA_TYPE)===-1?fx=lQ:fx=no.PARSER_MEDIA_TYPE,Bh=fx==="application/xhtml+xml"?q7:uC,ml="ALLOWED_TAGS"in no?Sl({},no.ALLOWED_TAGS,Bh):Wo,Ei="ALLOWED_ATTR"in no?Sl({},no.ALLOWED_ATTR,Bh):ws,hO="ALLOWED_NAMESPACES"in no?Sl({},no.ALLOWED_NAMESPACES,q7):xA,fh="ADD_URI_SAFE_ATTR"in no?Sl(Vw(Ig),no.ADD_URI_SAFE_ATTR,Bh):Ig,wu="ADD_DATA_URI_TAGS"in no?Sl(Vw(Ou),no.ADD_DATA_URI_TAGS,Bh):Ou,Nu="FORBID_CONTENTS"in no?Sl({},no.FORBID_CONTENTS,Bh):nd,Qi="FORBID_TAGS"in no?Sl({},no.FORBID_TAGS,Bh):{},Qa="FORBID_ATTR"in no?Sl({},no.FORBID_ATTR,Bh):{},cu="USE_PROFILES"in no?no.USE_PROFILES:!1,ci=no.ALLOW_ARIA_ATTR!==!1,Va=no.ALLOW_DATA_ATTR!==!1,Xa=no.ALLOW_UNKNOWN_PROTOCOLS||!1,If=no.ALLOW_SELF_CLOSE_IN_ATTR!==!1,el=no.SAFE_FOR_TEMPLATES||!1,Yu=no.WHOLE_DOCUMENT||!1,Dh=no.RETURN_DOM||!1,om=no.RETURN_DOM_FRAGMENT||!1,Rg=no.RETURN_TRUSTED_TYPE||!1,m1=no.FORCE_BODY||!1,xp=no.SANITIZE_DOM!==!1,Lg=no.SANITIZE_NAMED_PROPS||!1,ss=no.KEEP_CONTENT!==!1,Rc=no.IN_PLACE||!1,jd=no.ALLOWED_URI_REGEXP||hC,ux=no.NAMESPACE||Dg,ii=no.CUSTOM_ELEMENT_HANDLING||{},no.CUSTOM_ELEMENT_HANDLING&&OL(no.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ii.tagNameCheck=no.CUSTOM_ELEMENT_HANDLING.tagNameCheck),no.CUSTOM_ELEMENT_HANDLING&&OL(no.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ii.attributeNameCheck=no.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),no.CUSTOM_ELEMENT_HANDLING&&typeof no.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ii.allowCustomizedBuiltInElements=no.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),el&&(Va=!1),om&&(Dh=!0),cu&&(ml=Sl({},[...rF]),Ei=[],cu.html===!0&&(Sl(ml,Uw),Sl(Ei,oF)),cu.svg===!0&&(Sl(ml,W7),Sl(Ei,G7),Sl(Ei,dC)),cu.svgFilters===!0&&(Sl(ml,Y7),Sl(Ei,G7),Sl(Ei,dC)),cu.mathMl===!0&&(Sl(ml,X7),Sl(Ei,iF),Sl(Ei,dC))),no.ADD_TAGS&&(ml===Wo&&(ml=Vw(ml)),Sl(ml,no.ADD_TAGS,Bh)),no.ADD_ATTR&&(Ei===ws&&(Ei=Vw(Ei)),Sl(Ei,no.ADD_ATTR,Bh)),no.ADD_URI_SAFE_ATTR&&Sl(fh,no.ADD_URI_SAFE_ATTR,Bh),no.FORBID_CONTENTS&&(Nu===nd&&(Nu=Vw(Nu)),Sl(Nu,no.FORBID_CONTENTS,Bh)),ss&&(ml["#text"]=!0),Yu&&Sl(ml,["html","head","body"]),ml.table&&(Sl(ml,["tbody"]),delete Qi.tbody),no.TRUSTED_TYPES_POLICY){if(typeof no.TRUSTED_TYPES_POLICY.createHTML!="function")throw Z5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof no.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Z5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');wr=no.TRUSTED_TYPES_POLICY,Ur=wr.createHTML("")}else wr===void 0&&(wr=QY(kn,H)),wr!==null&&typeof Ur=="string"&&(Ur=wr.createHTML(""));qm&&qm(no),pO=no}},q2=Sl({},["mi","mo","mn","ms","mtext"]),Yr=Sl({},["foreignobject","desc","title","annotation-xml"]),Gr=Sl({},["title","style","font","a","script"]),Xo=Sl({},W7);Sl(Xo,Y7),Sl(Xo,FY);const Vo=Sl({},X7);Sl(Vo,nF);const Gi=function(no){let s=Tr(no);(!s||!s.tagName)&&(s={namespaceURI:ux,tagName:"template"});const F=uC(no.tagName),Z=uC(s.tagName);return hO[no.namespaceURI]?no.namespaceURI===x0?s.namespaceURI===Dg?F==="svg":s.namespaceURI===Xm?F==="svg"&&(Z==="annotation-xml"||q2[Z]):!!Xo[F]:no.namespaceURI===Xm?s.namespaceURI===Dg?F==="math":s.namespaceURI===x0?F==="math"&&Yr[Z]:!!Vo[F]:no.namespaceURI===Dg?s.namespaceURI===x0&&!Yr[Z]||s.namespaceURI===Xm&&!q2[Z]?!1:!Vo[F]&&(Gr[F]||!Xo[F]):!!(fx==="application/xhtml+xml"&&hO[no.namespaceURI]):!1},ts=function(no){H5(g.removed,{element:no});try{no.parentNode.removeChild(no)}catch{no.remove()}},Lc=function(no,s){try{H5(g.removed,{attribute:s.getAttributeNode(no),from:s})}catch{H5(g.removed,{attribute:null,from:s})}if(s.removeAttribute(no),no==="is"&&!Ei[no])if(Dh||om)try{ts(s)}catch{}else try{s.setAttribute(no,"")}catch{}},_0=function(no){let s,F;if(m1)no=""+no;else{const we=IY(no,/^[\r\n\t ]+/);F=we&&we[0]}fx==="application/xhtml+xml"&&ux===Dg&&(no=''+no+"");const Z=wr?wr.createHTML(no):no;if(ux===Dg)try{s=new ln().parseFromString(Z,fx)}catch{}if(!s||!s.documentElement){s=wo.createDocument(ux,"template",null);try{s.documentElement.innerHTML=Z2?Ur:Z}catch{}}const ue=s.body||s.documentElement;return no&&F&&ue.insertBefore(re.createTextNode(F),ue.childNodes[0]||null),ux===Dg?lo.call(s,Yu?"html":"body")[0]:Yu?s.documentElement:ue},_A=function(no){return jo.call(no.ownerDocument||no,no,kt.SHOW_ELEMENT|kt.SHOW_COMMENT|kt.SHOW_TEXT,null,!1)},Noe=function(no){return no instanceof Jt&&(typeof no.nodeName!="string"||typeof no.textContent!="string"||typeof no.removeChild!="function"||!(no.attributes instanceof Wt)||typeof no.removeAttribute!="function"||typeof no.setAttribute!="function"||typeof no.namespaceURI!="string"||typeof no.insertBefore!="function"||typeof no.hasChildNodes!="function")},wA=function(no){return typeof Ke=="object"?no instanceof Ke:no&&typeof no=="object"&&typeof no.nodeType=="number"&&typeof no.nodeName=="string"},dx=function(no,s,F){xo[no]&&tF(xo[no],Z=>{Z.call(g,s,F,pO)})},cQ=function(no){let s;if(dx("beforeSanitizeElements",no,null),Noe(no))return ts(no),!0;const F=Bh(no.nodeName);if(dx("uponSanitizeElement",no,{tagName:F,allowedTags:ml}),no.hasChildNodes()&&!wA(no.firstElementChild)&&(!wA(no.content)||!wA(no.content.firstElementChild))&&h0(/<[/\w]/g,no.innerHTML)&&h0(/<[/\w]/g,no.textContent))return ts(no),!0;if(!ml[F]||Qi[F]){if(!Qi[F]&&kL(F)&&(ii.tagNameCheck instanceof RegExp&&h0(ii.tagNameCheck,F)||ii.tagNameCheck instanceof Function&&ii.tagNameCheck(F)))return!1;if(ss&&!Nu[F]){const Z=Tr(no)||no.parentNode,ue=pr(no)||no.childNodes;if(ue&&Z){const we=ue.length;for(let Be=we-1;Be>=0;--Be)Z.insertBefore(Rn(ue[Be],!0),qn(no))}}return ts(no),!0}return no instanceof ct&&!Gi(no)||(F==="noscript"||F==="noembed"||F==="noframes")&&h0(/<\/no(script|embed|frames)/i,no.innerHTML)?(ts(no),!0):(el&&no.nodeType===3&&(s=no.textContent,s=vv(s,bi," "),s=vv(s,Bi," "),s=vv(s,$a," "),no.textContent!==s&&(H5(g.removed,{element:no.cloneNode()}),no.textContent=s)),dx("afterSanitizeElements",no,null),!1)},SL=function(no,s,F){if(xp&&(s==="id"||s==="name")&&(F in re||F in wL))return!1;if(!(Va&&!Qa[s]&&h0(Ia,s))){if(!(ci&&h0(Us,s))){if(!Ei[s]||Qa[s]){if(!(kL(no)&&(ii.tagNameCheck instanceof RegExp&&h0(ii.tagNameCheck,no)||ii.tagNameCheck instanceof Function&&ii.tagNameCheck(no))&&(ii.attributeNameCheck instanceof RegExp&&h0(ii.attributeNameCheck,s)||ii.attributeNameCheck instanceof Function&&ii.attributeNameCheck(s))||s==="is"&&ii.allowCustomizedBuiltInElements&&(ii.tagNameCheck instanceof RegExp&&h0(ii.tagNameCheck,F)||ii.tagNameCheck instanceof Function&&ii.tagNameCheck(F))))return!1}else if(!fh[s]){if(!h0(jd,vv(F,nu,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&no!=="script"&&DY(F,"data:")===0&&wu[no])){if(!(Xa&&!h0(sl,vv(F,nu,"")))){if(F)return!1}}}}}}return!0},kL=function(no){return no.indexOf("-")>0},uQ=function(no){let s,F,Z,ue;dx("beforeSanitizeAttributes",no,null);const{attributes:we}=no;if(!we)return;const Be={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ei};for(ue=we.length;ue--;){s=we[ue];const{name:qe,namespaceURI:ft}=s;F=qe==="value"?s.value:BY(s.value);const gt=F;if(Z=Bh(qe),Be.attrName=Z,Be.attrValue=F,Be.keepAttr=!0,Be.forceKeepAttr=void 0,dx("uponSanitizeAttribute",no,Be),F=Be.attrValue,Be.forceKeepAttr)continue;if(!Be.keepAttr){Lc(qe,no);continue}if(!If&&h0(/\/>/i,F)){Lc(qe,no);continue}el&&(F=vv(F,bi," "),F=vv(F,Bi," "),F=vv(F,$a," "));const At=Bh(no.nodeName);if(!SL(At,Z,F)){Lc(qe,no);continue}if(Lg&&(Z==="id"||Z==="name")&&(Lc(qe,no),F=zi+F),wr&&typeof kn=="object"&&typeof kn.getAttributeType=="function"&&!ft)switch(kn.getAttributeType(At,Z)){case"TrustedHTML":{F=wr.createHTML(F);break}case"TrustedScriptURL":{F=wr.createScriptURL(F);break}}if(F!==gt)try{ft?no.setAttributeNS(ft,qe,F):no.setAttribute(qe,F)}catch{Lc(qe,no)}}dx("afterSanitizeAttributes",no,null)},$oe=function Ga(no){let s;const F=_A(no);for(dx("beforeSanitizeShadowDOM",no,null);s=F.nextNode();)dx("uponSanitizeShadowNode",s,null),!cQ(s)&&(s.content instanceof be&&Ga(s.content),uQ(s));dx("afterSanitizeShadowDOM",no,null)};return g.sanitize=function(Ga){let no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,F,Z,ue;if(Z2=!Ga,Z2&&(Ga=""),typeof Ga!="string"&&!wA(Ga))if(typeof Ga.toString=="function"){if(Ga=Ga.toString(),typeof Ga!="string")throw Z5("dirty is not a string, aborting")}else throw Z5("toString is not a function");if(!g.isSupported)return Ga;if(Pg||kv(no),g.removed=[],typeof Ga=="string"&&(Rc=!1),Rc){if(Ga.nodeName){const qe=Bh(Ga.nodeName);if(!ml[qe]||Qi[qe])throw Z5("root node is forbidden and cannot be sanitized in-place")}}else if(Ga instanceof Ke)s=_0(""),F=s.ownerDocument.importNode(Ga,!0),F.nodeType===1&&F.nodeName==="BODY"||F.nodeName==="HTML"?s=F:s.appendChild(F);else{if(!Dh&&!el&&!Yu&&Ga.indexOf("<")===-1)return wr&&Rg?wr.createHTML(Ga):Ga;if(s=_0(Ga),!s)return Dh?null:Rg?Ur:""}s&&m1&&ts(s.firstChild);const we=_A(Rc?Ga:s);for(;Z=we.nextNode();)cQ(Z)||(Z.content instanceof be&&$oe(Z.content),uQ(Z));if(Rc)return Ga;if(Dh){if(om)for(ue=di.call(s.ownerDocument);s.firstChild;)ue.appendChild(s.firstChild);else ue=s;return(Ei.shadowroot||Ei.shadowrootmode)&&(ue=eo.call(B,ue,!0)),ue}let Be=Yu?s.outerHTML:s.innerHTML;return Yu&&ml["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&h0(K3,s.ownerDocument.doctype.name)&&(Be=" -`+Be),el&&(Be=vv(Be,bi," "),Be=vv(Be,Bi," "),Be=vv(Be,$a," ")),wr&&Rg?wr.createHTML(Be):Be},g.setConfig=function(Ga){kv(Ga),Pg=!0},g.clearConfig=function(){pO=null,Pg=!1},g.isValidAttribute=function(Ga,no,s){pO||kv({});const F=Bh(Ga),Z=Bh(no);return SL(F,Z,s)},g.addHook=function(Ga,no){typeof no=="function"&&(xo[Ga]=xo[Ga]||[],H5(xo[Ga],no))},g.removeHook=function(Ga){if(xo[Ga])return LY(xo[Ga])},g.removeHooks=function(Ga){xo[Ga]&&(xo[Ga]=[])},g.removeAllHooks=function(){xo={}},g}var pC=q5();const df=mo.each,Xue=mo.trim,Gue=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],Kue={ftp:21,http:80,https:443,mailto:25},Jue=["img","video"],s1=(r,g)=>E(r)?!r:E(g)?!ce(Jue,g):!0,mC=r=>{try{return decodeURIComponent(r)}catch{return unescape(r)}},tx=(r,g,B)=>{const H=mC(g).replace(/\s/g,"");return r.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(H)?!0:r.allow_html_data_urls?!1:/^data:image\//i.test(H)?s1(r.allow_svg_data_urls,B)&&/^data:image\/svg\+xml/i.test(H):/^data:/i.test(H)};class Ih{static parseDataUri(g){let B;const H=decodeURIComponent(g).split(","),re=/data:([^;]+)/.exec(H[0]);return re&&(B=re[1]),{type:B,data:H[1]}}static isDomSafe(g,B,H={}){if(H.allow_script_urls)return!0;{const re=up.decode(g).replace(/[\s\u0000-\u001F]+/g,"");return!tx(H,re,B)}}static getDocumentBaseUrl(g){var B;let H;return g.protocol.indexOf("http")!==0&&g.protocol!=="file:"?H=(B=g.href)!==null&&B!==void 0?B:"":H=g.protocol+"//"+g.host+g.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/")),H}constructor(g,B={}){this.path="",this.directory="",g=Xue(g),this.settings=B;const H=B.base_uri,re=this;if(/^([\w\-]+):([^\/]{2})/i.test(g)||/^\s*#/.test(g)){re.source=g;return}const be=g.indexOf("//")===0;if(g.indexOf("/")===0&&!be&&(g=(H&&H.protocol||"http")+"://mce_host"+g),!/^[\w\-]*:?\/\//.test(g)){const Ke=H?H.path:new Ih(document.location.href).directory;if((H==null?void 0:H.protocol)==="")g="//mce_host"+re.toAbsPath(Ke,g);else{const ct=/([^#?]*)([#?]?.*)/.exec(g);ct&&(g=(H&&H.protocol||"http")+"://mce_host"+re.toAbsPath(Ke,ct[1])+ct[2])}}g=g.replace(/@@/g,"(mce_at)");const Re=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(g);Re&&df(Gue,(Ke,ct)=>{let kt=Re[ct];kt&&(kt=kt.replace(/\(mce_at\)/g,"@@")),re[Ke]=kt}),H&&(re.protocol||(re.protocol=H.protocol),re.userInfo||(re.userInfo=H.userInfo),!re.port&&re.host==="mce_host"&&(re.port=H.port),(!re.host||re.host==="mce_host")&&(re.host=H.host),re.source=""),be&&(re.protocol="")}setPath(g){const B=/^(.*?)\/?(\w+)?$/.exec(g);B&&(this.path=B[0],this.directory=B[1],this.file=B[2]),this.source="",this.getURI()}toRelative(g){if(g==="./")return g;const B=new Ih(g,{base_uri:this});if(B.host!=="mce_host"&&this.host!==B.host&&B.host||this.port!==B.port||this.protocol!==B.protocol&&B.protocol!=="")return B.getURI();const H=this.getURI(),re=B.getURI();if(H===re||H.charAt(H.length-1)==="/"&&H.substr(0,H.length-1)===re)return H;let be=this.toRelPath(this.path,B.path);return B.query&&(be+="?"+B.query),B.anchor&&(be+="#"+B.anchor),be}toAbsolute(g,B){const H=new Ih(g,{base_uri:this});return H.getURI(B&&this.isSameOrigin(H))}isSameOrigin(g){if(this.host==g.host&&this.protocol==g.protocol){if(this.port==g.port)return!0;const B=this.protocol?Kue[this.protocol]:null;if(B&&(this.port||B)==(g.port||B))return!0}return!1}toRelPath(g,B){let H=0,re="",be,Re;const Ke=g.substring(0,g.lastIndexOf("/")).split("/"),ct=B.split("/");if(Ke.length>=ct.length){for(be=0,Re=Ke.length;be=ct.length||Ke[be]!==ct[be]){H=be+1;break}}if(Ke.length=Ke.length||Ke[be]!==ct[be]){H=be+1;break}}if(H===1)return B;for(be=0,Re=Ke.length-(H-1);be{Jt&&Ke.push(Jt)});const ct=[];for(let Jt=Re.length-1;Jt>=0;Jt--)if(!(Re[Jt].length===0||Re[Jt]===".")){if(Re[Jt]===".."){H++;continue}if(H>0){H--;continue}ct.push(Re[Jt])}const kt=Ke.length-H;let Wt;return kt<=0?Wt=ke(ct).join("/"):Wt=Ke.slice(0,kt).join("/")+"/"+ke(ct).join("/"),Wt.indexOf("/")!==0&&(Wt="/"+Wt),re&&Wt.lastIndexOf("/")!==Wt.length-1&&(Wt+=re),Wt}getURI(g=!1){let B;return(!this.source||g)&&(B="",g||(this.protocol?B+=this.protocol+"://":B+="//",this.userInfo&&(B+=this.userInfo+"@"),this.host&&(B+=this.host),this.port&&(B+=":"+this.port)),this.path&&(B+=this.path),this.query&&(B+="?"+this.query),this.anchor&&(B+="#"+this.anchor),this.source=B),this.source}}const HY=mo.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),K7="data-mce-type";let jw=0;const Qw=(r,g,B,H,re)=>{var be,Re,Ke,ct;const kt=g.validate,Wt=B.getSpecialElements();r.nodeType===gm&&!g.allow_conditional_comments&&/^\[if/i.test((be=r.nodeValue)!==null&&be!==void 0?be:"")&&(r.nodeValue=" "+r.nodeValue);const Jt=(Re=re==null?void 0:re.tagName)!==null&&Re!==void 0?Re:r.nodeName.toLowerCase();if(H!=="html"&&B.isValid(H)){E(re)&&(re.allowedTags[Jt]=!0);return}if(r.nodeType!==Cu||Jt==="body")return;const ln=sr.fromDom(r),kn=Vf(ln,K7),Vn=uc(ln,"data-mce-bogus");if(!kn&&v(Vn)){Vn==="all"?ja(ln):vu(ln);return}const Rn=B.getElementRule(Jt);if(kt&&!Rn){_t(Wt,Jt)?ja(ln):vu(ln);return}else E(re)&&(re.allowedTags[Jt]=!0);if(kt&&Rn&&!kn){if(ye((Ke=Rn.attributesForced)!==null&&Ke!==void 0?Ke:[],qn=>{Es(ln,qn.name,qn.value==="{$uid}"?`mce_${jw++}`:qn.value)}),ye((ct=Rn.attributesDefault)!==null&&ct!==void 0?ct:[],qn=>{Vf(ln,qn.name)||Es(ln,qn.name,qn.value==="{$uid}"?`mce_${jw++}`:qn.value)}),Rn.attributesRequired&&!de(Rn.attributesRequired,qn=>Vf(ln,qn))){vu(ln);return}if(Rn.removeEmptyAttrs&&sd(ln)){vu(ln);return}Rn.outputName&&Rn.outputName!==Jt&&I1(ln,Rn.outputName)}},J3=(r,g,B,H,re)=>{const be=r.tagName.toLowerCase(),{attrName:Re,attrValue:Ke}=re;re.keepAttr=gC(g,B,H,be,Re,Ke),re.keepAttr?(re.allowedAttributes[Re]=!0,J7(Re,B)&&(re.attrValue=Re),g.allow_svg_data_urls&&xr(Ke,"data:image/svg+xml")&&(re.forceKeepAttr=!0)):vC(r,Re)&&(re.forceKeepAttr=!0)},gC=(r,g,B,H,re,be)=>B!=="html"&&!ds(H)?!0:!(re in HY&&tx(r,be,H))&&(!r.validate||g.isValid(H,re)||xr(re,"data-")||xr(re,"aria-")),vC=(r,g)=>r.hasAttribute(K7)&&(g==="id"||g==="class"||g==="style"),J7=(r,g)=>r in g.getBoolAttrs(),cF=(r,g,B,H)=>{const{attributes:re}=r;for(let be=re.length-1;be>=0;be--){const Re=re[be],Ke=Re.name,ct=Re.value;!gC(g,B,H,r.tagName.toLowerCase(),Ke,ct)&&!vC(r,Ke)?r.removeAttribute(Ke):J7(Ke,B)&&r.setAttribute(Ke,Ke)}},ZY=(r,g,B)=>{const H=pC();return H.addHook("uponSanitizeElement",(re,be)=>{Qw(re,r,g,B.track(re),be)}),H.addHook("uponSanitizeAttribute",(re,be)=>{J3(re,r,g,B.current(),be)}),H},qY=(r,g)=>{const H={...{IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]}};return H.PARSER_MEDIA_TYPE=g,r.allow_script_urls?H.ALLOWED_URI_REGEXP=/.*/:r.allow_html_data_urls&&(H.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),H},uF=r=>{const g=Rs(r);if(g==="svg"){const B=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(re=>`xlink:${re}`),H={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:B};pC().sanitize(r,H)}else if(g==="math"){const B={IN_PLACE:!0,USE_PROFILES:{mathMl:!0}};pC().sanitize(r,B)}else throw new Error("Not a namespace element")},WY=(r,g)=>{const B=ol();if(r.sanitize){const H=ZY(r,g,B);return{sanitizeHtmlElement:(be,Re)=>{H.sanitize(be,qY(r,Re)),H.removed=[],B.reset()},sanitizeNamespaceElement:uF}}else return{sanitizeHtmlElement:(be,Re)=>{const Ke=document.createNodeIterator(be,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let ct;for(;ct=Ke.nextNode();){const kt=B.track(ct);Qw(ct,r,g,kt),ne(ct)&&cF(ct,r,g,kt)}B.reset()},sanitizeNamespaceElement:k}},fF=mo.makeMap,dF=mo.extend,hF=(r,g,B,H)=>{const re=r.name,be=re in B&&re!=="title"&&re!=="textarea"&&re!=="noscript",Re=g.childNodes;for(let Ke=0,ct=Re.length;Ke{const H=[];for(let re=r,be=re;re;be=re,re=re.walk()){const Re=re;ye(g,Ke=>Ke(Re)),T(Re.parent)&&Re!==r?re=be:H.push(Re)}for(let re=H.length-1;re>=0;re--){const be=H[re];ye(B,Re=>Re(be))}},pF=(r,g,B,H)=>{const re=B.validate,be=g.getNonEmptyElements(),Re=g.getWhitespaceElements(),Ke=dF(fF("script,style,head,html,body,title,meta,param"),g.getBlockElements()),ct=db(g),kt=/[ \t\r\n]+/g,Wt=/^[ \t\r\n]+/,Jt=/[ \t\r\n]+$/,ln=Tr=>{let wr=Tr.parent;for(;E(wr);){if(wr.name in Re)return!0;wr=wr.parent}return!1},kn=Tr=>{let wr=Tr;for(;E(wr);){if(wr.name in ct)return V6(g,be,Re,wr);wr=wr.parent}return!1},Vn=Tr=>Tr.name in Ke||eh(g,Tr)||ds(Tr.name)&&Tr.parent===r,Rn=(Tr,wr)=>{const Ur=wr?Tr.prev:Tr.next;return E(Ur)||T(Tr.parent)?!1:Vn(Tr.parent)&&(Tr.parent!==r||H.isRootContent===!0)};return[Tr=>{var wr;if(Tr.type===3&&!ln(Tr)){let Ur=(wr=Tr.value)!==null&&wr!==void 0?wr:"";Ur=Ur.replace(kt," "),(Vd(Tr.prev,Vn)||Rn(Tr,!0))&&(Ur=Ur.replace(Wt,"")),Ur.length===0?Tr.remove():Tr.value=Ur}},Tr=>{var wr;if(Tr.type===1){const Ur=g.getElementRule(Tr.name);if(re&&Ur){const wo=V6(g,be,Re,Tr);Ur.paddInEmptyBlock&&wo&&kn(Tr)?$6(B,H,Vn,Tr):Ur.removeEmpty&&wo?Vn(Tr)?Tr.remove():Tr.unwrap():Ur.paddEmpty&&(wo||HW(Tr))&&$6(B,H,Vn,Tr)}}else if(Tr.type===3&&!ln(Tr)){let Ur=(wr=Tr.value)!==null&&wr!==void 0?wr:"";(Tr.next&&Vn(Tr.next)||Rn(Tr,!1))&&(Ur=Ur.replace(Jt,"")),Ur.length===0?Tr.remove():Tr.value=Ur}}]},XY=(r,g)=>{var B;const H=(B=g.forced_root_block)!==null&&B!==void 0?B:r.forced_root_block;return H===!1?"":H===!0?"p":H},Ry=(r={},g=Np())=>{const B=oC(),H=oC(),re={validate:!0,root_name:"body",sanitize:!0,...r},be=new DOMParser,Re=WY(re,g),Ke=(wr,Ur,wo="html")=>{const jo=wo==="xhtml"?"application/xhtml+xml":"text/html",di=_t(g.getSpecialElements(),Ur.toLowerCase()),lo=di?`<${Ur}>${wr}`:wr,eo=wo==="xhtml"?`${lo}`:`${lo}`,xo=be.parseFromString(eo,jo).body;return Re.sanitizeHtmlElement(xo,jo),di?xo.firstChild:xo},ct=B.addFilter,kt=B.getFilters,Wt=B.removeFilter,Jt=H.addFilter,ln=H.getFilters,kn=H.removeFilter,Vn=(wr,Ur)=>{vz(g,wr)&&Ur.push(wr)},Rn=(wr,Ur)=>{const wo=v(Ur.attr(K7)),jo=Ur.type===1&&!_t(wr,Ur.name)&&!eh(g,Ur)&&!ds(Ur.name);return Ur.type===3||jo&&!wo},qn=(wr,Ur)=>{const wo=dF(fF("script,style,head,html,body,title,meta,param"),g.getBlockElements()),jo=/^[ \t\r\n]+/,di=/[ \t\r\n]+$/;let lo=wr.firstChild,eo=null;const xo=bi=>{var Bi,$a;bi&&(lo=bi.firstChild,lo&&lo.type===3&&(lo.value=(Bi=lo.value)===null||Bi===void 0?void 0:Bi.replace(jo,"")),lo=bi.lastChild,lo&&lo.type===3&&(lo.value=($a=lo.value)===null||$a===void 0?void 0:$a.replace(di,"")))};if(g.isValidChild(wr.name,Ur.toLowerCase())){for(;lo;){const bi=lo.next;Rn(wo,lo)?(eo||(eo=new yp(Ur,1),eo.attr(re.forced_root_block_attrs),wr.insert(eo,lo)),eo.append(lo)):(xo(eo),eo=null),lo=bi}xo(eo)}},Tr={schema:g,addAttributeFilter:Jt,getAttributeFilters:ln,removeAttributeFilter:kn,addNodeFilter:ct,getNodeFilters:kt,removeNodeFilter:Wt,parse:(wr,Ur={})=>{var wo;const jo=re.validate,di=(wo=Ur.context)!==null&&wo!==void 0?wo:re.root_name,lo=Ke(wr,di,Ur.format);qf(g,lo);const eo=new yp(di,11);hF(eo,lo,g.getSpecialElements(),Re.sanitizeNamespaceElement),lo.innerHTML="";const[xo,bi]=pF(eo,g,re,Ur),Bi=[],$a=jo?nu=>Vn(nu,Bi):k,Ia={nodes:{},attributes:{}},Us=nu=>s7(kt(),ln(),nu,Ia);if(YY(eo,[xo,Us],[bi,$a]),Bi.reverse(),jo&&Bi.length>0)if(Ur.context){const{pass:nu,fail:jd}=Se(Bi,ml=>ml.parent===eo);pv(jd,g,eo,Us),Ur.invalid=nu.length>0}else pv(Bi,g,eo,Us);const sl=XY(re,Ur);return sl&&(eo.name==="body"||Ur.isRootContent)&&qn(eo,sl),Ur.invalid||gz(Ia,Ur),eo}};return Kz(Tr,re),TY(Tr,re,g),Tr},mF=r=>Ks(r)?Wb({validate:!1}).serialize(r):r,gF=(r,g,B)=>{const H=mF(r),re=g(H);if(re.isDefaultPrevented())return re;if(Ks(r))if(re.content!==H){const be=Ry({validate:!1,forced_root_block:!1,...B}).parse(re.content,{context:r.name});return{...re,content:be}}else return{...re,content:r};else return re},eP=r=>({sanitize:Rb(r),sandbox_iframes:o2(r),sandbox_iframes_exclusions:i2(r)}),vF=(r,g)=>{if(g.no_events)return gs.value(g);{const B=r6(r,g);return B.isDefaultPrevented()?gs.error(o5(r,{content:"",...B}).content):gs.value(B)}},tP=(r,g,B)=>B.no_events?g:gF(g,re=>o5(r,{...B,content:re}),eP(r)).content,nP=(r,g)=>{if(g.no_events)return gs.value(g);{const B=gF(g.content,H=>R3(r,{...g,content:H}),eP(r));return B.isDefaultPrevented()?(L3(r,B),gs.error(void 0)):gs.value(B)}},rP=(r,g,B)=>{B.no_events||L3(r,{...B,content:g})},yC=(r,g,B)=>({element:r,width:g,rows:B}),oP=(r,g)=>({element:r,cells:g}),yF=(r,g)=>({x:r,y:g}),iP=(r,g)=>ad(r,g).bind(zr).getOr(1),bF=(r,g,B,H,re)=>{const be=iP(re,"rowspan"),Re=iP(re,"colspan"),Ke=r.rows;for(let ct=B;ct{const H=r.rows;return!!(H[B]?H[B].cells:[])[g]},GY=(r,g,B)=>{for(;xF(r,g,B);)g++;return g},_F=r=>Ie(r,(g,B)=>B.cells.length>g?B.cells.length:g,0),wF=(r,g)=>{const B=r.rows;for(let H=0;H{const be=[],Re=r.rows;for(let Ke=B;Ke<=re;Ke++){const ct=Re[Ke].cells,kt=g{const H=g.x,re=g.y,be=B.x,Re=B.y,Ke=re{const B=Th(r.element),H=sr.fromTag("tbody");return mu(H,g),Ps(B,H),B},SF=r=>ve(r.rows,g=>{const B=ve(g.cells,re=>{const be=Kf(re);return gc(be,"colspan"),gc(be,"rowspan"),be}),H=Th(g.element);return mu(H,B),H}),xC=r=>{const g=yC(Th(r),0,[]);return ye(Zl(r,"tr"),(B,H)=>{ye(Zl(B,"td,th"),(re,be)=>{bF(g,GY(g,be,H),H,B,re)})}),yC(g.element,_F(g.rows),g.rows)},KY=r=>OF(r,SF(r)),JY=(r,g,B)=>wF(r,g).bind(H=>wF(r,B).map(re=>W5(r,H,re))),Hw=r=>De(r,g=>sa(g)==="ul"||sa(g)==="ol"),aP=(r,g)=>De(r,B=>sa(B)==="li"&&x3(B,g)).fold($([]),B=>Hw(r).map(H=>{const re=sr.fromTag(sa(H)),be=qt(vc(H),(Re,Ke)=>xr(Ke,"list-style"));return Hi(re,be),[sr.fromTag("li"),re]}).getOr([])),kF=(r,g)=>{const B=Ie(g,(H,re)=>(Ps(re,H),re),r);return g.length>0?ea([B]):B},Y5=r=>nh(r)?Hu(r).filter(Vp).fold($([]),g=>[r,g]):Vp(r)?[r]:[],TF=(r,g,B)=>{const H=sr.fromDom(g.commonAncestorContainer),re=Yb(H,r),be=Te(re,ct=>B.isWrapper(sa(ct))),Re=aP(re,g),Ke=be.concat(Re.length?Re:Y5(H));return ve(Ke,Th)},_C=()=>ea([]),CF=(r,g,B)=>kF(sr.fromDom(g.cloneContents()),TF(r,g,B)),AF=(r,g)=>xl(g,"table",U(Fa,r)),eX=(r,g)=>AF(r,g[0]).bind(B=>{const H=g[0],re=g[g.length-1],be=xC(B);return JY(be,H,re).map(Re=>ea([KY(Re)]))}).getOrThunk(_C),tX=(r,g,B)=>g.length>0&&g[0].collapsed?_C():CF(r,g[0],B),nX=(r,g,B)=>{const H=wy(g,r);return H.length>0?eX(r,H):tX(r,g,B)},e4=(r,g)=>g>=0&&gvd(r.innerText),EF=r=>r.map(g=>g.nodeName).getOr("div").toLowerCase(),rX=r=>Y.from(r.selection.getRng()).map(g=>{var B;const H=Y.from(r.dom.getParent(g.commonAncestorContainer,r.dom.isBlock)),re=r.getBody(),be=EF(H),Re=sr.fromDom(g.cloneContents());mB(Re),gB(Re);const Ke=r.dom.add(re,be,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},Re.dom),ct=MF(Ke),kt=vd((B=Ke.textContent)!==null&&B!==void 0?B:"");if(r.dom.remove(Ke),e4(kt,0)||e4(kt,kt.length-1)){const Wt=H.getOr(re),Jt=MF(Wt),ln=Jt.indexOf(ct);if(ln===-1)return ct;{const kn=e4(Jt,ln-1),Vn=e4(Jt,ln+ct.length);return(kn?" ":"")+ct+(Vn?" ":"")}}else return ct}).getOr(""),oX=(r,g)=>{const B=r.selection.getRng(),H=r.dom.create("body"),re=r.selection.getSel(),be=$3(r,b3(re)),Re=g.contextual?nX(sr.fromDom(r.getBody()),be,r.schema).dom:B.cloneContents();return Re&&H.appendChild(Re),r.selection.serializer.serialize(H,g)},iX=(r,g)=>{if(g.format==="text")return rX(r);{const B=oX(r,g);return g.format==="tree"?B:r.selection.isCollapsed()?"":B}},aX=(r,g)=>({...r,format:g,get:!0,selection:!0,getInner:!0}),sX=(r,g,B={})=>{const H=aX(B,g);return vF(r,H).fold(Q,re=>{const be=iX(r,re);return tP(r,be,re)})},sP=0,PF=1,RF=2,lX=(r,g)=>{const B=r.length+g.length+2,H=new Array(B),re=new Array(B),be=(Wt,Jt,ln)=>({start:Wt,end:Jt,diag:ln}),Re=(Wt,Jt,ln,kn,Vn)=>{const Rn=ct(Wt,Jt,ln,kn);if(Rn===null||Rn.start===Jt&&Rn.diag===Jt-kn||Rn.end===Wt&&Rn.diag===Wt-ln){let qn=Wt,pr=ln;for(;qnkn-ln?(Vn.push([RF,r[qn]]),++qn):(Vn.push([PF,g[pr]]),++pr)}else{Re(Wt,Rn.start,ln,Rn.start-Rn.diag,Vn);for(let qn=Rn.start;qn{let Vn=Wt;for(;Vn-Jt{const Vn=Jt-Wt,Rn=kn-ln;if(Vn===0||Rn===0)return null;const qn=Vn-Rn,pr=Rn+Vn,Tr=(pr%2===0?pr:pr+1)/2;H[1+Tr]=Wt,re[1+Tr]=Jt+1;let wr,Ur,wo,jo,di;for(wr=0;wr<=Tr;++wr){for(Ur=-wr;Ur<=wr;Ur+=2){for(wo=Ur+Tr,Ur===-wr||Ur!==wr&&H[wo-1]=Wt&&di>=ln&&r[jo]===g[di];)re[wo]=jo--,di--;if(qn%2===0&&-wr<=Ur&&Ur<=wr&&re[wo]<=H[wo+qn])return Ke(re[wo],Ur+Wt-ln,Jt,kn)}}return null},kt=[];return Re(0,r.length,0,g.length,kt),kt},t4=r=>ne(r)?r.outerHTML:Nt(r)?up.encodeRaw(r.data,!1):xn(r)?"":"",Gh=r=>{let g;const B=document.createElement("div"),H=document.createDocumentFragment();for(r&&(B.innerHTML=r);g=B.firstChild;)H.appendChild(g);return H},cX=(r,g,B)=>{const H=Gh(g);if(r.hasChildNodes()&&B{if(r.hasChildNodes()&&g{let B=0;ye(r,H=>{H[0]===sP?B++:H[0]===PF?(cX(g,H[1],B),B++):H[0]===RF&&wC(g,B)})},LF=(r,g)=>Te(ve(Ee(r.childNodes),g?I(vd,t4):t4),B=>B.length>0),Wm=(r,g)=>{const B=ve(Ee(g.childNodes),t4);return Zw(lX(B,r),g),g},qw=xt(()=>document.implementation.createHTMLDocument("undo")),IF=r=>r.querySelector("iframe")!==null,uX=r=>({type:"fragmented",fragments:r,content:"",bookmark:null,beforeBookmark:null}),DF=r=>({type:"complete",fragments:null,content:r,bookmark:null,beforeBookmark:null}),OC=r=>{const g=r.serializer.getTempAttrs(),B=LE(r.getBody(),g);return IF(B)?uX(LF(B,!0)):DF(vd(B.innerHTML))},SC=(r,g,B)=>{const H=B?g.beforeBookmark:g.bookmark;g.type==="fragmented"?Wm(g.fragments,r.getBody()):r.setContent(g.content,{format:"raw",no_selection:E(H)&&QT(H)?!H.isFakeCaret:!0}),H&&(r.selection.moveToBookmark(H),r.selection.scrollIntoView())},Ww=r=>r.type==="fragmented"?r.fragments.join(""):r.content,kC=r=>{const g=sr.fromTag("body",qw());return Id(g,Ww(r)),ye(Zl(g,"*[data-mce-bogus]"),vu),nl(g)},fX=(r,g)=>Ww(r)===Ww(g),BF=(r,g)=>kC(r)===kC(g),lP=(r,g)=>!r||!g?!1:fX(r,g)?!0:BF(r,g),X5=r=>r.get()===0,n4=(r,g,B)=>{X5(B)&&(r.typing=g)},zF=(r,g)=>{r.typing&&(n4(r,!1,g),r.add())},dX=r=>{r.typing&&(r.typing=!1,r.add())},Ly=(r,g,B)=>{X5(g)&&B.set(Ja(r.selection))},cP=(r,g,B,H,re,be,Re)=>{const Ke=OC(r),ct=mo.extend(be||{},Ke);if(!X5(H)||r.removed)return null;const kt=g.data[B.get()];if(r.dispatch("BeforeAddUndo",{level:ct,lastLevel:kt,originalEvent:Re}).isDefaultPrevented()||kt&&lP(kt,ct))return null;g.data[B.get()]&&re.get().each(ln=>{g.data[B.get()].beforeBookmark=ln});const Wt=_g(r);if(Wt&&g.data.length>Wt){for(let ln=0;ln0?(r.setDirty(!0),r.dispatch("AddUndo",Jt),r.dispatch("change",Jt)):r.dispatch("AddUndo",Jt),ct},hX=(r,g,B)=>{g.data=[],B.set(0),g.typing=!1,r.dispatch("ClearUndos")},TC=(r,g,B,H,re)=>{if(g.transact(H)){const be=g.data[B.get()].bookmark,Re=g.data[B.get()-1];SC(r,Re,!0),g.transact(re)&&(g.data[B.get()-1].beforeBookmark=be)}},uP=(r,g,B)=>{let H;return g.get(){let re;return g.typing&&(g.add(),g.typing=!1,n4(g,!1,B)),H.get()>0&&(H.set(H.get()-1),re=g.data[H.get()],SC(r,re,!0),r.setDirty(!0),r.dispatch("Undo",{level:re})),re},NF=r=>{r.clear(),r.add()},$F=(r,g,B)=>B.get()>0||g.typing&&g.data[0]&&!lP(OC(r),g.data[0]),pX=(r,g)=>g.get()(zF(r,g),r.beforeChange(),r.ignore(B),r.add()),gX=(r,g)=>{try{r.set(r.get()+1),g()}finally{r.set(r.get()-1)}},vX=(r,g)=>{const B=r.dom,H=E(g)?g:r.getBody();ye(B.select("table,a",H),re=>{switch(re.nodeName){case"TABLE":const be=Kx(r),Re=B.getAttrib(re,"border");(!Re||Re==="0")&&r.hasVisual?B.addClass(re,be):B.removeClass(re,be);break;case"A":if(!B.getAttrib(re,"href")){const Ke=B.getAttrib(re,"name")||re.id,ct=Jx(r);Ke&&r.hasVisual?B.addClass(re,ct):B.removeClass(re,ct)}break}}),r.dispatch("VisualAid",{element:g,hasVisual:r.hasVisual})},VF=r=>({init:{bindEvents:k},undoManager:{beforeChange:(g,B)=>Ly(r,g,B),add:(g,B,H,re,be,Re)=>cP(r,g,B,H,re,be,Re),undo:(g,B,H)=>FF(r,g,B,H),redo:(g,B)=>uP(r,g,B),clear:(g,B)=>hX(r,g,B),reset:g=>NF(g),hasUndo:(g,B)=>$F(r,g,B),hasRedo:(g,B)=>pX(g,B),transact:(g,B,H)=>mX(g,B,H),ignore:(g,B)=>gX(g,B),extra:(g,B,H,re)=>TC(r,g,B,H,re)},formatter:{match:(g,B,H,re)=>y7(r,g,B,H,re),matchAll:(g,B)=>sY(r,g,B),matchNode:(g,B,H,re)=>Py(r,g,B,H,re),canApply:g=>cY(r,g),closest:g=>lY(r,g),apply:(g,B,H)=>N7(r,g,B,H),remove:(g,B,H,re)=>B7(r,g,B,H,re),toggle:(g,B,H)=>Fu(r,g,B,H),formatChanged:(g,B,H,re,be)=>$7(r,g,B,H,re,be)},editor:{getContent:g=>cW(r,g),setContent:(g,B)=>p7(r,g,B),insertContent:(g,B)=>aY(r,g,B),addVisual:g=>vX(r,g)},selection:{getContent:(g,B)=>sX(r,g,B)},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:()=>Y.none()}}),UF=r=>{const g=kt=>_(kt)?kt:{},{init:B,undoManager:H,formatter:re,editor:be,selection:Re,autocompleter:Ke,raw:ct}=r;return{init:{bindEvents:B.bindEvents},undoManager:{beforeChange:H.beforeChange,add:H.add,undo:H.undo,redo:H.redo,clear:H.clear,reset:H.reset,hasUndo:H.hasUndo,hasRedo:H.hasRedo,transact:(kt,Wt,Jt)=>H.transact(Jt),ignore:(kt,Wt)=>H.ignore(Wt),extra:(kt,Wt,Jt,ln)=>H.extra(Jt,ln)},formatter:{match:(kt,Wt,Jt,ln)=>re.match(kt,g(Wt),ln),matchAll:re.matchAll,matchNode:re.matchNode,canApply:kt=>re.canApply(kt),closest:kt=>re.closest(kt),apply:(kt,Wt,Jt)=>re.apply(kt,g(Wt)),remove:(kt,Wt,Jt,ln)=>re.remove(kt,g(Wt)),toggle:(kt,Wt,Jt)=>re.toggle(kt,g(Wt)),formatChanged:(kt,Wt,Jt,ln,kn)=>re.formatChanged(Wt,Jt,ln,kn)},editor:{getContent:kt=>be.getContent(kt),setContent:(kt,Wt)=>({content:be.setContent(kt,Wt),html:""}),insertContent:(kt,Wt)=>(be.insertContent(kt),""),addVisual:be.addVisual},selection:{getContent:(kt,Wt)=>Re.getContent(Wt)},autocompleter:{addDecoration:Ke.addDecoration,removeDecoration:Ke.removeDecoration},raw:{getModel:()=>Y.some(ct.getRawModel())}}},yX=()=>{const r=$(null),g=$("");return{init:{bindEvents:k},undoManager:{beforeChange:k,add:r,undo:r,redo:r,clear:k,reset:k,hasUndo:oe,hasRedo:oe,transact:r,ignore:k,extra:k},formatter:{match:oe,matchAll:$([]),matchNode:$(void 0),canApply:oe,closest:g,apply:k,remove:k,toggle:k,formatChanged:$({unbind:k})},editor:{getContent:g,setContent:$({content:"",html:""}),insertContent:$(""),addVisual:k},selection:{getContent:g},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:$(Y.none())}}},Iy=r=>_t(r.plugins,"rtc"),bX=r=>Ct(r.plugins,"rtc").bind(g=>Y.from(g.setup)),jF=r=>{const g=r;return bX(r).fold(()=>(g.rtcInstance=VF(r),Y.none()),B=>(g.rtcInstance=yX(),Y.some(()=>B().then(H=>(g.rtcInstance=UF(H),H.rtc.isRemote)))))},G5=r=>r.rtcInstance?r.rtcInstance:VF(r),hf=r=>{const g=r.rtcInstance;if(g)return g;throw new Error("Failed to get RTC instance not yet initialized.")},QF=(r,g,B)=>{hf(r).undoManager.beforeChange(g,B)},fP=(r,g,B,H,re,be,Re)=>hf(r).undoManager.add(g,B,H,re,be,Re),HF=(r,g,B,H)=>hf(r).undoManager.undo(g,B,H),ZF=(r,g,B)=>hf(r).undoManager.redo(g,B),dP=(r,g,B)=>{hf(r).undoManager.clear(g,B)},qF=(r,g)=>{hf(r).undoManager.reset(g)},WF=(r,g,B)=>hf(r).undoManager.hasUndo(g,B),YF=(r,g,B)=>hf(r).undoManager.hasRedo(g,B),xX=(r,g,B,H)=>hf(r).undoManager.transact(g,B,H),hP=(r,g,B)=>{hf(r).undoManager.ignore(g,B)},_X=(r,g,B,H,re)=>{hf(r).undoManager.extra(g,B,H,re)},CC=(r,g,B,H,re)=>hf(r).formatter.match(g,B,H,re),wX=(r,g,B)=>hf(r).formatter.matchAll(g,B),OX=(r,g,B,H,re)=>hf(r).formatter.matchNode(g,B,H,re),SX=(r,g)=>hf(r).formatter.canApply(g),XF=(r,g)=>hf(r).formatter.closest(g),GF=(r,g,B,H)=>{hf(r).formatter.apply(g,B,H)},kX=(r,g,B,H,re)=>{hf(r).formatter.remove(g,B,H,re)},TX=(r,g,B,H)=>{hf(r).formatter.toggle(g,B,H)},CX=(r,g,B,H,re,be)=>hf(r).formatter.formatChanged(g,B,H,re,be),AX=(r,g)=>G5(r).editor.getContent(g),MX=(r,g,B)=>G5(r).editor.setContent(g,B),KF=(r,g,B)=>G5(r).editor.insertContent(g,B),efe=(r,g,B)=>hf(r).selection.getContent(g,B),EX=(r,g)=>hf(r).editor.addVisual(g),JF=r=>hf(r).init.bindEvents(),PX=(r,g={})=>{const B=g.format?g.format:"html";return efe(r,B,g)},eN=r=>r.dom.length===0?(ja(r),Y.none()):Y.some(r),RX=(r,g)=>r.filter(B=>ky.isBookmarkNode(B.dom)).bind(g?ud:Eu),LX=(r,g,B,H,re)=>{const be=r.dom,Re=g.dom,Ke=H?be.length:Re.length;H?(HE(be,Re,re,!1,!H),B.setStart(Re,Ke)):(HE(Re,be,re,!1,!H),B.setEnd(Re,Ke))},IX=(r,g,B)=>{Hu(r).each(H=>{const re=r.dom;g&&x5(H,qr(re,0),B)?w5(re,0,B):!g&&_5(H,qr(re,re.length),B)&&QE(re,re.length,B)})},pP=(r,g,B,H,re)=>{r.bind(be=>((H?QE:w5)(be.dom,H?be.dom.length:0,re),g.filter(Ss).map(Ke=>LX(be,Ke,B,H,re)))).orThunk(()=>RX(g,H).or(g).filter(Ss).map(Re=>IX(Re,H,re)))},DX=(r,g,B)=>{const H=Y.from(g.firstChild).map(sr.fromDom),re=Y.from(g.lastChild).map(sr.fromDom);r.deleteContents(),r.insertNode(g);const be=H.bind(Eu).filter(Ss).bind(eN),Re=re.bind(ud).filter(Ss).bind(eN);pP(be,H,r,!0,B),pP(Re,re,r,!1,B),r.collapse(!1)},BX=(r,g)=>({format:"html",...r,set:!0,selection:!0,content:g}),zX=(r,g)=>{if(g.format!=="raw"){const B=r.selection.getRng(),H=r.dom.getParent(B.commonAncestorContainer,r.dom.isBlock),re=H?{context:H.nodeName.toLowerCase()}:{},be=r.parser.parse(g.content,{forced_root_block:!1,...re,...g});return Wb({validate:!1},r.schema).serialize(be)}else return g.content},FX=(r,g,B={})=>{const H=BX(B,g);nP(r,H).each(re=>{const be=zX(r,re),Re=r.selection.getRng();DX(Re,Re.createContextualFragment(be),r.schema),r.selection.setRng(Re),m5(r,Re),rP(r,be,re)})},tN=(r,g,B)=>{if(_t(r,g)){const H=Te(r[g],re=>re!==B);H.length===0?delete r[g]:r[g]=H}};var tfe=(r,g)=>{let B,H;const re=(Ke,ct)=>De(ct,kt=>r.is(kt,Ke)),be=Ke=>r.getParents(Ke,void 0,r.getRoot()),Re=()=>{B={},H={},g.on("NodeChange",Ke=>{const ct=Ke.element,kt=be(ct),Wt={};Ge(B,(Jt,ln)=>{re(ln,kt).each(kn=>{H[ln]||(ye(Jt,Vn=>{Vn(!0,{node:kn,selector:ln,parents:kt})}),H[ln]=Jt),Wt[ln]=Jt})}),Ge(H,(Jt,ln)=>{Wt[ln]||(delete H[ln],ye(Jt,kn=>{kn(!1,{node:ct,selector:ln,parents:kt})}))})})};return{selectorChangedWithUnbind:(Ke,ct)=>(B||Re(),B[Ke]||(B[Ke]=[]),B[Ke].push(ct),re(Ke,be(g.selection.getStart())).each(()=>{H[Ke]=B[Ke]}),{unbind:()=>{tN(B,Ke,ct),tN(H,Ke,ct)}})}};const NX=r=>!!(r&&r.ownerDocument)&&Qu(sr.fromDom(r.ownerDocument),sr.fromDom(r)),$X=r=>r?NX(r.startContainer)&&NX(r.endContainer):!1,nN=(r,g,B,H)=>{let re,be;const{selectorChangedWithUnbind:Re}=tfe(r,H),Ke=(Wo,Ei)=>{const ws=r.createRng();E(Wo)&&E(Ei)?(ws.setStart(Wo,Ei),ws.setEnd(Wo,Ei),Ur(ws),pr(!1)):(YS(r,ws,H.getBody(),!0),Ur(ws))},ct=Wo=>PX(H,Wo),kt=(Wo,Ei)=>FX(H,Wo,Ei),Wt=Wo=>EE(H.getBody(),wr(),Wo),Jt=Wo=>PE(H.getBody(),wr(),Wo),ln=(Wo,Ei)=>jd.getBookmark(Wo,Ei),kn=Wo=>jd.moveToBookmark(Wo),Vn=(Wo,Ei)=>(Jq(r,Wo,Ei).each(Ur),Wo),Rn=()=>{const Wo=wr(),Ei=Tr();return!Wo||Wo.item?!1:Wo.compareEndPoints?Wo.compareEndPoints("StartToEnd",Wo)===0:!Ei||Wo.collapsed},qn=()=>{const Wo=wr(),Ei=H.getBody().querySelectorAll('[data-mce-selected="1"]');return Ei.length>0?Oe(Ei,ws=>r.isEditable(ws.parentElement)):iB(r,Wo)},pr=Wo=>{const Ei=wr();Ei.collapse(!!Wo),Ur(Ei)},Tr=()=>g.getSelection?g.getSelection():g.document.selection,wr=()=>{let Wo;const Ei=(ii,Qi,Qa)=>{try{return Qi.compareBoundaryPoints(ii,Qa)}catch{return-1}},ws=g.document;if(E(H.bookmark)&&!Mw(H)){const ii=y6(H);if(ii.isSome())return ii.map(Qi=>$3(H,[Qi])[0]).getOr(ws.createRange())}try{const ii=Tr();ii&&!V(ii.anchorNode)&&(ii.rangeCount>0?Wo=ii.getRangeAt(0):Wo=ws.createRange(),Wo=$3(H,[Wo])[0])}catch{}if(Wo||(Wo=ws.createRange()),pn(Wo.startContainer)&&Wo.collapsed){const ii=r.getRoot();Wo.setStart(ii,0),Wo.setEnd(ii,0)}return re&&be&&(Ei(Wo.START_TO_START,Wo,re)===0&&Ei(Wo.END_TO_END,Wo,re)===0?Wo=be:(re=null,be=null)),Wo},Ur=(Wo,Ei)=>{if(!$X(Wo))return;const ws=Tr();if(Wo=H.dispatch("SetSelectionRange",{range:Wo,forward:Ei}).range,ws){be=Wo;try{ws.removeAllRanges(),ws.addRange(Wo)}catch{}Ei===!1&&ws.extend&&(ws.collapse(Wo.endContainer,Wo.endOffset),ws.extend(Wo.startContainer,Wo.startOffset)),re=ws.rangeCount>0?ws.getRangeAt(0):null}if(!Wo.collapsed&&Wo.startContainer===Wo.endContainer&&(ws!=null&&ws.setBaseAndExtent)&&Wo.endOffset-Wo.startOffset<2&&Wo.startContainer.hasChildNodes()){const Qi=Wo.startContainer.childNodes[Wo.startOffset];Qi&&Qi.nodeName==="IMG"&&(ws.setBaseAndExtent(Wo.startContainer,Wo.startOffset,Wo.endContainer,Wo.endOffset),(ws.anchorNode!==Wo.startContainer||ws.focusNode!==Wo.endContainer)&&ws.setBaseAndExtent(Qi,0,Qi,1))}H.dispatch("AfterSetSelectionRange",{range:Wo,forward:Ei})},wo=Wo=>(kt(r.getOuterHTML(Wo)),Wo),jo=()=>Gq(H.getBody(),wr()),di=(Wo,Ei)=>Kq(r,wr(),Wo,Ei),lo=()=>{const Wo=Tr(),Ei=Wo==null?void 0:Wo.anchorNode,ws=Wo==null?void 0:Wo.focusNode;if(!Wo||!Ei||!ws||V(Ei)||V(ws))return!0;const ii=r.createRng(),Qi=r.createRng();try{ii.setStart(Ei,Wo.anchorOffset),ii.collapse(!0),Qi.setStart(ws,Wo.focusOffset),Qi.collapse(!0)}catch{return!0}return ii.compareBoundaryPoints(ii.START_TO_START,Qi)<=0},nu={dom:r,win:g,serializer:B,editor:H,expand:(Wo={type:"word"})=>Ur(To(r).expand(wr(),Wo)),collapse:pr,setCursorLocation:Ke,getContent:ct,setContent:kt,getBookmark:ln,moveToBookmark:kn,select:Vn,isCollapsed:Rn,isEditable:qn,isForward:lo,setNode:wo,getNode:jo,getSel:Tr,setRng:Ur,getRng:wr,getStart:Wt,getEnd:Jt,getSelectedBlocks:di,normalize:()=>{const Wo=wr(),Ei=Tr();if(!HM(Ei)&&XS(H)){const ws=Ko(r,Wo);return ws.each(ii=>{Ur(ii,lo())}),ws.getOr(Wo)}return Wo},selectorChanged:(Wo,Ei)=>(Re(Wo,Ei),nu),selectorChangedWithUnbind:Re,getScrollContainer:()=>{let Wo,Ei=r.getRoot();for(;Ei&&Ei.nodeName!=="BODY";){if(Ei.scrollHeight>Ei.clientHeight){Wo=Ei;break}Ei=Ei.parentNode}return Wo},scrollIntoView:(Wo,Ei)=>{E(Wo)?Nq(H,Wo,Ei):m5(H,wr(),Ei)},placeCaretAt:(Wo,Ei)=>Ur(Ye(Wo,Ei,H.getDoc())),getBoundingClientRect:()=>{const Wo=wr();return Wo.collapsed?qr.fromRangeStart(Wo).getClientRects()[0]:Wo.getBoundingClientRect()},destroy:()=>{g=re=be=null,ml.destroy()}},jd=ky(nu),ml=Ow(nu,H);return nu.bookmarkManager=jd,nu.controlSelection=ml,nu},nfe=(r,g,B)=>{g.addNodeFilter("br",(H,re,be)=>{const Re=mo.extend({},B.getBlockElements()),Ke=B.getNonEmptyElements(),ct=B.getWhitespaceElements();Re.body=1;const kt=Wt=>Wt.name in Re||eh(B,Wt);for(let Wt=0,Jt=H.length;Wt{r.addAttributeFilter("data-mce-tabindex",(H,re)=>{let be=H.length;for(;be--;){const Re=H[be];Re.attr("tabindex",Re.attr("data-mce-tabindex")),Re.attr(re,null)}}),r.addAttributeFilter("src,href,style",(H,re)=>{const be="data-mce-"+re,Re=g.url_converter,Ke=g.url_converter_scope;let ct=H.length;for(;ct--;){const kt=H[ct];let Wt=kt.attr(be);Wt!==void 0?(kt.attr(re,Wt.length>0?Wt:null),kt.attr(be,null)):(Wt=kt.attr(re),re==="style"?Wt=B.serializeStyle(B.parseStyle(Wt),kt.name):Re&&(Wt=Re.call(Ke,Wt,re,kt.name)),kt.attr(re,Wt.length>0?Wt:null))}}),r.addAttributeFilter("class",H=>{let re=H.length;for(;re--;){const be=H[re];let Re=be.attr("class");Re&&(Re=Re.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),be.attr("class",Re.length>0?Re:null))}}),r.addAttributeFilter("data-mce-type",(H,re,be)=>{let Re=H.length;for(;Re--;){const Ke=H[Re];Ke.attr("data-mce-type")==="bookmark"&&!be.cleanup&&(Y.from(Ke.firstChild).exists(kt=>{var Wt;return!$0((Wt=kt.value)!==null&&Wt!==void 0?Wt:"")})?Ke.unwrap():Ke.remove())}}),r.addNodeFilter("script,style",(H,re)=>{var be;const Re=ct=>ct.replace(/()/g,` +`,!0);do Ke(Vn);while(Vn=Vn.next)}B.end(Jt)}}};return re.type===1&&!r.inner?Ke(re):re.type===3?Re[3](re):Re[11](re),B.getContent()}}},BE=new Set;ye(["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"],g=>{BE.add(g)});const yB=new Set;ye(["background-color"],g=>{yB.add(g)});const bB=["font","text-decoration","text-emphasis"],uW=(r,g)=>r.parseStyle(r.getAttrib(g,"style")),V3=(r,g)=>nt(uW(r,g)),fW=r=>BE.has(r),dW=r=>yB.has(r),xB=(r,g)=>de(V3(r,g),B=>fW(B)),hW=(r,g)=>xB(r,g)&&de(V3(r,g),B=>dW(B)),pW=r=>Te(r,g=>de(bB,B=>xr(g,B))),mW=(r,g,B)=>{const H=V3(r,g),re=V3(r,B),be=Re=>{var Ke,ct;const kt=(Ke=r.getStyle(g,Re))!==null&&Ke!==void 0?Ke:"",Wt=(ct=r.getStyle(B,Re))!==null&&ct!==void 0?ct:"";return Kn(kt)&&Kn(Wt)&&kt!==Wt};return de(H,Re=>{const Ke=ct=>de(ct,kt=>kt===Re);if(!Ke(re)&&Ke(bB)){const ct=pW(re);return de(ct,be)}else return be(Re)})},_B=(r,g,B)=>Y.from(B.container()).filter(Nt).exists(H=>{const re=r?0:-1;return g(H.data.charAt(B.offset()+re))}),zE=U(_B,!0,jb),FE=U(_B,!1,jb),gW=r=>{const g=r.container();return Nt(g)&&(g.data.length===0||$0(g.data)&&ky.isBookmarkNode(g.parentNode))},S2=(r,g)=>B=>u3(r?0:-1,B).filter(g).isSome(),wB=r=>An(r)&&pi(sr.fromDom(r),"display")==="block",OB=r=>rr(r)&&!mt(r),vW=S2(!0,wB),yW=S2(!1,wB),Li=S2(!0,Zr),U3=S2(!1,Zr),NE=S2(!0,Et),$E=S2(!1,Et),Ey=S2(!0,OB),k2=S2(!1,OB),bW=r=>r.slice(0,-1),xW=(r,g,B)=>Qu(g,r)?bW(Uh(r,H=>B(H)||Fa(H,g))):[],SB=(r,g)=>xW(r,g,oe),Xb=(r,g)=>[r].concat(SB(r,g)),j3=(r,g,B)=>UT(r,g,B,gW),kB=r=>g=>r.isBlock(la(g)),_W=(r,g,B)=>De(Xb(sr.fromDom(g.container()),r),kB(B)),TB=(r,g,B,H)=>j3(r,g.dom,B).forall(re=>_W(g,B,H).fold(()=>!Wp(re,B,g.dom),be=>!Wp(re,B,g.dom)&&Qu(be,sr.fromDom(re.container())))),da=(r,g,B,H)=>_W(g,B,H).fold(()=>j3(r,g.dom,B).forall(re=>!Wp(re,B,g.dom)),re=>j3(r,re.dom,B).isNone()),VE=U(da,!1),Ca=U(da,!0),CB=U(TB,!1),Vue=U(TB,!0),Uue=r=>d3(r).exists(N0),O6=(r,g,B,H)=>{const re=Te(Xb(sr.fromDom(B.container()),g),Re=>H.isBlock(la(Re))),be=Xe(re).getOr(g);return Yp(r,be.dom,B).filter(Uue)},AB=(r,g,B)=>d3(g).exists(N0)||O6(!0,r,g,B).isSome(),UE=(r,g,B)=>BT(g).exists(N0)||O6(!1,r,g,B).isSome(),MB=U(O6,!1),wW=U(O6,!0),oa=r=>qr.isTextPosition(r)&&!r.isAtStart()&&!r.isAtEnd(),EB=(r,g,B)=>{const H=Te(Xb(sr.fromDom(g.container()),r),re=>B.isBlock(la(re)));return Xe(H).getOr(r)},PB=(r,g,B)=>oa(g)?FE(g):FE(g)||mp(EB(r,g,B).dom,g).exists(FE),RB=(r,g,B)=>oa(g)?zE(g):zE(g)||sh(EB(r,g,B).dom,g).exists(zE),x5=r=>ce(["pre","pre-wrap"],r),S6=r=>d3(r).bind(g=>Ya(g,mc)).exists(g=>x5(pi(g,"white-space"))),OW=(r,g)=>mp(r.dom,g).isNone(),SW=(r,g)=>sh(r.dom,g).isNone(),kW=(r,g,B)=>OW(r,g)||SW(r,g)||VE(r,g,B)||Ca(r,g,B)||UE(r,g,B)||AB(r,g,B),LB=r=>E(r)&&rr(r)&&IS(r),IB=(r,g)=>B=>LB(new kc(B,r)[g]()),jue=(r,g)=>{const B=sh(r.dom,g).getOr(g),H=IB(r.dom,"next");return g.isAtEnd()&&(H(g.container())||H(B.container()))},Que=(r,g)=>{const B=mp(r.dom,g).getOr(g),H=IB(r.dom,"prev");return g.isAtStart()&&(H(g.container())||H(B.container()))},DB=(r,g,B)=>S6(g)?!1:kW(r,g,B)||PB(r,g,B)||RB(r,g,B),_5=(r,g,B)=>S6(g)?!1:VE(r,g,B)||CB(r,g,B)||UE(r,g,B)||PB(r,g,B)||Que(r,g),TW=r=>{const g=r.container(),B=r.offset();return Nt(g)&&BS6(g)?!1:Ca(r,g,B)||Vue(r,g,B)||AB(r,g,B)||RB(r,g,B)||jue(r,g),k6=(r,g,B)=>_5(r,g,B)||w5(r,TW(g),B),BB=(r,g)=>G0(r.charAt(g)),za=(r,g)=>jb(r.charAt(g)),zB=r=>{const g=r.container();return Nt(g)&&jn(g.data,Ea)},T6=r=>{const g=r.split("");return ve(g,(B,H)=>G0(B)&&H>0&&H{const re=g.data,be=qr(g,0);return!B&&BB(re,0)&&!k6(r,be,H)?(g.data=" "+re.slice(1),!0):B&&za(re,0)&&_5(r,be,H)?(g.data=Ea+re.slice(1),!0):!1},FB=r=>{const g=r.data,B=T6(g);return B!==g?(r.data=B,!0):!1},QE=(r,g,B,H)=>{const re=g.data,be=qr(g,re.length-1);return!B&&BB(re,re.length-1)&&!k6(r,be,H)?(g.data=re.slice(0,-1)+" ",!0):B&&za(re,re.length-1)&&w5(r,be,H)?(g.data=re.slice(0,-1)+Ea,!0):!1},NB=(r,g,B)=>{const H=g.container();if(!Nt(H))return Y.none();if(zB(g)){const re=jE(r,H,!1,B)||FB(H)||QE(r,H,!1,B);return ga(re,g)}else if(k6(r,g,B)){const re=jE(r,H,!0,B)||QE(r,H,!0,B);return ga(re,g)}else return Y.none()},$B=r=>{const g=sr.fromDom(r.getBody());r.selection.isCollapsed()&&NB(g,qr.fromRangeStart(r.selection.getRng()),r.schema).each(B=>{r.selection.setRng(B.toRange())})},VB=(r,g,B,H)=>{if(B===0)return;const re=sr.fromDom(r),be=ms(re,kt=>H.isBlock(la(kt))).getOr(re),Re=r.data.slice(g,g+B),Ke=g+B>=r.data.length&&w5(be,qr(r,r.data.length),H),ct=g===0&&_5(be,qr(r,0),H);r.replaceData(g,B,le(Re,4,ct,Ke))},O5=(r,g,B)=>{const H=r.data.slice(g),re=H.length-ir(H).length;VB(r,g,re,B)},HE=(r,g,B)=>{const H=r.data.slice(0,g),re=H.length-Wn(H).length;VB(r,g-re,re,B)},ZE=(r,g,B,H,re=!0)=>{const be=Wn(r.data).length,Re=re?r:g,Ke=re?g:r;return re?Re.appendData(Ke.data):Re.insertData(0,Ke.data),ja(sr.fromDom(Ke)),H&&O5(Re,be,B),Re},CW=(r,g)=>{const B=r.container(),H=r.offset();return!qr.isTextPosition(r)&&B===g.parentNode&&H>qr.before(g).offset()},AW=(r,g)=>CW(g,r)?qr(g.container(),g.offset()-1):g,MW=r=>Nt(r)?qr(r,0):qr.before(r),EW=r=>Nt(r)?qr(r,r.data.length):qr.after(r),UB=r=>ih(r.previousSibling)?Y.some(EW(r.previousSibling)):r.previousSibling?Xp(r.previousSibling):Y.none(),jB=r=>ih(r.nextSibling)?Y.some(MW(r.nextSibling)):r.nextSibling?lh(r.nextSibling):Y.none(),qE=(r,g)=>Y.from(g.previousSibling?g.previousSibling:g.parentNode).bind(B=>mp(r,qr.before(B))).orThunk(()=>sh(r,qr.after(g))),WE=(r,g)=>sh(r,qr.after(g)).orThunk(()=>mp(r,qr.before(g))),PW=(r,g)=>UB(g).orThunk(()=>jB(g)).orThunk(()=>qE(r,g)),RW=(r,g)=>jB(g).orThunk(()=>UB(g)).orThunk(()=>WE(r,g)),LW=(r,g,B)=>r?RW(g,B):PW(g,B),IW=(r,g,B)=>LW(r,g,B).map(U(AW,B)),QB=(r,g,B)=>{B.fold(()=>{r.focus()},H=>{r.selection.setRng(H.toRange(),g)})},DW=r=>g=>g.dom===r,BW=(r,g)=>g&&_t(r.schema.getBlockElements(),la(g)),zW=(r,g,B)=>{if(Pi(r,g)){const H=sr.fromHtml('
    ');return B?ye(Oc(g),re=>{gw(re)||ja(re)}):vu(g),Ps(g,H),Y.some(qr.before(H.dom))}else return Y.none()},HB=(r,g,B,H)=>{const re=Eu(r).filter(ks),be=fd(r).filter(ks);return ja(r),wc(re,be,g,(Re,Ke,ct)=>{const kt=Re.dom,Wt=Ke.dom,Jt=kt.data.length;return ZE(kt,Wt,B,H),ct.container()===Wt?qr(kt,Jt):ct}).orThunk(()=>(H&&(re.each(Re=>HE(Re.dom,Re.dom.length,B)),be.each(Re=>O5(Re.dom,0,B))),g))},FW=(r,g)=>_t(r.schema.getTextInlineElements(),la(g)),Ew=(r,g,B,H=!0,re=!1)=>{const be=IW(g,r.getBody(),B.dom),Re=ms(B,U(BW,r),DW(r.getBody())),Ke=HB(B,be,r.schema,FW(r,B));r.dom.isEmpty(r.getBody())?(r.setContent(""),r.selection.setCursorLocation()):Re.bind(ct=>zW(r.schema,ct,re)).fold(()=>{H&&QB(r,g,Ke)},ct=>{H&&QB(r,g,Y.some(ct))})},Pw=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,NW=r=>Pw.test(r),T2=(r,g)=>wf(sr.fromDom(g),J1(r))&&!xm(r.schema,g)&&r.dom.isEditable(g),ZB=r=>{var g;return Nl.DOM.getStyle(r,"direction",!0)==="rtl"||NW((g=r.textContent)!==null&&g!==void 0?g:"")},$W=(r,g,B)=>Te(Nl.DOM.getParents(B.container(),"*",g),r),Gb=(r,g,B)=>{const H=$W(r,g,B);return Y.from(H[H.length-1])},qB=(r,g,B)=>{const H=c0(g,r),re=c0(B,r);return E(H)&&H===re},WB=r=>V0(r)||Up(r),Cg=(r,g)=>{const B=g.container(),H=g.offset();return r?oh(B)?Nt(B.nextSibling)?qr(B.nextSibling,0):qr.after(B):V0(g)?qr(B,H+1):g:oh(B)?Nt(B.previousSibling)?qr(B.previousSibling,B.previousSibling.data.length):qr.before(B):Up(g)?qr(B,H-1):g},Xh=U(Cg,!0),YB=U(Cg,!1),XB=(r,g)=>{const B=H=>H.stopImmediatePropagation();r.on("beforeinput input",B,!0),r.getDoc().execCommand(g),r.off("beforeinput input",B)},VW=r=>{r.execCommand("delete")},C6=r=>XB(r,"Delete"),GB=r=>XB(r,"ForwardDelete"),Rw=r=>g=>Aa(Hu(g),r,Fa),UW=r=>Q_(r)||nh(r),A6=(r,g)=>Qu(r,g)?Ya(g,UW,Rw(r)):Y.none(),hc=(r,g=!0)=>{r.dom.isEmpty(r.getBody())&&r.setContent("",{no_selection:!g})},S5=(r,g,B)=>us(lh(B),Xp(B),(H,re)=>{const be=Cg(!0,H),Re=Cg(!1,re),Ke=Cg(!1,g);return r?sh(B,Ke).exists(ct=>ct.isEqual(Re)&&g.isEqual(be)):mp(B,Ke).exists(ct=>ct.isEqual(be)&&g.isEqual(Re))}).getOr(!0),Lw=r=>(ju(r)?Eu(r):zl(r)).bind(Lw).orThunk(()=>Y.some(r)),KB=(r,g,B,H=!0)=>{var re;g.deleteContents();const be=Lw(B).getOr(B),Re=sr.fromDom((re=r.dom.getParent(be.dom,r.dom.isBlock))!==null&&re!==void 0?re:B.dom);if(Re.dom===r.getBody()?hc(r,H):Pi(r.schema,Re,{checkRootAsContent:!1})&&(rh(Re),H&&r.selection.setCursorLocation(Re.dom,0)),!Fa(B,Re)){const Ke=Aa(Hu(Re),B)?[]:jh(Re);ye(Ke.concat(Oc(B)),ct=>{!Fa(ct,Re)&&!Qu(ct,Re)&&Pi(r.schema,ct)&&ja(ct)})}},Q3=r=>g=>Fa(r,g),Hm=r=>Zl(r,"td,th"),H3=(r,g)=>hw(sr.fromDom(r),g),Ul=r=>us(r.startTable,r.endTable,(g,B)=>{const H=Qs(g,be=>Fa(be,B)),re=Qs(B,be=>Fa(be,g));return!H&&!re?r:{...r,startTable:H?Y.none():r.startTable,endTable:re?Y.none():r.endTable,isSameTable:!1,isMultiTable:!1}}).getOr(r),k5=r=>Ul(r),JB=(r,g)=>{const B=H3(r.startContainer,g),H=H3(r.endContainer,g),re=B.isSome(),be=H.isSome(),Re=us(B,H,Fa).getOr(!1);return k5({startTable:B,endTable:H,isStartInTable:re,isEndInTable:be,isSameTable:Re,isMultiTable:!Re&&re&&be})},M6=(r,g)=>({start:r,end:g}),YE=(r,g,B)=>({rng:r,table:g,cells:B}),Iw=aa.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),Z3=(r,g)=>mu(sr.fromDom(r),"td,th",g),E6=r=>!Fa(r.start,r.end),T5=(r,g)=>hw(r.start,g).bind(B=>hw(r.end,g).bind(H=>ga(Fa(B,H),B))),XE=(r,g)=>!E6(r)&&T5(r,g).exists(B=>{const H=B.dom.rows;return H.length===1&&H[0].cells.length===1}),ez=(r,g)=>{const B=Z3(r.startContainer,g),H=Z3(r.endContainer,g);return us(B,H,M6)},tz=r=>g=>hw(g,r).bind(B=>tt(Hm(B)).map(H=>M6(g,H))),nz=r=>g=>hw(g,r).bind(B=>Xe(Hm(B)).map(H=>M6(H,g))),P6=r=>g=>T5(g,r).map(B=>YE(g,B,Hm(B))),GE=(r,g,B,H)=>{if(B.collapsed||!r.forall(E6))return Y.none();if(g.isSameTable){const re=r.bind(P6(H));return Y.some({start:re,end:re})}else{const re=Z3(B.startContainer,H),be=Z3(B.endContainer,H),Re=re.bind(tz(H)).bind(P6(H)),Ke=be.bind(nz(H)).bind(P6(H));return Y.some({start:Re,end:Ke})}},Dw=(r,g)=>He(r,B=>Fa(B,g)),R6=r=>us(Dw(r.cells,r.rng.start),Dw(r.cells,r.rng.end),(g,B)=>r.cells.slice(g,B+1)),KE=(r,g,B)=>r.exists(H=>XE(H,B)&&x3(H.start,g)),rz=(r,g)=>{const{startTable:B,endTable:H}=g,re=r.cloneRange();return B.each(be=>re.setStartAfter(be.dom)),H.each(be=>re.setEndBefore(be.dom)),re},jW=(r,g,B,H)=>GE(r,g,B,H).bind(({start:re,end:be})=>re.or(be)).bind(re=>{const{isSameTable:be}=g,Re=R6(re).getOr([]);if(be&&re.cells.length===Re.length)return Y.some(Iw.fullTable(re.table));if(Re.length>0){if(be)return Y.some(Iw.partialTable(Re,Y.none()));{const Ke=rz(B,g);return Y.some(Iw.partialTable(Re,Y.some({...g,rng:Ke})))}}else return Y.none()}),oz=(r,g,B,H)=>GE(r,g,B,H).bind(({start:re,end:be})=>{const Re=re.bind(R6).getOr([]),Ke=be.bind(R6).getOr([]);if(Re.length>0&&Ke.length>0){const ct=rz(B,g);return Y.some(Iw.multiTable(Re,Ke,ct))}else return Y.none()}),iz=(r,g)=>{const B=Q3(r),H=ez(g,B),re=JB(g,B);return KE(H,g,B)?H.map(be=>Iw.singleCellTable(g,be.start)):re.isMultiTable?oz(H,re,g,B):jW(H,re,g,B)},JE=r=>ye(r,g=>{gc(g,"contenteditable"),rh(g)}),L6=(r,g)=>Y.from(r.dom.getParent(g,r.dom.isBlock)).map(sr.fromDom),az=(r,g,B)=>{B.each(H=>{g?ja(H):(rh(H),r.selection.setCursorLocation(H.dom,0))})},I6=(r,g,B,H)=>{const re=B.cloneRange();H?(re.setStart(B.startContainer,B.startOffset),re.setEndAfter(g.dom.lastChild)):(re.setStartBefore(g.dom.firstChild),re.setEnd(B.endContainer,B.endOffset)),D6(r,re,g,!1).each(be=>be())},e7=r=>{const g=g2(r),B=sr.fromDom(r.selection.getNode());Dr(B.dom)&&Pi(r.schema,B)?r.selection.setCursorLocation(B.dom,0):r.selection.collapse(!0),g.length>1&&de(g,H=>Fa(H,B))&&Es(B,"data-mce-selected","1")},t7=(r,g,B)=>Y.some(()=>{const H=r.selection.getRng(),re=B.bind(({rng:be,isStartInTable:Re})=>{const Ke=L6(r,Re?be.endContainer:be.startContainer);be.deleteContents(),az(r,Re,Ke.filter(U(Pi,r.schema)));const ct=Re?g[0]:g[g.length-1];return I6(r,ct,H,Re),Pi(r.schema,ct)?Y.none():Y.some(Re?g.slice(1):g.slice(0,-1))}).getOr(g);JE(re),e7(r)}),sz=(r,g,B,H)=>Y.some(()=>{const re=r.selection.getRng(),be=g[0],Re=B[B.length-1];I6(r,be,re,!0),I6(r,Re,re,!1);const Ke=Pi(r.schema,be)?g:g.slice(1),ct=Pi(r.schema,Re)?B:B.slice(0,-1);JE(Ke.concat(ct)),H.deleteContents(),e7(r)}),D6=(r,g,B,H=!0)=>Y.some(()=>{KB(r,g,B,H)}),lz=(r,g)=>Y.some(()=>Ew(r,!1,g)),cz=(r,g,B)=>iz(g,B).bind(H=>H.fold(U(D6,r),U(lz,r),U(t7,r),U(sz,r))),uz=(r,g)=>C5(r,g),fz=(r,g,B,H)=>B6(g,H).fold(()=>cz(r,g,B),re=>uz(r,re)),n7=(r,g,B)=>{const H=sr.fromDom(r.getBody()),re=r.selection.getRng();return B.length!==0?t7(r,B,Y.none()):fz(r,H,re,g)},r7=(r,g)=>De(Xb(g,r),N1),B6=(r,g)=>De(Xb(g,r),Ju("caption")),dz=(r,g,B,H,re)=>uv(B,r.getBody(),re).bind(be=>r7(g,sr.fromDom(be.getNode())).bind(Re=>Fa(Re,H)?Y.none():Y.some(k))),C5=(r,g)=>Y.some(()=>{rh(g),r.selection.setCursorLocation(g.dom,0)}),hz=(r,g,B,H)=>lh(r.dom).bind(re=>Xp(r.dom).map(be=>g?B.isEqual(re)&&H.isEqual(be):B.isEqual(be)&&H.isEqual(re))).getOr(!0),pz=(r,g)=>C5(r,g),o7=(r,g,B)=>B6(r,sr.fromDom(B.getNode())).fold(()=>Y.some(k),H=>ga(!Fa(H,g),k)),z6=(r,g,B,H,re)=>uv(B,r.getBody(),re).fold(()=>Y.some(k),be=>hz(H,B,re,be)?pz(r,H):o7(g,H,be)),i7=(r,g,B,H)=>{const re=qr.fromRangeStart(r.selection.getRng());return r7(B,H).bind(be=>Pi(r.schema,be,{checkRootAsContent:!1})?C5(r,be):dz(r,B,g,be,re))},F6=(r,g,B,H)=>{const re=qr.fromRangeStart(r.selection.getRng());return Pi(r.schema,H)?C5(r,H):z6(r,B,g,H,re)},a7=(r,g)=>r?NE(g):$E(g),N6=(r,g)=>{const B=qr.fromRangeStart(r.selection.getRng());return a7(g,B)||Yp(g,r.getBody(),B).exists(H=>a7(g,H))},s7=(r,g,B)=>{const H=sr.fromDom(r.getBody());return B6(H,B).fold(()=>i7(r,g,H,B).orThunk(()=>ga(N6(r,g),k)),re=>F6(r,g,H,re))},Bw=(r,g)=>{const B=sr.fromDom(r.selection.getStart(!0)),H=g2(r);return r.selection.isCollapsed()&&H.length===0?s7(r,g,B):n7(r,B,H)},Kb=(r,g)=>{let B=g;for(;B&&B!==r;){if(Sn(B)||rr(B))return B;B=B.parentNode}return null},mz=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],q3=mo.each,A5=r=>{const g=r.dom,B=new Set(r.serializer.getTempAttrs()),H=(be,Re)=>{if(be.nodeName!==Re.nodeName||be.nodeType!==Re.nodeType)return!1;const Ke=kt=>{const Wt={};return q3(g.getAttribs(kt),Jt=>{const ln=Jt.nodeName.toLowerCase();ln!=="style"&&!re(ln)&&(Wt[ln]=g.getAttrib(kt,ln))}),Wt},ct=(kt,Wt)=>{for(const Jt in kt)if(_t(kt,Jt)){const ln=Wt[Jt];if(M(ln)||kt[Jt]!==ln)return!1;delete Wt[Jt]}for(const Jt in Wt)if(_t(Wt,Jt))return!1;return!0};return ne(be)&&ne(Re)&&(!ct(Ke(be),Ke(Re))||!ct(g.parseStyle(g.getAttrib(be,"style")),g.parseStyle(g.getAttrib(Re,"style"))))?!1:!Kp(be)&&!Kp(Re)},re=be=>de(mz,Re=>xr(be,Re))||B.has(be);return{compare:H,isAttributeInternal:re}},$6=r=>["h1","h2","h3","h4","h5","h6"].includes(r.name),W3=r=>r.name==="summary",C2=(r,g)=>{let B=r;for(;B=B.walk();)g(B)},l7=(r,g,B,H)=>{const re=B.name;for(let be=0,Re=r.length;be{const H={nodes:{},attributes:{}};return B.firstChild&&C2(B,re=>{l7(r,g,re,H)}),H},gz=(r,g)=>{const B=(H,re)=>{Ge(H,be=>{const Re=Ee(be.nodes);ye(be.filter.callbacks,Ke=>{for(let ct=Re.length-1;ct>=0;ct--){const kt=Re[ct];(!(re?kt.attr(be.filter.name)!==void 0:kt.name===be.filter.name)||T(kt.parent))&&Re.splice(ct,1)}Re.length>0&&Ke(Re,be.filter.name,g)})})};B(r.nodes,!1),B(r.attributes,!0)},c7=(r,g,B,H={})=>{const re=QW(r,g,B);gz(re,H)},V6=(r,g,B,H)=>{if((r.pad_empty_with_br||g.insert)&&B(H)){const be=new yp("br",1);g.insert&&be.attr("data-mce-bogus","1"),H.empty().append(be)}else H.empty().append(new yp("#text",3)).value=Ea},HW=r=>{var g;return Jb(r,"#text")&&((g=r==null?void 0:r.firstChild)===null||g===void 0?void 0:g.value)===Ea},Jb=(r,g)=>{const B=r==null?void 0:r.firstChild;return E(B)&&B===r.lastChild&&B.name===g},zw=(r,g)=>{const B=r.getElementRule(g.name);return(B==null?void 0:B.paddEmpty)===!0},U6=(r,g,B,H)=>H.isEmpty(g,B,re=>zw(r,re)),Vd=(r,g)=>E(r)&&(g(r)||r.name==="br"),ZW=r=>{let g;for(let B=r;B;B=B.parent){const H=B.attr("contenteditable");if(H==="false")break;H==="true"&&(g=B)}return Y.from(g)},u7=(r,g,B=r.parent)=>{if(g.getSpecialElements()[r.name])r.empty().remove();else{const H=r.children();for(const re of H)B&&!g.isValidChild(B.name,re.name)&&u7(re,g,B);r.unwrap()}},gv=(r,g,B,H=k)=>{const re=g.getTextBlockElements(),be=g.getNonEmptyElements(),Re=g.getWhitespaceElements(),Ke=mo.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),ct=new Set,kt=Wt=>Wt!==B&&!Ke[Wt.name];for(let Wt=0;Wt1)if(vz(g,Jt,ln))u7(Jt,g);else{Rn.reverse(),kn=Rn[0].clone(),H(kn);let qn=kn;for(let pr=0;pr0?(Vn=Rn[pr].clone(),H(Vn),qn.append(Vn)):Vn=qn;for(let Tr=Rn[pr].firstChild;Tr&&Tr!==Rn[pr+1];){const wr=Tr.next;Vn.append(Tr),Tr=wr}qn=Vn}U6(g,be,Re,kn)?ln.insert(Jt,Rn[0],!0):(ln.insert(kn,Rn[0],!0),ln.insert(Jt,kn)),ln=Rn[0],(U6(g,be,Re,ln)||Jb(ln,"br"))&&ln.empty().remove()}else if(Jt.parent){if(Jt.name==="li"){let qn=Jt.prev;if(qn&&(qn.name==="ul"||qn.name==="ol")){qn.append(Jt);continue}if(qn=Jt.next,qn&&(qn.name==="ul"||qn.name==="ol")&&qn.firstChild){qn.insert(Jt,qn.firstChild,!0);continue}const pr=new yp("ul",1);H(pr),Jt.wrap(pr);continue}if(g.isValidChild(Jt.parent.name,"div")&&g.isValidChild("div",Jt.name)){const qn=new yp("div",1);H(qn),Jt.wrap(qn)}else u7(Jt,g)}}},qs=(r,g)=>{let B=r;for(;B;){if(B.name===g)return!0;B=B.parent}return!1},vz=(r,g,B=g.parent)=>B?r.children[g.name]&&!r.isValidChild(B.name,g.name)||g.name==="a"&&qs(B,"a")?!0:W3(B)&&$6(g)?!((B==null?void 0:B.firstChild)===g&&(B==null?void 0:B.lastChild)===g):!1:!1,qW=(r,g,B,H)=>{const re=document.createRange();return re.setStart(r,g),re.setEnd(B,H),re},WW=r=>{const g=qr.fromRangeStart(r),B=qr.fromRangeEnd(r),H=r.commonAncestorContainer;return Yp(!1,H,B).map(re=>!Wp(g,B,H)&&Wp(g,re,H)?qW(g.container(),g.offset(),re.container(),re.offset()):r).getOr(r)},Wl=r=>r.collapsed?r:WW(r),yz=r=>E(r.firstChild)&&r.firstChild===r.lastChild,M5=r=>r.name==="br"||r.value===Ea,E5=(r,g)=>r.getBlockElements()[g.name]&&yz(g)&&M5(g.firstChild),j6=(r,g)=>{const B=r.getNonEmptyElements();return E(g)&&(g.isEmpty(B)||E5(r,g))},Q6=(r,g)=>{let B=g.firstChild,H=g.lastChild;return B&&B.name==="meta"&&(B=B.next),H&&H.attr("id")==="mce_marker"&&(H=H.prev),j6(r,H)&&(H=H==null?void 0:H.prev),!B||B!==H?!1:B.name==="ul"||B.name==="ol"},bz=r=>{var g,B;const H=r.firstChild,re=r.lastChild;return H&&H.nodeName==="META"&&((g=H.parentNode)===null||g===void 0||g.removeChild(H)),re&&re.id==="mce_marker"&&((B=re.parentNode)===null||B===void 0||B.removeChild(re)),r},Hue=(r,g,B)=>{const H=g.serialize(B),re=r.createFragment(H);return bz(re)},YW=r=>{var g;return Te((g=r==null?void 0:r.childNodes)!==null&&g!==void 0?g:[],B=>B.nodeName==="LI")},Zue=r=>r.data===Ea||On(r),XW=r=>E(r==null?void 0:r.firstChild)&&r.firstChild===r.lastChild&&Zue(r.firstChild),GW=r=>!r.firstChild||XW(r),que=r=>r.length>0&&GW(r[r.length-1])?r.slice(0,-1):r,f7=(r,g)=>{const B=r.getParent(g,r.isBlock);return B&&B.nodeName==="LI"?B:null},Td=(r,g)=>!!f7(r,g),xz=(r,g)=>{const B=g.cloneRange(),H=g.cloneRange();return B.setStartBefore(r),H.setEndAfter(r),[B.cloneContents(),H.cloneContents()]},_z=(r,g)=>{const B=qr.before(r),re=Sd(g).next(B);return re?re.toRange():null},wz=(r,g)=>{const B=qr.after(r),re=Sd(g).prev(B);return re?re.toRange():null},KW=(r,g,B,H)=>{const re=xz(r,H),be=r.parentNode;return be&&(be.insertBefore(re[0],r),mo.each(g,Re=>{be.insertBefore(Re,r)}),be.insertBefore(re[1],r),be.removeChild(r)),wz(g[g.length-1],B)},JW=(r,g,B)=>{const H=r.parentNode;return H&&mo.each(g,re=>{H.insertBefore(re,r)}),_z(r,B)},Zm=(r,g,B,H)=>(H.insertAfter(g.reverse(),r),wz(g[0],B)),vv=(r,g,B,H)=>{const re=Hue(g,r,H),be=f7(g,B.startContainer),Re=que(YW(re.firstChild)),Ke=1,ct=2,kt=g.getRoot(),Wt=Jt=>{const ln=qr.fromRangeStart(B),kn=Sd(g.getRoot()),Vn=Jt===Ke?kn.prev(ln):kn.next(ln),Rn=Vn==null?void 0:Vn.getNode();return Rn?f7(g,Rn)!==be:!0};return be?Wt(Ke)?JW(be,Re,kt):Wt(ct)?Zm(be,Re,kt,g):KW(be,Re,kt,B):null},eY=["pre"],d7=(r,g,B,H)=>{var re;const be=g.firstChild,Re=g.lastChild,Ke=Re.attr("data-mce-type")==="bookmark"?Re.prev:Re,ct=be===Ke,kt=ce(eY,be.name);if(ct&&kt){const Wt=be.attr("contenteditable")!=="false",Jt=((re=r.getParent(B,r.isBlock))===null||re===void 0?void 0:re.nodeName.toLowerCase())===be.name,ln=Y.from(Kb(H,B)).forall(Sn);return Wt&&Jt&&ln}else return!1},P5=Dr,tY=(r,g,B)=>{if(E(B)){const H=r.getParent(g.endContainer,P5);return B===H&&x3(sr.fromDom(B),g)}else return!1},nY=(r,g,B)=>{var H;if(B.getAttribute("data-mce-bogus")==="all")(H=B.parentNode)===null||H===void 0||H.insertBefore(r.dom.createFragment(g),B);else{const re=B.firstChild,be=B.lastChild;!re||re===be&&re.nodeName==="BR"?r.dom.setHTML(B,g):r.selection.setContent(g,{no_events:!0})}},R5=(r,g,B)=>{Y.from(r.getParent(g,"td,th")).map(sr.fromDom).each(H=>H_(H,B))},H6=(r,g)=>{const B=r.schema.getTextInlineElements(),H=r.dom;if(g){const re=r.getBody(),be=A5(r),Re="*[data-mce-fragment]",Ke=H.select(Re);mo.each(Ke,ct=>{const kt=ln=>E(B[ln.nodeName.toLowerCase()]),Wt=ln=>ln.childNodes.length===1;if((ln=>!(xB(H,ln)||hW(H,ln)))(ct)&&kt(ct)&&Wt(ct)){const ln=V3(H,ct),kn=(pr,Tr)=>Oe(pr,wr=>ce(Tr,wr)),Vn=pr=>Wt(ct)&&H.is(pr,Re)&&kt(pr)&&(pr.nodeName===ct.nodeName&&kn(ln,V3(H,pr))||Vn(pr.children[0])),Rn=pr=>E(pr)&&pr!==re&&(be.compare(ct,pr)||Rn(pr.parentElement)),qn=pr=>E(pr)&&pr!==re&&H.is(pr,Re)&&(mW(H,ct,pr)||qn(pr.parentElement));(Vn(ct.children[0])||Rn(ct.parentElement)&&!qn(ct.parentElement))&&H.remove(ct,!0)}})}},h7=r=>{let g=r;for(;g=g.walk();)g.type===1&&g.attr("data-mce-fragment","1")},rY=r=>{mo.each(r.getElementsByTagName("*"),g=>{g.removeAttribute("data-mce-fragment")})},yv=r=>!!r.getAttribute("data-mce-fragment"),oY=(r,g)=>E(g)&&!r.schema.getVoidElements()[g.nodeName],iY=(r,g)=>{var B,H,re;let be;const Re=r.dom,Ke=r.selection;if(!g)return;Ke.scrollIntoView(g);const ct=Kb(r.getBody(),g);if(ct&&Re.getContentEditable(ct)==="false"){Re.remove(g),Ke.select(ct);return}let kt=Re.createRng();const Wt=g.previousSibling;if(Nt(Wt)){kt.setStart(Wt,(H=(B=Wt.nodeValue)===null||B===void 0?void 0:B.length)!==null&&H!==void 0?H:0);const kn=g.nextSibling;Nt(kn)&&(Wt.appendData(kn.data),(re=kn.parentNode)===null||re===void 0||re.removeChild(kn))}else kt.setStartBefore(g),kt.setEndBefore(g);const Jt=kn=>{let Vn=qr.fromRangeStart(kn);return Vn=Sd(r.getBody()).next(Vn),Vn==null?void 0:Vn.toRange()},ln=Re.getParent(g,Re.isBlock);if(Re.remove(g),ln&&Re.isEmpty(ln)){const kn=P5(ln);vu(sr.fromDom(ln)),kt.setStart(ln,0),kt.setEnd(ln,0),!kn&&!yv(ln)&&(be=Jt(kt))?(kt=be,Re.remove(ln)):Re.add(ln,Re.create("br",kn?{}:{"data-mce-bogus":"1"}))}Ke.setRng(kt)},f0=r=>{const g=r.dom,B=Wl(r.selection.getRng());r.selection.setRng(B);const H=g.getParent(B.startContainer,P5);tY(g,B,H)?D6(r,B,sr.fromDom(H)):B.startContainer===B.endContainer&&B.endOffset-B.startOffset===1&&Nt(B.startContainer.childNodes[B.startOffset])?B.deleteContents():r.getDoc().execCommand("Delete",!1)},L5=r=>{for(let g=r;g;g=g.walk())if(g.attr("id")==="mce_marker")return Y.some(g);return Y.none()},n1=(r,g,B)=>{var H;return de(B.children(),$6)&&((H=r.getParent(g,r.isBlock))===null||H===void 0?void 0:H.nodeName)==="SUMMARY"},aY=(r,g,B)=>{var H,re;const be=r.selection,Re=r.dom,Ke=r.parser,ct=B.merge,kt=Yb({validate:!0},r.schema),Wt='';B.preserve_zwsp||(g=yd(g)),g.indexOf("{$caret}")===-1&&(g+="{$caret}"),g=g.replace(/\{\$caret\}/,Wt);let Jt=be.getRng();const ln=Jt.startContainer,kn=r.getBody();ln===kn&&be.isCollapsed()&&Re.isBlock(kn.firstChild)&&oY(r,kn.firstChild)&&Re.isEmpty(kn.firstChild)&&(Jt=Re.createRng(),Jt.setStart(kn.firstChild,0),Jt.setEnd(kn.firstChild,0),be.setRng(Jt)),be.isCollapsed()||f0(r);const Vn=be.getNode(),Rn={context:Vn.nodeName.toLowerCase(),data:B.data,insert:!0},qn=Ke.parse(g,Rn);if(B.paste===!0&&Q6(r.schema,qn)&&Td(Re,Vn))return Jt=vv(kt,Re,be.getRng(),qn),Jt&&be.setRng(Jt),g;B.paste===!0&&d7(Re,qn,Vn,r.getBody())&&((H=qn.firstChild)===null||H===void 0||H.unwrap()),h7(qn);let pr=qn.lastChild;if(pr&&pr.attr("id")==="mce_marker"){const Tr=pr;for(pr=pr.prev;pr;pr=pr.walk(!0))if(pr.type===3||!Re.isBlock(pr.name)){pr.parent&&r.schema.isValidChild(pr.parent.name,"span")&&pr.parent.insert(Tr,pr,pr.name==="br");break}}if(r._selectionOverrides.showBlockCaretContainer(Vn),!Rn.invalid&&!n1(Re,Vn,qn))g=kt.serialize(qn),nY(r,g,Vn);else{r.selection.setContent(Wt);let Tr=be.getNode(),wr;const Ur=r.getBody();for(pn(Tr)?Tr=wr=Ur:wr=Tr;wr&&wr!==Ur;)Tr=wr,wr=wr.parentNode;g=Tr===Ur?Ur.innerHTML:Re.getOuterHTML(Tr);const wo=Ke.parse(g),jo=L5(wo),di=jo.bind(ZW).getOr(wo);jo.each(bi=>bi.replace(qn));const lo=qn.children(),eo=(re=qn.parent)!==null&&re!==void 0?re:wo;qn.unwrap();const xo=Te(lo,bi=>vz(r.schema,bi,eo));gv(xo,r.schema,di),c7(Ke.getNodeFilters(),Ke.getAttributeFilters(),wo),g=kt.serialize(wo),Tr===Ur?Re.setHTML(Ur,g):Re.setOuterHTML(Tr,g)}return H6(r,ct),iY(r,Re.get("mce_marker")),rY(r.getBody()),R5(Re,be.getStart(),r.schema),Wf(r.schema,r.getBody(),be.getStart()),g},Ks=r=>r instanceof yp,Y3=r=>{Mw(r)&&lh(r.getBody()).each(g=>{const B=g.getNode(),H=Et(B)?lh(B).getOr(g):g;r.selection.setRng(H.toRange())})},X3=(r,g,B)=>{r.dom.setHTML(r.getBody(),g),B!==!0&&Y3(r)},Oz=(r,g,B,H)=>{if(B=yd(B),B.length===0||/^\s+$/.test(B)){const re='
    ';g.nodeName==="TABLE"?B=""+re+"":/^(UL|OL)$/.test(g.nodeName)&&(B="
  • "+re+"
  • ");const be=dc(r);return r.schema.isValidChild(g.nodeName.toLowerCase(),be.toLowerCase())?(B=re,B=r.dom.createHTML(be,Jf(r),B)):B||(B=re),X3(r,B,H.no_selection),{content:B,html:B}}else{H.format!=="raw"&&(B=Yb({validate:!1},r.schema).serialize(r.parser.parse(B,{isRootContent:!0,insert:!0})));const re=iy(sr.fromDom(g))?B:mo.trim(B);return X3(r,re,H.no_selection),{content:re,html:re}}},p7=(r,g,B,H)=>{c7(r.parser.getNodeFilters(),r.parser.getAttributeFilters(),B);const re=Yb({validate:!1},r.schema).serialize(B),be=yd(iy(sr.fromDom(g))?re:mo.trim(re));return X3(r,be,H.no_selection),{content:B,html:be}},m7=(r,g,B)=>Y.from(r.getBody()).map(H=>Ks(g)?p7(r,H,g,B):Oz(r,H,g,B)).getOr({content:g,html:Ks(B.content)?"":B.content}),Sz=r=>C(r)?r:oe,g7=(r,g,B)=>{let H=r.dom;const re=Sz(B);for(;H.parentNode;){H=H.parentNode;const be=sr.fromDom(H),Re=g(be);if(Re.isSome())return Re;if(re(be))break}return Y.none()},v7=(r,g,B)=>{const H=g(r),re=Sz(B);return H.orThunk(()=>re(r)?Y.none():g7(r,g,re))},Z6=w3,y7=(r,g,B)=>{const H=r.formatter.get(B);if(H)for(let re=0;re{const be=r.dom.getRoot();if(g===be)return!1;const Re=r.dom.getParent(g,Ke=>y7(r,Ke,B)?!0:Ke.parentNode===be||!!Py(r,Ke,B,H,!0));return!!Py(r,Re,B,H,re)},D5=(r,g,B)=>Ef(B)&&Z6(g,B.inline)||hv(B)&&Z6(g,B.block)?!0:$m(B)?ne(g)&&r.is(g,B.selector):!1,B5=(r,g,B,H,re,be)=>{const Re=B[H],Ke=H==="attributes";if(C(B.onmatch))return B.onmatch(g,B,H);if(Re){if(mn(Re)){for(let ct=0;ct{const be=r.formatter.get(B),Re=r.dom;if(be&&ne(g))for(let Ke=0;Ke{if(H)return I5(r,H,g,B,re);if(H=r.selection.getNode(),I5(r,H,g,B,re))return!0;const be=r.selection.getStart();return!!(be!==H&&I5(r,be,g,B,re))},sY=(r,g,B)=>{const H=[],re={},be=r.selection.getStart();return r.dom.getParent(be,Re=>{for(let Ke=0;Ke{const B=re=>Fa(re,sr.fromDom(r.getBody())),H=(re,be)=>Py(r,re.dom,be)?Y.some(be):Y.none();return Y.from(r.selection.getStart(!0)).bind(re=>v7(sr.fromDom(re),be=>Ne(g,Re=>H(be,Re)),B)).getOrNull()},cY=(r,g)=>{const B=r.formatter.get(g),H=r.dom;if(B&&r.selection.isEditable()){const re=r.selection.getStart(),be=x2(H,re);for(let Re=B.length-1;Re>=0;Re--){const Ke=B[Re];if(!$m(Ke))return!0;for(let ct=be.length-1;ct>=0;ct--)if(H.is(be[ct],Ke.selector))return!0}}return!1},kz=(r,g,B)=>Ie(B,(H,re)=>{const be=XM(r,re);return r.formatter.matchNode(g,re,{},be)?H.concat([re]):H},[]),z5=nc,uY=(r,g)=>r.importNode(g,!0),x7=r=>{if(r){const g=new kc(r,r);for(let B=g.current();B;B=g.next())if(Nt(B))return B}return null},q6=r=>{const g=sr.fromTag("span");return ef(g,{id:v3,"data-mce-bogus":"1","data-mce-type":"format-caret"}),r&&Ps(g,sr.fromText(z5)),g},fY=r=>{const g=x7(r);return g&&g.data.charAt(0)===z5&&g.deleteData(0,1),g},_7=(r,g,B)=>{const H=r.dom,re=r.selection;if(GT(g))Ew(r,!1,sr.fromDom(g),B,!0);else{const be=re.getRng(),Re=H.getParent(g,H.isBlock),Ke=be.startContainer,ct=be.startOffset,kt=be.endContainer,Wt=be.endOffset,Jt=fY(g);H.remove(g,!0),Ke===Jt&&ct>0&&be.setStart(Jt,ct-1),kt===Jt&&Wt>0&&be.setEnd(Jt,Wt-1),Re&&H.isEmpty(Re)&&rh(sr.fromDom(Re)),re.setRng(be)}},W6=(r,g,B)=>{const H=r.dom,re=r.selection;if(g)_7(r,g,B);else if(g=Vb(r.getBody(),re.getStart()),!g)for(;g=H.get(v3);)_7(r,g,B)},dY=(r,g,B)=>{var H,re;const be=r.dom,Re=be.getParent(B,U(e5,r.schema));Re&&be.isEmpty(Re)?(H=B.parentNode)===null||H===void 0||H.replaceChild(g,B):(wS(sr.fromDom(B)),be.isEmpty(B)?(re=B.parentNode)===null||re===void 0||re.replaceChild(g,B):be.insertAfter(g,B))},w7=(r,g)=>(r.appendChild(g),g),Ag=(r,g)=>{var B;const H=Pe(r,(be,Re)=>w7(be,Re.cloneNode(!1)),g),re=(B=H.ownerDocument)!==null&&B!==void 0?B:document;return w7(H,re.createTextNode(z5))},hY=(r,g,B,H,re,be)=>{const Re=r.formatter,Ke=r.dom,ct=Te(nt(Re.get()),Jt=>Jt!==H&&!jn(Jt,"removeformat")),kt=kz(r,B,ct);if(Te(kt,Jt=>!k3(r,Jt,H)).length>0){const Jt=B.cloneNode(!1);return Ke.add(g,Jt),Re.remove(H,re,Jt,be),Ke.remove(Jt),Y.some(Jt)}else return Y.none()},Tz=(r,g,B)=>{let H;const re=r.selection,be=r.formatter.get(g);if(!be)return;const Re=re.getRng();let Ke=Re.startOffset;const kt=Re.startContainer.nodeValue;H=Vb(r.getBody(),re.getStart());const Wt=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(kt&&Ke>0&&Ke{const re=r.dom,be=r.selection;let Re=!1;const Ke=r.formatter.get(g);if(!Ke)return;const ct=be.getRng(),kt=ct.startContainer,Wt=ct.startOffset;let Jt=kt;Nt(kt)&&(Wt!==kt.data.length&&(Re=!0),Jt=Jt.parentNode);const ln=[];let kn;for(;Jt;){if(Py(r,Jt,g,B,H)){kn=Jt;break}Jt.nextSibling&&(Re=!0),ln.push(Jt),Jt=Jt.parentNode}if(kn)if(Re){const Vn=be.getBookmark();ct.collapse(!0);let Rn=Oy(re,ct,Ke,!0);Rn=_i(Rn),r.formatter.remove(g,B,Rn,H),be.moveToBookmark(Vn)}else{const Vn=Vb(r.getBody(),kn),Rn=E(Vn)?re.getParents(kn.parentNode,q,Vn):[],qn=q6(!1).dom;dY(r,qn,Vn??kn);const pr=hY(r,qn,kn,g,B,H),Tr=Ag([...ln,...pr.toArray(),...Rn],qn);Vn&&_7(r,Vn,E(Vn)),be.setCursorLocation(Tr,1),re.isEmpty(kn)&&re.remove(kn)}},S7=(r,g,B)=>{const H=r.selection,re=r.getBody();W6(r,null,B),(g===8||g===46)&&H.isCollapsed()&&H.getStart().innerHTML===z5&&W6(r,Vb(re,H.getStart()),!0),(g===37||g===39)&&W6(r,Vb(re,H.getStart()),!0)},Cz=r=>Nt(r)&&Sr(r.data,Ea),Az=r=>{r.on("mouseup keydown",g=>{S7(r,g.keyCode,Cz(r.selection.getRng().endContainer))})},Mz=r=>{const g=q6(!1),B=Ag(r,g.dom);return{caretContainer:g,caretPosition:qr(B,0)}},Ez=(r,g)=>{const{caretContainer:B,caretPosition:H}=Mz(g);return Fc(sr.fromDom(r),B),ja(sr.fromDom(r)),H},k7=(r,g)=>{const{caretContainer:B,caretPosition:H}=Mz(g);return r.insertNode(B.dom),H},T7=(r,g)=>{if(Gp(g.dom))return!1;const B=r.schema.getTextInlineElements();return _t(B,la(g))&&!Gp(g.dom)&&!dt(g.dom)},em={},Pz=Fe(["pre"]),pY=(r,g)=>{em[r]||(em[r]=[]),em[r].push(g)},Wue=(r,g)=>{_t(em,r)&&ye(em[r],B=>{B(g)})};pY("pre",r=>{const g=r.selection.getRng(),B=re=>be=>{const Re=be.previousSibling;return Pz(Re)&&ce(re,Re)},H=(re,be)=>{const Re=sr.fromDom(be),Ke=Bc(Re).dom;ja(Re),gu(sr.fromDom(re),[sr.fromTag("br",Ke),sr.fromTag("br",Ke),...Oc(Re)])};if(!g.collapsed){const re=r.selection.getSelectedBlocks(),be=Te(Te(re,Pz),B(re));ye(be,Re=>{H(Re.previousSibling,Re)})}});const Y6=["fontWeight","fontStyle","color","fontSize","fontFamily"],mY=r=>_(r.styles)&&de(nt(r.styles),g=>ce(Y6,g)),Yue=r=>De(r,g=>Ef(g)&&g.inline==="span"&&mY(g)),Rz=(r,g)=>{const B=r.get(g);return A(B)?Yue(B):Y.none()},X6=(r,g)=>mp(g,qr.fromRangeStart(r)).isNone(),r1=(r,g)=>sh(g,qr.fromRangeEnd(r)).exists(B=>!On(B.getNode())||sh(g,B).isSome())===!1,G6=r=>g=>Mo(g)&&r.isEditable(g),K6=r=>{const g=r.getSelectedBlocks(),B=r.getRng();if(r.isCollapsed())return[];if(g.length===1)return X6(B,g[0])&&r1(B,g[0])?g:[];{const H=Xe(g).filter(Re=>X6(B,Re)).toArray(),re=tt(g).filter(Re=>r1(B,Re)).toArray(),be=g.slice(1,-1);return H.concat(be).concat(re)}},C7=r=>Te(K6(r),G6(r.dom)),Lz=r=>Te(r.getSelectedBlocks(),G6(r.dom)),J6=mo.each,A7=r=>ne(r)&&!Kp(r)&&!Gp(r)&&!dt(r),M7=(r,g)=>{for(let B=r;B;B=B[g]){if(Nt(B)&&Kn(B.data))return r;if(ne(B)&&!Kp(B))return B}return r},eC=(r,g,B)=>{const H=A5(r),re=ge(g)&&r.dom.isEditable(g),be=ge(B)&&r.dom.isEditable(B);if(re&&be){const Re=M7(g,"previousSibling"),Ke=M7(B,"nextSibling");if(H.compare(Re,Ke)){for(let ct=Re.nextSibling;ct&&ct!==Ke;){const kt=ct;ct=ct.nextSibling,Re.appendChild(kt)}return r.dom.remove(Ke),mo.each(mo.grep(Ke.childNodes),ct=>{Re.appendChild(ct)}),Re}}return B},Iz=(r,g,B,H)=>{var re;if(H&&g.merge_siblings!==!1){const be=(re=eC(r,pw(H),H))!==null&&re!==void 0?re:H;eC(r,be,pw(be,!0))}},Dz=(r,g,B)=>{if(g.clear_child_styles){const H=g.links?"*:not(a)":"*";J6(r.select(H,B),re=>{A7(re)&&r.isEditable(re)&&J6(g.styles,(be,Re)=>{r.setStyle(re,Re,"")})})}},E7=(r,g,B)=>{J6(r.childNodes,H=>{A7(H)&&(g(H)&&B(H),H.hasChildNodes()&&E7(H,g,B))})},Fw=(r,g)=>{g.nodeName==="SPAN"&&r.getAttribs(g).length===0&&r.remove(g,!0)},P7=(r,g)=>B=>!!(B&&O3(r,B,g)),Bz=(r,g,B)=>H=>{r.setStyle(H,g,B),H.getAttribute("style")===""&&H.removeAttribute("style"),Fw(r,H)},A2=aa.generate([{keep:[]},{rename:["name"]},{removed:[]}]),gY=/^(src|href|style)$/,R7=mo.each,tC=w3,vY=r=>/^(TR|TH|TD)$/.test(r.nodeName),zz=(r,g,B)=>r.isChildOf(g,B)&&g!==B&&!r.isBlock(B),L7=(r,g,B)=>{let H=g[B?"startContainer":"endContainer"],re=g[B?"startOffset":"endOffset"];if(ne(H)){const be=H.childNodes.length-1;!B&&re&&re--,H=H.childNodes[re>be?be:re]}return Nt(H)&&B&&re>=H.data.length&&(H=new kc(H,r.getBody()).next()||H),Nt(H)&&!B&&re===0&&(H=new kc(H,r.getBody()).prev()||H),H},Fz=(r,g)=>{const B=g?"firstChild":"lastChild",H=r[B];return vY(r)&&H?r.nodeName==="TR"&&H[B]||H:r},F5=(r,g,B,H)=>{var re;const be=r.create(B,H);return(re=g.parentNode)===null||re===void 0||re.insertBefore(be,g),be.appendChild(g),be},M2=(r,g,B,H,re)=>{const be=sr.fromDom(g),Re=sr.fromDom(r.create(H,re)),Ke=B?Pu(be):vh(be);return gu(Re,Ke),B?(Fc(be,Re),Hh(Re,be)):(si(be,Re),Ps(Re,be)),Re.dom},yY=(r,g)=>g.links&&r.nodeName==="A",Nz=(r,g,B)=>{const H=g.parentNode;let re;const be=r.dom,Re=dc(r);hv(B)&&H===be.getRoot()&&(!B.list_block||!tC(g,B.list_block))&&ye(Ee(g.childNodes),Ke=>{dv(r,Re,Ke.nodeName.toLowerCase())?re?re.appendChild(Ke):(re=F5(be,Ke,Re),be.setAttribs(re,Jf(r))):re=null}),!(KM(B)&&!tC(B.inline,g))&&be.remove(g,!0)},N5=(r,g,B)=>L(r)?{name:g,value:null}:{name:r,value:Hb(g,B)},I7=(r,g)=>{r.getAttrib(g,"style")===""&&(g.removeAttribute("style"),g.removeAttribute("data-mce-style"))},D7=(r,g,B,H,re)=>{let be=!1;R7(B.styles,(Re,Ke)=>{const{name:ct,value:kt}=N5(Ke,Re,H),Wt=Zb(kt,ct);(B.remove_similar||x(kt)||!ne(re)||tC(O3(r,re,ct),Wt))&&r.setStyle(g,ct,""),be=!0}),be&&I7(r,g)},bY=(r,g,B)=>{g==="removeformat"?ye(Lz(r.selection),H=>{ye(Y6,re=>r.dom.setStyle(H,re,"")),I7(r.dom,H)}):Rz(r.formatter,g).each(H=>{ye(Lz(r.selection),re=>D7(r.dom,re,H,B,null))})},B7=(r,g,B,H,re)=>{const be=r.dom,Re=A5(r),Ke=r.schema;if(Ef(g)&&cg(Ke,g.inline)&&xm(Ke,H)&&H.parentElement===r.getBody())return Nz(r,H,g),A2.removed();if(!g.ceFalseOverride&&H&&be.getContentEditableParent(H)==="false"||H&&!D5(be,H,g)&&!yY(H,g))return A2.keep();const ct=H,kt=g.preserve_attributes;if(Ef(g)&&g.remove==="all"&&A(kt)){const Wt=Te(be.getAttribs(ct),Jt=>ce(kt,Jt.name.toLowerCase()));if(be.removeAllAttribs(ct),ye(Wt,Jt=>be.setAttrib(ct,Jt.name,Jt.value)),Wt.length>0)return A2.rename("span")}if(g.remove!=="all"){D7(be,ct,g,B,re),R7(g.attributes,(Jt,ln)=>{const{name:kn,value:Vn}=N5(ln,Jt,B);if(g.remove_similar||x(Vn)||!ne(re)||tC(be.getAttrib(re,kn),Vn)){if(kn==="class"){const Rn=be.getAttrib(ct,kn);if(Rn){let qn="";if(ye(Rn.split(/\s+/),pr=>{/mce\-\w+/.test(pr)&&(qn+=(qn?" ":"")+pr)}),qn){be.setAttrib(ct,kn,qn);return}}}if(gY.test(kn)&&ct.removeAttribute("data-mce-"+kn),kn==="style"&&Fe(["li"])(ct)&&be.getStyle(ct,"list-style-type")==="none"){ct.removeAttribute(kn),be.setStyle(ct,"list-style-type","none");return}kn==="class"&&ct.removeAttribute("className"),ct.removeAttribute(kn)}}),R7(g.classes,Jt=>{Jt=Hb(Jt,B),(!ne(re)||be.hasClass(re,Jt))&&be.removeClass(ct,Jt)});const Wt=be.getAttribs(ct);for(let Jt=0;Jt{let be;return g.parentNode&&ye(x2(r.dom,g.parentNode).reverse(),Re=>{if(!be&&ne(Re)&&Re.id!=="_start"&&Re.id!=="_end"){const Ke=Py(r,Re,B,H,re);Ke&&Ke.split!==!1&&(be=Re)}}),be},Nw=(r,g,B,H)=>B7(r,g,B,H,H).fold($(H),re=>(r.dom.createFragment().appendChild(H),r.dom.rename(H,re)),$(null)),$z=(r,g,B,H,re,be,Re,Ke)=>{var ct,kt;let Wt,Jt;const ln=r.dom;if(B){const kn=B.parentNode;for(let Vn=H.parentNode;Vn&&Vn!==kn;Vn=Vn.parentNode){let Rn=ln.clone(Vn,!1);for(let qn=0;qn{const be=r.formatter.get(g),Re=be[0],Ke=r.dom,ct=r.selection,kt=Rn=>{const qn=xY(r,Rn,g,B,re);return $z(r,be,qn,Rn,Rn,!0,Re,B)},Wt=Rn=>Kp(Rn)&&ne(Rn)&&(Rn.id==="_start"||Rn.id==="_end"),Jt=Rn=>de(be,qn=>E2(r,qn,B,Rn,Rn)),ln=Rn=>{const qn=Ee(Rn.childNodes),Tr=Jt(Rn)||de(be,wo=>D5(Ke,Rn,wo)),wr=Rn.parentNode;if(!Tr&&E(wr)&&u0(Re)&&Jt(wr),Re.deep&&qn.length)for(let wo=0;wo{ne(Rn)&&r.dom.getStyle(Rn,"text-decoration")===wo&&Rn.parentNode&&XT(Ke,Rn.parentNode)===wo&&E2(r,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:wo}},void 0,Rn)})},kn=Rn=>{const qn=Ke.get(Rn?"_start":"_end");if(qn){let pr=qn[Rn?"firstChild":"lastChild"];return Wt(pr)&&(pr=pr[Rn?"firstChild":"lastChild"]),Nt(pr)&&pr.data.length===0&&(pr=Rn?qn.previousSibling||qn.nextSibling:qn.nextSibling||qn.previousSibling),Ke.remove(qn,!0),pr}else return null},Vn=Rn=>{let qn,pr,Tr=Oy(Ke,Rn,be,Rn.collapsed);if(Re.split){if(Tr=_i(Tr),qn=L7(r,Tr,!0),pr=L7(r,Tr),qn!==pr){if(qn=Fz(qn,!0),pr=Fz(pr,!1),zz(Ke,qn,pr)){const Ur=Y.from(qn.firstChild).getOr(qn);kt(M2(Ke,Ur,!0,"span",{id:"_start","data-mce-type":"bookmark"})),kn(!0);return}if(zz(Ke,pr,qn)){const Ur=Y.from(pr.lastChild).getOr(pr);kt(M2(Ke,Ur,!1,"span",{id:"_end","data-mce-type":"bookmark"})),kn(!1);return}qn=F5(Ke,qn,"span",{id:"_start","data-mce-type":"bookmark"}),pr=F5(Ke,pr,"span",{id:"_end","data-mce-type":"bookmark"});const wr=Ke.createRng();wr.setStartAfter(qn),wr.setEndBefore(pr),yw(Ke,wr,Ur=>{ye(Ur,wo=>{!Kp(wo)&&!Kp(wo.parentNode)&&kt(wo)})}),kt(qn),kt(pr),qn=kn(!0),pr=kn()}else qn=pr=kt(qn);Tr.startContainer=qn.parentNode?qn.parentNode:qn,Tr.startOffset=Ke.nodeIndex(qn),Tr.endContainer=pr.parentNode?pr.parentNode:pr,Tr.endOffset=Ke.nodeIndex(pr)+1}yw(Ke,Tr,wr=>{ye(wr,ln)})};if(H){if(b2(H)){const Rn=Ke.createRng();Rn.setStartBefore(H),Rn.setEndAfter(H),Vn(Rn)}else Vn(H);Jp(r,g,H,B);return}!ct.isCollapsed()||!Ef(Re)||g2(r).length?(K0(r,()=>y2(r,Vn),Rn=>Ef(Re)&&b7(r,g,B,Rn)),r.nodeChanged()):O7(r,g,B,re),bY(r,g,B),Jp(r,g,H,B)},z7=(r,g,B,H,re)=>{(H||r.selection.isEditable())&&Vz(r,g,B,H,re)},E2=(r,g,B,H,re)=>B7(r,g,B,H,re).fold(oe,be=>(r.dom.rename(H,be),!0),q),F7=mo.each,_Y=(r,g,B,H)=>{const re=be=>{if(ge(be)&&ne(be.parentNode)&&r.isEditable(be)){const Re=XT(r,be.parentNode);r.getStyle(be,"color")&&Re?r.setStyle(be,"text-decoration",Re):r.getStyle(be,"text-decoration")===Re&&r.setStyle(be,"text-decoration",null)}};g.styles&&(g.styles.color||g.styles.textDecoration)&&(mo.walk(H,re,"childNodes"),re(H))},Uz=(r,g,B,H)=>{if(g.styles&&g.styles.backgroundColor){const re=P7(r,"fontSize");E7(H,be=>re(be)&&r.isEditable(be),Bz(r,"backgroundColor",Hb(g.styles.backgroundColor,B)))}},wY=(r,g,B,H)=>{if(Ef(g)&&(g.inline==="sub"||g.inline==="sup")){const re=P7(r,"fontSize");E7(H,Re=>re(Re)&&r.isEditable(Re),Bz(r,"fontSize",""));const be=Te(r.select(g.inline==="sup"?"sub":"sup",H),r.isEditable);r.remove(be,!0)}},OY=(r,g,B,H)=>{F7(g,re=>{Ef(re)&&F7(r.dom.select(re.inline,H),be=>{A7(be)&&E2(r,re,B,be,re.exact?be:null)}),Dz(r.dom,re,H)})},nC=(r,g,B,H,re)=>{const be=re.parentNode;Py(r,be,B,H)&&E2(r,g,H,re)||g.merge_with_parents&&be&&r.dom.getParent(be,Re=>Py(r,Re,B,H)?(E2(r,g,H,re),!0):!1)},$5=mo.each,N7=(r,g,B,H)=>{if(hy(r)&&Ef(g)&&B.parentNode){const re=hb(r.schema),be=Bd(sr.fromDom(B),Re=>Gp(Re.dom));return nn(re,H)&&ba(r.schema,B.parentNode,{skipBogus:!1,includeZwsp:!0})&&!be}else return!1},jz=(r,g,B,H)=>{if($5(B.styles,(re,be)=>{r.setStyle(g,be,Hb(re,H))}),B.styles){const re=r.getAttrib(g,"style");re&&r.setAttrib(g,"data-mce-style",re)}},SY=(r,g,B,H)=>{const re=r.formatter.get(g),be=re[0],Re=!H&&r.selection.isCollapsed(),Ke=r.dom,ct=r.selection,kt=(Vn,Rn=be)=>{C(Rn.onformat)&&Rn.onformat(Vn,Rn,B,H),jz(Ke,Vn,Rn,B),$5(Rn.attributes,(qn,pr)=>{Ke.setAttrib(Vn,pr,Hb(qn,B))}),$5(Rn.classes,qn=>{const pr=Hb(qn,B);Ke.hasClass(Vn,pr)||Ke.addClass(Vn,pr)})},Wt=(Vn,Rn)=>{let qn=!1;return $5(Vn,pr=>$m(pr)?Ke.getContentEditable(Rn)==="false"&&!pr.ceFalseOverride||E(pr.collapsed)&&pr.collapsed!==Re?!0:Ke.is(Rn,pr.selector)&&!Gp(Rn)?(kt(Rn,pr),qn=!0,!1):!0:!1),qn},Jt=Vn=>{if(v(Vn)){const Rn=Ke.create(Vn);return kt(Rn),Rn}else return null},ln=(Vn,Rn,qn)=>{const pr=[];let Tr=!0;const wr=be.inline||be.block,Ur=Jt(wr),wo=lo=>GM(be)&&Py(r,lo,g,B),jo=(lo,eo,xo)=>{const bi=mw(be)&&e5(r.schema,lo)&&dv(r,eo,wr);return xo&&bi},di=(lo,eo,xo,bi)=>{const Bi=lo.nodeName.toLowerCase(),$a=dv(r,wr,Bi)&&dv(r,eo,wr),Ia=!qn&&Nt(lo)&&$0(lo.data),Us=Gp(lo),sl=!Ef(be)||!Vn.isBlock(lo);return(xo||bi)&&$a&&!Ia&&!Us&&sl};yw(Vn,Rn,lo=>{let eo;const xo=bi=>{let Bi=!1,$a=Tr,Ia=!1;const Us=bi.parentNode,sl=Us.nodeName.toLowerCase(),nu=Vn.getContentEditable(bi);E(nu)&&($a=Tr,Tr=nu==="true",Bi=!0,Ia=r5(r,bi));const jd=Tr&&!Bi;if(On(bi)&&!N7(r,be,bi,sl)){eo=null,hv(be)&&Vn.remove(bi);return}if(wo(bi)){eo=null;return}if(jo(bi,sl,jd)){const vl=Vn.rename(bi,wr);kt(vl),pr.push(vl),eo=null;return}if($m(be)){let vl=Wt(re,bi);if(!vl&&E(Us)&&u0(be)&&(vl=Wt(re,Us)),!Ef(be)||vl){eo=null;return}}E(Ur)&&di(bi,sl,jd,Ia)?(eo||(eo=Vn.clone(Ur,!1),Us.insertBefore(eo,bi),pr.push(eo)),Ia&&Bi&&(Tr=$a),eo.appendChild(bi)):(eo=null,ye(Ee(bi.childNodes),xo),Bi&&(Tr=$a),eo=null)};ye(lo,xo)}),be.links===!0&&ye(pr,lo=>{const eo=xo=>{xo.nodeName==="A"&&kt(xo,be),ye(Ee(xo.childNodes),eo)};eo(lo)}),ye(pr,lo=>{const eo=Bi=>{let $a=0;return ye(Bi.childNodes,Ia=>{!_3(Ia)&&!Kp(Ia)&&$a++}),$a},xo=Bi=>De(Bi.childNodes,JS).filter(Ia=>Vn.getContentEditable(Ia)!=="false"&&D5(Vn,Ia,be)).map(Ia=>{const Us=Vn.clone(Ia,!1);return kt(Us),Vn.replace(Us,Bi,!0),Vn.remove(Ia,!0),Us}).getOr(Bi),bi=eo(lo);if((pr.length>1||!Vn.isBlock(lo))&&bi===0){Vn.remove(lo,!0);return}(Ef(be)||hv(be)&&be.wrapper)&&(!be.exact&&bi===1&&(lo=xo(lo)),OY(r,re,B,lo),nC(r,be,g,B,lo),Uz(Vn,be,B,lo),_Y(Vn,be,B,lo),wY(Vn,be,B,lo),Iz(r,be,B,lo))})},kn=b2(H)?H:ct.getNode();if(Ke.getContentEditable(kn)==="false"&&!r5(r,kn)){H=kn,Wt(re,H),Um(r,g,H,B);return}if(be){if(H)if(b2(H)){if(!Wt(re,H)){const Vn=Ke.createRng();Vn.setStartBefore(H),Vn.setEndAfter(H),ln(Ke,Oy(Ke,Vn,re),!0)}}else ln(Ke,H,!0);else!Re||!Ef(be)||g2(r).length?(ct.setRng(Wl(ct.getRng())),K0(r,()=>{y2(r,(Vn,Rn)=>{const qn=Rn?Vn:Oy(Ke,Vn,re);ln(Ke,qn,!1)})},q),r.nodeChanged()):Tz(r,g,B),Rz(r.formatter,g).each(Vn=>{ye(C7(r.selection),Rn=>jz(Ke,Rn,Vn,B))});Wue(g,r)}Um(r,g,H,B)},$7=(r,g,B,H)=>{(H||r.selection.isEditable())&&SY(r,g,B,H)},rC=r=>_t(r,"vars"),Qz=(r,g)=>{r.set({}),g.on("NodeChange",B=>{V5(g,B.element,r.get())}),g.on("FormatApply FormatRemove",B=>{const H=Y.from(B.node).map(re=>b2(re)?re:re.startContainer).bind(re=>ne(re)?Y.some(re):Y.from(re.parentElement)).getOrThunk(()=>Hz(g));V5(g,H,r.get())})},Hz=r=>r.selection.getStart(),Zz=(r,g,B,H,re)=>ze(g,Ke=>{const ct=r.formatter.matchNode(Ke,B,re??{},H);return!M(ct)},Ke=>y7(r,Ke,B)?!0:H?!1:E(r.formatter.matchNode(Ke,B,re,!0))),qz=(r,g)=>{const B=g??Hz(r);return Te(x2(r.dom,B),H=>ne(H)&&!dt(H))},V5=(r,g,B)=>{const H=qz(r,g);Ge(B,(re,be)=>{const Re=Ke=>{const ct=Zz(r,H,be,Ke.similar,rC(Ke)?Ke.vars:void 0),kt=ct.isSome();if(Ke.state.get()!==kt){Ke.state.set(kt);const Wt=ct.getOr(g);rC(Ke)?Ke.callback(kt,{node:Wt,format:be,parents:H}):ye(Ke.callbacks,Jt=>Jt(kt,{node:Wt,format:be,parents:H}))}};ye([re.withSimilar,re.withoutSimilar],Re),ye(re.withVars,Re)})},ex=(r,g,B,H,re,be)=>{const Re=g.get();ye(B.split(","),Ke=>{const ct=Ct(Re,Ke).getOrThunk(()=>{const Wt={withSimilar:{state:mr(!1),similar:!0,callbacks:[]},withoutSimilar:{state:mr(!1),similar:!1,callbacks:[]},withVars:[]};return Re[Ke]=Wt,Wt}),kt=()=>{const Wt=qz(r);return Zz(r,Wt,Ke,re,be).isSome()};if(M(be)){const Wt=re?ct.withSimilar:ct.withoutSimilar;Wt.callbacks.push(H),Wt.callbacks.length===1&&Wt.state.set(kt())}else ct.withVars.push({state:mr(kt()),similar:re,vars:be,callback:H})}),g.set(Re)},kY=(r,g,B)=>{const H=r.get();ye(g.split(","),re=>Ct(H,re).each(be=>{H[re]={withSimilar:{...be.withSimilar,callbacks:Te(be.withSimilar.callbacks,Re=>Re!==B)},withoutSimilar:{...be.withoutSimilar,callbacks:Te(be.withoutSimilar.callbacks,Re=>Re!==B)},withVars:Te(be.withVars,Re=>Re.callback!==B)}})),r.set(H)},V7=(r,g,B,H,re,be)=>(ex(r,g,B,H,re,be),{unbind:()=>kY(g,B,H)}),Fu=(r,g,B,H)=>{const re=r.formatter.get(g);re&&(b7(r,g,B,H)&&(!("toggle"in re[0])||re[0].toggle)?z7(r,g,B,H):$7(r,g,B,H))},oC=mo.explode,iC=()=>{const r={};return{addFilter:(re,be)=>{ye(oC(re),Re=>{_t(r,Re)||(r[Re]={name:Re,callbacks:[]}),r[Re].callbacks.push(be)})},getFilters:()=>Gt(r),removeFilter:(re,be)=>{ye(oC(re),Re=>{if(_t(r,Re))if(E(be)){const Ke=r[Re],ct=Te(Ke.callbacks,kt=>kt!==be);ct.length>0?Ke.callbacks=ct:delete r[Re]}else delete r[Re]})}}},tx=(r,g)=>{ye(g,B=>{r.attr(B,null)})},Wz=(r,g,B)=>{r.addNodeFilter("font",H=>{ye(H,re=>{const be=g.parse(re.attr("style")),Re=re.attr("color"),Ke=re.attr("face"),ct=re.attr("size");Re&&(be.color=Re),Ke&&(be["font-family"]=Ke),ct&&zr(ct).each(kt=>{be["font-size"]=B[kt-1]}),re.name="span",re.attr("style",g.serialize(be)),tx(re,["color","face","size"])})})},Yz=(r,g,B)=>{r.addNodeFilter("strike",H=>{const re=g.type!=="html4";ye(H,be=>{if(re)be.name="s";else{const Re=B.parse(be.attr("style"));Re["text-decoration"]="line-through",be.name="span",be.attr("style",B.serialize(Re))}})})},U5=(r,g,B)=>{var H;const re=I_();g.convert_fonts_to_spans&&Wz(r,re,mo.explode((H=g.font_size_legacy_values)!==null&&H!==void 0?H:"")),Yz(r,B,re)},TY=(r,g,B)=>{g.inline_styles&&U5(r,g,B)},CY=r=>fetch(r).then(g=>g.ok?g.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${r} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),G3=r=>{const g=/([a-z0-9+\/=\s]+)/i.exec(r);return g?g[1]:""},U7=r=>{const[g,...B]=r.split(","),H=B.join(","),re=/data:([^/]+\/[^;]+)(;.+)?/.exec(g);if(re){const be=re[2]===";base64",Re=be?G3(H):decodeURIComponent(H);return Y.some({type:re[1],data:Re,base64Encoded:be})}else return Y.none()},P2=(r,g,B=!0)=>{let H=g;if(B)try{H=atob(g)}catch{return Y.none()}const re=new Uint8Array(H.length);for(let be=0;benew Promise((g,B)=>{U7(r).bind(({type:H,data:re,base64Encoded:be})=>P2(H,re,be)).fold(()=>B("Invalid data URI"),g)}),R2=r=>xr(r,"blob:")?CY(r):xr(r,"data:")?AY(r):Promise.reject("Unknown URI format"),Xz=r=>new Promise((g,B)=>{const H=new FileReader;H.onloadend=()=>{g(H.result)},H.onerror=()=>{var re;B((re=H.error)===null||re===void 0?void 0:re.message)},H.readAsDataURL(r)});let d0=0;const j5=r=>(r||"blobid")+d0++,aC=(r,g,B)=>U7(r).bind(({data:H,type:re,base64Encoded:be})=>{if(g&&!be)return Y.none();{const Re=be?H:btoa(H);return B(Re,re)}}),sC=(r,g,B)=>{const H=r.create(j5(),g,B);return r.add(H),H},Gz=(r,g,B=!1)=>aC(g,B,(H,re)=>Y.from(r.getByData(H,re)).orThunk(()=>P2(re,H).map(be=>sC(r,be,H)))),lC=(r,g)=>{const B=()=>Promise.reject("Invalid data URI");if(xr(g,"blob:")){const H=r.getByUri(g);return E(H)?Promise.resolve(H):R2(g).then(re=>Xz(re).then(be=>aC(be,!1,Re=>Y.some(sC(r,re,Re))).getOrThunk(B)))}else return xr(g,"data:")?Gz(r,g).fold(B,H=>Promise.resolve(H)):Promise.reject("Unknown image data format")},MY=/^(?:(?:(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)([A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*))(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?)$/,o1=r=>Y.from(r.match(MY)).bind(g=>Ze(g,1)).map(g=>xr(g,"www.")?g.substring(4):g),Q5=(r,g)=>{Y.from(r.attr("src")).bind(o1).forall(B=>!ce(g,B))&&r.attr("sandbox","")},cC=(r,g)=>xr(r,`${g}/`),j7=r=>M(r)?"iframe":cC(r,"image")?"img":cC(r,"video")?"video":cC(r,"audio")?"audio":"iframe",Q7=({type:r,src:g,width:B,height:H}={},re,be)=>{const Re=j7(r),Ke=new yp(Re,1);return Ke.attr(Re==="audio"?{src:g}:{src:g,width:B,height:H}),(Re==="audio"||Re==="video")&&Ke.attr("controls",""),Re==="iframe"&&re&&Q5(Ke,be),Ke},$w=r=>E(r.attr("data-mce-bogus")),H7=r=>r.attr("src")===fr.transparentSrc||E(r.attr("data-mce-placeholder")),EY=(r,g)=>{const{blob_cache:B}=g;if(B){const H=re=>{const be=re.attr("src");H7(re)||$w(re)||T(be)||Gz(B,be,!0).each(Re=>{re.attr("src",Re.blobUri())})};r.addAttributeFilter("src",re=>ye(re,H))}},Kz=(r,g)=>{var B,H;const re=r.schema;r.addAttributeFilter("href",ct=>{let kt=ct.length;const Wt=ln=>ln.split(" ").filter(Vn=>Vn.length>0).concat(["noopener"]).sort().join(" "),Jt=ln=>{const kn=ln?mo.trim(ln):"";return/\b(noopener)\b/g.test(kn)?kn:Wt(kn)};if(!g.allow_unsafe_link_target)for(;kt--;){const ln=ct[kt];ln.name==="a"&&ln.attr("target")==="_blank"&&ln.attr("rel",Jt(ln.attr("rel")))}}),g.allow_html_in_named_anchor||r.addAttributeFilter("id,name",ct=>{let kt=ct.length,Wt,Jt,ln,kn;for(;kt--;)if(kn=ct[kt],kn.name==="a"&&kn.firstChild&&!kn.attr("href"))for(ln=kn.parent,Wt=kn.lastChild;Wt&&ln;)Jt=Wt.prev,ln.insert(Wt,kn),Wt=Jt}),g.fix_list_elements&&r.addNodeFilter("ul,ol",ct=>{let kt=ct.length,Wt,Jt;for(;kt--;)if(Wt=ct[kt],Jt=Wt.parent,Jt&&(Jt.name==="ul"||Jt.name==="ol"))if(Wt.prev&&Wt.prev.name==="li")Wt.prev.append(Wt);else{const ln=new yp("li",1);ln.attr("style","list-style-type: none"),Wt.wrap(ln)}});const be=re.getValidClasses();g.validate&&be&&r.addAttributeFilter("class",ct=>{var kt;let Wt=ct.length;for(;Wt--;){const Jt=ct[Wt],ln=(kt=Jt.attr("class"))!==null&&kt!==void 0?kt:"",kn=mo.explode(ln," ");let Vn="";for(let Rn=0;Rnye(ct,kt=>{kt.replace(Q7({type:kt.attr("type"),src:kt.name==="object"?kt.attr("data"):kt.attr("src"),width:kt.attr("width"),height:kt.attr("height")},Re,Ke))})),Re&&r.addNodeFilter("iframe",ct=>ye(ct,kt=>Q5(kt,Ke)))},{entries:Jz,setPrototypeOf:eF,isFrozen:PY,getPrototypeOf:RY,getOwnPropertyDescriptor:H5}=Object;let{freeze:qm,seal:i1,create:Z7}=Object,{apply:q7,construct:uC}=typeof Reflect<"u"&&Reflect;q7||(q7=function(g,B,H){return g.apply(B,H)}),qm||(qm=function(g){return g}),i1||(i1=function(g){return g}),uC||(uC=function(g,B){return new g(...B)});const tF=a1(Array.prototype.forEach),LY=a1(Array.prototype.pop),Z5=a1(Array.prototype.push),fC=a1(String.prototype.toLowerCase),W7=a1(String.prototype.toString),IY=a1(String.prototype.match),bv=a1(String.prototype.replace),DY=a1(String.prototype.indexOf),BY=a1(String.prototype.trim),h0=a1(RegExp.prototype.test),q5=zY(TypeError);function a1(r){return function(g){for(var B=arguments.length,H=new Array(B>1?B-1:0),re=1;re/gm),VY=i1(/\${[\w\W]*}/gm),UY=i1(/^data-[\-\w.\u00B7-\uFFFF]/),jY=i1(/^aria-[\-\w]+$/),pC=i1(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aF=i1(/^(?:\w+script|data):/i),Xue=i1(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K3=i1(/^html$/i);var sF=Object.freeze({__proto__:null,MUSTACHE_EXPR:NY,ERB_EXPR:$Y,TMPLIT_EXPR:VY,DATA_ATTR:UY,ARIA_ATTR:jY,IS_ALLOWED_URI:pC,IS_SCRIPT_OR_DATA:aF,ATTR_WHITESPACE:Xue,DOCTYPE_NAME:K3});const lF=()=>typeof window>"u"?null:window,QY=function(g,B){if(typeof g!="object"||typeof g.createPolicy!="function")return null;let H=null;const re="data-tt-policy-suffix";B&&B.hasAttribute(re)&&(H=B.getAttribute(re));const be="dompurify"+(H?"#"+H:"");try{return g.createPolicy(be,{createHTML(Re){return Re},createScriptURL(Re){return Re}})}catch{return console.warn("TrustedTypes policy "+be+" could not be created."),null}};function W5(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lF();const g=Ga=>W5(Ga);if(g.version="3.0.5",g.removed=[],!r||!r.document||r.document.nodeType!==9)return g.isSupported=!1,g;const B=r.document,H=B.currentScript;let{document:re}=r;const{DocumentFragment:be,HTMLTemplateElement:Re,Node:Ke,Element:ct,NodeFilter:kt,NamedNodeMap:Wt=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:Jt,DOMParser:ln,trustedTypes:kn}=r,Vn=ct.prototype,Rn=dC(Vn,"cloneNode"),qn=dC(Vn,"nextSibling"),pr=dC(Vn,"childNodes"),Tr=dC(Vn,"parentNode");if(typeof Re=="function"){const Ga=re.createElement("template");Ga.content&&Ga.content.ownerDocument&&(re=Ga.content.ownerDocument)}let wr,Ur="";const{implementation:wo,createNodeIterator:jo,createDocumentFragment:di,getElementsByTagName:lo}=re,{importNode:eo}=B;let xo={};g.isSupported=typeof Jz=="function"&&typeof Tr=="function"&&wo&&wo.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:bi,ERB_EXPR:Bi,TMPLIT_EXPR:$a,DATA_ATTR:Ia,ARIA_ATTR:Us,IS_SCRIPT_OR_DATA:sl,ATTR_WHITESPACE:nu}=sF;let{IS_ALLOWED_URI:jd}=sF,vl=null;const Wo=Tl({},[...Uw,...Y7,...X7,...G7,...rF]);let Ei=null;const ws=Tl({},[...oF,...K7,...iF,...hC]);let ii=Object.seal(Object.create(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}})),Qi=null,Qa=null,ci=!0,Va=!0,Xa=!1,Df=!0,el=!1,Yu=!1,Rg=!1,m1=!1,Dh=!1,om=!1,Lg=!1,xp=!0,Ig=!1;const zi="user-content-";let ss=!0,Rc=!1,cu={},Nu=null;const nd=Tl({},["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"]);let Ou=null;const Su=Tl({},["audio","video","img","source","image","track"]);let fh=null;const Dg=Tl({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xm="http://www.w3.org/1998/Math/MathML",x0="http://www.w3.org/2000/svg",Bg="http://www.w3.org/1999/xhtml";let fx=Bg,Z2=!1,hO=null;const _A=Tl({},[Xm,x0,Bg],W7);let dx;const Vk=["application/xhtml+xml","text/html"],lQ="text/html";let Bh,pO=null;const OL=re.createElement("form"),SL=function(no){return no instanceof RegExp||no instanceof Function},Cv=function(no){if(!(pO&&pO===no)){if((!no||typeof no!="object")&&(no={}),no=Vw(no),dx=Vk.indexOf(no.PARSER_MEDIA_TYPE)===-1?dx=lQ:dx=no.PARSER_MEDIA_TYPE,Bh=dx==="application/xhtml+xml"?W7:fC,vl="ALLOWED_TAGS"in no?Tl({},no.ALLOWED_TAGS,Bh):Wo,Ei="ALLOWED_ATTR"in no?Tl({},no.ALLOWED_ATTR,Bh):ws,hO="ALLOWED_NAMESPACES"in no?Tl({},no.ALLOWED_NAMESPACES,W7):_A,fh="ADD_URI_SAFE_ATTR"in no?Tl(Vw(Dg),no.ADD_URI_SAFE_ATTR,Bh):Dg,Ou="ADD_DATA_URI_TAGS"in no?Tl(Vw(Su),no.ADD_DATA_URI_TAGS,Bh):Su,Nu="FORBID_CONTENTS"in no?Tl({},no.FORBID_CONTENTS,Bh):nd,Qi="FORBID_TAGS"in no?Tl({},no.FORBID_TAGS,Bh):{},Qa="FORBID_ATTR"in no?Tl({},no.FORBID_ATTR,Bh):{},cu="USE_PROFILES"in no?no.USE_PROFILES:!1,ci=no.ALLOW_ARIA_ATTR!==!1,Va=no.ALLOW_DATA_ATTR!==!1,Xa=no.ALLOW_UNKNOWN_PROTOCOLS||!1,Df=no.ALLOW_SELF_CLOSE_IN_ATTR!==!1,el=no.SAFE_FOR_TEMPLATES||!1,Yu=no.WHOLE_DOCUMENT||!1,Dh=no.RETURN_DOM||!1,om=no.RETURN_DOM_FRAGMENT||!1,Lg=no.RETURN_TRUSTED_TYPE||!1,m1=no.FORCE_BODY||!1,xp=no.SANITIZE_DOM!==!1,Ig=no.SANITIZE_NAMED_PROPS||!1,ss=no.KEEP_CONTENT!==!1,Rc=no.IN_PLACE||!1,jd=no.ALLOWED_URI_REGEXP||pC,fx=no.NAMESPACE||Bg,ii=no.CUSTOM_ELEMENT_HANDLING||{},no.CUSTOM_ELEMENT_HANDLING&&SL(no.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ii.tagNameCheck=no.CUSTOM_ELEMENT_HANDLING.tagNameCheck),no.CUSTOM_ELEMENT_HANDLING&&SL(no.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ii.attributeNameCheck=no.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),no.CUSTOM_ELEMENT_HANDLING&&typeof no.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ii.allowCustomizedBuiltInElements=no.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),el&&(Va=!1),om&&(Dh=!0),cu&&(vl=Tl({},[...rF]),Ei=[],cu.html===!0&&(Tl(vl,Uw),Tl(Ei,oF)),cu.svg===!0&&(Tl(vl,Y7),Tl(Ei,K7),Tl(Ei,hC)),cu.svgFilters===!0&&(Tl(vl,X7),Tl(Ei,K7),Tl(Ei,hC)),cu.mathMl===!0&&(Tl(vl,G7),Tl(Ei,iF),Tl(Ei,hC))),no.ADD_TAGS&&(vl===Wo&&(vl=Vw(vl)),Tl(vl,no.ADD_TAGS,Bh)),no.ADD_ATTR&&(Ei===ws&&(Ei=Vw(Ei)),Tl(Ei,no.ADD_ATTR,Bh)),no.ADD_URI_SAFE_ATTR&&Tl(fh,no.ADD_URI_SAFE_ATTR,Bh),no.FORBID_CONTENTS&&(Nu===nd&&(Nu=Vw(Nu)),Tl(Nu,no.FORBID_CONTENTS,Bh)),ss&&(vl["#text"]=!0),Yu&&Tl(vl,["html","head","body"]),vl.table&&(Tl(vl,["tbody"]),delete Qi.tbody),no.TRUSTED_TYPES_POLICY){if(typeof no.TRUSTED_TYPES_POLICY.createHTML!="function")throw q5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof no.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw q5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');wr=no.TRUSTED_TYPES_POLICY,Ur=wr.createHTML("")}else wr===void 0&&(wr=QY(kn,H)),wr!==null&&typeof Ur=="string"&&(Ur=wr.createHTML(""));qm&&qm(no),pO=no}},q2=Tl({},["mi","mo","mn","ms","mtext"]),Yr=Tl({},["foreignobject","desc","title","annotation-xml"]),Gr=Tl({},["title","style","font","a","script"]),Xo=Tl({},Y7);Tl(Xo,X7),Tl(Xo,FY);const Vo=Tl({},G7);Tl(Vo,nF);const Gi=function(no){let s=Tr(no);(!s||!s.tagName)&&(s={namespaceURI:fx,tagName:"template"});const F=fC(no.tagName),Z=fC(s.tagName);return hO[no.namespaceURI]?no.namespaceURI===x0?s.namespaceURI===Bg?F==="svg":s.namespaceURI===Xm?F==="svg"&&(Z==="annotation-xml"||q2[Z]):!!Xo[F]:no.namespaceURI===Xm?s.namespaceURI===Bg?F==="math":s.namespaceURI===x0?F==="math"&&Yr[Z]:!!Vo[F]:no.namespaceURI===Bg?s.namespaceURI===x0&&!Yr[Z]||s.namespaceURI===Xm&&!q2[Z]?!1:!Vo[F]&&(Gr[F]||!Xo[F]):!!(dx==="application/xhtml+xml"&&hO[no.namespaceURI]):!1},ts=function(no){Z5(g.removed,{element:no});try{no.parentNode.removeChild(no)}catch{no.remove()}},Lc=function(no,s){try{Z5(g.removed,{attribute:s.getAttributeNode(no),from:s})}catch{Z5(g.removed,{attribute:null,from:s})}if(s.removeAttribute(no),no==="is"&&!Ei[no])if(Dh||om)try{ts(s)}catch{}else try{s.setAttribute(no,"")}catch{}},_0=function(no){let s,F;if(m1)no=""+no;else{const we=IY(no,/^[\r\n\t ]+/);F=we&&we[0]}dx==="application/xhtml+xml"&&fx===Bg&&(no=''+no+"");const Z=wr?wr.createHTML(no):no;if(fx===Bg)try{s=new ln().parseFromString(Z,dx)}catch{}if(!s||!s.documentElement){s=wo.createDocument(fx,"template",null);try{s.documentElement.innerHTML=Z2?Ur:Z}catch{}}const ue=s.body||s.documentElement;return no&&F&&ue.insertBefore(re.createTextNode(F),ue.childNodes[0]||null),fx===Bg?lo.call(s,Yu?"html":"body")[0]:Yu?s.documentElement:ue},wA=function(no){return jo.call(no.ownerDocument||no,no,kt.SHOW_ELEMENT|kt.SHOW_COMMENT|kt.SHOW_TEXT,null,!1)},Noe=function(no){return no instanceof Jt&&(typeof no.nodeName!="string"||typeof no.textContent!="string"||typeof no.removeChild!="function"||!(no.attributes instanceof Wt)||typeof no.removeAttribute!="function"||typeof no.setAttribute!="function"||typeof no.namespaceURI!="string"||typeof no.insertBefore!="function"||typeof no.hasChildNodes!="function")},OA=function(no){return typeof Ke=="object"?no instanceof Ke:no&&typeof no=="object"&&typeof no.nodeType=="number"&&typeof no.nodeName=="string"},hx=function(no,s,F){xo[no]&&tF(xo[no],Z=>{Z.call(g,s,F,pO)})},cQ=function(no){let s;if(hx("beforeSanitizeElements",no,null),Noe(no))return ts(no),!0;const F=Bh(no.nodeName);if(hx("uponSanitizeElement",no,{tagName:F,allowedTags:vl}),no.hasChildNodes()&&!OA(no.firstElementChild)&&(!OA(no.content)||!OA(no.content.firstElementChild))&&h0(/<[/\w]/g,no.innerHTML)&&h0(/<[/\w]/g,no.textContent))return ts(no),!0;if(!vl[F]||Qi[F]){if(!Qi[F]&&TL(F)&&(ii.tagNameCheck instanceof RegExp&&h0(ii.tagNameCheck,F)||ii.tagNameCheck instanceof Function&&ii.tagNameCheck(F)))return!1;if(ss&&!Nu[F]){const Z=Tr(no)||no.parentNode,ue=pr(no)||no.childNodes;if(ue&&Z){const we=ue.length;for(let Be=we-1;Be>=0;--Be)Z.insertBefore(Rn(ue[Be],!0),qn(no))}}return ts(no),!0}return no instanceof ct&&!Gi(no)||(F==="noscript"||F==="noembed"||F==="noframes")&&h0(/<\/no(script|embed|frames)/i,no.innerHTML)?(ts(no),!0):(el&&no.nodeType===3&&(s=no.textContent,s=bv(s,bi," "),s=bv(s,Bi," "),s=bv(s,$a," "),no.textContent!==s&&(Z5(g.removed,{element:no.cloneNode()}),no.textContent=s)),hx("afterSanitizeElements",no,null),!1)},kL=function(no,s,F){if(xp&&(s==="id"||s==="name")&&(F in re||F in OL))return!1;if(!(Va&&!Qa[s]&&h0(Ia,s))){if(!(ci&&h0(Us,s))){if(!Ei[s]||Qa[s]){if(!(TL(no)&&(ii.tagNameCheck instanceof RegExp&&h0(ii.tagNameCheck,no)||ii.tagNameCheck instanceof Function&&ii.tagNameCheck(no))&&(ii.attributeNameCheck instanceof RegExp&&h0(ii.attributeNameCheck,s)||ii.attributeNameCheck instanceof Function&&ii.attributeNameCheck(s))||s==="is"&&ii.allowCustomizedBuiltInElements&&(ii.tagNameCheck instanceof RegExp&&h0(ii.tagNameCheck,F)||ii.tagNameCheck instanceof Function&&ii.tagNameCheck(F))))return!1}else if(!fh[s]){if(!h0(jd,bv(F,nu,""))){if(!((s==="src"||s==="xlink:href"||s==="href")&&no!=="script"&&DY(F,"data:")===0&&Ou[no])){if(!(Xa&&!h0(sl,bv(F,nu,"")))){if(F)return!1}}}}}}return!0},TL=function(no){return no.indexOf("-")>0},uQ=function(no){let s,F,Z,ue;hx("beforeSanitizeAttributes",no,null);const{attributes:we}=no;if(!we)return;const Be={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ei};for(ue=we.length;ue--;){s=we[ue];const{name:qe,namespaceURI:ft}=s;F=qe==="value"?s.value:BY(s.value);const gt=F;if(Z=Bh(qe),Be.attrName=Z,Be.attrValue=F,Be.keepAttr=!0,Be.forceKeepAttr=void 0,hx("uponSanitizeAttribute",no,Be),F=Be.attrValue,Be.forceKeepAttr)continue;if(!Be.keepAttr){Lc(qe,no);continue}if(!Df&&h0(/\/>/i,F)){Lc(qe,no);continue}el&&(F=bv(F,bi," "),F=bv(F,Bi," "),F=bv(F,$a," "));const At=Bh(no.nodeName);if(!kL(At,Z,F)){Lc(qe,no);continue}if(Ig&&(Z==="id"||Z==="name")&&(Lc(qe,no),F=zi+F),wr&&typeof kn=="object"&&typeof kn.getAttributeType=="function"&&!ft)switch(kn.getAttributeType(At,Z)){case"TrustedHTML":{F=wr.createHTML(F);break}case"TrustedScriptURL":{F=wr.createScriptURL(F);break}}if(F!==gt)try{ft?no.setAttributeNS(ft,qe,F):no.setAttribute(qe,F)}catch{Lc(qe,no)}}hx("afterSanitizeAttributes",no,null)},$oe=function Ga(no){let s;const F=wA(no);for(hx("beforeSanitizeShadowDOM",no,null);s=F.nextNode();)hx("uponSanitizeShadowNode",s,null),!cQ(s)&&(s.content instanceof be&&Ga(s.content),uQ(s));hx("afterSanitizeShadowDOM",no,null)};return g.sanitize=function(Ga){let no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,F,Z,ue;if(Z2=!Ga,Z2&&(Ga=""),typeof Ga!="string"&&!OA(Ga))if(typeof Ga.toString=="function"){if(Ga=Ga.toString(),typeof Ga!="string")throw q5("dirty is not a string, aborting")}else throw q5("toString is not a function");if(!g.isSupported)return Ga;if(Rg||Cv(no),g.removed=[],typeof Ga=="string"&&(Rc=!1),Rc){if(Ga.nodeName){const qe=Bh(Ga.nodeName);if(!vl[qe]||Qi[qe])throw q5("root node is forbidden and cannot be sanitized in-place")}}else if(Ga instanceof Ke)s=_0(""),F=s.ownerDocument.importNode(Ga,!0),F.nodeType===1&&F.nodeName==="BODY"||F.nodeName==="HTML"?s=F:s.appendChild(F);else{if(!Dh&&!el&&!Yu&&Ga.indexOf("<")===-1)return wr&&Lg?wr.createHTML(Ga):Ga;if(s=_0(Ga),!s)return Dh?null:Lg?Ur:""}s&&m1&&ts(s.firstChild);const we=wA(Rc?Ga:s);for(;Z=we.nextNode();)cQ(Z)||(Z.content instanceof be&&$oe(Z.content),uQ(Z));if(Rc)return Ga;if(Dh){if(om)for(ue=di.call(s.ownerDocument);s.firstChild;)ue.appendChild(s.firstChild);else ue=s;return(Ei.shadowroot||Ei.shadowrootmode)&&(ue=eo.call(B,ue,!0)),ue}let Be=Yu?s.outerHTML:s.innerHTML;return Yu&&vl["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&h0(K3,s.ownerDocument.doctype.name)&&(Be=" +`+Be),el&&(Be=bv(Be,bi," "),Be=bv(Be,Bi," "),Be=bv(Be,$a," ")),wr&&Lg?wr.createHTML(Be):Be},g.setConfig=function(Ga){Cv(Ga),Rg=!0},g.clearConfig=function(){pO=null,Rg=!1},g.isValidAttribute=function(Ga,no,s){pO||Cv({});const F=Bh(Ga),Z=Bh(no);return kL(F,Z,s)},g.addHook=function(Ga,no){typeof no=="function"&&(xo[Ga]=xo[Ga]||[],Z5(xo[Ga],no))},g.removeHook=function(Ga){if(xo[Ga])return LY(xo[Ga])},g.removeHooks=function(Ga){xo[Ga]&&(xo[Ga]=[])},g.removeAllHooks=function(){xo={}},g}var mC=W5();const df=mo.each,Gue=mo.trim,Kue=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],Jue={ftp:21,http:80,https:443,mailto:25},efe=["img","video"],s1=(r,g)=>E(r)?!r:E(g)?!ce(efe,g):!0,gC=r=>{try{return decodeURIComponent(r)}catch{return unescape(r)}},nx=(r,g,B)=>{const H=gC(g).replace(/\s/g,"");return r.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(H)?!0:r.allow_html_data_urls?!1:/^data:image\//i.test(H)?s1(r.allow_svg_data_urls,B)&&/^data:image\/svg\+xml/i.test(H):/^data:/i.test(H)};class Ih{static parseDataUri(g){let B;const H=decodeURIComponent(g).split(","),re=/data:([^;]+)/.exec(H[0]);return re&&(B=re[1]),{type:B,data:H[1]}}static isDomSafe(g,B,H={}){if(H.allow_script_urls)return!0;{const re=up.decode(g).replace(/[\s\u0000-\u001F]+/g,"");return!nx(H,re,B)}}static getDocumentBaseUrl(g){var B;let H;return g.protocol.indexOf("http")!==0&&g.protocol!=="file:"?H=(B=g.href)!==null&&B!==void 0?B:"":H=g.protocol+"//"+g.host+g.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/")),H}constructor(g,B={}){this.path="",this.directory="",g=Gue(g),this.settings=B;const H=B.base_uri,re=this;if(/^([\w\-]+):([^\/]{2})/i.test(g)||/^\s*#/.test(g)){re.source=g;return}const be=g.indexOf("//")===0;if(g.indexOf("/")===0&&!be&&(g=(H&&H.protocol||"http")+"://mce_host"+g),!/^[\w\-]*:?\/\//.test(g)){const Ke=H?H.path:new Ih(document.location.href).directory;if((H==null?void 0:H.protocol)==="")g="//mce_host"+re.toAbsPath(Ke,g);else{const ct=/([^#?]*)([#?]?.*)/.exec(g);ct&&(g=(H&&H.protocol||"http")+"://mce_host"+re.toAbsPath(Ke,ct[1])+ct[2])}}g=g.replace(/@@/g,"(mce_at)");const Re=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(g);Re&&df(Kue,(Ke,ct)=>{let kt=Re[ct];kt&&(kt=kt.replace(/\(mce_at\)/g,"@@")),re[Ke]=kt}),H&&(re.protocol||(re.protocol=H.protocol),re.userInfo||(re.userInfo=H.userInfo),!re.port&&re.host==="mce_host"&&(re.port=H.port),(!re.host||re.host==="mce_host")&&(re.host=H.host),re.source=""),be&&(re.protocol="")}setPath(g){const B=/^(.*?)\/?(\w+)?$/.exec(g);B&&(this.path=B[0],this.directory=B[1],this.file=B[2]),this.source="",this.getURI()}toRelative(g){if(g==="./")return g;const B=new Ih(g,{base_uri:this});if(B.host!=="mce_host"&&this.host!==B.host&&B.host||this.port!==B.port||this.protocol!==B.protocol&&B.protocol!=="")return B.getURI();const H=this.getURI(),re=B.getURI();if(H===re||H.charAt(H.length-1)==="/"&&H.substr(0,H.length-1)===re)return H;let be=this.toRelPath(this.path,B.path);return B.query&&(be+="?"+B.query),B.anchor&&(be+="#"+B.anchor),be}toAbsolute(g,B){const H=new Ih(g,{base_uri:this});return H.getURI(B&&this.isSameOrigin(H))}isSameOrigin(g){if(this.host==g.host&&this.protocol==g.protocol){if(this.port==g.port)return!0;const B=this.protocol?Jue[this.protocol]:null;if(B&&(this.port||B)==(g.port||B))return!0}return!1}toRelPath(g,B){let H=0,re="",be,Re;const Ke=g.substring(0,g.lastIndexOf("/")).split("/"),ct=B.split("/");if(Ke.length>=ct.length){for(be=0,Re=Ke.length;be=ct.length||Ke[be]!==ct[be]){H=be+1;break}}if(Ke.length=Ke.length||Ke[be]!==ct[be]){H=be+1;break}}if(H===1)return B;for(be=0,Re=Ke.length-(H-1);be{Jt&&Ke.push(Jt)});const ct=[];for(let Jt=Re.length-1;Jt>=0;Jt--)if(!(Re[Jt].length===0||Re[Jt]===".")){if(Re[Jt]===".."){H++;continue}if(H>0){H--;continue}ct.push(Re[Jt])}const kt=Ke.length-H;let Wt;return kt<=0?Wt=ke(ct).join("/"):Wt=Ke.slice(0,kt).join("/")+"/"+ke(ct).join("/"),Wt.indexOf("/")!==0&&(Wt="/"+Wt),re&&Wt.lastIndexOf("/")!==Wt.length-1&&(Wt+=re),Wt}getURI(g=!1){let B;return(!this.source||g)&&(B="",g||(this.protocol?B+=this.protocol+"://":B+="//",this.userInfo&&(B+=this.userInfo+"@"),this.host&&(B+=this.host),this.port&&(B+=":"+this.port)),this.path&&(B+=this.path),this.query&&(B+="?"+this.query),this.anchor&&(B+="#"+this.anchor),this.source=B),this.source}}const HY=mo.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),J7="data-mce-type";let jw=0;const Qw=(r,g,B,H,re)=>{var be,Re,Ke,ct;const kt=g.validate,Wt=B.getSpecialElements();r.nodeType===gm&&!g.allow_conditional_comments&&/^\[if/i.test((be=r.nodeValue)!==null&&be!==void 0?be:"")&&(r.nodeValue=" "+r.nodeValue);const Jt=(Re=re==null?void 0:re.tagName)!==null&&Re!==void 0?Re:r.nodeName.toLowerCase();if(H!=="html"&&B.isValid(H)){E(re)&&(re.allowedTags[Jt]=!0);return}if(r.nodeType!==Cu||Jt==="body")return;const ln=sr.fromDom(r),kn=Vf(ln,J7),Vn=uc(ln,"data-mce-bogus");if(!kn&&v(Vn)){Vn==="all"?ja(ln):yu(ln);return}const Rn=B.getElementRule(Jt);if(kt&&!Rn){_t(Wt,Jt)?ja(ln):yu(ln);return}else E(re)&&(re.allowedTags[Jt]=!0);if(kt&&Rn&&!kn){if(ye((Ke=Rn.attributesForced)!==null&&Ke!==void 0?Ke:[],qn=>{Es(ln,qn.name,qn.value==="{$uid}"?`mce_${jw++}`:qn.value)}),ye((ct=Rn.attributesDefault)!==null&&ct!==void 0?ct:[],qn=>{Vf(ln,qn.name)||Es(ln,qn.name,qn.value==="{$uid}"?`mce_${jw++}`:qn.value)}),Rn.attributesRequired&&!de(Rn.attributesRequired,qn=>Vf(ln,qn))){yu(ln);return}if(Rn.removeEmptyAttrs&&ld(ln)){yu(ln);return}Rn.outputName&&Rn.outputName!==Jt&&B1(ln,Rn.outputName)}},J3=(r,g,B,H,re)=>{const be=r.tagName.toLowerCase(),{attrName:Re,attrValue:Ke}=re;re.keepAttr=vC(g,B,H,be,Re,Ke),re.keepAttr?(re.allowedAttributes[Re]=!0,eP(Re,B)&&(re.attrValue=Re),g.allow_svg_data_urls&&xr(Ke,"data:image/svg+xml")&&(re.forceKeepAttr=!0)):yC(r,Re)&&(re.forceKeepAttr=!0)},vC=(r,g,B,H,re,be)=>B!=="html"&&!hs(H)?!0:!(re in HY&&nx(r,be,H))&&(!r.validate||g.isValid(H,re)||xr(re,"data-")||xr(re,"aria-")),yC=(r,g)=>r.hasAttribute(J7)&&(g==="id"||g==="class"||g==="style"),eP=(r,g)=>r in g.getBoolAttrs(),cF=(r,g,B,H)=>{const{attributes:re}=r;for(let be=re.length-1;be>=0;be--){const Re=re[be],Ke=Re.name,ct=Re.value;!vC(g,B,H,r.tagName.toLowerCase(),Ke,ct)&&!yC(r,Ke)?r.removeAttribute(Ke):eP(Ke,B)&&r.setAttribute(Ke,Ke)}},ZY=(r,g,B)=>{const H=mC();return H.addHook("uponSanitizeElement",(re,be)=>{Qw(re,r,g,B.track(re),be)}),H.addHook("uponSanitizeAttribute",(re,be)=>{J3(re,r,g,B.current(),be)}),H},qY=(r,g)=>{const H={...{IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]}};return H.PARSER_MEDIA_TYPE=g,r.allow_script_urls?H.ALLOWED_URI_REGEXP=/.*/:r.allow_html_data_urls&&(H.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),H},uF=r=>{const g=Rs(r);if(g==="svg"){const B=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(re=>`xlink:${re}`),H={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:B};mC().sanitize(r,H)}else if(g==="math"){const B={IN_PLACE:!0,USE_PROFILES:{mathMl:!0}};mC().sanitize(r,B)}else throw new Error("Not a namespace element")},WY=(r,g)=>{const B=ol();if(r.sanitize){const H=ZY(r,g,B);return{sanitizeHtmlElement:(be,Re)=>{H.sanitize(be,qY(r,Re)),H.removed=[],B.reset()},sanitizeNamespaceElement:uF}}else return{sanitizeHtmlElement:(be,Re)=>{const Ke=document.createNodeIterator(be,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let ct;for(;ct=Ke.nextNode();){const kt=B.track(ct);Qw(ct,r,g,kt),ne(ct)&&cF(ct,r,g,kt)}B.reset()},sanitizeNamespaceElement:k}},fF=mo.makeMap,dF=mo.extend,hF=(r,g,B,H)=>{const re=r.name,be=re in B&&re!=="title"&&re!=="textarea"&&re!=="noscript",Re=g.childNodes;for(let Ke=0,ct=Re.length;Ke{const H=[];for(let re=r,be=re;re;be=re,re=re.walk()){const Re=re;ye(g,Ke=>Ke(Re)),T(Re.parent)&&Re!==r?re=be:H.push(Re)}for(let re=H.length-1;re>=0;re--){const be=H[re];ye(B,Re=>Re(be))}},pF=(r,g,B,H)=>{const re=B.validate,be=g.getNonEmptyElements(),Re=g.getWhitespaceElements(),Ke=dF(fF("script,style,head,html,body,title,meta,param"),g.getBlockElements()),ct=hb(g),kt=/[ \t\r\n]+/g,Wt=/^[ \t\r\n]+/,Jt=/[ \t\r\n]+$/,ln=Tr=>{let wr=Tr.parent;for(;E(wr);){if(wr.name in Re)return!0;wr=wr.parent}return!1},kn=Tr=>{let wr=Tr;for(;E(wr);){if(wr.name in ct)return U6(g,be,Re,wr);wr=wr.parent}return!1},Vn=Tr=>Tr.name in Ke||eh(g,Tr)||hs(Tr.name)&&Tr.parent===r,Rn=(Tr,wr)=>{const Ur=wr?Tr.prev:Tr.next;return E(Ur)||T(Tr.parent)?!1:Vn(Tr.parent)&&(Tr.parent!==r||H.isRootContent===!0)};return[Tr=>{var wr;if(Tr.type===3&&!ln(Tr)){let Ur=(wr=Tr.value)!==null&&wr!==void 0?wr:"";Ur=Ur.replace(kt," "),(Vd(Tr.prev,Vn)||Rn(Tr,!0))&&(Ur=Ur.replace(Wt,"")),Ur.length===0?Tr.remove():Tr.value=Ur}},Tr=>{var wr;if(Tr.type===1){const Ur=g.getElementRule(Tr.name);if(re&&Ur){const wo=U6(g,be,Re,Tr);Ur.paddInEmptyBlock&&wo&&kn(Tr)?V6(B,H,Vn,Tr):Ur.removeEmpty&&wo?Vn(Tr)?Tr.remove():Tr.unwrap():Ur.paddEmpty&&(wo||HW(Tr))&&V6(B,H,Vn,Tr)}}else if(Tr.type===3&&!ln(Tr)){let Ur=(wr=Tr.value)!==null&&wr!==void 0?wr:"";(Tr.next&&Vn(Tr.next)||Rn(Tr,!1))&&(Ur=Ur.replace(Jt,"")),Ur.length===0?Tr.remove():Tr.value=Ur}}]},XY=(r,g)=>{var B;const H=(B=g.forced_root_block)!==null&&B!==void 0?B:r.forced_root_block;return H===!1?"":H===!0?"p":H},Ry=(r={},g=Np())=>{const B=iC(),H=iC(),re={validate:!0,root_name:"body",sanitize:!0,...r},be=new DOMParser,Re=WY(re,g),Ke=(wr,Ur,wo="html")=>{const jo=wo==="xhtml"?"application/xhtml+xml":"text/html",di=_t(g.getSpecialElements(),Ur.toLowerCase()),lo=di?`<${Ur}>${wr}`:wr,eo=wo==="xhtml"?`${lo}`:`${lo}`,xo=be.parseFromString(eo,jo).body;return Re.sanitizeHtmlElement(xo,jo),di?xo.firstChild:xo},ct=B.addFilter,kt=B.getFilters,Wt=B.removeFilter,Jt=H.addFilter,ln=H.getFilters,kn=H.removeFilter,Vn=(wr,Ur)=>{vz(g,wr)&&Ur.push(wr)},Rn=(wr,Ur)=>{const wo=v(Ur.attr(J7)),jo=Ur.type===1&&!_t(wr,Ur.name)&&!eh(g,Ur)&&!hs(Ur.name);return Ur.type===3||jo&&!wo},qn=(wr,Ur)=>{const wo=dF(fF("script,style,head,html,body,title,meta,param"),g.getBlockElements()),jo=/^[ \t\r\n]+/,di=/[ \t\r\n]+$/;let lo=wr.firstChild,eo=null;const xo=bi=>{var Bi,$a;bi&&(lo=bi.firstChild,lo&&lo.type===3&&(lo.value=(Bi=lo.value)===null||Bi===void 0?void 0:Bi.replace(jo,"")),lo=bi.lastChild,lo&&lo.type===3&&(lo.value=($a=lo.value)===null||$a===void 0?void 0:$a.replace(di,"")))};if(g.isValidChild(wr.name,Ur.toLowerCase())){for(;lo;){const bi=lo.next;Rn(wo,lo)?(eo||(eo=new yp(Ur,1),eo.attr(re.forced_root_block_attrs),wr.insert(eo,lo)),eo.append(lo)):(xo(eo),eo=null),lo=bi}xo(eo)}},Tr={schema:g,addAttributeFilter:Jt,getAttributeFilters:ln,removeAttributeFilter:kn,addNodeFilter:ct,getNodeFilters:kt,removeNodeFilter:Wt,parse:(wr,Ur={})=>{var wo;const jo=re.validate,di=(wo=Ur.context)!==null&&wo!==void 0?wo:re.root_name,lo=Ke(wr,di,Ur.format);qf(g,lo);const eo=new yp(di,11);hF(eo,lo,g.getSpecialElements(),Re.sanitizeNamespaceElement),lo.innerHTML="";const[xo,bi]=pF(eo,g,re,Ur),Bi=[],$a=jo?nu=>Vn(nu,Bi):k,Ia={nodes:{},attributes:{}},Us=nu=>l7(kt(),ln(),nu,Ia);if(YY(eo,[xo,Us],[bi,$a]),Bi.reverse(),jo&&Bi.length>0)if(Ur.context){const{pass:nu,fail:jd}=Se(Bi,vl=>vl.parent===eo);gv(jd,g,eo,Us),Ur.invalid=nu.length>0}else gv(Bi,g,eo,Us);const sl=XY(re,Ur);return sl&&(eo.name==="body"||Ur.isRootContent)&&qn(eo,sl),Ur.invalid||gz(Ia,Ur),eo}};return Kz(Tr,re),TY(Tr,re,g),Tr},mF=r=>Ks(r)?Yb({validate:!1}).serialize(r):r,gF=(r,g,B)=>{const H=mF(r),re=g(H);if(re.isDefaultPrevented())return re;if(Ks(r))if(re.content!==H){const be=Ry({validate:!1,forced_root_block:!1,...B}).parse(re.content,{context:r.name});return{...re,content:be}}else return{...re,content:r};else return re},tP=r=>({sanitize:Lb(r),sandbox_iframes:o2(r),sandbox_iframes_exclusions:i2(r)}),vF=(r,g)=>{if(g.no_events)return gs.value(g);{const B=o6(r,g);return B.isDefaultPrevented()?gs.error(i5(r,{content:"",...B}).content):gs.value(B)}},nP=(r,g,B)=>B.no_events?g:gF(g,re=>i5(r,{...B,content:re}),tP(r)).content,rP=(r,g)=>{if(g.no_events)return gs.value(g);{const B=gF(g.content,H=>R3(r,{...g,content:H}),tP(r));return B.isDefaultPrevented()?(L3(r,B),gs.error(void 0)):gs.value(B)}},oP=(r,g,B)=>{B.no_events||L3(r,{...B,content:g})},bC=(r,g,B)=>({element:r,width:g,rows:B}),iP=(r,g)=>({element:r,cells:g}),yF=(r,g)=>({x:r,y:g}),aP=(r,g)=>sd(r,g).bind(zr).getOr(1),bF=(r,g,B,H,re)=>{const be=aP(re,"rowspan"),Re=aP(re,"colspan"),Ke=r.rows;for(let ct=B;ct{const H=r.rows;return!!(H[B]?H[B].cells:[])[g]},GY=(r,g,B)=>{for(;xF(r,g,B);)g++;return g},_F=r=>Ie(r,(g,B)=>B.cells.length>g?B.cells.length:g,0),wF=(r,g)=>{const B=r.rows;for(let H=0;H{const be=[],Re=r.rows;for(let Ke=B;Ke<=re;Ke++){const ct=Re[Ke].cells,kt=g{const H=g.x,re=g.y,be=B.x,Re=B.y,Ke=re{const B=Th(r.element),H=sr.fromTag("tbody");return gu(H,g),Ps(B,H),B},SF=r=>ve(r.rows,g=>{const B=ve(g.cells,re=>{const be=Kf(re);return gc(be,"colspan"),gc(be,"rowspan"),be}),H=Th(g.element);return gu(H,B),H}),_C=r=>{const g=bC(Th(r),0,[]);return ye(Zl(r,"tr"),(B,H)=>{ye(Zl(B,"td,th"),(re,be)=>{bF(g,GY(g,be,H),H,B,re)})}),bC(g.element,_F(g.rows),g.rows)},KY=r=>OF(r,SF(r)),JY=(r,g,B)=>wF(r,g).bind(H=>wF(r,B).map(re=>Y5(r,H,re))),Hw=r=>De(r,g=>la(g)==="ul"||la(g)==="ol"),sP=(r,g)=>De(r,B=>la(B)==="li"&&x3(B,g)).fold($([]),B=>Hw(r).map(H=>{const re=sr.fromTag(la(H)),be=qt(vc(H),(Re,Ke)=>xr(Ke,"list-style"));return Hi(re,be),[sr.fromTag("li"),re]}).getOr([])),kF=(r,g)=>{const B=Ie(g,(H,re)=>(Ps(re,H),re),r);return g.length>0?ta([B]):B},X5=r=>nh(r)?Hu(r).filter(Vp).fold($([]),g=>[r,g]):Vp(r)?[r]:[],TF=(r,g,B)=>{const H=sr.fromDom(g.commonAncestorContainer),re=Xb(H,r),be=Te(re,ct=>B.isWrapper(la(ct))),Re=sP(re,g),Ke=be.concat(Re.length?Re:X5(H));return ve(Ke,Th)},wC=()=>ta([]),CF=(r,g,B)=>kF(sr.fromDom(g.cloneContents()),TF(r,g,B)),AF=(r,g)=>wl(g,"table",U(Fa,r)),eX=(r,g)=>AF(r,g[0]).bind(B=>{const H=g[0],re=g[g.length-1],be=_C(B);return JY(be,H,re).map(Re=>ta([KY(Re)]))}).getOrThunk(wC),tX=(r,g,B)=>g.length>0&&g[0].collapsed?wC():CF(r,g[0],B),nX=(r,g,B)=>{const H=wy(g,r);return H.length>0?eX(r,H):tX(r,g,B)},e4=(r,g)=>g>=0&&gyd(r.innerText),EF=r=>r.map(g=>g.nodeName).getOr("div").toLowerCase(),rX=r=>Y.from(r.selection.getRng()).map(g=>{var B;const H=Y.from(r.dom.getParent(g.commonAncestorContainer,r.dom.isBlock)),re=r.getBody(),be=EF(H),Re=sr.fromDom(g.cloneContents());mB(Re),gB(Re);const Ke=r.dom.add(re,be,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},Re.dom),ct=MF(Ke),kt=yd((B=Ke.textContent)!==null&&B!==void 0?B:"");if(r.dom.remove(Ke),e4(kt,0)||e4(kt,kt.length-1)){const Wt=H.getOr(re),Jt=MF(Wt),ln=Jt.indexOf(ct);if(ln===-1)return ct;{const kn=e4(Jt,ln-1),Vn=e4(Jt,ln+ct.length);return(kn?" ":"")+ct+(Vn?" ":"")}}else return ct}).getOr(""),oX=(r,g)=>{const B=r.selection.getRng(),H=r.dom.create("body"),re=r.selection.getSel(),be=$3(r,b3(re)),Re=g.contextual?nX(sr.fromDom(r.getBody()),be,r.schema).dom:B.cloneContents();return Re&&H.appendChild(Re),r.selection.serializer.serialize(H,g)},iX=(r,g)=>{if(g.format==="text")return rX(r);{const B=oX(r,g);return g.format==="tree"?B:r.selection.isCollapsed()?"":B}},aX=(r,g)=>({...r,format:g,get:!0,selection:!0,getInner:!0}),sX=(r,g,B={})=>{const H=aX(B,g);return vF(r,H).fold(Q,re=>{const be=iX(r,re);return nP(r,be,re)})},lP=0,PF=1,RF=2,lX=(r,g)=>{const B=r.length+g.length+2,H=new Array(B),re=new Array(B),be=(Wt,Jt,ln)=>({start:Wt,end:Jt,diag:ln}),Re=(Wt,Jt,ln,kn,Vn)=>{const Rn=ct(Wt,Jt,ln,kn);if(Rn===null||Rn.start===Jt&&Rn.diag===Jt-kn||Rn.end===Wt&&Rn.diag===Wt-ln){let qn=Wt,pr=ln;for(;qnkn-ln?(Vn.push([RF,r[qn]]),++qn):(Vn.push([PF,g[pr]]),++pr)}else{Re(Wt,Rn.start,ln,Rn.start-Rn.diag,Vn);for(let qn=Rn.start;qn{let Vn=Wt;for(;Vn-Jt{const Vn=Jt-Wt,Rn=kn-ln;if(Vn===0||Rn===0)return null;const qn=Vn-Rn,pr=Rn+Vn,Tr=(pr%2===0?pr:pr+1)/2;H[1+Tr]=Wt,re[1+Tr]=Jt+1;let wr,Ur,wo,jo,di;for(wr=0;wr<=Tr;++wr){for(Ur=-wr;Ur<=wr;Ur+=2){for(wo=Ur+Tr,Ur===-wr||Ur!==wr&&H[wo-1]=Wt&&di>=ln&&r[jo]===g[di];)re[wo]=jo--,di--;if(qn%2===0&&-wr<=Ur&&Ur<=wr&&re[wo]<=H[wo+qn])return Ke(re[wo],Ur+Wt-ln,Jt,kn)}}return null},kt=[];return Re(0,r.length,0,g.length,kt),kt},t4=r=>ne(r)?r.outerHTML:Nt(r)?up.encodeRaw(r.data,!1):xn(r)?"":"",Gh=r=>{let g;const B=document.createElement("div"),H=document.createDocumentFragment();for(r&&(B.innerHTML=r);g=B.firstChild;)H.appendChild(g);return H},cX=(r,g,B)=>{const H=Gh(g);if(r.hasChildNodes()&&B{if(r.hasChildNodes()&&g{let B=0;ye(r,H=>{H[0]===lP?B++:H[0]===PF?(cX(g,H[1],B),B++):H[0]===RF&&OC(g,B)})},LF=(r,g)=>Te(ve(Ee(r.childNodes),g?I(yd,t4):t4),B=>B.length>0),Wm=(r,g)=>{const B=ve(Ee(g.childNodes),t4);return Zw(lX(B,r),g),g},qw=xt(()=>document.implementation.createHTMLDocument("undo")),IF=r=>r.querySelector("iframe")!==null,uX=r=>({type:"fragmented",fragments:r,content:"",bookmark:null,beforeBookmark:null}),DF=r=>({type:"complete",fragments:null,content:r,bookmark:null,beforeBookmark:null}),SC=r=>{const g=r.serializer.getTempAttrs(),B=IE(r.getBody(),g);return IF(B)?uX(LF(B,!0)):DF(yd(B.innerHTML))},kC=(r,g,B)=>{const H=B?g.beforeBookmark:g.bookmark;g.type==="fragmented"?Wm(g.fragments,r.getBody()):r.setContent(g.content,{format:"raw",no_selection:E(H)&&HT(H)?!H.isFakeCaret:!0}),H&&(r.selection.moveToBookmark(H),r.selection.scrollIntoView())},Ww=r=>r.type==="fragmented"?r.fragments.join(""):r.content,TC=r=>{const g=sr.fromTag("body",qw());return Id(g,Ww(r)),ye(Zl(g,"*[data-mce-bogus]"),yu),nl(g)},fX=(r,g)=>Ww(r)===Ww(g),BF=(r,g)=>TC(r)===TC(g),cP=(r,g)=>!r||!g?!1:fX(r,g)?!0:BF(r,g),G5=r=>r.get()===0,n4=(r,g,B)=>{G5(B)&&(r.typing=g)},zF=(r,g)=>{r.typing&&(n4(r,!1,g),r.add())},dX=r=>{r.typing&&(r.typing=!1,r.add())},Ly=(r,g,B)=>{G5(g)&&B.set(Ja(r.selection))},uP=(r,g,B,H,re,be,Re)=>{const Ke=SC(r),ct=mo.extend(be||{},Ke);if(!G5(H)||r.removed)return null;const kt=g.data[B.get()];if(r.dispatch("BeforeAddUndo",{level:ct,lastLevel:kt,originalEvent:Re}).isDefaultPrevented()||kt&&cP(kt,ct))return null;g.data[B.get()]&&re.get().each(ln=>{g.data[B.get()].beforeBookmark=ln});const Wt=wg(r);if(Wt&&g.data.length>Wt){for(let ln=0;ln0?(r.setDirty(!0),r.dispatch("AddUndo",Jt),r.dispatch("change",Jt)):r.dispatch("AddUndo",Jt),ct},hX=(r,g,B)=>{g.data=[],B.set(0),g.typing=!1,r.dispatch("ClearUndos")},CC=(r,g,B,H,re)=>{if(g.transact(H)){const be=g.data[B.get()].bookmark,Re=g.data[B.get()-1];kC(r,Re,!0),g.transact(re)&&(g.data[B.get()-1].beforeBookmark=be)}},fP=(r,g,B)=>{let H;return g.get(){let re;return g.typing&&(g.add(),g.typing=!1,n4(g,!1,B)),H.get()>0&&(H.set(H.get()-1),re=g.data[H.get()],kC(r,re,!0),r.setDirty(!0),r.dispatch("Undo",{level:re})),re},NF=r=>{r.clear(),r.add()},$F=(r,g,B)=>B.get()>0||g.typing&&g.data[0]&&!cP(SC(r),g.data[0]),pX=(r,g)=>g.get()(zF(r,g),r.beforeChange(),r.ignore(B),r.add()),gX=(r,g)=>{try{r.set(r.get()+1),g()}finally{r.set(r.get()-1)}},vX=(r,g)=>{const B=r.dom,H=E(g)?g:r.getBody();ye(B.select("table,a",H),re=>{switch(re.nodeName){case"TABLE":const be=Kx(r),Re=B.getAttrib(re,"border");(!Re||Re==="0")&&r.hasVisual?B.addClass(re,be):B.removeClass(re,be);break;case"A":if(!B.getAttrib(re,"href")){const Ke=B.getAttrib(re,"name")||re.id,ct=Jx(r);Ke&&r.hasVisual?B.addClass(re,ct):B.removeClass(re,ct)}break}}),r.dispatch("VisualAid",{element:g,hasVisual:r.hasVisual})},VF=r=>({init:{bindEvents:k},undoManager:{beforeChange:(g,B)=>Ly(r,g,B),add:(g,B,H,re,be,Re)=>uP(r,g,B,H,re,be,Re),undo:(g,B,H)=>FF(r,g,B,H),redo:(g,B)=>fP(r,g,B),clear:(g,B)=>hX(r,g,B),reset:g=>NF(g),hasUndo:(g,B)=>$F(r,g,B),hasRedo:(g,B)=>pX(g,B),transact:(g,B,H)=>mX(g,B,H),ignore:(g,B)=>gX(g,B),extra:(g,B,H,re)=>CC(r,g,B,H,re)},formatter:{match:(g,B,H,re)=>b7(r,g,B,H,re),matchAll:(g,B)=>sY(r,g,B),matchNode:(g,B,H,re)=>Py(r,g,B,H,re),canApply:g=>cY(r,g),closest:g=>lY(r,g),apply:(g,B,H)=>$7(r,g,B,H),remove:(g,B,H,re)=>z7(r,g,B,H,re),toggle:(g,B,H)=>Fu(r,g,B,H),formatChanged:(g,B,H,re,be)=>V7(r,g,B,H,re,be)},editor:{getContent:g=>cW(r,g),setContent:(g,B)=>m7(r,g,B),insertContent:(g,B)=>aY(r,g,B),addVisual:g=>vX(r,g)},selection:{getContent:(g,B)=>sX(r,g,B)},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:()=>Y.none()}}),UF=r=>{const g=kt=>_(kt)?kt:{},{init:B,undoManager:H,formatter:re,editor:be,selection:Re,autocompleter:Ke,raw:ct}=r;return{init:{bindEvents:B.bindEvents},undoManager:{beforeChange:H.beforeChange,add:H.add,undo:H.undo,redo:H.redo,clear:H.clear,reset:H.reset,hasUndo:H.hasUndo,hasRedo:H.hasRedo,transact:(kt,Wt,Jt)=>H.transact(Jt),ignore:(kt,Wt)=>H.ignore(Wt),extra:(kt,Wt,Jt,ln)=>H.extra(Jt,ln)},formatter:{match:(kt,Wt,Jt,ln)=>re.match(kt,g(Wt),ln),matchAll:re.matchAll,matchNode:re.matchNode,canApply:kt=>re.canApply(kt),closest:kt=>re.closest(kt),apply:(kt,Wt,Jt)=>re.apply(kt,g(Wt)),remove:(kt,Wt,Jt,ln)=>re.remove(kt,g(Wt)),toggle:(kt,Wt,Jt)=>re.toggle(kt,g(Wt)),formatChanged:(kt,Wt,Jt,ln,kn)=>re.formatChanged(Wt,Jt,ln,kn)},editor:{getContent:kt=>be.getContent(kt),setContent:(kt,Wt)=>({content:be.setContent(kt,Wt),html:""}),insertContent:(kt,Wt)=>(be.insertContent(kt),""),addVisual:be.addVisual},selection:{getContent:(kt,Wt)=>Re.getContent(Wt)},autocompleter:{addDecoration:Ke.addDecoration,removeDecoration:Ke.removeDecoration},raw:{getModel:()=>Y.some(ct.getRawModel())}}},yX=()=>{const r=$(null),g=$("");return{init:{bindEvents:k},undoManager:{beforeChange:k,add:r,undo:r,redo:r,clear:k,reset:k,hasUndo:oe,hasRedo:oe,transact:r,ignore:k,extra:k},formatter:{match:oe,matchAll:$([]),matchNode:$(void 0),canApply:oe,closest:g,apply:k,remove:k,toggle:k,formatChanged:$({unbind:k})},editor:{getContent:g,setContent:$({content:"",html:""}),insertContent:$(""),addVisual:k},selection:{getContent:g},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:$(Y.none())}}},Iy=r=>_t(r.plugins,"rtc"),bX=r=>Ct(r.plugins,"rtc").bind(g=>Y.from(g.setup)),jF=r=>{const g=r;return bX(r).fold(()=>(g.rtcInstance=VF(r),Y.none()),B=>(g.rtcInstance=yX(),Y.some(()=>B().then(H=>(g.rtcInstance=UF(H),H.rtc.isRemote)))))},K5=r=>r.rtcInstance?r.rtcInstance:VF(r),hf=r=>{const g=r.rtcInstance;if(g)return g;throw new Error("Failed to get RTC instance not yet initialized.")},QF=(r,g,B)=>{hf(r).undoManager.beforeChange(g,B)},dP=(r,g,B,H,re,be,Re)=>hf(r).undoManager.add(g,B,H,re,be,Re),HF=(r,g,B,H)=>hf(r).undoManager.undo(g,B,H),ZF=(r,g,B)=>hf(r).undoManager.redo(g,B),hP=(r,g,B)=>{hf(r).undoManager.clear(g,B)},qF=(r,g)=>{hf(r).undoManager.reset(g)},WF=(r,g,B)=>hf(r).undoManager.hasUndo(g,B),YF=(r,g,B)=>hf(r).undoManager.hasRedo(g,B),xX=(r,g,B,H)=>hf(r).undoManager.transact(g,B,H),pP=(r,g,B)=>{hf(r).undoManager.ignore(g,B)},_X=(r,g,B,H,re)=>{hf(r).undoManager.extra(g,B,H,re)},AC=(r,g,B,H,re)=>hf(r).formatter.match(g,B,H,re),wX=(r,g,B)=>hf(r).formatter.matchAll(g,B),OX=(r,g,B,H,re)=>hf(r).formatter.matchNode(g,B,H,re),SX=(r,g)=>hf(r).formatter.canApply(g),XF=(r,g)=>hf(r).formatter.closest(g),GF=(r,g,B,H)=>{hf(r).formatter.apply(g,B,H)},kX=(r,g,B,H,re)=>{hf(r).formatter.remove(g,B,H,re)},TX=(r,g,B,H)=>{hf(r).formatter.toggle(g,B,H)},CX=(r,g,B,H,re,be)=>hf(r).formatter.formatChanged(g,B,H,re,be),AX=(r,g)=>K5(r).editor.getContent(g),MX=(r,g,B)=>K5(r).editor.setContent(g,B),KF=(r,g,B)=>K5(r).editor.insertContent(g,B),tfe=(r,g,B)=>hf(r).selection.getContent(g,B),EX=(r,g)=>hf(r).editor.addVisual(g),JF=r=>hf(r).init.bindEvents(),PX=(r,g={})=>{const B=g.format?g.format:"html";return tfe(r,B,g)},eN=r=>r.dom.length===0?(ja(r),Y.none()):Y.some(r),RX=(r,g)=>r.filter(B=>ky.isBookmarkNode(B.dom)).bind(g?fd:Eu),LX=(r,g,B,H,re)=>{const be=r.dom,Re=g.dom,Ke=H?be.length:Re.length;H?(ZE(be,Re,re,!1,!H),B.setStart(Re,Ke)):(ZE(Re,be,re,!1,!H),B.setEnd(Re,Ke))},IX=(r,g,B)=>{Hu(r).each(H=>{const re=r.dom;g&&_5(H,qr(re,0),B)?O5(re,0,B):!g&&w5(H,qr(re,re.length),B)&&HE(re,re.length,B)})},mP=(r,g,B,H,re)=>{r.bind(be=>((H?HE:O5)(be.dom,H?be.dom.length:0,re),g.filter(ks).map(Ke=>LX(be,Ke,B,H,re)))).orThunk(()=>RX(g,H).or(g).filter(ks).map(Re=>IX(Re,H,re)))},DX=(r,g,B)=>{const H=Y.from(g.firstChild).map(sr.fromDom),re=Y.from(g.lastChild).map(sr.fromDom);r.deleteContents(),r.insertNode(g);const be=H.bind(Eu).filter(ks).bind(eN),Re=re.bind(fd).filter(ks).bind(eN);mP(be,H,r,!0,B),mP(Re,re,r,!1,B),r.collapse(!1)},BX=(r,g)=>({format:"html",...r,set:!0,selection:!0,content:g}),zX=(r,g)=>{if(g.format!=="raw"){const B=r.selection.getRng(),H=r.dom.getParent(B.commonAncestorContainer,r.dom.isBlock),re=H?{context:H.nodeName.toLowerCase()}:{},be=r.parser.parse(g.content,{forced_root_block:!1,...re,...g});return Yb({validate:!1},r.schema).serialize(be)}else return g.content},FX=(r,g,B={})=>{const H=BX(B,g);rP(r,H).each(re=>{const be=zX(r,re),Re=r.selection.getRng();DX(Re,Re.createContextualFragment(be),r.schema),r.selection.setRng(Re),g5(r,Re),oP(r,be,re)})},tN=(r,g,B)=>{if(_t(r,g)){const H=Te(r[g],re=>re!==B);H.length===0?delete r[g]:r[g]=H}};var nfe=(r,g)=>{let B,H;const re=(Ke,ct)=>De(ct,kt=>r.is(kt,Ke)),be=Ke=>r.getParents(Ke,void 0,r.getRoot()),Re=()=>{B={},H={},g.on("NodeChange",Ke=>{const ct=Ke.element,kt=be(ct),Wt={};Ge(B,(Jt,ln)=>{re(ln,kt).each(kn=>{H[ln]||(ye(Jt,Vn=>{Vn(!0,{node:kn,selector:ln,parents:kt})}),H[ln]=Jt),Wt[ln]=Jt})}),Ge(H,(Jt,ln)=>{Wt[ln]||(delete H[ln],ye(Jt,kn=>{kn(!1,{node:ct,selector:ln,parents:kt})}))})})};return{selectorChangedWithUnbind:(Ke,ct)=>(B||Re(),B[Ke]||(B[Ke]=[]),B[Ke].push(ct),re(Ke,be(g.selection.getStart())).each(()=>{H[Ke]=B[Ke]}),{unbind:()=>{tN(B,Ke,ct),tN(H,Ke,ct)}})}};const NX=r=>!!(r&&r.ownerDocument)&&Qu(sr.fromDom(r.ownerDocument),sr.fromDom(r)),$X=r=>r?NX(r.startContainer)&&NX(r.endContainer):!1,nN=(r,g,B,H)=>{let re,be;const{selectorChangedWithUnbind:Re}=nfe(r,H),Ke=(Wo,Ei)=>{const ws=r.createRng();E(Wo)&&E(Ei)?(ws.setStart(Wo,Ei),ws.setEnd(Wo,Ei),Ur(ws),pr(!1)):(XS(r,ws,H.getBody(),!0),Ur(ws))},ct=Wo=>PX(H,Wo),kt=(Wo,Ei)=>FX(H,Wo,Ei),Wt=Wo=>PE(H.getBody(),wr(),Wo),Jt=Wo=>RE(H.getBody(),wr(),Wo),ln=(Wo,Ei)=>jd.getBookmark(Wo,Ei),kn=Wo=>jd.moveToBookmark(Wo),Vn=(Wo,Ei)=>(Jq(r,Wo,Ei).each(Ur),Wo),Rn=()=>{const Wo=wr(),Ei=Tr();return!Wo||Wo.item?!1:Wo.compareEndPoints?Wo.compareEndPoints("StartToEnd",Wo)===0:!Ei||Wo.collapsed},qn=()=>{const Wo=wr(),Ei=H.getBody().querySelectorAll('[data-mce-selected="1"]');return Ei.length>0?Oe(Ei,ws=>r.isEditable(ws.parentElement)):iB(r,Wo)},pr=Wo=>{const Ei=wr();Ei.collapse(!!Wo),Ur(Ei)},Tr=()=>g.getSelection?g.getSelection():g.document.selection,wr=()=>{let Wo;const Ei=(ii,Qi,Qa)=>{try{return Qi.compareBoundaryPoints(ii,Qa)}catch{return-1}},ws=g.document;if(E(H.bookmark)&&!Mw(H)){const ii=b6(H);if(ii.isSome())return ii.map(Qi=>$3(H,[Qi])[0]).getOr(ws.createRange())}try{const ii=Tr();ii&&!V(ii.anchorNode)&&(ii.rangeCount>0?Wo=ii.getRangeAt(0):Wo=ws.createRange(),Wo=$3(H,[Wo])[0])}catch{}if(Wo||(Wo=ws.createRange()),pn(Wo.startContainer)&&Wo.collapsed){const ii=r.getRoot();Wo.setStart(ii,0),Wo.setEnd(ii,0)}return re&&be&&(Ei(Wo.START_TO_START,Wo,re)===0&&Ei(Wo.END_TO_END,Wo,re)===0?Wo=be:(re=null,be=null)),Wo},Ur=(Wo,Ei)=>{if(!$X(Wo))return;const ws=Tr();if(Wo=H.dispatch("SetSelectionRange",{range:Wo,forward:Ei}).range,ws){be=Wo;try{ws.removeAllRanges(),ws.addRange(Wo)}catch{}Ei===!1&&ws.extend&&(ws.collapse(Wo.endContainer,Wo.endOffset),ws.extend(Wo.startContainer,Wo.startOffset)),re=ws.rangeCount>0?ws.getRangeAt(0):null}if(!Wo.collapsed&&Wo.startContainer===Wo.endContainer&&(ws!=null&&ws.setBaseAndExtent)&&Wo.endOffset-Wo.startOffset<2&&Wo.startContainer.hasChildNodes()){const Qi=Wo.startContainer.childNodes[Wo.startOffset];Qi&&Qi.nodeName==="IMG"&&(ws.setBaseAndExtent(Wo.startContainer,Wo.startOffset,Wo.endContainer,Wo.endOffset),(ws.anchorNode!==Wo.startContainer||ws.focusNode!==Wo.endContainer)&&ws.setBaseAndExtent(Qi,0,Qi,1))}H.dispatch("AfterSetSelectionRange",{range:Wo,forward:Ei})},wo=Wo=>(kt(r.getOuterHTML(Wo)),Wo),jo=()=>Gq(H.getBody(),wr()),di=(Wo,Ei)=>Kq(r,wr(),Wo,Ei),lo=()=>{const Wo=Tr(),Ei=Wo==null?void 0:Wo.anchorNode,ws=Wo==null?void 0:Wo.focusNode;if(!Wo||!Ei||!ws||V(Ei)||V(ws))return!0;const ii=r.createRng(),Qi=r.createRng();try{ii.setStart(Ei,Wo.anchorOffset),ii.collapse(!0),Qi.setStart(ws,Wo.focusOffset),Qi.collapse(!0)}catch{return!0}return ii.compareBoundaryPoints(ii.START_TO_START,Qi)<=0},nu={dom:r,win:g,serializer:B,editor:H,expand:(Wo={type:"word"})=>Ur(To(r).expand(wr(),Wo)),collapse:pr,setCursorLocation:Ke,getContent:ct,setContent:kt,getBookmark:ln,moveToBookmark:kn,select:Vn,isCollapsed:Rn,isEditable:qn,isForward:lo,setNode:wo,getNode:jo,getSel:Tr,setRng:Ur,getRng:wr,getStart:Wt,getEnd:Jt,getSelectedBlocks:di,normalize:()=>{const Wo=wr(),Ei=Tr();if(!ZM(Ei)&&GS(H)){const ws=Ko(r,Wo);return ws.each(ii=>{Ur(ii,lo())}),ws.getOr(Wo)}return Wo},selectorChanged:(Wo,Ei)=>(Re(Wo,Ei),nu),selectorChangedWithUnbind:Re,getScrollContainer:()=>{let Wo,Ei=r.getRoot();for(;Ei&&Ei.nodeName!=="BODY";){if(Ei.scrollHeight>Ei.clientHeight){Wo=Ei;break}Ei=Ei.parentNode}return Wo},scrollIntoView:(Wo,Ei)=>{E(Wo)?Nq(H,Wo,Ei):g5(H,wr(),Ei)},placeCaretAt:(Wo,Ei)=>Ur(Ye(Wo,Ei,H.getDoc())),getBoundingClientRect:()=>{const Wo=wr();return Wo.collapsed?qr.fromRangeStart(Wo).getClientRects()[0]:Wo.getBoundingClientRect()},destroy:()=>{g=re=be=null,vl.destroy()}},jd=ky(nu),vl=Ow(nu,H);return nu.bookmarkManager=jd,nu.controlSelection=vl,nu},rfe=(r,g,B)=>{g.addNodeFilter("br",(H,re,be)=>{const Re=mo.extend({},B.getBlockElements()),Ke=B.getNonEmptyElements(),ct=B.getWhitespaceElements();Re.body=1;const kt=Wt=>Wt.name in Re||eh(B,Wt);for(let Wt=0,Jt=H.length;Wt{r.addAttributeFilter("data-mce-tabindex",(H,re)=>{let be=H.length;for(;be--;){const Re=H[be];Re.attr("tabindex",Re.attr("data-mce-tabindex")),Re.attr(re,null)}}),r.addAttributeFilter("src,href,style",(H,re)=>{const be="data-mce-"+re,Re=g.url_converter,Ke=g.url_converter_scope;let ct=H.length;for(;ct--;){const kt=H[ct];let Wt=kt.attr(be);Wt!==void 0?(kt.attr(re,Wt.length>0?Wt:null),kt.attr(be,null)):(Wt=kt.attr(re),re==="style"?Wt=B.serializeStyle(B.parseStyle(Wt),kt.name):Re&&(Wt=Re.call(Ke,Wt,re,kt.name)),kt.attr(re,Wt.length>0?Wt:null))}}),r.addAttributeFilter("class",H=>{let re=H.length;for(;re--;){const be=H[re];let Re=be.attr("class");Re&&(Re=Re.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),be.attr("class",Re.length>0?Re:null))}}),r.addAttributeFilter("data-mce-type",(H,re,be)=>{let Re=H.length;for(;Re--;){const Ke=H[Re];Ke.attr("data-mce-type")==="bookmark"&&!be.cleanup&&(Y.from(Ke.firstChild).exists(kt=>{var Wt;return!$0((Wt=kt.value)!==null&&Wt!==void 0?Wt:"")})?Ke.unwrap():Ke.remove())}}),r.addNodeFilter("script,style",(H,re)=>{var be;const Re=ct=>ct.replace(/()/g,` `).replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"");let Ke=H.length;for(;Ke--;){const ct=H[Ke],kt=ct.firstChild,Wt=(be=kt==null?void 0:kt.value)!==null&&be!==void 0?be:"";if(re==="script"){const Jt=ct.attr("type");Jt&&ct.attr("type",Jt==="mce-no/type"?null:Jt.replace(/^mce\-/,"")),g.element_format==="xhtml"&&kt&&Wt.length>0&&(kt.value=`// `)}else g.element_format==="xhtml"&&kt&&Wt.length>0&&(kt.value=``)}}),r.addNodeFilter("#comment",H=>{let re=H.length;for(;re--;){const be=H[re],Re=be.value;g.preserve_cdata&&(Re==null?void 0:Re.indexOf("[CDATA["))===0?(be.name="#cdata",be.type=4,be.value=B.decode(Re.replace(/^\[CDATA\[|\]\]$/g,""))):(Re==null?void 0:Re.indexOf("mce:protected "))===0&&(be.name="#text",be.type=3,be.raw=!0,be.value=unescape(Re).substr(14))}}),r.addNodeFilter("xml:namespace,input",(H,re)=>{let be=H.length;for(;be--;){const Re=H[be];Re.type===7?Re.remove():Re.type===1&&re==="input"&&!Re.attr("type")&&Re.attr("type","text")}}),r.addAttributeFilter("data-mce-type",H=>{ye(H,re=>{re.attr("data-mce-type")==="format-caret"&&(re.isEmpty(r.schema.getNonEmptyElements())?re.remove():re.unwrap())})}),r.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(H,re)=>{let be=H.length;for(;be--;)H[be].attr(re,null)}),g.remove_trailing_brs&&nfe(g,r,r.schema)},lu=r=>{const g=H=>(H==null?void 0:H.name)==="br",B=r.lastChild;if(g(B)){const H=B.prev;g(H)&&(B.remove(),H.remove())}},mP=(r,g,B)=>{let H;const re=r.dom;let be=g.cloneNode(!0);const Re=document.implementation;if(Re.createHTMLDocument){const Ke=Re.createHTMLDocument("");mo.each(be.nodeName==="BODY"?be.childNodes:[be],ct=>{Ke.body.appendChild(Ke.importNode(ct,!0))}),be.nodeName!=="BODY"?be=Ke.body.firstChild:be=Ke.body,H=re.doc,re.doc=Ke}return nE(r,{...B,node:be}),H&&(re.doc=H),be},rfe=(r,g)=>E(r)&&r.hasEventListeners("PreProcess")&&!g.no_events,UX=(r,g,B)=>rfe(r,B)?mP(r,g,B):g,jX=(r,g,B)=>{mo.inArray(g,B)===-1&&(r.addAttributeFilter(B,(H,re)=>{let be=H.length;for(;be--;)H[be].attr(re,null)}),g.push(B))},r4=(r,g,B)=>!g.no_events&&r?A3(r,{...g,content:B}).content:B,ofe=(r,g,B)=>{const H=vd(B.getInner?g.innerHTML:r.getOuterHTML(g));return B.selection||iy(sr.fromDom(g))?H:mo.trim(H)},ife=(r,g,B)=>{const H=B.selection?{forced_root_block:!1,...B}:B,re=r.parse(g,H);return lu(re),re},uh=(r,g,B)=>Wb(r,g).serialize(B),rN=(r,g,B,H,re)=>{const be=uh(g,B,H);return r4(r,re,be)},oN=(r,g)=>{const B=["data-mce-selected"],H={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...r},re=g&&g.dom?g.dom:Nl.DOM,be=g&&g.schema?g.schema:Np(H),Re=Ry(H,be);VX(Re,H,re);const Ke=(ct,kt={})=>{const Wt={format:"html",...kt},Jt=UX(g,ct,Wt),ln=ofe(re,Jt,Wt),kn=ife(Re,ln,Wt);return Wt.format==="tree"?kn:rN(g,H,be,kn,Wt)};return{schema:be,addNodeFilter:Re.addNodeFilter,addAttributeFilter:Re.addAttributeFilter,serialize:Ke,addRules:be.addValidElements,setRules:be.setValidElements,addTempAttr:U(jX,Re,B),getTempAttrs:$(B),getNodeFilters:Re.getNodeFilters,getAttributeFilters:Re.getAttributeFilters,removeNodeFilter:Re.removeNodeFilter,removeAttributeFilter:Re.removeAttributeFilter}},gP=(r,g)=>{const B=oN(r,g);return{schema:B.schema,addNodeFilter:B.addNodeFilter,addAttributeFilter:B.addAttributeFilter,serialize:B.serialize,addRules:B.addRules,setRules:B.setRules,addTempAttr:B.addTempAttr,getTempAttrs:B.getTempAttrs,getNodeFilters:B.getNodeFilters,getAttributeFilters:B.getAttributeFilters,removeNodeFilter:B.removeNodeFilter,removeAttributeFilter:B.removeAttributeFilter}},QX="html",HX=(r,g)=>({...r,format:g,get:!0,getInner:!0}),AC=(r,g={})=>{const B=g.format?g.format:QX,H=HX(g,B);return vF(r,H).fold(Q,re=>{const be=AX(r,re);return tP(r,be,re)})},ZX="html",vP=(r,g)=>({format:ZX,...r,set:!0,content:g}),yP=(r,g,B={})=>{const H=vP(B,g);return nP(r,H).map(re=>{const be=MX(r,re.content,re);return rP(r,be.html,re),be.content}).getOr(g)},iN="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists,template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),aN=[],bP="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,template,textcolor,rtc".split(","),xP=[],MC=(r,g)=>{const B=Te(g,H=>_t(r,H));return Ue(B)},qX=r=>{const g=MC(r,iN),B=r.forced_root_block;return(B===!1||B==="")&&g.push("forced_root_block (false only)"),Ue(g)},WX=r=>MC(r,aN),sN=(r,g)=>{const B=mo.makeMap(r.plugins," "),re=Te(g,be=>_t(B,be));return Ue(re)},p0=r=>sN(r,bP),YX=r=>sN(r,xP.map(g=>g.name)),XX=(r,g)=>{const B=qX(r),H=p0(g),re=H.length>0,be=B.length>0,Re=g.theme==="mobile";if(re||be||Re){const Ke=` +-->`)}}),r.addNodeFilter("#comment",H=>{let re=H.length;for(;re--;){const be=H[re],Re=be.value;g.preserve_cdata&&(Re==null?void 0:Re.indexOf("[CDATA["))===0?(be.name="#cdata",be.type=4,be.value=B.decode(Re.replace(/^\[CDATA\[|\]\]$/g,""))):(Re==null?void 0:Re.indexOf("mce:protected "))===0&&(be.name="#text",be.type=3,be.raw=!0,be.value=unescape(Re).substr(14))}}),r.addNodeFilter("xml:namespace,input",(H,re)=>{let be=H.length;for(;be--;){const Re=H[be];Re.type===7?Re.remove():Re.type===1&&re==="input"&&!Re.attr("type")&&Re.attr("type","text")}}),r.addAttributeFilter("data-mce-type",H=>{ye(H,re=>{re.attr("data-mce-type")==="format-caret"&&(re.isEmpty(r.schema.getNonEmptyElements())?re.remove():re.unwrap())})}),r.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(H,re)=>{let be=H.length;for(;be--;)H[be].attr(re,null)}),g.remove_trailing_brs&&rfe(g,r,r.schema)},lu=r=>{const g=H=>(H==null?void 0:H.name)==="br",B=r.lastChild;if(g(B)){const H=B.prev;g(H)&&(B.remove(),H.remove())}},gP=(r,g,B)=>{let H;const re=r.dom;let be=g.cloneNode(!0);const Re=document.implementation;if(Re.createHTMLDocument){const Ke=Re.createHTMLDocument("");mo.each(be.nodeName==="BODY"?be.childNodes:[be],ct=>{Ke.body.appendChild(Ke.importNode(ct,!0))}),be.nodeName!=="BODY"?be=Ke.body.firstChild:be=Ke.body,H=re.doc,re.doc=Ke}return rE(r,{...B,node:be}),H&&(re.doc=H),be},ofe=(r,g)=>E(r)&&r.hasEventListeners("PreProcess")&&!g.no_events,UX=(r,g,B)=>ofe(r,B)?gP(r,g,B):g,jX=(r,g,B)=>{mo.inArray(g,B)===-1&&(r.addAttributeFilter(B,(H,re)=>{let be=H.length;for(;be--;)H[be].attr(re,null)}),g.push(B))},r4=(r,g,B)=>!g.no_events&&r?A3(r,{...g,content:B}).content:B,ife=(r,g,B)=>{const H=yd(B.getInner?g.innerHTML:r.getOuterHTML(g));return B.selection||iy(sr.fromDom(g))?H:mo.trim(H)},afe=(r,g,B)=>{const H=B.selection?{forced_root_block:!1,...B}:B,re=r.parse(g,H);return lu(re),re},uh=(r,g,B)=>Yb(r,g).serialize(B),rN=(r,g,B,H,re)=>{const be=uh(g,B,H);return r4(r,re,be)},oN=(r,g)=>{const B=["data-mce-selected"],H={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...r},re=g&&g.dom?g.dom:Nl.DOM,be=g&&g.schema?g.schema:Np(H),Re=Ry(H,be);VX(Re,H,re);const Ke=(ct,kt={})=>{const Wt={format:"html",...kt},Jt=UX(g,ct,Wt),ln=ife(re,Jt,Wt),kn=afe(Re,ln,Wt);return Wt.format==="tree"?kn:rN(g,H,be,kn,Wt)};return{schema:be,addNodeFilter:Re.addNodeFilter,addAttributeFilter:Re.addAttributeFilter,serialize:Ke,addRules:be.addValidElements,setRules:be.setValidElements,addTempAttr:U(jX,Re,B),getTempAttrs:$(B),getNodeFilters:Re.getNodeFilters,getAttributeFilters:Re.getAttributeFilters,removeNodeFilter:Re.removeNodeFilter,removeAttributeFilter:Re.removeAttributeFilter}},vP=(r,g)=>{const B=oN(r,g);return{schema:B.schema,addNodeFilter:B.addNodeFilter,addAttributeFilter:B.addAttributeFilter,serialize:B.serialize,addRules:B.addRules,setRules:B.setRules,addTempAttr:B.addTempAttr,getTempAttrs:B.getTempAttrs,getNodeFilters:B.getNodeFilters,getAttributeFilters:B.getAttributeFilters,removeNodeFilter:B.removeNodeFilter,removeAttributeFilter:B.removeAttributeFilter}},QX="html",HX=(r,g)=>({...r,format:g,get:!0,getInner:!0}),MC=(r,g={})=>{const B=g.format?g.format:QX,H=HX(g,B);return vF(r,H).fold(Q,re=>{const be=AX(r,re);return nP(r,be,re)})},ZX="html",yP=(r,g)=>({format:ZX,...r,set:!0,content:g}),bP=(r,g,B={})=>{const H=yP(B,g);return rP(r,H).map(re=>{const be=MX(r,re.content,re);return oP(r,be.html,re),be.content}).getOr(g)},iN="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists,template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),aN=[],xP="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,template,textcolor,rtc".split(","),_P=[],EC=(r,g)=>{const B=Te(g,H=>_t(r,H));return Ue(B)},qX=r=>{const g=EC(r,iN),B=r.forced_root_block;return(B===!1||B==="")&&g.push("forced_root_block (false only)"),Ue(g)},WX=r=>EC(r,aN),sN=(r,g)=>{const B=mo.makeMap(r.plugins," "),re=Te(g,be=>_t(B,be));return Ue(re)},p0=r=>sN(r,xP),YX=r=>sN(r,_P.map(g=>g.name)),XX=(r,g)=>{const B=qX(r),H=p0(g),re=H.length>0,be=B.length>0,Re=g.theme==="mobile";if(re||be||Re){const Ke=` - `,ct=Re?` Themes:${Ke}mobile`:"",kt=re?` Plugins:${Ke}${H.join(Ke)}`:"",Wt=be?` -Options:${Ke}${B.join(Ke)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 7.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/7/migration-from-6x/ for more information."+ct+kt+Wt)}},GX=r=>De(xP,g=>g.name===r).fold(()=>r,g=>g.replacedWith?`${r}, replaced by ${g.replacedWith}`:r),KX=(r,g)=>{const B=WX(r),H=YX(g),re=H.length>0,be=B.length>0;if(re||be){const Re=` +Options:${Ke}${B.join(Ke)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 7.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/7/migration-from-6x/ for more information."+ct+kt+Wt)}},GX=r=>De(_P,g=>g.name===r).fold(()=>r,g=>g.replacedWith?`${r}, replaced by ${g.replacedWith}`:r),KX=(r,g)=>{const B=WX(r),H=YX(g),re=H.length>0,be=B.length>0;if(re||be){const Re=` - `,Ke=re?` Plugins:${Re}${H.map(GX).join(Re)}`:"",ct=be?` -Options:${Re}${B.join(Re)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+Ke+ct)}},JX=(r,g)=>{XX(r,g),KX(r,g)},K5=Nl.DOM,eG=r=>{K5.setStyle(r.id,"display",r.orgDisplay)},EC=r=>Y.from(r).each(g=>g.destroy()),tG=r=>{const g=r;g.contentAreaContainer=g.formElement=g.container=g.editorContainer=null,g.bodyElement=g.contentDocument=g.contentWindow=null,g.iframeElement=g.targetElm=null;const B=r.selection;if(B){const H=B.dom;g.selection=B.win=B.dom=H.doc=null}},PC=r=>{const g=r.formElement;g&&(g._mceOldSubmit&&(g.submit=g._mceOldSubmit,delete g._mceOldSubmit),K5.unbind(g,"submit reset",r.formEventDelegate))},nG=r=>{if(!r.removed){const{_selectionOverrides:g,editorUpload:B}=r,H=r.getBody(),re=r.getElement();H&&r.save({is_removing:!0}),r.removed=!0,r.unbindAllNativeEvents(),r.hasHiddenInput&&E(re==null?void 0:re.nextSibling)&&K5.remove(re.nextSibling),M3(r),r.editorManager.remove(r),!r.inline&&H&&eG(r),rE(r),K5.remove(r.getContainer()),EC(g),EC(B),r.destroy()}},rG=(r,g)=>{const{selection:B,dom:H}=r;if(!r.destroyed){if(!g&&!r.removed){r.remove();return}g||(r.editorManager.off("beforeunload",r._beforeUnload),r.theme&&r.theme.destroy&&r.theme.destroy(),EC(B),EC(H)),PC(r),tG(r),r.destroyed=!0}},o4=(()=>{const r={};return{add:(re,be)=>{r[re]=be},get:re=>r[re]?r[re]:{icons:{}},has:re=>_t(r,re)}})(),i4=su.ModelManager,lN=(r,g)=>g.dom[r],iG=(r,g)=>parseInt(pi(g,r),10),aG=U(lN,"clientWidth"),J5=U(lN,"clientHeight"),cN=U(iG,"margin-top"),uN=U(iG,"margin-left"),sG=r=>r.dom.getBoundingClientRect(),fN=(r,g,B)=>{const H=aG(r),re=J5(r);return g>=0&&B>=0&&g<=H&&B<=re},lG=(r,g,B,H)=>{const re=sG(g),be=r?re.left+g.dom.clientLeft+uN(g):0,Re=r?re.top+g.dom.clientTop+cN(g):0,Ke=B-be,ct=H-Re;return{x:Ke,y:ct}},cG=(r,g,B)=>{const H=sr.fromDom(r.getBody()),re=r.inline?H:ym(H),be=lG(r.inline,re,g,B);return fN(re,be.x,be.y)},uG=r=>Y.from(r).map(sr.fromDom),fG=r=>{const g=r.inline?r.getBody():r.getContentAreaContainer();return uG(g).map(zc).getOr(!1)};var dN=()=>{const r=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:r,close:r,getArgs:r}};const hN=r=>{const g=[],B=()=>{const ln=r.theme;return ln&&ln.getNotificationManagerImpl?ln.getNotificationManagerImpl():dN()},H=()=>Y.from(g[0]),re=(ln,kn)=>ln.type===kn.type&&ln.text===kn.text&&!ln.progressBar&&!ln.timeout&&!kn.progressBar&&!kn.timeout,be=()=>{H().each(ln=>{ln.reposition()})},Re=ln=>{g.push(ln)},Ke=ln=>{He(g,kn=>kn===ln).each(kn=>{g.splice(kn,1)})},ct=(ln,kn=!0)=>r.removed||!fG(r)?{}:(kn&&r.dispatch("BeforeOpenNotification",{notification:ln}),De(g,Vn=>re(B().getArgs(Vn),ln)).getOrThunk(()=>{r.editorManager.setActive(r);const Vn=B().open(ln,()=>{Ke(Vn)},()=>v5(r));return Re(Vn),be(),r.dispatch("OpenNotification",{notification:{...Vn}}),Vn})),kt=()=>{H().each(ln=>{B().close(ln),Ke(ln),be()})},Wt=$(g);return(ln=>{ln.on("SkinLoaded",()=>{const kn=xd(ln);kn&&ct({text:kn,type:"warning",timeout:0},!1),be()}),ln.on("show ResizeEditor NodeChange",()=>{requestAnimationFrame(be)}),ln.on("remove",()=>{ye(g.slice(),kn=>{B().close(kn)})}),ln.addShortcut("alt+F12","Focus to notification",()=>H().map(kn=>sr.fromDom(kn.getEl())).each(kn=>F3(kn)))})(r),{open:ct,close:kt,getNotifications:Wt}},a4=su.PluginManager,yv=su.ThemeManager;var pN=()=>{const r=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:r,openUrl:r,alert:r,confirm:r,close:r}};const _P=r=>{let g=[];const B=()=>{const Rn=r.theme;return Rn&&Rn.getWindowManagerImpl?Rn.getWindowManagerImpl():pN()},H=(Rn,qn)=>(...pr)=>qn?qn.apply(Rn,pr):void 0,re=Rn=>{r.dispatch("OpenWindow",{dialog:Rn})},be=Rn=>{r.dispatch("CloseWindow",{dialog:Rn})},Re=Rn=>{g.push(Rn),re(Rn)},Ke=Rn=>{be(Rn),g=Te(g,qn=>qn!==Rn),g.length===0&&r.focus()},ct=()=>Y.from(g[g.length-1]),kt=Rn=>{r.editorManager.setActive(r),g5(r),r.ui.show();const qn=Rn();return Re(qn),qn},Wt=(Rn,qn)=>kt(()=>B().open(Rn,qn,Ke)),Jt=Rn=>kt(()=>B().openUrl(Rn,Ke)),ln=(Rn,qn,pr)=>{const Tr=B();Tr.alert(Rn,H(pr||Tr,qn))},kn=(Rn,qn,pr)=>{const Tr=B();Tr.confirm(Rn,H(pr||Tr,qn))},Vn=()=>{ct().each(Rn=>{B().close(Rn),Ke(Rn)})};return r.on("remove",()=>{ye(g,Rn=>{B().close(Rn)})}),{open:Wt,openUrl:Jt,alert:ln,confirm:kn,close:Vn}},mN=(r,g)=>{r.notificationManager.open({type:"error",text:g})},RC=(r,g)=>{r._skinLoaded?mN(r,g):r.on("SkinLoaded",()=>{mN(r,g)})},dG=(r,g)=>{RC(r,Du.translate(["Failed to upload image: {0}",g]))},s4=(r,g,B)=>{Sd(r,g,{message:B}),console.error(B)},ek=(r,g,B)=>B?`Failed to load ${r}: ${B} from url ${g}`:`Failed to load ${r} url: ${g}`,hG=(r,g,B)=>{s4(r,"PluginLoadError",ek("plugin",g,B))},pG=(r,g,B)=>{s4(r,"IconsLoadError",ek("icons",g,B))},mG=(r,g,B)=>{s4(r,"LanguageLoadError",ek("language",g,B))},afe=(r,g,B)=>{s4(r,"ThemeLoadError",ek("theme",g,B))},bv=(r,g,B)=>{s4(r,"ModelLoadError",ek("model",g,B))},wP=(r,g,B)=>{const H=Du.translate(["Failed to initialize plugin: {0}",g]);Sd(r,"PluginLoadError",{message:H}),LC(H,B),RC(r,H)},LC=(r,...g)=>{const B=window.console;B&&(B.error?B.error(r,...g):B.log(r,...g))},gG=r=>/^[a-z0-9\-]+$/i.test(r),OP=r=>"content/"+r+"/content.css",vG=r=>tinymce.Resource.has(OP(r)),Js=r=>l4(r,Bm(r)),yG=r=>l4(r,Wu(r)),l4=(r,g)=>{const B=r.editorManager.baseURL+"/skins/content",re=`content${r.editorManager.suffix}.css`;return ve(g,be=>vG(be)?be:gG(be)&&!r.inline?`${B}/${be}/${re}`:r.documentBaseURI.toAbsolute(be))},bG=r=>{r.contentCSS=r.contentCSS.concat(Js(r),yG(r))},xG=r=>r?Ee(r.getElementsByTagName("img")):[],_G=(r,g)=>{const B={};return{findAll:(re,be=q)=>{const Re=Te(xG(re),ct=>{const kt=ct.src;return ct.hasAttribute("data-mce-bogus")||ct.hasAttribute("data-mce-placeholder")||!kt||kt===fr.transparentSrc?!1:xr(kt,"blob:")?!r.isUploaded(kt)&&be(ct):xr(kt,"data:")?be(ct):!1}),Ke=ve(Re,ct=>{const kt=ct.src;if(_t(B,kt))return B[kt].then(Wt=>v(Wt)?Wt:{image:ct,blobInfo:Wt.blobInfo});{const Wt=sC(g,kt).then(Jt=>(delete B[kt],{image:ct,blobInfo:Jt})).catch(Jt=>(delete B[kt],Jt));return B[kt]=Wt,Wt}});return Promise.all(Ke)}}},SP=()=>{let B={};const H=(ln,kn)=>({status:ln,resultUri:kn}),re=ln=>ln in B;return{hasBlobUri:re,getResultUri:ln=>{const kn=B[ln];return kn?kn.resultUri:null},isPending:ln=>re(ln)?B[ln].status===1:!1,isUploaded:ln=>re(ln)?B[ln].status===2:!1,markPending:ln=>{B[ln]=H(1,null)},markUploaded:(ln,kn)=>{B[ln]=H(2,kn)},removeFailed:ln=>{delete B[ln]},destroy:()=>{B={}}}};let L2=0;const tm=()=>{const r=()=>Math.round(Math.random()*4294967295).toString(36);return"s"+new Date().getTime().toString(36)+r()+r()+r()},tk=r=>r+L2+++tm(),I2=()=>{let r=[];const g=Jt=>({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"})[Jt.toLowerCase()]||"dat",B=(Jt,ln,kn,Vn,Rn)=>{if(v(Jt))return H({id:Jt,name:Vn,filename:Rn,blob:ln,base64:kn});if(_(Jt))return H(Jt);throw new Error("Unknown input type")},H=Jt=>{if(!Jt.blob||!Jt.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const ln=Jt.id||tk("blobid"),kn=Jt.name||ln,Vn=Jt.blob;return{id:$(ln),name:$(kn),filename:$(Jt.filename||kn+"."+g(Vn.type)),blob:$(Vn),base64:$(Jt.base64),blobUri:$(Jt.blobUri||URL.createObjectURL(Vn)),uri:$(Jt.uri)}},re=Jt=>{Re(Jt.id())||r.push(Jt)},be=Jt=>De(r,Jt).getOrUndefined(),Re=Jt=>be(ln=>ln.id()===Jt);return{create:B,add:re,get:Re,getByUri:Jt=>be(ln=>ln.blobUri()===Jt),getByData:(Jt,ln)=>be(kn=>kn.base64()===Jt&&kn.blob().type===ln),findFirst:be,removeByUri:Jt=>{r=Te(r,ln=>ln.blobUri()===Jt?(URL.revokeObjectURL(ln.blobUri()),!1):!0)},destroy:()=>{ye(r,Jt=>{URL.revokeObjectURL(Jt.blobUri())}),r=[]}}},Dy=(r,g)=>{const B={},H=(Rn,qn)=>Rn?Rn.replace(/\/$/,"")+"/"+qn.replace(/^\//,""):qn,re=(Rn,qn)=>new Promise((pr,Tr)=>{const wr=new XMLHttpRequest;wr.open("POST",g.url),wr.withCredentials=g.credentials,wr.upload.onprogress=wo=>{qn(wo.loaded/wo.total*100)},wr.onerror=()=>{Tr("Image upload failed due to a XHR Transport error. Code: "+wr.status)},wr.onload=()=>{if(wr.status<200||wr.status>=300){Tr("HTTP Error: "+wr.status);return}const wo=JSON.parse(wr.responseText);if(!wo||!v(wo.location)){Tr("Invalid JSON: "+wr.responseText);return}pr(H(g.basePath,wo.location))};const Ur=new FormData;Ur.append("file",Rn.blob(),Rn.filename()),wr.send(Ur)}),be=C(g.handler)?g.handler:re,Re=()=>new Promise(Rn=>{Rn([])}),Ke=(Rn,qn)=>({url:qn,blobInfo:Rn,status:!0}),ct=(Rn,qn)=>({url:"",blobInfo:Rn,status:!1,error:qn}),kt=(Rn,qn)=>{mo.each(B[Rn],pr=>{pr(qn)}),delete B[Rn]},Wt=(Rn,qn,pr)=>(r.markPending(Rn.blobUri()),new Promise(Tr=>{let wr,Ur;try{const wo=()=>{wr&&(wr.close(),Ur=k)},jo=lo=>{wo(),r.markUploaded(Rn.blobUri(),lo),kt(Rn.blobUri(),Ke(Rn,lo)),Tr(Ke(Rn,lo))},di=lo=>{wo(),r.removeFailed(Rn.blobUri()),kt(Rn.blobUri(),ct(Rn,lo)),Tr(ct(Rn,lo))};Ur=lo=>{lo<0||lo>100||Y.from(wr).orThunk(()=>Y.from(pr).map(W)).each(eo=>{wr=eo,eo.progressBar.value(lo)})},qn(Rn,Ur).then(jo,lo=>{di(v(lo)?{message:lo}:lo)})}catch(wo){Tr(ct(Rn,wo))}})),Jt=Rn=>Rn===re,ln=Rn=>{const qn=Rn.blobUri();return new Promise(pr=>{B[qn]=B[qn]||[],B[qn].push(pr)})},kn=(Rn,qn)=>(Rn=mo.grep(Rn,pr=>!r.isUploaded(pr.blobUri())),Promise.all(mo.map(Rn,pr=>r.isPending(pr.blobUri())?ln(pr):Wt(pr,be,qn))));return{upload:(Rn,qn)=>!g.url&&Jt(be)?Re():kn(Rn,qn)}},c4=r=>()=>r.notificationManager.open({text:r.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),IC=(r,g)=>Dy(g,{url:Z1(r),basePath:uy(r),credentials:q1(r),handler:H0(r)}),kP=r=>{const g=SP(),B=IC(r,g);return{upload:(H,re=!0)=>B.upload(H,re?c4(r):void 0)}},gN=(r,g)=>r.dom.isEmpty(g.dom)&&E(r.schema.getTextBlockElements()[sa(g)]),vN=r=>g=>{gN(r,g)&&Ps(g,sr.fromHtml('
    '))},wG=r=>{const g=I2();let B,H;const re=SP(),be=[],Re=wr=>Ur=>r.selection?wr(Ur):[],Ke=wr=>wr+(wr.indexOf("?")===-1?"?":"&")+new Date().getTime(),ct=(wr,Ur,wo)=>{let jo=0;do jo=wr.indexOf(Ur,jo),jo!==-1&&(wr=wr.substring(0,jo)+wo+wr.substr(jo+Ur.length),jo+=wo.length-Ur.length+1);while(jo!==-1);return wr},kt=(wr,Ur,wo)=>{const jo=`src="${wo}"${wo===fr.transparentSrc?' data-mce-placeholder="1"':""}`;return wr=ct(wr,`src="${Ur}"`,jo),wr=ct(wr,'data-mce-src="'+Ur+'"','data-mce-src="'+wo+'"'),wr},Wt=(wr,Ur)=>{ye(r.undoManager.data,wo=>{wo.type==="fragmented"?wo.fragments=ve(wo.fragments,jo=>kt(jo,wr,Ur)):wo.content=kt(wo.content,wr,Ur)})},Jt=(wr,Ur)=>{const wo=r.convertURL(Ur,"src");Wt(wr.src,Ur),ef(sr.fromDom(wr),{src:Hc(r)?Ke(Ur):Ur,"data-mce-src":wo})},ln=()=>(B||(B=IC(r,re)),qn().then(Re(wr=>{const Ur=ve(wr,wo=>wo.blobInfo);return B.upload(Ur,c4(r)).then(Re(wo=>{const jo=[];let di=!1;const lo=ve(wo,(eo,xo)=>{const{blobInfo:bi,image:Bi}=wr[xo];let $a=!1;return eo.status&&_s(r)?(eo.url&&!Un(Bi.src,eo.url)&&(di=!0),g.removeByUri(Bi.src),Iy(r)||Jt(Bi,eo.url)):eo.error&&(eo.error.remove&&(Wt(Bi.src,fr.transparentSrc),jo.push(Bi),$a=!0),dG(r,eo.error.message)),{element:Bi,status:eo.status,uploadUri:eo.url,blobInfo:bi,removed:$a}});return jo.length>0&&!Iy(r)?r.undoManager.transact(()=>{ye(Ld(jo),eo=>{const xo=Hu(eo);ja(eo),xo.each(vN(r)),g.removeByUri(eo.dom.src)})}):di&&r.undoManager.dispatchChange(),lo}))}))),kn=()=>Qc(r)?ln():Promise.resolve([]),Vn=wr=>Oe(be,Ur=>Ur(wr)),Rn=wr=>{be.push(wr)},qn=()=>(H||(H=_G(re,g)),H.findAll(r.getBody(),Vn).then(Re(wr=>{const Ur=Te(wr,wo=>v(wo)?(RC(r,wo),!1):wo.uriType!=="blob");return Iy(r)||ye(Ur,wo=>{Wt(wo.image.src,wo.blobInfo.blobUri()),wo.image.src=wo.blobInfo.blobUri(),wo.image.removeAttribute("data-mce-src")}),Ur}))),pr=()=>{g.destroy(),re.destroy(),H=B=null},Tr=wr=>wr.replace(/src="(blob:[^"]+)"/g,(Ur,wo)=>{const jo=re.getResultUri(wo);if(jo)return'src="'+jo+'"';let di=g.getByUri(wo);return di||(di=Ie(r.editorManager.get(),(lo,eo)=>lo||eo.editorUpload&&eo.editorUpload.blobCache.getByUri(wo),void 0)),di?'src="data:'+di.blob().type+";base64,"+di.base64()+'"':Ur});return r.on("SetContent",()=>{Qc(r)?kn():qn()}),r.on("RawSaveContent",wr=>{wr.content=Tr(wr.content)}),r.on("GetContent",wr=>{wr.source_view||wr.format==="raw"||wr.format==="tree"||(wr.content=Tr(wr.content))}),r.on("PostRender",()=>{r.parser.addNodeFilter("img",wr=>{ye(wr,Ur=>{const wo=Ur.attr("src");if(!wo||g.getByUri(wo))return;const jo=re.getResultUri(wo);jo&&Ur.attr("src",jo)})})}),{blobCache:g,addFilter:Rn,uploadImages:ln,uploadImagesAuto:kn,scanForImages:qn,destroy:pr}},OG=r=>{const g=r.dom,B=r.schema.type,H={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:re=>{g.setStyle(re,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:re=>{g.setStyle(re,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const re={inline:"span",styles:{textDecoration:"line-through"},exact:!0},be={inline:"strike",remove:"all",preserve_attributes:["class","style"]},Re={inline:"s",remove:"all",preserve_attributes:["class","style"]};return B!=="html4"?[Re,re,be]:[re,Re,be]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(re,be,Re)=>ne(re)&&re.hasAttribute("href"),onformat:(re,be,Re)=>{mo.each(Re,(Ke,ct)=>{g.setAttrib(re,ct,Ke)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":re=>{var be;return(be=re==null?void 0:re.customValue)!==null&&be!==void 0?be:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return mo.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),re=>{H[re]={block:re,remove:"all"}}),H},TP={remove_similar:!0,inherit:!1},Yw={selector:"td,th",...TP},yN={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...Yw},tablecellverticalalign:{styles:{"vertical-align":"%value"},...Yw},tablecellbordercolor:{styles:{borderColor:"%value"},...Yw},tablecellclass:{classes:["%value"],...Yw},tableclass:{selector:"table",classes:["%value"],...TP},tablecellborderstyle:{styles:{borderStyle:"%value"},...Yw},tablecellborderwidth:{styles:{borderWidth:"%value"},...Yw}},bN=$(yN),CP=r=>{const g={},B=Re=>E(Re)?g[Re]:g,H=Re=>_t(g,Re),re=(Re,Ke)=>{Re&&(v(Re)?(A(Ke)||(Ke=[Ke]),ye(Ke,ct=>{M(ct.deep)&&(ct.deep=!$m(ct)),M(ct.split)&&(ct.split=!$m(ct)||Mf(ct)),M(ct.remove)&&$m(ct)&&!Mf(ct)&&(ct.remove="none"),$m(ct)&&Mf(ct)&&(ct.mixed=!0,ct.block_expand=!0),v(ct.classes)&&(ct.classes=ct.classes.split(/\s+/))}),g[Re]=Ke):Ge(Re,(ct,kt)=>{re(kt,ct)}))},be=Re=>(Re&&g[Re]&&delete g[Re],g);return re(OG(r)),re(bN()),re(Tb(r)),{get:B,has:H,register:re,unregister:be}},AP=mo.each,m0=Nl.DOM,xN=r=>E(r)&&_(r),_N=(r,g)=>{const B=g&&g.schema||Np({}),H=(ct,kt)=>{kt.classes.length>0&&m0.addClass(ct,kt.classes.join(" ")),m0.setAttribs(ct,kt.attrs)},re=ct=>{const kt=v(ct)?{name:ct,classes:[],attrs:{}}:ct,Wt=m0.create(kt.name);return H(Wt,kt),Wt},be=(ct,kt)=>{const Wt=B.getElementRule(ct.nodeName.toLowerCase()),Jt=Wt==null?void 0:Wt.parentsRequired;return Jt&&Jt.length?kt&&ce(Jt,kt)?kt:Jt[0]:!1},Re=(ct,kt,Wt)=>{let Jt;const ln=kt[0],kn=xN(ln)?ln.name:void 0,Vn=be(ct,kn);if(Vn)kn===Vn?(Jt=ln,kt=kt.slice(1)):Jt=Vn;else if(ln)Jt=ln,kt=kt.slice(1);else if(!Wt)return ct;const Rn=Jt?re(Jt):m0.create("div");Rn.appendChild(ct),Wt&&mo.each(Wt,pr=>{const Tr=re(pr);Rn.insertBefore(Tr,ct)});const qn=xN(Jt)?Jt.siblings:void 0;return Re(Rn,kt,qn)},Ke=m0.create("div");if(r.length>0){const ct=r[0],kt=re(ct),Wt=xN(ct)?ct.siblings:void 0;Ke.appendChild(Re(kt,r.slice(1),Wt))}return Ke},SG=r=>{r=mo.trim(r);let g="div";const B={name:g,classes:[],attrs:{},selector:r};return r!=="*"&&(g=r.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(H,re,be,Re,Ke)=>{switch(re){case"#":B.attrs.id=be;break;case".":B.classes.push(be);break;case":":mo.inArray("checked disabled enabled read-only required".split(" "),be)!==-1&&(B.attrs[be]=be);break}if(Re==="["){const ct=Ke.match(/([\w\-]+)(?:\=\"([^\"]+))?/);ct&&(B.attrs[ct[1]]=ct[2])}return""})),B.name=g||"div",B},By=r=>v(r)?(r=r.split(/\s*,\s*/)[0],r=r.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),mo.map(r.split(/(?:>|\s+(?![^\[\]]+\]))/),g=>{const B=mo.map(g.split(/(?:~\+|~|\+)/),SG),H=B.pop();return B.length&&(H.siblings=B),H}).reverse()):[],sfe=(r,g)=>{let B="",H=tw(r);if(H==="")return"";const re=ln=>v(ln)?ln.replace(/%(\w+)/g,""):"",be=(ln,kn)=>m0.getStyle(kn??r.getBody(),ln,!0);if(v(g)){const ln=r.formatter.get(g);if(!ln)return"";g=ln[0]}if("preview"in g){const ln=g.preview;if(ln===!1)return"";H=ln||H}let Re=g.block||g.inline||"span",Ke;const ct=By(g.selector);ct.length>0?(ct[0].name||(ct[0].name=Re),Re=g.selector,Ke=_N(ct,r)):Ke=_N([Re],r);const kt=m0.select(Re,Ke)[0]||Ke.firstChild;AP(g.styles,(ln,kn)=>{const Vn=re(ln);Vn&&m0.setStyle(kt,kn,Vn)}),AP(g.attributes,(ln,kn)=>{const Vn=re(ln);Vn&&m0.setAttrib(kt,kn,Vn)}),AP(g.classes,ln=>{const kn=re(ln);m0.hasClass(kt,kn)||m0.addClass(kt,kn)}),r.dispatch("PreviewFormats"),m0.setStyles(Ke,{position:"absolute",left:-65535}),r.getBody().appendChild(Ke);const Wt=be("fontSize"),Jt=/px$/.test(Wt)?parseInt(Wt,10):0;return AP(H.split(" "),ln=>{let kn=be(ln,kt);if(!(ln==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(kn)&&(kn=be(ln),Am(kn).toLowerCase()==="#ffffff"))&&!(ln==="color"&&Am(kn).toLowerCase()==="#000000")){if(ln==="font-size"&&/em|%$/.test(kn)){if(Jt===0)return;kn=parseFloat(kn)/(/%$/.test(kn)?100:1)*Jt+"px"}ln==="border"&&kn&&(B+="padding:0 2px;"),B+=ln+":"+kn+";"}}),r.dispatch("AfterPreviewFormats"),m0.remove(Ke),B},lfe=r=>{r.addShortcut("meta+b","","Bold"),r.addShortcut("meta+i","","Italic"),r.addShortcut("meta+u","","Underline");for(let g=1;g<=6;g++)r.addShortcut("access+"+g,"",["FormatBlock",!1,"h"+g]);r.addShortcut("access+7","",["FormatBlock",!1,"p"]),r.addShortcut("access+8","",["FormatBlock",!1,"div"]),r.addShortcut("access+9","",["FormatBlock",!1,"address"])},wN=r=>{const g=CP(r),B=mr({});return lfe(r),Az(r),Iy(r)||Qz(B,r),{get:g.get,has:g.has,register:g.register,unregister:g.unregister,apply:(H,re,be)=>{GF(r,H,re,be)},remove:(H,re,be,Re)=>{kX(r,H,re,be,Re)},toggle:(H,re,be)=>{TX(r,H,re,be)},match:(H,re,be,Re)=>CC(r,H,re,be,Re),closest:H=>XF(r,H),matchAll:(H,re)=>wX(r,H,re),matchNode:(H,re,be,Re)=>OX(r,H,re,be,Re),canApply:H=>SX(r,H),formatChanged:(H,re,be,Re)=>CX(r,B,H,re,be,Re),getCssText:U(sfe,r)}},u4=r=>{switch(r.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},kG=(r,g,B)=>{const H=mr(!1),re=ct=>{n4(g,!1,B),g.add({},ct)};r.on("init",()=>{g.add()}),r.on("BeforeExecCommand",ct=>{const kt=ct.command;u4(kt)||(zF(g,B),g.beforeChange())}),r.on("ExecCommand",ct=>{const kt=ct.command;u4(kt)||re(ct)}),r.on("ObjectResizeStart cut",()=>{g.beforeChange()}),r.on("SaveContent ObjectResized blur",re),r.on("dragend",re),r.on("keyup",ct=>{const kt=ct.keyCode;if(ct.isDefaultPrevented())return;const Wt=fr.os.isMacOS()&&ct.key==="Meta";(kt>=33&&kt<=36||kt>=37&&kt<=40||kt===45||ct.ctrlKey||Wt)&&(re(),r.nodeChanged()),(kt===46||kt===8)&&r.nodeChanged(),H.get()&&g.typing&&!lP(OC(r),g.data[0])&&(r.isDirty()||r.setDirty(!0),r.dispatch("TypingUndo"),H.set(!1),r.nodeChanged())}),r.on("keydown",ct=>{const kt=ct.keyCode;if(ct.isDefaultPrevented())return;if(kt>=33&&kt<=36||kt>=37&&kt<=40||kt===45){g.typing&&re(ct);return}const Wt=ct.ctrlKey&&!ct.altKey||ct.metaKey;if((kt<16||kt>20)&&kt!==224&&kt!==91&&!g.typing&&!Wt){g.beforeChange(),n4(g,!0,B),g.add({},ct),H.set(!0);return}(fr.os.isMacOS()?ct.metaKey:ct.ctrlKey&&!ct.altKey)&&g.beforeChange()}),r.on("mousedown",ct=>{g.typing&&re(ct)});const be=ct=>ct.inputType==="insertReplacementText",Re=ct=>ct.inputType==="insertText"&&ct.data===null,Ke=ct=>ct.inputType==="insertFromPaste"||ct.inputType==="insertFromDrop";r.on("input",ct=>{ct.inputType&&(be(ct)||Re(ct)||Ke(ct))&&re(ct)}),r.on("AddUndo Undo Redo ClearUndos",ct=>{ct.isDefaultPrevented()||r.nodeChanged()})},ON=r=>{r.addShortcut("meta+z","","Undo"),r.addShortcut("meta+y,meta+shift+z","","Redo")},MP=r=>{const g=Ys(),B=mr(0),H=mr(0),re={data:[],typing:!1,beforeChange:()=>{QF(r,B,g)},add:(be,Re)=>fP(r,re,H,B,g,be,Re),dispatchChange:()=>{r.setDirty(!0);const be=OC(r);be.bookmark=Ja(r.selection),r.dispatch("change",{level:be,lastLevel:Ze(re.data,H.get()).getOrUndefined()})},undo:()=>HF(r,re,B,H),redo:()=>ZF(r,H,re.data),clear:()=>{dP(r,re,H)},reset:()=>{qF(r,re)},hasUndo:()=>WF(r,re,H),hasRedo:()=>YF(r,re,H),transact:be=>xX(r,re,B,be),ignore:be=>{hP(r,B,be)},extra:(be,Re)=>{_X(r,re,H,be,Re)}};return Iy(r)||kG(r,re,B),ON(r),re},SN=[9,27,Fo.HOME,Fo.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Fo.DOWN,Fo.UP,Fo.LEFT,Fo.RIGHT].concat(fr.browser.isFirefox()?[224]:[]),kN="data-mce-placeholder",TN=r=>r.type==="keydown"||r.type==="keyup",nx=r=>{const g=r.keyCode;return g===Fo.BACKSPACE||g===Fo.DELETE},TG=r=>{if(TN(r)){const g=r.keyCode;return!nx(r)&&(Fo.metaKeyPressed(r)||r.altKey||g>=112&&g<=123||ce(SN,g))}else return!1},CG=r=>TN(r)&&!(nx(r)||r.type==="keyup"&&r.keyCode===229),AG=(r,g,B)=>{if(r.isEmpty(g,void 0,{skipBogus:!1,includeZwsp:!0})){const H=g.firstElementChild;return H?r.getStyle(g.firstElementChild,"padding-left")||r.getStyle(g.firstElementChild,"padding-right")?!1:B===H.nodeName.toLowerCase():!0}else return!1},MG=r=>{var g;const B=r.dom,H=dc(r),re=(g=dy(r))!==null&&g!==void 0?g:"",be=(Re,Ke)=>{if(TG(Re))return;const ct=r.getBody(),kt=CG(Re)?!1:AG(B,ct,H);(B.getAttrib(ct,kN)!==""!==kt||Ke)&&(B.setAttrib(ct,kN,kt?re:null),P3(r,kt),r.on(kt?"keydown":"keyup",be),r.off(kt?"keyup":"keydown",be))};Kn(re)&&r.on("init",Re=>{be(Re,!0),r.on("change SetContent ExecCommand",be),r.on("paste",Ke=>kg.setEditorTimeout(r,()=>be(Ke)))})},EG=(r,g)=>({block:r,position:g}),PG=(r,g)=>({from:r,to:g}),EP=(r,g)=>{const B=sr.fromDom(r),H=sr.fromDom(g.container());return C6(B,H).map(re=>EG(re,g))},RG=r=>!(Qu(r.to.block,r.from.block)||Qu(r.from.block,r.to.block)),LG=r=>!Fa(r.from.block,r.to.block),nk=(r,g)=>Ya(g,re=>z1(re)||Sn(re.dom),re=>Fa(re,r)).filter(mc).getOr(r),IG=(r,g)=>{const B=sr.fromDom(r);return Fa(nk(B,g.from.block),nk(B,g.to.block))},DG=r=>rr(r.from.block.dom)===!1&&rr(r.to.block.dom)===!1,cfe=r=>{const g=B=>Q_(B)||Rl(B.dom)||nh(B);return g(r.from.block)&&g(r.to.block)},rk=(r,g,B,H)=>On(H.position.getNode())&&!Pi(r,H.block)?Nb(!1,H.block.dom).bind(re=>re.isEqual(H.position)?Yp(B,g,re).bind(be=>EP(g,be)):Y.some(H)).getOr(H):H,BG=(r,g,B,H)=>{const re=EP(g,qr.fromRangeStart(H)),be=re.bind(Re=>Yp(B,g,Re.position).bind(Ke=>EP(g,Ke).map(ct=>rk(r,g,B,ct))));return cs(re,be,PG).filter(Re=>LG(Re)&&IG(g,Re)&&DG(Re)&&cfe(Re)&&RG(Re))},PP=(r,g,B,H)=>H.collapsed?BG(r,g,B,H):Y.none(),zG=(r,g)=>{const B=Oc(r);return He(B,H=>g.isBlock(sa(H))).fold($(B),H=>B.slice(0,H))},CN=(r,g)=>{const B=zG(r,g);return ye(B,ja),B},AN=(r,g,B)=>{const H=Yb(B,g);return De(H.reverse(),re=>Pi(r,re)).each(ja)},FG=(r,g)=>Te(vh(g),B=>!Pi(r,B)).length===0,Xw=(r,g,B,H,re)=>{if(Pi(H,B))return rh(B),lh(B.dom);FG(H,re)&&Pi(H,g)&&Fc(re,sr.fromTag("br"));const be=mp(B.dom,qr.before(re.dom));return ye(CN(g,H),Re=>{Fc(re,Re)}),AN(H,r,g),be},Gw=(r,g)=>r.isInline(sa(g)),DC=(r,g,B,H)=>{if(Pi(H,B)){if(Pi(H,g)){const Re=Pe((Ke=>{const ct=(kt,Wt)=>Uf(kt).fold(()=>Wt,Jt=>Gw(H,Jt)?ct(Jt,Wt.concat(Th(Jt))):Wt);return ct(Ke,[])})(B),(Ke,ct)=>(Sc(Ke,ct),ct),F1());gu(g),Ps(g,Re)}return ja(B),lh(g.dom)}const re=Xp(B.dom);return ye(CN(g,H),be=>{Ps(B,be)}),AN(H,r,g),re},BC=(r,g)=>{const B=Yb(g,r);return Y.from(B[B.length-1])},Kw=(r,g)=>Qu(g,r)?BC(g,r):Y.none(),D2=(r,g)=>{Nb(r,g.dom).bind(B=>Y.from(B.getNode())).map(sr.fromDom).filter(N0).each(ja)},ok=(r,g,B,H)=>(D2(!0,g),D2(!1,B),Kw(g,B).fold(U(DC,r,g,B,H),U(Xw,r,g,B,H))),ik=(r,g,B,H,re)=>g?ok(r,H,B,re):ok(r,B,H,re),zC=(r,g)=>{const B=sr.fromDom(r.getBody());return PP(r.schema,B.dom,g,r.selection.getRng()).map(re=>()=>{ik(B,g,re.from.block,re.to.block,r.schema).each(be=>{r.selection.setRng(be.toRange())})})},RP=(r,g,B)=>{const H=g.getRng();return cs(C6(r,sr.fromDom(H.startContainer)),C6(r,sr.fromDom(H.endContainer)),(re,be)=>Fa(re,be)?Y.none():Y.some(()=>{H.deleteContents(),ik(r,!0,re,be,B).each(Re=>{g.setRng(Re.toRange())})})).getOr(Y.none())},FC=(r,g)=>{const B=sr.fromDom(g),H=U(Fa,r);return ms(B,z1,H).isSome()},MN=(r,g)=>FC(r,g.startContainer)||FC(r,g.endContainer),EN=(r,g)=>{const B=mp(r.dom,qr.fromRangeStart(g)).isNone(),H=sh(r.dom,qr.fromRangeEnd(g)).isNone();return!MN(r,g)&&B&&H},f4=r=>Y.some(()=>{r.setContent(""),r.selection.setCursorLocation()}),PN=r=>{const g=sr.fromDom(r.getBody()),B=r.selection.getRng();return EN(g,B)?f4(r):RP(g,r.selection,r.schema)},NC=(r,g)=>r.selection.isCollapsed()?Y.none():PN(r),zy=(r,g,B,H,re)=>Y.from(g._selectionOverrides.showCaret(r,B,H,re)),$C=r=>{const g=r.ownerDocument.createRange();return g.selectNode(r),g},d4=(r,g)=>r.dispatch("BeforeObjectSelected",{target:g}).isDefaultPrevented()?Y.none():Y.some($C(g)),RN=(r,g,B)=>{const H=$d(1,r.getBody(),g),re=qr.fromRangeStart(H),be=re.getNode();if(l3(be))return zy(1,r,be,!re.isAtEnd(),!1);const Re=re.getNode(!0);if(l3(Re))return zy(1,r,Re,!1,!1);const Ke=Gb(r.dom.getRoot(),re.getNode());return l3(Ke)?zy(1,r,Ke,!1,B):Y.none()},VC=(r,g,B)=>g.collapsed?RN(r,g,B).getOr(g):g,LN=r=>Ey(r)||Li(r),rx=r=>k2(r)||U3(r),B2=(r,g)=>{Nt(g)&&g.data.length===0&&r.remove(g)},g0=(r,g,B,H,re,be)=>{zy(H,r,be.getNode(!re),re,!0).each(Re=>{if(g.collapsed){const Ke=g.cloneRange();re?Ke.setEnd(Re.startContainer,Re.startOffset):Ke.setStart(Re.endContainer,Re.endOffset),Ke.deleteContents()}else g.deleteContents();r.selection.setRng(Re)}),B2(r.dom,B)},NG=(r,g)=>{const B=r.selection.getRng();if(!Nt(B.commonAncestorContainer))return Y.none();const H=g?Af.Forwards:Af.Backwards,re=Od(r.getBody()),be=U(IS,g?re.next:re.prev),Re=g?LN:rx,Ke=zb(H,r.getBody(),B),ct=be(Ke),kt=ct&&Tg(g,ct);if(!kt||!h3(Ke,kt))return Y.none();if(Re(kt))return Y.some(()=>g0(r,B,Ke.getNode(),H,g,kt));const Wt=be(kt);return Wt&&Re(Wt)&&h3(kt,Wt)?Y.some(()=>g0(r,B,Ke.getNode(),H,g,Wt)):Y.none()},LP=(r,g)=>NG(r,g),IP=(r,g)=>{const B=r.getBody();return g?lh(B).filter(Ey):Xp(B).filter(k2)},DP=r=>{const g=r.selection.getRng();return!g.collapsed&&(IP(r,!0).exists(B=>B.isEqual(qr.fromRangeStart(g)))||IP(r,!1).exists(B=>B.isEqual(qr.fromRangeEnd(g))))},$G=r=>E(r)&&(z1(sr.fromDom(r))||nh(sr.fromDom(r))),Ag=aa.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),VG=(r,g)=>{const B=g.getNode(!r),H=r?"after":"before";return ne(B)&&B.getAttribute("data-mce-caret")===H},UG=(r,g,B,H,re)=>{const be=Re=>re.isInline(Re.nodeName.toLowerCase())&&!Wp(B,H,r);return f3(!g,B).fold(()=>f3(g,H).fold(oe,be),be)},IN=(r,g,B,H,re)=>{const be=re.getNode(!B);return C6(sr.fromDom(g),sr.fromDom(H.getNode())).map(Re=>Pi(r,Re)?Ag.remove(Re.dom):Ag.moveToElement(be)).orThunk(()=>Y.some(Ag.moveToElement(be)))},DN=(r,g,B,H)=>Yp(g,r,B).bind(re=>$G(re.getNode())||UG(r,g,B,re,H)?Y.none():g&&rr(re.getNode())||!g&&rr(re.getNode(!0))?IN(H,r,g,B,re):g&&k2(B)||!g&&Ey(B)?Y.some(Ag.moveToPosition(re)):Y.none()),jG=(r,g)=>T(g)?Y.none():r&&rr(g.nextSibling)?Y.some(Ag.moveToElement(g.nextSibling)):!r&&rr(g.previousSibling)?Y.some(Ag.moveToElement(g.previousSibling)):Y.none(),QG=(r,g,B)=>B.fold(H=>Y.some(Ag.remove(H)),H=>Y.some(Ag.moveToElement(H)),H=>Wp(g,H,r)?Y.none():Y.some(Ag.moveToPosition(H))),BP=(r,g,B,H)=>VG(g,B)?jG(g,B.getNode(!g)).orThunk(()=>DN(r,g,B,H)):DN(r,g,B,H).bind(re=>QG(r,B,re)),zP=(r,g,B,H)=>{const re=$d(g?1:-1,r,B),be=qr.fromRangeStart(re),Re=sr.fromDom(r);return!g&&k2(be)?Y.some(Ag.remove(be.getNode(!0))):g&&Ey(be)?Y.some(Ag.remove(be.getNode())):!g&&Ey(be)&&VE(Re,be,H)?MB(Re,be,H).map(Ke=>Ag.remove(Ke.getNode())):g&&k2(be)&&AB(Re,be,H)?wW(Re,be,H).map(Ke=>Ag.remove(Ke.getNode())):BP(r,g,be,H)},BN=(r,g)=>B=>(r._selectionOverrides.hideFakeCaret(),Ew(r,g,sr.fromDom(B)),!0),HG=(r,g)=>B=>{const H=g?qr.before(B):qr.after(B);return r.selection.setRng(H.toRange()),!0},ZG=r=>g=>(r.selection.setRng(g.toRange()),!0),FP=(r,g)=>Y.from(Gb(r.getBody(),g)),zN=(r,g)=>{const B=r.selection.getNode();return FP(r,B).filter(rr).fold(()=>zP(r.getBody(),g,r.selection.getRng(),r.schema).map(H=>()=>H.fold(BN(r,g),HG(r,g),ZG(r))),()=>Y.some(k))},NP=r=>{ye(Zl(r,".mce-offscreen-selection"),ja)},FN=(r,g)=>{const B=r.selection.getNode();return rr(B)&&!Dr(B)?FP(r,B.parentNode).filter(rr).fold(()=>Y.some(()=>{NP(sr.fromDom(r.getBody())),Ew(r,g,sr.fromDom(r.selection.getNode())),hc(r)}),()=>Y.some(k)):DP(r)?Y.some(()=>{KB(r,r.selection.getRng(),sr.fromDom(r.getBody()))}):Y.none()},$P=r=>{const g=r.dom,B=r.selection,H=Gb(r.getBody(),B.getNode());if(Sn(H)&&g.isBlock(H)&&g.isEmpty(H)){const re=g.create("br",{"data-mce-bogus":"1"});g.setHTML(H,""),H.appendChild(re),B.setRng(qr.before(re).toRange())}return!0},ak=(r,g)=>r.selection.isCollapsed()?zN(r,g):FN(r,g),NN=r=>r.hasOwnProperty("text"),$N=r=>r.hasOwnProperty("marker"),xv=(r,g)=>{const B=(be,Re)=>{if(Nt(be))return{text:be,offset:Re};{const Ke=g(),ct=be.childNodes;return Re{var g,B;const{start:H,end:re}=r,be=new window.Range;return NN(H)?be.setStart(H.text,H.offset):$N(H)&&(H.before?be.setStartBefore(H.marker):be.setStartAfter(H.marker),(g=H.marker.parentNode)===null||g===void 0||g.removeChild(H.marker)),NN(re)?be.setEnd(re.text,re.offset):$N(re)&&(re.before?be.setEndBefore(re.marker):be.setEndAfter(re.marker),(B=re.marker.parentNode)===null||B===void 0||B.removeChild(re.marker)),be},h4=(r,g)=>{var B;const H=r.dom,re=H.getParent(r.selection.getStart(),H.isBlock),be=H.getParent(r.selection.getEnd(),H.isBlock),Re=r.getBody();if(((B=re==null?void 0:re.nodeName)===null||B===void 0?void 0:B.toLowerCase())==="div"&&re&&be&&re===Re.firstChild&&be===Re.lastChild&&!H.isEmpty(Re)){const ct=re.cloneNode(!1),kt=()=>{if(g?GB(r):T6(r),Re.firstChild!==re){const Wt=xv(r.selection.getRng(),()=>document.createElement("span"));Array.from(Re.childNodes).forEach(Jt=>ct.appendChild(Jt)),Re.appendChild(ct),r.selection.setRng(v0(Wt))}};return Y.some(kt)}return Y.none()},VN=(r,g)=>{const B=qr.fromRangeStart(r.selection.getRng());return Yp(g,r.getBody(),B).filter(H=>g?vW(H):yW(H)).bind(H=>u3(g?0:-1,H)).map(H=>()=>r.selection.select(H))},p4=(r,g)=>r.selection.isCollapsed()?VN(r,g):Y.none(),Jw=Nt,VP=r=>Jw(r)&&r.data[0]===nc,UP=r=>Jw(r)&&r.data[r.data.length-1]===nc,jP=r=>{var g;return((g=r.ownerDocument)!==null&&g!==void 0?g:document).createTextNode(nc)},UN=r=>{var g;if(Jw(r.previousSibling))return UP(r.previousSibling)||r.previousSibling.appendData(nc),r.previousSibling;if(Jw(r))return VP(r)||r.insertData(0,nc),r;{const B=jP(r);return(g=r.parentNode)===null||g===void 0||g.insertBefore(B,r),B}},jN=r=>{var g,B;if(Jw(r.nextSibling))return VP(r.nextSibling)||r.nextSibling.insertData(0,nc),r.nextSibling;if(Jw(r))return UP(r)||r.appendData(nc),r;{const H=jP(r);return r.nextSibling?(g=r.parentNode)===null||g===void 0||g.insertBefore(H,r.nextSibling):(B=r.parentNode)===null||B===void 0||B.appendChild(H),H}},eO=(r,g)=>r?UN(g):jN(g),QP=U(eO,!0),qG=U(eO,!1),QN=(r,g)=>Nt(r.container())?eO(g,r.container()):eO(g,r.getNode()),HN=(r,g)=>{const B=g.get();return B&&r.container()===B&&oh(B)},HP=(r,g)=>g.fold(B=>{by(r.get());const H=QP(B);return r.set(H),Y.some(qr(H,H.length-1))},B=>lh(B).map(H=>{if(HN(H,r)){const re=r.get();return qr(re,1)}else{by(r.get());const re=QN(H,!0);return r.set(re),qr(re,1)}}),B=>Xp(B).map(H=>{if(HN(H,r)){const re=r.get();return qr(re,re.length-1)}else{by(r.get());const re=QN(H,!1);return r.set(re),qr(re,re.length-1)}}),B=>{by(r.get());const H=qG(B);return r.set(H),Y.some(qr(H,1))}),ZP=(r,g)=>{for(let B=0;B{const B=c0(g,r);return B||r},qP=(r,g,B)=>{const H=Xh(B),re=ZN(g,H.container());return Xb(r,re,H).fold(()=>sh(re,H).bind(U(Xb,r,re)).map(be=>bp.before(be)),Y.none)},WG=(r,g)=>$b(r,g)===null,qN=(r,g,B)=>Xb(r,g,B).filter(U(WG,g)),YG=(r,g,B)=>{const H=YB(B);return qN(r,g,H).bind(re=>mp(re,H).isNone()?Y.some(bp.start(re)):Y.none())},XG=(r,g,B)=>{const H=Xh(B);return qN(r,g,H).bind(re=>sh(re,H).isNone()?Y.some(bp.end(re)):Y.none())},GG=(r,g,B)=>{const H=YB(B),re=ZN(g,H.container());return Xb(r,re,H).fold(()=>mp(re,H).bind(U(Xb,r,re)).map(be=>bp.after(be)),Y.none)},WN=r=>!ZB(m4(r)),Fy=(r,g,B)=>ZP([qP,YG,XG,GG],[r,g,B]).filter(WN),m4=r=>r.fold(Q,Q,Q,Q),UC=r=>r.fold($("before"),$("start"),$("end"),$("after")),jC=r=>r.fold(bp.before,bp.before,bp.after,bp.after),WP=r=>r.fold(bp.start,bp.start,bp.end,bp.end),KG=(r,g)=>UC(r)===UC(g)&&m4(r)===m4(g),JG=(r,g,B,H,re,be)=>cs(Xb(g,B,H),Xb(g,B,re),(Re,Ke)=>Re!==Ke&&qB(B,Re,Ke)?bp.after(r?Re:Ke):be).getOr(be),YN=(r,g)=>r.fold(q,B=>!KG(B,g)),eK=(r,g,B,H,re)=>{const be=Tg(r,re);return Yp(r,B,be).map(U(Tg,r)).fold(()=>H.map(jC),ct=>Fy(g,B,ct).map(U(JG,r,g,B,be,ct)).filter(U(YN,H))).filter(WN)},tK=(r,g)=>r?g.fold(I(Y.some,bp.start),Y.none,I(Y.some,bp.after),Y.none):g.fold(Y.none,I(Y.some,bp.before),Y.none,I(Y.some,bp.end)),YP=(r,g,B,H)=>{const re=Tg(r,H),be=Fy(g,B,re);return Fy(g,B,re).bind(U(tK,r)).orThunk(()=>eK(r,g,B,be,H))},nK=r=>C(r.selection.getSel().modify),XN=(r,g,B)=>{const H=r?1:-1;return g.setRng(qr(B.container(),B.offset()+H).toRange()),g.getSel().modify("move",r?"forward":"backward","word"),!0},rK=(r,g)=>{const B=g.selection.getRng(),H=r?qr.fromRangeEnd(B):qr.fromRangeStart(B);return nK(g)?r&&V0(H)?XN(!0,g.selection,H):!r&&Up(H)?XN(!1,g.selection,H):!1:!1};var Ny;(function(r){r[r.Br=0]="Br",r[r.Block=1]="Block",r[r.Wrap=2]="Wrap",r[r.Eol=3]="Eol"})(Ny||(Ny={}));const QC=(r,g)=>r===Af.Backwards?ke(g):g,oK=(r,g,B)=>r===Af.Forwards?g.next(B):g.prev(B),iK=(r,g,B,H)=>On(H.getNode(g===Af.Forwards))?Ny.Br:Wp(B,H)===!1?Ny.Block:Ny.Wrap,sk=(r,g,B,H)=>{const re=Od(B);let be=H;const Re=[];for(;be;){const Ke=oK(g,re,be);if(!Ke)break;if(On(Ke.getNode(!1)))return g===Af.Forwards?{positions:QC(g,Re).concat([Ke]),breakType:Ny.Br,breakAt:Y.some(Ke)}:{positions:QC(g,Re),breakType:Ny.Br,breakAt:Y.some(Ke)};if(!Ke.isVisible()){be=Ke;continue}if(r(be,Ke)){const ct=iK(B,g,be,Ke);return{positions:QC(g,Re),breakType:ct,breakAt:Y.some(Ke)}}Re.push(Ke),be=Ke}return{positions:QC(g,Re),breakType:Ny.Eol,breakAt:Y.none()}},lk=(r,g,B,H)=>g(B,H).breakAt.map(re=>{const be=g(B,re).positions;return r===Af.Backwards?be.concat(re):[re].concat(be)}).getOr([]),XP=(r,g)=>Ie(r,(B,H)=>B.fold(()=>Y.some(H),re=>cs(Xe(re.getClientRects()),Xe(H.getClientRects()),(be,Re)=>{const Ke=Math.abs(g-be.left);return Math.abs(g-Re.left)<=Ke?H:re}).or(B)),Y.none()),HC=(r,g)=>Xe(g.getClientRects()).bind(B=>XP(r,B.left)),z2=U(sk,qr.isAbove,-1),ck=U(sk,qr.isBelow,1),GN=U(lk,-1,z2),KN=U(lk,1,ck),JN=(r,g)=>z2(r,g).breakAt.isNone(),e$=(r,g)=>ck(r,g).breakAt.isNone(),aK=r=>lh(r).map(g=>[g].concat(ck(r,g).positions)).getOr([]),sK=r=>Xp(r).map(g=>z2(r,g).positions.concat(g)).getOr([]),lK=(r,g)=>HC(GN(r,g),g),cK=(r,g)=>HC(KN(r,g),g),uK=rr,t$=(r,g)=>Math.abs(r.left-g),fK=(r,g)=>Math.abs(r.right-g),l1=r=>nn(r,"node"),ZC=(r,g)=>it(r,(B,H)=>{const re=Math.min(t$(B,g),fK(B,g)),be=Math.min(t$(H,g),fK(H,g));return be===re&&l1(H)&&uK(H.node)||be{const g=B=>ve(B,H=>{const re=i0(H);return re.node=r,re});if(ne(r))return g(r.getClientRects());if(Nt(r)){const B=r.ownerDocument.createRange();return B.setStart(r,0),B.setEnd(r,r.data.length),g(B.getClientRects())}else return[]},GP=r=>$e(r,n$);var uk;(function(r){r[r.Up=-1]="Up",r[r.Down=1]="Down"})(uk||(uk={}));const r$=(r,g,B,H)=>{let re=H;for(;re=u2(re,r,Zx,g);)if(B(re))return},o$=(r,g,B,H,re,be)=>{let Re=0;const Ke=[],ct=Jt=>{let ln=GP([Jt]);r===-1&&(ln=ln.reverse());for(let kn=0;kn0&&g(Vn,Lt(Ke))&&Re++,Vn.line=Re,re(Vn))return!0;Ke.push(Vn)}}return!1},kt=Lt(be.getClientRects());if(!kt)return Ke;const Wt=be.getNode();return Wt&&(ct(Wt),r$(r,H,ct,Wt)),Ke},i$=(r,g)=>g.line>r,dK=(r,g)=>g.line===r,hK=U(o$,uk.Up,V1,Ux),pK=U(o$,uk.Down,Ux,V1),tO=r=>Lt(r.getClientRects()),a$=(r,g,B,H)=>{const re=Od(g);let be,Re,Ke,ct;const kt=[];let Wt=0;r===1?(be=re.next,Re=Ux,Ke=V1,ct=qr.after(H)):(be=re.prev,Re=V1,Ke=Ux,ct=qr.before(H));const Jt=tO(ct);do{if(!ct.isVisible())continue;const ln=tO(ct);if(Ke(ln,Jt))continue;kt.length>0&&Re(ln,Lt(kt))&&Wt++;const kn=i0(ln);if(kn.position=ct,kn.line=Wt,B(kn))return kt;kt.push(kn)}while(ct=be(ct));return kt},KP=r=>g=>i$(r,g),qC=r=>g=>dK(r,g),_v=(r,g)=>{r.selection.setRng(g),m5(r,r.selection.getRng())},JP=(r,g,B)=>Y.some(VC(r,g,B)),s$=(r,g,B,H,re,be)=>{const Re=g===Af.Forwards,Ke=Od(r.getBody()),ct=U(IS,Re?Ke.next:Ke.prev),kt=Re?H:re;if(!B.collapsed){const Vn=Pm(B);if(be(Vn))return zy(g,r,Vn,g===Af.Backwards,!1);if(DP(r)){const Rn=B.cloneRange();return Rn.collapse(g===Af.Backwards),Y.from(Rn)}}const Wt=zb(g,r.getBody(),B);if(kt(Wt))return d4(r,Wt.getNode(!Re));let Jt=ct(Wt);const ln=yd(B);if(Jt)Jt=Tg(Re,Jt);else return ln?Y.some(B):Y.none();if(kt(Jt))return zy(g,r,Jt.getNode(!Re),Re,!1);const kn=ct(Jt);return kn&&kt(kn)&&h3(Jt,kn)?zy(g,r,kn.getNode(!Re),Re,!1):ln?JP(r,Jt.toRange(),!1):Y.none()},l$=(r,g,B,H,re,be)=>{const Re=zb(g,r.getBody(),B),Ke=Lt(Re.getClientRects()),ct=g===uk.Down,kt=r.getBody();if(!Ke)return Y.none();if(DP(r)){const qn=ct?qr.fromRangeEnd(B):qr.fromRangeStart(B);return(ct?cK:lK)(kt,qn).orThunk(()=>Y.from(qn)).map(Tr=>Tr.toRange())}const Jt=(ct?pK:hK)(kt,KP(1),Re),ln=Te(Jt,qC(1)),kn=Ke.left,Vn=ZC(ln,kn);if(Vn&&be(Vn.node)){const qn=Math.abs(kn-Vn.left),pr=Math.abs(kn-Vn.right);return zy(g,r,Vn.node,qnVC(r,qn.toRange(),!1)):Y.none()},c$=(r,g)=>{const B=r.selection.getRng(),H=g?qr.fromRangeEnd(B):qr.fromRangeStart(B),re=VM(H.container(),r.getBody());if(g){const be=ck(re,H);return tt(be.positions)}else{const be=z2(re,H);return Xe(be.positions)}},mK=(r,g,B)=>c$(r,g).filter(B).exists(H=>(r.selection.setRng(H.toRange()),!0)),e9=(r,g)=>{const B=r.dom.createRng();B.setStart(g.container(),g.offset()),B.setEnd(g.container(),g.offset()),r.selection.setRng(B)},y0=(r,g)=>{r?g.setAttribute("data-mce-selected","inline-boundary"):g.removeAttribute("data-mce-selected")},u$=(r,g,B)=>HP(g,B).map(H=>(e9(r,H),B)),gK=(r,g,B)=>{const H=qr.fromRangeStart(r);if(r.collapsed)return H;{const re=qr.fromRangeEnd(r);return B?mp(g,re).getOr(re):sh(g,H).getOr(H)}},nO=(r,g,B)=>{const H=r.getBody(),re=gK(r.selection.getRng(),H,B),be=U(T2,r);return YP(B,be,H,re).bind(Ke=>u$(r,g,Ke))},f$=(r,g,B)=>{const H=ve(Zl(sr.fromDom(g.getRoot()),'*[data-mce-selected="inline-boundary"]'),Re=>Re.dom),re=Te(H,r),be=Te(B,r);ye(Le(re,be),U(y0,!1)),ye(Le(be,re),U(y0,!0))},vK=(r,g)=>{const B=g.get();if(r.selection.isCollapsed()&&!r.composing&&B){const H=qr.fromRangeStart(r.selection.getRng());qr.isTextPosition(H)&&!WB(H)&&(e9(r,zM(B,H)),g.set(null))}},WC=(r,g,B,H)=>{if(g.selection.isCollapsed()){const re=Te(H,r);ye(re,be=>{const Re=qr.fromRangeStart(g.selection.getRng());Fy(r,g.getBody(),Re).bind(Ke=>u$(g,B,Ke))})}},d$=(r,g,B)=>Z0(r)?nO(r,g,B).isSome():!1,h$=(r,g,B)=>Z0(g)?rK(r,g):!1,yK=r=>{const g=mr(null),B=U(T2,r);return r.on("NodeChange",H=>{Z0(r)&&(f$(B,r.dom,H.parents),vK(r,g),WC(B,r,g,H.parents))}),g},bK=U(h$,!0),p$=U(h$,!1),YC=(r,g,B)=>{if(Z0(r)){const H=c$(r,g).getOrThunk(()=>{const re=r.selection.getRng();return g?qr.fromRangeEnd(re):qr.fromRangeStart(re)});return Fy(U(T2,r),r.getBody(),H).exists(re=>{const be=jC(re);return HP(B,be).exists(Re=>(e9(r,Re),!0))})}else return!1},ox=(r,g)=>{const B=document.createRange();return B.setStart(r.container(),r.offset()),B.setEnd(g.container(),g.offset()),B},xK=r=>cs(lh(r),Xp(r),(g,B)=>{const H=Tg(!0,g),re=Tg(!1,B);return sh(r,H).forall(be=>be.isEqual(re))}).getOr(!0),m$=(r,g)=>B=>HP(g,B).map(H=>()=>e9(r,H)),g$=(r,g,B,H)=>{const re=r.getBody(),be=U(T2,r);r.undoManager.ignore(()=>{r.selection.setRng(ox(B,H)),T6(r),Fy(be,re,qr.fromRangeStart(r.selection.getRng())).map(WP).bind(m$(r,g)).each(K)}),r.nodeChanged()},_K=(r,g)=>{const B=c0(g,r);return B||r},wK=(r,g,B,H)=>{const re=_K(r.getBody(),H.container()),be=U(T2,r),Re=Fy(be,re,H);return Re.bind(ct=>B?ct.fold($(Y.some(WP(ct))),Y.none,$(Y.some(jC(ct))),Y.none):ct.fold(Y.none,$(Y.some(jC(ct))),Y.none,$(Y.some(WP(ct))))).map(m$(r,g)).getOrThunk(()=>{const ct=lv(B,re,H),kt=ct.bind(Wt=>Fy(be,re,Wt));return cs(Re,kt,()=>Xb(be,re,H).bind(Wt=>xK(Wt)?Y.some(()=>{Ew(r,B,sr.fromDom(Wt))}):Y.none())).getOrThunk(()=>kt.bind(()=>ct.map(Wt=>()=>{B?g$(r,g,H,Wt):g$(r,g,Wt,H)})))})},fk=(r,g,B)=>{if(r.selection.isCollapsed()&&Z0(r)){const H=qr.fromRangeStart(r.selection.getRng());return wK(r,g,B,H)}return Y.none()},t9=r=>Hl(r)>1,XC=(r,g)=>{const B=sr.fromDom(r.getBody()),H=sr.fromDom(r.selection.getStart()),re=Yb(H,B);return He(re,g).fold($(re),be=>re.slice(0,be))},v$=r=>Hl(r)===1,y$=r=>XC(r,g=>r.schema.isBlock(sa(g))||t9(g)),b$=r=>XC(r,g=>r.schema.isBlock(sa(g))),x$=(r,g)=>{const B=U(k7,r);return $e(g,H=>B(H)?[H.dom]:[])},g4=r=>{const g=b$(r);return x$(r,g)},GC=(r,g,B,H)=>{const re=x$(g,H);if(re.length===0)Ew(g,r,B);else{const be=Ez(B.dom,re);g.selection.setRng(be.toRange())}},_$=(r,g)=>{const B=Te(y$(r),v$);return tt(B).bind(H=>{const re=qr.fromRangeStart(r.selection.getRng());return O5(g,re,H.dom)&&!gw(H)?Y.some(()=>GC(g,r,H,B)):Y.none()})},w$=(r,g)=>{const B=g.parentElement;return On(g)&&!x(B)&&r.dom.isEmpty(B)},O$=r=>gw(sr.fromDom(r)),n9=(r,g)=>{const B=r.selection.getStart(),H=w$(r,B)||O$(B)?Ez(B,g):S7(r.selection.getRng(),g);r.selection.setRng(H.toRange())},KC=(r,g)=>{const B=Le(g,g4(r));B.length>0&&n9(r,B)},JC=r=>Nt(r.startContainer),dk=r=>r.startOffset===0&&JC(r),OK=(r,g)=>{const B=g.startContainer.parentElement;return!x(B)&&k7(r,sr.fromDom(B))},S$=r=>{const g=r.startContainer.parentNode,B=r.endContainer.parentNode;return!x(g)&&!x(B)&&g.isEqualNode(B)},SK=r=>{const g=r.endContainer;return r.endOffset===(Nt(g)?g.length:g.childNodes.length)},kK=r=>S$(r)&&SK(r),k$=r=>!r.endContainer.isEqualNode(r.commonAncestorContainer),TK=r=>kK(r)||k$(r),T$=r=>{const g=r.selection.getRng();return dk(g)&&OK(r,g)&&TK(g)},ufe=r=>{if(T$(r)){const g=g4(r);return Y.some(()=>{T6(r),KC(r,g)})}else return Y.none()},r9=(r,g)=>r.selection.isCollapsed()?_$(r,g):ufe(r),CK=(r,g)=>Jl(r,B=>Gp(B.dom),B=>g.isBlock(sa(B))),AK=r=>CK(sr.fromDom(r.selection.getStart()),r.schema),MK=r=>{const g=r.selection.getRng();return g.collapsed&&(JC(g)||r.dom.isEmpty(g.startContainer))&&!AK(r)},hk=r=>(MK(r)&&n9(r,[]),!0),o9=(r,g,B)=>E(B)?Y.some(()=>{r._selectionOverrides.hideFakeCaret(),Ew(r,g,sr.fromDom(B))}):Y.none(),EK=(r,g)=>{const B=g?Li:U3,H=g?Af.Forwards:Af.Backwards,re=zb(H,r.getBody(),r.selection.getRng());return B(re)?o9(r,g,re.getNode(!g)):Y.from(Tg(g,re)).filter(be=>B(be)&&h3(re,be)).bind(be=>o9(r,g,be.getNode(!g)))},PK=(r,g)=>{const B=r.selection.getNode();return Zr(B)?o9(r,g,B):Y.none()},e8=(r,g)=>r.selection.isCollapsed()?EK(r,g):PK(r,g),RK=r=>Ya(r,g=>Sn(g.dom)||rr(g.dom)).exists(g=>Sn(g.dom)),ix=r=>zr(r??"").getOr(0),i9=(r,g)=>{const B=r||dp(g)?"margin":"padding",H=pi(g,"direction")==="rtl"?"-right":"-left";return B+H},a9=(r,g,B,H,re,be)=>{const Re=i9(B,sr.fromDom(be)),Ke=ix(r.getStyle(be,Re));if(g==="outdent"){const ct=Math.max(0,Ke-H);r.setStyle(be,Re,ct?ct+re:"")}else{const ct=Ke+H+re;r.setStyle(be,Re,ct)}},C$=(r,g)=>Oe(g,B=>{const H=i9(fy(r),B),re=Ru(B,H).map(ix).getOr(0);return r.dom.getContentEditable(B.dom)!=="false"&&re>0}),t8=r=>{const g=Mg(r);return!r.mode.isReadOnly()&&(g.length>1||C$(r,g))},ax=r=>Vp(r)||nh(r),A$=r=>Hu(r).exists(ax),Mg=r=>Te(Ld(r.selection.getSelectedBlocks()),g=>!ax(g)&&!A$(g)&&RK(g)),F2=(r,g)=>{var B,H;const{dom:re}=r,be=JO(r),Re=(H=(B=/[a-z%]+$/i.exec(be))===null||B===void 0?void 0:B[0])!==null&&H!==void 0?H:"px",Ke=ix(be),ct=fy(r);ye(Mg(r),kt=>{a9(re,g,ct,Ke,Re,kt.dom)})},s9=r=>F2(r,"indent"),M$=r=>F2(r,"outdent"),l9=r=>{if(r.selection.isCollapsed()&&t8(r)){const g=r.dom,B=r.selection.getRng(),H=qr.fromRangeStart(B),re=g.getParent(B.startContainer,g.isBlock);if(re!==null&&$E(sr.fromDom(re),H,r.schema))return Y.some(()=>M$(r))}return Y.none()},E$=(r,g,B)=>Ne([l9,ak,LP,(H,re)=>fk(H,g,re),zC,Bw,p4,e8,NC,r9,h4],H=>H(r,B)).filter(H=>r.selection.isEditable()),LK=(r,g)=>{E$(r,g,!1).fold(()=>{r.selection.isEditable()&&(T6(r),hc(r))},K)},IK=(r,g)=>{E$(r,g,!0).fold(()=>{r.selection.isEditable()&&GB(r)},K)},DK=(r,g)=>{r.addCommand("delete",()=>{LK(r,g)}),r.addCommand("forwardDelete",()=>{IK(r,g)})},P$=5,R$=400,L$=r=>r.touches===void 0||r.touches.length!==1?Y.none():Y.some(r.touches[0]),BK=(r,g)=>{const B=Math.abs(r.clientX-g.x),H=Math.abs(r.clientY-g.y);return B>P$||H>P$},v4=r=>{const g=Ys(),B=mr(!1),H=n0(re=>{r.dispatch("longpress",{...re,type:"longpress"}),B.set(!0)},R$);r.on("touchstart",re=>{L$(re).each(be=>{H.cancel();const Re={x:be.clientX,y:be.clientY,target:re.target};H.throttle(re),B.set(!1),g.set(Re)})},!0),r.on("touchmove",re=>{H.cancel(),L$(re).each(be=>{g.on(Re=>{BK(be,Re)&&(g.clear(),B.set(!1),r.dispatch("longpresscancel"))})})},!0),r.on("touchend touchcancel",re=>{H.cancel(),re.type!=="touchcancel"&&g.get().filter(be=>be.target.isEqualNode(re.target)).each(()=>{B.get()?re.preventDefault():r.dispatch("tap",{...re,type:"tap"})})},!0)},y4=(r,g)=>_t(r,g.nodeName),I$=(r,g)=>Nt(g)?!0:ne(g)?!y4(r.getBlockElements(),g)&&!Kp(g)&&!xm(r,g)&&!Pa(g):!1,D$=(r,g,B)=>de(SB(sr.fromDom(B),sr.fromDom(g)),H=>y4(r,H.dom)),c9=(r,g)=>{if(Nt(g)){if(g.data.length===0)return!0;if(/^\s+$/.test(g.data))return!g.nextSibling||y4(r,g.nextSibling)||Pa(g.nextSibling)}return!1},u9=r=>r.dom.create(dc(r),Jf(r)),zK=r=>{const g=r.dom,B=r.selection,H=r.schema,re=H.getBlockElements(),be=B.getStart(),Re=r.getBody();let Ke,ct,kt=null;const Wt=dc(r);if(!be||!ne(be))return;const Jt=Re.nodeName.toLowerCase();if(!H.isValidChild(Jt,Wt.toLowerCase())||D$(re,Re,be))return;if(Re.firstChild===Re.lastChild&&On(Re.firstChild)){Ke=u9(r),Ke.appendChild(F1().dom),Re.replaceChild(Ke,Re.firstChild),r.selection.setCursorLocation(Ke,0),r.nodeChanged();return}let ln=Re.firstChild;for(;ln;)if(ne(ln)&&tc(H,ln),I$(H,ln)){if(c9(re,ln)){ct=ln,ln=ln.nextSibling,g.remove(ct);continue}if(!Ke){if(!kt&&r.hasFocus()&&(kt=xv(r.selection.getRng(),()=>document.createElement("span"))),!ln.parentNode){ln=null;break}Ke=u9(r),Re.insertBefore(Ke,ln)}ct=ln,ln=ln.nextSibling,Ke.appendChild(ct)}else Ke=null,ln=ln.nextSibling;kt&&(r.selection.setRng(v0(kt)),r.nodeChanged())},B$=(r,g,B)=>{const H=sr.fromDom(u9(r)),re=F1();Ps(H,re),B(g,H);const be=document.createRange();return be.setStartBefore(re.dom),be.setEndBefore(re.dom),be},FK=r=>{r.on("NodeChange",()=>zK(r))},z$=r=>g=>(" "+g.attr("class")+" ").indexOf(r)!==-1,NK=(r,g,B)=>function(H){const re=arguments,be=re[re.length-2],Re=be>0?g.charAt(be-1):"";if(Re==='"')return H;if(Re===">"){const Ke=g.lastIndexOf("<",be);if(Ke!==-1&&g.substring(Ke,be).indexOf('contenteditable="false"')!==-1)return H}return''+r.dom.encode(typeof re[1]=="string"?re[1]:re[0])+""},$K=(r,g,B)=>{let H=g.length,re=B.content;if(B.format!=="raw"){for(;H--;)re=re.replace(g[H],NK(r,re,vy(r)));B.content=re}},F$=(r,g)=>Oe(r,B=>{const H=g.match(B);return H!==null&&H[0].length===g.length}),VK=r=>{const g="contenteditable",B=" "+mo.trim(sw(r))+" ",H=" "+mo.trim(vy(r))+" ",re=z$(B),be=z$(H),Re=pp(r);Re.length>0&&r.on("BeforeSetContent",Ke=>{$K(r,Re,Ke)}),r.parser.addAttributeFilter("class",Ke=>{let ct=Ke.length;for(;ct--;){const kt=Ke[ct];re(kt)?kt.attr(g,"true"):be(kt)&&kt.attr(g,"false")}}),r.serializer.addAttributeFilter(g,Ke=>{let ct=Ke.length;for(;ct--;){const kt=Ke[ct];if(!re(kt)&&!be(kt))continue;const Wt=kt.attr("data-mce-content");Re.length>0&&Wt?F$(Re,Wt)?(kt.name="#text",kt.type=3,kt.raw=!0,kt.value=Wt):kt.remove():kt.attr(g,null)}})},UK=r=>xi(sr.fromDom(r.getBody()),"*[data-mce-caret]").map(g=>g.dom).getOrNull(),Ym=(r,g)=>{g.hasAttribute("data-mce-caret")&&(Ra(g),r.selection.setRng(r.selection.getRng()),r.selection.scrollIntoView(g))},jK=(r,g)=>{const B=UK(r);if(B){if(g.type==="compositionstart"){g.preventDefault(),g.stopPropagation(),Ym(r,B);return}Z_(B)&&(Ym(r,B),r.undoManager.add())}},f9=r=>{r.on("keyup compositionstart",U(jK,r))},d9=rr,h9=(r,g,B)=>s$(g,r,B,Ey,k2,d9),QK=(r,g,B)=>l$(g,r,B,be=>Ey(be)||FE(be),be=>k2(be)||NE(be),d9),HK=r=>{const g=r.dom.create(dc(r));return g.innerHTML='
    ',g},N$=(r,g,B)=>{const H=Od(r.getBody()),re=U(IS,g===1?H.next:H.prev);if(B.collapsed){const be=r.dom.getParent(B.startContainer,"PRE");if(!be)return;if(!re(qr.fromRangeStart(B))){const Ke=sr.fromDom(HK(r));g===1?si(sr.fromDom(be),Ke):Fc(sr.fromDom(be),Ke),r.selection.select(Ke.dom,!0),r.selection.collapse()}}},ZK=(r,g)=>{const B=g?Af.Forwards:Af.Backwards,H=r.selection.getRng();return h9(B,r,H).orThunk(()=>(N$(r,B,H),Y.none()))},qK=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return QK(B,r,H).orThunk(()=>(N$(r,B,H),Y.none()))},$$=(r,g)=>{const B=g?r.getEnd(!0):r.getStart(!0);return ZB(B)?!g:g},V$=(r,g)=>ZK(r,$$(r.selection,g)).exists(B=>(_v(r,B),!0)),U$=(r,g)=>qK(r,g).exists(B=>(_v(r,B),!0)),b4=(r,g)=>mK(r,g,g?k2:Ey),c1=(r,g)=>IP(r,!g).map(B=>{const H=B.toRange(),re=r.selection.getRng();return g?H.setStart(re.startContainer,re.startOffset):H.setEnd(re.endContainer,re.endOffset),H}).exists(B=>(_v(r,B),!0)),rO=r=>ce(["figcaption"],sa(r)),n8=(r,g,B)=>{const H=U(Fa,g);return Ya(sr.fromDom(r.container()),re=>B.isBlock(sa(re)),H).filter(rO)},p9=(r,g,B)=>g?e$(r.dom,B):JN(r.dom,B),m9=(r,g)=>{const B=sr.fromDom(r.getBody()),H=qr.fromRangeStart(r.selection.getRng());return n8(H,B,r.schema).exists(()=>{if(p9(B,g,H)){const be=B$(r,B,g?Ps:Hh);return r.selection.setRng(be),!0}else return!1})},g9=(r,g)=>r.selection.isCollapsed()?m9(r,g):!1,WK=(r,g,B)=>{const H=r.selection.getRng(),re=qr.fromRangeStart(H);return r.getBody().firstChild===g&&JN(B,re)?(r.execCommand("InsertNewBlockBefore"),!0):!1},j$=(r,g)=>{const B=r.selection.getRng(),H=qr.fromRangeStart(B);return r.getBody().lastChild===g&&e$(g,H)?(r.execCommand("InsertNewBlockAfter"),!0):!1},Q$=(r,g)=>g?Y.from(r.dom.getParent(r.selection.getNode(),"details")).map(B=>j$(r,B)).getOr(!1):Y.from(r.dom.getParent(r.selection.getNode(),"summary")).bind(B=>Y.from(r.dom.getParent(B,"details")).map(H=>WK(r,H,B))).getOr(!1),H$=(r,g)=>Q$(r,g),Z$={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},YK=r=>ve(r,g=>({...Z$,...g})),XK=r=>ve(r,g=>({...Z$,...g})),q$=(r,g)=>g.keyCode===r.keyCode&&g.shiftKey===r.shiftKey&&g.altKey===r.altKey&&g.ctrlKey===r.ctrlKey&&g.metaKey===r.metaKey,GK=(r,g)=>$e(YK(r),B=>q$(B,g)?[B]:[]),W$=(r,g)=>$e(XK(r),B=>q$(B,g)?[B]:[]),ua=(r,...g)=>()=>r.apply(null,g),r8=(r,g)=>De(GK(r,g),B=>B.action()),KK=(r,g)=>Ne(W$(r,g),B=>B.action()),JK=(r,g)=>{const B=g?Af.Forwards:Af.Backwards,H=r.selection.getRng();return s$(r,B,H,Li,U3,Zr).exists(re=>(_v(r,re),!0))},Y$=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return l$(r,B,H,Li,U3,Zr).exists(re=>(_v(r,re),!0))},eJ=(r,g)=>mK(r,g,g?U3:Li),tJ=aa.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),pk={...tJ,none:r=>tJ.none(r)},dfe=(r,g)=>X$(r,g,q),X$=(r,g,B)=>$e(Oc(r),H=>_f(H,g)?B(H)?[H]:[]:X$(H,g,B)),nm=(r,g,B=oe)=>{if(B(g))return Y.none();if(ce(r,sa(g)))return Y.some(g);const H=re=>_f(re,"table")||B(re);return xl(g,r.join(","),H)},G$=(r,g)=>nm(["td","th"],r,g),mk=r=>dfe(r,"th,td"),K$=(r,g)=>pu(r,"table",g),o8=(r,g,B,H,re=q)=>{const be=H===1;if(!be&&B<=0)return pk.first(r[0]);if(be&&B>=r.length-1)return pk.last(r[r.length-1]);{const Re=B+H,Ke=r[Re];return re(Ke)?pk.middle(g,Ke):o8(r,g,Re,H,re)}},v9=(r,g)=>K$(r,g).bind(B=>{const H=mk(B);return He(H,be=>Fa(r,be)).map(be=>({index:be,all:H}))}),y9=(r,g,B)=>v9(r,B).fold(()=>pk.none(r),re=>o8(re.all,r,re.index,1,g)),nJ=(r,g,B)=>v9(r,B).fold(()=>pk.none(),re=>o8(re.all,r,re.index,-1,g)),rJ=r=>HO(r).filter(g=>g.trim().length!==0||g.indexOf(Ea)>-1).isSome(),J$=r=>iu(r)&&uc(r,"contenteditable")==="false",oJ=["img","br"],iJ=r=>rJ(r)||ce(oJ,sa(r))||J$(r),aJ=r=>Wc(r,iJ),b9=(r,g)=>({left:r.left-g,top:r.top-g,right:r.right+g*2,bottom:r.bottom+g*2,width:r.width+g,height:r.height+g}),sJ=(r,g)=>$e(g,B=>{const H=b9(i0(B.getBoundingClientRect()),-1);return[{x:H.left,y:r(H),cell:B},{x:H.right,y:r(H),cell:B}]}),lJ=(r,g,B)=>Ie(r,(H,re)=>H.fold(()=>Y.some(re),be=>{const Re=Math.sqrt(Math.abs(be.x-g)+Math.abs(be.y-B)),Ke=Math.sqrt(Math.abs(re.x-g)+Math.abs(re.y-B));return Y.some(Ke{const be=Zl(sr.fromDom(B),"td,th,caption").map(Ke=>Ke.dom),Re=Te(sJ(r,be),Ke=>g(Ke,re));return lJ(Re,H,re).map(Ke=>Ke.cell)},uJ=r=>r.bottom,eV=r=>r.top,hfe=(r,g)=>r.yr.y>g,dJ=U(cJ,uJ,hfe),hJ=U(cJ,eV,fJ),x9=(r,g)=>Xe(g.getClientRects()).bind(B=>dJ(r,B.left,B.top)).bind(B=>HC(sK(B),g)),i8=(r,g)=>tt(g.getClientRects()).bind(B=>hJ(r,B.left,B.top)).bind(B=>HC(aK(B),g)),tV=(r,g,B)=>B.breakAt.exists(H=>r(g,H).breakAt.isSome()),nV=r=>r.breakType===Ny.Wrap&&r.positions.length===0,pJ=r=>r.breakType===Ny.Br&&r.positions.length===1,rV=(r,g,B)=>{const H=r(g,B);return nV(H)||!On(B.getNode())&&pJ(H)?!tV(r,g,H):H.breakAt.isNone()},_9=U(rV,z2),mJ=U(rV,ck),gJ=(r,g,B)=>{const H=qr.fromRangeStart(g);return Nb(!r,B).exists(re=>re.isEqual(H))},vJ=(r,g,B,H)=>{const re=r.selection.getRng(),be=g?1:-1;return NM()&&gJ(g,re,B)?(zy(be,r,B,!g,!1).each(Re=>{_v(r,Re)}),!0):!1},yJ=(r,g,B)=>x9(g,B).orThunk(()=>Xe(B.getClientRects()).bind(H=>XP(GN(r,qr.before(g)),H.left))).getOr(qr.before(g)),u1=(r,g,B)=>i8(g,B).orThunk(()=>Xe(B.getClientRects()).bind(H=>XP(KN(r,qr.after(g)),H.left))).getOr(qr.after(g)),w9=(r,g)=>{const B=g.getNode(r);return Et(B)?Y.some(B):Y.none()},oV=(r,g,B)=>{g.undoManager.transact(()=>{const H=r?si:Fc,re=B$(g,sr.fromDom(B),H);_v(g,re)})},bJ=(r,g,B)=>{const H=w9(!!g,B),re=g===!1;H.fold(()=>_v(r,B.toRange()),be=>Nb(re,r.getBody()).filter(Re=>Re.isEqual(B)).fold(()=>_v(r,B.toRange()),Re=>oV(g,r,be)))},pfe=(r,g,B,H)=>{const re=r.selection.getRng(),be=qr.fromRangeStart(re),Re=r.getBody();if(!g&&_9(H,be)){const Ke=yJ(Re,B,be);return bJ(r,g,Ke),!0}else if(g&&mJ(H,be)){const Ke=u1(Re,B,be);return bJ(r,g,Ke),!0}else return!1},xJ=(r,g,B)=>Y.from(r.dom.getParent(r.selection.getNode(),"td,th")).bind(H=>Y.from(r.dom.getParent(H,"table")).map(re=>B(r,g,re,H))).getOr(!1),_J=(r,g)=>xJ(r,g,vJ),O9=(r,g)=>xJ(r,g,pfe),a8=r=>{const g=O2.exact(r,0,r,0);return pe(g)},iV=(r,g,B)=>B.fold(Y.none,Y.none,(H,re)=>aJ(re).map(be=>a8(be)),H=>(r.execCommand("mceTableInsertRowAfter"),s8(r,g,H))),s8=(r,g,B)=>iV(r,g,y9(B,js)),aV=(r,g,B)=>iV(r,g,nJ(B,js)),S9=(r,g)=>{const B=["table","li","dl"],H=sr.fromDom(r.getBody()),re=Ke=>{const ct=sa(Ke);return Fa(Ke,H)||ce(B,ct)},be=r.selection.getRng(),Re=sr.fromDom(g?be.endContainer:be.startContainer);return G$(Re,re).map(Ke=>(K$(Ke,re).each(Wt=>{r.model.table.clearSelectedCells(Wt.dom)}),r.selection.collapse(!g),(g?s8:aV)(r,re,Ke).each(Wt=>{r.selection.setRng(Wt)}),!0)).getOr(!1)},sV=(r,g,B)=>{const H=fr.os.isMacOS()||fr.os.isiOS();r8([{keyCode:Fo.RIGHT,action:ua(V$,r,!0)},{keyCode:Fo.LEFT,action:ua(V$,r,!1)},{keyCode:Fo.UP,action:ua(U$,r,!1)},{keyCode:Fo.DOWN,action:ua(U$,r,!0)},...H?[{keyCode:Fo.UP,action:ua(c1,r,!1),metaKey:!0,shiftKey:!0},{keyCode:Fo.DOWN,action:ua(c1,r,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Fo.RIGHT,action:ua(_J,r,!0)},{keyCode:Fo.LEFT,action:ua(_J,r,!1)},{keyCode:Fo.UP,action:ua(O9,r,!1)},{keyCode:Fo.DOWN,action:ua(O9,r,!0)},{keyCode:Fo.UP,action:ua(O9,r,!1)},{keyCode:Fo.UP,action:ua(H$,r,!1)},{keyCode:Fo.DOWN,action:ua(H$,r,!0)},{keyCode:Fo.RIGHT,action:ua(JK,r,!0)},{keyCode:Fo.LEFT,action:ua(JK,r,!1)},{keyCode:Fo.UP,action:ua(Y$,r,!1)},{keyCode:Fo.DOWN,action:ua(Y$,r,!0)},{keyCode:Fo.RIGHT,action:ua(d$,r,g,!0)},{keyCode:Fo.LEFT,action:ua(d$,r,g,!1)},{keyCode:Fo.RIGHT,ctrlKey:!H,altKey:H,action:ua(bK,r,g)},{keyCode:Fo.LEFT,ctrlKey:!H,altKey:H,action:ua(p$,r,g)},{keyCode:Fo.UP,action:ua(g9,r,!1)},{keyCode:Fo.DOWN,action:ua(g9,r,!0)}],B).each(re=>{B.preventDefault()})},wJ=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||sV(r,g,B)})},wv=(r,g)=>({container:r,offset:g}),l8=Nl.DOM,c8=r=>g=>r===g?-1:0,u8=r=>g=>r.isBlock(g)||ce(["BR","IMG","HR","INPUT"],g.nodeName)||r.getContentEditable(g)==="false",k9=(r,g,B)=>{if(Nt(r)&&g>=0)return Y.some(wv(r,g));{const H=Em(l8);return Y.from(H.backwards(r,g,c8(r),B)).map(re=>wv(re.container,re.container.data.length))}},OJ=(r,g,B)=>{if(Nt(r)&&g>=r.length)return Y.some(wv(r,g));{const H=Em(l8);return Y.from(H.forwards(r,g,c8(r),B)).map(re=>wv(re.container,0))}},T9=(r,g,B)=>{if(!Nt(r))return Y.none();const H=r.data;if(g>=0&&g<=H.length)return Y.some(wv(r,g));{const re=Em(l8);return Y.from(re.backwards(r,g,c8(r),B)).bind(be=>{const Re=be.container.data;return T9(be.container,g+Re.length,B)})}},f8=(r,g,B)=>{if(!Nt(r))return Y.none();const H=r.data;if(g<=H.length)return Y.some(wv(r,g));{const re=Em(l8);return Y.from(re.forwards(r,g,c8(r),B)).bind(be=>f8(be.container,g-H.length,B))}},C9=(r,g,B,H,re)=>{const be=Em(r,u8(r));return Y.from(be.backwards(g,B,H,re))},SJ=r=>r.collapsed&&Nt(r.startContainer),lV=r=>vd(r.toString().replace(/\u00A0/g," ")),cV=r=>r!==""&&`  \f -\r \v`.indexOf(r)!==-1,kJ=(r,g)=>r.substring(g.length),TJ=(r,g,B,H=!1)=>{let re;const be=B.charAt(0);for(re=g-1;re>=0;re--){const Re=r.charAt(re);if(!H&&cV(Re))return Y.none();if(be===Re&&Un(r,B,re,g))break}return Y.some(re)},A9=(r,g,B,H=!1)=>{if(!SJ(g))return Y.none();const re={text:"",offset:0},be=(Ke,ct,kt)=>(re.text=kt+re.text,re.offset+=ct,TJ(re.text,re.offset,B,H).getOr(ct)),Re=r.getParent(g.startContainer,r.isBlock)||r.getRoot();return C9(r,g.startContainer,g.startOffset,be,Re).bind(Ke=>{const ct=g.cloneRange();if(ct.setStart(Ke.container,Ke.offset),ct.setEnd(g.endContainer,g.endOffset),ct.collapsed)return Y.none();const kt=lV(ct);return kt.lastIndexOf(B)!==0?Y.none():Y.some({text:kJ(kt,B),range:ct,trigger:B})})},CJ=r=>r.nodeType===yl,AJ=r=>r.nodeType===Cu,d8=r=>{if(CJ(r))return wv(r,r.data.length);{const g=r.childNodes;return g.length>0?d8(g[g.length-1]):wv(r,g.length)}},uV=(r,g)=>{const B=r.childNodes;return B.length>0&&g0&&AJ(r)&&B.length===g?d8(B[B.length-1]):wv(r,g)},fV=(r,g)=>{var B;const H=(B=r.getParent(g.container,r.isBlock))!==null&&B!==void 0?B:r.getRoot();return C9(r,g.container,g.offset,(re,be)=>be===0?-1:be,H).filter(re=>{const be=re.container.data.charAt(re.offset-1);return!cV(be)}).isSome()},MJ=r=>g=>{const B=uV(g.startContainer,g.startOffset);return!fV(r,B)},EJ=(r,g,B)=>Ne(B.triggers,H=>A9(r,g,H)),PJ=(r,g)=>{const B=g(),H=r.selection.getRng();return EJ(r.dom,H,B).bind(re=>dV(r,g,re))},dV=(r,g,B,H={})=>{var re;const be=g(),Ke=(re=r.selection.getRng().startContainer.nodeValue)!==null&&re!==void 0?re:"",ct=Te(be.lookupByTrigger(B.trigger),Wt=>B.text.length>=Wt.minChars&&Wt.matches.getOrThunk(()=>MJ(r.dom))(B.range,Ke,B.text));if(ct.length===0)return Y.none();const kt=Promise.all(ve(ct,Wt=>Wt.fetch(B.text,Wt.maxResults,H).then(ln=>({matchText:B.text,items:ln,columns:Wt.columns,onAction:Wt.onAction,highlightOn:Wt.highlightOn}))));return Y.some({lookupData:kt,context:B})};var Ov;(function(r){r[r.Error=0]="Error",r[r.Value=1]="Value"})(Ov||(Ov={}));const M9=(r,g,B)=>r.stype===Ov.Error?g(r.serror):B(r.svalue),Rf=r=>{const g=[],B=[];return ye(r,H=>{M9(H,re=>B.push(re),re=>g.push(re))}),{values:g,errors:B}},RJ=(r,g)=>r.stype===Ov.Error?{stype:Ov.Error,serror:g(r.serror)}:r,LJ=(r,g)=>r.stype===Ov.Value?{stype:Ov.Value,svalue:g(r.svalue)}:r,IJ=(r,g)=>r.stype===Ov.Value?g(r.svalue):r,hV=(r,g)=>r.stype===Ov.Error?g(r.serror):r,h8=r=>({stype:Ov.Value,svalue:r}),E9=r=>({stype:Ov.Error,serror:r}),Ud={fromResult:r=>r.fold(E9,h8),toResult:r=>M9(r,gs.error,gs.value),svalue:h8,partition:Rf,serror:E9,bind:IJ,bindError:hV,map:LJ,mapError:RJ,fold:M9},gk=r=>_(r)&&nt(r).length>100?" removed due to size":JSON.stringify(r,null,2),P9=r=>{const g=r.length>10?r.slice(0,10).concat([{path:[],getErrorInfo:$("... (only showing first ten failures)")}]):r;return ve(g,B=>"Failed path: ("+B.path.join(" > ")+`) -`+B.getErrorInfo())},x4=(r,g)=>Ud.serror([{path:r,getErrorInfo:g}]),mV=(r,g,B)=>x4(r,()=>'Could not find valid *required* value for "'+g+'" in '+gk(B)),p8=(r,g)=>x4(r,()=>'Choice schema did not contain choice key: "'+g+'"'),m8=(r,g,B)=>x4(r,()=>'The chosen schema: "'+B+'" did not exist in branches: '+gk(g)),vk=(r,g)=>x4(r,$(g)),yk=(r,g,B,H)=>Ct(B,H).fold(()=>m8(r,B,H),be=>be.extract(r.concat(["branch: "+H]),g)),f1=(r,g)=>({extract:(re,be)=>Ct(be,r).fold(()=>p8(re,r),Ke=>yk(re,be,g,Ke)),toString:()=>"chooseOn("+r+"). Possible values: "+nt(g)}),bk=(r,g)=>g,gV=(r,g)=>S(r)&&S(g)?g8(r,g):g,R9=r=>(...g)=>{if(g.length===0)throw new Error("Can't merge zero objects");const B={};for(let H=0;H({tag:"required",process:{}}),DJ=r=>({tag:"defaultedThunk",process:r}),_4=r=>DJ($(r)),BJ=()=>({tag:"option",process:{}}),zJ=(r,g)=>r.length>0?Ud.svalue(g8(g,L9.apply(void 0,r))):Ud.svalue(g),yV=r=>I(Ud.serror,Ve)(r),FJ={consolidateObj:(r,g)=>{const B=Ud.partition(r);return B.errors.length>0?yV(B.errors):zJ(B.values,g)},consolidateArr:r=>{const g=Ud.partition(r);return g.errors.length>0?yV(g.errors):Ud.svalue(g.values)}},NJ=(r,g,B,H)=>({tag:"field",key:r,newKey:g,presence:B,prop:H}),$J=(r,g)=>({tag:"custom",newKey:r,instantiator:g}),bV=(r,g,B)=>{switch(r.tag){case"field":return g(r.key,r.newKey,r.presence,r.prop);case"custom":return B(r.newKey,r.instantiator)}},I9=r=>{const g=(H,re)=>Ud.bindError(r(re),be=>vk(H,be)),B=$("val");return{extract:g,toString:B}},VJ=I9(Ud.svalue),UJ=(r,g,B,H)=>Ct(g,B).fold(()=>mV(r,B,g),H),xV=(r,g,B,H)=>{const re=Ct(r,g).getOrThunk(()=>B(r));return H(re)},jJ=(r,g,B)=>B(Ct(r,g)),_V=(r,g,B,H)=>{const re=Ct(r,g).map(be=>be===!0?B(r):be);return H(re)},wV=(r,g,B,H,re)=>{const be=Ke=>re.extract(g.concat([H]),Ke),Re=Ke=>Ke.fold(()=>Ud.svalue(Y.none()),ct=>{const kt=re.extract(g.concat([H]),ct);return Ud.map(kt,Y.some)});switch(r.tag){case"required":return UJ(g,B,H,be);case"defaultedThunk":return xV(B,H,r.process,be);case"option":return jJ(B,H,Re);case"defaultedOptionThunk":return _V(B,H,r.process,Re);case"mergeWithThunk":return xV(B,H,$({}),Ke=>{const ct=g8(r.process(B),Ke);return be(ct)})}},OV=(r,g,B)=>{const H={},re=[];for(const be of B)bV(be,(Re,Ke,ct,kt)=>{const Wt=wV(ct,r,g,Re,kt);Ud.fold(Wt,Jt=>{re.push(...Jt)},Jt=>{H[Ke]=Jt})},(Re,Ke)=>{H[Re]=Ke(g)});return re.length>0?Ud.serror(re):Ud.svalue(H)},D9=r=>({extract:(H,re)=>OV(H,re,r),toString:()=>`obj{ +Options:${Re}${B.join(Re)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+Ke+ct)}},JX=(r,g)=>{XX(r,g),KX(r,g)},J5=Nl.DOM,eG=r=>{J5.setStyle(r.id,"display",r.orgDisplay)},PC=r=>Y.from(r).each(g=>g.destroy()),tG=r=>{const g=r;g.contentAreaContainer=g.formElement=g.container=g.editorContainer=null,g.bodyElement=g.contentDocument=g.contentWindow=null,g.iframeElement=g.targetElm=null;const B=r.selection;if(B){const H=B.dom;g.selection=B.win=B.dom=H.doc=null}},RC=r=>{const g=r.formElement;g&&(g._mceOldSubmit&&(g.submit=g._mceOldSubmit,delete g._mceOldSubmit),J5.unbind(g,"submit reset",r.formEventDelegate))},nG=r=>{if(!r.removed){const{_selectionOverrides:g,editorUpload:B}=r,H=r.getBody(),re=r.getElement();H&&r.save({is_removing:!0}),r.removed=!0,r.unbindAllNativeEvents(),r.hasHiddenInput&&E(re==null?void 0:re.nextSibling)&&J5.remove(re.nextSibling),M3(r),r.editorManager.remove(r),!r.inline&&H&&eG(r),oE(r),J5.remove(r.getContainer()),PC(g),PC(B),r.destroy()}},rG=(r,g)=>{const{selection:B,dom:H}=r;if(!r.destroyed){if(!g&&!r.removed){r.remove();return}g||(r.editorManager.off("beforeunload",r._beforeUnload),r.theme&&r.theme.destroy&&r.theme.destroy(),PC(B),PC(H)),RC(r),tG(r),r.destroyed=!0}},o4=(()=>{const r={};return{add:(re,be)=>{r[re]=be},get:re=>r[re]?r[re]:{icons:{}},has:re=>_t(r,re)}})(),i4=su.ModelManager,lN=(r,g)=>g.dom[r],iG=(r,g)=>parseInt(pi(g,r),10),aG=U(lN,"clientWidth"),ek=U(lN,"clientHeight"),cN=U(iG,"margin-top"),uN=U(iG,"margin-left"),sG=r=>r.dom.getBoundingClientRect(),fN=(r,g,B)=>{const H=aG(r),re=ek(r);return g>=0&&B>=0&&g<=H&&B<=re},lG=(r,g,B,H)=>{const re=sG(g),be=r?re.left+g.dom.clientLeft+uN(g):0,Re=r?re.top+g.dom.clientTop+cN(g):0,Ke=B-be,ct=H-Re;return{x:Ke,y:ct}},cG=(r,g,B)=>{const H=sr.fromDom(r.getBody()),re=r.inline?H:ym(H),be=lG(r.inline,re,g,B);return fN(re,be.x,be.y)},uG=r=>Y.from(r).map(sr.fromDom),fG=r=>{const g=r.inline?r.getBody():r.getContentAreaContainer();return uG(g).map(zc).getOr(!1)};var dN=()=>{const r=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:r,close:r,getArgs:r}};const hN=r=>{const g=[],B=()=>{const ln=r.theme;return ln&&ln.getNotificationManagerImpl?ln.getNotificationManagerImpl():dN()},H=()=>Y.from(g[0]),re=(ln,kn)=>ln.type===kn.type&&ln.text===kn.text&&!ln.progressBar&&!ln.timeout&&!kn.progressBar&&!kn.timeout,be=()=>{H().each(ln=>{ln.reposition()})},Re=ln=>{g.push(ln)},Ke=ln=>{He(g,kn=>kn===ln).each(kn=>{g.splice(kn,1)})},ct=(ln,kn=!0)=>r.removed||!fG(r)?{}:(kn&&r.dispatch("BeforeOpenNotification",{notification:ln}),De(g,Vn=>re(B().getArgs(Vn),ln)).getOrThunk(()=>{r.editorManager.setActive(r);const Vn=B().open(ln,()=>{Ke(Vn)},()=>y5(r));return Re(Vn),be(),r.dispatch("OpenNotification",{notification:{...Vn}}),Vn})),kt=()=>{H().each(ln=>{B().close(ln),Ke(ln),be()})},Wt=$(g);return(ln=>{ln.on("SkinLoaded",()=>{const kn=_d(ln);kn&&ct({text:kn,type:"warning",timeout:0},!1),be()}),ln.on("show ResizeEditor NodeChange",()=>{requestAnimationFrame(be)}),ln.on("remove",()=>{ye(g.slice(),kn=>{B().close(kn)})}),ln.addShortcut("alt+F12","Focus to notification",()=>H().map(kn=>sr.fromDom(kn.getEl())).each(kn=>F3(kn)))})(r),{open:ct,close:kt,getNotifications:Wt}},a4=su.PluginManager,xv=su.ThemeManager;var pN=()=>{const r=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:r,openUrl:r,alert:r,confirm:r,close:r}};const wP=r=>{let g=[];const B=()=>{const Rn=r.theme;return Rn&&Rn.getWindowManagerImpl?Rn.getWindowManagerImpl():pN()},H=(Rn,qn)=>(...pr)=>qn?qn.apply(Rn,pr):void 0,re=Rn=>{r.dispatch("OpenWindow",{dialog:Rn})},be=Rn=>{r.dispatch("CloseWindow",{dialog:Rn})},Re=Rn=>{g.push(Rn),re(Rn)},Ke=Rn=>{be(Rn),g=Te(g,qn=>qn!==Rn),g.length===0&&r.focus()},ct=()=>Y.from(g[g.length-1]),kt=Rn=>{r.editorManager.setActive(r),v5(r),r.ui.show();const qn=Rn();return Re(qn),qn},Wt=(Rn,qn)=>kt(()=>B().open(Rn,qn,Ke)),Jt=Rn=>kt(()=>B().openUrl(Rn,Ke)),ln=(Rn,qn,pr)=>{const Tr=B();Tr.alert(Rn,H(pr||Tr,qn))},kn=(Rn,qn,pr)=>{const Tr=B();Tr.confirm(Rn,H(pr||Tr,qn))},Vn=()=>{ct().each(Rn=>{B().close(Rn),Ke(Rn)})};return r.on("remove",()=>{ye(g,Rn=>{B().close(Rn)})}),{open:Wt,openUrl:Jt,alert:ln,confirm:kn,close:Vn}},mN=(r,g)=>{r.notificationManager.open({type:"error",text:g})},LC=(r,g)=>{r._skinLoaded?mN(r,g):r.on("SkinLoaded",()=>{mN(r,g)})},dG=(r,g)=>{LC(r,Du.translate(["Failed to upload image: {0}",g]))},s4=(r,g,B)=>{kd(r,g,{message:B}),console.error(B)},tk=(r,g,B)=>B?`Failed to load ${r}: ${B} from url ${g}`:`Failed to load ${r} url: ${g}`,hG=(r,g,B)=>{s4(r,"PluginLoadError",tk("plugin",g,B))},pG=(r,g,B)=>{s4(r,"IconsLoadError",tk("icons",g,B))},mG=(r,g,B)=>{s4(r,"LanguageLoadError",tk("language",g,B))},sfe=(r,g,B)=>{s4(r,"ThemeLoadError",tk("theme",g,B))},_v=(r,g,B)=>{s4(r,"ModelLoadError",tk("model",g,B))},OP=(r,g,B)=>{const H=Du.translate(["Failed to initialize plugin: {0}",g]);kd(r,"PluginLoadError",{message:H}),IC(H,B),LC(r,H)},IC=(r,...g)=>{const B=window.console;B&&(B.error?B.error(r,...g):B.log(r,...g))},gG=r=>/^[a-z0-9\-]+$/i.test(r),SP=r=>"content/"+r+"/content.css",vG=r=>tinymce.Resource.has(SP(r)),Js=r=>l4(r,Bm(r)),yG=r=>l4(r,Wu(r)),l4=(r,g)=>{const B=r.editorManager.baseURL+"/skins/content",re=`content${r.editorManager.suffix}.css`;return ve(g,be=>vG(be)?be:gG(be)&&!r.inline?`${B}/${be}/${re}`:r.documentBaseURI.toAbsolute(be))},bG=r=>{r.contentCSS=r.contentCSS.concat(Js(r),yG(r))},xG=r=>r?Ee(r.getElementsByTagName("img")):[],_G=(r,g)=>{const B={};return{findAll:(re,be=q)=>{const Re=Te(xG(re),ct=>{const kt=ct.src;return ct.hasAttribute("data-mce-bogus")||ct.hasAttribute("data-mce-placeholder")||!kt||kt===fr.transparentSrc?!1:xr(kt,"blob:")?!r.isUploaded(kt)&&be(ct):xr(kt,"data:")?be(ct):!1}),Ke=ve(Re,ct=>{const kt=ct.src;if(_t(B,kt))return B[kt].then(Wt=>v(Wt)?Wt:{image:ct,blobInfo:Wt.blobInfo});{const Wt=lC(g,kt).then(Jt=>(delete B[kt],{image:ct,blobInfo:Jt})).catch(Jt=>(delete B[kt],Jt));return B[kt]=Wt,Wt}});return Promise.all(Ke)}}},kP=()=>{let B={};const H=(ln,kn)=>({status:ln,resultUri:kn}),re=ln=>ln in B;return{hasBlobUri:re,getResultUri:ln=>{const kn=B[ln];return kn?kn.resultUri:null},isPending:ln=>re(ln)?B[ln].status===1:!1,isUploaded:ln=>re(ln)?B[ln].status===2:!1,markPending:ln=>{B[ln]=H(1,null)},markUploaded:(ln,kn)=>{B[ln]=H(2,kn)},removeFailed:ln=>{delete B[ln]},destroy:()=>{B={}}}};let L2=0;const tm=()=>{const r=()=>Math.round(Math.random()*4294967295).toString(36);return"s"+new Date().getTime().toString(36)+r()+r()+r()},nk=r=>r+L2+++tm(),I2=()=>{let r=[];const g=Jt=>({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"})[Jt.toLowerCase()]||"dat",B=(Jt,ln,kn,Vn,Rn)=>{if(v(Jt))return H({id:Jt,name:Vn,filename:Rn,blob:ln,base64:kn});if(_(Jt))return H(Jt);throw new Error("Unknown input type")},H=Jt=>{if(!Jt.blob||!Jt.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const ln=Jt.id||nk("blobid"),kn=Jt.name||ln,Vn=Jt.blob;return{id:$(ln),name:$(kn),filename:$(Jt.filename||kn+"."+g(Vn.type)),blob:$(Vn),base64:$(Jt.base64),blobUri:$(Jt.blobUri||URL.createObjectURL(Vn)),uri:$(Jt.uri)}},re=Jt=>{Re(Jt.id())||r.push(Jt)},be=Jt=>De(r,Jt).getOrUndefined(),Re=Jt=>be(ln=>ln.id()===Jt);return{create:B,add:re,get:Re,getByUri:Jt=>be(ln=>ln.blobUri()===Jt),getByData:(Jt,ln)=>be(kn=>kn.base64()===Jt&&kn.blob().type===ln),findFirst:be,removeByUri:Jt=>{r=Te(r,ln=>ln.blobUri()===Jt?(URL.revokeObjectURL(ln.blobUri()),!1):!0)},destroy:()=>{ye(r,Jt=>{URL.revokeObjectURL(Jt.blobUri())}),r=[]}}},Dy=(r,g)=>{const B={},H=(Rn,qn)=>Rn?Rn.replace(/\/$/,"")+"/"+qn.replace(/^\//,""):qn,re=(Rn,qn)=>new Promise((pr,Tr)=>{const wr=new XMLHttpRequest;wr.open("POST",g.url),wr.withCredentials=g.credentials,wr.upload.onprogress=wo=>{qn(wo.loaded/wo.total*100)},wr.onerror=()=>{Tr("Image upload failed due to a XHR Transport error. Code: "+wr.status)},wr.onload=()=>{if(wr.status<200||wr.status>=300){Tr("HTTP Error: "+wr.status);return}const wo=JSON.parse(wr.responseText);if(!wo||!v(wo.location)){Tr("Invalid JSON: "+wr.responseText);return}pr(H(g.basePath,wo.location))};const Ur=new FormData;Ur.append("file",Rn.blob(),Rn.filename()),wr.send(Ur)}),be=C(g.handler)?g.handler:re,Re=()=>new Promise(Rn=>{Rn([])}),Ke=(Rn,qn)=>({url:qn,blobInfo:Rn,status:!0}),ct=(Rn,qn)=>({url:"",blobInfo:Rn,status:!1,error:qn}),kt=(Rn,qn)=>{mo.each(B[Rn],pr=>{pr(qn)}),delete B[Rn]},Wt=(Rn,qn,pr)=>(r.markPending(Rn.blobUri()),new Promise(Tr=>{let wr,Ur;try{const wo=()=>{wr&&(wr.close(),Ur=k)},jo=lo=>{wo(),r.markUploaded(Rn.blobUri(),lo),kt(Rn.blobUri(),Ke(Rn,lo)),Tr(Ke(Rn,lo))},di=lo=>{wo(),r.removeFailed(Rn.blobUri()),kt(Rn.blobUri(),ct(Rn,lo)),Tr(ct(Rn,lo))};Ur=lo=>{lo<0||lo>100||Y.from(wr).orThunk(()=>Y.from(pr).map(W)).each(eo=>{wr=eo,eo.progressBar.value(lo)})},qn(Rn,Ur).then(jo,lo=>{di(v(lo)?{message:lo}:lo)})}catch(wo){Tr(ct(Rn,wo))}})),Jt=Rn=>Rn===re,ln=Rn=>{const qn=Rn.blobUri();return new Promise(pr=>{B[qn]=B[qn]||[],B[qn].push(pr)})},kn=(Rn,qn)=>(Rn=mo.grep(Rn,pr=>!r.isUploaded(pr.blobUri())),Promise.all(mo.map(Rn,pr=>r.isPending(pr.blobUri())?ln(pr):Wt(pr,be,qn))));return{upload:(Rn,qn)=>!g.url&&Jt(be)?Re():kn(Rn,qn)}},c4=r=>()=>r.notificationManager.open({text:r.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),DC=(r,g)=>Dy(g,{url:W1(r),basePath:uy(r),credentials:Y1(r),handler:H0(r)}),TP=r=>{const g=kP(),B=DC(r,g);return{upload:(H,re=!0)=>B.upload(H,re?c4(r):void 0)}},gN=(r,g)=>r.dom.isEmpty(g.dom)&&E(r.schema.getTextBlockElements()[la(g)]),vN=r=>g=>{gN(r,g)&&Ps(g,sr.fromHtml('
    '))},wG=r=>{const g=I2();let B,H;const re=kP(),be=[],Re=wr=>Ur=>r.selection?wr(Ur):[],Ke=wr=>wr+(wr.indexOf("?")===-1?"?":"&")+new Date().getTime(),ct=(wr,Ur,wo)=>{let jo=0;do jo=wr.indexOf(Ur,jo),jo!==-1&&(wr=wr.substring(0,jo)+wo+wr.substr(jo+Ur.length),jo+=wo.length-Ur.length+1);while(jo!==-1);return wr},kt=(wr,Ur,wo)=>{const jo=`src="${wo}"${wo===fr.transparentSrc?' data-mce-placeholder="1"':""}`;return wr=ct(wr,`src="${Ur}"`,jo),wr=ct(wr,'data-mce-src="'+Ur+'"','data-mce-src="'+wo+'"'),wr},Wt=(wr,Ur)=>{ye(r.undoManager.data,wo=>{wo.type==="fragmented"?wo.fragments=ve(wo.fragments,jo=>kt(jo,wr,Ur)):wo.content=kt(wo.content,wr,Ur)})},Jt=(wr,Ur)=>{const wo=r.convertURL(Ur,"src");Wt(wr.src,Ur),ef(sr.fromDom(wr),{src:Hc(r)?Ke(Ur):Ur,"data-mce-src":wo})},ln=()=>(B||(B=DC(r,re)),qn().then(Re(wr=>{const Ur=ve(wr,wo=>wo.blobInfo);return B.upload(Ur,c4(r)).then(Re(wo=>{const jo=[];let di=!1;const lo=ve(wo,(eo,xo)=>{const{blobInfo:bi,image:Bi}=wr[xo];let $a=!1;return eo.status&&_s(r)?(eo.url&&!jn(Bi.src,eo.url)&&(di=!0),g.removeByUri(Bi.src),Iy(r)||Jt(Bi,eo.url)):eo.error&&(eo.error.remove&&(Wt(Bi.src,fr.transparentSrc),jo.push(Bi),$a=!0),dG(r,eo.error.message)),{element:Bi,status:eo.status,uploadUri:eo.url,blobInfo:bi,removed:$a}});return jo.length>0&&!Iy(r)?r.undoManager.transact(()=>{ye(Ld(jo),eo=>{const xo=Hu(eo);ja(eo),xo.each(vN(r)),g.removeByUri(eo.dom.src)})}):di&&r.undoManager.dispatchChange(),lo}))}))),kn=()=>Qc(r)?ln():Promise.resolve([]),Vn=wr=>Oe(be,Ur=>Ur(wr)),Rn=wr=>{be.push(wr)},qn=()=>(H||(H=_G(re,g)),H.findAll(r.getBody(),Vn).then(Re(wr=>{const Ur=Te(wr,wo=>v(wo)?(LC(r,wo),!1):wo.uriType!=="blob");return Iy(r)||ye(Ur,wo=>{Wt(wo.image.src,wo.blobInfo.blobUri()),wo.image.src=wo.blobInfo.blobUri(),wo.image.removeAttribute("data-mce-src")}),Ur}))),pr=()=>{g.destroy(),re.destroy(),H=B=null},Tr=wr=>wr.replace(/src="(blob:[^"]+)"/g,(Ur,wo)=>{const jo=re.getResultUri(wo);if(jo)return'src="'+jo+'"';let di=g.getByUri(wo);return di||(di=Ie(r.editorManager.get(),(lo,eo)=>lo||eo.editorUpload&&eo.editorUpload.blobCache.getByUri(wo),void 0)),di?'src="data:'+di.blob().type+";base64,"+di.base64()+'"':Ur});return r.on("SetContent",()=>{Qc(r)?kn():qn()}),r.on("RawSaveContent",wr=>{wr.content=Tr(wr.content)}),r.on("GetContent",wr=>{wr.source_view||wr.format==="raw"||wr.format==="tree"||(wr.content=Tr(wr.content))}),r.on("PostRender",()=>{r.parser.addNodeFilter("img",wr=>{ye(wr,Ur=>{const wo=Ur.attr("src");if(!wo||g.getByUri(wo))return;const jo=re.getResultUri(wo);jo&&Ur.attr("src",jo)})})}),{blobCache:g,addFilter:Rn,uploadImages:ln,uploadImagesAuto:kn,scanForImages:qn,destroy:pr}},OG=r=>{const g=r.dom,B=r.schema.type,H={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:re=>{g.setStyle(re,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:re=>{g.setStyle(re,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const re={inline:"span",styles:{textDecoration:"line-through"},exact:!0},be={inline:"strike",remove:"all",preserve_attributes:["class","style"]},Re={inline:"s",remove:"all",preserve_attributes:["class","style"]};return B!=="html4"?[Re,re,be]:[re,Re,be]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(re,be,Re)=>ne(re)&&re.hasAttribute("href"),onformat:(re,be,Re)=>{mo.each(Re,(Ke,ct)=>{g.setAttrib(re,ct,Ke)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":re=>{var be;return(be=re==null?void 0:re.customValue)!==null&&be!==void 0?be:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return mo.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),re=>{H[re]={block:re,remove:"all"}}),H},CP={remove_similar:!0,inherit:!1},Yw={selector:"td,th",...CP},yN={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...Yw},tablecellverticalalign:{styles:{"vertical-align":"%value"},...Yw},tablecellbordercolor:{styles:{borderColor:"%value"},...Yw},tablecellclass:{classes:["%value"],...Yw},tableclass:{selector:"table",classes:["%value"],...CP},tablecellborderstyle:{styles:{borderStyle:"%value"},...Yw},tablecellborderwidth:{styles:{borderWidth:"%value"},...Yw}},bN=$(yN),AP=r=>{const g={},B=Re=>E(Re)?g[Re]:g,H=Re=>_t(g,Re),re=(Re,Ke)=>{Re&&(v(Re)?(A(Ke)||(Ke=[Ke]),ye(Ke,ct=>{M(ct.deep)&&(ct.deep=!$m(ct)),M(ct.split)&&(ct.split=!$m(ct)||Ef(ct)),M(ct.remove)&&$m(ct)&&!Ef(ct)&&(ct.remove="none"),$m(ct)&&Ef(ct)&&(ct.mixed=!0,ct.block_expand=!0),v(ct.classes)&&(ct.classes=ct.classes.split(/\s+/))}),g[Re]=Ke):Ge(Re,(ct,kt)=>{re(kt,ct)}))},be=Re=>(Re&&g[Re]&&delete g[Re],g);return re(OG(r)),re(bN()),re(Cb(r)),{get:B,has:H,register:re,unregister:be}},MP=mo.each,m0=Nl.DOM,xN=r=>E(r)&&_(r),_N=(r,g)=>{const B=g&&g.schema||Np({}),H=(ct,kt)=>{kt.classes.length>0&&m0.addClass(ct,kt.classes.join(" ")),m0.setAttribs(ct,kt.attrs)},re=ct=>{const kt=v(ct)?{name:ct,classes:[],attrs:{}}:ct,Wt=m0.create(kt.name);return H(Wt,kt),Wt},be=(ct,kt)=>{const Wt=B.getElementRule(ct.nodeName.toLowerCase()),Jt=Wt==null?void 0:Wt.parentsRequired;return Jt&&Jt.length?kt&&ce(Jt,kt)?kt:Jt[0]:!1},Re=(ct,kt,Wt)=>{let Jt;const ln=kt[0],kn=xN(ln)?ln.name:void 0,Vn=be(ct,kn);if(Vn)kn===Vn?(Jt=ln,kt=kt.slice(1)):Jt=Vn;else if(ln)Jt=ln,kt=kt.slice(1);else if(!Wt)return ct;const Rn=Jt?re(Jt):m0.create("div");Rn.appendChild(ct),Wt&&mo.each(Wt,pr=>{const Tr=re(pr);Rn.insertBefore(Tr,ct)});const qn=xN(Jt)?Jt.siblings:void 0;return Re(Rn,kt,qn)},Ke=m0.create("div");if(r.length>0){const ct=r[0],kt=re(ct),Wt=xN(ct)?ct.siblings:void 0;Ke.appendChild(Re(kt,r.slice(1),Wt))}return Ke},SG=r=>{r=mo.trim(r);let g="div";const B={name:g,classes:[],attrs:{},selector:r};return r!=="*"&&(g=r.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(H,re,be,Re,Ke)=>{switch(re){case"#":B.attrs.id=be;break;case".":B.classes.push(be);break;case":":mo.inArray("checked disabled enabled read-only required".split(" "),be)!==-1&&(B.attrs[be]=be);break}if(Re==="["){const ct=Ke.match(/([\w\-]+)(?:\=\"([^\"]+))?/);ct&&(B.attrs[ct[1]]=ct[2])}return""})),B.name=g||"div",B},By=r=>v(r)?(r=r.split(/\s*,\s*/)[0],r=r.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),mo.map(r.split(/(?:>|\s+(?![^\[\]]+\]))/),g=>{const B=mo.map(g.split(/(?:~\+|~|\+)/),SG),H=B.pop();return B.length&&(H.siblings=B),H}).reverse()):[],lfe=(r,g)=>{let B="",H=tw(r);if(H==="")return"";const re=ln=>v(ln)?ln.replace(/%(\w+)/g,""):"",be=(ln,kn)=>m0.getStyle(kn??r.getBody(),ln,!0);if(v(g)){const ln=r.formatter.get(g);if(!ln)return"";g=ln[0]}if("preview"in g){const ln=g.preview;if(ln===!1)return"";H=ln||H}let Re=g.block||g.inline||"span",Ke;const ct=By(g.selector);ct.length>0?(ct[0].name||(ct[0].name=Re),Re=g.selector,Ke=_N(ct,r)):Ke=_N([Re],r);const kt=m0.select(Re,Ke)[0]||Ke.firstChild;MP(g.styles,(ln,kn)=>{const Vn=re(ln);Vn&&m0.setStyle(kt,kn,Vn)}),MP(g.attributes,(ln,kn)=>{const Vn=re(ln);Vn&&m0.setAttrib(kt,kn,Vn)}),MP(g.classes,ln=>{const kn=re(ln);m0.hasClass(kt,kn)||m0.addClass(kt,kn)}),r.dispatch("PreviewFormats"),m0.setStyles(Ke,{position:"absolute",left:-65535}),r.getBody().appendChild(Ke);const Wt=be("fontSize"),Jt=/px$/.test(Wt)?parseInt(Wt,10):0;return MP(H.split(" "),ln=>{let kn=be(ln,kt);if(!(ln==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(kn)&&(kn=be(ln),Am(kn).toLowerCase()==="#ffffff"))&&!(ln==="color"&&Am(kn).toLowerCase()==="#000000")){if(ln==="font-size"&&/em|%$/.test(kn)){if(Jt===0)return;kn=parseFloat(kn)/(/%$/.test(kn)?100:1)*Jt+"px"}ln==="border"&&kn&&(B+="padding:0 2px;"),B+=ln+":"+kn+";"}}),r.dispatch("AfterPreviewFormats"),m0.remove(Ke),B},cfe=r=>{r.addShortcut("meta+b","","Bold"),r.addShortcut("meta+i","","Italic"),r.addShortcut("meta+u","","Underline");for(let g=1;g<=6;g++)r.addShortcut("access+"+g,"",["FormatBlock",!1,"h"+g]);r.addShortcut("access+7","",["FormatBlock",!1,"p"]),r.addShortcut("access+8","",["FormatBlock",!1,"div"]),r.addShortcut("access+9","",["FormatBlock",!1,"address"])},wN=r=>{const g=AP(r),B=mr({});return cfe(r),Az(r),Iy(r)||Qz(B,r),{get:g.get,has:g.has,register:g.register,unregister:g.unregister,apply:(H,re,be)=>{GF(r,H,re,be)},remove:(H,re,be,Re)=>{kX(r,H,re,be,Re)},toggle:(H,re,be)=>{TX(r,H,re,be)},match:(H,re,be,Re)=>AC(r,H,re,be,Re),closest:H=>XF(r,H),matchAll:(H,re)=>wX(r,H,re),matchNode:(H,re,be,Re)=>OX(r,H,re,be,Re),canApply:H=>SX(r,H),formatChanged:(H,re,be,Re)=>CX(r,B,H,re,be,Re),getCssText:U(lfe,r)}},u4=r=>{switch(r.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},kG=(r,g,B)=>{const H=mr(!1),re=ct=>{n4(g,!1,B),g.add({},ct)};r.on("init",()=>{g.add()}),r.on("BeforeExecCommand",ct=>{const kt=ct.command;u4(kt)||(zF(g,B),g.beforeChange())}),r.on("ExecCommand",ct=>{const kt=ct.command;u4(kt)||re(ct)}),r.on("ObjectResizeStart cut",()=>{g.beforeChange()}),r.on("SaveContent ObjectResized blur",re),r.on("dragend",re),r.on("keyup",ct=>{const kt=ct.keyCode;if(ct.isDefaultPrevented())return;const Wt=fr.os.isMacOS()&&ct.key==="Meta";(kt>=33&&kt<=36||kt>=37&&kt<=40||kt===45||ct.ctrlKey||Wt)&&(re(),r.nodeChanged()),(kt===46||kt===8)&&r.nodeChanged(),H.get()&&g.typing&&!cP(SC(r),g.data[0])&&(r.isDirty()||r.setDirty(!0),r.dispatch("TypingUndo"),H.set(!1),r.nodeChanged())}),r.on("keydown",ct=>{const kt=ct.keyCode;if(ct.isDefaultPrevented())return;if(kt>=33&&kt<=36||kt>=37&&kt<=40||kt===45){g.typing&&re(ct);return}const Wt=ct.ctrlKey&&!ct.altKey||ct.metaKey;if((kt<16||kt>20)&&kt!==224&&kt!==91&&!g.typing&&!Wt){g.beforeChange(),n4(g,!0,B),g.add({},ct),H.set(!0);return}(fr.os.isMacOS()?ct.metaKey:ct.ctrlKey&&!ct.altKey)&&g.beforeChange()}),r.on("mousedown",ct=>{g.typing&&re(ct)});const be=ct=>ct.inputType==="insertReplacementText",Re=ct=>ct.inputType==="insertText"&&ct.data===null,Ke=ct=>ct.inputType==="insertFromPaste"||ct.inputType==="insertFromDrop";r.on("input",ct=>{ct.inputType&&(be(ct)||Re(ct)||Ke(ct))&&re(ct)}),r.on("AddUndo Undo Redo ClearUndos",ct=>{ct.isDefaultPrevented()||r.nodeChanged()})},ON=r=>{r.addShortcut("meta+z","","Undo"),r.addShortcut("meta+y,meta+shift+z","","Redo")},EP=r=>{const g=Ys(),B=mr(0),H=mr(0),re={data:[],typing:!1,beforeChange:()=>{QF(r,B,g)},add:(be,Re)=>dP(r,re,H,B,g,be,Re),dispatchChange:()=>{r.setDirty(!0);const be=SC(r);be.bookmark=Ja(r.selection),r.dispatch("change",{level:be,lastLevel:Ze(re.data,H.get()).getOrUndefined()})},undo:()=>HF(r,re,B,H),redo:()=>ZF(r,H,re.data),clear:()=>{hP(r,re,H)},reset:()=>{qF(r,re)},hasUndo:()=>WF(r,re,H),hasRedo:()=>YF(r,re,H),transact:be=>xX(r,re,B,be),ignore:be=>{pP(r,B,be)},extra:(be,Re)=>{_X(r,re,H,be,Re)}};return Iy(r)||kG(r,re,B),ON(r),re},SN=[9,27,Fo.HOME,Fo.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Fo.DOWN,Fo.UP,Fo.LEFT,Fo.RIGHT].concat(fr.browser.isFirefox()?[224]:[]),kN="data-mce-placeholder",TN=r=>r.type==="keydown"||r.type==="keyup",rx=r=>{const g=r.keyCode;return g===Fo.BACKSPACE||g===Fo.DELETE},TG=r=>{if(TN(r)){const g=r.keyCode;return!rx(r)&&(Fo.metaKeyPressed(r)||r.altKey||g>=112&&g<=123||ce(SN,g))}else return!1},CG=r=>TN(r)&&!(rx(r)||r.type==="keyup"&&r.keyCode===229),AG=(r,g,B)=>{if(r.isEmpty(g,void 0,{skipBogus:!1,includeZwsp:!0})){const H=g.firstElementChild;return H?r.getStyle(g.firstElementChild,"padding-left")||r.getStyle(g.firstElementChild,"padding-right")?!1:B===H.nodeName.toLowerCase():!0}else return!1},MG=r=>{var g;const B=r.dom,H=dc(r),re=(g=dy(r))!==null&&g!==void 0?g:"",be=(Re,Ke)=>{if(TG(Re))return;const ct=r.getBody(),kt=CG(Re)?!1:AG(B,ct,H);(B.getAttrib(ct,kN)!==""!==kt||Ke)&&(B.setAttrib(ct,kN,kt?re:null),P3(r,kt),r.on(kt?"keydown":"keyup",be),r.off(kt?"keyup":"keydown",be))};Kn(re)&&r.on("init",Re=>{be(Re,!0),r.on("change SetContent ExecCommand",be),r.on("paste",Ke=>Tg.setEditorTimeout(r,()=>be(Ke)))})},EG=(r,g)=>({block:r,position:g}),PG=(r,g)=>({from:r,to:g}),PP=(r,g)=>{const B=sr.fromDom(r),H=sr.fromDom(g.container());return A6(B,H).map(re=>EG(re,g))},RG=r=>!(Qu(r.to.block,r.from.block)||Qu(r.from.block,r.to.block)),LG=r=>!Fa(r.from.block,r.to.block),rk=(r,g)=>Ya(g,re=>N1(re)||Sn(re.dom),re=>Fa(re,r)).filter(mc).getOr(r),IG=(r,g)=>{const B=sr.fromDom(r);return Fa(rk(B,g.from.block),rk(B,g.to.block))},DG=r=>rr(r.from.block.dom)===!1&&rr(r.to.block.dom)===!1,ufe=r=>{const g=B=>Q_(B)||Rl(B.dom)||nh(B);return g(r.from.block)&&g(r.to.block)},ok=(r,g,B,H)=>On(H.position.getNode())&&!Pi(r,H.block)?$b(!1,H.block.dom).bind(re=>re.isEqual(H.position)?Yp(B,g,re).bind(be=>PP(g,be)):Y.some(H)).getOr(H):H,BG=(r,g,B,H)=>{const re=PP(g,qr.fromRangeStart(H)),be=re.bind(Re=>Yp(B,g,Re.position).bind(Ke=>PP(g,Ke).map(ct=>ok(r,g,B,ct))));return us(re,be,PG).filter(Re=>LG(Re)&&IG(g,Re)&&DG(Re)&&ufe(Re)&&RG(Re))},RP=(r,g,B,H)=>H.collapsed?BG(r,g,B,H):Y.none(),zG=(r,g)=>{const B=Oc(r);return He(B,H=>g.isBlock(la(H))).fold($(B),H=>B.slice(0,H))},CN=(r,g)=>{const B=zG(r,g);return ye(B,ja),B},AN=(r,g,B)=>{const H=Xb(B,g);return De(H.reverse(),re=>Pi(r,re)).each(ja)},FG=(r,g)=>Te(vh(g),B=>!Pi(r,B)).length===0,Xw=(r,g,B,H,re)=>{if(Pi(H,B))return rh(B),lh(B.dom);FG(H,re)&&Pi(H,g)&&Fc(re,sr.fromTag("br"));const be=mp(B.dom,qr.before(re.dom));return ye(CN(g,H),Re=>{Fc(re,Re)}),AN(H,r,g),be},Gw=(r,g)=>r.isInline(la(g)),BC=(r,g,B,H)=>{if(Pi(H,B)){if(Pi(H,g)){const Re=Pe((Ke=>{const ct=(kt,Wt)=>Uf(kt).fold(()=>Wt,Jt=>Gw(H,Jt)?ct(Jt,Wt.concat(Th(Jt))):Wt);return ct(Ke,[])})(B),(Ke,ct)=>(Sc(Ke,ct),ct),$1());vu(g),Ps(g,Re)}return ja(B),lh(g.dom)}const re=Xp(B.dom);return ye(CN(g,H),be=>{Ps(B,be)}),AN(H,r,g),re},zC=(r,g)=>{const B=Xb(g,r);return Y.from(B[B.length-1])},Kw=(r,g)=>Qu(g,r)?zC(g,r):Y.none(),D2=(r,g)=>{$b(r,g.dom).bind(B=>Y.from(B.getNode())).map(sr.fromDom).filter(N0).each(ja)},ik=(r,g,B,H)=>(D2(!0,g),D2(!1,B),Kw(g,B).fold(U(BC,r,g,B,H),U(Xw,r,g,B,H))),ak=(r,g,B,H,re)=>g?ik(r,H,B,re):ik(r,B,H,re),FC=(r,g)=>{const B=sr.fromDom(r.getBody());return RP(r.schema,B.dom,g,r.selection.getRng()).map(re=>()=>{ak(B,g,re.from.block,re.to.block,r.schema).each(be=>{r.selection.setRng(be.toRange())})})},LP=(r,g,B)=>{const H=g.getRng();return us(A6(r,sr.fromDom(H.startContainer)),A6(r,sr.fromDom(H.endContainer)),(re,be)=>Fa(re,be)?Y.none():Y.some(()=>{H.deleteContents(),ak(r,!0,re,be,B).each(Re=>{g.setRng(Re.toRange())})})).getOr(Y.none())},NC=(r,g)=>{const B=sr.fromDom(g),H=U(Fa,r);return ms(B,N1,H).isSome()},MN=(r,g)=>NC(r,g.startContainer)||NC(r,g.endContainer),EN=(r,g)=>{const B=mp(r.dom,qr.fromRangeStart(g)).isNone(),H=sh(r.dom,qr.fromRangeEnd(g)).isNone();return!MN(r,g)&&B&&H},f4=r=>Y.some(()=>{r.setContent(""),r.selection.setCursorLocation()}),PN=r=>{const g=sr.fromDom(r.getBody()),B=r.selection.getRng();return EN(g,B)?f4(r):LP(g,r.selection,r.schema)},$C=(r,g)=>r.selection.isCollapsed()?Y.none():PN(r),zy=(r,g,B,H,re)=>Y.from(g._selectionOverrides.showCaret(r,B,H,re)),VC=r=>{const g=r.ownerDocument.createRange();return g.selectNode(r),g},d4=(r,g)=>r.dispatch("BeforeObjectSelected",{target:g}).isDefaultPrevented()?Y.none():Y.some(VC(g)),RN=(r,g,B)=>{const H=$d(1,r.getBody(),g),re=qr.fromRangeStart(H),be=re.getNode();if(l3(be))return zy(1,r,be,!re.isAtEnd(),!1);const Re=re.getNode(!0);if(l3(Re))return zy(1,r,Re,!1,!1);const Ke=Kb(r.dom.getRoot(),re.getNode());return l3(Ke)?zy(1,r,Ke,!1,B):Y.none()},UC=(r,g,B)=>g.collapsed?RN(r,g,B).getOr(g):g,LN=r=>Ey(r)||Li(r),ox=r=>k2(r)||U3(r),B2=(r,g)=>{Nt(g)&&g.data.length===0&&r.remove(g)},g0=(r,g,B,H,re,be)=>{zy(H,r,be.getNode(!re),re,!0).each(Re=>{if(g.collapsed){const Ke=g.cloneRange();re?Ke.setEnd(Re.startContainer,Re.startOffset):Ke.setStart(Re.endContainer,Re.endOffset),Ke.deleteContents()}else g.deleteContents();r.selection.setRng(Re)}),B2(r.dom,B)},NG=(r,g)=>{const B=r.selection.getRng();if(!Nt(B.commonAncestorContainer))return Y.none();const H=g?Mf.Forwards:Mf.Backwards,re=Sd(r.getBody()),be=U(DS,g?re.next:re.prev),Re=g?LN:ox,Ke=Fb(H,r.getBody(),B),ct=be(Ke),kt=ct&&Cg(g,ct);if(!kt||!h3(Ke,kt))return Y.none();if(Re(kt))return Y.some(()=>g0(r,B,Ke.getNode(),H,g,kt));const Wt=be(kt);return Wt&&Re(Wt)&&h3(kt,Wt)?Y.some(()=>g0(r,B,Ke.getNode(),H,g,Wt)):Y.none()},IP=(r,g)=>NG(r,g),DP=(r,g)=>{const B=r.getBody();return g?lh(B).filter(Ey):Xp(B).filter(k2)},BP=r=>{const g=r.selection.getRng();return!g.collapsed&&(DP(r,!0).exists(B=>B.isEqual(qr.fromRangeStart(g)))||DP(r,!1).exists(B=>B.isEqual(qr.fromRangeEnd(g))))},$G=r=>E(r)&&(N1(sr.fromDom(r))||nh(sr.fromDom(r))),Mg=aa.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),VG=(r,g)=>{const B=g.getNode(!r),H=r?"after":"before";return ne(B)&&B.getAttribute("data-mce-caret")===H},UG=(r,g,B,H,re)=>{const be=Re=>re.isInline(Re.nodeName.toLowerCase())&&!Wp(B,H,r);return f3(!g,B).fold(()=>f3(g,H).fold(oe,be),be)},IN=(r,g,B,H,re)=>{const be=re.getNode(!B);return A6(sr.fromDom(g),sr.fromDom(H.getNode())).map(Re=>Pi(r,Re)?Mg.remove(Re.dom):Mg.moveToElement(be)).orThunk(()=>Y.some(Mg.moveToElement(be)))},DN=(r,g,B,H)=>Yp(g,r,B).bind(re=>$G(re.getNode())||UG(r,g,B,re,H)?Y.none():g&&rr(re.getNode())||!g&&rr(re.getNode(!0))?IN(H,r,g,B,re):g&&k2(B)||!g&&Ey(B)?Y.some(Mg.moveToPosition(re)):Y.none()),jG=(r,g)=>T(g)?Y.none():r&&rr(g.nextSibling)?Y.some(Mg.moveToElement(g.nextSibling)):!r&&rr(g.previousSibling)?Y.some(Mg.moveToElement(g.previousSibling)):Y.none(),QG=(r,g,B)=>B.fold(H=>Y.some(Mg.remove(H)),H=>Y.some(Mg.moveToElement(H)),H=>Wp(g,H,r)?Y.none():Y.some(Mg.moveToPosition(H))),zP=(r,g,B,H)=>VG(g,B)?jG(g,B.getNode(!g)).orThunk(()=>DN(r,g,B,H)):DN(r,g,B,H).bind(re=>QG(r,B,re)),FP=(r,g,B,H)=>{const re=$d(g?1:-1,r,B),be=qr.fromRangeStart(re),Re=sr.fromDom(r);return!g&&k2(be)?Y.some(Mg.remove(be.getNode(!0))):g&&Ey(be)?Y.some(Mg.remove(be.getNode())):!g&&Ey(be)&&UE(Re,be,H)?MB(Re,be,H).map(Ke=>Mg.remove(Ke.getNode())):g&&k2(be)&&AB(Re,be,H)?wW(Re,be,H).map(Ke=>Mg.remove(Ke.getNode())):zP(r,g,be,H)},BN=(r,g)=>B=>(r._selectionOverrides.hideFakeCaret(),Ew(r,g,sr.fromDom(B)),!0),HG=(r,g)=>B=>{const H=g?qr.before(B):qr.after(B);return r.selection.setRng(H.toRange()),!0},ZG=r=>g=>(r.selection.setRng(g.toRange()),!0),NP=(r,g)=>Y.from(Kb(r.getBody(),g)),zN=(r,g)=>{const B=r.selection.getNode();return NP(r,B).filter(rr).fold(()=>FP(r.getBody(),g,r.selection.getRng(),r.schema).map(H=>()=>H.fold(BN(r,g),HG(r,g),ZG(r))),()=>Y.some(k))},$P=r=>{ye(Zl(r,".mce-offscreen-selection"),ja)},FN=(r,g)=>{const B=r.selection.getNode();return rr(B)&&!Dr(B)?NP(r,B.parentNode).filter(rr).fold(()=>Y.some(()=>{$P(sr.fromDom(r.getBody())),Ew(r,g,sr.fromDom(r.selection.getNode())),hc(r)}),()=>Y.some(k)):BP(r)?Y.some(()=>{KB(r,r.selection.getRng(),sr.fromDom(r.getBody()))}):Y.none()},VP=r=>{const g=r.dom,B=r.selection,H=Kb(r.getBody(),B.getNode());if(Sn(H)&&g.isBlock(H)&&g.isEmpty(H)){const re=g.create("br",{"data-mce-bogus":"1"});g.setHTML(H,""),H.appendChild(re),B.setRng(qr.before(re).toRange())}return!0},sk=(r,g)=>r.selection.isCollapsed()?zN(r,g):FN(r,g),NN=r=>r.hasOwnProperty("text"),$N=r=>r.hasOwnProperty("marker"),wv=(r,g)=>{const B=(be,Re)=>{if(Nt(be))return{text:be,offset:Re};{const Ke=g(),ct=be.childNodes;return Re{var g,B;const{start:H,end:re}=r,be=new window.Range;return NN(H)?be.setStart(H.text,H.offset):$N(H)&&(H.before?be.setStartBefore(H.marker):be.setStartAfter(H.marker),(g=H.marker.parentNode)===null||g===void 0||g.removeChild(H.marker)),NN(re)?be.setEnd(re.text,re.offset):$N(re)&&(re.before?be.setEndBefore(re.marker):be.setEndAfter(re.marker),(B=re.marker.parentNode)===null||B===void 0||B.removeChild(re.marker)),be},h4=(r,g)=>{var B;const H=r.dom,re=H.getParent(r.selection.getStart(),H.isBlock),be=H.getParent(r.selection.getEnd(),H.isBlock),Re=r.getBody();if(((B=re==null?void 0:re.nodeName)===null||B===void 0?void 0:B.toLowerCase())==="div"&&re&&be&&re===Re.firstChild&&be===Re.lastChild&&!H.isEmpty(Re)){const ct=re.cloneNode(!1),kt=()=>{if(g?GB(r):C6(r),Re.firstChild!==re){const Wt=wv(r.selection.getRng(),()=>document.createElement("span"));Array.from(Re.childNodes).forEach(Jt=>ct.appendChild(Jt)),Re.appendChild(ct),r.selection.setRng(v0(Wt))}};return Y.some(kt)}return Y.none()},VN=(r,g)=>{const B=qr.fromRangeStart(r.selection.getRng());return Yp(g,r.getBody(),B).filter(H=>g?vW(H):yW(H)).bind(H=>u3(g?0:-1,H)).map(H=>()=>r.selection.select(H))},p4=(r,g)=>r.selection.isCollapsed()?VN(r,g):Y.none(),Jw=Nt,UP=r=>Jw(r)&&r.data[0]===nc,jP=r=>Jw(r)&&r.data[r.data.length-1]===nc,QP=r=>{var g;return((g=r.ownerDocument)!==null&&g!==void 0?g:document).createTextNode(nc)},UN=r=>{var g;if(Jw(r.previousSibling))return jP(r.previousSibling)||r.previousSibling.appendData(nc),r.previousSibling;if(Jw(r))return UP(r)||r.insertData(0,nc),r;{const B=QP(r);return(g=r.parentNode)===null||g===void 0||g.insertBefore(B,r),B}},jN=r=>{var g,B;if(Jw(r.nextSibling))return UP(r.nextSibling)||r.nextSibling.insertData(0,nc),r.nextSibling;if(Jw(r))return jP(r)||r.appendData(nc),r;{const H=QP(r);return r.nextSibling?(g=r.parentNode)===null||g===void 0||g.insertBefore(H,r.nextSibling):(B=r.parentNode)===null||B===void 0||B.appendChild(H),H}},eO=(r,g)=>r?UN(g):jN(g),HP=U(eO,!0),qG=U(eO,!1),QN=(r,g)=>Nt(r.container())?eO(g,r.container()):eO(g,r.getNode()),HN=(r,g)=>{const B=g.get();return B&&r.container()===B&&oh(B)},ZP=(r,g)=>g.fold(B=>{by(r.get());const H=HP(B);return r.set(H),Y.some(qr(H,H.length-1))},B=>lh(B).map(H=>{if(HN(H,r)){const re=r.get();return qr(re,1)}else{by(r.get());const re=QN(H,!0);return r.set(re),qr(re,1)}}),B=>Xp(B).map(H=>{if(HN(H,r)){const re=r.get();return qr(re,re.length-1)}else{by(r.get());const re=QN(H,!1);return r.set(re),qr(re,re.length-1)}}),B=>{by(r.get());const H=qG(B);return r.set(H),Y.some(qr(H,1))}),qP=(r,g)=>{for(let B=0;B{const B=c0(g,r);return B||r},WP=(r,g,B)=>{const H=Xh(B),re=ZN(g,H.container());return Gb(r,re,H).fold(()=>sh(re,H).bind(U(Gb,r,re)).map(be=>bp.before(be)),Y.none)},WG=(r,g)=>Vb(r,g)===null,qN=(r,g,B)=>Gb(r,g,B).filter(U(WG,g)),YG=(r,g,B)=>{const H=YB(B);return qN(r,g,H).bind(re=>mp(re,H).isNone()?Y.some(bp.start(re)):Y.none())},XG=(r,g,B)=>{const H=Xh(B);return qN(r,g,H).bind(re=>sh(re,H).isNone()?Y.some(bp.end(re)):Y.none())},GG=(r,g,B)=>{const H=YB(B),re=ZN(g,H.container());return Gb(r,re,H).fold(()=>mp(re,H).bind(U(Gb,r,re)).map(be=>bp.after(be)),Y.none)},WN=r=>!ZB(m4(r)),Fy=(r,g,B)=>qP([WP,YG,XG,GG],[r,g,B]).filter(WN),m4=r=>r.fold(Q,Q,Q,Q),jC=r=>r.fold($("before"),$("start"),$("end"),$("after")),QC=r=>r.fold(bp.before,bp.before,bp.after,bp.after),YP=r=>r.fold(bp.start,bp.start,bp.end,bp.end),KG=(r,g)=>jC(r)===jC(g)&&m4(r)===m4(g),JG=(r,g,B,H,re,be)=>us(Gb(g,B,H),Gb(g,B,re),(Re,Ke)=>Re!==Ke&&qB(B,Re,Ke)?bp.after(r?Re:Ke):be).getOr(be),YN=(r,g)=>r.fold(q,B=>!KG(B,g)),eK=(r,g,B,H,re)=>{const be=Cg(r,re);return Yp(r,B,be).map(U(Cg,r)).fold(()=>H.map(QC),ct=>Fy(g,B,ct).map(U(JG,r,g,B,be,ct)).filter(U(YN,H))).filter(WN)},tK=(r,g)=>r?g.fold(I(Y.some,bp.start),Y.none,I(Y.some,bp.after),Y.none):g.fold(Y.none,I(Y.some,bp.before),Y.none,I(Y.some,bp.end)),XP=(r,g,B,H)=>{const re=Cg(r,H),be=Fy(g,B,re);return Fy(g,B,re).bind(U(tK,r)).orThunk(()=>eK(r,g,B,be,H))},nK=r=>C(r.selection.getSel().modify),XN=(r,g,B)=>{const H=r?1:-1;return g.setRng(qr(B.container(),B.offset()+H).toRange()),g.getSel().modify("move",r?"forward":"backward","word"),!0},rK=(r,g)=>{const B=g.selection.getRng(),H=r?qr.fromRangeEnd(B):qr.fromRangeStart(B);return nK(g)?r&&V0(H)?XN(!0,g.selection,H):!r&&Up(H)?XN(!1,g.selection,H):!1:!1};var Ny;(function(r){r[r.Br=0]="Br",r[r.Block=1]="Block",r[r.Wrap=2]="Wrap",r[r.Eol=3]="Eol"})(Ny||(Ny={}));const HC=(r,g)=>r===Mf.Backwards?ke(g):g,oK=(r,g,B)=>r===Mf.Forwards?g.next(B):g.prev(B),iK=(r,g,B,H)=>On(H.getNode(g===Mf.Forwards))?Ny.Br:Wp(B,H)===!1?Ny.Block:Ny.Wrap,lk=(r,g,B,H)=>{const re=Sd(B);let be=H;const Re=[];for(;be;){const Ke=oK(g,re,be);if(!Ke)break;if(On(Ke.getNode(!1)))return g===Mf.Forwards?{positions:HC(g,Re).concat([Ke]),breakType:Ny.Br,breakAt:Y.some(Ke)}:{positions:HC(g,Re),breakType:Ny.Br,breakAt:Y.some(Ke)};if(!Ke.isVisible()){be=Ke;continue}if(r(be,Ke)){const ct=iK(B,g,be,Ke);return{positions:HC(g,Re),breakType:ct,breakAt:Y.some(Ke)}}Re.push(Ke),be=Ke}return{positions:HC(g,Re),breakType:Ny.Eol,breakAt:Y.none()}},ck=(r,g,B,H)=>g(B,H).breakAt.map(re=>{const be=g(B,re).positions;return r===Mf.Backwards?be.concat(re):[re].concat(be)}).getOr([]),GP=(r,g)=>Ie(r,(B,H)=>B.fold(()=>Y.some(H),re=>us(Xe(re.getClientRects()),Xe(H.getClientRects()),(be,Re)=>{const Ke=Math.abs(g-be.left);return Math.abs(g-Re.left)<=Ke?H:re}).or(B)),Y.none()),ZC=(r,g)=>Xe(g.getClientRects()).bind(B=>GP(r,B.left)),z2=U(lk,qr.isAbove,-1),uk=U(lk,qr.isBelow,1),GN=U(ck,-1,z2),KN=U(ck,1,uk),JN=(r,g)=>z2(r,g).breakAt.isNone(),e$=(r,g)=>uk(r,g).breakAt.isNone(),aK=r=>lh(r).map(g=>[g].concat(uk(r,g).positions)).getOr([]),sK=r=>Xp(r).map(g=>z2(r,g).positions.concat(g)).getOr([]),lK=(r,g)=>ZC(GN(r,g),g),cK=(r,g)=>ZC(KN(r,g),g),uK=rr,t$=(r,g)=>Math.abs(r.left-g),fK=(r,g)=>Math.abs(r.right-g),l1=r=>nn(r,"node"),qC=(r,g)=>it(r,(B,H)=>{const re=Math.min(t$(B,g),fK(B,g)),be=Math.min(t$(H,g),fK(H,g));return be===re&&l1(H)&&uK(H.node)||be{const g=B=>ve(B,H=>{const re=i0(H);return re.node=r,re});if(ne(r))return g(r.getClientRects());if(Nt(r)){const B=r.ownerDocument.createRange();return B.setStart(r,0),B.setEnd(r,r.data.length),g(B.getClientRects())}else return[]},KP=r=>$e(r,n$);var fk;(function(r){r[r.Up=-1]="Up",r[r.Down=1]="Down"})(fk||(fk={}));const r$=(r,g,B,H)=>{let re=H;for(;re=u2(re,r,Zx,g);)if(B(re))return},o$=(r,g,B,H,re,be)=>{let Re=0;const Ke=[],ct=Jt=>{let ln=KP([Jt]);r===-1&&(ln=ln.reverse());for(let kn=0;kn0&&g(Vn,Lt(Ke))&&Re++,Vn.line=Re,re(Vn))return!0;Ke.push(Vn)}}return!1},kt=Lt(be.getClientRects());if(!kt)return Ke;const Wt=be.getNode();return Wt&&(ct(Wt),r$(r,H,ct,Wt)),Ke},i$=(r,g)=>g.line>r,dK=(r,g)=>g.line===r,hK=U(o$,fk.Up,j1,Ux),pK=U(o$,fk.Down,Ux,j1),tO=r=>Lt(r.getClientRects()),a$=(r,g,B,H)=>{const re=Sd(g);let be,Re,Ke,ct;const kt=[];let Wt=0;r===1?(be=re.next,Re=Ux,Ke=j1,ct=qr.after(H)):(be=re.prev,Re=j1,Ke=Ux,ct=qr.before(H));const Jt=tO(ct);do{if(!ct.isVisible())continue;const ln=tO(ct);if(Ke(ln,Jt))continue;kt.length>0&&Re(ln,Lt(kt))&&Wt++;const kn=i0(ln);if(kn.position=ct,kn.line=Wt,B(kn))return kt;kt.push(kn)}while(ct=be(ct));return kt},JP=r=>g=>i$(r,g),WC=r=>g=>dK(r,g),Ov=(r,g)=>{r.selection.setRng(g),g5(r,r.selection.getRng())},e9=(r,g,B)=>Y.some(UC(r,g,B)),s$=(r,g,B,H,re,be)=>{const Re=g===Mf.Forwards,Ke=Sd(r.getBody()),ct=U(DS,Re?Ke.next:Ke.prev),kt=Re?H:re;if(!B.collapsed){const Vn=Pm(B);if(be(Vn))return zy(g,r,Vn,g===Mf.Backwards,!1);if(BP(r)){const Rn=B.cloneRange();return Rn.collapse(g===Mf.Backwards),Y.from(Rn)}}const Wt=Fb(g,r.getBody(),B);if(kt(Wt))return d4(r,Wt.getNode(!Re));let Jt=ct(Wt);const ln=bd(B);if(Jt)Jt=Cg(Re,Jt);else return ln?Y.some(B):Y.none();if(kt(Jt))return zy(g,r,Jt.getNode(!Re),Re,!1);const kn=ct(Jt);return kn&&kt(kn)&&h3(Jt,kn)?zy(g,r,kn.getNode(!Re),Re,!1):ln?e9(r,Jt.toRange(),!1):Y.none()},l$=(r,g,B,H,re,be)=>{const Re=Fb(g,r.getBody(),B),Ke=Lt(Re.getClientRects()),ct=g===fk.Down,kt=r.getBody();if(!Ke)return Y.none();if(BP(r)){const qn=ct?qr.fromRangeEnd(B):qr.fromRangeStart(B);return(ct?cK:lK)(kt,qn).orThunk(()=>Y.from(qn)).map(Tr=>Tr.toRange())}const Jt=(ct?pK:hK)(kt,JP(1),Re),ln=Te(Jt,WC(1)),kn=Ke.left,Vn=qC(ln,kn);if(Vn&&be(Vn.node)){const qn=Math.abs(kn-Vn.left),pr=Math.abs(kn-Vn.right);return zy(g,r,Vn.node,qnUC(r,qn.toRange(),!1)):Y.none()},c$=(r,g)=>{const B=r.selection.getRng(),H=g?qr.fromRangeEnd(B):qr.fromRangeStart(B),re=UM(H.container(),r.getBody());if(g){const be=uk(re,H);return tt(be.positions)}else{const be=z2(re,H);return Xe(be.positions)}},mK=(r,g,B)=>c$(r,g).filter(B).exists(H=>(r.selection.setRng(H.toRange()),!0)),t9=(r,g)=>{const B=r.dom.createRng();B.setStart(g.container(),g.offset()),B.setEnd(g.container(),g.offset()),r.selection.setRng(B)},y0=(r,g)=>{r?g.setAttribute("data-mce-selected","inline-boundary"):g.removeAttribute("data-mce-selected")},u$=(r,g,B)=>ZP(g,B).map(H=>(t9(r,H),B)),gK=(r,g,B)=>{const H=qr.fromRangeStart(r);if(r.collapsed)return H;{const re=qr.fromRangeEnd(r);return B?mp(g,re).getOr(re):sh(g,H).getOr(H)}},nO=(r,g,B)=>{const H=r.getBody(),re=gK(r.selection.getRng(),H,B),be=U(T2,r);return XP(B,be,H,re).bind(Ke=>u$(r,g,Ke))},f$=(r,g,B)=>{const H=ve(Zl(sr.fromDom(g.getRoot()),'*[data-mce-selected="inline-boundary"]'),Re=>Re.dom),re=Te(H,r),be=Te(B,r);ye(Le(re,be),U(y0,!1)),ye(Le(be,re),U(y0,!0))},vK=(r,g)=>{const B=g.get();if(r.selection.isCollapsed()&&!r.composing&&B){const H=qr.fromRangeStart(r.selection.getRng());qr.isTextPosition(H)&&!WB(H)&&(t9(r,FM(B,H)),g.set(null))}},YC=(r,g,B,H)=>{if(g.selection.isCollapsed()){const re=Te(H,r);ye(re,be=>{const Re=qr.fromRangeStart(g.selection.getRng());Fy(r,g.getBody(),Re).bind(Ke=>u$(g,B,Ke))})}},d$=(r,g,B)=>Z0(r)?nO(r,g,B).isSome():!1,h$=(r,g,B)=>Z0(g)?rK(r,g):!1,yK=r=>{const g=mr(null),B=U(T2,r);return r.on("NodeChange",H=>{Z0(r)&&(f$(B,r.dom,H.parents),vK(r,g),YC(B,r,g,H.parents))}),g},bK=U(h$,!0),p$=U(h$,!1),XC=(r,g,B)=>{if(Z0(r)){const H=c$(r,g).getOrThunk(()=>{const re=r.selection.getRng();return g?qr.fromRangeEnd(re):qr.fromRangeStart(re)});return Fy(U(T2,r),r.getBody(),H).exists(re=>{const be=QC(re);return ZP(B,be).exists(Re=>(t9(r,Re),!0))})}else return!1},ix=(r,g)=>{const B=document.createRange();return B.setStart(r.container(),r.offset()),B.setEnd(g.container(),g.offset()),B},xK=r=>us(lh(r),Xp(r),(g,B)=>{const H=Cg(!0,g),re=Cg(!1,B);return sh(r,H).forall(be=>be.isEqual(re))}).getOr(!0),m$=(r,g)=>B=>ZP(g,B).map(H=>()=>t9(r,H)),g$=(r,g,B,H)=>{const re=r.getBody(),be=U(T2,r);r.undoManager.ignore(()=>{r.selection.setRng(ix(B,H)),C6(r),Fy(be,re,qr.fromRangeStart(r.selection.getRng())).map(YP).bind(m$(r,g)).each(K)}),r.nodeChanged()},_K=(r,g)=>{const B=c0(g,r);return B||r},wK=(r,g,B,H)=>{const re=_K(r.getBody(),H.container()),be=U(T2,r),Re=Fy(be,re,H);return Re.bind(ct=>B?ct.fold($(Y.some(YP(ct))),Y.none,$(Y.some(QC(ct))),Y.none):ct.fold(Y.none,$(Y.some(QC(ct))),Y.none,$(Y.some(YP(ct))))).map(m$(r,g)).getOrThunk(()=>{const ct=uv(B,re,H),kt=ct.bind(Wt=>Fy(be,re,Wt));return us(Re,kt,()=>Gb(be,re,H).bind(Wt=>xK(Wt)?Y.some(()=>{Ew(r,B,sr.fromDom(Wt))}):Y.none())).getOrThunk(()=>kt.bind(()=>ct.map(Wt=>()=>{B?g$(r,g,H,Wt):g$(r,g,Wt,H)})))})},dk=(r,g,B)=>{if(r.selection.isCollapsed()&&Z0(r)){const H=qr.fromRangeStart(r.selection.getRng());return wK(r,g,B,H)}return Y.none()},n9=r=>Hl(r)>1,GC=(r,g)=>{const B=sr.fromDom(r.getBody()),H=sr.fromDom(r.selection.getStart()),re=Xb(H,B);return He(re,g).fold($(re),be=>re.slice(0,be))},v$=r=>Hl(r)===1,y$=r=>GC(r,g=>r.schema.isBlock(la(g))||n9(g)),b$=r=>GC(r,g=>r.schema.isBlock(la(g))),x$=(r,g)=>{const B=U(T7,r);return $e(g,H=>B(H)?[H.dom]:[])},g4=r=>{const g=b$(r);return x$(r,g)},KC=(r,g,B,H)=>{const re=x$(g,H);if(re.length===0)Ew(g,r,B);else{const be=Ez(B.dom,re);g.selection.setRng(be.toRange())}},_$=(r,g)=>{const B=Te(y$(r),v$);return tt(B).bind(H=>{const re=qr.fromRangeStart(r.selection.getRng());return S5(g,re,H.dom)&&!gw(H)?Y.some(()=>KC(g,r,H,B)):Y.none()})},w$=(r,g)=>{const B=g.parentElement;return On(g)&&!x(B)&&r.dom.isEmpty(B)},O$=r=>gw(sr.fromDom(r)),r9=(r,g)=>{const B=r.selection.getStart(),H=w$(r,B)||O$(B)?Ez(B,g):k7(r.selection.getRng(),g);r.selection.setRng(H.toRange())},JC=(r,g)=>{const B=Le(g,g4(r));B.length>0&&r9(r,B)},e8=r=>Nt(r.startContainer),hk=r=>r.startOffset===0&&e8(r),OK=(r,g)=>{const B=g.startContainer.parentElement;return!x(B)&&T7(r,sr.fromDom(B))},S$=r=>{const g=r.startContainer.parentNode,B=r.endContainer.parentNode;return!x(g)&&!x(B)&&g.isEqualNode(B)},SK=r=>{const g=r.endContainer;return r.endOffset===(Nt(g)?g.length:g.childNodes.length)},kK=r=>S$(r)&&SK(r),k$=r=>!r.endContainer.isEqualNode(r.commonAncestorContainer),TK=r=>kK(r)||k$(r),T$=r=>{const g=r.selection.getRng();return hk(g)&&OK(r,g)&&TK(g)},ffe=r=>{if(T$(r)){const g=g4(r);return Y.some(()=>{C6(r),JC(r,g)})}else return Y.none()},o9=(r,g)=>r.selection.isCollapsed()?_$(r,g):ffe(r),CK=(r,g)=>Jl(r,B=>Gp(B.dom),B=>g.isBlock(la(B))),AK=r=>CK(sr.fromDom(r.selection.getStart()),r.schema),MK=r=>{const g=r.selection.getRng();return g.collapsed&&(e8(g)||r.dom.isEmpty(g.startContainer))&&!AK(r)},pk=r=>(MK(r)&&r9(r,[]),!0),i9=(r,g,B)=>E(B)?Y.some(()=>{r._selectionOverrides.hideFakeCaret(),Ew(r,g,sr.fromDom(B))}):Y.none(),EK=(r,g)=>{const B=g?Li:U3,H=g?Mf.Forwards:Mf.Backwards,re=Fb(H,r.getBody(),r.selection.getRng());return B(re)?i9(r,g,re.getNode(!g)):Y.from(Cg(g,re)).filter(be=>B(be)&&h3(re,be)).bind(be=>i9(r,g,be.getNode(!g)))},PK=(r,g)=>{const B=r.selection.getNode();return Zr(B)?i9(r,g,B):Y.none()},t8=(r,g)=>r.selection.isCollapsed()?EK(r,g):PK(r,g),RK=r=>Ya(r,g=>Sn(g.dom)||rr(g.dom)).exists(g=>Sn(g.dom)),ax=r=>zr(r??"").getOr(0),a9=(r,g)=>{const B=r||dp(g)?"margin":"padding",H=pi(g,"direction")==="rtl"?"-right":"-left";return B+H},s9=(r,g,B,H,re,be)=>{const Re=a9(B,sr.fromDom(be)),Ke=ax(r.getStyle(be,Re));if(g==="outdent"){const ct=Math.max(0,Ke-H);r.setStyle(be,Re,ct?ct+re:"")}else{const ct=Ke+H+re;r.setStyle(be,Re,ct)}},C$=(r,g)=>Oe(g,B=>{const H=a9(fy(r),B),re=Ru(B,H).map(ax).getOr(0);return r.dom.getContentEditable(B.dom)!=="false"&&re>0}),n8=r=>{const g=Eg(r);return!r.mode.isReadOnly()&&(g.length>1||C$(r,g))},sx=r=>Vp(r)||nh(r),A$=r=>Hu(r).exists(sx),Eg=r=>Te(Ld(r.selection.getSelectedBlocks()),g=>!sx(g)&&!A$(g)&&RK(g)),F2=(r,g)=>{var B,H;const{dom:re}=r,be=JO(r),Re=(H=(B=/[a-z%]+$/i.exec(be))===null||B===void 0?void 0:B[0])!==null&&H!==void 0?H:"px",Ke=ax(be),ct=fy(r);ye(Eg(r),kt=>{s9(re,g,ct,Ke,Re,kt.dom)})},l9=r=>F2(r,"indent"),M$=r=>F2(r,"outdent"),c9=r=>{if(r.selection.isCollapsed()&&n8(r)){const g=r.dom,B=r.selection.getRng(),H=qr.fromRangeStart(B),re=g.getParent(B.startContainer,g.isBlock);if(re!==null&&VE(sr.fromDom(re),H,r.schema))return Y.some(()=>M$(r))}return Y.none()},E$=(r,g,B)=>Ne([c9,sk,IP,(H,re)=>dk(H,g,re),FC,Bw,p4,t8,$C,o9,h4],H=>H(r,B)).filter(H=>r.selection.isEditable()),LK=(r,g)=>{E$(r,g,!1).fold(()=>{r.selection.isEditable()&&(C6(r),hc(r))},K)},IK=(r,g)=>{E$(r,g,!0).fold(()=>{r.selection.isEditable()&&GB(r)},K)},DK=(r,g)=>{r.addCommand("delete",()=>{LK(r,g)}),r.addCommand("forwardDelete",()=>{IK(r,g)})},P$=5,R$=400,L$=r=>r.touches===void 0||r.touches.length!==1?Y.none():Y.some(r.touches[0]),BK=(r,g)=>{const B=Math.abs(r.clientX-g.x),H=Math.abs(r.clientY-g.y);return B>P$||H>P$},v4=r=>{const g=Ys(),B=mr(!1),H=n0(re=>{r.dispatch("longpress",{...re,type:"longpress"}),B.set(!0)},R$);r.on("touchstart",re=>{L$(re).each(be=>{H.cancel();const Re={x:be.clientX,y:be.clientY,target:re.target};H.throttle(re),B.set(!1),g.set(Re)})},!0),r.on("touchmove",re=>{H.cancel(),L$(re).each(be=>{g.on(Re=>{BK(be,Re)&&(g.clear(),B.set(!1),r.dispatch("longpresscancel"))})})},!0),r.on("touchend touchcancel",re=>{H.cancel(),re.type!=="touchcancel"&&g.get().filter(be=>be.target.isEqualNode(re.target)).each(()=>{B.get()?re.preventDefault():r.dispatch("tap",{...re,type:"tap"})})},!0)},y4=(r,g)=>_t(r,g.nodeName),I$=(r,g)=>Nt(g)?!0:ne(g)?!y4(r.getBlockElements(),g)&&!Kp(g)&&!xm(r,g)&&!Pa(g):!1,D$=(r,g,B)=>de(SB(sr.fromDom(B),sr.fromDom(g)),H=>y4(r,H.dom)),u9=(r,g)=>{if(Nt(g)){if(g.data.length===0)return!0;if(/^\s+$/.test(g.data))return!g.nextSibling||y4(r,g.nextSibling)||Pa(g.nextSibling)}return!1},f9=r=>r.dom.create(dc(r),Jf(r)),zK=r=>{const g=r.dom,B=r.selection,H=r.schema,re=H.getBlockElements(),be=B.getStart(),Re=r.getBody();let Ke,ct,kt=null;const Wt=dc(r);if(!be||!ne(be))return;const Jt=Re.nodeName.toLowerCase();if(!H.isValidChild(Jt,Wt.toLowerCase())||D$(re,Re,be))return;if(Re.firstChild===Re.lastChild&&On(Re.firstChild)){Ke=f9(r),Ke.appendChild($1().dom),Re.replaceChild(Ke,Re.firstChild),r.selection.setCursorLocation(Ke,0),r.nodeChanged();return}let ln=Re.firstChild;for(;ln;)if(ne(ln)&&tc(H,ln),I$(H,ln)){if(u9(re,ln)){ct=ln,ln=ln.nextSibling,g.remove(ct);continue}if(!Ke){if(!kt&&r.hasFocus()&&(kt=wv(r.selection.getRng(),()=>document.createElement("span"))),!ln.parentNode){ln=null;break}Ke=f9(r),Re.insertBefore(Ke,ln)}ct=ln,ln=ln.nextSibling,Ke.appendChild(ct)}else Ke=null,ln=ln.nextSibling;kt&&(r.selection.setRng(v0(kt)),r.nodeChanged())},B$=(r,g,B)=>{const H=sr.fromDom(f9(r)),re=$1();Ps(H,re),B(g,H);const be=document.createRange();return be.setStartBefore(re.dom),be.setEndBefore(re.dom),be},FK=r=>{r.on("NodeChange",()=>zK(r))},z$=r=>g=>(" "+g.attr("class")+" ").indexOf(r)!==-1,NK=(r,g,B)=>function(H){const re=arguments,be=re[re.length-2],Re=be>0?g.charAt(be-1):"";if(Re==='"')return H;if(Re===">"){const Ke=g.lastIndexOf("<",be);if(Ke!==-1&&g.substring(Ke,be).indexOf('contenteditable="false"')!==-1)return H}return''+r.dom.encode(typeof re[1]=="string"?re[1]:re[0])+""},$K=(r,g,B)=>{let H=g.length,re=B.content;if(B.format!=="raw"){for(;H--;)re=re.replace(g[H],NK(r,re,vy(r)));B.content=re}},F$=(r,g)=>Oe(r,B=>{const H=g.match(B);return H!==null&&H[0].length===g.length}),VK=r=>{const g="contenteditable",B=" "+mo.trim(sw(r))+" ",H=" "+mo.trim(vy(r))+" ",re=z$(B),be=z$(H),Re=pp(r);Re.length>0&&r.on("BeforeSetContent",Ke=>{$K(r,Re,Ke)}),r.parser.addAttributeFilter("class",Ke=>{let ct=Ke.length;for(;ct--;){const kt=Ke[ct];re(kt)?kt.attr(g,"true"):be(kt)&&kt.attr(g,"false")}}),r.serializer.addAttributeFilter(g,Ke=>{let ct=Ke.length;for(;ct--;){const kt=Ke[ct];if(!re(kt)&&!be(kt))continue;const Wt=kt.attr("data-mce-content");Re.length>0&&Wt?F$(Re,Wt)?(kt.name="#text",kt.type=3,kt.raw=!0,kt.value=Wt):kt.remove():kt.attr(g,null)}})},UK=r=>xi(sr.fromDom(r.getBody()),"*[data-mce-caret]").map(g=>g.dom).getOrNull(),Ym=(r,g)=>{g.hasAttribute("data-mce-caret")&&(Ra(g),r.selection.setRng(r.selection.getRng()),r.selection.scrollIntoView(g))},jK=(r,g)=>{const B=UK(r);if(B){if(g.type==="compositionstart"){g.preventDefault(),g.stopPropagation(),Ym(r,B);return}Z_(B)&&(Ym(r,B),r.undoManager.add())}},d9=r=>{r.on("keyup compositionstart",U(jK,r))},h9=rr,p9=(r,g,B)=>s$(g,r,B,Ey,k2,h9),QK=(r,g,B)=>l$(g,r,B,be=>Ey(be)||NE(be),be=>k2(be)||$E(be),h9),HK=r=>{const g=r.dom.create(dc(r));return g.innerHTML='
    ',g},N$=(r,g,B)=>{const H=Sd(r.getBody()),re=U(DS,g===1?H.next:H.prev);if(B.collapsed){const be=r.dom.getParent(B.startContainer,"PRE");if(!be)return;if(!re(qr.fromRangeStart(B))){const Ke=sr.fromDom(HK(r));g===1?si(sr.fromDom(be),Ke):Fc(sr.fromDom(be),Ke),r.selection.select(Ke.dom,!0),r.selection.collapse()}}},ZK=(r,g)=>{const B=g?Mf.Forwards:Mf.Backwards,H=r.selection.getRng();return p9(B,r,H).orThunk(()=>(N$(r,B,H),Y.none()))},qK=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return QK(B,r,H).orThunk(()=>(N$(r,B,H),Y.none()))},$$=(r,g)=>{const B=g?r.getEnd(!0):r.getStart(!0);return ZB(B)?!g:g},V$=(r,g)=>ZK(r,$$(r.selection,g)).exists(B=>(Ov(r,B),!0)),U$=(r,g)=>qK(r,g).exists(B=>(Ov(r,B),!0)),b4=(r,g)=>mK(r,g,g?k2:Ey),c1=(r,g)=>DP(r,!g).map(B=>{const H=B.toRange(),re=r.selection.getRng();return g?H.setStart(re.startContainer,re.startOffset):H.setEnd(re.endContainer,re.endOffset),H}).exists(B=>(Ov(r,B),!0)),rO=r=>ce(["figcaption"],la(r)),r8=(r,g,B)=>{const H=U(Fa,g);return Ya(sr.fromDom(r.container()),re=>B.isBlock(la(re)),H).filter(rO)},m9=(r,g,B)=>g?e$(r.dom,B):JN(r.dom,B),g9=(r,g)=>{const B=sr.fromDom(r.getBody()),H=qr.fromRangeStart(r.selection.getRng());return r8(H,B,r.schema).exists(()=>{if(m9(B,g,H)){const be=B$(r,B,g?Ps:Hh);return r.selection.setRng(be),!0}else return!1})},v9=(r,g)=>r.selection.isCollapsed()?g9(r,g):!1,WK=(r,g,B)=>{const H=r.selection.getRng(),re=qr.fromRangeStart(H);return r.getBody().firstChild===g&&JN(B,re)?(r.execCommand("InsertNewBlockBefore"),!0):!1},j$=(r,g)=>{const B=r.selection.getRng(),H=qr.fromRangeStart(B);return r.getBody().lastChild===g&&e$(g,H)?(r.execCommand("InsertNewBlockAfter"),!0):!1},Q$=(r,g)=>g?Y.from(r.dom.getParent(r.selection.getNode(),"details")).map(B=>j$(r,B)).getOr(!1):Y.from(r.dom.getParent(r.selection.getNode(),"summary")).bind(B=>Y.from(r.dom.getParent(B,"details")).map(H=>WK(r,H,B))).getOr(!1),H$=(r,g)=>Q$(r,g),Z$={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},YK=r=>ve(r,g=>({...Z$,...g})),XK=r=>ve(r,g=>({...Z$,...g})),q$=(r,g)=>g.keyCode===r.keyCode&&g.shiftKey===r.shiftKey&&g.altKey===r.altKey&&g.ctrlKey===r.ctrlKey&&g.metaKey===r.metaKey,GK=(r,g)=>$e(YK(r),B=>q$(B,g)?[B]:[]),W$=(r,g)=>$e(XK(r),B=>q$(B,g)?[B]:[]),ua=(r,...g)=>()=>r.apply(null,g),o8=(r,g)=>De(GK(r,g),B=>B.action()),KK=(r,g)=>Ne(W$(r,g),B=>B.action()),JK=(r,g)=>{const B=g?Mf.Forwards:Mf.Backwards,H=r.selection.getRng();return s$(r,B,H,Li,U3,Zr).exists(re=>(Ov(r,re),!0))},Y$=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return l$(r,B,H,Li,U3,Zr).exists(re=>(Ov(r,re),!0))},eJ=(r,g)=>mK(r,g,g?U3:Li),tJ=aa.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),mk={...tJ,none:r=>tJ.none(r)},hfe=(r,g)=>X$(r,g,q),X$=(r,g,B)=>$e(Oc(r),H=>wf(H,g)?B(H)?[H]:[]:X$(H,g,B)),nm=(r,g,B=oe)=>{if(B(g))return Y.none();if(ce(r,la(g)))return Y.some(g);const H=re=>wf(re,"table")||B(re);return wl(g,r.join(","),H)},G$=(r,g)=>nm(["td","th"],r,g),gk=r=>hfe(r,"th,td"),K$=(r,g)=>mu(r,"table",g),i8=(r,g,B,H,re=q)=>{const be=H===1;if(!be&&B<=0)return mk.first(r[0]);if(be&&B>=r.length-1)return mk.last(r[r.length-1]);{const Re=B+H,Ke=r[Re];return re(Ke)?mk.middle(g,Ke):i8(r,g,Re,H,re)}},y9=(r,g)=>K$(r,g).bind(B=>{const H=gk(B);return He(H,be=>Fa(r,be)).map(be=>({index:be,all:H}))}),b9=(r,g,B)=>y9(r,B).fold(()=>mk.none(r),re=>i8(re.all,r,re.index,1,g)),nJ=(r,g,B)=>y9(r,B).fold(()=>mk.none(),re=>i8(re.all,r,re.index,-1,g)),rJ=r=>HO(r).filter(g=>g.trim().length!==0||g.indexOf(Ea)>-1).isSome(),J$=r=>iu(r)&&uc(r,"contenteditable")==="false",oJ=["img","br"],iJ=r=>rJ(r)||ce(oJ,la(r))||J$(r),aJ=r=>Wc(r,iJ),x9=(r,g)=>({left:r.left-g,top:r.top-g,right:r.right+g*2,bottom:r.bottom+g*2,width:r.width+g,height:r.height+g}),sJ=(r,g)=>$e(g,B=>{const H=x9(i0(B.getBoundingClientRect()),-1);return[{x:H.left,y:r(H),cell:B},{x:H.right,y:r(H),cell:B}]}),lJ=(r,g,B)=>Ie(r,(H,re)=>H.fold(()=>Y.some(re),be=>{const Re=Math.sqrt(Math.abs(be.x-g)+Math.abs(be.y-B)),Ke=Math.sqrt(Math.abs(re.x-g)+Math.abs(re.y-B));return Y.some(Ke{const be=Zl(sr.fromDom(B),"td,th,caption").map(Ke=>Ke.dom),Re=Te(sJ(r,be),Ke=>g(Ke,re));return lJ(Re,H,re).map(Ke=>Ke.cell)},uJ=r=>r.bottom,eV=r=>r.top,pfe=(r,g)=>r.yr.y>g,dJ=U(cJ,uJ,pfe),hJ=U(cJ,eV,fJ),_9=(r,g)=>Xe(g.getClientRects()).bind(B=>dJ(r,B.left,B.top)).bind(B=>ZC(sK(B),g)),a8=(r,g)=>tt(g.getClientRects()).bind(B=>hJ(r,B.left,B.top)).bind(B=>ZC(aK(B),g)),tV=(r,g,B)=>B.breakAt.exists(H=>r(g,H).breakAt.isSome()),nV=r=>r.breakType===Ny.Wrap&&r.positions.length===0,pJ=r=>r.breakType===Ny.Br&&r.positions.length===1,rV=(r,g,B)=>{const H=r(g,B);return nV(H)||!On(B.getNode())&&pJ(H)?!tV(r,g,H):H.breakAt.isNone()},w9=U(rV,z2),mJ=U(rV,uk),gJ=(r,g,B)=>{const H=qr.fromRangeStart(g);return $b(!r,B).exists(re=>re.isEqual(H))},vJ=(r,g,B,H)=>{const re=r.selection.getRng(),be=g?1:-1;return $M()&&gJ(g,re,B)?(zy(be,r,B,!g,!1).each(Re=>{Ov(r,Re)}),!0):!1},yJ=(r,g,B)=>_9(g,B).orThunk(()=>Xe(B.getClientRects()).bind(H=>GP(GN(r,qr.before(g)),H.left))).getOr(qr.before(g)),u1=(r,g,B)=>a8(g,B).orThunk(()=>Xe(B.getClientRects()).bind(H=>GP(KN(r,qr.after(g)),H.left))).getOr(qr.after(g)),O9=(r,g)=>{const B=g.getNode(r);return Et(B)?Y.some(B):Y.none()},oV=(r,g,B)=>{g.undoManager.transact(()=>{const H=r?si:Fc,re=B$(g,sr.fromDom(B),H);Ov(g,re)})},bJ=(r,g,B)=>{const H=O9(!!g,B),re=g===!1;H.fold(()=>Ov(r,B.toRange()),be=>$b(re,r.getBody()).filter(Re=>Re.isEqual(B)).fold(()=>Ov(r,B.toRange()),Re=>oV(g,r,be)))},mfe=(r,g,B,H)=>{const re=r.selection.getRng(),be=qr.fromRangeStart(re),Re=r.getBody();if(!g&&w9(H,be)){const Ke=yJ(Re,B,be);return bJ(r,g,Ke),!0}else if(g&&mJ(H,be)){const Ke=u1(Re,B,be);return bJ(r,g,Ke),!0}else return!1},xJ=(r,g,B)=>Y.from(r.dom.getParent(r.selection.getNode(),"td,th")).bind(H=>Y.from(r.dom.getParent(H,"table")).map(re=>B(r,g,re,H))).getOr(!1),_J=(r,g)=>xJ(r,g,vJ),S9=(r,g)=>xJ(r,g,mfe),s8=r=>{const g=O2.exact(r,0,r,0);return pe(g)},iV=(r,g,B)=>B.fold(Y.none,Y.none,(H,re)=>aJ(re).map(be=>s8(be)),H=>(r.execCommand("mceTableInsertRowAfter"),l8(r,g,H))),l8=(r,g,B)=>iV(r,g,b9(B,js)),aV=(r,g,B)=>iV(r,g,nJ(B,js)),k9=(r,g)=>{const B=["table","li","dl"],H=sr.fromDom(r.getBody()),re=Ke=>{const ct=la(Ke);return Fa(Ke,H)||ce(B,ct)},be=r.selection.getRng(),Re=sr.fromDom(g?be.endContainer:be.startContainer);return G$(Re,re).map(Ke=>(K$(Ke,re).each(Wt=>{r.model.table.clearSelectedCells(Wt.dom)}),r.selection.collapse(!g),(g?l8:aV)(r,re,Ke).each(Wt=>{r.selection.setRng(Wt)}),!0)).getOr(!1)},sV=(r,g,B)=>{const H=fr.os.isMacOS()||fr.os.isiOS();o8([{keyCode:Fo.RIGHT,action:ua(V$,r,!0)},{keyCode:Fo.LEFT,action:ua(V$,r,!1)},{keyCode:Fo.UP,action:ua(U$,r,!1)},{keyCode:Fo.DOWN,action:ua(U$,r,!0)},...H?[{keyCode:Fo.UP,action:ua(c1,r,!1),metaKey:!0,shiftKey:!0},{keyCode:Fo.DOWN,action:ua(c1,r,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Fo.RIGHT,action:ua(_J,r,!0)},{keyCode:Fo.LEFT,action:ua(_J,r,!1)},{keyCode:Fo.UP,action:ua(S9,r,!1)},{keyCode:Fo.DOWN,action:ua(S9,r,!0)},{keyCode:Fo.UP,action:ua(S9,r,!1)},{keyCode:Fo.UP,action:ua(H$,r,!1)},{keyCode:Fo.DOWN,action:ua(H$,r,!0)},{keyCode:Fo.RIGHT,action:ua(JK,r,!0)},{keyCode:Fo.LEFT,action:ua(JK,r,!1)},{keyCode:Fo.UP,action:ua(Y$,r,!1)},{keyCode:Fo.DOWN,action:ua(Y$,r,!0)},{keyCode:Fo.RIGHT,action:ua(d$,r,g,!0)},{keyCode:Fo.LEFT,action:ua(d$,r,g,!1)},{keyCode:Fo.RIGHT,ctrlKey:!H,altKey:H,action:ua(bK,r,g)},{keyCode:Fo.LEFT,ctrlKey:!H,altKey:H,action:ua(p$,r,g)},{keyCode:Fo.UP,action:ua(v9,r,!1)},{keyCode:Fo.DOWN,action:ua(v9,r,!0)}],B).each(re=>{B.preventDefault()})},wJ=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||sV(r,g,B)})},Sv=(r,g)=>({container:r,offset:g}),c8=Nl.DOM,u8=r=>g=>r===g?-1:0,f8=r=>g=>r.isBlock(g)||ce(["BR","IMG","HR","INPUT"],g.nodeName)||r.getContentEditable(g)==="false",T9=(r,g,B)=>{if(Nt(r)&&g>=0)return Y.some(Sv(r,g));{const H=Em(c8);return Y.from(H.backwards(r,g,u8(r),B)).map(re=>Sv(re.container,re.container.data.length))}},OJ=(r,g,B)=>{if(Nt(r)&&g>=r.length)return Y.some(Sv(r,g));{const H=Em(c8);return Y.from(H.forwards(r,g,u8(r),B)).map(re=>Sv(re.container,0))}},C9=(r,g,B)=>{if(!Nt(r))return Y.none();const H=r.data;if(g>=0&&g<=H.length)return Y.some(Sv(r,g));{const re=Em(c8);return Y.from(re.backwards(r,g,u8(r),B)).bind(be=>{const Re=be.container.data;return C9(be.container,g+Re.length,B)})}},d8=(r,g,B)=>{if(!Nt(r))return Y.none();const H=r.data;if(g<=H.length)return Y.some(Sv(r,g));{const re=Em(c8);return Y.from(re.forwards(r,g,u8(r),B)).bind(be=>d8(be.container,g-H.length,B))}},A9=(r,g,B,H,re)=>{const be=Em(r,f8(r));return Y.from(be.backwards(g,B,H,re))},SJ=r=>r.collapsed&&Nt(r.startContainer),lV=r=>yd(r.toString().replace(/\u00A0/g," ")),cV=r=>r!==""&&`  \f +\r \v`.indexOf(r)!==-1,kJ=(r,g)=>r.substring(g.length),TJ=(r,g,B,H=!1)=>{let re;const be=B.charAt(0);for(re=g-1;re>=0;re--){const Re=r.charAt(re);if(!H&&cV(Re))return Y.none();if(be===Re&&jn(r,B,re,g))break}return Y.some(re)},M9=(r,g,B,H=!1)=>{if(!SJ(g))return Y.none();const re={text:"",offset:0},be=(Ke,ct,kt)=>(re.text=kt+re.text,re.offset+=ct,TJ(re.text,re.offset,B,H).getOr(ct)),Re=r.getParent(g.startContainer,r.isBlock)||r.getRoot();return A9(r,g.startContainer,g.startOffset,be,Re).bind(Ke=>{const ct=g.cloneRange();if(ct.setStart(Ke.container,Ke.offset),ct.setEnd(g.endContainer,g.endOffset),ct.collapsed)return Y.none();const kt=lV(ct);return kt.lastIndexOf(B)!==0?Y.none():Y.some({text:kJ(kt,B),range:ct,trigger:B})})},CJ=r=>r.nodeType===xl,AJ=r=>r.nodeType===Cu,h8=r=>{if(CJ(r))return Sv(r,r.data.length);{const g=r.childNodes;return g.length>0?h8(g[g.length-1]):Sv(r,g.length)}},uV=(r,g)=>{const B=r.childNodes;return B.length>0&&g0&&AJ(r)&&B.length===g?h8(B[B.length-1]):Sv(r,g)},fV=(r,g)=>{var B;const H=(B=r.getParent(g.container,r.isBlock))!==null&&B!==void 0?B:r.getRoot();return A9(r,g.container,g.offset,(re,be)=>be===0?-1:be,H).filter(re=>{const be=re.container.data.charAt(re.offset-1);return!cV(be)}).isSome()},MJ=r=>g=>{const B=uV(g.startContainer,g.startOffset);return!fV(r,B)},EJ=(r,g,B)=>Ne(B.triggers,H=>M9(r,g,H)),PJ=(r,g)=>{const B=g(),H=r.selection.getRng();return EJ(r.dom,H,B).bind(re=>dV(r,g,re))},dV=(r,g,B,H={})=>{var re;const be=g(),Ke=(re=r.selection.getRng().startContainer.nodeValue)!==null&&re!==void 0?re:"",ct=Te(be.lookupByTrigger(B.trigger),Wt=>B.text.length>=Wt.minChars&&Wt.matches.getOrThunk(()=>MJ(r.dom))(B.range,Ke,B.text));if(ct.length===0)return Y.none();const kt=Promise.all(ve(ct,Wt=>Wt.fetch(B.text,Wt.maxResults,H).then(ln=>({matchText:B.text,items:ln,columns:Wt.columns,onAction:Wt.onAction,highlightOn:Wt.highlightOn}))));return Y.some({lookupData:kt,context:B})};var kv;(function(r){r[r.Error=0]="Error",r[r.Value=1]="Value"})(kv||(kv={}));const E9=(r,g,B)=>r.stype===kv.Error?g(r.serror):B(r.svalue),Lf=r=>{const g=[],B=[];return ye(r,H=>{E9(H,re=>B.push(re),re=>g.push(re))}),{values:g,errors:B}},RJ=(r,g)=>r.stype===kv.Error?{stype:kv.Error,serror:g(r.serror)}:r,LJ=(r,g)=>r.stype===kv.Value?{stype:kv.Value,svalue:g(r.svalue)}:r,IJ=(r,g)=>r.stype===kv.Value?g(r.svalue):r,hV=(r,g)=>r.stype===kv.Error?g(r.serror):r,p8=r=>({stype:kv.Value,svalue:r}),P9=r=>({stype:kv.Error,serror:r}),Ud={fromResult:r=>r.fold(P9,p8),toResult:r=>E9(r,gs.error,gs.value),svalue:p8,partition:Lf,serror:P9,bind:IJ,bindError:hV,map:LJ,mapError:RJ,fold:E9},vk=r=>_(r)&&nt(r).length>100?" removed due to size":JSON.stringify(r,null,2),R9=r=>{const g=r.length>10?r.slice(0,10).concat([{path:[],getErrorInfo:$("... (only showing first ten failures)")}]):r;return ve(g,B=>"Failed path: ("+B.path.join(" > ")+`) +`+B.getErrorInfo())},x4=(r,g)=>Ud.serror([{path:r,getErrorInfo:g}]),mV=(r,g,B)=>x4(r,()=>'Could not find valid *required* value for "'+g+'" in '+vk(B)),m8=(r,g)=>x4(r,()=>'Choice schema did not contain choice key: "'+g+'"'),g8=(r,g,B)=>x4(r,()=>'The chosen schema: "'+B+'" did not exist in branches: '+vk(g)),yk=(r,g)=>x4(r,$(g)),bk=(r,g,B,H)=>Ct(B,H).fold(()=>g8(r,B,H),be=>be.extract(r.concat(["branch: "+H]),g)),f1=(r,g)=>({extract:(re,be)=>Ct(be,r).fold(()=>m8(re,r),Ke=>bk(re,be,g,Ke)),toString:()=>"chooseOn("+r+"). Possible values: "+nt(g)}),xk=(r,g)=>g,gV=(r,g)=>S(r)&&S(g)?v8(r,g):g,L9=r=>(...g)=>{if(g.length===0)throw new Error("Can't merge zero objects");const B={};for(let H=0;H({tag:"required",process:{}}),DJ=r=>({tag:"defaultedThunk",process:r}),_4=r=>DJ($(r)),BJ=()=>({tag:"option",process:{}}),zJ=(r,g)=>r.length>0?Ud.svalue(v8(g,I9.apply(void 0,r))):Ud.svalue(g),yV=r=>I(Ud.serror,Ve)(r),FJ={consolidateObj:(r,g)=>{const B=Ud.partition(r);return B.errors.length>0?yV(B.errors):zJ(B.values,g)},consolidateArr:r=>{const g=Ud.partition(r);return g.errors.length>0?yV(g.errors):Ud.svalue(g.values)}},NJ=(r,g,B,H)=>({tag:"field",key:r,newKey:g,presence:B,prop:H}),$J=(r,g)=>({tag:"custom",newKey:r,instantiator:g}),bV=(r,g,B)=>{switch(r.tag){case"field":return g(r.key,r.newKey,r.presence,r.prop);case"custom":return B(r.newKey,r.instantiator)}},D9=r=>{const g=(H,re)=>Ud.bindError(r(re),be=>yk(H,be)),B=$("val");return{extract:g,toString:B}},VJ=D9(Ud.svalue),UJ=(r,g,B,H)=>Ct(g,B).fold(()=>mV(r,B,g),H),xV=(r,g,B,H)=>{const re=Ct(r,g).getOrThunk(()=>B(r));return H(re)},jJ=(r,g,B)=>B(Ct(r,g)),_V=(r,g,B,H)=>{const re=Ct(r,g).map(be=>be===!0?B(r):be);return H(re)},wV=(r,g,B,H,re)=>{const be=Ke=>re.extract(g.concat([H]),Ke),Re=Ke=>Ke.fold(()=>Ud.svalue(Y.none()),ct=>{const kt=re.extract(g.concat([H]),ct);return Ud.map(kt,Y.some)});switch(r.tag){case"required":return UJ(g,B,H,be);case"defaultedThunk":return xV(B,H,r.process,be);case"option":return jJ(B,H,Re);case"defaultedOptionThunk":return _V(B,H,r.process,Re);case"mergeWithThunk":return xV(B,H,$({}),Ke=>{const ct=v8(r.process(B),Ke);return be(ct)})}},OV=(r,g,B)=>{const H={},re=[];for(const be of B)bV(be,(Re,Ke,ct,kt)=>{const Wt=wV(ct,r,g,Re,kt);Ud.fold(Wt,Jt=>{re.push(...Jt)},Jt=>{H[Ke]=Jt})},(Re,Ke)=>{H[Re]=Ke(g)});return re.length>0?Ud.serror(re):Ud.svalue(H)},B9=r=>({extract:(H,re)=>OV(H,re,r),toString:()=>`obj{ `+ve(r,re=>bV(re,(be,Re,Ke,ct)=>be+" -> "+ct.toString(),(be,Re)=>"state("+be+")")).join(` -`)+"}"}),SV=r=>({extract:(H,re)=>{const be=ve(re,(Re,Ke)=>r.extract(H.concat(["["+Ke+"]"]),Re));return FJ.consolidateArr(be)},toString:()=>"array("+r.toString()+")"}),QJ=r=>I9(g=>r(g).fold(Ud.serror,Ud.svalue)),HJ=(r,g,B)=>{const H=g.extract([r],B);return Ud.mapError(H,re=>({input:B,errors:re}))},kV=(r,g,B)=>Ud.toResult(HJ(r,g,B)),ZJ=r=>`Errors: -`+P9(r.errors).join(` +`)+"}"}),SV=r=>({extract:(H,re)=>{const be=ve(re,(Re,Ke)=>r.extract(H.concat(["["+Ke+"]"]),Re));return FJ.consolidateArr(be)},toString:()=>"array("+r.toString()+")"}),QJ=r=>D9(g=>r(g).fold(Ud.serror,Ud.svalue)),HJ=(r,g,B)=>{const H=g.extract([r],B);return Ud.mapError(H,re=>({input:B,errors:re}))},kV=(r,g,B)=>Ud.toResult(HJ(r,g,B)),ZJ=r=>`Errors: +`+R9(r.errors).join(` `)+` -Input object: `+gk(r.input),B9=(r,g)=>f1(r,ht(g,D9)),qJ=$(VJ),xk=(r,g)=>I9(B=>{const H=typeof B;return r(B)?Ud.svalue(B):Ud.serror(`Expected type: ${g} but got: ${H}`)}),TV=xk(L,"number"),v8=xk(v,"string"),WJ=xk(R,"boolean"),z9=xk(C,"function"),_k=NJ,F9=$J,YJ=r=>QJ(g=>ce(r,g)?gs.value(g):gs.error(`Unsupported value: "${g}", choose one of "${r.join(", ")}".`)),CV=(r,g)=>_k(r,r,vV(),g),N9=r=>CV(r,v8),AV=r=>CV(r,z9),XJ=(r,g)=>_k(r,r,vV(),SV(g)),y8=(r,g)=>_k(r,r,BJ(),g),b8=r=>y8(r,v8),GJ=r=>y8(r,z9),KJ=(r,g)=>_k(r,r,_4(g),qJ()),iO=(r,g,B)=>_k(r,r,_4(g),B),$9=(r,g)=>iO(r,g,TV),JJ=(r,g)=>iO(r,g,v8),MV=(r,g,B)=>iO(r,g,YJ(B)),V9=(r,g)=>iO(r,g,WJ),U9=(r,g)=>iO(r,g,z9),eee=(r,g,B)=>iO(r,g,SV(B)),tee=N9("type"),nee=AV("fetch"),j9=AV("onAction"),vfe=U9("onSetup",()=>k),ree=b8("text"),x8=b8("icon"),EV=b8("tooltip"),PV=b8("label"),oee=V9("active",!1),RV=V9("enabled",!0),Q9=V9("primary",!1),iee=r=>KJ("columns",r),wk=r=>JJ("type",r),aee=D9([tee,N9("trigger"),$9("minChars",1),iee(1),$9("maxResults",10),GJ("matches"),nee,j9,eee("highlightOn",[],v8)]),LV=r=>kV("Autocompleter",aee,r),H9=[RV,EV,x8,ree,vfe],_8=[oee].concat(H9),see=[U9("predicate",oe),MV("scope","node",["node","editor"]),MV("position","selection",["node","selection","line"])],lee=H9.concat([wk("contextformbutton"),Q9,j9,F9("original",Q)]),cee=_8.concat([wk("contextformbutton"),Q9,j9,F9("original",Q)]),IV=H9.concat([wk("contextformbutton")]),uee=_8.concat([wk("contextformtogglebutton")]),fee=B9("type",{contextformbutton:lee,contextformtogglebutton:cee});D9([wk("contextform"),U9("initValue",$("")),PV,XJ("commands",fee),y8("launch",B9("type",{contextformbutton:IV,contextformtogglebutton:uee}))].concat(see));const dee=r=>{const g=r.ui.registry.getAll().popups,B=ht(g,Re=>LV(Re).fold(Ke=>{throw new Error(ZJ(Ke))},Q)),H=bn(en(B,Re=>Re.trigger)),re=Gt(B);return{dataset:B,triggers:H,lookupByTrigger:Re=>Te(re,Ke=>Ke.trigger===Re)}},hee=(r,g)=>{const B=n0(g.load,50);r.on("input",H=>{H.inputType==="insertCompositionText"&&!r.composing||B.throttle()}),r.on("keydown",H=>{const re=H.which;re===8?B.throttle():re===27?(B.cancel(),g.cancelIfNecessary()):(re===38||re===40)&&B.cancel()},!0),r.on("remove",B.cancel)},pee=r=>{const g=Ys(),B=mr(!1),H=g.isSet,re=()=>{H()&&(a6(r),B.set(!1),g.clear())},be=Jt=>{H()||g.set({trigger:Jt.trigger,matchLength:Jt.text.length})},Re=xt(()=>dee(r)),Ke=Jt=>g.get().map(ln=>A9(r.dom,r.selection.getRng(),ln.trigger,!0).bind(kn=>dV(r,Re,kn,Jt))).getOrThunk(()=>PJ(r,Re)),ct=Jt=>{Ke(Jt).fold(re,ln=>{be(ln.context),ln.lookupData.then(kn=>{g.get().map(Vn=>{const Rn=ln.context;Vn.trigger===Rn.trigger&&(g.set({...Vn,matchLength:Rn.text.length}),B.get()?(i6(r,{range:Rn.range}),i5(r,{lookupData:kn})):(B.set(!0),i6(r,{range:Rn.range}),o6(r,{lookupData:kn})))})})})},kt=(Jt,ln)=>{const kn=Jt.compareBoundaryPoints(window.Range.START_TO_START,ln),Vn=Jt.compareBoundaryPoints(window.Range.END_TO_END,ln);return kn>=0&&Vn<=0},Wt=()=>g.get().bind(({trigger:Jt})=>{const ln=r.selection.getRng();return A9(r.dom,ln,Jt,B.get()).filter(({range:kn})=>kt(ln,kn)).map(({range:kn})=>kn)});r.addCommand("mceAutocompleterReload",(Jt,ln)=>{const kn=_(ln)?ln.fetchOptions:{};ct(kn)}),r.addCommand("mceAutocompleterClose",re),r.addCommand("mceAutocompleterRefreshActiveRange",()=>{Wt().each(Jt=>{i6(r,{range:Jt})})}),r.editorCommands.addQueryStateHandler("mceAutoCompleterInRange",()=>Wt().isSome()),hee(r,{cancelIfNecessary:re,load:ct})},$y=tr().browser.isSafari(),DV=r=>rh(sr.fromDom(r)),mee=(r,g)=>{var B;return r.startOffset===0&&r.endOffset===((B=g.textContent)===null||B===void 0?void 0:B.length)},w8=(r,g)=>Y.from(r.getParent(g.container(),"details")),BV=(r,g)=>w8(r,g).isSome(),gee=(r,g)=>{const B=Y.from(r.getParent(g.startContainer,"details")),H=Y.from(r.getParent(g.endContainer,"details"));if(B.isSome()||H.isSome()){const re=B.bind(be=>Y.from(r.select("summary",be)[0]));return Y.some({startSummary:re,startDetails:B,endDetails:H})}else return Y.none()},vee=(r,g)=>lh(g).exists(B=>B.isEqual(r)),zV=(r,g)=>Xp(g).exists(B=>On(B.getNode())&&mp(g,B).exists(H=>H.isEqual(r))||B.isEqual(r)),w4=(r,g)=>g.startSummary.exists(B=>vee(r,B)),yfe=(r,g)=>g.startSummary.exists(B=>zV(r,B)),yee=(r,g)=>g.startDetails.exists(B=>mp(B,r).forall(H=>g.startSummary.exists(re=>!re.contains(r.container())&&re.contains(H.container())))),bee=(r,g,B)=>B.startDetails.exists(H=>sh(r,g).forall(re=>!H.contains(re.container()))),d1=(r,g)=>{const B=g.getNode();M(B)||r.selection.setCursorLocation(B,g.offset())},FV=(r,g,B)=>{const H=r.dom.getParent(g.container(),"details");if(H&&!H.open){const re=r.dom.select("summary",H)[0];re&&(B?lh(re):Xp(re)).each(Re=>d1(r,Re))}else d1(r,g)},xee=(r,g)=>{const B=ct=>ct.contains(r.startContainer),H=ct=>ct.contains(r.endContainer),re=g.startSummary.exists(B),be=g.startSummary.exists(H),Re=g.startDetails.forall(ct=>g.endDetails.forall(kt=>ct!==kt));return(re||be)&&!(re&&be)||Re},Z9=(r,g,B)=>{const{dom:H,selection:re}=r,be=r.getBody();if(B==="character"){const Re=qr.fromRangeStart(re.getRng()),Ke=H.getParent(Re.container(),H.isBlock),ct=w8(H,Re),kt=Ke&&H.isEmpty(Ke),Wt=x(Ke==null?void 0:Ke.previousSibling),Jt=x(Ke==null?void 0:Ke.nextSibling);return kt&&(g?Jt:Wt)&&lv(!g,be,Re).exists(Vn=>BV(H,Vn)&&!Xl(ct,w8(H,Vn)))?!0:lv(g,be,Re).fold(oe,ln=>{const kn=w8(H,ln);if(BV(H,ln)&&!Xl(ct,kn)){if(g||FV(r,ln,!1),Ke&&kt){if(g&&Wt)return!0;if(!g&&Jt)return!0;FV(r,ln,g),r.dom.remove(Ke)}return!0}else return!1})}else return!1},_ee=(r,g,B,H)=>{const be=r.selection.getRng(),Re=qr.fromRangeStart(be),Ke=r.getBody();return H==="selection"?xee(be,g):B?yfe(Re,g)||bee(Ke,Re,g):w4(Re,g)||yee(Re,g)},q9=(r,g,B)=>gee(r.dom,r.selection.getRng()).fold(()=>Z9(r,g,B),H=>_ee(r,H,g,B)||Z9(r,g,B)),Vy=(r,g,B)=>{const H=r.selection,re=H.getNode(),be=H.getRng(),Re=qr.fromRangeStart(be);return vo(re)?(B==="selection"&&mee(be,re)||O5(g,Re,re)?DV(re):r.undoManager.transact(()=>{const Ke=H.getSel();let{anchorNode:ct,anchorOffset:kt,focusNode:Wt,focusOffset:Jt}=Ke??{};const ln=()=>{E(ct)&&E(kt)&&E(Wt)&&E(Jt)&&(Ke==null||Ke.setBaseAndExtent(ct,kt,Wt,Jt))},kn=()=>{ct=Ke==null?void 0:Ke.anchorNode,kt=Ke==null?void 0:Ke.anchorOffset,Wt=Ke==null?void 0:Ke.focusNode,Jt=Ke==null?void 0:Ke.focusOffset},Vn=(qn,pr)=>{ye(qn.childNodes,Tr=>{b2(Tr)&&pr.appendChild(Tr)})},Rn=r.dom.create("span",{"data-mce-bogus":"1"});Vn(re,Rn),re.appendChild(Rn),ln(),(B==="word"||B==="line")&&(Ke==null||Ke.modify("extend",g?"right":"left",B)),!H.isCollapsed()&&mee(H.getRng(),Rn)?DV(re):(r.execCommand(g?"ForwardDelete":"Delete"),kn(),Vn(Rn,re),ln()),r.dom.remove(Rn)}),!0):!1},N2=(r,g,B)=>q9(r,g,B)||$y&&Vy(r,g,B)?Y.some(k):Y.none(),W9=r=>(g,B,H={})=>{const re=g.getBody(),be={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:re,currentTarget:re,eventPhase:Event.AT_TARGET,originalTarget:re,explicitOriginalTarget:re,isTrusted:!1,srcElement:re,cancelable:!1,preventDefault:k,inputType:B},Re=$p(new InputEvent(r));return g.dispatch(r,{...Re,...be,...H})},Ok=W9("input"),aO=W9("beforeinput"),O8=tr(),Y9=O8.os,X9=Y9.isMacOS()||Y9.isiOS(),wee=O8.browser.isFirefox(),Oee=(r,g,B)=>{const H=B.keyCode===Fo.BACKSPACE?"deleteContentBackward":"deleteContentForward",re=r.selection.isCollapsed(),be=re?"character":"selection",Re=Ke=>re?Ke?"word":"line":"selection";KK([{keyCode:Fo.BACKSPACE,action:ua(l9,r)},{keyCode:Fo.BACKSPACE,action:ua(ak,r,!1)},{keyCode:Fo.DELETE,action:ua(ak,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(LP,r,!1)},{keyCode:Fo.DELETE,action:ua(LP,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(fk,r,g,!1)},{keyCode:Fo.DELETE,action:ua(fk,r,g,!0)},{keyCode:Fo.BACKSPACE,action:ua(Bw,r,!1)},{keyCode:Fo.DELETE,action:ua(Bw,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(N2,r,!1,be)},{keyCode:Fo.DELETE,action:ua(N2,r,!0,be)},...X9?[{keyCode:Fo.BACKSPACE,altKey:!0,action:ua(N2,r,!1,Re(!0))},{keyCode:Fo.DELETE,altKey:!0,action:ua(N2,r,!0,Re(!0))},{keyCode:Fo.BACKSPACE,metaKey:!0,action:ua(N2,r,!1,Re(!1))}]:[{keyCode:Fo.BACKSPACE,ctrlKey:!0,action:ua(N2,r,!1,Re(!0))},{keyCode:Fo.DELETE,ctrlKey:!0,action:ua(N2,r,!0,Re(!0))}],{keyCode:Fo.BACKSPACE,action:ua(p4,r,!1)},{keyCode:Fo.DELETE,action:ua(p4,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(e8,r,!1)},{keyCode:Fo.DELETE,action:ua(e8,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(NC,r,!1)},{keyCode:Fo.DELETE,action:ua(NC,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(zC,r,!1)},{keyCode:Fo.DELETE,action:ua(zC,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(r9,r,!1)},{keyCode:Fo.DELETE,action:ua(r9,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(h4,r,!1)},{keyCode:Fo.DELETE,action:ua(h4,r,!0)}],B).filter(Ke=>r.selection.isEditable()).each(Ke=>{B.preventDefault(),aO(r,H).isDefaultPrevented()||(Ke(),Ok(r,H))})},See=(r,g,B)=>r8([{keyCode:Fo.BACKSPACE,action:ua($P,r)},{keyCode:Fo.DELETE,action:ua($P,r)},...X9?[{keyCode:Fo.BACKSPACE,altKey:!0,action:ua(hk,r)},{keyCode:Fo.DELETE,altKey:!0,action:ua(hk,r)},...B?[{keyCode:wee?224:91,action:ua(hk,r)}]:[]]:[{keyCode:Fo.BACKSPACE,ctrlKey:!0,action:ua(hk,r)},{keyCode:Fo.DELETE,ctrlKey:!0,action:ua(hk,r)}]],g),kee=(r,g)=>{let B=!1;r.on("keydown",H=>{B=H.keyCode===Fo.BACKSPACE,H.isDefaultPrevented()||Oee(r,g,H)}),r.on("keyup",H=>{H.isDefaultPrevented()||See(r,H,B),B=!1})},NV=r=>{for(;r;){if(ne(r)||Nt(r)&&r.data&&/[\r\n\s]/.test(r.data))return r;r=r.nextSibling}return null},O4=(r,g)=>{const B=r.dom,H=r.schema.getMoveCaretBeforeOnEnterElements();if(!g)return;if(/^(LI|DT|DD)$/.test(g.nodeName)){const be=NV(g.firstChild);be&&/^(UL|OL|DL)$/.test(be.nodeName)&&g.insertBefore(B.doc.createTextNode(Ea),g.firstChild)}const re=B.createRng();if(g.normalize(),g.hasChildNodes()){const be=new kc(g,g);let Re=g,Ke;for(;Ke=be.current();){if(Nt(Ke)){re.setStart(Ke,0),re.setEnd(Ke,0);break}if(H[Ke.nodeName.toLowerCase()]){re.setStartBefore(Ke),re.setEndBefore(Ke);break}Re=Ke,Ke=be.next()}Ke||(re.setStart(Re,0),re.setEnd(Re,0))}else On(g)?g.nextSibling&&B.isBlock(g.nextSibling)?(re.setStartBefore(g),re.setEndBefore(g)):(re.setStartAfter(g),re.setEndAfter(g)):(re.setStart(g,0),re.setEnd(g,0));r.selection.setRng(re),m5(r,re)},Sk=(r,g)=>{const B=r.getRoot();let H,re=g;for(;re!==B&&re&&r.getContentEditable(re)!=="false";){if(r.getContentEditable(re)==="true"){H=re;break}re=re.parentNode}return re!==B?H:B},G9=r=>Y.from(r.dom.getParent(r.selection.getStart(!0),r.dom.isBlock)),Tee=r=>G9(r).fold($(""),g=>g.nodeName.toUpperCase()),Cee=r=>G9(r).filter(g=>nh(sr.fromDom(g))).isSome(),S8=r=>{r.innerHTML='
    '},$V=(r,g,B)=>{const H=r.dom;Y.from(B.style).map(H.parseStyle).each(ct=>{const Wt={...vc(sr.fromDom(g)),...ct};H.setStyles(g,Wt)});const re=Y.from(B.class).map(ct=>ct.split(/\s+/)),be=Y.from(g.className).map(ct=>Te(ct.split(/\s+/),kt=>kt!==""));cs(re,be,(ct,kt)=>{const Wt=Te(kt,ln=>!ce(ct,ln)),Jt=[...ct,...Wt];H.setAttrib(g,"class",Jt.join(" "))});const Re=["style","class"],Ke=qt(B,(ct,kt)=>!ce(Re,kt));H.setAttribs(g,Ke)},kk=(r,g)=>{if(dc(r).toLowerCase()===g.tagName.toLowerCase()){const H=Jf(r);$V(r,g,H)}},VV=(r,g,B,H,re=!0,be,Re)=>{const Ke=r.dom,ct=r.schema,kt=dc(r),Wt=B?B.nodeName.toUpperCase():"";let Jt=g;const ln=ct.getTextInlineElements();let kn;be||Wt==="TABLE"||Wt==="HR"?kn=Ke.create(be||kt,Re||{}):kn=B.cloneNode(!1);let Vn=kn;if(!re)Ke.setAttrib(kn,"style",null),Ke.setAttrib(kn,"class",null);else do if(ln[Jt.nodeName]){if(Gp(Jt)||Kp(Jt))continue;const Rn=Jt.cloneNode(!1);Ke.setAttrib(Rn,"id",""),kn.hasChildNodes()?(Rn.appendChild(kn.firstChild),kn.appendChild(Rn)):(Vn=Rn,kn.appendChild(Rn))}while((Jt=Jt.parentNode)&&Jt!==H);return kk(r,kn),S8(Vn),kn},xfe=(r,g)=>r.dom.getParent(g,$o),K9=(r,g,B)=>{let H=g;for(;H&&H!==r&&x(H.nextSibling);){const re=H.parentElement;if(!re||!B(re))return $o(re);H=re}return!1},Aee=(r,g,B)=>!g&&B.nodeName.toLowerCase()===dc(r)&&r.dom.isEmpty(B)&&K9(r.getBody(),B,H=>_t(r.schema.getTextBlockElements(),H.nodeName.toLowerCase())),Mee=(r,g,B)=>{var H,re,be;const Re=g(dc(r)),Ke=xfe(r,B);Ke&&(r.dom.insertAfter(Re,Ke),O4(r,Re),((be=(re=(H=B.parentElement)===null||H===void 0?void 0:H.childNodes)===null||re===void 0?void 0:re.length)!==null&&be!==void 0?be:0)>1&&r.dom.remove(B))},Eee=(r,g)=>r.firstChild&&r.firstChild.nodeName===g,UV=r=>{var g;return((g=r.parentNode)===null||g===void 0?void 0:g.firstChild)===r},jV=(r,g)=>{const B=r==null?void 0:r.parentNode;return E(B)&&B.nodeName===g},J9=r=>E(r)&&/^(OL|UL|LI)$/.test(r.nodeName),eR=r=>E(r)&&/^(LI|DT|DD)$/.test(r.nodeName),Pee=r=>J9(r)&&J9(r.parentNode),tR=r=>{const g=r.parentNode;return eR(g)?g:r},Cd=(r,g,B)=>{let H=r[B?"firstChild":"lastChild"];for(;H&&!ne(H);)H=H[B?"nextSibling":"previousSibling"];return H===g},QV=r=>Ie(en(vc(sr.fromDom(r)),(g,B)=>`${B}: ${g};`),(g,B)=>g+B,""),Ree=(r,g,B,H,re)=>{const be=r.dom,Re=r.selection.getRng(),Ke=B.parentNode;if(B===r.getBody()||!Ke)return;Pee(B)&&(re="LI");const ct=eR(H)?QV(H):void 0;let kt=eR(H)&&ct?g(re,{style:QV(H)}):g(re);if(Cd(B,H,!0)&&Cd(B,H,!1))if(jV(B,"LI")){const Wt=tR(B);be.insertAfter(kt,Wt),UV(B)?be.remove(Wt):be.remove(B)}else be.replace(kt,B);else if(Cd(B,H,!0))jV(B,"LI")?(be.insertAfter(kt,tR(B)),kt.appendChild(be.doc.createTextNode(" ")),kt.appendChild(B)):Ke.insertBefore(kt,B),be.remove(H);else if(Cd(B,H,!1))be.insertAfter(kt,tR(B)),be.remove(H);else{B=tR(B);const Wt=Re.cloneRange();Wt.setStartAfter(H),Wt.setEndAfter(B);const Jt=Wt.extractContents();if(re==="LI"&&Eee(Jt,"LI")){const ln=Te(ve(kt.children,sr.fromDom),X(Ju("br")));kt=Jt.firstChild,be.insertAfter(Jt,B),ye(ln,kn=>Hh(sr.fromDom(kt),kn)),ct&&kt.setAttribute("style",ct)}else be.insertAfter(Jt,B),be.insertAfter(kt,B);be.remove(H)}O4(r,kt)},Lee=r=>{ye(Zf(sr.fromDom(r),Ss),g=>{const B=g.dom;B.nodeValue=vd(B.data)})},Iee=(r,g)=>{const B=r.dom.getParent(g,"ol,ul,dl");return B!==null&&r.dom.getContentEditableParent(B)==="false"},Dee=(r,g)=>g&&g.nodeName==="A"&&r.isEmpty(g),nR=(r,g)=>r.nodeName===g||r.previousSibling&&r.previousSibling.nodeName===g,rR=(r,g)=>E(g)&&r.isBlock(g)&&!/^(TD|TH|CAPTION|FORM)$/.test(g.nodeName)&&!/^(fixed|absolute)/i.test(g.style.position)&&r.isEditable(g.parentNode)&&r.getContentEditable(g)!=="false",k8=(r,g,B)=>{var H;const re=[];if(!B)return;let be=B;for(;be=be.firstChild;){if(r.isBlock(be))return;ne(be)&&!g[be.nodeName.toLowerCase()]&&re.push(be)}let Re=re.length;for(;Re--;)be=re[Re],(!be.hasChildNodes()||be.firstChild===be.lastChild&&((H=be.firstChild)===null||H===void 0?void 0:H.nodeValue)===""||Dee(r,be))&&r.remove(be)},oR=(r,g,B)=>Nt(g)?r?B===1&&g.data.charAt(B-1)===nc?0:B:B===g.data.length-1&&g.data.charAt(B)===nc?g.data.length:B:B,Bee=r=>{const g=r.cloneRange();return g.setStart(r.startContainer,oR(!0,r.startContainer,r.startOffset)),g.setEnd(r.endContainer,oR(!1,r.endContainer,r.endOffset)),g},iR=r=>{let g=r;do Nt(g)&&(g.data=g.data.replace(/^[\r\n]+/,"")),g=g.firstChild;while(g)},aR=(r,g,B,H,re)=>{var be,Re;const Ke=r.dom,ct=(be=Sk(Ke,H))!==null&&be!==void 0?be:Ke.getRoot();let kt=Ke.getParent(H,Ke.isBlock);if(!kt||!rR(Ke,kt)){if(kt=kt||ct,!kt.hasChildNodes()){const kn=Ke.create(g);return kk(r,kn),kt.appendChild(kn),B.setStart(kn,0),B.setEnd(kn,0),kn}let Wt=H;for(;Wt&&Wt.parentNode!==kt;)Wt=Wt.parentNode;let Jt;for(;Wt&&!Ke.isBlock(Wt);)Jt=Wt,Wt=Wt.previousSibling;const ln=(Re=Jt==null?void 0:Jt.parentElement)===null||Re===void 0?void 0:Re.nodeName;if(Jt&&ln&&r.schema.isValidChild(ln,g.toLowerCase())){const kn=Jt.parentNode,Vn=Ke.create(g);for(kk(r,Vn),kn.insertBefore(Vn,Jt),Wt=Jt;Wt&&!Ke.isBlock(Wt);){const Rn=Wt.nextSibling;Vn.appendChild(Wt),Wt=Rn}B.setStart(H,re),B.setEnd(H,re)}}return H},zee=(r,g)=>{g.normalize();const B=g.lastChild;(!B||ne(B)&&/^(left|right)$/gi.test(r.getStyle(B,"float",!0)))&&r.add(g,"br")},_fe=(r,g)=>{const B=Ec(r);return T(g)?!1:v(B)?ce(mo.explode(B),g.nodeName.toLowerCase()):B},HV={insert:(r,g)=>{let B,H,re,be,Re=!1;const Ke=r.dom,ct=r.schema,kt=ct.getNonEmptyElements(),Wt=r.selection.getRng(),Jt=dc(r),ln=sr.fromDom(Wt.startContainer),kn=ks(ln,Wt.startOffset),Vn=kn.exists(xo=>iu(xo)&&!js(xo)),Rn=Wt.collapsed&&Vn,qn=(xo,bi)=>VV(r,B,jo,wo,Wx(r),xo,bi),pr=xo=>{const bi=oR(xo,B,H);if(Nt(B)&&(xo?bi>0:bi{let xo;return/^(H[1-6]|PRE|FIGURE)$/.test(re)&&di!=="HGROUP"?xo=qn(Jt):xo=qn(),_fe(r,be)&&rR(Ke,be)&&Ke.isEmpty(jo,void 0,{includeZwsp:!0})?xo=Ke.split(be,jo):Ke.insertAfter(xo,jo),O4(r,xo),xo};Ko(Ke,Wt).each(xo=>{Wt.setStart(xo.startContainer,xo.startOffset),Wt.setEnd(xo.endContainer,xo.endOffset)}),B=Wt.startContainer,H=Wt.startOffset;const wr=!!(g&&g.shiftKey),Ur=!!(g&&g.ctrlKey);ne(B)&&B.hasChildNodes()&&!Rn&&(Re=H>B.childNodes.length-1,B=B.childNodes[Math.min(H,B.childNodes.length-1)]||B,Re&&Nt(B)?H=B.data.length:H=0);const wo=Sk(Ke,B);if(!wo||Iee(r,B))return;wr||(B=aR(r,Jt,Wt,B,H));let jo=Ke.getParent(B,Ke.isBlock)||Ke.getRoot();be=E(jo==null?void 0:jo.parentNode)?Ke.getParent(jo.parentNode,Ke.isBlock):null,re=jo?jo.nodeName.toUpperCase():"";const di=be?be.nodeName.toUpperCase():"";if(di==="LI"&&!Ur){const xo=be;jo=xo,be=xo.parentNode,re=di}if(ne(be)&&Aee(r,wr,jo))return Mee(r,qn,jo);if(/^(LI|DT|DD)$/.test(re)&&ne(be)&&Ke.isEmpty(jo)){Ree(r,qn,be,jo,Jt);return}if(!Rn&&(jo===r.getBody()||!rR(Ke,jo)))return;const lo=jo.parentNode;let eo;if(Rn)eo=qn(Jt),kn.fold(()=>{Ps(ln,sr.fromDom(eo))},xo=>{Fc(xo,sr.fromDom(eo))}),r.selection.setCursorLocation(eo,0);else if(gg(jo))eo=Ra(jo),Ke.isEmpty(jo)&&S8(jo),kk(r,eo),O4(r,eo);else if(pr(!1))eo=Tr();else if(pr(!0)&&lo){const xo=qr.fromRangeStart(Wt),bi=NE(xo),Bi=sr.fromDom(jo),Ia=VE(Bi,xo,r.schema)?MB(Bi,xo,r.schema).bind(sl=>Y.from(sl.getNode())):Y.none();eo=lo.insertBefore(qn(),jo);const Us=nR(jo,"HR")||bi?eo:Ia.getOr(jo);O4(r,Us)}else{const xo=Bee(Wt).cloneRange();xo.setEndAfter(jo);const bi=xo.extractContents();Lee(bi),iR(bi),eo=bi.firstChild,Ke.insertAfter(bi,jo),k8(Ke,kt,eo),zee(Ke,jo),Ke.isEmpty(jo)&&S8(jo),eo.normalize(),Ke.isEmpty(eo)?(Ke.remove(eo),Tr()):(kk(r,eo),O4(r,eo))}Ke.setAttrib(eo,"id",""),r.dispatch("NewBlock",{newBlock:eo})},fakeEventName:"insertParagraph"},Fee=(r,g,B)=>{const H=new kc(g,B);let re;const be=r.getNonEmptyElements();for(;re=H.next();)if(be[re.nodeName.toLowerCase()]||Nt(re)&&re.length>0)return!0;return!1},Nee=(r,g,B)=>{const H=r.dom.createRng();B?(H.setStartBefore(g),H.setEndBefore(g)):(H.setStartAfter(g),H.setEndAfter(g)),r.selection.setRng(H),m5(r,H)},$ee=(r,g)=>{const B=r.selection,H=r.dom,re=B.getRng();let be,Re=!1;Ko(H,re).each(kn=>{re.setStart(kn.startContainer,kn.startOffset),re.setEnd(kn.endContainer,kn.endOffset)});let Ke=re.startOffset,ct=re.startContainer;if(ne(ct)&&ct.hasChildNodes()){const kn=Ke>ct.childNodes.length-1;ct=ct.childNodes[Math.min(Ke,ct.childNodes.length-1)]||ct,kn&&Nt(ct)?Ke=ct.data.length:Ke=0}let kt=H.getParent(ct,H.isBlock);const Wt=kt&&kt.parentNode?H.getParent(kt.parentNode,H.isBlock):null,Jt=Wt?Wt.nodeName.toUpperCase():"",ln=!!(g&&g.ctrlKey);Jt==="LI"&&!ln&&(kt=Wt),Nt(ct)&&Ke>=ct.data.length&&(Fee(r.schema,ct,kt||H.getRoot())||(be=H.create("br"),re.insertNode(be),re.setStartAfter(be),re.setEndAfter(be),Re=!0)),be=H.create("br"),Ae(H,re,be),Nee(r,be,Re),r.undoManager.add()},Sv=(r,g)=>{const B=sr.fromTag("br");Fc(sr.fromDom(g),B),r.undoManager.add()},Vee=(r,g)=>{Uee(r.getBody(),g)||si(sr.fromDom(g),sr.fromTag("br"));const B=sr.fromTag("br");si(sr.fromDom(g),B),Nee(r,B.dom,!1),r.undoManager.add()},ZV=r=>On(r.getNode()),Uee=(r,g)=>ZV(qr.after(g))?!0:sh(r,qr.after(g)).map(B=>On(B.getNode())).getOr(!1),qV=r=>r&&r.nodeName==="A"&&"href"in r,jee=r=>r.fold(oe,qV,qV,oe),Qee=r=>{const g=U(T2,r),B=qr.fromRangeStart(r.selection.getRng());return Fy(g,r.getBody(),B).filter(jee)},Hee=(r,g)=>{g.fold(k,U(Sv,r),U(Vee,r),k)},T8={insert:(r,g)=>{const B=Qee(r);B.isSome()?B.each(U(Hee,r)):$ee(r,g)},fakeEventName:"insertLineBreak"},sR=(r,g)=>G9(r).filter(B=>g.length>0&&_f(sr.fromDom(B),g)).isSome(),C8=r=>sR(r,Dm(r)),Zee=r=>sR(r,H1(r)),Eg=aa.generate([{br:[]},{block:[]},{none:[]}]),qee=(r,g)=>Zee(r),WV=r=>(g,B)=>Cee(g)===r,YV=(r,g)=>(B,H)=>Tee(B)===r.toUpperCase()===g,XV=r=>{const g=Sk(r.dom,r.selection.getStart());return T(g)},Tk=r=>YV("pre",r),GV=()=>YV("summary",!0),Ck=r=>(g,B)=>Hp(g)===r,Wee=(r,g)=>C8(r),A8=(r,g)=>g,lR=r=>{const g=dc(r),B=Sk(r.dom,r.selection.getStart());return E(B)&&r.schema.isValidChild(B.nodeName,g)},Yee=r=>{const g=r.selection.getRng(),B=sr.fromDom(g.startContainer),re=ks(B,g.startOffset).map(be=>iu(be)&&!js(be));return g.collapsed&&re.getOr(!0)},b0=(r,g)=>(B,H)=>Ie(r,(be,Re)=>be&&Re(B,H),!0)?Y.some(g):Y.none(),M8=(r,g)=>ZP([b0([qee],Eg.none()),b0([Tk(!0),XV],Eg.none()),b0([GV()],Eg.br()),b0([Tk(!0),Ck(!1),A8],Eg.br()),b0([Tk(!0),Ck(!1)],Eg.block()),b0([Tk(!0),Ck(!0),A8],Eg.block()),b0([Tk(!0),Ck(!0)],Eg.br()),b0([WV(!0),A8],Eg.br()),b0([WV(!0)],Eg.block()),b0([Wee],Eg.br()),b0([A8],Eg.br()),b0([lR],Eg.block()),b0([Yee],Eg.block())],[r,!!(g&&g.shiftKey)]).getOr(Eg.none()),E8=(r,g,B)=>{g.selection.isCollapsed()||VW(g),!(E(B)&&aO(g,r.fakeEventName).isDefaultPrevented())&&(r.insert(g,B),E(B)&&Ok(g,r.fakeEventName))},P8=(r,g)=>{const B=()=>E8(T8,r,g),H=()=>E8(HV,r,g),re=M8(r,g);switch(yg(r)){case"linebreak":re.fold(B,B,k);break;case"block":re.fold(H,H,k);break;case"invert":re.fold(H,B,k);break;default:re.fold(B,H,k);break}},R8=tr(),KV=R8.os.isiOS()&&R8.browser.isSafari(),JV=(r,g)=>{g.isDefaultPrevented()||(g.preventDefault(),dX(r.undoManager),r.undoManager.transact(()=>{P8(r,g)}))},Sfe=r=>{if(!r.collapsed)return!1;const g=r.startContainer;if(Nt(g)){const B=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,H=g.data.charAt(r.startOffset-1);return B.test(H)}else return!1},$2=r=>{let g=Y.none();const B=re=>{g=Y.some(re.selection.getBookmark()),re.undoManager.add()},H=(re,be)=>{re.undoManager.undo(),g.fold(k,Re=>re.selection.moveToBookmark(Re)),JV(re,be),g=Y.none()};r.on("keydown",re=>{re.keyCode===Fo.ENTER&&(KV&&Sfe(r.selection.getRng())?B(r):JV(r,re))}),r.on("keyup",re=>{re.keyCode===Fo.ENTER&&g.each(()=>H(r,re))})},Xee=(r,g,B)=>{const H=fr.os.isMacOS()||fr.os.isiOS();r8([{keyCode:Fo.END,action:ua(b4,r,!0)},{keyCode:Fo.HOME,action:ua(b4,r,!1)},...H?[]:[{keyCode:Fo.HOME,action:ua(c1,r,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Fo.END,action:ua(c1,r,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Fo.END,action:ua(eJ,r,!0)},{keyCode:Fo.HOME,action:ua(eJ,r,!1)},{keyCode:Fo.END,action:ua(YC,r,!0,g)},{keyCode:Fo.HOME,action:ua(YC,r,!1,g)}],B).each(re=>{B.preventDefault()})},Gee=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||Xee(r,g,B)})},Kee=r=>{r.on("input",g=>{g.isComposing||$B(r)})},L8=tr(),eU=(r,g,B)=>{r8([{keyCode:Fo.PAGE_UP,action:ua(YC,r,!1,g)},{keyCode:Fo.PAGE_DOWN,action:ua(YC,r,!0,g)}],B)},cR=r=>r.stopImmediatePropagation(),tU=r=>r.keyCode===Fo.PAGE_UP||r.keyCode===Fo.PAGE_DOWN,uR=(r,g,B)=>{B&&!r.get()?g.on("NodeChange",cR,!0):!B&&r.get()&&g.off("NodeChange",cR),r.set(B)},Jee=(r,g)=>{if(L8.os.isMacOS())return;const B=mr(!1);r.on("keydown",H=>{tU(H)&&uR(B,r,!0)}),r.on("keyup",H=>{H.isDefaultPrevented()||eU(r,g,H),tU(H)&&B.get()&&(uR(B,r,!1),r.nodeChanged())})},ete=r=>{r.on("beforeinput",g=>{(!r.selection.isEditable()||de(g.getTargetRanges(),B=>!iB(r.dom,B)))&&g.preventDefault()})},nU=(r,g)=>{const B=g.container(),H=g.offset();return Nt(B)?(B.insertData(H,r),Y.some(qr(B,H+r.length))):d3(g).map(re=>{const be=sr.fromText(r);return g.isAtEnd()?si(re,be):Fc(re,be),qr(be.dom,r.length)})},I8=U(nU,Ea),D8=U(nU," "),tte=(r,g,B)=>DB(r,g,B)?I8(g):D8(g),fR=r=>g=>g.fold(B=>mp(r.dom,qr.before(B)),B=>lh(B),B=>Xp(B),B=>sh(r.dom,qr.after(B))),rU=(r,g,B)=>H=>DB(r,H,B)?I8(g):D8(g),Ak=r=>g=>{r.selection.setRng(g.toRange()),r.nodeChanged()},oU=(r,g)=>r.isEditable(r.getParent(g,"summary")),iU=r=>{const g=qr.fromRangeStart(r.selection.getRng()),B=sr.fromDom(r.getBody());if(r.selection.isCollapsed()){const H=U(T2,r),re=qr.fromRangeStart(r.selection.getRng());return Fy(H,r.getBody(),re).bind(fR(B)).map(be=>()=>rU(B,g,r.schema)(be).each(Ak(r)))}else return Y.none()},nte=r=>{const g=()=>{const B=sr.fromDom(r.getBody());r.selection.isCollapsed()||r.getDoc().execCommand("Delete");const H=qr.fromRangeStart(r.selection.getRng());tte(B,H,r.schema).each(Ak(r))};return ma(fr.browser.isFirefox()&&r.selection.isEditable()&&oU(r.dom,r.selection.getRng().startContainer),g)},rte=(r,g)=>{KK([{keyCode:Fo.SPACEBAR,action:ua(iU,r)},{keyCode:Fo.SPACEBAR,action:ua(nte,r)}],g).each(B=>{g.preventDefault(),aO(r,"insertText",{data:" "}).isDefaultPrevented()||(B(),Ok(r,"insertText",{data:" "}))})},B8=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||rte(r,g)})},aU=r=>CS(r)?[{keyCode:Fo.TAB,action:ua(S9,r,!0)},{keyCode:Fo.TAB,shiftKey:!0,action:ua(S9,r,!1)}]:[],ote=(r,g)=>{r8([...aU(r)],g).each(B=>{g.preventDefault()})},ite=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||ote(r,g)})},sU=r=>{if(r.addShortcut("Meta+P","","mcePrint"),pee(r),Iy(r))return mr(null);{const g=yK(r);return ete(r),f9(r),wJ(r,g),kee(r,g),$2(r),B8(r),Kee(r),ite(r),Gee(r,g),Jee(r,g),g}};class ate{constructor(g){this.lastPath=[],this.editor=g;let B;const H=this;"onselectionchange"in g.getDoc()||g.on("NodeChange click mouseup keyup focus",re=>{const be=g.selection.getRng(),Re={startContainer:be.startContainer,startOffset:be.startOffset,endContainer:be.endContainer,endOffset:be.endOffset};(re.type==="nodechange"||!st(Re,B))&&g.dispatch("SelectionChange"),B=Re}),g.on("contextmenu",()=>{g5(g),g.dispatch("SelectionChange")}),g.on("SelectionChange",()=>{const re=g.selection.getStart(!0);re&&XS(g)&&!H.isSameElementPath(re)&&g.dom.isChildOf(re,g.getBody())&&g.nodeChanged({selectionChange:!0})}),g.on("mouseup",re=>{!re.isDefaultPrevented()&&XS(g)&&(g.selection.getNode().nodeName==="IMG"?kg.setEditorTimeout(g,()=>{g.nodeChanged()}):g.nodeChanged())})}nodeChanged(g={}){const B=this.editor.selection;let H;if(this.editor.initialized&&B&&!J1(this.editor)&&!this.editor.mode.isReadOnly()){const re=this.editor.getBody();H=B.getStart(!0)||re,(H.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(H,re))&&(H=re);const be=[];this.editor.dom.getParent(H,Re=>Re===re?!0:(be.push(Re),!1)),this.editor.dispatch("NodeChange",{...g,element:H,parents:be})}}isSameElementPath(g){let B;const H=this.editor,re=ke(H.dom.getParents(g,q,H.getBody()));if(re.length===this.lastPath.length){for(B=re.length;B>=0&&re[B]===this.lastPath[B];B--);if(B===-1)return this.lastPath=re,!0}return this.lastPath=re,!1}}const lU=L1("image"),ste=r=>{const g=r;return Y.from(g[lU])},lte=(r,g)=>{const B=r;B[lU]=g},dR=L1("event"),cU=r=>{const g=r;return Y.from(g[dR])},z8=r=>g=>{const B=g;B[dR]=r},uU=(r,g)=>z8(g)(r),fU=z8(0),cte=z8(2),ute=z8(1),fte=(r=>g=>{const B=g;return Y.from(B[dR]).exists(H=>H===r)})(0),S4=()=>Object.freeze({length:0,item:r=>null}),hR=L1("mode"),dte=r=>{const g=r;return Y.from(g[hR])},Mk=r=>g=>{const B=g;B[hR]=r},dU=(r,g)=>Mk(g)(r),hU=Mk(0),pR=Mk(2),pU=Mk(1),mU=r=>g=>{const B=g;return Y.from(B[hR]).exists(H=>H===r)},k4=mU(0),hte=mU(1),F8=(r,g)=>({...g,get length(){return g.length},add:(B,H)=>{if(k4(r))if(v(B)){if(!M(H))return g.add(B,H)}else return g.add(B);return null},remove:B=>{k4(r)&&g.remove(B)},clear:()=>{k4(r)&&g.clear()}}),pte=["none","copy","link","move"],mte=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],mR=()=>{const r=new window.DataTransfer;let g="move",B="all";const H={get dropEffect(){return g},set dropEffect(re){ce(pte,re)&&(g=re)},get effectAllowed(){return B},set effectAllowed(re){fte(H)&&ce(mte,re)&&(B=re)},get items(){return F8(H,r.items)},get files(){return hte(H)?S4():r.files},get types(){return r.types},setDragImage:(re,be,Re)=>{k4(H)&&(lte(H,{image:re,x:be,y:Re}),r.setDragImage(re,be,Re))},getData:re=>hte(H)?"":r.getData(re),setData:(re,be)=>{k4(H)&&r.setData(re,be)},clearData:re=>{k4(H)&&r.clearData(re)}};return hU(H),H},gte=r=>{const g=mR(),B=dte(r);return pR(r),fU(g),g.dropEffect=r.dropEffect,g.effectAllowed=r.effectAllowed,ste(r).each(H=>g.setDragImage(H.image,H.x,H.y)),ye(r.types,H=>{H!=="Files"&&g.setData(H,r.getData(H))}),ye(r.files,H=>g.items.add(H)),cU(r).each(H=>{uU(g,H)}),B.each(H=>{dU(r,H),dU(g,H)}),g},vte=r=>{const g=r.getData("text/html");return g===""?Y.none():Y.some(g)},gU=(r,g)=>r.setData("text/html",g),vU="x-tinymce/html",N8=$(vU),gR="",yte=r=>gR+r,bte=r=>r.replace(gR,""),yU=r=>r.indexOf(gR)!==-1,xte=r=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(r),Yl=(r,g)=>{let B="<"+r;const H=en(g,(re,be)=>be+'="'+up.encodeAllRaw(re)+'"');return H.length&&(B+=" "+H.join(" ")),B+">"},_te=(r,g,B)=>{const H=r.split(/\n\n/),re=Yl(g,B),be="",Re=ve(H,ct=>ct.split(/\n/).join("
    ")),Ke=ct=>re+ct+be;return Re.length===1?Re[0]:ve(Re,Ke).join("")},vR="%MCEPASTEBIN%",wte=(r,g)=>{const{dom:B,selection:H}=r,re=r.getBody();g.set(H.getRng());const be=B.add(r.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},vR);fr.browser.isFirefox()&&B.setStyle(be,"left",B.getStyle(re,"direction",!0)==="rtl"?65535:-65535),B.bind(be,"beforedeactivate focusin focusout",Re=>{Re.stopPropagation()}),be.focus(),H.select(be,!0)},yR=(r,g)=>{const B=r.dom;if($8(r)){let H;const re=g.get();for(;H=$8(r);)B.remove(H),B.unbind(H);re&&r.selection.setRng(re)}g.set(null)},$8=r=>r.dom.get("mcepastebin"),Ote=r=>E(r)&&r.id==="mcepastebin",Ste=r=>{const g=r.dom,B=(Re,Ke)=>{Re.appendChild(Ke),g.remove(Ke,!0)},[H,...re]=Te(r.getBody().childNodes,Ote);ye(re,Re=>{B(H,Re)});const be=g.select("div[id=mcepastebin]",H);for(let Re=be.length-1;Re>=0;Re--){const Ke=g.create("div");H.insertBefore(Ke,be[Re]),B(Ke,be[Re])}return H?H.innerHTML:""},bR=r=>r===vR,xR=r=>{const g=mr(null);return{create:()=>wte(r,g),remove:()=>yR(r,g),getEl:()=>$8(r),getHtml:()=>Ste(r),getLastRng:g.get}},bU=(r,g)=>(mo.each(g,B=>{m(B,RegExp)?r=r.replace(B,""):r=r.replace(B[0],B[1])}),r),kte=r=>{const g=Np(),B=Ry({},g);let H="";const re=g.getVoidElements(),be=mo.makeMap("script noscript style textarea video audio iframe object"," "),Re=g.getBlockElements(),Ke=ct=>{const kt=ct.name,Wt=ct;if(kt==="br"){H+=` +Input object: `+vk(r.input),z9=(r,g)=>f1(r,ht(g,B9)),qJ=$(VJ),_k=(r,g)=>D9(B=>{const H=typeof B;return r(B)?Ud.svalue(B):Ud.serror(`Expected type: ${g} but got: ${H}`)}),TV=_k(L,"number"),y8=_k(v,"string"),WJ=_k(R,"boolean"),F9=_k(C,"function"),wk=NJ,N9=$J,YJ=r=>QJ(g=>ce(r,g)?gs.value(g):gs.error(`Unsupported value: "${g}", choose one of "${r.join(", ")}".`)),CV=(r,g)=>wk(r,r,vV(),g),$9=r=>CV(r,y8),AV=r=>CV(r,F9),XJ=(r,g)=>wk(r,r,vV(),SV(g)),b8=(r,g)=>wk(r,r,BJ(),g),x8=r=>b8(r,y8),GJ=r=>b8(r,F9),KJ=(r,g)=>wk(r,r,_4(g),qJ()),iO=(r,g,B)=>wk(r,r,_4(g),B),V9=(r,g)=>iO(r,g,TV),JJ=(r,g)=>iO(r,g,y8),MV=(r,g,B)=>iO(r,g,YJ(B)),U9=(r,g)=>iO(r,g,WJ),j9=(r,g)=>iO(r,g,F9),eee=(r,g,B)=>iO(r,g,SV(B)),tee=$9("type"),nee=AV("fetch"),Q9=AV("onAction"),yfe=j9("onSetup",()=>k),ree=x8("text"),_8=x8("icon"),EV=x8("tooltip"),PV=x8("label"),oee=U9("active",!1),RV=U9("enabled",!0),H9=U9("primary",!1),iee=r=>KJ("columns",r),Ok=r=>JJ("type",r),aee=B9([tee,$9("trigger"),V9("minChars",1),iee(1),V9("maxResults",10),GJ("matches"),nee,Q9,eee("highlightOn",[],y8)]),LV=r=>kV("Autocompleter",aee,r),Z9=[RV,EV,_8,ree,yfe],w8=[oee].concat(Z9),see=[j9("predicate",oe),MV("scope","node",["node","editor"]),MV("position","selection",["node","selection","line"])],lee=Z9.concat([Ok("contextformbutton"),H9,Q9,N9("original",Q)]),cee=w8.concat([Ok("contextformbutton"),H9,Q9,N9("original",Q)]),IV=Z9.concat([Ok("contextformbutton")]),uee=w8.concat([Ok("contextformtogglebutton")]),fee=z9("type",{contextformbutton:lee,contextformtogglebutton:cee});B9([Ok("contextform"),j9("initValue",$("")),PV,XJ("commands",fee),b8("launch",z9("type",{contextformbutton:IV,contextformtogglebutton:uee}))].concat(see));const dee=r=>{const g=r.ui.registry.getAll().popups,B=ht(g,Re=>LV(Re).fold(Ke=>{throw new Error(ZJ(Ke))},Q)),H=bn(en(B,Re=>Re.trigger)),re=Gt(B);return{dataset:B,triggers:H,lookupByTrigger:Re=>Te(re,Ke=>Ke.trigger===Re)}},hee=(r,g)=>{const B=n0(g.load,50);r.on("input",H=>{H.inputType==="insertCompositionText"&&!r.composing||B.throttle()}),r.on("keydown",H=>{const re=H.which;re===8?B.throttle():re===27?(B.cancel(),g.cancelIfNecessary()):(re===38||re===40)&&B.cancel()},!0),r.on("remove",B.cancel)},pee=r=>{const g=Ys(),B=mr(!1),H=g.isSet,re=()=>{H()&&(s6(r),B.set(!1),g.clear())},be=Jt=>{H()||g.set({trigger:Jt.trigger,matchLength:Jt.text.length})},Re=xt(()=>dee(r)),Ke=Jt=>g.get().map(ln=>M9(r.dom,r.selection.getRng(),ln.trigger,!0).bind(kn=>dV(r,Re,kn,Jt))).getOrThunk(()=>PJ(r,Re)),ct=Jt=>{Ke(Jt).fold(re,ln=>{be(ln.context),ln.lookupData.then(kn=>{g.get().map(Vn=>{const Rn=ln.context;Vn.trigger===Rn.trigger&&(g.set({...Vn,matchLength:Rn.text.length}),B.get()?(a6(r,{range:Rn.range}),a5(r,{lookupData:kn})):(B.set(!0),a6(r,{range:Rn.range}),i6(r,{lookupData:kn})))})})})},kt=(Jt,ln)=>{const kn=Jt.compareBoundaryPoints(window.Range.START_TO_START,ln),Vn=Jt.compareBoundaryPoints(window.Range.END_TO_END,ln);return kn>=0&&Vn<=0},Wt=()=>g.get().bind(({trigger:Jt})=>{const ln=r.selection.getRng();return M9(r.dom,ln,Jt,B.get()).filter(({range:kn})=>kt(ln,kn)).map(({range:kn})=>kn)});r.addCommand("mceAutocompleterReload",(Jt,ln)=>{const kn=_(ln)?ln.fetchOptions:{};ct(kn)}),r.addCommand("mceAutocompleterClose",re),r.addCommand("mceAutocompleterRefreshActiveRange",()=>{Wt().each(Jt=>{a6(r,{range:Jt})})}),r.editorCommands.addQueryStateHandler("mceAutoCompleterInRange",()=>Wt().isSome()),hee(r,{cancelIfNecessary:re,load:ct})},$y=tr().browser.isSafari(),DV=r=>rh(sr.fromDom(r)),mee=(r,g)=>{var B;return r.startOffset===0&&r.endOffset===((B=g.textContent)===null||B===void 0?void 0:B.length)},O8=(r,g)=>Y.from(r.getParent(g.container(),"details")),BV=(r,g)=>O8(r,g).isSome(),gee=(r,g)=>{const B=Y.from(r.getParent(g.startContainer,"details")),H=Y.from(r.getParent(g.endContainer,"details"));if(B.isSome()||H.isSome()){const re=B.bind(be=>Y.from(r.select("summary",be)[0]));return Y.some({startSummary:re,startDetails:B,endDetails:H})}else return Y.none()},vee=(r,g)=>lh(g).exists(B=>B.isEqual(r)),zV=(r,g)=>Xp(g).exists(B=>On(B.getNode())&&mp(g,B).exists(H=>H.isEqual(r))||B.isEqual(r)),w4=(r,g)=>g.startSummary.exists(B=>vee(r,B)),bfe=(r,g)=>g.startSummary.exists(B=>zV(r,B)),yee=(r,g)=>g.startDetails.exists(B=>mp(B,r).forall(H=>g.startSummary.exists(re=>!re.contains(r.container())&&re.contains(H.container())))),bee=(r,g,B)=>B.startDetails.exists(H=>sh(r,g).forall(re=>!H.contains(re.container()))),d1=(r,g)=>{const B=g.getNode();M(B)||r.selection.setCursorLocation(B,g.offset())},FV=(r,g,B)=>{const H=r.dom.getParent(g.container(),"details");if(H&&!H.open){const re=r.dom.select("summary",H)[0];re&&(B?lh(re):Xp(re)).each(Re=>d1(r,Re))}else d1(r,g)},xee=(r,g)=>{const B=ct=>ct.contains(r.startContainer),H=ct=>ct.contains(r.endContainer),re=g.startSummary.exists(B),be=g.startSummary.exists(H),Re=g.startDetails.forall(ct=>g.endDetails.forall(kt=>ct!==kt));return(re||be)&&!(re&&be)||Re},q9=(r,g,B)=>{const{dom:H,selection:re}=r,be=r.getBody();if(B==="character"){const Re=qr.fromRangeStart(re.getRng()),Ke=H.getParent(Re.container(),H.isBlock),ct=O8(H,Re),kt=Ke&&H.isEmpty(Ke),Wt=x(Ke==null?void 0:Ke.previousSibling),Jt=x(Ke==null?void 0:Ke.nextSibling);return kt&&(g?Jt:Wt)&&uv(!g,be,Re).exists(Vn=>BV(H,Vn)&&!Xl(ct,O8(H,Vn)))?!0:uv(g,be,Re).fold(oe,ln=>{const kn=O8(H,ln);if(BV(H,ln)&&!Xl(ct,kn)){if(g||FV(r,ln,!1),Ke&&kt){if(g&&Wt)return!0;if(!g&&Jt)return!0;FV(r,ln,g),r.dom.remove(Ke)}return!0}else return!1})}else return!1},_ee=(r,g,B,H)=>{const be=r.selection.getRng(),Re=qr.fromRangeStart(be),Ke=r.getBody();return H==="selection"?xee(be,g):B?bfe(Re,g)||bee(Ke,Re,g):w4(Re,g)||yee(Re,g)},W9=(r,g,B)=>gee(r.dom,r.selection.getRng()).fold(()=>q9(r,g,B),H=>_ee(r,H,g,B)||q9(r,g,B)),Vy=(r,g,B)=>{const H=r.selection,re=H.getNode(),be=H.getRng(),Re=qr.fromRangeStart(be);return vo(re)?(B==="selection"&&mee(be,re)||S5(g,Re,re)?DV(re):r.undoManager.transact(()=>{const Ke=H.getSel();let{anchorNode:ct,anchorOffset:kt,focusNode:Wt,focusOffset:Jt}=Ke??{};const ln=()=>{E(ct)&&E(kt)&&E(Wt)&&E(Jt)&&(Ke==null||Ke.setBaseAndExtent(ct,kt,Wt,Jt))},kn=()=>{ct=Ke==null?void 0:Ke.anchorNode,kt=Ke==null?void 0:Ke.anchorOffset,Wt=Ke==null?void 0:Ke.focusNode,Jt=Ke==null?void 0:Ke.focusOffset},Vn=(qn,pr)=>{ye(qn.childNodes,Tr=>{b2(Tr)&&pr.appendChild(Tr)})},Rn=r.dom.create("span",{"data-mce-bogus":"1"});Vn(re,Rn),re.appendChild(Rn),ln(),(B==="word"||B==="line")&&(Ke==null||Ke.modify("extend",g?"right":"left",B)),!H.isCollapsed()&&mee(H.getRng(),Rn)?DV(re):(r.execCommand(g?"ForwardDelete":"Delete"),kn(),Vn(Rn,re),ln()),r.dom.remove(Rn)}),!0):!1},N2=(r,g,B)=>W9(r,g,B)||$y&&Vy(r,g,B)?Y.some(k):Y.none(),Y9=r=>(g,B,H={})=>{const re=g.getBody(),be={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:re,currentTarget:re,eventPhase:Event.AT_TARGET,originalTarget:re,explicitOriginalTarget:re,isTrusted:!1,srcElement:re,cancelable:!1,preventDefault:k,inputType:B},Re=$p(new InputEvent(r));return g.dispatch(r,{...Re,...be,...H})},Sk=Y9("input"),aO=Y9("beforeinput"),S8=tr(),X9=S8.os,G9=X9.isMacOS()||X9.isiOS(),wee=S8.browser.isFirefox(),Oee=(r,g,B)=>{const H=B.keyCode===Fo.BACKSPACE?"deleteContentBackward":"deleteContentForward",re=r.selection.isCollapsed(),be=re?"character":"selection",Re=Ke=>re?Ke?"word":"line":"selection";KK([{keyCode:Fo.BACKSPACE,action:ua(c9,r)},{keyCode:Fo.BACKSPACE,action:ua(sk,r,!1)},{keyCode:Fo.DELETE,action:ua(sk,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(IP,r,!1)},{keyCode:Fo.DELETE,action:ua(IP,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(dk,r,g,!1)},{keyCode:Fo.DELETE,action:ua(dk,r,g,!0)},{keyCode:Fo.BACKSPACE,action:ua(Bw,r,!1)},{keyCode:Fo.DELETE,action:ua(Bw,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(N2,r,!1,be)},{keyCode:Fo.DELETE,action:ua(N2,r,!0,be)},...G9?[{keyCode:Fo.BACKSPACE,altKey:!0,action:ua(N2,r,!1,Re(!0))},{keyCode:Fo.DELETE,altKey:!0,action:ua(N2,r,!0,Re(!0))},{keyCode:Fo.BACKSPACE,metaKey:!0,action:ua(N2,r,!1,Re(!1))}]:[{keyCode:Fo.BACKSPACE,ctrlKey:!0,action:ua(N2,r,!1,Re(!0))},{keyCode:Fo.DELETE,ctrlKey:!0,action:ua(N2,r,!0,Re(!0))}],{keyCode:Fo.BACKSPACE,action:ua(p4,r,!1)},{keyCode:Fo.DELETE,action:ua(p4,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(t8,r,!1)},{keyCode:Fo.DELETE,action:ua(t8,r,!0)},{keyCode:Fo.BACKSPACE,action:ua($C,r,!1)},{keyCode:Fo.DELETE,action:ua($C,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(FC,r,!1)},{keyCode:Fo.DELETE,action:ua(FC,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(o9,r,!1)},{keyCode:Fo.DELETE,action:ua(o9,r,!0)},{keyCode:Fo.BACKSPACE,action:ua(h4,r,!1)},{keyCode:Fo.DELETE,action:ua(h4,r,!0)}],B).filter(Ke=>r.selection.isEditable()).each(Ke=>{B.preventDefault(),aO(r,H).isDefaultPrevented()||(Ke(),Sk(r,H))})},See=(r,g,B)=>o8([{keyCode:Fo.BACKSPACE,action:ua(VP,r)},{keyCode:Fo.DELETE,action:ua(VP,r)},...G9?[{keyCode:Fo.BACKSPACE,altKey:!0,action:ua(pk,r)},{keyCode:Fo.DELETE,altKey:!0,action:ua(pk,r)},...B?[{keyCode:wee?224:91,action:ua(pk,r)}]:[]]:[{keyCode:Fo.BACKSPACE,ctrlKey:!0,action:ua(pk,r)},{keyCode:Fo.DELETE,ctrlKey:!0,action:ua(pk,r)}]],g),kee=(r,g)=>{let B=!1;r.on("keydown",H=>{B=H.keyCode===Fo.BACKSPACE,H.isDefaultPrevented()||Oee(r,g,H)}),r.on("keyup",H=>{H.isDefaultPrevented()||See(r,H,B),B=!1})},NV=r=>{for(;r;){if(ne(r)||Nt(r)&&r.data&&/[\r\n\s]/.test(r.data))return r;r=r.nextSibling}return null},O4=(r,g)=>{const B=r.dom,H=r.schema.getMoveCaretBeforeOnEnterElements();if(!g)return;if(/^(LI|DT|DD)$/.test(g.nodeName)){const be=NV(g.firstChild);be&&/^(UL|OL|DL)$/.test(be.nodeName)&&g.insertBefore(B.doc.createTextNode(Ea),g.firstChild)}const re=B.createRng();if(g.normalize(),g.hasChildNodes()){const be=new kc(g,g);let Re=g,Ke;for(;Ke=be.current();){if(Nt(Ke)){re.setStart(Ke,0),re.setEnd(Ke,0);break}if(H[Ke.nodeName.toLowerCase()]){re.setStartBefore(Ke),re.setEndBefore(Ke);break}Re=Ke,Ke=be.next()}Ke||(re.setStart(Re,0),re.setEnd(Re,0))}else On(g)?g.nextSibling&&B.isBlock(g.nextSibling)?(re.setStartBefore(g),re.setEndBefore(g)):(re.setStartAfter(g),re.setEndAfter(g)):(re.setStart(g,0),re.setEnd(g,0));r.selection.setRng(re),g5(r,re)},kk=(r,g)=>{const B=r.getRoot();let H,re=g;for(;re!==B&&re&&r.getContentEditable(re)!=="false";){if(r.getContentEditable(re)==="true"){H=re;break}re=re.parentNode}return re!==B?H:B},K9=r=>Y.from(r.dom.getParent(r.selection.getStart(!0),r.dom.isBlock)),Tee=r=>K9(r).fold($(""),g=>g.nodeName.toUpperCase()),Cee=r=>K9(r).filter(g=>nh(sr.fromDom(g))).isSome(),k8=r=>{r.innerHTML='
    '},$V=(r,g,B)=>{const H=r.dom;Y.from(B.style).map(H.parseStyle).each(ct=>{const Wt={...vc(sr.fromDom(g)),...ct};H.setStyles(g,Wt)});const re=Y.from(B.class).map(ct=>ct.split(/\s+/)),be=Y.from(g.className).map(ct=>Te(ct.split(/\s+/),kt=>kt!==""));us(re,be,(ct,kt)=>{const Wt=Te(kt,ln=>!ce(ct,ln)),Jt=[...ct,...Wt];H.setAttrib(g,"class",Jt.join(" "))});const Re=["style","class"],Ke=qt(B,(ct,kt)=>!ce(Re,kt));H.setAttribs(g,Ke)},Tk=(r,g)=>{if(dc(r).toLowerCase()===g.tagName.toLowerCase()){const H=Jf(r);$V(r,g,H)}},VV=(r,g,B,H,re=!0,be,Re)=>{const Ke=r.dom,ct=r.schema,kt=dc(r),Wt=B?B.nodeName.toUpperCase():"";let Jt=g;const ln=ct.getTextInlineElements();let kn;be||Wt==="TABLE"||Wt==="HR"?kn=Ke.create(be||kt,Re||{}):kn=B.cloneNode(!1);let Vn=kn;if(!re)Ke.setAttrib(kn,"style",null),Ke.setAttrib(kn,"class",null);else do if(ln[Jt.nodeName]){if(Gp(Jt)||Kp(Jt))continue;const Rn=Jt.cloneNode(!1);Ke.setAttrib(Rn,"id",""),kn.hasChildNodes()?(Rn.appendChild(kn.firstChild),kn.appendChild(Rn)):(Vn=Rn,kn.appendChild(Rn))}while((Jt=Jt.parentNode)&&Jt!==H);return Tk(r,kn),k8(Vn),kn},_fe=(r,g)=>r.dom.getParent(g,$o),J9=(r,g,B)=>{let H=g;for(;H&&H!==r&&x(H.nextSibling);){const re=H.parentElement;if(!re||!B(re))return $o(re);H=re}return!1},Aee=(r,g,B)=>!g&&B.nodeName.toLowerCase()===dc(r)&&r.dom.isEmpty(B)&&J9(r.getBody(),B,H=>_t(r.schema.getTextBlockElements(),H.nodeName.toLowerCase())),Mee=(r,g,B)=>{var H,re,be;const Re=g(dc(r)),Ke=_fe(r,B);Ke&&(r.dom.insertAfter(Re,Ke),O4(r,Re),((be=(re=(H=B.parentElement)===null||H===void 0?void 0:H.childNodes)===null||re===void 0?void 0:re.length)!==null&&be!==void 0?be:0)>1&&r.dom.remove(B))},Eee=(r,g)=>r.firstChild&&r.firstChild.nodeName===g,UV=r=>{var g;return((g=r.parentNode)===null||g===void 0?void 0:g.firstChild)===r},jV=(r,g)=>{const B=r==null?void 0:r.parentNode;return E(B)&&B.nodeName===g},eR=r=>E(r)&&/^(OL|UL|LI)$/.test(r.nodeName),tR=r=>E(r)&&/^(LI|DT|DD)$/.test(r.nodeName),Pee=r=>eR(r)&&eR(r.parentNode),nR=r=>{const g=r.parentNode;return tR(g)?g:r},Ad=(r,g,B)=>{let H=r[B?"firstChild":"lastChild"];for(;H&&!ne(H);)H=H[B?"nextSibling":"previousSibling"];return H===g},QV=r=>Ie(en(vc(sr.fromDom(r)),(g,B)=>`${B}: ${g};`),(g,B)=>g+B,""),Ree=(r,g,B,H,re)=>{const be=r.dom,Re=r.selection.getRng(),Ke=B.parentNode;if(B===r.getBody()||!Ke)return;Pee(B)&&(re="LI");const ct=tR(H)?QV(H):void 0;let kt=tR(H)&&ct?g(re,{style:QV(H)}):g(re);if(Ad(B,H,!0)&&Ad(B,H,!1))if(jV(B,"LI")){const Wt=nR(B);be.insertAfter(kt,Wt),UV(B)?be.remove(Wt):be.remove(B)}else be.replace(kt,B);else if(Ad(B,H,!0))jV(B,"LI")?(be.insertAfter(kt,nR(B)),kt.appendChild(be.doc.createTextNode(" ")),kt.appendChild(B)):Ke.insertBefore(kt,B),be.remove(H);else if(Ad(B,H,!1))be.insertAfter(kt,nR(B)),be.remove(H);else{B=nR(B);const Wt=Re.cloneRange();Wt.setStartAfter(H),Wt.setEndAfter(B);const Jt=Wt.extractContents();if(re==="LI"&&Eee(Jt,"LI")){const ln=Te(ve(kt.children,sr.fromDom),X(Ju("br")));kt=Jt.firstChild,be.insertAfter(Jt,B),ye(ln,kn=>Hh(sr.fromDom(kt),kn)),ct&&kt.setAttribute("style",ct)}else be.insertAfter(Jt,B),be.insertAfter(kt,B);be.remove(H)}O4(r,kt)},Lee=r=>{ye(Zf(sr.fromDom(r),ks),g=>{const B=g.dom;B.nodeValue=yd(B.data)})},Iee=(r,g)=>{const B=r.dom.getParent(g,"ol,ul,dl");return B!==null&&r.dom.getContentEditableParent(B)==="false"},Dee=(r,g)=>g&&g.nodeName==="A"&&r.isEmpty(g),rR=(r,g)=>r.nodeName===g||r.previousSibling&&r.previousSibling.nodeName===g,oR=(r,g)=>E(g)&&r.isBlock(g)&&!/^(TD|TH|CAPTION|FORM)$/.test(g.nodeName)&&!/^(fixed|absolute)/i.test(g.style.position)&&r.isEditable(g.parentNode)&&r.getContentEditable(g)!=="false",T8=(r,g,B)=>{var H;const re=[];if(!B)return;let be=B;for(;be=be.firstChild;){if(r.isBlock(be))return;ne(be)&&!g[be.nodeName.toLowerCase()]&&re.push(be)}let Re=re.length;for(;Re--;)be=re[Re],(!be.hasChildNodes()||be.firstChild===be.lastChild&&((H=be.firstChild)===null||H===void 0?void 0:H.nodeValue)===""||Dee(r,be))&&r.remove(be)},iR=(r,g,B)=>Nt(g)?r?B===1&&g.data.charAt(B-1)===nc?0:B:B===g.data.length-1&&g.data.charAt(B)===nc?g.data.length:B:B,Bee=r=>{const g=r.cloneRange();return g.setStart(r.startContainer,iR(!0,r.startContainer,r.startOffset)),g.setEnd(r.endContainer,iR(!1,r.endContainer,r.endOffset)),g},aR=r=>{let g=r;do Nt(g)&&(g.data=g.data.replace(/^[\r\n]+/,"")),g=g.firstChild;while(g)},sR=(r,g,B,H,re)=>{var be,Re;const Ke=r.dom,ct=(be=kk(Ke,H))!==null&&be!==void 0?be:Ke.getRoot();let kt=Ke.getParent(H,Ke.isBlock);if(!kt||!oR(Ke,kt)){if(kt=kt||ct,!kt.hasChildNodes()){const kn=Ke.create(g);return Tk(r,kn),kt.appendChild(kn),B.setStart(kn,0),B.setEnd(kn,0),kn}let Wt=H;for(;Wt&&Wt.parentNode!==kt;)Wt=Wt.parentNode;let Jt;for(;Wt&&!Ke.isBlock(Wt);)Jt=Wt,Wt=Wt.previousSibling;const ln=(Re=Jt==null?void 0:Jt.parentElement)===null||Re===void 0?void 0:Re.nodeName;if(Jt&&ln&&r.schema.isValidChild(ln,g.toLowerCase())){const kn=Jt.parentNode,Vn=Ke.create(g);for(Tk(r,Vn),kn.insertBefore(Vn,Jt),Wt=Jt;Wt&&!Ke.isBlock(Wt);){const Rn=Wt.nextSibling;Vn.appendChild(Wt),Wt=Rn}B.setStart(H,re),B.setEnd(H,re)}}return H},zee=(r,g)=>{g.normalize();const B=g.lastChild;(!B||ne(B)&&/^(left|right)$/gi.test(r.getStyle(B,"float",!0)))&&r.add(g,"br")},wfe=(r,g)=>{const B=Ec(r);return T(g)?!1:v(B)?ce(mo.explode(B),g.nodeName.toLowerCase()):B},HV={insert:(r,g)=>{let B,H,re,be,Re=!1;const Ke=r.dom,ct=r.schema,kt=ct.getNonEmptyElements(),Wt=r.selection.getRng(),Jt=dc(r),ln=sr.fromDom(Wt.startContainer),kn=Ts(ln,Wt.startOffset),Vn=kn.exists(xo=>iu(xo)&&!js(xo)),Rn=Wt.collapsed&&Vn,qn=(xo,bi)=>VV(r,B,jo,wo,Wx(r),xo,bi),pr=xo=>{const bi=iR(xo,B,H);if(Nt(B)&&(xo?bi>0:bi{let xo;return/^(H[1-6]|PRE|FIGURE)$/.test(re)&&di!=="HGROUP"?xo=qn(Jt):xo=qn(),wfe(r,be)&&oR(Ke,be)&&Ke.isEmpty(jo,void 0,{includeZwsp:!0})?xo=Ke.split(be,jo):Ke.insertAfter(xo,jo),O4(r,xo),xo};Ko(Ke,Wt).each(xo=>{Wt.setStart(xo.startContainer,xo.startOffset),Wt.setEnd(xo.endContainer,xo.endOffset)}),B=Wt.startContainer,H=Wt.startOffset;const wr=!!(g&&g.shiftKey),Ur=!!(g&&g.ctrlKey);ne(B)&&B.hasChildNodes()&&!Rn&&(Re=H>B.childNodes.length-1,B=B.childNodes[Math.min(H,B.childNodes.length-1)]||B,Re&&Nt(B)?H=B.data.length:H=0);const wo=kk(Ke,B);if(!wo||Iee(r,B))return;wr||(B=sR(r,Jt,Wt,B,H));let jo=Ke.getParent(B,Ke.isBlock)||Ke.getRoot();be=E(jo==null?void 0:jo.parentNode)?Ke.getParent(jo.parentNode,Ke.isBlock):null,re=jo?jo.nodeName.toUpperCase():"";const di=be?be.nodeName.toUpperCase():"";if(di==="LI"&&!Ur){const xo=be;jo=xo,be=xo.parentNode,re=di}if(ne(be)&&Aee(r,wr,jo))return Mee(r,qn,jo);if(/^(LI|DT|DD)$/.test(re)&&ne(be)&&Ke.isEmpty(jo)){Ree(r,qn,be,jo,Jt);return}if(!Rn&&(jo===r.getBody()||!oR(Ke,jo)))return;const lo=jo.parentNode;let eo;if(Rn)eo=qn(Jt),kn.fold(()=>{Ps(ln,sr.fromDom(eo))},xo=>{Fc(xo,sr.fromDom(eo))}),r.selection.setCursorLocation(eo,0);else if(vg(jo))eo=Ra(jo),Ke.isEmpty(jo)&&k8(jo),Tk(r,eo),O4(r,eo);else if(pr(!1))eo=Tr();else if(pr(!0)&&lo){const xo=qr.fromRangeStart(Wt),bi=$E(xo),Bi=sr.fromDom(jo),Ia=UE(Bi,xo,r.schema)?MB(Bi,xo,r.schema).bind(sl=>Y.from(sl.getNode())):Y.none();eo=lo.insertBefore(qn(),jo);const Us=rR(jo,"HR")||bi?eo:Ia.getOr(jo);O4(r,Us)}else{const xo=Bee(Wt).cloneRange();xo.setEndAfter(jo);const bi=xo.extractContents();Lee(bi),aR(bi),eo=bi.firstChild,Ke.insertAfter(bi,jo),T8(Ke,kt,eo),zee(Ke,jo),Ke.isEmpty(jo)&&k8(jo),eo.normalize(),Ke.isEmpty(eo)?(Ke.remove(eo),Tr()):(Tk(r,eo),O4(r,eo))}Ke.setAttrib(eo,"id",""),r.dispatch("NewBlock",{newBlock:eo})},fakeEventName:"insertParagraph"},Fee=(r,g,B)=>{const H=new kc(g,B);let re;const be=r.getNonEmptyElements();for(;re=H.next();)if(be[re.nodeName.toLowerCase()]||Nt(re)&&re.length>0)return!0;return!1},Nee=(r,g,B)=>{const H=r.dom.createRng();B?(H.setStartBefore(g),H.setEndBefore(g)):(H.setStartAfter(g),H.setEndAfter(g)),r.selection.setRng(H),g5(r,H)},$ee=(r,g)=>{const B=r.selection,H=r.dom,re=B.getRng();let be,Re=!1;Ko(H,re).each(kn=>{re.setStart(kn.startContainer,kn.startOffset),re.setEnd(kn.endContainer,kn.endOffset)});let Ke=re.startOffset,ct=re.startContainer;if(ne(ct)&&ct.hasChildNodes()){const kn=Ke>ct.childNodes.length-1;ct=ct.childNodes[Math.min(Ke,ct.childNodes.length-1)]||ct,kn&&Nt(ct)?Ke=ct.data.length:Ke=0}let kt=H.getParent(ct,H.isBlock);const Wt=kt&&kt.parentNode?H.getParent(kt.parentNode,H.isBlock):null,Jt=Wt?Wt.nodeName.toUpperCase():"",ln=!!(g&&g.ctrlKey);Jt==="LI"&&!ln&&(kt=Wt),Nt(ct)&&Ke>=ct.data.length&&(Fee(r.schema,ct,kt||H.getRoot())||(be=H.create("br"),re.insertNode(be),re.setStartAfter(be),re.setEndAfter(be),Re=!0)),be=H.create("br"),Ae(H,re,be),Nee(r,be,Re),r.undoManager.add()},Tv=(r,g)=>{const B=sr.fromTag("br");Fc(sr.fromDom(g),B),r.undoManager.add()},Vee=(r,g)=>{Uee(r.getBody(),g)||si(sr.fromDom(g),sr.fromTag("br"));const B=sr.fromTag("br");si(sr.fromDom(g),B),Nee(r,B.dom,!1),r.undoManager.add()},ZV=r=>On(r.getNode()),Uee=(r,g)=>ZV(qr.after(g))?!0:sh(r,qr.after(g)).map(B=>On(B.getNode())).getOr(!1),qV=r=>r&&r.nodeName==="A"&&"href"in r,jee=r=>r.fold(oe,qV,qV,oe),Qee=r=>{const g=U(T2,r),B=qr.fromRangeStart(r.selection.getRng());return Fy(g,r.getBody(),B).filter(jee)},Hee=(r,g)=>{g.fold(k,U(Tv,r),U(Vee,r),k)},C8={insert:(r,g)=>{const B=Qee(r);B.isSome()?B.each(U(Hee,r)):$ee(r,g)},fakeEventName:"insertLineBreak"},lR=(r,g)=>K9(r).filter(B=>g.length>0&&wf(sr.fromDom(B),g)).isSome(),A8=r=>lR(r,Dm(r)),Zee=r=>lR(r,q1(r)),Pg=aa.generate([{br:[]},{block:[]},{none:[]}]),qee=(r,g)=>Zee(r),WV=r=>(g,B)=>Cee(g)===r,YV=(r,g)=>(B,H)=>Tee(B)===r.toUpperCase()===g,XV=r=>{const g=kk(r.dom,r.selection.getStart());return T(g)},Ck=r=>YV("pre",r),GV=()=>YV("summary",!0),Ak=r=>(g,B)=>Hp(g)===r,Wee=(r,g)=>A8(r),M8=(r,g)=>g,cR=r=>{const g=dc(r),B=kk(r.dom,r.selection.getStart());return E(B)&&r.schema.isValidChild(B.nodeName,g)},Yee=r=>{const g=r.selection.getRng(),B=sr.fromDom(g.startContainer),re=Ts(B,g.startOffset).map(be=>iu(be)&&!js(be));return g.collapsed&&re.getOr(!0)},b0=(r,g)=>(B,H)=>Ie(r,(be,Re)=>be&&Re(B,H),!0)?Y.some(g):Y.none(),E8=(r,g)=>qP([b0([qee],Pg.none()),b0([Ck(!0),XV],Pg.none()),b0([GV()],Pg.br()),b0([Ck(!0),Ak(!1),M8],Pg.br()),b0([Ck(!0),Ak(!1)],Pg.block()),b0([Ck(!0),Ak(!0),M8],Pg.block()),b0([Ck(!0),Ak(!0)],Pg.br()),b0([WV(!0),M8],Pg.br()),b0([WV(!0)],Pg.block()),b0([Wee],Pg.br()),b0([M8],Pg.br()),b0([cR],Pg.block()),b0([Yee],Pg.block())],[r,!!(g&&g.shiftKey)]).getOr(Pg.none()),P8=(r,g,B)=>{g.selection.isCollapsed()||VW(g),!(E(B)&&aO(g,r.fakeEventName).isDefaultPrevented())&&(r.insert(g,B),E(B)&&Sk(g,r.fakeEventName))},R8=(r,g)=>{const B=()=>P8(C8,r,g),H=()=>P8(HV,r,g),re=E8(r,g);switch(bg(r)){case"linebreak":re.fold(B,B,k);break;case"block":re.fold(H,H,k);break;case"invert":re.fold(H,B,k);break;default:re.fold(B,H,k);break}},L8=tr(),KV=L8.os.isiOS()&&L8.browser.isSafari(),JV=(r,g)=>{g.isDefaultPrevented()||(g.preventDefault(),dX(r.undoManager),r.undoManager.transact(()=>{R8(r,g)}))},kfe=r=>{if(!r.collapsed)return!1;const g=r.startContainer;if(Nt(g)){const B=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,H=g.data.charAt(r.startOffset-1);return B.test(H)}else return!1},$2=r=>{let g=Y.none();const B=re=>{g=Y.some(re.selection.getBookmark()),re.undoManager.add()},H=(re,be)=>{re.undoManager.undo(),g.fold(k,Re=>re.selection.moveToBookmark(Re)),JV(re,be),g=Y.none()};r.on("keydown",re=>{re.keyCode===Fo.ENTER&&(KV&&kfe(r.selection.getRng())?B(r):JV(r,re))}),r.on("keyup",re=>{re.keyCode===Fo.ENTER&&g.each(()=>H(r,re))})},Xee=(r,g,B)=>{const H=fr.os.isMacOS()||fr.os.isiOS();o8([{keyCode:Fo.END,action:ua(b4,r,!0)},{keyCode:Fo.HOME,action:ua(b4,r,!1)},...H?[]:[{keyCode:Fo.HOME,action:ua(c1,r,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Fo.END,action:ua(c1,r,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Fo.END,action:ua(eJ,r,!0)},{keyCode:Fo.HOME,action:ua(eJ,r,!1)},{keyCode:Fo.END,action:ua(XC,r,!0,g)},{keyCode:Fo.HOME,action:ua(XC,r,!1,g)}],B).each(re=>{B.preventDefault()})},Gee=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||Xee(r,g,B)})},Kee=r=>{r.on("input",g=>{g.isComposing||$B(r)})},I8=tr(),eU=(r,g,B)=>{o8([{keyCode:Fo.PAGE_UP,action:ua(XC,r,!1,g)},{keyCode:Fo.PAGE_DOWN,action:ua(XC,r,!0,g)}],B)},uR=r=>r.stopImmediatePropagation(),tU=r=>r.keyCode===Fo.PAGE_UP||r.keyCode===Fo.PAGE_DOWN,fR=(r,g,B)=>{B&&!r.get()?g.on("NodeChange",uR,!0):!B&&r.get()&&g.off("NodeChange",uR),r.set(B)},Jee=(r,g)=>{if(I8.os.isMacOS())return;const B=mr(!1);r.on("keydown",H=>{tU(H)&&fR(B,r,!0)}),r.on("keyup",H=>{H.isDefaultPrevented()||eU(r,g,H),tU(H)&&B.get()&&(fR(B,r,!1),r.nodeChanged())})},ete=r=>{r.on("beforeinput",g=>{(!r.selection.isEditable()||de(g.getTargetRanges(),B=>!iB(r.dom,B)))&&g.preventDefault()})},nU=(r,g)=>{const B=g.container(),H=g.offset();return Nt(B)?(B.insertData(H,r),Y.some(qr(B,H+r.length))):d3(g).map(re=>{const be=sr.fromText(r);return g.isAtEnd()?si(re,be):Fc(re,be),qr(be.dom,r.length)})},D8=U(nU,Ea),B8=U(nU," "),tte=(r,g,B)=>DB(r,g,B)?D8(g):B8(g),dR=r=>g=>g.fold(B=>mp(r.dom,qr.before(B)),B=>lh(B),B=>Xp(B),B=>sh(r.dom,qr.after(B))),rU=(r,g,B)=>H=>DB(r,H,B)?D8(g):B8(g),Mk=r=>g=>{r.selection.setRng(g.toRange()),r.nodeChanged()},oU=(r,g)=>r.isEditable(r.getParent(g,"summary")),iU=r=>{const g=qr.fromRangeStart(r.selection.getRng()),B=sr.fromDom(r.getBody());if(r.selection.isCollapsed()){const H=U(T2,r),re=qr.fromRangeStart(r.selection.getRng());return Fy(H,r.getBody(),re).bind(dR(B)).map(be=>()=>rU(B,g,r.schema)(be).each(Mk(r)))}else return Y.none()},nte=r=>{const g=()=>{const B=sr.fromDom(r.getBody());r.selection.isCollapsed()||r.getDoc().execCommand("Delete");const H=qr.fromRangeStart(r.selection.getRng());tte(B,H,r.schema).each(Mk(r))};return ga(fr.browser.isFirefox()&&r.selection.isEditable()&&oU(r.dom,r.selection.getRng().startContainer),g)},rte=(r,g)=>{KK([{keyCode:Fo.SPACEBAR,action:ua(iU,r)},{keyCode:Fo.SPACEBAR,action:ua(nte,r)}],g).each(B=>{g.preventDefault(),aO(r,"insertText",{data:" "}).isDefaultPrevented()||(B(),Sk(r,"insertText",{data:" "}))})},z8=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||rte(r,g)})},aU=r=>AS(r)?[{keyCode:Fo.TAB,action:ua(k9,r,!0)},{keyCode:Fo.TAB,shiftKey:!0,action:ua(k9,r,!1)}]:[],ote=(r,g)=>{o8([...aU(r)],g).each(B=>{g.preventDefault()})},ite=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||ote(r,g)})},sU=r=>{if(r.addShortcut("Meta+P","","mcePrint"),pee(r),Iy(r))return mr(null);{const g=yK(r);return ete(r),d9(r),wJ(r,g),kee(r,g),$2(r),z8(r),Kee(r),ite(r),Gee(r,g),Jee(r,g),g}};class ate{constructor(g){this.lastPath=[],this.editor=g;let B;const H=this;"onselectionchange"in g.getDoc()||g.on("NodeChange click mouseup keyup focus",re=>{const be=g.selection.getRng(),Re={startContainer:be.startContainer,startOffset:be.startOffset,endContainer:be.endContainer,endOffset:be.endOffset};(re.type==="nodechange"||!st(Re,B))&&g.dispatch("SelectionChange"),B=Re}),g.on("contextmenu",()=>{v5(g),g.dispatch("SelectionChange")}),g.on("SelectionChange",()=>{const re=g.selection.getStart(!0);re&&GS(g)&&!H.isSameElementPath(re)&&g.dom.isChildOf(re,g.getBody())&&g.nodeChanged({selectionChange:!0})}),g.on("mouseup",re=>{!re.isDefaultPrevented()&&GS(g)&&(g.selection.getNode().nodeName==="IMG"?Tg.setEditorTimeout(g,()=>{g.nodeChanged()}):g.nodeChanged())})}nodeChanged(g={}){const B=this.editor.selection;let H;if(this.editor.initialized&&B&&!tv(this.editor)&&!this.editor.mode.isReadOnly()){const re=this.editor.getBody();H=B.getStart(!0)||re,(H.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(H,re))&&(H=re);const be=[];this.editor.dom.getParent(H,Re=>Re===re?!0:(be.push(Re),!1)),this.editor.dispatch("NodeChange",{...g,element:H,parents:be})}}isSameElementPath(g){let B;const H=this.editor,re=ke(H.dom.getParents(g,q,H.getBody()));if(re.length===this.lastPath.length){for(B=re.length;B>=0&&re[B]===this.lastPath[B];B--);if(B===-1)return this.lastPath=re,!0}return this.lastPath=re,!1}}const lU=D1("image"),ste=r=>{const g=r;return Y.from(g[lU])},lte=(r,g)=>{const B=r;B[lU]=g},hR=D1("event"),cU=r=>{const g=r;return Y.from(g[hR])},F8=r=>g=>{const B=g;B[hR]=r},uU=(r,g)=>F8(g)(r),fU=F8(0),cte=F8(2),ute=F8(1),fte=(r=>g=>{const B=g;return Y.from(B[hR]).exists(H=>H===r)})(0),S4=()=>Object.freeze({length:0,item:r=>null}),pR=D1("mode"),dte=r=>{const g=r;return Y.from(g[pR])},Ek=r=>g=>{const B=g;B[pR]=r},dU=(r,g)=>Ek(g)(r),hU=Ek(0),mR=Ek(2),pU=Ek(1),mU=r=>g=>{const B=g;return Y.from(B[pR]).exists(H=>H===r)},k4=mU(0),hte=mU(1),N8=(r,g)=>({...g,get length(){return g.length},add:(B,H)=>{if(k4(r))if(v(B)){if(!M(H))return g.add(B,H)}else return g.add(B);return null},remove:B=>{k4(r)&&g.remove(B)},clear:()=>{k4(r)&&g.clear()}}),pte=["none","copy","link","move"],mte=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],gR=()=>{const r=new window.DataTransfer;let g="move",B="all";const H={get dropEffect(){return g},set dropEffect(re){ce(pte,re)&&(g=re)},get effectAllowed(){return B},set effectAllowed(re){fte(H)&&ce(mte,re)&&(B=re)},get items(){return N8(H,r.items)},get files(){return hte(H)?S4():r.files},get types(){return r.types},setDragImage:(re,be,Re)=>{k4(H)&&(lte(H,{image:re,x:be,y:Re}),r.setDragImage(re,be,Re))},getData:re=>hte(H)?"":r.getData(re),setData:(re,be)=>{k4(H)&&r.setData(re,be)},clearData:re=>{k4(H)&&r.clearData(re)}};return hU(H),H},gte=r=>{const g=gR(),B=dte(r);return mR(r),fU(g),g.dropEffect=r.dropEffect,g.effectAllowed=r.effectAllowed,ste(r).each(H=>g.setDragImage(H.image,H.x,H.y)),ye(r.types,H=>{H!=="Files"&&g.setData(H,r.getData(H))}),ye(r.files,H=>g.items.add(H)),cU(r).each(H=>{uU(g,H)}),B.each(H=>{dU(r,H),dU(g,H)}),g},vte=r=>{const g=r.getData("text/html");return g===""?Y.none():Y.some(g)},gU=(r,g)=>r.setData("text/html",g),vU="x-tinymce/html",$8=$(vU),vR="",yte=r=>vR+r,bte=r=>r.replace(vR,""),yU=r=>r.indexOf(vR)!==-1,xte=r=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(r),Yl=(r,g)=>{let B="<"+r;const H=en(g,(re,be)=>be+'="'+up.encodeAllRaw(re)+'"');return H.length&&(B+=" "+H.join(" ")),B+">"},_te=(r,g,B)=>{const H=r.split(/\n\n/),re=Yl(g,B),be="",Re=ve(H,ct=>ct.split(/\n/).join("
    ")),Ke=ct=>re+ct+be;return Re.length===1?Re[0]:ve(Re,Ke).join("")},yR="%MCEPASTEBIN%",wte=(r,g)=>{const{dom:B,selection:H}=r,re=r.getBody();g.set(H.getRng());const be=B.add(r.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},yR);fr.browser.isFirefox()&&B.setStyle(be,"left",B.getStyle(re,"direction",!0)==="rtl"?65535:-65535),B.bind(be,"beforedeactivate focusin focusout",Re=>{Re.stopPropagation()}),be.focus(),H.select(be,!0)},bR=(r,g)=>{const B=r.dom;if(V8(r)){let H;const re=g.get();for(;H=V8(r);)B.remove(H),B.unbind(H);re&&r.selection.setRng(re)}g.set(null)},V8=r=>r.dom.get("mcepastebin"),Ote=r=>E(r)&&r.id==="mcepastebin",Ste=r=>{const g=r.dom,B=(Re,Ke)=>{Re.appendChild(Ke),g.remove(Ke,!0)},[H,...re]=Te(r.getBody().childNodes,Ote);ye(re,Re=>{B(H,Re)});const be=g.select("div[id=mcepastebin]",H);for(let Re=be.length-1;Re>=0;Re--){const Ke=g.create("div");H.insertBefore(Ke,be[Re]),B(Ke,be[Re])}return H?H.innerHTML:""},xR=r=>r===yR,_R=r=>{const g=mr(null);return{create:()=>wte(r,g),remove:()=>bR(r,g),getEl:()=>V8(r),getHtml:()=>Ste(r),getLastRng:g.get}},bU=(r,g)=>(mo.each(g,B=>{m(B,RegExp)?r=r.replace(B,""):r=r.replace(B[0],B[1])}),r),kte=r=>{const g=Np(),B=Ry({},g);let H="";const re=g.getVoidElements(),be=mo.makeMap("script noscript style textarea video audio iframe object"," "),Re=g.getBlockElements(),Ke=ct=>{const kt=ct.name,Wt=ct;if(kt==="br"){H+=` `;return}if(kt!=="wbr"){if(re[kt]&&(H+=" "),be[kt]){H+=" ";return}if(ct.type===3&&(H+=ct.value),!(ct.name in g.getVoidElements())){let Jt=ct.firstChild;if(Jt)do Ke(Jt);while(Jt=Jt.next)}Re[kt]&&Wt.next&&(H+=` `,kt==="p"&&(H+=` -`))}};return r=bU(r,[//g]),Ke(B.parse(r)),H},xU=r=>(r=bU(r,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(B,H,re)=>!H&&!re?" ":Ea],/
    /g,/
    $/i]),r),_U=r=>{let g=0;return()=>r+g++},Tte=r=>{const g=r.toLowerCase(),B={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return mo.hasOwn(B,g)?"image/"+B[g]:"image/"+g},Cte=(r,g)=>{const B=Ry({sanitize:Rb(r),sandbox_iframes:o2(r),sandbox_iframes_exclusions:i2(r),convert_unsafe_embeds:AS(r)},r.schema);B.addNodeFilter("meta",re=>{mo.each(re,be=>{be.remove()})});const H=B.parse(g,{forced_root_block:!1,isRootContent:!0});return Wb({validate:!0},r.schema).serialize(H)},sO=(r,g)=>({content:r,cancelled:g}),Ate=(r,g,B)=>{const H=r.dom.create("div",{style:"display:none"},g),re=cE(r,H,B);return sO(re.node.innerHTML,re.isDefaultPrevented())},T4=(r,g,B)=>{const H=lE(r,g,B),re=Cte(r,H.content);return r.hasEventListeners("PastePostProcess")&&!H.isDefaultPrevented()?Ate(r,re,B):sO(re,H.isDefaultPrevented())},Ek=(r,g,B)=>T4(r,g,B),_R=(r,g)=>(r.insertContent(g,{merge:ow(r),paste:!0}),!0),wR=r=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(r),C4=(r,g)=>wR(g)&&de(Y0(r),B=>Sr(g.toLowerCase(),`.${B.toLowerCase()}`)),Mte=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.insertContent('')}),!0),OR=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.execCommand("mceInsertLink",!1,g)}),!0),Ete=(r,g,B)=>!r.selection.isCollapsed()&&wR(g)?OR(r,g,B):!1,wU=(r,g,B)=>C4(r,g)?Mte(r,g,B):!1,OU=(r,g)=>{mo.each([Ete,wU,_R],B=>!B(r,g,_R))},SR=(r,g,B)=>{B||!iw(r)?_R(r,g):OU(r,g)},SU=_U("mceclip"),Pte=r=>{const g=mR();return gU(g,r),pR(g),g},kU=(r,g,B,H,re)=>{const be=Ek(r,g,B);if(!be.cancelled){const Re=be.content,Ke=()=>SR(r,Re,H);re?aO(r,"insertFromPaste",{dataTransfer:Pte(Re)}).isDefaultPrevented()||(Ke(),Ok(r,"insertFromPaste")):Ke()}},Pk=(r,g,B,H)=>{const re=B||yU(g);kU(r,bte(g),re,!1,H)},kR=(r,g,B)=>{const H=r.dom.encode(g).replace(/\r\n/g,` -`),re=le(H,gy(r)),be=_te(re,dc(r),Jf(r));kU(r,be,!1,!0,B)},TR=r=>{const g={};if(r&&r.types)for(let B=0;Bg in r&&r[g].length>0,CR=r=>Uy(r,"text/html")||Uy(r,"text/plain"),Rte=(r,g)=>{const B=g.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return E(B)?r.dom.encode(B[1]):void 0},Lte=(r,g,B,H)=>{const re=SU(),be=Hc(r)&&E(B.name),Re=be?Rte(r,B.name):re,Ke=be?B.name:void 0,ct=g.create(re,B,H,Re,Ke);return g.add(ct),ct},Ite=(r,g)=>{V7(g.uri).each(({data:B,type:H,base64Encoded:re})=>{const be=re?B:btoa(B),Re=g.file,Ke=r.editorUpload.blobCache,ct=Ke.getByData(be,H),kt=ct??Lte(r,Ke,Re,be);Pk(r,``,!1,!0)})},TU=r=>r.type==="paste",AR=r=>Promise.all(ve(r,g=>Xz(g).then(B=>({file:g,uri:B})))),Dte=r=>{const g=Y0(r);return B=>xr(B.type,"image/")&&de(g,H=>Tte(H)===B.type)},CU=(r,g)=>{const B=g.items?$e(Ee(g.items),re=>re.kind==="file"?[re.getAsFile()]:[]):[],H=g.files?Ee(g.files):[];return Te(B.length>0?B:H,Dte(r))},MR=(r,g,B)=>{const H=TU(g)?g.clipboardData:g.dataTransfer;if(Fm(r)&&H){const re=CU(r,H);if(re.length>0)return g.preventDefault(),AR(re).then(be=>{B&&r.selection.setRng(B),ye(be,Re=>{Ite(r,Re)})}),!0}return!1},Bte=r=>{var g,B;return fr.os.isAndroid()&&((B=(g=r.clipboardData)===null||g===void 0?void 0:g.items)===null||B===void 0?void 0:B.length)===0},AU=r=>Fo.metaKeyPressed(r)&&r.keyCode===86||r.shiftKey&&r.keyCode===45,ER=(r,g,B,H,re)=>{let be=xU(B);const Re=Uy(g,N8())||yU(B),Ke=!Re&&xte(be),ct=wR(be);(bR(be)||!be.length||Ke&&!ct)&&(H=!0),(H||ct)&&(Uy(g,"text/plain")&&Ke?be=g["text/plain"]:be=kte(be)),!bR(be)&&(H?kR(r,be,re):Pk(r,be,Re,re))},zte=(r,g,B)=>{let H;const re=()=>g.getLastRng()||r.selection.getRng();r.on("keydown",be=>{AU(be)&&!be.isDefaultPrevented()&&(H=be.shiftKey&&be.keyCode===86)}),r.on("paste",be=>{if(be.isDefaultPrevented()||Bte(be))return;const Re=B.get()==="text"||H;H=!1;const Ke=TR(be.clipboardData);!CR(Ke)&&MR(r,be,re())||(Uy(Ke,"text/html")?(be.preventDefault(),ER(r,Ke,Ke["text/html"],Re,!0)):Uy(Ke,"text/plain")&&Uy(Ke,"text/uri-list")?(be.preventDefault(),ER(r,Ke,Ke["text/plain"],Re,!0)):(g.create(),kg.setEditorTimeout(r,()=>{const ct=g.getHtml();g.remove(),ER(r,Ke,ct,Re,!1)},0)))})},Fte=r=>{const g=re=>xr(re,"webkit-fake-url"),B=re=>xr(re,"data:"),H=re=>{var be;return((be=re.data)===null||be===void 0?void 0:be.paste)===!0};r.parser.addNodeFilter("img",(re,be,Re)=>{if(!Fm(r)&&H(Re))for(const Ke of re){const ct=Ke.attr("src");v(ct)&&!Ke.attr("data-mce-object")&&ct!==fr.transparentSrc&&(g(ct)||!W0(r)&&B(ct))&&Ke.remove()}})},Nte=(r,g,B)=>{zte(r,g,B),Fte(r)},$te=(r,g)=>{g.get()==="text"?(g.set("html"),I3(r,!1)):(g.set("text"),I3(r,!0)),r.focus()},V8=(r,g)=>{r.addCommand("mceTogglePlainTextPaste",()=>{$te(r,g)}),r.addCommand("mceInsertClipboardContent",(B,H)=>{H.html&&Pk(r,H.html,H.internal,!1),H.text&&kR(r,H.text,!1)})},Vte=(r,g,B)=>{if(r)try{return r.clearData(),r.setData("text/html",g),r.setData("text/plain",B),r.setData(N8(),g),!0}catch{return!1}else return!1},PR=(r,g,B,H)=>{Vte(r.clipboardData,g.html,g.text)?(r.preventDefault(),H()):B(g.html,H)},MU=r=>(g,B)=>{const{dom:H,selection:re}=r,be=H.create("div",{contenteditable:"false","data-mce-bogus":"all"}),Re=H.create("div",{contenteditable:"true"},g);H.setStyles(be,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),be.appendChild(Re),H.add(r.getBody(),be);const Ke=re.getRng();Re.focus();const ct=H.createRng();ct.selectNodeContents(Re),re.setRng(ct),kg.setEditorTimeout(r,()=>{re.setRng(Ke),H.remove(be),B()},0)},EU=r=>({html:yte(r.selection.getContent({contextual:!0})),text:r.selection.getContent({format:"text"})}),PU=r=>!!r.dom.getParent(r.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",r.getBody()),RR=r=>!r.selection.isCollapsed()||PU(r),Ute=r=>g=>{!g.isDefaultPrevented()&&RR(r)&&r.selection.isEditable()&&PR(g,EU(r),MU(r),()=>{if(fr.browser.isChromium()||fr.browser.isFirefox()){const B=r.selection.getRng();kg.setEditorTimeout(r,()=>{r.selection.setRng(B),r.execCommand("Delete")},0)}else r.execCommand("Delete")})},jte=r=>g=>{!g.isDefaultPrevented()&&RR(r)&&PR(g,EU(r),MU(r),k)},Qte=r=>{r.on("cut",Ute(r)),r.on("copy",jte(r))},RU=(r,g)=>{var B,H;return To.getCaretRangeFromPoint((B=g.clientX)!==null&&B!==void 0?B:0,(H=g.clientY)!==null&&H!==void 0?H:0,r.getDoc())},Hte=r=>{const g=r["text/plain"];return g?g.indexOf("file://")===0:!1},LR=(r,g)=>{r.focus(),g&&r.selection.setRng(g)},Zte=r=>de(r.files,g=>/^image\//.test(g.type)),qte=(r,g,B,H)=>{const re=r.getParent(B,Re=>xm(g,Re));if(!x(r.getParent(B,"summary")))return!0;if(re&&_t(H,"text/html")){const Re=new DOMParser().parseFromString(H["text/html"],"text/html").body;return!x(Re.querySelector(re.nodeName.toLowerCase()))}else return!1},Wte=r=>{r.on("input",g=>{const B=H=>x(H.querySelector("summary"));if(g.inputType==="deleteByDrag"){const H=Te(r.dom.select("details"),B);ye(H,re=>{On(re.firstChild)&&re.firstChild.remove();const be=r.dom.create("summary");be.appendChild(F1().dom),re.prepend(be)})}})},Yte=(r,g)=>{n2(r)&&r.on("dragend dragover draggesture dragdrop drop drag",B=>{B.preventDefault(),B.stopPropagation()}),Fm(r)||r.on("drop",B=>{const H=B.dataTransfer;H&&Zte(H)&&B.preventDefault()}),r.on("drop",B=>{if(B.isDefaultPrevented())return;const H=RU(r,B);if(T(H))return;const re=TR(B.dataTransfer),be=Uy(re,N8());if((!CR(re)||Hte(re))&&MR(r,B,H))return;const Re=re[N8()],Ke=Re||re["text/html"]||re["text/plain"],ct=qte(r.dom,r.schema,H.startContainer,re),kt=g.get();kt&&!ct||Ke&&(B.preventDefault(),kg.setEditorTimeout(r,()=>{r.undoManager.transact(()=>{(Re||kt&&ct)&&r.execCommand("Delete"),LR(r,H);const Wt=xU(Ke);re["text/html"]?Pk(r,Wt,be,!0):kR(r,Wt,!0)})}))}),r.on("dragstart",B=>{g.set(!0)}),r.on("dragover dragend",B=>{Fm(r)&&!g.get()&&(B.preventDefault(),LR(r,RU(r,B))),B.type==="dragend"&&g.set(!1)}),Wte(r)},Xte=r=>{const g=re=>be=>{re(r,be)},B=q0(r);C(B)&&r.on("PastePreProcess",g(B));const H=tv(r);C(H)&&r.on("PastePostProcess",g(H))},Gte=(r,g)=>{r.on("PastePreProcess",B=>{B.content=g(r,B.content,B.internal)})},Kte=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,LU=r=>mo.trim(r).replace(Kte,Am).toLowerCase(),IU=(r,g,B)=>{const H=rv(r);if(B||H==="all"||!t3(r))return g;const re=H?H.split(/[, ]/):[];if(re&&H!=="none"){const be=r.dom,Re=r.selection.getNode();g=g.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(Ke,ct,kt,Wt)=>{const Jt=be.parseStyle(be.decode(kt)),ln={};for(let Vn=0;Vn]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return g=g.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(be,Re,Ke,ct)=>Re+' style="'+Ke+'"'+ct),g},DU=r=>{(fr.browser.isChromium()||fr.browser.isSafari())&&Gte(r,IU)},Jte=r=>{const g=mr(!1),B=mr(aw(r)?"text":"html"),H=xR(r);DU(r),V8(r,B),Xte(r),r.addQueryStateHandler("mceTogglePlainTextPaste",()=>B.get()==="text"),r.on("PreInit",()=>{Qte(r),Yte(r,g),Nte(r,H,B)})},ene=r=>{r.on("click",g=>{r.dom.getParent(g.target,"details")&&g.preventDefault()})},tne=r=>{r.parser.addNodeFilter("details",g=>{const B=r3(r);ye(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})}),r.serializer.addNodeFilter("details",g=>{const B=o3(r);ye(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})})},nne=r=>{ene(r),tne(r)},rne=On,BU=Nt,one=r=>rr(r.dom),U8=r=>Sn(r.dom),IR=r=>g=>Fa(sr.fromDom(r),g),ine=(r,g,B)=>Ya(sr.fromDom(r),H=>U8(H)||B.isBlock(sa(H)),IR(g)).getOr(sr.fromDom(g)).dom,DR=(r,g)=>Ya(sr.fromDom(r),one,IR(g)),BR=(r,g,B)=>{const H=new kc(r,g),re=B?H.next.bind(H):H.prev.bind(H);let be=r;for(let Re=B?r:re();Re&&!rne(Re);Re=re())ih(Re)&&(be=Re);return be},zR=(r,g,B)=>{const re=qr.fromRangeStart(r).getNode(),be=ine(re,g,B),Re=BR(re,be,!1),Ke=BR(re,be,!0),ct=document.createRange();return DR(Re,be).fold(()=>{BU(Re)?ct.setStart(Re,0):ct.setStartBefore(Re)},kt=>ct.setStartBefore(kt.dom)),DR(Ke,be).fold(()=>{BU(Ke)?ct.setEnd(Ke,Ke.data.length):ct.setEndAfter(Ke)},kt=>ct.setEndAfter(kt.dom)),ct},ane=r=>{const g=zR(r.selection.getRng(),r.getBody(),r.schema);r.selection.setRng(Wl(g))},zU=r=>{r.on("mousedown",g=>{g.detail>=3&&(g.preventDefault(),ane(r))})};var A4;(function(r){r.Before="before",r.After="after"})(A4||(A4={}));const FU=(r,g)=>Math.abs(r.left-g),sne=(r,g)=>Math.abs(r.right-g),NU=(r,g)=>r>=g.top&&r<=g.bottom,lne=(r,g)=>r.topg.top,cne=(r,g)=>{const B=OS(r,g)/Math.min(r.height,g.height);return lne(r,g)&&B>.5},une=(r,g)=>{const B=Te(r,H=>NU(g,H));return Dl(B).fold(()=>[[],r],H=>{const{pass:re,fail:be}=Se(r,Re=>cne(Re,H));return[re,be]})},Rk=(r,g)=>({node:r.node,position:FU(r,g)g>r.left&&g{const re=Jt=>ih(Jt.node)?Y.some(Jt):ne(Jt.node)?FR(Ee(Jt.node.childNodes),g,B,!1):Y.none(),be=(Jt,ln,kn)=>re(ln).filter(Vn=>Math.abs(kn(Jt,g,B)-kn(Vn,g,B))<2&&Nt(Vn.node)),Re=(Jt,ln)=>{const kn=Ue(Jt,(Vn,Rn)=>ln(Vn,g,B)-ln(Rn,g,B));return Ne(kn,re).map(Vn=>H&&!Nt(Vn.node)&&kn.length>1?be(Vn,kn[1],ln).getOr(Vn):Vn)},[Ke,ct]=une(GP(r),B),{pass:kt,fail:Wt}=Se(ct,Jt=>Jt.topRe(Wt,Ol)).orThunk(()=>Re(kt,Ol))},$U=(r,g,B,H)=>{const re=(be,Re)=>{const Ke=kt=>ne(kt)&&kt.classList.contains("mce-drag-container"),ct=Te(be.dom.childNodes,X(Ke));return Re.fold(()=>FR(ct,B,H,!0),kt=>{const Wt=Te(ct,Jt=>Jt!==kt.dom);return FR(Wt,B,H,!0)}).orThunk(()=>(Fa(be,r)?Y.none():Lp(be)).bind(Wt=>re(Wt,Y.some(be))))};return re(g,Y.none())},dne=(r,g,B)=>{const H=sr.fromDom(r),re=Bc(H),Re=sr.fromPoint(re,g,B).filter(Ke=>Qu(H,Ke)).getOr(H);return $U(H,Re,g,B)},VU=(r,g,B)=>dne(r,g,B).filter(H=>iv(H.node)).map(H=>Rk(H,g)),UU=r=>{var g,B;const H=r.getBoundingClientRect(),re=r.ownerDocument,be=re.documentElement,Re=re.defaultView;return{top:H.top+((g=Re==null?void 0:Re.scrollY)!==null&&g!==void 0?g:0)-be.clientTop,left:H.left+((B=Re==null?void 0:Re.scrollX)!==null&&B!==void 0?B:0)-be.clientLeft}},hne=r=>r.inline?UU(r.getBody()):{left:0,top:0},pne=r=>{const g=r.getBody();return r.inline?{left:g.scrollLeft,top:g.scrollTop}:{left:0,top:0}},j8=r=>{const g=r.getBody(),B=r.getDoc().documentElement,H={left:g.scrollLeft,top:g.scrollTop},re={left:g.scrollLeft||B.scrollLeft,top:g.scrollTop||B.scrollTop};return r.inline?H:re},jU=(r,g)=>{if(g.target.ownerDocument!==r.getDoc()){const B=UU(r.getContentAreaContainer()),H=j8(r);return{left:g.pageX-B.left+H.left,top:g.pageY-B.top+H.top}}return{left:g.pageX,top:g.pageY}},QU=(r,g,B)=>({pageX:B.left-r.left+g.left,pageY:B.top-r.top+g.top}),mne=(r,g)=>QU(hne(r),pne(r),jU(r,g)),HU=r=>({target:r,srcElement:r}),gne=(r,g,B,H)=>({...g,dataTransfer:H,type:r,...HU(B)}),Tfe=(r,g,B)=>{const H=te("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:r,composedPath:H,initEvent:H,preventDefault:k,stopImmediatePropagation:k,stopPropagation:k,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:H,initMouseEvent:H,getModifierState:H,dataTransfer:B,...HU(g)}},vne=(r,g)=>{const B=gte(r);return g==="dragstart"?(fU(B),hU(B)):g==="drop"?(cte(B),pR(B)):(ute(B),pU(B)),B},ZU=(r,g,B,H)=>{const re=vne(B,r);return M(H)?Tfe(r,g,re):gne(r,H,g,re)},M4=32,Q8=100,H8=8,Z8=16,NR=rr,yne=X_(NR,Sn),$R=(r,g,B)=>NR(B)&&B!==g&&r.isEditable(B.parentElement),qU=(r,g,B)=>T(g)||g===B||r.dom.isChildOf(g,B)?!1:r.dom.isEditable(g),bne=(r,g,B,H)=>{const re=r.dom,be=g.cloneNode(!0);re.setStyles(be,{width:B,height:H}),re.setAttrib(be,"data-mce-selected",null);const Re=re.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return re.setStyles(Re,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:B,height:H}),re.setStyles(be,{margin:0,boxSizing:"border-box"}),Re.appendChild(be),Re},xne=(r,g)=>{r.parentNode!==g&&g.appendChild(r)},Lk=(r,g)=>B=>()=>{const H=r==="left"?B.scrollX:B.scrollY;B.scroll({[r]:H+g,behavior:"smooth"})},WU=Lk("left",-M4),_ne=Lk("left",M4),YU=Lk("top",-M4),XU=Lk("top",M4),wne=(r,g,B,H,re,be,Re,Ke,ct,kt,Wt,Jt)=>{let ln=0,kn=0;r.style.left=g.pageX+"px",r.style.top=g.pageY+"px",g.pageX+B>re&&(ln=g.pageX+B-re),g.pageY+H>be&&(kn=g.pageY+H-be),r.style.width=B-ln+"px",r.style.height=H-kn+"px";const Vn=ct.clientHeight,Rn=ct.clientWidth,qn=Re+ct.getBoundingClientRect().top,pr=Ke+ct.getBoundingClientRect().left;Wt.on(Tr=>{Tr.intervalId.clear(),Tr.dragging&&Jt&&(Re+H8>=Vn?Tr.intervalId.set(XU(kt)):Re-H8<=0?Tr.intervalId.set(YU(kt)):Ke+H8>=Rn?Tr.intervalId.set(_ne(kt)):Ke-H8<=0?Tr.intervalId.set(WU(kt)):qn+Z8>=window.innerHeight?Tr.intervalId.set(XU(window)):qn-Z8<=0?Tr.intervalId.set(YU(window)):pr+Z8>=window.innerWidth?Tr.intervalId.set(_ne(window)):pr-Z8<=0&&Tr.intervalId.set(WU(window)))})},VR=r=>{r&&r.parentNode&&r.parentNode.removeChild(r)},One=(r,g)=>{const B=r.getParent(g.parentNode,r.isBlock);VR(g),B&&B!==r.getRoot()&&r.isEmpty(B)&&rh(sr.fromDom(B))},GU=r=>r.button===0,Sne=(r,g)=>({pageX:g.pageX-r.relX,pageY:g.pageY+5}),kne=(r,g)=>B=>{if(GU(B)){const H=De(g.dom.getParents(B.target),yne).getOr(null);if(E(H)&&$R(g.dom,g.getBody(),H)){const re=g.dom.getPos(H),be=g.getBody(),Re=g.getDoc().documentElement;r.set({element:H,dataTransfer:mR(),dragging:!1,screenX:B.screenX,screenY:B.screenY,maxX:(g.inline?be.scrollWidth:Re.offsetWidth)-2,maxY:(g.inline?be.scrollHeight:Re.offsetHeight)-2,relX:B.pageX-re.x,relY:B.pageY-re.y,width:H.offsetWidth,height:H.offsetHeight,ghost:bne(g,H,H.offsetWidth,H.offsetHeight),intervalId:Pl(Q8)})}}},Tne=(r,g,B)=>{r._selectionOverrides.hideFakeCaret(),VU(r.getBody(),g,B).fold(()=>r.selection.placeCaretAt(g,B),H=>{const re=r._selectionOverrides.showCaret(1,H.node,H.position===A4.Before,!1);re?r.selection.setRng(re):r.selection.placeCaretAt(g,B)})},Ik=(r,g,B,H,re)=>{g==="dragstart"&&gU(H,r.dom.getOuterHTML(B));const be=ZU(g,B,H,re);return r.dispatch(g,be)},Cne=(r,g)=>{const B=dg((re,be)=>Tne(g,re,be),0);g.on("remove",B.cancel);const H=r;return re=>r.on(be=>{const Re=Math.max(Math.abs(re.screenX-be.screenX),Math.abs(re.screenY-be.screenY));if(!be.dragging&&Re>10){const Ke=Ik(g,"dragstart",be.element,be.dataTransfer,re);if(E(Ke.dataTransfer)&&(be.dataTransfer=Ke.dataTransfer),Ke.isDefaultPrevented())return;be.dragging=!0,g.focus()}if(be.dragging){const Ke=re.currentTarget===g.getDoc().documentElement,ct=Sne(be,mne(g,re));xne(be.ghost,g.getBody()),wne(be.ghost,ct,be.width,be.height,be.maxX,be.maxY,re.clientY,re.clientX,g.getContentAreaContainer(),g.getWin(),H,Ke),B.throttle(re.clientX,re.clientY)}})},KU=r=>{const g=r.getSel();if(E(g)){const H=g.getRangeAt(0).startContainer;return Nt(H)?H.parentNode:H}else return null},Cfe=(r,g)=>B=>{r.on(H=>{var re;if(H.intervalId.clear(),H.dragging){if(qU(g,KU(g.selection),H.element)){const be=(re=g.getDoc().elementFromPoint(B.clientX,B.clientY))!==null&&re!==void 0?re:g.getBody();Ik(g,"drop",be,H.dataTransfer,B).isDefaultPrevented()||g.undoManager.transact(()=>{One(g.dom,H.element),vte(H.dataTransfer).each(Ke=>g.insertContent(Ke)),g._selectionOverrides.hideFakeCaret()})}Ik(g,"dragend",g.getBody(),H.dataTransfer,B)}}),tj(r)},JU=(r,g,B)=>{r.on(H=>{H.intervalId.clear(),H.dragging&&B.fold(()=>Ik(g,"dragend",H.element,H.dataTransfer),re=>Ik(g,"dragend",H.element,H.dataTransfer,re))}),tj(r)},ej=(r,g)=>B=>JU(r,g,Y.some(B)),tj=r=>{r.on(g=>{g.intervalId.clear(),VR(g.ghost)}),r.clear()},UR=r=>{const g=Ys(),B=Nl.DOM,H=document,re=kne(g,r),be=Cne(g,r),Re=Cfe(g,r),Ke=ej(g,r);r.on("mousedown",re),r.on("mousemove",be),r.on("mouseup",Re),B.bind(H,"mousemove",be),B.bind(H,"mouseup",Ke),r.on("remove",()=>{B.unbind(H,"mousemove",be),B.unbind(H,"mouseup",Ke)}),r.on("keydown",ct=>{ct.keyCode===Fo.ESC&&JU(g,r,Y.none())})},Ane=r=>{const g=re=>{if(!re.isDefaultPrevented()){const be=re.dataTransfer;be&&(ce(be.types,"Files")||be.files.length>0)&&(re.preventDefault(),re.type==="drop"&&RC(r,"Dropped file type is not supported"))}},B=re=>{b6(r,re.target)&&g(re)},H=()=>{const re=Nl.DOM,be=r.dom,Re=document,Ke=r.inline?r.getBody():r.getDoc(),ct=["drop","dragover"];ye(ct,kt=>{re.bind(Re,kt,B),be.bind(Ke,kt,g)}),r.on("remove",()=>{ye(ct,kt=>{re.unbind(Re,kt,B),be.unbind(Ke,kt,g)})})};r.on("init",()=>{kg.setEditorTimeout(r,H,0)})},Mne=r=>{UR(r),my(r)&&Ane(r)},Ene=r=>{const g=dg(()=>{if(!r.removed&&r.getBody().contains(document.activeElement)){const B=r.selection.getRng();if(B.collapsed){const H=VC(r,B,!1);r.selection.setRng(H)}}},0);r.on("focus",()=>{g.throttle()}),r.on("blur",()=>{g.cancel()})},nj=r=>{r.on("init",()=>{r.on("focusin",g=>{const B=g.target;if(Zr(B)){const H=Gb(r.getBody(),B),re=rr(H)?H:B;r.selection.getNode()!==re&&d4(r,re).each(be=>r.selection.setRng(be))}})})},V2=rr,jR=(r,g)=>Gb(r.getBody(),g),rj=r=>{const g=r.selection,B=r.dom,H=r.getBody(),re=PT(r,H,B.isBlock,()=>Mw(r)),be="sel-"+B.uniqueId(),Re="data-mce-selected";let Ke;const ct=di=>E(di)&&B.hasClass(di,"mce-offscreen-selection"),kt=di=>di!==H&&(V2(di)||Zr(di))&&B.isChildOf(di,H)&&B.isEditable(di.parentNode),Wt=di=>{di&&g.setRng(di)},Jt=(di,lo,eo,xo=!0)=>r.dispatch("ShowCaret",{target:lo,direction:di,before:eo}).isDefaultPrevented()?null:(xo&&g.scrollIntoView(lo,di===-1),re.show(eo,lo)),ln=di=>{di.hasAttribute("data-mce-caret")&&(Ra(di),g.scrollIntoView(di))},kn=()=>{r.on("click",lo=>{B.isEditable(lo.target)||(lo.preventDefault(),r.focus())}),r.on("blur NewBlock",Ur),r.on("ResizeWindow FullscreenStateChanged",re.reposition),r.on("tap",lo=>{const eo=lo.target,xo=jR(r,eo);V2(xo)?(lo.preventDefault(),d4(r,xo).each(wr)):kt(eo)&&d4(r,eo).each(wr)},!0),r.on("mousedown",lo=>{const eo=lo.target;if(eo!==H&&eo.nodeName!=="HTML"&&!B.isChildOf(eo,H)||!cG(r,lo.clientX,lo.clientY))return;Ur(),jo();const xo=jR(r,eo);V2(xo)?(lo.preventDefault(),d4(r,xo).each(wr)):VU(H,lo.clientX,lo.clientY).each(bi=>{lo.preventDefault();const Bi=Jt(1,bi.node,bi.position===A4.Before,!1);Wt(Bi),ge(xo)?xo.focus():r.getBody().focus()})}),r.on("keypress",lo=>{Fo.modifierPressed(lo)||V2(g.getNode())&&lo.preventDefault()}),r.on("GetSelectionRange",lo=>{let eo=lo.range;if(Ke){if(!Ke.parentNode){Ke=null;return}eo=eo.cloneRange(),eo.selectNode(Ke),lo.range=eo}}),r.on("SetSelectionRange",lo=>{lo.range=qn(lo.range);const eo=wr(lo.range,lo.forward);eo&&(lo.range=eo)});const di=lo=>ne(lo)&&lo.id==="mcepastebin";r.on("AfterSetSelectionRange",lo=>{const eo=lo.range,xo=eo.startContainer.parentElement;!Rn(eo)&&!di(xo)&&jo(),ct(xo)||Ur()}),Mne(r),Ene(r),nj(r)},Vn=di=>Ch(di)||U0(di)||jp(di),Rn=di=>Vn(di.startContainer)||Vn(di.endContainer),qn=di=>{const lo=r.schema.getVoidElements(),eo=B.createRng(),xo=di.startContainer,bi=di.startOffset,Bi=di.endContainer,$a=di.endOffset;return _t(lo,xo.nodeName.toLowerCase())?bi===0?eo.setStartBefore(xo):eo.setStartAfter(xo):eo.setStart(xo,bi),_t(lo,Bi.nodeName.toLowerCase())?$a===0?eo.setEndBefore(Bi):eo.setEndAfter(Bi):eo.setEnd(Bi,$a),eo},pr=(di,lo)=>{const eo=sr.fromDom(r.getBody()),xo=r.getDoc(),bi=xi(eo,"#"+be).getOrThunk(()=>{const Ia=sr.fromHtml('
    ',xo);return Es(Ia,"id",be),Ps(eo,Ia),Ia}),Bi=B.createRng();gu(bi),mu(bi,[sr.fromText(Ea,xo),sr.fromDom(lo),sr.fromText(Ea,xo)]),Bi.setStart(bi.dom.firstChild,1),Bi.setEnd(bi.dom.lastChild,0),Hi(bi,{top:B.getPos(di,r.getBody()).y+"px"}),F3(bi);const $a=g.getSel();return $a&&($a.removeAllRanges(),$a.addRange(Bi)),Bi},Tr=di=>{const lo=di.cloneNode(!0),eo=r.dispatch("ObjectSelected",{target:di,targetClone:lo});if(eo.isDefaultPrevented())return null;const xo=pr(di,eo.targetClone),bi=sr.fromDom(di);return ye(Zl(sr.fromDom(r.getBody()),`*[${Re}]`),Bi=>{Fa(bi,Bi)||gc(Bi,Re)}),B.getAttrib(di,Re)||di.setAttribute(Re,"1"),Ke=di,jo(),xo},wr=(di,lo)=>{if(!di)return null;if(di.collapsed){if(!Rn(di)){const Bi=lo?1:-1,$a=zb(Bi,H,di),Ia=$a.getNode(!lo);if(E(Ia)){if(iv(Ia))return Jt(Bi,Ia,lo?!$a.isAtEnd():!1,!1);if(oh(Ia)&&rr(Ia.nextSibling)){const sl=B.createRng();return sl.setStart(Ia,0),sl.setEnd(Ia,0),sl}}const Us=$a.getNode(lo);if(E(Us)){if(iv(Us))return Jt(Bi,Us,lo?!1:!$a.isAtEnd(),!1);if(oh(Us)&&rr(Us.previousSibling)){const sl=B.createRng();return sl.setStart(Us,1),sl.setEnd(Us,1),sl}}}return null}let eo=di.startContainer,xo=di.startOffset;const bi=di.endOffset;if(Nt(eo)&&xo===0&&V2(eo.parentNode)&&(eo=eo.parentNode,xo=B.nodeIndex(eo),eo=eo.parentNode),!ne(eo))return null;if(bi===xo+1&&eo===di.endContainer){const Bi=eo.childNodes[xo];if(kt(Bi))return Tr(Bi)}return null},Ur=()=>{Ke&&Ke.removeAttribute(Re),xi(sr.fromDom(r.getBody()),"#"+be).each(ja),Ke=null},wo=()=>{re.destroy(),Ke=null},jo=()=>{re.hide()};return Iy(r)||kn(),{showCaret:Jt,showBlockCaretContainer:ln,hideFakeCaret:jo,destroy:wo}},Pne=(r,g)=>{let B=g;for(let H=r.previousSibling;Nt(H);H=H.previousSibling)B+=H.data.length;return B},oj=(r,g,B,H,re)=>{if(Nt(B)&&(H<0||H>B.data.length))return[];const be=re&&Nt(B)?[Pne(B,H)]:[H];let Re=B;for(;Re!==g&&Re.parentNode;)be.push(r.nodeIndex(Re,re)),Re=Re.parentNode;return Re===g?be.reverse():[]},q8=(r,g,B,H,re,be,Re=!1)=>{const Ke=oj(r,g,B,H,Re),ct=oj(r,g,re,be,Re);return{start:Ke,end:ct}},ij=(r,g)=>{const B=g.slice(),H=B.pop();return L(H)?Ie(B,(be,Re)=>be.bind(Ke=>Y.from(Ke.childNodes[Re])),Y.some(r)).bind(be=>Nt(be)&&(H<0||H>be.data.length)?Y.none():Y.some({node:be,offset:H})):Y.none()},aj=(r,g)=>ij(r,g.start).bind(({node:B,offset:H})=>ij(r,g.end).map(({node:re,offset:be})=>{const Re=document.createRange();return Re.setStart(B,H),Re.setEnd(re,be),Re})),Rne=(r,g,B,H=!1)=>q8(r,g,B.startContainer,B.startOffset,B.endContainer,B.endOffset,H),U2=(r,g,B)=>{if(g&&r.isEmpty(g)&&!B(g)){const H=g.parentNode;r.remove(g,Nt(g.firstChild)&&Sf(g.firstChild.data)),U2(r,H,B)}},W8=(r,g,B,H=!0)=>{const re=g.startContainer.parentNode,be=g.endContainer.parentNode;g.deleteContents(),H&&!B(g.startContainer)&&(Nt(g.startContainer)&&g.startContainer.data.length===0&&r.remove(g.startContainer),Nt(g.endContainer)&&g.endContainer.data.length===0&&r.remove(g.endContainer),U2(r,re,B),re!==be&&U2(r,be,B))},Y8=(r,g)=>Y.from(r.dom.getParent(g.startContainer,r.dom.isBlock)),QR=(r,g,B)=>{const H=r.dynamicPatternsLookup({text:B,block:g});return{...r,blockPatterns:Vc(H).concat(r.blockPatterns),inlinePatterns:pl(H).concat(r.inlinePatterns)}},HR=(r,g,B,H)=>{const re=r.createRng();return re.setStart(g,0),re.setEnd(B,H),re.toString()},sj=(r,g)=>r.create("span",{"data-mce-type":"bookmark",id:g}),X8=(r,g)=>{const B=r.createRng();return B.setStartAfter(g.start),B.setEndBefore(g.end),B},ZR=(r,g,B)=>{const H=aj(r.getRoot(),B).getOrDie("Unable to resolve path range"),re=H.startContainer,be=H.endContainer,Re=H.endOffset===0?be:be.splitText(H.endOffset),Ke=H.startOffset===0?re:re.splitText(H.startOffset),ct=Ke.parentNode,kt=Re.parentNode;return{prefix:g,end:kt.insertBefore(sj(r,g+"-end"),Re),start:ct.insertBefore(sj(r,g+"-start"),Ke)}},qR=(r,g,B)=>{U2(r,r.get(g.prefix+"-end"),B),U2(r,r.get(g.prefix+"-start"),B)},Dk=r=>r.start.length===0,WR=r=>(g,B)=>{const re=g.data.substring(0,B),be=re.lastIndexOf(r.charAt(r.length-1)),Re=re.lastIndexOf(r);return Re!==-1?Re+r.length:be!==-1?be+1:-1},lj=(r,g,B,H)=>{const re=g.start;return C9(r,H.container,H.offset,WR(re),B).bind(Re=>{var Ke,ct;const kt=(ct=(Ke=B.textContent)===null||Ke===void 0?void 0:Ke.indexOf(re))!==null&&ct!==void 0?ct:-1;if(kt!==-1&&Re.offset>=kt+re.length){const Jt=r.createRng();return Jt.setStart(Re.container,Re.offset-re.length),Jt.setEnd(Re.container,Re.offset),Y.some(Jt)}else{const Jt=Re.offset-re.length;return T9(Re.container,Jt,B).map(ln=>{const kn=r.createRng();return kn.setStart(ln.container,ln.offset),kn.setEnd(Re.container,Re.offset),kn}).filter(ln=>ln.toString()===re).orThunk(()=>lj(r,g,B,wv(Re.container,0)))}})},YR=(r,g,B,H,re,be=!1)=>{if(g.start.length===0&&!be){const Re=r.createRng();return Re.setStart(B,H),Re.setEnd(B,H),Y.some(Re)}return k9(B,H,re).bind(Re=>lj(r,g,re,Re).bind(ct=>{var kt;if(be){if(ct.endContainer===Re.container&&ct.endOffset===Re.offset)return Y.none();if(Re.offset===0&&((kt=ct.endContainer.textContent)===null||kt===void 0?void 0:kt.length)===ct.endOffset)return Y.none()}return Y.some(ct)}))},Lne=(r,g,B,H)=>{const re=r.dom,be=re.getRoot(),Re=B.pattern,Ke=B.position.container,ct=B.position.offset;return T9(Ke,ct-B.pattern.end.length,g).bind(kt=>{const Wt=q8(re,be,kt.container,kt.offset,Ke,ct,H);if(Dk(Re))return Y.some({matches:[{pattern:Re,startRng:Wt,endRng:Wt}],position:kt});{const Jt=G8(r,B.remainingPatterns,kt.container,kt.offset,g,H),ln=Jt.getOr({matches:[],position:kt}),kn=ln.position;return YR(re,Re,kn.container,kn.offset,g,Jt.isNone()).map(Rn=>{const qn=Rne(re,be,Rn,H);return{matches:ln.matches.concat([{pattern:Re,startRng:qn,endRng:Wt}]),position:wv(Rn.startContainer,Rn.startOffset)}})}})},G8=(r,g,B,H,re,be)=>{const Re=r.dom;return k9(B,H,Re.getRoot()).bind(Ke=>{const ct=HR(Re,re,B,H);for(let kt=0;kt0)return G8(r,g,B,H-1,re,be);if(ln.isSome())return ln}return Y.none()})},XR=(r,g,B)=>{r.selection.setRng(B),g.type==="inline-format"?ye(g.format,H=>{r.formatter.apply(H)}):r.execCommand(g.cmd,!1,g.value)},Ine=(r,g,B,H)=>{const re=X8(r.dom,B);W8(r.dom,re,H),XR(r,g,re)},Dne=(r,g,B,H,re)=>{const be=r.dom,Re=X8(be,H),Ke=X8(be,B);W8(be,Ke,re),W8(be,Re,re);const ct={prefix:B.prefix,start:B.end,end:H.start},kt=X8(be,ct);XR(r,g,kt)},Bne=(r,g)=>{const B=L1("mce_textpattern"),H=Pe(g,(re,be)=>{const Re=ZR(r,B+`_end${re.length}`,be.endRng);return re.concat([{...be,endMarker:Re}])},[]);return Pe(H,(re,be)=>{const Re=H.length-re.length-1,Ke=Dk(be.pattern)?be.endMarker:ZR(r,B+`_start${Re}`,be.startRng);return re.concat([{...be,startMarker:Ke}])},[])},zne=r=>Ue(r,(g,B)=>B.end.length-g.end.length),Fne=(r,g)=>{const B=Oe(r,H=>de(g,re=>H.pattern.start===re.pattern.start&&H.pattern.end===re.pattern.end));return r.length===g.length?B?r:g:r.length>g.length?r:g},cj=(r,g,B,H,re,be)=>{const Re=G8(r,re.inlinePatterns,B,H,g,be).fold(()=>[],ct=>ct.matches),Ke=G8(r,zne(re.inlinePatterns),B,H,g,be).fold(()=>[],ct=>ct.matches);return Fne(Re,Ke)},uj=(r,g)=>{if(g.length===0)return;const B=r.dom,H=r.selection.getBookmark(),re=Bne(B,g);ye(re,be=>{const Re=B.getParent(be.startMarker.start,B.isBlock),Ke=ct=>ct===Re;Dk(be.pattern)?Ine(r,be.pattern,be.endMarker,Ke):Dne(r,be.pattern,be.startMarker,be.endMarker,Ke),qR(B,be.endMarker,Ke),qR(B,be.startMarker,Ke)}),r.selection.moveToBookmark(H)},GR=(r,g,B)=>OJ(g,0,g).map(H=>{const re=H.container;return f8(re,B.start.length,g).each(be=>{const Re=r.createRng();Re.setStart(re,0),Re.setEnd(be.container,be.offset),W8(r,Re,Ke=>Ke===g)}),re}),fj=r=>(g,B)=>{const H=g.dom,re=B.pattern,be=aj(H.getRoot(),B.range).getOrDie("Unable to resolve path range"),Re=(Ke,ct)=>{const kt=ct.get(Ke);return A(kt)&&Xe(kt).exists(Wt=>_t(Wt,"block"))};return Y8(g,be).each(Ke=>{re.type==="block-format"?Re(re.format,g.formatter)&&g.undoManager.transact(()=>{r(g.dom,Ke,re),g.formatter.apply(re.format)}):re.type==="block-command"&&g.undoManager.transact(()=>{r(g.dom,Ke,re),g.execCommand(re.cmd,!1,re.value)})}),!0},KR=r=>Ue(r,(g,B)=>B.start.length-g.start.length),dj=r=>(g,B)=>{const H=KR(g),re=B.replace(Ea," ");return De(H,be=>r(be,B,re))},hj=(r,g)=>(B,H,re,be,Re)=>{var Ke;Re===void 0&&(Re=(Ke=H.textContent)!==null&&Ke!==void 0?Ke:"");const ct=B.dom,kt=dc(B);return ct.is(H,kt)?r(re.blockPatterns,Re).map(Wt=>g&&mo.trim(Re).length===Wt.start.length?[]:[{pattern:Wt,range:q8(ct,ct.getRoot(),H,0,H,0,be)}]).getOr([]):[]},Nne=r=>/^\s[^\s]/.test(r),$ne=fj((r,g,B)=>{GR(r,g,B).each(H=>{const re=sr.fromDom(H),be=ry(re);Nne(be)&&Vx(re,be.slice(1))})}),Vne=dj((r,g,B)=>g.indexOf(r.start)===0||B.indexOf(r.start)===0),K8=hj(Vne,!0),Une=(r,g)=>{const B=r.selection.getRng();return Y8(r,B).map(H=>{var re;const be=Math.max(0,B.startOffset),Re=QR(g,H,(re=H.textContent)!==null&&re!==void 0?re:""),Ke=cj(r,H,B.startContainer,be,Re,!0),ct=K8(r,H,Re,!0);return{inlineMatches:Ke,blockMatches:ct}}).filter(({inlineMatches:H,blockMatches:re})=>re.length>0||H.length>0)},jne=(r,g)=>{if(g.length===0)return;const B=r.selection.getBookmark();ye(g,H=>$ne(r,H)),r.selection.moveToBookmark(B)},Qne=fj(GR),Hne=dj((r,g,B)=>g===r.start||B===r.start),Zne=hj(Hne,!1),qne=(r,g)=>{const B=r.selection.getRng();return Y8(r,B).map(H=>{const re=Math.max(0,B.startOffset),be=HR(r.dom,H,B.startContainer,re),Re=QR(g,H,be);return Zne(r,H,Re,!1,be)}).filter(H=>H.length>0)},Wne=(r,g)=>{ye(g,B=>Qne(r,B))},Yne=(r,g)=>Une(r,g).fold(oe,({inlineMatches:B,blockMatches:H})=>(r.undoManager.add(),r.undoManager.extra(()=>{r.execCommand("mceInsertNewLine")},()=>{wS(r),uj(r,B),jne(r,H);const re=r.selection.getRng(),be=k9(re.startContainer,re.startOffset,r.dom.getRoot());r.execCommand("mceInsertNewLine"),be.each(Re=>{const Ke=Re.container;Ke.data.charAt(Re.offset-1)===Iu&&(Ke.deleteData(Re.offset-1,1),U2(r.dom,Ke.parentNode,ct=>ct===r.dom.getRoot()))})}),!0)),Xne=(r,g)=>{const B=r.selection.getRng();Y8(r,B).map(H=>{const re=Math.max(0,B.startOffset-1),be=HR(r.dom,H,B.startContainer,re),Re=QR(g,H,be),Ke=cj(r,H,B.startContainer,re,Re,!1);Ke.length>0&&r.undoManager.transact(()=>{uj(r,Ke)})})},pj=(r,g)=>qne(r,g).fold(oe,B=>(r.undoManager.transact(()=>{Wne(r,B)}),!0)),mj=(r,g,B)=>{for(let H=0;Hmj(r,g,(B,H)=>B===H.keyCode&&!Fo.modifierPressed(H)),Gne=(r,g)=>mj(r,g,(B,H)=>B.charCodeAt(0)===H.charCode),Kne=r=>{const g=[",",".",";",":","!","?"],B=[32],H=()=>Uc(wg(r),n3(r)),re=()=>Og(r);r.on("keydown",Re=>{if(Re.keyCode===13&&!Fo.modifierPressed(Re)&&r.selection.isCollapsed()){const Ke=_u(H(),"enter");(Ke.inlinePatterns.length>0||Ke.blockPatterns.length>0||re())&&Yne(r,Ke)&&Re.preventDefault()}},!0),r.on("keydown",Re=>{if(Re.keyCode===32&&r.selection.isCollapsed()){const Ke=_u(H(),"space");(Ke.blockPatterns.length>0||re())&&pj(r,Ke)&&Re.preventDefault()}},!0);const be=()=>{if(r.selection.isCollapsed()){const Re=_u(H(),"space");(Re.inlinePatterns.length>0||re())&&Xne(r,Re)}};r.on("keyup",Re=>{gj(B,Re)&&be()}),r.on("keypress",Re=>{Gne(g,Re)&&kg.setEditorTimeout(r,be)})},vj=r=>{Kne(r)},Bk=r=>{const g=mo.each,B=Fo.BACKSPACE,H=Fo.DELETE,re=r.dom,be=r.selection,Re=r.parser,Ke=fr.browser,ct=Ke.isFirefox(),kt=Ke.isChromium()||Ke.isSafari(),Wt=fr.deviceType.isiPhone()||fr.deviceType.isiPad(),Jt=fr.os.isMacOS()||fr.os.isiOS(),ln=(ii,Qi)=>{try{r.getDoc().execCommand(ii,!1,String(Qi))}catch{}},kn=ii=>ii.isDefaultPrevented(),Vn=()=>{const ii=Qa=>{const ci=re.create("body"),Va=Qa.cloneContents();return ci.appendChild(Va),be.serializer.serialize(ci,{format:"html"})},Qi=Qa=>{const ci=ii(Qa),Va=re.createRng();Va.selectNode(r.getBody());const Xa=ii(Va);return ci===Xa};r.on("keydown",Qa=>{const ci=Qa.keyCode;if(!kn(Qa)&&(ci===H||ci===B)&&r.selection.isEditable()){const Va=r.selection.isCollapsed(),Xa=r.getBody();if(Va&&!ba(r.schema,Xa)||!Va&&!Qi(r.selection.getRng()))return;Qa.preventDefault(),r.setContent(""),Xa.firstChild&&re.isBlock(Xa.firstChild)?r.selection.setCursorLocation(Xa.firstChild,0):r.selection.setCursorLocation(Xa,0),r.nodeChanged()}})},Rn=()=>{r.shortcuts.add("meta+a",null,"SelectAll")},qn=()=>{r.inline||re.bind(r.getDoc(),"mousedown mouseup",ii=>{let Qi;if(ii.target===r.getDoc().documentElement)if(Qi=be.getRng(),r.getBody().focus(),ii.type==="mousedown"){if(Ch(Qi.startContainer))return;be.placeCaretAt(ii.clientX,ii.clientY)}else be.setRng(Qi)})},pr=()=>{r.on("keydown",ii=>{if(!kn(ii)&&ii.keyCode===B){if(!r.getBody().getElementsByTagName("hr").length)return;if(be.isCollapsed()&&be.getRng().startOffset===0){const Qi=be.getNode(),Qa=Qi.previousSibling;if(Qi.nodeName==="HR"){re.remove(Qi),ii.preventDefault();return}Qa&&Qa.nodeName&&Qa.nodeName.toLowerCase()==="hr"&&(re.remove(Qa),ii.preventDefault())}}})},Tr=()=>{Range.prototype.getClientRects||r.on("mousedown",ii=>{if(!kn(ii)&&ii.target.nodeName==="HTML"){const Qi=r.getBody();Qi.blur(),kg.setEditorTimeout(r,()=>{Qi.focus()})}})},wr=()=>{const ii=Jx(r);r.on("click",Qi=>{const Qa=Qi.target;/^(IMG|HR)$/.test(Qa.nodeName)&&re.isEditable(Qa)&&(Qi.preventDefault(),r.selection.select(Qa),r.nodeChanged()),Qa.nodeName==="A"&&re.hasClass(Qa,ii)&&Qa.childNodes.length===0&&re.isEditable(Qa.parentNode)&&(Qi.preventDefault(),be.select(Qa))})},Ur=()=>{const ii=()=>{const Qa=re.getAttribs(be.getStart().cloneNode(!1));return()=>{const ci=be.getStart();ci!==r.getBody()&&(re.setAttrib(ci,"style",null),g(Qa,Va=>{ci.setAttributeNode(Va.cloneNode(!0))}))}},Qi=()=>!be.isCollapsed()&&re.getParent(be.getStart(),re.isBlock)!==re.getParent(be.getEnd(),re.isBlock);r.on("keypress",Qa=>{let ci;return!kn(Qa)&&(Qa.keyCode===8||Qa.keyCode===46)&&Qi()?(ci=ii(),r.getDoc().execCommand("delete",!1),ci(),Qa.preventDefault(),!1):!0}),re.bind(r.getDoc(),"cut",Qa=>{if(!kn(Qa)&&Qi()){const ci=ii();kg.setEditorTimeout(r,()=>{ci()})}})},wo=()=>{r.on("keydown",ii=>{if(!kn(ii)&&ii.keyCode===B&&be.isCollapsed()&&be.getRng().startOffset===0){const Qi=be.getNode().previousSibling;if(Qi&&Qi.nodeName&&Qi.nodeName.toLowerCase()==="table")return ii.preventDefault(),!1}return!0})},jo=()=>{r.on("keydown",ii=>{if(kn(ii)||ii.keyCode!==Fo.BACKSPACE)return;let Qi=be.getRng();const Qa=Qi.startContainer,ci=Qi.startOffset,Va=re.getRoot();let Xa=Qa;if(!(!Qi.collapsed||ci!==0)){for(;Xa.parentNode&&Xa.parentNode.firstChild===Xa&&Xa.parentNode!==Va;)Xa=Xa.parentNode;Xa.nodeName==="BLOCKQUOTE"&&(r.formatter.toggle("blockquote",void 0,Xa),Qi=re.createRng(),Qi.setStart(Qa,0),Qi.setEnd(Qa,0),be.setRng(Qi))}})},di=()=>{const ii=()=>{ln("StyleWithCSS",!1),ln("enableInlineTableEditing",!1),bd(r)||ln("enableObjectResizing",!1)};py(r)||r.on("BeforeExecCommand mousedown",ii)},lo=()=>{const ii=()=>{g(re.select("a:not([data-mce-block])"),Qi=>{var Qa;let ci=Qi.parentNode;const Va=re.getRoot();if((ci==null?void 0:ci.lastChild)===Qi){for(;ci&&!re.isBlock(ci);){if(((Qa=ci.parentNode)===null||Qa===void 0?void 0:Qa.lastChild)!==ci||ci===Va)return;ci=ci.parentNode}re.add(ci,"br",{"data-mce-bogus":1})}})};r.on("SetContent ExecCommand",Qi=>{(Qi.type==="setcontent"||Qi.command==="mceInsertLink")&&ii()})},eo=()=>{r.on("init",()=>{ln("DefaultParagraphSeparator",dc(r))})},xo=ii=>{const Qi=ii.getBody(),Qa=ii.selection.getRng();return Qa.startContainer===Qa.endContainer&&Qa.startContainer===Qi&&Qa.startOffset===0&&Qa.endOffset===Qi.childNodes.length},bi=()=>{r.on("keyup focusin mouseup",ii=>{!Fo.modifierPressed(ii)&&!xo(r)&&be.normalize()},!0)},Bi=()=>{r.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},$a=()=>{r.inline||r.on("keydown",()=>{document.activeElement===document.body&&r.getWin().focus()})},Ia=()=>{r.inline||(r.contentStyles.push("body {min-height: 150px}"),r.on("click",ii=>{let Qi;ii.target.nodeName==="HTML"&&(Qi=r.selection.getRng(),r.getBody().focus(),r.selection.setRng(Qi),r.selection.normalize(),r.nodeChanged())}))},Us=()=>{Jt&&r.on("keydown",ii=>{Fo.metaKeyPressed(ii)&&!ii.shiftKey&&(ii.keyCode===37||ii.keyCode===39)&&(ii.preventDefault(),r.selection.getSel().modify("move",ii.keyCode===37?"backward":"forward","lineboundary"))})},sl=()=>{r.on("click",ii=>{let Qi=ii.target;do if(Qi.tagName==="A"){ii.preventDefault();return}while(Qi=Qi.parentNode)}),r.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},nu=()=>{r.on("init",()=>{r.dom.bind(r.getBody(),"submit",ii=>{ii.preventDefault()})})},jd=()=>{Re.addNodeFilter("br",ii=>{let Qi=ii.length;for(;Qi--;)ii[Qi].attr("class")==="Apple-interchange-newline"&&ii[Qi].remove()})},ml=k,Wo=()=>{if(!ct||r.removed)return!1;const ii=r.selection.getSel();return!ii||!ii.rangeCount||ii.rangeCount===0},Ei=()=>{kt&&(qn(),wr(),nu(),Rn(),Wt&&($a(),Ia(),sl())),ct&&(Tr(),di(),Bi(),Us())},ws=()=>{jo(),Vn(),fr.windowsPhone||bi(),kt&&(qn(),wr(),eo(),nu(),wo(),jd(),Wt?($a(),Ia(),sl()):Rn()),ct&&(pr(),Tr(),Ur(),di(),lo(),Bi(),Us(),wo())};return Iy(r)?Ei():ws(),{refreshContentEditable:ml,isHidden:Wo}},Jne=r=>r.toLowerCase()==="gpl",yj=r=>r.length>=64&&r.length<=255,ere=r=>Jne(r)||yj(r)?"VALID":"INVALID",tre=r=>{const g=Ib(r);!v(lw(r))&&(M(g)||ere(g)==="INVALID")&&console.warn("TinyMCE is running in evaluation mode. Provide a valid license key or add license_key: 'gpl' to the init config to agree to the open source license terms. Read more at https://www.tiny.cloud/license-key/")},JR=Nl.DOM,nre=(r,g)=>{const B=sr.fromDom(r.getBody()),H=tp(of(B)),re=sr.fromTag("style");Es(re,"type","text/css"),Ps(re,sr.fromText(g)),Ps(H,re),r.on("remove",()=>{ja(re)})},bj=r=>r.inline?r.getElement().nodeName.toLowerCase():void 0,eL=r=>qt(r,g=>M(g)===!1),tL=r=>{const g=r.options.get,B=r.editorUpload.blobCache;return eL({allow_conditional_comments:g("allow_conditional_comments"),allow_html_data_urls:g("allow_html_data_urls"),allow_svg_data_urls:g("allow_svg_data_urls"),allow_html_in_named_anchor:g("allow_html_in_named_anchor"),allow_script_urls:g("allow_script_urls"),allow_unsafe_link_target:g("allow_unsafe_link_target"),convert_unsafe_embeds:g("convert_unsafe_embeds"),convert_fonts_to_spans:g("convert_fonts_to_spans"),fix_list_elements:g("fix_list_elements"),font_size_legacy_values:g("font_size_legacy_values"),forced_root_block:g("forced_root_block"),forced_root_block_attrs:g("forced_root_block_attrs"),preserve_cdata:g("preserve_cdata"),inline_styles:g("inline_styles"),root_name:bj(r),sandbox_iframes:g("sandbox_iframes"),sandbox_iframes_exclusions:i2(r),sanitize:g("xss_sanitization"),validate:!0,blob_cache:B,document:r.getDoc()})},xj=r=>{const g=r.options.get;return eL({custom_elements:g("custom_elements"),extended_valid_elements:g("extended_valid_elements"),invalid_elements:g("invalid_elements"),invalid_styles:g("invalid_styles"),schema:g("schema"),valid_children:g("valid_children"),valid_classes:g("valid_classes"),valid_elements:g("valid_elements"),valid_styles:g("valid_styles"),verify_html:g("verify_html"),padd_empty_block_inline_children:g("format_empty_lines")})},rre=r=>{const g=r.options.get;return{...tL(r),...xj(r),...eL({remove_trailing_brs:g("remove_trailing_brs"),pad_empty_with_br:g("pad_empty_with_br"),url_converter:g("url_converter"),url_converter_scope:g("url_converter_scope"),element_format:g("element_format"),entities:g("entities"),entity_encoding:g("entity_encoding"),indent:g("indent"),indent_after:g("indent_after"),indent_before:g("indent_before")})}},ore=r=>{const g=Ry(tL(r),r.schema);return g.addAttributeFilter("src,href,style,tabindex",(B,H)=>{const re=r.dom,be="data-mce-"+H;let Re=B.length;for(;Re--;){const Ke=B[Re];let ct=Ke.attr(H);if(ct&&!Ke.attr(be)){if(ct.indexOf("data:")===0||ct.indexOf("blob:")===0)continue;H==="style"?(ct=re.serializeStyle(re.parseStyle(ct),Ke.name),ct.length||(ct=null),Ke.attr(be,ct),Ke.attr(H,ct)):H==="tabindex"?(Ke.attr(be,ct),Ke.attr(H,null)):Ke.attr(be,r.convertURL(ct,H,Ke.name))}}}),g.addNodeFilter("script",B=>{let H=B.length;for(;H--;){const re=B[H],be=re.attr("type")||"no/type";be.indexOf("mce-")!==0&&re.attr("type","mce-"+be)}}),r2(r)&&g.addNodeFilter("#cdata",B=>{var H;let re=B.length;for(;re--;){const be=B[re];be.type=8,be.name="#comment",be.value="[CDATA["+r.dom.encode((H=be.value)!==null&&H!==void 0?H:"")+"]]"}}),g.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",B=>{let H=B.length;const re=r.schema.getNonEmptyElements();for(;H--;){const be=B[H];be.isEmpty(re)&&be.getAll("br").length===0&&be.append(new yp("br",1))}}),g},ire=r=>{const g=Pb(r);g&&kg.setEditorTimeout(r,()=>{let B;g===!0?B=r:B=r.editorManager.get(g),B&&!B.destroyed&&(B.focus(),B.selection.scrollIntoView())},100)},are=r=>{const g=r.dom.getRoot();!r.inline&&(!XS(r)||r.selection.getStart(!0)===g)&&lh(g).each(B=>{const H=B.getNode(),re=Et(H)?lh(H).getOr(B):B;r.selection.setRng(re.toRange())})},sre=r=>{r.bindPendingEventDelegates(),r.initialized=!0,sE(r),r.focus(!0),are(r),r.nodeChanged({initial:!0});const g=Wh(r);C(g)&&g.call(r,r),ire(r)},nL=r=>r.inline?r.ui.styleSheetLoader:r.dom.styleSheetLoader,lre=(r,g,B)=>{const{pass:H,fail:re}=Se(g,Ke=>tinymce.Resource.has(OP(Ke))),Re=[...H.map(Ke=>{const ct=tinymce.Resource.get(OP(Ke));return v(ct)?Promise.resolve(nL(r).loadRawCss(Ke,ct)):Promise.resolve()}),nL(r).loadAll(re)];return r.inline?Re:Re.concat([r.ui.styleSheetLoader.loadAll(B)])},_j=r=>{const g=nL(r),B=Wu(r),H=r.contentCSS,re=()=>{g.unloadAll(H),r.inline||r.ui.styleSheetLoader.unloadAll(B)},be=()=>{r.removed?re():r.on("remove",re)};if(r.contentStyles.length>0){let ct="";mo.each(r.contentStyles,kt=>{ct+=kt+`\r -`}),r.dom.addStyle(ct)}const Re=Promise.all(lre(r,H,B)).then(be).catch(be),Ke=Ob(r);return Ke&&nre(r,Ke),Re},wj=r=>{const g=r.getDoc(),B=r.getBody();n6(r),zm(r)||(g.body.spellcheck=!1,JR.setAttrib(B,"spellcheck","false")),r.quirks=Bk(r),E3(r);const H=Yx(r);H!==void 0&&(B.dir=H);const re=rw(r);re&&r.on("BeforeSetContent",be=>{mo.each(re,Re=>{be.content=be.content.replace(Re,Ke=>"")})}),r.on("SetContent",()=>{r.addVisual(r.getBody())}),r.on("compositionstart compositionend",be=>{r.composing=be.type==="compositionstart"})},rL=r=>{Iy(r)||r.load({initial:!0,format:"html"}),r.startContent=r.getContent({format:"raw"})},J8=r=>{r.removed!==!0&&(rL(r),sre(r))},Oj=r=>{let g=!1;const B=setTimeout(()=>{g||r.setProgressState(!0)},500);return()=>{clearTimeout(B),g=!0,r.setProgressState(!1)}},Sj=r=>{const g=r.getElement();let B=r.getDoc();r.inline&&(JR.addClass(g,"mce-content-body"),r.contentDocument=B=document,r.contentWindow=window,r.bodyElement=g,r.contentAreaContainer=g);const H=r.getBody();H.disabled=!0,r.readonly=py(r),r._editableRoot=Gx(r),!r.readonly&&r.hasEditableRoot()&&(r.inline&&JR.getStyle(H,"position",!0)==="static"&&(H.style.position="relative"),H.contentEditable="true"),H.disabled=!1,r.editorUpload=wG(r),r.schema=Np(xj(r)),r.dom=Nl(B,{keep_values:!0,url_converter:r.convertURL,url_converter_scope:r,update_styles:!0,root_element:r.inline?r.getBody():null,collect:r.inline,schema:r.schema,contentCssCors:W1(r),referrerPolicy:Y1(r),onSetAttrib:Re=>{r.dispatch("SetAttrib",Re)}}),r.parser=ore(r),r.serializer=gP(rre(r),r),r.selection=nN(r.dom,r.getWin(),r.serializer,r),r.annotator=J0(r),r.formatter=wN(r),r.undoManager=MP(r),r._nodeChangeDispatcher=new ate(r),r._selectionOverrides=rj(r),v4(r),nne(r),VK(r),Iy(r)||(zU(r),vj(r));const re=sU(r);DK(r,re),FK(r),MG(r),Jte(r);const be=jF(r);wj(r),tre(r),be.fold(()=>{const Re=Oj(r);_j(r).then(()=>{J8(r),Re()})},Re=>{r.setProgressState(!0),_j(r).then(()=>{Re().then(Ke=>{r.setProgressState(!1),J8(r),JF(r)},Ke=>{r.notificationManager.open({type:"error",text:String(Ke)}),J8(r),JF(r)})})})},cre=q,ure=(r,g,B)=>Dp(r,g,cre,B),eA=Nl.DOM,kj=(r,g,B,H)=>{const re=sr.fromTag("iframe");return H.each(be=>Es(re,"tabindex",be)),ef(re,B),ef(re,{id:r+"_ifr",frameBorder:"0",allowTransparency:"true",title:g}),xf(re,"tox-edit-area__iframe"),re},fre=r=>{let g=Mh(r)+"";il(r)!==r.documentBaseUrl&&(g+=''),g+='';const B=Im(r),H=ah(r),re=r.translate(e2(r));return Bu(r)&&(g+=''),g+=`
    `,g},dre=(r,g)=>{const B=fr.browser.isFirefox()?e2(r):"Rich Text Area",H=r.translate(B),re=ad(sr.fromDom(r.getElement()),"tabindex").bind(zr),be=kj(r.id,H,Mc(r),re).dom;be.onload=()=>{be.onload=null,r.dispatch("load")},r.contentAreaContainer=g.iframeContainer,r.iframeElement=be,r.iframeHTML=fre(r),eA.add(g.iframeContainer,be)},oL=r=>{const g=r.iframeElement,B=()=>{r.contentDocument=g.contentDocument,Sj(r)};if(wd(r)||fr.browser.isFirefox()){const H=r.getDoc();H.open(),H.write(r.iframeHTML),H.close(),B()}else{const H=ure(sr.fromDom(g),"load",()=>{H.unbind(),B()});g.srcdoc=r.iframeHTML}},tA=(r,g)=>{dre(r,g),g.editorContainer&&(g.editorContainer.style.display=r.orgDisplay,r.hidden=eA.isHidden(g.editorContainer)),r.getElement().style.display="none",eA.setAttrib(r.id,"aria-hidden","true"),r.getElement().style.visibility=r.orgVisibility,oL(r)},zk=Nl.DOM,sx=(r,g,B)=>{const H=a4.get(B),re=a4.urls[B]||r.documentBaseUrl.replace(/\/$/,"");if(B=mo.trim(B),H&&mo.inArray(g,B)===-1){if(r.plugins[B])return;try{const be=H(r,re)||{};r.plugins[B]=be,C(be.init)&&(be.init(r,re),g.push(B))}catch(be){wP(r,B,be)}}},nA=r=>r.replace(/^\-/,""),E4=r=>{const g=[];ye(ev(r),B=>{sx(r,g,nA(B))})},Tj=r=>{const g=mo.trim(Jc(r)),B=r.ui.registry.getAll().icons,H={...o4.get("default").icons,...o4.get(g).icons};Ge(H,(re,be)=>{_t(B,be)||r.ui.registry.addIcon(be,re)})},hre=r=>{const g=bg(r);if(v(g)){const B=yv.get(g);r.theme=B(r,yv.urls[g])||{},C(r.theme.init)&&r.theme.init(r,yv.urls[g]||r.documentBaseUrl.replace(/\/$/,""))}else r.theme={}},pre=r=>{const g=kb(r),B=i4.get(g);r.model=B(r,i4.urls[g])},Cj=r=>{const g=r.theme.renderUI;return g?g():lx(r)},mre=r=>{const g=r.getElement(),H=bg(r)(r,g);return H.editorContainer.nodeType&&(H.editorContainer.id=H.editorContainer.id||r.id+"_parent"),H.iframeContainer&&H.iframeContainer.nodeType&&(H.iframeContainer.id=H.iframeContainer.id||r.id+"_iframecontainer"),H.height=H.iframeHeight?H.iframeHeight:g.offsetHeight,H},rA=(r,g)=>({editorContainer:r,iframeContainer:g,api:{}}),oA=r=>{const g=zk.create("div");return zk.insertAfter(g,r),rA(g,g)},lx=r=>{const g=r.getElement();return r.inline?rA(null):oA(g)},lO=r=>{const g=r.getElement();return r.orgDisplay=g.style.display,v(bg(r))?Cj(r):C(bg(r))?mre(r):lx(r)},Aj=(r,g)=>{const B={show:Y.from(g.show).getOr(k),hide:Y.from(g.hide).getOr(k),isEnabled:Y.from(g.isEnabled).getOr(q),setEnabled:H=>{r.mode.isReadOnly()||Y.from(g.setEnabled).each(re=>re(H))}};r.ui={...r.ui,...B}},gre=async r=>{r.dispatch("ScriptsLoaded"),Tj(r),hre(r),pre(r),E4(r);const g=await lO(r);Aj(r,Y.from(g.api).getOr({})),r.editorContainer=g.editorContainer,bG(r),r.inline?Sj(r):tA(r,{editorContainer:g.editorContainer,iframeContainer:g.iframeContainer})},cO=Nl.DOM,Mj=r=>r.charAt(0)==="-",vre=(r,g)=>{const B=X1(g),H=Zp(g);if(!Du.hasCode(B)&&B!=="en"){const re=Kn(H)?H:`${g.editorManager.baseURL}/langs/${B}.js`;r.add(re).catch(()=>{mG(g,re,B)})}},yre=(r,g)=>{const B=bg(r);if(v(B)&&!Mj(B)&&!_t(yv.urls,B)){const H=Sb(r),re=H?r.documentBaseURI.toAbsolute(H):`themes/${B}/theme${g}.js`;yv.load(B,re).catch(()=>{afe(r,re,B)})}},bre=(r,g)=>{const B=kb(r);if(B!=="plugin"&&!_t(i4.urls,B)){const H=Xx(r),re=v(H)?r.documentBaseURI.toAbsolute(H):`models/${B}/model${g}.js`;i4.load(B,re).catch(()=>{bv(r,re,B)})}},Ej=r=>Y.from(Pc(r)).filter(Kn).map(g=>({url:g,name:Y.none()})),Pj=(r,g,B)=>Y.from(g).filter(H=>Kn(H)&&!o4.has(H)).map(H=>({url:`${r.editorManager.baseURL}/icons/${H}/icons${B}.js`,name:Y.some(H)})),xre=(r,g,B)=>{const H=Pj(g,"default",B),re=Ej(g).orThunk(()=>Pj(g,Jc(g),""));ye(Na([H,re]),be=>{r.add(be.url).catch(()=>{pG(g,be.url,be.name.getOrUndefined())})})},_re=(r,g)=>{const B=(H,re)=>{a4.load(H,re).catch(()=>{hG(r,re,H)})};Ge(e3(r),(H,re)=>{B(re,H),r.options.set("plugins",ev(r).concat(re))}),ye(ev(r),H=>{H=mo.trim(H),H&&!a4.urls[H]&&!Mj(H)&&B(H,`plugins/${H}/plugin${g}.js`)})},Mfe=r=>{const g=bg(r);return!v(g)||E(yv.get(g))},wre=r=>{const g=kb(r);return E(i4.get(g))},iL=(r,g)=>{const B=Mm.ScriptLoader,H=()=>{!r.removed&&Mfe(r)&&wre(r)&&gre(r)};yre(r,g),bre(r,g),vre(B,r),xre(B,r,g),_re(r,g),B.loadQueue().then(H,H)},Ore=(r,g)=>wm.forElement(r,{contentCssCors:Mb(g),referrerPolicy:Y1(g)}),Sre=r=>{const g=r.id;Du.setCode(X1(r));const B=()=>{cO.unbind(window,"ready",B),r.render()};if(!pd.Event.domLoaded){cO.bind(window,"ready",B);return}if(!r.getElement())return;const H=sr.fromDom(r.getElement()),re=Mp(H);r.on("remove",()=>{_e(H.dom.attributes,Re=>gc(H,Re.name)),ef(H,re)}),r.ui.styleSheetLoader=Ore(H,r),K1(r)?r.inline=!0:(r.orgVisibility=r.getElement().style.visibility,r.getElement().style.visibility="hidden");const be=r.getElement().form||cO.getParent(g,"form");be&&(r.formElement=be,xg(r)&&!jt(r.getElement())&&(cO.insertAfter(cO.create("input",{type:"hidden",name:g}),g),r.hasHiddenInput=!0),r.formEventDelegate=Re=>{r.dispatch(Re.type,Re)},cO.bind(be,"submit reset",r.formEventDelegate),r.on("reset",()=>{r.resetContent()}),Cb(r)&&!be.submit.nodeType&&!be.submit.length&&!be._mceOldSubmit&&(be._mceOldSubmit=be.submit,be.submit=()=>(r.editorManager.triggerSave(),r.setDirty(!1),be._mceOldSubmit(be)))),r.windowManager=_P(r),r.notificationManager=hN(r),l0(r)&&r.on("GetContent",Re=>{Re.save&&(Re.content=cO.encode(Re.content))}),nw(r)&&r.on("submit",()=>{r.initialized&&r.save()}),Ab(r)&&(r._beforeUnload=()=>{r.initialized&&!r.destroyed&&!r.isHidden()&&r.save({format:"raw",no_events:!0,set_dirty:!1})},r.editorManager.on("BeforeUnload",r._beforeUnload)),r.editorManager.add(r),iL(r,r.suffix)},Rj=(r,g)=>{r._editableRoot!==g&&(r._editableRoot=g,r.readonly||(r.getBody().contentEditable=String(r.hasEditableRoot()),r.nodeChanged()),a5(r,g))},kre=r=>r._editableRoot,Lj=(r,g)=>({sections:$(r),options:$(g)}),Ij=tr().deviceType,iA=Ij.isPhone(),Tre=Ij.isTablet(),Fk=r=>{if(T(r))return[];{const g=A(r)?r:r.split(/[ ,]/),B=ve(g,Fn);return Te(B,Kn)}},Cre=(r,g)=>{const B=It(g,(H,re)=>ce(r,re));return Lj(B.t,B.f)},Are=(r,g,B={})=>{const H=r.sections(),re=Ct(H,g).getOr({});return mo.extend({},B,re)},aA=(r,g)=>_t(r.sections(),g),aL=(r,g)=>aA(r,g)?r.sections()[g]:{},Dj=(r,g)=>({...{table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:Ct(r,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},...g?{menubar:!1}:{}}),sL=(r,g)=>{var B;const H=(B=g.external_plugins)!==null&&B!==void 0?B:{};return r&&r.external_plugins?mo.extend({},r.external_plugins,H):H},Mre=(r,g)=>[...Fk(r),...Fk(g)],Efe=(r,g,B,H)=>r&&aA(g,"mobile")?H:B,Pfe=(r,g,B,H)=>{const re=Fk(B.forced_plugins),be=Fk(H.plugins),Re=aL(g,"mobile"),Ke=Re.plugins?Fk(Re.plugins):be,ct=Efe(r,g,be,Ke),kt=Mre(re,ct);return mo.extend(H,{forced_plugins:re,plugins:kt})},Ere=(r,g)=>r&&aA(g,"mobile"),Bj=(r,g,B,H,re)=>{var be;const Re=r?{mobile:Dj((be=re.mobile)!==null&&be!==void 0?be:{},g)}:{},Ke=Cre(["mobile"],g8(Re,re)),ct=mo.extend(B,H,Ke.options(),Ere(r,Ke)?Are(Ke,"mobile"):{},{external_plugins:sL(H,Ke.options())});return Pfe(r,Ke,H,ct)},Pre=(r,g)=>{const B=L9(g);return Bj(iA||Tre,iA,B,r,B)},Rre=(r,g)=>EX(r,g),Lre=r=>{const g=(H,re)=>{r.formatter.toggle(H,re),r.nodeChanged()},B=H=>()=>{ye("left,center,right,justify".split(","),re=>{H!==re&&r.formatter.remove("align"+re)}),H!=="none"&&g("align"+H)};r.editorCommands.addCommands({JustifyLeft:B("left"),JustifyCenter:B("center"),JustifyRight:B("right"),JustifyFull:B("justify"),JustifyNone:B("none")})},Rfe=r=>{const g=B=>()=>{const H=r.selection,re=H.isCollapsed()?[r.dom.getParent(H.getNode(),r.dom.isBlock)]:H.getSelectedBlocks();return de(re,be=>E(r.formatter.matchNode(be,B)))};r.editorCommands.addCommands({JustifyLeft:g("alignleft"),JustifyCenter:g("aligncenter"),JustifyRight:g("alignright"),JustifyFull:g("alignjustify")},"state")},Lfe=r=>{Lre(r),Rfe(r)},zj=r=>{r.editorCommands.addCommands({"Cut,Copy,Paste":g=>{const B=r.getDoc();let H;try{B.execCommand(g)}catch{H=!0}if(g==="paste"&&!B.queryCommandEnabled(g)&&(H=!0),H||!B.queryCommandSupported(g)){let re=r.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(fr.os.isMacOS()||fr.os.isiOS())&&(re=re.replace(/Ctrl\+/g,"⌘+")),r.notificationManager.open({text:re,type:"error"})}}})},Fj=(r,g,B,H)=>{const re=sr.fromDom(r.getRoot());return x5(re,qr.fromRangeStart(g),H)?B=B.replace(/^ /," "):B=B.replace(/^ /," "),_5(re,qr.fromRangeEnd(g),H)?B=B.replace(/( | )()?$/," "):B=B.replace(/ ()?$/," "),B},Ire=r=>{if(typeof r!="string"){const g=mo.extend({paste:r.paste,data:{paste:r.paste}},r);return{content:r.content,details:g}}return{content:r,details:{}}},Dre=(r,g)=>{const B=r.selection,H=r.dom;return/^ | $/.test(g)?Fj(H,B.getRng(),g,r.schema):g},sA=(r,g)=>{if(r.selection.isEditable()){const{content:B,details:H}=Ire(g);nP(r,{...H,content:Dre(r,B),format:"html",set:!1,selection:!0}).each(re=>{const be=KF(r,re.content,H);rP(r,be,re),r.addVisual()})}},Ife=r=>{r.editorCommands.addCommands({mceCleanup:()=>{const g=r.selection.getBookmark();r.setContent(r.getContent()),r.selection.moveToBookmark(g)},insertImage:(g,B,H)=>{sA(r,r.dom.createHTML("img",{src:H}))},insertHorizontalRule:()=>{r.execCommand("mceInsertContent",!1,"
    ")},insertText:(g,B,H)=>{sA(r,r.dom.encode(H))},insertHTML:(g,B,H)=>{sA(r,H)},mceInsertContent:(g,B,H)=>{sA(r,H)},mceSetContent:(g,B,H)=>{r.setContent(H)},mceReplaceContent:(g,B,H)=>{r.execCommand("mceInsertContent",!1,H.replace(/\{\$selection\}/g,r.selection.getContent({format:"text"})))},mceNewDocument:()=>{r.setContent(nv(r))}})},Dfe={"font-size":"size","font-family":"face"},Bfe=Ju("font"),Bre=(r,g,B)=>{const H=be=>Ru(be,r).orThunk(()=>Bfe(be)?Ct(Dfe,r).bind(Re=>ad(be,Re)):Y.none()),re=be=>Fa(sr.fromDom(g),be);return g7(sr.fromDom(B),be=>H(be),re)},zfe=r=>r.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),zre=(r,g)=>Y.from(Nl.DOM.getStyle(g,r,!0)),j2=r=>(g,B)=>Y.from(B).map(sr.fromDom).filter(mc).bind(H=>Bre(r,g,H.dom).or(zre(r,H.dom))).getOr(""),lL=j2("font-size"),lA=I(zfe,j2("font-family")),Nj=r=>lh(r.getBody()).bind(g=>{const B=g.container();return Y.from(Nt(B)?B.parentNode:B)}),$j=r=>Y.from(r.selection.getRng()).bind(g=>{const B=r.getBody();return g.startContainer===B&&g.startOffset===0?Y.none():Y.from(r.selection.getStart(!0))}),Vj=(r,g)=>$j(r).orThunk(U(Nj,r)).map(sr.fromDom).filter(mc).bind(g),cL=(r,g)=>Vj(r,z(Y.some,g)),Uj=(r,g)=>{if(/^[0-9.]+$/.test(g)){const B=parseInt(g,10);if(B>=1&&B<=7){const H=s0(r),re=Lb(r);return re.length>0?re[B-1]||g:H[B-1]||g}else return g}else return g},Fre=r=>{const g=r.split(/\s*,\s*/);return ve(g,B=>B.indexOf(" ")!==-1&&!(xr(B,'"')||xr(B,"'"))?`'${B}'`:B).join(",")},Nre=(r,g)=>{const B=Uj(r,g);r.formatter.toggle("fontname",{value:Fre(B)}),r.nodeChanged()},$re=r=>cL(r,g=>lA(r.getBody(),g.dom)).getOr(""),Vre=(r,g)=>{r.formatter.toggle("fontsize",{value:Uj(r,g)}),r.nodeChanged()},Q2=r=>cL(r,g=>lL(r.getBody(),g.dom)).getOr(""),Ure=r=>cL(r,g=>{const B=sr.fromDom(r.getBody()),H=g7(g,be=>Ru(be,"line-height"),U(Fa,B)),re=()=>{const be=parseFloat(pi(g,"line-height")),Re=parseFloat(pi(g,"font-size"));return String(be/Re)};return H.getOrThunk(re)}).getOr(""),jj=(r,g)=>{r.formatter.toggle("lineheight",{value:String(g)}),r.nodeChanged()},jre=r=>{const g=(B,H)=>{r.formatter.toggle(B,H),r.nodeChanged()};r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>{g(B)},"ForeColor,HiliteColor":(B,H,re)=>{g(B,{value:re})},BackColor:(B,H,re)=>{g("hilitecolor",{value:re})},FontName:(B,H,re)=>{Nre(r,re)},FontSize:(B,H,re)=>{Vre(r,re)},LineHeight:(B,H,re)=>{jj(r,re)},Lang:(B,H,re)=>{var be;g(B,{value:re.code,customValue:(be=re.customCode)!==null&&be!==void 0?be:null})},RemoveFormat:B=>{r.formatter.remove(B)},mceBlockQuote:()=>{g("blockquote")},FormatBlock:(B,H,re)=>{g(v(re)?re:"p")},mceToggleFormat:(B,H,re)=>{g(re)}})},cA=r=>{const g=B=>r.formatter.match(B);r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>g(B),mceBlockQuote:()=>g("blockquote")},"state"),r.editorCommands.addQueryValueHandler("FontName",()=>$re(r)),r.editorCommands.addQueryValueHandler("FontSize",()=>Q2(r)),r.editorCommands.addQueryValueHandler("LineHeight",()=>Ure(r))},Qre=r=>{jre(r),cA(r)},Hre=r=>{r.editorCommands.addCommands({mceAddUndoLevel:()=>{r.undoManager.add()},mceEndUndoLevel:()=>{r.undoManager.add()},Undo:()=>{r.undoManager.undo()},Redo:()=>{r.undoManager.redo()}})},Zre=r=>{r.editorCommands.addCommands({Indent:()=>{s9(r)},Outdent:()=>{M$(r)}}),r.editorCommands.addCommands({Outdent:()=>t8(r)},"state")},Qj=r=>{const g=(B,H,re)=>{const be=v(re)?{href:re}:re,Re=r.dom.getParent(r.selection.getNode(),"a");_(be)&&v(be.href)&&(be.href=be.href.replace(/ /g,"%20"),(!Re||!be.href)&&r.formatter.remove("link"),be.href&&r.formatter.apply("link",be,Re))};r.editorCommands.addCommands({unlink:()=>{if(r.selection.isEditable()){if(r.selection.isCollapsed()){const B=r.dom.getParent(r.selection.getStart(),"a");B&&r.dom.remove(B,!0);return}r.formatter.remove("link")}},mceInsertLink:g,createLink:g})},qre=(r,g,B,H)=>{const re=r.dom,be=Ke=>re.isBlock(Ke)&&Ke.parentElement===B,Re=be(g)?g:re.getParent(H,be,B);return Y.from(Re).map(sr.fromDom)},Hj=(r,g)=>{const B=r.dom,H=r.selection.getRng(),re=g?r.selection.getStart():r.selection.getEnd(),be=g?H.startContainer:H.endContainer,Re=Sk(B,be);if(!Re||!Re.isContentEditable)return;const Ke=g?Fc:si,ct=dc(r);qre(r,re,Re,be).each(kt=>{const Wt=VV(r,be,kt.dom,Re,!1,ct);Ke(kt,sr.fromDom(Wt)),r.selection.setCursorLocation(Wt,0),r.dispatch("NewBlock",{newBlock:Wt}),Ok(r,"insertParagraph")})},Wre=r=>Hj(r,!0),Yre=r=>Hj(r,!1),uL=r=>{r.editorCommands.addCommands({InsertNewBlockBefore:()=>{Wre(r)},InsertNewBlockAfter:()=>{Yre(r)}})},Xre=r=>{r.editorCommands.addCommands({insertParagraph:()=>{E8(HV,r)},mceInsertNewLine:(g,B,H)=>{P8(r,H)},InsertLineBreak:(g,B,H)=>{E8(T8,r)}})},Gre=r=>{r.editorCommands.addCommands({mceSelectNodeDepth:(g,B,H)=>{let re=0;r.dom.getParent(r.selection.getNode(),be=>ne(be)&&re++===H?(r.selection.select(be),!1):!0,r.getBody())},mceSelectNode:(g,B,H)=>{r.selection.select(H)},selectAll:()=>{const g=r.dom.getParent(r.selection.getStart(),Sn);if(g){const B=r.dom.createRng();B.selectNodeContents(g),r.selection.setRng(B)}}})},Lf=r=>{r.editorCommands.addCommands({mceRemoveNode:(g,B,H)=>{const re=H??r.selection.getNode();if(re!==r.getBody()){const be=r.selection.getBookmark();r.dom.remove(re,!0),r.selection.moveToBookmark(be)}},mcePrint:()=>{r.getWin().print()},mceFocus:(g,B,H)=>{AE(r,H===!0)},mceToggleVisualAid:()=>{r.hasVisual=!r.hasVisual,r.addVisual()}})},Kre=r=>{Lfe(r),zj(r),Hre(r),Gre(r),Ife(r),Qj(r),Zre(r),uL(r),Xre(r),Qre(r),Lf(r)},Jre=["toggleview"],uA=r=>ce(Jre,r.toLowerCase());class fL{constructor(g){this.commands={state:{},exec:{},value:{}},this.editor=g}execCommand(g,B=!1,H,re){const be=this.editor,Re=g.toLowerCase(),Ke=re==null?void 0:re.skip_focus;if(be.removed||(Re!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(Re)&&!Ke?be.focus():qD(be)),be.dispatch("BeforeExecCommand",{command:g,ui:B,value:H}).isDefaultPrevented()))return!1;const kt=this.commands.exec[Re];return C(kt)?(kt(Re,B,H),be.dispatch("ExecCommand",{command:g,ui:B,value:H}),!0):!1}queryCommandState(g){if(!uA(g)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const B=g.toLowerCase(),H=this.commands.state[B];return C(H)?H(B):!1}queryCommandValue(g){if(!uA(g)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const B=g.toLowerCase(),H=this.commands.value[B];return C(H)?H(B):""}addCommands(g,B="exec"){const H=this.commands;Ge(g,(re,be)=>{ye(be.toLowerCase().split(","),Re=>{H[B][Re]=re})})}addCommand(g,B,H){const re=g.toLowerCase();this.commands.exec[re]=(be,Re,Ke)=>B.call(H??this.editor,Re,Ke)}queryCommandSupported(g){const B=g.toLowerCase();return!!this.commands.exec[B]}addQueryStateHandler(g,B,H){this.commands.state[g.toLowerCase()]=()=>B.call(H??this.editor)}addQueryValueHandler(g,B,H){this.commands.value[g.toLowerCase()]=()=>B.call(H??this.editor)}}const cx="data-mce-contenteditable",eoe=(r,g,B)=>{rs(r,g)&&!B?nf(r,g):B&&xf(r,g)},dL=(r,g,B)=>{try{r.getDoc().execCommand(g,!1,String(B))}catch{}},fA=(r,g)=>{r.dom.contentEditable=g?"true":"false"},toe=r=>{ye(Zl(r,'*[contenteditable="true"]'),g=>{Es(g,cx,"true"),fA(g,!1)})},noe=r=>{ye(Zl(r,`*[${cx}="true"]`),g=>{gc(g,cx),fA(g,!0)})},roe=r=>{Y.from(r.selection.getNode()).each(g=>{g.removeAttribute("data-mce-selected")})},ooe=r=>{r.selection.setRng(r.selection.getRng())},ioe=(r,g)=>{const B=sr.fromDom(r.getBody());eoe(B,"mce-content-readonly",g),g?(r.selection.controlSelection.hideResizeRect(),r._selectionOverrides.hideFakeCaret(),roe(r),r.readonly=!0,fA(B,!1),toe(B)):(r.readonly=!1,r.hasEditableRoot()&&fA(B,!0),noe(B),dL(r,"StyleWithCSS",!1),dL(r,"enableInlineTableEditing",!1),dL(r,"enableObjectResizing",!1),v5(r)&&r.focus(),ooe(r),r.nodeChanged())},h1=r=>r.readonly,p1=r=>{r.parser.addAttributeFilter("contenteditable",g=>{h1(r)&&ye(g,B=>{B.attr(cx,B.attr("contenteditable")),B.attr("contenteditable","false")})}),r.serializer.addAttributeFilter(cx,g=>{h1(r)&&ye(g,B=>{B.attr("contenteditable",B.attr(cx))})}),r.serializer.addTempAttr(cx)},aoe=r=>{r.serializer?p1(r):r.on("PreInit",()=>{p1(r)})},soe=r=>r.type==="click",loe=["copy"],coe=r=>ce(loe,r.type),uoe=(r,g)=>pu(g,"a",H=>Fa(H,sr.fromDom(r.getBody()))).bind(H=>ad(H,"href")),foe=(r,g)=>{if(soe(g)&&!Fo.metaKeyPressed(g)){const B=sr.fromDom(g.target);uoe(r,B).each(H=>{if(g.preventDefault(),/^#/.test(H)){const re=r.dom.select(`${H},[name="${In(H,"#")}"]`);re.length&&r.selection.scrollIntoView(re[0],!0)}else window.open(H,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else coe(g)&&r.dispatch(g.type,g)},doe=r=>{r.on("ShowCaret",g=>{h1(r)&&g.preventDefault()}),r.on("ObjectSelected",g=>{h1(r)&&g.preventDefault()})},hoe=mo.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class hL{static isNative(g){return!!hoe[g.toLowerCase()]}constructor(g){this.bindings={},this.settings=g||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||oe}fire(g,B){return this.dispatch(g,B)}dispatch(g,B){const H=g.toLowerCase(),re=Lx(H,B??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(re);const be=this.bindings[H];if(be)for(let Re=0,Ke=be.length;Re{this.toggleEvent(ct,!1),delete this.bindings[ct]}),this;if(Re){if(!B)Re.length=0;else{const Ke=Se(Re,ct=>ct.func===B);Re=Ke.fail,this.bindings[be]=Re,ye(Ke.pass,ct=>{ct.removed=!0})}Re.length||(this.toggleEvent(g,!1),delete this.bindings[be])}}}else Ge(this.bindings,(H,re)=>{this.toggleEvent(re,!1)}),this.bindings={};return this}once(g,B,H){return this.on(g,B,H,{once:!0})}has(g){g=g.toLowerCase();const B=this.bindings[g];return!(!B||B.length===0)}}const dA=r=>(r._eventDispatcher||(r._eventDispatcher=new hL({scope:r,toggleEvent:(g,B)=>{hL.isNative(g)&&r.toggleNativeEvent&&r.toggleNativeEvent(g,B)}})),r._eventDispatcher),pL={fire(r,g,B){return this.dispatch(r,g,B)},dispatch(r,g,B){const H=this;if(H.removed&&r!=="remove"&&r!=="detach")return Lx(r.toLowerCase(),g??{},H);const re=dA(H).dispatch(r,g);if(B!==!1&&H.parent){let be=H.parent();for(;be&&!re.isPropagationStopped();)be.dispatch(r,re,!1),be=be.parent?be.parent():void 0}return re},on(r,g,B){return dA(this).on(r,g,B)},off(r,g){return dA(this).off(r,g)},once(r,g){return dA(this).once(r,g)},hasEventListeners(r){return dA(this).has(r)}},hA=Nl.DOM;let uO;const pA=(r,g)=>{if(g==="selectionchange")return r.getDoc();if(!r.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(g))return r.getDoc().documentElement;const B=hp(r);return B?(r.eventRoot||(r.eventRoot=hA.select(B)[0]),r.eventRoot):r.getBody()},poe=r=>!r.hidden&&!h1(r),Zj=(r,g,B)=>{poe(r)?r.dispatch(g,B):h1(r)&&foe(r,B)},moe=(r,g)=>{if(r.delegates||(r.delegates={}),r.delegates[g]||r.removed)return;const B=pA(r,g);if(hp(r)){if(uO||(uO={},r.editorManager.on("removeEditor",()=>{r.editorManager.activeEditor||uO&&(Ge(uO,(re,be)=>{r.dom.unbind(pA(r,be))}),uO=null)})),uO[g])return;const H=re=>{const be=re.target,Re=r.editorManager.get();let Ke=Re.length;for(;Ke--;){const ct=Re[Ke].getBody();(ct===be||hA.isChildOf(be,ct))&&Zj(Re[Ke],g,re)}};uO[g]=H,hA.bind(B,g,H)}else{const H=re=>{Zj(r,g,re)};hA.bind(B,g,H),r.delegates[g]=H}},qj={...pL,bindPendingEventDelegates(){const r=this;mo.each(r._pendingNativeEvents,g=>{moe(r,g)})},toggleNativeEvent(r,g){const B=this;r==="focus"||r==="blur"||B.removed||(g?B.initialized?moe(B,r):B._pendingNativeEvents?B._pendingNativeEvents.push(r):B._pendingNativeEvents=[r]:B.initialized&&B.delegates&&(B.dom.unbind(pA(B,r),r,B.delegates[r]),delete B.delegates[r]))},unbindAllNativeEvents(){const r=this,g=r.getBody(),B=r.dom;r.delegates&&(Ge(r.delegates,(H,re)=>{r.dom.unbind(pA(r,re),re,H)}),delete r.delegates),!r.inline&&g&&B&&(g.onload=null,B.unbind(r.getWin()),B.unbind(r.getDoc())),B&&(B.unbind(g),B.unbind(r.getContainer()))}},goe=r=>v(r)?{value:r.split(/[ ,]/),valid:!0}:D(r,v)?{value:r,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},voe=r=>{const g=(()=>{switch(r){case"array":return A;case"boolean":return R;case"function":return C;case"number":return L;case"object":return _;case"string":return v;case"string[]":return goe;case"object[]":return B=>D(B,_);case"regexp":return B=>m(B,RegExp);default:return q}})();return B=>mL(B,g,`The value must be a ${r}.`)},yoe=r=>v(r.processor),Wj=(r,g)=>{const B=_r(g.message)?"":`. ${g.message}`;return r+B},Yj=r=>r.valid,mL=(r,g,B="")=>{const H=g(r);return R(H)?H?{value:r,valid:!0}:{valid:!1,message:B}:H},boe=(r,g,B)=>{if(!M(g)){const H=mL(g,B);if(Yj(H))return H.value;console.error(Wj(`Invalid default value passed for the "${r}" option`,H))}},xoe=(r,g,B=g)=>{const H={},re={},be=(kn,Vn,Rn)=>{const qn=mL(Vn,Rn);return Yj(qn)?(re[kn]=qn.value,!0):(console.warn(Wj(`Invalid value passed for the ${kn} option`,qn)),!1)},Re=(kn,Vn)=>{const Rn=yoe(Vn)?voe(Vn.processor):Vn.processor,qn=boe(kn,Vn.default,Rn);H[kn]={...Vn,default:qn,processor:Rn},Ct(re,kn).orThunk(()=>Ct(g,kn)).each(Tr=>be(kn,Tr,Rn))},Ke=kn=>_t(H,kn);return{register:Re,isRegistered:Ke,get:kn=>Ct(re,kn).orThunk(()=>Ct(H,kn).map(Vn=>Vn.default)).getOrUndefined(),set:(kn,Vn)=>{if(Ke(kn)){const Rn=H[kn];return Rn.immutable?(console.error(`"${kn}" is an immutable option and cannot be updated`),!1):be(kn,Vn,Rn.processor)}else return console.warn(`"${kn}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:kn=>{const Vn=Ke(kn);return Vn&&delete re[kn],Vn},isSet:kn=>_t(re,kn),debug:()=>{try{console.log(JSON.parse(JSON.stringify(B,(kn,Vn)=>R(Vn)||L(Vn)||v(Vn)||x(Vn)||A(Vn)||S(Vn)?Vn:Object.prototype.toString.call(Vn))))}catch(kn){console.error(kn)}}}},_oe=["design","readonly"],Xj=(r,g,B,H)=>{const re=B[g.get()],be=B[H];try{be.activate()}catch(Re){console.error(`problem while activating editor mode ${H}:`,Re);return}re.deactivate(),re.editorReadOnly!==be.editorReadOnly&&ioe(r,be.editorReadOnly),g.set(H),oE(r,H)},woe=(r,g,B,H)=>{if(H!==B.get()){if(!_t(g,H))throw new Error(`Editor mode '${H}' is invalid`);r.initialized?Xj(r,B,g,H):r.on("init",()=>Xj(r,B,g,H))}},Ooe=(r,g,B)=>{if(ce(_oe,g))throw new Error(`Cannot override default mode ${g}`);return{...r,[g]:{...B,deactivate:()=>{try{B.deactivate()}catch(H){console.error(`problem while deactivating editor mode ${g}:`,H)}}}}},Soe=r=>{const g=mr("design"),B=mr({design:{activate:k,deactivate:k,editorReadOnly:!1},readonly:{activate:k,deactivate:k,editorReadOnly:!0}});return aoe(r),doe(r),{isReadOnly:()=>h1(r),set:H=>woe(r,B.get(),g,H),get:()=>g.get(),register:(H,re)=>{B.set(Ooe(B.get(),H,re))}}},gL=mo.each,vL=mo.explode,Gj={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Kj=mo.makeMap("alt,ctrl,shift,meta,access"),koe=r=>r in Kj,Toe=r=>{const g={},B=fr.os.isMacOS()||fr.os.isiOS();gL(vL(r.toLowerCase(),"+"),be=>{koe(be)?g[be]=!0:/^[0-9]{2,}$/.test(be)?g.keyCode=parseInt(be,10):(g.charCode=be.charCodeAt(0),g.keyCode=Gj[be]||be.toUpperCase().charCodeAt(0))});const H=[g.keyCode];let re;for(re in Kj)g[re]?H.push(re):g[re]=!1;return g.id=H.join(","),g.access&&(g.alt=!0,B?g.ctrl=!0:g.shift=!0),g.meta&&(B?g.meta=!0:(g.ctrl=!0,g.meta=!1)),g};class Jj{constructor(g){this.shortcuts={},this.pendingPatterns=[],this.editor=g;const B=this;g.on("keyup keypress keydown",H=>{(B.hasModifier(H)||B.isFunctionKey(H))&&!H.isDefaultPrevented()&&(gL(B.shortcuts,re=>{B.matchShortcut(H,re)&&(B.pendingPatterns=re.subpatterns.slice(0),H.type==="keydown"&&B.executeShortcutAction(re))}),B.matchShortcut(H,B.pendingPatterns[0])&&(B.pendingPatterns.length===1&&H.type==="keydown"&&B.executeShortcutAction(B.pendingPatterns[0]),B.pendingPatterns.shift()))})}add(g,B,H,re){const be=this,Re=be.normalizeCommandFunc(H);return gL(vL(mo.trim(g)),Ke=>{const ct=be.createShortcut(Ke,B,Re,re);be.shortcuts[ct.id]=ct}),!0}remove(g){const B=this.createShortcut(g);return this.shortcuts[B.id]?(delete this.shortcuts[B.id],!0):!1}normalizeCommandFunc(g){const B=this,H=g;return typeof H=="string"?()=>{B.editor.execCommand(H,!1,null)}:mo.isArray(H)?()=>{B.editor.execCommand(H[0],H[1],H[2])}:H}createShortcut(g,B,H,re){const be=mo.map(vL(g,">"),Toe);return be[be.length-1]=mo.extend(be[be.length-1],{func:H,scope:re||this.editor}),mo.extend(be[0],{desc:this.editor.translate(B),subpatterns:be.slice(1)})}hasModifier(g){return g.altKey||g.ctrlKey||g.metaKey}isFunctionKey(g){return g.type==="keydown"&&g.keyCode>=112&&g.keyCode<=123}matchShortcut(g,B){return!B||B.ctrl!==g.ctrlKey||B.meta!==g.metaKey||B.alt!==g.altKey||B.shift!==g.shiftKey?!1:g.keyCode===B.keyCode||g.charCode&&g.charCode===B.charCode?(g.preventDefault(),!0):!1}executeShortcutAction(g){return g.func?g.func.call(g.scope):null}}const Coe=()=>{const r={},g={},B={},H={},re={},be={},Re={},Ke={},ct=(Wt,Jt)=>(ln,kn)=>{Wt[ln.toLowerCase()]={...kn,type:Jt}},kt=(Wt,Jt)=>H[Wt.toLowerCase()]=Jt;return{addButton:ct(r,"button"),addGroupToolbarButton:ct(r,"grouptoolbarbutton"),addToggleButton:ct(r,"togglebutton"),addMenuButton:ct(r,"menubutton"),addSplitButton:ct(r,"splitbutton"),addMenuItem:ct(g,"menuitem"),addNestedMenuItem:ct(g,"nestedmenuitem"),addToggleMenuItem:ct(g,"togglemenuitem"),addAutocompleter:ct(B,"autocompleter"),addContextMenu:ct(re,"contextmenu"),addContextToolbar:ct(be,"contexttoolbar"),addContextForm:ct(be,"contextform"),addSidebar:ct(Re,"sidebar"),addView:ct(Ke,"views"),addIcon:kt,getAll:()=>({buttons:r,menuItems:g,icons:H,popups:B,contextMenus:re,contextToolbars:be,sidebars:Re,views:Ke})}},Aoe=()=>{const r=Coe();return{addAutocompleter:r.addAutocompleter,addButton:r.addButton,addContextForm:r.addContextForm,addContextMenu:r.addContextMenu,addContextToolbar:r.addContextToolbar,addIcon:r.addIcon,addMenuButton:r.addMenuButton,addMenuItem:r.addMenuItem,addNestedMenuItem:r.addNestedMenuItem,addSidebar:r.addSidebar,addSplitButton:r.addSplitButton,addToggleButton:r.addToggleButton,addGroupToolbarButton:r.addGroupToolbarButton,addToggleMenuItem:r.addToggleMenuItem,addView:r.addView,getAll:r.getAll}},fO=Nl.DOM,eQ=mo.extend,tQ=mo.each;class mA{constructor(g,B,H){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=H,this.documentBaseUrl=H.documentBaseURL,eQ(this,qj);const re=this;this.id=g,this.hidden=!1;const be=Pre(H.defaultOptions,B);this.options=xoe(re,be,B),ac(re);const Re=this.options.get;Re("deprecation_warnings")&&JX(B,be);const Ke=Re("suffix");Ke&&(H.suffix=Ke),this.suffix=H.suffix;const ct=Re("base_url");ct&&H._setBaseUrl(ct),this.baseUri=H.baseURI;const kt=Y1(re);kt&&(Mm.ScriptLoader._setReferrerPolicy(kt),Nl.DOM.styleSheetLoader._setReferrerPolicy(kt));const Wt=Mb(re);E(Wt)&&Nl.DOM.styleSheetLoader._setContentCssCors(Wt),su.languageLoad=Re("language_load"),su.baseURL=H.baseURL,this.setDirty(!1),this.documentBaseURI=new Ih(il(re),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=K1(re),this.hasVisual=_d(re),this.shortcuts=new Jj(this),this.editorCommands=new fL(this),Kre(this);const Jt=Re("cache_suffix");Jt&&(fr.cacheSuffix=Jt.replace(/^[\?\&]+/,"")),this.ui={registry:Aoe(),styleSheetLoader:void 0,show:k,hide:k,setEnabled:k,isEnabled:q},this.mode=Soe(re),H.dispatch("SetupEditor",{editor:this});const ln=Eb(re);C(ln)&&ln.call(re,re)}render(){Sre(this)}focus(g){this.execCommand("mceFocus",!1,g)}hasFocus(){return Mw(this)}translate(g){return Du.translate(g)}getParam(g,B,H){const re=this.options;return re.isRegistered(g)||(E(H)?re.register(g,{processor:H,default:B}):re.register(g,{processor:q,default:B})),!re.isSet(g)&&!M(B)?B:re.get(g)}hasPlugin(g,B){return ce(ev(this),g)?B?a4.get(g)!==void 0:!0:!1}nodeChanged(g){this._nodeChangeDispatcher.nodeChanged(g)}addCommand(g,B,H){this.editorCommands.addCommand(g,B,H)}addQueryStateHandler(g,B,H){this.editorCommands.addQueryStateHandler(g,B,H)}addQueryValueHandler(g,B,H){this.editorCommands.addQueryValueHandler(g,B,H)}addShortcut(g,B,H,re){this.shortcuts.add(g,B,H,re)}execCommand(g,B,H,re){return this.editorCommands.execCommand(g,B,H,re)}queryCommandState(g){return this.editorCommands.queryCommandState(g)}queryCommandValue(g){return this.editorCommands.queryCommandValue(g)}queryCommandSupported(g){return this.editorCommands.queryCommandSupported(g)}show(){const g=this;g.hidden&&(g.hidden=!1,g.inline?g.getBody().contentEditable="true":(fO.show(g.getContainer()),fO.hide(g.id)),g.load(),g.dispatch("show"))}hide(){const g=this;g.hidden||(g.save(),g.inline?(g.getBody().contentEditable="false",g===g.editorManager.focusedEditor&&(g.editorManager.focusedEditor=null)):(fO.hide(g.getContainer()),fO.setStyle(g.id,"display",g.orgDisplay)),g.hidden=!0,g.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(g,B){this.dispatch("ProgressState",{state:g,time:B})}load(g={}){const B=this,H=B.getElement();if(B.removed)return"";if(H){const re={...g,load:!0},be=jt(H)?H.value:H.innerHTML,Re=B.setContent(be,re);return re.no_events||B.dispatch("LoadContent",{...re,element:H}),Re}else return""}save(g={}){const B=this;let H=B.getElement();if(!H||!B.initialized||B.removed)return"";const re={...g,save:!0,element:H};let be=B.getContent(re);const Re={...re,content:be};if(Re.no_events||B.dispatch("SaveContent",Re),Re.format==="raw"&&B.dispatch("RawSaveContent",Re),be=Re.content,jt(H))H.value=be;else{(g.is_removing||!B.inline)&&(H.innerHTML=be);const Ke=fO.getParent(B.id,"form");Ke&&tQ(Ke.elements,ct=>ct.name===B.id?(ct.value=be,!1):!0)}return Re.element=re.element=H=null,Re.set_dirty!==!1&&B.setDirty(!1),be}setContent(g,B){return yP(this,g,B)}getContent(g){return AC(this,g)}insertContent(g,B){B&&(g=eQ({content:g},B)),this.execCommand("mceInsertContent",!1,g)}resetContent(g){g===void 0?yP(this,this.startContent,{format:"raw"}):yP(this,g),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(g){const B=!this.isNotDirty;this.isNotDirty=!g,g&&g!==B&&this.dispatch("dirty")}getContainer(){const g=this;return g.container||(g.container=g.editorContainer||fO.get(g.id+"_parent")),g.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=fO.get(this.id)),this.targetElm}getWin(){const g=this;if(!g.contentWindow){const B=g.iframeElement;B&&(g.contentWindow=B.contentWindow)}return g.contentWindow}getDoc(){const g=this;if(!g.contentDocument){const B=g.getWin();B&&(g.contentDocument=B.document)}return g.contentDocument}getBody(){var g,B;const H=this.getDoc();return(B=(g=this.bodyElement)!==null&&g!==void 0?g:H==null?void 0:H.body)!==null&&B!==void 0?B:null}convertURL(g,B,H){const re=this,be=re.options.get,Re=t2(re);if(C(Re))return Re.call(re,g,H,!0,B);if(!be("convert_urls")||H==="link"||_(H)&&H.nodeName==="LINK"||g.indexOf("file:")===0||g.length===0)return g;const Ke=new Ih(g);return Ke.protocol!=="http"&&Ke.protocol!=="https"&&Ke.protocol!==""?g:be("relative_urls")?re.documentBaseURI.toRelative(g):(g=re.documentBaseURI.toAbsolute(g,be("remove_script_host")),g)}addVisual(g){Rre(this,g)}setEditableRoot(g){Rj(this,g)}hasEditableRoot(){return kre(this)}remove(){nG(this)}destroy(g){rG(this,g)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const P4=Nl.DOM,gA=mo.each;let nQ=!1,vA,rm=[];const yA=r=>{const g=r.type;gA(H2.get(),B=>{switch(g){case"scroll":B.dispatch("ScrollWindow",r);break;case"resize":B.dispatch("ResizeWindow",r);break}})},rQ=r=>{if(r!==nQ){const g=Nl.DOM;r?(g.bind(window,"resize",yA),g.bind(window,"scroll",yA)):(g.unbind(window,"resize",yA),g.unbind(window,"scroll",yA)),nQ=r}},yL=r=>{const g=rm;return rm=Te(rm,B=>r!==B),H2.activeEditor===r&&(H2.activeEditor=rm.length>0?rm[0]:null),H2.focusedEditor===r&&(H2.focusedEditor=null),g.length!==rm.length},Ffe=r=>{r&&r.initialized&&!(r.getContainer()||r.getBody()).parentNode&&(yL(r),r.unbindAllNativeEvents(),r.destroy(!0),r.removed=!0)},oQ=document.compatMode!=="CSS1Compat",H2={...pL,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"7",minorVersion:"2.0",releaseDate:"2024-06-19",i18n:Du,activeEditor:null,focusedEditor:null,setup(){const r=this;let g="",B="",H=Ih.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/"));const re=window.tinymce||window.tinyMCEPreInit;if(re)g=re.base||re.baseURL,B=re.suffix;else{const be=document.getElementsByTagName("script");for(let Re=0;Re{su.PluginManager.urls[be]=re})},init(r){const g=this;let B;const H=mo.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),re=(Wt,Jt)=>Wt.inline&&Jt.tagName.toLowerCase()in H,be=Wt=>{let Jt=Wt.id;return Jt||(Jt=Ct(Wt,"name").filter(ln=>!P4.get(ln)).getOrThunk(P4.uniqueId),Wt.setAttribute("id",Jt)),Jt},Re=Wt=>{const Jt=r[Wt];if(Jt)return Jt.apply(g,[])},Ke=Wt=>fr.browser.isIE()||fr.browser.isEdge()?(LC("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/7/support/#supportedwebbrowsers"),[]):oQ?(LC("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):v(Wt.selector)?P4.select(Wt.selector):E(Wt.target)?[Wt.target]:[];let ct=Wt=>{B=Wt};const kt=()=>{let Wt=0;const Jt=[];let ln;const kn=(Vn,Rn,qn)=>{const pr=new mA(Vn,Rn,g);Jt.push(pr),pr.on("init",()=>{++Wt===ln.length&&ct(Jt)}),pr.targetElm=pr.targetElm||qn,pr.render()};P4.unbind(window,"ready",kt),Re("onpageload"),ln=je(Ke(r)),mo.each(ln,Vn=>{Ffe(g.get(Vn.id))}),ln=mo.grep(ln,Vn=>!g.get(Vn.id)),ln.length===0?ct([]):gA(ln,Vn=>{re(r,Vn)?LC("Could not initialize inline editor on invalid inline target element",Vn):kn(be(Vn),r,Vn)})};return P4.bind(window,"ready",kt),new Promise(Wt=>{B?Wt(B):ct=Jt=>{Wt(Jt)}})},get(r){return arguments.length===0?rm.slice(0):v(r)?De(rm,g=>g.id===r).getOr(null):L(r)&&rm[r]?rm[r]:null},add(r){const g=this,B=g.get(r.id);return B===r||(B===null&&rm.push(r),rQ(!0),g.activeEditor=r,g.dispatch("AddEditor",{editor:r}),vA||(vA=H=>{const re=g.dispatch("BeforeUnload");if(re.returnValue)return H.preventDefault(),H.returnValue=re.returnValue,re.returnValue},window.addEventListener("beforeunload",vA))),r},createEditor(r,g){return this.add(new mA(r,g,this))},remove(r){const g=this;let B;if(!r){for(let H=rm.length-1;H>=0;H--)g.remove(rm[H]);return}if(v(r)){gA(P4.select(r),H=>{B=g.get(H.id),B&&g.remove(B)});return}return B=r,x(g.get(B.id))?null:(yL(B)&&g.dispatch("RemoveEditor",{editor:B}),rm.length===0&&window.removeEventListener("beforeunload",vA),B.remove(),rQ(rm.length>0),B)},execCommand(r,g,B){var H;const re=this,be=_(B)?(H=B.id)!==null&&H!==void 0?H:B.index:B;switch(r){case"mceAddEditor":{if(!re.get(be)){const Re=B.options;new mA(be,Re,re).render()}return!0}case"mceRemoveEditor":{const Re=re.get(be);return Re&&Re.remove(),!0}case"mceToggleEditor":{const Re=re.get(be);return Re?(Re.isHidden()?Re.show():Re.hide(),!0):(re.execCommand("mceAddEditor",!1,B),!0)}}return re.activeEditor?re.activeEditor.execCommand(r,g,B):!1},triggerSave:()=>{gA(rm,r=>{r.save()})},addI18n:(r,g)=>{Du.add(r,g)},translate:r=>Du.translate(r),setActive(r){const g=this.activeEditor;this.activeEditor!==r&&(g&&g.dispatch("deactivate",{relatedTarget:r}),r.dispatch("activate",{relatedTarget:g})),this.activeEditor=r},_setBaseUrl(r){this.baseURL=new Ih(this.documentBaseURL).toAbsolute(r.replace(/\/+$/,"")),this.baseURI=new Ih(this.baseURL)}};H2.setup();const Eoe=(()=>{const r=Ys(),g=be=>({items:be,types:nt(be),getType:Re=>Ct(be,Re).getOrUndefined()}),B=be=>{r.set(be)},H=()=>r.get().getOrUndefined(),re=r.clear;return{FakeClipboardItem:g,write:B,read:H,clear:re}})(),iQ=Math.min,R4=Math.max,bA=Math.round,aQ=(r,g,B)=>{let H=g.x,re=g.y;const be=r.w,Re=r.h,Ke=g.w,ct=g.h,kt=(B||"").split("");return kt[0]==="b"&&(re+=ct),kt[1]==="r"&&(H+=Ke),kt[0]==="c"&&(re+=bA(ct/2)),kt[1]==="c"&&(H+=bA(Ke/2)),kt[3]==="b"&&(re-=Re),kt[4]==="r"&&(H-=be),kt[3]==="c"&&(re-=bA(Re/2)),kt[4]==="c"&&(H-=bA(be/2)),dO(H,re,be,Re)},Poe=(r,g,B,H)=>{for(let re=0;re=B.x&&be.x+be.w<=B.w+B.x&&be.y>=B.y&&be.y+be.h<=B.h+B.y)return H[re]}return null},bL=(r,g,B)=>dO(r.x-g,r.y-B,r.w+g*2,r.h+B*2),xL=(r,g)=>{const B=R4(r.x,g.x),H=R4(r.y,g.y),re=iQ(r.x+r.w,g.x+g.w),be=iQ(r.y+r.h,g.y+g.h);return re-B<0||be-H<0?null:dO(B,H,re-B,be-H)},Roe=(r,g,B)=>{let H=r.x,re=r.y,be=r.x+r.w,Re=r.y+r.h;const Ke=g.x+g.w,ct=g.y+g.h,kt=R4(0,g.x-H),Wt=R4(0,g.y-re),Jt=R4(0,be-Ke),ln=R4(0,Re-ct);return H+=kt,re+=Wt,B&&(be+=kt,Re+=Wt,H-=Jt,re-=ln),be-=Jt,Re-=ln,dO(H,re,be-H,Re-re)},dO=(r,g,B,H)=>({x:r,y:g,w:B,h:H}),Loe={inflate:bL,relativePosition:aQ,findBestRelativePosition:Poe,intersect:xL,clamp:Roe,create:dO,fromClientRect:r=>dO(r.left,r.top,r.width,r.height)},Ioe=(r,g,B=1e3)=>{let H=!1,re=null;const be=kt=>(...Wt)=>{H||(H=!0,re!==null&&(clearTimeout(re),re=null),kt.apply(null,Wt))},Re=be(r),Ke=be(g);return{start:(...kt)=>{!H&&re===null&&(re=setTimeout(()=>Ke.apply(null,kt),B))},resolve:Re,reject:Ke}},Doe=(()=>{const r={},g={},B={};return{load:(ct,kt)=>{const Wt=`Script at URL "${kt}" failed to load`,Jt=`Script at URL "${kt}" did not call \`tinymce.Resource.add('${ct}', data)\` within 1 second`;if(r[ct]!==void 0)return r[ct];{const ln=new Promise((kn,Vn)=>{const Rn=Ioe(kn,Vn);g[ct]=Rn.resolve,Mm.ScriptLoader.loadScript(kt).then(()=>Rn.start(Jt),()=>Rn.reject(Wt))});return r[ct]=ln,ln}},add:(ct,kt)=>{g[ct]!==void 0&&(g[ct](kt),delete g[ct]),r[ct]=Promise.resolve(kt),B[ct]=kt},has:ct=>ct in B,get:ct=>B[ct],unload:ct=>{delete r[ct],delete B[ct]}}})(),Boe=()=>(()=>{let r={},g=[];const B={getItem:H=>{const re=r[H];return re||null},setItem:(H,re)=>{g.push(H),r[H]=String(re)},key:H=>g[H],removeItem:H=>{g=g.filter(re=>re===H),delete r[H]},clear:()=>{g=[],r={}},length:0};return Object.defineProperty(B,"length",{get:()=>g.length,configurable:!1,enumerable:!1}),B})();let Nk;try{const r="__storage_test__";Nk=window.localStorage,Nk.setItem(r,r),Nk.removeItem(r)}catch{Nk=Boe()}var zoe=Nk;const Foe={geom:{Rect:Loe},util:{Delay:kg,Tools:mo,VK:Fo,URI:Ih,EventDispatcher:hL,Observable:pL,I18n:Du,LocalStorage:zoe,ImageUploader:kP},dom:{EventUtils:pd,TreeWalker:kc,TextSeeker:Em,DOMUtils:Nl,ScriptLoader:Mm,RangeUtils:To,Serializer:gP,StyleSheetLoader:_m,ControlSelection:Ow,BookmarkManager:ky,Selection:nN,Event:pd.Event},html:{Styles:I_,Entities:up,Node:yp,Schema:Np,DomParser:Ry,Writer:vB,Serializer:Wb},Env:fr,AddOnManager:su,Annotator:J0,Formatter:wN,UndoManager:MP,EditorCommands:fL,WindowManager:_P,NotificationManager:hN,EditorObservable:qj,Shortcuts:Jj,Editor:mA,FocusManager:WD,EditorManager:H2,DOM:Nl.DOM,ScriptLoader:Mm.ScriptLoader,PluginManager:a4,ThemeManager:yv,ModelManager:i4,IconManager:o4,Resource:Doe,FakeClipboard:Eoe,trim:mo.trim,isArray:mo.isArray,is:mo.is,toArray:mo.toArray,makeMap:mo.makeMap,each:mo.each,map:mo.map,grep:mo.grep,inArray:mo.inArray,extend:mo.extend,walk:mo.walk,resolve:mo.resolve,explode:mo.explode,_addCacheSuffix:mo._addCacheSuffix},sQ=mo.extend(H2,Foe),_L=r=>{try{t.exports=r}catch{}};(r=>{window.tinymce=r,window.tinyMCE=r})(sQ),_L(sQ)})()})(GNe);(function(){var t=tinymce.util.Tools.resolve("tinymce.ModelManager");const e=(pe,Ce,Ye)=>{var st;return Ye(pe,Ce.prototype)?!0:((st=pe.constructor)===null||st===void 0?void 0:st.name)===Ce.name},o=pe=>{const Ce=typeof pe;return pe===null?"null":Ce==="object"&&Array.isArray(pe)?"array":Ce==="object"&&e(pe,String,(Ye,st)=>st.isPrototypeOf(Ye))?"string":Ce},f=pe=>Ce=>o(Ce)===pe,P=pe=>Ce=>typeof Ce===pe,d=pe=>Ce=>pe===Ce,l=f("string"),n=f("object"),c=f("array"),b=d(null),i=P("boolean"),O=d(void 0),w=pe=>pe==null,y=pe=>!w(pe),p=P("function"),a=P("number"),u=()=>{},h=(pe,Ce)=>(...Ye)=>pe(Ce.apply(null,Ye)),m=(pe,Ce)=>Ye=>pe(Ce(Ye)),v=pe=>()=>pe,_=pe=>pe,S=(pe,Ce)=>pe===Ce;function A(pe,...Ce){return(...Ye)=>{const st=Ce.concat(Ye);return pe.apply(null,st)}}const x=pe=>Ce=>!pe(Ce),R=pe=>()=>{throw new Error(pe)},M=pe=>pe(),T=v(!1),E=v(!0);class C{constructor(Ce,Ye){this.tag=Ce,this.value=Ye}static some(Ce){return new C(!0,Ce)}static none(){return C.singletonNone}fold(Ce,Ye){return this.tag?Ye(this.value):Ce()}isSome(){return this.tag}isNone(){return!this.tag}map(Ce){return this.tag?C.some(Ce(this.value)):C.none()}bind(Ce){return this.tag?Ce(this.value):C.none()}exists(Ce){return this.tag&&Ce(this.value)}forall(Ce){return!this.tag||Ce(this.value)}filter(Ce){return!this.tag||Ce(this.value)?this:C.none()}getOr(Ce){return this.tag?this.value:Ce}or(Ce){return this.tag?this:Ce}getOrThunk(Ce){return this.tag?this.value:Ce()}orThunk(Ce){return this.tag?this:Ce()}getOrDie(Ce){if(this.tag)return this.value;throw new Error(Ce??"Called getOrDie on None")}static from(Ce){return y(Ce)?C.some(Ce):C.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Ce){this.tag&&Ce(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}C.singletonNone=new C(!1);const L=Array.prototype.slice,D=Array.prototype.indexOf,k=Array.prototype.push,I=(pe,Ce)=>D.call(pe,Ce),z=(pe,Ce)=>I(pe,Ce)>-1,$=(pe,Ce)=>{for(let Ye=0,st=pe.length;Ye{const Ye=[];for(let st=0;st{const Ye=pe.length,st=new Array(Ye);for(let St=0;St{for(let Ye=0,st=pe.length;Ye{for(let Ye=pe.length-1;Ye>=0;Ye--){const st=pe[Ye];Ce(st,Ye)}},te=(pe,Ce)=>{const Ye=[],st=[];for(let St=0,Ut=pe.length;St{const Ye=[];for(let st=0,St=pe.length;st(X(pe,(st,St)=>{Ye=Ce(Ye,st,St)}),Ye),oe=(pe,Ce,Ye)=>(U(pe,(st,St)=>{Ye=Ce(Ye,st,St)}),Ye),q=(pe,Ce,Ye)=>{for(let st=0,St=pe.length;stq(pe,Ce,T),ee=(pe,Ce)=>{for(let Ye=0,st=pe.length;Ye{const Ce=[];for(let Ye=0,st=pe.length;Yeme(j(pe,Ce)),se=(pe,Ce)=>{for(let Ye=0,st=pe.length;Ye{const Ce=L.call(pe,0);return Ce.reverse(),Ce},ce=(pe,Ce)=>{const Ye={};for(let st=0,St=pe.length;st{const Ye=L.call(pe,0);return Ye.sort(Ce),Ye},ve=(pe,Ce)=>Ce>=0&&Ceve(pe,0),_e=pe=>ve(pe,pe.length-1),Se=(pe,Ce)=>{for(let Ye=0;Ye{const Ye=Te(pe);for(let st=0,St=Ye.length;stDe(pe,(Ye,st)=>({k:st,v:Ce(Ye,st)})),De=(pe,Ce)=>{const Ye={};return Ie(pe,(st,St)=>{const Ut=Ce(st,St);Ye[Ut.k]=Ut.v}),Ye},He=pe=>(Ce,Ye)=>{pe[Ye]=Ce},Ve=(pe,Ce,Ye,st)=>{Ie(pe,(St,Ut)=>{(Ce(St,Ut)?Ye:st)(St,Ut)})},$e=(pe,Ce)=>{const Ye={};return Ve(pe,Ce,He(Ye),u),Ye},Oe=(pe,Ce)=>{const Ye=[];return Ie(pe,(st,St)=>{Ye.push(Ce(st,St))}),Ye},ke=pe=>Oe(pe,_),Le=(pe,Ce)=>We(pe,Ce)?C.from(pe[Ce]):C.none(),We=(pe,Ce)=>Pe.call(pe,Ce),Ue=(pe,Ce)=>We(pe,Ce)&&pe[Ce]!==void 0&&pe[Ce]!==null,Ze=pe=>{for(const Ce in pe)if(Pe.call(pe,Ce))return!1;return!0},Xe=typeof window<"u"?window:Function("return this;")(),tt=(pe,Ce)=>{let Ye=Ce??Xe;for(let st=0;st{const Ye=pe.split(".");return tt(Ye,Ce)},Ne=(pe,Ce)=>Ee(pe,Ce),je=(pe,Ce)=>{const Ye=Ne(pe,Ce);if(Ye==null)throw new Error(pe+" not available on this browser");return Ye},nt=Object.getPrototypeOf,ot=pe=>je("HTMLElement",pe),Ge=pe=>{const Ce=Ee("ownerDocument.defaultView",pe);return n(pe)&&(ot(Ce).prototype.isPrototypeOf(pe)||/^HTML\w*Element$/.test(nt(pe).constructor.name))},ht=8,pt=9,wt=11,Dt=1,It=3,qt=pe=>pe.dom.nodeName.toLowerCase(),en=pe=>pe.dom.nodeType,Gt=pe=>Ce=>en(Ce)===pe,Ct=pe=>en(pe)===ht||qt(pe)==="#comment",_t=pe=>nn(pe)&&Ge(pe.dom),nn=Gt(Dt),gn=Gt(It),bn=Gt(pt),mn=Gt(wt),vt=pe=>Ce=>nn(Ce)&&qt(Ce)===pe,bt=(pe,Ce,Ye)=>{if(l(Ye)||i(Ye)||a(Ye))pe.setAttribute(Ce,Ye+"");else throw console.error("Invalid call to Attribute.set. Key ",Ce,":: Value ",Ye,":: Element ",pe),new Error("Attribute value was not simple")},lt=(pe,Ce,Ye)=>{bt(pe.dom,Ce,Ye)},yt=(pe,Ce)=>{const Ye=pe.dom;Ie(Ce,(st,St)=>{bt(Ye,St,st)})},zt=(pe,Ce)=>{Ie(Ce,(Ye,st)=>{Ye.fold(()=>{at(pe,st)},St=>{bt(pe.dom,st,St)})})},Rt=(pe,Ce)=>{const Ye=pe.dom.getAttribute(Ce);return Ye===null?void 0:Ye},it=(pe,Ce)=>C.from(Rt(pe,Ce)),at=(pe,Ce)=>{pe.dom.removeAttribute(Ce)},Lt=pe=>oe(pe.dom.attributes,(Ce,Ye)=>(Ce[Ye.name]=Ye.value,Ce),{}),xt=(pe,Ce)=>{const st=(Ce||document).createElement("div");if(st.innerHTML=pe,!st.hasChildNodes()||st.childNodes.length>1){const St="HTML does not have a single root node";throw console.error(St,pe),new Error(St)}return Yt(st.childNodes[0])},Ht=(pe,Ce)=>{const st=(Ce||document).createElement(pe);return Yt(st)},Xt=(pe,Ce)=>{const st=(Ce||document).createTextNode(pe);return Yt(st)},Yt=pe=>{if(pe==null)throw new Error("Node cannot be null or undefined");return{dom:pe}},Pt={fromHtml:xt,fromTag:Ht,fromText:Xt,fromDom:Yt,fromPoint:(pe,Ce,Ye)=>C.from(pe.dom.elementFromPoint(Ce,Ye)).map(Yt)},tn=(pe,Ce)=>{const Ye=pe.dom;if(Ye.nodeType!==Dt)return!1;{const st=Ye;if(st.matches!==void 0)return st.matches(Ce);if(st.msMatchesSelector!==void 0)return st.msMatchesSelector(Ce);if(st.webkitMatchesSelector!==void 0)return st.webkitMatchesSelector(Ce);if(st.mozMatchesSelector!==void 0)return st.mozMatchesSelector(Ce);throw new Error("Browser lacks native selectors")}},Kt=pe=>pe.nodeType!==Dt&&pe.nodeType!==pt&&pe.nodeType!==wt||pe.childElementCount===0,fn=(pe,Ce)=>{const Ye=Ce===void 0?document:Ce.dom;return Kt(Ye)?[]:j(Ye.querySelectorAll(pe),Pt.fromDom)},dn=(pe,Ce)=>{const Ye=Ce===void 0?document:Ce.dom;return Kt(Ye)?C.none():C.from(Ye.querySelector(pe)).map(Pt.fromDom)},vn=(pe,Ce)=>pe.dom===Ce.dom,Nn=(pe,Ce)=>{const Ye=pe.dom,st=Ce.dom;return Ye===st?!1:Ye.contains(st)},er=tn,En=pe=>Pt.fromDom(pe.dom.ownerDocument),In=pe=>bn(pe)?pe:En(pe),Un=pe=>Pt.fromDom(In(pe).dom.documentElement),xr=pe=>Pt.fromDom(In(pe).dom.defaultView),Sr=pe=>C.from(pe.dom.parentNode).map(Pt.fromDom),ar=pe=>C.from(pe.dom.parentElement).map(Pt.fromDom),Fn=(pe,Ce)=>{const Ye=p(Ce)?Ce:T;let st=pe.dom;const St=[];for(;st.parentNode!==null&&st.parentNode!==void 0;){const Ut=st.parentNode,un=Pt.fromDom(Ut);if(St.push(un),Ye(un)===!0)break;st=Ut}return St},ir=pe=>C.from(pe.dom.previousSibling).map(Pt.fromDom),Wn=pe=>C.from(pe.dom.nextSibling).map(Pt.fromDom),Kn=pe=>j(pe.dom.childNodes,Pt.fromDom),_r=(pe,Ce)=>{const Ye=pe.dom.childNodes;return C.from(Ye[Ce]).map(Pt.fromDom)},Ir=pe=>_r(pe,0),zr=(pe,Ce)=>{Sr(pe).each(st=>{st.dom.insertBefore(Ce.dom,pe.dom)})},Fr=(pe,Ce)=>{Wn(pe).fold(()=>{Sr(pe).each(St=>{$r(St,Ce)})},st=>{zr(st,Ce)})},Rr=(pe,Ce)=>{Ir(pe).fold(()=>{$r(pe,Ce)},st=>{pe.dom.insertBefore(Ce.dom,st.dom)})},$r=(pe,Ce)=>{pe.dom.appendChild(Ce.dom)},Kr=(pe,Ce,Ye)=>{_r(pe,Ye).fold(()=>{$r(pe,Ce)},st=>{zr(st,Ce)})},Co=(pe,Ce)=>{zr(pe,Ce),$r(Ce,pe)},so=(pe,Ce)=>{U(Ce,(Ye,st)=>{const St=st===0?pe:Ce[st-1];Fr(St,Ye)})},So=(pe,Ce)=>{U(Ce,Ye=>{$r(pe,Ye)})},go=pe=>{pe.dom.textContent="",U(Kn(pe),Ce=>{li(Ce)})},li=pe=>{const Ce=pe.dom;Ce.parentNode!==null&&Ce.parentNode.removeChild(Ce)},Pn=pe=>{const Ce=Kn(pe);Ce.length>0&&so(pe,Ce),li(pe)},Yn=(pe,Ce)=>Pt.fromDom(pe.dom.cloneNode(Ce)),br=pe=>Yn(pe,!1),dr=pe=>Yn(pe,!0),Cr=(pe,Ce)=>{const Ye=Pt.fromTag(Ce),st=Lt(pe);return yt(Ye,st),Ye},io=(pe,Ce)=>{const Ye=Cr(pe,Ce),st=Kn(dr(pe));return So(Ye,st),Ye},Qr=(pe,Ce)=>{const Ye=Cr(pe,Ce);Fr(pe,Ye);const st=Kn(pe);return So(Ye,st),li(pe),Ye},Wr=["tfoot","thead","tbody","colgroup"],bo=pe=>z(Wr,pe),Bn=(pe,Ce)=>({rows:pe,columns:Ce}),hr=(pe,Ce)=>({row:pe,column:Ce}),hn=(pe,Ce,Ye)=>({element:pe,rowspan:Ce,colspan:Ye}),zn=(pe,Ce,Ye,st)=>({element:pe,rowspan:Ce,colspan:Ye,isNew:st}),Zn=(pe,Ce,Ye,st,St,Ut)=>({element:pe,rowspan:Ce,colspan:Ye,row:st,column:St,isLocked:Ut}),yr=(pe,Ce,Ye)=>({element:pe,cells:Ce,section:Ye}),gr=(pe,Ce,Ye,st)=>({element:pe,cells:Ce,section:Ye,isNew:st}),vr=(pe,Ce,Ye)=>({element:pe,isNew:Ce,isLocked:Ye}),nr=(pe,Ce,Ye,st)=>({element:pe,cells:Ce,section:Ye,isNew:st}),Qn=(pe,Ce,Ye,st)=>({startRow:pe,startCol:Ce,finishRow:Ye,finishCol:st}),Hn=(pe,Ce,Ye)=>({element:pe,colspan:Ce,column:Ye}),tr=(pe,Ce)=>({element:pe,columns:Ce}),cr=pe=>mn(pe)&&y(pe.dom.host),Lr=p(Element.prototype.attachShadow)&&p(Node.prototype.getRootNode),Er=v(Lr),Vr=Lr?pe=>Pt.fromDom(pe.dom.getRootNode()):In,to=pe=>{const Ce=Vr(pe);return cr(Ce)?C.some(Ce):C.none()},_o=pe=>Pt.fromDom(pe.dom.host),fr=pe=>{if(Er()&&y(pe.target)){const Ce=Pt.fromDom(pe.target);if(nn(Ce)&&Eo(Ce)&&pe.composed&&pe.composedPath){const Ye=pe.composedPath();if(Ye)return ye(Ye)}}return C.from(pe.target)},Eo=pe=>y(pe.dom.shadowRoot),ao=pe=>{const Ce=gn(pe)?pe.dom.parentNode:pe.dom;if(Ce==null||Ce.ownerDocument===null)return!1;const Ye=Ce.ownerDocument;return to(Pt.fromDom(Ce)).fold(()=>Ye.body.contains(Ce),m(ao,_o))},co=()=>Go(Pt.fromDom(document)),Go=pe=>{const Ce=pe.dom.body;if(Ce==null)throw new Error("Body is not available yet");return Pt.fromDom(Ce)},po=(pe,Ce,Ye)=>W(Fn(pe,Ye),Ce),qo=(pe,Ce)=>W(Kn(pe),Ce),Ao=(pe,Ce)=>{let Ye=[];return U(Kn(pe),st=>{Ce(st)&&(Ye=Ye.concat([st])),Ye=Ye.concat(Ao(st,Ce))}),Ye},oi=(pe,Ce,Ye)=>po(pe,st=>tn(st,Ce),Ye),ko=(pe,Ce)=>qo(pe,Ye=>tn(Ye,Ce)),ra=(pe,Ce)=>fn(Ce,pe);var mo=(pe,Ce,Ye,st,St)=>pe(Ye,st)?C.some(Ye):p(St)&&St(Ye)?C.none():Ce(Ye,st,St);const Aa=(pe,Ce,Ye)=>{let st=pe.dom;const St=p(Ye)?Ye:T;for(;st.parentNode;){st=st.parentNode;const Ut=Pt.fromDom(st);if(Ce(Ut))return C.some(Ut);if(St(Ut))break}return C.none()},Xl=(pe,Ce,Ye)=>mo((St,Ut)=>Ut(St),Aa,pe,Ce,Ye),Na=(pe,Ce)=>{const Ye=St=>Ce(Pt.fromDom(St));return Y(pe.dom.childNodes,Ye).map(Pt.fromDom)},cs=(pe,Ce)=>{const Ye=st=>{for(let St=0;StAa(pe,st=>tn(st,Ce),Ye),ma=(pe,Ce)=>Na(pe,Ye=>tn(Ye,Ce)),Ku=(pe,Ce)=>dn(Ce,pe),qc=(pe,Ce,Ye)=>mo((St,Ut)=>tn(St,Ut),wc,pe,Ce,Ye),Yd=(pe,Ce,Ye=S)=>pe.exists(st=>Ye(st,Ce)),Ql=pe=>{const Ce=[],Ye=st=>{Ce.push(st)};for(let st=0;stpe!=null?Ce(pe):C.none(),Nf=(pe,Ce)=>pe?C.some(Ce):C.none(),mm=(pe,Ce)=>pe.substring(Ce),Ws=(pe,Ce,Ye)=>Ce===""||pe.length>=Ce.length&&pe.substr(Ye,Ye+Ce.length)===Ce,gm=(pe,Ce)=>pc(pe,Ce)?mm(pe,Ce.length):pe,Gl=(pe,Ce,Ye=0,st)=>{const St=pe.indexOf(Ce,Ye);return St!==-1?O(st)?!0:St+Ce.length<=st:!1},pc=(pe,Ce)=>Ws(pe,Ce,0),Cu=(pe,Ce)=>Ws(pe,Ce,pe.length-Ce.length),sa=(pe=>Ce=>Ce.replace(pe,""))(/^\s+|\s+$/g),cc=pe=>pe.length>0,hu=pe=>{const Ce=parseFloat(pe);return isNaN(Ce)?C.none():C.some(Ce)},ju=pe=>pe.style!==void 0&&p(pe.style.getPropertyValue),iu=(pe,Ce,Ye)=>{if(!l(Ye))throw console.error("Invalid call to CSS.set. Property ",Ce,":: Value ",Ye,":: Element ",pe),new Error("CSS value must be a string: "+Ye);ju(pe)&&pe.style.setProperty(Ce,Ye)},mc=(pe,Ce)=>{ju(pe)&&pe.style.removeProperty(Ce)},Ss=(pe,Ce,Ye)=>{const st=pe.dom;iu(st,Ce,Ye)},$f=(pe,Ce)=>{const Ye=pe.dom;Ie(Ce,(st,St)=>{iu(Ye,St,st)})},vf=(pe,Ce)=>{const Ye=pe.dom,St=window.getComputedStyle(Ye).getPropertyValue(Ce);return St===""&&!ao(pe)?Ju(Ye,Ce):St},Ju=(pe,Ce)=>ju(pe)?pe.style.getPropertyValue(Ce):"",$h=(pe,Ce)=>{const Ye=pe.dom,st=Ju(Ye,Ce);return C.from(st).filter(St=>St.length>0)},Es=(pe,Ce)=>{const Ye=pe.dom;mc(Ye,Ce),Yd(it(pe,"style").map(sa),"")&&at(pe,"style")},ef=(pe,Ce)=>{const Ye=pe.dom,st=Ce.dom;ju(Ye)&&ju(st)&&(st.style.cssText=Ye.style.cssText)},uc=(pe,Ce,Ye=0)=>it(pe,Ce).map(st=>parseInt(st,10)).getOr(Ye),ad=(pe,Ce)=>uc(pe,Ce,1),Vf=pe=>vt("col")(pe)?uc(pe,"span",1)>1:ad(pe,"colspan")>1,gc=pe=>ad(pe,"rowspan")>1,sd=(pe,Ce)=>parseInt(vf(pe,Ce),10),Mp=v(10),Xd=v(10),yf=(pe,Ce)=>mh(pe,Ce,E),mh=(pe,Ce,Ye)=>he(Kn(pe),st=>tn(st,Ce)?Ye(st)?[st]:[]:mh(st,Ce,Ye)),ld=(pe,Ce,Ye=T)=>{if(Ye(Ce))return C.none();if(z(pe,qt(Ce)))return C.some(Ce);const st=St=>tn(St,"table")||Ye(St);return wc(Ce,pe.join(","),st)},Vh=(pe,Ce)=>ld(["td","th"],pe,Ce),bf=pe=>yf(pe,"th,td"),tf=pe=>tn(pe,"colgroup")?ko(pe,"col"):he(cd(pe),Ce=>ko(Ce,"col")),Au=(pe,Ce)=>qc(pe,"table",Ce),xf=pe=>yf(pe,"tr"),cd=pe=>Au(pe).fold(v([]),Ce=>ko(Ce,"colgroup")),nf=(pe,Ce)=>j(pe,Ye=>{if(qt(Ye)==="colgroup"){const st=j(tf(Ye),St=>{const Ut=uc(St,"span",1);return hn(St,1,Ut)});return yr(Ye,st,"colgroup")}else{const st=j(bf(Ye),St=>{const Ut=uc(St,"rowspan",1),un=uc(St,"colspan",1);return hn(St,Ut,un)});return yr(Ye,st,Ce(Ye))}}),gh=pe=>Sr(pe).map(Ce=>{const Ye=qt(Ce);return bo(Ye)?Ye:"tbody"}).getOr("tbody"),rs=pe=>{const Ce=xf(pe),st=[...cd(pe),...Ce];return nf(st,gh)},ep=(pe,Ce)=>nf(pe,()=>Ce),Ep=pe=>{let Ce=!1,Ye;return(...st)=>(Ce||(Ce=!0,Ye=pe.apply(null,st)),Ye)},vm=(pe,Ce,Ye,st)=>{const St=pe.isiOS()&&/ipad/i.test(Ye)===!0,Ut=pe.isiOS()&&!St,un=pe.isiOS()||pe.isAndroid(),Tn=un||st("(pointer:coarse)"),$n=St||!Ut&&un&&st("(min-device-width:768px)"),ur=Ut||un&&!$n,Nr=Ce.isSafari()&&pe.isiOS()&&/safari/i.test(Ye)===!1,Ro=!ur&&!$n&&!Nr;return{isiPad:v(St),isiPhone:v(Ut),isTablet:v($n),isPhone:v(ur),isTouch:v(Tn),isAndroid:pe.isAndroid,isiOS:pe.isiOS,isWebView:v(Nr),isDesktop:v(Ro)}},Pd=(pe,Ce)=>{for(let Ye=0;Ye{const Ye=Pd(pe,Ce);if(!Ye)return{major:0,minor:0};const st=St=>Number(Ce.replace(Ye,"$"+St));return _f(st(1),st(2))},sr=(pe,Ce)=>{const Ye=String(Ce).toLowerCase();return pe.length===0?Pp():M0(pe,Ye)},Pp=()=>_f(0,0),_f=(pe,Ce)=>({major:pe,minor:Ce}),wf={nu:_f,detect:sr,unknown:Pp},Rp=(pe,Ce)=>Se(Ce.brands,Ye=>{const st=Ye.brand.toLowerCase();return Y(pe,St=>{var Ut;return st===((Ut=St.brand)===null||Ut===void 0?void 0:Ut.toLowerCase())}).map(St=>({current:St.name,version:wf.nu(parseInt(Ye.version,10),0)}))}),Gd=(pe,Ce)=>{const Ye=String(Ce).toLowerCase();return Y(pe,st=>st.search(Ye))},Fa=(pe,Ce)=>Gd(pe,Ce).map(Ye=>{const st=wf.detect(Ye.versionRegexes,Ce);return{current:Ye.name,version:st}}),Qu=(pe,Ce)=>Gd(pe,Ce).map(Ye=>{const st=wf.detect(Ye.versionRegexes,Ce);return{current:Ye.name,version:st}}),rf=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Bc=pe=>Ce=>Gl(Ce,pe),ym=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:pe=>Gl(pe,"edge/")&&Gl(pe,"chrome")&&Gl(pe,"safari")&&Gl(pe,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,rf],search:pe=>Gl(pe,"chrome")&&!Gl(pe,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:pe=>Gl(pe,"msie")||Gl(pe,"trident")},{name:"Opera",versionRegexes:[rf,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Bc("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Bc("firefox")},{name:"Safari",versionRegexes:[rf,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:pe=>(Gl(pe,"safari")||Gl(pe,"mobile/"))&&Gl(pe,"applewebkit")}],Mu=[{name:"Windows",search:Bc("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:pe=>Gl(pe,"iphone")||Gl(pe,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Bc("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Bc("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Bc("linux"),versionRegexes:[]},{name:"Solaris",search:Bc("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Bc("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Bc("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Hu={browsers:v(ym),oses:v(Mu)},Lp="Edge",Uh="Chromium",jh="IE",Eu="Opera",ud="Firefox",vh="Safari",Pu=()=>Oc({current:void 0,version:wf.unknown()}),Oc=pe=>{const Ce=pe.current,Ye=pe.version,st=St=>()=>Ce===St;return{current:Ce,version:Ye,isEdge:st(Lp),isChromium:st(Uh),isIE:st(jh),isOpera:st(Eu),isFirefox:st(ud),isSafari:st(vh)}},ks={unknown:Pu,nu:Oc,edge:v(Lp),chromium:v(Uh),ie:v(jh),opera:v(Eu),firefox:v(ud),safari:v(vh)},Uf="Windows",zl="iOS",Hl="Android",Ts="Linux",$s="macOS",Zu="Solaris",yh="FreeBSD",of="ChromeOS",tp=()=>Ip({current:void 0,version:wf.unknown()}),Ip=pe=>{const Ce=pe.current,Ye=pe.version,st=St=>()=>Ce===St;return{current:Ce,version:Ye,isWindows:st(Uf),isiOS:st(zl),isAndroid:st(Hl),isMacOS:st($s),isLinux:st(Ts),isSolaris:st(Zu),isFreeBSD:st(yh),isChromeOS:st(of)}},bm={unknown:tp,nu:Ip,windows:v(Uf),ios:v(zl),android:v(Hl),linux:v(Ts),macos:v($s),solaris:v(Zu),freebsd:v(yh),chromeos:v(of)},bh={detect:(pe,Ce,Ye)=>{const st=Hu.browsers(),St=Hu.oses(),Ut=Ce.bind($n=>Rp(st,$n)).orThunk(()=>Fa(st,pe)).fold(ks.unknown,ks.nu),un=Qu(St,pe).fold(bm.unknown,bm.nu),Tn=vm(un,Ut,pe,Ye);return{browser:Ut,os:un,deviceType:Tn}}},Jd=pe=>window.matchMedia(pe).matches;let zc=Ep(()=>bh.detect(navigator.userAgent,C.from(navigator.userAgentData),Jd));const np=()=>zc(),ms=(pe,Ce)=>{const Ye=(Tn,$n)=>{if(!a($n)&&!$n.match(/^[0-9]+$/))throw new Error(pe+".set accepts only positive integer values. Value was "+$n);const ur=Tn.dom;ju(ur)&&(ur.style[pe]=$n+"px")},st=Tn=>{const $n=Ce(Tn);if($n<=0||$n===null){const ur=vf(Tn,pe);return parseFloat(ur)||0}return $n},St=st,Ut=(Tn,$n)=>oe($n,(ur,Nr)=>{const Ro=vf(Tn,Nr),ai=Ro===void 0?0:parseInt(Ro,10);return isNaN(ai)?ur:ur+ai},0);return{set:Ye,get:st,getOuter:St,aggregate:Ut,max:(Tn,$n,ur)=>{const Nr=Ut(Tn,ur);return $n>Nr?$n-Nr:0}}},Ya=(pe,Ce)=>hu(pe).getOr(Ce),bl=(pe,Ce,Ye)=>Ya(vf(pe,Ce),Ye),fl=(pe,Ce,Ye,st)=>{const St=bl(pe,`padding-${Ye}`,0),Ut=bl(pe,`padding-${st}`,0),un=bl(pe,`border-${Ye}-width`,0),Tn=bl(pe,`border-${st}-width`,0);return Ce-St-Ut-un-Tn},Wc=(pe,Ce)=>{const Ye=pe.dom,st=Ye.getBoundingClientRect().width||Ye.offsetWidth;return Ce==="border-box"?st:fl(pe,st,"left","right")},xl=pe=>bl(pe,"height",pe.dom.offsetHeight),xi=pe=>bl(pe,"width",pe.dom.offsetWidth),pu=pe=>Wc(pe,"content-box"),xh=ms("width",pe=>pe.dom.offsetWidth),js=pe=>xh.get(pe),os=pe=>xh.getOuter(pe),af=pu,Of=xi,sf=(pe,Ce,Ye)=>{const st=pe.cells,St=st.slice(0,Ce),Ut=st.slice(Ce),un=St.concat(Ye).concat(Ut);return pi(pe,un)},Ml=(pe,Ce,Ye)=>sf(pe,Ce,[Ye]),Hi=(pe,Ce,Ye)=>{const st=pe.cells;st[Ce]=Ye},pi=(pe,Ce)=>nr(pe.element,Ce,pe.section,pe.isNew),Qh=(pe,Ce)=>{const Ye=pe.cells,st=j(Ye,Ce);return nr(pe.element,st,pe.section,pe.isNew)},Ru=(pe,Ce)=>pe.cells[Ce],vc=(pe,Ce)=>Ru(pe,Ce).element,Yc=pe=>pe.cells.length,Kl=pe=>{const Ce=te(pe,Ye=>Ye.section==="colgroup");return{rows:Ce.fail,cols:Ce.pass}},Fc=(pe,Ce,Ye)=>{const st=j(pe.cells,Ye);return nr(Ce(pe.element),st,pe.section,!0)},si="data-snooker-locked-cols",Hh=pe=>it(pe,si).bind(Ce=>C.from(Ce.match(/\d+/g))).map(Ce=>ce(Ce,E)),Ps=pe=>{const Ce=oe(Kl(pe).rows,(st,St)=>(U(St.cells,(Ut,un)=>{Ut.isLocked&&(st[un]=!0)}),st),{}),Ye=Oe(Ce,(st,St)=>parseInt(St,10));return de(Ye)},Sc=(pe,Ce)=>pe+","+Ce,tl=(pe,Ce,Ye)=>C.from(pe.access[Sc(Ce,Ye)]),mu=(pe,Ce,Ye)=>{const st=gu(pe,St=>Ye(Ce,St.element));return st.length>0?C.some(st[0]):C.none()},gu=(pe,Ce)=>{const Ye=he(pe.all,st=>st.cells);return W(Ye,Ce)},ja=pe=>{const Ce={};let Ye=0;return U(pe.cells,st=>{const St=st.colspan;Q(St,Ut=>{const un=Ye+Ut;Ce[un]=Hn(st.element,St,un)}),Ye+=St}),Ce},vu=pe=>{const Ce={},Ye=[],St=ye(pe).map(Ko=>Ko.element).bind(Au).bind(Hh).getOr({});let Ut=0,un=0,Tn=0;const{pass:$n,fail:ur}=te(pe,Ko=>Ko.section==="colgroup");U(ur,Ko=>{const Qo=[];U(Ko.cells,_i=>{let To=0;for(;Ce[Sc(Tn,To)]!==void 0;)To++;const Zo=Ue(St,To.toString()),Yi=Zn(_i.element,_i.rowspan,_i.colspan,Tn,To,Zo);for(let ri=0;ri<_i.colspan;ri++)for(let Ms=0;Ms<_i.rowspan;Ms++){const al=Tn+Ms,Gs=To+ri,td=Sc(al,Gs);Ce[td]=Yi,un=Math.max(un,Gs+1)}Qo.push(Yi)}),Ut++,Ye.push(yr(Ko.element,Qo,Ko.section)),Tn++});const{columns:Nr,colgroups:Ro}=_e($n).map(Ko=>{const Qo=ja(Ko);return{colgroups:[tr(Ko.element,ke(Qo))],columns:Qo}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:Bn(Ut,un),access:Ce,all:Ye,columns:Nr,colgroups:Ro}},Xi={fromTable:pe=>{const Ce=rs(pe);return vu(Ce)},generate:vu,getAt:tl,findItem:mu,filterItems:gu,justCells:pe=>he(pe.all,Ce=>Ce.cells),justColumns:pe=>ke(pe.columns),hasColumns:pe=>Te(pe.columns).length>0,getColumnAt:(pe,Ce)=>C.from(pe.columns[Ce])},Xc=(pe,Ce=E)=>{const Ye=pe.grid,st=Q(Ye.columns,_),St=Q(Ye.rows,_);return j(st,Ut=>jf(()=>he(St,ur=>Xi.getAt(pe,ur,Ut).filter(Nr=>Nr.column===Ut).toArray()),ur=>ur.colspan===1&&Ce(ur.element),()=>Xi.getAt(pe,0,Ut)))},jf=(pe,Ce,Ye)=>{const st=pe();return Y(st,Ce).orThunk(()=>C.from(st[0]).orThunk(Ye)).map(un=>un.element)},yu=pe=>{const Ce=pe.grid,Ye=Q(Ce.rows,_),st=Q(Ce.columns,_);return j(Ye,St=>jf(()=>he(st,$n=>Xi.getAt(pe,St,$n).filter(ur=>ur.row===St).fold(v([]),ur=>[ur])),$n=>$n.rowspan===1,()=>Xi.getAt(pe,St,0)))},Dp=(pe,Ce)=>{if(Ce<0||Ce>=pe.length-1)return C.none();const Ye=pe[Ce].fold(()=>{const St=ae(pe.slice(0,Ce));return Se(St,(Ut,un)=>Ut.map(Tn=>({value:Tn,delta:un+1})))},St=>C.some({value:St,delta:0})),st=pe[Ce+1].fold(()=>{const St=pe.slice(Ce+1);return Se(St,(Ut,un)=>Ut.map(Tn=>({value:Tn,delta:un+1})))},St=>C.some({value:St,delta:1}));return Ye.bind(St=>st.map(Ut=>{const un=Ut.delta+St.delta;return Math.abs(Ut.value-St.value)/un}))},rp=(pe,Ce)=>Ye=>Lu(Ye)==="rtl"?Ce:pe,Lu=pe=>vf(pe,"direction")==="rtl"?"rtl":"ltr",us=ms("height",pe=>{const Ce=pe.dom;return ao(pe)?Ce.getBoundingClientRect().height:Ce.offsetHeight}),Qf=pe=>us.get(pe),fd=pe=>us.getOuter(pe),Hf=xl,_h=(pe,Ce)=>({left:pe,top:Ce,translate:(st,St)=>_h(pe+st,Ce+St)}),Gc=_h,dd=pe=>{const Ce=pe.getBoundingClientRect();return Gc(Ce.left,Ce.top)},rl=(pe,Ce)=>pe!==void 0?pe:Ce!==void 0?Ce:0,Dd=pe=>{const Ce=pe.dom.ownerDocument,Ye=Ce.body,st=Ce.defaultView,St=Ce.documentElement;if(Ye===pe.dom)return Gc(Ye.offsetLeft,Ye.offsetTop);const Ut=rl(st==null?void 0:st.pageYOffset,St.scrollTop),un=rl(st==null?void 0:st.pageXOffset,St.scrollLeft),Tn=rl(St.clientTop,Ye.clientTop),$n=rl(St.clientLeft,Ye.clientLeft);return Vi(pe).translate(un-$n,Ut-Tn)},Vi=pe=>{const Ce=pe.dom,st=Ce.ownerDocument.body;return st===Ce?Gc(st.offsetLeft,st.offsetTop):ao(pe)?dd(Ce):Gc(0,0)},fa=(pe,Ce)=>({row:pe,y:Ce}),au=(pe,Ce)=>({col:pe,x:Ce}),Zf=pe=>Dd(pe).left+os(pe),Zl=pe=>Dd(pe).left,Jl=(pe,Ce)=>au(pe,Zl(Ce)),Bd=(pe,Ce)=>au(pe,Zf(Ce)),Qs=pe=>Dd(pe).top,kc=(pe,Ce)=>fa(pe,Qs(Ce)),Iu=(pe,Ce)=>fa(pe,Qs(Ce)+fd(Ce)),Ea=(pe,Ce,Ye)=>{if(Ye.length===0)return[];const st=j(Ye.slice(1),(Ut,un)=>Ut.map(Tn=>pe(un,Tn))),St=Ye[Ye.length-1].map(Ut=>Ce(Ye.length-1,Ut));return st.concat([St])},El=pe=>-pe,_l={delta:_,positions:pe=>Ea(kc,Iu,pe),edge:Qs},Ot=rp({delta:_,edge:Zl,positions:pe=>Ea(Jl,Bd,pe)},{delta:El,edge:Zf,positions:pe=>Ea(Bd,Jl,pe)}),Mt={delta:(pe,Ce)=>Ot(Ce).delta(pe,Ce),positions:(pe,Ce)=>Ot(Ce).positions(pe,Ce),edge:pe=>Ot(pe).edge(pe)},Ft={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},J=(()=>{const pe="[0-9]+",Ye="[eE]"+("[+-]?"+pe),st="\\.",St=Tn=>`(?:${Tn})?`,un=`[+-]?(?:${["Infinity",pe+st+St(pe)+St(Ye),st+pe+St(Ye),pe+St(Ye)].join("|")})`;return new RegExp(`^(${un})(.*)$`)})(),le=(pe,Ce)=>$(Ce,Ye=>$(Ft[Ye],st=>pe===st)),ie=(pe,Ce)=>C.from(J.exec(pe)).bind(st=>{const St=Number(st[1]),Ut=st[2];return le(Ut,Ce)?C.some({value:St,unit:Ut}):C.none()}),V=/(\d+(\.\d+)?)%/,ne=/(\d+(\.\d+)?)px|em/,ge=vt("col"),xe=vt("tr"),Me=(pe,Ce,Ye)=>{const st=ar(pe).getOrThunk(()=>Go(En(pe)));return Ce(pe)/Ye(st)*100},Fe=(pe,Ce)=>{Ss(pe,"width",Ce+"px")},Je=(pe,Ce)=>{Ss(pe,"width",Ce+"%")},rt=(pe,Ce)=>{Ss(pe,"height",Ce+"px")},dt=pe=>{Es(pe,"height")},mt=pe=>Hf(pe)+"px",Et=(pe,Ce,Ye,st)=>{const St=Au(pe).map(Ut=>{const un=Ye(Ut);return Math.floor(Ce/100*un)}).getOr(Ce);return st(pe,St),St},Vt=(pe,Ce,Ye,st)=>{const St=parseFloat(pe);return Cu(pe,"%")&&qt(Ce)!=="table"?Et(Ce,St,Ye,st):St},jt=pe=>{const Ce=mt(pe);return Ce?Vt(Ce,pe,Qf,rt):Qf(pe)},Nt=(pe,Ce,Ye)=>{const st=Ye(pe),St=ad(pe,Ce);return st/St},cn=(pe,Ce)=>$h(pe,Ce).orThunk(()=>it(pe,Ce).map(Ye=>Ye+"px")),sn=pe=>cn(pe,"width"),xn=pe=>cn(pe,"height"),pn=pe=>Me(pe,js,af),Ln=pe=>ge(pe)?js(pe):Of(pe),On=pe=>xe(pe)?Qf(pe):Nt(pe,"rowspan",jt),An=pe=>sn(pe).bind(Ye=>ie(Ye,["fixed","relative","empty"])),Sn=(pe,Ce,Ye)=>{Ss(pe,"width",Ce+Ye)},rr=pe=>js(pe)+"px",Dr=pe=>Qf(pe)+"px",Pr=pe=>Me(pe,js,af)+"%",Zr=pe=>sn(pe).exists(Ce=>V.test(Ce)),Mo=pe=>sn(pe).exists(Ce=>ne.test(Ce)),$o=pe=>sn(pe).isNone(),vo=v(V),zo=vt("col"),yi=pe=>sn(pe).getOrThunk(()=>Ln(pe)+"px"),Si=pe=>xn(pe).getOrThunk(()=>On(pe)+"px"),Hr=pe=>j(Xi.justColumns(pe),Ce=>C.from(Ce.element)),Lo=pe=>{const Ce=np().browser,Ye=Ce.isChromium()||Ce.isFirefox();return zo(pe)?Ye:!0},ki=(pe,Ce,Ye,st,St,Ut)=>pe.filter(st).fold(()=>Ut(Dp(Ye,Ce)),un=>St(un)),Io=(pe,Ce,Ye,st)=>{const St=Xc(pe),Ut=Xi.hasColumns(pe)?Hr(pe):St,un=[C.some(Mt.edge(Ce))].concat(j(Mt.positions(St,Ce),$n=>$n.map(ur=>ur.x))),Tn=x(Vf);return j(Ut,($n,ur)=>ki($n,ur,un,Tn,Nr=>{if(Lo(Nr))return Ye(Nr);{const Ro=Ed(St[ur],_);return ki(Ro,ur,un,Tn,ai=>st(C.some(js(ai))),st)}},st))},$i=pe=>pe.map(Ce=>Ce+"px").getOr(""),Ui=(pe,Ce)=>Io(pe,Ce,yi,$i),ba=(pe,Ce,Ye)=>Io(pe,Ce,pn,st=>st.fold(()=>Ye.minCellWidth(),St=>St/Ye.pixelWidth()*100)),Pi=(pe,Ce,Ye)=>Io(pe,Ce,Ln,st=>st.getOrThunk(Ye.minCellWidth)),fs=(pe,Ce,Ye,st)=>{const St=yu(pe),Ut=j(pe.all,Tn=>C.some(Tn.element)),un=[C.some(_l.edge(Ce))].concat(j(_l.positions(St,Ce),Tn=>Tn.map($n=>$n.y)));return j(Ut,(Tn,$n)=>ki(Tn,$n,un,E,Ye,st))},mr=(pe,Ce)=>fs(pe,Ce,On,Ye=>Ye.getOrThunk(Xd)),ys=(pe,Ce)=>fs(pe,Ce,Si,$i),Pl=(pe,Ce)=>()=>ao(pe)?Ce(pe):parseFloat($h(pe,"width").getOr("0")),Ys=pe=>{const Ce=Pl(pe,js),Ye=v(0);return{width:Ce,pixelWidth:Ce,getWidths:(St,Ut)=>Pi(St,pe,Ut),getCellDelta:Ye,singleColumnWidth:v([0]),minCellWidth:Ye,setElementWidth:u,adjustTableWidth:u,isRelative:!0,label:"none"}},dl=pe=>{const Ce=Pl(pe,$n=>parseFloat(Pr($n))),Ye=Pl(pe,js);return{width:Ce,pixelWidth:Ye,getWidths:($n,ur)=>ba($n,pe,ur),getCellDelta:$n=>$n/Ye()*100,singleColumnWidth:($n,ur)=>[100-$n],minCellWidth:()=>Mp()/Ye()*100,setElementWidth:Je,adjustTableWidth:$n=>{const ur=Ce(),Nr=$n/100*ur,Ro=ur+Nr;Je(pe,Ro)},isRelative:!0,label:"percent"}},ds=pe=>{const Ce=Pl(pe,js);return{width:Ce,pixelWidth:Ce,getWidths:(un,Tn)=>Pi(un,pe,Tn),getCellDelta:_,singleColumnWidth:(un,Tn)=>[Math.max(Mp(),un+Tn)-un],minCellWidth:Mp,setElementWidth:Fe,adjustTableWidth:un=>{const Tn=Ce()+un;Fe(pe,Tn)},isRelative:!1,label:"pixel"}},Pa=(pe,Ce)=>vo().exec(Ce)!==null?dl(pe):ds(pe),Ls={getTableSize:pe=>sn(pe).fold(()=>Ys(pe),Ye=>Pa(pe,Ye)),pixelSize:ds,percentageSize:dl,noneSize:Ys},ol=(pe,Ce,Ye,st,St,Ut)=>({minRow:pe,minCol:Ce,maxRow:Ye,maxCol:st,allCells:St,selectedCells:Ut}),Is=(pe,Ce)=>{const Ye=pe.grid.columns;let St=pe.grid.rows,Ut=Ye,un=0,Tn=0;const $n=[],ur=[];return Ie(pe.access,Nr=>{if($n.push(Nr),Ce(Nr)){ur.push(Nr);const Ro=Nr.row,ai=Ro+Nr.rowspan-1,Ko=Nr.column,Qo=Ko+Nr.colspan-1;Roun&&(un=ai),KoTn&&(Tn=Qo)}}),ol(St,Ut,un,Tn,$n,ur)},Ds=(pe,Ce,Ye)=>{const st=pe[Ye].element,St=Pt.fromTag("td");$r(St,Pt.fromTag("br")),(Ce?$r:Rr)(st,St)},ec=(pe,Ce,Ye,st)=>{const St=W(pe,Tn=>Tn.section!=="colgroup"),Ut=Ce.grid.columns,un=Ce.grid.rows;for(let Tn=0;TnYe.maxRow||urYe.maxCol||(Xi.getAt(Ce,Tn,ur).filter(st).isNone()?Ds(St,$n,Tn):$n=!0)}},Tc=(pe,Ce,Ye,st)=>{Ie(Ye.columns,un=>{(un.columnCe.maxCol)&&li(un.element)});const St=W(yf(pe,"tr"),un=>un.dom.childElementCount===0);U(St,li),(Ce.minCol===Ce.maxCol||Ce.minRow===Ce.maxRow)&&U(yf(pe,"th,td"),un=>{at(un,"rowspan"),at(un,"colspan")}),at(pe,si),at(pe,"data-snooker-col-series"),Ls.getTableSize(pe).adjustTableWidth(st)},op=(pe,Ce,Ye,st)=>{if(st.minCol===0&&Ce.grid.columns===st.maxCol+1)return 0;const St=Pi(Ce,pe,Ye),Ut=oe(St,(ur,Nr)=>ur+Nr,0),$n=oe(St.slice(st.minCol,st.maxCol+1),(ur,Nr)=>ur+Nr,0)/Ut*Ye.pixelWidth()-Ye.pixelWidth();return Ye.getCellDelta($n)},ip=(pe,Ce)=>{const Ye=ai=>tn(ai.element,Ce),st=dr(pe),St=rs(st),Ut=Ls.getTableSize(pe),un=Xi.generate(St),Tn=Is(un,Ye),$n="th:not("+Ce+"),td:not("+Ce+")",ur=mh(st,"th,td",ai=>tn(ai,$n));U(ur,li),ec(St,un,Tn,Ye);const Nr=Xi.fromTable(pe),Ro=op(pe,Nr,Ut,Tn);return Tc(st,Tn,un,Ro),st},Hs=" ",hd=((pe,Ce)=>{const Ye=Ut=>{if(!pe(Ut))throw new Error("Can only get "+Ce+" value of a "+Ce+" node");return st(Ut).getOr("")},st=Ut=>pe(Ut)?C.from(Ut.dom.nodeValue):C.none();return{get:Ye,getOption:st,set:(Ut,un)=>{if(!pe(Ut))throw new Error("Can only set raw "+Ce+" value of a "+Ce+" node");Ut.dom.nodeValue=un}}})(gn,"text"),qf=pe=>hd.get(pe),tc=pe=>hd.getOption(pe),Wf=(pe,Ce)=>hd.set(pe,Ce),Rl=pe=>qt(pe)==="img"?1:tc(pe).fold(()=>Kn(pe).length,Ce=>Ce.length),lg=pe=>tc(pe).filter(Ce=>Ce.trim().length!==0||Ce.indexOf(Hs)>-1).isSome(),E0=pe=>_t(pe)&&Rt(pe,"contenteditable")==="false",xm=["img","br"],Cx=pe=>lg(pe)||z(xm,qt(pe))||E0(pe),eh=pe=>cs(pe,Cx),Ax=pe=>Wg(pe,Cx),Wg=(pe,Ce)=>{const Ye=st=>{const St=Kn(st);for(let Ut=St.length-1;Ut>=0;Ut--){const un=St[Ut];if(Ce(un))return C.some(un);const Tn=Ye(un);if(Tn.isSome())return Tn}return C.none()};return Ye(pe)},Mx={scope:["row","col"]},O1=pe=>()=>{const Ce=Pt.fromTag("td",pe.dom);return $r(Ce,Pt.fromTag("br",pe.dom)),Ce},oc=pe=>()=>Pt.fromTag("col",pe.dom),_m=pe=>()=>Pt.fromTag("colgroup",pe.dom),Yg=pe=>()=>Pt.fromTag("tr",pe.dom),wm=(pe,Ce,Ye)=>{const st=io(pe,Ce);return Ie(Ye,(St,Ut)=>{St===null?at(st,Ut):lt(st,Ut,St)}),st},cb=pe=>pe,Oh=(pe,Ce,Ye)=>eh(pe).map(St=>{const Ut=Ye.join(","),un=oi(St,Ut,Tn=>vn(Tn,pe));return K(un,(Tn,$n)=>{const ur=br($n);return $r(Tn,ur),ur},Ce)}).getOr(Ce),Ex=(pe,Ce)=>{Ie(Mx,(Ye,st)=>it(pe,st).filter(St=>z(Ye,St)).each(St=>lt(Ce,st,St)))},kf=(pe,Ce,Ye)=>{const st=(un,Tn)=>{ef(un.element,Tn),Es(Tn,"height"),un.colspan!==1&&Es(Tn,"width")},St=un=>{const Tn=Pt.fromTag(qt(un.element),Ce.dom),$n=Ye.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),ur=$n.length>0?Oh(un.element,Tn,$n):Tn;return $r(ur,Pt.fromTag("br")),st(un,Tn),Ex(un.element,Tn),pe(un.element,Tn),Tn};return{col:un=>{const Tn=Pt.fromTag(qt(un.element),Ce.dom);return st(un,Tn),pe(un.element,Tn),Tn},colgroup:_m(Ce),row:Yg(Ce),cell:St,replace:wm,colGap:oc(Ce),gap:O1(Ce)}},Hv=pe=>({col:oc(pe),colgroup:_m(pe),row:Yg(pe),cell:O1(pe),replace:cb,colGap:oc(pe),gap:O1(pe)}),Om=(pe,Ce)=>{const st=(Ce||document).createElement("div");return st.innerHTML=pe,Kn(Pt.fromDom(st))},Sm=pe=>j(pe,Pt.fromDom),ap=pe=>Ce=>Ce.options.get(pe),Bp="100%",P0=pe=>{var Ce;const Ye=pe.dom,st=(Ce=Ye.getParent(pe.selection.getStart(),Ye.isBlock))!==null&&Ce!==void 0?Ce:pe.getBody();return af(Pt.fromDom(st))+"px"},cg=(pe,Ce)=>lp(pe)||!fb(pe)?Ce:Gg(pe)?{...Ce,width:P0(pe)}:{...Ce,width:Bp},Zv=(pe,Ce)=>lp(pe)||fb(pe)?Ce:Gg(pe)?{...Ce,width:P0(pe)}:{...Ce,width:Bp},R0=pe=>{const Ce=pe.options.register;Ce("table_clone_elements",{processor:"string[]"}),Ce("table_use_colgroups",{processor:"boolean",default:!0}),Ce("table_header_type",{processor:Ye=>{const st=z(["section","cells","sectionCells","auto"],Ye);return st?{value:Ye,valid:st}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),Ce("table_sizing_mode",{processor:"string",default:"auto"}),Ce("table_default_attributes",{processor:"object",default:{border:"1"}}),Ce("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),Ce("table_column_resizing",{processor:Ye=>{const st=z(["preservetable","resizetable"],Ye);return st?{value:Ye,valid:st}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),Ce("table_resize_bars",{processor:"boolean",default:!0}),Ce("table_style_by_css",{processor:"boolean",default:!0}),Ce("table_merge_content_on_paste",{processor:"boolean",default:!0})},C_=pe=>C.from(pe.options.get("table_clone_elements")),sp=pe=>{const Ce=pe.options.get("object_resizing");return z(Ce.split(","),"table")},A_=ap("table_header_type"),ub=ap("table_column_resizing"),Fl=pe=>ub(pe)==="preservetable",Yf=pe=>ub(pe)==="resizetable",km=ap("table_sizing_mode"),Xg=pe=>km(pe)==="relative",Gg=pe=>km(pe)==="fixed",lp=pe=>km(pe)==="responsive",cp=ap("table_resize_bars"),fb=ap("table_style_by_css"),up=ap("table_merge_content_on_paste"),Xf=pe=>{const Ce=pe.options,Ye=Ce.get("table_default_attributes");return Ce.isSet("table_default_attributes")?Ye:Zv(pe,Ye)},L0=pe=>{const Ce=pe.options,Ye=Ce.get("table_default_styles");return Ce.isSet("table_default_styles")?Ye:cg(pe,Ye)},Px=ap("table_use_colgroups"),zp=pe=>qc(pe,"[contenteditable]"),Kg=(pe,Ce=!1)=>ao(pe)?pe.dom.isContentEditable:zp(pe).fold(v(Ce),Ye=>M_(Ye)==="true"),M_=pe=>pe.dom.contentEditable,S1=pe=>Pt.fromDom(pe.getBody()),Tm=pe=>Ce=>vn(Ce,S1(pe)),zd=pe=>{at(pe,"data-mce-style");const Ce=Ye=>at(Ye,"data-mce-style");U(bf(pe),Ce),U(tf(pe),Ce),U(xf(pe),Ce)},fp=pe=>Pt.fromDom(pe.selection.getStart()),I0=pe=>pe.getBoundingClientRect().width,E_=pe=>pe.getBoundingClientRect().height,Jg=pe=>(Ce,Ye)=>{const st=Ce.dom.getStyle(Ye,pe)||Ce.dom.getAttrib(Ye,pe);return C.from(st).filter(cc)},P_=Jg("width"),k1=Jg("height"),zO=pe=>/^(\d+(\.\d+)?)%$/.test(pe),bu=pe=>/^(\d+(\.\d+)?)px$/.test(pe),Cm=pe=>Xl(pe,vt("table")).exists(Kg),D0=(pe,Ce)=>{const Ye=Ce.column,st=Ce.column+Ce.colspan-1,St=Ce.row,Ut=Ce.row+Ce.rowspan-1;return Ye<=pe.finishCol&&st>=pe.startCol&&St<=pe.finishRow&&Ut>=pe.startRow},Sa=(pe,Ce)=>Ce.column>=pe.startCol&&Ce.column+Ce.colspan-1<=pe.finishCol&&Ce.row>=pe.startRow&&Ce.row+Ce.rowspan-1<=pe.finishRow,Ri=(pe,Ce)=>{let Ye=!0;const st=A(Sa,Ce);for(let St=Ce.startRow;St<=Ce.finishRow;St++)for(let Ut=Ce.startCol;Ut<=Ce.finishCol;Ut++)Ye=Ye&&Xi.getAt(pe,St,Ut).exists(st);return Ye?C.some(Ce):C.none()},Fp=(pe,Ce)=>Qn(Math.min(pe.row,Ce.row),Math.min(pe.column,Ce.column),Math.max(pe.row+pe.rowspan-1,Ce.row+Ce.rowspan-1),Math.max(pe.column+pe.colspan-1,Ce.column+Ce.colspan-1)),qv=(pe,Ce,Ye)=>{const st=Xi.findItem(pe,Ce,vn),St=Xi.findItem(pe,Ye,vn);return st.bind(Ut=>St.map(un=>Fp(Ut,un)))},db=(pe,Ce,Ye)=>qv(pe,Ce,Ye).bind(st=>Ri(pe,st)),T1=(pe,Ce,Ye,st)=>Xi.findItem(pe,Ce,vn).bind(St=>{const Ut=Ye>0?St.row+St.rowspan-1:St.row,un=st>0?St.column+St.colspan-1:St.column;return Xi.getAt(pe,Ut+Ye,un+st).map($n=>$n.element)}),Np=(pe,Ce,Ye)=>qv(pe,Ce,Ye).map(st=>{const St=Xi.filterItems(pe,A(D0,st));return j(St,Ut=>Ut.element)}),hl=(pe,Ce)=>{const Ye=(st,St)=>Nn(St,st);return Xi.findItem(pe,Ce,Ye).map(st=>st.element)},FO=(pe,Ce,Ye)=>Au(pe).bind(st=>{const St=e0(st);return T1(St,pe,Ce,Ye)}),Rx=(pe,Ce,Ye)=>{const st=e0(pe);return Np(st,Ce,Ye)},B0=(pe,Ce,Ye,st,St)=>{const Ut=e0(pe),un=vn(pe,Ye)?C.some(Ce):hl(Ut,Ce),Tn=vn(pe,St)?C.some(st):hl(Ut,st);return un.bind($n=>Tn.bind(ur=>Np(Ut,$n,ur)))},fo=(pe,Ce,Ye)=>{const st=e0(pe);return db(st,Ce,Ye)},e0=Xi.fromTable;var xS=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],ug=()=>{const pe=ur=>Pt.fromDom(ur.dom.cloneNode(!1)),Ce=ur=>In(ur).dom,Ye=ur=>nn(ur)?qt(ur)==="body"?!0:z(xS,qt(ur)):!1,st=ur=>nn(ur)?z(["br","img","hr","input"],qt(ur)):!1,St=ur=>nn(ur)&&Rt(ur,"contenteditable")==="false",Ut=(ur,Nr)=>ur.dom.compareDocumentPosition(Nr.dom),un=(ur,Nr)=>{const Ro=Lt(ur);yt(Nr,Ro)},Tn=ur=>{const Nr=qt(ur);return z(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],Nr)},$n=ur=>nn(ur)?it(ur,"lang"):C.none();return{up:v({selector:wc,closest:qc,predicate:Aa,all:Fn}),down:v({selector:ra,predicate:Ao}),styles:v({get:vf,getRaw:$h,set:Ss,remove:Es}),attrs:v({get:Rt,set:lt,remove:at,copyTo:un}),insert:v({before:zr,after:Fr,afterAll:so,append:$r,appendAll:So,prepend:Rr,wrap:Co}),remove:v({unwrap:Pn,remove:li}),create:v({nu:Pt.fromTag,clone:pe,text:Pt.fromText}),query:v({comparePosition:Ut,prevSibling:ir,nextSibling:Wn}),property:v({children:Kn,name:qt,parent:Sr,document:Ce,isText:gn,isComment:Ct,isElement:nn,isSpecial:Tn,getLanguage:$n,getText:qf,setText:Wf,isBoundary:Ye,isEmptyTag:st,isNonEditable:St}),eq:vn,is:er}};const R_=(pe,Ce,Ye,st)=>{const St=Ye[0],Ut=Ye.slice(1);return st(pe,Ce,St,Ut)},Fd=(pe,Ce,Ye)=>Ye.length>0?R_(pe,Ce,Ye,L_):C.none(),L_=(pe,Ce,Ye,st)=>{const St=Ce(pe,Ye);return K(st,(Ut,un)=>{const Tn=Ce(pe,un);return Am(pe,Ut,Tn)},St)},Am=(pe,Ce,Ye)=>Ce.bind(st=>Ye.filter(A(pe.eq,st))),I_=(pe,Ce)=>A(pe.eq,Ce),Wv=(pe,Ce,Ye,st=T)=>{const St=[Ce].concat(pe.up().all(Ce)),Ut=[Ye].concat(pe.up().all(Ye)),un=Nr=>ee(Nr,st).fold(()=>Nr,ai=>Nr.slice(0,ai+1)),Tn=un(St),$n=un(Ut),ur=Y(Tn,Nr=>$($n,I_(pe,Nr)));return{firstpath:Tn,secondpath:$n,shared:ur}},Ll=Fd,Sh=Wv,NO=ug(),$p=(pe,Ce)=>Ll(NO,(Ye,st)=>pe(st),Ce),Lx=(pe,Ce,Ye)=>Sh(NO,pe,Ce,Ye),Yv=pe=>wc(pe,"table"),Xv=(pe,Ce,Ye)=>{const st=St=>Ut=>Ye!==void 0&&Ye(Ut)||vn(Ut,St);return vn(pe,Ce)?C.some({boxes:C.some([pe]),start:pe,finish:Ce}):Yv(pe).bind(St=>Yv(Ce).bind(Ut=>{if(vn(St,Ut))return C.some({boxes:Rx(St,pe,Ce),start:pe,finish:Ce});if(Nn(St,Ut)){const un=oi(Ce,"td,th",st(St)),Tn=un.length>0?un[un.length-1]:Ce;return C.some({boxes:B0(St,pe,St,Ce,Ut),start:pe,finish:Tn})}else if(Nn(Ut,St)){const un=oi(pe,"td,th",st(Ut)),Tn=un.length>0?un[un.length-1]:pe;return C.some({boxes:B0(Ut,pe,St,Ce,Ut),start:pe,finish:Tn})}else return Lx(pe,Ce).shared.bind(un=>qc(un,"table",Ye).bind(Tn=>{const $n=oi(Ce,"td,th",st(Tn)),ur=$n.length>0?$n[$n.length-1]:Ce,Nr=oi(pe,"td,th",st(Tn)),Ro=Nr.length>0?Nr[Nr.length-1]:pe;return C.some({boxes:B0(Tn,pe,St,Ce,Ut),start:Ro,finish:ur})}))}))},hb=(pe,Ce)=>{const Ye=ra(pe,Ce);return Ye.length>0?C.some(Ye):C.none()},Tf=(pe,Ce)=>Y(pe,Ye=>tn(Ye,Ce)),$O=(pe,Ce,Ye)=>Ku(pe,Ce).bind(st=>Ku(pe,Ye).bind(St=>$p(Yv,[st,St]).map(Ut=>({first:st,last:St,table:Ut})))),C1=(pe,Ce)=>wc(pe,"table").bind(Ye=>Ku(Ye,Ce).bind(st=>Xv(st,pe).bind(St=>St.boxes.map(Ut=>({boxes:Ut,start:St.start,finish:St.finish}))))),A1=(pe,Ce,Ye,st,St)=>Tf(pe,St).bind(Ut=>FO(Ut,Ce,Ye).bind(un=>C1(un,st))),pd=(pe,Ce)=>hb(pe,Ce),D_=(pe,Ce,Ye)=>$O(pe,Ce,Ye).bind(st=>{const St=$n=>vn(pe,$n),Ut="thead,tfoot,tbody,table",un=wc(st.first,Ut,St),Tn=wc(st.last,Ut,St);return un.bind($n=>Tn.bind(ur=>vn($n,ur)?fo(st.table,st.first,st.last):C.none()))}),VO=_,B_=pe=>{const Ce=(st,St)=>it(st,St).exists(Ut=>parseInt(Ut,10)>1),Ye=st=>Ce(st,"rowspan")||Ce(st,"colspan");return pe.length>0&&se(pe,Ye)?C.some(pe):C.none()},Gv=(pe,Ce,Ye)=>Ce.length<=1?C.none():D_(pe,Ye.firstSelectedSelector,Ye.lastSelectedSelector).map(st=>({bounds:st,cells:Ce})),Gf="data-mce-selected",kh="td["+Gf+"],th["+Gf+"]",Do="["+Gf+"]",Ix="data-mce-first-selected",lf="td["+Ix+"],th["+Ix+"]",pb="data-mce-last-selected",md="td["+pb+"],th["+pb+"]",Nl=Do,fg={selected:Gf,selectedSelector:kh,firstSelected:Ix,firstSelectedSelector:lf,lastSelected:pb,lastSelectedSelector:md},Dx=(pe,Ce,Ye)=>({element:Ye,mergable:Gv(Ce,pe,fg),unmergable:B_(pe),selection:VO(pe)}),UO=(pe,Ce,Ye)=>({element:pe,clipboard:Ce,generators:Ye}),t0=(pe,Ce,Ye,st)=>({selection:VO(pe),clipboard:Ye,generators:st}),mb=pe=>Au(pe).bind(Ce=>pd(Ce,fg.firstSelectedSelector)).fold(v(pe),Ce=>Ce[0]),Mm=pe=>(Ce,Ye)=>{const st=qt(Ce),St=st==="col"||st==="colgroup"?mb(Ce):Ce;return qc(St,pe,Ye)},jO=Mm("th,td,caption"),z_=Mm("th,td"),wl=pe=>Sm(pe.model.table.getSelectedCells()),Kv=pe=>W(wl(pe),Ce=>tn(Ce,fg.selectedSelector)),fc=pe=>Au(pe[0]).map(Ce=>{const Ye=ip(Ce,Nl);return zd(Ye),[Ye]}),Jv=(pe,Ce)=>j(Ce,Ye=>pe.selection.serializer.serialize(Ye.dom,{})).join(""),$l=pe=>j(pe,Ce=>Ce.dom.innerText).join(""),M1=(pe,Ce)=>{pe.on("BeforeGetContent",Ye=>{const st=St=>{Ye.preventDefault(),fc(St).each(Ut=>{Ye.content=Ye.format==="text"?$l(Ut):Jv(pe,Ut)})};if(Ye.selection===!0){const St=Kv(pe);St.length>=1&&st(St)}}),pe.on("BeforeSetContent",Ye=>{if(Ye.selection===!0&&Ye.paste===!0){const st=wl(pe);ye(st).each(St=>{Au(St).each(Ut=>{const un=W(Om(Ye.content),$n=>qt($n)!=="meta"),Tn=vt("table");if(up(pe)&&un.length===1&&Tn(un[0])){Ye.preventDefault();const $n=Pt.fromDom(pe.getDoc()),ur=Hv($n),Nr=UO(St,un[0],ur);Ce.pasteCells(Ut,Nr).each(()=>{pe.focus()})}})})}})},th=(pe,Ce)=>({element:pe,offset:Ce}),Bx=(pe,Ce,Ye)=>pe.property().isText(Ce)&&pe.property().getText(Ce).trim().length===0||pe.property().isComment(Ce)?Ye(Ce).bind(st=>Bx(pe,st,Ye).orThunk(()=>C.some(st))):C.none(),ic=(pe,Ce)=>pe.property().isText(Ce)?pe.property().getText(Ce).length:pe.property().children(Ce).length,F_=(pe,Ce)=>{const Ye=Bx(pe,Ce,pe.query().prevSibling).getOr(Ce);if(pe.property().isText(Ye))return th(Ye,ic(pe,Ye));const st=pe.property().children(Ye);return st.length>0?F_(pe,st[st.length-1]):th(Ye,ic(pe,Ye))},QO=F_,Du=ug(),su=pe=>QO(Du,pe),dg=(pe,Ce)=>{Vf(pe)||An(pe).each(st=>{const St=st.value/2;Sn(pe,St,st.unit),Sn(Ce,St,st.unit)})},n0=pe=>j(pe,v(0)),N_=(pe,Ce,Ye,st,St)=>St(pe.slice(0,Ce)).concat(st).concat(St(pe.slice(Ye))),ey=pe=>(Ce,Ye,st,St)=>{if(pe(st)){const Ut=Math.max(St,Ce[Ye]-Math.abs(st)),un=Math.abs(Ut-Ce[Ye]);return st>=0?un:-un}else return st},hg=ey(pe=>pe<0),ty=ey(E),E1=()=>{const pe=(Tn,$n,ur,Nr,Ro)=>{const ai=hg(Tn,$n,Nr,Ro);return N_(Tn,$n,ur+1,[ai,0],n0)},Ce=(Tn,$n,ur,Nr)=>{const Ro=(100+ur)/100,ai=Math.max(Nr,(Tn[$n]+ur)/Ro);return j(Tn,(Ko,Qo)=>(Qo===$n?ai:Ko/Ro)-Ko)},Ye=(Tn,$n,ur,Nr,Ro,ai)=>ai?Ce(Tn,$n,Nr,Ro):pe(Tn,$n,ur,Nr,Ro);return{resizeTable:(Tn,$n)=>Tn($n),clampTableDelta:hg,calcLeftEdgeDeltas:Ye,calcMiddleDeltas:(Tn,$n,ur,Nr,Ro,ai,Ko)=>Ye(Tn,ur,Nr,Ro,ai,Ko),calcRightEdgeDeltas:(Tn,$n,ur,Nr,Ro,ai)=>{if(ai)return Ce(Tn,ur,Nr,Ro);{const Ko=hg(Tn,ur,Nr,Ro);return n0(Tn.slice(0,ur)).concat([Ko])}},calcRedestributedWidths:(Tn,$n,ur,Nr)=>{if(Nr){const ai=($n+ur)/$n,Ko=j(Tn,Qo=>Qo/ai);return{delta:ai*100-100,newSizes:Ko}}else return{delta:ur,newSizes:Tn}}}},z0=()=>{const pe=(un,Tn,$n,ur,Nr)=>{const Ro=ur>=0?$n:Tn,ai=ty(un,Ro,ur,Nr);return N_(un,Tn,$n+1,[ai,-ai],n0)};return{resizeTable:(un,Tn,$n)=>{$n&&un(Tn)},clampTableDelta:(un,Tn,$n,ur,Nr)=>{if(Nr){if($n>=0)return $n;{const Ro=oe(un,(ai,Ko)=>ai+Ko-ur,0);return Math.max(-Ro,$n)}}else return hg(un,Tn,$n,ur)},calcLeftEdgeDeltas:pe,calcMiddleDeltas:(un,Tn,$n,ur,Nr,Ro)=>pe(un,$n,ur,Nr,Ro),calcRightEdgeDeltas:(un,Tn,$n,ur,Nr,Ro)=>{if(Ro)return n0(un);{const ai=ur/un.length;return j(un,v(ai))}},calcRedestributedWidths:(un,Tn,$n,ur)=>({delta:0,newSizes:un})}},pg=pe=>Xi.fromTable(pe).grid,P1=vt("th"),R1=pe=>se(pe,Ce=>P1(Ce.element)),zx=(pe,Ce)=>pe&&Ce?"sectionCells":pe?"section":"cells",F0=pe=>{const Ce=pe.section==="thead",Ye=Yd(gb(pe.cells),"th");return pe.section==="tfoot"?{type:"footer"}:Ce||Ye?{type:"header",subType:zx(Ce,Ye)}:{type:"body"}},gb=pe=>{const Ce=W(pe,Ye=>P1(Ye.element));return Ce.length===0?C.some("td"):Ce.length===pe.length?C.some("th"):C.none()},Fx=pe=>{const Ce=j(pe,St=>F0(St).type),Ye=z(Ce,"header"),st=z(Ce,"footer");if(!Ye&&!st)return C.some("body");{const St=z(Ce,"body");return Ye&&!St&&!st?C.some("header"):!Ye&&!St&&st?C.some("footer"):C.none()}},$_=pe=>Se(pe.all,Ce=>{const Ye=F0(Ce);return Ye.type==="header"?C.from(Ye.subType):C.none()}),Nx=(pe,Ce,Ye)=>vr(Ye(pe.element,Ce),!0,pe.isLocked),V_=(pe,Ce)=>pe.section!==Ce?nr(pe.element,pe.cells,Ce,pe.isNew):pe,vb=()=>({transformRow:V_,transformCell:(pe,Ce,Ye)=>{const st=Ye(pe.element,Ce),St=qt(st)!=="td"?Qr(st,"td"):st;return vr(St,pe.isNew,pe.isLocked)}}),L1=()=>({transformRow:V_,transformCell:Nx}),gd=()=>({transformRow:(pe,Ce)=>V_(pe,Ce==="thead"?"tbody":Ce),transformCell:Nx}),Th={getTableSectionType:(pe,Ce)=>{const Ye=Xi.fromTable(pe);switch($_(Ye).getOr(Ce)){case"section":return vb();case"sectionCells":return L1();case"cells":return gd()}},section:vb,sectionCells:L1,cells:gd,fallback:()=>({transformRow:_,transformCell:Nx})},Kf=(pe,Ce,Ye,st)=>{Ye===st?at(pe,Ce):lt(pe,Ce,Ye)},ny=(pe,Ce,Ye)=>{_e(ko(pe,Ce)).fold(()=>Rr(pe,Ye),st=>Fr(st,Ye))},I1=(pe,Ce)=>{const Ye=ma(pe,Ce).getOrThunk(()=>{const st=Pt.fromTag(Ce,En(pe).dom);return Ce==="thead"?ny(pe,"caption,colgroup",st):Ce==="colgroup"?ny(pe,"caption",st):$r(pe,st),st});return go(Ye),Ye},cf=(pe,Ce)=>{const Ye=[],st=[],St=Ko=>j(Ko,Qo=>{Qo.isNew&&Ye.push(Qo.element);const _i=Qo.element;return go(_i),U(Qo.cells,To=>{To.isNew&&st.push(To.element),Kf(To.element,"colspan",To.colspan,1),Kf(To.element,"rowspan",To.rowspan,1),$r(_i,To.element)}),_i}),Ut=Ko=>he(Ko,Qo=>j(Qo.cells,_i=>(Kf(_i.element,"span",_i.colspan,1),_i.element))),un=(Ko,Qo)=>{const _i=I1(pe,Qo),Zo=(Qo==="colgroup"?Ut:St)(Ko);So(_i,Zo)},Tn=Ko=>{ma(pe,Ko).each(li)},$n=(Ko,Qo)=>{Ko.length>0?un(Ko,Qo):Tn(Qo)},ur=[],Nr=[],Ro=[],ai=[];return U(Ce,Ko=>{switch(Ko.section){case"thead":ur.push(Ko);break;case"tbody":Nr.push(Ko);break;case"tfoot":Ro.push(Ko);break;case"colgroup":ai.push(Ko);break}}),$n(ai,"colgroup"),$n(ur,"thead"),$n(Nr,"tbody"),$n(Ro,"tfoot"),{newRows:Ye,newCells:st}},Em=pe=>j(pe,Ce=>{const Ye=br(Ce.element);return U(Ce.cells,st=>{const St=dr(st.element);Kf(St,"colspan",st.colspan,1),Kf(St,"rowspan",st.rowspan,1),$r(Ye,St)}),Ye}),$x=(pe,Ce)=>j(pe,Ye=>Ru(Ye,Ce)),Nd=(pe,Ce)=>pe[Ce],ry=(pe,Ce)=>{if(pe.length===0)return 0;const Ye=pe[0];return ee(pe,St=>!Ce(Ye.element,St.element)).getOr(pe.length)},HO=(pe,Ce,Ye,st)=>{const St=Nd(pe,Ce),Ut=St.section==="colgroup",un=ry(St.cells.slice(Ye),st),Tn=Ut?1:ry($x(pe.slice(Ce),Ye),st);return{colspan:un,rowspan:Tn}},Vx=(pe,Ce)=>{const Ye=j(pe,St=>j(St.cells,T)),st=(St,Ut,un,Tn)=>{for(let $n=St;$n{const un=he(St.cells,(Tn,$n)=>{if(Ye[Ut][$n]===!1){const ur=HO(pe,Ut,$n,Ce);return st(Ut,$n,ur.rowspan,ur.colspan),[zn(Tn.element,ur.rowspan,ur.colspan,Tn.isNew)]}else return[]});return gr(St.element,un,St.section,St.isNew)})},D1=(pe,Ce,Ye)=>{const st=[];U(pe.colgroups,St=>{const Ut=[];for(let un=0;unvr($n.element,Ye,!1)).getOrThunk(()=>vr(Ce.colGap(),!0,!1));Ut.push(Tn)}st.push(nr(St.element,Ut,"colgroup",Ye))});for(let St=0;Stvr(Nr.element,Ye,Nr.isLocked)).getOrThunk(()=>vr(Ce.gap(),!0,!1));Ut.push(ur)}const un=pe.all[St],Tn=nr(un.element,Ut,un.section,Ye);st.push(Tn)}return st},j_=(pe,Ce)=>D1(pe,Ce,!1),oy=pe=>Vx(pe,vn),bb=(pe,Ce)=>Se(pe.all,Ye=>Y(Ye.cells,st=>vn(Ce,st.element))),ZO=(pe,Ce,Ye)=>{const st=j(Ce.selection,Ut=>Vh(Ut).bind(un=>bb(pe,un)).filter(Ye)),St=Ql(st);return Nf(St.length>0,St)},Cf=(pe,Ce,Ye,st,St)=>(Ut,un,Tn,$n)=>{const ur=Xi.fromTable(Ut),Nr=C.from($n==null?void 0:$n.section).getOrThunk(Th.fallback);return Ce(ur,un).map(ai=>{const Ko=j_(ur,Tn),Qo=pe(Ko,ai,vn,St(Tn),Nr),_i=Ps(Qo.grid),To=oy(Qo.grid);return{info:ai,grid:To,cursor:Qo.cursor,lockedColumns:_i}}).bind(ai=>{const Ko=cf(Ut,ai.grid),Qo=C.from($n==null?void 0:$n.sizing).getOrThunk(()=>Ls.getTableSize(Ut)),_i=C.from($n==null?void 0:$n.resize).getOrThunk(z0);return Ye(Ut,ai.grid,ai.info,{sizing:Qo,resize:_i,section:Nr}),st(Ut),at(Ut,si),ai.lockedColumns.length>0&<(Ut,si,ai.lockedColumns.join(",")),C.some({cursor:ai.cursor,newRows:Ko.newRows,newCells:Ko.newCells})})},mg=(pe,Ce)=>Vh(Ce.element).bind(Ye=>bb(pe,Ye).map(st=>({...st,generators:Ce.generators,clipboard:Ce.clipboard}))),dp=(pe,Ce)=>ZO(pe,Ce,E).map(Ye=>({cells:Ye,generators:Ce.generators,clipboard:Ce.clipboard})),N0=(pe,Ce)=>Ce.mergable,Q_=(pe,Ce)=>Ce.unmergable,Vp=(pe,Ce)=>ZO(pe,Ce,E),nh=(pe,Ce)=>ZO(pe,Ce,Ye=>!Ye.isLocked),B1=(pe,Ce)=>bb(pe,Ce).exists(Ye=>!Ye.isLocked),z1=(pe,Ce)=>se(Ce,Ye=>B1(pe,Ye)),iy=(pe,Ce)=>N0(pe,Ce).filter(Ye=>z1(pe,Ye.cells)),qO=(pe,Ce)=>Q_(pe,Ce).filter(Ye=>z1(pe,Ye)),_S=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows;if(St.length===0)return pe;for(let Ut=Ce.startRow;Ut<=Ce.finishRow;Ut++)for(let un=Ce.startCol;un<=Ce.finishCol;un++){const Tn=St[Ut],$n=Ru(Tn,un).isLocked;Hi(Tn,un,vr(st(),!1,$n))}return pe},F1=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows;let Ut=!0;for(let un=0;unoe(pe,(Ye,st)=>$(Ye,St=>Ce(St.element,st.element))?Ye:Ye.concat([st]),[]),H_=(pe,Ce,Ye,st)=>(Ce>0&&Ce{const Ut=St.cells[Ce-1];let un=0;const Tn=st();for(;St.cells.length>Ce+un&&Ye(Ut.element,St.cells[Ce+un].element);)Hi(St,Ce+un,vr(Tn,!0,St.cells[Ce+un].isLocked)),un++}),pe),nc=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows;if(Ce>0&&Ce{let $n=C.none();for(let ur=Ce;ur{Hi(Ro,Nr,vr(Qo,!0,ai.isLocked))}))}})}return pe},$0=pe=>{const Ce=Ut=>Ut(pe),Ye=v(pe),st=()=>St,St={tag:!0,inner:pe,fold:(Ut,un)=>un(pe),isValue:E,isError:T,map:Ut=>N1.value(Ut(pe)),mapError:st,bind:Ce,exists:Ce,forall:Ce,getOr:Ye,or:st,getOrThunk:Ye,orThunk:st,getOrDie:Ye,each:Ut=>{Ut(pe)},toOptional:()=>C.some(pe)};return St},vd=pe=>{const Ce=()=>Ye,Ye={tag:!1,inner:pe,fold:(st,St)=>st(pe),isValue:T,isError:E,map:Ce,mapError:st=>N1.error(st(pe)),bind:Ce,exists:T,forall:E,getOr:_,or:_,getOrThunk:M,orThunk:M,getOrDie:R(String(pe)),each:u,toOptional:C.none};return Ye},N1={value:$0,error:vd,fromOption:(pe,Ce)=>pe.fold(()=>vd(Ce),$0)},r0=(pe,Ce,Ye)=>{if(pe.row>=Ce.length||pe.column>Yc(Ce[0]))return N1.error("invalid start address out of table bounds, row: "+pe.row+", column: "+pe.column);const st=Ce.slice(pe.row),St=st[0].cells.slice(pe.column),Ut=Yc(Ye[0]),un=Ye.length;return N1.value({rowDelta:st.length-un,colDelta:St.length-Ut})},gg=(pe,Ce)=>{const Ye=Yc(pe[0]),st=Yc(Ce[0]);return{rowDelta:0,colDelta:Ye-st}},oh=(pe,Ce)=>{const Ye=pe.length,st=Ce.length;return{rowDelta:Ye-st,colDelta:0}},Ch=(pe,Ce,Ye,st)=>{const St=Ce.section==="colgroup"?Ye.col:Ye.cell;return Q(pe,Ut=>vr(St(),!0,st(Ut)))},Z_=(pe,Ce,Ye,st)=>{const St=pe[pe.length-1];return pe.concat(Q(Ce,()=>{const Ut=St.section==="colgroup"?Ye.colgroup:Ye.row,un=Fc(St,Ut,_),Tn=Ch(un.cells.length,un,Ye,$n=>We(st,$n.toString()));return pi(un,Tn)}))},q_=(pe,Ce,Ye,st)=>j(pe,St=>{const Ut=Ch(Ce,St,Ye,T);return sf(St,st,Ut)}),V0=(pe,Ce,Ye)=>j(pe,st=>oe(Ye,(St,Ut)=>{const un=Ch(1,st,Ce,E)[0];return Ml(St,Ut,un)},st)),Up=(pe,Ce,Ye)=>{const st=Ce.colDelta<0?q_:_,St=Ce.rowDelta<0?Z_:_,Ut=Ps(pe),un=Yc(pe[0]),Tn=$(Ut,Nr=>Nr===un-1),$n=st(pe,Math.abs(Ce.colDelta),Ye,Tn?un-1:un),ur=Ps($n);return St($n,Math.abs(Ce.rowDelta),Ye,ce(ur,E))},W_=(pe,Ce,Ye,st)=>{const St=Ru(pe[Ce],Ye),Ut=A(st,St.element),un=pe[Ce];return pe.length>1&&Yc(un)>1&&(Ye>0&&Ut(vc(un,Ye-1))||Ye0&&Ut(vc(pe[Ce-1],Ye))||Ce{const un=pe.row,Tn=pe.column,$n=Ye.length,ur=Yc(Ye[0]),Nr=un+$n,Ro=Tn+ur+Ut.length,ai=ce(Ut,E);for(let Ko=un;Ko{const st=Yc(Ce[0]),St=Kl(Ce).cols.length+pe.row,Ut=Q(st-pe.column,Tn=>Tn+pe.column),un=Y(Ut,Tn=>se(Ye,$n=>$n!==Tn)).getOr(st-1);return{row:St,column:un}},o0=(pe,Ce,Ye)=>W(Ye,st=>st>=pe.column&&st<=Yc(Ce[0])+pe.column),Ra=(pe,Ce,Ye,st,St)=>{const Ut=Ps(Ce),un=jp(pe,Ce,Ut),Tn=Kl(Ye).rows,$n=o0(un,Tn,Ut);return r0(un,Ce,Tn).map(Nr=>{const Ro={...Nr,colDelta:Nr.colDelta-$n.length},ai=Up(Ce,Ro,st),Ko=Ps(ai),Qo=o0(un,Tn,Ko);return U0(un,ai,Tn,st,St,Qo)})},yd=(pe,Ce,Ye,st,St)=>{H_(Ce,pe,St,st.cell);const Ut=oh(Ye,Ce),un=Up(Ye,Ut,st),Tn=oh(Ce,un),$n=Up(Ce,Tn,st);return j($n,(ur,Nr)=>sf(ur,pe,un[Nr].cells))},Zh=(pe,Ce,Ye,st,St)=>{nc(Ce,pe,St,st.cell);const Ut=Ps(Ce),un=gg(Ce,Ye),Tn={...un,colDelta:un.colDelta-Ut.length},$n=Up(Ce,Tn,st),{cols:ur,rows:Nr}=Kl($n),Ro=Ps($n),ai=gg(Ye,Ce),Ko={...ai,colDelta:ai.colDelta+Ro.length},Qo=V0(Ye,st,Ro),_i=Up(Qo,Ko,st);return[...ur,...Nr.slice(0,pe),..._i,...Nr.slice(pe,Nr.length)]},i0=(pe,Ce,Ye,st)=>Fc(pe,St=>st(St,Ye),Ce),Il=(pe,Ce,Ye,st,St)=>{const{rows:Ut,cols:un}=Kl(pe),Tn=Ut.slice(0,Ce),$n=Ut.slice(Ce),ur=i0(Ut[Ye],(Nr,Ro)=>Ce>0&&Ce{if(Ye==="colgroup"||!st){const Tn=Ru(pe,St);return vr(un(Tn.element,Ut),!0,!1)}else return Ru(pe,Ce)},$1=(pe,Ce,Ye,st,St)=>j(pe,Ut=>{const un=Ce>0&&Cehe(pe,Ye=>{const st=Ye.cells,St=K(Ce,(Ut,un)=>un>=0&&un0?[nr(Ye.element,St,Ye.section,Ye.isNew)]:[]}),Ux=(pe,Ce,Ye)=>{const{rows:st,cols:St}=Kl(pe);return[...St,...st.slice(0,Ce),...st.slice(Ye+1)]},ay=(pe,Ce,Ye,st)=>vc(pe[Ce],Ye)!==void 0&&Ce>0&&st(vc(pe[Ce-1],Ye),vc(pe[Ce],Ye)),Dl=(pe,Ce,Ye)=>Ce>0&&Ye(vc(pe,Ce-1),vc(pe,Ce)),Ol=(pe,Ce,Ye,st)=>ay(pe,Ce,Ye,st)||Dl(pe[Ce],Ye,st),OS=(pe,Ce)=>se(Ce,_)&&R1(pe.cells)?E:(st,St,Ut)=>!(qt(st.element)==="th"&&Ce[Ut]),Y_=(pe,Ce)=>se(Ce,_)&&R1(pe)?E:(st,St,Ut)=>!(qt(st.element)==="th"&&Ce[St]),Pm=(pe,Ce,Ye,st)=>{const St=un=>un==="row"?gc(Ce):Vf(Ce),Ut=un=>St(un)?`${un}group`:un;return pe?P1(Ce)?Ut(Ye):null:st&&P1(Ce)?Ut(Ye==="row"?"col":"row"):null},fi=(pe,Ce)=>(Ye,st,St)=>C.some(Pm(pe,Ye.element,"col",Ce[St])),SS=(pe,Ce)=>(Ye,st)=>C.some(Pm(pe,Ye.element,"row",Ce[st])),YO=(pe,Ce,Ye)=>vr(Ye(pe.element,Ce),!0,pe.isLocked),jx=(pe,Ce,Ye,st,St,Ut,un)=>{const Tn=$n=>$(Ce,ur=>Ye($n.element,ur.element));return j(pe,($n,ur)=>Qh($n,(Nr,Ro)=>{if(Tn(Nr)){const ai=un(Nr,ur,Ro)?St(Nr,Ye,st):Nr;return Ut(ai,ur,Ro).each(Ko=>{zt(ai.element,{scope:C.from(Ko)})}),ai}else return Nr}))},X_=(pe,Ce,Ye)=>he(pe,(st,St)=>Ol(pe,St,Ce,Ye)?[]:[Ru(st,Ce)]),kS=(pe,Ce,Ye)=>{const st=pe[Ce];return he(st.cells,(St,Ut)=>Ol(pe,Ce,Ut,Ye)?[]:[St])},xb=(pe,Ce,Ye,st,St)=>{const Ut=Kl(pe).rows,un=he(Ce,Nr=>X_(Ut,Nr,st)),Tn=j(Ut,Nr=>R1(Nr.cells)),$n=Y_(un,Tn),ur=SS(Ye,Tn);return jx(pe,un,st,St,YO,ur,$n)},sy=(pe,Ce,Ye,st,St,Ut,un)=>{const{cols:Tn,rows:$n}=Kl(pe),ur=$n[Ce[0]],Nr=he(Ce,To=>kS($n,To,St)),Ro=j(ur.cells,(To,Zo)=>R1(X_($n,Zo,St))),ai=[...$n];U(Ce,To=>{ai[To]=un.transformRow($n[To],Ye)});const Ko=[...Tn,...ai],Qo=OS(ur,Ro),_i=fi(st,Ro);return jx(Ko,Nr,St,Ut,un.transformCell,_i,Qo)},j0=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=j(Ce,un=>Ru(St[un.row],un.column));return jx(pe,Ut,Ye,st,YO,C.none,E)},Rm={generate:pe=>{if(!c(pe))throw new Error("cases must be an array");if(pe.length===0)throw new Error("there must be at least one case");const Ce=[],Ye={};return U(pe,(st,St)=>{const Ut=Te(st);if(Ut.length!==1)throw new Error("one and only one name per case");const un=Ut[0],Tn=st[un];if(Ye[un]!==void 0)throw new Error("duplicate key detected:"+un);if(un==="cata")throw new Error("cannot have a case named cata (sorry)");if(!c(Tn))throw new Error("case arguments must be an array");Ce.push(un),Ye[un]=(...$n)=>{const ur=$n.length;if(ur!==Tn.length)throw new Error("Wrong number of arguments to case "+un+". Expected "+Tn.length+" ("+Tn+"), got "+ur);return{fold:(...Ro)=>{if(Ro.length!==pe.length)throw new Error("Wrong number of arguments to fold. Expected "+pe.length+", got "+Ro.length);return Ro[St].apply(null,$n)},match:Ro=>{const ai=Te(Ro);if(Ce.length!==ai.length)throw new Error("Wrong number of arguments to match. Expected: "+Ce.join(",")+` +`))}};return r=bU(r,[//g]),Ke(B.parse(r)),H},xU=r=>(r=bU(r,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(B,H,re)=>!H&&!re?" ":Ea],/
    /g,/
    $/i]),r),_U=r=>{let g=0;return()=>r+g++},Tte=r=>{const g=r.toLowerCase(),B={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return mo.hasOwn(B,g)?"image/"+B[g]:"image/"+g},Cte=(r,g)=>{const B=Ry({sanitize:Lb(r),sandbox_iframes:o2(r),sandbox_iframes_exclusions:i2(r),convert_unsafe_embeds:MS(r)},r.schema);B.addNodeFilter("meta",re=>{mo.each(re,be=>{be.remove()})});const H=B.parse(g,{forced_root_block:!1,isRootContent:!0});return Yb({validate:!0},r.schema).serialize(H)},sO=(r,g)=>({content:r,cancelled:g}),Ate=(r,g,B)=>{const H=r.dom.create("div",{style:"display:none"},g),re=uE(r,H,B);return sO(re.node.innerHTML,re.isDefaultPrevented())},T4=(r,g,B)=>{const H=cE(r,g,B),re=Cte(r,H.content);return r.hasEventListeners("PastePostProcess")&&!H.isDefaultPrevented()?Ate(r,re,B):sO(re,H.isDefaultPrevented())},Pk=(r,g,B)=>T4(r,g,B),wR=(r,g)=>(r.insertContent(g,{merge:ow(r),paste:!0}),!0),OR=r=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(r),C4=(r,g)=>OR(g)&&de(Y0(r),B=>Sr(g.toLowerCase(),`.${B.toLowerCase()}`)),Mte=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.insertContent('')}),!0),SR=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.execCommand("mceInsertLink",!1,g)}),!0),Ete=(r,g,B)=>!r.selection.isCollapsed()&&OR(g)?SR(r,g,B):!1,wU=(r,g,B)=>C4(r,g)?Mte(r,g,B):!1,OU=(r,g)=>{mo.each([Ete,wU,wR],B=>!B(r,g,wR))},kR=(r,g,B)=>{B||!iw(r)?wR(r,g):OU(r,g)},SU=_U("mceclip"),Pte=r=>{const g=gR();return gU(g,r),mR(g),g},kU=(r,g,B,H,re)=>{const be=Pk(r,g,B);if(!be.cancelled){const Re=be.content,Ke=()=>kR(r,Re,H);re?aO(r,"insertFromPaste",{dataTransfer:Pte(Re)}).isDefaultPrevented()||(Ke(),Sk(r,"insertFromPaste")):Ke()}},Rk=(r,g,B,H)=>{const re=B||yU(g);kU(r,bte(g),re,!1,H)},TR=(r,g,B)=>{const H=r.dom.encode(g).replace(/\r\n/g,` +`),re=le(H,gy(r)),be=_te(re,dc(r),Jf(r));kU(r,be,!1,!0,B)},CR=r=>{const g={};if(r&&r.types)for(let B=0;Bg in r&&r[g].length>0,AR=r=>Uy(r,"text/html")||Uy(r,"text/plain"),Rte=(r,g)=>{const B=g.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return E(B)?r.dom.encode(B[1]):void 0},Lte=(r,g,B,H)=>{const re=SU(),be=Hc(r)&&E(B.name),Re=be?Rte(r,B.name):re,Ke=be?B.name:void 0,ct=g.create(re,B,H,Re,Ke);return g.add(ct),ct},Ite=(r,g)=>{U7(g.uri).each(({data:B,type:H,base64Encoded:re})=>{const be=re?B:btoa(B),Re=g.file,Ke=r.editorUpload.blobCache,ct=Ke.getByData(be,H),kt=ct??Lte(r,Ke,Re,be);Rk(r,``,!1,!0)})},TU=r=>r.type==="paste",MR=r=>Promise.all(ve(r,g=>Xz(g).then(B=>({file:g,uri:B})))),Dte=r=>{const g=Y0(r);return B=>xr(B.type,"image/")&&de(g,H=>Tte(H)===B.type)},CU=(r,g)=>{const B=g.items?$e(Ee(g.items),re=>re.kind==="file"?[re.getAsFile()]:[]):[],H=g.files?Ee(g.files):[];return Te(B.length>0?B:H,Dte(r))},ER=(r,g,B)=>{const H=TU(g)?g.clipboardData:g.dataTransfer;if(Fm(r)&&H){const re=CU(r,H);if(re.length>0)return g.preventDefault(),MR(re).then(be=>{B&&r.selection.setRng(B),ye(be,Re=>{Ite(r,Re)})}),!0}return!1},Bte=r=>{var g,B;return fr.os.isAndroid()&&((B=(g=r.clipboardData)===null||g===void 0?void 0:g.items)===null||B===void 0?void 0:B.length)===0},AU=r=>Fo.metaKeyPressed(r)&&r.keyCode===86||r.shiftKey&&r.keyCode===45,PR=(r,g,B,H,re)=>{let be=xU(B);const Re=Uy(g,$8())||yU(B),Ke=!Re&&xte(be),ct=OR(be);(xR(be)||!be.length||Ke&&!ct)&&(H=!0),(H||ct)&&(Uy(g,"text/plain")&&Ke?be=g["text/plain"]:be=kte(be)),!xR(be)&&(H?TR(r,be,re):Rk(r,be,Re,re))},zte=(r,g,B)=>{let H;const re=()=>g.getLastRng()||r.selection.getRng();r.on("keydown",be=>{AU(be)&&!be.isDefaultPrevented()&&(H=be.shiftKey&&be.keyCode===86)}),r.on("paste",be=>{if(be.isDefaultPrevented()||Bte(be))return;const Re=B.get()==="text"||H;H=!1;const Ke=CR(be.clipboardData);!AR(Ke)&&ER(r,be,re())||(Uy(Ke,"text/html")?(be.preventDefault(),PR(r,Ke,Ke["text/html"],Re,!0)):Uy(Ke,"text/plain")&&Uy(Ke,"text/uri-list")?(be.preventDefault(),PR(r,Ke,Ke["text/plain"],Re,!0)):(g.create(),Tg.setEditorTimeout(r,()=>{const ct=g.getHtml();g.remove(),PR(r,Ke,ct,Re,!1)},0)))})},Fte=r=>{const g=re=>xr(re,"webkit-fake-url"),B=re=>xr(re,"data:"),H=re=>{var be;return((be=re.data)===null||be===void 0?void 0:be.paste)===!0};r.parser.addNodeFilter("img",(re,be,Re)=>{if(!Fm(r)&&H(Re))for(const Ke of re){const ct=Ke.attr("src");v(ct)&&!Ke.attr("data-mce-object")&&ct!==fr.transparentSrc&&(g(ct)||!W0(r)&&B(ct))&&Ke.remove()}})},Nte=(r,g,B)=>{zte(r,g,B),Fte(r)},$te=(r,g)=>{g.get()==="text"?(g.set("html"),I3(r,!1)):(g.set("text"),I3(r,!0)),r.focus()},U8=(r,g)=>{r.addCommand("mceTogglePlainTextPaste",()=>{$te(r,g)}),r.addCommand("mceInsertClipboardContent",(B,H)=>{H.html&&Rk(r,H.html,H.internal,!1),H.text&&TR(r,H.text,!1)})},Vte=(r,g,B)=>{if(r)try{return r.clearData(),r.setData("text/html",g),r.setData("text/plain",B),r.setData($8(),g),!0}catch{return!1}else return!1},RR=(r,g,B,H)=>{Vte(r.clipboardData,g.html,g.text)?(r.preventDefault(),H()):B(g.html,H)},MU=r=>(g,B)=>{const{dom:H,selection:re}=r,be=H.create("div",{contenteditable:"false","data-mce-bogus":"all"}),Re=H.create("div",{contenteditable:"true"},g);H.setStyles(be,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),be.appendChild(Re),H.add(r.getBody(),be);const Ke=re.getRng();Re.focus();const ct=H.createRng();ct.selectNodeContents(Re),re.setRng(ct),Tg.setEditorTimeout(r,()=>{re.setRng(Ke),H.remove(be),B()},0)},EU=r=>({html:yte(r.selection.getContent({contextual:!0})),text:r.selection.getContent({format:"text"})}),PU=r=>!!r.dom.getParent(r.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",r.getBody()),LR=r=>!r.selection.isCollapsed()||PU(r),Ute=r=>g=>{!g.isDefaultPrevented()&&LR(r)&&r.selection.isEditable()&&RR(g,EU(r),MU(r),()=>{if(fr.browser.isChromium()||fr.browser.isFirefox()){const B=r.selection.getRng();Tg.setEditorTimeout(r,()=>{r.selection.setRng(B),r.execCommand("Delete")},0)}else r.execCommand("Delete")})},jte=r=>g=>{!g.isDefaultPrevented()&&LR(r)&&RR(g,EU(r),MU(r),k)},Qte=r=>{r.on("cut",Ute(r)),r.on("copy",jte(r))},RU=(r,g)=>{var B,H;return To.getCaretRangeFromPoint((B=g.clientX)!==null&&B!==void 0?B:0,(H=g.clientY)!==null&&H!==void 0?H:0,r.getDoc())},Hte=r=>{const g=r["text/plain"];return g?g.indexOf("file://")===0:!1},IR=(r,g)=>{r.focus(),g&&r.selection.setRng(g)},Zte=r=>de(r.files,g=>/^image\//.test(g.type)),qte=(r,g,B,H)=>{const re=r.getParent(B,Re=>xm(g,Re));if(!x(r.getParent(B,"summary")))return!0;if(re&&_t(H,"text/html")){const Re=new DOMParser().parseFromString(H["text/html"],"text/html").body;return!x(Re.querySelector(re.nodeName.toLowerCase()))}else return!1},Wte=r=>{r.on("input",g=>{const B=H=>x(H.querySelector("summary"));if(g.inputType==="deleteByDrag"){const H=Te(r.dom.select("details"),B);ye(H,re=>{On(re.firstChild)&&re.firstChild.remove();const be=r.dom.create("summary");be.appendChild($1().dom),re.prepend(be)})}})},Yte=(r,g)=>{n2(r)&&r.on("dragend dragover draggesture dragdrop drop drag",B=>{B.preventDefault(),B.stopPropagation()}),Fm(r)||r.on("drop",B=>{const H=B.dataTransfer;H&&Zte(H)&&B.preventDefault()}),r.on("drop",B=>{if(B.isDefaultPrevented())return;const H=RU(r,B);if(T(H))return;const re=CR(B.dataTransfer),be=Uy(re,$8());if((!AR(re)||Hte(re))&&ER(r,B,H))return;const Re=re[$8()],Ke=Re||re["text/html"]||re["text/plain"],ct=qte(r.dom,r.schema,H.startContainer,re),kt=g.get();kt&&!ct||Ke&&(B.preventDefault(),Tg.setEditorTimeout(r,()=>{r.undoManager.transact(()=>{(Re||kt&&ct)&&r.execCommand("Delete"),IR(r,H);const Wt=xU(Ke);re["text/html"]?Rk(r,Wt,be,!0):TR(r,Wt,!0)})}))}),r.on("dragstart",B=>{g.set(!0)}),r.on("dragover dragend",B=>{Fm(r)&&!g.get()&&(B.preventDefault(),IR(r,RU(r,B))),B.type==="dragend"&&g.set(!1)}),Wte(r)},Xte=r=>{const g=re=>be=>{re(r,be)},B=q0(r);C(B)&&r.on("PastePreProcess",g(B));const H=rv(r);C(H)&&r.on("PastePostProcess",g(H))},Gte=(r,g)=>{r.on("PastePreProcess",B=>{B.content=g(r,B.content,B.internal)})},Kte=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,LU=r=>mo.trim(r).replace(Kte,Am).toLowerCase(),IU=(r,g,B)=>{const H=iv(r);if(B||H==="all"||!t3(r))return g;const re=H?H.split(/[, ]/):[];if(re&&H!=="none"){const be=r.dom,Re=r.selection.getNode();g=g.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(Ke,ct,kt,Wt)=>{const Jt=be.parseStyle(be.decode(kt)),ln={};for(let Vn=0;Vn]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return g=g.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(be,Re,Ke,ct)=>Re+' style="'+Ke+'"'+ct),g},DU=r=>{(fr.browser.isChromium()||fr.browser.isSafari())&&Gte(r,IU)},Jte=r=>{const g=mr(!1),B=mr(aw(r)?"text":"html"),H=_R(r);DU(r),U8(r,B),Xte(r),r.addQueryStateHandler("mceTogglePlainTextPaste",()=>B.get()==="text"),r.on("PreInit",()=>{Qte(r),Yte(r,g),Nte(r,H,B)})},ene=r=>{r.on("click",g=>{r.dom.getParent(g.target,"details")&&g.preventDefault()})},tne=r=>{r.parser.addNodeFilter("details",g=>{const B=r3(r);ye(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})}),r.serializer.addNodeFilter("details",g=>{const B=o3(r);ye(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})})},nne=r=>{ene(r),tne(r)},rne=On,BU=Nt,one=r=>rr(r.dom),j8=r=>Sn(r.dom),DR=r=>g=>Fa(sr.fromDom(r),g),ine=(r,g,B)=>Ya(sr.fromDom(r),H=>j8(H)||B.isBlock(la(H)),DR(g)).getOr(sr.fromDom(g)).dom,BR=(r,g)=>Ya(sr.fromDom(r),one,DR(g)),zR=(r,g,B)=>{const H=new kc(r,g),re=B?H.next.bind(H):H.prev.bind(H);let be=r;for(let Re=B?r:re();Re&&!rne(Re);Re=re())ih(Re)&&(be=Re);return be},FR=(r,g,B)=>{const re=qr.fromRangeStart(r).getNode(),be=ine(re,g,B),Re=zR(re,be,!1),Ke=zR(re,be,!0),ct=document.createRange();return BR(Re,be).fold(()=>{BU(Re)?ct.setStart(Re,0):ct.setStartBefore(Re)},kt=>ct.setStartBefore(kt.dom)),BR(Ke,be).fold(()=>{BU(Ke)?ct.setEnd(Ke,Ke.data.length):ct.setEndAfter(Ke)},kt=>ct.setEndAfter(kt.dom)),ct},ane=r=>{const g=FR(r.selection.getRng(),r.getBody(),r.schema);r.selection.setRng(Wl(g))},zU=r=>{r.on("mousedown",g=>{g.detail>=3&&(g.preventDefault(),ane(r))})};var A4;(function(r){r.Before="before",r.After="after"})(A4||(A4={}));const FU=(r,g)=>Math.abs(r.left-g),sne=(r,g)=>Math.abs(r.right-g),NU=(r,g)=>r>=g.top&&r<=g.bottom,lne=(r,g)=>r.topg.top,cne=(r,g)=>{const B=SS(r,g)/Math.min(r.height,g.height);return lne(r,g)&&B>.5},une=(r,g)=>{const B=Te(r,H=>NU(g,H));return Dl(B).fold(()=>[[],r],H=>{const{pass:re,fail:be}=Se(r,Re=>cne(Re,H));return[re,be]})},Lk=(r,g)=>({node:r.node,position:FU(r,g)g>r.left&&g{const re=Jt=>ih(Jt.node)?Y.some(Jt):ne(Jt.node)?NR(Ee(Jt.node.childNodes),g,B,!1):Y.none(),be=(Jt,ln,kn)=>re(ln).filter(Vn=>Math.abs(kn(Jt,g,B)-kn(Vn,g,B))<2&&Nt(Vn.node)),Re=(Jt,ln)=>{const kn=Ue(Jt,(Vn,Rn)=>ln(Vn,g,B)-ln(Rn,g,B));return Ne(kn,re).map(Vn=>H&&!Nt(Vn.node)&&kn.length>1?be(Vn,kn[1],ln).getOr(Vn):Vn)},[Ke,ct]=une(KP(r),B),{pass:kt,fail:Wt}=Se(ct,Jt=>Jt.topRe(Wt,kl)).orThunk(()=>Re(kt,kl))},$U=(r,g,B,H)=>{const re=(be,Re)=>{const Ke=kt=>ne(kt)&&kt.classList.contains("mce-drag-container"),ct=Te(be.dom.childNodes,X(Ke));return Re.fold(()=>NR(ct,B,H,!0),kt=>{const Wt=Te(ct,Jt=>Jt!==kt.dom);return NR(Wt,B,H,!0)}).orThunk(()=>(Fa(be,r)?Y.none():Lp(be)).bind(Wt=>re(Wt,Y.some(be))))};return re(g,Y.none())},dne=(r,g,B)=>{const H=sr.fromDom(r),re=Bc(H),Re=sr.fromPoint(re,g,B).filter(Ke=>Qu(H,Ke)).getOr(H);return $U(H,Re,g,B)},VU=(r,g,B)=>dne(r,g,B).filter(H=>sv(H.node)).map(H=>Lk(H,g)),UU=r=>{var g,B;const H=r.getBoundingClientRect(),re=r.ownerDocument,be=re.documentElement,Re=re.defaultView;return{top:H.top+((g=Re==null?void 0:Re.scrollY)!==null&&g!==void 0?g:0)-be.clientTop,left:H.left+((B=Re==null?void 0:Re.scrollX)!==null&&B!==void 0?B:0)-be.clientLeft}},hne=r=>r.inline?UU(r.getBody()):{left:0,top:0},pne=r=>{const g=r.getBody();return r.inline?{left:g.scrollLeft,top:g.scrollTop}:{left:0,top:0}},Q8=r=>{const g=r.getBody(),B=r.getDoc().documentElement,H={left:g.scrollLeft,top:g.scrollTop},re={left:g.scrollLeft||B.scrollLeft,top:g.scrollTop||B.scrollTop};return r.inline?H:re},jU=(r,g)=>{if(g.target.ownerDocument!==r.getDoc()){const B=UU(r.getContentAreaContainer()),H=Q8(r);return{left:g.pageX-B.left+H.left,top:g.pageY-B.top+H.top}}return{left:g.pageX,top:g.pageY}},QU=(r,g,B)=>({pageX:B.left-r.left+g.left,pageY:B.top-r.top+g.top}),mne=(r,g)=>QU(hne(r),pne(r),jU(r,g)),HU=r=>({target:r,srcElement:r}),gne=(r,g,B,H)=>({...g,dataTransfer:H,type:r,...HU(B)}),Cfe=(r,g,B)=>{const H=te("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:r,composedPath:H,initEvent:H,preventDefault:k,stopImmediatePropagation:k,stopPropagation:k,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:H,initMouseEvent:H,getModifierState:H,dataTransfer:B,...HU(g)}},vne=(r,g)=>{const B=gte(r);return g==="dragstart"?(fU(B),hU(B)):g==="drop"?(cte(B),mR(B)):(ute(B),pU(B)),B},ZU=(r,g,B,H)=>{const re=vne(B,r);return M(H)?Cfe(r,g,re):gne(r,H,g,re)},M4=32,H8=100,Z8=8,q8=16,$R=rr,yne=X_($R,Sn),VR=(r,g,B)=>$R(B)&&B!==g&&r.isEditable(B.parentElement),qU=(r,g,B)=>T(g)||g===B||r.dom.isChildOf(g,B)?!1:r.dom.isEditable(g),bne=(r,g,B,H)=>{const re=r.dom,be=g.cloneNode(!0);re.setStyles(be,{width:B,height:H}),re.setAttrib(be,"data-mce-selected",null);const Re=re.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return re.setStyles(Re,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:B,height:H}),re.setStyles(be,{margin:0,boxSizing:"border-box"}),Re.appendChild(be),Re},xne=(r,g)=>{r.parentNode!==g&&g.appendChild(r)},Ik=(r,g)=>B=>()=>{const H=r==="left"?B.scrollX:B.scrollY;B.scroll({[r]:H+g,behavior:"smooth"})},WU=Ik("left",-M4),_ne=Ik("left",M4),YU=Ik("top",-M4),XU=Ik("top",M4),wne=(r,g,B,H,re,be,Re,Ke,ct,kt,Wt,Jt)=>{let ln=0,kn=0;r.style.left=g.pageX+"px",r.style.top=g.pageY+"px",g.pageX+B>re&&(ln=g.pageX+B-re),g.pageY+H>be&&(kn=g.pageY+H-be),r.style.width=B-ln+"px",r.style.height=H-kn+"px";const Vn=ct.clientHeight,Rn=ct.clientWidth,qn=Re+ct.getBoundingClientRect().top,pr=Ke+ct.getBoundingClientRect().left;Wt.on(Tr=>{Tr.intervalId.clear(),Tr.dragging&&Jt&&(Re+Z8>=Vn?Tr.intervalId.set(XU(kt)):Re-Z8<=0?Tr.intervalId.set(YU(kt)):Ke+Z8>=Rn?Tr.intervalId.set(_ne(kt)):Ke-Z8<=0?Tr.intervalId.set(WU(kt)):qn+q8>=window.innerHeight?Tr.intervalId.set(XU(window)):qn-q8<=0?Tr.intervalId.set(YU(window)):pr+q8>=window.innerWidth?Tr.intervalId.set(_ne(window)):pr-q8<=0&&Tr.intervalId.set(WU(window)))})},UR=r=>{r&&r.parentNode&&r.parentNode.removeChild(r)},One=(r,g)=>{const B=r.getParent(g.parentNode,r.isBlock);UR(g),B&&B!==r.getRoot()&&r.isEmpty(B)&&rh(sr.fromDom(B))},GU=r=>r.button===0,Sne=(r,g)=>({pageX:g.pageX-r.relX,pageY:g.pageY+5}),kne=(r,g)=>B=>{if(GU(B)){const H=De(g.dom.getParents(B.target),yne).getOr(null);if(E(H)&&VR(g.dom,g.getBody(),H)){const re=g.dom.getPos(H),be=g.getBody(),Re=g.getDoc().documentElement;r.set({element:H,dataTransfer:gR(),dragging:!1,screenX:B.screenX,screenY:B.screenY,maxX:(g.inline?be.scrollWidth:Re.offsetWidth)-2,maxY:(g.inline?be.scrollHeight:Re.offsetHeight)-2,relX:B.pageX-re.x,relY:B.pageY-re.y,width:H.offsetWidth,height:H.offsetHeight,ghost:bne(g,H,H.offsetWidth,H.offsetHeight),intervalId:Pl(H8)})}}},Tne=(r,g,B)=>{r._selectionOverrides.hideFakeCaret(),VU(r.getBody(),g,B).fold(()=>r.selection.placeCaretAt(g,B),H=>{const re=r._selectionOverrides.showCaret(1,H.node,H.position===A4.Before,!1);re?r.selection.setRng(re):r.selection.placeCaretAt(g,B)})},Dk=(r,g,B,H,re)=>{g==="dragstart"&&gU(H,r.dom.getOuterHTML(B));const be=ZU(g,B,H,re);return r.dispatch(g,be)},Cne=(r,g)=>{const B=hg((re,be)=>Tne(g,re,be),0);g.on("remove",B.cancel);const H=r;return re=>r.on(be=>{const Re=Math.max(Math.abs(re.screenX-be.screenX),Math.abs(re.screenY-be.screenY));if(!be.dragging&&Re>10){const Ke=Dk(g,"dragstart",be.element,be.dataTransfer,re);if(E(Ke.dataTransfer)&&(be.dataTransfer=Ke.dataTransfer),Ke.isDefaultPrevented())return;be.dragging=!0,g.focus()}if(be.dragging){const Ke=re.currentTarget===g.getDoc().documentElement,ct=Sne(be,mne(g,re));xne(be.ghost,g.getBody()),wne(be.ghost,ct,be.width,be.height,be.maxX,be.maxY,re.clientY,re.clientX,g.getContentAreaContainer(),g.getWin(),H,Ke),B.throttle(re.clientX,re.clientY)}})},KU=r=>{const g=r.getSel();if(E(g)){const H=g.getRangeAt(0).startContainer;return Nt(H)?H.parentNode:H}else return null},Afe=(r,g)=>B=>{r.on(H=>{var re;if(H.intervalId.clear(),H.dragging){if(qU(g,KU(g.selection),H.element)){const be=(re=g.getDoc().elementFromPoint(B.clientX,B.clientY))!==null&&re!==void 0?re:g.getBody();Dk(g,"drop",be,H.dataTransfer,B).isDefaultPrevented()||g.undoManager.transact(()=>{One(g.dom,H.element),vte(H.dataTransfer).each(Ke=>g.insertContent(Ke)),g._selectionOverrides.hideFakeCaret()})}Dk(g,"dragend",g.getBody(),H.dataTransfer,B)}}),tj(r)},JU=(r,g,B)=>{r.on(H=>{H.intervalId.clear(),H.dragging&&B.fold(()=>Dk(g,"dragend",H.element,H.dataTransfer),re=>Dk(g,"dragend",H.element,H.dataTransfer,re))}),tj(r)},ej=(r,g)=>B=>JU(r,g,Y.some(B)),tj=r=>{r.on(g=>{g.intervalId.clear(),UR(g.ghost)}),r.clear()},jR=r=>{const g=Ys(),B=Nl.DOM,H=document,re=kne(g,r),be=Cne(g,r),Re=Afe(g,r),Ke=ej(g,r);r.on("mousedown",re),r.on("mousemove",be),r.on("mouseup",Re),B.bind(H,"mousemove",be),B.bind(H,"mouseup",Ke),r.on("remove",()=>{B.unbind(H,"mousemove",be),B.unbind(H,"mouseup",Ke)}),r.on("keydown",ct=>{ct.keyCode===Fo.ESC&&JU(g,r,Y.none())})},Ane=r=>{const g=re=>{if(!re.isDefaultPrevented()){const be=re.dataTransfer;be&&(ce(be.types,"Files")||be.files.length>0)&&(re.preventDefault(),re.type==="drop"&&LC(r,"Dropped file type is not supported"))}},B=re=>{x6(r,re.target)&&g(re)},H=()=>{const re=Nl.DOM,be=r.dom,Re=document,Ke=r.inline?r.getBody():r.getDoc(),ct=["drop","dragover"];ye(ct,kt=>{re.bind(Re,kt,B),be.bind(Ke,kt,g)}),r.on("remove",()=>{ye(ct,kt=>{re.unbind(Re,kt,B),be.unbind(Ke,kt,g)})})};r.on("init",()=>{Tg.setEditorTimeout(r,H,0)})},Mne=r=>{jR(r),my(r)&&Ane(r)},Ene=r=>{const g=hg(()=>{if(!r.removed&&r.getBody().contains(document.activeElement)){const B=r.selection.getRng();if(B.collapsed){const H=UC(r,B,!1);r.selection.setRng(H)}}},0);r.on("focus",()=>{g.throttle()}),r.on("blur",()=>{g.cancel()})},nj=r=>{r.on("init",()=>{r.on("focusin",g=>{const B=g.target;if(Zr(B)){const H=Kb(r.getBody(),B),re=rr(H)?H:B;r.selection.getNode()!==re&&d4(r,re).each(be=>r.selection.setRng(be))}})})},V2=rr,QR=(r,g)=>Kb(r.getBody(),g),rj=r=>{const g=r.selection,B=r.dom,H=r.getBody(),re=RT(r,H,B.isBlock,()=>Mw(r)),be="sel-"+B.uniqueId(),Re="data-mce-selected";let Ke;const ct=di=>E(di)&&B.hasClass(di,"mce-offscreen-selection"),kt=di=>di!==H&&(V2(di)||Zr(di))&&B.isChildOf(di,H)&&B.isEditable(di.parentNode),Wt=di=>{di&&g.setRng(di)},Jt=(di,lo,eo,xo=!0)=>r.dispatch("ShowCaret",{target:lo,direction:di,before:eo}).isDefaultPrevented()?null:(xo&&g.scrollIntoView(lo,di===-1),re.show(eo,lo)),ln=di=>{di.hasAttribute("data-mce-caret")&&(Ra(di),g.scrollIntoView(di))},kn=()=>{r.on("click",lo=>{B.isEditable(lo.target)||(lo.preventDefault(),r.focus())}),r.on("blur NewBlock",Ur),r.on("ResizeWindow FullscreenStateChanged",re.reposition),r.on("tap",lo=>{const eo=lo.target,xo=QR(r,eo);V2(xo)?(lo.preventDefault(),d4(r,xo).each(wr)):kt(eo)&&d4(r,eo).each(wr)},!0),r.on("mousedown",lo=>{const eo=lo.target;if(eo!==H&&eo.nodeName!=="HTML"&&!B.isChildOf(eo,H)||!cG(r,lo.clientX,lo.clientY))return;Ur(),jo();const xo=QR(r,eo);V2(xo)?(lo.preventDefault(),d4(r,xo).each(wr)):VU(H,lo.clientX,lo.clientY).each(bi=>{lo.preventDefault();const Bi=Jt(1,bi.node,bi.position===A4.Before,!1);Wt(Bi),ge(xo)?xo.focus():r.getBody().focus()})}),r.on("keypress",lo=>{Fo.modifierPressed(lo)||V2(g.getNode())&&lo.preventDefault()}),r.on("GetSelectionRange",lo=>{let eo=lo.range;if(Ke){if(!Ke.parentNode){Ke=null;return}eo=eo.cloneRange(),eo.selectNode(Ke),lo.range=eo}}),r.on("SetSelectionRange",lo=>{lo.range=qn(lo.range);const eo=wr(lo.range,lo.forward);eo&&(lo.range=eo)});const di=lo=>ne(lo)&&lo.id==="mcepastebin";r.on("AfterSetSelectionRange",lo=>{const eo=lo.range,xo=eo.startContainer.parentElement;!Rn(eo)&&!di(xo)&&jo(),ct(xo)||Ur()}),Mne(r),Ene(r),nj(r)},Vn=di=>Ch(di)||U0(di)||jp(di),Rn=di=>Vn(di.startContainer)||Vn(di.endContainer),qn=di=>{const lo=r.schema.getVoidElements(),eo=B.createRng(),xo=di.startContainer,bi=di.startOffset,Bi=di.endContainer,$a=di.endOffset;return _t(lo,xo.nodeName.toLowerCase())?bi===0?eo.setStartBefore(xo):eo.setStartAfter(xo):eo.setStart(xo,bi),_t(lo,Bi.nodeName.toLowerCase())?$a===0?eo.setEndBefore(Bi):eo.setEndAfter(Bi):eo.setEnd(Bi,$a),eo},pr=(di,lo)=>{const eo=sr.fromDom(r.getBody()),xo=r.getDoc(),bi=xi(eo,"#"+be).getOrThunk(()=>{const Ia=sr.fromHtml('
    ',xo);return Es(Ia,"id",be),Ps(eo,Ia),Ia}),Bi=B.createRng();vu(bi),gu(bi,[sr.fromText(Ea,xo),sr.fromDom(lo),sr.fromText(Ea,xo)]),Bi.setStart(bi.dom.firstChild,1),Bi.setEnd(bi.dom.lastChild,0),Hi(bi,{top:B.getPos(di,r.getBody()).y+"px"}),F3(bi);const $a=g.getSel();return $a&&($a.removeAllRanges(),$a.addRange(Bi)),Bi},Tr=di=>{const lo=di.cloneNode(!0),eo=r.dispatch("ObjectSelected",{target:di,targetClone:lo});if(eo.isDefaultPrevented())return null;const xo=pr(di,eo.targetClone),bi=sr.fromDom(di);return ye(Zl(sr.fromDom(r.getBody()),`*[${Re}]`),Bi=>{Fa(bi,Bi)||gc(Bi,Re)}),B.getAttrib(di,Re)||di.setAttribute(Re,"1"),Ke=di,jo(),xo},wr=(di,lo)=>{if(!di)return null;if(di.collapsed){if(!Rn(di)){const Bi=lo?1:-1,$a=Fb(Bi,H,di),Ia=$a.getNode(!lo);if(E(Ia)){if(sv(Ia))return Jt(Bi,Ia,lo?!$a.isAtEnd():!1,!1);if(oh(Ia)&&rr(Ia.nextSibling)){const sl=B.createRng();return sl.setStart(Ia,0),sl.setEnd(Ia,0),sl}}const Us=$a.getNode(lo);if(E(Us)){if(sv(Us))return Jt(Bi,Us,lo?!1:!$a.isAtEnd(),!1);if(oh(Us)&&rr(Us.previousSibling)){const sl=B.createRng();return sl.setStart(Us,1),sl.setEnd(Us,1),sl}}}return null}let eo=di.startContainer,xo=di.startOffset;const bi=di.endOffset;if(Nt(eo)&&xo===0&&V2(eo.parentNode)&&(eo=eo.parentNode,xo=B.nodeIndex(eo),eo=eo.parentNode),!ne(eo))return null;if(bi===xo+1&&eo===di.endContainer){const Bi=eo.childNodes[xo];if(kt(Bi))return Tr(Bi)}return null},Ur=()=>{Ke&&Ke.removeAttribute(Re),xi(sr.fromDom(r.getBody()),"#"+be).each(ja),Ke=null},wo=()=>{re.destroy(),Ke=null},jo=()=>{re.hide()};return Iy(r)||kn(),{showCaret:Jt,showBlockCaretContainer:ln,hideFakeCaret:jo,destroy:wo}},Pne=(r,g)=>{let B=g;for(let H=r.previousSibling;Nt(H);H=H.previousSibling)B+=H.data.length;return B},oj=(r,g,B,H,re)=>{if(Nt(B)&&(H<0||H>B.data.length))return[];const be=re&&Nt(B)?[Pne(B,H)]:[H];let Re=B;for(;Re!==g&&Re.parentNode;)be.push(r.nodeIndex(Re,re)),Re=Re.parentNode;return Re===g?be.reverse():[]},W8=(r,g,B,H,re,be,Re=!1)=>{const Ke=oj(r,g,B,H,Re),ct=oj(r,g,re,be,Re);return{start:Ke,end:ct}},ij=(r,g)=>{const B=g.slice(),H=B.pop();return L(H)?Ie(B,(be,Re)=>be.bind(Ke=>Y.from(Ke.childNodes[Re])),Y.some(r)).bind(be=>Nt(be)&&(H<0||H>be.data.length)?Y.none():Y.some({node:be,offset:H})):Y.none()},aj=(r,g)=>ij(r,g.start).bind(({node:B,offset:H})=>ij(r,g.end).map(({node:re,offset:be})=>{const Re=document.createRange();return Re.setStart(B,H),Re.setEnd(re,be),Re})),Rne=(r,g,B,H=!1)=>W8(r,g,B.startContainer,B.startOffset,B.endContainer,B.endOffset,H),U2=(r,g,B)=>{if(g&&r.isEmpty(g)&&!B(g)){const H=g.parentNode;r.remove(g,Nt(g.firstChild)&&kf(g.firstChild.data)),U2(r,H,B)}},Y8=(r,g,B,H=!0)=>{const re=g.startContainer.parentNode,be=g.endContainer.parentNode;g.deleteContents(),H&&!B(g.startContainer)&&(Nt(g.startContainer)&&g.startContainer.data.length===0&&r.remove(g.startContainer),Nt(g.endContainer)&&g.endContainer.data.length===0&&r.remove(g.endContainer),U2(r,re,B),re!==be&&U2(r,be,B))},X8=(r,g)=>Y.from(r.dom.getParent(g.startContainer,r.dom.isBlock)),HR=(r,g,B)=>{const H=r.dynamicPatternsLookup({text:B,block:g});return{...r,blockPatterns:Vc(H).concat(r.blockPatterns),inlinePatterns:ml(H).concat(r.inlinePatterns)}},ZR=(r,g,B,H)=>{const re=r.createRng();return re.setStart(g,0),re.setEnd(B,H),re.toString()},sj=(r,g)=>r.create("span",{"data-mce-type":"bookmark",id:g}),G8=(r,g)=>{const B=r.createRng();return B.setStartAfter(g.start),B.setEndBefore(g.end),B},qR=(r,g,B)=>{const H=aj(r.getRoot(),B).getOrDie("Unable to resolve path range"),re=H.startContainer,be=H.endContainer,Re=H.endOffset===0?be:be.splitText(H.endOffset),Ke=H.startOffset===0?re:re.splitText(H.startOffset),ct=Ke.parentNode,kt=Re.parentNode;return{prefix:g,end:kt.insertBefore(sj(r,g+"-end"),Re),start:ct.insertBefore(sj(r,g+"-start"),Ke)}},WR=(r,g,B)=>{U2(r,r.get(g.prefix+"-end"),B),U2(r,r.get(g.prefix+"-start"),B)},Bk=r=>r.start.length===0,YR=r=>(g,B)=>{const re=g.data.substring(0,B),be=re.lastIndexOf(r.charAt(r.length-1)),Re=re.lastIndexOf(r);return Re!==-1?Re+r.length:be!==-1?be+1:-1},lj=(r,g,B,H)=>{const re=g.start;return A9(r,H.container,H.offset,YR(re),B).bind(Re=>{var Ke,ct;const kt=(ct=(Ke=B.textContent)===null||Ke===void 0?void 0:Ke.indexOf(re))!==null&&ct!==void 0?ct:-1;if(kt!==-1&&Re.offset>=kt+re.length){const Jt=r.createRng();return Jt.setStart(Re.container,Re.offset-re.length),Jt.setEnd(Re.container,Re.offset),Y.some(Jt)}else{const Jt=Re.offset-re.length;return C9(Re.container,Jt,B).map(ln=>{const kn=r.createRng();return kn.setStart(ln.container,ln.offset),kn.setEnd(Re.container,Re.offset),kn}).filter(ln=>ln.toString()===re).orThunk(()=>lj(r,g,B,Sv(Re.container,0)))}})},XR=(r,g,B,H,re,be=!1)=>{if(g.start.length===0&&!be){const Re=r.createRng();return Re.setStart(B,H),Re.setEnd(B,H),Y.some(Re)}return T9(B,H,re).bind(Re=>lj(r,g,re,Re).bind(ct=>{var kt;if(be){if(ct.endContainer===Re.container&&ct.endOffset===Re.offset)return Y.none();if(Re.offset===0&&((kt=ct.endContainer.textContent)===null||kt===void 0?void 0:kt.length)===ct.endOffset)return Y.none()}return Y.some(ct)}))},Lne=(r,g,B,H)=>{const re=r.dom,be=re.getRoot(),Re=B.pattern,Ke=B.position.container,ct=B.position.offset;return C9(Ke,ct-B.pattern.end.length,g).bind(kt=>{const Wt=W8(re,be,kt.container,kt.offset,Ke,ct,H);if(Bk(Re))return Y.some({matches:[{pattern:Re,startRng:Wt,endRng:Wt}],position:kt});{const Jt=K8(r,B.remainingPatterns,kt.container,kt.offset,g,H),ln=Jt.getOr({matches:[],position:kt}),kn=ln.position;return XR(re,Re,kn.container,kn.offset,g,Jt.isNone()).map(Rn=>{const qn=Rne(re,be,Rn,H);return{matches:ln.matches.concat([{pattern:Re,startRng:qn,endRng:Wt}]),position:Sv(Rn.startContainer,Rn.startOffset)}})}})},K8=(r,g,B,H,re,be)=>{const Re=r.dom;return T9(B,H,Re.getRoot()).bind(Ke=>{const ct=ZR(Re,re,B,H);for(let kt=0;kt0)return K8(r,g,B,H-1,re,be);if(ln.isSome())return ln}return Y.none()})},GR=(r,g,B)=>{r.selection.setRng(B),g.type==="inline-format"?ye(g.format,H=>{r.formatter.apply(H)}):r.execCommand(g.cmd,!1,g.value)},Ine=(r,g,B,H)=>{const re=G8(r.dom,B);Y8(r.dom,re,H),GR(r,g,re)},Dne=(r,g,B,H,re)=>{const be=r.dom,Re=G8(be,H),Ke=G8(be,B);Y8(be,Ke,re),Y8(be,Re,re);const ct={prefix:B.prefix,start:B.end,end:H.start},kt=G8(be,ct);GR(r,g,kt)},Bne=(r,g)=>{const B=D1("mce_textpattern"),H=Pe(g,(re,be)=>{const Re=qR(r,B+`_end${re.length}`,be.endRng);return re.concat([{...be,endMarker:Re}])},[]);return Pe(H,(re,be)=>{const Re=H.length-re.length-1,Ke=Bk(be.pattern)?be.endMarker:qR(r,B+`_start${Re}`,be.startRng);return re.concat([{...be,startMarker:Ke}])},[])},zne=r=>Ue(r,(g,B)=>B.end.length-g.end.length),Fne=(r,g)=>{const B=Oe(r,H=>de(g,re=>H.pattern.start===re.pattern.start&&H.pattern.end===re.pattern.end));return r.length===g.length?B?r:g:r.length>g.length?r:g},cj=(r,g,B,H,re,be)=>{const Re=K8(r,re.inlinePatterns,B,H,g,be).fold(()=>[],ct=>ct.matches),Ke=K8(r,zne(re.inlinePatterns),B,H,g,be).fold(()=>[],ct=>ct.matches);return Fne(Re,Ke)},uj=(r,g)=>{if(g.length===0)return;const B=r.dom,H=r.selection.getBookmark(),re=Bne(B,g);ye(re,be=>{const Re=B.getParent(be.startMarker.start,B.isBlock),Ke=ct=>ct===Re;Bk(be.pattern)?Ine(r,be.pattern,be.endMarker,Ke):Dne(r,be.pattern,be.startMarker,be.endMarker,Ke),WR(B,be.endMarker,Ke),WR(B,be.startMarker,Ke)}),r.selection.moveToBookmark(H)},KR=(r,g,B)=>OJ(g,0,g).map(H=>{const re=H.container;return d8(re,B.start.length,g).each(be=>{const Re=r.createRng();Re.setStart(re,0),Re.setEnd(be.container,be.offset),Y8(r,Re,Ke=>Ke===g)}),re}),fj=r=>(g,B)=>{const H=g.dom,re=B.pattern,be=aj(H.getRoot(),B.range).getOrDie("Unable to resolve path range"),Re=(Ke,ct)=>{const kt=ct.get(Ke);return A(kt)&&Xe(kt).exists(Wt=>_t(Wt,"block"))};return X8(g,be).each(Ke=>{re.type==="block-format"?Re(re.format,g.formatter)&&g.undoManager.transact(()=>{r(g.dom,Ke,re),g.formatter.apply(re.format)}):re.type==="block-command"&&g.undoManager.transact(()=>{r(g.dom,Ke,re),g.execCommand(re.cmd,!1,re.value)})}),!0},JR=r=>Ue(r,(g,B)=>B.start.length-g.start.length),dj=r=>(g,B)=>{const H=JR(g),re=B.replace(Ea," ");return De(H,be=>r(be,B,re))},hj=(r,g)=>(B,H,re,be,Re)=>{var Ke;Re===void 0&&(Re=(Ke=H.textContent)!==null&&Ke!==void 0?Ke:"");const ct=B.dom,kt=dc(B);return ct.is(H,kt)?r(re.blockPatterns,Re).map(Wt=>g&&mo.trim(Re).length===Wt.start.length?[]:[{pattern:Wt,range:W8(ct,ct.getRoot(),H,0,H,0,be)}]).getOr([]):[]},Nne=r=>/^\s[^\s]/.test(r),$ne=fj((r,g,B)=>{KR(r,g,B).each(H=>{const re=sr.fromDom(H),be=ry(re);Nne(be)&&Vx(re,be.slice(1))})}),Vne=dj((r,g,B)=>g.indexOf(r.start)===0||B.indexOf(r.start)===0),J8=hj(Vne,!0),Une=(r,g)=>{const B=r.selection.getRng();return X8(r,B).map(H=>{var re;const be=Math.max(0,B.startOffset),Re=HR(g,H,(re=H.textContent)!==null&&re!==void 0?re:""),Ke=cj(r,H,B.startContainer,be,Re,!0),ct=J8(r,H,Re,!0);return{inlineMatches:Ke,blockMatches:ct}}).filter(({inlineMatches:H,blockMatches:re})=>re.length>0||H.length>0)},jne=(r,g)=>{if(g.length===0)return;const B=r.selection.getBookmark();ye(g,H=>$ne(r,H)),r.selection.moveToBookmark(B)},Qne=fj(KR),Hne=dj((r,g,B)=>g===r.start||B===r.start),Zne=hj(Hne,!1),qne=(r,g)=>{const B=r.selection.getRng();return X8(r,B).map(H=>{const re=Math.max(0,B.startOffset),be=ZR(r.dom,H,B.startContainer,re),Re=HR(g,H,be);return Zne(r,H,Re,!1,be)}).filter(H=>H.length>0)},Wne=(r,g)=>{ye(g,B=>Qne(r,B))},Yne=(r,g)=>Une(r,g).fold(oe,({inlineMatches:B,blockMatches:H})=>(r.undoManager.add(),r.undoManager.extra(()=>{r.execCommand("mceInsertNewLine")},()=>{OS(r),uj(r,B),jne(r,H);const re=r.selection.getRng(),be=T9(re.startContainer,re.startOffset,r.dom.getRoot());r.execCommand("mceInsertNewLine"),be.each(Re=>{const Ke=Re.container;Ke.data.charAt(Re.offset-1)===Iu&&(Ke.deleteData(Re.offset-1,1),U2(r.dom,Ke.parentNode,ct=>ct===r.dom.getRoot()))})}),!0)),Xne=(r,g)=>{const B=r.selection.getRng();X8(r,B).map(H=>{const re=Math.max(0,B.startOffset-1),be=ZR(r.dom,H,B.startContainer,re),Re=HR(g,H,be),Ke=cj(r,H,B.startContainer,re,Re,!1);Ke.length>0&&r.undoManager.transact(()=>{uj(r,Ke)})})},pj=(r,g)=>qne(r,g).fold(oe,B=>(r.undoManager.transact(()=>{Wne(r,B)}),!0)),mj=(r,g,B)=>{for(let H=0;Hmj(r,g,(B,H)=>B===H.keyCode&&!Fo.modifierPressed(H)),Gne=(r,g)=>mj(r,g,(B,H)=>B.charCodeAt(0)===H.charCode),Kne=r=>{const g=[",",".",";",":","!","?"],B=[32],H=()=>Uc(Og(r),n3(r)),re=()=>Sg(r);r.on("keydown",Re=>{if(Re.keyCode===13&&!Fo.modifierPressed(Re)&&r.selection.isCollapsed()){const Ke=wu(H(),"enter");(Ke.inlinePatterns.length>0||Ke.blockPatterns.length>0||re())&&Yne(r,Ke)&&Re.preventDefault()}},!0),r.on("keydown",Re=>{if(Re.keyCode===32&&r.selection.isCollapsed()){const Ke=wu(H(),"space");(Ke.blockPatterns.length>0||re())&&pj(r,Ke)&&Re.preventDefault()}},!0);const be=()=>{if(r.selection.isCollapsed()){const Re=wu(H(),"space");(Re.inlinePatterns.length>0||re())&&Xne(r,Re)}};r.on("keyup",Re=>{gj(B,Re)&&be()}),r.on("keypress",Re=>{Gne(g,Re)&&Tg.setEditorTimeout(r,be)})},vj=r=>{Kne(r)},zk=r=>{const g=mo.each,B=Fo.BACKSPACE,H=Fo.DELETE,re=r.dom,be=r.selection,Re=r.parser,Ke=fr.browser,ct=Ke.isFirefox(),kt=Ke.isChromium()||Ke.isSafari(),Wt=fr.deviceType.isiPhone()||fr.deviceType.isiPad(),Jt=fr.os.isMacOS()||fr.os.isiOS(),ln=(ii,Qi)=>{try{r.getDoc().execCommand(ii,!1,String(Qi))}catch{}},kn=ii=>ii.isDefaultPrevented(),Vn=()=>{const ii=Qa=>{const ci=re.create("body"),Va=Qa.cloneContents();return ci.appendChild(Va),be.serializer.serialize(ci,{format:"html"})},Qi=Qa=>{const ci=ii(Qa),Va=re.createRng();Va.selectNode(r.getBody());const Xa=ii(Va);return ci===Xa};r.on("keydown",Qa=>{const ci=Qa.keyCode;if(!kn(Qa)&&(ci===H||ci===B)&&r.selection.isEditable()){const Va=r.selection.isCollapsed(),Xa=r.getBody();if(Va&&!ba(r.schema,Xa)||!Va&&!Qi(r.selection.getRng()))return;Qa.preventDefault(),r.setContent(""),Xa.firstChild&&re.isBlock(Xa.firstChild)?r.selection.setCursorLocation(Xa.firstChild,0):r.selection.setCursorLocation(Xa,0),r.nodeChanged()}})},Rn=()=>{r.shortcuts.add("meta+a",null,"SelectAll")},qn=()=>{r.inline||re.bind(r.getDoc(),"mousedown mouseup",ii=>{let Qi;if(ii.target===r.getDoc().documentElement)if(Qi=be.getRng(),r.getBody().focus(),ii.type==="mousedown"){if(Ch(Qi.startContainer))return;be.placeCaretAt(ii.clientX,ii.clientY)}else be.setRng(Qi)})},pr=()=>{r.on("keydown",ii=>{if(!kn(ii)&&ii.keyCode===B){if(!r.getBody().getElementsByTagName("hr").length)return;if(be.isCollapsed()&&be.getRng().startOffset===0){const Qi=be.getNode(),Qa=Qi.previousSibling;if(Qi.nodeName==="HR"){re.remove(Qi),ii.preventDefault();return}Qa&&Qa.nodeName&&Qa.nodeName.toLowerCase()==="hr"&&(re.remove(Qa),ii.preventDefault())}}})},Tr=()=>{Range.prototype.getClientRects||r.on("mousedown",ii=>{if(!kn(ii)&&ii.target.nodeName==="HTML"){const Qi=r.getBody();Qi.blur(),Tg.setEditorTimeout(r,()=>{Qi.focus()})}})},wr=()=>{const ii=Jx(r);r.on("click",Qi=>{const Qa=Qi.target;/^(IMG|HR)$/.test(Qa.nodeName)&&re.isEditable(Qa)&&(Qi.preventDefault(),r.selection.select(Qa),r.nodeChanged()),Qa.nodeName==="A"&&re.hasClass(Qa,ii)&&Qa.childNodes.length===0&&re.isEditable(Qa.parentNode)&&(Qi.preventDefault(),be.select(Qa))})},Ur=()=>{const ii=()=>{const Qa=re.getAttribs(be.getStart().cloneNode(!1));return()=>{const ci=be.getStart();ci!==r.getBody()&&(re.setAttrib(ci,"style",null),g(Qa,Va=>{ci.setAttributeNode(Va.cloneNode(!0))}))}},Qi=()=>!be.isCollapsed()&&re.getParent(be.getStart(),re.isBlock)!==re.getParent(be.getEnd(),re.isBlock);r.on("keypress",Qa=>{let ci;return!kn(Qa)&&(Qa.keyCode===8||Qa.keyCode===46)&&Qi()?(ci=ii(),r.getDoc().execCommand("delete",!1),ci(),Qa.preventDefault(),!1):!0}),re.bind(r.getDoc(),"cut",Qa=>{if(!kn(Qa)&&Qi()){const ci=ii();Tg.setEditorTimeout(r,()=>{ci()})}})},wo=()=>{r.on("keydown",ii=>{if(!kn(ii)&&ii.keyCode===B&&be.isCollapsed()&&be.getRng().startOffset===0){const Qi=be.getNode().previousSibling;if(Qi&&Qi.nodeName&&Qi.nodeName.toLowerCase()==="table")return ii.preventDefault(),!1}return!0})},jo=()=>{r.on("keydown",ii=>{if(kn(ii)||ii.keyCode!==Fo.BACKSPACE)return;let Qi=be.getRng();const Qa=Qi.startContainer,ci=Qi.startOffset,Va=re.getRoot();let Xa=Qa;if(!(!Qi.collapsed||ci!==0)){for(;Xa.parentNode&&Xa.parentNode.firstChild===Xa&&Xa.parentNode!==Va;)Xa=Xa.parentNode;Xa.nodeName==="BLOCKQUOTE"&&(r.formatter.toggle("blockquote",void 0,Xa),Qi=re.createRng(),Qi.setStart(Qa,0),Qi.setEnd(Qa,0),be.setRng(Qi))}})},di=()=>{const ii=()=>{ln("StyleWithCSS",!1),ln("enableInlineTableEditing",!1),xd(r)||ln("enableObjectResizing",!1)};py(r)||r.on("BeforeExecCommand mousedown",ii)},lo=()=>{const ii=()=>{g(re.select("a:not([data-mce-block])"),Qi=>{var Qa;let ci=Qi.parentNode;const Va=re.getRoot();if((ci==null?void 0:ci.lastChild)===Qi){for(;ci&&!re.isBlock(ci);){if(((Qa=ci.parentNode)===null||Qa===void 0?void 0:Qa.lastChild)!==ci||ci===Va)return;ci=ci.parentNode}re.add(ci,"br",{"data-mce-bogus":1})}})};r.on("SetContent ExecCommand",Qi=>{(Qi.type==="setcontent"||Qi.command==="mceInsertLink")&&ii()})},eo=()=>{r.on("init",()=>{ln("DefaultParagraphSeparator",dc(r))})},xo=ii=>{const Qi=ii.getBody(),Qa=ii.selection.getRng();return Qa.startContainer===Qa.endContainer&&Qa.startContainer===Qi&&Qa.startOffset===0&&Qa.endOffset===Qi.childNodes.length},bi=()=>{r.on("keyup focusin mouseup",ii=>{!Fo.modifierPressed(ii)&&!xo(r)&&be.normalize()},!0)},Bi=()=>{r.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},$a=()=>{r.inline||r.on("keydown",()=>{document.activeElement===document.body&&r.getWin().focus()})},Ia=()=>{r.inline||(r.contentStyles.push("body {min-height: 150px}"),r.on("click",ii=>{let Qi;ii.target.nodeName==="HTML"&&(Qi=r.selection.getRng(),r.getBody().focus(),r.selection.setRng(Qi),r.selection.normalize(),r.nodeChanged())}))},Us=()=>{Jt&&r.on("keydown",ii=>{Fo.metaKeyPressed(ii)&&!ii.shiftKey&&(ii.keyCode===37||ii.keyCode===39)&&(ii.preventDefault(),r.selection.getSel().modify("move",ii.keyCode===37?"backward":"forward","lineboundary"))})},sl=()=>{r.on("click",ii=>{let Qi=ii.target;do if(Qi.tagName==="A"){ii.preventDefault();return}while(Qi=Qi.parentNode)}),r.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},nu=()=>{r.on("init",()=>{r.dom.bind(r.getBody(),"submit",ii=>{ii.preventDefault()})})},jd=()=>{Re.addNodeFilter("br",ii=>{let Qi=ii.length;for(;Qi--;)ii[Qi].attr("class")==="Apple-interchange-newline"&&ii[Qi].remove()})},vl=k,Wo=()=>{if(!ct||r.removed)return!1;const ii=r.selection.getSel();return!ii||!ii.rangeCount||ii.rangeCount===0},Ei=()=>{kt&&(qn(),wr(),nu(),Rn(),Wt&&($a(),Ia(),sl())),ct&&(Tr(),di(),Bi(),Us())},ws=()=>{jo(),Vn(),fr.windowsPhone||bi(),kt&&(qn(),wr(),eo(),nu(),wo(),jd(),Wt?($a(),Ia(),sl()):Rn()),ct&&(pr(),Tr(),Ur(),di(),lo(),Bi(),Us(),wo())};return Iy(r)?Ei():ws(),{refreshContentEditable:vl,isHidden:Wo}},Jne=r=>r.toLowerCase()==="gpl",yj=r=>r.length>=64&&r.length<=255,ere=r=>Jne(r)||yj(r)?"VALID":"INVALID",tre=r=>{const g=Db(r);!v(lw(r))&&(M(g)||ere(g)==="INVALID")&&console.warn("TinyMCE is running in evaluation mode. Provide a valid license key or add license_key: 'gpl' to the init config to agree to the open source license terms. Read more at https://www.tiny.cloud/license-key/")},eL=Nl.DOM,nre=(r,g)=>{const B=sr.fromDom(r.getBody()),H=tp(of(B)),re=sr.fromTag("style");Es(re,"type","text/css"),Ps(re,sr.fromText(g)),Ps(H,re),r.on("remove",()=>{ja(re)})},bj=r=>r.inline?r.getElement().nodeName.toLowerCase():void 0,tL=r=>qt(r,g=>M(g)===!1),nL=r=>{const g=r.options.get,B=r.editorUpload.blobCache;return tL({allow_conditional_comments:g("allow_conditional_comments"),allow_html_data_urls:g("allow_html_data_urls"),allow_svg_data_urls:g("allow_svg_data_urls"),allow_html_in_named_anchor:g("allow_html_in_named_anchor"),allow_script_urls:g("allow_script_urls"),allow_unsafe_link_target:g("allow_unsafe_link_target"),convert_unsafe_embeds:g("convert_unsafe_embeds"),convert_fonts_to_spans:g("convert_fonts_to_spans"),fix_list_elements:g("fix_list_elements"),font_size_legacy_values:g("font_size_legacy_values"),forced_root_block:g("forced_root_block"),forced_root_block_attrs:g("forced_root_block_attrs"),preserve_cdata:g("preserve_cdata"),inline_styles:g("inline_styles"),root_name:bj(r),sandbox_iframes:g("sandbox_iframes"),sandbox_iframes_exclusions:i2(r),sanitize:g("xss_sanitization"),validate:!0,blob_cache:B,document:r.getDoc()})},xj=r=>{const g=r.options.get;return tL({custom_elements:g("custom_elements"),extended_valid_elements:g("extended_valid_elements"),invalid_elements:g("invalid_elements"),invalid_styles:g("invalid_styles"),schema:g("schema"),valid_children:g("valid_children"),valid_classes:g("valid_classes"),valid_elements:g("valid_elements"),valid_styles:g("valid_styles"),verify_html:g("verify_html"),padd_empty_block_inline_children:g("format_empty_lines")})},rre=r=>{const g=r.options.get;return{...nL(r),...xj(r),...tL({remove_trailing_brs:g("remove_trailing_brs"),pad_empty_with_br:g("pad_empty_with_br"),url_converter:g("url_converter"),url_converter_scope:g("url_converter_scope"),element_format:g("element_format"),entities:g("entities"),entity_encoding:g("entity_encoding"),indent:g("indent"),indent_after:g("indent_after"),indent_before:g("indent_before")})}},ore=r=>{const g=Ry(nL(r),r.schema);return g.addAttributeFilter("src,href,style,tabindex",(B,H)=>{const re=r.dom,be="data-mce-"+H;let Re=B.length;for(;Re--;){const Ke=B[Re];let ct=Ke.attr(H);if(ct&&!Ke.attr(be)){if(ct.indexOf("data:")===0||ct.indexOf("blob:")===0)continue;H==="style"?(ct=re.serializeStyle(re.parseStyle(ct),Ke.name),ct.length||(ct=null),Ke.attr(be,ct),Ke.attr(H,ct)):H==="tabindex"?(Ke.attr(be,ct),Ke.attr(H,null)):Ke.attr(be,r.convertURL(ct,H,Ke.name))}}}),g.addNodeFilter("script",B=>{let H=B.length;for(;H--;){const re=B[H],be=re.attr("type")||"no/type";be.indexOf("mce-")!==0&&re.attr("type","mce-"+be)}}),r2(r)&&g.addNodeFilter("#cdata",B=>{var H;let re=B.length;for(;re--;){const be=B[re];be.type=8,be.name="#comment",be.value="[CDATA["+r.dom.encode((H=be.value)!==null&&H!==void 0?H:"")+"]]"}}),g.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",B=>{let H=B.length;const re=r.schema.getNonEmptyElements();for(;H--;){const be=B[H];be.isEmpty(re)&&be.getAll("br").length===0&&be.append(new yp("br",1))}}),g},ire=r=>{const g=Rb(r);g&&Tg.setEditorTimeout(r,()=>{let B;g===!0?B=r:B=r.editorManager.get(g),B&&!B.destroyed&&(B.focus(),B.selection.scrollIntoView())},100)},are=r=>{const g=r.dom.getRoot();!r.inline&&(!GS(r)||r.selection.getStart(!0)===g)&&lh(g).each(B=>{const H=B.getNode(),re=Et(H)?lh(H).getOr(B):B;r.selection.setRng(re.toRange())})},sre=r=>{r.bindPendingEventDelegates(),r.initialized=!0,lE(r),r.focus(!0),are(r),r.nodeChanged({initial:!0});const g=Wh(r);C(g)&&g.call(r,r),ire(r)},rL=r=>r.inline?r.ui.styleSheetLoader:r.dom.styleSheetLoader,lre=(r,g,B)=>{const{pass:H,fail:re}=Se(g,Ke=>tinymce.Resource.has(SP(Ke))),Re=[...H.map(Ke=>{const ct=tinymce.Resource.get(SP(Ke));return v(ct)?Promise.resolve(rL(r).loadRawCss(Ke,ct)):Promise.resolve()}),rL(r).loadAll(re)];return r.inline?Re:Re.concat([r.ui.styleSheetLoader.loadAll(B)])},_j=r=>{const g=rL(r),B=Wu(r),H=r.contentCSS,re=()=>{g.unloadAll(H),r.inline||r.ui.styleSheetLoader.unloadAll(B)},be=()=>{r.removed?re():r.on("remove",re)};if(r.contentStyles.length>0){let ct="";mo.each(r.contentStyles,kt=>{ct+=kt+`\r +`}),r.dom.addStyle(ct)}const Re=Promise.all(lre(r,H,B)).then(be).catch(be),Ke=Sb(r);return Ke&&nre(r,Ke),Re},wj=r=>{const g=r.getDoc(),B=r.getBody();r6(r),zm(r)||(g.body.spellcheck=!1,eL.setAttrib(B,"spellcheck","false")),r.quirks=zk(r),E3(r);const H=Yx(r);H!==void 0&&(B.dir=H);const re=rw(r);re&&r.on("BeforeSetContent",be=>{mo.each(re,Re=>{be.content=be.content.replace(Re,Ke=>"")})}),r.on("SetContent",()=>{r.addVisual(r.getBody())}),r.on("compositionstart compositionend",be=>{r.composing=be.type==="compositionstart"})},oL=r=>{Iy(r)||r.load({initial:!0,format:"html"}),r.startContent=r.getContent({format:"raw"})},eA=r=>{r.removed!==!0&&(oL(r),sre(r))},Oj=r=>{let g=!1;const B=setTimeout(()=>{g||r.setProgressState(!0)},500);return()=>{clearTimeout(B),g=!0,r.setProgressState(!1)}},Sj=r=>{const g=r.getElement();let B=r.getDoc();r.inline&&(eL.addClass(g,"mce-content-body"),r.contentDocument=B=document,r.contentWindow=window,r.bodyElement=g,r.contentAreaContainer=g);const H=r.getBody();H.disabled=!0,r.readonly=py(r),r._editableRoot=Gx(r),!r.readonly&&r.hasEditableRoot()&&(r.inline&&eL.getStyle(H,"position",!0)==="static"&&(H.style.position="relative"),H.contentEditable="true"),H.disabled=!1,r.editorUpload=wG(r),r.schema=Np(xj(r)),r.dom=Nl(B,{keep_values:!0,url_converter:r.convertURL,url_converter_scope:r,update_styles:!0,root_element:r.inline?r.getBody():null,collect:r.inline,schema:r.schema,contentCssCors:X1(r),referrerPolicy:G1(r),onSetAttrib:Re=>{r.dispatch("SetAttrib",Re)}}),r.parser=ore(r),r.serializer=vP(rre(r),r),r.selection=nN(r.dom,r.getWin(),r.serializer,r),r.annotator=J0(r),r.formatter=wN(r),r.undoManager=EP(r),r._nodeChangeDispatcher=new ate(r),r._selectionOverrides=rj(r),v4(r),nne(r),VK(r),Iy(r)||(zU(r),vj(r));const re=sU(r);DK(r,re),FK(r),MG(r),Jte(r);const be=jF(r);wj(r),tre(r),be.fold(()=>{const Re=Oj(r);_j(r).then(()=>{eA(r),Re()})},Re=>{r.setProgressState(!0),_j(r).then(()=>{Re().then(Ke=>{r.setProgressState(!1),eA(r),JF(r)},Ke=>{r.notificationManager.open({type:"error",text:String(Ke)}),eA(r),JF(r)})})})},cre=q,ure=(r,g,B)=>Dp(r,g,cre,B),tA=Nl.DOM,kj=(r,g,B,H)=>{const re=sr.fromTag("iframe");return H.each(be=>Es(re,"tabindex",be)),ef(re,B),ef(re,{id:r+"_ifr",frameBorder:"0",allowTransparency:"true",title:g}),_f(re,"tox-edit-area__iframe"),re},fre=r=>{let g=Mh(r)+"";il(r)!==r.documentBaseUrl&&(g+=''),g+='';const B=Im(r),H=ah(r),re=r.translate(e2(r));return Bu(r)&&(g+=''),g+=`
    `,g},dre=(r,g)=>{const B=fr.browser.isFirefox()?e2(r):"Rich Text Area",H=r.translate(B),re=sd(sr.fromDom(r.getElement()),"tabindex").bind(zr),be=kj(r.id,H,Mc(r),re).dom;be.onload=()=>{be.onload=null,r.dispatch("load")},r.contentAreaContainer=g.iframeContainer,r.iframeElement=be,r.iframeHTML=fre(r),tA.add(g.iframeContainer,be)},iL=r=>{const g=r.iframeElement,B=()=>{r.contentDocument=g.contentDocument,Sj(r)};if(Od(r)||fr.browser.isFirefox()){const H=r.getDoc();H.open(),H.write(r.iframeHTML),H.close(),B()}else{const H=ure(sr.fromDom(g),"load",()=>{H.unbind(),B()});g.srcdoc=r.iframeHTML}},nA=(r,g)=>{dre(r,g),g.editorContainer&&(g.editorContainer.style.display=r.orgDisplay,r.hidden=tA.isHidden(g.editorContainer)),r.getElement().style.display="none",tA.setAttrib(r.id,"aria-hidden","true"),r.getElement().style.visibility=r.orgVisibility,iL(r)},Fk=Nl.DOM,lx=(r,g,B)=>{const H=a4.get(B),re=a4.urls[B]||r.documentBaseUrl.replace(/\/$/,"");if(B=mo.trim(B),H&&mo.inArray(g,B)===-1){if(r.plugins[B])return;try{const be=H(r,re)||{};r.plugins[B]=be,C(be.init)&&(be.init(r,re),g.push(B))}catch(be){OP(r,B,be)}}},rA=r=>r.replace(/^\-/,""),E4=r=>{const g=[];ye(nv(r),B=>{lx(r,g,rA(B))})},Tj=r=>{const g=mo.trim(Jc(r)),B=r.ui.registry.getAll().icons,H={...o4.get("default").icons,...o4.get(g).icons};Ge(H,(re,be)=>{_t(B,be)||r.ui.registry.addIcon(be,re)})},hre=r=>{const g=xg(r);if(v(g)){const B=xv.get(g);r.theme=B(r,xv.urls[g])||{},C(r.theme.init)&&r.theme.init(r,xv.urls[g]||r.documentBaseUrl.replace(/\/$/,""))}else r.theme={}},pre=r=>{const g=Tb(r),B=i4.get(g);r.model=B(r,i4.urls[g])},Cj=r=>{const g=r.theme.renderUI;return g?g():cx(r)},mre=r=>{const g=r.getElement(),H=xg(r)(r,g);return H.editorContainer.nodeType&&(H.editorContainer.id=H.editorContainer.id||r.id+"_parent"),H.iframeContainer&&H.iframeContainer.nodeType&&(H.iframeContainer.id=H.iframeContainer.id||r.id+"_iframecontainer"),H.height=H.iframeHeight?H.iframeHeight:g.offsetHeight,H},oA=(r,g)=>({editorContainer:r,iframeContainer:g,api:{}}),iA=r=>{const g=Fk.create("div");return Fk.insertAfter(g,r),oA(g,g)},cx=r=>{const g=r.getElement();return r.inline?oA(null):iA(g)},lO=r=>{const g=r.getElement();return r.orgDisplay=g.style.display,v(xg(r))?Cj(r):C(xg(r))?mre(r):cx(r)},Aj=(r,g)=>{const B={show:Y.from(g.show).getOr(k),hide:Y.from(g.hide).getOr(k),isEnabled:Y.from(g.isEnabled).getOr(q),setEnabled:H=>{r.mode.isReadOnly()||Y.from(g.setEnabled).each(re=>re(H))}};r.ui={...r.ui,...B}},gre=async r=>{r.dispatch("ScriptsLoaded"),Tj(r),hre(r),pre(r),E4(r);const g=await lO(r);Aj(r,Y.from(g.api).getOr({})),r.editorContainer=g.editorContainer,bG(r),r.inline?Sj(r):nA(r,{editorContainer:g.editorContainer,iframeContainer:g.iframeContainer})},cO=Nl.DOM,Mj=r=>r.charAt(0)==="-",vre=(r,g)=>{const B=K1(g),H=Zp(g);if(!Du.hasCode(B)&&B!=="en"){const re=Kn(H)?H:`${g.editorManager.baseURL}/langs/${B}.js`;r.add(re).catch(()=>{mG(g,re,B)})}},yre=(r,g)=>{const B=xg(r);if(v(B)&&!Mj(B)&&!_t(xv.urls,B)){const H=kb(r),re=H?r.documentBaseURI.toAbsolute(H):`themes/${B}/theme${g}.js`;xv.load(B,re).catch(()=>{sfe(r,re,B)})}},bre=(r,g)=>{const B=Tb(r);if(B!=="plugin"&&!_t(i4.urls,B)){const H=Xx(r),re=v(H)?r.documentBaseURI.toAbsolute(H):`models/${B}/model${g}.js`;i4.load(B,re).catch(()=>{_v(r,re,B)})}},Ej=r=>Y.from(Pc(r)).filter(Kn).map(g=>({url:g,name:Y.none()})),Pj=(r,g,B)=>Y.from(g).filter(H=>Kn(H)&&!o4.has(H)).map(H=>({url:`${r.editorManager.baseURL}/icons/${H}/icons${B}.js`,name:Y.some(H)})),xre=(r,g,B)=>{const H=Pj(g,"default",B),re=Ej(g).orThunk(()=>Pj(g,Jc(g),""));ye(Na([H,re]),be=>{r.add(be.url).catch(()=>{pG(g,be.url,be.name.getOrUndefined())})})},_re=(r,g)=>{const B=(H,re)=>{a4.load(H,re).catch(()=>{hG(r,re,H)})};Ge(e3(r),(H,re)=>{B(re,H),r.options.set("plugins",nv(r).concat(re))}),ye(nv(r),H=>{H=mo.trim(H),H&&!a4.urls[H]&&!Mj(H)&&B(H,`plugins/${H}/plugin${g}.js`)})},Efe=r=>{const g=xg(r);return!v(g)||E(xv.get(g))},wre=r=>{const g=Tb(r);return E(i4.get(g))},aL=(r,g)=>{const B=Mm.ScriptLoader,H=()=>{!r.removed&&Efe(r)&&wre(r)&&gre(r)};yre(r,g),bre(r,g),vre(B,r),xre(B,r,g),_re(r,g),B.loadQueue().then(H,H)},Ore=(r,g)=>wm.forElement(r,{contentCssCors:Eb(g),referrerPolicy:G1(g)}),Sre=r=>{const g=r.id;Du.setCode(K1(r));const B=()=>{cO.unbind(window,"ready",B),r.render()};if(!md.Event.domLoaded){cO.bind(window,"ready",B);return}if(!r.getElement())return;const H=sr.fromDom(r.getElement()),re=Mp(H);r.on("remove",()=>{_e(H.dom.attributes,Re=>gc(H,Re.name)),ef(H,re)}),r.ui.styleSheetLoader=Ore(H,r),ev(r)?r.inline=!0:(r.orgVisibility=r.getElement().style.visibility,r.getElement().style.visibility="hidden");const be=r.getElement().form||cO.getParent(g,"form");be&&(r.formElement=be,_g(r)&&!jt(r.getElement())&&(cO.insertAfter(cO.create("input",{type:"hidden",name:g}),g),r.hasHiddenInput=!0),r.formEventDelegate=Re=>{r.dispatch(Re.type,Re)},cO.bind(be,"submit reset",r.formEventDelegate),r.on("reset",()=>{r.resetContent()}),Ab(r)&&!be.submit.nodeType&&!be.submit.length&&!be._mceOldSubmit&&(be._mceOldSubmit=be.submit,be.submit=()=>(r.editorManager.triggerSave(),r.setDirty(!1),be._mceOldSubmit(be)))),r.windowManager=wP(r),r.notificationManager=hN(r),l0(r)&&r.on("GetContent",Re=>{Re.save&&(Re.content=cO.encode(Re.content))}),nw(r)&&r.on("submit",()=>{r.initialized&&r.save()}),Mb(r)&&(r._beforeUnload=()=>{r.initialized&&!r.destroyed&&!r.isHidden()&&r.save({format:"raw",no_events:!0,set_dirty:!1})},r.editorManager.on("BeforeUnload",r._beforeUnload)),r.editorManager.add(r),aL(r,r.suffix)},Rj=(r,g)=>{r._editableRoot!==g&&(r._editableRoot=g,r.readonly||(r.getBody().contentEditable=String(r.hasEditableRoot()),r.nodeChanged()),s5(r,g))},kre=r=>r._editableRoot,Lj=(r,g)=>({sections:$(r),options:$(g)}),Ij=tr().deviceType,aA=Ij.isPhone(),Tre=Ij.isTablet(),Nk=r=>{if(T(r))return[];{const g=A(r)?r:r.split(/[ ,]/),B=ve(g,Fn);return Te(B,Kn)}},Cre=(r,g)=>{const B=It(g,(H,re)=>ce(r,re));return Lj(B.t,B.f)},Are=(r,g,B={})=>{const H=r.sections(),re=Ct(H,g).getOr({});return mo.extend({},B,re)},sA=(r,g)=>_t(r.sections(),g),sL=(r,g)=>sA(r,g)?r.sections()[g]:{},Dj=(r,g)=>({...{table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:Ct(r,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},...g?{menubar:!1}:{}}),lL=(r,g)=>{var B;const H=(B=g.external_plugins)!==null&&B!==void 0?B:{};return r&&r.external_plugins?mo.extend({},r.external_plugins,H):H},Mre=(r,g)=>[...Nk(r),...Nk(g)],Pfe=(r,g,B,H)=>r&&sA(g,"mobile")?H:B,Rfe=(r,g,B,H)=>{const re=Nk(B.forced_plugins),be=Nk(H.plugins),Re=sL(g,"mobile"),Ke=Re.plugins?Nk(Re.plugins):be,ct=Pfe(r,g,be,Ke),kt=Mre(re,ct);return mo.extend(H,{forced_plugins:re,plugins:kt})},Ere=(r,g)=>r&&sA(g,"mobile"),Bj=(r,g,B,H,re)=>{var be;const Re=r?{mobile:Dj((be=re.mobile)!==null&&be!==void 0?be:{},g)}:{},Ke=Cre(["mobile"],v8(Re,re)),ct=mo.extend(B,H,Ke.options(),Ere(r,Ke)?Are(Ke,"mobile"):{},{external_plugins:lL(H,Ke.options())});return Rfe(r,Ke,H,ct)},Pre=(r,g)=>{const B=I9(g);return Bj(aA||Tre,aA,B,r,B)},Rre=(r,g)=>EX(r,g),Lre=r=>{const g=(H,re)=>{r.formatter.toggle(H,re),r.nodeChanged()},B=H=>()=>{ye("left,center,right,justify".split(","),re=>{H!==re&&r.formatter.remove("align"+re)}),H!=="none"&&g("align"+H)};r.editorCommands.addCommands({JustifyLeft:B("left"),JustifyCenter:B("center"),JustifyRight:B("right"),JustifyFull:B("justify"),JustifyNone:B("none")})},Lfe=r=>{const g=B=>()=>{const H=r.selection,re=H.isCollapsed()?[r.dom.getParent(H.getNode(),r.dom.isBlock)]:H.getSelectedBlocks();return de(re,be=>E(r.formatter.matchNode(be,B)))};r.editorCommands.addCommands({JustifyLeft:g("alignleft"),JustifyCenter:g("aligncenter"),JustifyRight:g("alignright"),JustifyFull:g("alignjustify")},"state")},Ife=r=>{Lre(r),Lfe(r)},zj=r=>{r.editorCommands.addCommands({"Cut,Copy,Paste":g=>{const B=r.getDoc();let H;try{B.execCommand(g)}catch{H=!0}if(g==="paste"&&!B.queryCommandEnabled(g)&&(H=!0),H||!B.queryCommandSupported(g)){let re=r.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(fr.os.isMacOS()||fr.os.isiOS())&&(re=re.replace(/Ctrl\+/g,"⌘+")),r.notificationManager.open({text:re,type:"error"})}}})},Fj=(r,g,B,H)=>{const re=sr.fromDom(r.getRoot());return _5(re,qr.fromRangeStart(g),H)?B=B.replace(/^ /," "):B=B.replace(/^ /," "),w5(re,qr.fromRangeEnd(g),H)?B=B.replace(/( | )()?$/," "):B=B.replace(/ ()?$/," "),B},Ire=r=>{if(typeof r!="string"){const g=mo.extend({paste:r.paste,data:{paste:r.paste}},r);return{content:r.content,details:g}}return{content:r,details:{}}},Dre=(r,g)=>{const B=r.selection,H=r.dom;return/^ | $/.test(g)?Fj(H,B.getRng(),g,r.schema):g},lA=(r,g)=>{if(r.selection.isEditable()){const{content:B,details:H}=Ire(g);rP(r,{...H,content:Dre(r,B),format:"html",set:!1,selection:!0}).each(re=>{const be=KF(r,re.content,H);oP(r,be,re),r.addVisual()})}},Dfe=r=>{r.editorCommands.addCommands({mceCleanup:()=>{const g=r.selection.getBookmark();r.setContent(r.getContent()),r.selection.moveToBookmark(g)},insertImage:(g,B,H)=>{lA(r,r.dom.createHTML("img",{src:H}))},insertHorizontalRule:()=>{r.execCommand("mceInsertContent",!1,"
    ")},insertText:(g,B,H)=>{lA(r,r.dom.encode(H))},insertHTML:(g,B,H)=>{lA(r,H)},mceInsertContent:(g,B,H)=>{lA(r,H)},mceSetContent:(g,B,H)=>{r.setContent(H)},mceReplaceContent:(g,B,H)=>{r.execCommand("mceInsertContent",!1,H.replace(/\{\$selection\}/g,r.selection.getContent({format:"text"})))},mceNewDocument:()=>{r.setContent(ov(r))}})},Bfe={"font-size":"size","font-family":"face"},zfe=Ju("font"),Bre=(r,g,B)=>{const H=be=>Ru(be,r).orThunk(()=>zfe(be)?Ct(Bfe,r).bind(Re=>sd(be,Re)):Y.none()),re=be=>Fa(sr.fromDom(g),be);return v7(sr.fromDom(B),be=>H(be),re)},Ffe=r=>r.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),zre=(r,g)=>Y.from(Nl.DOM.getStyle(g,r,!0)),j2=r=>(g,B)=>Y.from(B).map(sr.fromDom).filter(mc).bind(H=>Bre(r,g,H.dom).or(zre(r,H.dom))).getOr(""),cL=j2("font-size"),cA=I(Ffe,j2("font-family")),Nj=r=>lh(r.getBody()).bind(g=>{const B=g.container();return Y.from(Nt(B)?B.parentNode:B)}),$j=r=>Y.from(r.selection.getRng()).bind(g=>{const B=r.getBody();return g.startContainer===B&&g.startOffset===0?Y.none():Y.from(r.selection.getStart(!0))}),Vj=(r,g)=>$j(r).orThunk(U(Nj,r)).map(sr.fromDom).filter(mc).bind(g),uL=(r,g)=>Vj(r,z(Y.some,g)),Uj=(r,g)=>{if(/^[0-9.]+$/.test(g)){const B=parseInt(g,10);if(B>=1&&B<=7){const H=s0(r),re=Ib(r);return re.length>0?re[B-1]||g:H[B-1]||g}else return g}else return g},Fre=r=>{const g=r.split(/\s*,\s*/);return ve(g,B=>B.indexOf(" ")!==-1&&!(xr(B,'"')||xr(B,"'"))?`'${B}'`:B).join(",")},Nre=(r,g)=>{const B=Uj(r,g);r.formatter.toggle("fontname",{value:Fre(B)}),r.nodeChanged()},$re=r=>uL(r,g=>cA(r.getBody(),g.dom)).getOr(""),Vre=(r,g)=>{r.formatter.toggle("fontsize",{value:Uj(r,g)}),r.nodeChanged()},Q2=r=>uL(r,g=>cL(r.getBody(),g.dom)).getOr(""),Ure=r=>uL(r,g=>{const B=sr.fromDom(r.getBody()),H=v7(g,be=>Ru(be,"line-height"),U(Fa,B)),re=()=>{const be=parseFloat(pi(g,"line-height")),Re=parseFloat(pi(g,"font-size"));return String(be/Re)};return H.getOrThunk(re)}).getOr(""),jj=(r,g)=>{r.formatter.toggle("lineheight",{value:String(g)}),r.nodeChanged()},jre=r=>{const g=(B,H)=>{r.formatter.toggle(B,H),r.nodeChanged()};r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>{g(B)},"ForeColor,HiliteColor":(B,H,re)=>{g(B,{value:re})},BackColor:(B,H,re)=>{g("hilitecolor",{value:re})},FontName:(B,H,re)=>{Nre(r,re)},FontSize:(B,H,re)=>{Vre(r,re)},LineHeight:(B,H,re)=>{jj(r,re)},Lang:(B,H,re)=>{var be;g(B,{value:re.code,customValue:(be=re.customCode)!==null&&be!==void 0?be:null})},RemoveFormat:B=>{r.formatter.remove(B)},mceBlockQuote:()=>{g("blockquote")},FormatBlock:(B,H,re)=>{g(v(re)?re:"p")},mceToggleFormat:(B,H,re)=>{g(re)}})},uA=r=>{const g=B=>r.formatter.match(B);r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>g(B),mceBlockQuote:()=>g("blockquote")},"state"),r.editorCommands.addQueryValueHandler("FontName",()=>$re(r)),r.editorCommands.addQueryValueHandler("FontSize",()=>Q2(r)),r.editorCommands.addQueryValueHandler("LineHeight",()=>Ure(r))},Qre=r=>{jre(r),uA(r)},Hre=r=>{r.editorCommands.addCommands({mceAddUndoLevel:()=>{r.undoManager.add()},mceEndUndoLevel:()=>{r.undoManager.add()},Undo:()=>{r.undoManager.undo()},Redo:()=>{r.undoManager.redo()}})},Zre=r=>{r.editorCommands.addCommands({Indent:()=>{l9(r)},Outdent:()=>{M$(r)}}),r.editorCommands.addCommands({Outdent:()=>n8(r)},"state")},Qj=r=>{const g=(B,H,re)=>{const be=v(re)?{href:re}:re,Re=r.dom.getParent(r.selection.getNode(),"a");_(be)&&v(be.href)&&(be.href=be.href.replace(/ /g,"%20"),(!Re||!be.href)&&r.formatter.remove("link"),be.href&&r.formatter.apply("link",be,Re))};r.editorCommands.addCommands({unlink:()=>{if(r.selection.isEditable()){if(r.selection.isCollapsed()){const B=r.dom.getParent(r.selection.getStart(),"a");B&&r.dom.remove(B,!0);return}r.formatter.remove("link")}},mceInsertLink:g,createLink:g})},qre=(r,g,B,H)=>{const re=r.dom,be=Ke=>re.isBlock(Ke)&&Ke.parentElement===B,Re=be(g)?g:re.getParent(H,be,B);return Y.from(Re).map(sr.fromDom)},Hj=(r,g)=>{const B=r.dom,H=r.selection.getRng(),re=g?r.selection.getStart():r.selection.getEnd(),be=g?H.startContainer:H.endContainer,Re=kk(B,be);if(!Re||!Re.isContentEditable)return;const Ke=g?Fc:si,ct=dc(r);qre(r,re,Re,be).each(kt=>{const Wt=VV(r,be,kt.dom,Re,!1,ct);Ke(kt,sr.fromDom(Wt)),r.selection.setCursorLocation(Wt,0),r.dispatch("NewBlock",{newBlock:Wt}),Sk(r,"insertParagraph")})},Wre=r=>Hj(r,!0),Yre=r=>Hj(r,!1),fL=r=>{r.editorCommands.addCommands({InsertNewBlockBefore:()=>{Wre(r)},InsertNewBlockAfter:()=>{Yre(r)}})},Xre=r=>{r.editorCommands.addCommands({insertParagraph:()=>{P8(HV,r)},mceInsertNewLine:(g,B,H)=>{R8(r,H)},InsertLineBreak:(g,B,H)=>{P8(C8,r)}})},Gre=r=>{r.editorCommands.addCommands({mceSelectNodeDepth:(g,B,H)=>{let re=0;r.dom.getParent(r.selection.getNode(),be=>ne(be)&&re++===H?(r.selection.select(be),!1):!0,r.getBody())},mceSelectNode:(g,B,H)=>{r.selection.select(H)},selectAll:()=>{const g=r.dom.getParent(r.selection.getStart(),Sn);if(g){const B=r.dom.createRng();B.selectNodeContents(g),r.selection.setRng(B)}}})},If=r=>{r.editorCommands.addCommands({mceRemoveNode:(g,B,H)=>{const re=H??r.selection.getNode();if(re!==r.getBody()){const be=r.selection.getBookmark();r.dom.remove(re,!0),r.selection.moveToBookmark(be)}},mcePrint:()=>{r.getWin().print()},mceFocus:(g,B,H)=>{ME(r,H===!0)},mceToggleVisualAid:()=>{r.hasVisual=!r.hasVisual,r.addVisual()}})},Kre=r=>{Ife(r),zj(r),Hre(r),Gre(r),Dfe(r),Qj(r),Zre(r),fL(r),Xre(r),Qre(r),If(r)},Jre=["toggleview"],fA=r=>ce(Jre,r.toLowerCase());class dL{constructor(g){this.commands={state:{},exec:{},value:{}},this.editor=g}execCommand(g,B=!1,H,re){const be=this.editor,Re=g.toLowerCase(),Ke=re==null?void 0:re.skip_focus;if(be.removed||(Re!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(Re)&&!Ke?be.focus():qD(be)),be.dispatch("BeforeExecCommand",{command:g,ui:B,value:H}).isDefaultPrevented()))return!1;const kt=this.commands.exec[Re];return C(kt)?(kt(Re,B,H),be.dispatch("ExecCommand",{command:g,ui:B,value:H}),!0):!1}queryCommandState(g){if(!fA(g)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const B=g.toLowerCase(),H=this.commands.state[B];return C(H)?H(B):!1}queryCommandValue(g){if(!fA(g)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const B=g.toLowerCase(),H=this.commands.value[B];return C(H)?H(B):""}addCommands(g,B="exec"){const H=this.commands;Ge(g,(re,be)=>{ye(be.toLowerCase().split(","),Re=>{H[B][Re]=re})})}addCommand(g,B,H){const re=g.toLowerCase();this.commands.exec[re]=(be,Re,Ke)=>B.call(H??this.editor,Re,Ke)}queryCommandSupported(g){const B=g.toLowerCase();return!!this.commands.exec[B]}addQueryStateHandler(g,B,H){this.commands.state[g.toLowerCase()]=()=>B.call(H??this.editor)}addQueryValueHandler(g,B,H){this.commands.value[g.toLowerCase()]=()=>B.call(H??this.editor)}}const ux="data-mce-contenteditable",eoe=(r,g,B)=>{rs(r,g)&&!B?nf(r,g):B&&_f(r,g)},hL=(r,g,B)=>{try{r.getDoc().execCommand(g,!1,String(B))}catch{}},dA=(r,g)=>{r.dom.contentEditable=g?"true":"false"},toe=r=>{ye(Zl(r,'*[contenteditable="true"]'),g=>{Es(g,ux,"true"),dA(g,!1)})},noe=r=>{ye(Zl(r,`*[${ux}="true"]`),g=>{gc(g,ux),dA(g,!0)})},roe=r=>{Y.from(r.selection.getNode()).each(g=>{g.removeAttribute("data-mce-selected")})},ooe=r=>{r.selection.setRng(r.selection.getRng())},ioe=(r,g)=>{const B=sr.fromDom(r.getBody());eoe(B,"mce-content-readonly",g),g?(r.selection.controlSelection.hideResizeRect(),r._selectionOverrides.hideFakeCaret(),roe(r),r.readonly=!0,dA(B,!1),toe(B)):(r.readonly=!1,r.hasEditableRoot()&&dA(B,!0),noe(B),hL(r,"StyleWithCSS",!1),hL(r,"enableInlineTableEditing",!1),hL(r,"enableObjectResizing",!1),y5(r)&&r.focus(),ooe(r),r.nodeChanged())},h1=r=>r.readonly,p1=r=>{r.parser.addAttributeFilter("contenteditable",g=>{h1(r)&&ye(g,B=>{B.attr(ux,B.attr("contenteditable")),B.attr("contenteditable","false")})}),r.serializer.addAttributeFilter(ux,g=>{h1(r)&&ye(g,B=>{B.attr("contenteditable",B.attr(ux))})}),r.serializer.addTempAttr(ux)},aoe=r=>{r.serializer?p1(r):r.on("PreInit",()=>{p1(r)})},soe=r=>r.type==="click",loe=["copy"],coe=r=>ce(loe,r.type),uoe=(r,g)=>mu(g,"a",H=>Fa(H,sr.fromDom(r.getBody()))).bind(H=>sd(H,"href")),foe=(r,g)=>{if(soe(g)&&!Fo.metaKeyPressed(g)){const B=sr.fromDom(g.target);uoe(r,B).each(H=>{if(g.preventDefault(),/^#/.test(H)){const re=r.dom.select(`${H},[name="${In(H,"#")}"]`);re.length&&r.selection.scrollIntoView(re[0],!0)}else window.open(H,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else coe(g)&&r.dispatch(g.type,g)},doe=r=>{r.on("ShowCaret",g=>{h1(r)&&g.preventDefault()}),r.on("ObjectSelected",g=>{h1(r)&&g.preventDefault()})},hoe=mo.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class pL{static isNative(g){return!!hoe[g.toLowerCase()]}constructor(g){this.bindings={},this.settings=g||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||oe}fire(g,B){return this.dispatch(g,B)}dispatch(g,B){const H=g.toLowerCase(),re=Lx(H,B??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(re);const be=this.bindings[H];if(be)for(let Re=0,Ke=be.length;Re{this.toggleEvent(ct,!1),delete this.bindings[ct]}),this;if(Re){if(!B)Re.length=0;else{const Ke=Se(Re,ct=>ct.func===B);Re=Ke.fail,this.bindings[be]=Re,ye(Ke.pass,ct=>{ct.removed=!0})}Re.length||(this.toggleEvent(g,!1),delete this.bindings[be])}}}else Ge(this.bindings,(H,re)=>{this.toggleEvent(re,!1)}),this.bindings={};return this}once(g,B,H){return this.on(g,B,H,{once:!0})}has(g){g=g.toLowerCase();const B=this.bindings[g];return!(!B||B.length===0)}}const hA=r=>(r._eventDispatcher||(r._eventDispatcher=new pL({scope:r,toggleEvent:(g,B)=>{pL.isNative(g)&&r.toggleNativeEvent&&r.toggleNativeEvent(g,B)}})),r._eventDispatcher),mL={fire(r,g,B){return this.dispatch(r,g,B)},dispatch(r,g,B){const H=this;if(H.removed&&r!=="remove"&&r!=="detach")return Lx(r.toLowerCase(),g??{},H);const re=hA(H).dispatch(r,g);if(B!==!1&&H.parent){let be=H.parent();for(;be&&!re.isPropagationStopped();)be.dispatch(r,re,!1),be=be.parent?be.parent():void 0}return re},on(r,g,B){return hA(this).on(r,g,B)},off(r,g){return hA(this).off(r,g)},once(r,g){return hA(this).once(r,g)},hasEventListeners(r){return hA(this).has(r)}},pA=Nl.DOM;let uO;const mA=(r,g)=>{if(g==="selectionchange")return r.getDoc();if(!r.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(g))return r.getDoc().documentElement;const B=hp(r);return B?(r.eventRoot||(r.eventRoot=pA.select(B)[0]),r.eventRoot):r.getBody()},poe=r=>!r.hidden&&!h1(r),Zj=(r,g,B)=>{poe(r)?r.dispatch(g,B):h1(r)&&foe(r,B)},moe=(r,g)=>{if(r.delegates||(r.delegates={}),r.delegates[g]||r.removed)return;const B=mA(r,g);if(hp(r)){if(uO||(uO={},r.editorManager.on("removeEditor",()=>{r.editorManager.activeEditor||uO&&(Ge(uO,(re,be)=>{r.dom.unbind(mA(r,be))}),uO=null)})),uO[g])return;const H=re=>{const be=re.target,Re=r.editorManager.get();let Ke=Re.length;for(;Ke--;){const ct=Re[Ke].getBody();(ct===be||pA.isChildOf(be,ct))&&Zj(Re[Ke],g,re)}};uO[g]=H,pA.bind(B,g,H)}else{const H=re=>{Zj(r,g,re)};pA.bind(B,g,H),r.delegates[g]=H}},qj={...mL,bindPendingEventDelegates(){const r=this;mo.each(r._pendingNativeEvents,g=>{moe(r,g)})},toggleNativeEvent(r,g){const B=this;r==="focus"||r==="blur"||B.removed||(g?B.initialized?moe(B,r):B._pendingNativeEvents?B._pendingNativeEvents.push(r):B._pendingNativeEvents=[r]:B.initialized&&B.delegates&&(B.dom.unbind(mA(B,r),r,B.delegates[r]),delete B.delegates[r]))},unbindAllNativeEvents(){const r=this,g=r.getBody(),B=r.dom;r.delegates&&(Ge(r.delegates,(H,re)=>{r.dom.unbind(mA(r,re),re,H)}),delete r.delegates),!r.inline&&g&&B&&(g.onload=null,B.unbind(r.getWin()),B.unbind(r.getDoc())),B&&(B.unbind(g),B.unbind(r.getContainer()))}},goe=r=>v(r)?{value:r.split(/[ ,]/),valid:!0}:D(r,v)?{value:r,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},voe=r=>{const g=(()=>{switch(r){case"array":return A;case"boolean":return R;case"function":return C;case"number":return L;case"object":return _;case"string":return v;case"string[]":return goe;case"object[]":return B=>D(B,_);case"regexp":return B=>m(B,RegExp);default:return q}})();return B=>gL(B,g,`The value must be a ${r}.`)},yoe=r=>v(r.processor),Wj=(r,g)=>{const B=_r(g.message)?"":`. ${g.message}`;return r+B},Yj=r=>r.valid,gL=(r,g,B="")=>{const H=g(r);return R(H)?H?{value:r,valid:!0}:{valid:!1,message:B}:H},boe=(r,g,B)=>{if(!M(g)){const H=gL(g,B);if(Yj(H))return H.value;console.error(Wj(`Invalid default value passed for the "${r}" option`,H))}},xoe=(r,g,B=g)=>{const H={},re={},be=(kn,Vn,Rn)=>{const qn=gL(Vn,Rn);return Yj(qn)?(re[kn]=qn.value,!0):(console.warn(Wj(`Invalid value passed for the ${kn} option`,qn)),!1)},Re=(kn,Vn)=>{const Rn=yoe(Vn)?voe(Vn.processor):Vn.processor,qn=boe(kn,Vn.default,Rn);H[kn]={...Vn,default:qn,processor:Rn},Ct(re,kn).orThunk(()=>Ct(g,kn)).each(Tr=>be(kn,Tr,Rn))},Ke=kn=>_t(H,kn);return{register:Re,isRegistered:Ke,get:kn=>Ct(re,kn).orThunk(()=>Ct(H,kn).map(Vn=>Vn.default)).getOrUndefined(),set:(kn,Vn)=>{if(Ke(kn)){const Rn=H[kn];return Rn.immutable?(console.error(`"${kn}" is an immutable option and cannot be updated`),!1):be(kn,Vn,Rn.processor)}else return console.warn(`"${kn}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:kn=>{const Vn=Ke(kn);return Vn&&delete re[kn],Vn},isSet:kn=>_t(re,kn),debug:()=>{try{console.log(JSON.parse(JSON.stringify(B,(kn,Vn)=>R(Vn)||L(Vn)||v(Vn)||x(Vn)||A(Vn)||S(Vn)?Vn:Object.prototype.toString.call(Vn))))}catch(kn){console.error(kn)}}}},_oe=["design","readonly"],Xj=(r,g,B,H)=>{const re=B[g.get()],be=B[H];try{be.activate()}catch(Re){console.error(`problem while activating editor mode ${H}:`,Re);return}re.deactivate(),re.editorReadOnly!==be.editorReadOnly&&ioe(r,be.editorReadOnly),g.set(H),iE(r,H)},woe=(r,g,B,H)=>{if(H!==B.get()){if(!_t(g,H))throw new Error(`Editor mode '${H}' is invalid`);r.initialized?Xj(r,B,g,H):r.on("init",()=>Xj(r,B,g,H))}},Ooe=(r,g,B)=>{if(ce(_oe,g))throw new Error(`Cannot override default mode ${g}`);return{...r,[g]:{...B,deactivate:()=>{try{B.deactivate()}catch(H){console.error(`problem while deactivating editor mode ${g}:`,H)}}}}},Soe=r=>{const g=mr("design"),B=mr({design:{activate:k,deactivate:k,editorReadOnly:!1},readonly:{activate:k,deactivate:k,editorReadOnly:!0}});return aoe(r),doe(r),{isReadOnly:()=>h1(r),set:H=>woe(r,B.get(),g,H),get:()=>g.get(),register:(H,re)=>{B.set(Ooe(B.get(),H,re))}}},vL=mo.each,yL=mo.explode,Gj={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Kj=mo.makeMap("alt,ctrl,shift,meta,access"),koe=r=>r in Kj,Toe=r=>{const g={},B=fr.os.isMacOS()||fr.os.isiOS();vL(yL(r.toLowerCase(),"+"),be=>{koe(be)?g[be]=!0:/^[0-9]{2,}$/.test(be)?g.keyCode=parseInt(be,10):(g.charCode=be.charCodeAt(0),g.keyCode=Gj[be]||be.toUpperCase().charCodeAt(0))});const H=[g.keyCode];let re;for(re in Kj)g[re]?H.push(re):g[re]=!1;return g.id=H.join(","),g.access&&(g.alt=!0,B?g.ctrl=!0:g.shift=!0),g.meta&&(B?g.meta=!0:(g.ctrl=!0,g.meta=!1)),g};class Jj{constructor(g){this.shortcuts={},this.pendingPatterns=[],this.editor=g;const B=this;g.on("keyup keypress keydown",H=>{(B.hasModifier(H)||B.isFunctionKey(H))&&!H.isDefaultPrevented()&&(vL(B.shortcuts,re=>{B.matchShortcut(H,re)&&(B.pendingPatterns=re.subpatterns.slice(0),H.type==="keydown"&&B.executeShortcutAction(re))}),B.matchShortcut(H,B.pendingPatterns[0])&&(B.pendingPatterns.length===1&&H.type==="keydown"&&B.executeShortcutAction(B.pendingPatterns[0]),B.pendingPatterns.shift()))})}add(g,B,H,re){const be=this,Re=be.normalizeCommandFunc(H);return vL(yL(mo.trim(g)),Ke=>{const ct=be.createShortcut(Ke,B,Re,re);be.shortcuts[ct.id]=ct}),!0}remove(g){const B=this.createShortcut(g);return this.shortcuts[B.id]?(delete this.shortcuts[B.id],!0):!1}normalizeCommandFunc(g){const B=this,H=g;return typeof H=="string"?()=>{B.editor.execCommand(H,!1,null)}:mo.isArray(H)?()=>{B.editor.execCommand(H[0],H[1],H[2])}:H}createShortcut(g,B,H,re){const be=mo.map(yL(g,">"),Toe);return be[be.length-1]=mo.extend(be[be.length-1],{func:H,scope:re||this.editor}),mo.extend(be[0],{desc:this.editor.translate(B),subpatterns:be.slice(1)})}hasModifier(g){return g.altKey||g.ctrlKey||g.metaKey}isFunctionKey(g){return g.type==="keydown"&&g.keyCode>=112&&g.keyCode<=123}matchShortcut(g,B){return!B||B.ctrl!==g.ctrlKey||B.meta!==g.metaKey||B.alt!==g.altKey||B.shift!==g.shiftKey?!1:g.keyCode===B.keyCode||g.charCode&&g.charCode===B.charCode?(g.preventDefault(),!0):!1}executeShortcutAction(g){return g.func?g.func.call(g.scope):null}}const Coe=()=>{const r={},g={},B={},H={},re={},be={},Re={},Ke={},ct=(Wt,Jt)=>(ln,kn)=>{Wt[ln.toLowerCase()]={...kn,type:Jt}},kt=(Wt,Jt)=>H[Wt.toLowerCase()]=Jt;return{addButton:ct(r,"button"),addGroupToolbarButton:ct(r,"grouptoolbarbutton"),addToggleButton:ct(r,"togglebutton"),addMenuButton:ct(r,"menubutton"),addSplitButton:ct(r,"splitbutton"),addMenuItem:ct(g,"menuitem"),addNestedMenuItem:ct(g,"nestedmenuitem"),addToggleMenuItem:ct(g,"togglemenuitem"),addAutocompleter:ct(B,"autocompleter"),addContextMenu:ct(re,"contextmenu"),addContextToolbar:ct(be,"contexttoolbar"),addContextForm:ct(be,"contextform"),addSidebar:ct(Re,"sidebar"),addView:ct(Ke,"views"),addIcon:kt,getAll:()=>({buttons:r,menuItems:g,icons:H,popups:B,contextMenus:re,contextToolbars:be,sidebars:Re,views:Ke})}},Aoe=()=>{const r=Coe();return{addAutocompleter:r.addAutocompleter,addButton:r.addButton,addContextForm:r.addContextForm,addContextMenu:r.addContextMenu,addContextToolbar:r.addContextToolbar,addIcon:r.addIcon,addMenuButton:r.addMenuButton,addMenuItem:r.addMenuItem,addNestedMenuItem:r.addNestedMenuItem,addSidebar:r.addSidebar,addSplitButton:r.addSplitButton,addToggleButton:r.addToggleButton,addGroupToolbarButton:r.addGroupToolbarButton,addToggleMenuItem:r.addToggleMenuItem,addView:r.addView,getAll:r.getAll}},fO=Nl.DOM,eQ=mo.extend,tQ=mo.each;class gA{constructor(g,B,H){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=H,this.documentBaseUrl=H.documentBaseURL,eQ(this,qj);const re=this;this.id=g,this.hidden=!1;const be=Pre(H.defaultOptions,B);this.options=xoe(re,be,B),ac(re);const Re=this.options.get;Re("deprecation_warnings")&&JX(B,be);const Ke=Re("suffix");Ke&&(H.suffix=Ke),this.suffix=H.suffix;const ct=Re("base_url");ct&&H._setBaseUrl(ct),this.baseUri=H.baseURI;const kt=G1(re);kt&&(Mm.ScriptLoader._setReferrerPolicy(kt),Nl.DOM.styleSheetLoader._setReferrerPolicy(kt));const Wt=Eb(re);E(Wt)&&Nl.DOM.styleSheetLoader._setContentCssCors(Wt),su.languageLoad=Re("language_load"),su.baseURL=H.baseURL,this.setDirty(!1),this.documentBaseURI=new Ih(il(re),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=ev(re),this.hasVisual=wd(re),this.shortcuts=new Jj(this),this.editorCommands=new dL(this),Kre(this);const Jt=Re("cache_suffix");Jt&&(fr.cacheSuffix=Jt.replace(/^[\?\&]+/,"")),this.ui={registry:Aoe(),styleSheetLoader:void 0,show:k,hide:k,setEnabled:k,isEnabled:q},this.mode=Soe(re),H.dispatch("SetupEditor",{editor:this});const ln=Pb(re);C(ln)&&ln.call(re,re)}render(){Sre(this)}focus(g){this.execCommand("mceFocus",!1,g)}hasFocus(){return Mw(this)}translate(g){return Du.translate(g)}getParam(g,B,H){const re=this.options;return re.isRegistered(g)||(E(H)?re.register(g,{processor:H,default:B}):re.register(g,{processor:q,default:B})),!re.isSet(g)&&!M(B)?B:re.get(g)}hasPlugin(g,B){return ce(nv(this),g)?B?a4.get(g)!==void 0:!0:!1}nodeChanged(g){this._nodeChangeDispatcher.nodeChanged(g)}addCommand(g,B,H){this.editorCommands.addCommand(g,B,H)}addQueryStateHandler(g,B,H){this.editorCommands.addQueryStateHandler(g,B,H)}addQueryValueHandler(g,B,H){this.editorCommands.addQueryValueHandler(g,B,H)}addShortcut(g,B,H,re){this.shortcuts.add(g,B,H,re)}execCommand(g,B,H,re){return this.editorCommands.execCommand(g,B,H,re)}queryCommandState(g){return this.editorCommands.queryCommandState(g)}queryCommandValue(g){return this.editorCommands.queryCommandValue(g)}queryCommandSupported(g){return this.editorCommands.queryCommandSupported(g)}show(){const g=this;g.hidden&&(g.hidden=!1,g.inline?g.getBody().contentEditable="true":(fO.show(g.getContainer()),fO.hide(g.id)),g.load(),g.dispatch("show"))}hide(){const g=this;g.hidden||(g.save(),g.inline?(g.getBody().contentEditable="false",g===g.editorManager.focusedEditor&&(g.editorManager.focusedEditor=null)):(fO.hide(g.getContainer()),fO.setStyle(g.id,"display",g.orgDisplay)),g.hidden=!0,g.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(g,B){this.dispatch("ProgressState",{state:g,time:B})}load(g={}){const B=this,H=B.getElement();if(B.removed)return"";if(H){const re={...g,load:!0},be=jt(H)?H.value:H.innerHTML,Re=B.setContent(be,re);return re.no_events||B.dispatch("LoadContent",{...re,element:H}),Re}else return""}save(g={}){const B=this;let H=B.getElement();if(!H||!B.initialized||B.removed)return"";const re={...g,save:!0,element:H};let be=B.getContent(re);const Re={...re,content:be};if(Re.no_events||B.dispatch("SaveContent",Re),Re.format==="raw"&&B.dispatch("RawSaveContent",Re),be=Re.content,jt(H))H.value=be;else{(g.is_removing||!B.inline)&&(H.innerHTML=be);const Ke=fO.getParent(B.id,"form");Ke&&tQ(Ke.elements,ct=>ct.name===B.id?(ct.value=be,!1):!0)}return Re.element=re.element=H=null,Re.set_dirty!==!1&&B.setDirty(!1),be}setContent(g,B){return bP(this,g,B)}getContent(g){return MC(this,g)}insertContent(g,B){B&&(g=eQ({content:g},B)),this.execCommand("mceInsertContent",!1,g)}resetContent(g){g===void 0?bP(this,this.startContent,{format:"raw"}):bP(this,g),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(g){const B=!this.isNotDirty;this.isNotDirty=!g,g&&g!==B&&this.dispatch("dirty")}getContainer(){const g=this;return g.container||(g.container=g.editorContainer||fO.get(g.id+"_parent")),g.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=fO.get(this.id)),this.targetElm}getWin(){const g=this;if(!g.contentWindow){const B=g.iframeElement;B&&(g.contentWindow=B.contentWindow)}return g.contentWindow}getDoc(){const g=this;if(!g.contentDocument){const B=g.getWin();B&&(g.contentDocument=B.document)}return g.contentDocument}getBody(){var g,B;const H=this.getDoc();return(B=(g=this.bodyElement)!==null&&g!==void 0?g:H==null?void 0:H.body)!==null&&B!==void 0?B:null}convertURL(g,B,H){const re=this,be=re.options.get,Re=t2(re);if(C(Re))return Re.call(re,g,H,!0,B);if(!be("convert_urls")||H==="link"||_(H)&&H.nodeName==="LINK"||g.indexOf("file:")===0||g.length===0)return g;const Ke=new Ih(g);return Ke.protocol!=="http"&&Ke.protocol!=="https"&&Ke.protocol!==""?g:be("relative_urls")?re.documentBaseURI.toRelative(g):(g=re.documentBaseURI.toAbsolute(g,be("remove_script_host")),g)}addVisual(g){Rre(this,g)}setEditableRoot(g){Rj(this,g)}hasEditableRoot(){return kre(this)}remove(){nG(this)}destroy(g){rG(this,g)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const P4=Nl.DOM,vA=mo.each;let nQ=!1,yA,rm=[];const bA=r=>{const g=r.type;vA(H2.get(),B=>{switch(g){case"scroll":B.dispatch("ScrollWindow",r);break;case"resize":B.dispatch("ResizeWindow",r);break}})},rQ=r=>{if(r!==nQ){const g=Nl.DOM;r?(g.bind(window,"resize",bA),g.bind(window,"scroll",bA)):(g.unbind(window,"resize",bA),g.unbind(window,"scroll",bA)),nQ=r}},bL=r=>{const g=rm;return rm=Te(rm,B=>r!==B),H2.activeEditor===r&&(H2.activeEditor=rm.length>0?rm[0]:null),H2.focusedEditor===r&&(H2.focusedEditor=null),g.length!==rm.length},Nfe=r=>{r&&r.initialized&&!(r.getContainer()||r.getBody()).parentNode&&(bL(r),r.unbindAllNativeEvents(),r.destroy(!0),r.removed=!0)},oQ=document.compatMode!=="CSS1Compat",H2={...mL,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"7",minorVersion:"2.0",releaseDate:"2024-06-19",i18n:Du,activeEditor:null,focusedEditor:null,setup(){const r=this;let g="",B="",H=Ih.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/"));const re=window.tinymce||window.tinyMCEPreInit;if(re)g=re.base||re.baseURL,B=re.suffix;else{const be=document.getElementsByTagName("script");for(let Re=0;Re{su.PluginManager.urls[be]=re})},init(r){const g=this;let B;const H=mo.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),re=(Wt,Jt)=>Wt.inline&&Jt.tagName.toLowerCase()in H,be=Wt=>{let Jt=Wt.id;return Jt||(Jt=Ct(Wt,"name").filter(ln=>!P4.get(ln)).getOrThunk(P4.uniqueId),Wt.setAttribute("id",Jt)),Jt},Re=Wt=>{const Jt=r[Wt];if(Jt)return Jt.apply(g,[])},Ke=Wt=>fr.browser.isIE()||fr.browser.isEdge()?(IC("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/7/support/#supportedwebbrowsers"),[]):oQ?(IC("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):v(Wt.selector)?P4.select(Wt.selector):E(Wt.target)?[Wt.target]:[];let ct=Wt=>{B=Wt};const kt=()=>{let Wt=0;const Jt=[];let ln;const kn=(Vn,Rn,qn)=>{const pr=new gA(Vn,Rn,g);Jt.push(pr),pr.on("init",()=>{++Wt===ln.length&&ct(Jt)}),pr.targetElm=pr.targetElm||qn,pr.render()};P4.unbind(window,"ready",kt),Re("onpageload"),ln=je(Ke(r)),mo.each(ln,Vn=>{Nfe(g.get(Vn.id))}),ln=mo.grep(ln,Vn=>!g.get(Vn.id)),ln.length===0?ct([]):vA(ln,Vn=>{re(r,Vn)?IC("Could not initialize inline editor on invalid inline target element",Vn):kn(be(Vn),r,Vn)})};return P4.bind(window,"ready",kt),new Promise(Wt=>{B?Wt(B):ct=Jt=>{Wt(Jt)}})},get(r){return arguments.length===0?rm.slice(0):v(r)?De(rm,g=>g.id===r).getOr(null):L(r)&&rm[r]?rm[r]:null},add(r){const g=this,B=g.get(r.id);return B===r||(B===null&&rm.push(r),rQ(!0),g.activeEditor=r,g.dispatch("AddEditor",{editor:r}),yA||(yA=H=>{const re=g.dispatch("BeforeUnload");if(re.returnValue)return H.preventDefault(),H.returnValue=re.returnValue,re.returnValue},window.addEventListener("beforeunload",yA))),r},createEditor(r,g){return this.add(new gA(r,g,this))},remove(r){const g=this;let B;if(!r){for(let H=rm.length-1;H>=0;H--)g.remove(rm[H]);return}if(v(r)){vA(P4.select(r),H=>{B=g.get(H.id),B&&g.remove(B)});return}return B=r,x(g.get(B.id))?null:(bL(B)&&g.dispatch("RemoveEditor",{editor:B}),rm.length===0&&window.removeEventListener("beforeunload",yA),B.remove(),rQ(rm.length>0),B)},execCommand(r,g,B){var H;const re=this,be=_(B)?(H=B.id)!==null&&H!==void 0?H:B.index:B;switch(r){case"mceAddEditor":{if(!re.get(be)){const Re=B.options;new gA(be,Re,re).render()}return!0}case"mceRemoveEditor":{const Re=re.get(be);return Re&&Re.remove(),!0}case"mceToggleEditor":{const Re=re.get(be);return Re?(Re.isHidden()?Re.show():Re.hide(),!0):(re.execCommand("mceAddEditor",!1,B),!0)}}return re.activeEditor?re.activeEditor.execCommand(r,g,B):!1},triggerSave:()=>{vA(rm,r=>{r.save()})},addI18n:(r,g)=>{Du.add(r,g)},translate:r=>Du.translate(r),setActive(r){const g=this.activeEditor;this.activeEditor!==r&&(g&&g.dispatch("deactivate",{relatedTarget:r}),r.dispatch("activate",{relatedTarget:g})),this.activeEditor=r},_setBaseUrl(r){this.baseURL=new Ih(this.documentBaseURL).toAbsolute(r.replace(/\/+$/,"")),this.baseURI=new Ih(this.baseURL)}};H2.setup();const Eoe=(()=>{const r=Ys(),g=be=>({items:be,types:nt(be),getType:Re=>Ct(be,Re).getOrUndefined()}),B=be=>{r.set(be)},H=()=>r.get().getOrUndefined(),re=r.clear;return{FakeClipboardItem:g,write:B,read:H,clear:re}})(),iQ=Math.min,R4=Math.max,xA=Math.round,aQ=(r,g,B)=>{let H=g.x,re=g.y;const be=r.w,Re=r.h,Ke=g.w,ct=g.h,kt=(B||"").split("");return kt[0]==="b"&&(re+=ct),kt[1]==="r"&&(H+=Ke),kt[0]==="c"&&(re+=xA(ct/2)),kt[1]==="c"&&(H+=xA(Ke/2)),kt[3]==="b"&&(re-=Re),kt[4]==="r"&&(H-=be),kt[3]==="c"&&(re-=xA(Re/2)),kt[4]==="c"&&(H-=xA(be/2)),dO(H,re,be,Re)},Poe=(r,g,B,H)=>{for(let re=0;re=B.x&&be.x+be.w<=B.w+B.x&&be.y>=B.y&&be.y+be.h<=B.h+B.y)return H[re]}return null},xL=(r,g,B)=>dO(r.x-g,r.y-B,r.w+g*2,r.h+B*2),_L=(r,g)=>{const B=R4(r.x,g.x),H=R4(r.y,g.y),re=iQ(r.x+r.w,g.x+g.w),be=iQ(r.y+r.h,g.y+g.h);return re-B<0||be-H<0?null:dO(B,H,re-B,be-H)},Roe=(r,g,B)=>{let H=r.x,re=r.y,be=r.x+r.w,Re=r.y+r.h;const Ke=g.x+g.w,ct=g.y+g.h,kt=R4(0,g.x-H),Wt=R4(0,g.y-re),Jt=R4(0,be-Ke),ln=R4(0,Re-ct);return H+=kt,re+=Wt,B&&(be+=kt,Re+=Wt,H-=Jt,re-=ln),be-=Jt,Re-=ln,dO(H,re,be-H,Re-re)},dO=(r,g,B,H)=>({x:r,y:g,w:B,h:H}),Loe={inflate:xL,relativePosition:aQ,findBestRelativePosition:Poe,intersect:_L,clamp:Roe,create:dO,fromClientRect:r=>dO(r.left,r.top,r.width,r.height)},Ioe=(r,g,B=1e3)=>{let H=!1,re=null;const be=kt=>(...Wt)=>{H||(H=!0,re!==null&&(clearTimeout(re),re=null),kt.apply(null,Wt))},Re=be(r),Ke=be(g);return{start:(...kt)=>{!H&&re===null&&(re=setTimeout(()=>Ke.apply(null,kt),B))},resolve:Re,reject:Ke}},Doe=(()=>{const r={},g={},B={};return{load:(ct,kt)=>{const Wt=`Script at URL "${kt}" failed to load`,Jt=`Script at URL "${kt}" did not call \`tinymce.Resource.add('${ct}', data)\` within 1 second`;if(r[ct]!==void 0)return r[ct];{const ln=new Promise((kn,Vn)=>{const Rn=Ioe(kn,Vn);g[ct]=Rn.resolve,Mm.ScriptLoader.loadScript(kt).then(()=>Rn.start(Jt),()=>Rn.reject(Wt))});return r[ct]=ln,ln}},add:(ct,kt)=>{g[ct]!==void 0&&(g[ct](kt),delete g[ct]),r[ct]=Promise.resolve(kt),B[ct]=kt},has:ct=>ct in B,get:ct=>B[ct],unload:ct=>{delete r[ct],delete B[ct]}}})(),Boe=()=>(()=>{let r={},g=[];const B={getItem:H=>{const re=r[H];return re||null},setItem:(H,re)=>{g.push(H),r[H]=String(re)},key:H=>g[H],removeItem:H=>{g=g.filter(re=>re===H),delete r[H]},clear:()=>{g=[],r={}},length:0};return Object.defineProperty(B,"length",{get:()=>g.length,configurable:!1,enumerable:!1}),B})();let $k;try{const r="__storage_test__";$k=window.localStorage,$k.setItem(r,r),$k.removeItem(r)}catch{$k=Boe()}var zoe=$k;const Foe={geom:{Rect:Loe},util:{Delay:Tg,Tools:mo,VK:Fo,URI:Ih,EventDispatcher:pL,Observable:mL,I18n:Du,LocalStorage:zoe,ImageUploader:TP},dom:{EventUtils:md,TreeWalker:kc,TextSeeker:Em,DOMUtils:Nl,ScriptLoader:Mm,RangeUtils:To,Serializer:vP,StyleSheetLoader:_m,ControlSelection:Ow,BookmarkManager:ky,Selection:nN,Event:md.Event},html:{Styles:I_,Entities:up,Node:yp,Schema:Np,DomParser:Ry,Writer:vB,Serializer:Yb},Env:fr,AddOnManager:su,Annotator:J0,Formatter:wN,UndoManager:EP,EditorCommands:dL,WindowManager:wP,NotificationManager:hN,EditorObservable:qj,Shortcuts:Jj,Editor:gA,FocusManager:WD,EditorManager:H2,DOM:Nl.DOM,ScriptLoader:Mm.ScriptLoader,PluginManager:a4,ThemeManager:xv,ModelManager:i4,IconManager:o4,Resource:Doe,FakeClipboard:Eoe,trim:mo.trim,isArray:mo.isArray,is:mo.is,toArray:mo.toArray,makeMap:mo.makeMap,each:mo.each,map:mo.map,grep:mo.grep,inArray:mo.inArray,extend:mo.extend,walk:mo.walk,resolve:mo.resolve,explode:mo.explode,_addCacheSuffix:mo._addCacheSuffix},sQ=mo.extend(H2,Foe),wL=r=>{try{t.exports=r}catch{}};(r=>{window.tinymce=r,window.tinyMCE=r})(sQ),wL(sQ)})()})(e$e);(function(){var t=tinymce.util.Tools.resolve("tinymce.ModelManager");const e=(pe,Ce,Ye)=>{var st;return Ye(pe,Ce.prototype)?!0:((st=pe.constructor)===null||st===void 0?void 0:st.name)===Ce.name},o=pe=>{const Ce=typeof pe;return pe===null?"null":Ce==="object"&&Array.isArray(pe)?"array":Ce==="object"&&e(pe,String,(Ye,st)=>st.isPrototypeOf(Ye))?"string":Ce},f=pe=>Ce=>o(Ce)===pe,P=pe=>Ce=>typeof Ce===pe,d=pe=>Ce=>pe===Ce,l=f("string"),n=f("object"),c=f("array"),b=d(null),i=P("boolean"),O=d(void 0),w=pe=>pe==null,y=pe=>!w(pe),p=P("function"),a=P("number"),u=()=>{},h=(pe,Ce)=>(...Ye)=>pe(Ce.apply(null,Ye)),m=(pe,Ce)=>Ye=>pe(Ce(Ye)),v=pe=>()=>pe,_=pe=>pe,S=(pe,Ce)=>pe===Ce;function A(pe,...Ce){return(...Ye)=>{const st=Ce.concat(Ye);return pe.apply(null,st)}}const x=pe=>Ce=>!pe(Ce),R=pe=>()=>{throw new Error(pe)},M=pe=>pe(),T=v(!1),E=v(!0);class C{constructor(Ce,Ye){this.tag=Ce,this.value=Ye}static some(Ce){return new C(!0,Ce)}static none(){return C.singletonNone}fold(Ce,Ye){return this.tag?Ye(this.value):Ce()}isSome(){return this.tag}isNone(){return!this.tag}map(Ce){return this.tag?C.some(Ce(this.value)):C.none()}bind(Ce){return this.tag?Ce(this.value):C.none()}exists(Ce){return this.tag&&Ce(this.value)}forall(Ce){return!this.tag||Ce(this.value)}filter(Ce){return!this.tag||Ce(this.value)?this:C.none()}getOr(Ce){return this.tag?this.value:Ce}or(Ce){return this.tag?this:Ce}getOrThunk(Ce){return this.tag?this.value:Ce()}orThunk(Ce){return this.tag?this:Ce()}getOrDie(Ce){if(this.tag)return this.value;throw new Error(Ce??"Called getOrDie on None")}static from(Ce){return y(Ce)?C.some(Ce):C.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Ce){this.tag&&Ce(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}C.singletonNone=new C(!1);const L=Array.prototype.slice,D=Array.prototype.indexOf,k=Array.prototype.push,I=(pe,Ce)=>D.call(pe,Ce),z=(pe,Ce)=>I(pe,Ce)>-1,$=(pe,Ce)=>{for(let Ye=0,st=pe.length;Ye{const Ye=[];for(let st=0;st{const Ye=pe.length,st=new Array(Ye);for(let St=0;St{for(let Ye=0,st=pe.length;Ye{for(let Ye=pe.length-1;Ye>=0;Ye--){const st=pe[Ye];Ce(st,Ye)}},te=(pe,Ce)=>{const Ye=[],st=[];for(let St=0,Ut=pe.length;St{const Ye=[];for(let st=0,St=pe.length;st(X(pe,(st,St)=>{Ye=Ce(Ye,st,St)}),Ye),oe=(pe,Ce,Ye)=>(U(pe,(st,St)=>{Ye=Ce(Ye,st,St)}),Ye),q=(pe,Ce,Ye)=>{for(let st=0,St=pe.length;stq(pe,Ce,T),ee=(pe,Ce)=>{for(let Ye=0,st=pe.length;Ye{const Ce=[];for(let Ye=0,st=pe.length;Yeme(j(pe,Ce)),se=(pe,Ce)=>{for(let Ye=0,st=pe.length;Ye{const Ce=L.call(pe,0);return Ce.reverse(),Ce},ce=(pe,Ce)=>{const Ye={};for(let st=0,St=pe.length;st{const Ye=L.call(pe,0);return Ye.sort(Ce),Ye},ve=(pe,Ce)=>Ce>=0&&Ceve(pe,0),_e=pe=>ve(pe,pe.length-1),Se=(pe,Ce)=>{for(let Ye=0;Ye{const Ye=Te(pe);for(let st=0,St=Ye.length;stDe(pe,(Ye,st)=>({k:st,v:Ce(Ye,st)})),De=(pe,Ce)=>{const Ye={};return Ie(pe,(st,St)=>{const Ut=Ce(st,St);Ye[Ut.k]=Ut.v}),Ye},He=pe=>(Ce,Ye)=>{pe[Ye]=Ce},Ve=(pe,Ce,Ye,st)=>{Ie(pe,(St,Ut)=>{(Ce(St,Ut)?Ye:st)(St,Ut)})},$e=(pe,Ce)=>{const Ye={};return Ve(pe,Ce,He(Ye),u),Ye},Oe=(pe,Ce)=>{const Ye=[];return Ie(pe,(st,St)=>{Ye.push(Ce(st,St))}),Ye},ke=pe=>Oe(pe,_),Le=(pe,Ce)=>We(pe,Ce)?C.from(pe[Ce]):C.none(),We=(pe,Ce)=>Pe.call(pe,Ce),Ue=(pe,Ce)=>We(pe,Ce)&&pe[Ce]!==void 0&&pe[Ce]!==null,Ze=pe=>{for(const Ce in pe)if(Pe.call(pe,Ce))return!1;return!0},Xe=typeof window<"u"?window:Function("return this;")(),tt=(pe,Ce)=>{let Ye=Ce??Xe;for(let st=0;st{const Ye=pe.split(".");return tt(Ye,Ce)},Ne=(pe,Ce)=>Ee(pe,Ce),je=(pe,Ce)=>{const Ye=Ne(pe,Ce);if(Ye==null)throw new Error(pe+" not available on this browser");return Ye},nt=Object.getPrototypeOf,ot=pe=>je("HTMLElement",pe),Ge=pe=>{const Ce=Ee("ownerDocument.defaultView",pe);return n(pe)&&(ot(Ce).prototype.isPrototypeOf(pe)||/^HTML\w*Element$/.test(nt(pe).constructor.name))},ht=8,pt=9,wt=11,Dt=1,It=3,qt=pe=>pe.dom.nodeName.toLowerCase(),en=pe=>pe.dom.nodeType,Gt=pe=>Ce=>en(Ce)===pe,Ct=pe=>en(pe)===ht||qt(pe)==="#comment",_t=pe=>nn(pe)&&Ge(pe.dom),nn=Gt(Dt),gn=Gt(It),bn=Gt(pt),mn=Gt(wt),vt=pe=>Ce=>nn(Ce)&&qt(Ce)===pe,bt=(pe,Ce,Ye)=>{if(l(Ye)||i(Ye)||a(Ye))pe.setAttribute(Ce,Ye+"");else throw console.error("Invalid call to Attribute.set. Key ",Ce,":: Value ",Ye,":: Element ",pe),new Error("Attribute value was not simple")},lt=(pe,Ce,Ye)=>{bt(pe.dom,Ce,Ye)},yt=(pe,Ce)=>{const Ye=pe.dom;Ie(Ce,(st,St)=>{bt(Ye,St,st)})},zt=(pe,Ce)=>{Ie(Ce,(Ye,st)=>{Ye.fold(()=>{at(pe,st)},St=>{bt(pe.dom,st,St)})})},Rt=(pe,Ce)=>{const Ye=pe.dom.getAttribute(Ce);return Ye===null?void 0:Ye},it=(pe,Ce)=>C.from(Rt(pe,Ce)),at=(pe,Ce)=>{pe.dom.removeAttribute(Ce)},Lt=pe=>oe(pe.dom.attributes,(Ce,Ye)=>(Ce[Ye.name]=Ye.value,Ce),{}),xt=(pe,Ce)=>{const st=(Ce||document).createElement("div");if(st.innerHTML=pe,!st.hasChildNodes()||st.childNodes.length>1){const St="HTML does not have a single root node";throw console.error(St,pe),new Error(St)}return Yt(st.childNodes[0])},Zt=(pe,Ce)=>{const st=(Ce||document).createElement(pe);return Yt(st)},Xt=(pe,Ce)=>{const st=(Ce||document).createTextNode(pe);return Yt(st)},Yt=pe=>{if(pe==null)throw new Error("Node cannot be null or undefined");return{dom:pe}},Pt={fromHtml:xt,fromTag:Zt,fromText:Xt,fromDom:Yt,fromPoint:(pe,Ce,Ye)=>C.from(pe.dom.elementFromPoint(Ce,Ye)).map(Yt)},tn=(pe,Ce)=>{const Ye=pe.dom;if(Ye.nodeType!==Dt)return!1;{const st=Ye;if(st.matches!==void 0)return st.matches(Ce);if(st.msMatchesSelector!==void 0)return st.msMatchesSelector(Ce);if(st.webkitMatchesSelector!==void 0)return st.webkitMatchesSelector(Ce);if(st.mozMatchesSelector!==void 0)return st.mozMatchesSelector(Ce);throw new Error("Browser lacks native selectors")}},Kt=pe=>pe.nodeType!==Dt&&pe.nodeType!==pt&&pe.nodeType!==wt||pe.childElementCount===0,fn=(pe,Ce)=>{const Ye=Ce===void 0?document:Ce.dom;return Kt(Ye)?[]:j(Ye.querySelectorAll(pe),Pt.fromDom)},dn=(pe,Ce)=>{const Ye=Ce===void 0?document:Ce.dom;return Kt(Ye)?C.none():C.from(Ye.querySelector(pe)).map(Pt.fromDom)},vn=(pe,Ce)=>pe.dom===Ce.dom,Nn=(pe,Ce)=>{const Ye=pe.dom,st=Ce.dom;return Ye===st?!1:Ye.contains(st)},er=tn,En=pe=>Pt.fromDom(pe.dom.ownerDocument),In=pe=>bn(pe)?pe:En(pe),jn=pe=>Pt.fromDom(In(pe).dom.documentElement),xr=pe=>Pt.fromDom(In(pe).dom.defaultView),Sr=pe=>C.from(pe.dom.parentNode).map(Pt.fromDom),ar=pe=>C.from(pe.dom.parentElement).map(Pt.fromDom),Fn=(pe,Ce)=>{const Ye=p(Ce)?Ce:T;let st=pe.dom;const St=[];for(;st.parentNode!==null&&st.parentNode!==void 0;){const Ut=st.parentNode,un=Pt.fromDom(Ut);if(St.push(un),Ye(un)===!0)break;st=Ut}return St},ir=pe=>C.from(pe.dom.previousSibling).map(Pt.fromDom),Wn=pe=>C.from(pe.dom.nextSibling).map(Pt.fromDom),Kn=pe=>j(pe.dom.childNodes,Pt.fromDom),_r=(pe,Ce)=>{const Ye=pe.dom.childNodes;return C.from(Ye[Ce]).map(Pt.fromDom)},Ir=pe=>_r(pe,0),zr=(pe,Ce)=>{Sr(pe).each(st=>{st.dom.insertBefore(Ce.dom,pe.dom)})},Fr=(pe,Ce)=>{Wn(pe).fold(()=>{Sr(pe).each(St=>{$r(St,Ce)})},st=>{zr(st,Ce)})},Rr=(pe,Ce)=>{Ir(pe).fold(()=>{$r(pe,Ce)},st=>{pe.dom.insertBefore(Ce.dom,st.dom)})},$r=(pe,Ce)=>{pe.dom.appendChild(Ce.dom)},Kr=(pe,Ce,Ye)=>{_r(pe,Ye).fold(()=>{$r(pe,Ce)},st=>{zr(st,Ce)})},Co=(pe,Ce)=>{zr(pe,Ce),$r(Ce,pe)},so=(pe,Ce)=>{U(Ce,(Ye,st)=>{const St=st===0?pe:Ce[st-1];Fr(St,Ye)})},So=(pe,Ce)=>{U(Ce,Ye=>{$r(pe,Ye)})},go=pe=>{pe.dom.textContent="",U(Kn(pe),Ce=>{li(Ce)})},li=pe=>{const Ce=pe.dom;Ce.parentNode!==null&&Ce.parentNode.removeChild(Ce)},Pn=pe=>{const Ce=Kn(pe);Ce.length>0&&so(pe,Ce),li(pe)},Yn=(pe,Ce)=>Pt.fromDom(pe.dom.cloneNode(Ce)),br=pe=>Yn(pe,!1),dr=pe=>Yn(pe,!0),Cr=(pe,Ce)=>{const Ye=Pt.fromTag(Ce),st=Lt(pe);return yt(Ye,st),Ye},io=(pe,Ce)=>{const Ye=Cr(pe,Ce),st=Kn(dr(pe));return So(Ye,st),Ye},Qr=(pe,Ce)=>{const Ye=Cr(pe,Ce);Fr(pe,Ye);const st=Kn(pe);return So(Ye,st),li(pe),Ye},Wr=["tfoot","thead","tbody","colgroup"],bo=pe=>z(Wr,pe),Bn=(pe,Ce)=>({rows:pe,columns:Ce}),hr=(pe,Ce)=>({row:pe,column:Ce}),hn=(pe,Ce,Ye)=>({element:pe,rowspan:Ce,colspan:Ye}),zn=(pe,Ce,Ye,st)=>({element:pe,rowspan:Ce,colspan:Ye,isNew:st}),Zn=(pe,Ce,Ye,st,St,Ut)=>({element:pe,rowspan:Ce,colspan:Ye,row:st,column:St,isLocked:Ut}),yr=(pe,Ce,Ye)=>({element:pe,cells:Ce,section:Ye}),gr=(pe,Ce,Ye,st)=>({element:pe,cells:Ce,section:Ye,isNew:st}),vr=(pe,Ce,Ye)=>({element:pe,isNew:Ce,isLocked:Ye}),nr=(pe,Ce,Ye,st)=>({element:pe,cells:Ce,section:Ye,isNew:st}),Qn=(pe,Ce,Ye,st)=>({startRow:pe,startCol:Ce,finishRow:Ye,finishCol:st}),Hn=(pe,Ce,Ye)=>({element:pe,colspan:Ce,column:Ye}),tr=(pe,Ce)=>({element:pe,columns:Ce}),cr=pe=>mn(pe)&&y(pe.dom.host),Lr=p(Element.prototype.attachShadow)&&p(Node.prototype.getRootNode),Er=v(Lr),Vr=Lr?pe=>Pt.fromDom(pe.dom.getRootNode()):In,to=pe=>{const Ce=Vr(pe);return cr(Ce)?C.some(Ce):C.none()},_o=pe=>Pt.fromDom(pe.dom.host),fr=pe=>{if(Er()&&y(pe.target)){const Ce=Pt.fromDom(pe.target);if(nn(Ce)&&Eo(Ce)&&pe.composed&&pe.composedPath){const Ye=pe.composedPath();if(Ye)return ye(Ye)}}return C.from(pe.target)},Eo=pe=>y(pe.dom.shadowRoot),ao=pe=>{const Ce=gn(pe)?pe.dom.parentNode:pe.dom;if(Ce==null||Ce.ownerDocument===null)return!1;const Ye=Ce.ownerDocument;return to(Pt.fromDom(Ce)).fold(()=>Ye.body.contains(Ce),m(ao,_o))},co=()=>Go(Pt.fromDom(document)),Go=pe=>{const Ce=pe.dom.body;if(Ce==null)throw new Error("Body is not available yet");return Pt.fromDom(Ce)},po=(pe,Ce,Ye)=>W(Fn(pe,Ye),Ce),qo=(pe,Ce)=>W(Kn(pe),Ce),Ao=(pe,Ce)=>{let Ye=[];return U(Kn(pe),st=>{Ce(st)&&(Ye=Ye.concat([st])),Ye=Ye.concat(Ao(st,Ce))}),Ye},oi=(pe,Ce,Ye)=>po(pe,st=>tn(st,Ce),Ye),ko=(pe,Ce)=>qo(pe,Ye=>tn(Ye,Ce)),ra=(pe,Ce)=>fn(Ce,pe);var mo=(pe,Ce,Ye,st,St)=>pe(Ye,st)?C.some(Ye):p(St)&&St(Ye)?C.none():Ce(Ye,st,St);const Aa=(pe,Ce,Ye)=>{let st=pe.dom;const St=p(Ye)?Ye:T;for(;st.parentNode;){st=st.parentNode;const Ut=Pt.fromDom(st);if(Ce(Ut))return C.some(Ut);if(St(Ut))break}return C.none()},Xl=(pe,Ce,Ye)=>mo((St,Ut)=>Ut(St),Aa,pe,Ce,Ye),Na=(pe,Ce)=>{const Ye=St=>Ce(Pt.fromDom(St));return Y(pe.dom.childNodes,Ye).map(Pt.fromDom)},us=(pe,Ce)=>{const Ye=st=>{for(let St=0;StAa(pe,st=>tn(st,Ce),Ye),ga=(pe,Ce)=>Na(pe,Ye=>tn(Ye,Ce)),Ku=(pe,Ce)=>dn(Ce,pe),qc=(pe,Ce,Ye)=>mo((St,Ut)=>tn(St,Ut),wc,pe,Ce,Ye),Yd=(pe,Ce,Ye=S)=>pe.exists(st=>Ye(st,Ce)),Ql=pe=>{const Ce=[],Ye=st=>{Ce.push(st)};for(let st=0;stpe!=null?Ce(pe):C.none(),Nf=(pe,Ce)=>pe?C.some(Ce):C.none(),mm=(pe,Ce)=>pe.substring(Ce),Ws=(pe,Ce,Ye)=>Ce===""||pe.length>=Ce.length&&pe.substr(Ye,Ye+Ce.length)===Ce,gm=(pe,Ce)=>pc(pe,Ce)?mm(pe,Ce.length):pe,Gl=(pe,Ce,Ye=0,st)=>{const St=pe.indexOf(Ce,Ye);return St!==-1?O(st)?!0:St+Ce.length<=st:!1},pc=(pe,Ce)=>Ws(pe,Ce,0),Cu=(pe,Ce)=>Ws(pe,Ce,pe.length-Ce.length),la=(pe=>Ce=>Ce.replace(pe,""))(/^\s+|\s+$/g),cc=pe=>pe.length>0,pu=pe=>{const Ce=parseFloat(pe);return isNaN(Ce)?C.none():C.some(Ce)},ju=pe=>pe.style!==void 0&&p(pe.style.getPropertyValue),iu=(pe,Ce,Ye)=>{if(!l(Ye))throw console.error("Invalid call to CSS.set. Property ",Ce,":: Value ",Ye,":: Element ",pe),new Error("CSS value must be a string: "+Ye);ju(pe)&&pe.style.setProperty(Ce,Ye)},mc=(pe,Ce)=>{ju(pe)&&pe.style.removeProperty(Ce)},ks=(pe,Ce,Ye)=>{const st=pe.dom;iu(st,Ce,Ye)},$f=(pe,Ce)=>{const Ye=pe.dom;Ie(Ce,(st,St)=>{iu(Ye,St,st)})},yf=(pe,Ce)=>{const Ye=pe.dom,St=window.getComputedStyle(Ye).getPropertyValue(Ce);return St===""&&!ao(pe)?Ju(Ye,Ce):St},Ju=(pe,Ce)=>ju(pe)?pe.style.getPropertyValue(Ce):"",$h=(pe,Ce)=>{const Ye=pe.dom,st=Ju(Ye,Ce);return C.from(st).filter(St=>St.length>0)},Es=(pe,Ce)=>{const Ye=pe.dom;mc(Ye,Ce),Yd(it(pe,"style").map(la),"")&&at(pe,"style")},ef=(pe,Ce)=>{const Ye=pe.dom,st=Ce.dom;ju(Ye)&&ju(st)&&(st.style.cssText=Ye.style.cssText)},uc=(pe,Ce,Ye=0)=>it(pe,Ce).map(st=>parseInt(st,10)).getOr(Ye),sd=(pe,Ce)=>uc(pe,Ce,1),Vf=pe=>vt("col")(pe)?uc(pe,"span",1)>1:sd(pe,"colspan")>1,gc=pe=>sd(pe,"rowspan")>1,ld=(pe,Ce)=>parseInt(yf(pe,Ce),10),Mp=v(10),Xd=v(10),bf=(pe,Ce)=>mh(pe,Ce,E),mh=(pe,Ce,Ye)=>he(Kn(pe),st=>tn(st,Ce)?Ye(st)?[st]:[]:mh(st,Ce,Ye)),cd=(pe,Ce,Ye=T)=>{if(Ye(Ce))return C.none();if(z(pe,qt(Ce)))return C.some(Ce);const st=St=>tn(St,"table")||Ye(St);return wc(Ce,pe.join(","),st)},Vh=(pe,Ce)=>cd(["td","th"],pe,Ce),xf=pe=>bf(pe,"th,td"),tf=pe=>tn(pe,"colgroup")?ko(pe,"col"):he(ud(pe),Ce=>ko(Ce,"col")),Au=(pe,Ce)=>qc(pe,"table",Ce),_f=pe=>bf(pe,"tr"),ud=pe=>Au(pe).fold(v([]),Ce=>ko(Ce,"colgroup")),nf=(pe,Ce)=>j(pe,Ye=>{if(qt(Ye)==="colgroup"){const st=j(tf(Ye),St=>{const Ut=uc(St,"span",1);return hn(St,1,Ut)});return yr(Ye,st,"colgroup")}else{const st=j(xf(Ye),St=>{const Ut=uc(St,"rowspan",1),un=uc(St,"colspan",1);return hn(St,Ut,un)});return yr(Ye,st,Ce(Ye))}}),gh=pe=>Sr(pe).map(Ce=>{const Ye=qt(Ce);return bo(Ye)?Ye:"tbody"}).getOr("tbody"),rs=pe=>{const Ce=_f(pe),st=[...ud(pe),...Ce];return nf(st,gh)},ep=(pe,Ce)=>nf(pe,()=>Ce),Ep=pe=>{let Ce=!1,Ye;return(...st)=>(Ce||(Ce=!0,Ye=pe.apply(null,st)),Ye)},vm=(pe,Ce,Ye,st)=>{const St=pe.isiOS()&&/ipad/i.test(Ye)===!0,Ut=pe.isiOS()&&!St,un=pe.isiOS()||pe.isAndroid(),Tn=un||st("(pointer:coarse)"),$n=St||!Ut&&un&&st("(min-device-width:768px)"),ur=Ut||un&&!$n,Nr=Ce.isSafari()&&pe.isiOS()&&/safari/i.test(Ye)===!1,Ro=!ur&&!$n&&!Nr;return{isiPad:v(St),isiPhone:v(Ut),isTablet:v($n),isPhone:v(ur),isTouch:v(Tn),isAndroid:pe.isAndroid,isiOS:pe.isiOS,isWebView:v(Nr),isDesktop:v(Ro)}},Pd=(pe,Ce)=>{for(let Ye=0;Ye{const Ye=Pd(pe,Ce);if(!Ye)return{major:0,minor:0};const st=St=>Number(Ce.replace(Ye,"$"+St));return wf(st(1),st(2))},sr=(pe,Ce)=>{const Ye=String(Ce).toLowerCase();return pe.length===0?Pp():M0(pe,Ye)},Pp=()=>wf(0,0),wf=(pe,Ce)=>({major:pe,minor:Ce}),Of={nu:wf,detect:sr,unknown:Pp},Rp=(pe,Ce)=>Se(Ce.brands,Ye=>{const st=Ye.brand.toLowerCase();return Y(pe,St=>{var Ut;return st===((Ut=St.brand)===null||Ut===void 0?void 0:Ut.toLowerCase())}).map(St=>({current:St.name,version:Of.nu(parseInt(Ye.version,10),0)}))}),Gd=(pe,Ce)=>{const Ye=String(Ce).toLowerCase();return Y(pe,st=>st.search(Ye))},Fa=(pe,Ce)=>Gd(pe,Ce).map(Ye=>{const st=Of.detect(Ye.versionRegexes,Ce);return{current:Ye.name,version:st}}),Qu=(pe,Ce)=>Gd(pe,Ce).map(Ye=>{const st=Of.detect(Ye.versionRegexes,Ce);return{current:Ye.name,version:st}}),rf=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Bc=pe=>Ce=>Gl(Ce,pe),ym=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:pe=>Gl(pe,"edge/")&&Gl(pe,"chrome")&&Gl(pe,"safari")&&Gl(pe,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,rf],search:pe=>Gl(pe,"chrome")&&!Gl(pe,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:pe=>Gl(pe,"msie")||Gl(pe,"trident")},{name:"Opera",versionRegexes:[rf,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Bc("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Bc("firefox")},{name:"Safari",versionRegexes:[rf,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:pe=>(Gl(pe,"safari")||Gl(pe,"mobile/"))&&Gl(pe,"applewebkit")}],Mu=[{name:"Windows",search:Bc("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:pe=>Gl(pe,"iphone")||Gl(pe,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Bc("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Bc("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Bc("linux"),versionRegexes:[]},{name:"Solaris",search:Bc("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Bc("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Bc("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Hu={browsers:v(ym),oses:v(Mu)},Lp="Edge",Uh="Chromium",jh="IE",Eu="Opera",fd="Firefox",vh="Safari",Pu=()=>Oc({current:void 0,version:Of.unknown()}),Oc=pe=>{const Ce=pe.current,Ye=pe.version,st=St=>()=>Ce===St;return{current:Ce,version:Ye,isEdge:st(Lp),isChromium:st(Uh),isIE:st(jh),isOpera:st(Eu),isFirefox:st(fd),isSafari:st(vh)}},Ts={unknown:Pu,nu:Oc,edge:v(Lp),chromium:v(Uh),ie:v(jh),opera:v(Eu),firefox:v(fd),safari:v(vh)},Uf="Windows",zl="iOS",Hl="Android",Cs="Linux",$s="macOS",Zu="Solaris",yh="FreeBSD",of="ChromeOS",tp=()=>Ip({current:void 0,version:Of.unknown()}),Ip=pe=>{const Ce=pe.current,Ye=pe.version,st=St=>()=>Ce===St;return{current:Ce,version:Ye,isWindows:st(Uf),isiOS:st(zl),isAndroid:st(Hl),isMacOS:st($s),isLinux:st(Cs),isSolaris:st(Zu),isFreeBSD:st(yh),isChromeOS:st(of)}},bm={unknown:tp,nu:Ip,windows:v(Uf),ios:v(zl),android:v(Hl),linux:v(Cs),macos:v($s),solaris:v(Zu),freebsd:v(yh),chromeos:v(of)},bh={detect:(pe,Ce,Ye)=>{const st=Hu.browsers(),St=Hu.oses(),Ut=Ce.bind($n=>Rp(st,$n)).orThunk(()=>Fa(st,pe)).fold(Ts.unknown,Ts.nu),un=Qu(St,pe).fold(bm.unknown,bm.nu),Tn=vm(un,Ut,pe,Ye);return{browser:Ut,os:un,deviceType:Tn}}},Jd=pe=>window.matchMedia(pe).matches;let zc=Ep(()=>bh.detect(navigator.userAgent,C.from(navigator.userAgentData),Jd));const np=()=>zc(),ms=(pe,Ce)=>{const Ye=(Tn,$n)=>{if(!a($n)&&!$n.match(/^[0-9]+$/))throw new Error(pe+".set accepts only positive integer values. Value was "+$n);const ur=Tn.dom;ju(ur)&&(ur.style[pe]=$n+"px")},st=Tn=>{const $n=Ce(Tn);if($n<=0||$n===null){const ur=yf(Tn,pe);return parseFloat(ur)||0}return $n},St=st,Ut=(Tn,$n)=>oe($n,(ur,Nr)=>{const Ro=yf(Tn,Nr),ai=Ro===void 0?0:parseInt(Ro,10);return isNaN(ai)?ur:ur+ai},0);return{set:Ye,get:st,getOuter:St,aggregate:Ut,max:(Tn,$n,ur)=>{const Nr=Ut(Tn,ur);return $n>Nr?$n-Nr:0}}},Ya=(pe,Ce)=>pu(pe).getOr(Ce),_l=(pe,Ce,Ye)=>Ya(yf(pe,Ce),Ye),dl=(pe,Ce,Ye,st)=>{const St=_l(pe,`padding-${Ye}`,0),Ut=_l(pe,`padding-${st}`,0),un=_l(pe,`border-${Ye}-width`,0),Tn=_l(pe,`border-${st}-width`,0);return Ce-St-Ut-un-Tn},Wc=(pe,Ce)=>{const Ye=pe.dom,st=Ye.getBoundingClientRect().width||Ye.offsetWidth;return Ce==="border-box"?st:dl(pe,st,"left","right")},wl=pe=>_l(pe,"height",pe.dom.offsetHeight),xi=pe=>_l(pe,"width",pe.dom.offsetWidth),mu=pe=>Wc(pe,"content-box"),xh=ms("width",pe=>pe.dom.offsetWidth),js=pe=>xh.get(pe),os=pe=>xh.getOuter(pe),af=mu,Sf=xi,sf=(pe,Ce,Ye)=>{const st=pe.cells,St=st.slice(0,Ce),Ut=st.slice(Ce),un=St.concat(Ye).concat(Ut);return pi(pe,un)},Ml=(pe,Ce,Ye)=>sf(pe,Ce,[Ye]),Hi=(pe,Ce,Ye)=>{const st=pe.cells;st[Ce]=Ye},pi=(pe,Ce)=>nr(pe.element,Ce,pe.section,pe.isNew),Qh=(pe,Ce)=>{const Ye=pe.cells,st=j(Ye,Ce);return nr(pe.element,st,pe.section,pe.isNew)},Ru=(pe,Ce)=>pe.cells[Ce],vc=(pe,Ce)=>Ru(pe,Ce).element,Yc=pe=>pe.cells.length,Kl=pe=>{const Ce=te(pe,Ye=>Ye.section==="colgroup");return{rows:Ce.fail,cols:Ce.pass}},Fc=(pe,Ce,Ye)=>{const st=j(pe.cells,Ye);return nr(Ce(pe.element),st,pe.section,!0)},si="data-snooker-locked-cols",Hh=pe=>it(pe,si).bind(Ce=>C.from(Ce.match(/\d+/g))).map(Ce=>ce(Ce,E)),Ps=pe=>{const Ce=oe(Kl(pe).rows,(st,St)=>(U(St.cells,(Ut,un)=>{Ut.isLocked&&(st[un]=!0)}),st),{}),Ye=Oe(Ce,(st,St)=>parseInt(St,10));return de(Ye)},Sc=(pe,Ce)=>pe+","+Ce,tl=(pe,Ce,Ye)=>C.from(pe.access[Sc(Ce,Ye)]),gu=(pe,Ce,Ye)=>{const st=vu(pe,St=>Ye(Ce,St.element));return st.length>0?C.some(st[0]):C.none()},vu=(pe,Ce)=>{const Ye=he(pe.all,st=>st.cells);return W(Ye,Ce)},ja=pe=>{const Ce={};let Ye=0;return U(pe.cells,st=>{const St=st.colspan;Q(St,Ut=>{const un=Ye+Ut;Ce[un]=Hn(st.element,St,un)}),Ye+=St}),Ce},yu=pe=>{const Ce={},Ye=[],St=ye(pe).map(Ko=>Ko.element).bind(Au).bind(Hh).getOr({});let Ut=0,un=0,Tn=0;const{pass:$n,fail:ur}=te(pe,Ko=>Ko.section==="colgroup");U(ur,Ko=>{const Qo=[];U(Ko.cells,_i=>{let To=0;for(;Ce[Sc(Tn,To)]!==void 0;)To++;const Zo=Ue(St,To.toString()),Yi=Zn(_i.element,_i.rowspan,_i.colspan,Tn,To,Zo);for(let ri=0;ri<_i.colspan;ri++)for(let Ms=0;Ms<_i.rowspan;Ms++){const al=Tn+Ms,Gs=To+ri,td=Sc(al,Gs);Ce[td]=Yi,un=Math.max(un,Gs+1)}Qo.push(Yi)}),Ut++,Ye.push(yr(Ko.element,Qo,Ko.section)),Tn++});const{columns:Nr,colgroups:Ro}=_e($n).map(Ko=>{const Qo=ja(Ko);return{colgroups:[tr(Ko.element,ke(Qo))],columns:Qo}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:Bn(Ut,un),access:Ce,all:Ye,columns:Nr,colgroups:Ro}},Xi={fromTable:pe=>{const Ce=rs(pe);return yu(Ce)},generate:yu,getAt:tl,findItem:gu,filterItems:vu,justCells:pe=>he(pe.all,Ce=>Ce.cells),justColumns:pe=>ke(pe.columns),hasColumns:pe=>Te(pe.columns).length>0,getColumnAt:(pe,Ce)=>C.from(pe.columns[Ce])},Xc=(pe,Ce=E)=>{const Ye=pe.grid,st=Q(Ye.columns,_),St=Q(Ye.rows,_);return j(st,Ut=>jf(()=>he(St,ur=>Xi.getAt(pe,ur,Ut).filter(Nr=>Nr.column===Ut).toArray()),ur=>ur.colspan===1&&Ce(ur.element),()=>Xi.getAt(pe,0,Ut)))},jf=(pe,Ce,Ye)=>{const st=pe();return Y(st,Ce).orThunk(()=>C.from(st[0]).orThunk(Ye)).map(un=>un.element)},bu=pe=>{const Ce=pe.grid,Ye=Q(Ce.rows,_),st=Q(Ce.columns,_);return j(Ye,St=>jf(()=>he(st,$n=>Xi.getAt(pe,St,$n).filter(ur=>ur.row===St).fold(v([]),ur=>[ur])),$n=>$n.rowspan===1,()=>Xi.getAt(pe,St,0)))},Dp=(pe,Ce)=>{if(Ce<0||Ce>=pe.length-1)return C.none();const Ye=pe[Ce].fold(()=>{const St=ae(pe.slice(0,Ce));return Se(St,(Ut,un)=>Ut.map(Tn=>({value:Tn,delta:un+1})))},St=>C.some({value:St,delta:0})),st=pe[Ce+1].fold(()=>{const St=pe.slice(Ce+1);return Se(St,(Ut,un)=>Ut.map(Tn=>({value:Tn,delta:un+1})))},St=>C.some({value:St,delta:1}));return Ye.bind(St=>st.map(Ut=>{const un=Ut.delta+St.delta;return Math.abs(Ut.value-St.value)/un}))},rp=(pe,Ce)=>Ye=>Lu(Ye)==="rtl"?Ce:pe,Lu=pe=>yf(pe,"direction")==="rtl"?"rtl":"ltr",fs=ms("height",pe=>{const Ce=pe.dom;return ao(pe)?Ce.getBoundingClientRect().height:Ce.offsetHeight}),Qf=pe=>fs.get(pe),dd=pe=>fs.getOuter(pe),Hf=wl,_h=(pe,Ce)=>({left:pe,top:Ce,translate:(st,St)=>_h(pe+st,Ce+St)}),Gc=_h,hd=pe=>{const Ce=pe.getBoundingClientRect();return Gc(Ce.left,Ce.top)},rl=(pe,Ce)=>pe!==void 0?pe:Ce!==void 0?Ce:0,Dd=pe=>{const Ce=pe.dom.ownerDocument,Ye=Ce.body,st=Ce.defaultView,St=Ce.documentElement;if(Ye===pe.dom)return Gc(Ye.offsetLeft,Ye.offsetTop);const Ut=rl(st==null?void 0:st.pageYOffset,St.scrollTop),un=rl(st==null?void 0:st.pageXOffset,St.scrollLeft),Tn=rl(St.clientTop,Ye.clientTop),$n=rl(St.clientLeft,Ye.clientLeft);return Vi(pe).translate(un-$n,Ut-Tn)},Vi=pe=>{const Ce=pe.dom,st=Ce.ownerDocument.body;return st===Ce?Gc(st.offsetLeft,st.offsetTop):ao(pe)?hd(Ce):Gc(0,0)},fa=(pe,Ce)=>({row:pe,y:Ce}),au=(pe,Ce)=>({col:pe,x:Ce}),Zf=pe=>Dd(pe).left+os(pe),Zl=pe=>Dd(pe).left,Jl=(pe,Ce)=>au(pe,Zl(Ce)),Bd=(pe,Ce)=>au(pe,Zf(Ce)),Qs=pe=>Dd(pe).top,kc=(pe,Ce)=>fa(pe,Qs(Ce)),Iu=(pe,Ce)=>fa(pe,Qs(Ce)+dd(Ce)),Ea=(pe,Ce,Ye)=>{if(Ye.length===0)return[];const st=j(Ye.slice(1),(Ut,un)=>Ut.map(Tn=>pe(un,Tn))),St=Ye[Ye.length-1].map(Ut=>Ce(Ye.length-1,Ut));return st.concat([St])},El=pe=>-pe,Ol={delta:_,positions:pe=>Ea(kc,Iu,pe),edge:Qs},Ot=rp({delta:_,edge:Zl,positions:pe=>Ea(Jl,Bd,pe)},{delta:El,edge:Zf,positions:pe=>Ea(Bd,Jl,pe)}),Mt={delta:(pe,Ce)=>Ot(Ce).delta(pe,Ce),positions:(pe,Ce)=>Ot(Ce).positions(pe,Ce),edge:pe=>Ot(pe).edge(pe)},Ft={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},J=(()=>{const pe="[0-9]+",Ye="[eE]"+("[+-]?"+pe),st="\\.",St=Tn=>`(?:${Tn})?`,un=`[+-]?(?:${["Infinity",pe+st+St(pe)+St(Ye),st+pe+St(Ye),pe+St(Ye)].join("|")})`;return new RegExp(`^(${un})(.*)$`)})(),le=(pe,Ce)=>$(Ce,Ye=>$(Ft[Ye],st=>pe===st)),ie=(pe,Ce)=>C.from(J.exec(pe)).bind(st=>{const St=Number(st[1]),Ut=st[2];return le(Ut,Ce)?C.some({value:St,unit:Ut}):C.none()}),V=/(\d+(\.\d+)?)%/,ne=/(\d+(\.\d+)?)px|em/,ge=vt("col"),xe=vt("tr"),Me=(pe,Ce,Ye)=>{const st=ar(pe).getOrThunk(()=>Go(En(pe)));return Ce(pe)/Ye(st)*100},Fe=(pe,Ce)=>{ks(pe,"width",Ce+"px")},Je=(pe,Ce)=>{ks(pe,"width",Ce+"%")},rt=(pe,Ce)=>{ks(pe,"height",Ce+"px")},dt=pe=>{Es(pe,"height")},mt=pe=>Hf(pe)+"px",Et=(pe,Ce,Ye,st)=>{const St=Au(pe).map(Ut=>{const un=Ye(Ut);return Math.floor(Ce/100*un)}).getOr(Ce);return st(pe,St),St},Vt=(pe,Ce,Ye,st)=>{const St=parseFloat(pe);return Cu(pe,"%")&&qt(Ce)!=="table"?Et(Ce,St,Ye,st):St},jt=pe=>{const Ce=mt(pe);return Ce?Vt(Ce,pe,Qf,rt):Qf(pe)},Nt=(pe,Ce,Ye)=>{const st=Ye(pe),St=sd(pe,Ce);return st/St},cn=(pe,Ce)=>$h(pe,Ce).orThunk(()=>it(pe,Ce).map(Ye=>Ye+"px")),sn=pe=>cn(pe,"width"),xn=pe=>cn(pe,"height"),pn=pe=>Me(pe,js,af),Ln=pe=>ge(pe)?js(pe):Sf(pe),On=pe=>xe(pe)?Qf(pe):Nt(pe,"rowspan",jt),An=pe=>sn(pe).bind(Ye=>ie(Ye,["fixed","relative","empty"])),Sn=(pe,Ce,Ye)=>{ks(pe,"width",Ce+Ye)},rr=pe=>js(pe)+"px",Dr=pe=>Qf(pe)+"px",Pr=pe=>Me(pe,js,af)+"%",Zr=pe=>sn(pe).exists(Ce=>V.test(Ce)),Mo=pe=>sn(pe).exists(Ce=>ne.test(Ce)),$o=pe=>sn(pe).isNone(),vo=v(V),zo=vt("col"),yi=pe=>sn(pe).getOrThunk(()=>Ln(pe)+"px"),Si=pe=>xn(pe).getOrThunk(()=>On(pe)+"px"),Hr=pe=>j(Xi.justColumns(pe),Ce=>C.from(Ce.element)),Lo=pe=>{const Ce=np().browser,Ye=Ce.isChromium()||Ce.isFirefox();return zo(pe)?Ye:!0},ki=(pe,Ce,Ye,st,St,Ut)=>pe.filter(st).fold(()=>Ut(Dp(Ye,Ce)),un=>St(un)),Io=(pe,Ce,Ye,st)=>{const St=Xc(pe),Ut=Xi.hasColumns(pe)?Hr(pe):St,un=[C.some(Mt.edge(Ce))].concat(j(Mt.positions(St,Ce),$n=>$n.map(ur=>ur.x))),Tn=x(Vf);return j(Ut,($n,ur)=>ki($n,ur,un,Tn,Nr=>{if(Lo(Nr))return Ye(Nr);{const Ro=Ed(St[ur],_);return ki(Ro,ur,un,Tn,ai=>st(C.some(js(ai))),st)}},st))},$i=pe=>pe.map(Ce=>Ce+"px").getOr(""),Ui=(pe,Ce)=>Io(pe,Ce,yi,$i),ba=(pe,Ce,Ye)=>Io(pe,Ce,pn,st=>st.fold(()=>Ye.minCellWidth(),St=>St/Ye.pixelWidth()*100)),Pi=(pe,Ce,Ye)=>Io(pe,Ce,Ln,st=>st.getOrThunk(Ye.minCellWidth)),ds=(pe,Ce,Ye,st)=>{const St=bu(pe),Ut=j(pe.all,Tn=>C.some(Tn.element)),un=[C.some(Ol.edge(Ce))].concat(j(Ol.positions(St,Ce),Tn=>Tn.map($n=>$n.y)));return j(Ut,(Tn,$n)=>ki(Tn,$n,un,E,Ye,st))},mr=(pe,Ce)=>ds(pe,Ce,On,Ye=>Ye.getOrThunk(Xd)),bs=(pe,Ce)=>ds(pe,Ce,Si,$i),Pl=(pe,Ce)=>()=>ao(pe)?Ce(pe):parseFloat($h(pe,"width").getOr("0")),Ys=pe=>{const Ce=Pl(pe,js),Ye=v(0);return{width:Ce,pixelWidth:Ce,getWidths:(St,Ut)=>Pi(St,pe,Ut),getCellDelta:Ye,singleColumnWidth:v([0]),minCellWidth:Ye,setElementWidth:u,adjustTableWidth:u,isRelative:!0,label:"none"}},hl=pe=>{const Ce=Pl(pe,$n=>parseFloat(Pr($n))),Ye=Pl(pe,js);return{width:Ce,pixelWidth:Ye,getWidths:($n,ur)=>ba($n,pe,ur),getCellDelta:$n=>$n/Ye()*100,singleColumnWidth:($n,ur)=>[100-$n],minCellWidth:()=>Mp()/Ye()*100,setElementWidth:Je,adjustTableWidth:$n=>{const ur=Ce(),Nr=$n/100*ur,Ro=ur+Nr;Je(pe,Ro)},isRelative:!0,label:"percent"}},hs=pe=>{const Ce=Pl(pe,js);return{width:Ce,pixelWidth:Ce,getWidths:(un,Tn)=>Pi(un,pe,Tn),getCellDelta:_,singleColumnWidth:(un,Tn)=>[Math.max(Mp(),un+Tn)-un],minCellWidth:Mp,setElementWidth:Fe,adjustTableWidth:un=>{const Tn=Ce()+un;Fe(pe,Tn)},isRelative:!1,label:"pixel"}},Pa=(pe,Ce)=>vo().exec(Ce)!==null?hl(pe):hs(pe),Ls={getTableSize:pe=>sn(pe).fold(()=>Ys(pe),Ye=>Pa(pe,Ye)),pixelSize:hs,percentageSize:hl,noneSize:Ys},ol=(pe,Ce,Ye,st,St,Ut)=>({minRow:pe,minCol:Ce,maxRow:Ye,maxCol:st,allCells:St,selectedCells:Ut}),Is=(pe,Ce)=>{const Ye=pe.grid.columns;let St=pe.grid.rows,Ut=Ye,un=0,Tn=0;const $n=[],ur=[];return Ie(pe.access,Nr=>{if($n.push(Nr),Ce(Nr)){ur.push(Nr);const Ro=Nr.row,ai=Ro+Nr.rowspan-1,Ko=Nr.column,Qo=Ko+Nr.colspan-1;Roun&&(un=ai),KoTn&&(Tn=Qo)}}),ol(St,Ut,un,Tn,$n,ur)},Ds=(pe,Ce,Ye)=>{const st=pe[Ye].element,St=Pt.fromTag("td");$r(St,Pt.fromTag("br")),(Ce?$r:Rr)(st,St)},ec=(pe,Ce,Ye,st)=>{const St=W(pe,Tn=>Tn.section!=="colgroup"),Ut=Ce.grid.columns,un=Ce.grid.rows;for(let Tn=0;TnYe.maxRow||urYe.maxCol||(Xi.getAt(Ce,Tn,ur).filter(st).isNone()?Ds(St,$n,Tn):$n=!0)}},Tc=(pe,Ce,Ye,st)=>{Ie(Ye.columns,un=>{(un.columnCe.maxCol)&&li(un.element)});const St=W(bf(pe,"tr"),un=>un.dom.childElementCount===0);U(St,li),(Ce.minCol===Ce.maxCol||Ce.minRow===Ce.maxRow)&&U(bf(pe,"th,td"),un=>{at(un,"rowspan"),at(un,"colspan")}),at(pe,si),at(pe,"data-snooker-col-series"),Ls.getTableSize(pe).adjustTableWidth(st)},op=(pe,Ce,Ye,st)=>{if(st.minCol===0&&Ce.grid.columns===st.maxCol+1)return 0;const St=Pi(Ce,pe,Ye),Ut=oe(St,(ur,Nr)=>ur+Nr,0),$n=oe(St.slice(st.minCol,st.maxCol+1),(ur,Nr)=>ur+Nr,0)/Ut*Ye.pixelWidth()-Ye.pixelWidth();return Ye.getCellDelta($n)},ip=(pe,Ce)=>{const Ye=ai=>tn(ai.element,Ce),st=dr(pe),St=rs(st),Ut=Ls.getTableSize(pe),un=Xi.generate(St),Tn=Is(un,Ye),$n="th:not("+Ce+"),td:not("+Ce+")",ur=mh(st,"th,td",ai=>tn(ai,$n));U(ur,li),ec(St,un,Tn,Ye);const Nr=Xi.fromTable(pe),Ro=op(pe,Nr,Ut,Tn);return Tc(st,Tn,un,Ro),st},Hs=" ",pd=((pe,Ce)=>{const Ye=Ut=>{if(!pe(Ut))throw new Error("Can only get "+Ce+" value of a "+Ce+" node");return st(Ut).getOr("")},st=Ut=>pe(Ut)?C.from(Ut.dom.nodeValue):C.none();return{get:Ye,getOption:st,set:(Ut,un)=>{if(!pe(Ut))throw new Error("Can only set raw "+Ce+" value of a "+Ce+" node");Ut.dom.nodeValue=un}}})(gn,"text"),qf=pe=>pd.get(pe),tc=pe=>pd.getOption(pe),Wf=(pe,Ce)=>pd.set(pe,Ce),Rl=pe=>qt(pe)==="img"?1:tc(pe).fold(()=>Kn(pe).length,Ce=>Ce.length),cg=pe=>tc(pe).filter(Ce=>Ce.trim().length!==0||Ce.indexOf(Hs)>-1).isSome(),E0=pe=>_t(pe)&&Rt(pe,"contenteditable")==="false",xm=["img","br"],Cx=pe=>cg(pe)||z(xm,qt(pe))||E0(pe),eh=pe=>us(pe,Cx),Ax=pe=>Wg(pe,Cx),Wg=(pe,Ce)=>{const Ye=st=>{const St=Kn(st);for(let Ut=St.length-1;Ut>=0;Ut--){const un=St[Ut];if(Ce(un))return C.some(un);const Tn=Ye(un);if(Tn.isSome())return Tn}return C.none()};return Ye(pe)},Mx={scope:["row","col"]},k1=pe=>()=>{const Ce=Pt.fromTag("td",pe.dom);return $r(Ce,Pt.fromTag("br",pe.dom)),Ce},oc=pe=>()=>Pt.fromTag("col",pe.dom),_m=pe=>()=>Pt.fromTag("colgroup",pe.dom),Yg=pe=>()=>Pt.fromTag("tr",pe.dom),wm=(pe,Ce,Ye)=>{const st=io(pe,Ce);return Ie(Ye,(St,Ut)=>{St===null?at(st,Ut):lt(st,Ut,St)}),st},ub=pe=>pe,Oh=(pe,Ce,Ye)=>eh(pe).map(St=>{const Ut=Ye.join(","),un=oi(St,Ut,Tn=>vn(Tn,pe));return K(un,(Tn,$n)=>{const ur=br($n);return $r(Tn,ur),ur},Ce)}).getOr(Ce),Ex=(pe,Ce)=>{Ie(Mx,(Ye,st)=>it(pe,st).filter(St=>z(Ye,St)).each(St=>lt(Ce,st,St)))},Tf=(pe,Ce,Ye)=>{const st=(un,Tn)=>{ef(un.element,Tn),Es(Tn,"height"),un.colspan!==1&&Es(Tn,"width")},St=un=>{const Tn=Pt.fromTag(qt(un.element),Ce.dom),$n=Ye.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),ur=$n.length>0?Oh(un.element,Tn,$n):Tn;return $r(ur,Pt.fromTag("br")),st(un,Tn),Ex(un.element,Tn),pe(un.element,Tn),Tn};return{col:un=>{const Tn=Pt.fromTag(qt(un.element),Ce.dom);return st(un,Tn),pe(un.element,Tn),Tn},colgroup:_m(Ce),row:Yg(Ce),cell:St,replace:wm,colGap:oc(Ce),gap:k1(Ce)}},Hv=pe=>({col:oc(pe),colgroup:_m(pe),row:Yg(pe),cell:k1(pe),replace:ub,colGap:oc(pe),gap:k1(pe)}),Om=(pe,Ce)=>{const st=(Ce||document).createElement("div");return st.innerHTML=pe,Kn(Pt.fromDom(st))},Sm=pe=>j(pe,Pt.fromDom),ap=pe=>Ce=>Ce.options.get(pe),Bp="100%",P0=pe=>{var Ce;const Ye=pe.dom,st=(Ce=Ye.getParent(pe.selection.getStart(),Ye.isBlock))!==null&&Ce!==void 0?Ce:pe.getBody();return af(Pt.fromDom(st))+"px"},ug=(pe,Ce)=>lp(pe)||!db(pe)?Ce:Gg(pe)?{...Ce,width:P0(pe)}:{...Ce,width:Bp},Zv=(pe,Ce)=>lp(pe)||db(pe)?Ce:Gg(pe)?{...Ce,width:P0(pe)}:{...Ce,width:Bp},R0=pe=>{const Ce=pe.options.register;Ce("table_clone_elements",{processor:"string[]"}),Ce("table_use_colgroups",{processor:"boolean",default:!0}),Ce("table_header_type",{processor:Ye=>{const st=z(["section","cells","sectionCells","auto"],Ye);return st?{value:Ye,valid:st}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),Ce("table_sizing_mode",{processor:"string",default:"auto"}),Ce("table_default_attributes",{processor:"object",default:{border:"1"}}),Ce("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),Ce("table_column_resizing",{processor:Ye=>{const st=z(["preservetable","resizetable"],Ye);return st?{value:Ye,valid:st}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),Ce("table_resize_bars",{processor:"boolean",default:!0}),Ce("table_style_by_css",{processor:"boolean",default:!0}),Ce("table_merge_content_on_paste",{processor:"boolean",default:!0})},C_=pe=>C.from(pe.options.get("table_clone_elements")),sp=pe=>{const Ce=pe.options.get("object_resizing");return z(Ce.split(","),"table")},A_=ap("table_header_type"),fb=ap("table_column_resizing"),Fl=pe=>fb(pe)==="preservetable",Yf=pe=>fb(pe)==="resizetable",km=ap("table_sizing_mode"),Xg=pe=>km(pe)==="relative",Gg=pe=>km(pe)==="fixed",lp=pe=>km(pe)==="responsive",cp=ap("table_resize_bars"),db=ap("table_style_by_css"),up=ap("table_merge_content_on_paste"),Xf=pe=>{const Ce=pe.options,Ye=Ce.get("table_default_attributes");return Ce.isSet("table_default_attributes")?Ye:Zv(pe,Ye)},L0=pe=>{const Ce=pe.options,Ye=Ce.get("table_default_styles");return Ce.isSet("table_default_styles")?Ye:ug(pe,Ye)},Px=ap("table_use_colgroups"),zp=pe=>qc(pe,"[contenteditable]"),Kg=(pe,Ce=!1)=>ao(pe)?pe.dom.isContentEditable:zp(pe).fold(v(Ce),Ye=>M_(Ye)==="true"),M_=pe=>pe.dom.contentEditable,T1=pe=>Pt.fromDom(pe.getBody()),Tm=pe=>Ce=>vn(Ce,T1(pe)),zd=pe=>{at(pe,"data-mce-style");const Ce=Ye=>at(Ye,"data-mce-style");U(xf(pe),Ce),U(tf(pe),Ce),U(_f(pe),Ce)},fp=pe=>Pt.fromDom(pe.selection.getStart()),I0=pe=>pe.getBoundingClientRect().width,E_=pe=>pe.getBoundingClientRect().height,Jg=pe=>(Ce,Ye)=>{const st=Ce.dom.getStyle(Ye,pe)||Ce.dom.getAttrib(Ye,pe);return C.from(st).filter(cc)},P_=Jg("width"),C1=Jg("height"),zO=pe=>/^(\d+(\.\d+)?)%$/.test(pe),xu=pe=>/^(\d+(\.\d+)?)px$/.test(pe),Cm=pe=>Xl(pe,vt("table")).exists(Kg),D0=(pe,Ce)=>{const Ye=Ce.column,st=Ce.column+Ce.colspan-1,St=Ce.row,Ut=Ce.row+Ce.rowspan-1;return Ye<=pe.finishCol&&st>=pe.startCol&&St<=pe.finishRow&&Ut>=pe.startRow},Sa=(pe,Ce)=>Ce.column>=pe.startCol&&Ce.column+Ce.colspan-1<=pe.finishCol&&Ce.row>=pe.startRow&&Ce.row+Ce.rowspan-1<=pe.finishRow,Ri=(pe,Ce)=>{let Ye=!0;const st=A(Sa,Ce);for(let St=Ce.startRow;St<=Ce.finishRow;St++)for(let Ut=Ce.startCol;Ut<=Ce.finishCol;Ut++)Ye=Ye&&Xi.getAt(pe,St,Ut).exists(st);return Ye?C.some(Ce):C.none()},Fp=(pe,Ce)=>Qn(Math.min(pe.row,Ce.row),Math.min(pe.column,Ce.column),Math.max(pe.row+pe.rowspan-1,Ce.row+Ce.rowspan-1),Math.max(pe.column+pe.colspan-1,Ce.column+Ce.colspan-1)),qv=(pe,Ce,Ye)=>{const st=Xi.findItem(pe,Ce,vn),St=Xi.findItem(pe,Ye,vn);return st.bind(Ut=>St.map(un=>Fp(Ut,un)))},hb=(pe,Ce,Ye)=>qv(pe,Ce,Ye).bind(st=>Ri(pe,st)),A1=(pe,Ce,Ye,st)=>Xi.findItem(pe,Ce,vn).bind(St=>{const Ut=Ye>0?St.row+St.rowspan-1:St.row,un=st>0?St.column+St.colspan-1:St.column;return Xi.getAt(pe,Ut+Ye,un+st).map($n=>$n.element)}),Np=(pe,Ce,Ye)=>qv(pe,Ce,Ye).map(st=>{const St=Xi.filterItems(pe,A(D0,st));return j(St,Ut=>Ut.element)}),pl=(pe,Ce)=>{const Ye=(st,St)=>Nn(St,st);return Xi.findItem(pe,Ce,Ye).map(st=>st.element)},FO=(pe,Ce,Ye)=>Au(pe).bind(st=>{const St=e0(st);return A1(St,pe,Ce,Ye)}),Rx=(pe,Ce,Ye)=>{const st=e0(pe);return Np(st,Ce,Ye)},B0=(pe,Ce,Ye,st,St)=>{const Ut=e0(pe),un=vn(pe,Ye)?C.some(Ce):pl(Ut,Ce),Tn=vn(pe,St)?C.some(st):pl(Ut,st);return un.bind($n=>Tn.bind(ur=>Np(Ut,$n,ur)))},fo=(pe,Ce,Ye)=>{const st=e0(pe);return hb(st,Ce,Ye)},e0=Xi.fromTable;var _S=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],fg=()=>{const pe=ur=>Pt.fromDom(ur.dom.cloneNode(!1)),Ce=ur=>In(ur).dom,Ye=ur=>nn(ur)?qt(ur)==="body"?!0:z(_S,qt(ur)):!1,st=ur=>nn(ur)?z(["br","img","hr","input"],qt(ur)):!1,St=ur=>nn(ur)&&Rt(ur,"contenteditable")==="false",Ut=(ur,Nr)=>ur.dom.compareDocumentPosition(Nr.dom),un=(ur,Nr)=>{const Ro=Lt(ur);yt(Nr,Ro)},Tn=ur=>{const Nr=qt(ur);return z(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],Nr)},$n=ur=>nn(ur)?it(ur,"lang"):C.none();return{up:v({selector:wc,closest:qc,predicate:Aa,all:Fn}),down:v({selector:ra,predicate:Ao}),styles:v({get:yf,getRaw:$h,set:ks,remove:Es}),attrs:v({get:Rt,set:lt,remove:at,copyTo:un}),insert:v({before:zr,after:Fr,afterAll:so,append:$r,appendAll:So,prepend:Rr,wrap:Co}),remove:v({unwrap:Pn,remove:li}),create:v({nu:Pt.fromTag,clone:pe,text:Pt.fromText}),query:v({comparePosition:Ut,prevSibling:ir,nextSibling:Wn}),property:v({children:Kn,name:qt,parent:Sr,document:Ce,isText:gn,isComment:Ct,isElement:nn,isSpecial:Tn,getLanguage:$n,getText:qf,setText:Wf,isBoundary:Ye,isEmptyTag:st,isNonEditable:St}),eq:vn,is:er}};const R_=(pe,Ce,Ye,st)=>{const St=Ye[0],Ut=Ye.slice(1);return st(pe,Ce,St,Ut)},Fd=(pe,Ce,Ye)=>Ye.length>0?R_(pe,Ce,Ye,L_):C.none(),L_=(pe,Ce,Ye,st)=>{const St=Ce(pe,Ye);return K(st,(Ut,un)=>{const Tn=Ce(pe,un);return Am(pe,Ut,Tn)},St)},Am=(pe,Ce,Ye)=>Ce.bind(st=>Ye.filter(A(pe.eq,st))),I_=(pe,Ce)=>A(pe.eq,Ce),Wv=(pe,Ce,Ye,st=T)=>{const St=[Ce].concat(pe.up().all(Ce)),Ut=[Ye].concat(pe.up().all(Ye)),un=Nr=>ee(Nr,st).fold(()=>Nr,ai=>Nr.slice(0,ai+1)),Tn=un(St),$n=un(Ut),ur=Y(Tn,Nr=>$($n,I_(pe,Nr)));return{firstpath:Tn,secondpath:$n,shared:ur}},Ll=Fd,Sh=Wv,NO=fg(),$p=(pe,Ce)=>Ll(NO,(Ye,st)=>pe(st),Ce),Lx=(pe,Ce,Ye)=>Sh(NO,pe,Ce,Ye),Yv=pe=>wc(pe,"table"),Xv=(pe,Ce,Ye)=>{const st=St=>Ut=>Ye!==void 0&&Ye(Ut)||vn(Ut,St);return vn(pe,Ce)?C.some({boxes:C.some([pe]),start:pe,finish:Ce}):Yv(pe).bind(St=>Yv(Ce).bind(Ut=>{if(vn(St,Ut))return C.some({boxes:Rx(St,pe,Ce),start:pe,finish:Ce});if(Nn(St,Ut)){const un=oi(Ce,"td,th",st(St)),Tn=un.length>0?un[un.length-1]:Ce;return C.some({boxes:B0(St,pe,St,Ce,Ut),start:pe,finish:Tn})}else if(Nn(Ut,St)){const un=oi(pe,"td,th",st(Ut)),Tn=un.length>0?un[un.length-1]:pe;return C.some({boxes:B0(Ut,pe,St,Ce,Ut),start:pe,finish:Tn})}else return Lx(pe,Ce).shared.bind(un=>qc(un,"table",Ye).bind(Tn=>{const $n=oi(Ce,"td,th",st(Tn)),ur=$n.length>0?$n[$n.length-1]:Ce,Nr=oi(pe,"td,th",st(Tn)),Ro=Nr.length>0?Nr[Nr.length-1]:pe;return C.some({boxes:B0(Tn,pe,St,Ce,Ut),start:Ro,finish:ur})}))}))},pb=(pe,Ce)=>{const Ye=ra(pe,Ce);return Ye.length>0?C.some(Ye):C.none()},Cf=(pe,Ce)=>Y(pe,Ye=>tn(Ye,Ce)),$O=(pe,Ce,Ye)=>Ku(pe,Ce).bind(st=>Ku(pe,Ye).bind(St=>$p(Yv,[st,St]).map(Ut=>({first:st,last:St,table:Ut})))),M1=(pe,Ce)=>wc(pe,"table").bind(Ye=>Ku(Ye,Ce).bind(st=>Xv(st,pe).bind(St=>St.boxes.map(Ut=>({boxes:Ut,start:St.start,finish:St.finish}))))),E1=(pe,Ce,Ye,st,St)=>Cf(pe,St).bind(Ut=>FO(Ut,Ce,Ye).bind(un=>M1(un,st))),md=(pe,Ce)=>pb(pe,Ce),D_=(pe,Ce,Ye)=>$O(pe,Ce,Ye).bind(st=>{const St=$n=>vn(pe,$n),Ut="thead,tfoot,tbody,table",un=wc(st.first,Ut,St),Tn=wc(st.last,Ut,St);return un.bind($n=>Tn.bind(ur=>vn($n,ur)?fo(st.table,st.first,st.last):C.none()))}),VO=_,B_=pe=>{const Ce=(st,St)=>it(st,St).exists(Ut=>parseInt(Ut,10)>1),Ye=st=>Ce(st,"rowspan")||Ce(st,"colspan");return pe.length>0&&se(pe,Ye)?C.some(pe):C.none()},Gv=(pe,Ce,Ye)=>Ce.length<=1?C.none():D_(pe,Ye.firstSelectedSelector,Ye.lastSelectedSelector).map(st=>({bounds:st,cells:Ce})),Gf="data-mce-selected",kh="td["+Gf+"],th["+Gf+"]",Bo="["+Gf+"]",Ix="data-mce-first-selected",lf="td["+Ix+"],th["+Ix+"]",mb="data-mce-last-selected",gd="td["+mb+"],th["+mb+"]",Nl=Bo,dg={selected:Gf,selectedSelector:kh,firstSelected:Ix,firstSelectedSelector:lf,lastSelected:mb,lastSelectedSelector:gd},Dx=(pe,Ce,Ye)=>({element:Ye,mergable:Gv(Ce,pe,dg),unmergable:B_(pe),selection:VO(pe)}),UO=(pe,Ce,Ye)=>({element:pe,clipboard:Ce,generators:Ye}),t0=(pe,Ce,Ye,st)=>({selection:VO(pe),clipboard:Ye,generators:st}),gb=pe=>Au(pe).bind(Ce=>md(Ce,dg.firstSelectedSelector)).fold(v(pe),Ce=>Ce[0]),Mm=pe=>(Ce,Ye)=>{const st=qt(Ce),St=st==="col"||st==="colgroup"?gb(Ce):Ce;return qc(St,pe,Ye)},jO=Mm("th,td,caption"),z_=Mm("th,td"),Sl=pe=>Sm(pe.model.table.getSelectedCells()),Kv=pe=>W(Sl(pe),Ce=>tn(Ce,dg.selectedSelector)),fc=pe=>Au(pe[0]).map(Ce=>{const Ye=ip(Ce,Nl);return zd(Ye),[Ye]}),Jv=(pe,Ce)=>j(Ce,Ye=>pe.selection.serializer.serialize(Ye.dom,{})).join(""),$l=pe=>j(pe,Ce=>Ce.dom.innerText).join(""),P1=(pe,Ce)=>{pe.on("BeforeGetContent",Ye=>{const st=St=>{Ye.preventDefault(),fc(St).each(Ut=>{Ye.content=Ye.format==="text"?$l(Ut):Jv(pe,Ut)})};if(Ye.selection===!0){const St=Kv(pe);St.length>=1&&st(St)}}),pe.on("BeforeSetContent",Ye=>{if(Ye.selection===!0&&Ye.paste===!0){const st=Sl(pe);ye(st).each(St=>{Au(St).each(Ut=>{const un=W(Om(Ye.content),$n=>qt($n)!=="meta"),Tn=vt("table");if(up(pe)&&un.length===1&&Tn(un[0])){Ye.preventDefault();const $n=Pt.fromDom(pe.getDoc()),ur=Hv($n),Nr=UO(St,un[0],ur);Ce.pasteCells(Ut,Nr).each(()=>{pe.focus()})}})})}})},th=(pe,Ce)=>({element:pe,offset:Ce}),Bx=(pe,Ce,Ye)=>pe.property().isText(Ce)&&pe.property().getText(Ce).trim().length===0||pe.property().isComment(Ce)?Ye(Ce).bind(st=>Bx(pe,st,Ye).orThunk(()=>C.some(st))):C.none(),ic=(pe,Ce)=>pe.property().isText(Ce)?pe.property().getText(Ce).length:pe.property().children(Ce).length,F_=(pe,Ce)=>{const Ye=Bx(pe,Ce,pe.query().prevSibling).getOr(Ce);if(pe.property().isText(Ye))return th(Ye,ic(pe,Ye));const st=pe.property().children(Ye);return st.length>0?F_(pe,st[st.length-1]):th(Ye,ic(pe,Ye))},QO=F_,Du=fg(),su=pe=>QO(Du,pe),hg=(pe,Ce)=>{Vf(pe)||An(pe).each(st=>{const St=st.value/2;Sn(pe,St,st.unit),Sn(Ce,St,st.unit)})},n0=pe=>j(pe,v(0)),N_=(pe,Ce,Ye,st,St)=>St(pe.slice(0,Ce)).concat(st).concat(St(pe.slice(Ye))),ey=pe=>(Ce,Ye,st,St)=>{if(pe(st)){const Ut=Math.max(St,Ce[Ye]-Math.abs(st)),un=Math.abs(Ut-Ce[Ye]);return st>=0?un:-un}else return st},pg=ey(pe=>pe<0),ty=ey(E),R1=()=>{const pe=(Tn,$n,ur,Nr,Ro)=>{const ai=pg(Tn,$n,Nr,Ro);return N_(Tn,$n,ur+1,[ai,0],n0)},Ce=(Tn,$n,ur,Nr)=>{const Ro=(100+ur)/100,ai=Math.max(Nr,(Tn[$n]+ur)/Ro);return j(Tn,(Ko,Qo)=>(Qo===$n?ai:Ko/Ro)-Ko)},Ye=(Tn,$n,ur,Nr,Ro,ai)=>ai?Ce(Tn,$n,Nr,Ro):pe(Tn,$n,ur,Nr,Ro);return{resizeTable:(Tn,$n)=>Tn($n),clampTableDelta:pg,calcLeftEdgeDeltas:Ye,calcMiddleDeltas:(Tn,$n,ur,Nr,Ro,ai,Ko)=>Ye(Tn,ur,Nr,Ro,ai,Ko),calcRightEdgeDeltas:(Tn,$n,ur,Nr,Ro,ai)=>{if(ai)return Ce(Tn,ur,Nr,Ro);{const Ko=pg(Tn,ur,Nr,Ro);return n0(Tn.slice(0,ur)).concat([Ko])}},calcRedestributedWidths:(Tn,$n,ur,Nr)=>{if(Nr){const ai=($n+ur)/$n,Ko=j(Tn,Qo=>Qo/ai);return{delta:ai*100-100,newSizes:Ko}}else return{delta:ur,newSizes:Tn}}}},z0=()=>{const pe=(un,Tn,$n,ur,Nr)=>{const Ro=ur>=0?$n:Tn,ai=ty(un,Ro,ur,Nr);return N_(un,Tn,$n+1,[ai,-ai],n0)};return{resizeTable:(un,Tn,$n)=>{$n&&un(Tn)},clampTableDelta:(un,Tn,$n,ur,Nr)=>{if(Nr){if($n>=0)return $n;{const Ro=oe(un,(ai,Ko)=>ai+Ko-ur,0);return Math.max(-Ro,$n)}}else return pg(un,Tn,$n,ur)},calcLeftEdgeDeltas:pe,calcMiddleDeltas:(un,Tn,$n,ur,Nr,Ro)=>pe(un,$n,ur,Nr,Ro),calcRightEdgeDeltas:(un,Tn,$n,ur,Nr,Ro)=>{if(Ro)return n0(un);{const ai=ur/un.length;return j(un,v(ai))}},calcRedestributedWidths:(un,Tn,$n,ur)=>({delta:0,newSizes:un})}},mg=pe=>Xi.fromTable(pe).grid,L1=vt("th"),I1=pe=>se(pe,Ce=>L1(Ce.element)),zx=(pe,Ce)=>pe&&Ce?"sectionCells":pe?"section":"cells",F0=pe=>{const Ce=pe.section==="thead",Ye=Yd(vb(pe.cells),"th");return pe.section==="tfoot"?{type:"footer"}:Ce||Ye?{type:"header",subType:zx(Ce,Ye)}:{type:"body"}},vb=pe=>{const Ce=W(pe,Ye=>L1(Ye.element));return Ce.length===0?C.some("td"):Ce.length===pe.length?C.some("th"):C.none()},Fx=pe=>{const Ce=j(pe,St=>F0(St).type),Ye=z(Ce,"header"),st=z(Ce,"footer");if(!Ye&&!st)return C.some("body");{const St=z(Ce,"body");return Ye&&!St&&!st?C.some("header"):!Ye&&!St&&st?C.some("footer"):C.none()}},$_=pe=>Se(pe.all,Ce=>{const Ye=F0(Ce);return Ye.type==="header"?C.from(Ye.subType):C.none()}),Nx=(pe,Ce,Ye)=>vr(Ye(pe.element,Ce),!0,pe.isLocked),V_=(pe,Ce)=>pe.section!==Ce?nr(pe.element,pe.cells,Ce,pe.isNew):pe,yb=()=>({transformRow:V_,transformCell:(pe,Ce,Ye)=>{const st=Ye(pe.element,Ce),St=qt(st)!=="td"?Qr(st,"td"):st;return vr(St,pe.isNew,pe.isLocked)}}),D1=()=>({transformRow:V_,transformCell:Nx}),vd=()=>({transformRow:(pe,Ce)=>V_(pe,Ce==="thead"?"tbody":Ce),transformCell:Nx}),Th={getTableSectionType:(pe,Ce)=>{const Ye=Xi.fromTable(pe);switch($_(Ye).getOr(Ce)){case"section":return yb();case"sectionCells":return D1();case"cells":return vd()}},section:yb,sectionCells:D1,cells:vd,fallback:()=>({transformRow:_,transformCell:Nx})},Kf=(pe,Ce,Ye,st)=>{Ye===st?at(pe,Ce):lt(pe,Ce,Ye)},ny=(pe,Ce,Ye)=>{_e(ko(pe,Ce)).fold(()=>Rr(pe,Ye),st=>Fr(st,Ye))},B1=(pe,Ce)=>{const Ye=ga(pe,Ce).getOrThunk(()=>{const st=Pt.fromTag(Ce,En(pe).dom);return Ce==="thead"?ny(pe,"caption,colgroup",st):Ce==="colgroup"?ny(pe,"caption",st):$r(pe,st),st});return go(Ye),Ye},cf=(pe,Ce)=>{const Ye=[],st=[],St=Ko=>j(Ko,Qo=>{Qo.isNew&&Ye.push(Qo.element);const _i=Qo.element;return go(_i),U(Qo.cells,To=>{To.isNew&&st.push(To.element),Kf(To.element,"colspan",To.colspan,1),Kf(To.element,"rowspan",To.rowspan,1),$r(_i,To.element)}),_i}),Ut=Ko=>he(Ko,Qo=>j(Qo.cells,_i=>(Kf(_i.element,"span",_i.colspan,1),_i.element))),un=(Ko,Qo)=>{const _i=B1(pe,Qo),Zo=(Qo==="colgroup"?Ut:St)(Ko);So(_i,Zo)},Tn=Ko=>{ga(pe,Ko).each(li)},$n=(Ko,Qo)=>{Ko.length>0?un(Ko,Qo):Tn(Qo)},ur=[],Nr=[],Ro=[],ai=[];return U(Ce,Ko=>{switch(Ko.section){case"thead":ur.push(Ko);break;case"tbody":Nr.push(Ko);break;case"tfoot":Ro.push(Ko);break;case"colgroup":ai.push(Ko);break}}),$n(ai,"colgroup"),$n(ur,"thead"),$n(Nr,"tbody"),$n(Ro,"tfoot"),{newRows:Ye,newCells:st}},Em=pe=>j(pe,Ce=>{const Ye=br(Ce.element);return U(Ce.cells,st=>{const St=dr(st.element);Kf(St,"colspan",st.colspan,1),Kf(St,"rowspan",st.rowspan,1),$r(Ye,St)}),Ye}),$x=(pe,Ce)=>j(pe,Ye=>Ru(Ye,Ce)),Nd=(pe,Ce)=>pe[Ce],ry=(pe,Ce)=>{if(pe.length===0)return 0;const Ye=pe[0];return ee(pe,St=>!Ce(Ye.element,St.element)).getOr(pe.length)},HO=(pe,Ce,Ye,st)=>{const St=Nd(pe,Ce),Ut=St.section==="colgroup",un=ry(St.cells.slice(Ye),st),Tn=Ut?1:ry($x(pe.slice(Ce),Ye),st);return{colspan:un,rowspan:Tn}},Vx=(pe,Ce)=>{const Ye=j(pe,St=>j(St.cells,T)),st=(St,Ut,un,Tn)=>{for(let $n=St;$n{const un=he(St.cells,(Tn,$n)=>{if(Ye[Ut][$n]===!1){const ur=HO(pe,Ut,$n,Ce);return st(Ut,$n,ur.rowspan,ur.colspan),[zn(Tn.element,ur.rowspan,ur.colspan,Tn.isNew)]}else return[]});return gr(St.element,un,St.section,St.isNew)})},z1=(pe,Ce,Ye)=>{const st=[];U(pe.colgroups,St=>{const Ut=[];for(let un=0;unvr($n.element,Ye,!1)).getOrThunk(()=>vr(Ce.colGap(),!0,!1));Ut.push(Tn)}st.push(nr(St.element,Ut,"colgroup",Ye))});for(let St=0;Stvr(Nr.element,Ye,Nr.isLocked)).getOrThunk(()=>vr(Ce.gap(),!0,!1));Ut.push(ur)}const un=pe.all[St],Tn=nr(un.element,Ut,un.section,Ye);st.push(Tn)}return st},j_=(pe,Ce)=>z1(pe,Ce,!1),oy=pe=>Vx(pe,vn),xb=(pe,Ce)=>Se(pe.all,Ye=>Y(Ye.cells,st=>vn(Ce,st.element))),ZO=(pe,Ce,Ye)=>{const st=j(Ce.selection,Ut=>Vh(Ut).bind(un=>xb(pe,un)).filter(Ye)),St=Ql(st);return Nf(St.length>0,St)},Af=(pe,Ce,Ye,st,St)=>(Ut,un,Tn,$n)=>{const ur=Xi.fromTable(Ut),Nr=C.from($n==null?void 0:$n.section).getOrThunk(Th.fallback);return Ce(ur,un).map(ai=>{const Ko=j_(ur,Tn),Qo=pe(Ko,ai,vn,St(Tn),Nr),_i=Ps(Qo.grid),To=oy(Qo.grid);return{info:ai,grid:To,cursor:Qo.cursor,lockedColumns:_i}}).bind(ai=>{const Ko=cf(Ut,ai.grid),Qo=C.from($n==null?void 0:$n.sizing).getOrThunk(()=>Ls.getTableSize(Ut)),_i=C.from($n==null?void 0:$n.resize).getOrThunk(z0);return Ye(Ut,ai.grid,ai.info,{sizing:Qo,resize:_i,section:Nr}),st(Ut),at(Ut,si),ai.lockedColumns.length>0&<(Ut,si,ai.lockedColumns.join(",")),C.some({cursor:ai.cursor,newRows:Ko.newRows,newCells:Ko.newCells})})},gg=(pe,Ce)=>Vh(Ce.element).bind(Ye=>xb(pe,Ye).map(st=>({...st,generators:Ce.generators,clipboard:Ce.clipboard}))),dp=(pe,Ce)=>ZO(pe,Ce,E).map(Ye=>({cells:Ye,generators:Ce.generators,clipboard:Ce.clipboard})),N0=(pe,Ce)=>Ce.mergable,Q_=(pe,Ce)=>Ce.unmergable,Vp=(pe,Ce)=>ZO(pe,Ce,E),nh=(pe,Ce)=>ZO(pe,Ce,Ye=>!Ye.isLocked),F1=(pe,Ce)=>xb(pe,Ce).exists(Ye=>!Ye.isLocked),N1=(pe,Ce)=>se(Ce,Ye=>F1(pe,Ye)),iy=(pe,Ce)=>N0(pe,Ce).filter(Ye=>N1(pe,Ye.cells)),qO=(pe,Ce)=>Q_(pe,Ce).filter(Ye=>N1(pe,Ye)),wS=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows;if(St.length===0)return pe;for(let Ut=Ce.startRow;Ut<=Ce.finishRow;Ut++)for(let un=Ce.startCol;un<=Ce.finishCol;un++){const Tn=St[Ut],$n=Ru(Tn,un).isLocked;Hi(Tn,un,vr(st(),!1,$n))}return pe},$1=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows;let Ut=!0;for(let un=0;unoe(pe,(Ye,st)=>$(Ye,St=>Ce(St.element,st.element))?Ye:Ye.concat([st]),[]),H_=(pe,Ce,Ye,st)=>(Ce>0&&Ce{const Ut=St.cells[Ce-1];let un=0;const Tn=st();for(;St.cells.length>Ce+un&&Ye(Ut.element,St.cells[Ce+un].element);)Hi(St,Ce+un,vr(Tn,!0,St.cells[Ce+un].isLocked)),un++}),pe),nc=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows;if(Ce>0&&Ce{let $n=C.none();for(let ur=Ce;ur{Hi(Ro,Nr,vr(Qo,!0,ai.isLocked))}))}})}return pe},$0=pe=>{const Ce=Ut=>Ut(pe),Ye=v(pe),st=()=>St,St={tag:!0,inner:pe,fold:(Ut,un)=>un(pe),isValue:E,isError:T,map:Ut=>V1.value(Ut(pe)),mapError:st,bind:Ce,exists:Ce,forall:Ce,getOr:Ye,or:st,getOrThunk:Ye,orThunk:st,getOrDie:Ye,each:Ut=>{Ut(pe)},toOptional:()=>C.some(pe)};return St},yd=pe=>{const Ce=()=>Ye,Ye={tag:!1,inner:pe,fold:(st,St)=>st(pe),isValue:T,isError:E,map:Ce,mapError:st=>V1.error(st(pe)),bind:Ce,exists:T,forall:E,getOr:_,or:_,getOrThunk:M,orThunk:M,getOrDie:R(String(pe)),each:u,toOptional:C.none};return Ye},V1={value:$0,error:yd,fromOption:(pe,Ce)=>pe.fold(()=>yd(Ce),$0)},r0=(pe,Ce,Ye)=>{if(pe.row>=Ce.length||pe.column>Yc(Ce[0]))return V1.error("invalid start address out of table bounds, row: "+pe.row+", column: "+pe.column);const st=Ce.slice(pe.row),St=st[0].cells.slice(pe.column),Ut=Yc(Ye[0]),un=Ye.length;return V1.value({rowDelta:st.length-un,colDelta:St.length-Ut})},vg=(pe,Ce)=>{const Ye=Yc(pe[0]),st=Yc(Ce[0]);return{rowDelta:0,colDelta:Ye-st}},oh=(pe,Ce)=>{const Ye=pe.length,st=Ce.length;return{rowDelta:Ye-st,colDelta:0}},Ch=(pe,Ce,Ye,st)=>{const St=Ce.section==="colgroup"?Ye.col:Ye.cell;return Q(pe,Ut=>vr(St(),!0,st(Ut)))},Z_=(pe,Ce,Ye,st)=>{const St=pe[pe.length-1];return pe.concat(Q(Ce,()=>{const Ut=St.section==="colgroup"?Ye.colgroup:Ye.row,un=Fc(St,Ut,_),Tn=Ch(un.cells.length,un,Ye,$n=>We(st,$n.toString()));return pi(un,Tn)}))},q_=(pe,Ce,Ye,st)=>j(pe,St=>{const Ut=Ch(Ce,St,Ye,T);return sf(St,st,Ut)}),V0=(pe,Ce,Ye)=>j(pe,st=>oe(Ye,(St,Ut)=>{const un=Ch(1,st,Ce,E)[0];return Ml(St,Ut,un)},st)),Up=(pe,Ce,Ye)=>{const st=Ce.colDelta<0?q_:_,St=Ce.rowDelta<0?Z_:_,Ut=Ps(pe),un=Yc(pe[0]),Tn=$(Ut,Nr=>Nr===un-1),$n=st(pe,Math.abs(Ce.colDelta),Ye,Tn?un-1:un),ur=Ps($n);return St($n,Math.abs(Ce.rowDelta),Ye,ce(ur,E))},W_=(pe,Ce,Ye,st)=>{const St=Ru(pe[Ce],Ye),Ut=A(st,St.element),un=pe[Ce];return pe.length>1&&Yc(un)>1&&(Ye>0&&Ut(vc(un,Ye-1))||Ye0&&Ut(vc(pe[Ce-1],Ye))||Ce{const un=pe.row,Tn=pe.column,$n=Ye.length,ur=Yc(Ye[0]),Nr=un+$n,Ro=Tn+ur+Ut.length,ai=ce(Ut,E);for(let Ko=un;Ko{const st=Yc(Ce[0]),St=Kl(Ce).cols.length+pe.row,Ut=Q(st-pe.column,Tn=>Tn+pe.column),un=Y(Ut,Tn=>se(Ye,$n=>$n!==Tn)).getOr(st-1);return{row:St,column:un}},o0=(pe,Ce,Ye)=>W(Ye,st=>st>=pe.column&&st<=Yc(Ce[0])+pe.column),Ra=(pe,Ce,Ye,st,St)=>{const Ut=Ps(Ce),un=jp(pe,Ce,Ut),Tn=Kl(Ye).rows,$n=o0(un,Tn,Ut);return r0(un,Ce,Tn).map(Nr=>{const Ro={...Nr,colDelta:Nr.colDelta-$n.length},ai=Up(Ce,Ro,st),Ko=Ps(ai),Qo=o0(un,Tn,Ko);return U0(un,ai,Tn,st,St,Qo)})},bd=(pe,Ce,Ye,st,St)=>{H_(Ce,pe,St,st.cell);const Ut=oh(Ye,Ce),un=Up(Ye,Ut,st),Tn=oh(Ce,un),$n=Up(Ce,Tn,st);return j($n,(ur,Nr)=>sf(ur,pe,un[Nr].cells))},Zh=(pe,Ce,Ye,st,St)=>{nc(Ce,pe,St,st.cell);const Ut=Ps(Ce),un=vg(Ce,Ye),Tn={...un,colDelta:un.colDelta-Ut.length},$n=Up(Ce,Tn,st),{cols:ur,rows:Nr}=Kl($n),Ro=Ps($n),ai=vg(Ye,Ce),Ko={...ai,colDelta:ai.colDelta+Ro.length},Qo=V0(Ye,st,Ro),_i=Up(Qo,Ko,st);return[...ur,...Nr.slice(0,pe),..._i,...Nr.slice(pe,Nr.length)]},i0=(pe,Ce,Ye,st)=>Fc(pe,St=>st(St,Ye),Ce),Il=(pe,Ce,Ye,st,St)=>{const{rows:Ut,cols:un}=Kl(pe),Tn=Ut.slice(0,Ce),$n=Ut.slice(Ce),ur=i0(Ut[Ye],(Nr,Ro)=>Ce>0&&Ce{if(Ye==="colgroup"||!st){const Tn=Ru(pe,St);return vr(un(Tn.element,Ut),!0,!1)}else return Ru(pe,Ce)},U1=(pe,Ce,Ye,st,St)=>j(pe,Ut=>{const un=Ce>0&&Cehe(pe,Ye=>{const st=Ye.cells,St=K(Ce,(Ut,un)=>un>=0&&un0?[nr(Ye.element,St,Ye.section,Ye.isNew)]:[]}),Ux=(pe,Ce,Ye)=>{const{rows:st,cols:St}=Kl(pe);return[...St,...st.slice(0,Ce),...st.slice(Ye+1)]},ay=(pe,Ce,Ye,st)=>vc(pe[Ce],Ye)!==void 0&&Ce>0&&st(vc(pe[Ce-1],Ye),vc(pe[Ce],Ye)),Dl=(pe,Ce,Ye)=>Ce>0&&Ye(vc(pe,Ce-1),vc(pe,Ce)),kl=(pe,Ce,Ye,st)=>ay(pe,Ce,Ye,st)||Dl(pe[Ce],Ye,st),SS=(pe,Ce)=>se(Ce,_)&&I1(pe.cells)?E:(st,St,Ut)=>!(qt(st.element)==="th"&&Ce[Ut]),Y_=(pe,Ce)=>se(Ce,_)&&I1(pe)?E:(st,St,Ut)=>!(qt(st.element)==="th"&&Ce[St]),Pm=(pe,Ce,Ye,st)=>{const St=un=>un==="row"?gc(Ce):Vf(Ce),Ut=un=>St(un)?`${un}group`:un;return pe?L1(Ce)?Ut(Ye):null:st&&L1(Ce)?Ut(Ye==="row"?"col":"row"):null},fi=(pe,Ce)=>(Ye,st,St)=>C.some(Pm(pe,Ye.element,"col",Ce[St])),kS=(pe,Ce)=>(Ye,st)=>C.some(Pm(pe,Ye.element,"row",Ce[st])),YO=(pe,Ce,Ye)=>vr(Ye(pe.element,Ce),!0,pe.isLocked),jx=(pe,Ce,Ye,st,St,Ut,un)=>{const Tn=$n=>$(Ce,ur=>Ye($n.element,ur.element));return j(pe,($n,ur)=>Qh($n,(Nr,Ro)=>{if(Tn(Nr)){const ai=un(Nr,ur,Ro)?St(Nr,Ye,st):Nr;return Ut(ai,ur,Ro).each(Ko=>{zt(ai.element,{scope:C.from(Ko)})}),ai}else return Nr}))},X_=(pe,Ce,Ye)=>he(pe,(st,St)=>kl(pe,St,Ce,Ye)?[]:[Ru(st,Ce)]),TS=(pe,Ce,Ye)=>{const st=pe[Ce];return he(st.cells,(St,Ut)=>kl(pe,Ce,Ut,Ye)?[]:[St])},_b=(pe,Ce,Ye,st,St)=>{const Ut=Kl(pe).rows,un=he(Ce,Nr=>X_(Ut,Nr,st)),Tn=j(Ut,Nr=>I1(Nr.cells)),$n=Y_(un,Tn),ur=kS(Ye,Tn);return jx(pe,un,st,St,YO,ur,$n)},sy=(pe,Ce,Ye,st,St,Ut,un)=>{const{cols:Tn,rows:$n}=Kl(pe),ur=$n[Ce[0]],Nr=he(Ce,To=>TS($n,To,St)),Ro=j(ur.cells,(To,Zo)=>I1(X_($n,Zo,St))),ai=[...$n];U(Ce,To=>{ai[To]=un.transformRow($n[To],Ye)});const Ko=[...Tn,...ai],Qo=SS(ur,Ro),_i=fi(st,Ro);return jx(Ko,Nr,St,Ut,un.transformCell,_i,Qo)},j0=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=j(Ce,un=>Ru(St[un.row],un.column));return jx(pe,Ut,Ye,st,YO,C.none,E)},Rm={generate:pe=>{if(!c(pe))throw new Error("cases must be an array");if(pe.length===0)throw new Error("there must be at least one case");const Ce=[],Ye={};return U(pe,(st,St)=>{const Ut=Te(st);if(Ut.length!==1)throw new Error("one and only one name per case");const un=Ut[0],Tn=st[un];if(Ye[un]!==void 0)throw new Error("duplicate key detected:"+un);if(un==="cata")throw new Error("cannot have a case named cata (sorry)");if(!c(Tn))throw new Error("case arguments must be an array");Ce.push(un),Ye[un]=(...$n)=>{const ur=$n.length;if(ur!==Tn.length)throw new Error("Wrong number of arguments to case "+un+". Expected "+Tn.length+" ("+Tn+"), got "+ur);return{fold:(...Ro)=>{if(Ro.length!==pe.length)throw new Error("Wrong number of arguments to fold. Expected "+pe.length+", got "+Ro.length);return Ro[St].apply(null,$n)},match:Ro=>{const ai=Te(Ro);if(Ce.length!==ai.length)throw new Error("Wrong number of arguments to match. Expected: "+Ce.join(",")+` Actual: `+ai.join(","));if(!se(Ce,Qo=>z(ai,Qo)))throw new Error("Not all branches were specified when using match. Specified: "+ai.join(", ")+` -Required: `+Ce.join(", "));return Ro[un].apply(null,$n)},log:Ro=>{console.log(Ro,{constructors:Ce,constructor:un,params:$n})}}}}),Ye}},Ah={...Rm.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},Hx=(pe,Ce)=>pe.length===0?Ah.none():pe.length===1?Ah.only(0):Ce===0?Ah.left(0,1):Ce===pe.length-1?Ah.right(Ce-1,Ce):Ce>0&&Ce{const Ut=pe.slice(0),un=Hx(pe,Ce),Tn=v(j(Ut,v(0))),$n=ai=>st.singleColumnWidth(Ut[ai],Ye),ur=(ai,Ko)=>St.calcLeftEdgeDeltas(Ut,ai,Ko,Ye,st.minCellWidth(),st.isRelative),Nr=(ai,Ko,Qo)=>St.calcMiddleDeltas(Ut,ai,Ko,Qo,Ye,st.minCellWidth(),st.isRelative),Ro=(ai,Ko)=>St.calcRightEdgeDeltas(Ut,ai,Ko,Ye,st.minCellWidth(),st.isRelative);return un.fold(Tn,$n,ur,Nr,Ro)},G_=(pe,Ce,Ye)=>{let st=0;for(let St=pe;St{const Ye=Xi.justCells(pe);return j(Ye,st=>{const St=G_(st.column,st.column+st.colspan,Ce);return{element:st.element,width:St,colspan:st.colspan}})},XO=(pe,Ce)=>{const Ye=Xi.justColumns(pe);return j(Ye,(st,St)=>({element:st.element,width:Ce[St],colspan:st.colspan}))},yc=(pe,Ce)=>j(pe.all,(Ye,st)=>({element:Ye.element,height:Ce[st]})),GO=pe=>K(pe,(Ce,Ye)=>Ce+Ye,0),Zx=(pe,Ce)=>Xi.hasColumns(pe)?XO(pe,Ce):Cc(pe,Ce),_b=(pe,Ce,Ye)=>{const st=Zx(pe,Ce);U(st,St=>{Ye.setElementWidth(St.element,St.width)})},K_=(pe,Ce,Ye,st,St)=>{const Ut=Xi.fromTable(pe),un=St.getCellDelta(Ce),Tn=St.getWidths(Ut,St),$n=Ye===Ut.grid.columns-1,ur=st.clampTableDelta(Tn,Ye,un,St.minCellWidth(),$n),Nr=ih(Tn,Ye,ur,St,st),Ro=j(Nr,(ai,Ko)=>ai+Tn[Ko]);_b(Ut,Ro,St),st.resizeTable(St.adjustTableWidth,ur,$n)},qx=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe),St=mr(st,pe),Ut=j(St,($n,ur)=>Ye===ur?Math.max(Ce+$n,Xd()):$n),un=yc(st,Ut);U(un,$n=>{rt($n.element,$n.height)}),U(Xi.justCells(st),$n=>{dt($n.element)});const Tn=GO(Ut);rt(pe,Tn)},J_=(pe,Ce,Ye,st,St)=>{const Ut=Xi.generate(Ce),un=st.getWidths(Ut,st),Tn=st.pixelWidth(),{newSizes:$n,delta:ur}=St.calcRedestributedWidths(un,Tn,Ye.pixelDelta,st.isRelative);_b(Ut,$n,st),st.adjustTableWidth(ur)},Lm=(pe,Ce,Ye,st)=>{const St=Xi.generate(Ce),Ut=st.getWidths(St,st);_b(St,Ut,st)},qh=pe=>oe(pe,(Ye,st)=>$(Ye,Ut=>Ut.column===st.column)?Ye:Ye.concat([st]),[]).sort((Ye,st)=>Ye.column-st.column),U1=vt("col"),Kc=vt("colgroup"),j1=pe=>qt(pe)==="tr"||Kc(pe),Qp=pe=>{const Ce=uc(pe,"colspan",1),Ye=uc(pe,"rowspan",1);return{element:pe,colspan:Ce,rowspan:Ye}},ly=(pe,Ce=Qp)=>{const Ye=Tn=>U1(Tn.element)?pe.col(Tn):pe.cell(Tn),st=Tn=>Kc(Tn.element)?pe.colgroup(Tn):pe.row(Tn),St=Tn=>{if(j1(Tn))return st({element:Tn});{const $n=Tn,ur=Ye(Ce($n));return Ut=C.some({item:$n,replacement:ur}),ur}};let Ut=C.none();return{getOrInit:(Tn,$n)=>Ut.fold(()=>St(Tn),ur=>$n(Tn,ur.item)?ur.replacement:St(Tn))}},cy=pe=>Ce=>{const Ye=[],st=(un,Tn)=>Y(Ye,$n=>Tn($n.item,un)),St=un=>{const Tn=pe==="td"?{scope:null}:{},$n=Ce.replace(un,pe,Tn);return Ye.push({item:un,sub:$n}),$n};return{replaceOrInit:(un,Tn)=>{if(j1(un)||U1(un))return un;{const $n=un;return st($n,Tn).fold(()=>St($n),ur=>Tn(un,ur.item)?ur.sub:St($n))}}}},wb=pe=>it(pe,"scope").map(Ce=>Ce.substr(0,3)),bc={modification:ly,transform:cy,merging:pe=>({unmerge:st=>{const St=wb(st);return St.each(Ut=>lt(st,"scope",Ut)),()=>{const Ut=pe.cell({element:st,colspan:1,rowspan:1});return Es(Ut,"width"),Es(st,"width"),St.each(un=>lt(Ut,"scope",un)),Ut}},merge:st=>{const St=()=>{const Ut=Ql(j(st,wb));if(Ut.length===0)return C.none();{const un=Ut[0],Tn=["row","col"];return $(Ut,ur=>ur!==un&&z(Tn,ur))?C.none():C.from(un)}};return Es(st[0],"width"),St().fold(()=>at(st[0],"scope"),Ut=>lt(st[0],"scope",Ut+"group")),v(st[0])}})},KO=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],ew=(pe,Ce)=>{const Ye=pe.property().name(Ce);return z(["ol","ul"],Ye)},Q0=(pe,Ce)=>{const Ye=pe.property().name(Ce);return z(KO,Ye)},Nc=(pe,Ce)=>z(["br","img","hr","input"],pe.property().name(Ce)),vg=ug(),qr=pe=>Q0(vg,pe),N=pe=>ew(vg,pe),G=pe=>Nc(vg,pe),fe=pe=>{const Ce=vt("br"),Ye=$n=>se($n,ur=>Ce(ur)||gn(ur)&&qf(ur).trim().length===0),st=$n=>qt($n)==="li"||Aa($n,N).isSome(),St=$n=>Wn($n).map(ur=>qr(ur)?!0:G(ur)?qt(ur)!=="img":!1).getOr(!1),Ut=$n=>Ax($n).bind(ur=>{const Nr=St(ur);return Sr(ur).map(Ro=>Nr===!0||st(Ro)||Ce(ur)||qr(Ro)&&!vn($n,Ro)?[]:[Pt.fromTag("br")])}).getOr([]),Tn=(()=>{const $n=he(pe,ur=>{const Nr=Kn(ur);return Ye(Nr)?[]:Nr.concat(Ut(ur))});return $n.length===0?[Pt.fromTag("br")]:$n})();go(pe[0]),So(pe[0],Tn)},Ae=pe=>Kg(pe,!0),Qe=pe=>{bf(pe).length===0&&li(pe)},et=(pe,Ce)=>({grid:pe,cursor:Ce}),ut=pe=>Se(pe,Ce=>Se(Ce.cells,Ye=>{const st=Ye.element;return Nf(Ae(st),st)})),Tt=(pe,Ce,Ye)=>{var st,St;const Ut=Kl(pe).rows;return C.from((St=(st=Ut[Ce])===null||st===void 0?void 0:st.cells[Ye])===null||St===void 0?void 0:St.element).filter(Ae).orThunk(()=>ut(Ut))},Bt=(pe,Ce,Ye)=>{const st=Tt(pe,Ce,Ye);return et(pe,st)},rn=pe=>oe(pe,(Ye,st)=>$(Ye,Ut=>Ut.row===st.row)?Ye:Ye.concat([st]),[]).sort((Ye,st)=>Ye.row-st.row),an=(pe,Ce,Ye,st)=>{const St=Ce[0].row,Ut=rn(Ce),un=K(Ut,(Tn,$n)=>({grid:Il(Tn.grid,St,$n.row+Tn.delta,Ye,st.getOrInit),delta:Tn.delta+1}),{grid:pe,delta:0}).grid;return Bt(un,St,Ce[0].column)},_n=(pe,Ce,Ye,st)=>{const St=rn(Ce),Ut=St[St.length-1],un=Ut.row+Ut.rowspan,Tn=K(St,($n,ur)=>Il($n,un,ur.row,Ye,st.getOrInit),pe);return Bt(Tn,un,Ce[0].column)},Dn=(pe,Ce,Ye,st)=>{const St=Ce.details,Ut=qh(St),un=Ut[0].column,Tn=K(Ut,($n,ur)=>({grid:$1($n.grid,un,ur.column+$n.delta,Ye,st.getOrInit),delta:$n.delta+1}),{grid:pe,delta:0}).grid;return Bt(Tn,St[0].row,un)},Cn=(pe,Ce,Ye,st)=>{const St=Ce.details,Ut=St[St.length-1],un=Ut.column+Ut.colspan,Tn=qh(St),$n=K(Tn,(ur,Nr)=>$1(ur,un,Nr.column,Ye,st.getOrInit),pe);return Bt($n,St[0].row,un)},Jn=(pe,Ce,Ye,st)=>{const St=qh(Ce),Ut=j(St,Tn=>Tn.column),un=xb(pe,Ut,!0,Ye,st.replaceOrInit);return Bt(un,Ce[0].row,Ce[0].column)},lr=(pe,Ce,Ye,st)=>{const St=j0(pe,Ce,Ye,st.replaceOrInit);return Bt(St,Ce[0].row,Ce[0].column)},Ar=(pe,Ce,Ye,st)=>{const St=qh(Ce),Ut=j(St,Tn=>Tn.column),un=xb(pe,Ut,!1,Ye,st.replaceOrInit);return Bt(un,Ce[0].row,Ce[0].column)},Or=(pe,Ce,Ye,st)=>{const St=j0(pe,Ce,Ye,st.replaceOrInit);return Bt(St,Ce[0].row,Ce[0].column)},jr=(pe,Ce)=>(Ye,st,St,Ut,un)=>{const Tn=rn(st),$n=j(Tn,Nr=>Nr.row),ur=sy(Ye,$n,pe,Ce,St,Ut.replaceOrInit,un);return Bt(ur,st[0].row,st[0].column)},Jr=jr("thead",!0),uo=jr("tbody",!1),ro=jr("tfoot",!1),Po=(pe,Ce,Ye,st)=>{const St=qh(Ce.details),Ut=V1(pe,j(St,Tn=>Tn.column)),un=Ut.length>0?Ut[0].cells.length-1:0;return Bt(Ut,St[0].row,Math.min(St[0].column,un))},gi=(pe,Ce,Ye,st)=>{const St=rn(Ce),Ut=Ux(pe,St[0].row,St[St.length-1].row),un=Math.max(Kl(Ut).rows.length-1,0);return Bt(Ut,Math.min(Ce[0].row,un),Ce[0].column)},ni=(pe,Ce,Ye,st)=>{const St=Ce.cells;fe(St);const Ut=_S(pe,Ce.bounds,Ye,st.merge(St));return et(Ut,C.from(St[0]))},Ti=(pe,Ce,Ye,st)=>{const Ut=K(Ce,(un,Tn)=>F1(un,Tn,Ye,st.unmerge(Tn)),pe);return et(Ut,C.from(Ce[0]))},vi=(pe,Ce,Ye,st)=>{const Ut=(($n,ur)=>{const Nr=Xi.fromTable($n);return D1(Nr,ur,!0)})(Ce.clipboard,Ce.generators),un=hr(Ce.row,Ce.column);return Ra(un,pe,Ut,Ce.generators,Ye).fold(()=>et(pe,C.some(Ce.element)),$n=>Bt($n,Ce.row,Ce.column))},na=(pe,Ce,Ye)=>{const st=ep(pe,Ye.section),St=Xi.generate(st);return D1(St,Ce,!0)},Ji=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[0].column,un=St[Ce.cells[0].row],Tn=na(Ce.clipboard,Ce.generators,un),$n=yd(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ce.cells[0].row,Ce.cells[0].column)},La=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[Ce.cells.length-1].column+Ce.cells[Ce.cells.length-1].colspan,un=St[Ce.cells[0].row],Tn=na(Ce.clipboard,Ce.generators,un),$n=yd(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ce.cells[0].row,Ut)},ca=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[0].row,un=St[Ut],Tn=na(Ce.clipboard,Ce.generators,un),$n=Zh(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ce.cells[0].row,Ce.cells[0].column)},Zi=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[Ce.cells.length-1].row+Ce.cells[Ce.cells.length-1].rowspan,un=St[Ce.cells[0].row],Tn=na(Ce.clipboard,Ce.generators,un),$n=Zh(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ut,Ce.cells[0].column)},Bs=(pe,Ce)=>{const Ye=Xi.fromTable(pe);return Vp(Ye,Ce).bind(St=>{const Ut=St[St.length-1],un=St[0].column,Tn=Ut.column+Ut.colspan,$n=me(j(Ye.all,ur=>W(ur.cells,Nr=>Nr.column>=un&&Nr.column{const Ye=Xi.fromTable(pe);return Vp(Ye,Ce).bind(gb).getOr("")},Vl=(pe,Ce)=>{const Ye=Xi.fromTable(pe);return Vp(Ye,Ce).bind(St=>{const Ut=St[St.length-1],un=St[0].row,Tn=Ut.row+Ut.rowspan,$n=Ye.all.slice(un,Tn);return Fx($n)}).getOr("")},ka=(pe,Ce,Ye,st)=>Lm(pe,Ce,Ye,st.sizing),zs=(pe,Ce,Ye,st)=>J_(pe,Ce,Ye,st.sizing,st.resize),gs=(pe,Ce)=>$(Ce,Ye=>Ye.column===0&&Ye.isLocked),rc=(pe,Ce)=>$(Ce,Ye=>Ye.column+Ye.colspan>=pe.grid.columns&&Ye.isLocked),aa=(pe,Ce)=>{const Ye=Xc(pe),st=qh(Ce);return oe(st,(St,Ut)=>{const Tn=Ye[Ut.column].map(os).getOr(0);return St+Tn},0)},Fs=pe=>(Ce,Ye)=>Vp(Ce,Ye).filter(st=>!(pe?gs:rc)(Ce,st)).map(st=>({details:st,pixelDelta:aa(Ce,st)})),$c=(pe,Ce)=>nh(pe,Ce).map(Ye=>({details:Ye,pixelDelta:-aa(pe,Ye)})),xc=pe=>(Ce,Ye)=>dp(Ce,Ye).filter(st=>!(pe?gs:rc)(Ce,st.cells)),xu=bc.transform("th"),qu=bc.transform("td"),Vc=Cf(an,Vp,u,u,bc.modification),pl=Cf(_n,Vp,u,u,bc.modification),Uc=Cf(Dn,Fs(!0),zs,u,bc.modification),_u=Cf(Cn,Fs(!1),zs,u,bc.modification),uf=Cf(Po,$c,zs,Qe,bc.modification),ff=Cf(gi,Vp,u,Qe,bc.modification),jc=Cf(Jn,nh,u,u,xu),is=Cf(Ar,nh,u,u,qu),Vs=Cf(Jr,nh,u,u,xu),Ac=Cf(uo,nh,u,u,qu),Bl=Cf(ro,nh,u,u,qu),Uo=Cf(lr,nh,u,u,xu),ql=Cf(Or,nh,u,u,qu),Xs=Cf(ni,iy,ka,u,bc.merging),ac=Cf(Ti,qO,ka,u,bc.merging),Mc=Cf(vi,mg,ka,u,bc.modification),Mh=Cf(Ji,xc(!0),u,u,bc.modification),il=Cf(La,xc(!1),u,u,bc.modification),Im=Cf(ca,dp,u,u,bc.modification),ah=Cf(Zi,dp,u,u,bc.modification),Bu=Bs,Hp=Ja,dc=Vl,Jf=(pe,Ce)=>pe.dispatch("NewRow",{node:Ce}),yg=(pe,Ce)=>pe.dispatch("NewCell",{node:Ce}),Dm=(pe,Ce,Ye)=>{pe.dispatch("TableModified",{...Ye,table:Ce})},H1=(pe,Ce,Ye,st,St)=>{pe.dispatch("TableSelectionChange",{cells:Ce,start:Ye,finish:st,otherCells:St})},Wx=pe=>{pe.dispatch("TableSelectionClear")},Ec=(pe,Ce,Ye,st,St)=>{pe.dispatch("ObjectResizeStart",{target:Ce,width:Ye,height:st,origin:St})},Qc=(pe,Ce,Ye,st,St)=>{pe.dispatch("ObjectResized",{target:Ce,width:Ye,height:st,origin:St})},Hc={structure:!1,style:!0},_s={structure:!0,style:!1},Jc={structure:!0,style:!0},Pc=(pe,Ce)=>Xg(pe)?Ls.percentageSize(Ce):Gg(pe)?Ls.pixelSize(Ce):Ls.getTableSize(Ce),Z1=(pe,Ce,Ye)=>{const st=tu=>qt(S1(tu))==="table",St=tu=>!st(pe)||pg(tu).rows>1,Ut=tu=>!st(pe)||pg(tu).columns>1,un=C_(pe),Tn=Yf(pe)?u:dg,$n=tu=>{switch(A_(pe)){case"section":return Th.section();case"sectionCells":return Th.sectionCells();case"cells":return Th.cells();default:return Th.getTableSectionType(tu,"section")}},ur=(tu,t1)=>t1.cursor.fold(()=>{const Tw=bf(tu);return ye(Tw).filter(ao).map(vp=>{Ye.clearSelectedCells(tu.dom);const xa=pe.dom.createRng();return xa.selectNode(vp.dom),pe.selection.setRng(xa),lt(vp,"data-mce-selected","1"),xa})},Tw=>{const vp=su(Tw),xa=pe.dom.createRng();return xa.setStart(vp.element.dom,vp.offset),xa.setEnd(vp.element.dom,vp.offset),pe.selection.setRng(xa),Ye.clearSelectedCells(tu.dom),C.some(xa)}),Nr=(tu,t1,Tw,vp)=>(xa,h5,p5=!1)=>{zd(xa);const z3=Pt.fromDom(pe.getDoc()),g6=kf(Tw,z3,un),qb={sizing:Pc(pe,xa),resize:Yf(pe)?E1():z0(),section:$n(xa)};return t1(xa)?tu(xa,h5,g6,qb).bind(hv=>{Ce.refresh(xa.dom),U(hv.newRows,Cw=>{Jf(pe,Cw.dom)}),U(hv.newCells,Cw=>{yg(pe,Cw.dom)});const v6=ur(xa,hv);return ao(xa)&&(zd(xa),p5||Dm(pe,xa.dom,vp)),v6.map(Cw=>({rng:Cw,effect:vp}))}):C.none()},Ro=Nr(ff,St,u,_s),ai=Nr(uf,Ut,u,_s),Ko=Nr(Vc,E,u,_s),Qo=Nr(pl,E,u,_s),_i=Nr(Uc,E,Tn,_s),To=Nr(_u,E,Tn,_s),Zo=Nr(Xs,E,u,_s),Yi=Nr(ac,E,u,_s),ri=Nr(Mh,E,u,_s),Ms=Nr(il,E,u,_s),al=Nr(Im,E,u,_s),Gs=Nr(ah,E,u,_s),td=Nr(Mc,E,u,Jc),zu=Nr(Uo,E,u,_s),e1=Nr(ql,E,u,_s),Ay=Nr(jc,E,u,_s),My=Nr(is,E,u,_s),Zs=Nr(Vs,E,u,_s),Rh=Nr(Ac,E,u,_s),Lh=Nr(Bl,E,u,_s);return{deleteRow:Ro,deleteColumn:ai,insertRowsBefore:Ko,insertRowsAfter:Qo,insertColumnsBefore:_i,insertColumnsAfter:To,mergeCells:Zo,unmergeCells:Yi,pasteColsBefore:ri,pasteColsAfter:Ms,pasteRowsBefore:al,pasteRowsAfter:Gs,pasteCells:td,makeCellsHeader:zu,unmakeCellsHeader:e1,makeColumnsHeader:Ay,unmakeColumnsHeader:My,makeRowsHeader:Zs,makeRowsBody:Rh,makeRowsFooter:Lh,getTableRowType:dc,getTableCellType:Hp,getTableColType:Bu}},uy=(pe,Ce,Ye)=>{const st=uc(pe,Ce,1);Ye===1||st<=1?at(pe,Ce):lt(pe,Ce,Math.min(Ye,st))},q1=(pe,Ce)=>Ye=>{const st=Ye.column+Ye.colspan-1,St=Ye.column;return st>=pe&&St{if(Xi.hasColumns(pe)){const st=W(Xi.justColumns(pe),q1(Ce,Ye)),St=j(st,un=>{const Tn=dr(un.element);return uy(Tn,"span",Ye-Ce),Tn}),Ut=Pt.fromTag("colgroup");return So(Ut,St),[Ut]}else return[]},W1=(pe,Ce,Ye)=>j(pe.all,st=>{const St=W(st.cells,q1(Ce,Ye)),Ut=j(St,Tn=>{const $n=dr(Tn.element);return uy($n,"colspan",Ye-Ce),$n}),un=Pt.fromTag("tr");return So(un,Ut),un}),Y1=(pe,Ce)=>{const Ye=Xi.fromTable(pe);return nh(Ye,Ce).map(St=>{const Ut=St[St.length-1],un=St[0].column,Tn=Ut.column+Ut.colspan,$n=H0(Ye,un,Tn),ur=W1(Ye,un,Tn);return[...$n,...ur]})},X1=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe);return Vp(st,Ce).bind(Ut=>{const un=D1(st,Ye,!1),$n=Kl(un).rows.slice(Ut[0].row,Ut[Ut.length-1].row+Ut[Ut.length-1].rowspan),ur=he($n,Ro=>{const ai=W(Ro.cells,Ko=>!Ko.isLocked);return ai.length>0?[{...Ro,cells:ai}]:[]}),Nr=oy(ur);return Nf(Nr.length>0,Nr)}).map(Ut=>Em(Ut))},Zp=Rm.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),fy=(pe,Ce,Ye)=>{const st=Ye.substring(0,Ye.length-pe.length),St=parseFloat(st);return st===St.toString()?Ce(St):Zp.invalid(Ye)},Bm={...Zp,from:pe=>Cu(pe,"%")?fy("%",Zp.percent,pe):Cu(pe,"px")?fy("px",Zp.pixels,pe):Zp.invalid(pe)},Ob=(pe,Ce)=>j(pe,Ye=>Bm.from(Ye).fold(()=>Ye,St=>St/Ce*100+"%",St=>St+"%")),Wu=(pe,Ce,Ye)=>{const st=Ye/Ce;return j(pe,St=>Bm.from(St).fold(()=>St,un=>un*st+"px",un=>un/100*Ye+"px"))},Yx=(pe,Ce)=>{const Ye=pe.fold(()=>v(""),st=>{const St=st/Ce;return v(St+"px")},()=>{const st=100/Ce;return v(st+"%")});return Q(Ce,Ye)},G1=(pe,Ce,Ye)=>pe.fold(()=>Ce,st=>Wu(Ce,Ye,st),st=>Ob(Ce,Ye)),bd=(pe,Ce,Ye)=>{const st=Bm.from(Ye),St=se(pe,Ut=>Ut==="0px")?Yx(st,pe.length):G1(st,pe,Ce);return xd(St)},a0=(pe,Ce)=>pe.length===0?Ce:K(pe,(Ye,st)=>Bm.from(st).fold(v(0),_,_)+Ye,0),dy=(pe,Ce)=>{const Ye=Math.floor(pe);return{value:Ye+Ce,remainder:pe-Ye}},hp=(pe,Ce)=>Bm.from(pe).fold(v(pe),Ye=>Ye+Ce+"px",Ye=>Ye+Ce+"%"),xd=pe=>{if(pe.length===0)return pe;const Ce=K(pe,(st,St)=>{const Ut=Bm.from(St).fold(()=>({value:St,remainder:0}),un=>dy(un,"px"),un=>({value:un+"%",remainder:0}));return{output:[Ut.value].concat(st.output),remainder:st.remainder+Ut.remainder}},{output:[],remainder:0}),Ye=Ce.output;return Ye.slice(0,Ye.length-1).concat([hp(Ye[Ye.length-1],Math.round(Ce.remainder))])},bg=Bm.from,Sb=(pe,Ce,Ye)=>{U(Ce,st=>{const St=pe.slice(st.column,st.colspan+st.column),Ut=a0(St,Mp());Ss(st.element,"width",Ut+Ye)})},kb=(pe,Ce,Ye)=>{U(Ce,(st,St)=>{const Ut=a0([pe[St]],Mp());Ss(st.element,"width",Ut+Ye)})},Xx=(pe,Ce,Ye)=>{U(Ye,st=>{Es(st.element,"height")}),U(Ce,(st,St)=>{Ss(st.element,"height",pe[St])})},Z0=pe=>bg(pe).fold(v("px"),v("px"),v("%")),Tb=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe),St=st.all,Ut=Xi.justCells(st),un=Xi.justColumns(st);Ce.each(Tn=>{const $n=Z0(Tn),ur=js(pe),Nr=Ui(st,pe),Ro=bd(Nr,ur,Tn);Xi.hasColumns(st)?kb(Ro,un,$n):Sb(Ro,Ut,$n),Ss(pe,"width",Tn)}),Ye.each(Tn=>{const $n=Qf(pe),ur=ys(st,pe),Nr=bd(ur,$n,Tn);Xx(Nr,St,Ut),Ss(pe,"height",Tn)})},tw=Zr,hy=Mo,eu=$o,Eh=pe=>{at(pe,"width"),at(pe,"height")},K1=pe=>{const Ce=Pr(pe);Tb(pe,C.some(Ce),C.none()),Eh(pe)},xg=pe=>{const Ce=rr(pe);Tb(pe,C.some(Ce),C.none()),Eh(pe)},Cb=pe=>{const Ce=Dr(pe);Tb(pe,C.none(),C.some(Ce)),Eh(pe)},nw=pe=>{Es(pe,"width");const Ce=tf(pe),Ye=Ce.length>0?Ce:bf(pe);U(Ye,st=>{Es(st,"width"),Eh(st)}),Eh(pe)},Ab={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},_g=()=>Pt.fromTag("th"),J1=()=>Pt.fromTag("td"),py=()=>Pt.fromTag("col"),Gx=(pe,Ce,Ye,st)=>{const St=Pt.fromTag("tr");for(let Ut=0;Ut{const Ce=Pt.fromTag("colgroup");return Q(pe,()=>$r(Ce,py())),Ce},ev=(pe,Ce,Ye,st)=>Q(pe,St=>Gx(Ce,Ye,st,St)),e3=(pe,Ce,Ye,st,St,Ut=Ab)=>{const un=Pt.fromTag("table"),Tn=St!=="cells";$f(un,Ut.styles),yt(un,Ut.attributes),Ut.colGroups&&$r(un,Mb(Ce));const $n=Math.min(pe,Ye);if(Tn&&Ye>0){const Ko=Pt.fromTag("thead");$r(un,Ko);const _i=ev(Ye,Ce,St==="sectionCells"?$n:0,st);So(Ko,_i)}const ur=Pt.fromTag("tbody");$r(un,ur);const Nr=Tn?pe-$n:pe,ai=ev(Nr,Ce,Tn?0:Ye,st);return So(ur,ai),un},my=pe=>pe.dom.innerHTML,_d=pe=>{const Ce=Pt.fromTag("div"),Ye=Pt.fromDom(pe.dom.cloneNode(!0));return $r(Ce,Ye),my(Ce)},Kx=(pe,Ce)=>{pe.selection.select(Ce.dom,!0),pe.selection.collapse(!0)},Jx=(pe,Ce)=>{Ku(Ce,"td,th").each(A(Kx,pe))},e2=(pe,Ce)=>{U(ra(Ce,"tr"),Ye=>{Jf(pe,Ye.dom),U(ra(Ye,"th,td"),st=>{yg(pe,st.dom)})})},Eb=pe=>l(pe)&&pe.indexOf("%")!==-1,Wh=(pe,Ce,Ye,st,St)=>{const Ut=L0(pe),un={styles:Ut,attributes:Xf(pe),colGroups:Px(pe)};return pe.undoManager.ignore(()=>{const Tn=e3(Ye,Ce,St,st,A_(pe),un);lt(Tn,"data-mce-id","__mce");const $n=_d(Tn);pe.insertContent($n),pe.addVisual()}),Ku(S1(pe),'table[data-mce-id="__mce"]').map(Tn=>(Gg(pe)?xg(Tn):lp(pe)?nw(Tn):(Xg(pe)||Eb(Ut.width))&&K1(Tn),zd(Tn),at(Tn,"data-mce-id"),e2(pe,Tn),Jx(pe,Tn),Tn.dom)).getOrNull()},t2=(pe,Ce,Ye,st={})=>{const St=Ut=>a(Ut)&&Ut>0;if(St(Ce)&&St(Ye)){const Ut=st.headerRows||0,un=st.headerColumns||0;return Wh(pe,Ye,Ce,un,Ut)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var Pb=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const zm="x-tinymce/dom-table-",rw=zm+"rows",n2=zm+"columns",Fm=pe=>{const Ce=Pb.FakeClipboardItem(pe);Pb.write([Ce])},q0=pe=>{var Ce;const Ye=(Ce=Pb.read())!==null&&Ce!==void 0?Ce:[];return Se(Ye,st=>C.from(st.getType(pe)))},tv=pe=>{q0(pe).isSome()&&Pb.clear()},nv=pe=>{pe.fold(t3,Ce=>Fm({[rw]:Ce}))},rv=()=>q0(rw),t3=()=>tv(rw),ow=pe=>{pe.fold(aw,Ce=>Fm({[n2]:Ce}))},iw=()=>q0(n2),aw=()=>tv(n2),gy=pe=>jO(fp(pe),Tm(pe)).filter(Cm),W0=pe=>z_(fp(pe),Tm(pe)).filter(Cm),wg=(pe,Ce)=>{const Ye=Tm(pe),st=()=>gy(pe).each(To=>{Au(To,Ye).filter(x(Ye)).each(Zo=>{const Yi=Pt.fromText("");if(Fr(Zo,Yi),li(Zo),pe.dom.isEmpty(pe.getBody()))pe.setContent(""),pe.selection.setCursorLocation();else{const ri=pe.dom.createRng();ri.setStart(Yi.dom,0),ri.setEnd(Yi.dom,0),pe.selection.setRng(ri),pe.nodeChanged()}})}),St=To=>gy(pe).each(Zo=>{lp(pe)||Gg(pe)||Xg(pe)||Au(Zo,Ye).each(ri=>{To==="relative"&&!tw(ri)?K1(ri):To==="fixed"&&!hy(ri)?xg(ri):To==="responsive"&&!eu(ri)&&nw(ri),zd(ri),Dm(pe,ri.dom,_s)})}),Ut=To=>Au(To,Ye),un=To=>W0(pe).bind(Zo=>Ut(Zo).map(Yi=>To(Yi,Zo))),Tn=(To,Zo)=>{un(Yi=>{pe.formatter.toggle("tableclass",{value:Zo},Yi.dom),Dm(pe,Yi.dom,Hc)})},$n=(To,Zo)=>{un(Yi=>{const ri=wl(pe),al=se(ri,Gs=>pe.formatter.match("tablecellclass",{value:Zo},Gs.dom))?pe.formatter.remove:pe.formatter.apply;U(ri,Gs=>al("tablecellclass",{value:Zo},Gs.dom)),Dm(pe,Yi.dom,Hc)})},ur=()=>{gy(pe).each(To=>{Au(To,Ye).each(Zo=>{ma(Zo,"caption").fold(()=>{const Yi=Pt.fromTag("caption");$r(Yi,Pt.fromText("Caption")),Kr(Zo,Yi,0),pe.selection.setCursorLocation(Yi.dom,0)},Yi=>{vt("caption")(To)&&dn("td",Zo).each(ri=>pe.selection.setCursorLocation(ri.dom,0)),li(Yi)}),Dm(pe,Zo.dom,_s)})})},Nr=To=>{pe.focus()},Ro=(To,Zo=!1)=>un((Yi,ri)=>{const Ms=Dx(wl(pe),Yi,ri);To(Yi,Ms,Zo).each(Nr)}),ai=()=>un((To,Zo)=>{const Yi=Dx(wl(pe),To,Zo),ri=kf(u,Pt.fromDom(pe.getDoc()),C.none());return X1(To,Yi,ri)}),Ko=()=>un((To,Zo)=>{const Yi=Dx(wl(pe),To,Zo);return Y1(To,Yi)}),Qo=(To,Zo)=>Zo().each(Yi=>{const ri=j(Yi,Ms=>dr(Ms));un((Ms,al)=>{const Gs=Hv(Pt.fromDom(pe.getDoc())),td=t0(wl(pe),al,ri,Gs);To(Ms,td).each(Nr)})}),_i=To=>(Zo,Yi)=>Le(Yi,"type").each(ri=>{Ro(To(ri),Yi.no_events)});Ie({mceTableSplitCells:()=>Ro(Ce.unmergeCells),mceTableMergeCells:()=>Ro(Ce.mergeCells),mceTableInsertRowBefore:()=>Ro(Ce.insertRowsBefore),mceTableInsertRowAfter:()=>Ro(Ce.insertRowsAfter),mceTableInsertColBefore:()=>Ro(Ce.insertColumnsBefore),mceTableInsertColAfter:()=>Ro(Ce.insertColumnsAfter),mceTableDeleteCol:()=>Ro(Ce.deleteColumn),mceTableDeleteRow:()=>Ro(Ce.deleteRow),mceTableCutCol:()=>Ko().each(To=>{ow(To),Ro(Ce.deleteColumn)}),mceTableCutRow:()=>ai().each(To=>{nv(To),Ro(Ce.deleteRow)}),mceTableCopyCol:()=>Ko().each(To=>ow(To)),mceTableCopyRow:()=>ai().each(To=>nv(To)),mceTablePasteColBefore:()=>Qo(Ce.pasteColsBefore,iw),mceTablePasteColAfter:()=>Qo(Ce.pasteColsAfter,iw),mceTablePasteRowBefore:()=>Qo(Ce.pasteRowsBefore,rv),mceTablePasteRowAfter:()=>Qo(Ce.pasteRowsAfter,rv),mceTableDelete:st,mceTableCellToggleClass:$n,mceTableToggleClass:Tn,mceTableToggleCaption:ur,mceTableSizingMode:(To,Zo)=>St(Zo),mceTableCellType:_i(To=>To==="th"?Ce.makeCellsHeader:Ce.unmakeCellsHeader),mceTableColType:_i(To=>To==="th"?Ce.makeColumnsHeader:Ce.unmakeColumnsHeader),mceTableRowType:_i(To=>{switch(To){case"header":return Ce.makeRowsHeader;case"footer":return Ce.makeRowsFooter;default:return Ce.makeRowsBody}})},(To,Zo)=>pe.addCommand(Zo,To)),pe.addCommand("mceInsertTable",(To,Zo)=>{t2(pe,Zo.rows,Zo.columns,Zo.options)}),pe.addCommand("mceTableApplyCellStyle",(To,Zo)=>{const Yi=al=>"tablecell"+al.toLowerCase().replace("-","");if(!n(Zo))return;const ri=W(wl(pe),Cm);if(ri.length===0)return;const Ms=$e(Zo,(al,Gs)=>pe.formatter.has(Yi(Gs))&&l(al));Ze(Ms)||(Ie(Ms,(al,Gs)=>{const td=Yi(Gs);U(ri,zu=>{al===""?pe.formatter.remove(td,{value:null},zu.dom,!0):pe.formatter.apply(td,{value:al},zu.dom)})}),Ut(ri[0]).each(al=>Dm(pe,al.dom,Hc)))})},n3=(pe,Ce)=>{const Ye=Tm(pe),st=St=>z_(fp(pe)).bind(Ut=>Au(Ut,Ye).map(un=>{const Tn=Dx(wl(pe),un,Ut);return St(un,Tn)})).getOr("");Ie({mceTableRowType:()=>st(Ce.getTableRowType),mceTableCellType:()=>st(Ce.getTableCellType),mceTableColType:()=>st(Ce.getTableColType)},(St,Ut)=>pe.addQueryValueHandler(Ut,St))},vy=Rm.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),sw=(pe,Ce,Ye,st)=>pe.fold(Ce,Ye,st),pp=pe=>pe.fold(_,_,_),r2=vy.before,yy=vy.on,Rb=vy.after,wd={before:r2,on:yy,after:Rb,cata:sw,getStart:pp},s0={create:(pe,Ce)=>({selection:pe,kill:Ce})},Lb=(pe,Ce)=>{const Ye=pe.document.createRange();return Ye.selectNode(Ce.dom),Ye},l0=(pe,Ce)=>{const Ye=pe.document.createRange();return Y0(Ye,Ce),Ye},Y0=(pe,Ce)=>pe.selectNodeContents(Ce.dom),CS=(pe,Ce)=>{Ce.fold(Ye=>{pe.setStartBefore(Ye.dom)},(Ye,st)=>{pe.setStart(Ye.dom,st)},Ye=>{pe.setStartAfter(Ye.dom)})},r3=(pe,Ce)=>{Ce.fold(Ye=>{pe.setEndBefore(Ye.dom)},(Ye,st)=>{pe.setEnd(Ye.dom,st)},Ye=>{pe.setEndAfter(Ye.dom)})},o3=(pe,Ce,Ye)=>{const st=pe.document.createRange();return CS(st,Ce),r3(st,Ye),st},o2=(pe,Ce,Ye,st,St)=>{const Ut=pe.document.createRange();return Ut.setStart(Ce.dom,Ye),Ut.setEnd(st.dom,St),Ut},i2=pe=>({left:pe.left,top:pe.top,right:pe.right,bottom:pe.bottom,width:pe.width,height:pe.height}),AS=pe=>{const Ce=pe.getClientRects(),Ye=Ce.length>0?Ce[0]:pe.getBoundingClientRect();return Ye.width>0||Ye.height>0?C.some(Ye).map(i2):C.none()},Ib=Rm.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),lw=(pe,Ce,Ye)=>Ce(Pt.fromDom(Ye.startContainer),Ye.startOffset,Pt.fromDom(Ye.endContainer),Ye.endOffset),MS=(pe,Ce)=>Ce.match({domRange:Ye=>({ltr:v(Ye),rtl:C.none}),relative:(Ye,st)=>({ltr:Ep(()=>o3(pe,Ye,st)),rtl:Ep(()=>C.some(o3(pe,st,Ye)))}),exact:(Ye,st,St,Ut)=>({ltr:Ep(()=>o2(pe,Ye,st,St,Ut)),rtl:Ep(()=>C.some(o2(pe,St,Ut,Ye,st)))})}),cw=(pe,Ce)=>{const Ye=Ce.ltr();return Ye.collapsed?Ce.rtl().filter(St=>St.collapsed===!1).map(St=>Ib.rtl(Pt.fromDom(St.endContainer),St.endOffset,Pt.fromDom(St.startContainer),St.startOffset)).getOrThunk(()=>lw(pe,Ib.ltr,Ye)):lw(pe,Ib.ltr,Ye)},qp=(pe,Ce)=>{const Ye=MS(pe,Ce);return cw(pe,Ye)},ov=(pe,Ce)=>qp(pe,Ce).match({ltr:(st,St,Ut,un)=>{const Tn=pe.document.createRange();return Tn.setStart(st.dom,St),Tn.setEnd(Ut.dom,un),Tn},rtl:(st,St,Ut,un)=>{const Tn=pe.document.createRange();return Tn.setStart(Ut.dom,un),Tn.setEnd(st.dom,St),Tn}});Ib.ltr,Ib.rtl;const Nm={create:(pe,Ce,Ye,st)=>({start:pe,soffset:Ce,finish:Ye,foffset:st})},ES={create:(pe,Ce,Ye,st)=>({start:wd.on(pe,Ce),finish:wd.on(Ye,st)})},ET=(pe,Ce)=>{const Ye=ov(pe,Ce);return Nm.create(Pt.fromDom(Ye.startContainer),Ye.startOffset,Pt.fromDom(Ye.endContainer),Ye.endOffset)},a3=ES.create,zM=(pe,Ce,Ye,st,St,Ut,un)=>vn(Ye,St)&&st===Ut?C.none():qc(Ye,"td,th",Ce).bind(Tn=>qc(St,"td,th",Ce).bind($n=>by(pe,Ce,Tn,$n,un))),by=(pe,Ce,Ye,st,St)=>vn(Ye,st)?C.none():Xv(Ye,st,Ce).bind(Ut=>{const un=Ut.boxes.getOr([]);return un.length>1?(St(pe,un,Ut.start,Ut.finish),C.some(s0.create(C.some(a3(Ye,0,Ye,Rl(Ye))),!0))):C.none()}),ID=(pe,Ce,Ye,st,St)=>{const Ut=un=>(St.clearBeforeUpdate(Ye),St.selectRange(Ye,un.boxes,un.start,un.finish),un.boxes);return A1(st,pe,Ce,St.firstSelectedSelector,St.lastSelectedSelector).map(Ut)},a2=(pe,Ce)=>({item:pe,mode:Ce}),s3=(pe,Ce,Ye,st=s2)=>pe.property().parent(Ce).map(St=>a2(St,st)),s2=(pe,Ce,Ye,st=l2)=>Ye.sibling(pe,Ce).map(St=>a2(St,st)),l2=(pe,Ce,Ye,st=l2)=>{const St=pe.property().children(Ce);return Ye.first(St).map(un=>a2(un,st))},FM=[{current:s3,next:s2,fallback:C.none()},{current:s2,next:l2,fallback:C.some(s3)},{current:l2,next:l2,fallback:C.some(s2)}],PT=(pe,Ce,Ye,st,St=FM)=>Y(St,un=>un.current===Ye).bind(un=>un.current(pe,Ce,st,un.next).orThunk(()=>un.fallback.bind(Tn=>PT(pe,Ce,Tn,st)))),iv={left:()=>({sibling:(Ye,st)=>Ye.query().prevSibling(st),first:Ye=>Ye.length>0?C.some(Ye[Ye.length-1]):C.none()}),right:()=>({sibling:(Ye,st)=>Ye.query().nextSibling(st),first:Ye=>Ye.length>0?C.some(Ye[0]):C.none()})},PS=(pe,Ce,Ye,st,St,Ut)=>PT(pe,Ce,st,St).bind(Tn=>Ut(Tn.item)?C.none():Ye(Tn.item)?C.some(Tn.item):PS(pe,Tn.item,Ye,Tn.mode,St,Ut)),RS=(pe,Ce,Ye,st)=>PS(pe,Ce,Ye,s2,iv.left(),st),$M=(pe,Ce,Ye,st)=>PS(pe,Ce,Ye,s2,iv.right(),st),LS=pe=>Ce=>pe.property().children(Ce).length===0,RT=(pe,Ce,Ye)=>IT(pe,Ce,LS(pe),Ye),LT=(pe,Ce,Ye)=>c2(pe,Ce,LS(pe),Ye),IT=RS,c2=$M,c3=ug(),Db=(pe,Ce)=>RT(c3,pe,Ce),av=(pe,Ce)=>LT(c3,pe,Ce),fw=(pe,Ce,Ye)=>IT(c3,pe,Ce,Ye),u2=(pe,Ce,Ye)=>c2(c3,pe,Ce,Ye),VM=(pe,Ce,Ye)=>Aa(pe,Ce,Ye).isSome(),c0=Rm.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Wp=(pe,Ce,Ye)=>{const st=pe.getRect(Ce),St=pe.getRect(Ye);return St.right>st.left&&St.leftqc(pe,"tr"),Bb={...c0,verify:(pe,Ce,Ye,st,St,Ut,un)=>qc(st,"td,th",un).bind(Tn=>qc(Ce,"td,th",un).map($n=>vn(Tn,$n)?vn(st,Tn)&&Rl(Tn)===St?Ut($n):c0.none("in same cell"):$p(u3,[Tn,$n]).fold(()=>Wp(pe,$n,Tn)?c0.success():Ut($n),ur=>Ut($n)))).getOr(c0.none("default")),cata:(pe,Ce,Ye,st,St)=>pe.fold(Ce,Ye,st,St)},f2=(pe,Ce,Ye,st)=>({parent:pe,children:Ce,element:Ye,index:st}),d2=pe=>Sr(pe).bind(Ce=>{const Ye=Kn(Ce);return $d(Ye,pe).map(st=>f2(Ce,Ye,pe,st))}),$d=(pe,Ce)=>ee(pe,A(vn,Ce)),f3=vt("br"),zb=(pe,Ce,Ye)=>Ce(pe,Ye).bind(st=>gn(st)&&qf(st).trim().length===0?zb(st,Ce,Ye):C.some(st)),d3=(pe,Ce,Ye)=>Ye.traverse(Ce).orThunk(()=>zb(Ce,Ye.gather,pe)).map(Ye.relative),DT=(pe,Ce)=>_r(pe,Ce).filter(f3).orThunk(()=>_r(pe,Ce-1).filter(f3)),IS=(pe,Ce,Ye,st)=>DT(Ce,Ye).bind(St=>st.traverse(St).fold(()=>zb(St,st.gather,pe).map(st.relative),Ut=>d2(Ut).map(un=>wd.on(un.parent,un.index)))),h3=(pe,Ce,Ye,st)=>(f3(Ce)?d3(pe,Ce,st):IS(pe,Ce,Ye,st)).map(Ut=>({start:Ut,finish:Ut})),Af=pe=>Bb.cata(pe,Ce=>C.none(),()=>C.none(),Ce=>C.some(th(Ce,0)),Ce=>C.some(th(Ce,Rl(Ce)))),p3=(pe,Ce)=>({left:pe.left,top:pe.top+Ce,right:pe.right,bottom:pe.bottom+Ce}),Sg=(pe,Ce)=>({left:pe.left,top:pe.top-Ce,right:pe.right,bottom:pe.bottom-Ce}),DS=(pe,Ce,Ye)=>({left:pe.left+Ce,top:pe.top+Ye,right:pe.right+Ce,bottom:pe.bottom+Ye}),BS=pe=>pe.top,sv=pe=>pe.bottom,BT=(pe,Ce,Ye)=>Ye>=0&&Ye0?pe.getRangedRect(Ce,Ye-1,Ce,Ye):C.none(),xy=pe=>({left:pe.left,top:pe.top,right:pe.right,bottom:pe.bottom}),m3=(pe,Ce)=>C.some(pe.getRect(Ce)),g3=(pe,Ce,Ye)=>nn(Ce)?m3(pe,Ce).map(xy):gn(Ce)?BT(pe,Ce,Ye).map(xy):C.none(),zS=(pe,Ce)=>nn(Ce)?m3(pe,Ce).map(xy):gn(Ce)?pe.getRangedRect(Ce,0,Ce,Rl(Ce)).map(xy):C.none(),Fb=5,h2=100,Od=Rm.generate([{none:[]},{retry:["caret"]}]),zT=(pe,Ce)=>pe.leftCe.right,FS=(pe,Ce,Ye)=>Xl(Ce,qr).fold(T,st=>zS(pe,st).exists(St=>zT(Ye,St))),NS=(pe,Ce,Ye,st,St)=>{const Ut=p3(St,Fb);return Math.abs(Ye.bottom-st.bottom)<1||Ye.top>St.bottom?Od.retry(Ut):Ye.top===St.bottom?Od.retry(p3(St,1)):FS(pe,Ce,St)?Od.retry(DS(Ut,Fb,0)):Od.none()},$S={point:BS,adjuster:(pe,Ce,Ye,st,St)=>{const Ut=Sg(St,Fb);return Math.abs(Ye.top-st.top)<1||Ye.bottompe.elementFromPoint(Ce,Ye).filter(st=>qt(st)==="table").isSome(),Yp=(pe,Ce,Ye,st,St)=>lv(pe,Ce,Ye,Ce.move(st,Fb),St),lv=(pe,Ce,Ye,st,St)=>St===0?C.some(st):$T(pe,st.left,Ce.point(st))?Yp(pe,Ce,Ye,st,St-1):pe.situsFromPoint(st.left,Ce.point(st)).bind(Ut=>Ut.start.fold(C.none,un=>zS(pe,un).bind(Tn=>Ce.adjuster(pe,un,Tn,Ye,st).fold(C.none,$n=>lv(pe,Ce,Ye,$n,St-1))).orThunk(()=>C.some(st)),C.none)),VT=(pe,Ce,Ye)=>pe.point(Ce)>Ye.getInnerHeight()?C.some(pe.point(Ce)-Ye.getInnerHeight()):pe.point(Ce)<0?C.some(-pe.point(Ce)):C.none(),Nb=(pe,Ce,Ye)=>{const st=pe.move(Ye,Fb),St=lv(Ce,pe,Ye,st,h2).getOr(st);return VT(pe,St,Ce).fold(()=>Ce.situsFromPoint(St.left,pe.point(St)),Ut=>(Ce.scrollBy(0,Ut),Ce.situsFromPoint(St.left,pe.point(St)-Ut)))},sh={tryUp:A(Nb,$S),tryDown:A(Nb,NT),getJumpSize:v(Fb)},mp=20,lh=(pe,Ce,Ye)=>pe.getSelection().bind(st=>h3(Ce,st.finish,st.foffset,Ye).fold(()=>C.some(th(st.finish,st.foffset)),St=>{const Ut=pe.fromSitus(St),un=Bb.verify(pe,st.finish,st.foffset,Ut.finish,Ut.foffset,Ye.failure,Ce);return Af(un)})),Xp=(pe,Ce,Ye,st,St,Ut)=>Ut===0?C.none():$b(pe,Ce,Ye,st,St).bind(un=>{const Tn=pe.fromSitus(un),$n=Bb.verify(pe,Ye,st,Tn.finish,Tn.foffset,St.failure,Ce);return Bb.cata($n,()=>C.none(),()=>C.some(un),ur=>vn(Ye,ur)&&st===0?v3(pe,Ye,st,Sg,St):Xp(pe,Ce,ur,0,St,Ut-1),ur=>vn(Ye,ur)&&st===Rl(ur)?v3(pe,Ye,st,p3,St):Xp(pe,Ce,ur,Rl(ur),St,Ut-1))}),v3=(pe,Ce,Ye,st,St)=>g3(pe,Ce,Ye).bind(Ut=>Gp(pe,St,st(Ut,sh.getJumpSize()))),Gp=(pe,Ce,Ye)=>{const st=np().browser;return st.isChromium()||st.isSafari()||st.isFirefox()?Ce.retry(pe,Ye):C.none()},$b=(pe,Ce,Ye,st,St)=>g3(pe,Ye,st).bind(Ut=>Gp(pe,St,Ut)),jM=(pe,Ce,Ye)=>lh(pe,Ce,Ye).bind(st=>Xp(pe,Ce,st.element,st.offset,Ye,mp).map(pe.fromSitus)),UT=(pe,Ce)=>VM(pe,Ye=>Sr(Ye).exists(st=>vn(st,Ce))),QM=(pe,Ce,Ye,st,St)=>qc(st,"td,th",Ce).bind(Ut=>qc(Ut,"table",Ce).bind(un=>UT(St,un)?jM(pe,Ce,Ye).bind(Tn=>qc(Tn.finish,"td,th",Ce).map($n=>({start:Ut,finish:$n,range:Tn}))):C.none())),jT=(pe,Ce,Ye,st,St,Ut)=>Ut(st,Ce).orThunk(()=>QM(pe,Ce,Ye,st,St).map(un=>{const Tn=un.range;return s0.create(C.some(a3(Tn.start,Tn.soffset,Tn.finish,Tn.foffset)),!0)})),QT=(pe,Ce)=>qc(pe,"tr",Ce).bind(Ye=>qc(Ye,"table",Ce).bind(st=>{const St=ra(st,"tr");return vn(Ye,St[0])?fw(st,Ut=>Ax(Ut).isSome(),Ce).map(Ut=>{const un=Rl(Ut);return s0.create(C.some(a3(Ut,un,Ut,un)),!0)}):C.none()})),VS=(pe,Ce)=>qc(pe,"tr",Ce).bind(Ye=>qc(Ye,"table",Ce).bind(st=>{const St=ra(st,"tr");return vn(Ye,St[St.length-1])?u2(st,Ut=>eh(Ut).isSome(),Ce).map(Ut=>s0.create(C.some(a3(Ut,0,Ut,0)),!0)):C.none()})),US=(pe,Ce,Ye,st,St,Ut,un)=>QM(pe,Ye,st,St,Ut).bind(Tn=>by(Ce,Ye,Tn.start,Tn.finish,un)),ed=pe=>{let Ce=pe;return{get:()=>Ce,set:St=>{Ce=St}}},jS=pe=>{const Ce=ed(C.none()),Ye=()=>Ce.get().each(pe);return{clear:()=>{Ye(),Ce.set(C.none())},isSet:()=>Ce.get().isSome(),get:()=>Ce.get(),set:Tn=>{Ye(),Ce.set(C.some(Tn))}}},_y=()=>{const pe=jS(u);return{...pe,on:Ye=>pe.get().each(Ye)}},p2=(pe,Ce)=>qc(pe,"td,th",Ce),QS=pe=>ar(pe).exists(Kg),y3=(pe,Ce,Ye,st)=>{const St=_y(),Ut=St.clear,un=Nr=>{St.on(Ro=>{st.clearBeforeUpdate(Ce),p2(Nr.target,Ye).each(ai=>{Xv(Ro,ai,Ye).each(Ko=>{const Qo=Ko.boxes.getOr([]);if(Qo.length===1){const _i=Qo[0],To=M_(_i)==="false",Zo=Yd(zp(Nr.target),_i,vn);To&&Zo&&(st.selectRange(Ce,Qo,_i,_i),pe.selectContents(_i))}else Qo.length>1&&(st.selectRange(Ce,Qo,Ko.start,Ko.finish),pe.selectContents(ai))})})})};return{clearstate:Ut,mousedown:Nr=>{st.clear(Ce),p2(Nr.target,Ye).filter(QS).each(St.set)},mouseover:Nr=>{un(Nr)},mouseup:Nr=>{un(Nr),Ut()}}},dw={traverse:Wn,gather:av,relative:wd.before,retry:sh.tryDown,failure:Bb.failedDown},HS={traverse:ir,gather:Db,relative:wd.before,retry:sh.tryUp,failure:Bb.failedUp},m2=pe=>Ce=>Ce===pe,ZS=m2(38),X0=m2(40),Vb=pe=>pe>=37&&pe<=40,HT={isBackward:m2(37),isForward:m2(39)},cv={isBackward:m2(39),isForward:m2(37)},Kp=pe=>{const Ce=pe!==void 0?pe.dom:document,Ye=Ce.body.scrollLeft||Ce.documentElement.scrollLeft,st=Ce.body.scrollTop||Ce.documentElement.scrollTop;return Gc(Ye,st)},ZT=(pe,Ce,Ye)=>{const St=(Ye!==void 0?Ye.dom:document).defaultView;St&&St.scrollBy(pe,Ce)},G0=Rm.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Ub=pe=>G0.exact(pe.start,pe.soffset,pe.finish,pe.foffset),qS=pe=>pe.match({domRange:Ce=>Pt.fromDom(Ce.startContainer),relative:(Ce,Ye)=>wd.getStart(Ce),exact:(Ce,Ye,st,St)=>Ce}),b3=G0.domRange,qT=G0.relative,HM=G0.exact,ZM=pe=>{const Ce=qS(pe);return xr(Ce)},WT=Nm.create,wy={domRange:b3,relative:qT,exact:HM,exactFromRange:Ub,getWin:ZM,range:WT},g2=(pe,Ce,Ye)=>{var st,St;return C.from((St=(st=pe.dom).caretPositionFromPoint)===null||St===void 0?void 0:St.call(st,Ce,Ye)).bind(Ut=>{if(Ut.offsetNode===null)return C.none();const un=pe.dom.createRange();return un.setStart(Ut.offsetNode,Ut.offset),un.collapse(),C.some(un)})},hw=(pe,Ce,Ye)=>{var st,St;return C.from((St=(st=pe.dom).caretRangeFromPoint)===null||St===void 0?void 0:St.call(st,Ce,Ye))},qM=(()=>document.caretPositionFromPoint?g2:document.caretRangeFromPoint?hw:C.none)(),WM=(pe,Ce,Ye)=>{const st=Pt.fromDom(pe.document);return qM(st,Ce,Ye).map(St=>Nm.create(Pt.fromDom(St.startContainer),St.startOffset,Pt.fromDom(St.endContainer),St.endOffset))},v2=(pe,Ce)=>{const Ye=qt(pe);return Ye==="input"?wd.after(pe):z(["br","img"],Ye)?Ce===0?wd.before(pe):wd.after(pe):wd.on(pe,Ce)},WS=(pe,Ce)=>{const Ye=pe.fold(wd.before,v2,wd.after),st=Ce.fold(wd.before,v2,wd.after);return wy.relative(Ye,st)},x3=(pe,Ce,Ye,st)=>{const St=v2(pe,Ce),Ut=v2(Ye,st);return wy.relative(St,Ut)},YS=(pe,Ce,Ye,st)=>{const Ut=En(pe).dom.createRange();return Ut.setStart(pe.dom,Ce),Ut.setEnd(Ye.dom,st),Ut},XS=(pe,Ce,Ye,st)=>{const St=YS(pe,Ce,Ye,st),Ut=vn(pe,Ye)&&Ce===st;return St.collapsed&&!Ut},y2=pe=>C.from(pe.getSelection()),GS=(pe,Ce)=>{y2(pe).each(Ye=>{Ye.removeAllRanges(),Ye.addRange(Ce)})},b2=(pe,Ce,Ye,st,St)=>{const Ut=o2(pe,Ce,Ye,st,St);GS(pe,Ut)},KS=(pe,Ce,Ye,st,St,Ut)=>{Ce.collapse(Ye.dom,st),Ce.extend(St.dom,Ut)},hs=(pe,Ce)=>qp(pe,Ce).match({ltr:(Ye,st,St,Ut)=>{b2(pe,Ye,st,St,Ut)},rtl:(Ye,st,St,Ut)=>{y2(pe).each(un=>{if(un.setBaseAndExtent)un.setBaseAndExtent(Ye.dom,st,St.dom,Ut);else if(un.extend)try{KS(pe,un,Ye,st,St,Ut)}catch{b2(pe,St,Ut,Ye,st)}else b2(pe,St,Ut,Ye,st)})}}),K0=(pe,Ce,Ye,st,St)=>{const Ut=x3(Ce,Ye,st,St);hs(pe,Ut)},jb=(pe,Ce,Ye)=>{const st=WS(Ce,Ye);hs(pe,st)},pw=pe=>{if(pe.rangeCount>0){const Ce=pe.getRangeAt(0),Ye=pe.getRangeAt(pe.rangeCount-1);return C.some(Nm.create(Pt.fromDom(Ce.startContainer),Ce.startOffset,Pt.fromDom(Ye.endContainer),Ye.endOffset))}else return C.none()},JS=pe=>{if(pe.anchorNode===null||pe.focusNode===null)return pw(pe);{const Ce=Pt.fromDom(pe.anchorNode),Ye=Pt.fromDom(pe.focusNode);return XS(Ce,pe.anchorOffset,Ye,pe.focusOffset)?C.some(Nm.create(Ce,pe.anchorOffset,Ye,pe.focusOffset)):pw(pe)}},uv=(pe,Ce,Ye=!0)=>{const St=(Ye?l0:Lb)(pe,Ce);GS(pe,St)},e5=pe=>y2(pe).filter(Ce=>Ce.rangeCount>0).bind(JS),_3=pe=>e5(pe).map(Ce=>wy.exact(Ce.start,Ce.soffset,Ce.finish,Ce.foffset)),t5=(pe,Ce)=>{const Ye=ov(pe,Ce);return AS(Ye)},n5=(pe,Ce,Ye)=>WM(pe,Ce,Ye),Qb=pe=>{y2(pe).each(Ce=>Ce.removeAllRanges())},w3=pe=>({elementFromPoint:(To,Zo)=>Pt.fromPoint(Pt.fromDom(pe.document),To,Zo),getRect:To=>To.dom.getBoundingClientRect(),getRangedRect:(To,Zo,Yi,ri)=>{const Ms=wy.exact(To,Zo,Yi,ri);return t5(pe,Ms)},getSelection:()=>_3(pe).map(To=>ET(pe,To)),fromSitus:To=>{const Zo=wy.relative(To.start,To.finish);return ET(pe,Zo)},situsFromPoint:(To,Zo)=>n5(pe,To,Zo).map(Yi=>ES.create(Yi.start,Yi.soffset,Yi.finish,Yi.foffset)),clearSelection:()=>{Qb(pe)},collapseSelection:(To=!1)=>{_3(pe).each(Zo=>Zo.fold(Yi=>Yi.collapse(To),(Yi,ri)=>{const Ms=To?Yi:ri;jb(pe,Ms,Ms)},(Yi,ri,Ms,al)=>{const Gs=To?Yi:Ms,td=To?ri:al;K0(pe,Gs,td,Gs,td)}))},setSelection:To=>{K0(pe,To.start,To.soffset,To.finish,To.foffset)},setRelativeSelection:(To,Zo)=>{jb(pe,To,Zo)},selectNode:To=>{uv(pe,To,!1)},selectContents:To=>{uv(pe,To)},getInnerHeight:()=>pe.innerHeight,getScrollY:()=>Kp(Pt.fromDom(pe.document)).top,scrollBy:(To,Zo)=>{ZT(To,Zo,Pt.fromDom(pe.document))}}),Hb=(pe,Ce)=>({rows:pe,cols:Ce}),O3=(pe,Ce,Ye,st)=>{const St=w3(pe),Ut=y3(St,Ce,Ye,st);return{clearstate:Ut.clearstate,mousedown:Ut.mousedown,mouseover:Ut.mouseover,mouseup:Ut.mouseup}},YT=pe=>Xl(pe,_t).exists(Kg),x2=(pe,Ce)=>YT(pe)||YT(Ce),S3=(pe,Ce,Ye,st)=>{const St=w3(pe),Ut=()=>(st.clear(Ce),C.none());return{keydown:($n,ur,Nr,Ro,ai,Ko)=>{const Qo=$n.raw,_i=Qo.which,To=Qo.shiftKey===!0;return hb(Ce,st.selectedSelector).fold(()=>(Vb(_i)&&!To&&st.clearBeforeUpdate(Ce),Vb(_i)&&To&&!x2(ur,Ro)?C.none:X0(_i)&&To?A(US,St,Ce,Ye,dw,Ro,ur,st.selectRange):ZS(_i)&&To?A(US,St,Ce,Ye,HS,Ro,ur,st.selectRange):X0(_i)?A(jT,St,Ye,dw,Ro,ur,VS):ZS(_i)?A(jT,St,Ye,HS,Ro,ur,QT):C.none),Yi=>{const ri=Ms=>()=>Se(Ms,Gs=>ID(Gs.rows,Gs.cols,Ce,Yi,st)).fold(()=>$O(Ce,st.firstSelectedSelector,st.lastSelectedSelector).map(Gs=>{const td=X0(_i)||Ko.isForward(_i)?wd.after:wd.before;return St.setRelativeSelection(wd.on(Gs.first,0),td(Gs.table)),st.clear(Ce),s0.create(C.none(),!0)}),Gs=>C.some(s0.create(C.none(),!0)));return Vb(_i)&&To&&!x2(ur,Ro)?C.none:X0(_i)&&To?ri([Hb(1,0)]):ZS(_i)&&To?ri([Hb(-1,0)]):Ko.isBackward(_i)&&To?ri([Hb(0,-1),Hb(-1,0)]):Ko.isForward(_i)&&To?ri([Hb(0,1),Hb(1,0)]):Vb(_i)&&!To?Ut:C.none})()},keyup:($n,ur,Nr,Ro,ai)=>hb(Ce,st.selectedSelector).fold(()=>{const Ko=$n.raw,Qo=Ko.which;return Ko.shiftKey===!0&&Vb(Qo)&&x2(ur,Ro)?zM(Ce,Ye,ur,Nr,Ro,ai,st.selectRange):C.none()},C.none)}},YM=(pe,Ce,Ye,st)=>{const St=w3(pe);return(Ut,un)=>{st.clearBeforeUpdate(Ce),Xv(Ut,un,Ye).each(Tn=>{const $n=Tn.boxes.getOr([]);st.selectRange(Ce,$n,Tn.start,Tn.finish),St.selectContents(un),St.collapseSelection()})}},k3=(pe,Ce)=>{const Ye=Rt(pe,Ce);return Ye===void 0||Ye===""?[]:Ye.split(" ")},fv=(pe,Ce,Ye)=>{const St=k3(pe,Ce).concat([Ye]);return lt(pe,Ce,St.join(" ")),!0},XM=(pe,Ce,Ye)=>{const st=W(k3(pe,Ce),St=>St!==Ye);return st.length>0?lt(pe,Ce,st.join(" ")):at(pe,Ce),!1},mw=pe=>pe.dom.classList!==void 0,$m=pe=>k3(pe,"class"),Mf=(pe,Ce)=>fv(pe,"class",Ce),GM=(pe,Ce)=>XM(pe,"class",Ce),u0=(pe,Ce)=>{mw(pe)?pe.dom.classList.add(Ce):Mf(pe,Ce)},KM=pe=>{(mw(pe)?pe.dom.classList:$m(pe)).length===0&&at(pe,"class")},XT=(pe,Ce)=>{mw(pe)?pe.dom.classList.remove(Ce):GM(pe,Ce),KM(pe)},gw=(pe,Ce)=>mw(pe)&&pe.dom.classList.contains(Ce),_2=(pe,Ce)=>{U(Ce,Ye=>{XT(pe,Ye)})},GT=pe=>Ce=>{u0(Ce,pe)},KT=pe=>Ce=>{_2(Ce,pe)},JT={byClass:pe=>{const Ce=GT(pe.selected),Ye=KT([pe.selected,pe.lastSelected,pe.firstSelected]),st=Ut=>{const un=ra(Ut,pe.selectedSelector);U(un,Ye)};return{clearBeforeUpdate:st,clear:st,selectRange:(Ut,un,Tn,$n)=>{st(Ut),U(un,Ce),u0(Tn,pe.firstSelected),u0($n,pe.lastSelected)},selectedSelector:pe.selectedSelector,firstSelectedSelector:pe.firstSelectedSelector,lastSelectedSelector:pe.lastSelectedSelector}},byAttr:(pe,Ce,Ye)=>{const st=$n=>{at($n,pe.selected),at($n,pe.firstSelected),at($n,pe.lastSelected)},St=$n=>{lt($n,pe.selected,"1")},Ut=$n=>{un($n),Ye()},un=$n=>{const ur=ra($n,`${pe.selectedSelector},${pe.firstSelectedSelector},${pe.lastSelectedSelector}`);U(ur,st)};return{clearBeforeUpdate:un,clear:Ut,selectRange:($n,ur,Nr,Ro)=>{Ut($n),U(ur,St),lt(Nr,pe.firstSelected,"1"),lt(Ro,pe.lastSelected,"1"),Ce(ur,Nr,Ro)},selectedSelector:pe.selectedSelector,firstSelectedSelector:pe.firstSelectedSelector,lastSelectedSelector:pe.lastSelectedSelector}}},e6=(pe,Ce,Ye,st)=>{switch(pe.tag){case"none":return Ce();case"single":return st(pe.element);case"multiple":return Ye(pe.elements)}},hi=()=>({tag:"none"}),Ef=pe=>({tag:"multiple",elements:pe}),vw=pe=>({tag:"single",element:pe}),Pf=(pe,Ce,Ye)=>({get:()=>pd(pe(),Ye).fold(()=>Ce().fold(hi,vw),Ef)}),Vm=(pe,Ce)=>{const Ye=pe.slice(0,Ce[Ce.length-1].row+1),st=oy(Ye);return he(st,St=>{const Ut=St.cells.slice(0,Ce[Ce.length-1].column+1);return j(Ut,un=>un.element)})},r5=(pe,Ce)=>{const Ye=pe.slice(Ce[0].row+Ce[0].rowspan-1,pe.length),st=oy(Ye);return he(st,St=>{const Ut=St.cells.slice(Ce[0].column+Ce[0].colspan-1,St.cells.length);return j(Ut,un=>un.element)})},Zb=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe);return Vp(st,Ce).map(Ut=>{const un=D1(st,Ye,!1),{rows:Tn}=Kl(un),$n=Vm(Tn,Ut),ur=r5(Tn,Ut);return{upOrLeftCells:$n,downOrRightCells:ur}})},T3=(pe,Ce,Ye,st,St,Ut,un)=>({target:pe,x:Ce,y:Ye,stop:st,prevent:St,kill:Ut,raw:un}),Oy=pe=>{const Ce=Pt.fromDom(fr(pe).getOr(pe.target)),Ye=()=>pe.stopPropagation(),st=()=>pe.preventDefault(),St=h(st,Ye);return T3(Ce,pe.clientX,pe.clientY,Ye,st,St,pe)},yw=(pe,Ce)=>Ye=>{pe(Ye)&&Ce(Oy(Ye))},t6=(pe,Ce,Ye,st,St)=>{const Ut=yw(Ye,st);return pe.dom.addEventListener(Ce,Ut,St),{unbind:A(eE,pe,Ce,Ut,St)}},JM=(pe,Ce,Ye,st)=>t6(pe,Ce,Ye,st,!1),eE=(pe,Ce,Ye,st)=>{pe.dom.removeEventListener(Ce,Ye,st)},tE=E,Sy=(pe,Ce,Ye)=>JM(pe,Ce,tE,Ye),bw=Oy,xw=pe=>!gw(Pt.fromDom(pe.target),"ephox-snooker-resizer-bar"),C3=(pe,Ce)=>{const Ye=Pf(()=>Pt.fromDom(pe.getBody()),()=>z_(fp(pe),Tm(pe)),fg.selectedSelector),st=($n,ur,Nr)=>{Au(ur).each(ai=>{const Ko=j($n,Yi=>Yi.dom),Qo=C_(pe),_i=kf(u,Pt.fromDom(pe.getDoc()),Qo),To=wl(pe),Zo=Zb(ai,{selection:To},_i).map(Yi=>ze(Yi,ri=>j(ri,Ms=>Ms.dom))).getOrUndefined();H1(pe,Ko,ur.dom,Nr.dom,Zo)})},St=()=>Wx(pe),Ut=JT.byAttr(fg,st,St);return pe.on("init",$n=>{const ur=pe.getWin(),Nr=S1(pe),Ro=Tm(pe),ai=()=>{const Zs=pe.selection,Rh=Pt.fromDom(Zs.getStart()),Lh=Pt.fromDom(Zs.getEnd());$p(Au,[Rh,Lh]).fold(()=>Ut.clear(Nr),u)},Ko=O3(ur,Nr,Ro,Ut),Qo=S3(ur,Nr,Ro,Ut),_i=YM(ur,Nr,Ro,Ut),To=Zs=>Zs.raw.shiftKey===!0;pe.on("TableSelectorChange",Zs=>_i(Zs.start,Zs.finish));const Zo=(Zs,Rh)=>{To(Zs)&&(Rh.kill&&Zs.kill(),Rh.selection.each(Lh=>{const jm=wy.relative(Lh.start,Lh.finish),Qm=ov(ur,jm);pe.selection.setRng(Qm)}))},Yi=Zs=>{const Rh=bw(Zs);if(Rh.raw.shiftKey&&Vb(Rh.raw.which)){const Lh=pe.selection.getRng(),jm=Pt.fromDom(Lh.startContainer),Qm=Pt.fromDom(Lh.endContainer);Qo.keyup(Rh,jm,Lh.startOffset,Qm,Lh.endOffset).each(Za=>{Zo(Rh,Za)})}},ri=Zs=>{const Rh=bw(Zs);Ce.hide();const Lh=pe.selection.getRng(),jm=Pt.fromDom(Lh.startContainer),Qm=Pt.fromDom(Lh.endContainer),Za=rp(HT,cv)(Pt.fromDom(pe.selection.getStart()));Qo.keydown(Rh,jm,Lh.startOffset,Qm,Lh.endOffset,Za).each(tu=>{Zo(Rh,tu)}),Ce.show()},Ms=Zs=>Zs.button===0,al=Zs=>Zs.buttons===void 0?!0:(Zs.buttons&1)!==0,Gs=Zs=>{Ko.clearstate()},td=Zs=>{Ms(Zs)&&xw(Zs)&&Ko.mousedown(bw(Zs))},zu=Zs=>{al(Zs)&&xw(Zs)&&Ko.mouseover(bw(Zs))},e1=Zs=>{Ms(Zs)&&xw(Zs)&&Ko.mouseup(bw(Zs))},My=(()=>{const Zs=ed(Pt.fromDom(Nr)),Rh=ed(0);return{touchEnd:jm=>{const Qm=Pt.fromDom(jm.target);if(vt("td")(Qm)||vt("th")(Qm)){const Za=Zs.get(),tu=Rh.get();vn(Za,Qm)&&jm.timeStamp-tu<300&&(jm.preventDefault(),_i(Qm,Qm))}Zs.set(Qm),Rh.set(jm.timeStamp)}}})();pe.on("dragstart",Gs),pe.on("mousedown",td),pe.on("mouseover",zu),pe.on("mouseup",e1),pe.on("touchend",My.touchEnd),pe.on("keyup",Yi),pe.on("keydown",ri),pe.on("NodeChange",ai)}),pe.on("PreInit",()=>{pe.serializer.addTempAttr(fg.firstSelected),pe.serializer.addTempAttr(fg.lastSelected)}),{getSelectedCells:()=>e6(Ye.get(),v([]),$n=>j($n,ur=>ur.dom),$n=>[$n.dom]),clearSelectedCells:$n=>Ut.clear(Pt.fromDom($n))}},gp=pe=>{let Ce=[];return{bind:Ut=>{if(Ut===void 0)throw new Error("Event bind error: undefined handler");Ce.push(Ut)},unbind:Ut=>{Ce=W(Ce,un=>un!==Ut)},trigger:(...Ut)=>{const un={};U(pe,(Tn,$n)=>{un[Tn]=Ut[$n]}),U(Ce,Tn=>{Tn(un)})}}},J0=pe=>{const Ce=ze(pe,st=>({bind:st.bind,unbind:st.unbind})),Ye=ze(pe,st=>st.trigger);return{registry:Ce,trigger:Ye}},ky=(pe,Ce)=>{let Ye=null;const st=()=>{b(Ye)||(clearTimeout(Ye),Ye=null)};return{cancel:st,throttle:(...Ut)=>{st(),Ye=setTimeout(()=>{Ye=null,pe.apply(null,Ut)},Ce)}}},Ty=pe=>pe.slice(0).sort(),nE=(pe,Ce)=>{throw new Error("All required keys ("+Ty(pe).join(", ")+") were not specified. Specified keys were: "+Ty(Ce).join(", ")+".")},A3=pe=>{throw new Error("Unsupported keys for object: "+Ty(pe).join(", "))},M3=(pe,Ce)=>{if(!c(Ce))throw new Error("The "+pe+" fields must be an array. Was: "+Ce+".");U(Ce,Ye=>{if(!l(Ye))throw new Error("The value "+Ye+" in the "+pe+" fields was not a string.")})},rE=(pe,Ce)=>{throw new Error("All values need to be of type: "+Ce+". Keys ("+Ty(pe).join(", ")+") were not.")},oE=pe=>{const Ce=Ty(pe);Y(Ce,(st,St)=>St{throw new Error("The field: "+st+" occurs more than once in the combined fields: ["+Ce.join(", ")+"].")})},iE=(pe,Ce)=>aE(pe,Ce,{validate:p,label:"function"}),aE=(pe,Ce,Ye)=>{if(Ce.length===0)throw new Error("You must specify at least one required field.");return M3("required",Ce),oE(Ce),st=>{const St=Te(st);se(Ce,Tn=>z(St,Tn))||nE(Ce,St),pe(Ce,St);const un=W(Ce,Tn=>!Ye.validate(st[Tn],Tn));return un.length>0&&rE(un,Ye.label),st}},n6=(pe,Ce)=>{const Ye=W(Ce,st=>!z(pe,st));Ye.length>0&&A3(Ye)},E3=pe=>iE(n6,pe),sE=E3(["compare","extract","mutate","sink"]),P3=E3(["element","start","stop","destroy"]),Sd=E3(["forceDrop","drop","move","delayDrop"]),Um=()=>{let pe=C.none();const Ce=()=>{pe=C.none()},Ye=(Ut,un)=>{const Tn=pe.map($n=>Ut.compare($n,un));return pe=C.some(un),Tn},st=(Ut,un)=>{un.extract(Ut).each($n=>{Ye(un,$n).each(Nr=>{St.trigger.move(Nr)})})},St=J0({move:gp(["info"])});return{onEvent:st,reset:Ce,events:St.registry}},Jp=()=>{const pe=J0({move:gp(["info"])});return{onEvent:u,reset:u,events:pe.registry}},R3=()=>{const pe=Jp(),Ce=Um();let Ye=pe;return{on:()=>{Ye.reset(),Ye=Ce},off:()=>{Ye.reset(),Ye=pe},isOn:()=>Ye===Ce,onEvent:(Tn,$n)=>{Ye.onEvent(Tn,$n)},events:Ce.events}},L3=(pe,Ce,Ye)=>{let st=!1;const St=J0({start:gp([]),stop:gp([])}),Ut=R3(),un=()=>{Qo.stop(),Ut.isOn()&&(Ut.off(),St.trigger.stop())},Tn=ky(un,200),$n=To=>{Qo.start(To),Ut.on(),St.trigger.start()},ur=To=>{Tn.cancel(),Ut.onEvent(To,Ce)};Ut.events.move.bind(To=>{Ce.mutate(pe,To.info)});const Nr=()=>{st=!0},Ro=()=>{st=!1},ai=()=>st,Ko=To=>(...Zo)=>{st&&To.apply(null,Zo)},Qo=Ce.sink(Sd({forceDrop:un,drop:Ko(un),move:Ko(ur),delayDrop:Ko(Tn.throttle)}),Ye),_i=()=>{Qo.destroy()};return{element:Qo.element,go:$n,on:Nr,off:Ro,isActive:ai,destroy:_i,events:St.registry}},r6=pe=>{const Ce=pe.replace(/\./g,"-");return{resolve:st=>Ce+"-"+st}},o6=r6("ephox-dragster").resolve,i5=pe=>{const Ce={layerClass:o6("blocker"),...pe},Ye=Pt.fromTag("div");return lt(Ye,"role","presentation"),$f(Ye,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),u0(Ye,o6("blocker")),u0(Ye,Ce.layerClass),{element:v(Ye),destroy:()=>{li(Ye)}}};var I3=sE({compare:(pe,Ce)=>Gc(Ce.left-pe.left,Ce.top-pe.top),extract:pe=>C.some(Gc(pe.x,pe.y)),sink:(pe,Ce)=>{const Ye=i5(Ce),st=Sy(Ye.element(),"mousedown",pe.forceDrop),St=Sy(Ye.element(),"mouseup",pe.drop),Ut=Sy(Ye.element(),"mousemove",pe.move),un=Sy(Ye.element(),"mouseout",pe.delayDrop),Tn=()=>{Ye.destroy(),St.unbind(),Ut.unbind(),un.unbind(),st.unbind()},$n=Nr=>{$r(Nr,Ye.element())},ur=()=>{li(Ye.element())};return P3({element:Ye.element,start:$n,stop:ur,destroy:Tn})},mutate:(pe,Ce)=>{pe.mutate(Ce.left,Ce.top)}});const a5=(pe,Ce={})=>{var Ye;const st=(Ye=Ce.mode)!==null&&Ye!==void 0?Ye:I3;return L3(pe,st,Ce)},Ph=r6("ephox-snooker").resolve,s6=()=>{const pe=J0({drag:gp(["xDelta","yDelta"])});return{mutate:(Ye,st)=>{pe.trigger.drag(Ye,st)},events:pe.registry}},s5=()=>{const pe=J0({drag:gp(["xDelta","yDelta","target"])});let Ce=C.none();const Ye=s6();return Ye.events.drag.bind(Ut=>{Ce.each(un=>{pe.trigger.drag(Ut.xDelta,Ut.yDelta,un)})}),{assign:Ut=>{Ce=C.some(Ut)},get:()=>Ce,mutate:Ye.mutate,events:pe.registry}},_w=(pe,Ce,Ye,st,St)=>{const Ut=Pt.fromTag("div");return $f(Ut,{position:"absolute",left:Ce-st/2+"px",top:Ye+"px",height:St+"px",width:st+"px"}),yt(Ut,{"data-column":pe,role:"presentation"}),Ut},ww=(pe,Ce,Ye,st,St)=>{const Ut=Pt.fromTag("div");return $f(Ut,{position:"absolute",left:Ce+"px",top:Ye-St/2+"px",height:St+"px",width:st+"px"}),yt(Ut,{"data-row":pe,role:"presentation"}),Ut},D3=Ph("resizer-bar"),Ow=Ph("resizer-rows"),l6=Ph("resizer-cols"),c6=7,l5=(pe,Ce)=>he(pe.all,(Ye,st)=>Ce(Ye.element)?[st]:[]),c5=(pe,Ce)=>{const Ye=[];return Q(pe.grid.columns,st=>{Xi.getColumnAt(pe,st).map(Ut=>Ut.element).forall(Ce)&&Ye.push(st)}),W(Ye,st=>{const St=Xi.filterItems(pe,Ut=>Ut.column===st);return se(St,Ut=>Ce(Ut.element))})},dv=pe=>{const Ce=ra(pe.parent(),"."+D3);U(Ce,li)},u5=(pe,Ce,Ye)=>{const st=pe.origin();U(Ce,St=>{St.each(Ut=>{const un=Ye(st,Ut);u0(un,D3),$r(pe.parent(),un)})})},u6=(pe,Ce,Ye,st)=>{u5(pe,Ce,(St,Ut)=>{const un=_w(Ut.col,Ut.x-St.left,Ye.top-St.top,c6,st);return u0(un,l6),un})},uE=(pe,Ce,Ye,st)=>{u5(pe,Ce,(St,Ut)=>{const un=ww(Ut.row,Ye.left-St.left,Ut.y-St.top,st,c6);return u0(un,Ow),un})},fE=(pe,Ce,Ye,st,St)=>{const Ut=Dd(Ye),un=Ce.isResizable,Tn=st.length>0?_l.positions(st,Ye):[],$n=Tn.length>0?l5(pe,un):[],ur=W(Tn,(Ko,Qo)=>$($n,_i=>Qo===_i));uE(Ce,ur,Ut,os(Ye));const Nr=St.length>0?Mt.positions(St,Ye):[],Ro=Nr.length>0?c5(pe,un):[],ai=W(Nr,(Ko,Qo)=>$(Ro,_i=>Qo===_i));u6(Ce,ai,Ut,fd(Ye))},f6=(pe,Ce)=>{if(dv(pe),pe.isResizable(Ce)){const Ye=Xi.fromTable(Ce),st=yu(Ye),St=Xc(Ye);fE(Ye,pe,Ce,st,St)}},Yh=(pe,Ce)=>{const Ye=ra(pe.parent(),"."+D3);U(Ye,Ce)},ch=pe=>{Yh(pe,Ce=>{Ss(Ce,"display","none")})},w2=pe=>{Yh(pe,Ce=>{Ss(Ce,"display","block")})},FD=pe=>gw(pe,Ow),dE=pe=>gw(pe,l6),f5=Ph("resizer-bar-dragging"),as=pe=>{const Ce=s5(),Ye=a5(Ce,{});let st=C.none();const St=(Qo,_i)=>C.from(Rt(Qo,_i));Ce.events.drag.bind(Qo=>{St(Qo.target,"data-row").each(_i=>{const To=sd(Qo.target,"top");Ss(Qo.target,"top",To+Qo.yDelta+"px")}),St(Qo.target,"data-column").each(_i=>{const To=sd(Qo.target,"left");Ss(Qo.target,"left",To+Qo.xDelta+"px")})});const Ut=(Qo,_i)=>{const To=sd(Qo,_i),Zo=uc(Qo,"data-initial-"+_i,0);return To-Zo};Ye.events.stop.bind(()=>{Ce.get().each(Qo=>{st.each(_i=>{St(Qo,"data-row").each(To=>{const Zo=Ut(Qo,"top");at(Qo,"data-initial-top"),Ko.trigger.adjustHeight(_i,Zo,parseInt(To,10))}),St(Qo,"data-column").each(To=>{const Zo=Ut(Qo,"left");at(Qo,"data-initial-left"),Ko.trigger.adjustWidth(_i,Zo,parseInt(To,10))}),f6(pe,_i)})})});const un=(Qo,_i)=>{Ko.trigger.startAdjust(),Ce.assign(Qo),lt(Qo,"data-initial-"+_i,sd(Qo,_i)),u0(Qo,f5),Ss(Qo,"opacity","0.2"),Ye.go(pe.parent())},Tn=Sy(pe.parent(),"mousedown",Qo=>{FD(Qo.target)&&un(Qo.target,"top"),dE(Qo.target)&&un(Qo.target,"left")}),$n=Qo=>vn(Qo,pe.view()),ur=Qo=>qc(Qo,"table",$n).filter(Kg),Nr=Sy(pe.view(),"mouseover",Qo=>{ur(Qo.target).fold(()=>{ao(Qo.target)&&dv(pe)},_i=>{Ye.isActive()&&(st=C.some(_i),f6(pe,_i))})}),Ro=()=>{Tn.unbind(),Nr.unbind(),Ye.destroy(),dv(pe)},ai=Qo=>{f6(pe,Qo)},Ko=J0({adjustHeight:gp(["table","delta","row"]),adjustWidth:gp(["table","delta","column"]),startAdjust:gp([])});return{destroy:Ro,refresh:ai,on:Ye.on,off:Ye.off,hideBars:A(ch,pe),showBars:A(w2,pe),events:Ko.registry}},d6={create:(pe,Ce,Ye)=>{const st=_l,St=Mt,Ut=as(pe),un=J0({beforeResize:gp(["table","type"]),afterResize:gp(["table","type"]),startDrag:gp([])});return Ut.events.adjustHeight.bind(Tn=>{const $n=Tn.table;un.trigger.beforeResize($n,"row");const ur=st.delta(Tn.delta,$n);qx($n,ur,Tn.row),un.trigger.afterResize($n,"row")}),Ut.events.startAdjust.bind(Tn=>{un.trigger.startDrag()}),Ut.events.adjustWidth.bind(Tn=>{const $n=Tn.table;un.trigger.beforeResize($n,"col");const ur=St.delta(Tn.delta,$n),Nr=Ye($n);K_($n,ur,Tn.column,Ce,Nr),un.trigger.afterResize($n,"col")}),{on:Ut.on,off:Ut.off,refreshBars:Ut.refresh,hideBars:Ut.hideBars,showBars:Ut.showBars,destroy:Ut.destroy,events:un.registry}}},Sw={only:(pe,Ce)=>{const Ye=bn(pe)?Un(pe):pe;return{parent:v(Ye),view:v(pe),origin:v(Gc(0,0)),isResizable:Ce}},detached:(pe,Ce,Ye)=>{const st=()=>Dd(Ce);return{parent:v(Ce),view:v(pe),origin:st,isResizable:Ye}},body:(pe,Ce,Ye)=>({parent:v(Ce),view:v(pe),origin:v(Gc(0,0)),isResizable:Ye})},hE=()=>{const pe=Pt.fromTag("div");return $f(pe,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),$r(co(),pe),pe},pE=(pe,Ce)=>pe.inline?Sw.body(Pt.fromDom(pe.getBody()),hE(),Ce):Sw.only(Pt.fromDom(pe.getDoc()),Ce),mE=(pe,Ce)=>{pe.inline&&li(Ce.parent())},B3=pe=>y(pe)&&pe.nodeName==="TABLE",kw="bar-",p6=pe=>Rt(pe,"data-mce-resize")!=="false",VD=pe=>{const Ce=Xi.fromTable(pe);Xi.hasColumns(Ce)||U(bf(pe),Ye=>{const st=vf(Ye,"width");Ss(Ye,"width",st),at(Ye,"width")})},O2=pe=>pc(pe,"corner-"),d5=pe=>gm(pe,"corner-"),UD=pe=>{const Ce=_y(),Ye=_y(),st=_y();let St,Ut,un,Tn;const $n=Zo=>Pc(pe,Zo),ur=()=>Fl(pe)?z0():E1(),Nr=Zo=>pg(Zo).columns,Ro=Zo=>pg(Zo).rows,ai=(Zo,Yi,ri,Ms)=>{const al=d5(Yi),Gs=Cu(al,"e"),td=pc(al,"n");if(Ut===""&&K1(Zo),Tn===""&&Cb(Zo),ri!==St&&Ut!==""){Ss(Zo,"width",Ut);const zu=ur(),e1=$n(Zo),Ay=Fl(pe)||Gs?Nr(Zo)-1:0;K_(Zo,ri-St,Ay,zu,e1)}else if(zO(Ut)){const zu=parseFloat(Ut.replace("%","")),e1=ri*zu/St;Ss(Zo,"width",e1+"%")}if(bu(Ut)&&VD(Zo),Ms!==un&&Tn!==""){Ss(Zo,"height",Tn);const zu=td?0:Ro(Zo)-1;qx(Zo,Ms-un,zu)}},Ko=()=>{Ye.on(Zo=>{Zo.destroy()}),st.on(Zo=>{mE(pe,Zo)})};return pe.on("init",()=>{const Zo=pE(pe,p6);if(st.set(Zo),sp(pe)&&cp(pe)){const Yi=ur(),ri=d6.create(Zo,Yi,$n);ri.on(),ri.events.startDrag.bind(Ms=>{Ce.set(pe.selection.getRng())}),ri.events.beforeResize.bind(Ms=>{const al=Ms.table.dom;Ec(pe,al,I0(al),E_(al),kw+Ms.type)}),ri.events.afterResize.bind(Ms=>{const al=Ms.table,Gs=al.dom;zd(al),Ce.on(td=>{pe.selection.setRng(td),pe.focus()}),Qc(pe,Gs,I0(Gs),E_(Gs),kw+Ms.type),pe.undoManager.add()}),Ye.set(ri)}}),pe.on("ObjectResizeStart",Zo=>{const Yi=Zo.target;if(B3(Yi)){const ri=Pt.fromDom(Yi);U(pe.dom.select(".mce-clonedresizable"),Ms=>{pe.dom.addClass(Ms,"mce-"+ub(pe)+"-columns")}),!hy(ri)&&Gg(pe)?xg(ri):!tw(ri)&&Xg(pe)&&K1(ri),eu(ri)&&pc(Zo.origin,kw)&&K1(ri),St=Zo.width,Ut=lp(pe)?"":P_(pe,Yi).getOr(""),un=Zo.height,Tn=k1(pe,Yi).getOr("")}}),pe.on("ObjectResized",Zo=>{const Yi=Zo.target;if(B3(Yi)){const ri=Pt.fromDom(Yi),Ms=Zo.origin;O2(Ms)&&ai(ri,Ms,Zo.width,Zo.height),zd(ri),Dm(pe,ri.dom,Hc)}}),pe.on("SwitchMode",()=>{Ye.on(Zo=>{pe.mode.isReadOnly()?Zo.hideBars():Zo.showBars()})}),pe.on("dragstart dragend",Zo=>{Ye.on(Yi=>{Zo.type==="dragstart"?(Yi.hideBars(),Yi.off()):(Yi.on(),Yi.showBars())})}),pe.on("remove",()=>{Ko()}),{refresh:Zo=>{Ye.on(Yi=>Yi.refreshBars(Pt.fromDom(Zo)))},hide:()=>{Ye.on(Zo=>Zo.hideBars())},show:()=>{Ye.on(Zo=>Zo.showBars())}}},m6=pe=>{R0(pe);const Ce=UD(pe),Ye=C3(pe,Ce),st=Z1(pe,Ce,Ye);return wg(pe,st),n3(pe,st),M1(pe,st),{getSelectedCells:Ye.getSelectedCells,clearSelectedCells:Ye.clearSelectedCells}},gE=pe=>({table:m6(pe)});var ea=()=>{t.add("dom",gE)};ea()})();(function(){const t=Object.getPrototypeOf,e=(s,F,Z)=>{var ue;return Z(s,F.prototype)?!0:((ue=s.constructor)===null||ue===void 0?void 0:ue.name)===F.name},o=s=>{const F=typeof s;return s===null?"null":F==="object"&&Array.isArray(s)?"array":F==="object"&&e(s,String,(Z,ue)=>ue.isPrototypeOf(Z))?"string":F},f=s=>F=>o(F)===s,P=s=>F=>typeof F===s,d=s=>F=>s===F,l=(s,F)=>c(s)&&e(s,F,(Z,ue)=>t(Z)===ue),n=f("string"),c=f("object"),b=s=>l(s,Object),i=f("array"),O=d(null),w=P("boolean"),y=d(void 0),p=s=>s==null,a=s=>!p(s),u=P("function"),h=P("number"),m=(s,F)=>{if(i(s)){for(let Z=0,ue=s.length;Z{},_=s=>()=>s(),S=(s,F)=>(...Z)=>s(F.apply(null,Z)),A=(s,F)=>Z=>s(F(Z)),x=s=>()=>s,R=s=>s,M=(s,F)=>s===F;function T(s,...F){return(...Z)=>{const ue=F.concat(Z);return s.apply(null,ue)}}const E=s=>F=>!s(F),C=s=>()=>{throw new Error(s)},L=s=>s(),D=x(!1),k=x(!0);class I{constructor(F,Z){this.tag=F,this.value=Z}static some(F){return new I(!0,F)}static none(){return I.singletonNone}fold(F,Z){return this.tag?Z(this.value):F()}isSome(){return this.tag}isNone(){return!this.tag}map(F){return this.tag?I.some(F(this.value)):I.none()}bind(F){return this.tag?F(this.value):I.none()}exists(F){return this.tag&&F(this.value)}forall(F){return!this.tag||F(this.value)}filter(F){return!this.tag||F(this.value)?this:I.none()}getOr(F){return this.tag?this.value:F}or(F){return this.tag?this:F}getOrThunk(F){return this.tag?this.value:F()}orThunk(F){return this.tag?this:F()}getOrDie(F){if(this.tag)return this.value;throw new Error(F??"Called getOrDie on None")}static from(F){return a(F)?I.some(F):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(F){this.tag&&F(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const z=Array.prototype.slice,$=Array.prototype.indexOf,Q=Array.prototype.push,j=(s,F)=>$.call(s,F),U=(s,F)=>{const Z=j(s,F);return Z===-1?I.none():I.some(Z)},X=(s,F)=>j(s,F)>-1,te=(s,F)=>{for(let Z=0,ue=s.length;Z{const Z=[];for(let ue=0;ue{const Z=[];for(let ue=0;ue{const Z=s.length,ue=new Array(Z);for(let we=0;we{for(let Z=0,ue=s.length;Z{for(let Z=s.length-1;Z>=0;Z--){const ue=s[Z];F(ue,Z)}},ee=(s,F)=>{const Z=[],ue=[];for(let we=0,Be=s.length;we{const Z=[];for(let ue=0,we=s.length;ue(Y(s,(ue,we)=>{Z=F(Z,ue,we)}),Z),se=(s,F,Z)=>(q(s,(ue,we)=>{Z=F(Z,ue,we)}),Z),ae=(s,F,Z)=>{for(let ue=0,we=s.length;ueae(s,F,D),de=(s,F)=>{for(let Z=0,ue=s.length;Z{const F=[];for(let Z=0,ue=s.length;Zve(oe(s,F)),_e=(s,F)=>{for(let Z=0,ue=s.length;Z{const F=z.call(s,0);return F.reverse(),F},Te=(s,F)=>me(s,Z=>!X(F,Z)),Pe=(s,F)=>{const Z={};for(let ue=0,we=s.length;ue[s],ze=(s,F)=>{const Z=z.call(s,0);return Z.sort(F),Z},De=(s,F)=>F>=0&&FDe(s,0),Ve=s=>De(s,s.length-1),$e=u(Array.from)?Array.from:s=>z.call(s),Oe=(s,F)=>{for(let Z=0;Z{const Z=ke(s);for(let ue=0,we=Z.length;ueZe(s,(Z,ue)=>({k:ue,v:F(Z,ue)})),Ze=(s,F)=>{const Z={};return We(s,(ue,we)=>{const Be=F(ue,we);Z[Be.k]=Be.v}),Z},Xe=s=>(F,Z)=>{s[Z]=F},tt=(s,F,Z,ue)=>{We(s,(we,Be)=>{(F(we,Be)?Z:ue)(we,Be)})},Ee=(s,F)=>{const Z={},ue={};return tt(s,F,Xe(Z),Xe(ue)),{t:Z,f:ue}},Ne=(s,F)=>{const Z={};return tt(s,F,Xe(Z),v),Z},je=(s,F)=>{const Z=[];return We(s,(ue,we)=>{Z.push(F(ue,we))}),Z},nt=(s,F)=>{const Z=ke(s);for(let ue=0,we=Z.length;ueje(s,R),Ge=(s,F)=>ht(s,F)?I.from(s[F]):I.none(),ht=(s,F)=>Le.call(s,F),pt=(s,F)=>ht(s,F)&&s[F]!==void 0&&s[F]!==null,wt=(s,F,Z=M)=>s.exists(ue=>Z(ue,F)),Dt=(s,F,Z=M)=>en(s,F,Z).getOr(s.isNone()&&F.isNone()),It=s=>{const F=[],Z=ue=>{F.push(ue)};for(let ue=0;ue{const F=[];for(let Z=0;Zs.isSome()&&F.isSome()?I.some(Z(s.getOrDie(),F.getOrDie())):I.none(),Gt=(s,F,Z,ue)=>s.isSome()&&F.isSome()&&Z.isSome()?I.some(ue(s.getOrDie(),F.getOrDie(),Z.getOrDie())):I.none(),Ct=(s,F)=>s!=null?I.some(F(s)):I.none(),_t=(s,F)=>s?I.some(F):I.none(),nn=(s,F)=>s+F,gn=(s,F)=>s.substring(F),bn=(s,F,Z)=>F===""||s.length>=F.length&&s.substr(Z,Z+F.length)===F,mn=(s,F)=>lt(s,F)?gn(s,F.length):s,vt=(s,F)=>yt(s,F)?s:nn(s,F),bt=(s,F,Z=0,ue)=>{const we=s.indexOf(F,Z);return we!==-1?y(ue)?!0:we+F.length<=ue:!1},lt=(s,F)=>bn(s,F,0),yt=(s,F)=>bn(s,F,s.length-F.length),Rt=(s=>F=>F.replace(s,""))(/^\s+|\s+$/g),it=s=>s.length>0,at=s=>!it(s),Lt=s=>s.style!==void 0&&u(s.style.getPropertyValue),xt=(s,F)=>{const ue=(F||document).createElement("div");if(ue.innerHTML=s,!ue.hasChildNodes()||ue.childNodes.length>1){const we="HTML does not have a single root node";throw console.error(we,s),new Error(we)}return Yt(ue.childNodes[0])},Ht=(s,F)=>{const ue=(F||document).createElement(s);return Yt(ue)},Xt=(s,F)=>{const ue=(F||document).createTextNode(s);return Yt(ue)},Yt=s=>{if(s==null)throw new Error("Node cannot be null or undefined");return{dom:s}},Pt={fromHtml:xt,fromTag:Ht,fromText:Xt,fromDom:Yt,fromPoint:(s,F,Z)=>I.from(s.dom.elementFromPoint(F,Z)).map(Yt)},tn=typeof window<"u"?window:Function("return this;")(),Kt=(s,F)=>{let Z=F??tn;for(let ue=0;ue{const Z=s.split(".");return Kt(Z,F)},dn=(s,F)=>fn(s,F),vn=(s,F)=>{const Z=dn(s,F);if(Z==null)throw new Error(s+" not available on this browser");return Z},Nn=Object.getPrototypeOf,er=s=>vn("HTMLElement",s),En=s=>{const F=fn("ownerDocument.defaultView",s);return c(s)&&(er(F).prototype.isPrototypeOf(s)||/^HTML\w*Element$/.test(Nn(s).constructor.name))},In=9,Un=11,xr=1,Sr=3,ar=s=>s.dom.nodeName.toLowerCase(),Fn=s=>s.dom.nodeType,ir=s=>F=>Fn(F)===s,Wn=s=>Kn(s)&&En(s.dom),Kn=ir(xr),_r=ir(Sr),Ir=ir(In),zr=ir(Un),Fr=s=>F=>Kn(F)&&ar(F)===s,Rr=(s,F)=>{const Z=s.dom;if(Z.nodeType!==xr)return!1;{const ue=Z;if(ue.matches!==void 0)return ue.matches(F);if(ue.msMatchesSelector!==void 0)return ue.msMatchesSelector(F);if(ue.webkitMatchesSelector!==void 0)return ue.webkitMatchesSelector(F);if(ue.mozMatchesSelector!==void 0)return ue.mozMatchesSelector(F);throw new Error("Browser lacks native selectors")}},$r=s=>s.nodeType!==xr&&s.nodeType!==In&&s.nodeType!==Un||s.childElementCount===0,Kr=(s,F)=>{const Z=F===void 0?document:F.dom;return $r(Z)?[]:oe(Z.querySelectorAll(s),Pt.fromDom)},Co=(s,F)=>{const Z=F===void 0?document:F.dom;return $r(Z)?I.none():I.from(Z.querySelector(s)).map(Pt.fromDom)},so=(s,F)=>s.dom===F.dom,So=(s,F)=>{const Z=s.dom,ue=F.dom;return Z===ue?!1:Z.contains(ue)},go=s=>Pt.fromDom(s.dom.ownerDocument),li=s=>Ir(s)?s:go(s),Pn=s=>Pt.fromDom(li(s).dom.documentElement),Yn=s=>Pt.fromDom(li(s).dom.defaultView),br=s=>I.from(s.dom.parentNode).map(Pt.fromDom),dr=s=>br(s),Cr=s=>I.from(s.dom.parentElement).map(Pt.fromDom),io=(s,F)=>{const Z=u(F)?F:D;let ue=s.dom;const we=[];for(;ue.parentNode!==null&&ue.parentNode!==void 0;){const Be=ue.parentNode,qe=Pt.fromDom(Be);if(we.push(qe),Z(qe)===!0)break;ue=Be}return we},Qr=s=>I.from(s.dom.offsetParent).map(Pt.fromDom),Wr=s=>I.from(s.dom.nextSibling).map(Pt.fromDom),bo=s=>oe(s.dom.childNodes,Pt.fromDom),Bn=(s,F)=>{const Z=s.dom.childNodes;return I.from(Z[F]).map(Pt.fromDom)},hr=s=>Bn(s,0),hn=(s,F)=>({element:s,offset:F}),zn=(s,F)=>{const Z=bo(s);return Z.length>0&&Fzr(s)&&a(s.dom.host),yr=u(Element.prototype.attachShadow)&&u(Node.prototype.getRootNode),gr=x(yr),vr=yr?s=>Pt.fromDom(s.dom.getRootNode()):li,nr=s=>Zn(s)?s:Pt.fromDom(li(s).dom.body),Qn=s=>Hn(s).isSome(),Hn=s=>{const F=vr(s);return Zn(F)?I.some(F):I.none()},tr=s=>Pt.fromDom(s.dom.host),cr=s=>{if(gr()&&a(s.target)){const F=Pt.fromDom(s.target);if(Kn(F)&&Lr(F)&&s.composed&&s.composedPath){const Z=s.composedPath();if(Z)return He(Z)}}return I.from(s.target)},Lr=s=>a(s.dom.shadowRoot),Er=s=>{const F=_r(s)?s.dom.parentNode:s.dom;if(F==null||F.ownerDocument===null)return!1;const Z=F.ownerDocument;return Hn(Pt.fromDom(F)).fold(()=>Z.body.contains(F),A(Er,tr))},Vr=()=>to(Pt.fromDom(document)),to=s=>{const F=s.dom.body;if(F==null)throw new Error("Body is not available yet");return Pt.fromDom(F)},_o=(s,F,Z)=>{if(n(Z)||w(Z)||h(Z))s.setAttribute(F,Z+"");else throw console.error("Invalid call to Attribute.set. Key ",F,":: Value ",Z,":: Element ",s),new Error("Attribute value was not simple")},fr=(s,F,Z)=>{_o(s.dom,F,Z)},Eo=(s,F)=>{const Z=s.dom;We(F,(ue,we)=>{_o(Z,we,ue)})},ao=(s,F)=>{const Z=s.dom.getAttribute(F);return Z===null?void 0:Z},co=(s,F)=>I.from(ao(s,F)),Go=(s,F)=>{const Z=s.dom;return Z&&Z.hasAttribute?Z.hasAttribute(F):!1},po=(s,F)=>{s.dom.removeAttribute(F)},qo=s=>se(s.dom.attributes,(F,Z)=>(F[Z.name]=Z.value,F),{}),Ao=(s,F,Z)=>{if(!n(Z))throw console.error("Invalid call to CSS.set. Property ",F,":: Value ",Z,":: Element ",s),new Error("CSS value must be a string: "+Z);Lt(s)&&s.style.setProperty(F,Z)},oi=(s,F)=>{Lt(s)&&s.style.removeProperty(F)},ko=(s,F,Z)=>{const ue=s.dom;Ao(ue,F,Z)},ra=(s,F)=>{const Z=s.dom;We(F,(ue,we)=>{Ao(Z,we,ue)})},mo=(s,F)=>{const Z=s.dom;We(F,(ue,we)=>{ue.fold(()=>{oi(Z,we)},Be=>{Ao(Z,we,Be)})})},Aa=(s,F)=>{const Z=s.dom,we=window.getComputedStyle(Z).getPropertyValue(F);return we===""&&!Er(s)?Xl(Z,F):we},Xl=(s,F)=>Lt(s)?s.style.getPropertyValue(F):"",Na=(s,F)=>{const Z=s.dom,ue=Xl(Z,F);return I.from(ue).filter(we=>we.length>0)},cs=s=>{const F={},Z=s.dom;if(Lt(Z))for(let ue=0;ue{const ue=Pt.fromTag(s);return ko(ue,F,Z),Na(ue,F).isSome()},ma=(s,F)=>{const Z=s.dom;oi(Z,F),wt(co(s,"style").map(Rt),"")&&po(s,"style")},Ku=s=>s.dom.offsetWidth,qc=(s,F)=>{const Z=(ft,gt)=>{if(!h(gt)&&!gt.match(/^[0-9]+$/))throw new Error(s+".set accepts only positive integer values. Value was "+gt);const At=ft.dom;Lt(At)&&(At.style[s]=gt+"px")},ue=ft=>{const gt=F(ft);if(gt<=0||gt===null){const At=Aa(ft,s);return parseFloat(At)||0}return gt},we=ue,Be=(ft,gt)=>se(gt,(At,$t)=>{const on=Aa(ft,$t),yn=on===void 0?0:parseInt(on,10);return isNaN(yn)?At:At+yn},0);return{set:Z,get:ue,getOuter:we,aggregate:Be,max:(ft,gt,At)=>{const $t=Be(ft,At);return gt>$t?gt-$t:0}}},Yd=qc("height",s=>{const F=s.dom;return Er(s)?F.getBoundingClientRect().height:F.offsetHeight}),Ql=s=>Yd.get(s),Ed=s=>Yd.getOuter(s),Nf=(s,F)=>{const Z=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],ue=Yd.max(s,F,Z);ko(s,"max-height",ue+"px")},mm=(s,F)=>({left:s,top:F,translate:(ue,we)=>mm(s+ue,F+we)}),Ws=mm,gm=s=>{const F=s.getBoundingClientRect();return Ws(F.left,F.top)},Gl=(s,F)=>s!==void 0?s:F!==void 0?F:0,pc=s=>{const F=s.dom.ownerDocument,Z=F.body,ue=F.defaultView,we=F.documentElement;if(Z===s.dom)return Ws(Z.offsetLeft,Z.offsetTop);const Be=Gl(ue==null?void 0:ue.pageYOffset,we.scrollTop),qe=Gl(ue==null?void 0:ue.pageXOffset,we.scrollLeft),ft=Gl(we.clientTop,Z.clientTop),gt=Gl(we.clientLeft,Z.clientLeft);return Cu(s).translate(qe-gt,Be-ft)},Cu=s=>{const F=s.dom,ue=F.ownerDocument.body;return ue===F?Ws(ue.offsetLeft,ue.offsetTop):Er(s)?gm(F):Ws(0,0)},yl=qc("width",s=>s.dom.offsetWidth),sa=(s,F)=>yl.set(s,F),cc=s=>yl.get(s),hu=s=>yl.getOuter(s),ju=(s,F)=>{const Z=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],ue=yl.max(s,F,Z);ko(s,"max-width",ue+"px")},iu=s=>{let F=!1,Z;return(...ue)=>(F||(F=!0,Z=s.apply(null,ue)),Z)},mc=(s,F,Z,ue)=>{const we=s.isiOS()&&/ipad/i.test(Z)===!0,Be=s.isiOS()&&!we,qe=s.isiOS()||s.isAndroid(),ft=qe||ue("(pointer:coarse)"),gt=we||!Be&&qe&&ue("(min-device-width:768px)"),At=Be||qe&&!gt,$t=F.isSafari()&&s.isiOS()&&/safari/i.test(Z)===!1,on=!At&&!gt&&!$t;return{isiPad:x(we),isiPhone:x(Be),isTablet:x(gt),isPhone:x(At),isTouch:x(ft),isAndroid:s.isAndroid,isiOS:s.isiOS,isWebView:x($t),isDesktop:x(on)}},Ss=(s,F)=>{for(let Z=0;Z{const Z=Ss(s,F);if(!Z)return{major:0,minor:0};const ue=we=>Number(F.replace(Z,"$"+we));return $h(ue(1),ue(2))},vf=(s,F)=>{const Z=String(F).toLowerCase();return s.length===0?Ju():$f(s,Z)},Ju=()=>$h(0,0),$h=(s,F)=>({major:s,minor:F}),Es={nu:$h,detect:vf,unknown:Ju},ef=(s,F)=>Oe(F.brands,Z=>{const ue=Z.brand.toLowerCase();return ce(s,we=>{var Be;return ue===((Be=we.brand)===null||Be===void 0?void 0:Be.toLowerCase())}).map(we=>({current:we.name,version:Es.nu(parseInt(Z.version,10),0)}))}),uc=(s,F)=>{const Z=String(F).toLowerCase();return ce(s,ue=>ue.search(Z))},ad=(s,F)=>uc(s,F).map(Z=>{const ue=Es.detect(Z.versionRegexes,F);return{current:Z.name,version:ue}}),Vf=(s,F)=>uc(s,F).map(Z=>{const ue=Es.detect(Z.versionRegexes,F);return{current:Z.name,version:ue}}),gc=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,sd=s=>F=>bt(F,s),Mp=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:s=>bt(s,"edge/")&&bt(s,"chrome")&&bt(s,"safari")&&bt(s,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,gc],search:s=>bt(s,"chrome")&&!bt(s,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:s=>bt(s,"msie")||bt(s,"trident")},{name:"Opera",versionRegexes:[gc,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:sd("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:sd("firefox")},{name:"Safari",versionRegexes:[gc,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:s=>(bt(s,"safari")||bt(s,"mobile/"))&&bt(s,"applewebkit")}],Xd=[{name:"Windows",search:sd("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:s=>bt(s,"iphone")||bt(s,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:sd("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:sd("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:sd("linux"),versionRegexes:[]},{name:"Solaris",search:sd("sunos"),versionRegexes:[]},{name:"FreeBSD",search:sd("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:sd("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],yf={browsers:x(Mp),oses:x(Xd)},mh="Edge",ld="Chromium",Vh="IE",bf="Opera",tf="Firefox",Au="Safari",xf=()=>cd({current:void 0,version:Es.unknown()}),cd=s=>{const F=s.current,Z=s.version,ue=we=>()=>F===we;return{current:F,version:Z,isEdge:ue(mh),isChromium:ue(ld),isIE:ue(Vh),isOpera:ue(bf),isFirefox:ue(tf),isSafari:ue(Au)}},nf={unknown:xf,nu:cd,edge:x(mh),chromium:x(ld),ie:x(Vh),opera:x(bf),firefox:x(tf),safari:x(Au)},gh="Windows",rs="iOS",ep="Android",Ep="Linux",vm="macOS",Pd="Solaris",M0="FreeBSD",sr="ChromeOS",Pp=()=>_f({current:void 0,version:Es.unknown()}),_f=s=>{const F=s.current,Z=s.version,ue=we=>()=>F===we;return{current:F,version:Z,isWindows:ue(gh),isiOS:ue(rs),isAndroid:ue(ep),isMacOS:ue(vm),isLinux:ue(Ep),isSolaris:ue(Pd),isFreeBSD:ue(M0),isChromeOS:ue(sr)}},wf={unknown:Pp,nu:_f,windows:x(gh),ios:x(rs),android:x(ep),linux:x(Ep),macos:x(vm),solaris:x(Pd),freebsd:x(M0),chromeos:x(sr)},Gd={detect:(s,F,Z)=>{const ue=yf.browsers(),we=yf.oses(),Be=F.bind(gt=>ef(ue,gt)).orThunk(()=>ad(ue,s)).fold(nf.unknown,nf.nu),qe=Vf(we,s).fold(wf.unknown,wf.nu),ft=mc(qe,Be,s,Z);return{browser:Be,os:qe,deviceType:ft}}},Fa=s=>window.matchMedia(s).matches;let Qu=iu(()=>Gd.detect(navigator.userAgent,I.from(navigator.userAgentData),Fa));const rf=()=>Qu(),Bc=(s,F,Z,ue,we,Be,qe)=>({target:s,x:F,y:Z,stop:ue,prevent:we,kill:Be,raw:qe}),ym=s=>{const F=Pt.fromDom(cr(s).getOr(s.target)),Z=()=>s.stopPropagation(),ue=()=>s.preventDefault(),we=S(ue,Z);return Bc(F,s.clientX,s.clientY,Z,ue,we,s)},Mu=(s,F)=>Z=>{s(Z)&&F(ym(Z))},Hu=(s,F,Z,ue,we)=>{const Be=Mu(Z,ue);return s.dom.addEventListener(F,Be,we),{unbind:T(jh,s,F,Be,we)}},Lp=(s,F,Z,ue)=>Hu(s,F,Z,ue,!1),Uh=(s,F,Z,ue)=>Hu(s,F,Z,ue,!0),jh=(s,F,Z,ue)=>{s.dom.removeEventListener(F,Z,ue)},Eu=(s,F)=>{br(s).each(ue=>{ue.dom.insertBefore(F.dom,s.dom)})},ud=(s,F)=>{Wr(s).fold(()=>{br(s).each(we=>{Pu(we,F)})},ue=>{Eu(ue,F)})},vh=(s,F)=>{hr(s).fold(()=>{Pu(s,F)},ue=>{s.dom.insertBefore(F.dom,ue.dom)})},Pu=(s,F)=>{s.dom.appendChild(F.dom)},Oc=(s,F,Z)=>{Bn(s,Z).fold(()=>{Pu(s,F)},ue=>{Eu(ue,F)})},ks=(s,F)=>{q(F,Z=>{Pu(s,Z)})},Uf=s=>{s.dom.textContent="",q(bo(s),F=>{zl(F)})},zl=s=>{const F=s.dom;F.parentNode!==null&&F.parentNode.removeChild(F)},Hl=s=>{const F=s!==void 0?s.dom:document,Z=F.body.scrollLeft||F.documentElement.scrollLeft,ue=F.body.scrollTop||F.documentElement.scrollTop;return Ws(Z,ue)},Ts=(s,F,Z)=>{const we=(Z!==void 0?Z.dom:document).defaultView;we&&we.scrollTo(s,F)},$s=s=>{const F=s===void 0?window:s;return rf().browser.isFirefox()?I.none():I.from(F.visualViewport)},Zu=(s,F,Z,ue)=>({x:s,y:F,width:Z,height:ue,right:s+Z,bottom:F+ue}),yh=s=>{const F=s===void 0?window:s,Z=F.document,ue=Hl(Pt.fromDom(Z));return $s(F).fold(()=>{const we=F.document.documentElement,Be=we.clientWidth,qe=we.clientHeight;return Zu(ue.left,ue.top,Be,qe)},we=>Zu(Math.max(we.pageLeft,ue.left),Math.max(we.pageTop,ue.top),we.width,we.height))},of=()=>Pt.fromDom(document),tp=(s,F)=>s.view(F).fold(x([]),ue=>{const we=s.owner(ue),Be=tp(s,we);return[ue].concat(Be)}),Ip=(s,F)=>{const Z=F.owner(s),ue=tp(F,Z);return I.some(ue)};var bh=Object.freeze({__proto__:null,view:s=>{var F;return(s.dom===document?I.none():I.from((F=s.dom.defaultView)===null||F===void 0?void 0:F.frameElement)).map(Pt.fromDom)},owner:s=>go(s)});const Jd=s=>{const F=of(),Z=Hl(F);return Ip(s,bh).fold(T(pc,s),we=>{const Be=Cu(s),qe=he(we,(ft,gt)=>{const At=Cu(gt);return{left:ft.left+At.left,top:ft.top+At.top}},{left:0,top:0});return Ws(qe.left+Be.left+Z.left,qe.top+Be.top+Z.top)})},zc=(s,F,Z)=>({point:s,width:F,height:Z}),np=(s,F,Z,ue)=>({x:s,y:F,width:Z,height:ue}),ms=(s,F,Z,ue)=>({x:s,y:F,width:Z,height:ue,right:s+Z,bottom:F+ue}),Ya=s=>{const F=pc(s),Z=hu(s),ue=Ed(s);return ms(F.left,F.top,Z,ue)},bl=s=>{const F=Jd(s),Z=hu(s),ue=Ed(s);return ms(F.left,F.top,Z,ue)},fl=(s,F)=>{const Z=Math.max(s.x,F.x),ue=Math.max(s.y,F.y),we=Math.min(s.right,F.right),Be=Math.min(s.bottom,F.bottom),qe=we-Z,ft=Be-ue;return ms(Z,ue,qe,ft)},Wc=(s,F)=>se(F,(Z,ue)=>fl(Z,ue),s),xl=()=>yh(window),xi=s=>{let F=s;return{get:()=>F,set:we=>{F=we}}},pu=s=>{const F=xi(I.none()),Z=()=>F.get().each(s);return{clear:()=>{Z(),F.set(I.none())},isSet:()=>F.get().isSome(),get:()=>F.get(),set:ft=>{Z(),F.set(I.some(ft))}}},xh=()=>pu(s=>s.destroy()),js=()=>pu(s=>s.unbind()),os=()=>{const s=pu(v);return{...s,on:Z=>s.get().each(Z)}};var af=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Of=s=>{const F=Be=>Be(s),Z=x(s),ue=()=>we,we={tag:!0,inner:s,fold:(Be,qe)=>qe(s),isValue:k,isError:D,map:Be=>Hi.value(Be(s)),mapError:ue,bind:F,exists:F,forall:F,getOr:Z,or:ue,getOrThunk:Z,orThunk:ue,getOrDie:Z,each:Be=>{Be(s)},toOptional:()=>I.some(s)};return we},sf=s=>{const F=()=>Z,Z={tag:!1,inner:s,fold:(ue,we)=>ue(s),isValue:D,isError:k,map:F,mapError:ue=>Hi.error(ue(s)),bind:F,exists:D,forall:k,getOr:R,or:R,getOrThunk:L,orThunk:L,getOrDie:C(String(s)),each:v,toOptional:I.none};return Z},Hi={value:Of,error:sf,fromOption:(s,F)=>s.fold(()=>sf(F),Of)};var pi;(function(s){s[s.Error=0]="Error",s[s.Value=1]="Value"})(pi||(pi={}));const Qh=(s,F,Z)=>s.stype===pi.Error?F(s.serror):Z(s.svalue),Ru=s=>{const F=[],Z=[];return q(s,ue=>{Qh(ue,we=>Z.push(we),we=>F.push(we))}),{values:F,errors:Z}},vc=(s,F)=>s.stype===pi.Error?{stype:pi.Error,serror:F(s.serror)}:s,Yc=(s,F)=>s.stype===pi.Value?{stype:pi.Value,svalue:F(s.svalue)}:s,Kl=(s,F)=>s.stype===pi.Value?F(s.svalue):s,Fc=(s,F)=>s.stype===pi.Error?F(s.serror):s,si=s=>({stype:pi.Value,svalue:s}),Hh=s=>({stype:pi.Error,serror:s}),tl={fromResult:s=>s.fold(Hh,si),toResult:s=>Qh(s,Hi.error,Hi.value),svalue:si,partition:Ru,serror:Hh,bind:Kl,bindError:Fc,map:Yc,mapError:vc,fold:Qh},mu=(s,F,Z,ue)=>({tag:"field",key:s,newKey:F,presence:Z,prop:ue}),gu=(s,F)=>({tag:"custom",newKey:s,instantiator:F}),ja=(s,F,Z)=>{switch(s.tag){case"field":return F(s.key,s.newKey,s.presence,s.prop);case"custom":return Z(s.newKey,s.instantiator)}},vu=(s,F)=>F,Rd=(s,F)=>b(s)&&b(F)?nl(s,F):F,Ld=s=>(...F)=>{if(F.length===0)throw new Error("Can't merge zero objects");const Z={};for(let ue=0;ue({tag:"required",process:{}}),Xi=s=>({tag:"defaultedThunk",process:s}),Xc=s=>Xi(x(s)),jf=()=>({tag:"option",process:{}}),yu=s=>({tag:"mergeWithThunk",process:s}),Dp=s=>yu(x(s)),rp=(s,F)=>s.length>0?tl.svalue(nl(F,Id.apply(void 0,s))):tl.svalue(F),Lu=s=>S(tl.serror,ve)(s),fd={consolidateObj:(s,F)=>{const Z=tl.partition(s);return Z.errors.length>0?Lu(Z.errors):rp(Z.values,F)},consolidateArr:s=>{const F=tl.partition(s);return F.errors.length>0?Lu(F.errors):tl.svalue(F.values)}},Hf=s=>c(s)&&ke(s).length>100?" removed due to size":JSON.stringify(s,null,2),_h=s=>{const F=s.length>10?s.slice(0,10).concat([{path:[],getErrorInfo:x("... (only showing first ten failures)")}]):s;return oe(F,Z=>"Failed path: ("+Z.path.join(" > ")+`) -`+Z.getErrorInfo())},Gc=(s,F)=>tl.serror([{path:s,getErrorInfo:F}]),dd=(s,F,Z)=>Gc(s,()=>'Could not find valid *required* value for "'+F+'" in '+Hf(Z)),rl=(s,F)=>Gc(s,()=>'Choice schema did not contain choice key: "'+F+'"'),Dd=(s,F,Z)=>Gc(s,()=>'The chosen schema: "'+Z+'" did not exist in branches: '+Hf(F)),Vi=(s,F)=>Gc(s,()=>"There are unsupported fields: ["+F.join(", ")+"] specified"),fa=(s,F)=>Gc(s,x(F)),au=s=>{const F=(ue,we)=>tl.bindError(s(we),Be=>fa(ue,Be)),Z=x("val");return{extract:F,toString:Z}},Zf=au(tl.svalue),Zl=(s,F,Z,ue)=>Ge(F,Z).fold(()=>dd(s,Z,F),ue),Jl=(s,F,Z,ue)=>{const we=Ge(s,F).getOrThunk(()=>Z(s));return ue(we)},Bd=(s,F,Z)=>Z(Ge(s,F)),Qs=(s,F,Z,ue)=>{const we=Ge(s,F).map(Be=>Be===!0?Z(s):Be);return ue(we)},kc=(s,F,Z,ue,we)=>{const Be=ft=>we.extract(F.concat([ue]),ft),qe=ft=>ft.fold(()=>tl.svalue(I.none()),gt=>{const At=we.extract(F.concat([ue]),gt);return tl.map(At,I.some)});switch(s.tag){case"required":return Zl(F,Z,ue,Be);case"defaultedThunk":return Jl(Z,ue,s.process,Be);case"option":return Bd(Z,ue,qe);case"defaultedOptionThunk":return Qs(Z,ue,s.process,qe);case"mergeWithThunk":return Jl(Z,ue,x({}),ft=>{const gt=nl(s.process(Z),ft);return Be(gt)})}},Iu=(s,F,Z)=>{const ue={},we=[];for(const Be of Z)ja(Be,(qe,ft,gt,At)=>{const $t=kc(gt,s,F,qe,At);tl.fold($t,on=>{we.push(...on)},on=>{ue[ft]=on})},(qe,ft)=>{ue[qe]=ft(F)});return we.length>0?tl.serror(we):tl.svalue(ue)},Ea=s=>({extract:(ue,we)=>s().extract(ue,we),toString:()=>s().toString()}),El=s=>ke(Ne(s,a)),_l=s=>{const F=Mi(s),Z=he(s,(we,Be)=>ja(Be,qe=>nl(we,{[qe]:!0}),x(we)),{});return{extract:(we,Be)=>{const qe=w(Be)?[]:El(Be),ft=me(qe,gt=>!pt(Z,gt));return ft.length===0?F.extract(we,Be):Vi(we,ft)},toString:F.toString}},Mi=s=>({extract:(ue,we)=>Iu(ue,we,s),toString:()=>`obj{ +Required: `+Ce.join(", "));return Ro[un].apply(null,$n)},log:Ro=>{console.log(Ro,{constructors:Ce,constructor:un,params:$n})}}}}),Ye}},Ah={...Rm.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},Hx=(pe,Ce)=>pe.length===0?Ah.none():pe.length===1?Ah.only(0):Ce===0?Ah.left(0,1):Ce===pe.length-1?Ah.right(Ce-1,Ce):Ce>0&&Ce{const Ut=pe.slice(0),un=Hx(pe,Ce),Tn=v(j(Ut,v(0))),$n=ai=>st.singleColumnWidth(Ut[ai],Ye),ur=(ai,Ko)=>St.calcLeftEdgeDeltas(Ut,ai,Ko,Ye,st.minCellWidth(),st.isRelative),Nr=(ai,Ko,Qo)=>St.calcMiddleDeltas(Ut,ai,Ko,Qo,Ye,st.minCellWidth(),st.isRelative),Ro=(ai,Ko)=>St.calcRightEdgeDeltas(Ut,ai,Ko,Ye,st.minCellWidth(),st.isRelative);return un.fold(Tn,$n,ur,Nr,Ro)},G_=(pe,Ce,Ye)=>{let st=0;for(let St=pe;St{const Ye=Xi.justCells(pe);return j(Ye,st=>{const St=G_(st.column,st.column+st.colspan,Ce);return{element:st.element,width:St,colspan:st.colspan}})},XO=(pe,Ce)=>{const Ye=Xi.justColumns(pe);return j(Ye,(st,St)=>({element:st.element,width:Ce[St],colspan:st.colspan}))},yc=(pe,Ce)=>j(pe.all,(Ye,st)=>({element:Ye.element,height:Ce[st]})),GO=pe=>K(pe,(Ce,Ye)=>Ce+Ye,0),Zx=(pe,Ce)=>Xi.hasColumns(pe)?XO(pe,Ce):Cc(pe,Ce),wb=(pe,Ce,Ye)=>{const st=Zx(pe,Ce);U(st,St=>{Ye.setElementWidth(St.element,St.width)})},K_=(pe,Ce,Ye,st,St)=>{const Ut=Xi.fromTable(pe),un=St.getCellDelta(Ce),Tn=St.getWidths(Ut,St),$n=Ye===Ut.grid.columns-1,ur=st.clampTableDelta(Tn,Ye,un,St.minCellWidth(),$n),Nr=ih(Tn,Ye,ur,St,st),Ro=j(Nr,(ai,Ko)=>ai+Tn[Ko]);wb(Ut,Ro,St),st.resizeTable(St.adjustTableWidth,ur,$n)},qx=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe),St=mr(st,pe),Ut=j(St,($n,ur)=>Ye===ur?Math.max(Ce+$n,Xd()):$n),un=yc(st,Ut);U(un,$n=>{rt($n.element,$n.height)}),U(Xi.justCells(st),$n=>{dt($n.element)});const Tn=GO(Ut);rt(pe,Tn)},J_=(pe,Ce,Ye,st,St)=>{const Ut=Xi.generate(Ce),un=st.getWidths(Ut,st),Tn=st.pixelWidth(),{newSizes:$n,delta:ur}=St.calcRedestributedWidths(un,Tn,Ye.pixelDelta,st.isRelative);wb(Ut,$n,st),st.adjustTableWidth(ur)},Lm=(pe,Ce,Ye,st)=>{const St=Xi.generate(Ce),Ut=st.getWidths(St,st);wb(St,Ut,st)},qh=pe=>oe(pe,(Ye,st)=>$(Ye,Ut=>Ut.column===st.column)?Ye:Ye.concat([st]),[]).sort((Ye,st)=>Ye.column-st.column),Q1=vt("col"),Kc=vt("colgroup"),H1=pe=>qt(pe)==="tr"||Kc(pe),Qp=pe=>{const Ce=uc(pe,"colspan",1),Ye=uc(pe,"rowspan",1);return{element:pe,colspan:Ce,rowspan:Ye}},ly=(pe,Ce=Qp)=>{const Ye=Tn=>Q1(Tn.element)?pe.col(Tn):pe.cell(Tn),st=Tn=>Kc(Tn.element)?pe.colgroup(Tn):pe.row(Tn),St=Tn=>{if(H1(Tn))return st({element:Tn});{const $n=Tn,ur=Ye(Ce($n));return Ut=C.some({item:$n,replacement:ur}),ur}};let Ut=C.none();return{getOrInit:(Tn,$n)=>Ut.fold(()=>St(Tn),ur=>$n(Tn,ur.item)?ur.replacement:St(Tn))}},cy=pe=>Ce=>{const Ye=[],st=(un,Tn)=>Y(Ye,$n=>Tn($n.item,un)),St=un=>{const Tn=pe==="td"?{scope:null}:{},$n=Ce.replace(un,pe,Tn);return Ye.push({item:un,sub:$n}),$n};return{replaceOrInit:(un,Tn)=>{if(H1(un)||Q1(un))return un;{const $n=un;return st($n,Tn).fold(()=>St($n),ur=>Tn(un,ur.item)?ur.sub:St($n))}}}},Ob=pe=>it(pe,"scope").map(Ce=>Ce.substr(0,3)),bc={modification:ly,transform:cy,merging:pe=>({unmerge:st=>{const St=Ob(st);return St.each(Ut=>lt(st,"scope",Ut)),()=>{const Ut=pe.cell({element:st,colspan:1,rowspan:1});return Es(Ut,"width"),Es(st,"width"),St.each(un=>lt(Ut,"scope",un)),Ut}},merge:st=>{const St=()=>{const Ut=Ql(j(st,Ob));if(Ut.length===0)return C.none();{const un=Ut[0],Tn=["row","col"];return $(Ut,ur=>ur!==un&&z(Tn,ur))?C.none():C.from(un)}};return Es(st[0],"width"),St().fold(()=>at(st[0],"scope"),Ut=>lt(st[0],"scope",Ut+"group")),v(st[0])}})},KO=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],ew=(pe,Ce)=>{const Ye=pe.property().name(Ce);return z(["ol","ul"],Ye)},Q0=(pe,Ce)=>{const Ye=pe.property().name(Ce);return z(KO,Ye)},Nc=(pe,Ce)=>z(["br","img","hr","input"],pe.property().name(Ce)),yg=fg(),qr=pe=>Q0(yg,pe),N=pe=>ew(yg,pe),G=pe=>Nc(yg,pe),fe=pe=>{const Ce=vt("br"),Ye=$n=>se($n,ur=>Ce(ur)||gn(ur)&&qf(ur).trim().length===0),st=$n=>qt($n)==="li"||Aa($n,N).isSome(),St=$n=>Wn($n).map(ur=>qr(ur)?!0:G(ur)?qt(ur)!=="img":!1).getOr(!1),Ut=$n=>Ax($n).bind(ur=>{const Nr=St(ur);return Sr(ur).map(Ro=>Nr===!0||st(Ro)||Ce(ur)||qr(Ro)&&!vn($n,Ro)?[]:[Pt.fromTag("br")])}).getOr([]),Tn=(()=>{const $n=he(pe,ur=>{const Nr=Kn(ur);return Ye(Nr)?[]:Nr.concat(Ut(ur))});return $n.length===0?[Pt.fromTag("br")]:$n})();go(pe[0]),So(pe[0],Tn)},Ae=pe=>Kg(pe,!0),Qe=pe=>{xf(pe).length===0&&li(pe)},et=(pe,Ce)=>({grid:pe,cursor:Ce}),ut=pe=>Se(pe,Ce=>Se(Ce.cells,Ye=>{const st=Ye.element;return Nf(Ae(st),st)})),Tt=(pe,Ce,Ye)=>{var st,St;const Ut=Kl(pe).rows;return C.from((St=(st=Ut[Ce])===null||st===void 0?void 0:st.cells[Ye])===null||St===void 0?void 0:St.element).filter(Ae).orThunk(()=>ut(Ut))},Bt=(pe,Ce,Ye)=>{const st=Tt(pe,Ce,Ye);return et(pe,st)},rn=pe=>oe(pe,(Ye,st)=>$(Ye,Ut=>Ut.row===st.row)?Ye:Ye.concat([st]),[]).sort((Ye,st)=>Ye.row-st.row),an=(pe,Ce,Ye,st)=>{const St=Ce[0].row,Ut=rn(Ce),un=K(Ut,(Tn,$n)=>({grid:Il(Tn.grid,St,$n.row+Tn.delta,Ye,st.getOrInit),delta:Tn.delta+1}),{grid:pe,delta:0}).grid;return Bt(un,St,Ce[0].column)},_n=(pe,Ce,Ye,st)=>{const St=rn(Ce),Ut=St[St.length-1],un=Ut.row+Ut.rowspan,Tn=K(St,($n,ur)=>Il($n,un,ur.row,Ye,st.getOrInit),pe);return Bt(Tn,un,Ce[0].column)},Dn=(pe,Ce,Ye,st)=>{const St=Ce.details,Ut=qh(St),un=Ut[0].column,Tn=K(Ut,($n,ur)=>({grid:U1($n.grid,un,ur.column+$n.delta,Ye,st.getOrInit),delta:$n.delta+1}),{grid:pe,delta:0}).grid;return Bt(Tn,St[0].row,un)},Cn=(pe,Ce,Ye,st)=>{const St=Ce.details,Ut=St[St.length-1],un=Ut.column+Ut.colspan,Tn=qh(St),$n=K(Tn,(ur,Nr)=>U1(ur,un,Nr.column,Ye,st.getOrInit),pe);return Bt($n,St[0].row,un)},Jn=(pe,Ce,Ye,st)=>{const St=qh(Ce),Ut=j(St,Tn=>Tn.column),un=_b(pe,Ut,!0,Ye,st.replaceOrInit);return Bt(un,Ce[0].row,Ce[0].column)},lr=(pe,Ce,Ye,st)=>{const St=j0(pe,Ce,Ye,st.replaceOrInit);return Bt(St,Ce[0].row,Ce[0].column)},Ar=(pe,Ce,Ye,st)=>{const St=qh(Ce),Ut=j(St,Tn=>Tn.column),un=_b(pe,Ut,!1,Ye,st.replaceOrInit);return Bt(un,Ce[0].row,Ce[0].column)},Or=(pe,Ce,Ye,st)=>{const St=j0(pe,Ce,Ye,st.replaceOrInit);return Bt(St,Ce[0].row,Ce[0].column)},jr=(pe,Ce)=>(Ye,st,St,Ut,un)=>{const Tn=rn(st),$n=j(Tn,Nr=>Nr.row),ur=sy(Ye,$n,pe,Ce,St,Ut.replaceOrInit,un);return Bt(ur,st[0].row,st[0].column)},Jr=jr("thead",!0),uo=jr("tbody",!1),ro=jr("tfoot",!1),Po=(pe,Ce,Ye,st)=>{const St=qh(Ce.details),Ut=j1(pe,j(St,Tn=>Tn.column)),un=Ut.length>0?Ut[0].cells.length-1:0;return Bt(Ut,St[0].row,Math.min(St[0].column,un))},gi=(pe,Ce,Ye,st)=>{const St=rn(Ce),Ut=Ux(pe,St[0].row,St[St.length-1].row),un=Math.max(Kl(Ut).rows.length-1,0);return Bt(Ut,Math.min(Ce[0].row,un),Ce[0].column)},ni=(pe,Ce,Ye,st)=>{const St=Ce.cells;fe(St);const Ut=wS(pe,Ce.bounds,Ye,st.merge(St));return et(Ut,C.from(St[0]))},Ti=(pe,Ce,Ye,st)=>{const Ut=K(Ce,(un,Tn)=>$1(un,Tn,Ye,st.unmerge(Tn)),pe);return et(Ut,C.from(Ce[0]))},vi=(pe,Ce,Ye,st)=>{const Ut=(($n,ur)=>{const Nr=Xi.fromTable($n);return z1(Nr,ur,!0)})(Ce.clipboard,Ce.generators),un=hr(Ce.row,Ce.column);return Ra(un,pe,Ut,Ce.generators,Ye).fold(()=>et(pe,C.some(Ce.element)),$n=>Bt($n,Ce.row,Ce.column))},na=(pe,Ce,Ye)=>{const st=ep(pe,Ye.section),St=Xi.generate(st);return z1(St,Ce,!0)},ea=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[0].column,un=St[Ce.cells[0].row],Tn=na(Ce.clipboard,Ce.generators,un),$n=bd(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ce.cells[0].row,Ce.cells[0].column)},La=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[Ce.cells.length-1].column+Ce.cells[Ce.cells.length-1].colspan,un=St[Ce.cells[0].row],Tn=na(Ce.clipboard,Ce.generators,un),$n=bd(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ce.cells[0].row,Ut)},ca=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[0].row,un=St[Ut],Tn=na(Ce.clipboard,Ce.generators,un),$n=Zh(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ce.cells[0].row,Ce.cells[0].column)},Zi=(pe,Ce,Ye,st)=>{const St=Kl(pe).rows,Ut=Ce.cells[Ce.cells.length-1].row+Ce.cells[Ce.cells.length-1].rowspan,un=St[Ce.cells[0].row],Tn=na(Ce.clipboard,Ce.generators,un),$n=Zh(Ut,pe,Tn,Ce.generators,Ye);return Bt($n,Ut,Ce.cells[0].column)},Bs=(pe,Ce)=>{const Ye=Xi.fromTable(pe);return Vp(Ye,Ce).bind(St=>{const Ut=St[St.length-1],un=St[0].column,Tn=Ut.column+Ut.colspan,$n=me(j(Ye.all,ur=>W(ur.cells,Nr=>Nr.column>=un&&Nr.column{const Ye=Xi.fromTable(pe);return Vp(Ye,Ce).bind(vb).getOr("")},Vl=(pe,Ce)=>{const Ye=Xi.fromTable(pe);return Vp(Ye,Ce).bind(St=>{const Ut=St[St.length-1],un=St[0].row,Tn=Ut.row+Ut.rowspan,$n=Ye.all.slice(un,Tn);return Fx($n)}).getOr("")},Ta=(pe,Ce,Ye,st)=>Lm(pe,Ce,Ye,st.sizing),zs=(pe,Ce,Ye,st)=>J_(pe,Ce,Ye,st.sizing,st.resize),gs=(pe,Ce)=>$(Ce,Ye=>Ye.column===0&&Ye.isLocked),rc=(pe,Ce)=>$(Ce,Ye=>Ye.column+Ye.colspan>=pe.grid.columns&&Ye.isLocked),aa=(pe,Ce)=>{const Ye=Xc(pe),st=qh(Ce);return oe(st,(St,Ut)=>{const Tn=Ye[Ut.column].map(os).getOr(0);return St+Tn},0)},Fs=pe=>(Ce,Ye)=>Vp(Ce,Ye).filter(st=>!(pe?gs:rc)(Ce,st)).map(st=>({details:st,pixelDelta:aa(Ce,st)})),$c=(pe,Ce)=>nh(pe,Ce).map(Ye=>({details:Ye,pixelDelta:-aa(pe,Ye)})),xc=pe=>(Ce,Ye)=>dp(Ce,Ye).filter(st=>!(pe?gs:rc)(Ce,st.cells)),_u=bc.transform("th"),qu=bc.transform("td"),Vc=Af(an,Vp,u,u,bc.modification),ml=Af(_n,Vp,u,u,bc.modification),Uc=Af(Dn,Fs(!0),zs,u,bc.modification),wu=Af(Cn,Fs(!1),zs,u,bc.modification),uf=Af(Po,$c,zs,Qe,bc.modification),ff=Af(gi,Vp,u,Qe,bc.modification),jc=Af(Jn,nh,u,u,_u),is=Af(Ar,nh,u,u,qu),Vs=Af(Jr,nh,u,u,_u),Ac=Af(uo,nh,u,u,qu),Bl=Af(ro,nh,u,u,qu),Uo=Af(lr,nh,u,u,_u),ql=Af(Or,nh,u,u,qu),Xs=Af(ni,iy,Ta,u,bc.merging),ac=Af(Ti,qO,Ta,u,bc.merging),Mc=Af(vi,gg,Ta,u,bc.modification),Mh=Af(ea,xc(!0),u,u,bc.modification),il=Af(La,xc(!1),u,u,bc.modification),Im=Af(ca,dp,u,u,bc.modification),ah=Af(Zi,dp,u,u,bc.modification),Bu=Bs,Hp=Ja,dc=Vl,Jf=(pe,Ce)=>pe.dispatch("NewRow",{node:Ce}),bg=(pe,Ce)=>pe.dispatch("NewCell",{node:Ce}),Dm=(pe,Ce,Ye)=>{pe.dispatch("TableModified",{...Ye,table:Ce})},q1=(pe,Ce,Ye,st,St)=>{pe.dispatch("TableSelectionChange",{cells:Ce,start:Ye,finish:st,otherCells:St})},Wx=pe=>{pe.dispatch("TableSelectionClear")},Ec=(pe,Ce,Ye,st,St)=>{pe.dispatch("ObjectResizeStart",{target:Ce,width:Ye,height:st,origin:St})},Qc=(pe,Ce,Ye,st,St)=>{pe.dispatch("ObjectResized",{target:Ce,width:Ye,height:st,origin:St})},Hc={structure:!1,style:!0},_s={structure:!0,style:!1},Jc={structure:!0,style:!0},Pc=(pe,Ce)=>Xg(pe)?Ls.percentageSize(Ce):Gg(pe)?Ls.pixelSize(Ce):Ls.getTableSize(Ce),W1=(pe,Ce,Ye)=>{const st=tu=>qt(T1(tu))==="table",St=tu=>!st(pe)||mg(tu).rows>1,Ut=tu=>!st(pe)||mg(tu).columns>1,un=C_(pe),Tn=Yf(pe)?u:hg,$n=tu=>{switch(A_(pe)){case"section":return Th.section();case"sectionCells":return Th.sectionCells();case"cells":return Th.cells();default:return Th.getTableSectionType(tu,"section")}},ur=(tu,t1)=>t1.cursor.fold(()=>{const Tw=xf(tu);return ye(Tw).filter(ao).map(vp=>{Ye.clearSelectedCells(tu.dom);const xa=pe.dom.createRng();return xa.selectNode(vp.dom),pe.selection.setRng(xa),lt(vp,"data-mce-selected","1"),xa})},Tw=>{const vp=su(Tw),xa=pe.dom.createRng();return xa.setStart(vp.element.dom,vp.offset),xa.setEnd(vp.element.dom,vp.offset),pe.selection.setRng(xa),Ye.clearSelectedCells(tu.dom),C.some(xa)}),Nr=(tu,t1,Tw,vp)=>(xa,p5,m5=!1)=>{zd(xa);const z3=Pt.fromDom(pe.getDoc()),v6=Tf(Tw,z3,un),Wb={sizing:Pc(pe,xa),resize:Yf(pe)?R1():z0(),section:$n(xa)};return t1(xa)?tu(xa,p5,v6,Wb).bind(mv=>{Ce.refresh(xa.dom),U(mv.newRows,Cw=>{Jf(pe,Cw.dom)}),U(mv.newCells,Cw=>{bg(pe,Cw.dom)});const y6=ur(xa,mv);return ao(xa)&&(zd(xa),m5||Dm(pe,xa.dom,vp)),y6.map(Cw=>({rng:Cw,effect:vp}))}):C.none()},Ro=Nr(ff,St,u,_s),ai=Nr(uf,Ut,u,_s),Ko=Nr(Vc,E,u,_s),Qo=Nr(ml,E,u,_s),_i=Nr(Uc,E,Tn,_s),To=Nr(wu,E,Tn,_s),Zo=Nr(Xs,E,u,_s),Yi=Nr(ac,E,u,_s),ri=Nr(Mh,E,u,_s),Ms=Nr(il,E,u,_s),al=Nr(Im,E,u,_s),Gs=Nr(ah,E,u,_s),td=Nr(Mc,E,u,Jc),zu=Nr(Uo,E,u,_s),e1=Nr(ql,E,u,_s),Ay=Nr(jc,E,u,_s),My=Nr(is,E,u,_s),Zs=Nr(Vs,E,u,_s),Rh=Nr(Ac,E,u,_s),Lh=Nr(Bl,E,u,_s);return{deleteRow:Ro,deleteColumn:ai,insertRowsBefore:Ko,insertRowsAfter:Qo,insertColumnsBefore:_i,insertColumnsAfter:To,mergeCells:Zo,unmergeCells:Yi,pasteColsBefore:ri,pasteColsAfter:Ms,pasteRowsBefore:al,pasteRowsAfter:Gs,pasteCells:td,makeCellsHeader:zu,unmakeCellsHeader:e1,makeColumnsHeader:Ay,unmakeColumnsHeader:My,makeRowsHeader:Zs,makeRowsBody:Rh,makeRowsFooter:Lh,getTableRowType:dc,getTableCellType:Hp,getTableColType:Bu}},uy=(pe,Ce,Ye)=>{const st=uc(pe,Ce,1);Ye===1||st<=1?at(pe,Ce):lt(pe,Ce,Math.min(Ye,st))},Y1=(pe,Ce)=>Ye=>{const st=Ye.column+Ye.colspan-1,St=Ye.column;return st>=pe&&St{if(Xi.hasColumns(pe)){const st=W(Xi.justColumns(pe),Y1(Ce,Ye)),St=j(st,un=>{const Tn=dr(un.element);return uy(Tn,"span",Ye-Ce),Tn}),Ut=Pt.fromTag("colgroup");return So(Ut,St),[Ut]}else return[]},X1=(pe,Ce,Ye)=>j(pe.all,st=>{const St=W(st.cells,Y1(Ce,Ye)),Ut=j(St,Tn=>{const $n=dr(Tn.element);return uy($n,"colspan",Ye-Ce),$n}),un=Pt.fromTag("tr");return So(un,Ut),un}),G1=(pe,Ce)=>{const Ye=Xi.fromTable(pe);return nh(Ye,Ce).map(St=>{const Ut=St[St.length-1],un=St[0].column,Tn=Ut.column+Ut.colspan,$n=H0(Ye,un,Tn),ur=X1(Ye,un,Tn);return[...$n,...ur]})},K1=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe);return Vp(st,Ce).bind(Ut=>{const un=z1(st,Ye,!1),$n=Kl(un).rows.slice(Ut[0].row,Ut[Ut.length-1].row+Ut[Ut.length-1].rowspan),ur=he($n,Ro=>{const ai=W(Ro.cells,Ko=>!Ko.isLocked);return ai.length>0?[{...Ro,cells:ai}]:[]}),Nr=oy(ur);return Nf(Nr.length>0,Nr)}).map(Ut=>Em(Ut))},Zp=Rm.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),fy=(pe,Ce,Ye)=>{const st=Ye.substring(0,Ye.length-pe.length),St=parseFloat(st);return st===St.toString()?Ce(St):Zp.invalid(Ye)},Bm={...Zp,from:pe=>Cu(pe,"%")?fy("%",Zp.percent,pe):Cu(pe,"px")?fy("px",Zp.pixels,pe):Zp.invalid(pe)},Sb=(pe,Ce)=>j(pe,Ye=>Bm.from(Ye).fold(()=>Ye,St=>St/Ce*100+"%",St=>St+"%")),Wu=(pe,Ce,Ye)=>{const st=Ye/Ce;return j(pe,St=>Bm.from(St).fold(()=>St,un=>un*st+"px",un=>un/100*Ye+"px"))},Yx=(pe,Ce)=>{const Ye=pe.fold(()=>v(""),st=>{const St=st/Ce;return v(St+"px")},()=>{const st=100/Ce;return v(st+"%")});return Q(Ce,Ye)},J1=(pe,Ce,Ye)=>pe.fold(()=>Ce,st=>Wu(Ce,Ye,st),st=>Sb(Ce,Ye)),xd=(pe,Ce,Ye)=>{const st=Bm.from(Ye),St=se(pe,Ut=>Ut==="0px")?Yx(st,pe.length):J1(st,pe,Ce);return _d(St)},a0=(pe,Ce)=>pe.length===0?Ce:K(pe,(Ye,st)=>Bm.from(st).fold(v(0),_,_)+Ye,0),dy=(pe,Ce)=>{const Ye=Math.floor(pe);return{value:Ye+Ce,remainder:pe-Ye}},hp=(pe,Ce)=>Bm.from(pe).fold(v(pe),Ye=>Ye+Ce+"px",Ye=>Ye+Ce+"%"),_d=pe=>{if(pe.length===0)return pe;const Ce=K(pe,(st,St)=>{const Ut=Bm.from(St).fold(()=>({value:St,remainder:0}),un=>dy(un,"px"),un=>({value:un+"%",remainder:0}));return{output:[Ut.value].concat(st.output),remainder:st.remainder+Ut.remainder}},{output:[],remainder:0}),Ye=Ce.output;return Ye.slice(0,Ye.length-1).concat([hp(Ye[Ye.length-1],Math.round(Ce.remainder))])},xg=Bm.from,kb=(pe,Ce,Ye)=>{U(Ce,st=>{const St=pe.slice(st.column,st.colspan+st.column),Ut=a0(St,Mp());ks(st.element,"width",Ut+Ye)})},Tb=(pe,Ce,Ye)=>{U(Ce,(st,St)=>{const Ut=a0([pe[St]],Mp());ks(st.element,"width",Ut+Ye)})},Xx=(pe,Ce,Ye)=>{U(Ye,st=>{Es(st.element,"height")}),U(Ce,(st,St)=>{ks(st.element,"height",pe[St])})},Z0=pe=>xg(pe).fold(v("px"),v("px"),v("%")),Cb=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe),St=st.all,Ut=Xi.justCells(st),un=Xi.justColumns(st);Ce.each(Tn=>{const $n=Z0(Tn),ur=js(pe),Nr=Ui(st,pe),Ro=xd(Nr,ur,Tn);Xi.hasColumns(st)?Tb(Ro,un,$n):kb(Ro,Ut,$n),ks(pe,"width",Tn)}),Ye.each(Tn=>{const $n=Qf(pe),ur=bs(st,pe),Nr=xd(ur,$n,Tn);Xx(Nr,St,Ut),ks(pe,"height",Tn)})},tw=Zr,hy=Mo,eu=$o,Eh=pe=>{at(pe,"width"),at(pe,"height")},ev=pe=>{const Ce=Pr(pe);Cb(pe,C.some(Ce),C.none()),Eh(pe)},_g=pe=>{const Ce=rr(pe);Cb(pe,C.some(Ce),C.none()),Eh(pe)},Ab=pe=>{const Ce=Dr(pe);Cb(pe,C.none(),C.some(Ce)),Eh(pe)},nw=pe=>{Es(pe,"width");const Ce=tf(pe),Ye=Ce.length>0?Ce:xf(pe);U(Ye,st=>{Es(st,"width"),Eh(st)}),Eh(pe)},Mb={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},wg=()=>Pt.fromTag("th"),tv=()=>Pt.fromTag("td"),py=()=>Pt.fromTag("col"),Gx=(pe,Ce,Ye,st)=>{const St=Pt.fromTag("tr");for(let Ut=0;Ut{const Ce=Pt.fromTag("colgroup");return Q(pe,()=>$r(Ce,py())),Ce},nv=(pe,Ce,Ye,st)=>Q(pe,St=>Gx(Ce,Ye,st,St)),e3=(pe,Ce,Ye,st,St,Ut=Mb)=>{const un=Pt.fromTag("table"),Tn=St!=="cells";$f(un,Ut.styles),yt(un,Ut.attributes),Ut.colGroups&&$r(un,Eb(Ce));const $n=Math.min(pe,Ye);if(Tn&&Ye>0){const Ko=Pt.fromTag("thead");$r(un,Ko);const _i=nv(Ye,Ce,St==="sectionCells"?$n:0,st);So(Ko,_i)}const ur=Pt.fromTag("tbody");$r(un,ur);const Nr=Tn?pe-$n:pe,ai=nv(Nr,Ce,Tn?0:Ye,st);return So(ur,ai),un},my=pe=>pe.dom.innerHTML,wd=pe=>{const Ce=Pt.fromTag("div"),Ye=Pt.fromDom(pe.dom.cloneNode(!0));return $r(Ce,Ye),my(Ce)},Kx=(pe,Ce)=>{pe.selection.select(Ce.dom,!0),pe.selection.collapse(!0)},Jx=(pe,Ce)=>{Ku(Ce,"td,th").each(A(Kx,pe))},e2=(pe,Ce)=>{U(ra(Ce,"tr"),Ye=>{Jf(pe,Ye.dom),U(ra(Ye,"th,td"),st=>{bg(pe,st.dom)})})},Pb=pe=>l(pe)&&pe.indexOf("%")!==-1,Wh=(pe,Ce,Ye,st,St)=>{const Ut=L0(pe),un={styles:Ut,attributes:Xf(pe),colGroups:Px(pe)};return pe.undoManager.ignore(()=>{const Tn=e3(Ye,Ce,St,st,A_(pe),un);lt(Tn,"data-mce-id","__mce");const $n=wd(Tn);pe.insertContent($n),pe.addVisual()}),Ku(T1(pe),'table[data-mce-id="__mce"]').map(Tn=>(Gg(pe)?_g(Tn):lp(pe)?nw(Tn):(Xg(pe)||Pb(Ut.width))&&ev(Tn),zd(Tn),at(Tn,"data-mce-id"),e2(pe,Tn),Jx(pe,Tn),Tn.dom)).getOrNull()},t2=(pe,Ce,Ye,st={})=>{const St=Ut=>a(Ut)&&Ut>0;if(St(Ce)&&St(Ye)){const Ut=st.headerRows||0,un=st.headerColumns||0;return Wh(pe,Ye,Ce,un,Ut)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var Rb=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const zm="x-tinymce/dom-table-",rw=zm+"rows",n2=zm+"columns",Fm=pe=>{const Ce=Rb.FakeClipboardItem(pe);Rb.write([Ce])},q0=pe=>{var Ce;const Ye=(Ce=Rb.read())!==null&&Ce!==void 0?Ce:[];return Se(Ye,st=>C.from(st.getType(pe)))},rv=pe=>{q0(pe).isSome()&&Rb.clear()},ov=pe=>{pe.fold(t3,Ce=>Fm({[rw]:Ce}))},iv=()=>q0(rw),t3=()=>rv(rw),ow=pe=>{pe.fold(aw,Ce=>Fm({[n2]:Ce}))},iw=()=>q0(n2),aw=()=>rv(n2),gy=pe=>jO(fp(pe),Tm(pe)).filter(Cm),W0=pe=>z_(fp(pe),Tm(pe)).filter(Cm),Og=(pe,Ce)=>{const Ye=Tm(pe),st=()=>gy(pe).each(To=>{Au(To,Ye).filter(x(Ye)).each(Zo=>{const Yi=Pt.fromText("");if(Fr(Zo,Yi),li(Zo),pe.dom.isEmpty(pe.getBody()))pe.setContent(""),pe.selection.setCursorLocation();else{const ri=pe.dom.createRng();ri.setStart(Yi.dom,0),ri.setEnd(Yi.dom,0),pe.selection.setRng(ri),pe.nodeChanged()}})}),St=To=>gy(pe).each(Zo=>{lp(pe)||Gg(pe)||Xg(pe)||Au(Zo,Ye).each(ri=>{To==="relative"&&!tw(ri)?ev(ri):To==="fixed"&&!hy(ri)?_g(ri):To==="responsive"&&!eu(ri)&&nw(ri),zd(ri),Dm(pe,ri.dom,_s)})}),Ut=To=>Au(To,Ye),un=To=>W0(pe).bind(Zo=>Ut(Zo).map(Yi=>To(Yi,Zo))),Tn=(To,Zo)=>{un(Yi=>{pe.formatter.toggle("tableclass",{value:Zo},Yi.dom),Dm(pe,Yi.dom,Hc)})},$n=(To,Zo)=>{un(Yi=>{const ri=Sl(pe),al=se(ri,Gs=>pe.formatter.match("tablecellclass",{value:Zo},Gs.dom))?pe.formatter.remove:pe.formatter.apply;U(ri,Gs=>al("tablecellclass",{value:Zo},Gs.dom)),Dm(pe,Yi.dom,Hc)})},ur=()=>{gy(pe).each(To=>{Au(To,Ye).each(Zo=>{ga(Zo,"caption").fold(()=>{const Yi=Pt.fromTag("caption");$r(Yi,Pt.fromText("Caption")),Kr(Zo,Yi,0),pe.selection.setCursorLocation(Yi.dom,0)},Yi=>{vt("caption")(To)&&dn("td",Zo).each(ri=>pe.selection.setCursorLocation(ri.dom,0)),li(Yi)}),Dm(pe,Zo.dom,_s)})})},Nr=To=>{pe.focus()},Ro=(To,Zo=!1)=>un((Yi,ri)=>{const Ms=Dx(Sl(pe),Yi,ri);To(Yi,Ms,Zo).each(Nr)}),ai=()=>un((To,Zo)=>{const Yi=Dx(Sl(pe),To,Zo),ri=Tf(u,Pt.fromDom(pe.getDoc()),C.none());return K1(To,Yi,ri)}),Ko=()=>un((To,Zo)=>{const Yi=Dx(Sl(pe),To,Zo);return G1(To,Yi)}),Qo=(To,Zo)=>Zo().each(Yi=>{const ri=j(Yi,Ms=>dr(Ms));un((Ms,al)=>{const Gs=Hv(Pt.fromDom(pe.getDoc())),td=t0(Sl(pe),al,ri,Gs);To(Ms,td).each(Nr)})}),_i=To=>(Zo,Yi)=>Le(Yi,"type").each(ri=>{Ro(To(ri),Yi.no_events)});Ie({mceTableSplitCells:()=>Ro(Ce.unmergeCells),mceTableMergeCells:()=>Ro(Ce.mergeCells),mceTableInsertRowBefore:()=>Ro(Ce.insertRowsBefore),mceTableInsertRowAfter:()=>Ro(Ce.insertRowsAfter),mceTableInsertColBefore:()=>Ro(Ce.insertColumnsBefore),mceTableInsertColAfter:()=>Ro(Ce.insertColumnsAfter),mceTableDeleteCol:()=>Ro(Ce.deleteColumn),mceTableDeleteRow:()=>Ro(Ce.deleteRow),mceTableCutCol:()=>Ko().each(To=>{ow(To),Ro(Ce.deleteColumn)}),mceTableCutRow:()=>ai().each(To=>{ov(To),Ro(Ce.deleteRow)}),mceTableCopyCol:()=>Ko().each(To=>ow(To)),mceTableCopyRow:()=>ai().each(To=>ov(To)),mceTablePasteColBefore:()=>Qo(Ce.pasteColsBefore,iw),mceTablePasteColAfter:()=>Qo(Ce.pasteColsAfter,iw),mceTablePasteRowBefore:()=>Qo(Ce.pasteRowsBefore,iv),mceTablePasteRowAfter:()=>Qo(Ce.pasteRowsAfter,iv),mceTableDelete:st,mceTableCellToggleClass:$n,mceTableToggleClass:Tn,mceTableToggleCaption:ur,mceTableSizingMode:(To,Zo)=>St(Zo),mceTableCellType:_i(To=>To==="th"?Ce.makeCellsHeader:Ce.unmakeCellsHeader),mceTableColType:_i(To=>To==="th"?Ce.makeColumnsHeader:Ce.unmakeColumnsHeader),mceTableRowType:_i(To=>{switch(To){case"header":return Ce.makeRowsHeader;case"footer":return Ce.makeRowsFooter;default:return Ce.makeRowsBody}})},(To,Zo)=>pe.addCommand(Zo,To)),pe.addCommand("mceInsertTable",(To,Zo)=>{t2(pe,Zo.rows,Zo.columns,Zo.options)}),pe.addCommand("mceTableApplyCellStyle",(To,Zo)=>{const Yi=al=>"tablecell"+al.toLowerCase().replace("-","");if(!n(Zo))return;const ri=W(Sl(pe),Cm);if(ri.length===0)return;const Ms=$e(Zo,(al,Gs)=>pe.formatter.has(Yi(Gs))&&l(al));Ze(Ms)||(Ie(Ms,(al,Gs)=>{const td=Yi(Gs);U(ri,zu=>{al===""?pe.formatter.remove(td,{value:null},zu.dom,!0):pe.formatter.apply(td,{value:al},zu.dom)})}),Ut(ri[0]).each(al=>Dm(pe,al.dom,Hc)))})},n3=(pe,Ce)=>{const Ye=Tm(pe),st=St=>z_(fp(pe)).bind(Ut=>Au(Ut,Ye).map(un=>{const Tn=Dx(Sl(pe),un,Ut);return St(un,Tn)})).getOr("");Ie({mceTableRowType:()=>st(Ce.getTableRowType),mceTableCellType:()=>st(Ce.getTableCellType),mceTableColType:()=>st(Ce.getTableColType)},(St,Ut)=>pe.addQueryValueHandler(Ut,St))},vy=Rm.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),sw=(pe,Ce,Ye,st)=>pe.fold(Ce,Ye,st),pp=pe=>pe.fold(_,_,_),r2=vy.before,yy=vy.on,Lb=vy.after,Od={before:r2,on:yy,after:Lb,cata:sw,getStart:pp},s0={create:(pe,Ce)=>({selection:pe,kill:Ce})},Ib=(pe,Ce)=>{const Ye=pe.document.createRange();return Ye.selectNode(Ce.dom),Ye},l0=(pe,Ce)=>{const Ye=pe.document.createRange();return Y0(Ye,Ce),Ye},Y0=(pe,Ce)=>pe.selectNodeContents(Ce.dom),AS=(pe,Ce)=>{Ce.fold(Ye=>{pe.setStartBefore(Ye.dom)},(Ye,st)=>{pe.setStart(Ye.dom,st)},Ye=>{pe.setStartAfter(Ye.dom)})},r3=(pe,Ce)=>{Ce.fold(Ye=>{pe.setEndBefore(Ye.dom)},(Ye,st)=>{pe.setEnd(Ye.dom,st)},Ye=>{pe.setEndAfter(Ye.dom)})},o3=(pe,Ce,Ye)=>{const st=pe.document.createRange();return AS(st,Ce),r3(st,Ye),st},o2=(pe,Ce,Ye,st,St)=>{const Ut=pe.document.createRange();return Ut.setStart(Ce.dom,Ye),Ut.setEnd(st.dom,St),Ut},i2=pe=>({left:pe.left,top:pe.top,right:pe.right,bottom:pe.bottom,width:pe.width,height:pe.height}),MS=pe=>{const Ce=pe.getClientRects(),Ye=Ce.length>0?Ce[0]:pe.getBoundingClientRect();return Ye.width>0||Ye.height>0?C.some(Ye).map(i2):C.none()},Db=Rm.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),lw=(pe,Ce,Ye)=>Ce(Pt.fromDom(Ye.startContainer),Ye.startOffset,Pt.fromDom(Ye.endContainer),Ye.endOffset),ES=(pe,Ce)=>Ce.match({domRange:Ye=>({ltr:v(Ye),rtl:C.none}),relative:(Ye,st)=>({ltr:Ep(()=>o3(pe,Ye,st)),rtl:Ep(()=>C.some(o3(pe,st,Ye)))}),exact:(Ye,st,St,Ut)=>({ltr:Ep(()=>o2(pe,Ye,st,St,Ut)),rtl:Ep(()=>C.some(o2(pe,St,Ut,Ye,st)))})}),cw=(pe,Ce)=>{const Ye=Ce.ltr();return Ye.collapsed?Ce.rtl().filter(St=>St.collapsed===!1).map(St=>Db.rtl(Pt.fromDom(St.endContainer),St.endOffset,Pt.fromDom(St.startContainer),St.startOffset)).getOrThunk(()=>lw(pe,Db.ltr,Ye)):lw(pe,Db.ltr,Ye)},qp=(pe,Ce)=>{const Ye=ES(pe,Ce);return cw(pe,Ye)},av=(pe,Ce)=>qp(pe,Ce).match({ltr:(st,St,Ut,un)=>{const Tn=pe.document.createRange();return Tn.setStart(st.dom,St),Tn.setEnd(Ut.dom,un),Tn},rtl:(st,St,Ut,un)=>{const Tn=pe.document.createRange();return Tn.setStart(Ut.dom,un),Tn.setEnd(st.dom,St),Tn}});Db.ltr,Db.rtl;const Nm={create:(pe,Ce,Ye,st)=>({start:pe,soffset:Ce,finish:Ye,foffset:st})},PS={create:(pe,Ce,Ye,st)=>({start:Od.on(pe,Ce),finish:Od.on(Ye,st)})},PT=(pe,Ce)=>{const Ye=av(pe,Ce);return Nm.create(Pt.fromDom(Ye.startContainer),Ye.startOffset,Pt.fromDom(Ye.endContainer),Ye.endOffset)},a3=PS.create,FM=(pe,Ce,Ye,st,St,Ut,un)=>vn(Ye,St)&&st===Ut?C.none():qc(Ye,"td,th",Ce).bind(Tn=>qc(St,"td,th",Ce).bind($n=>by(pe,Ce,Tn,$n,un))),by=(pe,Ce,Ye,st,St)=>vn(Ye,st)?C.none():Xv(Ye,st,Ce).bind(Ut=>{const un=Ut.boxes.getOr([]);return un.length>1?(St(pe,un,Ut.start,Ut.finish),C.some(s0.create(C.some(a3(Ye,0,Ye,Rl(Ye))),!0))):C.none()}),ID=(pe,Ce,Ye,st,St)=>{const Ut=un=>(St.clearBeforeUpdate(Ye),St.selectRange(Ye,un.boxes,un.start,un.finish),un.boxes);return E1(st,pe,Ce,St.firstSelectedSelector,St.lastSelectedSelector).map(Ut)},a2=(pe,Ce)=>({item:pe,mode:Ce}),s3=(pe,Ce,Ye,st=s2)=>pe.property().parent(Ce).map(St=>a2(St,st)),s2=(pe,Ce,Ye,st=l2)=>Ye.sibling(pe,Ce).map(St=>a2(St,st)),l2=(pe,Ce,Ye,st=l2)=>{const St=pe.property().children(Ce);return Ye.first(St).map(un=>a2(un,st))},NM=[{current:s3,next:s2,fallback:C.none()},{current:s2,next:l2,fallback:C.some(s3)},{current:l2,next:l2,fallback:C.some(s2)}],RT=(pe,Ce,Ye,st,St=NM)=>Y(St,un=>un.current===Ye).bind(un=>un.current(pe,Ce,st,un.next).orThunk(()=>un.fallback.bind(Tn=>RT(pe,Ce,Tn,st)))),sv={left:()=>({sibling:(Ye,st)=>Ye.query().prevSibling(st),first:Ye=>Ye.length>0?C.some(Ye[Ye.length-1]):C.none()}),right:()=>({sibling:(Ye,st)=>Ye.query().nextSibling(st),first:Ye=>Ye.length>0?C.some(Ye[0]):C.none()})},RS=(pe,Ce,Ye,st,St,Ut)=>RT(pe,Ce,st,St).bind(Tn=>Ut(Tn.item)?C.none():Ye(Tn.item)?C.some(Tn.item):RS(pe,Tn.item,Ye,Tn.mode,St,Ut)),LS=(pe,Ce,Ye,st)=>RS(pe,Ce,Ye,s2,sv.left(),st),VM=(pe,Ce,Ye,st)=>RS(pe,Ce,Ye,s2,sv.right(),st),IS=pe=>Ce=>pe.property().children(Ce).length===0,LT=(pe,Ce,Ye)=>DT(pe,Ce,IS(pe),Ye),IT=(pe,Ce,Ye)=>c2(pe,Ce,IS(pe),Ye),DT=LS,c2=VM,c3=fg(),Bb=(pe,Ce)=>LT(c3,pe,Ce),lv=(pe,Ce)=>IT(c3,pe,Ce),fw=(pe,Ce,Ye)=>DT(c3,pe,Ce,Ye),u2=(pe,Ce,Ye)=>c2(c3,pe,Ce,Ye),UM=(pe,Ce,Ye)=>Aa(pe,Ce,Ye).isSome(),c0=Rm.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Wp=(pe,Ce,Ye)=>{const st=pe.getRect(Ce),St=pe.getRect(Ye);return St.right>st.left&&St.leftqc(pe,"tr"),zb={...c0,verify:(pe,Ce,Ye,st,St,Ut,un)=>qc(st,"td,th",un).bind(Tn=>qc(Ce,"td,th",un).map($n=>vn(Tn,$n)?vn(st,Tn)&&Rl(Tn)===St?Ut($n):c0.none("in same cell"):$p(u3,[Tn,$n]).fold(()=>Wp(pe,$n,Tn)?c0.success():Ut($n),ur=>Ut($n)))).getOr(c0.none("default")),cata:(pe,Ce,Ye,st,St)=>pe.fold(Ce,Ye,st,St)},f2=(pe,Ce,Ye,st)=>({parent:pe,children:Ce,element:Ye,index:st}),d2=pe=>Sr(pe).bind(Ce=>{const Ye=Kn(Ce);return $d(Ye,pe).map(st=>f2(Ce,Ye,pe,st))}),$d=(pe,Ce)=>ee(pe,A(vn,Ce)),f3=vt("br"),Fb=(pe,Ce,Ye)=>Ce(pe,Ye).bind(st=>gn(st)&&qf(st).trim().length===0?Fb(st,Ce,Ye):C.some(st)),d3=(pe,Ce,Ye)=>Ye.traverse(Ce).orThunk(()=>Fb(Ce,Ye.gather,pe)).map(Ye.relative),BT=(pe,Ce)=>_r(pe,Ce).filter(f3).orThunk(()=>_r(pe,Ce-1).filter(f3)),DS=(pe,Ce,Ye,st)=>BT(Ce,Ye).bind(St=>st.traverse(St).fold(()=>Fb(St,st.gather,pe).map(st.relative),Ut=>d2(Ut).map(un=>Od.on(un.parent,un.index)))),h3=(pe,Ce,Ye,st)=>(f3(Ce)?d3(pe,Ce,st):DS(pe,Ce,Ye,st)).map(Ut=>({start:Ut,finish:Ut})),Mf=pe=>zb.cata(pe,Ce=>C.none(),()=>C.none(),Ce=>C.some(th(Ce,0)),Ce=>C.some(th(Ce,Rl(Ce)))),p3=(pe,Ce)=>({left:pe.left,top:pe.top+Ce,right:pe.right,bottom:pe.bottom+Ce}),kg=(pe,Ce)=>({left:pe.left,top:pe.top-Ce,right:pe.right,bottom:pe.bottom-Ce}),BS=(pe,Ce,Ye)=>({left:pe.left+Ce,top:pe.top+Ye,right:pe.right+Ce,bottom:pe.bottom+Ye}),zS=pe=>pe.top,cv=pe=>pe.bottom,zT=(pe,Ce,Ye)=>Ye>=0&&Ye0?pe.getRangedRect(Ce,Ye-1,Ce,Ye):C.none(),xy=pe=>({left:pe.left,top:pe.top,right:pe.right,bottom:pe.bottom}),m3=(pe,Ce)=>C.some(pe.getRect(Ce)),g3=(pe,Ce,Ye)=>nn(Ce)?m3(pe,Ce).map(xy):gn(Ce)?zT(pe,Ce,Ye).map(xy):C.none(),FS=(pe,Ce)=>nn(Ce)?m3(pe,Ce).map(xy):gn(Ce)?pe.getRangedRect(Ce,0,Ce,Rl(Ce)).map(xy):C.none(),Nb=5,h2=100,Sd=Rm.generate([{none:[]},{retry:["caret"]}]),FT=(pe,Ce)=>pe.leftCe.right,NS=(pe,Ce,Ye)=>Xl(Ce,qr).fold(T,st=>FS(pe,st).exists(St=>FT(Ye,St))),$S=(pe,Ce,Ye,st,St)=>{const Ut=p3(St,Nb);return Math.abs(Ye.bottom-st.bottom)<1||Ye.top>St.bottom?Sd.retry(Ut):Ye.top===St.bottom?Sd.retry(p3(St,1)):NS(pe,Ce,St)?Sd.retry(BS(Ut,Nb,0)):Sd.none()},VS={point:zS,adjuster:(pe,Ce,Ye,st,St)=>{const Ut=kg(St,Nb);return Math.abs(Ye.top-st.top)<1||Ye.bottompe.elementFromPoint(Ce,Ye).filter(st=>qt(st)==="table").isSome(),Yp=(pe,Ce,Ye,st,St)=>uv(pe,Ce,Ye,Ce.move(st,Nb),St),uv=(pe,Ce,Ye,st,St)=>St===0?C.some(st):VT(pe,st.left,Ce.point(st))?Yp(pe,Ce,Ye,st,St-1):pe.situsFromPoint(st.left,Ce.point(st)).bind(Ut=>Ut.start.fold(C.none,un=>FS(pe,un).bind(Tn=>Ce.adjuster(pe,un,Tn,Ye,st).fold(C.none,$n=>uv(pe,Ce,Ye,$n,St-1))).orThunk(()=>C.some(st)),C.none)),UT=(pe,Ce,Ye)=>pe.point(Ce)>Ye.getInnerHeight()?C.some(pe.point(Ce)-Ye.getInnerHeight()):pe.point(Ce)<0?C.some(-pe.point(Ce)):C.none(),$b=(pe,Ce,Ye)=>{const st=pe.move(Ye,Nb),St=uv(Ce,pe,Ye,st,h2).getOr(st);return UT(pe,St,Ce).fold(()=>Ce.situsFromPoint(St.left,pe.point(St)),Ut=>(Ce.scrollBy(0,Ut),Ce.situsFromPoint(St.left,pe.point(St)-Ut)))},sh={tryUp:A($b,VS),tryDown:A($b,$T),getJumpSize:v(Nb)},mp=20,lh=(pe,Ce,Ye)=>pe.getSelection().bind(st=>h3(Ce,st.finish,st.foffset,Ye).fold(()=>C.some(th(st.finish,st.foffset)),St=>{const Ut=pe.fromSitus(St),un=zb.verify(pe,st.finish,st.foffset,Ut.finish,Ut.foffset,Ye.failure,Ce);return Mf(un)})),Xp=(pe,Ce,Ye,st,St,Ut)=>Ut===0?C.none():Vb(pe,Ce,Ye,st,St).bind(un=>{const Tn=pe.fromSitus(un),$n=zb.verify(pe,Ye,st,Tn.finish,Tn.foffset,St.failure,Ce);return zb.cata($n,()=>C.none(),()=>C.some(un),ur=>vn(Ye,ur)&&st===0?v3(pe,Ye,st,kg,St):Xp(pe,Ce,ur,0,St,Ut-1),ur=>vn(Ye,ur)&&st===Rl(ur)?v3(pe,Ye,st,p3,St):Xp(pe,Ce,ur,Rl(ur),St,Ut-1))}),v3=(pe,Ce,Ye,st,St)=>g3(pe,Ce,Ye).bind(Ut=>Gp(pe,St,st(Ut,sh.getJumpSize()))),Gp=(pe,Ce,Ye)=>{const st=np().browser;return st.isChromium()||st.isSafari()||st.isFirefox()?Ce.retry(pe,Ye):C.none()},Vb=(pe,Ce,Ye,st,St)=>g3(pe,Ye,st).bind(Ut=>Gp(pe,St,Ut)),QM=(pe,Ce,Ye)=>lh(pe,Ce,Ye).bind(st=>Xp(pe,Ce,st.element,st.offset,Ye,mp).map(pe.fromSitus)),jT=(pe,Ce)=>UM(pe,Ye=>Sr(Ye).exists(st=>vn(st,Ce))),HM=(pe,Ce,Ye,st,St)=>qc(st,"td,th",Ce).bind(Ut=>qc(Ut,"table",Ce).bind(un=>jT(St,un)?QM(pe,Ce,Ye).bind(Tn=>qc(Tn.finish,"td,th",Ce).map($n=>({start:Ut,finish:$n,range:Tn}))):C.none())),QT=(pe,Ce,Ye,st,St,Ut)=>Ut(st,Ce).orThunk(()=>HM(pe,Ce,Ye,st,St).map(un=>{const Tn=un.range;return s0.create(C.some(a3(Tn.start,Tn.soffset,Tn.finish,Tn.foffset)),!0)})),HT=(pe,Ce)=>qc(pe,"tr",Ce).bind(Ye=>qc(Ye,"table",Ce).bind(st=>{const St=ra(st,"tr");return vn(Ye,St[0])?fw(st,Ut=>Ax(Ut).isSome(),Ce).map(Ut=>{const un=Rl(Ut);return s0.create(C.some(a3(Ut,un,Ut,un)),!0)}):C.none()})),US=(pe,Ce)=>qc(pe,"tr",Ce).bind(Ye=>qc(Ye,"table",Ce).bind(st=>{const St=ra(st,"tr");return vn(Ye,St[St.length-1])?u2(st,Ut=>eh(Ut).isSome(),Ce).map(Ut=>s0.create(C.some(a3(Ut,0,Ut,0)),!0)):C.none()})),jS=(pe,Ce,Ye,st,St,Ut,un)=>HM(pe,Ye,st,St,Ut).bind(Tn=>by(Ce,Ye,Tn.start,Tn.finish,un)),ed=pe=>{let Ce=pe;return{get:()=>Ce,set:St=>{Ce=St}}},QS=pe=>{const Ce=ed(C.none()),Ye=()=>Ce.get().each(pe);return{clear:()=>{Ye(),Ce.set(C.none())},isSet:()=>Ce.get().isSome(),get:()=>Ce.get(),set:Tn=>{Ye(),Ce.set(C.some(Tn))}}},_y=()=>{const pe=QS(u);return{...pe,on:Ye=>pe.get().each(Ye)}},p2=(pe,Ce)=>qc(pe,"td,th",Ce),HS=pe=>ar(pe).exists(Kg),y3=(pe,Ce,Ye,st)=>{const St=_y(),Ut=St.clear,un=Nr=>{St.on(Ro=>{st.clearBeforeUpdate(Ce),p2(Nr.target,Ye).each(ai=>{Xv(Ro,ai,Ye).each(Ko=>{const Qo=Ko.boxes.getOr([]);if(Qo.length===1){const _i=Qo[0],To=M_(_i)==="false",Zo=Yd(zp(Nr.target),_i,vn);To&&Zo&&(st.selectRange(Ce,Qo,_i,_i),pe.selectContents(_i))}else Qo.length>1&&(st.selectRange(Ce,Qo,Ko.start,Ko.finish),pe.selectContents(ai))})})})};return{clearstate:Ut,mousedown:Nr=>{st.clear(Ce),p2(Nr.target,Ye).filter(HS).each(St.set)},mouseover:Nr=>{un(Nr)},mouseup:Nr=>{un(Nr),Ut()}}},dw={traverse:Wn,gather:lv,relative:Od.before,retry:sh.tryDown,failure:zb.failedDown},ZS={traverse:ir,gather:Bb,relative:Od.before,retry:sh.tryUp,failure:zb.failedUp},m2=pe=>Ce=>Ce===pe,qS=m2(38),X0=m2(40),Ub=pe=>pe>=37&&pe<=40,ZT={isBackward:m2(37),isForward:m2(39)},fv={isBackward:m2(39),isForward:m2(37)},Kp=pe=>{const Ce=pe!==void 0?pe.dom:document,Ye=Ce.body.scrollLeft||Ce.documentElement.scrollLeft,st=Ce.body.scrollTop||Ce.documentElement.scrollTop;return Gc(Ye,st)},qT=(pe,Ce,Ye)=>{const St=(Ye!==void 0?Ye.dom:document).defaultView;St&&St.scrollBy(pe,Ce)},G0=Rm.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),jb=pe=>G0.exact(pe.start,pe.soffset,pe.finish,pe.foffset),WS=pe=>pe.match({domRange:Ce=>Pt.fromDom(Ce.startContainer),relative:(Ce,Ye)=>Od.getStart(Ce),exact:(Ce,Ye,st,St)=>Ce}),b3=G0.domRange,WT=G0.relative,ZM=G0.exact,qM=pe=>{const Ce=WS(pe);return xr(Ce)},YT=Nm.create,wy={domRange:b3,relative:WT,exact:ZM,exactFromRange:jb,getWin:qM,range:YT},g2=(pe,Ce,Ye)=>{var st,St;return C.from((St=(st=pe.dom).caretPositionFromPoint)===null||St===void 0?void 0:St.call(st,Ce,Ye)).bind(Ut=>{if(Ut.offsetNode===null)return C.none();const un=pe.dom.createRange();return un.setStart(Ut.offsetNode,Ut.offset),un.collapse(),C.some(un)})},hw=(pe,Ce,Ye)=>{var st,St;return C.from((St=(st=pe.dom).caretRangeFromPoint)===null||St===void 0?void 0:St.call(st,Ce,Ye))},WM=(()=>document.caretPositionFromPoint?g2:document.caretRangeFromPoint?hw:C.none)(),YM=(pe,Ce,Ye)=>{const st=Pt.fromDom(pe.document);return WM(st,Ce,Ye).map(St=>Nm.create(Pt.fromDom(St.startContainer),St.startOffset,Pt.fromDom(St.endContainer),St.endOffset))},v2=(pe,Ce)=>{const Ye=qt(pe);return Ye==="input"?Od.after(pe):z(["br","img"],Ye)?Ce===0?Od.before(pe):Od.after(pe):Od.on(pe,Ce)},YS=(pe,Ce)=>{const Ye=pe.fold(Od.before,v2,Od.after),st=Ce.fold(Od.before,v2,Od.after);return wy.relative(Ye,st)},x3=(pe,Ce,Ye,st)=>{const St=v2(pe,Ce),Ut=v2(Ye,st);return wy.relative(St,Ut)},XS=(pe,Ce,Ye,st)=>{const Ut=En(pe).dom.createRange();return Ut.setStart(pe.dom,Ce),Ut.setEnd(Ye.dom,st),Ut},GS=(pe,Ce,Ye,st)=>{const St=XS(pe,Ce,Ye,st),Ut=vn(pe,Ye)&&Ce===st;return St.collapsed&&!Ut},y2=pe=>C.from(pe.getSelection()),KS=(pe,Ce)=>{y2(pe).each(Ye=>{Ye.removeAllRanges(),Ye.addRange(Ce)})},b2=(pe,Ce,Ye,st,St)=>{const Ut=o2(pe,Ce,Ye,st,St);KS(pe,Ut)},JS=(pe,Ce,Ye,st,St,Ut)=>{Ce.collapse(Ye.dom,st),Ce.extend(St.dom,Ut)},ps=(pe,Ce)=>qp(pe,Ce).match({ltr:(Ye,st,St,Ut)=>{b2(pe,Ye,st,St,Ut)},rtl:(Ye,st,St,Ut)=>{y2(pe).each(un=>{if(un.setBaseAndExtent)un.setBaseAndExtent(Ye.dom,st,St.dom,Ut);else if(un.extend)try{JS(pe,un,Ye,st,St,Ut)}catch{b2(pe,St,Ut,Ye,st)}else b2(pe,St,Ut,Ye,st)})}}),K0=(pe,Ce,Ye,st,St)=>{const Ut=x3(Ce,Ye,st,St);ps(pe,Ut)},Qb=(pe,Ce,Ye)=>{const st=YS(Ce,Ye);ps(pe,st)},pw=pe=>{if(pe.rangeCount>0){const Ce=pe.getRangeAt(0),Ye=pe.getRangeAt(pe.rangeCount-1);return C.some(Nm.create(Pt.fromDom(Ce.startContainer),Ce.startOffset,Pt.fromDom(Ye.endContainer),Ye.endOffset))}else return C.none()},e5=pe=>{if(pe.anchorNode===null||pe.focusNode===null)return pw(pe);{const Ce=Pt.fromDom(pe.anchorNode),Ye=Pt.fromDom(pe.focusNode);return GS(Ce,pe.anchorOffset,Ye,pe.focusOffset)?C.some(Nm.create(Ce,pe.anchorOffset,Ye,pe.focusOffset)):pw(pe)}},dv=(pe,Ce,Ye=!0)=>{const St=(Ye?l0:Ib)(pe,Ce);KS(pe,St)},t5=pe=>y2(pe).filter(Ce=>Ce.rangeCount>0).bind(e5),_3=pe=>t5(pe).map(Ce=>wy.exact(Ce.start,Ce.soffset,Ce.finish,Ce.foffset)),n5=(pe,Ce)=>{const Ye=av(pe,Ce);return MS(Ye)},r5=(pe,Ce,Ye)=>YM(pe,Ce,Ye),Hb=pe=>{y2(pe).each(Ce=>Ce.removeAllRanges())},w3=pe=>({elementFromPoint:(To,Zo)=>Pt.fromPoint(Pt.fromDom(pe.document),To,Zo),getRect:To=>To.dom.getBoundingClientRect(),getRangedRect:(To,Zo,Yi,ri)=>{const Ms=wy.exact(To,Zo,Yi,ri);return n5(pe,Ms)},getSelection:()=>_3(pe).map(To=>PT(pe,To)),fromSitus:To=>{const Zo=wy.relative(To.start,To.finish);return PT(pe,Zo)},situsFromPoint:(To,Zo)=>r5(pe,To,Zo).map(Yi=>PS.create(Yi.start,Yi.soffset,Yi.finish,Yi.foffset)),clearSelection:()=>{Hb(pe)},collapseSelection:(To=!1)=>{_3(pe).each(Zo=>Zo.fold(Yi=>Yi.collapse(To),(Yi,ri)=>{const Ms=To?Yi:ri;Qb(pe,Ms,Ms)},(Yi,ri,Ms,al)=>{const Gs=To?Yi:Ms,td=To?ri:al;K0(pe,Gs,td,Gs,td)}))},setSelection:To=>{K0(pe,To.start,To.soffset,To.finish,To.foffset)},setRelativeSelection:(To,Zo)=>{Qb(pe,To,Zo)},selectNode:To=>{dv(pe,To,!1)},selectContents:To=>{dv(pe,To)},getInnerHeight:()=>pe.innerHeight,getScrollY:()=>Kp(Pt.fromDom(pe.document)).top,scrollBy:(To,Zo)=>{qT(To,Zo,Pt.fromDom(pe.document))}}),Zb=(pe,Ce)=>({rows:pe,cols:Ce}),O3=(pe,Ce,Ye,st)=>{const St=w3(pe),Ut=y3(St,Ce,Ye,st);return{clearstate:Ut.clearstate,mousedown:Ut.mousedown,mouseover:Ut.mouseover,mouseup:Ut.mouseup}},XT=pe=>Xl(pe,_t).exists(Kg),x2=(pe,Ce)=>XT(pe)||XT(Ce),S3=(pe,Ce,Ye,st)=>{const St=w3(pe),Ut=()=>(st.clear(Ce),C.none());return{keydown:($n,ur,Nr,Ro,ai,Ko)=>{const Qo=$n.raw,_i=Qo.which,To=Qo.shiftKey===!0;return pb(Ce,st.selectedSelector).fold(()=>(Ub(_i)&&!To&&st.clearBeforeUpdate(Ce),Ub(_i)&&To&&!x2(ur,Ro)?C.none:X0(_i)&&To?A(jS,St,Ce,Ye,dw,Ro,ur,st.selectRange):qS(_i)&&To?A(jS,St,Ce,Ye,ZS,Ro,ur,st.selectRange):X0(_i)?A(QT,St,Ye,dw,Ro,ur,US):qS(_i)?A(QT,St,Ye,ZS,Ro,ur,HT):C.none),Yi=>{const ri=Ms=>()=>Se(Ms,Gs=>ID(Gs.rows,Gs.cols,Ce,Yi,st)).fold(()=>$O(Ce,st.firstSelectedSelector,st.lastSelectedSelector).map(Gs=>{const td=X0(_i)||Ko.isForward(_i)?Od.after:Od.before;return St.setRelativeSelection(Od.on(Gs.first,0),td(Gs.table)),st.clear(Ce),s0.create(C.none(),!0)}),Gs=>C.some(s0.create(C.none(),!0)));return Ub(_i)&&To&&!x2(ur,Ro)?C.none:X0(_i)&&To?ri([Zb(1,0)]):qS(_i)&&To?ri([Zb(-1,0)]):Ko.isBackward(_i)&&To?ri([Zb(0,-1),Zb(-1,0)]):Ko.isForward(_i)&&To?ri([Zb(0,1),Zb(1,0)]):Ub(_i)&&!To?Ut:C.none})()},keyup:($n,ur,Nr,Ro,ai)=>pb(Ce,st.selectedSelector).fold(()=>{const Ko=$n.raw,Qo=Ko.which;return Ko.shiftKey===!0&&Ub(Qo)&&x2(ur,Ro)?FM(Ce,Ye,ur,Nr,Ro,ai,st.selectRange):C.none()},C.none)}},XM=(pe,Ce,Ye,st)=>{const St=w3(pe);return(Ut,un)=>{st.clearBeforeUpdate(Ce),Xv(Ut,un,Ye).each(Tn=>{const $n=Tn.boxes.getOr([]);st.selectRange(Ce,$n,Tn.start,Tn.finish),St.selectContents(un),St.collapseSelection()})}},k3=(pe,Ce)=>{const Ye=Rt(pe,Ce);return Ye===void 0||Ye===""?[]:Ye.split(" ")},hv=(pe,Ce,Ye)=>{const St=k3(pe,Ce).concat([Ye]);return lt(pe,Ce,St.join(" ")),!0},GM=(pe,Ce,Ye)=>{const st=W(k3(pe,Ce),St=>St!==Ye);return st.length>0?lt(pe,Ce,st.join(" ")):at(pe,Ce),!1},mw=pe=>pe.dom.classList!==void 0,$m=pe=>k3(pe,"class"),Ef=(pe,Ce)=>hv(pe,"class",Ce),KM=(pe,Ce)=>GM(pe,"class",Ce),u0=(pe,Ce)=>{mw(pe)?pe.dom.classList.add(Ce):Ef(pe,Ce)},JM=pe=>{(mw(pe)?pe.dom.classList:$m(pe)).length===0&&at(pe,"class")},GT=(pe,Ce)=>{mw(pe)?pe.dom.classList.remove(Ce):KM(pe,Ce),JM(pe)},gw=(pe,Ce)=>mw(pe)&&pe.dom.classList.contains(Ce),_2=(pe,Ce)=>{U(Ce,Ye=>{GT(pe,Ye)})},KT=pe=>Ce=>{u0(Ce,pe)},JT=pe=>Ce=>{_2(Ce,pe)},e6={byClass:pe=>{const Ce=KT(pe.selected),Ye=JT([pe.selected,pe.lastSelected,pe.firstSelected]),st=Ut=>{const un=ra(Ut,pe.selectedSelector);U(un,Ye)};return{clearBeforeUpdate:st,clear:st,selectRange:(Ut,un,Tn,$n)=>{st(Ut),U(un,Ce),u0(Tn,pe.firstSelected),u0($n,pe.lastSelected)},selectedSelector:pe.selectedSelector,firstSelectedSelector:pe.firstSelectedSelector,lastSelectedSelector:pe.lastSelectedSelector}},byAttr:(pe,Ce,Ye)=>{const st=$n=>{at($n,pe.selected),at($n,pe.firstSelected),at($n,pe.lastSelected)},St=$n=>{lt($n,pe.selected,"1")},Ut=$n=>{un($n),Ye()},un=$n=>{const ur=ra($n,`${pe.selectedSelector},${pe.firstSelectedSelector},${pe.lastSelectedSelector}`);U(ur,st)};return{clearBeforeUpdate:un,clear:Ut,selectRange:($n,ur,Nr,Ro)=>{Ut($n),U(ur,St),lt(Nr,pe.firstSelected,"1"),lt(Ro,pe.lastSelected,"1"),Ce(ur,Nr,Ro)},selectedSelector:pe.selectedSelector,firstSelectedSelector:pe.firstSelectedSelector,lastSelectedSelector:pe.lastSelectedSelector}}},t6=(pe,Ce,Ye,st)=>{switch(pe.tag){case"none":return Ce();case"single":return st(pe.element);case"multiple":return Ye(pe.elements)}},hi=()=>({tag:"none"}),Pf=pe=>({tag:"multiple",elements:pe}),vw=pe=>({tag:"single",element:pe}),Rf=(pe,Ce,Ye)=>({get:()=>md(pe(),Ye).fold(()=>Ce().fold(hi,vw),Pf)}),Vm=(pe,Ce)=>{const Ye=pe.slice(0,Ce[Ce.length-1].row+1),st=oy(Ye);return he(st,St=>{const Ut=St.cells.slice(0,Ce[Ce.length-1].column+1);return j(Ut,un=>un.element)})},o5=(pe,Ce)=>{const Ye=pe.slice(Ce[0].row+Ce[0].rowspan-1,pe.length),st=oy(Ye);return he(st,St=>{const Ut=St.cells.slice(Ce[0].column+Ce[0].colspan-1,St.cells.length);return j(Ut,un=>un.element)})},qb=(pe,Ce,Ye)=>{const st=Xi.fromTable(pe);return Vp(st,Ce).map(Ut=>{const un=z1(st,Ye,!1),{rows:Tn}=Kl(un),$n=Vm(Tn,Ut),ur=o5(Tn,Ut);return{upOrLeftCells:$n,downOrRightCells:ur}})},T3=(pe,Ce,Ye,st,St,Ut,un)=>({target:pe,x:Ce,y:Ye,stop:st,prevent:St,kill:Ut,raw:un}),Oy=pe=>{const Ce=Pt.fromDom(fr(pe).getOr(pe.target)),Ye=()=>pe.stopPropagation(),st=()=>pe.preventDefault(),St=h(st,Ye);return T3(Ce,pe.clientX,pe.clientY,Ye,st,St,pe)},yw=(pe,Ce)=>Ye=>{pe(Ye)&&Ce(Oy(Ye))},n6=(pe,Ce,Ye,st,St)=>{const Ut=yw(Ye,st);return pe.dom.addEventListener(Ce,Ut,St),{unbind:A(tE,pe,Ce,Ut,St)}},eE=(pe,Ce,Ye,st)=>n6(pe,Ce,Ye,st,!1),tE=(pe,Ce,Ye,st)=>{pe.dom.removeEventListener(Ce,Ye,st)},nE=E,Sy=(pe,Ce,Ye)=>eE(pe,Ce,nE,Ye),bw=Oy,xw=pe=>!gw(Pt.fromDom(pe.target),"ephox-snooker-resizer-bar"),C3=(pe,Ce)=>{const Ye=Rf(()=>Pt.fromDom(pe.getBody()),()=>z_(fp(pe),Tm(pe)),dg.selectedSelector),st=($n,ur,Nr)=>{Au(ur).each(ai=>{const Ko=j($n,Yi=>Yi.dom),Qo=C_(pe),_i=Tf(u,Pt.fromDom(pe.getDoc()),Qo),To=Sl(pe),Zo=qb(ai,{selection:To},_i).map(Yi=>ze(Yi,ri=>j(ri,Ms=>Ms.dom))).getOrUndefined();q1(pe,Ko,ur.dom,Nr.dom,Zo)})},St=()=>Wx(pe),Ut=e6.byAttr(dg,st,St);return pe.on("init",$n=>{const ur=pe.getWin(),Nr=T1(pe),Ro=Tm(pe),ai=()=>{const Zs=pe.selection,Rh=Pt.fromDom(Zs.getStart()),Lh=Pt.fromDom(Zs.getEnd());$p(Au,[Rh,Lh]).fold(()=>Ut.clear(Nr),u)},Ko=O3(ur,Nr,Ro,Ut),Qo=S3(ur,Nr,Ro,Ut),_i=XM(ur,Nr,Ro,Ut),To=Zs=>Zs.raw.shiftKey===!0;pe.on("TableSelectorChange",Zs=>_i(Zs.start,Zs.finish));const Zo=(Zs,Rh)=>{To(Zs)&&(Rh.kill&&Zs.kill(),Rh.selection.each(Lh=>{const jm=wy.relative(Lh.start,Lh.finish),Qm=av(ur,jm);pe.selection.setRng(Qm)}))},Yi=Zs=>{const Rh=bw(Zs);if(Rh.raw.shiftKey&&Ub(Rh.raw.which)){const Lh=pe.selection.getRng(),jm=Pt.fromDom(Lh.startContainer),Qm=Pt.fromDom(Lh.endContainer);Qo.keyup(Rh,jm,Lh.startOffset,Qm,Lh.endOffset).each(qa=>{Zo(Rh,qa)})}},ri=Zs=>{const Rh=bw(Zs);Ce.hide();const Lh=pe.selection.getRng(),jm=Pt.fromDom(Lh.startContainer),Qm=Pt.fromDom(Lh.endContainer),qa=rp(ZT,fv)(Pt.fromDom(pe.selection.getStart()));Qo.keydown(Rh,jm,Lh.startOffset,Qm,Lh.endOffset,qa).each(tu=>{Zo(Rh,tu)}),Ce.show()},Ms=Zs=>Zs.button===0,al=Zs=>Zs.buttons===void 0?!0:(Zs.buttons&1)!==0,Gs=Zs=>{Ko.clearstate()},td=Zs=>{Ms(Zs)&&xw(Zs)&&Ko.mousedown(bw(Zs))},zu=Zs=>{al(Zs)&&xw(Zs)&&Ko.mouseover(bw(Zs))},e1=Zs=>{Ms(Zs)&&xw(Zs)&&Ko.mouseup(bw(Zs))},My=(()=>{const Zs=ed(Pt.fromDom(Nr)),Rh=ed(0);return{touchEnd:jm=>{const Qm=Pt.fromDom(jm.target);if(vt("td")(Qm)||vt("th")(Qm)){const qa=Zs.get(),tu=Rh.get();vn(qa,Qm)&&jm.timeStamp-tu<300&&(jm.preventDefault(),_i(Qm,Qm))}Zs.set(Qm),Rh.set(jm.timeStamp)}}})();pe.on("dragstart",Gs),pe.on("mousedown",td),pe.on("mouseover",zu),pe.on("mouseup",e1),pe.on("touchend",My.touchEnd),pe.on("keyup",Yi),pe.on("keydown",ri),pe.on("NodeChange",ai)}),pe.on("PreInit",()=>{pe.serializer.addTempAttr(dg.firstSelected),pe.serializer.addTempAttr(dg.lastSelected)}),{getSelectedCells:()=>t6(Ye.get(),v([]),$n=>j($n,ur=>ur.dom),$n=>[$n.dom]),clearSelectedCells:$n=>Ut.clear(Pt.fromDom($n))}},gp=pe=>{let Ce=[];return{bind:Ut=>{if(Ut===void 0)throw new Error("Event bind error: undefined handler");Ce.push(Ut)},unbind:Ut=>{Ce=W(Ce,un=>un!==Ut)},trigger:(...Ut)=>{const un={};U(pe,(Tn,$n)=>{un[Tn]=Ut[$n]}),U(Ce,Tn=>{Tn(un)})}}},J0=pe=>{const Ce=ze(pe,st=>({bind:st.bind,unbind:st.unbind})),Ye=ze(pe,st=>st.trigger);return{registry:Ce,trigger:Ye}},ky=(pe,Ce)=>{let Ye=null;const st=()=>{b(Ye)||(clearTimeout(Ye),Ye=null)};return{cancel:st,throttle:(...Ut)=>{st(),Ye=setTimeout(()=>{Ye=null,pe.apply(null,Ut)},Ce)}}},Ty=pe=>pe.slice(0).sort(),rE=(pe,Ce)=>{throw new Error("All required keys ("+Ty(pe).join(", ")+") were not specified. Specified keys were: "+Ty(Ce).join(", ")+".")},A3=pe=>{throw new Error("Unsupported keys for object: "+Ty(pe).join(", "))},M3=(pe,Ce)=>{if(!c(Ce))throw new Error("The "+pe+" fields must be an array. Was: "+Ce+".");U(Ce,Ye=>{if(!l(Ye))throw new Error("The value "+Ye+" in the "+pe+" fields was not a string.")})},oE=(pe,Ce)=>{throw new Error("All values need to be of type: "+Ce+". Keys ("+Ty(pe).join(", ")+") were not.")},iE=pe=>{const Ce=Ty(pe);Y(Ce,(st,St)=>St{throw new Error("The field: "+st+" occurs more than once in the combined fields: ["+Ce.join(", ")+"].")})},aE=(pe,Ce)=>sE(pe,Ce,{validate:p,label:"function"}),sE=(pe,Ce,Ye)=>{if(Ce.length===0)throw new Error("You must specify at least one required field.");return M3("required",Ce),iE(Ce),st=>{const St=Te(st);se(Ce,Tn=>z(St,Tn))||rE(Ce,St),pe(Ce,St);const un=W(Ce,Tn=>!Ye.validate(st[Tn],Tn));return un.length>0&&oE(un,Ye.label),st}},r6=(pe,Ce)=>{const Ye=W(Ce,st=>!z(pe,st));Ye.length>0&&A3(Ye)},E3=pe=>aE(r6,pe),lE=E3(["compare","extract","mutate","sink"]),P3=E3(["element","start","stop","destroy"]),kd=E3(["forceDrop","drop","move","delayDrop"]),Um=()=>{let pe=C.none();const Ce=()=>{pe=C.none()},Ye=(Ut,un)=>{const Tn=pe.map($n=>Ut.compare($n,un));return pe=C.some(un),Tn},st=(Ut,un)=>{un.extract(Ut).each($n=>{Ye(un,$n).each(Nr=>{St.trigger.move(Nr)})})},St=J0({move:gp(["info"])});return{onEvent:st,reset:Ce,events:St.registry}},Jp=()=>{const pe=J0({move:gp(["info"])});return{onEvent:u,reset:u,events:pe.registry}},R3=()=>{const pe=Jp(),Ce=Um();let Ye=pe;return{on:()=>{Ye.reset(),Ye=Ce},off:()=>{Ye.reset(),Ye=pe},isOn:()=>Ye===Ce,onEvent:(Tn,$n)=>{Ye.onEvent(Tn,$n)},events:Ce.events}},L3=(pe,Ce,Ye)=>{let st=!1;const St=J0({start:gp([]),stop:gp([])}),Ut=R3(),un=()=>{Qo.stop(),Ut.isOn()&&(Ut.off(),St.trigger.stop())},Tn=ky(un,200),$n=To=>{Qo.start(To),Ut.on(),St.trigger.start()},ur=To=>{Tn.cancel(),Ut.onEvent(To,Ce)};Ut.events.move.bind(To=>{Ce.mutate(pe,To.info)});const Nr=()=>{st=!0},Ro=()=>{st=!1},ai=()=>st,Ko=To=>(...Zo)=>{st&&To.apply(null,Zo)},Qo=Ce.sink(kd({forceDrop:un,drop:Ko(un),move:Ko(ur),delayDrop:Ko(Tn.throttle)}),Ye),_i=()=>{Qo.destroy()};return{element:Qo.element,go:$n,on:Nr,off:Ro,isActive:ai,destroy:_i,events:St.registry}},o6=pe=>{const Ce=pe.replace(/\./g,"-");return{resolve:st=>Ce+"-"+st}},i6=o6("ephox-dragster").resolve,a5=pe=>{const Ce={layerClass:i6("blocker"),...pe},Ye=Pt.fromTag("div");return lt(Ye,"role","presentation"),$f(Ye,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),u0(Ye,i6("blocker")),u0(Ye,Ce.layerClass),{element:v(Ye),destroy:()=>{li(Ye)}}};var I3=lE({compare:(pe,Ce)=>Gc(Ce.left-pe.left,Ce.top-pe.top),extract:pe=>C.some(Gc(pe.x,pe.y)),sink:(pe,Ce)=>{const Ye=a5(Ce),st=Sy(Ye.element(),"mousedown",pe.forceDrop),St=Sy(Ye.element(),"mouseup",pe.drop),Ut=Sy(Ye.element(),"mousemove",pe.move),un=Sy(Ye.element(),"mouseout",pe.delayDrop),Tn=()=>{Ye.destroy(),St.unbind(),Ut.unbind(),un.unbind(),st.unbind()},$n=Nr=>{$r(Nr,Ye.element())},ur=()=>{li(Ye.element())};return P3({element:Ye.element,start:$n,stop:ur,destroy:Tn})},mutate:(pe,Ce)=>{pe.mutate(Ce.left,Ce.top)}});const s5=(pe,Ce={})=>{var Ye;const st=(Ye=Ce.mode)!==null&&Ye!==void 0?Ye:I3;return L3(pe,st,Ce)},Ph=o6("ephox-snooker").resolve,l6=()=>{const pe=J0({drag:gp(["xDelta","yDelta"])});return{mutate:(Ye,st)=>{pe.trigger.drag(Ye,st)},events:pe.registry}},l5=()=>{const pe=J0({drag:gp(["xDelta","yDelta","target"])});let Ce=C.none();const Ye=l6();return Ye.events.drag.bind(Ut=>{Ce.each(un=>{pe.trigger.drag(Ut.xDelta,Ut.yDelta,un)})}),{assign:Ut=>{Ce=C.some(Ut)},get:()=>Ce,mutate:Ye.mutate,events:pe.registry}},_w=(pe,Ce,Ye,st,St)=>{const Ut=Pt.fromTag("div");return $f(Ut,{position:"absolute",left:Ce-st/2+"px",top:Ye+"px",height:St+"px",width:st+"px"}),yt(Ut,{"data-column":pe,role:"presentation"}),Ut},ww=(pe,Ce,Ye,st,St)=>{const Ut=Pt.fromTag("div");return $f(Ut,{position:"absolute",left:Ce+"px",top:Ye-St/2+"px",height:St+"px",width:st+"px"}),yt(Ut,{"data-row":pe,role:"presentation"}),Ut},D3=Ph("resizer-bar"),Ow=Ph("resizer-rows"),c6=Ph("resizer-cols"),u6=7,c5=(pe,Ce)=>he(pe.all,(Ye,st)=>Ce(Ye.element)?[st]:[]),u5=(pe,Ce)=>{const Ye=[];return Q(pe.grid.columns,st=>{Xi.getColumnAt(pe,st).map(Ut=>Ut.element).forall(Ce)&&Ye.push(st)}),W(Ye,st=>{const St=Xi.filterItems(pe,Ut=>Ut.column===st);return se(St,Ut=>Ce(Ut.element))})},pv=pe=>{const Ce=ra(pe.parent(),"."+D3);U(Ce,li)},f5=(pe,Ce,Ye)=>{const st=pe.origin();U(Ce,St=>{St.each(Ut=>{const un=Ye(st,Ut);u0(un,D3),$r(pe.parent(),un)})})},f6=(pe,Ce,Ye,st)=>{f5(pe,Ce,(St,Ut)=>{const un=_w(Ut.col,Ut.x-St.left,Ye.top-St.top,u6,st);return u0(un,c6),un})},fE=(pe,Ce,Ye,st)=>{f5(pe,Ce,(St,Ut)=>{const un=ww(Ut.row,Ye.left-St.left,Ut.y-St.top,st,u6);return u0(un,Ow),un})},dE=(pe,Ce,Ye,st,St)=>{const Ut=Dd(Ye),un=Ce.isResizable,Tn=st.length>0?Ol.positions(st,Ye):[],$n=Tn.length>0?c5(pe,un):[],ur=W(Tn,(Ko,Qo)=>$($n,_i=>Qo===_i));fE(Ce,ur,Ut,os(Ye));const Nr=St.length>0?Mt.positions(St,Ye):[],Ro=Nr.length>0?u5(pe,un):[],ai=W(Nr,(Ko,Qo)=>$(Ro,_i=>Qo===_i));f6(Ce,ai,Ut,dd(Ye))},d6=(pe,Ce)=>{if(pv(pe),pe.isResizable(Ce)){const Ye=Xi.fromTable(Ce),st=bu(Ye),St=Xc(Ye);dE(Ye,pe,Ce,st,St)}},Yh=(pe,Ce)=>{const Ye=ra(pe.parent(),"."+D3);U(Ye,Ce)},ch=pe=>{Yh(pe,Ce=>{ks(Ce,"display","none")})},w2=pe=>{Yh(pe,Ce=>{ks(Ce,"display","block")})},FD=pe=>gw(pe,Ow),hE=pe=>gw(pe,c6),d5=Ph("resizer-bar-dragging"),as=pe=>{const Ce=l5(),Ye=s5(Ce,{});let st=C.none();const St=(Qo,_i)=>C.from(Rt(Qo,_i));Ce.events.drag.bind(Qo=>{St(Qo.target,"data-row").each(_i=>{const To=ld(Qo.target,"top");ks(Qo.target,"top",To+Qo.yDelta+"px")}),St(Qo.target,"data-column").each(_i=>{const To=ld(Qo.target,"left");ks(Qo.target,"left",To+Qo.xDelta+"px")})});const Ut=(Qo,_i)=>{const To=ld(Qo,_i),Zo=uc(Qo,"data-initial-"+_i,0);return To-Zo};Ye.events.stop.bind(()=>{Ce.get().each(Qo=>{st.each(_i=>{St(Qo,"data-row").each(To=>{const Zo=Ut(Qo,"top");at(Qo,"data-initial-top"),Ko.trigger.adjustHeight(_i,Zo,parseInt(To,10))}),St(Qo,"data-column").each(To=>{const Zo=Ut(Qo,"left");at(Qo,"data-initial-left"),Ko.trigger.adjustWidth(_i,Zo,parseInt(To,10))}),d6(pe,_i)})})});const un=(Qo,_i)=>{Ko.trigger.startAdjust(),Ce.assign(Qo),lt(Qo,"data-initial-"+_i,ld(Qo,_i)),u0(Qo,d5),ks(Qo,"opacity","0.2"),Ye.go(pe.parent())},Tn=Sy(pe.parent(),"mousedown",Qo=>{FD(Qo.target)&&un(Qo.target,"top"),hE(Qo.target)&&un(Qo.target,"left")}),$n=Qo=>vn(Qo,pe.view()),ur=Qo=>qc(Qo,"table",$n).filter(Kg),Nr=Sy(pe.view(),"mouseover",Qo=>{ur(Qo.target).fold(()=>{ao(Qo.target)&&pv(pe)},_i=>{Ye.isActive()&&(st=C.some(_i),d6(pe,_i))})}),Ro=()=>{Tn.unbind(),Nr.unbind(),Ye.destroy(),pv(pe)},ai=Qo=>{d6(pe,Qo)},Ko=J0({adjustHeight:gp(["table","delta","row"]),adjustWidth:gp(["table","delta","column"]),startAdjust:gp([])});return{destroy:Ro,refresh:ai,on:Ye.on,off:Ye.off,hideBars:A(ch,pe),showBars:A(w2,pe),events:Ko.registry}},h6={create:(pe,Ce,Ye)=>{const st=Ol,St=Mt,Ut=as(pe),un=J0({beforeResize:gp(["table","type"]),afterResize:gp(["table","type"]),startDrag:gp([])});return Ut.events.adjustHeight.bind(Tn=>{const $n=Tn.table;un.trigger.beforeResize($n,"row");const ur=st.delta(Tn.delta,$n);qx($n,ur,Tn.row),un.trigger.afterResize($n,"row")}),Ut.events.startAdjust.bind(Tn=>{un.trigger.startDrag()}),Ut.events.adjustWidth.bind(Tn=>{const $n=Tn.table;un.trigger.beforeResize($n,"col");const ur=St.delta(Tn.delta,$n),Nr=Ye($n);K_($n,ur,Tn.column,Ce,Nr),un.trigger.afterResize($n,"col")}),{on:Ut.on,off:Ut.off,refreshBars:Ut.refresh,hideBars:Ut.hideBars,showBars:Ut.showBars,destroy:Ut.destroy,events:un.registry}}},Sw={only:(pe,Ce)=>{const Ye=bn(pe)?jn(pe):pe;return{parent:v(Ye),view:v(pe),origin:v(Gc(0,0)),isResizable:Ce}},detached:(pe,Ce,Ye)=>{const st=()=>Dd(Ce);return{parent:v(Ce),view:v(pe),origin:st,isResizable:Ye}},body:(pe,Ce,Ye)=>({parent:v(Ce),view:v(pe),origin:v(Gc(0,0)),isResizable:Ye})},pE=()=>{const pe=Pt.fromTag("div");return $f(pe,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),$r(co(),pe),pe},mE=(pe,Ce)=>pe.inline?Sw.body(Pt.fromDom(pe.getBody()),pE(),Ce):Sw.only(Pt.fromDom(pe.getDoc()),Ce),gE=(pe,Ce)=>{pe.inline&&li(Ce.parent())},B3=pe=>y(pe)&&pe.nodeName==="TABLE",kw="bar-",m6=pe=>Rt(pe,"data-mce-resize")!=="false",VD=pe=>{const Ce=Xi.fromTable(pe);Xi.hasColumns(Ce)||U(xf(pe),Ye=>{const st=yf(Ye,"width");ks(Ye,"width",st),at(Ye,"width")})},O2=pe=>pc(pe,"corner-"),h5=pe=>gm(pe,"corner-"),UD=pe=>{const Ce=_y(),Ye=_y(),st=_y();let St,Ut,un,Tn;const $n=Zo=>Pc(pe,Zo),ur=()=>Fl(pe)?z0():R1(),Nr=Zo=>mg(Zo).columns,Ro=Zo=>mg(Zo).rows,ai=(Zo,Yi,ri,Ms)=>{const al=h5(Yi),Gs=Cu(al,"e"),td=pc(al,"n");if(Ut===""&&ev(Zo),Tn===""&&Ab(Zo),ri!==St&&Ut!==""){ks(Zo,"width",Ut);const zu=ur(),e1=$n(Zo),Ay=Fl(pe)||Gs?Nr(Zo)-1:0;K_(Zo,ri-St,Ay,zu,e1)}else if(zO(Ut)){const zu=parseFloat(Ut.replace("%","")),e1=ri*zu/St;ks(Zo,"width",e1+"%")}if(xu(Ut)&&VD(Zo),Ms!==un&&Tn!==""){ks(Zo,"height",Tn);const zu=td?0:Ro(Zo)-1;qx(Zo,Ms-un,zu)}},Ko=()=>{Ye.on(Zo=>{Zo.destroy()}),st.on(Zo=>{gE(pe,Zo)})};return pe.on("init",()=>{const Zo=mE(pe,m6);if(st.set(Zo),sp(pe)&&cp(pe)){const Yi=ur(),ri=h6.create(Zo,Yi,$n);ri.on(),ri.events.startDrag.bind(Ms=>{Ce.set(pe.selection.getRng())}),ri.events.beforeResize.bind(Ms=>{const al=Ms.table.dom;Ec(pe,al,I0(al),E_(al),kw+Ms.type)}),ri.events.afterResize.bind(Ms=>{const al=Ms.table,Gs=al.dom;zd(al),Ce.on(td=>{pe.selection.setRng(td),pe.focus()}),Qc(pe,Gs,I0(Gs),E_(Gs),kw+Ms.type),pe.undoManager.add()}),Ye.set(ri)}}),pe.on("ObjectResizeStart",Zo=>{const Yi=Zo.target;if(B3(Yi)){const ri=Pt.fromDom(Yi);U(pe.dom.select(".mce-clonedresizable"),Ms=>{pe.dom.addClass(Ms,"mce-"+fb(pe)+"-columns")}),!hy(ri)&&Gg(pe)?_g(ri):!tw(ri)&&Xg(pe)&&ev(ri),eu(ri)&&pc(Zo.origin,kw)&&ev(ri),St=Zo.width,Ut=lp(pe)?"":P_(pe,Yi).getOr(""),un=Zo.height,Tn=C1(pe,Yi).getOr("")}}),pe.on("ObjectResized",Zo=>{const Yi=Zo.target;if(B3(Yi)){const ri=Pt.fromDom(Yi),Ms=Zo.origin;O2(Ms)&&ai(ri,Ms,Zo.width,Zo.height),zd(ri),Dm(pe,ri.dom,Hc)}}),pe.on("SwitchMode",()=>{Ye.on(Zo=>{pe.mode.isReadOnly()?Zo.hideBars():Zo.showBars()})}),pe.on("dragstart dragend",Zo=>{Ye.on(Yi=>{Zo.type==="dragstart"?(Yi.hideBars(),Yi.off()):(Yi.on(),Yi.showBars())})}),pe.on("remove",()=>{Ko()}),{refresh:Zo=>{Ye.on(Yi=>Yi.refreshBars(Pt.fromDom(Zo)))},hide:()=>{Ye.on(Zo=>Zo.hideBars())},show:()=>{Ye.on(Zo=>Zo.showBars())}}},g6=pe=>{R0(pe);const Ce=UD(pe),Ye=C3(pe,Ce),st=W1(pe,Ce,Ye);return Og(pe,st),n3(pe,st),P1(pe,st),{getSelectedCells:Ye.getSelectedCells,clearSelectedCells:Ye.clearSelectedCells}},vE=pe=>({table:g6(pe)});var ta=()=>{t.add("dom",vE)};ta()})();(function(){const t=Object.getPrototypeOf,e=(s,F,Z)=>{var ue;return Z(s,F.prototype)?!0:((ue=s.constructor)===null||ue===void 0?void 0:ue.name)===F.name},o=s=>{const F=typeof s;return s===null?"null":F==="object"&&Array.isArray(s)?"array":F==="object"&&e(s,String,(Z,ue)=>ue.isPrototypeOf(Z))?"string":F},f=s=>F=>o(F)===s,P=s=>F=>typeof F===s,d=s=>F=>s===F,l=(s,F)=>c(s)&&e(s,F,(Z,ue)=>t(Z)===ue),n=f("string"),c=f("object"),b=s=>l(s,Object),i=f("array"),O=d(null),w=P("boolean"),y=d(void 0),p=s=>s==null,a=s=>!p(s),u=P("function"),h=P("number"),m=(s,F)=>{if(i(s)){for(let Z=0,ue=s.length;Z{},_=s=>()=>s(),S=(s,F)=>(...Z)=>s(F.apply(null,Z)),A=(s,F)=>Z=>s(F(Z)),x=s=>()=>s,R=s=>s,M=(s,F)=>s===F;function T(s,...F){return(...Z)=>{const ue=F.concat(Z);return s.apply(null,ue)}}const E=s=>F=>!s(F),C=s=>()=>{throw new Error(s)},L=s=>s(),D=x(!1),k=x(!0);class I{constructor(F,Z){this.tag=F,this.value=Z}static some(F){return new I(!0,F)}static none(){return I.singletonNone}fold(F,Z){return this.tag?Z(this.value):F()}isSome(){return this.tag}isNone(){return!this.tag}map(F){return this.tag?I.some(F(this.value)):I.none()}bind(F){return this.tag?F(this.value):I.none()}exists(F){return this.tag&&F(this.value)}forall(F){return!this.tag||F(this.value)}filter(F){return!this.tag||F(this.value)?this:I.none()}getOr(F){return this.tag?this.value:F}or(F){return this.tag?this:F}getOrThunk(F){return this.tag?this.value:F()}orThunk(F){return this.tag?this:F()}getOrDie(F){if(this.tag)return this.value;throw new Error(F??"Called getOrDie on None")}static from(F){return a(F)?I.some(F):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(F){this.tag&&F(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const z=Array.prototype.slice,$=Array.prototype.indexOf,Q=Array.prototype.push,j=(s,F)=>$.call(s,F),U=(s,F)=>{const Z=j(s,F);return Z===-1?I.none():I.some(Z)},X=(s,F)=>j(s,F)>-1,te=(s,F)=>{for(let Z=0,ue=s.length;Z{const Z=[];for(let ue=0;ue{const Z=[];for(let ue=0;ue{const Z=s.length,ue=new Array(Z);for(let we=0;we{for(let Z=0,ue=s.length;Z{for(let Z=s.length-1;Z>=0;Z--){const ue=s[Z];F(ue,Z)}},ee=(s,F)=>{const Z=[],ue=[];for(let we=0,Be=s.length;we{const Z=[];for(let ue=0,we=s.length;ue(Y(s,(ue,we)=>{Z=F(Z,ue,we)}),Z),se=(s,F,Z)=>(q(s,(ue,we)=>{Z=F(Z,ue,we)}),Z),ae=(s,F,Z)=>{for(let ue=0,we=s.length;ueae(s,F,D),de=(s,F)=>{for(let Z=0,ue=s.length;Z{const F=[];for(let Z=0,ue=s.length;Zve(oe(s,F)),_e=(s,F)=>{for(let Z=0,ue=s.length;Z{const F=z.call(s,0);return F.reverse(),F},Te=(s,F)=>me(s,Z=>!X(F,Z)),Pe=(s,F)=>{const Z={};for(let ue=0,we=s.length;ue[s],ze=(s,F)=>{const Z=z.call(s,0);return Z.sort(F),Z},De=(s,F)=>F>=0&&FDe(s,0),Ve=s=>De(s,s.length-1),$e=u(Array.from)?Array.from:s=>z.call(s),Oe=(s,F)=>{for(let Z=0;Z{const Z=ke(s);for(let ue=0,we=Z.length;ueZe(s,(Z,ue)=>({k:ue,v:F(Z,ue)})),Ze=(s,F)=>{const Z={};return We(s,(ue,we)=>{const Be=F(ue,we);Z[Be.k]=Be.v}),Z},Xe=s=>(F,Z)=>{s[Z]=F},tt=(s,F,Z,ue)=>{We(s,(we,Be)=>{(F(we,Be)?Z:ue)(we,Be)})},Ee=(s,F)=>{const Z={},ue={};return tt(s,F,Xe(Z),Xe(ue)),{t:Z,f:ue}},Ne=(s,F)=>{const Z={};return tt(s,F,Xe(Z),v),Z},je=(s,F)=>{const Z=[];return We(s,(ue,we)=>{Z.push(F(ue,we))}),Z},nt=(s,F)=>{const Z=ke(s);for(let ue=0,we=Z.length;ueje(s,R),Ge=(s,F)=>ht(s,F)?I.from(s[F]):I.none(),ht=(s,F)=>Le.call(s,F),pt=(s,F)=>ht(s,F)&&s[F]!==void 0&&s[F]!==null,wt=(s,F,Z=M)=>s.exists(ue=>Z(ue,F)),Dt=(s,F,Z=M)=>en(s,F,Z).getOr(s.isNone()&&F.isNone()),It=s=>{const F=[],Z=ue=>{F.push(ue)};for(let ue=0;ue{const F=[];for(let Z=0;Zs.isSome()&&F.isSome()?I.some(Z(s.getOrDie(),F.getOrDie())):I.none(),Gt=(s,F,Z,ue)=>s.isSome()&&F.isSome()&&Z.isSome()?I.some(ue(s.getOrDie(),F.getOrDie(),Z.getOrDie())):I.none(),Ct=(s,F)=>s!=null?I.some(F(s)):I.none(),_t=(s,F)=>s?I.some(F):I.none(),nn=(s,F)=>s+F,gn=(s,F)=>s.substring(F),bn=(s,F,Z)=>F===""||s.length>=F.length&&s.substr(Z,Z+F.length)===F,mn=(s,F)=>lt(s,F)?gn(s,F.length):s,vt=(s,F)=>yt(s,F)?s:nn(s,F),bt=(s,F,Z=0,ue)=>{const we=s.indexOf(F,Z);return we!==-1?y(ue)?!0:we+F.length<=ue:!1},lt=(s,F)=>bn(s,F,0),yt=(s,F)=>bn(s,F,s.length-F.length),Rt=(s=>F=>F.replace(s,""))(/^\s+|\s+$/g),it=s=>s.length>0,at=s=>!it(s),Lt=s=>s.style!==void 0&&u(s.style.getPropertyValue),xt=(s,F)=>{const ue=(F||document).createElement("div");if(ue.innerHTML=s,!ue.hasChildNodes()||ue.childNodes.length>1){const we="HTML does not have a single root node";throw console.error(we,s),new Error(we)}return Yt(ue.childNodes[0])},Zt=(s,F)=>{const ue=(F||document).createElement(s);return Yt(ue)},Xt=(s,F)=>{const ue=(F||document).createTextNode(s);return Yt(ue)},Yt=s=>{if(s==null)throw new Error("Node cannot be null or undefined");return{dom:s}},Pt={fromHtml:xt,fromTag:Zt,fromText:Xt,fromDom:Yt,fromPoint:(s,F,Z)=>I.from(s.dom.elementFromPoint(F,Z)).map(Yt)},tn=typeof window<"u"?window:Function("return this;")(),Kt=(s,F)=>{let Z=F??tn;for(let ue=0;ue{const Z=s.split(".");return Kt(Z,F)},dn=(s,F)=>fn(s,F),vn=(s,F)=>{const Z=dn(s,F);if(Z==null)throw new Error(s+" not available on this browser");return Z},Nn=Object.getPrototypeOf,er=s=>vn("HTMLElement",s),En=s=>{const F=fn("ownerDocument.defaultView",s);return c(s)&&(er(F).prototype.isPrototypeOf(s)||/^HTML\w*Element$/.test(Nn(s).constructor.name))},In=9,jn=11,xr=1,Sr=3,ar=s=>s.dom.nodeName.toLowerCase(),Fn=s=>s.dom.nodeType,ir=s=>F=>Fn(F)===s,Wn=s=>Kn(s)&&En(s.dom),Kn=ir(xr),_r=ir(Sr),Ir=ir(In),zr=ir(jn),Fr=s=>F=>Kn(F)&&ar(F)===s,Rr=(s,F)=>{const Z=s.dom;if(Z.nodeType!==xr)return!1;{const ue=Z;if(ue.matches!==void 0)return ue.matches(F);if(ue.msMatchesSelector!==void 0)return ue.msMatchesSelector(F);if(ue.webkitMatchesSelector!==void 0)return ue.webkitMatchesSelector(F);if(ue.mozMatchesSelector!==void 0)return ue.mozMatchesSelector(F);throw new Error("Browser lacks native selectors")}},$r=s=>s.nodeType!==xr&&s.nodeType!==In&&s.nodeType!==jn||s.childElementCount===0,Kr=(s,F)=>{const Z=F===void 0?document:F.dom;return $r(Z)?[]:oe(Z.querySelectorAll(s),Pt.fromDom)},Co=(s,F)=>{const Z=F===void 0?document:F.dom;return $r(Z)?I.none():I.from(Z.querySelector(s)).map(Pt.fromDom)},so=(s,F)=>s.dom===F.dom,So=(s,F)=>{const Z=s.dom,ue=F.dom;return Z===ue?!1:Z.contains(ue)},go=s=>Pt.fromDom(s.dom.ownerDocument),li=s=>Ir(s)?s:go(s),Pn=s=>Pt.fromDom(li(s).dom.documentElement),Yn=s=>Pt.fromDom(li(s).dom.defaultView),br=s=>I.from(s.dom.parentNode).map(Pt.fromDom),dr=s=>br(s),Cr=s=>I.from(s.dom.parentElement).map(Pt.fromDom),io=(s,F)=>{const Z=u(F)?F:D;let ue=s.dom;const we=[];for(;ue.parentNode!==null&&ue.parentNode!==void 0;){const Be=ue.parentNode,qe=Pt.fromDom(Be);if(we.push(qe),Z(qe)===!0)break;ue=Be}return we},Qr=s=>I.from(s.dom.offsetParent).map(Pt.fromDom),Wr=s=>I.from(s.dom.nextSibling).map(Pt.fromDom),bo=s=>oe(s.dom.childNodes,Pt.fromDom),Bn=(s,F)=>{const Z=s.dom.childNodes;return I.from(Z[F]).map(Pt.fromDom)},hr=s=>Bn(s,0),hn=(s,F)=>({element:s,offset:F}),zn=(s,F)=>{const Z=bo(s);return Z.length>0&&Fzr(s)&&a(s.dom.host),yr=u(Element.prototype.attachShadow)&&u(Node.prototype.getRootNode),gr=x(yr),vr=yr?s=>Pt.fromDom(s.dom.getRootNode()):li,nr=s=>Zn(s)?s:Pt.fromDom(li(s).dom.body),Qn=s=>Hn(s).isSome(),Hn=s=>{const F=vr(s);return Zn(F)?I.some(F):I.none()},tr=s=>Pt.fromDom(s.dom.host),cr=s=>{if(gr()&&a(s.target)){const F=Pt.fromDom(s.target);if(Kn(F)&&Lr(F)&&s.composed&&s.composedPath){const Z=s.composedPath();if(Z)return He(Z)}}return I.from(s.target)},Lr=s=>a(s.dom.shadowRoot),Er=s=>{const F=_r(s)?s.dom.parentNode:s.dom;if(F==null||F.ownerDocument===null)return!1;const Z=F.ownerDocument;return Hn(Pt.fromDom(F)).fold(()=>Z.body.contains(F),A(Er,tr))},Vr=()=>to(Pt.fromDom(document)),to=s=>{const F=s.dom.body;if(F==null)throw new Error("Body is not available yet");return Pt.fromDom(F)},_o=(s,F,Z)=>{if(n(Z)||w(Z)||h(Z))s.setAttribute(F,Z+"");else throw console.error("Invalid call to Attribute.set. Key ",F,":: Value ",Z,":: Element ",s),new Error("Attribute value was not simple")},fr=(s,F,Z)=>{_o(s.dom,F,Z)},Eo=(s,F)=>{const Z=s.dom;We(F,(ue,we)=>{_o(Z,we,ue)})},ao=(s,F)=>{const Z=s.dom.getAttribute(F);return Z===null?void 0:Z},co=(s,F)=>I.from(ao(s,F)),Go=(s,F)=>{const Z=s.dom;return Z&&Z.hasAttribute?Z.hasAttribute(F):!1},po=(s,F)=>{s.dom.removeAttribute(F)},qo=s=>se(s.dom.attributes,(F,Z)=>(F[Z.name]=Z.value,F),{}),Ao=(s,F,Z)=>{if(!n(Z))throw console.error("Invalid call to CSS.set. Property ",F,":: Value ",Z,":: Element ",s),new Error("CSS value must be a string: "+Z);Lt(s)&&s.style.setProperty(F,Z)},oi=(s,F)=>{Lt(s)&&s.style.removeProperty(F)},ko=(s,F,Z)=>{const ue=s.dom;Ao(ue,F,Z)},ra=(s,F)=>{const Z=s.dom;We(F,(ue,we)=>{Ao(Z,we,ue)})},mo=(s,F)=>{const Z=s.dom;We(F,(ue,we)=>{ue.fold(()=>{oi(Z,we)},Be=>{Ao(Z,we,Be)})})},Aa=(s,F)=>{const Z=s.dom,we=window.getComputedStyle(Z).getPropertyValue(F);return we===""&&!Er(s)?Xl(Z,F):we},Xl=(s,F)=>Lt(s)?s.style.getPropertyValue(F):"",Na=(s,F)=>{const Z=s.dom,ue=Xl(Z,F);return I.from(ue).filter(we=>we.length>0)},us=s=>{const F={},Z=s.dom;if(Lt(Z))for(let ue=0;ue{const ue=Pt.fromTag(s);return ko(ue,F,Z),Na(ue,F).isSome()},ga=(s,F)=>{const Z=s.dom;oi(Z,F),wt(co(s,"style").map(Rt),"")&&po(s,"style")},Ku=s=>s.dom.offsetWidth,qc=(s,F)=>{const Z=(ft,gt)=>{if(!h(gt)&&!gt.match(/^[0-9]+$/))throw new Error(s+".set accepts only positive integer values. Value was "+gt);const At=ft.dom;Lt(At)&&(At.style[s]=gt+"px")},ue=ft=>{const gt=F(ft);if(gt<=0||gt===null){const At=Aa(ft,s);return parseFloat(At)||0}return gt},we=ue,Be=(ft,gt)=>se(gt,(At,$t)=>{const on=Aa(ft,$t),yn=on===void 0?0:parseInt(on,10);return isNaN(yn)?At:At+yn},0);return{set:Z,get:ue,getOuter:we,aggregate:Be,max:(ft,gt,At)=>{const $t=Be(ft,At);return gt>$t?gt-$t:0}}},Yd=qc("height",s=>{const F=s.dom;return Er(s)?F.getBoundingClientRect().height:F.offsetHeight}),Ql=s=>Yd.get(s),Ed=s=>Yd.getOuter(s),Nf=(s,F)=>{const Z=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],ue=Yd.max(s,F,Z);ko(s,"max-height",ue+"px")},mm=(s,F)=>({left:s,top:F,translate:(ue,we)=>mm(s+ue,F+we)}),Ws=mm,gm=s=>{const F=s.getBoundingClientRect();return Ws(F.left,F.top)},Gl=(s,F)=>s!==void 0?s:F!==void 0?F:0,pc=s=>{const F=s.dom.ownerDocument,Z=F.body,ue=F.defaultView,we=F.documentElement;if(Z===s.dom)return Ws(Z.offsetLeft,Z.offsetTop);const Be=Gl(ue==null?void 0:ue.pageYOffset,we.scrollTop),qe=Gl(ue==null?void 0:ue.pageXOffset,we.scrollLeft),ft=Gl(we.clientTop,Z.clientTop),gt=Gl(we.clientLeft,Z.clientLeft);return Cu(s).translate(qe-gt,Be-ft)},Cu=s=>{const F=s.dom,ue=F.ownerDocument.body;return ue===F?Ws(ue.offsetLeft,ue.offsetTop):Er(s)?gm(F):Ws(0,0)},xl=qc("width",s=>s.dom.offsetWidth),la=(s,F)=>xl.set(s,F),cc=s=>xl.get(s),pu=s=>xl.getOuter(s),ju=(s,F)=>{const Z=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],ue=xl.max(s,F,Z);ko(s,"max-width",ue+"px")},iu=s=>{let F=!1,Z;return(...ue)=>(F||(F=!0,Z=s.apply(null,ue)),Z)},mc=(s,F,Z,ue)=>{const we=s.isiOS()&&/ipad/i.test(Z)===!0,Be=s.isiOS()&&!we,qe=s.isiOS()||s.isAndroid(),ft=qe||ue("(pointer:coarse)"),gt=we||!Be&&qe&&ue("(min-device-width:768px)"),At=Be||qe&&!gt,$t=F.isSafari()&&s.isiOS()&&/safari/i.test(Z)===!1,on=!At&&!gt&&!$t;return{isiPad:x(we),isiPhone:x(Be),isTablet:x(gt),isPhone:x(At),isTouch:x(ft),isAndroid:s.isAndroid,isiOS:s.isiOS,isWebView:x($t),isDesktop:x(on)}},ks=(s,F)=>{for(let Z=0;Z{const Z=ks(s,F);if(!Z)return{major:0,minor:0};const ue=we=>Number(F.replace(Z,"$"+we));return $h(ue(1),ue(2))},yf=(s,F)=>{const Z=String(F).toLowerCase();return s.length===0?Ju():$f(s,Z)},Ju=()=>$h(0,0),$h=(s,F)=>({major:s,minor:F}),Es={nu:$h,detect:yf,unknown:Ju},ef=(s,F)=>Oe(F.brands,Z=>{const ue=Z.brand.toLowerCase();return ce(s,we=>{var Be;return ue===((Be=we.brand)===null||Be===void 0?void 0:Be.toLowerCase())}).map(we=>({current:we.name,version:Es.nu(parseInt(Z.version,10),0)}))}),uc=(s,F)=>{const Z=String(F).toLowerCase();return ce(s,ue=>ue.search(Z))},sd=(s,F)=>uc(s,F).map(Z=>{const ue=Es.detect(Z.versionRegexes,F);return{current:Z.name,version:ue}}),Vf=(s,F)=>uc(s,F).map(Z=>{const ue=Es.detect(Z.versionRegexes,F);return{current:Z.name,version:ue}}),gc=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ld=s=>F=>bt(F,s),Mp=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:s=>bt(s,"edge/")&&bt(s,"chrome")&&bt(s,"safari")&&bt(s,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,gc],search:s=>bt(s,"chrome")&&!bt(s,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:s=>bt(s,"msie")||bt(s,"trident")},{name:"Opera",versionRegexes:[gc,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ld("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ld("firefox")},{name:"Safari",versionRegexes:[gc,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:s=>(bt(s,"safari")||bt(s,"mobile/"))&&bt(s,"applewebkit")}],Xd=[{name:"Windows",search:ld("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:s=>bt(s,"iphone")||bt(s,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ld("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:ld("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ld("linux"),versionRegexes:[]},{name:"Solaris",search:ld("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ld("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ld("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],bf={browsers:x(Mp),oses:x(Xd)},mh="Edge",cd="Chromium",Vh="IE",xf="Opera",tf="Firefox",Au="Safari",_f=()=>ud({current:void 0,version:Es.unknown()}),ud=s=>{const F=s.current,Z=s.version,ue=we=>()=>F===we;return{current:F,version:Z,isEdge:ue(mh),isChromium:ue(cd),isIE:ue(Vh),isOpera:ue(xf),isFirefox:ue(tf),isSafari:ue(Au)}},nf={unknown:_f,nu:ud,edge:x(mh),chromium:x(cd),ie:x(Vh),opera:x(xf),firefox:x(tf),safari:x(Au)},gh="Windows",rs="iOS",ep="Android",Ep="Linux",vm="macOS",Pd="Solaris",M0="FreeBSD",sr="ChromeOS",Pp=()=>wf({current:void 0,version:Es.unknown()}),wf=s=>{const F=s.current,Z=s.version,ue=we=>()=>F===we;return{current:F,version:Z,isWindows:ue(gh),isiOS:ue(rs),isAndroid:ue(ep),isMacOS:ue(vm),isLinux:ue(Ep),isSolaris:ue(Pd),isFreeBSD:ue(M0),isChromeOS:ue(sr)}},Of={unknown:Pp,nu:wf,windows:x(gh),ios:x(rs),android:x(ep),linux:x(Ep),macos:x(vm),solaris:x(Pd),freebsd:x(M0),chromeos:x(sr)},Gd={detect:(s,F,Z)=>{const ue=bf.browsers(),we=bf.oses(),Be=F.bind(gt=>ef(ue,gt)).orThunk(()=>sd(ue,s)).fold(nf.unknown,nf.nu),qe=Vf(we,s).fold(Of.unknown,Of.nu),ft=mc(qe,Be,s,Z);return{browser:Be,os:qe,deviceType:ft}}},Fa=s=>window.matchMedia(s).matches;let Qu=iu(()=>Gd.detect(navigator.userAgent,I.from(navigator.userAgentData),Fa));const rf=()=>Qu(),Bc=(s,F,Z,ue,we,Be,qe)=>({target:s,x:F,y:Z,stop:ue,prevent:we,kill:Be,raw:qe}),ym=s=>{const F=Pt.fromDom(cr(s).getOr(s.target)),Z=()=>s.stopPropagation(),ue=()=>s.preventDefault(),we=S(ue,Z);return Bc(F,s.clientX,s.clientY,Z,ue,we,s)},Mu=(s,F)=>Z=>{s(Z)&&F(ym(Z))},Hu=(s,F,Z,ue,we)=>{const Be=Mu(Z,ue);return s.dom.addEventListener(F,Be,we),{unbind:T(jh,s,F,Be,we)}},Lp=(s,F,Z,ue)=>Hu(s,F,Z,ue,!1),Uh=(s,F,Z,ue)=>Hu(s,F,Z,ue,!0),jh=(s,F,Z,ue)=>{s.dom.removeEventListener(F,Z,ue)},Eu=(s,F)=>{br(s).each(ue=>{ue.dom.insertBefore(F.dom,s.dom)})},fd=(s,F)=>{Wr(s).fold(()=>{br(s).each(we=>{Pu(we,F)})},ue=>{Eu(ue,F)})},vh=(s,F)=>{hr(s).fold(()=>{Pu(s,F)},ue=>{s.dom.insertBefore(F.dom,ue.dom)})},Pu=(s,F)=>{s.dom.appendChild(F.dom)},Oc=(s,F,Z)=>{Bn(s,Z).fold(()=>{Pu(s,F)},ue=>{Eu(ue,F)})},Ts=(s,F)=>{q(F,Z=>{Pu(s,Z)})},Uf=s=>{s.dom.textContent="",q(bo(s),F=>{zl(F)})},zl=s=>{const F=s.dom;F.parentNode!==null&&F.parentNode.removeChild(F)},Hl=s=>{const F=s!==void 0?s.dom:document,Z=F.body.scrollLeft||F.documentElement.scrollLeft,ue=F.body.scrollTop||F.documentElement.scrollTop;return Ws(Z,ue)},Cs=(s,F,Z)=>{const we=(Z!==void 0?Z.dom:document).defaultView;we&&we.scrollTo(s,F)},$s=s=>{const F=s===void 0?window:s;return rf().browser.isFirefox()?I.none():I.from(F.visualViewport)},Zu=(s,F,Z,ue)=>({x:s,y:F,width:Z,height:ue,right:s+Z,bottom:F+ue}),yh=s=>{const F=s===void 0?window:s,Z=F.document,ue=Hl(Pt.fromDom(Z));return $s(F).fold(()=>{const we=F.document.documentElement,Be=we.clientWidth,qe=we.clientHeight;return Zu(ue.left,ue.top,Be,qe)},we=>Zu(Math.max(we.pageLeft,ue.left),Math.max(we.pageTop,ue.top),we.width,we.height))},of=()=>Pt.fromDom(document),tp=(s,F)=>s.view(F).fold(x([]),ue=>{const we=s.owner(ue),Be=tp(s,we);return[ue].concat(Be)}),Ip=(s,F)=>{const Z=F.owner(s),ue=tp(F,Z);return I.some(ue)};var bh=Object.freeze({__proto__:null,view:s=>{var F;return(s.dom===document?I.none():I.from((F=s.dom.defaultView)===null||F===void 0?void 0:F.frameElement)).map(Pt.fromDom)},owner:s=>go(s)});const Jd=s=>{const F=of(),Z=Hl(F);return Ip(s,bh).fold(T(pc,s),we=>{const Be=Cu(s),qe=he(we,(ft,gt)=>{const At=Cu(gt);return{left:ft.left+At.left,top:ft.top+At.top}},{left:0,top:0});return Ws(qe.left+Be.left+Z.left,qe.top+Be.top+Z.top)})},zc=(s,F,Z)=>({point:s,width:F,height:Z}),np=(s,F,Z,ue)=>({x:s,y:F,width:Z,height:ue}),ms=(s,F,Z,ue)=>({x:s,y:F,width:Z,height:ue,right:s+Z,bottom:F+ue}),Ya=s=>{const F=pc(s),Z=pu(s),ue=Ed(s);return ms(F.left,F.top,Z,ue)},_l=s=>{const F=Jd(s),Z=pu(s),ue=Ed(s);return ms(F.left,F.top,Z,ue)},dl=(s,F)=>{const Z=Math.max(s.x,F.x),ue=Math.max(s.y,F.y),we=Math.min(s.right,F.right),Be=Math.min(s.bottom,F.bottom),qe=we-Z,ft=Be-ue;return ms(Z,ue,qe,ft)},Wc=(s,F)=>se(F,(Z,ue)=>dl(Z,ue),s),wl=()=>yh(window),xi=s=>{let F=s;return{get:()=>F,set:we=>{F=we}}},mu=s=>{const F=xi(I.none()),Z=()=>F.get().each(s);return{clear:()=>{Z(),F.set(I.none())},isSet:()=>F.get().isSome(),get:()=>F.get(),set:ft=>{Z(),F.set(I.some(ft))}}},xh=()=>mu(s=>s.destroy()),js=()=>mu(s=>s.unbind()),os=()=>{const s=mu(v);return{...s,on:Z=>s.get().each(Z)}};var af=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Sf=s=>{const F=Be=>Be(s),Z=x(s),ue=()=>we,we={tag:!0,inner:s,fold:(Be,qe)=>qe(s),isValue:k,isError:D,map:Be=>Hi.value(Be(s)),mapError:ue,bind:F,exists:F,forall:F,getOr:Z,or:ue,getOrThunk:Z,orThunk:ue,getOrDie:Z,each:Be=>{Be(s)},toOptional:()=>I.some(s)};return we},sf=s=>{const F=()=>Z,Z={tag:!1,inner:s,fold:(ue,we)=>ue(s),isValue:D,isError:k,map:F,mapError:ue=>Hi.error(ue(s)),bind:F,exists:D,forall:k,getOr:R,or:R,getOrThunk:L,orThunk:L,getOrDie:C(String(s)),each:v,toOptional:I.none};return Z},Hi={value:Sf,error:sf,fromOption:(s,F)=>s.fold(()=>sf(F),Sf)};var pi;(function(s){s[s.Error=0]="Error",s[s.Value=1]="Value"})(pi||(pi={}));const Qh=(s,F,Z)=>s.stype===pi.Error?F(s.serror):Z(s.svalue),Ru=s=>{const F=[],Z=[];return q(s,ue=>{Qh(ue,we=>Z.push(we),we=>F.push(we))}),{values:F,errors:Z}},vc=(s,F)=>s.stype===pi.Error?{stype:pi.Error,serror:F(s.serror)}:s,Yc=(s,F)=>s.stype===pi.Value?{stype:pi.Value,svalue:F(s.svalue)}:s,Kl=(s,F)=>s.stype===pi.Value?F(s.svalue):s,Fc=(s,F)=>s.stype===pi.Error?F(s.serror):s,si=s=>({stype:pi.Value,svalue:s}),Hh=s=>({stype:pi.Error,serror:s}),tl={fromResult:s=>s.fold(Hh,si),toResult:s=>Qh(s,Hi.error,Hi.value),svalue:si,partition:Ru,serror:Hh,bind:Kl,bindError:Fc,map:Yc,mapError:vc,fold:Qh},gu=(s,F,Z,ue)=>({tag:"field",key:s,newKey:F,presence:Z,prop:ue}),vu=(s,F)=>({tag:"custom",newKey:s,instantiator:F}),ja=(s,F,Z)=>{switch(s.tag){case"field":return F(s.key,s.newKey,s.presence,s.prop);case"custom":return Z(s.newKey,s.instantiator)}},yu=(s,F)=>F,Rd=(s,F)=>b(s)&&b(F)?nl(s,F):F,Ld=s=>(...F)=>{if(F.length===0)throw new Error("Can't merge zero objects");const Z={};for(let ue=0;ue({tag:"required",process:{}}),Xi=s=>({tag:"defaultedThunk",process:s}),Xc=s=>Xi(x(s)),jf=()=>({tag:"option",process:{}}),bu=s=>({tag:"mergeWithThunk",process:s}),Dp=s=>bu(x(s)),rp=(s,F)=>s.length>0?tl.svalue(nl(F,Id.apply(void 0,s))):tl.svalue(F),Lu=s=>S(tl.serror,ve)(s),dd={consolidateObj:(s,F)=>{const Z=tl.partition(s);return Z.errors.length>0?Lu(Z.errors):rp(Z.values,F)},consolidateArr:s=>{const F=tl.partition(s);return F.errors.length>0?Lu(F.errors):tl.svalue(F.values)}},Hf=s=>c(s)&&ke(s).length>100?" removed due to size":JSON.stringify(s,null,2),_h=s=>{const F=s.length>10?s.slice(0,10).concat([{path:[],getErrorInfo:x("... (only showing first ten failures)")}]):s;return oe(F,Z=>"Failed path: ("+Z.path.join(" > ")+`) +`+Z.getErrorInfo())},Gc=(s,F)=>tl.serror([{path:s,getErrorInfo:F}]),hd=(s,F,Z)=>Gc(s,()=>'Could not find valid *required* value for "'+F+'" in '+Hf(Z)),rl=(s,F)=>Gc(s,()=>'Choice schema did not contain choice key: "'+F+'"'),Dd=(s,F,Z)=>Gc(s,()=>'The chosen schema: "'+Z+'" did not exist in branches: '+Hf(F)),Vi=(s,F)=>Gc(s,()=>"There are unsupported fields: ["+F.join(", ")+"] specified"),fa=(s,F)=>Gc(s,x(F)),au=s=>{const F=(ue,we)=>tl.bindError(s(we),Be=>fa(ue,Be)),Z=x("val");return{extract:F,toString:Z}},Zf=au(tl.svalue),Zl=(s,F,Z,ue)=>Ge(F,Z).fold(()=>hd(s,Z,F),ue),Jl=(s,F,Z,ue)=>{const we=Ge(s,F).getOrThunk(()=>Z(s));return ue(we)},Bd=(s,F,Z)=>Z(Ge(s,F)),Qs=(s,F,Z,ue)=>{const we=Ge(s,F).map(Be=>Be===!0?Z(s):Be);return ue(we)},kc=(s,F,Z,ue,we)=>{const Be=ft=>we.extract(F.concat([ue]),ft),qe=ft=>ft.fold(()=>tl.svalue(I.none()),gt=>{const At=we.extract(F.concat([ue]),gt);return tl.map(At,I.some)});switch(s.tag){case"required":return Zl(F,Z,ue,Be);case"defaultedThunk":return Jl(Z,ue,s.process,Be);case"option":return Bd(Z,ue,qe);case"defaultedOptionThunk":return Qs(Z,ue,s.process,qe);case"mergeWithThunk":return Jl(Z,ue,x({}),ft=>{const gt=nl(s.process(Z),ft);return Be(gt)})}},Iu=(s,F,Z)=>{const ue={},we=[];for(const Be of Z)ja(Be,(qe,ft,gt,At)=>{const $t=kc(gt,s,F,qe,At);tl.fold($t,on=>{we.push(...on)},on=>{ue[ft]=on})},(qe,ft)=>{ue[qe]=ft(F)});return we.length>0?tl.serror(we):tl.svalue(ue)},Ea=s=>({extract:(ue,we)=>s().extract(ue,we),toString:()=>s().toString()}),El=s=>ke(Ne(s,a)),Ol=s=>{const F=Mi(s),Z=he(s,(we,Be)=>ja(Be,qe=>nl(we,{[qe]:!0}),x(we)),{});return{extract:(we,Be)=>{const qe=w(Be)?[]:El(Be),ft=me(qe,gt=>!pt(Z,gt));return ft.length===0?F.extract(we,Be):Vi(we,ft)},toString:F.toString}},Mi=s=>({extract:(ue,we)=>Iu(ue,we,s),toString:()=>`obj{ `+oe(s,we=>ja(we,(Be,qe,ft,gt)=>Be+" -> "+gt.toString(),(Be,qe)=>"state("+Be+")")).join(` -`)+"}"}),Sf=s=>({extract:(ue,we)=>{const Be=oe(we,(qe,ft)=>s.extract(ue.concat(["["+ft+"]"]),qe));return fd.consolidateArr(Be)},toString:()=>"array("+s.toString()+")"}),Ot=(s,F)=>{const Z=F!==void 0?F:R;return{extract:(Be,qe)=>{const ft=[];for(const gt of s){const At=gt.extract(Be,qe);if(At.stype===pi.Value)return{stype:pi.Value,svalue:Z(At.svalue)};ft.push(At)}return fd.consolidateArr(ft)},toString:()=>"oneOf("+oe(s,Be=>Be.toString()).join(", ")+")"}},Mt=(s,F)=>{const Z=(Be,qe)=>Sf(au(s)).extract(Be,qe);return{extract:(Be,qe)=>{const ft=ke(qe),gt=Z(Be,ft);return tl.bind(gt,At=>{const $t=oe(At,on=>mu(on,on,Ka(),F));return Mi($t).extract(Be,qe)})},toString:()=>"setOf("+F.toString()+")"}},Ft=(s,F)=>{const Z=iu(F);return{extract:(Be,qe)=>Z().extract(Be,qe),toString:()=>Z().toString()}},J=S(Sf,Mi),le=x(Zf),ie=(s,F)=>au(Z=>{const ue=typeof Z;return s(Z)?tl.svalue(Z):tl.serror(`Expected type: ${F} but got: ${ue}`)}),V=ie(h,"number"),ne=ie(n,"string"),ge=ie(w,"boolean"),xe=ie(u,"function"),Me=s=>{if(Object(s)!==s)return!0;switch({}.toString.call(s).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(s).every(F=>Me(s[F]));default:return!1}},Fe=au(s=>Me(s)?tl.svalue(s):tl.serror("Expected value to be acceptable for sending via postMessage")),Je=(s,F,Z,ue)=>Ge(Z,ue).fold(()=>Dd(s,Z,ue),Be=>Be.extract(s.concat(["branch: "+ue]),F)),rt=(s,F)=>({extract:(we,Be)=>Ge(Be,s).fold(()=>rl(we,s),ft=>Je(we,Be,F,ft)),toString:()=>"chooseOn("+s+"). Possible values: "+ke(F)}),dt=()=>Sf(Zf),mt=s=>au(F=>s(F).fold(tl.serror,tl.svalue)),Et=(s,F)=>Mt(Z=>tl.fromResult(s(Z)),F),Vt=(s,F,Z)=>{const ue=F.extract([s],Z);return tl.mapError(ue,we=>({input:Z,errors:we}))},jt=(s,F,Z)=>tl.toResult(Vt(s,F,Z)),Nt=s=>s.fold(F=>{throw new Error(sn(F))},R),cn=(s,F,Z)=>Nt(jt(s,F,Z)),sn=s=>`Errors: +`)+"}"}),kf=s=>({extract:(ue,we)=>{const Be=oe(we,(qe,ft)=>s.extract(ue.concat(["["+ft+"]"]),qe));return dd.consolidateArr(Be)},toString:()=>"array("+s.toString()+")"}),Ot=(s,F)=>{const Z=F!==void 0?F:R;return{extract:(Be,qe)=>{const ft=[];for(const gt of s){const At=gt.extract(Be,qe);if(At.stype===pi.Value)return{stype:pi.Value,svalue:Z(At.svalue)};ft.push(At)}return dd.consolidateArr(ft)},toString:()=>"oneOf("+oe(s,Be=>Be.toString()).join(", ")+")"}},Mt=(s,F)=>{const Z=(Be,qe)=>kf(au(s)).extract(Be,qe);return{extract:(Be,qe)=>{const ft=ke(qe),gt=Z(Be,ft);return tl.bind(gt,At=>{const $t=oe(At,on=>gu(on,on,Ka(),F));return Mi($t).extract(Be,qe)})},toString:()=>"setOf("+F.toString()+")"}},Ft=(s,F)=>{const Z=iu(F);return{extract:(Be,qe)=>Z().extract(Be,qe),toString:()=>Z().toString()}},J=S(kf,Mi),le=x(Zf),ie=(s,F)=>au(Z=>{const ue=typeof Z;return s(Z)?tl.svalue(Z):tl.serror(`Expected type: ${F} but got: ${ue}`)}),V=ie(h,"number"),ne=ie(n,"string"),ge=ie(w,"boolean"),xe=ie(u,"function"),Me=s=>{if(Object(s)!==s)return!0;switch({}.toString.call(s).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(s).every(F=>Me(s[F]));default:return!1}},Fe=au(s=>Me(s)?tl.svalue(s):tl.serror("Expected value to be acceptable for sending via postMessage")),Je=(s,F,Z,ue)=>Ge(Z,ue).fold(()=>Dd(s,Z,ue),Be=>Be.extract(s.concat(["branch: "+ue]),F)),rt=(s,F)=>({extract:(we,Be)=>Ge(Be,s).fold(()=>rl(we,s),ft=>Je(we,Be,F,ft)),toString:()=>"chooseOn("+s+"). Possible values: "+ke(F)}),dt=()=>kf(Zf),mt=s=>au(F=>s(F).fold(tl.serror,tl.svalue)),Et=(s,F)=>Mt(Z=>tl.fromResult(s(Z)),F),Vt=(s,F,Z)=>{const ue=F.extract([s],Z);return tl.mapError(ue,we=>({input:Z,errors:we}))},jt=(s,F,Z)=>tl.toResult(Vt(s,F,Z)),Nt=s=>s.fold(F=>{throw new Error(sn(F))},R),cn=(s,F,Z)=>Nt(jt(s,F,Z)),sn=s=>`Errors: `+_h(s.errors).join(` `)+` -Input object: `+Hf(s.input),xn=(s,F)=>rt(s,Ue(F,Mi)),pn=(s,F)=>Ft(s,F),Ln=mu,On=gu,An=s=>mt(F=>X(s,F)?Hi.value(F):Hi.error(`Unsupported value: "${F}", choose one of "${s.join(", ")}".`)),Sn=s=>Ln(s,s,Ka(),le()),rr=(s,F)=>Ln(s,s,Ka(),F),Dr=s=>rr(s,V),Pr=s=>rr(s,ne),Zr=(s,F)=>Ln(s,s,Ka(),An(F)),Mo=s=>rr(s,ge),$o=s=>rr(s,xe),vo=(s,F)=>Ln(s,s,jf(),au(Z=>tl.serror("The field: "+s+" is forbidden. "+F))),zo=(s,F)=>Ln(s,s,Ka(),Mi(F)),yi=(s,F)=>Ln(s,s,Ka(),J(F)),Si=(s,F)=>Ln(s,s,Ka(),Sf(F)),Hr=s=>Ln(s,s,jf(),le()),Lo=(s,F)=>Ln(s,s,jf(),F),ki=s=>Lo(s,V),Io=s=>Lo(s,ne),$i=(s,F)=>Lo(s,An(F)),Ui=s=>Lo(s,xe),ba=(s,F)=>Lo(s,Sf(F)),Pi=(s,F)=>Lo(s,Mi(F)),fs=(s,F)=>Lo(s,_l(F)),mr=(s,F)=>Ln(s,s,Xc(F),le()),ys=(s,F,Z)=>Ln(s,s,Xc(F),Z),Pl=(s,F)=>ys(s,F,V),Ys=(s,F)=>ys(s,F,ne),dl=(s,F,Z)=>ys(s,F,An(Z)),ds=(s,F)=>ys(s,F,ge),Pa=(s,F)=>ys(s,F,xe),Rs=(s,F)=>ys(s,F,Fe),Ls=(s,F,Z)=>ys(s,F,Sf(Z)),ol=(s,F,Z)=>ys(s,F,Mi(Z)),Ds={generate:s=>{if(!i(s))throw new Error("cases must be an array");if(s.length===0)throw new Error("there must be at least one case");const F=[],Z={};return q(s,(ue,we)=>{const Be=ke(ue);if(Be.length!==1)throw new Error("one and only one name per case");const qe=Be[0],ft=ue[qe];if(Z[qe]!==void 0)throw new Error("duplicate key detected:"+qe);if(qe==="cata")throw new Error("cannot have a case named cata (sorry)");if(!i(ft))throw new Error("case arguments must be an array");F.push(qe),Z[qe]=(...gt)=>{const At=gt.length;if(At!==ft.length)throw new Error("Wrong number of arguments to case "+qe+". Expected "+ft.length+" ("+ft+"), got "+At);return{fold:(...on)=>{if(on.length!==s.length)throw new Error("Wrong number of arguments to fold. Expected "+s.length+", got "+on.length);return on[we].apply(null,gt)},match:on=>{const yn=ke(on);if(F.length!==yn.length)throw new Error("Wrong number of arguments to match. Expected: "+F.join(",")+` +Input object: `+Hf(s.input),xn=(s,F)=>rt(s,Ue(F,Mi)),pn=(s,F)=>Ft(s,F),Ln=gu,On=vu,An=s=>mt(F=>X(s,F)?Hi.value(F):Hi.error(`Unsupported value: "${F}", choose one of "${s.join(", ")}".`)),Sn=s=>Ln(s,s,Ka(),le()),rr=(s,F)=>Ln(s,s,Ka(),F),Dr=s=>rr(s,V),Pr=s=>rr(s,ne),Zr=(s,F)=>Ln(s,s,Ka(),An(F)),Mo=s=>rr(s,ge),$o=s=>rr(s,xe),vo=(s,F)=>Ln(s,s,jf(),au(Z=>tl.serror("The field: "+s+" is forbidden. "+F))),zo=(s,F)=>Ln(s,s,Ka(),Mi(F)),yi=(s,F)=>Ln(s,s,Ka(),J(F)),Si=(s,F)=>Ln(s,s,Ka(),kf(F)),Hr=s=>Ln(s,s,jf(),le()),Lo=(s,F)=>Ln(s,s,jf(),F),ki=s=>Lo(s,V),Io=s=>Lo(s,ne),$i=(s,F)=>Lo(s,An(F)),Ui=s=>Lo(s,xe),ba=(s,F)=>Lo(s,kf(F)),Pi=(s,F)=>Lo(s,Mi(F)),ds=(s,F)=>Lo(s,Ol(F)),mr=(s,F)=>Ln(s,s,Xc(F),le()),bs=(s,F,Z)=>Ln(s,s,Xc(F),Z),Pl=(s,F)=>bs(s,F,V),Ys=(s,F)=>bs(s,F,ne),hl=(s,F,Z)=>bs(s,F,An(Z)),hs=(s,F)=>bs(s,F,ge),Pa=(s,F)=>bs(s,F,xe),Rs=(s,F)=>bs(s,F,Fe),Ls=(s,F,Z)=>bs(s,F,kf(Z)),ol=(s,F,Z)=>bs(s,F,Mi(Z)),Ds={generate:s=>{if(!i(s))throw new Error("cases must be an array");if(s.length===0)throw new Error("there must be at least one case");const F=[],Z={};return q(s,(ue,we)=>{const Be=ke(ue);if(Be.length!==1)throw new Error("one and only one name per case");const qe=Be[0],ft=ue[qe];if(Z[qe]!==void 0)throw new Error("duplicate key detected:"+qe);if(qe==="cata")throw new Error("cannot have a case named cata (sorry)");if(!i(ft))throw new Error("case arguments must be an array");F.push(qe),Z[qe]=(...gt)=>{const At=gt.length;if(At!==ft.length)throw new Error("Wrong number of arguments to case "+qe+". Expected "+ft.length+" ("+ft+"), got "+At);return{fold:(...on)=>{if(on.length!==s.length)throw new Error("Wrong number of arguments to fold. Expected "+s.length+", got "+on.length);return on[we].apply(null,gt)},match:on=>{const yn=ke(on);if(F.length!==yn.length)throw new Error("Wrong number of arguments to match. Expected: "+F.join(",")+` Actual: `+yn.join(","));if(!_e(F,Mn=>X(yn,Mn)))throw new Error("Not all branches were specified when using match. Specified: "+yn.join(", ")+` -Required: `+F.join(", "));return on[qe].apply(null,gt)},log:on=>{console.log(on,{constructors:F,constructor:qe,params:gt})}}}}),Z}};Ds.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const ec=s=>{const F=[],Z=[];return q(s,ue=>{ue.fold(we=>{F.push(we)},we=>{Z.push(we)})}),{errors:F,values:Z}},Tc=(s,F)=>{const Z={};return We(s,(ue,we)=>{X(F,we)||(Z[we]=ue)}),Z},op=(s,F)=>({[s]:F}),ip=s=>{const F={};return q(s,Z=>{F[Z.key]=Z.value}),F},Hs=(s,F)=>Tc(s,F),wh=(s,F)=>op(s,F),hd=s=>ip(s),qf=(s,F)=>s.length===0?Hi.value(F):Hi.value(nl(F,Id.apply(void 0,s))),tc=s=>Hi.error(ve(s)),Wf=(s,F)=>{const Z=ec(s);return Z.errors.length>0?tc(Z.errors):qf(Z.values,F)},Rl=s=>u(s)?s:D,lg=(s,F,Z)=>{let ue=s.dom;const we=Rl(Z);for(;ue.parentNode;){ue=ue.parentNode;const Be=Pt.fromDom(ue),qe=F(Be);if(qe.isSome())return qe;if(we(Be))break}return I.none()},E0=(s,F,Z)=>{const ue=F(s),we=Rl(Z);return ue.orThunk(()=>we(s)?I.none():lg(s,F,we))},xm=(s,F)=>so(s.element,F.event.target),Cx={can:k,abort:D,run:v},eh=s=>{if(!pt(s,"can")&&!pt(s,"abort")&&!pt(s,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(s,null,2)+" does not have can, abort, or run!");return{...Cx,...s}},Ax=(s,F)=>(...Z)=>se(s,(ue,we)=>ue&&F(we).apply(void 0,Z),!0),Wg=(s,F)=>(...Z)=>se(s,(ue,we)=>ue||F(we).apply(void 0,Z),!1),Mx=s=>u(s)?{can:k,abort:D,run:s}:s,O1=s=>{const F=Ax(s,we=>we.can),Z=Wg(s,we=>we.abort);return{can:F,abort:Z,run:(...we)=>{q(s,Be=>{Be.run.apply(void 0,we)})}}},oc=x,_m=oc("touchstart"),Yg=oc("touchmove"),wm=oc("touchend"),cb=oc("touchcancel"),Oh=oc("mousedown"),Ex=oc("mousemove"),kf=oc("mouseout"),Hv=oc("mouseup"),Om=oc("mouseover"),Sm=oc("focusin"),ap=oc("focusout"),Bp=oc("keydown"),P0=oc("keyup"),cg=oc("input"),Zv=oc("change"),R0=oc("click"),C_=oc("transitioncancel"),sp=oc("transitionend"),A_=oc("transitionstart"),ub=oc("selectstart"),Fl=s=>x("alloy."+s),Yf={tap:Fl("tap")},km=Fl("focus"),Xg=Fl("blur.post"),Gg=Fl("paste.post"),lp=Fl("receive"),cp=Fl("execute"),fb=Fl("focus.item"),up=Yf.tap,Xf=Fl("longpress"),L0=Fl("sandbox.close"),Px=Fl("typeahead.cancel"),zp=Fl("system.init"),Kg=Fl("system.touchmove"),M_=Fl("system.touchend"),S1=Fl("system.scroll"),Tm=Fl("system.resize"),zd=Fl("system.attached"),fp=Fl("system.detached"),I0=Fl("system.dismissRequested"),E_=Fl("system.repositionRequested"),Jg=Fl("focusmanager.shifted"),P_=Fl("slotcontainer.visibility"),k1=Fl("system.external.element.scroll"),zO=Fl("change.tab"),bu=Fl("dismiss.tab"),Cm=Fl("highlight"),D0=Fl("dehighlight"),Sa=(s,F)=>{db(s,s.element,F,{})},Ri=(s,F,Z)=>{db(s,s.element,F,Z)},Fp=s=>{Sa(s,cp())},qv=(s,F,Z)=>{db(s,F,Z,{})},db=(s,F,Z,ue)=>{const we={target:F,...ue};s.getSystem().triggerEvent(Z,F,we)},T1=(s,F,Z,ue)=>{const we={...ue,target:F};s.getSystem().triggerEvent(Z,F,we)},Np=(s,F,Z,ue)=>{s.getSystem().triggerEvent(Z,F,ue.event)},hl=s=>hd(s),FO=(s,F)=>({key:s,value:eh({abort:F})}),Rx=(s,F)=>({key:s,value:eh({can:F})}),B0=s=>({key:s,value:eh({run:(F,Z)=>{Z.event.prevent()}})}),fo=(s,F)=>({key:s,value:eh({run:F})}),e0=(s,F,Z)=>({key:s,value:eh({run:(ue,we)=>{F.apply(void 0,[ue,we].concat(Z))}})}),xS=s=>F=>fo(s,F),ug=s=>F=>({key:s,value:eh({run:(Z,ue)=>{xm(Z,ue)&&F(Z,ue)}})}),R_=(s,F)=>fo(s,(Z,ue)=>{Z.getSystem().getByUid(F).each(we=>{Np(we,we.element,s,ue)})}),Fd=(s,F,Z)=>{const ue=F.partUids[Z];return R_(s,ue)},L_=(s,F)=>fo(s,(Z,ue)=>{const we=ue.event,Be=Z.getSystem().getByDom(we.target).getOrThunk(()=>E0(we.target,ft=>Z.getSystem().getByDom(ft).toOptional(),D).getOr(Z));F(Z,Be,ue)}),Am=s=>fo(s,(F,Z)=>{Z.cut()}),I_=s=>fo(s,(F,Z)=>{Z.stop()}),Wv=(s,F)=>ug(s)(F),Ll=ug(zd()),Sh=ug(fp()),NO=ug(zp()),$p=xS(cp()),Lx=(s,F,Z)=>{const ue=Z.toString(),we=ue.indexOf(")")+1,Be=ue.indexOf("("),qe=ue.substring(Be+1,we-1).split(/,\s*/);return s.toFunctionAnnotation=()=>({name:F,parameters:Yv(qe.slice(0,1).concat(qe.slice(3)))}),s},Yv=s=>oe(s,F=>yt(F,"/*")?F.substring(0,F.length-2):F),Xv=(s,F)=>{const Z=s.toString(),ue=Z.indexOf(")")+1,we=Z.indexOf("("),Be=Z.substring(we+1,ue-1).split(/,\s*/);return s.toFunctionAnnotation=()=>({name:F,parameters:Yv(Be)}),s},hb=(s,F)=>{const Z=F.toString(),ue=Z.indexOf(")")+1,we=Z.indexOf("("),Be=Z.substring(we+1,ue-1).split(/,\s*/);return s.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:Yv(Be.slice(1))}),s},Tf=s=>({classes:y(s.classes)?[]:s.classes,attributes:y(s.attributes)?{}:s.attributes,styles:y(s.styles)?{}:s.styles}),$O=(s,F)=>({...s,attributes:{...s.attributes,...F.attributes},styles:{...s.styles,...F.styles},classes:s.classes.concat(F.classes)}),C1=(s,F,Z)=>$p(ue=>{Z(ue,s,F)}),A1=(s,F,Z)=>NO((ue,we)=>{Z(ue,s,F)}),pd=(s,F,Z,ue,we,Be)=>{const qe=_l(s),ft=Pi(F,[fs("config",s)]);return Gv(qe,ft,F,Z,ue,we,Be)},D_=(s,F,Z,ue,we,Be)=>{const qe=s,ft=Pi(F,[Lo("config",s)]);return Gv(qe,ft,F,Z,ue,we,Be)},VO=(s,F,Z)=>Lx((we,...Be)=>{const qe=[we].concat(Be);return we.config({name:x(s)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+s+". Using API: "+Z)},ft=>{const gt=Array.prototype.slice.call(qe,1);return F.apply(void 0,[we,ft.config,ft.state].concat(gt))})},Z,F),B_=s=>({key:s,value:void 0}),Gv=(s,F,Z,ue,we,Be,qe)=>{const ft=on=>pt(on,Z)?on[Z]():I.none(),gt=Ue(we,(on,yn)=>VO(Z,on,yn)),$t={...Ue(Be,(on,yn)=>Xv(on,yn)),...gt,revoke:T(B_,Z),config:on=>{const yn=cn(Z+"-config",s,on);return{key:Z,value:{config:yn,me:$t,configAsRaw:iu(()=>cn(Z+"-config",s,on)),initialConfig:on,state:qe}}},schema:x(F),exhibit:(on,yn)=>en(ft(on),Ge(ue,"exhibit"),(wn,Mn)=>Mn(yn,wn.config,wn.state)).getOrThunk(()=>Tf({})),name:x(Z),handlers:on=>ft(on).map(yn=>Ge(ue,"events").getOr(()=>({}))(yn.config,yn.state)).getOr({})};return $t},Gf={init:()=>kh({readState:x("No State required")})},kh=s=>s,Do=s=>hd(s),Ix=_l([Sn("fields"),Sn("name"),mr("active",{}),mr("apis",{}),mr("state",Gf),mr("extra",{})]),lf=s=>{const F=cn("Creating behaviour: "+s.name,Ix,s);return pd(F.fields,F.name,F.active,F.apis,F.extra,F.state)},pb=_l([Sn("branchKey"),Sn("branches"),Sn("name"),mr("active",{}),mr("apis",{}),mr("state",Gf),mr("extra",{})]),md=s=>{const F=cn("Creating behaviour: "+s.name,pb,s);return D_(xn(F.branchKey,F.branches),F.name,F.active,F.apis,F.extra,F.state)},Nl=x(void 0),fg=(s,F)=>{const Z=ao(s,F);return Z===void 0||Z===""?[]:Z.split(" ")},Dx=(s,F,Z)=>{const we=fg(s,F).concat([Z]);return fr(s,F,we.join(" ")),!0},UO=(s,F,Z)=>{const ue=me(fg(s,F),we=>we!==Z);return ue.length>0?fr(s,F,ue.join(" ")):po(s,F),!1},t0=s=>s.dom.classList!==void 0,mb=s=>fg(s,"class"),Mm=(s,F)=>Dx(s,"class",F),jO=(s,F)=>UO(s,"class",F),z_=(s,F)=>X(mb(s),F)?jO(s,F):Mm(s,F),wl=(s,F)=>{t0(s)?s.dom.classList.add(F):Mm(s,F)},Kv=s=>{(t0(s)?s.dom.classList:mb(s)).length===0&&po(s,"class")},fc=(s,F)=>{t0(s)?s.dom.classList.remove(F):jO(s,F),Kv(s)},Jv=(s,F)=>{const Z=t0(s)?s.dom.classList.toggle(F):z_(s,F);return Kv(s),Z},$l=(s,F)=>t0(s)&&s.dom.classList.contains(F),M1=(s,F)=>{q(F,Z=>{wl(s,Z)})},th=(s,F)=>{q(F,Z=>{fc(s,Z)})},Bx=(s,F)=>{q(F,Z=>{Jv(s,Z)})},ic=(s,F)=>_e(F,Z=>$l(s,Z)),F_=s=>{const F=s.dom.classList,Z=new Array(F.length);for(let ue=0;uet0(s)?F_(s):mb(s),Du=(s,F,Z,ue,we)=>{const Be=qe=>qe+"px";return{position:s,left:F.map(Be),top:Z.map(Be),right:ue.map(Be),bottom:we.map(Be)}},su=s=>({...s,position:I.some(s.position)}),dg=(s,F)=>{mo(s,su(F))},n0=s=>(wt(Na(s,"position"),"fixed")?I.none():Qr(s)).orThunk(()=>{const ue=Pt.fromTag("span");return br(s).bind(we=>{Pu(we,ue);const Be=Qr(ue);return zl(ue),Be})}),N_=s=>n0(s).map(pc).getOrThunk(()=>Ws(0,0)),ey=(s,F)=>{const Z=s.element;wl(Z,F.transitionClass),fc(Z,F.fadeOutClass),wl(Z,F.fadeInClass),F.onShow(s)},hg=(s,F)=>{const Z=s.element;wl(Z,F.transitionClass),fc(Z,F.fadeInClass),wl(Z,F.fadeOutClass),F.onHide(s)},ty=(s,F)=>s.yF.y,E1=(s,F)=>s.y>=F.y,z0=(s,F)=>s.bottom<=F.bottom,pg=(s,F,Z)=>({location:"top",leftX:F,topY:Z.bounds.y-s.y}),P1=(s,F,Z)=>({location:"bottom",leftX:F,bottomY:s.bottom-Z.bounds.bottom}),R1=s=>s.box.x-s.win.x,zx=(s,F,Z)=>{const ue=F.win,we=F.box,Be=R1(F);return Oe(s,qe=>{switch(qe){case"bottom":return z0(we,Z.bounds)?I.none():I.some(P1(ue,Be,Z));case"top":return E1(we,Z.bounds)?I.none():I.some(pg(ue,Be,Z));default:return I.none()}}).getOr({location:"no-dock"})},F0=(s,F,Z)=>_e(s,ue=>{switch(ue){case"bottom":return z0(F,Z.bounds);case"top":return E1(F,Z.bounds)}}),gb=(s,F)=>{const Z=F.optScrollEnv.fold(x(s.bounds.y),ue=>ue.scrollElmTop+(s.bounds.y-ue.currentScrollTop));return Ws(s.bounds.x,Z)},Fx=(s,F)=>{const Z=F.optScrollEnv.fold(x(s.y),ue=>s.y+ue.currentScrollTop-ue.scrollElmTop);return Ws(s.x,Z)},$_=(s,F,Z)=>Z.getInitialPos().map(ue=>{const we=gb(ue,F);return{box:ms(we.left,we.top,cc(s),Ql(s)),location:ue.location}}),Nx=(s,F,Z,ue,we)=>{const Be=Fx(F,Z),qe=ms(Be.left,Be.top,F.width,F.height);ue.setInitialPos({style:cs(s),position:Aa(s,"position")||"static",bounds:qe,location:we.location})},V_=(s,F,Z,ue,we)=>{ue.getInitialPos().fold(()=>Nx(s,F,Z,ue,we),()=>v)},vb=(s,F,Z)=>Z.getInitialPos().bind(ue=>{var we;switch(Z.clearInitialPos(),ue.position){case"static":return I.some({morph:"static"});case"absolute":const Be=n0(s).getOr(Vr()),qe=Ya(Be),ft=(we=Be.dom.scrollTop)!==null&&we!==void 0?we:0;return I.some({morph:"absolute",positionCss:Du("absolute",Ge(ue.style,"left").map(gt=>F.x-qe.x),Ge(ue.style,"top").map(gt=>F.y-qe.y+ft),Ge(ue.style,"right").map(gt=>qe.right-F.right),Ge(ue.style,"bottom").map(gt=>qe.bottom-F.bottom))});default:return I.none()}}),L1=(s,F,Z)=>$_(s,F,Z).filter(({box:ue})=>F0(Z.getModes(),ue,F)).bind(({box:ue})=>vb(s,ue,Z)),gd=s=>{switch(s.location){case"top":return I.some({morph:"fixed",positionCss:Du("fixed",I.some(s.leftX),I.some(s.topY),I.none(),I.none())});case"bottom":return I.some({morph:"fixed",positionCss:Du("fixed",I.some(s.leftX),I.none(),I.none(),I.some(s.bottomY))});default:return I.none()}},U_=(s,F,Z)=>{const ue=Ya(s),we=xl(),Be=zx(Z.getModes(),{win:we,box:ue},F);return Be.location==="top"||Be.location==="bottom"?(Nx(s,ue,F,Z,Be),gd(Be)):I.none()},yb=(s,F,Z)=>L1(s,F,Z).orThunk(()=>F.optScrollEnv.bind(ue=>$_(s,F,Z)).bind(({box:ue,location:we})=>{const Be=xl(),qe=R1({win:Be,box:ue}),ft=we==="top"?pg(Be,qe,F):P1(Be,qe,F);return gd(ft)})),Th=(s,F,Z)=>{const ue=s.element;return wt(Na(ue,"position"),"fixed")?yb(ue,F,Z):U_(ue,F,Z)},Kf=(s,F,Z)=>{const ue=s.element;return $_(ue,F,Z).bind(({box:we})=>vb(ue,we,Z))},ny=(s,F,Z,ue)=>{const we=Ya(s),Be=xl(),qe=R1({win:Be,box:we}),ft=ue(Be,qe,F);return ft.location==="bottom"||ft.location==="top"?(V_(s,we,F,Z,ft),gd(ft)):I.none()},I1=(s,F,Z)=>{Z.setDocked(!1),q(["left","right","top","bottom","position"],ue=>ma(s.element,ue)),F.onUndocked(s)},cf=(s,F,Z,ue)=>{const we=ue.position==="fixed";Z.setDocked(we),dg(s.element,ue),(we?F.onDocked:F.onUndocked)(s)},Em=(s,F,Z,ue,we=!1)=>{F.contextual.each(Be=>{Be.lazyContext(s).each(qe=>{const ft=ty(qe,ue.bounds);ft!==Z.isVisible()&&(Z.setVisible(ft),we&&!ft?(M1(s.element,[Be.fadeOutClass]),Be.onHide(s)):(ft?ey:hg)(s,Be))})})},$x=(s,F,Z,ue,we)=>{Em(s,F,Z,ue,!0),cf(s,F,Z,we.positionCss)},Nd=(s,F,Z,ue,we)=>{switch(we.morph){case"static":return I1(s,F,Z);case"absolute":return cf(s,F,Z,we.positionCss);case"fixed":return $x(s,F,Z,ue,we)}},ry=(s,F,Z)=>{const ue=F.lazyViewport(s);Em(s,F,Z,ue),Th(s,ue,Z).each(we=>{Nd(s,F,Z,ue,we)})},HO=(s,F,Z)=>{const ue=s.element;Z.setDocked(!1);const we=F.lazyViewport(s);Kf(s,we,Z).each(Be=>{switch(Be.morph){case"static":{I1(s,F,Z);break}case"absolute":{cf(s,F,Z,Be.positionCss);break}}}),Z.setVisible(!0),F.contextual.each(Be=>{th(ue,[Be.fadeInClass,Be.fadeOutClass,Be.transitionClass]),Be.onShow(s)}),Vx(s,F,Z)},Vx=(s,F,Z)=>{s.getSystem().isConnected()&&ry(s,F,Z)},D1=(s,F,Z)=>{Z.isDocked()&&HO(s,F,Z)},j_=s=>(F,Z,ue)=>{const we=Z.lazyViewport(F);ny(F.element,we,ue,s).each(qe=>{$x(F,Z,ue,we,qe)})},oy=j_(pg),bb=j_(P1);var dp=Object.freeze({__proto__:null,refresh:Vx,reset:D1,isDocked:(s,F,Z)=>Z.isDocked(),getModes:(s,F,Z)=>Z.getModes(),setModes:(s,F,Z,ue)=>Z.setModes(ue),forceDockToTop:oy,forceDockToBottom:bb}),Q_=Object.freeze({__proto__:null,events:(s,F)=>hl([Wv(sp(),(Z,ue)=>{s.contextual.each(we=>{$l(Z.element,we.transitionClass)&&(th(Z.element,[we.transitionClass,we.fadeInClass]),(F.isVisible()?we.onShown:we.onHidden)(Z)),ue.stop()})}),fo(S1(),(Z,ue)=>{Vx(Z,s,F)}),fo(k1(),(Z,ue)=>{Vx(Z,s,F)}),fo(Tm(),(Z,ue)=>{D1(Z,s,F)})])});const Vp=(s,F)=>{const ue=(F||document).createElement("div");return ue.innerHTML=s,bo(Pt.fromDom(ue))},nh=s=>s.dom.innerHTML,B1=(s,F)=>{const ue=go(s).dom,we=Pt.fromDom(ue.createDocumentFragment()),Be=Vp(F,ue);ks(we,Be),Uf(s),Pu(s,we)},z1=s=>{const F=Pt.fromTag("div"),Z=Pt.fromDom(s.dom.cloneNode(!0));return Pu(F,Z),nh(F)},iy=(s,F)=>Pt.fromDom(s.dom.cloneNode(F)),qO=s=>iy(s,!1),_S=s=>iy(s,!0),F1=s=>{if(Zn(s))return"#shadow-root";{const F=qO(s);return z1(F)}},rh=s=>F1(s),H_="unknown";var nc;(function(s){s[s.STOP=0]="STOP",s[s.NORMAL=1]="NORMAL",s[s.LOGGING=2]="LOGGING"})(nc||(nc={}));const $0=xi({}),vd=(s,F)=>{const Z=[],ue=new Date().getTime();return{logEventCut:(we,Be,qe)=>{Z.push({outcome:"cut",target:Be,purpose:qe})},logEventStopped:(we,Be,qe)=>{Z.push({outcome:"stopped",target:Be,purpose:qe})},logNoParent:(we,Be,qe)=>{Z.push({outcome:"no-parent",target:Be,purpose:qe})},logEventNoHandlers:(we,Be)=>{Z.push({outcome:"no-handlers-left",target:Be})},logEventResponse:(we,Be,qe)=>{Z.push({outcome:"response",purpose:qe,target:Be})},write:()=>{const we=new Date().getTime();X(["mousemove","mouseover","mouseout",zp()],s)||console.log(s,{event:s,time:we-ue,target:F.dom,sequence:oe(Z,Be=>X(["cut","stopped","response"],Be.outcome)?"{"+Be.purpose+"} "+Be.outcome+" at ("+rh(Be.target)+")":Be.outcome)})}}},wS=(s,F,Z)=>{switch(Ge($0.get(),s).orThunk(()=>{const we=ke($0.get());return Oe(we,Be=>s.indexOf(Be)>-1?I.some($0.get()[Be]):I.none())}).getOr(nc.NORMAL)){case nc.NORMAL:return Z(Ch());case nc.LOGGING:{const we=vd(s,F),Be=Z(we);return we.write(),Be}case nc.STOP:return!0}},N1=["alloy/data/Fields","alloy/debugging/Debugging"],r0=()=>{const s=new Error;if(s.stack!==void 0){const F=s.stack.split(` -`);return ce(F,Z=>Z.indexOf("alloy")>0&&!te(N1,ue=>Z.indexOf(ue)>-1)).getOr(H_)}else return H_},gg={logEventCut:v,logEventStopped:v,logNoParent:v,logEventNoHandlers:v,logEventResponse:v,write:v},oh=(s,F,Z)=>wS(s,F,Z),Ch=x(gg),Z_=x([Sn("menu"),Sn("selectedMenu")]),q_=x([Sn("item"),Sn("selectedItem")]);x(Mi(q_().concat(Z_())));const V0=x(Mi(q_())),Up=zo("initSize",[Sn("numColumns"),Sn("numRows")]),W_=()=>rr("markers",V0()),U0=()=>zo("markers",[Sn("backgroundMenu")].concat(Z_()).concat(q_())),jp=s=>zo("markers",oe(s,Sn)),o0=(s,F,Z)=>(r0(),Ln(F,F,Z,mt(ue=>Hi.value((...we)=>ue.apply(void 0,we))))),Ra=s=>o0("onHandler",s,Xc(v)),yd=s=>o0("onKeyboardHandler",s,Xc(I.none)),Zh=s=>o0("onHandler",s,Ka()),i0=s=>o0("onKeyboardHandler",s,Ka()),Il=(s,F)=>On(s,x(F)),WO=s=>On(s,R),$1=x(Up);var V1=[Pi("contextual",[Pr("fadeInClass"),Pr("fadeOutClass"),Pr("transitionClass"),$o("lazyContext"),Ra("onShow"),Ra("onShown"),Ra("onHide"),Ra("onHidden")]),Pa("lazyViewport",()=>({bounds:xl(),optScrollEnv:I.none()})),Ls("modes",["top","bottom"],ne),Ra("onDocked"),Ra("onUndocked")],ay=Object.freeze({__proto__:null,init:s=>{const F=xi(!1),Z=xi(!0),ue=os(),we=xi(s.modes),Be=()=>`docked: ${F.get()}, visible: ${Z.get()}, modes: ${we.get().join(",")}`;return kh({isDocked:F.get,setDocked:F.set,getInitialPos:ue.get,setInitialPos:ue.set,clearInitialPos:ue.clear,isVisible:Z.get,setVisible:Z.set,getModes:we.get,setModes:we.set,readState:Be})}});const Dl=lf({fields:V1,name:"docking",active:Q_,apis:dp,state:ay}),Ol=(s,F,Z)=>so(F,s.element)&&!so(F,Z),OS=hl([Rx(km(),(s,F)=>{const Z=F.event,ue=Z.originator,we=Z.target;return Ol(s,ue,we)?(console.warn(km()+` did not get interpreted by the desired target. +Required: `+F.join(", "));return on[qe].apply(null,gt)},log:on=>{console.log(on,{constructors:F,constructor:qe,params:gt})}}}}),Z}};Ds.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const ec=s=>{const F=[],Z=[];return q(s,ue=>{ue.fold(we=>{F.push(we)},we=>{Z.push(we)})}),{errors:F,values:Z}},Tc=(s,F)=>{const Z={};return We(s,(ue,we)=>{X(F,we)||(Z[we]=ue)}),Z},op=(s,F)=>({[s]:F}),ip=s=>{const F={};return q(s,Z=>{F[Z.key]=Z.value}),F},Hs=(s,F)=>Tc(s,F),wh=(s,F)=>op(s,F),pd=s=>ip(s),qf=(s,F)=>s.length===0?Hi.value(F):Hi.value(nl(F,Id.apply(void 0,s))),tc=s=>Hi.error(ve(s)),Wf=(s,F)=>{const Z=ec(s);return Z.errors.length>0?tc(Z.errors):qf(Z.values,F)},Rl=s=>u(s)?s:D,cg=(s,F,Z)=>{let ue=s.dom;const we=Rl(Z);for(;ue.parentNode;){ue=ue.parentNode;const Be=Pt.fromDom(ue),qe=F(Be);if(qe.isSome())return qe;if(we(Be))break}return I.none()},E0=(s,F,Z)=>{const ue=F(s),we=Rl(Z);return ue.orThunk(()=>we(s)?I.none():cg(s,F,we))},xm=(s,F)=>so(s.element,F.event.target),Cx={can:k,abort:D,run:v},eh=s=>{if(!pt(s,"can")&&!pt(s,"abort")&&!pt(s,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(s,null,2)+" does not have can, abort, or run!");return{...Cx,...s}},Ax=(s,F)=>(...Z)=>se(s,(ue,we)=>ue&&F(we).apply(void 0,Z),!0),Wg=(s,F)=>(...Z)=>se(s,(ue,we)=>ue||F(we).apply(void 0,Z),!1),Mx=s=>u(s)?{can:k,abort:D,run:s}:s,k1=s=>{const F=Ax(s,we=>we.can),Z=Wg(s,we=>we.abort);return{can:F,abort:Z,run:(...we)=>{q(s,Be=>{Be.run.apply(void 0,we)})}}},oc=x,_m=oc("touchstart"),Yg=oc("touchmove"),wm=oc("touchend"),ub=oc("touchcancel"),Oh=oc("mousedown"),Ex=oc("mousemove"),Tf=oc("mouseout"),Hv=oc("mouseup"),Om=oc("mouseover"),Sm=oc("focusin"),ap=oc("focusout"),Bp=oc("keydown"),P0=oc("keyup"),ug=oc("input"),Zv=oc("change"),R0=oc("click"),C_=oc("transitioncancel"),sp=oc("transitionend"),A_=oc("transitionstart"),fb=oc("selectstart"),Fl=s=>x("alloy."+s),Yf={tap:Fl("tap")},km=Fl("focus"),Xg=Fl("blur.post"),Gg=Fl("paste.post"),lp=Fl("receive"),cp=Fl("execute"),db=Fl("focus.item"),up=Yf.tap,Xf=Fl("longpress"),L0=Fl("sandbox.close"),Px=Fl("typeahead.cancel"),zp=Fl("system.init"),Kg=Fl("system.touchmove"),M_=Fl("system.touchend"),T1=Fl("system.scroll"),Tm=Fl("system.resize"),zd=Fl("system.attached"),fp=Fl("system.detached"),I0=Fl("system.dismissRequested"),E_=Fl("system.repositionRequested"),Jg=Fl("focusmanager.shifted"),P_=Fl("slotcontainer.visibility"),C1=Fl("system.external.element.scroll"),zO=Fl("change.tab"),xu=Fl("dismiss.tab"),Cm=Fl("highlight"),D0=Fl("dehighlight"),Sa=(s,F)=>{hb(s,s.element,F,{})},Ri=(s,F,Z)=>{hb(s,s.element,F,Z)},Fp=s=>{Sa(s,cp())},qv=(s,F,Z)=>{hb(s,F,Z,{})},hb=(s,F,Z,ue)=>{const we={target:F,...ue};s.getSystem().triggerEvent(Z,F,we)},A1=(s,F,Z,ue)=>{const we={...ue,target:F};s.getSystem().triggerEvent(Z,F,we)},Np=(s,F,Z,ue)=>{s.getSystem().triggerEvent(Z,F,ue.event)},pl=s=>pd(s),FO=(s,F)=>({key:s,value:eh({abort:F})}),Rx=(s,F)=>({key:s,value:eh({can:F})}),B0=s=>({key:s,value:eh({run:(F,Z)=>{Z.event.prevent()}})}),fo=(s,F)=>({key:s,value:eh({run:F})}),e0=(s,F,Z)=>({key:s,value:eh({run:(ue,we)=>{F.apply(void 0,[ue,we].concat(Z))}})}),_S=s=>F=>fo(s,F),fg=s=>F=>({key:s,value:eh({run:(Z,ue)=>{xm(Z,ue)&&F(Z,ue)}})}),R_=(s,F)=>fo(s,(Z,ue)=>{Z.getSystem().getByUid(F).each(we=>{Np(we,we.element,s,ue)})}),Fd=(s,F,Z)=>{const ue=F.partUids[Z];return R_(s,ue)},L_=(s,F)=>fo(s,(Z,ue)=>{const we=ue.event,Be=Z.getSystem().getByDom(we.target).getOrThunk(()=>E0(we.target,ft=>Z.getSystem().getByDom(ft).toOptional(),D).getOr(Z));F(Z,Be,ue)}),Am=s=>fo(s,(F,Z)=>{Z.cut()}),I_=s=>fo(s,(F,Z)=>{Z.stop()}),Wv=(s,F)=>fg(s)(F),Ll=fg(zd()),Sh=fg(fp()),NO=fg(zp()),$p=_S(cp()),Lx=(s,F,Z)=>{const ue=Z.toString(),we=ue.indexOf(")")+1,Be=ue.indexOf("("),qe=ue.substring(Be+1,we-1).split(/,\s*/);return s.toFunctionAnnotation=()=>({name:F,parameters:Yv(qe.slice(0,1).concat(qe.slice(3)))}),s},Yv=s=>oe(s,F=>yt(F,"/*")?F.substring(0,F.length-2):F),Xv=(s,F)=>{const Z=s.toString(),ue=Z.indexOf(")")+1,we=Z.indexOf("("),Be=Z.substring(we+1,ue-1).split(/,\s*/);return s.toFunctionAnnotation=()=>({name:F,parameters:Yv(Be)}),s},pb=(s,F)=>{const Z=F.toString(),ue=Z.indexOf(")")+1,we=Z.indexOf("("),Be=Z.substring(we+1,ue-1).split(/,\s*/);return s.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:Yv(Be.slice(1))}),s},Cf=s=>({classes:y(s.classes)?[]:s.classes,attributes:y(s.attributes)?{}:s.attributes,styles:y(s.styles)?{}:s.styles}),$O=(s,F)=>({...s,attributes:{...s.attributes,...F.attributes},styles:{...s.styles,...F.styles},classes:s.classes.concat(F.classes)}),M1=(s,F,Z)=>$p(ue=>{Z(ue,s,F)}),E1=(s,F,Z)=>NO((ue,we)=>{Z(ue,s,F)}),md=(s,F,Z,ue,we,Be)=>{const qe=Ol(s),ft=Pi(F,[ds("config",s)]);return Gv(qe,ft,F,Z,ue,we,Be)},D_=(s,F,Z,ue,we,Be)=>{const qe=s,ft=Pi(F,[Lo("config",s)]);return Gv(qe,ft,F,Z,ue,we,Be)},VO=(s,F,Z)=>Lx((we,...Be)=>{const qe=[we].concat(Be);return we.config({name:x(s)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+s+". Using API: "+Z)},ft=>{const gt=Array.prototype.slice.call(qe,1);return F.apply(void 0,[we,ft.config,ft.state].concat(gt))})},Z,F),B_=s=>({key:s,value:void 0}),Gv=(s,F,Z,ue,we,Be,qe)=>{const ft=on=>pt(on,Z)?on[Z]():I.none(),gt=Ue(we,(on,yn)=>VO(Z,on,yn)),$t={...Ue(Be,(on,yn)=>Xv(on,yn)),...gt,revoke:T(B_,Z),config:on=>{const yn=cn(Z+"-config",s,on);return{key:Z,value:{config:yn,me:$t,configAsRaw:iu(()=>cn(Z+"-config",s,on)),initialConfig:on,state:qe}}},schema:x(F),exhibit:(on,yn)=>en(ft(on),Ge(ue,"exhibit"),(wn,Mn)=>Mn(yn,wn.config,wn.state)).getOrThunk(()=>Cf({})),name:x(Z),handlers:on=>ft(on).map(yn=>Ge(ue,"events").getOr(()=>({}))(yn.config,yn.state)).getOr({})};return $t},Gf={init:()=>kh({readState:x("No State required")})},kh=s=>s,Bo=s=>pd(s),Ix=Ol([Sn("fields"),Sn("name"),mr("active",{}),mr("apis",{}),mr("state",Gf),mr("extra",{})]),lf=s=>{const F=cn("Creating behaviour: "+s.name,Ix,s);return md(F.fields,F.name,F.active,F.apis,F.extra,F.state)},mb=Ol([Sn("branchKey"),Sn("branches"),Sn("name"),mr("active",{}),mr("apis",{}),mr("state",Gf),mr("extra",{})]),gd=s=>{const F=cn("Creating behaviour: "+s.name,mb,s);return D_(xn(F.branchKey,F.branches),F.name,F.active,F.apis,F.extra,F.state)},Nl=x(void 0),dg=(s,F)=>{const Z=ao(s,F);return Z===void 0||Z===""?[]:Z.split(" ")},Dx=(s,F,Z)=>{const we=dg(s,F).concat([Z]);return fr(s,F,we.join(" ")),!0},UO=(s,F,Z)=>{const ue=me(dg(s,F),we=>we!==Z);return ue.length>0?fr(s,F,ue.join(" ")):po(s,F),!1},t0=s=>s.dom.classList!==void 0,gb=s=>dg(s,"class"),Mm=(s,F)=>Dx(s,"class",F),jO=(s,F)=>UO(s,"class",F),z_=(s,F)=>X(gb(s),F)?jO(s,F):Mm(s,F),Sl=(s,F)=>{t0(s)?s.dom.classList.add(F):Mm(s,F)},Kv=s=>{(t0(s)?s.dom.classList:gb(s)).length===0&&po(s,"class")},fc=(s,F)=>{t0(s)?s.dom.classList.remove(F):jO(s,F),Kv(s)},Jv=(s,F)=>{const Z=t0(s)?s.dom.classList.toggle(F):z_(s,F);return Kv(s),Z},$l=(s,F)=>t0(s)&&s.dom.classList.contains(F),P1=(s,F)=>{q(F,Z=>{Sl(s,Z)})},th=(s,F)=>{q(F,Z=>{fc(s,Z)})},Bx=(s,F)=>{q(F,Z=>{Jv(s,Z)})},ic=(s,F)=>_e(F,Z=>$l(s,Z)),F_=s=>{const F=s.dom.classList,Z=new Array(F.length);for(let ue=0;uet0(s)?F_(s):gb(s),Du=(s,F,Z,ue,we)=>{const Be=qe=>qe+"px";return{position:s,left:F.map(Be),top:Z.map(Be),right:ue.map(Be),bottom:we.map(Be)}},su=s=>({...s,position:I.some(s.position)}),hg=(s,F)=>{mo(s,su(F))},n0=s=>(wt(Na(s,"position"),"fixed")?I.none():Qr(s)).orThunk(()=>{const ue=Pt.fromTag("span");return br(s).bind(we=>{Pu(we,ue);const Be=Qr(ue);return zl(ue),Be})}),N_=s=>n0(s).map(pc).getOrThunk(()=>Ws(0,0)),ey=(s,F)=>{const Z=s.element;Sl(Z,F.transitionClass),fc(Z,F.fadeOutClass),Sl(Z,F.fadeInClass),F.onShow(s)},pg=(s,F)=>{const Z=s.element;Sl(Z,F.transitionClass),fc(Z,F.fadeInClass),Sl(Z,F.fadeOutClass),F.onHide(s)},ty=(s,F)=>s.yF.y,R1=(s,F)=>s.y>=F.y,z0=(s,F)=>s.bottom<=F.bottom,mg=(s,F,Z)=>({location:"top",leftX:F,topY:Z.bounds.y-s.y}),L1=(s,F,Z)=>({location:"bottom",leftX:F,bottomY:s.bottom-Z.bounds.bottom}),I1=s=>s.box.x-s.win.x,zx=(s,F,Z)=>{const ue=F.win,we=F.box,Be=I1(F);return Oe(s,qe=>{switch(qe){case"bottom":return z0(we,Z.bounds)?I.none():I.some(L1(ue,Be,Z));case"top":return R1(we,Z.bounds)?I.none():I.some(mg(ue,Be,Z));default:return I.none()}}).getOr({location:"no-dock"})},F0=(s,F,Z)=>_e(s,ue=>{switch(ue){case"bottom":return z0(F,Z.bounds);case"top":return R1(F,Z.bounds)}}),vb=(s,F)=>{const Z=F.optScrollEnv.fold(x(s.bounds.y),ue=>ue.scrollElmTop+(s.bounds.y-ue.currentScrollTop));return Ws(s.bounds.x,Z)},Fx=(s,F)=>{const Z=F.optScrollEnv.fold(x(s.y),ue=>s.y+ue.currentScrollTop-ue.scrollElmTop);return Ws(s.x,Z)},$_=(s,F,Z)=>Z.getInitialPos().map(ue=>{const we=vb(ue,F);return{box:ms(we.left,we.top,cc(s),Ql(s)),location:ue.location}}),Nx=(s,F,Z,ue,we)=>{const Be=Fx(F,Z),qe=ms(Be.left,Be.top,F.width,F.height);ue.setInitialPos({style:us(s),position:Aa(s,"position")||"static",bounds:qe,location:we.location})},V_=(s,F,Z,ue,we)=>{ue.getInitialPos().fold(()=>Nx(s,F,Z,ue,we),()=>v)},yb=(s,F,Z)=>Z.getInitialPos().bind(ue=>{var we;switch(Z.clearInitialPos(),ue.position){case"static":return I.some({morph:"static"});case"absolute":const Be=n0(s).getOr(Vr()),qe=Ya(Be),ft=(we=Be.dom.scrollTop)!==null&&we!==void 0?we:0;return I.some({morph:"absolute",positionCss:Du("absolute",Ge(ue.style,"left").map(gt=>F.x-qe.x),Ge(ue.style,"top").map(gt=>F.y-qe.y+ft),Ge(ue.style,"right").map(gt=>qe.right-F.right),Ge(ue.style,"bottom").map(gt=>qe.bottom-F.bottom))});default:return I.none()}}),D1=(s,F,Z)=>$_(s,F,Z).filter(({box:ue})=>F0(Z.getModes(),ue,F)).bind(({box:ue})=>yb(s,ue,Z)),vd=s=>{switch(s.location){case"top":return I.some({morph:"fixed",positionCss:Du("fixed",I.some(s.leftX),I.some(s.topY),I.none(),I.none())});case"bottom":return I.some({morph:"fixed",positionCss:Du("fixed",I.some(s.leftX),I.none(),I.none(),I.some(s.bottomY))});default:return I.none()}},U_=(s,F,Z)=>{const ue=Ya(s),we=wl(),Be=zx(Z.getModes(),{win:we,box:ue},F);return Be.location==="top"||Be.location==="bottom"?(Nx(s,ue,F,Z,Be),vd(Be)):I.none()},bb=(s,F,Z)=>D1(s,F,Z).orThunk(()=>F.optScrollEnv.bind(ue=>$_(s,F,Z)).bind(({box:ue,location:we})=>{const Be=wl(),qe=I1({win:Be,box:ue}),ft=we==="top"?mg(Be,qe,F):L1(Be,qe,F);return vd(ft)})),Th=(s,F,Z)=>{const ue=s.element;return wt(Na(ue,"position"),"fixed")?bb(ue,F,Z):U_(ue,F,Z)},Kf=(s,F,Z)=>{const ue=s.element;return $_(ue,F,Z).bind(({box:we})=>yb(ue,we,Z))},ny=(s,F,Z,ue)=>{const we=Ya(s),Be=wl(),qe=I1({win:Be,box:we}),ft=ue(Be,qe,F);return ft.location==="bottom"||ft.location==="top"?(V_(s,we,F,Z,ft),vd(ft)):I.none()},B1=(s,F,Z)=>{Z.setDocked(!1),q(["left","right","top","bottom","position"],ue=>ga(s.element,ue)),F.onUndocked(s)},cf=(s,F,Z,ue)=>{const we=ue.position==="fixed";Z.setDocked(we),hg(s.element,ue),(we?F.onDocked:F.onUndocked)(s)},Em=(s,F,Z,ue,we=!1)=>{F.contextual.each(Be=>{Be.lazyContext(s).each(qe=>{const ft=ty(qe,ue.bounds);ft!==Z.isVisible()&&(Z.setVisible(ft),we&&!ft?(P1(s.element,[Be.fadeOutClass]),Be.onHide(s)):(ft?ey:pg)(s,Be))})})},$x=(s,F,Z,ue,we)=>{Em(s,F,Z,ue,!0),cf(s,F,Z,we.positionCss)},Nd=(s,F,Z,ue,we)=>{switch(we.morph){case"static":return B1(s,F,Z);case"absolute":return cf(s,F,Z,we.positionCss);case"fixed":return $x(s,F,Z,ue,we)}},ry=(s,F,Z)=>{const ue=F.lazyViewport(s);Em(s,F,Z,ue),Th(s,ue,Z).each(we=>{Nd(s,F,Z,ue,we)})},HO=(s,F,Z)=>{const ue=s.element;Z.setDocked(!1);const we=F.lazyViewport(s);Kf(s,we,Z).each(Be=>{switch(Be.morph){case"static":{B1(s,F,Z);break}case"absolute":{cf(s,F,Z,Be.positionCss);break}}}),Z.setVisible(!0),F.contextual.each(Be=>{th(ue,[Be.fadeInClass,Be.fadeOutClass,Be.transitionClass]),Be.onShow(s)}),Vx(s,F,Z)},Vx=(s,F,Z)=>{s.getSystem().isConnected()&&ry(s,F,Z)},z1=(s,F,Z)=>{Z.isDocked()&&HO(s,F,Z)},j_=s=>(F,Z,ue)=>{const we=Z.lazyViewport(F);ny(F.element,we,ue,s).each(qe=>{$x(F,Z,ue,we,qe)})},oy=j_(mg),xb=j_(L1);var dp=Object.freeze({__proto__:null,refresh:Vx,reset:z1,isDocked:(s,F,Z)=>Z.isDocked(),getModes:(s,F,Z)=>Z.getModes(),setModes:(s,F,Z,ue)=>Z.setModes(ue),forceDockToTop:oy,forceDockToBottom:xb}),Q_=Object.freeze({__proto__:null,events:(s,F)=>pl([Wv(sp(),(Z,ue)=>{s.contextual.each(we=>{$l(Z.element,we.transitionClass)&&(th(Z.element,[we.transitionClass,we.fadeInClass]),(F.isVisible()?we.onShown:we.onHidden)(Z)),ue.stop()})}),fo(T1(),(Z,ue)=>{Vx(Z,s,F)}),fo(C1(),(Z,ue)=>{Vx(Z,s,F)}),fo(Tm(),(Z,ue)=>{z1(Z,s,F)})])});const Vp=(s,F)=>{const ue=(F||document).createElement("div");return ue.innerHTML=s,bo(Pt.fromDom(ue))},nh=s=>s.dom.innerHTML,F1=(s,F)=>{const ue=go(s).dom,we=Pt.fromDom(ue.createDocumentFragment()),Be=Vp(F,ue);Ts(we,Be),Uf(s),Pu(s,we)},N1=s=>{const F=Pt.fromTag("div"),Z=Pt.fromDom(s.dom.cloneNode(!0));return Pu(F,Z),nh(F)},iy=(s,F)=>Pt.fromDom(s.dom.cloneNode(F)),qO=s=>iy(s,!1),wS=s=>iy(s,!0),$1=s=>{if(Zn(s))return"#shadow-root";{const F=qO(s);return N1(F)}},rh=s=>$1(s),H_="unknown";var nc;(function(s){s[s.STOP=0]="STOP",s[s.NORMAL=1]="NORMAL",s[s.LOGGING=2]="LOGGING"})(nc||(nc={}));const $0=xi({}),yd=(s,F)=>{const Z=[],ue=new Date().getTime();return{logEventCut:(we,Be,qe)=>{Z.push({outcome:"cut",target:Be,purpose:qe})},logEventStopped:(we,Be,qe)=>{Z.push({outcome:"stopped",target:Be,purpose:qe})},logNoParent:(we,Be,qe)=>{Z.push({outcome:"no-parent",target:Be,purpose:qe})},logEventNoHandlers:(we,Be)=>{Z.push({outcome:"no-handlers-left",target:Be})},logEventResponse:(we,Be,qe)=>{Z.push({outcome:"response",purpose:qe,target:Be})},write:()=>{const we=new Date().getTime();X(["mousemove","mouseover","mouseout",zp()],s)||console.log(s,{event:s,time:we-ue,target:F.dom,sequence:oe(Z,Be=>X(["cut","stopped","response"],Be.outcome)?"{"+Be.purpose+"} "+Be.outcome+" at ("+rh(Be.target)+")":Be.outcome)})}}},OS=(s,F,Z)=>{switch(Ge($0.get(),s).orThunk(()=>{const we=ke($0.get());return Oe(we,Be=>s.indexOf(Be)>-1?I.some($0.get()[Be]):I.none())}).getOr(nc.NORMAL)){case nc.NORMAL:return Z(Ch());case nc.LOGGING:{const we=yd(s,F),Be=Z(we);return we.write(),Be}case nc.STOP:return!0}},V1=["alloy/data/Fields","alloy/debugging/Debugging"],r0=()=>{const s=new Error;if(s.stack!==void 0){const F=s.stack.split(` +`);return ce(F,Z=>Z.indexOf("alloy")>0&&!te(V1,ue=>Z.indexOf(ue)>-1)).getOr(H_)}else return H_},vg={logEventCut:v,logEventStopped:v,logNoParent:v,logEventNoHandlers:v,logEventResponse:v,write:v},oh=(s,F,Z)=>OS(s,F,Z),Ch=x(vg),Z_=x([Sn("menu"),Sn("selectedMenu")]),q_=x([Sn("item"),Sn("selectedItem")]);x(Mi(q_().concat(Z_())));const V0=x(Mi(q_())),Up=zo("initSize",[Sn("numColumns"),Sn("numRows")]),W_=()=>rr("markers",V0()),U0=()=>zo("markers",[Sn("backgroundMenu")].concat(Z_()).concat(q_())),jp=s=>zo("markers",oe(s,Sn)),o0=(s,F,Z)=>(r0(),Ln(F,F,Z,mt(ue=>Hi.value((...we)=>ue.apply(void 0,we))))),Ra=s=>o0("onHandler",s,Xc(v)),bd=s=>o0("onKeyboardHandler",s,Xc(I.none)),Zh=s=>o0("onHandler",s,Ka()),i0=s=>o0("onKeyboardHandler",s,Ka()),Il=(s,F)=>On(s,x(F)),WO=s=>On(s,R),U1=x(Up);var j1=[Pi("contextual",[Pr("fadeInClass"),Pr("fadeOutClass"),Pr("transitionClass"),$o("lazyContext"),Ra("onShow"),Ra("onShown"),Ra("onHide"),Ra("onHidden")]),Pa("lazyViewport",()=>({bounds:wl(),optScrollEnv:I.none()})),Ls("modes",["top","bottom"],ne),Ra("onDocked"),Ra("onUndocked")],ay=Object.freeze({__proto__:null,init:s=>{const F=xi(!1),Z=xi(!0),ue=os(),we=xi(s.modes),Be=()=>`docked: ${F.get()}, visible: ${Z.get()}, modes: ${we.get().join(",")}`;return kh({isDocked:F.get,setDocked:F.set,getInitialPos:ue.get,setInitialPos:ue.set,clearInitialPos:ue.clear,isVisible:Z.get,setVisible:Z.set,getModes:we.get,setModes:we.set,readState:Be})}});const Dl=lf({fields:j1,name:"docking",active:Q_,apis:dp,state:ay}),kl=(s,F,Z)=>so(F,s.element)&&!so(F,Z),SS=pl([Rx(km(),(s,F)=>{const Z=F.event,ue=Z.originator,we=Z.target;return kl(s,ue,we)?(console.warn(km()+` did not get interpreted by the desired target. Originator: `+rh(ue)+` Target: `+rh(we)+` -Check the `+km()+" event handlers"),!1):!0})]);var Y_=Object.freeze({__proto__:null,events:OS});let Pm=0;const fi=s=>{const Z=new Date().getTime(),ue=Math.floor(Math.random()*1e9);return Pm++,s+"_"+ue+Pm+String(Z)},SS=x("alloy-id-"),YO=x("data-alloy-id"),jx=SS(),X_=YO(),kS=(s,F)=>{const Z=fi(jx+s);return xb(F,Z),Z},xb=(s,F)=>{Object.defineProperty(s.dom,X_,{value:F,writable:!0})},sy=s=>{const F=Kn(s)?s.dom[X_]:null;return I.from(F)},j0=s=>fi(s),TS=R,Rm=s=>{const F=we=>`The component must be in a context to execute: ${we}`+(s?` -`+rh(s().element)+" is not in context.":""),Z=we=>()=>{throw new Error(F(we))},ue=we=>()=>{console.warn(F(we))};return{debugInfo:x("fake"),triggerEvent:ue("triggerEvent"),triggerFocus:ue("triggerFocus"),triggerEscape:ue("triggerEscape"),broadcast:ue("broadcast"),broadcastOn:ue("broadcastOn"),broadcastEvent:ue("broadcastEvent"),build:Z("build"),buildOrPatch:Z("buildOrPatch"),addToWorld:Z("addToWorld"),removeFromWorld:Z("removeFromWorld"),addToGui:Z("addToGui"),removeFromGui:Z("removeFromGui"),getByUid:Z("getByUid"),getByDom:Z("getByDom"),isConnected:D}},Qx=Rm(),Ah=fi("alloy-premade"),Hx=s=>(Object.defineProperty(s.element.dom,Ah,{value:s.uid,writable:!0}),wh(Ah,s)),ih=s=>ht(s.dom,Ah),G_=s=>Ge(s,Ah),Cc=s=>hb((F,...Z)=>s(F.getApis(),F,...Z),s),XO=(s,F)=>{const Z=oe(F,we=>Pi(we.name(),[Sn("config"),mr("state",Gf)])),ue=jt("component.behaviours",Mi(Z),s.behaviours).fold(we=>{throw new Error(sn(we)+` +Check the `+km()+" event handlers"),!1):!0})]);var Y_=Object.freeze({__proto__:null,events:SS});let Pm=0;const fi=s=>{const Z=new Date().getTime(),ue=Math.floor(Math.random()*1e9);return Pm++,s+"_"+ue+Pm+String(Z)},kS=x("alloy-id-"),YO=x("data-alloy-id"),jx=kS(),X_=YO(),TS=(s,F)=>{const Z=fi(jx+s);return _b(F,Z),Z},_b=(s,F)=>{Object.defineProperty(s.dom,X_,{value:F,writable:!0})},sy=s=>{const F=Kn(s)?s.dom[X_]:null;return I.from(F)},j0=s=>fi(s),CS=R,Rm=s=>{const F=we=>`The component must be in a context to execute: ${we}`+(s?` +`+rh(s().element)+" is not in context.":""),Z=we=>()=>{throw new Error(F(we))},ue=we=>()=>{console.warn(F(we))};return{debugInfo:x("fake"),triggerEvent:ue("triggerEvent"),triggerFocus:ue("triggerFocus"),triggerEscape:ue("triggerEscape"),broadcast:ue("broadcast"),broadcastOn:ue("broadcastOn"),broadcastEvent:ue("broadcastEvent"),build:Z("build"),buildOrPatch:Z("buildOrPatch"),addToWorld:Z("addToWorld"),removeFromWorld:Z("removeFromWorld"),addToGui:Z("addToGui"),removeFromGui:Z("removeFromGui"),getByUid:Z("getByUid"),getByDom:Z("getByDom"),isConnected:D}},Qx=Rm(),Ah=fi("alloy-premade"),Hx=s=>(Object.defineProperty(s.element.dom,Ah,{value:s.uid,writable:!0}),wh(Ah,s)),ih=s=>ht(s.dom,Ah),G_=s=>Ge(s,Ah),Cc=s=>pb((F,...Z)=>s(F.getApis(),F,...Z),s),XO=(s,F)=>{const Z=oe(F,we=>Pi(we.name(),[Sn("config"),mr("state",Gf)])),ue=jt("component.behaviours",Mi(Z),s.behaviours).fold(we=>{throw new Error(sn(we)+` Complete spec: -`+JSON.stringify(s,null,2))},R);return{list:F,data:Ue(ue,we=>{const Be=we.map(qe=>({config:qe.config,state:qe.state.init(qe.config)}));return x(Be)})}},yc=s=>s.list,GO=s=>s.data,Zx=(s,F)=>{const Z={};return We(s,(ue,we)=>{We(ue,(Be,qe)=>{const ft=Ge(Z,qe).getOr([]);Z[qe]=ft.concat([F(we,Be)])})}),Z},_b=(s,F,Z,ue)=>{const we={...F};q(Z,$t=>{we[$t.name()]=$t.exhibit(s,ue)});const Be=Zx(we,($t,on)=>({name:$t,modification:on})),qe=$t=>he($t,(on,yn)=>({...yn.modification,...on}),{}),ft=he(Be.classes,($t,on)=>on.modification.concat($t),[]),gt=qe(Be.attributes),At=qe(Be.styles);return Tf({classes:ft,attributes:gt,styles:At})},K_=(s,F,Z,ue)=>{try{const we=ze(Z,(Be,qe)=>{const ft=Be[F],gt=qe[F],At=ue.indexOf(ft),$t=ue.indexOf(gt);if(At===-1)throw new Error("The ordering for "+s+" does not have an entry for "+ft+`. +`+JSON.stringify(s,null,2))},R);return{list:F,data:Ue(ue,we=>{const Be=we.map(qe=>({config:qe.config,state:qe.state.init(qe.config)}));return x(Be)})}},yc=s=>s.list,GO=s=>s.data,Zx=(s,F)=>{const Z={};return We(s,(ue,we)=>{We(ue,(Be,qe)=>{const ft=Ge(Z,qe).getOr([]);Z[qe]=ft.concat([F(we,Be)])})}),Z},wb=(s,F,Z,ue)=>{const we={...F};q(Z,$t=>{we[$t.name()]=$t.exhibit(s,ue)});const Be=Zx(we,($t,on)=>({name:$t,modification:on})),qe=$t=>he($t,(on,yn)=>({...yn.modification,...on}),{}),ft=he(Be.classes,($t,on)=>on.modification.concat($t),[]),gt=qe(Be.attributes),At=qe(Be.styles);return Cf({classes:ft,attributes:gt,styles:At})},K_=(s,F,Z,ue)=>{try{const we=ze(Z,(Be,qe)=>{const ft=Be[F],gt=qe[F],At=ue.indexOf(ft),$t=ue.indexOf(gt);if(At===-1)throw new Error("The ordering for "+s+" does not have an entry for "+ft+`. Order specified: `+JSON.stringify(ue,null,2));if($t===-1)throw new Error("The ordering for "+s+" does not have an entry for "+gt+`. -Order specified: `+JSON.stringify(ue,null,2));return At<$t?-1:$t({handler:s,purpose:F}),J_=(s,F)=>({cHandler:s,purpose:F}),Lm=(s,F)=>J_(T.apply(void 0,[s.handler].concat(F)),s.purpose),qh=s=>s.cHandler,U1=(s,F)=>({name:s,handler:F}),Kc=(s,F)=>{const Z={};return q(s,ue=>{Z[ue.name()]=ue.handlers(F)}),Z},j1=(s,F,Z)=>{const ue={...Z,...Kc(F,s)};return Zx(ue,U1)},Qp=(s,F,Z,ue)=>{const we=j1(s,Z,ue);return Q1(we,F)},ly=s=>{const F=Mx(s);return(Z,ue,...we)=>{const Be=[Z,ue].concat(we);F.abort.apply(void 0,Be)?ue.stop():F.can.apply(void 0,Be)&&F.run.apply(void 0,Be)}},cy=(s,F)=>Hi.error(["The event ("+s+`) has more than one behaviour that listens to it. +Order specified: `+JSON.stringify(ue,null,2));return At<$t?-1:$t({handler:s,purpose:F}),J_=(s,F)=>({cHandler:s,purpose:F}),Lm=(s,F)=>J_(T.apply(void 0,[s.handler].concat(F)),s.purpose),qh=s=>s.cHandler,Q1=(s,F)=>({name:s,handler:F}),Kc=(s,F)=>{const Z={};return q(s,ue=>{Z[ue.name()]=ue.handlers(F)}),Z},H1=(s,F,Z)=>{const ue={...Z,...Kc(F,s)};return Zx(ue,Q1)},Qp=(s,F,Z,ue)=>{const we=H1(s,Z,ue);return Z1(we,F)},ly=s=>{const F=Mx(s);return(Z,ue,...we)=>{const Be=[Z,ue].concat(we);F.abort.apply(void 0,Be)?ue.stop():F.can.apply(void 0,Be)&&F.run.apply(void 0,Be)}},cy=(s,F)=>Hi.error(["The event ("+s+`) has more than one behaviour that listens to it. When this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]). -The behaviours that can trigger it are: `+JSON.stringify(oe(F,Z=>Z.name),null,2)]),wb=(s,F,Z)=>{const ue=F[Z];return ue?K_("Event: "+Z,"name",s,ue).map(we=>{const Be=oe(we,qe=>qe.handler);return O1(Be)}):cy(Z,s)},Q1=(s,F)=>{const Z=je(s,(ue,we)=>(ue.length===1?Hi.value(ue[0].handler):wb(ue,F,we)).map(qe=>{const ft=ly(qe),gt=ue.length>1?me(F[we],At=>te(ue,$t=>$t.name===At)).join(" > "):ue[0].name;return wh(we,qx(ft,gt))}));return Wf(Z,{})},bc="alloy.base.behaviour",KO=Mi([Ln("dom","dom",Ka(),Mi([Sn("tag"),mr("styles",{}),mr("classes",[]),mr("attributes",{}),Hr("value"),Hr("innerHtml")])),Sn("components"),Sn("uid"),mr("events",{}),mr("apis",{}),Ln("eventOrder","eventOrder",Dp({[cp()]:["disabling",bc,"toggling","typeaheadevents"],[km()]:[bc,"focusing","keying"],[zp()]:[bc,"disabling","toggling","representing"],[cg()]:[bc,"representing","streaming","invalidating"],[fp()]:[bc,"representing","item-events","toolbar-button-events","tooltipping"],[Oh()]:["focusing",bc,"item-type-events"],[_m()]:["focusing",bc,"item-type-events"],[Om()]:["item-type-events","tooltipping"],[lp()]:["receiving","reflecting","tooltipping"]}),le()),Hr("domModification")]),ew=s=>jt("custom.definition",KO,s),Q0=s=>({...s.dom,uid:s.uid,domChildren:oe(s.components,F=>F.element)}),Nc=s=>s.domModification.fold(()=>Tf({}),Tf),vg=s=>s.events,qr=s=>s.dom.value,N=(s,F)=>{if(F===void 0)throw new Error("Value.set was undefined");s.dom.value=F},G=(s,F,Z)=>Bn(s,F).map(we=>{if(Z.exists(qe=>!so(qe,we))){const qe=Z.map(ar).getOr("span"),ft=Pt.fromTag(qe);return Eu(we,ft),ft}else return we}),fe=(s,F,Z)=>{Z.fold(()=>Pu(s,F),ue=>{so(ue,F)||(Eu(ue,F),zl(ue))})},Ae=(s,F,Z)=>{const ue=oe(F,Z),we=bo(s);return q(we.slice(ue.length),zl),ue},Qe=(s,F,Z,ue)=>{const we=Bn(s,F),Be=ue(Z,we),qe=G(s,F,we);return fe(s,Be.element,qe),Be},et=(s,F,Z)=>Ae(s,F,(ue,we)=>Qe(s,we,ue,Z)),ut=(s,F)=>Ae(s,F,(Z,ue)=>{const we=Bn(s,ue);return fe(s,Z,we),Z}),Tt=(s,F)=>{const Z=ke(s),ue=ke(F),we=Te(ue,Z),Be=Ee(s,(qe,ft)=>!ht(F,ft)||qe!==F[ft]).t;return{toRemove:we,toSet:Be}},Bt=(s,F)=>{const{class:Z,style:ue,...we}=qo(F),{toSet:Be,toRemove:qe}=Tt(s.attributes,we),ft=()=>{q(qe,kr=>po(F,kr)),Eo(F,Be)},gt=cs(F),{toSet:At,toRemove:$t}=Tt(s.styles,gt),on=()=>{q($t,kr=>ma(F,kr)),ra(F,At)},yn=QO(F),wn=Te(yn,s.classes),Mn=Te(s.classes,yn),Xn=()=>{M1(F,Mn),th(F,wn)},Br=kr=>{B1(F,kr)},or=()=>{const kr=s.domChildren;ut(F,kr)},Mr=()=>{const kr=F,yo=s.value.getOrUndefined();yo!==qr(kr)&&N(kr,yo??"")};return ft(),Xn(),on(),s.innerHtml.fold(or,Br),Mr(),F},rn=s=>{const F=Pt.fromTag(s.tag);Eo(F,s.attributes),M1(F,s.classes),ra(F,s.styles),s.innerHtml.each(ue=>B1(F,ue));const Z=s.domChildren;return ks(F,Z),s.value.each(ue=>{N(F,ue)}),F},an=(s,F)=>{try{const Z=Bt(s,F);return I.some(Z)}catch{return I.none()}},_n=s=>s.innerHtml.isSome()&&s.domChildren.length>0,Dn=(s,F)=>{const Z=we=>ar(we)===s.tag&&!_n(s)&&!ih(we),ue=F.filter(Z).bind(we=>an(s,we)).getOrThunk(()=>rn(s));return xb(ue,s.uid),ue},Cn=s=>{const F=Ge(s,"behaviours").getOr({});return ye(ke(F),Z=>{const ue=F[Z];return a(ue)?[ue.me]:[]})},Jn=(s,F)=>XO(s,F),lr=s=>{const F=Cn(s);return Jn(s,F)},Ar=(s,F,Z)=>{const ue=Q0(s),we=Nc(s),Be={"alloy.base.modification":we},qe=F.length>0?_b(Z,Be,F,ue):we;return $O(ue,qe)},Or=(s,F,Z)=>{const ue={"alloy.base.behaviour":vg(s)};return Qp(Z,s.eventOrder,F,ue).getOrDie()},jr=(s,F)=>{const Z=()=>kr,ue=xi(Qx),we=Nt(ew(s)),Be=lr(s),qe=yc(Be),ft=GO(Be),gt=Ar(we,qe,ft),At=Dn(gt,F),$t=Or(we,qe,ft),on=xi(we.components),yn=yo=>{ue.set(yo)},wn=()=>{ue.set(Rm(Z))},Mn=()=>{const yo=bo(At),Xr=ye(yo,No=>ue.get().getByDom(No).fold(()=>[],Ie));on.set(Xr)},Xn=yo=>{const Xr=ft;return(u(Xr[yo.name()])?Xr[yo.name()]:()=>{throw new Error("Could not find "+yo.name()+" in "+JSON.stringify(s,null,2))})()},Br=yo=>u(ft[yo.name()]),or=()=>we.apis,Mr=yo=>ft[yo]().map(Xr=>Xr.state.readState()).getOr("not enabled"),kr={uid:s.uid,getSystem:ue.get,config:Xn,hasConfigured:Br,spec:s,readState:Mr,getApis:or,connect:yn,disconnect:wn,element:At,syncComponents:Mn,components:on.get,events:$t};return kr},Jr=(s,F)=>{const Z=Ge(s,"components").getOr([]);return F.fold(()=>oe(Z,vi),ue=>oe(Z,(we,Be)=>Ti(we,Bn(ue,Be))))},uo=(s,F)=>{const{events:Z,...ue}=TS(s),we=Jr(ue,F),Be={...ue,events:{...Y_,...Z},components:we};return Hi.value(jr(Be,F))},ro=s=>{const F=Pt.fromText(s);return Po({element:F})},Po=s=>{const F=cn("external.component",_l([Sn("element"),Hr("uid")]),s),Z=xi(Rm()),ue=ft=>{Z.set(ft)},we=()=>{Z.set(Rm(()=>qe))},Be=F.uid.getOrThunk(()=>j0("external"));xb(F.element,Be);const qe={uid:Be,getSystem:Z.get,config:I.none,hasConfigured:D,connect:ue,disconnect:we,getApis:()=>({}),element:F.element,spec:s,readState:x("No state"),syncComponents:v,components:x([]),events:{}};return Hx(qe)},gi=j0,ni=s=>ht(s,"uid"),Ti=(s,F)=>G_(s).getOrThunk(()=>{const Z=ni(s)?s:{uid:gi(""),...s};return uo(Z,F).getOrDie()}),vi=s=>Ti(s,I.none()),na=Hx;var Ji=(s,F,Z,ue,we)=>s(Z,ue)?I.some(Z):u(we)&&we(Z)?I.none():F(Z,ue,we);const La=(s,F,Z)=>{let ue=s.dom;const we=u(Z)?Z:D;for(;ue.parentNode;){ue=ue.parentNode;const Be=Pt.fromDom(ue);if(F(Be))return I.some(Be);if(we(Be))break}return I.none()},ca=(s,F,Z)=>Ji((we,Be)=>Be(we),La,s,F,Z),Zi=(s,F)=>{const Z=s.dom;return Z.parentNode?Bs(Pt.fromDom(Z.parentNode),ue=>!so(s,ue)&&F(ue)):I.none()},Bs=(s,F)=>{const Z=we=>F(Pt.fromDom(we));return ce(s.dom.childNodes,Z).map(Pt.fromDom)},Ja=(s,F)=>{const Z=ue=>{for(let we=0;weca(s,F,Z).isSome(),ka=s=>Co(s),zs=(s,F,Z)=>La(s,ue=>Rr(ue,F),Z),gs=(s,F)=>Zi(s,Z=>Rr(Z,F)),rc=(s,F)=>Bs(s,Z=>Rr(Z,F)),aa=(s,F)=>Co(F,s),Fs=(s,F,Z)=>Ji((we,Be)=>Rr(we,Be),zs,s,F,Z),$c="aria-controls",xc=s=>ca(s,Z=>{if(!Kn(Z))return!1;const ue=ao(Z,"id");return ue!==void 0&&ue.indexOf($c)>-1}).bind(Z=>{const ue=ao(Z,"id"),we=vr(Z);return aa(we,`[${$c}="${ue}"]`)}),xu=()=>{const s=fi($c);return{id:s,link:ue=>{fr(ue,$c,s)},unlink:ue=>{po(ue,$c)}}},qu=(s,F)=>xc(F).exists(Z=>Vc(s,Z)),Vc=(s,F)=>Vl(F,Z=>so(Z,s.element),D)||qu(s,F),pl=(s,F,Z,ue,we,Be,qe,ft=!1)=>({x:s,y:F,bubble:Z,direction:ue,placement:we,restriction:Be,label:`${qe}-${we}`,alwaysFit:ft}),Uc=Ds.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),_u=(s,F,Z,ue,we,Be,qe,ft,gt)=>s.fold(F,Z,ue,we,Be,qe,ft,gt),uf=(s,F,Z,ue)=>s.fold(F,F,ue,ue,F,ue,Z,Z),ff=(s,F,Z,ue)=>s.fold(F,ue,F,ue,Z,Z,F,ue),jc=Uc.southeast,is=Uc.southwest,Vs=Uc.northeast,Ac=Uc.northwest,Bl=Uc.south,Uo=Uc.north,ql=Uc.east,Xs=Uc.west,ac=(s,F,Z,ue)=>{const we=s+F;return we>ue?Z:weMath.min(Math.max(s,F),Z),Mh=(s,F)=>{switch(F){case 1:return s.x;case 0:return s.x+s.width;case 2:return s.y;case 3:return s.y+s.height}},il=(s,F)=>Pe(["left","right","top","bottom"],Z=>Ge(F,Z).map(ue=>Mh(s,ue))),Im=(s,F,Z)=>{const ue=(gt,At)=>F[gt].map($t=>{const on=gt==="top"||gt==="bottom",yn=on?Z.top:Z.left,Mn=(gt==="left"||gt==="top"?Math.max:Math.min)($t,At)+yn;return on?Mc(Mn,s.y,s.bottom):Mc(Mn,s.x,s.right)}).getOr(At),we=ue("left",s.x),Be=ue("top",s.y),qe=ue("right",s.right),ft=ue("bottom",s.bottom);return ms(we,Be,qe-we,ft-Be)},ah="layout",Bu=s=>s.x,Hp=(s,F)=>s.x+s.width/2-F.width/2,dc=(s,F)=>s.x+s.width-F.width,Jf=(s,F)=>s.y-F.height,yg=s=>s.y+s.height,Dm=(s,F)=>s.y+s.height/2-F.height/2,H1=s=>s.x+s.width,Wx=(s,F)=>s.x-F.width,Ec=(s,F,Z)=>pl(Bu(s),yg(s),Z.southeast(),jc(),"southeast",il(s,{left:1,top:3}),ah),Qc=(s,F,Z)=>pl(dc(s,F),yg(s),Z.southwest(),is(),"southwest",il(s,{right:0,top:3}),ah),Hc=(s,F,Z)=>pl(Bu(s),Jf(s,F),Z.northeast(),Vs(),"northeast",il(s,{left:1,bottom:2}),ah),_s=(s,F,Z)=>pl(dc(s,F),Jf(s,F),Z.northwest(),Ac(),"northwest",il(s,{right:0,bottom:2}),ah),Jc=(s,F,Z)=>pl(Hp(s,F),Jf(s,F),Z.north(),Uo(),"north",il(s,{bottom:2}),ah),Pc=(s,F,Z)=>pl(Hp(s,F),yg(s),Z.south(),Bl(),"south",il(s,{top:3}),ah),Z1=(s,F,Z)=>pl(H1(s),Dm(s,F),Z.east(),ql(),"east",il(s,{left:0}),ah),uy=(s,F,Z)=>pl(Wx(s,F),Dm(s,F),Z.west(),Xs(),"west",il(s,{right:1}),ah),q1=()=>[Ec,Qc,Hc,_s,Pc,Jc,Z1,uy],H0=()=>[Qc,Ec,_s,Hc,Pc,Jc,Z1,uy],W1=()=>[Hc,_s,Ec,Qc,Jc,Pc],Y1=()=>[_s,Hc,Qc,Ec,Jc,Pc],X1=()=>[Ec,Qc,Hc,_s,Pc,Jc],Zp=()=>[Qc,Ec,_s,Hc,Pc,Jc],fy=(s,F)=>F.universal?s:me(s,Z=>X(F.channels,Z));var Bm=Object.freeze({__proto__:null,events:s=>hl([fo(lp(),(F,Z)=>{const ue=s.channels,we=ke(ue),Be=Z,qe=fy(we,Be);q(qe,ft=>{const gt=ue[ft],At=gt.schema,$t=cn("channel["+ft+`] data -Receiver: `+rh(F.element),At,Be.data);gt.onReceive(F,$t)})})])}),Ob=[rr("channels",Et(Hi.value,_l([Zh("onReceive"),mr("schema",le())])))];const Wu=lf({fields:Ob,name:"receiving",active:Bm});var G1=Object.freeze({__proto__:null,exhibit:(s,F)=>Tf({classes:[],styles:F.useFixed()?{}:{position:"relative"}})});const bd=(s,F=!1)=>s.dom.focus({preventScroll:F}),a0=s=>s.dom.blur(),dy=s=>{const F=vr(s).dom;return s.dom===F.activeElement},hp=(s=of())=>I.from(s.dom.activeElement).map(Pt.fromDom),xd=s=>hp(vr(s)).filter(F=>s.dom.contains(F.dom)),bg=(s,F)=>{const Z=vr(F),ue=hp(Z).bind(Be=>{const qe=ft=>so(Be,ft);return qe(F)?I.some(F):Ja(F,qe)}),we=s(F);return ue.each(Be=>{hp(Z).filter(qe=>so(qe,Be)).fold(()=>{bd(Be)},v)}),we},Sb=Ds.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),kb=(s,F,Z,ue,we,Be)=>{const qe=F.rect,ft=qe.x-Z,gt=qe.y-ue,At=qe.width,$t=qe.height,on=we-(ft+At),yn=Be-(gt+$t),wn=I.some(ft),Mn=I.some(gt),Xn=I.some(on),Br=I.some(yn),or=I.none();return _u(F.direction,()=>Du(s,wn,Mn,or,or),()=>Du(s,or,Mn,Xn,or),()=>Du(s,wn,or,or,Br),()=>Du(s,or,or,Xn,Br),()=>Du(s,wn,Mn,or,or),()=>Du(s,wn,or,or,Br),()=>Du(s,wn,Mn,or,or),()=>Du(s,or,Mn,Xn,or))},Xx=(s,F)=>s.fold(()=>{const Z=F.rect;return Du("absolute",I.some(Z.x),I.some(Z.y),I.none(),I.none())},(Z,ue,we,Be)=>kb("absolute",F,Z,ue,we,Be),(Z,ue,we,Be)=>kb("fixed",F,Z,ue,we,Be)),Z0=(s,F)=>{const Z=T(Jd,F),ue=s.fold(Z,Z,()=>{const qe=Hl();return Jd(F).translate(-qe.left,-qe.top)}),we=hu(F),Be=Ed(F);return ms(ue.left,ue.top,we,Be)},Tb=(s,F)=>F.fold(()=>s.fold(xl,xl,ms),Z=>s.fold(x(Z),x(Z),()=>{const ue=tw(s,Z.x,Z.y);return ms(ue.left,ue.top,Z.width,Z.height)})),tw=(s,F,Z)=>{const ue=Ws(F,Z),we=()=>{const Be=Hl();return ue.translate(-Be.left,-Be.top)};return s.fold(x(ue),x(ue),we)},hy=(s,F,Z,ue)=>s.fold(F,Z,ue);Sb.none;const eu=Sb.relative,Eh=Sb.fixed,K1=(s,F)=>({anchorBox:s,origin:F}),xg=(s,F)=>K1(s,F),Cb="data-alloy-placement",nw=(s,F)=>{fr(s,Cb,F)},Ab=s=>co(s,Cb),_g=s=>po(s,Cb),J1=Ds.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),py=(s,F)=>{const{x:Z,y:ue,right:we,bottom:Be}=F,{x:qe,y:ft,right:gt,bottom:At,width:$t,height:on}=s,yn=qe>=Z&&qe<=we,wn=ft>=ue&&ft<=Be,Mn=yn&&wn,Xn=gt<=we&>>=Z,Br=At<=Be&&At>=ue,or=Xn&&Br,Mr=Math.min($t,qe>=Z?we-qe:gt-Z),kr=Math.min(on,ft>=ue?Be-ft:At-ue);return{originInBounds:Mn,sizeInBounds:or,visibleW:Mr,visibleH:kr}},Gx=(s,F)=>{const{x:Z,y:ue,right:we,bottom:Be}=F,{x:qe,y:ft,width:gt,height:At}=s,$t=Math.max(Z,we-gt),on=Math.max(ue,Be-At),yn=Mc(qe,Z,$t),wn=Mc(ft,ue,on),Mn=Math.min(yn+gt,we)-yn,Xn=Math.min(wn+At,Be)-wn;return ms(yn,wn,Mn,Xn)},Mb=(s,F,Z)=>{const ue=x(F.bottom-Z.y),we=x(Z.bottom-F.y),Be=uf(s,we,we,ue),qe=x(F.right-Z.x),ft=x(Z.right-F.x);return{maxWidth:ff(s,ft,ft,qe),maxHeight:Be}},ev=(s,F,Z,ue)=>{const we=s.bubble,Be=we.offset,qe=Im(ue,s.restriction,Be),ft=s.x+Be.left,gt=s.y+Be.top,At=ms(ft,gt,F,Z),{originInBounds:$t,sizeInBounds:on,visibleW:yn,visibleH:wn}=py(At,qe),Mn=$t&&on,Xn=Mn?At:Gx(At,qe),Br=Xn.width>0&&Xn.height>0,{maxWidth:or,maxHeight:Mr}=Mb(s.direction,Xn,ue),kr={rect:Xn,maxHeight:Mr,maxWidth:or,direction:s.direction,placement:s.placement,classes:{on:we.classesOn,off:we.classesOff},layout:s.label,testY:gt};return Mn||s.alwaysFit?J1.fit(kr):J1.nofit(kr,yn,wn,Br)},e3=(s,F,Z,ue,we,Be)=>{const qe=ue.width,ft=ue.height,gt=($t,on,yn,wn,Mn)=>{const Xn=$t(Z,ue,we,s,Be),Br=ev(Xn,qe,ft,Be);return Br.fold(x(Br),(or,Mr,kr,yo)=>(Mn===yo?kr>wn||Mr>yn:!Mn&&yo)?Br:J1.nofit(on,yn,wn,Mn))};return se(F,($t,on)=>{const yn=T(gt,on);return $t.fold(x($t),yn)},J1.nofit({rect:Z,maxHeight:ue.height,maxWidth:ue.width,direction:jc(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:Z.y},-1,-1,!1)).fold(R,R)},my=k,_d=(s,F,Z)=>Lp(s,F,my,Z),Kx=(s,F,Z)=>Uh(s,F,my,Z),Jx=ym,e2=["top","bottom","right","left"],Eb="data-alloy-transition-timer",Wh=(s,F)=>ic(s,F.classes),t2=(s,F,Z)=>Z.exists(ue=>{const we=s.mode;return we==="all"?!0:ue[we]!==F[we]}),Pb=(s,F)=>{const Z=ue=>parseFloat(ue).toFixed(3);return nt(F,(ue,we)=>{const Be=s[we].map(Z),qe=ue.map(Z);return!Dt(Be,qe)}).isSome()},zm=s=>{const F=Be=>{const ft=Aa(s,Be).split(/\s*,\s*/);return me(ft,it)},Z=Be=>{if(n(Be)&&/^[\d.]+/.test(Be)){const qe=parseFloat(Be);return yt(Be,"ms")?qe:qe*1e3}else return 0},ue=F("transition-delay"),we=F("transition-duration");return se(we,(Be,qe,ft)=>{const gt=Z(ue[ft])+Z(qe);return Math.max(Be,gt)},0)},rw=(s,F)=>{const Z=js(),ue=js();let we;const Be=At=>{var $t;const on=($t=At.raw.pseudoElement)!==null&&$t!==void 0?$t:"";return so(At.target,s)&&at(on)&&X(e2,At.raw.propertyName)},qe=At=>{if(p(At)||Be(At)){Z.clear(),ue.clear();const $t=At==null?void 0:At.raw.type;(p($t)||$t===sp())&&(clearTimeout(we),po(s,Eb),th(s,F.classes))}},ft=_d(s,A_(),At=>{Be(At)&&(ft.unbind(),Z.set(_d(s,sp(),qe)),ue.set(_d(s,C_(),qe)))}),gt=zm(s);requestAnimationFrame(()=>{we=setTimeout(qe,gt+17),fr(s,Eb,we)})},n2=(s,F)=>{M1(s,F.classes),co(s,Eb).each(Z=>{clearTimeout(parseInt(Z,10)),po(s,Eb)}),rw(s,F)},Fm=(s,F,Z,ue,we,Be)=>{const qe=t2(ue,we,Be);if(qe||Wh(s,ue)){ko(s,"position",Z.position);const ft=Z0(F,s),gt=Xx(F,{...we,rect:ft}),At=Pe(e2,$t=>gt[$t]);Pb(Z,At)&&(mo(s,At),qe&&n2(s,ue),Ku(s))}else th(s,ue.classes)},q0=s=>({width:hu(s),height:Ed(s)}),tv=(s,F,Z,ue)=>{ma(F,"max-height"),ma(F,"max-width");const we=q0(F);return e3(F,ue.preference,s,we,Z,ue.bounds)},nv=(s,F)=>{const Z=F.classes;th(s,Z.off),M1(s,Z.on)},rv=(s,F,Z)=>{const ue=Z.maxHeightFunction;ue(s,F.maxHeight)},t3=(s,F,Z)=>{const ue=Z.maxWidthFunction;ue(s,F.maxWidth)},ow=(s,F,Z)=>{const ue=Xx(Z.origin,F);Z.transition.each(we=>{Fm(s,Z.origin,ue,we,F,Z.lastPlacement)}),dg(s,ue)},iw=(s,F)=>{nw(s,F.placement)},aw=(s,F)=>{Nf(s,Math.floor(F))},gy=x((s,F)=>{aw(s,F),ra(s,{"overflow-x":"hidden","overflow-y":"auto"})}),W0=x((s,F)=>{aw(s,F)}),wg=(s,F,Z)=>s[F]===void 0?Z:s[F],n3=(s,F,Z,ue,we,Be,qe,ft)=>{const gt=wg(qe,"maxHeightFunction",gy()),At=wg(qe,"maxWidthFunction",v),$t=s.anchorBox,on=s.origin,yn={bounds:Tb(on,Be),origin:on,preference:ue,maxHeightFunction:gt,maxWidthFunction:At,lastPlacement:we,transition:ft};return vy($t,F,Z,yn)},vy=(s,F,Z,ue)=>{const we=tv(s,F,Z,ue);return ow(F,we,ue),iw(F,we),nv(F,we),rv(F,we,ue),t3(F,we,ue),{layout:we.layout,placement:we.placement}},sw=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],pp=(s,F,Z,ue=1)=>{const we=s*ue,Be=F*ue,qe=gt=>Ge(Z,gt).getOr([]),ft=(gt,At,$t)=>{const on=Te(sw,$t);return{offset:Ws(gt,At),classesOn:ye($t,qe),classesOff:ye(on,qe)}};return{southeast:()=>ft(-s,F,["top","alignLeft"]),southwest:()=>ft(s,F,["top","alignRight"]),south:()=>ft(-s/2,F,["top","alignCentre"]),northeast:()=>ft(-s,-F,["bottom","alignLeft"]),northwest:()=>ft(s,-F,["bottom","alignRight"]),north:()=>ft(-s/2,-F,["bottom","alignCentre"]),east:()=>ft(s,-F/2,["valignCentre","left"]),west:()=>ft(-s,-F/2,["valignCentre","right"]),insetNortheast:()=>ft(we,Be,["top","alignLeft","inset"]),insetNorthwest:()=>ft(-we,Be,["top","alignRight","inset"]),insetNorth:()=>ft(-we/2,Be,["top","alignCentre","inset"]),insetSoutheast:()=>ft(we,-Be,["bottom","alignLeft","inset"]),insetSouthwest:()=>ft(-we,-Be,["bottom","alignRight","inset"]),insetSouth:()=>ft(-we/2,-Be,["bottom","alignCentre","inset"]),insetEast:()=>ft(-we,-Be/2,["valignCentre","right","inset"]),insetWest:()=>ft(we,-Be/2,["valignCentre","left","inset"])}},r2=()=>pp(0,0,{}),yy=R,Rb=(s,F)=>Z=>wd(Z)==="rtl"?F:s,wd=s=>Aa(s,"direction")==="rtl"?"rtl":"ltr";var Og;(function(s){s.TopToBottom="toptobottom",s.BottomToTop="bottomtotop"})(Og||(Og={}));const s0="data-alloy-vertical-dir",Lb=s=>Vl(s,F=>Kn(F)&&ao(F,"data-alloy-vertical-dir")===Og.BottomToTop),l0=()=>Pi("layouts",[Sn("onLtr"),Sn("onRtl"),Hr("onBottomLtr"),Hr("onBottomRtl")]),Y0=(s,F,Z,ue,we,Be,qe)=>{const ft=qe.map(Lb).getOr(!1),gt=F.layouts.map(wn=>wn.onLtr(s)),At=F.layouts.map(wn=>wn.onRtl(s)),$t=ft?F.layouts.bind(wn=>wn.onBottomLtr.map(Mn=>Mn(s))).or(gt).getOr(we):gt.getOr(Z),on=ft?F.layouts.bind(wn=>wn.onBottomRtl.map(Mn=>Mn(s))).or(At).getOr(Be):At.getOr(ue);return Rb($t,on)(s)},CS=(s,F,Z)=>{const ue=F.hotspot,we=Z0(Z,ue.element),Be=Y0(s.element,F,X1(),Zp(),W1(),Y1(),I.some(F.hotspot.element));return I.some(yy({anchorBox:we,bubble:F.bubble.getOr(r2()),overrides:F.overrides,layouts:Be}))};var r3=[Sn("hotspot"),Hr("bubble"),mr("overrides",{}),l0(),Il("placement",CS)];const o3=(s,F,Z)=>{const ue=tw(Z,F.x,F.y),we=ms(ue.left,ue.top,F.width,F.height),Be=Y0(s.element,F,q1(),H0(),q1(),H0(),I.none());return I.some(yy({anchorBox:we,bubble:F.bubble,overrides:F.overrides,layouts:Be}))};var o2=[Sn("x"),Sn("y"),mr("height",0),mr("width",0),mr("bubble",r2()),mr("overrides",{}),l0(),Il("placement",o3)];const i2=Ds.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),AS=s=>s.fold(R,(F,Z,ue)=>F.translate(-Z,-ue)),Ib=s=>s.fold(R,R),lw=s=>se(s,(F,Z)=>F.translate(Z.left,Z.top),Ws(0,0)),MS=s=>{const F=oe(s,AS);return lw(F)},cw=s=>{const F=oe(s,Ib);return lw(F)},qp=i2.screen,ov=i2.absolute,i3=(s,F,Z)=>{const ue=Yn(Z.root).dom,we=Be=>{const qe=go(Be),ft=go(s.element);return so(qe,ft)};return I.from(ue.frameElement).map(Pt.fromDom).filter(we).map(pc)},Nm=(s,F,Z)=>{const ue=go(s.element),we=Hl(ue),Be=i3(s,F,Z).getOr(we);return ov(Be,we.left,we.top)},uw=(s,F,Z,ue)=>{const we=qp(Ws(s,F));return I.some(zc(we,Z,ue))},ES=(s,F,Z,ue,we)=>s.map(Be=>{const qe=[F,Be.point],ft=hy(ue,()=>cw(qe),()=>cw(qe),()=>MS(qe)),gt=np(ft.left,ft.top,Be.width,Be.height),At=Z.showAbove?W1():X1(),$t=Z.showAbove?Y1():Zp(),on=Y0(we,Z,At,$t,At,$t,I.none());return yy({anchorBox:gt,bubble:Z.bubble.getOr(r2()),overrides:Z.overrides,layouts:on})}),ET=(s,F,Z)=>{const ue=Nm(s,Z,F);return F.node.filter(Er).bind(we=>{const Be=we.dom.getBoundingClientRect(),qe=uw(Be.left,Be.top,Be.width,Be.height),ft=F.node.getOr(s.element);return ES(qe,ue,F,Z,ft)})};var a3=[Sn("node"),Sn("root"),Hr("bubble"),l0(),mr("overrides",{}),mr("showAbove",!1),Il("placement",ET)];const zM="\uFEFF",by=" ",a2={create:(s,F,Z,ue)=>({start:s,soffset:F,finish:Z,foffset:ue})},s3=Ds.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),s2=(s,F,Z,ue)=>s.fold(F,Z,ue),l2=s=>s.fold(R,R,R),FM=s3.before,PT=s3.on,NM=s3.after,l3={before:FM,on:PT,after:NM,cata:s2,getStart:l2},iv=Ds.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),PS=s=>iv.exact(s.start,s.soffset,s.finish,s.foffset),RS=s=>s.match({domRange:F=>Pt.fromDom(F.startContainer),relative:(F,Z)=>l3.getStart(F),exact:(F,Z,ue,we)=>F}),$M=iv.domRange,LS=iv.relative,RT=iv.exact,LT=s=>{const F=RS(s);return Yn(F)},IT=a2.create,c2={domRange:$M,relative:LS,exact:RT,exactFromRange:PS,getWin:LT,range:IT},c3=(s,F)=>{F.fold(Z=>{s.setStartBefore(Z.dom)},(Z,ue)=>{s.setStart(Z.dom,ue)},Z=>{s.setStartAfter(Z.dom)})},Db=(s,F)=>{F.fold(Z=>{s.setEndBefore(Z.dom)},(Z,ue)=>{s.setEnd(Z.dom,ue)},Z=>{s.setEndAfter(Z.dom)})},av=(s,F,Z)=>{const ue=s.document.createRange();return c3(ue,F),Db(ue,Z),ue},fw=(s,F,Z,ue,we)=>{const Be=s.document.createRange();return Be.setStart(F.dom,Z),Be.setEnd(ue.dom,we),Be},u2=s=>({left:s.left,top:s.top,right:s.right,bottom:s.bottom,width:s.width,height:s.height}),VM=s=>{const F=s.getClientRects(),Z=F.length>0?F[0]:s.getBoundingClientRect();return Z.width>0||Z.height>0?I.some(Z).map(u2):I.none()},c0=s=>{const F=s.getBoundingClientRect();return F.width>0||F.height>0?I.some(F).map(u2):I.none()},Wp=Ds.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),u3=(s,F,Z)=>F(Pt.fromDom(Z.startContainer),Z.startOffset,Pt.fromDom(Z.endContainer),Z.endOffset),UM=(s,F)=>F.match({domRange:Z=>({ltr:x(Z),rtl:I.none}),relative:(Z,ue)=>({ltr:iu(()=>av(s,Z,ue)),rtl:iu(()=>I.some(av(s,ue,Z)))}),exact:(Z,ue,we,Be)=>({ltr:iu(()=>fw(s,Z,ue,we,Be)),rtl:iu(()=>I.some(fw(s,we,Be,Z,ue)))})}),DD=(s,F)=>{const Z=F.ltr();return Z.collapsed?F.rtl().filter(we=>we.collapsed===!1).map(we=>Wp.rtl(Pt.fromDom(we.endContainer),we.endOffset,Pt.fromDom(we.startContainer),we.startOffset)).getOrThunk(()=>u3(s,Wp.ltr,Z)):u3(s,Wp.ltr,Z)},Bb=(s,F)=>{const Z=UM(s,F);return DD(s,Z)},f2=(s,F)=>Bb(s,F).match({ltr:(ue,we,Be,qe)=>{const ft=s.document.createRange();return ft.setStart(ue.dom,we),ft.setEnd(Be.dom,qe),ft},rtl:(ue,we,Be,qe)=>{const ft=s.document.createRange();return ft.setStart(Be.dom,qe),ft.setEnd(ue.dom,we),ft}});Wp.ltr,Wp.rtl;const d2=(s,F,Z)=>me(io(s,Z),F),$d=(s,F)=>Kr(F,s),f3=(s,F,Z,ue)=>{const Be=go(s).dom.createRange();return Be.setStart(s.dom,F),Be.setEnd(Z.dom,ue),Be},zb=(s,F,Z,ue)=>{const we=f3(s,F,Z,ue),Be=so(s,Z)&&F===ue;return we.collapsed&&!Be},d3=s=>I.from(s.getSelection()),DT=s=>{if(s.rangeCount>0){const F=s.getRangeAt(0),Z=s.getRangeAt(s.rangeCount-1);return I.some(a2.create(Pt.fromDom(F.startContainer),F.startOffset,Pt.fromDom(Z.endContainer),Z.endOffset))}else return I.none()},IS=s=>{if(s.anchorNode===null||s.focusNode===null)return DT(s);{const F=Pt.fromDom(s.anchorNode),Z=Pt.fromDom(s.focusNode);return zb(F,s.anchorOffset,Z,s.focusOffset)?I.some(a2.create(F,s.anchorOffset,Z,s.focusOffset)):DT(s)}},h3=s=>d3(s).filter(F=>F.rangeCount>0).bind(IS),Af=(s,F)=>{const Z=f2(s,F);return VM(Z)},p3=(s,F)=>{const Z=f2(s,F);return c0(Z)},DS=((s,F)=>{const Z=Be=>{if(!s(Be))throw new Error("Can only get "+F+" value of a "+F+" node");return ue(Be).getOr("")},ue=Be=>s(Be)?I.from(Be.dom.nodeValue):I.none();return{get:Z,getOption:ue,set:(Be,qe)=>{if(!s(Be))throw new Error("Can only set raw "+F+" value of a "+F+" node");Be.dom.nodeValue=qe}}})(_r,"text"),BS=s=>DS.get(s),sv=(s,F)=>({element:s,offset:F}),BT=(s,F)=>{const Z=bo(s);if(Z.length===0)return sv(s,F);if(F_r(s)?sv(s,F):BT(s,F),m3=s=>s.foffset!==void 0,g3=(s,F)=>F.getSelection.getOrThunk(()=>()=>h3(s))().map(ue=>{if(m3(ue)){const we=xy(ue.start,ue.soffset),Be=xy(ue.finish,ue.foffset);return c2.range(we.element,we.offset,Be.element,Be.offset)}else return ue}),zS=(s,F,Z)=>{const ue=Yn(F.root).dom,we=Nm(s,Z,F),Be=g3(ue,F).bind(gt=>{if(m3(gt))return p3(ue,c2.exactFromRange(gt)).orThunk(()=>{const $t=Pt.fromText(zM);Eu(gt.start,$t);const on=Af(ue,c2.exact($t,0,$t,1));return zl($t),on}).bind($t=>uw($t.left,$t.top,$t.width,$t.height));{const At=Ue(gt,on=>on.dom.getBoundingClientRect()),$t={left:Math.min(At.firstCell.left,At.lastCell.left),right:Math.max(At.firstCell.right,At.lastCell.right),top:Math.min(At.firstCell.top,At.lastCell.top),bottom:Math.max(At.firstCell.bottom,At.lastCell.bottom)};return uw($t.left,$t.top,$t.right-$t.left,$t.bottom-$t.top)}}),ft=g3(ue,F).bind(gt=>m3(gt)?Kn(gt.start)?I.some(gt.start):Cr(gt.start):I.some(gt.firstCell)).getOr(s.element);return ES(Be,we,F,Z,ft)};var Fb=[Hr("getSelection"),Sn("root"),Hr("bubble"),l0(),mr("overrides",{}),mr("showAbove",!1),Il("placement",zS)];const h2="link-layout",Od=s=>s.x+s.width,zT=(s,F)=>s.x-F.width,FS=(s,F)=>s.y-F.height+s.height,NS=s=>s.y,FT=(s,F,Z)=>pl(Od(s),NS(s),Z.southeast(),jc(),"southeast",il(s,{left:0,top:2}),h2),$S=(s,F,Z)=>pl(zT(s,F),NS(s),Z.southwest(),is(),"southwest",il(s,{right:1,top:2}),h2),NT=(s,F,Z)=>pl(Od(s),FS(s,F),Z.northeast(),Vs(),"northeast",il(s,{left:0,bottom:3}),h2),$T=(s,F,Z)=>pl(zT(s,F),FS(s,F),Z.northwest(),Ac(),"northwest",il(s,{right:1,bottom:3}),h2),Yp=()=>[FT,$S,NT,$T],lv=()=>[$S,FT,$T,NT],VT=(s,F,Z)=>{const ue=Z0(Z,F.item.element),we=Y0(s.element,F,Yp(),lv(),Yp(),lv(),I.none());return I.some(yy({anchorBox:ue,bubble:r2(),overrides:F.overrides,layouts:we}))};var Nb=[Sn("item"),l0(),mr("overrides",{}),Il("placement",VT)],sh=xn("type",{selection:Fb,node:a3,hotspot:r3,submenu:Nb,makeshift:o2});const mp=[Si("classes",ne),dl("mode","all",["all","layout","placement"])],lh=[mr("useFixed",D),Hr("getBounds")],Xp=[rr("anchor",sh),Pi("transition",mp)],v3=()=>{const s=document.documentElement;return Eh(0,0,s.clientWidth,s.clientHeight)},Gp=s=>{const F=pc(s.element),Z=s.element.dom.getBoundingClientRect();return eu(F.left,F.top,Z.width,Z.height)},$b=(s,F,Z,ue,we,Be)=>{const qe=xg(F.anchorBox,s);return n3(qe,ue.element,F.bubble,F.layouts,we,Z,F.overrides,Be)},jM=(s,F,Z,ue,we)=>{const Be=I.none();UT(s,F,Z,ue,we,Be)},UT=(s,F,Z,ue,we,Be)=>{const qe=cn("placement.info",Mi(Xp),we),ft=qe.anchor,gt=ue.element,At=Z.get(ue.uid);bg(()=>{ko(gt,"position","fixed");const $t=Na(gt,"visibility");ko(gt,"visibility","hidden");const on=F.useFixed()?v3():Gp(s);ft.placement(s,ft,on).each(yn=>{const wn=Be.orThunk(()=>F.getBounds.map(L)),Mn=$b(on,yn,wn,ue,At,qe.transition);Z.set(ue.uid,Mn)}),$t.fold(()=>{ma(gt,"visibility")},yn=>{ko(gt,"visibility",yn)}),Na(gt,"left").isNone()&&Na(gt,"top").isNone()&&Na(gt,"right").isNone()&&Na(gt,"bottom").isNone()&&wt(Na(gt,"position"),"fixed")&&ma(gt,"position")},gt)};var QT=Object.freeze({__proto__:null,position:jM,positionWithinBounds:UT,getMode:(s,F,Z)=>F.useFixed()?"fixed":"absolute",reset:(s,F,Z,ue)=>{const we=ue.element;q(["position","left","right","top","bottom"],Be=>ma(we,Be)),_g(we),Z.clear(ue.uid)}}),US=Object.freeze({__proto__:null,init:()=>{let s={};return kh({readState:()=>s,clear:we=>{a(we)?delete s[we]:s={}},set:(we,Be)=>{s[we]=Be},get:we=>Ge(s,we)})}});const ed=lf({fields:lh,name:"positioning",active:G1,apis:QT,state:US}),jS=s=>s.getSystem().isConnected(),_y=s=>{Sa(s,fp());const F=s.components();q(F,_y)},p2=s=>{const F=s.components();q(F,p2),Sa(s,zd())},QS=(s,F)=>{s.getSystem().addToWorld(F),Er(s.element)&&p2(F)},y3=s=>{_y(s),s.getSystem().removeFromWorld(s)},dw=(s,F)=>{Pu(s.element,F.element)},HS=s=>{q(s.components(),F=>zl(F.element)),Uf(s.element),s.syncComponents()},m2=(s,F,Z)=>{const ue=s.components();HS(s);const we=Z(F),Be=Te(ue,we);q(Be,qe=>{_y(qe),s.getSystem().removeFromWorld(qe)}),q(we,qe=>{jS(qe)?dw(s,qe):(s.getSystem().addToWorld(qe),dw(s,qe),Er(s.element)&&p2(qe))}),s.syncComponents()},ZS=(s,F,Z)=>{const ue=s.components(),we=ye(F,ft=>G_(ft).toArray());q(ue,ft=>{X(we,ft)||y3(ft)});const Be=Z(F),qe=Te(ue,Be);q(qe,ft=>{jS(ft)&&y3(ft)}),q(Be,ft=>{jS(ft)||QS(s,ft)}),s.syncComponents()},X0=(s,F)=>{Vb(s,F,Pu)},Vb=(s,F,Z)=>{s.getSystem().addToWorld(F),Z(s.element,F.element),Er(s.element)&&p2(F),s.syncComponents()},HT=s=>{_y(s),zl(s.element),s.getSystem().removeFromWorld(s)},cv=s=>{const F=br(s.element).bind(Z=>s.getSystem().getByDom(Z).toOptional());HT(s),F.each(Z=>{Z.syncComponents()})},Kp=s=>{const F=s.components();q(F,HT),Uf(s.element),s.syncComponents()},ZT=(s,F)=>{Ub(s,F,Pu)},G0=(s,F)=>{Ub(s,F,ud)},Ub=(s,F,Z)=>{Z(s,F.element);const ue=bo(F.element);q(ue,we=>{F.getByDom(we).each(p2)})},qS=s=>{const F=bo(s.element);q(F,Z=>{s.getByDom(Z).each(_y)}),zl(s.element)},b3=(s,F,Z,ue)=>{Z.get().each(qe=>{Kp(s)});const we=F.getAttachPoint(s);X0(we,s);const Be=s.getSystem().build(ue);return X0(s,Be),Z.set(Be),Be},qT=(s,F,Z,ue)=>{const we=b3(s,F,Z,ue);return F.onOpen(s,we),we},HM=(s,F,Z,ue)=>Z.get().map(()=>b3(s,F,Z,ue)),ZM=(s,F,Z,ue,we)=>{v2(s,F),qT(s,F,Z,ue),we(),x3(s,F)},WT=(s,F,Z)=>{Z.get().each(ue=>{Kp(s),cv(s),F.onClose(s,ue),Z.clear()})},wy=(s,F,Z)=>Z.isOpen(),g2=(s,F,Z,ue)=>wy(s,F,Z)&&Z.get().exists(we=>F.isPartOf(s,we,ue)),hw=(s,F,Z)=>Z.get(),qM=(s,F,Z,ue)=>{Na(s.element,F).fold(()=>{po(s.element,Z)},we=>{fr(s.element,Z,we)}),ko(s.element,F,ue)},WM=(s,F,Z)=>{co(s.element,Z).fold(()=>ma(s.element,F),ue=>ko(s.element,F,ue))},v2=(s,F,Z)=>{const ue=F.getAttachPoint(s);ko(s.element,"position",ed.getMode(ue)),qM(s,"visibility",F.cloakVisibilityAttr,"hidden")},WS=s=>te(["top","left","right","bottom"],F=>Na(s,F).isSome()),x3=(s,F,Z)=>{WS(s.element)||ma(s.element,"position"),WM(s,"visibility",F.cloakVisibilityAttr)};var YS=Object.freeze({__proto__:null,cloak:v2,decloak:x3,open:qT,openWhileCloaked:ZM,close:WT,isOpen:wy,isPartOf:g2,getState:hw,setContent:HM}),y2=Object.freeze({__proto__:null,events:(s,F)=>hl([fo(L0(),(Z,ue)=>{WT(Z,s,F)})])}),GS=[Ra("onOpen"),Ra("onClose"),Sn("isPartOf"),Sn("getAttachPoint"),mr("cloakVisibilityAttr","data-precloak-visibility")],KS=Object.freeze({__proto__:null,init:()=>{const s=os(),F=x("not-implemented");return kh({readState:F,isOpen:s.isSet,clear:s.clear,set:s.set,get:s.get})}});const hs=lf({fields:GS,name:"sandboxing",active:y2,apis:YS,state:KS}),K0=x("dismiss.popups"),jb=x("reposition.popups"),pw=x("mouse.released"),JS=_l([mr("isExtraPart",D),Pi("fireEventInstead",[mr("event",I0())])]),uv=s=>{const F=cn("Dismissal",JS,s);return{[K0()]:{schema:_l([Sn("target")]),onReceive:(Z,ue)=>{hs.isOpen(Z)&&(hs.isPartOf(Z,ue.target)||F.isExtraPart(Z,ue.target)||F.fireEventInstead.fold(()=>hs.close(Z),Be=>Sa(Z,Be.event)))}}}},e5=_l([Pi("fireEventInstead",[mr("event",E_())]),$o("doReposition")]),_3=s=>{const F=cn("Reposition",e5,s);return{[jb()]:{onReceive:Z=>{hs.isOpen(Z)&&F.fireEventInstead.fold(()=>F.doReposition(Z),ue=>Sa(Z,ue.event))}}}},t5=(s,F,Z)=>{F.store.manager.onLoad(s,F,Z)},n5=(s,F,Z)=>{F.store.manager.onUnload(s,F,Z)};var O3=Object.freeze({__proto__:null,onLoad:t5,onUnload:n5,setValue:(s,F,Z,ue)=>{F.store.manager.setValue(s,F,Z,ue)},getValue:(s,F,Z)=>F.store.manager.getValue(s,F,Z),getState:(s,F,Z)=>Z}),x2=Object.freeze({__proto__:null,events:(s,F)=>{const Z=s.resetOnDom?[Ll((ue,we)=>{t5(ue,s,F)}),Sh((ue,we)=>{n5(ue,s,F)})]:[A1(s,F,t5)];return hl(Z)}});const S3=()=>{const s=xi(null),F=()=>({mode:"memory",value:s.get()}),Z=()=>s.get()===null,ue=()=>{s.set(null)};return kh({set:s.set,get:s.get,isNotSet:Z,clear:ue,readState:F})},YM=()=>kh({readState:v}),k3=()=>{const s=xi({}),F=xi({});return kh({readState:()=>({mode:"dataset",dataByValue:s.get(),dataByText:F.get()}),lookup:qe=>Ge(s.get(),qe).orThunk(()=>Ge(F.get(),qe)),update:qe=>{const ft=s.get(),gt=F.get(),At={},$t={};q(qe,on=>{At[on.value]=on,Ge(on,"meta").each(yn=>{Ge(yn,"text").each(wn=>{$t[wn]=on})})}),s.set({...ft,...At}),F.set({...gt,...$t})},clear:()=>{s.set({}),F.set({})}})};var XM=Object.freeze({__proto__:null,memory:S3,dataset:k3,manual:YM,init:s=>s.store.manager.state(s)});const mw=(s,F,Z,ue)=>{const we=F.store;Z.update([ue]),we.setValue(s,ue),F.onSetValue(s,ue)},$m=(s,F,Z)=>{const ue=F.store,we=ue.getDataKey(s);return Z.lookup(we).getOrThunk(()=>ue.getFallbackEntry(we))},Mf=(s,F,Z)=>{F.store.initialValue.each(we=>{mw(s,F,Z,we)})},GM=(s,F,Z)=>{Z.clear()};var u0=[Hr("initialValue"),Sn("getFallbackEntry"),Sn("getDataKey"),Sn("setValue"),Il("manager",{setValue:mw,getValue:$m,onLoad:Mf,onUnload:GM,state:k3})];const KM=(s,F,Z)=>F.store.getValue(s),XT=(s,F,Z,ue)=>{F.store.setValue(s,ue),F.onSetValue(s,ue)},gw=(s,F,Z)=>{F.store.initialValue.each(ue=>{F.store.setValue(s,ue)})};var _2=[Sn("getValue"),mr("setValue",v),Hr("initialValue"),Il("manager",{setValue:XT,getValue:KM,onLoad:gw,onUnload:v,state:Gf.init})];const GT=(s,F,Z,ue)=>{Z.set(ue),F.onSetValue(s,ue)},KT=(s,F,Z)=>Z.get(),BD=(s,F,Z)=>{F.store.initialValue.each(ue=>{Z.isNotSet()&&Z.set(ue)})},zD=(s,F,Z)=>{Z.clear()};var JT=[Hr("initialValue"),Il("manager",{setValue:GT,getValue:KT,onLoad:BD,onUnload:zD,state:S3})],e6=[ys("store",{mode:"memory"},xn("mode",{memory:JT,manual:_2,dataset:u0})),Ra("onSetValue"),mr("resetOnDom",!1)];const hi=lf({fields:e6,name:"representing",active:x2,apis:O3,extra:{setValueFrom:(s,F)=>{const Z=hi.getValue(F);hi.setValue(s,Z)}},state:XM}),Ef=(s,F)=>ol(s,{},oe(F,Z=>vo(Z.name(),"Cannot configure "+Z.name()+" for "+s)).concat([On("dump",R)])),vw=s=>s.dump,Pf=(s,F)=>({...Do(F),...s.dump}),Vm={field:Ef,augment:Pf,get:vw},r5="placeholder",Zb=Ds.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),T3=s=>ht(s,"uiType"),Oy=(s,F,Z,ue)=>s.exists(we=>we!==Z.owner)?Zb.single(!0,x(Z)):Ge(ue,Z.name).fold(()=>{throw new Error("Unknown placeholder component: "+Z.name+` +The behaviours that can trigger it are: `+JSON.stringify(oe(F,Z=>Z.name),null,2)]),Ob=(s,F,Z)=>{const ue=F[Z];return ue?K_("Event: "+Z,"name",s,ue).map(we=>{const Be=oe(we,qe=>qe.handler);return k1(Be)}):cy(Z,s)},Z1=(s,F)=>{const Z=je(s,(ue,we)=>(ue.length===1?Hi.value(ue[0].handler):Ob(ue,F,we)).map(qe=>{const ft=ly(qe),gt=ue.length>1?me(F[we],At=>te(ue,$t=>$t.name===At)).join(" > "):ue[0].name;return wh(we,qx(ft,gt))}));return Wf(Z,{})},bc="alloy.base.behaviour",KO=Mi([Ln("dom","dom",Ka(),Mi([Sn("tag"),mr("styles",{}),mr("classes",[]),mr("attributes",{}),Hr("value"),Hr("innerHtml")])),Sn("components"),Sn("uid"),mr("events",{}),mr("apis",{}),Ln("eventOrder","eventOrder",Dp({[cp()]:["disabling",bc,"toggling","typeaheadevents"],[km()]:[bc,"focusing","keying"],[zp()]:[bc,"disabling","toggling","representing"],[ug()]:[bc,"representing","streaming","invalidating"],[fp()]:[bc,"representing","item-events","toolbar-button-events","tooltipping"],[Oh()]:["focusing",bc,"item-type-events"],[_m()]:["focusing",bc,"item-type-events"],[Om()]:["item-type-events","tooltipping"],[lp()]:["receiving","reflecting","tooltipping"]}),le()),Hr("domModification")]),ew=s=>jt("custom.definition",KO,s),Q0=s=>({...s.dom,uid:s.uid,domChildren:oe(s.components,F=>F.element)}),Nc=s=>s.domModification.fold(()=>Cf({}),Cf),yg=s=>s.events,qr=s=>s.dom.value,N=(s,F)=>{if(F===void 0)throw new Error("Value.set was undefined");s.dom.value=F},G=(s,F,Z)=>Bn(s,F).map(we=>{if(Z.exists(qe=>!so(qe,we))){const qe=Z.map(ar).getOr("span"),ft=Pt.fromTag(qe);return Eu(we,ft),ft}else return we}),fe=(s,F,Z)=>{Z.fold(()=>Pu(s,F),ue=>{so(ue,F)||(Eu(ue,F),zl(ue))})},Ae=(s,F,Z)=>{const ue=oe(F,Z),we=bo(s);return q(we.slice(ue.length),zl),ue},Qe=(s,F,Z,ue)=>{const we=Bn(s,F),Be=ue(Z,we),qe=G(s,F,we);return fe(s,Be.element,qe),Be},et=(s,F,Z)=>Ae(s,F,(ue,we)=>Qe(s,we,ue,Z)),ut=(s,F)=>Ae(s,F,(Z,ue)=>{const we=Bn(s,ue);return fe(s,Z,we),Z}),Tt=(s,F)=>{const Z=ke(s),ue=ke(F),we=Te(ue,Z),Be=Ee(s,(qe,ft)=>!ht(F,ft)||qe!==F[ft]).t;return{toRemove:we,toSet:Be}},Bt=(s,F)=>{const{class:Z,style:ue,...we}=qo(F),{toSet:Be,toRemove:qe}=Tt(s.attributes,we),ft=()=>{q(qe,kr=>po(F,kr)),Eo(F,Be)},gt=us(F),{toSet:At,toRemove:$t}=Tt(s.styles,gt),on=()=>{q($t,kr=>ga(F,kr)),ra(F,At)},yn=QO(F),wn=Te(yn,s.classes),Mn=Te(s.classes,yn),Xn=()=>{P1(F,Mn),th(F,wn)},Br=kr=>{F1(F,kr)},or=()=>{const kr=s.domChildren;ut(F,kr)},Mr=()=>{const kr=F,yo=s.value.getOrUndefined();yo!==qr(kr)&&N(kr,yo??"")};return ft(),Xn(),on(),s.innerHtml.fold(or,Br),Mr(),F},rn=s=>{const F=Pt.fromTag(s.tag);Eo(F,s.attributes),P1(F,s.classes),ra(F,s.styles),s.innerHtml.each(ue=>F1(F,ue));const Z=s.domChildren;return Ts(F,Z),s.value.each(ue=>{N(F,ue)}),F},an=(s,F)=>{try{const Z=Bt(s,F);return I.some(Z)}catch{return I.none()}},_n=s=>s.innerHtml.isSome()&&s.domChildren.length>0,Dn=(s,F)=>{const Z=we=>ar(we)===s.tag&&!_n(s)&&!ih(we),ue=F.filter(Z).bind(we=>an(s,we)).getOrThunk(()=>rn(s));return _b(ue,s.uid),ue},Cn=s=>{const F=Ge(s,"behaviours").getOr({});return ye(ke(F),Z=>{const ue=F[Z];return a(ue)?[ue.me]:[]})},Jn=(s,F)=>XO(s,F),lr=s=>{const F=Cn(s);return Jn(s,F)},Ar=(s,F,Z)=>{const ue=Q0(s),we=Nc(s),Be={"alloy.base.modification":we},qe=F.length>0?wb(Z,Be,F,ue):we;return $O(ue,qe)},Or=(s,F,Z)=>{const ue={"alloy.base.behaviour":yg(s)};return Qp(Z,s.eventOrder,F,ue).getOrDie()},jr=(s,F)=>{const Z=()=>kr,ue=xi(Qx),we=Nt(ew(s)),Be=lr(s),qe=yc(Be),ft=GO(Be),gt=Ar(we,qe,ft),At=Dn(gt,F),$t=Or(we,qe,ft),on=xi(we.components),yn=yo=>{ue.set(yo)},wn=()=>{ue.set(Rm(Z))},Mn=()=>{const yo=bo(At),Xr=ye(yo,No=>ue.get().getByDom(No).fold(()=>[],Ie));on.set(Xr)},Xn=yo=>{const Xr=ft;return(u(Xr[yo.name()])?Xr[yo.name()]:()=>{throw new Error("Could not find "+yo.name()+" in "+JSON.stringify(s,null,2))})()},Br=yo=>u(ft[yo.name()]),or=()=>we.apis,Mr=yo=>ft[yo]().map(Xr=>Xr.state.readState()).getOr("not enabled"),kr={uid:s.uid,getSystem:ue.get,config:Xn,hasConfigured:Br,spec:s,readState:Mr,getApis:or,connect:yn,disconnect:wn,element:At,syncComponents:Mn,components:on.get,events:$t};return kr},Jr=(s,F)=>{const Z=Ge(s,"components").getOr([]);return F.fold(()=>oe(Z,vi),ue=>oe(Z,(we,Be)=>Ti(we,Bn(ue,Be))))},uo=(s,F)=>{const{events:Z,...ue}=CS(s),we=Jr(ue,F),Be={...ue,events:{...Y_,...Z},components:we};return Hi.value(jr(Be,F))},ro=s=>{const F=Pt.fromText(s);return Po({element:F})},Po=s=>{const F=cn("external.component",Ol([Sn("element"),Hr("uid")]),s),Z=xi(Rm()),ue=ft=>{Z.set(ft)},we=()=>{Z.set(Rm(()=>qe))},Be=F.uid.getOrThunk(()=>j0("external"));_b(F.element,Be);const qe={uid:Be,getSystem:Z.get,config:I.none,hasConfigured:D,connect:ue,disconnect:we,getApis:()=>({}),element:F.element,spec:s,readState:x("No state"),syncComponents:v,components:x([]),events:{}};return Hx(qe)},gi=j0,ni=s=>ht(s,"uid"),Ti=(s,F)=>G_(s).getOrThunk(()=>{const Z=ni(s)?s:{uid:gi(""),...s};return uo(Z,F).getOrDie()}),vi=s=>Ti(s,I.none()),na=Hx;var ea=(s,F,Z,ue,we)=>s(Z,ue)?I.some(Z):u(we)&&we(Z)?I.none():F(Z,ue,we);const La=(s,F,Z)=>{let ue=s.dom;const we=u(Z)?Z:D;for(;ue.parentNode;){ue=ue.parentNode;const Be=Pt.fromDom(ue);if(F(Be))return I.some(Be);if(we(Be))break}return I.none()},ca=(s,F,Z)=>ea((we,Be)=>Be(we),La,s,F,Z),Zi=(s,F)=>{const Z=s.dom;return Z.parentNode?Bs(Pt.fromDom(Z.parentNode),ue=>!so(s,ue)&&F(ue)):I.none()},Bs=(s,F)=>{const Z=we=>F(Pt.fromDom(we));return ce(s.dom.childNodes,Z).map(Pt.fromDom)},Ja=(s,F)=>{const Z=ue=>{for(let we=0;weca(s,F,Z).isSome(),Ta=s=>Co(s),zs=(s,F,Z)=>La(s,ue=>Rr(ue,F),Z),gs=(s,F)=>Zi(s,Z=>Rr(Z,F)),rc=(s,F)=>Bs(s,Z=>Rr(Z,F)),aa=(s,F)=>Co(F,s),Fs=(s,F,Z)=>ea((we,Be)=>Rr(we,Be),zs,s,F,Z),$c="aria-controls",xc=s=>ca(s,Z=>{if(!Kn(Z))return!1;const ue=ao(Z,"id");return ue!==void 0&&ue.indexOf($c)>-1}).bind(Z=>{const ue=ao(Z,"id"),we=vr(Z);return aa(we,`[${$c}="${ue}"]`)}),_u=()=>{const s=fi($c);return{id:s,link:ue=>{fr(ue,$c,s)},unlink:ue=>{po(ue,$c)}}},qu=(s,F)=>xc(F).exists(Z=>Vc(s,Z)),Vc=(s,F)=>Vl(F,Z=>so(Z,s.element),D)||qu(s,F),ml=(s,F,Z,ue,we,Be,qe,ft=!1)=>({x:s,y:F,bubble:Z,direction:ue,placement:we,restriction:Be,label:`${qe}-${we}`,alwaysFit:ft}),Uc=Ds.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),wu=(s,F,Z,ue,we,Be,qe,ft,gt)=>s.fold(F,Z,ue,we,Be,qe,ft,gt),uf=(s,F,Z,ue)=>s.fold(F,F,ue,ue,F,ue,Z,Z),ff=(s,F,Z,ue)=>s.fold(F,ue,F,ue,Z,Z,F,ue),jc=Uc.southeast,is=Uc.southwest,Vs=Uc.northeast,Ac=Uc.northwest,Bl=Uc.south,Uo=Uc.north,ql=Uc.east,Xs=Uc.west,ac=(s,F,Z,ue)=>{const we=s+F;return we>ue?Z:weMath.min(Math.max(s,F),Z),Mh=(s,F)=>{switch(F){case 1:return s.x;case 0:return s.x+s.width;case 2:return s.y;case 3:return s.y+s.height}},il=(s,F)=>Pe(["left","right","top","bottom"],Z=>Ge(F,Z).map(ue=>Mh(s,ue))),Im=(s,F,Z)=>{const ue=(gt,At)=>F[gt].map($t=>{const on=gt==="top"||gt==="bottom",yn=on?Z.top:Z.left,Mn=(gt==="left"||gt==="top"?Math.max:Math.min)($t,At)+yn;return on?Mc(Mn,s.y,s.bottom):Mc(Mn,s.x,s.right)}).getOr(At),we=ue("left",s.x),Be=ue("top",s.y),qe=ue("right",s.right),ft=ue("bottom",s.bottom);return ms(we,Be,qe-we,ft-Be)},ah="layout",Bu=s=>s.x,Hp=(s,F)=>s.x+s.width/2-F.width/2,dc=(s,F)=>s.x+s.width-F.width,Jf=(s,F)=>s.y-F.height,bg=s=>s.y+s.height,Dm=(s,F)=>s.y+s.height/2-F.height/2,q1=s=>s.x+s.width,Wx=(s,F)=>s.x-F.width,Ec=(s,F,Z)=>ml(Bu(s),bg(s),Z.southeast(),jc(),"southeast",il(s,{left:1,top:3}),ah),Qc=(s,F,Z)=>ml(dc(s,F),bg(s),Z.southwest(),is(),"southwest",il(s,{right:0,top:3}),ah),Hc=(s,F,Z)=>ml(Bu(s),Jf(s,F),Z.northeast(),Vs(),"northeast",il(s,{left:1,bottom:2}),ah),_s=(s,F,Z)=>ml(dc(s,F),Jf(s,F),Z.northwest(),Ac(),"northwest",il(s,{right:0,bottom:2}),ah),Jc=(s,F,Z)=>ml(Hp(s,F),Jf(s,F),Z.north(),Uo(),"north",il(s,{bottom:2}),ah),Pc=(s,F,Z)=>ml(Hp(s,F),bg(s),Z.south(),Bl(),"south",il(s,{top:3}),ah),W1=(s,F,Z)=>ml(q1(s),Dm(s,F),Z.east(),ql(),"east",il(s,{left:0}),ah),uy=(s,F,Z)=>ml(Wx(s,F),Dm(s,F),Z.west(),Xs(),"west",il(s,{right:1}),ah),Y1=()=>[Ec,Qc,Hc,_s,Pc,Jc,W1,uy],H0=()=>[Qc,Ec,_s,Hc,Pc,Jc,W1,uy],X1=()=>[Hc,_s,Ec,Qc,Jc,Pc],G1=()=>[_s,Hc,Qc,Ec,Jc,Pc],K1=()=>[Ec,Qc,Hc,_s,Pc,Jc],Zp=()=>[Qc,Ec,_s,Hc,Pc,Jc],fy=(s,F)=>F.universal?s:me(s,Z=>X(F.channels,Z));var Bm=Object.freeze({__proto__:null,events:s=>pl([fo(lp(),(F,Z)=>{const ue=s.channels,we=ke(ue),Be=Z,qe=fy(we,Be);q(qe,ft=>{const gt=ue[ft],At=gt.schema,$t=cn("channel["+ft+`] data +Receiver: `+rh(F.element),At,Be.data);gt.onReceive(F,$t)})})])}),Sb=[rr("channels",Et(Hi.value,Ol([Zh("onReceive"),mr("schema",le())])))];const Wu=lf({fields:Sb,name:"receiving",active:Bm});var J1=Object.freeze({__proto__:null,exhibit:(s,F)=>Cf({classes:[],styles:F.useFixed()?{}:{position:"relative"}})});const xd=(s,F=!1)=>s.dom.focus({preventScroll:F}),a0=s=>s.dom.blur(),dy=s=>{const F=vr(s).dom;return s.dom===F.activeElement},hp=(s=of())=>I.from(s.dom.activeElement).map(Pt.fromDom),_d=s=>hp(vr(s)).filter(F=>s.dom.contains(F.dom)),xg=(s,F)=>{const Z=vr(F),ue=hp(Z).bind(Be=>{const qe=ft=>so(Be,ft);return qe(F)?I.some(F):Ja(F,qe)}),we=s(F);return ue.each(Be=>{hp(Z).filter(qe=>so(qe,Be)).fold(()=>{xd(Be)},v)}),we},kb=Ds.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Tb=(s,F,Z,ue,we,Be)=>{const qe=F.rect,ft=qe.x-Z,gt=qe.y-ue,At=qe.width,$t=qe.height,on=we-(ft+At),yn=Be-(gt+$t),wn=I.some(ft),Mn=I.some(gt),Xn=I.some(on),Br=I.some(yn),or=I.none();return wu(F.direction,()=>Du(s,wn,Mn,or,or),()=>Du(s,or,Mn,Xn,or),()=>Du(s,wn,or,or,Br),()=>Du(s,or,or,Xn,Br),()=>Du(s,wn,Mn,or,or),()=>Du(s,wn,or,or,Br),()=>Du(s,wn,Mn,or,or),()=>Du(s,or,Mn,Xn,or))},Xx=(s,F)=>s.fold(()=>{const Z=F.rect;return Du("absolute",I.some(Z.x),I.some(Z.y),I.none(),I.none())},(Z,ue,we,Be)=>Tb("absolute",F,Z,ue,we,Be),(Z,ue,we,Be)=>Tb("fixed",F,Z,ue,we,Be)),Z0=(s,F)=>{const Z=T(Jd,F),ue=s.fold(Z,Z,()=>{const qe=Hl();return Jd(F).translate(-qe.left,-qe.top)}),we=pu(F),Be=Ed(F);return ms(ue.left,ue.top,we,Be)},Cb=(s,F)=>F.fold(()=>s.fold(wl,wl,ms),Z=>s.fold(x(Z),x(Z),()=>{const ue=tw(s,Z.x,Z.y);return ms(ue.left,ue.top,Z.width,Z.height)})),tw=(s,F,Z)=>{const ue=Ws(F,Z),we=()=>{const Be=Hl();return ue.translate(-Be.left,-Be.top)};return s.fold(x(ue),x(ue),we)},hy=(s,F,Z,ue)=>s.fold(F,Z,ue);kb.none;const eu=kb.relative,Eh=kb.fixed,ev=(s,F)=>({anchorBox:s,origin:F}),_g=(s,F)=>ev(s,F),Ab="data-alloy-placement",nw=(s,F)=>{fr(s,Ab,F)},Mb=s=>co(s,Ab),wg=s=>po(s,Ab),tv=Ds.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),py=(s,F)=>{const{x:Z,y:ue,right:we,bottom:Be}=F,{x:qe,y:ft,right:gt,bottom:At,width:$t,height:on}=s,yn=qe>=Z&&qe<=we,wn=ft>=ue&&ft<=Be,Mn=yn&&wn,Xn=gt<=we&>>=Z,Br=At<=Be&&At>=ue,or=Xn&&Br,Mr=Math.min($t,qe>=Z?we-qe:gt-Z),kr=Math.min(on,ft>=ue?Be-ft:At-ue);return{originInBounds:Mn,sizeInBounds:or,visibleW:Mr,visibleH:kr}},Gx=(s,F)=>{const{x:Z,y:ue,right:we,bottom:Be}=F,{x:qe,y:ft,width:gt,height:At}=s,$t=Math.max(Z,we-gt),on=Math.max(ue,Be-At),yn=Mc(qe,Z,$t),wn=Mc(ft,ue,on),Mn=Math.min(yn+gt,we)-yn,Xn=Math.min(wn+At,Be)-wn;return ms(yn,wn,Mn,Xn)},Eb=(s,F,Z)=>{const ue=x(F.bottom-Z.y),we=x(Z.bottom-F.y),Be=uf(s,we,we,ue),qe=x(F.right-Z.x),ft=x(Z.right-F.x);return{maxWidth:ff(s,ft,ft,qe),maxHeight:Be}},nv=(s,F,Z,ue)=>{const we=s.bubble,Be=we.offset,qe=Im(ue,s.restriction,Be),ft=s.x+Be.left,gt=s.y+Be.top,At=ms(ft,gt,F,Z),{originInBounds:$t,sizeInBounds:on,visibleW:yn,visibleH:wn}=py(At,qe),Mn=$t&&on,Xn=Mn?At:Gx(At,qe),Br=Xn.width>0&&Xn.height>0,{maxWidth:or,maxHeight:Mr}=Eb(s.direction,Xn,ue),kr={rect:Xn,maxHeight:Mr,maxWidth:or,direction:s.direction,placement:s.placement,classes:{on:we.classesOn,off:we.classesOff},layout:s.label,testY:gt};return Mn||s.alwaysFit?tv.fit(kr):tv.nofit(kr,yn,wn,Br)},e3=(s,F,Z,ue,we,Be)=>{const qe=ue.width,ft=ue.height,gt=($t,on,yn,wn,Mn)=>{const Xn=$t(Z,ue,we,s,Be),Br=nv(Xn,qe,ft,Be);return Br.fold(x(Br),(or,Mr,kr,yo)=>(Mn===yo?kr>wn||Mr>yn:!Mn&&yo)?Br:tv.nofit(on,yn,wn,Mn))};return se(F,($t,on)=>{const yn=T(gt,on);return $t.fold(x($t),yn)},tv.nofit({rect:Z,maxHeight:ue.height,maxWidth:ue.width,direction:jc(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:Z.y},-1,-1,!1)).fold(R,R)},my=k,wd=(s,F,Z)=>Lp(s,F,my,Z),Kx=(s,F,Z)=>Uh(s,F,my,Z),Jx=ym,e2=["top","bottom","right","left"],Pb="data-alloy-transition-timer",Wh=(s,F)=>ic(s,F.classes),t2=(s,F,Z)=>Z.exists(ue=>{const we=s.mode;return we==="all"?!0:ue[we]!==F[we]}),Rb=(s,F)=>{const Z=ue=>parseFloat(ue).toFixed(3);return nt(F,(ue,we)=>{const Be=s[we].map(Z),qe=ue.map(Z);return!Dt(Be,qe)}).isSome()},zm=s=>{const F=Be=>{const ft=Aa(s,Be).split(/\s*,\s*/);return me(ft,it)},Z=Be=>{if(n(Be)&&/^[\d.]+/.test(Be)){const qe=parseFloat(Be);return yt(Be,"ms")?qe:qe*1e3}else return 0},ue=F("transition-delay"),we=F("transition-duration");return se(we,(Be,qe,ft)=>{const gt=Z(ue[ft])+Z(qe);return Math.max(Be,gt)},0)},rw=(s,F)=>{const Z=js(),ue=js();let we;const Be=At=>{var $t;const on=($t=At.raw.pseudoElement)!==null&&$t!==void 0?$t:"";return so(At.target,s)&&at(on)&&X(e2,At.raw.propertyName)},qe=At=>{if(p(At)||Be(At)){Z.clear(),ue.clear();const $t=At==null?void 0:At.raw.type;(p($t)||$t===sp())&&(clearTimeout(we),po(s,Pb),th(s,F.classes))}},ft=wd(s,A_(),At=>{Be(At)&&(ft.unbind(),Z.set(wd(s,sp(),qe)),ue.set(wd(s,C_(),qe)))}),gt=zm(s);requestAnimationFrame(()=>{we=setTimeout(qe,gt+17),fr(s,Pb,we)})},n2=(s,F)=>{P1(s,F.classes),co(s,Pb).each(Z=>{clearTimeout(parseInt(Z,10)),po(s,Pb)}),rw(s,F)},Fm=(s,F,Z,ue,we,Be)=>{const qe=t2(ue,we,Be);if(qe||Wh(s,ue)){ko(s,"position",Z.position);const ft=Z0(F,s),gt=Xx(F,{...we,rect:ft}),At=Pe(e2,$t=>gt[$t]);Rb(Z,At)&&(mo(s,At),qe&&n2(s,ue),Ku(s))}else th(s,ue.classes)},q0=s=>({width:pu(s),height:Ed(s)}),rv=(s,F,Z,ue)=>{ga(F,"max-height"),ga(F,"max-width");const we=q0(F);return e3(F,ue.preference,s,we,Z,ue.bounds)},ov=(s,F)=>{const Z=F.classes;th(s,Z.off),P1(s,Z.on)},iv=(s,F,Z)=>{const ue=Z.maxHeightFunction;ue(s,F.maxHeight)},t3=(s,F,Z)=>{const ue=Z.maxWidthFunction;ue(s,F.maxWidth)},ow=(s,F,Z)=>{const ue=Xx(Z.origin,F);Z.transition.each(we=>{Fm(s,Z.origin,ue,we,F,Z.lastPlacement)}),hg(s,ue)},iw=(s,F)=>{nw(s,F.placement)},aw=(s,F)=>{Nf(s,Math.floor(F))},gy=x((s,F)=>{aw(s,F),ra(s,{"overflow-x":"hidden","overflow-y":"auto"})}),W0=x((s,F)=>{aw(s,F)}),Og=(s,F,Z)=>s[F]===void 0?Z:s[F],n3=(s,F,Z,ue,we,Be,qe,ft)=>{const gt=Og(qe,"maxHeightFunction",gy()),At=Og(qe,"maxWidthFunction",v),$t=s.anchorBox,on=s.origin,yn={bounds:Cb(on,Be),origin:on,preference:ue,maxHeightFunction:gt,maxWidthFunction:At,lastPlacement:we,transition:ft};return vy($t,F,Z,yn)},vy=(s,F,Z,ue)=>{const we=rv(s,F,Z,ue);return ow(F,we,ue),iw(F,we),ov(F,we),iv(F,we,ue),t3(F,we,ue),{layout:we.layout,placement:we.placement}},sw=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],pp=(s,F,Z,ue=1)=>{const we=s*ue,Be=F*ue,qe=gt=>Ge(Z,gt).getOr([]),ft=(gt,At,$t)=>{const on=Te(sw,$t);return{offset:Ws(gt,At),classesOn:ye($t,qe),classesOff:ye(on,qe)}};return{southeast:()=>ft(-s,F,["top","alignLeft"]),southwest:()=>ft(s,F,["top","alignRight"]),south:()=>ft(-s/2,F,["top","alignCentre"]),northeast:()=>ft(-s,-F,["bottom","alignLeft"]),northwest:()=>ft(s,-F,["bottom","alignRight"]),north:()=>ft(-s/2,-F,["bottom","alignCentre"]),east:()=>ft(s,-F/2,["valignCentre","left"]),west:()=>ft(-s,-F/2,["valignCentre","right"]),insetNortheast:()=>ft(we,Be,["top","alignLeft","inset"]),insetNorthwest:()=>ft(-we,Be,["top","alignRight","inset"]),insetNorth:()=>ft(-we/2,Be,["top","alignCentre","inset"]),insetSoutheast:()=>ft(we,-Be,["bottom","alignLeft","inset"]),insetSouthwest:()=>ft(-we,-Be,["bottom","alignRight","inset"]),insetSouth:()=>ft(-we/2,-Be,["bottom","alignCentre","inset"]),insetEast:()=>ft(-we,-Be/2,["valignCentre","right","inset"]),insetWest:()=>ft(we,-Be/2,["valignCentre","left","inset"])}},r2=()=>pp(0,0,{}),yy=R,Lb=(s,F)=>Z=>Od(Z)==="rtl"?F:s,Od=s=>Aa(s,"direction")==="rtl"?"rtl":"ltr";var Sg;(function(s){s.TopToBottom="toptobottom",s.BottomToTop="bottomtotop"})(Sg||(Sg={}));const s0="data-alloy-vertical-dir",Ib=s=>Vl(s,F=>Kn(F)&&ao(F,"data-alloy-vertical-dir")===Sg.BottomToTop),l0=()=>Pi("layouts",[Sn("onLtr"),Sn("onRtl"),Hr("onBottomLtr"),Hr("onBottomRtl")]),Y0=(s,F,Z,ue,we,Be,qe)=>{const ft=qe.map(Ib).getOr(!1),gt=F.layouts.map(wn=>wn.onLtr(s)),At=F.layouts.map(wn=>wn.onRtl(s)),$t=ft?F.layouts.bind(wn=>wn.onBottomLtr.map(Mn=>Mn(s))).or(gt).getOr(we):gt.getOr(Z),on=ft?F.layouts.bind(wn=>wn.onBottomRtl.map(Mn=>Mn(s))).or(At).getOr(Be):At.getOr(ue);return Lb($t,on)(s)},AS=(s,F,Z)=>{const ue=F.hotspot,we=Z0(Z,ue.element),Be=Y0(s.element,F,K1(),Zp(),X1(),G1(),I.some(F.hotspot.element));return I.some(yy({anchorBox:we,bubble:F.bubble.getOr(r2()),overrides:F.overrides,layouts:Be}))};var r3=[Sn("hotspot"),Hr("bubble"),mr("overrides",{}),l0(),Il("placement",AS)];const o3=(s,F,Z)=>{const ue=tw(Z,F.x,F.y),we=ms(ue.left,ue.top,F.width,F.height),Be=Y0(s.element,F,Y1(),H0(),Y1(),H0(),I.none());return I.some(yy({anchorBox:we,bubble:F.bubble,overrides:F.overrides,layouts:Be}))};var o2=[Sn("x"),Sn("y"),mr("height",0),mr("width",0),mr("bubble",r2()),mr("overrides",{}),l0(),Il("placement",o3)];const i2=Ds.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),MS=s=>s.fold(R,(F,Z,ue)=>F.translate(-Z,-ue)),Db=s=>s.fold(R,R),lw=s=>se(s,(F,Z)=>F.translate(Z.left,Z.top),Ws(0,0)),ES=s=>{const F=oe(s,MS);return lw(F)},cw=s=>{const F=oe(s,Db);return lw(F)},qp=i2.screen,av=i2.absolute,i3=(s,F,Z)=>{const ue=Yn(Z.root).dom,we=Be=>{const qe=go(Be),ft=go(s.element);return so(qe,ft)};return I.from(ue.frameElement).map(Pt.fromDom).filter(we).map(pc)},Nm=(s,F,Z)=>{const ue=go(s.element),we=Hl(ue),Be=i3(s,F,Z).getOr(we);return av(Be,we.left,we.top)},uw=(s,F,Z,ue)=>{const we=qp(Ws(s,F));return I.some(zc(we,Z,ue))},PS=(s,F,Z,ue,we)=>s.map(Be=>{const qe=[F,Be.point],ft=hy(ue,()=>cw(qe),()=>cw(qe),()=>ES(qe)),gt=np(ft.left,ft.top,Be.width,Be.height),At=Z.showAbove?X1():K1(),$t=Z.showAbove?G1():Zp(),on=Y0(we,Z,At,$t,At,$t,I.none());return yy({anchorBox:gt,bubble:Z.bubble.getOr(r2()),overrides:Z.overrides,layouts:on})}),PT=(s,F,Z)=>{const ue=Nm(s,Z,F);return F.node.filter(Er).bind(we=>{const Be=we.dom.getBoundingClientRect(),qe=uw(Be.left,Be.top,Be.width,Be.height),ft=F.node.getOr(s.element);return PS(qe,ue,F,Z,ft)})};var a3=[Sn("node"),Sn("root"),Hr("bubble"),l0(),mr("overrides",{}),mr("showAbove",!1),Il("placement",PT)];const FM="\uFEFF",by=" ",a2={create:(s,F,Z,ue)=>({start:s,soffset:F,finish:Z,foffset:ue})},s3=Ds.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),s2=(s,F,Z,ue)=>s.fold(F,Z,ue),l2=s=>s.fold(R,R,R),NM=s3.before,RT=s3.on,$M=s3.after,l3={before:NM,on:RT,after:$M,cata:s2,getStart:l2},sv=Ds.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),RS=s=>sv.exact(s.start,s.soffset,s.finish,s.foffset),LS=s=>s.match({domRange:F=>Pt.fromDom(F.startContainer),relative:(F,Z)=>l3.getStart(F),exact:(F,Z,ue,we)=>F}),VM=sv.domRange,IS=sv.relative,LT=sv.exact,IT=s=>{const F=LS(s);return Yn(F)},DT=a2.create,c2={domRange:VM,relative:IS,exact:LT,exactFromRange:RS,getWin:IT,range:DT},c3=(s,F)=>{F.fold(Z=>{s.setStartBefore(Z.dom)},(Z,ue)=>{s.setStart(Z.dom,ue)},Z=>{s.setStartAfter(Z.dom)})},Bb=(s,F)=>{F.fold(Z=>{s.setEndBefore(Z.dom)},(Z,ue)=>{s.setEnd(Z.dom,ue)},Z=>{s.setEndAfter(Z.dom)})},lv=(s,F,Z)=>{const ue=s.document.createRange();return c3(ue,F),Bb(ue,Z),ue},fw=(s,F,Z,ue,we)=>{const Be=s.document.createRange();return Be.setStart(F.dom,Z),Be.setEnd(ue.dom,we),Be},u2=s=>({left:s.left,top:s.top,right:s.right,bottom:s.bottom,width:s.width,height:s.height}),UM=s=>{const F=s.getClientRects(),Z=F.length>0?F[0]:s.getBoundingClientRect();return Z.width>0||Z.height>0?I.some(Z).map(u2):I.none()},c0=s=>{const F=s.getBoundingClientRect();return F.width>0||F.height>0?I.some(F).map(u2):I.none()},Wp=Ds.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),u3=(s,F,Z)=>F(Pt.fromDom(Z.startContainer),Z.startOffset,Pt.fromDom(Z.endContainer),Z.endOffset),jM=(s,F)=>F.match({domRange:Z=>({ltr:x(Z),rtl:I.none}),relative:(Z,ue)=>({ltr:iu(()=>lv(s,Z,ue)),rtl:iu(()=>I.some(lv(s,ue,Z)))}),exact:(Z,ue,we,Be)=>({ltr:iu(()=>fw(s,Z,ue,we,Be)),rtl:iu(()=>I.some(fw(s,we,Be,Z,ue)))})}),DD=(s,F)=>{const Z=F.ltr();return Z.collapsed?F.rtl().filter(we=>we.collapsed===!1).map(we=>Wp.rtl(Pt.fromDom(we.endContainer),we.endOffset,Pt.fromDom(we.startContainer),we.startOffset)).getOrThunk(()=>u3(s,Wp.ltr,Z)):u3(s,Wp.ltr,Z)},zb=(s,F)=>{const Z=jM(s,F);return DD(s,Z)},f2=(s,F)=>zb(s,F).match({ltr:(ue,we,Be,qe)=>{const ft=s.document.createRange();return ft.setStart(ue.dom,we),ft.setEnd(Be.dom,qe),ft},rtl:(ue,we,Be,qe)=>{const ft=s.document.createRange();return ft.setStart(Be.dom,qe),ft.setEnd(ue.dom,we),ft}});Wp.ltr,Wp.rtl;const d2=(s,F,Z)=>me(io(s,Z),F),$d=(s,F)=>Kr(F,s),f3=(s,F,Z,ue)=>{const Be=go(s).dom.createRange();return Be.setStart(s.dom,F),Be.setEnd(Z.dom,ue),Be},Fb=(s,F,Z,ue)=>{const we=f3(s,F,Z,ue),Be=so(s,Z)&&F===ue;return we.collapsed&&!Be},d3=s=>I.from(s.getSelection()),BT=s=>{if(s.rangeCount>0){const F=s.getRangeAt(0),Z=s.getRangeAt(s.rangeCount-1);return I.some(a2.create(Pt.fromDom(F.startContainer),F.startOffset,Pt.fromDom(Z.endContainer),Z.endOffset))}else return I.none()},DS=s=>{if(s.anchorNode===null||s.focusNode===null)return BT(s);{const F=Pt.fromDom(s.anchorNode),Z=Pt.fromDom(s.focusNode);return Fb(F,s.anchorOffset,Z,s.focusOffset)?I.some(a2.create(F,s.anchorOffset,Z,s.focusOffset)):BT(s)}},h3=s=>d3(s).filter(F=>F.rangeCount>0).bind(DS),Mf=(s,F)=>{const Z=f2(s,F);return UM(Z)},p3=(s,F)=>{const Z=f2(s,F);return c0(Z)},BS=((s,F)=>{const Z=Be=>{if(!s(Be))throw new Error("Can only get "+F+" value of a "+F+" node");return ue(Be).getOr("")},ue=Be=>s(Be)?I.from(Be.dom.nodeValue):I.none();return{get:Z,getOption:ue,set:(Be,qe)=>{if(!s(Be))throw new Error("Can only set raw "+F+" value of a "+F+" node");Be.dom.nodeValue=qe}}})(_r,"text"),zS=s=>BS.get(s),cv=(s,F)=>({element:s,offset:F}),zT=(s,F)=>{const Z=bo(s);if(Z.length===0)return cv(s,F);if(F_r(s)?cv(s,F):zT(s,F),m3=s=>s.foffset!==void 0,g3=(s,F)=>F.getSelection.getOrThunk(()=>()=>h3(s))().map(ue=>{if(m3(ue)){const we=xy(ue.start,ue.soffset),Be=xy(ue.finish,ue.foffset);return c2.range(we.element,we.offset,Be.element,Be.offset)}else return ue}),FS=(s,F,Z)=>{const ue=Yn(F.root).dom,we=Nm(s,Z,F),Be=g3(ue,F).bind(gt=>{if(m3(gt))return p3(ue,c2.exactFromRange(gt)).orThunk(()=>{const $t=Pt.fromText(FM);Eu(gt.start,$t);const on=Mf(ue,c2.exact($t,0,$t,1));return zl($t),on}).bind($t=>uw($t.left,$t.top,$t.width,$t.height));{const At=Ue(gt,on=>on.dom.getBoundingClientRect()),$t={left:Math.min(At.firstCell.left,At.lastCell.left),right:Math.max(At.firstCell.right,At.lastCell.right),top:Math.min(At.firstCell.top,At.lastCell.top),bottom:Math.max(At.firstCell.bottom,At.lastCell.bottom)};return uw($t.left,$t.top,$t.right-$t.left,$t.bottom-$t.top)}}),ft=g3(ue,F).bind(gt=>m3(gt)?Kn(gt.start)?I.some(gt.start):Cr(gt.start):I.some(gt.firstCell)).getOr(s.element);return PS(Be,we,F,Z,ft)};var Nb=[Hr("getSelection"),Sn("root"),Hr("bubble"),l0(),mr("overrides",{}),mr("showAbove",!1),Il("placement",FS)];const h2="link-layout",Sd=s=>s.x+s.width,FT=(s,F)=>s.x-F.width,NS=(s,F)=>s.y-F.height+s.height,$S=s=>s.y,NT=(s,F,Z)=>ml(Sd(s),$S(s),Z.southeast(),jc(),"southeast",il(s,{left:0,top:2}),h2),VS=(s,F,Z)=>ml(FT(s,F),$S(s),Z.southwest(),is(),"southwest",il(s,{right:1,top:2}),h2),$T=(s,F,Z)=>ml(Sd(s),NS(s,F),Z.northeast(),Vs(),"northeast",il(s,{left:0,bottom:3}),h2),VT=(s,F,Z)=>ml(FT(s,F),NS(s,F),Z.northwest(),Ac(),"northwest",il(s,{right:1,bottom:3}),h2),Yp=()=>[NT,VS,$T,VT],uv=()=>[VS,NT,VT,$T],UT=(s,F,Z)=>{const ue=Z0(Z,F.item.element),we=Y0(s.element,F,Yp(),uv(),Yp(),uv(),I.none());return I.some(yy({anchorBox:ue,bubble:r2(),overrides:F.overrides,layouts:we}))};var $b=[Sn("item"),l0(),mr("overrides",{}),Il("placement",UT)],sh=xn("type",{selection:Nb,node:a3,hotspot:r3,submenu:$b,makeshift:o2});const mp=[Si("classes",ne),hl("mode","all",["all","layout","placement"])],lh=[mr("useFixed",D),Hr("getBounds")],Xp=[rr("anchor",sh),Pi("transition",mp)],v3=()=>{const s=document.documentElement;return Eh(0,0,s.clientWidth,s.clientHeight)},Gp=s=>{const F=pc(s.element),Z=s.element.dom.getBoundingClientRect();return eu(F.left,F.top,Z.width,Z.height)},Vb=(s,F,Z,ue,we,Be)=>{const qe=_g(F.anchorBox,s);return n3(qe,ue.element,F.bubble,F.layouts,we,Z,F.overrides,Be)},QM=(s,F,Z,ue,we)=>{const Be=I.none();jT(s,F,Z,ue,we,Be)},jT=(s,F,Z,ue,we,Be)=>{const qe=cn("placement.info",Mi(Xp),we),ft=qe.anchor,gt=ue.element,At=Z.get(ue.uid);xg(()=>{ko(gt,"position","fixed");const $t=Na(gt,"visibility");ko(gt,"visibility","hidden");const on=F.useFixed()?v3():Gp(s);ft.placement(s,ft,on).each(yn=>{const wn=Be.orThunk(()=>F.getBounds.map(L)),Mn=Vb(on,yn,wn,ue,At,qe.transition);Z.set(ue.uid,Mn)}),$t.fold(()=>{ga(gt,"visibility")},yn=>{ko(gt,"visibility",yn)}),Na(gt,"left").isNone()&&Na(gt,"top").isNone()&&Na(gt,"right").isNone()&&Na(gt,"bottom").isNone()&&wt(Na(gt,"position"),"fixed")&&ga(gt,"position")},gt)};var HT=Object.freeze({__proto__:null,position:QM,positionWithinBounds:jT,getMode:(s,F,Z)=>F.useFixed()?"fixed":"absolute",reset:(s,F,Z,ue)=>{const we=ue.element;q(["position","left","right","top","bottom"],Be=>ga(we,Be)),wg(we),Z.clear(ue.uid)}}),jS=Object.freeze({__proto__:null,init:()=>{let s={};return kh({readState:()=>s,clear:we=>{a(we)?delete s[we]:s={}},set:(we,Be)=>{s[we]=Be},get:we=>Ge(s,we)})}});const ed=lf({fields:lh,name:"positioning",active:J1,apis:HT,state:jS}),QS=s=>s.getSystem().isConnected(),_y=s=>{Sa(s,fp());const F=s.components();q(F,_y)},p2=s=>{const F=s.components();q(F,p2),Sa(s,zd())},HS=(s,F)=>{s.getSystem().addToWorld(F),Er(s.element)&&p2(F)},y3=s=>{_y(s),s.getSystem().removeFromWorld(s)},dw=(s,F)=>{Pu(s.element,F.element)},ZS=s=>{q(s.components(),F=>zl(F.element)),Uf(s.element),s.syncComponents()},m2=(s,F,Z)=>{const ue=s.components();ZS(s);const we=Z(F),Be=Te(ue,we);q(Be,qe=>{_y(qe),s.getSystem().removeFromWorld(qe)}),q(we,qe=>{QS(qe)?dw(s,qe):(s.getSystem().addToWorld(qe),dw(s,qe),Er(s.element)&&p2(qe))}),s.syncComponents()},qS=(s,F,Z)=>{const ue=s.components(),we=ye(F,ft=>G_(ft).toArray());q(ue,ft=>{X(we,ft)||y3(ft)});const Be=Z(F),qe=Te(ue,Be);q(qe,ft=>{QS(ft)&&y3(ft)}),q(Be,ft=>{QS(ft)||HS(s,ft)}),s.syncComponents()},X0=(s,F)=>{Ub(s,F,Pu)},Ub=(s,F,Z)=>{s.getSystem().addToWorld(F),Z(s.element,F.element),Er(s.element)&&p2(F),s.syncComponents()},ZT=s=>{_y(s),zl(s.element),s.getSystem().removeFromWorld(s)},fv=s=>{const F=br(s.element).bind(Z=>s.getSystem().getByDom(Z).toOptional());ZT(s),F.each(Z=>{Z.syncComponents()})},Kp=s=>{const F=s.components();q(F,ZT),Uf(s.element),s.syncComponents()},qT=(s,F)=>{jb(s,F,Pu)},G0=(s,F)=>{jb(s,F,fd)},jb=(s,F,Z)=>{Z(s,F.element);const ue=bo(F.element);q(ue,we=>{F.getByDom(we).each(p2)})},WS=s=>{const F=bo(s.element);q(F,Z=>{s.getByDom(Z).each(_y)}),zl(s.element)},b3=(s,F,Z,ue)=>{Z.get().each(qe=>{Kp(s)});const we=F.getAttachPoint(s);X0(we,s);const Be=s.getSystem().build(ue);return X0(s,Be),Z.set(Be),Be},WT=(s,F,Z,ue)=>{const we=b3(s,F,Z,ue);return F.onOpen(s,we),we},ZM=(s,F,Z,ue)=>Z.get().map(()=>b3(s,F,Z,ue)),qM=(s,F,Z,ue,we)=>{v2(s,F),WT(s,F,Z,ue),we(),x3(s,F)},YT=(s,F,Z)=>{Z.get().each(ue=>{Kp(s),fv(s),F.onClose(s,ue),Z.clear()})},wy=(s,F,Z)=>Z.isOpen(),g2=(s,F,Z,ue)=>wy(s,F,Z)&&Z.get().exists(we=>F.isPartOf(s,we,ue)),hw=(s,F,Z)=>Z.get(),WM=(s,F,Z,ue)=>{Na(s.element,F).fold(()=>{po(s.element,Z)},we=>{fr(s.element,Z,we)}),ko(s.element,F,ue)},YM=(s,F,Z)=>{co(s.element,Z).fold(()=>ga(s.element,F),ue=>ko(s.element,F,ue))},v2=(s,F,Z)=>{const ue=F.getAttachPoint(s);ko(s.element,"position",ed.getMode(ue)),WM(s,"visibility",F.cloakVisibilityAttr,"hidden")},YS=s=>te(["top","left","right","bottom"],F=>Na(s,F).isSome()),x3=(s,F,Z)=>{YS(s.element)||ga(s.element,"position"),YM(s,"visibility",F.cloakVisibilityAttr)};var XS=Object.freeze({__proto__:null,cloak:v2,decloak:x3,open:WT,openWhileCloaked:qM,close:YT,isOpen:wy,isPartOf:g2,getState:hw,setContent:ZM}),y2=Object.freeze({__proto__:null,events:(s,F)=>pl([fo(L0(),(Z,ue)=>{YT(Z,s,F)})])}),KS=[Ra("onOpen"),Ra("onClose"),Sn("isPartOf"),Sn("getAttachPoint"),mr("cloakVisibilityAttr","data-precloak-visibility")],JS=Object.freeze({__proto__:null,init:()=>{const s=os(),F=x("not-implemented");return kh({readState:F,isOpen:s.isSet,clear:s.clear,set:s.set,get:s.get})}});const ps=lf({fields:KS,name:"sandboxing",active:y2,apis:XS,state:JS}),K0=x("dismiss.popups"),Qb=x("reposition.popups"),pw=x("mouse.released"),e5=Ol([mr("isExtraPart",D),Pi("fireEventInstead",[mr("event",I0())])]),dv=s=>{const F=cn("Dismissal",e5,s);return{[K0()]:{schema:Ol([Sn("target")]),onReceive:(Z,ue)=>{ps.isOpen(Z)&&(ps.isPartOf(Z,ue.target)||F.isExtraPart(Z,ue.target)||F.fireEventInstead.fold(()=>ps.close(Z),Be=>Sa(Z,Be.event)))}}}},t5=Ol([Pi("fireEventInstead",[mr("event",E_())]),$o("doReposition")]),_3=s=>{const F=cn("Reposition",t5,s);return{[Qb()]:{onReceive:Z=>{ps.isOpen(Z)&&F.fireEventInstead.fold(()=>F.doReposition(Z),ue=>Sa(Z,ue.event))}}}},n5=(s,F,Z)=>{F.store.manager.onLoad(s,F,Z)},r5=(s,F,Z)=>{F.store.manager.onUnload(s,F,Z)};var O3=Object.freeze({__proto__:null,onLoad:n5,onUnload:r5,setValue:(s,F,Z,ue)=>{F.store.manager.setValue(s,F,Z,ue)},getValue:(s,F,Z)=>F.store.manager.getValue(s,F,Z),getState:(s,F,Z)=>Z}),x2=Object.freeze({__proto__:null,events:(s,F)=>{const Z=s.resetOnDom?[Ll((ue,we)=>{n5(ue,s,F)}),Sh((ue,we)=>{r5(ue,s,F)})]:[E1(s,F,n5)];return pl(Z)}});const S3=()=>{const s=xi(null),F=()=>({mode:"memory",value:s.get()}),Z=()=>s.get()===null,ue=()=>{s.set(null)};return kh({set:s.set,get:s.get,isNotSet:Z,clear:ue,readState:F})},XM=()=>kh({readState:v}),k3=()=>{const s=xi({}),F=xi({});return kh({readState:()=>({mode:"dataset",dataByValue:s.get(),dataByText:F.get()}),lookup:qe=>Ge(s.get(),qe).orThunk(()=>Ge(F.get(),qe)),update:qe=>{const ft=s.get(),gt=F.get(),At={},$t={};q(qe,on=>{At[on.value]=on,Ge(on,"meta").each(yn=>{Ge(yn,"text").each(wn=>{$t[wn]=on})})}),s.set({...ft,...At}),F.set({...gt,...$t})},clear:()=>{s.set({}),F.set({})}})};var GM=Object.freeze({__proto__:null,memory:S3,dataset:k3,manual:XM,init:s=>s.store.manager.state(s)});const mw=(s,F,Z,ue)=>{const we=F.store;Z.update([ue]),we.setValue(s,ue),F.onSetValue(s,ue)},$m=(s,F,Z)=>{const ue=F.store,we=ue.getDataKey(s);return Z.lookup(we).getOrThunk(()=>ue.getFallbackEntry(we))},Ef=(s,F,Z)=>{F.store.initialValue.each(we=>{mw(s,F,Z,we)})},KM=(s,F,Z)=>{Z.clear()};var u0=[Hr("initialValue"),Sn("getFallbackEntry"),Sn("getDataKey"),Sn("setValue"),Il("manager",{setValue:mw,getValue:$m,onLoad:Ef,onUnload:KM,state:k3})];const JM=(s,F,Z)=>F.store.getValue(s),GT=(s,F,Z,ue)=>{F.store.setValue(s,ue),F.onSetValue(s,ue)},gw=(s,F,Z)=>{F.store.initialValue.each(ue=>{F.store.setValue(s,ue)})};var _2=[Sn("getValue"),mr("setValue",v),Hr("initialValue"),Il("manager",{setValue:GT,getValue:JM,onLoad:gw,onUnload:v,state:Gf.init})];const KT=(s,F,Z,ue)=>{Z.set(ue),F.onSetValue(s,ue)},JT=(s,F,Z)=>Z.get(),BD=(s,F,Z)=>{F.store.initialValue.each(ue=>{Z.isNotSet()&&Z.set(ue)})},zD=(s,F,Z)=>{Z.clear()};var e6=[Hr("initialValue"),Il("manager",{setValue:KT,getValue:JT,onLoad:BD,onUnload:zD,state:S3})],t6=[bs("store",{mode:"memory"},xn("mode",{memory:e6,manual:_2,dataset:u0})),Ra("onSetValue"),mr("resetOnDom",!1)];const hi=lf({fields:t6,name:"representing",active:x2,apis:O3,extra:{setValueFrom:(s,F)=>{const Z=hi.getValue(F);hi.setValue(s,Z)}},state:GM}),Pf=(s,F)=>ol(s,{},oe(F,Z=>vo(Z.name(),"Cannot configure "+Z.name()+" for "+s)).concat([On("dump",R)])),vw=s=>s.dump,Rf=(s,F)=>({...Bo(F),...s.dump}),Vm={field:Pf,augment:Rf,get:vw},o5="placeholder",qb=Ds.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),T3=s=>ht(s,"uiType"),Oy=(s,F,Z,ue)=>s.exists(we=>we!==Z.owner)?qb.single(!0,x(Z)):Ge(ue,Z.name).fold(()=>{throw new Error("Unknown placeholder component: "+Z.name+` Known: [`+ke(ue)+`] Namespace: `+s.getOr("none")+` -Spec: `+JSON.stringify(Z,null,2))},we=>we.replace()),yw=(s,F,Z,ue)=>T3(Z)&&Z.uiType===r5?Oy(s,F,Z,ue):Zb.single(!1,x(Z)),t6=(s,F,Z,ue)=>yw(s,F,Z,ue).fold((Be,qe)=>{const ft=T3(Z)?qe(F,Z.config,Z.validated):qe(F),gt=Ge(ft,"components").getOr([]),At=ye(gt,$t=>t6(s,F,$t,ue));return[{...ft,components:At}]},(Be,qe)=>{if(T3(Z)){const ft=qe(F,Z.config,Z.validated);return Z.validated.preprocess.getOr(R)(ft)}else return qe(F)}),JM=(s,F,Z,ue)=>ye(Z,we=>t6(s,F,we,ue)),eE=(s,F)=>{let Z=!1;const ue=()=>Z,we=()=>{if(Z)throw new Error("Trying to use the same placeholder more than once: "+s);return Z=!0,F},Be=()=>F.fold((qe,ft)=>qe,(qe,ft)=>qe);return{name:x(s),required:Be,used:ue,replace:we}},tE=(s,F,Z,ue)=>{const we=Ue(ue,(qe,ft)=>eE(ft,qe)),Be=JM(s,F,Z,we);return We(we,qe=>{if(qe.used()===!1&&qe.required())throw new Error("Placeholder: "+qe.name()+` was not found in components list +Spec: `+JSON.stringify(Z,null,2))},we=>we.replace()),yw=(s,F,Z,ue)=>T3(Z)&&Z.uiType===o5?Oy(s,F,Z,ue):qb.single(!1,x(Z)),n6=(s,F,Z,ue)=>yw(s,F,Z,ue).fold((Be,qe)=>{const ft=T3(Z)?qe(F,Z.config,Z.validated):qe(F),gt=Ge(ft,"components").getOr([]),At=ye(gt,$t=>n6(s,F,$t,ue));return[{...ft,components:At}]},(Be,qe)=>{if(T3(Z)){const ft=qe(F,Z.config,Z.validated);return Z.validated.preprocess.getOr(R)(ft)}else return qe(F)}),eE=(s,F,Z,ue)=>ye(Z,we=>n6(s,F,we,ue)),tE=(s,F)=>{let Z=!1;const ue=()=>Z,we=()=>{if(Z)throw new Error("Trying to use the same placeholder more than once: "+s);return Z=!0,F},Be=()=>F.fold((qe,ft)=>qe,(qe,ft)=>qe);return{name:x(s),required:Be,used:ue,replace:we}},nE=(s,F,Z,ue)=>{const we=Ue(ue,(qe,ft)=>tE(ft,qe)),Be=eE(s,F,Z,we);return We(we,qe=>{if(qe.used()===!1&&qe.required())throw new Error("Placeholder: "+qe.name()+` was not found in components list Namespace: `+s.getOr("none")+` -Components: `+JSON.stringify(F.components,null,2))}),Be},Sy=Zb.single,bw=Zb.multiple,xw=x(r5),C3=Ds.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),gp=mr("factory",{sketch:R}),J0=mr("schema",[]),ky=Sn("name"),Ty=Ln("pname","pname",Xi(s=>""),le()),nE=On("schema",()=>[Hr("preprocess")]),A3=mr("defaults",x({})),M3=mr("overrides",x({})),rE=Mi([gp,J0,ky,Ty,A3,M3]),oE=Mi([gp,J0,ky,A3,M3]),iE=Mi([gp,J0,ky,Ty,A3,M3]),aE=Mi([gp,nE,ky,Sn("unit"),Ty,A3,M3]),n6=s=>s.fold(I.some,I.none,I.some,I.some),E3=s=>{const F=Z=>Z.name;return s.fold(F,F,F,F)},sE=s=>s.fold(R,R,R,R),P3=(s,F)=>Z=>{const ue=cn("Converting part type",F,Z);return s(ue)},Sd=P3(C3.required,rE),Um=P3(C3.external,oE),Jp=P3(C3.optional,iE),R3=P3(C3.group,aE),L3=x("entirety");var r6=Object.freeze({__proto__:null,required:Sd,external:Um,optional:Jp,group:R3,asNamedPart:n6,name:E3,asCommon:sE,original:L3});const o5=(s,F,Z,ue)=>nl(F.defaults(s,Z,ue),Z,{uid:s.partUids[F.name]},F.overrides(s,Z,ue)),o6=(s,F,Z)=>{const ue={},we={};return q(Z,Be=>{Be.fold(qe=>{ue[qe.pname]=Sy(!0,(ft,gt,At)=>qe.factory.sketch(o5(ft,qe,gt,At)))},qe=>{const ft=F.parts[qe.name];we[qe.name]=x(qe.factory.sketch(o5(F,qe,ft[L3()]),ft))},qe=>{ue[qe.pname]=Sy(!1,(ft,gt,At)=>qe.factory.sketch(o5(ft,qe,gt,At)))},qe=>{ue[qe.pname]=bw(!0,(ft,gt,At)=>{const $t=ft[qe.name];return oe($t,on=>qe.factory.sketch(nl(qe.defaults(ft,on,At),on,qe.overrides(ft,on))))})})}),{internals:x(ue),externals:x(we)}},i5=(s,F)=>{const Z={};return q(F,ue=>{n6(ue).each(we=>{const Be=i6(s,we.pname);Z[we.name]=qe=>{const ft=cn("Part: "+we.name+" in "+s,Mi(we.schema),qe);return{...Be,config:qe,validated:ft}}})}),Z},i6=(s,F)=>({uiType:xw(),owner:s,name:F}),a6=(s,F,Z)=>({uiType:xw(),owner:s,name:F,config:Z,validated:{}}),lE=s=>ye(s,F=>F.fold(I.none,I.some,I.none,I.none).map(Z=>zo(Z.name,Z.schema.concat([WO(L3())]))).toArray()),cE=s=>oe(s,E3),I3=(s,F,Z)=>o6(s,F,Z),a5=(s,F,Z)=>tE(I.some(s),F,F.components,Z),Fo=(s,F,Z)=>{const ue=F.partUids[Z];return s.getSystem().getByUid(ue).toOptional()},Ph=(s,F,Z)=>Fo(s,F,Z).getOrDie("Could not find part: "+Z),s6=(s,F,Z)=>{const ue={},we=F.partUids,Be=s.getSystem();return q(Z,qe=>{ue[qe]=x(Be.getByUid(we[qe]))}),ue},s5=(s,F)=>{const Z=s.getSystem();return Ue(F.partUids,(ue,we)=>x(Z.getByUid(ue)))},_w=s=>ke(s.partUids),ww=(s,F,Z)=>{const ue={},we=F.partUids,Be=s.getSystem();return q(Z,qe=>{ue[qe]=x(Be.getByUid(we[qe]).getOrDie())}),ue},D3=(s,F)=>{const Z=cE(F);return hd(oe(Z,ue=>({key:ue,value:s+"-"+ue})))},Ow=s=>Ln("partUids","partUids",yu(F=>D3(F.uid,s)),le());var l6=Object.freeze({__proto__:null,generate:i5,generateOne:a6,schemas:lE,names:cE,substitutes:I3,components:a5,defaultUids:D3,defaultUidsSchema:Ow,getAllParts:s5,getAllPartNames:_w,getPart:Fo,getPartOrDie:Ph,getParts:s6,getPartsOrDie:ww});const c6=(s,F)=>(s.length>0?[zo("parts",s)]:[]).concat([Sn("uid"),mr("dom",{}),mr("components",[]),WO("originalSpec"),mr("debug.sketcher",{})]).concat(F),l5=(s,F,Z,ue,we)=>{const Be=c6(ue,we);return cn(s+" [SpecSchema]",_l(Be.concat(F)),Z)},c5=(s,F,Z,ue)=>{const we=u6(ue),Be=l5(s,F,we,[],[]);return Z(Be,we)},dv=(s,F,Z,ue,we)=>{const Be=u6(we),qe=lE(Z),ft=Ow(Z),gt=l5(s,F,Be,qe,[ft]),At=I3(s,gt,Z),$t=a5(s,gt,At.internals());return ue(gt,$t,Be,At.externals())},u5=s=>ht(s,"uid"),u6=s=>u5(s)?s:{...s,uid:j0("uid")},uE=s=>s.uid!==void 0,fE=_l([Sn("name"),Sn("factory"),Sn("configFields"),mr("apis",{}),mr("extraApis",{})]),f6=_l([Sn("name"),Sn("factory"),Sn("configFields"),Sn("partFields"),mr("apis",{}),mr("extraApis",{})]),Yh=s=>{const F=cn("Sketcher for "+s.name,fE,s),Z=Be=>c5(F.name,F.configFields,F.factory,Be),ue=Ue(F.apis,Cc),we=Ue(F.extraApis,(Be,qe)=>Xv(Be,qe));return{name:F.name,configFields:F.configFields,sketch:Z,...ue,...we}},ch=s=>{const F=cn("Sketcher for "+s.name,f6,s),Z=qe=>dv(F.name,F.configFields,F.partFields,F.factory,qe),ue=i5(F.name,F.partFields),we=Ue(F.apis,Cc),Be=Ue(F.extraApis,(qe,ft)=>Xv(qe,ft));return{name:F.name,partFields:F.partFields,configFields:F.configFields,sketch:Z,parts:ue,...we,...Be}},w2=s=>Fr("input")(s)&&ao(s,"type")!=="radio"||Fr("textarea")(s);var dE=Object.freeze({__proto__:null,getCurrent:(s,F,Z)=>F.find(s)});const f5=[Sn("find")],as=lf({fields:f5,name:"composing",apis:dE}),ND=["input","button","textarea","select"],d6=(s,F,Z)=>{(F.disabled()?B3:kw)(s,F)},h6=(s,F)=>F.useNative===!0&&X(ND,ar(s.element)),$D=s=>Go(s.element,"disabled"),Cy=s=>{fr(s.element,"disabled","disabled")},Sw=s=>{po(s.element,"disabled")},hE=s=>ao(s.element,"aria-disabled")==="true",pE=s=>{fr(s.element,"aria-disabled","true")},mE=s=>{fr(s.element,"aria-disabled","false")},B3=(s,F,Z)=>{F.disableClass.each(we=>{wl(s.element,we)}),(h6(s,F)?Cy:pE)(s),F.onDisabled(s)},kw=(s,F,Z)=>{F.disableClass.each(we=>{fc(s.element,we)}),(h6(s,F)?Sw:mE)(s),F.onEnabled(s)},p6=(s,F)=>h6(s,F)?$D(s):hE(s);var O2=Object.freeze({__proto__:null,enable:kw,disable:B3,isDisabled:p6,onLoad:d6,set:(s,F,Z,ue)=>{(ue?B3:kw)(s,F)}}),m6=Object.freeze({__proto__:null,exhibit:(s,F)=>Tf({classes:F.disabled()?F.disableClass.toArray():[]}),events:(s,F)=>hl([FO(cp(),(Z,ue)=>p6(Z,s)),A1(s,F,d6)])}),gE=[Pa("disabled",D),mr("useNative",!0),Hr("disableClass"),Ra("onDisabled"),Ra("onEnabled")];const ea=lf({fields:gE,name:"disabling",active:m6,apis:O2}),pe=(s,F,Z,ue)=>{const we=$d(s.element,"."+F.highlightClass);q(we,Be=>{te(ue,ft=>so(ft.element,Be))||(fc(Be,F.highlightClass),s.getSystem().getByDom(Be).each(ft=>{F.onDehighlight(s,ft),Sa(ft,D0())}))})},Ce=(s,F,Z)=>pe(s,F,Z,[]),Ye=(s,F,Z,ue)=>{$n(s,F,Z,ue)&&(fc(ue.element,F.highlightClass),F.onDehighlight(s,ue),Sa(ue,D0()))},st=(s,F,Z,ue)=>{pe(s,F,Z,[ue]),$n(s,F,Z,ue)||(wl(ue.element,F.highlightClass),F.onHighlight(s,ue),Sa(ue,Cm()))},St=(s,F,Z)=>{Ro(s,F).each(ue=>{st(s,F,Z,ue)})},Ut=(s,F,Z)=>{ai(s,F).each(ue=>{st(s,F,Z,ue)})},un=(s,F,Z,ue)=>{Nr(s,F,Z,ue).fold(we=>{throw we},we=>{st(s,F,Z,we)})},Tn=(s,F,Z,ue)=>{const we=To(s,F);ce(we,ue).each(qe=>{st(s,F,Z,qe)})},$n=(s,F,Z,ue)=>$l(ue.element,F.highlightClass),ur=(s,F,Z)=>aa(s.element,"."+F.highlightClass).bind(ue=>s.getSystem().getByDom(ue).toOptional()),Nr=(s,F,Z,ue)=>{const we=$d(s.element,"."+F.itemClass);return I.from(we[ue]).fold(()=>Hi.error(new Error("No element found with index "+ue)),s.getSystem().getByDom)},Ro=(s,F,Z)=>aa(s.element,"."+F.itemClass).bind(ue=>s.getSystem().getByDom(ue).toOptional()),ai=(s,F,Z)=>{const ue=$d(s.element,"."+F.itemClass);return(ue.length>0?I.some(ue[ue.length-1]):I.none()).bind(Be=>s.getSystem().getByDom(Be).toOptional())},Ko=(s,F,Z,ue)=>{const we=$d(s.element,"."+F.itemClass);return de(we,qe=>$l(qe,F.highlightClass)).bind(qe=>{const ft=ac(qe,ue,0,we.length-1);return s.getSystem().getByDom(we[ft]).toOptional()})},Qo=(s,F,Z)=>Ko(s,F,Z,-1),_i=(s,F,Z)=>Ko(s,F,Z,1),To=(s,F,Z)=>{const ue=$d(s.element,"."+F.itemClass);return It(oe(ue,we=>s.getSystem().getByDom(we).toOptional()))};var Zo=Object.freeze({__proto__:null,dehighlightAll:Ce,dehighlight:Ye,highlight:st,highlightFirst:St,highlightLast:Ut,highlightAt:un,highlightBy:Tn,isHighlighted:$n,getHighlighted:ur,getFirst:Ro,getLast:ai,getPrevious:Qo,getNext:_i,getCandidates:To}),Yi=[Sn("highlightClass"),Sn("itemClass"),Ra("onHighlight"),Ra("onDehighlight")];const ri=lf({fields:Yi,name:"highlighting",apis:Zo}),Ms=[8],al=[9],Gs=[13],td=[27],zu=[32],e1=[37],Ay=[38],My=[39],Zs=[40],Rh=(s,F,Z)=>{const ue=Se(s.slice(0,F)),we=Se(s.slice(F+1));return ce(ue.concat(we),Z)},Lh=(s,F,Z)=>{const ue=Se(s.slice(0,F));return ce(ue,Z)},jm=(s,F,Z)=>{const ue=s.slice(0,F),we=s.slice(F+1);return ce(we.concat(ue),Z)},Qm=(s,F,Z)=>{const ue=s.slice(F+1);return ce(ue,Z)},Za=s=>F=>{const Z=F.raw;return X(s,Z.which)},tu=s=>F=>_e(s,Z=>Z(F)),t1=s=>s.raw.shiftKey===!0,Tw=s=>s.raw.ctrlKey===!0,vp=E(t1),xa=(s,F)=>({matches:s,classification:F}),h5=(s,F)=>ce(s,ue=>ue.matches(F)).map(ue=>ue.classification),p5=(s,F,Z)=>{F.exists(we=>Z.exists(Be=>so(Be,we)))||Ri(s,Jg(),{prevFocus:F,newFocus:Z})},z3=()=>{const s=Z=>xd(Z.element);return{get:s,set:(Z,ue)=>{const we=s(Z);Z.getSystem().triggerFocus(ue,Z.element);const Be=s(Z);p5(Z,we,Be)}}},g6=()=>{const s=Z=>ri.getHighlighted(Z).map(ue=>ue.element);return{get:s,set:(Z,ue)=>{const we=s(Z);Z.getSystem().getByDom(ue).fold(v,qe=>{ri.highlight(Z,qe)});const Be=s(Z);p5(Z,we,Be)}}};var qb;(function(s){s.OnFocusMode="onFocus",s.OnEnterOrSpaceMode="onEnterOrSpace",s.OnApiMode="onApi"})(qb||(qb={}));const hv=(s,F,Z,ue,we)=>{const Be=()=>s.concat([mr("focusManager",z3()),ys("focusInside","onFocus",mt(At=>X(["onFocus","onEnterOrSpace","onApi"],At)?Hi.value(At):Hi.error("Invalid value for focusInside"))),Il("handler",gt),Il("state",F),Il("sendFocusIn",we)]),qe=(At,$t,on,yn,wn)=>{const Mn=on(At,$t,yn,wn);return h5(Mn,$t.event).bind(Xn=>Xn(At,$t,yn,wn))},gt={schema:Be,processKey:qe,toEvents:(At,$t)=>{const on=At.focusInside!==qb.OnFocusMode?I.none():we(At).map(Mn=>fo(km(),(Xn,Br)=>{Mn(Xn,At,$t),Br.stop()})),yn=(Mn,Xn)=>{const Br=Za(zu.concat(Gs))(Xn.event);At.focusInside===qb.OnEnterOrSpaceMode&&Br&&xm(Mn,Xn)&&we(At).each(or=>{or(Mn,At,$t),Xn.stop()})},wn=[fo(Bp(),(Mn,Xn)=>{qe(Mn,Xn,Z,At,$t).fold(()=>{yn(Mn,Xn)},Br=>{Xn.stop()})}),fo(P0(),(Mn,Xn)=>{qe(Mn,Xn,ue,At,$t).each(Br=>{Xn.stop()})})];return hl(on.toArray().concat(wn))}};return gt},v6=s=>{const F=[Hr("onEscape"),Hr("onEnter"),mr("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),mr("firstTabstop",0),mr("useTabstopAt",k),Hr("visibilitySelector")].concat([s]),Z=(or,Mr)=>{const kr=or.visibilitySelector.bind(yo=>Fs(Mr,yo)).getOr(Mr);return Ql(kr)>0},ue=(or,Mr)=>{const kr=$d(or.element,Mr.selector),yo=me(kr,Xr=>Z(Mr,Xr));return I.from(yo[Mr.firstTabstop])},we=(or,Mr)=>Mr.focusManager.get(or).bind(kr=>Fs(kr,Mr.selector)),Be=(or,Mr)=>Z(or,Mr)&&or.useTabstopAt(Mr),qe=(or,Mr,kr)=>{ue(or,Mr).each(yo=>{Mr.focusManager.set(or,yo)})},ft=(or,Mr,kr,yo,Xr)=>Xr(Mr,kr,No=>Be(yo,No)).fold(()=>yo.cyclic?I.some(!0):I.none(),No=>(yo.focusManager.set(or,No),I.some(!0))),gt=(or,Mr,kr,yo)=>{const Xr=$d(or.element,kr.selector);return we(or,kr).bind(No=>de(Xr,T(so,No)).bind(ho=>ft(or,Xr,ho,kr,yo)))},At=(or,Mr,kr)=>{const yo=kr.cyclic?Rh:Lh;return gt(or,Mr,kr,yo)},$t=(or,Mr,kr)=>{const yo=kr.cyclic?jm:Qm;return gt(or,Mr,kr,yo)},on=or=>dr(or).bind(hr).exists(Mr=>so(Mr,or)),yn=(or,Mr,kr)=>we(or,kr).filter(yo=>!kr.useTabstopAt(yo)).bind(yo=>(on(yo)?At:$t)(or,Mr,kr)),wn=(or,Mr,kr)=>kr.onEnter.bind(yo=>yo(or,Mr)),Mn=(or,Mr,kr)=>kr.onEscape.bind(yo=>yo(or,Mr)),Xn=x([xa(tu([t1,Za(al)]),At),xa(Za(al),$t),xa(tu([vp,Za(Gs)]),wn)]),Br=x([xa(Za(td),Mn),xa(Za(al),yn)]);return hv(F,Gf.init,Xn,Br,()=>I.some(qe))};var Cw=v6(On("cyclic",D)),Nq=v6(On("cyclic",k));const m5=(s,F,Z)=>(qv(s,Z,cp()),I.some(!0)),F3=(s,F,Z)=>w2(Z)&&Za(zu)(F.event)?I.none():m5(s,F,Z),Aw=(s,F)=>I.some(!0),vE=[mr("execute",F3),mr("useSpace",!1),mr("useEnter",!0),mr("useControlEnter",!1),mr("useDown",!1)],jD=(s,F,Z)=>Z.execute(s,F,s.element),QD=(s,F,Z,ue)=>{const we=Z.useSpace&&!w2(s.element)?zu:[],Be=Z.useEnter?Gs:[],qe=Z.useDown?Zs:[],ft=we.concat(Be).concat(qe);return[xa(Za(ft),jD)].concat(Z.useControlEnter?[xa(tu([Tw,Za(Gs)]),jD)]:[])},$q=(s,F,Z,ue)=>Z.useSpace&&!w2(s.element)?[xa(Za(zu),Aw)]:[];var HD=hv(vE,Gf.init,QD,$q,()=>I.none());const yE=()=>{const s=os();return kh({readState:()=>s.get().map(we=>({numRows:String(we.numRows),numColumns:String(we.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(we,Be)=>{s.set({numRows:we,numColumns:Be})},getNumRows:()=>s.get().map(we=>we.numRows),getNumColumns:()=>s.get().map(we=>we.numColumns)})};var Vq=Object.freeze({__proto__:null,flatgrid:yE,init:s=>s.state(s)});const ZD=s=>(F,Z,ue,we)=>{const Be=s(F.element);return g5(Be,F,Z,ue,we)},bE=(s,F)=>{const Z=Rb(s,F);return ZD(Z)},xE=(s,F)=>{const Z=Rb(F,s);return ZD(Z)},_E=s=>(F,Z,ue,we)=>g5(s,F,Z,ue,we),g5=(s,F,Z,ue,we)=>ue.focusManager.get(F).bind(qe=>s(F.element,qe,ue,we)).map(qe=>(ue.focusManager.set(F,qe),!0)),y6=_E,qD=_E,wE=_E,WD=s=>s.offsetWidth<=0&&s.offsetHeight<=0,YD=s=>!WD(s.dom),Uq=(s,F)=>de(s,F).map(Z=>({index:Z,candidates:s})),kg=(s,F,Z)=>{const ue=qe=>so(qe,F),we=$d(s,Z),Be=me(we,YD);return Uq(Be,ue)},XD=(s,F)=>de(s,Z=>so(F,Z)),GD=(s,F,Z,ue)=>{const we=Math.floor(F/Z),Be=F%Z;return ue(we,Be).bind(qe=>{const ft=qe.row*Z+qe.column;return ft>=0&&ftGD(s,F,ue,(Be,qe)=>{const gt=Be===Z-1?s.length-Be*ue:ue,At=ac(qe,we,0,gt-1);return I.some({row:Be,column:At})}),JD=(s,F,Z,ue,we)=>GD(s,F,ue,(Be,qe)=>{const ft=ac(Be,we,0,Z-1),At=ft===Z-1?s.length-ft*ue:ue,$t=Mc(qe,0,At-1);return I.some({row:ft,column:$t})}),jq=(s,F,Z,ue)=>KD(s,F,Z,ue,1),N3=(s,F,Z,ue)=>KD(s,F,Z,ue,-1),OE=(s,F,Z,ue)=>JD(s,F,Z,ue,-1),Qq=(s,F,Z,ue)=>JD(s,F,Z,ue,1),SE=[Sn("selector"),mr("execute",F3),yd("onEscape"),mr("captureTab",!1),$1()],b6=(s,F,Z)=>{aa(s.element,F.selector).each(ue=>{F.focusManager.set(s,ue)})},kE=(s,F)=>F.focusManager.get(s).bind(Z=>Fs(Z,F.selector)),Hq=(s,F,Z,ue)=>kE(s,Z).bind(we=>Z.execute(s,F,we)),x6=s=>(F,Z,ue,we)=>kg(F,Z,ue.selector).bind(Be=>s(Be.candidates,Be.index,we.getNumRows().getOr(ue.initSize.numRows),we.getNumColumns().getOr(ue.initSize.numColumns))),eB=(s,F,Z)=>Z.captureTab?I.some(!0):I.none(),Zq=(s,F,Z)=>Z.onEscape(s,F),tB=x6(N3),nB=x6(jq),rB=x6(OE),TE=x6(Qq),qq=x([xa(Za(e1),bE(tB,nB)),xa(Za(My),xE(tB,nB)),xa(Za(Ay),y6(rB)),xa(Za(Zs),qD(TE)),xa(tu([t1,Za(al)]),eB),xa(tu([vp,Za(al)]),eB),xa(Za(zu.concat(Gs)),Hq)]),Wq=x([xa(Za(td),Zq),xa(Za(zu),Aw)]);var Yq=hv(SE,yE,qq,Wq,()=>I.some(b6));const oB=(s,F,Z,ue,we)=>{const Be=ft=>ar(ft)==="button"&&ao(ft,"disabled")==="disabled",qe=(ft,gt,At)=>we(ft,gt,ue,0,At.length-1,At[gt],$t=>Be(At[$t])?qe(ft,$t,At):I.from(At[$t]));return kg(s,Z,F).bind(ft=>{const gt=ft.index,At=ft.candidates;return qe(gt,gt,At)})},Mw=(s,F,Z,ue)=>oB(s,F,Z,ue,(we,Be,qe,ft,gt,At,$t)=>{const on=Mc(Be+qe,ft,gt);return on===we?I.from(At):$t(on)}),v5=(s,F,Z,ue)=>oB(s,F,Z,ue,(we,Be,qe,ft,gt,At,$t)=>{const on=ac(Be,qe,ft,gt);return on===we?I.none():$t(on)}),Xq=[Sn("selector"),mr("getInitial",I.none),mr("execute",F3),yd("onEscape"),mr("executeOnMove",!1),mr("allowVertical",!0),mr("allowHorizontal",!0),mr("cycles",!0)],CE=(s,F)=>F.focusManager.get(s).bind(Z=>Fs(Z,F.selector)),AE=(s,F,Z)=>CE(s,Z).bind(ue=>Z.execute(s,F,ue)),iB=(s,F,Z)=>{F.getInitial(s).orThunk(()=>aa(s.element,F.selector)).each(ue=>{F.focusManager.set(s,ue)})},ME=(s,F,Z)=>(Z.cycles?v5:Mw)(s,Z.selector,F,-1),EE=(s,F,Z)=>(Z.cycles?v5:Mw)(s,Z.selector,F,1),PE=s=>(F,Z,ue,we)=>s(F,Z,ue,we).bind(()=>ue.executeOnMove?AE(F,Z,ue):I.some(!0)),aB=(s,F,Z)=>Z.onEscape(s,F),Gq=(s,F,Z,ue)=>{const we=[...Z.allowHorizontal?e1:[]].concat(Z.allowVertical?Ay:[]),Be=[...Z.allowHorizontal?My:[]].concat(Z.allowVertical?Zs:[]);return[xa(Za(we),PE(bE(ME,EE))),xa(Za(Be),PE(xE(ME,EE))),xa(Za(Gs),AE),xa(Za(zu),AE)]},Kq=x([xa(Za(zu),Aw),xa(Za(td),aB)]);var Jq=hv(Xq,Gf.init,Gq,Kq,()=>I.some(iB));const $3=(s,F,Z)=>I.from(s[F]).bind(ue=>I.from(ue[Z]).map(we=>({rowIndex:F,columnIndex:Z,cell:we}))),sB=(s,F,Z,ue)=>{const Be=s[F].length,qe=ac(Z,ue,0,Be-1);return $3(s,F,qe)},y5=(s,F,Z,ue)=>{const we=ac(Z,ue,0,s.length-1),Be=s[we].length,qe=Mc(F,0,Be-1);return $3(s,we,qe)},lB=(s,F,Z,ue)=>{const Be=s[F].length,qe=Mc(Z+ue,0,Be-1);return $3(s,F,qe)},RE=(s,F,Z,ue)=>{const we=Mc(Z+ue,0,s.length-1),Be=s[we].length,qe=Mc(F,0,Be-1);return $3(s,we,qe)},yp=(s,F,Z)=>sB(s,F,Z,1),eW=(s,F,Z)=>sB(s,F,Z,-1),cB=(s,F,Z)=>y5(s,Z,F,-1),uB=(s,F,Z)=>y5(s,Z,F,1),tW=(s,F,Z)=>lB(s,F,Z,-1),fB=(s,F,Z)=>lB(s,F,Z,1),dB=(s,F,Z)=>RE(s,Z,F,-1),nW=(s,F,Z)=>RE(s,Z,F,1),rW=[zo("selectors",[Sn("row"),Sn("cell")]),mr("cycles",!0),mr("previousSelector",I.none),mr("execute",F3)],oW=(s,F,Z)=>{F.previousSelector(s).orThunk(()=>{const we=F.selectors;return aa(s.element,we.cell)}).each(we=>{F.focusManager.set(s,we)})},iW=(s,F,Z)=>xd(s.element).bind(ue=>Z.execute(s,F,ue)),hB=(s,F)=>oe(s,Z=>$d(Z,F.selectors.cell)),_6=(s,F)=>(Z,ue,we)=>{const Be=we.cycles?s:F;return Fs(ue,we.selectors.row).bind(qe=>{const ft=$d(qe,we.selectors.cell);return XD(ft,ue).bind(gt=>{const At=$d(Z,we.selectors.row);return XD(At,qe).bind($t=>{const on=hB(At,we);return Be(on,$t,gt).map(yn=>yn.cell)})})})},pB=_6(eW,tW),LE=_6(yp,fB),mB=_6(cB,dB),gB=_6(uB,nW),aW=x([xa(Za(e1),bE(pB,LE)),xa(Za(My),xE(pB,LE)),xa(Za(Ay),y6(mB)),xa(Za(Zs),qD(gB)),xa(Za(zu.concat(Gs)),iW)]),sW=x([xa(Za(zu),Aw)]);var lW=hv(rW,Gf.init,aW,sW,()=>I.some(oW));const cW=[Sn("selector"),mr("execute",F3),mr("moveOnTab",!1)],IE=(s,F,Z)=>Z.focusManager.get(s).bind(ue=>Z.execute(s,F,ue)),vB=(s,F,Z)=>{aa(s.element,F.selector).each(ue=>{F.focusManager.set(s,ue)})},Wb=(s,F,Z)=>v5(s,Z.selector,F,-1),DE=(s,F,Z)=>v5(s,Z.selector,F,1),yB=(s,F,Z,ue)=>Z.moveOnTab?wE(Wb)(s,F,Z,ue):I.none(),bB=(s,F,Z,ue)=>Z.moveOnTab?wE(DE)(s,F,Z,ue):I.none(),uW=x([xa(Za(Ay),wE(Wb)),xa(Za(Zs),wE(DE)),xa(tu([t1,Za(al)]),yB),xa(tu([vp,Za(al)]),bB),xa(Za(Gs),IE),xa(Za(zu),IE)]),V3=x([xa(Za(zu),Aw)]);var fW=hv(cW,Gf.init,uW,V3,()=>I.some(vB));const dW=[yd("onSpace"),yd("onEnter"),yd("onShiftEnter"),yd("onLeft"),yd("onRight"),yd("onTab"),yd("onShiftTab"),yd("onUp"),yd("onDown"),yd("onEscape"),mr("stopSpaceKeyup",!1),Hr("focusIn")],xB=(s,F,Z)=>[xa(Za(zu),Z.onSpace),xa(tu([vp,Za(Gs)]),Z.onEnter),xa(tu([t1,Za(Gs)]),Z.onShiftEnter),xa(tu([t1,Za(al)]),Z.onShiftTab),xa(tu([vp,Za(al)]),Z.onTab),xa(Za(Ay),Z.onUp),xa(Za(Zs),Z.onDown),xa(Za(e1),Z.onLeft),xa(Za(My),Z.onRight),xa(Za(zu),Z.onSpace)],hW=(s,F,Z)=>[...Z.stopSpaceKeyup?[xa(Za(zu),Aw)]:[],xa(Za(td),Z.onEscape)];var pW=hv(dW,Gf.init,xB,hW,s=>s.focusIn);const mW=Cw.schema(),_B=Nq.schema(),BE=Jq.schema(),zE=Yq.schema(),gW=lW.schema(),S2=HD.schema(),wB=fW.schema(),OB=pW.schema();var vW=Object.freeze({__proto__:null,acyclic:mW,cyclic:_B,flow:BE,flatgrid:zE,matrix:gW,execution:S2,menu:wB,special:OB});const yW=s=>pt(s,"setGridSize"),Li=md({branchKey:"mode",branches:vW,name:"keying",active:{events:(s,F)=>s.handler.toEvents(s,F)},apis:{focusIn:(s,F,Z)=>{F.sendFocusIn(F).fold(()=>{s.getSystem().triggerFocus(s.element,s.element)},ue=>{ue(s,F,Z)})},setGridSize:(s,F,Z,ue,we)=>{yW(Z)?Z.setGridSize(ue,we):console.error("Layout does not support setGridSize")}},state:Vq}),U3=(s,F)=>{bg(()=>{m2(s,F,()=>oe(F,s.getSystem().build))},s.element)},FE=(s,F)=>{bg(()=>{ZS(s,F,()=>et(s.element,F,s.getSystem().buildOrPatch))},s.element)},NE=(s,F,Z,ue)=>{y3(F);const we=Qe(s.element,Z,ue,s.getSystem().buildOrPatch);QS(s,we),s.syncComponents()},Ey=(s,F,Z)=>{const ue=s.getSystem().build(Z);Vb(s,ue,F)},k2=(s,F,Z,ue)=>{cv(F),Ey(s,(we,Be)=>Oc(we,Be,Z),ue)},bW=(s,F,Z,ue)=>(F.reuseDom?FE:U3)(s,ue),xW=(s,F,Z,ue)=>{Ey(s,Pu,ue)},SB=(s,F,Z,ue)=>{Ey(s,vh,ue)},Yb=(s,F,Z,ue)=>{const we=j3(s);ce(we,qe=>so(ue.element,qe.element)).each(cv)},j3=(s,F)=>s.components(),kB=(s,F,Z,ue,we)=>{const Be=j3(s);return I.from(Be[ue]).map(qe=>(we.fold(()=>cv(qe),ft=>{(F.reuseDom?NE:k2)(s,qe,ue,ft)}),qe))};var TB=Object.freeze({__proto__:null,append:xW,prepend:SB,remove:Yb,replaceAt:kB,replaceBy:(s,F,Z,ue,we)=>{const Be=j3(s);return de(Be,ue).bind(qe=>kB(s,F,Z,qe,we))},set:bW,contents:j3});const da=lf({fields:[ds("reuseDom",!0)],name:"replacing",apis:TB}),$E=(s,F)=>{const Z=hl(F);return lf({fields:[Sn("enabled")],name:s,active:{events:x(Z)}})},Ta=(s,F)=>{const Z=$E(s,F);return{key:s,value:{config:{},me:Z,configAsRaw:x({}),initialConfig:{},state:Gf}}},CB=(s,F)=>{F.ignore||(bd(s.element),F.onFocus(s))};var w6=Object.freeze({__proto__:null,focus:CB,blur:(s,F)=>{F.ignore||a0(s.element)},isFocused:s=>dy(s.element)}),MB=Object.freeze({__proto__:null,exhibit:(s,F)=>{const Z=F.ignore?{}:{attributes:{tabindex:"-1"}};return Tf(Z)},events:s=>hl([fo(km(),(F,Z)=>{CB(F,s),Z.stop()})].concat(s.stopMousedown?[fo(Oh(),(F,Z)=>{Z.event.prevent()})]:[]))}),wW=[Ra("onFocus"),mr("stopMousedown",!1),mr("ignore",!1)];const oa=lf({fields:wW,name:"focusing",active:MB,apis:w6}),EB=s=>({init:()=>{const Z=xi(s);return{get:()=>Z.get(),set:ft=>Z.set(ft),clear:()=>Z.set(s),readState:()=>Z.get()}}}),PB=(s,F,Z)=>{const ue=F.aria;ue.update(s,ue,Z.get())},RB=(s,F,Z)=>{F.toggleClass.each(ue=>{Z.get()?wl(s.element,ue):fc(s.element,ue)})},b5=(s,F,Z,ue)=>{const we=Z.get();Z.set(ue),RB(s,F,Z),PB(s,F,Z),we!==ue&&F.onToggled(s,ue)},O6=(s,F,Z)=>{b5(s,F,Z,!Z.get())},OW=(s,F,Z)=>{b5(s,F,Z,!0)},SW=(s,F,Z)=>{b5(s,F,Z,!1)},kW=(s,F,Z)=>Z.get(),LB=(s,F,Z)=>{b5(s,F,Z,F.selected)};var IB=Object.freeze({__proto__:null,onLoad:LB,toggle:O6,isOn:kW,on:OW,off:SW,set:b5}),DB=Object.freeze({__proto__:null,exhibit:()=>Tf({}),events:(s,F)=>{const Z=C1(s,F,O6),ue=A1(s,F,LB);return hl(ve([s.toggleOnExecute?[Z]:[],[ue]]))}});const x5=(s,F,Z)=>{fr(s.element,"aria-pressed",Z),F.syncWithExpanded&&S6(s,F,Z)},TW=(s,F,Z)=>{fr(s.element,"aria-selected",Z)},_5=(s,F,Z)=>{fr(s.element,"aria-checked",Z)},S6=(s,F,Z)=>{fr(s.element,"aria-expanded",Z)};var BB=[mr("selected",!1),Hr("toggleClass"),mr("toggleOnExecute",!0),Ra("onToggled"),ys("aria",{mode:"none"},xn("mode",{pressed:[mr("syncWithExpanded",!1),Il("update",x5)],checked:[Il("update",_5)],expanded:[Il("update",S6)],selected:[Il("update",TW)],none:[Il("update",v)]}))];const za=lf({fields:BB,name:"toggling",active:DB,apis:IB,state:EB(!1)}),zB=()=>{const s=(F,Z)=>{Z.stop(),Fp(F)};return[fo(R0(),s),fo(up(),s),Am(_m()),Am(Oh())]},k6=s=>{const F=Z=>$p((ue,we)=>{Z(ue),we.stop()});return hl(ve([s.map(F).toArray(),zB()]))},UE="alloy.item-hover",FB="alloy.item-focus",jE="alloy.item-toggled",NB=s=>{(xd(s.element).isNone()||oa.isFocused(s))&&(oa.isFocused(s)||oa.focus(s),Ri(s,UE,{item:s}))},$B=s=>{Ri(s,FB,{item:s})},VB=(s,F)=>{Ri(s,jE,{item:s,state:F})},w5=x(UE),QE=x(FB),HE=x(jE),CW=s=>s.role.fold(()=>s.toggling.map(F=>F.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),R),AW=(s,F)=>({aria:{mode:F?"selected":"checked"},...Ne(s,(Z,ue)=>ue!=="exclusive"),onToggled:(Z,ue)=>{u(s.onToggled)&&s.onToggled(Z,ue),VB(Z,ue)}}),MW=s=>({dom:s.dom,domModification:{...s.domModification,attributes:{role:CW(s),...s.domModification.attributes,"aria-haspopup":s.hasSubmenu,...s.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:Vm.augment(s.itemBehaviours,[s.toggling.fold(za.revoke,F=>za.config(AW(F,s.role.exists(Z=>Z==="option")))),oa.config({ignore:s.ignoreFocus,stopMousedown:s.ignoreFocus,onFocus:F=>{$B(F)}}),Li.config({mode:"execution"}),hi.config({store:{mode:"memory",initialValue:s.data}}),Ta("item-type-events",[...zB(),fo(Om(),NB),fo(fb(),oa.focus)])]),components:s.components,eventOrder:s.eventOrder}),EW=[Sn("data"),Sn("components"),Sn("dom"),mr("hasSubmenu",!1),Hr("toggling"),Hr("role"),Vm.field("itemBehaviours",[za,oa,Li,hi]),mr("ignoreFocus",!1),mr("domModification",{}),Il("builder",MW),mr("eventOrder",{})],UB=s=>({dom:s.dom,components:s.components,events:hl([I_(fb())])}),jB=[Sn("dom"),Sn("components"),Il("builder",UB)],ZE=x("item-widget"),qE=x([Sd({name:"widget",overrides:s=>({behaviours:Do([hi.config({store:{mode:"manual",getValue:F=>s.data,setValue:v}})])})})]),PW=s=>{const F=I3(ZE(),s,qE()),Z=a5(ZE(),s,F.internals()),ue=Be=>Fo(Be,s,"widget").map(qe=>(Li.focusIn(qe),qe)),we=(Be,qe)=>w2(qe.event.target)?I.none():(()=>(s.autofocus&&qe.setSource(Be.element),I.none()))();return{dom:s.dom,components:Z,domModification:s.domModification,events:hl([$p((Be,qe)=>{ue(Be).each(ft=>{qe.stop()})}),fo(Om(),NB),fo(fb(),(Be,qe)=>{s.autofocus?ue(Be):oa.focus(Be)})]),behaviours:Vm.augment(s.widgetBehaviours,[hi.config({store:{mode:"memory",initialValue:s.data}}),oa.config({ignore:s.ignoreFocus,onFocus:Be=>{$B(Be)}}),Li.config({mode:"special",focusIn:s.autofocus?Be=>{ue(Be)}:Nl(),onLeft:we,onRight:we,onEscape:(Be,qe)=>!oa.isFocused(Be)&&!s.autofocus?(oa.focus(Be),I.some(!0)):(s.autofocus&&qe.setSource(Be.element),I.none())})])}},RW=[Sn("uid"),Sn("data"),Sn("components"),Sn("dom"),mr("autofocus",!1),mr("ignoreFocus",!1),Vm.field("widgetBehaviours",[hi,oa,Li]),mr("domModification",{}),Ow(qE()),Il("builder",PW)],LW=xn("type",{widget:RW,item:EW,separator:jB}),IW=(s,F)=>({mode:"flatgrid",selector:"."+s.markers.item,initSize:{numColumns:F.initSize.numColumns,numRows:F.initSize.numRows},focusManager:s.focusManager}),QB=(s,F)=>({mode:"matrix",selectors:{row:F.rowSelector,cell:"."+s.markers.item},previousSelector:F.previousSelector,focusManager:s.focusManager}),DW=(s,F)=>({mode:"menu",selector:"."+s.markers.item,moveOnTab:F.moveOnTab,focusManager:s.focusManager}),BW=x([R3({factory:{sketch:s=>{const F=cn("menu.spec item",LW,s);return F.builder(F)}},name:"items",unit:"item",defaults:(s,F)=>ht(F,"uid")?F:{...F,uid:j0("item")},overrides:(s,F)=>({type:F.type,ignoreFocus:s.fakeFocus,domModification:{classes:[s.markers.item]}})})]),zW=x([Io("role"),Sn("value"),Sn("items"),Sn("dom"),Sn("components"),mr("eventOrder",{}),Ef("menuBehaviours",[ri,hi,as,Li]),ys("movement",{mode:"menu",moveOnTab:!0},xn("mode",{grid:[$1(),Il("config",IW)],matrix:[Il("config",QB),Sn("rowSelector"),mr("previousSelector",I.none)],menu:[mr("moveOnTab",!0),Il("config",DW)]})),W_(),mr("fakeFocus",!1),mr("focusManager",z3()),Ra("onHighlight"),Ra("onDehighlight"),mr("showMenuRole",!0)]),HB=x("alloy.menu-focus"),FW=(s,F)=>{const Z=$d(s.element,'[role="menuitemradio"][aria-checked="true"]');q(Z,ue=>{so(ue,F.element)||s.getSystem().getByDom(ue).each(we=>{za.off(we)})})},Ew=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,markers:s.markers,behaviours:Pf(s.menuBehaviours,[ri.config({highlightClass:s.markers.selectedItem,itemClass:s.markers.item,onHighlight:s.onHighlight,onDehighlight:s.onDehighlight}),hi.config({store:{mode:"memory",initialValue:s.value}}),as.config({find:I.some}),Li.config(s.movement.config(s,s.movement))]),events:hl([fo(QE(),(we,Be)=>{const qe=Be.event;we.getSystem().getByDom(qe.target).each(ft=>{ri.highlight(we,ft),Be.stop(),Ri(we,HB(),{menu:we,item:ft})})}),fo(w5(),(we,Be)=>{const qe=Be.event.item;ri.highlight(we,qe)}),fo(HE(),(we,Be)=>{const{item:qe,state:ft}=Be.event;ft&&ao(qe.element,"role")==="menuitemradio"&&FW(we,qe)})]),components:F,eventOrder:s.eventOrder,...s.showMenuRole?{domModification:{attributes:{role:s.role.getOr("menu")}}}:{}}),Pw=ch({name:"Menu",configFields:zW(),partFields:BW(),factory:Ew}),NW=s=>Ze(s,(F,Z)=>({k:F,v:Z})),T2=(s,F,Z,ue)=>Ge(Z,ue).bind(we=>Ge(s,we).bind(Be=>{const qe=T2(s,F,Z,Be);return I.some([Be].concat(qe))})).getOr([]),ZB=(s,F)=>{const Z={};We(s,(qe,ft)=>{q(qe,gt=>{Z[gt]=ft})});const ue=F,we=NW(F),Be=Ue(we,(qe,ft)=>[ft].concat(T2(Z,ue,we,ft)));return Ue(Z,qe=>Ge(Be,qe).getOr([qe]))},$W=()=>{const s=xi({}),F=xi({}),Z=xi({}),ue=os(),we=xi({}),Be=()=>{s.set({}),F.set({}),Z.set({}),ue.clear()},qe=()=>ue.get().isNone(),ft=(Xr,No)=>{F.set({...F.get(),[Xr]:{type:"prepared",menu:No}})},gt=(Xr,No,Jo,ho)=>{ue.set(Xr),s.set(Jo),F.set(No),we.set(ho);const Ci=ZB(ho,Jo);Z.set(Ci)},At=Xr=>nt(s.get(),(No,Jo)=>No===Xr),$t=(Xr,No,Jo)=>Xn(Xr).bind(ho=>At(Xr).bind(Ci=>No(Ci).map(mi=>({triggeredMenu:ho,triggeringItem:mi,triggeringPath:Jo})))),on=(Xr,No)=>{const Jo=me(or(Xr).toArray(),ho=>Xn(ho).isSome());return Ge(Z.get(),Xr).bind(ho=>{const Ci=Se(Jo.concat(ho)),mi=ye(Ci,(qi,Fi)=>$t(qi,No,Ci.slice(0,Fi+1)).fold(()=>wt(ue.get(),qi)?[]:[I.none()],Os=>[I.some(Os)]));return qt(mi)})},yn=Xr=>Ge(s.get(),Xr).map(No=>{const Jo=Ge(Z.get(),Xr).getOr([]);return[No].concat(Jo)}),wn=Xr=>Ge(Z.get(),Xr).bind(No=>No.length>1?I.some(No.slice(1)):I.none()),Mn=Xr=>Ge(Z.get(),Xr),Xn=Xr=>Br(Xr).bind(Xb),Br=Xr=>Ge(F.get(),Xr),or=Xr=>Ge(s.get(),Xr);return{setMenuBuilt:ft,setContents:gt,expand:yn,refresh:Mn,collapse:wn,lookupMenu:Br,lookupItem:or,otherMenus:Xr=>{const No=we.get();return Te(ke(No),Xr)},getPrimary:()=>ue.get().bind(Xn),getMenus:()=>F.get(),clear:Be,isClear:qe,getTriggeringPath:on}},Xb=s=>s.type==="prepared"?I.some(s.menu):I.none(),qB={init:$W,extractPreparedMenu:Xb},WB=fi("tiered-menu-item-highlight"),Tg=fi("tiered-menu-item-dehighlight");var Xh;(function(s){s[s.HighlightMenuAndItem=0]="HighlightMenuAndItem",s[s.HighlightJustMenu=1]="HighlightJustMenu",s[s.HighlightNone=2]="HighlightNone"})(Xh||(Xh={}));const YB=(s,F)=>{const Z=os(),ue=(Ho,wi,_a)=>Ue(_a,(Ki,ji)=>{const ga=()=>Pw.sketch({...Ki,value:ji,markers:s.markers,fakeFocus:s.fakeFocus,onHighlight:(kl,Ns)=>{Ri(kl,WB,{menuComp:kl,itemComp:Ns})},onDehighlight:(kl,Ns)=>{Ri(kl,Tg,{menuComp:kl,itemComp:Ns})},focusManager:s.fakeFocus?g6():z3()});return ji===wi?{type:"prepared",menu:Ho.getSystem().build(ga())}:{type:"notbuilt",nbMenu:ga}}),we=qB.init(),Be=Ho=>{const wi=ue(Ho,s.data.primary,s.data.menus),_a=gt();return we.setContents(s.data.primary,wi,s.data.expansions,_a),we.getPrimary()},qe=Ho=>hi.getValue(Ho).value,ft=(Ho,wi,_a)=>Oe(wi,Ki=>{if(!Ki.getSystem().isConnected())return I.none();const ji=ri.getCandidates(Ki);return ce(ji,ga=>qe(ga)===_a)}),gt=Ho=>Ue(s.data.menus,(wi,_a)=>ye(wi.items,Ki=>Ki.type==="separator"?[]:[Ki.data.value])),At=ri.highlight,$t=(Ho,wi)=>{At(Ho,wi),ri.getHighlighted(wi).orThunk(()=>ri.getFirst(wi)).each(_a=>{s.fakeFocus?ri.highlight(wi,_a):qv(Ho,_a.element,fb())})},on=(Ho,wi)=>It(oe(wi,_a=>Ho.lookupMenu(_a).bind(Ki=>Ki.type==="prepared"?I.some(Ki.menu):I.none()))),yn=(Ho,wi,_a)=>{const Ki=on(wi,wi.otherMenus(_a));q(Ki,ji=>{th(ji.element,[s.markers.backgroundMenu]),s.stayInDom||da.remove(Ho,ji)})},wn=Ho=>Z.get().getOrThunk(()=>{const wi={},_a=$d(Ho.element,`.${s.markers.item}`),Ki=me(_a,ji=>ao(ji,"aria-haspopup")==="true");return q(Ki,ji=>{Ho.getSystem().getByDom(ji).each(ga=>{const kl=qe(ga);wi[kl]=ga})}),Z.set(wi),wi}),Mn=(Ho,wi)=>{const _a=wn(Ho);We(_a,(Ki,ji)=>{const ga=X(wi,ji);fr(Ki.element,"aria-expanded",ga)})},Xn=(Ho,wi,_a)=>I.from(_a[0]).bind(Ki=>wi.lookupMenu(Ki).bind(ji=>{if(ji.type==="notbuilt")return I.none();{const ga=ji.menu,kl=on(wi,_a.slice(1));return q(kl,Ns=>{wl(Ns.element,s.markers.backgroundMenu)}),Er(ga.element)||da.append(Ho,na(ga)),th(ga.element,[s.markers.backgroundMenu]),$t(Ho,ga),yn(Ho,wi,_a),I.some(ga)}}));let Br;(function(Ho){Ho[Ho.HighlightSubmenu=0]="HighlightSubmenu",Ho[Ho.HighlightParent=1]="HighlightParent"})(Br||(Br={}));const or=(Ho,wi,_a)=>{if(_a.type==="notbuilt"){const Ki=Ho.getSystem().build(_a.nbMenu());return we.setMenuBuilt(wi,Ki),Ki}else return _a.menu},Mr=(Ho,wi,_a=Br.HighlightSubmenu)=>{if(wi.hasConfigured(ea)&&ea.isDisabled(wi))return I.some(wi);{const Ki=qe(wi);return we.expand(Ki).bind(ji=>(Mn(Ho,ji),I.from(ji[0]).bind(ga=>we.lookupMenu(ga).bind(kl=>{const Ns=or(Ho,ga,kl);return Er(Ns.element)||da.append(Ho,na(Ns)),s.onOpenSubmenu(Ho,wi,Ns,Se(ji)),_a===Br.HighlightSubmenu?(ri.highlightFirst(Ns),Xn(Ho,we,ji)):(ri.dehighlightAll(Ns),I.some(wi))}))))}},kr=(Ho,wi)=>{const _a=qe(wi);return we.collapse(_a).bind(Ki=>(Mn(Ho,Ki),Xn(Ho,we,Ki).map(ji=>(s.onCollapseMenu(Ho,wi,ji),ji))))},yo=(Ho,wi)=>{const _a=qe(wi);return we.refresh(_a).bind(Ki=>(Mn(Ho,Ki),Xn(Ho,we,Ki)))},Xr=(Ho,wi)=>w2(wi.element)?I.none():Mr(Ho,wi,Br.HighlightSubmenu),No=(Ho,wi)=>w2(wi.element)?I.none():kr(Ho,wi),Jo=(Ho,wi)=>kr(Ho,wi).orThunk(()=>s.onEscape(Ho,wi).map(()=>Ho)),ho=Ho=>(wi,_a)=>Fs(_a.getSource(),`.${s.markers.item}`).bind(Ki=>wi.getSystem().getByDom(Ki).toOptional().bind(ji=>Ho(wi,ji).map(k))),Ci=hl([fo(HB(),(Ho,wi)=>{const _a=wi.event.item;we.lookupItem(qe(_a)).each(()=>{const Ki=wi.event.menu;ri.highlight(Ho,Ki);const ji=qe(wi.event.item);we.refresh(ji).each(ga=>yn(Ho,we,ga))})}),$p((Ho,wi)=>{const _a=wi.event.target;Ho.getSystem().getByDom(_a).each(Ki=>{qe(Ki).indexOf("collapse-item")===0&&kr(Ho,Ki),Mr(Ho,Ki,Br.HighlightSubmenu).fold(()=>{s.onExecute(Ho,Ki)},v)})}),Ll((Ho,wi)=>{Be(Ho).each(_a=>{da.append(Ho,na(_a)),s.onOpenMenu(Ho,_a),s.highlightOnOpen===Xh.HighlightMenuAndItem?$t(Ho,_a):s.highlightOnOpen===Xh.HighlightJustMenu&&At(Ho,_a)})}),fo(WB,(Ho,wi)=>{s.onHighlightItem(Ho,wi.event.menuComp,wi.event.itemComp)}),fo(Tg,(Ho,wi)=>{s.onDehighlightItem(Ho,wi.event.menuComp,wi.event.itemComp)}),...s.navigateOnHover?[fo(w5(),(Ho,wi)=>{const _a=wi.event.item;yo(Ho,_a),Mr(Ho,_a,Br.HighlightParent),s.onHover(Ho,_a)})]:[]]),mi=Ho=>ri.getHighlighted(Ho).bind(ri.getHighlighted),qi=Ho=>{mi(Ho).each(wi=>{kr(Ho,wi)})},Fi=Ho=>{we.getPrimary().each(wi=>{$t(Ho,wi)})},Os=Ho=>I.from(Ho.components()[0]).filter(wi=>ao(wi.element,"role")==="menu"),Ha={collapseMenu:qi,highlightPrimary:Fi,repositionMenus:Ho=>{we.getPrimary().bind(_a=>mi(Ho).bind(Ki=>{const ji=qe(Ki),ga=ot(we.getMenus()),kl=It(oe(ga,qB.extractPreparedMenu));return we.getTriggeringPath(ji,Ns=>ft(Ho,kl,Ns))}).map(Ki=>({primary:_a,triggeringPath:Ki}))).fold(()=>{Os(Ho).each(_a=>{s.onRepositionMenu(Ho,_a,[])})},({primary:_a,triggeringPath:Ki})=>{s.onRepositionMenu(Ho,_a,Ki)})}};return{uid:s.uid,dom:s.dom,markers:s.markers,behaviours:Pf(s.tmenuBehaviours,[Li.config({mode:"special",onRight:ho(Xr),onLeft:ho(No),onEscape:ho(Jo),focusIn:(Ho,wi)=>{we.getPrimary().each(_a=>{qv(Ho,_a.element,fb())})}}),ri.config({highlightClass:s.markers.selectedMenu,itemClass:s.markers.menu}),as.config({find:Ho=>ri.getHighlighted(Ho)}),da.config({})]),eventOrder:s.eventOrder,apis:Ha,events:Ci}},XB=x("collapse-item"),VW=(s,F,Z)=>({primary:s,menus:F,expansions:Z}),T6=(s,F)=>({primary:s,menus:wh(s,F),expansions:{}}),GB=s=>({value:fi(XB()),meta:{text:s}}),Rw=Yh({name:"TieredMenu",configFields:[i0("onExecute"),i0("onEscape"),Zh("onOpenMenu"),Zh("onOpenSubmenu"),Ra("onRepositionMenu"),Ra("onCollapseMenu"),mr("highlightOnOpen",Xh.HighlightMenuAndItem),zo("data",[Sn("primary"),Sn("menus"),Sn("expansions")]),mr("fakeFocus",!1),Ra("onHighlightItem"),Ra("onDehighlightItem"),Ra("onHover"),U0(),Sn("dom"),mr("navigateOnHover",!0),mr("stayInDom",!1),Ef("tmenuBehaviours",[Li,ri,as,da]),mr("eventOrder",{})],apis:{collapseMenu:(s,F)=>{s.collapseMenu(F)},highlightPrimary:(s,F)=>{s.highlightPrimary(F)},repositionMenus:(s,F)=>{s.repositionMenus(F)}},factory:YB,extraApis:{tieredData:VW,singleData:T6,collapseItem:GB}}),UW=(s,F,Z,ue,we)=>{const Be=()=>s.lazySink(F),qe=ue.type==="horizontal"?{layouts:{onLtr:()=>X1(),onRtl:()=>Zp()}}:{},ft=At=>At.length===2,gt=At=>ft(At)?qe:{};return Rw.sketch({dom:{tag:"div"},data:ue.data,markers:ue.menu.markers,highlightOnOpen:ue.menu.highlightOnOpen,fakeFocus:ue.menu.fakeFocus,onEscape:()=>(hs.close(F),s.onEscape.map(At=>At(F)),I.some(!0)),onExecute:()=>I.some(!0),onOpenMenu:(At,$t)=>{ed.positionWithinBounds(Be().getOrDie(),$t,Z,we())},onOpenSubmenu:(At,$t,on,yn)=>{const wn=Be().getOrDie();ed.position(wn,on,{anchor:{type:"submenu",item:$t,...gt(yn)}})},onRepositionMenu:(At,$t,on)=>{const yn=Be().getOrDie();ed.positionWithinBounds(yn,$t,Z,we()),q(on,wn=>{const Mn=gt(wn.triggeringPath);ed.position(yn,wn.triggeredMenu,{anchor:{type:"submenu",item:wn.triggeringItem,...Mn}})})}})},C6=(s,F)=>{const Z=(yn,wn)=>s.getRelated(yn).exists(Xn=>Vc(Xn,wn)),ue=(yn,wn)=>{hs.setContent(yn,wn)},we=(yn,wn,Mn)=>{const Xn=I.none;Be(yn,wn,Mn,Xn)},Be=(yn,wn,Mn,Xn)=>{const Br=s.lazySink(yn).getOrDie();hs.openWhileCloaked(yn,wn,()=>ed.positionWithinBounds(Br,yn,Mn,Xn())),hi.setValue(yn,I.some({mode:"position",config:Mn,getBounds:Xn}))},qe=(yn,wn,Mn)=>{ft(yn,wn,Mn,I.none)},ft=(yn,wn,Mn,Xn)=>{const Br=UW(s,yn,wn,Mn,Xn);hs.open(yn,Br),hi.setValue(yn,I.some({mode:"menu",menu:Br}))},gt=yn=>{hs.isOpen(yn)&&(hi.setValue(yn,I.none()),hs.close(yn))},At=yn=>hs.getState(yn),$t=yn=>{hs.isOpen(yn)&&hi.getValue(yn).each(wn=>{switch(wn.mode){case"menu":hs.getState(yn).each(Rw.repositionMenus);break;case"position":const Mn=s.lazySink(yn).getOrDie();ed.positionWithinBounds(Mn,yn,wn.config,wn.getBounds());break}})},on={setContent:ue,showAt:we,showWithinBounds:Be,showMenuAt:qe,showMenuWithinBounds:ft,hide:gt,getContent:At,reposition:$t,isOpen:hs.isOpen};return{uid:s.uid,dom:s.dom,behaviours:Pf(s.inlineBehaviours,[hs.config({isPartOf:(yn,wn,Mn)=>Vc(wn,Mn)||Z(yn,Mn),getAttachPoint:yn=>s.lazySink(yn).getOrDie(),onOpen:yn=>{s.onShow(yn)},onClose:yn=>{s.onHide(yn)}}),hi.config({store:{mode:"memory",initialValue:I.none()}}),Wu.config({channels:{...uv({isExtraPart:F.isExtraPart,...s.fireDismissalEventInstead.map(yn=>({fireEventInstead:{event:yn.event}})).getOr({})}),..._3({...s.fireRepositionEventInstead.map(yn=>({fireEventInstead:{event:yn.event}})).getOr({}),doReposition:$t})}})]),eventOrder:s.eventOrder,apis:on}},hc=Yh({name:"InlineView",configFields:[Sn("lazySink"),Ra("onShow"),Ra("onHide"),Ui("onEscape"),Ef("inlineBehaviours",[hs,hi,Wu]),Pi("fireDismissalEventInstead",[mr("event",I0())]),Pi("fireRepositionEventInstead",[mr("event",E_())]),mr("getRelated",I.none),mr("isExtraPart",D),mr("eventOrder",I.none)],factory:C6,apis:{showAt:(s,F,Z,ue)=>{s.showAt(F,Z,ue)},showWithinBounds:(s,F,Z,ue,we)=>{s.showWithinBounds(F,Z,ue,we)},showMenuAt:(s,F,Z,ue)=>{s.showMenuAt(F,Z,ue)},showMenuWithinBounds:(s,F,Z,ue,we)=>{s.showMenuWithinBounds(F,Z,ue,we)},hide:(s,F)=>{s.hide(F)},isOpen:(s,F)=>s.isOpen(F),getContent:(s,F)=>s.getContent(F),setContent:(s,F,Z)=>{s.setContent(F,Z)},reposition:(s,F)=>{s.reposition(F)}}});var O5=tinymce.util.Tools.resolve("tinymce.util.Delay"),Lw=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),KB=tinymce.util.Tools.resolve("tinymce.EditorManager"),Q3=tinymce.util.Tools.resolve("tinymce.Env"),Hm;(function(s){s.default="wrap",s.floating="floating",s.sliding="sliding",s.scrolling="scrolling"})(Hm||(Hm={}));var H3;(function(s){s.auto="auto",s.top="top",s.bottom="bottom"})(H3||(H3={}));const Ul=s=>F=>F.options.get(s),S5=s=>F=>I.from(s(F)),JB=s=>{const F=Q3.deviceType.isPhone(),Z=Q3.deviceType.isTablet()||F,ue=s.options.register,we=qe=>n(qe)||qe===!1,Be=qe=>n(qe)||h(qe);ue("skin",{processor:qe=>n(qe)||qe===!1,default:"oxide"}),ue("skin_url",{processor:"string"}),ue("height",{processor:Be,default:Math.max(s.getElement().offsetHeight,400)}),ue("width",{processor:Be,default:Lw.DOM.getStyle(s.getElement(),"width")}),ue("min_height",{processor:"number",default:100}),ue("min_width",{processor:"number"}),ue("max_height",{processor:"number"}),ue("max_width",{processor:"number"}),ue("style_formats",{processor:"object[]"}),ue("style_formats_merge",{processor:"boolean",default:!1}),ue("style_formats_autohide",{processor:"boolean",default:!1}),ue("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),ue("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),ue("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),ue("font_size_input_default_unit",{processor:"string",default:"pt"}),ue("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),ue("content_langs",{processor:"object[]"}),ue("removed_menuitems",{processor:"string",default:""}),ue("menubar",{processor:qe=>n(qe)||w(qe),default:!F}),ue("menu",{processor:"object",default:{}}),ue("toolbar",{processor:qe=>w(qe)||n(qe)||i(qe)?{value:qe,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),W(9,qe=>{ue("toolbar"+(qe+1),{processor:"string"})}),ue("toolbar_mode",{processor:"string",default:Z?"scrolling":"floating"}),ue("toolbar_groups",{processor:"object",default:{}}),ue("toolbar_location",{processor:"string",default:H3.auto}),ue("toolbar_persist",{processor:"boolean",default:!1}),ue("toolbar_sticky",{processor:"boolean",default:s.inline}),ue("toolbar_sticky_offset",{processor:"number",default:0}),ue("fixed_toolbar_container",{processor:"string",default:""}),ue("fixed_toolbar_container_target",{processor:"object"}),ue("ui_mode",{processor:"string",default:"combined"}),ue("file_picker_callback",{processor:"function"}),ue("file_picker_validator_handler",{processor:"function"}),ue("file_picker_types",{processor:"string"}),ue("typeahead_urls",{processor:"boolean",default:!0}),ue("anchor_top",{processor:we,default:"#top"}),ue("anchor_bottom",{processor:we,default:"#bottom"}),ue("draggable_modal",{processor:"boolean",default:!1}),ue("statusbar",{processor:"boolean",default:!0}),ue("elementpath",{processor:"boolean",default:!0}),ue("branding",{processor:"boolean",default:!0}),ue("promotion",{processor:"boolean",default:!0}),ue("resize",{processor:qe=>qe==="both"||w(qe),default:!Q3.deviceType.isTouch()}),ue("sidebar_show",{processor:"string"}),ue("help_accessibility",{processor:"boolean",default:s.hasPlugin("help")}),ue("default_font_stack",{processor:"string[]",default:[]})},A6=Ul("readonly"),WE=Ul("height"),Iw=Ul("width"),Z3=S5(Ul("min_width")),M6=S5(Ul("min_height")),k5=S5(Ul("max_width")),YE=S5(Ul("max_height")),ez=S5(Ul("style_formats")),tz=Ul("style_formats_merge"),nz=Ul("style_formats_autohide"),E6=Ul("content_langs"),XE=Ul("removed_menuitems"),Dw=Ul("toolbar_mode"),P6=Ul("toolbar_groups"),GE=Ul("toolbar_location"),rz=Ul("fixed_toolbar_container"),jW=Ul("fixed_toolbar_container_target"),oz=Ul("toolbar_persist"),iz=Ul("toolbar_sticky_offset"),KE=Ul("menubar"),R6=Ul("toolbar"),az=Ul("file_picker_callback"),L6=Ul("file_picker_validator_handler"),JE=Ul("font_size_input_default_unit"),e7=Ul("file_picker_types"),sz=Ul("typeahead_urls"),I6=Ul("anchor_top"),lz=Ul("anchor_bottom"),cz=Ul("draggable_modal"),uz=Ul("statusbar"),fz=Ul("elementpath"),t7=Ul("branding"),n7=Ul("resize"),D6=Ul("paste_as_text"),dz=Ul("sidebar_show"),T5=Ul("promotion"),hz=Ul("help_accessibility"),pz=Ul("default_font_stack"),r7=s=>s.options.get("skin")===!1,B6=s=>s.options.get("menubar")!==!1,o7=s=>{const F=s.options.get("skin_url");if(r7(s))return F;if(F)return s.documentBaseURI.toAbsolute(F);{const Z=s.options.get("skin");return KB.baseURL+"/skins/ui/"+Z}},z6=s=>I.from(s.options.get("skin_url")),i7=s=>s.options.get("line_height_formats").split(" "),F6=s=>{const F=R6(s),Z=n(F),ue=i(F)&&F.length>0;return!Bw(s)&&(ue||Z||F===!0)},a7=s=>{const F=W(9,ue=>s.options.get("toolbar"+(ue+1))),Z=me(F,n);return _t(Z.length>0,Z)},Bw=s=>a7(s).fold(()=>{const F=R6(s);return m(F,n)&&F.length>0},k),Gb=s=>GE(s)===H3.bottom,mz=s=>{var F;if(!s.inline)return I.none();const Z=(F=rz(s))!==null&&F!==void 0?F:"";if(Z.length>0)return aa(Vr(),Z);const ue=jW(s);return a(ue)?I.some(Pt.fromDom(ue)):I.none()},q3=s=>s.inline&&mz(s).isSome(),C5=s=>mz(s).getOrThunk(()=>nr(vr(Pt.fromDom(s.getElement())))),N6=s=>s.inline&&!B6(s)&&!F6(s)&&!Bw(s),W3=s=>(s.options.get("toolbar_sticky")||s.inline)&&!q3(s)&&!N6(s),C2=s=>!q3(s)&&s.options.get("ui_mode")==="split",s7=s=>{const F=s.options.get("menu");return Ue(F,Z=>({...Z,items:Z.items}))};var QW=Object.freeze({__proto__:null,get ToolbarMode(){return Hm},get ToolbarLocation(){return H3},register:JB,getSkinUrl:o7,getSkinUrlOption:z6,isReadOnly:A6,isSkinDisabled:r7,getHeightOption:WE,getWidthOption:Iw,getMinWidthOption:Z3,getMinHeightOption:M6,getMaxWidthOption:k5,getMaxHeightOption:YE,getUserStyleFormats:ez,shouldMergeStyleFormats:tz,shouldAutoHideStyleFormats:nz,getLineHeightFormats:i7,getContentLanguages:E6,getRemovedMenuItems:XE,isMenubarEnabled:B6,isMultipleToolbars:Bw,isToolbarEnabled:F6,isToolbarPersist:oz,getMultipleToolbarsOption:a7,getUiContainer:C5,useFixedContainer:q3,isSplitUiMode:C2,getToolbarMode:Dw,isDraggableModal:cz,isDistractionFree:N6,isStickyToolbar:W3,getStickyToolbarOffset:iz,getToolbarLocation:GE,isToolbarLocationBottom:Gb,getToolbarGroups:P6,getMenus:s7,getMenubar:KE,getToolbar:R6,getFilePickerCallback:az,getFilePickerTypes:e7,useTypeaheadUrls:sz,getAnchorTop:I6,getAnchorBottom:lz,getFilePickerValidatorHandler:L6,getFontSizeInputDefaultUnit:JE,useStatusBar:uz,useElementPath:fz,promotionEnabled:T5,useBranding:t7,getResize:n7,getPasteAsText:D6,getSidebarShow:dz,useHelpAccessibility:hz,getDefaultFontStack:pz});const gz=["visible","hidden","clip"],l7=s=>Rt(s).length>0&&!X(gz,s),$6=s=>{if(Wn(s)){const F=Aa(s,"overflow-x"),Z=Aa(s,"overflow-y");return l7(F)||l7(Z)}else return!1},HW=s=>{const F=d2(s,$6),Z=F.length===0?Hn(s).map(tr).map(ue=>d2(ue,$6)).getOr([]):F;return He(Z).map(ue=>({element:ue,others:Z.slice(1)}))},Kb=(s,F)=>C2(s)?HW(F):I.none(),zw=s=>{const F=[...oe(s.others,Ya),xl()];return Wc(Ya(s.element),F)},Vd=Yh({name:"Button",factory:s=>{const F=k6(s.action),Z=s.dom.tag,ue=Be=>Ge(s.dom,"attributes").bind(qe=>Ge(qe,Be)),we=()=>{if(Z==="button"){const Be=ue("type").getOr("button"),qe=ue("role").map(ft=>({role:ft})).getOr({});return{type:Be,...qe}}else return{role:s.role.getOr(ue("role").getOr("button"))}};return{uid:s.uid,dom:s.dom,components:s.components,events:F,behaviours:Vm.augment(s.buttonBehaviours,[oa.config({}),Li.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:we()},eventOrder:s.eventOrder}},configFields:[mr("uid",void 0),Sn("dom"),mr("components",[]),Vm.field("buttonBehaviours",[oa,Li]),Hr("action"),Hr("role"),mr("eventOrder",{})]}),ZW=s=>{const F=s.dom.attributes!==void 0?s.dom.attributes:[];return se(F,(Z,ue)=>ue.name==="class"?Z:{...Z,[ue.name]:ue.value},{})},c7=s=>Array.prototype.slice.call(s.dom.classList,0),pv=s=>{const F=Pt.fromHtml(s),Z=bo(F),ue=ZW(F),we=c7(F),Be=Z.length===0?{}:{innerHtml:nh(F)};return{tag:ar(F),classes:we,attributes:ue,...Be}},qs=s=>{const F=uE(s)&&pt(s,"uid")?s.uid:j0("memento");return{get:Be=>Be.getSystem().getByUid(F).getOrDie(),getOpt:Be=>Be.getSystem().getByUid(F).toOptional(),asSpec:()=>({...s,uid:F})}};var qW=Object.freeze({__proto__:null,exhibit:(s,F)=>Tf({attributes:hd([{key:F.tabAttr,value:"true"}])})}),WW=[mr("tabAttr","data-alloy-tabstop")];const Wl=lf({fields:WW,name:"tabstopping",active:qW}),yz=fi("tooltip.exclusive"),A5=fi("tooltip.show"),M5=fi("tooltip.hide"),U6=fi("tooltip.immediateHide"),j6=fi("tooltip.immediateShow"),bz=(s,F,Z)=>{s.getSystem().broadcastOn([yz],{})};var YW=Object.freeze({__proto__:null,hideAllExclusive:bz,setComponents:(s,F,Z,ue)=>{Z.getTooltip().each(we=>{we.getSystem().isConnected()&&da.set(we,ue)})}}),XW=Object.freeze({__proto__:null,events:(s,F)=>{const Z=qe=>{F.getTooltip().each(ft=>{ft.getSystem().isConnected()&&(cv(ft),s.onHide(qe,ft),F.clearTooltip())}),F.clearTimer()},ue=qe=>{if(!F.isShowing()){bz(qe);const ft=s.lazySink(qe).getOrDie(),gt=qe.getSystem().build({dom:s.tooltipDom,components:s.tooltipComponents,events:hl(s.mode==="normal"?[fo(Om(),At=>{Sa(qe,A5)}),fo(kf(),At=>{Sa(qe,M5)})]:[]),behaviours:Do([da.config({})])});F.setTooltip(gt),X0(ft,gt),s.onShow(qe,gt),ed.position(ft,gt,{anchor:s.anchor(qe)})}},we=qe=>{F.getTooltip().each(ft=>{const gt=s.lazySink(qe).getOrDie();ed.position(gt,ft,{anchor:s.anchor(qe)})})},Be=()=>{switch(s.mode){case"normal":return[fo(Sm(),qe=>{Sa(qe,j6)}),fo(Xg(),qe=>{Sa(qe,U6)}),fo(Om(),qe=>{Sa(qe,A5)}),fo(kf(),qe=>{Sa(qe,M5)})];case"follow-highlight":return[fo(Cm(),(qe,ft)=>{Sa(qe,A5)}),fo(D0(),qe=>{Sa(qe,M5)})];case"children-normal":return[fo(Sm(),(qe,ft)=>{xd(qe.element).each(gt=>{Rr(ft.event.target,"[data-mce-tooltip]")&&F.getTooltip().fold(()=>{Sa(qe,j6)},At=>{F.isShowing()&&(s.onShow(qe,At),we(qe))})})}),fo(Xg(),qe=>{xd(qe.element).fold(()=>{Sa(qe,U6)},v)}),fo(Om(),qe=>{aa(qe.element,"[data-mce-tooltip]:hover").each(ft=>{F.getTooltip().fold(()=>{Sa(qe,A5)},gt=>{F.isShowing()&&(s.onShow(qe,gt),we(qe))})})}),fo(kf(),qe=>{aa(qe.element,"[data-mce-tooltip]:hover").fold(()=>{Sa(qe,M5)},v)})];default:return[fo(Sm(),(qe,ft)=>{xd(qe.element).each(gt=>{Rr(ft.event.target,"[data-mce-tooltip]")&&F.getTooltip().fold(()=>{Sa(qe,j6)},At=>{F.isShowing()&&(s.onShow(qe,At),we(qe))})})}),fo(Xg(),qe=>{xd(qe.element).fold(()=>{Sa(qe,U6)},v)})]}};return hl(ve([[fo(A5,qe=>{F.resetTimer(()=>{ue(qe)},s.delayForShow())}),fo(M5,qe=>{F.resetTimer(()=>{Z(qe)},s.delayForHide())}),fo(j6,qe=>{F.resetTimer(()=>{ue(qe)},0)}),fo(U6,qe=>{F.resetTimer(()=>{Z(qe)},0)}),fo(lp(),(qe,ft)=>{const gt=ft;gt.universal||X(gt.channels,yz)&&Z(qe)}),Sh(qe=>{Z(qe)})],Be()]))}}),GW=[Sn("lazySink"),Sn("tooltipDom"),mr("exclusive",!0),mr("tooltipComponents",[]),Pa("delayForShow",x(300)),Pa("delayForHide",x(300)),dl("mode","normal",["normal","follow-highlight","children-keyboard-focus","children-normal"]),mr("anchor",s=>({type:"hotspot",hotspot:s,layouts:{onLtr:x([Pc,Jc,Ec,Hc,Qc,_s]),onRtl:x([Pc,Jc,Ec,Hc,Qc,_s])},bubble:pp(0,-2,{})})),Ra("onHide"),Ra("onShow")],u7=Object.freeze({__proto__:null,init:()=>{const s=os(),F=os(),Z=()=>{s.on(clearTimeout)},ue=(Be,qe)=>{Z(),s.set(setTimeout(Be,qe))},we=x("not-implemented");return kh({getTooltip:F.get,isShowing:F.isSet,setTooltip:F.set,clearTooltip:F.clear,clearTimer:Z,resetTimer:ue,readState:we})}});const kd=lf({fields:GW,name:"tooltipping",active:XW,state:u7,apis:YW}),{entries:xz,setPrototypeOf:_z,isFrozen:wz,getPrototypeOf:KW,getOwnPropertyDescriptor:JW}=Object;let{freeze:Zm,seal:mv,create:eY}=Object,{apply:f7,construct:E5}=typeof Reflect<"u"&&Reflect;f7||(f7=function(F,Z,ue){return F.apply(Z,ue)}),Zm||(Zm=function(F){return F}),mv||(mv=function(F){return F}),E5||(E5=function(F,Z){return new F(...Z)});const tY=n1(Array.prototype.forEach),nY=n1(Array.prototype.pop),P5=n1(Array.prototype.push),Q6=n1(String.prototype.toLowerCase),d7=n1(String.prototype.toString),rY=n1(String.prototype.match),gv=n1(String.prototype.replace),oY=n1(String.prototype.indexOf),iY=n1(String.prototype.trim),f0=n1(RegExp.prototype.test),R5=aY(TypeError);function n1(s){return function(F){for(var Z=arguments.length,ue=new Array(Z>1?Z-1:0),we=1;we/gm),sY=mv(/\${[\w\W]*}/gm),lY=mv(/^data-[\-\w.\u00B7-\uFFFF]/),cY=mv(/^aria-[\-\w]+$/),kz=mv(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),B5=mv(/^(?:\w+script|data):/i),uY=mv(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),b7=mv(/^html$/i);var Z6=Object.freeze({__proto__:null,MUSTACHE_EXPR:Py,ERB_EXPR:y7,TMPLIT_EXPR:sY,DATA_ATTR:lY,ARIA_ATTR:cY,IS_ALLOWED_URI:kz,IS_SCRIPT_OR_DATA:B5,ATTR_WHITESPACE:uY,DOCTYPE_NAME:b7});const fY=()=>typeof window>"u"?null:window,x7=function(F,Z){if(typeof F!="object"||typeof F.createPolicy!="function")return null;let ue=null;const we="data-tt-policy-suffix";Z&&Z.hasAttribute(we)&&(ue=Z.getAttribute(we));const Be="dompurify"+(ue?"#"+ue:"");try{return F.createPolicy(Be,{createHTML(qe){return qe},createScriptURL(qe){return qe}})}catch{return console.warn("TrustedTypes policy "+Be+" could not be created."),null}};function q6(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fY();const F=ns=>q6(ns);if(F.version="3.0.5",F.removed=[],!s||!s.document||s.document.nodeType!==9)return F.isSupported=!1,F;const Z=s.document,ue=Z.currentScript;let{document:we}=s;const{DocumentFragment:Be,HTMLTemplateElement:qe,Node:ft,Element:gt,NodeFilter:At,NamedNodeMap:$t=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:on,DOMParser:yn,trustedTypes:wn}=s,Mn=gt.prototype,Xn=X3(Mn,"cloneNode"),Br=X3(Mn,"nextSibling"),or=X3(Mn,"childNodes"),Mr=X3(Mn,"parentNode");if(typeof qe=="function"){const ns=we.createElement("template");ns.content&&ns.content.ownerDocument&&(we=ns.content.ownerDocument)}let kr,yo="";const{implementation:Xr,createNodeIterator:No,createDocumentFragment:Jo,getElementsByTagName:ho}=we,{importNode:Ci}=Z;let mi={};F.isSupported=typeof xz=="function"&&typeof Mr=="function"&&Xr&&Xr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:qi,ERB_EXPR:Fi,TMPLIT_EXPR:Os,DATA_ATTR:vs,ARIA_ATTR:Ha,IS_SCRIPT_OR_DATA:Ho,ATTR_WHITESPACE:wi}=Z6;let{IS_ALLOWED_URI:_a}=Z6,Ki=null;const ji=Ks({},[...Oz,...h7,...p7,...m7,...H6]);let ga=null;const kl=Ks({},[...v7,...L5,...I5,...D5]);let Ns=Object.seal(Object.create(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}})),zh=null,Bg=null,Tv=!0,dh=!0,zg=!1,w0=!0,im=!1,jy=!1,mO=!1,TL=!1,L4=!1,OA=!1,fQ=!1,Ufe=!0,jfe=!1;const POe="user-content-";let Voe=!0,CL=!1,SA={},kA=null;const Qfe=Ks({},["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"]);let Hfe=null;const Zfe=Ks({},["audio","video","img","source","image","track"]);let Uoe=null;const qfe=Ks({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dQ="http://www.w3.org/1998/Math/MathML",hQ="http://www.w3.org/2000/svg",gO="http://www.w3.org/1999/xhtml";let TA=gO,joe=!1,Qoe=null;const ROe=Ks({},[dQ,hQ,gO],d7);let Vk;const LOe=["application/xhtml+xml","text/html"],IOe="text/html";let am,CA=null;const DOe=we.createElement("form"),Wfe=function(oo){return oo instanceof RegExp||oo instanceof Function},Hoe=function(oo){if(!(CA&&CA===oo)){if((!oo||typeof oo!="object")&&(oo={}),oo=Y3(oo),Vk=LOe.indexOf(oo.PARSER_MEDIA_TYPE)===-1?Vk=IOe:Vk=oo.PARSER_MEDIA_TYPE,am=Vk==="application/xhtml+xml"?d7:Q6,Ki="ALLOWED_TAGS"in oo?Ks({},oo.ALLOWED_TAGS,am):ji,ga="ALLOWED_ATTR"in oo?Ks({},oo.ALLOWED_ATTR,am):kl,Qoe="ALLOWED_NAMESPACES"in oo?Ks({},oo.ALLOWED_NAMESPACES,d7):ROe,Uoe="ADD_URI_SAFE_ATTR"in oo?Ks(Y3(qfe),oo.ADD_URI_SAFE_ATTR,am):qfe,Hfe="ADD_DATA_URI_TAGS"in oo?Ks(Y3(Zfe),oo.ADD_DATA_URI_TAGS,am):Zfe,kA="FORBID_CONTENTS"in oo?Ks({},oo.FORBID_CONTENTS,am):Qfe,zh="FORBID_TAGS"in oo?Ks({},oo.FORBID_TAGS,am):{},Bg="FORBID_ATTR"in oo?Ks({},oo.FORBID_ATTR,am):{},SA="USE_PROFILES"in oo?oo.USE_PROFILES:!1,Tv=oo.ALLOW_ARIA_ATTR!==!1,dh=oo.ALLOW_DATA_ATTR!==!1,zg=oo.ALLOW_UNKNOWN_PROTOCOLS||!1,w0=oo.ALLOW_SELF_CLOSE_IN_ATTR!==!1,im=oo.SAFE_FOR_TEMPLATES||!1,jy=oo.WHOLE_DOCUMENT||!1,L4=oo.RETURN_DOM||!1,OA=oo.RETURN_DOM_FRAGMENT||!1,fQ=oo.RETURN_TRUSTED_TYPE||!1,TL=oo.FORCE_BODY||!1,Ufe=oo.SANITIZE_DOM!==!1,jfe=oo.SANITIZE_NAMED_PROPS||!1,Voe=oo.KEEP_CONTENT!==!1,CL=oo.IN_PLACE||!1,_a=oo.ALLOWED_URI_REGEXP||kz,TA=oo.NAMESPACE||gO,Ns=oo.CUSTOM_ELEMENT_HANDLING||{},oo.CUSTOM_ELEMENT_HANDLING&&Wfe(oo.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ns.tagNameCheck=oo.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oo.CUSTOM_ELEMENT_HANDLING&&Wfe(oo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ns.attributeNameCheck=oo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oo.CUSTOM_ELEMENT_HANDLING&&typeof oo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ns.allowCustomizedBuiltInElements=oo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),im&&(dh=!1),OA&&(L4=!0),SA&&(Ki=Ks({},[...H6]),ga=[],SA.html===!0&&(Ks(Ki,Oz),Ks(ga,v7)),SA.svg===!0&&(Ks(Ki,h7),Ks(ga,L5),Ks(ga,D5)),SA.svgFilters===!0&&(Ks(Ki,p7),Ks(ga,L5),Ks(ga,D5)),SA.mathMl===!0&&(Ks(Ki,m7),Ks(ga,I5),Ks(ga,D5))),oo.ADD_TAGS&&(Ki===ji&&(Ki=Y3(Ki)),Ks(Ki,oo.ADD_TAGS,am)),oo.ADD_ATTR&&(ga===kl&&(ga=Y3(ga)),Ks(ga,oo.ADD_ATTR,am)),oo.ADD_URI_SAFE_ATTR&&Ks(Uoe,oo.ADD_URI_SAFE_ATTR,am),oo.FORBID_CONTENTS&&(kA===Qfe&&(kA=Y3(kA)),Ks(kA,oo.FORBID_CONTENTS,am)),Voe&&(Ki["#text"]=!0),jy&&Ks(Ki,["html","head","body"]),Ki.table&&(Ks(Ki,["tbody"]),delete zh.tbody),oo.TRUSTED_TYPES_POLICY){if(typeof oo.TRUSTED_TYPES_POLICY.createHTML!="function")throw R5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof oo.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw R5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');kr=oo.TRUSTED_TYPES_POLICY,yo=kr.createHTML("")}else kr===void 0&&(kr=x7(wn,ue)),kr!==null&&typeof yo=="string"&&(yo=kr.createHTML(""));Zm&&Zm(oo),CA=oo}},Yfe=Ks({},["mi","mo","mn","ms","mtext"]),Xfe=Ks({},["foreignobject","desc","title","annotation-xml"]),BOe=Ks({},["title","style","font","a","script"]),pQ=Ks({},h7);Ks(pQ,p7),Ks(pQ,Sz);const Zoe=Ks({},m7);Ks(Zoe,g7);const zOe=function(oo){let Ii=Mr(oo);(!Ii||!Ii.tagName)&&(Ii={namespaceURI:TA,tagName:"template"});const ha=Q6(oo.tagName),Xu=Q6(Ii.tagName);return Qoe[oo.namespaceURI]?oo.namespaceURI===hQ?Ii.namespaceURI===gO?ha==="svg":Ii.namespaceURI===dQ?ha==="svg"&&(Xu==="annotation-xml"||Yfe[Xu]):!!pQ[ha]:oo.namespaceURI===dQ?Ii.namespaceURI===gO?ha==="math":Ii.namespaceURI===hQ?ha==="math"&&Xfe[Xu]:!!Zoe[ha]:oo.namespaceURI===gO?Ii.namespaceURI===hQ&&!Xfe[Xu]||Ii.namespaceURI===dQ&&!Yfe[Xu]?!1:!Zoe[ha]&&(BOe[ha]||!pQ[ha]):!!(Vk==="application/xhtml+xml"&&Qoe[oo.namespaceURI]):!1},Uk=function(oo){P5(F.removed,{element:oo});try{oo.parentNode.removeChild(oo)}catch{oo.remove()}},AL=function(oo,Ii){try{P5(F.removed,{attribute:Ii.getAttributeNode(oo),from:Ii})}catch{P5(F.removed,{attribute:null,from:Ii})}if(Ii.removeAttribute(oo),oo==="is"&&!ga[oo])if(L4||OA)try{Uk(Ii)}catch{}else try{Ii.setAttribute(oo,"")}catch{}},Gfe=function(oo){let Ii,ha;if(TL)oo=""+oo;else{const Qy=rY(oo,/^[\r\n\t ]+/);ha=Qy&&Qy[0]}Vk==="application/xhtml+xml"&&TA===gO&&(oo=''+oo+"");const Xu=kr?kr.createHTML(oo):oo;if(TA===gO)try{Ii=new yn().parseFromString(Xu,Vk)}catch{}if(!Ii||!Ii.documentElement){Ii=Xr.createDocument(TA,"template",null);try{Ii.documentElement.innerHTML=joe?yo:Xu}catch{}}const sm=Ii.body||Ii.documentElement;return oo&&ha&&sm.insertBefore(we.createTextNode(ha),sm.childNodes[0]||null),TA===gO?ho.call(Ii,jy?"html":"body")[0]:jy?Ii.documentElement:sm},Kfe=function(oo){return No.call(oo.ownerDocument||oo,oo,At.SHOW_ELEMENT|At.SHOW_COMMENT|At.SHOW_TEXT,null,!1)},FOe=function(oo){return oo instanceof on&&(typeof oo.nodeName!="string"||typeof oo.textContent!="string"||typeof oo.removeChild!="function"||!(oo.attributes instanceof $t)||typeof oo.removeAttribute!="function"||typeof oo.setAttribute!="function"||typeof oo.namespaceURI!="string"||typeof oo.insertBefore!="function"||typeof oo.hasChildNodes!="function")},mQ=function(oo){return typeof ft=="object"?oo instanceof ft:oo&&typeof oo=="object"&&typeof oo.nodeType=="number"&&typeof oo.nodeName=="string"},vO=function(oo,Ii,ha){mi[oo]&&tY(mi[oo],Xu=>{Xu.call(F,Ii,ha,CA)})},Jfe=function(oo){let Ii;if(vO("beforeSanitizeElements",oo,null),FOe(oo))return Uk(oo),!0;const ha=am(oo.nodeName);if(vO("uponSanitizeElement",oo,{tagName:ha,allowedTags:Ki}),oo.hasChildNodes()&&!mQ(oo.firstElementChild)&&(!mQ(oo.content)||!mQ(oo.content.firstElementChild))&&f0(/<[/\w]/g,oo.innerHTML)&&f0(/<[/\w]/g,oo.textContent))return Uk(oo),!0;if(!Ki[ha]||zh[ha]){if(!zh[ha]&&tde(ha)&&(Ns.tagNameCheck instanceof RegExp&&f0(Ns.tagNameCheck,ha)||Ns.tagNameCheck instanceof Function&&Ns.tagNameCheck(ha)))return!1;if(Voe&&!kA[ha]){const Xu=Mr(oo)||oo.parentNode,sm=or(oo)||oo.childNodes;if(sm&&Xu){const Qy=sm.length;for(let Qd=Qy-1;Qd>=0;--Qd)Xu.insertBefore(Xn(sm[Qd],!0),Br(oo))}}return Uk(oo),!0}return oo instanceof gt&&!zOe(oo)||(ha==="noscript"||ha==="noembed"||ha==="noframes")&&f0(/<\/no(script|embed|frames)/i,oo.innerHTML)?(Uk(oo),!0):(im&&oo.nodeType===3&&(Ii=oo.textContent,Ii=gv(Ii,qi," "),Ii=gv(Ii,Fi," "),Ii=gv(Ii,Os," "),oo.textContent!==Ii&&(P5(F.removed,{element:oo.cloneNode()}),oo.textContent=Ii)),vO("afterSanitizeElements",oo,null),!1)},ede=function(oo,Ii,ha){if(Ufe&&(Ii==="id"||Ii==="name")&&(ha in we||ha in DOe))return!1;if(!(dh&&!Bg[Ii]&&f0(vs,Ii))){if(!(Tv&&f0(Ha,Ii))){if(!ga[Ii]||Bg[Ii]){if(!(tde(oo)&&(Ns.tagNameCheck instanceof RegExp&&f0(Ns.tagNameCheck,oo)||Ns.tagNameCheck instanceof Function&&Ns.tagNameCheck(oo))&&(Ns.attributeNameCheck instanceof RegExp&&f0(Ns.attributeNameCheck,Ii)||Ns.attributeNameCheck instanceof Function&&Ns.attributeNameCheck(Ii))||Ii==="is"&&Ns.allowCustomizedBuiltInElements&&(Ns.tagNameCheck instanceof RegExp&&f0(Ns.tagNameCheck,ha)||Ns.tagNameCheck instanceof Function&&Ns.tagNameCheck(ha))))return!1}else if(!Uoe[Ii]){if(!f0(_a,gv(ha,wi,""))){if(!((Ii==="src"||Ii==="xlink:href"||Ii==="href")&&oo!=="script"&&oY(ha,"data:")===0&&Hfe[oo])){if(!(zg&&!f0(Ho,gv(ha,wi,"")))){if(ha)return!1}}}}}}return!0},tde=function(oo){return oo.indexOf("-")>0},nde=function(oo){let Ii,ha,Xu,sm;vO("beforeSanitizeAttributes",oo,null);const{attributes:Qy}=oo;if(!Qy)return;const Qd={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ga};for(sm=Qy.length;sm--;){Ii=Qy[sm];const{name:Hy,namespaceURI:qoe}=Ii;ha=Hy==="value"?Ii.value:iY(Ii.value);const $Oe=ha;if(Xu=am(Hy),Qd.attrName=Xu,Qd.attrValue=ha,Qd.keepAttr=!0,Qd.forceKeepAttr=void 0,vO("uponSanitizeAttribute",oo,Qd),ha=Qd.attrValue,Qd.forceKeepAttr)continue;if(!Qd.keepAttr){AL(Hy,oo);continue}if(!w0&&f0(/\/>/i,ha)){AL(Hy,oo);continue}im&&(ha=gv(ha,qi," "),ha=gv(ha,Fi," "),ha=gv(ha,Os," "));const rde=am(oo.nodeName);if(!ede(rde,Xu,ha)){AL(Hy,oo);continue}if(jfe&&(Xu==="id"||Xu==="name")&&(AL(Hy,oo),ha=POe+ha),kr&&typeof wn=="object"&&typeof wn.getAttributeType=="function"&&!qoe)switch(wn.getAttributeType(rde,Xu)){case"TrustedHTML":{ha=kr.createHTML(ha);break}case"TrustedScriptURL":{ha=kr.createScriptURL(ha);break}}if(ha!==$Oe)try{qoe?oo.setAttributeNS(qoe,Hy,ha):oo.setAttribute(Hy,ha)}catch{AL(Hy,oo)}}vO("afterSanitizeAttributes",oo,null)},NOe=function ns(oo){let Ii;const ha=Kfe(oo);for(vO("beforeSanitizeShadowDOM",oo,null);Ii=ha.nextNode();)vO("uponSanitizeShadowNode",Ii,null),!Jfe(Ii)&&(Ii.content instanceof Be&&ns(Ii.content),nde(Ii));vO("afterSanitizeShadowDOM",oo,null)};return F.sanitize=function(ns){let oo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ii,ha,Xu,sm;if(joe=!ns,joe&&(ns=""),typeof ns!="string"&&!mQ(ns))if(typeof ns.toString=="function"){if(ns=ns.toString(),typeof ns!="string")throw R5("dirty is not a string, aborting")}else throw R5("toString is not a function");if(!F.isSupported)return ns;if(mO||Hoe(oo),F.removed=[],typeof ns=="string"&&(CL=!1),CL){if(ns.nodeName){const Hy=am(ns.nodeName);if(!Ki[Hy]||zh[Hy])throw R5("root node is forbidden and cannot be sanitized in-place")}}else if(ns instanceof ft)Ii=Gfe(""),ha=Ii.ownerDocument.importNode(ns,!0),ha.nodeType===1&&ha.nodeName==="BODY"||ha.nodeName==="HTML"?Ii=ha:Ii.appendChild(ha);else{if(!L4&&!im&&!jy&&ns.indexOf("<")===-1)return kr&&fQ?kr.createHTML(ns):ns;if(Ii=Gfe(ns),!Ii)return L4?null:fQ?yo:""}Ii&&TL&&Uk(Ii.firstChild);const Qy=Kfe(CL?ns:Ii);for(;Xu=Qy.nextNode();)Jfe(Xu)||(Xu.content instanceof Be&&NOe(Xu.content),nde(Xu));if(CL)return ns;if(L4){if(OA)for(sm=Jo.call(Ii.ownerDocument);Ii.firstChild;)sm.appendChild(Ii.firstChild);else sm=Ii;return(ga.shadowroot||ga.shadowrootmode)&&(sm=Ci.call(Z,sm,!0)),sm}let Qd=jy?Ii.outerHTML:Ii.innerHTML;return jy&&Ki["!doctype"]&&Ii.ownerDocument&&Ii.ownerDocument.doctype&&Ii.ownerDocument.doctype.name&&f0(b7,Ii.ownerDocument.doctype.name)&&(Qd=" -`+Qd),im&&(Qd=gv(Qd,qi," "),Qd=gv(Qd,Fi," "),Qd=gv(Qd,Os," ")),kr&&fQ?kr.createHTML(Qd):Qd},F.setConfig=function(ns){Hoe(ns),mO=!0},F.clearConfig=function(){CA=null,mO=!1},F.isValidAttribute=function(ns,oo,Ii){CA||Hoe({});const ha=am(ns),Xu=am(oo);return ede(ha,Xu,Ii)},F.addHook=function(ns,oo){typeof oo=="function"&&(mi[ns]=mi[ns]||[],P5(mi[ns],oo))},F.removeHook=function(ns){if(mi[ns])return nY(mi[ns])},F.removeHooks=function(ns){mi[ns]&&(mi[ns]=[])},F.removeAllHooks=function(){mi={}},F}var dY=q6();const _7=s=>dY().sanitize(s);var Cg=tinymce.util.Tools.resolve("tinymce.util.I18n");const hY={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},Tz="temporary-placeholder",w7=s=>()=>Ge(s,Tz).getOr("!not found!"),O7=(s,F)=>{const Z=s.toLowerCase();if(Cg.isRtl()){const ue=vt(Z,"-rtl");return ht(F,ue)?ue:Z}else return Z},Cz=(s,F)=>Ge(F,O7(s,F)),Az=(s,F)=>{const Z=F();return Cz(s,Z).getOrThunk(w7(Z))},Mz=(s,F,Z)=>{const ue=F();return Cz(s,ue).or(Z).getOrThunk(w7(ue))},Ez=s=>Cg.isRtl()?ht(hY,s):!1,S7=()=>Ta("add-focusable",[Ll(s=>{rc(s.element,"svg").each(F=>fr(F,"focusable","false"))})]),k7=(s,F,Z,ue)=>{var we,Be;const qe=Ez(F)?["tox-icon--flip"]:[],ft=Ge(Z,O7(F,Z)).or(ue).getOrThunk(w7(Z));return{dom:{tag:s.tag,attributes:(we=s.attributes)!==null&&we!==void 0?we:{},classes:s.classes.concat(qe),innerHtml:ft},behaviours:Do([...(Be=s.behaviours)!==null&&Be!==void 0?Be:[],S7()])}},em=(s,F,Z,ue=I.none())=>k7(F,s,Z(),ue),Pz=(s,F,Z)=>{const ue=Z(),we=ce(s,Be=>ht(ue,O7(Be,ue)));return k7(F,we.getOr(Tz),ue,I.none())},pY={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},W6=Yh({name:"Notification",factory:s=>{const F=fi("notification-text"),Z=qs({dom:pv(`

    ${_7(s.backstageProvider.translate(s.text))}

    `),behaviours:Do([da.config({})])}),ue=Mn=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${Mn}%`}}}),we=Mn=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${Mn}%`}}),Be=qs({dom:{tag:"div",classes:s.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[ue(0)]},we(0)],behaviours:Do([da.config({})])}),gt={updateProgress:(Mn,Xn)=>{Mn.getSystem().isConnected()&&Be.getOpt(Mn).each(Br=>{da.set(Br,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[ue(Xn)]},we(Xn)])})},updateText:(Mn,Xn)=>{if(Mn.getSystem().isConnected()){const Br=Z.get(Mn);da.set(Br,[ro(Xn)])}}},At=ve([s.icon.toArray(),s.level.toArray(),s.level.bind(Mn=>I.from(pY[Mn])).toArray()]),$t=qs(Vd.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":s.backstageProvider.translate("Close")}},components:[em("close",{tag:"span",classes:["tox-icon"]},s.iconProvider)],buttonBehaviours:Do([Wl.config({}),kd.config({...s.backstageProvider.tooltips.getConfig({tooltipText:s.backstageProvider.translate("Close")})})]),action:Mn=>{s.onAction(Mn)}})),on=Pz(At,{tag:"div",classes:["tox-notification__icon"]},s.iconProvider),yn={dom:{tag:"div",classes:["tox-notification__body"]},components:[Z.asSpec()],behaviours:Do([da.config({})])},wn=[on,yn];return{uid:s.uid,dom:{tag:"div",attributes:{role:"alert","aria-labelledby":F},classes:s.level.map(Mn=>["tox-notification","tox-notification--in",`tox-notification--${Mn}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:Do([Wl.config({}),oa.config({}),Li.config({mode:"special",onEscape:Mn=>(s.onAction(Mn),I.some(!0))})]),components:wn.concat(s.progress?[Be.asSpec()]:[]).concat([$t.asSpec()]),apis:gt}},configFields:[Hr("level"),Sn("progress"),Hr("icon"),Sn("onAction"),Sn("text"),Sn("iconProvider"),Sn("backstageProvider")],apis:{updateProgress:(s,F,Z)=>{s.updateProgress(F,Z)},updateText:(s,F,Z)=>{s.updateText(F,Z)}}});var mY=(s,F,Z,ue)=>{const we=F.backstage.shared,Be=()=>{const $t=Ya(Pt.fromDom(s.getContentAreaContainer()));return I.some($t)},qe=$t=>{Be().each(on=>{q($t,yn=>{cc(yn.element)>on.width&&ko(yn.element,"width",on.width+"px")})})};return{open:($t,on,yn)=>{const wn=()=>{const or=Xr=>{da.remove(Xr,Mn),Xn()},Mr=(Xr,No)=>{bo(Xr.element).length===0?kr(Xr,No):yo(Xr,No)},kr=(Xr,No)=>{hc.hide(Xr),ue.clear(),No&&s.focus()},yo=(Xr,No)=>{No&&Li.focusIn(Xr)};ue.on(Xr=>{on();const No=yn();or(Xr),Mr(Xr,No)})},Mn=vi(W6.sketch({text:$t.text,level:X(["success","error","warning","warn","info"],$t.type)?$t.type:void 0,progress:$t.progressBar===!0,icon:$t.icon,onAction:wn,iconProvider:we.providers.icons,backstageProvider:we.providers}));if(ue.isSet()){const or=na(Mn);ue.on(Mr=>{da.append(Mr,or),hc.reposition(Mr),Dl.refresh(Mr),qe(Mr.components())})}else{const or=vi(hc.sketch({dom:{tag:"div",classes:["tox-notifications-container"],attributes:{"aria-label":"Notifications",role:"region"}},lazySink:we.getSink,fireDismissalEventInstead:{},...we.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Do([Li.config({mode:"cyclic",selector:".tox-notification, .tox-notification a, .tox-notification button"}),da.config({}),...W3(s)&&!we.header.isPositionedAtTop()?[]:[Dl.config({contextual:{lazyContext:()=>I.some(Ya(Pt.fromDom(s.getContentAreaContainer()))),fadeInClass:"tox-notification-container-dock-fadein",fadeOutClass:"tox-notification-container-dock-fadeout",transitionClass:"tox-notification-container-dock-transition"},modes:["top"],lazyViewport:Xr=>Kb(s,Xr.element).map(Jo=>({bounds:zw(Jo),optScrollEnv:I.some({currentScrollTop:Jo.element.dom.scrollTop,scrollElmTop:pc(Jo.element).top})})).getOrThunk(()=>({bounds:xl(),optScrollEnv:I.none()}))})]])})),Mr=na(Mn),kr={maxHeightFunction:W0()},yo={...we.anchors.banner(),overrides:kr};ue.set(or),Z.add(or),hc.showWithinBounds(or,Mr,{anchor:yo},Be)}h($t.timeout)&&$t.timeout>0&&O5.setEditorTimeout(s,()=>{wn()},$t.timeout);const Xn=()=>{ue.on(or=>{hc.reposition(or),Dl.refresh(or),qe(or.components())})};return{close:wn,reposition:Xn,text:or=>{W6.updateText(Mn,or)},settings:$t,getEl:()=>Mn.element.dom,progressBar:{value:or=>{W6.updateProgress(Mn,or)}}}},close:$t=>{$t.close()},getArgs:$t=>$t.settings}};const Rz={setup:(s,F)=>{const Z=(we,Be)=>{Ri(we,Bp(),{raw:Be})},ue=()=>s.getMenu().bind(ri.getHighlighted);F.on("keydown",we=>{const Be=we.which;s.isActive()&&(s.isMenuOpen()?Be===13?(ue().each(Fp),we.preventDefault()):Be===40?(ue().fold(()=>{s.getMenu().each(ri.highlightFirst)},qe=>{Z(qe,we)}),we.preventDefault(),we.stopImmediatePropagation()):(Be===37||Be===38||Be===39)&&ue().each(qe=>{Z(qe,we),we.preventDefault(),we.stopImmediatePropagation()}):(Be===13||Be===38||Be===40)&&s.cancelIfNecessary())}),F.on("NodeChange",()=>{s.isActive()&&!s.isProcessingAction()&&!F.queryCommandState("mceAutoCompleterInRange")&&s.cancelIfNecessary()})}};var Y6;(function(s){s[s.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",s[s.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(Y6||(Y6={}));var r1=Y6;const X6="tox-menu-nav__js",G6="tox-collection__item",T7="tox-swatch",Lz={normal:X6,color:T7},K6="tox-collection__item--enabled",C7="tox-collection__group-heading",A7="tox-collection__item-icon",J6="tox-collection__item-label",Iz="tox-collection__item-accessory",Dz="tox-collection__item-caret",M7="tox-collection__item-checkmark",Fw="tox-collection__item--active",E7="tox-collection__item-container",Bz="tox-collection__item-container--column",A2="tox-collection__item-container--row",gY="tox-collection__item-container--align-right",P7="tox-collection__item-container--align-left",eC="tox-collection__item-container--valign-top",vY="tox-collection__item-container--valign-middle",zz="tox-collection__item-container--valign-bottom",R7=s=>Ge(Lz,s).getOr(X6),Fz=s=>s==="color"?"tox-swatches":"tox-menu",z5=s=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:Fz(s),tieredMenu:"tox-tiered-menu"}),M2=s=>{const F=z5(s);return{backgroundMenu:F.backgroundMenu,selectedMenu:F.selectedMenu,menu:F.menu,selectedItem:F.selectedItem,item:R7(s)}},yY=(s,F,Z)=>{const ue=z5(Z);return{tag:"div",classes:ve([[ue.menu,`tox-menu-${F}-column`],s?[ue.hasIcons]:[]])}},Nz=[Pw.parts.items({})],F5=(s,F,Z)=>{const ue=z5(Z);return{dom:{tag:"div",classes:ve([[ue.tieredMenu]])},markers:M2(Z)}},L7=x([Hr("data"),mr("inputAttributes",{}),mr("inputStyles",{}),mr("tag","input"),mr("inputClasses",[]),Ra("onSetValue"),mr("styles",{}),mr("eventOrder",{}),Ef("inputBehaviours",[hi,oa]),mr("selectOnFocus",!0)]),I7=s=>Do([oa.config({onFocus:s.selectOnFocus?F=>{const Z=F.element,ue=qr(Z);Z.dom.setSelectionRange(0,ue.length)}:v})]),bY=s=>({...I7(s),...Pf(s.inputBehaviours,[hi.config({store:{mode:"manual",...s.data.map(F=>({initialValue:F})).getOr({}),getValue:F=>qr(F.element),setValue:(F,Z)=>{qr(F.element)!==Z&&N(F.element,Z)}},onSetValue:s.onSetValue})])}),D7=s=>({tag:s.tag,attributes:{type:"text",...s.inputAttributes},styles:s.inputStyles,classes:s.inputClasses}),xY=(s,F)=>({uid:s.uid,dom:D7(s),components:[],behaviours:bY(s),eventOrder:s.eventOrder}),Nw=Yh({name:"Input",configFields:L7(),factory:xY}),$z=fi("refetch-trigger-event"),Vz=fi("redirect-menu-item-interaction"),B7="tox-menu__searcher",E2=s=>aa(s.element,`.${B7}`).bind(F=>s.getSystem().getByDom(F).toOptional()),z7=E2,_Y=(s,F)=>{hi.setValue(s,F.fetchPattern),s.element.dom.selectionStart=F.selectionStart,s.element.dom.selectionEnd=F.selectionEnd},Uz=s=>{const F=hi.getValue(s),Z=s.element.dom.selectionStart,ue=s.element.dom.selectionEnd;return{fetchPattern:F,selectionStart:Z,selectionEnd:ue}},wY=(s,F)=>{co(F.element,"id").each(Z=>fr(s.element,"aria-activedescendant",Z))},OY=s=>{const F=(we,Be)=>(Be.cut(),I.none()),Z=(we,Be)=>{const qe={interactionEvent:Be.event,eventType:Be.event.raw.type};return Ri(we,Vz,qe),I.some(!0)},ue="searcher-events";return{dom:{tag:"div",classes:[G6]},components:[Nw.sketch({inputClasses:[B7,"tox-textfield"],inputAttributes:{...s.placeholder.map(we=>({placeholder:s.i18n(we)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:Do([Ta(ue,[fo(cg(),we=>{Sa(we,$z)}),fo(Bp(),(we,Be)=>{Be.event.raw.key==="Escape"&&Be.stop()})]),Li.config({mode:"special",onLeft:F,onRight:F,onSpace:F,onEnter:Z,onEscape:Z,onUp:Z,onDown:Z})]),eventOrder:{keydown:[ue,Li.name()]}})]}},tC="tox-collection--results__js",N5=s=>{var F;return s.dom?{...s,dom:{...s.dom,attributes:{...(F=s.dom.attributes)!==null&&F!==void 0?F:{},id:fi("aria-item-search-result-id"),"aria-selected":"false"}}}:s},F7=(s,F)=>Z=>{const ue=K(Z,F);return oe(ue,we=>({dom:s,components:we}))},jz=s=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[Pw.parts.items({preprocess:s!=="auto"?F7({tag:"div",classes:["tox-swatches__row"]},s):R})]}]}),SY=s=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[Pw.parts.items({preprocess:F7({tag:"div",classes:["tox-collection__group"]},s)})]}),N7=(s,F)=>{const Z=[];let ue=[];return q(s,(we,Be)=>{F(we,Be)?(ue.length>0&&Z.push(ue),ue=[],(ht(we.dom,"innerHtml")||we.components&&we.components.length>0)&&ue.push(we)):ue.push(we)}),ue.length>0&&Z.push(ue),oe(Z,we=>({dom:{tag:"div",classes:["tox-collection__group"]},components:we}))},nC=(s,F,Z)=>Pw.parts.items({preprocess:ue=>{const we=oe(ue,Z);return s!=="auto"&&s>1?F7({tag:"div",classes:["tox-collection__group"]},s)(we):N7(we,(Be,qe)=>F[qe].type==="separator")}}),Qz=(s,F,Z=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(s===1?["tox-collection--list"]:["tox-collection--grid"])},components:[nC(s,F,R)]}),Hz=(s,F,Z=!0)=>{const ue=fi("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",tC].concat(s===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:ue}},components:[nC(s,F,N5)]}},Zz=(s,F,Z)=>{const ue=fi("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(s===1?["tox-collection--list"]:["tox-collection--grid"])},components:[OY({i18n:Cg.translate,placeholder:Z.placeholder}),{dom:{tag:"div",classes:[...s===1?["tox-collection--list"]:["tox-collection--grid"],tC],attributes:{id:ue}},components:[nC(s,F,N5)]}]}},qz=(s,F=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[Pw.parts.items({preprocess:Z=>N7(Z,(ue,we)=>s[we].type==="separator")})]}),$5=s=>te(s,F=>"icon"in F&&F.icon!==void 0),Jb=s=>(console.error(sn(s)),console.log(s),I.none()),kY=(s,F,Z,ue,we)=>{const Be=qz(Z);return{value:s,dom:Be.dom,components:Be.components,items:Z}},$7=(s,F,Z,ue,we)=>{const Be=()=>we.menuType!=="searchable"?Qz(ue,Z):we.searchMode.searchMode==="search-with-field"?Zz(ue,Z,we.searchMode):Hz(ue,Z);if(we.menuType==="color"){const qe=jz(ue);return{value:s,dom:qe.dom,components:qe.components,items:Z}}else if(we.menuType==="normal"&&ue==="auto"){const qe=Qz(ue,Z);return{value:s,dom:qe.dom,components:qe.components,items:Z}}else if(we.menuType==="normal"||we.menuType==="searchable"){const qe=Be();return{value:s,dom:qe.dom,components:qe.components,items:Z}}else if(we.menuType==="listpreview"&&ue!=="auto"){const qe=SY(ue);return{value:s,dom:qe.dom,components:qe.components,items:Z}}else return{value:s,dom:yY(F,ue,we.menuType),components:Nz,items:Z}},Fu=Pr("type"),rC=Pr("name"),oC=Pr("label"),ex=Pr("text"),Wz=Pr("title"),Yz=Pr("icon"),V5=Pr("value"),TY=$o("fetch"),CY=$o("getSubmenuItems"),G3=$o("onAction"),V7=$o("onItemAction"),P2=Pa("onSetup",()=>v),AY=Io("name"),R2=Io("text"),Xz=Io("role"),d0=Io("icon"),U5=Io("tooltip"),iC=Io("label"),aC=Io("shortcut"),Gz=Ui("select"),sC=ds("active",!1),MY=ds("borderless",!1),o1=ds("enabled",!0),j5=ds("primary",!1),lC=s=>mr("columns",s),U7=mr("meta",{}),j7=Pa("onAction",v),$w=s=>Ys("type",s),Q7=s=>Ln("name","name",Xi(()=>fi(`${s}-name`)),ne),EY=s=>Ln("value","value",Xi(()=>fi(`${s}-value`)),le()),Kz=Mi([Fu,R2]),Jz=s=>jt("separatormenuitem",Kz,s),eF=Mi([$w("autocompleteitem"),sC,o1,U7,V5,R2,d0]),PY=s=>jt("Autocompleter.Separator",Kz,s),RY=s=>jt("Autocompleter.Item",eF,s),Q5=[o1,U5,d0,R2,P2],qm=Mi([Fu,G3,aC].concat(Q5)),i1=s=>jt("toolbarbutton",qm,s),H7=[sC].concat(Q5),Z7=Mi(H7.concat([Fu,G3,aC])),cC=s=>jt("ToggleButton",Z7,s),tF=[Pa("predicate",D),dl("scope","node",["node","editor"]),dl("position","selection",["node","selection","line"])],LY=Q5.concat([$w("contextformbutton"),j5,G3,On("original",R)]),H5=H7.concat([$w("contextformbutton"),j5,G3,On("original",R)]),uC=Q5.concat([$w("contextformbutton")]),q7=H7.concat([$w("contextformtogglebutton")]),IY=xn("type",{contextformbutton:LY,contextformtogglebutton:H5}),vv=Mi([$w("contextform"),Pa("initValue",x("")),iC,Si("commands",IY),Lo("launch",xn("type",{contextformbutton:uC,contextformtogglebutton:q7}))].concat(tF)),DY=s=>jt("ContextForm",vv,s),BY=Mi([$w("contexttoolbar"),Pr("items")].concat(tF)),h0=s=>jt("ContextToolbar",BY,s),Z5=[Fu,Pr("src"),Io("alt"),Ls("classes",[],ne)],a1=Mi(Z5),zY=[Fu,ex,AY,Ls("classes",["tox-collection__item-label"],ne)],Sl=Mi(zY),Vw=Ea(()=>rt("type",{cardimage:a1,cardtext:Sl,cardcontainer:fC})),fC=Mi([Fu,Ys("direction","horizontal"),Ys("align","left"),Ys("valign","middle"),Si("items",Vw)]),Uw=[o1,R2,Xz,aC,EY("menuitem"),U7],W7=Mi([Fu,iC,Si("items",Vw),P2,j7].concat(Uw)),Y7=s=>jt("cardmenuitem",W7,s),FY=Mi([Fu,sC,d0].concat(Uw)),X7=s=>jt("choicemenuitem",FY,s),nF=[Fu,Pr("fancytype"),j7],rF=[mr("initData",{})].concat(nF),oF=[Ui("select"),ol("initData",{},[ds("allowCustomColors",!0),Ys("storageKey","default"),ba("colors",le())])].concat(nF),G7=xn("fancytype",{inserttable:rF,colorswatch:oF}),iF=s=>jt("fancymenuitem",G7,s),dC=Mi([Fu,P2,j7,d0].concat(Uw)),NY=s=>jt("menuitem",dC,s),$Y=Mi([Fu,CY,P2,d0].concat(Uw)),VY=s=>jt("nestedmenuitem",$Y,s),UY=Mi([Fu,d0,sC,P2,G3].concat(Uw)),jY=s=>jt("togglemenuitem",UY,s),hC=(s,F,Z)=>{const ue=$d(s.element,"."+Z);if(ue.length>0){const we=de(ue,Be=>{const qe=Be.dom.getBoundingClientRect().top,ft=ue[0].dom.getBoundingClientRect().top;return Math.abs(qe-ft)>F}).getOr(ue.length);return I.some({numColumns:we,numRows:Math.ceil(ue.length/we)})}else return I.none()},aF=(s,F)=>Do([Ta(s,F)]),K3={namedEvents:aF,unnamedEvents:s=>aF(fi("unnamed-events"),s)},sF=s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),lF="silver.readonly",QY=Mi([Mo("readonly")]),q5=(s,F)=>{const ue=s.mainUi.outerContainer.element,we=[s.mainUi.mothership,...s.uiMotherships];F&&q(we,Be=>{Be.broadcastOn([K0()],{target:ue})}),q(we,Be=>{Be.broadcastOn([lF],{readonly:F})})},pC=(s,F)=>{s.on("init",()=>{s.mode.isReadOnly()&&q5(F,!0)}),s.on("SwitchMode",()=>q5(F,s.mode.isReadOnly())),A6(s)&&s.mode.set("readonly")},df=()=>Wu.config({channels:{[lF]:{schema:QY,onReceive:(s,F)=>{ea.set(s,F.readonly)}}}}),s1={item:s=>ea.config({disabled:s,disableClass:"tox-collection__item--state-disabled"}),button:s=>ea.config({disabled:s}),splitButton:s=>ea.config({disabled:s,disableClass:"tox-tbtn--disabled"}),toolbarButton:s=>ea.config({disabled:s,disableClass:"tox-tbtn--disabled",useNative:!1})},mC=(s,F)=>{const Z=s.getApi(F);return ue=>{ue(Z)}},tx=(s,F)=>Ll(Z=>{mC(s,Z)(we=>{const Be=s.onSetup(we);u(Be)&&F.set(Be)})}),Ih=(s,F)=>Sh(Z=>mC(s,Z)(F.get())),HY=(s,F)=>$p((Z,ue)=>{mC(s,Z)(s.onAction),!s.triggersSubmenu&&F===r1.CLOSE_ON_EXECUTE&&(Z.getSystem().isConnected()&&Sa(Z,L0()),ue.stop())}),K7={[cp()]:["disabling","alloy.base.behaviour","toggling","item-events"]},jw=It,Qw=(s,F,Z,ue)=>{const we=xi(v);return{type:"item",dom:F.dom,components:jw(F.optComponents),data:s.data,eventOrder:K7,hasSubmenu:s.triggersSubmenu,itemBehaviours:Do([Ta("item-events",[HY(s,Z),tx(s,we),Ih(s,we)]),s1.item(()=>!s.enabled||ue.isDisabled()),df(),da.config({})].concat(s.itemBehaviours))}},J3=s=>({value:s.value,meta:{text:s.text.getOr(""),...s.meta}}),gC=s=>{const F=Q3.os.isMacOS()||Q3.os.isiOS(),we=F?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},Be=s.split("+"),qe=oe(Be,ft=>{const gt=ft.toLowerCase().trim();return ht(we,gt)?we[gt]:ft});return F?qe.join(""):qe.join("+")},vC=(s,F,Z=[A7])=>em(s,{tag:"div",classes:Z},F),J7=s=>({dom:{tag:"div",classes:[J6]},components:[ro(Cg.translate(s))]}),cF=(s,F)=>({dom:{tag:"div",classes:F,innerHtml:s}}),ZY=(s,F)=>({dom:{tag:"div",classes:[J6]},components:[{dom:{tag:s.tag,styles:s.styles},components:[ro(Cg.translate(F))]}]}),qY=s=>({dom:{tag:"div",classes:[Iz]},components:[ro(gC(s))]}),uF=s=>vC("checkmark",s,[M7]),WY=s=>vC("chevron-right",s,[Dz]),fF=s=>vC("chevron-down",s,[Dz]),dF=(s,F)=>{const Z=s.direction==="vertical"?Bz:A2,ue=s.align==="left"?P7:gY;return{dom:{tag:"div",classes:[E7,Z,ue,(()=>{switch(s.valign){case"top":return eC;case"middle":return vY;case"bottom":return zz}})()]},components:F}},hF=(s,F,Z)=>({dom:{tag:"img",classes:F,attributes:{src:s,alt:Z.getOr("")}}}),YY=(s,F,Z)=>{const ue="custom",we="remove",Be=s.value,qe=s.iconContent.map(At=>Mz(At,F.icons,Z)),ft=s.ariaLabel.map(At=>({"aria-label":F.translate(At),"data-mce-name":At})).getOr({});return{dom:(()=>{const At=T7,$t=qe.getOr(""),on={tag:"div",attributes:ft,classes:[At]};return Be===ue?{...on,tag:"button",classes:[...on.classes,"tox-swatches__picker-btn"],innerHtml:$t}:Be===we?{...on,classes:[...on.classes,"tox-swatch--remove"],innerHtml:$t}:a(Be)?{...on,attributes:{...on.attributes,"data-mce-color":Be},styles:{"background-color":Be},innerHtml:$t}:on})(),optComponents:[]}},pF=s=>{const F=s.map(Z=>({attributes:{id:fi("menu-item"),"aria-label":Cg.translate(Z)}})).getOr({});return{tag:"div",classes:[X6,G6],...F}},XY=(s,F,Z,ue)=>{const we={tag:"div",classes:[A7]},Be=yn=>em(yn,we,F.icons,ue),qe=()=>I.some({dom:we}),ft=Z?s.iconContent.map(Be).orThunk(qe):I.none(),gt=s.checkMark,At=I.from(s.meta).fold(()=>J7,yn=>ht(yn,"style")?T(ZY,yn.style):J7),$t=s.htmlContent.fold(()=>s.textContent.map(At),yn=>I.some(cF(yn,[J6])));return{dom:pF(s.ariaLabel),optComponents:[ft,$t,s.shortcutContent.map(qY),gt,s.caret]}},Ry=(s,F,Z,ue=I.none())=>s.presets==="color"?YY(s,F,ue):XY(s,F,Z,ue),mF=(s,F,Z)=>Ge(s,"tooltipWorker").map(ue=>[kd.config({lazySink:F.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:we=>({type:"submenu",item:we,overrides:{maxHeightFunction:W0}}),mode:"follow-highlight",onShow:(we,Be)=>{ue(qe=>{kd.setComponents(we,[Po({element:Pt.fromDom(qe)})])})}})]).getOrThunk(()=>Z.map(ue=>[kd.config({...F.providers.tooltips.getConfig({tooltipText:ue}),mode:"follow-highlight"})]).getOr([])),gF=s=>Lw.DOM.encode(s),eP=(s,F)=>{const Z=Cg.translate(s),ue=gF(Z);if(F.length>0){const we=new RegExp(sF(F),"gi");return ue.replace(we,Be=>`${Be}`)}else return ue},vF=(s,F,Z,ue,we,Be,qe,ft=!0)=>{const gt=Ry({presets:ue,textContent:I.none(),htmlContent:Z?s.text.map($t=>eP($t,F)):I.none(),ariaLabel:s.text,iconContent:s.icon,shortcutContent:I.none(),checkMark:I.none(),caret:I.none(),value:s.value},qe.providers,ft,s.icon),At=s.text.filter($t=>!Z&&$t!=="");return Qw({data:J3(s),enabled:s.enabled,getApi:x({}),onAction:$t=>we(s.value,s.meta),onSetup:x(v),triggersSubmenu:!1,itemBehaviours:mF(s,qe,At)},gt,Be,qe.providers)},tP=(s,F)=>oe(s,Z=>{switch(Z.type){case"cardcontainer":return dF(Z,tP(Z.items,F));case"cardimage":return hF(Z.src,Z.classes,Z.alt);case"cardtext":const we=Z.name.exists(Be=>X(F.cardText.highlightOn,Be))?I.from(F.cardText.matchText).getOr(""):"";return cF(eP(Z.text,we),Z.classes)}}),nP=(s,F,Z,ue)=>{const we=qe=>({isEnabled:()=>!ea.isDisabled(qe),setEnabled:ft=>{ea.set(qe,!ft),q($d(qe.element,"*"),gt=>{qe.getSystem().getByDom(gt).each(At=>{At.hasConfigured(ea)&&ea.set(At,!ft)})})}}),Be={dom:pF(s.label),optComponents:[I.some({dom:{tag:"div",classes:[E7,A2]},components:tP(s.items,ue)})]};return Qw({data:J3({text:I.none(),...s}),enabled:s.enabled,getApi:we,onAction:s.onAction,onSetup:s.onSetup,triggersSubmenu:!1,itemBehaviours:I.from(ue.itemBehaviours).getOr([])},Be,F,Z.providers)},rP=(s,F,Z,ue,we,Be,qe,ft=!0)=>{const gt=on=>({setActive:yn=>{za.set(on,yn)},isActive:()=>za.isOn(on),isEnabled:()=>!ea.isDisabled(on),setEnabled:yn=>ea.set(on,!yn)}),At=Ry({presets:Z,textContent:F?s.text:I.none(),htmlContent:I.none(),ariaLabel:s.text,iconContent:s.icon,shortcutContent:F?s.shortcut:I.none(),checkMark:F?I.some(uF(qe.icons)):I.none(),caret:I.none(),value:s.value},qe,ft),$t=s.text.filter(x(!F)).map(on=>kd.config(qe.tooltips.getConfig({tooltipText:qe.translate(on)})));return nl(Qw({data:J3(s),enabled:s.enabled,getApi:gt,onAction:on=>ue(s.value),onSetup:on=>(on.setActive(we),v),triggersSubmenu:!1,itemBehaviours:[...$t.toArray()]},At,Be,qe),{toggling:{toggleClass:K6,toggleOnExecute:!1,selected:s.active,exclusive:!0}})},yC=i5(ZE(),qE()),oP=s=>({value:xF(s)}),yF=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,iP=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,bF=s=>yF.test(s)||iP.test(s),xF=s=>mn(s,"#").toUpperCase(),GY=s=>bF(s)?I.some({value:xF(s)}):I.none(),_F=s=>({value:s.value.replace(yF,(Z,ue,we,Be)=>ue+ue+we+we+Be+Be)}),wF=s=>{const F=_F(s),Z=iP.exec(F.value);return Z===null?["FFFFFF","FF","FF","FF"]:Z},bC=s=>{const F=s.toString(16);return(F.length===1?"0"+F:F).toUpperCase()},W5=s=>{const F=bC(s.red)+bC(s.green)+bC(s.blue);return oP(F)},OF=Math.min,SF=Math.max,xC=Math.round,KY=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,JY=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,Hw=(s,F,Z,ue)=>({red:s,green:F,blue:Z,alpha:ue}),aP=s=>{const F=parseInt(s,10);return F.toString()===s&&F>=0&&F<=255},kF=s=>{let F,Z,ue;const we=(s.hue||0)%360;let Be=s.saturation/100,qe=s.value/100;if(Be=SF(0,OF(Be,1)),qe=SF(0,OF(qe,1)),Be===0)return F=Z=ue=xC(255*qe),Hw(F,Z,ue,1);const ft=we/60,gt=qe*Be,At=gt*(1-Math.abs(ft%2-1)),$t=qe-gt;switch(Math.floor(ft)){case 0:F=gt,Z=At,ue=0;break;case 1:F=At,Z=gt,ue=0;break;case 2:F=0,Z=gt,ue=At;break;case 3:F=0,Z=At,ue=gt;break;case 4:F=At,Z=0,ue=gt;break;case 5:F=gt,Z=0,ue=At;break;default:F=Z=ue=0}return F=xC(255*(F+$t)),Z=xC(255*(Z+$t)),ue=xC(255*(ue+$t)),Hw(F,Z,ue,1)},Y5=s=>{const F=wF(s),Z=parseInt(F[1],16),ue=parseInt(F[2],16),we=parseInt(F[3],16);return Hw(Z,ue,we,1)},TF=(s,F,Z,ue)=>{const we=parseInt(s,10),Be=parseInt(F,10),qe=parseInt(Z,10),ft=parseFloat(ue);return Hw(we,Be,qe,ft)},_C=s=>{const F=KY.exec(s);if(F!==null)return I.some(TF(F[1],F[2],F[3],"1"));const Z=JY.exec(s);return Z!==null?I.some(TF(Z[1],Z[2],Z[3],Z[4])):I.none()},CF=s=>`rgba(${s.red},${s.green},${s.blue},${s.alpha})`,AF=Hw(255,0,0,1),eX=s=>{s.dispatch("SkinLoaded")},tX=(s,F)=>{s.dispatch("SkinLoadError",F)},nX=s=>{s.dispatch("ResizeEditor")},e4=(s,F)=>{s.dispatch("ResizeContent",F)},MF=(s,F)=>{s.dispatch("ScrollContent",F)},EF=(s,F)=>{s.dispatch("TextColorChange",F)},rX=(s,F)=>{s.dispatch("AfterProgressState",{state:F})},oX=(s,F)=>s.dispatch("ResolveName",{name:F.nodeName.toLowerCase(),target:F}),iX=(s,F)=>{s.dispatch("ToggleToolbarDrawer",{state:F})},aX=(s,F)=>{s.dispatch("StylesTextUpdate",F)},sX=(s,F)=>{s.dispatch("AlignTextUpdate",F)},sP=(s,F)=>{s.dispatch("FontSizeTextUpdate",F)},PF=(s,F)=>{s.dispatch("FontSizeInputTextUpdate",F)},RF=(s,F)=>{s.dispatch("BlocksTextUpdate",F)},lX=(s,F)=>{s.dispatch("FontFamilyTextUpdate",F)},t4=(s,F)=>()=>{s(),F()},Gh=s=>Zw(s,"NodeChange",F=>{F.setEnabled(s.selection.isEditable())}),cX=(s,F)=>Z=>{const ue=js(),we=()=>{Z.setActive(s.formatter.match(F));const Be=s.formatter.formatChanged(F,Z.setActive);ue.set(Be)};return s.initialized?we():s.once("init",we),()=>{s.off("init",we),ue.clear()}},wC=(s,F)=>Z=>{const ue=Gh(s)(Z),we=cX(s,F)(Z);return()=>{ue(),we()}},Zw=(s,F,Z)=>ue=>{const we=()=>Z(ue),Be=()=>{Z(ue),s.on(F,we)};return s.initialized?Be():s.once("init",Be),()=>{s.off("init",Be),s.off(F,we)}},LF=s=>F=>()=>{s.undoManager.transact(()=>{s.focus(),s.execCommand("mceToggleFormat",!1,F.format)})},Wm=(s,F)=>()=>s.execCommand(F);var qw=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const IF={},uX=(s,F=10)=>{const Z=qw.getItem(s),ue=n(Z)?JSON.parse(Z):[],Be=(At=>F-At.length<0?At.slice(0,F):At)(ue),qe=At=>{U(Be,At).each(ft),Be.unshift(At),Be.length>F&&Be.pop(),qw.setItem(s,JSON.stringify(Be))},ft=At=>{Be.splice(At,1)};return{add:qe,state:()=>Be.slice(0)}},DF=s=>Ge(IF,s).getOrThunk(()=>{const F=`tinymce-custom-colors-${s}`,Z=qw.getItem(F);if(p(Z)){const we=qw.getItem("tinymce-custom-colors");qw.setItem(F,a(we)?we:"[]")}const ue=uX(F,10);return IF[s]=ue,ue}),OC=s=>oe(DF(s).state(),F=>({type:"choiceitem",text:F,icon:"checkmark",value:F})),SC=(s,F)=>{DF(s).add(F)},Ww=(s,F,Z)=>({hue:s,saturation:F,value:Z}),kC=s=>{let F=0,Z=0,ue=0;const we=s.red/255,Be=s.green/255,qe=s.blue/255,ft=Math.min(we,Math.min(Be,qe)),gt=Math.max(we,Math.max(Be,qe));if(ft===gt)return ue=ft,Ww(0,0,ue*100);const At=we===ft?Be-qe:qe===ft?we-Be:qe-we;return F=we===ft?3:qe===ft?1:5,F=60*(F-At/(gt-ft)),Z=(gt-ft)/gt,ue=gt,Ww(Math.round(F),Math.round(Z*100),Math.round(ue*100))},fX=s=>kC(Y5(s)),BF=s=>W5(kF(s)),lP=s=>GY(s).orThunk(()=>_C(s).map(W5)).getOrThunk(()=>{const F=document.createElement("canvas");F.height=1,F.width=1;const Z=F.getContext("2d");Z.clearRect(0,0,F.width,F.height),Z.fillStyle="#FFFFFF",Z.fillStyle=s,Z.fillRect(0,0,1,1);const ue=Z.getImageData(0,0,1,1).data,we=ue[0],Be=ue[1],qe=ue[2],ft=ue[3];return W5(Hw(we,Be,qe,ft))}),X5="forecolor",n4="hilitecolor",zF=5,dX=s=>{const F=[];for(let Z=0;ZF=>F.options.get(s),cP="#000000",hX=s=>{const F=s.options.register,Z=we=>m(we,n)?{value:dX(we),valid:!0}:{valid:!1,message:"Must be an array of strings."},ue=we=>h(we)&&we>0?{value:we,valid:!0}:{valid:!1,message:"Must be a positive number."};F("color_map",{processor:Z,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),F("color_map_background",{processor:Z}),F("color_map_foreground",{processor:Z}),F("color_cols",{processor:ue,default:uP(s)}),F("color_cols_foreground",{processor:ue,default:FF(s,X5)}),F("color_cols_background",{processor:ue,default:FF(s,n4)}),F("custom_colors",{processor:"boolean",default:!0}),F("color_default_foreground",{processor:"string",default:cP}),F("color_default_background",{processor:"string",default:cP})},TC=(s,F)=>F===X5&&s.options.isSet("color_map_foreground")?Ly("color_map_foreground")(s):F===n4&&s.options.isSet("color_map_background")?Ly("color_map_background")(s):Ly("color_map")(s),uP=(s,F="default")=>Math.max(zF,Math.ceil(Math.sqrt(TC(s,F).length))),FF=(s,F)=>{const Z=Ly("color_cols")(s),ue=uP(s,F);return Z===uP(s)?ue:Z},NF=(s,F="default")=>Math.round((()=>F===X5?Ly("color_cols_foreground")(s):F===n4?Ly("color_cols_background")(s):Ly("color_cols")(s))()),$F=Ly("custom_colors"),pX=Ly("color_default_foreground"),mX=Ly("color_default_background"),gX="rgba(0, 0, 0, 0)",vX=s=>_C(s).exists(F=>F.alpha!==0),VF=s=>E0(s,F=>{if(Kn(F)){const Z=Aa(F,"background-color");return _t(vX(Z),Z)}else return I.none()}).getOr(gX),UF=(s,F)=>{const Z=Pt.fromDom(s.selection.getStart()),ue=F==="hilitecolor"?VF(Z):Aa(Z,"color");return _C(ue).map(we=>"#"+W5(we).value)},yX=(s,F,Z)=>{s.undoManager.transact(()=>{s.focus(),s.formatter.apply(F,{value:Z}),s.nodeChanged()})},Iy=(s,F)=>{s.undoManager.transact(()=>{s.focus(),s.formatter.remove(F,{value:null},void 0,!0),s.nodeChanged()})},bX=s=>{s.addCommand("mceApplyTextcolor",(F,Z)=>{yX(s,F,Z)}),s.addCommand("mceRemoveTextcolor",F=>{Iy(s,F)})},jF=s=>{const F="choiceitem",Z={type:F,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return s?[Z,{type:F,text:"Custom color",icon:"color-picker",value:"custom"}]:[Z]},G5=(s,F,Z,ue)=>{Z==="custom"?YF(s)(Be=>{Be.each(qe=>{SC(F,qe),s.execCommand("mceApplyTextcolor",F,qe),ue(qe)})},UF(s,F).getOr(cP)):Z==="remove"?(ue(""),s.execCommand("mceRemoveTextcolor",F)):(ue(Z),s.execCommand("mceApplyTextcolor",F,Z))},hf=(s,F,Z)=>s.concat(OC(F).concat(jF(Z))),QF=(s,F,Z)=>ue=>{ue(hf(s,F,Z))},fP=(s,F,Z)=>{const ue=F==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";s.setIconFill(ue,Z)},HF=(s,F)=>{s.setTooltip(F)},ZF=(s,F)=>Z=>{const ue=UF(s,F);return wt(ue,Z.toUpperCase())},dP=(s,F,Z)=>{if(at(Z))return F==="forecolor"?"Text color":"Background color";const ue=F==="forecolor"?"Text color {0}":"Background color {0}",we=hf(TC(s,F),F,!1),Be=ce(we,qe=>qe.value===Z).getOr({text:""}).text;return s.translate([ue,s.translate(Be)])},qF=(s,F,Z,ue)=>{s.ui.registry.addSplitButton(F,{tooltip:dP(s,Z,ue.get()),presets:"color",icon:F==="forecolor"?"text-color":"highlight-bg-color",select:ZF(s,Z),columns:NF(s,Z),fetch:QF(TC(s,Z),Z,$F(s)),onAction:we=>{G5(s,Z,ue.get(),v)},onItemAction:(we,Be)=>{G5(s,Z,Be,qe=>{ue.set(qe),EF(s,{name:F,color:qe})})},onSetup:we=>{fP(we,F,ue.get());const Be=qe=>{qe.name===F&&(fP(we,qe.name,qe.color),HF(we,dP(s,Z,qe.color)))};return s.on("TextColorChange",Be),t4(Gh(s)(we),()=>{s.off("TextColorChange",Be)})}})},WF=(s,F,Z,ue,we)=>{s.ui.registry.addNestedMenuItem(F,{text:ue,icon:F==="forecolor"?"text-color":"highlight-bg-color",onSetup:Be=>(HF(Be,dP(s,Z,we.get())),fP(Be,F,we.get()),Gh(s)(Be)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:ZF(s,Z),initData:{storageKey:Z},onAction:Be=>{G5(s,Z,Be.value,qe=>{we.set(qe),EF(s,{name:F,color:qe})})}}]})},YF=s=>(F,Z)=>{let ue=!1;const we=ft=>{const At=ft.getData().colorpicker;ue?(F(I.from(At)),ft.close()):s.windowManager.alert(s.translate(["Invalid hex color code: {0}",At]))},Be=(ft,gt)=>{gt.name==="hex-valid"&&(ue=gt.value)},qe={colorpicker:Z};s.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:qe,onAction:Be,onSubmit:we,onClose:v,onCancel:()=>{F(I.none())}})},xX=s=>{bX(s);const F=pX(s),Z=mX(s),ue=xi(F),we=xi(Z);qF(s,"forecolor","forecolor",ue),qF(s,"backcolor","hilitecolor",we),WF(s,"forecolor","forecolor","Text color",ue),WF(s,"backcolor","hilitecolor","Background color",we)},hP=(s,F,Z,ue,we,Be,qe,ft)=>{const gt=$5(F),$t=_X(F,Z,ue,we!=="color"?"normal":"color",Be,qe,ft);return $7(s,gt,$t,ue,{menuType:we})},_X=(s,F,Z,ue,we,Be,qe)=>It(oe(s,ft=>ft.type==="choiceitem"?X7(ft).fold(Jb,gt=>I.some(rP(gt,Z===1,ue,F,Be(gt.value),we,qe,$5(s)))):I.none())),CC=(s,F)=>{const Z=M2(F);return s===1?{mode:"menu",moveOnTab:!0}:s==="auto"?{mode:"grid",selector:"."+Z.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(F==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:we=>F==="color"?aa(we.element,"[aria-checked=true]"):I.none()}},wX=(s,F)=>s===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:s==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:F==="color"?".tox-swatches__row":".tox-collection__group",cell:F==="color"?`.${T7}`:`.${G6}`}},OX=(s,F)=>{const Z=SX(s,F),ue=F.colorinput.getColorCols(s.initData.storageKey),we="color",qe={...hP(fi("menu-value"),Z,ft=>{s.onAction({value:ft})},ue,we,r1.CLOSE_ON_EXECUTE,s.select.getOr(D),F.shared.providers),markers:M2(we),movement:CC(ue,we),showMenuRole:!1};return{type:"widget",data:{value:fi("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[yC.widget(Pw.sketch(qe))]}},SX=(s,F)=>{const Z=s.initData.allowCustomColors&&F.colorinput.hasCustomColors();return s.initData.colors.fold(()=>hf(F.colorinput.getColors(s.initData.storageKey),s.initData.storageKey,Z),ue=>ue.concat(jF(Z)))},XF=fi("cell-over"),GF=fi("cell-execute"),kX=s=>(F,Z)=>s.shared.providers.translate(["{0} columns, {1} rows",Z,F]),TX=(s,F,Z)=>{const ue=qe=>Ri(qe,XF,{row:s,col:F}),we=qe=>Ri(qe,GF,{row:s,col:F}),Be=(qe,ft)=>{ft.stop(),we(qe)};return vi({dom:{tag:"div",attributes:{role:"button","aria-label":Z}},behaviours:Do([Ta("insert-table-picker-cell",[fo(Om(),oa.focus),fo(cp(),we),fo(R0(),Be),fo(up(),Be)]),za.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),oa.config({onFocus:ue})])})},CX=(s,F,Z)=>{const ue=[];for(let we=0;we{for(let Be=0;Beye(s,F=>oe(F,na)),KF=(s,F)=>ro(`${F}x${s}`),EX={inserttable:(s,F)=>{const we=kX(F),Be=CX(we,10,10),qe=KF(0,0),ft=qs({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[qe],behaviours:Do([da.config({})])});return{type:"widget",data:{value:fi("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[yC.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:MX(Be).concat(ft.asSpec()),behaviours:Do([Ta("insert-table-picker",[Ll(gt=>{da.set(ft.get(gt),[qe])}),L_(XF,(gt,At,$t)=>{const{row:on,col:yn}=$t.event;AX(Be,on,yn,10,10),da.set(ft.get(gt),[KF(on+1,yn+1)])}),L_(GF,(gt,At,$t)=>{const{row:on,col:yn}=$t.event;s.onAction({numRows:on+1,numColumns:yn+1}),Sa(gt,L0())})]),Li.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:OX},JF=(s,F)=>Ge(EX,s.fancytype).map(Z=>Z(s,F)),PX=(s,F,Z,ue=!0,we=!1)=>{const Be=we?fF(Z.icons):WY(Z.icons),qe=gt=>({isEnabled:()=>!ea.isDisabled(gt),setEnabled:At=>ea.set(gt,!At),setIconFill:(At,$t)=>{aa(gt.element,`svg path[class="${At}"], rect[class="${At}"]`).each(on=>{fr(on,"fill",$t)})},setTooltip:At=>{const $t=Z.translate(At);fr(gt.element,"aria-label",$t)}}),ft=Ry({presets:"normal",iconContent:s.icon,textContent:s.text,htmlContent:I.none(),ariaLabel:s.text,caret:I.some(Be),checkMark:I.none(),shortcutContent:s.shortcut},Z,ue);return Qw({data:J3(s),getApi:qe,enabled:s.enabled,onAction:v,onSetup:s.onSetup,triggersSubmenu:!0,itemBehaviours:[]},ft,F,Z)},eN=(s,F,Z,ue=!0)=>{const we=qe=>({isEnabled:()=>!ea.isDisabled(qe),setEnabled:ft=>ea.set(qe,!ft)}),Be=Ry({presets:"normal",iconContent:s.icon,textContent:s.text,htmlContent:I.none(),ariaLabel:s.text,caret:I.none(),checkMark:I.none(),shortcutContent:s.shortcut},Z,ue);return Qw({data:J3(s),getApi:we,enabled:s.enabled,onAction:s.onAction,onSetup:s.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,F,Z)},RX=s=>({type:"separator",dom:{tag:"div",classes:[G6,C7]},components:s.text.map(ro).toArray()}),LX=(s,F,Z,ue=!0)=>{const we=qe=>({setActive:ft=>{za.set(qe,ft)},isActive:()=>za.isOn(qe),isEnabled:()=>!ea.isDisabled(qe),setEnabled:ft=>ea.set(qe,!ft)}),Be=Ry({iconContent:s.icon,textContent:s.text,htmlContent:I.none(),ariaLabel:s.text,checkMark:I.some(uF(Z.icons)),caret:I.none(),shortcutContent:s.shortcut,presets:"normal",meta:s.meta},Z,ue);return nl(Qw({data:J3(s),enabled:s.enabled,getApi:we,onAction:s.onAction,onSetup:s.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,F,Z),{toggling:{toggleClass:K6,toggleOnExecute:!1,selected:s.active},role:s.role.getOrUndefined()})},IX=vF,pP=RX,DX=eN,BX=PX,zX=LX,FX=JF,tN=nP;var $X=Object.freeze({__proto__:null,getCoupled:(s,F,Z,ue)=>Z.getOrCreate(s,F,ue),getExistingCoupled:(s,F,Z,ue)=>Z.getExisting(s,F,ue)}),nN=[rr("others",Et(Hi.value,le()))],VX=Object.freeze({__proto__:null,init:()=>{const s={},F=(Be,qe)=>{if(ke(Be.others).length===0)throw new Error("Cannot find any known coupled components");return Ge(s,qe)},Z=(Be,qe,ft)=>F(qe,ft).getOrThunk(()=>{const At=Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft)(Be),$t=Be.getSystem().build(At);return s[ft]=$t,$t}),ue=(Be,qe,ft)=>F(qe,ft).orThunk(()=>(Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft),I.none())),we=x({});return kh({readState:we,getExisting:ue,getOrCreate:Z})}});const lu=lf({fields:nN,name:"coupling",apis:$X,state:VX}),mP=s=>{let F=I.none(),Z=[];const ue=At=>mP($t=>{we(on=>{$t(At(on))})}),we=At=>{qe()?gt(At):Z.push(At)},Be=At=>{qe()||(F=I.some(At),ft(Z),Z=[])},qe=()=>F.isSome(),ft=At=>{q(At,gt)},gt=At=>{F.each($t=>{setTimeout(()=>{At($t)},0)})};return s(Be),{get:we,map:ue,isReady:qe}},UX={nu:mP,pure:s=>mP(F=>{F(s)})},jX=s=>{setTimeout(()=>{throw s},0)},r4=s=>{const F=gt=>{s().then(gt,jX)};return{map:gt=>r4(()=>s().then(gt)),bind:gt=>r4(()=>s().then(At=>gt(At).toPromise())),anonBind:gt=>r4(()=>s().then(()=>gt.toPromise())),toLazy:()=>UX.nu(F),toCached:()=>{let gt=null;return r4(()=>(gt===null&&(gt=s()),gt))},toPromise:s,get:F}},uh={nu:s=>r4(()=>new Promise(s)),pure:s=>r4(()=>Promise.resolve(s))},rN=x("sink"),oN=x(Jp({name:rN(),overrides:x({dom:{tag:"div"},behaviours:Do([ed.config({useFixed:k})]),events:hl([Am(Bp()),Am(Oh()),Am(R0())])})})),gP=(s,F)=>{const Z=s.getHotspot(F).getOr(F),ue="hotspot",we=s.getAnchorOverrides();return s.layouts.fold(()=>({type:ue,hotspot:Z,overrides:we}),Be=>({type:ue,hotspot:Z,overrides:we,layouts:Be}))},QX=(s,F,Z)=>{const ue=s.fetch;return ue(Z).map(F)},HX=(s,F,Z,ue,we,Be,qe)=>{const ft=QX(s,F,ue),gt=iN(ue,s);return ft.map(At=>At.bind($t=>{const on=$t.menus[$t.primary];return I.from(on).each(yn=>{s.listRole.each(wn=>{yn.role=wn})}),I.from(Rw.sketch({...Be.menu(),uid:j0(""),data:$t,highlightOnOpen:qe,onOpenMenu:(yn,wn)=>{const Mn=gt().getOrDie();ed.position(Mn,wn,{anchor:Z}),hs.decloak(we)},onOpenSubmenu:(yn,wn,Mn)=>{const Xn=gt().getOrDie();ed.position(Xn,Mn,{anchor:{type:"submenu",item:wn}}),hs.decloak(we)},onRepositionMenu:(yn,wn,Mn)=>{const Xn=gt().getOrDie();ed.position(Xn,wn,{anchor:Z}),q(Mn,Br=>{ed.position(Xn,Br.triggeredMenu,{anchor:{type:"submenu",item:Br.triggeringItem}})})},onEscape:()=>(oa.focus(ue),hs.close(we),I.some(!0))}))}))},AC=(s,F,Z,ue,we,Be,qe)=>{const ft=gP(s,Z);return HX(s,F,ft,Z,ue,we,qe).map(At=>(At.fold(()=>{hs.isOpen(ue)&&hs.close(ue)},$t=>{hs.cloak(ue),hs.open(ue,$t),Be(ue)}),ue))},ZX=(s,F,Z,ue,we,Be,qe)=>(hs.close(ue),uh.pure(ue)),vP=(s,F,Z,ue,we,Be)=>{const qe=lu.getCoupled(Z,"sandbox");return(hs.isOpen(qe)?ZX:AC)(s,F,Z,qe,ue,we,Be)},yP=(s,F,Z)=>{const ue=as.getCurrent(F).getOr(F),we=cc(s.element);Z?ko(ue.element,"min-width",we+"px"):sa(ue.element,we)},iN=(s,F)=>s.getSystem().getByUid(F.uid+"-"+rN()).map(Z=>()=>Hi.value(Z)).getOrThunk(()=>F.lazySink.fold(()=>()=>Hi.error(new Error("No internal sink is specified, nor could an external sink be found")),Z=>()=>Z(s))),aN=s=>{hs.getState(s).each(F=>{Rw.repositionMenus(F)})},bP=(s,F,Z)=>{const ue=xu(),we=(ft,gt)=>{const At=gP(s,F);ue.link(F.element),s.matchWidth&&yP(At.hotspot,gt,s.useMinWidth),s.onOpen(At,ft,gt),Z!==void 0&&Z.onOpen!==void 0&&Z.onOpen(ft,gt)},Be=(ft,gt)=>{ue.unlink(F.element),qe().getOr(gt).element.dom.dispatchEvent(new window.FocusEvent("focusout")),Z!==void 0&&Z.onClose!==void 0&&Z.onClose(ft,gt)},qe=iN(F,s);return{dom:{tag:"div",classes:s.sandboxClasses,attributes:{id:ue.id}},behaviours:Vm.augment(s.sandboxBehaviours,[hi.config({store:{mode:"memory",initialValue:F}}),hs.config({onOpen:we,onClose:Be,isPartOf:(ft,gt,At)=>Vc(gt,At)||Vc(F,At),getAttachPoint:()=>qe().getOrDie()}),as.config({find:ft=>hs.getState(ft).bind(gt=>as.getCurrent(gt))}),Wu.config({channels:{...uv({isExtraPart:D}),..._3({doReposition:aN})}})])}},xP=s=>{const F=lu.getCoupled(s,"sandbox");aN(F)},MC=()=>[mr("sandboxClasses",[]),Vm.field("sandboxBehaviours",[as,Wu,hs,hi])],qX=x([Sn("dom"),Sn("fetch"),Ra("onOpen"),yd("onExecute"),mr("getHotspot",I.some),mr("getAnchorOverrides",x({})),l0(),Ef("dropdownBehaviours",[za,lu,Li,oa]),Sn("toggleClass"),mr("eventOrder",{}),Hr("lazySink"),mr("matchWidth",!1),mr("useMinWidth",!1),Hr("role"),Hr("listRole")].concat(MC())),WX=x([Um({schema:[U0(),mr("fakeFocus",!1)],name:"menu",defaults:s=>({onExecute:s.onExecute})}),oN()]),sN=(s,F,Z,ue)=>{const we=$t=>Ge(s.dom,"attributes").bind(on=>Ge(on,$t)),Be=$t=>{hs.getState($t).each(on=>{Rw.highlightPrimary(on)})},qe=($t,on,yn)=>vP(s,R,$t,ue,on,yn),ft=$t=>{qe($t,Be,Xh.HighlightMenuAndItem).get(v)},gt={expand:$t=>{za.isOn($t)||qe($t,v,Xh.HighlightNone).get(v)},open:$t=>{za.isOn($t)||qe($t,v,Xh.HighlightMenuAndItem).get(v)},refetch:$t=>lu.getExistingCoupled($t,"sandbox").fold(()=>qe($t,v,Xh.HighlightMenuAndItem).map(v),yn=>AC(s,R,$t,yn,ue,v,Xh.HighlightMenuAndItem).map(v)),isOpen:za.isOn,close:$t=>{za.isOn($t)&&qe($t,v,Xh.HighlightMenuAndItem).get(v)},repositionMenus:$t=>{za.isOn($t)&&xP($t)}},At=($t,on)=>(Fp($t),I.some(!0));return{uid:s.uid,dom:s.dom,components:F,behaviours:Pf(s.dropdownBehaviours,[za.config({toggleClass:s.toggleClass,aria:{mode:"expanded"}}),lu.config({others:{sandbox:$t=>bP(s,$t,{onOpen:()=>za.on($t),onClose:()=>za.off($t)})}}),Li.config({mode:"special",onSpace:At,onEnter:At,onDown:($t,on)=>{if(p0.isOpen($t)){const yn=lu.getCoupled($t,"sandbox");Be(yn)}else p0.open($t);return I.some(!0)},onEscape:($t,on)=>p0.isOpen($t)?(p0.close($t),I.some(!0)):I.none()}),oa.config({})]),events:k6(I.some(ft)),eventOrder:{...s.eventOrder,[cp()]:["disabling","toggling","alloy.base.behaviour"]},apis:gt,domModification:{attributes:{"aria-haspopup":s.listRole.getOr("true"),...s.role.fold(()=>({}),$t=>({role:$t})),...s.dom.tag==="button"?{type:we("type").getOr("button")}:{}}}}},p0=ch({name:"Dropdown",configFields:qX(),partFields:WX(),factory:sN,apis:{open:(s,F)=>s.open(F),refetch:(s,F)=>s.refetch(F),expand:(s,F)=>s.expand(F),close:(s,F)=>s.close(F),isOpen:(s,F)=>s.isOpen(F),repositionMenus:(s,F)=>s.repositionMenus(F)}}),YX=s=>{switch(s.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:s}}},XX=s=>{const F=hi.getValue(s),Z=E2(s).map(Uz);p0.refetch(F).get(()=>{const ue=lu.getCoupled(F,"sandbox");Z.each(we=>E2(ue).each(Be=>_Y(Be,we)))})},GX=(s,F)=>{KX(s).each(Z=>{T1(s,Z.element,F.event.eventType,F.event.interactionEvent)})},KX=s=>hs.getState(s).bind(ri.getHighlighted).bind(ri.getHighlighted),JX=s=>$l(s.element,tC)?I.some(s.element):aa(s.element,"."+tC),K5=(s,F,Z)=>{z7(s).each(ue=>{wY(ue,Z),JX(F).each(Be=>{co(Be,"id").each(qe=>fr(ue.element,"aria-controls",qe))})}),fr(Z.element,"aria-selected","true")},eG=(s,F,Z)=>{fr(Z.element,"aria-selected","false")},EC=s=>{z7(s).each(F=>oa.focus(F))},tG=s=>lu.getExistingCoupled(s,"sandbox").bind(E2).map(Uz).map(Z=>Z.fetchPattern).getOr("");var PC;(function(s){s[s.ContentFocus=0]="ContentFocus",s[s.UiFocus=1]="UiFocus"})(PC||(PC={}));const nG=(s,F,Z,ue,we)=>{const Be=Z.shared.providers,qe=ft=>we?{...ft,shortcut:I.none(),icon:ft.text.isSome()?I.none():ft.icon}:ft;switch(s.type){case"menuitem":return NY(s).fold(Jb,ft=>I.some(DX(qe(ft),F,Be,ue)));case"nestedmenuitem":return VY(s).fold(Jb,ft=>I.some(BX(qe(ft),F,Be,ue,we)));case"togglemenuitem":return jY(s).fold(Jb,ft=>I.some(zX(qe(ft),F,Be,ue)));case"separator":return Jz(s).fold(Jb,ft=>I.some(pP(ft)));case"fancymenuitem":return iF(s).fold(Jb,ft=>FX(ft,Z));default:return console.error("Unknown item in general menu",s),I.none()}},rG=(s,F,Z,ue,we,Be,qe)=>{const ft=ue===1,gt=!ft||$5(s);return It(oe(s,At=>{switch(At.type){case"separator":return PY(At).fold(Jb,$t=>I.some(pP($t)));case"cardmenuitem":return Y7(At).fold(Jb,$t=>I.some(tN({...$t,onAction:on=>{$t.onAction(on),Z($t.value,$t.meta)}},we,Be,{itemBehaviours:mF($t.meta,Be,I.none()),cardText:{matchText:F,highlightOn:qe}})));case"autocompleteitem":default:return RY(At).fold(Jb,$t=>I.some(IX($t,F,ft,"normal",Z,we,Be,gt)))}}))},oG=(s,F,Z,ue,we,Be)=>{const qe=$5(F),ft=It(oe(F,$t=>{const on=wn=>we?!ht(wn,"text"):qe,yn=wn=>nG(wn,Z,ue,on(wn),we);return $t.type==="nestedmenuitem"&&$t.getSubmenuItems().length<=0?yn({...$t,enabled:!1}):yn($t)})),gt=YX(Be);return(we?kY:$7)(s,qe,ft,1,gt)},o4=s=>Rw.singleData(s.value,s),i4=(s,F,Z,ue)=>{const we=CC(F,ue),Be=M2(ue);return{data:o4({...s,movement:we,menuBehaviours:K3.unnamedEvents(F!=="auto"?[]:[Ll((qe,ft)=>{hC(qe,4,Be.item).each(({numColumns:gt,numRows:At})=>{Li.setGridSize(qe,At,gt)})})])}),menu:{markers:M2(ue),fakeFocus:Z===PC.ContentFocus}}},lN=s=>a2.create(Pt.fromDom(s.startContainer),s.startOffset,Pt.fromDom(s.endContainer),s.endOffset),aG={register:(s,F)=>{const Z=fi("autocompleter"),ue=xi(!1),we=xi(!1),Be=os(),qe=vi(hc.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:Z}},components:[],fireDismissalEventInstead:{},inlineBehaviours:Do([Ta("dismissAutocompleter",[fo(I0(),()=>on()),fo(Cm(),(or,Mr)=>{co(Mr.event.target,"id").each(kr=>fr(Pt.fromDom(s.getBody()),"aria-activedescendant",kr))})])]),lazySink:F.getSink})),ft=()=>hc.isOpen(qe),gt=we.get,At=()=>{if(ft()){hc.hide(qe),s.dom.remove(Z,!1);const or=Pt.fromDom(s.getBody());co(or,"aria-owns").filter(Mr=>Mr===Z).each(()=>{po(or,"aria-owns"),po(or,"aria-activedescendant")})}},$t=()=>hc.getContent(qe).bind(or=>De(or.components(),0)),on=()=>s.execCommand("mceAutocompleterClose"),yn=or=>{const Mr=Oe(or,kr=>I.from(kr.columns)).getOr(1);return ye(or,kr=>{const yo=kr.items;return rG(yo,kr.matchText,(Xr,No)=>{const Jo={hide:()=>on(),reload:ho=>{At(),s.execCommand("mceAutocompleterReload",!1,{fetchOptions:ho})}};s.execCommand("mceAutocompleterRefreshActiveRange"),Be.get().each(ho=>{ue.set(!0),kr.onAction(Jo,ho,Xr,No),ue.set(!1)})},Mr,r1.BUBBLE_TO_SANDBOX,F,kr.highlightOn)})},wn=(or,Mr)=>{const kr=Oe(or,yo=>I.from(yo.columns)).getOr(1);hc.showMenuAt(qe,{anchor:{type:"selection",getSelection:()=>Be.get().map(lN),root:Pt.fromDom(s.getBody())}},i4($7("autocompleter-value",!0,Mr,kr,{menuType:"normal"}),kr,PC.ContentFocus,"normal")),$t().each(ri.highlightFirst)},Mn=or=>{const Mr=yn(or);Mr.length>0?(wn(or,Mr),fr(Pt.fromDom(s.getBody()),"aria-owns",Z),s.inline||Xn()):At()},Xn=()=>{s.dom.get(Z)&&s.dom.remove(Z,!1);const or=s.getDoc().documentElement,Mr=s.selection.getNode(),kr=_S(qe.element);ra(kr,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${Mr.offsetTop}px`,left:`${Mr.offsetLeft}px`}),s.dom.add(or,kr.dom),aa(kr,'[role="menu"]').each(yo=>{ma(yo,"position"),ma(yo,"max-height")})};s.on("AutocompleterStart",({lookupData:or})=>{we.set(!0),ue.set(!1),Mn(or)}),s.on("AutocompleterUpdate",({lookupData:or})=>Mn(or)),s.on("AutocompleterUpdateActiveRange",({range:or})=>Be.set(or)),s.on("AutocompleterEnd",()=>{At(),we.set(!1),ue.set(!1),Be.clear()});const Br={cancelIfNecessary:on,isMenuOpen:ft,isActive:gt,isProcessingAction:ue.get,getMenu:$t};Rz.setup(Br,s)}},J5=(s,F,Z)=>Fs(s,F,Z).isSome(),cN=(s,F)=>{let Z=null;return{cancel:()=>{Z!==null&&(clearTimeout(Z),Z=null)},schedule:(...Be)=>{Z=setTimeout(()=>{s.apply(null,Be),Z=null},F)}}},uN=5,sG=400,fN=s=>{const F=s.raw;return F.touches===void 0||F.touches.length!==1?I.none():I.some(F.touches[0])},lG=(s,F)=>{const Z=Math.abs(s.clientX-F.x),ue=Math.abs(s.clientY-F.y);return Z>uN||ue>uN},cG=s=>{const F=os(),Z=xi(!1),ue=cN(At=>{s.triggerEvent(Xf(),At),Z.set(!0)},sG),we=At=>(fN(At).each($t=>{ue.cancel();const on={x:$t.clientX,y:$t.clientY,target:At.target};ue.schedule(At),Z.set(!1),F.set(on)}),I.none()),Be=At=>(ue.cancel(),fN(At).each($t=>{F.on(on=>{lG($t,on)&&F.clear()})}),I.none()),qe=At=>{ue.cancel();const $t=on=>so(on.target,At.target);return F.get().filter($t).map(on=>Z.get()?(At.prevent(),!1):s.triggerEvent(up(),At))},ft=hd([{key:_m(),value:we},{key:Yg(),value:Be},{key:wm(),value:qe}]);return{fireIfReady:(At,$t)=>Ge(ft,$t).bind(on=>on(At))}},uG=s=>s.raw.which===Ms[0]&&!X(["input","textarea"],ar(s.target))&&!J5(s.target,'[contenteditable="true"]'),fG=(s,F)=>{const Z={stopBackspace:!0,...F},ue=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],we=cG(Z),Be=oe(ue.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),wn=>_d(s,wn,Mn=>{we.fireIfReady(Mn,wn).each(Br=>{Br&&Mn.kill()}),Z.triggerEvent(wn,Mn)&&Mn.kill()})),qe=os(),ft=_d(s,"paste",wn=>{we.fireIfReady(wn,"paste").each(Xn=>{Xn&&wn.kill()}),Z.triggerEvent("paste",wn)&&wn.kill(),qe.set(setTimeout(()=>{Z.triggerEvent(Gg(),wn)},0))}),gt=_d(s,"keydown",wn=>{Z.triggerEvent("keydown",wn)?wn.kill():Z.stopBackspace&&uG(wn)&&wn.prevent()}),At=_d(s,"focusin",wn=>{Z.triggerEvent("focusin",wn)&&wn.kill()}),$t=os(),on=_d(s,"focusout",wn=>{Z.triggerEvent("focusout",wn)&&wn.kill(),$t.set(setTimeout(()=>{Z.triggerEvent(Xg(),wn)},0))});return{unbind:()=>{q(Be,wn=>{wn.unbind()}),gt.unbind(),At.unbind(),on.unbind(),ft.unbind(),qe.on(clearTimeout),$t.on(clearTimeout)}}},dN=(s,F)=>{const Z=Ge(s,"target").getOr(F);return xi(Z)},hN=(s,F)=>{const Z=xi(!1),ue=xi(!1);return{stop:()=>{Z.set(!0)},cut:()=>{ue.set(!0)},isStopped:Z.get,isCut:ue.get,event:s,setSource:F.set,getSource:F.get}},a4=s=>{const F=xi(!1);return{stop:()=>{F.set(!0)},cut:v,isStopped:F.get,isCut:D,event:s,setSource:C("Cannot set source of a broadcasted event"),getSource:C("Cannot get source of a broadcasted event")}},yv=Ds.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),pN=(s,F,Z,ue,we,Be)=>{const qe=s(F,ue),ft=hN(Z,we);return qe.fold(()=>(Be.logEventNoHandlers(F,ue),yv.complete()),gt=>{const At=gt.descHandler;return qh(At)(ft),ft.isStopped()?(Be.logEventStopped(F,gt.element,At.purpose),yv.stopped()):ft.isCut()?(Be.logEventCut(F,gt.element,At.purpose),yv.complete()):br(gt.element).fold(()=>(Be.logNoParent(F,gt.element,At.purpose),yv.complete()),on=>(Be.logEventResponse(F,gt.element,At.purpose),yv.resume(on)))})},_P=(s,F,Z,ue,we,Be)=>pN(s,F,Z,ue,we,Be).fold(k,qe=>_P(s,F,Z,qe,we,Be),D),mN=(s,F,Z,ue,we)=>{const Be=dN(Z,ue);return pN(s,F,Z,ue,Be,we)},RC=(s,F,Z)=>{const ue=a4(F);return q(s,we=>{const Be=we.descHandler;qh(Be)(ue)}),ue.isStopped()},dG=(s,F,Z,ue)=>s4(s,F,Z,Z.target,ue),s4=(s,F,Z,ue,we)=>{const Be=dN(Z,ue);return _P(s,F,Z,ue,Be,we)},ek=(s,F)=>({element:s,descHandler:F}),hG=(s,F)=>({id:s,descHandler:F}),pG=()=>{const s={},F=(qe,ft,gt)=>{We(gt,(At,$t)=>{const on=s[$t]!==void 0?s[$t]:{};on[ft]=Lm(At,qe),s[$t]=on})},Z=(qe,ft)=>sy(ft).bind(gt=>Ge(qe,gt)).map(gt=>ek(ft,gt));return{registerId:F,unregisterId:qe=>{We(s,(ft,gt)=>{ht(ft,qe)&&delete ft[qe]})},filterByType:qe=>Ge(s,qe).map(ft=>je(ft,(gt,At)=>hG(At,gt))).getOr([]),find:(qe,ft,gt)=>Ge(s,ft).bind(At=>E0(gt,$t=>Z(At,$t),qe))}},mG=()=>{const s=pG(),F={},Z=At=>{const $t=At.element;return sy($t).getOrThunk(()=>kS("uid-",At.element))},ue=(At,$t)=>{const on=F[$t];if(on===At)Be(At);else throw new Error('The tagId "'+$t+'" is already used by: '+rh(on.element)+` +Components: `+JSON.stringify(F.components,null,2))}),Be},Sy=qb.single,bw=qb.multiple,xw=x(o5),C3=Ds.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),gp=mr("factory",{sketch:R}),J0=mr("schema",[]),ky=Sn("name"),Ty=Ln("pname","pname",Xi(s=>""),le()),rE=On("schema",()=>[Hr("preprocess")]),A3=mr("defaults",x({})),M3=mr("overrides",x({})),oE=Mi([gp,J0,ky,Ty,A3,M3]),iE=Mi([gp,J0,ky,A3,M3]),aE=Mi([gp,J0,ky,Ty,A3,M3]),sE=Mi([gp,rE,ky,Sn("unit"),Ty,A3,M3]),r6=s=>s.fold(I.some,I.none,I.some,I.some),E3=s=>{const F=Z=>Z.name;return s.fold(F,F,F,F)},lE=s=>s.fold(R,R,R,R),P3=(s,F)=>Z=>{const ue=cn("Converting part type",F,Z);return s(ue)},kd=P3(C3.required,oE),Um=P3(C3.external,iE),Jp=P3(C3.optional,aE),R3=P3(C3.group,sE),L3=x("entirety");var o6=Object.freeze({__proto__:null,required:kd,external:Um,optional:Jp,group:R3,asNamedPart:r6,name:E3,asCommon:lE,original:L3});const i5=(s,F,Z,ue)=>nl(F.defaults(s,Z,ue),Z,{uid:s.partUids[F.name]},F.overrides(s,Z,ue)),i6=(s,F,Z)=>{const ue={},we={};return q(Z,Be=>{Be.fold(qe=>{ue[qe.pname]=Sy(!0,(ft,gt,At)=>qe.factory.sketch(i5(ft,qe,gt,At)))},qe=>{const ft=F.parts[qe.name];we[qe.name]=x(qe.factory.sketch(i5(F,qe,ft[L3()]),ft))},qe=>{ue[qe.pname]=Sy(!1,(ft,gt,At)=>qe.factory.sketch(i5(ft,qe,gt,At)))},qe=>{ue[qe.pname]=bw(!0,(ft,gt,At)=>{const $t=ft[qe.name];return oe($t,on=>qe.factory.sketch(nl(qe.defaults(ft,on,At),on,qe.overrides(ft,on))))})})}),{internals:x(ue),externals:x(we)}},a5=(s,F)=>{const Z={};return q(F,ue=>{r6(ue).each(we=>{const Be=a6(s,we.pname);Z[we.name]=qe=>{const ft=cn("Part: "+we.name+" in "+s,Mi(we.schema),qe);return{...Be,config:qe,validated:ft}}})}),Z},a6=(s,F)=>({uiType:xw(),owner:s,name:F}),s6=(s,F,Z)=>({uiType:xw(),owner:s,name:F,config:Z,validated:{}}),cE=s=>ye(s,F=>F.fold(I.none,I.some,I.none,I.none).map(Z=>zo(Z.name,Z.schema.concat([WO(L3())]))).toArray()),uE=s=>oe(s,E3),I3=(s,F,Z)=>i6(s,F,Z),s5=(s,F,Z)=>nE(I.some(s),F,F.components,Z),Fo=(s,F,Z)=>{const ue=F.partUids[Z];return s.getSystem().getByUid(ue).toOptional()},Ph=(s,F,Z)=>Fo(s,F,Z).getOrDie("Could not find part: "+Z),l6=(s,F,Z)=>{const ue={},we=F.partUids,Be=s.getSystem();return q(Z,qe=>{ue[qe]=x(Be.getByUid(we[qe]))}),ue},l5=(s,F)=>{const Z=s.getSystem();return Ue(F.partUids,(ue,we)=>x(Z.getByUid(ue)))},_w=s=>ke(s.partUids),ww=(s,F,Z)=>{const ue={},we=F.partUids,Be=s.getSystem();return q(Z,qe=>{ue[qe]=x(Be.getByUid(we[qe]).getOrDie())}),ue},D3=(s,F)=>{const Z=uE(F);return pd(oe(Z,ue=>({key:ue,value:s+"-"+ue})))},Ow=s=>Ln("partUids","partUids",bu(F=>D3(F.uid,s)),le());var c6=Object.freeze({__proto__:null,generate:a5,generateOne:s6,schemas:cE,names:uE,substitutes:I3,components:s5,defaultUids:D3,defaultUidsSchema:Ow,getAllParts:l5,getAllPartNames:_w,getPart:Fo,getPartOrDie:Ph,getParts:l6,getPartsOrDie:ww});const u6=(s,F)=>(s.length>0?[zo("parts",s)]:[]).concat([Sn("uid"),mr("dom",{}),mr("components",[]),WO("originalSpec"),mr("debug.sketcher",{})]).concat(F),c5=(s,F,Z,ue,we)=>{const Be=u6(ue,we);return cn(s+" [SpecSchema]",Ol(Be.concat(F)),Z)},u5=(s,F,Z,ue)=>{const we=f6(ue),Be=c5(s,F,we,[],[]);return Z(Be,we)},pv=(s,F,Z,ue,we)=>{const Be=f6(we),qe=cE(Z),ft=Ow(Z),gt=c5(s,F,Be,qe,[ft]),At=I3(s,gt,Z),$t=s5(s,gt,At.internals());return ue(gt,$t,Be,At.externals())},f5=s=>ht(s,"uid"),f6=s=>f5(s)?s:{...s,uid:j0("uid")},fE=s=>s.uid!==void 0,dE=Ol([Sn("name"),Sn("factory"),Sn("configFields"),mr("apis",{}),mr("extraApis",{})]),d6=Ol([Sn("name"),Sn("factory"),Sn("configFields"),Sn("partFields"),mr("apis",{}),mr("extraApis",{})]),Yh=s=>{const F=cn("Sketcher for "+s.name,dE,s),Z=Be=>u5(F.name,F.configFields,F.factory,Be),ue=Ue(F.apis,Cc),we=Ue(F.extraApis,(Be,qe)=>Xv(Be,qe));return{name:F.name,configFields:F.configFields,sketch:Z,...ue,...we}},ch=s=>{const F=cn("Sketcher for "+s.name,d6,s),Z=qe=>pv(F.name,F.configFields,F.partFields,F.factory,qe),ue=a5(F.name,F.partFields),we=Ue(F.apis,Cc),Be=Ue(F.extraApis,(qe,ft)=>Xv(qe,ft));return{name:F.name,partFields:F.partFields,configFields:F.configFields,sketch:Z,parts:ue,...we,...Be}},w2=s=>Fr("input")(s)&&ao(s,"type")!=="radio"||Fr("textarea")(s);var hE=Object.freeze({__proto__:null,getCurrent:(s,F,Z)=>F.find(s)});const d5=[Sn("find")],as=lf({fields:d5,name:"composing",apis:hE}),ND=["input","button","textarea","select"],h6=(s,F,Z)=>{(F.disabled()?B3:kw)(s,F)},p6=(s,F)=>F.useNative===!0&&X(ND,ar(s.element)),$D=s=>Go(s.element,"disabled"),Cy=s=>{fr(s.element,"disabled","disabled")},Sw=s=>{po(s.element,"disabled")},pE=s=>ao(s.element,"aria-disabled")==="true",mE=s=>{fr(s.element,"aria-disabled","true")},gE=s=>{fr(s.element,"aria-disabled","false")},B3=(s,F,Z)=>{F.disableClass.each(we=>{Sl(s.element,we)}),(p6(s,F)?Cy:mE)(s),F.onDisabled(s)},kw=(s,F,Z)=>{F.disableClass.each(we=>{fc(s.element,we)}),(p6(s,F)?Sw:gE)(s),F.onEnabled(s)},m6=(s,F)=>p6(s,F)?$D(s):pE(s);var O2=Object.freeze({__proto__:null,enable:kw,disable:B3,isDisabled:m6,onLoad:h6,set:(s,F,Z,ue)=>{(ue?B3:kw)(s,F)}}),g6=Object.freeze({__proto__:null,exhibit:(s,F)=>Cf({classes:F.disabled()?F.disableClass.toArray():[]}),events:(s,F)=>pl([FO(cp(),(Z,ue)=>m6(Z,s)),E1(s,F,h6)])}),vE=[Pa("disabled",D),mr("useNative",!0),Hr("disableClass"),Ra("onDisabled"),Ra("onEnabled")];const ta=lf({fields:vE,name:"disabling",active:g6,apis:O2}),pe=(s,F,Z,ue)=>{const we=$d(s.element,"."+F.highlightClass);q(we,Be=>{te(ue,ft=>so(ft.element,Be))||(fc(Be,F.highlightClass),s.getSystem().getByDom(Be).each(ft=>{F.onDehighlight(s,ft),Sa(ft,D0())}))})},Ce=(s,F,Z)=>pe(s,F,Z,[]),Ye=(s,F,Z,ue)=>{$n(s,F,Z,ue)&&(fc(ue.element,F.highlightClass),F.onDehighlight(s,ue),Sa(ue,D0()))},st=(s,F,Z,ue)=>{pe(s,F,Z,[ue]),$n(s,F,Z,ue)||(Sl(ue.element,F.highlightClass),F.onHighlight(s,ue),Sa(ue,Cm()))},St=(s,F,Z)=>{Ro(s,F).each(ue=>{st(s,F,Z,ue)})},Ut=(s,F,Z)=>{ai(s,F).each(ue=>{st(s,F,Z,ue)})},un=(s,F,Z,ue)=>{Nr(s,F,Z,ue).fold(we=>{throw we},we=>{st(s,F,Z,we)})},Tn=(s,F,Z,ue)=>{const we=To(s,F);ce(we,ue).each(qe=>{st(s,F,Z,qe)})},$n=(s,F,Z,ue)=>$l(ue.element,F.highlightClass),ur=(s,F,Z)=>aa(s.element,"."+F.highlightClass).bind(ue=>s.getSystem().getByDom(ue).toOptional()),Nr=(s,F,Z,ue)=>{const we=$d(s.element,"."+F.itemClass);return I.from(we[ue]).fold(()=>Hi.error(new Error("No element found with index "+ue)),s.getSystem().getByDom)},Ro=(s,F,Z)=>aa(s.element,"."+F.itemClass).bind(ue=>s.getSystem().getByDom(ue).toOptional()),ai=(s,F,Z)=>{const ue=$d(s.element,"."+F.itemClass);return(ue.length>0?I.some(ue[ue.length-1]):I.none()).bind(Be=>s.getSystem().getByDom(Be).toOptional())},Ko=(s,F,Z,ue)=>{const we=$d(s.element,"."+F.itemClass);return de(we,qe=>$l(qe,F.highlightClass)).bind(qe=>{const ft=ac(qe,ue,0,we.length-1);return s.getSystem().getByDom(we[ft]).toOptional()})},Qo=(s,F,Z)=>Ko(s,F,Z,-1),_i=(s,F,Z)=>Ko(s,F,Z,1),To=(s,F,Z)=>{const ue=$d(s.element,"."+F.itemClass);return It(oe(ue,we=>s.getSystem().getByDom(we).toOptional()))};var Zo=Object.freeze({__proto__:null,dehighlightAll:Ce,dehighlight:Ye,highlight:st,highlightFirst:St,highlightLast:Ut,highlightAt:un,highlightBy:Tn,isHighlighted:$n,getHighlighted:ur,getFirst:Ro,getLast:ai,getPrevious:Qo,getNext:_i,getCandidates:To}),Yi=[Sn("highlightClass"),Sn("itemClass"),Ra("onHighlight"),Ra("onDehighlight")];const ri=lf({fields:Yi,name:"highlighting",apis:Zo}),Ms=[8],al=[9],Gs=[13],td=[27],zu=[32],e1=[37],Ay=[38],My=[39],Zs=[40],Rh=(s,F,Z)=>{const ue=Se(s.slice(0,F)),we=Se(s.slice(F+1));return ce(ue.concat(we),Z)},Lh=(s,F,Z)=>{const ue=Se(s.slice(0,F));return ce(ue,Z)},jm=(s,F,Z)=>{const ue=s.slice(0,F),we=s.slice(F+1);return ce(we.concat(ue),Z)},Qm=(s,F,Z)=>{const ue=s.slice(F+1);return ce(ue,Z)},qa=s=>F=>{const Z=F.raw;return X(s,Z.which)},tu=s=>F=>_e(s,Z=>Z(F)),t1=s=>s.raw.shiftKey===!0,Tw=s=>s.raw.ctrlKey===!0,vp=E(t1),xa=(s,F)=>({matches:s,classification:F}),p5=(s,F)=>ce(s,ue=>ue.matches(F)).map(ue=>ue.classification),m5=(s,F,Z)=>{F.exists(we=>Z.exists(Be=>so(Be,we)))||Ri(s,Jg(),{prevFocus:F,newFocus:Z})},z3=()=>{const s=Z=>_d(Z.element);return{get:s,set:(Z,ue)=>{const we=s(Z);Z.getSystem().triggerFocus(ue,Z.element);const Be=s(Z);m5(Z,we,Be)}}},v6=()=>{const s=Z=>ri.getHighlighted(Z).map(ue=>ue.element);return{get:s,set:(Z,ue)=>{const we=s(Z);Z.getSystem().getByDom(ue).fold(v,qe=>{ri.highlight(Z,qe)});const Be=s(Z);m5(Z,we,Be)}}};var Wb;(function(s){s.OnFocusMode="onFocus",s.OnEnterOrSpaceMode="onEnterOrSpace",s.OnApiMode="onApi"})(Wb||(Wb={}));const mv=(s,F,Z,ue,we)=>{const Be=()=>s.concat([mr("focusManager",z3()),bs("focusInside","onFocus",mt(At=>X(["onFocus","onEnterOrSpace","onApi"],At)?Hi.value(At):Hi.error("Invalid value for focusInside"))),Il("handler",gt),Il("state",F),Il("sendFocusIn",we)]),qe=(At,$t,on,yn,wn)=>{const Mn=on(At,$t,yn,wn);return p5(Mn,$t.event).bind(Xn=>Xn(At,$t,yn,wn))},gt={schema:Be,processKey:qe,toEvents:(At,$t)=>{const on=At.focusInside!==Wb.OnFocusMode?I.none():we(At).map(Mn=>fo(km(),(Xn,Br)=>{Mn(Xn,At,$t),Br.stop()})),yn=(Mn,Xn)=>{const Br=qa(zu.concat(Gs))(Xn.event);At.focusInside===Wb.OnEnterOrSpaceMode&&Br&&xm(Mn,Xn)&&we(At).each(or=>{or(Mn,At,$t),Xn.stop()})},wn=[fo(Bp(),(Mn,Xn)=>{qe(Mn,Xn,Z,At,$t).fold(()=>{yn(Mn,Xn)},Br=>{Xn.stop()})}),fo(P0(),(Mn,Xn)=>{qe(Mn,Xn,ue,At,$t).each(Br=>{Xn.stop()})})];return pl(on.toArray().concat(wn))}};return gt},y6=s=>{const F=[Hr("onEscape"),Hr("onEnter"),mr("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),mr("firstTabstop",0),mr("useTabstopAt",k),Hr("visibilitySelector")].concat([s]),Z=(or,Mr)=>{const kr=or.visibilitySelector.bind(yo=>Fs(Mr,yo)).getOr(Mr);return Ql(kr)>0},ue=(or,Mr)=>{const kr=$d(or.element,Mr.selector),yo=me(kr,Xr=>Z(Mr,Xr));return I.from(yo[Mr.firstTabstop])},we=(or,Mr)=>Mr.focusManager.get(or).bind(kr=>Fs(kr,Mr.selector)),Be=(or,Mr)=>Z(or,Mr)&&or.useTabstopAt(Mr),qe=(or,Mr,kr)=>{ue(or,Mr).each(yo=>{Mr.focusManager.set(or,yo)})},ft=(or,Mr,kr,yo,Xr)=>Xr(Mr,kr,No=>Be(yo,No)).fold(()=>yo.cyclic?I.some(!0):I.none(),No=>(yo.focusManager.set(or,No),I.some(!0))),gt=(or,Mr,kr,yo)=>{const Xr=$d(or.element,kr.selector);return we(or,kr).bind(No=>de(Xr,T(so,No)).bind(ho=>ft(or,Xr,ho,kr,yo)))},At=(or,Mr,kr)=>{const yo=kr.cyclic?Rh:Lh;return gt(or,Mr,kr,yo)},$t=(or,Mr,kr)=>{const yo=kr.cyclic?jm:Qm;return gt(or,Mr,kr,yo)},on=or=>dr(or).bind(hr).exists(Mr=>so(Mr,or)),yn=(or,Mr,kr)=>we(or,kr).filter(yo=>!kr.useTabstopAt(yo)).bind(yo=>(on(yo)?At:$t)(or,Mr,kr)),wn=(or,Mr,kr)=>kr.onEnter.bind(yo=>yo(or,Mr)),Mn=(or,Mr,kr)=>kr.onEscape.bind(yo=>yo(or,Mr)),Xn=x([xa(tu([t1,qa(al)]),At),xa(qa(al),$t),xa(tu([vp,qa(Gs)]),wn)]),Br=x([xa(qa(td),Mn),xa(qa(al),yn)]);return mv(F,Gf.init,Xn,Br,()=>I.some(qe))};var Cw=y6(On("cyclic",D)),Nq=y6(On("cyclic",k));const g5=(s,F,Z)=>(qv(s,Z,cp()),I.some(!0)),F3=(s,F,Z)=>w2(Z)&&qa(zu)(F.event)?I.none():g5(s,F,Z),Aw=(s,F)=>I.some(!0),yE=[mr("execute",F3),mr("useSpace",!1),mr("useEnter",!0),mr("useControlEnter",!1),mr("useDown",!1)],jD=(s,F,Z)=>Z.execute(s,F,s.element),QD=(s,F,Z,ue)=>{const we=Z.useSpace&&!w2(s.element)?zu:[],Be=Z.useEnter?Gs:[],qe=Z.useDown?Zs:[],ft=we.concat(Be).concat(qe);return[xa(qa(ft),jD)].concat(Z.useControlEnter?[xa(tu([Tw,qa(Gs)]),jD)]:[])},$q=(s,F,Z,ue)=>Z.useSpace&&!w2(s.element)?[xa(qa(zu),Aw)]:[];var HD=mv(yE,Gf.init,QD,$q,()=>I.none());const bE=()=>{const s=os();return kh({readState:()=>s.get().map(we=>({numRows:String(we.numRows),numColumns:String(we.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(we,Be)=>{s.set({numRows:we,numColumns:Be})},getNumRows:()=>s.get().map(we=>we.numRows),getNumColumns:()=>s.get().map(we=>we.numColumns)})};var Vq=Object.freeze({__proto__:null,flatgrid:bE,init:s=>s.state(s)});const ZD=s=>(F,Z,ue,we)=>{const Be=s(F.element);return v5(Be,F,Z,ue,we)},xE=(s,F)=>{const Z=Lb(s,F);return ZD(Z)},_E=(s,F)=>{const Z=Lb(F,s);return ZD(Z)},wE=s=>(F,Z,ue,we)=>v5(s,F,Z,ue,we),v5=(s,F,Z,ue,we)=>ue.focusManager.get(F).bind(qe=>s(F.element,qe,ue,we)).map(qe=>(ue.focusManager.set(F,qe),!0)),b6=wE,qD=wE,OE=wE,WD=s=>s.offsetWidth<=0&&s.offsetHeight<=0,YD=s=>!WD(s.dom),Uq=(s,F)=>de(s,F).map(Z=>({index:Z,candidates:s})),Tg=(s,F,Z)=>{const ue=qe=>so(qe,F),we=$d(s,Z),Be=me(we,YD);return Uq(Be,ue)},XD=(s,F)=>de(s,Z=>so(F,Z)),GD=(s,F,Z,ue)=>{const we=Math.floor(F/Z),Be=F%Z;return ue(we,Be).bind(qe=>{const ft=qe.row*Z+qe.column;return ft>=0&&ftGD(s,F,ue,(Be,qe)=>{const gt=Be===Z-1?s.length-Be*ue:ue,At=ac(qe,we,0,gt-1);return I.some({row:Be,column:At})}),JD=(s,F,Z,ue,we)=>GD(s,F,ue,(Be,qe)=>{const ft=ac(Be,we,0,Z-1),At=ft===Z-1?s.length-ft*ue:ue,$t=Mc(qe,0,At-1);return I.some({row:ft,column:$t})}),jq=(s,F,Z,ue)=>KD(s,F,Z,ue,1),N3=(s,F,Z,ue)=>KD(s,F,Z,ue,-1),SE=(s,F,Z,ue)=>JD(s,F,Z,ue,-1),Qq=(s,F,Z,ue)=>JD(s,F,Z,ue,1),kE=[Sn("selector"),mr("execute",F3),bd("onEscape"),mr("captureTab",!1),U1()],x6=(s,F,Z)=>{aa(s.element,F.selector).each(ue=>{F.focusManager.set(s,ue)})},TE=(s,F)=>F.focusManager.get(s).bind(Z=>Fs(Z,F.selector)),Hq=(s,F,Z,ue)=>TE(s,Z).bind(we=>Z.execute(s,F,we)),_6=s=>(F,Z,ue,we)=>Tg(F,Z,ue.selector).bind(Be=>s(Be.candidates,Be.index,we.getNumRows().getOr(ue.initSize.numRows),we.getNumColumns().getOr(ue.initSize.numColumns))),eB=(s,F,Z)=>Z.captureTab?I.some(!0):I.none(),Zq=(s,F,Z)=>Z.onEscape(s,F),tB=_6(N3),nB=_6(jq),rB=_6(SE),CE=_6(Qq),qq=x([xa(qa(e1),xE(tB,nB)),xa(qa(My),_E(tB,nB)),xa(qa(Ay),b6(rB)),xa(qa(Zs),qD(CE)),xa(tu([t1,qa(al)]),eB),xa(tu([vp,qa(al)]),eB),xa(qa(zu.concat(Gs)),Hq)]),Wq=x([xa(qa(td),Zq),xa(qa(zu),Aw)]);var Yq=mv(kE,bE,qq,Wq,()=>I.some(x6));const oB=(s,F,Z,ue,we)=>{const Be=ft=>ar(ft)==="button"&&ao(ft,"disabled")==="disabled",qe=(ft,gt,At)=>we(ft,gt,ue,0,At.length-1,At[gt],$t=>Be(At[$t])?qe(ft,$t,At):I.from(At[$t]));return Tg(s,Z,F).bind(ft=>{const gt=ft.index,At=ft.candidates;return qe(gt,gt,At)})},Mw=(s,F,Z,ue)=>oB(s,F,Z,ue,(we,Be,qe,ft,gt,At,$t)=>{const on=Mc(Be+qe,ft,gt);return on===we?I.from(At):$t(on)}),y5=(s,F,Z,ue)=>oB(s,F,Z,ue,(we,Be,qe,ft,gt,At,$t)=>{const on=ac(Be,qe,ft,gt);return on===we?I.none():$t(on)}),Xq=[Sn("selector"),mr("getInitial",I.none),mr("execute",F3),bd("onEscape"),mr("executeOnMove",!1),mr("allowVertical",!0),mr("allowHorizontal",!0),mr("cycles",!0)],AE=(s,F)=>F.focusManager.get(s).bind(Z=>Fs(Z,F.selector)),ME=(s,F,Z)=>AE(s,Z).bind(ue=>Z.execute(s,F,ue)),iB=(s,F,Z)=>{F.getInitial(s).orThunk(()=>aa(s.element,F.selector)).each(ue=>{F.focusManager.set(s,ue)})},EE=(s,F,Z)=>(Z.cycles?y5:Mw)(s,Z.selector,F,-1),PE=(s,F,Z)=>(Z.cycles?y5:Mw)(s,Z.selector,F,1),RE=s=>(F,Z,ue,we)=>s(F,Z,ue,we).bind(()=>ue.executeOnMove?ME(F,Z,ue):I.some(!0)),aB=(s,F,Z)=>Z.onEscape(s,F),Gq=(s,F,Z,ue)=>{const we=[...Z.allowHorizontal?e1:[]].concat(Z.allowVertical?Ay:[]),Be=[...Z.allowHorizontal?My:[]].concat(Z.allowVertical?Zs:[]);return[xa(qa(we),RE(xE(EE,PE))),xa(qa(Be),RE(_E(EE,PE))),xa(qa(Gs),ME),xa(qa(zu),ME)]},Kq=x([xa(qa(zu),Aw),xa(qa(td),aB)]);var Jq=mv(Xq,Gf.init,Gq,Kq,()=>I.some(iB));const $3=(s,F,Z)=>I.from(s[F]).bind(ue=>I.from(ue[Z]).map(we=>({rowIndex:F,columnIndex:Z,cell:we}))),sB=(s,F,Z,ue)=>{const Be=s[F].length,qe=ac(Z,ue,0,Be-1);return $3(s,F,qe)},b5=(s,F,Z,ue)=>{const we=ac(Z,ue,0,s.length-1),Be=s[we].length,qe=Mc(F,0,Be-1);return $3(s,we,qe)},lB=(s,F,Z,ue)=>{const Be=s[F].length,qe=Mc(Z+ue,0,Be-1);return $3(s,F,qe)},LE=(s,F,Z,ue)=>{const we=Mc(Z+ue,0,s.length-1),Be=s[we].length,qe=Mc(F,0,Be-1);return $3(s,we,qe)},yp=(s,F,Z)=>sB(s,F,Z,1),eW=(s,F,Z)=>sB(s,F,Z,-1),cB=(s,F,Z)=>b5(s,Z,F,-1),uB=(s,F,Z)=>b5(s,Z,F,1),tW=(s,F,Z)=>lB(s,F,Z,-1),fB=(s,F,Z)=>lB(s,F,Z,1),dB=(s,F,Z)=>LE(s,Z,F,-1),nW=(s,F,Z)=>LE(s,Z,F,1),rW=[zo("selectors",[Sn("row"),Sn("cell")]),mr("cycles",!0),mr("previousSelector",I.none),mr("execute",F3)],oW=(s,F,Z)=>{F.previousSelector(s).orThunk(()=>{const we=F.selectors;return aa(s.element,we.cell)}).each(we=>{F.focusManager.set(s,we)})},iW=(s,F,Z)=>_d(s.element).bind(ue=>Z.execute(s,F,ue)),hB=(s,F)=>oe(s,Z=>$d(Z,F.selectors.cell)),w6=(s,F)=>(Z,ue,we)=>{const Be=we.cycles?s:F;return Fs(ue,we.selectors.row).bind(qe=>{const ft=$d(qe,we.selectors.cell);return XD(ft,ue).bind(gt=>{const At=$d(Z,we.selectors.row);return XD(At,qe).bind($t=>{const on=hB(At,we);return Be(on,$t,gt).map(yn=>yn.cell)})})})},pB=w6(eW,tW),IE=w6(yp,fB),mB=w6(cB,dB),gB=w6(uB,nW),aW=x([xa(qa(e1),xE(pB,IE)),xa(qa(My),_E(pB,IE)),xa(qa(Ay),b6(mB)),xa(qa(Zs),qD(gB)),xa(qa(zu.concat(Gs)),iW)]),sW=x([xa(qa(zu),Aw)]);var lW=mv(rW,Gf.init,aW,sW,()=>I.some(oW));const cW=[Sn("selector"),mr("execute",F3),mr("moveOnTab",!1)],DE=(s,F,Z)=>Z.focusManager.get(s).bind(ue=>Z.execute(s,F,ue)),vB=(s,F,Z)=>{aa(s.element,F.selector).each(ue=>{F.focusManager.set(s,ue)})},Yb=(s,F,Z)=>y5(s,Z.selector,F,-1),BE=(s,F,Z)=>y5(s,Z.selector,F,1),yB=(s,F,Z,ue)=>Z.moveOnTab?OE(Yb)(s,F,Z,ue):I.none(),bB=(s,F,Z,ue)=>Z.moveOnTab?OE(BE)(s,F,Z,ue):I.none(),uW=x([xa(qa(Ay),OE(Yb)),xa(qa(Zs),OE(BE)),xa(tu([t1,qa(al)]),yB),xa(tu([vp,qa(al)]),bB),xa(qa(Gs),DE),xa(qa(zu),DE)]),V3=x([xa(qa(zu),Aw)]);var fW=mv(cW,Gf.init,uW,V3,()=>I.some(vB));const dW=[bd("onSpace"),bd("onEnter"),bd("onShiftEnter"),bd("onLeft"),bd("onRight"),bd("onTab"),bd("onShiftTab"),bd("onUp"),bd("onDown"),bd("onEscape"),mr("stopSpaceKeyup",!1),Hr("focusIn")],xB=(s,F,Z)=>[xa(qa(zu),Z.onSpace),xa(tu([vp,qa(Gs)]),Z.onEnter),xa(tu([t1,qa(Gs)]),Z.onShiftEnter),xa(tu([t1,qa(al)]),Z.onShiftTab),xa(tu([vp,qa(al)]),Z.onTab),xa(qa(Ay),Z.onUp),xa(qa(Zs),Z.onDown),xa(qa(e1),Z.onLeft),xa(qa(My),Z.onRight),xa(qa(zu),Z.onSpace)],hW=(s,F,Z)=>[...Z.stopSpaceKeyup?[xa(qa(zu),Aw)]:[],xa(qa(td),Z.onEscape)];var pW=mv(dW,Gf.init,xB,hW,s=>s.focusIn);const mW=Cw.schema(),_B=Nq.schema(),zE=Jq.schema(),FE=Yq.schema(),gW=lW.schema(),S2=HD.schema(),wB=fW.schema(),OB=pW.schema();var vW=Object.freeze({__proto__:null,acyclic:mW,cyclic:_B,flow:zE,flatgrid:FE,matrix:gW,execution:S2,menu:wB,special:OB});const yW=s=>pt(s,"setGridSize"),Li=gd({branchKey:"mode",branches:vW,name:"keying",active:{events:(s,F)=>s.handler.toEvents(s,F)},apis:{focusIn:(s,F,Z)=>{F.sendFocusIn(F).fold(()=>{s.getSystem().triggerFocus(s.element,s.element)},ue=>{ue(s,F,Z)})},setGridSize:(s,F,Z,ue,we)=>{yW(Z)?Z.setGridSize(ue,we):console.error("Layout does not support setGridSize")}},state:Vq}),U3=(s,F)=>{xg(()=>{m2(s,F,()=>oe(F,s.getSystem().build))},s.element)},NE=(s,F)=>{xg(()=>{qS(s,F,()=>et(s.element,F,s.getSystem().buildOrPatch))},s.element)},$E=(s,F,Z,ue)=>{y3(F);const we=Qe(s.element,Z,ue,s.getSystem().buildOrPatch);HS(s,we),s.syncComponents()},Ey=(s,F,Z)=>{const ue=s.getSystem().build(Z);Ub(s,ue,F)},k2=(s,F,Z,ue)=>{fv(F),Ey(s,(we,Be)=>Oc(we,Be,Z),ue)},bW=(s,F,Z,ue)=>(F.reuseDom?NE:U3)(s,ue),xW=(s,F,Z,ue)=>{Ey(s,Pu,ue)},SB=(s,F,Z,ue)=>{Ey(s,vh,ue)},Xb=(s,F,Z,ue)=>{const we=j3(s);ce(we,qe=>so(ue.element,qe.element)).each(fv)},j3=(s,F)=>s.components(),kB=(s,F,Z,ue,we)=>{const Be=j3(s);return I.from(Be[ue]).map(qe=>(we.fold(()=>fv(qe),ft=>{(F.reuseDom?$E:k2)(s,qe,ue,ft)}),qe))};var TB=Object.freeze({__proto__:null,append:xW,prepend:SB,remove:Xb,replaceAt:kB,replaceBy:(s,F,Z,ue,we)=>{const Be=j3(s);return de(Be,ue).bind(qe=>kB(s,F,Z,qe,we))},set:bW,contents:j3});const da=lf({fields:[hs("reuseDom",!0)],name:"replacing",apis:TB}),VE=(s,F)=>{const Z=pl(F);return lf({fields:[Sn("enabled")],name:s,active:{events:x(Z)}})},Ca=(s,F)=>{const Z=VE(s,F);return{key:s,value:{config:{},me:Z,configAsRaw:x({}),initialConfig:{},state:Gf}}},CB=(s,F)=>{F.ignore||(xd(s.element),F.onFocus(s))};var O6=Object.freeze({__proto__:null,focus:CB,blur:(s,F)=>{F.ignore||a0(s.element)},isFocused:s=>dy(s.element)}),MB=Object.freeze({__proto__:null,exhibit:(s,F)=>{const Z=F.ignore?{}:{attributes:{tabindex:"-1"}};return Cf(Z)},events:s=>pl([fo(km(),(F,Z)=>{CB(F,s),Z.stop()})].concat(s.stopMousedown?[fo(Oh(),(F,Z)=>{Z.event.prevent()})]:[]))}),wW=[Ra("onFocus"),mr("stopMousedown",!1),mr("ignore",!1)];const oa=lf({fields:wW,name:"focusing",active:MB,apis:O6}),EB=s=>({init:()=>{const Z=xi(s);return{get:()=>Z.get(),set:ft=>Z.set(ft),clear:()=>Z.set(s),readState:()=>Z.get()}}}),PB=(s,F,Z)=>{const ue=F.aria;ue.update(s,ue,Z.get())},RB=(s,F,Z)=>{F.toggleClass.each(ue=>{Z.get()?Sl(s.element,ue):fc(s.element,ue)})},x5=(s,F,Z,ue)=>{const we=Z.get();Z.set(ue),RB(s,F,Z),PB(s,F,Z),we!==ue&&F.onToggled(s,ue)},S6=(s,F,Z)=>{x5(s,F,Z,!Z.get())},OW=(s,F,Z)=>{x5(s,F,Z,!0)},SW=(s,F,Z)=>{x5(s,F,Z,!1)},kW=(s,F,Z)=>Z.get(),LB=(s,F,Z)=>{x5(s,F,Z,F.selected)};var IB=Object.freeze({__proto__:null,onLoad:LB,toggle:S6,isOn:kW,on:OW,off:SW,set:x5}),DB=Object.freeze({__proto__:null,exhibit:()=>Cf({}),events:(s,F)=>{const Z=M1(s,F,S6),ue=E1(s,F,LB);return pl(ve([s.toggleOnExecute?[Z]:[],[ue]]))}});const _5=(s,F,Z)=>{fr(s.element,"aria-pressed",Z),F.syncWithExpanded&&k6(s,F,Z)},TW=(s,F,Z)=>{fr(s.element,"aria-selected",Z)},w5=(s,F,Z)=>{fr(s.element,"aria-checked",Z)},k6=(s,F,Z)=>{fr(s.element,"aria-expanded",Z)};var BB=[mr("selected",!1),Hr("toggleClass"),mr("toggleOnExecute",!0),Ra("onToggled"),bs("aria",{mode:"none"},xn("mode",{pressed:[mr("syncWithExpanded",!1),Il("update",_5)],checked:[Il("update",w5)],expanded:[Il("update",k6)],selected:[Il("update",TW)],none:[Il("update",v)]}))];const za=lf({fields:BB,name:"toggling",active:DB,apis:IB,state:EB(!1)}),zB=()=>{const s=(F,Z)=>{Z.stop(),Fp(F)};return[fo(R0(),s),fo(up(),s),Am(_m()),Am(Oh())]},T6=s=>{const F=Z=>$p((ue,we)=>{Z(ue),we.stop()});return pl(ve([s.map(F).toArray(),zB()]))},jE="alloy.item-hover",FB="alloy.item-focus",QE="alloy.item-toggled",NB=s=>{(_d(s.element).isNone()||oa.isFocused(s))&&(oa.isFocused(s)||oa.focus(s),Ri(s,jE,{item:s}))},$B=s=>{Ri(s,FB,{item:s})},VB=(s,F)=>{Ri(s,QE,{item:s,state:F})},O5=x(jE),HE=x(FB),ZE=x(QE),CW=s=>s.role.fold(()=>s.toggling.map(F=>F.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),R),AW=(s,F)=>({aria:{mode:F?"selected":"checked"},...Ne(s,(Z,ue)=>ue!=="exclusive"),onToggled:(Z,ue)=>{u(s.onToggled)&&s.onToggled(Z,ue),VB(Z,ue)}}),MW=s=>({dom:s.dom,domModification:{...s.domModification,attributes:{role:CW(s),...s.domModification.attributes,"aria-haspopup":s.hasSubmenu,...s.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:Vm.augment(s.itemBehaviours,[s.toggling.fold(za.revoke,F=>za.config(AW(F,s.role.exists(Z=>Z==="option")))),oa.config({ignore:s.ignoreFocus,stopMousedown:s.ignoreFocus,onFocus:F=>{$B(F)}}),Li.config({mode:"execution"}),hi.config({store:{mode:"memory",initialValue:s.data}}),Ca("item-type-events",[...zB(),fo(Om(),NB),fo(db(),oa.focus)])]),components:s.components,eventOrder:s.eventOrder}),EW=[Sn("data"),Sn("components"),Sn("dom"),mr("hasSubmenu",!1),Hr("toggling"),Hr("role"),Vm.field("itemBehaviours",[za,oa,Li,hi]),mr("ignoreFocus",!1),mr("domModification",{}),Il("builder",MW),mr("eventOrder",{})],UB=s=>({dom:s.dom,components:s.components,events:pl([I_(db())])}),jB=[Sn("dom"),Sn("components"),Il("builder",UB)],qE=x("item-widget"),WE=x([kd({name:"widget",overrides:s=>({behaviours:Bo([hi.config({store:{mode:"manual",getValue:F=>s.data,setValue:v}})])})})]),PW=s=>{const F=I3(qE(),s,WE()),Z=s5(qE(),s,F.internals()),ue=Be=>Fo(Be,s,"widget").map(qe=>(Li.focusIn(qe),qe)),we=(Be,qe)=>w2(qe.event.target)?I.none():(()=>(s.autofocus&&qe.setSource(Be.element),I.none()))();return{dom:s.dom,components:Z,domModification:s.domModification,events:pl([$p((Be,qe)=>{ue(Be).each(ft=>{qe.stop()})}),fo(Om(),NB),fo(db(),(Be,qe)=>{s.autofocus?ue(Be):oa.focus(Be)})]),behaviours:Vm.augment(s.widgetBehaviours,[hi.config({store:{mode:"memory",initialValue:s.data}}),oa.config({ignore:s.ignoreFocus,onFocus:Be=>{$B(Be)}}),Li.config({mode:"special",focusIn:s.autofocus?Be=>{ue(Be)}:Nl(),onLeft:we,onRight:we,onEscape:(Be,qe)=>!oa.isFocused(Be)&&!s.autofocus?(oa.focus(Be),I.some(!0)):(s.autofocus&&qe.setSource(Be.element),I.none())})])}},RW=[Sn("uid"),Sn("data"),Sn("components"),Sn("dom"),mr("autofocus",!1),mr("ignoreFocus",!1),Vm.field("widgetBehaviours",[hi,oa,Li]),mr("domModification",{}),Ow(WE()),Il("builder",PW)],LW=xn("type",{widget:RW,item:EW,separator:jB}),IW=(s,F)=>({mode:"flatgrid",selector:"."+s.markers.item,initSize:{numColumns:F.initSize.numColumns,numRows:F.initSize.numRows},focusManager:s.focusManager}),QB=(s,F)=>({mode:"matrix",selectors:{row:F.rowSelector,cell:"."+s.markers.item},previousSelector:F.previousSelector,focusManager:s.focusManager}),DW=(s,F)=>({mode:"menu",selector:"."+s.markers.item,moveOnTab:F.moveOnTab,focusManager:s.focusManager}),BW=x([R3({factory:{sketch:s=>{const F=cn("menu.spec item",LW,s);return F.builder(F)}},name:"items",unit:"item",defaults:(s,F)=>ht(F,"uid")?F:{...F,uid:j0("item")},overrides:(s,F)=>({type:F.type,ignoreFocus:s.fakeFocus,domModification:{classes:[s.markers.item]}})})]),zW=x([Io("role"),Sn("value"),Sn("items"),Sn("dom"),Sn("components"),mr("eventOrder",{}),Pf("menuBehaviours",[ri,hi,as,Li]),bs("movement",{mode:"menu",moveOnTab:!0},xn("mode",{grid:[U1(),Il("config",IW)],matrix:[Il("config",QB),Sn("rowSelector"),mr("previousSelector",I.none)],menu:[mr("moveOnTab",!0),Il("config",DW)]})),W_(),mr("fakeFocus",!1),mr("focusManager",z3()),Ra("onHighlight"),Ra("onDehighlight"),mr("showMenuRole",!0)]),HB=x("alloy.menu-focus"),FW=(s,F)=>{const Z=$d(s.element,'[role="menuitemradio"][aria-checked="true"]');q(Z,ue=>{so(ue,F.element)||s.getSystem().getByDom(ue).each(we=>{za.off(we)})})},Ew=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,markers:s.markers,behaviours:Rf(s.menuBehaviours,[ri.config({highlightClass:s.markers.selectedItem,itemClass:s.markers.item,onHighlight:s.onHighlight,onDehighlight:s.onDehighlight}),hi.config({store:{mode:"memory",initialValue:s.value}}),as.config({find:I.some}),Li.config(s.movement.config(s,s.movement))]),events:pl([fo(HE(),(we,Be)=>{const qe=Be.event;we.getSystem().getByDom(qe.target).each(ft=>{ri.highlight(we,ft),Be.stop(),Ri(we,HB(),{menu:we,item:ft})})}),fo(O5(),(we,Be)=>{const qe=Be.event.item;ri.highlight(we,qe)}),fo(ZE(),(we,Be)=>{const{item:qe,state:ft}=Be.event;ft&&ao(qe.element,"role")==="menuitemradio"&&FW(we,qe)})]),components:F,eventOrder:s.eventOrder,...s.showMenuRole?{domModification:{attributes:{role:s.role.getOr("menu")}}}:{}}),Pw=ch({name:"Menu",configFields:zW(),partFields:BW(),factory:Ew}),NW=s=>Ze(s,(F,Z)=>({k:F,v:Z})),T2=(s,F,Z,ue)=>Ge(Z,ue).bind(we=>Ge(s,we).bind(Be=>{const qe=T2(s,F,Z,Be);return I.some([Be].concat(qe))})).getOr([]),ZB=(s,F)=>{const Z={};We(s,(qe,ft)=>{q(qe,gt=>{Z[gt]=ft})});const ue=F,we=NW(F),Be=Ue(we,(qe,ft)=>[ft].concat(T2(Z,ue,we,ft)));return Ue(Z,qe=>Ge(Be,qe).getOr([qe]))},$W=()=>{const s=xi({}),F=xi({}),Z=xi({}),ue=os(),we=xi({}),Be=()=>{s.set({}),F.set({}),Z.set({}),ue.clear()},qe=()=>ue.get().isNone(),ft=(Xr,No)=>{F.set({...F.get(),[Xr]:{type:"prepared",menu:No}})},gt=(Xr,No,Jo,ho)=>{ue.set(Xr),s.set(Jo),F.set(No),we.set(ho);const Ci=ZB(ho,Jo);Z.set(Ci)},At=Xr=>nt(s.get(),(No,Jo)=>No===Xr),$t=(Xr,No,Jo)=>Xn(Xr).bind(ho=>At(Xr).bind(Ci=>No(Ci).map(mi=>({triggeredMenu:ho,triggeringItem:mi,triggeringPath:Jo})))),on=(Xr,No)=>{const Jo=me(or(Xr).toArray(),ho=>Xn(ho).isSome());return Ge(Z.get(),Xr).bind(ho=>{const Ci=Se(Jo.concat(ho)),mi=ye(Ci,(qi,Fi)=>$t(qi,No,Ci.slice(0,Fi+1)).fold(()=>wt(ue.get(),qi)?[]:[I.none()],Os=>[I.some(Os)]));return qt(mi)})},yn=Xr=>Ge(s.get(),Xr).map(No=>{const Jo=Ge(Z.get(),Xr).getOr([]);return[No].concat(Jo)}),wn=Xr=>Ge(Z.get(),Xr).bind(No=>No.length>1?I.some(No.slice(1)):I.none()),Mn=Xr=>Ge(Z.get(),Xr),Xn=Xr=>Br(Xr).bind(Gb),Br=Xr=>Ge(F.get(),Xr),or=Xr=>Ge(s.get(),Xr);return{setMenuBuilt:ft,setContents:gt,expand:yn,refresh:Mn,collapse:wn,lookupMenu:Br,lookupItem:or,otherMenus:Xr=>{const No=we.get();return Te(ke(No),Xr)},getPrimary:()=>ue.get().bind(Xn),getMenus:()=>F.get(),clear:Be,isClear:qe,getTriggeringPath:on}},Gb=s=>s.type==="prepared"?I.some(s.menu):I.none(),qB={init:$W,extractPreparedMenu:Gb},WB=fi("tiered-menu-item-highlight"),Cg=fi("tiered-menu-item-dehighlight");var Xh;(function(s){s[s.HighlightMenuAndItem=0]="HighlightMenuAndItem",s[s.HighlightJustMenu=1]="HighlightJustMenu",s[s.HighlightNone=2]="HighlightNone"})(Xh||(Xh={}));const YB=(s,F)=>{const Z=os(),ue=(Ho,wi,_a)=>Ue(_a,(Ki,ji)=>{const va=()=>Pw.sketch({...Ki,value:ji,markers:s.markers,fakeFocus:s.fakeFocus,onHighlight:(Cl,Ns)=>{Ri(Cl,WB,{menuComp:Cl,itemComp:Ns})},onDehighlight:(Cl,Ns)=>{Ri(Cl,Cg,{menuComp:Cl,itemComp:Ns})},focusManager:s.fakeFocus?v6():z3()});return ji===wi?{type:"prepared",menu:Ho.getSystem().build(va())}:{type:"notbuilt",nbMenu:va}}),we=qB.init(),Be=Ho=>{const wi=ue(Ho,s.data.primary,s.data.menus),_a=gt();return we.setContents(s.data.primary,wi,s.data.expansions,_a),we.getPrimary()},qe=Ho=>hi.getValue(Ho).value,ft=(Ho,wi,_a)=>Oe(wi,Ki=>{if(!Ki.getSystem().isConnected())return I.none();const ji=ri.getCandidates(Ki);return ce(ji,va=>qe(va)===_a)}),gt=Ho=>Ue(s.data.menus,(wi,_a)=>ye(wi.items,Ki=>Ki.type==="separator"?[]:[Ki.data.value])),At=ri.highlight,$t=(Ho,wi)=>{At(Ho,wi),ri.getHighlighted(wi).orThunk(()=>ri.getFirst(wi)).each(_a=>{s.fakeFocus?ri.highlight(wi,_a):qv(Ho,_a.element,db())})},on=(Ho,wi)=>It(oe(wi,_a=>Ho.lookupMenu(_a).bind(Ki=>Ki.type==="prepared"?I.some(Ki.menu):I.none()))),yn=(Ho,wi,_a)=>{const Ki=on(wi,wi.otherMenus(_a));q(Ki,ji=>{th(ji.element,[s.markers.backgroundMenu]),s.stayInDom||da.remove(Ho,ji)})},wn=Ho=>Z.get().getOrThunk(()=>{const wi={},_a=$d(Ho.element,`.${s.markers.item}`),Ki=me(_a,ji=>ao(ji,"aria-haspopup")==="true");return q(Ki,ji=>{Ho.getSystem().getByDom(ji).each(va=>{const Cl=qe(va);wi[Cl]=va})}),Z.set(wi),wi}),Mn=(Ho,wi)=>{const _a=wn(Ho);We(_a,(Ki,ji)=>{const va=X(wi,ji);fr(Ki.element,"aria-expanded",va)})},Xn=(Ho,wi,_a)=>I.from(_a[0]).bind(Ki=>wi.lookupMenu(Ki).bind(ji=>{if(ji.type==="notbuilt")return I.none();{const va=ji.menu,Cl=on(wi,_a.slice(1));return q(Cl,Ns=>{Sl(Ns.element,s.markers.backgroundMenu)}),Er(va.element)||da.append(Ho,na(va)),th(va.element,[s.markers.backgroundMenu]),$t(Ho,va),yn(Ho,wi,_a),I.some(va)}}));let Br;(function(Ho){Ho[Ho.HighlightSubmenu=0]="HighlightSubmenu",Ho[Ho.HighlightParent=1]="HighlightParent"})(Br||(Br={}));const or=(Ho,wi,_a)=>{if(_a.type==="notbuilt"){const Ki=Ho.getSystem().build(_a.nbMenu());return we.setMenuBuilt(wi,Ki),Ki}else return _a.menu},Mr=(Ho,wi,_a=Br.HighlightSubmenu)=>{if(wi.hasConfigured(ta)&&ta.isDisabled(wi))return I.some(wi);{const Ki=qe(wi);return we.expand(Ki).bind(ji=>(Mn(Ho,ji),I.from(ji[0]).bind(va=>we.lookupMenu(va).bind(Cl=>{const Ns=or(Ho,va,Cl);return Er(Ns.element)||da.append(Ho,na(Ns)),s.onOpenSubmenu(Ho,wi,Ns,Se(ji)),_a===Br.HighlightSubmenu?(ri.highlightFirst(Ns),Xn(Ho,we,ji)):(ri.dehighlightAll(Ns),I.some(wi))}))))}},kr=(Ho,wi)=>{const _a=qe(wi);return we.collapse(_a).bind(Ki=>(Mn(Ho,Ki),Xn(Ho,we,Ki).map(ji=>(s.onCollapseMenu(Ho,wi,ji),ji))))},yo=(Ho,wi)=>{const _a=qe(wi);return we.refresh(_a).bind(Ki=>(Mn(Ho,Ki),Xn(Ho,we,Ki)))},Xr=(Ho,wi)=>w2(wi.element)?I.none():Mr(Ho,wi,Br.HighlightSubmenu),No=(Ho,wi)=>w2(wi.element)?I.none():kr(Ho,wi),Jo=(Ho,wi)=>kr(Ho,wi).orThunk(()=>s.onEscape(Ho,wi).map(()=>Ho)),ho=Ho=>(wi,_a)=>Fs(_a.getSource(),`.${s.markers.item}`).bind(Ki=>wi.getSystem().getByDom(Ki).toOptional().bind(ji=>Ho(wi,ji).map(k))),Ci=pl([fo(HB(),(Ho,wi)=>{const _a=wi.event.item;we.lookupItem(qe(_a)).each(()=>{const Ki=wi.event.menu;ri.highlight(Ho,Ki);const ji=qe(wi.event.item);we.refresh(ji).each(va=>yn(Ho,we,va))})}),$p((Ho,wi)=>{const _a=wi.event.target;Ho.getSystem().getByDom(_a).each(Ki=>{qe(Ki).indexOf("collapse-item")===0&&kr(Ho,Ki),Mr(Ho,Ki,Br.HighlightSubmenu).fold(()=>{s.onExecute(Ho,Ki)},v)})}),Ll((Ho,wi)=>{Be(Ho).each(_a=>{da.append(Ho,na(_a)),s.onOpenMenu(Ho,_a),s.highlightOnOpen===Xh.HighlightMenuAndItem?$t(Ho,_a):s.highlightOnOpen===Xh.HighlightJustMenu&&At(Ho,_a)})}),fo(WB,(Ho,wi)=>{s.onHighlightItem(Ho,wi.event.menuComp,wi.event.itemComp)}),fo(Cg,(Ho,wi)=>{s.onDehighlightItem(Ho,wi.event.menuComp,wi.event.itemComp)}),...s.navigateOnHover?[fo(O5(),(Ho,wi)=>{const _a=wi.event.item;yo(Ho,_a),Mr(Ho,_a,Br.HighlightParent),s.onHover(Ho,_a)})]:[]]),mi=Ho=>ri.getHighlighted(Ho).bind(ri.getHighlighted),qi=Ho=>{mi(Ho).each(wi=>{kr(Ho,wi)})},Fi=Ho=>{we.getPrimary().each(wi=>{$t(Ho,wi)})},Os=Ho=>I.from(Ho.components()[0]).filter(wi=>ao(wi.element,"role")==="menu"),Ha={collapseMenu:qi,highlightPrimary:Fi,repositionMenus:Ho=>{we.getPrimary().bind(_a=>mi(Ho).bind(Ki=>{const ji=qe(Ki),va=ot(we.getMenus()),Cl=It(oe(va,qB.extractPreparedMenu));return we.getTriggeringPath(ji,Ns=>ft(Ho,Cl,Ns))}).map(Ki=>({primary:_a,triggeringPath:Ki}))).fold(()=>{Os(Ho).each(_a=>{s.onRepositionMenu(Ho,_a,[])})},({primary:_a,triggeringPath:Ki})=>{s.onRepositionMenu(Ho,_a,Ki)})}};return{uid:s.uid,dom:s.dom,markers:s.markers,behaviours:Rf(s.tmenuBehaviours,[Li.config({mode:"special",onRight:ho(Xr),onLeft:ho(No),onEscape:ho(Jo),focusIn:(Ho,wi)=>{we.getPrimary().each(_a=>{qv(Ho,_a.element,db())})}}),ri.config({highlightClass:s.markers.selectedMenu,itemClass:s.markers.menu}),as.config({find:Ho=>ri.getHighlighted(Ho)}),da.config({})]),eventOrder:s.eventOrder,apis:Ha,events:Ci}},XB=x("collapse-item"),VW=(s,F,Z)=>({primary:s,menus:F,expansions:Z}),C6=(s,F)=>({primary:s,menus:wh(s,F),expansions:{}}),GB=s=>({value:fi(XB()),meta:{text:s}}),Rw=Yh({name:"TieredMenu",configFields:[i0("onExecute"),i0("onEscape"),Zh("onOpenMenu"),Zh("onOpenSubmenu"),Ra("onRepositionMenu"),Ra("onCollapseMenu"),mr("highlightOnOpen",Xh.HighlightMenuAndItem),zo("data",[Sn("primary"),Sn("menus"),Sn("expansions")]),mr("fakeFocus",!1),Ra("onHighlightItem"),Ra("onDehighlightItem"),Ra("onHover"),U0(),Sn("dom"),mr("navigateOnHover",!0),mr("stayInDom",!1),Pf("tmenuBehaviours",[Li,ri,as,da]),mr("eventOrder",{})],apis:{collapseMenu:(s,F)=>{s.collapseMenu(F)},highlightPrimary:(s,F)=>{s.highlightPrimary(F)},repositionMenus:(s,F)=>{s.repositionMenus(F)}},factory:YB,extraApis:{tieredData:VW,singleData:C6,collapseItem:GB}}),UW=(s,F,Z,ue,we)=>{const Be=()=>s.lazySink(F),qe=ue.type==="horizontal"?{layouts:{onLtr:()=>K1(),onRtl:()=>Zp()}}:{},ft=At=>At.length===2,gt=At=>ft(At)?qe:{};return Rw.sketch({dom:{tag:"div"},data:ue.data,markers:ue.menu.markers,highlightOnOpen:ue.menu.highlightOnOpen,fakeFocus:ue.menu.fakeFocus,onEscape:()=>(ps.close(F),s.onEscape.map(At=>At(F)),I.some(!0)),onExecute:()=>I.some(!0),onOpenMenu:(At,$t)=>{ed.positionWithinBounds(Be().getOrDie(),$t,Z,we())},onOpenSubmenu:(At,$t,on,yn)=>{const wn=Be().getOrDie();ed.position(wn,on,{anchor:{type:"submenu",item:$t,...gt(yn)}})},onRepositionMenu:(At,$t,on)=>{const yn=Be().getOrDie();ed.positionWithinBounds(yn,$t,Z,we()),q(on,wn=>{const Mn=gt(wn.triggeringPath);ed.position(yn,wn.triggeredMenu,{anchor:{type:"submenu",item:wn.triggeringItem,...Mn}})})}})},A6=(s,F)=>{const Z=(yn,wn)=>s.getRelated(yn).exists(Xn=>Vc(Xn,wn)),ue=(yn,wn)=>{ps.setContent(yn,wn)},we=(yn,wn,Mn)=>{const Xn=I.none;Be(yn,wn,Mn,Xn)},Be=(yn,wn,Mn,Xn)=>{const Br=s.lazySink(yn).getOrDie();ps.openWhileCloaked(yn,wn,()=>ed.positionWithinBounds(Br,yn,Mn,Xn())),hi.setValue(yn,I.some({mode:"position",config:Mn,getBounds:Xn}))},qe=(yn,wn,Mn)=>{ft(yn,wn,Mn,I.none)},ft=(yn,wn,Mn,Xn)=>{const Br=UW(s,yn,wn,Mn,Xn);ps.open(yn,Br),hi.setValue(yn,I.some({mode:"menu",menu:Br}))},gt=yn=>{ps.isOpen(yn)&&(hi.setValue(yn,I.none()),ps.close(yn))},At=yn=>ps.getState(yn),$t=yn=>{ps.isOpen(yn)&&hi.getValue(yn).each(wn=>{switch(wn.mode){case"menu":ps.getState(yn).each(Rw.repositionMenus);break;case"position":const Mn=s.lazySink(yn).getOrDie();ed.positionWithinBounds(Mn,yn,wn.config,wn.getBounds());break}})},on={setContent:ue,showAt:we,showWithinBounds:Be,showMenuAt:qe,showMenuWithinBounds:ft,hide:gt,getContent:At,reposition:$t,isOpen:ps.isOpen};return{uid:s.uid,dom:s.dom,behaviours:Rf(s.inlineBehaviours,[ps.config({isPartOf:(yn,wn,Mn)=>Vc(wn,Mn)||Z(yn,Mn),getAttachPoint:yn=>s.lazySink(yn).getOrDie(),onOpen:yn=>{s.onShow(yn)},onClose:yn=>{s.onHide(yn)}}),hi.config({store:{mode:"memory",initialValue:I.none()}}),Wu.config({channels:{...dv({isExtraPart:F.isExtraPart,...s.fireDismissalEventInstead.map(yn=>({fireEventInstead:{event:yn.event}})).getOr({})}),..._3({...s.fireRepositionEventInstead.map(yn=>({fireEventInstead:{event:yn.event}})).getOr({}),doReposition:$t})}})]),eventOrder:s.eventOrder,apis:on}},hc=Yh({name:"InlineView",configFields:[Sn("lazySink"),Ra("onShow"),Ra("onHide"),Ui("onEscape"),Pf("inlineBehaviours",[ps,hi,Wu]),Pi("fireDismissalEventInstead",[mr("event",I0())]),Pi("fireRepositionEventInstead",[mr("event",E_())]),mr("getRelated",I.none),mr("isExtraPart",D),mr("eventOrder",I.none)],factory:A6,apis:{showAt:(s,F,Z,ue)=>{s.showAt(F,Z,ue)},showWithinBounds:(s,F,Z,ue,we)=>{s.showWithinBounds(F,Z,ue,we)},showMenuAt:(s,F,Z,ue)=>{s.showMenuAt(F,Z,ue)},showMenuWithinBounds:(s,F,Z,ue,we)=>{s.showMenuWithinBounds(F,Z,ue,we)},hide:(s,F)=>{s.hide(F)},isOpen:(s,F)=>s.isOpen(F),getContent:(s,F)=>s.getContent(F),setContent:(s,F,Z)=>{s.setContent(F,Z)},reposition:(s,F)=>{s.reposition(F)}}});var S5=tinymce.util.Tools.resolve("tinymce.util.Delay"),Lw=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),KB=tinymce.util.Tools.resolve("tinymce.EditorManager"),Q3=tinymce.util.Tools.resolve("tinymce.Env"),Hm;(function(s){s.default="wrap",s.floating="floating",s.sliding="sliding",s.scrolling="scrolling"})(Hm||(Hm={}));var H3;(function(s){s.auto="auto",s.top="top",s.bottom="bottom"})(H3||(H3={}));const Ul=s=>F=>F.options.get(s),k5=s=>F=>I.from(s(F)),JB=s=>{const F=Q3.deviceType.isPhone(),Z=Q3.deviceType.isTablet()||F,ue=s.options.register,we=qe=>n(qe)||qe===!1,Be=qe=>n(qe)||h(qe);ue("skin",{processor:qe=>n(qe)||qe===!1,default:"oxide"}),ue("skin_url",{processor:"string"}),ue("height",{processor:Be,default:Math.max(s.getElement().offsetHeight,400)}),ue("width",{processor:Be,default:Lw.DOM.getStyle(s.getElement(),"width")}),ue("min_height",{processor:"number",default:100}),ue("min_width",{processor:"number"}),ue("max_height",{processor:"number"}),ue("max_width",{processor:"number"}),ue("style_formats",{processor:"object[]"}),ue("style_formats_merge",{processor:"boolean",default:!1}),ue("style_formats_autohide",{processor:"boolean",default:!1}),ue("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),ue("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),ue("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),ue("font_size_input_default_unit",{processor:"string",default:"pt"}),ue("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),ue("content_langs",{processor:"object[]"}),ue("removed_menuitems",{processor:"string",default:""}),ue("menubar",{processor:qe=>n(qe)||w(qe),default:!F}),ue("menu",{processor:"object",default:{}}),ue("toolbar",{processor:qe=>w(qe)||n(qe)||i(qe)?{value:qe,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),W(9,qe=>{ue("toolbar"+(qe+1),{processor:"string"})}),ue("toolbar_mode",{processor:"string",default:Z?"scrolling":"floating"}),ue("toolbar_groups",{processor:"object",default:{}}),ue("toolbar_location",{processor:"string",default:H3.auto}),ue("toolbar_persist",{processor:"boolean",default:!1}),ue("toolbar_sticky",{processor:"boolean",default:s.inline}),ue("toolbar_sticky_offset",{processor:"number",default:0}),ue("fixed_toolbar_container",{processor:"string",default:""}),ue("fixed_toolbar_container_target",{processor:"object"}),ue("ui_mode",{processor:"string",default:"combined"}),ue("file_picker_callback",{processor:"function"}),ue("file_picker_validator_handler",{processor:"function"}),ue("file_picker_types",{processor:"string"}),ue("typeahead_urls",{processor:"boolean",default:!0}),ue("anchor_top",{processor:we,default:"#top"}),ue("anchor_bottom",{processor:we,default:"#bottom"}),ue("draggable_modal",{processor:"boolean",default:!1}),ue("statusbar",{processor:"boolean",default:!0}),ue("elementpath",{processor:"boolean",default:!0}),ue("branding",{processor:"boolean",default:!0}),ue("promotion",{processor:"boolean",default:!0}),ue("resize",{processor:qe=>qe==="both"||w(qe),default:!Q3.deviceType.isTouch()}),ue("sidebar_show",{processor:"string"}),ue("help_accessibility",{processor:"boolean",default:s.hasPlugin("help")}),ue("default_font_stack",{processor:"string[]",default:[]})},M6=Ul("readonly"),YE=Ul("height"),Iw=Ul("width"),Z3=k5(Ul("min_width")),E6=k5(Ul("min_height")),T5=k5(Ul("max_width")),XE=k5(Ul("max_height")),ez=k5(Ul("style_formats")),tz=Ul("style_formats_merge"),nz=Ul("style_formats_autohide"),P6=Ul("content_langs"),GE=Ul("removed_menuitems"),Dw=Ul("toolbar_mode"),R6=Ul("toolbar_groups"),KE=Ul("toolbar_location"),rz=Ul("fixed_toolbar_container"),jW=Ul("fixed_toolbar_container_target"),oz=Ul("toolbar_persist"),iz=Ul("toolbar_sticky_offset"),JE=Ul("menubar"),L6=Ul("toolbar"),az=Ul("file_picker_callback"),I6=Ul("file_picker_validator_handler"),e7=Ul("font_size_input_default_unit"),t7=Ul("file_picker_types"),sz=Ul("typeahead_urls"),D6=Ul("anchor_top"),lz=Ul("anchor_bottom"),cz=Ul("draggable_modal"),uz=Ul("statusbar"),fz=Ul("elementpath"),n7=Ul("branding"),r7=Ul("resize"),B6=Ul("paste_as_text"),dz=Ul("sidebar_show"),C5=Ul("promotion"),hz=Ul("help_accessibility"),pz=Ul("default_font_stack"),o7=s=>s.options.get("skin")===!1,z6=s=>s.options.get("menubar")!==!1,i7=s=>{const F=s.options.get("skin_url");if(o7(s))return F;if(F)return s.documentBaseURI.toAbsolute(F);{const Z=s.options.get("skin");return KB.baseURL+"/skins/ui/"+Z}},F6=s=>I.from(s.options.get("skin_url")),a7=s=>s.options.get("line_height_formats").split(" "),N6=s=>{const F=L6(s),Z=n(F),ue=i(F)&&F.length>0;return!Bw(s)&&(ue||Z||F===!0)},s7=s=>{const F=W(9,ue=>s.options.get("toolbar"+(ue+1))),Z=me(F,n);return _t(Z.length>0,Z)},Bw=s=>s7(s).fold(()=>{const F=L6(s);return m(F,n)&&F.length>0},k),Kb=s=>KE(s)===H3.bottom,mz=s=>{var F;if(!s.inline)return I.none();const Z=(F=rz(s))!==null&&F!==void 0?F:"";if(Z.length>0)return aa(Vr(),Z);const ue=jW(s);return a(ue)?I.some(Pt.fromDom(ue)):I.none()},q3=s=>s.inline&&mz(s).isSome(),A5=s=>mz(s).getOrThunk(()=>nr(vr(Pt.fromDom(s.getElement())))),$6=s=>s.inline&&!z6(s)&&!N6(s)&&!Bw(s),W3=s=>(s.options.get("toolbar_sticky")||s.inline)&&!q3(s)&&!$6(s),C2=s=>!q3(s)&&s.options.get("ui_mode")==="split",l7=s=>{const F=s.options.get("menu");return Ue(F,Z=>({...Z,items:Z.items}))};var QW=Object.freeze({__proto__:null,get ToolbarMode(){return Hm},get ToolbarLocation(){return H3},register:JB,getSkinUrl:i7,getSkinUrlOption:F6,isReadOnly:M6,isSkinDisabled:o7,getHeightOption:YE,getWidthOption:Iw,getMinWidthOption:Z3,getMinHeightOption:E6,getMaxWidthOption:T5,getMaxHeightOption:XE,getUserStyleFormats:ez,shouldMergeStyleFormats:tz,shouldAutoHideStyleFormats:nz,getLineHeightFormats:a7,getContentLanguages:P6,getRemovedMenuItems:GE,isMenubarEnabled:z6,isMultipleToolbars:Bw,isToolbarEnabled:N6,isToolbarPersist:oz,getMultipleToolbarsOption:s7,getUiContainer:A5,useFixedContainer:q3,isSplitUiMode:C2,getToolbarMode:Dw,isDraggableModal:cz,isDistractionFree:$6,isStickyToolbar:W3,getStickyToolbarOffset:iz,getToolbarLocation:KE,isToolbarLocationBottom:Kb,getToolbarGroups:R6,getMenus:l7,getMenubar:JE,getToolbar:L6,getFilePickerCallback:az,getFilePickerTypes:t7,useTypeaheadUrls:sz,getAnchorTop:D6,getAnchorBottom:lz,getFilePickerValidatorHandler:I6,getFontSizeInputDefaultUnit:e7,useStatusBar:uz,useElementPath:fz,promotionEnabled:C5,useBranding:n7,getResize:r7,getPasteAsText:B6,getSidebarShow:dz,useHelpAccessibility:hz,getDefaultFontStack:pz});const gz=["visible","hidden","clip"],c7=s=>Rt(s).length>0&&!X(gz,s),V6=s=>{if(Wn(s)){const F=Aa(s,"overflow-x"),Z=Aa(s,"overflow-y");return c7(F)||c7(Z)}else return!1},HW=s=>{const F=d2(s,V6),Z=F.length===0?Hn(s).map(tr).map(ue=>d2(ue,V6)).getOr([]):F;return He(Z).map(ue=>({element:ue,others:Z.slice(1)}))},Jb=(s,F)=>C2(s)?HW(F):I.none(),zw=s=>{const F=[...oe(s.others,Ya),wl()];return Wc(Ya(s.element),F)},Vd=Yh({name:"Button",factory:s=>{const F=T6(s.action),Z=s.dom.tag,ue=Be=>Ge(s.dom,"attributes").bind(qe=>Ge(qe,Be)),we=()=>{if(Z==="button"){const Be=ue("type").getOr("button"),qe=ue("role").map(ft=>({role:ft})).getOr({});return{type:Be,...qe}}else return{role:s.role.getOr(ue("role").getOr("button"))}};return{uid:s.uid,dom:s.dom,components:s.components,events:F,behaviours:Vm.augment(s.buttonBehaviours,[oa.config({}),Li.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:we()},eventOrder:s.eventOrder}},configFields:[mr("uid",void 0),Sn("dom"),mr("components",[]),Vm.field("buttonBehaviours",[oa,Li]),Hr("action"),Hr("role"),mr("eventOrder",{})]}),ZW=s=>{const F=s.dom.attributes!==void 0?s.dom.attributes:[];return se(F,(Z,ue)=>ue.name==="class"?Z:{...Z,[ue.name]:ue.value},{})},u7=s=>Array.prototype.slice.call(s.dom.classList,0),gv=s=>{const F=Pt.fromHtml(s),Z=bo(F),ue=ZW(F),we=u7(F),Be=Z.length===0?{}:{innerHtml:nh(F)};return{tag:ar(F),classes:we,attributes:ue,...Be}},qs=s=>{const F=fE(s)&&pt(s,"uid")?s.uid:j0("memento");return{get:Be=>Be.getSystem().getByUid(F).getOrDie(),getOpt:Be=>Be.getSystem().getByUid(F).toOptional(),asSpec:()=>({...s,uid:F})}};var qW=Object.freeze({__proto__:null,exhibit:(s,F)=>Cf({attributes:pd([{key:F.tabAttr,value:"true"}])})}),WW=[mr("tabAttr","data-alloy-tabstop")];const Wl=lf({fields:WW,name:"tabstopping",active:qW}),yz=fi("tooltip.exclusive"),M5=fi("tooltip.show"),E5=fi("tooltip.hide"),j6=fi("tooltip.immediateHide"),Q6=fi("tooltip.immediateShow"),bz=(s,F,Z)=>{s.getSystem().broadcastOn([yz],{})};var YW=Object.freeze({__proto__:null,hideAllExclusive:bz,setComponents:(s,F,Z,ue)=>{Z.getTooltip().each(we=>{we.getSystem().isConnected()&&da.set(we,ue)})}}),XW=Object.freeze({__proto__:null,events:(s,F)=>{const Z=qe=>{F.getTooltip().each(ft=>{ft.getSystem().isConnected()&&(fv(ft),s.onHide(qe,ft),F.clearTooltip())}),F.clearTimer()},ue=qe=>{if(!F.isShowing()){bz(qe);const ft=s.lazySink(qe).getOrDie(),gt=qe.getSystem().build({dom:s.tooltipDom,components:s.tooltipComponents,events:pl(s.mode==="normal"?[fo(Om(),At=>{Sa(qe,M5)}),fo(Tf(),At=>{Sa(qe,E5)})]:[]),behaviours:Bo([da.config({})])});F.setTooltip(gt),X0(ft,gt),s.onShow(qe,gt),ed.position(ft,gt,{anchor:s.anchor(qe)})}},we=qe=>{F.getTooltip().each(ft=>{const gt=s.lazySink(qe).getOrDie();ed.position(gt,ft,{anchor:s.anchor(qe)})})},Be=()=>{switch(s.mode){case"normal":return[fo(Sm(),qe=>{Sa(qe,Q6)}),fo(Xg(),qe=>{Sa(qe,j6)}),fo(Om(),qe=>{Sa(qe,M5)}),fo(Tf(),qe=>{Sa(qe,E5)})];case"follow-highlight":return[fo(Cm(),(qe,ft)=>{Sa(qe,M5)}),fo(D0(),qe=>{Sa(qe,E5)})];case"children-normal":return[fo(Sm(),(qe,ft)=>{_d(qe.element).each(gt=>{Rr(ft.event.target,"[data-mce-tooltip]")&&F.getTooltip().fold(()=>{Sa(qe,Q6)},At=>{F.isShowing()&&(s.onShow(qe,At),we(qe))})})}),fo(Xg(),qe=>{_d(qe.element).fold(()=>{Sa(qe,j6)},v)}),fo(Om(),qe=>{aa(qe.element,"[data-mce-tooltip]:hover").each(ft=>{F.getTooltip().fold(()=>{Sa(qe,M5)},gt=>{F.isShowing()&&(s.onShow(qe,gt),we(qe))})})}),fo(Tf(),qe=>{aa(qe.element,"[data-mce-tooltip]:hover").fold(()=>{Sa(qe,E5)},v)})];default:return[fo(Sm(),(qe,ft)=>{_d(qe.element).each(gt=>{Rr(ft.event.target,"[data-mce-tooltip]")&&F.getTooltip().fold(()=>{Sa(qe,Q6)},At=>{F.isShowing()&&(s.onShow(qe,At),we(qe))})})}),fo(Xg(),qe=>{_d(qe.element).fold(()=>{Sa(qe,j6)},v)})]}};return pl(ve([[fo(M5,qe=>{F.resetTimer(()=>{ue(qe)},s.delayForShow())}),fo(E5,qe=>{F.resetTimer(()=>{Z(qe)},s.delayForHide())}),fo(Q6,qe=>{F.resetTimer(()=>{ue(qe)},0)}),fo(j6,qe=>{F.resetTimer(()=>{Z(qe)},0)}),fo(lp(),(qe,ft)=>{const gt=ft;gt.universal||X(gt.channels,yz)&&Z(qe)}),Sh(qe=>{Z(qe)})],Be()]))}}),GW=[Sn("lazySink"),Sn("tooltipDom"),mr("exclusive",!0),mr("tooltipComponents",[]),Pa("delayForShow",x(300)),Pa("delayForHide",x(300)),hl("mode","normal",["normal","follow-highlight","children-keyboard-focus","children-normal"]),mr("anchor",s=>({type:"hotspot",hotspot:s,layouts:{onLtr:x([Pc,Jc,Ec,Hc,Qc,_s]),onRtl:x([Pc,Jc,Ec,Hc,Qc,_s])},bubble:pp(0,-2,{})})),Ra("onHide"),Ra("onShow")],f7=Object.freeze({__proto__:null,init:()=>{const s=os(),F=os(),Z=()=>{s.on(clearTimeout)},ue=(Be,qe)=>{Z(),s.set(setTimeout(Be,qe))},we=x("not-implemented");return kh({getTooltip:F.get,isShowing:F.isSet,setTooltip:F.set,clearTooltip:F.clear,clearTimer:Z,resetTimer:ue,readState:we})}});const Td=lf({fields:GW,name:"tooltipping",active:XW,state:f7,apis:YW}),{entries:xz,setPrototypeOf:_z,isFrozen:wz,getPrototypeOf:KW,getOwnPropertyDescriptor:JW}=Object;let{freeze:Zm,seal:vv,create:eY}=Object,{apply:d7,construct:P5}=typeof Reflect<"u"&&Reflect;d7||(d7=function(F,Z,ue){return F.apply(Z,ue)}),Zm||(Zm=function(F){return F}),vv||(vv=function(F){return F}),P5||(P5=function(F,Z){return new F(...Z)});const tY=n1(Array.prototype.forEach),nY=n1(Array.prototype.pop),R5=n1(Array.prototype.push),H6=n1(String.prototype.toLowerCase),h7=n1(String.prototype.toString),rY=n1(String.prototype.match),yv=n1(String.prototype.replace),oY=n1(String.prototype.indexOf),iY=n1(String.prototype.trim),f0=n1(RegExp.prototype.test),L5=aY(TypeError);function n1(s){return function(F){for(var Z=arguments.length,ue=new Array(Z>1?Z-1:0),we=1;we/gm),sY=vv(/\${[\w\W]*}/gm),lY=vv(/^data-[\-\w.\u00B7-\uFFFF]/),cY=vv(/^aria-[\-\w]+$/),kz=vv(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z5=vv(/^(?:\w+script|data):/i),uY=vv(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),x7=vv(/^html$/i);var q6=Object.freeze({__proto__:null,MUSTACHE_EXPR:Py,ERB_EXPR:b7,TMPLIT_EXPR:sY,DATA_ATTR:lY,ARIA_ATTR:cY,IS_ALLOWED_URI:kz,IS_SCRIPT_OR_DATA:z5,ATTR_WHITESPACE:uY,DOCTYPE_NAME:x7});const fY=()=>typeof window>"u"?null:window,_7=function(F,Z){if(typeof F!="object"||typeof F.createPolicy!="function")return null;let ue=null;const we="data-tt-policy-suffix";Z&&Z.hasAttribute(we)&&(ue=Z.getAttribute(we));const Be="dompurify"+(ue?"#"+ue:"");try{return F.createPolicy(Be,{createHTML(qe){return qe},createScriptURL(qe){return qe}})}catch{return console.warn("TrustedTypes policy "+Be+" could not be created."),null}};function W6(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fY();const F=ns=>W6(ns);if(F.version="3.0.5",F.removed=[],!s||!s.document||s.document.nodeType!==9)return F.isSupported=!1,F;const Z=s.document,ue=Z.currentScript;let{document:we}=s;const{DocumentFragment:Be,HTMLTemplateElement:qe,Node:ft,Element:gt,NodeFilter:At,NamedNodeMap:$t=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:on,DOMParser:yn,trustedTypes:wn}=s,Mn=gt.prototype,Xn=X3(Mn,"cloneNode"),Br=X3(Mn,"nextSibling"),or=X3(Mn,"childNodes"),Mr=X3(Mn,"parentNode");if(typeof qe=="function"){const ns=we.createElement("template");ns.content&&ns.content.ownerDocument&&(we=ns.content.ownerDocument)}let kr,yo="";const{implementation:Xr,createNodeIterator:No,createDocumentFragment:Jo,getElementsByTagName:ho}=we,{importNode:Ci}=Z;let mi={};F.isSupported=typeof xz=="function"&&typeof Mr=="function"&&Xr&&Xr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:qi,ERB_EXPR:Fi,TMPLIT_EXPR:Os,DATA_ATTR:vs,ARIA_ATTR:Ha,IS_SCRIPT_OR_DATA:Ho,ATTR_WHITESPACE:wi}=q6;let{IS_ALLOWED_URI:_a}=q6,Ki=null;const ji=Ks({},[...Oz,...p7,...m7,...g7,...Z6]);let va=null;const Cl=Ks({},[...y7,...I5,...D5,...B5]);let Ns=Object.seal(Object.create(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}})),zh=null,zg=null,Av=!0,dh=!0,Fg=!1,w0=!0,im=!1,jy=!1,mO=!1,CL=!1,L4=!1,SA=!1,fQ=!1,jfe=!0,Qfe=!1;const ROe="user-content-";let Voe=!0,AL=!1,kA={},TA=null;const Hfe=Ks({},["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"]);let Zfe=null;const qfe=Ks({},["audio","video","img","source","image","track"]);let Uoe=null;const Wfe=Ks({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dQ="http://www.w3.org/1998/Math/MathML",hQ="http://www.w3.org/2000/svg",gO="http://www.w3.org/1999/xhtml";let CA=gO,joe=!1,Qoe=null;const LOe=Ks({},[dQ,hQ,gO],h7);let Uk;const IOe=["application/xhtml+xml","text/html"],DOe="text/html";let am,AA=null;const BOe=we.createElement("form"),Yfe=function(oo){return oo instanceof RegExp||oo instanceof Function},Hoe=function(oo){if(!(AA&&AA===oo)){if((!oo||typeof oo!="object")&&(oo={}),oo=Y3(oo),Uk=IOe.indexOf(oo.PARSER_MEDIA_TYPE)===-1?Uk=DOe:Uk=oo.PARSER_MEDIA_TYPE,am=Uk==="application/xhtml+xml"?h7:H6,Ki="ALLOWED_TAGS"in oo?Ks({},oo.ALLOWED_TAGS,am):ji,va="ALLOWED_ATTR"in oo?Ks({},oo.ALLOWED_ATTR,am):Cl,Qoe="ALLOWED_NAMESPACES"in oo?Ks({},oo.ALLOWED_NAMESPACES,h7):LOe,Uoe="ADD_URI_SAFE_ATTR"in oo?Ks(Y3(Wfe),oo.ADD_URI_SAFE_ATTR,am):Wfe,Zfe="ADD_DATA_URI_TAGS"in oo?Ks(Y3(qfe),oo.ADD_DATA_URI_TAGS,am):qfe,TA="FORBID_CONTENTS"in oo?Ks({},oo.FORBID_CONTENTS,am):Hfe,zh="FORBID_TAGS"in oo?Ks({},oo.FORBID_TAGS,am):{},zg="FORBID_ATTR"in oo?Ks({},oo.FORBID_ATTR,am):{},kA="USE_PROFILES"in oo?oo.USE_PROFILES:!1,Av=oo.ALLOW_ARIA_ATTR!==!1,dh=oo.ALLOW_DATA_ATTR!==!1,Fg=oo.ALLOW_UNKNOWN_PROTOCOLS||!1,w0=oo.ALLOW_SELF_CLOSE_IN_ATTR!==!1,im=oo.SAFE_FOR_TEMPLATES||!1,jy=oo.WHOLE_DOCUMENT||!1,L4=oo.RETURN_DOM||!1,SA=oo.RETURN_DOM_FRAGMENT||!1,fQ=oo.RETURN_TRUSTED_TYPE||!1,CL=oo.FORCE_BODY||!1,jfe=oo.SANITIZE_DOM!==!1,Qfe=oo.SANITIZE_NAMED_PROPS||!1,Voe=oo.KEEP_CONTENT!==!1,AL=oo.IN_PLACE||!1,_a=oo.ALLOWED_URI_REGEXP||kz,CA=oo.NAMESPACE||gO,Ns=oo.CUSTOM_ELEMENT_HANDLING||{},oo.CUSTOM_ELEMENT_HANDLING&&Yfe(oo.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ns.tagNameCheck=oo.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oo.CUSTOM_ELEMENT_HANDLING&&Yfe(oo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ns.attributeNameCheck=oo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oo.CUSTOM_ELEMENT_HANDLING&&typeof oo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ns.allowCustomizedBuiltInElements=oo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),im&&(dh=!1),SA&&(L4=!0),kA&&(Ki=Ks({},[...Z6]),va=[],kA.html===!0&&(Ks(Ki,Oz),Ks(va,y7)),kA.svg===!0&&(Ks(Ki,p7),Ks(va,I5),Ks(va,B5)),kA.svgFilters===!0&&(Ks(Ki,m7),Ks(va,I5),Ks(va,B5)),kA.mathMl===!0&&(Ks(Ki,g7),Ks(va,D5),Ks(va,B5))),oo.ADD_TAGS&&(Ki===ji&&(Ki=Y3(Ki)),Ks(Ki,oo.ADD_TAGS,am)),oo.ADD_ATTR&&(va===Cl&&(va=Y3(va)),Ks(va,oo.ADD_ATTR,am)),oo.ADD_URI_SAFE_ATTR&&Ks(Uoe,oo.ADD_URI_SAFE_ATTR,am),oo.FORBID_CONTENTS&&(TA===Hfe&&(TA=Y3(TA)),Ks(TA,oo.FORBID_CONTENTS,am)),Voe&&(Ki["#text"]=!0),jy&&Ks(Ki,["html","head","body"]),Ki.table&&(Ks(Ki,["tbody"]),delete zh.tbody),oo.TRUSTED_TYPES_POLICY){if(typeof oo.TRUSTED_TYPES_POLICY.createHTML!="function")throw L5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof oo.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw L5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');kr=oo.TRUSTED_TYPES_POLICY,yo=kr.createHTML("")}else kr===void 0&&(kr=_7(wn,ue)),kr!==null&&typeof yo=="string"&&(yo=kr.createHTML(""));Zm&&Zm(oo),AA=oo}},Xfe=Ks({},["mi","mo","mn","ms","mtext"]),Gfe=Ks({},["foreignobject","desc","title","annotation-xml"]),zOe=Ks({},["title","style","font","a","script"]),pQ=Ks({},p7);Ks(pQ,m7),Ks(pQ,Sz);const Zoe=Ks({},g7);Ks(Zoe,v7);const FOe=function(oo){let Di=Mr(oo);(!Di||!Di.tagName)&&(Di={namespaceURI:CA,tagName:"template"});const pa=H6(oo.tagName),Xu=H6(Di.tagName);return Qoe[oo.namespaceURI]?oo.namespaceURI===hQ?Di.namespaceURI===gO?pa==="svg":Di.namespaceURI===dQ?pa==="svg"&&(Xu==="annotation-xml"||Xfe[Xu]):!!pQ[pa]:oo.namespaceURI===dQ?Di.namespaceURI===gO?pa==="math":Di.namespaceURI===hQ?pa==="math"&&Gfe[Xu]:!!Zoe[pa]:oo.namespaceURI===gO?Di.namespaceURI===hQ&&!Gfe[Xu]||Di.namespaceURI===dQ&&!Xfe[Xu]?!1:!Zoe[pa]&&(zOe[pa]||!pQ[pa]):!!(Uk==="application/xhtml+xml"&&Qoe[oo.namespaceURI]):!1},jk=function(oo){R5(F.removed,{element:oo});try{oo.parentNode.removeChild(oo)}catch{oo.remove()}},ML=function(oo,Di){try{R5(F.removed,{attribute:Di.getAttributeNode(oo),from:Di})}catch{R5(F.removed,{attribute:null,from:Di})}if(Di.removeAttribute(oo),oo==="is"&&!va[oo])if(L4||SA)try{jk(Di)}catch{}else try{Di.setAttribute(oo,"")}catch{}},Kfe=function(oo){let Di,pa;if(CL)oo=""+oo;else{const Qy=rY(oo,/^[\r\n\t ]+/);pa=Qy&&Qy[0]}Uk==="application/xhtml+xml"&&CA===gO&&(oo=''+oo+"");const Xu=kr?kr.createHTML(oo):oo;if(CA===gO)try{Di=new yn().parseFromString(Xu,Uk)}catch{}if(!Di||!Di.documentElement){Di=Xr.createDocument(CA,"template",null);try{Di.documentElement.innerHTML=joe?yo:Xu}catch{}}const sm=Di.body||Di.documentElement;return oo&&pa&&sm.insertBefore(we.createTextNode(pa),sm.childNodes[0]||null),CA===gO?ho.call(Di,jy?"html":"body")[0]:jy?Di.documentElement:sm},Jfe=function(oo){return No.call(oo.ownerDocument||oo,oo,At.SHOW_ELEMENT|At.SHOW_COMMENT|At.SHOW_TEXT,null,!1)},NOe=function(oo){return oo instanceof on&&(typeof oo.nodeName!="string"||typeof oo.textContent!="string"||typeof oo.removeChild!="function"||!(oo.attributes instanceof $t)||typeof oo.removeAttribute!="function"||typeof oo.setAttribute!="function"||typeof oo.namespaceURI!="string"||typeof oo.insertBefore!="function"||typeof oo.hasChildNodes!="function")},mQ=function(oo){return typeof ft=="object"?oo instanceof ft:oo&&typeof oo=="object"&&typeof oo.nodeType=="number"&&typeof oo.nodeName=="string"},vO=function(oo,Di,pa){mi[oo]&&tY(mi[oo],Xu=>{Xu.call(F,Di,pa,AA)})},ede=function(oo){let Di;if(vO("beforeSanitizeElements",oo,null),NOe(oo))return jk(oo),!0;const pa=am(oo.nodeName);if(vO("uponSanitizeElement",oo,{tagName:pa,allowedTags:Ki}),oo.hasChildNodes()&&!mQ(oo.firstElementChild)&&(!mQ(oo.content)||!mQ(oo.content.firstElementChild))&&f0(/<[/\w]/g,oo.innerHTML)&&f0(/<[/\w]/g,oo.textContent))return jk(oo),!0;if(!Ki[pa]||zh[pa]){if(!zh[pa]&&nde(pa)&&(Ns.tagNameCheck instanceof RegExp&&f0(Ns.tagNameCheck,pa)||Ns.tagNameCheck instanceof Function&&Ns.tagNameCheck(pa)))return!1;if(Voe&&!TA[pa]){const Xu=Mr(oo)||oo.parentNode,sm=or(oo)||oo.childNodes;if(sm&&Xu){const Qy=sm.length;for(let Qd=Qy-1;Qd>=0;--Qd)Xu.insertBefore(Xn(sm[Qd],!0),Br(oo))}}return jk(oo),!0}return oo instanceof gt&&!FOe(oo)||(pa==="noscript"||pa==="noembed"||pa==="noframes")&&f0(/<\/no(script|embed|frames)/i,oo.innerHTML)?(jk(oo),!0):(im&&oo.nodeType===3&&(Di=oo.textContent,Di=yv(Di,qi," "),Di=yv(Di,Fi," "),Di=yv(Di,Os," "),oo.textContent!==Di&&(R5(F.removed,{element:oo.cloneNode()}),oo.textContent=Di)),vO("afterSanitizeElements",oo,null),!1)},tde=function(oo,Di,pa){if(jfe&&(Di==="id"||Di==="name")&&(pa in we||pa in BOe))return!1;if(!(dh&&!zg[Di]&&f0(vs,Di))){if(!(Av&&f0(Ha,Di))){if(!va[Di]||zg[Di]){if(!(nde(oo)&&(Ns.tagNameCheck instanceof RegExp&&f0(Ns.tagNameCheck,oo)||Ns.tagNameCheck instanceof Function&&Ns.tagNameCheck(oo))&&(Ns.attributeNameCheck instanceof RegExp&&f0(Ns.attributeNameCheck,Di)||Ns.attributeNameCheck instanceof Function&&Ns.attributeNameCheck(Di))||Di==="is"&&Ns.allowCustomizedBuiltInElements&&(Ns.tagNameCheck instanceof RegExp&&f0(Ns.tagNameCheck,pa)||Ns.tagNameCheck instanceof Function&&Ns.tagNameCheck(pa))))return!1}else if(!Uoe[Di]){if(!f0(_a,yv(pa,wi,""))){if(!((Di==="src"||Di==="xlink:href"||Di==="href")&&oo!=="script"&&oY(pa,"data:")===0&&Zfe[oo])){if(!(Fg&&!f0(Ho,yv(pa,wi,"")))){if(pa)return!1}}}}}}return!0},nde=function(oo){return oo.indexOf("-")>0},rde=function(oo){let Di,pa,Xu,sm;vO("beforeSanitizeAttributes",oo,null);const{attributes:Qy}=oo;if(!Qy)return;const Qd={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:va};for(sm=Qy.length;sm--;){Di=Qy[sm];const{name:Hy,namespaceURI:qoe}=Di;pa=Hy==="value"?Di.value:iY(Di.value);const VOe=pa;if(Xu=am(Hy),Qd.attrName=Xu,Qd.attrValue=pa,Qd.keepAttr=!0,Qd.forceKeepAttr=void 0,vO("uponSanitizeAttribute",oo,Qd),pa=Qd.attrValue,Qd.forceKeepAttr)continue;if(!Qd.keepAttr){ML(Hy,oo);continue}if(!w0&&f0(/\/>/i,pa)){ML(Hy,oo);continue}im&&(pa=yv(pa,qi," "),pa=yv(pa,Fi," "),pa=yv(pa,Os," "));const ode=am(oo.nodeName);if(!tde(ode,Xu,pa)){ML(Hy,oo);continue}if(Qfe&&(Xu==="id"||Xu==="name")&&(ML(Hy,oo),pa=ROe+pa),kr&&typeof wn=="object"&&typeof wn.getAttributeType=="function"&&!qoe)switch(wn.getAttributeType(ode,Xu)){case"TrustedHTML":{pa=kr.createHTML(pa);break}case"TrustedScriptURL":{pa=kr.createScriptURL(pa);break}}if(pa!==VOe)try{qoe?oo.setAttributeNS(qoe,Hy,pa):oo.setAttribute(Hy,pa)}catch{ML(Hy,oo)}}vO("afterSanitizeAttributes",oo,null)},$Oe=function ns(oo){let Di;const pa=Jfe(oo);for(vO("beforeSanitizeShadowDOM",oo,null);Di=pa.nextNode();)vO("uponSanitizeShadowNode",Di,null),!ede(Di)&&(Di.content instanceof Be&&ns(Di.content),rde(Di));vO("afterSanitizeShadowDOM",oo,null)};return F.sanitize=function(ns){let oo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Di,pa,Xu,sm;if(joe=!ns,joe&&(ns=""),typeof ns!="string"&&!mQ(ns))if(typeof ns.toString=="function"){if(ns=ns.toString(),typeof ns!="string")throw L5("dirty is not a string, aborting")}else throw L5("toString is not a function");if(!F.isSupported)return ns;if(mO||Hoe(oo),F.removed=[],typeof ns=="string"&&(AL=!1),AL){if(ns.nodeName){const Hy=am(ns.nodeName);if(!Ki[Hy]||zh[Hy])throw L5("root node is forbidden and cannot be sanitized in-place")}}else if(ns instanceof ft)Di=Kfe(""),pa=Di.ownerDocument.importNode(ns,!0),pa.nodeType===1&&pa.nodeName==="BODY"||pa.nodeName==="HTML"?Di=pa:Di.appendChild(pa);else{if(!L4&&!im&&!jy&&ns.indexOf("<")===-1)return kr&&fQ?kr.createHTML(ns):ns;if(Di=Kfe(ns),!Di)return L4?null:fQ?yo:""}Di&&CL&&jk(Di.firstChild);const Qy=Jfe(AL?ns:Di);for(;Xu=Qy.nextNode();)ede(Xu)||(Xu.content instanceof Be&&$Oe(Xu.content),rde(Xu));if(AL)return ns;if(L4){if(SA)for(sm=Jo.call(Di.ownerDocument);Di.firstChild;)sm.appendChild(Di.firstChild);else sm=Di;return(va.shadowroot||va.shadowrootmode)&&(sm=Ci.call(Z,sm,!0)),sm}let Qd=jy?Di.outerHTML:Di.innerHTML;return jy&&Ki["!doctype"]&&Di.ownerDocument&&Di.ownerDocument.doctype&&Di.ownerDocument.doctype.name&&f0(x7,Di.ownerDocument.doctype.name)&&(Qd=" +`+Qd),im&&(Qd=yv(Qd,qi," "),Qd=yv(Qd,Fi," "),Qd=yv(Qd,Os," ")),kr&&fQ?kr.createHTML(Qd):Qd},F.setConfig=function(ns){Hoe(ns),mO=!0},F.clearConfig=function(){AA=null,mO=!1},F.isValidAttribute=function(ns,oo,Di){AA||Hoe({});const pa=am(ns),Xu=am(oo);return tde(pa,Xu,Di)},F.addHook=function(ns,oo){typeof oo=="function"&&(mi[ns]=mi[ns]||[],R5(mi[ns],oo))},F.removeHook=function(ns){if(mi[ns])return nY(mi[ns])},F.removeHooks=function(ns){mi[ns]&&(mi[ns]=[])},F.removeAllHooks=function(){mi={}},F}var dY=W6();const w7=s=>dY().sanitize(s);var Ag=tinymce.util.Tools.resolve("tinymce.util.I18n");const hY={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},Tz="temporary-placeholder",O7=s=>()=>Ge(s,Tz).getOr("!not found!"),S7=(s,F)=>{const Z=s.toLowerCase();if(Ag.isRtl()){const ue=vt(Z,"-rtl");return ht(F,ue)?ue:Z}else return Z},Cz=(s,F)=>Ge(F,S7(s,F)),Az=(s,F)=>{const Z=F();return Cz(s,Z).getOrThunk(O7(Z))},Mz=(s,F,Z)=>{const ue=F();return Cz(s,ue).or(Z).getOrThunk(O7(ue))},Ez=s=>Ag.isRtl()?ht(hY,s):!1,k7=()=>Ca("add-focusable",[Ll(s=>{rc(s.element,"svg").each(F=>fr(F,"focusable","false"))})]),T7=(s,F,Z,ue)=>{var we,Be;const qe=Ez(F)?["tox-icon--flip"]:[],ft=Ge(Z,S7(F,Z)).or(ue).getOrThunk(O7(Z));return{dom:{tag:s.tag,attributes:(we=s.attributes)!==null&&we!==void 0?we:{},classes:s.classes.concat(qe),innerHtml:ft},behaviours:Bo([...(Be=s.behaviours)!==null&&Be!==void 0?Be:[],k7()])}},em=(s,F,Z,ue=I.none())=>T7(F,s,Z(),ue),Pz=(s,F,Z)=>{const ue=Z(),we=ce(s,Be=>ht(ue,S7(Be,ue)));return T7(F,we.getOr(Tz),ue,I.none())},pY={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},Y6=Yh({name:"Notification",factory:s=>{const F=fi("notification-text"),Z=qs({dom:gv(`

    ${w7(s.backstageProvider.translate(s.text))}

    `),behaviours:Bo([da.config({})])}),ue=Mn=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${Mn}%`}}}),we=Mn=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${Mn}%`}}),Be=qs({dom:{tag:"div",classes:s.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[ue(0)]},we(0)],behaviours:Bo([da.config({})])}),gt={updateProgress:(Mn,Xn)=>{Mn.getSystem().isConnected()&&Be.getOpt(Mn).each(Br=>{da.set(Br,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[ue(Xn)]},we(Xn)])})},updateText:(Mn,Xn)=>{if(Mn.getSystem().isConnected()){const Br=Z.get(Mn);da.set(Br,[ro(Xn)])}}},At=ve([s.icon.toArray(),s.level.toArray(),s.level.bind(Mn=>I.from(pY[Mn])).toArray()]),$t=qs(Vd.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":s.backstageProvider.translate("Close")}},components:[em("close",{tag:"span",classes:["tox-icon"]},s.iconProvider)],buttonBehaviours:Bo([Wl.config({}),Td.config({...s.backstageProvider.tooltips.getConfig({tooltipText:s.backstageProvider.translate("Close")})})]),action:Mn=>{s.onAction(Mn)}})),on=Pz(At,{tag:"div",classes:["tox-notification__icon"]},s.iconProvider),yn={dom:{tag:"div",classes:["tox-notification__body"]},components:[Z.asSpec()],behaviours:Bo([da.config({})])},wn=[on,yn];return{uid:s.uid,dom:{tag:"div",attributes:{role:"alert","aria-labelledby":F},classes:s.level.map(Mn=>["tox-notification","tox-notification--in",`tox-notification--${Mn}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:Bo([Wl.config({}),oa.config({}),Li.config({mode:"special",onEscape:Mn=>(s.onAction(Mn),I.some(!0))})]),components:wn.concat(s.progress?[Be.asSpec()]:[]).concat([$t.asSpec()]),apis:gt}},configFields:[Hr("level"),Sn("progress"),Hr("icon"),Sn("onAction"),Sn("text"),Sn("iconProvider"),Sn("backstageProvider")],apis:{updateProgress:(s,F,Z)=>{s.updateProgress(F,Z)},updateText:(s,F,Z)=>{s.updateText(F,Z)}}});var mY=(s,F,Z,ue)=>{const we=F.backstage.shared,Be=()=>{const $t=Ya(Pt.fromDom(s.getContentAreaContainer()));return I.some($t)},qe=$t=>{Be().each(on=>{q($t,yn=>{cc(yn.element)>on.width&&ko(yn.element,"width",on.width+"px")})})};return{open:($t,on,yn)=>{const wn=()=>{const or=Xr=>{da.remove(Xr,Mn),Xn()},Mr=(Xr,No)=>{bo(Xr.element).length===0?kr(Xr,No):yo(Xr,No)},kr=(Xr,No)=>{hc.hide(Xr),ue.clear(),No&&s.focus()},yo=(Xr,No)=>{No&&Li.focusIn(Xr)};ue.on(Xr=>{on();const No=yn();or(Xr),Mr(Xr,No)})},Mn=vi(Y6.sketch({text:$t.text,level:X(["success","error","warning","warn","info"],$t.type)?$t.type:void 0,progress:$t.progressBar===!0,icon:$t.icon,onAction:wn,iconProvider:we.providers.icons,backstageProvider:we.providers}));if(ue.isSet()){const or=na(Mn);ue.on(Mr=>{da.append(Mr,or),hc.reposition(Mr),Dl.refresh(Mr),qe(Mr.components())})}else{const or=vi(hc.sketch({dom:{tag:"div",classes:["tox-notifications-container"],attributes:{"aria-label":"Notifications",role:"region"}},lazySink:we.getSink,fireDismissalEventInstead:{},...we.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Bo([Li.config({mode:"cyclic",selector:".tox-notification, .tox-notification a, .tox-notification button"}),da.config({}),...W3(s)&&!we.header.isPositionedAtTop()?[]:[Dl.config({contextual:{lazyContext:()=>I.some(Ya(Pt.fromDom(s.getContentAreaContainer()))),fadeInClass:"tox-notification-container-dock-fadein",fadeOutClass:"tox-notification-container-dock-fadeout",transitionClass:"tox-notification-container-dock-transition"},modes:["top"],lazyViewport:Xr=>Jb(s,Xr.element).map(Jo=>({bounds:zw(Jo),optScrollEnv:I.some({currentScrollTop:Jo.element.dom.scrollTop,scrollElmTop:pc(Jo.element).top})})).getOrThunk(()=>({bounds:wl(),optScrollEnv:I.none()}))})]])})),Mr=na(Mn),kr={maxHeightFunction:W0()},yo={...we.anchors.banner(),overrides:kr};ue.set(or),Z.add(or),hc.showWithinBounds(or,Mr,{anchor:yo},Be)}h($t.timeout)&&$t.timeout>0&&S5.setEditorTimeout(s,()=>{wn()},$t.timeout);const Xn=()=>{ue.on(or=>{hc.reposition(or),Dl.refresh(or),qe(or.components())})};return{close:wn,reposition:Xn,text:or=>{Y6.updateText(Mn,or)},settings:$t,getEl:()=>Mn.element.dom,progressBar:{value:or=>{Y6.updateProgress(Mn,or)}}}},close:$t=>{$t.close()},getArgs:$t=>$t.settings}};const Rz={setup:(s,F)=>{const Z=(we,Be)=>{Ri(we,Bp(),{raw:Be})},ue=()=>s.getMenu().bind(ri.getHighlighted);F.on("keydown",we=>{const Be=we.which;s.isActive()&&(s.isMenuOpen()?Be===13?(ue().each(Fp),we.preventDefault()):Be===40?(ue().fold(()=>{s.getMenu().each(ri.highlightFirst)},qe=>{Z(qe,we)}),we.preventDefault(),we.stopImmediatePropagation()):(Be===37||Be===38||Be===39)&&ue().each(qe=>{Z(qe,we),we.preventDefault(),we.stopImmediatePropagation()}):(Be===13||Be===38||Be===40)&&s.cancelIfNecessary())}),F.on("NodeChange",()=>{s.isActive()&&!s.isProcessingAction()&&!F.queryCommandState("mceAutoCompleterInRange")&&s.cancelIfNecessary()})}};var X6;(function(s){s[s.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",s[s.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(X6||(X6={}));var r1=X6;const G6="tox-menu-nav__js",K6="tox-collection__item",C7="tox-swatch",Lz={normal:G6,color:C7},J6="tox-collection__item--enabled",A7="tox-collection__group-heading",M7="tox-collection__item-icon",eC="tox-collection__item-label",Iz="tox-collection__item-accessory",Dz="tox-collection__item-caret",E7="tox-collection__item-checkmark",Fw="tox-collection__item--active",P7="tox-collection__item-container",Bz="tox-collection__item-container--column",A2="tox-collection__item-container--row",gY="tox-collection__item-container--align-right",R7="tox-collection__item-container--align-left",tC="tox-collection__item-container--valign-top",vY="tox-collection__item-container--valign-middle",zz="tox-collection__item-container--valign-bottom",L7=s=>Ge(Lz,s).getOr(G6),Fz=s=>s==="color"?"tox-swatches":"tox-menu",F5=s=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:Fz(s),tieredMenu:"tox-tiered-menu"}),M2=s=>{const F=F5(s);return{backgroundMenu:F.backgroundMenu,selectedMenu:F.selectedMenu,menu:F.menu,selectedItem:F.selectedItem,item:L7(s)}},yY=(s,F,Z)=>{const ue=F5(Z);return{tag:"div",classes:ve([[ue.menu,`tox-menu-${F}-column`],s?[ue.hasIcons]:[]])}},Nz=[Pw.parts.items({})],N5=(s,F,Z)=>{const ue=F5(Z);return{dom:{tag:"div",classes:ve([[ue.tieredMenu]])},markers:M2(Z)}},I7=x([Hr("data"),mr("inputAttributes",{}),mr("inputStyles",{}),mr("tag","input"),mr("inputClasses",[]),Ra("onSetValue"),mr("styles",{}),mr("eventOrder",{}),Pf("inputBehaviours",[hi,oa]),mr("selectOnFocus",!0)]),D7=s=>Bo([oa.config({onFocus:s.selectOnFocus?F=>{const Z=F.element,ue=qr(Z);Z.dom.setSelectionRange(0,ue.length)}:v})]),bY=s=>({...D7(s),...Rf(s.inputBehaviours,[hi.config({store:{mode:"manual",...s.data.map(F=>({initialValue:F})).getOr({}),getValue:F=>qr(F.element),setValue:(F,Z)=>{qr(F.element)!==Z&&N(F.element,Z)}},onSetValue:s.onSetValue})])}),B7=s=>({tag:s.tag,attributes:{type:"text",...s.inputAttributes},styles:s.inputStyles,classes:s.inputClasses}),xY=(s,F)=>({uid:s.uid,dom:B7(s),components:[],behaviours:bY(s),eventOrder:s.eventOrder}),Nw=Yh({name:"Input",configFields:I7(),factory:xY}),$z=fi("refetch-trigger-event"),Vz=fi("redirect-menu-item-interaction"),z7="tox-menu__searcher",E2=s=>aa(s.element,`.${z7}`).bind(F=>s.getSystem().getByDom(F).toOptional()),F7=E2,_Y=(s,F)=>{hi.setValue(s,F.fetchPattern),s.element.dom.selectionStart=F.selectionStart,s.element.dom.selectionEnd=F.selectionEnd},Uz=s=>{const F=hi.getValue(s),Z=s.element.dom.selectionStart,ue=s.element.dom.selectionEnd;return{fetchPattern:F,selectionStart:Z,selectionEnd:ue}},wY=(s,F)=>{co(F.element,"id").each(Z=>fr(s.element,"aria-activedescendant",Z))},OY=s=>{const F=(we,Be)=>(Be.cut(),I.none()),Z=(we,Be)=>{const qe={interactionEvent:Be.event,eventType:Be.event.raw.type};return Ri(we,Vz,qe),I.some(!0)},ue="searcher-events";return{dom:{tag:"div",classes:[K6]},components:[Nw.sketch({inputClasses:[z7,"tox-textfield"],inputAttributes:{...s.placeholder.map(we=>({placeholder:s.i18n(we)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:Bo([Ca(ue,[fo(ug(),we=>{Sa(we,$z)}),fo(Bp(),(we,Be)=>{Be.event.raw.key==="Escape"&&Be.stop()})]),Li.config({mode:"special",onLeft:F,onRight:F,onSpace:F,onEnter:Z,onEscape:Z,onUp:Z,onDown:Z})]),eventOrder:{keydown:[ue,Li.name()]}})]}},nC="tox-collection--results__js",$5=s=>{var F;return s.dom?{...s,dom:{...s.dom,attributes:{...(F=s.dom.attributes)!==null&&F!==void 0?F:{},id:fi("aria-item-search-result-id"),"aria-selected":"false"}}}:s},N7=(s,F)=>Z=>{const ue=K(Z,F);return oe(ue,we=>({dom:s,components:we}))},jz=s=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[Pw.parts.items({preprocess:s!=="auto"?N7({tag:"div",classes:["tox-swatches__row"]},s):R})]}]}),SY=s=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[Pw.parts.items({preprocess:N7({tag:"div",classes:["tox-collection__group"]},s)})]}),$7=(s,F)=>{const Z=[];let ue=[];return q(s,(we,Be)=>{F(we,Be)?(ue.length>0&&Z.push(ue),ue=[],(ht(we.dom,"innerHtml")||we.components&&we.components.length>0)&&ue.push(we)):ue.push(we)}),ue.length>0&&Z.push(ue),oe(Z,we=>({dom:{tag:"div",classes:["tox-collection__group"]},components:we}))},rC=(s,F,Z)=>Pw.parts.items({preprocess:ue=>{const we=oe(ue,Z);return s!=="auto"&&s>1?N7({tag:"div",classes:["tox-collection__group"]},s)(we):$7(we,(Be,qe)=>F[qe].type==="separator")}}),Qz=(s,F,Z=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(s===1?["tox-collection--list"]:["tox-collection--grid"])},components:[rC(s,F,R)]}),Hz=(s,F,Z=!0)=>{const ue=fi("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",nC].concat(s===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:ue}},components:[rC(s,F,$5)]}},Zz=(s,F,Z)=>{const ue=fi("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(s===1?["tox-collection--list"]:["tox-collection--grid"])},components:[OY({i18n:Ag.translate,placeholder:Z.placeholder}),{dom:{tag:"div",classes:[...s===1?["tox-collection--list"]:["tox-collection--grid"],nC],attributes:{id:ue}},components:[rC(s,F,$5)]}]}},qz=(s,F=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[Pw.parts.items({preprocess:Z=>$7(Z,(ue,we)=>s[we].type==="separator")})]}),V5=s=>te(s,F=>"icon"in F&&F.icon!==void 0),ex=s=>(console.error(sn(s)),console.log(s),I.none()),kY=(s,F,Z,ue,we)=>{const Be=qz(Z);return{value:s,dom:Be.dom,components:Be.components,items:Z}},V7=(s,F,Z,ue,we)=>{const Be=()=>we.menuType!=="searchable"?Qz(ue,Z):we.searchMode.searchMode==="search-with-field"?Zz(ue,Z,we.searchMode):Hz(ue,Z);if(we.menuType==="color"){const qe=jz(ue);return{value:s,dom:qe.dom,components:qe.components,items:Z}}else if(we.menuType==="normal"&&ue==="auto"){const qe=Qz(ue,Z);return{value:s,dom:qe.dom,components:qe.components,items:Z}}else if(we.menuType==="normal"||we.menuType==="searchable"){const qe=Be();return{value:s,dom:qe.dom,components:qe.components,items:Z}}else if(we.menuType==="listpreview"&&ue!=="auto"){const qe=SY(ue);return{value:s,dom:qe.dom,components:qe.components,items:Z}}else return{value:s,dom:yY(F,ue,we.menuType),components:Nz,items:Z}},Fu=Pr("type"),oC=Pr("name"),iC=Pr("label"),tx=Pr("text"),Wz=Pr("title"),Yz=Pr("icon"),U5=Pr("value"),TY=$o("fetch"),CY=$o("getSubmenuItems"),G3=$o("onAction"),U7=$o("onItemAction"),P2=Pa("onSetup",()=>v),AY=Io("name"),R2=Io("text"),Xz=Io("role"),d0=Io("icon"),j5=Io("tooltip"),aC=Io("label"),sC=Io("shortcut"),Gz=Ui("select"),lC=hs("active",!1),MY=hs("borderless",!1),o1=hs("enabled",!0),Q5=hs("primary",!1),cC=s=>mr("columns",s),j7=mr("meta",{}),Q7=Pa("onAction",v),$w=s=>Ys("type",s),H7=s=>Ln("name","name",Xi(()=>fi(`${s}-name`)),ne),EY=s=>Ln("value","value",Xi(()=>fi(`${s}-value`)),le()),Kz=Mi([Fu,R2]),Jz=s=>jt("separatormenuitem",Kz,s),eF=Mi([$w("autocompleteitem"),lC,o1,j7,U5,R2,d0]),PY=s=>jt("Autocompleter.Separator",Kz,s),RY=s=>jt("Autocompleter.Item",eF,s),H5=[o1,j5,d0,R2,P2],qm=Mi([Fu,G3,sC].concat(H5)),i1=s=>jt("toolbarbutton",qm,s),Z7=[lC].concat(H5),q7=Mi(Z7.concat([Fu,G3,sC])),uC=s=>jt("ToggleButton",q7,s),tF=[Pa("predicate",D),hl("scope","node",["node","editor"]),hl("position","selection",["node","selection","line"])],LY=H5.concat([$w("contextformbutton"),Q5,G3,On("original",R)]),Z5=Z7.concat([$w("contextformbutton"),Q5,G3,On("original",R)]),fC=H5.concat([$w("contextformbutton")]),W7=Z7.concat([$w("contextformtogglebutton")]),IY=xn("type",{contextformbutton:LY,contextformtogglebutton:Z5}),bv=Mi([$w("contextform"),Pa("initValue",x("")),aC,Si("commands",IY),Lo("launch",xn("type",{contextformbutton:fC,contextformtogglebutton:W7}))].concat(tF)),DY=s=>jt("ContextForm",bv,s),BY=Mi([$w("contexttoolbar"),Pr("items")].concat(tF)),h0=s=>jt("ContextToolbar",BY,s),q5=[Fu,Pr("src"),Io("alt"),Ls("classes",[],ne)],a1=Mi(q5),zY=[Fu,tx,AY,Ls("classes",["tox-collection__item-label"],ne)],Tl=Mi(zY),Vw=Ea(()=>rt("type",{cardimage:a1,cardtext:Tl,cardcontainer:dC})),dC=Mi([Fu,Ys("direction","horizontal"),Ys("align","left"),Ys("valign","middle"),Si("items",Vw)]),Uw=[o1,R2,Xz,sC,EY("menuitem"),j7],Y7=Mi([Fu,aC,Si("items",Vw),P2,Q7].concat(Uw)),X7=s=>jt("cardmenuitem",Y7,s),FY=Mi([Fu,lC,d0].concat(Uw)),G7=s=>jt("choicemenuitem",FY,s),nF=[Fu,Pr("fancytype"),Q7],rF=[mr("initData",{})].concat(nF),oF=[Ui("select"),ol("initData",{},[hs("allowCustomColors",!0),Ys("storageKey","default"),ba("colors",le())])].concat(nF),K7=xn("fancytype",{inserttable:rF,colorswatch:oF}),iF=s=>jt("fancymenuitem",K7,s),hC=Mi([Fu,P2,Q7,d0].concat(Uw)),NY=s=>jt("menuitem",hC,s),$Y=Mi([Fu,CY,P2,d0].concat(Uw)),VY=s=>jt("nestedmenuitem",$Y,s),UY=Mi([Fu,d0,lC,P2,G3].concat(Uw)),jY=s=>jt("togglemenuitem",UY,s),pC=(s,F,Z)=>{const ue=$d(s.element,"."+Z);if(ue.length>0){const we=de(ue,Be=>{const qe=Be.dom.getBoundingClientRect().top,ft=ue[0].dom.getBoundingClientRect().top;return Math.abs(qe-ft)>F}).getOr(ue.length);return I.some({numColumns:we,numRows:Math.ceil(ue.length/we)})}else return I.none()},aF=(s,F)=>Bo([Ca(s,F)]),K3={namedEvents:aF,unnamedEvents:s=>aF(fi("unnamed-events"),s)},sF=s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),lF="silver.readonly",QY=Mi([Mo("readonly")]),W5=(s,F)=>{const ue=s.mainUi.outerContainer.element,we=[s.mainUi.mothership,...s.uiMotherships];F&&q(we,Be=>{Be.broadcastOn([K0()],{target:ue})}),q(we,Be=>{Be.broadcastOn([lF],{readonly:F})})},mC=(s,F)=>{s.on("init",()=>{s.mode.isReadOnly()&&W5(F,!0)}),s.on("SwitchMode",()=>W5(F,s.mode.isReadOnly())),M6(s)&&s.mode.set("readonly")},df=()=>Wu.config({channels:{[lF]:{schema:QY,onReceive:(s,F)=>{ta.set(s,F.readonly)}}}}),s1={item:s=>ta.config({disabled:s,disableClass:"tox-collection__item--state-disabled"}),button:s=>ta.config({disabled:s}),splitButton:s=>ta.config({disabled:s,disableClass:"tox-tbtn--disabled"}),toolbarButton:s=>ta.config({disabled:s,disableClass:"tox-tbtn--disabled",useNative:!1})},gC=(s,F)=>{const Z=s.getApi(F);return ue=>{ue(Z)}},nx=(s,F)=>Ll(Z=>{gC(s,Z)(we=>{const Be=s.onSetup(we);u(Be)&&F.set(Be)})}),Ih=(s,F)=>Sh(Z=>gC(s,Z)(F.get())),HY=(s,F)=>$p((Z,ue)=>{gC(s,Z)(s.onAction),!s.triggersSubmenu&&F===r1.CLOSE_ON_EXECUTE&&(Z.getSystem().isConnected()&&Sa(Z,L0()),ue.stop())}),J7={[cp()]:["disabling","alloy.base.behaviour","toggling","item-events"]},jw=It,Qw=(s,F,Z,ue)=>{const we=xi(v);return{type:"item",dom:F.dom,components:jw(F.optComponents),data:s.data,eventOrder:J7,hasSubmenu:s.triggersSubmenu,itemBehaviours:Bo([Ca("item-events",[HY(s,Z),nx(s,we),Ih(s,we)]),s1.item(()=>!s.enabled||ue.isDisabled()),df(),da.config({})].concat(s.itemBehaviours))}},J3=s=>({value:s.value,meta:{text:s.text.getOr(""),...s.meta}}),vC=s=>{const F=Q3.os.isMacOS()||Q3.os.isiOS(),we=F?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},Be=s.split("+"),qe=oe(Be,ft=>{const gt=ft.toLowerCase().trim();return ht(we,gt)?we[gt]:ft});return F?qe.join(""):qe.join("+")},yC=(s,F,Z=[M7])=>em(s,{tag:"div",classes:Z},F),eP=s=>({dom:{tag:"div",classes:[eC]},components:[ro(Ag.translate(s))]}),cF=(s,F)=>({dom:{tag:"div",classes:F,innerHtml:s}}),ZY=(s,F)=>({dom:{tag:"div",classes:[eC]},components:[{dom:{tag:s.tag,styles:s.styles},components:[ro(Ag.translate(F))]}]}),qY=s=>({dom:{tag:"div",classes:[Iz]},components:[ro(vC(s))]}),uF=s=>yC("checkmark",s,[E7]),WY=s=>yC("chevron-right",s,[Dz]),fF=s=>yC("chevron-down",s,[Dz]),dF=(s,F)=>{const Z=s.direction==="vertical"?Bz:A2,ue=s.align==="left"?R7:gY;return{dom:{tag:"div",classes:[P7,Z,ue,(()=>{switch(s.valign){case"top":return tC;case"middle":return vY;case"bottom":return zz}})()]},components:F}},hF=(s,F,Z)=>({dom:{tag:"img",classes:F,attributes:{src:s,alt:Z.getOr("")}}}),YY=(s,F,Z)=>{const ue="custom",we="remove",Be=s.value,qe=s.iconContent.map(At=>Mz(At,F.icons,Z)),ft=s.ariaLabel.map(At=>({"aria-label":F.translate(At),"data-mce-name":At})).getOr({});return{dom:(()=>{const At=C7,$t=qe.getOr(""),on={tag:"div",attributes:ft,classes:[At]};return Be===ue?{...on,tag:"button",classes:[...on.classes,"tox-swatches__picker-btn"],innerHtml:$t}:Be===we?{...on,classes:[...on.classes,"tox-swatch--remove"],innerHtml:$t}:a(Be)?{...on,attributes:{...on.attributes,"data-mce-color":Be},styles:{"background-color":Be},innerHtml:$t}:on})(),optComponents:[]}},pF=s=>{const F=s.map(Z=>({attributes:{id:fi("menu-item"),"aria-label":Ag.translate(Z)}})).getOr({});return{tag:"div",classes:[G6,K6],...F}},XY=(s,F,Z,ue)=>{const we={tag:"div",classes:[M7]},Be=yn=>em(yn,we,F.icons,ue),qe=()=>I.some({dom:we}),ft=Z?s.iconContent.map(Be).orThunk(qe):I.none(),gt=s.checkMark,At=I.from(s.meta).fold(()=>eP,yn=>ht(yn,"style")?T(ZY,yn.style):eP),$t=s.htmlContent.fold(()=>s.textContent.map(At),yn=>I.some(cF(yn,[eC])));return{dom:pF(s.ariaLabel),optComponents:[ft,$t,s.shortcutContent.map(qY),gt,s.caret]}},Ry=(s,F,Z,ue=I.none())=>s.presets==="color"?YY(s,F,ue):XY(s,F,Z,ue),mF=(s,F,Z)=>Ge(s,"tooltipWorker").map(ue=>[Td.config({lazySink:F.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:we=>({type:"submenu",item:we,overrides:{maxHeightFunction:W0}}),mode:"follow-highlight",onShow:(we,Be)=>{ue(qe=>{Td.setComponents(we,[Po({element:Pt.fromDom(qe)})])})}})]).getOrThunk(()=>Z.map(ue=>[Td.config({...F.providers.tooltips.getConfig({tooltipText:ue}),mode:"follow-highlight"})]).getOr([])),gF=s=>Lw.DOM.encode(s),tP=(s,F)=>{const Z=Ag.translate(s),ue=gF(Z);if(F.length>0){const we=new RegExp(sF(F),"gi");return ue.replace(we,Be=>`${Be}`)}else return ue},vF=(s,F,Z,ue,we,Be,qe,ft=!0)=>{const gt=Ry({presets:ue,textContent:I.none(),htmlContent:Z?s.text.map($t=>tP($t,F)):I.none(),ariaLabel:s.text,iconContent:s.icon,shortcutContent:I.none(),checkMark:I.none(),caret:I.none(),value:s.value},qe.providers,ft,s.icon),At=s.text.filter($t=>!Z&&$t!=="");return Qw({data:J3(s),enabled:s.enabled,getApi:x({}),onAction:$t=>we(s.value,s.meta),onSetup:x(v),triggersSubmenu:!1,itemBehaviours:mF(s,qe,At)},gt,Be,qe.providers)},nP=(s,F)=>oe(s,Z=>{switch(Z.type){case"cardcontainer":return dF(Z,nP(Z.items,F));case"cardimage":return hF(Z.src,Z.classes,Z.alt);case"cardtext":const we=Z.name.exists(Be=>X(F.cardText.highlightOn,Be))?I.from(F.cardText.matchText).getOr(""):"";return cF(tP(Z.text,we),Z.classes)}}),rP=(s,F,Z,ue)=>{const we=qe=>({isEnabled:()=>!ta.isDisabled(qe),setEnabled:ft=>{ta.set(qe,!ft),q($d(qe.element,"*"),gt=>{qe.getSystem().getByDom(gt).each(At=>{At.hasConfigured(ta)&&ta.set(At,!ft)})})}}),Be={dom:pF(s.label),optComponents:[I.some({dom:{tag:"div",classes:[P7,A2]},components:nP(s.items,ue)})]};return Qw({data:J3({text:I.none(),...s}),enabled:s.enabled,getApi:we,onAction:s.onAction,onSetup:s.onSetup,triggersSubmenu:!1,itemBehaviours:I.from(ue.itemBehaviours).getOr([])},Be,F,Z.providers)},oP=(s,F,Z,ue,we,Be,qe,ft=!0)=>{const gt=on=>({setActive:yn=>{za.set(on,yn)},isActive:()=>za.isOn(on),isEnabled:()=>!ta.isDisabled(on),setEnabled:yn=>ta.set(on,!yn)}),At=Ry({presets:Z,textContent:F?s.text:I.none(),htmlContent:I.none(),ariaLabel:s.text,iconContent:s.icon,shortcutContent:F?s.shortcut:I.none(),checkMark:F?I.some(uF(qe.icons)):I.none(),caret:I.none(),value:s.value},qe,ft),$t=s.text.filter(x(!F)).map(on=>Td.config(qe.tooltips.getConfig({tooltipText:qe.translate(on)})));return nl(Qw({data:J3(s),enabled:s.enabled,getApi:gt,onAction:on=>ue(s.value),onSetup:on=>(on.setActive(we),v),triggersSubmenu:!1,itemBehaviours:[...$t.toArray()]},At,Be,qe),{toggling:{toggleClass:J6,toggleOnExecute:!1,selected:s.active,exclusive:!0}})},bC=a5(qE(),WE()),iP=s=>({value:xF(s)}),yF=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,aP=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,bF=s=>yF.test(s)||aP.test(s),xF=s=>mn(s,"#").toUpperCase(),GY=s=>bF(s)?I.some({value:xF(s)}):I.none(),_F=s=>({value:s.value.replace(yF,(Z,ue,we,Be)=>ue+ue+we+we+Be+Be)}),wF=s=>{const F=_F(s),Z=aP.exec(F.value);return Z===null?["FFFFFF","FF","FF","FF"]:Z},xC=s=>{const F=s.toString(16);return(F.length===1?"0"+F:F).toUpperCase()},Y5=s=>{const F=xC(s.red)+xC(s.green)+xC(s.blue);return iP(F)},OF=Math.min,SF=Math.max,_C=Math.round,KY=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,JY=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,Hw=(s,F,Z,ue)=>({red:s,green:F,blue:Z,alpha:ue}),sP=s=>{const F=parseInt(s,10);return F.toString()===s&&F>=0&&F<=255},kF=s=>{let F,Z,ue;const we=(s.hue||0)%360;let Be=s.saturation/100,qe=s.value/100;if(Be=SF(0,OF(Be,1)),qe=SF(0,OF(qe,1)),Be===0)return F=Z=ue=_C(255*qe),Hw(F,Z,ue,1);const ft=we/60,gt=qe*Be,At=gt*(1-Math.abs(ft%2-1)),$t=qe-gt;switch(Math.floor(ft)){case 0:F=gt,Z=At,ue=0;break;case 1:F=At,Z=gt,ue=0;break;case 2:F=0,Z=gt,ue=At;break;case 3:F=0,Z=At,ue=gt;break;case 4:F=At,Z=0,ue=gt;break;case 5:F=gt,Z=0,ue=At;break;default:F=Z=ue=0}return F=_C(255*(F+$t)),Z=_C(255*(Z+$t)),ue=_C(255*(ue+$t)),Hw(F,Z,ue,1)},X5=s=>{const F=wF(s),Z=parseInt(F[1],16),ue=parseInt(F[2],16),we=parseInt(F[3],16);return Hw(Z,ue,we,1)},TF=(s,F,Z,ue)=>{const we=parseInt(s,10),Be=parseInt(F,10),qe=parseInt(Z,10),ft=parseFloat(ue);return Hw(we,Be,qe,ft)},wC=s=>{const F=KY.exec(s);if(F!==null)return I.some(TF(F[1],F[2],F[3],"1"));const Z=JY.exec(s);return Z!==null?I.some(TF(Z[1],Z[2],Z[3],Z[4])):I.none()},CF=s=>`rgba(${s.red},${s.green},${s.blue},${s.alpha})`,AF=Hw(255,0,0,1),eX=s=>{s.dispatch("SkinLoaded")},tX=(s,F)=>{s.dispatch("SkinLoadError",F)},nX=s=>{s.dispatch("ResizeEditor")},e4=(s,F)=>{s.dispatch("ResizeContent",F)},MF=(s,F)=>{s.dispatch("ScrollContent",F)},EF=(s,F)=>{s.dispatch("TextColorChange",F)},rX=(s,F)=>{s.dispatch("AfterProgressState",{state:F})},oX=(s,F)=>s.dispatch("ResolveName",{name:F.nodeName.toLowerCase(),target:F}),iX=(s,F)=>{s.dispatch("ToggleToolbarDrawer",{state:F})},aX=(s,F)=>{s.dispatch("StylesTextUpdate",F)},sX=(s,F)=>{s.dispatch("AlignTextUpdate",F)},lP=(s,F)=>{s.dispatch("FontSizeTextUpdate",F)},PF=(s,F)=>{s.dispatch("FontSizeInputTextUpdate",F)},RF=(s,F)=>{s.dispatch("BlocksTextUpdate",F)},lX=(s,F)=>{s.dispatch("FontFamilyTextUpdate",F)},t4=(s,F)=>()=>{s(),F()},Gh=s=>Zw(s,"NodeChange",F=>{F.setEnabled(s.selection.isEditable())}),cX=(s,F)=>Z=>{const ue=js(),we=()=>{Z.setActive(s.formatter.match(F));const Be=s.formatter.formatChanged(F,Z.setActive);ue.set(Be)};return s.initialized?we():s.once("init",we),()=>{s.off("init",we),ue.clear()}},OC=(s,F)=>Z=>{const ue=Gh(s)(Z),we=cX(s,F)(Z);return()=>{ue(),we()}},Zw=(s,F,Z)=>ue=>{const we=()=>Z(ue),Be=()=>{Z(ue),s.on(F,we)};return s.initialized?Be():s.once("init",Be),()=>{s.off("init",Be),s.off(F,we)}},LF=s=>F=>()=>{s.undoManager.transact(()=>{s.focus(),s.execCommand("mceToggleFormat",!1,F.format)})},Wm=(s,F)=>()=>s.execCommand(F);var qw=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const IF={},uX=(s,F=10)=>{const Z=qw.getItem(s),ue=n(Z)?JSON.parse(Z):[],Be=(At=>F-At.length<0?At.slice(0,F):At)(ue),qe=At=>{U(Be,At).each(ft),Be.unshift(At),Be.length>F&&Be.pop(),qw.setItem(s,JSON.stringify(Be))},ft=At=>{Be.splice(At,1)};return{add:qe,state:()=>Be.slice(0)}},DF=s=>Ge(IF,s).getOrThunk(()=>{const F=`tinymce-custom-colors-${s}`,Z=qw.getItem(F);if(p(Z)){const we=qw.getItem("tinymce-custom-colors");qw.setItem(F,a(we)?we:"[]")}const ue=uX(F,10);return IF[s]=ue,ue}),SC=s=>oe(DF(s).state(),F=>({type:"choiceitem",text:F,icon:"checkmark",value:F})),kC=(s,F)=>{DF(s).add(F)},Ww=(s,F,Z)=>({hue:s,saturation:F,value:Z}),TC=s=>{let F=0,Z=0,ue=0;const we=s.red/255,Be=s.green/255,qe=s.blue/255,ft=Math.min(we,Math.min(Be,qe)),gt=Math.max(we,Math.max(Be,qe));if(ft===gt)return ue=ft,Ww(0,0,ue*100);const At=we===ft?Be-qe:qe===ft?we-Be:qe-we;return F=we===ft?3:qe===ft?1:5,F=60*(F-At/(gt-ft)),Z=(gt-ft)/gt,ue=gt,Ww(Math.round(F),Math.round(Z*100),Math.round(ue*100))},fX=s=>TC(X5(s)),BF=s=>Y5(kF(s)),cP=s=>GY(s).orThunk(()=>wC(s).map(Y5)).getOrThunk(()=>{const F=document.createElement("canvas");F.height=1,F.width=1;const Z=F.getContext("2d");Z.clearRect(0,0,F.width,F.height),Z.fillStyle="#FFFFFF",Z.fillStyle=s,Z.fillRect(0,0,1,1);const ue=Z.getImageData(0,0,1,1).data,we=ue[0],Be=ue[1],qe=ue[2],ft=ue[3];return Y5(Hw(we,Be,qe,ft))}),G5="forecolor",n4="hilitecolor",zF=5,dX=s=>{const F=[];for(let Z=0;ZF=>F.options.get(s),uP="#000000",hX=s=>{const F=s.options.register,Z=we=>m(we,n)?{value:dX(we),valid:!0}:{valid:!1,message:"Must be an array of strings."},ue=we=>h(we)&&we>0?{value:we,valid:!0}:{valid:!1,message:"Must be a positive number."};F("color_map",{processor:Z,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),F("color_map_background",{processor:Z}),F("color_map_foreground",{processor:Z}),F("color_cols",{processor:ue,default:fP(s)}),F("color_cols_foreground",{processor:ue,default:FF(s,G5)}),F("color_cols_background",{processor:ue,default:FF(s,n4)}),F("custom_colors",{processor:"boolean",default:!0}),F("color_default_foreground",{processor:"string",default:uP}),F("color_default_background",{processor:"string",default:uP})},CC=(s,F)=>F===G5&&s.options.isSet("color_map_foreground")?Ly("color_map_foreground")(s):F===n4&&s.options.isSet("color_map_background")?Ly("color_map_background")(s):Ly("color_map")(s),fP=(s,F="default")=>Math.max(zF,Math.ceil(Math.sqrt(CC(s,F).length))),FF=(s,F)=>{const Z=Ly("color_cols")(s),ue=fP(s,F);return Z===fP(s)?ue:Z},NF=(s,F="default")=>Math.round((()=>F===G5?Ly("color_cols_foreground")(s):F===n4?Ly("color_cols_background")(s):Ly("color_cols")(s))()),$F=Ly("custom_colors"),pX=Ly("color_default_foreground"),mX=Ly("color_default_background"),gX="rgba(0, 0, 0, 0)",vX=s=>wC(s).exists(F=>F.alpha!==0),VF=s=>E0(s,F=>{if(Kn(F)){const Z=Aa(F,"background-color");return _t(vX(Z),Z)}else return I.none()}).getOr(gX),UF=(s,F)=>{const Z=Pt.fromDom(s.selection.getStart()),ue=F==="hilitecolor"?VF(Z):Aa(Z,"color");return wC(ue).map(we=>"#"+Y5(we).value)},yX=(s,F,Z)=>{s.undoManager.transact(()=>{s.focus(),s.formatter.apply(F,{value:Z}),s.nodeChanged()})},Iy=(s,F)=>{s.undoManager.transact(()=>{s.focus(),s.formatter.remove(F,{value:null},void 0,!0),s.nodeChanged()})},bX=s=>{s.addCommand("mceApplyTextcolor",(F,Z)=>{yX(s,F,Z)}),s.addCommand("mceRemoveTextcolor",F=>{Iy(s,F)})},jF=s=>{const F="choiceitem",Z={type:F,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return s?[Z,{type:F,text:"Custom color",icon:"color-picker",value:"custom"}]:[Z]},K5=(s,F,Z,ue)=>{Z==="custom"?YF(s)(Be=>{Be.each(qe=>{kC(F,qe),s.execCommand("mceApplyTextcolor",F,qe),ue(qe)})},UF(s,F).getOr(uP)):Z==="remove"?(ue(""),s.execCommand("mceRemoveTextcolor",F)):(ue(Z),s.execCommand("mceApplyTextcolor",F,Z))},hf=(s,F,Z)=>s.concat(SC(F).concat(jF(Z))),QF=(s,F,Z)=>ue=>{ue(hf(s,F,Z))},dP=(s,F,Z)=>{const ue=F==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";s.setIconFill(ue,Z)},HF=(s,F)=>{s.setTooltip(F)},ZF=(s,F)=>Z=>{const ue=UF(s,F);return wt(ue,Z.toUpperCase())},hP=(s,F,Z)=>{if(at(Z))return F==="forecolor"?"Text color":"Background color";const ue=F==="forecolor"?"Text color {0}":"Background color {0}",we=hf(CC(s,F),F,!1),Be=ce(we,qe=>qe.value===Z).getOr({text:""}).text;return s.translate([ue,s.translate(Be)])},qF=(s,F,Z,ue)=>{s.ui.registry.addSplitButton(F,{tooltip:hP(s,Z,ue.get()),presets:"color",icon:F==="forecolor"?"text-color":"highlight-bg-color",select:ZF(s,Z),columns:NF(s,Z),fetch:QF(CC(s,Z),Z,$F(s)),onAction:we=>{K5(s,Z,ue.get(),v)},onItemAction:(we,Be)=>{K5(s,Z,Be,qe=>{ue.set(qe),EF(s,{name:F,color:qe})})},onSetup:we=>{dP(we,F,ue.get());const Be=qe=>{qe.name===F&&(dP(we,qe.name,qe.color),HF(we,hP(s,Z,qe.color)))};return s.on("TextColorChange",Be),t4(Gh(s)(we),()=>{s.off("TextColorChange",Be)})}})},WF=(s,F,Z,ue,we)=>{s.ui.registry.addNestedMenuItem(F,{text:ue,icon:F==="forecolor"?"text-color":"highlight-bg-color",onSetup:Be=>(HF(Be,hP(s,Z,we.get())),dP(Be,F,we.get()),Gh(s)(Be)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:ZF(s,Z),initData:{storageKey:Z},onAction:Be=>{K5(s,Z,Be.value,qe=>{we.set(qe),EF(s,{name:F,color:qe})})}}]})},YF=s=>(F,Z)=>{let ue=!1;const we=ft=>{const At=ft.getData().colorpicker;ue?(F(I.from(At)),ft.close()):s.windowManager.alert(s.translate(["Invalid hex color code: {0}",At]))},Be=(ft,gt)=>{gt.name==="hex-valid"&&(ue=gt.value)},qe={colorpicker:Z};s.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:qe,onAction:Be,onSubmit:we,onClose:v,onCancel:()=>{F(I.none())}})},xX=s=>{bX(s);const F=pX(s),Z=mX(s),ue=xi(F),we=xi(Z);qF(s,"forecolor","forecolor",ue),qF(s,"backcolor","hilitecolor",we),WF(s,"forecolor","forecolor","Text color",ue),WF(s,"backcolor","hilitecolor","Background color",we)},pP=(s,F,Z,ue,we,Be,qe,ft)=>{const gt=V5(F),$t=_X(F,Z,ue,we!=="color"?"normal":"color",Be,qe,ft);return V7(s,gt,$t,ue,{menuType:we})},_X=(s,F,Z,ue,we,Be,qe)=>It(oe(s,ft=>ft.type==="choiceitem"?G7(ft).fold(ex,gt=>I.some(oP(gt,Z===1,ue,F,Be(gt.value),we,qe,V5(s)))):I.none())),AC=(s,F)=>{const Z=M2(F);return s===1?{mode:"menu",moveOnTab:!0}:s==="auto"?{mode:"grid",selector:"."+Z.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(F==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:we=>F==="color"?aa(we.element,"[aria-checked=true]"):I.none()}},wX=(s,F)=>s===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:s==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:F==="color"?".tox-swatches__row":".tox-collection__group",cell:F==="color"?`.${C7}`:`.${K6}`}},OX=(s,F)=>{const Z=SX(s,F),ue=F.colorinput.getColorCols(s.initData.storageKey),we="color",qe={...pP(fi("menu-value"),Z,ft=>{s.onAction({value:ft})},ue,we,r1.CLOSE_ON_EXECUTE,s.select.getOr(D),F.shared.providers),markers:M2(we),movement:AC(ue,we),showMenuRole:!1};return{type:"widget",data:{value:fi("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[bC.widget(Pw.sketch(qe))]}},SX=(s,F)=>{const Z=s.initData.allowCustomColors&&F.colorinput.hasCustomColors();return s.initData.colors.fold(()=>hf(F.colorinput.getColors(s.initData.storageKey),s.initData.storageKey,Z),ue=>ue.concat(jF(Z)))},XF=fi("cell-over"),GF=fi("cell-execute"),kX=s=>(F,Z)=>s.shared.providers.translate(["{0} columns, {1} rows",Z,F]),TX=(s,F,Z)=>{const ue=qe=>Ri(qe,XF,{row:s,col:F}),we=qe=>Ri(qe,GF,{row:s,col:F}),Be=(qe,ft)=>{ft.stop(),we(qe)};return vi({dom:{tag:"div",attributes:{role:"button","aria-label":Z}},behaviours:Bo([Ca("insert-table-picker-cell",[fo(Om(),oa.focus),fo(cp(),we),fo(R0(),Be),fo(up(),Be)]),za.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),oa.config({onFocus:ue})])})},CX=(s,F,Z)=>{const ue=[];for(let we=0;we{for(let Be=0;Beye(s,F=>oe(F,na)),KF=(s,F)=>ro(`${F}x${s}`),EX={inserttable:(s,F)=>{const we=kX(F),Be=CX(we,10,10),qe=KF(0,0),ft=qs({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[qe],behaviours:Bo([da.config({})])});return{type:"widget",data:{value:fi("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[bC.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:MX(Be).concat(ft.asSpec()),behaviours:Bo([Ca("insert-table-picker",[Ll(gt=>{da.set(ft.get(gt),[qe])}),L_(XF,(gt,At,$t)=>{const{row:on,col:yn}=$t.event;AX(Be,on,yn,10,10),da.set(ft.get(gt),[KF(on+1,yn+1)])}),L_(GF,(gt,At,$t)=>{const{row:on,col:yn}=$t.event;s.onAction({numRows:on+1,numColumns:yn+1}),Sa(gt,L0())})]),Li.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:OX},JF=(s,F)=>Ge(EX,s.fancytype).map(Z=>Z(s,F)),PX=(s,F,Z,ue=!0,we=!1)=>{const Be=we?fF(Z.icons):WY(Z.icons),qe=gt=>({isEnabled:()=>!ta.isDisabled(gt),setEnabled:At=>ta.set(gt,!At),setIconFill:(At,$t)=>{aa(gt.element,`svg path[class="${At}"], rect[class="${At}"]`).each(on=>{fr(on,"fill",$t)})},setTooltip:At=>{const $t=Z.translate(At);fr(gt.element,"aria-label",$t)}}),ft=Ry({presets:"normal",iconContent:s.icon,textContent:s.text,htmlContent:I.none(),ariaLabel:s.text,caret:I.some(Be),checkMark:I.none(),shortcutContent:s.shortcut},Z,ue);return Qw({data:J3(s),getApi:qe,enabled:s.enabled,onAction:v,onSetup:s.onSetup,triggersSubmenu:!0,itemBehaviours:[]},ft,F,Z)},eN=(s,F,Z,ue=!0)=>{const we=qe=>({isEnabled:()=>!ta.isDisabled(qe),setEnabled:ft=>ta.set(qe,!ft)}),Be=Ry({presets:"normal",iconContent:s.icon,textContent:s.text,htmlContent:I.none(),ariaLabel:s.text,caret:I.none(),checkMark:I.none(),shortcutContent:s.shortcut},Z,ue);return Qw({data:J3(s),getApi:we,enabled:s.enabled,onAction:s.onAction,onSetup:s.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,F,Z)},RX=s=>({type:"separator",dom:{tag:"div",classes:[K6,A7]},components:s.text.map(ro).toArray()}),LX=(s,F,Z,ue=!0)=>{const we=qe=>({setActive:ft=>{za.set(qe,ft)},isActive:()=>za.isOn(qe),isEnabled:()=>!ta.isDisabled(qe),setEnabled:ft=>ta.set(qe,!ft)}),Be=Ry({iconContent:s.icon,textContent:s.text,htmlContent:I.none(),ariaLabel:s.text,checkMark:I.some(uF(Z.icons)),caret:I.none(),shortcutContent:s.shortcut,presets:"normal",meta:s.meta},Z,ue);return nl(Qw({data:J3(s),enabled:s.enabled,getApi:we,onAction:s.onAction,onSetup:s.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,F,Z),{toggling:{toggleClass:J6,toggleOnExecute:!1,selected:s.active},role:s.role.getOrUndefined()})},IX=vF,mP=RX,DX=eN,BX=PX,zX=LX,FX=JF,tN=rP;var $X=Object.freeze({__proto__:null,getCoupled:(s,F,Z,ue)=>Z.getOrCreate(s,F,ue),getExistingCoupled:(s,F,Z,ue)=>Z.getExisting(s,F,ue)}),nN=[rr("others",Et(Hi.value,le()))],VX=Object.freeze({__proto__:null,init:()=>{const s={},F=(Be,qe)=>{if(ke(Be.others).length===0)throw new Error("Cannot find any known coupled components");return Ge(s,qe)},Z=(Be,qe,ft)=>F(qe,ft).getOrThunk(()=>{const At=Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft)(Be),$t=Be.getSystem().build(At);return s[ft]=$t,$t}),ue=(Be,qe,ft)=>F(qe,ft).orThunk(()=>(Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft),I.none())),we=x({});return kh({readState:we,getExisting:ue,getOrCreate:Z})}});const lu=lf({fields:nN,name:"coupling",apis:$X,state:VX}),gP=s=>{let F=I.none(),Z=[];const ue=At=>gP($t=>{we(on=>{$t(At(on))})}),we=At=>{qe()?gt(At):Z.push(At)},Be=At=>{qe()||(F=I.some(At),ft(Z),Z=[])},qe=()=>F.isSome(),ft=At=>{q(At,gt)},gt=At=>{F.each($t=>{setTimeout(()=>{At($t)},0)})};return s(Be),{get:we,map:ue,isReady:qe}},UX={nu:gP,pure:s=>gP(F=>{F(s)})},jX=s=>{setTimeout(()=>{throw s},0)},r4=s=>{const F=gt=>{s().then(gt,jX)};return{map:gt=>r4(()=>s().then(gt)),bind:gt=>r4(()=>s().then(At=>gt(At).toPromise())),anonBind:gt=>r4(()=>s().then(()=>gt.toPromise())),toLazy:()=>UX.nu(F),toCached:()=>{let gt=null;return r4(()=>(gt===null&&(gt=s()),gt))},toPromise:s,get:F}},uh={nu:s=>r4(()=>new Promise(s)),pure:s=>r4(()=>Promise.resolve(s))},rN=x("sink"),oN=x(Jp({name:rN(),overrides:x({dom:{tag:"div"},behaviours:Bo([ed.config({useFixed:k})]),events:pl([Am(Bp()),Am(Oh()),Am(R0())])})})),vP=(s,F)=>{const Z=s.getHotspot(F).getOr(F),ue="hotspot",we=s.getAnchorOverrides();return s.layouts.fold(()=>({type:ue,hotspot:Z,overrides:we}),Be=>({type:ue,hotspot:Z,overrides:we,layouts:Be}))},QX=(s,F,Z)=>{const ue=s.fetch;return ue(Z).map(F)},HX=(s,F,Z,ue,we,Be,qe)=>{const ft=QX(s,F,ue),gt=iN(ue,s);return ft.map(At=>At.bind($t=>{const on=$t.menus[$t.primary];return I.from(on).each(yn=>{s.listRole.each(wn=>{yn.role=wn})}),I.from(Rw.sketch({...Be.menu(),uid:j0(""),data:$t,highlightOnOpen:qe,onOpenMenu:(yn,wn)=>{const Mn=gt().getOrDie();ed.position(Mn,wn,{anchor:Z}),ps.decloak(we)},onOpenSubmenu:(yn,wn,Mn)=>{const Xn=gt().getOrDie();ed.position(Xn,Mn,{anchor:{type:"submenu",item:wn}}),ps.decloak(we)},onRepositionMenu:(yn,wn,Mn)=>{const Xn=gt().getOrDie();ed.position(Xn,wn,{anchor:Z}),q(Mn,Br=>{ed.position(Xn,Br.triggeredMenu,{anchor:{type:"submenu",item:Br.triggeringItem}})})},onEscape:()=>(oa.focus(ue),ps.close(we),I.some(!0))}))}))},MC=(s,F,Z,ue,we,Be,qe)=>{const ft=vP(s,Z);return HX(s,F,ft,Z,ue,we,qe).map(At=>(At.fold(()=>{ps.isOpen(ue)&&ps.close(ue)},$t=>{ps.cloak(ue),ps.open(ue,$t),Be(ue)}),ue))},ZX=(s,F,Z,ue,we,Be,qe)=>(ps.close(ue),uh.pure(ue)),yP=(s,F,Z,ue,we,Be)=>{const qe=lu.getCoupled(Z,"sandbox");return(ps.isOpen(qe)?ZX:MC)(s,F,Z,qe,ue,we,Be)},bP=(s,F,Z)=>{const ue=as.getCurrent(F).getOr(F),we=cc(s.element);Z?ko(ue.element,"min-width",we+"px"):la(ue.element,we)},iN=(s,F)=>s.getSystem().getByUid(F.uid+"-"+rN()).map(Z=>()=>Hi.value(Z)).getOrThunk(()=>F.lazySink.fold(()=>()=>Hi.error(new Error("No internal sink is specified, nor could an external sink be found")),Z=>()=>Z(s))),aN=s=>{ps.getState(s).each(F=>{Rw.repositionMenus(F)})},xP=(s,F,Z)=>{const ue=_u(),we=(ft,gt)=>{const At=vP(s,F);ue.link(F.element),s.matchWidth&&bP(At.hotspot,gt,s.useMinWidth),s.onOpen(At,ft,gt),Z!==void 0&&Z.onOpen!==void 0&&Z.onOpen(ft,gt)},Be=(ft,gt)=>{ue.unlink(F.element),qe().getOr(gt).element.dom.dispatchEvent(new window.FocusEvent("focusout")),Z!==void 0&&Z.onClose!==void 0&&Z.onClose(ft,gt)},qe=iN(F,s);return{dom:{tag:"div",classes:s.sandboxClasses,attributes:{id:ue.id}},behaviours:Vm.augment(s.sandboxBehaviours,[hi.config({store:{mode:"memory",initialValue:F}}),ps.config({onOpen:we,onClose:Be,isPartOf:(ft,gt,At)=>Vc(gt,At)||Vc(F,At),getAttachPoint:()=>qe().getOrDie()}),as.config({find:ft=>ps.getState(ft).bind(gt=>as.getCurrent(gt))}),Wu.config({channels:{...dv({isExtraPart:D}),..._3({doReposition:aN})}})])}},_P=s=>{const F=lu.getCoupled(s,"sandbox");aN(F)},EC=()=>[mr("sandboxClasses",[]),Vm.field("sandboxBehaviours",[as,Wu,ps,hi])],qX=x([Sn("dom"),Sn("fetch"),Ra("onOpen"),bd("onExecute"),mr("getHotspot",I.some),mr("getAnchorOverrides",x({})),l0(),Pf("dropdownBehaviours",[za,lu,Li,oa]),Sn("toggleClass"),mr("eventOrder",{}),Hr("lazySink"),mr("matchWidth",!1),mr("useMinWidth",!1),Hr("role"),Hr("listRole")].concat(EC())),WX=x([Um({schema:[U0(),mr("fakeFocus",!1)],name:"menu",defaults:s=>({onExecute:s.onExecute})}),oN()]),sN=(s,F,Z,ue)=>{const we=$t=>Ge(s.dom,"attributes").bind(on=>Ge(on,$t)),Be=$t=>{ps.getState($t).each(on=>{Rw.highlightPrimary(on)})},qe=($t,on,yn)=>yP(s,R,$t,ue,on,yn),ft=$t=>{qe($t,Be,Xh.HighlightMenuAndItem).get(v)},gt={expand:$t=>{za.isOn($t)||qe($t,v,Xh.HighlightNone).get(v)},open:$t=>{za.isOn($t)||qe($t,v,Xh.HighlightMenuAndItem).get(v)},refetch:$t=>lu.getExistingCoupled($t,"sandbox").fold(()=>qe($t,v,Xh.HighlightMenuAndItem).map(v),yn=>MC(s,R,$t,yn,ue,v,Xh.HighlightMenuAndItem).map(v)),isOpen:za.isOn,close:$t=>{za.isOn($t)&&qe($t,v,Xh.HighlightMenuAndItem).get(v)},repositionMenus:$t=>{za.isOn($t)&&_P($t)}},At=($t,on)=>(Fp($t),I.some(!0));return{uid:s.uid,dom:s.dom,components:F,behaviours:Rf(s.dropdownBehaviours,[za.config({toggleClass:s.toggleClass,aria:{mode:"expanded"}}),lu.config({others:{sandbox:$t=>xP(s,$t,{onOpen:()=>za.on($t),onClose:()=>za.off($t)})}}),Li.config({mode:"special",onSpace:At,onEnter:At,onDown:($t,on)=>{if(p0.isOpen($t)){const yn=lu.getCoupled($t,"sandbox");Be(yn)}else p0.open($t);return I.some(!0)},onEscape:($t,on)=>p0.isOpen($t)?(p0.close($t),I.some(!0)):I.none()}),oa.config({})]),events:T6(I.some(ft)),eventOrder:{...s.eventOrder,[cp()]:["disabling","toggling","alloy.base.behaviour"]},apis:gt,domModification:{attributes:{"aria-haspopup":s.listRole.getOr("true"),...s.role.fold(()=>({}),$t=>({role:$t})),...s.dom.tag==="button"?{type:we("type").getOr("button")}:{}}}}},p0=ch({name:"Dropdown",configFields:qX(),partFields:WX(),factory:sN,apis:{open:(s,F)=>s.open(F),refetch:(s,F)=>s.refetch(F),expand:(s,F)=>s.expand(F),close:(s,F)=>s.close(F),isOpen:(s,F)=>s.isOpen(F),repositionMenus:(s,F)=>s.repositionMenus(F)}}),YX=s=>{switch(s.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:s}}},XX=s=>{const F=hi.getValue(s),Z=E2(s).map(Uz);p0.refetch(F).get(()=>{const ue=lu.getCoupled(F,"sandbox");Z.each(we=>E2(ue).each(Be=>_Y(Be,we)))})},GX=(s,F)=>{KX(s).each(Z=>{A1(s,Z.element,F.event.eventType,F.event.interactionEvent)})},KX=s=>ps.getState(s).bind(ri.getHighlighted).bind(ri.getHighlighted),JX=s=>$l(s.element,nC)?I.some(s.element):aa(s.element,"."+nC),J5=(s,F,Z)=>{F7(s).each(ue=>{wY(ue,Z),JX(F).each(Be=>{co(Be,"id").each(qe=>fr(ue.element,"aria-controls",qe))})}),fr(Z.element,"aria-selected","true")},eG=(s,F,Z)=>{fr(Z.element,"aria-selected","false")},PC=s=>{F7(s).each(F=>oa.focus(F))},tG=s=>lu.getExistingCoupled(s,"sandbox").bind(E2).map(Uz).map(Z=>Z.fetchPattern).getOr("");var RC;(function(s){s[s.ContentFocus=0]="ContentFocus",s[s.UiFocus=1]="UiFocus"})(RC||(RC={}));const nG=(s,F,Z,ue,we)=>{const Be=Z.shared.providers,qe=ft=>we?{...ft,shortcut:I.none(),icon:ft.text.isSome()?I.none():ft.icon}:ft;switch(s.type){case"menuitem":return NY(s).fold(ex,ft=>I.some(DX(qe(ft),F,Be,ue)));case"nestedmenuitem":return VY(s).fold(ex,ft=>I.some(BX(qe(ft),F,Be,ue,we)));case"togglemenuitem":return jY(s).fold(ex,ft=>I.some(zX(qe(ft),F,Be,ue)));case"separator":return Jz(s).fold(ex,ft=>I.some(mP(ft)));case"fancymenuitem":return iF(s).fold(ex,ft=>FX(ft,Z));default:return console.error("Unknown item in general menu",s),I.none()}},rG=(s,F,Z,ue,we,Be,qe)=>{const ft=ue===1,gt=!ft||V5(s);return It(oe(s,At=>{switch(At.type){case"separator":return PY(At).fold(ex,$t=>I.some(mP($t)));case"cardmenuitem":return X7(At).fold(ex,$t=>I.some(tN({...$t,onAction:on=>{$t.onAction(on),Z($t.value,$t.meta)}},we,Be,{itemBehaviours:mF($t.meta,Be,I.none()),cardText:{matchText:F,highlightOn:qe}})));case"autocompleteitem":default:return RY(At).fold(ex,$t=>I.some(IX($t,F,ft,"normal",Z,we,Be,gt)))}}))},oG=(s,F,Z,ue,we,Be)=>{const qe=V5(F),ft=It(oe(F,$t=>{const on=wn=>we?!ht(wn,"text"):qe,yn=wn=>nG(wn,Z,ue,on(wn),we);return $t.type==="nestedmenuitem"&&$t.getSubmenuItems().length<=0?yn({...$t,enabled:!1}):yn($t)})),gt=YX(Be);return(we?kY:V7)(s,qe,ft,1,gt)},o4=s=>Rw.singleData(s.value,s),i4=(s,F,Z,ue)=>{const we=AC(F,ue),Be=M2(ue);return{data:o4({...s,movement:we,menuBehaviours:K3.unnamedEvents(F!=="auto"?[]:[Ll((qe,ft)=>{pC(qe,4,Be.item).each(({numColumns:gt,numRows:At})=>{Li.setGridSize(qe,At,gt)})})])}),menu:{markers:M2(ue),fakeFocus:Z===RC.ContentFocus}}},lN=s=>a2.create(Pt.fromDom(s.startContainer),s.startOffset,Pt.fromDom(s.endContainer),s.endOffset),aG={register:(s,F)=>{const Z=fi("autocompleter"),ue=xi(!1),we=xi(!1),Be=os(),qe=vi(hc.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:Z}},components:[],fireDismissalEventInstead:{},inlineBehaviours:Bo([Ca("dismissAutocompleter",[fo(I0(),()=>on()),fo(Cm(),(or,Mr)=>{co(Mr.event.target,"id").each(kr=>fr(Pt.fromDom(s.getBody()),"aria-activedescendant",kr))})])]),lazySink:F.getSink})),ft=()=>hc.isOpen(qe),gt=we.get,At=()=>{if(ft()){hc.hide(qe),s.dom.remove(Z,!1);const or=Pt.fromDom(s.getBody());co(or,"aria-owns").filter(Mr=>Mr===Z).each(()=>{po(or,"aria-owns"),po(or,"aria-activedescendant")})}},$t=()=>hc.getContent(qe).bind(or=>De(or.components(),0)),on=()=>s.execCommand("mceAutocompleterClose"),yn=or=>{const Mr=Oe(or,kr=>I.from(kr.columns)).getOr(1);return ye(or,kr=>{const yo=kr.items;return rG(yo,kr.matchText,(Xr,No)=>{const Jo={hide:()=>on(),reload:ho=>{At(),s.execCommand("mceAutocompleterReload",!1,{fetchOptions:ho})}};s.execCommand("mceAutocompleterRefreshActiveRange"),Be.get().each(ho=>{ue.set(!0),kr.onAction(Jo,ho,Xr,No),ue.set(!1)})},Mr,r1.BUBBLE_TO_SANDBOX,F,kr.highlightOn)})},wn=(or,Mr)=>{const kr=Oe(or,yo=>I.from(yo.columns)).getOr(1);hc.showMenuAt(qe,{anchor:{type:"selection",getSelection:()=>Be.get().map(lN),root:Pt.fromDom(s.getBody())}},i4(V7("autocompleter-value",!0,Mr,kr,{menuType:"normal"}),kr,RC.ContentFocus,"normal")),$t().each(ri.highlightFirst)},Mn=or=>{const Mr=yn(or);Mr.length>0?(wn(or,Mr),fr(Pt.fromDom(s.getBody()),"aria-owns",Z),s.inline||Xn()):At()},Xn=()=>{s.dom.get(Z)&&s.dom.remove(Z,!1);const or=s.getDoc().documentElement,Mr=s.selection.getNode(),kr=wS(qe.element);ra(kr,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${Mr.offsetTop}px`,left:`${Mr.offsetLeft}px`}),s.dom.add(or,kr.dom),aa(kr,'[role="menu"]').each(yo=>{ga(yo,"position"),ga(yo,"max-height")})};s.on("AutocompleterStart",({lookupData:or})=>{we.set(!0),ue.set(!1),Mn(or)}),s.on("AutocompleterUpdate",({lookupData:or})=>Mn(or)),s.on("AutocompleterUpdateActiveRange",({range:or})=>Be.set(or)),s.on("AutocompleterEnd",()=>{At(),we.set(!1),ue.set(!1),Be.clear()});const Br={cancelIfNecessary:on,isMenuOpen:ft,isActive:gt,isProcessingAction:ue.get,getMenu:$t};Rz.setup(Br,s)}},ek=(s,F,Z)=>Fs(s,F,Z).isSome(),cN=(s,F)=>{let Z=null;return{cancel:()=>{Z!==null&&(clearTimeout(Z),Z=null)},schedule:(...Be)=>{Z=setTimeout(()=>{s.apply(null,Be),Z=null},F)}}},uN=5,sG=400,fN=s=>{const F=s.raw;return F.touches===void 0||F.touches.length!==1?I.none():I.some(F.touches[0])},lG=(s,F)=>{const Z=Math.abs(s.clientX-F.x),ue=Math.abs(s.clientY-F.y);return Z>uN||ue>uN},cG=s=>{const F=os(),Z=xi(!1),ue=cN(At=>{s.triggerEvent(Xf(),At),Z.set(!0)},sG),we=At=>(fN(At).each($t=>{ue.cancel();const on={x:$t.clientX,y:$t.clientY,target:At.target};ue.schedule(At),Z.set(!1),F.set(on)}),I.none()),Be=At=>(ue.cancel(),fN(At).each($t=>{F.on(on=>{lG($t,on)&&F.clear()})}),I.none()),qe=At=>{ue.cancel();const $t=on=>so(on.target,At.target);return F.get().filter($t).map(on=>Z.get()?(At.prevent(),!1):s.triggerEvent(up(),At))},ft=pd([{key:_m(),value:we},{key:Yg(),value:Be},{key:wm(),value:qe}]);return{fireIfReady:(At,$t)=>Ge(ft,$t).bind(on=>on(At))}},uG=s=>s.raw.which===Ms[0]&&!X(["input","textarea"],ar(s.target))&&!ek(s.target,'[contenteditable="true"]'),fG=(s,F)=>{const Z={stopBackspace:!0,...F},ue=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],we=cG(Z),Be=oe(ue.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),wn=>wd(s,wn,Mn=>{we.fireIfReady(Mn,wn).each(Br=>{Br&&Mn.kill()}),Z.triggerEvent(wn,Mn)&&Mn.kill()})),qe=os(),ft=wd(s,"paste",wn=>{we.fireIfReady(wn,"paste").each(Xn=>{Xn&&wn.kill()}),Z.triggerEvent("paste",wn)&&wn.kill(),qe.set(setTimeout(()=>{Z.triggerEvent(Gg(),wn)},0))}),gt=wd(s,"keydown",wn=>{Z.triggerEvent("keydown",wn)?wn.kill():Z.stopBackspace&&uG(wn)&&wn.prevent()}),At=wd(s,"focusin",wn=>{Z.triggerEvent("focusin",wn)&&wn.kill()}),$t=os(),on=wd(s,"focusout",wn=>{Z.triggerEvent("focusout",wn)&&wn.kill(),$t.set(setTimeout(()=>{Z.triggerEvent(Xg(),wn)},0))});return{unbind:()=>{q(Be,wn=>{wn.unbind()}),gt.unbind(),At.unbind(),on.unbind(),ft.unbind(),qe.on(clearTimeout),$t.on(clearTimeout)}}},dN=(s,F)=>{const Z=Ge(s,"target").getOr(F);return xi(Z)},hN=(s,F)=>{const Z=xi(!1),ue=xi(!1);return{stop:()=>{Z.set(!0)},cut:()=>{ue.set(!0)},isStopped:Z.get,isCut:ue.get,event:s,setSource:F.set,getSource:F.get}},a4=s=>{const F=xi(!1);return{stop:()=>{F.set(!0)},cut:v,isStopped:F.get,isCut:D,event:s,setSource:C("Cannot set source of a broadcasted event"),getSource:C("Cannot get source of a broadcasted event")}},xv=Ds.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),pN=(s,F,Z,ue,we,Be)=>{const qe=s(F,ue),ft=hN(Z,we);return qe.fold(()=>(Be.logEventNoHandlers(F,ue),xv.complete()),gt=>{const At=gt.descHandler;return qh(At)(ft),ft.isStopped()?(Be.logEventStopped(F,gt.element,At.purpose),xv.stopped()):ft.isCut()?(Be.logEventCut(F,gt.element,At.purpose),xv.complete()):br(gt.element).fold(()=>(Be.logNoParent(F,gt.element,At.purpose),xv.complete()),on=>(Be.logEventResponse(F,gt.element,At.purpose),xv.resume(on)))})},wP=(s,F,Z,ue,we,Be)=>pN(s,F,Z,ue,we,Be).fold(k,qe=>wP(s,F,Z,qe,we,Be),D),mN=(s,F,Z,ue,we)=>{const Be=dN(Z,ue);return pN(s,F,Z,ue,Be,we)},LC=(s,F,Z)=>{const ue=a4(F);return q(s,we=>{const Be=we.descHandler;qh(Be)(ue)}),ue.isStopped()},dG=(s,F,Z,ue)=>s4(s,F,Z,Z.target,ue),s4=(s,F,Z,ue,we)=>{const Be=dN(Z,ue);return wP(s,F,Z,ue,Be,we)},tk=(s,F)=>({element:s,descHandler:F}),hG=(s,F)=>({id:s,descHandler:F}),pG=()=>{const s={},F=(qe,ft,gt)=>{We(gt,(At,$t)=>{const on=s[$t]!==void 0?s[$t]:{};on[ft]=Lm(At,qe),s[$t]=on})},Z=(qe,ft)=>sy(ft).bind(gt=>Ge(qe,gt)).map(gt=>tk(ft,gt));return{registerId:F,unregisterId:qe=>{We(s,(ft,gt)=>{ht(ft,qe)&&delete ft[qe]})},filterByType:qe=>Ge(s,qe).map(ft=>je(ft,(gt,At)=>hG(At,gt))).getOr([]),find:(qe,ft,gt)=>Ge(s,ft).bind(At=>E0(gt,$t=>Z(At,$t),qe))}},mG=()=>{const s=pG(),F={},Z=At=>{const $t=At.element;return sy($t).getOrThunk(()=>TS("uid-",At.element))},ue=(At,$t)=>{const on=F[$t];if(on===At)Be(At);else throw new Error('The tagId "'+$t+'" is already used by: '+rh(on.element)+` Cannot use it for: `+rh(At.element)+` -The conflicting element is`+(Er(on.element)?" ":" not ")+"already in the DOM")},we=At=>{const $t=Z(At);pt(F,$t)&&ue(At,$t);const on=[At];s.registerId(on,$t,At.events),F[$t]=At},Be=At=>{sy(At.element).each($t=>{delete F[$t],s.unregisterId($t)})};return{find:(At,$t,on)=>s.find(At,$t,on),filter:At=>s.filterByType(At),register:we,unregister:Be,getById:At=>Ge(F,At)}},bv=Yh({name:"Container",factory:s=>{const{attributes:F,...Z}=s.dom;return{uid:s.uid,dom:{tag:"div",attributes:{role:"presentation",...F},...Z},components:s.components,behaviours:vw(s.containerBehaviours),events:s.events,domModification:s.domModification,eventOrder:s.eventOrder}},configFields:[mr("components",[]),Ef("containerBehaviours",[]),mr("events",{}),mr("domModification",{}),mr("eventOrder",{})]}),wP=s=>{const F=or=>br(s.element).fold(k,Mr=>so(or,Mr)),Z=mG(),ue=(or,Mr)=>Z.find(F,or,Mr),we=fG(s.element,{triggerEvent:(or,Mr)=>oh(or,Mr.target,kr=>dG(ue,or,Mr,kr))}),Be={debugInfo:x("real"),triggerEvent:(or,Mr,kr)=>{oh(or,Mr,yo=>s4(ue,or,kr,Mr,yo))},triggerFocus:(or,Mr)=>{sy(or).fold(()=>{bd(or)},kr=>{oh(km(),or,yo=>(mN(ue,km(),{originator:Mr,kill:v,prevent:v,target:or},or,yo),!1))})},triggerEscape:(or,Mr)=>{Be.triggerEvent("keydown",or.element,Mr.event)},getByUid:or=>Xn(or),getByDom:or=>Br(or),build:vi,buildOrPatch:Ti,addToGui:or=>{gt(or)},removeFromGui:or=>{At(or)},addToWorld:or=>{qe(or)},removeFromWorld:or=>{ft(or)},broadcast:or=>{yn(or)},broadcastOn:(or,Mr)=>{wn(or,Mr)},broadcastEvent:(or,Mr)=>{Mn(or,Mr)},isConnected:k},qe=or=>{or.connect(Be),_r(or.element)||(Z.register(or),q(or.components(),qe),Be.triggerEvent(zp(),or.element,{target:or.element}))},ft=or=>{_r(or.element)||(q(or.components(),ft),Z.unregister(or)),or.disconnect()},gt=or=>{X0(s,or)},At=or=>{cv(or)},$t=()=>{we.unbind(),zl(s.element)},on=or=>{const Mr=Z.filter(lp());q(Mr,kr=>{const yo=kr.descHandler;qh(yo)(or)})},yn=or=>{on({universal:!0,data:or})},wn=(or,Mr)=>{on({universal:!1,channels:or,data:Mr})},Mn=(or,Mr)=>{const kr=Z.filter(or);return RC(kr,Mr)},Xn=or=>Z.getById(or).fold(()=>Hi.error(new Error('Could not find component with uid: "'+or+'" in system.')),Hi.value),Br=or=>{const Mr=sy(or).getOr("not found");return Xn(Mr)};return qe(s),{root:s,element:s.element,destroy:$t,add:gt,remove:At,getByUid:Xn,getByDom:Br,addToWorld:qe,removeFromWorld:ft,broadcast:yn,broadcastOn:wn,broadcastEvent:Mn}},LC=(s,F)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:oe(s.items,F.interpreter)}),gG=x([mr("prefix","form-field"),Ef("fieldBehaviours",[as,hi])]),OP=x([Jp({schema:[Sn("dom")],name:"label"}),Jp({factory:{sketch:s=>({uid:s.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:s.text}})},schema:[Sn("text")],name:"aria-descriptor"}),Sd({factory:{sketch:s=>{const F=Hs(s,["factory"]);return s.factory.sketch(F)}},schema:[Sn("factory")],name:"field"})]),vG=(s,F,Z,ue)=>{const we=Pf(s.fieldBehaviours,[as.config({find:ft=>Fo(ft,s,"field")}),hi.config({store:{mode:"manual",getValue:ft=>as.getCurrent(ft).bind(hi.getValue),setValue:(ft,gt)=>{as.getCurrent(ft).each(At=>{hi.setValue(At,gt)})}}})]),Be=hl([Ll((ft,gt)=>{const At=s6(ft,s,["label","field","aria-descriptor"]);At.field().each($t=>{const on=fi(s.prefix);At.label().each(yn=>{fr(yn.element,"for",on),fr($t.element,"id",on)}),At["aria-descriptor"]().each(yn=>{const wn=fi(s.prefix);fr(yn.element,"id",wn),fr($t.element,"aria-describedby",wn)})})})]),qe={getField:ft=>Fo(ft,s,"field"),getLabel:ft=>Fo(ft,s,"label")};return{uid:s.uid,dom:s.dom,components:F,behaviours:we,events:Be,apis:qe}},Js=ch({name:"FormField",configFields:gG(),partFields:OP(),factory:vG,apis:{getField:(s,F)=>s.getField(F),getLabel:(s,F)=>s.getLabel(F)}});var yG=tinymce.util.Tools.resolve("tinymce.html.Entities");const l4=(s,F,Z,ue)=>{const we=xG(s,F,Z,ue);return Js.sketch(we)},bG=(s,F)=>l4(s,F,[],[]),xG=(s,F,Z,ue)=>({dom:SP(Z),components:s.toArray().concat([F]),fieldBehaviours:Do(ue)}),_G=()=>SP([]),SP=s=>({tag:"div",classes:["tox-form__group"].concat(s)}),L2=(s,F)=>Js.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[ro(F.translate(s))]}),tm=fi("form-component-change"),tk=fi("form-close"),I2=fi("form-cancel"),Dy=fi("form-action"),c4=fi("form-submit"),IC=fi("form-block"),kP=fi("form-unblock"),gN=fi("form-tabchange"),vN=fi("form-resize"),wG=(s,F,Z)=>{const ue=s.label.map(wn=>L2(wn,F)),we=F.icons(),Be=wn=>{var Mn;return(Mn=we[wn])!==null&&Mn!==void 0?Mn:wn},qe=wn=>(Mn,Xn)=>{Fs(Xn.event.target,"[data-collection-item-value]").each(Br=>{wn(Mn,Xn,Br,ao(Br,"data-collection-item-value"))})},ft=(wn,Mn)=>{const Xn=oe(Mn,Mr=>{const kr=Cg.translate(Mr.text),yo=s.columns===1?`
    ${kr}
    `:"",Xr=`
    ${Be(Mr.icon)}
    `,No={_:" "," - ":" ","-":" "},Jo=kr.replace(/\_| \- |\-/g,Ci=>No[Ci]),ho=F.isDisabled()?" tox-collection__item--state-disabled":"";return`
    ${Xr}${yo}
    `}),Br=s.columns!=="auto"&&s.columns>1?K(Xn,s.columns):[Xn],or=oe(Br,Mr=>`
    ${Mr.join("")}
    `);B1(wn.element,or.join(""))},gt=qe((wn,Mn,Xn,Br)=>{Mn.stop(),F.isDisabled()||Ri(wn,Dy,{name:s.name,value:Br})}),At=[fo(Om(),qe((wn,Mn,Xn)=>{bd(Xn)})),fo(R0(),gt),fo(up(),gt),fo(Sm(),qe((wn,Mn,Xn)=>{aa(wn.element,"."+Fw).each(Br=>{fc(Br,Fw)}),wl(Xn,Fw)})),fo(ap(),qe(wn=>{aa(wn.element,"."+Fw).each(Mn=>{fc(Mn,Fw),a0(Mn)})})),$p(qe((wn,Mn,Xn,Br)=>{Ri(wn,Dy,{name:s.name,value:Br})}))],$t=(wn,Mn)=>oe($d(wn.element,".tox-collection__item"),Mn),on=Js.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(s.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:R},behaviours:Do([ea.config({disabled:F.isDisabled,onDisabled:wn=>{$t(wn,Mn=>{wl(Mn,"tox-collection__item--state-disabled"),fr(Mn,"aria-disabled",!0)})},onEnabled:wn=>{$t(wn,Mn=>{fc(Mn,"tox-collection__item--state-disabled"),po(Mn,"aria-disabled")})}}),df(),da.config({}),kd.config({...F.tooltips.getConfig({tooltipText:"",onShow:wn=>{aa(wn.element,"."+Fw+"[data-mce-tooltip]").each(Mn=>{co(Mn,"data-mce-tooltip").each(Xn=>{kd.setComponents(wn,F.tooltips.getComponents({tooltipText:Xn}))})})}}),mode:"children-keyboard-focus",anchor:wn=>({type:"node",node:aa(wn.element,"."+Fw).orThunk(()=>ka(".tox-collection__item")),root:wn.element,layouts:{onLtr:x([Pc,Jc,Ec,Hc,Qc,_s]),onRtl:x([Pc,Jc,Ec,Hc,Qc,_s])},bubble:pp(0,-2,{})})}),hi.config({store:{mode:"memory",initialValue:Z.getOr([])},onSetValue:(wn,Mn)=>{ft(wn,Mn),s.columns==="auto"&&hC(wn,5,"tox-collection__item").each(({numRows:Xn,numColumns:Br})=>{Li.setGridSize(wn,Xn,Br)}),Sa(wn,vN)}}),Wl.config({}),Li.config(wX(s.columns,"normal")),Ta("collection-events",At)]),eventOrder:{[cp()]:["disabling","alloy.base.behaviour","collection-events"],[Sm()]:["collection-events","tooltipping"]}});return l4(ue,on,["tox-form__group--collection"],[])},OG=["input","textarea"],TP=s=>{const F=ar(s);return X(OG,F)},Yw=(s,F)=>{const Z=F.getRoot(s).getOr(s.element);fc(Z,F.invalidClass),F.notify.each(ue=>{TP(s.element)&&fr(s.element,"aria-invalid",!1),ue.getContainer(s).each(we=>{B1(we,ue.validHtml)}),ue.onValid(s)})},yN=(s,F,Z,ue)=>{const we=F.getRoot(s).getOr(s.element);wl(we,F.invalidClass),F.notify.each(Be=>{TP(s.element)&&fr(s.element,"aria-invalid",!0),Be.getContainer(s).each(qe=>{B1(qe,ue)}),Be.onInvalid(s,ue)})},bN=(s,F,Z)=>F.validator.fold(()=>uh.pure(Hi.value(!0)),ue=>ue.validate(s)),CP=(s,F,Z)=>(F.notify.each(ue=>{ue.onValidate(s)}),bN(s,F).map(ue=>s.getSystem().isConnected()?ue.fold(we=>(yN(s,F,Z,we),Hi.error(we)),we=>(Yw(s,F),Hi.value(we))):Hi.error("No longer in system")));var m0=Object.freeze({__proto__:null,markValid:Yw,markInvalid:yN,query:bN,run:CP,isInvalid:(s,F)=>{const Z=F.getRoot(s).getOr(s.element);return $l(Z,F.invalidClass)}}),_N=Object.freeze({__proto__:null,events:(s,F)=>s.validator.map(Z=>hl([fo(Z.onEvent,ue=>{CP(ue,s,F).get(R)})].concat(Z.validateOnLoad?[Ll(ue=>{CP(ue,s,F).get(v)})]:[]))).getOr({})}),SG=[Sn("invalidClass"),mr("getRoot",I.none),Pi("notify",[mr("aria","alert"),mr("getContainer",I.none),mr("validHtml",""),Ra("onValid"),Ra("onInvalid"),Ra("onValidate")]),Pi("validator",[Sn("validate"),mr("onEvent","input"),mr("validateOnLoad",!0)])];const By=lf({fields:SG,name:"invalidating",active:_N,apis:m0,extra:{validation:s=>F=>{const Z=hi.getValue(F);return uh.pure(s(Z))}}});var wN=Object.freeze({__proto__:null,events:()=>hl([FO(ub(),k)]),exhibit:()=>Tf({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})});const u4=lf({fields:[],name:"unselecting",active:wN}),kG=(s,F)=>p0.sketch({dom:s.dom,components:s.components,toggleClass:"mce-active",dropdownBehaviours:Do([s1.button(F.providers.isDisabled),df(),u4.config({}),Wl.config({})]),layouts:s.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:F.getSink,fetch:Z=>uh.nu(ue=>s.fetch(ue)).map(ue=>I.from(o4(nl(hP(fi("menu-value"),ue,we=>{s.onItemAction(Z,we)},s.columns,s.presets,r1.CLOSE_ON_EXECUTE,D,F.providers),{movement:CC(s.columns,s.presets)})))),parts:{menu:F5(!1,1,s.presets)}}),ON=fi("color-input-change"),MP=fi("color-swatch-change"),SN=fi("color-picker-cancel"),kN=(s,F,Z,ue)=>{const we=Js.parts.field({factory:Nw,inputClasses:["tox-textfield"],data:ue,onSetValue:At=>By.run(At).get(v),inputBehaviours:Do([ea.config({disabled:F.providers.isDisabled}),df(),Wl.config({}),By.config({invalidClass:"tox-textbox-field-invalid",getRoot:At=>Cr(At.element),notify:{onValid:At=>{const $t=hi.getValue(At);Ri(At,ON,{color:$t})}},validator:{validateOnLoad:!1,validate:At=>{const $t=hi.getValue(At);if($t.length===0)return uh.pure(Hi.value(!0));{const on=Pt.fromTag("span");ko(on,"background-color",$t);const yn=Na(on,"background-color").fold(()=>Hi.error("blah"),wn=>Hi.value($t));return uh.pure(yn)}}}})]),selectOnFocus:!1}),Be=s.label.map(At=>L2(At,F.providers)),qe=(At,$t)=>{Ri(At,MP,{value:$t})},ft=(At,$t)=>{gt.getOpt(At).each(on=>{$t==="custom"?Z.colorPicker(yn=>{yn.fold(()=>Sa(on,SN),wn=>{qe(on,wn),SC(s.storageKey,wn)})},"#ffffff"):$t==="remove"?qe(on,""):qe(on,$t)})},gt=qs(kG({dom:{tag:"span",attributes:{"aria-label":F.providers.translate("Color swatch")}},layouts:{onRtl:()=>[Qc,Ec,Pc],onLtr:()=>[Ec,Qc,Pc]},components:[],fetch:QF(Z.getColors(s.storageKey),s.storageKey,Z.hasCustomColors()),columns:Z.getColorCols(s.storageKey),presets:"color",onItemAction:ft},F));return Js.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Be.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[we,gt.asSpec()]}]),fieldBehaviours:Do([Ta("form-field-events",[fo(ON,(At,$t)=>{gt.getOpt(At).each(on=>{ko(on.element,"background-color",$t.event.color)}),Ri(At,tm,{name:s.name})}),fo(MP,(At,$t)=>{Js.getField(At).each(on=>{hi.setValue(on,$t.event.value),as.getCurrent(At).each(oa.focus)})}),fo(SN,(At,$t)=>{Js.getField(At).each(on=>{as.getCurrent(At).each(oa.focus)})})])])})},TN=Jp({schema:[Sn("dom")],name:"label"}),nx=s=>Jp({name:""+s+"-edge",overrides:F=>F.model.manager.edgeActions[s].fold(()=>({}),ue=>({events:hl([e0(_m(),(we,Be,qe)=>ue(we,qe),[F]),e0(Oh(),(we,Be,qe)=>ue(we,qe),[F]),e0(Ex(),(we,Be,qe)=>{qe.mouseIsDown.get()&&ue(we,qe)},[F])])}))}),TG=nx("top-left"),CG=nx("top"),AG=nx("top-right"),MG=nx("right"),EG=nx("bottom-right"),PG=nx("bottom"),EP=nx("bottom-left"),RG=nx("left"),LG=Sd({name:"thumb",defaults:x({dom:{styles:{position:"absolute"}}}),overrides:s=>({events:hl([Fd(_m(),s,"spectrum"),Fd(Yg(),s,"spectrum"),Fd(wm(),s,"spectrum"),Fd(Oh(),s,"spectrum"),Fd(Ex(),s,"spectrum"),Fd(Hv(),s,"spectrum")])})}),nk=s=>t1(s.event),IG=Sd({schema:[On("mouseIsDown",()=>xi(!1))],name:"spectrum",overrides:s=>{const Z=s.model.manager,ue=(we,Be)=>Z.getValueFromEvent(Be).map(qe=>Z.setValueFrom(we,s,qe));return{behaviours:Do([Li.config({mode:"special",onLeft:(we,Be)=>Z.onLeft(we,s,nk(Be)),onRight:(we,Be)=>Z.onRight(we,s,nk(Be)),onUp:(we,Be)=>Z.onUp(we,s,nk(Be)),onDown:(we,Be)=>Z.onDown(we,s,nk(Be))}),Wl.config({}),oa.config({})]),events:hl([fo(_m(),ue),fo(Yg(),ue),fo(Oh(),ue),fo(Ex(),(we,Be)=>{s.mouseIsDown.get()&&ue(we,Be)})])}}});var DG=[TN,RG,MG,CG,PG,TG,AG,EP,EG,LG,IG];const rk=x("slider.change.value"),BG=s=>s.type.indexOf("touch")!==-1,PP=s=>{const F=s.event.raw;if(BG(F)){const Z=F;return Z.touches!==void 0&&Z.touches.length===1?I.some(Z.touches[0]).map(ue=>Ws(ue.clientX,ue.clientY)):I.none()}else{const Z=F;return Z.clientX!==void 0?I.some(Z).map(ue=>Ws(ue.clientX,ue.clientY)):I.none()}},zG="top",CN="right",AN="bottom",FG="left",Xw=s=>s.model.minX,Gw=s=>s.model.minY,DC=s=>s.model.minX-1,BC=s=>s.model.minY-1,Kw=s=>s.model.maxX,D2=s=>s.model.maxY,ok=s=>s.model.maxX+1,ik=s=>s.model.maxY+1,zC=(s,F,Z)=>F(s)-Z(s),RP=s=>zC(s,Kw,Xw),FC=s=>zC(s,D2,Gw),MN=s=>RP(s)/2,EN=s=>FC(s)/2,f4=(s,F)=>F?s.stepSize*s.speedMultiplier:s.stepSize,PN=s=>s.snapToGrid,NC=s=>s.snapStart,zy=s=>s.rounded,$C=(s,F)=>s[F+"-edge"]!==void 0,d4=s=>$C(s,FG),RN=s=>$C(s,CN),VC=s=>$C(s,zG),LN=s=>$C(s,AN),rx=s=>s.model.value.get(),B2=(s,F)=>({x:s,y:F}),g0=(s,F)=>{Ri(s,rk(),{value:F})},NG=(s,F)=>{g0(s,B2(DC(F),BC(F)))},LP=(s,F)=>{g0(s,BC(F))},IP=(s,F)=>{g0(s,B2(MN(F),BC(F)))},DP=(s,F)=>{g0(s,B2(ok(F),BC(F)))},$G=(s,F)=>{g0(s,ok(F))},Ag=(s,F)=>{g0(s,B2(ok(F),EN(F)))},VG=(s,F)=>{g0(s,B2(ok(F),ik(F)))},UG=(s,F)=>{g0(s,ik(F))},IN=(s,F)=>{g0(s,B2(MN(F),ik(F)))},DN=(s,F)=>{g0(s,B2(DC(F),ik(F)))},jG=(s,F)=>{g0(s,DC(F))},QG=(s,F)=>{g0(s,B2(DC(F),EN(F)))},BP=(s,F,Z,ue)=>sZ?Z:s===F?F-1:Math.max(F,s-ue),zP=(s,F,Z,ue)=>s>Z?s:sMath.max(F,Math.min(Z,s)),HG=(s,F,Z,ue,we)=>we.fold(()=>{const Be=s-F,qe=Math.round(Be/ue)*ue;return BN(F+qe,F-1,Z+1)},Be=>{const qe=(s-Be)%ue,ft=Math.round(qe/ue),gt=Math.floor((s-Be)/ue),At=Math.floor((Z-Be)/ue),$t=Math.min(At,gt+ft),on=Be+$t*ue;return Math.max(Be,on)}),ZG=(s,F,Z)=>Math.min(Z,Math.max(s,F))-F,FP=s=>{const{min:F,max:Z,range:ue,value:we,step:Be,snap:qe,snapStart:ft,rounded:gt,hasMinEdge:At,hasMaxEdge:$t,minBound:on,maxBound:yn,screenRange:wn}=s,Mn=At?F-1:F,Xn=$t?Z+1:Z;if(weyn)return Xn;{const Br=ZG(we,on,yn),or=BN(Br/wn*ue+F,Mn,Xn);return qe&&or>=F&&or<=Z?HG(or,F,Z,Be,ft):gt?Math.round(or):or}},zN=s=>{const{min:F,max:Z,range:ue,value:we,hasMinEdge:Be,hasMaxEdge:qe,maxBound:ft,maxOffset:gt,centerMinEdge:At,centerMaxEdge:$t}=s;return weZ?qe?ft:$t:(we-F)/ue*gt},NP="top",FN="right",$P="bottom",ak="left",NN="width",$N="height",xv=s=>s.element.dom.getBoundingClientRect(),v0=(s,F)=>s[F],h4=s=>{const F=xv(s);return v0(F,ak)},VN=s=>{const F=xv(s);return v0(F,FN)},p4=s=>{const F=xv(s);return v0(F,NP)},Jw=s=>{const F=xv(s);return v0(F,$P)},VP=s=>{const F=xv(s);return v0(F,NN)},UP=s=>{const F=xv(s);return v0(F,$N)},jP=(s,F,Z)=>(s+F)/2-Z,UN=(s,F)=>{const Z=xv(s),ue=xv(F),we=v0(Z,ak),Be=v0(Z,FN),qe=v0(ue,ak);return jP(we,Be,qe)},jN=(s,F)=>{const Z=xv(s),ue=xv(F),we=v0(Z,NP),Be=v0(Z,$P),qe=v0(ue,NP);return jP(we,Be,qe)},eO=(s,F)=>{Ri(s,rk(),{value:F})},QP=(s,F,Z)=>{const ue={min:Xw(F),max:Kw(F),range:RP(F),value:Z,step:f4(F),snap:PN(F),snapStart:NC(F),rounded:zy(F),hasMinEdge:d4(F),hasMaxEdge:RN(F),minBound:h4(s),maxBound:VN(s),screenRange:VP(s)};return FP(ue)},qG=(s,F,Z)=>{const ue=QP(s,F,Z);return eO(s,ue),ue},QN=(s,F)=>{const Z=Xw(F);eO(s,Z)},HN=(s,F)=>{const Z=Kw(F);eO(s,Z)},HP=(s,F,Z,ue)=>{const Be=(s>0?zP:BP)(rx(Z),Xw(Z),Kw(Z),f4(Z,ue));return eO(F,Be),I.some(Be)},ZP=s=>(F,Z,ue)=>HP(s,F,Z,ue).map(k),bp=s=>PP(s).map(Z=>Z.left),ZN=(s,F,Z,ue,we)=>{const qe=VP(s),ft=ue.bind($t=>I.some(UN($t,s))).getOr(0),gt=we.bind($t=>I.some(UN($t,s))).getOr(qe),At={min:Xw(F),max:Kw(F),range:RP(F),value:Z,hasMinEdge:d4(F),hasMaxEdge:RN(F),minBound:h4(s),minOffset:0,maxBound:VN(s),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:gt};return zN(At)},qP=(s,F,Z,ue,we,Be)=>{const qe=ZN(F,Be,Z,ue,we);return h4(F)-h4(s)+qe},WG=(s,F,Z,ue)=>{const we=rx(Z),Be=qP(s,ue.getSpectrum(s),we,ue.getLeftEdge(s),ue.getRightEdge(s),Z),qe=cc(F.element)/2;ko(F.element,"left",Be-qe+"px")},qN=ZP(-1),YG=ZP(1),XG=I.none,GG=I.none,WN={"top-left":I.none(),top:I.none(),"top-right":I.none(),right:I.some($G),"bottom-right":I.none(),bottom:I.none(),"bottom-left":I.none(),left:I.some(jG)};var Fy=Object.freeze({__proto__:null,setValueFrom:qG,setToMin:QN,setToMax:HN,findValueOfOffset:QP,getValueFromEvent:bp,findPositionOfValue:qP,setPositionFromValue:WG,onLeft:qN,onRight:YG,onUp:XG,onDown:GG,edgeActions:WN});const m4=(s,F)=>{Ri(s,rk(),{value:F})},UC=(s,F,Z)=>{const ue={min:Gw(F),max:D2(F),range:FC(F),value:Z,step:f4(F),snap:PN(F),snapStart:NC(F),rounded:zy(F),hasMinEdge:VC(F),hasMaxEdge:LN(F),minBound:p4(s),maxBound:Jw(s),screenRange:UP(s)};return FP(ue)},jC=(s,F,Z)=>{const ue=UC(s,F,Z);return m4(s,ue),ue},WP=(s,F)=>{const Z=Gw(F);m4(s,Z)},KG=(s,F)=>{const Z=D2(F);m4(s,Z)},JG=(s,F,Z,ue)=>{const Be=(s>0?zP:BP)(rx(Z),Gw(Z),D2(Z),f4(Z,ue));return m4(F,Be),I.some(Be)},YN=s=>(F,Z,ue)=>JG(s,F,Z,ue).map(k),eK=s=>PP(s).map(Z=>Z.top),tK=(s,F,Z,ue,we)=>{const qe=UP(s),ft=ue.bind($t=>I.some(jN($t,s))).getOr(0),gt=we.bind($t=>I.some(jN($t,s))).getOr(qe),At={min:Gw(F),max:D2(F),range:FC(F),value:Z,hasMinEdge:VC(F),hasMaxEdge:LN(F),minBound:p4(s),minOffset:0,maxBound:Jw(s),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:gt};return zN(At)},YP=(s,F,Z,ue,we,Be)=>{const qe=tK(F,Be,Z,ue,we);return p4(F)-p4(s)+qe},nK=(s,F,Z,ue)=>{const we=rx(Z),Be=YP(s,ue.getSpectrum(s),we,ue.getTopEdge(s),ue.getBottomEdge(s),Z),qe=Ql(F.element)/2;ko(F.element,"top",Be-qe+"px")},XN=I.none,rK=I.none,Ny=YN(-1),QC=YN(1),oK={"top-left":I.none(),top:I.some(LP),"top-right":I.none(),right:I.none(),"bottom-right":I.none(),bottom:I.some(UG),"bottom-left":I.none(),left:I.none()};var iK=Object.freeze({__proto__:null,setValueFrom:jC,setToMin:WP,setToMax:KG,findValueOfOffset:UC,getValueFromEvent:eK,findPositionOfValue:YP,setPositionFromValue:nK,onLeft:XN,onRight:rK,onUp:Ny,onDown:QC,edgeActions:oK});const sk=(s,F)=>{Ri(s,rk(),{value:F})},lk=(s,F)=>({x:s,y:F}),XP=(s,F,Z)=>{const ue=QP(s,F,Z.left),we=UC(s,F,Z.top),Be=lk(ue,we);return sk(s,Be),Be},HC=(s,F,Z,ue,we)=>{const Be=s>0?zP:BP,qe=F?rx(ue).x:Be(rx(ue).x,Xw(ue),Kw(ue),f4(ue,we)),ft=F?Be(rx(ue).y,Gw(ue),D2(ue),f4(ue,we)):rx(ue).y;return sk(Z,lk(qe,ft)),I.some(qe)},z2=(s,F)=>(Z,ue,we)=>HC(s,F,Z,ue,we).map(k),ck=(s,F)=>{const Z=Xw(F),ue=Gw(F);sk(s,lk(Z,ue))},GN=(s,F)=>{const Z=Kw(F),ue=D2(F);sk(s,lk(Z,ue))},KN=s=>PP(s),JN=(s,F,Z,ue)=>{const we=rx(Z),Be=qP(s,ue.getSpectrum(s),we.x,ue.getLeftEdge(s),ue.getRightEdge(s),Z),qe=YP(s,ue.getSpectrum(s),we.y,ue.getTopEdge(s),ue.getBottomEdge(s),Z),ft=cc(F.element)/2,gt=Ql(F.element)/2;ko(F.element,"left",Be-ft+"px"),ko(F.element,"top",qe-gt+"px")},e$=z2(-1,!1),aK=z2(1,!1),sK=z2(-1,!0),lK=z2(1,!0),cK={"top-left":I.some(NG),top:I.some(IP),"top-right":I.some(DP),right:I.some(Ag),"bottom-right":I.some(VG),bottom:I.some(IN),"bottom-left":I.some(DN),left:I.some(QG)};var uK=Object.freeze({__proto__:null,setValueFrom:XP,setToMin:ck,setToMax:GN,getValueFromEvent:KN,setPositionFromValue:JN,onLeft:e$,onRight:aK,onUp:sK,onDown:lK,edgeActions:cK});const t$=[mr("stepSize",1),mr("speedMultiplier",10),mr("onChange",v),mr("onChoose",v),mr("onInit",v),mr("onDragStart",v),mr("onDragEnd",v),mr("snapToGrid",!1),mr("rounded",!0),Hr("snapStart"),rr("model",xn("mode",{x:[mr("minX",0),mr("maxX",100),On("value",s=>xi(s.mode.minX)),Sn("getInitialValue"),Il("manager",Fy)],y:[mr("minY",0),mr("maxY",100),On("value",s=>xi(s.mode.minY)),Sn("getInitialValue"),Il("manager",iK)],xy:[mr("minX",0),mr("maxX",100),mr("minY",0),mr("maxY",100),On("value",s=>xi({x:s.mode.minX,y:s.mode.minY})),Sn("getInitialValue"),Il("manager",uK)]})),Ef("sliderBehaviours",[Li,hi]),On("mouseIsDown",()=>xi(!1))],l1=ch({name:"Slider",configFields:t$,partFields:DG,factory:(s,F,Z,ue)=>{const we=Xr=>Ph(Xr,s,"thumb"),Be=Xr=>Ph(Xr,s,"spectrum"),qe=Xr=>Fo(Xr,s,"left-edge"),ft=Xr=>Fo(Xr,s,"right-edge"),gt=Xr=>Fo(Xr,s,"top-edge"),At=Xr=>Fo(Xr,s,"bottom-edge"),$t=s.model,on=$t.manager,yn=(Xr,No)=>{on.setPositionFromValue(Xr,No,s,{getLeftEdge:qe,getRightEdge:ft,getTopEdge:gt,getBottomEdge:At,getSpectrum:Be})},wn=(Xr,No)=>{$t.value.set(No);const Jo=we(Xr);yn(Xr,Jo)},Mn=(Xr,No)=>{wn(Xr,No);const Jo=we(Xr);return s.onChange(Xr,Jo,No),I.some(!0)},Xn=Xr=>{on.setToMin(Xr,s)},Br=Xr=>{on.setToMax(Xr,s)},or=Xr=>{const No=()=>{Fo(Xr,s,"thumb").each(ho=>{const Ci=$t.value.get();s.onChoose(Xr,ho,Ci)})},Jo=s.mouseIsDown.get();s.mouseIsDown.set(!1),Jo&&No()},Mr=(Xr,No)=>{No.stop(),s.mouseIsDown.set(!0),s.onDragStart(Xr,we(Xr))},kr=(Xr,No)=>{No.stop(),s.onDragEnd(Xr,we(Xr)),or(Xr)},yo=Xr=>{Fo(Xr,s,"spectrum").map(Li.focusIn)};return{uid:s.uid,dom:s.dom,components:F,behaviours:Pf(s.sliderBehaviours,[Li.config({mode:"special",focusIn:yo}),hi.config({store:{mode:"manual",getValue:Xr=>$t.value.get(),setValue:wn}}),Wu.config({channels:{[pw()]:{onReceive:or}}})]),events:hl([fo(rk(),(Xr,No)=>{Mn(Xr,No.event.value)}),Ll((Xr,No)=>{const Jo=$t.getInitialValue();$t.value.set(Jo);const ho=we(Xr);yn(Xr,ho);const Ci=Be(Xr);s.onInit(Xr,ho,Ci,$t.value.get())}),fo(_m(),Mr),fo(wm(),kr),fo(Oh(),(Xr,No)=>{yo(Xr),Mr(Xr,No)}),fo(Hv(),kr)]),apis:{resetToMin:Xn,resetToMax:Br,setValue:wn,refresh:yn},domModification:{styles:{position:"relative"}}}},apis:{setValue:(s,F,Z)=>{s.setValue(F,Z)},resetToMin:(s,F)=>{s.resetToMin(F)},resetToMax:(s,F)=>{s.resetToMax(F)},refresh:(s,F)=>{s.refresh(F)}}}),ZC=fi("rgb-hex-update"),n$=fi("slider-update"),GP=fi("palette-update"),uk=(s,F)=>{const Z=l1.parts.spectrum({dom:{tag:"div",classes:[F("hue-slider-spectrum")],attributes:{role:"presentation"}}}),ue=l1.parts.thumb({dom:{tag:"div",classes:[F("hue-slider-thumb")],attributes:{role:"presentation"}}});return l1.sketch({dom:{tag:"div",classes:[F("hue-slider")],attributes:{role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":120}},rounded:!1,model:{mode:"y",getInitialValue:x(0)},components:[Z,ue],sliderBehaviours:Do([oa.config({})]),onChange:(we,Be,qe)=>{fr(we.element,"aria-valuenow",Math.floor(360-qe*3.6)),Ri(we,n$,{value:qe})}})},r$="form",o$=[Ef("formBehaviours",[hi])],i$=s=>"",dK=s=>{const F=(()=>{const Be=[];return{field:(ft,gt)=>(Be.push(ft),a6(r$,i$(ft),gt)),record:x(Be)}})(),Z=s(F),ue=F.record(),we=oe(ue,Be=>Sd({name:Be,pname:i$(Be)}));return dv(r$,o$,we,pK,Z)},hK=(s,F)=>s.fold(()=>Hi.error(F),Hi.value),pK=(s,F)=>({uid:s.uid,dom:s.dom,components:F,behaviours:Pf(s.formBehaviours,[hi.config({store:{mode:"manual",getValue:Z=>{const ue=s5(Z,s);return Ue(ue,(we,Be)=>we().bind(qe=>{const ft=as.getCurrent(qe);return hK(ft,new Error(`Cannot find a current component to extract the value from for form part '${Be}': `+rh(qe.element)))}).map(hi.getValue))},setValue:(Z,ue)=>{We(ue,(we,Be)=>{Fo(Z,s,Be).each(qe=>{as.getCurrent(qe).each(ft=>{hi.setValue(ft,we)})})})}}})]),apis:{getField:(Z,ue)=>Fo(Z,s,ue).bind(as.getCurrent)}}),tO={getField:Cc((s,F,Z)=>s.getField(F,Z)),sketch:dK},a$=fi("valid-input"),KP=fi("invalid-input"),qC=fi("validating-input"),_v="colorcustom.rgb.",JP=(s,F,Z,ue)=>{const we=(yn,wn)=>By.config({invalidClass:F("invalid"),notify:{onValidate:Mn=>{Ri(Mn,qC,{type:yn})},onValid:Mn=>{Ri(Mn,a$,{type:yn,value:hi.getValue(Mn)})},onInvalid:Mn=>{Ri(Mn,KP,{type:yn,value:hi.getValue(Mn)})}},validator:{validate:Mn=>{const Xn=hi.getValue(Mn),Br=wn(Xn)?Hi.value(!0):Hi.error(s("aria.input.invalid"));return uh.pure(Br)},validateOnLoad:!1}}),Be=(yn,wn,Mn,Xn,Br)=>{const or=s(_v+"range"),Mr=Js.parts.label({dom:{tag:"label",attributes:{"aria-label":Xn}},components:[ro(Mn)]}),kr=Js.parts.field({data:Br,factory:Nw,inputAttributes:{type:"text",...wn==="hex"?{"aria-live":"polite"}:{}},inputClasses:[F("textfield")],inputBehaviours:Do([we(wn,yn),Wl.config({})]),onSetValue:Jo=>{By.isInvalid(Jo)&&By.run(Jo).get(v)}}),yo=[Mr,kr],Xr=wn!=="hex"?[Js.parts["aria-descriptor"]({text:or})]:[],No=yo.concat(Xr);return{dom:{tag:"div",attributes:{role:"presentation"}},components:No}},qe=(yn,wn)=>{const Mn=W5(wn);return tO.getField(yn,"hex").each(Xn=>{oa.isFocused(Xn)||hi.setValue(yn,{hex:Mn.value})}),Mn},ft=(yn,wn)=>{const Mn=wn.red,Xn=wn.green,Br=wn.blue;hi.setValue(yn,{red:Mn,green:Xn,blue:Br})},gt=qs({dom:{tag:"div",classes:[F("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),At=(yn,wn)=>{gt.getOpt(yn).each(Mn=>{ko(Mn.element,"background-color","#"+wn.value)})};return Yh({factory:()=>{const yn={red:xi(I.some(255)),green:xi(I.some(255)),blue:xi(I.some(255)),hex:xi(I.some("ffffff"))},wn=(Fi,Os)=>{const vs=Y5(Os);ft(Fi,vs),or(vs)},Mn=Fi=>yn[Fi].get(),Xn=(Fi,Os)=>{yn[Fi].set(Os)},Br=()=>Mn("red").bind(Fi=>Mn("green").bind(Os=>Mn("blue").map(vs=>Hw(Fi,Os,vs,1)))),or=Fi=>{const Os=Fi.red,vs=Fi.green,Ha=Fi.blue;Xn("red",I.some(Os)),Xn("green",I.some(vs)),Xn("blue",I.some(Ha))},Mr=(Fi,Os)=>{const vs=Os.event;vs.type!=="hex"?Xn(vs.type,I.none()):ue(Fi)},kr=(Fi,Os)=>{Z(Fi);const vs=oP(Os);Xn("hex",I.some(vs.value));const Ha=Y5(vs);ft(Fi,Ha),or(Ha),Ri(Fi,ZC,{hex:vs}),At(Fi,vs)},yo=(Fi,Os,vs)=>{const Ha=parseInt(vs,10);Xn(Os,I.some(Ha)),Br().each(Ho=>{const wi=qe(Fi,Ho);Ri(Fi,ZC,{hex:wi}),At(Fi,wi)})},Xr=Fi=>Fi.type==="hex",No=(Fi,Os)=>{const vs=Os.event;Xr(vs)?kr(Fi,vs.value):yo(Fi,vs.type,vs.value)},Jo=Fi=>({label:s(_v+Fi+".label"),description:s(_v+Fi+".description")}),ho=Jo("red"),Ci=Jo("green"),mi=Jo("blue"),qi=Jo("hex");return nl(tO.sketch(Fi=>({dom:{tag:"form",classes:[F("rgb-form")],attributes:{"aria-label":s("aria.color.picker")}},components:[Fi.field("red",Js.sketch(Be(aP,"red",ho.label,ho.description,255))),Fi.field("green",Js.sketch(Be(aP,"green",Ci.label,Ci.description,255))),Fi.field("blue",Js.sketch(Be(aP,"blue",mi.label,mi.description,255))),Fi.field("hex",Js.sketch(Be(bF,"hex",qi.label,qi.description,"ffffff"))),gt.asSpec()],formBehaviours:Do([By.config({invalidClass:F("form-invalid")}),Ta("rgb-form-events",[fo(a$,No),fo(KP,Mr),fo(qC,Mr)])])})),{apis:{updateHex:(Fi,Os)=>{hi.setValue(Fi,{hex:Os.value}),wn(Fi,Os),At(Fi,Os)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(yn,wn,Mn)=>{yn.updateHex(wn,Mn)}},extraApis:{}})},s$=(s,F)=>{const Z=l1.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[F("sv-palette-spectrum")]}}),ue=l1.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[F("sv-palette-thumb")],innerHtml:``}}),we=(At,$t)=>{const{width:on,height:yn}=At,wn=At.getContext("2d");if(wn===null)return;wn.fillStyle=$t,wn.fillRect(0,0,on,yn);const Mn=wn.createLinearGradient(0,0,on,0);Mn.addColorStop(0,"rgba(255,255,255,1)"),Mn.addColorStop(1,"rgba(255,255,255,0)"),wn.fillStyle=Mn,wn.fillRect(0,0,on,yn);const Xn=wn.createLinearGradient(0,0,0,yn);Xn.addColorStop(0,"rgba(0,0,0,0)"),Xn.addColorStop(1,"rgba(0,0,0,1)"),wn.fillStyle=Xn,wn.fillRect(0,0,on,yn)},Be=(At,$t)=>{const on=At.components()[0].element.dom,yn=Ww($t,100,100),wn=kF(yn);we(on,CF(wn))},qe=(At,$t)=>{const on=kC(Y5($t));l1.setValue(At,{x:on.saturation,y:100-on.value}),fr(At.element,"aria-valuetext",s(["Saturation {0}%, Brightness {1}%",on.saturation,on.value]))};return Yh({factory:At=>{const $t=x({x:0,y:0}),on=(Mn,Xn,Br)=>{h(Br)||fr(Mn.element,"aria-valuetext",s(["Saturation {0}%, Brightness {1}%",Math.floor(Br.x),Math.floor(100-Br.y)])),Ri(Mn,GP,{value:Br})},yn=(Mn,Xn,Br,or)=>{we(Br.element.dom,CF(AF))},wn=Do([as.config({find:I.some}),oa.config({})]);return l1.sketch({dom:{tag:"div",attributes:{role:"slider","aria-valuetext":s(["Saturation {0}%, Brightness {1}%",0,0])},classes:[F("sv-palette")]},model:{mode:"xy",getInitialValue:$t},rounded:!1,components:[Z,ue],onChange:on,onInit:yn,sliderBehaviours:wn})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(At,$t,on)=>{Be($t,on)},setThumb:(At,$t,on)=>{qe($t,on)}},extraApis:{}})},l$=(s,F)=>{const Z=we=>{const Be=JP(s,F,we.onValidHex,we.onInvalidHex),qe=s$(s,F),ft=No=>(100-No)/100*360,gt=No=>100-No/360*100,At={paletteRgba:xi(AF),paletteHue:xi(0)},$t=qs(uk(s,F)),on=qs(qe.sketch({})),yn=qs(Be.sketch({})),wn=(No,Jo,ho)=>{on.getOpt(No).each(Ci=>{qe.setHue(Ci,ho)})},Mn=(No,Jo)=>{yn.getOpt(No).each(ho=>{Be.updateHex(ho,Jo)})},Xn=(No,Jo,ho)=>{$t.getOpt(No).each(Ci=>{l1.setValue(Ci,gt(ho))})},Br=(No,Jo)=>{on.getOpt(No).each(ho=>{qe.setThumb(ho,Jo)})},or=(No,Jo)=>{const ho=Y5(No);At.paletteRgba.set(ho),At.paletteHue.set(Jo)},Mr=(No,Jo,ho,Ci)=>{or(Jo,ho),q(Ci,mi=>{mi(No,Jo,ho)})},kr=()=>{const No=[Mn];return(Jo,ho)=>{const Ci=ho.event.value,mi=At.paletteHue.get(),qi=Ww(mi,Ci.x,100-Ci.y),Fi=BF(qi);Mr(Jo,Fi,mi,No)}},yo=()=>{const No=[wn,Mn];return(Jo,ho)=>{const Ci=ft(ho.event.value),mi=At.paletteRgba.get(),qi=kC(mi),Fi=Ww(Ci,qi.saturation,qi.value),Os=BF(Fi);Mr(Jo,Os,Ci,No)}},Xr=()=>{const No=[wn,Xn,Br];return(Jo,ho)=>{const Ci=ho.event.hex,mi=fX(Ci);Mr(Jo,Ci,mi.hue,No)}};return{uid:we.uid,dom:we.dom,components:[on.asSpec(),$t.asSpec(),yn.asSpec()],behaviours:Do([Ta("colour-picker-events",[fo(ZC,Xr()),fo(GP,kr()),fo(n$,yo())]),as.config({find:No=>yn.getOpt(No)}),Li.config({mode:"acyclic"})])}};return Yh({name:"ColourPicker",configFields:[Sn("dom"),mr("onValidHex",v),mr("onInvalidHex",v)],factory:Z})},y0={self:()=>as.config({find:I.some}),memento:s=>as.config({find:s.getOpt}),childAt:s=>as.config({find:F=>Bn(F.element,s).bind(Z=>F.getSystem().getByDom(Z).toOptional())})},u$=Mi([mr("preprocess",R),mr("postprocess",R)]),gK=(s,F)=>{const Z=cn("RepresentingConfigs.memento processors",u$,F);return hi.config({store:{mode:"manual",getValue:ue=>{const we=s.get(ue),Be=hi.getValue(we);return Z.postprocess(Be)},setValue:(ue,we)=>{const Be=Z.preprocess(we),qe=s.get(ue);hi.setValue(qe,Be)}}})},nO=(s,F,Z)=>hi.config({store:{mode:"manual",...s.map(ue=>({initialValue:ue})).getOr({}),getValue:F,setValue:Z}}),f$=(s,F,Z)=>nO(s,ue=>F(ue.element),(ue,we)=>Z(ue.element,we)),vK=s=>f$(s,nh,B1),WC=s=>hi.config({store:{mode:"memory",initialValue:s}}),d$={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},h$=s=>F=>n(F)?s.translate(d$[F]):s.translate(F),yK=(s,F,Z)=>{const ue=gt=>"tox-"+gt,we=l$(h$(F),ue),Be=gt=>{Ri(gt,Dy,{name:"hex-valid",value:!0})},qe=gt=>{Ri(gt,Dy,{name:"hex-valid",value:!1})},ft=qs(we.sketch({dom:{tag:"div",classes:[ue("color-picker-container")],attributes:{role:"presentation"}},onValidHex:Be,onInvalidHex:qe}));return{dom:{tag:"div"},components:[ft.asSpec()],behaviours:Do([nO(Z,gt=>{const At=ft.get(gt);return as.getCurrent(At).bind(yn=>hi.getValue(yn).hex).map(yn=>"#"+mn(yn,"#")).getOr("")},(gt,At)=>{const $t=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,on=I.from($t.exec(At)).bind(Mn=>De(Mn,1)),yn=ft.get(gt);as.getCurrent(yn).fold(()=>{console.log("Can not find form")},Mn=>{hi.setValue(Mn,{hex:on.getOr("")}),tO.getField(Mn,"hex").each(Xn=>{Sa(Xn,cg())})})}),y0.self()])}};var bK=tinymce.util.Tools.resolve("tinymce.Resource");const p$=s=>ht(s,"init"),YC=s=>{const F=os(),Z=qs({dom:{tag:s.tag}}),ue=os(),we=!p$(s)&&s.onFocus.isSome()?[oa.config({onFocus:Be=>{s.onFocus.each(qe=>{qe(Be.element.dom)})}}),Wl.config({})]:[];return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:Do([Ta("custom-editor-events",[Ll(Be=>{Z.getOpt(Be).each(qe=>{(p$(s)?s.init(qe.element.dom):bK.load(s.scriptId,s.scriptUrl).then(ft=>ft(qe.element.dom,s.settings))).then(ft=>{ue.on(gt=>{ft.setValue(gt)}),ue.clear(),F.set(ft)})})})]),nO(I.none(),()=>F.get().fold(()=>ue.get().getOr(""),Be=>Be.getValue()),(Be,qe)=>{F.get().fold(()=>ue.set(qe),ft=>ft.setValue(qe))}),y0.self()].concat(we)),components:[Z.asSpec()]}};var ox=tinymce.util.Tools.resolve("tinymce.util.Tools");const xK=(s,F)=>{const Z=ox.explode(F.getOption("images_file_types")),ue=we=>te(Z,Be=>yt(we.name.toLowerCase(),`.${Be.toLowerCase()}`));return me($e(s),ue)},m$=(s,F,Z)=>{const ue=(yn,wn)=>{wn.stop()},we=yn=>(wn,Mn)=>{q(yn,Xn=>{Xn(wn,Mn)})},Be=(yn,wn)=>{var Mn;if(!ea.isDisabled(yn)){const Xn=wn.event.raw;ft(yn,(Mn=Xn.dataTransfer)===null||Mn===void 0?void 0:Mn.files)}},qe=(yn,wn)=>{const Mn=wn.event.raw.target;ft(yn,Mn.files)},ft=(yn,wn)=>{wn&&(hi.setValue(yn,xK(wn,F)),Ri(yn,tm,{name:s.name}))},gt=qs({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:Do([Ta("input-file-events",[Am(R0()),Am(up())])])}),At=yn=>({uid:yn.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:Do([WC(Z.getOr([])),y0.self(),ea.config({}),za.config({toggleClass:"dragenter",toggleOnExecute:!1}),Ta("dropzone-events",[fo("dragenter",we([ue,za.toggle])),fo("dragleave",we([ue,za.toggle])),fo("dragover",ue),fo("drop",we([ue,Be])),fo(Zv(),qe)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[ro(F.translate("Drop an image here"))]},Vd.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[ro(F.translate("Browse for an image")),gt.asSpec()],action:wn=>{gt.get(wn).element.dom.click()},buttonBehaviours:Do([Wl.config({}),s1.button(F.isDisabled),df()])})]}]}),$t=s.label.map(yn=>L2(yn,F)),on=Js.parts.field({factory:{sketch:At}});return l4($t,on,["tox-form__group--stretched"],[])},g$=(s,F)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${s.columns}col`]},components:oe(s.items,F.interpreter)}),_K=(s,F)=>{let Z=null,ue=null;return{cancel:()=>{O(Z)||(clearTimeout(Z),Z=null,ue=null)},throttle:(...qe)=>{ue=qe,O(Z)&&(Z=setTimeout(()=>{const ft=ue;Z=null,ue=null,s.apply(null,ft)},F))}}},wK=(s,F)=>{let Z=null;return{cancel:()=>{O(Z)||(clearTimeout(Z),Z=null)},throttle:(...Be)=>{O(Z)&&(Z=setTimeout(()=>{Z=null,s.apply(null,Be)},F))}}},fk=(s,F)=>{let Z=null;const ue=()=>{O(Z)||(clearTimeout(Z),Z=null)};return{cancel:ue,throttle:(...Be)=>{ue(),Z=setTimeout(()=>{Z=null,s.apply(null,Be)},F)}}},t9=fi("alloy-fake-before-tabstop"),XC=fi("alloy-fake-after-tabstop"),v$=s=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:s},behaviours:Do([oa.config({ignore:!0}),Wl.config({})])}),y$=(s,F)=>({dom:{tag:"div",classes:["tox-navobj",...s.getOr([])]},components:[v$([t9]),F,v$([XC])],behaviours:Do([y0.childAt(1)])}),b$=(s,F)=>{Ri(s,Bp(),{raw:{which:9,shiftKey:F}})},x$=(s,F)=>{const Z=F.element;$l(Z,t9)?b$(s,!0):$l(Z,XC)&&b$(s,!1)},g4=s=>J5(s,["."+t9,"."+XC].join(","),D),GC=fi("update-dialog"),_$=fi("update-title"),w$=fi("update-body"),O$=fi("update-footer"),n9=fi("body-send-message"),KC=fi("dialog-focus-shifted"),JC=rf().browser,dk=JC.isSafari(),OK=JC.isFirefox(),S$=dk||OK,SK=JC.isChromium(),kK=({scrollTop:s,scrollHeight:F,clientHeight:Z})=>Math.ceil(s)+Z>=F,k$=(s,F)=>s.scrollTo(0,F==="bottom"?99999999:F),TK=(s,F)=>{const Z=s.body;return I.from(!/^1))?Z:s.documentElement)},T$=(s,F,Z)=>{const ue=s.dom;I.from(ue.contentDocument).fold(Z,we=>{let Be=0;const qe=TK(we,F).map(gt=>(Be=gt.scrollTop,gt)).forall(kK),ft=()=>{const gt=ue.contentWindow;a(gt)&&(qe?k$(gt,"bottom"):!qe&&S$&&Be!==0&&k$(gt,Be))};dk&&ue.addEventListener("load",ft,{once:!0}),we.open(),we.write(F),we.close(),dk||ft()})},r9=_t(S$,dk?500:200).map(s=>_K(T$,s)),CK=(s,F)=>{const Z=xi(s.getOr(""));return{getValue:ue=>Z.get(),setValue:(ue,we)=>{if(Z.get()!==we){const Be=ue.element,qe=()=>fr(Be,"srcdoc",we);F?r9.fold(x(T$),ft=>ft.throttle)(Be,we,qe):qe()}Z.set(we)}}},AK=(s,F,Z)=>{const ue="tox-dialog__iframe",we=s.transparent?[]:[`${ue}--opaque`],Be=s.border?["tox-navobj-bordered"]:[],qe={...s.label.map(on=>({title:on})).getOr({}),...Z.map(on=>({srcdoc:on})).getOr({}),...s.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},ft=CK(Z,s.streamContent),gt=s.label.map(on=>L2(on,F)),At=on=>y$(I.from(Be),{uid:on.uid,dom:{tag:"iframe",attributes:qe,classes:[ue,...we]},behaviours:Do([Wl.config({}),oa.config({}),nO(Z,ft.getValue,ft.setValue),Wu.config({channels:{[KC]:{onReceive:(yn,wn)=>{wn.newFocus.each(Mn=>{Cr(yn.element).each(Xn=>{(so(yn.element,Mn)?wl:fc)(Xn,"tox-navobj-bordered-focus")})})}}}})])}),$t=Js.parts.field({factory:{sketch:At}});return l4(gt,$t,["tox-form__group--stretched"],[])},MK=s=>new Promise((F,Z)=>{const ue=()=>{Be(),F(s)},we=[_d(s,"load",ue),_d(s,"error",()=>{Be(),Z("Unable to load data from image: "+s.dom.src)})],Be=()=>q(we,qe=>qe.unbind());s.dom.complete&&ue()}),hk=(s,F,Z,ue,we)=>{const Be=Z*we,qe=ue*we,ft=Math.max(0,s/2-Be/2),gt=Math.max(0,F/2-qe/2);return{left:ft.toString()+"px",top:gt.toString()+"px",width:Be.toString()+"px",height:qe.toString()+"px"}},o9=(s,F,Z)=>{const ue=cc(s),we=Ql(s);return Math.min(ue/F,we/Z,1)},EK=(s,F)=>{const Z=xi(F.getOr({url:""})),ue=qs({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:F.map(gt=>({src:gt.url})).getOr({})}}),we=qs({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[ue.asSpec()]}),Be=(gt,At)=>{const $t={url:At.url};At.zoom.each(yn=>$t.zoom=yn),At.cachedWidth.each(yn=>$t.cachedWidth=yn),At.cachedHeight.each(yn=>$t.cachedHeight=yn),Z.set($t);const on=()=>{const{cachedWidth:yn,cachedHeight:wn,zoom:Mn}=$t;if(!y(yn)&&!y(wn)){if(y(Mn)){const Br=o9(gt.element,yn,wn);$t.zoom=Br}const Xn=hk(cc(gt.element),Ql(gt.element),yn,wn,$t.zoom);we.getOpt(gt).each(Br=>{ra(Br.element,Xn)})}};ue.getOpt(gt).each(yn=>{const wn=yn.element;At.url!==ao(wn,"src")&&(fr(wn,"src",At.url),fc(gt.element,"tox-imagepreview__loaded")),on(),MK(wn).then(Mn=>{gt.getSystem().isConnected()&&(wl(gt.element,"tox-imagepreview__loaded"),$t.cachedWidth=Mn.dom.naturalWidth,$t.cachedHeight=Mn.dom.naturalHeight,on())})})},qe={};s.height.each(gt=>qe.height=gt);const ft=F.map(gt=>({url:gt.url,zoom:I.from(gt.zoom),cachedWidth:I.from(gt.cachedWidth),cachedHeight:I.from(gt.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:qe,attributes:{role:"presentation"}},components:[we.asSpec()],behaviours:Do([y0.self(),nO(ft,()=>Z.get(),Be)])}},PK=(s,F,Z)=>{const ue="tox-label",we=s.align==="center"?[`${ue}--center`]:[],Be=s.align==="end"?[`${ue}--end`]:[],qe=qs({dom:{tag:"label",classes:[ue,...we,...Be]},components:[ro(F.providers.translate(s.label))]}),ft=oe(s.items,F.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[qe.asSpec(),...ft],behaviours:Do([y0.self(),da.config({}),vK(I.none()),Li.config({mode:"acyclic"}),Ta("label",[Ll(gt=>{s.for.each(At=>{Z(At).each($t=>{qe.getOpt(gt).each(on=>{var yn;const wn=(yn=ao($t.element,"id"))!==null&&yn!==void 0?yn:fi("form-field");fr($t.element,"id",wn),fr(on.element,"for",wn)})})})})])])}},e8=fi("toolbar.button.execute"),RK=s=>$p((F,Z)=>{mC(s,F)(ue=>{Ri(F,e8,{buttonApi:ue}),s.onAction(ue)})}),ix=fi("common-button-display-events"),i9={[cp()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events","tooltipping"],[zd()]:["toolbar-button-events",ix],[fp()]:["toolbar-button-events","dropdown-events","tooltipping"],[Oh()]:["focusing","alloy.base.behaviour",ix]},a9=s=>ko(s.element,"width",Aa(s.element,"width")),C$=(s,F,Z)=>em(s,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:Z},F),t8=(s,F)=>C$(s,F,[]),ax=(s,F)=>C$(s,F,[da.config({})]),A$=(s,F,Z)=>({dom:{tag:"span",classes:[`${F}__select-label`]},components:[ro(Z.translate(s))],behaviours:Do([da.config({})])}),Mg=fi("update-menu-text"),F2=fi("update-menu-icon"),s9=(s,F,Z,ue)=>{const we=xi(v),Be=s.text.map(Xn=>qs(A$(Xn,F,Z.providers))),qe=s.icon.map(Xn=>qs(ax(Xn,Z.providers.icons))),ft=(Xn,Br)=>{const or=hi.getValue(Xn);return oa.focus(or),Ri(or,"keydown",{raw:Br.event.raw}),p0.close(or),I.some(!0)},gt=s.role.fold(()=>({}),Xn=>({role:Xn})),At=I.from(s.listRole).map(Xn=>({listRole:Xn})).getOr({}),$t=s.ariaLabel.fold(()=>({}),Xn=>({"aria-label":Z.providers.translate(Xn)})),on=em("chevron-down",{tag:"div",classes:[`${F}__select-chevron`]},Z.providers.icons),yn=fi("common-button-display-events"),wn="dropdown-events";return qs(p0.sketch({...s.uid?{uid:s.uid}:{},...gt,...At,dom:{tag:"button",classes:[F,`${F}--select`].concat(oe(s.classes,Xn=>`${F}--${Xn}`)),attributes:{...$t,...a(ue)?{"data-mce-name":ue}:{}}},components:jw([qe.map(Xn=>Xn.asSpec()),Be.map(Xn=>Xn.asSpec()),I.some(on)]),matchWidth:!0,useMinWidth:!0,onOpen:(Xn,Br,or)=>{s.searchable&&EC(or)},dropdownBehaviours:Do([...s.dropdownBehaviours,s1.button(()=>s.disabled||Z.providers.isDisabled()),df(),u4.config({}),da.config({}),...s.tooltip.map(Xn=>kd.config(Z.providers.tooltips.getConfig({tooltipText:Z.providers.translate(Xn)}))).toArray(),Ta(wn,[tx(s,we),Ih(s,we)]),Ta(yn,[Ll((Xn,Br)=>a9(Xn))]),Ta("menubutton-update-display-text",[fo(Mg,(Xn,Br)=>{Be.bind(or=>or.getOpt(Xn)).each(or=>{da.set(or,[ro(Z.providers.translate(Br.event.text))])})}),fo(F2,(Xn,Br)=>{qe.bind(or=>or.getOpt(Xn)).each(or=>{da.set(or,[ax(Br.event.icon,Z.providers.icons)])})})])]),eventOrder:nl(i9,{[Oh()]:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[zd()]:["toolbar-button-events",kd.name(),wn,yn]}),sandboxBehaviours:Do([Li.config({mode:"special",onLeft:ft,onRight:ft}),Ta("dropdown-sandbox-events",[fo($z,(Xn,Br)=>{XX(Xn),Br.stop()}),fo(Vz,(Xn,Br)=>{GX(Xn,Br),Br.stop()})])]),lazySink:Z.getSink,toggleClass:`${F}--active`,parts:{menu:{...F5(!1,s.columns,s.presets),fakeFocus:s.searchable,...s.listRole==="listbox"?{}:{onHighlightItem:K5,onCollapseMenu:(Xn,Br,or)=>{ri.getHighlighted(or).each(Mr=>{K5(Xn,or,Mr)})},onDehighlightItem:eG}}},getAnchorOverrides:()=>({maxHeightFunction:(Xn,Br)=>{gy()(Xn,Br-10)}}),fetch:Xn=>uh.nu(T(s.fetch,Xn))})).asSpec()},M$=s=>n(s),l9=s=>s.type==="separator",E$=s=>ht(s,"getSubmenuItems"),LK={type:"separator"},IK=(s,F)=>{const Z=se(s,(ue,we)=>M$(we)?we===""?ue:we==="|"?ue.length>0&&!l9(ue[ue.length-1])?ue.concat([LK]):ue:ht(F,we.toLowerCase())?ue.concat([F[we.toLowerCase()]]):ue:ue.concat([we]),[]);return Z.length>0&&l9(Z[Z.length-1])&&Z.pop(),Z},DK=(s,F)=>{const Z=s.getSubmenuItems(),ue=R$(Z,F),we=nl(ue.menus,{[s.value]:ue.items}),Be=nl(ue.expansions,{[s.value]:s.value});return{item:s,menus:we,expansions:Be}},P$=s=>{const F=Ge(s,"value").getOrThunk(()=>fi("generated-menu-item"));return nl({value:F},s)},R$=(s,F)=>{const Z=IK(n(s)?s.split(" "):s,F);return he(Z,(ue,we)=>{if(E$(we)){const Be=P$(we),qe=DK(Be,F);return{menus:nl(ue.menus,qe.menus),items:[qe.item,...ue.items],expansions:nl(ue.expansions,qe.expansions)}}else return{...ue,items:[we,...ue.items]}},{menus:{},expansions:{},items:[]})},L$=s=>s.search.fold(()=>({searchMode:"no-search"}),F=>({searchMode:"search-with-field",placeholder:F.placeholder})),BK=s=>s.search.fold(()=>({searchMode:"no-search"}),F=>({searchMode:"search-with-results"})),v4=(s,F,Z,ue)=>{const we=fi("primary-menu"),Be=R$(s,Z.shared.providers.menuItems());if(Be.items.length===0)return I.none();const qe=L$(ue),ft=oG(we,Be.items,F,Z,ue.isHorizontalMenu,qe),gt=BK(ue),At=Ue(Be.menus,(on,yn)=>oG(yn,on,F,Z,!1,gt)),$t=nl(At,wh(we,ft));return I.from(Rw.tieredData(we,$t,Be.expansions))},y4=s=>!ht(s,"items"),I$="data-value",D$=(s,F,Z,ue,we)=>oe(Z,Be=>y4(Be)?{type:"togglemenuitem",...we?{}:{role:"option"},text:Be.text,value:Be.value,active:Be.value===ue,onAction:()=>{hi.setValue(s,Be.value),Ri(s,tm,{name:F}),oa.focus(s)}}:{type:"nestedmenuitem",text:Be.text,getSubmenuItems:()=>D$(s,F,Be.items,ue,we)}),c9=(s,F)=>Oe(s,Z=>y4(Z)?_t(Z.value===F,Z):c9(Z.items,F)),u9=(s,F,Z)=>{const ue=te(s.items,At=>!y4(At)),we=F.shared.providers,Be=Z.bind(At=>c9(s.items,At)).orThunk(()=>He(s.items).filter(y4)),qe=s.label.map(At=>L2(At,we)),ft=Js.parts.field({dom:{},factory:{sketch:At=>s9({uid:At.uid,text:Be.map($t=>$t.text),icon:I.none(),tooltip:I.none(),role:_t(!ue,"combobox"),...ue?{}:{listRole:"listbox"},ariaLabel:s.label,fetch:($t,on)=>{const yn=D$($t,s.name,s.items,hi.getValue($t),ue);on(v4(yn,r1.CLOSE_ON_EXECUTE,F,{isHorizontalMenu:!1,search:I.none()}))},onSetup:x(v),getApi:x({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Wl.config({}),nO(Be.map($t=>$t.value),$t=>ao($t.element,I$),($t,on)=>{c9(s.items,on).each(yn=>{fr($t.element,I$,yn.value),Ri($t,Mg,{text:yn.text})})})]},"tox-listbox",F.shared)}}),gt={dom:{tag:"div",classes:["tox-listboxfield"]},components:[ft]};return Js.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ve([qe.toArray(),[gt]]),fieldBehaviours:Do([ea.config({disabled:x(!s.enabled),onDisabled:At=>{Js.getField(At).each(ea.disable)},onEnabled:At=>{Js.getField(At).each(ea.enable)}})])})},zK=(s,F)=>({dom:{tag:"div",classes:s.classes},components:oe(s.items,F.shared.interpreter)}),B$=(s,F)=>{const Z=oe(s.options,we=>({dom:{tag:"option",value:we.value,innerHtml:we.text}})),ue=s.data.map(we=>wh("initialValue",we)).getOr({});return{uid:s.uid,dom:{tag:"select",classes:s.selectClasses,attributes:s.selectAttributes},components:Z,behaviours:Pf(s.selectBehaviours,[oa.config({}),hi.config({store:{mode:"manual",getValue:we=>qr(we.element),setValue:(we,Be)=>{const qe=He(s.options);ce(s.options,gt=>gt.value===Be).isSome()?N(we.element,Be):we.element.dom.selectedIndex===-1&&Be===""&&qe.each(gt=>N(we.element,gt.value))},...ue}})])}},FK=Yh({name:"HtmlSelect",configFields:[Sn("options"),Ef("selectBehaviours",[oa,hi]),mr("selectClasses",[]),mr("selectAttributes",{}),Hr("data")],factory:B$}),z$=(s,F,Z)=>{const ue=oe(s.items,gt=>({text:F.translate(gt.text),value:gt.value})),we=s.label.map(gt=>L2(gt,F)),Be=Js.parts.field({dom:{},...Z.map(gt=>({data:gt})).getOr({}),selectAttributes:{size:s.size},options:ue,factory:FK,selectBehaviours:Do([ea.config({disabled:()=>!s.enabled||F.isDisabled()}),Wl.config({}),Ta("selectbox-change",[fo(Zv(),(gt,At)=>{Ri(gt,tm,{name:s.name})})])])}),qe=s.size>1?I.none():I.some(em("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},F.icons)),ft={dom:{tag:"div",classes:["tox-selectfield"]},components:ve([[Be],qe.toArray()])};return Js.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ve([we.toArray(),[ft]]),fieldBehaviours:Do([ea.config({disabled:()=>!s.enabled||F.isDisabled(),onDisabled:gt=>{Js.getField(gt).each(ea.disable)},onEnabled:gt=>{Js.getField(gt).each(ea.enable)}}),df()])})},NK=x([mr("field1Name","field1"),mr("field2Name","field2"),Zh("onLockedChange"),jp(["lockClass"]),mr("locked",!1),Vm.field("coupledFieldBehaviours",[as,hi])]),$K=(s,F,Z)=>Fo(s,F,Z).bind(as.getCurrent),F$=(s,F)=>Sd({factory:Js,name:s,overrides:Z=>({fieldBehaviours:Do([Ta("coupled-input-behaviour",[fo(cg(),ue=>{$K(ue,Z,F).each(we=>{Fo(ue,Z,"lock").each(Be=>{za.isOn(Be)&&Z.onLockedChange(ue,we,Be)})})})])])})}),VK=x([F$("field1","field2"),F$("field2","field1"),Sd({factory:Vd,schema:[Sn("dom")],name:"lock",overrides:s=>({buttonBehaviours:Do([za.config({selected:s.locked,toggleClass:s.markers.lockClass,aria:{mode:"pressed"}})])})})]),UK=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,components:F,behaviours:Vm.augment(s.coupledFieldBehaviours,[as.config({find:I.some}),hi.config({store:{mode:"manual",getValue:we=>{const Be=ww(we,s,["field1","field2"]);return{[s.field1Name]:hi.getValue(Be.field1()),[s.field2Name]:hi.getValue(Be.field2())}},setValue:(we,Be)=>{const qe=ww(we,s,["field1","field2"]);pt(Be,s.field1Name)&&hi.setValue(qe.field1(),Be[s.field1Name]),pt(Be,s.field2Name)&&hi.setValue(qe.field2(),Be[s.field2Name])}}})]),apis:{getField1:we=>Fo(we,s,"field1"),getField2:we=>Fo(we,s,"field2"),getLock:we=>Fo(we,s,"lock")}}),Ym=ch({name:"FormCoupledInputs",configFields:NK(),partFields:VK(),factory:UK,apis:{getField1:(s,F)=>s.getField1(F),getField2:(s,F)=>s.getField2(F),getLock:(s,F)=>s.getLock(F)}}),jK=s=>{const F={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},Z=we=>we in F?F[we]:1;let ue=s.value.toFixed(Z(s.unit));return ue.indexOf(".")!==-1&&(ue=ue.replace(/\.?0*$/,"")),ue+s.unit},f9=s=>{const Z=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(s);if(Z!==null){const ue=parseFloat(Z[1]),we=Z[2];return Hi.value({value:ue,unit:we})}else return Hi.error(s)},d9=(s,F)=>{const Z={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},ue=we=>ht(Z,we);return s.unit===F?I.some(s.value):ue(s.unit)&&ue(F)?Z[s.unit]===Z[F]?I.some(s.value):I.some(s.value/Z[s.unit]*Z[F]):I.none()},h9=s=>I.none(),QK=(s,F)=>Z=>d9(Z,F).map(ue=>({value:ue*s,unit:F})),HK=(s,F)=>{const Z=f9(s).toOptional(),ue=f9(F).toOptional();return en(Z,ue,(we,Be)=>d9(we,Be.unit).map(qe=>Be.value/qe).map(qe=>QK(qe,Be.unit)).getOr(h9)).getOr(h9)},N$=(s,F)=>{let Z=h9;const ue=fi("ratio-event"),we=wn=>em(wn,{tag:"span",classes:["tox-icon","tox-lock-icon__"+wn]},F.icons),Be=s.label.getOr("Constrain proportions"),qe=F.translate(Be),ft=Ym.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":qe,"data-mce-name":Be}},components:[we("lock"),we("unlock")],buttonBehaviours:Do([ea.config({disabled:()=>!s.enabled||F.isDisabled()}),df(),Wl.config({}),kd.config(F.tooltips.getConfig({tooltipText:qe}))])}),gt=wn=>({dom:{tag:"div",classes:["tox-form__group"]},components:wn}),At=wn=>Js.parts.field({factory:Nw,inputClasses:["tox-textfield"],inputBehaviours:Do([ea.config({disabled:()=>!s.enabled||F.isDisabled()}),df(),Wl.config({}),Ta("size-input-events",[fo(Sm(),(Mn,Xn)=>{Ri(Mn,ue,{isField1:wn})}),fo(Zv(),(Mn,Xn)=>{Ri(Mn,tm,{name:s.name})})])]),selectOnFocus:!1}),$t=wn=>({dom:{tag:"label",classes:["tox-label"]},components:[ro(F.translate(wn))]}),on=Ym.parts.field1(gt([Js.parts.label($t("Width")),At(!0)])),yn=Ym.parts.field2(gt([Js.parts.label($t("Height")),At(!1)]));return Ym.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[on,yn,gt([$t(by),ft])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(wn,Mn,Xn)=>{f9(hi.getValue(wn)).each(Br=>{Z(Br).each(or=>{hi.setValue(Mn,jK(or))})})},coupledFieldBehaviours:Do([ea.config({disabled:()=>!s.enabled||F.isDisabled(),onDisabled:wn=>{Ym.getField1(wn).bind(Js.getField).each(ea.disable),Ym.getField2(wn).bind(Js.getField).each(ea.disable),Ym.getLock(wn).each(ea.disable)},onEnabled:wn=>{Ym.getField1(wn).bind(Js.getField).each(ea.enable),Ym.getField2(wn).bind(Js.getField).each(ea.enable),Ym.getLock(wn).each(ea.enable)}}),df(),Ta("size-input-events2",[fo(ue,(wn,Mn)=>{const Xn=Mn.event.isField1,Br=Xn?Ym.getField1(wn):Ym.getField2(wn),or=Xn?Ym.getField2(wn):Ym.getField1(wn),Mr=Br.map(hi.getValue).getOr(""),kr=or.map(hi.getValue).getOr("");Z=HK(Mr,kr)})])])})},ZK=(s,F,Z)=>{const ue=l1.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[ro(F.translate(s.label))]}),we=l1.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),Be=l1.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return l1.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:s.min,maxX:s.max,getInitialValue:x(Z.getOrThunk(()=>(Math.abs(s.max)-Math.abs(s.min))/2))},components:[ue,we,Be],sliderBehaviours:Do([y0.self(),oa.config({})]),onChoose:(qe,ft,gt)=>{Ri(qe,tm,{name:s.name,value:gt})},onChange:(qe,ft,gt)=>{Ri(qe,tm,{name:s.name,value:gt})}})},qK=(s,F)=>{const Z=ft=>({dom:{tag:"th",innerHtml:F.translate(ft)}}),ue=ft=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:oe(ft,Z)}]}),we=ft=>({dom:{tag:"td",innerHtml:F.translate(ft)}}),Be=ft=>({dom:{tag:"tr"},components:oe(ft,we)}),qe=ft=>({dom:{tag:"tbody"},components:oe(ft,Be)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[ue(s.header),qe(s.cells)],behaviours:Do([Wl.config({}),oa.config({})])}},$$=(s,F)=>{const Z=s.label.map(wn=>L2(wn,F)),ue=[ea.config({disabled:()=>s.disabled||F.isDisabled()}),df(),Li.config({mode:"execution",useEnter:s.multiline!==!0,useControlEnter:s.multiline===!0,execute:wn=>(Sa(wn,c4),I.some(!0))}),Ta("textfield-change",[fo(cg(),(wn,Mn)=>{Ri(wn,tm,{name:s.name})}),fo(Gg(),(wn,Mn)=>{Ri(wn,tm,{name:s.name})})]),Wl.config({})],we=s.validation.map(wn=>By.config({getRoot:Mn=>Cr(Mn.element),invalidClass:"tox-invalid",validator:{validate:Mn=>{const Xn=hi.getValue(Mn),Br=wn.validator(Xn);return uh.pure(Br===!0?Hi.value(Xn):Hi.error(Br))},validateOnLoad:wn.validateOnLoad}})).toArray(),Be=s.placeholder.fold(x({}),wn=>({placeholder:F.translate(wn)})),qe=s.inputMode.fold(x({}),wn=>({inputmode:wn})),ft={...Be,...qe},gt=Js.parts.field({tag:s.multiline===!0?"textarea":"input",...s.data.map(wn=>({data:wn})).getOr({}),inputAttributes:ft,inputClasses:[s.classname],inputBehaviours:Do(ve([ue,we])),selectOnFocus:!1,factory:Nw}),At=s.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[gt]}:gt,on=(s.flex?["tox-form__group--stretched"]:[]).concat(s.maximized?["tox-form-group--maximize"]:[]),yn=[ea.config({disabled:()=>s.disabled||F.isDisabled(),onDisabled:wn=>{Js.getField(wn).each(ea.disable)},onEnabled:wn=>{Js.getField(wn).each(ea.enable)}}),df()];return l4(Z,At,on,yn)},V$=(s,F,Z)=>$$({name:s.name,multiline:!1,label:s.label,inputMode:s.inputMode,placeholder:s.placeholder,flex:!1,disabled:!s.enabled,classname:"tox-textfield",validation:I.none(),maximized:s.maximized,data:Z},F),U$=(s,F,Z)=>$$({name:s.name,multiline:!0,label:s.label,inputMode:I.none(),placeholder:s.placeholder,flex:!0,disabled:!s.enabled,classname:"tox-textarea",validation:I.none(),maximized:s.maximized,data:Z},F),b4=(s,F)=>F.getAnimationRoot.fold(()=>s.element,Z=>Z(s)),c1=s=>s.dimension.property,rO=(s,F)=>s.dimension.getDimension(F),n8=(s,F)=>{const Z=b4(s,F);th(Z,[F.shrinkingClass,F.growingClass])},p9=(s,F)=>{fc(s.element,F.openClass),wl(s.element,F.closedClass),ko(s.element,c1(F),"0px"),Ku(s.element)},m9=(s,F)=>{fc(s.element,F.closedClass),wl(s.element,F.openClass),ma(s.element,c1(F))},g9=(s,F,Z,ue)=>{Z.setCollapsed(),ko(s.element,c1(F),rO(F,s.element)),n8(s,F),p9(s,F),F.onStartShrink(s),F.onShrunk(s)},WK=(s,F,Z,ue)=>{const we=ue.getOrThunk(()=>rO(F,s.element));Z.setCollapsed(),ko(s.element,c1(F),we),Ku(s.element);const Be=b4(s,F);fc(Be,F.growingClass),wl(Be,F.shrinkingClass),p9(s,F),F.onStartShrink(s)},j$=(s,F,Z)=>{const ue=rO(F,s.element);(ue==="0px"?g9:WK)(s,F,Z,I.some(ue))},Q$=(s,F,Z)=>{const ue=b4(s,F),we=$l(ue,F.shrinkingClass),Be=rO(F,s.element);m9(s,F);const qe=rO(F,s.element);(we?()=>{ko(s.element,c1(F),Be),Ku(s.element)}:()=>{p9(s,F)})(),fc(ue,F.shrinkingClass),wl(ue,F.growingClass),m9(s,F),ko(s.element,c1(F),qe),Z.setExpanded(),F.onStartGrow(s)},H$=(s,F,Z)=>{if(Z.isExpanded()){ma(s.element,c1(F));const ue=rO(F,s.element);ko(s.element,c1(F),ue)}},Z$=(s,F,Z)=>{Z.isExpanded()||Q$(s,F,Z)},YK=(s,F,Z)=>{Z.isExpanded()&&j$(s,F,Z)},XK=(s,F,Z)=>{Z.isExpanded()&&g9(s,F,Z)},q$=(s,F,Z)=>Z.isExpanded(),GK=(s,F,Z)=>Z.isCollapsed(),W$=(s,F,Z)=>{const ue=b4(s,F);return $l(ue,F.growingClass)===!0},ua=(s,F,Z)=>{const ue=b4(s,F);return $l(ue,F.shrinkingClass)===!0};var Y$=Object.freeze({__proto__:null,refresh:H$,grow:Z$,shrink:YK,immediateShrink:XK,hasGrown:q$,hasShrunk:GK,isGrowing:W$,isShrinking:ua,isTransitioning:(s,F,Z)=>W$(s,F)||ua(s,F),toggleGrow:(s,F,Z)=>{(Z.isExpanded()?j$:Q$)(s,F,Z)},disableTransitions:n8,immediateGrow:(s,F,Z)=>{Z.isExpanded()||(m9(s,F),ko(s.element,c1(F),rO(F,s.element)),n8(s,F),Z.setExpanded(),F.onStartGrow(s),F.onGrown(s))}}),ffe=Object.freeze({__proto__:null,exhibit:(s,F,Z)=>{const ue=F.expanded;return Tf(ue?{classes:[F.openClass],styles:{}}:{classes:[F.closedClass],styles:wh(F.dimension.property,"0px")})},events:(s,F)=>hl([Wv(sp(),(Z,ue)=>{ue.event.raw.propertyName===s.dimension.property&&(n8(Z,s),F.isExpanded()&&ma(Z.element,s.dimension.property),(F.isExpanded()?s.onGrown:s.onShrunk)(Z))})])}),pk=[Sn("closedClass"),Sn("openClass"),Sn("shrinkingClass"),Sn("growingClass"),Hr("getAnimationRoot"),Ra("onShrunk"),Ra("onStartShrink"),Ra("onGrown"),Ra("onStartGrow"),mr("expanded",!1),rr("dimension",xn("property",{width:[Il("property","width"),Il("getDimension",s=>cc(s)+"px")],height:[Il("property","height"),Il("getDimension",s=>Ql(s)+"px")]}))],X$=Object.freeze({__proto__:null,init:s=>{const F=xi(s.expanded),Z=()=>"expanded: "+F.get();return kh({isExpanded:()=>F.get()===!0,isCollapsed:()=>F.get()===!1,setCollapsed:T(F.set,!1),setExpanded:T(F.set,!0),readState:Z})}});const nm=lf({fields:pk,name:"sliding",active:ffe,apis:Y$,state:X$}),G$=s=>({isEnabled:()=>!ea.isDisabled(s),setEnabled:F=>ea.set(s,!F),setActive:F=>{const Z=s.element;F?(wl(Z,"tox-tbtn--enabled"),fr(Z,"aria-pressed",!0)):(fc(Z,"tox-tbtn--enabled"),po(Z,"aria-pressed"))},isActive:()=>$l(s.element,"tox-tbtn--enabled"),setText:F=>{Ri(s,Mg,{text:F})},setIcon:F=>Ri(s,F2,{icon:F})}),mk=(s,F,Z,ue,we=!0,Be)=>s9({text:s.text,icon:s.icon,tooltip:s.tooltip,ariaLabel:s.tooltip,searchable:s.search.isSome(),role:ue,fetch:(qe,ft)=>{const gt={pattern:s.search.isSome()?tG(qe):""};s.fetch(At=>{ft(v4(At,r1.CLOSE_ON_EXECUTE,Z,{isHorizontalMenu:!1,search:s.search}))},gt,G$(qe))},onSetup:s.onSetup,getApi:G$,columns:1,presets:"normal",classes:[],dropdownBehaviours:[...we?[Wl.config({})]:[]]},F,Z.shared,Be),K$=(s,F,Z)=>{const ue=Be=>qe=>{const ft=!qe.isActive();qe.setActive(ft),Be.storage.set(ft),Z.shared.getSink().each(gt=>{F().getOpt(gt).each(At=>{bd(At.element),Ri(At,Dy,{name:Be.name,value:Be.storage.get()})})})},we=Be=>qe=>{qe.setActive(Be.storage.get())};return Be=>{Be(oe(s,qe=>{const ft=qe.text.fold(()=>({}),gt=>({text:gt}));return{type:qe.type,active:!1,...ft,onAction:ue(qe),onSetup:we(qe)}}))}},o8=s=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{"aria-label":s}},components:[ro(s)]}),v9=fi("leaf-label-event-id"),y9=({leaf:s,onLeafAction:F,visible:Z,treeId:ue,selectedId:we,backstage:Be})=>{const qe=s.menu.map(gt=>mk(gt,"tox-mbtn",Be,I.none(),Z)),ft=[o8(s.title)];return qe.each(gt=>ft.push(gt)),Vd.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(Z?["tox-tree--leaf__label--visible"]:[])},components:ft,role:"treeitem",action:gt=>{F(s.id),gt.getSystem().broadcastOn([`update-active-item-${ue}`],{value:s.id})},eventOrder:{[Bp()]:[v9,"keying"]},buttonBehaviours:Do([...Z?[Wl.config({})]:[],za.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),Wu.config({channels:{[`update-active-item-${ue}`]:{onReceive:(gt,At)=>{(At.value===s.id?za.on:za.off)(gt)}}}}),Ta(v9,[Ll((gt,At)=>{we.each($t=>{($t===s.id?za.on:za.off)(gt)})}),fo(Bp(),(gt,At)=>{const $t=At.event.raw.code==="ArrowLeft",on=At.event.raw.code==="ArrowRight";$t?(zs(gt.element,".tox-tree--directory").each(yn=>{gt.getSystem().getByDom(yn).each(wn=>{rc(yn,".tox-tree--directory__label").each(Mn=>{wn.getSystem().getByDom(Mn).each(oa.focus)})})}),At.stop()):on&&At.stop()})])])})},nJ=(s,F,Z)=>em(s,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:Z},F),rJ=(s,F)=>nJ(s,F,[]),J$=fi("directory-label-event-id"),oJ=({directory:s,visible:F,noChildren:Z,backstage:ue})=>{const we=s.menu.map(ft=>mk(ft,"tox-mbtn",ue,I.none())),Be=[{dom:{tag:"div",classes:["tox-chevron"]},components:[rJ("chevron-right",ue.shared.providers.icons)]},o8(s.title)];we.each(ft=>{Be.push(ft)});const qe=ft=>{zs(ft.element,".tox-tree--directory").each(gt=>{ft.getSystem().getByDom(gt).each(At=>{const $t=!za.isOn(At);za.toggle(At),Ri(ft,"expand-tree-node",{expanded:$t,node:s.id})})})};return Vd.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(F?["tox-tree--directory__label--visible"]:[])},components:Be,action:qe,eventOrder:{[Bp()]:[J$,"keying"]},buttonBehaviours:Do([...F?[Wl.config({})]:[],Ta(J$,[fo(Bp(),(ft,gt)=>{const At=gt.event.raw.code==="ArrowRight",$t=gt.event.raw.code==="ArrowLeft";At&&Z&>.stop(),(At||$t)&&zs(ft.element,".tox-tree--directory").each(on=>{ft.getSystem().getByDom(on).each(yn=>{!za.isOn(yn)&&At||za.isOn(yn)&&$t?(qe(ft),gt.stop()):$t&&!za.isOn(yn)&&(zs(yn.element,".tox-tree--directory").each(wn=>{rc(wn,".tox-tree--directory__label").each(Mn=>{yn.getSystem().getByDom(Mn).each(oa.focus)})}),gt.stop())})})})])])})},iJ=({children:s,onLeafAction:F,visible:Z,treeId:ue,expandedIds:we,selectedId:Be,backstage:qe})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:s.map(ft=>ft.type==="leaf"?y9({leaf:ft,selectedId:Be,onLeafAction:F,visible:Z,treeId:ue,backstage:qe}):b9({directory:ft,expandedIds:we,selectedId:Be,onLeafAction:F,labelTabstopping:Z,treeId:ue,backstage:qe})),behaviours:Do([nm.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:Z}),da.config({})])}),aJ=fi("directory-event-id"),b9=({directory:s,onLeafAction:F,labelTabstopping:Z,treeId:ue,backstage:we,expandedIds:Be,selectedId:qe})=>{const{children:ft}=s,gt=xi(Be),At=on=>ft.map(yn=>yn.type==="leaf"?y9({leaf:yn,selectedId:qe,onLeafAction:F,visible:on,treeId:ue,backstage:we}):b9({directory:yn,expandedIds:gt.get(),selectedId:qe,onLeafAction:F,labelTabstopping:on,treeId:ue,backstage:we})),$t=Be.includes(s.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[oJ({directory:s,visible:Z,noChildren:s.children.length===0,backstage:we}),iJ({children:ft,expandedIds:Be,selectedId:qe,onLeafAction:F,visible:$t,treeId:ue,backstage:we})],behaviours:Do([Ta(aJ,[Ll((on,yn)=>{za.set(on,$t)}),fo("expand-tree-node",(on,yn)=>{const{expanded:wn,node:Mn}=yn.event;gt.set(wn?[...gt.get(),Mn]:gt.get().filter(Xn=>Xn!==Mn))})]),za.config({...s.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(on,yn)=>{const wn=on.components()[1],Mn=At(yn);yn?nm.grow(wn):nm.shrink(wn),da.set(wn,Mn)}})])}},sJ=fi("tree-event-id"),lJ=(s,F)=>{const Z=s.onLeafAction.getOr(v),ue=s.onToggleExpand.getOr(v),we=s.defaultExpandedIds,Be=xi(we),qe=xi(s.defaultSelectedId),ft=fi("tree-id"),gt=(At,$t)=>s.items.map(on=>on.type==="leaf"?y9({leaf:on,selectedId:At,onLeafAction:Z,visible:!0,treeId:ft,backstage:F}):b9({directory:on,selectedId:At,onLeafAction:Z,expandedIds:$t,labelTabstopping:!0,treeId:ft,backstage:F}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:gt(qe.get(),Be.get()),behaviours:Do([Li.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),Ta(sJ,[fo("expand-tree-node",(At,$t)=>{const{expanded:on,node:yn}=$t.event;Be.set(on?[...Be.get(),yn]:Be.get().filter(wn=>wn!==yn)),ue(Be.get(),{expanded:on,node:yn})})]),Wu.config({channels:{[`update-active-item-${ft}`]:{onReceive:(At,$t)=>{qe.set(I.some($t.value)),da.set(At,gt(I.some($t.value),Be.get()))}}}}),da.config({})])}};var uJ=Object.freeze({__proto__:null,events:(s,F)=>{const ue=s.stream.streams.setup(s,F);return hl([fo(s.event,ue),Sh(()=>F.cancel())].concat(s.cancelEvent.map(we=>[fo(we,()=>F.cancel())]).getOr([])))}});const eV=s=>{const F=xi(null);return kh({readState:()=>({timer:F.get()!==null?"set":"unset"}),setTimer:Be=>{F.set(Be)},cancel:()=>{const Be=F.get();Be!==null&&Be.cancel()}})};var fJ=Object.freeze({__proto__:null,throttle:eV,init:s=>s.stream.streams.state(s)});const dJ=(s,F)=>{const Z=s.stream,ue=fk(s.onStream,Z.delay);return F.setTimer(ue),(we,Be)=>{ue.throttle(we,Be),Z.stopEvent&&Be.stop()}};var hJ=[rr("stream",xn("mode",{throttle:[Sn("delay"),mr("stopEvent",!0),Il("streams",{setup:dJ,state:eV})]})),mr("event","input"),Hr("cancelEvent"),Zh("onStream")];const x9=lf({fields:hJ,name:"streaming",active:uJ,state:fJ}),i8=(s,F,Z)=>{const ue=hi.getValue(Z);hi.setValue(F,ue),nV(F)},tV=(s,F)=>{const Z=s.element,ue=qr(Z),we=Z.dom;ao(Z,"type")!=="number"&&F(we,ue)},nV=s=>{tV(s,(F,Z)=>F.setSelectionRange(Z.length,Z.length))},pJ=(s,F)=>{tV(s,(Z,ue)=>Z.setSelectionRange(F,ue.length))},rV=(s,F,Z)=>{if(s.selectsOver){const ue=hi.getValue(F),we=s.getDisplayText(ue),Be=hi.getValue(Z);return s.getDisplayText(Be).indexOf(we)===0?I.some(()=>{i8(s,F,Z),pJ(F,we.length)}):I.none()}else return I.none()},_9=x("alloy.typeahead.itemexecute"),mJ=(s,F,Z,ue)=>{const we=(on,yn,wn)=>{s.previewing.set(!1);const Mn=lu.getCoupled(on,"sandbox");if(hs.isOpen(Mn))as.getCurrent(Mn).each(Xn=>{ri.getHighlighted(Xn).fold(()=>{wn(Xn)},()=>{Np(Mn,Xn.element,"keydown",yn)})});else{const Xn=Br=>{as.getCurrent(Br).each(wn)};AC(s,qe(on),on,Mn,ue,Xn,Xh.HighlightMenuAndItem).get(v)}},Be=I7(s),qe=on=>yn=>yn.map(wn=>{const Mn=ot(wn.menus),Xn=ye(Mn,or=>me(or.items,Mr=>Mr.type==="item"));return hi.getState(on).update(oe(Xn,or=>or.data)),wn}),ft=on=>as.getCurrent(on),gt="typeaheadevents",At=[oa.config({}),hi.config({onSetValue:s.onSetValue,store:{mode:"dataset",getDataKey:on=>qr(on.element),getFallbackEntry:on=>({value:on,meta:{}}),setValue:(on,yn)=>{N(on.element,s.model.getDisplayText(yn))},...s.initialData.map(on=>wh("initialValue",on)).getOr({})}}),x9.config({stream:{mode:"throttle",delay:s.responseTime,stopEvent:!1},onStream:(on,yn)=>{const wn=lu.getCoupled(on,"sandbox");if(oa.isFocused(on)&&qr(on.element).length>=s.minChars){const Xn=ft(wn).bind(or=>ri.getHighlighted(or).map(hi.getValue));s.previewing.set(!0);const Br=or=>{ft(wn).each(Mr=>{Xn.fold(()=>{s.model.selectsOver&&ri.highlightFirst(Mr)},kr=>{ri.highlightBy(Mr,yo=>hi.getValue(yo).value===kr.value),ri.getHighlighted(Mr).orThunk(()=>(ri.highlightFirst(Mr),I.none()))})})};AC(s,qe(on),on,wn,ue,Br,Xh.HighlightJustMenu).get(v)}},cancelEvent:Px()}),Li.config({mode:"special",onDown:(on,yn)=>(we(on,yn,ri.highlightFirst),I.some(!0)),onEscape:on=>{const yn=lu.getCoupled(on,"sandbox");return hs.isOpen(yn)?(hs.close(yn),I.some(!0)):I.none()},onUp:(on,yn)=>(we(on,yn,ri.highlightLast),I.some(!0)),onEnter:on=>{const yn=lu.getCoupled(on,"sandbox"),wn=hs.isOpen(yn);if(wn&&!s.previewing.get())return ft(yn).bind(Mn=>ri.getHighlighted(Mn)).map(Mn=>(Ri(on,_9(),{item:Mn}),!0));{const Mn=hi.getValue(on);return Sa(on,Px()),s.onExecute(yn,on,Mn),wn&&hs.close(yn),I.some(!0)}}}),za.config({toggleClass:s.markers.openClass,aria:{mode:"expanded"}}),lu.config({others:{sandbox:on=>bP(s,on,{onOpen:()=>za.on(on),onClose:()=>{s.lazyTypeaheadComp.get().each(yn=>po(yn.element,"aria-activedescendant")),za.off(on)}})}}),Ta(gt,[Ll(on=>{s.lazyTypeaheadComp.set(I.some(on))}),Sh(on=>{s.lazyTypeaheadComp.set(I.none())}),$p(on=>{const yn=v;vP(s,qe(on),on,ue,yn,Xh.HighlightMenuAndItem).get(v)}),fo(_9(),(on,yn)=>{const wn=lu.getCoupled(on,"sandbox");i8(s.model,on,yn.event.item),Sa(on,Px()),s.onItemExecute(on,wn,yn.event.item,hi.getValue(on)),hs.close(wn),nV(on)})].concat(s.dismissOnBlur?[fo(Xg(),on=>{const yn=lu.getCoupled(on,"sandbox");xd(yn.element).isNone()&&hs.close(yn)})]:[]))],$t={[fp()]:[hi.name(),x9.name(),gt],...s.eventOrder};return{uid:s.uid,dom:D7(nl(s,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...Be,...Pf(s.typeaheadBehaviours,At)},eventOrder:$t}},gJ=x([Hr("lazySink"),Sn("fetch"),mr("minChars",5),mr("responseTime",1e3),Ra("onOpen"),mr("getHotspot",I.some),mr("getAnchorOverrides",x({})),mr("layouts",I.none()),mr("eventOrder",{}),ol("model",{},[mr("getDisplayText",s=>s.meta!==void 0&&s.meta.text!==void 0?s.meta.text:s.value),mr("selectsOver",!0),mr("populateFromBrowse",!0)]),Ra("onSetValue"),yd("onExecute"),Ra("onItemExecute"),mr("inputClasses",[]),mr("inputAttributes",{}),mr("inputStyles",{}),mr("matchWidth",!0),mr("useMinWidth",!1),mr("dismissOnBlur",!0),jp(["openClass"]),Hr("initialData"),Hr("listRole"),Ef("typeaheadBehaviours",[oa,hi,x9,Li,za,lu]),On("lazyTypeaheadComp",()=>xi(I.none)),On("previewing",()=>xi(!0))].concat(L7()).concat(MC())),vJ=x([Um({schema:[U0()],name:"menu",overrides:s=>({fakeFocus:!0,onHighlightItem:(F,Z,ue)=>{s.previewing.get()?s.lazyTypeaheadComp.get().each(we=>{rV(s.model,we,ue).fold(()=>{s.model.selectsOver?(ri.dehighlight(Z,ue),s.previewing.set(!0)):s.previewing.set(!1)},Be=>{Be(),s.previewing.set(!1)})}):s.lazyTypeaheadComp.get().each(we=>{s.model.populateFromBrowse&&i8(s.model,we,ue),co(ue.element,"id").each(Be=>fr(we.element,"aria-activedescendant",Be))})},onExecute:(F,Z)=>s.lazyTypeaheadComp.get().map(ue=>(Ri(ue,_9(),{item:Z}),!0)),onHover:(F,Z)=>{s.previewing.set(!1),s.lazyTypeaheadComp.get().each(ue=>{s.model.populateFromBrowse&&i8(s.model,ue,Z)})}})})]),yJ=ch({name:"Typeahead",configFields:gJ(),partFields:vJ(),factory:mJ}),u1=s=>({...s,toCached:()=>u1(s.toCached()),bindFuture:gt=>u1(s.bind(At=>At.fold($t=>uh.pure(Hi.error($t)),$t=>gt($t)))),bindResult:gt=>u1(s.map(At=>At.bind(gt))),mapResult:gt=>u1(s.map(At=>At.map(gt))),mapError:gt=>u1(s.map(At=>At.mapError(gt))),foldResult:(gt,At)=>s.map($t=>$t.fold(gt,At)),withTimeout:(gt,At)=>u1(uh.nu($t=>{let on=!1;const yn=setTimeout(()=>{on=!0,$t(Hi.error(At()))},gt);s.get(wn=>{on||(clearTimeout(yn),$t(wn))})}))}),w9=s=>u1(uh.nu(s)),oV=s=>u1(uh.pure(Hi.value(s))),O9={nu:w9,wrap:u1,pure:oV,value:oV,error:s=>u1(uh.pure(Hi.error(s))),fromResult:s=>u1(uh.pure(s)),fromFuture:s=>u1(s.map(Hi.value)),fromPromise:s=>w9(F=>{s.then(Z=>{F(Hi.value(Z))},Z=>{F(Hi.error(Z))})})},a8=(s,F,Z=[],ue,we,Be,qe)=>{const ft=F.fold(()=>({}),$t=>({action:$t})),gt={buttonBehaviours:Do([s1.button(()=>!s.enabled||qe.isDisabled()),df(),Wl.config({}),...Be.map($t=>kd.config(qe.tooltips.getConfig({tooltipText:qe.translate($t)}))).toArray(),Ta("button press",[B0("click"),B0("mousedown")])].concat(Z)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...ft},At=nl(gt,{dom:ue});return nl(At,{components:we})},iV=(s,F,Z,ue=[],we)=>{const Be=s.tooltip.map(At=>({"aria-label":Z.translate(At)})).getOr({}),qe={tag:"button",classes:["tox-tbtn"],attributes:{...Be,"data-mce-name":we}},ft=s.icon.map(At=>t8(At,Z.icons)),gt=jw([ft]);return a8(s,F,ue,qe,gt,s.tooltip,Z)},s8=s=>{switch(s){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},aV=(s,F,Z,ue=[],we=[])=>{const Be=Z.translate(s.text),qe=s.icon.map(wn=>t8(wn,Z.icons)),ft=[qe.getOrThunk(()=>ro(Be))],gt=s.buttonType.getOr(!s.primary&&!s.borderless?"secondary":"primary"),on={tag:"button",classes:[...s8(gt),...qe.isSome()?["tox-button--icon"]:[],...s.borderless?["tox-button--naked"]:[],...we],attributes:{"aria-label":Be,"data-mce-name":s.text}},yn=s.icon.map(x(Be));return a8(s,F,ue,on,ft,yn,Z)},S9=(s,F,Z,ue=[],we=[])=>{const Be=aV(s,I.some(F),Z,ue,we);return Vd.sketch(Be)},sV=(s,F)=>Z=>{F==="custom"?Ri(Z,Dy,{name:s,value:{}}):F==="submit"?Sa(Z,c4):F==="cancel"?Sa(Z,I2):console.error("Unknown button type: ",F)},wJ=(s,F)=>F==="menu",wv=(s,F)=>F==="custom"||F==="cancel"||F==="submit",l8=(s,F)=>F==="togglebutton",c8=(s,F,Z)=>{var ue,we;const Be=s.icon.map(kr=>ax(kr,F.icons)).map(qs),qe=kr=>{Ri(kr,Dy,{name:s.name,value:{setIcon:yo=>{Be.map(Xr=>Xr.getOpt(kr).each(No=>{da.set(No,[ax(yo,F.icons)])}))}}})},ft=s.buttonType.getOr(s.primary?"primary":"secondary"),gt={...s,name:(ue=s.name)!==null&&ue!==void 0?ue:"",primary:ft==="primary",tooltip:s.tooltip,enabled:(we=s.enabled)!==null&&we!==void 0?we:!1,borderless:!1},At=gt.tooltip.or(s.text).map(kr=>({"aria-label":F.translate(kr)})).getOr({}),$t=s8(ft??"secondary"),on=s.icon.isSome()&&s.text.isSome(),yn={tag:"button",classes:[...$t.concat(s.icon.isSome()?["tox-button--icon"]:[]),...s.active?["tox-button--enabled"]:[],...on?["tox-button--icon-and-text"]:[]],attributes:{...At,...a(Z)?{"data-mce-name":Z}:{}}},wn=[],Mn=F.translate(s.text.getOr("")),Xn=ro(Mn),or=[...jw([Be.map(kr=>kr.asSpec())]),...s.text.isSome()?[Xn]:[]],Mr=a8(gt,I.some(qe),wn,yn,or,s.tooltip,F);return Vd.sketch(Mr)},u8=(s,F,Z)=>{if(wJ(s,F)){const ue=()=>qe,we=s,Be={...s,type:"menubutton",search:I.none(),onSetup:ft=>(ft.setEnabled(s.enabled),v),fetch:K$(we.items,ue,Z)},qe=qs(mk(Be,"tox-tbtn",Z,I.none(),!0,s.text.or(s.tooltip).getOrUndefined()));return qe.asSpec()}else if(wv(s,F)){const ue=sV(s.name,F),we={...s,borderless:!1};return S9(we,ue,Z.shared.providers,[])}else{if(l8(s,F))return c8(s,Z.shared.providers,s.text.or(s.tooltip).getOrUndefined());throw console.error("Unknown footer button type: ",F),new Error("Unknown footer button type")}},k9=(s,F)=>{const Z=sV(s.name,"custom");return bG(I.none(),Js.parts.field({factory:Vd,...aV(s,I.some(Z),F,[WC(""),y0.self()])}))},OJ={type:"separator"},T9=s=>({type:"menuitem",value:s.url,text:s.title,meta:{attach:s.attach},onAction:v}),f8=(s,F)=>({type:"menuitem",value:F,text:s,meta:{attach:void 0},onAction:v}),C9=s=>oe(s,T9),SJ=(s,F)=>me(F,Z=>Z.type===s),lV=(s,F)=>C9(SJ(s,F)),cV=s=>lV("header",s.targets),kJ=s=>lV("anchor",s.targets),TJ=s=>I.from(s.anchorTop).map(F=>f8("",F)).toArray(),A9=s=>I.from(s.anchorBottom).map(F=>f8("",F)).toArray(),CJ=s=>oe(s,F=>f8(F,F)),AJ=s=>se(s,(F,Z)=>F.length===0||Z.length===0?F.concat(Z):F.concat(OJ,Z),[]),d8=(s,F)=>{const Z=s.toLowerCase();return me(F,ue=>{var we;const Be=ue.meta!==void 0&&ue.meta.text!==void 0?ue.meta.text:ue.text,qe=(we=ue.value)!==null&&we!==void 0?we:"";return bt(Be.toLowerCase(),Z)||bt(qe.toLowerCase(),Z)})},uV=(s,F,Z)=>{var ue,we;const Be=hi.getValue(F),qe=(we=(ue=Be==null?void 0:Be.meta)===null||ue===void 0?void 0:ue.text)!==null&&we!==void 0?we:Be.value;return Z.getLinkInformation().fold(()=>[],gt=>{const At=d8(qe,CJ(Z.getHistory(s)));return s==="file"?AJ([At,d8(qe,cV(gt)),d8(qe,ve([TJ(gt),kJ(gt),A9(gt)]))]):At})},fV=fi("aria-invalid"),MJ=(s,F,Z,ue)=>{const we=F.shared.providers,Be=Mr=>{const kr=hi.getValue(Mr);Z.addToHistory(kr.value,s.filetype)},qe={...ue.map(Mr=>({initialData:Mr})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":fV,type:"url"},minChars:0,responseTime:0,fetch:Mr=>{const kr=uV(s.filetype,Mr,Z),yo=v4(kr,r1.BUBBLE_TO_SANDBOX,F,{isHorizontalMenu:!1,search:I.none()});return uh.pure(yo)},getHotspot:Mr=>Mn.getOpt(Mr),onSetValue:(Mr,kr)=>{Mr.hasConfigured(By)&&By.run(Mr).get(v)},typeaheadBehaviours:Do([...Z.getValidationHandler().map(Mr=>By.config({getRoot:kr=>Cr(kr.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(kr,yo)=>{$t.getOpt(kr).each(Xr=>{fr(Xr.element,"title",we.translate(yo))})}},validator:{validate:kr=>{const yo=hi.getValue(kr);return O9.nu(Xr=>{Mr({type:s.filetype,url:yo.value},No=>{if(No.status==="invalid"){const Jo=Hi.error(No.message);Xr(Jo)}else{const Jo=Hi.value(No.message);Xr(Jo)}})})},validateOnLoad:!1}})).toArray(),ea.config({disabled:()=>!s.enabled||we.isDisabled()}),Wl.config({}),Ta("urlinput-events",[fo(cg(),Mr=>{const kr=qr(Mr.element),yo=kr.trim();yo!==kr&&N(Mr.element,yo),s.filetype==="file"&&Ri(Mr,tm,{name:s.name})}),fo(Zv(),Mr=>{Ri(Mr,tm,{name:s.name}),Be(Mr)}),fo(Gg(),Mr=>{Ri(Mr,tm,{name:s.name}),Be(Mr)})])]),eventOrder:{[cg()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:Mr=>Mr.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:F.shared.getSink,parts:{menu:F5(!1,1,"normal")},onExecute:(Mr,kr,yo)=>{Ri(kr,c4,{})},onItemExecute:(Mr,kr,yo,Xr)=>{Be(Mr),Ri(Mr,tm,{name:s.name})}},ft=Js.parts.field({...qe,factory:yJ}),gt=s.label.map(Mr=>L2(Mr,we)),$t=qs(((Mr,kr,yo=Mr,Xr=Mr)=>em(yo,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Mr],attributes:{title:we.translate(Xr),"aria-live":"polite",...kr.fold(()=>({}),No=>({id:No}))}},we.icons))("invalid",I.some(fV),"warning")),on=qs({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[$t.asSpec()]}),yn=Z.getUrlPicker(s.filetype),wn=fi("browser.url.event"),Mn=qs({dom:{tag:"div",classes:["tox-control-wrap"]},components:[ft,on.asSpec()],behaviours:Do([ea.config({disabled:()=>!s.enabled||we.isDisabled()})])}),Xn=qs(S9({name:s.name,icon:I.some("browse"),text:s.picker_text.or(s.label).getOr(""),enabled:s.enabled,primary:!1,buttonType:I.none(),borderless:!0},Mr=>Sa(Mr,wn),we,[],["tox-browse-url"])),Br=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ve([[Mn.asSpec()],yn.map(()=>Xn.asSpec()).toArray()])}),or=Mr=>{as.getCurrent(Mr).each(kr=>{const yo=hi.getValue(kr),Xr={fieldname:s.name,...yo};yn.each(No=>{No(Xr).get(Jo=>{hi.setValue(kr,Jo),Ri(Mr,tm,{name:s.name})})})})};return Js.sketch({dom:_G(),components:gt.toArray().concat([Br()]),fieldBehaviours:Do([ea.config({disabled:()=>!s.enabled||we.isDisabled(),onDisabled:Mr=>{Js.getField(Mr).each(ea.disable),Xn.getOpt(Mr).each(ea.disable)},onEnabled:Mr=>{Js.getField(Mr).each(ea.enable),Xn.getOpt(Mr).each(ea.enable)}}),df(),Ta("url-input-events",[fo(wn,or)])])})},EJ=(s,F)=>{const Z=Az(s.icon,F.icons);return bv.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${s.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:s.url?void 0:Z},components:s.url?[Vd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:Z,attributes:{title:F.translate(s.iconTooltip)}},action:ue=>Ri(ue,Dy,{name:"alert-banner",value:s.url}),buttonBehaviours:Do([S7()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:F.translate(s.text)}}]})},PJ=(s,F)=>{s.dom.checked=F},dV=s=>s.dom.checked,Ov=(s,F,Z)=>{const ue=gt=>(gt.element.dom.click(),I.some(!0)),we=Js.parts.field({factory:{sketch:R},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:Do([y0.self(),ea.config({disabled:()=>!s.enabled||F.isDisabled(),onDisabled:gt=>{Cr(gt.element).each(At=>wl(At,"tox-checkbox--disabled"))},onEnabled:gt=>{Cr(gt.element).each(At=>fc(At,"tox-checkbox--disabled"))}}),Wl.config({}),oa.config({}),f$(Z,dV,PJ),Li.config({mode:"special",onEnter:ue,onSpace:ue,stopSpaceKeyup:!0}),Ta("checkbox-events",[fo(Zv(),(gt,At)=>{Ri(gt,tm,{name:s.name})})])])}),Be=Js.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[ro(F.translate(s.label))],behaviours:Do([u4.config({})])}),qe=gt=>em(gt==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+gt]},F.icons),ft=qs({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[qe("checked"),qe("unchecked")]});return Js.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[we,ft.asSpec(),Be],fieldBehaviours:Do([ea.config({disabled:()=>!s.enabled||F.isDisabled()}),df()])})},M9=(s,F)=>{const Z=["tox-form__group",...s.stretched?["tox-form__group--stretched"]:[]],ue=Ta("htmlpanel",[Ll(we=>{s.onInit(we.element.dom)})]);return s.presets==="presentation"?bv.sketch({dom:{tag:"div",classes:Z,innerHtml:s.html},containerBehaviours:Do([kd.config({...F.tooltips.getConfig({tooltipText:"",onShow:we=>{aa(we.element,"[data-mce-tooltip]:hover").orThunk(()=>xd(we.element)).each(Be=>{co(Be,"data-mce-tooltip").each(qe=>{kd.setComponents(we,F.tooltips.getComponents({tooltipText:qe}))})})}}),mode:"children-normal",anchor:we=>({type:"node",node:aa(we.element,"[data-mce-tooltip]:hover").orThunk(()=>xd(we.element).filter(Be=>co(Be,"data-mce-tooltip").isSome())),root:we.element,layouts:{onLtr:x([Pc,Jc,Ec,Hc,Qc,_s]),onRtl:x([Pc,Jc,Ec,Hc,Qc,_s])},bubble:pp(0,-2,{})})}),ue])}):bv.sketch({dom:{tag:"div",classes:Z,innerHtml:s.html,attributes:{role:"document"}},containerBehaviours:Do([Wl.config({}),oa.config({}),ue])})},Rf=s=>(F,Z,ue,we,Be)=>Ge(Z,"name").fold(()=>s(Z,we,I.none(),Be),qe=>F.field(qe,s(Z,we,Ge(ue,qe),Be))),RJ=s=>(F,Z,ue,we,Be)=>{const qe=nl(Z,{source:"dynamic"});return Rf(s)(F,qe,ue,we,Be)},LJ={bar:Rf((s,F)=>LC(s,F.shared)),collection:Rf((s,F,Z)=>wG(s,F.shared.providers,Z)),alertbanner:Rf((s,F)=>EJ(s,F.shared.providers)),input:Rf((s,F,Z)=>V$(s,F.shared.providers,Z)),textarea:Rf((s,F,Z)=>U$(s,F.shared.providers,Z)),label:Rf((s,F,Z,ue)=>PK(s,F.shared,ue)),iframe:RJ((s,F,Z)=>AK(s,F.shared.providers,Z)),button:Rf((s,F)=>k9(s,F.shared.providers)),checkbox:Rf((s,F,Z)=>Ov(s,F.shared.providers,Z)),colorinput:Rf((s,F,Z)=>kN(s,F.shared,F.colorinput,Z)),colorpicker:Rf((s,F,Z)=>yK(s,F.shared.providers,Z)),dropzone:Rf((s,F,Z)=>m$(s,F.shared.providers,Z)),grid:Rf((s,F)=>g$(s,F.shared)),listbox:Rf((s,F,Z)=>u9(s,F,Z)),selectbox:Rf((s,F,Z)=>z$(s,F.shared.providers,Z)),sizeinput:Rf((s,F)=>N$(s,F.shared.providers)),slider:Rf((s,F,Z)=>ZK(s,F.shared.providers,Z)),urlinput:Rf((s,F,Z)=>MJ(s,F,F.urlinput,Z)),customeditor:Rf(YC),htmlpanel:Rf((s,F)=>M9(s,F.shared.providers)),imagepreview:Rf((s,F,Z)=>EK(s,Z)),table:Rf((s,F)=>qK(s,F.shared.providers)),tree:Rf((s,F)=>lJ(s,F)),panel:Rf((s,F)=>zK(s,F))},IJ={field:(s,F)=>F,record:x([])},hV=(s,F,Z,ue,we)=>{const Be=nl(ue,{shared:{interpreter:qe=>h8(s,qe,Z,Be,we)}});return h8(s,F,Z,Be,we)},h8=(s,F,Z,ue,we)=>Ge(LJ,F.type).fold(()=>(console.error(`Unknown factory type "${F.type}", defaulting to container: `,F),F),Be=>Be(s,F,Z,ue,we)),E9=(s,F,Z,ue)=>h8(IJ,s,F,Z,ue),oO="layout-inset",pV=s=>s.x,Ud=(s,F)=>s.x+s.width/2-F.width/2,gk=(s,F)=>s.x+s.width-F.width,P9=s=>s.y,x4=(s,F)=>s.y+s.height-F.height,mV=(s,F)=>s.y+s.height/2-F.height/2,p8=(s,F,Z)=>pl(gk(s,F),x4(s,F),Z.insetSouthwest(),Ac(),"southwest",il(s,{right:0,bottom:3}),oO),m8=(s,F,Z)=>pl(pV(s),x4(s,F),Z.insetSoutheast(),Vs(),"southeast",il(s,{left:1,bottom:3}),oO),vk=(s,F,Z)=>pl(gk(s,F),P9(s),Z.insetNorthwest(),is(),"northwest",il(s,{right:0,top:2}),oO),yk=(s,F,Z)=>pl(pV(s),P9(s),Z.insetNortheast(),jc(),"northeast",il(s,{left:1,top:2}),oO),f1=(s,F,Z)=>pl(Ud(s,F),P9(s),Z.insetNorth(),Bl(),"north",il(s,{top:2}),oO),bk=(s,F,Z)=>pl(Ud(s,F),x4(s,F),Z.insetSouth(),Uo(),"south",il(s,{bottom:3}),oO),gV=(s,F,Z)=>pl(gk(s,F),mV(s,F),Z.insetEast(),Xs(),"east",il(s,{right:0}),oO),R9=(s,F,Z)=>pl(pV(s),mV(s,F),Z.insetWest(),ql(),"west",il(s,{left:1}),oO),g8=s=>{switch(s){case"north":return f1;case"northeast":return yk;case"northwest":return vk;case"south":return bk;case"southeast":return m8;case"southwest":return p8;case"east":return gV;case"west":return R9}},L9=(s,F,Z,ue,we)=>Ab(ue).map(g8).getOr(f1)(s,F,Z,ue,we),vV=s=>{switch(s){case"north":return bk;case"northeast":return m8;case"northwest":return p8;case"south":return f1;case"southeast":return yk;case"southwest":return vk;case"east":return R9;case"west":return gV}},DJ=(s,F,Z,ue,we)=>Ab(ue).map(vV).getOr(f1)(s,F,Z,ue,we),_4={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},BJ=(s,F,Z)=>{const we={maxHeightFunction:W0()},Be=()=>({type:"node",root:nr(vr(s())),node:I.from(s()),bubble:pp(12,12,_4),layouts:{onRtl:()=>[yk],onLtr:()=>[vk]},overrides:we}),qe=()=>({type:"hotspot",hotspot:F(),bubble:pp(-12,12,_4),layouts:{onRtl:()=>[Ec,Qc,Pc],onLtr:()=>[Qc,Ec,Pc]},overrides:we});return()=>Z()?Be():qe()},zJ=(s,F,Z,ue)=>{const Be={maxHeightFunction:W0()},qe=()=>({type:"node",root:nr(vr(F())),node:I.from(F()),bubble:pp(12,12,_4),layouts:{onRtl:()=>[f1],onLtr:()=>[f1]},overrides:Be}),ft=()=>s?{type:"node",root:nr(vr(F())),node:I.from(F()),bubble:pp(0,-Ed(F()),_4),layouts:{onRtl:()=>[Jc],onLtr:()=>[Jc]},overrides:Be}:{type:"hotspot",hotspot:Z(),bubble:pp(0,0,_4),layouts:{onRtl:()=>[Jc],onLtr:()=>[Jc]},overrides:Be};return()=>ue()?qe():ft()},yV=(s,F,Z)=>{const ue=()=>({type:"node",root:nr(vr(s())),node:I.from(s()),layouts:{onRtl:()=>[f1],onLtr:()=>[f1]}}),we=()=>({type:"hotspot",hotspot:F(),layouts:{onRtl:()=>[Pc],onLtr:()=>[Pc]}});return()=>Z()?ue():we()},mfe=(s,F)=>()=>({type:"selection",root:F(),getSelection:()=>{const Z=s.selection.getRng(),ue=s.model.table.getSelectedCells();if(ue.length>1){const we=ue[0],Be=ue[ue.length-1],qe={firstCell:Pt.fromDom(we),lastCell:Pt.fromDom(Be)};return I.some(qe)}return I.some(c2.range(Pt.fromDom(Z.startContainer),Z.startOffset,Pt.fromDom(Z.endContainer),Z.endOffset))}}),gfe=s=>F=>({type:"node",root:s(),node:F}),FJ=(s,F,Z,ue)=>{const we=q3(s),Be=()=>Pt.fromDom(s.getBody()),qe=()=>Pt.fromDom(s.getContentAreaContainer()),ft=()=>we||!ue();return{inlineDialog:BJ(qe,F,ft),inlineBottomDialog:zJ(s.inline,qe,Z,ft),banner:yV(qe,F,ft),cursor:mfe(s,Be),node:gfe(Be)}},NJ=s=>(F,Z)=>{YF(s)(F,Z)},$J=s=>()=>$F(s),bV=s=>F=>TC(s,F),I9=s=>F=>NF(s,F),VJ=s=>({colorPicker:NJ(s),hasCustomColors:$J(s),getColors:bV(s),getColorCols:I9(s)}),UJ=s=>()=>cz(s),xV=s=>({isDraggableModal:UJ(s)}),jJ=s=>{const F=xi(Gb(s)?"bottom":"top");return{isPositionedAtTop:()=>F.get()==="top",getDockingMode:F.get,setDockingMode:F.set}},_V=s=>pt(s,"items"),wV=s=>pt(s,"format"),OV=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],D9=s=>ht(s,"items"),SV=s=>ht(s,"block"),QJ=s=>ht(s,"inline"),HJ=s=>ht(s,"selector"),kV=s=>se(s,(F,Z)=>{if(D9(Z)){const ue=kV(Z.items);return{customFormats:F.customFormats.concat(ue.customFormats),formats:F.formats.concat([{title:Z.title,items:ue.formats}])}}else if(QJ(Z)||SV(Z)||HJ(Z)){const we=`custom-${n(Z.name)?Z.name:Z.title.toLowerCase()}`;return{customFormats:F.customFormats.concat([{name:we,format:Z}]),formats:F.formats.concat([{title:Z.title,format:we,icon:Z.icon}])}}else return{...F,formats:F.formats.concat(Z)}},{customFormats:[],formats:[]}),ZJ=(s,F)=>{const Z=kV(F),ue=we=>{q(we,Be=>{s.formatter.has(Be.name)||s.formatter.register(Be.name,Be.format)})};return s.formatter?ue(Z.customFormats):s.on("init",()=>{ue(Z.customFormats)}),Z.formats},B9=s=>ez(s).map(F=>{const Z=ZJ(s,F);return tz(s)?OV.concat(Z):Z}).getOr(OV),qJ=s=>{const F=ke(s);return F.length===1&&X(F,"title")},xk=(s,F,Z)=>({...s,type:"formatter",isSelected:F(s.format),getStylePreview:Z(s.format)}),TV=(s,F,Z,ue)=>{const we=gt=>xk(gt,Z,ue),Be=gt=>{const At=ft(gt.items);return{...gt,type:"submenu",getStyleItems:x(At)}},qe=gt=>{const At=n(gt.name)?gt.name:fi(gt.title),$t=`custom-${At}`,on={...gt,type:"formatter",format:$t,isSelected:Z($t),getStylePreview:ue($t)};return s.formatter.register(At,on),on},ft=gt=>oe(gt,At=>_V(At)?Be(At):wV(At)?we(At):qJ(At)?{...At,type:"separator"}:qe(At));return ft(F)},v8=s=>{const F=ft=>()=>s.formatter.match(ft),Z=ft=>()=>{const gt=s.formatter.get(ft);return gt!==void 0?I.some({tag:gt.length>0&&(gt[0].inline||gt[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(ft))}):I.none()},ue=xi([]),we=xi([]),Be=xi(!1);return s.on("PreInit",ft=>{const gt=B9(s),At=TV(s,gt,F,Z);ue.set(At)}),s.on("addStyleModifications",ft=>{const gt=TV(s,ft.items,F,Z);we.set(gt),Be.set(ft.replace)}),{getData:()=>{const ft=Be.get()?[]:ue.get(),gt=we.get();return ft.concat(gt)}}},WJ=s=>{let ue=0;const we=()=>ue>0,Be=ft=>[{dom:{tag:"div",classes:["tox-tooltip__body"]},components:[ro(ft.tooltipText)]}];return{getConfig:ft=>({delayForShow:()=>we()?60:300,delayForHide:x(300),exclusive:!0,lazySink:s,tooltipDom:{tag:"div",classes:["tox-tooltip","tox-tooltip--up"]},tooltipComponents:Be(ft),onShow:(gt,At)=>{ue++,ft.onShow&&ft.onShow(gt,At)},onHide:(gt,At)=>{ue--,ft.onHide&&ft.onHide(gt,At)}}),getComponents:Be}},z9=s=>a(s)&&s.nodeType===1,_k=ox.trim,F9=s=>F=>!!(z9(F)&&(F.contentEditable===s||F.getAttribute("data-mce-contenteditable")===s)),YJ=F9("true"),CV=F9("false"),N9=(s,F,Z,ue,we)=>({type:s,title:F,url:Z,level:ue,attach:we}),AV=s=>{let F=s;for(;F=F.parentNode;){const Z=F.contentEditable;if(Z&&Z!=="inherit")return YJ(F)}return!1},XJ=(s,F)=>oe($d(Pt.fromDom(F),s),Z=>Z.dom),y8=s=>s.innerText||s.textContent,b8=s=>s.id?s.id:fi("h"),GJ=s=>s&&s.nodeName==="A"&&(s.id||s.name)!==void 0,KJ=s=>GJ(s)&&$9(s),iO=s=>s&&/^(H[1-6])$/.test(s.nodeName),$9=s=>AV(s)&&!CV(s),JJ=s=>iO(s)&&$9(s),MV=s=>iO(s)?parseInt(s.nodeName.substr(1),10):0,V9=s=>{var F;const Z=b8(s),ue=()=>{s.id=Z};return N9("header",(F=y8(s))!==null&&F!==void 0?F:"","#"+Z,MV(s),ue)},U9=s=>{const F=s.id||s.name,Z=y8(s);return N9("anchor",Z||"#"+F,"#"+F,0,v)},eee=s=>oe(me(s,JJ),V9),tee=s=>oe(me(s,KJ),U9),nee=s=>XJ("h1,h2,h3,h4,h5,h6,a:not([href])",s),j9=s=>_k(s.title).length>0,ree={find:s=>{const F=nee(s);return me(eee(F).concat(tee(F)),j9)}},x8="tinymce-url-history",EV=5,PV=s=>n(s)&&/^https?/.test(s),oee=s=>i(s)&&s.length<=EV&&_e(s,PV),RV=s=>c(s)&&nt(s,F=>!oee(F)).isNone(),Q9=()=>{const s=qw.getItem(x8);if(s===null)return{};let F;try{F=JSON.parse(s)}catch(Z){if(Z instanceof SyntaxError)return console.log("Local storage "+x8+" was not valid JSON",Z),{};throw Z}return RV(F)?F:(console.log("Local storage "+x8+" was not valid format",F),{})},iee=s=>{if(!RV(s))throw new Error(`Bad format for history: -`+JSON.stringify(s));qw.setItem(x8,JSON.stringify(s))},wk=s=>{const F=Q9();return Ge(F,s).getOr([])},aee=(s,F)=>{if(!PV(s))return;const Z=Q9(),ue=Ge(Z,F).getOr([]),we=me(ue,Be=>Be!==s);Z[F]=[s].concat(we).slice(0,EV),iee(Z)},LV=s=>!!s,H9=s=>Ue(ox.makeMap(s,/[, ]/),LV),_8=s=>I.from(az(s)),see=s=>{const F=I.from(e7(s)).filter(LV).map(H9);return _8(s).fold(D,Z=>F.fold(k,ue=>ke(ue).length>0?ue:!1))},lee=(s,F)=>{const Z=see(s);return w(Z)?Z?_8(s):I.none():Z[F]?_8(s):I.none()},cee=(s,F)=>lee(s,F).map(Z=>ue=>uh.nu(we=>{const Be=(ft,gt)=>{if(!n(ft))throw new Error("Expected value to be string");if(gt!==void 0&&!c(gt))throw new Error("Expected meta to be a object");we({value:ft,meta:gt})},qe={filetype:F,fieldname:ue.fieldname,...I.from(ue.meta).getOr({})};Z.call(s,Be,ue.value,qe)})),IV=s=>I.from(s).filter(n).getOrUndefined(),uee=s=>sz(s)?I.some({targets:ree.find(s.getBody()),anchorTop:IV(I6(s)),anchorBottom:IV(lz(s))}):I.none(),fee=s=>I.from(L6(s)),dee=s=>({getHistory:wk,addToHistory:aee,getLinkInformation:()=>uee(s),getValidationHandler:()=>fee(s),getUrlPicker:F=>cee(s,F)}),hee=(s,F,Z,ue)=>{const we=xi(!1),Be=jJ(F),qe={icons:()=>F.ui.registry.getAll().icons,menuItems:()=>F.ui.registry.getAll().menuItems,translate:Cg.translate,isDisabled:()=>F.mode.isReadOnly()||!F.ui.isEnabled(),getOption:F.options.get,tooltips:WJ(s.dialog)},ft=dee(F),gt=v8(F),At=VJ(F),$t=xV(F),on=()=>we.get(),yn=or=>we.set(or),wn={shared:{providers:qe,anchors:FJ(F,Z,ue,Be.isPositionedAtTop),header:Be},urlinput:ft,styles:gt,colorinput:At,dialog:$t,isContextMenuOpen:on,setContextMenuState:yn},Mn=or=>I.none(),Xn={...wn,shared:{...wn.shared,interpreter:or=>E9(or,{},Xn,Mn),getSink:s.popup}},Br={...wn,shared:{...wn.shared,interpreter:or=>E9(or,{},Br,Mn),getSink:s.dialog}};return{popup:Xn,dialog:Br}},pee=(s,F,Z)=>{const ue=(ho,Ci)=>{q([F,...Z],mi=>{mi.broadcastEvent(ho,Ci)})},we=(ho,Ci)=>{q([F,...Z],mi=>{mi.broadcastOn([ho],Ci)})},Be=ho=>we(K0(),{target:ho.target}),qe=of(),ft=_d(qe,"touchstart",Be),gt=_d(qe,"touchmove",ho=>ue(Kg(),ho)),At=_d(qe,"touchend",ho=>ue(M_(),ho)),$t=_d(qe,"mousedown",Be),on=_d(qe,"mouseup",ho=>{ho.raw.button===0&&we(pw(),{target:ho.target})}),yn=ho=>we(K0(),{target:Pt.fromDom(ho.target)}),wn=ho=>{ho.button===0&&we(pw(),{target:Pt.fromDom(ho.target)})},Mn=()=>{q(s.editorManager.get(),ho=>{s!==ho&&ho.dispatch("DismissPopups",{relatedTarget:s})})},Xn=ho=>ue(S1(),Jx(ho)),Br=ho=>{we(jb(),{}),ue(Tm(),Jx(ho))},or=vr(Pt.fromDom(s.getElement())),Mr=Kx(or,"scroll",ho=>{requestAnimationFrame(()=>{const Ci=s.getContainer();if(Ci!=null){const qi=Kb(s,F.element).map(Fi=>[Fi.element,...Fi.others]).getOr([]);te(qi,Fi=>so(Fi,ho.target))&&(s.dispatch("ElementScroll",{target:ho.target.dom}),ue(k1(),ho))}})}),kr=()=>we(jb(),{}),yo=ho=>{ho.state&&we(K0(),{target:Pt.fromDom(s.getContainer())})},Xr=ho=>{we(K0(),{target:Pt.fromDom(ho.relatedTarget.getContainer())})},No=ho=>s.dispatch("focusin",ho),Jo=ho=>s.dispatch("focusout",ho);s.on("PostRender",()=>{s.on("click",yn),s.on("tap",yn),s.on("mouseup",wn),s.on("mousedown",Mn),s.on("ScrollWindow",Xn),s.on("ResizeWindow",Br),s.on("ResizeEditor",kr),s.on("AfterProgressState",yo),s.on("DismissPopups",Xr),q([F,...Z],ho=>{ho.element.dom.addEventListener("focusin",No),ho.element.dom.addEventListener("focusout",Jo)})}),s.on("remove",()=>{s.off("click",yn),s.off("tap",yn),s.off("mouseup",wn),s.off("mousedown",Mn),s.off("ScrollWindow",Xn),s.off("ResizeWindow",Br),s.off("ResizeEditor",kr),s.off("AfterProgressState",yo),s.off("DismissPopups",Xr),q([F,...Z],ho=>{ho.element.dom.removeEventListener("focusin",No),ho.element.dom.removeEventListener("focusout",Jo)}),$t.unbind(),ft.unbind(),gt.unbind(),At.unbind(),on.unbind(),Mr.unbind()}),s.on("detach",()=>{q([F,...Z],qS),q([F,...Z],ho=>ho.destroy())})},Td=l6,$y=r6,DV=x([mr("shell",!1),Sn("makeItem"),mr("setupItem",v),Vm.field("listBehaviours",[da])]),w8=Jp({name:"items",overrides:()=>({behaviours:Do([da.config({})])})}),BV=x([w8]),gee=x("CustomList"),vee=(s,F,Z,ue)=>{const we=(ft,gt)=>{qe(ft).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},At=>{const $t=da.contents(At),on=gt.length,yn=on-$t.length,wn=yn>0?W(yn,()=>s.makeItem()):[],Mn=$t.slice(on);q(Mn,Br=>da.remove(At,Br)),q(wn,Br=>da.append(At,Br));const Xn=da.contents(At);q(Xn,(Br,or)=>{s.setupItem(ft,Br,gt[or],or)})})},Be=s.shell?{behaviours:[da.config({})],components:[]}:{behaviours:[],components:F},qe=ft=>s.shell?I.some(ft):Fo(ft,s,"items");return{uid:s.uid,dom:s.dom,components:Be.components,behaviours:Pf(s.listBehaviours,Be.behaviours),apis:{setItems:we}}},zV=ch({name:gee(),configFields:DV(),partFields:BV(),factory:vee,apis:{setItems:(s,F,Z)=>{s.setItems(F,Z)}}}),w4=x([Sn("dom"),mr("shell",!0),Ef("toolbarBehaviours",[da])]),yee=x([Jp({name:"groups",overrides:()=>({behaviours:Do([da.config({})])})})]),bee=(s,F,Z,ue)=>{const we=(ft,gt)=>{Be(ft).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},At=>{da.set(At,gt)})},Be=ft=>s.shell?I.some(ft):Fo(ft,s,"groups"),qe=s.shell?{behaviours:[da.config({})],components:[]}:{behaviours:[],components:F};return{uid:s.uid,dom:s.dom,components:qe.components,behaviours:Pf(s.toolbarBehaviours,qe.behaviours),apis:{setGroups:we,refresh:v},domModification:{attributes:{role:"group"}}}},d1=ch({name:"Toolbar",configFields:w4(),partFields:yee(),factory:bee,apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)}}}),FV=v,xee=D,Z9=x([]);var _ee=Object.freeze({__proto__:null,setup:FV,isDocked:xee,getBehaviours:Z9});const q9=x(fi("toolbar-height-change")),Vy={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},N2="tox-tinymce--toolbar-sticky-on",W9="tox-tinymce--toolbar-sticky-off",Ok=(s,F)=>{const Z=go(F),we=Yn(F).dom.innerHeight,Be=Hl(Z),qe=Pt.fromDom(s.elm),ft=bl(qe),gt=Ql(qe),At=ft.y,$t=At+gt,on=pc(F),yn=Ql(F),wn=on.top,Mn=wn+yn,Xn=Math.abs(wn-Be.top)<2,Br=Math.abs(Mn-(Be.top+we))<2;if(Xn&&Atwn){const or=At-we+gt+yn;Ts(Be.left,or,Z)}},aO=(s,F)=>X(Dl.getModes(s),F),O8=s=>{const F=ue=>Ed(ue)+(parseInt(Aa(ue,"margin-top"),10)||0)+(parseInt(Aa(ue,"margin-bottom"),10)||0),Z=s.element;Cr(Z).each(ue=>{const we="padding-"+Dl.getModes(s)[0];if(Dl.isDocked(s)){const Be=cc(ue);ko(Z,"width",Be+"px"),ko(ue,we,F(Z)+"px")}else ma(Z,"width"),ma(ue,we)})},Y9=(s,F)=>{F?(fc(s,Vy.fadeOutClass),M1(s,[Vy.transitionClass,Vy.fadeInClass])):(fc(s,Vy.fadeInClass),M1(s,[Vy.fadeOutClass,Vy.transitionClass]))},X9=(s,F)=>{const Z=Pt.fromDom(s.getContainer());F?(wl(Z,N2),fc(Z,W9)):(wl(Z,W9),fc(Z,N2))},bfe=(s,F)=>{const Z=go(F);hp(Z).filter(ue=>!so(F,ue)).filter(ue=>so(ue,Pt.fromDom(Z.dom.body))||So(s,ue)).each(()=>bd(F))},wee=(s,F)=>xd(s).orThunk(()=>F().toOptional().bind(Z=>xd(Z.element))),Oee=(s,F,Z)=>{s.inline||(F.header.isPositionedAtTop()||s.on("ResizeEditor",()=>{Z().each(Dl.reset)}),s.on("ResizeWindow ResizeEditor",()=>{Z().each(O8)}),s.on("SkinLoaded",()=>{Z().each(ue=>{Dl.isDocked(ue)?Dl.reset(ue):Dl.refresh(ue)})}),s.on("FullscreenStateChanged",()=>{Z().each(Dl.reset)})),s.on("AfterScrollIntoView",ue=>{Z().each(we=>{Dl.refresh(we);const Be=we.element;YD(Be)&&Ok(ue,Be)})}),s.on("PostRender",()=>{X9(s,!1)})},See=s=>s().map(Dl.isDocked).getOr(!1),kee=()=>[Wu.config({channels:{[q9()]:{onReceive:O8}}})],NV=(s,F)=>{const Z=os(),ue=F.getSink,we=ft=>{ue().each(gt=>ft(gt.element))},Be=ft=>{s.inline||O8(ft),X9(s,Dl.isDocked(ft)),ft.getSystem().broadcastOn([jb()],{}),ue().each(gt=>gt.getSystem().broadcastOn([jb()],{}))},qe=s.inline?[]:kee();return[oa.config({}),Dl.config({contextual:{lazyContext:ft=>{const gt=Ed(ft.element),At=s.inline?s.getContentAreaContainer():s.getContainer();return I.from(At).map($t=>{const on=Ya(Pt.fromDom($t));return Kb(s,ft.element).fold(()=>{const wn=on.height-gt,Mn=on.y+(aO(ft,"top")?0:gt);return ms(on.x,Mn,on.width,wn)},wn=>{const Mn=fl(on,zw(wn)),Xn=aO(ft,"top")?Mn.y:Mn.y+gt;return ms(Mn.x,Xn,Mn.width,Mn.height-gt)})})},onShow:()=>{we(ft=>Y9(ft,!0))},onShown:ft=>{we(gt=>th(gt,[Vy.transitionClass,Vy.fadeInClass])),Z.get().each(gt=>{bfe(ft.element,gt),Z.clear()})},onHide:ft=>{wee(ft.element,ue).fold(Z.clear,Z.set),we(gt=>Y9(gt,!1))},onHidden:()=>{we(ft=>th(ft,[Vy.transitionClass]))},...Vy},lazyViewport:ft=>Kb(s,ft.element).fold(()=>{const At=xl(),$t=iz(s),on=At.y+(aO(ft,"top")?$t:0),yn=At.height-(aO(ft,"bottom")?$t:0);return{bounds:ms(At.x,on,At.width,yn),optScrollEnv:I.none()}},At=>({bounds:zw(At),optScrollEnv:I.some({currentScrollTop:At.element.dom.scrollTop,scrollElmTop:pc(At.element).top})})),modes:[F.header.getDockingMode()],onDocked:Be,onUndocked:Be}),...qe]};var O4=Object.freeze({__proto__:null,setup:Oee,isDocked:See,getBehaviours:NV});const Sk=s=>{const F=s.editor,Z=s.sticky?NV:Z9;return{uid:s.uid,dom:s.dom,components:s.components,behaviours:Do(Z(F,s.sharedBackstage))}},G9=Mi([Fu,rr("items",Ot([J([rC,Si("items",ne)]),ne]))].concat(Q5)),Tee=s=>jt("GroupToolbarButton",G9,s),Cee=[Io("text"),Io("tooltip"),Io("icon"),ys("search",!1,Ot([ge,Mi([Io("placeholder")])],s=>w(s)?s?I.some({placeholder:I.none()}):I.none():I.some(s))),$o("fetch"),Pa("onSetup",()=>v)],S8=Mi([Fu,...Cee]),$V=s=>jt("menubutton",S8,s),kk=Mi([Fu,U5,d0,R2,Gz,TY,P2,dl("presets","normal",["normal","color","listpreview"]),lC(1),G3,V7]),VV=s=>jt("SplitButton",kk,s);var K9=Yh({factory:(s,F)=>{const Z=(we,Be)=>{const qe=oe(Be,ft=>{const gt={type:"menubutton",text:ft.text,fetch:$t=>{$t(ft.getItems())}},At=$V(gt).mapError($t=>sn($t)).getOrDie();return mk(At,"tox-mbtn",F.backstage,I.some("menuitem"))});da.set(we,qe)},ue={focus:Li.focusIn,setMenus:Z};return{uid:s.uid,dom:s.dom,components:[],behaviours:Do([da.config({}),Ta("menubar-events",[Ll(we=>{s.onSetup(we)}),fo(Om(),(we,Be)=>{aa(we.element,".tox-mbtn--active").each(qe=>{Fs(Be.event.target,".tox-mbtn").each(ft=>{so(qe,ft)||we.getSystem().getByDom(qe).each(gt=>{we.getSystem().getByDom(ft).each(At=>{p0.expand(At),p0.close(gt),oa.focus(At)})})})})}),fo(Jg(),(we,Be)=>{Be.event.prevFocus.bind(qe=>we.getSystem().getByDom(qe).toOptional()).each(qe=>{Be.event.newFocus.bind(ft=>we.getSystem().getByDom(ft).toOptional()).each(ft=>{p0.isOpen(qe)&&(p0.expand(ft),p0.close(qe))})})})]),Li.config({mode:"flow",selector:".tox-mbtn",onEscape:we=>(s.onEscape(we),I.some(!0))}),Wl.config({})]),apis:ue,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[Sn("dom"),Sn("uid"),Sn("onEscape"),Sn("backstage"),mr("onSetup",v)],apis:{focus:(s,F)=>{s.focus(F)},setMenus:(s,F,Z)=>{s.setMenus(F,Z)}}});const Aee="⚡️Upgrade",Mee="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_campaign=self_hosted_upgrade_promo&utm_source=tiny&utm_medium=referral",Eee=s=>({uid:s.uid,dom:s.dom,components:[{dom:{tag:"a",attributes:{href:Mee,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:Aee}}]}),UV="container",jV=[Ef("slotBehaviours",[])],J9=s=>"",eR=s=>{const F=(()=>{const Be=[];return{slot:(ft,gt)=>(Be.push(ft),a6(UV,J9(ft),gt)),record:x(Be)}})(),Z=s(F),ue=F.record(),we=oe(ue,Be=>Sd({name:Be,pname:J9(Be)}));return dv(UV,jV,we,Pee,Z)},Pee=(s,F)=>{const Z=Xn=>_w(s),ue=(Xn,Br)=>Fo(Xn,s,Br),we=(Xn,Br)=>(or,Mr)=>Fo(or,s,Mr).map(kr=>Xn(kr,Mr)).getOr(Br),Be=Xn=>(Br,or)=>{q(or,Mr=>Xn(Br,Mr))},qe=(Xn,Br)=>ao(Xn.element,"aria-hidden")!=="true",ft=(Xn,Br)=>{if(!qe(Xn)){const or=Xn.element;ma(or,"display"),po(or,"aria-hidden"),Ri(Xn,P_(),{name:Br,visible:!0})}},gt=(Xn,Br)=>{if(qe(Xn)){const or=Xn.element;ko(or,"display","none"),fr(or,"aria-hidden","true"),Ri(Xn,P_(),{name:Br,visible:!1})}},At=we(qe,!1),$t=we(gt),on=Be($t),yn=Xn=>on(Xn,Z()),wn=we(ft),Mn={getSlotNames:Z,getSlot:ue,isShowing:At,hideSlot:$t,hideAllSlots:yn,showSlot:wn};return{uid:s.uid,dom:s.dom,components:F,behaviours:vw(s.slotBehaviours),apis:Mn}},Cd={...Ue({getSlotNames:(s,F)=>s.getSlotNames(F),getSlot:(s,F,Z)=>s.getSlot(F,Z),isShowing:(s,F,Z)=>s.isShowing(F,Z),hideSlot:(s,F,Z)=>s.hideSlot(F,Z),hideAllSlots:(s,F)=>s.hideAllSlots(F),showSlot:(s,F,Z)=>s.showSlot(F,Z)},s=>Cc(s)),sketch:eR},QV=Mi([d0,U5,Pa("onShow",v),Pa("onHide",v),P2]),Ree=s=>jt("sidebar",QV,s),Lee=s=>{const{sidebars:F}=s.ui.registry.getAll();q(ke(F),Z=>{const ue=F[Z],we=()=>wt(I.from(s.queryCommandValue("ToggleSidebar")),Z);s.ui.registry.addToggleButton(Z,{icon:ue.icon,tooltip:ue.tooltip,onAction:Be=>{s.execCommand("ToggleSidebar",!1,Z),Be.setActive(we())},onSetup:Be=>{Be.setActive(we());const qe=()=>Be.setActive(we());return s.on("ToggleSidebar",qe),()=>{s.off("ToggleSidebar",qe)}}})})},Iee=s=>({element:()=>s.element.dom}),Dee=(s,F)=>{const Z=oe(ke(F),ue=>{const we=F[ue],Be=Nt(Ree(we));return{name:ue,getApi:Iee,onSetup:Be.onSetup,onShow:Be.onShow,onHide:Be.onHide}});return oe(Z,ue=>{const we=xi(v);return s.slot(ue.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:K3.unnamedEvents([tx(ue,we),Ih(ue,we),fo(P_(),(Be,qe)=>{const ft=qe.event;ce(Z,At=>At.name===ft.name).each(At=>{(ft.visible?At.onShow:At.onHide)(At.getApi(Be))})})])})})},nR=s=>Cd.sketch(F=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:Dee(F,s),slotBehaviours:K3.unnamedEvents([Ll(Z=>Cd.hideAllSlots(Z))])})),rR=(s,F,Z)=>{as.getCurrent(s).each(we=>{da.set(we,[nR(F)]);const Be=Z==null?void 0:Z.toLowerCase();n(Be)&&ht(F,Be)&&as.getCurrent(we).each(qe=>{Cd.showSlot(qe,Be),nm.immediateGrow(we),ma(we.element,"width"),k8(s.element,"region")})})},k8=(s,F)=>{fr(s,"role",F)},oR=(s,F)=>{as.getCurrent(s).each(ue=>{as.getCurrent(ue).each(Be=>{nm.hasGrown(ue)?Cd.isShowing(Be,F)?(nm.shrink(ue),k8(s.element,"presentation")):(Cd.hideAllSlots(Be),Cd.showSlot(Be,F),k8(s.element,"region")):(Cd.hideAllSlots(Be),Cd.showSlot(Be,F),nm.grow(ue),k8(s.element,"region"))})})},Bee=s=>as.getCurrent(s).bind(Z=>nm.isGrowing(Z)||nm.hasGrown(Z)?as.getCurrent(Z).bind(Be=>ce(Cd.getSlotNames(Be),qe=>Cd.isShowing(Be,qe))):I.none()),iR=fi("FixSizeEvent"),aR=fi("AutoSizeEvent"),zee=s=>({uid:s.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:Do([Wl.config({}),oa.config({}),nm.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:F=>{as.getCurrent(F).each(Cd.hideAllSlots),Sa(F,aR)},onGrown:F=>{Sa(F,aR)},onStartGrow:F=>{Ri(F,iR,{width:Na(F.element,"width").getOr("")})},onStartShrink:F=>{Ri(F,iR,{width:cc(F.element)+"px"})}}),da.config({}),as.config({find:F=>{const Z=da.contents(F);return He(Z)}})])}],behaviours:Do([y0.childAt(0),Ta("sidebar-sliding-events",[fo(iR,(F,Z)=>{ko(F.element,"width",Z.event.width)}),fo(aR,(F,Z)=>{ma(F.element,"width")})])])});var HV=Object.freeze({__proto__:null,block:(s,F,Z,ue)=>{fr(s.element,"aria-busy",!0);const we=F.getRoot(s).getOr(s),Be=Do([Li.config({mode:"special",onTab:()=>I.some(!0),onShiftTab:()=>I.some(!0)}),oa.config({})]),qe=ue(we,Be),ft=we.getSystem().build(qe);da.append(we,na(ft)),ft.hasConfigured(Li)&&F.focus&&Li.focusIn(ft),Z.isBlocked()||F.onBlock(s),Z.blockWith(()=>da.remove(we,ft))},unblock:(s,F,Z)=>{po(s.element,"aria-busy"),Z.isBlocked()&&F.onUnblock(s),Z.clear()},isBlocked:(s,F,Z)=>Z.isBlocked()}),Fee=[Pa("getRoot",I.none),ds("focus",!0),Ra("onBlock"),Ra("onUnblock")],$ee=Object.freeze({__proto__:null,init:()=>{const s=xh(),F=Z=>{s.set({destroy:Z})};return kh({readState:s.isSet,blockWith:F,clear:s.clear,isBlocked:s.isSet})}});const Sv=lf({fields:Fee,name:"blocking",apis:HV,state:$ee}),Vee=s=>(F,Z)=>({dom:{tag:"div",attributes:{"aria-label":s.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:pv('
    ')}]}),ZV=s=>as.getCurrent(s).each(F=>bd(F.element,!0)),Uee=(s,F)=>{const Z="tabindex",ue=`data-mce-${Z}`;I.from(s.iframeElement).map(Pt.fromDom).each(we=>{F?(co(we,Z).each(Be=>fr(we,ue,Be)),fr(we,Z,-1)):(po(we,Z),co(we,ue).each(Be=>{fr(we,Z,Be),po(we,ue)}))})},qV=(s,F,Z,ue)=>{const we=F.element;if(Uee(s,Z),Z)Sv.block(F,Vee(ue)),ma(we,"display"),po(we,"aria-hidden"),s.hasFocus()&&ZV(F);else{const Be=as.getCurrent(F).exists(qe=>dy(qe.element));Sv.unblock(F),ko(we,"display","none"),fr(we,"aria-hidden","true"),Be&&s.focus()}},jee=s=>({uid:s.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:Do([da.config({}),Sv.config({focus:!1}),as.config({find:F=>He(F.components())})]),components:[]}),Qee=s=>s.type==="focusin",Hee=s=>Qee(s)?(s.composed?He(s.composedPath()):I.from(s.target)).map(Pt.fromDom).filter(Kn).exists(Z=>$l(Z,"mce-pastebin")):!1,wfe=(s,F,Z)=>{const ue=xi(!1),we=os(),Be=ft=>{ue.get()&&!Hee(ft)&&(ft.preventDefault(),ZV(F()),s.editorManager.setActive(s))};s.inline||s.on("PreInit",()=>{s.dom.bind(s.getWin(),"focusin",Be),s.on("BeforeExecCommand",ft=>{ft.command.toLowerCase()==="mcefocus"&&ft.value!==!0&&Be(ft)})});const qe=ft=>{ft!==ue.get()&&(ue.set(ft),qV(s,F(),ft,Z.providers),rX(s,ft))};s.on("ProgressState",ft=>{if(we.on(clearTimeout),h(ft.time)){const gt=O5.setEditorTimeout(s,()=>qe(ft.state),ft.time);we.set(gt)}else qe(ft.state),we.clear()})},Ofe=(s,F)=>se(s,(we,Be)=>F(Be,we.len).fold(x(we),ft=>({len:ft.finish,list:we.list.concat([ft])})),{len:0,list:[]}).list,T8=(s,F,Z)=>({within:s,extra:F,withinWidth:Z}),sR=(s,F,Z)=>{const ue=Ofe(s,(ft,gt)=>{const At=Z(ft);return I.some({element:ft,start:gt,finish:gt+At,width:At})}),we=me(ue,ft=>ft.finish<=F),Be=he(we,(ft,gt)=>ft+gt.width,0),qe=ue.slice(we.length);return{within:we,extra:qe,withinWidth:Be}},C8=s=>oe(s,F=>F.element),Zee=(s,F,Z)=>{const ue=C8(s.concat(F));return T8(ue,[],Z)},Eg=(s,F,Z,ue)=>{const we=C8(s).concat([Z]);return T8(we,C8(F),ue)},qee=(s,F,Z)=>T8(C8(s),[],Z),WV=(s,F,Z)=>{const ue=sR(F,s,Z);return ue.extra.length===0?I.some(ue):I.none()},YV=(s,F,Z,ue)=>{const we=WV(s,F,Z).getOrThunk(()=>sR(F,s-Z(ue),Z)),Be=we.within,qe=we.extra,ft=we.withinWidth;return qe.length===1&&qe[0].width<=Z(ue)?Zee(Be,qe,ft):qe.length>=1?Eg(Be,qe,ue,ft):qee(Be,qe,ft)},XV=(s,F)=>{const Z=oe(F,ue=>na(ue));d1.setGroups(s,Z)},Tk=s=>Oe(s,F=>xd(F.element).bind(Z=>F.getSystem().getByDom(Z).toOptional())),GV=(s,F,Z)=>{const ue=F.builtGroups.get();if(ue.length===0)return;const we=Ph(s,F,"primary"),Be=lu.getCoupled(s,"overflowGroup");ko(we.element,"visibility","hidden");const qe=ue.concat([Be]),ft=Tk(qe);Z([]),XV(we,qe);const gt=cc(we.element),At=YV(gt,F.builtGroups.get(),$t=>Math.ceil($t.element.dom.getBoundingClientRect().width),Be);At.extra.length===0?(da.remove(we,Be),Z([])):(XV(we,At.within),Z(At.extra)),ma(we.element,"visibility"),Ku(we.element),ft.each(oa.focus)},Ck=x([Ef("splitToolbarBehaviours",[lu]),On("builtGroups",()=>xi([]))]),Wee=x([jp(["overflowToggledClass"]),Ui("getOverflowBounds"),Sn("lazySink"),On("overflowGroups",()=>xi([])),Ra("onOpened"),Ra("onClosed")].concat(Ck())),A8=x([Sd({factory:d1,schema:w4(),name:"primary"}),Um({schema:w4(),name:"overflow"}),Um({name:"overflow-button"}),Um({name:"overflow-group"})]),lR=x((s,F)=>{ju(s,Math.floor(F))}),Yee=x([jp(["toggledClass"]),Sn("lazySink"),$o("fetch"),Ui("getBounds"),Pi("fireDismissalEventInstead",[mr("event",I0())]),l0(),Ra("onToggled")]),b0=x([Um({name:"button",overrides:s=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:Do([za.config({toggleClass:s.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:s.onToggled})])})}),Um({factory:d1,schema:w4(),name:"toolbar",overrides:s=>({toolbarBehaviours:Do([Li.config({mode:"cyclic",onEscape:F=>(Fo(F,s,"button").each(oa.focus),I.none())})])})})]),M8=os(),E8=(s,F)=>{M8.set(!0),P8(s,F),M8.clear()},P8=(s,F)=>{const Z=lu.getCoupled(s,"toolbarSandbox");hs.isOpen(Z)?hs.close(Z):hs.open(Z,F.toolbar())},R8=(s,F,Z,ue)=>{const we=Z.getBounds.map(qe=>qe()),Be=Z.lazySink(s).getOrDie();ed.positionWithinBounds(Be,F,{anchor:{type:"hotspot",hotspot:s,layouts:ue,overrides:{maxWidthFunction:lR()}}},we)},KV=(s,F,Z,ue,we)=>{d1.setGroups(F,we),R8(s,F,Z,ue),za.on(s)},JV=(s,F,Z)=>{const ue=xu(),we=(qe,ft)=>{const gt=M8.get().getOr(!1);Z.fetch().get(At=>{KV(s,ft,Z,F.layouts,At),ue.link(s.element),gt||Li.focusIn(ft)})},Be=()=>{za.off(s),M8.get().getOr(!1)||oa.focus(s),ue.unlink(s.element)};return{dom:{tag:"div",attributes:{id:ue.id}},behaviours:Do([Li.config({mode:"special",onEscape:qe=>(hs.close(qe),I.some(!0))}),hs.config({onOpen:we,onClose:Be,isPartOf:(qe,ft,gt)=>Vc(ft,gt)||Vc(s,gt),getAttachPoint:()=>Z.lazySink(s).getOrDie()}),Wu.config({channels:{...uv({isExtraPart:D,...Z.fireDismissalEventInstead.map(qe=>({fireEventInstead:{event:qe.event}})).getOr({})}),..._3({doReposition:()=>{hs.getState(lu.getCoupled(s,"toolbarSandbox")).each(qe=>{R8(s,qe,Z,F.layouts)})}})}})])}},$2=ch({name:"FloatingToolbarButton",factory:(s,F,Z,ue)=>({...Vd.sketch({...ue.button(),action:we=>{P8(we,ue)},buttonBehaviours:Vm.augment({dump:ue.button().buttonBehaviours},[lu.config({others:{toolbarSandbox:we=>JV(we,Z,s)}})])}),apis:{setGroups:(we,Be)=>{hs.getState(lu.getCoupled(we,"toolbarSandbox")).each(qe=>{KV(we,qe,s,Z.layouts,Be)})},reposition:we=>{hs.getState(lu.getCoupled(we,"toolbarSandbox")).each(Be=>{R8(we,Be,s,Z.layouts)})},toggle:we=>{P8(we,ue)},toggleWithoutFocusing:we=>{E8(we,ue)},getToolbar:we=>hs.getState(lu.getCoupled(we,"toolbarSandbox")),isOpen:we=>hs.isOpen(lu.getCoupled(we,"toolbarSandbox"))}}),configFields:Yee(),partFields:b0(),apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)},reposition:(s,F)=>{s.reposition(F)},toggle:(s,F)=>{s.toggle(F)},toggleWithoutFocusing:(s,F)=>{s.toggleWithoutFocusing(F)},getToolbar:(s,F)=>s.getToolbar(F),isOpen:(s,F)=>s.isOpen(F)}}),Xee=x([Sn("items"),jp(["itemSelector"]),Ef("tgroupBehaviours",[Li])]),Gee=x([R3({name:"items",unit:"item"})]),Kee=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,components:F,behaviours:Pf(s.tgroupBehaviours,[Li.config({mode:"flow",selector:s.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),L8=ch({name:"ToolbarGroup",configFields:Xee(),partFields:Gee(),factory:Kee}),eU=s=>oe(s,F=>na(F)),cR=(s,F,Z)=>{GV(s,Z,ue=>{Z.overflowGroups.set(ue),F.getOpt(s).each(we=>{$2.setGroups(we,eU(ue))})})},tU=(s,F,Z,ue)=>{const we=qs($2.sketch({fetch:()=>uh.nu(Be=>{Be(eU(s.overflowGroups.get()))}),layouts:{onLtr:()=>[Qc,Ec],onRtl:()=>[Ec,Qc],onBottomLtr:()=>[_s,Hc],onBottomRtl:()=>[Hc,_s]},getBounds:Z.getOverflowBounds,lazySink:s.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:s.markers.overflowToggledClass},parts:{button:ue["overflow-button"](),toolbar:ue.overflow()},onToggled:(Be,qe)=>s[qe?"onOpened":"onClosed"](Be)}));return{uid:s.uid,dom:s.dom,components:F,behaviours:Pf(s.splitToolbarBehaviours,[lu.config({others:{overflowGroup:()=>L8.sketch({...ue["overflow-group"](),items:[we.asSpec()]})}})]),apis:{setGroups:(Be,qe)=>{s.builtGroups.set(oe(qe,Be.getSystem().build)),cR(Be,we,s)},refresh:Be=>cR(Be,we,s),toggle:Be=>{we.getOpt(Be).each(qe=>{$2.toggle(qe)})},toggleWithoutFocusing:Be=>{we.getOpt(Be).each($2.toggleWithoutFocusing)},isOpen:Be=>we.getOpt(Be).map($2.isOpen).getOr(!1),reposition:Be=>{we.getOpt(Be).each(qe=>{$2.reposition(qe)})},getOverflow:Be=>we.getOpt(Be).bind($2.getToolbar)},domModification:{attributes:{role:"group"}}}},uR=ch({name:"SplitFloatingToolbar",configFields:Wee(),partFields:A8(),factory:tU,apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)},refresh:(s,F)=>{s.refresh(F)},reposition:(s,F)=>{s.reposition(F)},toggle:(s,F)=>{s.toggle(F)},toggleWithoutFocusing:(s,F)=>{s.toggle(F)},isOpen:(s,F)=>s.isOpen(F),getOverflow:(s,F)=>s.getOverflow(F)}}),Jee=x([jp(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Ra("onOpened"),Ra("onClosed")].concat(Ck())),ete=x([Sd({factory:d1,schema:w4(),name:"primary"}),Sd({factory:d1,schema:w4(),name:"overflow",overrides:s=>({toolbarBehaviours:Do([nm.config({dimension:{property:"height"},closedClass:s.markers.closedClass,openClass:s.markers.openClass,shrinkingClass:s.markers.shrinkingClass,growingClass:s.markers.growingClass,onShrunk:F=>{Fo(F,s,"overflow-button").each(Z=>{za.off(Z)}),s.onClosed(F)},onGrown:F=>{s.onOpened(F)},onStartGrow:F=>{Fo(F,s,"overflow-button").each(za.on)}}),Li.config({mode:"acyclic",onEscape:F=>(Fo(F,s,"overflow-button").each(oa.focus),I.some(!0))})])})}),Um({name:"overflow-button",overrides:s=>({buttonBehaviours:Do([za.config({toggleClass:s.markers.overflowToggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])})}),Um({name:"overflow-group"})]),nU=(s,F)=>Fo(s,F,"overflow").map(nm.hasGrown).getOr(!1),I8=(s,F,Z)=>{Fo(s,F,"overflow-button").each(ue=>{Fo(s,F,"overflow").each(we=>{if(D8(s,F),nm.hasShrunk(we)){const Be=F.onOpened;F.onOpened=qe=>{Z||Li.focusIn(we),Be(qe),F.onOpened=Be}}else{const Be=F.onClosed;F.onClosed=qe=>{Z||oa.focus(ue),Be(qe),F.onClosed=Be}}nm.toggleGrow(we)})})},D8=(s,F)=>{Fo(s,F,"overflow").each(Z=>{GV(s,F,ue=>{const we=oe(ue,Be=>na(Be));d1.setGroups(Z,we)}),Fo(s,F,"overflow-button").each(ue=>{nm.hasGrown(Z)&&za.on(ue)}),nm.refresh(Z)})},tte=(s,F,Z,ue)=>{const we="alloy.toolbar.toggle",Be=(qe,ft)=>{const gt=oe(ft,qe.getSystem().build);s.builtGroups.set(gt)};return{uid:s.uid,dom:s.dom,components:F,behaviours:Pf(s.splitToolbarBehaviours,[lu.config({others:{overflowGroup:qe=>L8.sketch({...ue["overflow-group"](),items:[Vd.sketch({...ue["overflow-button"](),action:ft=>{Sa(qe,we)}})]})}}),Ta("toolbar-toggle-events",[fo(we,qe=>{I8(qe,s,!1)})])]),apis:{setGroups:(qe,ft)=>{Be(qe,ft),D8(qe,s)},refresh:qe=>D8(qe,s),toggle:qe=>{I8(qe,s,!1)},toggleWithoutFocusing:qe=>{I8(qe,s,!0)},isOpen:qe=>nU(qe,s)},domModification:{attributes:{role:"group"}}}},fR=ch({name:"SplitSlidingToolbar",configFields:Jee(),partFields:ete(),factory:tte,apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)},refresh:(s,F)=>{s.refresh(F)},toggle:(s,F)=>{s.toggle(F)},isOpen:(s,F)=>s.isOpen(F)}}),rU=s=>{const F=s.title.fold(()=>({}),Z=>({attributes:{title:Z}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...F},components:[L8.parts.items({})],items:s.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:Do([Wl.config({}),oa.config({})])}},Ak=s=>L8.sketch(rU(s)),oU=(s,F)=>{const Z=Ll(ue=>{const we=oe(s.initGroups,Ak);d1.setGroups(ue,we)});return Do([s1.toolbarButton(s.providers.isDisabled),df(),Li.config({mode:F,onEscape:s.onEscape,selector:".tox-toolbar__group"}),Ta("toolbar-events",[Z])])},iU=s=>{const F=s.cyclicKeying?"cyclic":"acyclic";return{uid:s.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":rU({title:I.none(),items:[]}),"overflow-button":iV({name:"more",icon:I.some("more-drawer"),enabled:!0,tooltip:I.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:I.none(),borderless:!1},I.none(),s.providers,[],"overflow-button")},splitToolbarBehaviours:oU(s,F)}},nte=s=>{const F=iU(s),Z=4,ue=uR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return uR.sketch({...F,lazySink:s.getSink,getOverflowBounds:()=>{const we=s.moreDrawerData.lazyHeader().element,Be=bl(we),qe=Pn(we),ft=bl(qe),gt=Math.max(qe.dom.scrollHeight,ft.height);return ms(Be.x+Z,ft.y,Be.width-Z*2,gt)},parts:{...F.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:s.attributes}}},components:[ue],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:we=>s.onToggled(we,!0),onClosed:we=>s.onToggled(we,!1)})},rte=s=>{const F=fR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),Z=fR.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),ue=iU(s);return fR.sketch({...ue,components:[F,Z],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:we=>{we.getSystem().broadcastOn([q9()],{type:"opened"}),s.onToggled(we,!0)},onClosed:we=>{we.getSystem().broadcastOn([q9()],{type:"closed"}),s.onToggled(we,!1)}})},B8=s=>{const F=s.cyclicKeying?"cyclic":"acyclic";return d1.sketch({uid:s.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(s.type===Hm.scrolling?["tox-toolbar--scrolling"]:[])},components:[d1.parts.groups({})],toolbarBehaviours:oU(s,F)})},aU=[R2,d0,Io("tooltip"),dl("buttonType","secondary",["primary","secondary"]),ds("borderless",!1),$o("onAction")],ote=[...aU,ex,Zr("type",["button"])],ite=[...aU,ds("active",!1),Zr("type",["togglebutton"])],sU={button:ote,togglebutton:ite},ate=[Zr("type",["group"]),Ls("buttons",[],xn("type",sU))],lU=xn("type",{...sU,group:ate}),ste=Mi([Ls("buttons",[],lU),$o("onShow"),$o("onHide")]),lte=s=>jt("view",ste,s),dR=(s,F)=>{var Z,ue;const we=s.type==="togglebutton",Be=s.icon.map(kr=>ax(kr,F.icons)).map(qs),ft=(()=>kr=>{const yo=Jo=>{Be.map(ho=>ho.getOpt(kr).each(Ci=>{da.set(Ci,[ax(Jo,F.icons)])}))},Xr=Jo=>{const ho=kr.element;Jo?(wl(ho,"tox-button--enabled"),fr(ho,"aria-pressed",!0)):(fc(ho,"tox-button--enabled"),po(ho,"aria-pressed"))},No=()=>$l(kr.element,"tox-button--enabled");if(we)return s.onAction({setIcon:yo,setActive:Xr,isActive:No});if(s.type==="button")return s.onAction({setIcon:yo})})(),gt={...s,name:we?s.text.getOr(s.icon.getOr("")):(Z=s.text)!==null&&Z!==void 0?Z:s.icon.getOr(""),primary:s.buttonType==="primary",buttonType:I.from(s.buttonType),tooltip:s.tooltip,icon:s.icon,enabled:!0,borderless:s.borderless},At=s8((ue=s.buttonType)!==null&&ue!==void 0?ue:"secondary"),$t=we?s.text.map(F.translate):I.some(F.translate(s.text)),on=$t.map(ro),yn=gt.tooltip.or($t).map(kr=>({"aria-label":F.translate(kr)})).getOr({}),wn=Be.map(kr=>kr.asSpec()),Mn=jw([wn,on]),Xn=s.icon.isSome()&&on.isSome(),Br={tag:"button",classes:At.concat(...s.icon.isSome()&&!Xn?["tox-button--icon"]:[]).concat(...Xn?["tox-button--icon-and-text"]:[]).concat(...s.borderless?["tox-button--naked"]:[]).concat(...s.type==="togglebutton"&&s.active?["tox-button--enabled"]:[]),attributes:yn},or=[],Mr=a8(gt,I.some(ft),or,Br,Mn,s.tooltip,F);return Vd.sketch(Mr)},cU=(s,F)=>dR(s,F),z8=(s,F)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:oe(s.buttons,Z=>cU(Z,F))}),uU=rf().deviceType,fU=uU.isPhone(),cte=uU.isTablet(),ute=s=>{let F=!1;const Z=oe(s.buttons,ue=>ue.type==="group"?(F=!0,z8(ue,s.providers)):cU(ue,s.providers));return{uid:s.uid,dom:{tag:"div",classes:[F?"tox-view__toolbar":"tox-view__header",...fU||cte?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:Do([oa.config({}),Li.config({mode:"flow",selector:"button, .tox-button",focusInside:qb.OnEnterOrSpaceMode})]),components:F?Z:[bv.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),bv.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:Z})]}},kfe=s=>({uid:s.uid,behaviours:Do([oa.config({}),Wl.config({})]),dom:{tag:"div",classes:["tox-view__pane"]}}),fte=(s,F,Z,ue)=>{const we={getPane:Be=>Td.getPart(Be,s,"pane"),getOnShow:Be=>s.viewConfig.onShow,getOnHide:Be=>s.viewConfig.onHide};return{uid:s.uid,dom:s.dom,components:F,behaviours:Do([oa.config({}),Li.config({mode:"cyclic",focusInside:qb.OnEnterOrSpaceMode})]),apis:we}};var S4=ch({name:"silver.View",configFields:[Sn("viewConfig")],partFields:[Jp({factory:{sketch:ute},schema:[Sn("buttons"),Sn("providers")],name:"header"}),Jp({factory:{sketch:kfe},schema:[],name:"pane"})],factory:fte,apis:{getPane:(s,F)=>s.getPane(F),getOnShow:(s,F)=>s.getOnShow(F),getOnHide:(s,F)=>s.getOnHide(F)}});const hR=(s,F,Z)=>je(F,(ue,we)=>{const Be=Nt(lte(ue));return s.slot(we,S4.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:Be,components:[...Be.buttons.length>0?[S4.parts.header({buttons:Be.buttons,providers:Z})]:[],S4.parts.pane({})]}))}),dte=(s,F)=>Cd.sketch(Z=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:hR(Z,s,F),slotBehaviours:K3.unnamedEvents([Ll(ue=>Cd.hideAllSlots(ue))])})),Mk=s=>ce(Cd.getSlotNames(s),F=>Cd.isShowing(s,F)),dU=s=>{const F=s.element;ko(F,"display","none"),fr(F,"aria-hidden","true")},hU=s=>{const F=s.element;ma(F,"display"),po(F,"aria-hidden")},pR=s=>({getContainer:x(s)}),pU=(s,F,Z)=>{Cd.getSlot(s,F).each(ue=>{S4.getPane(ue).each(we=>{Z(ue)(pR(we.element.dom))})})},mU=(s,F)=>pU(s,F,S4.getOnShow),k4=(s,F)=>pU(s,F,S4.getOnHide);var F8=Yh({factory:(s,F)=>{const Be={setViews:(qe,ft)=>{da.set(qe,[dte(ft,F.backstage.shared.providers)])},whichView:qe=>as.getCurrent(qe).bind(Mk),toggleView:(qe,ft,gt,At)=>as.getCurrent(qe).exists($t=>{const on=Mk($t),yn=on.exists(Mn=>At===Mn),wn=Cd.getSlot($t,At).isSome();return wn&&(Cd.hideAllSlots($t),yn?(dU(qe),ft()):(gt(),hU(qe),Cd.showSlot($t,At),mU($t,At)),on.each(Mn=>k4($t,Mn))),wn})};return{uid:s.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:Do([da.config({}),as.config({find:qe=>{const ft=da.contents(qe);return He(ft)}})]),apis:Be}},name:"silver.ViewWrapper",configFields:[Sn("backstage")],apis:{setViews:(s,F,Z)=>s.setViews(F,Z),toggleView:(s,F,Z,ue,we)=>s.toggleView(F,Z,ue,we),whichView:(s,F)=>s.whichView(F)}});const pte=(s,F,Z)=>{let ue=!1;const we=qe=>{gs(qe,".tox-statusbar").each(ft=>{Aa(ft,"display")==="none"&&ao(ft,"aria-hidden")==="true"?(ma(ft,"display"),po(ft,"aria-hidden")):(ko(ft,"display","none"),fr(ft,"aria-hidden","true"))})},Be={getSocket:qe=>Td.getPart(qe,s,"socket"),setSidebar:(qe,ft,gt)=>{Td.getPart(qe,s,"sidebar").each(At=>rR(At,ft,gt))},toggleSidebar:(qe,ft)=>{Td.getPart(qe,s,"sidebar").each(gt=>oR(gt,ft))},whichSidebar:qe=>Td.getPart(qe,s,"sidebar").bind(Bee).getOrNull(),getHeader:qe=>Td.getPart(qe,s,"header"),getToolbar:qe=>Td.getPart(qe,s,"toolbar"),setToolbar:(qe,ft)=>{Td.getPart(qe,s,"toolbar").each(gt=>{const At=oe(ft,Ak);gt.getApis().setGroups(gt,At)})},setToolbars:(qe,ft)=>{Td.getPart(qe,s,"multiple-toolbar").each(gt=>{const At=oe(ft,$t=>oe($t,Ak));zV.setItems(gt,At)})},refreshToolbar:qe=>{Td.getPart(qe,s,"toolbar").each(gt=>gt.getApis().refresh(gt))},toggleToolbarDrawer:qe=>{Td.getPart(qe,s,"toolbar").each(ft=>{Ct(ft.getApis().toggle,gt=>gt(ft))})},toggleToolbarDrawerWithoutFocusing:qe=>{Td.getPart(qe,s,"toolbar").each(ft=>{Ct(ft.getApis().toggleWithoutFocusing,gt=>gt(ft))})},isToolbarDrawerToggled:qe=>Td.getPart(qe,s,"toolbar").bind(ft=>I.from(ft.getApis().isOpen).map(gt=>gt(ft))).getOr(!1),getThrobber:qe=>Td.getPart(qe,s,"throbber"),focusToolbar:qe=>{Td.getPart(qe,s,"toolbar").orThunk(()=>Td.getPart(qe,s,"multiple-toolbar")).each(gt=>{Li.focusIn(gt)})},setMenubar:(qe,ft)=>{Td.getPart(qe,s,"menubar").each(gt=>{K9.setMenus(gt,ft)})},focusMenubar:qe=>{Td.getPart(qe,s,"menubar").each(ft=>{K9.focus(ft)})},setViews:(qe,ft)=>{Td.getPart(qe,s,"viewWrapper").each(gt=>{F8.setViews(gt,ft)})},toggleView:(qe,ft)=>Td.getPart(qe,s,"viewWrapper").exists(gt=>F8.toggleView(gt,()=>Be.showMainView(qe),()=>Be.hideMainView(qe),ft)),whichView:qe=>Td.getPart(qe,s,"viewWrapper").bind(F8.whichView).getOrNull(),hideMainView:qe=>{ue=Be.isToolbarDrawerToggled(qe),ue&&Be.toggleToolbarDrawer(qe),Td.getPart(qe,s,"editorContainer").each(ft=>{const gt=ft.element;we(gt),ko(gt,"display","none"),fr(gt,"aria-hidden","true")})},showMainView:qe=>{ue&&Be.toggleToolbarDrawer(qe),Td.getPart(qe,s,"editorContainer").each(ft=>{const gt=ft.element;we(gt),ma(gt,"display"),po(gt,"aria-hidden")})}};return{uid:s.uid,dom:s.dom,components:F,apis:Be,behaviours:s.behaviours}},mte=$y.optional({factory:K9,name:"menubar",schema:[Sn("backstage")]}),mR=s=>s.type===Hm.sliding?rte:s.type===Hm.floating?nte:B8,gte=$y.optional({factory:{sketch:s=>zV.sketch({uid:s.uid,dom:s.dom,listBehaviours:Do([Li.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>B8({type:s.type,uid:fi("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:s.providers,onEscape:()=>(s.onEscape(),I.some(!0))}),setupItem:(F,Z,ue,we)=>{d1.setGroups(Z,ue)},shell:!0})},name:"multiple-toolbar",schema:[Sn("dom"),Sn("onEscape")]}),vte=$y.optional({factory:{sketch:s=>{const F=mR(s),Z={type:s.type,uid:s.uid,onEscape:()=>(s.onEscape(),I.some(!0)),onToggled:(ue,we)=>s.onToolbarToggled(we),cyclicKeying:!1,initGroups:[],getSink:s.getSink,providers:s.providers,moreDrawerData:{lazyToolbar:s.lazyToolbar,lazyMoreButton:s.lazyMoreButton,lazyHeader:s.lazyHeader},attributes:s.attributes};return F(Z)}},name:"toolbar",schema:[Sn("dom"),Sn("onEscape"),Sn("getSink")]}),gU=$y.optional({factory:{sketch:Sk},name:"header",schema:[Sn("dom")]}),vU=$y.optional({factory:{sketch:Eee},name:"promotion",schema:[Sn("dom")]}),N8=$y.optional({name:"socket",schema:[Sn("dom")]}),gR=$y.optional({factory:{sketch:zee},name:"sidebar",schema:[Sn("dom")]}),yte=$y.optional({factory:{sketch:jee},name:"throbber",schema:[Sn("dom")]}),bte=$y.optional({factory:F8,name:"viewWrapper",schema:[Sn("backstage")]}),yU=s=>({uid:s.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:s.components}),xte=$y.optional({factory:{sketch:yU},name:"editorContainer",schema:[]});var Yl=ch({name:"OuterContainer",factory:pte,configFields:[Sn("dom"),Sn("behaviours")],partFields:[gU,mte,vte,gte,N8,gR,vU,yte,bte,xte],apis:{getSocket:(s,F)=>s.getSocket(F),setSidebar:(s,F,Z,ue)=>{s.setSidebar(F,Z,ue)},toggleSidebar:(s,F,Z)=>{s.toggleSidebar(F,Z)},whichSidebar:(s,F)=>s.whichSidebar(F),getHeader:(s,F)=>s.getHeader(F),getToolbar:(s,F)=>s.getToolbar(F),setToolbar:(s,F,Z)=>{s.setToolbar(F,Z)},setToolbars:(s,F,Z)=>{s.setToolbars(F,Z)},refreshToolbar:(s,F)=>s.refreshToolbar(F),toggleToolbarDrawer:(s,F)=>{s.toggleToolbarDrawer(F)},toggleToolbarDrawerWithoutFocusing:(s,F)=>{s.toggleToolbarDrawerWithoutFocusing(F)},isToolbarDrawerToggled:(s,F)=>s.isToolbarDrawerToggled(F),getThrobber:(s,F)=>s.getThrobber(F),setMenubar:(s,F,Z)=>{s.setMenubar(F,Z)},focusMenubar:(s,F)=>{s.focusMenubar(F)},focusToolbar:(s,F)=>{s.focusToolbar(F)},setViews:(s,F,Z)=>{s.setViews(F,Z)},toggleView:(s,F,Z)=>s.toggleView(F,Z),whichView:(s,F)=>s.whichView(F)}});const _te="file edit view insert format tools table help",vR={file:{title:"File",items:"newdocument restoredraft | preview | importword exportpdf exportword | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code revisionhistory | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed inserttemplate codesample inserttable accordion math | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},wte=(s,F,Z)=>{const ue=XE(Z).split(/[ ,]/);return{text:s.title,getItems:()=>ye(s.items,we=>{const Be=we.toLowerCase();return Be.trim().length===0?[]:te(ue,qe=>qe===Be)?[]:Be==="separator"||Be==="|"?[{type:"separator"}]:F.menuItems[Be]?[F.menuItems[Be]]:[]})}},yR=s=>s.split(" "),$8=(s,F)=>{const Z={...vR,...F.menus},ue=ke(F.menus).length>0,we=F.menubar===void 0||F.menubar===!0?yR(_te):yR(F.menubar===!1?"":F.menubar),Be=me(we,ft=>{const gt=ht(vR,ft);return ue?gt||Ge(F.menus,ft).exists(At=>ht(At,"items")):gt}),qe=oe(Be,ft=>{const gt=Z[ft];return wte({title:gt.title,items:yR(gt.items)},F,s)});return me(qe,ft=>{const gt=At=>n(At)||At.type!=="separator";return ft.getItems().length>0&&te(ft.getItems(),gt)})},Ote=s=>{const F=()=>{s._skinLoaded=!0,eX(s)};return()=>{s.initialized?F():s.on("init",F)}},Ste=(s,F)=>()=>tX(s,{message:F}),bR=(s,F,Z)=>(s.on("remove",()=>Z.unload(F)),Z.load(F)),xR=(s,F,Z,ue)=>(s.on("remove",()=>ue.unloadRawCss(F)),ue.loadRawCss(F,Z)),bU=async(s,F)=>{const ue="ui/"+z6(s).getOr("default")+"/skin.css",we=tinymce.Resource.get(ue);if(n(we))xR(s,ue,we,s.ui.styleSheetLoader);else{const Be=s.editorManager.suffix,qe=F+`/skin${Be}.css`;return bR(s,qe,s.ui.styleSheetLoader)}},kte=async(s,F)=>{if(Qn(Pt.fromDom(s.getElement()))){const we="ui/"+z6(s).getOr("default")+"/skin.shadowdom.css",Be=tinymce.Resource.get(we);if(n(Be))xR(s,we,Be,Lw.DOM.styleSheetLoader);else{const qe=s.editorManager.suffix,ft=F+`/skin.shadowdom${qe}.css`;return bR(s,ft,Lw.DOM.styleSheetLoader)}}},xU=async(s,F)=>{const Z=()=>{const we=o7(F),Be=F.editorManager.suffix;we&&F.contentCSS.push(we+(s?"/content.inline":"/content")+`${Be}.css`)};z6(F).fold(Z,we=>{const Be="ui/"+we+(s?"/content.inline":"/content")+".css",qe=tinymce.Resource.get(Be);n(qe)?xR(F,Be,qe,F.ui.styleSheetLoader):Z()});const ue=o7(F);if(!r7(F)&&n(ue))return Promise.all([bU(F,ue),kte(F,ue)]).then()},_U=(s,F)=>xU(s,F).then(Ote(F),Ste(F,"Skin could not be loaded")),Tte=T(_U,!1),Cte=T(_U,!0),sO=(s,F,Z)=>at(Z)?s.translate(F):s.translate([F,s.translate(Z)]),Ate=(s,F)=>{const Z=(qe,ft,gt,At)=>{const $t=s.shared.providers.translate(qe.title);if(qe.type==="separator")return I.some({type:"separator",text:$t});if(qe.type==="submenu"){const on=ye(qe.getStyleItems(),yn=>ue(yn,ft,At));return ft===0&&on.length<=0?I.none():I.some({type:"nestedmenuitem",text:$t,enabled:on.length>0,getSubmenuItems:()=>ye(qe.getStyleItems(),yn=>ue(yn,ft,At))})}else return I.some({type:"togglemenuitem",text:$t,icon:qe.icon,active:qe.isSelected(At),enabled:!gt,onAction:F.onAction(qe),...qe.getStylePreview().fold(()=>({}),on=>({meta:{style:on}}))})},ue=(qe,ft,gt)=>{const At=qe.type==="formatter"&&F.isInvalid(qe);return ft===0?At?[]:Z(qe,ft,!1,gt).toArray():Z(qe,ft,At,gt).toArray()},we=qe=>{const ft=F.getCurrentValue(),gt=F.shouldHide?0:1;return ye(qe,At=>ue(At,gt,ft))};return{validateItems:we,getFetch:(qe,ft)=>(gt,At)=>{const $t=ft(),on=we($t),yn=v4(on,r1.CLOSE_ON_EXECUTE,qe,{isHorizontalMenu:!1,search:I.none()});At(yn)}}},T4=(s,F)=>{const Z=F.dataset,ue=Z.type==="basic"?()=>oe(Z.data,we=>xk(we,F.isSelectedFor,F.getPreviewFor)):Z.getData;return{items:Ate(s,F),getStyleItems:ue}},Ek=(s,F,Z,ue,we,Be)=>{const{items:qe,getStyleItems:ft}=T4(F,Z),gt=xi(Z.tooltip),At=on=>({getComponent:x(on),setTooltip:yn=>{const wn=F.shared.providers.translate(yn);fr(on.element,"aria-label",wn),gt.set(yn)}}),$t=on=>{const yn=wn=>on.setTooltip(sO(s,ue(wn.value),wn.value));return s.on(we,yn),t4(Zw(s,"NodeChange",wn=>{const Mn=wn.getComponent();Z.updateText(Mn),ea.set(wn.getComponent(),!s.selection.isEditable())})(on),()=>s.off(we,yn))};return s9({text:Z.icon.isSome()?I.none():Z.text,icon:Z.icon,ariaLabel:I.some(Z.tooltip),tooltip:I.none(),role:I.none(),fetch:qe.getFetch(F,ft),onSetup:$t,getApi:At,columns:1,presets:"normal",classes:Z.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[kd.config({...F.shared.providers.tooltips.getConfig({tooltipText:F.shared.providers.translate(Z.tooltip),onShow:on=>{if(Z.tooltip!==gt.get()){const yn=F.shared.providers.translate(gt.get());kd.setComponents(on,F.shared.providers.tooltips.getComponents({tooltipText:yn}))}}})})]},"tox-tbtn",F.shared,Be)},_R=s=>oe(s,F=>{let Z=F,ue=F;const we=F.split("=");return we.length>1&&(Z=we[0],ue=we[1]),{title:Z,format:ue}}),wR=s=>({type:"basic",data:s});var C4;(function(s){s[s.SemiColon=0]="SemiColon",s[s.Space=1]="Space"})(C4||(C4={}));const Mte=(s,F)=>F===C4.SemiColon?s.replace(/;$/,"").split(";"):s.split(" "),OR=(s,F,Z)=>{const ue=s.options.get(F);return{type:"basic",data:_R(Mte(ue,Z))}},Ete="Align",wU=x("Alignment {0}"),OU="left",SR=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],SU=s=>{const F=()=>ce(SR,ft=>s.formatter.match(ft.format)),Z=ft=>()=>s.formatter.match(ft),ue=ft=>I.none,we=ft=>{const At=F().fold(x(OU),$t=>$t.title.toLowerCase());Ri(ft,F2,{icon:`align-${At}`}),sX(s,{value:At})},Be=wR(SR),qe=ft=>()=>ce(SR,gt=>gt.format===ft.format).each(gt=>s.execCommand(gt.command));return{tooltip:sO(s,wU(),OU),text:I.none(),icon:I.some("align-left"),isSelectedFor:Z,getCurrentValue:I.none,getPreviewFor:ue,onAction:qe,updateText:we,dataset:Be,shouldHide:!1,isInvalid:ft=>!s.formatter.canApply(ft.format)}},Pte=(s,F)=>Ek(s,F,SU(s),wU,"AlignTextUpdate","align"),kU=(s,F)=>{const Z=T4(F,SU(s));s.ui.registry.addNestedMenuItem("align",{text:F.shared.providers.translate(Ete),onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},Pk=(s,F)=>{const Z=F(),ue=oe(Z,we=>we.format);return I.from(s.formatter.closest(ue)).bind(we=>ce(Z,Be=>Be.format===we))},kR="Blocks",TR=x("Block {0}"),Uy="Paragraph",CR=s=>{const F=Be=>()=>s.formatter.match(Be),Z=Be=>()=>{const qe=s.formatter.get(Be);return qe?I.some({tag:qe.length>0&&(qe[0].inline||qe[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(Be))}):I.none()},ue=Be=>{const ft=Pk(s,()=>we.data).fold(x(Uy),gt=>gt.title);Ri(Be,Mg,{text:ft}),RF(s,{value:ft})},we=OR(s,"block_formats",C4.SemiColon);return{tooltip:sO(s,TR(),Uy),text:I.some(Uy),icon:I.none(),isSelectedFor:F,getCurrentValue:I.none,getPreviewFor:Z,onAction:LF(s),updateText:ue,dataset:we,shouldHide:!1,isInvalid:Be=>!s.formatter.canApply(Be.format)}},Rte=(s,F)=>Ek(s,F,CR(s),TR,"BlocksTextUpdate","blocks"),Lte=(s,F)=>{const Z=T4(F,CR(s));s.ui.registry.addNestedMenuItem("blocks",{text:kR,onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},Ite="Fonts",TU=x("Font {0}"),AR="System Font",Dte=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],CU=s=>{const F=s.split(/\s*,\s*/);return oe(F,Z=>Z.replace(/^['"]+|['"]+$/g,""))},MR=(s,F)=>F.length>0&&_e(F,Z=>s.indexOf(Z.toLowerCase())>-1),Bte=(s,F)=>{if(s.indexOf("-apple-system")===0||F.length>0){const Z=CU(s.toLowerCase());return MR(Z,Dte)||MR(Z,F)}else return!1},AU=s=>{const F=()=>{const gt=Mn=>Mn?CU(Mn)[0]:"",At=s.queryCommandValue("FontName"),$t=ft.data,on=At?At.toLowerCase():"",yn=pz(s);return{matchOpt:ce($t,Mn=>{const Xn=Mn.format;return Xn.toLowerCase()===on||gt(Xn).toLowerCase()===gt(on).toLowerCase()}).orThunk(()=>_t(Bte(on,yn),{title:AR,format:on})),font:At}},Z=gt=>At=>At.exists($t=>$t.format===gt),ue=()=>{const{matchOpt:gt}=F();return gt},we=gt=>()=>I.some({tag:"div",styles:gt.indexOf("dings")===-1?{"font-family":gt}:{}}),Be=gt=>()=>{s.undoManager.transact(()=>{s.focus(),s.execCommand("FontName",!1,gt.format)})},qe=gt=>{const{matchOpt:At,font:$t}=F(),on=At.fold(x($t),yn=>yn.title);Ri(gt,Mg,{text:on}),lX(s,{value:on})},ft=OR(s,"font_family_formats",C4.SemiColon);return{tooltip:sO(s,TU(),AR),text:I.some(AR),icon:I.none(),isSelectedFor:Z,getCurrentValue:ue,getPreviewFor:we,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},ER=(s,F)=>Ek(s,F,AU(s),TU,"FontFamilyTextUpdate","fontfamily"),zte=(s,F)=>{const Z=T4(F,AU(s));s.ui.registry.addNestedMenuItem("fontfamily",{text:F.shared.providers.translate(Ite),onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},Fte={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Nte=(()=>{const s="[0-9]+",Z="[eE]"+("[+-]?"+s),ue="\\.",we=ft=>`(?:${ft})?`,qe=`[+-]?(?:${["Infinity",s+ue+we(s)+we(Z),ue+s+we(Z),s+we(Z)].join("|")})`;return new RegExp(`^(${qe})(.*)$`)})(),$te=(s,F)=>te(F,Z=>te(Fte[Z],ue=>s===ue)),V8=(s,F)=>I.from(Nte.exec(s)).bind(ue=>{const we=Number(ue[1]),Be=ue[2];return $te(Be,F)?I.some({value:we,unit:Be}):I.none()}),Vte=(s,F)=>V8(s,F).map(({value:Z,unit:ue})=>Z+ue),PR={tab:x(9),escape:x(27),enter:x(13),backspace:x(8),delete:x(46),left:x(37),up:x(38),right:x(39),down:x(40),space:x(32),home:x(36),end:x(35),pageUp:x(33),pageDown:x(34)},MU=(s,F,Z,ue)=>{let we=I.none();const Be=kr=>kr.map(yo=>hi.getValue(yo)).getOr(""),qe=Zw(s,"NodeChange SwitchMode",kr=>{const yo=kr.getComponent();we=I.some(yo),Z.updateInputValue(yo),ea.set(yo,!s.selection.isEditable())}),ft=kr=>({getComponent:x(kr)}),gt=xi(v),At=fi("custom-number-input-events"),$t=(kr,yo,Xr)=>{const No=Be(we),Jo=Z.getNewValue(No,kr),ho=No.length-`${Jo}`.length,Ci=we.map(qi=>qi.element.dom.selectionStart-ho),mi=we.map(qi=>qi.element.dom.selectionEnd-ho);Z.onAction(Jo,Xr),we.each(qi=>{hi.setValue(qi,Jo),yo&&(Ci.each(Fi=>qi.element.dom.selectionStart=Fi),mi.each(Fi=>qi.element.dom.selectionEnd=Fi))})},on=(kr,yo)=>$t((Xr,No)=>Xr-No,kr,yo),yn=(kr,yo)=>$t((Xr,No)=>Xr+No,kr,yo),wn=kr=>Cr(kr.element).fold(I.none,yo=>(bd(yo),I.some(!0))),Mn=kr=>dy(kr.element)?(hr(kr.element).each(yo=>bd(yo)),I.some(!0)):I.none(),Xn=(kr,yo,Xr,No)=>{const Jo=xi(v),ho=F.shared.providers.translate(Xr),Ci=fi("altExecuting"),mi=Zw(s,"NodeChange SwitchMode",Fi=>{ea.set(Fi.getComponent(),!s.selection.isEditable())}),qi=Fi=>{ea.isDisabled(Fi)||kr(!0)};return Vd.sketch({dom:{tag:"button",attributes:{"aria-label":ho,"data-mce-name":yo},classes:No.concat(yo)},components:[t8(yo,F.shared.providers.icons)],buttonBehaviours:Do([ea.config({}),kd.config(F.shared.providers.tooltips.getConfig({tooltipText:ho})),Ta(Ci,[tx({onSetup:mi,getApi:ft},Jo),Ih({getApi:ft},Jo),fo(Bp(),(Fi,Os)=>{(Os.event.raw.keyCode===PR.space()||Os.event.raw.keyCode===PR.enter())&&(ea.isDisabled(Fi)||kr(!1))}),fo(R0(),qi),fo(wm(),qi)])]),eventOrder:{[Bp()]:[Ci,"keying"],[R0()]:[Ci,"alloy.base.behaviour"],[wm()]:[Ci,"alloy.base.behaviour"],[zd()]:["alloy.base.behaviour",Ci,"tooltipping"],[fp()]:[Ci,"tooltipping"]}})},Br=qs(Xn(kr=>on(!1,kr),"minus","Decrease font size",[])),or=qs(Xn(kr=>yn(!1,kr),"plus","Increase font size",[])),Mr=qs({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[Nw.sketch({inputBehaviours:Do([ea.config({}),Ta(At,[tx({onSetup:qe,getApi:ft},gt),Ih({getApi:ft},gt)]),Ta("input-update-display-text",[fo(Mg,(kr,yo)=>{hi.setValue(kr,yo.event.text)}),fo(ap(),kr=>{Z.onAction(hi.getValue(kr))}),fo(Zv(),kr=>{Z.onAction(hi.getValue(kr))})]),Li.config({mode:"special",onEnter:kr=>($t(R,!0,!0),I.some(!0)),onEscape:wn,onUp:kr=>(yn(!0,!1),I.some(!0)),onDown:kr=>(on(!0,!1),I.some(!0)),onLeft:(kr,yo)=>(yo.cut(),I.none()),onRight:(kr,yo)=>(yo.cut(),I.none())})])})],behaviours:Do([oa.config({}),Li.config({mode:"special",onEnter:Mn,onSpace:Mn,onEscape:wn}),Ta("input-wrapper-events",[fo(Om(),kr=>{q([Br,or],yo=>{const Xr=Pt.fromDom(yo.get(kr).element.dom);dy(Xr)&&a0(Xr)})})])])});return{dom:{tag:"div",classes:["tox-number-input"],attributes:{...a(ue)?{"data-mce-name":ue}:{}}},components:[Br.asSpec(),Mr.asSpec(),or.asSpec()],behaviours:Do([oa.config({}),Li.config({mode:"flow",focusInside:qb.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:kr=>dy(kr.element)?I.none():(bd(kr.element),I.some(!0))})])}},EU="Font sizes",PU=x("Font size {0}"),RR="12pt",Ute={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},jte={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},Qte=(s,F)=>{const Z=Math.pow(10,F);return Math.round(s*Z)/Z},RU=(s,F)=>/[0-9.]+px$/.test(s)?Qte(parseInt(s,10)*72/96,F||0)+"pt":Ge(jte,s).getOr(s),Hte=s=>Ge(Ute,s).getOr(""),LR=s=>{const F=()=>{let gt=I.none();const At=ft.data,$t=s.queryCommandValue("FontSize");if($t)for(let on=3;gt.isNone()&&on>=0;on--){const yn=RU($t,on),wn=Hte(yn);gt=ce(At,Mn=>Mn.format===$t||Mn.format===yn||Mn.format===wn)}return{matchOpt:gt,size:$t}},Z=gt=>At=>At.exists($t=>$t.format===gt),ue=()=>{const{matchOpt:gt}=F();return gt},we=x(I.none),Be=gt=>()=>{s.undoManager.transact(()=>{s.focus(),s.execCommand("FontSize",!1,gt.format)})},qe=gt=>{const{matchOpt:At,size:$t}=F(),on=At.fold(x($t),yn=>yn.title);Ri(gt,Mg,{text:on}),sP(s,{value:on})},ft=OR(s,"font_size_formats",C4.Space);return{tooltip:sO(s,PU(),RR),text:I.some(RR),icon:I.none(),isSelectedFor:Z,getPreviewFor:we,getCurrentValue:ue,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},Zte=(s,F)=>Ek(s,F,LR(s),PU,"FontSizeTextUpdate","fontsize"),qte=s=>{var F;const Z={step:1};return(F={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[s])!==null&&F!==void 0?F:Z},Wte=16,Yte=s=>s>=0,Xte=s=>{const F=()=>s.queryCommandValue("FontSize");return{updateInputValue:ue=>Ri(ue,Mg,{text:F()}),onAction:(ue,we)=>s.execCommand("FontSize",!1,ue,{skip_focus:!we}),getNewValue:(ue,we)=>{V8(ue,["unsupportedLength","empty"]);const Be=F(),qe=V8(ue,["unsupportedLength","empty"]).or(V8(Be,["unsupportedLength","empty"])),ft=qe.map(yn=>yn.value).getOr(Wte),gt=JE(s),At=qe.map(yn=>yn.unit).filter(yn=>yn!=="").getOr(gt),$t=we(ft,qte(At).step),on=`${Yte($t)?$t:ft}${At}`;return on!==Be&&PF(s,{value:on}),on}}},Gte=(s,F)=>MU(s,F,Xte(s),"fontsizeinput"),Kte=(s,F)=>{const Z=T4(F,LR(s));s.ui.registry.addNestedMenuItem("fontsize",{text:EU,onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},LU="Formats",IU=s=>at(s)?"Formats":"Format {0}",DU=(s,F)=>{const Z="Formats",ue=qe=>()=>s.formatter.match(qe),we=qe=>()=>{const ft=s.formatter.get(qe);return ft!==void 0?I.some({tag:ft.length>0&&(ft[0].inline||ft[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(qe))}):I.none()},Be=qe=>{const ft=on=>_V(on)?ye(on.items,ft):wV(on)?[{title:on.title,format:on.format}]:[],gt=ye(B9(s),ft),$t=Pk(s,x(gt)).fold(x({title:Z,tooltipLabel:""}),on=>({title:on.title,tooltipLabel:on.title}));Ri(qe,Mg,{text:$t.title}),aX(s,{value:$t.tooltipLabel})};return{tooltip:sO(s,IU(""),""),text:I.some(Z),icon:I.none(),isSelectedFor:ue,getCurrentValue:I.none,getPreviewFor:we,onAction:LF(s),updateText:Be,shouldHide:nz(s),isInvalid:qe=>!s.formatter.canApply(qe.format),dataset:F}},Jte=(s,F)=>{const Z={type:"advanced",...F.styles};return Ek(s,F,DU(s,Z),IU,"StylesTextUpdate","styles")},ene=(s,F)=>{const Z={type:"advanced",...F.styles},ue=T4(F,DU(s,Z));s.ui.registry.addNestedMenuItem("styles",{text:LU,onSetup:Gh(s),getSubmenuItems:()=>ue.items.validateItems(ue.getStyleItems())})},tne=x([Sn("toggleClass"),Sn("fetch"),Zh("onExecute"),mr("getHotspot",I.some),mr("getAnchorOverrides",x({})),l0(),Zh("onItemExecute"),Hr("lazySink"),Sn("dom"),Ra("onOpen"),Ef("splitDropdownBehaviours",[lu,Li,oa]),mr("matchWidth",!1),mr("useMinWidth",!1),mr("eventOrder",{}),Hr("role"),Hr("listRole")].concat(MC())),nne=Sd({factory:Vd,schema:[Sn("dom")],name:"arrow",defaults:()=>({buttonBehaviours:Do([oa.revoke()])}),overrides:s=>({dom:{tag:"span",attributes:{role:"presentation"}},action:F=>{F.getSystem().getByUid(s.uid).each(Fp)},buttonBehaviours:Do([za.config({toggleOnExecute:!1,toggleClass:s.toggleClass})])})}),rne=Sd({factory:Vd,schema:[Sn("dom")],name:"button",defaults:()=>({buttonBehaviours:Do([oa.revoke()])}),overrides:s=>({dom:{tag:"span",attributes:{role:"presentation"}},action:F=>{F.getSystem().getByUid(s.uid).each(Z=>{s.onExecute(Z,F)})}})}),BU=x([nne,rne,Jp({factory:{sketch:s=>({uid:s.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:s.text}})},schema:[Sn("text")],name:"aria-descriptor"}),Um({schema:[U0()],name:"menu",defaults:s=>({onExecute:(F,Z)=>{F.getSystem().getByUid(s.uid).each(ue=>{s.onItemExecute(ue,F,Z)})}})}),oN()]),one=(s,F,Z,ue)=>{const we=$t=>{as.getCurrent($t).each(on=>{ri.highlightFirst(on),Li.focusIn(on)})},Be=$t=>{vP(s,R,$t,ue,we,Xh.HighlightMenuAndItem).get(v)},qe=$t=>(Be($t),I.some(!0)),ft=$t=>{const on=Ph($t,s,"button");return Fp(on),I.some(!0)},gt={...hl([Ll(($t,on)=>{Fo($t,s,"aria-descriptor").each(wn=>{const Mn=fi("aria");fr(wn.element,"id",Mn),fr($t.element,"aria-describedby",Mn)})})]),...k6(I.some(Be))},At={repositionMenus:$t=>{za.isOn($t)&&xP($t)}};return{uid:s.uid,dom:s.dom,components:F,apis:At,eventOrder:{...s.eventOrder,[cp()]:["disabling","toggling","alloy.base.behaviour"]},events:gt,behaviours:Pf(s.splitDropdownBehaviours,[lu.config({others:{sandbox:$t=>{const on=Ph($t,s,"arrow");return bP(s,$t,{onOpen:()=>{za.on(on),za.on($t)},onClose:()=>{za.off(on),za.off($t)}})}}}),Li.config({mode:"special",onSpace:ft,onEnter:ft,onDown:qe}),oa.config({}),za.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:s.role.getOr("button"),"aria-haspopup":!0}}}},U8=ch({name:"SplitDropdown",configFields:tne(),partFields:BU(),factory:one,apis:{repositionMenus:(s,F)=>s.repositionMenus(F)}}),IR=s=>({isEnabled:()=>!ea.isDisabled(s),setEnabled:F=>ea.set(s,!F),setText:F=>Ri(s,Mg,{text:F}),setIcon:F=>Ri(s,F2,{icon:F})}),ine=s=>({setActive:F=>{za.set(s,F)},isActive:()=>za.isOn(s),isEnabled:()=>!ea.isDisabled(s),setEnabled:F=>ea.set(s,!F),setText:F=>Ri(s,Mg,{text:F}),setIcon:F=>Ri(s,F2,{icon:F})}),DR=(s,F)=>s.map(Z=>({"aria-label":F.translate(Z)})).getOr({}),BR=fi("focus-button"),zR=(s,F,Z,ue,we,Be)=>{const qe=F.map(gt=>qs(A$(gt,"tox-tbtn",we))),ft=s.map(gt=>qs(ax(gt,we.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(F.isSome()?["tox-tbtn--select"]:[]),attributes:{...DR(Z,we),...a(Be)?{"data-mce-name":Be}:{}}},components:jw([ft.map(gt=>gt.asSpec()),qe.map(gt=>gt.asSpec())]),eventOrder:{[Oh()]:["focusing","alloy.base.behaviour",ix],[zd()]:[ix,"toolbar-group-button-events"]},buttonBehaviours:Do([s1.toolbarButton(we.isDisabled),df(),Ta(ix,[Ll((gt,At)=>a9(gt)),fo(Mg,(gt,At)=>{qe.bind($t=>$t.getOpt(gt)).each($t=>{da.set($t,[ro(we.translate(At.event.text))])})}),fo(F2,(gt,At)=>{ft.bind($t=>$t.getOpt(gt)).each($t=>{da.set($t,[ax(At.event.icon,we.icons)])})}),fo(Oh(),(gt,At)=>{At.event.prevent(),Sa(gt,BR)})])].concat(ue.getOr([])))}},ane=(s,F,Z,ue,we)=>{const Be=F.shared,qe=xi(v),ft={toolbarButtonBehaviours:[],getApi:IR,onSetup:s.onSetup},gt=[Ta("toolbar-group-button-events",[tx(ft,qe),Ih(ft,qe)])];return $2.sketch({lazySink:Be.getSink,fetch:()=>uh.nu(At=>{At(oe(Z(s.items),Ak))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:zR(s.icon,s.text,s.tooltip,I.some(gt),Be.providers,we),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:ue}}}})},zU=(s,F,Z,ue)=>{var we;const Be=xi(v),qe=zR(s.icon,s.text,s.tooltip,I.none(),Z,ue);return Vd.sketch({dom:qe.dom,components:qe.components,eventOrder:i9,buttonBehaviours:{...Do([Ta("toolbar-button-events",[RK({onAction:s.onAction,getApi:F.getApi}),tx(F,Be),Ih(F,Be)]),...s.tooltip.map(ft=>kd.config(Z.tooltips.getConfig({tooltipText:Z.translate(ft)+s.shortcut.map(gt=>` (${gC(gt)})`).getOr("")}))).toArray(),s1.toolbarButton(()=>!s.enabled||Z.isDisabled()),df()].concat(F.toolbarButtonBehaviours)),[ix]:(we=qe.buttonBehaviours)===null||we===void 0?void 0:we[ix]}})},A4=(s,F,Z)=>FU(s,F,[],Z),FU=(s,F,Z,ue)=>zU(s,{toolbarButtonBehaviours:Z.length>0?[Ta("toolbarButtonWith",Z)]:[],getApi:IR,onSetup:s.onSetup},F,ue),sne=(s,F,Z)=>NU(s,F,[],Z),NU=(s,F,Z,ue)=>zU(s,{toolbarButtonBehaviours:[da.config({}),za.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(Z.length>0?[Ta("toolbarToggleButtonWith",Z)]:[]),getApi:ine,onSetup:s.onSetup},F,ue),lne=(s,F,Z)=>ue=>uh.nu(we=>F.fetch(we)).map(we=>I.from(o4(nl(hP(fi("menu-value"),we,Be=>{F.onItemAction(s(ue),Be)},F.columns,F.presets,r1.CLOSE_ON_EXECUTE,F.select.getOr(D),Z),{movement:CC(F.columns,F.presets),menuBehaviours:K3.unnamedEvents(F.columns!=="auto"?[]:[Ll((Be,qe)=>{hC(Be,4,R7(F.presets)).each(({numRows:ft,numColumns:gt})=>{Li.setGridSize(Be,ft,gt)})})])})))),cne=(s,F,Z)=>{const ue=xi(s.tooltip.getOr("")),we=ft=>({isEnabled:()=>!ea.isDisabled(ft),setEnabled:gt=>ea.set(ft,!gt),setIconFill:(gt,At)=>{aa(ft.element,`svg path[class="${gt}"], rect[class="${gt}"]`).each($t=>{fr($t,"fill",At)})},setActive:gt=>{fr(ft.element,"aria-pressed",gt),aa(ft.element,"span").each(At=>{ft.getSystem().getByDom(At).each($t=>za.set($t,gt))})},isActive:()=>aa(ft.element,"span").exists(gt=>ft.getSystem().getByDom(gt).exists(za.isOn)),setText:gt=>aa(ft.element,"span").each(At=>ft.getSystem().getByDom(At).each($t=>Ri($t,Mg,{text:gt}))),setIcon:gt=>aa(ft.element,"span").each(At=>ft.getSystem().getByDom(At).each($t=>Ri($t,F2,{icon:gt}))),setTooltip:gt=>{const At=F.providers.translate(gt);fr(ft.element,"aria-label",At),ue.set(gt)}}),Be=xi(v),qe={getApi:we,onSetup:s.onSetup};return U8.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...DR(s.tooltip,F.providers),...a(Z)?{"data-mce-name":Z}:{}}},onExecute:ft=>{const gt=we(ft);gt.isEnabled()&&s.onAction(gt)},onItemExecute:(ft,gt,At)=>{},splitDropdownBehaviours:Do([s1.splitButton(F.providers.isDisabled),df(),Ta("split-dropdown-events",[Ll((ft,gt)=>a9(ft)),fo(BR,oa.focus),tx(qe,Be),Ih(qe,Be)]),u4.config({}),...s.tooltip.map(ft=>kd.config({...F.providers.tooltips.getConfig({tooltipText:F.providers.translate(ft),onShow:gt=>{if(ue.get()!==ft){const At=F.providers.translate(ue.get());kd.setComponents(gt,F.providers.tooltips.getComponents({tooltipText:At}))}}})})).toArray()]),eventOrder:{[zd()]:["alloy.base.behaviour","split-dropdown-events","tooltipping"],[fp()]:["split-dropdown-events","tooltipping"]},toggleClass:"tox-tbtn--enabled",lazySink:F.getSink,fetch:lne(we,s,F.providers),parts:{menu:F5(!1,s.columns,s.presets)},components:[U8.parts.button(zR(s.icon,s.text,I.none(),I.some([za.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),F.providers)),U8.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:Az("chevron-down",F.providers.icons)},buttonBehaviours:Do([s1.splitButton(F.providers.isDisabled),df(),S7()])}),U8.parts["aria-descriptor"]({text:F.providers.translate("To open the popup, press Shift+Enter")})]})},une=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],Rk=(s,F)=>(Z,ue,we,Be)=>{const qe=s(Z).mapError(ft=>sn(ft)).getOrDie();return F(qe,ue,we,Be)},fne={button:Rk(i1,(s,F,Z,ue)=>A4(s,F.shared.providers,ue)),togglebutton:Rk(cC,(s,F,Z,ue)=>sne(s,F.shared.providers,ue)),menubutton:Rk($V,(s,F,Z,ue)=>mk(s,"tox-tbtn",F,I.none(),!1,ue)),splitbutton:Rk(VV,(s,F,Z,ue)=>cne(s,F.shared,ue)),grouptoolbarbutton:Rk(Tee,(s,F,Z,ue)=>{const we=Z.ui.registry.getAll().buttons,Be=ft=>j8(Z,{buttons:we,toolbar:ft,allowToolbarGroups:!1},F,I.none()),qe={[s0]:F.shared.header.isPositionedAtTop()?Og.TopToBottom:Og.BottomToTop};switch(Dw(Z)){case Hm.floating:return ane(s,F,Be,qe,ue);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},FR=(s,F,Z,ue)=>Ge(fne,s.type).fold(()=>(console.error("skipping button defined by",s),I.none()),we=>I.some(we(s,F,Z,ue))),$U={styles:Jte,fontsize:Zte,fontsizeinput:Gte,fontfamily:ER,blocks:Rte,align:Pte},dne=s=>{const F=oe(une,Z=>{const ue=me(Z.items,we=>ht(s,we)||ht($U,we));return{name:Z.name,items:ue}});return me(F,Z=>Z.items.length>0)},VU=s=>{const F=s.split("|");return oe(F,Z=>({items:Z.trim().split(" ")}))},UU=s=>m(s,F=>ht(F,"name")&&ht(F,"items")),hne=s=>{const F=s.toolbar,Z=s.buttons;return F===!1?[]:F===void 0||F===!0?dne(Z):n(F)?VU(F):UU(F)?F:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},pne=(s,F,Z,ue,we,Be)=>Ge(F,Z.toLowerCase()).orThunk(()=>Be.bind(qe=>Oe(qe,ft=>Ge(F,ft+Z.toLowerCase())))).fold(()=>Ge($U,Z.toLowerCase()).map(qe=>qe(s,we)),qe=>qe.type==="grouptoolbarbutton"&&!ue?(console.warn(`Ignoring the '${Z}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),I.none()):FR(qe,we,s,Z.toLowerCase())),j8=(s,F,Z,ue)=>{const we=hne(F),Be=oe(we,qe=>{const ft=ye(qe.items,gt=>gt.trim().length===0?[]:pne(s,F.buttons,gt,F.allowToolbarGroups,Z,ue).toArray());return{title:I.from(s.translate(qe.name)),items:ft}});return me(Be,qe=>qe.items.length>0)},jU=(s,F,Z,ue)=>{const we=F.mainUi.outerContainer,Be=Z.toolbar,qe=Z.buttons;if(m(Be,n)){const ft=Be.map(gt=>{const At={toolbar:gt,buttons:qe,allowToolbarGroups:Z.allowToolbarGroups};return j8(s,At,ue,I.none())});Yl.setToolbars(we,ft)}else Yl.setToolbar(we,j8(s,Z,ue,I.none()))},QU=rf(),mne=QU.os.isiOS()&&QU.os.version.major<=12,HU=(s,F)=>{const{uiMotherships:Z}=F,ue=s.dom;let we=s.getWin();const Be=s.getDoc().documentElement,qe=xi(Ws(we.innerWidth,we.innerHeight)),ft=xi(Ws(Be.offsetWidth,Be.offsetHeight)),gt=()=>{const yn=qe.get();(yn.left!==we.innerWidth||yn.top!==we.innerHeight)&&(qe.set(Ws(we.innerWidth,we.innerHeight)),e4(s))},At=()=>{const yn=s.getDoc().documentElement,wn=ft.get();(wn.left!==yn.offsetWidth||wn.top!==yn.offsetHeight)&&(ft.set(Ws(yn.offsetWidth,yn.offsetHeight)),e4(s))},$t=yn=>{MF(s,yn)};ue.bind(we,"resize",gt),ue.bind(we,"scroll",$t);const on=Kx(Pt.fromDom(s.getBody()),"load",At);s.on("hide",()=>{q(Z,yn=>{ko(yn.element,"display","none")})}),s.on("show",()=>{q(Z,yn=>{ma(yn.element,"display")})}),s.on("NodeChange",At),s.on("remove",()=>{on.unbind(),ue.unbind(we,"resize",gt),ue.unbind(we,"scroll",$t),we=null})},gne=(s,F,Z)=>{C2(s)&&G0(Z.mainUi.mothership.element,Z.popupUi.mothership),ZT(F,Z.dialogUi.mothership)};var vne=Object.freeze({__proto__:null,render:(s,F,Z,ue,we)=>{const{mainUi:Be,uiMotherships:qe}=F,ft=xi(0),gt=Be.outerContainer;Tte(s);const At=Pt.fromDom(we.targetNode),$t=nr(vr(At));G0(At,Be.mothership),gne(s,$t,F),s.on("SkinLoaded",()=>{Yl.setSidebar(gt,Z.sidebar,dz(s)),jU(s,F,Z,ue),ft.set(s.getWin().innerWidth),Yl.setMenubar(gt,$8(s,Z)),Yl.setViews(gt,Z.views),HU(s,F)});const on=Yl.getSocket(gt).getOrDie("Could not find expected socket element");if(mne){ra(on.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const Xn=wK(()=>{s.dispatch("ScrollContent")},20),Br=_d(on.element,"scroll",Xn.throttle);s.on("remove",Br.unbind)}pC(s,F),s.addCommand("ToggleSidebar",(Xn,Br)=>{Yl.toggleSidebar(gt,Br),s.dispatch("ToggleSidebar")}),s.addQueryValueHandler("ToggleSidebar",()=>{var Xn;return(Xn=Yl.whichSidebar(gt))!==null&&Xn!==void 0?Xn:""}),s.addCommand("ToggleView",(Xn,Br)=>{if(Yl.toggleView(gt,Br)){const or=gt.element;Be.mothership.broadcastOn([K0()],{target:or}),q(qe,Mr=>{Mr.broadcastOn([K0()],{target:or})}),O(Yl.whichView(gt))&&(s.focus(),s.nodeChanged(),Yl.refreshToolbar(gt))}}),s.addQueryValueHandler("ToggleView",()=>{var Xn;return(Xn=Yl.whichView(gt))!==null&&Xn!==void 0?Xn:""});const yn=Dw(s),wn=()=>{Yl.refreshToolbar(F.mainUi.outerContainer)};(yn===Hm.sliding||yn===Hm.floating)&&s.on("ResizeWindow ResizeEditor ResizeContent",()=>{const Xn=s.getWin().innerWidth;Xn!==ft.get()&&(wn(),ft.set(Xn))});const Mn={setEnabled:Xn=>{q5(F,!Xn)},isEnabled:()=>!ea.isDisabled(gt)};return{iframeContainer:on.element.dom,editorContainer:gt.element.dom,api:Mn}}});const ZU=s=>/^[0-9\.]+(|px)$/i.test(""+s)?I.some(parseInt(""+s,10)):I.none(),M4=s=>h(s)?s+"px":s,Q8=(s,F,Z)=>{const ue=F.filter(Be=>ss>Be);return ue.or(we).getOr(s)},H8=s=>{const F=WE(s),Z=M6(s),ue=YE(s);return ZU(F).map(we=>Q8(we,Z,ue))},Z8=s=>H8(s).getOr(WE(s)),NR=s=>{const F=Iw(s),Z=Z3(s),ue=k5(s);return ZU(F).map(we=>Q8(we,Z,ue))},yne=s=>NR(s).getOr(Iw(s)),{ToolbarLocation:$R,ToolbarMode:qU}=QW,bne=40,xne=(s,F,Z,ue,we)=>{const{mainUi:Be,uiMotherships:qe}=Z,ft=Lw.DOM,gt=q3(s),At=W3(s),$t=k5(s).or(NR(s)),on=ue.shared.header,yn=on.isPositionedAtTop,wn=150,Mn=Dw(s),Xn=Mn===qU.sliding||Mn===qU.floating,Br=xi(!1),or=()=>Br.get()&&!s.removed,Mr=Ha=>Xn?Ha.fold(x(0),Ho=>Ho.components().length>1?Ql(Ho.components()[1].element):0):0,kr=Ha=>{switch(GE(s)){case $R.auto:const Ho=Yl.getToolbar(Be.outerContainer),wi=Mr(Ho),_a=Ql(Ha.element)-wi,Ki=Ya(F);if(Ki.y>_a)return"top";{const ga=Pn(F),kl=Math.max(ga.dom.scrollHeight,Ql(ga));return Ki.bottom{we.on(Ho=>{Dl.setModes(Ho,[Ha]),on.setDockingMode(Ha);const wi=yn()?Og.TopToBottom:Og.BottomToTop;fr(Ho.element,s0,wi)})},Xr=()=>{we.on(Ha=>{const Ho=$t.getOrThunk(()=>yh().width-Cu(F).left-10);ko(Ha.element,"max-width",Ho+"px")})},No=(Ha,Ho)=>{we.on(wi=>{const _a=Yl.getToolbar(Be.outerContainer),Ki=Mr(_a),ji=Ya(F),ga=Jo(s,Be.outerContainer.element),kl=()=>ga.fold(()=>ji.x,dh=>{const zg=Ya(dh);return so(dh,Vr())?ji.x:ji.x-zg.x}),Ns=()=>ga.fold(()=>yn()?Math.max(ji.y-Ql(wi.element)+Ki,0):ji.bottom,dh=>{var zg;const w0=Ya(dh),im=(zg=dh.dom.scrollTop)!==null&&zg!==void 0?zg:0,mO=so(dh,Vr())?Math.max(ji.y-Ql(wi.element)+Ki,0):ji.y-w0.y+im-Ql(wi.element)+Ki;return yn()?mO:ji.bottom}),zh=kl(),Bg=_t(Ha,Math.ceil(Be.outerContainer.element.dom.getBoundingClientRect().width)).filter(dh=>dh>wn).map(dh=>{const zg=Ho.getOr(Hl()),w0=window.innerWidth-(zh-zg.left),im=Math.max(Math.min(dh,w0),wn);return w0C2(Ha)?n0(Ho):I.none(),ho=()=>{q(qe,Ha=>{Ha.broadcastOn([jb()],{})})},Ci=()=>!gt&&(pc(Be.outerContainer.element).left+hu(Be.outerContainer.element)>=window.innerWidth-bne||Na(Be.outerContainer.element,"width").isSome())?(ko(Be.outerContainer.element,"position","absolute"),ko(Be.outerContainer.element,"left","0px"),ma(Be.outerContainer.element,"width"),!0):!1,mi=Ha=>{if(!or())return;gt||Xr();const Ho=Hl(),wi=gt?!1:Ci();if(Xn&&Yl.refreshToolbar(Be.outerContainer),!gt){const _a=Hl(),Ki=_t(Ho.left!==_a.left,Ho);No(wi,Ki),Ki.each(ji=>{Ts(ji.left,_a.top)})}At&&we.on(Ha),ho()},qi=()=>gt||!At||!or()?!1:we.get().exists(Ha=>{const Ho=on.getDockingMode(),wi=kr(Ha);return wi!==Ho?(yo(wi),!0):!1});return{isVisible:or,isPositionedAtTop:yn,show:()=>{Br.set(!0),ko(Be.outerContainer.element,"display","flex"),ft.addClass(s.getBody(),"mce-edit-focus"),q(qe,Ha=>{ma(Ha.element,"display")}),qi(),C2(s)?mi(Ha=>Dl.isDocked(Ha)?Dl.reset(Ha):Dl.refresh(Ha)):mi(Dl.refresh)},hide:()=>{Br.set(!1),ko(Be.outerContainer.element,"display","none"),ft.removeClass(s.getBody(),"mce-edit-focus"),q(qe,Ha=>{ko(Ha.element,"display","none")})},update:mi,updateMode:()=>{qi()&&mi(Dl.reset)},repositionPopups:ho}},Lk=(s,F)=>{const Z=Ya(s);return{pos:F?Z.y:Z.bottom,bounds:Z}},WU=(s,F,Z,ue)=>{const we=xi(Lk(F,Z.isPositionedAtTop())),Be=At=>{const{pos:$t,bounds:on}=Lk(F,Z.isPositionedAtTop()),{pos:yn,bounds:wn}=we.get(),Mn=on.height!==wn.height||on.width!==wn.width;we.set({pos:$t,bounds:on}),Mn&&e4(s,At),Z.isVisible()&&(yn!==$t?Z.update(Dl.reset):Mn&&(Z.updateMode(),Z.repositionPopups()))};ue||(s.on("activate",Z.show),s.on("deactivate",Z.hide)),s.on("SkinLoaded ResizeWindow",()=>Z.update(Dl.reset)),s.on("NodeChange keydown",At=>{requestAnimationFrame(()=>Be(At))});let qe=0;const ft=fk(()=>Z.update(Dl.refresh),33);s.on("ScrollWindow",()=>{const At=Hl().left;At!==qe&&(qe=At,ft.throttle()),Z.updateMode()}),C2(s)&&s.on("ElementScroll",At=>{Z.update(Dl.refresh)});const gt=js();gt.set(Kx(Pt.fromDom(s.getBody()),"load",At=>Be(At.raw))),s.on("remove",()=>{gt.clear()})};var YU=Object.freeze({__proto__:null,render:(s,F,Z,ue,we)=>{const{mainUi:Be}=F,qe=os(),ft=Pt.fromDom(we.targetNode),gt=xne(s,ft,F,ue,qe),At=oz(s);Cte(s);const $t=()=>{if(qe.isSet()){gt.show();return}qe.set(Yl.getHeader(Be.outerContainer).getOrDie());const yn=C5(s);C2(s)?(G0(ft,Be.mothership),G0(ft,F.popupUi.mothership)):ZT(yn,Be.mothership),ZT(yn,F.dialogUi.mothership);const wn=()=>{jU(s,F,Z,ue),Yl.setMenubar(Be.outerContainer,$8(s,Z)),gt.show(),WU(s,ft,gt,At),s.nodeChanged()};At?s.once("SkinLoaded",wn):wn()};s.on("show",$t),s.on("hide",gt.hide),At||(s.on("focus",$t),s.on("blur",gt.hide)),s.on("init",()=>{(s.hasFocus()||At)&&$t()}),pC(s,F);const on={show:$t,hide:gt.hide,setEnabled:yn=>{q5(F,!yn)},isEnabled:()=>!ea.isDisabled(Be.outerContainer)};return{editorContainer:Be.outerContainer.element.dom,api:on}}});const XU=()=>{const s=os(),F=os(),Z=os();return{dialogUi:s,popupUi:F,mainUi:Z,getUiMotherships:()=>{const Be=s.get().map(ft=>ft.mothership),qe=F.get().map(ft=>ft.mothership);return Be.fold(()=>qe.toArray(),ft=>qe.fold(()=>[ft],gt=>so(ft.element,gt.element)?[ft]:[ft,gt]))},lazyGetInOuterOrDie:(Be,qe)=>()=>Z.get().bind(ft=>qe(ft.outerContainer)).getOrDie(`Could not find ${Be} element in OuterContainer`)}},wne="contexttoolbar-show",VR="contexttoolbar-hide",One=s=>({hide:()=>Sa(s,L0()),getValue:()=>hi.getValue(s)}),GU=(s,F)=>fo(e8,(Z,ue)=>{const we=s.get(Z),Be=One(we);F.onAction(Be,ue.event.buttonApi)}),Sne=(s,F,Z)=>{const{primary:ue,...we}=F.original,Be=Nt(i1({...we,type:"button",onAction:v}));return FU(Be,Z,[GU(s,F)])},kne=(s,F,Z)=>{const{primary:ue,...we}=F.original,Be=Nt(cC({...we,type:"togglebutton",onAction:v}));return NU(Be,Z,[GU(s,F)])},Tne=s=>s.type==="contextformtogglebutton",Ik=(s,F,Z)=>Tne(F)?kne(s,F,Z):Sne(s,F,Z),Cne=(s,F,Z)=>{const ue=oe(F,qe=>qs(Ik(s,qe,Z)));return{asSpecs:()=>oe(ue,qe=>qe.asSpec()),findPrimary:qe=>Oe(F,(ft,gt)=>ft.primary?I.from(ue[gt]).bind(At=>At.getOpt(qe)).filter(E(ea.isDisabled)):I.none())}},KU=(s,F)=>{const Z=s.label.fold(()=>({}),Be=>({"aria-label":Be})),ue=qs(Nw.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:s.initValue(),inputAttributes:Z,selectOnFocus:!0,inputBehaviours:Do([Li.config({mode:"special",onEnter:Be=>we.findPrimary(Be).map(qe=>(Fp(qe),!0)),onLeft:(Be,qe)=>(qe.cut(),I.none()),onRight:(Be,qe)=>(qe.cut(),I.none())})])})),we=Cne(ue,s.commands,F);return[{title:I.none(),items:[ue.asSpec()]},{title:I.none(),items:we.asSpecs()}]},JU={renderContextForm:(s,F,Z)=>B8({type:s,uid:fi("context-toolbar"),initGroups:KU(F,Z),onEscape:I.none,cyclicKeying:!0,providers:Z}),buildInitGroups:KU},ej=(s,F,Z)=>F.bottom-s.y>=Z&&s.bottom-F.y>=Z,tj=s=>{const F=s.getBoundingClientRect();if(F.height<=0&&F.width<=0){const Z=zn(Pt.fromDom(s.startContainer),s.startOffset).element;return(_r(Z)?br(Z):I.some(Z)).filter(Kn).map(we=>we.dom.getBoundingClientRect()).getOr(F)}else return F},UR=s=>{const F=s.selection.getRng(),Z=tj(F);if(s.inline){const ue=Hl();return ms(ue.left+Z.left,ue.top+Z.top,Z.width,Z.height)}else{const ue=bl(Pt.fromDom(s.getBody()));return ms(ue.x+Z.left,ue.y+Z.top,Z.width,Z.height)}},Ane=(s,F)=>F.filter(Z=>Er(Z)&&Wn(Z)).map(bl).getOrThunk(()=>UR(s)),Mne=(s,F,Z)=>{const ue=Math.max(s.x+Z,F.x),we=Math.min(s.right-Z,F.right);return{x:ue,width:we-ue}},Ene=(s,F,Z,ue,we,Be)=>{const qe=Pt.fromDom(s.getContainer()),ft=aa(qe,".tox-editor-header").getOr(qe),gt=Ya(ft),At=gt.y>=F.bottom,$t=ue&&!At;if(s.inline&&$t)return{y:Math.max(gt.bottom+Be,Z.y),bottom:Z.bottom};if(s.inline&&!$t)return{y:Z.y,bottom:Math.min(gt.y-Be,Z.bottom)};const on=we==="line"?Ya(qe):F;return $t?{y:Math.max(gt.bottom+Be,Z.y),bottom:Math.min(on.bottom-Be,Z.bottom)}:{y:Math.max(on.y+Be,Z.y),bottom:Math.min(gt.y-Be,Z.bottom)}},nj=(s,F,Z,ue=0)=>{const we=yh(window),Be=Ya(Pt.fromDom(s.getContentAreaContainer())),qe=B6(s)||F6(s)||Bw(s),{x:ft,width:gt}=Mne(Be,we,ue);if(s.inline&&!qe)return ms(ft,we.y,gt,we.height);{const At=F.header.isPositionedAtTop(),{y:$t,bottom:on}=Ene(s,Be,we,At,Z,ue);return ms(ft,$t,gt,on-$t)}},V2=12,jR={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},rj={maxHeightFunction:W0(),maxWidthFunction:lR()},Pne=(s,F)=>{const Z=s.selection.getRng(),ue=zn(Pt.fromDom(Z.startContainer),Z.startOffset);return Z.startContainer===Z.endContainer&&Z.startOffset===Z.endOffset-1&&so(ue.element,F)},oj=(s,F,Z)=>{const ue=Na(s,"position");ko(s,"position",F);const we=Z(s);return ue.each(Be=>ko(s,"position",Be)),we},q8=s=>s==="node",ij=(s,F,Z,ue,we)=>{const Be=UR(s),qe=ue.lastElement().exists(ft=>so(Z,ft));if(Pne(s,Z))return qe?L9:f1;if(qe)return oj(F,ue.getMode(),()=>ej(Be,Ya(F),-20)&&!ue.isReposition()?DJ:L9);{const ft=ue.getMode()==="fixed"?we.y+Hl().top:we.y,gt=Ql(F)+V2;return ft+gt<=Be.y?f1:bk}},aj=(s,F,Z,ue)=>{const we=gt=>(At,$t,on,yn,wn)=>{const Mn=ij(s,yn,gt,Z,wn),Xn={...At,y:wn.y,height:wn.height};return{...Mn(Xn,$t,on,yn,wn),alwaysFit:!0}},Be=gt=>q8(ue)?[we(gt)]:[];return F?{onLtr:gt=>[Pc,Ec,Qc,Hc,_s,Jc].concat(Be(gt)),onRtl:gt=>[Pc,Qc,Ec,_s,Hc,Jc].concat(Be(gt))}:{onLtr:gt=>[Jc,Pc,Hc,Ec,_s,Qc].concat(Be(gt)),onRtl:gt=>[Jc,Pc,_s,Qc,Hc,Ec].concat(Be(gt))}},Rne=(s,F,Z,ue)=>F==="line"?{bubble:pp(V2,0,jR),layouts:{onLtr:()=>[Z1],onRtl:()=>[uy]},overrides:rj}:{bubble:pp(0,V2,jR,1/V2),layouts:aj(s,Z,ue,F),overrides:rj},U2=(s,F)=>{const Z=me(F,Be=>Be.predicate(s.dom)),{pass:ue,fail:we}=ee(Z,Be=>Be.type==="contexttoolbar");return{contextToolbars:ue,contextForms:we}},W8=s=>{if(s.length<=1)return s;{const F=Be=>te(s,qe=>qe.position===Be),Z=Be=>me(s,qe=>qe.position===Be),ue=F("selection"),we=F("node");if(ue||we)if(we&&ue){const Be=Z("node"),qe=oe(Z("selection"),ft=>({...ft,position:"node"}));return Be.concat(qe)}else return Z(ue?"selection":"node");else return Z("line")}},Y8=s=>{if(s.length<=1)return s;{const F=ue=>ce(s,we=>we.position===ue);return F("selection").orThunk(()=>F("node")).orThunk(()=>F("line")).map(ue=>ue.position).fold(()=>[],ue=>me(s,we=>we.position===ue))}},QR=(s,F,Z)=>{const ue=U2(s,F);if(ue.contextForms.length>0)return I.some({elem:s,toolbars:[ue.contextForms[0]]});{const we=U2(s,Z);if(we.contextForms.length>0)return I.some({elem:s,toolbars:[we.contextForms[0]]});if(ue.contextToolbars.length>0||we.contextToolbars.length>0){const Be=W8(ue.contextToolbars.concat(we.contextToolbars));return I.some({elem:s,toolbars:Be})}else return I.none()}},HR=(s,F,Z)=>s(F)?I.none():lg(F,ue=>{if(Kn(ue)){const{contextToolbars:we,contextForms:Be}=U2(ue,Z.inNodeScope),qe=Be.length>0?Be:Y8(we);return qe.length>0?I.some({elem:ue,toolbars:qe}):I.none()}else return I.none()},s),sj=(s,F)=>{const Z=Pt.fromDom(F.getBody()),ue=qe=>so(qe,Z),we=qe=>!ue(qe)&&!So(Z,qe),Be=Pt.fromDom(F.selection.getNode());return we(Be)?I.none():QR(Be,s.inNodeScope,s.inEditorScope).orThunk(()=>HR(ue,Be,s))},X8=(s,F)=>{const Z={},ue=[],we=[],Be={},qe={},ft=($t,on)=>{const yn=Nt(DY(on));Z[$t]=yn,yn.launch.map(wn=>{Be["form:"+$t]={...on.launch,type:wn.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{F(yn)}}}),yn.scope==="editor"?we.push(yn):ue.push(yn),qe[$t]=yn},gt=($t,on)=>{h0(on).each(yn=>{on.scope==="editor"?we.push(yn):ue.push(yn),qe[$t]=yn})},At=ke(s);return q(At,$t=>{const on=s[$t];on.type==="contextform"?ft($t,on):on.type==="contexttoolbar"&>($t,on)}),{forms:Z,inNodeScope:ue,inEditorScope:we,lookupTable:qe,formNavigators:Be}},ZR=fi("forward-slide"),qR=fi("backward-slide"),Dk=fi("change-slide-event"),WR="tox-pop--resizing",lj=s=>{const F=xi([]);return hc.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:Z=>{F.set([]),hc.getContent(Z).each(ue=>{ma(ue.element,"visibility")}),fc(Z.element,WR),ma(Z.element,"width")},inlineBehaviours:Do([Ta("context-toolbar-events",[Wv(sp(),(Z,ue)=>{ue.event.raw.propertyName==="width"&&(fc(Z.element,WR),ma(Z.element,"width"))}),fo(Dk,(Z,ue)=>{const we=Z.element;ma(we,"width");const Be=cc(we);hc.setContent(Z,ue.event.contents),wl(we,WR);const qe=cc(we);ko(we,"width",Be+"px"),hc.getContent(Z).each(ft=>{ue.event.focus.bind(gt=>(bd(gt),xd(we))).orThunk(()=>(Li.focusIn(ft),hp(vr(we))))}),setTimeout(()=>{ko(Z.element,"width",qe+"px")},0)}),fo(ZR,(Z,ue)=>{hc.getContent(Z).each(we=>{F.set(F.get().concat([{bar:we,focus:hp(vr(Z.element))}]))}),Ri(Z,Dk,{contents:ue.event.forwardContents,focus:I.none()})}),fo(qR,(Z,ue)=>{Ve(F.get()).each(we=>{F.set(F.get().slice(0,F.get().length-1)),Ri(Z,Dk,{contents:na(we.bar),focus:we.focus})})})]),Li.config({mode:"special",onEscape:Z=>Ve(F.get()).fold(()=>s.onEscape(),ue=>(Sa(Z,qR),I.some(!0)))})]),lazySink:()=>Hi.value(s.sink)})},YR="tox-pop--transition",Lne=(s,F,Z,ue)=>{const we=ue.backstage,Be=we.shared,qe=rf().deviceType.isTouch,ft=os(),gt=os(),At=os(),$t=vi(lj({sink:Z,onEscape:()=>(s.focus(),I.some(!0))})),on=()=>{const mi=At.get().getOr("node"),qi=q8(mi)?1:0;return nj(s,Be,mi,qi)},yn=()=>!s.removed&&!(qe()&&we.isContextMenuOpen()),wn=mi=>wt(en(mi,ft.get(),so),!0),Mn=()=>{if(yn()){const mi=on(),qi=wt(At.get(),"node")?Ane(s,ft.get()):UR(s);return mi.height<=0||!ej(qi,mi,.01)}else return!0},Xn=()=>{ft.clear(),gt.clear(),At.clear(),hc.hide($t)},Br=()=>{if(hc.isOpen($t)){const mi=$t.element;ma(mi,"display"),Mn()?ko(mi,"display","none"):(gt.set(0),hc.reposition($t))}},or=mi=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[mi],behaviours:Do([Li.config({mode:"acyclic"}),Ta("pop-dialog-wrap-events",[Ll(qi=>{s.shortcuts.add("ctrl+F9","focus statusbar",()=>Li.focusIn(qi))}),Sh(qi=>{s.shortcuts.remove("ctrl+F9")})])])}),Mr=iu(()=>X8(F,mi=>{const qi=Xr([mi]);Ri($t,ZR,{forwardContents:or(qi)})})),kr=(mi,qi)=>j8(s,{buttons:mi,toolbar:qi.items,allowToolbarGroups:!1},ue.backstage,I.some(["form:"])),yo=(mi,qi)=>JU.buildInitGroups(mi,qi),Xr=mi=>{const{buttons:qi}=s.ui.registry.getAll(),Fi=Mr(),Os={...qi,...Fi.formNavigators},vs=Dw(s)===Hm.scrolling?Hm.scrolling:Hm.default,Ha=ve(oe(mi,Ho=>Ho.type==="contexttoolbar"?kr(Os,Ho):yo(Ho,Be.providers)));return B8({type:vs,uid:fi("context-toolbar"),initGroups:Ha,onEscape:I.none,cyclicKeying:!0,providers:Be.providers})},No=(mi,qi)=>{const Fi=mi==="node"?Be.anchors.node(qi):Be.anchors.cursor(),Os=Rne(s,mi,qe(),{lastElement:ft.get,isReposition:()=>wt(gt.get(),0),getMode:()=>ed.getMode(Z)});return nl(Fi,Os)},Jo=(mi,qi)=>{if(Ci.cancel(),!yn())return;const Fi=Xr(mi),Os=mi[0].position,vs=No(Os,qi);At.set(Os),gt.set(1);const Ha=$t.element;ma(Ha,"display"),wn(qi)||(fc(Ha,YR),ed.reset(Z,$t)),hc.showWithinBounds($t,or(Fi),{anchor:vs,transition:{classes:[YR],mode:"placement"}},()=>I.some(on())),qi.fold(ft.clear,ft.set),Mn()&&ko(Ha,"display","none")};let ho=!1;const Ci=fk(()=>{if(!(!s.hasFocus()||s.removed||ho))if($l($t.element,YR))Ci.throttle();else{const mi=Mr();sj(mi,s).fold(Xn,qi=>{Jo(qi.toolbars,I.some(qi.elem))})}},17);s.on("init",()=>{s.on("remove",Xn),s.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",Br),s.on("click keyup focus SetContent",Ci.throttle),s.on(VR,Xn),s.on(wne,mi=>{const qi=Mr();Ge(qi.lookupTable,mi.toolbarKey).each(Fi=>{Jo([Fi],_t(mi.target!==s,mi.target)),hc.getContent($t).each(Li.focusIn)})}),s.on("focusout",mi=>{O5.setEditorTimeout(s,()=>{xd(Z.element).isNone()&&xd($t.element).isNone()&&Xn()},0)}),s.on("SwitchMode",()=>{s.mode.isReadOnly()&&Xn()}),s.on("ExecCommand",({command:mi})=>{mi.toLowerCase()==="toggleview"&&Xn()}),s.on("AfterProgressState",mi=>{mi.state?Xn():s.hasFocus()&&Ci.throttle()}),s.on("dragstart",()=>{ho=!0}),s.on("dragend drop",()=>{ho=!1}),s.on("NodeChange",mi=>{xd($t.element).fold(Ci.throttle,v)})})},G8=s=>{q([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],Z=>{s.ui.registry.addToggleButton(Z.name,{tooltip:Z.text,icon:Z.icon,onAction:Wm(s,Z.cmd),onSetup:wC(s,Z.name)})}),s.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:Gh(s),onAction:Wm(s,"JustifyNone")})},XR=(s,F)=>{const Z=()=>{const ue=F.getOptions(s),we=F.getCurrent(s).map(F.hash),Be=os();return oe(ue,qe=>({type:"togglemenuitem",text:F.display(qe),onSetup:ft=>{const gt=$t=>{$t&&(Be.on(on=>on.setActive(!1)),Be.set(ft)),ft.setActive($t)};gt(wt(we,F.hash(qe)));const At=F.watcher(s,qe,gt);return()=>{Be.clear(),At()}},onAction:()=>F.setCurrent(s,qe)}))};s.ui.registry.addMenuButton(F.name,{tooltip:F.text,icon:F.icon,fetch:ue=>ue(Z()),onSetup:F.onToolbarSetup}),s.ui.registry.addNestedMenuItem(F.name,{type:"nestedmenuitem",text:F.text,getSubmenuItems:Z,onSetup:F.onMenuSetup})},Ine=s=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:i7,hash:F=>Vte(F,["fixed","relative","empty"]).getOr(F),display:R,watcher:(F,Z,ue)=>F.formatter.formatChanged("lineheight",ue,!1,{value:Z}).unbind,getCurrent:F=>I.from(F.queryCommandValue("LineHeight")),setCurrent:(F,Z)=>F.execCommand("LineHeight",!1,Z),onToolbarSetup:Gh(s),onMenuSetup:Gh(s)}),Dne=s=>I.from(E6(s)).map(Z=>({name:"language",text:"Language",icon:"language",getOptions:x(Z),hash:ue=>y(ue.customCode)?ue.code:`${ue.code}/${ue.customCode}`,display:ue=>ue.title,watcher:(ue,we,Be)=>{var qe;return ue.formatter.formatChanged("lang",Be,!1,{value:we.code,customValue:(qe=we.customCode)!==null&&qe!==void 0?qe:null}).unbind},getCurrent:ue=>{const we=Pt.fromDom(ue.selection.getNode());return E0(we,Be=>I.some(Be).filter(Kn).bind(qe=>co(qe,"lang").map(gt=>{const At=co(qe,"data-mce-lang").getOrUndefined();return{code:gt,customCode:At,title:""}})))},setCurrent:(ue,we)=>ue.execCommand("Lang",!1,we),onToolbarSetup:ue=>{const we=js();return ue.setActive(s.formatter.match("lang",{},void 0,!0)),we.set(s.formatter.formatChanged("lang",ue.setActive,!0)),t4(we.clear,Gh(s)(ue))},onMenuSetup:Gh(s)})),Bne=s=>{XR(s,Ine(s)),Dne(s).each(F=>XR(s,F))},zne=(s,F)=>{kU(s,F),zte(s,F),ene(s,F),Lte(s,F),Kte(s,F)},Fne=s=>Zw(s,"NodeChange",F=>{F.setEnabled(s.queryCommandState("outdent")&&s.selection.isEditable())}),cj=s=>{s.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:Fne(s),onAction:Wm(s,"outdent")}),s.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:Gh(s),onAction:Wm(s,"indent")})},uj=s=>{cj(s)},GR=(s,F)=>Z=>{Z.setActive(F.get());const ue=we=>{F.set(we.state),Z.setActive(we.state)};return s.on("PastePlainTextToggle",ue),t4(()=>s.off("PastePlainTextToggle",ue),Gh(s)(Z))},fj=s=>{const F=xi(D6(s)),Z=()=>s.execCommand("mceTogglePlainTextPaste");s.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:Z,onSetup:GR(s,F)}),s.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:Z,onSetup:GR(s,F)})},KR=(s,F)=>()=>{s.execCommand("mceToggleFormat",!1,F)},dj=s=>{ox.each([{name:"bold",text:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(F,Z)=>{s.ui.registry.addToggleButton(F.name,{tooltip:F.text,icon:F.icon,onSetup:wC(s,F.name),onAction:KR(s,F.name),shortcut:F.shortcut})});for(let F=1;F<=6;F++){const Z="h"+F,ue=`Access+${F}`;s.ui.registry.addToggleButton(Z,{text:Z.toUpperCase(),tooltip:"Heading "+F,onSetup:wC(s,Z),onAction:KR(s,Z),shortcut:ue})}},hj=s=>{ox.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help",shortcut:"Alt+0"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],F=>{s.ui.registry.addButton(F.name,{tooltip:F.text,icon:F.icon,onAction:Wm(s,F.action),shortcut:F.shortcut})}),ox.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],F=>{s.ui.registry.addButton(F.name,{tooltip:F.text,icon:F.icon,onSetup:Gh(s),onAction:Wm(s,F.action)})})},Nne=s=>{ox.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],F=>{s.ui.registry.addToggleButton(F.name,{tooltip:F.text,icon:F.icon,onAction:Wm(s,F.action),onSetup:wC(s,F.name)})})},Afe=s=>{dj(s),hj(s),Nne(s)},$ne=s=>{ox.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],F=>{s.ui.registry.addMenuItem(F.name,{text:F.text,icon:F.icon,shortcut:F.shortcut,onAction:Wm(s,F.action)})}),ox.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],F=>{s.ui.registry.addMenuItem(F.name,{text:F.text,icon:F.icon,shortcut:F.shortcut,onSetup:Gh(s),onAction:Wm(s,F.action)})}),s.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:Gh(s),onAction:KR(s,"code")})},Vne=s=>{Afe(s),$ne(s)},K8=(s,F)=>Zw(s,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",Z=>{Z.setEnabled(!s.mode.isReadOnly()&&s.undoManager[F]())}),Une=s=>{s.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:K8(s,"hasUndo"),onAction:Wm(s,"undo")}),s.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:K8(s,"hasRedo"),onAction:Wm(s,"redo")})},jne=s=>{s.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:K8(s,"hasUndo"),onAction:Wm(s,"undo"),shortcut:"Meta+Z"}),s.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:K8(s,"hasRedo"),onAction:Wm(s,"redo"),shortcut:"Meta+Y"})},Qne=s=>{Une(s),jne(s)},Hne=s=>Zw(s,"VisualAid",F=>{F.setActive(s.hasVisual)}),Zne=s=>{s.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:Hne(s),onAction:Wm(s,"mceToggleVisualAid")})},qne=s=>{s.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:Wm(s,"mceToggleVisualAid")})},Wne=s=>{qne(s),Zne(s)},Yne=(s,F)=>{G8(s),Vne(s),zne(s,F),Qne(s),xX(s),Wne(s),uj(s),Bne(s),fj(s)},Xne=s=>n(s)?s.split(/[ ,]/):s,pj=s=>F=>F.options.get(s),mj=s=>{const F=s.options.register;F("contextmenu_avoid_overlap",{processor:"string",default:""}),F("contextmenu_never_use_native",{processor:"boolean",default:!1}),F("contextmenu",{processor:Z=>Z===!1?{value:[],valid:!0}:n(Z)||m(Z,n)?{value:Xne(Z),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},gj=pj("contextmenu_never_use_native"),Gne=pj("contextmenu_avoid_overlap"),Kne=s=>vj(s).length===0,vj=s=>{const F=s.ui.registry.getAll().contextMenus,Z=s.options.get("contextmenu");return s.options.isSet("contextmenu")?Z:me(Z,ue=>ht(F,ue))},Bk=(s,F)=>({type:"makeshift",x:s,y:F}),Jne=(s,F,Z)=>Bk(s.x+F,s.y+Z),yj=s=>s.type==="longpress"||s.type.indexOf("touch")===0,ere=s=>{if(yj(s)){const F=s.touches[0];return Bk(F.pageX,F.pageY)}else return Bk(s.pageX,s.pageY)},tre=s=>{if(yj(s)){const F=s.touches[0];return Bk(F.clientX,F.clientY)}else return Bk(s.clientX,s.clientY)},JR=(s,F)=>{const Z=Lw.DOM.getPos(s);return Jne(F,Z.x,Z.y)},nre=(s,F)=>F.type==="contextmenu"||F.type==="longpress"?s.inline?ere(F):JR(s.getContentAreaContainer(),tre(F)):bj(s),bj=s=>({type:"selection",root:Pt.fromDom(s.selection.getNode())}),eL=s=>({type:"node",node:I.some(Pt.fromDom(s.selection.getNode())),root:Pt.fromDom(s.getBody())}),tL=(s,F,Z)=>{switch(Z){case"node":return eL(s);case"point":return nre(s,F);case"selection":return bj(s)}},xj=(s,F,Z,ue,we,Be)=>{const qe=Z(),ft=tL(s,F,Be);v4(qe,r1.CLOSE_ON_EXECUTE,ue,{isHorizontalMenu:!1,search:I.none()}).map(gt=>{F.preventDefault(),hc.showMenuAt(we,{anchor:ft},{menu:{markers:M2("normal")},data:gt})})},rre={onLtr:()=>[Pc,Ec,Qc,Hc,_s,Jc,f1,bk,yk,m8,vk,p8],onRtl:()=>[Pc,Qc,Ec,_s,Hc,Jc,f1,bk,vk,p8,yk,m8]},ore=12,ire={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},are=(s,F)=>{const Z=s.selection;if(Z.isCollapsed()||F.touches.length<1)return!1;{const ue=F.touches[0],we=Z.getRng();return Af(s.getWin(),c2.domRange(we)).exists(qe=>qe.left<=ue.clientX&&qe.right>=ue.clientX&&qe.top<=ue.clientY&&qe.bottom>=ue.clientY)}},sre=s=>{const F=s.selection.getRng(),Z=()=>{O5.setEditorTimeout(s,()=>{s.selection.setRng(F)},10),Be()};s.once("touchend",Z);const ue=qe=>{qe.preventDefault(),qe.stopImmediatePropagation()};s.on("mousedown",ue,!0);const we=()=>Be();s.once("longpresscancel",we);const Be=()=>{s.off("touchend",Z),s.off("longpresscancel",we),s.off("mousedown",ue)}},nL=(s,F,Z)=>{const ue=tL(s,F,Z);return{bubble:pp(0,Z==="point"?ore:0,ire),layouts:rre,overrides:{maxWidthFunction:lR(),maxHeightFunction:W0()},...ue}},lre=(s,F,Z,ue,we,Be,qe)=>{const ft=nL(s,F,Be);v4(Z,r1.CLOSE_ON_EXECUTE,ue,{isHorizontalMenu:!0,search:I.none()}).map(gt=>{F.preventDefault();const At=qe?Xh.HighlightMenuAndItem:Xh.HighlightNone;hc.showMenuWithinBounds(we,{anchor:ft},{menu:{markers:M2("normal"),highlightOnOpen:At},data:gt,type:"horizontal"},()=>I.some(nj(s,ue.shared,Be==="node"?"node":"selection"))),s.dispatch(VR)})},_j=(s,F,Z,ue,we,Be)=>{const qe=rf(),ft=qe.os.isiOS(),gt=qe.os.isMacOS(),At=qe.os.isAndroid(),$t=qe.deviceType.isTouch(),on=()=>!(At||ft||gt&&$t),yn=()=>{const wn=Z();lre(s,F,wn,ue,we,Be,on())};if((gt||ft)&&Be!=="node"){const wn=()=>{sre(s),yn()};are(s,F)?wn():(s.once("selectionchange",wn),s.once("touchend",()=>s.off("selectionchange",wn)))}else yn()},wj=s=>n(s)?s==="|":s.type==="separator",rL={type:"separator"},J8=s=>{const F=Z=>({text:Z.text,icon:Z.icon,enabled:Z.enabled,shortcut:Z.shortcut});if(n(s))return s;switch(s.type){case"separator":return rL;case"submenu":return{type:"nestedmenuitem",...F(s),getSubmenuItems:()=>{const ue=s.getSubmenuItems();return n(ue)?ue:oe(ue,J8)}};default:const Z=s;return{type:"menuitem",...F(Z),onAction:_(Z.onAction)}}},Oj=(s,F)=>{if(F.length===0)return s;const ue=Ve(s).filter(we=>!wj(we)).fold(()=>[],we=>[rL]);return s.concat(ue).concat(F).concat([rL])},Sj=(s,F,Z)=>{const ue=se(F,(we,Be)=>Ge(s,Be.toLowerCase()).map(qe=>{const ft=qe.update(Z);if(n(ft)&&it(Rt(ft)))return Oj(we,ft.split(" "));if(i(ft)&&ft.length>0){const gt=oe(ft,J8);return Oj(we,gt)}else return we}).getOrThunk(()=>we.concat([Be])),[]);return ue.length>0&&wj(ue[ue.length-1])&&ue.pop(),ue},cre=(s,F)=>F.ctrlKey&&!gj(s),ure=s=>s.type==="longpress"||ht(s,"touches"),eA=(s,F)=>!ure(F)&&(F.button!==2||F.target===s.getBody()&&F.pointerType===""),kj=(s,F)=>eA(s,F)?s.selection.getStart(!0):F.target,fre=(s,F)=>{const Z=Gne(s),ue=eA(s,F)?"selection":"point";if(it(Z)){const we=kj(s,F);return J5(Pt.fromDom(we),Z)?"node":ue}else return ue},dre=(s,F,Z)=>{const we=rf().deviceType.isTouch,Be=vi(hc.sketch({dom:{tag:"div"},lazySink:F,onEscape:()=>s.focus(),onShow:()=>Z.setContextMenuState(!0),onHide:()=>Z.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:Do([Ta("dismissContextMenu",[fo(I0(),(gt,At)=>{hs.close(gt),s.focus()})])])})),qe=()=>hc.hide(Be),ft=gt=>{if(gj(s)&>.preventDefault(),cre(s,gt)||Kne(s))return;const At=fre(s,gt),$t=()=>{const yn=kj(s,gt),wn=s.ui.registry.getAll(),Mn=vj(s);return Sj(wn.contextMenus,Mn,yn)};(we()?_j:xj)(s,gt,$t,Z,Be,At)};s.on("init",()=>{const gt="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(we()?"":" ResizeWindow");s.on(gt,qe),s.on("longpress contextmenu",ft)})},oL=Ds.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),tA=s=>F=>F.translate(-s.left,-s.top),zk=s=>F=>F.translate(s.left,s.top),sx=s=>(F,Z)=>se(s,(ue,we)=>we(ue),Ws(F,Z)),nA=(s,F,Z)=>s.fold(sx([zk(Z),tA(F)]),sx([tA(F)]),sx([])),E4=(s,F,Z)=>s.fold(sx([zk(Z)]),sx([]),sx([zk(F)])),Tj=(s,F,Z)=>s.fold(sx([]),sx([tA(Z)]),sx([zk(F),tA(Z)])),hre=(s,F,Z,ue,we,Be)=>{const qe=E4(s,we,Be),ft=E4(F,we,Be);return Math.abs(qe.left-ft.left)<=Z&&Math.abs(qe.top-ft.top)<=ue},pre=(s,F,Z,ue,we,Be)=>{const qe=E4(s,we,Be),ft=E4(F,we,Be),gt=Math.abs(qe.left-ft.left),At=Math.abs(qe.top-ft.top);return Ws(gt,At)},Cj=(s,F,Z)=>{const ue=s.fold((we,Be)=>({position:I.some("absolute"),left:I.some(we+"px"),top:I.some(Be+"px")}),(we,Be)=>({position:I.some("absolute"),left:I.some(we-Z.left+"px"),top:I.some(Be-Z.top+"px")}),(we,Be)=>({position:I.some("fixed"),left:I.some(we+"px"),top:I.some(Be+"px")}));return{right:I.none(),bottom:I.none(),...ue}},mre=(s,F,Z)=>s.fold((ue,we)=>oA(ue+F,we+Z),(ue,we)=>lx(ue+F,we+Z),(ue,we)=>lO(ue+F,we+Z)),rA=(s,F,Z,ue)=>{const we=(Be,qe)=>(ft,gt)=>{const At=Be(F,Z,ue);return qe(ft.getOr(At.left),gt.getOr(At.top))};return s.fold(we(Tj,oA),we(E4,lx),we(nA,lO))},oA=oL.offset,lx=oL.absolute,lO=oL.fixed,Aj=(s,F)=>{const Z=ao(s,F);return y(Z)?NaN:parseInt(Z,10)},gre=(s,F)=>{const Z=s.element,ue=Aj(Z,F.leftAttr),we=Aj(Z,F.topAttr);return isNaN(ue)||isNaN(we)?I.none():I.some(Ws(ue,we))},cO=(s,F,Z)=>{const ue=s.element;fr(ue,F.leftAttr,Z.left+"px"),fr(ue,F.topAttr,Z.top+"px")},Mj=(s,F)=>{const Z=s.element;po(Z,F.leftAttr),po(Z,F.topAttr)},vre=(s,F,Z,ue)=>gre(s,F).fold(()=>Z,we=>lO(we.left+ue.left,we.top+ue.top)),yre=(s,F,Z,ue,we,Be)=>{const qe=vre(s,F,Z,ue),ft=F.mustSnap?Pj(s,F,qe,we,Be):xre(s,F,qe,we,Be),gt=nA(qe,we,Be);return cO(s,F,gt),ft.fold(()=>({coord:lO(gt.left,gt.top),extra:I.none()}),At=>({coord:At.output,extra:At.extra}))},bre=(s,F)=>{Mj(s,F)},Ej=(s,F,Z,ue)=>Oe(s,we=>{const Be=we.sensor;return hre(F,Be,we.range.left,we.range.top,Z,ue)?I.some({output:rA(we.output,F,Z,ue),extra:we.extra}):I.none()}),Pj=(s,F,Z,ue,we)=>{const Be=F.getSnapPoints(s);return Ej(Be,Z,ue,we).orThunk(()=>se(Be,(gt,At)=>{const $t=At.sensor,on=pre(Z,$t,At.range.left,At.range.top,ue,we);return gt.deltas.fold(()=>({deltas:I.some(on),snap:I.some(At)}),yn=>{const wn=(on.left+on.top)/2,Mn=(yn.left+yn.top)/2;return wn<=Mn?{deltas:I.some(on),snap:I.some(At)}:gt})},{deltas:I.none(),snap:I.none()}).snap.map(gt=>({output:rA(gt.output,Z,ue,we),extra:gt.extra})))},xre=(s,F,Z,ue,we)=>{const Be=F.getSnapPoints(s);return Ej(Be,Z,ue,we)},_re=(s,F,Z)=>({coord:rA(s.output,s.output,F,Z),extra:s.extra});var wre=Object.freeze({__proto__:null,snapTo:(s,F,Z,ue)=>{const we=F.getTarget(s.element);if(F.repositionTarget){const Be=go(s.element),qe=Hl(Be),ft=N_(we),gt=_re(ue,qe,ft),At=Cj(gt.coord,qe,ft);mo(we,At)}}});const iL="data-initial-z-index",Ore=s=>{br(s.element).filter(Kn).each(F=>{co(F,iL).fold(()=>ma(F,"z-index"),Z=>ko(F,"z-index",Z)),po(F,iL)})},Sre=s=>{br(s.element).filter(Kn).each(F=>{Na(F,"z-index").each(Z=>{fr(F,iL,Z)}),ko(F,"z-index",Aa(s.element,"z-index"))})},Rj=(s,F)=>{s.getSystem().addToGui(F),Sre(F)},kre=s=>{Ore(s),s.getSystem().removeFromGui(s)},Lj=(s,F,Z)=>s.getSystem().build(bv.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[F]},events:Z}));var Ij=Pi("snaps",[Sn("getSnapPoints"),Ra("onSensor"),Sn("leftAttr"),Sn("topAttr"),mr("lazyViewport",xl),mr("mustSnap",!1)]);const iA=[mr("useFixed",D),Sn("blockerClass"),mr("getTarget",R),mr("onDrag",v),mr("repositionTarget",!0),mr("onDrop",v),Pa("getBounds",xl),Ij],Tre=s=>Gt(Na(s,"left"),Na(s,"top"),Na(s,"position"),(F,Z,ue)=>(ue==="fixed"?lO:oA)(parseInt(F,10),parseInt(Z,10))).getOrThunk(()=>{const F=pc(s);return lx(F.left,F.top)}),Fk=(s,F,Z,ue,we)=>{const Be=we.bounds,qe=E4(F,Z,ue),ft=Mc(qe.left,Be.x,Be.x+Be.width-we.width),gt=Mc(qe.top,Be.y,Be.y+Be.height-we.height),At=lx(ft,gt);return F.fold(()=>{const $t=Tj(At,Z,ue);return oA($t.left,$t.top)},x(At),()=>{const $t=nA(At,Z,ue);return lO($t.left,$t.top)})},Cre=(s,F,Z,ue,we,Be,qe)=>{const ft=F.fold(()=>{const gt=mre(Z,Be.left,Be.top),At=nA(gt,ue,we);return lO(At.left,At.top)},gt=>{const At=yre(s,gt,Z,Be,ue,we);return At.extra.each($t=>{gt.onSensor(s,$t)}),At.coord});return Fk(s,ft,ue,we,qe)},Are=(s,F,Z,ue)=>{const we=F.getTarget(s.element);if(F.repositionTarget){const Be=go(s.element),qe=Hl(Be),ft=N_(we),gt=Tre(we),At=Cre(s,F.snaps,gt,qe,ft,ue,Z),$t=Cj(At,qe,ft);mo(we,$t)}F.onDrag(s,we,ue)},aA=(s,F)=>({bounds:s.getBounds(),height:Ed(F.element),width:hu(F.element)}),aL=(s,F,Z,ue,we)=>{const Be=Z.update(ue,we),qe=Z.getStartData().getOrThunk(()=>aA(F,s));Be.each(ft=>{Are(s,F,qe,ft)})},Dj=(s,F,Z,ue)=>{F.each(kre),Z.snaps.each(Be=>{bre(s,Be)});const we=Z.getTarget(s.element);ue.reset(),Z.onDrop(s,we)},sL=s=>(F,Z)=>{const ue=we=>{Z.setStartData(aA(F,we))};return hl([fo(S1(),we=>{Z.getStartData().each(()=>ue(we))}),...s(F,Z,ue)])},Mre=s=>hl([fo(Oh(),s.forceDrop),fo(Hv(),s.drop),fo(Ex(),(F,Z)=>{s.move(Z.event)}),fo(kf(),s.delayDrop)]);var Ere=Object.freeze({__proto__:null,getData:s=>I.from(Ws(s.x,s.y)),getDelta:(s,F)=>Ws(F.left-s.left,F.top-s.top)});const Bj=(s,F,Z)=>[fo(Oh(),(ue,we)=>{if(we.event.raw.button!==0)return;we.stop();const qe=()=>Dj(ue,I.some(At),s,F),ft=cN(qe,200),gt={drop:qe,delayDrop:ft.schedule,forceDrop:qe,move:on=>{ft.cancel(),aL(ue,s,F,Ere,on)}},At=Lj(ue,s.blockerClass,Mre(gt));(()=>{Z(ue),Rj(ue,At)})()})],Pre=[...iA,Il("dragger",{handlers:sL(Bj)})],Rre=s=>hl([fo(_m(),s.forceDrop),fo(wm(),s.drop),fo(cb(),s.drop),fo(Yg(),(F,Z)=>{s.move(Z.event)})]),Lre=s=>{const F=s[0];return I.some(Ws(F.clientX,F.clientY))};var zj=Object.freeze({__proto__:null,getData:s=>{const Z=s.raw.touches;return Z.length===1?Lre(Z):I.none()},getDelta:(s,F)=>Ws(F.left-s.left,F.top-s.top)});const Fj=(s,F,Z)=>{const ue=os(),we=Be=>{Dj(Be,ue.get(),s,F),ue.clear()};return[fo(_m(),(Be,qe)=>{qe.stop();const ft=()=>we(Be),gt={drop:ft,delayDrop:v,forceDrop:ft,move:on=>{aL(Be,s,F,zj,on)}},At=Lj(Be,s.blockerClass,Rre(gt));ue.set(At),(()=>{Z(Be),Rj(Be,At)})()}),fo(Yg(),(Be,qe)=>{qe.stop(),aL(Be,s,F,zj,qe.event)}),fo(wm(),(Be,qe)=>{qe.stop(),we(Be)}),fo(cb(),we)]},Ire=[...iA,Il("dragger",{handlers:sL(Fj)})],Dre=(s,F,Z)=>[...Bj(s,F,Z),...Fj(s,F,Z)],sA=[...iA,Il("dragger",{handlers:sL(Dre)})];var Bre=Object.freeze({__proto__:null,mouse:Pre,touch:Ire,mouseOrTouch:sA}),zre=Object.freeze({__proto__:null,init:()=>{let s=I.none(),F=I.none();const Z=()=>{s=I.none(),F=I.none()},ue=(gt,At)=>{const $t=s.map(on=>gt.getDelta(on,At));return s=I.some(At),$t},we=(gt,At)=>gt.getData(At).bind($t=>ue(gt,$t)),Be=gt=>{F=I.some(gt)},qe=()=>F,ft=x({});return kh({readState:ft,reset:Z,update:we,getStartData:qe,setStartData:Be})}});const j2=md({branchKey:"mode",branches:Bre,name:"dragging",active:{events:(s,F)=>s.dragger.handlers(s,F)},extra:{snap:s=>({sensor:s.sensor,range:s.range,output:s.output,extra:I.from(s.extra)})},state:zre,apis:wre}),lL=40,lA=lL/2,Nj=(s,F,Z,ue,we,Be)=>s.fold(()=>j2.snap({sensor:lx(Z-lA,ue-lA),range:Ws(we,Be),output:lx(I.some(Z),I.some(ue)),extra:{td:F}}),qe=>{const ft=Z-lA,gt=ue-lA,At=lL,$t=lL,on=qe.element.dom.getBoundingClientRect();return j2.snap({sensor:lx(ft,gt),range:Ws(At,$t),output:lx(I.some(Z-on.width/2),I.some(ue-on.height/2)),extra:{td:F}})}),$j=(s,F,Z)=>{const ue=(we,Be)=>we.exists(qe=>so(qe,Be));return{getSnapPoints:s,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(we,Be)=>{const qe=Be.td;ue(F.get(),qe)||(F.set(qe),Z(qe))},mustSnap:!0}},Vj=s=>qs(Vd.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:Do([j2.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:s}),u4.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),cL=(s,F)=>{const Z=xi([]),ue=xi([]),we=xi(!1),Be=os(),qe=os(),ft=Jo=>{const ho=bl(Jo);return Nj(wn.getOpt(F),Jo,ho.x,ho.y,ho.width,ho.height)},gt=()=>oe(Z.get(),Jo=>ft(Jo)),At=Jo=>{const ho=bl(Jo);return Nj(Mn.getOpt(F),Jo,ho.right,ho.bottom,ho.width,ho.height)},$t=()=>oe(ue.get(),Jo=>At(Jo)),on=$j(gt,Be,Jo=>{qe.get().each(ho=>{s.dispatch("TableSelectorChange",{start:Jo,finish:ho})})}),yn=$j($t,qe,Jo=>{Be.get().each(ho=>{s.dispatch("TableSelectorChange",{start:ho,finish:Jo})})}),wn=Vj(on),Mn=Vj(yn),Xn=vi(wn.asSpec()),Br=vi(Mn.asSpec()),or=(Jo,ho,Ci,mi)=>{const qi=ho.dom.getBoundingClientRect();ma(Jo.element,"display");const Fi=Yn(Pt.fromDom(s.getBody())).dom.innerHeight,Os=Ci(qi),vs=mi(qi,Fi);(Os||vs)&&ko(Jo.element,"display","none")},Mr=(Jo,ho,Ci,mi)=>{const qi=Ci(ho);j2.snapTo(Jo,qi),or(Jo,ho,vs=>vs[mi]<0,(vs,Ha)=>vs[mi]>Ha)},kr=Jo=>Mr(Xn,Jo,ft,"top"),yo=()=>Be.get().each(kr),Xr=Jo=>Mr(Br,Jo,At,"bottom"),No=()=>qe.get().each(Xr);if(rf().deviceType.isTouch()){const Jo=ho=>oe(ho,Pt.fromDom);s.on("TableSelectionChange",ho=>{we.get()||(X0(F,Xn),X0(F,Br),we.set(!0));const Ci=Pt.fromDom(ho.start),mi=Pt.fromDom(ho.finish);Be.set(Ci),qe.set(mi),I.from(ho.otherCells).each(qi=>{Z.set(Jo(qi.upOrLeftCells)),ue.set(Jo(qi.downOrRightCells)),kr(Ci),Xr(mi)})}),s.on("ResizeEditor ResizeWindow ScrollContent",()=>{yo(),No()}),s.on("TableSelectionClear",()=>{we.get()&&(cv(Xn),cv(Br),we.set(!1)),Be.clear(),qe.clear()})}};var Uj=` -`;const Fre=(s,F)=>{const Z=I.from(ao(s,"id")).getOrThunk(()=>{const ue=fi("aria");return fr(F,"id",ue),ue});fr(s,"aria-describedby",Z)},Nre=s=>{po(s,"aria-describedby")},$re=s=>s.nodeName==="BR"||!!s.getAttribute("data-mce-bogus")||s.getAttribute("data-mce-type")==="bookmark",Vre=(s,F,Z)=>{var ue;const we=(ue=F.delimiter)!==null&&ue!==void 0?ue:"›",Be=(At,$t,on)=>Vd.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":on}},components:[ro(At)],action:yn=>{s.focus(),s.selection.select($t),s.nodeChanged()},buttonBehaviours:Do([kd.config({...Z.tooltips.getConfig({tooltipText:Z.translate(["Select the {0} element",$t.nodeName.toLowerCase()]),onShow:(yn,wn)=>{Fre(yn.element,wn.element)},onHide:yn=>{Nre(yn.element)}})}),s1.button(Z.isDisabled),df()])}),qe=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[ro(` ${we} `)]}),ft=At=>se(At,($t,on,yn)=>{const wn=Be(on.name,on.element,yn);return yn===0?$t.concat([wn]):$t.concat([qe(),wn])},[]),gt=At=>{const $t=[];let on=At.length;for(;on-- >0;){const yn=At[on];if(yn.nodeType===1&&!$re(yn)){const wn=oX(s,yn);if(wn.isDefaultPrevented()||$t.push({name:wn.name,element:yn}),wn.isPropagationStopped())break}}return $t};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:Do([Li.config({mode:"flow",selector:"div[role=button]"}),ea.config({disabled:Z.isDisabled}),df(),Wl.config({}),da.config({}),Ta("elementPathEvents",[Ll((At,$t)=>{s.shortcuts.add("alt+F11","focus statusbar elementpath",()=>Li.focusIn(At)),s.on("NodeChange",on=>{const yn=gt(on.parents),wn=yn.length>0?ft(yn):[];da.set(At,wn)})})])]),components:[]}};var Q2;(function(s){s[s.None=0]="None",s[s.Both=1]="Both",s[s.Vertical=2]="Vertical"})(Q2||(Q2={}));const Ure=(s,F,Z,ue,we)=>{const Be={height:Q8(ue+F.top,M6(s),YE(s))};return Z===Q2.Both&&(Be.width=Q8(we+F.left,Z3(s),k5(s))),Be},jj=(s,F,Z)=>{const ue=Pt.fromDom(s.getContainer()),we=Ure(s,F,Z,Ql(ue),cc(ue));We(we,(Be,qe)=>{h(Be)&&ko(ue,qe,M4(Be))}),nX(s)},jre=s=>{const F=n7(s);return F===!1?Q2.None:F==="both"?Q2.Both:Q2.Vertical},cA=(s,F,Z,ue)=>{const Be=Ws(Z*20,ue*20);return jj(s,Be,F),I.some(!0)},Qre=(s,F)=>{const Z=jre(s);if(Z===Q2.None)return I.none();const ue=Z===Q2.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return I.some(em("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{"aria-label":F.translate(ue),"data-mce-name":"resize-handle"},behaviours:[j2.config({mode:"mouse",repositionTarget:!1,onDrag:(we,Be,qe)=>jj(s,qe,Z),blockerClass:"tox-blocker"}),Li.config({mode:"special",onLeft:()=>cA(s,Z,-1,0),onRight:()=>cA(s,Z,1,0),onUp:()=>cA(s,Z,0,-1),onDown:()=>cA(s,Z,0,1)}),Wl.config({}),oa.config({}),kd.config(F.tooltips.getConfig({tooltipText:F.translate("Resize")}))]},F.icons))},Hre=(s,F)=>{const Z=(ue,we,Be)=>da.set(ue,[ro(F.translate(["{0} "+Be,we[Be]]))]);return Vd.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:Do([s1.button(F.isDisabled),df(),Wl.config({}),da.config({}),hi.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Ta("wordcount-events",[$p(ue=>{const we=hi.getValue(ue),Be=we.mode==="words"?"characters":"words";hi.setValue(ue,{mode:Be,count:we.count}),Z(ue,we.count,Be)}),Ll(ue=>{s.on("wordCountUpdate",we=>{const{mode:Be}=hi.getValue(ue);hi.setValue(ue,{mode:Be,count:we.wordCount}),Z(ue,we.wordCount,Be)})})])]),eventOrder:{[cp()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},Zre=(s,F)=>{const Z=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=poweredby&utm_source=tiny&utm_medium=referral&utm_content=v7",rel:"noopener",target:"_blank","aria-label":s.translate(["Build with {0}","TinyMCE"])},innerHtml:s.translate(["Build with {0}",Uj.trim()])},behaviours:Do([oa.config({})])}]}),ue=()=>{const ft=gC("Alt+0"),gt="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[ro(Cg.translate([gt,ft]))]}},we=()=>{const ft=[];return s.hasPlugin("wordcount")&&ft.push(Hre(s,F)),t7(s)&&ft.push(Z()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:ft}},Be=()=>{const ft=[],gt=hz(s),At=fz(s),$t=t7(s)||s.hasPlugin("wordcount"),on=()=>{const yn="tox-statusbar__text-container--flex-start",wn="tox-statusbar__text-container--flex-end",Mn="tox-statusbar__text-container--space-around";if(gt){const Xn="tox-statusbar__text-container-3-cols";return!$t&&!At?[Xn,Mn]:$t&&!At?[Xn,wn]:[Xn,yn]}return[$t&&!At?wn:yn]};return At&&ft.push(Vre(s,{},F)),gt&&ft.push(ue()),$t&&ft.push(we()),ft.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...on()]},components:ft}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const ft=Be(),gt=Qre(s,F);return ft.concat(gt.toArray())})()}},Qj=(s,F)=>F.get().getOrDie(`UI for ${s} has not been rendered`),qre=(s,F)=>{const Z=s.inline,ue=Z?YU:vne,we=W3(s)?O4:_ee,Be=XU(),qe=os(),ft=os(),gt=os(),yn=rf().deviceType.isTouch()?["tox-platform-touch"]:[],wn=Gb(s),Mn=Dw(s),Xn=qs({dom:{tag:"div",classes:["tox-anchorbar"]}}),Br=qs({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),or=()=>Be.mainUi.get().map(ji=>ji.outerContainer).bind(Yl.getHeader),Mr=()=>Hi.fromOption(Be.dialogUi.get().map(ji=>ji.sink),"UI has not been rendered"),kr=()=>Hi.fromOption(Be.popupUi.get().map(ji=>ji.sink),"(popup) UI has not been rendered"),yo=Be.lazyGetInOuterOrDie("anchor bar",Xn.getOpt),Xr=Be.lazyGetInOuterOrDie("bottom anchor bar",Br.getOpt),No=Be.lazyGetInOuterOrDie("toolbar",Yl.getToolbar),Jo=Be.lazyGetInOuterOrDie("throbber",Yl.getThrobber),ho=hee({popup:kr,dialog:Mr},s,yo,Xr),Ci=()=>{const ji={attributes:{[s0]:wn?Og.BottomToTop:Og.TopToBottom}},ga=Yl.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:ho.popup,onEscape:()=>{s.focus()}}),kl=Yl.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:ho.popup.shared.getSink,providers:ho.popup.shared.providers,onEscape:()=>{s.focus()},onToolbarToggled:mO=>{iX(s,mO)},type:Mn,lazyToolbar:No,lazyHeader:()=>or().getOrDie("Could not find header element"),...ji}),Ns=Yl.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:ho.popup.shared.providers,onEscape:()=>{s.focus()},type:Mn}),zh=Bw(s),Bg=F6(s),Tv=B6(s),dh=T5(s),zg=mi(),w0=zh||Bg||Tv,im=()=>zh?[Ns]:Bg?[kl]:[],jy=dh?[zg,ga]:[ga];return Yl.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(w0?[]:["tox-editor-header--empty"]),...ji},components:ve([Tv?jy:[],im(),q3(s)?[]:[Xn.asSpec()]]),sticky:W3(s),editor:s,sharedBackstage:ho.popup.shared})},mi=()=>Yl.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),qi=()=>{const ji=Yl.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),ga=Yl.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[ji,ga]}},Fi=()=>{const ji=C5(s),ga=so(Vr(),ji)&&Aa(ji,"display")==="grid",kl={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(yn),attributes:{...Cg.isRtl()?{dir:"rtl"}:{}}},behaviours:Do([ed.config({useFixed:()=>we.isDocked(or)})])},Ns={dom:{styles:{width:document.body.clientWidth+"px"}},events:hl([fo(Tm(),Tv=>{ko(Tv.element,"width",document.body.clientWidth+"px")})])},zh=vi(nl(kl,ga?Ns:{})),Bg=wP(zh);return ft.set(Bg),{sink:zh,mothership:Bg}},Os=()=>{const ji={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(yn),attributes:{...Cg.isRtl()?{dir:"rtl"}:{}}},behaviours:Do([ed.config({useFixed:()=>we.isDocked(or),getBounds:()=>F.getPopupSinkBounds()})])},ga=vi(ji),kl=wP(ga);return gt.set(kl),{sink:ga,mothership:kl}},vs=()=>{const ji=Ci(),ga=qi(),kl=Yl.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:ho.popup}),Ns=Yl.parts.viewWrapper({backstage:ho.popup}),zh=uz(s)&&!Z?I.some(Zre(s,ho.popup.shared.providers)):I.none(),Bg=ve([wn?[]:[ji],Z?[]:[ga],wn?[ji]:[]]),Tv=Yl.parts.editorContainer({components:ve([Bg,Z?[]:[Br.asSpec()]])}),dh=N6(s),zg={role:"application",...Cg.isRtl()?{dir:"rtl"}:{},...dh?{"aria-hidden":"true"}:{}},w0=vi(Yl.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(Z?["tox-tinymce-inline"]:[]).concat(wn?["tox-tinymce--toolbar-bottom"]:[]).concat(yn),styles:{visibility:"hidden",...dh?{opacity:"0",border:"0"}:{}},attributes:zg},components:[Tv,...Z?[]:[Ns,...zh.toArray()],kl],behaviours:Do([df(),ea.config({disableClass:"tox-tinymce--disabled"}),Li.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),im=wP(w0);return qe.set(im),{mothership:im,outerContainer:w0}},Ha=ji=>{const ga=M4(Z8(s)),kl=M4(yne(s));return s.inline||(wc("div","width",kl)&&ko(ji.element,"width",kl),wc("div","height",ga)?ko(ji.element,"height",ga):ko(ji.element,"height","400px")),ga},Ho=ji=>{s.addShortcut("alt+F9","focus menubar",()=>{Yl.focusMenubar(ji)}),s.addShortcut("alt+F10","focus toolbar",()=>{Yl.focusToolbar(ji)}),s.addCommand("ToggleToolbarDrawer",(ga,kl)=>{kl!=null&&kl.skipFocus?Yl.toggleToolbarDrawerWithoutFocusing(ji):Yl.toggleToolbarDrawer(ji)}),s.addQueryStateHandler("ToggleToolbarDrawer",()=>Yl.isToolbarDrawerToggled(ji))},wi=ji=>{const{mainUi:ga,popupUi:kl,uiMotherships:Ns}=ji;Ue(P6(s),(L4,OA)=>{s.ui.registry.addGroupToolbarButton(OA,L4)});const{buttons:zh,menuItems:Bg,contextToolbars:Tv,sidebars:dh,views:zg}=s.ui.registry.getAll(),w0=a7(s),im={menuItems:Bg,menus:s7(s),menubar:KE(s),toolbar:w0.getOrThunk(()=>R6(s)),allowToolbarGroups:Mn===Hm.floating,buttons:zh,sidebar:dh,views:zg};Ho(ga.outerContainer),pee(s,ga.mothership,Ns),we.setup(s,ho.popup.shared,or),Yne(s,ho.popup),dre(s,ho.popup.shared.getSink,ho.popup),Lee(s),wfe(s,Jo,ho.popup.shared),Lne(s,Tv,kl.sink,{backstage:ho.popup}),cL(s,kl.sink);const jy=s.getElement(),mO=Ha(ga.outerContainer),TL={targetNode:jy,height:mO};return ue.render(s,ji,im,ho.popup,TL)},_a=ji=>(gt.set(ji.mothership),ji),Ki=()=>{const ji=vs(),ga=Fi(),kl=C2(s)?Os():_a(ga);Be.dialogUi.set(ga),Be.popupUi.set(kl),Be.mainUi.set(ji);const Ns={popupUi:kl,dialogUi:ga,mainUi:ji,uiMotherships:Be.getUiMotherships()};return wi(Ns)};return{popups:{backstage:ho.popup,getMothership:()=>Qj("popups",gt)},dialogs:{backstage:ho.dialog,getMothership:()=>Qj("dialogs",ft)},renderUI:Ki}},Hj=s=>s.dom.textContent,Wre=(s,F)=>{const Z=co(s,"id").fold(()=>{const ue=fi("dialog-label");return fr(F,"id",ue),ue},R);fr(s,"aria-labelledby",Z)},Yre=x([Sn("lazySink"),Hr("dragBlockClass"),Pa("getBounds",xl),mr("useTabstopAt",k),mr("firstTabstop",0),mr("eventOrder",{}),Ef("modalBehaviours",[Li]),yd("onExecute"),i0("onEscape")]),uL={sketch:R},Xre=x([Jp({name:"draghandle",overrides:(s,F)=>({behaviours:Do([j2.config({mode:"mouse",getTarget:Z=>zs(Z,'[role="dialog"]').getOr(Z),blockerClass:s.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: -`+JSON.stringify(F,null,2)).message),getBounds:s.getDragBounds})])})}),Sd({schema:[Sn("dom")],name:"title"}),Sd({factory:uL,schema:[Sn("dom")],name:"close"}),Sd({factory:uL,schema:[Sn("dom")],name:"body"}),Jp({factory:uL,schema:[Sn("dom")],name:"footer"}),Um({factory:{sketch:(s,F)=>({...s,dom:F.dom,components:F.components})},schema:[mr("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),mr("components",[])],name:"blocker"})]),Gre=(s,F,Z,ue)=>{const we=os(),Be=Mn=>{we.set(Mn);const Xn=s.lazySink(Mn).getOrDie(),Br=ue.blocker(),or=Xn.getSystem().build({...Br,components:Br.components.concat([na(Mn)]),behaviours:Do([oa.config({}),Ta("dialog-blocker-events",[Wv(Sm(),()=>{Sv.isBlocked(Mn)?v():Li.focusIn(Mn)})])])});X0(Xn,or),Li.focusIn(Mn)},qe=Mn=>{we.clear(),br(Mn.element).each(Xn=>{Mn.getSystem().getByDom(Xn).each(Br=>{cv(Br)})})},ft=Mn=>Ph(Mn,s,"body"),gt=Mn=>Fo(Mn,s,"footer"),At=(Mn,Xn)=>{Sv.block(Mn,Xn)},$t=Mn=>{Sv.unblock(Mn)},on=fi("modal-events"),yn={...s.eventOrder,[zd()]:[on].concat(s.eventOrder["alloy.system.attached"]||[])},wn=rf();return{uid:s.uid,dom:s.dom,components:F,apis:{show:Be,hide:qe,getBody:ft,getFooter:gt,setIdle:$t,setBusy:At},eventOrder:yn,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Pf(s.modalBehaviours,[da.config({}),Li.config({mode:"cyclic",onEnter:s.onExecute,onEscape:s.onEscape,useTabstopAt:s.useTabstopAt,firstTabstop:s.firstTabstop}),Sv.config({getRoot:we.get}),Ta(on,[Ll(Mn=>{const Xn=Ph(Mn,s,"title").element,Br=Hj(Xn);wn.os.isMacOS()&&a(Br)?fr(Mn.element,"aria-label",Br):Wre(Mn.element,Xn)})])])}},Lf=ch({name:"ModalDialog",configFields:Yre(),partFields:Xre(),factory:Gre,apis:{show:(s,F)=>{s.show(F)},hide:(s,F)=>{s.hide(F)},getBody:(s,F)=>s.getBody(F),getFooter:(s,F)=>s.getFooter(F),setBusy:(s,F,Z)=>{s.setBusy(F,Z)},setIdle:(s,F)=>{s.setIdle(F)}}}),Kre=Mi([Fu,rC].concat(Uw)),Jre=ge,uA=[Q7("button"),d0,dl("align","end",["start","end"]),j5,o1,$i("buttonType",["primary","secondary"])],fL=[...uA,ex],cx=[Zr("type",["submit","cancel","custom"]),...fL],eoe=[Zr("type",["menu"]),R2,U5,d0,Si("items",Kre),...uA],dL=[...uA,Zr("type",["togglebutton"]),U5,d0,R2,ds("active",!1)],fA=xn("type",{submit:cx,cancel:cx,custom:cx,menu:eoe,togglebutton:dL}),toe=[Fu,ex,Zr("level",["info","warn","error","success"]),Yz,mr("url","")],noe=Mi(toe),roe=s=>[Fu,s],ooe=[Fu,ex,o1,Q7("button"),d0,MY,$i("buttonType",["primary","secondary","toolbar"]),j5],ioe=Mi(ooe),h1=[Fu,rC],p1=h1.concat([iC]),aoe=h1.concat([oC,o1]),soe=Mi(aoe),loe=ge,coe=p1.concat([lC("auto")]),uoe=Mi(coe),foe=J([V5,ex,Yz]),doe=p1.concat([Ys("storageKey","default")]),hoe=Mi(doe),hL=ne,pL=Mi(p1),hA=ne,uO=h1.concat([Ys("tag","textarea"),Pr("scriptId"),Pr("scriptUrl"),Ui("onFocus"),Rs("settings",void 0)]),pA=h1.concat([Ys("tag","textarea"),$o("init")]),poe=mt(s=>jt("customeditor.old",_l(pA),s).orThunk(()=>jt("customeditor.new",_l(uO),s))),Zj=ne,qj=Mi(p1),goe=dt(),voe=s=>[Fu,Dr("columns"),s],yoe=[Fu,Pr("html"),dl("presets","presentation",["presentation","document"]),Pa("onInit",v),ds("stretched",!1)],Wj=Mi(yoe),Yj=p1.concat([ds("border",!1),ds("sandboxed",!0),ds("streamContent",!1),ds("transparent",!0)]),mL=Mi(Yj),boe=ne,xoe=Mi(h1.concat([Io("height")])),_oe=Mi([Pr("url"),ki("zoom"),ki("cachedWidth"),ki("cachedHeight")]),Xj=p1.concat([Io("inputMode"),Io("placeholder"),ds("maximized",!1),o1]),woe=Mi(Xj),Ooe=ne,Soe=s=>[Fu,oC,s,dl("align","start",["start","center","end"]),Io("for")],gL=[ex,V5],vL=[ex,Si("items",pn("items",()=>Gj))],Gj=Ot([Mi(gL),Mi(vL)]),Kj=p1.concat([Si("items",Gj),o1]),koe=Mi(Kj),Toe=ne,Jj=p1.concat([yi("items",[ex,V5]),Pl("size",1),o1]),Coe=Mi(Jj),Aoe=ne,fO=p1.concat([ds("constrain",!0),o1]),eQ=Mi(fO),tQ=Mi([Pr("width"),Pr("height")]),mA=h1.concat([oC,Pl("min",0),Pl("max",0)]),P4=Mi(mA),gA=V,nQ=[Fu,Si("header",ne),Si("cells",Sf(ne))],vA=Mi(nQ),rm=p1.concat([Io("placeholder"),ds("maximized",!1),o1]),yA=Mi(rm),rQ=ne,yL=[Zr("type",["directory","leaf"]),Wz,Pr("id"),Lo("menu",S8)],oQ=Mi(yL),H2=yL.concat([Si("children",pn("children",()=>rt("type",{directory:Moe,leaf:oQ})))]),Moe=Mi(H2),Eoe=rt("type",{directory:Moe,leaf:oQ}),iQ=[Fu,Si("items",Eoe),Ui("onLeafAction"),Ui("onToggleExpand"),Ls("defaultExpandedIds",[],ne),Io("defaultSelectedId")],R4=Mi(iQ),bA=p1.concat([dl("filetype","file",["image","media","file"]),o1,Io("picker_text")]),aQ=Mi(bA),Poe=Mi([V5,U7]),bL=s=>Ln("items","items",Ka(),Sf(mt(F=>jt(`Checking item of ${s}`,xL,F).fold(Z=>Hi.error(sn(Z)),Z=>Hi.value(Z))))),xL=Ea(()=>rt("type",{alertbanner:noe,bar:Mi(roe(bL("bar"))),button:ioe,checkbox:soe,colorinput:hoe,colorpicker:pL,dropzone:qj,grid:Mi(voe(bL("grid"))),iframe:mL,input:woe,listbox:koe,selectbox:Coe,sizeinput:eQ,slider:P4,textarea:yA,urlinput:aQ,customeditor:poe,htmlpanel:Wj,imagepreview:xoe,collection:uoe,label:Mi(Soe(bL("label"))),table:vA,tree:R4,panel:dO})),Roe=[Fu,mr("classes",[]),Si("items",xL)],dO=Mi(Roe),Nfe=[Q7("tab"),Wz,Si("items",xL)],Loe=[Fu,yi("tabs",Nfe)],Ioe=Mi(Loe),$fe=fL,Doe=fA,Boe=Mi([Pr("title"),rr("body",rt("type",{panel:dO,tabpanel:Ioe})),Ys("size","normal"),Ls("buttons",[],Doe),mr("initialData",{}),Pa("onAction",v),Pa("onChange",v),Pa("onSubmit",v),Pa("onClose",v),Pa("onCancel",v),Pa("onTabChange",v)]),Nk=s=>jt("dialog",Boe,s),zoe=Mi([Zr("type",["cancel","custom"]),...$fe]),Foe=Mi([Pr("title"),Pr("url"),ki("height"),ki("width"),ba("buttons",zoe),Pa("onAction",v),Pa("onCancel",v),Pa("onClose",v),Pa("onMessage",v)]),sQ=s=>jt("dialog",Foe,s),_L=s=>c(s)?[s].concat(ye(ot(s),_L)):i(s)?ye(s,_L):[],Vfe=s=>n(s.type)&&n(s.name),r={checkbox:loe,colorinput:hL,colorpicker:hA,dropzone:goe,input:Ooe,iframe:boe,imagepreview:_oe,selectbox:Aoe,sizeinput:tQ,slider:gA,listbox:Toe,size:tQ,textarea:rQ,urlinput:Poe,customeditor:Zj,collection:foe,togglemenuitem:Jre},g=s=>I.from(r[s.type]),B=s=>me(_L(s),Vfe),H=s=>{const F=B(s),Z=ye(F,ue=>g(ue).fold(()=>[],we=>[rr(ue.name,we)]));return Mi(Z)},re=s=>{var F;const Z=Nt(Nk(s)),ue=H(s),we=(F=s.initialData)!==null&&F!==void 0?F:{};return{internalDialog:Z,dataValidator:ue,initialData:we}},be={open:(s,F)=>{const Z=re(F);return s(Z.internalDialog,Z.initialData,Z.dataValidator)},openUrl:(s,F)=>{const Z=Nt(sQ(F));return s(Z)},redial:s=>re(s)};var Ke=Object.freeze({__proto__:null,events:(s,F)=>{const Z=(ue,we)=>{s.updateState.each(Be=>{const qe=Be(ue,we);F.set(qe)}),s.renderComponents.each(Be=>{const qe=Be(we,F.get());(s.reuseDom?FE:U3)(ue,qe)})};return hl([fo(lp(),(ue,we)=>{const Be=we;if(!Be.universal){const qe=s.channel;X(Be.channels,qe)&&Z(ue,Be.data)}}),Ll((ue,we)=>{s.initialData.each(Be=>{Z(ue,Be)})})])}}),kt=Object.freeze({__proto__:null,getState:(s,F,Z)=>Z}),Wt=[Sn("channel"),Hr("renderComponents"),Hr("updateState"),Hr("initialData"),ds("reuseDom",!0)],ln=Object.freeze({__proto__:null,init:()=>{const s=xi(I.none()),F=()=>s.set(I.none());return{readState:()=>s.get().getOr("none"),get:s.get,set:s.set,clear:F}}});const kn=lf({fields:Wt,name:"reflecting",active:Ke,apis:kt,state:ln}),Vn=s=>{const F=[],Z={};return We(s,(ue,we)=>{ue.fold(()=>{F.push(we)},Be=>{Z[we]=Be})}),F.length>0?Hi.error(F):Hi.value(Z)},Rn=(s,F,Z,ue)=>{const we=qs(tO.sketch(Be=>({dom:{tag:"div",classes:["tox-form"].concat(s.classes)},components:oe(s.items,qe=>hV(Be,qe,F,Z,ue))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[we.asSpec()]}],behaviours:Do([Li.config({mode:"acyclic",useTabstopAt:E(g4)}),y0.memento(we),gK(we,{postprocess:Be=>Vn(Be).fold(qe=>(console.error(qe),{}),R)}),Ta("dialog-body-panel",[fo(Sm(),(Be,qe)=>{Be.getSystem().broadcastOn([KC],{newFocus:I.some(qe.event.target)})})])])}},qn=(s,F)=>({uid:s.uid,dom:s.dom,components:s.components,events:k6(s.action),behaviours:Pf(s.tabButtonBehaviours,[oa.config({}),Li.config({mode:"execution",useSpace:!0,useEnter:!0}),hi.config({store:{mode:"memory",initialValue:s.value}})]),domModification:s.domModification}),pr=Yh({name:"TabButton",configFields:[mr("uid",void 0),Sn("value"),Ln("dom","dom",yu(()=>({attributes:{role:"tab",id:fi("aria"),"aria-selected":"false"}})),le()),Hr("action"),mr("domModification",{}),Ef("tabButtonBehaviours",[oa,Li,hi]),Sn("view")],factory:qn}),Tr=x([Sn("tabs"),Sn("dom"),mr("clickToDismiss",!1),Ef("tabbarBehaviours",[ri,Li]),jp(["tabClass","selectedClass"])]),wr=R3({factory:pr,name:"tabs",unit:"tab",overrides:s=>{const F=(ue,we)=>{ri.dehighlight(ue,we),Ri(ue,bu(),{tabbar:ue,button:we})},Z=(ue,we)=>{ri.highlight(ue,we),Ri(ue,zO(),{tabbar:ue,button:we})};return{action:ue=>{const we=ue.getSystem().getByUid(s.uid).getOrDie(),Be=ri.isHighlighted(we,ue);(()=>Be&&s.clickToDismiss?F:Be?v:Z)()(we,ue)},domModification:{classes:[s.markers.tabClass]}}}}),Ur=x([wr]),wo=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,components:F,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Pf(s.tabbarBehaviours,[ri.config({highlightClass:s.markers.selectedClass,itemClass:s.markers.tabClass,onHighlight:(we,Be)=>{fr(Be.element,"aria-selected","true")},onDehighlight:(we,Be)=>{fr(Be.element,"aria-selected","false")}}),Li.config({mode:"flow",getInitial:we=>ri.getHighlighted(we).map(Be=>Be.element),selector:"."+s.markers.tabClass,executeOnMove:!0})])}),jo=ch({name:"Tabbar",configFields:Tr(),partFields:Ur(),factory:wo}),di=(s,F)=>({uid:s.uid,dom:s.dom,behaviours:Pf(s.tabviewBehaviours,[da.config({})]),domModification:{attributes:{role:"tabpanel"}}}),lo=Yh({name:"Tabview",configFields:[Ef("tabviewBehaviours",[da])],factory:di}),eo=x([mr("selectFirst",!0),Ra("onChangeTab"),Ra("onDismissTab"),mr("tabs",[]),Ef("tabSectionBehaviours",[])]),xo=Sd({factory:jo,schema:[Sn("dom"),zo("markers",[Sn("tabClass"),Sn("selectedClass")])],name:"tabbar",defaults:s=>({tabs:s.tabs})}),bi=Sd({factory:lo,name:"tabview"}),Bi=x([xo,bi]),$a=(s,F,Z,ue)=>{const we=qe=>{const ft=hi.getValue(qe);Fo(qe,s,"tabview").each(gt=>{ce(s.tabs,$t=>$t.value===ft).each($t=>{const on=$t.view();co(qe.element,"id").each(yn=>{fr(gt.element,"aria-labelledby",yn)}),da.set(gt,on),s.onChangeTab(gt,qe,on)})})},Be=(qe,ft)=>{Fo(qe,s,"tabbar").each(gt=>{ft(gt).each(Fp)})};return{uid:s.uid,dom:s.dom,components:F,behaviours:vw(s.tabSectionBehaviours),events:hl(ve([s.selectFirst?[Ll((qe,ft)=>{Be(qe,ri.getFirst)})]:[],[fo(zO(),(qe,ft)=>{const gt=ft.event.button;we(gt)}),fo(bu(),(qe,ft)=>{const gt=ft.event.button;s.onDismissTab(qe,gt)})]])),apis:{getViewItems:qe=>Fo(qe,s,"tabview").map(ft=>da.contents(ft)).getOr([]),showTab:(qe,ft)=>{Be(qe,At=>{const $t=ri.getCandidates(At);return ce($t,yn=>hi.getValue(yn)===ft).filter(yn=>!ri.isHighlighted(At,yn))})}}}},Ia=ch({name:"TabSection",configFields:eo(),partFields:Bi(),factory:$a,apis:{getViewItems:(s,F)=>s.getViewItems(F),showTab:(s,F,Z)=>{s.showTab(F,Z)}}}),Us=(s,F,Z)=>oe(s,(ue,we)=>{da.set(Z,s[we].view());const Be=F.dom.getBoundingClientRect();return da.set(Z,[]),Be.height}),sl=s=>He(ze(s,(F,Z)=>F>Z?-1:F{const ue=Pn(s).dom,we=zs(s,".tox-dialog-wrap").getOr(s),Be=Aa(we,"position")==="fixed";let qe;Be?qe=Math.max(ue.clientHeight,window.innerHeight):qe=Math.max(ue.offsetHeight,ue.scrollHeight);const ft=Ql(F),At=F.dom.offsetLeft>=Z.dom.offsetLeft+cc(Z)?Math.max(Ql(Z),ft):ft,$t=parseInt(Aa(s,"margin-top"),10)||0,on=parseInt(Aa(s,"margin-bottom"),10)||0,wn=Ql(s)+$t+on-At;return qe-wn},jd=(s,F)=>{He(s).each(Z=>Ia.showTab(F,Z.value))},ml=(s,F)=>{ko(s,"height",F+"px"),ko(s,"flex-basis",F+"px")},Wo=(s,F,Z)=>{zs(s,'[role="dialog"]').each(ue=>{aa(ue,'[role="tablist"]').each(we=>{Z.get().map(Be=>(ko(F,"height","0"),ko(F,"flex-basis","0"),Math.min(Be,nu(ue,F,we)))).each(Be=>{ml(F,Be)})})})},Ei=s=>aa(s,'[role="tabpanel"]'),ws=s=>{const F=os();return{extraEvents:[Ll(we=>{const Be=we.element;Ei(Be).each(qe=>{ko(qe,"visibility","hidden"),we.getSystem().getByDom(qe).toOptional().each(ft=>{const gt=Us(s,qe,ft);sl(gt).fold(F.clear,F.set)}),Wo(Be,qe,F),ma(qe,"visibility"),jd(s,we),requestAnimationFrame(()=>{Wo(Be,qe,F)})})}),fo(Tm(),we=>{const Be=we.element;Ei(Be).each(qe=>{Wo(Be,qe,F)})}),fo(vN,(we,Be)=>{const qe=we.element;Ei(qe).each(ft=>{const gt=hp(vr(ft));ko(ft,"visibility","hidden");const At=Na(ft,"height").map(yn=>parseInt(yn,10));ma(ft,"height"),ma(ft,"flex-basis");const $t=ft.dom.getBoundingClientRect().height;At.forall(yn=>$t>yn)?(F.set($t),Wo(qe,ft,F)):At.each(yn=>{ml(ft,yn)}),ma(ft,"visibility"),gt.each(bd)})})],selectFirst:!1}},ii="send-data-to-section",Qi="send-data-to-view",Qa=(s,F,Z,ue)=>{const we=xi({}),Be=$t=>{const on=hi.getValue($t),yn=Vn(on).getOr({}),wn=we.get(),Mn=nl(wn,yn);we.set(Mn)},qe=$t=>{const on=we.get();hi.setValue($t,on)},ft=xi(null),gt=oe(s.tabs,$t=>({value:$t.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[ro(Z.shared.providers.translate($t.title))],view:()=>[tO.sketch(on=>({dom:{tag:"div",classes:["tox-form"]},components:oe($t.items,yn=>hV(on,yn,F,Z,ue)),formBehaviours:Do([Li.config({mode:"acyclic",useTabstopAt:E(g4)}),Ta("TabView.form.events",[Ll(qe),Sh(Be)]),Wu.config({channels:hd([{key:ii,value:{onReceive:Be}},{key:Qi,value:{onReceive:qe}}])})])}))]})),At=ws(gt);return Ia.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:($t,on,yn)=>{const wn=hi.getValue(on);Ri($t,gN,{name:wn,oldName:ft.get()}),ft.set(wn)},tabs:gt,components:[Ia.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[jo.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:Do([Wl.config({})])}),Ia.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:At.selectFirst,tabSectionBehaviours:Do([Ta("tabpanel",At.extraEvents),Li.config({mode:"acyclic"}),as.config({find:$t=>He(Ia.getViewItems($t))}),nO(I.none(),$t=>($t.getSystem().broadcastOn([ii],{}),we.get()),($t,on)=>{we.set(on),$t.getSystem().broadcastOn([Qi],{})})])})},ci=(s,F,Z,ue,we,Be)=>{const qe=At=>{const $t=At.body;switch($t.type){case"tabpanel":return[Qa($t,At.initialData,ue,Be)];default:return[Rn($t,At.initialData,ue,Be)]}},ft=(At,$t)=>I.some({isTabPanel:()=>$t.body.type==="tabpanel"}),gt={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...Z.map(At=>({id:At})).getOr({}),...we?gt:{}}},components:[],behaviours:Do([y0.childAt(0),kn.config({channel:`${w$}-${F}`,updateState:ft,renderComponents:qe,initialData:s})])}},Va=(s,F,Z,ue,we,Be)=>ci(s,F,I.some(Z),ue,we,Be),Xa=(s,F,Z,ue)=>{const we=ci(s,F,I.none(),Z,!1,ue);return Lf.parts.body(we)},If=s=>{const F={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[y$(I.none(),{dom:{tag:"iframe",attributes:{src:s.url}},behaviours:Do([Wl.config({}),oa.config({})])})]}],behaviours:Do([Li.config({mode:"acyclic",useTabstopAt:E(g4)})])};return Lf.parts.body(F)},el=Q3.deviceType.isTouch(),Yu=(s,F)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[s,F]}),Pg=(s,F)=>Lf.parts.close(Vd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":F.translate("Close")}},action:s,buttonBehaviours:Do([Wl.config({})])})),m1=()=>Lf.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),Dh=(s,F)=>Lf.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:pv(`

    ${_7(F.translate(s))}

    `)}]}]}),om=s=>Lf.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:s}),Rg=(s,F)=>[bv.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:s}),bv.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:F})],xp=s=>{const F="tox-dialog",Z=F+"-wrap",ue=Z+"__backdrop",we=F+"__disable-scroll";return Lf.sketch({lazySink:s.lazySink,onEscape:Be=>(s.onEscape(Be),I.some(!0)),useTabstopAt:Be=>!g4(Be),firstTabstop:s.firstTabstop,dom:{tag:"div",classes:[F].concat(s.extraClasses),styles:{position:"relative",...s.extraStyles}},components:[s.header,s.body,...s.footer.toArray()],parts:{blocker:{dom:pv(`
    `),components:[{dom:{tag:"div",classes:el?[ue,ue+"--opaque"]:[ue]}}]}},dragBlockClass:Z,modalBehaviours:Do([oa.config({}),Ta("dialog-events",s.dialogEvents.concat([Wv(Sm(),(Be,qe)=>{Sv.isBlocked(Be)?v():Li.focusIn(Be)}),fo(Jg(),(Be,qe)=>{Be.getSystem().broadcastOn([KC],{newFocus:qe.event.newFocus})})])),Ta("scroll-lock",[Ll(()=>{wl(Vr(),we)}),Sh(()=>{fc(Vr(),we)})]),...s.extraBehaviours]),eventOrder:{[cp()]:["dialog-events"],[zd()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[fp()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...s.eventOrder}})},Lg=s=>Vd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":s.translate("Close"),"data-mce-name":"close"}},buttonBehaviours:Do([Wl.config({}),kd.config(s.tooltips.getConfig({tooltipText:s.translate("Close")}))]),components:[em("close",{tag:"span",classes:["tox-icon"]},s.icons)],action:F=>{Sa(F,I2)}}),zi=(s,F,Z,ue)=>{const we=Be=>[ro(ue.translate(Be.title))];return{dom:{tag:"h1",classes:["tox-dialog__title"],attributes:{...Z.map(Be=>({id:Be})).getOr({})}},components:[],behaviours:Do([kn.config({channel:`${_$}-${F}`,initialData:s,renderComponents:we})])}},ss=()=>({dom:pv('
    ')}),Rc=(s,F,Z,ue)=>bv.sketch({dom:pv('
    '),components:[zi(s,F,I.some(Z),ue),ss(),Lg(ue)],containerBehaviours:Do([j2.config({mode:"mouse",blockerClass:"blocker",getTarget:we=>Fs(we,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),cu=(s,F,Z)=>{const ue=Lf.parts.title(zi(s,F,I.none(),Z)),we=Lf.parts.draghandle(ss()),Be=Lf.parts.close(Lg(Z)),qe=[ue].concat(s.draggable?[we]:[]).concat([Be]);return bv.sketch({dom:pv('
    '),components:qe})},Nu=(s,F,Z)=>cu({title:Z.shared.providers.translate(s),draggable:Z.dialog.isDraggableModal()},F,Z.shared.providers),nd=(s,F,Z,ue)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":Z.translate(s)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${ue.getOr(0)}px`,position:"absolute"}},behaviours:F,components:[{dom:pv('
    ')}]}),wu=(s,F,Z)=>({onClose:()=>Z.closeWindow(),onBlock:ue=>{const we=aa(s().element,".tox-dialog__header").map(Be=>Ql(Be));Lf.setBusy(s(),(Be,qe)=>nd(ue.message,qe,F,we))},onUnblock:()=>{Lf.setIdle(s())}}),Ou="tox-dialog--fullscreen",fh="tox-dialog--width-lg",Ig="tox-dialog--width-md",Xm=s=>{switch(s){case"large":return I.some(fh);case"medium":return I.some(Ig);default:return I.none()}},x0=(s,F)=>{const Z=Pt.fromDom(F.element.dom);$l(Z,Ou)||(th(Z,[fh,Ig]),Xm(s).each(ue=>wl(Z,ue)))},Dg=(s,F)=>{const Z=Pt.fromDom(s.element.dom),ue=QO(Z),we=ce(ue,Be=>Be===fh||Be===Ig).or(Xm(F));Bx(Z,[Ou,...we.toArray()])},ux=(s,F,Z)=>vi(xp({...s,firstTabstop:1,lazySink:Z.shared.getSink,extraBehaviours:[WC({}),...s.extraBehaviours],onEscape:ue=>{Sa(ue,I2)},dialogEvents:F,eventOrder:{[lp()]:[kn.name(),Wu.name()],[zd()]:["scroll-lock",kn.name(),"messages","dialog-events","alloy.base.behaviour"],[fp()]:["alloy.base.behaviour","dialog-events","messages",kn.name(),"scroll-lock"]}})),Z2=(s,F={})=>{const Z=ue=>{const we=oe(ue.items,Be=>{const qe=Ge(F,Be.name).getOr(xi(!1));return{...Be,storage:qe}});return{...ue,items:we}};return oe(s,ue=>ue.type==="menu"?Z(ue):ue)},hO=s=>se(s,(F,Z)=>Z.type==="menu"?se(Z.items,(we,Be)=>(we[Be.name]=Be.storage,we),F):F,{}),xA=(s,F)=>[L_(Sm(),x$),s(tk,(Z,ue,we,Be)=>{hp(vr(Be.element)).fold(v,a0),F.onClose(),ue.onClose()}),s(I2,(Z,ue,we,Be)=>{ue.onCancel(Z),Sa(Be,tk)}),fo(kP,(Z,ue)=>F.onUnblock()),fo(IC,(Z,ue)=>F.onBlock(ue.event))],fx=(s,F)=>{const Z=(we,Be)=>fo(we,(qe,ft)=>{ue(qe,(gt,At)=>{Be(s(),gt,ft.event,qe)})}),ue=(we,Be)=>{kn.getState(we).get().each(qe=>{Be(qe,we)})};return[...xA(Z,F),Z(Dy,(we,Be,qe)=>{Be.onAction(we,{name:qe.name})})]},$k=(s,F,Z)=>{const ue=(Be,qe)=>fo(Be,(ft,gt)=>{we(ft,(At,$t)=>{qe(s(),At,gt.event,ft)})}),we=(Be,qe)=>{kn.getState(Be).get().each(ft=>{qe(ft.internalDialog,Be)})};return[...xA(ue,F),ue(c4,(Be,qe)=>qe.onSubmit(Be)),ue(tm,(Be,qe,ft)=>{qe.onChange(Be,{name:ft.name})}),ue(Dy,(Be,qe,ft,gt)=>{const At=()=>gt.getSystem().isConnected()?Li.focusIn(gt):void 0,$t=wn=>Go(wn,"disabled")||co(wn,"aria-disabled").exists(Mn=>Mn==="true"),on=vr(gt.element),yn=hp(on);qe.onAction(Be,{name:ft.name,value:ft.value}),hp(on).fold(At,wn=>{$t(wn)||yn.exists(Mn=>So(wn,Mn)&&$t(Mn))?At():Z().toOptional().filter(Mn=>!So(Mn.element,wn)).each(At)})}),ue(gN,(Be,qe,ft)=>{qe.onTabChange(Be,{newTabName:ft.name,oldTabName:ft.oldName})}),Sh(Be=>{const qe=s();hi.setValue(Be,qe.getData())})]},lQ=(s,F)=>u8(s,s.type,F),Bh=(s,F,Z)=>ce(F,ue=>ue.name===Z).bind(ue=>ue.memento.getOpt(s)),pO=(s,F)=>{const Z=F.map(ft=>ft.footerButtons).getOr([]),ue=ee(Z,ft=>ft.align==="start"),we=(ft,gt)=>bv.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${ft}`]},components:oe(gt,At=>At.memento.asSpec())}),Be=we("start",ue.pass),qe=we("end",ue.fail);return[Be,qe]},wL=(s,F,Z)=>{const ue=(we,Be)=>{const qe=oe(Be.buttons,gt=>{const At=qs(lQ(gt,Z));return{name:gt.name,align:gt.align,memento:At}}),ft=gt=>Bh(we,qe,gt);return I.some({lookupByName:ft,footerButtons:qe})};return{dom:pv(''),components:[],behaviours:Do([kn.config({channel:`${O$}-${F}`,initialData:s,updateState:ue,renderComponents:pO})])}},OL=(s,F,Z)=>wL(s,F,Z),kv=(s,F,Z)=>Lf.parts.footer(wL(s,F,Z)),q2=(s,F)=>{if(s.getRoot().getSystem().isConnected()){const ue=as.getCurrent(s.getFormWrapper()).getOr(s.getFormWrapper());return tO.getField(ue,F).orThunk(()=>s.getFooter().bind(qe=>kn.getState(qe).get()).bind(qe=>qe.lookupByName(F)))}else return I.none()},Yr=(s,F)=>{const Z=s.getRoot();return kn.getState(Z).get().map(ue=>Nt(jt("data",ue.dataValidator,F))).getOr(F)},Gr=(s,F,Z)=>{const ue=Mn=>{const Xn=s.getRoot();Xn.getSystem().isConnected()&&Mn(Xn)},wn={getData:()=>{const Mn=s.getRoot(),Xn=Mn.getSystem().isConnected()?s.getFormWrapper():Mn,Br=hi.getValue(Xn),or=Ue(Z,Mr=>Mr.get());return{...Br,...or}},setData:Mn=>{ue(Xn=>{const Br=wn.getData(),or=nl(Br,Mn),Mr=Yr(s,or),kr=s.getFormWrapper();hi.setValue(kr,Mr),We(Z,(yo,Xr)=>{ht(or,Xr)&&yo.set(or[Xr])})})},setEnabled:(Mn,Xn)=>{q2(s,Mn).each(Xn?ea.enable:ea.disable)},focus:Mn=>{q2(s,Mn).each(oa.focus)},block:Mn=>{if(!n(Mn))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");ue(Xn=>{Ri(Xn,IC,{message:Mn})})},unblock:()=>{ue(Mn=>{Sa(Mn,kP)})},showTab:Mn=>{ue(Xn=>{const Br=s.getBody();kn.getState(Br).get().exists(Mr=>Mr.isTabPanel())&&as.getCurrent(Br).each(Mr=>{Ia.showTab(Mr,Mn)})})},redial:Mn=>{ue(Xn=>{const Br=s.getId(),or=F(Mn),Mr=Z2(or.internalDialog.buttons,Z);Xn.getSystem().broadcastOn([`${GC}-${Br}`],or),Xn.getSystem().broadcastOn([`${_$}-${Br}`],or.internalDialog),Xn.getSystem().broadcastOn([`${w$}-${Br}`],or.internalDialog),Xn.getSystem().broadcastOn([`${O$}-${Br}`],{...or.internalDialog,buttons:Mr}),wn.setData(or.initialData)})},close:()=>{ue(Mn=>{Sa(Mn,tk)})},toggleFullscreen:s.toggleFullscreen};return wn},Xo=(s,F,Z)=>{const ue=fi("dialog"),we=s.internalDialog,Be=Nu(we.title,ue,Z),qe=xi(we.size),ft=kr=>q2(or,kr),gt=Xm(qe.get()).toArray(),At=(kr,yo)=>(qe.set(yo.internalDialog.size),x0(yo.internalDialog.size,kr),I.some(yo)),$t=Xa({body:we.body,initialData:we.initialData},ue,Z,ft),on=Z2(we.buttons),yn=hO(on),wn=_t(on.length!==0,kv({buttons:on},ue,Z)),Mn=$k(()=>Mr,wu(()=>Br,Z.shared.providers,F),Z.shared.getSink),Xn={id:ue,header:Be,body:$t,footer:wn,extraClasses:gt,extraBehaviours:[kn.config({channel:`${GC}-${ue}`,updateState:At,initialData:s})],extraStyles:{}},Br=ux(Xn,Mn,Z),or=(()=>{const kr=()=>{const Xr=Lf.getBody(Br);return as.getCurrent(Xr).getOr(Xr)},yo=()=>{Dg(Br,qe.get())};return{getId:x(ue),getRoot:x(Br),getBody:()=>Lf.getBody(Br),getFooter:()=>Lf.getFooter(Br),getFormWrapper:kr,toggleFullscreen:yo}})(),Mr=Gr(or,F.redial,yn);return{dialog:Br,instanceApi:Mr}},Vo=(s,F,Z,ue=!1,we)=>{const Be=fi("dialog"),qe=fi("dialog-label"),ft=fi("dialog-content"),gt=s.internalDialog,At=Ci=>q2(Jo,Ci),$t=xi(gt.size),on=Xm($t.get()).toArray(),yn=(Ci,mi)=>($t.set(mi.internalDialog.size),x0(mi.internalDialog.size,Ci),we(),I.some(mi)),wn=qs(Rc({title:gt.title,draggable:!0},Be,qe,Z.shared.providers)),Mn=qs(Va({body:gt.body,initialData:gt.initialData},Be,ft,Z,ue,At)),Xn=Z2(gt.buttons),Br=hO(Xn),or=_t(Xn.length!==0,qs(OL({buttons:Xn},Be,Z))),Mr=$k(()=>ho,{onBlock:Ci=>{Sv.block(Xr,(mi,qi)=>{const Fi=wn.getOpt(Xr).map(Os=>Ql(Os.element));return nd(Ci.message,qi,Z.shared.providers,Fi)})},onUnblock:()=>{Sv.unblock(Xr)},onClose:()=>F.closeWindow()},Z.shared.getSink),kr="tox-dialog-inline",yo=rf().os,Xr=vi({dom:{tag:"div",classes:["tox-dialog",kr,...on],attributes:{role:"dialog",...yo.isMacOS()?{"aria-label":gt.title}:{"aria-labelledby":qe}}},eventOrder:{[lp()]:[kn.name(),Wu.name()],[cp()]:["execute-on-form"],[zd()]:["reflecting","execute-on-form"]},behaviours:Do([Li.config({mode:"cyclic",onEscape:Ci=>(Sa(Ci,tk),I.some(!0)),useTabstopAt:Ci=>!g4(Ci)&&(ar(Ci)!=="button"||ao(Ci,"disabled")!=="disabled"),firstTabstop:1}),kn.config({channel:`${GC}-${Be}`,updateState:yn,initialData:s}),oa.config({}),Ta("execute-on-form",Mr.concat([Wv(Sm(),(Ci,mi)=>{Li.focusIn(Ci)}),fo(Jg(),(Ci,mi)=>{Ci.getSystem().broadcastOn([KC],{newFocus:mi.event.newFocus})})])),Sv.config({getRoot:()=>I.some(Xr)}),da.config({}),WC({})]),components:[wn.asSpec(),Mn.asSpec(),...or.map(Ci=>Ci.asSpec()).toArray()]}),No=()=>{Dg(Xr,$t.get())},Jo={getId:x(Be),getRoot:x(Xr),getFooter:()=>or.map(Ci=>Ci.get(Xr)),getBody:()=>Mn.get(Xr),getFormWrapper:()=>{const Ci=Mn.get(Xr);return as.getCurrent(Ci).getOr(Ci)},toggleFullscreen:No},ho=Gr(Jo,F.redial,Br);return{dialog:Xr,instanceApi:ho}};var Gi=tinymce.util.Tools.resolve("tinymce.util.URI");const ts=s=>{const F=qe=>{s.getSystem().isConnected()&&qe(s)};return{block:qe=>{if(!n(qe))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");F(ft=>{Ri(ft,IC,{message:qe})})},unblock:()=>{F(qe=>{Sa(qe,kP)})},close:()=>{F(qe=>{Sa(qe,tk)})},sendMessage:qe=>{F(ft=>{ft.getSystem().broadcastOn([n9],qe)})}}},Lc=["insertContent","setContent","execCommand","close","block","unblock"],_0=s=>c(s)&&Lc.indexOf(s.mceAction)!==-1,_A=s=>!_0(s)&&c(s)&&ht(s,"mceAction"),Noe=(s,F,Z)=>{switch(Z.mceAction){case"insertContent":s.insertContent(Z.content);break;case"setContent":s.setContent(Z.content);break;case"execCommand":const ue=w(Z.ui)?Z.ui:!1;s.execCommand(Z.cmd,ue,Z.value);break;case"close":F.close();break;case"block":F.block(Z.message);break;case"unblock":F.unblock();break}},wA=(s,F,Z,ue)=>{const we=fi("dialog"),Be=Nu(s.title,we,ue),qe=If(s),ft=s.buttons.bind(kr=>kr.length===0?I.none():I.some(kv({buttons:kr},we,ue))),gt=fx(()=>Mr,wu(()=>or,ue.shared.providers,F)),At={...s.height.fold(()=>({}),kr=>({height:kr+"px","max-height":kr+"px"})),...s.width.fold(()=>({}),kr=>({width:kr+"px","max-width":kr+"px"}))},$t=s.width.isNone()&&s.height.isNone()?["tox-dialog--width-lg"]:[],on=new Gi(s.url,{base_uri:new Gi(window.location.href)}),yn=`${on.protocol}://${on.host}${on.port?":"+on.port:""}`,wn=js(),Mn=(kr,yo)=>I.some(yo),Xn=[kn.config({channel:`${GC}-${we}`,updateState:Mn,initialData:s}),Ta("messages",[Ll(()=>{const kr=_d(Pt.fromDom(window),"message",yo=>{if(on.isSameOrigin(new Gi(yo.raw.origin))){const Xr=yo.raw.data;_0(Xr)?Noe(Z,Mr,Xr):_A(Xr)&&s.onMessage(Mr,Xr)}});wn.set(kr)}),Sh(wn.clear)]),Wu.config({channels:{[n9]:{onReceive:(kr,yo)=>{aa(kr.element,"iframe").each(Xr=>{const No=Xr.dom.contentWindow;a(No)&&No.postMessage(yo,yn)})}}}})],or=ux({id:we,header:Be,body:qe,footer:ft,extraClasses:$t,extraBehaviours:Xn,extraStyles:At},gt,ue),Mr=ts(or);return{dialog:or,instanceApi:Mr}},dx=s=>{const F=s.shared;return{open:(ue,we)=>{const Be=()=>{Lf.hide(At),we()},qe=qs(u8({name:"close-alert",text:"OK",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"cancel",s)),ft=m1(),gt=Pg(Be,F.providers),At=vi(xp({lazySink:()=>F.getSink(),header:Yu(ft,gt),body:Dh(ue,F.providers),footer:I.some(om(Rg([],[qe.asSpec()]))),onEscape:Be,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[fo(I2,Be)],eventOrder:{}}));Lf.show(At);const $t=qe.get(At);oa.focus($t)}}},cQ=s=>{const F=s.shared;return{open:(ue,we)=>{const Be=yn=>{Lf.hide($t),we(yn)},qe=qs(u8({name:"yes",text:"Yes",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"submit",s)),ft=u8({name:"no",text:"No",primary:!1,buttonType:I.some("secondary"),align:"end",enabled:!0,icon:I.none()},"cancel",s),gt=m1(),At=Pg(()=>Be(!1),F.providers),$t=vi(xp({lazySink:()=>F.getSink(),header:Yu(gt,At),body:Dh(ue,F.providers),footer:I.some(om(Rg([],[ft,qe.asSpec()]))),onEscape:()=>Be(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[fo(I2,()=>Be(!1)),fo(c4,()=>Be(!0))],eventOrder:{}}));Lf.show($t);const on=qe.get($t);oa.focus(on)}}},SL=(s,F)=>Nt(jt("data",F,s)),kL=s=>J5(s,".tox-alert-dialog")||J5(s,".tox-confirm-dialog"),uQ=(s,F,Z)=>F&&Z?[]:[Dl.config({contextual:{lazyContext:()=>I.some(Ya(Pt.fromDom(s.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:ue=>Kb(s,ue.element).map(Be=>({bounds:zw(Be),optScrollEnv:I.some({currentScrollTop:Be.element.dom.scrollTop,scrollElmTop:pc(Be.element).top})})).getOrThunk(()=>({bounds:xl(),optScrollEnv:I.none()}))})],$oe=s=>{const F=s.editor,Z=W3(F),ue=dx(s.backstages.dialog),we=cQ(s.backstages.dialog),Be=(Mn,Xn,Br)=>{if(!y(Xn)){if(Xn.inline==="toolbar")return At(Mn,s.backstages.popup.shared.anchors.inlineDialog(),Br,Xn);if(Xn.inline==="bottom")return $t(Mn,s.backstages.popup.shared.anchors.inlineBottomDialog(),Br,Xn);if(Xn.inline==="cursor")return At(Mn,s.backstages.popup.shared.anchors.cursor(),Br,Xn)}return gt(Mn,Br)},qe=(Mn,Xn)=>ft(Mn,Xn),ft=(Mn,Xn)=>{const Br=or=>{const Mr=wA(or,{closeWindow:()=>{Lf.hide(Mr.dialog),Xn(Mr.instanceApi)}},F,s.backstages.dialog);return Lf.show(Mr.dialog),Mr.instanceApi};return be.openUrl(Br,Mn)},gt=(Mn,Xn)=>{const Br=(or,Mr,kr)=>{const yo=Mr,No=Xo({dataValidator:kr,initialData:yo,internalDialog:or},{redial:be.redial,closeWindow:()=>{Lf.hide(No.dialog),Xn(No.instanceApi)}},s.backstages.dialog);return Lf.show(No.dialog),No.instanceApi.setData(yo),No.instanceApi};return be.open(Br,Mn)},At=(Mn,Xn,Br,or)=>{const Mr=(kr,yo,Xr)=>{const No=SL(yo,Xr),Jo=os(),ho=s.backstages.popup.shared.header.isPositionedAtTop(),Ci={dataValidator:Xr,initialData:No,internalDialog:kr},mi=()=>Jo.on(vs=>{hc.reposition(vs),(!Z||!ho)&&Dl.refresh(vs)}),qi=Vo(Ci,{redial:be.redial,closeWindow:()=>{Jo.on(hc.hide),F.off("ResizeEditor",mi),Jo.clear(),Br(qi.instanceApi)}},s.backstages.popup,or.ariaAttrs,mi),Fi=vi(hc.sketch({lazySink:s.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:or.persistent?{event:"doNotDismissYet"}:{},...ho?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Do([Ta("window-manager-inline-events",[fo(I0(),(vs,Ha)=>{Sa(qi.dialog,I2)})]),...uQ(F,Z,ho)]),isExtraPart:(vs,Ha)=>kL(Ha)}));Jo.set(Fi);const Os=()=>{const vs=F.inline?Vr():Pt.fromDom(F.getContainer()),Ha=Ya(vs);return I.some(Ha)};return hc.showWithinBounds(Fi,na(qi.dialog),{anchor:Xn},Os),(!Z||!ho)&&(Dl.refresh(Fi),F.on("ResizeEditor",mi)),qi.instanceApi.setData(No),Li.focusIn(qi.dialog),qi.instanceApi};return be.open(Mr,Mn)},$t=(Mn,Xn,Br,or)=>{const Mr=(kr,yo,Xr)=>{const No=SL(yo,Xr),Jo=os(),ho=s.backstages.popup.shared.header.isPositionedAtTop(),Ci={dataValidator:Xr,initialData:No,internalDialog:kr},mi=()=>Jo.on(vs=>{hc.reposition(vs),Dl.refresh(vs)}),qi=Vo(Ci,{redial:be.redial,closeWindow:()=>{Jo.on(hc.hide),F.off("ResizeEditor ScrollWindow ElementScroll",mi),Jo.clear(),Br(qi.instanceApi)}},s.backstages.popup,or.ariaAttrs,mi),Fi=vi(hc.sketch({lazySink:s.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:or.persistent?{event:"doNotDismissYet"}:{},...ho?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Do([Ta("window-manager-inline-events",[fo(I0(),(vs,Ha)=>{Sa(qi.dialog,I2)})]),Dl.config({contextual:{lazyContext:()=>I.some(Ya(Pt.fromDom(F.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:vs=>Kb(F,vs.element).map(Ho=>({bounds:zw(Ho),optScrollEnv:I.some({currentScrollTop:Ho.element.dom.scrollTop,scrollElmTop:pc(Ho.element).top})})).getOrThunk(()=>({bounds:xl(),optScrollEnv:I.none()}))})]),isExtraPart:(vs,Ha)=>kL(Ha)}));Jo.set(Fi);const Os=()=>s.backstages.popup.shared.getSink().toOptional().bind(vs=>{const Ha=Kb(F,vs.element),Ho=15,wi=Ha.map(ji=>zw(ji)).getOr(xl()),_a=Ya(Pt.fromDom(F.getContentAreaContainer())),Ki=fl(_a,wi);return I.some(ms(Ki.x,Ki.y,Ki.width,Ki.height-Ho))});return hc.showWithinBounds(Fi,na(qi.dialog),{anchor:Xn},Os),Dl.refresh(Fi),F.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",mi),qi.instanceApi.setData(No),Li.focusIn(qi.dialog),qi.instanceApi};return be.open(Mr,Mn)};return{open:Be,openUrl:qe,alert:(Mn,Xn)=>{ue.open(Mn,Xn)},close:Mn=>{Mn.close()},confirm:(Mn,Xn)=>{we.open(Mn,Xn)}}},Ga=s=>{JB(s),hX(s),mj(s)};var no=()=>{af.add("silver",s=>{Ga(s);let F=()=>xl();const{dialogs:Z,popups:ue,renderUI:we}=qre(s,{getPopupSinkBounds:()=>F()}),Be=()=>{const At=we();return Kb(s,ue.getMothership().element).each(on=>{F=()=>zw(on)}),At};aG.register(s,ue.backstage.shared);const qe=$oe({editor:s,backstages:{popup:ue.backstage,dialog:Z.backstage}}),ft=os(),gt=()=>mY(s,{backstage:ue.backstage},ue.getMothership(),ft);return{renderUI:Be,getWindowManagerImpl:x(qe),getNotificationManagerImpl:gt}})};no()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"math-equation":'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"revision-history":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":'',"export-pdf":'',"export-word":'',"import-word":''}});(function(){const t=m=>{let v=m;return{get:()=>v,set:A=>{v=A}}};var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.Env");const f=m=>m.dispatch("ResizeEditor"),P=m=>v=>v.options.get(m),d=m=>{const v=m.options.register;v("autoresize_overflow_padding",{processor:"number",default:1}),v("autoresize_bottom_margin",{processor:"number",default:50})},l=P("min_height"),n=P("max_height"),c=P("autoresize_overflow_padding"),b=P("autoresize_bottom_margin"),i=m=>m.plugins.fullscreen&&m.plugins.fullscreen.isFullscreen(),O=(m,v)=>{const _=m.getBody();_&&(_.style.overflowY=v?"":"hidden",v||(_.scrollTop=0))},w=(m,v,_,S)=>{var A;const x=parseInt((A=m.getStyle(v,_,S))!==null&&A!==void 0?A:"",10);return isNaN(x)?0:x},y=m=>{if((m==null?void 0:m.type.toLowerCase())==="setcontent"){const v=m;return v.selection===!0||v.paste===!0}else return!1},p=(m,v,_,S)=>{var A;const x=m.dom,R=m.getDoc();if(!R)return;if(i(m)){O(m,!0);return}const M=R.documentElement,T=S?S():c(m),E=(A=l(m))!==null&&A!==void 0?A:m.getElement().offsetHeight;let C=E;const L=w(x,M,"margin-top",!0),D=w(x,M,"margin-bottom",!0);let k=M.offsetHeight+L+D+T;k<0&&(k=0);const I=m.getContainer().offsetHeight,z=m.getContentAreaContainer().offsetHeight,$=I-z;k+$>E&&(C=k+$);const Q=n(m);Q&&C>Q?(C=Q,O(m,!0)):O(m,!1);const j=v.get();if(j.set&&(m.dom.setStyles(m.getDoc().documentElement,{"min-height":0}),m.dom.setStyles(m.getBody(),{"min-height":"inherit"})),C!==j.totalHeight&&(k-T!==j.contentHeight||!j.set)){const U=C-j.totalHeight;if(x.setStyle(m.getContainer(),"height",C+"px"),v.set({totalHeight:C,contentHeight:k,set:!0}),f(m),o.browser.isSafari()&&(o.os.isMacOS()||o.os.isiOS())){const X=m.getWin();X.scrollTo(X.pageXOffset,X.pageYOffset)}m.hasFocus()&&y(_)&&m.selection.scrollIntoView(),(o.browser.isSafari()||o.browser.isChromium())&&U<0&&p(m,v,_,S)}},a=(m,v)=>{const _=()=>b(m);m.on("init",S=>{const A=c(m),x=m.dom;x.setStyles(m.getDoc().documentElement,{height:"auto"}),o.browser.isEdge()||o.browser.isIE()?x.setStyles(m.getBody(),{paddingLeft:A,paddingRight:A,"min-height":0}):x.setStyles(m.getBody(),{paddingLeft:A,paddingRight:A}),p(m,v,S,_)}),m.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",S=>{p(m,v,S,_)})},u=(m,v)=>{m.addCommand("mceAutoResize",()=>{p(m,v)})};var h=()=>{e.add("autoresize",m=>{if(d(m),m.options.isSet("resize")||m.options.set("resize",!1),!m.inline){const v=t({totalHeight:0,contentHeight:0,set:!1});u(m,v),a(m,v)}})};h()})();var KNe=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],JNe=function(t){return KNe.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},e$e=function(t,e,o){Object.keys(e).filter(JNe).forEach(function(f){var P=e[f];typeof P=="function"&&(f==="onInit"?P(t,o):o.on(f.substring(2),function(d){return P(d,o)}))})},t$e=function(t,e,o,f){var P=t.modelEvents?t.modelEvents:null,d=Array.isArray(P)?P.join(" "):P;Ni(f,function(l,n){o&&typeof l=="string"&&l!==n&&l!==o.getContent({format:t.outputFormat})&&o.setContent(l)}),o.on(d||"change input undo redo",function(){e.emit("update:modelValue",o.getContent({format:t.outputFormat}))})},n$e=function(t,e,o,f,P,d){f.setContent(d()),o.attrs["onUpdate:modelValue"]&&t$e(e,o,f,P),e$e(t,o.attrs,f)},b0e=0,pOe=function(t){var e=Date.now(),o=Math.floor(Math.random()*1e9);return b0e++,t+"_"+o+b0e+String(e)},r$e=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},x0e=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},o$e=function(t,e){return x0e(t).concat(x0e(e))},i$e=function(t){return t==null},_0e=function(){return{listeners:[],scriptId:pOe("tiny-script"),scriptLoaded:!1}},a$e=function(){var t=_0e(),e=function(P,d,l,n){var c=d.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=P,c.src=l;var b=function(){c.removeEventListener("load",b),n()};c.addEventListener("load",b),d.head&&d.head.appendChild(c)},o=function(P,d,l){t.scriptLoaded?l():(t.listeners.push(l),P.getElementById(t.scriptId)||e(t.scriptId,P,d,function(){t.listeners.forEach(function(n){return n()}),t.scriptLoaded=!0}))},f=function(){t=_0e()};return{load:o,reinitialize:f}},s$e=a$e(),l$e=function(){return typeof window<"u"?window:global},Xk=function(){var t=l$e();return t&&t.tinymce?t.tinymce:null},c$e={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},J2=globalThis&&globalThis.__assign||function(){return J2=Object.assign||function(t){for(var e,o=1,f=arguments.length;od.createCell(c))},V1e({code:Oo(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Bo(),la(l,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=c=>o.cellData.code=c),init:P.init,onKeyUp:d.saveCell},null,8,["modelValue","init","onKeyUp"])):Wa("",!0)]),_:2},[t.$devMode&&d.isAppRoute||!t.$devMode?{name:"outcome",fn:Oo(()=>[Zt(l,{modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=c=>o.cellData.code=c),init:P.app_init,disabled:!0},null,8,["modelValue","init"])]),key:"0"}:void 0]),1032,["cell-id","is-dev-mode","hide-cell","cell-name","onSave","onDelete"])}const mOe=hm(h$e,[["render",p$e]]),m$e=36,w0e=1,g$e=2,QL=3,aae=4,v$e=5,y$e=6,b$e=7,x$e=8,_$e=9,w$e=10,O$e=11,S$e=12,k$e=13,T$e=14,C$e=15,A$e=16,M$e=17,O0e=18,E$e=19,gOe=20,vOe=21,S0e=22,P$e=23,R$e=24;function ile(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57}function L$e(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function Kk(t,e,o){for(let f=!1;;){if(t.next<0)return;if(t.next==e&&!f){t.advance();return}f=o&&!f&&t.next==92,t.advance()}}function I$e(t){for(;;){if(t.next<0||t.peek(1)<0)return;if(t.next==36&&t.peek(1)==36){t.advance(2);return}t.advance()}}function D$e(t,e){let o="[{<(".indexOf(String.fromCharCode(e)),f=o<0?e:"]}>)".charCodeAt(o);for(;;){if(t.next<0)return;if(t.next==f&&t.peek(1)==39){t.advance(2);return}t.advance()}}function yOe(t,e){for(;!(t.next!=95&&!ile(t.next));)e!=null&&(e+=String.fromCharCode(t.next)),t.advance();return e}function B$e(t){if(t.next==39||t.next==34||t.next==96){let e=t.next;t.advance(),Kk(t,e,!1)}else yOe(t)}function k0e(t,e){for(;t.next==48||t.next==49;)t.advance();e&&t.next==e&&t.advance()}function T0e(t,e){for(;;){if(t.next==46){if(e)break;e=!0}else if(t.next<48||t.next>57)break;t.advance()}if(t.next==69||t.next==101)for(t.advance(),(t.next==43||t.next==45)&&t.advance();t.next>=48&&t.next<=57;)t.advance()}function C0e(t){for(;!(t.next<0||t.next==10);)t.advance()}function Gk(t,e){for(let o=0;o!=&|~^/",specialVar:"?",identifierQuotes:'"',words:bOe(F$e,z$e)};function N$e(t,e,o,f){let P={};for(let d in ale)P[d]=(t.hasOwnProperty(d)?t:ale)[d];return e&&(P.words=bOe(e,o||"",f)),P}function xOe(t){return new A0(e=>{var o;let{next:f}=e;if(e.advance(),Gk(f,sae)){for(;Gk(e.next,sae);)e.advance();e.acceptToken(m$e)}else if(f==36&&e.next==36&&t.doubleDollarQuotedStrings)I$e(e),e.acceptToken(QL);else if(f==39||f==34&&t.doubleQuotedStrings)Kk(e,f,t.backslashEscapes),e.acceptToken(QL);else if(f==35&&t.hashComments||f==47&&e.next==47&&t.slashComments)C0e(e),e.acceptToken(w0e);else if(f==45&&e.next==45&&(!t.spaceAfterDashes||e.peek(1)==32))C0e(e),e.acceptToken(w0e);else if(f==47&&e.next==42){e.advance();for(let P=1;;){let d=e.next;if(e.next<0)break;if(e.advance(),d==42&&e.next==47){if(P--,e.advance(),!P)break}else d==47&&e.next==42&&(P++,e.advance())}e.acceptToken(g$e)}else if((f==101||f==69)&&e.next==39)e.advance(),Kk(e,39,!0);else if((f==110||f==78)&&e.next==39&&t.charSetCasts)e.advance(),Kk(e,39,t.backslashEscapes),e.acceptToken(QL);else if(f==95&&t.charSetCasts)for(let P=0;;P++){if(e.next==39&&P>1){e.advance(),Kk(e,39,t.backslashEscapes),e.acceptToken(QL);break}if(!ile(e.next))break;e.advance()}else if(t.plsqlQuotingMechanism&&(f==113||f==81)&&e.next==39&&e.peek(1)>0&&!Gk(e.peek(1),sae)){let P=e.peek(1);e.advance(2),D$e(e,P),e.acceptToken(QL)}else if(f==40)e.acceptToken(b$e);else if(f==41)e.acceptToken(x$e);else if(f==123)e.acceptToken(_$e);else if(f==125)e.acceptToken(w$e);else if(f==91)e.acceptToken(O$e);else if(f==93)e.acceptToken(S$e);else if(f==59)e.acceptToken(k$e);else if(t.unquotedBitLiterals&&f==48&&e.next==98)e.advance(),k0e(e),e.acceptToken(S0e);else if((f==98||f==66)&&(e.next==39||e.next==34)){const P=e.next;e.advance(),t.treatBitsAsBytes?(Kk(e,P,t.backslashEscapes),e.acceptToken(P$e)):(k0e(e,P),e.acceptToken(S0e))}else if(f==48&&(e.next==120||e.next==88)||(f==120||f==88)&&e.next==39){let P=e.next==39;for(e.advance();L$e(e.next);)e.advance();P&&e.next==39&&e.advance(),e.acceptToken(aae)}else if(f==46&&e.next>=48&&e.next<=57)T0e(e,!0),e.acceptToken(aae);else if(f==46)e.acceptToken(T$e);else if(f>=48&&f<=57)T0e(e,!1),e.acceptToken(aae);else if(Gk(f,t.operatorChars)){for(;Gk(e.next,t.operatorChars);)e.advance();e.acceptToken(C$e)}else if(Gk(f,t.specialVar))e.next==f&&e.advance(),B$e(e),e.acceptToken(M$e);else if(Gk(f,t.identifierQuotes))Kk(e,f,!1),e.acceptToken(E$e);else if(f==58||f==44)e.acceptToken(A$e);else if(ile(f)){let P=yOe(e,String.fromCharCode(f));e.acceptToken(e.next==46?O0e:(o=t.words[P.toLowerCase()])!==null&&o!==void 0?o:O0e)}})}const _Oe=xOe(ale),$$e=uS.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,_Oe],topRules:{Script:[0,25]},tokenPrec:0});function sle(t){let e=t.cursor().moveTo(t.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function oD(t,e){let o=t.sliceString(e.from,e.to),f=/^([`'"])(.*)\1$/.exec(o);return f?f[2]:o}function EZ(t){return t&&(t.name=="Identifier"||t.name=="QuotedIdentifier")}function V$e(t,e){if(e.name=="CompositeIdentifier"){let o=[];for(let f=e.firstChild;f;f=f.nextSibling)EZ(f)&&o.push(oD(t,f));return o}return[oD(t,e)]}function A0e(t,e){for(let o=[];;){if(!e||e.name!=".")return o;let f=sle(e);if(!EZ(f))return o;o.unshift(oD(t,f)),e=sle(f)}}function U$e(t,e){let o=Gu(t).resolveInner(e,-1),f=Q$e(t.doc,o);return o.name=="Identifier"||o.name=="QuotedIdentifier"||o.name=="Keyword"?{from:o.from,quoted:o.name=="QuotedIdentifier"?t.doc.sliceString(o.from,o.from+1):null,parents:A0e(t.doc,sle(o)),aliases:f}:o.name=="."?{from:e,quoted:null,parents:A0e(t.doc,o),aliases:f}:{from:e,quoted:null,parents:[],empty:!0,aliases:f}}const j$e=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function Q$e(t,e){let o;for(let P=e;!o;P=P.parent){if(!P)return null;P.name=="Statement"&&(o=P)}let f=null;for(let P=o.firstChild,d=!1,l=null;P;P=P.nextSibling){let n=P.name=="Keyword"?t.sliceString(P.from,P.to).toLowerCase():null,c=null;if(!d)d=n=="from";else if(n=="as"&&l&&EZ(P.nextSibling))c=oD(t,P.nextSibling);else{if(n&&j$e.has(n))break;l&&EZ(P)&&(c=oD(t,P))}c&&(f||(f=Object.create(null)),f[c]=V$e(t,l)),l=/Identifier$/.test(P.name)?P:null}return f}function H$e(t,e){return t?e.map(o=>Object.assign(Object.assign({},o),{label:t+o.label+t,apply:void 0})):e}const Z$e=/^\w*$/,q$e=/^[`'"]?\w*[`'"]?$/;class Due{constructor(){this.list=[],this.children=void 0}child(e,o){let f=this.children||(this.children=Object.create(null)),P=f[e];return P||(e&&this.list.push(wOe(e,"type",o)),f[e]=new Due)}addCompletions(e){for(let o of e){let f=this.list.findIndex(P=>P.label==o.label);f>-1?this.list[f]=o:this.list.push(o)}}}function wOe(t,e,o){return/[^\w\xb5-\uffff]/.test(t)?{label:t,type:e,apply:o+t+o}:{label:t,type:e}}function W$e(t,e,o,f,P,d){var l;let n=new Due,c=((l=d==null?void 0:d.spec.identifierQuotes)===null||l===void 0?void 0:l[0])||'"',b=n.child(P||"",c);for(let i in t){let O=i.replace(/\\?\./g,y=>y=="."?"\0":y).split("\0"),w=O.length==1?b:n;for(let y of O)w=w.child(y.replace(/\\\./g,"."),c);for(let y of t[i])y&&w.list.push(typeof y=="string"?wOe(y,"property",c):y)}return e&&b.addCompletions(e),o&&n.addCompletions(o),n.addCompletions(b.list),f&&n.addCompletions(b.child(f,c).list),i=>{let{parents:O,from:w,quoted:y,empty:p,aliases:a}=U$e(i.state,i.pos);if(p&&!i.explicit)return null;a&&O.length==1&&(O=a[O[0]]||O);let u=n;for(let v of O){for(;!u.children||!u.children[v];)if(u==n)u=b;else if(u==b&&f)u=u.child(f,c);else return null;u=u.child(v,c)}let h=y&&i.state.sliceDoc(i.pos,i.pos+1)==y,m=u.list;return u==n&&a&&(m=m.concat(Object.keys(a).map(v=>({label:v,type:"constant"})))),{from:w,to:h?i.pos+1:void 0,options:H$e(y,m),validFor:y?q$e:Z$e}}}function Y$e(t,e){let o=Object.keys(t).map(f=>({label:e?f.toUpperCase():f,type:t[f]==vOe?"type":t[f]==gOe?"keyword":"variable",boost:-1}));return Mce(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],oq(o))}let X$e=$$e.configure({props:[OT.add({Statement:fI()}),gS.add({Statement(t){return{from:t.firstChild.to,to:t.to}},BlockComment(t){return{from:t.from+2,to:t.to-2}}}),mS({Keyword:Gn.keyword,Type:Gn.typeName,Builtin:Gn.standard(Gn.name),Bits:Gn.number,Bytes:Gn.string,Bool:Gn.bool,Null:Gn.null,Number:Gn.number,String:Gn.string,Identifier:Gn.name,QuotedIdentifier:Gn.special(Gn.string),SpecialVar:Gn.special(Gn.name),LineComment:Gn.lineComment,BlockComment:Gn.blockComment,Operator:Gn.operator,"Semi Punctuation":Gn.punctuation,"( )":Gn.paren,"{ }":Gn.brace,"[ ]":Gn.squareBracket})]});class Bue{constructor(e,o,f){this.dialect=e,this.language=o,this.spec=f}get extension(){return this.language.extension}static define(e){let o=N$e(e,e.keywords,e.types,e.builtin),f=lS.define({name:"sql",parser:X$e.configure({tokenizers:[{from:_Oe,to:xOe(o)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new Bue(o,f,e)}}function G$e(t,e=!1){return Y$e(t.dialect.words,e)}function K$e(t,e=!1){return t.language.data.of({autocomplete:G$e(t,e)})}function J$e(t){return t.schema?W$e(t.schema,t.tables,t.schemas,t.defaultTable,t.defaultSchema,t.dialect||zue):()=>null}function eVe(t){return t.schema?(t.dialect||zue).language.data.of({autocomplete:J$e(t)}):[]}function M0e(t={}){let e=t.dialect||zue;return new gT(e.language,[eVe(t),K$e(e,!!t.upperCaseKeywords)])}const zue=Bue.define({}),tVe={components:{cell:zq,codemirror:sq,"v-data-table":Iq},computed:{isAppRoute(){return _T().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode()},e=IO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)}]);return this.$devMode&&!this.isAppRoute?[Nv.highest(e),M0e(),mM,hM({override:[]})]:[jl.readOnly.of(!0),Nv.highest(e),M0e(),mM,hM({override:[]})]},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},inheritAttrs:!1,emits:["runCode","deleteCell","createCell","saveCell"],data(){return{isFocused:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0}},setup(){const t=Ai(null);return{view:t,handleReady:o=>{t.value=o.view}}},mounted(){},methods:{runCode(){this.$emit("runCode",this.cellData.id,this.cellData.nonReactive)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){this.$devMode&&this.$emit("saveCell",this.cellData.id,this.cellData.code,"","")},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},updateShowTable(t){this.cellData.showTable=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const nVe={key:2},rVe={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},oVe={class:"text-ellipsis app-static-name"},iVe={key:3},aVe={class:"text-caption text-disabled text-right"},sVe={class:"text-p"};function lVe(t,e,o,f,P,d){const l=Zd("codemirror"),n=Zd("cell");return Bo(),la(n,{"cell-type":"sql","cell-id":o.cellData.id,"hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,showTable:o.cellData.showTable,"cell-name":o.cellData.cellName,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:d.runCode,onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=c=>d.expandCodeUpdate(c)),onHideCode:e[6]||(e[6]=c=>d.hideCode(c)),onUpdateReactivity:e[7]||(e[7]=c=>d.updateReactivity(c)),onUpdateShowTable:e[8]||(e[8]=c=>d.updateShowTable(c)),onRenameCell:e[9]||(e[9]=c=>d.renameCell(c)),onAddCell:e[10]||(e[10]=c=>d.createCell(c))},{code:Oo(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Bo(),la(um,{key:0,modelValue:o.cellData.variable_name,"onUpdate:modelValue":e[0]||(e[0]=c=>o.cellData.variable_name=c),label:"Enter SQL variable name",density:"compact"},null,8,["modelValue"])):Wa("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Bo(),la(l,{key:1,modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=c=>o.cellData.code=c),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):(Bo(),Da("div",nVe,[o.cellData.hideCode?(Bo(),Da("h4",rVe,sc(o.cellData.cellName),1)):(Bo(),la(H_e,{key:1,modelValue:P.expanded,"onUpdate:modelValue":e[4]||(e[4]=c=>P.expanded=c)},{default:Oo(()=>[Zt(Q_e,{modelValue:P.expanded,"onUpdate:modelValue":e[3]||(e[3]=c=>P.expanded=c),"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Zt(_Z,{class:"text-bluegrey-darken-1"},{default:Oo(()=>[pa("h4",oVe,sc(o.cellData.cellName),1)]),_:1}),Zt(xZ,null,{default:Oo(()=>[Zt(l,{modelValue:o.cellData.code,"onUpdate:modelValue":e[2]||(e[2]=c=>o.cellData.code=c),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Bo(),Da("div",iVe,[pa("p",aVe,sc(d.shortcutText)+" to run",1)])):Wa("",!0)]),outcome:Oo(()=>[t.$devMode&&!d.isAppRoute||o.cellData.showTable?(Bo(!0),Da(ya,{key:0},ob(o.cellData.components,c=>(Bo(),la(bM,{key:c.id},{default:Oo(()=>[(Bo(),la(SI(c.component),Di(c,{modelValue:c.value,"onUpdate:modelValue":b=>c.value=b},{[eI(c.triggerEvent)]:d.runCode}),null,16,["modelValue","onUpdate:modelValue"]))]),_:2},1024))),128)):Wa("",!0),pa("div",sVe,sc(o.cellData.output),1)]),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","showTable","cell-name","is-dev-mode","onPlay","onDelete"])}const OOe=hm(tVe,[["render",lVe],["__scopeId","data-v-c042122a"]]),cVe={components:{codemirror:sq},data:()=>({updatingDependencies:!1,ztAliases:Kh}),emits:["updateDependencies"],props:{dependencies:{type:Object,required:!0},dependencyOutput:{type:Object,required:!0}},computed:{extensions(){return[jl.readOnly.of(!0),dOe(),mM]}},methods:{async updateDependencies(){this.dependencyOutput.isLoading=!0,this.$emit("updateDependencies",this.dependencies)}}},uVe=pa("span",{class:"text-h5"},"Add Dependencies",-1),fVe=pa("a",{href:"https://pip.pypa.io/en/stable/reference/requirements-file-format/",target:"_blank"},"pip requirements file specification",-1),dVe={class:"d-flex justify-center"};function hVe(t,e,o,f,P,d){const l=Zd("codemirror");return Bo(),la(Eq,{modelValue:t.updatingDependencies,"onUpdate:modelValue":e[3]||(e[3]=n=>t.updatingDependencies=n),width:"1024"},{activator:Oo(({props:n})=>[Zt(ps,Di({color:"bluegrey-darken-4"},n,{icon:"mdi-package",class:"text-bluegrey"}),null,16)]),default:Oo(()=>[Zt(BO,null,{default:Oo(()=>[Zt(PD,null,{default:Oo(()=>[uVe]),_:1}),Zt(n_e,null,{default:Oo(()=>[Cs(" Versions must adhere to "),fVe,Cs(". Examples: '==1.0.0' '!=1.5.0,>=1.4.1' etc. ")]),_:1}),Zt(m_,null,{default:Oo(()=>[(Bo(!0),Da(ya,null,ob(o.dependencies.dependencies,n=>(Bo(),la(Bf,null,{default:Oo(()=>[Zt(Dq,null,{default:Oo(()=>[Zt(hT,null,{default:Oo(()=>[Zt(um,{modelValue:n.package,"onUpdate:modelValue":c=>n.package=c,label:"Package (required)"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),Zt(hT,null,{default:Oo(()=>[Zt(um,{modelValue:n.version,"onUpdate:modelValue":c=>n.version=c,label:"Version"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),Zt(hT,{cols:"1"},{default:Oo(()=>[Zt(ps,{icon:"",color:"primary"},{default:Oo(()=>[Zt(Tl,{color:"black",onClick:c=>{var b;return(b=o.dependencies.dependencies)==null?void 0:b.splice(o.dependencies.dependencies.indexOf(n),1)}},{default:Oo(()=>[Cs("mdi-delete")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256)),Zt(Bf,{class:"d-flex justify-center align-center"},{default:Oo(()=>[Zt(ps,{icon:"mdi-plus",variant:"text",onClick:e[0]||(e[0]=n=>{var c;return(c=o.dependencies.dependencies)==null?void 0:c.push({package:"",version:""})}),text:"Add Dependency",class:"black--text"})]),_:1}),o.dependencyOutput.output?(Bo(),la(Bf,{key:0},{default:Oo(()=>[Zt(l,{modelValue:o.dependencyOutput.output,"onUpdate:modelValue":e[1]||(e[1]=n=>o.dependencyOutput.output=n),style:{height:"400px"},"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})):Wa("",!0)]),_:1}),Zt(t_e,null,{default:Oo(()=>[o.dependencyOutput.isLoading?Wa("",!0):(Bo(),la(ps,{key:0,color:"primary",variant:"flat",onClick:d.updateDependencies,text:"Install"},null,8,["onClick"])),pa("div",dVe,[o.dependencyOutput.isLoading?(Bo(),la(SD,{key:0,indeterminate:"",color:"primary"})):Wa("",!0)]),Zt($_e),Zt(ps,{color:"error",variant:"text",onClick:e[2]||(e[2]=n=>t.updatingDependencies=!1),text:"Close"})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const SOe=hm(cVe,[["render",hVe]]),E0e=Hg({__name:"CommentMenu",emits:["deleteComment","editComment"],setup(t,{emit:e}){const o=LD();return(f,P)=>(Bo(),la(hS,null,{activator:Oo(({props:d})=>[Zt(ps,Di({icon:`ztIcon:${wa(Kh).more}`},d,{variant:"plain",size:"small"}),null,16,["icon"])]),default:Oo(()=>[Zt(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Zt(Bf,{disabled:!wa(o).editorAvailable,onClick:P[0]||(P[0]=d=>e("editComment"))},{prepend:Oo(()=>[Zt(Tl,{icon:`ztIcon:${wa(Kh).edit}`},null,8,["icon"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Edit")]),_:1})]),_:1},8,["disabled"]),Zt(Bf,{"base-color":"error",onClick:P[1]||(P[1]=d=>e("deleteComment"))},{prepend:Oo(()=>[Zt(Tl,{icon:`ztIcon:${wa(Kh).delete}`},null,8,["icon"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Delete")]),_:1})]),_:1})]),_:1})]),_:1}))}}),pVe={class:"d-flex justify-end"},lae=Hg({__name:"CommentTextarea",props:{isSaving:Boolean,modelValue:String},emits:["cancel","submit","update:modelValue"],setup(t,{emit:e}){const o=ei(null),f=ei(null);return ag(()=>{var P,d;(P=f.value)==null||P.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(d=o.value)==null||d.focus()}),(P,d)=>(Bo(),Da("div",{class:"d-flex flex-column",style:{flex:"1"},ref_key:"commentEditContainer",ref:f},[Zt(RD,{"model-value":t.modelValue,ref_key:"commentEditTextArea",ref:o,"onUpdate:modelValue":d[0]||(d[0]=l=>e("update:modelValue",l)),variant:"outlined"},null,8,["model-value"]),pa("div",pVe,[Zt(ps,{variant:"text",onClick:d[1]||(d[1]=l=>e("cancel"))},{default:Oo(()=>[Cs("Cancel")]),_:1}),Zt(ps,{color:"primary",class:"ml-2",loading:t.isSaving,disabled:!t.modelValue||t.isSaving,onClick:d[2]||(d[2]=l=>e("submit"))},{default:Oo(()=>[Cs("Submit")]),_:1},8,["loading","disabled"])])],512))}});var Gm=[];for(var cae=0;cae<256;++cae)Gm.push((cae+256).toString(16).slice(1));function mVe(t,e=0){return(Gm[t[e+0]]+Gm[t[e+1]]+Gm[t[e+2]]+Gm[t[e+3]]+"-"+Gm[t[e+4]]+Gm[t[e+5]]+"-"+Gm[t[e+6]]+Gm[t[e+7]]+"-"+Gm[t[e+8]]+Gm[t[e+9]]+"-"+Gm[t[e+10]]+Gm[t[e+11]]+Gm[t[e+12]]+Gm[t[e+13]]+Gm[t[e+14]]+Gm[t[e+15]]).toLowerCase()}var oH,gVe=new Uint8Array(16);function vVe(){if(!oH&&(oH=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!oH))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oH(gVe)}var yVe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const P0e={randomUUID:yVe};function kOe(t,e,o){if(P0e.randomUUID&&!e&&!t)return P0e.randomUUID();t=t||{};var f=t.random||(t.rng||vVe)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,e){o=o||0;for(var P=0;P<16;++P)e[o+P]=f[P];return e}return mVe(f)}const bVe={class:"messages"},xVe={class:"message mb-4"},_Ve={class:"d-flex justify-space-between align-start"},wVe={key:1,class:"message__content"},OVe={class:"d-flex align-center"},SVe={class:"d-flex align-center"},kVe={class:"message__timestamp"},TVe={class:"message mb-4 d-flex"},CVe={class:"ml-6 flex-1-1"},AVe={class:"d-flex justify-space-between align-start"},MVe={key:1,class:"message__content"},EVe={class:"d-flex align-center"},PVe={class:"d-flex align-center"},RVe={class:"message__timestamp"},LVe={key:0,class:"text-box"},IVe=Hg({__name:"Comment",props:{comment:{type:Object,required:!0}},setup(t){const e=t,o=LD(),f=Ai(""),P=Ai(!1),d=Ai(!1),l=Ai(void 0),n=Ai(""),c=Ai(!1);function b(a){o.editorAvailable=!1,l.value=a.id,n.value=a.comment}function i(){o.editorAvailable=!0,l.value=void 0}async function O(a,u){l.value&&(c.value=!0,await o.editComment(l.value,a,n.value,u),c.value=!1,l.value=void 0,n.value="",o.editorAvailable=!0)}async function w(a,u,h){await o.deleteComment(a,u,h)}async function y(){d.value=!0;const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},u=Intl.DateTimeFormat("en-US",a).format(new Date),h={id:kOe(),cell:e.comment.cell,userName:"",date:u,comment:f.value,replies:[],resolved:!1};await o.replyComment(e.comment.id,h),d.value=!1,f.value="",P.value=!1,o.editorAvailable=!0}async function p(a,u){await o.resolveComment(a,u)}return(a,u)=>(Bo(),Da("div",bVe,[pa("div",xVe,[pa("div",_Ve,[wa(l)===t.comment.id?(Bo(),la(lae,{key:0,modelValue:wa(n),"onUpdate:modelValue":u[0]||(u[0]=h=>Dc(n)?n.value=h:null),isSaving:wa(c),onCancel:i,onSubmit:u[1]||(u[1]=h=>O(t.comment.cell.cellId??""))},null,8,["modelValue","isSaving"])):(Bo(),Da("p",wVe,sc(t.comment.comment),1)),pa("div",OVe,[!t.comment.resolved&&!wa(l)?(Bo(),la(ps,{key:0,icon:"$success",variant:"plain",ripple:!1,onClick:u[2]||(u[2]=()=>p(t.comment.id,t.comment.cell.cellId??""))})):Wa("",!0),wa(l)?Wa("",!0):(Bo(),la(E0e,{key:1,onEditComment:u[3]||(u[3]=()=>{t.comment.resolved||b(t.comment)}),onDeleteComment:u[4]||(u[4]=()=>w(t.comment.id,t.comment.cell.cellId??""))}))])]),pa("div",SVe,[pa("p",kVe,sc(t.comment.date),1)])]),(Bo(!0),Da(ya,null,ob(t.comment.replies,h=>(Bo(),Da("div",TVe,[Zt(yM,{class:"indicator",vertical:"",color:"bluegrey",thickness:1}),pa("div",CVe,[pa("div",AVe,[wa(l)===h.id?(Bo(),la(lae,{key:0,modelValue:wa(n),"onUpdate:modelValue":u[5]||(u[5]=m=>Dc(n)?n.value=m:null),isSaving:wa(c),onCancel:i,onSubmit:u[6]||(u[6]=()=>O(t.comment.cell.cellId??"",t.comment.id))},null,8,["modelValue","isSaving"])):(Bo(),Da("p",MVe,sc(h.comment),1)),pa("div",EVe,[pa("div",null,[wa(l)?Wa("",!0):(Bo(),la(E0e,{key:0,onEditComment:()=>{t.comment.resolved||b(h)},onDeleteComment:()=>w(h.id,t.comment.cell.cellId??"",t.comment.id)},null,8,["onEditComment","onDeleteComment"]))])])]),pa("div",PVe,[pa("p",RVe,sc(h.date),1)])])]))),256)),wa(P)?(Bo(),Da("div",LVe,[Zt(lae,{modelValue:wa(f),"onUpdate:modelValue":u[7]||(u[7]=h=>Dc(f)?f.value=h:null),"is-saving":wa(d),onCancel:u[8]||(u[8]=()=>{wa(o).editorAvailable=!0,P.value=!1}),onSubmit:y},null,8,["modelValue","is-saving"])])):Wa("",!0),!wa(P)&&!t.comment.resolved?(Bo(),la(ps,{key:1,variant:"text",slim:"",disabled:!wa(o).editorAvailable,onClick:u[9]||(u[9]=()=>{wa(o).editorAvailable=!1,P.value=!0})},{default:Oo(()=>[Cs("Reply")]),_:1},8,["disabled"])):Wa("",!0)]))}});const DVe=hm(IVe,[["__scopeId","data-v-588566c2"]]),TOe=t=>(Mle("data-v-793087b5"),t=t(),Ele(),t),BVe={key:0,class:"d-flex justify-space-between align-center pa-4"},zVe={class:"d-flex align-center"},FVe={class:"justify-right"},NVe={class:"content ma-4"},$Ve={class:"d-flex justify-space-between align-center"},VVe={class:"mt-6 flex-1-1"},UVe={key:0,class:"empty-state"},jVe=TOe(()=>pa("p",null,"No comments yet",-1)),QVe=TOe(()=>pa("p",{class:"empty-state__text mt-2"}," Add a comment by clicking on the cell you want to add a comment to. ",-1)),HVe={key:1,class:"comments-wrapper"},ZVe={class:"d-flex justify-end"},qVe=Hg({__name:"Comments",setup(t){const e=LD(),{addComment:o,closeComments:f}=e,{selectedCell:P}=Sue(e),d=ei(null),l=ei(null),n=jn(()=>{var u;return(u=P.value)==null?void 0:u.cellType}),c=jn(()=>{var u;switch((u=P.value)==null?void 0:u.cellType){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),b=Ai(!1),i=Ai(!1),O=Ai(""),w=Ai(!1),y=jn(()=>e.displayedComments.filter(u=>b.value?u.resolved:!u.resolved));Ni(P,()=>{b.value=!1,i.value=!1,O.value="",w.value=!1});function p(){i.value=!i.value,e.editorAvailable=!1,lc(()=>{var u,h;(u=d.value)==null||u.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(h=d.value)==null||h.focus()})}async function a(){w.value=!0;const u={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},h=Intl.DateTimeFormat("en-US",u).format(new Date),m={id:kOe(),cell:e.selectedCell,userName:"",date:h,comment:O.value,replies:[],resolved:!1};await o(m),w.value=!1,O.value="",i.value=!1,e.editorAvailable=!0}return(u,h)=>(Bo(),la(BO,{class:"card"},{default:Oo(()=>[wa(P)?(Bo(),Da("div",BVe,[pa("div",zVe,[Zt(Tl,{icon:`ztIcon:${wa(Kh)[wa(n)??"code"]}`,color:wa(c),class:"mr-2"},null,8,["icon","color"]),pa("p",{class:"mb-0 font-weight-bold",style:lD({color:wa(c)})},sc(wa(P).cellName),5)]),pa("div",FVe,[wa(b)?Wa("",!0):(Bo(),la(ps,{key:0,icon:"mdi-comment-plus-outline",color:"bluegrey-darken-4",disabled:!wa(e).editorAvailable,onClick:p},null,8,["disabled"])),Zt(ps,{icon:"mdi:mdi-close",variant:"text",ripple:!1,onClick:h[0]||(h[0]=m=>wa(f)())})])])):Wa("",!0),pa("div",NVe,[pa("div",$Ve,[Zt(s2e,{modelValue:wa(b),"onUpdate:modelValue":h[1]||(h[1]=m=>Dc(b)?b.value=m:null),border:!1,mandatory:"force",color:"primary",rounded:"pill"},{default:Oo(()=>[Zt(ps,{value:!1,class:"mr-4"},{default:Oo(()=>[Cs("Open")]),_:1}),Zt(ps,{value:!0,class:"mr-4"},{default:Oo(()=>[Cs("Resolved")]),_:1})]),_:1},8,["modelValue"])]),pa("div",VVe,[!wa(e).displayedComments.length&&!wa(i)?(Bo(),Da("div",UVe,[Zt(Tl,{icon:`ztIcon:${wa(Kh).message}`},null,8,["icon"]),jVe,QVe])):(Bo(),Da("div",HVe,[(Bo(!0),Da(ya,null,ob(wa(y),m=>(Bo(),la(DVe,{comment:m},null,8,["comment"]))),256)),wa(i)?(Bo(),Da("div",{key:0,class:"text-box",ref_key:"addCommentContainer",ref:l},[Zt(RD,{variant:"outlined",modelValue:wa(O),"onUpdate:modelValue":h[2]||(h[2]=m=>Dc(O)?O.value=m:null),ref_key:"addCommentTextArea",ref:d},null,8,["modelValue"]),pa("div",ZVe,[Zt(ps,{variant:"text",onClick:h[3]||(h[3]=()=>{wa(e).editorAvailable=!0,i.value=!1})},{default:Oo(()=>[Cs("Cancel")]),_:1}),Zt(ps,{color:"primary",class:"ml-2",disabled:!wa(O)||wa(w),loading:wa(w),onClick:h[4]||(h[4]=m=>a())},{default:Oo(()=>[Cs("Submit")]),_:1},8,["disabled","loading"])])],512)):Wa("",!0)]))])])]),_:1}))}});const WVe=hm(qVe,[["__scopeId","data-v-793087b5"]]),YVe={props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0}},inheritAttrs:!1,emits:["runCode","deleteCell","saveCell","createCell","componentValueChange","copilotCompletion","updateTimers"],components:{"add-cell":Oue,CodeComponent:twe,MarkdownComponent:hOe,EditorComponent:mOe,SQLComponent:OOe,PackageComponent:SOe},data(){return{menu_items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],concatenatedCodeCache:{lastCellId:"",code:"",length:0}}},computed:{isAppRoute(){return _T().path==="/app"}},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},runCode(t,e,o){this.$emit("runCode",t,e,o)},deleteCell(t){this.$emit("deleteCell",t)},saveCell(t,e,o,f){this.$emit("saveCell",t,e,o,f)},createCodeCell(t,e){this.$emit("createCell",t,e)},componentValueChange(t,e,o,f){this.$emit("componentValueChange",t,e,o,f)},copilotCompletion(t,e,o,f){this.$emit("copilotCompletion",t,e,o,f)},updateTimers(t,e){this.$emit("updateTimers",t,e)}}};function XVe(t,e,o,f,P,d){const l=Zd("add-cell");return Bo(),Da(ya,null,[Zt(bM,{style:{"margin-top":"12px"}},{default:Oo(()=>[t.$devMode&&!d.isAppRoute?(Bo(),la(l,{key:0,onCreateCodeCell:e[0]||(e[0]=n=>d.createCodeCell("",n))})):Wa("",!0)]),_:1}),(Bo(!0),Da(ya,null,ob(o.notebook.cells,n=>(Bo(),la(bM,{class:zv(["cell-container",{"cell-container--app":!t.$devMode||d.isAppRoute}])},{default:Oo(()=>[n.cellType==="code"?(Bo(),la(SI(d.getComponent(n.cellType)),{key:0,cellData:n,completions:o.completions[n.id],onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.updateTimers},null,40,["cellData","completions","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])):(Bo(),la(SI(d.getComponent(n.cellType)),{key:1,cellData:n,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell},null,40,["cellData","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell"]))]),_:2},1032,["class"]))),256))],64)}const GVe=hm(YVe,[["render",XVe]]),KVe=Hg({name:"SignInDialogComponent",setup(){const t=ei(!1),e=ei(!1),o=ei(!1),f=ei(null),P=async()=>{try{const O=await fu.post("copilot/start_node_server",{});console.log("Copilot started successfully")}catch(O){console.error("Error during starting the Node server:",O)}},d=async()=>{try{const O=await fu.post("copilot/check_status",{});b(O.data)}catch(O){console.error("Error during initial status check:",O)}},l=async()=>{try{const O=await fu.post("copilot/sign_in_initiate",{});b(O.data)}catch(O){console.error("Error during sign in initiation:",O)}},n=async()=>{try{const O=await fu.post("copilot/sign_in_confirm",{userCode:f.value.userCode});b(O.data)}catch(O){console.error("Error during sign in confirmation:",O)}},c=async()=>{try{await fu.post("copilot/sign_out",{}),o.value=!1,f.value=null,Pv.copilot_active=!1}catch(O){console.error("Error during sign out:",O)}},b=O=>{f.value=O,O.status==="OK"||O.status==="AlreadySignedIn"?(o.value=!0,Pv.copilot_active=!0):O.status==="NotSignedIn"&&(o.value=!1)};return{dialog:t,isSignedIn:o,serverStarted:e,signInData:f,signInInitiate:l,confirmSignIn:n,signOut:c,startServerAndCheckStatus:async()=>{try{await P(),setTimeout(async()=>{await d()},2500),e.value=!0}catch(O){console.error("Error during starting the server or checking status:",O)}},ztAliases:Kh}}}),JVe=pa("span",{class:"text-h4"},"GitHub Copilot ",-1),eUe={key:1},tUe={key:0},nUe=pa("p",null,"Please go to the following URL and enter the code to sign in:",-1),rUe=pa("strong",null,"URL:",-1),oUe=["href"],iUe=pa("strong",null,"Code:",-1),aUe={key:1},sUe={key:2};function lUe(t,e,o,f,P,d){return Bo(),la(Eq,{modelValue:t.dialog,"onUpdate:modelValue":e[1]||(e[1]=l=>t.dialog=l),"max-width":"400px"},{activator:Oo(({props:l})=>[Zt(ps,Di({color:"bluegrey-darken-4"},l,{icon:`ztIcon:${t.ztAliases.copilot}`}),null,16,["icon"])]),default:Oo(()=>[Zt(BO,null,{default:Oo(()=>[Zt(PD,null,{default:Oo(()=>[JVe]),_:1}),Zt(pue,null,{default:Oo(()=>[t.serverStarted?t.serverStarted&&!t.isSignedIn?(Bo(),Da("div",eUe,[t.signInData&&t.signInData.verificationUri&&t.signInData.userCode?(Bo(),Da("div",tUe,[nUe,pa("p",null,[rUe,pa("a",{href:t.signInData.verificationUri,target:"_blank"},sc(t.signInData.verificationUri),9,oUe)]),pa("p",null,[iUe,Cs(" "+sc(t.signInData.userCode),1)]),Zt(ps,{color:"primary",onClick:t.confirmSignIn},{default:Oo(()=>[Cs("I Signed In")]),_:1},8,["onClick"])])):t.signInData&&t.signInData.status&&t.signInData.user?(Bo(),Da("div",aUe,[pa("p",null,"Status: "+sc(t.signInData.status),1),pa("p",null,"User: "+sc(t.signInData.user),1)])):(Bo(),Da("div",sUe,[Zt(ps,{color:"primary",onClick:t.signInInitiate},{default:Oo(()=>[Cs("Sign In")]),_:1},8,["onClick"])]))])):t.isSignedIn?(Bo(),la(ps,{key:2,color:"primary",onClick:t.signOut},{default:Oo(()=>[Cs("Sign Out")]),_:1},8,["onClick"])):Wa("",!0):(Bo(),la(ps,{key:0,color:"primary",onClick:t.startServerAndCheckStatus},{default:Oo(()=>[Cs("Start Server ")]),_:1},8,["onClick"]))]),_:1}),Zt(ps,{class:"ma-2",icon:"mdi:mdi-close",variant:"plain",position:"absolute",location:"top right",onClick:e[0]||(e[0]=l=>t.dialog=!1)})]),_:1})]),_:1},8,["modelValue"])}const cUe=hm(KVe,[["render",lUe]]),uUe=pa("span",{class:"text-h5"},"Publish Notebook",-1),fUe=pa("span",null,[Cs("Need an API Key? Create an account "),pa("a",{href:"https://www.zero-true.com/contact",target:"_blank"},"here")],-1),dUe=pa("br",null,null,-1),hUe=pa("br",null,null,-1),pUe={class:"d-flex justify-center"},mUe=Hg({__name:"ShareComponent",setup(t){const e=ei(!1),o=ei({userName:"",projectName:"",apiKey:"",teamName:""}),f=ei(!1),P={required:n=>!!n||"Required."},d=ei(!1),l=async()=>{if(f.value){d.value=!0;try{await fu.post("api/share_notebook",o.value),console.log("Share request submitted successfully"),e.value=!1}catch(n){console.error("Error submitting share request:",n)}d.value=!1}};return(n,c)=>(Bo(),la(Eq,{modelValue:e.value,"onUpdate:modelValue":c[6]||(c[6]=b=>e.value=b),"max-width":"600px"},{activator:Oo(({props:b})=>[Zt(ps,Di(b,{"prepend-icon":`ztIcon:${wa(Kh).share}`,variant:"flat",ripple:"",color:"primary",class:"text-bluegrey-darken-4"}),{default:Oo(()=>[Cs(" Publish ")]),_:2},1040,["prepend-icon"])]),default:Oo(()=>[Zt(BO,null,{default:Oo(()=>[Zt(PD,null,{default:Oo(()=>[uUe]),_:1}),Zt(pue,null,{default:Oo(()=>[Zt(FDe,{ref:"form",modelValue:f.value,"onUpdate:modelValue":c[5]||(c[5]=b=>f.value=b),onSubmit:DH(l,["prevent"])},{default:Oo(()=>[Zt(um,{label:"User Name",modelValue:o.value.userName,"onUpdate:modelValue":c[0]||(c[0]=b=>o.value.userName=b),rules:[P.required],required:""},null,8,["modelValue","rules"]),Zt(um,{label:"Project Name",modelValue:o.value.projectName,"onUpdate:modelValue":c[1]||(c[1]=b=>o.value.projectName=b),rules:[P.required],required:""},null,8,["modelValue","rules"]),Zt(um,{label:"API Key",modelValue:o.value.apiKey,"onUpdate:modelValue":c[2]||(c[2]=b=>o.value.apiKey=b),rules:[P.required],required:""},null,8,["modelValue","rules"]),Zt(um,{label:"Team Name (Optional)",modelValue:o.value.teamName,"onUpdate:modelValue":c[3]||(c[3]=b=>o.value.teamName=b)},null,8,["modelValue"]),fUe,dUe,hUe,Zt(Dq,{justify:"space-between"},{default:Oo(()=>[Zt(hT,{cols:"auto"},{default:Oo(()=>[d.value?Wa("",!0):(Bo(),la(ps,{key:0,type:"submit",color:"primary"},{default:Oo(()=>[Cs("Publish")]),_:1})),pa("div",pUe,[d.value?(Bo(),la(SD,{key:0,indeterminate:"",color:"primary"})):Wa("",!0)])]),_:1}),Zt(hT,{cols:"auto"},{default:Oo(()=>[Zt(ps,{onClick:c[4]||(c[4]=b=>e.value=!1),color:"error"},{default:Oo(()=>[Cs("Cancel")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onSubmit"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});class R0e{constructor(e){_c(this,"timerId",null);_c(this,"duration");this.duration=e}start(e){this.timerId===null&&(this.timerId=window.setTimeout(()=>{e(),this.timerId=null},this.duration))}stop(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}}const gUe={props:{currentPath:{type:String,required:!0}},emits:["file-uploaded"],data:()=>({uploadingFile:!1,fileInput:null,formData:null,fileName:"",snackbar:!1,snackbarText:"",ztAliases:Kh}),methods:{onDrop(t){var o;t.preventDefault();const e=(o=t.dataTransfer)==null?void 0:o.files;e&&e.length>0?this.handleFileUpload(e[0]):console.error("No file dropped")},onClickBrowseFiles(){this.$refs.fileInput&&this.$refs.fileInput.click()},handleFileChange(t){const e=t.target.files;e&&e.length>0?this.handleFileUpload(e[0]):console.error("No file selected")},handleFileUpload(t){this.formData=new FormData,this.formData.append("file",t),this.fileName=t.name,console.log(t)},async submitFile(){if(this.formData)try{this.formData.append("path",this.currentPath);const t=await fu.post("api/upload_file",this.formData,{headers:{"Content-Type":"multipart/form-data"}});console.log("File processed",t.data),this.snackbarText="File uploaded successfully",this.snackbar=!0,this.uploadingFile=!1,this.$emit("file-uploaded")}catch(t){console.error("Error processing file:",t),this.snackbarText="Error uploading file",this.snackbar=!0}else console.error("No file to submit"),this.snackbarText="No file selected",this.snackbar=!0},cleanUp(){this.formData=null,this.fileName="",this.snackbarText=""}}};const COe=t=>(Mle("data-v-7dd18b31"),t=t(),Ele(),t),vUe=COe(()=>pa("div",{class:"mb-1"},"or",-1)),yUe={key:0,class:"my-4"},bUe=COe(()=>pa("strong",null,"File selected:",-1));function xUe(t,e,o,f,P,d){return Bo(),la(Eq,{modelValue:t.uploadingFile,"onUpdate:modelValue":e[3]||(e[3]=l=>t.uploadingFile=l),width:"444",class:"text-center mb-8",rounded:"lg"},{activator:Oo(({props:l})=>[Zt(ps,Di(l,{class:"mb-2",icon:"mdi-upload",color:"bluegrey-darken-4"}),null,16)]),default:Oo(()=>[Zt(BO,{onDrop:d.onDrop,onDragover:e[2]||(e[2]=DH(()=>{},["prevent"]))},{default:Oo(()=>[pa("input",{class:"d-none",type:"file",ref:"fileInput",onChange:e[0]||(e[0]=(...l)=>d.handleFileChange&&d.handleFileChange(...l))},null,544),Zt(PD,{class:"pb-0"},{default:Oo(()=>[Cs("Drag files to upload")]),_:1}),vUe,Zt(ps,{class:"mb-2",color:"primary",variant:"outlined",size:"large",text:"Browse files",rounded:"pill",onClick:d.onClickBrowseFiles},{default:Oo(()=>[Cs(" Browse files ")]),_:1},8,["onClick"]),t.fileName?(Bo(),Da("div",yUe,[bUe,Cs(" "+sc(t.fileName),1)])):Wa("",!0),Zt(ps,{onClick:d.submitFile,color:"primary",class:"mt-4"},{default:Oo(()=>[Cs("Submit")]),_:1},8,["onClick"]),Zt(KDe,{modelValue:t.snackbar,"onUpdate:modelValue":e[1]||(e[1]=l=>t.snackbar=l),timeout:3e3,top:""},{default:Oo(()=>[Cs(sc(t.snackbarText),1)]),_:1},8,["modelValue"])]),_:1},8,["onDrop"])]),_:1},8,["modelValue"])}const _Ue=hm(gUe,[["render",xUe],["__scopeId","data-v-7dd18b31"]]),wUe=Hg({name:"SidebarComponent",components:{FileUploader:_Ue},props:{drawer:Boolean,items:Array,handleFileChange:Function,isMobile:Boolean,isAppRoute:Boolean},emits:["update:drawer","update:items"],setup(t,{emit:e}){const o=ei(t.drawer),f=ei(t.items||[]),P=ei("."),d=ei([]);Ni(()=>t.drawer,O=>{o.value=O}),Ni(o,O=>{e("update:drawer",O)});const l=async O=>{try{const w=await fu.get("api/get_children",{params:{path:O}});f.value=w.data.files,e("update:items",w.data.files)}catch(w){console.error("Failed to load files:",w)}};return ag(()=>{l(P.value)}),{localDrawer:o,localItems:f,handleItemClick:O=>{O.file==="folder"&&(d.value.push(P.value),P.value=O.id,l(P.value))},goBack:()=>{d.value.length>0&&(P.value=d.value.pop()||".",l(P.value))},pathStack:d,currentPath:P,refreshFiles:()=>{l(P.value)},fileIcon:O=>{switch(O){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}}}}}),OUe={class:"d-flex"};function SUe(t,e,o,f,P,d){const l=Zd("FileUploader");return t.$devMode&&!t.isMobile&&!t.isAppRoute?(Bo(),la(Z_e,{key:0,modelValue:t.localDrawer,"onUpdate:modelValue":e[1]||(e[1]=n=>t.localDrawer=n),app:"",class:"sidebar",color:"bluegrey-darken-4"},{default:Oo(()=>[pa("div",OUe,[t.pathStack.length>0?(Bo(),la(ps,{key:0,onClick:t.goBack,color:"bluegrey-darken-4",icon:"mdi-arrow-left"},null,8,["onClick"])):Wa("",!0),Zt($_e),Zt(l,{"current-path":t.currentPath,onFileUploaded:t.refreshFiles},null,8,["current-path","onFileUploaded"]),Zt(ps,{color:"bluegrey-darken-4",icon:"mdi-close",onClick:e[0]||(e[0]=n=>t.localDrawer=!1)})]),Zt(m_,null,{default:Oo(()=>[(Bo(!0),Da(ya,null,ob(t.localItems,n=>(Bo(),la(Bf,{key:n.id,onClick:c=>t.handleItemClick(n)},{default:Oo(()=>[n.file==="folder"?(Bo(),la(Tl,{key:0},{default:Oo(()=>[Cs(sc("mdi-folder"))]),_:1})):(Bo(),la(Tl,{key:1},{default:Oo(()=>[Cs(sc(t.fileIcon(n.file)),1)]),_:2},1024)),Zt(qy,null,{default:Oo(()=>[Cs(sc(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue"])):Wa("",!0)}const kUe=hm(wUe,[["render",SUe]]);class HL{constructor(e,o={}){_c(this,"socket");_c(this,"pingInterval");_c(this,"pingTimeout");_c(this,"url");_c(this,"options");_c(this,"reconnectAttempts",0);_c(this,"maxReconnectAttempts",3);_c(this,"connected",!1);this.url=e,this.options=o}initializeSocket(){return this.socket=new WebSocket(this.url),this.socket.onclose=e=>{var o,f;console.log(`WebSocket closed: ${this.url}, Code: ${e.code}, Reason: ${e.reason}`),this.stopPing(),(f=(o=this.options).onClose)==null||f.call(o,e),this.connected&&(this.reconnectSocket(),this.connected=!1)},this.socket.onmessage=e=>{var o,f;e.data==="pong"?clearTimeout(this.pingTimeout):(f=(o=this.options).onMessage)==null||f.call(o,e)},new Promise((e,o)=>{this.socket.onopen=()=>{var f,P;console.log(`WebSocket connected: ${this.url}`),this.connected=!0,this.startPing(),(P=(f=this.options).onOpen)==null||P.call(f),e("")},this.socket.onerror=f=>{var P,d;console.error(`WebSocket error: ${this.url}`,f),(d=(P=this.options).onError)==null||d.call(P,f),o(f)}})}startPing(){const e=this.options.pingInterval||3e4;this.pingInterval=window.setInterval(()=>{this.socket.readyState===WebSocket.OPEN&&(this.socket.send(JSON.stringify({type:"ping"})),this.pingTimeout=window.setTimeout(()=>{console.log(`Ping timeout: ${this.url}`),this.socket.close()},5e3))},e)}stopPing(){clearInterval(this.pingInterval),clearTimeout(this.pingTimeout)}reconnectSocket(){const e=this.options.reconnectDelay||2e3;this.reconnectAttempts{try{await this.initializeSocket(),this.reconnectAttempts=0,console.log(`WebSocket reconnected successfully: ${this.url}`)}catch(o){console.error(`Reconnect attempt failed for WebSocket: ${this.url}`,o),this.reconnectAttempts++,this.reconnectSocket()}},e)):(console.error(`Max reconnect attempts reached for WebSocket: ${this.url}. Giving up.`),Pv.connection_lost=!0)}send(e){this.socket.readyState===WebSocket.OPEN?this.socket.send(e):console.warn(`WebSocket not open: ${this.url}`)}close(){this.stopPing(),this.socket.close()}}const TUe={components:{CodeComponent:twe,MarkdownComponent:hOe,EditorComponent:mOe,SQLComponent:OOe,PackageComponent:SOe,CodeCellManager:GVe,CopilotComponent:cUe,ShareComponent:mUe,SidebarComponent:kUe,Comments:WVe},data(){return{editingProjectName:!1,errorMessage:"",notebook:{},notebookName:"",notebookEditName:"",dependencies:{},completions:{},ws_url:"",pythonVersion:"",ztVersion:"",notebook_socket:null,save_socket:null,run_socket:null,stop_socket:null,dependency_socket:null,timer:0,startTime:0,timerInterval:null,isCodeRunning:!1,requestQueue:[],componentChangeQueue:[],drawer:!1,files:[],tree:[],items:[],openFolders:[],reactiveMode:!0,showComments:!1,concatenatedCodeCache:{lastCellId:"",code:"",followingCode:"",length:0},dependencyOutput:{output:"",isLoading:!1},ztAliases:Kh}},setup(){const t=LD(),{showAllComments:e,loadComments:o}=t,{showComments:f}=Sue(t);return{showComments:f,loadComments:o,showAllComments:e}},beforeMount(){window.addEventListener("beforeunload",this.clearState),window.addEventListener("unload",this.clearState)},beforeUnmount(){window.removeEventListener("beforeunload",this.clearState),window.removeEventListener("unload",this.clearState)},async mounted(){await this.get_env_data(),await this.connectSockets(),this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:""}))},computed:{isAppRoute(){return _T().path==="/app"},isMobile(){return this.$vuetify.display.mobile},cellLength(){return this.notebook.cells?Object.keys(this.notebook.cells).length:0},runningQueue(){return this.$devMode?this.requestQueue:this.componentChangeQueue},queueLength(){return this.runningQueue.length},socketsDisconnected(){return Pv.connection_lost}},methods:{async connectSockets(){this.notebook_socket=new HL(this.ws_url+"ws/notebook",{onMessage:t=>this.notebookOnMessage(t)}),this.run_socket=new HL(this.$devMode?this.ws_url+"ws/run_code":this.ws_url+"ws/component_run",{onMessage:t=>this.runOnMessage(t)}),this.stop_socket=new HL(this.ws_url+"ws/stop_execution"),await this.notebook_socket.initializeSocket(),await this.run_socket.initializeSocket(),await this.stop_socket.initializeSocket(),this.$devMode&&(this.save_socket=new HL(this.ws_url+"ws/save_text",{onMessage:t=>this.saveOnMessage(t)}),this.dependency_socket=new HL(this.ws_url+"ws/dependency_update",{onMessage:t=>this.dependencyOnMessage(t)}),await this.save_socket.initializeSocket(),await this.dependency_socket.initializeSocket())},toggleProjectName(){this.editingProjectName=!this.editingProjectName,this.editingProjectName&&(this.notebookEditName=this.notebookName,lc(()=>{this.$refs.projectNameField.focus()}))},async saveProjectName(){if(this.editingProjectName){const t={notebookName:this.notebookEditName};await fu.post("api/notebook_name_update",t),this.notebookName=this.notebookEditName,document.title=this.notebookName,this.editingProjectName=!1}},startTimer(){this.startTime=Date.now(),this.timer=0,this.timerInterval=setInterval(()=>{const t=Date.now();this.timer=t-this.startTime},99)},stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)},async get_env_data(){const e=(await fu.get("env_data")).data;this.ws_url=e.ws_url||"ws://localhost:1326/",this.pythonVersion=e.python_version,this.ztVersion=e.zt_version},updateDrawer(t){this.drawer=t},updateItems(t){this.items=t},handleFileChange(t,e){const o=e.target.files;if(o&&o.length>0){const f=new FormData;f.append("file",o[0]),fu.post("api/upload_file",f,{headers:{"Content-Type":"multipart/form-data"}}).then(P=>console.log("File processed",P.data)).catch(P=>console.error("Error processing file:",P.response))}else console.error("No file selected")},fileIcon(t){switch(t){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}},async runCode(t){const e=[],o={};for(let P in this.notebook.cells){const d={id:P,code:this.notebook.cells[P].code,variable_name:this.notebook.cells[P].variable_name||"",nonReactive:this.notebook.cells[P].nonReactive,showTable:this.notebook.cells[P].showTable,cellType:this.notebook.cells[P].cellType};for(const l of this.notebook.cells[P].components)l.component==="v-data-table"?o[l.id]="":o[l.id]=l.value;e.push(d)}const f={originId:t,reactiveMode:this.reactiveMode,cells:e,components:o};if(this.isCodeRunning){const P=this.requestQueue.findIndex(d=>d.originId===t);P!==-1?this.requestQueue[P]=f:this.requestQueue.push(f);return}this.sendRunCodeRequest(f)},sendRunCodeRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},notebookOnMessage(t){const e=JSON.parse(t.data);if(e.notebook_name)this.notebookName=e.notebook_name,document.title=this.notebookName;else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.env_stale)this.errorMessage="Some dependencies are not installed in the current environment. Open dependency manager to install missing dependencies";else if(e.complete)this.isCodeRunning=!1,this.stopTimer();else{const o=typeof e=="string"?JSON.parse(e):e;if(o.notebook){this.notebook=o.notebook;for(let f in this.notebook.cells)this.notebook.cells[f].cellType==="code"&&(this.completions[f]=[]),this.loadComments(this.notebook.cells[f].comments??{},f,this.notebook.cells[f].cellType,this.notebook.cells[f].cellName??"");this.dependencies=o.dependencies}else this.notebook.cells&&this.notebook.cells[o.id]&&(this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout)}},runOnMessage(t){const e=JSON.parse(t.data);if(!this.$devMode&&e.refresh)this.notebookRefresh();else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.complete){if(this.isCodeRunning=!1,this.stopTimer(),this.$devMode&&this.requestQueue.length>0){const o=this.requestQueue.shift()||{};this.sendRunCodeRequest(o)}else if(!this.$devMode&&this.componentChangeQueue.length>0){const o=this.componentChangeQueue.shift()||{},f={originId:o.originId,components:o.components,userId:o.userId};this.sendComponentRequest(f)}}else{const o=JSON.parse(e);this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout}},saveOnMessage(t){try{const e=JSON.parse(t.data);this.completions[e.cell_id]=Array.isArray(e.completions)?e.completions:[]}catch(e){console.error("Error parsing server message:",e)}},dependencyOnMessage(t){try{const e=JSON.parse(t.data);e.output?this.dependencyOutput.output=this.dependencyOutput.output.concat(e.output):(this.dependencies=JSON.parse(e),this.dependencyOutput.isLoading=!1),this.errorMessage=""}catch(e){console.error("Error parsing server message:",e)}},async componentValueChange(t,e,o){const f={};for(let l in this.notebook.cells)for(const n of this.notebook.cells[l].components)n.component==="v-data-table"?f[n.id]="":f[n.id]=n.value;const P={originId:t,componentId:e,components:f,userId:this.notebook.userId};if(this.isCodeRunning){const l=this.componentChangeQueue.findIndex(n=>n.componentId===e);l!==-1?this.componentChangeQueue[l]=P:this.componentChangeQueue.push(P);return}const d={originId:P.originId,components:P.components,userId:P.userId};this.sendComponentRequest(d)},async sendComponentRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},async notebookRefresh(){this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:"start"}))},navigateToApp(){window.open("https://zero-true.com/")},clearState:function(){const e={userId:this.notebook.userId};fu.post("api/clear_state",e)},async createCodeCell(t,e){const o={cellType:e.toLowerCase(),position_key:t},P=(await fu.post("api/create_cell",o)).data;let d={};t||(d[P.id]=P);for(let l in this.notebook.cells)d[l]=this.notebook.cells[l],t===l&&(d[P.id]=P);P.cellType==="code"&&(this.completions[P.id]=[]),this.notebook.cells=d},async deleteCell(t){const e={cellId:t};await fu.post("api/delete_cell",e),this.notebook.cells[t].cellType==="code"&&delete this.completions[t],delete this.notebook.cells[t]},async saveCell(t,e,o,f){if(this.notebook.cells[t].cellType==="code"&&this.concatenatedCodeCache.lastCellId!==t){let d="",l="",n=0,c=!0;for(let b in this.notebook.cells){if(b===t){c=!1;continue}this.notebook.cells[b].cellType==="code"&&(c?(d+=this.notebook.cells[b].code+` +The conflicting element is`+(Er(on.element)?" ":" not ")+"already in the DOM")},we=At=>{const $t=Z(At);pt(F,$t)&&ue(At,$t);const on=[At];s.registerId(on,$t,At.events),F[$t]=At},Be=At=>{sy(At.element).each($t=>{delete F[$t],s.unregisterId($t)})};return{find:(At,$t,on)=>s.find(At,$t,on),filter:At=>s.filterByType(At),register:we,unregister:Be,getById:At=>Ge(F,At)}},_v=Yh({name:"Container",factory:s=>{const{attributes:F,...Z}=s.dom;return{uid:s.uid,dom:{tag:"div",attributes:{role:"presentation",...F},...Z},components:s.components,behaviours:vw(s.containerBehaviours),events:s.events,domModification:s.domModification,eventOrder:s.eventOrder}},configFields:[mr("components",[]),Pf("containerBehaviours",[]),mr("events",{}),mr("domModification",{}),mr("eventOrder",{})]}),OP=s=>{const F=or=>br(s.element).fold(k,Mr=>so(or,Mr)),Z=mG(),ue=(or,Mr)=>Z.find(F,or,Mr),we=fG(s.element,{triggerEvent:(or,Mr)=>oh(or,Mr.target,kr=>dG(ue,or,Mr,kr))}),Be={debugInfo:x("real"),triggerEvent:(or,Mr,kr)=>{oh(or,Mr,yo=>s4(ue,or,kr,Mr,yo))},triggerFocus:(or,Mr)=>{sy(or).fold(()=>{xd(or)},kr=>{oh(km(),or,yo=>(mN(ue,km(),{originator:Mr,kill:v,prevent:v,target:or},or,yo),!1))})},triggerEscape:(or,Mr)=>{Be.triggerEvent("keydown",or.element,Mr.event)},getByUid:or=>Xn(or),getByDom:or=>Br(or),build:vi,buildOrPatch:Ti,addToGui:or=>{gt(or)},removeFromGui:or=>{At(or)},addToWorld:or=>{qe(or)},removeFromWorld:or=>{ft(or)},broadcast:or=>{yn(or)},broadcastOn:(or,Mr)=>{wn(or,Mr)},broadcastEvent:(or,Mr)=>{Mn(or,Mr)},isConnected:k},qe=or=>{or.connect(Be),_r(or.element)||(Z.register(or),q(or.components(),qe),Be.triggerEvent(zp(),or.element,{target:or.element}))},ft=or=>{_r(or.element)||(q(or.components(),ft),Z.unregister(or)),or.disconnect()},gt=or=>{X0(s,or)},At=or=>{fv(or)},$t=()=>{we.unbind(),zl(s.element)},on=or=>{const Mr=Z.filter(lp());q(Mr,kr=>{const yo=kr.descHandler;qh(yo)(or)})},yn=or=>{on({universal:!0,data:or})},wn=(or,Mr)=>{on({universal:!1,channels:or,data:Mr})},Mn=(or,Mr)=>{const kr=Z.filter(or);return LC(kr,Mr)},Xn=or=>Z.getById(or).fold(()=>Hi.error(new Error('Could not find component with uid: "'+or+'" in system.')),Hi.value),Br=or=>{const Mr=sy(or).getOr("not found");return Xn(Mr)};return qe(s),{root:s,element:s.element,destroy:$t,add:gt,remove:At,getByUid:Xn,getByDom:Br,addToWorld:qe,removeFromWorld:ft,broadcast:yn,broadcastOn:wn,broadcastEvent:Mn}},IC=(s,F)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:oe(s.items,F.interpreter)}),gG=x([mr("prefix","form-field"),Pf("fieldBehaviours",[as,hi])]),SP=x([Jp({schema:[Sn("dom")],name:"label"}),Jp({factory:{sketch:s=>({uid:s.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:s.text}})},schema:[Sn("text")],name:"aria-descriptor"}),kd({factory:{sketch:s=>{const F=Hs(s,["factory"]);return s.factory.sketch(F)}},schema:[Sn("factory")],name:"field"})]),vG=(s,F,Z,ue)=>{const we=Rf(s.fieldBehaviours,[as.config({find:ft=>Fo(ft,s,"field")}),hi.config({store:{mode:"manual",getValue:ft=>as.getCurrent(ft).bind(hi.getValue),setValue:(ft,gt)=>{as.getCurrent(ft).each(At=>{hi.setValue(At,gt)})}}})]),Be=pl([Ll((ft,gt)=>{const At=l6(ft,s,["label","field","aria-descriptor"]);At.field().each($t=>{const on=fi(s.prefix);At.label().each(yn=>{fr(yn.element,"for",on),fr($t.element,"id",on)}),At["aria-descriptor"]().each(yn=>{const wn=fi(s.prefix);fr(yn.element,"id",wn),fr($t.element,"aria-describedby",wn)})})})]),qe={getField:ft=>Fo(ft,s,"field"),getLabel:ft=>Fo(ft,s,"label")};return{uid:s.uid,dom:s.dom,components:F,behaviours:we,events:Be,apis:qe}},Js=ch({name:"FormField",configFields:gG(),partFields:SP(),factory:vG,apis:{getField:(s,F)=>s.getField(F),getLabel:(s,F)=>s.getLabel(F)}});var yG=tinymce.util.Tools.resolve("tinymce.html.Entities");const l4=(s,F,Z,ue)=>{const we=xG(s,F,Z,ue);return Js.sketch(we)},bG=(s,F)=>l4(s,F,[],[]),xG=(s,F,Z,ue)=>({dom:kP(Z),components:s.toArray().concat([F]),fieldBehaviours:Bo(ue)}),_G=()=>kP([]),kP=s=>({tag:"div",classes:["tox-form__group"].concat(s)}),L2=(s,F)=>Js.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[ro(F.translate(s))]}),tm=fi("form-component-change"),nk=fi("form-close"),I2=fi("form-cancel"),Dy=fi("form-action"),c4=fi("form-submit"),DC=fi("form-block"),TP=fi("form-unblock"),gN=fi("form-tabchange"),vN=fi("form-resize"),wG=(s,F,Z)=>{const ue=s.label.map(wn=>L2(wn,F)),we=F.icons(),Be=wn=>{var Mn;return(Mn=we[wn])!==null&&Mn!==void 0?Mn:wn},qe=wn=>(Mn,Xn)=>{Fs(Xn.event.target,"[data-collection-item-value]").each(Br=>{wn(Mn,Xn,Br,ao(Br,"data-collection-item-value"))})},ft=(wn,Mn)=>{const Xn=oe(Mn,Mr=>{const kr=Ag.translate(Mr.text),yo=s.columns===1?`
    ${kr}
    `:"",Xr=`
    ${Be(Mr.icon)}
    `,No={_:" "," - ":" ","-":" "},Jo=kr.replace(/\_| \- |\-/g,Ci=>No[Ci]),ho=F.isDisabled()?" tox-collection__item--state-disabled":"";return`
    ${Xr}${yo}
    `}),Br=s.columns!=="auto"&&s.columns>1?K(Xn,s.columns):[Xn],or=oe(Br,Mr=>`
    ${Mr.join("")}
    `);F1(wn.element,or.join(""))},gt=qe((wn,Mn,Xn,Br)=>{Mn.stop(),F.isDisabled()||Ri(wn,Dy,{name:s.name,value:Br})}),At=[fo(Om(),qe((wn,Mn,Xn)=>{xd(Xn)})),fo(R0(),gt),fo(up(),gt),fo(Sm(),qe((wn,Mn,Xn)=>{aa(wn.element,"."+Fw).each(Br=>{fc(Br,Fw)}),Sl(Xn,Fw)})),fo(ap(),qe(wn=>{aa(wn.element,"."+Fw).each(Mn=>{fc(Mn,Fw),a0(Mn)})})),$p(qe((wn,Mn,Xn,Br)=>{Ri(wn,Dy,{name:s.name,value:Br})}))],$t=(wn,Mn)=>oe($d(wn.element,".tox-collection__item"),Mn),on=Js.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(s.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:R},behaviours:Bo([ta.config({disabled:F.isDisabled,onDisabled:wn=>{$t(wn,Mn=>{Sl(Mn,"tox-collection__item--state-disabled"),fr(Mn,"aria-disabled",!0)})},onEnabled:wn=>{$t(wn,Mn=>{fc(Mn,"tox-collection__item--state-disabled"),po(Mn,"aria-disabled")})}}),df(),da.config({}),Td.config({...F.tooltips.getConfig({tooltipText:"",onShow:wn=>{aa(wn.element,"."+Fw+"[data-mce-tooltip]").each(Mn=>{co(Mn,"data-mce-tooltip").each(Xn=>{Td.setComponents(wn,F.tooltips.getComponents({tooltipText:Xn}))})})}}),mode:"children-keyboard-focus",anchor:wn=>({type:"node",node:aa(wn.element,"."+Fw).orThunk(()=>Ta(".tox-collection__item")),root:wn.element,layouts:{onLtr:x([Pc,Jc,Ec,Hc,Qc,_s]),onRtl:x([Pc,Jc,Ec,Hc,Qc,_s])},bubble:pp(0,-2,{})})}),hi.config({store:{mode:"memory",initialValue:Z.getOr([])},onSetValue:(wn,Mn)=>{ft(wn,Mn),s.columns==="auto"&&pC(wn,5,"tox-collection__item").each(({numRows:Xn,numColumns:Br})=>{Li.setGridSize(wn,Xn,Br)}),Sa(wn,vN)}}),Wl.config({}),Li.config(wX(s.columns,"normal")),Ca("collection-events",At)]),eventOrder:{[cp()]:["disabling","alloy.base.behaviour","collection-events"],[Sm()]:["collection-events","tooltipping"]}});return l4(ue,on,["tox-form__group--collection"],[])},OG=["input","textarea"],CP=s=>{const F=ar(s);return X(OG,F)},Yw=(s,F)=>{const Z=F.getRoot(s).getOr(s.element);fc(Z,F.invalidClass),F.notify.each(ue=>{CP(s.element)&&fr(s.element,"aria-invalid",!1),ue.getContainer(s).each(we=>{F1(we,ue.validHtml)}),ue.onValid(s)})},yN=(s,F,Z,ue)=>{const we=F.getRoot(s).getOr(s.element);Sl(we,F.invalidClass),F.notify.each(Be=>{CP(s.element)&&fr(s.element,"aria-invalid",!0),Be.getContainer(s).each(qe=>{F1(qe,ue)}),Be.onInvalid(s,ue)})},bN=(s,F,Z)=>F.validator.fold(()=>uh.pure(Hi.value(!0)),ue=>ue.validate(s)),AP=(s,F,Z)=>(F.notify.each(ue=>{ue.onValidate(s)}),bN(s,F).map(ue=>s.getSystem().isConnected()?ue.fold(we=>(yN(s,F,Z,we),Hi.error(we)),we=>(Yw(s,F),Hi.value(we))):Hi.error("No longer in system")));var m0=Object.freeze({__proto__:null,markValid:Yw,markInvalid:yN,query:bN,run:AP,isInvalid:(s,F)=>{const Z=F.getRoot(s).getOr(s.element);return $l(Z,F.invalidClass)}}),_N=Object.freeze({__proto__:null,events:(s,F)=>s.validator.map(Z=>pl([fo(Z.onEvent,ue=>{AP(ue,s,F).get(R)})].concat(Z.validateOnLoad?[Ll(ue=>{AP(ue,s,F).get(v)})]:[]))).getOr({})}),SG=[Sn("invalidClass"),mr("getRoot",I.none),Pi("notify",[mr("aria","alert"),mr("getContainer",I.none),mr("validHtml",""),Ra("onValid"),Ra("onInvalid"),Ra("onValidate")]),Pi("validator",[Sn("validate"),mr("onEvent","input"),mr("validateOnLoad",!0)])];const By=lf({fields:SG,name:"invalidating",active:_N,apis:m0,extra:{validation:s=>F=>{const Z=hi.getValue(F);return uh.pure(s(Z))}}});var wN=Object.freeze({__proto__:null,events:()=>pl([FO(fb(),k)]),exhibit:()=>Cf({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})});const u4=lf({fields:[],name:"unselecting",active:wN}),kG=(s,F)=>p0.sketch({dom:s.dom,components:s.components,toggleClass:"mce-active",dropdownBehaviours:Bo([s1.button(F.providers.isDisabled),df(),u4.config({}),Wl.config({})]),layouts:s.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:F.getSink,fetch:Z=>uh.nu(ue=>s.fetch(ue)).map(ue=>I.from(o4(nl(pP(fi("menu-value"),ue,we=>{s.onItemAction(Z,we)},s.columns,s.presets,r1.CLOSE_ON_EXECUTE,D,F.providers),{movement:AC(s.columns,s.presets)})))),parts:{menu:N5(!1,1,s.presets)}}),ON=fi("color-input-change"),EP=fi("color-swatch-change"),SN=fi("color-picker-cancel"),kN=(s,F,Z,ue)=>{const we=Js.parts.field({factory:Nw,inputClasses:["tox-textfield"],data:ue,onSetValue:At=>By.run(At).get(v),inputBehaviours:Bo([ta.config({disabled:F.providers.isDisabled}),df(),Wl.config({}),By.config({invalidClass:"tox-textbox-field-invalid",getRoot:At=>Cr(At.element),notify:{onValid:At=>{const $t=hi.getValue(At);Ri(At,ON,{color:$t})}},validator:{validateOnLoad:!1,validate:At=>{const $t=hi.getValue(At);if($t.length===0)return uh.pure(Hi.value(!0));{const on=Pt.fromTag("span");ko(on,"background-color",$t);const yn=Na(on,"background-color").fold(()=>Hi.error("blah"),wn=>Hi.value($t));return uh.pure(yn)}}}})]),selectOnFocus:!1}),Be=s.label.map(At=>L2(At,F.providers)),qe=(At,$t)=>{Ri(At,EP,{value:$t})},ft=(At,$t)=>{gt.getOpt(At).each(on=>{$t==="custom"?Z.colorPicker(yn=>{yn.fold(()=>Sa(on,SN),wn=>{qe(on,wn),kC(s.storageKey,wn)})},"#ffffff"):$t==="remove"?qe(on,""):qe(on,$t)})},gt=qs(kG({dom:{tag:"span",attributes:{"aria-label":F.providers.translate("Color swatch")}},layouts:{onRtl:()=>[Qc,Ec,Pc],onLtr:()=>[Ec,Qc,Pc]},components:[],fetch:QF(Z.getColors(s.storageKey),s.storageKey,Z.hasCustomColors()),columns:Z.getColorCols(s.storageKey),presets:"color",onItemAction:ft},F));return Js.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Be.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[we,gt.asSpec()]}]),fieldBehaviours:Bo([Ca("form-field-events",[fo(ON,(At,$t)=>{gt.getOpt(At).each(on=>{ko(on.element,"background-color",$t.event.color)}),Ri(At,tm,{name:s.name})}),fo(EP,(At,$t)=>{Js.getField(At).each(on=>{hi.setValue(on,$t.event.value),as.getCurrent(At).each(oa.focus)})}),fo(SN,(At,$t)=>{Js.getField(At).each(on=>{as.getCurrent(At).each(oa.focus)})})])])})},TN=Jp({schema:[Sn("dom")],name:"label"}),rx=s=>Jp({name:""+s+"-edge",overrides:F=>F.model.manager.edgeActions[s].fold(()=>({}),ue=>({events:pl([e0(_m(),(we,Be,qe)=>ue(we,qe),[F]),e0(Oh(),(we,Be,qe)=>ue(we,qe),[F]),e0(Ex(),(we,Be,qe)=>{qe.mouseIsDown.get()&&ue(we,qe)},[F])])}))}),TG=rx("top-left"),CG=rx("top"),AG=rx("top-right"),MG=rx("right"),EG=rx("bottom-right"),PG=rx("bottom"),PP=rx("bottom-left"),RG=rx("left"),LG=kd({name:"thumb",defaults:x({dom:{styles:{position:"absolute"}}}),overrides:s=>({events:pl([Fd(_m(),s,"spectrum"),Fd(Yg(),s,"spectrum"),Fd(wm(),s,"spectrum"),Fd(Oh(),s,"spectrum"),Fd(Ex(),s,"spectrum"),Fd(Hv(),s,"spectrum")])})}),rk=s=>t1(s.event),IG=kd({schema:[On("mouseIsDown",()=>xi(!1))],name:"spectrum",overrides:s=>{const Z=s.model.manager,ue=(we,Be)=>Z.getValueFromEvent(Be).map(qe=>Z.setValueFrom(we,s,qe));return{behaviours:Bo([Li.config({mode:"special",onLeft:(we,Be)=>Z.onLeft(we,s,rk(Be)),onRight:(we,Be)=>Z.onRight(we,s,rk(Be)),onUp:(we,Be)=>Z.onUp(we,s,rk(Be)),onDown:(we,Be)=>Z.onDown(we,s,rk(Be))}),Wl.config({}),oa.config({})]),events:pl([fo(_m(),ue),fo(Yg(),ue),fo(Oh(),ue),fo(Ex(),(we,Be)=>{s.mouseIsDown.get()&&ue(we,Be)})])}}});var DG=[TN,RG,MG,CG,PG,TG,AG,PP,EG,LG,IG];const ok=x("slider.change.value"),BG=s=>s.type.indexOf("touch")!==-1,RP=s=>{const F=s.event.raw;if(BG(F)){const Z=F;return Z.touches!==void 0&&Z.touches.length===1?I.some(Z.touches[0]).map(ue=>Ws(ue.clientX,ue.clientY)):I.none()}else{const Z=F;return Z.clientX!==void 0?I.some(Z).map(ue=>Ws(ue.clientX,ue.clientY)):I.none()}},zG="top",CN="right",AN="bottom",FG="left",Xw=s=>s.model.minX,Gw=s=>s.model.minY,BC=s=>s.model.minX-1,zC=s=>s.model.minY-1,Kw=s=>s.model.maxX,D2=s=>s.model.maxY,ik=s=>s.model.maxX+1,ak=s=>s.model.maxY+1,FC=(s,F,Z)=>F(s)-Z(s),LP=s=>FC(s,Kw,Xw),NC=s=>FC(s,D2,Gw),MN=s=>LP(s)/2,EN=s=>NC(s)/2,f4=(s,F)=>F?s.stepSize*s.speedMultiplier:s.stepSize,PN=s=>s.snapToGrid,$C=s=>s.snapStart,zy=s=>s.rounded,VC=(s,F)=>s[F+"-edge"]!==void 0,d4=s=>VC(s,FG),RN=s=>VC(s,CN),UC=s=>VC(s,zG),LN=s=>VC(s,AN),ox=s=>s.model.value.get(),B2=(s,F)=>({x:s,y:F}),g0=(s,F)=>{Ri(s,ok(),{value:F})},NG=(s,F)=>{g0(s,B2(BC(F),zC(F)))},IP=(s,F)=>{g0(s,zC(F))},DP=(s,F)=>{g0(s,B2(MN(F),zC(F)))},BP=(s,F)=>{g0(s,B2(ik(F),zC(F)))},$G=(s,F)=>{g0(s,ik(F))},Mg=(s,F)=>{g0(s,B2(ik(F),EN(F)))},VG=(s,F)=>{g0(s,B2(ik(F),ak(F)))},UG=(s,F)=>{g0(s,ak(F))},IN=(s,F)=>{g0(s,B2(MN(F),ak(F)))},DN=(s,F)=>{g0(s,B2(BC(F),ak(F)))},jG=(s,F)=>{g0(s,BC(F))},QG=(s,F)=>{g0(s,B2(BC(F),EN(F)))},zP=(s,F,Z,ue)=>sZ?Z:s===F?F-1:Math.max(F,s-ue),FP=(s,F,Z,ue)=>s>Z?s:sMath.max(F,Math.min(Z,s)),HG=(s,F,Z,ue,we)=>we.fold(()=>{const Be=s-F,qe=Math.round(Be/ue)*ue;return BN(F+qe,F-1,Z+1)},Be=>{const qe=(s-Be)%ue,ft=Math.round(qe/ue),gt=Math.floor((s-Be)/ue),At=Math.floor((Z-Be)/ue),$t=Math.min(At,gt+ft),on=Be+$t*ue;return Math.max(Be,on)}),ZG=(s,F,Z)=>Math.min(Z,Math.max(s,F))-F,NP=s=>{const{min:F,max:Z,range:ue,value:we,step:Be,snap:qe,snapStart:ft,rounded:gt,hasMinEdge:At,hasMaxEdge:$t,minBound:on,maxBound:yn,screenRange:wn}=s,Mn=At?F-1:F,Xn=$t?Z+1:Z;if(weyn)return Xn;{const Br=ZG(we,on,yn),or=BN(Br/wn*ue+F,Mn,Xn);return qe&&or>=F&&or<=Z?HG(or,F,Z,Be,ft):gt?Math.round(or):or}},zN=s=>{const{min:F,max:Z,range:ue,value:we,hasMinEdge:Be,hasMaxEdge:qe,maxBound:ft,maxOffset:gt,centerMinEdge:At,centerMaxEdge:$t}=s;return weZ?qe?ft:$t:(we-F)/ue*gt},$P="top",FN="right",VP="bottom",sk="left",NN="width",$N="height",wv=s=>s.element.dom.getBoundingClientRect(),v0=(s,F)=>s[F],h4=s=>{const F=wv(s);return v0(F,sk)},VN=s=>{const F=wv(s);return v0(F,FN)},p4=s=>{const F=wv(s);return v0(F,$P)},Jw=s=>{const F=wv(s);return v0(F,VP)},UP=s=>{const F=wv(s);return v0(F,NN)},jP=s=>{const F=wv(s);return v0(F,$N)},QP=(s,F,Z)=>(s+F)/2-Z,UN=(s,F)=>{const Z=wv(s),ue=wv(F),we=v0(Z,sk),Be=v0(Z,FN),qe=v0(ue,sk);return QP(we,Be,qe)},jN=(s,F)=>{const Z=wv(s),ue=wv(F),we=v0(Z,$P),Be=v0(Z,VP),qe=v0(ue,$P);return QP(we,Be,qe)},eO=(s,F)=>{Ri(s,ok(),{value:F})},HP=(s,F,Z)=>{const ue={min:Xw(F),max:Kw(F),range:LP(F),value:Z,step:f4(F),snap:PN(F),snapStart:$C(F),rounded:zy(F),hasMinEdge:d4(F),hasMaxEdge:RN(F),minBound:h4(s),maxBound:VN(s),screenRange:UP(s)};return NP(ue)},qG=(s,F,Z)=>{const ue=HP(s,F,Z);return eO(s,ue),ue},QN=(s,F)=>{const Z=Xw(F);eO(s,Z)},HN=(s,F)=>{const Z=Kw(F);eO(s,Z)},ZP=(s,F,Z,ue)=>{const Be=(s>0?FP:zP)(ox(Z),Xw(Z),Kw(Z),f4(Z,ue));return eO(F,Be),I.some(Be)},qP=s=>(F,Z,ue)=>ZP(s,F,Z,ue).map(k),bp=s=>RP(s).map(Z=>Z.left),ZN=(s,F,Z,ue,we)=>{const qe=UP(s),ft=ue.bind($t=>I.some(UN($t,s))).getOr(0),gt=we.bind($t=>I.some(UN($t,s))).getOr(qe),At={min:Xw(F),max:Kw(F),range:LP(F),value:Z,hasMinEdge:d4(F),hasMaxEdge:RN(F),minBound:h4(s),minOffset:0,maxBound:VN(s),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:gt};return zN(At)},WP=(s,F,Z,ue,we,Be)=>{const qe=ZN(F,Be,Z,ue,we);return h4(F)-h4(s)+qe},WG=(s,F,Z,ue)=>{const we=ox(Z),Be=WP(s,ue.getSpectrum(s),we,ue.getLeftEdge(s),ue.getRightEdge(s),Z),qe=cc(F.element)/2;ko(F.element,"left",Be-qe+"px")},qN=qP(-1),YG=qP(1),XG=I.none,GG=I.none,WN={"top-left":I.none(),top:I.none(),"top-right":I.none(),right:I.some($G),"bottom-right":I.none(),bottom:I.none(),"bottom-left":I.none(),left:I.some(jG)};var Fy=Object.freeze({__proto__:null,setValueFrom:qG,setToMin:QN,setToMax:HN,findValueOfOffset:HP,getValueFromEvent:bp,findPositionOfValue:WP,setPositionFromValue:WG,onLeft:qN,onRight:YG,onUp:XG,onDown:GG,edgeActions:WN});const m4=(s,F)=>{Ri(s,ok(),{value:F})},jC=(s,F,Z)=>{const ue={min:Gw(F),max:D2(F),range:NC(F),value:Z,step:f4(F),snap:PN(F),snapStart:$C(F),rounded:zy(F),hasMinEdge:UC(F),hasMaxEdge:LN(F),minBound:p4(s),maxBound:Jw(s),screenRange:jP(s)};return NP(ue)},QC=(s,F,Z)=>{const ue=jC(s,F,Z);return m4(s,ue),ue},YP=(s,F)=>{const Z=Gw(F);m4(s,Z)},KG=(s,F)=>{const Z=D2(F);m4(s,Z)},JG=(s,F,Z,ue)=>{const Be=(s>0?FP:zP)(ox(Z),Gw(Z),D2(Z),f4(Z,ue));return m4(F,Be),I.some(Be)},YN=s=>(F,Z,ue)=>JG(s,F,Z,ue).map(k),eK=s=>RP(s).map(Z=>Z.top),tK=(s,F,Z,ue,we)=>{const qe=jP(s),ft=ue.bind($t=>I.some(jN($t,s))).getOr(0),gt=we.bind($t=>I.some(jN($t,s))).getOr(qe),At={min:Gw(F),max:D2(F),range:NC(F),value:Z,hasMinEdge:UC(F),hasMaxEdge:LN(F),minBound:p4(s),minOffset:0,maxBound:Jw(s),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:gt};return zN(At)},XP=(s,F,Z,ue,we,Be)=>{const qe=tK(F,Be,Z,ue,we);return p4(F)-p4(s)+qe},nK=(s,F,Z,ue)=>{const we=ox(Z),Be=XP(s,ue.getSpectrum(s),we,ue.getTopEdge(s),ue.getBottomEdge(s),Z),qe=Ql(F.element)/2;ko(F.element,"top",Be-qe+"px")},XN=I.none,rK=I.none,Ny=YN(-1),HC=YN(1),oK={"top-left":I.none(),top:I.some(IP),"top-right":I.none(),right:I.none(),"bottom-right":I.none(),bottom:I.some(UG),"bottom-left":I.none(),left:I.none()};var iK=Object.freeze({__proto__:null,setValueFrom:QC,setToMin:YP,setToMax:KG,findValueOfOffset:jC,getValueFromEvent:eK,findPositionOfValue:XP,setPositionFromValue:nK,onLeft:XN,onRight:rK,onUp:Ny,onDown:HC,edgeActions:oK});const lk=(s,F)=>{Ri(s,ok(),{value:F})},ck=(s,F)=>({x:s,y:F}),GP=(s,F,Z)=>{const ue=HP(s,F,Z.left),we=jC(s,F,Z.top),Be=ck(ue,we);return lk(s,Be),Be},ZC=(s,F,Z,ue,we)=>{const Be=s>0?FP:zP,qe=F?ox(ue).x:Be(ox(ue).x,Xw(ue),Kw(ue),f4(ue,we)),ft=F?Be(ox(ue).y,Gw(ue),D2(ue),f4(ue,we)):ox(ue).y;return lk(Z,ck(qe,ft)),I.some(qe)},z2=(s,F)=>(Z,ue,we)=>ZC(s,F,Z,ue,we).map(k),uk=(s,F)=>{const Z=Xw(F),ue=Gw(F);lk(s,ck(Z,ue))},GN=(s,F)=>{const Z=Kw(F),ue=D2(F);lk(s,ck(Z,ue))},KN=s=>RP(s),JN=(s,F,Z,ue)=>{const we=ox(Z),Be=WP(s,ue.getSpectrum(s),we.x,ue.getLeftEdge(s),ue.getRightEdge(s),Z),qe=XP(s,ue.getSpectrum(s),we.y,ue.getTopEdge(s),ue.getBottomEdge(s),Z),ft=cc(F.element)/2,gt=Ql(F.element)/2;ko(F.element,"left",Be-ft+"px"),ko(F.element,"top",qe-gt+"px")},e$=z2(-1,!1),aK=z2(1,!1),sK=z2(-1,!0),lK=z2(1,!0),cK={"top-left":I.some(NG),top:I.some(DP),"top-right":I.some(BP),right:I.some(Mg),"bottom-right":I.some(VG),bottom:I.some(IN),"bottom-left":I.some(DN),left:I.some(QG)};var uK=Object.freeze({__proto__:null,setValueFrom:GP,setToMin:uk,setToMax:GN,getValueFromEvent:KN,setPositionFromValue:JN,onLeft:e$,onRight:aK,onUp:sK,onDown:lK,edgeActions:cK});const t$=[mr("stepSize",1),mr("speedMultiplier",10),mr("onChange",v),mr("onChoose",v),mr("onInit",v),mr("onDragStart",v),mr("onDragEnd",v),mr("snapToGrid",!1),mr("rounded",!0),Hr("snapStart"),rr("model",xn("mode",{x:[mr("minX",0),mr("maxX",100),On("value",s=>xi(s.mode.minX)),Sn("getInitialValue"),Il("manager",Fy)],y:[mr("minY",0),mr("maxY",100),On("value",s=>xi(s.mode.minY)),Sn("getInitialValue"),Il("manager",iK)],xy:[mr("minX",0),mr("maxX",100),mr("minY",0),mr("maxY",100),On("value",s=>xi({x:s.mode.minX,y:s.mode.minY})),Sn("getInitialValue"),Il("manager",uK)]})),Pf("sliderBehaviours",[Li,hi]),On("mouseIsDown",()=>xi(!1))],l1=ch({name:"Slider",configFields:t$,partFields:DG,factory:(s,F,Z,ue)=>{const we=Xr=>Ph(Xr,s,"thumb"),Be=Xr=>Ph(Xr,s,"spectrum"),qe=Xr=>Fo(Xr,s,"left-edge"),ft=Xr=>Fo(Xr,s,"right-edge"),gt=Xr=>Fo(Xr,s,"top-edge"),At=Xr=>Fo(Xr,s,"bottom-edge"),$t=s.model,on=$t.manager,yn=(Xr,No)=>{on.setPositionFromValue(Xr,No,s,{getLeftEdge:qe,getRightEdge:ft,getTopEdge:gt,getBottomEdge:At,getSpectrum:Be})},wn=(Xr,No)=>{$t.value.set(No);const Jo=we(Xr);yn(Xr,Jo)},Mn=(Xr,No)=>{wn(Xr,No);const Jo=we(Xr);return s.onChange(Xr,Jo,No),I.some(!0)},Xn=Xr=>{on.setToMin(Xr,s)},Br=Xr=>{on.setToMax(Xr,s)},or=Xr=>{const No=()=>{Fo(Xr,s,"thumb").each(ho=>{const Ci=$t.value.get();s.onChoose(Xr,ho,Ci)})},Jo=s.mouseIsDown.get();s.mouseIsDown.set(!1),Jo&&No()},Mr=(Xr,No)=>{No.stop(),s.mouseIsDown.set(!0),s.onDragStart(Xr,we(Xr))},kr=(Xr,No)=>{No.stop(),s.onDragEnd(Xr,we(Xr)),or(Xr)},yo=Xr=>{Fo(Xr,s,"spectrum").map(Li.focusIn)};return{uid:s.uid,dom:s.dom,components:F,behaviours:Rf(s.sliderBehaviours,[Li.config({mode:"special",focusIn:yo}),hi.config({store:{mode:"manual",getValue:Xr=>$t.value.get(),setValue:wn}}),Wu.config({channels:{[pw()]:{onReceive:or}}})]),events:pl([fo(ok(),(Xr,No)=>{Mn(Xr,No.event.value)}),Ll((Xr,No)=>{const Jo=$t.getInitialValue();$t.value.set(Jo);const ho=we(Xr);yn(Xr,ho);const Ci=Be(Xr);s.onInit(Xr,ho,Ci,$t.value.get())}),fo(_m(),Mr),fo(wm(),kr),fo(Oh(),(Xr,No)=>{yo(Xr),Mr(Xr,No)}),fo(Hv(),kr)]),apis:{resetToMin:Xn,resetToMax:Br,setValue:wn,refresh:yn},domModification:{styles:{position:"relative"}}}},apis:{setValue:(s,F,Z)=>{s.setValue(F,Z)},resetToMin:(s,F)=>{s.resetToMin(F)},resetToMax:(s,F)=>{s.resetToMax(F)},refresh:(s,F)=>{s.refresh(F)}}}),qC=fi("rgb-hex-update"),n$=fi("slider-update"),KP=fi("palette-update"),fk=(s,F)=>{const Z=l1.parts.spectrum({dom:{tag:"div",classes:[F("hue-slider-spectrum")],attributes:{role:"presentation"}}}),ue=l1.parts.thumb({dom:{tag:"div",classes:[F("hue-slider-thumb")],attributes:{role:"presentation"}}});return l1.sketch({dom:{tag:"div",classes:[F("hue-slider")],attributes:{role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":120}},rounded:!1,model:{mode:"y",getInitialValue:x(0)},components:[Z,ue],sliderBehaviours:Bo([oa.config({})]),onChange:(we,Be,qe)=>{fr(we.element,"aria-valuenow",Math.floor(360-qe*3.6)),Ri(we,n$,{value:qe})}})},r$="form",o$=[Pf("formBehaviours",[hi])],i$=s=>"",dK=s=>{const F=(()=>{const Be=[];return{field:(ft,gt)=>(Be.push(ft),s6(r$,i$(ft),gt)),record:x(Be)}})(),Z=s(F),ue=F.record(),we=oe(ue,Be=>kd({name:Be,pname:i$(Be)}));return pv(r$,o$,we,pK,Z)},hK=(s,F)=>s.fold(()=>Hi.error(F),Hi.value),pK=(s,F)=>({uid:s.uid,dom:s.dom,components:F,behaviours:Rf(s.formBehaviours,[hi.config({store:{mode:"manual",getValue:Z=>{const ue=l5(Z,s);return Ue(ue,(we,Be)=>we().bind(qe=>{const ft=as.getCurrent(qe);return hK(ft,new Error(`Cannot find a current component to extract the value from for form part '${Be}': `+rh(qe.element)))}).map(hi.getValue))},setValue:(Z,ue)=>{We(ue,(we,Be)=>{Fo(Z,s,Be).each(qe=>{as.getCurrent(qe).each(ft=>{hi.setValue(ft,we)})})})}}})]),apis:{getField:(Z,ue)=>Fo(Z,s,ue).bind(as.getCurrent)}}),tO={getField:Cc((s,F,Z)=>s.getField(F,Z)),sketch:dK},a$=fi("valid-input"),JP=fi("invalid-input"),WC=fi("validating-input"),Ov="colorcustom.rgb.",e9=(s,F,Z,ue)=>{const we=(yn,wn)=>By.config({invalidClass:F("invalid"),notify:{onValidate:Mn=>{Ri(Mn,WC,{type:yn})},onValid:Mn=>{Ri(Mn,a$,{type:yn,value:hi.getValue(Mn)})},onInvalid:Mn=>{Ri(Mn,JP,{type:yn,value:hi.getValue(Mn)})}},validator:{validate:Mn=>{const Xn=hi.getValue(Mn),Br=wn(Xn)?Hi.value(!0):Hi.error(s("aria.input.invalid"));return uh.pure(Br)},validateOnLoad:!1}}),Be=(yn,wn,Mn,Xn,Br)=>{const or=s(Ov+"range"),Mr=Js.parts.label({dom:{tag:"label",attributes:{"aria-label":Xn}},components:[ro(Mn)]}),kr=Js.parts.field({data:Br,factory:Nw,inputAttributes:{type:"text",...wn==="hex"?{"aria-live":"polite"}:{}},inputClasses:[F("textfield")],inputBehaviours:Bo([we(wn,yn),Wl.config({})]),onSetValue:Jo=>{By.isInvalid(Jo)&&By.run(Jo).get(v)}}),yo=[Mr,kr],Xr=wn!=="hex"?[Js.parts["aria-descriptor"]({text:or})]:[],No=yo.concat(Xr);return{dom:{tag:"div",attributes:{role:"presentation"}},components:No}},qe=(yn,wn)=>{const Mn=Y5(wn);return tO.getField(yn,"hex").each(Xn=>{oa.isFocused(Xn)||hi.setValue(yn,{hex:Mn.value})}),Mn},ft=(yn,wn)=>{const Mn=wn.red,Xn=wn.green,Br=wn.blue;hi.setValue(yn,{red:Mn,green:Xn,blue:Br})},gt=qs({dom:{tag:"div",classes:[F("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),At=(yn,wn)=>{gt.getOpt(yn).each(Mn=>{ko(Mn.element,"background-color","#"+wn.value)})};return Yh({factory:()=>{const yn={red:xi(I.some(255)),green:xi(I.some(255)),blue:xi(I.some(255)),hex:xi(I.some("ffffff"))},wn=(Fi,Os)=>{const vs=X5(Os);ft(Fi,vs),or(vs)},Mn=Fi=>yn[Fi].get(),Xn=(Fi,Os)=>{yn[Fi].set(Os)},Br=()=>Mn("red").bind(Fi=>Mn("green").bind(Os=>Mn("blue").map(vs=>Hw(Fi,Os,vs,1)))),or=Fi=>{const Os=Fi.red,vs=Fi.green,Ha=Fi.blue;Xn("red",I.some(Os)),Xn("green",I.some(vs)),Xn("blue",I.some(Ha))},Mr=(Fi,Os)=>{const vs=Os.event;vs.type!=="hex"?Xn(vs.type,I.none()):ue(Fi)},kr=(Fi,Os)=>{Z(Fi);const vs=iP(Os);Xn("hex",I.some(vs.value));const Ha=X5(vs);ft(Fi,Ha),or(Ha),Ri(Fi,qC,{hex:vs}),At(Fi,vs)},yo=(Fi,Os,vs)=>{const Ha=parseInt(vs,10);Xn(Os,I.some(Ha)),Br().each(Ho=>{const wi=qe(Fi,Ho);Ri(Fi,qC,{hex:wi}),At(Fi,wi)})},Xr=Fi=>Fi.type==="hex",No=(Fi,Os)=>{const vs=Os.event;Xr(vs)?kr(Fi,vs.value):yo(Fi,vs.type,vs.value)},Jo=Fi=>({label:s(Ov+Fi+".label"),description:s(Ov+Fi+".description")}),ho=Jo("red"),Ci=Jo("green"),mi=Jo("blue"),qi=Jo("hex");return nl(tO.sketch(Fi=>({dom:{tag:"form",classes:[F("rgb-form")],attributes:{"aria-label":s("aria.color.picker")}},components:[Fi.field("red",Js.sketch(Be(sP,"red",ho.label,ho.description,255))),Fi.field("green",Js.sketch(Be(sP,"green",Ci.label,Ci.description,255))),Fi.field("blue",Js.sketch(Be(sP,"blue",mi.label,mi.description,255))),Fi.field("hex",Js.sketch(Be(bF,"hex",qi.label,qi.description,"ffffff"))),gt.asSpec()],formBehaviours:Bo([By.config({invalidClass:F("form-invalid")}),Ca("rgb-form-events",[fo(a$,No),fo(JP,Mr),fo(WC,Mr)])])})),{apis:{updateHex:(Fi,Os)=>{hi.setValue(Fi,{hex:Os.value}),wn(Fi,Os),At(Fi,Os)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(yn,wn,Mn)=>{yn.updateHex(wn,Mn)}},extraApis:{}})},s$=(s,F)=>{const Z=l1.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[F("sv-palette-spectrum")]}}),ue=l1.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[F("sv-palette-thumb")],innerHtml:``}}),we=(At,$t)=>{const{width:on,height:yn}=At,wn=At.getContext("2d");if(wn===null)return;wn.fillStyle=$t,wn.fillRect(0,0,on,yn);const Mn=wn.createLinearGradient(0,0,on,0);Mn.addColorStop(0,"rgba(255,255,255,1)"),Mn.addColorStop(1,"rgba(255,255,255,0)"),wn.fillStyle=Mn,wn.fillRect(0,0,on,yn);const Xn=wn.createLinearGradient(0,0,0,yn);Xn.addColorStop(0,"rgba(0,0,0,0)"),Xn.addColorStop(1,"rgba(0,0,0,1)"),wn.fillStyle=Xn,wn.fillRect(0,0,on,yn)},Be=(At,$t)=>{const on=At.components()[0].element.dom,yn=Ww($t,100,100),wn=kF(yn);we(on,CF(wn))},qe=(At,$t)=>{const on=TC(X5($t));l1.setValue(At,{x:on.saturation,y:100-on.value}),fr(At.element,"aria-valuetext",s(["Saturation {0}%, Brightness {1}%",on.saturation,on.value]))};return Yh({factory:At=>{const $t=x({x:0,y:0}),on=(Mn,Xn,Br)=>{h(Br)||fr(Mn.element,"aria-valuetext",s(["Saturation {0}%, Brightness {1}%",Math.floor(Br.x),Math.floor(100-Br.y)])),Ri(Mn,KP,{value:Br})},yn=(Mn,Xn,Br,or)=>{we(Br.element.dom,CF(AF))},wn=Bo([as.config({find:I.some}),oa.config({})]);return l1.sketch({dom:{tag:"div",attributes:{role:"slider","aria-valuetext":s(["Saturation {0}%, Brightness {1}%",0,0])},classes:[F("sv-palette")]},model:{mode:"xy",getInitialValue:$t},rounded:!1,components:[Z,ue],onChange:on,onInit:yn,sliderBehaviours:wn})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(At,$t,on)=>{Be($t,on)},setThumb:(At,$t,on)=>{qe($t,on)}},extraApis:{}})},l$=(s,F)=>{const Z=we=>{const Be=e9(s,F,we.onValidHex,we.onInvalidHex),qe=s$(s,F),ft=No=>(100-No)/100*360,gt=No=>100-No/360*100,At={paletteRgba:xi(AF),paletteHue:xi(0)},$t=qs(fk(s,F)),on=qs(qe.sketch({})),yn=qs(Be.sketch({})),wn=(No,Jo,ho)=>{on.getOpt(No).each(Ci=>{qe.setHue(Ci,ho)})},Mn=(No,Jo)=>{yn.getOpt(No).each(ho=>{Be.updateHex(ho,Jo)})},Xn=(No,Jo,ho)=>{$t.getOpt(No).each(Ci=>{l1.setValue(Ci,gt(ho))})},Br=(No,Jo)=>{on.getOpt(No).each(ho=>{qe.setThumb(ho,Jo)})},or=(No,Jo)=>{const ho=X5(No);At.paletteRgba.set(ho),At.paletteHue.set(Jo)},Mr=(No,Jo,ho,Ci)=>{or(Jo,ho),q(Ci,mi=>{mi(No,Jo,ho)})},kr=()=>{const No=[Mn];return(Jo,ho)=>{const Ci=ho.event.value,mi=At.paletteHue.get(),qi=Ww(mi,Ci.x,100-Ci.y),Fi=BF(qi);Mr(Jo,Fi,mi,No)}},yo=()=>{const No=[wn,Mn];return(Jo,ho)=>{const Ci=ft(ho.event.value),mi=At.paletteRgba.get(),qi=TC(mi),Fi=Ww(Ci,qi.saturation,qi.value),Os=BF(Fi);Mr(Jo,Os,Ci,No)}},Xr=()=>{const No=[wn,Xn,Br];return(Jo,ho)=>{const Ci=ho.event.hex,mi=fX(Ci);Mr(Jo,Ci,mi.hue,No)}};return{uid:we.uid,dom:we.dom,components:[on.asSpec(),$t.asSpec(),yn.asSpec()],behaviours:Bo([Ca("colour-picker-events",[fo(qC,Xr()),fo(KP,kr()),fo(n$,yo())]),as.config({find:No=>yn.getOpt(No)}),Li.config({mode:"acyclic"})])}};return Yh({name:"ColourPicker",configFields:[Sn("dom"),mr("onValidHex",v),mr("onInvalidHex",v)],factory:Z})},y0={self:()=>as.config({find:I.some}),memento:s=>as.config({find:s.getOpt}),childAt:s=>as.config({find:F=>Bn(F.element,s).bind(Z=>F.getSystem().getByDom(Z).toOptional())})},u$=Mi([mr("preprocess",R),mr("postprocess",R)]),gK=(s,F)=>{const Z=cn("RepresentingConfigs.memento processors",u$,F);return hi.config({store:{mode:"manual",getValue:ue=>{const we=s.get(ue),Be=hi.getValue(we);return Z.postprocess(Be)},setValue:(ue,we)=>{const Be=Z.preprocess(we),qe=s.get(ue);hi.setValue(qe,Be)}}})},nO=(s,F,Z)=>hi.config({store:{mode:"manual",...s.map(ue=>({initialValue:ue})).getOr({}),getValue:F,setValue:Z}}),f$=(s,F,Z)=>nO(s,ue=>F(ue.element),(ue,we)=>Z(ue.element,we)),vK=s=>f$(s,nh,F1),YC=s=>hi.config({store:{mode:"memory",initialValue:s}}),d$={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},h$=s=>F=>n(F)?s.translate(d$[F]):s.translate(F),yK=(s,F,Z)=>{const ue=gt=>"tox-"+gt,we=l$(h$(F),ue),Be=gt=>{Ri(gt,Dy,{name:"hex-valid",value:!0})},qe=gt=>{Ri(gt,Dy,{name:"hex-valid",value:!1})},ft=qs(we.sketch({dom:{tag:"div",classes:[ue("color-picker-container")],attributes:{role:"presentation"}},onValidHex:Be,onInvalidHex:qe}));return{dom:{tag:"div"},components:[ft.asSpec()],behaviours:Bo([nO(Z,gt=>{const At=ft.get(gt);return as.getCurrent(At).bind(yn=>hi.getValue(yn).hex).map(yn=>"#"+mn(yn,"#")).getOr("")},(gt,At)=>{const $t=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,on=I.from($t.exec(At)).bind(Mn=>De(Mn,1)),yn=ft.get(gt);as.getCurrent(yn).fold(()=>{console.log("Can not find form")},Mn=>{hi.setValue(Mn,{hex:on.getOr("")}),tO.getField(Mn,"hex").each(Xn=>{Sa(Xn,ug())})})}),y0.self()])}};var bK=tinymce.util.Tools.resolve("tinymce.Resource");const p$=s=>ht(s,"init"),XC=s=>{const F=os(),Z=qs({dom:{tag:s.tag}}),ue=os(),we=!p$(s)&&s.onFocus.isSome()?[oa.config({onFocus:Be=>{s.onFocus.each(qe=>{qe(Be.element.dom)})}}),Wl.config({})]:[];return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:Bo([Ca("custom-editor-events",[Ll(Be=>{Z.getOpt(Be).each(qe=>{(p$(s)?s.init(qe.element.dom):bK.load(s.scriptId,s.scriptUrl).then(ft=>ft(qe.element.dom,s.settings))).then(ft=>{ue.on(gt=>{ft.setValue(gt)}),ue.clear(),F.set(ft)})})})]),nO(I.none(),()=>F.get().fold(()=>ue.get().getOr(""),Be=>Be.getValue()),(Be,qe)=>{F.get().fold(()=>ue.set(qe),ft=>ft.setValue(qe))}),y0.self()].concat(we)),components:[Z.asSpec()]}};var ix=tinymce.util.Tools.resolve("tinymce.util.Tools");const xK=(s,F)=>{const Z=ix.explode(F.getOption("images_file_types")),ue=we=>te(Z,Be=>yt(we.name.toLowerCase(),`.${Be.toLowerCase()}`));return me($e(s),ue)},m$=(s,F,Z)=>{const ue=(yn,wn)=>{wn.stop()},we=yn=>(wn,Mn)=>{q(yn,Xn=>{Xn(wn,Mn)})},Be=(yn,wn)=>{var Mn;if(!ta.isDisabled(yn)){const Xn=wn.event.raw;ft(yn,(Mn=Xn.dataTransfer)===null||Mn===void 0?void 0:Mn.files)}},qe=(yn,wn)=>{const Mn=wn.event.raw.target;ft(yn,Mn.files)},ft=(yn,wn)=>{wn&&(hi.setValue(yn,xK(wn,F)),Ri(yn,tm,{name:s.name}))},gt=qs({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:Bo([Ca("input-file-events",[Am(R0()),Am(up())])])}),At=yn=>({uid:yn.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:Bo([YC(Z.getOr([])),y0.self(),ta.config({}),za.config({toggleClass:"dragenter",toggleOnExecute:!1}),Ca("dropzone-events",[fo("dragenter",we([ue,za.toggle])),fo("dragleave",we([ue,za.toggle])),fo("dragover",ue),fo("drop",we([ue,Be])),fo(Zv(),qe)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[ro(F.translate("Drop an image here"))]},Vd.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[ro(F.translate("Browse for an image")),gt.asSpec()],action:wn=>{gt.get(wn).element.dom.click()},buttonBehaviours:Bo([Wl.config({}),s1.button(F.isDisabled),df()])})]}]}),$t=s.label.map(yn=>L2(yn,F)),on=Js.parts.field({factory:{sketch:At}});return l4($t,on,["tox-form__group--stretched"],[])},g$=(s,F)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${s.columns}col`]},components:oe(s.items,F.interpreter)}),_K=(s,F)=>{let Z=null,ue=null;return{cancel:()=>{O(Z)||(clearTimeout(Z),Z=null,ue=null)},throttle:(...qe)=>{ue=qe,O(Z)&&(Z=setTimeout(()=>{const ft=ue;Z=null,ue=null,s.apply(null,ft)},F))}}},wK=(s,F)=>{let Z=null;return{cancel:()=>{O(Z)||(clearTimeout(Z),Z=null)},throttle:(...Be)=>{O(Z)&&(Z=setTimeout(()=>{Z=null,s.apply(null,Be)},F))}}},dk=(s,F)=>{let Z=null;const ue=()=>{O(Z)||(clearTimeout(Z),Z=null)};return{cancel:ue,throttle:(...Be)=>{ue(),Z=setTimeout(()=>{Z=null,s.apply(null,Be)},F)}}},n9=fi("alloy-fake-before-tabstop"),GC=fi("alloy-fake-after-tabstop"),v$=s=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:s},behaviours:Bo([oa.config({ignore:!0}),Wl.config({})])}),y$=(s,F)=>({dom:{tag:"div",classes:["tox-navobj",...s.getOr([])]},components:[v$([n9]),F,v$([GC])],behaviours:Bo([y0.childAt(1)])}),b$=(s,F)=>{Ri(s,Bp(),{raw:{which:9,shiftKey:F}})},x$=(s,F)=>{const Z=F.element;$l(Z,n9)?b$(s,!0):$l(Z,GC)&&b$(s,!1)},g4=s=>ek(s,["."+n9,"."+GC].join(","),D),KC=fi("update-dialog"),_$=fi("update-title"),w$=fi("update-body"),O$=fi("update-footer"),r9=fi("body-send-message"),JC=fi("dialog-focus-shifted"),e8=rf().browser,hk=e8.isSafari(),OK=e8.isFirefox(),S$=hk||OK,SK=e8.isChromium(),kK=({scrollTop:s,scrollHeight:F,clientHeight:Z})=>Math.ceil(s)+Z>=F,k$=(s,F)=>s.scrollTo(0,F==="bottom"?99999999:F),TK=(s,F)=>{const Z=s.body;return I.from(!/^1))?Z:s.documentElement)},T$=(s,F,Z)=>{const ue=s.dom;I.from(ue.contentDocument).fold(Z,we=>{let Be=0;const qe=TK(we,F).map(gt=>(Be=gt.scrollTop,gt)).forall(kK),ft=()=>{const gt=ue.contentWindow;a(gt)&&(qe?k$(gt,"bottom"):!qe&&S$&&Be!==0&&k$(gt,Be))};hk&&ue.addEventListener("load",ft,{once:!0}),we.open(),we.write(F),we.close(),hk||ft()})},o9=_t(S$,hk?500:200).map(s=>_K(T$,s)),CK=(s,F)=>{const Z=xi(s.getOr(""));return{getValue:ue=>Z.get(),setValue:(ue,we)=>{if(Z.get()!==we){const Be=ue.element,qe=()=>fr(Be,"srcdoc",we);F?o9.fold(x(T$),ft=>ft.throttle)(Be,we,qe):qe()}Z.set(we)}}},AK=(s,F,Z)=>{const ue="tox-dialog__iframe",we=s.transparent?[]:[`${ue}--opaque`],Be=s.border?["tox-navobj-bordered"]:[],qe={...s.label.map(on=>({title:on})).getOr({}),...Z.map(on=>({srcdoc:on})).getOr({}),...s.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},ft=CK(Z,s.streamContent),gt=s.label.map(on=>L2(on,F)),At=on=>y$(I.from(Be),{uid:on.uid,dom:{tag:"iframe",attributes:qe,classes:[ue,...we]},behaviours:Bo([Wl.config({}),oa.config({}),nO(Z,ft.getValue,ft.setValue),Wu.config({channels:{[JC]:{onReceive:(yn,wn)=>{wn.newFocus.each(Mn=>{Cr(yn.element).each(Xn=>{(so(yn.element,Mn)?Sl:fc)(Xn,"tox-navobj-bordered-focus")})})}}}})])}),$t=Js.parts.field({factory:{sketch:At}});return l4(gt,$t,["tox-form__group--stretched"],[])},MK=s=>new Promise((F,Z)=>{const ue=()=>{Be(),F(s)},we=[wd(s,"load",ue),wd(s,"error",()=>{Be(),Z("Unable to load data from image: "+s.dom.src)})],Be=()=>q(we,qe=>qe.unbind());s.dom.complete&&ue()}),pk=(s,F,Z,ue,we)=>{const Be=Z*we,qe=ue*we,ft=Math.max(0,s/2-Be/2),gt=Math.max(0,F/2-qe/2);return{left:ft.toString()+"px",top:gt.toString()+"px",width:Be.toString()+"px",height:qe.toString()+"px"}},i9=(s,F,Z)=>{const ue=cc(s),we=Ql(s);return Math.min(ue/F,we/Z,1)},EK=(s,F)=>{const Z=xi(F.getOr({url:""})),ue=qs({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:F.map(gt=>({src:gt.url})).getOr({})}}),we=qs({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[ue.asSpec()]}),Be=(gt,At)=>{const $t={url:At.url};At.zoom.each(yn=>$t.zoom=yn),At.cachedWidth.each(yn=>$t.cachedWidth=yn),At.cachedHeight.each(yn=>$t.cachedHeight=yn),Z.set($t);const on=()=>{const{cachedWidth:yn,cachedHeight:wn,zoom:Mn}=$t;if(!y(yn)&&!y(wn)){if(y(Mn)){const Br=i9(gt.element,yn,wn);$t.zoom=Br}const Xn=pk(cc(gt.element),Ql(gt.element),yn,wn,$t.zoom);we.getOpt(gt).each(Br=>{ra(Br.element,Xn)})}};ue.getOpt(gt).each(yn=>{const wn=yn.element;At.url!==ao(wn,"src")&&(fr(wn,"src",At.url),fc(gt.element,"tox-imagepreview__loaded")),on(),MK(wn).then(Mn=>{gt.getSystem().isConnected()&&(Sl(gt.element,"tox-imagepreview__loaded"),$t.cachedWidth=Mn.dom.naturalWidth,$t.cachedHeight=Mn.dom.naturalHeight,on())})})},qe={};s.height.each(gt=>qe.height=gt);const ft=F.map(gt=>({url:gt.url,zoom:I.from(gt.zoom),cachedWidth:I.from(gt.cachedWidth),cachedHeight:I.from(gt.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:qe,attributes:{role:"presentation"}},components:[we.asSpec()],behaviours:Bo([y0.self(),nO(ft,()=>Z.get(),Be)])}},PK=(s,F,Z)=>{const ue="tox-label",we=s.align==="center"?[`${ue}--center`]:[],Be=s.align==="end"?[`${ue}--end`]:[],qe=qs({dom:{tag:"label",classes:[ue,...we,...Be]},components:[ro(F.providers.translate(s.label))]}),ft=oe(s.items,F.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[qe.asSpec(),...ft],behaviours:Bo([y0.self(),da.config({}),vK(I.none()),Li.config({mode:"acyclic"}),Ca("label",[Ll(gt=>{s.for.each(At=>{Z(At).each($t=>{qe.getOpt(gt).each(on=>{var yn;const wn=(yn=ao($t.element,"id"))!==null&&yn!==void 0?yn:fi("form-field");fr($t.element,"id",wn),fr(on.element,"for",wn)})})})})])])}},t8=fi("toolbar.button.execute"),RK=s=>$p((F,Z)=>{gC(s,F)(ue=>{Ri(F,t8,{buttonApi:ue}),s.onAction(ue)})}),ax=fi("common-button-display-events"),a9={[cp()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events","tooltipping"],[zd()]:["toolbar-button-events",ax],[fp()]:["toolbar-button-events","dropdown-events","tooltipping"],[Oh()]:["focusing","alloy.base.behaviour",ax]},s9=s=>ko(s.element,"width",Aa(s.element,"width")),C$=(s,F,Z)=>em(s,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:Z},F),n8=(s,F)=>C$(s,F,[]),sx=(s,F)=>C$(s,F,[da.config({})]),A$=(s,F,Z)=>({dom:{tag:"span",classes:[`${F}__select-label`]},components:[ro(Z.translate(s))],behaviours:Bo([da.config({})])}),Eg=fi("update-menu-text"),F2=fi("update-menu-icon"),l9=(s,F,Z,ue)=>{const we=xi(v),Be=s.text.map(Xn=>qs(A$(Xn,F,Z.providers))),qe=s.icon.map(Xn=>qs(sx(Xn,Z.providers.icons))),ft=(Xn,Br)=>{const or=hi.getValue(Xn);return oa.focus(or),Ri(or,"keydown",{raw:Br.event.raw}),p0.close(or),I.some(!0)},gt=s.role.fold(()=>({}),Xn=>({role:Xn})),At=I.from(s.listRole).map(Xn=>({listRole:Xn})).getOr({}),$t=s.ariaLabel.fold(()=>({}),Xn=>({"aria-label":Z.providers.translate(Xn)})),on=em("chevron-down",{tag:"div",classes:[`${F}__select-chevron`]},Z.providers.icons),yn=fi("common-button-display-events"),wn="dropdown-events";return qs(p0.sketch({...s.uid?{uid:s.uid}:{},...gt,...At,dom:{tag:"button",classes:[F,`${F}--select`].concat(oe(s.classes,Xn=>`${F}--${Xn}`)),attributes:{...$t,...a(ue)?{"data-mce-name":ue}:{}}},components:jw([qe.map(Xn=>Xn.asSpec()),Be.map(Xn=>Xn.asSpec()),I.some(on)]),matchWidth:!0,useMinWidth:!0,onOpen:(Xn,Br,or)=>{s.searchable&&PC(or)},dropdownBehaviours:Bo([...s.dropdownBehaviours,s1.button(()=>s.disabled||Z.providers.isDisabled()),df(),u4.config({}),da.config({}),...s.tooltip.map(Xn=>Td.config(Z.providers.tooltips.getConfig({tooltipText:Z.providers.translate(Xn)}))).toArray(),Ca(wn,[nx(s,we),Ih(s,we)]),Ca(yn,[Ll((Xn,Br)=>s9(Xn))]),Ca("menubutton-update-display-text",[fo(Eg,(Xn,Br)=>{Be.bind(or=>or.getOpt(Xn)).each(or=>{da.set(or,[ro(Z.providers.translate(Br.event.text))])})}),fo(F2,(Xn,Br)=>{qe.bind(or=>or.getOpt(Xn)).each(or=>{da.set(or,[sx(Br.event.icon,Z.providers.icons)])})})])]),eventOrder:nl(a9,{[Oh()]:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[zd()]:["toolbar-button-events",Td.name(),wn,yn]}),sandboxBehaviours:Bo([Li.config({mode:"special",onLeft:ft,onRight:ft}),Ca("dropdown-sandbox-events",[fo($z,(Xn,Br)=>{XX(Xn),Br.stop()}),fo(Vz,(Xn,Br)=>{GX(Xn,Br),Br.stop()})])]),lazySink:Z.getSink,toggleClass:`${F}--active`,parts:{menu:{...N5(!1,s.columns,s.presets),fakeFocus:s.searchable,...s.listRole==="listbox"?{}:{onHighlightItem:J5,onCollapseMenu:(Xn,Br,or)=>{ri.getHighlighted(or).each(Mr=>{J5(Xn,or,Mr)})},onDehighlightItem:eG}}},getAnchorOverrides:()=>({maxHeightFunction:(Xn,Br)=>{gy()(Xn,Br-10)}}),fetch:Xn=>uh.nu(T(s.fetch,Xn))})).asSpec()},M$=s=>n(s),c9=s=>s.type==="separator",E$=s=>ht(s,"getSubmenuItems"),LK={type:"separator"},IK=(s,F)=>{const Z=se(s,(ue,we)=>M$(we)?we===""?ue:we==="|"?ue.length>0&&!c9(ue[ue.length-1])?ue.concat([LK]):ue:ht(F,we.toLowerCase())?ue.concat([F[we.toLowerCase()]]):ue:ue.concat([we]),[]);return Z.length>0&&c9(Z[Z.length-1])&&Z.pop(),Z},DK=(s,F)=>{const Z=s.getSubmenuItems(),ue=R$(Z,F),we=nl(ue.menus,{[s.value]:ue.items}),Be=nl(ue.expansions,{[s.value]:s.value});return{item:s,menus:we,expansions:Be}},P$=s=>{const F=Ge(s,"value").getOrThunk(()=>fi("generated-menu-item"));return nl({value:F},s)},R$=(s,F)=>{const Z=IK(n(s)?s.split(" "):s,F);return he(Z,(ue,we)=>{if(E$(we)){const Be=P$(we),qe=DK(Be,F);return{menus:nl(ue.menus,qe.menus),items:[qe.item,...ue.items],expansions:nl(ue.expansions,qe.expansions)}}else return{...ue,items:[we,...ue.items]}},{menus:{},expansions:{},items:[]})},L$=s=>s.search.fold(()=>({searchMode:"no-search"}),F=>({searchMode:"search-with-field",placeholder:F.placeholder})),BK=s=>s.search.fold(()=>({searchMode:"no-search"}),F=>({searchMode:"search-with-results"})),v4=(s,F,Z,ue)=>{const we=fi("primary-menu"),Be=R$(s,Z.shared.providers.menuItems());if(Be.items.length===0)return I.none();const qe=L$(ue),ft=oG(we,Be.items,F,Z,ue.isHorizontalMenu,qe),gt=BK(ue),At=Ue(Be.menus,(on,yn)=>oG(yn,on,F,Z,!1,gt)),$t=nl(At,wh(we,ft));return I.from(Rw.tieredData(we,$t,Be.expansions))},y4=s=>!ht(s,"items"),I$="data-value",D$=(s,F,Z,ue,we)=>oe(Z,Be=>y4(Be)?{type:"togglemenuitem",...we?{}:{role:"option"},text:Be.text,value:Be.value,active:Be.value===ue,onAction:()=>{hi.setValue(s,Be.value),Ri(s,tm,{name:F}),oa.focus(s)}}:{type:"nestedmenuitem",text:Be.text,getSubmenuItems:()=>D$(s,F,Be.items,ue,we)}),u9=(s,F)=>Oe(s,Z=>y4(Z)?_t(Z.value===F,Z):u9(Z.items,F)),f9=(s,F,Z)=>{const ue=te(s.items,At=>!y4(At)),we=F.shared.providers,Be=Z.bind(At=>u9(s.items,At)).orThunk(()=>He(s.items).filter(y4)),qe=s.label.map(At=>L2(At,we)),ft=Js.parts.field({dom:{},factory:{sketch:At=>l9({uid:At.uid,text:Be.map($t=>$t.text),icon:I.none(),tooltip:I.none(),role:_t(!ue,"combobox"),...ue?{}:{listRole:"listbox"},ariaLabel:s.label,fetch:($t,on)=>{const yn=D$($t,s.name,s.items,hi.getValue($t),ue);on(v4(yn,r1.CLOSE_ON_EXECUTE,F,{isHorizontalMenu:!1,search:I.none()}))},onSetup:x(v),getApi:x({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Wl.config({}),nO(Be.map($t=>$t.value),$t=>ao($t.element,I$),($t,on)=>{u9(s.items,on).each(yn=>{fr($t.element,I$,yn.value),Ri($t,Eg,{text:yn.text})})})]},"tox-listbox",F.shared)}}),gt={dom:{tag:"div",classes:["tox-listboxfield"]},components:[ft]};return Js.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ve([qe.toArray(),[gt]]),fieldBehaviours:Bo([ta.config({disabled:x(!s.enabled),onDisabled:At=>{Js.getField(At).each(ta.disable)},onEnabled:At=>{Js.getField(At).each(ta.enable)}})])})},zK=(s,F)=>({dom:{tag:"div",classes:s.classes},components:oe(s.items,F.shared.interpreter)}),B$=(s,F)=>{const Z=oe(s.options,we=>({dom:{tag:"option",value:we.value,innerHtml:we.text}})),ue=s.data.map(we=>wh("initialValue",we)).getOr({});return{uid:s.uid,dom:{tag:"select",classes:s.selectClasses,attributes:s.selectAttributes},components:Z,behaviours:Rf(s.selectBehaviours,[oa.config({}),hi.config({store:{mode:"manual",getValue:we=>qr(we.element),setValue:(we,Be)=>{const qe=He(s.options);ce(s.options,gt=>gt.value===Be).isSome()?N(we.element,Be):we.element.dom.selectedIndex===-1&&Be===""&&qe.each(gt=>N(we.element,gt.value))},...ue}})])}},FK=Yh({name:"HtmlSelect",configFields:[Sn("options"),Pf("selectBehaviours",[oa,hi]),mr("selectClasses",[]),mr("selectAttributes",{}),Hr("data")],factory:B$}),z$=(s,F,Z)=>{const ue=oe(s.items,gt=>({text:F.translate(gt.text),value:gt.value})),we=s.label.map(gt=>L2(gt,F)),Be=Js.parts.field({dom:{},...Z.map(gt=>({data:gt})).getOr({}),selectAttributes:{size:s.size},options:ue,factory:FK,selectBehaviours:Bo([ta.config({disabled:()=>!s.enabled||F.isDisabled()}),Wl.config({}),Ca("selectbox-change",[fo(Zv(),(gt,At)=>{Ri(gt,tm,{name:s.name})})])])}),qe=s.size>1?I.none():I.some(em("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},F.icons)),ft={dom:{tag:"div",classes:["tox-selectfield"]},components:ve([[Be],qe.toArray()])};return Js.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ve([we.toArray(),[ft]]),fieldBehaviours:Bo([ta.config({disabled:()=>!s.enabled||F.isDisabled(),onDisabled:gt=>{Js.getField(gt).each(ta.disable)},onEnabled:gt=>{Js.getField(gt).each(ta.enable)}}),df()])})},NK=x([mr("field1Name","field1"),mr("field2Name","field2"),Zh("onLockedChange"),jp(["lockClass"]),mr("locked",!1),Vm.field("coupledFieldBehaviours",[as,hi])]),$K=(s,F,Z)=>Fo(s,F,Z).bind(as.getCurrent),F$=(s,F)=>kd({factory:Js,name:s,overrides:Z=>({fieldBehaviours:Bo([Ca("coupled-input-behaviour",[fo(ug(),ue=>{$K(ue,Z,F).each(we=>{Fo(ue,Z,"lock").each(Be=>{za.isOn(Be)&&Z.onLockedChange(ue,we,Be)})})})])])})}),VK=x([F$("field1","field2"),F$("field2","field1"),kd({factory:Vd,schema:[Sn("dom")],name:"lock",overrides:s=>({buttonBehaviours:Bo([za.config({selected:s.locked,toggleClass:s.markers.lockClass,aria:{mode:"pressed"}})])})})]),UK=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,components:F,behaviours:Vm.augment(s.coupledFieldBehaviours,[as.config({find:I.some}),hi.config({store:{mode:"manual",getValue:we=>{const Be=ww(we,s,["field1","field2"]);return{[s.field1Name]:hi.getValue(Be.field1()),[s.field2Name]:hi.getValue(Be.field2())}},setValue:(we,Be)=>{const qe=ww(we,s,["field1","field2"]);pt(Be,s.field1Name)&&hi.setValue(qe.field1(),Be[s.field1Name]),pt(Be,s.field2Name)&&hi.setValue(qe.field2(),Be[s.field2Name])}}})]),apis:{getField1:we=>Fo(we,s,"field1"),getField2:we=>Fo(we,s,"field2"),getLock:we=>Fo(we,s,"lock")}}),Ym=ch({name:"FormCoupledInputs",configFields:NK(),partFields:VK(),factory:UK,apis:{getField1:(s,F)=>s.getField1(F),getField2:(s,F)=>s.getField2(F),getLock:(s,F)=>s.getLock(F)}}),jK=s=>{const F={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},Z=we=>we in F?F[we]:1;let ue=s.value.toFixed(Z(s.unit));return ue.indexOf(".")!==-1&&(ue=ue.replace(/\.?0*$/,"")),ue+s.unit},d9=s=>{const Z=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(s);if(Z!==null){const ue=parseFloat(Z[1]),we=Z[2];return Hi.value({value:ue,unit:we})}else return Hi.error(s)},h9=(s,F)=>{const Z={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},ue=we=>ht(Z,we);return s.unit===F?I.some(s.value):ue(s.unit)&&ue(F)?Z[s.unit]===Z[F]?I.some(s.value):I.some(s.value/Z[s.unit]*Z[F]):I.none()},p9=s=>I.none(),QK=(s,F)=>Z=>h9(Z,F).map(ue=>({value:ue*s,unit:F})),HK=(s,F)=>{const Z=d9(s).toOptional(),ue=d9(F).toOptional();return en(Z,ue,(we,Be)=>h9(we,Be.unit).map(qe=>Be.value/qe).map(qe=>QK(qe,Be.unit)).getOr(p9)).getOr(p9)},N$=(s,F)=>{let Z=p9;const ue=fi("ratio-event"),we=wn=>em(wn,{tag:"span",classes:["tox-icon","tox-lock-icon__"+wn]},F.icons),Be=s.label.getOr("Constrain proportions"),qe=F.translate(Be),ft=Ym.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":qe,"data-mce-name":Be}},components:[we("lock"),we("unlock")],buttonBehaviours:Bo([ta.config({disabled:()=>!s.enabled||F.isDisabled()}),df(),Wl.config({}),Td.config(F.tooltips.getConfig({tooltipText:qe}))])}),gt=wn=>({dom:{tag:"div",classes:["tox-form__group"]},components:wn}),At=wn=>Js.parts.field({factory:Nw,inputClasses:["tox-textfield"],inputBehaviours:Bo([ta.config({disabled:()=>!s.enabled||F.isDisabled()}),df(),Wl.config({}),Ca("size-input-events",[fo(Sm(),(Mn,Xn)=>{Ri(Mn,ue,{isField1:wn})}),fo(Zv(),(Mn,Xn)=>{Ri(Mn,tm,{name:s.name})})])]),selectOnFocus:!1}),$t=wn=>({dom:{tag:"label",classes:["tox-label"]},components:[ro(F.translate(wn))]}),on=Ym.parts.field1(gt([Js.parts.label($t("Width")),At(!0)])),yn=Ym.parts.field2(gt([Js.parts.label($t("Height")),At(!1)]));return Ym.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[on,yn,gt([$t(by),ft])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(wn,Mn,Xn)=>{d9(hi.getValue(wn)).each(Br=>{Z(Br).each(or=>{hi.setValue(Mn,jK(or))})})},coupledFieldBehaviours:Bo([ta.config({disabled:()=>!s.enabled||F.isDisabled(),onDisabled:wn=>{Ym.getField1(wn).bind(Js.getField).each(ta.disable),Ym.getField2(wn).bind(Js.getField).each(ta.disable),Ym.getLock(wn).each(ta.disable)},onEnabled:wn=>{Ym.getField1(wn).bind(Js.getField).each(ta.enable),Ym.getField2(wn).bind(Js.getField).each(ta.enable),Ym.getLock(wn).each(ta.enable)}}),df(),Ca("size-input-events2",[fo(ue,(wn,Mn)=>{const Xn=Mn.event.isField1,Br=Xn?Ym.getField1(wn):Ym.getField2(wn),or=Xn?Ym.getField2(wn):Ym.getField1(wn),Mr=Br.map(hi.getValue).getOr(""),kr=or.map(hi.getValue).getOr("");Z=HK(Mr,kr)})])])})},ZK=(s,F,Z)=>{const ue=l1.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[ro(F.translate(s.label))]}),we=l1.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),Be=l1.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return l1.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:s.min,maxX:s.max,getInitialValue:x(Z.getOrThunk(()=>(Math.abs(s.max)-Math.abs(s.min))/2))},components:[ue,we,Be],sliderBehaviours:Bo([y0.self(),oa.config({})]),onChoose:(qe,ft,gt)=>{Ri(qe,tm,{name:s.name,value:gt})},onChange:(qe,ft,gt)=>{Ri(qe,tm,{name:s.name,value:gt})}})},qK=(s,F)=>{const Z=ft=>({dom:{tag:"th",innerHtml:F.translate(ft)}}),ue=ft=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:oe(ft,Z)}]}),we=ft=>({dom:{tag:"td",innerHtml:F.translate(ft)}}),Be=ft=>({dom:{tag:"tr"},components:oe(ft,we)}),qe=ft=>({dom:{tag:"tbody"},components:oe(ft,Be)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[ue(s.header),qe(s.cells)],behaviours:Bo([Wl.config({}),oa.config({})])}},$$=(s,F)=>{const Z=s.label.map(wn=>L2(wn,F)),ue=[ta.config({disabled:()=>s.disabled||F.isDisabled()}),df(),Li.config({mode:"execution",useEnter:s.multiline!==!0,useControlEnter:s.multiline===!0,execute:wn=>(Sa(wn,c4),I.some(!0))}),Ca("textfield-change",[fo(ug(),(wn,Mn)=>{Ri(wn,tm,{name:s.name})}),fo(Gg(),(wn,Mn)=>{Ri(wn,tm,{name:s.name})})]),Wl.config({})],we=s.validation.map(wn=>By.config({getRoot:Mn=>Cr(Mn.element),invalidClass:"tox-invalid",validator:{validate:Mn=>{const Xn=hi.getValue(Mn),Br=wn.validator(Xn);return uh.pure(Br===!0?Hi.value(Xn):Hi.error(Br))},validateOnLoad:wn.validateOnLoad}})).toArray(),Be=s.placeholder.fold(x({}),wn=>({placeholder:F.translate(wn)})),qe=s.inputMode.fold(x({}),wn=>({inputmode:wn})),ft={...Be,...qe},gt=Js.parts.field({tag:s.multiline===!0?"textarea":"input",...s.data.map(wn=>({data:wn})).getOr({}),inputAttributes:ft,inputClasses:[s.classname],inputBehaviours:Bo(ve([ue,we])),selectOnFocus:!1,factory:Nw}),At=s.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[gt]}:gt,on=(s.flex?["tox-form__group--stretched"]:[]).concat(s.maximized?["tox-form-group--maximize"]:[]),yn=[ta.config({disabled:()=>s.disabled||F.isDisabled(),onDisabled:wn=>{Js.getField(wn).each(ta.disable)},onEnabled:wn=>{Js.getField(wn).each(ta.enable)}}),df()];return l4(Z,At,on,yn)},V$=(s,F,Z)=>$$({name:s.name,multiline:!1,label:s.label,inputMode:s.inputMode,placeholder:s.placeholder,flex:!1,disabled:!s.enabled,classname:"tox-textfield",validation:I.none(),maximized:s.maximized,data:Z},F),U$=(s,F,Z)=>$$({name:s.name,multiline:!0,label:s.label,inputMode:I.none(),placeholder:s.placeholder,flex:!0,disabled:!s.enabled,classname:"tox-textarea",validation:I.none(),maximized:s.maximized,data:Z},F),b4=(s,F)=>F.getAnimationRoot.fold(()=>s.element,Z=>Z(s)),c1=s=>s.dimension.property,rO=(s,F)=>s.dimension.getDimension(F),r8=(s,F)=>{const Z=b4(s,F);th(Z,[F.shrinkingClass,F.growingClass])},m9=(s,F)=>{fc(s.element,F.openClass),Sl(s.element,F.closedClass),ko(s.element,c1(F),"0px"),Ku(s.element)},g9=(s,F)=>{fc(s.element,F.closedClass),Sl(s.element,F.openClass),ga(s.element,c1(F))},v9=(s,F,Z,ue)=>{Z.setCollapsed(),ko(s.element,c1(F),rO(F,s.element)),r8(s,F),m9(s,F),F.onStartShrink(s),F.onShrunk(s)},WK=(s,F,Z,ue)=>{const we=ue.getOrThunk(()=>rO(F,s.element));Z.setCollapsed(),ko(s.element,c1(F),we),Ku(s.element);const Be=b4(s,F);fc(Be,F.growingClass),Sl(Be,F.shrinkingClass),m9(s,F),F.onStartShrink(s)},j$=(s,F,Z)=>{const ue=rO(F,s.element);(ue==="0px"?v9:WK)(s,F,Z,I.some(ue))},Q$=(s,F,Z)=>{const ue=b4(s,F),we=$l(ue,F.shrinkingClass),Be=rO(F,s.element);g9(s,F);const qe=rO(F,s.element);(we?()=>{ko(s.element,c1(F),Be),Ku(s.element)}:()=>{m9(s,F)})(),fc(ue,F.shrinkingClass),Sl(ue,F.growingClass),g9(s,F),ko(s.element,c1(F),qe),Z.setExpanded(),F.onStartGrow(s)},H$=(s,F,Z)=>{if(Z.isExpanded()){ga(s.element,c1(F));const ue=rO(F,s.element);ko(s.element,c1(F),ue)}},Z$=(s,F,Z)=>{Z.isExpanded()||Q$(s,F,Z)},YK=(s,F,Z)=>{Z.isExpanded()&&j$(s,F,Z)},XK=(s,F,Z)=>{Z.isExpanded()&&v9(s,F,Z)},q$=(s,F,Z)=>Z.isExpanded(),GK=(s,F,Z)=>Z.isCollapsed(),W$=(s,F,Z)=>{const ue=b4(s,F);return $l(ue,F.growingClass)===!0},ua=(s,F,Z)=>{const ue=b4(s,F);return $l(ue,F.shrinkingClass)===!0};var Y$=Object.freeze({__proto__:null,refresh:H$,grow:Z$,shrink:YK,immediateShrink:XK,hasGrown:q$,hasShrunk:GK,isGrowing:W$,isShrinking:ua,isTransitioning:(s,F,Z)=>W$(s,F)||ua(s,F),toggleGrow:(s,F,Z)=>{(Z.isExpanded()?j$:Q$)(s,F,Z)},disableTransitions:r8,immediateGrow:(s,F,Z)=>{Z.isExpanded()||(g9(s,F),ko(s.element,c1(F),rO(F,s.element)),r8(s,F),Z.setExpanded(),F.onStartGrow(s),F.onGrown(s))}}),dfe=Object.freeze({__proto__:null,exhibit:(s,F,Z)=>{const ue=F.expanded;return Cf(ue?{classes:[F.openClass],styles:{}}:{classes:[F.closedClass],styles:wh(F.dimension.property,"0px")})},events:(s,F)=>pl([Wv(sp(),(Z,ue)=>{ue.event.raw.propertyName===s.dimension.property&&(r8(Z,s),F.isExpanded()&&ga(Z.element,s.dimension.property),(F.isExpanded()?s.onGrown:s.onShrunk)(Z))})])}),mk=[Sn("closedClass"),Sn("openClass"),Sn("shrinkingClass"),Sn("growingClass"),Hr("getAnimationRoot"),Ra("onShrunk"),Ra("onStartShrink"),Ra("onGrown"),Ra("onStartGrow"),mr("expanded",!1),rr("dimension",xn("property",{width:[Il("property","width"),Il("getDimension",s=>cc(s)+"px")],height:[Il("property","height"),Il("getDimension",s=>Ql(s)+"px")]}))],X$=Object.freeze({__proto__:null,init:s=>{const F=xi(s.expanded),Z=()=>"expanded: "+F.get();return kh({isExpanded:()=>F.get()===!0,isCollapsed:()=>F.get()===!1,setCollapsed:T(F.set,!1),setExpanded:T(F.set,!0),readState:Z})}});const nm=lf({fields:mk,name:"sliding",active:dfe,apis:Y$,state:X$}),G$=s=>({isEnabled:()=>!ta.isDisabled(s),setEnabled:F=>ta.set(s,!F),setActive:F=>{const Z=s.element;F?(Sl(Z,"tox-tbtn--enabled"),fr(Z,"aria-pressed",!0)):(fc(Z,"tox-tbtn--enabled"),po(Z,"aria-pressed"))},isActive:()=>$l(s.element,"tox-tbtn--enabled"),setText:F=>{Ri(s,Eg,{text:F})},setIcon:F=>Ri(s,F2,{icon:F})}),gk=(s,F,Z,ue,we=!0,Be)=>l9({text:s.text,icon:s.icon,tooltip:s.tooltip,ariaLabel:s.tooltip,searchable:s.search.isSome(),role:ue,fetch:(qe,ft)=>{const gt={pattern:s.search.isSome()?tG(qe):""};s.fetch(At=>{ft(v4(At,r1.CLOSE_ON_EXECUTE,Z,{isHorizontalMenu:!1,search:s.search}))},gt,G$(qe))},onSetup:s.onSetup,getApi:G$,columns:1,presets:"normal",classes:[],dropdownBehaviours:[...we?[Wl.config({})]:[]]},F,Z.shared,Be),K$=(s,F,Z)=>{const ue=Be=>qe=>{const ft=!qe.isActive();qe.setActive(ft),Be.storage.set(ft),Z.shared.getSink().each(gt=>{F().getOpt(gt).each(At=>{xd(At.element),Ri(At,Dy,{name:Be.name,value:Be.storage.get()})})})},we=Be=>qe=>{qe.setActive(Be.storage.get())};return Be=>{Be(oe(s,qe=>{const ft=qe.text.fold(()=>({}),gt=>({text:gt}));return{type:qe.type,active:!1,...ft,onAction:ue(qe),onSetup:we(qe)}}))}},i8=s=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{"aria-label":s}},components:[ro(s)]}),y9=fi("leaf-label-event-id"),b9=({leaf:s,onLeafAction:F,visible:Z,treeId:ue,selectedId:we,backstage:Be})=>{const qe=s.menu.map(gt=>gk(gt,"tox-mbtn",Be,I.none(),Z)),ft=[i8(s.title)];return qe.each(gt=>ft.push(gt)),Vd.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(Z?["tox-tree--leaf__label--visible"]:[])},components:ft,role:"treeitem",action:gt=>{F(s.id),gt.getSystem().broadcastOn([`update-active-item-${ue}`],{value:s.id})},eventOrder:{[Bp()]:[y9,"keying"]},buttonBehaviours:Bo([...Z?[Wl.config({})]:[],za.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),Wu.config({channels:{[`update-active-item-${ue}`]:{onReceive:(gt,At)=>{(At.value===s.id?za.on:za.off)(gt)}}}}),Ca(y9,[Ll((gt,At)=>{we.each($t=>{($t===s.id?za.on:za.off)(gt)})}),fo(Bp(),(gt,At)=>{const $t=At.event.raw.code==="ArrowLeft",on=At.event.raw.code==="ArrowRight";$t?(zs(gt.element,".tox-tree--directory").each(yn=>{gt.getSystem().getByDom(yn).each(wn=>{rc(yn,".tox-tree--directory__label").each(Mn=>{wn.getSystem().getByDom(Mn).each(oa.focus)})})}),At.stop()):on&&At.stop()})])])})},nJ=(s,F,Z)=>em(s,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:Z},F),rJ=(s,F)=>nJ(s,F,[]),J$=fi("directory-label-event-id"),oJ=({directory:s,visible:F,noChildren:Z,backstage:ue})=>{const we=s.menu.map(ft=>gk(ft,"tox-mbtn",ue,I.none())),Be=[{dom:{tag:"div",classes:["tox-chevron"]},components:[rJ("chevron-right",ue.shared.providers.icons)]},i8(s.title)];we.each(ft=>{Be.push(ft)});const qe=ft=>{zs(ft.element,".tox-tree--directory").each(gt=>{ft.getSystem().getByDom(gt).each(At=>{const $t=!za.isOn(At);za.toggle(At),Ri(ft,"expand-tree-node",{expanded:$t,node:s.id})})})};return Vd.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(F?["tox-tree--directory__label--visible"]:[])},components:Be,action:qe,eventOrder:{[Bp()]:[J$,"keying"]},buttonBehaviours:Bo([...F?[Wl.config({})]:[],Ca(J$,[fo(Bp(),(ft,gt)=>{const At=gt.event.raw.code==="ArrowRight",$t=gt.event.raw.code==="ArrowLeft";At&&Z&>.stop(),(At||$t)&&zs(ft.element,".tox-tree--directory").each(on=>{ft.getSystem().getByDom(on).each(yn=>{!za.isOn(yn)&&At||za.isOn(yn)&&$t?(qe(ft),gt.stop()):$t&&!za.isOn(yn)&&(zs(yn.element,".tox-tree--directory").each(wn=>{rc(wn,".tox-tree--directory__label").each(Mn=>{yn.getSystem().getByDom(Mn).each(oa.focus)})}),gt.stop())})})})])])})},iJ=({children:s,onLeafAction:F,visible:Z,treeId:ue,expandedIds:we,selectedId:Be,backstage:qe})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:s.map(ft=>ft.type==="leaf"?b9({leaf:ft,selectedId:Be,onLeafAction:F,visible:Z,treeId:ue,backstage:qe}):x9({directory:ft,expandedIds:we,selectedId:Be,onLeafAction:F,labelTabstopping:Z,treeId:ue,backstage:qe})),behaviours:Bo([nm.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:Z}),da.config({})])}),aJ=fi("directory-event-id"),x9=({directory:s,onLeafAction:F,labelTabstopping:Z,treeId:ue,backstage:we,expandedIds:Be,selectedId:qe})=>{const{children:ft}=s,gt=xi(Be),At=on=>ft.map(yn=>yn.type==="leaf"?b9({leaf:yn,selectedId:qe,onLeafAction:F,visible:on,treeId:ue,backstage:we}):x9({directory:yn,expandedIds:gt.get(),selectedId:qe,onLeafAction:F,labelTabstopping:on,treeId:ue,backstage:we})),$t=Be.includes(s.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[oJ({directory:s,visible:Z,noChildren:s.children.length===0,backstage:we}),iJ({children:ft,expandedIds:Be,selectedId:qe,onLeafAction:F,visible:$t,treeId:ue,backstage:we})],behaviours:Bo([Ca(aJ,[Ll((on,yn)=>{za.set(on,$t)}),fo("expand-tree-node",(on,yn)=>{const{expanded:wn,node:Mn}=yn.event;gt.set(wn?[...gt.get(),Mn]:gt.get().filter(Xn=>Xn!==Mn))})]),za.config({...s.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(on,yn)=>{const wn=on.components()[1],Mn=At(yn);yn?nm.grow(wn):nm.shrink(wn),da.set(wn,Mn)}})])}},sJ=fi("tree-event-id"),lJ=(s,F)=>{const Z=s.onLeafAction.getOr(v),ue=s.onToggleExpand.getOr(v),we=s.defaultExpandedIds,Be=xi(we),qe=xi(s.defaultSelectedId),ft=fi("tree-id"),gt=(At,$t)=>s.items.map(on=>on.type==="leaf"?b9({leaf:on,selectedId:At,onLeafAction:Z,visible:!0,treeId:ft,backstage:F}):x9({directory:on,selectedId:At,onLeafAction:Z,expandedIds:$t,labelTabstopping:!0,treeId:ft,backstage:F}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:gt(qe.get(),Be.get()),behaviours:Bo([Li.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),Ca(sJ,[fo("expand-tree-node",(At,$t)=>{const{expanded:on,node:yn}=$t.event;Be.set(on?[...Be.get(),yn]:Be.get().filter(wn=>wn!==yn)),ue(Be.get(),{expanded:on,node:yn})})]),Wu.config({channels:{[`update-active-item-${ft}`]:{onReceive:(At,$t)=>{qe.set(I.some($t.value)),da.set(At,gt(I.some($t.value),Be.get()))}}}}),da.config({})])}};var uJ=Object.freeze({__proto__:null,events:(s,F)=>{const ue=s.stream.streams.setup(s,F);return pl([fo(s.event,ue),Sh(()=>F.cancel())].concat(s.cancelEvent.map(we=>[fo(we,()=>F.cancel())]).getOr([])))}});const eV=s=>{const F=xi(null);return kh({readState:()=>({timer:F.get()!==null?"set":"unset"}),setTimer:Be=>{F.set(Be)},cancel:()=>{const Be=F.get();Be!==null&&Be.cancel()}})};var fJ=Object.freeze({__proto__:null,throttle:eV,init:s=>s.stream.streams.state(s)});const dJ=(s,F)=>{const Z=s.stream,ue=dk(s.onStream,Z.delay);return F.setTimer(ue),(we,Be)=>{ue.throttle(we,Be),Z.stopEvent&&Be.stop()}};var hJ=[rr("stream",xn("mode",{throttle:[Sn("delay"),mr("stopEvent",!0),Il("streams",{setup:dJ,state:eV})]})),mr("event","input"),Hr("cancelEvent"),Zh("onStream")];const _9=lf({fields:hJ,name:"streaming",active:uJ,state:fJ}),a8=(s,F,Z)=>{const ue=hi.getValue(Z);hi.setValue(F,ue),nV(F)},tV=(s,F)=>{const Z=s.element,ue=qr(Z),we=Z.dom;ao(Z,"type")!=="number"&&F(we,ue)},nV=s=>{tV(s,(F,Z)=>F.setSelectionRange(Z.length,Z.length))},pJ=(s,F)=>{tV(s,(Z,ue)=>Z.setSelectionRange(F,ue.length))},rV=(s,F,Z)=>{if(s.selectsOver){const ue=hi.getValue(F),we=s.getDisplayText(ue),Be=hi.getValue(Z);return s.getDisplayText(Be).indexOf(we)===0?I.some(()=>{a8(s,F,Z),pJ(F,we.length)}):I.none()}else return I.none()},w9=x("alloy.typeahead.itemexecute"),mJ=(s,F,Z,ue)=>{const we=(on,yn,wn)=>{s.previewing.set(!1);const Mn=lu.getCoupled(on,"sandbox");if(ps.isOpen(Mn))as.getCurrent(Mn).each(Xn=>{ri.getHighlighted(Xn).fold(()=>{wn(Xn)},()=>{Np(Mn,Xn.element,"keydown",yn)})});else{const Xn=Br=>{as.getCurrent(Br).each(wn)};MC(s,qe(on),on,Mn,ue,Xn,Xh.HighlightMenuAndItem).get(v)}},Be=D7(s),qe=on=>yn=>yn.map(wn=>{const Mn=ot(wn.menus),Xn=ye(Mn,or=>me(or.items,Mr=>Mr.type==="item"));return hi.getState(on).update(oe(Xn,or=>or.data)),wn}),ft=on=>as.getCurrent(on),gt="typeaheadevents",At=[oa.config({}),hi.config({onSetValue:s.onSetValue,store:{mode:"dataset",getDataKey:on=>qr(on.element),getFallbackEntry:on=>({value:on,meta:{}}),setValue:(on,yn)=>{N(on.element,s.model.getDisplayText(yn))},...s.initialData.map(on=>wh("initialValue",on)).getOr({})}}),_9.config({stream:{mode:"throttle",delay:s.responseTime,stopEvent:!1},onStream:(on,yn)=>{const wn=lu.getCoupled(on,"sandbox");if(oa.isFocused(on)&&qr(on.element).length>=s.minChars){const Xn=ft(wn).bind(or=>ri.getHighlighted(or).map(hi.getValue));s.previewing.set(!0);const Br=or=>{ft(wn).each(Mr=>{Xn.fold(()=>{s.model.selectsOver&&ri.highlightFirst(Mr)},kr=>{ri.highlightBy(Mr,yo=>hi.getValue(yo).value===kr.value),ri.getHighlighted(Mr).orThunk(()=>(ri.highlightFirst(Mr),I.none()))})})};MC(s,qe(on),on,wn,ue,Br,Xh.HighlightJustMenu).get(v)}},cancelEvent:Px()}),Li.config({mode:"special",onDown:(on,yn)=>(we(on,yn,ri.highlightFirst),I.some(!0)),onEscape:on=>{const yn=lu.getCoupled(on,"sandbox");return ps.isOpen(yn)?(ps.close(yn),I.some(!0)):I.none()},onUp:(on,yn)=>(we(on,yn,ri.highlightLast),I.some(!0)),onEnter:on=>{const yn=lu.getCoupled(on,"sandbox"),wn=ps.isOpen(yn);if(wn&&!s.previewing.get())return ft(yn).bind(Mn=>ri.getHighlighted(Mn)).map(Mn=>(Ri(on,w9(),{item:Mn}),!0));{const Mn=hi.getValue(on);return Sa(on,Px()),s.onExecute(yn,on,Mn),wn&&ps.close(yn),I.some(!0)}}}),za.config({toggleClass:s.markers.openClass,aria:{mode:"expanded"}}),lu.config({others:{sandbox:on=>xP(s,on,{onOpen:()=>za.on(on),onClose:()=>{s.lazyTypeaheadComp.get().each(yn=>po(yn.element,"aria-activedescendant")),za.off(on)}})}}),Ca(gt,[Ll(on=>{s.lazyTypeaheadComp.set(I.some(on))}),Sh(on=>{s.lazyTypeaheadComp.set(I.none())}),$p(on=>{const yn=v;yP(s,qe(on),on,ue,yn,Xh.HighlightMenuAndItem).get(v)}),fo(w9(),(on,yn)=>{const wn=lu.getCoupled(on,"sandbox");a8(s.model,on,yn.event.item),Sa(on,Px()),s.onItemExecute(on,wn,yn.event.item,hi.getValue(on)),ps.close(wn),nV(on)})].concat(s.dismissOnBlur?[fo(Xg(),on=>{const yn=lu.getCoupled(on,"sandbox");_d(yn.element).isNone()&&ps.close(yn)})]:[]))],$t={[fp()]:[hi.name(),_9.name(),gt],...s.eventOrder};return{uid:s.uid,dom:B7(nl(s,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...Be,...Rf(s.typeaheadBehaviours,At)},eventOrder:$t}},gJ=x([Hr("lazySink"),Sn("fetch"),mr("minChars",5),mr("responseTime",1e3),Ra("onOpen"),mr("getHotspot",I.some),mr("getAnchorOverrides",x({})),mr("layouts",I.none()),mr("eventOrder",{}),ol("model",{},[mr("getDisplayText",s=>s.meta!==void 0&&s.meta.text!==void 0?s.meta.text:s.value),mr("selectsOver",!0),mr("populateFromBrowse",!0)]),Ra("onSetValue"),bd("onExecute"),Ra("onItemExecute"),mr("inputClasses",[]),mr("inputAttributes",{}),mr("inputStyles",{}),mr("matchWidth",!0),mr("useMinWidth",!1),mr("dismissOnBlur",!0),jp(["openClass"]),Hr("initialData"),Hr("listRole"),Pf("typeaheadBehaviours",[oa,hi,_9,Li,za,lu]),On("lazyTypeaheadComp",()=>xi(I.none)),On("previewing",()=>xi(!0))].concat(I7()).concat(EC())),vJ=x([Um({schema:[U0()],name:"menu",overrides:s=>({fakeFocus:!0,onHighlightItem:(F,Z,ue)=>{s.previewing.get()?s.lazyTypeaheadComp.get().each(we=>{rV(s.model,we,ue).fold(()=>{s.model.selectsOver?(ri.dehighlight(Z,ue),s.previewing.set(!0)):s.previewing.set(!1)},Be=>{Be(),s.previewing.set(!1)})}):s.lazyTypeaheadComp.get().each(we=>{s.model.populateFromBrowse&&a8(s.model,we,ue),co(ue.element,"id").each(Be=>fr(we.element,"aria-activedescendant",Be))})},onExecute:(F,Z)=>s.lazyTypeaheadComp.get().map(ue=>(Ri(ue,w9(),{item:Z}),!0)),onHover:(F,Z)=>{s.previewing.set(!1),s.lazyTypeaheadComp.get().each(ue=>{s.model.populateFromBrowse&&a8(s.model,ue,Z)})}})})]),yJ=ch({name:"Typeahead",configFields:gJ(),partFields:vJ(),factory:mJ}),u1=s=>({...s,toCached:()=>u1(s.toCached()),bindFuture:gt=>u1(s.bind(At=>At.fold($t=>uh.pure(Hi.error($t)),$t=>gt($t)))),bindResult:gt=>u1(s.map(At=>At.bind(gt))),mapResult:gt=>u1(s.map(At=>At.map(gt))),mapError:gt=>u1(s.map(At=>At.mapError(gt))),foldResult:(gt,At)=>s.map($t=>$t.fold(gt,At)),withTimeout:(gt,At)=>u1(uh.nu($t=>{let on=!1;const yn=setTimeout(()=>{on=!0,$t(Hi.error(At()))},gt);s.get(wn=>{on||(clearTimeout(yn),$t(wn))})}))}),O9=s=>u1(uh.nu(s)),oV=s=>u1(uh.pure(Hi.value(s))),S9={nu:O9,wrap:u1,pure:oV,value:oV,error:s=>u1(uh.pure(Hi.error(s))),fromResult:s=>u1(uh.pure(s)),fromFuture:s=>u1(s.map(Hi.value)),fromPromise:s=>O9(F=>{s.then(Z=>{F(Hi.value(Z))},Z=>{F(Hi.error(Z))})})},s8=(s,F,Z=[],ue,we,Be,qe)=>{const ft=F.fold(()=>({}),$t=>({action:$t})),gt={buttonBehaviours:Bo([s1.button(()=>!s.enabled||qe.isDisabled()),df(),Wl.config({}),...Be.map($t=>Td.config(qe.tooltips.getConfig({tooltipText:qe.translate($t)}))).toArray(),Ca("button press",[B0("click"),B0("mousedown")])].concat(Z)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...ft},At=nl(gt,{dom:ue});return nl(At,{components:we})},iV=(s,F,Z,ue=[],we)=>{const Be=s.tooltip.map(At=>({"aria-label":Z.translate(At)})).getOr({}),qe={tag:"button",classes:["tox-tbtn"],attributes:{...Be,"data-mce-name":we}},ft=s.icon.map(At=>n8(At,Z.icons)),gt=jw([ft]);return s8(s,F,ue,qe,gt,s.tooltip,Z)},l8=s=>{switch(s){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},aV=(s,F,Z,ue=[],we=[])=>{const Be=Z.translate(s.text),qe=s.icon.map(wn=>n8(wn,Z.icons)),ft=[qe.getOrThunk(()=>ro(Be))],gt=s.buttonType.getOr(!s.primary&&!s.borderless?"secondary":"primary"),on={tag:"button",classes:[...l8(gt),...qe.isSome()?["tox-button--icon"]:[],...s.borderless?["tox-button--naked"]:[],...we],attributes:{"aria-label":Be,"data-mce-name":s.text}},yn=s.icon.map(x(Be));return s8(s,F,ue,on,ft,yn,Z)},k9=(s,F,Z,ue=[],we=[])=>{const Be=aV(s,I.some(F),Z,ue,we);return Vd.sketch(Be)},sV=(s,F)=>Z=>{F==="custom"?Ri(Z,Dy,{name:s,value:{}}):F==="submit"?Sa(Z,c4):F==="cancel"?Sa(Z,I2):console.error("Unknown button type: ",F)},wJ=(s,F)=>F==="menu",Sv=(s,F)=>F==="custom"||F==="cancel"||F==="submit",c8=(s,F)=>F==="togglebutton",u8=(s,F,Z)=>{var ue,we;const Be=s.icon.map(kr=>sx(kr,F.icons)).map(qs),qe=kr=>{Ri(kr,Dy,{name:s.name,value:{setIcon:yo=>{Be.map(Xr=>Xr.getOpt(kr).each(No=>{da.set(No,[sx(yo,F.icons)])}))}}})},ft=s.buttonType.getOr(s.primary?"primary":"secondary"),gt={...s,name:(ue=s.name)!==null&&ue!==void 0?ue:"",primary:ft==="primary",tooltip:s.tooltip,enabled:(we=s.enabled)!==null&&we!==void 0?we:!1,borderless:!1},At=gt.tooltip.or(s.text).map(kr=>({"aria-label":F.translate(kr)})).getOr({}),$t=l8(ft??"secondary"),on=s.icon.isSome()&&s.text.isSome(),yn={tag:"button",classes:[...$t.concat(s.icon.isSome()?["tox-button--icon"]:[]),...s.active?["tox-button--enabled"]:[],...on?["tox-button--icon-and-text"]:[]],attributes:{...At,...a(Z)?{"data-mce-name":Z}:{}}},wn=[],Mn=F.translate(s.text.getOr("")),Xn=ro(Mn),or=[...jw([Be.map(kr=>kr.asSpec())]),...s.text.isSome()?[Xn]:[]],Mr=s8(gt,I.some(qe),wn,yn,or,s.tooltip,F);return Vd.sketch(Mr)},f8=(s,F,Z)=>{if(wJ(s,F)){const ue=()=>qe,we=s,Be={...s,type:"menubutton",search:I.none(),onSetup:ft=>(ft.setEnabled(s.enabled),v),fetch:K$(we.items,ue,Z)},qe=qs(gk(Be,"tox-tbtn",Z,I.none(),!0,s.text.or(s.tooltip).getOrUndefined()));return qe.asSpec()}else if(Sv(s,F)){const ue=sV(s.name,F),we={...s,borderless:!1};return k9(we,ue,Z.shared.providers,[])}else{if(c8(s,F))return u8(s,Z.shared.providers,s.text.or(s.tooltip).getOrUndefined());throw console.error("Unknown footer button type: ",F),new Error("Unknown footer button type")}},T9=(s,F)=>{const Z=sV(s.name,"custom");return bG(I.none(),Js.parts.field({factory:Vd,...aV(s,I.some(Z),F,[YC(""),y0.self()])}))},OJ={type:"separator"},C9=s=>({type:"menuitem",value:s.url,text:s.title,meta:{attach:s.attach},onAction:v}),d8=(s,F)=>({type:"menuitem",value:F,text:s,meta:{attach:void 0},onAction:v}),A9=s=>oe(s,C9),SJ=(s,F)=>me(F,Z=>Z.type===s),lV=(s,F)=>A9(SJ(s,F)),cV=s=>lV("header",s.targets),kJ=s=>lV("anchor",s.targets),TJ=s=>I.from(s.anchorTop).map(F=>d8("",F)).toArray(),M9=s=>I.from(s.anchorBottom).map(F=>d8("",F)).toArray(),CJ=s=>oe(s,F=>d8(F,F)),AJ=s=>se(s,(F,Z)=>F.length===0||Z.length===0?F.concat(Z):F.concat(OJ,Z),[]),h8=(s,F)=>{const Z=s.toLowerCase();return me(F,ue=>{var we;const Be=ue.meta!==void 0&&ue.meta.text!==void 0?ue.meta.text:ue.text,qe=(we=ue.value)!==null&&we!==void 0?we:"";return bt(Be.toLowerCase(),Z)||bt(qe.toLowerCase(),Z)})},uV=(s,F,Z)=>{var ue,we;const Be=hi.getValue(F),qe=(we=(ue=Be==null?void 0:Be.meta)===null||ue===void 0?void 0:ue.text)!==null&&we!==void 0?we:Be.value;return Z.getLinkInformation().fold(()=>[],gt=>{const At=h8(qe,CJ(Z.getHistory(s)));return s==="file"?AJ([At,h8(qe,cV(gt)),h8(qe,ve([TJ(gt),kJ(gt),M9(gt)]))]):At})},fV=fi("aria-invalid"),MJ=(s,F,Z,ue)=>{const we=F.shared.providers,Be=Mr=>{const kr=hi.getValue(Mr);Z.addToHistory(kr.value,s.filetype)},qe={...ue.map(Mr=>({initialData:Mr})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":fV,type:"url"},minChars:0,responseTime:0,fetch:Mr=>{const kr=uV(s.filetype,Mr,Z),yo=v4(kr,r1.BUBBLE_TO_SANDBOX,F,{isHorizontalMenu:!1,search:I.none()});return uh.pure(yo)},getHotspot:Mr=>Mn.getOpt(Mr),onSetValue:(Mr,kr)=>{Mr.hasConfigured(By)&&By.run(Mr).get(v)},typeaheadBehaviours:Bo([...Z.getValidationHandler().map(Mr=>By.config({getRoot:kr=>Cr(kr.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(kr,yo)=>{$t.getOpt(kr).each(Xr=>{fr(Xr.element,"title",we.translate(yo))})}},validator:{validate:kr=>{const yo=hi.getValue(kr);return S9.nu(Xr=>{Mr({type:s.filetype,url:yo.value},No=>{if(No.status==="invalid"){const Jo=Hi.error(No.message);Xr(Jo)}else{const Jo=Hi.value(No.message);Xr(Jo)}})})},validateOnLoad:!1}})).toArray(),ta.config({disabled:()=>!s.enabled||we.isDisabled()}),Wl.config({}),Ca("urlinput-events",[fo(ug(),Mr=>{const kr=qr(Mr.element),yo=kr.trim();yo!==kr&&N(Mr.element,yo),s.filetype==="file"&&Ri(Mr,tm,{name:s.name})}),fo(Zv(),Mr=>{Ri(Mr,tm,{name:s.name}),Be(Mr)}),fo(Gg(),Mr=>{Ri(Mr,tm,{name:s.name}),Be(Mr)})])]),eventOrder:{[ug()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:Mr=>Mr.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:F.shared.getSink,parts:{menu:N5(!1,1,"normal")},onExecute:(Mr,kr,yo)=>{Ri(kr,c4,{})},onItemExecute:(Mr,kr,yo,Xr)=>{Be(Mr),Ri(Mr,tm,{name:s.name})}},ft=Js.parts.field({...qe,factory:yJ}),gt=s.label.map(Mr=>L2(Mr,we)),$t=qs(((Mr,kr,yo=Mr,Xr=Mr)=>em(yo,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Mr],attributes:{title:we.translate(Xr),"aria-live":"polite",...kr.fold(()=>({}),No=>({id:No}))}},we.icons))("invalid",I.some(fV),"warning")),on=qs({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[$t.asSpec()]}),yn=Z.getUrlPicker(s.filetype),wn=fi("browser.url.event"),Mn=qs({dom:{tag:"div",classes:["tox-control-wrap"]},components:[ft,on.asSpec()],behaviours:Bo([ta.config({disabled:()=>!s.enabled||we.isDisabled()})])}),Xn=qs(k9({name:s.name,icon:I.some("browse"),text:s.picker_text.or(s.label).getOr(""),enabled:s.enabled,primary:!1,buttonType:I.none(),borderless:!0},Mr=>Sa(Mr,wn),we,[],["tox-browse-url"])),Br=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ve([[Mn.asSpec()],yn.map(()=>Xn.asSpec()).toArray()])}),or=Mr=>{as.getCurrent(Mr).each(kr=>{const yo=hi.getValue(kr),Xr={fieldname:s.name,...yo};yn.each(No=>{No(Xr).get(Jo=>{hi.setValue(kr,Jo),Ri(Mr,tm,{name:s.name})})})})};return Js.sketch({dom:_G(),components:gt.toArray().concat([Br()]),fieldBehaviours:Bo([ta.config({disabled:()=>!s.enabled||we.isDisabled(),onDisabled:Mr=>{Js.getField(Mr).each(ta.disable),Xn.getOpt(Mr).each(ta.disable)},onEnabled:Mr=>{Js.getField(Mr).each(ta.enable),Xn.getOpt(Mr).each(ta.enable)}}),df(),Ca("url-input-events",[fo(wn,or)])])})},EJ=(s,F)=>{const Z=Az(s.icon,F.icons);return _v.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${s.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:s.url?void 0:Z},components:s.url?[Vd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:Z,attributes:{title:F.translate(s.iconTooltip)}},action:ue=>Ri(ue,Dy,{name:"alert-banner",value:s.url}),buttonBehaviours:Bo([k7()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:F.translate(s.text)}}]})},PJ=(s,F)=>{s.dom.checked=F},dV=s=>s.dom.checked,kv=(s,F,Z)=>{const ue=gt=>(gt.element.dom.click(),I.some(!0)),we=Js.parts.field({factory:{sketch:R},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:Bo([y0.self(),ta.config({disabled:()=>!s.enabled||F.isDisabled(),onDisabled:gt=>{Cr(gt.element).each(At=>Sl(At,"tox-checkbox--disabled"))},onEnabled:gt=>{Cr(gt.element).each(At=>fc(At,"tox-checkbox--disabled"))}}),Wl.config({}),oa.config({}),f$(Z,dV,PJ),Li.config({mode:"special",onEnter:ue,onSpace:ue,stopSpaceKeyup:!0}),Ca("checkbox-events",[fo(Zv(),(gt,At)=>{Ri(gt,tm,{name:s.name})})])])}),Be=Js.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[ro(F.translate(s.label))],behaviours:Bo([u4.config({})])}),qe=gt=>em(gt==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+gt]},F.icons),ft=qs({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[qe("checked"),qe("unchecked")]});return Js.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[we,ft.asSpec(),Be],fieldBehaviours:Bo([ta.config({disabled:()=>!s.enabled||F.isDisabled()}),df()])})},E9=(s,F)=>{const Z=["tox-form__group",...s.stretched?["tox-form__group--stretched"]:[]],ue=Ca("htmlpanel",[Ll(we=>{s.onInit(we.element.dom)})]);return s.presets==="presentation"?_v.sketch({dom:{tag:"div",classes:Z,innerHtml:s.html},containerBehaviours:Bo([Td.config({...F.tooltips.getConfig({tooltipText:"",onShow:we=>{aa(we.element,"[data-mce-tooltip]:hover").orThunk(()=>_d(we.element)).each(Be=>{co(Be,"data-mce-tooltip").each(qe=>{Td.setComponents(we,F.tooltips.getComponents({tooltipText:qe}))})})}}),mode:"children-normal",anchor:we=>({type:"node",node:aa(we.element,"[data-mce-tooltip]:hover").orThunk(()=>_d(we.element).filter(Be=>co(Be,"data-mce-tooltip").isSome())),root:we.element,layouts:{onLtr:x([Pc,Jc,Ec,Hc,Qc,_s]),onRtl:x([Pc,Jc,Ec,Hc,Qc,_s])},bubble:pp(0,-2,{})})}),ue])}):_v.sketch({dom:{tag:"div",classes:Z,innerHtml:s.html,attributes:{role:"document"}},containerBehaviours:Bo([Wl.config({}),oa.config({}),ue])})},Lf=s=>(F,Z,ue,we,Be)=>Ge(Z,"name").fold(()=>s(Z,we,I.none(),Be),qe=>F.field(qe,s(Z,we,Ge(ue,qe),Be))),RJ=s=>(F,Z,ue,we,Be)=>{const qe=nl(Z,{source:"dynamic"});return Lf(s)(F,qe,ue,we,Be)},LJ={bar:Lf((s,F)=>IC(s,F.shared)),collection:Lf((s,F,Z)=>wG(s,F.shared.providers,Z)),alertbanner:Lf((s,F)=>EJ(s,F.shared.providers)),input:Lf((s,F,Z)=>V$(s,F.shared.providers,Z)),textarea:Lf((s,F,Z)=>U$(s,F.shared.providers,Z)),label:Lf((s,F,Z,ue)=>PK(s,F.shared,ue)),iframe:RJ((s,F,Z)=>AK(s,F.shared.providers,Z)),button:Lf((s,F)=>T9(s,F.shared.providers)),checkbox:Lf((s,F,Z)=>kv(s,F.shared.providers,Z)),colorinput:Lf((s,F,Z)=>kN(s,F.shared,F.colorinput,Z)),colorpicker:Lf((s,F,Z)=>yK(s,F.shared.providers,Z)),dropzone:Lf((s,F,Z)=>m$(s,F.shared.providers,Z)),grid:Lf((s,F)=>g$(s,F.shared)),listbox:Lf((s,F,Z)=>f9(s,F,Z)),selectbox:Lf((s,F,Z)=>z$(s,F.shared.providers,Z)),sizeinput:Lf((s,F)=>N$(s,F.shared.providers)),slider:Lf((s,F,Z)=>ZK(s,F.shared.providers,Z)),urlinput:Lf((s,F,Z)=>MJ(s,F,F.urlinput,Z)),customeditor:Lf(XC),htmlpanel:Lf((s,F)=>E9(s,F.shared.providers)),imagepreview:Lf((s,F,Z)=>EK(s,Z)),table:Lf((s,F)=>qK(s,F.shared.providers)),tree:Lf((s,F)=>lJ(s,F)),panel:Lf((s,F)=>zK(s,F))},IJ={field:(s,F)=>F,record:x([])},hV=(s,F,Z,ue,we)=>{const Be=nl(ue,{shared:{interpreter:qe=>p8(s,qe,Z,Be,we)}});return p8(s,F,Z,Be,we)},p8=(s,F,Z,ue,we)=>Ge(LJ,F.type).fold(()=>(console.error(`Unknown factory type "${F.type}", defaulting to container: `,F),F),Be=>Be(s,F,Z,ue,we)),P9=(s,F,Z,ue)=>p8(IJ,s,F,Z,ue),oO="layout-inset",pV=s=>s.x,Ud=(s,F)=>s.x+s.width/2-F.width/2,vk=(s,F)=>s.x+s.width-F.width,R9=s=>s.y,x4=(s,F)=>s.y+s.height-F.height,mV=(s,F)=>s.y+s.height/2-F.height/2,m8=(s,F,Z)=>ml(vk(s,F),x4(s,F),Z.insetSouthwest(),Ac(),"southwest",il(s,{right:0,bottom:3}),oO),g8=(s,F,Z)=>ml(pV(s),x4(s,F),Z.insetSoutheast(),Vs(),"southeast",il(s,{left:1,bottom:3}),oO),yk=(s,F,Z)=>ml(vk(s,F),R9(s),Z.insetNorthwest(),is(),"northwest",il(s,{right:0,top:2}),oO),bk=(s,F,Z)=>ml(pV(s),R9(s),Z.insetNortheast(),jc(),"northeast",il(s,{left:1,top:2}),oO),f1=(s,F,Z)=>ml(Ud(s,F),R9(s),Z.insetNorth(),Bl(),"north",il(s,{top:2}),oO),xk=(s,F,Z)=>ml(Ud(s,F),x4(s,F),Z.insetSouth(),Uo(),"south",il(s,{bottom:3}),oO),gV=(s,F,Z)=>ml(vk(s,F),mV(s,F),Z.insetEast(),Xs(),"east",il(s,{right:0}),oO),L9=(s,F,Z)=>ml(pV(s),mV(s,F),Z.insetWest(),ql(),"west",il(s,{left:1}),oO),v8=s=>{switch(s){case"north":return f1;case"northeast":return bk;case"northwest":return yk;case"south":return xk;case"southeast":return g8;case"southwest":return m8;case"east":return gV;case"west":return L9}},I9=(s,F,Z,ue,we)=>Mb(ue).map(v8).getOr(f1)(s,F,Z,ue,we),vV=s=>{switch(s){case"north":return xk;case"northeast":return g8;case"northwest":return m8;case"south":return f1;case"southeast":return bk;case"southwest":return yk;case"east":return L9;case"west":return gV}},DJ=(s,F,Z,ue,we)=>Mb(ue).map(vV).getOr(f1)(s,F,Z,ue,we),_4={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},BJ=(s,F,Z)=>{const we={maxHeightFunction:W0()},Be=()=>({type:"node",root:nr(vr(s())),node:I.from(s()),bubble:pp(12,12,_4),layouts:{onRtl:()=>[bk],onLtr:()=>[yk]},overrides:we}),qe=()=>({type:"hotspot",hotspot:F(),bubble:pp(-12,12,_4),layouts:{onRtl:()=>[Ec,Qc,Pc],onLtr:()=>[Qc,Ec,Pc]},overrides:we});return()=>Z()?Be():qe()},zJ=(s,F,Z,ue)=>{const Be={maxHeightFunction:W0()},qe=()=>({type:"node",root:nr(vr(F())),node:I.from(F()),bubble:pp(12,12,_4),layouts:{onRtl:()=>[f1],onLtr:()=>[f1]},overrides:Be}),ft=()=>s?{type:"node",root:nr(vr(F())),node:I.from(F()),bubble:pp(0,-Ed(F()),_4),layouts:{onRtl:()=>[Jc],onLtr:()=>[Jc]},overrides:Be}:{type:"hotspot",hotspot:Z(),bubble:pp(0,0,_4),layouts:{onRtl:()=>[Jc],onLtr:()=>[Jc]},overrides:Be};return()=>ue()?qe():ft()},yV=(s,F,Z)=>{const ue=()=>({type:"node",root:nr(vr(s())),node:I.from(s()),layouts:{onRtl:()=>[f1],onLtr:()=>[f1]}}),we=()=>({type:"hotspot",hotspot:F(),layouts:{onRtl:()=>[Pc],onLtr:()=>[Pc]}});return()=>Z()?ue():we()},gfe=(s,F)=>()=>({type:"selection",root:F(),getSelection:()=>{const Z=s.selection.getRng(),ue=s.model.table.getSelectedCells();if(ue.length>1){const we=ue[0],Be=ue[ue.length-1],qe={firstCell:Pt.fromDom(we),lastCell:Pt.fromDom(Be)};return I.some(qe)}return I.some(c2.range(Pt.fromDom(Z.startContainer),Z.startOffset,Pt.fromDom(Z.endContainer),Z.endOffset))}}),vfe=s=>F=>({type:"node",root:s(),node:F}),FJ=(s,F,Z,ue)=>{const we=q3(s),Be=()=>Pt.fromDom(s.getBody()),qe=()=>Pt.fromDom(s.getContentAreaContainer()),ft=()=>we||!ue();return{inlineDialog:BJ(qe,F,ft),inlineBottomDialog:zJ(s.inline,qe,Z,ft),banner:yV(qe,F,ft),cursor:gfe(s,Be),node:vfe(Be)}},NJ=s=>(F,Z)=>{YF(s)(F,Z)},$J=s=>()=>$F(s),bV=s=>F=>CC(s,F),D9=s=>F=>NF(s,F),VJ=s=>({colorPicker:NJ(s),hasCustomColors:$J(s),getColors:bV(s),getColorCols:D9(s)}),UJ=s=>()=>cz(s),xV=s=>({isDraggableModal:UJ(s)}),jJ=s=>{const F=xi(Kb(s)?"bottom":"top");return{isPositionedAtTop:()=>F.get()==="top",getDockingMode:F.get,setDockingMode:F.set}},_V=s=>pt(s,"items"),wV=s=>pt(s,"format"),OV=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],B9=s=>ht(s,"items"),SV=s=>ht(s,"block"),QJ=s=>ht(s,"inline"),HJ=s=>ht(s,"selector"),kV=s=>se(s,(F,Z)=>{if(B9(Z)){const ue=kV(Z.items);return{customFormats:F.customFormats.concat(ue.customFormats),formats:F.formats.concat([{title:Z.title,items:ue.formats}])}}else if(QJ(Z)||SV(Z)||HJ(Z)){const we=`custom-${n(Z.name)?Z.name:Z.title.toLowerCase()}`;return{customFormats:F.customFormats.concat([{name:we,format:Z}]),formats:F.formats.concat([{title:Z.title,format:we,icon:Z.icon}])}}else return{...F,formats:F.formats.concat(Z)}},{customFormats:[],formats:[]}),ZJ=(s,F)=>{const Z=kV(F),ue=we=>{q(we,Be=>{s.formatter.has(Be.name)||s.formatter.register(Be.name,Be.format)})};return s.formatter?ue(Z.customFormats):s.on("init",()=>{ue(Z.customFormats)}),Z.formats},z9=s=>ez(s).map(F=>{const Z=ZJ(s,F);return tz(s)?OV.concat(Z):Z}).getOr(OV),qJ=s=>{const F=ke(s);return F.length===1&&X(F,"title")},_k=(s,F,Z)=>({...s,type:"formatter",isSelected:F(s.format),getStylePreview:Z(s.format)}),TV=(s,F,Z,ue)=>{const we=gt=>_k(gt,Z,ue),Be=gt=>{const At=ft(gt.items);return{...gt,type:"submenu",getStyleItems:x(At)}},qe=gt=>{const At=n(gt.name)?gt.name:fi(gt.title),$t=`custom-${At}`,on={...gt,type:"formatter",format:$t,isSelected:Z($t),getStylePreview:ue($t)};return s.formatter.register(At,on),on},ft=gt=>oe(gt,At=>_V(At)?Be(At):wV(At)?we(At):qJ(At)?{...At,type:"separator"}:qe(At));return ft(F)},y8=s=>{const F=ft=>()=>s.formatter.match(ft),Z=ft=>()=>{const gt=s.formatter.get(ft);return gt!==void 0?I.some({tag:gt.length>0&&(gt[0].inline||gt[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(ft))}):I.none()},ue=xi([]),we=xi([]),Be=xi(!1);return s.on("PreInit",ft=>{const gt=z9(s),At=TV(s,gt,F,Z);ue.set(At)}),s.on("addStyleModifications",ft=>{const gt=TV(s,ft.items,F,Z);we.set(gt),Be.set(ft.replace)}),{getData:()=>{const ft=Be.get()?[]:ue.get(),gt=we.get();return ft.concat(gt)}}},WJ=s=>{let ue=0;const we=()=>ue>0,Be=ft=>[{dom:{tag:"div",classes:["tox-tooltip__body"]},components:[ro(ft.tooltipText)]}];return{getConfig:ft=>({delayForShow:()=>we()?60:300,delayForHide:x(300),exclusive:!0,lazySink:s,tooltipDom:{tag:"div",classes:["tox-tooltip","tox-tooltip--up"]},tooltipComponents:Be(ft),onShow:(gt,At)=>{ue++,ft.onShow&&ft.onShow(gt,At)},onHide:(gt,At)=>{ue--,ft.onHide&&ft.onHide(gt,At)}}),getComponents:Be}},F9=s=>a(s)&&s.nodeType===1,wk=ix.trim,N9=s=>F=>!!(F9(F)&&(F.contentEditable===s||F.getAttribute("data-mce-contenteditable")===s)),YJ=N9("true"),CV=N9("false"),$9=(s,F,Z,ue,we)=>({type:s,title:F,url:Z,level:ue,attach:we}),AV=s=>{let F=s;for(;F=F.parentNode;){const Z=F.contentEditable;if(Z&&Z!=="inherit")return YJ(F)}return!1},XJ=(s,F)=>oe($d(Pt.fromDom(F),s),Z=>Z.dom),b8=s=>s.innerText||s.textContent,x8=s=>s.id?s.id:fi("h"),GJ=s=>s&&s.nodeName==="A"&&(s.id||s.name)!==void 0,KJ=s=>GJ(s)&&V9(s),iO=s=>s&&/^(H[1-6])$/.test(s.nodeName),V9=s=>AV(s)&&!CV(s),JJ=s=>iO(s)&&V9(s),MV=s=>iO(s)?parseInt(s.nodeName.substr(1),10):0,U9=s=>{var F;const Z=x8(s),ue=()=>{s.id=Z};return $9("header",(F=b8(s))!==null&&F!==void 0?F:"","#"+Z,MV(s),ue)},j9=s=>{const F=s.id||s.name,Z=b8(s);return $9("anchor",Z||"#"+F,"#"+F,0,v)},eee=s=>oe(me(s,JJ),U9),tee=s=>oe(me(s,KJ),j9),nee=s=>XJ("h1,h2,h3,h4,h5,h6,a:not([href])",s),Q9=s=>wk(s.title).length>0,ree={find:s=>{const F=nee(s);return me(eee(F).concat(tee(F)),Q9)}},_8="tinymce-url-history",EV=5,PV=s=>n(s)&&/^https?/.test(s),oee=s=>i(s)&&s.length<=EV&&_e(s,PV),RV=s=>c(s)&&nt(s,F=>!oee(F)).isNone(),H9=()=>{const s=qw.getItem(_8);if(s===null)return{};let F;try{F=JSON.parse(s)}catch(Z){if(Z instanceof SyntaxError)return console.log("Local storage "+_8+" was not valid JSON",Z),{};throw Z}return RV(F)?F:(console.log("Local storage "+_8+" was not valid format",F),{})},iee=s=>{if(!RV(s))throw new Error(`Bad format for history: +`+JSON.stringify(s));qw.setItem(_8,JSON.stringify(s))},Ok=s=>{const F=H9();return Ge(F,s).getOr([])},aee=(s,F)=>{if(!PV(s))return;const Z=H9(),ue=Ge(Z,F).getOr([]),we=me(ue,Be=>Be!==s);Z[F]=[s].concat(we).slice(0,EV),iee(Z)},LV=s=>!!s,Z9=s=>Ue(ix.makeMap(s,/[, ]/),LV),w8=s=>I.from(az(s)),see=s=>{const F=I.from(t7(s)).filter(LV).map(Z9);return w8(s).fold(D,Z=>F.fold(k,ue=>ke(ue).length>0?ue:!1))},lee=(s,F)=>{const Z=see(s);return w(Z)?Z?w8(s):I.none():Z[F]?w8(s):I.none()},cee=(s,F)=>lee(s,F).map(Z=>ue=>uh.nu(we=>{const Be=(ft,gt)=>{if(!n(ft))throw new Error("Expected value to be string");if(gt!==void 0&&!c(gt))throw new Error("Expected meta to be a object");we({value:ft,meta:gt})},qe={filetype:F,fieldname:ue.fieldname,...I.from(ue.meta).getOr({})};Z.call(s,Be,ue.value,qe)})),IV=s=>I.from(s).filter(n).getOrUndefined(),uee=s=>sz(s)?I.some({targets:ree.find(s.getBody()),anchorTop:IV(D6(s)),anchorBottom:IV(lz(s))}):I.none(),fee=s=>I.from(I6(s)),dee=s=>({getHistory:Ok,addToHistory:aee,getLinkInformation:()=>uee(s),getValidationHandler:()=>fee(s),getUrlPicker:F=>cee(s,F)}),hee=(s,F,Z,ue)=>{const we=xi(!1),Be=jJ(F),qe={icons:()=>F.ui.registry.getAll().icons,menuItems:()=>F.ui.registry.getAll().menuItems,translate:Ag.translate,isDisabled:()=>F.mode.isReadOnly()||!F.ui.isEnabled(),getOption:F.options.get,tooltips:WJ(s.dialog)},ft=dee(F),gt=y8(F),At=VJ(F),$t=xV(F),on=()=>we.get(),yn=or=>we.set(or),wn={shared:{providers:qe,anchors:FJ(F,Z,ue,Be.isPositionedAtTop),header:Be},urlinput:ft,styles:gt,colorinput:At,dialog:$t,isContextMenuOpen:on,setContextMenuState:yn},Mn=or=>I.none(),Xn={...wn,shared:{...wn.shared,interpreter:or=>P9(or,{},Xn,Mn),getSink:s.popup}},Br={...wn,shared:{...wn.shared,interpreter:or=>P9(or,{},Br,Mn),getSink:s.dialog}};return{popup:Xn,dialog:Br}},pee=(s,F,Z)=>{const ue=(ho,Ci)=>{q([F,...Z],mi=>{mi.broadcastEvent(ho,Ci)})},we=(ho,Ci)=>{q([F,...Z],mi=>{mi.broadcastOn([ho],Ci)})},Be=ho=>we(K0(),{target:ho.target}),qe=of(),ft=wd(qe,"touchstart",Be),gt=wd(qe,"touchmove",ho=>ue(Kg(),ho)),At=wd(qe,"touchend",ho=>ue(M_(),ho)),$t=wd(qe,"mousedown",Be),on=wd(qe,"mouseup",ho=>{ho.raw.button===0&&we(pw(),{target:ho.target})}),yn=ho=>we(K0(),{target:Pt.fromDom(ho.target)}),wn=ho=>{ho.button===0&&we(pw(),{target:Pt.fromDom(ho.target)})},Mn=()=>{q(s.editorManager.get(),ho=>{s!==ho&&ho.dispatch("DismissPopups",{relatedTarget:s})})},Xn=ho=>ue(T1(),Jx(ho)),Br=ho=>{we(Qb(),{}),ue(Tm(),Jx(ho))},or=vr(Pt.fromDom(s.getElement())),Mr=Kx(or,"scroll",ho=>{requestAnimationFrame(()=>{const Ci=s.getContainer();if(Ci!=null){const qi=Jb(s,F.element).map(Fi=>[Fi.element,...Fi.others]).getOr([]);te(qi,Fi=>so(Fi,ho.target))&&(s.dispatch("ElementScroll",{target:ho.target.dom}),ue(C1(),ho))}})}),kr=()=>we(Qb(),{}),yo=ho=>{ho.state&&we(K0(),{target:Pt.fromDom(s.getContainer())})},Xr=ho=>{we(K0(),{target:Pt.fromDom(ho.relatedTarget.getContainer())})},No=ho=>s.dispatch("focusin",ho),Jo=ho=>s.dispatch("focusout",ho);s.on("PostRender",()=>{s.on("click",yn),s.on("tap",yn),s.on("mouseup",wn),s.on("mousedown",Mn),s.on("ScrollWindow",Xn),s.on("ResizeWindow",Br),s.on("ResizeEditor",kr),s.on("AfterProgressState",yo),s.on("DismissPopups",Xr),q([F,...Z],ho=>{ho.element.dom.addEventListener("focusin",No),ho.element.dom.addEventListener("focusout",Jo)})}),s.on("remove",()=>{s.off("click",yn),s.off("tap",yn),s.off("mouseup",wn),s.off("mousedown",Mn),s.off("ScrollWindow",Xn),s.off("ResizeWindow",Br),s.off("ResizeEditor",kr),s.off("AfterProgressState",yo),s.off("DismissPopups",Xr),q([F,...Z],ho=>{ho.element.dom.removeEventListener("focusin",No),ho.element.dom.removeEventListener("focusout",Jo)}),$t.unbind(),ft.unbind(),gt.unbind(),At.unbind(),on.unbind(),Mr.unbind()}),s.on("detach",()=>{q([F,...Z],WS),q([F,...Z],ho=>ho.destroy())})},Cd=c6,$y=o6,DV=x([mr("shell",!1),Sn("makeItem"),mr("setupItem",v),Vm.field("listBehaviours",[da])]),O8=Jp({name:"items",overrides:()=>({behaviours:Bo([da.config({})])})}),BV=x([O8]),gee=x("CustomList"),vee=(s,F,Z,ue)=>{const we=(ft,gt)=>{qe(ft).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},At=>{const $t=da.contents(At),on=gt.length,yn=on-$t.length,wn=yn>0?W(yn,()=>s.makeItem()):[],Mn=$t.slice(on);q(Mn,Br=>da.remove(At,Br)),q(wn,Br=>da.append(At,Br));const Xn=da.contents(At);q(Xn,(Br,or)=>{s.setupItem(ft,Br,gt[or],or)})})},Be=s.shell?{behaviours:[da.config({})],components:[]}:{behaviours:[],components:F},qe=ft=>s.shell?I.some(ft):Fo(ft,s,"items");return{uid:s.uid,dom:s.dom,components:Be.components,behaviours:Rf(s.listBehaviours,Be.behaviours),apis:{setItems:we}}},zV=ch({name:gee(),configFields:DV(),partFields:BV(),factory:vee,apis:{setItems:(s,F,Z)=>{s.setItems(F,Z)}}}),w4=x([Sn("dom"),mr("shell",!0),Pf("toolbarBehaviours",[da])]),yee=x([Jp({name:"groups",overrides:()=>({behaviours:Bo([da.config({})])})})]),bee=(s,F,Z,ue)=>{const we=(ft,gt)=>{Be(ft).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},At=>{da.set(At,gt)})},Be=ft=>s.shell?I.some(ft):Fo(ft,s,"groups"),qe=s.shell?{behaviours:[da.config({})],components:[]}:{behaviours:[],components:F};return{uid:s.uid,dom:s.dom,components:qe.components,behaviours:Rf(s.toolbarBehaviours,qe.behaviours),apis:{setGroups:we,refresh:v},domModification:{attributes:{role:"group"}}}},d1=ch({name:"Toolbar",configFields:w4(),partFields:yee(),factory:bee,apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)}}}),FV=v,xee=D,q9=x([]);var _ee=Object.freeze({__proto__:null,setup:FV,isDocked:xee,getBehaviours:q9});const W9=x(fi("toolbar-height-change")),Vy={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},N2="tox-tinymce--toolbar-sticky-on",Y9="tox-tinymce--toolbar-sticky-off",Sk=(s,F)=>{const Z=go(F),we=Yn(F).dom.innerHeight,Be=Hl(Z),qe=Pt.fromDom(s.elm),ft=_l(qe),gt=Ql(qe),At=ft.y,$t=At+gt,on=pc(F),yn=Ql(F),wn=on.top,Mn=wn+yn,Xn=Math.abs(wn-Be.top)<2,Br=Math.abs(Mn-(Be.top+we))<2;if(Xn&&Atwn){const or=At-we+gt+yn;Cs(Be.left,or,Z)}},aO=(s,F)=>X(Dl.getModes(s),F),S8=s=>{const F=ue=>Ed(ue)+(parseInt(Aa(ue,"margin-top"),10)||0)+(parseInt(Aa(ue,"margin-bottom"),10)||0),Z=s.element;Cr(Z).each(ue=>{const we="padding-"+Dl.getModes(s)[0];if(Dl.isDocked(s)){const Be=cc(ue);ko(Z,"width",Be+"px"),ko(ue,we,F(Z)+"px")}else ga(Z,"width"),ga(ue,we)})},X9=(s,F)=>{F?(fc(s,Vy.fadeOutClass),P1(s,[Vy.transitionClass,Vy.fadeInClass])):(fc(s,Vy.fadeInClass),P1(s,[Vy.fadeOutClass,Vy.transitionClass]))},G9=(s,F)=>{const Z=Pt.fromDom(s.getContainer());F?(Sl(Z,N2),fc(Z,Y9)):(Sl(Z,Y9),fc(Z,N2))},xfe=(s,F)=>{const Z=go(F);hp(Z).filter(ue=>!so(F,ue)).filter(ue=>so(ue,Pt.fromDom(Z.dom.body))||So(s,ue)).each(()=>xd(F))},wee=(s,F)=>_d(s).orThunk(()=>F().toOptional().bind(Z=>_d(Z.element))),Oee=(s,F,Z)=>{s.inline||(F.header.isPositionedAtTop()||s.on("ResizeEditor",()=>{Z().each(Dl.reset)}),s.on("ResizeWindow ResizeEditor",()=>{Z().each(S8)}),s.on("SkinLoaded",()=>{Z().each(ue=>{Dl.isDocked(ue)?Dl.reset(ue):Dl.refresh(ue)})}),s.on("FullscreenStateChanged",()=>{Z().each(Dl.reset)})),s.on("AfterScrollIntoView",ue=>{Z().each(we=>{Dl.refresh(we);const Be=we.element;YD(Be)&&Sk(ue,Be)})}),s.on("PostRender",()=>{G9(s,!1)})},See=s=>s().map(Dl.isDocked).getOr(!1),kee=()=>[Wu.config({channels:{[W9()]:{onReceive:S8}}})],NV=(s,F)=>{const Z=os(),ue=F.getSink,we=ft=>{ue().each(gt=>ft(gt.element))},Be=ft=>{s.inline||S8(ft),G9(s,Dl.isDocked(ft)),ft.getSystem().broadcastOn([Qb()],{}),ue().each(gt=>gt.getSystem().broadcastOn([Qb()],{}))},qe=s.inline?[]:kee();return[oa.config({}),Dl.config({contextual:{lazyContext:ft=>{const gt=Ed(ft.element),At=s.inline?s.getContentAreaContainer():s.getContainer();return I.from(At).map($t=>{const on=Ya(Pt.fromDom($t));return Jb(s,ft.element).fold(()=>{const wn=on.height-gt,Mn=on.y+(aO(ft,"top")?0:gt);return ms(on.x,Mn,on.width,wn)},wn=>{const Mn=dl(on,zw(wn)),Xn=aO(ft,"top")?Mn.y:Mn.y+gt;return ms(Mn.x,Xn,Mn.width,Mn.height-gt)})})},onShow:()=>{we(ft=>X9(ft,!0))},onShown:ft=>{we(gt=>th(gt,[Vy.transitionClass,Vy.fadeInClass])),Z.get().each(gt=>{xfe(ft.element,gt),Z.clear()})},onHide:ft=>{wee(ft.element,ue).fold(Z.clear,Z.set),we(gt=>X9(gt,!1))},onHidden:()=>{we(ft=>th(ft,[Vy.transitionClass]))},...Vy},lazyViewport:ft=>Jb(s,ft.element).fold(()=>{const At=wl(),$t=iz(s),on=At.y+(aO(ft,"top")?$t:0),yn=At.height-(aO(ft,"bottom")?$t:0);return{bounds:ms(At.x,on,At.width,yn),optScrollEnv:I.none()}},At=>({bounds:zw(At),optScrollEnv:I.some({currentScrollTop:At.element.dom.scrollTop,scrollElmTop:pc(At.element).top})})),modes:[F.header.getDockingMode()],onDocked:Be,onUndocked:Be}),...qe]};var O4=Object.freeze({__proto__:null,setup:Oee,isDocked:See,getBehaviours:NV});const kk=s=>{const F=s.editor,Z=s.sticky?NV:q9;return{uid:s.uid,dom:s.dom,components:s.components,behaviours:Bo(Z(F,s.sharedBackstage))}},K9=Mi([Fu,rr("items",Ot([J([oC,Si("items",ne)]),ne]))].concat(H5)),Tee=s=>jt("GroupToolbarButton",K9,s),Cee=[Io("text"),Io("tooltip"),Io("icon"),bs("search",!1,Ot([ge,Mi([Io("placeholder")])],s=>w(s)?s?I.some({placeholder:I.none()}):I.none():I.some(s))),$o("fetch"),Pa("onSetup",()=>v)],k8=Mi([Fu,...Cee]),$V=s=>jt("menubutton",k8,s),Tk=Mi([Fu,j5,d0,R2,Gz,TY,P2,hl("presets","normal",["normal","color","listpreview"]),cC(1),G3,U7]),VV=s=>jt("SplitButton",Tk,s);var J9=Yh({factory:(s,F)=>{const Z=(we,Be)=>{const qe=oe(Be,ft=>{const gt={type:"menubutton",text:ft.text,fetch:$t=>{$t(ft.getItems())}},At=$V(gt).mapError($t=>sn($t)).getOrDie();return gk(At,"tox-mbtn",F.backstage,I.some("menuitem"))});da.set(we,qe)},ue={focus:Li.focusIn,setMenus:Z};return{uid:s.uid,dom:s.dom,components:[],behaviours:Bo([da.config({}),Ca("menubar-events",[Ll(we=>{s.onSetup(we)}),fo(Om(),(we,Be)=>{aa(we.element,".tox-mbtn--active").each(qe=>{Fs(Be.event.target,".tox-mbtn").each(ft=>{so(qe,ft)||we.getSystem().getByDom(qe).each(gt=>{we.getSystem().getByDom(ft).each(At=>{p0.expand(At),p0.close(gt),oa.focus(At)})})})})}),fo(Jg(),(we,Be)=>{Be.event.prevFocus.bind(qe=>we.getSystem().getByDom(qe).toOptional()).each(qe=>{Be.event.newFocus.bind(ft=>we.getSystem().getByDom(ft).toOptional()).each(ft=>{p0.isOpen(qe)&&(p0.expand(ft),p0.close(qe))})})})]),Li.config({mode:"flow",selector:".tox-mbtn",onEscape:we=>(s.onEscape(we),I.some(!0))}),Wl.config({})]),apis:ue,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[Sn("dom"),Sn("uid"),Sn("onEscape"),Sn("backstage"),mr("onSetup",v)],apis:{focus:(s,F)=>{s.focus(F)},setMenus:(s,F,Z)=>{s.setMenus(F,Z)}}});const Aee="⚡️Upgrade",Mee="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_campaign=self_hosted_upgrade_promo&utm_source=tiny&utm_medium=referral",Eee=s=>({uid:s.uid,dom:s.dom,components:[{dom:{tag:"a",attributes:{href:Mee,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:Aee}}]}),UV="container",jV=[Pf("slotBehaviours",[])],eR=s=>"",tR=s=>{const F=(()=>{const Be=[];return{slot:(ft,gt)=>(Be.push(ft),s6(UV,eR(ft),gt)),record:x(Be)}})(),Z=s(F),ue=F.record(),we=oe(ue,Be=>kd({name:Be,pname:eR(Be)}));return pv(UV,jV,we,Pee,Z)},Pee=(s,F)=>{const Z=Xn=>_w(s),ue=(Xn,Br)=>Fo(Xn,s,Br),we=(Xn,Br)=>(or,Mr)=>Fo(or,s,Mr).map(kr=>Xn(kr,Mr)).getOr(Br),Be=Xn=>(Br,or)=>{q(or,Mr=>Xn(Br,Mr))},qe=(Xn,Br)=>ao(Xn.element,"aria-hidden")!=="true",ft=(Xn,Br)=>{if(!qe(Xn)){const or=Xn.element;ga(or,"display"),po(or,"aria-hidden"),Ri(Xn,P_(),{name:Br,visible:!0})}},gt=(Xn,Br)=>{if(qe(Xn)){const or=Xn.element;ko(or,"display","none"),fr(or,"aria-hidden","true"),Ri(Xn,P_(),{name:Br,visible:!1})}},At=we(qe,!1),$t=we(gt),on=Be($t),yn=Xn=>on(Xn,Z()),wn=we(ft),Mn={getSlotNames:Z,getSlot:ue,isShowing:At,hideSlot:$t,hideAllSlots:yn,showSlot:wn};return{uid:s.uid,dom:s.dom,components:F,behaviours:vw(s.slotBehaviours),apis:Mn}},Ad={...Ue({getSlotNames:(s,F)=>s.getSlotNames(F),getSlot:(s,F,Z)=>s.getSlot(F,Z),isShowing:(s,F,Z)=>s.isShowing(F,Z),hideSlot:(s,F,Z)=>s.hideSlot(F,Z),hideAllSlots:(s,F)=>s.hideAllSlots(F),showSlot:(s,F,Z)=>s.showSlot(F,Z)},s=>Cc(s)),sketch:tR},QV=Mi([d0,j5,Pa("onShow",v),Pa("onHide",v),P2]),Ree=s=>jt("sidebar",QV,s),Lee=s=>{const{sidebars:F}=s.ui.registry.getAll();q(ke(F),Z=>{const ue=F[Z],we=()=>wt(I.from(s.queryCommandValue("ToggleSidebar")),Z);s.ui.registry.addToggleButton(Z,{icon:ue.icon,tooltip:ue.tooltip,onAction:Be=>{s.execCommand("ToggleSidebar",!1,Z),Be.setActive(we())},onSetup:Be=>{Be.setActive(we());const qe=()=>Be.setActive(we());return s.on("ToggleSidebar",qe),()=>{s.off("ToggleSidebar",qe)}}})})},Iee=s=>({element:()=>s.element.dom}),Dee=(s,F)=>{const Z=oe(ke(F),ue=>{const we=F[ue],Be=Nt(Ree(we));return{name:ue,getApi:Iee,onSetup:Be.onSetup,onShow:Be.onShow,onHide:Be.onHide}});return oe(Z,ue=>{const we=xi(v);return s.slot(ue.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:K3.unnamedEvents([nx(ue,we),Ih(ue,we),fo(P_(),(Be,qe)=>{const ft=qe.event;ce(Z,At=>At.name===ft.name).each(At=>{(ft.visible?At.onShow:At.onHide)(At.getApi(Be))})})])})})},rR=s=>Ad.sketch(F=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:Dee(F,s),slotBehaviours:K3.unnamedEvents([Ll(Z=>Ad.hideAllSlots(Z))])})),oR=(s,F,Z)=>{as.getCurrent(s).each(we=>{da.set(we,[rR(F)]);const Be=Z==null?void 0:Z.toLowerCase();n(Be)&&ht(F,Be)&&as.getCurrent(we).each(qe=>{Ad.showSlot(qe,Be),nm.immediateGrow(we),ga(we.element,"width"),T8(s.element,"region")})})},T8=(s,F)=>{fr(s,"role",F)},iR=(s,F)=>{as.getCurrent(s).each(ue=>{as.getCurrent(ue).each(Be=>{nm.hasGrown(ue)?Ad.isShowing(Be,F)?(nm.shrink(ue),T8(s.element,"presentation")):(Ad.hideAllSlots(Be),Ad.showSlot(Be,F),T8(s.element,"region")):(Ad.hideAllSlots(Be),Ad.showSlot(Be,F),nm.grow(ue),T8(s.element,"region"))})})},Bee=s=>as.getCurrent(s).bind(Z=>nm.isGrowing(Z)||nm.hasGrown(Z)?as.getCurrent(Z).bind(Be=>ce(Ad.getSlotNames(Be),qe=>Ad.isShowing(Be,qe))):I.none()),aR=fi("FixSizeEvent"),sR=fi("AutoSizeEvent"),zee=s=>({uid:s.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:Bo([Wl.config({}),oa.config({}),nm.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:F=>{as.getCurrent(F).each(Ad.hideAllSlots),Sa(F,sR)},onGrown:F=>{Sa(F,sR)},onStartGrow:F=>{Ri(F,aR,{width:Na(F.element,"width").getOr("")})},onStartShrink:F=>{Ri(F,aR,{width:cc(F.element)+"px"})}}),da.config({}),as.config({find:F=>{const Z=da.contents(F);return He(Z)}})])}],behaviours:Bo([y0.childAt(0),Ca("sidebar-sliding-events",[fo(aR,(F,Z)=>{ko(F.element,"width",Z.event.width)}),fo(sR,(F,Z)=>{ga(F.element,"width")})])])});var HV=Object.freeze({__proto__:null,block:(s,F,Z,ue)=>{fr(s.element,"aria-busy",!0);const we=F.getRoot(s).getOr(s),Be=Bo([Li.config({mode:"special",onTab:()=>I.some(!0),onShiftTab:()=>I.some(!0)}),oa.config({})]),qe=ue(we,Be),ft=we.getSystem().build(qe);da.append(we,na(ft)),ft.hasConfigured(Li)&&F.focus&&Li.focusIn(ft),Z.isBlocked()||F.onBlock(s),Z.blockWith(()=>da.remove(we,ft))},unblock:(s,F,Z)=>{po(s.element,"aria-busy"),Z.isBlocked()&&F.onUnblock(s),Z.clear()},isBlocked:(s,F,Z)=>Z.isBlocked()}),Fee=[Pa("getRoot",I.none),hs("focus",!0),Ra("onBlock"),Ra("onUnblock")],$ee=Object.freeze({__proto__:null,init:()=>{const s=xh(),F=Z=>{s.set({destroy:Z})};return kh({readState:s.isSet,blockWith:F,clear:s.clear,isBlocked:s.isSet})}});const Tv=lf({fields:Fee,name:"blocking",apis:HV,state:$ee}),Vee=s=>(F,Z)=>({dom:{tag:"div",attributes:{"aria-label":s.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:gv('
    ')}]}),ZV=s=>as.getCurrent(s).each(F=>xd(F.element,!0)),Uee=(s,F)=>{const Z="tabindex",ue=`data-mce-${Z}`;I.from(s.iframeElement).map(Pt.fromDom).each(we=>{F?(co(we,Z).each(Be=>fr(we,ue,Be)),fr(we,Z,-1)):(po(we,Z),co(we,ue).each(Be=>{fr(we,Z,Be),po(we,ue)}))})},qV=(s,F,Z,ue)=>{const we=F.element;if(Uee(s,Z),Z)Tv.block(F,Vee(ue)),ga(we,"display"),po(we,"aria-hidden"),s.hasFocus()&&ZV(F);else{const Be=as.getCurrent(F).exists(qe=>dy(qe.element));Tv.unblock(F),ko(we,"display","none"),fr(we,"aria-hidden","true"),Be&&s.focus()}},jee=s=>({uid:s.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:Bo([da.config({}),Tv.config({focus:!1}),as.config({find:F=>He(F.components())})]),components:[]}),Qee=s=>s.type==="focusin",Hee=s=>Qee(s)?(s.composed?He(s.composedPath()):I.from(s.target)).map(Pt.fromDom).filter(Kn).exists(Z=>$l(Z,"mce-pastebin")):!1,Ofe=(s,F,Z)=>{const ue=xi(!1),we=os(),Be=ft=>{ue.get()&&!Hee(ft)&&(ft.preventDefault(),ZV(F()),s.editorManager.setActive(s))};s.inline||s.on("PreInit",()=>{s.dom.bind(s.getWin(),"focusin",Be),s.on("BeforeExecCommand",ft=>{ft.command.toLowerCase()==="mcefocus"&&ft.value!==!0&&Be(ft)})});const qe=ft=>{ft!==ue.get()&&(ue.set(ft),qV(s,F(),ft,Z.providers),rX(s,ft))};s.on("ProgressState",ft=>{if(we.on(clearTimeout),h(ft.time)){const gt=S5.setEditorTimeout(s,()=>qe(ft.state),ft.time);we.set(gt)}else qe(ft.state),we.clear()})},Sfe=(s,F)=>se(s,(we,Be)=>F(Be,we.len).fold(x(we),ft=>({len:ft.finish,list:we.list.concat([ft])})),{len:0,list:[]}).list,C8=(s,F,Z)=>({within:s,extra:F,withinWidth:Z}),lR=(s,F,Z)=>{const ue=Sfe(s,(ft,gt)=>{const At=Z(ft);return I.some({element:ft,start:gt,finish:gt+At,width:At})}),we=me(ue,ft=>ft.finish<=F),Be=he(we,(ft,gt)=>ft+gt.width,0),qe=ue.slice(we.length);return{within:we,extra:qe,withinWidth:Be}},A8=s=>oe(s,F=>F.element),Zee=(s,F,Z)=>{const ue=A8(s.concat(F));return C8(ue,[],Z)},Pg=(s,F,Z,ue)=>{const we=A8(s).concat([Z]);return C8(we,A8(F),ue)},qee=(s,F,Z)=>C8(A8(s),[],Z),WV=(s,F,Z)=>{const ue=lR(F,s,Z);return ue.extra.length===0?I.some(ue):I.none()},YV=(s,F,Z,ue)=>{const we=WV(s,F,Z).getOrThunk(()=>lR(F,s-Z(ue),Z)),Be=we.within,qe=we.extra,ft=we.withinWidth;return qe.length===1&&qe[0].width<=Z(ue)?Zee(Be,qe,ft):qe.length>=1?Pg(Be,qe,ue,ft):qee(Be,qe,ft)},XV=(s,F)=>{const Z=oe(F,ue=>na(ue));d1.setGroups(s,Z)},Ck=s=>Oe(s,F=>_d(F.element).bind(Z=>F.getSystem().getByDom(Z).toOptional())),GV=(s,F,Z)=>{const ue=F.builtGroups.get();if(ue.length===0)return;const we=Ph(s,F,"primary"),Be=lu.getCoupled(s,"overflowGroup");ko(we.element,"visibility","hidden");const qe=ue.concat([Be]),ft=Ck(qe);Z([]),XV(we,qe);const gt=cc(we.element),At=YV(gt,F.builtGroups.get(),$t=>Math.ceil($t.element.dom.getBoundingClientRect().width),Be);At.extra.length===0?(da.remove(we,Be),Z([])):(XV(we,At.within),Z(At.extra)),ga(we.element,"visibility"),Ku(we.element),ft.each(oa.focus)},Ak=x([Pf("splitToolbarBehaviours",[lu]),On("builtGroups",()=>xi([]))]),Wee=x([jp(["overflowToggledClass"]),Ui("getOverflowBounds"),Sn("lazySink"),On("overflowGroups",()=>xi([])),Ra("onOpened"),Ra("onClosed")].concat(Ak())),M8=x([kd({factory:d1,schema:w4(),name:"primary"}),Um({schema:w4(),name:"overflow"}),Um({name:"overflow-button"}),Um({name:"overflow-group"})]),cR=x((s,F)=>{ju(s,Math.floor(F))}),Yee=x([jp(["toggledClass"]),Sn("lazySink"),$o("fetch"),Ui("getBounds"),Pi("fireDismissalEventInstead",[mr("event",I0())]),l0(),Ra("onToggled")]),b0=x([Um({name:"button",overrides:s=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:Bo([za.config({toggleClass:s.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:s.onToggled})])})}),Um({factory:d1,schema:w4(),name:"toolbar",overrides:s=>({toolbarBehaviours:Bo([Li.config({mode:"cyclic",onEscape:F=>(Fo(F,s,"button").each(oa.focus),I.none())})])})})]),E8=os(),P8=(s,F)=>{E8.set(!0),R8(s,F),E8.clear()},R8=(s,F)=>{const Z=lu.getCoupled(s,"toolbarSandbox");ps.isOpen(Z)?ps.close(Z):ps.open(Z,F.toolbar())},L8=(s,F,Z,ue)=>{const we=Z.getBounds.map(qe=>qe()),Be=Z.lazySink(s).getOrDie();ed.positionWithinBounds(Be,F,{anchor:{type:"hotspot",hotspot:s,layouts:ue,overrides:{maxWidthFunction:cR()}}},we)},KV=(s,F,Z,ue,we)=>{d1.setGroups(F,we),L8(s,F,Z,ue),za.on(s)},JV=(s,F,Z)=>{const ue=_u(),we=(qe,ft)=>{const gt=E8.get().getOr(!1);Z.fetch().get(At=>{KV(s,ft,Z,F.layouts,At),ue.link(s.element),gt||Li.focusIn(ft)})},Be=()=>{za.off(s),E8.get().getOr(!1)||oa.focus(s),ue.unlink(s.element)};return{dom:{tag:"div",attributes:{id:ue.id}},behaviours:Bo([Li.config({mode:"special",onEscape:qe=>(ps.close(qe),I.some(!0))}),ps.config({onOpen:we,onClose:Be,isPartOf:(qe,ft,gt)=>Vc(ft,gt)||Vc(s,gt),getAttachPoint:()=>Z.lazySink(s).getOrDie()}),Wu.config({channels:{...dv({isExtraPart:D,...Z.fireDismissalEventInstead.map(qe=>({fireEventInstead:{event:qe.event}})).getOr({})}),..._3({doReposition:()=>{ps.getState(lu.getCoupled(s,"toolbarSandbox")).each(qe=>{L8(s,qe,Z,F.layouts)})}})}})])}},$2=ch({name:"FloatingToolbarButton",factory:(s,F,Z,ue)=>({...Vd.sketch({...ue.button(),action:we=>{R8(we,ue)},buttonBehaviours:Vm.augment({dump:ue.button().buttonBehaviours},[lu.config({others:{toolbarSandbox:we=>JV(we,Z,s)}})])}),apis:{setGroups:(we,Be)=>{ps.getState(lu.getCoupled(we,"toolbarSandbox")).each(qe=>{KV(we,qe,s,Z.layouts,Be)})},reposition:we=>{ps.getState(lu.getCoupled(we,"toolbarSandbox")).each(Be=>{L8(we,Be,s,Z.layouts)})},toggle:we=>{R8(we,ue)},toggleWithoutFocusing:we=>{P8(we,ue)},getToolbar:we=>ps.getState(lu.getCoupled(we,"toolbarSandbox")),isOpen:we=>ps.isOpen(lu.getCoupled(we,"toolbarSandbox"))}}),configFields:Yee(),partFields:b0(),apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)},reposition:(s,F)=>{s.reposition(F)},toggle:(s,F)=>{s.toggle(F)},toggleWithoutFocusing:(s,F)=>{s.toggleWithoutFocusing(F)},getToolbar:(s,F)=>s.getToolbar(F),isOpen:(s,F)=>s.isOpen(F)}}),Xee=x([Sn("items"),jp(["itemSelector"]),Pf("tgroupBehaviours",[Li])]),Gee=x([R3({name:"items",unit:"item"})]),Kee=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,components:F,behaviours:Rf(s.tgroupBehaviours,[Li.config({mode:"flow",selector:s.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),I8=ch({name:"ToolbarGroup",configFields:Xee(),partFields:Gee(),factory:Kee}),eU=s=>oe(s,F=>na(F)),uR=(s,F,Z)=>{GV(s,Z,ue=>{Z.overflowGroups.set(ue),F.getOpt(s).each(we=>{$2.setGroups(we,eU(ue))})})},tU=(s,F,Z,ue)=>{const we=qs($2.sketch({fetch:()=>uh.nu(Be=>{Be(eU(s.overflowGroups.get()))}),layouts:{onLtr:()=>[Qc,Ec],onRtl:()=>[Ec,Qc],onBottomLtr:()=>[_s,Hc],onBottomRtl:()=>[Hc,_s]},getBounds:Z.getOverflowBounds,lazySink:s.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:s.markers.overflowToggledClass},parts:{button:ue["overflow-button"](),toolbar:ue.overflow()},onToggled:(Be,qe)=>s[qe?"onOpened":"onClosed"](Be)}));return{uid:s.uid,dom:s.dom,components:F,behaviours:Rf(s.splitToolbarBehaviours,[lu.config({others:{overflowGroup:()=>I8.sketch({...ue["overflow-group"](),items:[we.asSpec()]})}})]),apis:{setGroups:(Be,qe)=>{s.builtGroups.set(oe(qe,Be.getSystem().build)),uR(Be,we,s)},refresh:Be=>uR(Be,we,s),toggle:Be=>{we.getOpt(Be).each(qe=>{$2.toggle(qe)})},toggleWithoutFocusing:Be=>{we.getOpt(Be).each($2.toggleWithoutFocusing)},isOpen:Be=>we.getOpt(Be).map($2.isOpen).getOr(!1),reposition:Be=>{we.getOpt(Be).each(qe=>{$2.reposition(qe)})},getOverflow:Be=>we.getOpt(Be).bind($2.getToolbar)},domModification:{attributes:{role:"group"}}}},fR=ch({name:"SplitFloatingToolbar",configFields:Wee(),partFields:M8(),factory:tU,apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)},refresh:(s,F)=>{s.refresh(F)},reposition:(s,F)=>{s.reposition(F)},toggle:(s,F)=>{s.toggle(F)},toggleWithoutFocusing:(s,F)=>{s.toggle(F)},isOpen:(s,F)=>s.isOpen(F),getOverflow:(s,F)=>s.getOverflow(F)}}),Jee=x([jp(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Ra("onOpened"),Ra("onClosed")].concat(Ak())),ete=x([kd({factory:d1,schema:w4(),name:"primary"}),kd({factory:d1,schema:w4(),name:"overflow",overrides:s=>({toolbarBehaviours:Bo([nm.config({dimension:{property:"height"},closedClass:s.markers.closedClass,openClass:s.markers.openClass,shrinkingClass:s.markers.shrinkingClass,growingClass:s.markers.growingClass,onShrunk:F=>{Fo(F,s,"overflow-button").each(Z=>{za.off(Z)}),s.onClosed(F)},onGrown:F=>{s.onOpened(F)},onStartGrow:F=>{Fo(F,s,"overflow-button").each(za.on)}}),Li.config({mode:"acyclic",onEscape:F=>(Fo(F,s,"overflow-button").each(oa.focus),I.some(!0))})])})}),Um({name:"overflow-button",overrides:s=>({buttonBehaviours:Bo([za.config({toggleClass:s.markers.overflowToggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])})}),Um({name:"overflow-group"})]),nU=(s,F)=>Fo(s,F,"overflow").map(nm.hasGrown).getOr(!1),D8=(s,F,Z)=>{Fo(s,F,"overflow-button").each(ue=>{Fo(s,F,"overflow").each(we=>{if(B8(s,F),nm.hasShrunk(we)){const Be=F.onOpened;F.onOpened=qe=>{Z||Li.focusIn(we),Be(qe),F.onOpened=Be}}else{const Be=F.onClosed;F.onClosed=qe=>{Z||oa.focus(ue),Be(qe),F.onClosed=Be}}nm.toggleGrow(we)})})},B8=(s,F)=>{Fo(s,F,"overflow").each(Z=>{GV(s,F,ue=>{const we=oe(ue,Be=>na(Be));d1.setGroups(Z,we)}),Fo(s,F,"overflow-button").each(ue=>{nm.hasGrown(Z)&&za.on(ue)}),nm.refresh(Z)})},tte=(s,F,Z,ue)=>{const we="alloy.toolbar.toggle",Be=(qe,ft)=>{const gt=oe(ft,qe.getSystem().build);s.builtGroups.set(gt)};return{uid:s.uid,dom:s.dom,components:F,behaviours:Rf(s.splitToolbarBehaviours,[lu.config({others:{overflowGroup:qe=>I8.sketch({...ue["overflow-group"](),items:[Vd.sketch({...ue["overflow-button"](),action:ft=>{Sa(qe,we)}})]})}}),Ca("toolbar-toggle-events",[fo(we,qe=>{D8(qe,s,!1)})])]),apis:{setGroups:(qe,ft)=>{Be(qe,ft),B8(qe,s)},refresh:qe=>B8(qe,s),toggle:qe=>{D8(qe,s,!1)},toggleWithoutFocusing:qe=>{D8(qe,s,!0)},isOpen:qe=>nU(qe,s)},domModification:{attributes:{role:"group"}}}},dR=ch({name:"SplitSlidingToolbar",configFields:Jee(),partFields:ete(),factory:tte,apis:{setGroups:(s,F,Z)=>{s.setGroups(F,Z)},refresh:(s,F)=>{s.refresh(F)},toggle:(s,F)=>{s.toggle(F)},isOpen:(s,F)=>s.isOpen(F)}}),rU=s=>{const F=s.title.fold(()=>({}),Z=>({attributes:{title:Z}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...F},components:[I8.parts.items({})],items:s.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:Bo([Wl.config({}),oa.config({})])}},Mk=s=>I8.sketch(rU(s)),oU=(s,F)=>{const Z=Ll(ue=>{const we=oe(s.initGroups,Mk);d1.setGroups(ue,we)});return Bo([s1.toolbarButton(s.providers.isDisabled),df(),Li.config({mode:F,onEscape:s.onEscape,selector:".tox-toolbar__group"}),Ca("toolbar-events",[Z])])},iU=s=>{const F=s.cyclicKeying?"cyclic":"acyclic";return{uid:s.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":rU({title:I.none(),items:[]}),"overflow-button":iV({name:"more",icon:I.some("more-drawer"),enabled:!0,tooltip:I.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:I.none(),borderless:!1},I.none(),s.providers,[],"overflow-button")},splitToolbarBehaviours:oU(s,F)}},nte=s=>{const F=iU(s),Z=4,ue=fR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return fR.sketch({...F,lazySink:s.getSink,getOverflowBounds:()=>{const we=s.moreDrawerData.lazyHeader().element,Be=_l(we),qe=Pn(we),ft=_l(qe),gt=Math.max(qe.dom.scrollHeight,ft.height);return ms(Be.x+Z,ft.y,Be.width-Z*2,gt)},parts:{...F.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:s.attributes}}},components:[ue],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:we=>s.onToggled(we,!0),onClosed:we=>s.onToggled(we,!1)})},rte=s=>{const F=dR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),Z=dR.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),ue=iU(s);return dR.sketch({...ue,components:[F,Z],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:we=>{we.getSystem().broadcastOn([W9()],{type:"opened"}),s.onToggled(we,!0)},onClosed:we=>{we.getSystem().broadcastOn([W9()],{type:"closed"}),s.onToggled(we,!1)}})},z8=s=>{const F=s.cyclicKeying?"cyclic":"acyclic";return d1.sketch({uid:s.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(s.type===Hm.scrolling?["tox-toolbar--scrolling"]:[])},components:[d1.parts.groups({})],toolbarBehaviours:oU(s,F)})},aU=[R2,d0,Io("tooltip"),hl("buttonType","secondary",["primary","secondary"]),hs("borderless",!1),$o("onAction")],ote=[...aU,tx,Zr("type",["button"])],ite=[...aU,hs("active",!1),Zr("type",["togglebutton"])],sU={button:ote,togglebutton:ite},ate=[Zr("type",["group"]),Ls("buttons",[],xn("type",sU))],lU=xn("type",{...sU,group:ate}),ste=Mi([Ls("buttons",[],lU),$o("onShow"),$o("onHide")]),lte=s=>jt("view",ste,s),hR=(s,F)=>{var Z,ue;const we=s.type==="togglebutton",Be=s.icon.map(kr=>sx(kr,F.icons)).map(qs),ft=(()=>kr=>{const yo=Jo=>{Be.map(ho=>ho.getOpt(kr).each(Ci=>{da.set(Ci,[sx(Jo,F.icons)])}))},Xr=Jo=>{const ho=kr.element;Jo?(Sl(ho,"tox-button--enabled"),fr(ho,"aria-pressed",!0)):(fc(ho,"tox-button--enabled"),po(ho,"aria-pressed"))},No=()=>$l(kr.element,"tox-button--enabled");if(we)return s.onAction({setIcon:yo,setActive:Xr,isActive:No});if(s.type==="button")return s.onAction({setIcon:yo})})(),gt={...s,name:we?s.text.getOr(s.icon.getOr("")):(Z=s.text)!==null&&Z!==void 0?Z:s.icon.getOr(""),primary:s.buttonType==="primary",buttonType:I.from(s.buttonType),tooltip:s.tooltip,icon:s.icon,enabled:!0,borderless:s.borderless},At=l8((ue=s.buttonType)!==null&&ue!==void 0?ue:"secondary"),$t=we?s.text.map(F.translate):I.some(F.translate(s.text)),on=$t.map(ro),yn=gt.tooltip.or($t).map(kr=>({"aria-label":F.translate(kr)})).getOr({}),wn=Be.map(kr=>kr.asSpec()),Mn=jw([wn,on]),Xn=s.icon.isSome()&&on.isSome(),Br={tag:"button",classes:At.concat(...s.icon.isSome()&&!Xn?["tox-button--icon"]:[]).concat(...Xn?["tox-button--icon-and-text"]:[]).concat(...s.borderless?["tox-button--naked"]:[]).concat(...s.type==="togglebutton"&&s.active?["tox-button--enabled"]:[]),attributes:yn},or=[],Mr=s8(gt,I.some(ft),or,Br,Mn,s.tooltip,F);return Vd.sketch(Mr)},cU=(s,F)=>hR(s,F),F8=(s,F)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:oe(s.buttons,Z=>cU(Z,F))}),uU=rf().deviceType,fU=uU.isPhone(),cte=uU.isTablet(),ute=s=>{let F=!1;const Z=oe(s.buttons,ue=>ue.type==="group"?(F=!0,F8(ue,s.providers)):cU(ue,s.providers));return{uid:s.uid,dom:{tag:"div",classes:[F?"tox-view__toolbar":"tox-view__header",...fU||cte?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:Bo([oa.config({}),Li.config({mode:"flow",selector:"button, .tox-button",focusInside:Wb.OnEnterOrSpaceMode})]),components:F?Z:[_v.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),_v.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:Z})]}},Tfe=s=>({uid:s.uid,behaviours:Bo([oa.config({}),Wl.config({})]),dom:{tag:"div",classes:["tox-view__pane"]}}),fte=(s,F,Z,ue)=>{const we={getPane:Be=>Cd.getPart(Be,s,"pane"),getOnShow:Be=>s.viewConfig.onShow,getOnHide:Be=>s.viewConfig.onHide};return{uid:s.uid,dom:s.dom,components:F,behaviours:Bo([oa.config({}),Li.config({mode:"cyclic",focusInside:Wb.OnEnterOrSpaceMode})]),apis:we}};var S4=ch({name:"silver.View",configFields:[Sn("viewConfig")],partFields:[Jp({factory:{sketch:ute},schema:[Sn("buttons"),Sn("providers")],name:"header"}),Jp({factory:{sketch:Tfe},schema:[],name:"pane"})],factory:fte,apis:{getPane:(s,F)=>s.getPane(F),getOnShow:(s,F)=>s.getOnShow(F),getOnHide:(s,F)=>s.getOnHide(F)}});const pR=(s,F,Z)=>je(F,(ue,we)=>{const Be=Nt(lte(ue));return s.slot(we,S4.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:Be,components:[...Be.buttons.length>0?[S4.parts.header({buttons:Be.buttons,providers:Z})]:[],S4.parts.pane({})]}))}),dte=(s,F)=>Ad.sketch(Z=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:pR(Z,s,F),slotBehaviours:K3.unnamedEvents([Ll(ue=>Ad.hideAllSlots(ue))])})),Ek=s=>ce(Ad.getSlotNames(s),F=>Ad.isShowing(s,F)),dU=s=>{const F=s.element;ko(F,"display","none"),fr(F,"aria-hidden","true")},hU=s=>{const F=s.element;ga(F,"display"),po(F,"aria-hidden")},mR=s=>({getContainer:x(s)}),pU=(s,F,Z)=>{Ad.getSlot(s,F).each(ue=>{S4.getPane(ue).each(we=>{Z(ue)(mR(we.element.dom))})})},mU=(s,F)=>pU(s,F,S4.getOnShow),k4=(s,F)=>pU(s,F,S4.getOnHide);var N8=Yh({factory:(s,F)=>{const Be={setViews:(qe,ft)=>{da.set(qe,[dte(ft,F.backstage.shared.providers)])},whichView:qe=>as.getCurrent(qe).bind(Ek),toggleView:(qe,ft,gt,At)=>as.getCurrent(qe).exists($t=>{const on=Ek($t),yn=on.exists(Mn=>At===Mn),wn=Ad.getSlot($t,At).isSome();return wn&&(Ad.hideAllSlots($t),yn?(dU(qe),ft()):(gt(),hU(qe),Ad.showSlot($t,At),mU($t,At)),on.each(Mn=>k4($t,Mn))),wn})};return{uid:s.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:Bo([da.config({}),as.config({find:qe=>{const ft=da.contents(qe);return He(ft)}})]),apis:Be}},name:"silver.ViewWrapper",configFields:[Sn("backstage")],apis:{setViews:(s,F,Z)=>s.setViews(F,Z),toggleView:(s,F,Z,ue,we)=>s.toggleView(F,Z,ue,we),whichView:(s,F)=>s.whichView(F)}});const pte=(s,F,Z)=>{let ue=!1;const we=qe=>{gs(qe,".tox-statusbar").each(ft=>{Aa(ft,"display")==="none"&&ao(ft,"aria-hidden")==="true"?(ga(ft,"display"),po(ft,"aria-hidden")):(ko(ft,"display","none"),fr(ft,"aria-hidden","true"))})},Be={getSocket:qe=>Cd.getPart(qe,s,"socket"),setSidebar:(qe,ft,gt)=>{Cd.getPart(qe,s,"sidebar").each(At=>oR(At,ft,gt))},toggleSidebar:(qe,ft)=>{Cd.getPart(qe,s,"sidebar").each(gt=>iR(gt,ft))},whichSidebar:qe=>Cd.getPart(qe,s,"sidebar").bind(Bee).getOrNull(),getHeader:qe=>Cd.getPart(qe,s,"header"),getToolbar:qe=>Cd.getPart(qe,s,"toolbar"),setToolbar:(qe,ft)=>{Cd.getPart(qe,s,"toolbar").each(gt=>{const At=oe(ft,Mk);gt.getApis().setGroups(gt,At)})},setToolbars:(qe,ft)=>{Cd.getPart(qe,s,"multiple-toolbar").each(gt=>{const At=oe(ft,$t=>oe($t,Mk));zV.setItems(gt,At)})},refreshToolbar:qe=>{Cd.getPart(qe,s,"toolbar").each(gt=>gt.getApis().refresh(gt))},toggleToolbarDrawer:qe=>{Cd.getPart(qe,s,"toolbar").each(ft=>{Ct(ft.getApis().toggle,gt=>gt(ft))})},toggleToolbarDrawerWithoutFocusing:qe=>{Cd.getPart(qe,s,"toolbar").each(ft=>{Ct(ft.getApis().toggleWithoutFocusing,gt=>gt(ft))})},isToolbarDrawerToggled:qe=>Cd.getPart(qe,s,"toolbar").bind(ft=>I.from(ft.getApis().isOpen).map(gt=>gt(ft))).getOr(!1),getThrobber:qe=>Cd.getPart(qe,s,"throbber"),focusToolbar:qe=>{Cd.getPart(qe,s,"toolbar").orThunk(()=>Cd.getPart(qe,s,"multiple-toolbar")).each(gt=>{Li.focusIn(gt)})},setMenubar:(qe,ft)=>{Cd.getPart(qe,s,"menubar").each(gt=>{J9.setMenus(gt,ft)})},focusMenubar:qe=>{Cd.getPart(qe,s,"menubar").each(ft=>{J9.focus(ft)})},setViews:(qe,ft)=>{Cd.getPart(qe,s,"viewWrapper").each(gt=>{N8.setViews(gt,ft)})},toggleView:(qe,ft)=>Cd.getPart(qe,s,"viewWrapper").exists(gt=>N8.toggleView(gt,()=>Be.showMainView(qe),()=>Be.hideMainView(qe),ft)),whichView:qe=>Cd.getPart(qe,s,"viewWrapper").bind(N8.whichView).getOrNull(),hideMainView:qe=>{ue=Be.isToolbarDrawerToggled(qe),ue&&Be.toggleToolbarDrawer(qe),Cd.getPart(qe,s,"editorContainer").each(ft=>{const gt=ft.element;we(gt),ko(gt,"display","none"),fr(gt,"aria-hidden","true")})},showMainView:qe=>{ue&&Be.toggleToolbarDrawer(qe),Cd.getPart(qe,s,"editorContainer").each(ft=>{const gt=ft.element;we(gt),ga(gt,"display"),po(gt,"aria-hidden")})}};return{uid:s.uid,dom:s.dom,components:F,apis:Be,behaviours:s.behaviours}},mte=$y.optional({factory:J9,name:"menubar",schema:[Sn("backstage")]}),gR=s=>s.type===Hm.sliding?rte:s.type===Hm.floating?nte:z8,gte=$y.optional({factory:{sketch:s=>zV.sketch({uid:s.uid,dom:s.dom,listBehaviours:Bo([Li.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>z8({type:s.type,uid:fi("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:s.providers,onEscape:()=>(s.onEscape(),I.some(!0))}),setupItem:(F,Z,ue,we)=>{d1.setGroups(Z,ue)},shell:!0})},name:"multiple-toolbar",schema:[Sn("dom"),Sn("onEscape")]}),vte=$y.optional({factory:{sketch:s=>{const F=gR(s),Z={type:s.type,uid:s.uid,onEscape:()=>(s.onEscape(),I.some(!0)),onToggled:(ue,we)=>s.onToolbarToggled(we),cyclicKeying:!1,initGroups:[],getSink:s.getSink,providers:s.providers,moreDrawerData:{lazyToolbar:s.lazyToolbar,lazyMoreButton:s.lazyMoreButton,lazyHeader:s.lazyHeader},attributes:s.attributes};return F(Z)}},name:"toolbar",schema:[Sn("dom"),Sn("onEscape"),Sn("getSink")]}),gU=$y.optional({factory:{sketch:kk},name:"header",schema:[Sn("dom")]}),vU=$y.optional({factory:{sketch:Eee},name:"promotion",schema:[Sn("dom")]}),$8=$y.optional({name:"socket",schema:[Sn("dom")]}),vR=$y.optional({factory:{sketch:zee},name:"sidebar",schema:[Sn("dom")]}),yte=$y.optional({factory:{sketch:jee},name:"throbber",schema:[Sn("dom")]}),bte=$y.optional({factory:N8,name:"viewWrapper",schema:[Sn("backstage")]}),yU=s=>({uid:s.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:s.components}),xte=$y.optional({factory:{sketch:yU},name:"editorContainer",schema:[]});var Yl=ch({name:"OuterContainer",factory:pte,configFields:[Sn("dom"),Sn("behaviours")],partFields:[gU,mte,vte,gte,$8,vR,vU,yte,bte,xte],apis:{getSocket:(s,F)=>s.getSocket(F),setSidebar:(s,F,Z,ue)=>{s.setSidebar(F,Z,ue)},toggleSidebar:(s,F,Z)=>{s.toggleSidebar(F,Z)},whichSidebar:(s,F)=>s.whichSidebar(F),getHeader:(s,F)=>s.getHeader(F),getToolbar:(s,F)=>s.getToolbar(F),setToolbar:(s,F,Z)=>{s.setToolbar(F,Z)},setToolbars:(s,F,Z)=>{s.setToolbars(F,Z)},refreshToolbar:(s,F)=>s.refreshToolbar(F),toggleToolbarDrawer:(s,F)=>{s.toggleToolbarDrawer(F)},toggleToolbarDrawerWithoutFocusing:(s,F)=>{s.toggleToolbarDrawerWithoutFocusing(F)},isToolbarDrawerToggled:(s,F)=>s.isToolbarDrawerToggled(F),getThrobber:(s,F)=>s.getThrobber(F),setMenubar:(s,F,Z)=>{s.setMenubar(F,Z)},focusMenubar:(s,F)=>{s.focusMenubar(F)},focusToolbar:(s,F)=>{s.focusToolbar(F)},setViews:(s,F,Z)=>{s.setViews(F,Z)},toggleView:(s,F,Z)=>s.toggleView(F,Z),whichView:(s,F)=>s.whichView(F)}});const _te="file edit view insert format tools table help",yR={file:{title:"File",items:"newdocument restoredraft | preview | importword exportpdf exportword | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code revisionhistory | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed inserttemplate codesample inserttable accordion math | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},wte=(s,F,Z)=>{const ue=GE(Z).split(/[ ,]/);return{text:s.title,getItems:()=>ye(s.items,we=>{const Be=we.toLowerCase();return Be.trim().length===0?[]:te(ue,qe=>qe===Be)?[]:Be==="separator"||Be==="|"?[{type:"separator"}]:F.menuItems[Be]?[F.menuItems[Be]]:[]})}},bR=s=>s.split(" "),V8=(s,F)=>{const Z={...yR,...F.menus},ue=ke(F.menus).length>0,we=F.menubar===void 0||F.menubar===!0?bR(_te):bR(F.menubar===!1?"":F.menubar),Be=me(we,ft=>{const gt=ht(yR,ft);return ue?gt||Ge(F.menus,ft).exists(At=>ht(At,"items")):gt}),qe=oe(Be,ft=>{const gt=Z[ft];return wte({title:gt.title,items:bR(gt.items)},F,s)});return me(qe,ft=>{const gt=At=>n(At)||At.type!=="separator";return ft.getItems().length>0&&te(ft.getItems(),gt)})},Ote=s=>{const F=()=>{s._skinLoaded=!0,eX(s)};return()=>{s.initialized?F():s.on("init",F)}},Ste=(s,F)=>()=>tX(s,{message:F}),xR=(s,F,Z)=>(s.on("remove",()=>Z.unload(F)),Z.load(F)),_R=(s,F,Z,ue)=>(s.on("remove",()=>ue.unloadRawCss(F)),ue.loadRawCss(F,Z)),bU=async(s,F)=>{const ue="ui/"+F6(s).getOr("default")+"/skin.css",we=tinymce.Resource.get(ue);if(n(we))_R(s,ue,we,s.ui.styleSheetLoader);else{const Be=s.editorManager.suffix,qe=F+`/skin${Be}.css`;return xR(s,qe,s.ui.styleSheetLoader)}},kte=async(s,F)=>{if(Qn(Pt.fromDom(s.getElement()))){const we="ui/"+F6(s).getOr("default")+"/skin.shadowdom.css",Be=tinymce.Resource.get(we);if(n(Be))_R(s,we,Be,Lw.DOM.styleSheetLoader);else{const qe=s.editorManager.suffix,ft=F+`/skin.shadowdom${qe}.css`;return xR(s,ft,Lw.DOM.styleSheetLoader)}}},xU=async(s,F)=>{const Z=()=>{const we=i7(F),Be=F.editorManager.suffix;we&&F.contentCSS.push(we+(s?"/content.inline":"/content")+`${Be}.css`)};F6(F).fold(Z,we=>{const Be="ui/"+we+(s?"/content.inline":"/content")+".css",qe=tinymce.Resource.get(Be);n(qe)?_R(F,Be,qe,F.ui.styleSheetLoader):Z()});const ue=i7(F);if(!o7(F)&&n(ue))return Promise.all([bU(F,ue),kte(F,ue)]).then()},_U=(s,F)=>xU(s,F).then(Ote(F),Ste(F,"Skin could not be loaded")),Tte=T(_U,!1),Cte=T(_U,!0),sO=(s,F,Z)=>at(Z)?s.translate(F):s.translate([F,s.translate(Z)]),Ate=(s,F)=>{const Z=(qe,ft,gt,At)=>{const $t=s.shared.providers.translate(qe.title);if(qe.type==="separator")return I.some({type:"separator",text:$t});if(qe.type==="submenu"){const on=ye(qe.getStyleItems(),yn=>ue(yn,ft,At));return ft===0&&on.length<=0?I.none():I.some({type:"nestedmenuitem",text:$t,enabled:on.length>0,getSubmenuItems:()=>ye(qe.getStyleItems(),yn=>ue(yn,ft,At))})}else return I.some({type:"togglemenuitem",text:$t,icon:qe.icon,active:qe.isSelected(At),enabled:!gt,onAction:F.onAction(qe),...qe.getStylePreview().fold(()=>({}),on=>({meta:{style:on}}))})},ue=(qe,ft,gt)=>{const At=qe.type==="formatter"&&F.isInvalid(qe);return ft===0?At?[]:Z(qe,ft,!1,gt).toArray():Z(qe,ft,At,gt).toArray()},we=qe=>{const ft=F.getCurrentValue(),gt=F.shouldHide?0:1;return ye(qe,At=>ue(At,gt,ft))};return{validateItems:we,getFetch:(qe,ft)=>(gt,At)=>{const $t=ft(),on=we($t),yn=v4(on,r1.CLOSE_ON_EXECUTE,qe,{isHorizontalMenu:!1,search:I.none()});At(yn)}}},T4=(s,F)=>{const Z=F.dataset,ue=Z.type==="basic"?()=>oe(Z.data,we=>_k(we,F.isSelectedFor,F.getPreviewFor)):Z.getData;return{items:Ate(s,F),getStyleItems:ue}},Pk=(s,F,Z,ue,we,Be)=>{const{items:qe,getStyleItems:ft}=T4(F,Z),gt=xi(Z.tooltip),At=on=>({getComponent:x(on),setTooltip:yn=>{const wn=F.shared.providers.translate(yn);fr(on.element,"aria-label",wn),gt.set(yn)}}),$t=on=>{const yn=wn=>on.setTooltip(sO(s,ue(wn.value),wn.value));return s.on(we,yn),t4(Zw(s,"NodeChange",wn=>{const Mn=wn.getComponent();Z.updateText(Mn),ta.set(wn.getComponent(),!s.selection.isEditable())})(on),()=>s.off(we,yn))};return l9({text:Z.icon.isSome()?I.none():Z.text,icon:Z.icon,ariaLabel:I.some(Z.tooltip),tooltip:I.none(),role:I.none(),fetch:qe.getFetch(F,ft),onSetup:$t,getApi:At,columns:1,presets:"normal",classes:Z.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[Td.config({...F.shared.providers.tooltips.getConfig({tooltipText:F.shared.providers.translate(Z.tooltip),onShow:on=>{if(Z.tooltip!==gt.get()){const yn=F.shared.providers.translate(gt.get());Td.setComponents(on,F.shared.providers.tooltips.getComponents({tooltipText:yn}))}}})})]},"tox-tbtn",F.shared,Be)},wR=s=>oe(s,F=>{let Z=F,ue=F;const we=F.split("=");return we.length>1&&(Z=we[0],ue=we[1]),{title:Z,format:ue}}),OR=s=>({type:"basic",data:s});var C4;(function(s){s[s.SemiColon=0]="SemiColon",s[s.Space=1]="Space"})(C4||(C4={}));const Mte=(s,F)=>F===C4.SemiColon?s.replace(/;$/,"").split(";"):s.split(" "),SR=(s,F,Z)=>{const ue=s.options.get(F);return{type:"basic",data:wR(Mte(ue,Z))}},Ete="Align",wU=x("Alignment {0}"),OU="left",kR=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],SU=s=>{const F=()=>ce(kR,ft=>s.formatter.match(ft.format)),Z=ft=>()=>s.formatter.match(ft),ue=ft=>I.none,we=ft=>{const At=F().fold(x(OU),$t=>$t.title.toLowerCase());Ri(ft,F2,{icon:`align-${At}`}),sX(s,{value:At})},Be=OR(kR),qe=ft=>()=>ce(kR,gt=>gt.format===ft.format).each(gt=>s.execCommand(gt.command));return{tooltip:sO(s,wU(),OU),text:I.none(),icon:I.some("align-left"),isSelectedFor:Z,getCurrentValue:I.none,getPreviewFor:ue,onAction:qe,updateText:we,dataset:Be,shouldHide:!1,isInvalid:ft=>!s.formatter.canApply(ft.format)}},Pte=(s,F)=>Pk(s,F,SU(s),wU,"AlignTextUpdate","align"),kU=(s,F)=>{const Z=T4(F,SU(s));s.ui.registry.addNestedMenuItem("align",{text:F.shared.providers.translate(Ete),onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},Rk=(s,F)=>{const Z=F(),ue=oe(Z,we=>we.format);return I.from(s.formatter.closest(ue)).bind(we=>ce(Z,Be=>Be.format===we))},TR="Blocks",CR=x("Block {0}"),Uy="Paragraph",AR=s=>{const F=Be=>()=>s.formatter.match(Be),Z=Be=>()=>{const qe=s.formatter.get(Be);return qe?I.some({tag:qe.length>0&&(qe[0].inline||qe[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(Be))}):I.none()},ue=Be=>{const ft=Rk(s,()=>we.data).fold(x(Uy),gt=>gt.title);Ri(Be,Eg,{text:ft}),RF(s,{value:ft})},we=SR(s,"block_formats",C4.SemiColon);return{tooltip:sO(s,CR(),Uy),text:I.some(Uy),icon:I.none(),isSelectedFor:F,getCurrentValue:I.none,getPreviewFor:Z,onAction:LF(s),updateText:ue,dataset:we,shouldHide:!1,isInvalid:Be=>!s.formatter.canApply(Be.format)}},Rte=(s,F)=>Pk(s,F,AR(s),CR,"BlocksTextUpdate","blocks"),Lte=(s,F)=>{const Z=T4(F,AR(s));s.ui.registry.addNestedMenuItem("blocks",{text:TR,onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},Ite="Fonts",TU=x("Font {0}"),MR="System Font",Dte=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],CU=s=>{const F=s.split(/\s*,\s*/);return oe(F,Z=>Z.replace(/^['"]+|['"]+$/g,""))},ER=(s,F)=>F.length>0&&_e(F,Z=>s.indexOf(Z.toLowerCase())>-1),Bte=(s,F)=>{if(s.indexOf("-apple-system")===0||F.length>0){const Z=CU(s.toLowerCase());return ER(Z,Dte)||ER(Z,F)}else return!1},AU=s=>{const F=()=>{const gt=Mn=>Mn?CU(Mn)[0]:"",At=s.queryCommandValue("FontName"),$t=ft.data,on=At?At.toLowerCase():"",yn=pz(s);return{matchOpt:ce($t,Mn=>{const Xn=Mn.format;return Xn.toLowerCase()===on||gt(Xn).toLowerCase()===gt(on).toLowerCase()}).orThunk(()=>_t(Bte(on,yn),{title:MR,format:on})),font:At}},Z=gt=>At=>At.exists($t=>$t.format===gt),ue=()=>{const{matchOpt:gt}=F();return gt},we=gt=>()=>I.some({tag:"div",styles:gt.indexOf("dings")===-1?{"font-family":gt}:{}}),Be=gt=>()=>{s.undoManager.transact(()=>{s.focus(),s.execCommand("FontName",!1,gt.format)})},qe=gt=>{const{matchOpt:At,font:$t}=F(),on=At.fold(x($t),yn=>yn.title);Ri(gt,Eg,{text:on}),lX(s,{value:on})},ft=SR(s,"font_family_formats",C4.SemiColon);return{tooltip:sO(s,TU(),MR),text:I.some(MR),icon:I.none(),isSelectedFor:Z,getCurrentValue:ue,getPreviewFor:we,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},PR=(s,F)=>Pk(s,F,AU(s),TU,"FontFamilyTextUpdate","fontfamily"),zte=(s,F)=>{const Z=T4(F,AU(s));s.ui.registry.addNestedMenuItem("fontfamily",{text:F.shared.providers.translate(Ite),onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},Fte={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Nte=(()=>{const s="[0-9]+",Z="[eE]"+("[+-]?"+s),ue="\\.",we=ft=>`(?:${ft})?`,qe=`[+-]?(?:${["Infinity",s+ue+we(s)+we(Z),ue+s+we(Z),s+we(Z)].join("|")})`;return new RegExp(`^(${qe})(.*)$`)})(),$te=(s,F)=>te(F,Z=>te(Fte[Z],ue=>s===ue)),U8=(s,F)=>I.from(Nte.exec(s)).bind(ue=>{const we=Number(ue[1]),Be=ue[2];return $te(Be,F)?I.some({value:we,unit:Be}):I.none()}),Vte=(s,F)=>U8(s,F).map(({value:Z,unit:ue})=>Z+ue),RR={tab:x(9),escape:x(27),enter:x(13),backspace:x(8),delete:x(46),left:x(37),up:x(38),right:x(39),down:x(40),space:x(32),home:x(36),end:x(35),pageUp:x(33),pageDown:x(34)},MU=(s,F,Z,ue)=>{let we=I.none();const Be=kr=>kr.map(yo=>hi.getValue(yo)).getOr(""),qe=Zw(s,"NodeChange SwitchMode",kr=>{const yo=kr.getComponent();we=I.some(yo),Z.updateInputValue(yo),ta.set(yo,!s.selection.isEditable())}),ft=kr=>({getComponent:x(kr)}),gt=xi(v),At=fi("custom-number-input-events"),$t=(kr,yo,Xr)=>{const No=Be(we),Jo=Z.getNewValue(No,kr),ho=No.length-`${Jo}`.length,Ci=we.map(qi=>qi.element.dom.selectionStart-ho),mi=we.map(qi=>qi.element.dom.selectionEnd-ho);Z.onAction(Jo,Xr),we.each(qi=>{hi.setValue(qi,Jo),yo&&(Ci.each(Fi=>qi.element.dom.selectionStart=Fi),mi.each(Fi=>qi.element.dom.selectionEnd=Fi))})},on=(kr,yo)=>$t((Xr,No)=>Xr-No,kr,yo),yn=(kr,yo)=>$t((Xr,No)=>Xr+No,kr,yo),wn=kr=>Cr(kr.element).fold(I.none,yo=>(xd(yo),I.some(!0))),Mn=kr=>dy(kr.element)?(hr(kr.element).each(yo=>xd(yo)),I.some(!0)):I.none(),Xn=(kr,yo,Xr,No)=>{const Jo=xi(v),ho=F.shared.providers.translate(Xr),Ci=fi("altExecuting"),mi=Zw(s,"NodeChange SwitchMode",Fi=>{ta.set(Fi.getComponent(),!s.selection.isEditable())}),qi=Fi=>{ta.isDisabled(Fi)||kr(!0)};return Vd.sketch({dom:{tag:"button",attributes:{"aria-label":ho,"data-mce-name":yo},classes:No.concat(yo)},components:[n8(yo,F.shared.providers.icons)],buttonBehaviours:Bo([ta.config({}),Td.config(F.shared.providers.tooltips.getConfig({tooltipText:ho})),Ca(Ci,[nx({onSetup:mi,getApi:ft},Jo),Ih({getApi:ft},Jo),fo(Bp(),(Fi,Os)=>{(Os.event.raw.keyCode===RR.space()||Os.event.raw.keyCode===RR.enter())&&(ta.isDisabled(Fi)||kr(!1))}),fo(R0(),qi),fo(wm(),qi)])]),eventOrder:{[Bp()]:[Ci,"keying"],[R0()]:[Ci,"alloy.base.behaviour"],[wm()]:[Ci,"alloy.base.behaviour"],[zd()]:["alloy.base.behaviour",Ci,"tooltipping"],[fp()]:[Ci,"tooltipping"]}})},Br=qs(Xn(kr=>on(!1,kr),"minus","Decrease font size",[])),or=qs(Xn(kr=>yn(!1,kr),"plus","Increase font size",[])),Mr=qs({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[Nw.sketch({inputBehaviours:Bo([ta.config({}),Ca(At,[nx({onSetup:qe,getApi:ft},gt),Ih({getApi:ft},gt)]),Ca("input-update-display-text",[fo(Eg,(kr,yo)=>{hi.setValue(kr,yo.event.text)}),fo(ap(),kr=>{Z.onAction(hi.getValue(kr))}),fo(Zv(),kr=>{Z.onAction(hi.getValue(kr))})]),Li.config({mode:"special",onEnter:kr=>($t(R,!0,!0),I.some(!0)),onEscape:wn,onUp:kr=>(yn(!0,!1),I.some(!0)),onDown:kr=>(on(!0,!1),I.some(!0)),onLeft:(kr,yo)=>(yo.cut(),I.none()),onRight:(kr,yo)=>(yo.cut(),I.none())})])})],behaviours:Bo([oa.config({}),Li.config({mode:"special",onEnter:Mn,onSpace:Mn,onEscape:wn}),Ca("input-wrapper-events",[fo(Om(),kr=>{q([Br,or],yo=>{const Xr=Pt.fromDom(yo.get(kr).element.dom);dy(Xr)&&a0(Xr)})})])])});return{dom:{tag:"div",classes:["tox-number-input"],attributes:{...a(ue)?{"data-mce-name":ue}:{}}},components:[Br.asSpec(),Mr.asSpec(),or.asSpec()],behaviours:Bo([oa.config({}),Li.config({mode:"flow",focusInside:Wb.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:kr=>dy(kr.element)?I.none():(xd(kr.element),I.some(!0))})])}},EU="Font sizes",PU=x("Font size {0}"),LR="12pt",Ute={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},jte={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},Qte=(s,F)=>{const Z=Math.pow(10,F);return Math.round(s*Z)/Z},RU=(s,F)=>/[0-9.]+px$/.test(s)?Qte(parseInt(s,10)*72/96,F||0)+"pt":Ge(jte,s).getOr(s),Hte=s=>Ge(Ute,s).getOr(""),IR=s=>{const F=()=>{let gt=I.none();const At=ft.data,$t=s.queryCommandValue("FontSize");if($t)for(let on=3;gt.isNone()&&on>=0;on--){const yn=RU($t,on),wn=Hte(yn);gt=ce(At,Mn=>Mn.format===$t||Mn.format===yn||Mn.format===wn)}return{matchOpt:gt,size:$t}},Z=gt=>At=>At.exists($t=>$t.format===gt),ue=()=>{const{matchOpt:gt}=F();return gt},we=x(I.none),Be=gt=>()=>{s.undoManager.transact(()=>{s.focus(),s.execCommand("FontSize",!1,gt.format)})},qe=gt=>{const{matchOpt:At,size:$t}=F(),on=At.fold(x($t),yn=>yn.title);Ri(gt,Eg,{text:on}),lP(s,{value:on})},ft=SR(s,"font_size_formats",C4.Space);return{tooltip:sO(s,PU(),LR),text:I.some(LR),icon:I.none(),isSelectedFor:Z,getPreviewFor:we,getCurrentValue:ue,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},Zte=(s,F)=>Pk(s,F,IR(s),PU,"FontSizeTextUpdate","fontsize"),qte=s=>{var F;const Z={step:1};return(F={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[s])!==null&&F!==void 0?F:Z},Wte=16,Yte=s=>s>=0,Xte=s=>{const F=()=>s.queryCommandValue("FontSize");return{updateInputValue:ue=>Ri(ue,Eg,{text:F()}),onAction:(ue,we)=>s.execCommand("FontSize",!1,ue,{skip_focus:!we}),getNewValue:(ue,we)=>{U8(ue,["unsupportedLength","empty"]);const Be=F(),qe=U8(ue,["unsupportedLength","empty"]).or(U8(Be,["unsupportedLength","empty"])),ft=qe.map(yn=>yn.value).getOr(Wte),gt=e7(s),At=qe.map(yn=>yn.unit).filter(yn=>yn!=="").getOr(gt),$t=we(ft,qte(At).step),on=`${Yte($t)?$t:ft}${At}`;return on!==Be&&PF(s,{value:on}),on}}},Gte=(s,F)=>MU(s,F,Xte(s),"fontsizeinput"),Kte=(s,F)=>{const Z=T4(F,IR(s));s.ui.registry.addNestedMenuItem("fontsize",{text:EU,onSetup:Gh(s),getSubmenuItems:()=>Z.items.validateItems(Z.getStyleItems())})},LU="Formats",IU=s=>at(s)?"Formats":"Format {0}",DU=(s,F)=>{const Z="Formats",ue=qe=>()=>s.formatter.match(qe),we=qe=>()=>{const ft=s.formatter.get(qe);return ft!==void 0?I.some({tag:ft.length>0&&(ft[0].inline||ft[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(qe))}):I.none()},Be=qe=>{const ft=on=>_V(on)?ye(on.items,ft):wV(on)?[{title:on.title,format:on.format}]:[],gt=ye(z9(s),ft),$t=Rk(s,x(gt)).fold(x({title:Z,tooltipLabel:""}),on=>({title:on.title,tooltipLabel:on.title}));Ri(qe,Eg,{text:$t.title}),aX(s,{value:$t.tooltipLabel})};return{tooltip:sO(s,IU(""),""),text:I.some(Z),icon:I.none(),isSelectedFor:ue,getCurrentValue:I.none,getPreviewFor:we,onAction:LF(s),updateText:Be,shouldHide:nz(s),isInvalid:qe=>!s.formatter.canApply(qe.format),dataset:F}},Jte=(s,F)=>{const Z={type:"advanced",...F.styles};return Pk(s,F,DU(s,Z),IU,"StylesTextUpdate","styles")},ene=(s,F)=>{const Z={type:"advanced",...F.styles},ue=T4(F,DU(s,Z));s.ui.registry.addNestedMenuItem("styles",{text:LU,onSetup:Gh(s),getSubmenuItems:()=>ue.items.validateItems(ue.getStyleItems())})},tne=x([Sn("toggleClass"),Sn("fetch"),Zh("onExecute"),mr("getHotspot",I.some),mr("getAnchorOverrides",x({})),l0(),Zh("onItemExecute"),Hr("lazySink"),Sn("dom"),Ra("onOpen"),Pf("splitDropdownBehaviours",[lu,Li,oa]),mr("matchWidth",!1),mr("useMinWidth",!1),mr("eventOrder",{}),Hr("role"),Hr("listRole")].concat(EC())),nne=kd({factory:Vd,schema:[Sn("dom")],name:"arrow",defaults:()=>({buttonBehaviours:Bo([oa.revoke()])}),overrides:s=>({dom:{tag:"span",attributes:{role:"presentation"}},action:F=>{F.getSystem().getByUid(s.uid).each(Fp)},buttonBehaviours:Bo([za.config({toggleOnExecute:!1,toggleClass:s.toggleClass})])})}),rne=kd({factory:Vd,schema:[Sn("dom")],name:"button",defaults:()=>({buttonBehaviours:Bo([oa.revoke()])}),overrides:s=>({dom:{tag:"span",attributes:{role:"presentation"}},action:F=>{F.getSystem().getByUid(s.uid).each(Z=>{s.onExecute(Z,F)})}})}),BU=x([nne,rne,Jp({factory:{sketch:s=>({uid:s.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:s.text}})},schema:[Sn("text")],name:"aria-descriptor"}),Um({schema:[U0()],name:"menu",defaults:s=>({onExecute:(F,Z)=>{F.getSystem().getByUid(s.uid).each(ue=>{s.onItemExecute(ue,F,Z)})}})}),oN()]),one=(s,F,Z,ue)=>{const we=$t=>{as.getCurrent($t).each(on=>{ri.highlightFirst(on),Li.focusIn(on)})},Be=$t=>{yP(s,R,$t,ue,we,Xh.HighlightMenuAndItem).get(v)},qe=$t=>(Be($t),I.some(!0)),ft=$t=>{const on=Ph($t,s,"button");return Fp(on),I.some(!0)},gt={...pl([Ll(($t,on)=>{Fo($t,s,"aria-descriptor").each(wn=>{const Mn=fi("aria");fr(wn.element,"id",Mn),fr($t.element,"aria-describedby",Mn)})})]),...T6(I.some(Be))},At={repositionMenus:$t=>{za.isOn($t)&&_P($t)}};return{uid:s.uid,dom:s.dom,components:F,apis:At,eventOrder:{...s.eventOrder,[cp()]:["disabling","toggling","alloy.base.behaviour"]},events:gt,behaviours:Rf(s.splitDropdownBehaviours,[lu.config({others:{sandbox:$t=>{const on=Ph($t,s,"arrow");return xP(s,$t,{onOpen:()=>{za.on(on),za.on($t)},onClose:()=>{za.off(on),za.off($t)}})}}}),Li.config({mode:"special",onSpace:ft,onEnter:ft,onDown:qe}),oa.config({}),za.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:s.role.getOr("button"),"aria-haspopup":!0}}}},j8=ch({name:"SplitDropdown",configFields:tne(),partFields:BU(),factory:one,apis:{repositionMenus:(s,F)=>s.repositionMenus(F)}}),DR=s=>({isEnabled:()=>!ta.isDisabled(s),setEnabled:F=>ta.set(s,!F),setText:F=>Ri(s,Eg,{text:F}),setIcon:F=>Ri(s,F2,{icon:F})}),ine=s=>({setActive:F=>{za.set(s,F)},isActive:()=>za.isOn(s),isEnabled:()=>!ta.isDisabled(s),setEnabled:F=>ta.set(s,!F),setText:F=>Ri(s,Eg,{text:F}),setIcon:F=>Ri(s,F2,{icon:F})}),BR=(s,F)=>s.map(Z=>({"aria-label":F.translate(Z)})).getOr({}),zR=fi("focus-button"),FR=(s,F,Z,ue,we,Be)=>{const qe=F.map(gt=>qs(A$(gt,"tox-tbtn",we))),ft=s.map(gt=>qs(sx(gt,we.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(F.isSome()?["tox-tbtn--select"]:[]),attributes:{...BR(Z,we),...a(Be)?{"data-mce-name":Be}:{}}},components:jw([ft.map(gt=>gt.asSpec()),qe.map(gt=>gt.asSpec())]),eventOrder:{[Oh()]:["focusing","alloy.base.behaviour",ax],[zd()]:[ax,"toolbar-group-button-events"]},buttonBehaviours:Bo([s1.toolbarButton(we.isDisabled),df(),Ca(ax,[Ll((gt,At)=>s9(gt)),fo(Eg,(gt,At)=>{qe.bind($t=>$t.getOpt(gt)).each($t=>{da.set($t,[ro(we.translate(At.event.text))])})}),fo(F2,(gt,At)=>{ft.bind($t=>$t.getOpt(gt)).each($t=>{da.set($t,[sx(At.event.icon,we.icons)])})}),fo(Oh(),(gt,At)=>{At.event.prevent(),Sa(gt,zR)})])].concat(ue.getOr([])))}},ane=(s,F,Z,ue,we)=>{const Be=F.shared,qe=xi(v),ft={toolbarButtonBehaviours:[],getApi:DR,onSetup:s.onSetup},gt=[Ca("toolbar-group-button-events",[nx(ft,qe),Ih(ft,qe)])];return $2.sketch({lazySink:Be.getSink,fetch:()=>uh.nu(At=>{At(oe(Z(s.items),Mk))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:FR(s.icon,s.text,s.tooltip,I.some(gt),Be.providers,we),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:ue}}}})},zU=(s,F,Z,ue)=>{var we;const Be=xi(v),qe=FR(s.icon,s.text,s.tooltip,I.none(),Z,ue);return Vd.sketch({dom:qe.dom,components:qe.components,eventOrder:a9,buttonBehaviours:{...Bo([Ca("toolbar-button-events",[RK({onAction:s.onAction,getApi:F.getApi}),nx(F,Be),Ih(F,Be)]),...s.tooltip.map(ft=>Td.config(Z.tooltips.getConfig({tooltipText:Z.translate(ft)+s.shortcut.map(gt=>` (${vC(gt)})`).getOr("")}))).toArray(),s1.toolbarButton(()=>!s.enabled||Z.isDisabled()),df()].concat(F.toolbarButtonBehaviours)),[ax]:(we=qe.buttonBehaviours)===null||we===void 0?void 0:we[ax]}})},A4=(s,F,Z)=>FU(s,F,[],Z),FU=(s,F,Z,ue)=>zU(s,{toolbarButtonBehaviours:Z.length>0?[Ca("toolbarButtonWith",Z)]:[],getApi:DR,onSetup:s.onSetup},F,ue),sne=(s,F,Z)=>NU(s,F,[],Z),NU=(s,F,Z,ue)=>zU(s,{toolbarButtonBehaviours:[da.config({}),za.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(Z.length>0?[Ca("toolbarToggleButtonWith",Z)]:[]),getApi:ine,onSetup:s.onSetup},F,ue),lne=(s,F,Z)=>ue=>uh.nu(we=>F.fetch(we)).map(we=>I.from(o4(nl(pP(fi("menu-value"),we,Be=>{F.onItemAction(s(ue),Be)},F.columns,F.presets,r1.CLOSE_ON_EXECUTE,F.select.getOr(D),Z),{movement:AC(F.columns,F.presets),menuBehaviours:K3.unnamedEvents(F.columns!=="auto"?[]:[Ll((Be,qe)=>{pC(Be,4,L7(F.presets)).each(({numRows:ft,numColumns:gt})=>{Li.setGridSize(Be,ft,gt)})})])})))),cne=(s,F,Z)=>{const ue=xi(s.tooltip.getOr("")),we=ft=>({isEnabled:()=>!ta.isDisabled(ft),setEnabled:gt=>ta.set(ft,!gt),setIconFill:(gt,At)=>{aa(ft.element,`svg path[class="${gt}"], rect[class="${gt}"]`).each($t=>{fr($t,"fill",At)})},setActive:gt=>{fr(ft.element,"aria-pressed",gt),aa(ft.element,"span").each(At=>{ft.getSystem().getByDom(At).each($t=>za.set($t,gt))})},isActive:()=>aa(ft.element,"span").exists(gt=>ft.getSystem().getByDom(gt).exists(za.isOn)),setText:gt=>aa(ft.element,"span").each(At=>ft.getSystem().getByDom(At).each($t=>Ri($t,Eg,{text:gt}))),setIcon:gt=>aa(ft.element,"span").each(At=>ft.getSystem().getByDom(At).each($t=>Ri($t,F2,{icon:gt}))),setTooltip:gt=>{const At=F.providers.translate(gt);fr(ft.element,"aria-label",At),ue.set(gt)}}),Be=xi(v),qe={getApi:we,onSetup:s.onSetup};return j8.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...BR(s.tooltip,F.providers),...a(Z)?{"data-mce-name":Z}:{}}},onExecute:ft=>{const gt=we(ft);gt.isEnabled()&&s.onAction(gt)},onItemExecute:(ft,gt,At)=>{},splitDropdownBehaviours:Bo([s1.splitButton(F.providers.isDisabled),df(),Ca("split-dropdown-events",[Ll((ft,gt)=>s9(ft)),fo(zR,oa.focus),nx(qe,Be),Ih(qe,Be)]),u4.config({}),...s.tooltip.map(ft=>Td.config({...F.providers.tooltips.getConfig({tooltipText:F.providers.translate(ft),onShow:gt=>{if(ue.get()!==ft){const At=F.providers.translate(ue.get());Td.setComponents(gt,F.providers.tooltips.getComponents({tooltipText:At}))}}})})).toArray()]),eventOrder:{[zd()]:["alloy.base.behaviour","split-dropdown-events","tooltipping"],[fp()]:["split-dropdown-events","tooltipping"]},toggleClass:"tox-tbtn--enabled",lazySink:F.getSink,fetch:lne(we,s,F.providers),parts:{menu:N5(!1,s.columns,s.presets)},components:[j8.parts.button(FR(s.icon,s.text,I.none(),I.some([za.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),F.providers)),j8.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:Az("chevron-down",F.providers.icons)},buttonBehaviours:Bo([s1.splitButton(F.providers.isDisabled),df(),k7()])}),j8.parts["aria-descriptor"]({text:F.providers.translate("To open the popup, press Shift+Enter")})]})},une=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],Lk=(s,F)=>(Z,ue,we,Be)=>{const qe=s(Z).mapError(ft=>sn(ft)).getOrDie();return F(qe,ue,we,Be)},fne={button:Lk(i1,(s,F,Z,ue)=>A4(s,F.shared.providers,ue)),togglebutton:Lk(uC,(s,F,Z,ue)=>sne(s,F.shared.providers,ue)),menubutton:Lk($V,(s,F,Z,ue)=>gk(s,"tox-tbtn",F,I.none(),!1,ue)),splitbutton:Lk(VV,(s,F,Z,ue)=>cne(s,F.shared,ue)),grouptoolbarbutton:Lk(Tee,(s,F,Z,ue)=>{const we=Z.ui.registry.getAll().buttons,Be=ft=>Q8(Z,{buttons:we,toolbar:ft,allowToolbarGroups:!1},F,I.none()),qe={[s0]:F.shared.header.isPositionedAtTop()?Sg.TopToBottom:Sg.BottomToTop};switch(Dw(Z)){case Hm.floating:return ane(s,F,Be,qe,ue);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},NR=(s,F,Z,ue)=>Ge(fne,s.type).fold(()=>(console.error("skipping button defined by",s),I.none()),we=>I.some(we(s,F,Z,ue))),$U={styles:Jte,fontsize:Zte,fontsizeinput:Gte,fontfamily:PR,blocks:Rte,align:Pte},dne=s=>{const F=oe(une,Z=>{const ue=me(Z.items,we=>ht(s,we)||ht($U,we));return{name:Z.name,items:ue}});return me(F,Z=>Z.items.length>0)},VU=s=>{const F=s.split("|");return oe(F,Z=>({items:Z.trim().split(" ")}))},UU=s=>m(s,F=>ht(F,"name")&&ht(F,"items")),hne=s=>{const F=s.toolbar,Z=s.buttons;return F===!1?[]:F===void 0||F===!0?dne(Z):n(F)?VU(F):UU(F)?F:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},pne=(s,F,Z,ue,we,Be)=>Ge(F,Z.toLowerCase()).orThunk(()=>Be.bind(qe=>Oe(qe,ft=>Ge(F,ft+Z.toLowerCase())))).fold(()=>Ge($U,Z.toLowerCase()).map(qe=>qe(s,we)),qe=>qe.type==="grouptoolbarbutton"&&!ue?(console.warn(`Ignoring the '${Z}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),I.none()):NR(qe,we,s,Z.toLowerCase())),Q8=(s,F,Z,ue)=>{const we=hne(F),Be=oe(we,qe=>{const ft=ye(qe.items,gt=>gt.trim().length===0?[]:pne(s,F.buttons,gt,F.allowToolbarGroups,Z,ue).toArray());return{title:I.from(s.translate(qe.name)),items:ft}});return me(Be,qe=>qe.items.length>0)},jU=(s,F,Z,ue)=>{const we=F.mainUi.outerContainer,Be=Z.toolbar,qe=Z.buttons;if(m(Be,n)){const ft=Be.map(gt=>{const At={toolbar:gt,buttons:qe,allowToolbarGroups:Z.allowToolbarGroups};return Q8(s,At,ue,I.none())});Yl.setToolbars(we,ft)}else Yl.setToolbar(we,Q8(s,Z,ue,I.none()))},QU=rf(),mne=QU.os.isiOS()&&QU.os.version.major<=12,HU=(s,F)=>{const{uiMotherships:Z}=F,ue=s.dom;let we=s.getWin();const Be=s.getDoc().documentElement,qe=xi(Ws(we.innerWidth,we.innerHeight)),ft=xi(Ws(Be.offsetWidth,Be.offsetHeight)),gt=()=>{const yn=qe.get();(yn.left!==we.innerWidth||yn.top!==we.innerHeight)&&(qe.set(Ws(we.innerWidth,we.innerHeight)),e4(s))},At=()=>{const yn=s.getDoc().documentElement,wn=ft.get();(wn.left!==yn.offsetWidth||wn.top!==yn.offsetHeight)&&(ft.set(Ws(yn.offsetWidth,yn.offsetHeight)),e4(s))},$t=yn=>{MF(s,yn)};ue.bind(we,"resize",gt),ue.bind(we,"scroll",$t);const on=Kx(Pt.fromDom(s.getBody()),"load",At);s.on("hide",()=>{q(Z,yn=>{ko(yn.element,"display","none")})}),s.on("show",()=>{q(Z,yn=>{ga(yn.element,"display")})}),s.on("NodeChange",At),s.on("remove",()=>{on.unbind(),ue.unbind(we,"resize",gt),ue.unbind(we,"scroll",$t),we=null})},gne=(s,F,Z)=>{C2(s)&&G0(Z.mainUi.mothership.element,Z.popupUi.mothership),qT(F,Z.dialogUi.mothership)};var vne=Object.freeze({__proto__:null,render:(s,F,Z,ue,we)=>{const{mainUi:Be,uiMotherships:qe}=F,ft=xi(0),gt=Be.outerContainer;Tte(s);const At=Pt.fromDom(we.targetNode),$t=nr(vr(At));G0(At,Be.mothership),gne(s,$t,F),s.on("SkinLoaded",()=>{Yl.setSidebar(gt,Z.sidebar,dz(s)),jU(s,F,Z,ue),ft.set(s.getWin().innerWidth),Yl.setMenubar(gt,V8(s,Z)),Yl.setViews(gt,Z.views),HU(s,F)});const on=Yl.getSocket(gt).getOrDie("Could not find expected socket element");if(mne){ra(on.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const Xn=wK(()=>{s.dispatch("ScrollContent")},20),Br=wd(on.element,"scroll",Xn.throttle);s.on("remove",Br.unbind)}mC(s,F),s.addCommand("ToggleSidebar",(Xn,Br)=>{Yl.toggleSidebar(gt,Br),s.dispatch("ToggleSidebar")}),s.addQueryValueHandler("ToggleSidebar",()=>{var Xn;return(Xn=Yl.whichSidebar(gt))!==null&&Xn!==void 0?Xn:""}),s.addCommand("ToggleView",(Xn,Br)=>{if(Yl.toggleView(gt,Br)){const or=gt.element;Be.mothership.broadcastOn([K0()],{target:or}),q(qe,Mr=>{Mr.broadcastOn([K0()],{target:or})}),O(Yl.whichView(gt))&&(s.focus(),s.nodeChanged(),Yl.refreshToolbar(gt))}}),s.addQueryValueHandler("ToggleView",()=>{var Xn;return(Xn=Yl.whichView(gt))!==null&&Xn!==void 0?Xn:""});const yn=Dw(s),wn=()=>{Yl.refreshToolbar(F.mainUi.outerContainer)};(yn===Hm.sliding||yn===Hm.floating)&&s.on("ResizeWindow ResizeEditor ResizeContent",()=>{const Xn=s.getWin().innerWidth;Xn!==ft.get()&&(wn(),ft.set(Xn))});const Mn={setEnabled:Xn=>{W5(F,!Xn)},isEnabled:()=>!ta.isDisabled(gt)};return{iframeContainer:on.element.dom,editorContainer:gt.element.dom,api:Mn}}});const ZU=s=>/^[0-9\.]+(|px)$/i.test(""+s)?I.some(parseInt(""+s,10)):I.none(),M4=s=>h(s)?s+"px":s,H8=(s,F,Z)=>{const ue=F.filter(Be=>ss>Be);return ue.or(we).getOr(s)},Z8=s=>{const F=YE(s),Z=E6(s),ue=XE(s);return ZU(F).map(we=>H8(we,Z,ue))},q8=s=>Z8(s).getOr(YE(s)),$R=s=>{const F=Iw(s),Z=Z3(s),ue=T5(s);return ZU(F).map(we=>H8(we,Z,ue))},yne=s=>$R(s).getOr(Iw(s)),{ToolbarLocation:VR,ToolbarMode:qU}=QW,bne=40,xne=(s,F,Z,ue,we)=>{const{mainUi:Be,uiMotherships:qe}=Z,ft=Lw.DOM,gt=q3(s),At=W3(s),$t=T5(s).or($R(s)),on=ue.shared.header,yn=on.isPositionedAtTop,wn=150,Mn=Dw(s),Xn=Mn===qU.sliding||Mn===qU.floating,Br=xi(!1),or=()=>Br.get()&&!s.removed,Mr=Ha=>Xn?Ha.fold(x(0),Ho=>Ho.components().length>1?Ql(Ho.components()[1].element):0):0,kr=Ha=>{switch(KE(s)){case VR.auto:const Ho=Yl.getToolbar(Be.outerContainer),wi=Mr(Ho),_a=Ql(Ha.element)-wi,Ki=Ya(F);if(Ki.y>_a)return"top";{const va=Pn(F),Cl=Math.max(va.dom.scrollHeight,Ql(va));return Ki.bottom{we.on(Ho=>{Dl.setModes(Ho,[Ha]),on.setDockingMode(Ha);const wi=yn()?Sg.TopToBottom:Sg.BottomToTop;fr(Ho.element,s0,wi)})},Xr=()=>{we.on(Ha=>{const Ho=$t.getOrThunk(()=>yh().width-Cu(F).left-10);ko(Ha.element,"max-width",Ho+"px")})},No=(Ha,Ho)=>{we.on(wi=>{const _a=Yl.getToolbar(Be.outerContainer),Ki=Mr(_a),ji=Ya(F),va=Jo(s,Be.outerContainer.element),Cl=()=>va.fold(()=>ji.x,dh=>{const Fg=Ya(dh);return so(dh,Vr())?ji.x:ji.x-Fg.x}),Ns=()=>va.fold(()=>yn()?Math.max(ji.y-Ql(wi.element)+Ki,0):ji.bottom,dh=>{var Fg;const w0=Ya(dh),im=(Fg=dh.dom.scrollTop)!==null&&Fg!==void 0?Fg:0,mO=so(dh,Vr())?Math.max(ji.y-Ql(wi.element)+Ki,0):ji.y-w0.y+im-Ql(wi.element)+Ki;return yn()?mO:ji.bottom}),zh=Cl(),zg=_t(Ha,Math.ceil(Be.outerContainer.element.dom.getBoundingClientRect().width)).filter(dh=>dh>wn).map(dh=>{const Fg=Ho.getOr(Hl()),w0=window.innerWidth-(zh-Fg.left),im=Math.max(Math.min(dh,w0),wn);return w0C2(Ha)?n0(Ho):I.none(),ho=()=>{q(qe,Ha=>{Ha.broadcastOn([Qb()],{})})},Ci=()=>!gt&&(pc(Be.outerContainer.element).left+pu(Be.outerContainer.element)>=window.innerWidth-bne||Na(Be.outerContainer.element,"width").isSome())?(ko(Be.outerContainer.element,"position","absolute"),ko(Be.outerContainer.element,"left","0px"),ga(Be.outerContainer.element,"width"),!0):!1,mi=Ha=>{if(!or())return;gt||Xr();const Ho=Hl(),wi=gt?!1:Ci();if(Xn&&Yl.refreshToolbar(Be.outerContainer),!gt){const _a=Hl(),Ki=_t(Ho.left!==_a.left,Ho);No(wi,Ki),Ki.each(ji=>{Cs(ji.left,_a.top)})}At&&we.on(Ha),ho()},qi=()=>gt||!At||!or()?!1:we.get().exists(Ha=>{const Ho=on.getDockingMode(),wi=kr(Ha);return wi!==Ho?(yo(wi),!0):!1});return{isVisible:or,isPositionedAtTop:yn,show:()=>{Br.set(!0),ko(Be.outerContainer.element,"display","flex"),ft.addClass(s.getBody(),"mce-edit-focus"),q(qe,Ha=>{ga(Ha.element,"display")}),qi(),C2(s)?mi(Ha=>Dl.isDocked(Ha)?Dl.reset(Ha):Dl.refresh(Ha)):mi(Dl.refresh)},hide:()=>{Br.set(!1),ko(Be.outerContainer.element,"display","none"),ft.removeClass(s.getBody(),"mce-edit-focus"),q(qe,Ha=>{ko(Ha.element,"display","none")})},update:mi,updateMode:()=>{qi()&&mi(Dl.reset)},repositionPopups:ho}},Ik=(s,F)=>{const Z=Ya(s);return{pos:F?Z.y:Z.bottom,bounds:Z}},WU=(s,F,Z,ue)=>{const we=xi(Ik(F,Z.isPositionedAtTop())),Be=At=>{const{pos:$t,bounds:on}=Ik(F,Z.isPositionedAtTop()),{pos:yn,bounds:wn}=we.get(),Mn=on.height!==wn.height||on.width!==wn.width;we.set({pos:$t,bounds:on}),Mn&&e4(s,At),Z.isVisible()&&(yn!==$t?Z.update(Dl.reset):Mn&&(Z.updateMode(),Z.repositionPopups()))};ue||(s.on("activate",Z.show),s.on("deactivate",Z.hide)),s.on("SkinLoaded ResizeWindow",()=>Z.update(Dl.reset)),s.on("NodeChange keydown",At=>{requestAnimationFrame(()=>Be(At))});let qe=0;const ft=dk(()=>Z.update(Dl.refresh),33);s.on("ScrollWindow",()=>{const At=Hl().left;At!==qe&&(qe=At,ft.throttle()),Z.updateMode()}),C2(s)&&s.on("ElementScroll",At=>{Z.update(Dl.refresh)});const gt=js();gt.set(Kx(Pt.fromDom(s.getBody()),"load",At=>Be(At.raw))),s.on("remove",()=>{gt.clear()})};var YU=Object.freeze({__proto__:null,render:(s,F,Z,ue,we)=>{const{mainUi:Be}=F,qe=os(),ft=Pt.fromDom(we.targetNode),gt=xne(s,ft,F,ue,qe),At=oz(s);Cte(s);const $t=()=>{if(qe.isSet()){gt.show();return}qe.set(Yl.getHeader(Be.outerContainer).getOrDie());const yn=A5(s);C2(s)?(G0(ft,Be.mothership),G0(ft,F.popupUi.mothership)):qT(yn,Be.mothership),qT(yn,F.dialogUi.mothership);const wn=()=>{jU(s,F,Z,ue),Yl.setMenubar(Be.outerContainer,V8(s,Z)),gt.show(),WU(s,ft,gt,At),s.nodeChanged()};At?s.once("SkinLoaded",wn):wn()};s.on("show",$t),s.on("hide",gt.hide),At||(s.on("focus",$t),s.on("blur",gt.hide)),s.on("init",()=>{(s.hasFocus()||At)&&$t()}),mC(s,F);const on={show:$t,hide:gt.hide,setEnabled:yn=>{W5(F,!yn)},isEnabled:()=>!ta.isDisabled(Be.outerContainer)};return{editorContainer:Be.outerContainer.element.dom,api:on}}});const XU=()=>{const s=os(),F=os(),Z=os();return{dialogUi:s,popupUi:F,mainUi:Z,getUiMotherships:()=>{const Be=s.get().map(ft=>ft.mothership),qe=F.get().map(ft=>ft.mothership);return Be.fold(()=>qe.toArray(),ft=>qe.fold(()=>[ft],gt=>so(ft.element,gt.element)?[ft]:[ft,gt]))},lazyGetInOuterOrDie:(Be,qe)=>()=>Z.get().bind(ft=>qe(ft.outerContainer)).getOrDie(`Could not find ${Be} element in OuterContainer`)}},wne="contexttoolbar-show",UR="contexttoolbar-hide",One=s=>({hide:()=>Sa(s,L0()),getValue:()=>hi.getValue(s)}),GU=(s,F)=>fo(t8,(Z,ue)=>{const we=s.get(Z),Be=One(we);F.onAction(Be,ue.event.buttonApi)}),Sne=(s,F,Z)=>{const{primary:ue,...we}=F.original,Be=Nt(i1({...we,type:"button",onAction:v}));return FU(Be,Z,[GU(s,F)])},kne=(s,F,Z)=>{const{primary:ue,...we}=F.original,Be=Nt(uC({...we,type:"togglebutton",onAction:v}));return NU(Be,Z,[GU(s,F)])},Tne=s=>s.type==="contextformtogglebutton",Dk=(s,F,Z)=>Tne(F)?kne(s,F,Z):Sne(s,F,Z),Cne=(s,F,Z)=>{const ue=oe(F,qe=>qs(Dk(s,qe,Z)));return{asSpecs:()=>oe(ue,qe=>qe.asSpec()),findPrimary:qe=>Oe(F,(ft,gt)=>ft.primary?I.from(ue[gt]).bind(At=>At.getOpt(qe)).filter(E(ta.isDisabled)):I.none())}},KU=(s,F)=>{const Z=s.label.fold(()=>({}),Be=>({"aria-label":Be})),ue=qs(Nw.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:s.initValue(),inputAttributes:Z,selectOnFocus:!0,inputBehaviours:Bo([Li.config({mode:"special",onEnter:Be=>we.findPrimary(Be).map(qe=>(Fp(qe),!0)),onLeft:(Be,qe)=>(qe.cut(),I.none()),onRight:(Be,qe)=>(qe.cut(),I.none())})])})),we=Cne(ue,s.commands,F);return[{title:I.none(),items:[ue.asSpec()]},{title:I.none(),items:we.asSpecs()}]},JU={renderContextForm:(s,F,Z)=>z8({type:s,uid:fi("context-toolbar"),initGroups:KU(F,Z),onEscape:I.none,cyclicKeying:!0,providers:Z}),buildInitGroups:KU},ej=(s,F,Z)=>F.bottom-s.y>=Z&&s.bottom-F.y>=Z,tj=s=>{const F=s.getBoundingClientRect();if(F.height<=0&&F.width<=0){const Z=zn(Pt.fromDom(s.startContainer),s.startOffset).element;return(_r(Z)?br(Z):I.some(Z)).filter(Kn).map(we=>we.dom.getBoundingClientRect()).getOr(F)}else return F},jR=s=>{const F=s.selection.getRng(),Z=tj(F);if(s.inline){const ue=Hl();return ms(ue.left+Z.left,ue.top+Z.top,Z.width,Z.height)}else{const ue=_l(Pt.fromDom(s.getBody()));return ms(ue.x+Z.left,ue.y+Z.top,Z.width,Z.height)}},Ane=(s,F)=>F.filter(Z=>Er(Z)&&Wn(Z)).map(_l).getOrThunk(()=>jR(s)),Mne=(s,F,Z)=>{const ue=Math.max(s.x+Z,F.x),we=Math.min(s.right-Z,F.right);return{x:ue,width:we-ue}},Ene=(s,F,Z,ue,we,Be)=>{const qe=Pt.fromDom(s.getContainer()),ft=aa(qe,".tox-editor-header").getOr(qe),gt=Ya(ft),At=gt.y>=F.bottom,$t=ue&&!At;if(s.inline&&$t)return{y:Math.max(gt.bottom+Be,Z.y),bottom:Z.bottom};if(s.inline&&!$t)return{y:Z.y,bottom:Math.min(gt.y-Be,Z.bottom)};const on=we==="line"?Ya(qe):F;return $t?{y:Math.max(gt.bottom+Be,Z.y),bottom:Math.min(on.bottom-Be,Z.bottom)}:{y:Math.max(on.y+Be,Z.y),bottom:Math.min(gt.y-Be,Z.bottom)}},nj=(s,F,Z,ue=0)=>{const we=yh(window),Be=Ya(Pt.fromDom(s.getContentAreaContainer())),qe=z6(s)||N6(s)||Bw(s),{x:ft,width:gt}=Mne(Be,we,ue);if(s.inline&&!qe)return ms(ft,we.y,gt,we.height);{const At=F.header.isPositionedAtTop(),{y:$t,bottom:on}=Ene(s,Be,we,At,Z,ue);return ms(ft,$t,gt,on-$t)}},V2=12,QR={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},rj={maxHeightFunction:W0(),maxWidthFunction:cR()},Pne=(s,F)=>{const Z=s.selection.getRng(),ue=zn(Pt.fromDom(Z.startContainer),Z.startOffset);return Z.startContainer===Z.endContainer&&Z.startOffset===Z.endOffset-1&&so(ue.element,F)},oj=(s,F,Z)=>{const ue=Na(s,"position");ko(s,"position",F);const we=Z(s);return ue.each(Be=>ko(s,"position",Be)),we},W8=s=>s==="node",ij=(s,F,Z,ue,we)=>{const Be=jR(s),qe=ue.lastElement().exists(ft=>so(Z,ft));if(Pne(s,Z))return qe?I9:f1;if(qe)return oj(F,ue.getMode(),()=>ej(Be,Ya(F),-20)&&!ue.isReposition()?DJ:I9);{const ft=ue.getMode()==="fixed"?we.y+Hl().top:we.y,gt=Ql(F)+V2;return ft+gt<=Be.y?f1:xk}},aj=(s,F,Z,ue)=>{const we=gt=>(At,$t,on,yn,wn)=>{const Mn=ij(s,yn,gt,Z,wn),Xn={...At,y:wn.y,height:wn.height};return{...Mn(Xn,$t,on,yn,wn),alwaysFit:!0}},Be=gt=>W8(ue)?[we(gt)]:[];return F?{onLtr:gt=>[Pc,Ec,Qc,Hc,_s,Jc].concat(Be(gt)),onRtl:gt=>[Pc,Qc,Ec,_s,Hc,Jc].concat(Be(gt))}:{onLtr:gt=>[Jc,Pc,Hc,Ec,_s,Qc].concat(Be(gt)),onRtl:gt=>[Jc,Pc,_s,Qc,Hc,Ec].concat(Be(gt))}},Rne=(s,F,Z,ue)=>F==="line"?{bubble:pp(V2,0,QR),layouts:{onLtr:()=>[W1],onRtl:()=>[uy]},overrides:rj}:{bubble:pp(0,V2,QR,1/V2),layouts:aj(s,Z,ue,F),overrides:rj},U2=(s,F)=>{const Z=me(F,Be=>Be.predicate(s.dom)),{pass:ue,fail:we}=ee(Z,Be=>Be.type==="contexttoolbar");return{contextToolbars:ue,contextForms:we}},Y8=s=>{if(s.length<=1)return s;{const F=Be=>te(s,qe=>qe.position===Be),Z=Be=>me(s,qe=>qe.position===Be),ue=F("selection"),we=F("node");if(ue||we)if(we&&ue){const Be=Z("node"),qe=oe(Z("selection"),ft=>({...ft,position:"node"}));return Be.concat(qe)}else return Z(ue?"selection":"node");else return Z("line")}},X8=s=>{if(s.length<=1)return s;{const F=ue=>ce(s,we=>we.position===ue);return F("selection").orThunk(()=>F("node")).orThunk(()=>F("line")).map(ue=>ue.position).fold(()=>[],ue=>me(s,we=>we.position===ue))}},HR=(s,F,Z)=>{const ue=U2(s,F);if(ue.contextForms.length>0)return I.some({elem:s,toolbars:[ue.contextForms[0]]});{const we=U2(s,Z);if(we.contextForms.length>0)return I.some({elem:s,toolbars:[we.contextForms[0]]});if(ue.contextToolbars.length>0||we.contextToolbars.length>0){const Be=Y8(ue.contextToolbars.concat(we.contextToolbars));return I.some({elem:s,toolbars:Be})}else return I.none()}},ZR=(s,F,Z)=>s(F)?I.none():cg(F,ue=>{if(Kn(ue)){const{contextToolbars:we,contextForms:Be}=U2(ue,Z.inNodeScope),qe=Be.length>0?Be:X8(we);return qe.length>0?I.some({elem:ue,toolbars:qe}):I.none()}else return I.none()},s),sj=(s,F)=>{const Z=Pt.fromDom(F.getBody()),ue=qe=>so(qe,Z),we=qe=>!ue(qe)&&!So(Z,qe),Be=Pt.fromDom(F.selection.getNode());return we(Be)?I.none():HR(Be,s.inNodeScope,s.inEditorScope).orThunk(()=>ZR(ue,Be,s))},G8=(s,F)=>{const Z={},ue=[],we=[],Be={},qe={},ft=($t,on)=>{const yn=Nt(DY(on));Z[$t]=yn,yn.launch.map(wn=>{Be["form:"+$t]={...on.launch,type:wn.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{F(yn)}}}),yn.scope==="editor"?we.push(yn):ue.push(yn),qe[$t]=yn},gt=($t,on)=>{h0(on).each(yn=>{on.scope==="editor"?we.push(yn):ue.push(yn),qe[$t]=yn})},At=ke(s);return q(At,$t=>{const on=s[$t];on.type==="contextform"?ft($t,on):on.type==="contexttoolbar"&>($t,on)}),{forms:Z,inNodeScope:ue,inEditorScope:we,lookupTable:qe,formNavigators:Be}},qR=fi("forward-slide"),WR=fi("backward-slide"),Bk=fi("change-slide-event"),YR="tox-pop--resizing",lj=s=>{const F=xi([]);return hc.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:Z=>{F.set([]),hc.getContent(Z).each(ue=>{ga(ue.element,"visibility")}),fc(Z.element,YR),ga(Z.element,"width")},inlineBehaviours:Bo([Ca("context-toolbar-events",[Wv(sp(),(Z,ue)=>{ue.event.raw.propertyName==="width"&&(fc(Z.element,YR),ga(Z.element,"width"))}),fo(Bk,(Z,ue)=>{const we=Z.element;ga(we,"width");const Be=cc(we);hc.setContent(Z,ue.event.contents),Sl(we,YR);const qe=cc(we);ko(we,"width",Be+"px"),hc.getContent(Z).each(ft=>{ue.event.focus.bind(gt=>(xd(gt),_d(we))).orThunk(()=>(Li.focusIn(ft),hp(vr(we))))}),setTimeout(()=>{ko(Z.element,"width",qe+"px")},0)}),fo(qR,(Z,ue)=>{hc.getContent(Z).each(we=>{F.set(F.get().concat([{bar:we,focus:hp(vr(Z.element))}]))}),Ri(Z,Bk,{contents:ue.event.forwardContents,focus:I.none()})}),fo(WR,(Z,ue)=>{Ve(F.get()).each(we=>{F.set(F.get().slice(0,F.get().length-1)),Ri(Z,Bk,{contents:na(we.bar),focus:we.focus})})})]),Li.config({mode:"special",onEscape:Z=>Ve(F.get()).fold(()=>s.onEscape(),ue=>(Sa(Z,WR),I.some(!0)))})]),lazySink:()=>Hi.value(s.sink)})},XR="tox-pop--transition",Lne=(s,F,Z,ue)=>{const we=ue.backstage,Be=we.shared,qe=rf().deviceType.isTouch,ft=os(),gt=os(),At=os(),$t=vi(lj({sink:Z,onEscape:()=>(s.focus(),I.some(!0))})),on=()=>{const mi=At.get().getOr("node"),qi=W8(mi)?1:0;return nj(s,Be,mi,qi)},yn=()=>!s.removed&&!(qe()&&we.isContextMenuOpen()),wn=mi=>wt(en(mi,ft.get(),so),!0),Mn=()=>{if(yn()){const mi=on(),qi=wt(At.get(),"node")?Ane(s,ft.get()):jR(s);return mi.height<=0||!ej(qi,mi,.01)}else return!0},Xn=()=>{ft.clear(),gt.clear(),At.clear(),hc.hide($t)},Br=()=>{if(hc.isOpen($t)){const mi=$t.element;ga(mi,"display"),Mn()?ko(mi,"display","none"):(gt.set(0),hc.reposition($t))}},or=mi=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[mi],behaviours:Bo([Li.config({mode:"acyclic"}),Ca("pop-dialog-wrap-events",[Ll(qi=>{s.shortcuts.add("ctrl+F9","focus statusbar",()=>Li.focusIn(qi))}),Sh(qi=>{s.shortcuts.remove("ctrl+F9")})])])}),Mr=iu(()=>G8(F,mi=>{const qi=Xr([mi]);Ri($t,qR,{forwardContents:or(qi)})})),kr=(mi,qi)=>Q8(s,{buttons:mi,toolbar:qi.items,allowToolbarGroups:!1},ue.backstage,I.some(["form:"])),yo=(mi,qi)=>JU.buildInitGroups(mi,qi),Xr=mi=>{const{buttons:qi}=s.ui.registry.getAll(),Fi=Mr(),Os={...qi,...Fi.formNavigators},vs=Dw(s)===Hm.scrolling?Hm.scrolling:Hm.default,Ha=ve(oe(mi,Ho=>Ho.type==="contexttoolbar"?kr(Os,Ho):yo(Ho,Be.providers)));return z8({type:vs,uid:fi("context-toolbar"),initGroups:Ha,onEscape:I.none,cyclicKeying:!0,providers:Be.providers})},No=(mi,qi)=>{const Fi=mi==="node"?Be.anchors.node(qi):Be.anchors.cursor(),Os=Rne(s,mi,qe(),{lastElement:ft.get,isReposition:()=>wt(gt.get(),0),getMode:()=>ed.getMode(Z)});return nl(Fi,Os)},Jo=(mi,qi)=>{if(Ci.cancel(),!yn())return;const Fi=Xr(mi),Os=mi[0].position,vs=No(Os,qi);At.set(Os),gt.set(1);const Ha=$t.element;ga(Ha,"display"),wn(qi)||(fc(Ha,XR),ed.reset(Z,$t)),hc.showWithinBounds($t,or(Fi),{anchor:vs,transition:{classes:[XR],mode:"placement"}},()=>I.some(on())),qi.fold(ft.clear,ft.set),Mn()&&ko(Ha,"display","none")};let ho=!1;const Ci=dk(()=>{if(!(!s.hasFocus()||s.removed||ho))if($l($t.element,XR))Ci.throttle();else{const mi=Mr();sj(mi,s).fold(Xn,qi=>{Jo(qi.toolbars,I.some(qi.elem))})}},17);s.on("init",()=>{s.on("remove",Xn),s.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",Br),s.on("click keyup focus SetContent",Ci.throttle),s.on(UR,Xn),s.on(wne,mi=>{const qi=Mr();Ge(qi.lookupTable,mi.toolbarKey).each(Fi=>{Jo([Fi],_t(mi.target!==s,mi.target)),hc.getContent($t).each(Li.focusIn)})}),s.on("focusout",mi=>{S5.setEditorTimeout(s,()=>{_d(Z.element).isNone()&&_d($t.element).isNone()&&Xn()},0)}),s.on("SwitchMode",()=>{s.mode.isReadOnly()&&Xn()}),s.on("ExecCommand",({command:mi})=>{mi.toLowerCase()==="toggleview"&&Xn()}),s.on("AfterProgressState",mi=>{mi.state?Xn():s.hasFocus()&&Ci.throttle()}),s.on("dragstart",()=>{ho=!0}),s.on("dragend drop",()=>{ho=!1}),s.on("NodeChange",mi=>{_d($t.element).fold(Ci.throttle,v)})})},K8=s=>{q([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],Z=>{s.ui.registry.addToggleButton(Z.name,{tooltip:Z.text,icon:Z.icon,onAction:Wm(s,Z.cmd),onSetup:OC(s,Z.name)})}),s.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:Gh(s),onAction:Wm(s,"JustifyNone")})},GR=(s,F)=>{const Z=()=>{const ue=F.getOptions(s),we=F.getCurrent(s).map(F.hash),Be=os();return oe(ue,qe=>({type:"togglemenuitem",text:F.display(qe),onSetup:ft=>{const gt=$t=>{$t&&(Be.on(on=>on.setActive(!1)),Be.set(ft)),ft.setActive($t)};gt(wt(we,F.hash(qe)));const At=F.watcher(s,qe,gt);return()=>{Be.clear(),At()}},onAction:()=>F.setCurrent(s,qe)}))};s.ui.registry.addMenuButton(F.name,{tooltip:F.text,icon:F.icon,fetch:ue=>ue(Z()),onSetup:F.onToolbarSetup}),s.ui.registry.addNestedMenuItem(F.name,{type:"nestedmenuitem",text:F.text,getSubmenuItems:Z,onSetup:F.onMenuSetup})},Ine=s=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:a7,hash:F=>Vte(F,["fixed","relative","empty"]).getOr(F),display:R,watcher:(F,Z,ue)=>F.formatter.formatChanged("lineheight",ue,!1,{value:Z}).unbind,getCurrent:F=>I.from(F.queryCommandValue("LineHeight")),setCurrent:(F,Z)=>F.execCommand("LineHeight",!1,Z),onToolbarSetup:Gh(s),onMenuSetup:Gh(s)}),Dne=s=>I.from(P6(s)).map(Z=>({name:"language",text:"Language",icon:"language",getOptions:x(Z),hash:ue=>y(ue.customCode)?ue.code:`${ue.code}/${ue.customCode}`,display:ue=>ue.title,watcher:(ue,we,Be)=>{var qe;return ue.formatter.formatChanged("lang",Be,!1,{value:we.code,customValue:(qe=we.customCode)!==null&&qe!==void 0?qe:null}).unbind},getCurrent:ue=>{const we=Pt.fromDom(ue.selection.getNode());return E0(we,Be=>I.some(Be).filter(Kn).bind(qe=>co(qe,"lang").map(gt=>{const At=co(qe,"data-mce-lang").getOrUndefined();return{code:gt,customCode:At,title:""}})))},setCurrent:(ue,we)=>ue.execCommand("Lang",!1,we),onToolbarSetup:ue=>{const we=js();return ue.setActive(s.formatter.match("lang",{},void 0,!0)),we.set(s.formatter.formatChanged("lang",ue.setActive,!0)),t4(we.clear,Gh(s)(ue))},onMenuSetup:Gh(s)})),Bne=s=>{GR(s,Ine(s)),Dne(s).each(F=>GR(s,F))},zne=(s,F)=>{kU(s,F),zte(s,F),ene(s,F),Lte(s,F),Kte(s,F)},Fne=s=>Zw(s,"NodeChange",F=>{F.setEnabled(s.queryCommandState("outdent")&&s.selection.isEditable())}),cj=s=>{s.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:Fne(s),onAction:Wm(s,"outdent")}),s.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:Gh(s),onAction:Wm(s,"indent")})},uj=s=>{cj(s)},KR=(s,F)=>Z=>{Z.setActive(F.get());const ue=we=>{F.set(we.state),Z.setActive(we.state)};return s.on("PastePlainTextToggle",ue),t4(()=>s.off("PastePlainTextToggle",ue),Gh(s)(Z))},fj=s=>{const F=xi(B6(s)),Z=()=>s.execCommand("mceTogglePlainTextPaste");s.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:Z,onSetup:KR(s,F)}),s.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:Z,onSetup:KR(s,F)})},JR=(s,F)=>()=>{s.execCommand("mceToggleFormat",!1,F)},dj=s=>{ix.each([{name:"bold",text:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(F,Z)=>{s.ui.registry.addToggleButton(F.name,{tooltip:F.text,icon:F.icon,onSetup:OC(s,F.name),onAction:JR(s,F.name),shortcut:F.shortcut})});for(let F=1;F<=6;F++){const Z="h"+F,ue=`Access+${F}`;s.ui.registry.addToggleButton(Z,{text:Z.toUpperCase(),tooltip:"Heading "+F,onSetup:OC(s,Z),onAction:JR(s,Z),shortcut:ue})}},hj=s=>{ix.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help",shortcut:"Alt+0"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],F=>{s.ui.registry.addButton(F.name,{tooltip:F.text,icon:F.icon,onAction:Wm(s,F.action),shortcut:F.shortcut})}),ix.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],F=>{s.ui.registry.addButton(F.name,{tooltip:F.text,icon:F.icon,onSetup:Gh(s),onAction:Wm(s,F.action)})})},Nne=s=>{ix.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],F=>{s.ui.registry.addToggleButton(F.name,{tooltip:F.text,icon:F.icon,onAction:Wm(s,F.action),onSetup:OC(s,F.name)})})},Mfe=s=>{dj(s),hj(s),Nne(s)},$ne=s=>{ix.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],F=>{s.ui.registry.addMenuItem(F.name,{text:F.text,icon:F.icon,shortcut:F.shortcut,onAction:Wm(s,F.action)})}),ix.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],F=>{s.ui.registry.addMenuItem(F.name,{text:F.text,icon:F.icon,shortcut:F.shortcut,onSetup:Gh(s),onAction:Wm(s,F.action)})}),s.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:Gh(s),onAction:JR(s,"code")})},Vne=s=>{Mfe(s),$ne(s)},J8=(s,F)=>Zw(s,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",Z=>{Z.setEnabled(!s.mode.isReadOnly()&&s.undoManager[F]())}),Une=s=>{s.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:J8(s,"hasUndo"),onAction:Wm(s,"undo")}),s.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:J8(s,"hasRedo"),onAction:Wm(s,"redo")})},jne=s=>{s.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:J8(s,"hasUndo"),onAction:Wm(s,"undo"),shortcut:"Meta+Z"}),s.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:J8(s,"hasRedo"),onAction:Wm(s,"redo"),shortcut:"Meta+Y"})},Qne=s=>{Une(s),jne(s)},Hne=s=>Zw(s,"VisualAid",F=>{F.setActive(s.hasVisual)}),Zne=s=>{s.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:Hne(s),onAction:Wm(s,"mceToggleVisualAid")})},qne=s=>{s.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:Wm(s,"mceToggleVisualAid")})},Wne=s=>{qne(s),Zne(s)},Yne=(s,F)=>{K8(s),Vne(s),zne(s,F),Qne(s),xX(s),Wne(s),uj(s),Bne(s),fj(s)},Xne=s=>n(s)?s.split(/[ ,]/):s,pj=s=>F=>F.options.get(s),mj=s=>{const F=s.options.register;F("contextmenu_avoid_overlap",{processor:"string",default:""}),F("contextmenu_never_use_native",{processor:"boolean",default:!1}),F("contextmenu",{processor:Z=>Z===!1?{value:[],valid:!0}:n(Z)||m(Z,n)?{value:Xne(Z),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},gj=pj("contextmenu_never_use_native"),Gne=pj("contextmenu_avoid_overlap"),Kne=s=>vj(s).length===0,vj=s=>{const F=s.ui.registry.getAll().contextMenus,Z=s.options.get("contextmenu");return s.options.isSet("contextmenu")?Z:me(Z,ue=>ht(F,ue))},zk=(s,F)=>({type:"makeshift",x:s,y:F}),Jne=(s,F,Z)=>zk(s.x+F,s.y+Z),yj=s=>s.type==="longpress"||s.type.indexOf("touch")===0,ere=s=>{if(yj(s)){const F=s.touches[0];return zk(F.pageX,F.pageY)}else return zk(s.pageX,s.pageY)},tre=s=>{if(yj(s)){const F=s.touches[0];return zk(F.clientX,F.clientY)}else return zk(s.clientX,s.clientY)},eL=(s,F)=>{const Z=Lw.DOM.getPos(s);return Jne(F,Z.x,Z.y)},nre=(s,F)=>F.type==="contextmenu"||F.type==="longpress"?s.inline?ere(F):eL(s.getContentAreaContainer(),tre(F)):bj(s),bj=s=>({type:"selection",root:Pt.fromDom(s.selection.getNode())}),tL=s=>({type:"node",node:I.some(Pt.fromDom(s.selection.getNode())),root:Pt.fromDom(s.getBody())}),nL=(s,F,Z)=>{switch(Z){case"node":return tL(s);case"point":return nre(s,F);case"selection":return bj(s)}},xj=(s,F,Z,ue,we,Be)=>{const qe=Z(),ft=nL(s,F,Be);v4(qe,r1.CLOSE_ON_EXECUTE,ue,{isHorizontalMenu:!1,search:I.none()}).map(gt=>{F.preventDefault(),hc.showMenuAt(we,{anchor:ft},{menu:{markers:M2("normal")},data:gt})})},rre={onLtr:()=>[Pc,Ec,Qc,Hc,_s,Jc,f1,xk,bk,g8,yk,m8],onRtl:()=>[Pc,Qc,Ec,_s,Hc,Jc,f1,xk,yk,m8,bk,g8]},ore=12,ire={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},are=(s,F)=>{const Z=s.selection;if(Z.isCollapsed()||F.touches.length<1)return!1;{const ue=F.touches[0],we=Z.getRng();return Mf(s.getWin(),c2.domRange(we)).exists(qe=>qe.left<=ue.clientX&&qe.right>=ue.clientX&&qe.top<=ue.clientY&&qe.bottom>=ue.clientY)}},sre=s=>{const F=s.selection.getRng(),Z=()=>{S5.setEditorTimeout(s,()=>{s.selection.setRng(F)},10),Be()};s.once("touchend",Z);const ue=qe=>{qe.preventDefault(),qe.stopImmediatePropagation()};s.on("mousedown",ue,!0);const we=()=>Be();s.once("longpresscancel",we);const Be=()=>{s.off("touchend",Z),s.off("longpresscancel",we),s.off("mousedown",ue)}},rL=(s,F,Z)=>{const ue=nL(s,F,Z);return{bubble:pp(0,Z==="point"?ore:0,ire),layouts:rre,overrides:{maxWidthFunction:cR(),maxHeightFunction:W0()},...ue}},lre=(s,F,Z,ue,we,Be,qe)=>{const ft=rL(s,F,Be);v4(Z,r1.CLOSE_ON_EXECUTE,ue,{isHorizontalMenu:!0,search:I.none()}).map(gt=>{F.preventDefault();const At=qe?Xh.HighlightMenuAndItem:Xh.HighlightNone;hc.showMenuWithinBounds(we,{anchor:ft},{menu:{markers:M2("normal"),highlightOnOpen:At},data:gt,type:"horizontal"},()=>I.some(nj(s,ue.shared,Be==="node"?"node":"selection"))),s.dispatch(UR)})},_j=(s,F,Z,ue,we,Be)=>{const qe=rf(),ft=qe.os.isiOS(),gt=qe.os.isMacOS(),At=qe.os.isAndroid(),$t=qe.deviceType.isTouch(),on=()=>!(At||ft||gt&&$t),yn=()=>{const wn=Z();lre(s,F,wn,ue,we,Be,on())};if((gt||ft)&&Be!=="node"){const wn=()=>{sre(s),yn()};are(s,F)?wn():(s.once("selectionchange",wn),s.once("touchend",()=>s.off("selectionchange",wn)))}else yn()},wj=s=>n(s)?s==="|":s.type==="separator",oL={type:"separator"},eA=s=>{const F=Z=>({text:Z.text,icon:Z.icon,enabled:Z.enabled,shortcut:Z.shortcut});if(n(s))return s;switch(s.type){case"separator":return oL;case"submenu":return{type:"nestedmenuitem",...F(s),getSubmenuItems:()=>{const ue=s.getSubmenuItems();return n(ue)?ue:oe(ue,eA)}};default:const Z=s;return{type:"menuitem",...F(Z),onAction:_(Z.onAction)}}},Oj=(s,F)=>{if(F.length===0)return s;const ue=Ve(s).filter(we=>!wj(we)).fold(()=>[],we=>[oL]);return s.concat(ue).concat(F).concat([oL])},Sj=(s,F,Z)=>{const ue=se(F,(we,Be)=>Ge(s,Be.toLowerCase()).map(qe=>{const ft=qe.update(Z);if(n(ft)&&it(Rt(ft)))return Oj(we,ft.split(" "));if(i(ft)&&ft.length>0){const gt=oe(ft,eA);return Oj(we,gt)}else return we}).getOrThunk(()=>we.concat([Be])),[]);return ue.length>0&&wj(ue[ue.length-1])&&ue.pop(),ue},cre=(s,F)=>F.ctrlKey&&!gj(s),ure=s=>s.type==="longpress"||ht(s,"touches"),tA=(s,F)=>!ure(F)&&(F.button!==2||F.target===s.getBody()&&F.pointerType===""),kj=(s,F)=>tA(s,F)?s.selection.getStart(!0):F.target,fre=(s,F)=>{const Z=Gne(s),ue=tA(s,F)?"selection":"point";if(it(Z)){const we=kj(s,F);return ek(Pt.fromDom(we),Z)?"node":ue}else return ue},dre=(s,F,Z)=>{const we=rf().deviceType.isTouch,Be=vi(hc.sketch({dom:{tag:"div"},lazySink:F,onEscape:()=>s.focus(),onShow:()=>Z.setContextMenuState(!0),onHide:()=>Z.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:Bo([Ca("dismissContextMenu",[fo(I0(),(gt,At)=>{ps.close(gt),s.focus()})])])})),qe=()=>hc.hide(Be),ft=gt=>{if(gj(s)&>.preventDefault(),cre(s,gt)||Kne(s))return;const At=fre(s,gt),$t=()=>{const yn=kj(s,gt),wn=s.ui.registry.getAll(),Mn=vj(s);return Sj(wn.contextMenus,Mn,yn)};(we()?_j:xj)(s,gt,$t,Z,Be,At)};s.on("init",()=>{const gt="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(we()?"":" ResizeWindow");s.on(gt,qe),s.on("longpress contextmenu",ft)})},iL=Ds.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),nA=s=>F=>F.translate(-s.left,-s.top),Fk=s=>F=>F.translate(s.left,s.top),lx=s=>(F,Z)=>se(s,(ue,we)=>we(ue),Ws(F,Z)),rA=(s,F,Z)=>s.fold(lx([Fk(Z),nA(F)]),lx([nA(F)]),lx([])),E4=(s,F,Z)=>s.fold(lx([Fk(Z)]),lx([]),lx([Fk(F)])),Tj=(s,F,Z)=>s.fold(lx([]),lx([nA(Z)]),lx([Fk(F),nA(Z)])),hre=(s,F,Z,ue,we,Be)=>{const qe=E4(s,we,Be),ft=E4(F,we,Be);return Math.abs(qe.left-ft.left)<=Z&&Math.abs(qe.top-ft.top)<=ue},pre=(s,F,Z,ue,we,Be)=>{const qe=E4(s,we,Be),ft=E4(F,we,Be),gt=Math.abs(qe.left-ft.left),At=Math.abs(qe.top-ft.top);return Ws(gt,At)},Cj=(s,F,Z)=>{const ue=s.fold((we,Be)=>({position:I.some("absolute"),left:I.some(we+"px"),top:I.some(Be+"px")}),(we,Be)=>({position:I.some("absolute"),left:I.some(we-Z.left+"px"),top:I.some(Be-Z.top+"px")}),(we,Be)=>({position:I.some("fixed"),left:I.some(we+"px"),top:I.some(Be+"px")}));return{right:I.none(),bottom:I.none(),...ue}},mre=(s,F,Z)=>s.fold((ue,we)=>iA(ue+F,we+Z),(ue,we)=>cx(ue+F,we+Z),(ue,we)=>lO(ue+F,we+Z)),oA=(s,F,Z,ue)=>{const we=(Be,qe)=>(ft,gt)=>{const At=Be(F,Z,ue);return qe(ft.getOr(At.left),gt.getOr(At.top))};return s.fold(we(Tj,iA),we(E4,cx),we(rA,lO))},iA=iL.offset,cx=iL.absolute,lO=iL.fixed,Aj=(s,F)=>{const Z=ao(s,F);return y(Z)?NaN:parseInt(Z,10)},gre=(s,F)=>{const Z=s.element,ue=Aj(Z,F.leftAttr),we=Aj(Z,F.topAttr);return isNaN(ue)||isNaN(we)?I.none():I.some(Ws(ue,we))},cO=(s,F,Z)=>{const ue=s.element;fr(ue,F.leftAttr,Z.left+"px"),fr(ue,F.topAttr,Z.top+"px")},Mj=(s,F)=>{const Z=s.element;po(Z,F.leftAttr),po(Z,F.topAttr)},vre=(s,F,Z,ue)=>gre(s,F).fold(()=>Z,we=>lO(we.left+ue.left,we.top+ue.top)),yre=(s,F,Z,ue,we,Be)=>{const qe=vre(s,F,Z,ue),ft=F.mustSnap?Pj(s,F,qe,we,Be):xre(s,F,qe,we,Be),gt=rA(qe,we,Be);return cO(s,F,gt),ft.fold(()=>({coord:lO(gt.left,gt.top),extra:I.none()}),At=>({coord:At.output,extra:At.extra}))},bre=(s,F)=>{Mj(s,F)},Ej=(s,F,Z,ue)=>Oe(s,we=>{const Be=we.sensor;return hre(F,Be,we.range.left,we.range.top,Z,ue)?I.some({output:oA(we.output,F,Z,ue),extra:we.extra}):I.none()}),Pj=(s,F,Z,ue,we)=>{const Be=F.getSnapPoints(s);return Ej(Be,Z,ue,we).orThunk(()=>se(Be,(gt,At)=>{const $t=At.sensor,on=pre(Z,$t,At.range.left,At.range.top,ue,we);return gt.deltas.fold(()=>({deltas:I.some(on),snap:I.some(At)}),yn=>{const wn=(on.left+on.top)/2,Mn=(yn.left+yn.top)/2;return wn<=Mn?{deltas:I.some(on),snap:I.some(At)}:gt})},{deltas:I.none(),snap:I.none()}).snap.map(gt=>({output:oA(gt.output,Z,ue,we),extra:gt.extra})))},xre=(s,F,Z,ue,we)=>{const Be=F.getSnapPoints(s);return Ej(Be,Z,ue,we)},_re=(s,F,Z)=>({coord:oA(s.output,s.output,F,Z),extra:s.extra});var wre=Object.freeze({__proto__:null,snapTo:(s,F,Z,ue)=>{const we=F.getTarget(s.element);if(F.repositionTarget){const Be=go(s.element),qe=Hl(Be),ft=N_(we),gt=_re(ue,qe,ft),At=Cj(gt.coord,qe,ft);mo(we,At)}}});const aL="data-initial-z-index",Ore=s=>{br(s.element).filter(Kn).each(F=>{co(F,aL).fold(()=>ga(F,"z-index"),Z=>ko(F,"z-index",Z)),po(F,aL)})},Sre=s=>{br(s.element).filter(Kn).each(F=>{Na(F,"z-index").each(Z=>{fr(F,aL,Z)}),ko(F,"z-index",Aa(s.element,"z-index"))})},Rj=(s,F)=>{s.getSystem().addToGui(F),Sre(F)},kre=s=>{Ore(s),s.getSystem().removeFromGui(s)},Lj=(s,F,Z)=>s.getSystem().build(_v.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[F]},events:Z}));var Ij=Pi("snaps",[Sn("getSnapPoints"),Ra("onSensor"),Sn("leftAttr"),Sn("topAttr"),mr("lazyViewport",wl),mr("mustSnap",!1)]);const aA=[mr("useFixed",D),Sn("blockerClass"),mr("getTarget",R),mr("onDrag",v),mr("repositionTarget",!0),mr("onDrop",v),Pa("getBounds",wl),Ij],Tre=s=>Gt(Na(s,"left"),Na(s,"top"),Na(s,"position"),(F,Z,ue)=>(ue==="fixed"?lO:iA)(parseInt(F,10),parseInt(Z,10))).getOrThunk(()=>{const F=pc(s);return cx(F.left,F.top)}),Nk=(s,F,Z,ue,we)=>{const Be=we.bounds,qe=E4(F,Z,ue),ft=Mc(qe.left,Be.x,Be.x+Be.width-we.width),gt=Mc(qe.top,Be.y,Be.y+Be.height-we.height),At=cx(ft,gt);return F.fold(()=>{const $t=Tj(At,Z,ue);return iA($t.left,$t.top)},x(At),()=>{const $t=rA(At,Z,ue);return lO($t.left,$t.top)})},Cre=(s,F,Z,ue,we,Be,qe)=>{const ft=F.fold(()=>{const gt=mre(Z,Be.left,Be.top),At=rA(gt,ue,we);return lO(At.left,At.top)},gt=>{const At=yre(s,gt,Z,Be,ue,we);return At.extra.each($t=>{gt.onSensor(s,$t)}),At.coord});return Nk(s,ft,ue,we,qe)},Are=(s,F,Z,ue)=>{const we=F.getTarget(s.element);if(F.repositionTarget){const Be=go(s.element),qe=Hl(Be),ft=N_(we),gt=Tre(we),At=Cre(s,F.snaps,gt,qe,ft,ue,Z),$t=Cj(At,qe,ft);mo(we,$t)}F.onDrag(s,we,ue)},sA=(s,F)=>({bounds:s.getBounds(),height:Ed(F.element),width:pu(F.element)}),sL=(s,F,Z,ue,we)=>{const Be=Z.update(ue,we),qe=Z.getStartData().getOrThunk(()=>sA(F,s));Be.each(ft=>{Are(s,F,qe,ft)})},Dj=(s,F,Z,ue)=>{F.each(kre),Z.snaps.each(Be=>{bre(s,Be)});const we=Z.getTarget(s.element);ue.reset(),Z.onDrop(s,we)},lL=s=>(F,Z)=>{const ue=we=>{Z.setStartData(sA(F,we))};return pl([fo(T1(),we=>{Z.getStartData().each(()=>ue(we))}),...s(F,Z,ue)])},Mre=s=>pl([fo(Oh(),s.forceDrop),fo(Hv(),s.drop),fo(Ex(),(F,Z)=>{s.move(Z.event)}),fo(Tf(),s.delayDrop)]);var Ere=Object.freeze({__proto__:null,getData:s=>I.from(Ws(s.x,s.y)),getDelta:(s,F)=>Ws(F.left-s.left,F.top-s.top)});const Bj=(s,F,Z)=>[fo(Oh(),(ue,we)=>{if(we.event.raw.button!==0)return;we.stop();const qe=()=>Dj(ue,I.some(At),s,F),ft=cN(qe,200),gt={drop:qe,delayDrop:ft.schedule,forceDrop:qe,move:on=>{ft.cancel(),sL(ue,s,F,Ere,on)}},At=Lj(ue,s.blockerClass,Mre(gt));(()=>{Z(ue),Rj(ue,At)})()})],Pre=[...aA,Il("dragger",{handlers:lL(Bj)})],Rre=s=>pl([fo(_m(),s.forceDrop),fo(wm(),s.drop),fo(ub(),s.drop),fo(Yg(),(F,Z)=>{s.move(Z.event)})]),Lre=s=>{const F=s[0];return I.some(Ws(F.clientX,F.clientY))};var zj=Object.freeze({__proto__:null,getData:s=>{const Z=s.raw.touches;return Z.length===1?Lre(Z):I.none()},getDelta:(s,F)=>Ws(F.left-s.left,F.top-s.top)});const Fj=(s,F,Z)=>{const ue=os(),we=Be=>{Dj(Be,ue.get(),s,F),ue.clear()};return[fo(_m(),(Be,qe)=>{qe.stop();const ft=()=>we(Be),gt={drop:ft,delayDrop:v,forceDrop:ft,move:on=>{sL(Be,s,F,zj,on)}},At=Lj(Be,s.blockerClass,Rre(gt));ue.set(At),(()=>{Z(Be),Rj(Be,At)})()}),fo(Yg(),(Be,qe)=>{qe.stop(),sL(Be,s,F,zj,qe.event)}),fo(wm(),(Be,qe)=>{qe.stop(),we(Be)}),fo(ub(),we)]},Ire=[...aA,Il("dragger",{handlers:lL(Fj)})],Dre=(s,F,Z)=>[...Bj(s,F,Z),...Fj(s,F,Z)],lA=[...aA,Il("dragger",{handlers:lL(Dre)})];var Bre=Object.freeze({__proto__:null,mouse:Pre,touch:Ire,mouseOrTouch:lA}),zre=Object.freeze({__proto__:null,init:()=>{let s=I.none(),F=I.none();const Z=()=>{s=I.none(),F=I.none()},ue=(gt,At)=>{const $t=s.map(on=>gt.getDelta(on,At));return s=I.some(At),$t},we=(gt,At)=>gt.getData(At).bind($t=>ue(gt,$t)),Be=gt=>{F=I.some(gt)},qe=()=>F,ft=x({});return kh({readState:ft,reset:Z,update:we,getStartData:qe,setStartData:Be})}});const j2=gd({branchKey:"mode",branches:Bre,name:"dragging",active:{events:(s,F)=>s.dragger.handlers(s,F)},extra:{snap:s=>({sensor:s.sensor,range:s.range,output:s.output,extra:I.from(s.extra)})},state:zre,apis:wre}),cL=40,cA=cL/2,Nj=(s,F,Z,ue,we,Be)=>s.fold(()=>j2.snap({sensor:cx(Z-cA,ue-cA),range:Ws(we,Be),output:cx(I.some(Z),I.some(ue)),extra:{td:F}}),qe=>{const ft=Z-cA,gt=ue-cA,At=cL,$t=cL,on=qe.element.dom.getBoundingClientRect();return j2.snap({sensor:cx(ft,gt),range:Ws(At,$t),output:cx(I.some(Z-on.width/2),I.some(ue-on.height/2)),extra:{td:F}})}),$j=(s,F,Z)=>{const ue=(we,Be)=>we.exists(qe=>so(qe,Be));return{getSnapPoints:s,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(we,Be)=>{const qe=Be.td;ue(F.get(),qe)||(F.set(qe),Z(qe))},mustSnap:!0}},Vj=s=>qs(Vd.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:Bo([j2.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:s}),u4.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),uL=(s,F)=>{const Z=xi([]),ue=xi([]),we=xi(!1),Be=os(),qe=os(),ft=Jo=>{const ho=_l(Jo);return Nj(wn.getOpt(F),Jo,ho.x,ho.y,ho.width,ho.height)},gt=()=>oe(Z.get(),Jo=>ft(Jo)),At=Jo=>{const ho=_l(Jo);return Nj(Mn.getOpt(F),Jo,ho.right,ho.bottom,ho.width,ho.height)},$t=()=>oe(ue.get(),Jo=>At(Jo)),on=$j(gt,Be,Jo=>{qe.get().each(ho=>{s.dispatch("TableSelectorChange",{start:Jo,finish:ho})})}),yn=$j($t,qe,Jo=>{Be.get().each(ho=>{s.dispatch("TableSelectorChange",{start:ho,finish:Jo})})}),wn=Vj(on),Mn=Vj(yn),Xn=vi(wn.asSpec()),Br=vi(Mn.asSpec()),or=(Jo,ho,Ci,mi)=>{const qi=ho.dom.getBoundingClientRect();ga(Jo.element,"display");const Fi=Yn(Pt.fromDom(s.getBody())).dom.innerHeight,Os=Ci(qi),vs=mi(qi,Fi);(Os||vs)&&ko(Jo.element,"display","none")},Mr=(Jo,ho,Ci,mi)=>{const qi=Ci(ho);j2.snapTo(Jo,qi),or(Jo,ho,vs=>vs[mi]<0,(vs,Ha)=>vs[mi]>Ha)},kr=Jo=>Mr(Xn,Jo,ft,"top"),yo=()=>Be.get().each(kr),Xr=Jo=>Mr(Br,Jo,At,"bottom"),No=()=>qe.get().each(Xr);if(rf().deviceType.isTouch()){const Jo=ho=>oe(ho,Pt.fromDom);s.on("TableSelectionChange",ho=>{we.get()||(X0(F,Xn),X0(F,Br),we.set(!0));const Ci=Pt.fromDom(ho.start),mi=Pt.fromDom(ho.finish);Be.set(Ci),qe.set(mi),I.from(ho.otherCells).each(qi=>{Z.set(Jo(qi.upOrLeftCells)),ue.set(Jo(qi.downOrRightCells)),kr(Ci),Xr(mi)})}),s.on("ResizeEditor ResizeWindow ScrollContent",()=>{yo(),No()}),s.on("TableSelectionClear",()=>{we.get()&&(fv(Xn),fv(Br),we.set(!1)),Be.clear(),qe.clear()})}};var Uj=` +`;const Fre=(s,F)=>{const Z=I.from(ao(s,"id")).getOrThunk(()=>{const ue=fi("aria");return fr(F,"id",ue),ue});fr(s,"aria-describedby",Z)},Nre=s=>{po(s,"aria-describedby")},$re=s=>s.nodeName==="BR"||!!s.getAttribute("data-mce-bogus")||s.getAttribute("data-mce-type")==="bookmark",Vre=(s,F,Z)=>{var ue;const we=(ue=F.delimiter)!==null&&ue!==void 0?ue:"›",Be=(At,$t,on)=>Vd.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":on}},components:[ro(At)],action:yn=>{s.focus(),s.selection.select($t),s.nodeChanged()},buttonBehaviours:Bo([Td.config({...Z.tooltips.getConfig({tooltipText:Z.translate(["Select the {0} element",$t.nodeName.toLowerCase()]),onShow:(yn,wn)=>{Fre(yn.element,wn.element)},onHide:yn=>{Nre(yn.element)}})}),s1.button(Z.isDisabled),df()])}),qe=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[ro(` ${we} `)]}),ft=At=>se(At,($t,on,yn)=>{const wn=Be(on.name,on.element,yn);return yn===0?$t.concat([wn]):$t.concat([qe(),wn])},[]),gt=At=>{const $t=[];let on=At.length;for(;on-- >0;){const yn=At[on];if(yn.nodeType===1&&!$re(yn)){const wn=oX(s,yn);if(wn.isDefaultPrevented()||$t.push({name:wn.name,element:yn}),wn.isPropagationStopped())break}}return $t};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:Bo([Li.config({mode:"flow",selector:"div[role=button]"}),ta.config({disabled:Z.isDisabled}),df(),Wl.config({}),da.config({}),Ca("elementPathEvents",[Ll((At,$t)=>{s.shortcuts.add("alt+F11","focus statusbar elementpath",()=>Li.focusIn(At)),s.on("NodeChange",on=>{const yn=gt(on.parents),wn=yn.length>0?ft(yn):[];da.set(At,wn)})})])]),components:[]}};var Q2;(function(s){s[s.None=0]="None",s[s.Both=1]="Both",s[s.Vertical=2]="Vertical"})(Q2||(Q2={}));const Ure=(s,F,Z,ue,we)=>{const Be={height:H8(ue+F.top,E6(s),XE(s))};return Z===Q2.Both&&(Be.width=H8(we+F.left,Z3(s),T5(s))),Be},jj=(s,F,Z)=>{const ue=Pt.fromDom(s.getContainer()),we=Ure(s,F,Z,Ql(ue),cc(ue));We(we,(Be,qe)=>{h(Be)&&ko(ue,qe,M4(Be))}),nX(s)},jre=s=>{const F=r7(s);return F===!1?Q2.None:F==="both"?Q2.Both:Q2.Vertical},uA=(s,F,Z,ue)=>{const Be=Ws(Z*20,ue*20);return jj(s,Be,F),I.some(!0)},Qre=(s,F)=>{const Z=jre(s);if(Z===Q2.None)return I.none();const ue=Z===Q2.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return I.some(em("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{"aria-label":F.translate(ue),"data-mce-name":"resize-handle"},behaviours:[j2.config({mode:"mouse",repositionTarget:!1,onDrag:(we,Be,qe)=>jj(s,qe,Z),blockerClass:"tox-blocker"}),Li.config({mode:"special",onLeft:()=>uA(s,Z,-1,0),onRight:()=>uA(s,Z,1,0),onUp:()=>uA(s,Z,0,-1),onDown:()=>uA(s,Z,0,1)}),Wl.config({}),oa.config({}),Td.config(F.tooltips.getConfig({tooltipText:F.translate("Resize")}))]},F.icons))},Hre=(s,F)=>{const Z=(ue,we,Be)=>da.set(ue,[ro(F.translate(["{0} "+Be,we[Be]]))]);return Vd.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:Bo([s1.button(F.isDisabled),df(),Wl.config({}),da.config({}),hi.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Ca("wordcount-events",[$p(ue=>{const we=hi.getValue(ue),Be=we.mode==="words"?"characters":"words";hi.setValue(ue,{mode:Be,count:we.count}),Z(ue,we.count,Be)}),Ll(ue=>{s.on("wordCountUpdate",we=>{const{mode:Be}=hi.getValue(ue);hi.setValue(ue,{mode:Be,count:we.wordCount}),Z(ue,we.wordCount,Be)})})])]),eventOrder:{[cp()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},Zre=(s,F)=>{const Z=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=poweredby&utm_source=tiny&utm_medium=referral&utm_content=v7",rel:"noopener",target:"_blank","aria-label":s.translate(["Build with {0}","TinyMCE"])},innerHtml:s.translate(["Build with {0}",Uj.trim()])},behaviours:Bo([oa.config({})])}]}),ue=()=>{const ft=vC("Alt+0"),gt="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[ro(Ag.translate([gt,ft]))]}},we=()=>{const ft=[];return s.hasPlugin("wordcount")&&ft.push(Hre(s,F)),n7(s)&&ft.push(Z()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:ft}},Be=()=>{const ft=[],gt=hz(s),At=fz(s),$t=n7(s)||s.hasPlugin("wordcount"),on=()=>{const yn="tox-statusbar__text-container--flex-start",wn="tox-statusbar__text-container--flex-end",Mn="tox-statusbar__text-container--space-around";if(gt){const Xn="tox-statusbar__text-container-3-cols";return!$t&&!At?[Xn,Mn]:$t&&!At?[Xn,wn]:[Xn,yn]}return[$t&&!At?wn:yn]};return At&&ft.push(Vre(s,{},F)),gt&&ft.push(ue()),$t&&ft.push(we()),ft.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...on()]},components:ft}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const ft=Be(),gt=Qre(s,F);return ft.concat(gt.toArray())})()}},Qj=(s,F)=>F.get().getOrDie(`UI for ${s} has not been rendered`),qre=(s,F)=>{const Z=s.inline,ue=Z?YU:vne,we=W3(s)?O4:_ee,Be=XU(),qe=os(),ft=os(),gt=os(),yn=rf().deviceType.isTouch()?["tox-platform-touch"]:[],wn=Kb(s),Mn=Dw(s),Xn=qs({dom:{tag:"div",classes:["tox-anchorbar"]}}),Br=qs({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),or=()=>Be.mainUi.get().map(ji=>ji.outerContainer).bind(Yl.getHeader),Mr=()=>Hi.fromOption(Be.dialogUi.get().map(ji=>ji.sink),"UI has not been rendered"),kr=()=>Hi.fromOption(Be.popupUi.get().map(ji=>ji.sink),"(popup) UI has not been rendered"),yo=Be.lazyGetInOuterOrDie("anchor bar",Xn.getOpt),Xr=Be.lazyGetInOuterOrDie("bottom anchor bar",Br.getOpt),No=Be.lazyGetInOuterOrDie("toolbar",Yl.getToolbar),Jo=Be.lazyGetInOuterOrDie("throbber",Yl.getThrobber),ho=hee({popup:kr,dialog:Mr},s,yo,Xr),Ci=()=>{const ji={attributes:{[s0]:wn?Sg.BottomToTop:Sg.TopToBottom}},va=Yl.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:ho.popup,onEscape:()=>{s.focus()}}),Cl=Yl.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:ho.popup.shared.getSink,providers:ho.popup.shared.providers,onEscape:()=>{s.focus()},onToolbarToggled:mO=>{iX(s,mO)},type:Mn,lazyToolbar:No,lazyHeader:()=>or().getOrDie("Could not find header element"),...ji}),Ns=Yl.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:ho.popup.shared.providers,onEscape:()=>{s.focus()},type:Mn}),zh=Bw(s),zg=N6(s),Av=z6(s),dh=C5(s),Fg=mi(),w0=zh||zg||Av,im=()=>zh?[Ns]:zg?[Cl]:[],jy=dh?[Fg,va]:[va];return Yl.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(w0?[]:["tox-editor-header--empty"]),...ji},components:ve([Av?jy:[],im(),q3(s)?[]:[Xn.asSpec()]]),sticky:W3(s),editor:s,sharedBackstage:ho.popup.shared})},mi=()=>Yl.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),qi=()=>{const ji=Yl.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),va=Yl.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[ji,va]}},Fi=()=>{const ji=A5(s),va=so(Vr(),ji)&&Aa(ji,"display")==="grid",Cl={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(yn),attributes:{...Ag.isRtl()?{dir:"rtl"}:{}}},behaviours:Bo([ed.config({useFixed:()=>we.isDocked(or)})])},Ns={dom:{styles:{width:document.body.clientWidth+"px"}},events:pl([fo(Tm(),Av=>{ko(Av.element,"width",document.body.clientWidth+"px")})])},zh=vi(nl(Cl,va?Ns:{})),zg=OP(zh);return ft.set(zg),{sink:zh,mothership:zg}},Os=()=>{const ji={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(yn),attributes:{...Ag.isRtl()?{dir:"rtl"}:{}}},behaviours:Bo([ed.config({useFixed:()=>we.isDocked(or),getBounds:()=>F.getPopupSinkBounds()})])},va=vi(ji),Cl=OP(va);return gt.set(Cl),{sink:va,mothership:Cl}},vs=()=>{const ji=Ci(),va=qi(),Cl=Yl.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:ho.popup}),Ns=Yl.parts.viewWrapper({backstage:ho.popup}),zh=uz(s)&&!Z?I.some(Zre(s,ho.popup.shared.providers)):I.none(),zg=ve([wn?[]:[ji],Z?[]:[va],wn?[ji]:[]]),Av=Yl.parts.editorContainer({components:ve([zg,Z?[]:[Br.asSpec()]])}),dh=$6(s),Fg={role:"application",...Ag.isRtl()?{dir:"rtl"}:{},...dh?{"aria-hidden":"true"}:{}},w0=vi(Yl.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(Z?["tox-tinymce-inline"]:[]).concat(wn?["tox-tinymce--toolbar-bottom"]:[]).concat(yn),styles:{visibility:"hidden",...dh?{opacity:"0",border:"0"}:{}},attributes:Fg},components:[Av,...Z?[]:[Ns,...zh.toArray()],Cl],behaviours:Bo([df(),ta.config({disableClass:"tox-tinymce--disabled"}),Li.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),im=OP(w0);return qe.set(im),{mothership:im,outerContainer:w0}},Ha=ji=>{const va=M4(q8(s)),Cl=M4(yne(s));return s.inline||(wc("div","width",Cl)&&ko(ji.element,"width",Cl),wc("div","height",va)?ko(ji.element,"height",va):ko(ji.element,"height","400px")),va},Ho=ji=>{s.addShortcut("alt+F9","focus menubar",()=>{Yl.focusMenubar(ji)}),s.addShortcut("alt+F10","focus toolbar",()=>{Yl.focusToolbar(ji)}),s.addCommand("ToggleToolbarDrawer",(va,Cl)=>{Cl!=null&&Cl.skipFocus?Yl.toggleToolbarDrawerWithoutFocusing(ji):Yl.toggleToolbarDrawer(ji)}),s.addQueryStateHandler("ToggleToolbarDrawer",()=>Yl.isToolbarDrawerToggled(ji))},wi=ji=>{const{mainUi:va,popupUi:Cl,uiMotherships:Ns}=ji;Ue(R6(s),(L4,SA)=>{s.ui.registry.addGroupToolbarButton(SA,L4)});const{buttons:zh,menuItems:zg,contextToolbars:Av,sidebars:dh,views:Fg}=s.ui.registry.getAll(),w0=s7(s),im={menuItems:zg,menus:l7(s),menubar:JE(s),toolbar:w0.getOrThunk(()=>L6(s)),allowToolbarGroups:Mn===Hm.floating,buttons:zh,sidebar:dh,views:Fg};Ho(va.outerContainer),pee(s,va.mothership,Ns),we.setup(s,ho.popup.shared,or),Yne(s,ho.popup),dre(s,ho.popup.shared.getSink,ho.popup),Lee(s),Ofe(s,Jo,ho.popup.shared),Lne(s,Av,Cl.sink,{backstage:ho.popup}),uL(s,Cl.sink);const jy=s.getElement(),mO=Ha(va.outerContainer),CL={targetNode:jy,height:mO};return ue.render(s,ji,im,ho.popup,CL)},_a=ji=>(gt.set(ji.mothership),ji),Ki=()=>{const ji=vs(),va=Fi(),Cl=C2(s)?Os():_a(va);Be.dialogUi.set(va),Be.popupUi.set(Cl),Be.mainUi.set(ji);const Ns={popupUi:Cl,dialogUi:va,mainUi:ji,uiMotherships:Be.getUiMotherships()};return wi(Ns)};return{popups:{backstage:ho.popup,getMothership:()=>Qj("popups",gt)},dialogs:{backstage:ho.dialog,getMothership:()=>Qj("dialogs",ft)},renderUI:Ki}},Hj=s=>s.dom.textContent,Wre=(s,F)=>{const Z=co(s,"id").fold(()=>{const ue=fi("dialog-label");return fr(F,"id",ue),ue},R);fr(s,"aria-labelledby",Z)},Yre=x([Sn("lazySink"),Hr("dragBlockClass"),Pa("getBounds",wl),mr("useTabstopAt",k),mr("firstTabstop",0),mr("eventOrder",{}),Pf("modalBehaviours",[Li]),bd("onExecute"),i0("onEscape")]),fL={sketch:R},Xre=x([Jp({name:"draghandle",overrides:(s,F)=>({behaviours:Bo([j2.config({mode:"mouse",getTarget:Z=>zs(Z,'[role="dialog"]').getOr(Z),blockerClass:s.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: +`+JSON.stringify(F,null,2)).message),getBounds:s.getDragBounds})])})}),kd({schema:[Sn("dom")],name:"title"}),kd({factory:fL,schema:[Sn("dom")],name:"close"}),kd({factory:fL,schema:[Sn("dom")],name:"body"}),Jp({factory:fL,schema:[Sn("dom")],name:"footer"}),Um({factory:{sketch:(s,F)=>({...s,dom:F.dom,components:F.components})},schema:[mr("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),mr("components",[])],name:"blocker"})]),Gre=(s,F,Z,ue)=>{const we=os(),Be=Mn=>{we.set(Mn);const Xn=s.lazySink(Mn).getOrDie(),Br=ue.blocker(),or=Xn.getSystem().build({...Br,components:Br.components.concat([na(Mn)]),behaviours:Bo([oa.config({}),Ca("dialog-blocker-events",[Wv(Sm(),()=>{Tv.isBlocked(Mn)?v():Li.focusIn(Mn)})])])});X0(Xn,or),Li.focusIn(Mn)},qe=Mn=>{we.clear(),br(Mn.element).each(Xn=>{Mn.getSystem().getByDom(Xn).each(Br=>{fv(Br)})})},ft=Mn=>Ph(Mn,s,"body"),gt=Mn=>Fo(Mn,s,"footer"),At=(Mn,Xn)=>{Tv.block(Mn,Xn)},$t=Mn=>{Tv.unblock(Mn)},on=fi("modal-events"),yn={...s.eventOrder,[zd()]:[on].concat(s.eventOrder["alloy.system.attached"]||[])},wn=rf();return{uid:s.uid,dom:s.dom,components:F,apis:{show:Be,hide:qe,getBody:ft,getFooter:gt,setIdle:$t,setBusy:At},eventOrder:yn,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Rf(s.modalBehaviours,[da.config({}),Li.config({mode:"cyclic",onEnter:s.onExecute,onEscape:s.onEscape,useTabstopAt:s.useTabstopAt,firstTabstop:s.firstTabstop}),Tv.config({getRoot:we.get}),Ca(on,[Ll(Mn=>{const Xn=Ph(Mn,s,"title").element,Br=Hj(Xn);wn.os.isMacOS()&&a(Br)?fr(Mn.element,"aria-label",Br):Wre(Mn.element,Xn)})])])}},If=ch({name:"ModalDialog",configFields:Yre(),partFields:Xre(),factory:Gre,apis:{show:(s,F)=>{s.show(F)},hide:(s,F)=>{s.hide(F)},getBody:(s,F)=>s.getBody(F),getFooter:(s,F)=>s.getFooter(F),setBusy:(s,F,Z)=>{s.setBusy(F,Z)},setIdle:(s,F)=>{s.setIdle(F)}}}),Kre=Mi([Fu,oC].concat(Uw)),Jre=ge,fA=[H7("button"),d0,hl("align","end",["start","end"]),Q5,o1,$i("buttonType",["primary","secondary"])],dL=[...fA,tx],ux=[Zr("type",["submit","cancel","custom"]),...dL],eoe=[Zr("type",["menu"]),R2,j5,d0,Si("items",Kre),...fA],hL=[...fA,Zr("type",["togglebutton"]),j5,d0,R2,hs("active",!1)],dA=xn("type",{submit:ux,cancel:ux,custom:ux,menu:eoe,togglebutton:hL}),toe=[Fu,tx,Zr("level",["info","warn","error","success"]),Yz,mr("url","")],noe=Mi(toe),roe=s=>[Fu,s],ooe=[Fu,tx,o1,H7("button"),d0,MY,$i("buttonType",["primary","secondary","toolbar"]),Q5],ioe=Mi(ooe),h1=[Fu,oC],p1=h1.concat([aC]),aoe=h1.concat([iC,o1]),soe=Mi(aoe),loe=ge,coe=p1.concat([cC("auto")]),uoe=Mi(coe),foe=J([U5,tx,Yz]),doe=p1.concat([Ys("storageKey","default")]),hoe=Mi(doe),pL=ne,mL=Mi(p1),pA=ne,uO=h1.concat([Ys("tag","textarea"),Pr("scriptId"),Pr("scriptUrl"),Ui("onFocus"),Rs("settings",void 0)]),mA=h1.concat([Ys("tag","textarea"),$o("init")]),poe=mt(s=>jt("customeditor.old",Ol(mA),s).orThunk(()=>jt("customeditor.new",Ol(uO),s))),Zj=ne,qj=Mi(p1),goe=dt(),voe=s=>[Fu,Dr("columns"),s],yoe=[Fu,Pr("html"),hl("presets","presentation",["presentation","document"]),Pa("onInit",v),hs("stretched",!1)],Wj=Mi(yoe),Yj=p1.concat([hs("border",!1),hs("sandboxed",!0),hs("streamContent",!1),hs("transparent",!0)]),gL=Mi(Yj),boe=ne,xoe=Mi(h1.concat([Io("height")])),_oe=Mi([Pr("url"),ki("zoom"),ki("cachedWidth"),ki("cachedHeight")]),Xj=p1.concat([Io("inputMode"),Io("placeholder"),hs("maximized",!1),o1]),woe=Mi(Xj),Ooe=ne,Soe=s=>[Fu,iC,s,hl("align","start",["start","center","end"]),Io("for")],vL=[tx,U5],yL=[tx,Si("items",pn("items",()=>Gj))],Gj=Ot([Mi(vL),Mi(yL)]),Kj=p1.concat([Si("items",Gj),o1]),koe=Mi(Kj),Toe=ne,Jj=p1.concat([yi("items",[tx,U5]),Pl("size",1),o1]),Coe=Mi(Jj),Aoe=ne,fO=p1.concat([hs("constrain",!0),o1]),eQ=Mi(fO),tQ=Mi([Pr("width"),Pr("height")]),gA=h1.concat([iC,Pl("min",0),Pl("max",0)]),P4=Mi(gA),vA=V,nQ=[Fu,Si("header",ne),Si("cells",kf(ne))],yA=Mi(nQ),rm=p1.concat([Io("placeholder"),hs("maximized",!1),o1]),bA=Mi(rm),rQ=ne,bL=[Zr("type",["directory","leaf"]),Wz,Pr("id"),Lo("menu",k8)],oQ=Mi(bL),H2=bL.concat([Si("children",pn("children",()=>rt("type",{directory:Moe,leaf:oQ})))]),Moe=Mi(H2),Eoe=rt("type",{directory:Moe,leaf:oQ}),iQ=[Fu,Si("items",Eoe),Ui("onLeafAction"),Ui("onToggleExpand"),Ls("defaultExpandedIds",[],ne),Io("defaultSelectedId")],R4=Mi(iQ),xA=p1.concat([hl("filetype","file",["image","media","file"]),o1,Io("picker_text")]),aQ=Mi(xA),Poe=Mi([U5,j7]),xL=s=>Ln("items","items",Ka(),kf(mt(F=>jt(`Checking item of ${s}`,_L,F).fold(Z=>Hi.error(sn(Z)),Z=>Hi.value(Z))))),_L=Ea(()=>rt("type",{alertbanner:noe,bar:Mi(roe(xL("bar"))),button:ioe,checkbox:soe,colorinput:hoe,colorpicker:mL,dropzone:qj,grid:Mi(voe(xL("grid"))),iframe:gL,input:woe,listbox:koe,selectbox:Coe,sizeinput:eQ,slider:P4,textarea:bA,urlinput:aQ,customeditor:poe,htmlpanel:Wj,imagepreview:xoe,collection:uoe,label:Mi(Soe(xL("label"))),table:yA,tree:R4,panel:dO})),Roe=[Fu,mr("classes",[]),Si("items",_L)],dO=Mi(Roe),$fe=[H7("tab"),Wz,Si("items",_L)],Loe=[Fu,yi("tabs",$fe)],Ioe=Mi(Loe),Vfe=dL,Doe=dA,Boe=Mi([Pr("title"),rr("body",rt("type",{panel:dO,tabpanel:Ioe})),Ys("size","normal"),Ls("buttons",[],Doe),mr("initialData",{}),Pa("onAction",v),Pa("onChange",v),Pa("onSubmit",v),Pa("onClose",v),Pa("onCancel",v),Pa("onTabChange",v)]),$k=s=>jt("dialog",Boe,s),zoe=Mi([Zr("type",["cancel","custom"]),...Vfe]),Foe=Mi([Pr("title"),Pr("url"),ki("height"),ki("width"),ba("buttons",zoe),Pa("onAction",v),Pa("onCancel",v),Pa("onClose",v),Pa("onMessage",v)]),sQ=s=>jt("dialog",Foe,s),wL=s=>c(s)?[s].concat(ye(ot(s),wL)):i(s)?ye(s,wL):[],Ufe=s=>n(s.type)&&n(s.name),r={checkbox:loe,colorinput:pL,colorpicker:pA,dropzone:goe,input:Ooe,iframe:boe,imagepreview:_oe,selectbox:Aoe,sizeinput:tQ,slider:vA,listbox:Toe,size:tQ,textarea:rQ,urlinput:Poe,customeditor:Zj,collection:foe,togglemenuitem:Jre},g=s=>I.from(r[s.type]),B=s=>me(wL(s),Ufe),H=s=>{const F=B(s),Z=ye(F,ue=>g(ue).fold(()=>[],we=>[rr(ue.name,we)]));return Mi(Z)},re=s=>{var F;const Z=Nt($k(s)),ue=H(s),we=(F=s.initialData)!==null&&F!==void 0?F:{};return{internalDialog:Z,dataValidator:ue,initialData:we}},be={open:(s,F)=>{const Z=re(F);return s(Z.internalDialog,Z.initialData,Z.dataValidator)},openUrl:(s,F)=>{const Z=Nt(sQ(F));return s(Z)},redial:s=>re(s)};var Ke=Object.freeze({__proto__:null,events:(s,F)=>{const Z=(ue,we)=>{s.updateState.each(Be=>{const qe=Be(ue,we);F.set(qe)}),s.renderComponents.each(Be=>{const qe=Be(we,F.get());(s.reuseDom?NE:U3)(ue,qe)})};return pl([fo(lp(),(ue,we)=>{const Be=we;if(!Be.universal){const qe=s.channel;X(Be.channels,qe)&&Z(ue,Be.data)}}),Ll((ue,we)=>{s.initialData.each(Be=>{Z(ue,Be)})})])}}),kt=Object.freeze({__proto__:null,getState:(s,F,Z)=>Z}),Wt=[Sn("channel"),Hr("renderComponents"),Hr("updateState"),Hr("initialData"),hs("reuseDom",!0)],ln=Object.freeze({__proto__:null,init:()=>{const s=xi(I.none()),F=()=>s.set(I.none());return{readState:()=>s.get().getOr("none"),get:s.get,set:s.set,clear:F}}});const kn=lf({fields:Wt,name:"reflecting",active:Ke,apis:kt,state:ln}),Vn=s=>{const F=[],Z={};return We(s,(ue,we)=>{ue.fold(()=>{F.push(we)},Be=>{Z[we]=Be})}),F.length>0?Hi.error(F):Hi.value(Z)},Rn=(s,F,Z,ue)=>{const we=qs(tO.sketch(Be=>({dom:{tag:"div",classes:["tox-form"].concat(s.classes)},components:oe(s.items,qe=>hV(Be,qe,F,Z,ue))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[we.asSpec()]}],behaviours:Bo([Li.config({mode:"acyclic",useTabstopAt:E(g4)}),y0.memento(we),gK(we,{postprocess:Be=>Vn(Be).fold(qe=>(console.error(qe),{}),R)}),Ca("dialog-body-panel",[fo(Sm(),(Be,qe)=>{Be.getSystem().broadcastOn([JC],{newFocus:I.some(qe.event.target)})})])])}},qn=(s,F)=>({uid:s.uid,dom:s.dom,components:s.components,events:T6(s.action),behaviours:Rf(s.tabButtonBehaviours,[oa.config({}),Li.config({mode:"execution",useSpace:!0,useEnter:!0}),hi.config({store:{mode:"memory",initialValue:s.value}})]),domModification:s.domModification}),pr=Yh({name:"TabButton",configFields:[mr("uid",void 0),Sn("value"),Ln("dom","dom",bu(()=>({attributes:{role:"tab",id:fi("aria"),"aria-selected":"false"}})),le()),Hr("action"),mr("domModification",{}),Pf("tabButtonBehaviours",[oa,Li,hi]),Sn("view")],factory:qn}),Tr=x([Sn("tabs"),Sn("dom"),mr("clickToDismiss",!1),Pf("tabbarBehaviours",[ri,Li]),jp(["tabClass","selectedClass"])]),wr=R3({factory:pr,name:"tabs",unit:"tab",overrides:s=>{const F=(ue,we)=>{ri.dehighlight(ue,we),Ri(ue,xu(),{tabbar:ue,button:we})},Z=(ue,we)=>{ri.highlight(ue,we),Ri(ue,zO(),{tabbar:ue,button:we})};return{action:ue=>{const we=ue.getSystem().getByUid(s.uid).getOrDie(),Be=ri.isHighlighted(we,ue);(()=>Be&&s.clickToDismiss?F:Be?v:Z)()(we,ue)},domModification:{classes:[s.markers.tabClass]}}}}),Ur=x([wr]),wo=(s,F,Z,ue)=>({uid:s.uid,dom:s.dom,components:F,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Rf(s.tabbarBehaviours,[ri.config({highlightClass:s.markers.selectedClass,itemClass:s.markers.tabClass,onHighlight:(we,Be)=>{fr(Be.element,"aria-selected","true")},onDehighlight:(we,Be)=>{fr(Be.element,"aria-selected","false")}}),Li.config({mode:"flow",getInitial:we=>ri.getHighlighted(we).map(Be=>Be.element),selector:"."+s.markers.tabClass,executeOnMove:!0})])}),jo=ch({name:"Tabbar",configFields:Tr(),partFields:Ur(),factory:wo}),di=(s,F)=>({uid:s.uid,dom:s.dom,behaviours:Rf(s.tabviewBehaviours,[da.config({})]),domModification:{attributes:{role:"tabpanel"}}}),lo=Yh({name:"Tabview",configFields:[Pf("tabviewBehaviours",[da])],factory:di}),eo=x([mr("selectFirst",!0),Ra("onChangeTab"),Ra("onDismissTab"),mr("tabs",[]),Pf("tabSectionBehaviours",[])]),xo=kd({factory:jo,schema:[Sn("dom"),zo("markers",[Sn("tabClass"),Sn("selectedClass")])],name:"tabbar",defaults:s=>({tabs:s.tabs})}),bi=kd({factory:lo,name:"tabview"}),Bi=x([xo,bi]),$a=(s,F,Z,ue)=>{const we=qe=>{const ft=hi.getValue(qe);Fo(qe,s,"tabview").each(gt=>{ce(s.tabs,$t=>$t.value===ft).each($t=>{const on=$t.view();co(qe.element,"id").each(yn=>{fr(gt.element,"aria-labelledby",yn)}),da.set(gt,on),s.onChangeTab(gt,qe,on)})})},Be=(qe,ft)=>{Fo(qe,s,"tabbar").each(gt=>{ft(gt).each(Fp)})};return{uid:s.uid,dom:s.dom,components:F,behaviours:vw(s.tabSectionBehaviours),events:pl(ve([s.selectFirst?[Ll((qe,ft)=>{Be(qe,ri.getFirst)})]:[],[fo(zO(),(qe,ft)=>{const gt=ft.event.button;we(gt)}),fo(xu(),(qe,ft)=>{const gt=ft.event.button;s.onDismissTab(qe,gt)})]])),apis:{getViewItems:qe=>Fo(qe,s,"tabview").map(ft=>da.contents(ft)).getOr([]),showTab:(qe,ft)=>{Be(qe,At=>{const $t=ri.getCandidates(At);return ce($t,yn=>hi.getValue(yn)===ft).filter(yn=>!ri.isHighlighted(At,yn))})}}}},Ia=ch({name:"TabSection",configFields:eo(),partFields:Bi(),factory:$a,apis:{getViewItems:(s,F)=>s.getViewItems(F),showTab:(s,F,Z)=>{s.showTab(F,Z)}}}),Us=(s,F,Z)=>oe(s,(ue,we)=>{da.set(Z,s[we].view());const Be=F.dom.getBoundingClientRect();return da.set(Z,[]),Be.height}),sl=s=>He(ze(s,(F,Z)=>F>Z?-1:F{const ue=Pn(s).dom,we=zs(s,".tox-dialog-wrap").getOr(s),Be=Aa(we,"position")==="fixed";let qe;Be?qe=Math.max(ue.clientHeight,window.innerHeight):qe=Math.max(ue.offsetHeight,ue.scrollHeight);const ft=Ql(F),At=F.dom.offsetLeft>=Z.dom.offsetLeft+cc(Z)?Math.max(Ql(Z),ft):ft,$t=parseInt(Aa(s,"margin-top"),10)||0,on=parseInt(Aa(s,"margin-bottom"),10)||0,wn=Ql(s)+$t+on-At;return qe-wn},jd=(s,F)=>{He(s).each(Z=>Ia.showTab(F,Z.value))},vl=(s,F)=>{ko(s,"height",F+"px"),ko(s,"flex-basis",F+"px")},Wo=(s,F,Z)=>{zs(s,'[role="dialog"]').each(ue=>{aa(ue,'[role="tablist"]').each(we=>{Z.get().map(Be=>(ko(F,"height","0"),ko(F,"flex-basis","0"),Math.min(Be,nu(ue,F,we)))).each(Be=>{vl(F,Be)})})})},Ei=s=>aa(s,'[role="tabpanel"]'),ws=s=>{const F=os();return{extraEvents:[Ll(we=>{const Be=we.element;Ei(Be).each(qe=>{ko(qe,"visibility","hidden"),we.getSystem().getByDom(qe).toOptional().each(ft=>{const gt=Us(s,qe,ft);sl(gt).fold(F.clear,F.set)}),Wo(Be,qe,F),ga(qe,"visibility"),jd(s,we),requestAnimationFrame(()=>{Wo(Be,qe,F)})})}),fo(Tm(),we=>{const Be=we.element;Ei(Be).each(qe=>{Wo(Be,qe,F)})}),fo(vN,(we,Be)=>{const qe=we.element;Ei(qe).each(ft=>{const gt=hp(vr(ft));ko(ft,"visibility","hidden");const At=Na(ft,"height").map(yn=>parseInt(yn,10));ga(ft,"height"),ga(ft,"flex-basis");const $t=ft.dom.getBoundingClientRect().height;At.forall(yn=>$t>yn)?(F.set($t),Wo(qe,ft,F)):At.each(yn=>{vl(ft,yn)}),ga(ft,"visibility"),gt.each(xd)})})],selectFirst:!1}},ii="send-data-to-section",Qi="send-data-to-view",Qa=(s,F,Z,ue)=>{const we=xi({}),Be=$t=>{const on=hi.getValue($t),yn=Vn(on).getOr({}),wn=we.get(),Mn=nl(wn,yn);we.set(Mn)},qe=$t=>{const on=we.get();hi.setValue($t,on)},ft=xi(null),gt=oe(s.tabs,$t=>({value:$t.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[ro(Z.shared.providers.translate($t.title))],view:()=>[tO.sketch(on=>({dom:{tag:"div",classes:["tox-form"]},components:oe($t.items,yn=>hV(on,yn,F,Z,ue)),formBehaviours:Bo([Li.config({mode:"acyclic",useTabstopAt:E(g4)}),Ca("TabView.form.events",[Ll(qe),Sh(Be)]),Wu.config({channels:pd([{key:ii,value:{onReceive:Be}},{key:Qi,value:{onReceive:qe}}])})])}))]})),At=ws(gt);return Ia.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:($t,on,yn)=>{const wn=hi.getValue(on);Ri($t,gN,{name:wn,oldName:ft.get()}),ft.set(wn)},tabs:gt,components:[Ia.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[jo.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:Bo([Wl.config({})])}),Ia.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:At.selectFirst,tabSectionBehaviours:Bo([Ca("tabpanel",At.extraEvents),Li.config({mode:"acyclic"}),as.config({find:$t=>He(Ia.getViewItems($t))}),nO(I.none(),$t=>($t.getSystem().broadcastOn([ii],{}),we.get()),($t,on)=>{we.set(on),$t.getSystem().broadcastOn([Qi],{})})])})},ci=(s,F,Z,ue,we,Be)=>{const qe=At=>{const $t=At.body;switch($t.type){case"tabpanel":return[Qa($t,At.initialData,ue,Be)];default:return[Rn($t,At.initialData,ue,Be)]}},ft=(At,$t)=>I.some({isTabPanel:()=>$t.body.type==="tabpanel"}),gt={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...Z.map(At=>({id:At})).getOr({}),...we?gt:{}}},components:[],behaviours:Bo([y0.childAt(0),kn.config({channel:`${w$}-${F}`,updateState:ft,renderComponents:qe,initialData:s})])}},Va=(s,F,Z,ue,we,Be)=>ci(s,F,I.some(Z),ue,we,Be),Xa=(s,F,Z,ue)=>{const we=ci(s,F,I.none(),Z,!1,ue);return If.parts.body(we)},Df=s=>{const F={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[y$(I.none(),{dom:{tag:"iframe",attributes:{src:s.url}},behaviours:Bo([Wl.config({}),oa.config({})])})]}],behaviours:Bo([Li.config({mode:"acyclic",useTabstopAt:E(g4)})])};return If.parts.body(F)},el=Q3.deviceType.isTouch(),Yu=(s,F)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[s,F]}),Rg=(s,F)=>If.parts.close(Vd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":F.translate("Close")}},action:s,buttonBehaviours:Bo([Wl.config({})])})),m1=()=>If.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),Dh=(s,F)=>If.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:gv(`

    ${w7(F.translate(s))}

    `)}]}]}),om=s=>If.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:s}),Lg=(s,F)=>[_v.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:s}),_v.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:F})],xp=s=>{const F="tox-dialog",Z=F+"-wrap",ue=Z+"__backdrop",we=F+"__disable-scroll";return If.sketch({lazySink:s.lazySink,onEscape:Be=>(s.onEscape(Be),I.some(!0)),useTabstopAt:Be=>!g4(Be),firstTabstop:s.firstTabstop,dom:{tag:"div",classes:[F].concat(s.extraClasses),styles:{position:"relative",...s.extraStyles}},components:[s.header,s.body,...s.footer.toArray()],parts:{blocker:{dom:gv(`
    `),components:[{dom:{tag:"div",classes:el?[ue,ue+"--opaque"]:[ue]}}]}},dragBlockClass:Z,modalBehaviours:Bo([oa.config({}),Ca("dialog-events",s.dialogEvents.concat([Wv(Sm(),(Be,qe)=>{Tv.isBlocked(Be)?v():Li.focusIn(Be)}),fo(Jg(),(Be,qe)=>{Be.getSystem().broadcastOn([JC],{newFocus:qe.event.newFocus})})])),Ca("scroll-lock",[Ll(()=>{Sl(Vr(),we)}),Sh(()=>{fc(Vr(),we)})]),...s.extraBehaviours]),eventOrder:{[cp()]:["dialog-events"],[zd()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[fp()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...s.eventOrder}})},Ig=s=>Vd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":s.translate("Close"),"data-mce-name":"close"}},buttonBehaviours:Bo([Wl.config({}),Td.config(s.tooltips.getConfig({tooltipText:s.translate("Close")}))]),components:[em("close",{tag:"span",classes:["tox-icon"]},s.icons)],action:F=>{Sa(F,I2)}}),zi=(s,F,Z,ue)=>{const we=Be=>[ro(ue.translate(Be.title))];return{dom:{tag:"h1",classes:["tox-dialog__title"],attributes:{...Z.map(Be=>({id:Be})).getOr({})}},components:[],behaviours:Bo([kn.config({channel:`${_$}-${F}`,initialData:s,renderComponents:we})])}},ss=()=>({dom:gv('
    ')}),Rc=(s,F,Z,ue)=>_v.sketch({dom:gv('
    '),components:[zi(s,F,I.some(Z),ue),ss(),Ig(ue)],containerBehaviours:Bo([j2.config({mode:"mouse",blockerClass:"blocker",getTarget:we=>Fs(we,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),cu=(s,F,Z)=>{const ue=If.parts.title(zi(s,F,I.none(),Z)),we=If.parts.draghandle(ss()),Be=If.parts.close(Ig(Z)),qe=[ue].concat(s.draggable?[we]:[]).concat([Be]);return _v.sketch({dom:gv('
    '),components:qe})},Nu=(s,F,Z)=>cu({title:Z.shared.providers.translate(s),draggable:Z.dialog.isDraggableModal()},F,Z.shared.providers),nd=(s,F,Z,ue)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":Z.translate(s)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${ue.getOr(0)}px`,position:"absolute"}},behaviours:F,components:[{dom:gv('
    ')}]}),Ou=(s,F,Z)=>({onClose:()=>Z.closeWindow(),onBlock:ue=>{const we=aa(s().element,".tox-dialog__header").map(Be=>Ql(Be));If.setBusy(s(),(Be,qe)=>nd(ue.message,qe,F,we))},onUnblock:()=>{If.setIdle(s())}}),Su="tox-dialog--fullscreen",fh="tox-dialog--width-lg",Dg="tox-dialog--width-md",Xm=s=>{switch(s){case"large":return I.some(fh);case"medium":return I.some(Dg);default:return I.none()}},x0=(s,F)=>{const Z=Pt.fromDom(F.element.dom);$l(Z,Su)||(th(Z,[fh,Dg]),Xm(s).each(ue=>Sl(Z,ue)))},Bg=(s,F)=>{const Z=Pt.fromDom(s.element.dom),ue=QO(Z),we=ce(ue,Be=>Be===fh||Be===Dg).or(Xm(F));Bx(Z,[Su,...we.toArray()])},fx=(s,F,Z)=>vi(xp({...s,firstTabstop:1,lazySink:Z.shared.getSink,extraBehaviours:[YC({}),...s.extraBehaviours],onEscape:ue=>{Sa(ue,I2)},dialogEvents:F,eventOrder:{[lp()]:[kn.name(),Wu.name()],[zd()]:["scroll-lock",kn.name(),"messages","dialog-events","alloy.base.behaviour"],[fp()]:["alloy.base.behaviour","dialog-events","messages",kn.name(),"scroll-lock"]}})),Z2=(s,F={})=>{const Z=ue=>{const we=oe(ue.items,Be=>{const qe=Ge(F,Be.name).getOr(xi(!1));return{...Be,storage:qe}});return{...ue,items:we}};return oe(s,ue=>ue.type==="menu"?Z(ue):ue)},hO=s=>se(s,(F,Z)=>Z.type==="menu"?se(Z.items,(we,Be)=>(we[Be.name]=Be.storage,we),F):F,{}),_A=(s,F)=>[L_(Sm(),x$),s(nk,(Z,ue,we,Be)=>{hp(vr(Be.element)).fold(v,a0),F.onClose(),ue.onClose()}),s(I2,(Z,ue,we,Be)=>{ue.onCancel(Z),Sa(Be,nk)}),fo(TP,(Z,ue)=>F.onUnblock()),fo(DC,(Z,ue)=>F.onBlock(ue.event))],dx=(s,F)=>{const Z=(we,Be)=>fo(we,(qe,ft)=>{ue(qe,(gt,At)=>{Be(s(),gt,ft.event,qe)})}),ue=(we,Be)=>{kn.getState(we).get().each(qe=>{Be(qe,we)})};return[..._A(Z,F),Z(Dy,(we,Be,qe)=>{Be.onAction(we,{name:qe.name})})]},Vk=(s,F,Z)=>{const ue=(Be,qe)=>fo(Be,(ft,gt)=>{we(ft,(At,$t)=>{qe(s(),At,gt.event,ft)})}),we=(Be,qe)=>{kn.getState(Be).get().each(ft=>{qe(ft.internalDialog,Be)})};return[..._A(ue,F),ue(c4,(Be,qe)=>qe.onSubmit(Be)),ue(tm,(Be,qe,ft)=>{qe.onChange(Be,{name:ft.name})}),ue(Dy,(Be,qe,ft,gt)=>{const At=()=>gt.getSystem().isConnected()?Li.focusIn(gt):void 0,$t=wn=>Go(wn,"disabled")||co(wn,"aria-disabled").exists(Mn=>Mn==="true"),on=vr(gt.element),yn=hp(on);qe.onAction(Be,{name:ft.name,value:ft.value}),hp(on).fold(At,wn=>{$t(wn)||yn.exists(Mn=>So(wn,Mn)&&$t(Mn))?At():Z().toOptional().filter(Mn=>!So(Mn.element,wn)).each(At)})}),ue(gN,(Be,qe,ft)=>{qe.onTabChange(Be,{newTabName:ft.name,oldTabName:ft.oldName})}),Sh(Be=>{const qe=s();hi.setValue(Be,qe.getData())})]},lQ=(s,F)=>f8(s,s.type,F),Bh=(s,F,Z)=>ce(F,ue=>ue.name===Z).bind(ue=>ue.memento.getOpt(s)),pO=(s,F)=>{const Z=F.map(ft=>ft.footerButtons).getOr([]),ue=ee(Z,ft=>ft.align==="start"),we=(ft,gt)=>_v.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${ft}`]},components:oe(gt,At=>At.memento.asSpec())}),Be=we("start",ue.pass),qe=we("end",ue.fail);return[Be,qe]},OL=(s,F,Z)=>{const ue=(we,Be)=>{const qe=oe(Be.buttons,gt=>{const At=qs(lQ(gt,Z));return{name:gt.name,align:gt.align,memento:At}}),ft=gt=>Bh(we,qe,gt);return I.some({lookupByName:ft,footerButtons:qe})};return{dom:gv(''),components:[],behaviours:Bo([kn.config({channel:`${O$}-${F}`,initialData:s,updateState:ue,renderComponents:pO})])}},SL=(s,F,Z)=>OL(s,F,Z),Cv=(s,F,Z)=>If.parts.footer(OL(s,F,Z)),q2=(s,F)=>{if(s.getRoot().getSystem().isConnected()){const ue=as.getCurrent(s.getFormWrapper()).getOr(s.getFormWrapper());return tO.getField(ue,F).orThunk(()=>s.getFooter().bind(qe=>kn.getState(qe).get()).bind(qe=>qe.lookupByName(F)))}else return I.none()},Yr=(s,F)=>{const Z=s.getRoot();return kn.getState(Z).get().map(ue=>Nt(jt("data",ue.dataValidator,F))).getOr(F)},Gr=(s,F,Z)=>{const ue=Mn=>{const Xn=s.getRoot();Xn.getSystem().isConnected()&&Mn(Xn)},wn={getData:()=>{const Mn=s.getRoot(),Xn=Mn.getSystem().isConnected()?s.getFormWrapper():Mn,Br=hi.getValue(Xn),or=Ue(Z,Mr=>Mr.get());return{...Br,...or}},setData:Mn=>{ue(Xn=>{const Br=wn.getData(),or=nl(Br,Mn),Mr=Yr(s,or),kr=s.getFormWrapper();hi.setValue(kr,Mr),We(Z,(yo,Xr)=>{ht(or,Xr)&&yo.set(or[Xr])})})},setEnabled:(Mn,Xn)=>{q2(s,Mn).each(Xn?ta.enable:ta.disable)},focus:Mn=>{q2(s,Mn).each(oa.focus)},block:Mn=>{if(!n(Mn))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");ue(Xn=>{Ri(Xn,DC,{message:Mn})})},unblock:()=>{ue(Mn=>{Sa(Mn,TP)})},showTab:Mn=>{ue(Xn=>{const Br=s.getBody();kn.getState(Br).get().exists(Mr=>Mr.isTabPanel())&&as.getCurrent(Br).each(Mr=>{Ia.showTab(Mr,Mn)})})},redial:Mn=>{ue(Xn=>{const Br=s.getId(),or=F(Mn),Mr=Z2(or.internalDialog.buttons,Z);Xn.getSystem().broadcastOn([`${KC}-${Br}`],or),Xn.getSystem().broadcastOn([`${_$}-${Br}`],or.internalDialog),Xn.getSystem().broadcastOn([`${w$}-${Br}`],or.internalDialog),Xn.getSystem().broadcastOn([`${O$}-${Br}`],{...or.internalDialog,buttons:Mr}),wn.setData(or.initialData)})},close:()=>{ue(Mn=>{Sa(Mn,nk)})},toggleFullscreen:s.toggleFullscreen};return wn},Xo=(s,F,Z)=>{const ue=fi("dialog"),we=s.internalDialog,Be=Nu(we.title,ue,Z),qe=xi(we.size),ft=kr=>q2(or,kr),gt=Xm(qe.get()).toArray(),At=(kr,yo)=>(qe.set(yo.internalDialog.size),x0(yo.internalDialog.size,kr),I.some(yo)),$t=Xa({body:we.body,initialData:we.initialData},ue,Z,ft),on=Z2(we.buttons),yn=hO(on),wn=_t(on.length!==0,Cv({buttons:on},ue,Z)),Mn=Vk(()=>Mr,Ou(()=>Br,Z.shared.providers,F),Z.shared.getSink),Xn={id:ue,header:Be,body:$t,footer:wn,extraClasses:gt,extraBehaviours:[kn.config({channel:`${KC}-${ue}`,updateState:At,initialData:s})],extraStyles:{}},Br=fx(Xn,Mn,Z),or=(()=>{const kr=()=>{const Xr=If.getBody(Br);return as.getCurrent(Xr).getOr(Xr)},yo=()=>{Bg(Br,qe.get())};return{getId:x(ue),getRoot:x(Br),getBody:()=>If.getBody(Br),getFooter:()=>If.getFooter(Br),getFormWrapper:kr,toggleFullscreen:yo}})(),Mr=Gr(or,F.redial,yn);return{dialog:Br,instanceApi:Mr}},Vo=(s,F,Z,ue=!1,we)=>{const Be=fi("dialog"),qe=fi("dialog-label"),ft=fi("dialog-content"),gt=s.internalDialog,At=Ci=>q2(Jo,Ci),$t=xi(gt.size),on=Xm($t.get()).toArray(),yn=(Ci,mi)=>($t.set(mi.internalDialog.size),x0(mi.internalDialog.size,Ci),we(),I.some(mi)),wn=qs(Rc({title:gt.title,draggable:!0},Be,qe,Z.shared.providers)),Mn=qs(Va({body:gt.body,initialData:gt.initialData},Be,ft,Z,ue,At)),Xn=Z2(gt.buttons),Br=hO(Xn),or=_t(Xn.length!==0,qs(SL({buttons:Xn},Be,Z))),Mr=Vk(()=>ho,{onBlock:Ci=>{Tv.block(Xr,(mi,qi)=>{const Fi=wn.getOpt(Xr).map(Os=>Ql(Os.element));return nd(Ci.message,qi,Z.shared.providers,Fi)})},onUnblock:()=>{Tv.unblock(Xr)},onClose:()=>F.closeWindow()},Z.shared.getSink),kr="tox-dialog-inline",yo=rf().os,Xr=vi({dom:{tag:"div",classes:["tox-dialog",kr,...on],attributes:{role:"dialog",...yo.isMacOS()?{"aria-label":gt.title}:{"aria-labelledby":qe}}},eventOrder:{[lp()]:[kn.name(),Wu.name()],[cp()]:["execute-on-form"],[zd()]:["reflecting","execute-on-form"]},behaviours:Bo([Li.config({mode:"cyclic",onEscape:Ci=>(Sa(Ci,nk),I.some(!0)),useTabstopAt:Ci=>!g4(Ci)&&(ar(Ci)!=="button"||ao(Ci,"disabled")!=="disabled"),firstTabstop:1}),kn.config({channel:`${KC}-${Be}`,updateState:yn,initialData:s}),oa.config({}),Ca("execute-on-form",Mr.concat([Wv(Sm(),(Ci,mi)=>{Li.focusIn(Ci)}),fo(Jg(),(Ci,mi)=>{Ci.getSystem().broadcastOn([JC],{newFocus:mi.event.newFocus})})])),Tv.config({getRoot:()=>I.some(Xr)}),da.config({}),YC({})]),components:[wn.asSpec(),Mn.asSpec(),...or.map(Ci=>Ci.asSpec()).toArray()]}),No=()=>{Bg(Xr,$t.get())},Jo={getId:x(Be),getRoot:x(Xr),getFooter:()=>or.map(Ci=>Ci.get(Xr)),getBody:()=>Mn.get(Xr),getFormWrapper:()=>{const Ci=Mn.get(Xr);return as.getCurrent(Ci).getOr(Ci)},toggleFullscreen:No},ho=Gr(Jo,F.redial,Br);return{dialog:Xr,instanceApi:ho}};var Gi=tinymce.util.Tools.resolve("tinymce.util.URI");const ts=s=>{const F=qe=>{s.getSystem().isConnected()&&qe(s)};return{block:qe=>{if(!n(qe))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");F(ft=>{Ri(ft,DC,{message:qe})})},unblock:()=>{F(qe=>{Sa(qe,TP)})},close:()=>{F(qe=>{Sa(qe,nk)})},sendMessage:qe=>{F(ft=>{ft.getSystem().broadcastOn([r9],qe)})}}},Lc=["insertContent","setContent","execCommand","close","block","unblock"],_0=s=>c(s)&&Lc.indexOf(s.mceAction)!==-1,wA=s=>!_0(s)&&c(s)&&ht(s,"mceAction"),Noe=(s,F,Z)=>{switch(Z.mceAction){case"insertContent":s.insertContent(Z.content);break;case"setContent":s.setContent(Z.content);break;case"execCommand":const ue=w(Z.ui)?Z.ui:!1;s.execCommand(Z.cmd,ue,Z.value);break;case"close":F.close();break;case"block":F.block(Z.message);break;case"unblock":F.unblock();break}},OA=(s,F,Z,ue)=>{const we=fi("dialog"),Be=Nu(s.title,we,ue),qe=Df(s),ft=s.buttons.bind(kr=>kr.length===0?I.none():I.some(Cv({buttons:kr},we,ue))),gt=dx(()=>Mr,Ou(()=>or,ue.shared.providers,F)),At={...s.height.fold(()=>({}),kr=>({height:kr+"px","max-height":kr+"px"})),...s.width.fold(()=>({}),kr=>({width:kr+"px","max-width":kr+"px"}))},$t=s.width.isNone()&&s.height.isNone()?["tox-dialog--width-lg"]:[],on=new Gi(s.url,{base_uri:new Gi(window.location.href)}),yn=`${on.protocol}://${on.host}${on.port?":"+on.port:""}`,wn=js(),Mn=(kr,yo)=>I.some(yo),Xn=[kn.config({channel:`${KC}-${we}`,updateState:Mn,initialData:s}),Ca("messages",[Ll(()=>{const kr=wd(Pt.fromDom(window),"message",yo=>{if(on.isSameOrigin(new Gi(yo.raw.origin))){const Xr=yo.raw.data;_0(Xr)?Noe(Z,Mr,Xr):wA(Xr)&&s.onMessage(Mr,Xr)}});wn.set(kr)}),Sh(wn.clear)]),Wu.config({channels:{[r9]:{onReceive:(kr,yo)=>{aa(kr.element,"iframe").each(Xr=>{const No=Xr.dom.contentWindow;a(No)&&No.postMessage(yo,yn)})}}}})],or=fx({id:we,header:Be,body:qe,footer:ft,extraClasses:$t,extraBehaviours:Xn,extraStyles:At},gt,ue),Mr=ts(or);return{dialog:or,instanceApi:Mr}},hx=s=>{const F=s.shared;return{open:(ue,we)=>{const Be=()=>{If.hide(At),we()},qe=qs(f8({name:"close-alert",text:"OK",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"cancel",s)),ft=m1(),gt=Rg(Be,F.providers),At=vi(xp({lazySink:()=>F.getSink(),header:Yu(ft,gt),body:Dh(ue,F.providers),footer:I.some(om(Lg([],[qe.asSpec()]))),onEscape:Be,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[fo(I2,Be)],eventOrder:{}}));If.show(At);const $t=qe.get(At);oa.focus($t)}}},cQ=s=>{const F=s.shared;return{open:(ue,we)=>{const Be=yn=>{If.hide($t),we(yn)},qe=qs(f8({name:"yes",text:"Yes",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"submit",s)),ft=f8({name:"no",text:"No",primary:!1,buttonType:I.some("secondary"),align:"end",enabled:!0,icon:I.none()},"cancel",s),gt=m1(),At=Rg(()=>Be(!1),F.providers),$t=vi(xp({lazySink:()=>F.getSink(),header:Yu(gt,At),body:Dh(ue,F.providers),footer:I.some(om(Lg([],[ft,qe.asSpec()]))),onEscape:()=>Be(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[fo(I2,()=>Be(!1)),fo(c4,()=>Be(!0))],eventOrder:{}}));If.show($t);const on=qe.get($t);oa.focus(on)}}},kL=(s,F)=>Nt(jt("data",F,s)),TL=s=>ek(s,".tox-alert-dialog")||ek(s,".tox-confirm-dialog"),uQ=(s,F,Z)=>F&&Z?[]:[Dl.config({contextual:{lazyContext:()=>I.some(Ya(Pt.fromDom(s.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:ue=>Jb(s,ue.element).map(Be=>({bounds:zw(Be),optScrollEnv:I.some({currentScrollTop:Be.element.dom.scrollTop,scrollElmTop:pc(Be.element).top})})).getOrThunk(()=>({bounds:wl(),optScrollEnv:I.none()}))})],$oe=s=>{const F=s.editor,Z=W3(F),ue=hx(s.backstages.dialog),we=cQ(s.backstages.dialog),Be=(Mn,Xn,Br)=>{if(!y(Xn)){if(Xn.inline==="toolbar")return At(Mn,s.backstages.popup.shared.anchors.inlineDialog(),Br,Xn);if(Xn.inline==="bottom")return $t(Mn,s.backstages.popup.shared.anchors.inlineBottomDialog(),Br,Xn);if(Xn.inline==="cursor")return At(Mn,s.backstages.popup.shared.anchors.cursor(),Br,Xn)}return gt(Mn,Br)},qe=(Mn,Xn)=>ft(Mn,Xn),ft=(Mn,Xn)=>{const Br=or=>{const Mr=OA(or,{closeWindow:()=>{If.hide(Mr.dialog),Xn(Mr.instanceApi)}},F,s.backstages.dialog);return If.show(Mr.dialog),Mr.instanceApi};return be.openUrl(Br,Mn)},gt=(Mn,Xn)=>{const Br=(or,Mr,kr)=>{const yo=Mr,No=Xo({dataValidator:kr,initialData:yo,internalDialog:or},{redial:be.redial,closeWindow:()=>{If.hide(No.dialog),Xn(No.instanceApi)}},s.backstages.dialog);return If.show(No.dialog),No.instanceApi.setData(yo),No.instanceApi};return be.open(Br,Mn)},At=(Mn,Xn,Br,or)=>{const Mr=(kr,yo,Xr)=>{const No=kL(yo,Xr),Jo=os(),ho=s.backstages.popup.shared.header.isPositionedAtTop(),Ci={dataValidator:Xr,initialData:No,internalDialog:kr},mi=()=>Jo.on(vs=>{hc.reposition(vs),(!Z||!ho)&&Dl.refresh(vs)}),qi=Vo(Ci,{redial:be.redial,closeWindow:()=>{Jo.on(hc.hide),F.off("ResizeEditor",mi),Jo.clear(),Br(qi.instanceApi)}},s.backstages.popup,or.ariaAttrs,mi),Fi=vi(hc.sketch({lazySink:s.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:or.persistent?{event:"doNotDismissYet"}:{},...ho?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Bo([Ca("window-manager-inline-events",[fo(I0(),(vs,Ha)=>{Sa(qi.dialog,I2)})]),...uQ(F,Z,ho)]),isExtraPart:(vs,Ha)=>TL(Ha)}));Jo.set(Fi);const Os=()=>{const vs=F.inline?Vr():Pt.fromDom(F.getContainer()),Ha=Ya(vs);return I.some(Ha)};return hc.showWithinBounds(Fi,na(qi.dialog),{anchor:Xn},Os),(!Z||!ho)&&(Dl.refresh(Fi),F.on("ResizeEditor",mi)),qi.instanceApi.setData(No),Li.focusIn(qi.dialog),qi.instanceApi};return be.open(Mr,Mn)},$t=(Mn,Xn,Br,or)=>{const Mr=(kr,yo,Xr)=>{const No=kL(yo,Xr),Jo=os(),ho=s.backstages.popup.shared.header.isPositionedAtTop(),Ci={dataValidator:Xr,initialData:No,internalDialog:kr},mi=()=>Jo.on(vs=>{hc.reposition(vs),Dl.refresh(vs)}),qi=Vo(Ci,{redial:be.redial,closeWindow:()=>{Jo.on(hc.hide),F.off("ResizeEditor ScrollWindow ElementScroll",mi),Jo.clear(),Br(qi.instanceApi)}},s.backstages.popup,or.ariaAttrs,mi),Fi=vi(hc.sketch({lazySink:s.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:or.persistent?{event:"doNotDismissYet"}:{},...ho?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Bo([Ca("window-manager-inline-events",[fo(I0(),(vs,Ha)=>{Sa(qi.dialog,I2)})]),Dl.config({contextual:{lazyContext:()=>I.some(Ya(Pt.fromDom(F.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:vs=>Jb(F,vs.element).map(Ho=>({bounds:zw(Ho),optScrollEnv:I.some({currentScrollTop:Ho.element.dom.scrollTop,scrollElmTop:pc(Ho.element).top})})).getOrThunk(()=>({bounds:wl(),optScrollEnv:I.none()}))})]),isExtraPart:(vs,Ha)=>TL(Ha)}));Jo.set(Fi);const Os=()=>s.backstages.popup.shared.getSink().toOptional().bind(vs=>{const Ha=Jb(F,vs.element),Ho=15,wi=Ha.map(ji=>zw(ji)).getOr(wl()),_a=Ya(Pt.fromDom(F.getContentAreaContainer())),Ki=dl(_a,wi);return I.some(ms(Ki.x,Ki.y,Ki.width,Ki.height-Ho))});return hc.showWithinBounds(Fi,na(qi.dialog),{anchor:Xn},Os),Dl.refresh(Fi),F.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",mi),qi.instanceApi.setData(No),Li.focusIn(qi.dialog),qi.instanceApi};return be.open(Mr,Mn)};return{open:Be,openUrl:qe,alert:(Mn,Xn)=>{ue.open(Mn,Xn)},close:Mn=>{Mn.close()},confirm:(Mn,Xn)=>{we.open(Mn,Xn)}}},Ga=s=>{JB(s),hX(s),mj(s)};var no=()=>{af.add("silver",s=>{Ga(s);let F=()=>wl();const{dialogs:Z,popups:ue,renderUI:we}=qre(s,{getPopupSinkBounds:()=>F()}),Be=()=>{const At=we();return Jb(s,ue.getMothership().element).each(on=>{F=()=>zw(on)}),At};aG.register(s,ue.backstage.shared);const qe=$oe({editor:s,backstages:{popup:ue.backstage,dialog:Z.backstage}}),ft=os(),gt=()=>mY(s,{backstage:ue.backstage},ue.getMothership(),ft);return{renderUI:Be,getWindowManagerImpl:x(qe),getNotificationManagerImpl:gt}})};no()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"math-equation":'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"revision-history":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":'',"export-pdf":'',"export-word":'',"import-word":''}});(function(){const t=m=>{let v=m;return{get:()=>v,set:A=>{v=A}}};var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.Env");const f=m=>m.dispatch("ResizeEditor"),P=m=>v=>v.options.get(m),d=m=>{const v=m.options.register;v("autoresize_overflow_padding",{processor:"number",default:1}),v("autoresize_bottom_margin",{processor:"number",default:50})},l=P("min_height"),n=P("max_height"),c=P("autoresize_overflow_padding"),b=P("autoresize_bottom_margin"),i=m=>m.plugins.fullscreen&&m.plugins.fullscreen.isFullscreen(),O=(m,v)=>{const _=m.getBody();_&&(_.style.overflowY=v?"":"hidden",v||(_.scrollTop=0))},w=(m,v,_,S)=>{var A;const x=parseInt((A=m.getStyle(v,_,S))!==null&&A!==void 0?A:"",10);return isNaN(x)?0:x},y=m=>{if((m==null?void 0:m.type.toLowerCase())==="setcontent"){const v=m;return v.selection===!0||v.paste===!0}else return!1},p=(m,v,_,S)=>{var A;const x=m.dom,R=m.getDoc();if(!R)return;if(i(m)){O(m,!0);return}const M=R.documentElement,T=S?S():c(m),E=(A=l(m))!==null&&A!==void 0?A:m.getElement().offsetHeight;let C=E;const L=w(x,M,"margin-top",!0),D=w(x,M,"margin-bottom",!0);let k=M.offsetHeight+L+D+T;k<0&&(k=0);const I=m.getContainer().offsetHeight,z=m.getContentAreaContainer().offsetHeight,$=I-z;k+$>E&&(C=k+$);const Q=n(m);Q&&C>Q?(C=Q,O(m,!0)):O(m,!1);const j=v.get();if(j.set&&(m.dom.setStyles(m.getDoc().documentElement,{"min-height":0}),m.dom.setStyles(m.getBody(),{"min-height":"inherit"})),C!==j.totalHeight&&(k-T!==j.contentHeight||!j.set)){const U=C-j.totalHeight;if(x.setStyle(m.getContainer(),"height",C+"px"),v.set({totalHeight:C,contentHeight:k,set:!0}),f(m),o.browser.isSafari()&&(o.os.isMacOS()||o.os.isiOS())){const X=m.getWin();X.scrollTo(X.pageXOffset,X.pageYOffset)}m.hasFocus()&&y(_)&&m.selection.scrollIntoView(),(o.browser.isSafari()||o.browser.isChromium())&&U<0&&p(m,v,_,S)}},a=(m,v)=>{const _=()=>b(m);m.on("init",S=>{const A=c(m),x=m.dom;x.setStyles(m.getDoc().documentElement,{height:"auto"}),o.browser.isEdge()||o.browser.isIE()?x.setStyles(m.getBody(),{paddingLeft:A,paddingRight:A,"min-height":0}):x.setStyles(m.getBody(),{paddingLeft:A,paddingRight:A}),p(m,v,S,_)}),m.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",S=>{p(m,v,S,_)})},u=(m,v)=>{m.addCommand("mceAutoResize",()=>{p(m,v)})};var h=()=>{e.add("autoresize",m=>{if(d(m),m.options.isSet("resize")||m.options.set("resize",!1),!m.inline){const v=t({totalHeight:0,contentHeight:0,set:!1});u(m,v),a(m,v)}})};h()})();var t$e=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],n$e=function(t){return t$e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},r$e=function(t,e,o){Object.keys(e).filter(n$e).forEach(function(f){var P=e[f];typeof P=="function"&&(f==="onInit"?P(t,o):o.on(f.substring(2),function(d){return P(d,o)}))})},o$e=function(t,e,o,f){var P=t.modelEvents?t.modelEvents:null,d=Array.isArray(P)?P.join(" "):P;Ni(f,function(l,n){o&&typeof l=="string"&&l!==n&&l!==o.getContent({format:t.outputFormat})&&o.setContent(l)}),o.on(d||"change input undo redo",function(){e.emit("update:modelValue",o.getContent({format:t.outputFormat}))})},i$e=function(t,e,o,f,P,d){f.setContent(d()),o.attrs["onUpdate:modelValue"]&&o$e(e,o,f,P),r$e(t,o.attrs,f)},x0e=0,mOe=function(t){var e=Date.now(),o=Math.floor(Math.random()*1e9);return x0e++,t+"_"+o+x0e+String(e)},a$e=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},_0e=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},s$e=function(t,e){return _0e(t).concat(_0e(e))},l$e=function(t){return t==null},w0e=function(){return{listeners:[],scriptId:mOe("tiny-script"),scriptLoaded:!1}},c$e=function(){var t=w0e(),e=function(P,d,l,n){var c=d.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=P,c.src=l;var b=function(){c.removeEventListener("load",b),n()};c.addEventListener("load",b),d.head&&d.head.appendChild(c)},o=function(P,d,l){t.scriptLoaded?l():(t.listeners.push(l),P.getElementById(t.scriptId)||e(t.scriptId,P,d,function(){t.listeners.forEach(function(n){return n()}),t.scriptLoaded=!0}))},f=function(){t=w0e()};return{load:o,reinitialize:f}},u$e=c$e(),f$e=function(){return typeof window<"u"?window:global},Gk=function(){var t=f$e();return t&&t.tinymce?t.tinymce:null},d$e={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},J2=globalThis&&globalThis.__assign||function(){return J2=Object.assign||function(t){for(var e,o=1,f=arguments.length;od.createCell(c))},U1e({code:Oo(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Do(),sa(l,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=c=>o.cellData.code=c),init:P.init,onKeyUp:d.saveCell},null,8,["modelValue","init","onKeyUp"])):Za("",!0)]),_:2},[t.$devMode&&d.isAppRoute||!t.$devMode?{name:"outcome",fn:Oo(()=>[Ht(l,{modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=c=>o.cellData.code=c),init:P.app_init,disabled:!0},null,8,["modelValue","init"])]),key:"0"}:void 0]),1032,["cell-id","is-dev-mode","hide-cell","cell-name","onSave","onDelete"])}const gOe=hm(g$e,[["render",v$e]]),y$e=36,O0e=1,b$e=2,HL=3,aae=4,x$e=5,_$e=6,w$e=7,O$e=8,S$e=9,k$e=10,T$e=11,C$e=12,A$e=13,M$e=14,E$e=15,P$e=16,R$e=17,S0e=18,L$e=19,vOe=20,yOe=21,k0e=22,I$e=23,D$e=24;function ile(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57}function B$e(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function Jk(t,e,o){for(let f=!1;;){if(t.next<0)return;if(t.next==e&&!f){t.advance();return}f=o&&!f&&t.next==92,t.advance()}}function z$e(t){for(;;){if(t.next<0||t.peek(1)<0)return;if(t.next==36&&t.peek(1)==36){t.advance(2);return}t.advance()}}function F$e(t,e){let o="[{<(".indexOf(String.fromCharCode(e)),f=o<0?e:"]}>)".charCodeAt(o);for(;;){if(t.next<0)return;if(t.next==f&&t.peek(1)==39){t.advance(2);return}t.advance()}}function bOe(t,e){for(;!(t.next!=95&&!ile(t.next));)e!=null&&(e+=String.fromCharCode(t.next)),t.advance();return e}function N$e(t){if(t.next==39||t.next==34||t.next==96){let e=t.next;t.advance(),Jk(t,e,!1)}else bOe(t)}function T0e(t,e){for(;t.next==48||t.next==49;)t.advance();e&&t.next==e&&t.advance()}function C0e(t,e){for(;;){if(t.next==46){if(e)break;e=!0}else if(t.next<48||t.next>57)break;t.advance()}if(t.next==69||t.next==101)for(t.advance(),(t.next==43||t.next==45)&&t.advance();t.next>=48&&t.next<=57;)t.advance()}function A0e(t){for(;!(t.next<0||t.next==10);)t.advance()}function Kk(t,e){for(let o=0;o!=&|~^/",specialVar:"?",identifierQuotes:'"',words:xOe(V$e,$$e)};function U$e(t,e,o,f){let P={};for(let d in ale)P[d]=(t.hasOwnProperty(d)?t:ale)[d];return e&&(P.words=xOe(e,o||"",f)),P}function _Oe(t){return new A0(e=>{var o;let{next:f}=e;if(e.advance(),Kk(f,sae)){for(;Kk(e.next,sae);)e.advance();e.acceptToken(y$e)}else if(f==36&&e.next==36&&t.doubleDollarQuotedStrings)z$e(e),e.acceptToken(HL);else if(f==39||f==34&&t.doubleQuotedStrings)Jk(e,f,t.backslashEscapes),e.acceptToken(HL);else if(f==35&&t.hashComments||f==47&&e.next==47&&t.slashComments)A0e(e),e.acceptToken(O0e);else if(f==45&&e.next==45&&(!t.spaceAfterDashes||e.peek(1)==32))A0e(e),e.acceptToken(O0e);else if(f==47&&e.next==42){e.advance();for(let P=1;;){let d=e.next;if(e.next<0)break;if(e.advance(),d==42&&e.next==47){if(P--,e.advance(),!P)break}else d==47&&e.next==42&&(P++,e.advance())}e.acceptToken(b$e)}else if((f==101||f==69)&&e.next==39)e.advance(),Jk(e,39,!0);else if((f==110||f==78)&&e.next==39&&t.charSetCasts)e.advance(),Jk(e,39,t.backslashEscapes),e.acceptToken(HL);else if(f==95&&t.charSetCasts)for(let P=0;;P++){if(e.next==39&&P>1){e.advance(),Jk(e,39,t.backslashEscapes),e.acceptToken(HL);break}if(!ile(e.next))break;e.advance()}else if(t.plsqlQuotingMechanism&&(f==113||f==81)&&e.next==39&&e.peek(1)>0&&!Kk(e.peek(1),sae)){let P=e.peek(1);e.advance(2),F$e(e,P),e.acceptToken(HL)}else if(f==40)e.acceptToken(w$e);else if(f==41)e.acceptToken(O$e);else if(f==123)e.acceptToken(S$e);else if(f==125)e.acceptToken(k$e);else if(f==91)e.acceptToken(T$e);else if(f==93)e.acceptToken(C$e);else if(f==59)e.acceptToken(A$e);else if(t.unquotedBitLiterals&&f==48&&e.next==98)e.advance(),T0e(e),e.acceptToken(k0e);else if((f==98||f==66)&&(e.next==39||e.next==34)){const P=e.next;e.advance(),t.treatBitsAsBytes?(Jk(e,P,t.backslashEscapes),e.acceptToken(I$e)):(T0e(e,P),e.acceptToken(k0e))}else if(f==48&&(e.next==120||e.next==88)||(f==120||f==88)&&e.next==39){let P=e.next==39;for(e.advance();B$e(e.next);)e.advance();P&&e.next==39&&e.advance(),e.acceptToken(aae)}else if(f==46&&e.next>=48&&e.next<=57)C0e(e,!0),e.acceptToken(aae);else if(f==46)e.acceptToken(M$e);else if(f>=48&&f<=57)C0e(e,!1),e.acceptToken(aae);else if(Kk(f,t.operatorChars)){for(;Kk(e.next,t.operatorChars);)e.advance();e.acceptToken(E$e)}else if(Kk(f,t.specialVar))e.next==f&&e.advance(),N$e(e),e.acceptToken(R$e);else if(Kk(f,t.identifierQuotes))Jk(e,f,!1),e.acceptToken(L$e);else if(f==58||f==44)e.acceptToken(P$e);else if(ile(f)){let P=bOe(e,String.fromCharCode(f));e.acceptToken(e.next==46?S0e:(o=t.words[P.toLowerCase()])!==null&&o!==void 0?o:S0e)}})}const wOe=_Oe(ale),j$e=fS.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,wOe],topRules:{Script:[0,25]},tokenPrec:0});function sle(t){let e=t.cursor().moveTo(t.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function iD(t,e){let o=t.sliceString(e.from,e.to),f=/^([`'"])(.*)\1$/.exec(o);return f?f[2]:o}function EZ(t){return t&&(t.name=="Identifier"||t.name=="QuotedIdentifier")}function Q$e(t,e){if(e.name=="CompositeIdentifier"){let o=[];for(let f=e.firstChild;f;f=f.nextSibling)EZ(f)&&o.push(iD(t,f));return o}return[iD(t,e)]}function M0e(t,e){for(let o=[];;){if(!e||e.name!=".")return o;let f=sle(e);if(!EZ(f))return o;o.unshift(iD(t,f)),e=sle(f)}}function H$e(t,e){let o=Gu(t).resolveInner(e,-1),f=q$e(t.doc,o);return o.name=="Identifier"||o.name=="QuotedIdentifier"||o.name=="Keyword"?{from:o.from,quoted:o.name=="QuotedIdentifier"?t.doc.sliceString(o.from,o.from+1):null,parents:M0e(t.doc,sle(o)),aliases:f}:o.name=="."?{from:e,quoted:null,parents:M0e(t.doc,o),aliases:f}:{from:e,quoted:null,parents:[],empty:!0,aliases:f}}const Z$e=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function q$e(t,e){let o;for(let P=e;!o;P=P.parent){if(!P)return null;P.name=="Statement"&&(o=P)}let f=null;for(let P=o.firstChild,d=!1,l=null;P;P=P.nextSibling){let n=P.name=="Keyword"?t.sliceString(P.from,P.to).toLowerCase():null,c=null;if(!d)d=n=="from";else if(n=="as"&&l&&EZ(P.nextSibling))c=iD(t,P.nextSibling);else{if(n&&Z$e.has(n))break;l&&EZ(P)&&(c=iD(t,P))}c&&(f||(f=Object.create(null)),f[c]=Q$e(t,l)),l=/Identifier$/.test(P.name)?P:null}return f}function W$e(t,e){return t?e.map(o=>Object.assign(Object.assign({},o),{label:t+o.label+t,apply:void 0})):e}const Y$e=/^\w*$/,X$e=/^[`'"]?\w*[`'"]?$/;class Bue{constructor(){this.list=[],this.children=void 0}child(e,o){let f=this.children||(this.children=Object.create(null)),P=f[e];return P||(e&&this.list.push(OOe(e,"type",o)),f[e]=new Bue)}addCompletions(e){for(let o of e){let f=this.list.findIndex(P=>P.label==o.label);f>-1?this.list[f]=o:this.list.push(o)}}}function OOe(t,e,o){return/[^\w\xb5-\uffff]/.test(t)?{label:t,type:e,apply:o+t+o}:{label:t,type:e}}function G$e(t,e,o,f,P,d){var l;let n=new Bue,c=((l=d==null?void 0:d.spec.identifierQuotes)===null||l===void 0?void 0:l[0])||'"',b=n.child(P||"",c);for(let i in t){let O=i.replace(/\\?\./g,y=>y=="."?"\0":y).split("\0"),w=O.length==1?b:n;for(let y of O)w=w.child(y.replace(/\\\./g,"."),c);for(let y of t[i])y&&w.list.push(typeof y=="string"?OOe(y,"property",c):y)}return e&&b.addCompletions(e),o&&n.addCompletions(o),n.addCompletions(b.list),f&&n.addCompletions(b.child(f,c).list),i=>{let{parents:O,from:w,quoted:y,empty:p,aliases:a}=H$e(i.state,i.pos);if(p&&!i.explicit)return null;a&&O.length==1&&(O=a[O[0]]||O);let u=n;for(let v of O){for(;!u.children||!u.children[v];)if(u==n)u=b;else if(u==b&&f)u=u.child(f,c);else return null;u=u.child(v,c)}let h=y&&i.state.sliceDoc(i.pos,i.pos+1)==y,m=u.list;return u==n&&a&&(m=m.concat(Object.keys(a).map(v=>({label:v,type:"constant"})))),{from:w,to:h?i.pos+1:void 0,options:W$e(y,m),validFor:y?X$e:Y$e}}}function K$e(t,e){let o=Object.keys(t).map(f=>({label:e?f.toUpperCase():f,type:t[f]==yOe?"type":t[f]==vOe?"keyword":"variable",boost:-1}));return Mce(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],oq(o))}let J$e=j$e.configure({props:[OT.add({Statement:dI()}),vS.add({Statement(t){return{from:t.firstChild.to,to:t.to}},BlockComment(t){return{from:t.from+2,to:t.to-2}}}),gS({Keyword:Gn.keyword,Type:Gn.typeName,Builtin:Gn.standard(Gn.name),Bits:Gn.number,Bytes:Gn.string,Bool:Gn.bool,Null:Gn.null,Number:Gn.number,String:Gn.string,Identifier:Gn.name,QuotedIdentifier:Gn.special(Gn.string),SpecialVar:Gn.special(Gn.name),LineComment:Gn.lineComment,BlockComment:Gn.blockComment,Operator:Gn.operator,"Semi Punctuation":Gn.punctuation,"( )":Gn.paren,"{ }":Gn.brace,"[ ]":Gn.squareBracket})]});class zue{constructor(e,o,f){this.dialect=e,this.language=o,this.spec=f}get extension(){return this.language.extension}static define(e){let o=U$e(e,e.keywords,e.types,e.builtin),f=cS.define({name:"sql",parser:J$e.configure({tokenizers:[{from:wOe,to:_Oe(o)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new zue(o,f,e)}}function eVe(t,e=!1){return K$e(t.dialect.words,e)}function tVe(t,e=!1){return t.language.data.of({autocomplete:eVe(t,e)})}function nVe(t){return t.schema?G$e(t.schema,t.tables,t.schemas,t.defaultTable,t.defaultSchema,t.dialect||Fue):()=>null}function rVe(t){return t.schema?(t.dialect||Fue).language.data.of({autocomplete:nVe(t)}):[]}function E0e(t={}){let e=t.dialect||Fue;return new gT(e.language,[rVe(t),tVe(e,!!t.upperCaseKeywords)])}const Fue=zue.define({}),oVe={components:{cell:zq,codemirror:sq,"v-data-table":Iq},computed:{isAppRoute(){return _T().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode()},e=IO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)}]);return this.$devMode&&!this.isAppRoute?[Vv.highest(e),E0e(),gM,pM({override:[]})]:[jl.readOnly.of(!0),Vv.highest(e),E0e(),gM,pM({override:[]})]},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},inheritAttrs:!1,emits:["runCode","deleteCell","createCell","saveCell"],data(){return{isFocused:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},setup(){const t=Ai(null);return{view:t,handleReady:o=>{t.value=o.view}}},mounted(){},methods:{runCode(){this.$emit("runCode",this.cellData.id,this.cellData.nonReactive)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){this.$devMode&&this.$emit("saveCell",this.cellData.id,this.cellData.code,"","")},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},updateShowTable(t){this.cellData.showTable=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const iVe={key:2},aVe={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},sVe={class:"text-ellipsis app-static-name"},lVe={key:3},cVe={class:"text-caption text-disabled text-right"},uVe={class:"text-p"};function fVe(t,e,o,f,P,d){const l=Zd("codemirror"),n=Zd("cell");return Do(),sa(n,{"cell-type":"sql","cell-id":o.cellData.id,"hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,showTable:o.cellData.showTable,"cell-name":o.cellData.cellName,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:d.runCode,onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=c=>d.expandCodeUpdate(c)),onHideCode:e[6]||(e[6]=c=>d.hideCode(c)),onUpdateReactivity:e[7]||(e[7]=c=>d.updateReactivity(c)),onUpdateShowTable:e[8]||(e[8]=c=>d.updateShowTable(c)),onRenameCell:e[9]||(e[9]=c=>d.renameCell(c)),onAddCell:e[10]||(e[10]=c=>d.createCell(c))},{code:Oo(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Do(),sa(um,{key:0,modelValue:o.cellData.variable_name,"onUpdate:modelValue":e[0]||(e[0]=c=>o.cellData.variable_name=c),label:"Enter SQL variable name",density:"compact"},null,8,["modelValue"])):Za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Do(),sa(l,{key:1,modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=c=>o.cellData.code=c),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):(Do(),Da("div",iVe,[o.cellData.hideCode?(Do(),Da("h4",aVe,sc(o.cellData.cellName),1)):(Do(),sa(Z_e,{key:1,modelValue:P.expanded,"onUpdate:modelValue":e[4]||(e[4]=c=>P.expanded=c)},{default:Oo(()=>[Ht(H_e,{modelValue:P.expanded,"onUpdate:modelValue":e[3]||(e[3]=c=>P.expanded=c),"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Ht(_Z,{class:"text-bluegrey-darken-1"},{default:Oo(()=>[ha("h4",sVe,sc(o.cellData.cellName),1)]),_:1}),Ht(xZ,null,{default:Oo(()=>[Ht(l,{modelValue:o.cellData.code,"onUpdate:modelValue":e[2]||(e[2]=c=>o.cellData.code=c),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Do(),Da("div",lVe,[ha("p",cVe,sc(d.shortcutText)+" to run",1)])):Za("",!0)]),outcome:Oo(()=>[t.$devMode&&!d.isAppRoute||o.cellData.showTable?(Do(!0),Da(ma,{key:0},ob(o.cellData.components,c=>(Do(),sa(xM,{key:c.id},{default:Oo(()=>[(Do(),sa(kI(c.component),Ii(c,{modelValue:c.value,"onUpdate:modelValue":b=>c.value=b},{[tI(c.triggerEvent)]:d.runCode}),null,16,["modelValue","onUpdate:modelValue"]))]),_:2},1024))),128)):Za("",!0),ha("div",uVe,sc(o.cellData.output),1)]),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","showTable","cell-name","currentlyExecutingCell","isCodeRunning","is-dev-mode","onPlay","onDelete"])}const SOe=hm(oVe,[["render",fVe],["__scopeId","data-v-0948e122"]]),dVe={components:{codemirror:sq},data:()=>({updatingDependencies:!1,ztAliases:Kh}),emits:["updateDependencies"],props:{dependencies:{type:Object,required:!0},dependencyOutput:{type:Object,required:!0}},computed:{extensions(){return[jl.readOnly.of(!0),hOe(),gM]}},methods:{async updateDependencies(){this.dependencyOutput.isLoading=!0,this.$emit("updateDependencies",this.dependencies)}}},hVe=ha("span",{class:"text-h5"},"Add Dependencies",-1),pVe=ha("a",{href:"https://pip.pypa.io/en/stable/reference/requirements-file-format/",target:"_blank"},"pip requirements file specification",-1),mVe={class:"d-flex justify-center"};function gVe(t,e,o,f,P,d){const l=Zd("codemirror");return Do(),sa(Eq,{modelValue:t.updatingDependencies,"onUpdate:modelValue":e[3]||(e[3]=n=>t.updatingDependencies=n),width:"1024"},{activator:Oo(({props:n})=>[Ht(ls,Ii({color:"bluegrey-darken-4"},n,{icon:"mdi-package",class:"text-bluegrey"}),null,16)]),default:Oo(()=>[Ht(BO,null,{default:Oo(()=>[Ht(PD,null,{default:Oo(()=>[hVe]),_:1}),Ht(r_e,null,{default:Oo(()=>[Ss(" Versions must adhere to "),pVe,Ss(". Examples: '==1.0.0' '!=1.5.0,>=1.4.1' etc. ")]),_:1}),Ht(m_,null,{default:Oo(()=>[(Do(!0),Da(ma,null,ob(o.dependencies.dependencies,n=>(Do(),sa(zf,null,{default:Oo(()=>[Ht(Dq,null,{default:Oo(()=>[Ht(hT,null,{default:Oo(()=>[Ht(um,{modelValue:n.package,"onUpdate:modelValue":c=>n.package=c,label:"Package (required)"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),Ht(hT,null,{default:Oo(()=>[Ht(um,{modelValue:n.version,"onUpdate:modelValue":c=>n.version=c,label:"Version"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),Ht(hT,{cols:"1"},{default:Oo(()=>[Ht(ls,{icon:"",color:"primary"},{default:Oo(()=>[Ht(Al,{color:"black",onClick:c=>{var b;return(b=o.dependencies.dependencies)==null?void 0:b.splice(o.dependencies.dependencies.indexOf(n),1)}},{default:Oo(()=>[Ss("mdi-delete")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256)),Ht(zf,{class:"d-flex justify-center align-center"},{default:Oo(()=>[Ht(ls,{icon:"mdi-plus",variant:"text",onClick:e[0]||(e[0]=n=>{var c;return(c=o.dependencies.dependencies)==null?void 0:c.push({package:"",version:""})}),text:"Add Dependency",class:"black--text"})]),_:1}),o.dependencyOutput.output?(Do(),sa(zf,{key:0},{default:Oo(()=>[Ht(l,{modelValue:o.dependencyOutput.output,"onUpdate:modelValue":e[1]||(e[1]=n=>o.dependencyOutput.output=n),style:{height:"400px"},"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})):Za("",!0)]),_:1}),Ht(n_e,null,{default:Oo(()=>[o.dependencyOutput.isLoading?Za("",!0):(Do(),sa(ls,{key:0,color:"primary",variant:"flat",onClick:d.updateDependencies,text:"Install"},null,8,["onClick"])),ha("div",mVe,[o.dependencyOutput.isLoading?(Do(),sa(LM,{key:0,indeterminate:"",color:"primary"})):Za("",!0)]),Ht(V_e),Ht(ls,{color:"error",variant:"text",onClick:e[2]||(e[2]=n=>t.updatingDependencies=!1),text:"Close"})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const kOe=hm(dVe,[["render",gVe]]),P0e=Hg({__name:"CommentMenu",emits:["deleteComment","editComment"],setup(t,{emit:e}){const o=LD();return(f,P)=>(Do(),sa(pS,null,{activator:Oo(({props:d})=>[Ht(ls,Ii({icon:`ztIcon:${wa(Kh).more}`},d,{variant:"plain",size:"small"}),null,16,["icon"])]),default:Oo(()=>[Ht(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Ht(zf,{disabled:!wa(o).editorAvailable,onClick:P[0]||(P[0]=d=>e("editComment"))},{prepend:Oo(()=>[Ht(Al,{icon:`ztIcon:${wa(Kh).edit}`},null,8,["icon"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Edit")]),_:1})]),_:1},8,["disabled"]),Ht(zf,{"base-color":"error",onClick:P[1]||(P[1]=d=>e("deleteComment"))},{prepend:Oo(()=>[Ht(Al,{icon:`ztIcon:${wa(Kh).delete}`},null,8,["icon"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Delete")]),_:1})]),_:1})]),_:1})]),_:1}))}}),vVe={class:"d-flex justify-end"},lae=Hg({__name:"CommentTextarea",props:{isSaving:Boolean,modelValue:String},emits:["cancel","submit","update:modelValue"],setup(t,{emit:e}){const o=ti(null),f=ti(null);return sg(()=>{var P,d;(P=f.value)==null||P.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(d=o.value)==null||d.focus()}),(P,d)=>(Do(),Da("div",{class:"d-flex flex-column",style:{flex:"1"},ref_key:"commentEditContainer",ref:f},[Ht(RD,{"model-value":t.modelValue,ref_key:"commentEditTextArea",ref:o,"onUpdate:modelValue":d[0]||(d[0]=l=>e("update:modelValue",l)),variant:"outlined"},null,8,["model-value"]),ha("div",vVe,[Ht(ls,{variant:"text",onClick:d[1]||(d[1]=l=>e("cancel"))},{default:Oo(()=>[Ss("Cancel")]),_:1}),Ht(ls,{color:"primary",class:"ml-2",loading:t.isSaving,disabled:!t.modelValue||t.isSaving,onClick:d[2]||(d[2]=l=>e("submit"))},{default:Oo(()=>[Ss("Submit")]),_:1},8,["loading","disabled"])])],512))}});var Gm=[];for(var cae=0;cae<256;++cae)Gm.push((cae+256).toString(16).slice(1));function yVe(t,e=0){return(Gm[t[e+0]]+Gm[t[e+1]]+Gm[t[e+2]]+Gm[t[e+3]]+"-"+Gm[t[e+4]]+Gm[t[e+5]]+"-"+Gm[t[e+6]]+Gm[t[e+7]]+"-"+Gm[t[e+8]]+Gm[t[e+9]]+"-"+Gm[t[e+10]]+Gm[t[e+11]]+Gm[t[e+12]]+Gm[t[e+13]]+Gm[t[e+14]]+Gm[t[e+15]]).toLowerCase()}var oH,bVe=new Uint8Array(16);function xVe(){if(!oH&&(oH=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!oH))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oH(bVe)}var _Ve=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const R0e={randomUUID:_Ve};function TOe(t,e,o){if(R0e.randomUUID&&!e&&!t)return R0e.randomUUID();t=t||{};var f=t.random||(t.rng||xVe)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,e){o=o||0;for(var P=0;P<16;++P)e[o+P]=f[P];return e}return yVe(f)}const wVe={class:"messages"},OVe={class:"message mb-4"},SVe={class:"d-flex justify-space-between align-start"},kVe={key:1,class:"message__content"},TVe={class:"d-flex align-center"},CVe={class:"d-flex align-center"},AVe={class:"message__timestamp"},MVe={class:"message mb-4 d-flex"},EVe={class:"ml-6 flex-1-1"},PVe={class:"d-flex justify-space-between align-start"},RVe={key:1,class:"message__content"},LVe={class:"d-flex align-center"},IVe={class:"d-flex align-center"},DVe={class:"message__timestamp"},BVe={key:0,class:"text-box"},zVe=Hg({__name:"Comment",props:{comment:{type:Object,required:!0}},setup(t){const e=t,o=LD(),f=Ai(""),P=Ai(!1),d=Ai(!1),l=Ai(void 0),n=Ai(""),c=Ai(!1);function b(a){o.editorAvailable=!1,l.value=a.id,n.value=a.comment}function i(){o.editorAvailable=!0,l.value=void 0}async function O(a,u){l.value&&(c.value=!0,await o.editComment(l.value,a,n.value,u),c.value=!1,l.value=void 0,n.value="",o.editorAvailable=!0)}async function w(a,u,h){await o.deleteComment(a,u,h)}async function y(){d.value=!0;const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},u=Intl.DateTimeFormat("en-US",a).format(new Date),h={id:TOe(),cell:e.comment.cell,userName:"",date:u,comment:f.value,replies:[],resolved:!1};await o.replyComment(e.comment.id,h),d.value=!1,f.value="",P.value=!1,o.editorAvailable=!0}async function p(a,u){await o.resolveComment(a,u)}return(a,u)=>(Do(),Da("div",wVe,[ha("div",OVe,[ha("div",SVe,[wa(l)===t.comment.id?(Do(),sa(lae,{key:0,modelValue:wa(n),"onUpdate:modelValue":u[0]||(u[0]=h=>Dc(n)?n.value=h:null),isSaving:wa(c),onCancel:i,onSubmit:u[1]||(u[1]=h=>O(t.comment.cell.cellId??""))},null,8,["modelValue","isSaving"])):(Do(),Da("p",kVe,sc(t.comment.comment),1)),ha("div",TVe,[!t.comment.resolved&&!wa(l)?(Do(),sa(ls,{key:0,icon:"$success",variant:"plain",ripple:!1,onClick:u[2]||(u[2]=()=>p(t.comment.id,t.comment.cell.cellId??""))})):Za("",!0),wa(l)?Za("",!0):(Do(),sa(P0e,{key:1,onEditComment:u[3]||(u[3]=()=>{t.comment.resolved||b(t.comment)}),onDeleteComment:u[4]||(u[4]=()=>w(t.comment.id,t.comment.cell.cellId??""))}))])]),ha("div",CVe,[ha("p",AVe,sc(t.comment.date),1)])]),(Do(!0),Da(ma,null,ob(t.comment.replies,h=>(Do(),Da("div",MVe,[Ht(bM,{class:"indicator",vertical:"",color:"bluegrey",thickness:1}),ha("div",EVe,[ha("div",PVe,[wa(l)===h.id?(Do(),sa(lae,{key:0,modelValue:wa(n),"onUpdate:modelValue":u[5]||(u[5]=m=>Dc(n)?n.value=m:null),isSaving:wa(c),onCancel:i,onSubmit:u[6]||(u[6]=()=>O(t.comment.cell.cellId??"",t.comment.id))},null,8,["modelValue","isSaving"])):(Do(),Da("p",RVe,sc(h.comment),1)),ha("div",LVe,[ha("div",null,[wa(l)?Za("",!0):(Do(),sa(P0e,{key:0,onEditComment:()=>{t.comment.resolved||b(h)},onDeleteComment:()=>w(h.id,t.comment.cell.cellId??"",t.comment.id)},null,8,["onEditComment","onDeleteComment"]))])])]),ha("div",IVe,[ha("p",DVe,sc(h.date),1)])])]))),256)),wa(P)?(Do(),Da("div",BVe,[Ht(lae,{modelValue:wa(f),"onUpdate:modelValue":u[7]||(u[7]=h=>Dc(f)?f.value=h:null),"is-saving":wa(d),onCancel:u[8]||(u[8]=()=>{wa(o).editorAvailable=!0,P.value=!1}),onSubmit:y},null,8,["modelValue","is-saving"])])):Za("",!0),!wa(P)&&!t.comment.resolved?(Do(),sa(ls,{key:1,variant:"text",slim:"",disabled:!wa(o).editorAvailable,onClick:u[9]||(u[9]=()=>{wa(o).editorAvailable=!1,P.value=!0})},{default:Oo(()=>[Ss("Reply")]),_:1},8,["disabled"])):Za("",!0)]))}});const FVe=hm(zVe,[["__scopeId","data-v-588566c2"]]),COe=t=>(Mle("data-v-793087b5"),t=t(),Ele(),t),NVe={key:0,class:"d-flex justify-space-between align-center pa-4"},$Ve={class:"d-flex align-center"},VVe={class:"justify-right"},UVe={class:"content ma-4"},jVe={class:"d-flex justify-space-between align-center"},QVe={class:"mt-6 flex-1-1"},HVe={key:0,class:"empty-state"},ZVe=COe(()=>ha("p",null,"No comments yet",-1)),qVe=COe(()=>ha("p",{class:"empty-state__text mt-2"}," Add a comment by clicking on the cell you want to add a comment to. ",-1)),WVe={key:1,class:"comments-wrapper"},YVe={class:"d-flex justify-end"},XVe=Hg({__name:"Comments",setup(t){const e=LD(),{addComment:o,closeComments:f}=e,{selectedCell:P}=kue(e),d=ti(null),l=ti(null),n=Un(()=>{var u;return(u=P.value)==null?void 0:u.cellType}),c=Un(()=>{var u;switch((u=P.value)==null?void 0:u.cellType){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),b=Ai(!1),i=Ai(!1),O=Ai(""),w=Ai(!1),y=Un(()=>e.displayedComments.filter(u=>b.value?u.resolved:!u.resolved));Ni(P,()=>{b.value=!1,i.value=!1,O.value="",w.value=!1});function p(){i.value=!i.value,e.editorAvailable=!1,lc(()=>{var u,h;(u=d.value)==null||u.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(h=d.value)==null||h.focus()})}async function a(){w.value=!0;const u={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},h=Intl.DateTimeFormat("en-US",u).format(new Date),m={id:TOe(),cell:e.selectedCell,userName:"",date:h,comment:O.value,replies:[],resolved:!1};await o(m),w.value=!1,O.value="",i.value=!1,e.editorAvailable=!0}return(u,h)=>(Do(),sa(BO,{class:"card"},{default:Oo(()=>[wa(P)?(Do(),Da("div",NVe,[ha("div",$Ve,[Ht(Al,{icon:`ztIcon:${wa(Kh)[wa(n)??"code"]}`,color:wa(c),class:"mr-2"},null,8,["icon","color"]),ha("p",{class:"mb-0 font-weight-bold",style:cD({color:wa(c)})},sc(wa(P).cellName),5)]),ha("div",VVe,[wa(b)?Za("",!0):(Do(),sa(ls,{key:0,icon:"mdi-comment-plus-outline",color:"bluegrey-darken-4",disabled:!wa(e).editorAvailable,onClick:p},null,8,["disabled"])),Ht(ls,{icon:"mdi:mdi-close",variant:"text",ripple:!1,onClick:h[0]||(h[0]=m=>wa(f)())})])])):Za("",!0),ha("div",UVe,[ha("div",jVe,[Ht(l2e,{modelValue:wa(b),"onUpdate:modelValue":h[1]||(h[1]=m=>Dc(b)?b.value=m:null),border:!1,mandatory:"force",color:"primary",rounded:"pill"},{default:Oo(()=>[Ht(ls,{value:!1,class:"mr-4"},{default:Oo(()=>[Ss("Open")]),_:1}),Ht(ls,{value:!0,class:"mr-4"},{default:Oo(()=>[Ss("Resolved")]),_:1})]),_:1},8,["modelValue"])]),ha("div",QVe,[!wa(e).displayedComments.length&&!wa(i)?(Do(),Da("div",HVe,[Ht(Al,{icon:`ztIcon:${wa(Kh).message}`},null,8,["icon"]),ZVe,qVe])):(Do(),Da("div",WVe,[(Do(!0),Da(ma,null,ob(wa(y),m=>(Do(),sa(FVe,{comment:m},null,8,["comment"]))),256)),wa(i)?(Do(),Da("div",{key:0,class:"text-box",ref_key:"addCommentContainer",ref:l},[Ht(RD,{variant:"outlined",modelValue:wa(O),"onUpdate:modelValue":h[2]||(h[2]=m=>Dc(O)?O.value=m:null),ref_key:"addCommentTextArea",ref:d},null,8,["modelValue"]),ha("div",YVe,[Ht(ls,{variant:"text",onClick:h[3]||(h[3]=()=>{wa(e).editorAvailable=!0,i.value=!1})},{default:Oo(()=>[Ss("Cancel")]),_:1}),Ht(ls,{color:"primary",class:"ml-2",disabled:!wa(O)||wa(w),loading:wa(w),onClick:h[4]||(h[4]=m=>a())},{default:Oo(()=>[Ss("Submit")]),_:1},8,["disabled","loading"])])],512)):Za("",!0)]))])])]),_:1}))}});const GVe=hm(XVe,[["__scopeId","data-v-793087b5"]]),KVe={props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},inheritAttrs:!1,emits:["runCode","deleteCell","saveCell","createCell","componentValueChange","copilotCompletion","updateTimers"],components:{"add-cell":Sue,CodeComponent:nwe,MarkdownComponent:pOe,EditorComponent:gOe,SQLComponent:SOe,PackageComponent:kOe},data(){return{menu_items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],concatenatedCodeCache:{lastCellId:"",code:"",length:0}}},computed:{isAppRoute(){return _T().path==="/app"}},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},runCode(t,e,o){this.$emit("runCode",t,e,o)},deleteCell(t){this.$emit("deleteCell",t)},saveCell(t,e,o,f){this.$emit("saveCell",t,e,o,f)},createCodeCell(t,e){this.$emit("createCell",t,e)},componentValueChange(t,e,o,f){this.$emit("componentValueChange",t,e,o,f)},copilotCompletion(t,e,o,f){this.$emit("copilotCompletion",t,e,o,f)},updateTimers(t,e){this.$emit("updateTimers",t,e)}}};function JVe(t,e,o,f,P,d){const l=Zd("add-cell");return Do(),Da(ma,null,[Ht(xM,{style:{"margin-top":"12px"}},{default:Oo(()=>[t.$devMode&&!d.isAppRoute?(Do(),sa(l,{key:0,onCreateCodeCell:e[0]||(e[0]=n=>d.createCodeCell("",n))})):Za("",!0)]),_:1}),(Do(!0),Da(ma,null,ob(o.notebook.cells,n=>(Do(),sa(xM,{class:Nv(["cell-container",{"cell-container--app":!t.$devMode||d.isAppRoute}])},{default:Oo(()=>[n.cellType==="code"?(Do(),sa(kI(d.getComponent(n.cellType)),{key:0,cellData:n,completions:o.completions[n.id],currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.updateTimers},null,40,["cellData","completions","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])):(Do(),sa(kI(d.getComponent(n.cellType)),{key:1,cellData:n,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell},null,40,["cellData","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell"]))]),_:2},1032,["class"]))),256))],64)}const eUe=hm(KVe,[["render",JVe]]),tUe=Hg({name:"SignInDialogComponent",setup(){const t=ti(!1),e=ti(!1),o=ti(!1),f=ti(null),P=async()=>{try{const O=await fu.post("copilot/start_node_server",{});console.log("Copilot started successfully")}catch(O){console.error("Error during starting the Node server:",O)}},d=async()=>{try{const O=await fu.post("copilot/check_status",{});b(O.data)}catch(O){console.error("Error during initial status check:",O)}},l=async()=>{try{const O=await fu.post("copilot/sign_in_initiate",{});b(O.data)}catch(O){console.error("Error during sign in initiation:",O)}},n=async()=>{try{const O=await fu.post("copilot/sign_in_confirm",{userCode:f.value.userCode});b(O.data)}catch(O){console.error("Error during sign in confirmation:",O)}},c=async()=>{try{await fu.post("copilot/sign_out",{}),o.value=!1,f.value=null,Lv.copilot_active=!1}catch(O){console.error("Error during sign out:",O)}},b=O=>{f.value=O,O.status==="OK"||O.status==="AlreadySignedIn"?(o.value=!0,Lv.copilot_active=!0):O.status==="NotSignedIn"&&(o.value=!1)};return{dialog:t,isSignedIn:o,serverStarted:e,signInData:f,signInInitiate:l,confirmSignIn:n,signOut:c,startServerAndCheckStatus:async()=>{try{await P(),setTimeout(async()=>{await d()},2500),e.value=!0}catch(O){console.error("Error during starting the server or checking status:",O)}},ztAliases:Kh}}}),nUe=ha("span",{class:"text-h4"},"GitHub Copilot ",-1),rUe={key:1},oUe={key:0},iUe=ha("p",null,"Please go to the following URL and enter the code to sign in:",-1),aUe=ha("strong",null,"URL:",-1),sUe=["href"],lUe=ha("strong",null,"Code:",-1),cUe={key:1},uUe={key:2};function fUe(t,e,o,f,P,d){return Do(),sa(Eq,{modelValue:t.dialog,"onUpdate:modelValue":e[1]||(e[1]=l=>t.dialog=l),"max-width":"400px"},{activator:Oo(({props:l})=>[Ht(ls,Ii({color:"bluegrey-darken-4"},l,{icon:`ztIcon:${t.ztAliases.copilot}`}),null,16,["icon"])]),default:Oo(()=>[Ht(BO,null,{default:Oo(()=>[Ht(PD,null,{default:Oo(()=>[nUe]),_:1}),Ht(pue,null,{default:Oo(()=>[t.serverStarted?t.serverStarted&&!t.isSignedIn?(Do(),Da("div",rUe,[t.signInData&&t.signInData.verificationUri&&t.signInData.userCode?(Do(),Da("div",oUe,[iUe,ha("p",null,[aUe,ha("a",{href:t.signInData.verificationUri,target:"_blank"},sc(t.signInData.verificationUri),9,sUe)]),ha("p",null,[lUe,Ss(" "+sc(t.signInData.userCode),1)]),Ht(ls,{color:"primary",onClick:t.confirmSignIn},{default:Oo(()=>[Ss("I Signed In")]),_:1},8,["onClick"])])):t.signInData&&t.signInData.status&&t.signInData.user?(Do(),Da("div",cUe,[ha("p",null,"Status: "+sc(t.signInData.status),1),ha("p",null,"User: "+sc(t.signInData.user),1)])):(Do(),Da("div",uUe,[Ht(ls,{color:"primary",onClick:t.signInInitiate},{default:Oo(()=>[Ss("Sign In")]),_:1},8,["onClick"])]))])):t.isSignedIn?(Do(),sa(ls,{key:2,color:"primary",onClick:t.signOut},{default:Oo(()=>[Ss("Sign Out")]),_:1},8,["onClick"])):Za("",!0):(Do(),sa(ls,{key:0,color:"primary",onClick:t.startServerAndCheckStatus},{default:Oo(()=>[Ss("Start Server ")]),_:1},8,["onClick"]))]),_:1}),Ht(ls,{class:"ma-2",icon:"mdi:mdi-close",variant:"plain",position:"absolute",location:"top right",onClick:e[0]||(e[0]=l=>t.dialog=!1)})]),_:1})]),_:1},8,["modelValue"])}const dUe=hm(tUe,[["render",fUe]]),hUe=ha("span",{class:"text-h5"},"Publish Notebook",-1),pUe=ha("span",null,[Ss("Need an API Key? Create an account "),ha("a",{href:"https://www.zero-true.com/contact",target:"_blank"},"here")],-1),mUe=ha("br",null,null,-1),gUe=ha("br",null,null,-1),vUe={class:"d-flex justify-center"},yUe=Hg({__name:"ShareComponent",setup(t){const e=ti(!1),o=ti({userName:"",projectName:"",apiKey:"",teamName:""}),f=ti(!1),P={required:n=>!!n||"Required."},d=ti(!1),l=async()=>{if(f.value){d.value=!0;try{await fu.post("api/share_notebook",o.value),console.log("Share request submitted successfully"),e.value=!1}catch(n){console.error("Error submitting share request:",n)}d.value=!1}};return(n,c)=>(Do(),sa(Eq,{modelValue:e.value,"onUpdate:modelValue":c[6]||(c[6]=b=>e.value=b),"max-width":"600px"},{activator:Oo(({props:b})=>[Ht(ls,Ii(b,{"prepend-icon":`ztIcon:${wa(Kh).share}`,variant:"flat",ripple:"",color:"primary",class:"text-bluegrey-darken-4"}),{default:Oo(()=>[Ss(" Publish ")]),_:2},1040,["prepend-icon"])]),default:Oo(()=>[Ht(BO,null,{default:Oo(()=>[Ht(PD,null,{default:Oo(()=>[hUe]),_:1}),Ht(pue,null,{default:Oo(()=>[Ht(NDe,{ref:"form",modelValue:f.value,"onUpdate:modelValue":c[5]||(c[5]=b=>f.value=b),onSubmit:DH(l,["prevent"])},{default:Oo(()=>[Ht(um,{label:"User Name",modelValue:o.value.userName,"onUpdate:modelValue":c[0]||(c[0]=b=>o.value.userName=b),rules:[P.required],required:""},null,8,["modelValue","rules"]),Ht(um,{label:"Project Name",modelValue:o.value.projectName,"onUpdate:modelValue":c[1]||(c[1]=b=>o.value.projectName=b),rules:[P.required],required:""},null,8,["modelValue","rules"]),Ht(um,{label:"API Key",modelValue:o.value.apiKey,"onUpdate:modelValue":c[2]||(c[2]=b=>o.value.apiKey=b),rules:[P.required],required:""},null,8,["modelValue","rules"]),Ht(um,{label:"Team Name (Optional)",modelValue:o.value.teamName,"onUpdate:modelValue":c[3]||(c[3]=b=>o.value.teamName=b)},null,8,["modelValue"]),pUe,mUe,gUe,Ht(Dq,{justify:"space-between"},{default:Oo(()=>[Ht(hT,{cols:"auto"},{default:Oo(()=>[d.value?Za("",!0):(Do(),sa(ls,{key:0,type:"submit",color:"primary"},{default:Oo(()=>[Ss("Publish")]),_:1})),ha("div",vUe,[d.value?(Do(),sa(LM,{key:0,indeterminate:"",color:"primary"})):Za("",!0)])]),_:1}),Ht(hT,{cols:"auto"},{default:Oo(()=>[Ht(ls,{onClick:c[4]||(c[4]=b=>e.value=!1),color:"error"},{default:Oo(()=>[Ss("Cancel")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onSubmit"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});class L0e{constructor(e){_c(this,"timerId",null);_c(this,"duration");this.duration=e}start(e){this.timerId===null&&(this.timerId=window.setTimeout(()=>{e(),this.timerId=null},this.duration))}stop(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}}const bUe={props:{currentPath:{type:String,required:!0}},emits:["file-uploaded"],data:()=>({uploadingFile:!1,fileInput:null,formData:null,fileName:"",snackbar:!1,snackbarText:"",ztAliases:Kh}),methods:{onDrop(t){var o;t.preventDefault();const e=(o=t.dataTransfer)==null?void 0:o.files;e&&e.length>0?this.handleFileUpload(e[0]):console.error("No file dropped")},onClickBrowseFiles(){this.$refs.fileInput&&this.$refs.fileInput.click()},handleFileChange(t){const e=t.target.files;e&&e.length>0?this.handleFileUpload(e[0]):console.error("No file selected")},handleFileUpload(t){this.formData=new FormData,this.formData.append("file",t),this.fileName=t.name,console.log(t)},async submitFile(){if(this.formData)try{this.formData.append("path",this.currentPath);const t=await fu.post("api/upload_file",this.formData,{headers:{"Content-Type":"multipart/form-data"}});console.log("File processed",t.data),this.snackbarText="File uploaded successfully",this.snackbar=!0,this.uploadingFile=!1,this.$emit("file-uploaded")}catch(t){console.error("Error processing file:",t),this.snackbarText="Error uploading file",this.snackbar=!0}else console.error("No file to submit"),this.snackbarText="No file selected",this.snackbar=!0},cleanUp(){this.formData=null,this.fileName="",this.snackbarText=""}}};const AOe=t=>(Mle("data-v-7dd18b31"),t=t(),Ele(),t),xUe=AOe(()=>ha("div",{class:"mb-1"},"or",-1)),_Ue={key:0,class:"my-4"},wUe=AOe(()=>ha("strong",null,"File selected:",-1));function OUe(t,e,o,f,P,d){return Do(),sa(Eq,{modelValue:t.uploadingFile,"onUpdate:modelValue":e[3]||(e[3]=l=>t.uploadingFile=l),width:"444",class:"text-center mb-8",rounded:"lg"},{activator:Oo(({props:l})=>[Ht(ls,Ii(l,{class:"mb-2",icon:"mdi-upload",color:"bluegrey-darken-4"}),null,16)]),default:Oo(()=>[Ht(BO,{onDrop:d.onDrop,onDragover:e[2]||(e[2]=DH(()=>{},["prevent"]))},{default:Oo(()=>[ha("input",{class:"d-none",type:"file",ref:"fileInput",onChange:e[0]||(e[0]=(...l)=>d.handleFileChange&&d.handleFileChange(...l))},null,544),Ht(PD,{class:"pb-0"},{default:Oo(()=>[Ss("Drag files to upload")]),_:1}),xUe,Ht(ls,{class:"mb-2",color:"primary",variant:"outlined",size:"large",text:"Browse files",rounded:"pill",onClick:d.onClickBrowseFiles},{default:Oo(()=>[Ss(" Browse files ")]),_:1},8,["onClick"]),t.fileName?(Do(),Da("div",_Ue,[wUe,Ss(" "+sc(t.fileName),1)])):Za("",!0),Ht(ls,{onClick:d.submitFile,color:"primary",class:"mt-4"},{default:Oo(()=>[Ss("Submit")]),_:1},8,["onClick"]),Ht(eBe,{modelValue:t.snackbar,"onUpdate:modelValue":e[1]||(e[1]=l=>t.snackbar=l),timeout:3e3,top:""},{default:Oo(()=>[Ss(sc(t.snackbarText),1)]),_:1},8,["modelValue"])]),_:1},8,["onDrop"])]),_:1},8,["modelValue"])}const SUe=hm(bUe,[["render",OUe],["__scopeId","data-v-7dd18b31"]]),kUe=Hg({name:"SidebarComponent",components:{FileUploader:SUe},props:{drawer:Boolean,items:Array,handleFileChange:Function,isMobile:Boolean,isAppRoute:Boolean},emits:["update:drawer","update:items"],setup(t,{emit:e}){const o=ti(t.drawer),f=ti(t.items||[]),P=ti("."),d=ti([]);Ni(()=>t.drawer,O=>{o.value=O}),Ni(o,O=>{e("update:drawer",O)});const l=async O=>{try{const w=await fu.get("api/get_children",{params:{path:O}});f.value=w.data.files,e("update:items",w.data.files)}catch(w){console.error("Failed to load files:",w)}};return sg(()=>{l(P.value)}),{localDrawer:o,localItems:f,handleItemClick:O=>{O.file==="folder"&&(d.value.push(P.value),P.value=O.id,l(P.value))},goBack:()=>{d.value.length>0&&(P.value=d.value.pop()||".",l(P.value))},pathStack:d,currentPath:P,refreshFiles:()=>{l(P.value)},fileIcon:O=>{switch(O){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}}}}}),TUe={class:"d-flex"};function CUe(t,e,o,f,P,d){const l=Zd("FileUploader");return t.$devMode&&!t.isMobile&&!t.isAppRoute?(Do(),sa(q_e,{key:0,modelValue:t.localDrawer,"onUpdate:modelValue":e[1]||(e[1]=n=>t.localDrawer=n),app:"",class:"sidebar",color:"bluegrey-darken-4"},{default:Oo(()=>[ha("div",TUe,[t.pathStack.length>0?(Do(),sa(ls,{key:0,onClick:t.goBack,color:"bluegrey-darken-4",icon:"mdi-arrow-left"},null,8,["onClick"])):Za("",!0),Ht(V_e),Ht(l,{"current-path":t.currentPath,onFileUploaded:t.refreshFiles},null,8,["current-path","onFileUploaded"]),Ht(ls,{color:"bluegrey-darken-4",icon:"mdi-close",onClick:e[0]||(e[0]=n=>t.localDrawer=!1)})]),Ht(m_,null,{default:Oo(()=>[(Do(!0),Da(ma,null,ob(t.localItems,n=>(Do(),sa(zf,{key:n.id,onClick:c=>t.handleItemClick(n)},{default:Oo(()=>[n.file==="folder"?(Do(),sa(Al,{key:0},{default:Oo(()=>[Ss(sc("mdi-folder"))]),_:1})):(Do(),sa(Al,{key:1},{default:Oo(()=>[Ss(sc(t.fileIcon(n.file)),1)]),_:2},1024)),Ht(qy,null,{default:Oo(()=>[Ss(sc(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue"])):Za("",!0)}const AUe=hm(kUe,[["render",CUe]]);class ZL{constructor(e,o={}){_c(this,"socket");_c(this,"pingInterval");_c(this,"pingTimeout");_c(this,"url");_c(this,"options");_c(this,"reconnectAttempts",0);_c(this,"maxReconnectAttempts",3);_c(this,"connected",!1);this.url=e,this.options=o}initializeSocket(){return this.socket=new WebSocket(this.url),this.socket.onclose=e=>{var o,f;console.log(`WebSocket closed: ${this.url}, Code: ${e.code}, Reason: ${e.reason}`),this.stopPing(),(f=(o=this.options).onClose)==null||f.call(o,e),this.connected&&(this.reconnectSocket(),this.connected=!1)},this.socket.onmessage=e=>{var o,f;e.data==="pong"?clearTimeout(this.pingTimeout):(f=(o=this.options).onMessage)==null||f.call(o,e)},new Promise((e,o)=>{this.socket.onopen=()=>{var f,P;console.log(`WebSocket connected: ${this.url}`),this.connected=!0,this.startPing(),(P=(f=this.options).onOpen)==null||P.call(f),e("")},this.socket.onerror=f=>{var P,d;console.error(`WebSocket error: ${this.url}`,f),(d=(P=this.options).onError)==null||d.call(P,f),o(f)}})}startPing(){const e=this.options.pingInterval||3e4;this.pingInterval=window.setInterval(()=>{this.socket.readyState===WebSocket.OPEN&&(this.socket.send(JSON.stringify({type:"ping"})),this.pingTimeout=window.setTimeout(()=>{console.log(`Ping timeout: ${this.url}`),this.socket.close()},5e3))},e)}stopPing(){clearInterval(this.pingInterval),clearTimeout(this.pingTimeout)}reconnectSocket(){const e=this.options.reconnectDelay||2e3;this.reconnectAttempts{try{await this.initializeSocket(),this.reconnectAttempts=0,console.log(`WebSocket reconnected successfully: ${this.url}`)}catch(o){console.error(`Reconnect attempt failed for WebSocket: ${this.url}`,o),this.reconnectAttempts++,this.reconnectSocket()}},e)):(console.error(`Max reconnect attempts reached for WebSocket: ${this.url}. Giving up.`),Lv.connection_lost=!0)}send(e){this.socket.readyState===WebSocket.OPEN?this.socket.send(e):console.warn(`WebSocket not open: ${this.url}`)}close(){this.stopPing(),this.socket.close()}}const MUe={components:{CodeComponent:nwe,MarkdownComponent:pOe,EditorComponent:gOe,SQLComponent:SOe,PackageComponent:kOe,CodeCellManager:eUe,CopilotComponent:dUe,ShareComponent:yUe,SidebarComponent:AUe,Comments:GVe},data(){return{editingProjectName:!1,errorMessage:"",notebook:{},notebookName:"",notebookEditName:"",dependencies:{},completions:{},ws_url:"",pythonVersion:"",ztVersion:"",notebook_socket:null,save_socket:null,run_socket:null,stop_socket:null,dependency_socket:null,timer:0,startTime:0,timerInterval:null,isCodeRunning:!1,currentlyExecutingCell:void 0,requestQueue:[],componentChangeQueue:[],drawer:!1,files:[],tree:[],items:[],openFolders:[],reactiveMode:!0,showComments:!1,concatenatedCodeCache:{lastCellId:"",code:"",followingCode:"",length:0},dependencyOutput:{output:"",isLoading:!1},ztAliases:Kh}},setup(){const t=LD(),{showAllComments:e,loadComments:o}=t,{showComments:f}=kue(t);return{showComments:f,loadComments:o,showAllComments:e}},beforeMount(){window.addEventListener("beforeunload",this.clearState),window.addEventListener("unload",this.clearState)},beforeUnmount(){window.removeEventListener("beforeunload",this.clearState),window.removeEventListener("unload",this.clearState)},async mounted(){await this.get_env_data(),await this.connectSockets(),this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:""}))},computed:{isAppRoute(){return _T().path==="/app"},isMobile(){return this.$vuetify.display.mobile},cellLength(){return this.notebook.cells?Object.keys(this.notebook.cells).length:0},runningQueue(){return this.$devMode?this.requestQueue:this.componentChangeQueue},queueLength(){return this.runningQueue.length},socketsDisconnected(){return Lv.connection_lost}},methods:{async connectSockets(){this.notebook_socket=new ZL(this.ws_url+"ws/notebook",{onMessage:t=>this.notebookOnMessage(t)}),this.run_socket=new ZL(this.$devMode?this.ws_url+"ws/run_code":this.ws_url+"ws/component_run",{onMessage:t=>this.runOnMessage(t)}),this.stop_socket=new ZL(this.ws_url+"ws/stop_execution"),await this.notebook_socket.initializeSocket(),await this.run_socket.initializeSocket(),await this.stop_socket.initializeSocket(),this.$devMode&&(this.save_socket=new ZL(this.ws_url+"ws/save_text",{onMessage:t=>this.saveOnMessage(t)}),this.dependency_socket=new ZL(this.ws_url+"ws/dependency_update",{onMessage:t=>this.dependencyOnMessage(t)}),await this.save_socket.initializeSocket(),await this.dependency_socket.initializeSocket())},toggleProjectName(){this.editingProjectName=!this.editingProjectName,this.editingProjectName&&(this.notebookEditName=this.notebookName,lc(()=>{this.$refs.projectNameField.focus()}))},async saveProjectName(){if(this.editingProjectName){const t={notebookName:this.notebookEditName};await fu.post("api/notebook_name_update",t),this.notebookName=this.notebookEditName,document.title=this.notebookName,this.editingProjectName=!1}},startTimer(){this.startTime=Date.now(),this.timer=0,this.timerInterval=setInterval(()=>{const t=Date.now();this.timer=t-this.startTime},99)},stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)},async get_env_data(){const e=(await fu.get("env_data")).data;this.ws_url=e.ws_url||"ws://localhost:1326/",this.pythonVersion=e.python_version,this.ztVersion=e.zt_version},updateDrawer(t){this.drawer=t},updateItems(t){this.items=t},handleFileChange(t,e){const o=e.target.files;if(o&&o.length>0){const f=new FormData;f.append("file",o[0]),fu.post("api/upload_file",f,{headers:{"Content-Type":"multipart/form-data"}}).then(P=>console.log("File processed",P.data)).catch(P=>console.error("Error processing file:",P.response))}else console.error("No file selected")},fileIcon(t){switch(t){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}},async runCode(t){const e=[],o={};for(let P in this.notebook.cells){const d={id:P,code:this.notebook.cells[P].code,variable_name:this.notebook.cells[P].variable_name||"",nonReactive:this.notebook.cells[P].nonReactive,showTable:this.notebook.cells[P].showTable,cellType:this.notebook.cells[P].cellType};for(const l of this.notebook.cells[P].components)l.component==="v-data-table"?o[l.id]="":o[l.id]=l.value;e.push(d)}const f={originId:t,reactiveMode:this.reactiveMode,cells:e,components:o};if(this.isCodeRunning){const P=this.requestQueue.findIndex(d=>d.originId===t);P!==-1?this.requestQueue[P]=f:this.requestQueue.push(f);return}this.sendRunCodeRequest(f)},sendRunCodeRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},notebookOnMessage(t){const e=JSON.parse(t.data);if(e.notebook_name)this.notebookName=e.notebook_name,document.title=this.notebookName;else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.env_stale)this.errorMessage="Some dependencies are not installed in the current environment. Open dependency manager to install missing dependencies";else if(e.complete)this.isCodeRunning=!1,this.stopTimer();else{const o=typeof e=="string"?JSON.parse(e):e;if(o.notebook){this.notebook=o.notebook;for(let f in this.notebook.cells)this.notebook.cells[f].cellType==="code"&&(this.completions[f]=[]),this.loadComments(this.notebook.cells[f].comments??{},f,this.notebook.cells[f].cellType,this.notebook.cells[f].cellName??"");this.dependencies=o.dependencies}else this.notebook.cells&&this.notebook.cells[o.id]&&(this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout)}},runOnMessage(t){const e=JSON.parse(t.data);if(e.cell_executing!=null)this.currentlyExecutingCell=e.cell_executing;else if(!this.$devMode&&e.refresh)this.notebookRefresh();else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.complete){if(this.isCodeRunning=!1,this.stopTimer(),this.$devMode&&this.requestQueue.length>0){const o=this.requestQueue.shift()||{};this.sendRunCodeRequest(o)}else if(!this.$devMode&&this.componentChangeQueue.length>0){const o=this.componentChangeQueue.shift()||{},f={originId:o.originId,components:o.components,userId:o.userId};this.sendComponentRequest(f)}}else{const o=JSON.parse(e);this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout}},saveOnMessage(t){try{const e=JSON.parse(t.data);this.completions[e.cell_id]=Array.isArray(e.completions)?e.completions:[]}catch(e){console.error("Error parsing server message:",e)}},dependencyOnMessage(t){try{const e=JSON.parse(t.data);e.output?this.dependencyOutput.output=this.dependencyOutput.output.concat(e.output):(this.dependencies=JSON.parse(e),this.dependencyOutput.isLoading=!1),this.errorMessage=""}catch(e){console.error("Error parsing server message:",e)}},async componentValueChange(t,e,o){const f={};for(let l in this.notebook.cells)for(const n of this.notebook.cells[l].components)n.component==="v-data-table"?f[n.id]="":f[n.id]=n.value;const P={originId:t,componentId:e,components:f,userId:this.notebook.userId};if(this.isCodeRunning){const l=this.componentChangeQueue.findIndex(n=>n.componentId===e);l!==-1?this.componentChangeQueue[l]=P:this.componentChangeQueue.push(P);return}const d={originId:P.originId,components:P.components,userId:P.userId};this.sendComponentRequest(d)},async sendComponentRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},async notebookRefresh(){this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:"start"}))},navigateToApp(){window.open("https://zero-true.com/")},clearState:function(){const e={userId:this.notebook.userId};fu.post("api/clear_state",e)},async createCodeCell(t,e){const o={cellType:e.toLowerCase(),position_key:t},P=(await fu.post("api/create_cell",o)).data;let d={};t||(d[P.id]=P);for(let l in this.notebook.cells)d[l]=this.notebook.cells[l],t===l&&(d[P.id]=P);P.cellType==="code"&&(this.completions[P.id]=[]),this.notebook.cells=d},async deleteCell(t){const e={cellId:t};await fu.post("api/delete_cell",e),this.notebook.cells[t].cellType==="code"&&delete this.completions[t],delete this.notebook.cells[t]},async saveCell(t,e,o,f){if(this.notebook.cells[t].cellType==="code"&&this.concatenatedCodeCache.lastCellId!==t){let d="",l="",n=0,c=!0;for(let b in this.notebook.cells){if(b===t){c=!1;continue}this.notebook.cells[b].cellType==="code"&&(c?(d+=this.notebook.cells[b].code+` `,n+=this.notebook.cells[b].code.split(/\r\n|\r|\n/).length):l+=this.notebook.cells[b].code+` `)}this.concatenatedCodeCache={lastCellId:t,code:d,followingCode:l,length:n}}const P={id:t,text:e,cellType:this.notebook.cells[t].cellType,line:this.concatenatedCodeCache.length+o,column:f,code_w_context:this.concatenatedCodeCache.code+e+this.concatenatedCodeCache.followingCode};this.save_socket.send(JSON.stringify(P))},async copilotCompletion(t,e,o,f){if(this.concatenatedCodeCache.lastCellId!==t){let d="",l="",n=0,c=!0;for(let b in this.notebook.cells){if(b===t){c=!1;continue}this.notebook.cells[b].cellType==="code"&&(c?(d+=this.notebook.cells[b].code+` `,n+=this.notebook.cells[b].code.split(/\r\n|\r|\n/).length):l+=this.notebook.cells[b].code+` -`)}this.concatenatedCodeCache={lastCellId:t,code:d,followingCode:l,length:n}}const P=await fu.post("copilot/get_completions",{doc:{version:1,uri:"file:///notebook.ztnb",position:{line:this.concatenatedCodeCache.length+e,character:o}}});f(P)},async stopCodeExecution(){this.$devMode?(this.requestQueue=[],this.stop_socket.send(JSON.stringify({userId:""}))):(this.componentChangeQueue=[],this.stop_socket.send(JSON.stringify({userId:this.notebook.userId})));for(let t in this.notebook.cells)for(const e of this.notebook.cells[t].components)(e.component==="v-btn"||e.component==="v-timer")&&(e.value=!1);this.isCodeRunning=!1,this.stopTimer()},getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},async updateDependencies(t){this.dependencyOutput.output="";const e={dependencies:t};this.dependency_socket.send(JSON.stringify(e))},startTimerComponents(t,e){if(!Pv.timers[t])Pv.timers[t]={};else for(const o in Pv.timers[t])Pv.timers[t][o].stop(),delete Pv.timers[t][o];for(const o of e)this.startTimerComponent(t,o.id,o.interval)},startTimerComponent(t,e,o){const f=()=>{const P=new R0e(o);Pv.timers[t][e]=P,P.start(f),this.notebook.cells[t].components.find(d=>d.id===e).value=!0,this.$devMode?this.runCode(t):this.componentValueChange(t,e,!0)};if(!Pv.timers[t][e]){const P=new R0e(o);Pv.timers[t][e]=P,P.start(f)}}}};const Fue=t=>(Mle("data-v-4b6b6f0a"),t=t(),Ele(),t),CUe={key:0,class:"click-edit"},AUe={key:0,class:"click-edit__show-text"},MUe={key:1,class:"click-edit__edit-field-wrapper"},EUe={key:1,class:"text-ellipsis text-h5"},PUe={key:2,class:"toggle-group"},RUe={class:zv(["content","px-8","d-flex","justify-center"])},LUe={class:"content__cells flex-grow-1",transition:"slide-x-transition"},IUe={class:"footer__left-container"},DUe={class:"footer__right-container"},BUe={key:0,class:"footer__queue-length-wrapper"},zUe=Fue(()=>pa("span",{class:"text-bluegrey"},"Python #2",-1)),FUe={class:"footer__status-wrapper"},NUe={key:0,class:"footer__status"},$Ue=Fue(()=>pa("span",null,"Running",-1)),VUe={key:1,class:"footer__status footer__status--error"},UUe=Fue(()=>pa("span",null,"Stopped",-1));function jUe(t,e,o,f,P,d){const l=Zd("ShareComponent"),n=Zd("CopilotComponent"),c=Zd("PackageComponent"),b=Zd("SidebarComponent"),i=Zd("CodeCellManager"),O=Zd("Comments");return Bo(),la(x9e,null,{default:Oo(()=>[Zt(I9e,{app:"",color:"bluegrey-darken-4",height:"51",id:"appBar",class:"zt-app-bar"},{append:Oo(()=>[Zt(hT,{class:"d-flex justify-end"},{default:Oo(()=>[pa("div",null,[Zt(q_e,{text:"Run All",location:"bottom",color:"primary"},{activator:Oo(({props:w})=>[t.$devMode&&!d.isAppRoute?(Bo(),la(ps,Di({key:0,icon:`ztIcon:${P.ztAliases.play}`},w,{variant:"flat",ripple:"",color:"bluegrey-darken-4",onClick:e[3]||(e[3]=y=>d.runCode(""))}),null,16,["icon"])):Wa("",!0)]),_:1}),t.$devMode&&!d.isAppRoute?(Bo(),la(hS,{key:0,"close-on-content-click":!1},{activator:Oo(({props:w})=>[Zt(ps,Di({icon:`ztIcon:${P.ztAliases.settings}`},w),null,16,["icon"])]),default:Oo(()=>[Zt(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Zt(Bf,null,{prepend:Oo(()=>[Zt($A,{modelValue:P.reactiveMode,"onUpdate:modelValue":e[4]||(e[4]=w=>P.reactiveMode=w)},null,8,["modelValue"])]),default:Oo(()=>[Zt(qy,null,{default:Oo(()=>[Cs("Reactive Mode")]),_:1})]),_:1})]),_:1})]),_:1})):Wa("",!0),t.$devMode&&!d.isAppRoute?(Bo(),la(l,{key:1})):Wa("",!0)])]),_:1})]),default:Oo(()=>[Zt(ps,{size:"x-large",ripple:!1,icon:`ztIcon:${P.ztAliases.logo}`,variant:"plain",onClick:d.navigateToApp,id:"Navbutton",class:"logo-btn"},null,8,["icon","onClick"]),t.$devMode&&!d.isAppRoute?(Bo(),Da("div",CUe,[P.editingProjectName?Wa("",!0):(Bo(),Da("div",AUe,[pa("h5",{class:"click-edit__name text-ellipsis text-h5",onClick:e[0]||(e[0]=(...w)=>d.toggleProjectName&&d.toggleProjectName(...w))},sc(P.notebookName),1)])),P.editingProjectName?(Bo(),Da("div",MUe,[Zt(um,{modelValue:P.notebookEditName,"onUpdate:modelValue":e[1]||(e[1]=w=>P.notebookEditName=w),placeholder:"Zero True",density:"compact",variant:"plain","hide-details":"",ref:"projectNameField",class:"click-edit__edit-field",onKeydown:cve(d.saveProjectName,["enter"]),"onUpdate:focused":e[2]||(e[2]=w=>{w||d.saveProjectName()})},null,8,["modelValue","onKeydown"])])):Wa("",!0)])):(Bo(),Da("h5",EUe,sc(P.notebookName),1)),t.$devMode&&!d.isMobile?(Bo(),Da("div",PUe,[Zt(s2e,{multiple:!1,density:"compact",mandatory:""},{default:Oo(()=>[Zt(ps,{color:d.isAppRoute?"bluegrey-darken-1":"primary",variant:d.isAppRoute?"text":"flat",class:zv({"text-bluegrey-darken-4":!d.isAppRoute}),"prepend-icon":`ztIcon:${P.ztAliases.notebook}`,to:"/",id:"notebookBtn"},{default:Oo(()=>[Cs(" Notebook")]),_:1},8,["color","variant","class","prepend-icon"]),Zt(ps,{color:d.isAppRoute?"primary":"bluegrey-darken-1",variant:d.isAppRoute?"flat":"text",class:zv({"text-bluegrey-darken-4":d.isAppRoute}),"prepend-icon":`ztIcon:${P.ztAliases.monitor}`,to:"/app",id:"appBtn"},{default:Oo(()=>[Cs("App")]),_:1},8,["color","variant","class","prepend-icon"])]),_:1})])):Wa("",!0)]),_:1}),t.$devMode&&!d.isMobile&&!d.isAppRoute?(Bo(),la(Z_e,{key:0,rail:!0,color:"bluegrey-darken-4",style:{"padding-top":"12px","padding-bottom":"12px"}},{append:Oo(()=>[Zt(Bf,null,{default:Oo(()=>[t.$devMode&&!d.isAppRoute?(Bo(),la(n,{key:0})):Wa("",!0)]),_:1}),Zt(Bf,null,{default:Oo(()=>[Zt(ps,{color:"bluegrey-darken-4",icon:"mdi-folder-multiple",onClick:e[5]||(e[5]=w=>P.drawer=!0),class:"text-bluegrey"})]),_:1}),Zt(Bf,null,{default:Oo(()=>[t.$devMode&&!d.isAppRoute?(Bo(),la(c,{key:0,dependencies:P.dependencies,dependencyOutput:P.dependencyOutput,onUpdateDependencies:d.updateDependencies},null,8,["dependencies","dependencyOutput","onUpdateDependencies"])):Wa("",!0)]),_:1})]),_:1})):Wa("",!0),Zt(b,{drawer:P.drawer,items:P.items,tree:P.tree,fileIcon:d.fileIcon,isMobile:d.isMobile,isAppRoute:d.isAppRoute,"onUpdate:drawer":d.updateDrawer,"onUpdate:items":d.updateItems,onHandleFileChange:d.handleFileChange,style:{"padding-top":"12px","padding-bottom":"12px"}},null,8,["drawer","items","tree","fileIcon","isMobile","isAppRoute","onUpdate:drawer","onUpdate:items","onHandleFileChange"]),Zt($De,{scrollable:!1,class:"w-100 mx-auto"},{default:Oo(()=>[P.errorMessage?(Bo(),la(bM,{key:0},{default:Oo(()=>[Zt(sge,{type:"error"},{default:Oo(()=>[Cs(sc(P.errorMessage),1)]),_:1})]),_:1})):Wa("",!0),d.socketsDisconnected?(Bo(),la(bM,{key:1},{default:Oo(()=>[Zt(sge,{type:"error"},{default:Oo(()=>[Cs(" Connection to the server has been lost. Please refresh the page. ")]),_:1})]),_:1})):Wa("",!0),pa("div",RUe,[pa("div",LUe,[Zt(i,{notebook:P.notebook,completions:P.completions,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.startTimerComponents},null,8,["notebook","completions","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])]),pa("div",{class:zv(["content__comments",{"content__comments--show":f.showComments}])},[Zt(O)],2)])]),_:1}),d.isMobile?Wa("",!0):(Bo(),la(BDe,{key:1,app:"",class:"footer bg-bluegrey-darken-4 text-bluegrey"},{default:Oo(()=>[pa("div",IUe,[pa("span",null,[pa("span",null,"Python "+sc(P.pythonVersion),1)]),Zt(Tl,{class:"dot-divider",icon:`ztIcon:${P.ztAliases.dot}`},null,8,["icon"]),pa("span",null,"Zero-True "+sc(P.ztVersion),1),Zt(Tl,{class:"dot-divider",icon:`ztIcon:${P.ztAliases.dot}`},null,8,["icon"]),pa("span",null,sc(d.cellLength)+" cells",1)]),pa("div",DUe,[P.isCodeRunning?(Bo(),Da("div",BUe,[Zt(SD,{indeterminate:"",color:"bluegrey",size:"17",class:"footer__code-running-loader",id:"codeRunProgress"}),Zt(AD,{density:"comfortable"},{default:Oo(()=>[Cs(sc(P.timer)+"ms",1)]),_:1}),Zt(ps,{class:"footer__queue-length-btn",density:"compact","append-icon":"mdi:mdi-chevron-down",rounded:"",disabled:d.queueLength===0,variant:"flat"},{default:Oo(()=>[Cs(" Queue Length: "+sc(d.queueLength)+" ",1),Zt(hS,{activator:"parent"},{default:Oo(()=>[Zt(m_,{class:"footer__queue-list"},{default:Oo(()=>[(Bo(!0),Da(ya,null,ob(d.runningQueue,(w,y)=>(Bo(),la(Bf,{key:y,class:"footer__queue-list-item"},{append:Oo(()=>[Zt(Tl,{icon:"$done",color:"success"})]),default:Oo(()=>[zUe]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["disabled"])])):Wa("",!0),pa("div",FUe,[P.isCodeRunning?(Bo(),Da("div",NUe,[Zt(Tl,{icon:`ztIcon:${P.ztAliases.status}`},null,8,["icon"]),$Ue])):Wa("",!0),P.isCodeRunning?Wa("",!0):(Bo(),Da("div",VUe,[Zt(Tl,{icon:`ztIcon:${P.ztAliases.status}`},null,8,["icon"]),UUe])),P.isCodeRunning?(Bo(),la(ps,{key:2,density:"comfortable",icon:`ztIcon:${P.ztAliases.stop}`,color:"bluegrey",variant:"plain",ripple:!1,onClick:e[6]||(e[6]=w=>d.stopCodeExecution()),rounded:""},null,8,["icon"])):Wa("",!0)])])]),_:1}))]),_:1})}const QUe=hm(TUe,[["render",jUe],["__scopeId","data-v-4b6b6f0a"]]);const HUe="modulepreload",ZUe=function(t,e){return new URL(t,e).href},L0e={},lle=function(e,o,f){if(!o||o.length===0)return e();const P=document.getElementsByTagName("link");return Promise.all(o.map(d=>{if(d=ZUe(d,f),d in L0e)return;L0e[d]=!0;const l=d.endsWith(".css"),n=l?'[rel="stylesheet"]':"";if(!!f)for(let i=P.length-1;i>=0;i--){const O=P[i];if(O.href===d&&(!l||O.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${n}`))return;const b=document.createElement("link");if(b.rel=l?"stylesheet":HUe,l||(b.as="script",b.crossOrigin=""),b.href=d,document.head.appendChild(b),l)return new Promise((i,O)=>{b.addEventListener("load",i),b.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>e()).catch(d=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=d,window.dispatchEvent(l),!l.defaultPrevented)throw d})};async function qUe(){(await lle(()=>import("./webfontloader-dd94185f.js").then(e=>e.w),[],import.meta.url)).load({google:{families:["Pathway+Extreme:100,300,400,500,700,900&display=swap","Roboto:100,300,400,500,700,900&display=swap"]}})}function AOe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...o}=t,f=Ug(e,o),{aliases:P={},components:d={},directives:l={}}=f,n=e9e(f.defaults),c=yRe(f.display,f.ssr),b=y9e(f.theme),i=V9e(f.icons),O=p9e(f.locale),w=DIe(f.date,O),y=xRe(f.goTo,O);return{install:a=>{for(const u in l)a.directive(u,l[u]);for(const u in d)a.component(u,d[u]);for(const u in P)a.component(u,PM({...P[u],name:u,aliasName:P[u].name}));if(b.install(a),a.provide(vM,n),a.provide(Fse,c),a.provide(pZ,b),a.provide(Dse,i),a.provide(hZ,O),a.provide(IIe,w.options),a.provide(Oge,w.instance),a.provide(C2e,y),ou&&f.ssr)if(a.$nuxt)a.$nuxt.hook("app:suspense:resolve",()=>{c.update()});else{const{mount:u}=a;a.mount=function(){const h=u(...arguments);return lc(()=>c.update()),a.mount=u,h}}Vv.reset(),a.mixin({computed:{$vuetify(){return lm({defaults:IA.call(this,vM),display:IA.call(this,Fse),theme:IA.call(this,pZ),icons:IA.call(this,Dse),locale:IA.call(this,hZ),date:IA.call(this,Oge)})}}})},defaults:n,display:c,theme:b,icons:i,locale:O,date:w,goTo:y}}const WUe="3.6.14";AOe.version=WUe;function IA(t){var f,P;const e=this.$,o=((f=e.parent)==null?void 0:f.provides)??((P=e.vnode.appContext)==null?void 0:P.provides);if(o&&t in o)return o[t]}const YUe=AOe({display:{mobileBreakpoint:"md"},defaults:{global:{elevation:0},VAppBar:{VBtn:{color:"white",ripple:!1}},VBtn:{style:[{"text-transform":"capitalize"}],color:"bluegrey-darken-2",class:["text-bluegrey-darken-1"]},VBtnToggle:{density:"comfortable",VBtn:{style:[{borderRadius:"inherit"}],class:["text-bluegrey-darken-1"]}},VCard:{color:"bluegrey-darken-4"},VDivider:{class:"border-opacity-100"},VFooter:{VListItem:{minHeight:15}},VMenu:{contentClass:"zt-menu"},VSwitch:{baseColor:"bluegrey-darken-3",color:"primary",density:"compact",hideDetails:!0},VTextarea:{bgColor:"bluegrey-darken-3"}},theme:{defaultTheme:"dark",themes:{dark:{dark:!0,colors:{background:"#0d1316",primary:"#ae9ee8",secondary:"#424242",surface:"#1B2F3C",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}},light:{colors:{background:"#E7E8E9",primary:"#AE9FE8",secondary:"#5F7F93",surface:"#FFFFFF",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}}}},icons:{defaultSet:"mdi",aliases:l2e,sets:{mdi:c2e,ztIcon:gBe}}}),I0e=[{path:"/",name:"/",component:()=>lle(()=>import("./index-31a83e65.js"),[],import.meta.url)},{path:"/app",name:"/app",component:()=>lle(()=>import("./app-37f5afb6.js"),[],import.meta.url)}];function XUe(t){const{extendRoutes:e}=t;return Uke(Object.assign(t,{routes:typeof e=="function"?e(I0e):I0e}))}async function GUe(t){const o=(await fu.get("base_path")).data,f=XUe({history:oke(o)});qUe(),t.use(YUe).use(f)}const KUe=_Be(),AH=N5e(QUe);AH.use(KUe);GUe(AH).then(()=>{AH.config.globalProperties.$devMode=!0,AH.mount("#app")});export{GVe as C,hm as _,la as c,Qke as g,Bo as o,Zd as r}; +`)}this.concatenatedCodeCache={lastCellId:t,code:d,followingCode:l,length:n}}const P=await fu.post("copilot/get_completions",{doc:{version:1,uri:"file:///notebook.ztnb",position:{line:this.concatenatedCodeCache.length+e,character:o}}});f(P)},async stopCodeExecution(){this.$devMode?(this.requestQueue=[],this.stop_socket.send(JSON.stringify({userId:""}))):(this.componentChangeQueue=[],this.stop_socket.send(JSON.stringify({userId:this.notebook.userId})));for(let t in this.notebook.cells)for(const e of this.notebook.cells[t].components)(e.component==="v-btn"||e.component==="v-timer")&&(e.value=!1);this.isCodeRunning=!1,this.stopTimer()},getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},async updateDependencies(t){this.dependencyOutput.output="";const e={dependencies:t};this.dependency_socket.send(JSON.stringify(e))},startTimerComponents(t,e){if(!Lv.timers[t])Lv.timers[t]={};else for(const o in Lv.timers[t])Lv.timers[t][o].stop(),delete Lv.timers[t][o];for(const o of e)this.startTimerComponent(t,o.id,o.interval)},startTimerComponent(t,e,o){const f=()=>{const P=new L0e(o);Lv.timers[t][e]=P,P.start(f),this.notebook.cells[t].components.find(d=>d.id===e).value=!0,this.$devMode?this.runCode(t):this.componentValueChange(t,e,!0)};if(!Lv.timers[t][e]){const P=new L0e(o);Lv.timers[t][e]=P,P.start(f)}}}};const Nue=t=>(Mle("data-v-e40b79f1"),t=t(),Ele(),t),EUe={key:0,class:"click-edit"},PUe={key:0,class:"click-edit__show-text"},RUe={key:1,class:"click-edit__edit-field-wrapper"},LUe={key:1,class:"text-ellipsis text-h5"},IUe={key:2,class:"toggle-group"},DUe={class:Nv(["content","px-8","d-flex","justify-center"])},BUe={class:"content__cells flex-grow-1",transition:"slide-x-transition"},zUe={class:"footer__left-container"},FUe={class:"footer__right-container"},NUe={key:0,class:"footer__queue-length-wrapper"},$Ue=Nue(()=>ha("span",{class:"text-bluegrey"},"Python #2",-1)),VUe={class:"footer__status-wrapper"},UUe={key:0,class:"footer__status"},jUe=Nue(()=>ha("span",null,"Running",-1)),QUe={key:1,class:"footer__status footer__status--connected"},HUe=Nue(()=>ha("span",null,"Connected",-1));function ZUe(t,e,o,f,P,d){const l=Zd("ShareComponent"),n=Zd("CopilotComponent"),c=Zd("PackageComponent"),b=Zd("SidebarComponent"),i=Zd("CodeCellManager"),O=Zd("Comments");return Do(),sa(_9e,null,{default:Oo(()=>[Ht(D9e,{app:"",color:"bluegrey-darken-4",height:"51",id:"appBar",class:"zt-app-bar"},{append:Oo(()=>[Ht(hT,{class:"d-flex justify-end"},{default:Oo(()=>[ha("div",null,[Ht(W_e,{text:"Run All",location:"bottom",color:"primary"},{activator:Oo(({props:w})=>[t.$devMode&&!d.isAppRoute?(Do(),sa(ls,Ii({key:0,icon:`ztIcon:${P.ztAliases.play}`},w,{variant:"flat",ripple:"",color:"bluegrey-darken-4",onClick:e[3]||(e[3]=y=>d.runCode(""))}),null,16,["icon"])):Za("",!0)]),_:1}),t.$devMode&&!d.isAppRoute?(Do(),sa(pS,{key:0,"close-on-content-click":!1},{activator:Oo(({props:w})=>[Ht(ls,Ii({icon:`ztIcon:${P.ztAliases.settings}`},w),null,16,["icon"])]),default:Oo(()=>[Ht(m_,{"bg-color":"bluegrey-darken-4"},{default:Oo(()=>[Ht(zf,null,{prepend:Oo(()=>[Ht(VA,{modelValue:P.reactiveMode,"onUpdate:modelValue":e[4]||(e[4]=w=>P.reactiveMode=w)},null,8,["modelValue"])]),default:Oo(()=>[Ht(qy,null,{default:Oo(()=>[Ss("Reactive Mode")]),_:1})]),_:1})]),_:1})]),_:1})):Za("",!0),t.$devMode&&!d.isAppRoute?(Do(),sa(l,{key:1})):Za("",!0)])]),_:1})]),default:Oo(()=>[Ht(ls,{size:"x-large",ripple:!1,icon:`ztIcon:${P.ztAliases.logo}`,variant:"plain",onClick:d.navigateToApp,id:"Navbutton",class:"logo-btn"},null,8,["icon","onClick"]),t.$devMode&&!d.isAppRoute?(Do(),Da("div",EUe,[P.editingProjectName?Za("",!0):(Do(),Da("div",PUe,[ha("h5",{class:"click-edit__name text-ellipsis text-h5",onClick:e[0]||(e[0]=(...w)=>d.toggleProjectName&&d.toggleProjectName(...w))},sc(P.notebookName),1)])),P.editingProjectName?(Do(),Da("div",RUe,[Ht(um,{modelValue:P.notebookEditName,"onUpdate:modelValue":e[1]||(e[1]=w=>P.notebookEditName=w),placeholder:"Zero True",density:"compact",variant:"plain","hide-details":"",ref:"projectNameField",class:"click-edit__edit-field",onKeydown:uve(d.saveProjectName,["enter"]),"onUpdate:focused":e[2]||(e[2]=w=>{w||d.saveProjectName()})},null,8,["modelValue","onKeydown"])])):Za("",!0)])):(Do(),Da("h5",LUe,sc(P.notebookName),1)),t.$devMode&&!d.isMobile?(Do(),Da("div",IUe,[Ht(l2e,{multiple:!1,density:"compact",mandatory:""},{default:Oo(()=>[Ht(ls,{color:d.isAppRoute?"bluegrey-darken-1":"primary",variant:d.isAppRoute?"text":"flat",class:Nv({"text-bluegrey-darken-4":!d.isAppRoute}),"prepend-icon":`ztIcon:${P.ztAliases.notebook}`,to:"/",id:"notebookBtn"},{default:Oo(()=>[Ss(" Notebook")]),_:1},8,["color","variant","class","prepend-icon"]),Ht(ls,{color:d.isAppRoute?"primary":"bluegrey-darken-1",variant:d.isAppRoute?"flat":"text",class:Nv({"text-bluegrey-darken-4":d.isAppRoute}),"prepend-icon":`ztIcon:${P.ztAliases.monitor}`,to:"/app",id:"appBtn"},{default:Oo(()=>[Ss("App")]),_:1},8,["color","variant","class","prepend-icon"])]),_:1})])):Za("",!0)]),_:1}),t.$devMode&&!d.isMobile&&!d.isAppRoute?(Do(),sa(q_e,{key:0,rail:!0,color:"bluegrey-darken-4",style:{"padding-top":"12px","padding-bottom":"12px"}},{append:Oo(()=>[Ht(zf,null,{default:Oo(()=>[t.$devMode&&!d.isAppRoute?(Do(),sa(n,{key:0})):Za("",!0)]),_:1}),Ht(zf,null,{default:Oo(()=>[Ht(ls,{color:"bluegrey-darken-4",icon:"mdi-folder-multiple",onClick:e[5]||(e[5]=w=>P.drawer=!0),class:"text-bluegrey"})]),_:1}),Ht(zf,null,{default:Oo(()=>[t.$devMode&&!d.isAppRoute?(Do(),sa(c,{key:0,dependencies:P.dependencies,dependencyOutput:P.dependencyOutput,onUpdateDependencies:d.updateDependencies},null,8,["dependencies","dependencyOutput","onUpdateDependencies"])):Za("",!0)]),_:1})]),_:1})):Za("",!0),Ht(b,{drawer:P.drawer,items:P.items,tree:P.tree,fileIcon:d.fileIcon,isMobile:d.isMobile,isAppRoute:d.isAppRoute,"onUpdate:drawer":d.updateDrawer,"onUpdate:items":d.updateItems,onHandleFileChange:d.handleFileChange,style:{"padding-top":"12px","padding-bottom":"12px"}},null,8,["drawer","items","tree","fileIcon","isMobile","isAppRoute","onUpdate:drawer","onUpdate:items","onHandleFileChange"]),Ht(VDe,{scrollable:!1,class:"w-100 mx-auto"},{default:Oo(()=>[P.errorMessage?(Do(),sa(xM,{key:0},{default:Oo(()=>[Ht(lge,{type:"error"},{default:Oo(()=>[Ss(sc(P.errorMessage),1)]),_:1})]),_:1})):Za("",!0),d.socketsDisconnected?(Do(),sa(xM,{key:1},{default:Oo(()=>[Ht(lge,{type:"error"},{default:Oo(()=>[Ss(" Connection to the server has been lost. Please refresh the page. ")]),_:1})]),_:1})):Za("",!0),ha("div",DUe,[ha("div",BUe,[Ht(i,{notebook:P.notebook,completions:P.completions,currentlyExecutingCell:P.currentlyExecutingCell,isCodeRunning:P.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.startTimerComponents},null,8,["notebook","completions","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])]),ha("div",{class:Nv(["content__comments",{"content__comments--show":f.showComments}])},[Ht(O)],2)])]),_:1}),d.isMobile?Za("",!0):(Do(),sa(zDe,{key:1,app:"",class:"footer bg-bluegrey-darken-4 text-bluegrey"},{default:Oo(()=>[ha("div",zUe,[ha("span",null,[ha("span",null,"Python "+sc(P.pythonVersion),1)]),Ht(Al,{class:"dot-divider",icon:`ztIcon:${P.ztAliases.dot}`},null,8,["icon"]),ha("span",null,"Zero-True "+sc(P.ztVersion),1),Ht(Al,{class:"dot-divider",icon:`ztIcon:${P.ztAliases.dot}`},null,8,["icon"]),ha("span",null,sc(d.cellLength)+" cells",1)]),ha("div",FUe,[P.isCodeRunning?(Do(),Da("div",NUe,[Ht(LM,{indeterminate:"",color:"bluegrey",size:"17",class:"footer__code-running-loader",id:"codeRunProgress"}),Ht(AD,{density:"comfortable"},{default:Oo(()=>[Ss(sc(P.timer)+"ms",1)]),_:1}),Ht(ls,{class:"footer__queue-length-btn",density:"compact","append-icon":"mdi:mdi-chevron-down",rounded:"",disabled:d.queueLength===0,variant:"flat"},{default:Oo(()=>[Ss(" Queue Length: "+sc(d.queueLength)+" ",1),Ht(pS,{activator:"parent"},{default:Oo(()=>[Ht(m_,{class:"footer__queue-list"},{default:Oo(()=>[(Do(!0),Da(ma,null,ob(d.runningQueue,(w,y)=>(Do(),sa(zf,{key:y,class:"footer__queue-list-item"},{append:Oo(()=>[Ht(Al,{icon:"$done",color:"success"})]),default:Oo(()=>[$Ue]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["disabled"])])):Za("",!0),ha("div",VUe,[P.isCodeRunning?(Do(),Da("div",UUe,[Ht(Al,{icon:`ztIcon:${P.ztAliases.status}`},null,8,["icon"]),jUe])):Za("",!0),P.isCodeRunning?Za("",!0):(Do(),Da("div",QUe,[Ht(Al,{icon:`ztIcon:${P.ztAliases.status}`},null,8,["icon"]),HUe])),P.isCodeRunning?(Do(),sa(ls,{key:2,density:"comfortable",icon:`ztIcon:${P.ztAliases.stop}`,color:"bluegrey",variant:"plain",ripple:!1,onClick:e[6]||(e[6]=w=>d.stopCodeExecution()),rounded:""},null,8,["icon"])):Za("",!0)])])]),_:1}))]),_:1})}const qUe=hm(MUe,[["render",ZUe],["__scopeId","data-v-e40b79f1"]]);const WUe="modulepreload",YUe=function(t,e){return new URL(t,e).href},I0e={},lle=function(e,o,f){if(!o||o.length===0)return e();const P=document.getElementsByTagName("link");return Promise.all(o.map(d=>{if(d=YUe(d,f),d in I0e)return;I0e[d]=!0;const l=d.endsWith(".css"),n=l?'[rel="stylesheet"]':"";if(!!f)for(let i=P.length-1;i>=0;i--){const O=P[i];if(O.href===d&&(!l||O.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${n}`))return;const b=document.createElement("link");if(b.rel=l?"stylesheet":WUe,l||(b.as="script",b.crossOrigin=""),b.href=d,document.head.appendChild(b),l)return new Promise((i,O)=>{b.addEventListener("load",i),b.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>e()).catch(d=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=d,window.dispatchEvent(l),!l.defaultPrevented)throw d})};async function XUe(){(await lle(()=>import("./webfontloader-889c568b.js").then(e=>e.w),[],import.meta.url)).load({google:{families:["Pathway+Extreme:100,300,400,500,700,900&display=swap","Roboto:100,300,400,500,700,900&display=swap"]}})}function MOe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...o}=t,f=jg(e,o),{aliases:P={},components:d={},directives:l={}}=f,n=t9e(f.defaults),c=bRe(f.display,f.ssr),b=b9e(f.theme),i=U9e(f.icons),O=m9e(f.locale),w=BIe(f.date,O),y=_Re(f.goTo,O);return{install:a=>{for(const u in l)a.directive(u,l[u]);for(const u in d)a.component(u,d[u]);for(const u in P)a.component(u,RM({...P[u],name:u,aliasName:P[u].name}));if(b.install(a),a.provide(yM,n),a.provide(Fse,c),a.provide(pZ,b),a.provide(Dse,i),a.provide(hZ,O),a.provide(DIe,w.options),a.provide(Sge,w.instance),a.provide(A2e,y),ou&&f.ssr)if(a.$nuxt)a.$nuxt.hook("app:suspense:resolve",()=>{c.update()});else{const{mount:u}=a;a.mount=function(){const h=u(...arguments);return lc(()=>c.update()),a.mount=u,h}}O1.reset(),a.mixin({computed:{$vuetify(){return lm({defaults:DA.call(this,yM),display:DA.call(this,Fse),theme:DA.call(this,pZ),icons:DA.call(this,Dse),locale:DA.call(this,hZ),date:DA.call(this,Sge)})}}})},defaults:n,display:c,theme:b,icons:i,locale:O,date:w,goTo:y}}const GUe="3.6.14";MOe.version=GUe;function DA(t){var f,P;const e=this.$,o=((f=e.parent)==null?void 0:f.provides)??((P=e.vnode.appContext)==null?void 0:P.provides);if(o&&t in o)return o[t]}const KUe=MOe({display:{mobileBreakpoint:"md"},defaults:{global:{elevation:0},VAppBar:{VBtn:{color:"white",ripple:!1}},VBtn:{style:[{"text-transform":"capitalize"}],color:"bluegrey-darken-2",class:["text-bluegrey-darken-1"]},VBtnToggle:{density:"comfortable",VBtn:{style:[{borderRadius:"inherit"}],class:["text-bluegrey-darken-1"]}},VCard:{color:"bluegrey-darken-4"},VDivider:{class:"border-opacity-100"},VFooter:{VListItem:{minHeight:15}},VMenu:{contentClass:"zt-menu"},VSwitch:{baseColor:"bluegrey-darken-3",color:"primary",density:"compact",hideDetails:!0},VTextarea:{bgColor:"bluegrey-darken-3"}},theme:{defaultTheme:"dark",themes:{dark:{dark:!0,colors:{background:"#0d1316",primary:"#ae9ee8",secondary:"#424242",surface:"#1B2F3C",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}},light:{colors:{background:"#E7E8E9",primary:"#AE9FE8",secondary:"#5F7F93",surface:"#FFFFFF",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}}}},icons:{defaultSet:"mdi",aliases:c2e,sets:{mdi:u2e,ztIcon:yBe}}}),D0e=[{path:"/",name:"/",component:()=>lle(()=>import("./index-f0d22521.js"),[],import.meta.url)},{path:"/app",name:"/app",component:()=>lle(()=>import("./app-9832ab9d.js"),[],import.meta.url)}];function JUe(t){const{extendRoutes:e}=t;return jke(Object.assign(t,{routes:typeof e=="function"?e(D0e):D0e}))}async function eje(t){const o=(await fu.get("base_path")).data,f=JUe({history:ike(o)});XUe(),t.use(KUe).use(f)}const tje=OBe(),AH=$5e(qUe);AH.use(tje);eje(AH).then(()=>{AH.config.globalProperties.$devMode=!0,AH.mount("#app")});export{eUe as C,hm as _,sa as c,Hke as g,Do as o,Zd as r}; diff --git a/zt_backend/dist_dev/assets/index-31a83e65.js b/zt_backend/dist_dev/assets/index-f0d22521.js similarity index 94% rename from zt_backend/dist_dev/assets/index-31a83e65.js rename to zt_backend/dist_dev/assets/index-f0d22521.js index c0dfdc89..e2bc3bbf 100644 --- a/zt_backend/dist_dev/assets/index-31a83e65.js +++ b/zt_backend/dist_dev/assets/index-f0d22521.js @@ -1 +1 @@ -import{C as o,_ as r,r as l,o as c,c as a}from"./index-91df5eb7.js";const u={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:o},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,C,e,m,s,i){const n=l("code-cell-manager");return c(),a(n,{notebook:e.notebook,completions:e.completions,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(u,[["render",d]]);export{_ as default}; +import{C as o,_ as r,r as l,o as c,c as a}from"./index-d744c0bc.js";const u={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:o},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,C,e,m,s,i){const n=l("code-cell-manager");return c(),a(n,{notebook:e.notebook,completions:e.completions,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(u,[["render",d]]);export{_ as default}; diff --git a/zt_backend/dist_dev/assets/webfontloader-dd94185f.js b/zt_backend/dist_dev/assets/webfontloader-889c568b.js similarity index 99% rename from zt_backend/dist_dev/assets/webfontloader-dd94185f.js rename to zt_backend/dist_dev/assets/webfontloader-889c568b.js index 3ffdcd65..460e9cc3 100644 --- a/zt_backend/dist_dev/assets/webfontloader-dd94185f.js +++ b/zt_backend/dist_dev/assets/webfontloader-889c568b.js @@ -1 +1 @@ -import{g as Ft}from"./index-91df5eb7.js";function Pt(w,S){for(var _=0;_h[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;fh[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;f Zero-True - - + + diff --git a/zt_backend/runner/execute_code.py b/zt_backend/runner/execute_code.py index c6f634cf..a9b6aa8b 100644 --- a/zt_backend/runner/execute_code.py +++ b/zt_backend/runner/execute_code.py @@ -102,7 +102,7 @@ def get_parent_vars( def execute_request(request: request.Request, state: UserState): with UserContext(state) as execution_state: logger.debug("Code execution started") - + cell_outputs = [] execution_state.component_values.update(request.components) component_globals = {"global_state": execution_state.component_values} @@ -144,16 +144,14 @@ def execute_request(request: request.Request, state: UserState): execution_state.message_queue.put_nowait( {"cell_id": code_cell_id, "clear_output": True} ) - - # Only send "cell_executing" for the origin cell or when running all cells - if code_cell_id == request.originId or not request.originId: - execution_state.message_queue.put_nowait({"cell_executing": code_cell_id}) if code_cell_id != "initial_cell": execution_state.message_queue.put_nowait( - {"cell_id": code_cell_id, "clear_output": True} - ) - + {"cell_executing": code_cell_id} + ) + execution_state.message_queue.put_nowait( + {"cell_id": code_cell_id, "clear_output": True} + ) execution_state.io_output = StringIO() execute_cell( @@ -196,8 +194,8 @@ def execute_request(request: request.Request, state: UserState): if code_cell_id != "initial_cell": execution_state.message_queue.put_nowait({"cell_executing": ""}) execution_state.message_queue.put_nowait({"complete": True}) - if settings.run_mode=='dev': - globalStateUpdate(run_response=execution_response,run_request=request) + if settings.run_mode == "dev": + globalStateUpdate(run_response=execution_response, run_request=request) def execute_cell( diff --git a/zt_frontend/src/components/Cell.vue b/zt_frontend/src/components/Cell.vue index e30237b8..12fdd622 100644 --- a/zt_frontend/src/components/Cell.vue +++ b/zt_frontend/src/components/Cell.vue @@ -15,12 +15,6 @@
    -

    - {{ cellNameValue }} -

    - Running
    +

    + {{ cellNameValue }} +

    +